diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 7985390da42c..c567de27e10f 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_GITHUB_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.66.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.66.1 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/.github/workflows/java-logging-ci.yaml b/.github/workflows/java-logging-ci.yaml new file mode 100644 index 000000000000..3cc5805d0eeb --- /dev/null +++ b/.github/workflows/java-logging-ci.yaml @@ -0,0 +1,139 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.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. +# Github action job to test core java library features on +# downstream client libraries before they are released. +on: + push: + branches: + - main + pull_request: +name: java-logging ci +env: + BUILD_SUBDIR: java-logging +jobs: + filter: + runs-on: ubuntu-latest + outputs: + library: ${{ steps.filter.outputs.library }} + steps: + - uses: actions/checkout@v4 + - uses: dorny/paths-filter@v3 + id: filter + with: + filters: | + library: + - 'java-logging/**' + units: + needs: filter + if: ${{ needs.filter.outputs.library == 'true' }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + java: [11, 17, 21, 25] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: ${{matrix.java}} + - run: java -version + - run: .kokoro/build.sh + env: + JOB_TYPE: test + units-java8: + needs: filter + if: ${{ needs.filter.outputs.library == 'true' }} + # Building using Java 17 and run the tests with Java 8 runtime + name: "units (8)" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + java-version: 8 + distribution: temurin + - name: "Set jvm system property environment variable for surefire plugin (unit tests)" + # Maven surefire plugin (unit tests) allows us to specify JVM to run the tests. + # https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#jvm + run: echo "SUREFIRE_JVM_OPT=-Djvm=${JAVA_HOME}/bin/java -P !java17" >> $GITHUB_ENV + shell: bash + - uses: actions/setup-java@v4 + with: + java-version: 17 + distribution: temurin + - run: .kokoro/build.sh + env: + JOB_TYPE: test + windows: + needs: filter + if: ${{ needs.filter.outputs.library == 'true' }} + runs-on: windows-latest + steps: + - name: Support longpaths + run: git config --system core.longpaths true + - name: Support longpaths + run: git config --system core.longpaths true + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 8 + - run: java -version + - run: .kokoro/build.sh + env: + JOB_TYPE: test + dependencies: + needs: filter + if: ${{ needs.filter.outputs.library == 'true' }} + runs-on: ubuntu-latest + strategy: + matrix: + java: [17] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: ${{matrix.java}} + - run: java -version + - run: .kokoro/dependencies.sh + javadoc: + needs: filter + if: ${{ needs.filter.outputs.library == 'true' }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 17 + - run: java -version + - run: .kokoro/build.sh + env: + JOB_TYPE: javadoc + lint: + needs: filter + if: ${{ needs.filter.outputs.library == 'true' }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 17 + - run: java -version + - run: .kokoro/build.sh + env: + JOB_TYPE: lint diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index 45d9ec793152..3179f53f5aa6 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -14,6 +14,6 @@ jobs: shell: bash run: mvn install -B -ntp -T 1C -DskipTests -Dclirr.skip -Dcheckstyle.skip -Denforcer.skip - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.56.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.56.1 with: bom-path: gapic-libraries-bom/pom.xml diff --git a/.kokoro/build.sh b/.kokoro/build.sh index 29d712c681ef..d77009aa5eb8 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -33,26 +33,17 @@ if [ -f "${KOKORO_GFILE_DIR}/secret_manager/java-bigqueryconnection-samples-secr source "${KOKORO_GFILE_DIR}/secret_manager/java-bigqueryconnection-samples-secrets" fi -if [[ -n "${BUILD_SUBDIR}" ]] -then - echo "Compiling and building all modules for ${BUILD_SUBDIR}" - mvn clean install \ - -DskipTests \ - -Dclirr.skip \ - -Dflatten.skip \ - -Dcheckstyle.skip \ - -Djacoco.skip \ - -Denforcer.skip \ - --also-make \ - --projects "${BUILD_SUBDIR}" - echo "Running in subdir: ${BUILD_SUBDIR}" - pushd "${BUILD_SUBDIR}" -fi - RETURN_CODE=0 case ${JOB_TYPE} in test) + if [[ -n "${BUILD_SUBDIR}" ]] + then + echo "Compiling and building all modules for ${BUILD_SUBDIR}" + install_modules "${BUILD_SUBDIR}" + echo "Running in subdir: ${BUILD_SUBDIR}" + pushd "${BUILD_SUBDIR}" + fi echo "SUREFIRE_JVM_OPT: ${SUREFIRE_JVM_OPT}" retry_with_backoff 3 10 \ mvn test \ @@ -67,6 +58,12 @@ case ${JOB_TYPE} in -Dmaven.wagon.http.retryHandler.count=5 \ -T 1C ${SUREFIRE_JVM_OPT} RETURN_CODE=$? + + if [[ -n "${BUILD_SUBDIR}" ]] + then + echo "restoring directory" + popd + fi echo "Finished running unit tests" ;; integration) @@ -85,6 +82,41 @@ case ${JOB_TYPE} in echo "No Integration Tests to run" fi ;; + integration-single) + generate_modified_modules_list false + if [[ "$(release_please_snapshot_pull_request)" == "true" ]]; then + echo "Not running integration checks -- this is Release Please SNAPSHOT pull request." + elif [[ ! " ${modified_module_list[*]} " =~ " ${BUILD_SUBDIR} " ]]; then + echo "${BUILD_SUBDIR} not modified, skipping split integration test" + else + echo "${BUILD_SUBDIR} modified, running split integration test" + echo "Compiling and building all modules for ${BUILD_SUBDIR}" + install_modules "${BUILD_SUBDIR}" + echo "Running in subdir: ${BUILD_SUBDIR}" + pushd "${BUILD_SUBDIR}" + echo "SUREFIRE_JVM_OPT: ${SUREFIRE_JVM_OPT}" + echo "INTEGRATION_TEST_ARGS: ${INTEGRATION_TEST_ARGS}" + mvn verify -Penable-integration-tests \ + ${INTEGRATION_TEST_ARGS} \ + -B -ntp -fae \ + -DtrimStackTrace=false \ + -Dclirr.skip=true \ + -Denforcer.skip=true \ + -Dorg.slf4j.simpleLogger.showDateTime=true \ + -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss:SSS \ + -Dcheckstyle.skip=true \ + -Dflatten.skip=true \ + -Danimal.sniffer.skip=true \ + -Djacoco.skip=true \ + -DskipUnitTests=true \ + -Dmaven.wagon.http.retryHandler.count=5 \ + -T 1C ${SUREFIRE_JVM_OPT} + + RETURN_CODE=$? + popd + printf "Finished integration tests for modules:\n%s\n" "${BUILD_SUBDIR}" + fi + ;; graalvm-presubmit) generate_graalvm_presubmit_modules_list if [[ "$(release_please_snapshot_pull_request)" == "true" ]]; then @@ -109,7 +141,44 @@ case ${JOB_TYPE} in echo "Not running GraalVM checks -- No changes in relevant modules" fi ;; + graalvm-single) + generate_modified_modules_list false + if [[ "$(release_please_snapshot_pull_request)" == "true" ]]; then + echo "Not running GraalVM checks -- this is Release Please SNAPSHOT pull request." + elif [[ ! " ${modified_module_list[*]} " =~ " ${BUILD_SUBDIR} " ]]; then + echo "${BUILD_SUBDIR} not modified, skipping split GraalVM test" + else + echo "${BUILD_SUBDIR} modified, running split GraalVM test" + echo "Compiling and building all modules for ${BUILD_SUBDIR}" + install_modules "${BUILD_SUBDIR}" + echo "Running in subdir: ${BUILD_SUBDIR}" + pushd "${BUILD_SUBDIR}" + echo "INTEGRATION_TEST_ARGS: ${INTEGRATION_TEST_ARGS}" + mvn test -Pnative \ + ${INTEGRATION_TEST_ARGS} \ + -B -ntp -fae \ + -DtrimStackTrace=false \ + -Dclirr.skip=true \ + -Denforcer.skip=true \ + -Dorg.slf4j.simpleLogger.showDateTime=true \ + -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss:SSS \ + -Dcheckstyle.skip=true \ + -Dflatten.skip=true \ + -Danimal.sniffer.skip=true + + RETURN_CODE=$? + popd + printf "Finished GraalVM ITs for modules:\n%s\n" "${BUILD_SUBDIR}" + fi + ;; lint) + if [[ -n "${BUILD_SUBDIR}" ]] + then + echo "Compiling and building all modules for ${BUILD_SUBDIR}" + install_modules "${BUILD_SUBDIR}" + echo "Running in subdir: ${BUILD_SUBDIR}" + pushd "${BUILD_SUBDIR}" + fi if [ -n "${BASE_SHA}" ] && [ -n "${HEAD_SHA}" ]; then changed_file_list=$(git diff --name-only "${BASE_SHA}" "${HEAD_SHA}") echo "${changed_file_list}" @@ -137,17 +206,17 @@ case ${JOB_TYPE} in -T 1.5C \ com.spotify.fmt:fmt-maven-plugin:check mvn -B -ntp checkstyle:check@checkstyle + + if [[ -n "${BUILD_SUBDIR}" ]] + then + echo "restoring directory" + popd + fi ;; *) ;; esac -if [[ -n "${BUILD_SUBDIR}" ]] -then - echo "restoring directory" - popd -fi - if [ "${REPORT_COVERAGE}" == "true" ]; then bash ${KOKORO_GFILE_DIR}/codecov.sh fi diff --git a/.kokoro/common.sh b/.kokoro/common.sh index 4f8959c245ef..ac31ed36d55c 100644 --- a/.kokoro/common.sh +++ b/.kokoro/common.sh @@ -13,7 +13,13 @@ # See the License for the specific language governing permissions and # limitations under the License. -excluded_modules=('gapic-libraries-bom' 'google-cloud-jar-parent' 'google-cloud-pom-parent' 'java-vertexai') +excluded_modules=( + 'gapic-libraries-bom' + 'google-cloud-jar-parent' + 'google-cloud-pom-parent' + 'java-vertexai' + 'java-logging' +) function retry_with_backoff { attempts_left=$1 @@ -56,10 +62,8 @@ function retry_with_backoff { # Given a folder containing a maven multi-module, assign the variable 'submodules' to a # comma-delimited list of /. function parse_submodules() { - pushd "$1" >/dev/null - submodules_array=() - mvn_submodules=$(mvn help:evaluate -Dexpression=project.modules) + mvn_submodules=$(mvn help:evaluate -Dexpression=project.modules -pl "$1") if mvn_submodules=$(grep '<.*>.*' <<< "$mvn_submodules"); then mvn_submodules=$(sed -e 's/<.*>\(.*\)<\/.*>/\1/g' <<< "$mvn_submodules") for submodule in $mvn_submodules; do @@ -77,8 +81,6 @@ function parse_submodules() { echo "${submodules_array[*]}" ) export submodules - - popd >/dev/null } # Given a list of folders containing maven multi-modules, assign the variable 'all_submodules' to a @@ -155,6 +157,13 @@ function release_please_snapshot_pull_request() { fi } +# Sets bash variables for maven_modules and modified_module_list +# maven_modules is the list of all maven submodules of the root pom +# modified_module_list is the subset of maven_modules that have been touched +# in the current pull request +# +# The first positional argument is a value true/false. If true (default), then +# exclude modules from the global exclusion list. function generate_modified_modules_list() { # Find the files changed from when the PR branched to the last commit # Filter for java modules and get all the unique elements @@ -167,11 +176,19 @@ function generate_modified_modules_list() { # Generate the list of valid maven modules maven_modules_list=$(mvn help:evaluate -Dexpression=project.modules | grep '<.*>.*' | sed -e 's/<.*>\(.*\)<\/.*>/\1/g') maven_modules=() - for module in $maven_modules_list; do - if [[ ! " ${excluded_modules[*]} " =~ " ${module} " ]]; then - maven_modules+=("${module}") - fi - done + + # If the first argument is "true" (default), then use the module exclusion list + use_exclusion_list=${1:-true} + if [[ "${use_exclusion_list}" == "true" ]]; then + echo "Excluding modules from the global exclusion list" + for module in $maven_modules_list; do + if [[ ! " ${excluded_modules[*]} " =~ " ${module} " ]]; then + maven_modules+=("${module}") + fi + done + else + maven_modules=(${maven_modules_list[*]}) + fi modified_module_list=() # If either parent pom.xml is touched, run ITs on all the modules diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh index 1ea066f5bf77..6d0208a51710 100755 --- a/.kokoro/dependencies.sh +++ b/.kokoro/dependencies.sh @@ -51,6 +51,8 @@ export MAVEN_OPTS=$(determineMavenOpts) if [[ -n "${BUILD_SUBDIR}" ]] then + echo "Compiling and building all modules for ${BUILD_SUBDIR}" + install_modules "${BUILD_SUBDIR}" echo "Running in subdir: ${BUILD_SUBDIR}" pushd "${BUILD_SUBDIR}" fi diff --git a/.kokoro/nightly/graalvm-native-a.cfg b/.kokoro/nightly/graalvm-native-a.cfg index 7e3d9e933774..d34c47fdbe7c 100644 --- a/.kokoro/nightly/graalvm-native-a.cfg +++ b/.kokoro/nightly/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.56.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.56.1" } env_vars: { diff --git a/.kokoro/nightly/graalvm-native-b.cfg b/.kokoro/nightly/graalvm-native-b.cfg index 14d4d907ac6c..23ba934b8ea7 100644 --- a/.kokoro/nightly/graalvm-native-b.cfg +++ b/.kokoro/nightly/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.56.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.56.1" } env_vars: { diff --git a/.kokoro/nightly/graalvm-native-c.cfg b/.kokoro/nightly/graalvm-native-c.cfg index 9a78e8a1cbaa..20c6a65cd114 100644 --- a/.kokoro/nightly/graalvm-native-c.cfg +++ b/.kokoro/nightly/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.56.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.56.1" } env_vars: { diff --git a/.kokoro/nightly/graalvm-sub-jobs/native-a/common.cfg b/.kokoro/nightly/graalvm-sub-jobs/native-a/common.cfg index 47ad319fd60d..d49dc474fc16 100644 --- a/.kokoro/nightly/graalvm-sub-jobs/native-a/common.cfg +++ b/.kokoro/nightly/graalvm-sub-jobs/native-a/common.cfg @@ -29,7 +29,7 @@ env_vars: { env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.56.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.56.1" } # TODO: remove this after we've migrated all tests and scripts diff --git a/.kokoro/nightly/graalvm-sub-jobs/native-b/common.cfg b/.kokoro/nightly/graalvm-sub-jobs/native-b/common.cfg index 708970b87c13..9e9e0edab6a0 100644 --- a/.kokoro/nightly/graalvm-sub-jobs/native-b/common.cfg +++ b/.kokoro/nightly/graalvm-sub-jobs/native-b/common.cfg @@ -24,7 +24,7 @@ env_vars: { env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.56.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.56.1" } env_vars: { diff --git a/.kokoro/nightly/graalvm-sub-jobs/native-c/common.cfg b/.kokoro/nightly/graalvm-sub-jobs/native-c/common.cfg index aaca758f17e6..3bb6b413b8d2 100644 --- a/.kokoro/nightly/graalvm-sub-jobs/native-c/common.cfg +++ b/.kokoro/nightly/graalvm-sub-jobs/native-c/common.cfg @@ -24,7 +24,7 @@ env_vars: { env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.56.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.56.1" } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-a-presubmit.cfg b/.kokoro/presubmit/graalvm-native-a-presubmit.cfg index 5833d7f9eed5..bf21879db82f 100644 --- a/.kokoro/presubmit/graalvm-native-a-presubmit.cfg +++ b/.kokoro/presubmit/graalvm-native-a-presubmit.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.56.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.56.1" } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-b-presubmit.cfg b/.kokoro/presubmit/graalvm-native-b-presubmit.cfg index 70b70de3b22b..e4d3b2708930 100644 --- a/.kokoro/presubmit/graalvm-native-b-presubmit.cfg +++ b/.kokoro/presubmit/graalvm-native-b-presubmit.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.56.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.56.1" } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-c-presubmit.cfg b/.kokoro/presubmit/graalvm-native-c-presubmit.cfg index 9264399f0e9e..bd58c7b006ba 100644 --- a/.kokoro/presubmit/graalvm-native-c-presubmit.cfg +++ b/.kokoro/presubmit/graalvm-native-c-presubmit.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.56.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.56.1" } env_vars: { diff --git a/.kokoro/presubmit/logging-graalvm-native-presubmit.cfg b/.kokoro/presubmit/logging-graalvm-native-presubmit.cfg new file mode 100644 index 000000000000..d16598bb817f --- /dev/null +++ b/.kokoro/presubmit/logging-graalvm-native-presubmit.cfg @@ -0,0 +1,38 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.56.1" +} + +env_vars: { + key: "JOB_TYPE" + value: "graalvm-single" +} + +# TODO: remove this after we've migrated all tests and scripts +env_vars: { + key: "GCLOUD_PROJECT" + value: "cloud-java-ci-test" +} + +env_vars: { + key: "GOOGLE_CLOUD_PROJECT" + value: "cloud-java-ci-test" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "secret_manager/cloud-java-ci-it-service-account" +} + +env_vars: { + key: "SECRET_MANAGER_KEYS" + value: "cloud-java-ci-it-service-account, java-bigqueryconnection-samples-secrets" +} + +env_vars: { + key: "BUILD_SUBDIR" + value: "java-logging" +} diff --git a/.kokoro/presubmit/logging-integration.cfg b/.kokoro/presubmit/logging-integration.cfg new file mode 100644 index 000000000000..30143885f2b4 --- /dev/null +++ b/.kokoro/presubmit/logging-integration.cfg @@ -0,0 +1,38 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java11" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration-single" +} + +# TODO: remove this after we've migrated all tests and scripts +env_vars: { + key: "GCLOUD_PROJECT" + value: "cloud-java-ci-test" +} + +env_vars: { + key: "GOOGLE_CLOUD_PROJECT" + value: "cloud-java-ci-test" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "secret_manager/cloud-java-ci-it-service-account" +} + +env_vars: { + key: "SECRET_MANAGER_KEYS" + value: "cloud-java-ci-it-service-account, java-bigqueryconnection-samples-secrets" +} + +env_vars: { + key: "BUILD_SUBDIR" + value: "java-logging" +} diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 81d0b4e58127..cf49aadcb6ea 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.77.0" + ".": "1.79.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 625a316eaab1..8fbe5e46f857 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,76 @@ # Changelog +## [1.79.0](https://github.com/googleapis/google-cloud-java/compare/v1.78.0...v1.79.0) (2026-02-13) + + +### ⚠ BREAKING CHANGES + +* [auditmanager] A new packaging option `cloud.google.com/go/auditmanager/apiv1main/auditmanagerpb;auditmanagerpb` for `go_package` is added + +### Features + +* [aiplatform] A new field `predefined_metric_spec` is added to message `.google.cloud.aiplatform.v1beta1.Metric` ([1041e03](https://github.com/googleapis/google-cloud-java/commit/1041e030cf2c325d96c7e1a5eee18cd086096222)) +* [aiplatform] add max_concurrent_active_run_count field to Schedule message ([1041e03](https://github.com/googleapis/google-cloud-java/commit/1041e030cf2c325d96c7e1a5eee18cd086096222)) +* [aiplatform] add max_concurrent_active_run_count field to Schedule message ([1041e03](https://github.com/googleapis/google-cloud-java/commit/1041e030cf2c325d96c7e1a5eee18cd086096222)) +* [aiplatform] add model_armor_config to GeminiExample ([1041e03](https://github.com/googleapis/google-cloud-java/commit/1041e030cf2c325d96c7e1a5eee18cd086096222)) +* [ces] new module for ces ([#11940](https://github.com/googleapis/google-cloud-java/issues/11940)) ([fb47842](https://github.com/googleapis/google-cloud-java/commit/fb47842b9d10b62a418da9a4c46518482f0c46a8)) +* [databasecenter] Adding Method QueryIssues of Database Center API v1beta ([1041e03](https://github.com/googleapis/google-cloud-java/commit/1041e030cf2c325d96c7e1a5eee18cd086096222)) +* [dataform] Update GCP Client Libraries in v1beta1 to support Folders, TeamFolders, and other relevant APIs ([1041e03](https://github.com/googleapis/google-cloud-java/commit/1041e030cf2c325d96c7e1a5eee18cd086096222)) +* [discoveryengine] add Natural Language Query Understanding fields and messages to DiscoveryEngine request, response, and datastore messages ([1041e03](https://github.com/googleapis/google-cloud-java/commit/1041e030cf2c325d96c7e1a5eee18cd086096222)) +* [kms] Added DeleteCryptoKey and DeleteCryptoKeyVersion RPCs to permanently remove resources ([1041e03](https://github.com/googleapis/google-cloud-java/commit/1041e030cf2c325d96c7e1a5eee18cd086096222)) +* [maps-places] Add `googleMapsTypeLabel` field to show type information on Google Maps ([1041e03](https://github.com/googleapis/google-cloud-java/commit/1041e030cf2c325d96c7e1a5eee18cd086096222)) +* [saasservicemgmt] Add AppHub related condition types to Deployment protos ([1041e03](https://github.com/googleapis/google-cloud-java/commit/1041e030cf2c325d96c7e1a5eee18cd086096222)) +* [storagebatchoperations] add QUEUED state to Storage Batch Operations API ([1041e03](https://github.com/googleapis/google-cloud-java/commit/1041e030cf2c325d96c7e1a5eee18cd086096222)) +* [workloadmanager] new module for workloadmanager ([#11941](https://github.com/googleapis/google-cloud-java/issues/11941)) ([e7e86f7](https://github.com/googleapis/google-cloud-java/commit/e7e86f79419451460470ad0278e7a642464514f6)) + + +### Bug Fixes + +* [auditmanager] A new packaging option `cloud.google.com/go/auditmanager/apiv1main/auditmanagerpb;auditmanagerpb` for `go_package` is added ([1041e03](https://github.com/googleapis/google-cloud-java/commit/1041e030cf2c325d96c7e1a5eee18cd086096222)) + + +### Documentation + +* [maps-solar] Add satellite imagery to `rgb_url` description ([1041e03](https://github.com/googleapis/google-cloud-java/commit/1041e030cf2c325d96c7e1a5eee18cd086096222)) + +## [1.78.0](https://github.com/googleapis/google-cloud-java/compare/v1.77.0...v1.78.0) (2026-02-10) + + +### ⚠ BREAKING CHANGES + +* The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages +* [visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse` + +### Features + +* [aiplatform] Add `fps` to message `VideoMetadata` ([91994ba](https://github.com/googleapis/google-cloud-java/commit/91994bab571960f2d5e29de31a433c7c97808fa2)) +* [aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob` ([91994ba](https://github.com/googleapis/google-cloud-java/commit/91994bab571960f2d5e29de31a433c7c97808fa2)) +* [aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob` ([91994ba](https://github.com/googleapis/google-cloud-java/commit/91994bab571960f2d5e29de31a433c7c97808fa2)) +* [aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus ([91994ba](https://github.com/googleapis/google-cloud-java/commit/91994bab571960f2d5e29de31a433c7c97808fa2)) +* [artifact-registry] add DIRSUM_SHA256 hash type ([91994ba](https://github.com/googleapis/google-cloud-java/commit/91994bab571960f2d5e29de31a433c7c97808fa2)) +* [chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto ([91994ba](https://github.com/googleapis/google-cloud-java/commit/91994bab571960f2d5e29de31a433c7c97808fa2)) +* [cloudquotas] Hierarchical Quota Adjuster ([91994ba](https://github.com/googleapis/google-cloud-java/commit/91994bab571960f2d5e29de31a433c7c97808fa2)) +* [confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options ([91994ba](https://github.com/googleapis/google-cloud-java/commit/91994bab571960f2d5e29de31a433c7c97808fa2)) +* [dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances ([91994ba](https://github.com/googleapis/google-cloud-java/commit/91994bab571960f2d5e29de31a433c7c97808fa2)) +* [document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation` ([91994ba](https://github.com/googleapis/google-cloud-java/commit/91994bab571960f2d5e29de31a433c7c97808fa2)) +* [geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data ([91994ba](https://github.com/googleapis/google-cloud-java/commit/91994bab571960f2d5e29de31a433c7c97808fa2)) +* [gkehub] Add GKE Hub teams scope and RBAC GAPIC ([91994ba](https://github.com/googleapis/google-cloud-java/commit/91994bab571960f2d5e29de31a433c7c97808fa2)) +* [vectorsearch] add SearchHint to SemanticSearch requests ([91994ba](https://github.com/googleapis/google-cloud-java/commit/91994bab571960f2d5e29de31a433c7c97808fa2)) + + +### Bug Fixes + +* [visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse` ([91994ba](https://github.com/googleapis/google-cloud-java/commit/91994bab571960f2d5e29de31a433c7c97808fa2)) +* **deps:** update the Java code generator (gapic-generator-java) to 2.66.1 ([91994ba](https://github.com/googleapis/google-cloud-java/commit/91994bab571960f2d5e29de31a433c7c97808fa2)) +* update dependency com.google.cloud:sdk-platform-java-config to v3.56.1 ([#11916](https://github.com/googleapis/google-cloud-java/issues/11916)) ([6127aa6](https://github.com/googleapis/google-cloud-java/commit/6127aa6a9c366dfc907a2e85dc9b896d2c31f16d)) + + +### Documentation + +* [aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion` ([91994ba](https://github.com/googleapis/google-cloud-java/commit/91994bab571960f2d5e29de31a433c7c97808fa2)) +* [aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion` ([91994ba](https://github.com/googleapis/google-cloud-java/commit/91994bab571960f2d5e29de31a433c7c97808fa2)) +* [datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo ([91994ba](https://github.com/googleapis/google-cloud-java/commit/91994bab571960f2d5e29de31a433c7c97808fa2)) + ## [1.77.0](https://github.com/googleapis/google-cloud-java/compare/v1.76.0...v1.77.0) (2026-01-29) diff --git a/changelog.json b/changelog.json index 9d760d806231..e6d074f91041 100644 --- a/changelog.json +++ b/changelog.json @@ -1,6 +1,28280 @@ { "repository": "googleapis/google-cloud-java", "entries": [ + { + "changes": [ + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[maps-places] Add `googleMapsTypeLabel` field to show type information on Google Maps", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[storagebatchoperations] add QUEUED state to Storage Batch Operations API", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[saasservicemgmt] Add AppHub related condition types to Deployment protos", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[kms] Added DeleteCryptoKey and DeleteCryptoKeyVersion RPCs to permanently remove resources", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[databasecenter] Adding Method QueryIssues of Database Center API v1beta", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[discoveryengine] add Natural Language Query Understanding fields and messages to DiscoveryEngine request, response, and datastore messages", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] add max_concurrent_active_run_count field to Schedule message", + "issues": [] + }, + { + "type": "fix", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[auditmanager] A new packaging option `cloud.google.com/go/auditmanager/apiv1main/auditmanagerpb;auditmanagerpb` for `go_package` is added", + "issues": [], + "breakingChangeNote": "[auditmanager] A new packaging option `cloud.google.com/go/auditmanager/apiv1main/auditmanagerpb;auditmanagerpb` for `go_package` is added" + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[dataform] Update GCP Client Libraries in v1beta1 to support Folders, TeamFolders, and other relevant APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] A new field `predefined_metric_spec` is added to message `.google.cloud.aiplatform.v1beta1.Metric`", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] add model_armor_config to GeminiExample", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] add max_concurrent_active_run_count field to Schedule message", + "issues": [] + }, + { + "type": "docs", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[maps-solar] Add satellite imagery to `rgb_url` description", + "issues": [] + } + ], + "version": "1.79.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-storagebatchoperations", + "id": "d1859ab4-b379-4637-a0ee-94a100c15209", + "createTime": "2026-02-13T21:36:21.045Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[maps-places] Add `googleMapsTypeLabel` field to show type information on Google Maps", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[storagebatchoperations] add QUEUED state to Storage Batch Operations API", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[saasservicemgmt] Add AppHub related condition types to Deployment protos", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[kms] Added DeleteCryptoKey and DeleteCryptoKeyVersion RPCs to permanently remove resources", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[databasecenter] Adding Method QueryIssues of Database Center API v1beta", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[discoveryengine] add Natural Language Query Understanding fields and messages to DiscoveryEngine request, response, and datastore messages", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] add max_concurrent_active_run_count field to Schedule message", + "issues": [] + }, + { + "type": "fix", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[auditmanager] A new packaging option `cloud.google.com/go/auditmanager/apiv1main/auditmanagerpb;auditmanagerpb` for `go_package` is added", + "issues": [], + "breakingChangeNote": "[auditmanager] A new packaging option `cloud.google.com/go/auditmanager/apiv1main/auditmanagerpb;auditmanagerpb` for `go_package` is added" + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[dataform] Update GCP Client Libraries in v1beta1 to support Folders, TeamFolders, and other relevant APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] A new field `predefined_metric_spec` is added to message `.google.cloud.aiplatform.v1beta1.Metric`", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] add model_armor_config to GeminiExample", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] add max_concurrent_active_run_count field to Schedule message", + "issues": [] + }, + { + "type": "docs", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[maps-solar] Add satellite imagery to `rgb_url` description", + "issues": [] + } + ], + "version": "1.79.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-saasservicemgmt", + "id": "67a7acf9-5a1d-451f-a7c0-5e35e46b5da7", + "createTime": "2026-02-13T21:36:20.962Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[maps-places] Add `googleMapsTypeLabel` field to show type information on Google Maps", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[storagebatchoperations] add QUEUED state to Storage Batch Operations API", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[saasservicemgmt] Add AppHub related condition types to Deployment protos", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[kms] Added DeleteCryptoKey and DeleteCryptoKeyVersion RPCs to permanently remove resources", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[databasecenter] Adding Method QueryIssues of Database Center API v1beta", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[discoveryengine] add Natural Language Query Understanding fields and messages to DiscoveryEngine request, response, and datastore messages", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] add max_concurrent_active_run_count field to Schedule message", + "issues": [] + }, + { + "type": "fix", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[auditmanager] A new packaging option `cloud.google.com/go/auditmanager/apiv1main/auditmanagerpb;auditmanagerpb` for `go_package` is added", + "issues": [], + "breakingChangeNote": "[auditmanager] A new packaging option `cloud.google.com/go/auditmanager/apiv1main/auditmanagerpb;auditmanagerpb` for `go_package` is added" + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[dataform] Update GCP Client Libraries in v1beta1 to support Folders, TeamFolders, and other relevant APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] A new field `predefined_metric_spec` is added to message `.google.cloud.aiplatform.v1beta1.Metric`", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] add model_armor_config to GeminiExample", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] add max_concurrent_active_run_count field to Schedule message", + "issues": [] + }, + { + "type": "docs", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[maps-solar] Add satellite imagery to `rgb_url` description", + "issues": [] + } + ], + "version": "1.79.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-solar", + "id": "f32417ec-5d5d-471a-91fe-752908313603", + "createTime": "2026-02-13T21:36:20.883Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[maps-places] Add `googleMapsTypeLabel` field to show type information on Google Maps", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[storagebatchoperations] add QUEUED state to Storage Batch Operations API", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[saasservicemgmt] Add AppHub related condition types to Deployment protos", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[kms] Added DeleteCryptoKey and DeleteCryptoKeyVersion RPCs to permanently remove resources", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[databasecenter] Adding Method QueryIssues of Database Center API v1beta", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[discoveryengine] add Natural Language Query Understanding fields and messages to DiscoveryEngine request, response, and datastore messages", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] add max_concurrent_active_run_count field to Schedule message", + "issues": [] + }, + { + "type": "fix", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[auditmanager] A new packaging option `cloud.google.com/go/auditmanager/apiv1main/auditmanagerpb;auditmanagerpb` for `go_package` is added", + "issues": [], + "breakingChangeNote": "[auditmanager] A new packaging option `cloud.google.com/go/auditmanager/apiv1main/auditmanagerpb;auditmanagerpb` for `go_package` is added" + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[dataform] Update GCP Client Libraries in v1beta1 to support Folders, TeamFolders, and other relevant APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] A new field `predefined_metric_spec` is added to message `.google.cloud.aiplatform.v1beta1.Metric`", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] add model_armor_config to GeminiExample", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] add max_concurrent_active_run_count field to Schedule message", + "issues": [] + }, + { + "type": "docs", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[maps-solar] Add satellite imagery to `rgb_url` description", + "issues": [] + } + ], + "version": "1.79.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-places", + "id": "662ffd7b-6938-4e8b-b78b-b84083e98fda", + "createTime": "2026-02-13T21:36:20.798Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[maps-places] Add `googleMapsTypeLabel` field to show type information on Google Maps", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[storagebatchoperations] add QUEUED state to Storage Batch Operations API", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[saasservicemgmt] Add AppHub related condition types to Deployment protos", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[kms] Added DeleteCryptoKey and DeleteCryptoKeyVersion RPCs to permanently remove resources", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[databasecenter] Adding Method QueryIssues of Database Center API v1beta", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[discoveryengine] add Natural Language Query Understanding fields and messages to DiscoveryEngine request, response, and datastore messages", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] add max_concurrent_active_run_count field to Schedule message", + "issues": [] + }, + { + "type": "fix", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[auditmanager] A new packaging option `cloud.google.com/go/auditmanager/apiv1main/auditmanagerpb;auditmanagerpb` for `go_package` is added", + "issues": [], + "breakingChangeNote": "[auditmanager] A new packaging option `cloud.google.com/go/auditmanager/apiv1main/auditmanagerpb;auditmanagerpb` for `go_package` is added" + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[dataform] Update GCP Client Libraries in v1beta1 to support Folders, TeamFolders, and other relevant APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] A new field `predefined_metric_spec` is added to message `.google.cloud.aiplatform.v1beta1.Metric`", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] add model_armor_config to GeminiExample", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] add max_concurrent_active_run_count field to Schedule message", + "issues": [] + }, + { + "type": "docs", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[maps-solar] Add satellite imagery to `rgb_url` description", + "issues": [] + } + ], + "version": "1.79.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-kms", + "id": "5902c9c3-de4c-4a4d-9198-fcca6d18fd1b", + "createTime": "2026-02-13T21:36:20.718Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[maps-places] Add `googleMapsTypeLabel` field to show type information on Google Maps", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[storagebatchoperations] add QUEUED state to Storage Batch Operations API", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[saasservicemgmt] Add AppHub related condition types to Deployment protos", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[kms] Added DeleteCryptoKey and DeleteCryptoKeyVersion RPCs to permanently remove resources", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[databasecenter] Adding Method QueryIssues of Database Center API v1beta", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[discoveryengine] add Natural Language Query Understanding fields and messages to DiscoveryEngine request, response, and datastore messages", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] add max_concurrent_active_run_count field to Schedule message", + "issues": [] + }, + { + "type": "fix", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[auditmanager] A new packaging option `cloud.google.com/go/auditmanager/apiv1main/auditmanagerpb;auditmanagerpb` for `go_package` is added", + "issues": [], + "breakingChangeNote": "[auditmanager] A new packaging option `cloud.google.com/go/auditmanager/apiv1main/auditmanagerpb;auditmanagerpb` for `go_package` is added" + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[dataform] Update GCP Client Libraries in v1beta1 to support Folders, TeamFolders, and other relevant APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] A new field `predefined_metric_spec` is added to message `.google.cloud.aiplatform.v1beta1.Metric`", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] add model_armor_config to GeminiExample", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] add max_concurrent_active_run_count field to Schedule message", + "issues": [] + }, + { + "type": "docs", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[maps-solar] Add satellite imagery to `rgb_url` description", + "issues": [] + } + ], + "version": "1.79.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-discoveryengine", + "id": "a5045e22-22c0-497d-be8f-643042a7ccf8", + "createTime": "2026-02-13T21:36:20.612Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[maps-places] Add `googleMapsTypeLabel` field to show type information on Google Maps", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[storagebatchoperations] add QUEUED state to Storage Batch Operations API", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[saasservicemgmt] Add AppHub related condition types to Deployment protos", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[kms] Added DeleteCryptoKey and DeleteCryptoKeyVersion RPCs to permanently remove resources", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[databasecenter] Adding Method QueryIssues of Database Center API v1beta", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[discoveryengine] add Natural Language Query Understanding fields and messages to DiscoveryEngine request, response, and datastore messages", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] add max_concurrent_active_run_count field to Schedule message", + "issues": [] + }, + { + "type": "fix", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[auditmanager] A new packaging option `cloud.google.com/go/auditmanager/apiv1main/auditmanagerpb;auditmanagerpb` for `go_package` is added", + "issues": [], + "breakingChangeNote": "[auditmanager] A new packaging option `cloud.google.com/go/auditmanager/apiv1main/auditmanagerpb;auditmanagerpb` for `go_package` is added" + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[dataform] Update GCP Client Libraries in v1beta1 to support Folders, TeamFolders, and other relevant APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] A new field `predefined_metric_spec` is added to message `.google.cloud.aiplatform.v1beta1.Metric`", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] add model_armor_config to GeminiExample", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] add max_concurrent_active_run_count field to Schedule message", + "issues": [] + }, + { + "type": "docs", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[maps-solar] Add satellite imagery to `rgb_url` description", + "issues": [] + } + ], + "version": "1.79.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dataform", + "id": "3d50e578-fe6c-4ca2-a0bd-4fe498515b7f", + "createTime": "2026-02-13T21:36:20.527Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[maps-places] Add `googleMapsTypeLabel` field to show type information on Google Maps", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[storagebatchoperations] add QUEUED state to Storage Batch Operations API", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[saasservicemgmt] Add AppHub related condition types to Deployment protos", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[kms] Added DeleteCryptoKey and DeleteCryptoKeyVersion RPCs to permanently remove resources", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[databasecenter] Adding Method QueryIssues of Database Center API v1beta", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[discoveryengine] add Natural Language Query Understanding fields and messages to DiscoveryEngine request, response, and datastore messages", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] add max_concurrent_active_run_count field to Schedule message", + "issues": [] + }, + { + "type": "fix", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[auditmanager] A new packaging option `cloud.google.com/go/auditmanager/apiv1main/auditmanagerpb;auditmanagerpb` for `go_package` is added", + "issues": [], + "breakingChangeNote": "[auditmanager] A new packaging option `cloud.google.com/go/auditmanager/apiv1main/auditmanagerpb;auditmanagerpb` for `go_package` is added" + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[dataform] Update GCP Client Libraries in v1beta1 to support Folders, TeamFolders, and other relevant APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] A new field `predefined_metric_spec` is added to message `.google.cloud.aiplatform.v1beta1.Metric`", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] add model_armor_config to GeminiExample", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] add max_concurrent_active_run_count field to Schedule message", + "issues": [] + }, + { + "type": "docs", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[maps-solar] Add satellite imagery to `rgb_url` description", + "issues": [] + } + ], + "version": "1.79.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-databasecenter", + "id": "d82ea667-705d-43e6-b72f-88c34385eae6", + "createTime": "2026-02-13T21:36:20.441Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[maps-places] Add `googleMapsTypeLabel` field to show type information on Google Maps", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[storagebatchoperations] add QUEUED state to Storage Batch Operations API", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[saasservicemgmt] Add AppHub related condition types to Deployment protos", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[kms] Added DeleteCryptoKey and DeleteCryptoKeyVersion RPCs to permanently remove resources", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[databasecenter] Adding Method QueryIssues of Database Center API v1beta", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[discoveryengine] add Natural Language Query Understanding fields and messages to DiscoveryEngine request, response, and datastore messages", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] add max_concurrent_active_run_count field to Schedule message", + "issues": [] + }, + { + "type": "fix", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[auditmanager] A new packaging option `cloud.google.com/go/auditmanager/apiv1main/auditmanagerpb;auditmanagerpb` for `go_package` is added", + "issues": [], + "breakingChangeNote": "[auditmanager] A new packaging option `cloud.google.com/go/auditmanager/apiv1main/auditmanagerpb;auditmanagerpb` for `go_package` is added" + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[dataform] Update GCP Client Libraries in v1beta1 to support Folders, TeamFolders, and other relevant APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] A new field `predefined_metric_spec` is added to message `.google.cloud.aiplatform.v1beta1.Metric`", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] add model_armor_config to GeminiExample", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] add max_concurrent_active_run_count field to Schedule message", + "issues": [] + }, + { + "type": "docs", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[maps-solar] Add satellite imagery to `rgb_url` description", + "issues": [] + } + ], + "version": "1.79.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-auditmanager", + "id": "a981f200-5c1c-4de9-bddb-ccbd35b1bcef", + "createTime": "2026-02-13T21:36:20.355Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[maps-places] Add `googleMapsTypeLabel` field to show type information on Google Maps", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[storagebatchoperations] add QUEUED state to Storage Batch Operations API", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[saasservicemgmt] Add AppHub related condition types to Deployment protos", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[kms] Added DeleteCryptoKey and DeleteCryptoKeyVersion RPCs to permanently remove resources", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[databasecenter] Adding Method QueryIssues of Database Center API v1beta", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[discoveryengine] add Natural Language Query Understanding fields and messages to DiscoveryEngine request, response, and datastore messages", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] add max_concurrent_active_run_count field to Schedule message", + "issues": [] + }, + { + "type": "fix", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[auditmanager] A new packaging option `cloud.google.com/go/auditmanager/apiv1main/auditmanagerpb;auditmanagerpb` for `go_package` is added", + "issues": [], + "breakingChangeNote": "[auditmanager] A new packaging option `cloud.google.com/go/auditmanager/apiv1main/auditmanagerpb;auditmanagerpb` for `go_package` is added" + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[dataform] Update GCP Client Libraries in v1beta1 to support Folders, TeamFolders, and other relevant APIs", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] A new field `predefined_metric_spec` is added to message `.google.cloud.aiplatform.v1beta1.Metric`", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] add model_armor_config to GeminiExample", + "issues": [] + }, + { + "type": "feat", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[aiplatform] add max_concurrent_active_run_count field to Schedule message", + "issues": [] + }, + { + "type": "docs", + "sha": "1041e030cf2c325d96c7e1a5eee18cd086096222", + "message": "[maps-solar] Add satellite imagery to `rgb_url` description", + "issues": [] + } + ], + "version": "1.79.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-aiplatform", + "id": "ab4ad5e0-71c8-462d-b319-faca9d90dbba", + "createTime": "2026-02-13T21:36:20.267Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "fb47842b9d10b62a418da9a4c46518482f0c46a8", + "message": "[ces] new module for ces", + "issues": [ + "11940" + ] + } + ], + "version": "1.79.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-ces", + "id": "206e3210-d97b-48b5-b8c6-9f3fdca995b7", + "createTime": "2026-02-13T21:36:20.175Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "e7e86f79419451460470ad0278e7a642464514f6", + "message": "[workloadmanager] new module for workloadmanager", + "issues": [ + "11941" + ] + } + ], + "version": "1.79.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-workloadmanager", + "id": "c19786d4-b864-4b42-a175-180f2bff5ab8", + "createTime": "2026-02-13T21:36:20.082Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-workstations", + "id": "63e4cd2a-f90b-4047-8b35-662bbe23c3c2", + "createTime": "2026-02-10T00:48:47.035Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-workspaceevents", + "id": "d9d67a28-8658-4c64-b479-20bc4bb28444", + "createTime": "2026-02-10T00:48:46.837Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-workflows", + "id": "e8ccb9e3-ba85-4a62-b4fa-3dba39f58a67", + "createTime": "2026-02-10T00:48:46.640Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-workflow-executions", + "id": "02357c14-a8a5-402c-8b30-e74bb2d37d3d", + "createTime": "2026-02-10T00:48:46.442Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-websecurityscanner", + "id": "252b243d-33c3-41e8-8b49-0512c0f2ea66", + "createTime": "2026-02-10T00:48:46.245Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-webrisk", + "id": "a0fed5ff-9876-4153-9ec9-1eb10137521f", + "createTime": "2026-02-10T00:48:46.041Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-vpcaccess", + "id": "6126b564-a51a-4a13-b2ad-812c60580467", + "createTime": "2026-02-10T00:48:45.834Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-vmwareengine", + "id": "de5742df-aa99-4d48-947c-ad7f092c9c0f", + "createTime": "2026-02-10T00:48:45.631Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-vmmigration", + "id": "6d31a226-6d4d-422d-9d05-2f1d518df4d5", + "createTime": "2026-02-10T00:48:45.435Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-visionai", + "id": "6e41af41-94b8-4e8f-946e-31b443b673c5", + "createTime": "2026-02-10T00:48:45.239Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-vision", + "id": "c15e9a5e-43d6-420e-84da-53a0d4b72ce7", + "createTime": "2026-02-10T00:48:45.041Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-video-transcoder", + "id": "bb0d2d2b-0d04-440f-ae2b-d38e7106d445", + "createTime": "2026-02-10T00:48:44.842Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-video-stitcher", + "id": "2e98ea69-af6a-4383-9ee3-3a2768a89894", + "createTime": "2026-02-10T00:48:44.638Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-live-stream", + "id": "c5458c5f-b414-4ba9-a30b-2dfa4292d4d8", + "createTime": "2026-02-10T00:48:44.438Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-video-intelligence", + "id": "79aad598-c434-4c55-9e23-a2114b309a76", + "createTime": "2026-02-10T00:48:44.242Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-vectorsearch", + "id": "670f7156-ea25-4bd7-851f-a13d409db4fa", + "createTime": "2026-02-10T00:48:44.011Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-valkey", + "id": "48407711-0fc8-404f-a972-352094497bc1", + "createTime": "2026-02-10T00:48:43.816Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-translate", + "id": "7aabd408-fafe-497b-ba34-83b98244bef5", + "createTime": "2026-02-10T00:48:43.621Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-trace", + "id": "0fa26e24-9da4-4ec2-93f8-43453821afec", + "createTime": "2026-02-10T00:48:43.427Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-tpu", + "id": "e9f3912f-b8d1-4098-a3a4-5ef2f7951eaf", + "createTime": "2026-02-10T00:48:43.234Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-texttospeech", + "id": "18c3b9b1-0f69-4958-841b-11c7871ef531", + "createTime": "2026-02-10T00:48:43.041Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-telcoautomation", + "id": "415c5b31-4539-4ffd-ad32-5216b860d1fb", + "createTime": "2026-02-10T00:48:42.848Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-tasks", + "id": "c3182f42-1aab-407a-8077-69322323d3d8", + "createTime": "2026-02-10T00:48:42.653Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-talent", + "id": "953df9b1-6746-4fb9-84d0-d1aa4e8a0351", + "createTime": "2026-02-10T00:48:42.460Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-storageinsights", + "id": "7478acbf-9956-437b-8ed6-2a10a54674e7", + "createTime": "2026-02-10T00:48:42.265Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-storagebatchoperations", + "id": "07023bea-5374-4a1a-a269-18e25ba63911", + "createTime": "2026-02-10T00:48:42.071Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-storage-transfer", + "id": "1158b95e-f3ea-4e04-af14-c538e6409493", + "createTime": "2026-02-10T00:48:41.877Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-speech", + "id": "f14195ad-7197-4b38-849d-5324e727bce1", + "createTime": "2026-02-10T00:48:41.682Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-spanneradapter", + "id": "2f970724-e5b9-49c3-8743-a825d79c4aa4", + "createTime": "2026-02-10T00:48:41.489Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-reviews", + "id": "70e74fb4-d8f1-4791-abe1-9480a8da523e", + "createTime": "2026-02-10T00:48:41.296Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-reports", + "id": "c0d07b0c-e030-42bd-be1a-d7c316e57302", + "createTime": "2026-02-10T00:48:41.101Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-quota", + "id": "f3e466a3-daba-4708-9f57-41a276777a0e", + "createTime": "2026-02-10T00:48:40.908Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-promotions", + "id": "52b160c0-aaac-48fa-8424-8b4aa4682d4e", + "createTime": "2026-02-10T00:48:40.714Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-products", + "id": "4c448b90-dc17-4151-9e2a-8b21e9844ccd", + "createTime": "2026-02-10T00:48:40.517Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-productstudio", + "id": "b1abb63a-d7d1-4d73-af18-7f55f9eb35c3", + "createTime": "2026-02-10T00:48:40.321Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-notifications", + "id": "5fbfa9c9-c493-4ec5-a65e-6cca7585b320", + "createTime": "2026-02-10T00:48:40.127Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-lfp", + "id": "3259bb0b-6698-420f-90db-b43e415d03e7", + "createTime": "2026-02-10T00:48:39.934Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-inventories", + "id": "2a41432b-ffbb-470d-af4b-763e86b6c1c7", + "createTime": "2026-02-10T00:48:39.728Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-datasources", + "id": "5f4c8707-2259-4b6a-8535-9bff21992ee5", + "createTime": "2026-02-10T00:48:39.535Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-conversions", + "id": "62be9de5-4a88-4cd9-b1aa-ad59d3302b8b", + "createTime": "2026-02-10T00:48:39.306Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-accounts", + "id": "80eb78bd-fdbf-4a42-a05a-59154e47e178", + "createTime": "2026-02-10T00:48:39.111Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-css", + "id": "e3892bf7-ac74-4f6c-853e-caa3e7d91190", + "createTime": "2026-02-10T00:48:38.918Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-shell", + "id": "8c5566f4-2f6b-4ea1-bee0-3f060efd819c", + "createTime": "2026-02-10T00:48:38.721Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-servicehealth", + "id": "3a240a7a-6cce-4894-8a9c-a836e951c41a", + "createTime": "2026-02-10T00:48:38.527Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-servicedirectory", + "id": "4b80ca9b-7540-4378-a5c6-98e8a224ad68", + "createTime": "2026-02-10T00:48:38.334Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-service-usage", + "id": "f4139d7b-5cb6-4e9e-a01b-d63d594b07a5", + "createTime": "2026-02-10T00:48:38.138Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-service-management", + "id": "770a9a9a-cb19-43a6-a369-e00252600759", + "createTime": "2026-02-10T00:48:37.941Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-service-control", + "id": "fbf2fd00-6e6f-4805-9b2f-ece211fc8f2a", + "createTime": "2026-02-10T00:48:37.738Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-securityposture", + "id": "5e81d324-f11d-4fda-bb51-345f1b161907", + "createTime": "2026-02-10T00:48:37.537Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-securitycentermanagement", + "id": "85f5f231-b6e7-4458-ab0d-d33405c6a642", + "createTime": "2026-02-10T00:48:37.344Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-securitycenter", + "id": "cf19719b-e01a-437c-9058-b4e53b4eb80c", + "createTime": "2026-02-10T00:48:37.147Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-securitycenter-settings", + "id": "d8bc4afe-f485-4de5-a567-86d2acc63ebb", + "createTime": "2026-02-10T00:48:36.954Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-security-private-ca", + "id": "c8bd1db9-a07f-4037-af60-fb8d0359cab0", + "createTime": "2026-02-10T00:48:36.755Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-securesourcemanager", + "id": "dbf28374-d678-4448-836c-9658c58681cf", + "createTime": "2026-02-10T00:48:36.561Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-secretmanager", + "id": "4b0f53eb-2ebb-445c-89ad-8ec3e4320514", + "createTime": "2026-02-10T00:48:36.369Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-scheduler", + "id": "322e033f-dfed-4dda-8d35-d4c5f53d1717", + "createTime": "2026-02-10T00:48:36.176Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-saasservicemgmt", + "id": "a09a2fb4-cf29-4aff-b450-342b4bf3be73", + "createTime": "2026-02-10T00:48:35.983Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-run", + "id": "91b4314c-ae45-4989-9bbf-0da55631e2f6", + "createTime": "2026-02-10T00:48:35.788Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-retail", + "id": "1cecc1c7-f4f0-47c1-807a-7424a6b46372", + "createTime": "2026-02-10T00:48:35.594Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-resourcemanager", + "id": "0627f88c-ae85-4476-a8a1-d0c78cfdd6ee", + "createTime": "2026-02-10T00:48:35.398Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-redis", + "id": "f6a7dd75-197e-49a7-a17a-e640c6e539bd", + "createTime": "2026-02-10T00:48:35.201Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-redis-cluster", + "id": "08168253-c7ba-42ca-82e1-432a76308811", + "createTime": "2026-02-10T00:48:35.005Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-recommender", + "id": "06d76124-57a4-4cbc-b44d-bd9356518131", + "createTime": "2026-02-10T00:48:34.808Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-recommendations-ai", + "id": "34f9b5bf-2682-4b07-8e6f-1d24b25c8499", + "createTime": "2026-02-10T00:48:34.567Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-recaptchaenterprise", + "id": "4c3f8e01-15f3-41bf-b5fb-2b20cfcb91c6", + "createTime": "2026-02-10T00:48:34.369Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-rapidmigrationassessment", + "id": "9dcb7e6c-ab76-4fec-a383-c1d3457137da", + "createTime": "2026-02-10T00:48:34.178Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-publicca", + "id": "d4726f73-0dff-4fdb-9efb-a6149b9e99bc", + "createTime": "2026-02-10T00:48:33.984Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-profiler", + "id": "3446f890-ba61-4324-8d65-d5a23b62bf41", + "createTime": "2026-02-10T00:48:33.792Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-privilegedaccessmanager", + "id": "217cd728-65e1-4a98-86df-37b91cfd5700", + "createTime": "2026-02-10T00:48:33.599Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-private-catalog", + "id": "4566d1b7-b363-41d0-934c-ba0e37fe1e41", + "createTime": "2026-02-10T00:48:33.407Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-policysimulator", + "id": "9a7445da-3b1d-45bf-8b12-70f08f376f33", + "createTime": "2026-02-10T00:48:33.214Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-policy-troubleshooter", + "id": "305cd083-c9c1-4442-8179-5e3d06cbc45f", + "createTime": "2026-02-10T00:48:33.021Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-phishingprotection", + "id": "39ecdca5-8f6b-4454-9ce6-d34c59cf9bd7", + "createTime": "2026-02-10T00:48:32.824Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-parametermanager", + "id": "49a6724b-4523-474f-af3a-a96bb4967c2c", + "createTime": "2026-02-10T00:48:32.631Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-parallelstore", + "id": "bfbe4e98-444b-4d92-9f28-58d401962b8f", + "createTime": "2026-02-10T00:48:32.435Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-os-login", + "id": "cc3ed046-ed64-48ce-8ebb-7b0254fefb18", + "createTime": "2026-02-10T00:48:32.236Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-os-config", + "id": "0b656005-b67a-4d05-a27e-0d7299f7dc74", + "createTime": "2026-02-10T00:48:32.034Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-orgpolicy", + "id": "ddf52124-6d80-4d7d-9f9a-ca2a2cd30c9e", + "createTime": "2026-02-10T00:48:31.836Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-orchestration-airflow", + "id": "7a9d84a9-cfa0-4604-ab4c-c86a0fe7aad4", + "createTime": "2026-02-10T00:48:31.642Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-oracledatabase", + "id": "12939a97-747a-4304-988f-10dd08aedc3b", + "createTime": "2026-02-10T00:48:31.445Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-optimization", + "id": "f04ac5f2-275c-46b1-a653-341a4653fa2a", + "createTime": "2026-02-10T00:48:31.242Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-notebooks", + "id": "55debb72-c281-4ac0-b7db-1965c1f8ed57", + "createTime": "2026-02-10T00:48:31.036Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-networkservices", + "id": "28006096-8227-47c9-bf9e-733f424e9189", + "createTime": "2026-02-10T00:48:30.821Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-networkconnectivity", + "id": "774da721-9842-49ed-ac61-bf2f293ab6fa", + "createTime": "2026-02-10T00:48:30.627Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-network-security", + "id": "2ca52fab-c0f7-40b8-bc25-512fbe183666", + "createTime": "2026-02-10T00:48:30.426Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-network-management", + "id": "82305617-5dce-4e1a-b8d8-108588ce4886", + "createTime": "2026-02-10T00:48:30.221Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-netapp", + "id": "212fe81f-7179-4f65-a5a3-3db41ceba251", + "createTime": "2026-02-10T00:48:30.020Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-monitoring", + "id": "cf5af689-b084-4622-8227-3c07f8f6dc3e", + "createTime": "2026-02-10T00:48:29.782Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-monitoring-metricsscope", + "id": "9c97405e-1da7-40a3-a657-6fa5cfff04f3", + "createTime": "2026-02-10T00:48:29.581Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-monitoring-dashboard", + "id": "1528659f-216c-4384-abd1-0e1c0f833cff", + "createTime": "2026-02-10T00:48:29.385Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-modelarmor", + "id": "38aab517-0b9e-431d-aa61-04ebc7a557f4", + "createTime": "2026-02-10T00:48:29.188Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-migrationcenter", + "id": "222cbe9e-8403-487c-bf1d-35ff1176bc6a", + "createTime": "2026-02-10T00:48:28.996Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-memcache", + "id": "d9d68aee-ece2-46bb-acff-fd8d6163e6a1", + "createTime": "2026-02-10T00:48:28.802Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-meet", + "id": "2d36d5f8-dbb1-4738-afc1-647d10ba7536", + "createTime": "2026-02-10T00:48:28.606Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-mediatranslation", + "id": "8d8b7b06-4e45-41ea-8654-f29195e7737a", + "createTime": "2026-02-10T00:48:28.407Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.ads-marketingplatform:admin", + "id": "421247d7-6d7e-4d11-a402-559b495fe1c9", + "createTime": "2026-02-10T00:48:28.213Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-solar", + "id": "b23efb40-9195-44ee-b9ff-4bda30ab700e", + "createTime": "2026-02-10T00:48:28.018Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-routing", + "id": "95e54aea-bf85-46cc-a69f-b95aa6da1105", + "createTime": "2026-02-10T00:48:27.820Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-routeoptimization", + "id": "4ad38611-5ada-4a03-8344-65dd5e2bf097", + "createTime": "2026-02-10T00:48:27.623Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-places", + "id": "c799baf8-46b0-4763-9078-b96b7ee10b0c", + "createTime": "2026-02-10T00:48:27.430Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-mapsplatformdatasets", + "id": "66ecc974-dd88-4214-85e4-dc8cb5c78c3f", + "createTime": "2026-02-10T00:48:27.230Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-fleetengine", + "id": "4ed9ad21-1769-433c-9c52-118f23cfb813", + "createTime": "2026-02-10T00:48:27.027Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-fleetengine-delivery", + "id": "e033f3f0-f832-4f0d-824e-7889031c1999", + "createTime": "2026-02-10T00:48:26.827Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-area-insights", + "id": "5ddc5634-88a1-46ea-9508-89d610bf136b", + "createTime": "2026-02-10T00:48:26.634Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-addressvalidation", + "id": "eef053b2-e86c-4093-b13a-b65737d155e2", + "createTime": "2026-02-10T00:48:26.442Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-managedkafka", + "id": "7ba10be7-8f2d-46d5-b42f-393533df43fb", + "createTime": "2026-02-10T00:48:26.248Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-managed-identities", + "id": "66d32f77-032e-42cc-a01b-58050c20f674", + "createTime": "2026-02-10T00:48:26.054Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-maintenance", + "id": "7575a8c5-ff92-4e50-89bf-43422bc7cda7", + "createTime": "2026-02-10T00:48:25.857Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-lustre", + "id": "6833e10c-1086-4f1c-b33c-bd8e3f371858", + "createTime": "2026-02-10T00:48:25.665Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-logging", + "id": "33d89c42-4db1-4a77-9957-0d7aa083f309", + "createTime": "2026-02-10T00:48:25.470Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-locationfinder", + "id": "07dacc84-74cb-43e3-bf9c-c75555f107da", + "createTime": "2026-02-10T00:48:25.279Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-life-sciences", + "id": "f8156f46-067b-47f2-ba0d-6c5b870ec110", + "createTime": "2026-02-10T00:48:25.058Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-licensemanager", + "id": "04a3ca61-a5d4-4ca5-90a2-8a516f074015", + "createTime": "2026-02-10T00:48:24.867Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-language", + "id": "3130b8ed-4322-4bb1-8a5f-6e6f9e8bf14b", + "createTime": "2026-02-10T00:48:24.674Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-kmsinventory", + "id": "f2ebb2d8-f6f7-4883-a73e-26440d33a7e6", + "createTime": "2026-02-10T00:48:24.482Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-kms", + "id": "581465d5-6e40-494e-a81e-4415c55ebd8b", + "createTime": "2026-02-10T00:48:24.290Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-order-tracking", + "id": "5d0e7259-0a25-4558-8786-7248d95ca980", + "createTime": "2026-02-10T00:48:24.099Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-issue-resolution", + "id": "7c45642a-624e-4987-b949-1f9da9998e5d", + "createTime": "2026-02-10T00:48:23.907Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-iot", + "id": "cc3facbd-a519-48c7-9ad3-5038d532d919", + "createTime": "2026-02-10T00:48:23.716Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-infra-manager", + "id": "08715566-8ed3-4e03-b30a-f622c3398c0a", + "createTime": "2026-02-10T00:48:23.525Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-ids", + "id": "5d78a9ee-8238-4fa9-b98c-fe4581473342", + "createTime": "2026-02-10T00:48:23.334Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-iap", + "id": "9f1a0c7c-3ba0-42bd-8af5-7c679d6ef57c", + "createTime": "2026-02-10T00:48:23.142Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-iamcredentials", + "id": "62f42271-8d90-4bfe-8307-2d50ca2a1762", + "createTime": "2026-02-10T00:48:22.950Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-iam-policy", + "id": "8ea3e264-5531-4857-940a-4b580953c6d6", + "createTime": "2026-02-10T00:48:22.756Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-iam-admin", + "id": "41f7697f-93a4-4ecc-ae94-ecbe14cd70c2", + "createTime": "2026-02-10T00:48:22.565Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-hypercomputecluster", + "id": "6a1dfa73-9959-472c-87a1-fa560fd1801e", + "createTime": "2026-02-10T00:48:22.373Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-gsuite-addons", + "id": "e46f7ef2-2b6d-4fce-9429-405d1323b3ec", + "createTime": "2026-02-10T00:48:22.181Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "io.grafeas:grafeas", + "id": "dccdc51b-31af-4598-b62e-df5d04e64bc4", + "createTime": "2026-02-10T00:48:21.989Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-gkerecommender", + "id": "6f5341ab-2ff4-47f1-a5b5-2935d905e520", + "createTime": "2026-02-10T00:48:21.798Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-gkehub", + "id": "06d0bffe-eb0c-4526-a116-d96e3df506b7", + "createTime": "2026-02-10T00:48:21.605Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-gke-multi-cloud", + "id": "e730d806-8728-4f64-9c7f-dcc60984f47c", + "createTime": "2026-02-10T00:48:21.410Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-gke-connect-gateway", + "id": "369ef14d-5523-465e-b110-f561f381b8ce", + "createTime": "2026-02-10T00:48:21.217Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-gke-backup", + "id": "986aaa34-f730-407a-b946-af9efaca61e3", + "createTime": "2026-02-10T00:48:21.025Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-geminidataanalytics", + "id": "6f27f609-3b90-489b-91e8-9b4962f1eb85", + "createTime": "2026-02-10T00:48:20.821Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-gdchardwaremanagement", + "id": "0da975cc-cab4-4538-add7-a094a3312e80", + "createTime": "2026-02-10T00:48:20.628Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-functions", + "id": "d7439bb6-fb22-47de-aecb-d85b7248c164", + "createTime": "2026-02-10T00:48:20.400Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-financialservices", + "id": "699d2db6-c6c6-4b42-a206-ded94426c8a6", + "createTime": "2026-02-10T00:48:20.200Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-filestore", + "id": "b23ad978-eeed-4197-ba26-4ee56333d852", + "createTime": "2026-02-10T00:48:20.006Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-eventarc", + "id": "b1595669-2e1e-4643-8acf-b1c65402535c", + "createTime": "2026-02-10T00:48:19.810Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-eventarc-publishing", + "id": "4137ce3b-6354-4d8b-9466-d32b2cb6d0b7", + "createTime": "2026-02-10T00:48:19.614Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-essential-contacts", + "id": "34cdedb2-f45a-4864-af0c-dc1f27fbcd80", + "createTime": "2026-02-10T00:48:19.419Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-errorreporting", + "id": "3dbf45cb-93e9-440b-bdd2-f655b71cd8b0", + "createTime": "2026-02-10T00:48:19.228Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-enterpriseknowledgegraph", + "id": "d3447437-a2b8-4a6c-bb18-6cb33d598aec", + "createTime": "2026-02-10T00:48:19.031Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-edgenetwork", + "id": "0612adf0-d621-48d8-8fdf-2b0cbc86d1d5", + "createTime": "2026-02-10T00:48:18.826Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-domains", + "id": "4ca4f43a-4d1f-4e8f-94e8-c5cf2310ed28", + "createTime": "2026-02-10T00:48:18.626Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-document-ai", + "id": "eca6fd68-490b-48b1-a5eb-886e32a5d0c7", + "createTime": "2026-02-10T00:48:18.431Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dms", + "id": "8f2fb4e3-7d7d-4511-8daf-82b930553b2f", + "createTime": "2026-02-10T00:48:18.240Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dlp", + "id": "6003572b-018d-4473-87f6-05be7e404e22", + "createTime": "2026-02-10T00:48:18.044Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-distributedcloudedge", + "id": "7bea6767-becd-4c13-988e-7dfe70bb1387", + "createTime": "2026-02-10T00:48:17.851Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-discoveryengine", + "id": "f4a0cc40-14b7-4e85-8e0a-cf20e67dbb2a", + "createTime": "2026-02-10T00:48:17.661Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dialogflow", + "id": "a420e0e9-44ea-4f2b-ad26-2795de4a0817", + "createTime": "2026-02-10T00:48:17.471Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dialogflow-cx", + "id": "ec7b2c69-ee49-448f-a2ae-113064cdf11f", + "createTime": "2026-02-10T00:48:17.281Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-devicestreaming", + "id": "2d71e8bd-ce00-4c31-9f51-0e24335b3f16", + "createTime": "2026-02-10T00:48:17.089Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-developerconnect", + "id": "005a0f7d-f0c6-41b1-bf05-3003c186aa4c", + "createTime": "2026-02-10T00:48:16.898Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-deploy", + "id": "61c82642-1d7a-4add-a1a0-1560901b3844", + "createTime": "2026-02-10T00:48:16.708Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-datastream", + "id": "f026b6c7-9427-4d04-9dbc-71008fada2a3", + "createTime": "2026-02-10T00:48:16.517Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dataproc", + "id": "4211cc43-7856-41f8-ae14-21d93ef21361", + "createTime": "2026-02-10T00:48:16.326Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dataproc-metastore", + "id": "680087bd-c3d8-4d8b-9998-e3a6df695738", + "createTime": "2026-02-10T00:48:16.132Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dataplex", + "id": "2f5505df-a06d-41fd-81a0-4536e80968c9", + "createTime": "2026-02-10T00:48:15.941Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.api-ads:data-manager", + "id": "cebfe679-eeea-496f-8b3d-e27645d9d0c7", + "createTime": "2026-02-10T00:48:15.712Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-datalineage", + "id": "b4a28203-7c14-4f22-8b47-dc7b66c103d6", + "createTime": "2026-02-10T00:48:15.516Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-datalabeling", + "id": "267f2109-d6e3-4b4b-9826-b98883eb1a2f", + "createTime": "2026-02-10T00:48:15.315Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dataform", + "id": "54126c22-3163-41b9-8848-524fb04e4d6e", + "createTime": "2026-02-10T00:48:15.107Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dataflow", + "id": "eff4146e-6097-4a3f-9a9b-40e0493ff9d3", + "createTime": "2026-02-10T00:48:14.893Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-datacatalog", + "id": "26121921-810a-4189-baf9-8d5641113041", + "createTime": "2026-02-10T00:48:14.700Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-databasecenter", + "id": "201cbc9b-77ed-4dd0-9ea5-80f501b8bf1e", + "createTime": "2026-02-10T00:48:14.510Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-data-fusion", + "id": "e6e318bb-d903-4b2a-9807-ddc6d10f3ad7", + "createTime": "2026-02-10T00:48:14.318Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-contentwarehouse", + "id": "3ba62149-289c-41c9-98a9-bb2ddad9e9ec", + "createTime": "2026-02-10T00:48:14.127Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-containeranalysis", + "id": "f7b22016-5908-4bbb-8973-4de9af212a49", + "createTime": "2026-02-10T00:48:13.931Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-container", + "id": "92794eed-1515-43d8-852c-57f4bb94a0d0", + "createTime": "2026-02-10T00:48:13.741Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-contact-center-insights", + "id": "dce8da9e-9665-4622-ade0-4e1681411b66", + "createTime": "2026-02-10T00:48:13.549Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-connectgateway", + "id": "75d95f6c-02aa-47c2-90e6-b3fc4afe98c0", + "createTime": "2026-02-10T00:48:13.353Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-configdelivery", + "id": "1deddea1-24d8-4cac-b90c-174373fcceb2", + "createTime": "2026-02-10T00:48:13.160Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-confidentialcomputing", + "id": "dd1f5d3f-9888-421d-b892-d145f0835561", + "createTime": "2026-02-10T00:48:12.958Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-compute", + "id": "62c99c97-cd5d-4c73-add2-4475d3ff9e47", + "createTime": "2026-02-10T00:48:12.766Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-cloudsupport", + "id": "fcddc4fe-9f07-4edd-8b1d-2355223c86e0", + "createTime": "2026-02-10T00:48:12.576Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-cloudsecuritycompliance", + "id": "551ee175-6191-4a10-83ea-2a1305f9ad57", + "createTime": "2026-02-10T00:48:12.385Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-cloudquotas", + "id": "d752d52b-25f2-41cd-a0ba-98aee3f87cf4", + "createTime": "2026-02-10T00:48:12.194Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-cloudcontrolspartner", + "id": "5d5980ae-b50a-4ede-8672-b58f9b742c6b", + "createTime": "2026-02-10T00:48:12.003Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-cloudcommerceconsumerprocurement", + "id": "0fc1e586-cb4b-4811-8bdf-4a97bc3db3ef", + "createTime": "2026-02-10T00:48:11.809Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-build", + "id": "75a9a76f-63c8-4609-a7bb-195e206bef75", + "createTime": "2026-02-10T00:48:11.614Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-cloudapiregistry", + "id": "0818e569-6781-4757-b232-fa7e8be4e8a2", + "createTime": "2026-02-10T00:48:11.421Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-chronicle", + "id": "29098553-7e8d-49a3-9e94-c077dee1ca64", + "createTime": "2026-02-10T00:48:11.228Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-chat", + "id": "f45d1fd4-4165-4741-b4a3-23fdf1371d79", + "createTime": "2026-02-10T00:48:10.998Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-channel", + "id": "618d277d-5680-43ce-8cee-d86e22fee309", + "createTime": "2026-02-10T00:48:10.798Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-certificate-manager", + "id": "c9b05fe4-3064-4d20-813d-8612c3541225", + "createTime": "2026-02-10T00:48:10.594Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-capacityplanner", + "id": "e6c5f05c-d7c4-4ef0-b853-b3b1569a0957", + "createTime": "2026-02-10T00:48:10.402Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-binary-authorization", + "id": "520375d7-6b59-48c4-a7a6-ac803e7af8d8", + "createTime": "2026-02-10T00:48:10.202Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-billingbudgets", + "id": "a2a2f30b-7566-4381-810a-7f134f389315", + "createTime": "2026-02-10T00:48:10.005Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-billing", + "id": "ab6186c6-3100-4ee8-be73-5ad45d7d30b6", + "createTime": "2026-02-10T00:48:09.800Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-bigqueryreservation", + "id": "22ef305f-a95b-4bfc-a960-d70b2548fae2", + "createTime": "2026-02-10T00:48:09.587Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-bigquerymigration", + "id": "fadff767-590e-4268-8b37-bf4d71eaa0e4", + "createTime": "2026-02-10T00:48:09.392Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-bigquerydatatransfer", + "id": "548aea69-42a1-451e-b37b-6364beade188", + "createTime": "2026-02-10T00:48:09.203Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-bigquerydatapolicy", + "id": "4c858ad8-d292-4093-b862-14cda784ac9a", + "createTime": "2026-02-10T00:48:09.012Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-bigqueryconnection", + "id": "30cfef75-80b5-4a79-b5b0-63b957fefa26", + "createTime": "2026-02-10T00:48:08.820Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-bigquery-data-exchange", + "id": "b6639be2-5d46-45f5-af25-7f9d435c021c", + "createTime": "2026-02-10T00:48:08.630Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-biglake", + "id": "220e083c-6cfc-4afb-b336-bae2e62e3a05", + "createTime": "2026-02-10T00:48:08.438Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-beyondcorp-clientgateways", + "id": "3a372742-cb7c-4c1c-9269-a4077594419e", + "createTime": "2026-02-10T00:48:08.247Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-beyondcorp-clientconnectorservices", + "id": "761839a6-def6-4a43-bfac-e941b487e01e", + "createTime": "2026-02-10T00:48:08.056Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-beyondcorp-appgateways", + "id": "7983ccee-b116-473e-9035-87d508f62d52", + "createTime": "2026-02-10T00:48:07.865Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-beyondcorp-appconnectors", + "id": "82d53c9d-a298-4bef-aa37-54f7b43915fd", + "createTime": "2026-02-10T00:48:07.671Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-beyondcorp-appconnections", + "id": "326f15e4-e36d-4325-851c-7557d22b303d", + "createTime": "2026-02-10T00:48:07.471Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-batch", + "id": "acda708f-5e7e-4e9b-bf56-57c686a4a245", + "createTime": "2026-02-10T00:48:07.268Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-bare-metal-solution", + "id": "a3432c04-f933-4db5-9933-17036fc4da7b", + "createTime": "2026-02-10T00:48:07.062Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-backupdr", + "id": "fcf0cd8c-0c19-4f4f-abe9-6950d824d729", + "createTime": "2026-02-10T00:48:06.857Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-automl", + "id": "4ede9803-c96b-41d7-be34-62419f26dc2c", + "createTime": "2026-02-10T00:48:06.659Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-auditmanager", + "id": "544d3ad8-fd53-4756-8cf4-d0e2d15913f5", + "createTime": "2026-02-10T00:48:06.457Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-assured-workloads", + "id": "9fb85102-ee1a-43d7-9e21-618c144a4c14", + "createTime": "2026-02-10T00:48:06.227Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-asset", + "id": "6571d990-ccc8-45c0-acfc-aeffd36b55fc", + "createTime": "2026-02-10T00:48:06.023Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-artifact-registry", + "id": "85167294-eeec-431e-bc20-682bb1ce31be", + "createTime": "2026-02-10T00:48:05.812Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.area120:google-area120-tables", + "id": "2f6b26aa-f373-4000-b6e5-7bf509c6b911", + "createTime": "2026-02-10T00:48:05.608Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-apphub", + "id": "901b698e-74f5-4ddf-97f7-60920411e32f", + "createTime": "2026-02-10T00:48:05.402Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-appengine-admin", + "id": "026bfc22-c29c-4be7-952f-13bba26b3f92", + "createTime": "2026-02-10T00:48:05.196Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-apikeys", + "id": "701bbebb-afcc-4d49-b1cd-32951b51c1bd", + "createTime": "2026-02-10T00:48:04.999Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-apihub", + "id": "544911ce-6452-40b5-8a97-f3c81456c998", + "createTime": "2026-02-10T00:48:04.801Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-apigee-registry", + "id": "0cdb506a-67e9-40d8-a07f-da86ce0648fd", + "createTime": "2026-02-10T00:48:04.593Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-apigee-connect", + "id": "35272546-8b87-406d-94fa-6920fc589b30", + "createTime": "2026-02-10T00:48:04.382Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-api-gateway", + "id": "a18f42af-16c2-4ea8-b0e3-00b168757792", + "createTime": "2026-02-10T00:48:04.185Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-analyticshub", + "id": "31f37d2a-a684-4105-a3e6-2917e4e8149c", + "createTime": "2026-02-10T00:48:03.989Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.analytics:google-analytics-data", + "id": "c4d566aa-2f28-4813-a6b7-16d9eb0893e5", + "createTime": "2026-02-10T00:48:03.793Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.analytics:google-analytics-admin", + "id": "becaa57d-cd3b-4bec-8723-6a189ddd74e2", + "createTime": "2026-02-10T00:48:03.597Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-alloydb", + "id": "cb2ddb16-238b-4e49-ad5a-72731e81f4b8", + "createTime": "2026-02-10T00:48:03.401Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-alloydb-connectors", + "id": "fef4a7cd-384b-4e16-850c-2460541f838d", + "createTime": "2026-02-10T00:48:03.204Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-aiplatform", + "id": "455d008e-9fe0-4d3e-86d0-1eeb2122305f", + "createTime": "2026-02-10T00:48:03.004Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-advisorynotifications", + "id": "f04f4d1f-0a1e-46bd-aa8a-23d8c2f28e03", + "createTime": "2026-02-10T00:48:02.797Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.api-ads:ad-manager", + "id": "47cfbe62-0c84-4438-b8f3-4003f4498b66", + "createTime": "2026-02-10T00:48:02.575Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-identity-accesscontextmanager", + "id": "52173bf8-fee7-429c-b0a8-822a395a0d04", + "createTime": "2026-02-10T00:48:02.359Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "update the Java code generator (gapic-generator-java) to 2.66.1", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[document-ai] A new field `revisions` is added to message `.google.cloud.documentai.v1beta3.Evaluation`", + "issues": [], + "breakingChangeNote": "The `SpannerIndexingConfig` message and the `spanner_indexing_config` field within the `Dataset` message have been removed. Client code referencing these will need to stop referencing these in case of an error docs: [document-ai] Updated comments for various fields and messages" + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] add Vertex Multimodal Datasets as input and output types in `google.cloud.aiplatform.v1beta1.BatchPredictionJob`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[confidentialcomputing] add Nvidia Attestation proto message with its relevant fields and ConfidentialGke options", + "issues": [] + }, + { + "type": "fix", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`", + "issues": [], + "breakingChangeNote": "[visionai] An existing default host `visionai.googleapis.com` is changed to `warehouse-visionai.googleapis.com` in service `Warehouse`" + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1beta1.Dataset` and `.google.cloud.aiplatform.v1beta1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[artifact-registry] add DIRSUM_SHA256 hash type", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] update documentation of `.google.cloud.aiplatform.v1.DatasetService`, `.google.cloud.aiplatform.v1.Dataset`, and `.google.cloud.aiplatform.v1.DatasetVersion`", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[gkehub] Add GKE Hub teams scope and RBAC GAPIC", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Force-delete for RagCorpora, ignoring any external errors and ensuring deletion of the RagCorpus", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[chat] Addition of QuoteType enum, QuotedMessageSnapshot & ForwardMetadata in the QuotedMessageMetadata proto", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[geminidataanalytics] add ClarificationMessage, thought-signature, formatted-data", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[vectorsearch] add SearchHint to SemanticSearch requests", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[aiplatform] Add `fps` to message `VideoMetadata`", + "issues": [] + }, + { + "type": "docs", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[datamanager] describe additional URI format for kek_uri in GcpEncryptionInfo and AwsKmsEncryptionInfo", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[cloudquotas] Hierarchical Quota Adjuster", + "issues": [] + }, + { + "type": "feat", + "sha": "91994bab571960f2d5e29de31a433c7c97808fa2", + "message": "[dialogflow] added a new field StreamingAnalyzeContentRequest.output_multiple_utterances", + "issues": [] + } + ], + "version": "1.78.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-accessapproval", + "id": "73a441d8-e484-4589-9a4c-9802ec415168", + "createTime": "2026-02-10T00:48:02.131Z" + }, { "changes": [ { @@ -1073352,5 +1101626,5 @@ "createTime": "2023-02-03T16:27:23.198Z" } ], - "updateTime": "2026-01-29T19:08:54.772Z" + "updateTime": "2026-02-13T21:36:21.045Z" } \ No newline at end of file diff --git a/gapic-libraries-bom/pom.xml b/gapic-libraries-bom/pom.xml index 03b0c03e4d60..aa3cf7ded323 100644 --- a/gapic-libraries-bom/pom.xml +++ b/gapic-libraries-bom/pom.xml @@ -4,7 +4,7 @@ com.google.cloud gapic-libraries-bom pom - 1.78.0-SNAPSHOT + 1.79.0 Google Cloud Java BOM BOM for the libraries in google-cloud-java repository. Users should not @@ -15,7 +15,7 @@ google-cloud-pom-parent com.google.cloud - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-pom-parent/pom.xml @@ -24,1417 +24,1438 @@ com.google.analytics google-analytics-admin-bom - 0.94.0-SNAPSHOT + 0.95.0 pom import com.google.analytics google-analytics-data-bom - 0.95.0-SNAPSHOT + 0.96.0 pom import com.google.area120 google-area120-tables-bom - 0.88.0-SNAPSHOT + 0.89.0 pom import com.google.cloud google-cloud-accessapproval-bom - 2.85.0-SNAPSHOT + 2.86.0 pom import com.google.cloud google-cloud-advisorynotifications-bom - 0.73.0-SNAPSHOT + 0.74.0 pom import com.google.cloud google-cloud-aiplatform-bom - 3.85.0-SNAPSHOT + 3.86.0 pom import com.google.cloud google-cloud-alloydb-bom - 0.73.0-SNAPSHOT + 0.74.0 pom import com.google.cloud google-cloud-alloydb-connectors-bom - 0.62.0-SNAPSHOT + 0.63.0 pom import com.google.cloud google-cloud-analyticshub-bom - 0.81.0-SNAPSHOT + 0.82.0 pom import com.google.cloud google-cloud-api-gateway-bom - 2.84.0-SNAPSHOT + 2.85.0 pom import com.google.cloud google-cloud-apigee-connect-bom - 2.84.0-SNAPSHOT + 2.85.0 pom import com.google.cloud google-cloud-apigee-registry-bom - 0.84.0-SNAPSHOT + 0.85.0 pom import com.google.cloud google-cloud-apihub-bom - 0.37.0-SNAPSHOT + 0.38.0 pom import com.google.cloud google-cloud-apikeys-bom - 0.82.0-SNAPSHOT + 0.83.0 pom import com.google.cloud google-cloud-appengine-admin-bom - 2.84.0-SNAPSHOT + 2.85.0 pom import com.google.cloud google-cloud-apphub-bom - 0.48.0-SNAPSHOT + 0.49.0 pom import com.google.cloud google-cloud-artifact-registry-bom - 1.83.0-SNAPSHOT + 1.84.0 pom import com.google.cloud google-cloud-asset-bom - 3.88.0-SNAPSHOT + 3.89.0 pom import com.google.cloud google-cloud-assured-workloads-bom - 2.84.0-SNAPSHOT + 2.85.0 pom import com.google.cloud google-cloud-auditmanager-bom - 0.2.0-SNAPSHOT + 0.3.0 pom import com.google.cloud google-cloud-automl-bom - 2.84.0-SNAPSHOT + 2.85.0 pom import com.google.cloud google-cloud-backupdr-bom - 0.43.0-SNAPSHOT + 0.44.0 pom import com.google.cloud google-cloud-bare-metal-solution-bom - 0.84.0-SNAPSHOT + 0.85.0 pom import com.google.cloud google-cloud-batch-bom - 0.84.0-SNAPSHOT + 0.85.0 pom import com.google.cloud google-cloud-beyondcorp-appconnections-bom - 0.82.0-SNAPSHOT + 0.83.0 pom import com.google.cloud google-cloud-beyondcorp-appconnectors-bom - 0.82.0-SNAPSHOT + 0.83.0 pom import com.google.cloud google-cloud-beyondcorp-appgateways-bom - 0.82.0-SNAPSHOT + 0.83.0 pom import com.google.cloud google-cloud-beyondcorp-clientconnectorservices-bom - 0.82.0-SNAPSHOT + 0.83.0 pom import com.google.cloud google-cloud-beyondcorp-clientgateways-bom - 0.82.0-SNAPSHOT + 0.83.0 pom import com.google.cloud google-cloud-biglake-bom - 0.72.0-SNAPSHOT + 0.73.0 pom import com.google.cloud google-cloud-bigquery-data-exchange-bom - 2.79.0-SNAPSHOT + 2.80.0 pom import com.google.cloud google-cloud-bigqueryconnection-bom - 2.86.0-SNAPSHOT + 2.87.0 pom import com.google.cloud google-cloud-bigquerydatapolicy-bom - 0.81.0-SNAPSHOT + 0.82.0 pom import com.google.cloud google-cloud-bigquerydatatransfer-bom - 2.84.0-SNAPSHOT + 2.85.0 pom import com.google.cloud google-cloud-bigquerymigration-bom - 0.87.0-SNAPSHOT + 0.88.0 pom import com.google.cloud google-cloud-bigqueryreservation-bom - 2.85.0-SNAPSHOT + 2.86.0 pom import com.google.cloud google-cloud-billing-bom - 2.84.0-SNAPSHOT + 2.85.0 pom import com.google.cloud google-cloud-billingbudgets-bom - 2.84.0-SNAPSHOT + 2.85.0 pom import com.google.cloud google-cloud-binary-authorization-bom - 1.83.0-SNAPSHOT + 1.84.0 pom import com.google.cloud google-cloud-build-bom - 3.86.0-SNAPSHOT + 3.87.0 pom import com.google.cloud google-cloud-capacityplanner-bom - 0.7.0-SNAPSHOT + 0.8.0 pom import com.google.cloud google-cloud-certificate-manager-bom - 0.87.0-SNAPSHOT + 0.88.0 + pom + import + + + com.google.cloud + google-cloud-ces-bom + 0.1.0 pom import com.google.cloud google-cloud-channel-bom - 3.88.0-SNAPSHOT + 3.89.0 pom import com.google.cloud google-cloud-chat-bom - 0.48.0-SNAPSHOT + 0.49.0 pom import com.google.cloud google-cloud-chronicle-bom - 0.22.0-SNAPSHOT + 0.23.0 pom import com.google.cloud google-cloud-cloudapiregistry-bom - 0.3.0-SNAPSHOT + 0.4.0 pom import com.google.cloud google-cloud-cloudcommerceconsumerprocurement-bom - 0.82.0-SNAPSHOT + 0.83.0 pom import com.google.cloud google-cloud-cloudcontrolspartner-bom - 0.48.0-SNAPSHOT + 0.49.0 pom import com.google.cloud google-cloud-cloudquotas-bom - 0.52.0-SNAPSHOT + 0.53.0 pom import com.google.cloud google-cloud-cloudsecuritycompliance-bom - 0.11.0-SNAPSHOT + 0.12.0 pom import com.google.cloud google-cloud-cloudsupport-bom - 0.68.0-SNAPSHOT + 0.69.0 pom import com.google.cloud google-cloud-compute-bom - 1.94.0-SNAPSHOT + 1.95.0 pom import com.google.cloud google-cloud-confidentialcomputing-bom - 0.70.0-SNAPSHOT + 0.71.0 pom import com.google.cloud google-cloud-configdelivery-bom - 0.18.0-SNAPSHOT + 0.19.0 pom import com.google.cloud google-cloud-connectgateway-bom - 0.36.0-SNAPSHOT + 0.37.0 pom import com.google.cloud google-cloud-contact-center-insights-bom - 2.84.0-SNAPSHOT + 2.85.0 pom import com.google.cloud google-cloud-container-bom - 2.87.0-SNAPSHOT + 2.88.0 pom import com.google.cloud google-cloud-containeranalysis-bom - 2.85.0-SNAPSHOT + 2.86.0 pom import com.google.cloud google-cloud-contentwarehouse-bom - 0.80.0-SNAPSHOT + 0.81.0 pom import com.google.cloud google-cloud-data-fusion-bom - 1.84.0-SNAPSHOT + 1.85.0 pom import com.google.cloud google-cloud-databasecenter-bom - 0.5.0-SNAPSHOT + 0.6.0 pom import com.google.cloud google-cloud-datacatalog-bom - 1.90.0-SNAPSHOT + 1.91.0 pom import com.google.cloud google-cloud-dataflow-bom - 0.88.0-SNAPSHOT + 0.89.0 pom import com.google.cloud google-cloud-dataform-bom - 0.83.0-SNAPSHOT + 0.84.0 pom import com.google.cloud google-cloud-datalabeling-bom - 0.204.0-SNAPSHOT + 0.205.0 pom import com.google.cloud google-cloud-datalineage-bom - 0.76.0-SNAPSHOT + 0.77.0 pom import com.google.cloud google-cloud-dataplex-bom - 1.82.0-SNAPSHOT + 1.83.0 pom import com.google.cloud google-cloud-dataproc-bom - 4.81.0-SNAPSHOT + 4.82.0 pom import com.google.cloud google-cloud-dataproc-metastore-bom - 2.85.0-SNAPSHOT + 2.86.0 pom import com.google.cloud google-cloud-datastream-bom - 1.83.0-SNAPSHOT + 1.84.0 pom import com.google.cloud google-cloud-deploy-bom - 1.82.0-SNAPSHOT + 1.83.0 pom import com.google.cloud google-cloud-developerconnect-bom - 0.41.0-SNAPSHOT + 0.42.0 pom import com.google.cloud google-cloud-devicestreaming-bom - 0.24.0-SNAPSHOT + 0.25.0 pom import com.google.cloud google-cloud-dialogflow-bom - 4.90.0-SNAPSHOT + 4.91.0 pom import com.google.cloud google-cloud-dialogflow-cx-bom - 0.95.0-SNAPSHOT + 0.96.0 pom import com.google.cloud google-cloud-discoveryengine-bom - 0.80.0-SNAPSHOT + 0.81.0 pom import com.google.cloud google-cloud-distributedcloudedge-bom - 0.81.0-SNAPSHOT + 0.82.0 pom import com.google.cloud google-cloud-dlp-bom - 3.88.0-SNAPSHOT + 3.89.0 pom import com.google.cloud google-cloud-dms-bom - 2.83.0-SNAPSHOT + 2.84.0 pom import com.google.cloud google-cloud-dns - 2.82.0-SNAPSHOT + 2.83.0 com.google.cloud google-cloud-document-ai-bom - 2.88.0-SNAPSHOT + 2.89.0 pom import com.google.cloud google-cloud-domains-bom - 1.81.0-SNAPSHOT + 1.82.0 pom import com.google.cloud google-cloud-edgenetwork-bom - 0.52.0-SNAPSHOT + 0.53.0 pom import com.google.cloud google-cloud-enterpriseknowledgegraph-bom - 0.80.0-SNAPSHOT + 0.81.0 pom import com.google.cloud google-cloud-errorreporting-bom - 0.205.0-beta-SNAPSHOT + 0.206.0-beta pom import com.google.cloud google-cloud-essential-contacts-bom - 2.84.0-SNAPSHOT + 2.85.0 pom import com.google.cloud google-cloud-eventarc-bom - 1.84.0-SNAPSHOT + 1.85.0 pom import com.google.cloud google-cloud-eventarc-publishing-bom - 0.84.0-SNAPSHOT + 0.85.0 pom import com.google.cloud google-cloud-filestore-bom - 1.85.0-SNAPSHOT + 1.86.0 pom import com.google.cloud google-cloud-financialservices-bom - 0.25.0-SNAPSHOT + 0.26.0 pom import com.google.cloud google-cloud-functions-bom - 2.86.0-SNAPSHOT + 2.87.0 pom import com.google.cloud google-cloud-gdchardwaremanagement-bom - 0.39.0-SNAPSHOT + 0.40.0 pom import com.google.cloud google-cloud-geminidataanalytics-bom - 0.12.0-SNAPSHOT + 0.13.0 pom import com.google.cloud google-cloud-gke-backup-bom - 0.83.0-SNAPSHOT + 0.84.0 pom import com.google.cloud google-cloud-gke-connect-gateway-bom - 0.85.0-SNAPSHOT + 0.86.0 pom import com.google.cloud google-cloud-gke-multi-cloud-bom - 0.83.0-SNAPSHOT + 0.84.0 pom import com.google.cloud google-cloud-gkehub-bom - 1.84.0-SNAPSHOT + 1.85.0 pom import com.google.cloud google-cloud-gkerecommender-bom - 0.4.0-SNAPSHOT + 0.5.0 pom import com.google.cloud google-cloud-gsuite-addons-bom - 2.84.0-SNAPSHOT + 2.85.0 pom import com.google.cloud google-cloud-hypercomputecluster-bom - 0.4.0-SNAPSHOT + 0.5.0 pom import com.google.cloud google-cloud-iamcredentials-bom - 2.84.0-SNAPSHOT + 2.85.0 pom import com.google.cloud google-cloud-iap-bom - 0.40.0-SNAPSHOT + 0.41.0 pom import com.google.cloud google-cloud-ids-bom - 1.83.0-SNAPSHOT + 1.84.0 pom import com.google.cloud google-cloud-infra-manager-bom - 0.61.0-SNAPSHOT + 0.62.0 pom import com.google.cloud google-cloud-iot-bom - 2.84.0-SNAPSHOT + 2.85.0 pom import com.google.cloud google-cloud-kms-bom - 2.87.0-SNAPSHOT + 2.88.0 pom import com.google.cloud google-cloud-kmsinventory-bom - 0.73.0-SNAPSHOT + 0.74.0 pom import com.google.cloud google-cloud-language-bom - 2.85.0-SNAPSHOT + 2.86.0 pom import com.google.cloud google-cloud-licensemanager-bom - 0.17.0-SNAPSHOT + 0.18.0 pom import com.google.cloud google-cloud-life-sciences-bom - 0.86.0-SNAPSHOT + 0.87.0 pom import com.google.cloud google-cloud-live-stream-bom - 0.86.0-SNAPSHOT + 0.87.0 pom import com.google.cloud google-cloud-locationfinder-bom - 0.9.0-SNAPSHOT + 0.10.0 + pom + import + + + com.google.cloud + google-cloud-logging-bom + 3.26.0 pom import com.google.cloud google-cloud-lustre-bom - 0.24.0-SNAPSHOT + 0.25.0 pom import com.google.cloud google-cloud-maintenance-bom - 0.18.0-SNAPSHOT + 0.19.0 pom import com.google.cloud google-cloud-managed-identities-bom - 1.82.0-SNAPSHOT + 1.83.0 pom import com.google.cloud google-cloud-managedkafka-bom - 0.40.0-SNAPSHOT + 0.41.0 pom import com.google.cloud google-cloud-mediatranslation-bom - 0.90.0-SNAPSHOT + 0.91.0 pom import com.google.cloud google-cloud-meet-bom - 0.51.0-SNAPSHOT + 0.52.0 pom import com.google.cloud google-cloud-memcache-bom - 2.84.0-SNAPSHOT + 2.85.0 pom import com.google.cloud google-cloud-migrationcenter-bom - 0.66.0-SNAPSHOT + 0.67.0 pom import com.google.cloud google-cloud-modelarmor-bom - 0.25.0-SNAPSHOT + 0.26.0 pom import com.google.cloud google-cloud-monitoring-bom - 3.85.0-SNAPSHOT + 3.86.0 pom import com.google.cloud google-cloud-monitoring-dashboard-bom - 2.86.0-SNAPSHOT + 2.87.0 pom import com.google.cloud google-cloud-monitoring-metricsscope-bom - 0.78.0-SNAPSHOT + 0.79.0 pom import com.google.cloud google-cloud-netapp-bom - 0.63.0-SNAPSHOT + 0.64.0 pom import com.google.cloud google-cloud-network-management-bom - 1.85.0-SNAPSHOT + 1.86.0 pom import com.google.cloud google-cloud-network-security-bom - 0.87.0-SNAPSHOT + 0.88.0 pom import com.google.cloud google-cloud-networkconnectivity-bom - 1.83.0-SNAPSHOT + 1.84.0 pom import com.google.cloud google-cloud-networkservices-bom - 0.40.0-SNAPSHOT + 0.41.0 pom import com.google.cloud google-cloud-notebooks-bom - 1.82.0-SNAPSHOT + 1.83.0 pom import com.google.cloud google-cloud-notification - 0.202.0-beta-SNAPSHOT + 0.203.0-beta com.google.cloud google-cloud-optimization-bom - 1.82.0-SNAPSHOT + 1.83.0 pom import com.google.cloud google-cloud-oracledatabase-bom - 0.33.0-SNAPSHOT + 0.34.0 pom import com.google.cloud google-cloud-orchestration-airflow-bom - 1.84.0-SNAPSHOT + 1.85.0 pom import com.google.cloud google-cloud-orgpolicy-bom - 2.84.0-SNAPSHOT + 2.85.0 pom import com.google.cloud google-cloud-os-config-bom - 2.86.0-SNAPSHOT + 2.87.0 pom import com.google.cloud google-cloud-os-login-bom - 2.83.0-SNAPSHOT + 2.84.0 pom import com.google.cloud google-cloud-parallelstore-bom - 0.47.0-SNAPSHOT + 0.48.0 pom import com.google.cloud google-cloud-parametermanager-bom - 0.28.0-SNAPSHOT + 0.29.0 pom import com.google.cloud google-cloud-phishingprotection-bom - 0.115.0-SNAPSHOT + 0.116.0 pom import com.google.cloud google-cloud-policy-troubleshooter-bom - 1.83.0-SNAPSHOT + 1.84.0 pom import com.google.cloud google-cloud-policysimulator-bom - 0.63.0-SNAPSHOT + 0.64.0 pom import com.google.cloud google-cloud-private-catalog-bom - 0.86.0-SNAPSHOT + 0.87.0 pom import com.google.cloud google-cloud-privilegedaccessmanager-bom - 0.38.0-SNAPSHOT + 0.39.0 pom import com.google.cloud google-cloud-profiler-bom - 2.84.0-SNAPSHOT + 2.85.0 pom import com.google.cloud google-cloud-publicca-bom - 0.81.0-SNAPSHOT + 0.82.0 pom import com.google.cloud google-cloud-rapidmigrationassessment-bom - 0.67.0-SNAPSHOT + 0.68.0 pom import com.google.cloud google-cloud-recaptchaenterprise-bom - 3.81.0-SNAPSHOT + 3.82.0 pom import com.google.cloud google-cloud-recommendations-ai-bom - 0.91.0-SNAPSHOT + 0.92.0 pom import com.google.cloud google-cloud-recommender-bom - 2.86.0-SNAPSHOT + 2.87.0 pom import com.google.cloud google-cloud-redis-bom - 2.87.0-SNAPSHOT + 2.88.0 pom import com.google.cloud google-cloud-redis-cluster-bom - 0.56.0-SNAPSHOT + 0.57.0 pom import com.google.cloud google-cloud-resourcemanager-bom - 1.86.0-SNAPSHOT + 1.87.0 pom import com.google.cloud google-cloud-retail-bom - 2.86.0-SNAPSHOT + 2.87.0 pom import com.google.cloud google-cloud-run-bom - 0.84.0-SNAPSHOT + 0.85.0 pom import com.google.cloud google-cloud-saasservicemgmt-bom - 0.14.0-SNAPSHOT + 0.15.0 pom import com.google.cloud google-cloud-scheduler-bom - 2.84.0-SNAPSHOT + 2.85.0 pom import com.google.cloud google-cloud-secretmanager-bom - 2.84.0-SNAPSHOT + 2.85.0 pom import com.google.cloud google-cloud-securesourcemanager-bom - 0.54.0-SNAPSHOT + 0.55.0 pom import com.google.cloud google-cloud-security-private-ca-bom - 2.86.0-SNAPSHOT + 2.87.0 pom import com.google.cloud google-cloud-securitycenter-bom - 2.92.0-SNAPSHOT + 2.93.0 pom import com.google.cloud google-cloud-securitycenter-settings-bom - 0.87.0-SNAPSHOT + 0.88.0 pom import com.google.cloud google-cloud-securitycentermanagement-bom - 0.52.0-SNAPSHOT + 0.53.0 pom import com.google.cloud google-cloud-securityposture-bom - 0.49.0-SNAPSHOT + 0.50.0 pom import com.google.cloud google-cloud-service-control-bom - 1.84.0-SNAPSHOT + 1.85.0 pom import com.google.cloud google-cloud-service-management-bom - 3.82.0-SNAPSHOT + 3.83.0 pom import com.google.cloud google-cloud-service-usage-bom - 2.84.0-SNAPSHOT + 2.85.0 pom import com.google.cloud google-cloud-servicedirectory-bom - 2.85.0-SNAPSHOT + 2.86.0 pom import com.google.cloud google-cloud-servicehealth-bom - 0.51.0-SNAPSHOT + 0.52.0 pom import com.google.cloud google-cloud-shell-bom - 2.83.0-SNAPSHOT + 2.84.0 pom import com.google.cloud google-cloud-spanneradapter-bom - 0.20.0-SNAPSHOT + 0.21.0 pom import com.google.cloud google-cloud-speech-bom - 4.79.0-SNAPSHOT + 4.80.0 pom import com.google.cloud google-cloud-storage-transfer-bom - 1.84.0-SNAPSHOT + 1.85.0 pom import com.google.cloud google-cloud-storagebatchoperations-bom - 0.24.0-SNAPSHOT + 0.25.0 pom import com.google.cloud google-cloud-storageinsights-bom - 0.69.0-SNAPSHOT + 0.70.0 pom import com.google.cloud google-cloud-talent-bom - 2.85.0-SNAPSHOT + 2.86.0 pom import com.google.cloud google-cloud-tasks-bom - 2.84.0-SNAPSHOT + 2.85.0 pom import com.google.cloud google-cloud-telcoautomation-bom - 0.54.0-SNAPSHOT + 0.55.0 pom import com.google.cloud google-cloud-texttospeech-bom - 2.85.0-SNAPSHOT + 2.86.0 pom import com.google.cloud google-cloud-tpu-bom - 2.85.0-SNAPSHOT + 2.86.0 pom import com.google.cloud google-cloud-trace-bom - 2.84.0-SNAPSHOT + 2.85.0 pom import com.google.cloud google-cloud-translate-bom - 2.84.0-SNAPSHOT + 2.85.0 pom import com.google.cloud google-cloud-valkey-bom - 0.30.0-SNAPSHOT + 0.31.0 pom import com.google.cloud google-cloud-vectorsearch-bom - 0.5.0-SNAPSHOT + 0.6.0 pom import com.google.cloud google-cloud-vertexai-bom - 1.44.0-SNAPSHOT + 1.45.0 pom import com.google.cloud google-cloud-video-intelligence-bom - 2.83.0-SNAPSHOT + 2.84.0 pom import com.google.cloud google-cloud-video-stitcher-bom - 0.84.0-SNAPSHOT + 0.85.0 pom import com.google.cloud google-cloud-video-transcoder-bom - 1.83.0-SNAPSHOT + 1.84.0 pom import com.google.cloud google-cloud-vision-bom - 3.82.0-SNAPSHOT + 3.83.0 pom import com.google.cloud google-cloud-visionai-bom - 0.41.0-SNAPSHOT + 0.42.0 pom import com.google.cloud google-cloud-vmmigration-bom - 1.84.0-SNAPSHOT + 1.85.0 pom import com.google.cloud google-cloud-vmwareengine-bom - 0.78.0-SNAPSHOT + 0.79.0 pom import com.google.cloud google-cloud-vpcaccess-bom - 2.85.0-SNAPSHOT + 2.86.0 pom import com.google.cloud google-cloud-webrisk-bom - 2.83.0-SNAPSHOT + 2.84.0 pom import com.google.cloud google-cloud-websecurityscanner-bom - 2.84.0-SNAPSHOT + 2.85.0 pom import com.google.cloud google-cloud-workflow-executions-bom - 2.84.0-SNAPSHOT + 2.85.0 pom import com.google.cloud google-cloud-workflows-bom - 2.84.0-SNAPSHOT + 2.85.0 + pom + import + + + com.google.cloud + google-cloud-workloadmanager-bom + 0.1.0 pom import com.google.cloud google-cloud-workspaceevents-bom - 0.48.0-SNAPSHOT + 0.49.0 pom import com.google.cloud google-cloud-workstations-bom - 0.72.0-SNAPSHOT + 0.73.0 pom import com.google.cloud google-iam-admin-bom - 3.79.0-SNAPSHOT + 3.80.0 pom import com.google.cloud google-iam-policy-bom - 1.82.0-SNAPSHOT + 1.83.0 pom import com.google.cloud google-identity-accesscontextmanager-bom - 1.85.0-SNAPSHOT + 1.86.0 pom import io.grafeas grafeas - 2.85.0-SNAPSHOT + 2.86.0 diff --git a/generation_config.yaml b/generation_config.yaml index 0285f87b9360..d74143fb612b 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,10 +1,6 @@ -gapic_generator_version: 2.66.0 -googleapis_commitish: af232e71d7b67e84811f55b48c51de867f98f35b -libraries_bom_version: 26.74.0 - -# the libraries are ordered with respect to library name, which is -# java-{library.library_name} or java-{library.api-shortname} when -# library.library_name is not defined. +gapic_generator_version: 2.66.1 +googleapis_commitish: 055f92c9384689eb0bb32d035d3bc6d98c8347c0 +libraries_bom_version: 26.75.0 libraries: - api_shortname: accessapproval name_pretty: Access Approval @@ -14,7 +10,6 @@ libraries: release_level: stable GAPICs: - proto_path: google/cloud/accessapproval/v1 - - api_shortname: accesscontextmanager name_pretty: Identity Access Context Manager product_documentation: n/a @@ -24,7 +19,6 @@ libraries: GAPICs: - proto_path: google/identity/accesscontextmanager/v1 - proto_path: google/identity/accesscontextmanager/type - - api_shortname: admanager name_pretty: Google Ad Manager API product_documentation: https://developers.google.com/ad-manager/api/beta @@ -40,7 +34,6 @@ libraries: GAPICs: - proto_path: google/ads/admanager/v1 requires_billing: true - - api_shortname: advisorynotifications name_pretty: Advisory Notifications API product_documentation: https://cloud.google.com/advisory-notifications/ @@ -48,7 +41,6 @@ libraries: release_level: stable GAPICs: - proto_path: google/cloud/advisorynotifications/v1 - - api_shortname: aiplatform name_pretty: Vertex AI product_documentation: https://cloud.google.com/vertex-ai/docs @@ -61,7 +53,6 @@ libraries: GAPICs: - proto_path: google/cloud/aiplatform/v1 - proto_path: google/cloud/aiplatform/v1beta1 - - api_shortname: alloydb name_pretty: AlloyDB product_documentation: https://cloud.google.com/alloydb/ @@ -73,7 +64,6 @@ libraries: - proto_path: google/cloud/alloydb/v1 - proto_path: google/cloud/alloydb/v1alpha - proto_path: google/cloud/alloydb/v1beta - - api_shortname: alloydb name_pretty: AlloyDB connectors product_documentation: https://cloud.google.com/alloydb/docs @@ -88,7 +78,6 @@ libraries: - proto_path: google/cloud/alloydb/connectors/v1 - proto_path: google/cloud/alloydb/connectors/v1alpha - proto_path: google/cloud/alloydb/connectors/v1beta - - api_shortname: analyticsadmin name_pretty: Analytics Admin product_documentation: https://developers.google.com/analytics @@ -100,7 +89,6 @@ libraries: GAPICs: - proto_path: google/analytics/admin/v1alpha - proto_path: google/analytics/admin/v1beta - - api_shortname: analyticsdata name_pretty: Analytics Data product_documentation: https://developers.google.com/analytics/trusted-testing/analytics-data @@ -114,7 +102,6 @@ libraries: GAPICs: - proto_path: google/analytics/data/v1alpha - proto_path: google/analytics/data/v1beta - - api_shortname: analyticshub name_pretty: Analytics Hub API product_documentation: https://cloud.google.com/bigquery/TBD @@ -122,7 +109,6 @@ libraries: release_level: stable GAPICs: - proto_path: google/cloud/bigquery/analyticshub/v1 - - api_shortname: apigateway name_pretty: API Gateway product_documentation: https://cloud.google.com/api-gateway/docs @@ -137,7 +123,6 @@ libraries: rest_documentation: https://cloud.google.com/api-gateway/docs/reference/rest GAPICs: - proto_path: google/cloud/apigateway/v1 - - api_shortname: apigeeconnect name_pretty: Apigee Connect product_documentation: https://cloud.google.com/apigee/docs/hybrid/v1.3/apigee-connect/ @@ -148,7 +133,6 @@ libraries: release_level: stable GAPICs: - proto_path: google/cloud/apigeeconnect/v1 - - api_shortname: apigee-registry name_pretty: Registry API product_documentation: https://cloud.google.com/apigee/docs/api-hub/get-started-registry-api @@ -157,7 +141,6 @@ libraries: api_id: apigeeregistry.googleapis.com GAPICs: - proto_path: google/cloud/apigeeregistry/v1 - - api_shortname: apihub name_pretty: API hub API product_documentation: https://cloud.google.com/apigee/docs/apihub/what-is-api-hub @@ -183,7 +166,6 @@ libraries: release_level: stable GAPICs: - proto_path: google/api/apikeys/v2 - - api_shortname: appengine name_pretty: App Engine Admin API product_documentation: https://cloud.google.com/appengine/docs/admin-api/ @@ -193,7 +175,6 @@ libraries: codeowner_team: '@googleapis/aap-dpes' GAPICs: - proto_path: google/appengine/v1 - - api_shortname: apphub name_pretty: App Hub API product_documentation: https://cloud.google.com/app-hub/docs/overview @@ -202,7 +183,6 @@ libraries: rpc_documentation: https://cloud.google.com/app-hub/docs/reference/rpc GAPICs: - proto_path: google/cloud/apphub/v1 - - api_shortname: area120tables name_pretty: Area 120 Tables product_documentation: https://area120.google.com/ @@ -212,7 +192,6 @@ libraries: distribution_name: com.google.area120:google-area120-tables GAPICs: - proto_path: google/area120/tables/v1alpha1 - - api_shortname: artifactregistry name_pretty: Artifact Registry product_documentation: https://cloud.google.com/artifact-registry @@ -229,7 +208,6 @@ libraries: GAPICs: - proto_path: google/devtools/artifactregistry/v1 - proto_path: google/devtools/artifactregistry/v1beta2 - - api_shortname: cloudasset name_pretty: Cloud Asset Inventory product_documentation: https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview @@ -247,7 +225,6 @@ libraries: - proto_path: google/cloud/asset/v1p2beta1 - proto_path: google/cloud/asset/v1p5beta1 - proto_path: google/cloud/asset/v1p7beta1 - - api_shortname: assuredworkloads name_pretty: Assured Workloads for Government product_documentation: https://cloud.google.com/assured-workloads/ @@ -260,7 +237,6 @@ libraries: GAPICs: - proto_path: google/cloud/assuredworkloads/v1 - proto_path: google/cloud/assuredworkloads/v1beta1 - - api_shortname: auditmanager name_pretty: Audit Manager API product_documentation: https://cloud.google.com/audit-manager/docs @@ -291,7 +267,6 @@ libraries: GAPICs: - proto_path: google/cloud/automl/v1 - proto_path: google/cloud/automl/v1beta1 - - api_shortname: backupdr name_pretty: Backup and DR Service API product_documentation: https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-dr @@ -318,7 +293,6 @@ libraries: rpc_documentation: https://cloud.google.com/bare-metal/docs/reference/rpc GAPICs: - proto_path: google/cloud/baremetalsolution/v2 - - api_shortname: batch name_pretty: Cloud Batch product_documentation: https://cloud.google.com/ @@ -326,7 +300,6 @@ libraries: GAPICs: - proto_path: google/cloud/batch/v1 - proto_path: google/cloud/batch/v1alpha - - api_shortname: beyondcorp-appconnections name_pretty: BeyondCorp AppConnections product_documentation: https://cloud.google.com/beyondcorp-enterprise/ @@ -337,7 +310,6 @@ libraries: need for a traditional VPN. GAPICs: - proto_path: google/cloud/beyondcorp/appconnections/v1 - - api_shortname: beyondcorp-appconnectors name_pretty: BeyondCorp AppConnectors product_documentation: cloud.google.com/beyondcorp-enterprise/ @@ -345,7 +317,6 @@ libraries: AppConnectors. GAPICs: - proto_path: google/cloud/beyondcorp/appconnectors/v1 - - api_shortname: beyondcorp-appgateways name_pretty: BeyondCorp AppGateways product_documentation: https://cloud.google.com/beyondcorp-enterprise/ @@ -354,7 +325,6 @@ libraries: api_id: beyondcorp.googleapis.com GAPICs: - proto_path: google/cloud/beyondcorp/appgateways/v1 - - api_shortname: beyondcorp-clientconnectorservices name_pretty: BeyondCorp ClientConnectorServices product_documentation: https://cloud.google.com/beyondcorp-enterprise/ @@ -363,7 +333,6 @@ libraries: api_id: beyondcorp.googleapis.com GAPICs: - proto_path: google/cloud/beyondcorp/clientconnectorservices/v1 - - api_shortname: beyondcorp-clientgateways name_pretty: BeyondCorp ClientGateways product_documentation: https://cloud.google.com/beyondcorp-enterprise/ @@ -372,7 +341,6 @@ libraries: api_id: beyondcorp.googleapis.com GAPICs: - proto_path: google/cloud/beyondcorp/clientgateways/v1 - - api_shortname: biglake name_pretty: BigLake product_documentation: https://cloud.google.com/biglake @@ -383,7 +351,6 @@ libraries: - proto_path: google/cloud/bigquery/biglake/v1 - proto_path: google/cloud/biglake/v1 - proto_path: google/cloud/bigquery/biglake/v1alpha1 - - api_shortname: analyticshub name_pretty: Analytics Hub product_documentation: https://cloud.google.com/analytics-hub @@ -393,7 +360,6 @@ libraries: library_name: bigquery-data-exchange GAPICs: - proto_path: google/cloud/bigquery/dataexchange/v1beta1 - - api_shortname: bigqueryconnection name_pretty: Cloud BigQuery Connection product_documentation: https://cloud.google.com/bigquery/docs/reference/bigqueryconnection/rest @@ -404,7 +370,6 @@ libraries: GAPICs: - proto_path: google/cloud/bigquery/connection/v1 - proto_path: google/cloud/bigquery/connection/v1beta1 - - api_shortname: bigquerydatapolicy name_pretty: BigQuery DataPolicy API product_documentation: https://cloud.google.com/bigquery/docs/reference/datapolicy/ @@ -414,7 +379,6 @@ libraries: - proto_path: google/cloud/bigquery/datapolicies/v1beta1 - proto_path: google/cloud/bigquery/datapolicies/v2beta1 - proto_path: google/cloud/bigquery/datapolicies/v2 - - api_shortname: bigquerydatatransfer name_pretty: BigQuery Data Transfer Service product_documentation: https://cloud.google.com/bigquery/transfer/ @@ -424,7 +388,6 @@ libraries: issue_tracker: https://issuetracker.google.com/savedsearches/559654 GAPICs: - proto_path: google/cloud/bigquery/datatransfer/v1 - - api_shortname: bigquerymigration name_pretty: BigQuery Migration product_documentation: https://cloud.google.com/bigquery/docs @@ -433,7 +396,6 @@ libraries: GAPICs: - proto_path: google/cloud/bigquery/migration/v2 - proto_path: google/cloud/bigquery/migration/v2alpha - - api_shortname: bigqueryreservation name_pretty: Cloud BigQuery Reservation product_documentation: https://cloud.google.com/bigquery/docs/reference/reservations/rpc @@ -441,7 +403,6 @@ libraries: release_level: stable GAPICs: - proto_path: google/cloud/bigquery/reservation/v1 - - api_shortname: cloudbilling name_pretty: Cloud Billing product_documentation: https://cloud.google.com/billing/docs @@ -454,7 +415,6 @@ libraries: rpc_documentation: https://cloud.google.com/billing/docs/reference/rpc GAPICs: - proto_path: google/cloud/billing/v1 - - api_shortname: billingbudgets name_pretty: Cloud Billing Budgets product_documentation: https://cloud.google.com/billing/docs/how-to/budgets @@ -464,7 +424,6 @@ libraries: GAPICs: - proto_path: google/cloud/billing/budgets/v1 - proto_path: google/cloud/billing/budgets/v1beta1 - - api_shortname: binaryauthorization name_pretty: Binary Authorization product_documentation: https://cloud.google.com/binary-authorization/docs @@ -480,7 +439,6 @@ libraries: GAPICs: - proto_path: google/cloud/binaryauthorization/v1 - proto_path: google/cloud/binaryauthorization/v1beta1 - - api_shortname: capacityplanner name_pretty: Capacity Planner API product_documentation: https://cloud.google.com/capacity-planner/docs @@ -505,7 +463,23 @@ libraries: api_id: certificatemanager.googleapis.com GAPICs: - proto_path: google/cloud/certificatemanager/v1 - +- api_shortname: ces + name_pretty: Gemini Enterprise for Customer Experience API + product_documentation: https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps + api_description: Customer Experience Agent Studio (CX Agent Studio) is a minimal + code conversational agent builder. + client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-ces/latest/overview + release_level: preview + distribution_name: com.google.cloud:google-cloud-ces + api_id: ces.googleapis.com + library_type: GAPIC_AUTO + group_id: com.google.cloud + cloud_api: true + GAPICs: + - proto_path: google/cloud/ces/v1 + requires_billing: true + rpc_documentation: + https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/rpc - api_shortname: cloudchannel name_pretty: Channel Services product_documentation: https://cloud.google.com/channel/docs @@ -519,7 +493,6 @@ libraries: rpc_documentation: https://cloud.google.com/channel/docs/reference/rpc GAPICs: - proto_path: google/cloud/channel/v1 - - api_shortname: chat name_pretty: Google Chat API product_documentation: https://developers.google.com/chat/concepts @@ -529,7 +502,6 @@ libraries: rest_documentation: https://developers.google.com/chat/api/reference/rest GAPICs: - proto_path: google/chat/v1 - - api_shortname: chronicle name_pretty: Chronicle API product_documentation: https://cloud.google.com/chronicle/docs/secops/secops-overview @@ -578,7 +550,6 @@ libraries: GAPICs: - proto_path: google/devtools/cloudbuild/v1 - proto_path: google/devtools/cloudbuild/v2 - - api_shortname: cloudcommerceconsumerprocurement name_pretty: Cloud Commerce Consumer Procurement product_documentation: https://cloud.google.com/marketplace/ @@ -589,7 +560,6 @@ libraries: GAPICs: - proto_path: google/cloud/commerce/consumer/procurement/v1 - proto_path: google/cloud/commerce/consumer/procurement/v1alpha1 - - api_shortname: cloudcontrolspartner name_pretty: Cloud Controls Partner API product_documentation: https://cloud.google.com/sovereign-controls-by-partners/docs/sovereign-partners @@ -599,7 +569,6 @@ libraries: GAPICs: - proto_path: google/cloud/cloudcontrolspartner/v1 - proto_path: google/cloud/cloudcontrolspartner/v1beta - - api_shortname: cloudquotas name_pretty: Cloud Quotas API product_documentation: https://cloud.google.com/cloudquotas/docs/ @@ -610,7 +579,6 @@ libraries: GAPICs: - proto_path: google/api/cloudquotas/v1 - proto_path: google/api/cloudquotas/v1beta - - api_shortname: cloudsecuritycompliance name_pretty: Cloud Security Compliance API product_documentation: @@ -637,7 +605,6 @@ libraries: GAPICs: - proto_path: google/cloud/support/v2 - proto_path: google/cloud/support/v2beta - - api_shortname: compute name_pretty: Compute Engine product_documentation: https://cloud.google.com/compute/ @@ -651,7 +618,6 @@ libraries: excluded_dependencies: grpc-google-cloud-compute-v1 GAPICs: - proto_path: google/cloud/compute/v1 - - api_shortname: confidentialcomputing name_pretty: Confidential Computing API product_documentation: https://cloud.google.com/confidential-computing/ @@ -660,7 +626,6 @@ libraries: GAPICs: - proto_path: google/cloud/confidentialcomputing/v1 - proto_path: google/cloud/confidentialcomputing/v1alpha1 - - api_shortname: configdelivery name_pretty: Config Delivery API product_documentation: @@ -708,7 +673,6 @@ libraries: codeowner_team: '@googleapis/api-contact-center-insights' GAPICs: - proto_path: google/cloud/contactcenterinsights/v1 - - api_shortname: container name_pretty: Kubernetes Engine product_documentation: https://cloud.google.com/kubernetes-engine/ @@ -724,7 +688,6 @@ libraries: GAPICs: - proto_path: google/container/v1 - proto_path: google/container/v1beta1 - - api_shortname: containeranalysis name_pretty: Cloud Container Analysis product_documentation: https://cloud.google.com/container-registry/docs/container-analysis @@ -740,7 +703,6 @@ libraries: GAPICs: - proto_path: google/devtools/containeranalysis/v1 - proto_path: google/devtools/containeranalysis/v1beta1 - - api_shortname: contentwarehouse name_pretty: Document AI Warehouse product_documentation: https://cloud.google.com/document-warehouse/docs/overview @@ -749,7 +711,6 @@ libraries: metadata. GAPICs: - proto_path: google/cloud/contentwarehouse/v1 - - api_shortname: datafusion name_pretty: Cloud Data Fusion product_documentation: https://cloud.google.com/data-fusion/docs @@ -761,7 +722,6 @@ libraries: GAPICs: - proto_path: google/cloud/datafusion/v1 - proto_path: google/cloud/datafusion/v1beta1 - - api_shortname: databasecenter name_pretty: Database Center API product_documentation: https://cloud.google.com/database-center/docs/overview @@ -793,7 +753,6 @@ libraries: GAPICs: - proto_path: google/cloud/datacatalog/v1 - proto_path: google/cloud/datacatalog/v1beta1 - - api_shortname: dataflow name_pretty: Dataflow product_documentation: https://cloud.google.com/dataflow/docs @@ -803,7 +762,6 @@ libraries: rpc_documentation: https://cloud.google.com/dataflow/docs/reference/rpc GAPICs: - proto_path: google/dataflow/v1beta3 - - api_shortname: dataform name_pretty: Cloud Dataform product_documentation: https://cloud.google.com/dataform/docs @@ -811,7 +769,6 @@ libraries: GAPICs: - proto_path: google/cloud/dataform/v1beta1 - proto_path: google/cloud/dataform/v1 - - api_shortname: datalabeling name_pretty: Data Labeling product_documentation: https://cloud.google.com/ai-platform/data-labeling/docs/ @@ -823,7 +780,6 @@ libraries: rpc_documentation: https://cloud.google.com/ai-platform/data-labeling/docs/reference/rpc GAPICs: - proto_path: google/cloud/datalabeling/v1beta1 - - api_shortname: datalineage name_pretty: Data Lineage product_documentation: https://cloud.google.com/data-catalog/docs/data-lineage/ @@ -831,7 +787,6 @@ libraries: release_level: stable GAPICs: - proto_path: google/cloud/datacatalog/lineage/v1 - - api_shortname: datamanager name_pretty: Data Manager API product_documentation: https://developers.google.com/data-manager @@ -861,7 +816,6 @@ libraries: rpc_documentation: https://cloud.google.com/dataplex/docs/reference/rpc GAPICs: - proto_path: google/cloud/dataplex/v1 - - api_shortname: dataproc name_pretty: Dataproc product_documentation: https://cloud.google.com/dataproc @@ -874,7 +828,6 @@ libraries: rpc_documentation: https://cloud.google.com/dataproc/docs/reference/rpc GAPICs: - proto_path: google/cloud/dataproc/v1 - - api_shortname: metastore name_pretty: Dataproc Metastore product_documentation: https://cloud.google.com/dataproc-metastore/docs @@ -890,7 +843,6 @@ libraries: - proto_path: google/cloud/metastore/v1 - proto_path: google/cloud/metastore/v1alpha - proto_path: google/cloud/metastore/v1beta - - api_shortname: datastream name_pretty: Datastream product_documentation: https://cloud.google.com/datastream/docs @@ -902,7 +854,6 @@ libraries: GAPICs: - proto_path: google/cloud/datastream/v1 - proto_path: google/cloud/datastream/v1alpha1 - - api_shortname: clouddeploy name_pretty: Google Cloud Deploy product_documentation: https://cloud.google.com/deploy/docs @@ -913,7 +864,6 @@ libraries: codeowner_team: '@googleapis/aap-dpes' GAPICs: - proto_path: google/cloud/deploy/v1 - - api_shortname: developerconnect name_pretty: Developer Connect API product_documentation: https://cloud.google.com/developer-connect/docs/overview @@ -959,7 +909,6 @@ libraries: GAPICs: - proto_path: google/cloud/dialogflow/v2 - proto_path: google/cloud/dialogflow/v2beta1 - - api_shortname: dialogflow-cx name_pretty: Dialogflow CX product_documentation: https://cloud.google.com/dialogflow/cx/docs @@ -971,7 +920,6 @@ libraries: GAPICs: - proto_path: google/cloud/dialogflow/cx/v3 - proto_path: google/cloud/dialogflow/cx/v3beta1 - - api_shortname: discoveryengine name_pretty: Discovery Engine API product_documentation: https://cloud.google.com/discovery-engine/media/docs @@ -982,7 +930,6 @@ libraries: - proto_path: google/cloud/discoveryengine/v1 - proto_path: google/cloud/discoveryengine/v1alpha - proto_path: google/cloud/discoveryengine/v1beta - - api_shortname: distributedcloudedge name_pretty: Google Distributed Cloud Edge product_documentation: https://cloud.google.com/distributed-cloud/edge/latest/ @@ -994,7 +941,6 @@ libraries: release_level: stable GAPICs: - proto_path: google/cloud/edgecontainer/v1 - - api_shortname: dlp name_pretty: Cloud Data Loss Prevention product_documentation: https://cloud.google.com/dlp/docs/ @@ -1007,7 +953,6 @@ libraries: rpc_documentation: https://cloud.google.com/dlp/docs/reference/rpc GAPICs: - proto_path: google/privacy/dlp/v2 - - api_shortname: datamigration name_pretty: Database Migration Service product_documentation: https://cloud.google.com/database-migration/docs @@ -1020,7 +965,6 @@ libraries: rest_documentation: https://cloud.google.com/database-migration/docs/reference/rest GAPICs: - proto_path: google/cloud/clouddms/v1 - - api_shortname: documentai name_pretty: Document AI product_documentation: https://cloud.google.com/compute/docs/documentai/ @@ -1032,7 +976,6 @@ libraries: GAPICs: - proto_path: google/cloud/documentai/v1 - proto_path: google/cloud/documentai/v1beta3 - - api_shortname: domains name_pretty: Cloud Domains product_documentation: https://cloud.google.com/domains @@ -1042,7 +985,6 @@ libraries: - proto_path: google/cloud/domains/v1 - proto_path: google/cloud/domains/v1alpha2 - proto_path: google/cloud/domains/v1beta1 - - api_shortname: edgenetwork name_pretty: Distributed Cloud Edge Network API product_documentation: https://cloud.google.com/distributed-cloud/edge/latest/docs/overview @@ -1050,7 +992,6 @@ libraries: release_level: stable GAPICs: - proto_path: google/cloud/edgenetwork/v1 - - api_shortname: enterpriseknowledgegraph name_pretty: Enterprise Knowledge Graph product_documentation: https://cloud.google.com/enterprise-knowledge-graph/docs/overview @@ -1059,7 +1000,6 @@ libraries: an efficient and useful way. GAPICs: - proto_path: google/cloud/enterpriseknowledgegraph/v1 - - api_shortname: clouderrorreporting name_pretty: Error Reporting product_documentation: https://cloud.google.com/error-reporting @@ -1073,7 +1013,6 @@ libraries: requires_billing: false GAPICs: - proto_path: google/devtools/clouderrorreporting/v1beta1 - - api_shortname: essentialcontacts name_pretty: Essential Contacts API product_documentation: https://cloud.google.com/resource-manager/docs/managing-notification-contacts/ @@ -1083,7 +1022,6 @@ libraries: release_level: stable GAPICs: - proto_path: google/cloud/essentialcontacts/v1 - - api_shortname: eventarc name_pretty: Eventarc product_documentation: https://cloud.google.com/eventarc/docs @@ -1097,7 +1035,6 @@ libraries: rpc_documentation: https://cloud.google.com/eventarc/docs/reference/rpc GAPICs: - proto_path: google/cloud/eventarc/v1 - - api_shortname: eventarcpublishing name_pretty: Eventarc Publishing product_documentation: https://cloud.google.com/eventarc/docs @@ -1109,7 +1046,6 @@ libraries: rpc_documentation: https://cloud.google.com/eventarc/docs/reference/rpc GAPICs: - proto_path: google/cloud/eventarc/publishing/v1 - - api_shortname: file name_pretty: Cloud Filestore API product_documentation: https://cloud.google.com/filestore/docs @@ -1122,7 +1058,6 @@ libraries: GAPICs: - proto_path: google/cloud/filestore/v1 - proto_path: google/cloud/filestore/v1beta1 - - api_shortname: financialservices name_pretty: Financial Services API product_documentation: @@ -1156,7 +1091,6 @@ libraries: - proto_path: google/cloud/functions/v2 - proto_path: google/cloud/functions/v2alpha - proto_path: google/cloud/functions/v2beta - - api_shortname: gdchardwaremanagement name_pretty: GDC Hardware Management API product_documentation: https://cloud.google.com/distributed-cloud/edge/latest/docs @@ -1202,7 +1136,6 @@ libraries: library_name: gke-backup GAPICs: - proto_path: google/cloud/gkebackup/v1 - - api_shortname: connectgateway name_pretty: Connect Gateway API product_documentation: https://cloud.google.com/anthos/multicluster-management/gateway/ @@ -1214,7 +1147,6 @@ libraries: release_level: stable GAPICs: - proto_path: google/cloud/gkeconnect/gateway/v1beta1 - - api_shortname: gke-multi-cloud name_pretty: Anthos Multicloud product_documentation: https://cloud.google.com/anthos/clusters/docs/multi-cloud @@ -1223,7 +1155,6 @@ libraries: api_id: gkemulticloud.googleapis.com GAPICs: - proto_path: google/cloud/gkemulticloud/v1 - - api_shortname: gkehub name_pretty: GKE Hub API product_documentation: https://cloud.google.com/anthos/gke/docs/ @@ -1240,7 +1171,6 @@ libraries: - proto_path: google/cloud/gkehub/v1beta1 - proto_path: google/cloud/gkehub/policycontroller/v1beta - proto_path: google/cloud/gkehub/servicemesh/v1beta - - api_shortname: gkerecommender name_pretty: GKE Recommender API product_documentation: @@ -1270,7 +1200,6 @@ libraries: library_name: grafeas GAPICs: - proto_path: grafeas/v1 - - api_shortname: gsuiteaddons name_pretty: Google Workspace Add-ons API product_documentation: https://developers.google.com/workspace/add-ons/overview @@ -1286,7 +1215,6 @@ libraries: - proto_path: google/apps/script/type/gmail - proto_path: google/apps/script/type/sheets - proto_path: google/apps/script/type/slides - - api_shortname: hypercomputecluster name_pretty: Cluster Director API product_documentation: @@ -1319,7 +1247,6 @@ libraries: - proto_path: google/iam/v2beta - proto_path: google/iam/v3 - proto_path: google/iam/v3beta - - api_shortname: iam-admin name_pretty: IAM Admin API product_documentation: https://cloud.google.com/iam/docs/apis @@ -1329,7 +1256,6 @@ libraries: api_id: iam.googleapis.com GAPICs: - proto_path: google/iam/admin/v1 - - api_shortname: iamcredentials name_pretty: IAM Service Account Credentials API product_documentation: https://cloud.google.com/iam/credentials/reference/rest/ @@ -1340,7 +1266,6 @@ libraries: issue_tracker: https://issuetracker.google.com/issues/new?component=187161&template=0 GAPICs: - proto_path: google/iam/credentials/v1 - - api_shortname: iap name_pretty: Cloud Identity-Aware Proxy API product_documentation: https://cloud.google.com/iap @@ -1363,7 +1288,6 @@ libraries: release_level: stable GAPICs: - proto_path: google/cloud/ids/v1 - - api_shortname: infra-manager name_pretty: Infrastructure Manager API product_documentation: https://cloud.google.com/infrastructure-manager/docs/overview @@ -1372,7 +1296,6 @@ libraries: release_level: stable GAPICs: - proto_path: google/cloud/config/v1 - - api_shortname: cloudiot name_pretty: Cloud Internet of Things (IoT) Core product_documentation: https://cloud.google.com/iot @@ -1402,7 +1325,6 @@ libraries: - proto_path: google/shopping/merchant/issueresolution/v1beta library_name: java-shopping-merchant-issue-resolution requires_billing: true - - api_shortname: merchantapi name_pretty: Merchant Order Tracking API product_documentation: https://developers.google.com/merchant/api @@ -1420,7 +1342,6 @@ libraries: - proto_path: google/shopping/merchant/ordertracking/v1beta library_name: java-shopping-merchant-order-tracking requires_billing: true - - api_shortname: cloudkms name_pretty: Cloud Key Management Service product_documentation: https://cloud.google.com/kms @@ -1436,7 +1357,6 @@ libraries: issue_tracker: https://issuetracker.google.com/savedsearches/5264932 GAPICs: - proto_path: google/cloud/kms/v1 - - api_shortname: kmsinventory name_pretty: KMS Inventory API product_documentation: https://cloud.google.com/kms/docs/ @@ -1445,7 +1365,6 @@ libraries: rpc_documentation: https://cloud.google.com/kms/docs/reference/rpc GAPICs: - proto_path: google/cloud/kms/inventory/v1 - - api_shortname: language name_pretty: Natural Language product_documentation: https://cloud.google.com/natural-language/docs/ @@ -1461,7 +1380,6 @@ libraries: - proto_path: google/cloud/language/v1 - proto_path: google/cloud/language/v1beta2 - proto_path: google/cloud/language/v2 - - api_shortname: licensemanager name_pretty: License Manager API product_documentation: https://cloud.google.com/compute/docs/instances/windows/ms-licensing @@ -1488,7 +1406,6 @@ libraries: rpc_documentation: https://cloud.google.com/life-sciences/docs/reference/rpc GAPICs: - proto_path: google/cloud/lifesciences/v2beta - - api_shortname: locationfinder name_pretty: Cloud Location Finder API product_documentation: https://cloud.google.com/location-finder/docs/overview @@ -1507,6 +1424,26 @@ libraries: - proto_path: google/cloud/locationfinder/v1 requires_billing: true rpc_documentation: https://cloud.google.com/locationfinder/docs/reference/rest +- api_shortname: logging + name_pretty: Cloud Logging + product_documentation: https://cloud.google.com/logging/docs + client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-logging/latest/history + issue_tracker: https://issuetracker.google.com/savedsearches/559764 + release_level: stable + language: java + distribution_name: com.google.cloud:google-cloud-logging + api_id: logging.googleapis.com + transport: grpc + library_type: GAPIC_COMBO + api_description: allows you to store, search, analyze, monitor, and alert on log + data and events from Google Cloud and Amazon Web Services. Using the BindPlane + service, you can also collect this data from over 150 common application components, + on-premises systems, and hybrid cloud systems. BindPlane is included with your + Google Cloud project at no additional cost. + codeowner_team: '@googleapis/cloud-sdk-java-team' + recommended_package: com.google.cloud.logging + GAPICs: + - proto_path: google/logging/v2 - api_shortname: lustre name_pretty: Google Cloud Managed Lustre API product_documentation: https://cloud.google.com/managed-lustre/docs @@ -1553,7 +1490,6 @@ libraries: GAPICs: - proto_path: google/cloud/managedidentities/v1 - proto_path: google/cloud/managedidentities/v1beta1 - - api_shortname: managedkafka name_pretty: Managed Service for Apache Kafka product_documentation: https://cloud.google.com/managed-kafka @@ -1581,7 +1517,6 @@ libraries: distribution_name: com.google.maps:google-maps-addressvalidation GAPICs: - proto_path: google/maps/addressvalidation/v1 - - api_shortname: maps-area-insights name_pretty: Places Insights API product_documentation: https://developers.google.com/maps/documentation/places-insights @@ -1646,7 +1581,6 @@ libraries: cloud_api: false GAPICs: - proto_path: google/maps/mapsplatformdatasets/v1 - - api_shortname: maps-places name_pretty: Places API (New) product_documentation: https://developers.google.com/maps/documentation/places/web-service/ @@ -1657,7 +1591,6 @@ libraries: cloud_api: false GAPICs: - proto_path: google/maps/places/v1 - - api_shortname: routeoptimization name_pretty: Route Optimization API product_documentation: https://developers.google.com/maps/documentation/route-optimization @@ -1693,7 +1626,6 @@ libraries: cloud_api: false GAPICs: - proto_path: google/maps/routing/v2 - - api_shortname: maps-solar name_pretty: Solar API product_documentation: https://developers.google.com/maps/documentation/solar/overview @@ -1737,7 +1669,6 @@ libraries: requires_billing: false GAPICs: - proto_path: google/cloud/mediatranslation/v1beta1 - - api_shortname: meet name_pretty: Google Meet API product_documentation: https://developers.google.com/meet/api/guides/overview @@ -1746,7 +1677,6 @@ libraries: GAPICs: - proto_path: google/apps/meet/v2 - proto_path: google/apps/meet/v2beta - - api_shortname: memcache name_pretty: Cloud Memcache product_documentation: https://cloud.google.com/memorystore/ @@ -1756,7 +1686,6 @@ libraries: GAPICs: - proto_path: google/cloud/memcache/v1 - proto_path: google/cloud/memcache/v1beta2 - - api_shortname: migrationcenter name_pretty: Migration Center API product_documentation: https://cloud.google.com/migration-center/docs/migration-center-overview @@ -1765,7 +1694,6 @@ libraries: cloud environments to Google Cloud GAPICs: - proto_path: google/cloud/migrationcenter/v1 - - api_shortname: modelarmor name_pretty: Model Armor API product_documentation: https://cloud.google.com/security-command-center/docs/model-armor-overview @@ -1797,7 +1725,6 @@ libraries: issue_tracker: https://issuetracker.google.com/savedsearches/559785 GAPICs: - proto_path: google/monitoring/v3 - - api_shortname: monitoring-dashboards name_pretty: Monitoring Dashboards product_documentation: https://cloud.google.com/monitoring/charts/dashboards @@ -1810,7 +1737,6 @@ libraries: api_id: monitoring.googleapis.com GAPICs: - proto_path: google/monitoring/dashboard/v1 - - api_shortname: monitoring-metricsscope name_pretty: Monitoring Metrics Scopes product_documentation: @@ -1821,7 +1747,6 @@ libraries: distribution_name: com.google.cloud:google-cloud-monitoring-metricsscope GAPICs: - proto_path: google/monitoring/metricsscope/v1 - - api_shortname: netapp name_pretty: NetApp API product_documentation: https://cloud.google.com/netapp/volumes/docs/discover/overview @@ -1830,7 +1755,6 @@ libraries: scalable performance with global availability. GAPICs: - proto_path: google/cloud/netapp/v1 - - api_shortname: networkmanagement name_pretty: Network Management API product_documentation: @@ -1842,7 +1766,6 @@ libraries: GAPICs: - proto_path: google/cloud/networkmanagement/v1 - proto_path: google/cloud/networkmanagement/v1beta1 - - api_shortname: networksecurity name_pretty: Network Security API product_documentation: https://cloud.google.com/traffic-director/docs/reference/network-security/rest @@ -1852,7 +1775,6 @@ libraries: GAPICs: - proto_path: google/cloud/networksecurity/v1 - proto_path: google/cloud/networksecurity/v1beta1 - - api_shortname: networkconnectivity name_pretty: Network Connectivity Center product_documentation: https://cloud.google.com/network-connectivity/docs @@ -1863,7 +1785,6 @@ libraries: GAPICs: - proto_path: google/cloud/networkconnectivity/v1 - proto_path: google/cloud/networkconnectivity/v1alpha1 - - api_shortname: networkservices name_pretty: Network Services API product_documentation: https://cloud.google.com/products/networking @@ -1895,7 +1816,6 @@ libraries: - proto_path: google/cloud/notebooks/v1 - proto_path: google/cloud/notebooks/v1beta1 - proto_path: google/cloud/notebooks/v2 - - api_shortname: cloudoptimization name_pretty: Cloud Fleet Routing product_documentation: https://cloud.google.com/optimization/docs @@ -1908,7 +1828,6 @@ libraries: rpc_documentation: https://cloud.google.com/optimization/docs/reference/rpc GAPICs: - proto_path: google/cloud/optimization/v1 - - api_shortname: oracledatabase name_pretty: Oracle Database@Google Cloud API product_documentation: https://cloud.google.com/oracle/database/docs @@ -1940,7 +1859,6 @@ libraries: GAPICs: - proto_path: google/cloud/orchestration/airflow/service/v1 - proto_path: google/cloud/orchestration/airflow/service/v1beta1 - - api_shortname: orgpolicy name_pretty: Cloud Organization Policy product_documentation: n/a @@ -1951,7 +1869,6 @@ libraries: GAPICs: - proto_path: google/cloud/orgpolicy/v1 - proto_path: google/cloud/orgpolicy/v2 - - api_shortname: osconfig name_pretty: OS Config API product_documentation: https://cloud.google.com/compute/docs/os-patch-management @@ -1965,7 +1882,6 @@ libraries: - proto_path: google/cloud/osconfig/v1 - proto_path: google/cloud/osconfig/v1alpha - proto_path: google/cloud/osconfig/v1beta - - api_shortname: oslogin name_pretty: Cloud OS Login product_documentation: https://cloud.google.com/compute/docs/oslogin/ @@ -1976,7 +1892,6 @@ libraries: GAPICs: - proto_path: google/cloud/oslogin/v1 - proto_path: google/cloud/oslogin/v1beta - - api_shortname: parallelstore name_pretty: Parallelstore API product_documentation: https://cloud/parallelstore?hl=en @@ -2024,7 +1939,6 @@ libraries: requires_billing: false GAPICs: - proto_path: google/cloud/phishingprotection/v1beta1 - - api_shortname: policytroubleshooter name_pretty: IAM Policy Troubleshooter API product_documentation: https://cloud.google.com/iam/docs/troubleshooting-access @@ -2040,7 +1954,6 @@ libraries: GAPICs: - proto_path: google/cloud/policytroubleshooter/v1 - proto_path: google/cloud/policytroubleshooter/iam/v3 - - api_shortname: policysimulator name_pretty: Policy Simulator API product_documentation: https://cloud.google.com/policysimulator/docs/overview @@ -2048,7 +1961,6 @@ libraries: and viewing a Replay. GAPICs: - proto_path: google/cloud/policysimulator/v1 - - api_shortname: cloudprivatecatalog name_pretty: Private Catalog product_documentation: https://cloud.google.com/private-catalog/docs @@ -2059,7 +1971,6 @@ libraries: api_id: privatecatalog.googleapis.com GAPICs: - proto_path: google/cloud/privatecatalog/v1beta1 - - api_shortname: privilegedaccessmanager name_pretty: Privileged Access Manager API product_documentation: @@ -2101,7 +2012,6 @@ libraries: api_id: cloudprofiler.googleapis.com GAPICs: - proto_path: google/devtools/cloudprofiler/v2 - - api_shortname: publicca name_pretty: Public Certificate Authority API product_documentation: https://cloud.google.com/certificate-manager/docs/public-ca @@ -2113,14 +2023,12 @@ libraries: GAPICs: - proto_path: google/cloud/security/publicca/v1beta1 - proto_path: google/cloud/security/publicca/v1 - - api_shortname: rapidmigrationassessment name_pretty: Rapid Migration Assessment API product_documentation: https://cloud.google.com/migration-center/docs api_description: Rapid Migration Assessment API GAPICs: - proto_path: google/cloud/rapidmigrationassessment/v1 - - api_shortname: recaptchaenterprise name_pretty: reCAPTCHA Enterprise product_documentation: https://cloud.google.com/recaptcha-enterprise/docs/ @@ -2133,7 +2041,6 @@ libraries: GAPICs: - proto_path: google/cloud/recaptchaenterprise/v1 - proto_path: google/cloud/recaptchaenterprise/v1beta1 - - api_shortname: recommendationengine name_pretty: Recommendations AI product_documentation: https://cloud.google.com/recommendations-ai/ @@ -2141,7 +2048,6 @@ libraries: library_name: recommendations-ai GAPICs: - proto_path: google/cloud/recommendationengine/v1beta1 - - api_shortname: recommender name_pretty: Recommender product_documentation: https://cloud.google.com/recommendations/ @@ -2151,7 +2057,6 @@ libraries: GAPICs: - proto_path: google/cloud/recommender/v1 - proto_path: google/cloud/recommender/v1beta1 - - api_shortname: redis name_pretty: Cloud Redis product_documentation: https://cloud.google.com/memorystore/docs/redis/ @@ -2164,7 +2069,6 @@ libraries: GAPICs: - proto_path: google/cloud/redis/v1 - proto_path: google/cloud/redis/v1beta1 - - api_shortname: redis-cluster name_pretty: Google Cloud Memorystore for Redis API product_documentation: https://cloud.google.com/memorystore/docs/cluster @@ -2172,7 +2076,6 @@ libraries: GAPICs: - proto_path: google/cloud/redis/cluster/v1 - proto_path: google/cloud/redis/cluster/v1beta1 - - api_shortname: cloudresourcemanager name_pretty: Resource Manager API product_documentation: https://cloud.google.com/resource-manager @@ -2184,7 +2087,6 @@ libraries: issue_tracker: https://issuetracker.google.com/savedsearches/559757 GAPICs: - proto_path: google/cloud/resourcemanager/v3 - - api_shortname: retail name_pretty: Cloud Retail product_documentation: https://cloud.google.com/solutions/retail @@ -2194,7 +2096,6 @@ libraries: - proto_path: google/cloud/retail/v2 - proto_path: google/cloud/retail/v2alpha - proto_path: google/cloud/retail/v2beta - - api_shortname: run name_pretty: Cloud Run product_documentation: https://cloud.google.com/run/docs @@ -2204,7 +2105,6 @@ libraries: rpc_documentation: https://cloud.google.com/run/docs/reference/rpc GAPICs: - proto_path: google/cloud/run/v2 - - api_shortname: saasservicemgmt name_pretty: SaaS Runtime API product_documentation: https://cloud.google.com/saas-runtime/docs/overview @@ -2238,7 +2138,6 @@ libraries: GAPICs: - proto_path: google/cloud/scheduler/v1 - proto_path: google/cloud/scheduler/v1beta1 - - api_shortname: secretmanager name_pretty: Secret Management product_documentation: https://cloud.google.com/solutions/secrets-management/ @@ -2249,9 +2148,7 @@ libraries: GAPICs: - proto_path: google/cloud/secretmanager/v1 - proto_path: google/cloud/secretmanager/v1beta2 - # v1beta1's version is in a different proto path from the rest - proto_path: google/cloud/secrets/v1beta1 - - api_shortname: securesourcemanager name_pretty: Secure Source Manager API product_documentation: https://cloud.google.com/secure-source-manager/docs/overview @@ -2260,7 +2157,6 @@ libraries: release_level: stable GAPICs: - proto_path: google/cloud/securesourcemanager/v1 - - api_shortname: privateca name_pretty: Certificate Authority Service product_documentation: https://cloud.google.com/certificate-authority-service/docs @@ -2274,8 +2170,6 @@ libraries: GAPICs: - proto_path: google/cloud/security/privateca/v1 - proto_path: google/cloud/security/privateca/v1beta1 - -# duplicated api_shortname - api_shortname: securitycenter name_pretty: Security Command Center product_documentation: https://cloud.google.com/security-command-center @@ -2295,7 +2189,6 @@ libraries: - proto_path: google/cloud/securitycenter/v1beta1 - proto_path: google/cloud/securitycenter/v1p1beta1 - proto_path: google/cloud/securitycenter/v2 - - api_shortname: securitycenter name_pretty: Security Command Center Settings API product_documentation: https://cloud.google.com/security-command-center/ @@ -2308,7 +2201,6 @@ libraries: rest_documentation: https://cloud.google.com/security-command-center/docs/reference/rest GAPICs: - proto_path: google/cloud/securitycenter/settings/v1beta1 - - api_shortname: securitycentermanagement name_pretty: Security Center Management API product_documentation: https://cloud.google.com/securitycentermanagement/docs/overview @@ -2316,7 +2208,6 @@ libraries: release_level: stable GAPICs: - proto_path: google/cloud/securitycentermanagement/v1 - - api_shortname: securityposture name_pretty: Security Posture API product_documentation: https://cloud.google.com/security-command-center/docs/security-posture-overview @@ -2327,7 +2218,6 @@ libraries: release_level: stable GAPICs: - proto_path: google/cloud/securityposture/v1 - - api_shortname: servicecontrol name_pretty: Service Control API product_documentation: https://cloud.google.com/service-infrastructure/docs/overview/ @@ -2339,7 +2229,6 @@ libraries: GAPICs: - proto_path: google/api/servicecontrol/v1 - proto_path: google/api/servicecontrol/v2 - - api_shortname: servicemanagement name_pretty: Service Management API product_documentation: https://cloud.google.com/service-infrastructure/docs/overview/ @@ -2353,7 +2242,6 @@ libraries: api_id: servicemanagement.googleapis.com GAPICs: - proto_path: google/api/servicemanagement/v1 - - api_shortname: serviceusage name_pretty: Service Usage product_documentation: https://cloud.google.com/service-usage/docs/overview @@ -2364,7 +2252,6 @@ libraries: GAPICs: - proto_path: google/api/serviceusage/v1 - proto_path: google/api/serviceusage/v1beta1 - - api_shortname: servicedirectory name_pretty: Service Directory product_documentation: https://cloud.google.com/service-directory/ @@ -2376,7 +2263,6 @@ libraries: GAPICs: - proto_path: google/cloud/servicedirectory/v1 - proto_path: google/cloud/servicedirectory/v1beta1 - - api_shortname: servicehealth name_pretty: Service Health API product_documentation: https://cloud.google.com/service-health/docs/overview @@ -2385,7 +2271,6 @@ libraries: rpc_documentation: https://cloud.google.com/service-health/docs/reference/rpc GAPICs: - proto_path: google/cloud/servicehealth/v1 - - api_shortname: cloudshell name_pretty: Cloud Shell product_documentation: https://cloud.google.com/shell/docs @@ -2399,7 +2284,6 @@ libraries: rpc_documentation: https://cloud.google.com/shell/docs/reference/rpc GAPICs: - proto_path: google/cloud/shell/v1 - - api_shortname: css name_pretty: CSS API product_documentation: https://developers.google.com/comparison-shopping-services/api @@ -2410,8 +2294,6 @@ libraries: distribution_name: com.google.shopping:google-shopping-css GAPICs: - proto_path: google/shopping/css/v1 - - # duplicated api_shortname - api_shortname: merchantapi name_pretty: Merchant API product_documentation: https://developers.google.com/merchant/api @@ -2445,7 +2327,6 @@ libraries: - proto_path: google/shopping/merchant/conversions/v1 - proto_path: google/shopping/merchant/conversions/v1beta requires_billing: true - - api_shortname: merchantapi name_pretty: Merchant API product_documentation: https://developers.google.com/merchant/api @@ -2490,7 +2371,6 @@ libraries: - proto_path: google/shopping/merchant/lfp/v1 - proto_path: google/shopping/merchant/lfp/v1beta requires_billing: true - - api_shortname: shopping-merchant-notifications name_pretty: Merchant Notifications API product_documentation: https://developers.google.com/merchant/api @@ -2572,7 +2452,6 @@ libraries: - proto_path: google/shopping/merchant/quota/v1 - proto_path: google/shopping/merchant/quota/v1beta requires_billing: true - - api_shortname: merchantapi name_pretty: Merchant API product_documentation: https://developers.google.com/merchant/api @@ -2585,7 +2464,6 @@ libraries: - proto_path: google/shopping/merchant/reports/v1 - proto_path: google/shopping/merchant/reports/v1beta - proto_path: google/shopping/merchant/reports/v1alpha - - api_shortname: merchantapi name_pretty: Merchant API product_documentation: https://developers.google.com/merchant/api @@ -2601,7 +2479,6 @@ libraries: - proto_path: google/shopping/merchant/reviews/v1beta requires_billing: true library_name: shopping-merchant-reviews - - api_shortname: spanneradapter name_pretty: Cloud Spanner Adapter API product_documentation: @@ -2635,7 +2512,6 @@ libraries: - proto_path: google/cloud/speech/v1 - proto_path: google/cloud/speech/v1p1beta1 - proto_path: google/cloud/speech/v2 - - api_shortname: storagetransfer name_pretty: Storage Transfer Service product_documentation: https://cloud.google.com/storage-transfer-service @@ -2645,7 +2521,6 @@ libraries: release_level: stable GAPICs: - proto_path: google/storagetransfer/v1 - - api_shortname: storagebatchoperations name_pretty: Storage Batch Operations API product_documentation: https://cloud.google.com/storage/docs/batch-operations/overview @@ -2669,7 +2544,6 @@ libraries: api_description: Provides insights capability on Google Cloud Storage GAPICs: - proto_path: google/cloud/storageinsights/v1 - - api_shortname: jobs name_pretty: Talent Solution product_documentation: https://cloud.google.com/solutions/talent-solution/ @@ -2685,7 +2559,6 @@ libraries: GAPICs: - proto_path: google/cloud/talent/v4 - proto_path: google/cloud/talent/v4beta1 - - api_shortname: cloudtasks name_pretty: Cloud Tasks product_documentation: https://cloud.google.com/tasks/docs/ @@ -2703,7 +2576,6 @@ libraries: - proto_path: google/cloud/tasks/v2 - proto_path: google/cloud/tasks/v2beta2 - proto_path: google/cloud/tasks/v2beta3 - - api_shortname: telcoautomation name_pretty: Telco Automation API product_documentation: https://cloud.google.com/telecom-network-automation @@ -2713,7 +2585,6 @@ libraries: GAPICs: - proto_path: google/cloud/telcoautomation/v1 - proto_path: google/cloud/telcoautomation/v1alpha1 - - api_shortname: texttospeech name_pretty: Cloud Text-to-Speech product_documentation: https://cloud.google.com/text-to-speech @@ -2728,7 +2599,6 @@ libraries: GAPICs: - proto_path: google/cloud/texttospeech/v1 - proto_path: google/cloud/texttospeech/v1beta1 - - api_shortname: tpu name_pretty: Cloud TPU product_documentation: https://cloud.google.com/tpu/docs @@ -2740,7 +2610,6 @@ libraries: - proto_path: google/cloud/tpu/v1 - proto_path: google/cloud/tpu/v2 - proto_path: google/cloud/tpu/v2alpha1 - - api_shortname: cloudtrace name_pretty: Stackdriver Trace product_documentation: https://cloud.google.com/trace/docs/ @@ -2754,7 +2623,6 @@ libraries: GAPICs: - proto_path: google/devtools/cloudtrace/v1 - proto_path: google/devtools/cloudtrace/v2 - - api_shortname: translate name_pretty: Cloud Translation product_documentation: https://cloud.google.com/translate/docs/ @@ -2769,7 +2637,6 @@ libraries: GAPICs: - proto_path: google/cloud/translate/v3 - proto_path: google/cloud/translate/v3beta1 - - api_shortname: memorystore name_pretty: Memorystore API product_documentation: https://cloud.google.com/memorystore/docs/valkey @@ -2826,7 +2693,6 @@ libraries: - proto_path: google/cloud/videointelligence/v1p1beta1 - proto_path: google/cloud/videointelligence/v1p2beta1 - proto_path: google/cloud/videointelligence/v1p3beta1 - - api_shortname: livestream name_pretty: Live Stream API product_documentation: https://cloud.google.com/livestream/ @@ -2837,7 +2703,6 @@ libraries: distribution_name: com.google.cloud:google-cloud-live-stream GAPICs: - proto_path: google/cloud/video/livestream/v1 - - api_shortname: videostitcher name_pretty: Video Stitcher API product_documentation: https://cloud.google.com/video-stitcher/ @@ -2847,7 +2712,6 @@ libraries: release_level: stable GAPICs: - proto_path: google/cloud/video/stitcher/v1 - - api_shortname: transcoder name_pretty: Video Transcoder product_documentation: https://cloud.google.com/transcoder/docs @@ -2861,7 +2725,6 @@ libraries: rpc_documentation: https://cloud.google.com/transcoder/docs/reference/rpc GAPICs: - proto_path: google/cloud/video/transcoder/v1 - - api_shortname: vision name_pretty: Cloud Vision product_documentation: https://cloud.google.com/vision/docs/ @@ -2878,7 +2741,6 @@ libraries: - proto_path: google/cloud/vision/v1p2beta1 - proto_path: google/cloud/vision/v1p3beta1 - proto_path: google/cloud/vision/v1p4beta1 - - api_shortname: visionai name_pretty: Vision AI API product_documentation: https://cloud.google.com/vision-ai/docs @@ -2905,7 +2767,6 @@ libraries: release_level: stable GAPICs: - proto_path: google/cloud/vmmigration/v1 - - api_shortname: vmwareengine name_pretty: Google Cloud VMware Engine product_documentation: https://cloud.google.com/vmware-engine/ @@ -2914,7 +2775,6 @@ libraries: rest_documentation: https://cloud.google.com/vmware-engine/docs/reference/rest GAPICs: - proto_path: google/cloud/vmwareengine/v1 - - api_shortname: vpcaccess name_pretty: Serverless VPC Access product_documentation: https://cloud.google.com/vpc/docs/serverless-vpc-access @@ -2925,7 +2785,6 @@ libraries: release_level: stable GAPICs: - proto_path: google/cloud/vpcaccess/v1 - - api_shortname: webrisk name_pretty: Web Risk product_documentation: https://cloud.google.com/web-risk/docs/ @@ -2945,7 +2804,6 @@ libraries: GAPICs: - proto_path: google/cloud/webrisk/v1 - proto_path: google/cloud/webrisk/v1beta1 - - api_shortname: websecurityscanner name_pretty: Cloud Security Scanner product_documentation: https://cloud.google.com/security-scanner/docs/ @@ -2960,7 +2818,6 @@ libraries: - proto_path: google/cloud/websecurityscanner/v1 - proto_path: google/cloud/websecurityscanner/v1alpha - proto_path: google/cloud/websecurityscanner/v1beta - - api_shortname: workflowexecutions name_pretty: Cloud Workflow Executions product_documentation: https://cloud.google.com/workflows @@ -2973,7 +2830,6 @@ libraries: GAPICs: - proto_path: google/cloud/workflows/executions/v1 - proto_path: google/cloud/workflows/executions/v1beta - - api_shortname: workflows name_pretty: Cloud Workflows product_documentation: https://cloud.google.com/workflows @@ -2985,7 +2841,24 @@ libraries: GAPICs: - proto_path: google/cloud/workflows/v1 - proto_path: google/cloud/workflows/v1beta - +- api_shortname: workloadmanager + name_pretty: Workload Manager API + product_documentation: https://docs.cloud.google.com/workload-manager/docs + api_description: Workload Manager is a service that provides tooling for enterprise + workloads to automate the deployment and validation of your workloads against + best practices and recommendations. + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-workloadmanager/latest/overview + release_level: preview + distribution_name: com.google.cloud:google-cloud-workloadmanager + api_id: workloadmanager.googleapis.com + library_type: GAPIC_AUTO + group_id: com.google.cloud + cloud_api: true + GAPICs: + - proto_path: google/cloud/workloadmanager/v1 + requires_billing: true + rpc_documentation: https://docs.cloud.google.com/workload-manager/docs/reference/rest - api_shortname: workspaceevents name_pretty: Google Workspace Events API product_documentation: https://developers.google.com/workspace/events @@ -2995,7 +2868,6 @@ libraries: GAPICs: - proto_path: google/apps/events/subscriptions/v1 - proto_path: google/apps/events/subscriptions/v1beta - - api_shortname: workstations name_pretty: Cloud Workstations product_documentation: https://cloud.google.com/workstations diff --git a/google-cloud-jar-parent/pom.xml b/google-cloud-jar-parent/pom.xml index 8ee611d76750..d1b433e38c17 100644 --- a/google-cloud-jar-parent/pom.xml +++ b/google-cloud-jar-parent/pom.xml @@ -5,7 +5,7 @@ 4.0.0 google-cloud-jar-parent com.google.cloud - 1.78.0-SNAPSHOT + 1.79.0 pom Google Cloud JAR Parent @@ -15,7 +15,7 @@ com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-pom-parent/pom.xml diff --git a/google-cloud-pom-parent/pom.xml b/google-cloud-pom-parent/pom.xml index aa596d579afa..9e1f67afb5f3 100644 --- a/google-cloud-pom-parent/pom.xml +++ b/google-cloud-pom-parent/pom.xml @@ -5,7 +5,7 @@ 4.0.0 google-cloud-pom-parent com.google.cloud - 1.78.0-SNAPSHOT + 1.79.0 pom Google Cloud POM Parent https://github.com/googleapis/google-cloud-java @@ -15,7 +15,7 @@ com.google.cloud sdk-platform-java-config - 3.56.0 + 3.56.1 diff --git a/java-accessapproval/README.md b/java-accessapproval/README.md index eea259b28db5..57363b8f3ada 100644 --- a/java-accessapproval/README.md +++ b/java-accessapproval/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-accessapproval - 2.83.0 + 2.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-accessapproval:2.83.0' +implementation 'com.google.cloud:google-cloud-accessapproval:2.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.83.0" +libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.84.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-accessapproval/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-accessapproval.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.84.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-accessapproval/google-cloud-accessapproval-bom/pom.xml b/java-accessapproval/google-cloud-accessapproval-bom/pom.xml index f89d9d57af10..6727620a5bb7 100644 --- a/java-accessapproval/google-cloud-accessapproval-bom/pom.xml +++ b/java-accessapproval/google-cloud-accessapproval-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-accessapproval-bom - 2.85.0-SNAPSHOT + 2.86.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-accessapproval - 2.85.0-SNAPSHOT + 2.86.0 com.google.api.grpc grpc-google-cloud-accessapproval-v1 - 2.85.0-SNAPSHOT + 2.86.0 com.google.api.grpc proto-google-cloud-accessapproval-v1 - 2.85.0-SNAPSHOT + 2.86.0 diff --git a/java-accessapproval/google-cloud-accessapproval/pom.xml b/java-accessapproval/google-cloud-accessapproval/pom.xml index 5b30d78efe67..42dc81ad62c9 100644 --- a/java-accessapproval/google-cloud-accessapproval/pom.xml +++ b/java-accessapproval/google-cloud-accessapproval/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-accessapproval - 2.85.0-SNAPSHOT + 2.86.0 jar Google Cloud Access Approval Java idiomatic client for Google Cloud accessapproval com.google.cloud google-cloud-accessapproval-parent - 2.85.0-SNAPSHOT + 2.86.0 google-cloud-accessapproval diff --git a/java-accessapproval/grpc-google-cloud-accessapproval-v1/pom.xml b/java-accessapproval/grpc-google-cloud-accessapproval-v1/pom.xml index 20be4643ba92..1133d6790242 100644 --- a/java-accessapproval/grpc-google-cloud-accessapproval-v1/pom.xml +++ b/java-accessapproval/grpc-google-cloud-accessapproval-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-accessapproval-v1 - 2.85.0-SNAPSHOT + 2.86.0 grpc-google-cloud-accessapproval-v1 GRPC library for grpc-google-cloud-accessapproval-v1 com.google.cloud google-cloud-accessapproval-parent - 2.85.0-SNAPSHOT + 2.86.0 diff --git a/java-accessapproval/pom.xml b/java-accessapproval/pom.xml index 98925f2a3a57..464990b125a8 100644 --- a/java-accessapproval/pom.xml +++ b/java-accessapproval/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-accessapproval-parent pom - 2.85.0-SNAPSHOT + 2.86.0 Google Cloud Access Approval Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-accessapproval-v1 - 2.85.0-SNAPSHOT + 2.86.0 com.google.api.grpc grpc-google-cloud-accessapproval-v1 - 2.85.0-SNAPSHOT + 2.86.0 com.google.cloud google-cloud-accessapproval - 2.85.0-SNAPSHOT + 2.86.0 diff --git a/java-accessapproval/proto-google-cloud-accessapproval-v1/pom.xml b/java-accessapproval/proto-google-cloud-accessapproval-v1/pom.xml index be23f9649acd..4d5e0698d32f 100644 --- a/java-accessapproval/proto-google-cloud-accessapproval-v1/pom.xml +++ b/java-accessapproval/proto-google-cloud-accessapproval-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-accessapproval-v1 - 2.85.0-SNAPSHOT + 2.86.0 proto-google-cloud-accessapproval-v1beta1 PROTO library for proto-google-cloud-accessapproval-v1 com.google.cloud google-cloud-accessapproval-parent - 2.85.0-SNAPSHOT + 2.86.0 diff --git a/java-accesscontextmanager/README.md b/java-accesscontextmanager/README.md index b089878ff8d9..42b8b1a65d04 100644 --- a/java-accesscontextmanager/README.md +++ b/java-accesscontextmanager/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-identity-accesscontextmanager - 1.83.0 + 1.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-identity-accesscontextmanager:1.83.0' +implementation 'com.google.cloud:google-identity-accesscontextmanager:1.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.83.0" +libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.84.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-identity-accesscontextmanager/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-identity-accesscontextmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.84.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-accesscontextmanager/google-identity-accesscontextmanager-bom/pom.xml b/java-accesscontextmanager/google-identity-accesscontextmanager-bom/pom.xml index b92d369832af..32fca1b090f9 100644 --- a/java-accesscontextmanager/google-identity-accesscontextmanager-bom/pom.xml +++ b/java-accesscontextmanager/google-identity-accesscontextmanager-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-identity-accesscontextmanager-bom - 1.85.0-SNAPSHOT + 1.86.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,22 +27,22 @@ com.google.cloud google-identity-accesscontextmanager - 1.85.0-SNAPSHOT + 1.86.0 com.google.api.grpc grpc-google-identity-accesscontextmanager-v1 - 1.85.0-SNAPSHOT + 1.86.0 com.google.api.grpc proto-google-identity-accesscontextmanager-v1 - 1.85.0-SNAPSHOT + 1.86.0 com.google.api.grpc proto-google-identity-accesscontextmanager-type - 1.85.0-SNAPSHOT + 1.86.0 diff --git a/java-accesscontextmanager/google-identity-accesscontextmanager/pom.xml b/java-accesscontextmanager/google-identity-accesscontextmanager/pom.xml index 3efa07df3650..06cd52a9aec2 100644 --- a/java-accesscontextmanager/google-identity-accesscontextmanager/pom.xml +++ b/java-accesscontextmanager/google-identity-accesscontextmanager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-identity-accesscontextmanager - 1.85.0-SNAPSHOT + 1.86.0 jar Google Identity Access Context Manager Identity Access Context Manager n/a com.google.cloud google-identity-accesscontextmanager-parent - 1.85.0-SNAPSHOT + 1.86.0 google-identity-accesscontextmanager diff --git a/java-accesscontextmanager/grpc-google-identity-accesscontextmanager-v1/pom.xml b/java-accesscontextmanager/grpc-google-identity-accesscontextmanager-v1/pom.xml index 668af781aee9..113a5a9e729c 100644 --- a/java-accesscontextmanager/grpc-google-identity-accesscontextmanager-v1/pom.xml +++ b/java-accesscontextmanager/grpc-google-identity-accesscontextmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-identity-accesscontextmanager-v1 - 1.85.0-SNAPSHOT + 1.86.0 grpc-google-identity-accesscontextmanager-v1 GRPC library for google-identity-accesscontextmanager com.google.cloud google-identity-accesscontextmanager-parent - 1.85.0-SNAPSHOT + 1.86.0 diff --git a/java-accesscontextmanager/pom.xml b/java-accesscontextmanager/pom.xml index ab1ee301237c..35cf64d1ec8c 100644 --- a/java-accesscontextmanager/pom.xml +++ b/java-accesscontextmanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-identity-accesscontextmanager-parent pom - 1.85.0-SNAPSHOT + 1.86.0 Google Identity Access Context Manager Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -30,22 +30,22 @@ com.google.api.grpc proto-google-identity-accesscontextmanager-type - 1.85.0-SNAPSHOT + 1.86.0 com.google.api.grpc proto-google-identity-accesscontextmanager-v1 - 1.85.0-SNAPSHOT + 1.86.0 com.google.api.grpc grpc-google-identity-accesscontextmanager-v1 - 1.85.0-SNAPSHOT + 1.86.0 com.google.cloud google-identity-accesscontextmanager - 1.85.0-SNAPSHOT + 1.86.0 diff --git a/java-accesscontextmanager/proto-google-identity-accesscontextmanager-type/pom.xml b/java-accesscontextmanager/proto-google-identity-accesscontextmanager-type/pom.xml index 7507710d3c04..9c53ef1ecd9f 100644 --- a/java-accesscontextmanager/proto-google-identity-accesscontextmanager-type/pom.xml +++ b/java-accesscontextmanager/proto-google-identity-accesscontextmanager-type/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-identity-accesscontextmanager-type - 1.85.0-SNAPSHOT + 1.86.0 proto-google-identity-accesscontextmanager-type PROTO library for proto-google-identity-accesscontextmanager-type com.google.cloud google-identity-accesscontextmanager-parent - 1.85.0-SNAPSHOT + 1.86.0 diff --git a/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/pom.xml b/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/pom.xml index f1481506bb5e..af771ad10d16 100644 --- a/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/pom.xml +++ b/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-identity-accesscontextmanager-v1 - 1.85.0-SNAPSHOT + 1.86.0 proto-google-identity-accesscontextmanager-v1 PROTO library for proto-google-identity-accesscontextmanager-v1 com.google.cloud google-identity-accesscontextmanager-parent - 1.85.0-SNAPSHOT + 1.86.0 @@ -37,7 +37,7 @@ com.google.api.grpc proto-google-identity-accesscontextmanager-type - 1.85.0-SNAPSHOT + 1.86.0 diff --git a/java-admanager/README.md b/java-admanager/README.md index 9a7f3fb38360..4113112f9f87 100644 --- a/java-admanager/README.md +++ b/java-admanager/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.api-ads ad-manager - 0.41.0 + 0.42.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.api-ads:ad-manager:0.41.0' +implementation 'com.google.api-ads:ad-manager:0.42.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.41.0" +libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.42.0" ``` ## Authentication @@ -158,7 +158,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/ad-manager/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.api-ads/ad-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.41.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.42.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-admanager/ad-manager-bom/pom.xml b/java-admanager/ad-manager-bom/pom.xml index d9bece5d84b6..907dc0a81601 100644 --- a/java-admanager/ad-manager-bom/pom.xml +++ b/java-admanager/ad-manager-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.api-ads ad-manager-bom - 0.43.0-SNAPSHOT + 0.44.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,12 +26,12 @@ com.google.api-ads ad-manager - 0.43.0-SNAPSHOT + 0.44.0 com.google.api-ads.api.grpc proto-ad-manager-v1 - 0.43.0-SNAPSHOT + 0.44.0 diff --git a/java-admanager/ad-manager/pom.xml b/java-admanager/ad-manager/pom.xml index 9b42aa4b497a..5d932abb4c5d 100644 --- a/java-admanager/ad-manager/pom.xml +++ b/java-admanager/ad-manager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.api-ads ad-manager - 0.43.0-SNAPSHOT + 0.44.0 jar Google Google Ad Manager API Google Ad Manager API The Ad Manager API enables an app to integrate with Google Ad Manager. You can read Ad Manager data and run reports using the API. com.google.api-ads ad-manager-parent - 0.43.0-SNAPSHOT + 0.44.0 ad-manager diff --git a/java-admanager/pom.xml b/java-admanager/pom.xml index ecba56b1f5c1..2a6da5f25d40 100644 --- a/java-admanager/pom.xml +++ b/java-admanager/pom.xml @@ -4,7 +4,7 @@ com.google.api-ads ad-manager-parent pom - 0.43.0-SNAPSHOT + 0.44.0 Google Google Ad Manager API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,12 +29,12 @@ com.google.api-ads ad-manager - 0.43.0-SNAPSHOT + 0.44.0 com.google.api-ads.api.grpc proto-ad-manager-v1 - 0.43.0-SNAPSHOT + 0.44.0 diff --git a/java-admanager/proto-ad-manager-v1/pom.xml b/java-admanager/proto-ad-manager-v1/pom.xml index 510ac07f34d4..2e4121343c31 100644 --- a/java-admanager/proto-ad-manager-v1/pom.xml +++ b/java-admanager/proto-ad-manager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api-ads.api.grpc proto-ad-manager-v1 - 0.43.0-SNAPSHOT + 0.44.0 proto-ad-manager-v1 Proto library for ad-manager com.google.api-ads ad-manager-parent - 0.43.0-SNAPSHOT + 0.44.0 diff --git a/java-advisorynotifications/README.md b/java-advisorynotifications/README.md index 13e09d418fd4..92fe00a0c1e3 100644 --- a/java-advisorynotifications/README.md +++ b/java-advisorynotifications/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-advisorynotifications - 0.71.0 + 0.72.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-advisorynotifications:0.71.0' +implementation 'com.google.cloud:google-cloud-advisorynotifications:0.72.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.71.0" +libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.72.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-advisorynotifications/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-advisorynotifications.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.71.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.72.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-advisorynotifications/google-cloud-advisorynotifications-bom/pom.xml b/java-advisorynotifications/google-cloud-advisorynotifications-bom/pom.xml index 58376e8bce78..c5776bc42107 100644 --- a/java-advisorynotifications/google-cloud-advisorynotifications-bom/pom.xml +++ b/java-advisorynotifications/google-cloud-advisorynotifications-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-advisorynotifications-bom - 0.73.0-SNAPSHOT + 0.74.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-advisorynotifications - 0.73.0-SNAPSHOT + 0.74.0 com.google.api.grpc grpc-google-cloud-advisorynotifications-v1 - 0.73.0-SNAPSHOT + 0.74.0 com.google.api.grpc proto-google-cloud-advisorynotifications-v1 - 0.73.0-SNAPSHOT + 0.74.0 diff --git a/java-advisorynotifications/google-cloud-advisorynotifications/pom.xml b/java-advisorynotifications/google-cloud-advisorynotifications/pom.xml index 05f4beb4f80d..925cfe316aab 100644 --- a/java-advisorynotifications/google-cloud-advisorynotifications/pom.xml +++ b/java-advisorynotifications/google-cloud-advisorynotifications/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-advisorynotifications - 0.73.0-SNAPSHOT + 0.74.0 jar Google Advisory Notifications API Advisory Notifications API An API for accessing Advisory Notifications in Google Cloud. com.google.cloud google-cloud-advisorynotifications-parent - 0.73.0-SNAPSHOT + 0.74.0 google-cloud-advisorynotifications diff --git a/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/pom.xml b/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/pom.xml index ca0f4f6698ed..0483dca4f5aa 100644 --- a/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/pom.xml +++ b/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-advisorynotifications-v1 - 0.73.0-SNAPSHOT + 0.74.0 grpc-google-cloud-advisorynotifications-v1 GRPC library for google-cloud-advisorynotifications com.google.cloud google-cloud-advisorynotifications-parent - 0.73.0-SNAPSHOT + 0.74.0 diff --git a/java-advisorynotifications/pom.xml b/java-advisorynotifications/pom.xml index 1955abe3033c..7e8ff73efe8f 100644 --- a/java-advisorynotifications/pom.xml +++ b/java-advisorynotifications/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-advisorynotifications-parent pom - 0.73.0-SNAPSHOT + 0.74.0 Google Advisory Notifications API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-advisorynotifications - 0.73.0-SNAPSHOT + 0.74.0 com.google.api.grpc grpc-google-cloud-advisorynotifications-v1 - 0.73.0-SNAPSHOT + 0.74.0 com.google.api.grpc proto-google-cloud-advisorynotifications-v1 - 0.73.0-SNAPSHOT + 0.74.0 diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/pom.xml b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/pom.xml index bd0c52f5d564..b6e608dfbc11 100644 --- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/pom.xml +++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-advisorynotifications-v1 - 0.73.0-SNAPSHOT + 0.74.0 proto-google-cloud-advisorynotifications-v1 Proto library for google-cloud-advisorynotifications com.google.cloud google-cloud-advisorynotifications-parent - 0.73.0-SNAPSHOT + 0.74.0 diff --git a/java-aiplatform/README.md b/java-aiplatform/README.md index 09e8d7f9a14c..4e676dbcdbbc 100644 --- a/java-aiplatform/README.md +++ b/java-aiplatform/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-aiplatform - 3.83.0 + 3.85.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-aiplatform:3.83.0' +implementation 'com.google.cloud:google-cloud-aiplatform:3.85.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.83.0" +libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.85.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-aiplatform/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-aiplatform.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.85.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-aiplatform/google-cloud-aiplatform-bom/pom.xml b/java-aiplatform/google-cloud-aiplatform-bom/pom.xml index 9233ebab5fe9..9b23758a809b 100644 --- a/java-aiplatform/google-cloud-aiplatform-bom/pom.xml +++ b/java-aiplatform/google-cloud-aiplatform-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-aiplatform-bom - 3.85.0-SNAPSHOT + 3.86.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-aiplatform - 3.85.0-SNAPSHOT + 3.86.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1 - 3.85.0-SNAPSHOT + 3.86.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1beta1 - 0.101.0-SNAPSHOT + 0.102.0 com.google.api.grpc proto-google-cloud-aiplatform-v1 - 3.85.0-SNAPSHOT + 3.86.0 com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.101.0-SNAPSHOT + 0.102.0 diff --git a/java-aiplatform/google-cloud-aiplatform/pom.xml b/java-aiplatform/google-cloud-aiplatform/pom.xml index 5583fb138120..e2702b52b827 100644 --- a/java-aiplatform/google-cloud-aiplatform/pom.xml +++ b/java-aiplatform/google-cloud-aiplatform/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-aiplatform - 3.85.0-SNAPSHOT + 3.86.0 jar Google Cloud Vertex AI Java client for Google Cloud Vertex AI services. com.google.cloud google-cloud-aiplatform-parent - 3.85.0-SNAPSHOT + 3.86.0 google-cloud-aiplatform diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java index 78f9429a00f2..435169b38da2 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java @@ -426,7 +426,7 @@ * * *

ListAnnotations - *

Lists Annotations belongs to a dataitem This RPC is only available in InternalDatasetService. It is only used for exporting conversation data to CCAI Insights. + *

Lists Annotations belongs to a dataitem. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    @@ -3225,8 +3225,7 @@ public final UnaryCallable getAnnotati // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Annotations belongs to a dataitem This RPC is only available in InternalDatasetService. - * It is only used for exporting conversation data to CCAI Insights. + * Lists Annotations belongs to a dataitem. * *

    Sample code: * @@ -3258,8 +3257,7 @@ public final ListAnnotationsPagedResponse listAnnotations(DataItemName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Annotations belongs to a dataitem This RPC is only available in InternalDatasetService. - * It is only used for exporting conversation data to CCAI Insights. + * Lists Annotations belongs to a dataitem. * *

    Sample code: * @@ -3289,8 +3287,7 @@ public final ListAnnotationsPagedResponse listAnnotations(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Annotations belongs to a dataitem This RPC is only available in InternalDatasetService. - * It is only used for exporting conversation data to CCAI Insights. + * Lists Annotations belongs to a dataitem. * *

    Sample code: * @@ -3326,8 +3323,7 @@ public final ListAnnotationsPagedResponse listAnnotations(ListAnnotationsRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Annotations belongs to a dataitem This RPC is only available in InternalDatasetService. - * It is only used for exporting conversation data to CCAI Insights. + * Lists Annotations belongs to a dataitem. * *

    Sample code: * @@ -3364,8 +3360,7 @@ public final ListAnnotationsPagedResponse listAnnotations(ListAnnotationsRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Annotations belongs to a dataitem This RPC is only available in InternalDatasetService. - * It is only used for exporting conversation data to CCAI Insights. + * Lists Annotations belongs to a dataitem. * *

    Sample code: * diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceClient.java index 3fd69a65d883..da119a4d11c2 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceClient.java @@ -1125,6 +1125,7 @@ public final OperationFuture deleteRagCorpusAsyn * DeleteRagCorpusRequest.newBuilder() * .setName(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString()) * .setForce(true) + * .setForceDelete(true) * .build(); * vertexRagDataServiceClient.deleteRagCorpusAsync(request).get(); * } @@ -1156,6 +1157,7 @@ public final OperationFuture deleteRagCorpusAsyn * DeleteRagCorpusRequest.newBuilder() * .setName(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString()) * .setForce(true) + * .setForceDelete(true) * .build(); * OperationFuture future = * vertexRagDataServiceClient.deleteRagCorpusOperationCallable().futureCall(request); @@ -1187,6 +1189,7 @@ public final OperationFuture deleteRagCorpusAsyn * DeleteRagCorpusRequest.newBuilder() * .setName(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString()) * .setForce(true) + * .setForceDelete(true) * .build(); * ApiFuture future = * vertexRagDataServiceClient.deleteRagCorpusCallable().futureCall(request); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json index 5c9a28e61824..bbedf82902bf 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json @@ -8162,6 +8162,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.GenerationConfig$MediaResolution", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.GenerationConfig$Modality", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.GenerationConfig$RoutingConfig", "queryAllDeclaredConstructors": true, @@ -8243,6 +8261,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.GenerationConfig$ThinkingConfig$ThinkingLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.GenericOperationMetadata", "queryAllDeclaredConstructors": true, @@ -9557,6 +9584,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.ImageConfig$ImageOutputOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ImageConfig$ImageOutputOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ImageConfig$PersonGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.ImportDataConfig", "queryAllDeclaredConstructors": true, @@ -14435,6 +14489,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.Part$MediaResolution", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.Part$MediaResolution$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.Part$MediaResolution$Level", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.PartialArg", "queryAllDeclaredConstructors": true, @@ -22175,6 +22256,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.VertexRagStore", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json index 2e2bf2508548..d9c7c0513fa8 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json @@ -2744,6 +2744,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec$ComputationBasedMetricType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.ComputeTokensRequest", "queryAllDeclaredConstructors": true, @@ -12608,6 +12635,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.LargeModelReference", "queryAllDeclaredConstructors": true, @@ -15218,6 +15263,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.MetricResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.MetricResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.MetricxInput", "queryAllDeclaredConstructors": true, @@ -18602,6 +18665,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.PredefinedSplit", "queryAllDeclaredConstructors": true, @@ -28097,6 +28178,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.VertexRagStore", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/ScheduleServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/ScheduleServiceClientTest.java index 5502d8d9d79d..c6a61433789c 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/ScheduleServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/ScheduleServiceClientTest.java @@ -122,6 +122,7 @@ public void createScheduleTest() throws Exception { .setLastPauseTime(Timestamp.newBuilder().build()) .setLastResumeTime(Timestamp.newBuilder().build()) .setMaxConcurrentRunCount(-1478623794) + .setMaxConcurrentActiveRunCount(-2066355825) .setAllowQueueing(true) .setCatchUp(true) .setLastScheduledRunResponse(Schedule.RunResponse.newBuilder().build()) @@ -177,6 +178,7 @@ public void createScheduleTest2() throws Exception { .setLastPauseTime(Timestamp.newBuilder().build()) .setLastResumeTime(Timestamp.newBuilder().build()) .setMaxConcurrentRunCount(-1478623794) + .setMaxConcurrentActiveRunCount(-2066355825) .setAllowQueueing(true) .setCatchUp(true) .setLastScheduledRunResponse(Schedule.RunResponse.newBuilder().build()) @@ -316,6 +318,7 @@ public void getScheduleTest() throws Exception { .setLastPauseTime(Timestamp.newBuilder().build()) .setLastResumeTime(Timestamp.newBuilder().build()) .setMaxConcurrentRunCount(-1478623794) + .setMaxConcurrentActiveRunCount(-2066355825) .setAllowQueueing(true) .setCatchUp(true) .setLastScheduledRunResponse(Schedule.RunResponse.newBuilder().build()) @@ -368,6 +371,7 @@ public void getScheduleTest2() throws Exception { .setLastPauseTime(Timestamp.newBuilder().build()) .setLastResumeTime(Timestamp.newBuilder().build()) .setMaxConcurrentRunCount(-1478623794) + .setMaxConcurrentActiveRunCount(-2066355825) .setAllowQueueing(true) .setCatchUp(true) .setLastScheduledRunResponse(Schedule.RunResponse.newBuilder().build()) @@ -718,6 +722,7 @@ public void updateScheduleTest() throws Exception { .setLastPauseTime(Timestamp.newBuilder().build()) .setLastResumeTime(Timestamp.newBuilder().build()) .setMaxConcurrentRunCount(-1478623794) + .setMaxConcurrentActiveRunCount(-2066355825) .setAllowQueueing(true) .setCatchUp(true) .setLastScheduledRunResponse(Schedule.RunResponse.newBuilder().build()) diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClientTest.java index d779e1911852..9170af34caae 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClientTest.java @@ -105,7 +105,10 @@ public void tearDown() throws Exception { @Test public void evaluateInstancesTest() throws Exception { - EvaluateInstancesResponse expectedResponse = EvaluateInstancesResponse.newBuilder().build(); + EvaluateInstancesResponse expectedResponse = + EvaluateInstancesResponse.newBuilder() + .addAllMetricResults(new ArrayList()) + .build(); mockEvaluationService.addResponse(expectedResponse); EvaluateInstancesRequest request = diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ScheduleServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ScheduleServiceClientTest.java index 085160497020..eab6fd6b9e3e 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ScheduleServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ScheduleServiceClientTest.java @@ -122,6 +122,7 @@ public void createScheduleTest() throws Exception { .setLastPauseTime(Timestamp.newBuilder().build()) .setLastResumeTime(Timestamp.newBuilder().build()) .setMaxConcurrentRunCount(-1478623794) + .setMaxConcurrentActiveRunCount(-2066355825) .setAllowQueueing(true) .setCatchUp(true) .setLastScheduledRunResponse(Schedule.RunResponse.newBuilder().build()) @@ -177,6 +178,7 @@ public void createScheduleTest2() throws Exception { .setLastPauseTime(Timestamp.newBuilder().build()) .setLastResumeTime(Timestamp.newBuilder().build()) .setMaxConcurrentRunCount(-1478623794) + .setMaxConcurrentActiveRunCount(-2066355825) .setAllowQueueing(true) .setCatchUp(true) .setLastScheduledRunResponse(Schedule.RunResponse.newBuilder().build()) @@ -316,6 +318,7 @@ public void getScheduleTest() throws Exception { .setLastPauseTime(Timestamp.newBuilder().build()) .setLastResumeTime(Timestamp.newBuilder().build()) .setMaxConcurrentRunCount(-1478623794) + .setMaxConcurrentActiveRunCount(-2066355825) .setAllowQueueing(true) .setCatchUp(true) .setLastScheduledRunResponse(Schedule.RunResponse.newBuilder().build()) @@ -368,6 +371,7 @@ public void getScheduleTest2() throws Exception { .setLastPauseTime(Timestamp.newBuilder().build()) .setLastResumeTime(Timestamp.newBuilder().build()) .setMaxConcurrentRunCount(-1478623794) + .setMaxConcurrentActiveRunCount(-2066355825) .setAllowQueueing(true) .setCatchUp(true) .setLastScheduledRunResponse(Schedule.RunResponse.newBuilder().build()) @@ -718,6 +722,7 @@ public void updateScheduleTest() throws Exception { .setLastPauseTime(Timestamp.newBuilder().build()) .setLastResumeTime(Timestamp.newBuilder().build()) .setMaxConcurrentRunCount(-1478623794) + .setMaxConcurrentActiveRunCount(-2066355825) .setAllowQueueing(true) .setCatchUp(true) .setLastScheduledRunResponse(Schedule.RunResponse.newBuilder().build()) diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/pom.xml b/java-aiplatform/grpc-google-cloud-aiplatform-v1/pom.xml index d1b83fcf0885..10d330325f33 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/pom.xml +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1 - 3.85.0-SNAPSHOT + 3.86.0 grpc-google-cloud-aiplatform-v1 GRPC library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.85.0-SNAPSHOT + 3.86.0 diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceGrpc.java index 09c2bd00c285..1ea4d31bcc24 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceGrpc.java @@ -1231,9 +1231,7 @@ default void getAnnotationSpec( * * *

    -     * Lists Annotations belongs to a dataitem
    -     * This RPC is only available in InternalDatasetService. It is only used for
    -     * exporting conversation data to CCAI Insights.
    +     * Lists Annotations belongs to a dataitem.
          * 
    */ default void listAnnotations( @@ -1573,9 +1571,7 @@ public void getAnnotationSpec( * * *
    -     * Lists Annotations belongs to a dataitem
    -     * This RPC is only available in InternalDatasetService. It is only used for
    -     * exporting conversation data to CCAI Insights.
    +     * Lists Annotations belongs to a dataitem.
          * 
    */ public void listAnnotations( @@ -1860,9 +1856,7 @@ public com.google.cloud.aiplatform.v1.AnnotationSpec getAnnotationSpec( * * *
    -     * Lists Annotations belongs to a dataitem
    -     * This RPC is only available in InternalDatasetService. It is only used for
    -     * exporting conversation data to CCAI Insights.
    +     * Lists Annotations belongs to a dataitem.
          * 
    */ public com.google.cloud.aiplatform.v1.ListAnnotationsResponse listAnnotations( @@ -2130,9 +2124,7 @@ public com.google.cloud.aiplatform.v1.AnnotationSpec getAnnotationSpec( * * *
    -     * Lists Annotations belongs to a dataitem
    -     * This RPC is only available in InternalDatasetService. It is only used for
    -     * exporting conversation data to CCAI Insights.
    +     * Lists Annotations belongs to a dataitem.
          * 
    */ public com.google.cloud.aiplatform.v1.ListAnnotationsResponse listAnnotations( @@ -2409,9 +2401,7 @@ protected DatasetServiceFutureStub build( * * *
    -     * Lists Annotations belongs to a dataitem
    -     * This RPC is only available in InternalDatasetService. It is only used for
    -     * exporting conversation data to CCAI Insights.
    +     * Lists Annotations belongs to a dataitem.
          * 
    */ public com.google.common.util.concurrent.ListenableFuture< diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/pom.xml b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/pom.xml index ffc6808a0d56..0fbf4f6364d2 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/pom.xml +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1beta1 - 0.101.0-SNAPSHOT + 0.102.0 grpc-google-cloud-aiplatform-v1beta1 GRPC library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.85.0-SNAPSHOT + 3.86.0 diff --git a/java-aiplatform/pom.xml b/java-aiplatform/pom.xml index e10719d50e04..644cb577ab7c 100644 --- a/java-aiplatform/pom.xml +++ b/java-aiplatform/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-aiplatform-parent pom - 3.85.0-SNAPSHOT + 3.86.0 Google Cloud Vertex AI Parent Java client for Google Cloud Vertex AI services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-aiplatform - 3.85.0-SNAPSHOT + 3.86.0 com.google.api.grpc proto-google-cloud-aiplatform-v1 - 3.85.0-SNAPSHOT + 3.86.0 com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.101.0-SNAPSHOT + 0.102.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1 - 3.85.0-SNAPSHOT + 3.86.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1beta1 - 0.101.0-SNAPSHOT + 0.102.0 diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/pom.xml b/java-aiplatform/proto-google-cloud-aiplatform-v1/pom.xml index f7f0ccdd61dd..4e29f59d53d9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/pom.xml +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-aiplatform-v1 - 3.85.0-SNAPSHOT + 3.86.0 proto-google-cloud-aiplatform-v1 Proto library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.85.0-SNAPSHOT + 3.86.0 diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJob.java index 9004ca58441c..7889dfe9fc97 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJob.java @@ -184,6 +184,53 @@ public interface InputConfigOrBuilder */ com.google.cloud.aiplatform.v1.BigQuerySourceOrBuilder getBigquerySourceOrBuilder(); + /** + * + * + *
    +     * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
    +     * are supported.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; + * + * + * @return Whether the vertexMultimodalDatasetSource field is set. + */ + boolean hasVertexMultimodalDatasetSource(); + + /** + * + * + *
    +     * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
    +     * are supported.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; + * + * + * @return The vertexMultimodalDatasetSource. + */ + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource getVertexMultimodalDatasetSource(); + + /** + * + * + *
    +     * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
    +     * are supported.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; + * + */ + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSourceOrBuilder + getVertexMultimodalDatasetSourceOrBuilder(); + /** * * @@ -281,6 +328,7 @@ public enum SourceCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(2), BIGQUERY_SOURCE(3), + VERTEX_MULTIMODAL_DATASET_SOURCE(4), SOURCE_NOT_SET(0); private final int value; @@ -304,6 +352,8 @@ public static SourceCase forNumber(int value) { return GCS_SOURCE; case 3: return BIGQUERY_SOURCE; + case 4: + return VERTEX_MULTIMODAL_DATASET_SOURCE; case 0: return SOURCE_NOT_SET; default: @@ -440,6 +490,71 @@ public com.google.cloud.aiplatform.v1.BigQuerySourceOrBuilder getBigquerySourceO return com.google.cloud.aiplatform.v1.BigQuerySource.getDefaultInstance(); } + public static final int VERTEX_MULTIMODAL_DATASET_SOURCE_FIELD_NUMBER = 4; + + /** + * + * + *
    +     * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
    +     * are supported.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; + * + * + * @return Whether the vertexMultimodalDatasetSource field is set. + */ + @java.lang.Override + public boolean hasVertexMultimodalDatasetSource() { + return sourceCase_ == 4; + } + + /** + * + * + *
    +     * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
    +     * are supported.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; + * + * + * @return The vertexMultimodalDatasetSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource + getVertexMultimodalDatasetSource() { + if (sourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource) source_; + } + return com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.getDefaultInstance(); + } + + /** + * + * + *
    +     * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
    +     * are supported.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSourceOrBuilder + getVertexMultimodalDatasetSourceOrBuilder() { + if (sourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource) source_; + } + return com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.getDefaultInstance(); + } + public static final int INSTANCES_FORMAT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -520,6 +635,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (sourceCase_ == 3) { output.writeMessage(3, (com.google.cloud.aiplatform.v1.BigQuerySource) source_); } + if (sourceCase_ == 4) { + output.writeMessage( + 4, (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource) source_); + } getUnknownFields().writeTo(output); } @@ -542,6 +661,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 3, (com.google.cloud.aiplatform.v1.BigQuerySource) source_); } + if (sourceCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource) source_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -567,6 +691,10 @@ public boolean equals(final java.lang.Object obj) { case 3: if (!getBigquerySource().equals(other.getBigquerySource())) return false; break; + case 4: + if (!getVertexMultimodalDatasetSource().equals(other.getVertexMultimodalDatasetSource())) + return false; + break; case 0: default: } @@ -592,6 +720,10 @@ public int hashCode() { hash = (37 * hash) + BIGQUERY_SOURCE_FIELD_NUMBER; hash = (53 * hash) + getBigquerySource().hashCode(); break; + case 4: + hash = (37 * hash) + VERTEX_MULTIMODAL_DATASET_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getVertexMultimodalDatasetSource().hashCode(); + break; case 0: default: } @@ -746,6 +878,9 @@ public Builder clear() { if (bigquerySourceBuilder_ != null) { bigquerySourceBuilder_.clear(); } + if (vertexMultimodalDatasetSourceBuilder_ != null) { + vertexMultimodalDatasetSourceBuilder_.clear(); + } instancesFormat_ = ""; sourceCase_ = 0; source_ = null; @@ -788,7 +923,7 @@ public com.google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig buildPartia private void buildPartial0( com.google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.instancesFormat_ = instancesFormat_; } } @@ -803,6 +938,9 @@ private void buildPartialOneofs( if (sourceCase_ == 3 && bigquerySourceBuilder_ != null) { result.source_ = bigquerySourceBuilder_.build(); } + if (sourceCase_ == 4 && vertexMultimodalDatasetSourceBuilder_ != null) { + result.source_ = vertexMultimodalDatasetSourceBuilder_.build(); + } } @java.lang.Override @@ -822,7 +960,7 @@ public Builder mergeFrom( return this; if (!other.getInstancesFormat().isEmpty()) { instancesFormat_ = other.instancesFormat_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } switch (other.getSourceCase()) { @@ -836,6 +974,11 @@ public Builder mergeFrom( mergeBigquerySource(other.getBigquerySource()); break; } + case VERTEX_MULTIMODAL_DATASET_SOURCE: + { + mergeVertexMultimodalDatasetSource(other.getVertexMultimodalDatasetSource()); + break; + } case SOURCE_NOT_SET: { break; @@ -870,7 +1013,7 @@ public Builder mergeFrom( case 10: { instancesFormat_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 10 case 18: @@ -887,6 +1030,14 @@ public Builder mergeFrom( sourceCase_ = 3; break; } // case 26 + case 34: + { + input.readMessage( + internalGetVertexMultimodalDatasetSourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 4; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1392,6 +1543,259 @@ public com.google.cloud.aiplatform.v1.BigQuerySourceOrBuilder getBigquerySourceO return bigquerySourceBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource, + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.Builder, + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSourceOrBuilder> + vertexMultimodalDatasetSourceBuilder_; + + /** + * + * + *
    +       * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
    +       * are supported.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; + * + * + * @return Whether the vertexMultimodalDatasetSource field is set. + */ + @java.lang.Override + public boolean hasVertexMultimodalDatasetSource() { + return sourceCase_ == 4; + } + + /** + * + * + *
    +       * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
    +       * are supported.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; + * + * + * @return The vertexMultimodalDatasetSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource + getVertexMultimodalDatasetSource() { + if (vertexMultimodalDatasetSourceBuilder_ == null) { + if (sourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource) source_; + } + return com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.getDefaultInstance(); + } else { + if (sourceCase_ == 4) { + return vertexMultimodalDatasetSourceBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.getDefaultInstance(); + } + } + + /** + * + * + *
    +       * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
    +       * are supported.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; + * + */ + public Builder setVertexMultimodalDatasetSource( + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource value) { + if (vertexMultimodalDatasetSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + vertexMultimodalDatasetSourceBuilder_.setMessage(value); + } + sourceCase_ = 4; + return this; + } + + /** + * + * + *
    +       * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
    +       * are supported.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; + * + */ + public Builder setVertexMultimodalDatasetSource( + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.Builder builderForValue) { + if (vertexMultimodalDatasetSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + vertexMultimodalDatasetSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 4; + return this; + } + + /** + * + * + *
    +       * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
    +       * are supported.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; + * + */ + public Builder mergeVertexMultimodalDatasetSource( + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource value) { + if (vertexMultimodalDatasetSourceBuilder_ == null) { + if (sourceCase_ == 4 + && source_ + != com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource + .getDefaultInstance()) { + source_ = + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.newBuilder( + (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 4) { + vertexMultimodalDatasetSourceBuilder_.mergeFrom(value); + } else { + vertexMultimodalDatasetSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 4; + return this; + } + + /** + * + * + *
    +       * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
    +       * are supported.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; + * + */ + public Builder clearVertexMultimodalDatasetSource() { + if (vertexMultimodalDatasetSourceBuilder_ == null) { + if (sourceCase_ == 4) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 4) { + sourceCase_ = 0; + source_ = null; + } + vertexMultimodalDatasetSourceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
    +       * are supported.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; + * + */ + public com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.Builder + getVertexMultimodalDatasetSourceBuilder() { + return internalGetVertexMultimodalDatasetSourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
    +       * are supported.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSourceOrBuilder + getVertexMultimodalDatasetSourceOrBuilder() { + if ((sourceCase_ == 4) && (vertexMultimodalDatasetSourceBuilder_ != null)) { + return vertexMultimodalDatasetSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource) source_; + } + return com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.getDefaultInstance(); + } + } + + /** + * + * + *
    +       * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
    +       * are supported.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource, + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.Builder, + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSourceOrBuilder> + internalGetVertexMultimodalDatasetSourceFieldBuilder() { + if (vertexMultimodalDatasetSourceBuilder_ == null) { + if (!(sourceCase_ == 4)) { + source_ = + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.getDefaultInstance(); + } + vertexMultimodalDatasetSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource, + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.Builder, + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSourceOrBuilder>( + (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 4; + onChanged(); + return vertexMultimodalDatasetSourceBuilder_; + } + private java.lang.Object instancesFormat_ = ""; /** @@ -1463,7 +1867,7 @@ public Builder setInstancesFormat(java.lang.String value) { throw new NullPointerException(); } instancesFormat_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1483,7 +1887,7 @@ public Builder setInstancesFormat(java.lang.String value) { */ public Builder clearInstancesFormat() { instancesFormat_ = getDefaultInstance().getInstancesFormat(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1508,7 +1912,7 @@ public Builder setInstancesFormatBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); instancesFormat_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -4233,24 +4637,72 @@ public interface OutputConfigOrBuilder * * *
    -     * Required. The format in which Vertex AI gives the predictions, must be
    -     * one of the [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model]
    -     * [supported_output_storage_formats][google.cloud.aiplatform.v1.Model.supported_output_storage_formats].
    +     * The details for a Vertex Multimodal Dataset that will be created for
    +     * the output.
          * 
    * - * string predictions_format = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6; + * * - * @return The predictionsFormat. + * @return Whether the vertexMultimodalDatasetDestination field is set. */ - java.lang.String getPredictionsFormat(); + boolean hasVertexMultimodalDatasetDestination(); /** * * *
    -     * Required. The format in which Vertex AI gives the predictions, must be
    -     * one of the [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model]
    -     * [supported_output_storage_formats][google.cloud.aiplatform.v1.Model.supported_output_storage_formats].
    +     * The details for a Vertex Multimodal Dataset that will be created for
    +     * the output.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6; + * + * + * @return The vertexMultimodalDatasetDestination. + */ + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination + getVertexMultimodalDatasetDestination(); + + /** + * + * + *
    +     * The details for a Vertex Multimodal Dataset that will be created for
    +     * the output.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6; + * + */ + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestinationOrBuilder + getVertexMultimodalDatasetDestinationOrBuilder(); + + /** + * + * + *
    +     * Required. The format in which Vertex AI gives the predictions, must be
    +     * one of the [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model]
    +     * [supported_output_storage_formats][google.cloud.aiplatform.v1.Model.supported_output_storage_formats].
    +     * 
    + * + * string predictions_format = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The predictionsFormat. + */ + java.lang.String getPredictionsFormat(); + + /** + * + * + *
    +     * Required. The format in which Vertex AI gives the predictions, must be
    +     * one of the [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model]
    +     * [supported_output_storage_formats][google.cloud.aiplatform.v1.Model.supported_output_storage_formats].
          * 
    * * string predictions_format = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -4327,6 +4779,7 @@ public enum DestinationCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(2), BIGQUERY_DESTINATION(3), + VERTEX_MULTIMODAL_DATASET_DESTINATION(6), DESTINATION_NOT_SET(0); private final int value; @@ -4350,6 +4803,8 @@ public static DestinationCase forNumber(int value) { return GCS_DESTINATION; case 3: return BIGQUERY_DESTINATION; + case 6: + return VERTEX_MULTIMODAL_DATASET_DESTINATION; case 0: return DESTINATION_NOT_SET; default: @@ -4595,6 +5050,71 @@ public com.google.cloud.aiplatform.v1.BigQueryDestination getBigqueryDestination return com.google.cloud.aiplatform.v1.BigQueryDestination.getDefaultInstance(); } + public static final int VERTEX_MULTIMODAL_DATASET_DESTINATION_FIELD_NUMBER = 6; + + /** + * + * + *
    +     * The details for a Vertex Multimodal Dataset that will be created for
    +     * the output.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6; + * + * + * @return Whether the vertexMultimodalDatasetDestination field is set. + */ + @java.lang.Override + public boolean hasVertexMultimodalDatasetDestination() { + return destinationCase_ == 6; + } + + /** + * + * + *
    +     * The details for a Vertex Multimodal Dataset that will be created for
    +     * the output.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6; + * + * + * @return The vertexMultimodalDatasetDestination. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination + getVertexMultimodalDatasetDestination() { + if (destinationCase_ == 6) { + return (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination) destination_; + } + return com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.getDefaultInstance(); + } + + /** + * + * + *
    +     * The details for a Vertex Multimodal Dataset that will be created for
    +     * the output.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestinationOrBuilder + getVertexMultimodalDatasetDestinationOrBuilder() { + if (destinationCase_ == 6) { + return (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination) destination_; + } + return com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.getDefaultInstance(); + } + public static final int PREDICTIONS_FORMAT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -4675,6 +5195,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (destinationCase_ == 3) { output.writeMessage(3, (com.google.cloud.aiplatform.v1.BigQueryDestination) destination_); } + if (destinationCase_ == 6) { + output.writeMessage( + 6, (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination) destination_); + } getUnknownFields().writeTo(output); } @@ -4697,6 +5221,12 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 3, (com.google.cloud.aiplatform.v1.BigQueryDestination) destination_); } + if (destinationCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, + (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination) destination_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4722,6 +5252,10 @@ public boolean equals(final java.lang.Object obj) { case 3: if (!getBigqueryDestination().equals(other.getBigqueryDestination())) return false; break; + case 6: + if (!getVertexMultimodalDatasetDestination() + .equals(other.getVertexMultimodalDatasetDestination())) return false; + break; case 0: default: } @@ -4747,6 +5281,10 @@ public int hashCode() { hash = (37 * hash) + BIGQUERY_DESTINATION_FIELD_NUMBER; hash = (53 * hash) + getBigqueryDestination().hashCode(); break; + case 6: + hash = (37 * hash) + VERTEX_MULTIMODAL_DATASET_DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getVertexMultimodalDatasetDestination().hashCode(); + break; case 0: default: } @@ -4901,6 +5439,9 @@ public Builder clear() { if (bigqueryDestinationBuilder_ != null) { bigqueryDestinationBuilder_.clear(); } + if (vertexMultimodalDatasetDestinationBuilder_ != null) { + vertexMultimodalDatasetDestinationBuilder_.clear(); + } predictionsFormat_ = ""; destinationCase_ = 0; destination_ = null; @@ -4943,7 +5484,7 @@ public com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig buildParti private void buildPartial0( com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.predictionsFormat_ = predictionsFormat_; } } @@ -4958,6 +5499,9 @@ private void buildPartialOneofs( if (destinationCase_ == 3 && bigqueryDestinationBuilder_ != null) { result.destination_ = bigqueryDestinationBuilder_.build(); } + if (destinationCase_ == 6 && vertexMultimodalDatasetDestinationBuilder_ != null) { + result.destination_ = vertexMultimodalDatasetDestinationBuilder_.build(); + } } @java.lang.Override @@ -4977,7 +5521,7 @@ public Builder mergeFrom( return this; if (!other.getPredictionsFormat().isEmpty()) { predictionsFormat_ = other.predictionsFormat_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } switch (other.getDestinationCase()) { @@ -4991,6 +5535,12 @@ public Builder mergeFrom( mergeBigqueryDestination(other.getBigqueryDestination()); break; } + case VERTEX_MULTIMODAL_DATASET_DESTINATION: + { + mergeVertexMultimodalDatasetDestination( + other.getVertexMultimodalDatasetDestination()); + break; + } case DESTINATION_NOT_SET: { break; @@ -5025,7 +5575,7 @@ public Builder mergeFrom( case 10: { predictionsFormat_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 10 case 18: @@ -5042,6 +5592,14 @@ public Builder mergeFrom( destinationCase_ = 3; break; } // case 26 + case 50: + { + input.readMessage( + internalGetVertexMultimodalDatasetDestinationFieldBuilder().getBuilder(), + extensionRegistry); + destinationCase_ = 6; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5877,6 +6435,265 @@ public Builder clearBigqueryDestination() { return bigqueryDestinationBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination, + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.Builder, + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestinationOrBuilder> + vertexMultimodalDatasetDestinationBuilder_; + + /** + * + * + *
    +       * The details for a Vertex Multimodal Dataset that will be created for
    +       * the output.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6; + * + * + * @return Whether the vertexMultimodalDatasetDestination field is set. + */ + @java.lang.Override + public boolean hasVertexMultimodalDatasetDestination() { + return destinationCase_ == 6; + } + + /** + * + * + *
    +       * The details for a Vertex Multimodal Dataset that will be created for
    +       * the output.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6; + * + * + * @return The vertexMultimodalDatasetDestination. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination + getVertexMultimodalDatasetDestination() { + if (vertexMultimodalDatasetDestinationBuilder_ == null) { + if (destinationCase_ == 6) { + return (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination) destination_; + } + return com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination + .getDefaultInstance(); + } else { + if (destinationCase_ == 6) { + return vertexMultimodalDatasetDestinationBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * The details for a Vertex Multimodal Dataset that will be created for
    +       * the output.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6; + * + */ + public Builder setVertexMultimodalDatasetDestination( + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination value) { + if (vertexMultimodalDatasetDestinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destination_ = value; + onChanged(); + } else { + vertexMultimodalDatasetDestinationBuilder_.setMessage(value); + } + destinationCase_ = 6; + return this; + } + + /** + * + * + *
    +       * The details for a Vertex Multimodal Dataset that will be created for
    +       * the output.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6; + * + */ + public Builder setVertexMultimodalDatasetDestination( + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.Builder + builderForValue) { + if (vertexMultimodalDatasetDestinationBuilder_ == null) { + destination_ = builderForValue.build(); + onChanged(); + } else { + vertexMultimodalDatasetDestinationBuilder_.setMessage(builderForValue.build()); + } + destinationCase_ = 6; + return this; + } + + /** + * + * + *
    +       * The details for a Vertex Multimodal Dataset that will be created for
    +       * the output.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6; + * + */ + public Builder mergeVertexMultimodalDatasetDestination( + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination value) { + if (vertexMultimodalDatasetDestinationBuilder_ == null) { + if (destinationCase_ == 6 + && destination_ + != com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination + .getDefaultInstance()) { + destination_ = + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.newBuilder( + (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination) + destination_) + .mergeFrom(value) + .buildPartial(); + } else { + destination_ = value; + } + onChanged(); + } else { + if (destinationCase_ == 6) { + vertexMultimodalDatasetDestinationBuilder_.mergeFrom(value); + } else { + vertexMultimodalDatasetDestinationBuilder_.setMessage(value); + } + } + destinationCase_ = 6; + return this; + } + + /** + * + * + *
    +       * The details for a Vertex Multimodal Dataset that will be created for
    +       * the output.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6; + * + */ + public Builder clearVertexMultimodalDatasetDestination() { + if (vertexMultimodalDatasetDestinationBuilder_ == null) { + if (destinationCase_ == 6) { + destinationCase_ = 0; + destination_ = null; + onChanged(); + } + } else { + if (destinationCase_ == 6) { + destinationCase_ = 0; + destination_ = null; + } + vertexMultimodalDatasetDestinationBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * The details for a Vertex Multimodal Dataset that will be created for
    +       * the output.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6; + * + */ + public com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.Builder + getVertexMultimodalDatasetDestinationBuilder() { + return internalGetVertexMultimodalDatasetDestinationFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * The details for a Vertex Multimodal Dataset that will be created for
    +       * the output.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestinationOrBuilder + getVertexMultimodalDatasetDestinationOrBuilder() { + if ((destinationCase_ == 6) && (vertexMultimodalDatasetDestinationBuilder_ != null)) { + return vertexMultimodalDatasetDestinationBuilder_.getMessageOrBuilder(); + } else { + if (destinationCase_ == 6) { + return (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination) destination_; + } + return com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * The details for a Vertex Multimodal Dataset that will be created for
    +       * the output.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination, + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.Builder, + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestinationOrBuilder> + internalGetVertexMultimodalDatasetDestinationFieldBuilder() { + if (vertexMultimodalDatasetDestinationBuilder_ == null) { + if (!(destinationCase_ == 6)) { + destination_ = + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination + .getDefaultInstance(); + } + vertexMultimodalDatasetDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination, + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.Builder, + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestinationOrBuilder>( + (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination) destination_, + getParentForChildren(), + isClean()); + destination_ = null; + } + destinationCase_ = 6; + onChanged(); + return vertexMultimodalDatasetDestinationBuilder_; + } + private java.lang.Object predictionsFormat_ = ""; /** @@ -5948,7 +6765,7 @@ public Builder setPredictionsFormat(java.lang.String value) { throw new NullPointerException(); } predictionsFormat_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -5968,7 +6785,7 @@ public Builder setPredictionsFormat(java.lang.String value) { */ public Builder clearPredictionsFormat() { predictionsFormat_ = getDefaultInstance().getPredictionsFormat(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -5993,7 +6810,7 @@ public Builder setPredictionsFormatBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); predictionsFormat_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -6145,6 +6962,57 @@ public interface OutputInfoOrBuilder */ com.google.protobuf.ByteString getBigqueryOutputDatasetBytes(); + /** + * + * + *
    +     * Output only. The resource name of the Vertex Managed Dataset created,
    +     * into which the prediction output is written. Format:
    +     * `projects/{project}/locations/{location}/datasets/{dataset}`
    +     * 
    + * + * + * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the vertexMultimodalDatasetName field is set. + */ + boolean hasVertexMultimodalDatasetName(); + + /** + * + * + *
    +     * Output only. The resource name of the Vertex Managed Dataset created,
    +     * into which the prediction output is written. Format:
    +     * `projects/{project}/locations/{location}/datasets/{dataset}`
    +     * 
    + * + * + * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The vertexMultimodalDatasetName. + */ + java.lang.String getVertexMultimodalDatasetName(); + + /** + * + * + *
    +     * Output only. The resource name of the Vertex Managed Dataset created,
    +     * into which the prediction output is written. Format:
    +     * `projects/{project}/locations/{location}/datasets/{dataset}`
    +     * 
    + * + * + * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for vertexMultimodalDatasetName. + */ + com.google.protobuf.ByteString getVertexMultimodalDatasetNameBytes(); + /** * * @@ -6243,6 +7111,7 @@ public enum OutputLocationCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_OUTPUT_DIRECTORY(1), BIGQUERY_OUTPUT_DATASET(2), + VERTEX_MULTIMODAL_DATASET_NAME(5), OUTPUTLOCATION_NOT_SET(0); private final int value; @@ -6266,6 +7135,8 @@ public static OutputLocationCase forNumber(int value) { return GCS_OUTPUT_DIRECTORY; case 2: return BIGQUERY_OUTPUT_DATASET; + case 5: + return VERTEX_MULTIMODAL_DATASET_NAME; case 0: return OUTPUTLOCATION_NOT_SET; default: @@ -6437,6 +7308,91 @@ public com.google.protobuf.ByteString getBigqueryOutputDatasetBytes() { } } + public static final int VERTEX_MULTIMODAL_DATASET_NAME_FIELD_NUMBER = 5; + + /** + * + * + *
    +     * Output only. The resource name of the Vertex Managed Dataset created,
    +     * into which the prediction output is written. Format:
    +     * `projects/{project}/locations/{location}/datasets/{dataset}`
    +     * 
    + * + * + * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the vertexMultimodalDatasetName field is set. + */ + public boolean hasVertexMultimodalDatasetName() { + return outputLocationCase_ == 5; + } + + /** + * + * + *
    +     * Output only. The resource name of the Vertex Managed Dataset created,
    +     * into which the prediction output is written. Format:
    +     * `projects/{project}/locations/{location}/datasets/{dataset}`
    +     * 
    + * + * + * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The vertexMultimodalDatasetName. + */ + public java.lang.String getVertexMultimodalDatasetName() { + java.lang.Object ref = ""; + if (outputLocationCase_ == 5) { + ref = outputLocation_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputLocationCase_ == 5) { + outputLocation_ = s; + } + return s; + } + } + + /** + * + * + *
    +     * Output only. The resource name of the Vertex Managed Dataset created,
    +     * into which the prediction output is written. Format:
    +     * `projects/{project}/locations/{location}/datasets/{dataset}`
    +     * 
    + * + * + * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for vertexMultimodalDatasetName. + */ + public com.google.protobuf.ByteString getVertexMultimodalDatasetNameBytes() { + java.lang.Object ref = ""; + if (outputLocationCase_ == 5) { + ref = outputLocation_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (outputLocationCase_ == 5) { + outputLocation_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int BIGQUERY_OUTPUT_TABLE_FIELD_NUMBER = 4; @SuppressWarnings("serial") @@ -6519,6 +7475,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(bigqueryOutputTable_)) { com.google.protobuf.GeneratedMessage.writeString(output, 4, bigqueryOutputTable_); } + if (outputLocationCase_ == 5) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, outputLocation_); + } getUnknownFields().writeTo(output); } @@ -6537,6 +7496,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(bigqueryOutputTable_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(4, bigqueryOutputTable_); } + if (outputLocationCase_ == 5) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, outputLocation_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -6562,6 +7524,10 @@ public boolean equals(final java.lang.Object obj) { case 2: if (!getBigqueryOutputDataset().equals(other.getBigqueryOutputDataset())) return false; break; + case 5: + if (!getVertexMultimodalDatasetName().equals(other.getVertexMultimodalDatasetName())) + return false; + break; case 0: default: } @@ -6587,6 +7553,10 @@ public int hashCode() { hash = (37 * hash) + BIGQUERY_OUTPUT_DATASET_FIELD_NUMBER; hash = (53 * hash) + getBigqueryOutputDataset().hashCode(); break; + case 5: + hash = (37 * hash) + VERTEX_MULTIMODAL_DATASET_NAME_FIELD_NUMBER; + hash = (53 * hash) + getVertexMultimodalDatasetName().hashCode(); + break; case 0: default: } @@ -6775,7 +7745,7 @@ public com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo buildPartial private void buildPartial0( com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.bigqueryOutputTable_ = bigqueryOutputTable_; } } @@ -6802,7 +7772,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.BatchPredictionJob.Outpu return this; if (!other.getBigqueryOutputTable().isEmpty()) { bigqueryOutputTable_ = other.bigqueryOutputTable_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } switch (other.getOutputLocationCase()) { @@ -6820,6 +7790,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.BatchPredictionJob.Outpu onChanged(); break; } + case VERTEX_MULTIMODAL_DATASET_NAME: + { + outputLocationCase_ = 5; + outputLocation_ = other.outputLocation_; + onChanged(); + break; + } case OUTPUTLOCATION_NOT_SET: { break; @@ -6868,9 +7845,16 @@ public Builder mergeFrom( case 34: { bigqueryOutputTable_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + outputLocationCase_ = 5; + outputLocation_ = s; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7206,6 +8190,169 @@ public Builder setBigqueryOutputDatasetBytes(com.google.protobuf.ByteString valu return this; } + /** + * + * + *
    +       * Output only. The resource name of the Vertex Managed Dataset created,
    +       * into which the prediction output is written. Format:
    +       * `projects/{project}/locations/{location}/datasets/{dataset}`
    +       * 
    + * + * + * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the vertexMultimodalDatasetName field is set. + */ + @java.lang.Override + public boolean hasVertexMultimodalDatasetName() { + return outputLocationCase_ == 5; + } + + /** + * + * + *
    +       * Output only. The resource name of the Vertex Managed Dataset created,
    +       * into which the prediction output is written. Format:
    +       * `projects/{project}/locations/{location}/datasets/{dataset}`
    +       * 
    + * + * + * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The vertexMultimodalDatasetName. + */ + @java.lang.Override + public java.lang.String getVertexMultimodalDatasetName() { + java.lang.Object ref = ""; + if (outputLocationCase_ == 5) { + ref = outputLocation_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputLocationCase_ == 5) { + outputLocation_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +       * Output only. The resource name of the Vertex Managed Dataset created,
    +       * into which the prediction output is written. Format:
    +       * `projects/{project}/locations/{location}/datasets/{dataset}`
    +       * 
    + * + * + * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for vertexMultimodalDatasetName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVertexMultimodalDatasetNameBytes() { + java.lang.Object ref = ""; + if (outputLocationCase_ == 5) { + ref = outputLocation_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (outputLocationCase_ == 5) { + outputLocation_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +       * Output only. The resource name of the Vertex Managed Dataset created,
    +       * into which the prediction output is written. Format:
    +       * `projects/{project}/locations/{location}/datasets/{dataset}`
    +       * 
    + * + * + * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The vertexMultimodalDatasetName to set. + * @return This builder for chaining. + */ + public Builder setVertexMultimodalDatasetName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputLocationCase_ = 5; + outputLocation_ = value; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Output only. The resource name of the Vertex Managed Dataset created,
    +       * into which the prediction output is written. Format:
    +       * `projects/{project}/locations/{location}/datasets/{dataset}`
    +       * 
    + * + * + * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearVertexMultimodalDatasetName() { + if (outputLocationCase_ == 5) { + outputLocationCase_ = 0; + outputLocation_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
    +       * Output only. The resource name of the Vertex Managed Dataset created,
    +       * into which the prediction output is written. Format:
    +       * `projects/{project}/locations/{location}/datasets/{dataset}`
    +       * 
    + * + * + * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for vertexMultimodalDatasetName to set. + * @return This builder for chaining. + */ + public Builder setVertexMultimodalDatasetNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputLocationCase_ = 5; + outputLocation_ = value; + onChanged(); + return this; + } + private java.lang.Object bigqueryOutputTable_ = ""; /** @@ -7280,7 +8427,7 @@ public Builder setBigqueryOutputTable(java.lang.String value) { throw new NullPointerException(); } bigqueryOutputTable_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -7301,7 +8448,7 @@ public Builder setBigqueryOutputTable(java.lang.String value) { */ public Builder clearBigqueryOutputTable() { bigqueryOutputTable_ = getDefaultInstance().getBigqueryOutputTable(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -7327,7 +8474,7 @@ public Builder setBigqueryOutputTableBytes(com.google.protobuf.ByteString value) } checkByteStringIsUtf8(value); bigqueryOutputTable_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobProto.java index e51dd209b4f7..e4953ffa24d9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobProto.java @@ -73,92 +73,100 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n5google/cloud/aiplatform/v1/batch_predi" - + "ction_job.proto\022\032google.cloud.aiplatform" + "\n" + + "5google/cloud/aiplatform/v1/batch_prediction_job.proto\022\032google.cloud.aiplatform" + ".v1\032\037google/api/field_behavior.proto\032\031go" - + "ogle/api/resource.proto\0321google/cloud/ai" - + "platform/v1/completion_stats.proto\0320goog" - + "le/cloud/aiplatform/v1/encryption_spec.p" - + "roto\032,google/cloud/aiplatform/v1/explana" - + "tion.proto\032#google/cloud/aiplatform/v1/i" - + "o.proto\032*google/cloud/aiplatform/v1/job_" - + "state.proto\0322google/cloud/aiplatform/v1/" - + "machine_resources.proto\032?google/cloud/ai" - + "platform/v1/manual_batch_tuning_paramete" - + "rs.proto\032:google/cloud/aiplatform/v1/unm" + + "ogle/api/resource.proto\0321google/cloud/aiplatform/v1/completion_stats.proto\0320goog" + + "le/cloud/aiplatform/v1/encryption_spec.proto\032,google/cloud/aiplatform/v1/explana" + + "tion.proto\032#google/cloud/aiplatform/v1/io.proto\032*google/cloud/aiplatform/v1/job_" + + "state.proto\0322google/cloud/aiplatform/v1/machine_resources.proto\032?google/cloud/ai" + + "platform/v1/manual_batch_tuning_parameters.proto\032:google/cloud/aiplatform/v1/unm" + "anaged_container_model.proto\032\034google/pro" - + "tobuf/struct.proto\032\037google/protobuf/time" - + "stamp.proto\032\027google/rpc/status.proto\"\363\023\n" - + "\022BatchPredictionJob\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031" - + "\n\014display_name\030\002 \001(\tB\003\340A\002\0223\n\005model\030\003 \001(\t" - + "B$\372A!\n\037aiplatform.googleapis.com/Model\022\035" - + "\n\020model_version_id\030\036 \001(\tB\003\340A\003\022V\n\031unmanag" - + "ed_container_model\030\034 \001(\01323.google.cloud." - + "aiplatform.v1.UnmanagedContainerModel\022U\n" + + "tobuf/struct.proto\032\037google/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\240\026\n" + + "\022BatchPredictionJob\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\003\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\002\0223\n" + + "\005model\030\003 \001(\tB$\372A!\n" + + "\037aiplatform.googleapis.com/Model\022\035\n" + + "\020model_version_id\030\036 \001(\tB\003\340A\003\022V\n" + + "\031unmanaged_container_model\030\034" + + " \001(\01323.google.cloud.aiplatform.v1.UnmanagedContainerModel\022U\n" + "\014input_config\030\004 \001(\0132:.google.cloud.aipla" - + "tform.v1.BatchPredictionJob.InputConfigB" - + "\003\340A\002\022V\n\017instance_config\030\033 \001(\0132=.google.c" - + "loud.aiplatform.v1.BatchPredictionJob.In" - + "stanceConfig\0220\n\020model_parameters\030\005 \001(\0132\026" - + ".google.protobuf.Value\022W\n\routput_config\030" - + "\006 \001(\0132;.google.cloud.aiplatform.v1.Batch" - + "PredictionJob.OutputConfigB\003\340A\002\022P\n\023dedic" - + "ated_resources\030\007 \001(\01323.google.cloud.aipl" - + "atform.v1.BatchDedicatedResources\022\027\n\017ser" - + "vice_account\030\035 \001(\t\022d\n\036manual_batch_tunin" - + "g_parameters\030\010 \001(\01327.google.cloud.aiplat" - + "form.v1.ManualBatchTuningParametersB\003\340A\005" - + "\022\034\n\024generate_explanation\030\027 \001(\010\022E\n\020explan" - + "ation_spec\030\031 \001(\0132+.google.cloud.aiplatfo" - + "rm.v1.ExplanationSpec\022S\n\013output_info\030\t \001" - + "(\01329.google.cloud.aiplatform.v1.BatchPre" - + "dictionJob.OutputInfoB\003\340A\003\0228\n\005state\030\n \001(" - + "\0162$.google.cloud.aiplatform.v1.JobStateB" - + "\003\340A\003\022&\n\005error\030\013 \001(\0132\022.google.rpc.StatusB" - + "\003\340A\003\0221\n\020partial_failures\030\014 \003(\0132\022.google." - + "rpc.StatusB\003\340A\003\022N\n\022resources_consumed\030\r " - + "\001(\0132-.google.cloud.aiplatform.v1.Resourc" - + "esConsumedB\003\340A\003\022J\n\020completion_stats\030\016 \001(" - + "\0132+.google.cloud.aiplatform.v1.Completio" - + "nStatsB\003\340A\003\0224\n\013create_time\030\017 \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\003\0223\n\nstart_time\030" - + "\020 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221" - + "\n\010end_time\030\021 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\0224\n\013update_time\030\022 \001(\0132\032.google." - + "protobuf.TimestampB\003\340A\003\022J\n\006labels\030\023 \003(\0132" - + ":.google.cloud.aiplatform.v1.BatchPredic" - + "tionJob.LabelsEntry\022C\n\017encryption_spec\030\030" - + " \001(\0132*.google.cloud.aiplatform.v1.Encryp" - + "tionSpec\022!\n\031disable_container_logging\030\" " - + "\001(\010\022\032\n\rsatisfies_pzs\030$ \001(\010B\003\340A\003\022\032\n\rsatis" - + "fies_pzi\030% \001(\010B\003\340A\003\032\272\001\n\013InputConfig\022;\n\ng" - + "cs_source\030\002 \001(\0132%.google.cloud.aiplatfor" - + "m.v1.GcsSourceH\000\022E\n\017bigquery_source\030\003 \001(" - + "\0132*.google.cloud.aiplatform.v1.BigQueryS" - + "ourceH\000\022\035\n\020instances_format\030\001 \001(\tB\003\340A\002B\010" - + "\n\006source\032l\n\016InstanceConfig\022\025\n\rinstance_t" - + "ype\030\001 \001(\t\022\021\n\tkey_field\030\002 \001(\t\022\027\n\017included" - + "_fields\030\003 \003(\t\022\027\n\017excluded_fields\030\004 \003(\t\032\326" - + "\001\n\014OutputConfig\022E\n\017gcs_destination\030\002 \001(\013" - + "2*.google.cloud.aiplatform.v1.GcsDestina" - + "tionH\000\022O\n\024bigquery_destination\030\003 \001(\0132/.g" - + "oogle.cloud.aiplatform.v1.BigQueryDestin" - + "ationH\000\022\037\n\022predictions_format\030\001 \001(\tB\003\340A\002" - + "B\r\n\013destination\032\220\001\n\nOutputInfo\022#\n\024gcs_ou" - + "tput_directory\030\001 \001(\tB\003\340A\003H\000\022&\n\027bigquery_" - + "output_dataset\030\002 \001(\tB\003\340A\003H\000\022\"\n\025bigquery_" - + "output_table\030\004 \001(\tB\003\340A\003B\021\n\017output_locati" - + "on\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - + "\002 \001(\t:\0028\001:\206\001\352A\202\001\n,aiplatform.googleapis." - + "com/BatchPredictionJob\022Rprojects/{projec" - + "t}/locations/{location}/batchPredictionJ" - + "obs/{batch_prediction_job}B\325\001\n\036com.googl" - + "e.cloud.aiplatform.v1B\027BatchPredictionJo" - + "bProtoP\001Z>cloud.google.com/go/aiplatform" - + "/apiv1/aiplatformpb;aiplatformpb\252\002\032Googl" - + "e.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\AIP" - + "latform\\V1\352\002\035Google::Cloud::AIPlatform::" - + "V1b\006proto3" + + "tform.v1.BatchPredictionJob.InputConfigB\003\340A\002\022V\n" + + "\017instance_config\030\033 \001(\0132=.google.c" + + "loud.aiplatform.v1.BatchPredictionJob.InstanceConfig\0220\n" + + "\020model_parameters\030\005 \001(\0132\026.google.protobuf.Value\022W\n\r" + + "output_config\030\006" + + " \001(\0132;.google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfigB\003\340A\002\022P\n" + + "\023dedicated_resources\030\007" + + " \001(\01323.google.cloud.aiplatform.v1.BatchDedicatedResources\022\027\n" + + "\017service_account\030\035 \001(\t\022d\n" + + "\036manual_batch_tuning_parameters\030\010 \001(\01327.google.cloud.aiplat" + + "form.v1.ManualBatchTuningParametersB\003\340A\005\022\034\n" + + "\024generate_explanation\030\027 \001(\010\022E\n" + + "\020explanation_spec\030\031" + + " \001(\0132+.google.cloud.aiplatform.v1.ExplanationSpec\022S\n" + + "\013output_info\030\t \001" + + "(\01329.google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfoB\003\340A\003\0228\n" + + "\005state\030\n" + + " \001(\0162$.google.cloud.aiplatform.v1.JobStateB\003\340A\003\022&\n" + + "\005error\030\013 \001(\0132\022.google.rpc.StatusB\003\340A\003\0221\n" + + "\020partial_failures\030\014 \003(\0132\022.google.rpc.StatusB\003\340A\003\022N\n" + + "\022resources_consumed\030\r" + + " \001(\0132-.google.cloud.aiplatform.v1.ResourcesConsumedB\003\340A\003\022J\n" + + "\020completion_stats\030\016 \001(" + + "\0132+.google.cloud.aiplatform.v1.CompletionStatsB\003\340A\003\0224\n" + + "\013create_time\030\017" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0223\n\n" + + "start_time\030\020 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" + + "\010end_time\030\021 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\022 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022J\n" + + "\006labels\030\023 \003(\0132" + + ":.google.cloud.aiplatform.v1.BatchPredictionJob.LabelsEntry\022C\n" + + "\017encryption_spec\030\030" + + " \001(\0132*.google.cloud.aiplatform.v1.EncryptionSpec\022!\n" + + "\031disable_container_logging\030\" \001(\010\022\032\n\r" + + "satisfies_pzs\030$ \001(\010B\003\340A\003\022\032\n\r" + + "satisfies_pzi\030% \001(\010B\003\340A\003\032\241\002\n" + + "\013InputConfig\022;\n\n" + + "gcs_source\030\002 \001(\0132%.google.cloud.aiplatform.v1.GcsSourceH\000\022E\n" + + "\017bigquery_source\030\003 \001(" + + "\0132*.google.cloud.aiplatform.v1.BigQuerySourceH\000\022e\n" + + " vertex_multimodal_dataset_source\030\004" + + " \001(\01329.google.cloud.aiplatform.v1.VertexMultimodalDatasetSourceH\000\022\035\n" + + "\020instances_format\030\001 \001(\tB\003\340A\002B\010\n" + + "\006source\032l\n" + + "\016InstanceConfig\022\025\n\r" + + "instance_type\030\001 \001(\t\022\021\n" + + "\tkey_field\030\002 \001(\t\022\027\n" + + "\017included_fields\030\003 \003(\t\022\027\n" + + "\017excluded_fields\030\004 \003(\t\032\307\002\n" + + "\014OutputConfig\022E\n" + + "\017gcs_destination\030\002" + + " \001(\0132*.google.cloud.aiplatform.v1.GcsDestinationH\000\022O\n" + + "\024bigquery_destination\030\003" + + " \001(\0132/.google.cloud.aiplatform.v1.BigQueryDestinationH\000\022o\n" + + "%vertex_multimodal_dataset_destination\030\006 \001(\0132>." + + "google.cloud.aiplatform.v1.VertexMultimodalDatasetDestinationH\000\022\037\n" + + "\022predictions_format\030\001 \001(\tB\003\340A\002B\r\n" + + "\013destination\032\345\001\n\n" + + "OutputInfo\022#\n" + + "\024gcs_output_directory\030\001 \001(\tB\003\340A\003H\000\022&\n" + + "\027bigquery_output_dataset\030\002 \001(\tB\003\340A\003H\000\022S\n" + + "\036vertex_multimodal_dataset_name\030\005 \001(\tB)\340A\003\372A#\n" + + "!aiplatform.googleapis.com/DatasetH\000\022\"\n" + + "\025bigquery_output_table\030\004 \001(\tB\003\340A\003B\021\n" + + "\017output_location\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001:\206\001\352A\202\001\n" + + ",aiplatform.googleapis.com/BatchPredictionJob\022Rprojects/{project}/locations/{locat" + + "ion}/batchPredictionJobs/{batch_prediction_job}B\325\001\n" + + "\036com.google.cloud.aiplatform.v1B\027BatchPredictionJobProtoP\001Z>cloud.goo" + + "gle.com/go/aiplatform/apiv1/aiplatformpb" + + ";aiplatformpb\252\002\032Google.Cloud.AIPlatform." + + "V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google" + + "::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -220,7 +228,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_BatchPredictionJob_InputConfig_descriptor, new java.lang.String[] { - "GcsSource", "BigquerySource", "InstancesFormat", "Source", + "GcsSource", + "BigquerySource", + "VertexMultimodalDatasetSource", + "InstancesFormat", + "Source", }); internal_static_google_cloud_aiplatform_v1_BatchPredictionJob_InstanceConfig_descriptor = internal_static_google_cloud_aiplatform_v1_BatchPredictionJob_descriptor.getNestedType(1); @@ -236,7 +248,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_BatchPredictionJob_OutputConfig_descriptor, new java.lang.String[] { - "GcsDestination", "BigqueryDestination", "PredictionsFormat", "Destination", + "GcsDestination", + "BigqueryDestination", + "VertexMultimodalDatasetDestination", + "PredictionsFormat", + "Destination", }); internal_static_google_cloud_aiplatform_v1_BatchPredictionJob_OutputInfo_descriptor = internal_static_google_cloud_aiplatform_v1_BatchPredictionJob_descriptor.getNestedType(3); @@ -246,6 +262,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "GcsOutputDirectory", "BigqueryOutputDataset", + "VertexMultimodalDatasetName", "BigqueryOutputTable", "OutputLocation", }); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java index 702f5aaa4952..1a36f8c9c5e0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java @@ -48,6 +48,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_Part_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_Part_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_Part_MediaResolution_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_Part_MediaResolution_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_Blob_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -88,6 +92,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_ImageConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_ImageConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ImageConfig_ImageOutputOptions_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ImageConfig_ImageOutputOptions_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_GenerationConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -224,7 +232,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007Content\022\021\n" + "\004role\030\001 \001(\tB\003\340A\001\0224\n" + "\005parts\030\002 \003(\0132" - + " .google.cloud.aiplatform.v1.PartB\003\340A\002\"\350\004\n" + + " .google.cloud.aiplatform.v1.PartB\003\340A\002\"\271\007\n" + "\004Part\022\023\n" + "\004text\030\001 \001(\tB\003\340A\001H\000\022<\n" + "\013inline_data\030\002 \001(\0132" @@ -243,20 +251,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\010B\003\340A\001\022\036\n" + "\021thought_signature\030\013 \001(\014B\003\340A\001\022H\n" + "\016video_metadata\030\004" - + " \001(\0132).google.cloud.aiplatform.v1.VideoMetadataB\003\340A\001H\001B\006\n" - + "\004dataB\n" - + "\n" + + " \001(\0132).google.cloud.aiplatform.v1.VideoMetadataB\003\340A\001H\001\022J\n" + + "\020media_resolution\030\014" + + " \001(\01320.google.cloud.aiplatform.v1.Part.MediaResolution\032\202\002\n" + + "\017MediaResolution\022G\n" + + "\005level\030\001 \001(\01626.google.cloud.aip" + + "latform.v1.Part.MediaResolution.LevelH\000\"\234\001\n" + + "\005Level\022 \n" + + "\034MEDIA_RESOLUTION_UNSPECIFIED\020\000\022\030\n" + + "\024MEDIA_RESOLUTION_LOW\020\001\022\033\n" + + "\027MEDIA_RESOLUTION_MEDIUM\020\002\022\031\n" + + "\025MEDIA_RESOLUTION_HIGH\020\003\022\037\n" + + "\033MEDIA_RESOLUTION_ULTRA_HIGH\020\004B\007\n" + + "\005valueB\006\n" + + "\004dataB\n\n" + "\010metadata\"1\n" + "\004Blob\022\026\n" + "\tmime_type\030\001 \001(\tB\003\340A\002\022\021\n" + "\004data\030\002 \001(\014B\003\340A\002\"9\n" + "\010FileData\022\026\n" + "\tmime_type\030\001 \001(\tB\003\340A\002\022\025\n" - + "\010file_uri\030\002 \001(\tB\003\340A\002\"y\n\r" + + "\010file_uri\030\002 \001(\tB\003\340A\002\"\213\001\n\r" + "VideoMetadata\0224\n" + "\014start_offset\030\001" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\0222\n\n" - + "end_offset\030\002 \001(\0132\031.google.protobuf.DurationB\003\340A\001\"=\n" + + "end_offset\030\002 \001(\0132\031.google.protobuf.DurationB\003\340A\001\022\020\n" + + "\003fps\030\003 \001(\001B\003\340A\001\"=\n" + "\023PrebuiltVoiceConfig\022\027\n\n" + "voice_name\030\001 \001(\tH\000\210\001\001B\r\n" + "\013_voice_name\"P\n" @@ -264,27 +284,45 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tmime_type\030\001 \001(\tB\003\340A\001\022\037\n" + "\022voice_sample_audio\030\002 \001(\014B\003\340A\001\"\312\001\n" + "\013VoiceConfig\022P\n" - + "\025prebuilt_voice_config\030\001 \001(\0132/.go" - + "ogle.cloud.aiplatform.v1.PrebuiltVoiceConfigH\000\022Y\n" - + "\027replicated_voice_config\030\003 \001(\0132" - + "1.google.cloud.aiplatform.v1.ReplicatedVoiceConfigB\003\340A\001H\000B\016\n" + + "\025prebuilt_voice_config\030\001 \001(\0132/.google" + + ".cloud.aiplatform.v1.PrebuiltVoiceConfigH\000\022Y\n" + + "\027replicated_voice_config\030\003 \001(\01321.go" + + "ogle.cloud.aiplatform.v1.ReplicatedVoiceConfigB\003\340A\001H\000B\016\n" + "\014voice_config\"n\n" + "\022SpeakerVoiceConfig\022\024\n" + "\007speaker\030\001 \001(\tB\003\340A\002\022B\n" + "\014voice_config\030\002" + " \001(\0132\'.google.cloud.aiplatform.v1.VoiceConfigB\003\340A\002\"m\n" + "\027MultiSpeakerVoiceConfig\022R\n" - + "\025speaker_voice_configs\030\002 " - + "\003(\0132..google.cloud.aiplatform.v1.SpeakerVoiceConfigB\003\340A\002\"\302\001\n" + + "\025speaker_voice_configs\030\002 \003(\0132" + + "..google.cloud.aiplatform.v1.SpeakerVoiceConfigB\003\340A\002\"\302\001\n" + "\014SpeechConfig\022=\n" + "\014voice_config\030\001" + " \001(\0132\'.google.cloud.aiplatform.v1.VoiceConfig\022\032\n\r" + "language_code\030\002 \001(\tB\003\340A\001\022W\n" - + "\032multi_speaker_voice_config\030\003 \001(\013" - + "23.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig\">\n" - + "\013ImageConfig\022\036\n" - + "\014aspect_ratio\030\002 \001(\tB\003\340A\001H\000\210\001\001B\017\n\r" - + "_aspect_ratio\"\257\016\n" + + "\032multi_speaker_voice_config\030\003 \001(\01323.g" + + "oogle.cloud.aiplatform.v1.MultiSpeakerVoiceConfig\"\304\004\n" + + "\013ImageConfig\022b\n" + + "\024image_output_options\030\001 \001(\0132:.google.cloud.aiplatfor" + + "m.v1.ImageConfig.ImageOutputOptionsB\003\340A\001H\000\210\001\001\022\036\n" + + "\014aspect_ratio\030\002 \001(\tB\003\340A\001H\001\210\001\001\022]\n" + + "\021person_generation\030\003 \001(\01628.google.cloud." + + "aiplatform.v1.ImageConfig.PersonGenerationB\003\340A\001H\002\210\001\001\022\034\n\n" + + "image_size\030\004 \001(\tB\003\340A\001H\003\210\001\001\032~\n" + + "\022ImageOutputOptions\022\033\n" + + "\tmime_type\030\001 \001(\tB\003\340A\001H\000\210\001\001\022%\n" + + "\023compression_quality\030\002 \001(\005B\003\340A\001H\001\210\001\001B\014\n\n" + + "_mime_typeB\026\n" + + "\024_compression_quality\"e\n" + + "\020PersonGeneration\022!\n" + + "\035PERSON_GENERATION_UNSPECIFIED\020\000\022\r\n" + + "\tALLOW_ALL\020\001\022\017\n" + + "\013ALLOW_ADULT\020\002\022\016\n\n" + + "ALLOW_NONE\020\003B\027\n" + + "\025_image_output_optionsB\017\n\r" + + "_aspect_ratioB\024\n" + + "\022_person_generationB\r\n" + + "\013_image_size\"\341\023\n" + "\020GenerationConfig\022\035\n" + "\013temperature\030\001 \001(\002B\003\340A\001H\000\210\001\001\022\027\n" + "\005top_p\030\002 \001(\002B\003\340A\001H\001\210\001\001\022\027\n" @@ -304,24 +342,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\210\001\001\022>\n" + "\024response_json_schema\030\034" + " \001(\0132\026.google.protobuf.ValueB\003\340A\001H\013\210\001\001\022\\\n" - + "\016routing_config\030\021 \001(\0132:.goo" - + "gle.cloud.aiplatform.v1.GenerationConfig.RoutingConfigB\003\340A\001H\014\210\001\001\022I\n\r" + + "\016routing_config\030\021 \001(\0132:.google.c" + + "loud.aiplatform.v1.GenerationConfig.RoutingConfigB\003\340A\001H\014\210\001\001\022!\n" + + "\017audio_timestamp\030\024 \001(\010B\003\340A\001H\r" + + "\210\001\001\022W\n" + + "\023response_modalities\030\025 " + + "\003(\01625.google.cloud.aiplatform.v1.GenerationConfig.ModalityB\003\340A\001\022`\n" + + "\020media_resolution\030\026 \001(\0162<.google.cloud.aiplatform.v1.G" + + "enerationConfig.MediaResolutionB\003\340A\001H\016\210\001\001\022I\n\r" + "speech_config\030\027" - + " \001(\0132(.google.cloud.aiplatform.v1.SpeechConfigB\003\340A\001H\r" - + "\210\001\001\022Y\n" - + "\017thinking_config\030\031" - + " \001(\0132;.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfigB\003\340A\001\022G\n" - + "\014image_config\030\036" - + " \001(\0132\'.google.cloud.aiplatform.v1.ImageConfigB\003\340A\001H\016\210\001\001\032\302\004\n\r" + + " \001(\0132(.google.cloud.aiplatform.v1.SpeechConfigB\003\340A\001H\017\210\001\001\022Y\n" + + "\017thinking_config\030\031 \001(\0132;.google.cloud.aip" + + "latform.v1.GenerationConfig.ThinkingConfigB\003\340A\001\022G\n" + + "\014image_config\030\036 \001(\0132\'.google.c" + + "loud.aiplatform.v1.ImageConfigB\003\340A\001H\020\210\001\001\032\302\004\n\r" + "RoutingConfig\022_\n" - + "\tauto_mode\030\001 \001(\0132J.google.cloud.aipl" - + "atform.v1.GenerationConfig.RoutingConfig.AutoRoutingModeH\000\022c\n" - + "\013manual_mode\030\002 \001(\0132L.google.cloud.aiplatform.v1.GenerationC" - + "onfig.RoutingConfig.ManualRoutingModeH\000\032\233\002\n" + + "\tauto_mode\030\001 \001(\0132J." + + "google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingModeH\000\022c\n" + + "\013manual_mode\030\002 \001(\0132L.google.cloud.aiplatfo" + + "rm.v1.GenerationConfig.RoutingConfig.ManualRoutingModeH\000\032\233\002\n" + "\017AutoRoutingMode\022\210\001\n" - + "\030model_routing_preference\030\001 \001(\0162a.google.cloud.aiplatform" - + ".v1.GenerationConfig.RoutingConfig.AutoR" - + "outingMode.ModelRoutingPreferenceH\000\210\001\001\"`\n" + + "\030model_routing_preference\030\001 \001(\0162a.google" + + ".cloud.aiplatform.v1.GenerationConfig.Ro" + + "utingConfig.AutoRoutingMode.ModelRoutingPreferenceH\000\210\001\001\"`\n" + "\026ModelRoutingPreference\022\013\n" + "\007UNKNOWN\020\000\022\026\n" + "\022PRIORITIZE_QUALITY\020\001\022\014\n" @@ -331,12 +374,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021ManualRoutingMode\022\027\n\n" + "model_name\030\001 \001(\tH\000\210\001\001B\r\n" + "\013_model_nameB\020\n" - + "\016routing_config\032\200\001\n" + + "\016routing_config\032\335\002\n" + "\016ThinkingConfig\022\"\n" + "\020include_thoughts\030\001 \001(\010B\003\340A\001H\000\210\001\001\022!\n" - + "\017thinking_budget\030\003 \001(\005B\003\340A\001H\001\210\001\001B\023\n" + + "\017thinking_budget\030\003 \001(\005B\003\340A\001H\001\210\001\001\022k\n" + + "\016thinking_level\030\004 \001(\0162I.google.cloud.aiplatfor" + + "m.v1.GenerationConfig.ThinkingConfig.ThinkingLevelB\003\340A\001H\002\210\001\001\"[\n\r" + + "ThinkingLevel\022\036\n" + + "\032THINKING_LEVEL_UNSPECIFIED\020\000\022\007\n" + + "\003LOW\020\001\022\n" + + "\n" + + "\006MEDIUM\020\002\022\010\n" + + "\004HIGH\020\003\022\013\n" + + "\007MINIMAL\020\004B\023\n" + "\021_include_thoughtsB\022\n" - + "\020_thinking_budgetB\016\n" + + "\020_thinking_budgetB\021\n" + + "\017_thinking_level\"D\n" + + "\010Modality\022\030\n" + + "\024MODALITY_UNSPECIFIED\020\000\022\010\n" + + "\004TEXT\020\001\022\t\n" + + "\005IMAGE\020\002\022\t\n" + + "\005AUDIO\020\003\"\205\001\n" + + "\017MediaResolution\022 \n" + + "\034MEDIA_RESOLUTION_UNSPECIFIED\020\000\022\030\n" + + "\024MEDIA_RESOLUTION_LOW\020\001\022\033\n" + + "\027MEDIA_RESOLUTION_MEDIUM\020\002\022\031\n" + + "\025MEDIA_RESOLUTION_HIGH\020\003B\016\n" + "\014_temperatureB\010\n" + "\006_top_pB\010\n" + "\006_top_kB\022\n" @@ -349,16 +412,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_seedB\022\n" + "\020_response_schemaB\027\n" + "\025_response_json_schemaB\021\n" - + "\017_routing_configB\020\n" + + "\017_routing_configB\022\n" + + "\020_audio_timestampB\023\n" + + "\021_media_resolutionB\020\n" + "\016_speech_configB\017\n\r" + "_image_config\"\353\003\n\r" + "SafetySetting\022?\n" - + "\010category\030\001 \001(\0162(.go" - + "ogle.cloud.aiplatform.v1.HarmCategoryB\003\340A\002\022T\n" - + "\tthreshold\030\002 \001(\0162<.google.cloud.aip" - + "latform.v1.SafetySetting.HarmBlockThresholdB\003\340A\002\022N\n" - + "\006method\030\004 \001(\01629.google.cloud." - + "aiplatform.v1.SafetySetting.HarmBlockMethodB\003\340A\001\"\235\001\n" + + "\010category\030\001 \001(\016" + + "2(.google.cloud.aiplatform.v1.HarmCategoryB\003\340A\002\022T\n" + + "\tthreshold\030\002 \001(\0162<.google.clou" + + "d.aiplatform.v1.SafetySetting.HarmBlockThresholdB\003\340A\002\022N\n" + + "\006method\030\004 \001(\01629.google.c" + + "loud.aiplatform.v1.SafetySetting.HarmBlockMethodB\003\340A\001\"\235\001\n" + "\022HarmBlockThreshold\022$\n" + " HARM_BLOCK_THRESHOLD_UNSPECIFIED\020\000\022\027\n" + "\023BLOCK_LOW_AND_ABOVE\020\001\022\032\n" @@ -373,11 +438,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014SafetyRating\022?\n" + "\010category\030\001" + " \001(\0162(.google.cloud.aiplatform.v1.HarmCategoryB\003\340A\003\022R\n" - + "\013probability\030\002 \001(\01628.g" - + "oogle.cloud.aiplatform.v1.SafetyRating.HarmProbabilityB\003\340A\003\022\036\n" + + "\013probability\030\002 \001(" + + "\01628.google.cloud.aiplatform.v1.SafetyRating.HarmProbabilityB\003\340A\003\022\036\n" + "\021probability_score\030\005 \001(\002B\003\340A\003\022L\n" - + "\010severity\030\006 \001(\01625.google.c" - + "loud.aiplatform.v1.SafetyRating.HarmSeverityB\003\340A\003\022\033\n" + + "\010severity\030\006 \001(\01625.goo" + + "gle.cloud.aiplatform.v1.SafetyRating.HarmSeverityB\003\340A\003\022\033\n" + "\016severity_score\030\007 \001(\002B\003\340A\003\022\024\n" + "\007blocked\030\003 \001(\010B\003\340A\003\"b\n" + "\017HarmProbability\022 \n" @@ -393,8 +458,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024HARM_SEVERITY_MEDIUM\020\003\022\026\n" + "\022HARM_SEVERITY_HIGH\020\004\"P\n" + "\020CitationMetadata\022<\n" - + "\tcitations\030\001" - + " \003(\0132$.google.cloud.aiplatform.v1.CitationB\003\340A\003\"\252\001\n" + + "\tcitations\030\001 \003(\0132$.go" + + "ogle.cloud.aiplatform.v1.CitationB\003\340A\003\"\252\001\n" + "\010Citation\022\030\n" + "\013start_index\030\001 \001(\005B\003\340A\003\022\026\n" + "\tend_index\030\002 \001(\005B\003\340A\003\022\020\n" @@ -410,17 +475,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014avg_logprobs\030\t \001(\001B\003\340A\003\022H\n" + "\017logprobs_result\030\n" + " \001(\0132*.google.cloud.aiplatform.v1.LogprobsResultB\003\340A\003\022N\n\r" - + "finish_reason\030\003 " - + "\001(\01622.google.cloud.aiplatform.v1.Candidate.FinishReasonB\003\340A\003\022E\n" + + "finish_reason\030\003" + + " \001(\01622.google.cloud.aiplatform.v1.Candidate.FinishReasonB\003\340A\003\022E\n" + "\016safety_ratings\030\004" + " \003(\0132(.google.cloud.aiplatform.v1.SafetyRatingB\003\340A\003\022 \n" + "\016finish_message\030\005 \001(\tB\003\340A\003H\000\210\001\001\022L\n" - + "\021citation_metadata\030\006 \001(\0132,.googl" - + "e.cloud.aiplatform.v1.CitationMetadataB\003\340A\003\022N\n" - + "\022grounding_metadata\030\007 \001(\0132-.google" - + ".cloud.aiplatform.v1.GroundingMetadataB\003\340A\003\022Q\n" - + "\024url_context_metadata\030\013 \001(\0132..goog" - + "le.cloud.aiplatform.v1.UrlContextMetadataB\003\340A\003\"\315\001\n" + + "\021citation_metadata\030\006 \001(\0132,." + + "google.cloud.aiplatform.v1.CitationMetadataB\003\340A\003\022N\n" + + "\022grounding_metadata\030\007 \001(\0132-.g" + + "oogle.cloud.aiplatform.v1.GroundingMetadataB\003\340A\003\022Q\n" + + "\024url_context_metadata\030\013 \001(\0132." + + ".google.cloud.aiplatform.v1.UrlContextMetadataB\003\340A\003\"\315\001\n" + "\014FinishReason\022\035\n" + "\031FINISH_REASON_UNSPECIFIED\020\000\022\010\n" + "\004STOP\020\001\022\016\n\n" @@ -436,21 +501,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "B\021\n" + "\017_finish_message\"X\n" + "\022UrlContextMetadata\022B\n" - + "\014url_metadata\030\001 \003(\0132\'." - + "google.cloud.aiplatform.v1.UrlMetadataB\003\340A\003\"\374\001\n" + + "\014url_metadata\030\001 \003" + + "(\0132\'.google.cloud.aiplatform.v1.UrlMetadataB\003\340A\003\"\374\001\n" + "\013UrlMetadata\022\025\n\r" + "retrieved_url\030\001 \001(\t\022X\n" - + "\024url_retrieval_status\030\002 \001(\0162:.googl" - + "e.cloud.aiplatform.v1.UrlMetadata.UrlRetrievalStatus\"|\n" + + "\024url_retrieval_status\030\002 \001(\0162:." + + "google.cloud.aiplatform.v1.UrlMetadata.UrlRetrievalStatus\"|\n" + "\022UrlRetrievalStatus\022$\n" + " URL_RETRIEVAL_STATUS_UNSPECIFIED\020\000\022 \n" + "\034URL_RETRIEVAL_STATUS_SUCCESS\020\001\022\036\n" + "\032URL_RETRIEVAL_STATUS_ERROR\020\002\"\217\003\n" + "\016LogprobsResult\022P\n" - + "\016top_candidates\030\001 \003(\01328.google.cloud.aip" - + "latform.v1.LogprobsResult.TopCandidates\022O\n" - + "\021chosen_candidates\030\002 \003(\01324.google.clou" - + "d.aiplatform.v1.LogprobsResult.Candidate\032\177\n" + + "\016top_candidates\030\001 \003(\01328.google.clou" + + "d.aiplatform.v1.LogprobsResult.TopCandidates\022O\n" + + "\021chosen_candidates\030\002 \003(\01324.google" + + ".cloud.aiplatform.v1.LogprobsResult.Candidate\032\177\n" + "\tCandidate\022\022\n" + "\005token\030\001 \001(\tH\000\210\001\001\022\025\n" + "\010token_id\030\003 \001(\005H\001\210\001\001\022\034\n" @@ -468,10 +533,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004text\030\004 \001(\tB\003\340A\003\"\322\007\n" + "\016GroundingChunk\022=\n" + "\003web\030\001 \001(\0132..google.cloud.aiplatform.v1.GroundingChunk.WebH\000\022X\n" - + "\021retrieved_context\030\002 \001(\0132;.goo" - + "gle.cloud.aiplatform.v1.GroundingChunk.RetrievedContextH\000\022?\n" - + "\004maps\030\003 \001(\0132/.google" - + ".cloud.aiplatform.v1.GroundingChunk.MapsH\000\032=\n" + + "\021retrieved_context\030\002 \001(\0132" + + ";.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContextH\000\022?\n" + + "\004maps\030\003 \001(\0132/.g" + + "oogle.cloud.aiplatform.v1.GroundingChunk.MapsH\000\032=\n" + "\003Web\022\020\n" + "\003uri\030\001 \001(\tH\000\210\001\001\022\022\n" + "\005title\030\002 \001(\tH\001\210\001\001B\006\n" @@ -493,11 +558,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005title\030\002 \001(\tH\001\210\001\001\022\021\n" + "\004text\030\003 \001(\tH\002\210\001\001\022\025\n" + "\010place_id\030\004 \001(\tH\003\210\001\001\022`\n" - + "\024place_answer_sources\030\005 \001(\0132B.google.cloud.aiplat" - + "form.v1.GroundingChunk.Maps.PlaceAnswerSources\032\313\001\n" + + "\024place_answer_sources\030\005 \001(\0132B.google.cloud.a" + + "iplatform.v1.GroundingChunk.Maps.PlaceAnswerSources\032\313\001\n" + "\022PlaceAnswerSources\022i\n" - + "\017review_snippets\030\001 \003(\0132P.google.cloud.aiplatform" - + ".v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet\032J\n\r" + + "\017review_snippets\030\001 \003(\0132P.google.cloud.aipla" + + "tform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet\032J\n\r" + "ReviewSnippet\022\021\n" + "\treview_id\030\001 \001(\t\022\027\n" + "\017google_maps_uri\030\002 \001(\t\022\r\n" @@ -515,18 +580,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_segment\"\240\005\n" + "\021GroundingMetadata\022\037\n" + "\022web_search_queries\030\001 \003(\tB\003\340A\001\022R\n" - + "\022search_entry_point\030\004" - + " \001(\0132,.google.cloud.aiplatform.v1.SearchEntryPointB\003\340A\001H\000\210\001\001\022D\n" + + "\022search_entry_point\030\004 \001(\0132,.google.clou" + + "d.aiplatform.v1.SearchEntryPointB\003\340A\001H\000\210\001\001\022D\n" + "\020grounding_chunks\030\005" + " \003(\0132*.google.cloud.aiplatform.v1.GroundingChunk\022M\n" + "\022grounding_supports\030\006" + " \003(\0132,.google.cloud.aiplatform.v1.GroundingSupportB\003\340A\001\022V\n" - + "\022retrieval_metadata\030\007" - + " \001(\0132-.google.cloud.aiplatform.v1.RetrievalMetadataB\006\340A\001\340A\003H\001\210\001\001\0225\n" + + "\022retrieval_metadata\030\007 \001(\0132-.google.cloud.aipla" + + "tform.v1.RetrievalMetadataB\006\340A\001\340A\003H\001\210\001\001\0225\n" + " google_maps_widget_context_token\030\010 \001(" + "\tB\006\340A\001\340A\003H\002\210\001\001\022]\n" - + "\024source_flagging_uris\030\t \003(\0132" - + "?.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri\032@\n" + + "\024source_flagging_uris\030\t" + + " \003(\0132?.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri\032@\n" + "\021SourceFlaggingUri\022\021\n" + "\tsource_id\030\001 \001(\t\022\030\n" + "\020flag_content_uri\030\002 \001(\tB\025\n" @@ -561,12 +626,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005VIDEO\020\003\022\t\n" + "\005AUDIO\020\004\022\014\n" + "\010DOCUMENT\020\005B\257\002\n" - + "\036com.google.cloud.aiplatform.v1B\014ContentProtoP\001Z>cloud.googl" - + "e.com/go/aiplatform/apiv1/aiplatformpb;a" - + "iplatformpb\252\002\032Google.Cloud.AIPlatform.V1" - + "\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1\352Ab\n" - + "\"modelarmor.googleapis.com/Template\022cloud." + + "google.com/go/aiplatform/apiv1/aiplatfor" + + "mpb;aiplatformpb\252\002\032Google.Cloud.AIPlatfo" + + "rm.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1\352Ab\n" + + "\"modelarmor.googleapis.com/Template\022 * Output only. Identifier. The resource name of the Dataset. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` * * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -126,10 +128,12 @@ public java.lang.String getName() { * *
        * Output only. Identifier. The resource name of the Dataset.
    +   * Format:
    +   * `projects/{project}/locations/{location}/datasets/{dataset}`
        * 
    * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. @@ -1827,10 +1831,12 @@ public Builder mergeFrom( * *
          * Output only. Identifier. The resource name of the Dataset.
    +     * Format:
    +     * `projects/{project}/locations/{location}/datasets/{dataset}`
          * 
    * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -1852,10 +1858,12 @@ public java.lang.String getName() { * *
          * Output only. Identifier. The resource name of the Dataset.
    +     * Format:
    +     * `projects/{project}/locations/{location}/datasets/{dataset}`
          * 
    * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. @@ -1877,10 +1885,12 @@ public com.google.protobuf.ByteString getNameBytes() { * *
          * Output only. Identifier. The resource name of the Dataset.
    +     * Format:
    +     * `projects/{project}/locations/{location}/datasets/{dataset}`
          * 
    * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The name to set. @@ -1901,10 +1911,12 @@ public Builder setName(java.lang.String value) { * *
          * Output only. Identifier. The resource name of the Dataset.
    +     * Format:
    +     * `projects/{project}/locations/{location}/datasets/{dataset}`
          * 
    * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -1921,10 +1933,12 @@ public Builder clearName() { * *
          * Output only. Identifier. The resource name of the Dataset.
    +     * Format:
    +     * `projects/{project}/locations/{location}/datasets/{dataset}`
          * 
    * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The bytes for name to set. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetOrBuilder.java index 256f5a4f2d5a..b9efeb327ab1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetOrBuilder.java @@ -31,10 +31,12 @@ public interface DatasetOrBuilder * *
        * Output only. Identifier. The resource name of the Dataset.
    +   * Format:
    +   * `projects/{project}/locations/{location}/datasets/{dataset}`
        * 
    * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -46,10 +48,12 @@ public interface DatasetOrBuilder * *
        * Output only. Identifier. The resource name of the Dataset.
    +   * Format:
    +   * `projects/{project}/locations/{location}/datasets/{dataset}`
        * 
    * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetProto.java index 5fe1d8dc6b66..5382d978b4a2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetProto.java @@ -88,9 +88,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "urce.proto\0320google/cloud/aiplatform/v1/encryption_spec.proto\032#google/cloud/aipla" + "tform/v1/io.proto\032,google/cloud/aiplatfo" + "rm/v1/saved_query.proto\032\034google/protobuf" - + "/struct.proto\032\037google/protobuf/timestamp.proto\"\206\006\n" - + "\007Dataset\022\024\n" - + "\004name\030\001 \001(\tB\006\340A\003\340A\010\022\031\n" + + "/struct.proto\032\037google/protobuf/timestamp.proto\"\254\006\n" + + "\007Dataset\022:\n" + + "\004name\030\001 \001(\tB,\340A\003\340A\010\372A#\n" + + "!aiplatform.googleapis.com/Dataset\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\022\023\n" + "\013description\030\020 \001(\t\022 \n" + "\023metadata_schema_uri\030\003 \001(\tB\003\340A\002\022-\n" @@ -103,8 +104,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004etag\030\006 \001(\t\022?\n" + "\006labels\030\007 \003(\0132/.google.cloud.aiplatform.v1.Dataset.LabelsEntry\022=\n\r" + "saved_queries\030\t \003(\0132&.google.cloud.aiplatform.v1.SavedQuery\022C\n" - + "\017encryption_spec\030\013 \001(\0132*.goo" - + "gle.cloud.aiplatform.v1.EncryptionSpec\022\036\n" + + "\017encryption_spec\030\013" + + " \001(\0132*.google.cloud.aiplatform.v1.EncryptionSpec\022\036\n" + "\021metadata_artifact\030\021 \001(\tB\003\340A\003\022\034\n" + "\017model_reference\030\022 \001(\tB\003\340A\001\022\032\n\r" + "satisfies_pzs\030\023 \001(\010B\003\340A\003\022\032\n\r" @@ -112,17 +113,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:b\352A_\n" - + "!aiplatform.googleapis.com/Data" - + "set\022:projects/{project}/locations/{location}/datasets/{dataset}\"\244\003\n" + + "!aiplatform.googleapis.com/Datase" + + "t\022:projects/{project}/locations/{location}/datasets/{dataset}\"\244\003\n" + "\020ImportDataConfig\022;\n\n" + "gcs_source\030\001 \001(\0132%.google.cloud.aiplatform.v1.GcsSourceH\000\022Z\n" + "\020data_item_labels\030\002" + " \003(\0132@.google.cloud.aiplatform.v1.ImportDataConfig.DataItemLabelsEntry\022]\n" - + "\021annotation_labels\030\003 \003(\0132B.google.cloud." - + "aiplatform.v1.ImportDataConfig.AnnotationLabelsEntry\022\036\n" + + "\021annotation_labels\030\003 \003(\0132B.google.cloud.ai" + + "platform.v1.ImportDataConfig.AnnotationLabelsEntry\022\036\n" + "\021import_schema_uri\030\004 \001(\tB\003\340A\002\0325\n" + "\023DataItemLabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" + + "\003key\030\001 \001(\t\022\r" + + "\n" + "\005value\030\002 \001(\t:\0028\001\0327\n" + "\025AnnotationLabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -131,15 +133,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020ExportDataConfig\022E\n" + "\017gcs_destination\030\001" + " \001(\0132*.google.cloud.aiplatform.v1.GcsDestinationH\000\022I\n" - + "\016fraction_split\030\005 \001" - + "(\0132/.google.cloud.aiplatform.v1.ExportFractionSplitH\001\022E\n" - + "\014filter_split\030\007 \001(\0132-.go" - + "ogle.cloud.aiplatform.v1.ExportFilterSplitH\001\022\032\n" + + "\016fraction_split\030\005 \001(\013" + + "2/.google.cloud.aiplatform.v1.ExportFractionSplitH\001\022E\n" + + "\014filter_split\030\007 \001(\0132-.goog" + + "le.cloud.aiplatform.v1.ExportFilterSplitH\001\022\032\n" + "\022annotations_filter\030\002 \001(\t\022\026\n" + "\016saved_query_id\030\013 \001(\t\022\035\n" + "\025annotation_schema_uri\030\014 \001(\t\022J\n\n" - + "export_use\030\004 \001(\01626.google.clo" - + "ud.aiplatform.v1.ExportDataConfig.ExportUse\"A\n" + + "export_use\030\004 \001(\01626.google.cloud" + + ".aiplatform.v1.ExportDataConfig.ExportUse\"A\n" + "\tExportUse\022\032\n" + "\026EXPORT_USE_UNSPECIFIED\020\000\022\030\n" + "\024CUSTOM_CODE_TRAINING\020\006B\r\n" @@ -153,11 +155,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017training_filter\030\001 \001(\tB\003\340A\002\022\036\n" + "\021validation_filter\030\002 \001(\tB\003\340A\002\022\030\n" + "\013test_filter\030\003 \001(\tB\003\340A\002B\312\001\n" - + "\036com.google.cloud.aiplatform.v1B\014DatasetProtoP\001Z>cl" - + "oud.google.com/go/aiplatform/apiv1/aipla" - + "tformpb;aiplatformpb\252\002\032Google.Cloud.AIPl" - + "atform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002" - + "\035Google::Cloud::AIPlatform::V1b\006proto3" + + "\036com.google.cloud.aiplatform.v1B\014DatasetProtoP\001Z>clou" + + "d.google.com/go/aiplatform/apiv1/aiplatf" + + "ormpb;aiplatformpb\252\002\032Google.Cloud.AIPlat" + + "form.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035G" + + "oogle::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -270,6 +272,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersion.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersion.java index e19ad7b812e1..e5b26252a3a7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersion.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersion.java @@ -85,10 +85,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
        * Output only. Identifier. The resource name of the DatasetVersion.
    +   * Format:
    +   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
        * 
    * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -111,10 +113,12 @@ public java.lang.String getName() { * *
        * Output only. Identifier. The resource name of the DatasetVersion.
    +   * Format:
    +   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
        * 
    * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. @@ -1117,10 +1121,12 @@ public Builder mergeFrom( * *
          * Output only. Identifier. The resource name of the DatasetVersion.
    +     * Format:
    +     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
          * 
    * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -1142,10 +1148,12 @@ public java.lang.String getName() { * *
          * Output only. Identifier. The resource name of the DatasetVersion.
    +     * Format:
    +     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
          * 
    * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. @@ -1167,10 +1175,12 @@ public com.google.protobuf.ByteString getNameBytes() { * *
          * Output only. Identifier. The resource name of the DatasetVersion.
    +     * Format:
    +     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
          * 
    * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The name to set. @@ -1191,10 +1201,12 @@ public Builder setName(java.lang.String value) { * *
          * Output only. Identifier. The resource name of the DatasetVersion.
    +     * Format:
    +     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
          * 
    * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -1211,10 +1223,12 @@ public Builder clearName() { * *
          * Output only. Identifier. The resource name of the DatasetVersion.
    +     * Format:
    +     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
          * 
    * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The bytes for name to set. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionOrBuilder.java index 186ae65ce212..c1d6203b8cde 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionOrBuilder.java @@ -31,10 +31,12 @@ public interface DatasetVersionOrBuilder * *
        * Output only. Identifier. The resource name of the DatasetVersion.
    +   * Format:
    +   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
        * 
    * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -46,10 +48,12 @@ public interface DatasetVersionOrBuilder * *
        * Output only. Identifier. The resource name of the DatasetVersion.
    +   * Format:
    +   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
        * 
    * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionProto.java index 5bbdea7e182b..e35165f047f5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionProto.java @@ -53,33 +53,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n" - + "0google/cloud/aiplatform/v1/dataset_ver" + "\n0google/cloud/aiplatform/v1/dataset_ver" + "sion.proto\022\032google.cloud.aiplatform.v1\032\037" + "google/api/field_behavior.proto\032\031google/" + "api/resource.proto\032\034google/protobuf/stru" - + "ct.proto\032\037google/protobuf/timestamp.proto\"\362\003\n" - + "\016DatasetVersion\022\024\n" - + "\004name\030\001 \001(\tB\006\340A\003\340A\010\0224\n" - + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" - + "\013update_time\030\006" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\014\n" - + "\004etag\030\003 \001(\t\022#\n" - + "\026big_query_dataset_name\030\004 \001(\tB\003\340A\003\022\024\n" - + "\014display_name\030\007 \001(\t\0220\n" - + "\010metadata\030\010" - + " \001(\0132\026.google.protobuf.ValueB\006\340A\003\340A\002\022\034\n" - + "\017model_reference\030\t \001(\tB\003\340A\003\022\032\n\r" - + "satisfies_pzs\030\n" - + " \001(\010B\003\340A\003\022\032\n\r" - + "satisfies_pzi\030\013 \001(\010B\003\340A\003:\214\001\352A\210\001\n" - + "(aiplatform.googleapis.com/DatasetVersion\022\\projects/{project}/locations/{" - + "location}/datasets/{dataset}/datasetVersions/{dataset_version}B\321\001\n" - + "\036com.google.cloud.aiplatform.v1B\023DatasetVersionProtoP\001" - + "Z>cloud.google.com/go/aiplatform/apiv1/a" - + "iplatformpb;aiplatformpb\252\002\032Google.Cloud." - + "AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatform\\" - + "V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3" + + "ct.proto\032\037google/protobuf/timestamp.prot" + + "o\"\237\004\n\016DatasetVersion\022A\n\004name\030\001 \001(\tB3\340A\003\340" + + "A\010\372A*\n(aiplatform.googleapis.com/Dataset" + + "Version\0224\n\013create_time\030\002 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\0224\n\013update_time\030\006 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022\014\n\004e" + + "tag\030\003 \001(\t\022#\n\026big_query_dataset_name\030\004 \001(" + + "\tB\003\340A\003\022\024\n\014display_name\030\007 \001(\t\0220\n\010metadata" + + "\030\010 \001(\0132\026.google.protobuf.ValueB\006\340A\003\340A\002\022\034" + + "\n\017model_reference\030\t \001(\tB\003\340A\003\022\032\n\rsatisfie" + + "s_pzs\030\n \001(\010B\003\340A\003\022\032\n\rsatisfies_pzi\030\013 \001(\010B" + + "\003\340A\003:\214\001\352A\210\001\n(aiplatform.googleapis.com/D" + + "atasetVersion\022\\projects/{project}/locati" + + "ons/{location}/datasets/{dataset}/datase" + + "tVersions/{dataset_version}B\321\001\n\036com.goog" + + "le.cloud.aiplatform.v1B\023DatasetVersionPr" + + "otoP\001Z>cloud.google.com/go/aiplatform/ap" + + "iv1/aiplatformpb;aiplatformpb\252\002\032Google.C" + + "loud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlat" + + "form\\V1\352\002\035Google::Cloud::AIPlatform::V1b" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -116,6 +114,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfig.java index 6137ecaef128..00973564bf13 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfig.java @@ -54,6 +54,8 @@ private GenerationConfig(com.google.protobuf.GeneratedMessage.Builder builder private GenerationConfig() { stopSequences_ = com.google.protobuf.LazyStringArrayList.emptyList(); responseMimeType_ = ""; + responseModalities_ = emptyIntList(); + mediaResolution_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -71,6 +73,392 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.aiplatform.v1.GenerationConfig.Builder.class); } + /** + * + * + *
    +   * The modalities of the response.
    +   * 
    + * + * Protobuf enum {@code google.cloud.aiplatform.v1.GenerationConfig.Modality} + */ + public enum Modality implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Unspecified modality. Will be processed as text.
    +     * 
    + * + * MODALITY_UNSPECIFIED = 0; + */ + MODALITY_UNSPECIFIED(0), + /** + * + * + *
    +     * Text modality.
    +     * 
    + * + * TEXT = 1; + */ + TEXT(1), + /** + * + * + *
    +     * Image modality.
    +     * 
    + * + * IMAGE = 2; + */ + IMAGE(2), + /** + * + * + *
    +     * Audio modality.
    +     * 
    + * + * AUDIO = 3; + */ + AUDIO(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Modality"); + } + + /** + * + * + *
    +     * Unspecified modality. Will be processed as text.
    +     * 
    + * + * MODALITY_UNSPECIFIED = 0; + */ + public static final int MODALITY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * Text modality.
    +     * 
    + * + * TEXT = 1; + */ + public static final int TEXT_VALUE = 1; + + /** + * + * + *
    +     * Image modality.
    +     * 
    + * + * IMAGE = 2; + */ + public static final int IMAGE_VALUE = 2; + + /** + * + * + *
    +     * Audio modality.
    +     * 
    + * + * AUDIO = 3; + */ + public static final int AUDIO_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Modality valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Modality forNumber(int value) { + switch (value) { + case 0: + return MODALITY_UNSPECIFIED; + case 1: + return TEXT; + case 2: + return IMAGE; + case 3: + return AUDIO; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Modality findValueByNumber(int number) { + return Modality.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.GenerationConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Modality[] VALUES = values(); + + public static Modality valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Modality(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1.GenerationConfig.Modality) + } + + /** + * + * + *
    +   * Media resolution for the input media.
    +   * 
    + * + * Protobuf enum {@code google.cloud.aiplatform.v1.GenerationConfig.MediaResolution} + */ + public enum MediaResolution implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Media resolution has not been set.
    +     * 
    + * + * MEDIA_RESOLUTION_UNSPECIFIED = 0; + */ + MEDIA_RESOLUTION_UNSPECIFIED(0), + /** + * + * + *
    +     * Media resolution set to low (64 tokens).
    +     * 
    + * + * MEDIA_RESOLUTION_LOW = 1; + */ + MEDIA_RESOLUTION_LOW(1), + /** + * + * + *
    +     * Media resolution set to medium (256 tokens).
    +     * 
    + * + * MEDIA_RESOLUTION_MEDIUM = 2; + */ + MEDIA_RESOLUTION_MEDIUM(2), + /** + * + * + *
    +     * Media resolution set to high (zoomed reframing with 256 tokens).
    +     * 
    + * + * MEDIA_RESOLUTION_HIGH = 3; + */ + MEDIA_RESOLUTION_HIGH(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MediaResolution"); + } + + /** + * + * + *
    +     * Media resolution has not been set.
    +     * 
    + * + * MEDIA_RESOLUTION_UNSPECIFIED = 0; + */ + public static final int MEDIA_RESOLUTION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * Media resolution set to low (64 tokens).
    +     * 
    + * + * MEDIA_RESOLUTION_LOW = 1; + */ + public static final int MEDIA_RESOLUTION_LOW_VALUE = 1; + + /** + * + * + *
    +     * Media resolution set to medium (256 tokens).
    +     * 
    + * + * MEDIA_RESOLUTION_MEDIUM = 2; + */ + public static final int MEDIA_RESOLUTION_MEDIUM_VALUE = 2; + + /** + * + * + *
    +     * Media resolution set to high (zoomed reframing with 256 tokens).
    +     * 
    + * + * MEDIA_RESOLUTION_HIGH = 3; + */ + public static final int MEDIA_RESOLUTION_HIGH_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MediaResolution valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static MediaResolution forNumber(int value) { + switch (value) { + case 0: + return MEDIA_RESOLUTION_UNSPECIFIED; + case 1: + return MEDIA_RESOLUTION_LOW; + case 2: + return MEDIA_RESOLUTION_MEDIUM; + case 3: + return MEDIA_RESOLUTION_HIGH; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MediaResolution findValueByNumber(int number) { + return MediaResolution.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.GenerationConfig.getDescriptor().getEnumTypes().get(1); + } + + private static final MediaResolution[] VALUES = values(); + + public static MediaResolution valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MediaResolution(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1.GenerationConfig.MediaResolution) + } + public interface RoutingConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig) @@ -3063,25 +3451,70 @@ public interface ThinkingConfigOrBuilder * @return The thinkingBudget. */ int getThinkingBudget(); - } - /** - * - * - *
    -   * Config for thinking features.
    -   * 
    - * - * Protobuf type {@code google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig} - */ - public static final class ThinkingConfig extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig) - ThinkingConfigOrBuilder { - private static final long serialVersionUID = 0L; + /** + * + * + *
    +     * Optional. The number of thoughts tokens that the model should generate.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the thinkingLevel field is set. + */ + boolean hasThinkingLevel(); - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + /** + * + * + *
    +     * Optional. The number of thoughts tokens that the model should generate.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for thinkingLevel. + */ + int getThinkingLevelValue(); + + /** + * + * + *
    +     * Optional. The number of thoughts tokens that the model should generate.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The thinkingLevel. + */ + com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel getThinkingLevel(); + } + + /** + * + * + *
    +   * Config for thinking features.
    +   * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig} + */ + public static final class ThinkingConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig) + ThinkingConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 33, @@ -3095,7 +3528,9 @@ private ThinkingConfig(com.google.protobuf.GeneratedMessage.Builder builder) super(builder); } - private ThinkingConfig() {} + private ThinkingConfig() { + thinkingLevel_ = 0; + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.aiplatform.v1.ContentProto @@ -3112,6 +3547,226 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.Builder.class); } + /** + * + * + *
    +     * The thinking level for the model.
    +     * 
    + * + * Protobuf enum {@code + * google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel} + */ + public enum ThinkingLevel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +       * Unspecified thinking level.
    +       * 
    + * + * THINKING_LEVEL_UNSPECIFIED = 0; + */ + THINKING_LEVEL_UNSPECIFIED(0), + /** + * + * + *
    +       * Low thinking level.
    +       * 
    + * + * LOW = 1; + */ + LOW(1), + /** + * + * + *
    +       * Medium thinking level.
    +       * 
    + * + * MEDIUM = 2; + */ + MEDIUM(2), + /** + * + * + *
    +       * High thinking level.
    +       * 
    + * + * HIGH = 3; + */ + HIGH(3), + /** + * + * + *
    +       * MINIMAL thinking level.
    +       * 
    + * + * MINIMAL = 4; + */ + MINIMAL(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ThinkingLevel"); + } + + /** + * + * + *
    +       * Unspecified thinking level.
    +       * 
    + * + * THINKING_LEVEL_UNSPECIFIED = 0; + */ + public static final int THINKING_LEVEL_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +       * Low thinking level.
    +       * 
    + * + * LOW = 1; + */ + public static final int LOW_VALUE = 1; + + /** + * + * + *
    +       * Medium thinking level.
    +       * 
    + * + * MEDIUM = 2; + */ + public static final int MEDIUM_VALUE = 2; + + /** + * + * + *
    +       * High thinking level.
    +       * 
    + * + * HIGH = 3; + */ + public static final int HIGH_VALUE = 3; + + /** + * + * + *
    +       * MINIMAL thinking level.
    +       * 
    + * + * MINIMAL = 4; + */ + public static final int MINIMAL_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ThinkingLevel valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ThinkingLevel forNumber(int value) { + switch (value) { + case 0: + return THINKING_LEVEL_UNSPECIFIED; + case 1: + return LOW; + case 2: + return MEDIUM; + case 3: + return HIGH; + case 4: + return MINIMAL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ThinkingLevel findValueByNumber(int number) { + return ThinkingLevel.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ThinkingLevel[] VALUES = values(); + + public static ThinkingLevel valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ThinkingLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel) + } + private int bitField0_; public static final int INCLUDE_THOUGHTS_FIELD_NUMBER = 1; private boolean includeThoughts_ = false; @@ -3187,6 +3842,70 @@ public int getThinkingBudget() { return thinkingBudget_; } + public static final int THINKING_LEVEL_FIELD_NUMBER = 4; + private int thinkingLevel_ = 0; + + /** + * + * + *
    +     * Optional. The number of thoughts tokens that the model should generate.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the thinkingLevel field is set. + */ + @java.lang.Override + public boolean hasThinkingLevel() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Optional. The number of thoughts tokens that the model should generate.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for thinkingLevel. + */ + @java.lang.Override + public int getThinkingLevelValue() { + return thinkingLevel_; + } + + /** + * + * + *
    +     * Optional. The number of thoughts tokens that the model should generate.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The thinkingLevel. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel + getThinkingLevel() { + com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel result = + com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel.forNumber( + thinkingLevel_); + return result == null + ? com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel + .UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3207,6 +3926,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(3, thinkingBudget_); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(4, thinkingLevel_); + } getUnknownFields().writeTo(output); } @@ -3222,6 +3944,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, thinkingBudget_); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, thinkingLevel_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3246,6 +3971,10 @@ public boolean equals(final java.lang.Object obj) { if (hasThinkingBudget()) { if (getThinkingBudget() != other.getThinkingBudget()) return false; } + if (hasThinkingLevel() != other.hasThinkingLevel()) return false; + if (hasThinkingLevel()) { + if (thinkingLevel_ != other.thinkingLevel_) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3265,6 +3994,10 @@ public int hashCode() { hash = (37 * hash) + THINKING_BUDGET_FIELD_NUMBER; hash = (53 * hash) + getThinkingBudget(); } + if (hasThinkingLevel()) { + hash = (37 * hash) + THINKING_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + thinkingLevel_; + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -3408,6 +4141,7 @@ public Builder clear() { bitField0_ = 0; includeThoughts_ = false; thinkingBudget_ = 0; + thinkingLevel_ = 0; return this; } @@ -3455,6 +4189,10 @@ private void buildPartial0( result.thinkingBudget_ = thinkingBudget_; to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.thinkingLevel_ = thinkingLevel_; + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -3479,6 +4217,9 @@ public Builder mergeFrom( if (other.hasThinkingBudget()) { setThinkingBudget(other.getThinkingBudget()); } + if (other.hasThinkingLevel()) { + setThinkingLevelValue(other.getThinkingLevelValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3517,6 +4258,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 24 + case 32: + { + thinkingLevel_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3688,25 +4435,154 @@ public Builder clearThinkingBudget() { return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig) - private static final com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig(); - } + private int thinkingLevel_ = 0; - public static com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * + * + *
    +       * Optional. The number of thoughts tokens that the model should generate.
    +       * 
    + * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the thinkingLevel field is set. + */ + @java.lang.Override + public boolean hasThinkingLevel() { + return ((bitField0_ & 0x00000004) != 0); + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override + /** + * + * + *
    +       * Optional. The number of thoughts tokens that the model should generate.
    +       * 
    + * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for thinkingLevel. + */ + @java.lang.Override + public int getThinkingLevelValue() { + return thinkingLevel_; + } + + /** + * + * + *
    +       * Optional. The number of thoughts tokens that the model should generate.
    +       * 
    + * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for thinkingLevel to set. + * @return This builder for chaining. + */ + public Builder setThinkingLevelValue(int value) { + thinkingLevel_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The number of thoughts tokens that the model should generate.
    +       * 
    + * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The thinkingLevel. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel + getThinkingLevel() { + com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel result = + com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel.forNumber( + thinkingLevel_); + return result == null + ? com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel + .UNRECOGNIZED + : result; + } + + /** + * + * + *
    +       * Optional. The number of thoughts tokens that the model should generate.
    +       * 
    + * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The thinkingLevel to set. + * @return This builder for chaining. + */ + public Builder setThinkingLevel( + com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + thinkingLevel_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The number of thoughts tokens that the model should generate.
    +       * 
    + * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearThinkingLevel() { + bitField0_ = (bitField0_ & ~0x00000004); + thinkingLevel_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig) + private static final com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig(); + } + + public static com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override public ThinkingConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4528,6 +5404,252 @@ public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig getRoutingC : routingConfig_; } + public static final int AUDIO_TIMESTAMP_FIELD_NUMBER = 20; + private boolean audioTimestamp_ = false; + + /** + * + * + *
    +   * Optional. If enabled, audio timestamps will be included in the request to
    +   * the model. This can be useful for synchronizing audio with other modalities
    +   * in the response.
    +   * 
    + * + * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the audioTimestamp field is set. + */ + @java.lang.Override + public boolean hasAudioTimestamp() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
    +   * Optional. If enabled, audio timestamps will be included in the request to
    +   * the model. This can be useful for synchronizing audio with other modalities
    +   * in the response.
    +   * 
    + * + * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The audioTimestamp. + */ + @java.lang.Override + public boolean getAudioTimestamp() { + return audioTimestamp_; + } + + public static final int RESPONSE_MODALITIES_FIELD_NUMBER = 21; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList responseModalities_ = emptyIntList(); + + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.aiplatform.v1.GenerationConfig.Modality> + responseModalities_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.aiplatform.v1.GenerationConfig.Modality>() { + public com.google.cloud.aiplatform.v1.GenerationConfig.Modality convert(int from) { + com.google.cloud.aiplatform.v1.GenerationConfig.Modality result = + com.google.cloud.aiplatform.v1.GenerationConfig.Modality.forNumber(from); + return result == null + ? com.google.cloud.aiplatform.v1.GenerationConfig.Modality.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
    +   * Optional. The modalities of the response. The model will generate a
    +   * response that includes all the specified modalities. For example, if this
    +   * is set to `[TEXT, IMAGE]`, the response will include both text and an
    +   * image.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the responseModalities. + */ + @java.lang.Override + public java.util.List + getResponseModalitiesList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.aiplatform.v1.GenerationConfig.Modality>( + responseModalities_, responseModalities_converter_); + } + + /** + * + * + *
    +   * Optional. The modalities of the response. The model will generate a
    +   * response that includes all the specified modalities. For example, if this
    +   * is set to `[TEXT, IMAGE]`, the response will include both text and an
    +   * image.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of responseModalities. + */ + @java.lang.Override + public int getResponseModalitiesCount() { + return responseModalities_.size(); + } + + /** + * + * + *
    +   * Optional. The modalities of the response. The model will generate a
    +   * response that includes all the specified modalities. For example, if this
    +   * is set to `[TEXT, IMAGE]`, the response will include both text and an
    +   * image.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The responseModalities at the given index. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GenerationConfig.Modality getResponseModalities(int index) { + return responseModalities_converter_.convert(responseModalities_.getInt(index)); + } + + /** + * + * + *
    +   * Optional. The modalities of the response. The model will generate a
    +   * response that includes all the specified modalities. For example, if this
    +   * is set to `[TEXT, IMAGE]`, the response will include both text and an
    +   * image.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for responseModalities. + */ + @java.lang.Override + public java.util.List getResponseModalitiesValueList() { + return responseModalities_; + } + + /** + * + * + *
    +   * Optional. The modalities of the response. The model will generate a
    +   * response that includes all the specified modalities. For example, if this
    +   * is set to `[TEXT, IMAGE]`, the response will include both text and an
    +   * image.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of responseModalities at the given index. + */ + @java.lang.Override + public int getResponseModalitiesValue(int index) { + return responseModalities_.getInt(index); + } + + private int responseModalitiesMemoizedSerializedSize; + + public static final int MEDIA_RESOLUTION_FIELD_NUMBER = 22; + private int mediaResolution_ = 0; + + /** + * + * + *
    +   * Optional. The token resolution at which input media content is sampled.
    +   * This is used to control the trade-off between the quality of the response
    +   * and the number of tokens used to represent the media. A higher resolution
    +   * allows the model to perceive more detail, which can lead to a more nuanced
    +   * response, but it will also use more tokens. This does not affect the
    +   * image dimensions sent to the model.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mediaResolution field is set. + */ + @java.lang.Override + public boolean hasMediaResolution() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
    +   * Optional. The token resolution at which input media content is sampled.
    +   * This is used to control the trade-off between the quality of the response
    +   * and the number of tokens used to represent the media. A higher resolution
    +   * allows the model to perceive more detail, which can lead to a more nuanced
    +   * response, but it will also use more tokens. This does not affect the
    +   * image dimensions sent to the model.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mediaResolution. + */ + @java.lang.Override + public int getMediaResolutionValue() { + return mediaResolution_; + } + + /** + * + * + *
    +   * Optional. The token resolution at which input media content is sampled.
    +   * This is used to control the trade-off between the quality of the response
    +   * and the number of tokens used to represent the media. A higher resolution
    +   * allows the model to perceive more detail, which can lead to a more nuanced
    +   * response, but it will also use more tokens. This does not affect the
    +   * image dimensions sent to the model.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mediaResolution. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution getMediaResolution() { + com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution result = + com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution.forNumber(mediaResolution_); + return result == null + ? com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution.UNRECOGNIZED + : result; + } + public static final int SPEECH_CONFIG_FIELD_NUMBER = 23; private com.google.cloud.aiplatform.v1.SpeechConfig speechConfig_; @@ -4546,7 +5668,7 @@ public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig getRoutingC */ @java.lang.Override public boolean hasSpeechConfig() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -4607,7 +5729,7 @@ public com.google.cloud.aiplatform.v1.SpeechConfigOrBuilder getSpeechConfigOrBui */ @java.lang.Override public boolean hasThinkingConfig() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -4671,7 +5793,7 @@ public com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig getThinkin */ @java.lang.Override public boolean hasImageConfig() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -4726,6 +5848,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); if (((bitField0_ & 0x00000001) != 0)) { output.writeFloat(1, temperature_); } @@ -4769,15 +5892,28 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeBool(18, responseLogprobs_); } if (((bitField0_ & 0x00002000) != 0)) { - output.writeMessage(23, getSpeechConfig()); + output.writeBool(20, audioTimestamp_); + } + if (getResponseModalitiesList().size() > 0) { + output.writeUInt32NoTag(170); + output.writeUInt32NoTag(responseModalitiesMemoizedSerializedSize); + } + for (int i = 0; i < responseModalities_.size(); i++) { + output.writeEnumNoTag(responseModalities_.getInt(i)); } if (((bitField0_ & 0x00004000) != 0)) { + output.writeEnum(22, mediaResolution_); + } + if (((bitField0_ & 0x00008000) != 0)) { + output.writeMessage(23, getSpeechConfig()); + } + if (((bitField0_ & 0x00010000) != 0)) { output.writeMessage(25, getThinkingConfig()); } if (((bitField0_ & 0x00000800) != 0)) { output.writeMessage(28, getResponseJsonSchema()); } - if (((bitField0_ & 0x00008000) != 0)) { + if (((bitField0_ & 0x00020000) != 0)) { output.writeMessage(30, getImageConfig()); } getUnknownFields().writeTo(output); @@ -4837,15 +5973,35 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, responseLogprobs_); } if (((bitField0_ & 0x00002000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getSpeechConfig()); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, audioTimestamp_); + } + { + int dataSize = 0; + for (int i = 0; i < responseModalities_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( + responseModalities_.getInt(i)); + } + size += dataSize; + if (!getResponseModalitiesList().isEmpty()) { + size += 2; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + responseModalitiesMemoizedSerializedSize = dataSize; } if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(22, mediaResolution_); + } + if (((bitField0_ & 0x00008000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getSpeechConfig()); + } + if (((bitField0_ & 0x00010000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getThinkingConfig()); } if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getResponseJsonSchema()); } - if (((bitField0_ & 0x00008000) != 0)) { + if (((bitField0_ & 0x00020000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(30, getImageConfig()); } size += getUnknownFields().getSerializedSize(); @@ -4923,6 +6079,15 @@ public boolean equals(final java.lang.Object obj) { if (hasRoutingConfig()) { if (!getRoutingConfig().equals(other.getRoutingConfig())) return false; } + if (hasAudioTimestamp() != other.hasAudioTimestamp()) return false; + if (hasAudioTimestamp()) { + if (getAudioTimestamp() != other.getAudioTimestamp()) return false; + } + if (!responseModalities_.equals(other.responseModalities_)) return false; + if (hasMediaResolution() != other.hasMediaResolution()) return false; + if (hasMediaResolution()) { + if (mediaResolution_ != other.mediaResolution_) return false; + } if (hasSpeechConfig() != other.hasSpeechConfig()) return false; if (hasSpeechConfig()) { if (!getSpeechConfig().equals(other.getSpeechConfig())) return false; @@ -5004,6 +6169,18 @@ public int hashCode() { hash = (37 * hash) + ROUTING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getRoutingConfig().hashCode(); } + if (hasAudioTimestamp()) { + hash = (37 * hash) + AUDIO_TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAudioTimestamp()); + } + if (getResponseModalitiesCount() > 0) { + hash = (37 * hash) + RESPONSE_MODALITIES_FIELD_NUMBER; + hash = (53 * hash) + responseModalities_.hashCode(); + } + if (hasMediaResolution()) { + hash = (37 * hash) + MEDIA_RESOLUTION_FIELD_NUMBER; + hash = (53 * hash) + mediaResolution_; + } if (hasSpeechConfig()) { hash = (37 * hash) + SPEECH_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getSpeechConfig().hashCode(); @@ -5197,6 +6374,9 @@ public Builder clear() { routingConfigBuilder_.dispose(); routingConfigBuilder_ = null; } + audioTimestamp_ = false; + responseModalities_ = emptyIntList(); + mediaResolution_ = 0; speechConfig_ = null; if (speechConfigBuilder_ != null) { speechConfigBuilder_.dispose(); @@ -5314,19 +6494,31 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.GenerationConfig resul to_bitField0_ |= 0x00001000; } if (((from_bitField0_ & 0x00008000) != 0)) { - result.speechConfig_ = - speechConfigBuilder_ == null ? speechConfig_ : speechConfigBuilder_.build(); + result.audioTimestamp_ = audioTimestamp_; to_bitField0_ |= 0x00002000; } if (((from_bitField0_ & 0x00010000) != 0)) { + responseModalities_.makeImmutable(); + result.responseModalities_ = responseModalities_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.mediaResolution_ = mediaResolution_; + to_bitField0_ |= 0x00004000; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.speechConfig_ = + speechConfigBuilder_ == null ? speechConfig_ : speechConfigBuilder_.build(); + to_bitField0_ |= 0x00008000; + } + if (((from_bitField0_ & 0x00080000) != 0)) { result.thinkingConfig_ = thinkingConfigBuilder_ == null ? thinkingConfig_ : thinkingConfigBuilder_.build(); - to_bitField0_ |= 0x00004000; + to_bitField0_ |= 0x00010000; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00100000) != 0)) { result.imageConfig_ = imageConfigBuilder_ == null ? imageConfig_ : imageConfigBuilder_.build(); - to_bitField0_ |= 0x00008000; + to_bitField0_ |= 0x00020000; } result.bitField0_ |= to_bitField0_; } @@ -5398,6 +6590,23 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GenerationConfig other) if (other.hasRoutingConfig()) { mergeRoutingConfig(other.getRoutingConfig()); } + if (other.hasAudioTimestamp()) { + setAudioTimestamp(other.getAudioTimestamp()); + } + if (!other.responseModalities_.isEmpty()) { + if (responseModalities_.isEmpty()) { + responseModalities_ = other.responseModalities_; + responseModalities_.makeImmutable(); + bitField0_ |= 0x00010000; + } else { + ensureResponseModalitiesIsMutable(); + responseModalities_.addAll(other.responseModalities_); + } + onChanged(); + } + if (other.hasMediaResolution()) { + setMediaResolutionValue(other.getMediaResolutionValue()); + } if (other.hasSpeechConfig()) { mergeSpeechConfig(other.getSpeechConfig()); } @@ -5520,18 +6729,48 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 144 + case 160: + { + audioTimestamp_ = input.readBool(); + bitField0_ |= 0x00008000; + break; + } // case 160 + case 168: + { + int tmpRaw = input.readEnum(); + ensureResponseModalitiesIsMutable(); + responseModalities_.addInt(tmpRaw); + break; + } // case 168 + case 170: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureResponseModalitiesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + responseModalities_.addInt(input.readEnum()); + } + input.popLimit(limit); + break; + } // case 170 + case 176: + { + mediaResolution_ = input.readEnum(); + bitField0_ |= 0x00020000; + break; + } // case 176 case 186: { input.readMessage( internalGetSpeechConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00040000; break; } // case 186 case 202: { input.readMessage( internalGetThinkingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00080000; break; } // case 202 case 226: @@ -5545,7 +6784,7 @@ public Builder mergeFrom( { input.readMessage( internalGetImageConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00100000; break; } // case 242 default: @@ -7320,160 +8559,659 @@ public com.google.protobuf.Value.Builder getResponseJsonSchemaBuilder() { * - `additionalProperties` * - `required` * - * The non-standard `propertyOrdering` property may also be set. + * The non-standard `propertyOrdering` property may also be set. + * + * Cyclic references are unrolled to a limited degree and, as such, may only + * be used within non-required properties. (Nullable properties are not + * sufficient.) If `$ref` is set on a sub-schema, no other properties, except + * for than those starting as a `$`, may be set. + * + * + * + * optional .google.protobuf.Value response_json_schema = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.ValueOrBuilder getResponseJsonSchemaOrBuilder() { + if (responseJsonSchemaBuilder_ != null) { + return responseJsonSchemaBuilder_.getMessageOrBuilder(); + } else { + return responseJsonSchema_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : responseJsonSchema_; + } + } + + /** + * + * + *
    +     * Optional. Output schema of the generated response. This is an alternative
    +     * to `response_schema` that accepts [JSON Schema](https://json-schema.org/).
    +     *
    +     * If set, `response_schema` must be omitted, but `response_mime_type` is
    +     * required.
    +     *
    +     * While the full JSON Schema may be sent, not all features are supported.
    +     * Specifically, only the following properties are supported:
    +     *
    +     * - `$id`
    +     * - `$defs`
    +     * - `$ref`
    +     * - `$anchor`
    +     * - `type`
    +     * - `format`
    +     * - `title`
    +     * - `description`
    +     * - `enum` (for strings and numbers)
    +     * - `items`
    +     * - `prefixItems`
    +     * - `minItems`
    +     * - `maxItems`
    +     * - `minimum`
    +     * - `maximum`
    +     * - `anyOf`
    +     * - `oneOf` (interpreted the same as `anyOf`)
    +     * - `properties`
    +     * - `additionalProperties`
    +     * - `required`
    +     *
    +     * The non-standard `propertyOrdering` property may also be set.
    +     *
    +     * Cyclic references are unrolled to a limited degree and, as such, may only
    +     * be used within non-required properties. (Nullable properties are not
    +     * sufficient.) If `$ref` is set on a sub-schema, no other properties, except
    +     * for than those starting as a `$`, may be set.
    +     * 
    + * + * + * optional .google.protobuf.Value response_json_schema = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + internalGetResponseJsonSchemaFieldBuilder() { + if (responseJsonSchemaBuilder_ == null) { + responseJsonSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>( + getResponseJsonSchema(), getParentForChildren(), isClean()); + responseJsonSchema_ = null; + } + return responseJsonSchemaBuilder_; + } + + private com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routingConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig, + com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder, + com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder> + routingConfigBuilder_; + + /** + * + * + *
    +     * Optional. Routing configuration.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the routingConfig field is set. + */ + public boolean hasRoutingConfig() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
    +     * Optional. Routing configuration.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The routingConfig. + */ + public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig getRoutingConfig() { + if (routingConfigBuilder_ == null) { + return routingConfig_ == null + ? com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.getDefaultInstance() + : routingConfig_; + } else { + return routingConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. Routing configuration.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRoutingConfig( + com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig value) { + if (routingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + routingConfig_ = value; + } else { + routingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Routing configuration.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRoutingConfig( + com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder builderForValue) { + if (routingConfigBuilder_ == null) { + routingConfig_ = builderForValue.build(); + } else { + routingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Routing configuration.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRoutingConfig( + com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig value) { + if (routingConfigBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && routingConfig_ != null + && routingConfig_ + != com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig + .getDefaultInstance()) { + getRoutingConfigBuilder().mergeFrom(value); + } else { + routingConfig_ = value; + } + } else { + routingConfigBuilder_.mergeFrom(value); + } + if (routingConfig_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Routing configuration.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRoutingConfig() { + bitField0_ = (bitField0_ & ~0x00004000); + routingConfig_ = null; + if (routingConfigBuilder_ != null) { + routingConfigBuilder_.dispose(); + routingConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Routing configuration.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder + getRoutingConfigBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return internalGetRoutingConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. Routing configuration.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder + getRoutingConfigOrBuilder() { + if (routingConfigBuilder_ != null) { + return routingConfigBuilder_.getMessageOrBuilder(); + } else { + return routingConfig_ == null + ? com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.getDefaultInstance() + : routingConfig_; + } + } + + /** + * + * + *
    +     * Optional. Routing configuration.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig, + com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder, + com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder> + internalGetRoutingConfigFieldBuilder() { + if (routingConfigBuilder_ == null) { + routingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig, + com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder, + com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder>( + getRoutingConfig(), getParentForChildren(), isClean()); + routingConfig_ = null; + } + return routingConfigBuilder_; + } + + private boolean audioTimestamp_; + + /** + * + * + *
    +     * Optional. If enabled, audio timestamps will be included in the request to
    +     * the model. This can be useful for synchronizing audio with other modalities
    +     * in the response.
    +     * 
    + * + * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the audioTimestamp field is set. + */ + @java.lang.Override + public boolean hasAudioTimestamp() { + return ((bitField0_ & 0x00008000) != 0); + } + + /** + * + * + *
    +     * Optional. If enabled, audio timestamps will be included in the request to
    +     * the model. This can be useful for synchronizing audio with other modalities
    +     * in the response.
    +     * 
    + * + * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The audioTimestamp. + */ + @java.lang.Override + public boolean getAudioTimestamp() { + return audioTimestamp_; + } + + /** + * + * + *
    +     * Optional. If enabled, audio timestamps will be included in the request to
    +     * the model. This can be useful for synchronizing audio with other modalities
    +     * in the response.
    +     * 
    + * + * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The audioTimestamp to set. + * @return This builder for chaining. + */ + public Builder setAudioTimestamp(boolean value) { + + audioTimestamp_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. If enabled, audio timestamps will be included in the request to
    +     * the model. This can be useful for synchronizing audio with other modalities
    +     * in the response.
    +     * 
    + * + * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAudioTimestamp() { + bitField0_ = (bitField0_ & ~0x00008000); + audioTimestamp_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList responseModalities_ = emptyIntList(); + + private void ensureResponseModalitiesIsMutable() { + if (!responseModalities_.isModifiable()) { + responseModalities_ = makeMutableCopy(responseModalities_); + } + bitField0_ |= 0x00010000; + } + + /** + * + * + *
    +     * Optional. The modalities of the response. The model will generate a
    +     * response that includes all the specified modalities. For example, if this
    +     * is set to `[TEXT, IMAGE]`, the response will include both text and an
    +     * image.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the responseModalities. + */ + public java.util.List + getResponseModalitiesList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.aiplatform.v1.GenerationConfig.Modality>( + responseModalities_, responseModalities_converter_); + } + + /** + * + * + *
    +     * Optional. The modalities of the response. The model will generate a
    +     * response that includes all the specified modalities. For example, if this
    +     * is set to `[TEXT, IMAGE]`, the response will include both text and an
    +     * image.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of responseModalities. + */ + public int getResponseModalitiesCount() { + return responseModalities_.size(); + } + + /** + * + * + *
    +     * Optional. The modalities of the response. The model will generate a
    +     * response that includes all the specified modalities. For example, if this
    +     * is set to `[TEXT, IMAGE]`, the response will include both text and an
    +     * image.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The responseModalities at the given index. + */ + public com.google.cloud.aiplatform.v1.GenerationConfig.Modality getResponseModalities( + int index) { + return responseModalities_converter_.convert(responseModalities_.getInt(index)); + } + + /** + * + * + *
    +     * Optional. The modalities of the response. The model will generate a
    +     * response that includes all the specified modalities. For example, if this
    +     * is set to `[TEXT, IMAGE]`, the response will include both text and an
    +     * image.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The responseModalities to set. + * @return This builder for chaining. + */ + public Builder setResponseModalities( + int index, com.google.cloud.aiplatform.v1.GenerationConfig.Modality value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponseModalitiesIsMutable(); + responseModalities_.setInt(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The modalities of the response. The model will generate a
    +     * response that includes all the specified modalities. For example, if this
    +     * is set to `[TEXT, IMAGE]`, the response will include both text and an
    +     * image.
    +     * 
    + * + * + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The responseModalities to add. + * @return This builder for chaining. + */ + public Builder addResponseModalities( + com.google.cloud.aiplatform.v1.GenerationConfig.Modality value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponseModalitiesIsMutable(); + responseModalities_.addInt(value.getNumber()); + onChanged(); + return this; + } + + /** + * * - * Cyclic references are unrolled to a limited degree and, as such, may only - * be used within non-required properties. (Nullable properties are not - * sufficient.) If `$ref` is set on a sub-schema, no other properties, except - * for than those starting as a `$`, may be set. + *
    +     * Optional. The modalities of the response. The model will generate a
    +     * response that includes all the specified modalities. For example, if this
    +     * is set to `[TEXT, IMAGE]`, the response will include both text and an
    +     * image.
          * 
    * * - * optional .google.protobuf.Value response_json_schema = 28 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param values The responseModalities to add. + * @return This builder for chaining. */ - public com.google.protobuf.ValueOrBuilder getResponseJsonSchemaOrBuilder() { - if (responseJsonSchemaBuilder_ != null) { - return responseJsonSchemaBuilder_.getMessageOrBuilder(); - } else { - return responseJsonSchema_ == null - ? com.google.protobuf.Value.getDefaultInstance() - : responseJsonSchema_; + public Builder addAllResponseModalities( + java.lang.Iterable + values) { + ensureResponseModalitiesIsMutable(); + for (com.google.cloud.aiplatform.v1.GenerationConfig.Modality value : values) { + responseModalities_.addInt(value.getNumber()); } + onChanged(); + return this; } /** * * *
    -     * Optional. Output schema of the generated response. This is an alternative
    -     * to `response_schema` that accepts [JSON Schema](https://json-schema.org/).
    -     *
    -     * If set, `response_schema` must be omitted, but `response_mime_type` is
    -     * required.
    +     * Optional. The modalities of the response. The model will generate a
    +     * response that includes all the specified modalities. For example, if this
    +     * is set to `[TEXT, IMAGE]`, the response will include both text and an
    +     * image.
    +     * 
    * - * While the full JSON Schema may be sent, not all features are supported. - * Specifically, only the following properties are supported: + * + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * * - * - `$id` - * - `$defs` - * - `$ref` - * - `$anchor` - * - `type` - * - `format` - * - `title` - * - `description` - * - `enum` (for strings and numbers) - * - `items` - * - `prefixItems` - * - `minItems` - * - `maxItems` - * - `minimum` - * - `maximum` - * - `anyOf` - * - `oneOf` (interpreted the same as `anyOf`) - * - `properties` - * - `additionalProperties` - * - `required` + * @return This builder for chaining. + */ + public Builder clearResponseModalities() { + responseModalities_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + return this; + } + + /** * - * The non-standard `propertyOrdering` property may also be set. * - * Cyclic references are unrolled to a limited degree and, as such, may only - * be used within non-required properties. (Nullable properties are not - * sufficient.) If `$ref` is set on a sub-schema, no other properties, except - * for than those starting as a `$`, may be set. + *
    +     * Optional. The modalities of the response. The model will generate a
    +     * response that includes all the specified modalities. For example, if this
    +     * is set to `[TEXT, IMAGE]`, the response will include both text and an
    +     * image.
          * 
    * * - * optional .google.protobuf.Value response_json_schema = 28 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return A list containing the enum numeric values on the wire for responseModalities. */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Value, - com.google.protobuf.Value.Builder, - com.google.protobuf.ValueOrBuilder> - internalGetResponseJsonSchemaFieldBuilder() { - if (responseJsonSchemaBuilder_ == null) { - responseJsonSchemaBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Value, - com.google.protobuf.Value.Builder, - com.google.protobuf.ValueOrBuilder>( - getResponseJsonSchema(), getParentForChildren(), isClean()); - responseJsonSchema_ = null; - } - return responseJsonSchemaBuilder_; + public java.util.List getResponseModalitiesValueList() { + responseModalities_.makeImmutable(); + return responseModalities_; } - private com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routingConfig_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig, - com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder, - com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder> - routingConfigBuilder_; - /** * * *
    -     * Optional. Routing configuration.
    +     * Optional. The modalities of the response. The model will generate a
    +     * response that includes all the specified modalities. For example, if this
    +     * is set to `[TEXT, IMAGE]`, the response will include both text and an
    +     * image.
          * 
    * * - * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the routingConfig field is set. + * @param index The index of the value to return. + * @return The enum numeric value on the wire of responseModalities at the given index. */ - public boolean hasRoutingConfig() { - return ((bitField0_ & 0x00004000) != 0); + public int getResponseModalitiesValue(int index) { + return responseModalities_.getInt(index); } /** * * *
    -     * Optional. Routing configuration.
    +     * Optional. The modalities of the response. The model will generate a
    +     * response that includes all the specified modalities. For example, if this
    +     * is set to `[TEXT, IMAGE]`, the response will include both text and an
    +     * image.
          * 
    * * - * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The routingConfig. + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for responseModalities to set. + * @return This builder for chaining. */ - public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig getRoutingConfig() { - if (routingConfigBuilder_ == null) { - return routingConfig_ == null - ? com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.getDefaultInstance() - : routingConfig_; - } else { - return routingConfigBuilder_.getMessage(); - } + public Builder setResponseModalitiesValue(int index, int value) { + ensureResponseModalitiesIsMutable(); + responseModalities_.setInt(index, value); + onChanged(); + return this; } /** * * *
    -     * Optional. Routing configuration.
    +     * Optional. The modalities of the response. The model will generate a
    +     * response that includes all the specified modalities. For example, if this
    +     * is set to `[TEXT, IMAGE]`, the response will include both text and an
    +     * image.
          * 
    * * - * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param value The enum numeric value on the wire for responseModalities to add. + * @return This builder for chaining. */ - public Builder setRoutingConfig( - com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig value) { - if (routingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - routingConfig_ = value; - } else { - routingConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00004000; + public Builder addResponseModalitiesValue(int value) { + ensureResponseModalitiesIsMutable(); + responseModalities_.addInt(value); onChanged(); return this; } @@ -7482,76 +9220,98 @@ public Builder setRoutingConfig( * * *
    -     * Optional. Routing configuration.
    +     * Optional. The modalities of the response. The model will generate a
    +     * response that includes all the specified modalities. For example, if this
    +     * is set to `[TEXT, IMAGE]`, the response will include both text and an
    +     * image.
          * 
    * * - * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param values The enum numeric values on the wire for responseModalities to add. + * @return This builder for chaining. */ - public Builder setRoutingConfig( - com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder builderForValue) { - if (routingConfigBuilder_ == null) { - routingConfig_ = builderForValue.build(); - } else { - routingConfigBuilder_.setMessage(builderForValue.build()); + public Builder addAllResponseModalitiesValue(java.lang.Iterable values) { + ensureResponseModalitiesIsMutable(); + for (int value : values) { + responseModalities_.addInt(value); } - bitField0_ |= 0x00004000; onChanged(); return this; } + private int mediaResolution_ = 0; + /** * * *
    -     * Optional. Routing configuration.
    +     * Optional. The token resolution at which input media content is sampled.
    +     * This is used to control the trade-off between the quality of the response
    +     * and the number of tokens used to represent the media. A higher resolution
    +     * allows the model to perceive more detail, which can lead to a more nuanced
    +     * response, but it will also use more tokens. This does not affect the
    +     * image dimensions sent to the model.
          * 
    * * - * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return Whether the mediaResolution field is set. */ - public Builder mergeRoutingConfig( - com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig value) { - if (routingConfigBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) - && routingConfig_ != null - && routingConfig_ - != com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig - .getDefaultInstance()) { - getRoutingConfigBuilder().mergeFrom(value); - } else { - routingConfig_ = value; - } - } else { - routingConfigBuilder_.mergeFrom(value); - } - if (routingConfig_ != null) { - bitField0_ |= 0x00004000; - onChanged(); - } - return this; + @java.lang.Override + public boolean hasMediaResolution() { + return ((bitField0_ & 0x00020000) != 0); } /** * * *
    -     * Optional. Routing configuration.
    +     * Optional. The token resolution at which input media content is sampled.
    +     * This is used to control the trade-off between the quality of the response
    +     * and the number of tokens used to represent the media. A higher resolution
    +     * allows the model to perceive more detail, which can lead to a more nuanced
    +     * response, but it will also use more tokens. This does not affect the
    +     * image dimensions sent to the model.
          * 
    * * - * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The enum numeric value on the wire for mediaResolution. */ - public Builder clearRoutingConfig() { - bitField0_ = (bitField0_ & ~0x00004000); - routingConfig_ = null; - if (routingConfigBuilder_ != null) { - routingConfigBuilder_.dispose(); - routingConfigBuilder_ = null; - } + @java.lang.Override + public int getMediaResolutionValue() { + return mediaResolution_; + } + + /** + * + * + *
    +     * Optional. The token resolution at which input media content is sampled.
    +     * This is used to control the trade-off between the quality of the response
    +     * and the number of tokens used to represent the media. A higher resolution
    +     * allows the model to perceive more detail, which can lead to a more nuanced
    +     * response, but it will also use more tokens. This does not affect the
    +     * image dimensions sent to the model.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for mediaResolution to set. + * @return This builder for chaining. + */ + public Builder setMediaResolutionValue(int value) { + mediaResolution_ = value; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -7560,68 +9320,83 @@ public Builder clearRoutingConfig() { * * *
    -     * Optional. Routing configuration.
    +     * Optional. The token resolution at which input media content is sampled.
    +     * This is used to control the trade-off between the quality of the response
    +     * and the number of tokens used to represent the media. A higher resolution
    +     * allows the model to perceive more detail, which can lead to a more nuanced
    +     * response, but it will also use more tokens. This does not affect the
    +     * image dimensions sent to the model.
          * 
    * * - * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The mediaResolution. */ - public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder - getRoutingConfigBuilder() { - bitField0_ |= 0x00004000; - onChanged(); - return internalGetRoutingConfigFieldBuilder().getBuilder(); + @java.lang.Override + public com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution getMediaResolution() { + com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution result = + com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution.forNumber( + mediaResolution_); + return result == null + ? com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution.UNRECOGNIZED + : result; } /** * * *
    -     * Optional. Routing configuration.
    +     * Optional. The token resolution at which input media content is sampled.
    +     * This is used to control the trade-off between the quality of the response
    +     * and the number of tokens used to represent the media. A higher resolution
    +     * allows the model to perceive more detail, which can lead to a more nuanced
    +     * response, but it will also use more tokens. This does not affect the
    +     * image dimensions sent to the model.
          * 
    * * - * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param value The mediaResolution to set. + * @return This builder for chaining. */ - public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder - getRoutingConfigOrBuilder() { - if (routingConfigBuilder_ != null) { - return routingConfigBuilder_.getMessageOrBuilder(); - } else { - return routingConfig_ == null - ? com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.getDefaultInstance() - : routingConfig_; + public Builder setMediaResolution( + com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution value) { + if (value == null) { + throw new NullPointerException(); } + bitField0_ |= 0x00020000; + mediaResolution_ = value.getNumber(); + onChanged(); + return this; } /** * * *
    -     * Optional. Routing configuration.
    +     * Optional. The token resolution at which input media content is sampled.
    +     * This is used to control the trade-off between the quality of the response
    +     * and the number of tokens used to represent the media. A higher resolution
    +     * allows the model to perceive more detail, which can lead to a more nuanced
    +     * response, but it will also use more tokens. This does not affect the
    +     * image dimensions sent to the model.
          * 
    * * - * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig, - com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder, - com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder> - internalGetRoutingConfigFieldBuilder() { - if (routingConfigBuilder_ == null) { - routingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig, - com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder, - com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder>( - getRoutingConfig(), getParentForChildren(), isClean()); - routingConfig_ = null; - } - return routingConfigBuilder_; + public Builder clearMediaResolution() { + bitField0_ = (bitField0_ & ~0x00020000); + mediaResolution_ = 0; + onChanged(); + return this; } private com.google.cloud.aiplatform.v1.SpeechConfig speechConfig_; @@ -7645,7 +9420,7 @@ public Builder clearRoutingConfig() { * @return Whether the speechConfig field is set. */ public boolean hasSpeechConfig() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00040000) != 0); } /** @@ -7691,7 +9466,7 @@ public Builder setSpeechConfig(com.google.cloud.aiplatform.v1.SpeechConfig value } else { speechConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -7714,7 +9489,7 @@ public Builder setSpeechConfig( } else { speechConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -7732,7 +9507,7 @@ public Builder setSpeechConfig( */ public Builder mergeSpeechConfig(com.google.cloud.aiplatform.v1.SpeechConfig value) { if (speechConfigBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) + if (((bitField0_ & 0x00040000) != 0) && speechConfig_ != null && speechConfig_ != com.google.cloud.aiplatform.v1.SpeechConfig.getDefaultInstance()) { getSpeechConfigBuilder().mergeFrom(value); @@ -7743,7 +9518,7 @@ public Builder mergeSpeechConfig(com.google.cloud.aiplatform.v1.SpeechConfig val speechConfigBuilder_.mergeFrom(value); } if (speechConfig_ != null) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00040000; onChanged(); } return this; @@ -7761,7 +9536,7 @@ public Builder mergeSpeechConfig(com.google.cloud.aiplatform.v1.SpeechConfig val * */ public Builder clearSpeechConfig() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00040000); speechConfig_ = null; if (speechConfigBuilder_ != null) { speechConfigBuilder_.dispose(); @@ -7783,7 +9558,7 @@ public Builder clearSpeechConfig() { * */ public com.google.cloud.aiplatform.v1.SpeechConfig.Builder getSpeechConfigBuilder() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00040000; onChanged(); return internalGetSpeechConfigFieldBuilder().getBuilder(); } @@ -7860,7 +9635,7 @@ public com.google.cloud.aiplatform.v1.SpeechConfigOrBuilder getSpeechConfigOrBui * @return Whether the thinkingConfig field is set. */ public boolean hasThinkingConfig() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** @@ -7911,7 +9686,7 @@ public Builder setThinkingConfig( } else { thinkingConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -7936,7 +9711,7 @@ public Builder setThinkingConfig( } else { thinkingConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -7957,7 +9732,7 @@ public Builder setThinkingConfig( public Builder mergeThinkingConfig( com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig value) { if (thinkingConfigBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) + if (((bitField0_ & 0x00080000) != 0) && thinkingConfig_ != null && thinkingConfig_ != com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig @@ -7970,7 +9745,7 @@ public Builder mergeThinkingConfig( thinkingConfigBuilder_.mergeFrom(value); } if (thinkingConfig_ != null) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00080000; onChanged(); } return this; @@ -7990,7 +9765,7 @@ public Builder mergeThinkingConfig( * */ public Builder clearThinkingConfig() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00080000); thinkingConfig_ = null; if (thinkingConfigBuilder_ != null) { thinkingConfigBuilder_.dispose(); @@ -8015,7 +9790,7 @@ public Builder clearThinkingConfig() { */ public com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.Builder getThinkingConfigBuilder() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00080000; onChanged(); return internalGetThinkingConfigFieldBuilder().getBuilder(); } @@ -8095,7 +9870,7 @@ public Builder clearThinkingConfig() { * @return Whether the imageConfig field is set. */ public boolean hasImageConfig() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** @@ -8141,7 +9916,7 @@ public Builder setImageConfig(com.google.cloud.aiplatform.v1.ImageConfig value) } else { imageConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -8164,7 +9939,7 @@ public Builder setImageConfig( } else { imageConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -8182,7 +9957,7 @@ public Builder setImageConfig( */ public Builder mergeImageConfig(com.google.cloud.aiplatform.v1.ImageConfig value) { if (imageConfigBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) + if (((bitField0_ & 0x00100000) != 0) && imageConfig_ != null && imageConfig_ != com.google.cloud.aiplatform.v1.ImageConfig.getDefaultInstance()) { getImageConfigBuilder().mergeFrom(value); @@ -8193,7 +9968,7 @@ public Builder mergeImageConfig(com.google.cloud.aiplatform.v1.ImageConfig value imageConfigBuilder_.mergeFrom(value); } if (imageConfig_ != null) { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00100000; onChanged(); } return this; @@ -8211,7 +9986,7 @@ public Builder mergeImageConfig(com.google.cloud.aiplatform.v1.ImageConfig value * */ public Builder clearImageConfig() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00100000); imageConfig_ = null; if (imageConfigBuilder_ != null) { imageConfigBuilder_.dispose(); @@ -8233,7 +10008,7 @@ public Builder clearImageConfig() { * */ public com.google.cloud.aiplatform.v1.ImageConfig.Builder getImageConfigBuilder() { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00100000; onChanged(); return internalGetImageConfigFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfigOrBuilder.java index 5b087c47d539..ec50bdb56777 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfigOrBuilder.java @@ -631,6 +631,189 @@ public interface GenerationConfigOrBuilder com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder getRoutingConfigOrBuilder(); + /** + * + * + *
    +   * Optional. If enabled, audio timestamps will be included in the request to
    +   * the model. This can be useful for synchronizing audio with other modalities
    +   * in the response.
    +   * 
    + * + * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the audioTimestamp field is set. + */ + boolean hasAudioTimestamp(); + + /** + * + * + *
    +   * Optional. If enabled, audio timestamps will be included in the request to
    +   * the model. This can be useful for synchronizing audio with other modalities
    +   * in the response.
    +   * 
    + * + * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The audioTimestamp. + */ + boolean getAudioTimestamp(); + + /** + * + * + *
    +   * Optional. The modalities of the response. The model will generate a
    +   * response that includes all the specified modalities. For example, if this
    +   * is set to `[TEXT, IMAGE]`, the response will include both text and an
    +   * image.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the responseModalities. + */ + java.util.List + getResponseModalitiesList(); + + /** + * + * + *
    +   * Optional. The modalities of the response. The model will generate a
    +   * response that includes all the specified modalities. For example, if this
    +   * is set to `[TEXT, IMAGE]`, the response will include both text and an
    +   * image.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of responseModalities. + */ + int getResponseModalitiesCount(); + + /** + * + * + *
    +   * Optional. The modalities of the response. The model will generate a
    +   * response that includes all the specified modalities. For example, if this
    +   * is set to `[TEXT, IMAGE]`, the response will include both text and an
    +   * image.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The responseModalities at the given index. + */ + com.google.cloud.aiplatform.v1.GenerationConfig.Modality getResponseModalities(int index); + + /** + * + * + *
    +   * Optional. The modalities of the response. The model will generate a
    +   * response that includes all the specified modalities. For example, if this
    +   * is set to `[TEXT, IMAGE]`, the response will include both text and an
    +   * image.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for responseModalities. + */ + java.util.List getResponseModalitiesValueList(); + + /** + * + * + *
    +   * Optional. The modalities of the response. The model will generate a
    +   * response that includes all the specified modalities. For example, if this
    +   * is set to `[TEXT, IMAGE]`, the response will include both text and an
    +   * image.
    +   * 
    + * + * + * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of responseModalities at the given index. + */ + int getResponseModalitiesValue(int index); + + /** + * + * + *
    +   * Optional. The token resolution at which input media content is sampled.
    +   * This is used to control the trade-off between the quality of the response
    +   * and the number of tokens used to represent the media. A higher resolution
    +   * allows the model to perceive more detail, which can lead to a more nuanced
    +   * response, but it will also use more tokens. This does not affect the
    +   * image dimensions sent to the model.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mediaResolution field is set. + */ + boolean hasMediaResolution(); + + /** + * + * + *
    +   * Optional. The token resolution at which input media content is sampled.
    +   * This is used to control the trade-off between the quality of the response
    +   * and the number of tokens used to represent the media. A higher resolution
    +   * allows the model to perceive more detail, which can lead to a more nuanced
    +   * response, but it will also use more tokens. This does not affect the
    +   * image dimensions sent to the model.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mediaResolution. + */ + int getMediaResolutionValue(); + + /** + * + * + *
    +   * Optional. The token resolution at which input media content is sampled.
    +   * This is used to control the trade-off between the quality of the response
    +   * and the number of tokens used to represent the media. A higher resolution
    +   * allows the model to perceive more detail, which can lead to a more nuanced
    +   * response, but it will also use more tokens. This does not affect the
    +   * image dimensions sent to the model.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mediaResolution. + */ + com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution getMediaResolution(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetRequest.java index 205ddbd34919..8cfe877ca570 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetRequest.java @@ -26,7 +26,6 @@ *
      * Request message for
      * [DatasetService.GetDataset][google.cloud.aiplatform.v1.DatasetService.GetDataset].
    - * Next ID: 4
      * 
    * * Protobuf type {@code google.cloud.aiplatform.v1.GetDatasetRequest} @@ -359,7 +358,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder *
        * Request message for
        * [DatasetService.GetDataset][google.cloud.aiplatform.v1.DatasetService.GetDataset].
    -   * Next ID: 4
        * 
    * * Protobuf type {@code google.cloud.aiplatform.v1.GetDatasetRequest} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetVersionRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetVersionRequest.java index 31108ef249cb..da7902cf625d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetVersionRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetVersionRequest.java @@ -26,7 +26,6 @@ *
      * Request message for
      * [DatasetService.GetDatasetVersion][google.cloud.aiplatform.v1.DatasetService.GetDatasetVersion].
    - * Next ID: 4
      * 
    * * Protobuf type {@code google.cloud.aiplatform.v1.GetDatasetVersionRequest} @@ -364,7 +363,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder *
        * Request message for
        * [DatasetService.GetDatasetVersion][google.cloud.aiplatform.v1.DatasetService.GetDatasetVersion].
    -   * Next ID: 4
        * 
    * * Protobuf type {@code google.cloud.aiplatform.v1.GetDatasetVersionRequest} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImageConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImageConfig.java index cd8d28aee20c..91b2c2c7b2fb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImageConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImageConfig.java @@ -53,6 +53,8 @@ private ImageConfig(com.google.protobuf.GeneratedMessage.Builder builder) { private ImageConfig() { aspectRatio_ = ""; + personGeneration_ = 0; + imageSize_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -70,7 +72,1102 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.aiplatform.v1.ImageConfig.Builder.class); } + /** + * + * + *
    +   * Enum for controlling the generation of people in images.
    +   * 
    + * + * Protobuf enum {@code google.cloud.aiplatform.v1.ImageConfig.PersonGeneration} + */ + public enum PersonGeneration implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * The default behavior is unspecified. The model will decide whether to
    +     * generate images of people.
    +     * 
    + * + * PERSON_GENERATION_UNSPECIFIED = 0; + */ + PERSON_GENERATION_UNSPECIFIED(0), + /** + * + * + *
    +     * Allows the model to generate images of people, including adults and
    +     * children.
    +     * 
    + * + * ALLOW_ALL = 1; + */ + ALLOW_ALL(1), + /** + * + * + *
    +     * Allows the model to generate images of adults, but not children.
    +     * 
    + * + * ALLOW_ADULT = 2; + */ + ALLOW_ADULT(2), + /** + * + * + *
    +     * Prevents the model from generating images of people.
    +     * 
    + * + * ALLOW_NONE = 3; + */ + ALLOW_NONE(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PersonGeneration"); + } + + /** + * + * + *
    +     * The default behavior is unspecified. The model will decide whether to
    +     * generate images of people.
    +     * 
    + * + * PERSON_GENERATION_UNSPECIFIED = 0; + */ + public static final int PERSON_GENERATION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * Allows the model to generate images of people, including adults and
    +     * children.
    +     * 
    + * + * ALLOW_ALL = 1; + */ + public static final int ALLOW_ALL_VALUE = 1; + + /** + * + * + *
    +     * Allows the model to generate images of adults, but not children.
    +     * 
    + * + * ALLOW_ADULT = 2; + */ + public static final int ALLOW_ADULT_VALUE = 2; + + /** + * + * + *
    +     * Prevents the model from generating images of people.
    +     * 
    + * + * ALLOW_NONE = 3; + */ + public static final int ALLOW_NONE_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PersonGeneration valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static PersonGeneration forNumber(int value) { + switch (value) { + case 0: + return PERSON_GENERATION_UNSPECIFIED; + case 1: + return ALLOW_ALL; + case 2: + return ALLOW_ADULT; + case 3: + return ALLOW_NONE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PersonGeneration findValueByNumber(int number) { + return PersonGeneration.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ImageConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final PersonGeneration[] VALUES = values(); + + public static PersonGeneration valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private PersonGeneration(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1.ImageConfig.PersonGeneration) + } + + public interface ImageOutputOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Optional. The image format that the output should be saved as.
    +     * 
    + * + * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the mimeType field is set. + */ + boolean hasMimeType(); + + /** + * + * + *
    +     * Optional. The image format that the output should be saved as.
    +     * 
    + * + * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The mimeType. + */ + java.lang.String getMimeType(); + + /** + * + * + *
    +     * Optional. The image format that the output should be saved as.
    +     * 
    + * + * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for mimeType. + */ + com.google.protobuf.ByteString getMimeTypeBytes(); + + /** + * + * + *
    +     * Optional. The compression quality of the output image.
    +     * 
    + * + * optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the compressionQuality field is set. + */ + boolean hasCompressionQuality(); + + /** + * + * + *
    +     * Optional. The compression quality of the output image.
    +     * 
    + * + * optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The compressionQuality. + */ + int getCompressionQuality(); + } + + /** + * + * + *
    +   * The image output format for generated images.
    +   * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions} + */ + public static final class ImageOutputOptions extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions) + ImageOutputOptionsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ImageOutputOptions"); + } + + // Use ImageOutputOptions.newBuilder() to construct. + private ImageOutputOptions(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ImageOutputOptions() { + mimeType_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_ImageConfig_ImageOutputOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_ImageConfig_ImageOutputOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.class, + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.Builder.class); + } + + private int bitField0_; + public static final int MIME_TYPE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; + + /** + * + * + *
    +     * Optional. The image format that the output should be saved as.
    +     * 
    + * + * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the mimeType field is set. + */ + @java.lang.Override + public boolean hasMimeType() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Optional. The image format that the output should be saved as.
    +     * 
    + * + * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The mimeType. + */ + @java.lang.Override + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } + } + + /** + * + * + *
    +     * Optional. The image format that the output should be saved as.
    +     * 
    + * + * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for mimeType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPRESSION_QUALITY_FIELD_NUMBER = 2; + private int compressionQuality_ = 0; + + /** + * + * + *
    +     * Optional. The compression quality of the output image.
    +     * 
    + * + * optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the compressionQuality field is set. + */ + @java.lang.Override + public boolean hasCompressionQuality() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Optional. The compression quality of the output image.
    +     * 
    + * + * optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The compressionQuality. + */ + @java.lang.Override + public int getCompressionQuality() { + return compressionQuality_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, mimeType_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt32(2, compressionQuality_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, mimeType_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, compressionQuality_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions other = + (com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions) obj; + + if (hasMimeType() != other.hasMimeType()) return false; + if (hasMimeType()) { + if (!getMimeType().equals(other.getMimeType())) return false; + } + if (hasCompressionQuality() != other.hasCompressionQuality()) return false; + if (hasCompressionQuality()) { + if (getCompressionQuality() != other.getCompressionQuality()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMimeType()) { + hash = (37 * hash) + MIME_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMimeType().hashCode(); + } + if (hasCompressionQuality()) { + hash = (37 * hash) + COMPRESSION_QUALITY_FIELD_NUMBER; + hash = (53 * hash) + getCompressionQuality(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +     * The image output format for generated images.
    +     * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions) + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_ImageConfig_ImageOutputOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_ImageConfig_ImageOutputOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.class, + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mimeType_ = ""; + compressionQuality_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_ImageConfig_ImageOutputOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions build() { + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions buildPartial() { + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions result = + new com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mimeType_ = mimeType_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.compressionQuality_ = compressionQuality_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions) { + return mergeFrom((com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions other) { + if (other + == com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.getDefaultInstance()) + return this; + if (other.hasMimeType()) { + mimeType_ = other.mimeType_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCompressionQuality()) { + setCompressionQuality(other.getCompressionQuality()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + compressionQuality_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object mimeType_ = ""; + + /** + * + * + *
    +       * Optional. The image format that the output should be saved as.
    +       * 
    + * + * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the mimeType field is set. + */ + public boolean hasMimeType() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +       * Optional. The image format that the output should be saved as.
    +       * 
    + * + * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The mimeType. + */ + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +       * Optional. The image format that the output should be saved as.
    +       * 
    + * + * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for mimeType. + */ + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +       * Optional. The image format that the output should be saved as.
    +       * 
    + * + * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mimeType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The image format that the output should be saved as.
    +       * 
    + * + * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMimeType() { + mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The image format that the output should be saved as.
    +       * 
    + * + * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int compressionQuality_; + + /** + * + * + *
    +       * Optional. The compression quality of the output image.
    +       * 
    + * + * optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the compressionQuality field is set. + */ + @java.lang.Override + public boolean hasCompressionQuality() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +       * Optional. The compression quality of the output image.
    +       * 
    + * + * optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The compressionQuality. + */ + @java.lang.Override + public int getCompressionQuality() { + return compressionQuality_; + } + + /** + * + * + *
    +       * Optional. The compression quality of the output image.
    +       * 
    + * + * optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The compressionQuality to set. + * @return This builder for chaining. + */ + public Builder setCompressionQuality(int value) { + + compressionQuality_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The compression quality of the output image.
    +       * 
    + * + * optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearCompressionQuality() { + bitField0_ = (bitField0_ & ~0x00000002); + compressionQuality_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions) + private static final com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions(); + } + + public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageOutputOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; + public static final int IMAGE_OUTPUT_OPTIONS_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions imageOutputOptions_; + + /** + * + * + *
    +   * Optional. The image output format for generated images.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the imageOutputOptions field is set. + */ + @java.lang.Override + public boolean hasImageOutputOptions() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Optional. The image output format for generated images.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The imageOutputOptions. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions getImageOutputOptions() { + return imageOutputOptions_ == null + ? com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.getDefaultInstance() + : imageOutputOptions_; + } + + /** + * + * + *
    +   * Optional. The image output format for generated images.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptionsOrBuilder + getImageOutputOptionsOrBuilder() { + return imageOutputOptions_ == null + ? com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.getDefaultInstance() + : imageOutputOptions_; + } + public static final int ASPECT_RATIO_FIELD_NUMBER = 2; @SuppressWarnings("serial") @@ -97,7 +1194,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasAspectRatio() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** @@ -164,6 +1261,139 @@ public com.google.protobuf.ByteString getAspectRatioBytes() { } } + public static final int PERSON_GENERATION_FIELD_NUMBER = 3; + private int personGeneration_ = 0; + + /** + * + * + *
    +   * Optional. Controls whether the model can generate people.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the personGeneration field is set. + */ + @java.lang.Override + public boolean hasPersonGeneration() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +   * Optional. Controls whether the model can generate people.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for personGeneration. + */ + @java.lang.Override + public int getPersonGenerationValue() { + return personGeneration_; + } + + /** + * + * + *
    +   * Optional. Controls whether the model can generate people.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The personGeneration. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration getPersonGeneration() { + com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration result = + com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration.forNumber(personGeneration_); + return result == null + ? com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration.UNRECOGNIZED + : result; + } + + public static final int IMAGE_SIZE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object imageSize_ = ""; + + /** + * + * + *
    +   * Optional. Specifies the size of generated images. Supported values are
    +   * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
    +   * 
    + * + * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the imageSize field is set. + */ + @java.lang.Override + public boolean hasImageSize() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +   * Optional. Specifies the size of generated images. Supported values are
    +   * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
    +   * 
    + * + * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The imageSize. + */ + @java.lang.Override + public java.lang.String getImageSize() { + java.lang.Object ref = imageSize_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageSize_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. Specifies the size of generated images. Supported values are
    +   * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
    +   * 
    + * + * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for imageSize. + */ + @java.lang.Override + public com.google.protobuf.ByteString getImageSizeBytes() { + java.lang.Object ref = imageSize_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageSize_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -179,8 +1409,17 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getImageOutputOptions()); + } + if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, aspectRatio_); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(3, personGeneration_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, imageSize_); + } getUnknownFields().writeTo(output); } @@ -191,8 +1430,17 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getImageOutputOptions()); + } + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, aspectRatio_); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, personGeneration_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, imageSize_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -209,10 +1457,22 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.aiplatform.v1.ImageConfig other = (com.google.cloud.aiplatform.v1.ImageConfig) obj; + if (hasImageOutputOptions() != other.hasImageOutputOptions()) return false; + if (hasImageOutputOptions()) { + if (!getImageOutputOptions().equals(other.getImageOutputOptions())) return false; + } if (hasAspectRatio() != other.hasAspectRatio()) return false; if (hasAspectRatio()) { if (!getAspectRatio().equals(other.getAspectRatio())) return false; } + if (hasPersonGeneration() != other.hasPersonGeneration()) return false; + if (hasPersonGeneration()) { + if (personGeneration_ != other.personGeneration_) return false; + } + if (hasImageSize() != other.hasImageSize()) return false; + if (hasImageSize()) { + if (!getImageSize().equals(other.getImageSize())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -224,10 +1484,22 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasImageOutputOptions()) { + hash = (37 * hash) + IMAGE_OUTPUT_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getImageOutputOptions().hashCode(); + } if (hasAspectRatio()) { hash = (37 * hash) + ASPECT_RATIO_FIELD_NUMBER; hash = (53 * hash) + getAspectRatio().hashCode(); } + if (hasPersonGeneration()) { + hash = (37 * hash) + PERSON_GENERATION_FIELD_NUMBER; + hash = (53 * hash) + personGeneration_; + } + if (hasImageSize()) { + hash = (37 * hash) + IMAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getImageSize().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -358,17 +1630,33 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.aiplatform.v1.ImageConfig.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetImageOutputOptionsFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; + imageOutputOptions_ = null; + if (imageOutputOptionsBuilder_ != null) { + imageOutputOptionsBuilder_.dispose(); + imageOutputOptionsBuilder_ = null; + } aspectRatio_ = ""; + personGeneration_ = 0; + imageSize_ = ""; return this; } @@ -407,9 +1695,24 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.ImageConfig result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.aspectRatio_ = aspectRatio_; + result.imageOutputOptions_ = + imageOutputOptionsBuilder_ == null + ? imageOutputOptions_ + : imageOutputOptionsBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.aspectRatio_ = aspectRatio_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.personGeneration_ = personGeneration_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.imageSize_ = imageSize_; + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -421,65 +1724,314 @@ public Builder mergeFrom(com.google.protobuf.Message other) { super.mergeFrom(other); return this; } - } - - public Builder mergeFrom(com.google.cloud.aiplatform.v1.ImageConfig other) { - if (other == com.google.cloud.aiplatform.v1.ImageConfig.getDefaultInstance()) return this; - if (other.hasAspectRatio()) { - aspectRatio_ = other.aspectRatio_; + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ImageConfig other) { + if (other == com.google.cloud.aiplatform.v1.ImageConfig.getDefaultInstance()) return this; + if (other.hasImageOutputOptions()) { + mergeImageOutputOptions(other.getImageOutputOptions()); + } + if (other.hasAspectRatio()) { + aspectRatio_ = other.aspectRatio_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasPersonGeneration()) { + setPersonGenerationValue(other.getPersonGenerationValue()); + } + if (other.hasImageSize()) { + imageSize_ = other.imageSize_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetImageOutputOptionsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + aspectRatio_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + personGeneration_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + imageSize_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions imageOutputOptions_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions, + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.Builder, + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptionsOrBuilder> + imageOutputOptionsBuilder_; + + /** + * + * + *
    +     * Optional. The image output format for generated images.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the imageOutputOptions field is set. + */ + public boolean hasImageOutputOptions() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Optional. The image output format for generated images.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The imageOutputOptions. + */ + public com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions getImageOutputOptions() { + if (imageOutputOptionsBuilder_ == null) { + return imageOutputOptions_ == null + ? com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.getDefaultInstance() + : imageOutputOptions_; + } else { + return imageOutputOptionsBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. The image output format for generated images.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setImageOutputOptions( + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions value) { + if (imageOutputOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + imageOutputOptions_ = value; + } else { + imageOutputOptionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The image output format for generated images.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setImageOutputOptions( + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.Builder builderForValue) { + if (imageOutputOptionsBuilder_ == null) { + imageOutputOptions_ = builderForValue.build(); + } else { + imageOutputOptionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The image output format for generated images.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeImageOutputOptions( + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions value) { + if (imageOutputOptionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && imageOutputOptions_ != null + && imageOutputOptions_ + != com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions + .getDefaultInstance()) { + getImageOutputOptionsBuilder().mergeFrom(value); + } else { + imageOutputOptions_ = value; + } + } else { + imageOutputOptionsBuilder_.mergeFrom(value); + } + if (imageOutputOptions_ != null) { bitField0_ |= 0x00000001; onChanged(); } - this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + /** + * + * + *
    +     * Optional. The image output format for generated images.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearImageOutputOptions() { + bitField0_ = (bitField0_ & ~0x00000001); + imageOutputOptions_ = null; + if (imageOutputOptionsBuilder_ != null) { + imageOutputOptionsBuilder_.dispose(); + imageOutputOptionsBuilder_ = null; + } onChanged(); return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
    +     * Optional. The image output format for generated images.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.Builder + getImageOutputOptionsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetImageOutputOptionsFieldBuilder().getBuilder(); } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + /** + * + * + *
    +     * Optional. The image output format for generated images.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptionsOrBuilder + getImageOutputOptionsOrBuilder() { + if (imageOutputOptionsBuilder_ != null) { + return imageOutputOptionsBuilder_.getMessageOrBuilder(); + } else { + return imageOutputOptions_ == null + ? com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.getDefaultInstance() + : imageOutputOptions_; } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: - { - aspectRatio_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; } - private int bitField0_; + /** + * + * + *
    +     * Optional. The image output format for generated images.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions, + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.Builder, + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptionsOrBuilder> + internalGetImageOutputOptionsFieldBuilder() { + if (imageOutputOptionsBuilder_ == null) { + imageOutputOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions, + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.Builder, + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptionsOrBuilder>( + getImageOutputOptions(), getParentForChildren(), isClean()); + imageOutputOptions_ = null; + } + return imageOutputOptionsBuilder_; + } private java.lang.Object aspectRatio_ = ""; @@ -503,7 +2055,7 @@ public Builder mergeFrom( * @return Whether the aspectRatio field is set. */ public boolean hasAspectRatio() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** @@ -593,7 +2145,7 @@ public Builder setAspectRatio(java.lang.String value) { throw new NullPointerException(); } aspectRatio_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -619,7 +2171,7 @@ public Builder setAspectRatio(java.lang.String value) { */ public Builder clearAspectRatio() { aspectRatio_ = getDefaultInstance().getAspectRatio(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -650,7 +2202,265 @@ public Builder setAspectRatioBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); aspectRatio_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int personGeneration_ = 0; + + /** + * + * + *
    +     * Optional. Controls whether the model can generate people.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the personGeneration field is set. + */ + @java.lang.Override + public boolean hasPersonGeneration() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Optional. Controls whether the model can generate people.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for personGeneration. + */ + @java.lang.Override + public int getPersonGenerationValue() { + return personGeneration_; + } + + /** + * + * + *
    +     * Optional. Controls whether the model can generate people.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for personGeneration to set. + * @return This builder for chaining. + */ + public Builder setPersonGenerationValue(int value) { + personGeneration_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Controls whether the model can generate people.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The personGeneration. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration getPersonGeneration() { + com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration result = + com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration.forNumber(personGeneration_); + return result == null + ? com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Optional. Controls whether the model can generate people.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The personGeneration to set. + * @return This builder for chaining. + */ + public Builder setPersonGeneration( + com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + personGeneration_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Controls whether the model can generate people.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearPersonGeneration() { + bitField0_ = (bitField0_ & ~0x00000004); + personGeneration_ = 0; + onChanged(); + return this; + } + + private java.lang.Object imageSize_ = ""; + + /** + * + * + *
    +     * Optional. Specifies the size of generated images. Supported values are
    +     * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
    +     * 
    + * + * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the imageSize field is set. + */ + public boolean hasImageSize() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +     * Optional. Specifies the size of generated images. Supported values are
    +     * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
    +     * 
    + * + * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The imageSize. + */ + public java.lang.String getImageSize() { + java.lang.Object ref = imageSize_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageSize_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. Specifies the size of generated images. Supported values are
    +     * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
    +     * 
    + * + * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for imageSize. + */ + public com.google.protobuf.ByteString getImageSizeBytes() { + java.lang.Object ref = imageSize_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageSize_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. Specifies the size of generated images. Supported values are
    +     * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
    +     * 
    + * + * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The imageSize to set. + * @return This builder for chaining. + */ + public Builder setImageSize(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + imageSize_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Specifies the size of generated images. Supported values are
    +     * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
    +     * 
    + * + * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearImageSize() { + imageSize_ = getDefaultInstance().getImageSize(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Specifies the size of generated images. Supported values are
    +     * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
    +     * 
    + * + * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for imageSize to set. + * @return This builder for chaining. + */ + public Builder setImageSizeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + imageSize_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImageConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImageConfigOrBuilder.java index eb4736457b23..6e1689404161 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImageConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImageConfigOrBuilder.java @@ -26,6 +26,50 @@ public interface ImageConfigOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ImageConfig) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
    +   * Optional. The image output format for generated images.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the imageOutputOptions field is set. + */ + boolean hasImageOutputOptions(); + + /** + * + * + *
    +   * Optional. The image output format for generated images.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The imageOutputOptions. + */ + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions getImageOutputOptions(); + + /** + * + * + *
    +   * Optional. The image output format for generated images.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptionsOrBuilder + getImageOutputOptionsOrBuilder(); + /** * * @@ -88,4 +132,91 @@ public interface ImageConfigOrBuilder * @return The bytes for aspectRatio. */ com.google.protobuf.ByteString getAspectRatioBytes(); + + /** + * + * + *
    +   * Optional. Controls whether the model can generate people.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the personGeneration field is set. + */ + boolean hasPersonGeneration(); + + /** + * + * + *
    +   * Optional. Controls whether the model can generate people.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for personGeneration. + */ + int getPersonGenerationValue(); + + /** + * + * + *
    +   * Optional. Controls whether the model can generate people.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The personGeneration. + */ + com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration getPersonGeneration(); + + /** + * + * + *
    +   * Optional. Specifies the size of generated images. Supported values are
    +   * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
    +   * 
    + * + * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the imageSize field is set. + */ + boolean hasImageSize(); + + /** + * + * + *
    +   * Optional. Specifies the size of generated images. Supported values are
    +   * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
    +   * 
    + * + * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The imageSize. + */ + java.lang.String getImageSize(); + + /** + * + * + *
    +   * Optional. Specifies the size of generated images. Supported values are
    +   * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
    +   * 
    + * + * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for imageSize. + */ + com.google.protobuf.ByteString getImageSizeBytes(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IoProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IoProto.java index ae953cea8947..46595e7be533 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IoProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IoProto.java @@ -64,6 +64,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_BigQueryDestination_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_BigQueryDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_VertexMultimodalDatasetSource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_VertexMultimodalDatasetSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_VertexMultimodalDatasetDestination_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_VertexMultimodalDatasetDestination_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_CsvDestination_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -128,8 +136,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + "#google/cloud/aiplatform/v1/io.proto\022\032g" + "oogle.cloud.aiplatform.v1\032\037google/api/fi" - + "eld_behavior.proto\032)google/cloud/aiplatf" - + "orm/v1/api_auth.proto\032\037google/protobuf/timestamp.proto\"L\n\n" + + "eld_behavior.proto\032\031google/api/resource." + + "proto\032)google/cloud/aiplatform/v1/api_au" + + "th.proto\032\037google/protobuf/timestamp.proto\"L\n\n" + "AvroSource\022>\n\n" + "gcs_source\030\001 \001(\0132%.google.cloud.aiplatform.v1.GcsSourceB\003\340A\002\"K\n" + "\tCsvSource\022>\n\n" @@ -142,21 +151,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016BigQuerySource\022\026\n" + "\tinput_uri\030\001 \001(\tB\003\340A\002\".\n" + "\023BigQueryDestination\022\027\n\n" - + "output_uri\030\001 \001(\tB\003\340A\002\"Z\n" + + "output_uri\030\001 \001(\tB\003\340A\002\"`\n" + + "\035VertexMultimodalDatasetSource\022?\n" + + "\014dataset_name\030\001 \001(\tB)\340A\002\372A#\n" + + "!aiplatform.googleapis.com/Dataset\"\223\001\n" + + "\"VertexMultimodalDatasetDestination\022R\n" + + "\024bigquery_destination\030\001" + + " \001(\0132/.google.cloud.aiplatform.v1.BigQueryDestinationB\003\340A\001\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\001\"Z\n" + "\016CsvDestination\022H\n" + "\017gcs_destination\030\001" + " \001(\0132*.google.cloud.aiplatform.v1.GcsDestinationB\003\340A\002\"_\n" + "\023TFRecordDestination\022H\n" - + "\017gcs_destination\030\001 \001(" - + "\0132*.google.cloud.aiplatform.v1.GcsDestinationB\003\340A\002\"7\n" - + "\034ContainerRegistryDestination\022\027\n\n" + + "\017gcs_destination\030\001 \001(\0132*.g" + + "oogle.cloud.aiplatform.v1.GcsDestinationB\003\340A\002\"7\n" + + "\034ContainerRegistryDestination\022\027\n" + + "\n" + "output_uri\030\001 \001(\tB\003\340A\002\"\325\002\n" + "\021GoogleDriveSource\022S\n" - + "\014resource_ids\030\001 \003(\01328.google" - + ".cloud.aiplatform.v1.GoogleDriveSource.ResourceIdB\003\340A\002\032\352\001\n\n" + + "\014resource_ids\030\001 \003(\01328.google.clou" + + "d.aiplatform.v1.GoogleDriveSource.ResourceIdB\003\340A\002\032\352\001\n\n" + "ResourceId\022a\n\r" - + "resource_type\030\001 \001(\0162E.google.cloud.aiplatform.v" - + "1.GoogleDriveSource.ResourceId.ResourceTypeB\003\340A\002\022\030\n" + + "resource_type\030\001 \001(\0162E.google.cloud.aiplatform.v1.Goo" + + "gleDriveSource.ResourceId.ResourceTypeB\003\340A\002\022\030\n" + "\013resource_id\030\002 \001(\tB\003\340A\002\"_\n" + "\014ResourceType\022\035\n" + "\031RESOURCE_TYPE_UNSPECIFIED\020\000\022\026\n" @@ -164,16 +181,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024RESOURCE_TYPE_FOLDER\020\002\"\024\n" + "\022DirectUploadSource\"\251\003\n" + "\013SlackSource\022L\n" - + "\010channels\030\001 \003(\01325.google.clo" - + "ud.aiplatform.v1.SlackSource.SlackChannelsB\003\340A\002\032\313\002\n\r" + + "\010channels\030\001 \003(\01325.google.cloud.ai" + + "platform.v1.SlackSource.SlackChannelsB\003\340A\002\032\313\002\n\r" + "SlackChannels\022Y\n" - + "\010channels\030\001 " - + "\003(\0132B.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannelB\003\340A\002\022M\n" + + "\010channels\030\001 \003(\0132B" + + ".google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannelB\003\340A\002\022M\n" + "\016api_key_config\030\003" + " \001(\01320.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfigB\003\340A\002\032\217\001\n" + "\014SlackChannel\022\027\n\n" - + "channel_id\030\001 \001(\tB\003\340A\002\0223\n" - + "\n" + + "channel_id\030\001 \001(\tB\003\340A\002\0223\n\n" + "start_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\0221\n" + "\010end_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001\"\221\002\n\n" @@ -185,11 +201,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016custom_queries\030\004 \003(\t\022\022\n" + "\005email\030\005 \001(\tB\003\340A\002\022\027\n\n" + "server_uri\030\006 \001(\tB\003\340A\002\022M\n" - + "\016api_key_config\030\007 \001" - + "(\01320.google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfigB\003\340A\002\"\265\003\n" + + "\016api_key_config\030\007 \001(\01320." + + "google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfigB\003\340A\002\"\265\003\n" + "\021SharePointSources\022[\n" - + "\023share_point_sources\030\001 \003(\0132>.google.cl" - + "oud.aiplatform.v1.SharePointSources.SharePointSource\032\302\002\n" + + "\023share_point_sources\030\001 \003(\0132>.google.cloud.a" + + "iplatform.v1.SharePointSources.SharePointSource\032\302\002\n" + "\020SharePointSource\022 \n" + "\026sharepoint_folder_path\030\005 \001(\tH\000\022\036\n" + "\024sharepoint_folder_id\030\006 \001(\tH\000\022\024\n\n" @@ -203,16 +219,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007file_id\030\t \001(\tB\003\340A\003B\017\n\r" + "folder_sourceB\016\n" + "\014drive_sourceB\305\001\n" - + "\036com.google.cloud.aiplatform.v1B\007IoProtoP\001Z>cloud.google.co" - + "m/go/aiplatform/apiv1/aiplatformpb;aipla" - + "tformpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032G" - + "oogle\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3" + + "\036com.google.cloud.aiplatform.v1B\007IoProtoP\001Z>cloud.google.com/go/" + + "aiplatform/apiv1/aiplatformpb;aiplatform" + + "pb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Google" + + "\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), com.google.cloud.aiplatform.v1.ApiAuthProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); @@ -264,8 +281,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "OutputUri", }); - internal_static_google_cloud_aiplatform_v1_CsvDestination_descriptor = + internal_static_google_cloud_aiplatform_v1_VertexMultimodalDatasetSource_descriptor = getDescriptor().getMessageType(6); + internal_static_google_cloud_aiplatform_v1_VertexMultimodalDatasetSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_VertexMultimodalDatasetSource_descriptor, + new java.lang.String[] { + "DatasetName", + }); + internal_static_google_cloud_aiplatform_v1_VertexMultimodalDatasetDestination_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_aiplatform_v1_VertexMultimodalDatasetDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_VertexMultimodalDatasetDestination_descriptor, + new java.lang.String[] { + "BigqueryDestination", "DisplayName", + }); + internal_static_google_cloud_aiplatform_v1_CsvDestination_descriptor = + getDescriptor().getMessageType(8); internal_static_google_cloud_aiplatform_v1_CsvDestination_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_CsvDestination_descriptor, @@ -273,7 +306,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GcsDestination", }); internal_static_google_cloud_aiplatform_v1_TFRecordDestination_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(9); internal_static_google_cloud_aiplatform_v1_TFRecordDestination_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_TFRecordDestination_descriptor, @@ -281,7 +314,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GcsDestination", }); internal_static_google_cloud_aiplatform_v1_ContainerRegistryDestination_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(10); internal_static_google_cloud_aiplatform_v1_ContainerRegistryDestination_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ContainerRegistryDestination_descriptor, @@ -289,7 +322,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OutputUri", }); internal_static_google_cloud_aiplatform_v1_GoogleDriveSource_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(11); internal_static_google_cloud_aiplatform_v1_GoogleDriveSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_GoogleDriveSource_descriptor, @@ -305,13 +338,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ResourceType", "ResourceId", }); internal_static_google_cloud_aiplatform_v1_DirectUploadSource_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(12); internal_static_google_cloud_aiplatform_v1_DirectUploadSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_DirectUploadSource_descriptor, new java.lang.String[] {}); internal_static_google_cloud_aiplatform_v1_SlackSource_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(13); internal_static_google_cloud_aiplatform_v1_SlackSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_SlackSource_descriptor, @@ -336,7 +369,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ChannelId", "StartTime", "EndTime", }); internal_static_google_cloud_aiplatform_v1_JiraSource_descriptor = - getDescriptor().getMessageType(12); + getDescriptor().getMessageType(14); internal_static_google_cloud_aiplatform_v1_JiraSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_JiraSource_descriptor, @@ -352,7 +385,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Projects", "CustomQueries", "Email", "ServerUri", "ApiKeyConfig", }); internal_static_google_cloud_aiplatform_v1_SharePointSources_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(15); internal_static_google_cloud_aiplatform_v1_SharePointSources_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_SharePointSources_descriptor, @@ -379,11 +412,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); com.google.cloud.aiplatform.v1.ApiAuthProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Part.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Part.java index 006606faeffb..013ab12cac35 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Part.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Part.java @@ -76,6 +76,948 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.aiplatform.v1.Part.Builder.class); } + public interface MediaResolutionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.Part.MediaResolution) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * The tokenization quality used for given media.
    +     * 
    + * + * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1; + * + * @return Whether the level field is set. + */ + boolean hasLevel(); + + /** + * + * + *
    +     * The tokenization quality used for given media.
    +     * 
    + * + * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1; + * + * @return The enum numeric value on the wire for level. + */ + int getLevelValue(); + + /** + * + * + *
    +     * The tokenization quality used for given media.
    +     * 
    + * + * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1; + * + * @return The level. + */ + com.google.cloud.aiplatform.v1.Part.MediaResolution.Level getLevel(); + + com.google.cloud.aiplatform.v1.Part.MediaResolution.ValueCase getValueCase(); + } + + /** + * + * + *
    +   * per part media resolution.
    +   * Media resolution for the input media.
    +   * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1.Part.MediaResolution} + */ + public static final class MediaResolution extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.Part.MediaResolution) + MediaResolutionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MediaResolution"); + } + + // Use MediaResolution.newBuilder() to construct. + private MediaResolution(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MediaResolution() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_Part_MediaResolution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_Part_MediaResolution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.Part.MediaResolution.class, + com.google.cloud.aiplatform.v1.Part.MediaResolution.Builder.class); + } + + /** + * + * + *
    +     * The media resolution level.
    +     * 
    + * + * Protobuf enum {@code google.cloud.aiplatform.v1.Part.MediaResolution.Level} + */ + public enum Level implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +       * Media resolution has not been set.
    +       * 
    + * + * MEDIA_RESOLUTION_UNSPECIFIED = 0; + */ + MEDIA_RESOLUTION_UNSPECIFIED(0), + /** + * + * + *
    +       * Media resolution set to low.
    +       * 
    + * + * MEDIA_RESOLUTION_LOW = 1; + */ + MEDIA_RESOLUTION_LOW(1), + /** + * + * + *
    +       * Media resolution set to medium.
    +       * 
    + * + * MEDIA_RESOLUTION_MEDIUM = 2; + */ + MEDIA_RESOLUTION_MEDIUM(2), + /** + * + * + *
    +       * Media resolution set to high.
    +       * 
    + * + * MEDIA_RESOLUTION_HIGH = 3; + */ + MEDIA_RESOLUTION_HIGH(3), + /** + * + * + *
    +       * Media resolution set to ultra high. This is for image only.
    +       * 
    + * + * MEDIA_RESOLUTION_ULTRA_HIGH = 4; + */ + MEDIA_RESOLUTION_ULTRA_HIGH(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Level"); + } + + /** + * + * + *
    +       * Media resolution has not been set.
    +       * 
    + * + * MEDIA_RESOLUTION_UNSPECIFIED = 0; + */ + public static final int MEDIA_RESOLUTION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +       * Media resolution set to low.
    +       * 
    + * + * MEDIA_RESOLUTION_LOW = 1; + */ + public static final int MEDIA_RESOLUTION_LOW_VALUE = 1; + + /** + * + * + *
    +       * Media resolution set to medium.
    +       * 
    + * + * MEDIA_RESOLUTION_MEDIUM = 2; + */ + public static final int MEDIA_RESOLUTION_MEDIUM_VALUE = 2; + + /** + * + * + *
    +       * Media resolution set to high.
    +       * 
    + * + * MEDIA_RESOLUTION_HIGH = 3; + */ + public static final int MEDIA_RESOLUTION_HIGH_VALUE = 3; + + /** + * + * + *
    +       * Media resolution set to ultra high. This is for image only.
    +       * 
    + * + * MEDIA_RESOLUTION_ULTRA_HIGH = 4; + */ + public static final int MEDIA_RESOLUTION_ULTRA_HIGH_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Level valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Level forNumber(int value) { + switch (value) { + case 0: + return MEDIA_RESOLUTION_UNSPECIFIED; + case 1: + return MEDIA_RESOLUTION_LOW; + case 2: + return MEDIA_RESOLUTION_MEDIUM; + case 3: + return MEDIA_RESOLUTION_HIGH; + case 4: + return MEDIA_RESOLUTION_ULTRA_HIGH; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Level findValueByNumber(int number) { + return Level.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.Part.MediaResolution.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Level[] VALUES = values(); + + public static Level valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Level(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1.Part.MediaResolution.Level) + } + + private int valueCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object value_; + + public enum ValueCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + LEVEL(1), + VALUE_NOT_SET(0); + private final int value; + + private ValueCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 1: + return LEVEL; + case 0: + return VALUE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public static final int LEVEL_FIELD_NUMBER = 1; + + /** + * + * + *
    +     * The tokenization quality used for given media.
    +     * 
    + * + * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1; + * + * @return Whether the level field is set. + */ + public boolean hasLevel() { + return valueCase_ == 1; + } + + /** + * + * + *
    +     * The tokenization quality used for given media.
    +     * 
    + * + * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1; + * + * @return The enum numeric value on the wire for level. + */ + public int getLevelValue() { + if (valueCase_ == 1) { + return (java.lang.Integer) value_; + } + return 0; + } + + /** + * + * + *
    +     * The tokenization quality used for given media.
    +     * 
    + * + * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1; + * + * @return The level. + */ + public com.google.cloud.aiplatform.v1.Part.MediaResolution.Level getLevel() { + if (valueCase_ == 1) { + com.google.cloud.aiplatform.v1.Part.MediaResolution.Level result = + com.google.cloud.aiplatform.v1.Part.MediaResolution.Level.forNumber( + (java.lang.Integer) value_); + return result == null + ? com.google.cloud.aiplatform.v1.Part.MediaResolution.Level.UNRECOGNIZED + : result; + } + return com.google.cloud.aiplatform.v1.Part.MediaResolution.Level.MEDIA_RESOLUTION_UNSPECIFIED; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (valueCase_ == 1) { + output.writeEnum(1, ((java.lang.Integer) value_)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (valueCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(1, ((java.lang.Integer) value_)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.Part.MediaResolution)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.Part.MediaResolution other = + (com.google.cloud.aiplatform.v1.Part.MediaResolution) obj; + + if (!getValueCase().equals(other.getValueCase())) return false; + switch (valueCase_) { + case 1: + if (getLevelValue() != other.getLevelValue()) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (valueCase_) { + case 1: + hash = (37 * hash) + LEVEL_FIELD_NUMBER; + hash = (53 * hash) + getLevelValue(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.Part.MediaResolution prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +     * per part media resolution.
    +     * Media resolution for the input media.
    +     * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1.Part.MediaResolution} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.Part.MediaResolution) + com.google.cloud.aiplatform.v1.Part.MediaResolutionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_Part_MediaResolution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_Part_MediaResolution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.Part.MediaResolution.class, + com.google.cloud.aiplatform.v1.Part.MediaResolution.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.Part.MediaResolution.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_Part_MediaResolution_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Part.MediaResolution getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.Part.MediaResolution.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Part.MediaResolution build() { + com.google.cloud.aiplatform.v1.Part.MediaResolution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Part.MediaResolution buildPartial() { + com.google.cloud.aiplatform.v1.Part.MediaResolution result = + new com.google.cloud.aiplatform.v1.Part.MediaResolution(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.Part.MediaResolution result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.Part.MediaResolution result) { + result.valueCase_ = valueCase_; + result.value_ = this.value_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.Part.MediaResolution) { + return mergeFrom((com.google.cloud.aiplatform.v1.Part.MediaResolution) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.Part.MediaResolution other) { + if (other == com.google.cloud.aiplatform.v1.Part.MediaResolution.getDefaultInstance()) + return this; + switch (other.getValueCase()) { + case LEVEL: + { + setLevelValue(other.getLevelValue()); + break; + } + case VALUE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + valueCase_ = 1; + value_ = rawValue; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int valueCase_ = 0; + private java.lang.Object value_; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
    +       * The tokenization quality used for given media.
    +       * 
    + * + * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1; + * + * @return Whether the level field is set. + */ + @java.lang.Override + public boolean hasLevel() { + return valueCase_ == 1; + } + + /** + * + * + *
    +       * The tokenization quality used for given media.
    +       * 
    + * + * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1; + * + * @return The enum numeric value on the wire for level. + */ + @java.lang.Override + public int getLevelValue() { + if (valueCase_ == 1) { + return ((java.lang.Integer) value_).intValue(); + } + return 0; + } + + /** + * + * + *
    +       * The tokenization quality used for given media.
    +       * 
    + * + * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1; + * + * @param value The enum numeric value on the wire for level to set. + * @return This builder for chaining. + */ + public Builder setLevelValue(int value) { + valueCase_ = 1; + value_ = value; + onChanged(); + return this; + } + + /** + * + * + *
    +       * The tokenization quality used for given media.
    +       * 
    + * + * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1; + * + * @return The level. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Part.MediaResolution.Level getLevel() { + if (valueCase_ == 1) { + com.google.cloud.aiplatform.v1.Part.MediaResolution.Level result = + com.google.cloud.aiplatform.v1.Part.MediaResolution.Level.forNumber( + (java.lang.Integer) value_); + return result == null + ? com.google.cloud.aiplatform.v1.Part.MediaResolution.Level.UNRECOGNIZED + : result; + } + return com.google.cloud.aiplatform.v1.Part.MediaResolution.Level + .MEDIA_RESOLUTION_UNSPECIFIED; + } + + /** + * + * + *
    +       * The tokenization quality used for given media.
    +       * 
    + * + * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1; + * + * @param value The level to set. + * @return This builder for chaining. + */ + public Builder setLevel(com.google.cloud.aiplatform.v1.Part.MediaResolution.Level value) { + if (value == null) { + throw new NullPointerException(); + } + valueCase_ = 1; + value_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +       * The tokenization quality used for given media.
    +       * 
    + * + * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1; + * + * @return This builder for chaining. + */ + public Builder clearLevel() { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.Part.MediaResolution) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.Part.MediaResolution) + private static final com.google.cloud.aiplatform.v1.Part.MediaResolution DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.Part.MediaResolution(); + } + + public static com.google.cloud.aiplatform.v1.Part.MediaResolution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MediaResolution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Part.MediaResolution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; private int dataCase_ = 0; @SuppressWarnings("serial") @@ -739,6 +1681,63 @@ public com.google.cloud.aiplatform.v1.VideoMetadataOrBuilder getVideoMetadataOrB return com.google.cloud.aiplatform.v1.VideoMetadata.getDefaultInstance(); } + public static final int MEDIA_RESOLUTION_FIELD_NUMBER = 12; + private com.google.cloud.aiplatform.v1.Part.MediaResolution mediaResolution_; + + /** + * + * + *
    +   * per part media resolution.
    +   * Media resolution for the input media.
    +   * 
    + * + * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12; + * + * @return Whether the mediaResolution field is set. + */ + @java.lang.Override + public boolean hasMediaResolution() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * per part media resolution.
    +   * Media resolution for the input media.
    +   * 
    + * + * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12; + * + * @return The mediaResolution. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Part.MediaResolution getMediaResolution() { + return mediaResolution_ == null + ? com.google.cloud.aiplatform.v1.Part.MediaResolution.getDefaultInstance() + : mediaResolution_; + } + + /** + * + * + *
    +   * per part media resolution.
    +   * Media resolution for the input media.
    +   * 
    + * + * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Part.MediaResolutionOrBuilder + getMediaResolutionOrBuilder() { + return mediaResolution_ == null + ? com.google.cloud.aiplatform.v1.Part.MediaResolution.getDefaultInstance() + : mediaResolution_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -783,6 +1782,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!thoughtSignature_.isEmpty()) { output.writeBytes(11, thoughtSignature_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(12, getMediaResolution()); + } getUnknownFields().writeTo(output); } @@ -836,6 +1838,9 @@ public int getSerializedSize() { if (!thoughtSignature_.isEmpty()) { size += com.google.protobuf.CodedOutputStream.computeBytesSize(11, thoughtSignature_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getMediaResolution()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -853,6 +1858,10 @@ public boolean equals(final java.lang.Object obj) { if (getThought() != other.getThought()) return false; if (!getThoughtSignature().equals(other.getThoughtSignature())) return false; + if (hasMediaResolution() != other.hasMediaResolution()) return false; + if (hasMediaResolution()) { + if (!getMediaResolution().equals(other.getMediaResolution())) return false; + } if (!getDataCase().equals(other.getDataCase())) return false; switch (dataCase_) { case 1: @@ -902,6 +1911,10 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getThought()); hash = (37 * hash) + THOUGHT_SIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getThoughtSignature().hashCode(); + if (hasMediaResolution()) { + hash = (37 * hash) + MEDIA_RESOLUTION_FIELD_NUMBER; + hash = (53 * hash) + getMediaResolution().hashCode(); + } switch (dataCase_) { case 1: hash = (37 * hash) + TEXT_FIELD_NUMBER; @@ -1077,10 +2090,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.aiplatform.v1.Part.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMediaResolutionFieldBuilder(); + } } @java.lang.Override @@ -1110,6 +2132,11 @@ public Builder clear() { if (videoMetadataBuilder_ != null) { videoMetadataBuilder_.clear(); } + mediaResolution_ = null; + if (mediaResolutionBuilder_ != null) { + mediaResolutionBuilder_.dispose(); + mediaResolutionBuilder_ = null; + } dataCase_ = 0; data_ = null; metadataCase_ = 0; @@ -1156,6 +2183,13 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.Part result) { if (((from_bitField0_ & 0x00000100) != 0)) { result.thoughtSignature_ = thoughtSignature_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000400) != 0)) { + result.mediaResolution_ = + mediaResolutionBuilder_ == null ? mediaResolution_ : mediaResolutionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.cloud.aiplatform.v1.Part result) { @@ -1204,6 +2238,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Part other) { if (!other.getThoughtSignature().isEmpty()) { setThoughtSignature(other.getThoughtSignature()); } + if (other.hasMediaResolution()) { + mergeMediaResolution(other.getMediaResolution()); + } switch (other.getDataCase()) { case TEXT: { @@ -1352,6 +2389,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000100; break; } // case 90 + case 98: + { + input.readMessage( + internalGetMediaResolutionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 98 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3358,6 +4402,212 @@ public com.google.cloud.aiplatform.v1.VideoMetadataOrBuilder getVideoMetadataOrB return videoMetadataBuilder_; } + private com.google.cloud.aiplatform.v1.Part.MediaResolution mediaResolution_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.Part.MediaResolution, + com.google.cloud.aiplatform.v1.Part.MediaResolution.Builder, + com.google.cloud.aiplatform.v1.Part.MediaResolutionOrBuilder> + mediaResolutionBuilder_; + + /** + * + * + *
    +     * per part media resolution.
    +     * Media resolution for the input media.
    +     * 
    + * + * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12; + * + * @return Whether the mediaResolution field is set. + */ + public boolean hasMediaResolution() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
    +     * per part media resolution.
    +     * Media resolution for the input media.
    +     * 
    + * + * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12; + * + * @return The mediaResolution. + */ + public com.google.cloud.aiplatform.v1.Part.MediaResolution getMediaResolution() { + if (mediaResolutionBuilder_ == null) { + return mediaResolution_ == null + ? com.google.cloud.aiplatform.v1.Part.MediaResolution.getDefaultInstance() + : mediaResolution_; + } else { + return mediaResolutionBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * per part media resolution.
    +     * Media resolution for the input media.
    +     * 
    + * + * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12; + */ + public Builder setMediaResolution(com.google.cloud.aiplatform.v1.Part.MediaResolution value) { + if (mediaResolutionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mediaResolution_ = value; + } else { + mediaResolutionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
    +     * per part media resolution.
    +     * Media resolution for the input media.
    +     * 
    + * + * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12; + */ + public Builder setMediaResolution( + com.google.cloud.aiplatform.v1.Part.MediaResolution.Builder builderForValue) { + if (mediaResolutionBuilder_ == null) { + mediaResolution_ = builderForValue.build(); + } else { + mediaResolutionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
    +     * per part media resolution.
    +     * Media resolution for the input media.
    +     * 
    + * + * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12; + */ + public Builder mergeMediaResolution(com.google.cloud.aiplatform.v1.Part.MediaResolution value) { + if (mediaResolutionBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && mediaResolution_ != null + && mediaResolution_ + != com.google.cloud.aiplatform.v1.Part.MediaResolution.getDefaultInstance()) { + getMediaResolutionBuilder().mergeFrom(value); + } else { + mediaResolution_ = value; + } + } else { + mediaResolutionBuilder_.mergeFrom(value); + } + if (mediaResolution_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * per part media resolution.
    +     * Media resolution for the input media.
    +     * 
    + * + * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12; + */ + public Builder clearMediaResolution() { + bitField0_ = (bitField0_ & ~0x00000400); + mediaResolution_ = null; + if (mediaResolutionBuilder_ != null) { + mediaResolutionBuilder_.dispose(); + mediaResolutionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * per part media resolution.
    +     * Media resolution for the input media.
    +     * 
    + * + * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12; + */ + public com.google.cloud.aiplatform.v1.Part.MediaResolution.Builder getMediaResolutionBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return internalGetMediaResolutionFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * per part media resolution.
    +     * Media resolution for the input media.
    +     * 
    + * + * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12; + */ + public com.google.cloud.aiplatform.v1.Part.MediaResolutionOrBuilder + getMediaResolutionOrBuilder() { + if (mediaResolutionBuilder_ != null) { + return mediaResolutionBuilder_.getMessageOrBuilder(); + } else { + return mediaResolution_ == null + ? com.google.cloud.aiplatform.v1.Part.MediaResolution.getDefaultInstance() + : mediaResolution_; + } + } + + /** + * + * + *
    +     * per part media resolution.
    +     * Media resolution for the input media.
    +     * 
    + * + * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.Part.MediaResolution, + com.google.cloud.aiplatform.v1.Part.MediaResolution.Builder, + com.google.cloud.aiplatform.v1.Part.MediaResolutionOrBuilder> + internalGetMediaResolutionFieldBuilder() { + if (mediaResolutionBuilder_ == null) { + mediaResolutionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.Part.MediaResolution, + com.google.cloud.aiplatform.v1.Part.MediaResolution.Builder, + com.google.cloud.aiplatform.v1.Part.MediaResolutionOrBuilder>( + getMediaResolution(), getParentForChildren(), isClean()); + mediaResolution_ = null; + } + return mediaResolutionBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.Part) } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PartOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PartOrBuilder.java index b28fd4b633c0..39cf77b7d299 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PartOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PartOrBuilder.java @@ -411,6 +411,46 @@ public interface PartOrBuilder */ com.google.cloud.aiplatform.v1.VideoMetadataOrBuilder getVideoMetadataOrBuilder(); + /** + * + * + *
    +   * per part media resolution.
    +   * Media resolution for the input media.
    +   * 
    + * + * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12; + * + * @return Whether the mediaResolution field is set. + */ + boolean hasMediaResolution(); + + /** + * + * + *
    +   * per part media resolution.
    +   * Media resolution for the input media.
    +   * 
    + * + * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12; + * + * @return The mediaResolution. + */ + com.google.cloud.aiplatform.v1.Part.MediaResolution getMediaResolution(); + + /** + * + * + *
    +   * per part media resolution.
    +   * Media resolution for the input media.
    +   * 
    + * + * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12; + */ + com.google.cloud.aiplatform.v1.Part.MediaResolutionOrBuilder getMediaResolutionOrBuilder(); + com.google.cloud.aiplatform.v1.Part.DataCase getDataCase(); com.google.cloud.aiplatform.v1.Part.MetadataCase getMetadataCase(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Schedule.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Schedule.java index d555f4067001..08e93e15841c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Schedule.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Schedule.java @@ -2154,6 +2154,30 @@ public long getMaxConcurrentRunCount() { return maxConcurrentRunCount_; } + public static final int MAX_CONCURRENT_ACTIVE_RUN_COUNT_FIELD_NUMBER = 21; + private long maxConcurrentActiveRunCount_ = 0L; + + /** + * + * + *
    +   * Optional. Specifies the maximum number of active runs that can be executed
    +   * concurrently for this Schedule. This limits the number of runs that can be
    +   * in a non-terminal state at the same time.
    +   * Currently, this field is only supported for requests of type
    +   * CreatePipelineJobRequest.
    +   * 
    + * + * int64 max_concurrent_active_run_count = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maxConcurrentActiveRunCount. + */ + @java.lang.Override + public long getMaxConcurrentActiveRunCount() { + return maxConcurrentActiveRunCount_; + } + public static final int ALLOW_QUEUEING_FIELD_NUMBER = 12; private boolean allowQueueing_ = false; @@ -2337,6 +2361,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 20, (com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest) request_); } + if (maxConcurrentActiveRunCount_ != 0L) { + output.writeInt64(21, maxConcurrentActiveRunCount_); + } getUnknownFields().writeTo(output); } @@ -2409,6 +2436,10 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 20, (com.google.cloud.aiplatform.v1.CreateNotebookExecutionJobRequest) request_); } + if (maxConcurrentActiveRunCount_ != 0L) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size(21, maxConcurrentActiveRunCount_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2458,6 +2489,7 @@ public boolean equals(final java.lang.Object obj) { if (!getLastResumeTime().equals(other.getLastResumeTime())) return false; } if (getMaxConcurrentRunCount() != other.getMaxConcurrentRunCount()) return false; + if (getMaxConcurrentActiveRunCount() != other.getMaxConcurrentActiveRunCount()) return false; if (getAllowQueueing() != other.getAllowQueueing()) return false; if (getCatchUp() != other.getCatchUp()) return false; if (hasLastScheduledRunResponse() != other.hasLastScheduledRunResponse()) return false; @@ -2536,6 +2568,8 @@ public int hashCode() { } hash = (37 * hash) + MAX_CONCURRENT_RUN_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxConcurrentRunCount()); + hash = (37 * hash) + MAX_CONCURRENT_ACTIVE_RUN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxConcurrentActiveRunCount()); hash = (37 * hash) + ALLOW_QUEUEING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowQueueing()); hash = (37 * hash) + CATCH_UP_FIELD_NUMBER; @@ -2768,6 +2802,7 @@ public Builder clear() { lastResumeTimeBuilder_ = null; } maxConcurrentRunCount_ = 0L; + maxConcurrentActiveRunCount_ = 0L; allowQueueing_ = false; catchUp_ = false; lastScheduledRunResponse_ = null; @@ -2867,12 +2902,15 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.Schedule result) { result.maxConcurrentRunCount_ = maxConcurrentRunCount_; } if (((from_bitField0_ & 0x00010000) != 0)) { - result.allowQueueing_ = allowQueueing_; + result.maxConcurrentActiveRunCount_ = maxConcurrentActiveRunCount_; } if (((from_bitField0_ & 0x00020000) != 0)) { - result.catchUp_ = catchUp_; + result.allowQueueing_ = allowQueueing_; } if (((from_bitField0_ & 0x00040000) != 0)) { + result.catchUp_ = catchUp_; + } + if (((from_bitField0_ & 0x00080000) != 0)) { result.lastScheduledRunResponse_ = lastScheduledRunResponseBuilder_ == null ? lastScheduledRunResponse_ @@ -2950,6 +2988,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Schedule other) { if (other.getMaxConcurrentRunCount() != 0L) { setMaxConcurrentRunCount(other.getMaxConcurrentRunCount()); } + if (other.getMaxConcurrentActiveRunCount() != 0L) { + setMaxConcurrentActiveRunCount(other.getMaxConcurrentActiveRunCount()); + } if (other.getAllowQueueing() != false) { setAllowQueueing(other.getAllowQueueing()); } @@ -3089,13 +3130,13 @@ public Builder mergeFrom( case 96: { allowQueueing_ = input.readBool(); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 96 case 104: { catchUp_ = input.readBool(); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 104 case 114: @@ -3123,7 +3164,7 @@ public Builder mergeFrom( input.readMessage( internalGetLastScheduledRunResponseFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 146 case 154: @@ -3141,6 +3182,12 @@ public Builder mergeFrom( requestCase_ = 20; break; } // case 162 + case 168: + { + maxConcurrentActiveRunCount_ = input.readInt64(); + bitField0_ |= 0x00010000; + break; + } // case 168 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5946,6 +5993,77 @@ public Builder clearMaxConcurrentRunCount() { return this; } + private long maxConcurrentActiveRunCount_; + + /** + * + * + *
    +     * Optional. Specifies the maximum number of active runs that can be executed
    +     * concurrently for this Schedule. This limits the number of runs that can be
    +     * in a non-terminal state at the same time.
    +     * Currently, this field is only supported for requests of type
    +     * CreatePipelineJobRequest.
    +     * 
    + * + * int64 max_concurrent_active_run_count = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maxConcurrentActiveRunCount. + */ + @java.lang.Override + public long getMaxConcurrentActiveRunCount() { + return maxConcurrentActiveRunCount_; + } + + /** + * + * + *
    +     * Optional. Specifies the maximum number of active runs that can be executed
    +     * concurrently for this Schedule. This limits the number of runs that can be
    +     * in a non-terminal state at the same time.
    +     * Currently, this field is only supported for requests of type
    +     * CreatePipelineJobRequest.
    +     * 
    + * + * int64 max_concurrent_active_run_count = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The maxConcurrentActiveRunCount to set. + * @return This builder for chaining. + */ + public Builder setMaxConcurrentActiveRunCount(long value) { + + maxConcurrentActiveRunCount_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Specifies the maximum number of active runs that can be executed
    +     * concurrently for this Schedule. This limits the number of runs that can be
    +     * in a non-terminal state at the same time.
    +     * Currently, this field is only supported for requests of type
    +     * CreatePipelineJobRequest.
    +     * 
    + * + * int64 max_concurrent_active_run_count = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMaxConcurrentActiveRunCount() { + bitField0_ = (bitField0_ & ~0x00010000); + maxConcurrentActiveRunCount_ = 0L; + onChanged(); + return this; + } + private boolean allowQueueing_; /** @@ -5983,7 +6101,7 @@ public boolean getAllowQueueing() { public Builder setAllowQueueing(boolean value) { allowQueueing_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -6002,7 +6120,7 @@ public Builder setAllowQueueing(boolean value) { * @return This builder for chaining. */ public Builder clearAllowQueueing() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); allowQueueing_ = false; onChanged(); return this; @@ -6045,7 +6163,7 @@ public boolean getCatchUp() { public Builder setCatchUp(boolean value) { catchUp_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -6064,7 +6182,7 @@ public Builder setCatchUp(boolean value) { * @return This builder for chaining. */ public Builder clearCatchUp() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); catchUp_ = false; onChanged(); return this; @@ -6094,7 +6212,7 @@ public Builder clearCatchUp() { * @return Whether the lastScheduledRunResponse field is set. */ public boolean hasLastScheduledRunResponse() { - return ((bitField0_ & 0x00040000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** @@ -6147,7 +6265,7 @@ public Builder setLastScheduledRunResponse( } else { lastScheduledRunResponseBuilder_.setMessage(value); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -6173,7 +6291,7 @@ public Builder setLastScheduledRunResponse( } else { lastScheduledRunResponseBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -6195,7 +6313,7 @@ public Builder setLastScheduledRunResponse( public Builder mergeLastScheduledRunResponse( com.google.cloud.aiplatform.v1.Schedule.RunResponse value) { if (lastScheduledRunResponseBuilder_ == null) { - if (((bitField0_ & 0x00040000) != 0) + if (((bitField0_ & 0x00080000) != 0) && lastScheduledRunResponse_ != null && lastScheduledRunResponse_ != com.google.cloud.aiplatform.v1.Schedule.RunResponse.getDefaultInstance()) { @@ -6207,7 +6325,7 @@ public Builder mergeLastScheduledRunResponse( lastScheduledRunResponseBuilder_.mergeFrom(value); } if (lastScheduledRunResponse_ != null) { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); } return this; @@ -6228,7 +6346,7 @@ public Builder mergeLastScheduledRunResponse( * */ public Builder clearLastScheduledRunResponse() { - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); lastScheduledRunResponse_ = null; if (lastScheduledRunResponseBuilder_ != null) { lastScheduledRunResponseBuilder_.dispose(); @@ -6254,7 +6372,7 @@ public Builder clearLastScheduledRunResponse() { */ public com.google.cloud.aiplatform.v1.Schedule.RunResponse.Builder getLastScheduledRunResponseBuilder() { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return internalGetLastScheduledRunResponseFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ScheduleOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ScheduleOrBuilder.java index 25cd1aa5812a..6f41859b80b9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ScheduleOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ScheduleOrBuilder.java @@ -626,6 +626,24 @@ public interface ScheduleOrBuilder */ long getMaxConcurrentRunCount(); + /** + * + * + *
    +   * Optional. Specifies the maximum number of active runs that can be executed
    +   * concurrently for this Schedule. This limits the number of runs that can be
    +   * in a non-terminal state at the same time.
    +   * Currently, this field is only supported for requests of type
    +   * CreatePipelineJobRequest.
    +   * 
    + * + * int64 max_concurrent_active_run_count = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maxConcurrentActiveRunCount. + */ + long getMaxConcurrentActiveRunCount(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ScheduleProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ScheduleProto.java index 02ffa797ddb4..f0f5798733d3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ScheduleProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ScheduleProto.java @@ -57,50 +57,60 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n)google/cloud/aiplatform/v1/schedule.pr" + "\n" + + ")google/cloud/aiplatform/v1/schedule.pr" + "oto\022\032google.cloud.aiplatform.v1\032\037google/" + "api/field_behavior.proto\032\031google/api/res" - + "ource.proto\0321google/cloud/aiplatform/v1/" - + "notebook_service.proto\0321google/cloud/aip" - + "latform/v1/pipeline_service.proto\032\037googl" - + "e/protobuf/timestamp.proto\"\365\t\n\010Schedule\022" - + "\016\n\004cron\030\n \001(\tH\000\022[\n\033create_pipeline_job_r" - + "equest\030\016 \001(\01324.google.cloud.aiplatform.v" - + "1.CreatePipelineJobRequestH\001\022n\n%create_n" - + "otebook_execution_job_request\030\024 \001(\0132=.go" - + "ogle.cloud.aiplatform.v1.CreateNotebookE" - + "xecutionJobRequestH\001\022\021\n\004name\030\001 \001(\tB\003\340A\005\022" - + "\031\n\014display_name\030\002 \001(\tB\003\340A\002\0223\n\nstart_time" - + "\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022" - + "1\n\010end_time\030\004 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\001\022\032\n\rmax_run_count\030\020 \001(\003B\003\340A\001\022\036" - + "\n\021started_run_count\030\021 \001(\003B\003\340A\003\022>\n\005state\030" - + "\005 \001(\0162*.google.cloud.aiplatform.v1.Sched" - + "ule.StateB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\003\0224\n\013update_t" - + "ime\030\023 \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\003\0226\n\rnext_run_time\030\007 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\0228\n\017last_pause_time\030\010 " - + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0229\n\020" - + "last_resume_time\030\t \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\003\022%\n\030max_concurrent_run_co" - + "unt\030\013 \001(\003B\003\340A\002\022\033\n\016allow_queueing\030\014 \001(\010B\003" - + "\340A\001\022\025\n\010catch_up\030\r \001(\010B\003\340A\003\022Z\n\033last_sched" - + "uled_run_response\030\022 \001(\01320.google.cloud.a" - + "iplatform.v1.Schedule.RunResponseB\003\340A\003\032[" - + "\n\013RunResponse\0226\n\022scheduled_run_time\030\001 \001(" - + "\0132\032.google.protobuf.Timestamp\022\024\n\014run_res" - + "ponse\030\002 \001(\t\"E\n\005State\022\025\n\021STATE_UNSPECIFIE" - + "D\020\000\022\n\n\006ACTIVE\020\001\022\n\n\006PAUSED\020\002\022\r\n\tCOMPLETED" - + "\020\003:e\352Ab\n\"aiplatform.googleapis.com/Sched" - + "ule\022cloud.go" - + "ogle.com/go/aiplatform/apiv1/aiplatformp" - + "b;aiplatformpb\252\002\032Google.Cloud.AIPlatform" - + ".V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Googl" - + "e::Cloud::AIPlatform::V1b\006proto3" + + "ource.proto\0321google/cloud/aiplatform/v1/notebook_service.proto\0321google/cloud/aip" + + "latform/v1/pipeline_service.proto\032\037google/protobuf/timestamp.proto\"\243\n\n" + + "\010Schedule\022\016\n" + + "\004cron\030\n" + + " \001(\tH\000\022[\n" + + "\033create_pipeline_job_request\030\016" + + " \001(\01324.google.cloud.aiplatform.v1.CreatePipelineJobRequestH\001\022n\n" + + "%create_notebook_execution_job_request\030\024 \001(\0132=.go" + + "ogle.cloud.aiplatform.v1.CreateNotebookExecutionJobRequestH\001\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\005\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\002\0223\n\n" + + "start_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\0221\n" + + "\010end_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022\032\n\r" + + "max_run_count\030\020 \001(\003B\003\340A\001\022\036\n" + + "\021started_run_count\030\021 \001(\003B\003\340A\003\022>\n" + + "\005state\030\005" + + " \001(\0162*.google.cloud.aiplatform.v1.Schedule.StateB\003\340A\003\0224\n" + + "\013create_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\023" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0226\n\r" + + "next_run_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0228\n" + + "\017last_pause_time\030\010" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0229\n" + + "\020last_resume_time\030\t" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022%\n" + + "\030max_concurrent_run_count\030\013 \001(\003B\003\340A\002\022,\n" + + "\037max_concurrent_active_run_count\030\025 \001(\003B\003\340A\001\022\033\n" + + "\016allow_queueing\030\014 \001(\010B\003\340A\001\022\025\n" + + "\010catch_up\030\r" + + " \001(\010B\003\340A\003\022Z\n" + + "\033last_scheduled_run_response\030\022 \001(\01320.google.c" + + "loud.aiplatform.v1.Schedule.RunResponseB\003\340A\003\032[\n" + + "\013RunResponse\0226\n" + + "\022scheduled_run_time\030\001 \001(\0132\032.google.protobuf.Timestamp\022\024\n" + + "\014run_response\030\002 \001(\t\"E\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\n\n" + + "\006PAUSED\020\002\022\r\n" + + "\tCOMPLETED\020\003:e\352Ab\n" + + "\"aiplatform.googleapis.com" + + "/Schedule\022cloud.google.com/go/aiplatform/apiv1/aipla" + + "tformpb;aiplatformpb\252\002\032Google.Cloud.AIPl" + + "atform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002" + + "\035Google::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -134,6 +144,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LastPauseTime", "LastResumeTime", "MaxConcurrentRunCount", + "MaxConcurrentActiveRunCount", "AllowQueueing", "CatchUp", "LastScheduledRunResponse", diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequest.java index f81c6b40d389..8322f52ea1bf 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequest.java @@ -1217,7 +1217,7 @@ public com.google.protobuf.ByteString getDatasetBytes() { * * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=686 + * google/cloud/aiplatform/v1/dataset_service.proto;l=682 * @return The savedQuery. */ @java.lang.Override @@ -1248,7 +1248,7 @@ public java.lang.String getSavedQuery() { * * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=686 + * google/cloud/aiplatform/v1/dataset_service.proto;l=682 * @return The bytes for savedQuery. */ @java.lang.Override @@ -1418,7 +1418,7 @@ public com.google.protobuf.ByteString getDataItemFilterBytes() { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is deprecated. - * See google/cloud/aiplatform/v1/dataset_service.proto;l=717 + * See google/cloud/aiplatform/v1/dataset_service.proto;l=713 * @return The annotationsFilter. */ @java.lang.Override @@ -1447,7 +1447,7 @@ public java.lang.String getAnnotationsFilter() { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is deprecated. - * See google/cloud/aiplatform/v1/dataset_service.proto;l=717 + * See google/cloud/aiplatform/v1/dataset_service.proto;l=713 * @return The bytes for annotationsFilter. */ @java.lang.Override @@ -1657,7 +1657,7 @@ public int getPageSize() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=741 + * google/cloud/aiplatform/v1/dataset_service.proto;l=737 * @return The orderBy. */ @java.lang.Override @@ -1685,7 +1685,7 @@ public java.lang.String getOrderBy() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=741 + * google/cloud/aiplatform/v1/dataset_service.proto;l=737 * @return The bytes for orderBy. */ @java.lang.Override @@ -2987,7 +2987,7 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=686 + * google/cloud/aiplatform/v1/dataset_service.proto;l=682 * @return The savedQuery. */ @java.lang.Deprecated @@ -3017,7 +3017,7 @@ public java.lang.String getSavedQuery() { * * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=686 + * google/cloud/aiplatform/v1/dataset_service.proto;l=682 * @return The bytes for savedQuery. */ @java.lang.Deprecated @@ -3047,7 +3047,7 @@ public com.google.protobuf.ByteString getSavedQueryBytes() { * * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=686 + * google/cloud/aiplatform/v1/dataset_service.proto;l=682 * @param value The savedQuery to set. * @return This builder for chaining. */ @@ -3076,7 +3076,7 @@ public Builder setSavedQuery(java.lang.String value) { * * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=686 + * google/cloud/aiplatform/v1/dataset_service.proto;l=682 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3101,7 +3101,7 @@ public Builder clearSavedQuery() { * * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=686 + * google/cloud/aiplatform/v1/dataset_service.proto;l=682 * @param value The bytes for savedQuery to set. * @return This builder for chaining. */ @@ -3428,7 +3428,7 @@ public Builder setDataItemFilterBytes(com.google.protobuf.ByteString value) { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=717 + * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=713 * @return The annotationsFilter. */ @java.lang.Deprecated @@ -3456,7 +3456,7 @@ public java.lang.String getAnnotationsFilter() { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=717 + * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=713 * @return The bytes for annotationsFilter. */ @java.lang.Deprecated @@ -3484,7 +3484,7 @@ public com.google.protobuf.ByteString getAnnotationsFilterBytes() { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=717 + * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=713 * @param value The annotationsFilter to set. * @return This builder for chaining. */ @@ -3511,7 +3511,7 @@ public Builder setAnnotationsFilter(java.lang.String value) { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=717 + * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=713 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3534,7 +3534,7 @@ public Builder clearAnnotationsFilter() { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=717 + * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=713 * @param value The bytes for annotationsFilter to set. * @return This builder for chaining. */ @@ -4102,7 +4102,7 @@ public Builder clearPageSize() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=741 + * google/cloud/aiplatform/v1/dataset_service.proto;l=737 * @return The orderBy. */ @java.lang.Deprecated @@ -4129,7 +4129,7 @@ public java.lang.String getOrderBy() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=741 + * google/cloud/aiplatform/v1/dataset_service.proto;l=737 * @return The bytes for orderBy. */ @java.lang.Deprecated @@ -4156,7 +4156,7 @@ public com.google.protobuf.ByteString getOrderByBytes() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=741 + * google/cloud/aiplatform/v1/dataset_service.proto;l=737 * @param value The orderBy to set. * @return This builder for chaining. */ @@ -4182,7 +4182,7 @@ public Builder setOrderBy(java.lang.String value) { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=741 + * google/cloud/aiplatform/v1/dataset_service.proto;l=737 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4204,7 +4204,7 @@ public Builder clearOrderBy() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=741 + * google/cloud/aiplatform/v1/dataset_service.proto;l=737 * @param value The bytes for orderBy to set. * @return This builder for chaining. */ diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequestOrBuilder.java index 7fb8a7181d8f..e1ed9c9d4655 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequestOrBuilder.java @@ -160,7 +160,7 @@ public interface SearchDataItemsRequestOrBuilder * * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=686 + * google/cloud/aiplatform/v1/dataset_service.proto;l=682 * @return The savedQuery. */ @java.lang.Deprecated @@ -180,7 +180,7 @@ public interface SearchDataItemsRequestOrBuilder * * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=686 + * google/cloud/aiplatform/v1/dataset_service.proto;l=682 * @return The bytes for savedQuery. */ @java.lang.Deprecated @@ -280,7 +280,7 @@ public interface SearchDataItemsRequestOrBuilder * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is deprecated. - * See google/cloud/aiplatform/v1/dataset_service.proto;l=717 + * See google/cloud/aiplatform/v1/dataset_service.proto;l=713 * @return The annotationsFilter. */ @java.lang.Deprecated @@ -298,7 +298,7 @@ public interface SearchDataItemsRequestOrBuilder * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is deprecated. - * See google/cloud/aiplatform/v1/dataset_service.proto;l=717 + * See google/cloud/aiplatform/v1/dataset_service.proto;l=713 * @return The bytes for annotationsFilter. */ @java.lang.Deprecated @@ -454,7 +454,7 @@ public interface SearchDataItemsRequestOrBuilder * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=741 + * google/cloud/aiplatform/v1/dataset_service.proto;l=737 * @return The orderBy. */ @java.lang.Deprecated @@ -471,7 +471,7 @@ public interface SearchDataItemsRequestOrBuilder * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=741 + * google/cloud/aiplatform/v1/dataset_service.proto;l=737 * @return The bytes for orderBy. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexMultimodalDatasetDestination.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexMultimodalDatasetDestination.java new file mode 100644 index 000000000000..901b17913dca --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexMultimodalDatasetDestination.java @@ -0,0 +1,957 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1/io.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
    + * The details for a Vertex Multimodal Dataset output.
    + * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination} + */ +@com.google.protobuf.Generated +public final class VertexMultimodalDatasetDestination extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination) + VertexMultimodalDatasetDestinationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "VertexMultimodalDatasetDestination"); + } + + // Use VertexMultimodalDatasetDestination.newBuilder() to construct. + private VertexMultimodalDatasetDestination( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private VertexMultimodalDatasetDestination() { + displayName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_VertexMultimodalDatasetDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_VertexMultimodalDatasetDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.class, + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.Builder.class); + } + + private int bitField0_; + public static final int BIGQUERY_DESTINATION_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1.BigQueryDestination bigqueryDestination_; + + /** + * + * + *
    +   * Optional. The destination of the underlying BigQuery table that will be
    +   * created for the output Multimodal Dataset. If not specified, the BigQuery
    +   * table will be created in a default BigQuery dataset.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bigqueryDestination field is set. + */ + @java.lang.Override + public boolean hasBigqueryDestination() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Optional. The destination of the underlying BigQuery table that will be
    +   * created for the output Multimodal Dataset. If not specified, the BigQuery
    +   * table will be created in a default BigQuery dataset.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bigqueryDestination. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.BigQueryDestination getBigqueryDestination() { + return bigqueryDestination_ == null + ? com.google.cloud.aiplatform.v1.BigQueryDestination.getDefaultInstance() + : bigqueryDestination_; + } + + /** + * + * + *
    +   * Optional. The destination of the underlying BigQuery table that will be
    +   * created for the output Multimodal Dataset. If not specified, the BigQuery
    +   * table will be created in a default BigQuery dataset.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.BigQueryDestinationOrBuilder + getBigqueryDestinationOrBuilder() { + return bigqueryDestination_ == null + ? com.google.cloud.aiplatform.v1.BigQueryDestination.getDefaultInstance() + : bigqueryDestination_; + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
    +   * Optional. Display name of the output dataset.
    +   * 
    + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. Display name of the output dataset.
    +   * 
    + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getBigqueryDestination()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBigqueryDestination()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination other = + (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination) obj; + + if (hasBigqueryDestination() != other.hasBigqueryDestination()) return false; + if (hasBigqueryDestination()) { + if (!getBigqueryDestination().equals(other.getBigqueryDestination())) return false; + } + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasBigqueryDestination()) { + hash = (37 * hash) + BIGQUERY_DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getBigqueryDestination().hashCode(); + } + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * The details for a Vertex Multimodal Dataset output.
    +   * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination) + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestinationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_VertexMultimodalDatasetDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_VertexMultimodalDatasetDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.class, + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetBigqueryDestinationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bigqueryDestination_ = null; + if (bigqueryDestinationBuilder_ != null) { + bigqueryDestinationBuilder_.dispose(); + bigqueryDestinationBuilder_ = null; + } + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_VertexMultimodalDatasetDestination_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination build() { + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination buildPartial() { + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination result = + new com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.bigqueryDestination_ = + bigqueryDestinationBuilder_ == null + ? bigqueryDestination_ + : bigqueryDestinationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination) { + return mergeFrom((com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination other) { + if (other + == com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination.getDefaultInstance()) + return this; + if (other.hasBigqueryDestination()) { + mergeBigqueryDestination(other.getBigqueryDestination()); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetBigqueryDestinationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.aiplatform.v1.BigQueryDestination bigqueryDestination_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.BigQueryDestination, + com.google.cloud.aiplatform.v1.BigQueryDestination.Builder, + com.google.cloud.aiplatform.v1.BigQueryDestinationOrBuilder> + bigqueryDestinationBuilder_; + + /** + * + * + *
    +     * Optional. The destination of the underlying BigQuery table that will be
    +     * created for the output Multimodal Dataset. If not specified, the BigQuery
    +     * table will be created in a default BigQuery dataset.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bigqueryDestination field is set. + */ + public boolean hasBigqueryDestination() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Optional. The destination of the underlying BigQuery table that will be
    +     * created for the output Multimodal Dataset. If not specified, the BigQuery
    +     * table will be created in a default BigQuery dataset.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bigqueryDestination. + */ + public com.google.cloud.aiplatform.v1.BigQueryDestination getBigqueryDestination() { + if (bigqueryDestinationBuilder_ == null) { + return bigqueryDestination_ == null + ? com.google.cloud.aiplatform.v1.BigQueryDestination.getDefaultInstance() + : bigqueryDestination_; + } else { + return bigqueryDestinationBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. The destination of the underlying BigQuery table that will be
    +     * created for the output Multimodal Dataset. If not specified, the BigQuery
    +     * table will be created in a default BigQuery dataset.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBigqueryDestination( + com.google.cloud.aiplatform.v1.BigQueryDestination value) { + if (bigqueryDestinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + bigqueryDestination_ = value; + } else { + bigqueryDestinationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The destination of the underlying BigQuery table that will be
    +     * created for the output Multimodal Dataset. If not specified, the BigQuery
    +     * table will be created in a default BigQuery dataset.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBigqueryDestination( + com.google.cloud.aiplatform.v1.BigQueryDestination.Builder builderForValue) { + if (bigqueryDestinationBuilder_ == null) { + bigqueryDestination_ = builderForValue.build(); + } else { + bigqueryDestinationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The destination of the underlying BigQuery table that will be
    +     * created for the output Multimodal Dataset. If not specified, the BigQuery
    +     * table will be created in a default BigQuery dataset.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeBigqueryDestination( + com.google.cloud.aiplatform.v1.BigQueryDestination value) { + if (bigqueryDestinationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && bigqueryDestination_ != null + && bigqueryDestination_ + != com.google.cloud.aiplatform.v1.BigQueryDestination.getDefaultInstance()) { + getBigqueryDestinationBuilder().mergeFrom(value); + } else { + bigqueryDestination_ = value; + } + } else { + bigqueryDestinationBuilder_.mergeFrom(value); + } + if (bigqueryDestination_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. The destination of the underlying BigQuery table that will be
    +     * created for the output Multimodal Dataset. If not specified, the BigQuery
    +     * table will be created in a default BigQuery dataset.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearBigqueryDestination() { + bitField0_ = (bitField0_ & ~0x00000001); + bigqueryDestination_ = null; + if (bigqueryDestinationBuilder_ != null) { + bigqueryDestinationBuilder_.dispose(); + bigqueryDestinationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The destination of the underlying BigQuery table that will be
    +     * created for the output Multimodal Dataset. If not specified, the BigQuery
    +     * table will be created in a default BigQuery dataset.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.BigQueryDestination.Builder + getBigqueryDestinationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetBigqueryDestinationFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. The destination of the underlying BigQuery table that will be
    +     * created for the output Multimodal Dataset. If not specified, the BigQuery
    +     * table will be created in a default BigQuery dataset.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.BigQueryDestinationOrBuilder + getBigqueryDestinationOrBuilder() { + if (bigqueryDestinationBuilder_ != null) { + return bigqueryDestinationBuilder_.getMessageOrBuilder(); + } else { + return bigqueryDestination_ == null + ? com.google.cloud.aiplatform.v1.BigQueryDestination.getDefaultInstance() + : bigqueryDestination_; + } + } + + /** + * + * + *
    +     * Optional. The destination of the underlying BigQuery table that will be
    +     * created for the output Multimodal Dataset. If not specified, the BigQuery
    +     * table will be created in a default BigQuery dataset.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.BigQueryDestination, + com.google.cloud.aiplatform.v1.BigQueryDestination.Builder, + com.google.cloud.aiplatform.v1.BigQueryDestinationOrBuilder> + internalGetBigqueryDestinationFieldBuilder() { + if (bigqueryDestinationBuilder_ == null) { + bigqueryDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.BigQueryDestination, + com.google.cloud.aiplatform.v1.BigQueryDestination.Builder, + com.google.cloud.aiplatform.v1.BigQueryDestinationOrBuilder>( + getBigqueryDestination(), getParentForChildren(), isClean()); + bigqueryDestination_ = null; + } + return bigqueryDestinationBuilder_; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
    +     * Optional. Display name of the output dataset.
    +     * 
    + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. Display name of the output dataset.
    +     * 
    + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. Display name of the output dataset.
    +     * 
    + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Display name of the output dataset.
    +     * 
    + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Display name of the output dataset.
    +     * 
    + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination) + private static final com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination(); + } + + public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VertexMultimodalDatasetDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexMultimodalDatasetDestinationOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexMultimodalDatasetDestinationOrBuilder.java new file mode 100644 index 000000000000..76fc34966ac1 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexMultimodalDatasetDestinationOrBuilder.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1/io.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1; + +@com.google.protobuf.Generated +public interface VertexMultimodalDatasetDestinationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.VertexMultimodalDatasetDestination) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Optional. The destination of the underlying BigQuery table that will be
    +   * created for the output Multimodal Dataset. If not specified, the BigQuery
    +   * table will be created in a default BigQuery dataset.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bigqueryDestination field is set. + */ + boolean hasBigqueryDestination(); + + /** + * + * + *
    +   * Optional. The destination of the underlying BigQuery table that will be
    +   * created for the output Multimodal Dataset. If not specified, the BigQuery
    +   * table will be created in a default BigQuery dataset.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bigqueryDestination. + */ + com.google.cloud.aiplatform.v1.BigQueryDestination getBigqueryDestination(); + + /** + * + * + *
    +   * Optional. The destination of the underlying BigQuery table that will be
    +   * created for the output Multimodal Dataset. If not specified, the BigQuery
    +   * table will be created in a default BigQuery dataset.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder(); + + /** + * + * + *
    +   * Optional. Display name of the output dataset.
    +   * 
    + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
    +   * Optional. Display name of the output dataset.
    +   * 
    + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexMultimodalDatasetSource.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexMultimodalDatasetSource.java new file mode 100644 index 000000000000..86b159f2c7bb --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexMultimodalDatasetSource.java @@ -0,0 +1,622 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1/io.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
    + * The Vertex Multimodal Dataset for the input content.
    + * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1.VertexMultimodalDatasetSource} + */ +@com.google.protobuf.Generated +public final class VertexMultimodalDatasetSource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.VertexMultimodalDatasetSource) + VertexMultimodalDatasetSourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "VertexMultimodalDatasetSource"); + } + + // Use VertexMultimodalDatasetSource.newBuilder() to construct. + private VertexMultimodalDatasetSource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private VertexMultimodalDatasetSource() { + datasetName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_VertexMultimodalDatasetSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_VertexMultimodalDatasetSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.class, + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.Builder.class); + } + + public static final int DATASET_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object datasetName_ = ""; + + /** + * + * + *
    +   * Required. The resource name of the Vertex Dataset.
    +   * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
    +   * 
    + * + * + * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The datasetName. + */ + @java.lang.Override + public java.lang.String getDatasetName() { + java.lang.Object ref = datasetName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + datasetName_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The resource name of the Vertex Dataset.
    +   * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
    +   * 
    + * + * + * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for datasetName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatasetNameBytes() { + java.lang.Object ref = datasetName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + datasetName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(datasetName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, datasetName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(datasetName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, datasetName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource other = + (com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource) obj; + + if (!getDatasetName().equals(other.getDatasetName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DATASET_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDatasetName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * The Vertex Multimodal Dataset for the input content.
    +   * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1.VertexMultimodalDatasetSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.VertexMultimodalDatasetSource) + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_VertexMultimodalDatasetSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_VertexMultimodalDatasetSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.class, + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + datasetName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.IoProto + .internal_static_google_cloud_aiplatform_v1_VertexMultimodalDatasetSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource build() { + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource buildPartial() { + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource result = + new com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.datasetName_ = datasetName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource) { + return mergeFrom((com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource other) { + if (other + == com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource.getDefaultInstance()) + return this; + if (!other.getDatasetName().isEmpty()) { + datasetName_ = other.datasetName_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + datasetName_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object datasetName_ = ""; + + /** + * + * + *
    +     * Required. The resource name of the Vertex Dataset.
    +     * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
    +     * 
    + * + * + * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The datasetName. + */ + public java.lang.String getDatasetName() { + java.lang.Object ref = datasetName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + datasetName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The resource name of the Vertex Dataset.
    +     * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
    +     * 
    + * + * + * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for datasetName. + */ + public com.google.protobuf.ByteString getDatasetNameBytes() { + java.lang.Object ref = datasetName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + datasetName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The resource name of the Vertex Dataset.
    +     * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
    +     * 
    + * + * + * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The datasetName to set. + * @return This builder for chaining. + */ + public Builder setDatasetName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + datasetName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource name of the Vertex Dataset.
    +     * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
    +     * 
    + * + * + * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDatasetName() { + datasetName_ = getDefaultInstance().getDatasetName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource name of the Vertex Dataset.
    +     * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
    +     * 
    + * + * + * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for datasetName to set. + * @return This builder for chaining. + */ + public Builder setDatasetNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + datasetName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.VertexMultimodalDatasetSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.VertexMultimodalDatasetSource) + private static final com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource(); + } + + public static com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VertexMultimodalDatasetSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexMultimodalDatasetSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexMultimodalDatasetSourceOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexMultimodalDatasetSourceOrBuilder.java new file mode 100644 index 000000000000..6a3cce280455 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexMultimodalDatasetSourceOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1/io.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1; + +@com.google.protobuf.Generated +public interface VertexMultimodalDatasetSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.VertexMultimodalDatasetSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the Vertex Dataset.
    +   * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
    +   * 
    + * + * + * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The datasetName. + */ + java.lang.String getDatasetName(); + + /** + * + * + *
    +   * Required. The resource name of the Vertex Dataset.
    +   * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
    +   * 
    + * + * + * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for datasetName. + */ + com.google.protobuf.ByteString getDatasetNameBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VideoMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VideoMetadata.java index cdff9015a01f..f4e8524da860 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VideoMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VideoMetadata.java @@ -173,6 +173,26 @@ public com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder() { return endOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : endOffset_; } + public static final int FPS_FIELD_NUMBER = 3; + private double fps_ = 0D; + + /** + * + * + *
    +   * Optional. The frame rate of the video sent to the model. If not specified,
    +   * the default value is 1.0. The valid range is (0.0, 24.0].
    +   * 
    + * + * double fps = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fps. + */ + @java.lang.Override + public double getFps() { + return fps_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -193,6 +213,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getEndOffset()); } + if (java.lang.Double.doubleToRawLongBits(fps_) != 0) { + output.writeDouble(3, fps_); + } getUnknownFields().writeTo(output); } @@ -208,6 +231,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndOffset()); } + if (java.lang.Double.doubleToRawLongBits(fps_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, fps_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -232,6 +258,8 @@ public boolean equals(final java.lang.Object obj) { if (hasEndOffset()) { if (!getEndOffset().equals(other.getEndOffset())) return false; } + if (java.lang.Double.doubleToLongBits(getFps()) + != java.lang.Double.doubleToLongBits(other.getFps())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -251,6 +279,10 @@ public int hashCode() { hash = (37 * hash) + END_OFFSET_FIELD_NUMBER; hash = (53 * hash) + getEndOffset().hashCode(); } + hash = (37 * hash) + FPS_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getFps())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -411,6 +443,7 @@ public Builder clear() { endOffsetBuilder_.dispose(); endOffsetBuilder_ = null; } + fps_ = 0D; return this; } @@ -457,6 +490,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.VideoMetadata result) result.endOffset_ = endOffsetBuilder_ == null ? endOffset_ : endOffsetBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.fps_ = fps_; + } result.bitField0_ |= to_bitField0_; } @@ -478,6 +514,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.VideoMetadata other) { if (other.hasEndOffset()) { mergeEndOffset(other.getEndOffset()); } + if (java.lang.Double.doubleToRawLongBits(other.getFps()) != 0) { + setFps(other.getFps()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -518,6 +557,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 25: + { + fps_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -939,6 +984,65 @@ public com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder() { return endOffsetBuilder_; } + private double fps_; + + /** + * + * + *
    +     * Optional. The frame rate of the video sent to the model. If not specified,
    +     * the default value is 1.0. The valid range is (0.0, 24.0].
    +     * 
    + * + * double fps = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fps. + */ + @java.lang.Override + public double getFps() { + return fps_; + } + + /** + * + * + *
    +     * Optional. The frame rate of the video sent to the model. If not specified,
    +     * the default value is 1.0. The valid range is (0.0, 24.0].
    +     * 
    + * + * double fps = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The fps to set. + * @return This builder for chaining. + */ + public Builder setFps(double value) { + + fps_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The frame rate of the video sent to the model. If not specified,
    +     * the default value is 1.0. The valid range is (0.0, 24.0].
    +     * 
    + * + * double fps = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFps() { + bitField0_ = (bitField0_ & ~0x00000004); + fps_ = 0D; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.VideoMetadata) } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VideoMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VideoMetadataOrBuilder.java index f17652609962..8945b1f74515 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VideoMetadataOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VideoMetadataOrBuilder.java @@ -105,4 +105,18 @@ public interface VideoMetadataOrBuilder * */ com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder(); + + /** + * + * + *
    +   * Optional. The frame rate of the video sent to the model. If not specified,
    +   * the default value is 1.0. The valid range is (0.0, 24.0].
    +   * 
    + * + * double fps = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fps. + */ + double getFps(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/batch_prediction_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/batch_prediction_job.proto index 69723896fe20..5b4258e1fd14 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/batch_prediction_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/batch_prediction_job.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -67,6 +67,10 @@ message BatchPredictionJob { // additional columns that are not described by the schema, and they will // be ignored. BigQuerySource bigquery_source = 3; + + // A Vertex Managed Dataset. Currently, only datasets of type Multimodal + // are supported. + VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; } // Required. The format in which instances are given, must be one of the @@ -226,6 +230,11 @@ message BatchPredictionJob { // has [google.rpc.Status][google.rpc.Status] // represented as a STRUCT, and containing only `code` and `message`. BigQueryDestination bigquery_destination = 3; + + // The details for a Vertex Multimodal Dataset that will be created for + // the output. + VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = + 6; } // Required. The format in which Vertex AI gives the predictions, must be @@ -250,6 +259,16 @@ message BatchPredictionJob { // format, into which the prediction output is written. string bigquery_output_dataset = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The resource name of the Vertex Managed Dataset created, + // into which the prediction output is written. Format: + // `projects/{project}/locations/{location}/datasets/{dataset}` + string vertex_multimodal_dataset_name = 5 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Dataset" + } + ]; } // Output only. The name of the BigQuery table created, in diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto index 55041862d78c..fc656beea9b4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -108,6 +108,33 @@ message Content { // A `Part` must have a fixed IANA MIME type identifying the type and subtype // of the media if `inline_data` or `file_data` field is filled with raw bytes. message Part { + // per part media resolution. + // Media resolution for the input media. + message MediaResolution { + // The media resolution level. + enum Level { + // Media resolution has not been set. + MEDIA_RESOLUTION_UNSPECIFIED = 0; + + // Media resolution set to low. + MEDIA_RESOLUTION_LOW = 1; + + // Media resolution set to medium. + MEDIA_RESOLUTION_MEDIUM = 2; + + // Media resolution set to high. + MEDIA_RESOLUTION_HIGH = 3; + + // Media resolution set to ultra high. This is for image only. + MEDIA_RESOLUTION_ULTRA_HIGH = 4; + } + + oneof value { + // The tokenization quality used for given media. + Level level = 1; + } + } + oneof data { // Optional. Text part (can be code). string text = 1 [(google.api.field_behavior) = OPTIONAL]; @@ -150,6 +177,10 @@ message Part { // video data is presented in inline_data or file_data. VideoMetadata video_metadata = 4 [(google.api.field_behavior) = OPTIONAL]; } + + // per part media resolution. + // Media resolution for the input media. + MediaResolution media_resolution = 12; } // Content blob. @@ -182,6 +213,10 @@ message VideoMetadata { // Optional. The end offset of the video. google.protobuf.Duration end_offset = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The frame rate of the video sent to the model. If not specified, + // the default value is 1.0. The valid range is (0.0, 24.0]. + double fps = 3 [(google.api.field_behavior) = OPTIONAL]; } // Configuration for a prebuilt voice. @@ -202,7 +237,6 @@ message ReplicatedVoiceConfig { bytes voice_sample_audio = 2 [(google.api.field_behavior) = OPTIONAL]; } - // Configuration for a voice. message VoiceConfig { // The configuration for the speaker to use. @@ -250,6 +284,37 @@ message SpeechConfig { // Config for image generation features. message ImageConfig { + // The image output format for generated images. + message ImageOutputOptions { + // Optional. The image format that the output should be saved as. + optional string mime_type = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The compression quality of the output image. + optional int32 compression_quality = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Enum for controlling the generation of people in images. + enum PersonGeneration { + // The default behavior is unspecified. The model will decide whether to + // generate images of people. + PERSON_GENERATION_UNSPECIFIED = 0; + + // Allows the model to generate images of people, including adults and + // children. + ALLOW_ALL = 1; + + // Allows the model to generate images of adults, but not children. + ALLOW_ADULT = 2; + + // Prevents the model from generating images of people. + ALLOW_NONE = 3; + } + + // Optional. The image output format for generated images. + optional ImageOutputOptions image_output_options = 1 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. The desired aspect ratio for the generated images. The following // aspect ratios are supported: // @@ -260,6 +325,14 @@ message ImageConfig { // "9:16", "16:9" // "21:9" optional string aspect_ratio = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Controls whether the model can generate people. + optional PersonGeneration person_generation = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the size of generated images. Supported values are + // `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`. + optional string image_size = 4 [(google.api.field_behavior) = OPTIONAL]; } // Generation config. @@ -308,6 +381,24 @@ message GenerationConfig { // Config for thinking features. message ThinkingConfig { + // The thinking level for the model. + enum ThinkingLevel { + // Unspecified thinking level. + THINKING_LEVEL_UNSPECIFIED = 0; + + // Low thinking level. + LOW = 1; + + // Medium thinking level. + MEDIUM = 2; + + // High thinking level. + HIGH = 3; + + // MINIMAL thinking level. + MINIMAL = 4; + } + // Indicates whether to include thoughts in the response. // If true, thoughts are returned only when available. optional bool include_thoughts = 1 [(google.api.field_behavior) = OPTIONAL]; @@ -315,6 +406,40 @@ message GenerationConfig { // Optional. Indicates the thinking budget in tokens. // This is only applied when enable_thinking is true. optional int32 thinking_budget = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The number of thoughts tokens that the model should generate. + optional ThinkingLevel thinking_level = 4 + [(google.api.field_behavior) = OPTIONAL]; + } + + // The modalities of the response. + enum Modality { + // Unspecified modality. Will be processed as text. + MODALITY_UNSPECIFIED = 0; + + // Text modality. + TEXT = 1; + + // Image modality. + IMAGE = 2; + + // Audio modality. + AUDIO = 3; + } + + // Media resolution for the input media. + enum MediaResolution { + // Media resolution has not been set. + MEDIA_RESOLUTION_UNSPECIFIED = 0; + + // Media resolution set to low (64 tokens). + MEDIA_RESOLUTION_LOW = 1; + + // Media resolution set to medium (256 tokens). + MEDIA_RESOLUTION_MEDIUM = 2; + + // Media resolution set to high (zoomed reframing with 256 tokens). + MEDIA_RESOLUTION_HIGH = 3; } // Optional. Controls the randomness of predictions. @@ -411,6 +536,27 @@ message GenerationConfig { optional RoutingConfig routing_config = 17 [(google.api.field_behavior) = OPTIONAL]; + // Optional. If enabled, audio timestamps will be included in the request to + // the model. This can be useful for synchronizing audio with other modalities + // in the response. + optional bool audio_timestamp = 20 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The modalities of the response. The model will generate a + // response that includes all the specified modalities. For example, if this + // is set to `[TEXT, IMAGE]`, the response will include both text and an + // image. + repeated Modality response_modalities = 21 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The token resolution at which input media content is sampled. + // This is used to control the trade-off between the quality of the response + // and the number of tokens used to represent the media. A higher resolution + // allows the model to perceive more detail, which can lead to a more nuanced + // response, but it will also use more tokens. This does not affect the + // image dimensions sent to the model. + optional MediaResolution media_resolution = 22 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. The speech generation config. optional SpeechConfig speech_config = 23 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset.proto index 9a6b7f607f72..a515e4b64185 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,9 +40,14 @@ message Dataset { }; // Output only. Identifier. The resource name of the Dataset. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}` string name = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.field_behavior) = IDENTIFIER + (google.api.field_behavior) = IDENTIFIER, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Dataset" + } ]; // Required. The user-defined name of the Dataset. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto index e234e3ba6ff6..6fa941371b14 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -259,9 +259,7 @@ service DatasetService { option (google.api.method_signature) = "name"; } - // Lists Annotations belongs to a dataitem - // This RPC is only available in InternalDatasetService. It is only used for - // exporting conversation data to CCAI Insights. + // Lists Annotations belongs to a dataitem. rpc ListAnnotations(ListAnnotationsRequest) returns (ListAnnotationsResponse) { option (google.api.http) = { @@ -296,7 +294,6 @@ message CreateDatasetOperationMetadata { // Request message for // [DatasetService.GetDataset][google.cloud.aiplatform.v1.DatasetService.GetDataset]. -// Next ID: 4 message GetDatasetRequest { // Required. The name of the Dataset resource. string name = 1 [ @@ -528,7 +525,6 @@ message DeleteDatasetVersionRequest { // Request message for // [DatasetService.GetDatasetVersion][google.cloud.aiplatform.v1.DatasetService.GetDatasetVersion]. -// Next ID: 4 message GetDatasetVersionRequest { // Required. The resource name of the Dataset version to delete. // Format: diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_version.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_version.proto index 0998c614fa5f..226c2f2afc79 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_version.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_version.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,9 +37,14 @@ message DatasetVersion { }; // Output only. Identifier. The resource name of the DatasetVersion. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` string name = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.field_behavior) = IDENTIFIER + (google.api.field_behavior) = IDENTIFIER, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/DatasetVersion" + } ]; // Output only. Timestamp when this DatasetVersion was created. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/io.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/io.proto index 19dfba1aad52..70b1b9df4356 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/io.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/io.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.aiplatform.v1; import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; import "google/cloud/aiplatform/v1/api_auth.proto"; import "google/protobuf/timestamp.proto"; @@ -82,6 +83,30 @@ message BigQueryDestination { string output_uri = 1 [(google.api.field_behavior) = REQUIRED]; } +// The Vertex Multimodal Dataset for the input content. +message VertexMultimodalDatasetSource { + // Required. The resource name of the Vertex Dataset. + // Format: `projects/{project}/locations/{location}/datasets/{dataset}` + string dataset_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Dataset" + } + ]; +} + +// The details for a Vertex Multimodal Dataset output. +message VertexMultimodalDatasetDestination { + // Optional. The destination of the underlying BigQuery table that will be + // created for the output Multimodal Dataset. If not specified, the BigQuery + // table will be created in a default BigQuery dataset. + BigQueryDestination bigquery_destination = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Display name of the output dataset. + string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; +} + // The storage details for CSV output content. message CsvDestination { // Required. Google Cloud Storage location. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schedule.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schedule.proto index 71e457ca91b5..ee1eaefb168c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schedule.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schedule.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -159,6 +159,14 @@ message Schedule { // execution of the operations/jobs created by the requests (if applicable). int64 max_concurrent_run_count = 11 [(google.api.field_behavior) = REQUIRED]; + // Optional. Specifies the maximum number of active runs that can be executed + // concurrently for this Schedule. This limits the number of runs that can be + // in a non-terminal state at the same time. + // Currently, this field is only supported for requests of type + // CreatePipelineJobRequest. + int64 max_concurrent_active_run_count = 21 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. Whether new scheduled runs can be queued when max_concurrent_runs // limit is reached. If set to true, new runs will be queued instead of // skipped. Default to false. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/pom.xml b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/pom.xml index d476c718344a..c28c1c264df4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/pom.xml +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.101.0-SNAPSHOT + 0.102.0 proto-google-cloud-aiplatform-v1beta1 Proto library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.85.0-SNAPSHOT + 3.86.0 diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJob.java index 35027526d5ab..d133761d7b30 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJob.java @@ -185,6 +185,54 @@ public interface InputConfigOrBuilder */ com.google.cloud.aiplatform.v1beta1.BigQuerySourceOrBuilder getBigquerySourceOrBuilder(); + /** + * + * + *
    +     * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
    +     * are supported.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; + * + * + * @return Whether the vertexMultimodalDatasetSource field is set. + */ + boolean hasVertexMultimodalDatasetSource(); + + /** + * + * + *
    +     * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
    +     * are supported.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; + * + * + * @return The vertexMultimodalDatasetSource. + */ + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource + getVertexMultimodalDatasetSource(); + + /** + * + * + *
    +     * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
    +     * are supported.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; + * + */ + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSourceOrBuilder + getVertexMultimodalDatasetSourceOrBuilder(); + /** * * @@ -283,6 +331,7 @@ public enum SourceCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(2), BIGQUERY_SOURCE(3), + VERTEX_MULTIMODAL_DATASET_SOURCE(4), SOURCE_NOT_SET(0); private final int value; @@ -306,6 +355,8 @@ public static SourceCase forNumber(int value) { return GCS_SOURCE; case 3: return BIGQUERY_SOURCE; + case 4: + return VERTEX_MULTIMODAL_DATASET_SOURCE; case 0: return SOURCE_NOT_SET; default: @@ -443,6 +494,71 @@ public com.google.cloud.aiplatform.v1beta1.BigQuerySource getBigquerySource() { return com.google.cloud.aiplatform.v1beta1.BigQuerySource.getDefaultInstance(); } + public static final int VERTEX_MULTIMODAL_DATASET_SOURCE_FIELD_NUMBER = 4; + + /** + * + * + *
    +     * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
    +     * are supported.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; + * + * + * @return Whether the vertexMultimodalDatasetSource field is set. + */ + @java.lang.Override + public boolean hasVertexMultimodalDatasetSource() { + return sourceCase_ == 4; + } + + /** + * + * + *
    +     * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
    +     * are supported.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; + * + * + * @return The vertexMultimodalDatasetSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource + getVertexMultimodalDatasetSource() { + if (sourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource) source_; + } + return com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource.getDefaultInstance(); + } + + /** + * + * + *
    +     * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
    +     * are supported.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSourceOrBuilder + getVertexMultimodalDatasetSourceOrBuilder() { + if (sourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource) source_; + } + return com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource.getDefaultInstance(); + } + public static final int INSTANCES_FORMAT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -523,6 +639,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (sourceCase_ == 3) { output.writeMessage(3, (com.google.cloud.aiplatform.v1beta1.BigQuerySource) source_); } + if (sourceCase_ == 4) { + output.writeMessage( + 4, (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource) source_); + } getUnknownFields().writeTo(output); } @@ -545,6 +665,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 3, (com.google.cloud.aiplatform.v1beta1.BigQuerySource) source_); } + if (sourceCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource) source_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -570,6 +695,10 @@ public boolean equals(final java.lang.Object obj) { case 3: if (!getBigquerySource().equals(other.getBigquerySource())) return false; break; + case 4: + if (!getVertexMultimodalDatasetSource().equals(other.getVertexMultimodalDatasetSource())) + return false; + break; case 0: default: } @@ -595,6 +724,10 @@ public int hashCode() { hash = (37 * hash) + BIGQUERY_SOURCE_FIELD_NUMBER; hash = (53 * hash) + getBigquerySource().hashCode(); break; + case 4: + hash = (37 * hash) + VERTEX_MULTIMODAL_DATASET_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getVertexMultimodalDatasetSource().hashCode(); + break; case 0: default: } @@ -752,6 +885,9 @@ public Builder clear() { if (bigquerySourceBuilder_ != null) { bigquerySourceBuilder_.clear(); } + if (vertexMultimodalDatasetSourceBuilder_ != null) { + vertexMultimodalDatasetSourceBuilder_.clear(); + } instancesFormat_ = ""; sourceCase_ = 0; source_ = null; @@ -795,7 +931,7 @@ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig buildP private void buildPartial0( com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.instancesFormat_ = instancesFormat_; } } @@ -810,6 +946,9 @@ private void buildPartialOneofs( if (sourceCase_ == 3 && bigquerySourceBuilder_ != null) { result.source_ = bigquerySourceBuilder_.build(); } + if (sourceCase_ == 4 && vertexMultimodalDatasetSourceBuilder_ != null) { + result.source_ = vertexMultimodalDatasetSourceBuilder_.build(); + } } @java.lang.Override @@ -830,7 +969,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getInstancesFormat().isEmpty()) { instancesFormat_ = other.instancesFormat_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } switch (other.getSourceCase()) { @@ -844,6 +983,11 @@ public Builder mergeFrom( mergeBigquerySource(other.getBigquerySource()); break; } + case VERTEX_MULTIMODAL_DATASET_SOURCE: + { + mergeVertexMultimodalDatasetSource(other.getVertexMultimodalDatasetSource()); + break; + } case SOURCE_NOT_SET: { break; @@ -878,7 +1022,7 @@ public Builder mergeFrom( case 10: { instancesFormat_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 10 case 18: @@ -895,6 +1039,14 @@ public Builder mergeFrom( sourceCase_ = 3; break; } // case 26 + case 34: + { + input.readMessage( + internalGetVertexMultimodalDatasetSourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 4; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1402,6 +1554,264 @@ public com.google.cloud.aiplatform.v1beta1.BigQuerySource.Builder getBigquerySou return bigquerySourceBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource, + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource.Builder, + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSourceOrBuilder> + vertexMultimodalDatasetSourceBuilder_; + + /** + * + * + *
    +       * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
    +       * are supported.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; + * + * + * @return Whether the vertexMultimodalDatasetSource field is set. + */ + @java.lang.Override + public boolean hasVertexMultimodalDatasetSource() { + return sourceCase_ == 4; + } + + /** + * + * + *
    +       * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
    +       * are supported.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; + * + * + * @return The vertexMultimodalDatasetSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource + getVertexMultimodalDatasetSource() { + if (vertexMultimodalDatasetSourceBuilder_ == null) { + if (sourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource) source_; + } + return com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource + .getDefaultInstance(); + } else { + if (sourceCase_ == 4) { + return vertexMultimodalDatasetSourceBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
    +       * are supported.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; + * + */ + public Builder setVertexMultimodalDatasetSource( + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource value) { + if (vertexMultimodalDatasetSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + vertexMultimodalDatasetSourceBuilder_.setMessage(value); + } + sourceCase_ = 4; + return this; + } + + /** + * + * + *
    +       * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
    +       * are supported.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; + * + */ + public Builder setVertexMultimodalDatasetSource( + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource.Builder + builderForValue) { + if (vertexMultimodalDatasetSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + vertexMultimodalDatasetSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 4; + return this; + } + + /** + * + * + *
    +       * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
    +       * are supported.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; + * + */ + public Builder mergeVertexMultimodalDatasetSource( + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource value) { + if (vertexMultimodalDatasetSourceBuilder_ == null) { + if (sourceCase_ == 4 + && source_ + != com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource + .getDefaultInstance()) { + source_ = + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource.newBuilder( + (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 4) { + vertexMultimodalDatasetSourceBuilder_.mergeFrom(value); + } else { + vertexMultimodalDatasetSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 4; + return this; + } + + /** + * + * + *
    +       * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
    +       * are supported.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; + * + */ + public Builder clearVertexMultimodalDatasetSource() { + if (vertexMultimodalDatasetSourceBuilder_ == null) { + if (sourceCase_ == 4) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 4) { + sourceCase_ = 0; + source_ = null; + } + vertexMultimodalDatasetSourceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
    +       * are supported.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; + * + */ + public com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource.Builder + getVertexMultimodalDatasetSourceBuilder() { + return internalGetVertexMultimodalDatasetSourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
    +       * are supported.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSourceOrBuilder + getVertexMultimodalDatasetSourceOrBuilder() { + if ((sourceCase_ == 4) && (vertexMultimodalDatasetSourceBuilder_ != null)) { + return vertexMultimodalDatasetSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource) source_; + } + return com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * A Vertex Managed Dataset. Currently, only datasets of type Multimodal
    +       * are supported.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource, + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource.Builder, + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSourceOrBuilder> + internalGetVertexMultimodalDatasetSourceFieldBuilder() { + if (vertexMultimodalDatasetSourceBuilder_ == null) { + if (!(sourceCase_ == 4)) { + source_ = + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource + .getDefaultInstance(); + } + vertexMultimodalDatasetSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource, + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource.Builder, + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSourceOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 4; + onChanged(); + return vertexMultimodalDatasetSourceBuilder_; + } + private java.lang.Object instancesFormat_ = ""; /** @@ -1473,7 +1883,7 @@ public Builder setInstancesFormat(java.lang.String value) { throw new NullPointerException(); } instancesFormat_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1493,7 +1903,7 @@ public Builder setInstancesFormat(java.lang.String value) { */ public Builder clearInstancesFormat() { instancesFormat_ = getDefaultInstance().getInstancesFormat(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1518,7 +1928,7 @@ public Builder setInstancesFormatBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); instancesFormat_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -4248,17 +4658,65 @@ public interface OutputConfigOrBuilder * * *
    -     * Required. The format in which Vertex AI gives the predictions, must be
    -     * one of the
    -     * [Model's][google.cloud.aiplatform.v1beta1.BatchPredictionJob.model]
    -     * [supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats].
    +     * The details for a Vertex Multimodal Dataset that will be created for
    +     * the output.
          * 
    * - * string predictions_format = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6; + * * - * @return The predictionsFormat. + * @return Whether the vertexMultimodalDatasetDestination field is set. */ - java.lang.String getPredictionsFormat(); + boolean hasVertexMultimodalDatasetDestination(); + + /** + * + * + *
    +     * The details for a Vertex Multimodal Dataset that will be created for
    +     * the output.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6; + * + * + * @return The vertexMultimodalDatasetDestination. + */ + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination + getVertexMultimodalDatasetDestination(); + + /** + * + * + *
    +     * The details for a Vertex Multimodal Dataset that will be created for
    +     * the output.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6; + * + */ + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestinationOrBuilder + getVertexMultimodalDatasetDestinationOrBuilder(); + + /** + * + * + *
    +     * Required. The format in which Vertex AI gives the predictions, must be
    +     * one of the
    +     * [Model's][google.cloud.aiplatform.v1beta1.BatchPredictionJob.model]
    +     * [supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats].
    +     * 
    + * + * string predictions_format = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The predictionsFormat. + */ + java.lang.String getPredictionsFormat(); /** * @@ -4345,6 +4803,7 @@ public enum DestinationCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(2), BIGQUERY_DESTINATION(3), + VERTEX_MULTIMODAL_DATASET_DESTINATION(6), DESTINATION_NOT_SET(0); private final int value; @@ -4368,6 +4827,8 @@ public static DestinationCase forNumber(int value) { return GCS_DESTINATION; case 3: return BIGQUERY_DESTINATION; + case 6: + return VERTEX_MULTIMODAL_DATASET_DESTINATION; case 0: return DESTINATION_NOT_SET; default: @@ -4614,6 +5075,75 @@ public com.google.cloud.aiplatform.v1beta1.BigQueryDestination getBigqueryDestin return com.google.cloud.aiplatform.v1beta1.BigQueryDestination.getDefaultInstance(); } + public static final int VERTEX_MULTIMODAL_DATASET_DESTINATION_FIELD_NUMBER = 6; + + /** + * + * + *
    +     * The details for a Vertex Multimodal Dataset that will be created for
    +     * the output.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6; + * + * + * @return Whether the vertexMultimodalDatasetDestination field is set. + */ + @java.lang.Override + public boolean hasVertexMultimodalDatasetDestination() { + return destinationCase_ == 6; + } + + /** + * + * + *
    +     * The details for a Vertex Multimodal Dataset that will be created for
    +     * the output.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6; + * + * + * @return The vertexMultimodalDatasetDestination. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination + getVertexMultimodalDatasetDestination() { + if (destinationCase_ == 6) { + return (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination) + destination_; + } + return com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination + .getDefaultInstance(); + } + + /** + * + * + *
    +     * The details for a Vertex Multimodal Dataset that will be created for
    +     * the output.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestinationOrBuilder + getVertexMultimodalDatasetDestinationOrBuilder() { + if (destinationCase_ == 6) { + return (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination) + destination_; + } + return com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination + .getDefaultInstance(); + } + public static final int PREDICTIONS_FORMAT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -4697,6 +5227,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 3, (com.google.cloud.aiplatform.v1beta1.BigQueryDestination) destination_); } + if (destinationCase_ == 6) { + output.writeMessage( + 6, + (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination) destination_); + } getUnknownFields().writeTo(output); } @@ -4719,6 +5254,13 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 3, (com.google.cloud.aiplatform.v1beta1.BigQueryDestination) destination_); } + if (destinationCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, + (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination) + destination_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4744,6 +5286,10 @@ public boolean equals(final java.lang.Object obj) { case 3: if (!getBigqueryDestination().equals(other.getBigqueryDestination())) return false; break; + case 6: + if (!getVertexMultimodalDatasetDestination() + .equals(other.getVertexMultimodalDatasetDestination())) return false; + break; case 0: default: } @@ -4769,6 +5315,10 @@ public int hashCode() { hash = (37 * hash) + BIGQUERY_DESTINATION_FIELD_NUMBER; hash = (53 * hash) + getBigqueryDestination().hashCode(); break; + case 6: + hash = (37 * hash) + VERTEX_MULTIMODAL_DATASET_DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getVertexMultimodalDatasetDestination().hashCode(); + break; case 0: default: } @@ -4926,6 +5476,9 @@ public Builder clear() { if (bigqueryDestinationBuilder_ != null) { bigqueryDestinationBuilder_.clear(); } + if (vertexMultimodalDatasetDestinationBuilder_ != null) { + vertexMultimodalDatasetDestinationBuilder_.clear(); + } predictionsFormat_ = ""; destinationCase_ = 0; destination_ = null; @@ -4969,7 +5522,7 @@ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig build private void buildPartial0( com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.predictionsFormat_ = predictionsFormat_; } } @@ -4984,6 +5537,9 @@ private void buildPartialOneofs( if (destinationCase_ == 3 && bigqueryDestinationBuilder_ != null) { result.destination_ = bigqueryDestinationBuilder_.build(); } + if (destinationCase_ == 6 && vertexMultimodalDatasetDestinationBuilder_ != null) { + result.destination_ = vertexMultimodalDatasetDestinationBuilder_.build(); + } } @java.lang.Override @@ -5004,7 +5560,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getPredictionsFormat().isEmpty()) { predictionsFormat_ = other.predictionsFormat_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } switch (other.getDestinationCase()) { @@ -5018,6 +5574,12 @@ public Builder mergeFrom( mergeBigqueryDestination(other.getBigqueryDestination()); break; } + case VERTEX_MULTIMODAL_DATASET_DESTINATION: + { + mergeVertexMultimodalDatasetDestination( + other.getVertexMultimodalDatasetDestination()); + break; + } case DESTINATION_NOT_SET: { break; @@ -5052,7 +5614,7 @@ public Builder mergeFrom( case 10: { predictionsFormat_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 10 case 18: @@ -5069,6 +5631,14 @@ public Builder mergeFrom( destinationCase_ = 3; break; } // case 26 + case 50: + { + input.readMessage( + internalGetVertexMultimodalDatasetDestinationFieldBuilder().getBuilder(), + extensionRegistry); + destinationCase_ = 6; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5906,6 +6476,268 @@ public Builder clearBigqueryDestination() { return bigqueryDestinationBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination, + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination.Builder, + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestinationOrBuilder> + vertexMultimodalDatasetDestinationBuilder_; + + /** + * + * + *
    +       * The details for a Vertex Multimodal Dataset that will be created for
    +       * the output.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6; + * + * + * @return Whether the vertexMultimodalDatasetDestination field is set. + */ + @java.lang.Override + public boolean hasVertexMultimodalDatasetDestination() { + return destinationCase_ == 6; + } + + /** + * + * + *
    +       * The details for a Vertex Multimodal Dataset that will be created for
    +       * the output.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6; + * + * + * @return The vertexMultimodalDatasetDestination. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination + getVertexMultimodalDatasetDestination() { + if (vertexMultimodalDatasetDestinationBuilder_ == null) { + if (destinationCase_ == 6) { + return (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination) + destination_; + } + return com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination + .getDefaultInstance(); + } else { + if (destinationCase_ == 6) { + return vertexMultimodalDatasetDestinationBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * The details for a Vertex Multimodal Dataset that will be created for
    +       * the output.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6; + * + */ + public Builder setVertexMultimodalDatasetDestination( + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination value) { + if (vertexMultimodalDatasetDestinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destination_ = value; + onChanged(); + } else { + vertexMultimodalDatasetDestinationBuilder_.setMessage(value); + } + destinationCase_ = 6; + return this; + } + + /** + * + * + *
    +       * The details for a Vertex Multimodal Dataset that will be created for
    +       * the output.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6; + * + */ + public Builder setVertexMultimodalDatasetDestination( + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination.Builder + builderForValue) { + if (vertexMultimodalDatasetDestinationBuilder_ == null) { + destination_ = builderForValue.build(); + onChanged(); + } else { + vertexMultimodalDatasetDestinationBuilder_.setMessage(builderForValue.build()); + } + destinationCase_ = 6; + return this; + } + + /** + * + * + *
    +       * The details for a Vertex Multimodal Dataset that will be created for
    +       * the output.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6; + * + */ + public Builder mergeVertexMultimodalDatasetDestination( + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination value) { + if (vertexMultimodalDatasetDestinationBuilder_ == null) { + if (destinationCase_ == 6 + && destination_ + != com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination + .getDefaultInstance()) { + destination_ = + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination.newBuilder( + (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination) + destination_) + .mergeFrom(value) + .buildPartial(); + } else { + destination_ = value; + } + onChanged(); + } else { + if (destinationCase_ == 6) { + vertexMultimodalDatasetDestinationBuilder_.mergeFrom(value); + } else { + vertexMultimodalDatasetDestinationBuilder_.setMessage(value); + } + } + destinationCase_ = 6; + return this; + } + + /** + * + * + *
    +       * The details for a Vertex Multimodal Dataset that will be created for
    +       * the output.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6; + * + */ + public Builder clearVertexMultimodalDatasetDestination() { + if (vertexMultimodalDatasetDestinationBuilder_ == null) { + if (destinationCase_ == 6) { + destinationCase_ = 0; + destination_ = null; + onChanged(); + } + } else { + if (destinationCase_ == 6) { + destinationCase_ = 0; + destination_ = null; + } + vertexMultimodalDatasetDestinationBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * The details for a Vertex Multimodal Dataset that will be created for
    +       * the output.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6; + * + */ + public com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination.Builder + getVertexMultimodalDatasetDestinationBuilder() { + return internalGetVertexMultimodalDatasetDestinationFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * The details for a Vertex Multimodal Dataset that will be created for
    +       * the output.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestinationOrBuilder + getVertexMultimodalDatasetDestinationOrBuilder() { + if ((destinationCase_ == 6) && (vertexMultimodalDatasetDestinationBuilder_ != null)) { + return vertexMultimodalDatasetDestinationBuilder_.getMessageOrBuilder(); + } else { + if (destinationCase_ == 6) { + return (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination) + destination_; + } + return com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * The details for a Vertex Multimodal Dataset that will be created for
    +       * the output.
    +       * 
    + * + * + * .google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = 6; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination, + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination.Builder, + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestinationOrBuilder> + internalGetVertexMultimodalDatasetDestinationFieldBuilder() { + if (vertexMultimodalDatasetDestinationBuilder_ == null) { + if (!(destinationCase_ == 6)) { + destination_ = + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination + .getDefaultInstance(); + } + vertexMultimodalDatasetDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination, + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination.Builder, + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestinationOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination) + destination_, + getParentForChildren(), + isClean()); + destination_ = null; + } + destinationCase_ = 6; + onChanged(); + return vertexMultimodalDatasetDestinationBuilder_; + } + private java.lang.Object predictionsFormat_ = ""; /** @@ -5980,7 +6812,7 @@ public Builder setPredictionsFormat(java.lang.String value) { throw new NullPointerException(); } predictionsFormat_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -6001,7 +6833,7 @@ public Builder setPredictionsFormat(java.lang.String value) { */ public Builder clearPredictionsFormat() { predictionsFormat_ = getDefaultInstance().getPredictionsFormat(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -6027,7 +6859,7 @@ public Builder setPredictionsFormatBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); predictionsFormat_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -6179,6 +7011,57 @@ public interface OutputInfoOrBuilder */ com.google.protobuf.ByteString getBigqueryOutputDatasetBytes(); + /** + * + * + *
    +     * Output only. The resource name of the Vertex Managed Dataset created,
    +     * into which the prediction output is written. Format:
    +     * `projects/{project}/locations/{location}/datasets/{dataset}`
    +     * 
    + * + * + * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the vertexMultimodalDatasetName field is set. + */ + boolean hasVertexMultimodalDatasetName(); + + /** + * + * + *
    +     * Output only. The resource name of the Vertex Managed Dataset created,
    +     * into which the prediction output is written. Format:
    +     * `projects/{project}/locations/{location}/datasets/{dataset}`
    +     * 
    + * + * + * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The vertexMultimodalDatasetName. + */ + java.lang.String getVertexMultimodalDatasetName(); + + /** + * + * + *
    +     * Output only. The resource name of the Vertex Managed Dataset created,
    +     * into which the prediction output is written. Format:
    +     * `projects/{project}/locations/{location}/datasets/{dataset}`
    +     * 
    + * + * + * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for vertexMultimodalDatasetName. + */ + com.google.protobuf.ByteString getVertexMultimodalDatasetNameBytes(); + /** * * @@ -6277,6 +7160,7 @@ public enum OutputLocationCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_OUTPUT_DIRECTORY(1), BIGQUERY_OUTPUT_DATASET(2), + VERTEX_MULTIMODAL_DATASET_NAME(5), OUTPUTLOCATION_NOT_SET(0); private final int value; @@ -6300,6 +7184,8 @@ public static OutputLocationCase forNumber(int value) { return GCS_OUTPUT_DIRECTORY; case 2: return BIGQUERY_OUTPUT_DATASET; + case 5: + return VERTEX_MULTIMODAL_DATASET_NAME; case 0: return OUTPUTLOCATION_NOT_SET; default: @@ -6471,6 +7357,91 @@ public com.google.protobuf.ByteString getBigqueryOutputDatasetBytes() { } } + public static final int VERTEX_MULTIMODAL_DATASET_NAME_FIELD_NUMBER = 5; + + /** + * + * + *
    +     * Output only. The resource name of the Vertex Managed Dataset created,
    +     * into which the prediction output is written. Format:
    +     * `projects/{project}/locations/{location}/datasets/{dataset}`
    +     * 
    + * + * + * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the vertexMultimodalDatasetName field is set. + */ + public boolean hasVertexMultimodalDatasetName() { + return outputLocationCase_ == 5; + } + + /** + * + * + *
    +     * Output only. The resource name of the Vertex Managed Dataset created,
    +     * into which the prediction output is written. Format:
    +     * `projects/{project}/locations/{location}/datasets/{dataset}`
    +     * 
    + * + * + * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The vertexMultimodalDatasetName. + */ + public java.lang.String getVertexMultimodalDatasetName() { + java.lang.Object ref = ""; + if (outputLocationCase_ == 5) { + ref = outputLocation_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputLocationCase_ == 5) { + outputLocation_ = s; + } + return s; + } + } + + /** + * + * + *
    +     * Output only. The resource name of the Vertex Managed Dataset created,
    +     * into which the prediction output is written. Format:
    +     * `projects/{project}/locations/{location}/datasets/{dataset}`
    +     * 
    + * + * + * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for vertexMultimodalDatasetName. + */ + public com.google.protobuf.ByteString getVertexMultimodalDatasetNameBytes() { + java.lang.Object ref = ""; + if (outputLocationCase_ == 5) { + ref = outputLocation_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (outputLocationCase_ == 5) { + outputLocation_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int BIGQUERY_OUTPUT_TABLE_FIELD_NUMBER = 4; @SuppressWarnings("serial") @@ -6553,6 +7524,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(bigqueryOutputTable_)) { com.google.protobuf.GeneratedMessage.writeString(output, 4, bigqueryOutputTable_); } + if (outputLocationCase_ == 5) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, outputLocation_); + } getUnknownFields().writeTo(output); } @@ -6571,6 +7545,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(bigqueryOutputTable_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(4, bigqueryOutputTable_); } + if (outputLocationCase_ == 5) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, outputLocation_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -6596,6 +7573,10 @@ public boolean equals(final java.lang.Object obj) { case 2: if (!getBigqueryOutputDataset().equals(other.getBigqueryOutputDataset())) return false; break; + case 5: + if (!getVertexMultimodalDatasetName().equals(other.getVertexMultimodalDatasetName())) + return false; + break; case 0: default: } @@ -6621,6 +7602,10 @@ public int hashCode() { hash = (37 * hash) + BIGQUERY_OUTPUT_DATASET_FIELD_NUMBER; hash = (53 * hash) + getBigqueryOutputDataset().hashCode(); break; + case 5: + hash = (37 * hash) + VERTEX_MULTIMODAL_DATASET_NAME_FIELD_NUMBER; + hash = (53 * hash) + getVertexMultimodalDatasetName().hashCode(); + break; case 0: default: } @@ -6812,7 +7797,7 @@ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo buildPa private void buildPartial0( com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.bigqueryOutputTable_ = bigqueryOutputTable_; } } @@ -6841,7 +7826,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getBigqueryOutputTable().isEmpty()) { bigqueryOutputTable_ = other.bigqueryOutputTable_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } switch (other.getOutputLocationCase()) { @@ -6859,6 +7844,13 @@ public Builder mergeFrom( onChanged(); break; } + case VERTEX_MULTIMODAL_DATASET_NAME: + { + outputLocationCase_ = 5; + outputLocation_ = other.outputLocation_; + onChanged(); + break; + } case OUTPUTLOCATION_NOT_SET: { break; @@ -6907,9 +7899,16 @@ public Builder mergeFrom( case 34: { bigqueryOutputTable_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + outputLocationCase_ = 5; + outputLocation_ = s; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7245,6 +8244,169 @@ public Builder setBigqueryOutputDatasetBytes(com.google.protobuf.ByteString valu return this; } + /** + * + * + *
    +       * Output only. The resource name of the Vertex Managed Dataset created,
    +       * into which the prediction output is written. Format:
    +       * `projects/{project}/locations/{location}/datasets/{dataset}`
    +       * 
    + * + * + * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the vertexMultimodalDatasetName field is set. + */ + @java.lang.Override + public boolean hasVertexMultimodalDatasetName() { + return outputLocationCase_ == 5; + } + + /** + * + * + *
    +       * Output only. The resource name of the Vertex Managed Dataset created,
    +       * into which the prediction output is written. Format:
    +       * `projects/{project}/locations/{location}/datasets/{dataset}`
    +       * 
    + * + * + * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The vertexMultimodalDatasetName. + */ + @java.lang.Override + public java.lang.String getVertexMultimodalDatasetName() { + java.lang.Object ref = ""; + if (outputLocationCase_ == 5) { + ref = outputLocation_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputLocationCase_ == 5) { + outputLocation_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +       * Output only. The resource name of the Vertex Managed Dataset created,
    +       * into which the prediction output is written. Format:
    +       * `projects/{project}/locations/{location}/datasets/{dataset}`
    +       * 
    + * + * + * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for vertexMultimodalDatasetName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVertexMultimodalDatasetNameBytes() { + java.lang.Object ref = ""; + if (outputLocationCase_ == 5) { + ref = outputLocation_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (outputLocationCase_ == 5) { + outputLocation_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +       * Output only. The resource name of the Vertex Managed Dataset created,
    +       * into which the prediction output is written. Format:
    +       * `projects/{project}/locations/{location}/datasets/{dataset}`
    +       * 
    + * + * + * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The vertexMultimodalDatasetName to set. + * @return This builder for chaining. + */ + public Builder setVertexMultimodalDatasetName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputLocationCase_ = 5; + outputLocation_ = value; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Output only. The resource name of the Vertex Managed Dataset created,
    +       * into which the prediction output is written. Format:
    +       * `projects/{project}/locations/{location}/datasets/{dataset}`
    +       * 
    + * + * + * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearVertexMultimodalDatasetName() { + if (outputLocationCase_ == 5) { + outputLocationCase_ = 0; + outputLocation_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
    +       * Output only. The resource name of the Vertex Managed Dataset created,
    +       * into which the prediction output is written. Format:
    +       * `projects/{project}/locations/{location}/datasets/{dataset}`
    +       * 
    + * + * + * string vertex_multimodal_dataset_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for vertexMultimodalDatasetName to set. + * @return This builder for chaining. + */ + public Builder setVertexMultimodalDatasetNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputLocationCase_ = 5; + outputLocation_ = value; + onChanged(); + return this; + } + private java.lang.Object bigqueryOutputTable_ = ""; /** @@ -7319,7 +8481,7 @@ public Builder setBigqueryOutputTable(java.lang.String value) { throw new NullPointerException(); } bigqueryOutputTable_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -7340,7 +8502,7 @@ public Builder setBigqueryOutputTable(java.lang.String value) { */ public Builder clearBigqueryOutputTable() { bigqueryOutputTable_ = getDefaultInstance().getBigqueryOutputTable(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -7366,7 +8528,7 @@ public Builder setBigqueryOutputTableBytes(com.google.protobuf.ByteString value) } checkByteStringIsUtf8(value); bigqueryOutputTable_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobProto.java index 0b92a40ac8f1..f310806ee5b5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobProto.java @@ -85,7 +85,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "1beta1/model_deployment_monitoring_job.proto\0326google/cloud/aiplatform/v1beta1/mo" + "del_monitoring.proto\032?google/cloud/aiplatform/v1beta1/unmanaged_container_model." + "proto\032\034google/protobuf/struct.proto\032\037goo" - + "gle/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\305\026\n" + + "gle/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\374\030\n" + "\022BatchPredictionJob\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\0223\n" @@ -135,40 +135,47 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027model_monitoring_status\030 \001(\0132\022.google.rpc.StatusB\003\340A\003\022!\n" + "\031disable_container_logging\030\" \001(\010\022\032\n\r" + "satisfies_pzs\030$ \001(\010B\003\340A\003\022\032\n\r" - + "satisfies_pzi\030% \001(\010B\003\340A\003\032\304\001\n" + + "satisfies_pzi\030% \001(\010B\003\340A\003\032\260\002\n" + "\013InputConfig\022@\n\n" + "gcs_source\030\002 \001(\0132*.google.cloud.aiplatform.v1beta1.GcsSourceH\000\022J\n" + "\017bigquery_source\030\003" - + " \001(\0132/.google.cloud.aiplatform.v1beta1.BigQuerySourceH\000\022\035\n" + + " \001(\0132/.google.cloud.aiplatform.v1beta1.BigQuerySourceH\000\022j\n" + + " vertex_multimodal_dataset_source\030\004 \001(\0132>.goo" + + "gle.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSourceH\000\022\035\n" + "\020instances_format\030\001 \001(\tB\003\340A\002B\010\n" + "\006source\032l\n" + "\016InstanceConfig\022\025\n\r" + "instance_type\030\001 \001(\t\022\021\n" + "\tkey_field\030\002 \001(\t\022\027\n" + "\017included_fields\030\003 \003(\t\022\027\n" - + "\017excluded_fields\030\004 \003(\t\032\340\001\n" + + "\017excluded_fields\030\004 \003(\t\032\326\002\n" + "\014OutputConfig\022J\n" + "\017gcs_destination\030\002" + " \001(\0132/.google.cloud.aiplatform.v1beta1.GcsDestinationH\000\022T\n" - + "\024bigquery_destination\030\003 \001(\01324.google.clou" - + "d.aiplatform.v1beta1.BigQueryDestinationH\000\022\037\n" + + "\024bigquery_destination\030\003" + + " \001(\01324.google.cloud.aiplatform.v1beta1.BigQueryDestinationH\000\022t\n" + + "%vertex_multimodal_dataset_destination\030\006 \001(\0132C." + + "google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestinationH\000\022\037\n" + "\022predictions_format\030\001 \001(\tB\003\340A\002B\r\n" - + "\013destination\032\220\001\n\n" + + "\013destination\032\345\001\n" + + "\n" + "OutputInfo\022#\n" + "\024gcs_output_directory\030\001 \001(\tB\003\340A\003H\000\022&\n" - + "\027bigquery_output_dataset\030\002 \001(\tB\003\340A\003H\000\022\"\n" + + "\027bigquery_output_dataset\030\002 \001(\tB\003\340A\003H\000\022S\n" + + "\036vertex_multimodal_dataset_name\030\005 \001(\tB)\340A\003\372A#\n" + + "!aiplatform.googleapis.com/DatasetH\000\022\"\n" + "\025bigquery_output_table\030\004 \001(\tB\003\340A\003B\021\n" + "\017output_location\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\206\001\352A\202\001\n" - + ",aiplatform.googleapis.com/BatchPredictionJob\022Rprojects/{project}/lo" - + "cations/{location}/batchPredictionJobs/{batch_prediction_job}B\356\001\n" - + "#com.google.cloud.aiplatform.v1beta1B\027BatchPredictionJo" - + "bProtoP\001ZCcloud.google.com/go/aiplatform" - + "/apiv1beta1/aiplatformpb;aiplatformpb\252\002\037" - + "Google.Cloud.AIPlatform.V1Beta1\312\002\037Google" - + "\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" + + ",aiplatform.googleapis.com/BatchPredictionJob\022Rprojects/{project}/locations/{" + + "location}/batchPredictionJobs/{batch_prediction_job}B\356\001\n" + + "#com.google.cloud.aiplatform.v1beta1B\027BatchPredictionJobProtoP\001Z" + + "Ccloud.google.com/go/aiplatform/apiv1bet" + + "a1/aiplatformpb;aiplatformpb\252\002\037Google.Cl" + + "oud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AI" + + "Platform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -236,7 +243,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_BatchPredictionJob_InputConfig_descriptor, new java.lang.String[] { - "GcsSource", "BigquerySource", "InstancesFormat", "Source", + "GcsSource", + "BigquerySource", + "VertexMultimodalDatasetSource", + "InstancesFormat", + "Source", }); internal_static_google_cloud_aiplatform_v1beta1_BatchPredictionJob_InstanceConfig_descriptor = internal_static_google_cloud_aiplatform_v1beta1_BatchPredictionJob_descriptor.getNestedType( @@ -254,7 +265,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_BatchPredictionJob_OutputConfig_descriptor, new java.lang.String[] { - "GcsDestination", "BigqueryDestination", "PredictionsFormat", "Destination", + "GcsDestination", + "BigqueryDestination", + "VertexMultimodalDatasetDestination", + "PredictionsFormat", + "Destination", }); internal_static_google_cloud_aiplatform_v1beta1_BatchPredictionJob_OutputInfo_descriptor = internal_static_google_cloud_aiplatform_v1beta1_BatchPredictionJob_descriptor.getNestedType( @@ -265,6 +280,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "GcsOutputDirectory", "BigqueryOutputDataset", + "VertexMultimodalDatasetName", "BigqueryOutputTable", "OutputLocation", }); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ComputationBasedMetricSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ComputationBasedMetricSpec.java new file mode 100644 index 000000000000..434a59e8b5ab --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ComputationBasedMetricSpec.java @@ -0,0 +1,1157 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
    + * Specification for a computation based metric.
    + * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec} + */ +@com.google.protobuf.Generated +public final class ComputationBasedMetricSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec) + ComputationBasedMetricSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ComputationBasedMetricSpec"); + } + + // Use ComputationBasedMetricSpec.newBuilder() to construct. + private ComputationBasedMetricSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ComputationBasedMetricSpec() { + type_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ComputationBasedMetricSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ComputationBasedMetricSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.class, + com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.Builder.class); + } + + /** + * + * + *
    +   * Types of computation based metrics.
    +   * 
    + * + * Protobuf enum {@code + * google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.ComputationBasedMetricType} + */ + public enum ComputationBasedMetricType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Unspecified computation based metric type.
    +     * 
    + * + * COMPUTATION_BASED_METRIC_TYPE_UNSPECIFIED = 0; + */ + COMPUTATION_BASED_METRIC_TYPE_UNSPECIFIED(0), + /** + * + * + *
    +     * Exact match metric.
    +     * 
    + * + * EXACT_MATCH = 1; + */ + EXACT_MATCH(1), + /** + * + * + *
    +     * BLEU metric.
    +     * 
    + * + * BLEU = 2; + */ + BLEU(2), + /** + * + * + *
    +     * ROUGE metric.
    +     * 
    + * + * ROUGE = 3; + */ + ROUGE(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ComputationBasedMetricType"); + } + + /** + * + * + *
    +     * Unspecified computation based metric type.
    +     * 
    + * + * COMPUTATION_BASED_METRIC_TYPE_UNSPECIFIED = 0; + */ + public static final int COMPUTATION_BASED_METRIC_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * Exact match metric.
    +     * 
    + * + * EXACT_MATCH = 1; + */ + public static final int EXACT_MATCH_VALUE = 1; + + /** + * + * + *
    +     * BLEU metric.
    +     * 
    + * + * BLEU = 2; + */ + public static final int BLEU_VALUE = 2; + + /** + * + * + *
    +     * ROUGE metric.
    +     * 
    + * + * ROUGE = 3; + */ + public static final int ROUGE_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ComputationBasedMetricType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ComputationBasedMetricType forNumber(int value) { + switch (value) { + case 0: + return COMPUTATION_BASED_METRIC_TYPE_UNSPECIFIED; + case 1: + return EXACT_MATCH; + case 2: + return BLEU; + case 3: + return ROUGE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ComputationBasedMetricType findValueByNumber(int number) { + return ComputationBasedMetricType.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ComputationBasedMetricType[] VALUES = values(); + + public static ComputationBasedMetricType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ComputationBasedMetricType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.ComputationBasedMetricType) + } + + private int bitField0_; + public static final int TYPE_FIELD_NUMBER = 1; + private int type_ = 0; + + /** + * + * + *
    +   * Required. The type of the computation based metric.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.ComputationBasedMetricType type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the type field is set. + */ + @java.lang.Override + public boolean hasType() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. The type of the computation based metric.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.ComputationBasedMetricType type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
    +   * Required. The type of the computation based metric.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.ComputationBasedMetricType type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.ComputationBasedMetricType + getType() { + com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.ComputationBasedMetricType + result = + com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec + .ComputationBasedMetricType.forNumber(type_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.ComputationBasedMetricType + .UNRECOGNIZED + : result; + } + + public static final int PARAMETERS_FIELD_NUMBER = 2; + private com.google.protobuf.Struct parameters_; + + /** + * + * + *
    +   * Optional. A map of parameters for the metric, e.g. {"rouge_type":
    +   * "rougeL"}.
    +   * 
    + * + * + * optional .google.protobuf.Struct parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the parameters field is set. + */ + @java.lang.Override + public boolean hasParameters() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Optional. A map of parameters for the metric, e.g. {"rouge_type":
    +   * "rougeL"}.
    +   * 
    + * + * + * optional .google.protobuf.Struct parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The parameters. + */ + @java.lang.Override + public com.google.protobuf.Struct getParameters() { + return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_; + } + + /** + * + * + *
    +   * Optional. A map of parameters for the metric, e.g. {"rouge_type":
    +   * "rougeL"}.
    +   * 
    + * + * + * optional .google.protobuf.Struct parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { + return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, type_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getParameters()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getParameters()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec other = + (com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec) obj; + + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (type_ != other.type_) return false; + } + if (hasParameters() != other.hasParameters()) return false; + if (hasParameters()) { + if (!getParameters().equals(other.getParameters())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + } + if (hasParameters()) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getParameters().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Specification for a computation based metric.
    +   * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec) + com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ComputationBasedMetricSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ComputationBasedMetricSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.class, + com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetParametersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = 0; + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); + parametersBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ComputationBasedMetricSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec build() { + com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec buildPartial() { + com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec result = + new com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.parameters_ = parametersBuilder_ == null ? parameters_ : parametersBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.getDefaultInstance()) + return this; + if (other.hasType()) { + setTypeValue(other.getTypeValue()); + } + if (other.hasParameters()) { + mergeParameters(other.getParameters()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + internalGetParametersFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int type_ = 0; + + /** + * + * + *
    +     * Required. The type of the computation based metric.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.ComputationBasedMetricType type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the type field is set. + */ + @java.lang.Override + public boolean hasType() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Required. The type of the computation based metric.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.ComputationBasedMetricType type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
    +     * Required. The type of the computation based metric.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.ComputationBasedMetricType type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The type of the computation based metric.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.ComputationBasedMetricType type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.ComputationBasedMetricType + getType() { + com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.ComputationBasedMetricType + result = + com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec + .ComputationBasedMetricType.forNumber(type_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec + .ComputationBasedMetricType.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Required. The type of the computation based metric.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.ComputationBasedMetricType type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.ComputationBasedMetricType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The type of the computation based metric.
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.ComputationBasedMetricType type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Struct parameters_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + parametersBuilder_; + + /** + * + * + *
    +     * Optional. A map of parameters for the metric, e.g. {"rouge_type":
    +     * "rougeL"}.
    +     * 
    + * + * + * optional .google.protobuf.Struct parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the parameters field is set. + */ + public boolean hasParameters() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Optional. A map of parameters for the metric, e.g. {"rouge_type":
    +     * "rougeL"}.
    +     * 
    + * + * + * optional .google.protobuf.Struct parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The parameters. + */ + public com.google.protobuf.Struct getParameters() { + if (parametersBuilder_ == null) { + return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_; + } else { + return parametersBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. A map of parameters for the metric, e.g. {"rouge_type":
    +     * "rougeL"}.
    +     * 
    + * + * + * optional .google.protobuf.Struct parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParameters(com.google.protobuf.Struct value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parameters_ = value; + } else { + parametersBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A map of parameters for the metric, e.g. {"rouge_type":
    +     * "rougeL"}.
    +     * 
    + * + * + * optional .google.protobuf.Struct parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParameters(com.google.protobuf.Struct.Builder builderForValue) { + if (parametersBuilder_ == null) { + parameters_ = builderForValue.build(); + } else { + parametersBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A map of parameters for the metric, e.g. {"rouge_type":
    +     * "rougeL"}.
    +     * 
    + * + * + * optional .google.protobuf.Struct parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeParameters(com.google.protobuf.Struct value) { + if (parametersBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && parameters_ != null + && parameters_ != com.google.protobuf.Struct.getDefaultInstance()) { + getParametersBuilder().mergeFrom(value); + } else { + parameters_ = value; + } + } else { + parametersBuilder_.mergeFrom(value); + } + if (parameters_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. A map of parameters for the metric, e.g. {"rouge_type":
    +     * "rougeL"}.
    +     * 
    + * + * + * optional .google.protobuf.Struct parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearParameters() { + bitField0_ = (bitField0_ & ~0x00000002); + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); + parametersBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A map of parameters for the metric, e.g. {"rouge_type":
    +     * "rougeL"}.
    +     * 
    + * + * + * optional .google.protobuf.Struct parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getParametersBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetParametersFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. A map of parameters for the metric, e.g. {"rouge_type":
    +     * "rougeL"}.
    +     * 
    + * + * + * optional .google.protobuf.Struct parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { + if (parametersBuilder_ != null) { + return parametersBuilder_.getMessageOrBuilder(); + } else { + return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_; + } + } + + /** + * + * + *
    +     * Optional. A map of parameters for the metric, e.g. {"rouge_type":
    +     * "rougeL"}.
    +     * 
    + * + * + * optional .google.protobuf.Struct parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetParametersFieldBuilder() { + if (parametersBuilder_ == null) { + parametersBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getParameters(), getParentForChildren(), isClean()); + parameters_ = null; + } + return parametersBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec) + private static final com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec(); + } + + public static com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComputationBasedMetricSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ComputationBasedMetricSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ComputationBasedMetricSpecOrBuilder.java new file mode 100644 index 000000000000..191496234eab --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ComputationBasedMetricSpecOrBuilder.java @@ -0,0 +1,120 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface ComputationBasedMetricSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The type of the computation based metric.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.ComputationBasedMetricType type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the type field is set. + */ + boolean hasType(); + + /** + * + * + *
    +   * Required. The type of the computation based metric.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.ComputationBasedMetricType type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
    +   * Required. The type of the computation based metric.
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.ComputationBasedMetricType type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.ComputationBasedMetricType + getType(); + + /** + * + * + *
    +   * Optional. A map of parameters for the metric, e.g. {"rouge_type":
    +   * "rougeL"}.
    +   * 
    + * + * + * optional .google.protobuf.Struct parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the parameters field is set. + */ + boolean hasParameters(); + + /** + * + * + *
    +   * Optional. A map of parameters for the metric, e.g. {"rouge_type":
    +   * "rougeL"}.
    +   * 
    + * + * + * optional .google.protobuf.Struct parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The parameters. + */ + com.google.protobuf.Struct getParameters(); + + /** + * + * + *
    +   * Optional. A map of parameters for the metric, e.g. {"rouge_type":
    +   * "rougeL"}.
    +   * 
    + * + * + * optional .google.protobuf.Struct parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getParametersOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Dataset.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Dataset.java index cf2e82ea032a..0f31ddbc365f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Dataset.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Dataset.java @@ -100,10 +100,12 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * *
        * Output only. Identifier. The resource name of the Dataset.
    +   * Format:
    +   * `projects/{project}/locations/{location}/datasets/{dataset}`
        * 
    * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -126,10 +128,12 @@ public java.lang.String getName() { * *
        * Output only. Identifier. The resource name of the Dataset.
    +   * Format:
    +   * `projects/{project}/locations/{location}/datasets/{dataset}`
        * 
    * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. @@ -1829,10 +1833,12 @@ public Builder mergeFrom( * *
          * Output only. Identifier. The resource name of the Dataset.
    +     * Format:
    +     * `projects/{project}/locations/{location}/datasets/{dataset}`
          * 
    * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -1854,10 +1860,12 @@ public java.lang.String getName() { * *
          * Output only. Identifier. The resource name of the Dataset.
    +     * Format:
    +     * `projects/{project}/locations/{location}/datasets/{dataset}`
          * 
    * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. @@ -1879,10 +1887,12 @@ public com.google.protobuf.ByteString getNameBytes() { * *
          * Output only. Identifier. The resource name of the Dataset.
    +     * Format:
    +     * `projects/{project}/locations/{location}/datasets/{dataset}`
          * 
    * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The name to set. @@ -1903,10 +1913,12 @@ public Builder setName(java.lang.String value) { * *
          * Output only. Identifier. The resource name of the Dataset.
    +     * Format:
    +     * `projects/{project}/locations/{location}/datasets/{dataset}`
          * 
    * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -1923,10 +1935,12 @@ public Builder clearName() { * *
          * Output only. Identifier. The resource name of the Dataset.
    +     * Format:
    +     * `projects/{project}/locations/{location}/datasets/{dataset}`
          * 
    * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The bytes for name to set. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetOrBuilder.java index a2f0eee43956..fa2521cc6928 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetOrBuilder.java @@ -31,10 +31,12 @@ public interface DatasetOrBuilder * *
        * Output only. Identifier. The resource name of the Dataset.
    +   * Format:
    +   * `projects/{project}/locations/{location}/datasets/{dataset}`
        * 
    * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -46,10 +48,12 @@ public interface DatasetOrBuilder * *
        * Output only. Identifier. The resource name of the Dataset.
    +   * Format:
    +   * `projects/{project}/locations/{location}/datasets/{dataset}`
        * 
    * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetProto.java index 3fc18e403284..700bac0d1e7b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetProto.java @@ -82,9 +82,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032\037google/api/field_behavior.proto\032\031googl" + "e/api/resource.proto\0325google/cloud/aiplatform/v1beta1/encryption_spec.proto\032(goo" + "gle/cloud/aiplatform/v1beta1/io.proto\0321google/cloud/aiplatform/v1beta1/saved_que" - + "ry.proto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\225\006\n" - + "\007Dataset\022\024\n" - + "\004name\030\001 \001(\tB\006\340A\003\340A\010\022\031\n" + + "ry.proto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\273\006\n" + + "\007Dataset\022:\n" + + "\004name\030\001 \001(\tB,\340A\003\340A\010\372A#\n" + + "!aiplatform.googleapis.com/Dataset\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\022\023\n" + "\013description\030\020 \001(\t\022 \n" + "\023metadata_schema_uri\030\003 \001(\tB\003\340A\002\022-\n" @@ -95,11 +96,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_time\030\005" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\014\n" + "\004etag\030\006 \001(\t\022D\n" - + "\006labels\030\007 \003" - + "(\01324.google.cloud.aiplatform.v1beta1.Dataset.LabelsEntry\022B\n\r" + + "\006labels\030\007 \003(\013" + + "24.google.cloud.aiplatform.v1beta1.Dataset.LabelsEntry\022B\n\r" + "saved_queries\030\t \003(\0132+.google.cloud.aiplatform.v1beta1.SavedQuery\022H\n" - + "\017encryption_spec\030\013 \001(\0132/.google.c" - + "loud.aiplatform.v1beta1.EncryptionSpec\022\036\n" + + "\017encryption_spec\030\013" + + " \001(\0132/.google.cloud.aiplatform.v1beta1.EncryptionSpec\022\036\n" + "\021metadata_artifact\030\021 \001(\tB\003\340A\003\022\034\n" + "\017model_reference\030\022 \001(\tB\003\340A\001\022\032\n\r" + "satisfies_pzs\030\023 \001(\010B\003\340A\003\022\032\n\r" @@ -107,14 +108,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:b\352A_\n" - + "!aiplatform.googleapis.com/Data" - + "set\022:projects/{project}/locations/{location}/datasets/{dataset}\"\263\003\n" + + "!aiplatform.googleapis.com/Datase" + + "t\022:projects/{project}/locations/{location}/datasets/{dataset}\"\263\003\n" + "\020ImportDataConfig\022@\n\n" + "gcs_source\030\001 \001(\0132*.google.cloud.aiplatform.v1beta1.GcsSourceH\000\022_\n" - + "\020data_item_labels\030\002 \003(\0132E.google.cloud.aiplatfo" - + "rm.v1beta1.ImportDataConfig.DataItemLabelsEntry\022b\n" - + "\021annotation_labels\030\003 \003(\0132G.goo" - + "gle.cloud.aiplatform.v1beta1.ImportDataConfig.AnnotationLabelsEntry\022\036\n" + + "\020data_item_labels\030\002 \003(\0132E.google.cloud.aiplatform" + + ".v1beta1.ImportDataConfig.DataItemLabelsEntry\022b\n" + + "\021annotation_labels\030\003 \003(\0132G.googl" + + "e.cloud.aiplatform.v1beta1.ImportDataConfig.AnnotationLabelsEntry\022\036\n" + "\021import_schema_uri\030\004 \001(\tB\003\340A\002\0325\n" + "\023DataItemLabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -124,10 +125,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\002 \001(\t:\0028\001B\010\n" + "\006source\"\342\001\n" + "\020ExportDataConfig\022J\n" - + "\017gcs_destination\030\001 \001(\0132/.google.clo" - + "ud.aiplatform.v1beta1.GcsDestinationH\000\022N\n" - + "\016fraction_split\030\005 \001(\01324.google.cloud.ai" - + "platform.v1beta1.ExportFractionSplitH\001\022\032\n" + + "\017gcs_destination\030\001" + + " \001(\0132/.google.cloud.aiplatform.v1beta1.GcsDestinationH\000\022N\n" + + "\016fraction_split\030\005" + + " \001(\01324.google.cloud.aiplatform.v1beta1.ExportFractionSplitH\001\022\032\n" + "\022annotations_filter\030\002 \001(\tB\r\n" + "\013destinationB\007\n" + "\005split\"d\n" @@ -135,11 +136,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021training_fraction\030\001 \001(\001\022\033\n" + "\023validation_fraction\030\002 \001(\001\022\025\n\r" + "test_fraction\030\003 \001(\001B\343\001\n" - + "#com.google.cloud.aiplatform.v1beta1B\014Datase" - + "tProtoP\001ZCcloud.google.com/go/aiplatform" - + "/apiv1beta1/aiplatformpb;aiplatformpb\252\002\037" - + "Google.Cloud.AIPlatform.V1Beta1\312\002\037Google" - + "\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" + + "#com.google.cloud.aiplatform.v1beta1B\014DatasetP" + + "rotoP\001ZCcloud.google.com/go/aiplatform/a" + + "piv1beta1/aiplatformpb;aiplatformpb\252\002\037Go" + + "ogle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\C" + + "loud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -238,6 +239,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceProto.java index dad367de687a..563673c13d0f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceProto.java @@ -504,7 +504,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017template_config\030\001" + " \001(\01325.google.cloud.aiplatform.v1beta1.GeminiTemplateConfigH\000\022,\n" + "\035assembled_request_column_name\030\004 \001(\tB\003\340A\001H\000B\r\n" - + "\013read_config\"\336\005\n\r" + + "\013read_config\"\262\006\n\r" + "GeminiExample\0229\n" + "\005model\030\001 \001(\tB*\340A\001\372A$\n" + "\"aiplatform.googleapis.com/Endpoint\022?\n" @@ -522,9 +522,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132:.google.cloud.aiplatfo" + "rm.v1beta1.GeminiExample.LabelsEntryB\003\340A\001\022L\n" + "\017safety_settings\030\003 \003(\0132..google.clou" - + "d.aiplatform.v1beta1.SafetySettingB\003\340A\001\022Q\n" - + "\021generation_config\030\004 \001(\01321.google.clou" - + "d.aiplatform.v1beta1.GenerationConfigB\003\340A\001\032-\n" + + "d.aiplatform.v1beta1.SafetySettingB\003\340A\001\022R\n" + + "\022model_armor_config\030\013 \001(\01321.google.clo" + + "ud.aiplatform.v1beta1.ModelArmorConfigB\003\340A\001\022Q\n" + + "\021generation_config\030\004 \001(\01321.google." + + "cloud.aiplatform.v1beta1.GenerationConfigB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\025\n" @@ -532,128 +534,124 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023AssembleDataRequest\0227\n" + "\004name\030\001 \001(\tB)\340A\002\372A#\n" + "!aiplatform.googleapis.com/Dataset\022a\n" - + "\032gemini_request_read_config\030\006 \001(\01328.google.c" - + "loud.aiplatform.v1beta1.GeminiRequestReadConfigB\003\340A\001\"4\n" + + "\032gemini_request_read_config\030\006 \001(\01328.goog" + + "le.cloud.aiplatform.v1beta1.GeminiRequestReadConfigB\003\340A\001\"4\n" + "\024AssembleDataResponse\022\034\n" + "\024bigquery_destination\030\001 \001(\t\"t\n" + "\035AssembleDataOperationMetadata\022S\n" + "\020generic_metadata\030\001" + " \001(\01329.google.cloud.aiplatform.v1beta1.GenericOperationMetadata2\311*\n" + "\016DatasetService\022\205\002\n\r" - + "CreateDataset\0225.google.cloud.aip" - + "latform.v1beta1.CreateDatasetRequest\032\035.google.longrunning.Operation\"\235\001\312A)\n" - + "\007Dataset\022\036CreateDatasetOperationMetadata\332A\016par" - + "ent,dataset\202\323\344\223\002Z\"1/v1beta1/{parent=proj" - + "ects/*/locations/*}/datasets:\007datasetZ\034\"\021/v1beta1/datasets:\007dataset\022\312\001\n\n" - + "GetDataset\0222.google.cloud.aiplatform.v1beta1.Get" - + "DatasetRequest\032(.google.cloud.aiplatform" - + ".v1beta1.Dataset\"^\332A\004name\202\323\344\223\002Q\0221/v1beta" - + "1/{name=projects/*/locations/*/datasets/*}Z\034\022\032/v1beta1/{name=datasets/*}\022\202\002\n\r" - + "UpdateDataset\0225.google.cloud.aiplatform.v1b" - + "eta1.UpdateDatasetRequest\032(.google.cloud" - + ".aiplatform.v1beta1.Dataset\"\217\001\332A\023dataset" - + ",update_mask\202\323\344\223\002s29/v1beta1/{dataset.na" - + "me=projects/*/locations/*/datasets/*}:\007d" - + "atasetZ-2\"/v1beta1/{dataset.name=datasets/*}:\007dataset\022\324\001\n" - + "\014ListDatasets\0224.google.cloud.aiplatform.v1beta1.ListDatasetsReq" - + "uest\0325.google.cloud.aiplatform.v1beta1.L" - + "istDatasetsResponse\"W\332A\006parent\202\323\344\223\002H\0221/v" - + "1beta1/{parent=projects/*/locations/*}/datasetsZ\023\022\021/v1beta1/datasets\022\371\001\n\r" - + "DeleteDataset\0225.google.cloud.aiplatform.v1beta1" - + ".DeleteDatasetRequest\032\035.google.longrunning.Operation\"\221\001\312A0\n" - + "\025google.protobuf.Empt" - + "y\022\027DeleteOperationMetadata\332A\004name\202\323\344\223\002Q*" - + "1/v1beta1/{name=projects/*/locations/*/d" - + "atasets/*}Z\034*\032/v1beta1/{name=datasets/*}\022\357\001\n\n" - + "ImportData\0222.google.cloud.aiplatfor" - + "m.v1beta1.ImportDataRequest\032\035.google.longrunning.Operation\"\215\001\312A1\n" - + "\022ImportDataResponse\022\033ImportDataOperationMetadata\332A\023name" - + ",import_configs\202\323\344\223\002=\"8/v1beta1/{name=pr" - + "ojects/*/locations/*/datasets/*}:import:\001*\022\356\001\n\n" - + "ExportData\0222.google.cloud.aiplatf" - + "orm.v1beta1.ExportDataRequest\032\035.google.longrunning.Operation\"\214\001\312A1\n" - + "\022ExportDataResponse\022\033ExportDataOperationMetadata\332A\022na" - + "me,export_config\202\323\344\223\002=\"8/v1beta1/{name=p" - + "rojects/*/locations/*/datasets/*}:export:\001*\022\347\002\n" - + "\024CreateDatasetVersion\022<.google.cloud.aiplatform.v1beta1.CreateDatasetVers" - + "ionRequest\032\035.google.longrunning.Operation\"\361\001\312A7\n" - + "\016DatasetVersion\022%CreateDatasetVersionOperationMetadata\332A\026parent,dataset_" - + "version\202\323\344\223\002\227\001\"C/v1beta1/{parent=project" - + "s/*/locations/*/datasets/*}/datasetVersions:\017dataset_versionZ?\",/v1beta1/{parent" - + "=datasets/*}/datasetVersions:\017dataset_version\022\344\002\n" - + "\024UpdateDatasetVersion\022<.google.cloud.aiplatform.v1beta1.UpdateDatasetVe" - + "rsionRequest\032/.google.cloud.aiplatform.v" - + "1beta1.DatasetVersion\"\334\001\332A\033dataset_versi" - + "on,update_mask\202\323\344\223\002\267\0012S/v1beta1/{dataset" - + "_version.name=projects/*/locations/*/datasets/*/datasetVersions/*}:\017dataset_vers" - + "ionZO2 * Output only. Identifier. The resource name of the DatasetVersion. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` * * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -111,10 +113,12 @@ public java.lang.String getName() { * *
        * Output only. Identifier. The resource name of the DatasetVersion.
    +   * Format:
    +   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
        * 
    * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. @@ -1118,10 +1122,12 @@ public Builder mergeFrom( * *
          * Output only. Identifier. The resource name of the DatasetVersion.
    +     * Format:
    +     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
          * 
    * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -1143,10 +1149,12 @@ public java.lang.String getName() { * *
          * Output only. Identifier. The resource name of the DatasetVersion.
    +     * Format:
    +     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
          * 
    * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. @@ -1168,10 +1176,12 @@ public com.google.protobuf.ByteString getNameBytes() { * *
          * Output only. Identifier. The resource name of the DatasetVersion.
    +     * Format:
    +     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
          * 
    * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The name to set. @@ -1192,10 +1202,12 @@ public Builder setName(java.lang.String value) { * *
          * Output only. Identifier. The resource name of the DatasetVersion.
    +     * Format:
    +     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
          * 
    * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -1212,10 +1224,12 @@ public Builder clearName() { * *
          * Output only. Identifier. The resource name of the DatasetVersion.
    +     * Format:
    +     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
          * 
    * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The bytes for name to set. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionOrBuilder.java index 5cc81f2db9ab..dd29d0c07a16 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionOrBuilder.java @@ -31,10 +31,12 @@ public interface DatasetVersionOrBuilder * *
        * Output only. Identifier. The resource name of the DatasetVersion.
    +   * Format:
    +   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
        * 
    * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -46,10 +48,12 @@ public interface DatasetVersionOrBuilder * *
        * Output only. Identifier. The resource name of the DatasetVersion.
    +   * Format:
    +   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
        * 
    * * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionProto.java index 496a098d7253..4f57711955e4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionProto.java @@ -53,30 +53,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n5google/cloud/aiplatform/v1beta1/datase" - + "t_version.proto\022\037google.cloud.aiplatform" + "\n" + + "5google/cloud/aiplatform/v1beta1/dataset_version.proto\022\037google.cloud.aiplatform" + ".v1beta1\032\037google/api/field_behavior.prot" + "o\032\031google/api/resource.proto\032\034google/pro" - + "tobuf/struct.proto\032\037google/protobuf/time" - + "stamp.proto\"\362\003\n\016DatasetVersion\022\024\n\004name\030\001" - + " \001(\tB\006\340A\003\340A\010\0224\n\013create_time\030\002 \001(\0132\032.goog" - + "le.protobuf.TimestampB\003\340A\003\0224\n\013update_tim" - + "e\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" - + "\022\014\n\004etag\030\003 \001(\t\022#\n\026big_query_dataset_name" - + "\030\004 \001(\tB\003\340A\003\022\024\n\014display_name\030\007 \001(\t\0220\n\010met" - + "adata\030\010 \001(\0132\026.google.protobuf.ValueB\006\340A\003" - + "\340A\002\022\034\n\017model_reference\030\t \001(\tB\003\340A\003\022\032\n\rsat" - + "isfies_pzs\030\n \001(\010B\003\340A\003\022\032\n\rsatisfies_pzi\030\013" - + " \001(\010B\003\340A\003:\214\001\352A\210\001\n(aiplatform.googleapis." - + "com/DatasetVersion\022\\projects/{project}/l" - + "ocations/{location}/datasets/{dataset}/d" - + "atasetVersions/{dataset_version}B\352\001\n#com" - + ".google.cloud.aiplatform.v1beta1B\023Datase" - + "tVersionProtoP\001ZCcloud.google.com/go/aip" - + "latform/apiv1beta1/aiplatformpb;aiplatfo" - + "rmpb\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002" - + "\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Googl" - + "e::Cloud::AIPlatform::V1beta1b\006proto3" + + "tobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\237\004\n" + + "\016DatasetVersion\022A\n" + + "\004name\030\001 \001(\tB3\340A\003\340A\010\372A*\n" + + "(aiplatform.googleapis.com/DatasetVersion\0224\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\006" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\014\n" + + "\004etag\030\003 \001(\t\022#\n" + + "\026big_query_dataset_name\030\004 \001(\tB\003\340A\003\022\024\n" + + "\014display_name\030\007 \001(\t\0220\n" + + "\010metadata\030\010" + + " \001(\0132\026.google.protobuf.ValueB\006\340A\003\340A\002\022\034\n" + + "\017model_reference\030\t \001(\tB\003\340A\003\022\032\n\r" + + "satisfies_pzs\030\n" + + " \001(\010B\003\340A\003\022\032\n\r" + + "satisfies_pzi\030\013 \001(\010B\003\340A\003:\214\001\352A\210\001\n" + + "(aiplatform.googleapis.com/DatasetVersion\022\\projects/{proje" + + "ct}/locations/{location}/datasets/{datas" + + "et}/datasetVersions/{dataset_version}B\352\001\n" + + "#com.google.cloud.aiplatform.v1beta1B\023DatasetVersionProtoP\001ZCcloud.google.com/g" + + "o/aiplatform/apiv1beta1/aiplatformpb;aip" + + "latformpb\252\002\037Google.Cloud.AIPlatform.V1Be" + + "ta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"" + + "Google::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -113,6 +117,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteRagCorpusRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteRagCorpusRequest.java index 7d2fb89cd9a1..f86f8f11d4c0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteRagCorpusRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteRagCorpusRequest.java @@ -153,6 +153,26 @@ public boolean getForce() { return force_; } + public static final int FORCE_DELETE_FIELD_NUMBER = 3; + private boolean forceDelete_ = false; + + /** + * + * + *
    +   * Optional. If set to true, any errors generated by external vector database
    +   * during the deletion will be ignored. The default value is false.
    +   * 
    + * + * bool force_delete = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The forceDelete. + */ + @java.lang.Override + public boolean getForceDelete() { + return forceDelete_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -173,6 +193,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (force_ != false) { output.writeBool(2, force_); } + if (forceDelete_ != false) { + output.writeBool(3, forceDelete_); + } getUnknownFields().writeTo(output); } @@ -188,6 +211,9 @@ public int getSerializedSize() { if (force_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_); } + if (forceDelete_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, forceDelete_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -206,6 +232,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (getForce() != other.getForce()) return false; + if (getForceDelete() != other.getForceDelete()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -221,6 +248,8 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (37 * hash) + FORCE_DELETE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForceDelete()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -365,6 +394,7 @@ public Builder clear() { bitField0_ = 0; name_ = ""; force_ = false; + forceDelete_ = false; return this; } @@ -407,6 +437,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DeleteRagCorpusRe if (((from_bitField0_ & 0x00000002) != 0)) { result.force_ = force_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.forceDelete_ = forceDelete_; + } } @java.lang.Override @@ -430,6 +463,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteRagCorpusRequ if (other.getForce() != false) { setForce(other.getForce()); } + if (other.getForceDelete() != false) { + setForceDelete(other.getForceDelete()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -468,6 +504,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 16 + case 24: + { + forceDelete_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -680,6 +722,65 @@ public Builder clearForce() { return this; } + private boolean forceDelete_; + + /** + * + * + *
    +     * Optional. If set to true, any errors generated by external vector database
    +     * during the deletion will be ignored. The default value is false.
    +     * 
    + * + * bool force_delete = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The forceDelete. + */ + @java.lang.Override + public boolean getForceDelete() { + return forceDelete_; + } + + /** + * + * + *
    +     * Optional. If set to true, any errors generated by external vector database
    +     * during the deletion will be ignored. The default value is false.
    +     * 
    + * + * bool force_delete = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The forceDelete to set. + * @return This builder for chaining. + */ + public Builder setForceDelete(boolean value) { + + forceDelete_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. If set to true, any errors generated by external vector database
    +     * during the deletion will be ignored. The default value is false.
    +     * 
    + * + * bool force_delete = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForceDelete() { + bitField0_ = (bitField0_ & ~0x00000004); + forceDelete_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.DeleteRagCorpusRequest) } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteRagCorpusRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteRagCorpusRequestOrBuilder.java index ed1d4e4ed5d3..3ad21ad3cff2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteRagCorpusRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteRagCorpusRequestOrBuilder.java @@ -74,4 +74,18 @@ public interface DeleteRagCorpusRequestOrBuilder * @return The force. */ boolean getForce(); + + /** + * + * + *
    +   * Optional. If set to true, any errors generated by external vector database
    +   * during the deletion will be ignored. The default value is false.
    +   * 
    + * + * bool force_delete = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The forceDelete. + */ + boolean getForceDelete(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateDatasetResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateDatasetResponse.java index 5515567f9bce..2f979b81332b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateDatasetResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateDatasetResponse.java @@ -24,7 +24,7 @@ * * *
    - * Response in LRO for EvaluationService.EvaluateDataset.
    + * The results from an evaluation run performed by the EvaluationService.
      * 
    * * Protobuf type {@code google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse} @@ -77,7 +77,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
        * Output only. Aggregation statistics derived from results of
    -   * EvaluationService.EvaluateDataset.
    +   * EvaluationService.
        * 
    * * @@ -96,7 +96,7 @@ public boolean hasAggregationOutput() { * *
        * Output only. Aggregation statistics derived from results of
    -   * EvaluationService.EvaluateDataset.
    +   * EvaluationService.
        * 
    * * @@ -117,7 +117,7 @@ public com.google.cloud.aiplatform.v1beta1.AggregationOutput getAggregationOutpu * *
        * Output only. Aggregation statistics derived from results of
    -   * EvaluationService.EvaluateDataset.
    +   * EvaluationService.
        * 
    * * @@ -139,7 +139,7 @@ public com.google.cloud.aiplatform.v1beta1.AggregationOutput getAggregationOutpu * * *
    -   * Output only. Output info for EvaluationService.EvaluateDataset.
    +   * Output only. Output info for EvaluationService.
        * 
    * * @@ -157,7 +157,7 @@ public boolean hasOutputInfo() { * * *
    -   * Output only. Output info for EvaluationService.EvaluateDataset.
    +   * Output only. Output info for EvaluationService.
        * 
    * * @@ -177,7 +177,7 @@ public com.google.cloud.aiplatform.v1beta1.OutputInfo getOutputInfo() { * * *
    -   * Output only. Output info for EvaluationService.EvaluateDataset.
    +   * Output only. Output info for EvaluationService.
        * 
    * * @@ -375,7 +375,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
    -   * Response in LRO for EvaluationService.EvaluateDataset.
    +   * The results from an evaluation run performed by the EvaluationService.
        * 
    * * Protobuf type {@code google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse} @@ -571,7 +571,7 @@ public Builder mergeFrom( * *
          * Output only. Aggregation statistics derived from results of
    -     * EvaluationService.EvaluateDataset.
    +     * EvaluationService.
          * 
    * * @@ -589,7 +589,7 @@ public boolean hasAggregationOutput() { * *
          * Output only. Aggregation statistics derived from results of
    -     * EvaluationService.EvaluateDataset.
    +     * EvaluationService.
          * 
    * * @@ -613,7 +613,7 @@ public com.google.cloud.aiplatform.v1beta1.AggregationOutput getAggregationOutpu * *
          * Output only. Aggregation statistics derived from results of
    -     * EvaluationService.EvaluateDataset.
    +     * EvaluationService.
          * 
    * * @@ -640,7 +640,7 @@ public Builder setAggregationOutput( * *
          * Output only. Aggregation statistics derived from results of
    -     * EvaluationService.EvaluateDataset.
    +     * EvaluationService.
          * 
    * * @@ -664,7 +664,7 @@ public Builder setAggregationOutput( * *
          * Output only. Aggregation statistics derived from results of
    -     * EvaluationService.EvaluateDataset.
    +     * EvaluationService.
          * 
    * * @@ -697,7 +697,7 @@ public Builder mergeAggregationOutput( * *
          * Output only. Aggregation statistics derived from results of
    -     * EvaluationService.EvaluateDataset.
    +     * EvaluationService.
          * 
    * * @@ -720,7 +720,7 @@ public Builder clearAggregationOutput() { * *
          * Output only. Aggregation statistics derived from results of
    -     * EvaluationService.EvaluateDataset.
    +     * EvaluationService.
          * 
    * * @@ -739,7 +739,7 @@ public Builder clearAggregationOutput() { * *
          * Output only. Aggregation statistics derived from results of
    -     * EvaluationService.EvaluateDataset.
    +     * EvaluationService.
          * 
    * * @@ -762,7 +762,7 @@ public Builder clearAggregationOutput() { * *
          * Output only. Aggregation statistics derived from results of
    -     * EvaluationService.EvaluateDataset.
    +     * EvaluationService.
          * 
    * * @@ -797,7 +797,7 @@ public Builder clearAggregationOutput() { * * *
    -     * Output only. Output info for EvaluationService.EvaluateDataset.
    +     * Output only. Output info for EvaluationService.
          * 
    * * @@ -814,7 +814,7 @@ public boolean hasOutputInfo() { * * *
    -     * Output only. Output info for EvaluationService.EvaluateDataset.
    +     * Output only. Output info for EvaluationService.
          * 
    * * @@ -837,7 +837,7 @@ public com.google.cloud.aiplatform.v1beta1.OutputInfo getOutputInfo() { * * *
    -     * Output only. Output info for EvaluationService.EvaluateDataset.
    +     * Output only. Output info for EvaluationService.
          * 
    * * @@ -862,7 +862,7 @@ public Builder setOutputInfo(com.google.cloud.aiplatform.v1beta1.OutputInfo valu * * *
    -     * Output only. Output info for EvaluationService.EvaluateDataset.
    +     * Output only. Output info for EvaluationService.
          * 
    * * @@ -885,7 +885,7 @@ public Builder setOutputInfo( * * *
    -     * Output only. Output info for EvaluationService.EvaluateDataset.
    +     * Output only. Output info for EvaluationService.
          * 
    * * @@ -915,7 +915,7 @@ public Builder mergeOutputInfo(com.google.cloud.aiplatform.v1beta1.OutputInfo va * * *
    -     * Output only. Output info for EvaluationService.EvaluateDataset.
    +     * Output only. Output info for EvaluationService.
          * 
    * * @@ -937,7 +937,7 @@ public Builder clearOutputInfo() { * * *
    -     * Output only. Output info for EvaluationService.EvaluateDataset.
    +     * Output only. Output info for EvaluationService.
          * 
    * * @@ -954,7 +954,7 @@ public com.google.cloud.aiplatform.v1beta1.OutputInfo.Builder getOutputInfoBuild * * *
    -     * Output only. Output info for EvaluationService.EvaluateDataset.
    +     * Output only. Output info for EvaluationService.
          * 
    * * @@ -975,7 +975,7 @@ public com.google.cloud.aiplatform.v1beta1.OutputInfoOrBuilder getOutputInfoOrBu * * *
    -     * Output only. Output info for EvaluationService.EvaluateDataset.
    +     * Output only. Output info for EvaluationService.
          * 
    * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateDatasetResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateDatasetResponseOrBuilder.java index 2f85e68931ec..2be1444d2af4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateDatasetResponseOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateDatasetResponseOrBuilder.java @@ -31,7 +31,7 @@ public interface EvaluateDatasetResponseOrBuilder * *
        * Output only. Aggregation statistics derived from results of
    -   * EvaluationService.EvaluateDataset.
    +   * EvaluationService.
        * 
    * * @@ -47,7 +47,7 @@ public interface EvaluateDatasetResponseOrBuilder * *
        * Output only. Aggregation statistics derived from results of
    -   * EvaluationService.EvaluateDataset.
    +   * EvaluationService.
        * 
    * * @@ -63,7 +63,7 @@ public interface EvaluateDatasetResponseOrBuilder * *
        * Output only. Aggregation statistics derived from results of
    -   * EvaluationService.EvaluateDataset.
    +   * EvaluationService.
        * 
    * * @@ -76,7 +76,7 @@ public interface EvaluateDatasetResponseOrBuilder * * *
    -   * Output only. Output info for EvaluationService.EvaluateDataset.
    +   * Output only. Output info for EvaluationService.
        * 
    * * @@ -91,7 +91,7 @@ public interface EvaluateDatasetResponseOrBuilder * * *
    -   * Output only. Output info for EvaluationService.EvaluateDataset.
    +   * Output only. Output info for EvaluationService.
        * 
    * * @@ -106,7 +106,7 @@ public interface EvaluateDatasetResponseOrBuilder * * *
    -   * Output only. Output info for EvaluationService.EvaluateDataset.
    +   * Output only. Output info for EvaluationService.
        * 
    * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesResponse.java index 211bb0b800e5..1c441fb3aaeb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesResponse.java @@ -51,7 +51,9 @@ private EvaluateInstancesResponse(com.google.protobuf.GeneratedMessage.Builder metricResults_; + + /** + * + * + *
    +   * Metric results for each instance.
    +   * The order of the metric results is guaranteed to be the same as the order
    +   * of the instances in the request.
    +   * 
    + * + * repeated .google.cloud.aiplatform.v1beta1.MetricResult metric_results = 43; + */ + @java.lang.Override + public java.util.List getMetricResultsList() { + return metricResults_; + } + + /** + * + * + *
    +   * Metric results for each instance.
    +   * The order of the metric results is guaranteed to be the same as the order
    +   * of the instances in the request.
    +   * 
    + * + * repeated .google.cloud.aiplatform.v1beta1.MetricResult metric_results = 43; + */ + @java.lang.Override + public java.util.List + getMetricResultsOrBuilderList() { + return metricResults_; + } + + /** + * + * + *
    +   * Metric results for each instance.
    +   * The order of the metric results is guaranteed to be the same as the order
    +   * of the instances in the request.
    +   * 
    + * + * repeated .google.cloud.aiplatform.v1beta1.MetricResult metric_results = 43; + */ + @java.lang.Override + public int getMetricResultsCount() { + return metricResults_.size(); + } + + /** + * + * + *
    +   * Metric results for each instance.
    +   * The order of the metric results is guaranteed to be the same as the order
    +   * of the instances in the request.
    +   * 
    + * + * repeated .google.cloud.aiplatform.v1beta1.MetricResult metric_results = 43; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricResult getMetricResults(int index) { + return metricResults_.get(index); + } + + /** + * + * + *
    +   * Metric results for each instance.
    +   * The order of the metric results is guaranteed to be the same as the order
    +   * of the instances in the request.
    +   * 
    + * + * repeated .google.cloud.aiplatform.v1beta1.MetricResult metric_results = 43; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricResultOrBuilder getMetricResultsOrBuilder( + int index) { + return metricResults_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2306,6 +2395,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io (com.google.cloud.aiplatform.v1beta1.RubricBasedInstructionFollowingResult) evaluationResults_); } + for (int i = 0; i < metricResults_.size(); i++) { + output.writeMessage(43, metricResults_.get(i)); + } getUnknownFields().writeTo(output); } @@ -2505,6 +2597,9 @@ public int getSerializedSize() { (com.google.cloud.aiplatform.v1beta1.RubricBasedInstructionFollowingResult) evaluationResults_); } + for (int i = 0; i < metricResults_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(43, metricResults_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2521,6 +2616,7 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse other = (com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse) obj; + if (!getMetricResultsList().equals(other.getMetricResultsList())) return false; if (!getEvaluationResultsCase().equals(other.getEvaluationResultsCase())) return false; switch (evaluationResultsCase_) { case 1: @@ -2650,6 +2746,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (getMetricResultsCount() > 0) { + hash = (37 * hash) + METRIC_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getMetricResultsList().hashCode(); + } switch (evaluationResultsCase_) { case 1: hash = (37 * hash) + EXACT_MATCH_RESULTS_FIELD_NUMBER; @@ -2923,6 +3023,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; + bitField1_ = 0; if (exactMatchResultsBuilder_ != null) { exactMatchResultsBuilder_.clear(); } @@ -3019,6 +3120,13 @@ public Builder clear() { if (rubricBasedInstructionFollowingResultBuilder_ != null) { rubricBasedInstructionFollowingResultBuilder_.clear(); } + if (metricResultsBuilder_ == null) { + metricResults_ = java.util.Collections.emptyList(); + } else { + metricResults_ = null; + metricResultsBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00000001); evaluationResultsCase_ = 0; evaluationResults_ = null; return this; @@ -3049,19 +3157,41 @@ public com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse build() { public com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse result = new com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } + if (bitField1_ != 0) { + buildPartial1(result); + } buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse result) { + if (metricResultsBuilder_ == null) { + if (((bitField1_ & 0x00000001) != 0)) { + metricResults_ = java.util.Collections.unmodifiableList(metricResults_); + bitField1_ = (bitField1_ & ~0x00000001); + } + result.metricResults_ = metricResults_; + } else { + result.metricResults_ = metricResultsBuilder_.build(); + } + } + private void buildPartial0( com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse result) { int from_bitField0_ = bitField0_; } + private void buildPartial1( + com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse result) { + int from_bitField1_ = bitField1_; + } + private void buildPartialOneofs( com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse result) { result.evaluationResultsCase_ = evaluationResultsCase_; @@ -3178,6 +3308,33 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRe if (other == com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse.getDefaultInstance()) return this; + if (metricResultsBuilder_ == null) { + if (!other.metricResults_.isEmpty()) { + if (metricResults_.isEmpty()) { + metricResults_ = other.metricResults_; + bitField1_ = (bitField1_ & ~0x00000001); + } else { + ensureMetricResultsIsMutable(); + metricResults_.addAll(other.metricResults_); + } + onChanged(); + } + } else { + if (!other.metricResults_.isEmpty()) { + if (metricResultsBuilder_.isEmpty()) { + metricResultsBuilder_.dispose(); + metricResultsBuilder_ = null; + metricResults_ = other.metricResults_; + bitField1_ = (bitField1_ & ~0x00000001); + metricResultsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMetricResultsFieldBuilder() + : null; + } else { + metricResultsBuilder_.addAllMessages(other.metricResults_); + } + } + } switch (other.getEvaluationResultsCase()) { case EXACT_MATCH_RESULTS: { @@ -3614,6 +3771,20 @@ public Builder mergeFrom( evaluationResultsCase_ = 38; break; } // case 306 + case 346: + { + com.google.cloud.aiplatform.v1beta1.MetricResult m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.MetricResult.parser(), + extensionRegistry); + if (metricResultsBuilder_ == null) { + ensureMetricResultsIsMutable(); + metricResults_.add(m); + } else { + metricResultsBuilder_.addMessage(m); + } + break; + } // case 346 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3646,6 +3817,7 @@ public Builder clearEvaluationResults() { } private int bitField0_; + private int bitField1_; private com.google.protobuf.SingleFieldBuilder< com.google.cloud.aiplatform.v1beta1.ExactMatchResults, @@ -11385,6 +11557,419 @@ public Builder clearRubricBasedInstructionFollowingResult() { return rubricBasedInstructionFollowingResultBuilder_; } + private java.util.List metricResults_ = + java.util.Collections.emptyList(); + + private void ensureMetricResultsIsMutable() { + if (!((bitField1_ & 0x00000001) != 0)) { + metricResults_ = + new java.util.ArrayList( + metricResults_); + bitField1_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.MetricResult, + com.google.cloud.aiplatform.v1beta1.MetricResult.Builder, + com.google.cloud.aiplatform.v1beta1.MetricResultOrBuilder> + metricResultsBuilder_; + + /** + * + * + *
    +     * Metric results for each instance.
    +     * The order of the metric results is guaranteed to be the same as the order
    +     * of the instances in the request.
    +     * 
    + * + * repeated .google.cloud.aiplatform.v1beta1.MetricResult metric_results = 43; + */ + public java.util.List getMetricResultsList() { + if (metricResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(metricResults_); + } else { + return metricResultsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Metric results for each instance.
    +     * The order of the metric results is guaranteed to be the same as the order
    +     * of the instances in the request.
    +     * 
    + * + * repeated .google.cloud.aiplatform.v1beta1.MetricResult metric_results = 43; + */ + public int getMetricResultsCount() { + if (metricResultsBuilder_ == null) { + return metricResults_.size(); + } else { + return metricResultsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Metric results for each instance.
    +     * The order of the metric results is guaranteed to be the same as the order
    +     * of the instances in the request.
    +     * 
    + * + * repeated .google.cloud.aiplatform.v1beta1.MetricResult metric_results = 43; + */ + public com.google.cloud.aiplatform.v1beta1.MetricResult getMetricResults(int index) { + if (metricResultsBuilder_ == null) { + return metricResults_.get(index); + } else { + return metricResultsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Metric results for each instance.
    +     * The order of the metric results is guaranteed to be the same as the order
    +     * of the instances in the request.
    +     * 
    + * + * repeated .google.cloud.aiplatform.v1beta1.MetricResult metric_results = 43; + */ + public Builder setMetricResults( + int index, com.google.cloud.aiplatform.v1beta1.MetricResult value) { + if (metricResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricResultsIsMutable(); + metricResults_.set(index, value); + onChanged(); + } else { + metricResultsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Metric results for each instance.
    +     * The order of the metric results is guaranteed to be the same as the order
    +     * of the instances in the request.
    +     * 
    + * + * repeated .google.cloud.aiplatform.v1beta1.MetricResult metric_results = 43; + */ + public Builder setMetricResults( + int index, com.google.cloud.aiplatform.v1beta1.MetricResult.Builder builderForValue) { + if (metricResultsBuilder_ == null) { + ensureMetricResultsIsMutable(); + metricResults_.set(index, builderForValue.build()); + onChanged(); + } else { + metricResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Metric results for each instance.
    +     * The order of the metric results is guaranteed to be the same as the order
    +     * of the instances in the request.
    +     * 
    + * + * repeated .google.cloud.aiplatform.v1beta1.MetricResult metric_results = 43; + */ + public Builder addMetricResults(com.google.cloud.aiplatform.v1beta1.MetricResult value) { + if (metricResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricResultsIsMutable(); + metricResults_.add(value); + onChanged(); + } else { + metricResultsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Metric results for each instance.
    +     * The order of the metric results is guaranteed to be the same as the order
    +     * of the instances in the request.
    +     * 
    + * + * repeated .google.cloud.aiplatform.v1beta1.MetricResult metric_results = 43; + */ + public Builder addMetricResults( + int index, com.google.cloud.aiplatform.v1beta1.MetricResult value) { + if (metricResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricResultsIsMutable(); + metricResults_.add(index, value); + onChanged(); + } else { + metricResultsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Metric results for each instance.
    +     * The order of the metric results is guaranteed to be the same as the order
    +     * of the instances in the request.
    +     * 
    + * + * repeated .google.cloud.aiplatform.v1beta1.MetricResult metric_results = 43; + */ + public Builder addMetricResults( + com.google.cloud.aiplatform.v1beta1.MetricResult.Builder builderForValue) { + if (metricResultsBuilder_ == null) { + ensureMetricResultsIsMutable(); + metricResults_.add(builderForValue.build()); + onChanged(); + } else { + metricResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Metric results for each instance.
    +     * The order of the metric results is guaranteed to be the same as the order
    +     * of the instances in the request.
    +     * 
    + * + * repeated .google.cloud.aiplatform.v1beta1.MetricResult metric_results = 43; + */ + public Builder addMetricResults( + int index, com.google.cloud.aiplatform.v1beta1.MetricResult.Builder builderForValue) { + if (metricResultsBuilder_ == null) { + ensureMetricResultsIsMutable(); + metricResults_.add(index, builderForValue.build()); + onChanged(); + } else { + metricResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Metric results for each instance.
    +     * The order of the metric results is guaranteed to be the same as the order
    +     * of the instances in the request.
    +     * 
    + * + * repeated .google.cloud.aiplatform.v1beta1.MetricResult metric_results = 43; + */ + public Builder addAllMetricResults( + java.lang.Iterable values) { + if (metricResultsBuilder_ == null) { + ensureMetricResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metricResults_); + onChanged(); + } else { + metricResultsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Metric results for each instance.
    +     * The order of the metric results is guaranteed to be the same as the order
    +     * of the instances in the request.
    +     * 
    + * + * repeated .google.cloud.aiplatform.v1beta1.MetricResult metric_results = 43; + */ + public Builder clearMetricResults() { + if (metricResultsBuilder_ == null) { + metricResults_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x00000001); + onChanged(); + } else { + metricResultsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Metric results for each instance.
    +     * The order of the metric results is guaranteed to be the same as the order
    +     * of the instances in the request.
    +     * 
    + * + * repeated .google.cloud.aiplatform.v1beta1.MetricResult metric_results = 43; + */ + public Builder removeMetricResults(int index) { + if (metricResultsBuilder_ == null) { + ensureMetricResultsIsMutable(); + metricResults_.remove(index); + onChanged(); + } else { + metricResultsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Metric results for each instance.
    +     * The order of the metric results is guaranteed to be the same as the order
    +     * of the instances in the request.
    +     * 
    + * + * repeated .google.cloud.aiplatform.v1beta1.MetricResult metric_results = 43; + */ + public com.google.cloud.aiplatform.v1beta1.MetricResult.Builder getMetricResultsBuilder( + int index) { + return internalGetMetricResultsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Metric results for each instance.
    +     * The order of the metric results is guaranteed to be the same as the order
    +     * of the instances in the request.
    +     * 
    + * + * repeated .google.cloud.aiplatform.v1beta1.MetricResult metric_results = 43; + */ + public com.google.cloud.aiplatform.v1beta1.MetricResultOrBuilder getMetricResultsOrBuilder( + int index) { + if (metricResultsBuilder_ == null) { + return metricResults_.get(index); + } else { + return metricResultsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Metric results for each instance.
    +     * The order of the metric results is guaranteed to be the same as the order
    +     * of the instances in the request.
    +     * 
    + * + * repeated .google.cloud.aiplatform.v1beta1.MetricResult metric_results = 43; + */ + public java.util.List + getMetricResultsOrBuilderList() { + if (metricResultsBuilder_ != null) { + return metricResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metricResults_); + } + } + + /** + * + * + *
    +     * Metric results for each instance.
    +     * The order of the metric results is guaranteed to be the same as the order
    +     * of the instances in the request.
    +     * 
    + * + * repeated .google.cloud.aiplatform.v1beta1.MetricResult metric_results = 43; + */ + public com.google.cloud.aiplatform.v1beta1.MetricResult.Builder addMetricResultsBuilder() { + return internalGetMetricResultsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.MetricResult.getDefaultInstance()); + } + + /** + * + * + *
    +     * Metric results for each instance.
    +     * The order of the metric results is guaranteed to be the same as the order
    +     * of the instances in the request.
    +     * 
    + * + * repeated .google.cloud.aiplatform.v1beta1.MetricResult metric_results = 43; + */ + public com.google.cloud.aiplatform.v1beta1.MetricResult.Builder addMetricResultsBuilder( + int index) { + return internalGetMetricResultsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.MetricResult.getDefaultInstance()); + } + + /** + * + * + *
    +     * Metric results for each instance.
    +     * The order of the metric results is guaranteed to be the same as the order
    +     * of the instances in the request.
    +     * 
    + * + * repeated .google.cloud.aiplatform.v1beta1.MetricResult metric_results = 43; + */ + public java.util.List + getMetricResultsBuilderList() { + return internalGetMetricResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.MetricResult, + com.google.cloud.aiplatform.v1beta1.MetricResult.Builder, + com.google.cloud.aiplatform.v1beta1.MetricResultOrBuilder> + internalGetMetricResultsFieldBuilder() { + if (metricResultsBuilder_ == null) { + metricResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.MetricResult, + com.google.cloud.aiplatform.v1beta1.MetricResult.Builder, + com.google.cloud.aiplatform.v1beta1.MetricResultOrBuilder>( + metricResults_, + ((bitField1_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + metricResults_ = null; + } + return metricResultsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse) } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesResponseOrBuilder.java index a116dc441d66..55e157f5a63e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesResponseOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesResponseOrBuilder.java @@ -1383,6 +1383,72 @@ public interface EvaluateInstancesResponseOrBuilder com.google.cloud.aiplatform.v1beta1.RubricBasedInstructionFollowingResultOrBuilder getRubricBasedInstructionFollowingResultOrBuilder(); + /** + * + * + *
    +   * Metric results for each instance.
    +   * The order of the metric results is guaranteed to be the same as the order
    +   * of the instances in the request.
    +   * 
    + * + * repeated .google.cloud.aiplatform.v1beta1.MetricResult metric_results = 43; + */ + java.util.List getMetricResultsList(); + + /** + * + * + *
    +   * Metric results for each instance.
    +   * The order of the metric results is guaranteed to be the same as the order
    +   * of the instances in the request.
    +   * 
    + * + * repeated .google.cloud.aiplatform.v1beta1.MetricResult metric_results = 43; + */ + com.google.cloud.aiplatform.v1beta1.MetricResult getMetricResults(int index); + + /** + * + * + *
    +   * Metric results for each instance.
    +   * The order of the metric results is guaranteed to be the same as the order
    +   * of the instances in the request.
    +   * 
    + * + * repeated .google.cloud.aiplatform.v1beta1.MetricResult metric_results = 43; + */ + int getMetricResultsCount(); + + /** + * + * + *
    +   * Metric results for each instance.
    +   * The order of the metric results is guaranteed to be the same as the order
    +   * of the instances in the request.
    +   * 
    + * + * repeated .google.cloud.aiplatform.v1beta1.MetricResult metric_results = 43; + */ + java.util.List + getMetricResultsOrBuilderList(); + + /** + * + * + *
    +   * Metric results for each instance.
    +   * The order of the metric results is guaranteed to be the same as the order
    +   * of the instances in the request.
    +   * 
    + * + * repeated .google.cloud.aiplatform.v1beta1.MetricResult metric_results = 43; + */ + com.google.cloud.aiplatform.v1beta1.MetricResultOrBuilder getMetricResultsOrBuilder(int index); + com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse.EvaluationResultsCase getEvaluationResultsCase(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceProto.java index 05db40f39988..ca31e43062ba 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceProto.java @@ -88,6 +88,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_EvaluateInstancesResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_EvaluateInstancesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_MetricResult_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_MetricResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_PredefinedMetricSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_PredefinedMetricSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ComputationBasedMetricSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ComputationBasedMetricSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_LLMBasedMetricSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_LLMBasedMetricSpec_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_ExactMatchInput_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -703,64 +719,70 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "o\032\027google/api/client.proto\032\037google/api/f" + "ield_behavior.proto\032\031google/api/resource" + ".proto\032-google/cloud/aiplatform/v1beta1/content.proto\032(google/cloud/aiplatform/v" - + "1beta1/io.proto\032/google/cloud/aiplatform" - + "/v1beta1/operation.proto\032#google/longrunning/operations.proto\"w\n" + + "1beta1/io.proto\032/google/cloud/aiplatform/v1beta1/operation.proto\032#google/longrun" + + "ning/operations.proto\032\034google/protobuf/struct.proto\032\027google/rpc/status.proto\"w\n" + " EvaluateDatasetOperationMetadata\022S\n" - + "\020generic_metadata\030\001 " - + "\001(\01329.google.cloud.aiplatform.v1beta1.GenericOperationMetadata\"\265\001\n" + + "\020generic_metadata\030\001 \001(\01329.google.cloud.aiplat" + + "form.v1beta1.GenericOperationMetadata\"\265\001\n" + "\027EvaluateDatasetResponse\022S\n" - + "\022aggregation_output\030\001 \001(\01322" - + ".google.cloud.aiplatform.v1beta1.AggregationOutputB\003\340A\003\022E\n" - + "\013output_info\030\003 \001(\0132+.g" - + "oogle.cloud.aiplatform.v1beta1.OutputInfoB\003\340A\003\"D\n\n" + + "\022aggregation_output\030\001" + + " \001(\01322.google.cloud.aiplatform.v1beta1.AggregationOutputB\003\340A\003\022E\n" + + "\013output_info\030\003" + + " \001(\0132+.google.cloud.aiplatform.v1beta1.OutputInfoB\003\340A\003\"D\n\n" + "OutputInfo\022#\n" + "\024gcs_output_directory\030\001 \001(\tB\003\340A\003H\000B\021\n" + "\017output_location\"\251\001\n" + "\021AggregationOutput\022C\n" - + "\007dataset\030\001 \001(\01322.go" - + "ogle.cloud.aiplatform.v1beta1.EvaluationDataset\022O\n" - + "\023aggregation_results\030\002 \003(\01322.g" - + "oogle.cloud.aiplatform.v1beta1.AggregationResult\"\260\004\n" + + "\007dataset\030\001" + + " \001(\01322.google.cloud.aiplatform.v1beta1.EvaluationDataset\022O\n" + + "\023aggregation_results\030\002" + + " \003(\01322.google.cloud.aiplatform.v1beta1.AggregationResult\"\260\004\n" + "\021AggregationResult\022Y\n" - + "\027pointwise_metric_result\030\005 \001(\01326.google.cloud.a" - + "iplatform.v1beta1.PointwiseMetricResultH\000\022W\n" - + "\026pairwise_metric_result\030\006 \001(\01325.goog" - + "le.cloud.aiplatform.v1beta1.PairwiseMetricResultH\000\022Z\n" + + "\027pointwise_metric_result\030\005 \001(\01326" + + ".google.cloud.aiplatform.v1beta1.PointwiseMetricResultH\000\022W\n" + + "\026pairwise_metric_result\030\006" + + " \001(\01325.google.cloud.aiplatform.v1beta1.PairwiseMetricResultH\000\022Z\n" + "\030exact_match_metric_value\030\007" + " \001(\01326.google.cloud.aiplatform.v1beta1.ExactMatchMetricValueH\000\022M\n" + "\021bleu_metric_value\030\010" + " \001(\01320.google.cloud.aiplatform.v1beta1.BleuMetricValueH\000\022O\n" + "\022rouge_metric_value\030\t" + " \001(\01321.google.cloud.aiplatform.v1beta1.RougeMetricValueH\000\022U\n" - + "\022aggregation_metric\030\004" - + " \001(\01629.google.cloud.aiplatform.v1beta1.Metric.AggregationMetricB\024\n" + + "\022aggregation_metric\030\004 \001(\01629.google.cloud" + + ".aiplatform.v1beta1.Metric.AggregationMetricB\024\n" + "\022aggregation_result\"\372\002\n" + "\026EvaluateDatasetRequest\022;\n" + "\010location\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022H\n" - + "\007dataset\030\002 \001(\01322.g" - + "oogle.cloud.aiplatform.v1beta1.EvaluationDatasetB\003\340A\002\022=\n" + + "\007dataset\030\002" + + " \001(\01322.google.cloud.aiplatform.v1beta1.EvaluationDatasetB\003\340A\002\022=\n" + "\007metrics\030\003" + " \003(\0132\'.google.cloud.aiplatform.v1beta1.MetricB\003\340A\002\022I\n\r" - + "output_config\030\004" - + " \001(\0132-.google.cloud.aiplatform.v1beta1.OutputConfigB\003\340A\002\022O\n" - + "\020autorater_config\030\005" - + " \001(\01320.google.cloud.aiplatform.v1beta1.AutoraterConfigB\003\340A\001\"i\n" + + "output_config\030\004 \001(\0132-.goo" + + "gle.cloud.aiplatform.v1beta1.OutputConfigB\003\340A\002\022O\n" + + "\020autorater_config\030\005 \001(\01320.googl" + + "e.cloud.aiplatform.v1beta1.AutoraterConfigB\003\340A\001\"i\n" + "\014OutputConfig\022J\n" - + "\017gcs_destination\030\001 \001(\0132/.goog" - + "le.cloud.aiplatform.v1beta1.GcsDestinationH\000B\r\n" - + "\013destination\"\310\005\n" - + "\006Metric\022U\n" - + "\025pointwise_metric_spec\030\002" - + " \001(\01324.google.cloud.aiplatform.v1beta1.PointwiseMetricSpecH\000\022S\n" - + "\024pairwise_metric_spec\030\003 \001(\01323.google.clo" - + "ud.aiplatform.v1beta1.PairwiseMetricSpecH\000\022K\n" - + "\020exact_match_spec\030\004 \001(\0132/.google.cl" - + "oud.aiplatform.v1beta1.ExactMatchSpecH\000\022>\n" + + "\017gcs_destination\030\001" + + " \001(\0132/.google.cloud.aiplatform.v1beta1.GcsDestinationH\000B\r\n" + + "\013destination\"\335\007\n" + + "\006Metric\022W\n" + + "\026predefined_metric_spec\030\010 \001(\01325." + + "google.cloud.aiplatform.v1beta1.PredefinedMetricSpecH\000\022d\n" + + "\035computation_based_metric_spec\030\t" + + " \001(\0132;.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpecH\000\022T\n" + + "\025llm_based_metric_spec\030\n" + + " \001(\01323.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpecH\000\022U\n" + + "\025pointwise_metric_spec\030\002 \001(\01324.goog" + + "le.cloud.aiplatform.v1beta1.PointwiseMetricSpecH\000\022S\n" + + "\024pairwise_metric_spec\030\003 \001(\0132" + + "3.google.cloud.aiplatform.v1beta1.PairwiseMetricSpecH\000\022K\n" + + "\020exact_match_spec\030\004 \001(\013" + + "2/.google.cloud.aiplatform.v1beta1.ExactMatchSpecH\000\022>\n" + "\tbleu_spec\030\005 \001(\0132).google.cloud.aiplatform.v1beta1.BleuSpecH\000\022@\n\n" + "rouge_spec\030\006 \001(\0132*.google.cloud.aiplatform.v1beta1.RougeSpecH\000\022[\n" - + "\023aggregation_metrics\030\001 \003(\01629" - + ".google.cloud.aiplatform.v1beta1.Metric.AggregationMetricB\003\340A\001\"\326\001\n" + + "\023aggregation_metrics\030\001" + + " \003(\01629.google.cloud.aiplatform.v1beta1.Metric.AggregationMetricB\003\340A\001\"\326\001\n" + "\021AggregationMetric\022\"\n" + "\036AGGREGATION_METRIC_UNSPECIFIED\020\000\022\013\n" + "\007AVERAGE\020\001\022\010\n" @@ -787,145 +809,186 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017_sampling_countB\017\n\r" + "_flip_enabled\"\202\031\n" + "\030EvaluateInstancesRequest\022M\n" - + "\021exact_match_input\030\002 \001(\01320.g" - + "oogle.cloud.aiplatform.v1beta1.ExactMatchInputH\000\022@\n\n" + + "\021exact_match_input\030\002" + + " \001(\01320.google.cloud.aiplatform.v1beta1.ExactMatchInputH\000\022@\n\n" + "bleu_input\030\003 \001(\0132*.google.cloud.aiplatform.v1beta1.BleuInputH\000\022B\n" + "\013rouge_input\030\004" + " \001(\0132+.google.cloud.aiplatform.v1beta1.RougeInputH\000\022F\n\r" + "fluency_input\030\005" + " \001(\0132-.google.cloud.aiplatform.v1beta1.FluencyInputH\000\022J\n" - + "\017coherence_input\030\006 \001(\0132" - + "/.google.cloud.aiplatform.v1beta1.CoherenceInputH\000\022D\n" - + "\014safety_input\030\010 \001(\0132,.googl" - + "e.cloud.aiplatform.v1beta1.SafetyInputH\000\022P\n" - + "\022groundedness_input\030\t \001(\01322.google.cl" - + "oud.aiplatform.v1beta1.GroundednessInputH\000\022N\n" - + "\021fulfillment_input\030\014 \001(\01321.google.c" - + "loud.aiplatform.v1beta1.FulfillmentInputH\000\022a\n" - + "\033summarization_quality_input\030\007 \001(\0132" - + ":.google.cloud.aiplatform.v1beta1.SummarizationQualityInputH\000\022r\n" - + "$pairwise_summarization_quality_input\030\027 \001(\0132B.google.clo" - + "ud.aiplatform.v1beta1.PairwiseSummarizationQualityInputH\000\022i\n" - + "\037summarization_helpfulness_input\030\016 \001(\0132>.google.cloud.aiplat" - + "form.v1beta1.SummarizationHelpfulnessInputH\000\022e\n" - + "\035summarization_verbosity_input\030\017 " - + "\001(\0132<.google.cloud.aiplatform.v1beta1.SummarizationVerbosityInputH\000\022j\n" + + "\017coherence_input\030\006" + + " \001(\0132/.google.cloud.aiplatform.v1beta1.CoherenceInputH\000\022D\n" + + "\014safety_input\030\010" + + " \001(\0132,.google.cloud.aiplatform.v1beta1.SafetyInputH\000\022P\n" + + "\022groundedness_input\030\t \001(\013" + + "22.google.cloud.aiplatform.v1beta1.GroundednessInputH\000\022N\n" + + "\021fulfillment_input\030\014 \001(" + + "\01321.google.cloud.aiplatform.v1beta1.FulfillmentInputH\000\022a\n" + + "\033summarization_quality_input\030\007" + + " \001(\0132:.google.cloud.aiplatform.v1beta1.SummarizationQualityInputH\000\022r\n" + + "$pairwise_summarization_quality_input\030\027 \001(\0132" + + "B.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInputH\000\022i\n" + + "\037summarization_helpfulness_input\030\016 \001(\0132>.google." + + "cloud.aiplatform.v1beta1.SummarizationHelpfulnessInputH\000\022e\n" + + "\035summarization_verbosity_input\030\017 \001(\0132<.google.cloud.aiplatfor" + + "m.v1beta1.SummarizationVerbosityInputH\000\022j\n" + " question_answering_quality_input\030\n" + " \001(\0132>.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInputH\000\022{\n" - + ")pairwise_question_answering_quality_input\030\030 \001(\0132F.google.clou" - + "d.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInputH\000\022n\n" - + "\"question_answering_relevance_input\030\020 \001(\0132@.google.cloud." - + "aiplatform.v1beta1.QuestionAnsweringRelevanceInputH\000\022r\n" - + "$question_answering_helpfulness_input\030\021 \001(\0132B.google.cloud.aiplat" - + "form.v1beta1.QuestionAnsweringHelpfulnessInputH\000\022r\n" - + "$question_answering_correctness_input\030\022 \001(\0132B.google.cloud.aiplatform" - + ".v1beta1.QuestionAnsweringCorrectnessInputH\000\022W\n" - + "\026pointwise_metric_input\030\034 \001(\01325.g" - + "oogle.cloud.aiplatform.v1beta1.PointwiseMetricInputH\000\022U\n" + + ")pairwise_question_answering_quality_input\030\030 \001(\0132F" + + ".google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInputH\000\022n\n" + + "\"question_answering_relevance_input\030\020 \001(\0132@.g" + + "oogle.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInputH\000\022r\n" + + "$question_answering_helpfulness_input\030\021 \001(\0132B.google." + + "cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInputH\000\022r\n" + + "$question_answering_correctness_input\030\022 \001(\0132B.google.clou" + + "d.aiplatform.v1beta1.QuestionAnsweringCorrectnessInputH\000\022W\n" + + "\026pointwise_metric_input\030\034" + + " \001(\01325.google.cloud.aiplatform.v1beta1.PointwiseMetricInputH\000\022U\n" + "\025pairwise_metric_input\030\035" + " \001(\01324.google.cloud.aiplatform.v1beta1.PairwiseMetricInputH\000\022T\n" - + "\025tool_call_valid_input\030\023" - + " \001(\01323.google.cloud.aiplatform.v1beta1.ToolCallValidInputH\000\022T\n" - + "\025tool_name_match_input\030\024" - + " \001(\01323.google.cloud.aiplatform.v1beta1.ToolNameMatchInputH\000\022e\n" - + "\036tool_parameter_key_match_input\030\025 \001(\0132;.googl" - + "e.cloud.aiplatform.v1beta1.ToolParameterKeyMatchInputH\000\022c\n" - + "\035tool_parameter_kv_match_input\030\026" - + " \001(\0132:.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchInputH\000\022B\n" + + "\025tool_call_valid_input\030\023 \001(\01323.google.cloud.a" + + "iplatform.v1beta1.ToolCallValidInputH\000\022T\n" + + "\025tool_name_match_input\030\024 \001(\01323.google.c" + + "loud.aiplatform.v1beta1.ToolNameMatchInputH\000\022e\n" + + "\036tool_parameter_key_match_input\030\025" + + " \001(\0132;.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchInputH\000\022c\n" + + "\035tool_parameter_kv_match_input\030\026 \001(\0132:.google.clou" + + "d.aiplatform.v1beta1.ToolParameterKVMatchInputH\000\022B\n" + "\013comet_input\030\037" + " \001(\0132+.google.cloud.aiplatform.v1beta1.CometInputH\000\022F\n\r" + "metricx_input\030 " + " \001(\0132-.google.cloud.aiplatform.v1beta1.MetricxInputH\000\022b\n" - + "\034trajectory_exact_match_input\030!" - + " \001(\0132:.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInputH\000\022g\n" - + "\037trajectory_in_order_match_input\030\" \001(\0132<." - + "google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInputH\000\022i\n" - + " trajectory_any_order_match_input\030# \001(\0132=.google.cloud.a" - + "iplatform.v1beta1.TrajectoryAnyOrderMatchInputH\000\022_\n" + + "\034trajectory_exact_match_input\030! \001(\0132:.google.clou" + + "d.aiplatform.v1beta1.TrajectoryExactMatchInputH\000\022g\n" + + "\037trajectory_in_order_match_input\030\"" + + " \001(\0132<.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInputH\000\022i\n" + + " trajectory_any_order_match_input\030# \001(\0132=.go" + + "ogle.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInputH\000\022_\n" + "\032trajectory_precision_input\030%" + " \001(\01329.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInputH\000\022Y\n" - + "\027trajectory_recall_input\030&" - + " \001(\01326.google.cloud.aiplatform.v1beta1.TrajectoryRecallInputH\000\022i\n" - + " trajectory_single_tool_use_input\030\' \001(\0132=" - + ".google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInputH\000\022y\n" - + "(rubric_based_instruction_following_input\030( \001(\0132E.goog" - + "le.cloud.aiplatform.v1beta1.RubricBasedInstructionFollowingInputH\000\022;\n" + + "\027trajectory_recall_input\030& \001(\01326.google." + + "cloud.aiplatform.v1beta1.TrajectoryRecallInputH\000\022i\n" + + " trajectory_single_tool_use_input\030\'" + + " \001(\0132=.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInputH\000\022y\n" + + "(rubric_based_instruction_following_input\030(" + + " \001(\0132E.google.cloud.aiplatform.v1beta1." + + "RubricBasedInstructionFollowingInputH\000\022;\n" + "\010location\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022O\n" - + "\020autorater_config\030\036 \001(\01320.goog" - + "le.cloud.aiplatform.v1beta1.AutoraterConfigB\003\340A\001B\017\n\r" - + "metric_inputs\"\324\030\n" + + "\020autorater_config\030\036" + + " \001(\01320.google.cloud.aiplatform.v1beta1.AutoraterConfigB\003\340A\001B\017\n\r" + + "metric_inputs\"\233\031\n" + "\031EvaluateInstancesResponse\022Q\n" + "\023exact_match_results\030\001" + " \001(\01322.google.cloud.aiplatform.v1beta1.ExactMatchResultsH\000\022D\n" - + "\014bleu_results\030\002 \001(\013" - + "2,.google.cloud.aiplatform.v1beta1.BleuResultsH\000\022F\n\r" - + "rouge_results\030\003 \001(\0132-.google" - + ".cloud.aiplatform.v1beta1.RougeResultsH\000\022H\n" - + "\016fluency_result\030\004" - + " \001(\0132..google.cloud.aiplatform.v1beta1.FluencyResultH\000\022L\n" - + "\020coherence_result\030\005" - + " \001(\01320.google.cloud.aiplatform.v1beta1.CoherenceResultH\000\022F\n\r" + + "\014bleu_results\030\002" + + " \001(\0132,.google.cloud.aiplatform.v1beta1.BleuResultsH\000\022F\n\r" + + "rouge_results\030\003 " + + "\001(\0132-.google.cloud.aiplatform.v1beta1.RougeResultsH\000\022H\n" + + "\016fluency_result\030\004 \001(\0132..g" + + "oogle.cloud.aiplatform.v1beta1.FluencyResultH\000\022L\n" + + "\020coherence_result\030\005 \001(\01320.googl" + + "e.cloud.aiplatform.v1beta1.CoherenceResultH\000\022F\n\r" + "safety_result\030\007" + " \001(\0132-.google.cloud.aiplatform.v1beta1.SafetyResultH\000\022R\n" - + "\023groundedness_result\030\010" - + " \001(\01323.google.cloud.aiplatform.v1beta1.GroundednessResultH\000\022P\n" - + "\022fulfillment_result\030\013" - + " \001(\01322.google.cloud.aiplatform.v1beta1.FulfillmentResultH\000\022c\n" - + "\034summarization_quality_result\030\006 \001(\0132;.google.cl" - + "oud.aiplatform.v1beta1.SummarizationQualityResultH\000\022t\n" - + "%pairwise_summarization_quality_result\030\026 \001(\0132C.google.cloud.aiplat" - + "form.v1beta1.PairwiseSummarizationQualityResultH\000\022k\n" + + "\023groundedness_result\030\010 \001(\01323.google.cloud" + + ".aiplatform.v1beta1.GroundednessResultH\000\022P\n" + + "\022fulfillment_result\030\013 \001(\01322.google.cl" + + "oud.aiplatform.v1beta1.FulfillmentResultH\000\022c\n" + + "\034summarization_quality_result\030\006 \001(\013" + + "2;.google.cloud.aiplatform.v1beta1.SummarizationQualityResultH\000\022t\n" + + "%pairwise_summarization_quality_result\030\026 \001(\0132C.google." + + "cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResultH\000\022k\n" + " summarization_helpfulness_result\030\r" - + " \001(\0132?.google.cloud.aiplatform.v1" - + "beta1.SummarizationHelpfulnessResultH\000\022g\n" - + "\036summarization_verbosity_result\030\016 \001(\0132=" - + ".google.cloud.aiplatform.v1beta1.SummarizationVerbosityResultH\000\022l\n" - + "!question_answering_quality_result\030\t \001(\0132?.google.clou" - + "d.aiplatform.v1beta1.QuestionAnsweringQualityResultH\000\022}\n" - + "*pairwise_question_answering_quality_result\030\027 \001(\0132G.google.cloud" - + ".aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResultH\000\022p\n" - + "#question_answering_relevance_result\030\017 \001(\0132A.google.cloud" - + ".aiplatform.v1beta1.QuestionAnsweringRelevanceResultH\000\022t\n" - + "%question_answering_helpfulness_result\030\020 \001(\0132C.google.cloud.aip" - + "latform.v1beta1.QuestionAnsweringHelpfulnessResultH\000\022t\n" - + "%question_answering_correctness_result\030\021 \001(\0132C.google.cloud.aipla" - + "tform.v1beta1.QuestionAnsweringCorrectnessResultH\000\022Y\n" - + "\027pointwise_metric_result\030\033 " - + "\001(\01326.google.cloud.aiplatform.v1beta1.PointwiseMetricResultH\000\022W\n" - + "\026pairwise_metric_result\030\034" - + " \001(\01325.google.cloud.aiplatform.v1beta1.PairwiseMetricResultH\000\022X\n" - + "\027tool_call_valid_results\030\022 \001(\01325.google.cloud.a" - + "iplatform.v1beta1.ToolCallValidResultsH\000\022X\n" - + "\027tool_name_match_results\030\023 \001(\01325.goog" - + "le.cloud.aiplatform.v1beta1.ToolNameMatchResultsH\000\022i\n" - + " tool_parameter_key_match_results\030\024" - + " \001(\0132=.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchResultsH\000\022g\n" - + "\037tool_parameter_kv_match_results\030\025 \001(\0132<" - + ".google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResultsH\000\022D\n" + + " \001(\0132?.google.cloud.a" + + "iplatform.v1beta1.SummarizationHelpfulnessResultH\000\022g\n" + + "\036summarization_verbosity_result\030\016" + + " \001(\0132=.google.cloud.aiplatform.v1beta1.SummarizationVerbosityResultH\000\022l\n" + + "!question_answering_quality_result\030\t \001(\0132?" + + ".google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResultH\000\022}\n" + + "*pairwise_question_answering_quality_result\030\027 \001(\0132G." + + "google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResultH\000\022p\n" + + "#question_answering_relevance_result\030\017 \001(\0132A." + + "google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResultH\000\022t\n" + + "%question_answering_helpfulness_result\030\020 \001(\0132C.goog" + + "le.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResultH\000\022t\n" + + "%question_answering_correctness_result\030\021 \001(\0132C.google" + + ".cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResultH\000\022Y\n" + + "\027pointwise_metric_result\030\033" + + " \001(\01326.google.cloud.aiplatform.v1beta1.PointwiseMetricResultH\000\022W\n" + + "\026pairwise_metric_result\030\034 \001(\01325.google.cloud" + + ".aiplatform.v1beta1.PairwiseMetricResultH\000\022X\n" + + "\027tool_call_valid_results\030\022 \001(\01325.go" + + "ogle.cloud.aiplatform.v1beta1.ToolCallValidResultsH\000\022X\n" + + "\027tool_name_match_results\030\023" + + " \001(\01325.google.cloud.aiplatform.v1beta1.ToolNameMatchResultsH\000\022i\n" + + " tool_parameter_key_match_results\030\024 \001(\0132=.google.cloud." + + "aiplatform.v1beta1.ToolParameterKeyMatchResultsH\000\022g\n" + + "\037tool_parameter_kv_match_results\030\025" + + " \001(\0132<.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResultsH\000\022D\n" + "\014comet_result\030\035" + " \001(\0132,.google.cloud.aiplatform.v1beta1.CometResultH\000\022H\n" - + "\016metricx_result\030\036 \001(\0132..g" - + "oogle.cloud.aiplatform.v1beta1.MetricxResultH\000\022f\n" - + "\036trajectory_exact_match_results\030\037" - + " \001(\0132<.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResultsH\000\022k\n" - + "!trajectory_in_order_match_results\030 \001(\0132>.goog" - + "le.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResultsH\000\022m\n" - + "\"trajectory_any_order_match_results\030! \001(\0132?.google.cloud.a" - + "iplatform.v1beta1.TrajectoryAnyOrderMatchResultsH\000\022c\n" - + "\034trajectory_precision_results\030#" - + " \001(\0132;.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionResultsH\000\022]\n" - + "\031trajectory_recall_results\030$ \001(\01328.google.clou" - + "d.aiplatform.v1beta1.TrajectoryRecallResultsH\000\022m\n" - + "\"trajectory_single_tool_use_results\030%" - + " \001(\0132?.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseResultsH\000\022{\n" - + ")rubric_based_instruction_following_result\030&" - + " \001(\0132F.google.cloud.aiplatform.v1bet" - + "a1.RubricBasedInstructionFollowingResultH\000B\024\n" - + "\022evaluation_results\"\251\001\n" + + "\016metricx_result\030\036" + + " \001(\0132..google.cloud.aiplatform.v1beta1.MetricxResultH\000\022f\n" + + "\036trajectory_exact_match_results\030\037 \001(\0132<.google.cloud.aiplat" + + "form.v1beta1.TrajectoryExactMatchResultsH\000\022k\n" + + "!trajectory_in_order_match_results\030 " + + " \001(\0132>.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResultsH\000\022m\n" + + "\"trajectory_any_order_match_results\030! \001(\0132?.go" + + "ogle.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResultsH\000\022c\n" + + "\034trajectory_precision_results\030# \001(\0132;.google.cloud.aipl" + + "atform.v1beta1.TrajectoryPrecisionResultsH\000\022]\n" + + "\031trajectory_recall_results\030$ \001(\01328" + + ".google.cloud.aiplatform.v1beta1.TrajectoryRecallResultsH\000\022m\n" + + "\"trajectory_single_tool_use_results\030% \001(\0132?.google.cloud.ai" + + "platform.v1beta1.TrajectorySingleToolUseResultsH\000\022{\n" + + ")rubric_based_instruction_following_result\030& \001(\0132F.google.cloud.aipl" + + "atform.v1beta1.RubricBasedInstructionFollowingResultH\000\022E\n" + + "\016metric_results\030+ \003(\0132-" + + ".google.cloud.aiplatform.v1beta1.MetricResultB\024\n" + + "\022evaluation_results\"\227\001\n" + + "\014MetricResult\022\027\n" + + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022\035\n" + + "\013explanation\030\003 \001(\tB\003\340A\003H\001\210\001\001\022+\n" + + "\005error\030\004" + + " \001(\0132\022.google.rpc.StatusB\003\340A\003H\002\210\001\001B\010\n" + + "\006_scoreB\016\n" + + "\014_explanationB\010\n" + + "\006_error\"s\n" + + "\024PredefinedMetricSpec\022\035\n" + + "\020metric_spec_name\030\001 \001(\tB\003\340A\002\022<\n" + + "\026metric_spec_parameters\030\002" + + " \001(\0132\027.google.protobuf.StructB\003\340A\001\"\316\002\n" + + "\032ComputationBasedMetricSpec\022n\n" + + "\004type\030\001 \001(\0162V.google.cloud.aiplatform.v1beta1.ComputationBasedMetric" + + "Spec.ComputationBasedMetricTypeB\003\340A\002H\000\210\001\001\0225\n\n" + + "parameters\030\002" + + " \001(\0132\027.google.protobuf.StructB\003\340A\001H\001\210\001\001\"q\n" + + "\032ComputationBasedMetricType\022-\n" + + ")COMPUTATION_BASED_METRIC_TYPE_UNSPECIFIED\020\000\022\017\n" + + "\013EXACT_MATCH\020\001\022\010\n" + + "\004BLEU\020\002\022\t\n" + + "\005ROUGE\020\003B\007\n" + + "\005_typeB\r\n" + + "\013_parameters\"\363\003\n" + + "\022LLMBasedMetricSpec\022\032\n" + + "\020rubric_group_key\030\004 \001(\tH\000\022b\n" + + "!predefined_rubric_generation_spec\030\006" + + " \001(\01325.google.cloud.aiplatform.v1beta1.PredefinedMetricSpecH\000\022(\n" + + "\026metric_prompt_template\030\001 \001(\tB\003\340A\002H\001\210\001\001\022$\n" + + "\022system_instruction\030\002 \001(\tB\003\340A\001H\002\210\001\001\022Z\n" + + "\026judge_autorater_config\030\003 \001(\01320.google.cloud.aiplat" + + "form.v1beta1.AutoraterConfigB\003\340A\001H\003\210\001\001\022<\n" + + "\021additional_config\030\007" + + " \001(\0132\027.google.protobuf.StructB\003\340A\001H\004\210\001\001B\020\n" + + "\016rubrics_sourceB\031\n" + + "\027_metric_prompt_templateB\025\n" + + "\023_system_instructionB\031\n" + + "\027_judge_autorater_configB\024\n" + + "\022_additional_config\"\251\001\n" + "\017ExactMatchInput\022I\n" - + "\013metric_spec\030\001 \001(\0132/.google.cloud" - + ".aiplatform.v1beta1.ExactMatchSpecB\003\340A\002\022K\n" + + "\013metric_spec\030\001" + + " \001(\0132/.google.cloud.aiplatform.v1beta1.ExactMatchSpecB\003\340A\002\022K\n" + "\tinstances\030\002" + " \003(\01323.google.cloud.aiplatform.v1beta1.ExactMatchInstanceB\003\340A\002\"l\n" + "\022ExactMatchInstance\022\034\n\n" @@ -935,16 +998,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_reference\"\020\n" + "\016ExactMatchSpec\"s\n" + "\021ExactMatchResults\022^\n" - + "\031exact_match_metric_values\030\001 \003(\01326.google.cloud.aipl" - + "atform.v1beta1.ExactMatchMetricValueB\003\340A\003\":\n" + + "\031exact_match_metric_values\030\001" + + " \003(\01326.google.cloud.aiplatform.v1beta1.ExactMatchMetricValueB\003\340A\003\":\n" + "\025ExactMatchMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\227\001\n" + "\tBleuInput\022C\n" + "\013metric_spec\030\001" + " \001(\0132).google.cloud.aiplatform.v1beta1.BleuSpecB\003\340A\002\022E\n" - + "\tinstances\030\002 " - + "\003(\0132-.google.cloud.aiplatform.v1beta1.BleuInstanceB\003\340A\002\"f\n" + + "\tinstances\030\002 \003(\0132-.g" + + "oogle.cloud.aiplatform.v1beta1.BleuInstanceB\003\340A\002\"f\n" + "\014BleuInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" + "\treference\030\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n" @@ -953,14 +1016,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010BleuSpec\022 \n" + "\023use_effective_order\030\001 \001(\010B\003\340A\001\"`\n" + "\013BleuResults\022Q\n" - + "\022bleu_metric_values\030\001" - + " \003(\01320.google.cloud.aiplatform.v1beta1.BleuMetricValueB\003\340A\003\"4\n" + + "\022bleu_metric_values\030\001 \003(" + + "\01320.google.cloud.aiplatform.v1beta1.BleuMetricValueB\003\340A\003\"4\n" + "\017BleuMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\232\001\n\n" + "RougeInput\022D\n" - + "\013metric_spec\030\001 \001(\0132*.goog" - + "le.cloud.aiplatform.v1beta1.RougeSpecB\003\340A\002\022F\n" + + "\013metric_spec\030\001" + + " \001(\0132*.google.cloud.aiplatform.v1beta1.RougeSpecB\003\340A\002\022F\n" + "\tinstances\030\002" + " \003(\0132..google.cloud.aiplatform.v1beta1.RougeInstanceB\003\340A\002\"g\n\r" + "RougeInstance\022\034\n\n" @@ -973,14 +1036,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013use_stemmer\030\002 \001(\010B\003\340A\001\022\034\n" + "\017split_summaries\030\003 \001(\010B\003\340A\001\"c\n" + "\014RougeResults\022S\n" - + "\023rouge_metric_values\030\001 \003(\01321" - + ".google.cloud.aiplatform.v1beta1.RougeMetricValueB\003\340A\003\"5\n" + + "\023rouge_metric_values\030\001 \003(\01321.google" + + ".cloud.aiplatform.v1beta1.RougeMetricValueB\003\340A\003\"5\n" + "\020RougeMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\245\001\n" + "\016CoherenceInput\022H\n" - + "\013metric_spec\030\001 \001(\0132..google.c" - + "loud.aiplatform.v1beta1.CoherenceSpecB\003\340A\002\022I\n" + + "\013metric_spec\030\001" + + " \001(\0132..google.cloud.aiplatform.v1beta1.CoherenceSpecB\003\340A\002\022I\n" + "\010instance\030\002" + " \001(\01322.google.cloud.aiplatform.v1beta1.CoherenceInstanceB\003\340A\002\"@\n" + "\021CoherenceInstance\022\034\n\n" @@ -1000,8 +1063,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010instance\030\002" + " \001(\01320.google.cloud.aiplatform.v1beta1.FluencyInstanceB\003\340A\002\">\n" + "\017FluencyInstance\022\034\n\n" - + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001B\r" - + "\n" + + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001B\r\n" + "\013_prediction\"#\n" + "\013FluencySpec\022\024\n" + "\007version\030\001 \001(\005B\003\340A\001\"y\n\r" @@ -1009,14 +1071,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022\030\n" + "\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\n" + "confidence\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010\n" - + "\006_scoreB\r" - + "\n" + + "\006_scoreB\r\n" + "\013_confidence\"\234\001\n" + "\013SafetyInput\022E\n" - + "\013metric_spec\030\001" - + " \001(\0132+.google.cloud.aiplatform.v1beta1.SafetySpecB\003\340A\002\022F\n" - + "\010instance\030\002 \001(\0132/" - + ".google.cloud.aiplatform.v1beta1.SafetyInstanceB\003\340A\002\"=\n" + + "\013metric_spec\030\001 " + + "\001(\0132+.google.cloud.aiplatform.v1beta1.SafetySpecB\003\340A\002\022F\n" + + "\010instance\030\002 \001(\0132/.google" + + ".cloud.aiplatform.v1beta1.SafetyInstanceB\003\340A\002\"=\n" + "\016SafetyInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001B\r\n" + "\013_prediction\"\"\n\n" @@ -1029,10 +1090,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\256\001\n" + "\021GroundednessInput\022K\n" - + "\013metric_spec\030\001 \001(\01321.g" - + "oogle.cloud.aiplatform.v1beta1.GroundednessSpecB\003\340A\002\022L\n" - + "\010instance\030\002 \001(\01325.google." - + "cloud.aiplatform.v1beta1.GroundednessInstanceB\003\340A\002\"j\n" + + "\013metric_spec\030\001 \001(\01321.google.c" + + "loud.aiplatform.v1beta1.GroundednessSpecB\003\340A\002\022L\n" + + "\010instance\030\002 \001(\01325.google.cloud.a" + + "iplatform.v1beta1.GroundednessInstanceB\003\340A\002\"j\n" + "\024GroundednessInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\031\n" + "\007context\030\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n" @@ -1047,10 +1108,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\253\001\n" + "\020FulfillmentInput\022J\n" - + "\013metric_spec\030\001" - + " \001(\01320.google.cloud.aiplatform.v1beta1.FulfillmentSpecB\003\340A\002\022K\n" - + "\010instance\030\002 " - + "\001(\01324.google.cloud.aiplatform.v1beta1.FulfillmentInstanceB\003\340A\002\"q\n" + + "\013metric_spec\030\001 " + + "\001(\01320.google.cloud.aiplatform.v1beta1.FulfillmentSpecB\003\340A\002\022K\n" + + "\010instance\030\002 \001(\01324.g" + + "oogle.cloud.aiplatform.v1beta1.FulfillmentInstanceB\003\340A\002\"q\n" + "\023FulfillmentInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\035\n" + "\013instruction\030\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n" @@ -1065,17 +1126,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\306\001\n" + "\031SummarizationQualityInput\022S\n" - + "\013metric_spec\030\001 \001(\01329.g" - + "oogle.cloud.aiplatform.v1beta1.SummarizationQualitySpecB\003\340A\002\022T\n" - + "\010instance\030\002 \001(\0132=" - + ".google.cloud.aiplatform.v1beta1.SummarizationQualityInstanceB\003\340A\002\"\314\001\n" + + "\013metric_spec\030\001 \001(\01329.google.c" + + "loud.aiplatform.v1beta1.SummarizationQualitySpecB\003\340A\002\022T\n" + + "\010instance\030\002 \001(\0132=.google" + + ".cloud.aiplatform.v1beta1.SummarizationQualityInstanceB\003\340A\002\"\314\001\n" + "\034SummarizationQualityInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" + "\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n" + "\007context\030\003 \001(\tB\003\340A\002H\002\210\001\001\022\035\n" + "\013instruction\030\004 \001(\tB\003\340A\002H\003\210\001\001B\r\n" + "\013_predictionB\014\n\n" - + "_referenceB\n\n" + + "_referenceB\n" + + "\n" + "\010_contextB\016\n" + "\014_instruction\"L\n" + "\030SummarizationQualitySpec\022\032\n\r" @@ -1088,10 +1150,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\336\001\n" + "!PairwiseSummarizationQualityInput\022[\n" - + "\013metric_spec\030\001 \001(\0132A.google.clo" - + "ud.aiplatform.v1beta1.PairwiseSummarizationQualitySpecB\003\340A\002\022\\\n" - + "\010instance\030\002 \001(\0132E." - + "google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstanceB\003\340A\002\"\223\002\n" + + "\013metric_spec\030\001 \001(\0132A.google.cloud.aipl" + + "atform.v1beta1.PairwiseSummarizationQualitySpecB\003\340A\002\022\\\n" + + "\010instance\030\002 \001(\0132E.google." + + "cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstanceB\003\340A\002\"\223\002\n" + "$PairwiseSummarizationQualityInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022%\n" + "\023baseline_prediction\030\002 \001(\tB\003\340A\002H\001\210\001\001\022\033\n" @@ -1113,10 +1175,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "confidence\030\003 \001(\002B\003\340A\003H\000\210\001\001B\r\n" + "\013_confidence\"\322\001\n" + "\035SummarizationHelpfulnessInput\022W\n" - + "\013metric_spec\030\001 \001(" - + "\0132=.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpecB\003\340A\002\022X\n" - + "\010instance\030\002 \001(\0132A.google.cloud.aiplatform.v1beta" - + "1.SummarizationHelpfulnessInstanceB\003\340A\002\"\320\001\n" + + "\013metric_spec\030\001 \001(\0132=.goo" + + "gle.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpecB\003\340A\002\022X\n" + + "\010instance\030\002 \001(\0132A.google.cloud.aiplatform.v1beta1.Summa", + "rizationHelpfulnessInstanceB\003\340A\002\"\320\001\n" + " SummarizationHelpfulnessInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" + "\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n" @@ -1136,10 +1198,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\314\001\n" + "\033SummarizationVerbosityInput\022U\n" - + "\013metric_spec\030\001" - + " \001(\0132;.google.cloud.aiplatform.v1beta1.SummarizationVerbositySpecB\003\340A\002\022V\n" - + "\010instance\030\002 \001(\0132?.google.cloud.aiplatform.v1b" - + "eta1.SummarizationVerbosityInstanceB\003\340A\002\"\316\001\n" + + "\013metric_spec\030\001 \001(\0132" + + ";.google.cloud.aiplatform.v1beta1.SummarizationVerbositySpecB\003\340A\002\022V\n" + + "\010instance\030\002 " + + "\001(\0132?.google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstanceB\003\340A\002\"\316\001\n" + "\036SummarizationVerbosityInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" + "\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n" @@ -1159,10 +1221,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\322\001\n" + "\035QuestionAnsweringQualityInput\022W\n" - + "\013metric_spec\030\001 " - + "\001(\0132=.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpecB\003\340A\002\022X\n" - + "\010instance\030\002 \001(\0132A.google.cloud.aiplatform.v1be" - + "ta1.QuestionAnsweringQualityInstanceB\003\340A\002\"\320\001\n" + + "\013metric_spec\030\001 \001(\0132=.g" + + "oogle.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpecB\003\340A\002\022X\n" + + "\010instance\030\002 \001" + + "(\0132A.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstanceB\003\340A\002\"\320\001\n" + " QuestionAnsweringQualityInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" + "\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n" @@ -1171,9 +1233,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_predictionB\014\n\n" + "_referenceB\n\n" + "\010_contextB\016\n" - + "\014", - "_instruction\"P\n" - + "\034QuestionAnsweringQualitySpec\022\032\n\r" + + "\014_instruction\"P\n" + + "\034QuestionAnsweringQualitySpec\022\032\n" + + "\r" + "use_reference\030\001 \001(\010B\003\340A\001\022\024\n" + "\007version\030\002 \001(\005B\003\340A\001\"\212\001\n" + "\036QuestionAnsweringQualityResult\022\027\n" @@ -1183,12 +1245,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\352\001\n" + "%PairwiseQuestionAnsweringQualityInput\022_\n" - + "\013metric_spec\030\001 \001(\0132E.google.cloud.aiplat" - + "form.v1beta1.PairwiseQuestionAnsweringQualitySpecB\003\340A\002\022`\n" - + "\010instance\030\002 \001(\0132I.googl" - + "e.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstanceB\003\340A\002\"\227\002\n" - + "(PairwiseQuestionAnsweringQualityInstance\022\034\n" - + "\n" + + "\013metric_spec\030\001 \001(\0132E.google.cloud.aiplatform.v1" + + "beta1.PairwiseQuestionAnsweringQualitySpecB\003\340A\002\022`\n" + + "\010instance\030\002 \001(\0132I.google.cloud" + + ".aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstanceB\003\340A\002\"\227\002\n" + + "(PairwiseQuestionAnsweringQualityInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022%\n" + "\023baseline_prediction\030\002 \001(\tB\003\340A\002H\001\210\001\001\022\033\n" + "\treference\030\003 \001(\tB\003\340A\001H\002\210\001\001\022\031\n" @@ -1203,16 +1264,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "use_reference\030\001 \001(\010B\003\340A\001\022\024\n" + "\007version\030\002 \001(\005B\003\340A\001\"\276\001\n" + "&PairwiseQuestionAnsweringQualityResult\022M\n" - + "\017pairwise_choice\030\001 \001(\0162/.googl" - + "e.cloud.aiplatform.v1beta1.PairwiseChoiceB\003\340A\003\022\030\n" + + "\017pairwise_choice\030\001 \001(\0162/.google.cloud" + + ".aiplatform.v1beta1.PairwiseChoiceB\003\340A\003\022\030\n" + "\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\n" + "confidence\030\003 \001(\002B\003\340A\003H\000\210\001\001B\r\n" + "\013_confidence\"\330\001\n" + "\037QuestionAnsweringRelevanceInput\022Y\n" - + "\013metric_spec\030\001 \001(\0132?.google.cloud.aiplatform" - + ".v1beta1.QuestionAnsweringRelevanceSpecB\003\340A\002\022Z\n" - + "\010instance\030\002 \001(\0132C.google.cloud.ai" - + "platform.v1beta1.QuestionAnsweringRelevanceInstanceB\003\340A\002\"\322\001\n" + + "\013metric_spec\030\001" + + " \001(\0132?.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpecB\003\340A\002\022Z\n" + + "\010instance\030\002 \001(\0132C.google.cloud.aiplatfor" + + "m.v1beta1.QuestionAnsweringRelevanceInstanceB\003\340A\002\"\322\001\n" + "\"QuestionAnsweringRelevanceInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" + "\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n" @@ -1232,10 +1293,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\336\001\n" + "!QuestionAnsweringHelpfulnessInput\022[\n" - + "\013metric_spec\030\001 \001(\0132A.go" - + "ogle.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpecB\003\340A\002\022\\\n" - + "\010instance\030\002 \001(\0132E.google.cloud.aiplatform.v1beta1." - + "QuestionAnsweringHelpfulnessInstanceB\003\340A\002\"\324\001\n" + + "\013metric_spec\030\001 \001(\0132A.google.cl" + + "oud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpecB\003\340A\002\022\\\n" + + "\010instance\030\002 \001(\0132E" + + ".google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstanceB\003\340A\002\"\324\001\n" + "$QuestionAnsweringHelpfulnessInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" + "\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n" @@ -1255,10 +1316,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\336\001\n" + "!QuestionAnsweringCorrectnessInput\022[\n" - + "\013metric_spec\030\001 \001(\0132A.google.clou" - + "d.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpecB\003\340A\002\022\\\n" - + "\010instance\030\002 \001(\0132E.g" - + "oogle.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstanceB\003\340A\002\"\324\001\n" + + "\013metric_spec\030\001 \001(\0132A.google.cloud.aipla" + + "tform.v1beta1.QuestionAnsweringCorrectnessSpecB\003\340A\002\022\\\n" + + "\010instance\030\002 \001(\0132E.google.c" + + "loud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstanceB\003\340A\002\"\324\001\n" + "$QuestionAnsweringCorrectnessInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" + "\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n" @@ -1278,10 +1339,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\267\001\n" + "\024PointwiseMetricInput\022N\n" - + "\013metric_spec\030\001" - + " \001(\01324.google.cloud.aiplatform.v1beta1.PointwiseMetricSpecB\003\340A\002\022O\n" - + "\010instance\030\002 \001(" - + "\01328.google.cloud.aiplatform.v1beta1.PointwiseMetricInstanceB\003\340A\002\"\213\001\n" + + "\013metric_spec\030\001 \001(\01324." + + "google.cloud.aiplatform.v1beta1.PointwiseMetricSpecB\003\340A\002\022O\n" + + "\010instance\030\002 \001(\01328.goo" + + "gle.cloud.aiplatform.v1beta1.PointwiseMetricInstanceB\003\340A\002\"\213\001\n" + "\027PointwiseMetricInstance\022\027\n\r" + "json_instance\030\001 \001(\tH\000\022K\n" + "\024content_map_instance\030\002" @@ -1290,8 +1351,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023PointwiseMetricSpec\022(\n" + "\026metric_prompt_template\030\001 \001(\tB\003\340A\002H\000\210\001\001\022$\n" + "\022system_instruction\030\002 \001(\tB\003\340A\001H\001\210\001\001\022c\n" - + "\033custom_output_format_config\030\003 \001(\01329.google.clo" - + "ud.aiplatform.v1beta1.CustomOutputFormatConfigB\003\340A\001B\031\n" + + "\033custom_output_format_config\030\003 \001(\01329.google.cloud.aipl" + + "atform.v1beta1.CustomOutputFormatConfigB\003\340A\001B\031\n" + "\027_metric_prompt_templateB\025\n" + "\023_system_instruction\"[\n" + "\030CustomOutputFormatConfig\022 \n" @@ -1304,41 +1365,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132-.google.cloud.aiplatform.v1beta1.CustomOutputB\003\340A\003B\010\n" + "\006_score\"g\n" + "\014CustomOutput\022F\n" - + "\013raw_outputs\030\001 \001(\0132*.goog" - + "le.cloud.aiplatform.v1beta1.RawOutputB\003\340A\003H\000B\017\n\r" + + "\013raw_outputs\030\001" + + " \001(\0132*.google.cloud.aiplatform.v1beta1.RawOutputB\003\340A\003H\000B\017\n" + + "\r" + "custom_output\"$\n" + "\tRawOutput\022\027\n\n" + "raw_output\030\001 \003(\tB\003\340A\003\"\264\001\n" + "\023PairwiseMetricInput\022M\n" - + "\013metric_spec\030\001 \001(\01323.google.cloud." - + "aiplatform.v1beta1.PairwiseMetricSpecB\003\340A\002\022N\n" - + "\010instance\030\002 \001(\01327.google.cloud.aipl" - + "atform.v1beta1.PairwiseMetricInstanceB\003\340A\002\"\212\001\n" + + "\013metric_spec\030\001" + + " \001(\01323.google.cloud.aiplatform.v1beta1.PairwiseMetricSpecB\003\340A\002\022N\n" + + "\010instance\030\002" + + " \001(\01327.google.cloud.aiplatform.v1beta1.PairwiseMetricInstanceB\003\340A\002\"\212\001\n" + "\026PairwiseMetricInstance\022\027\n\r" + "json_instance\030\001 \001(\tH\000\022K\n" - + "\024content_map_instance\030\002" - + " \001(\0132+.google.cloud.aiplatform.v1beta1.ContentMapH\000B\n\n" + + "\024content_map_instance\030\002 \001(\0132+." + + "google.cloud.aiplatform.v1beta1.ContentMapH\000B\n\n" + "\010instance\"\322\002\n" + "\022PairwiseMetricSpec\022(\n" + "\026metric_prompt_template\030\001 \001(\tB\003\340A\002H\000\210\001\001\022*\n" + "\035candidate_response_field_name\030\002 \001(\tB\003\340A\001\022)\n" + "\034baseline_response_field_name\030\003 \001(\tB\003\340A\001\022$\n" + "\022system_instruction\030\004 \001(\tB\003\340A\001H\001\210\001\001\022c\n" - + "\033custom_output_format_config\030\005" - + " \001(\01329.google.cloud.aiplatform.v1beta1.CustomOutputFormatConfigB\003\340A\001B\031\n" + + "\033custom_output_format_config\030\005 " + + "\001(\01329.google.cloud.aiplatform.v1beta1.CustomOutputFormatConfigB\003\340A\001B\031\n" + "\027_metric_prompt_templateB\025\n" + "\023_system_instruction\"\312\001\n" + "\024PairwiseMetricResult\022M\n" + "\017pairwise_choice\030\001" + " \001(\0162/.google.cloud.aiplatform.v1beta1.PairwiseChoiceB\003\340A\003\022\030\n" + "\013explanation\030\002 \001(\tB\003\340A\003\022I\n\r" - + "custom_output\030\003 \001(\0132-." - + "google.cloud.aiplatform.v1beta1.CustomOutputB\003\340A\003\"\262\001\n" + + "custom_output\030\003 \001(\0132-.google." + + "cloud.aiplatform.v1beta1.CustomOutputB\003\340A\003\"\262\001\n" + "\022ToolCallValidInput\022L\n" + "\013metric_spec\030\001" + " \001(\01322.google.cloud.aiplatform.v1beta1.ToolCallValidSpecB\003\340A\002\022N\n" - + "\tinstances\030\002" - + " \003(\01326.google.cloud.aiplatform.v1beta1.ToolCallValidInstanceB\003\340A\002\"\023\n" + + "\tinstances\030\002 \003" + + "(\01326.google.cloud.aiplatform.v1beta1.ToolCallValidInstanceB\003\340A\002\"\023\n" + "\021ToolCallValidSpec\"o\n" + "\025ToolCallValidInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" @@ -1346,16 +1408,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_predictionB\014\n\n" + "_reference\"}\n" + "\024ToolCallValidResults\022e\n" - + "\035tool_call_valid_metric_values\030\001 \003(\01329.google.clo" - + "ud.aiplatform.v1beta1.ToolCallValidMetricValueB\003\340A\003\"=\n" + + "\035tool_call_valid_metric_values\030\001 \003(\01329.google.cloud.aipl" + + "atform.v1beta1.ToolCallValidMetricValueB\003\340A\003\"=\n" + "\030ToolCallValidMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\262\001\n" + "\022ToolNameMatchInput\022L\n" - + "\013metric_spec\030\001 \001(\01322" - + ".google.cloud.aiplatform.v1beta1.ToolNameMatchSpecB\003\340A\002\022N\n" - + "\tinstances\030\002 \003(\01326.goo" - + "gle.cloud.aiplatform.v1beta1.ToolNameMatchInstanceB\003\340A\002\"\023\n" + + "\013metric_spec\030\001 \001(\01322.google" + + ".cloud.aiplatform.v1beta1.ToolNameMatchSpecB\003\340A\002\022N\n" + + "\tinstances\030\002 \003(\01326.google.clo" + + "ud.aiplatform.v1beta1.ToolNameMatchInstanceB\003\340A\002\"\023\n" + "\021ToolNameMatchSpec\"o\n" + "\025ToolNameMatchInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" @@ -1369,10 +1431,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\312\001\n" + "\032ToolParameterKeyMatchInput\022T\n" - + "\013metric_spec\030\001 \001(\0132:.google" - + ".cloud.aiplatform.v1beta1.ToolParameterKeyMatchSpecB\003\340A\002\022V\n" - + "\tinstances\030\002 \003(\0132>.go" - + "ogle.cloud.aiplatform.v1beta1.ToolParameterKeyMatchInstanceB\003\340A\002\"\033\n" + + "\013metric_spec\030\001 \001(\0132:.google.cloud." + + "aiplatform.v1beta1.ToolParameterKeyMatchSpecB\003\340A\002\022V\n" + + "\tinstances\030\002 \003(\0132>.google.cl" + + "oud.aiplatform.v1beta1.ToolParameterKeyMatchInstanceB\003\340A\002\"\033\n" + "\031ToolParameterKeyMatchSpec\"w\n" + "\035ToolParameterKeyMatchInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" @@ -1380,16 +1442,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_predictionB\014\n\n" + "_reference\"\226\001\n" + "\034ToolParameterKeyMatchResults\022v\n" - + "&tool_parameter_key_match_metric_values\030\001 \003(\0132A.google.cloud.aiplatfor" - + "m.v1beta1.ToolParameterKeyMatchMetricValueB\003\340A\003\"E\n" + + "&tool_parameter_key_match_metric_values\030\001" + + " \003(\0132A.google.cloud.aiplatform.v1bet" + + "a1.ToolParameterKeyMatchMetricValueB\003\340A\003\"E\n" + " ToolParameterKeyMatchMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\307\001\n" + "\031ToolParameterKVMatchInput\022S\n" - + "\013metric_spec\030\001" - + " \001(\01329.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchSpecB\003\340A\002\022U\n" - + "\tinstances\030\002 \003(\0132=.google.cloud.aiplatform.v" - + "1beta1.ToolParameterKVMatchInstanceB\003\340A\002\"@\n" + + "\013metric_spec\030\001 \001" + + "(\01329.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchSpecB\003\340A\002\022U\n" + + "\tinstances\030\002" + + " \003(\0132=.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchInstanceB\003\340A\002\"@\n" + "\030ToolParameterKVMatchSpec\022$\n" + "\027use_strict_string_match\030\001 \001(\010B\003\340A\001\"v\n" + "\034ToolParameterKVMatchInstance\022\034\n\n" @@ -1398,19 +1461,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_predictionB\014\n\n" + "_reference\"\223\001\n" + "\033ToolParameterKVMatchResults\022t\n" - + "%tool_parameter_kv_match_metric_values\030\001 \003(\0132@.google.cloud" - + ".aiplatform.v1beta1.ToolParameterKVMatchMetricValueB\003\340A\003\"D\n" + + "%tool_parameter_kv_match_metric_values\030\001 \003(\0132@.google.cloud.aiplat" + + "form.v1beta1.ToolParameterKVMatchMetricValueB\003\340A\003\"D\n" + "\037ToolParameterKVMatchMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\231\001\n\n" + "CometInput\022D\n" - + "\013metric_spec\030\001 \001" - + "(\0132*.google.cloud.aiplatform.v1beta1.CometSpecB\003\340A\002\022E\n" - + "\010instance\030\002 \001(\0132..google.c" - + "loud.aiplatform.v1beta1.CometInstanceB\003\340A\002\"\354\001\n" + + "\013metric_spec\030\001 \001(\0132*.go" + + "ogle.cloud.aiplatform.v1beta1.CometSpecB\003\340A\002\022E\n" + + "\010instance\030\002" + + " \001(\0132..google.cloud.aiplatform.v1beta1.CometInstanceB\003\340A\002\"\354\001\n" + "\tCometSpec\022R\n" - + "\007version\030\001 \001(\01627.goog" - + "le.cloud.aiplatform.v1beta1.CometSpec.CometVersionB\003\340A\002H\000\210\001\001\022\034\n" + + "\007version\030\001 \001(\01627.google.clou" + + "d.aiplatform.v1beta1.CometSpec.CometVersionB\003\340A\002H\000\210\001\001\022\034\n" + "\017source_language\030\002 \001(\tB\003\340A\001\022\034\n" + "\017target_language\030\003 \001(\tB\003\340A\001\"C\n" + "\014CometVersion\022\035\n" @@ -1428,13 +1491,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\237\001\n" + "\014MetricxInput\022F\n" - + "\013metric_spec\030\001 \001(\0132,.googl" - + "e.cloud.aiplatform.v1beta1.MetricxSpecB\003\340A\002\022G\n" + + "\013metric_spec\030\001" + + " \001(\0132,.google.cloud.aiplatform.v1beta1.MetricxSpecB\003\340A\002\022G\n" + "\010instance\030\002" + " \001(\01320.google.cloud.aiplatform.v1beta1.MetricxInstanceB\003\340A\002\"\240\002\n" + "\013MetricxSpec\022V\n" - + "\007version\030\001 \001(\0162;.google.c" - + "loud.aiplatform.v1beta1.MetricxSpec.MetricxVersionB\003\340A\002H\000\210\001\001\022\034\n" + + "\007version\030\001 \001(\0162;.google.cloud.ai" + + "platform.v1beta1.MetricxSpec.MetricxVersionB\003\340A\002H\000\210\001\001\022\034\n" + "\017source_language\030\002 \001(\tB\003\340A\001\022\034\n" + "\017target_language\030\003 \001(\tB\003\340A\001\"q\n" + "\016MetricxVersion\022\037\n" @@ -1454,27 +1517,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\347\001\n" + "$RubricBasedInstructionFollowingInput\022^\n" - + "\013metric_spec\030\001 \001(\0132D.google.clou" - + "d.aiplatform.v1beta1.RubricBasedInstructionFollowingSpecB\003\340A\002\022_\n" - + "\010instance\030\002 \001(\0132H.google.cloud.aiplatform.v1beta1.Rubric" - + "BasedInstructionFollowingInstanceB\003\340A\002\"S\n" + + "\013metric_spec\030\001 \001(\0132D.google.cloud.aipla" + + "tform.v1beta1.RubricBasedInstructionFollowingSpecB\003\340A\002\022_\n" + + "\010instance\030\002 \001(\0132H.googl" + + "e.cloud.aiplatform.v1beta1.RubricBasedInstructionFollowingInstanceB\003\340A\002\"S\n" + "\'RubricBasedInstructionFollowingInstance\022\034\n\r" + "json_instance\030\001 \001(\tB\003\340A\002H\000B\n\n" + "\010instance\"%\n" + "#RubricBasedInstructionFollowingSpec\"\247\001\n" + "%RubricBasedInstructionFollowingResult\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022[\n" - + "\027rubric_critique_results\030\002 \003(\01325.google.cloud.ai" - + "platform.v1beta1.RubricCritiqueResultB\003\340A\003B\010\n" + + "\027rubric_critique_results\030\002" + + " \003(\01325.google.cloud.aiplatform.v1beta1.RubricCritiqueResultB\003\340A\003B\010\n" + "\006_score\"A\n" + "\024RubricCritiqueResult\022\023\n" + "\006rubric\030\001 \001(\tB\003\340A\003\022\024\n" + "\007verdict\030\002 \001(\010B\003\340A\003\"\307\001\n" + "\031TrajectoryExactMatchInput\022S\n" - + "\013metric_spec\030\001" - + " \001(\01329.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpecB\003\340A\002\022U\n" - + "\tinstances\030\002 \003(\0132=.google.cloud.aiplatform." - + "v1beta1.TrajectoryExactMatchInstanceB\003\340A\002\"\032\n" + + "\013metric_spec\030\001 " + + "\001(\01329.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpecB\003\340A\002\022U\n" + + "\tinstances\030\002" + + " \003(\0132=.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstanceB\003\340A\002\"\032\n" + "\030TrajectoryExactMatchSpec\"\372\001\n" + "\034TrajectoryExactMatchInstance\022S\n" + "\024predicted_trajectory\030\001" @@ -1484,93 +1547,92 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025_predicted_trajectoryB\027\n" + "\025_reference_trajectory\"\222\001\n" + "\033TrajectoryExactMatchResults\022s\n" - + "$trajectory_exact_match_metric_values\030\001 \003(\013" - + "2@.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValueB\003\340A\003\"D\n" + + "$trajectory_exact_match_metric_values\030\001 \003(\0132@.goog" + + "le.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValueB\003\340A\003\"D\n" + "\037TrajectoryExactMatchMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\315\001\n" + "\033TrajectoryInOrderMatchInput\022U\n" - + "\013metric_spec\030\001 \001(\0132;.goo" - + "gle.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpecB\003\340A\002\022W\n" - + "\tinstances\030\002 \003(\0132" - + "?.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstanceB\003\340A\002\"\034\n" + + "\013metric_spec\030\001 \001(\0132;.google.clo" + + "ud.aiplatform.v1beta1.TrajectoryInOrderMatchSpecB\003\340A\002\022W\n" + + "\tinstances\030\002 \003(\0132?.googl" + + "e.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstanceB\003\340A\002\"\034\n" + "\032TrajectoryInOrderMatchSpec\"\374\001\n" + "\036TrajectoryInOrderMatchInstance\022S\n" - + "\024predicted_trajectory\030\001" - + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" - + "\024reference_trajectory\030\002" - + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001B\027\n" + + "\024predicted_trajectory\030\001 \001(\0132+." + + "google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" + + "\024reference_trajectory\030\002 \001" + + "(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001B\027\n" + "\025_predicted_trajectoryB\027\n" + "\025_reference_trajectory\"\231\001\n" + "\035TrajectoryInOrderMatchResults\022x\n" - + "\'trajectory_in_order_match_metric_values\030\001 \003(\0132B." - + "google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValueB\003\340A\003\"F\n" + + "\'trajectory_in_order_match_metric_values\030\001 \003(\0132B.google." + + "cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValueB\003\340A\003\"F\n" + "!TrajectoryInOrderMatchMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\320\001\n" + "\034TrajectoryAnyOrderMatchInput\022V\n" - + "\013metric_spec\030\001 \001(\0132<.g" - + "oogle.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpecB\003\340A\002\022X\n" - + "\tinstances\030\002 \003" - + "(\0132@.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstanceB\003\340A\002\"\035\n" + + "\013metric_spec\030\001 \001(\0132<.google.c" + + "loud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpecB\003\340A\002\022X\n" + + "\tinstances\030\002 \003(\0132@.go" + + "ogle.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstanceB\003\340A\002\"\035\n" + "\033TrajectoryAnyOrderMatchSpec\"\375\001\n" + "\037TrajectoryAnyOrderMatchInstance\022S\n" - + "\024predicted_trajectory\030\001" - + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" + + "\024predicted_trajectory\030\001 " + + "\001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" + "\024reference_trajectory\030\002" + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001B\027\n" + "\025_predicted_trajectoryB\027\n" + "\025_reference_trajectory\"\234\001\n" + "\036TrajectoryAnyOrderMatchResults\022z\n" - + "(trajectory_any_order_match_metric_values\030\001" - + " \003(\0132C.google.cloud.aiplatform.v1beta1." - + "TrajectoryAnyOrderMatchMetricValueB\003\340A\003\"G\n" + + "(trajectory_any_order_match_metric_values\030\001 \003(\0132C" + + ".google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValueB\003\340A\003\"G\n" + "\"TrajectoryAnyOrderMatchMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\304\001\n" + "\030TrajectoryPrecisionInput\022R\n" - + "\013metric_spec\030\001 \001" - + "(\01328.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpecB\003\340A\002\022T\n" - + "\tinstances\030\002" - + " \003(\0132<.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstanceB\003\340A\002\"\031\n" + + "\013metric_spec\030\001 \001(\01328.go" + + "ogle.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpecB\003\340A\002\022T\n" + + "\tinstances\030\002 \003(\0132<." + + "google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstanceB\003\340A\002\"\031\n" + "\027TrajectoryPrecisionSpec\"\371\001\n" + "\033TrajectoryPrecisionInstance\022S\n" - + "\024predicted_trajectory\030\001 \001(\013" - + "2+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" - + "\024reference_trajectory\030\002" - + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001B\027\n" + + "\024predicted_trajectory\030\001 \001(\0132+.goog" + + "le.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" + + "\024reference_trajectory\030\002 \001(\0132+" + + ".google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001B\027\n" + "\025_predicted_trajectoryB\027\n" + "\025_reference_trajectory\"\216\001\n" + "\032TrajectoryPrecisionResults\022p\n" - + "\"trajectory_precision_metric_values\030\001 \003(\0132?.google.cloud" - + ".aiplatform.v1beta1.TrajectoryPrecisionMetricValueB\003\340A\003\"C\n" + + "\"trajectory_precision_metric_values\030\001 \003(\0132?.google.cloud.aiplat" + + "form.v1beta1.TrajectoryPrecisionMetricValueB\003\340A\003\"C\n" + "\036TrajectoryPrecisionMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\273\001\n" + "\025TrajectoryRecallInput\022O\n" + "\013metric_spec\030\001" + " \001(\01325.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpecB\003\340A\002\022Q\n" - + "\tinstances\030\002" - + " \003(\01329.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstanceB\003\340A\002\"\026\n" + + "\tinstances\030\002 " + + "\003(\01329.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstanceB\003\340A\002\"\026\n" + "\024TrajectoryRecallSpec\"\366\001\n" + "\030TrajectoryRecallInstance\022S\n" - + "\024predicted_trajectory\030\001 \001(\0132+." - + "google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" - + "\024reference_trajectory\030\002 \001" - + "(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001B\027\n" + + "\024predicted_trajectory\030\001 \001(\0132+.google." + + "cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" + + "\024reference_trajectory\030\002 \001(\0132+.go" + + "ogle.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001B\027\n" + "\025_predicted_trajectoryB\027\n" + "\025_reference_trajectory\"\205\001\n" + "\027TrajectoryRecallResults\022j\n" - + "\037trajectory_recall_metric_values\030\001 \003(\0132<.google.cloud.aiplatfo" - + "rm.v1beta1.TrajectoryRecallMetricValueB\003\340A\003\"@\n" + + "\037trajectory_recall_metric_values\030\001" + + " \003(\0132<.google.cloud.aiplatform.v1beta1.TrajectoryRecallMetricValueB\003\340A\003\"@\n" + "\033TrajectoryRecallMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\320\001\n" + "\034TrajectorySingleToolUseInput\022V\n" - + "\013metric_spec\030\001 " - + "\001(\0132<.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpecB\003\340A\002\022X\n" - + "\tinstances\030\002 \003(\0132@.google.cloud.aiplatform.v1be" - + "ta1.TrajectorySingleToolUseInstanceB\003\340A\002\"H\n" + + "\013metric_spec\030\001 \001(\0132<.g" + + "oogle.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpecB\003\340A\002\022X\n" + + "\tinstances\030\002 \003" + + "(\0132@.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstanceB\003\340A\002\"H\n" + "\033TrajectorySingleToolUseSpec\022\033\n" + "\ttool_name\030\001 \001(\tB\003\340A\002H\000\210\001\001B\014\n\n" + "_tool_name\"\217\001\n" @@ -1579,50 +1641,54 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001B\027\n" + "\025_predicted_trajectory\"\234\001\n" + "\036TrajectorySingleToolUseResults\022z\n" - + "(trajectory_single_tool_use_metric_values\030\001 \003(\0132C.google.cloud" - + ".aiplatform.v1beta1.TrajectorySingleToolUseMetricValueB\003\340A\003\"G\n" + + "(trajectory_single_tool_use_metric_values\030\001 \003(\0132C.google.cloud.aiplat" + + "form.v1beta1.TrajectorySingleToolUseMetricValueB\003\340A\003\"G\n" + "\"TrajectorySingleToolUseMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"P\n\n" + "Trajectory\022B\n\n" - + "tool_calls\030\001" - + " \003(\0132).google.cloud.aiplatform.v1beta1.ToolCallB\003\340A\002\"b\n" + + "tool_calls\030\001 \003(\0132" + + ").google.cloud.aiplatform.v1beta1.ToolCallB\003\340A\002\"b\n" + "\010ToolCall\022\033\n" + "\ttool_name\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\034\n\n" + "tool_input\030\002 \001(\tB\003\340A\001H\001\210\001\001B\014\n\n" + "_tool_nameB\r\n" + "\013_tool_input\"\214\002\n\n" + "ContentMap\022L\n" - + "\006values\030\001 \003(\01327.google.cloud" - + ".aiplatform.v1beta1.ContentMap.ValuesEntryB\003\340A\001\032K\n" + + "\006values\030\001 \003(\01327.google.cloud.aiplat" + + "form.v1beta1.ContentMap.ValuesEntryB\003\340A\001\032K\n" + "\010Contents\022?\n" - + "\010contents\030\001 \003(\0132(." - + "google.cloud.aiplatform.v1beta1.ContentB\003\340A\001\032c\n" + + "\010contents\030\001" + + " \003(\0132(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\001\032c\n" + "\013ValuesEntry\022\013\n" + "\003key\030\001 \001(\t\022C\n" - + "\005value\030\002" - + " \001(\01324.google.cloud.aiplatform.v1beta1.ContentMap.Contents:\0028\001*W\n" + + "\005value\030\002 \001(\013" + + "24.google.cloud.aiplatform.v1beta1.ContentMap.Contents:\0028\001*W\n" + "\016PairwiseChoice\022\037\n" + "\033PAIRWISE_CHOICE_UNSPECIFIED\020\000\022\014\n" + "\010BASELINE\020\001\022\r\n" + "\tCANDIDATE\020\002\022\007\n" - + "\003TIE\020\0032\252\004\n" - + "\021EvaluationService\022\323\001\n" - + "\021EvaluateInstances\0229.google.cloud.aiplatform.v1beta1.Evaluat" - + "eInstancesRequest\032:.google.cloud.aiplatf" - + "orm.v1beta1.EvaluateInstancesResponse\"G\202" - + "\323\344\223\002A\" + * Optional. Settings for prompt and response sanitization using the Model + * Armor service. If supplied, safety_settings must not be supplied. + * + * + * + * .google.cloud.aiplatform.v1beta1.ModelArmorConfig model_armor_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelArmorConfig field is set. + */ + @java.lang.Override + public boolean hasModelArmorConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +   * Optional. Settings for prompt and response sanitization using the Model
    +   * Armor service. If supplied, safety_settings must not be supplied.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1beta1.ModelArmorConfig model_armor_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelArmorConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelArmorConfig getModelArmorConfig() { + return modelArmorConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelArmorConfig.getDefaultInstance() + : modelArmorConfig_; + } + + /** + * + * + *
    +   * Optional. Settings for prompt and response sanitization using the Model
    +   * Armor service. If supplied, safety_settings must not be supplied.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1beta1.ModelArmorConfig model_armor_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelArmorConfigOrBuilder + getModelArmorConfigOrBuilder() { + return modelArmorConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelArmorConfig.getDefaultInstance() + : modelArmorConfig_; + } + public static final int GENERATION_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.aiplatform.v1beta1.GenerationConfig generationConfig_; @@ -808,7 +871,7 @@ public com.google.cloud.aiplatform.v1beta1.SafetySettingOrBuilder getSafetySetti */ @java.lang.Override public boolean hasGenerationConfig() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -873,7 +936,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < safetySettings_.size(); i++) { output.writeMessage(3, safetySettings_.get(i)); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(4, getGenerationConfig()); } for (int i = 0; i < tools_.size(); i++) { @@ -890,6 +953,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessage.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(11, getModelArmorConfig()); + } getUnknownFields().writeTo(output); } @@ -908,7 +974,7 @@ public int getSerializedSize() { for (int i = 0; i < safetySettings_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, safetySettings_.get(i)); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getGenerationConfig()); } for (int i = 0; i < tools_.size(); i++) { @@ -933,6 +999,9 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, labels__); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getModelArmorConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -963,6 +1032,10 @@ public boolean equals(final java.lang.Object obj) { } if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getSafetySettingsList().equals(other.getSafetySettingsList())) return false; + if (hasModelArmorConfig() != other.hasModelArmorConfig()) return false; + if (hasModelArmorConfig()) { + if (!getModelArmorConfig().equals(other.getModelArmorConfig())) return false; + } if (hasGenerationConfig() != other.hasGenerationConfig()) return false; if (hasGenerationConfig()) { if (!getGenerationConfig().equals(other.getGenerationConfig())) return false; @@ -1006,6 +1079,10 @@ public int hashCode() { hash = (37 * hash) + SAFETY_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getSafetySettingsList().hashCode(); } + if (hasModelArmorConfig()) { + hash = (37 * hash) + MODEL_ARMOR_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getModelArmorConfig().hashCode(); + } if (hasGenerationConfig()) { hash = (37 * hash) + GENERATION_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getGenerationConfig().hashCode(); @@ -1178,6 +1255,7 @@ private void maybeForceBuilderInitialization() { internalGetToolsFieldBuilder(); internalGetToolConfigFieldBuilder(); internalGetSafetySettingsFieldBuilder(); + internalGetModelArmorConfigFieldBuilder(); internalGetGenerationConfigFieldBuilder(); } } @@ -1220,6 +1298,11 @@ public Builder clear() { safetySettingsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); + modelArmorConfig_ = null; + if (modelArmorConfigBuilder_ != null) { + modelArmorConfigBuilder_.dispose(); + modelArmorConfigBuilder_ = null; + } generationConfig_ = null; if (generationConfigBuilder_ != null) { generationConfigBuilder_.dispose(); @@ -1316,9 +1399,14 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GeminiExample res result.labels_.makeImmutable(); } if (((from_bitField0_ & 0x00000100) != 0)) { + result.modelArmorConfig_ = + modelArmorConfigBuilder_ == null ? modelArmorConfig_ : modelArmorConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000200) != 0)) { result.generationConfig_ = generationConfigBuilder_ == null ? generationConfig_ : generationConfigBuilder_.build(); - to_bitField0_ |= 0x00000004; + to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; } @@ -1435,6 +1523,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GeminiExample other } } } + if (other.hasModelArmorConfig()) { + mergeModelArmorConfig(other.getModelArmorConfig()); + } if (other.hasGenerationConfig()) { mergeGenerationConfig(other.getGenerationConfig()); } @@ -1501,7 +1592,7 @@ public Builder mergeFrom( { input.readMessage( internalGetGenerationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 34 case 50: @@ -1549,6 +1640,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 82 + case 90: + { + input.readMessage( + internalGetModelArmorConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3932,6 +4030,232 @@ public com.google.cloud.aiplatform.v1beta1.SafetySetting.Builder addSafetySettin return safetySettingsBuilder_; } + private com.google.cloud.aiplatform.v1beta1.ModelArmorConfig modelArmorConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.ModelArmorConfig, + com.google.cloud.aiplatform.v1beta1.ModelArmorConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ModelArmorConfigOrBuilder> + modelArmorConfigBuilder_; + + /** + * + * + *
    +     * Optional. Settings for prompt and response sanitization using the Model
    +     * Armor service. If supplied, safety_settings must not be supplied.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.ModelArmorConfig model_armor_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelArmorConfig field is set. + */ + public boolean hasModelArmorConfig() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
    +     * Optional. Settings for prompt and response sanitization using the Model
    +     * Armor service. If supplied, safety_settings must not be supplied.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.ModelArmorConfig model_armor_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelArmorConfig. + */ + public com.google.cloud.aiplatform.v1beta1.ModelArmorConfig getModelArmorConfig() { + if (modelArmorConfigBuilder_ == null) { + return modelArmorConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelArmorConfig.getDefaultInstance() + : modelArmorConfig_; + } else { + return modelArmorConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. Settings for prompt and response sanitization using the Model
    +     * Armor service. If supplied, safety_settings must not be supplied.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.ModelArmorConfig model_armor_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setModelArmorConfig(com.google.cloud.aiplatform.v1beta1.ModelArmorConfig value) { + if (modelArmorConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modelArmorConfig_ = value; + } else { + modelArmorConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Settings for prompt and response sanitization using the Model
    +     * Armor service. If supplied, safety_settings must not be supplied.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.ModelArmorConfig model_armor_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setModelArmorConfig( + com.google.cloud.aiplatform.v1beta1.ModelArmorConfig.Builder builderForValue) { + if (modelArmorConfigBuilder_ == null) { + modelArmorConfig_ = builderForValue.build(); + } else { + modelArmorConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Settings for prompt and response sanitization using the Model
    +     * Armor service. If supplied, safety_settings must not be supplied.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.ModelArmorConfig model_armor_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeModelArmorConfig( + com.google.cloud.aiplatform.v1beta1.ModelArmorConfig value) { + if (modelArmorConfigBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && modelArmorConfig_ != null + && modelArmorConfig_ + != com.google.cloud.aiplatform.v1beta1.ModelArmorConfig.getDefaultInstance()) { + getModelArmorConfigBuilder().mergeFrom(value); + } else { + modelArmorConfig_ = value; + } + } else { + modelArmorConfigBuilder_.mergeFrom(value); + } + if (modelArmorConfig_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Settings for prompt and response sanitization using the Model
    +     * Armor service. If supplied, safety_settings must not be supplied.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.ModelArmorConfig model_armor_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearModelArmorConfig() { + bitField0_ = (bitField0_ & ~0x00000100); + modelArmorConfig_ = null; + if (modelArmorConfigBuilder_ != null) { + modelArmorConfigBuilder_.dispose(); + modelArmorConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Settings for prompt and response sanitization using the Model
    +     * Armor service. If supplied, safety_settings must not be supplied.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.ModelArmorConfig model_armor_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelArmorConfig.Builder + getModelArmorConfigBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return internalGetModelArmorConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. Settings for prompt and response sanitization using the Model
    +     * Armor service. If supplied, safety_settings must not be supplied.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.ModelArmorConfig model_armor_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelArmorConfigOrBuilder + getModelArmorConfigOrBuilder() { + if (modelArmorConfigBuilder_ != null) { + return modelArmorConfigBuilder_.getMessageOrBuilder(); + } else { + return modelArmorConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelArmorConfig.getDefaultInstance() + : modelArmorConfig_; + } + } + + /** + * + * + *
    +     * Optional. Settings for prompt and response sanitization using the Model
    +     * Armor service. If supplied, safety_settings must not be supplied.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.ModelArmorConfig model_armor_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.ModelArmorConfig, + com.google.cloud.aiplatform.v1beta1.ModelArmorConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ModelArmorConfigOrBuilder> + internalGetModelArmorConfigFieldBuilder() { + if (modelArmorConfigBuilder_ == null) { + modelArmorConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.ModelArmorConfig, + com.google.cloud.aiplatform.v1beta1.ModelArmorConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ModelArmorConfigOrBuilder>( + getModelArmorConfig(), getParentForChildren(), isClean()); + modelArmorConfig_ = null; + } + return modelArmorConfigBuilder_; + } + private com.google.cloud.aiplatform.v1beta1.GenerationConfig generationConfig_; private com.google.protobuf.SingleFieldBuilder< com.google.cloud.aiplatform.v1beta1.GenerationConfig, @@ -3953,7 +4277,7 @@ public com.google.cloud.aiplatform.v1beta1.SafetySetting.Builder addSafetySettin * @return Whether the generationConfig field is set. */ public boolean hasGenerationConfig() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -3999,7 +4323,7 @@ public Builder setGenerationConfig(com.google.cloud.aiplatform.v1beta1.Generatio } else { generationConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4022,7 +4346,7 @@ public Builder setGenerationConfig( } else { generationConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4041,7 +4365,7 @@ public Builder setGenerationConfig( public Builder mergeGenerationConfig( com.google.cloud.aiplatform.v1beta1.GenerationConfig value) { if (generationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000200) != 0) && generationConfig_ != null && generationConfig_ != com.google.cloud.aiplatform.v1beta1.GenerationConfig.getDefaultInstance()) { @@ -4053,7 +4377,7 @@ public Builder mergeGenerationConfig( generationConfigBuilder_.mergeFrom(value); } if (generationConfig_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } return this; @@ -4071,7 +4395,7 @@ public Builder mergeGenerationConfig( *
    */ public Builder clearGenerationConfig() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); generationConfig_ = null; if (generationConfigBuilder_ != null) { generationConfigBuilder_.dispose(); @@ -4094,7 +4418,7 @@ public Builder clearGenerationConfig() { */ public com.google.cloud.aiplatform.v1beta1.GenerationConfig.Builder getGenerationConfigBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return internalGetGenerationConfigFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GeminiExampleOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GeminiExampleOrBuilder.java index 61e1d9ca0fbf..fead3d099e52 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GeminiExampleOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GeminiExampleOrBuilder.java @@ -544,6 +544,52 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.aiplatform.v1beta1.SafetySettingOrBuilder getSafetySettingsOrBuilder(int index); + /** + * + * + *
    +   * Optional. Settings for prompt and response sanitization using the Model
    +   * Armor service. If supplied, safety_settings must not be supplied.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1beta1.ModelArmorConfig model_armor_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelArmorConfig field is set. + */ + boolean hasModelArmorConfig(); + + /** + * + * + *
    +   * Optional. Settings for prompt and response sanitization using the Model
    +   * Armor service. If supplied, safety_settings must not be supplied.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1beta1.ModelArmorConfig model_armor_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelArmorConfig. + */ + com.google.cloud.aiplatform.v1beta1.ModelArmorConfig getModelArmorConfig(); + + /** + * + * + *
    +   * Optional. Settings for prompt and response sanitization using the Model
    +   * Armor service. If supplied, safety_settings must not be supplied.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1beta1.ModelArmorConfig model_armor_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.ModelArmorConfigOrBuilder getModelArmorConfigOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IoProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IoProto.java index 9aa7480837cd..5fbb38095196 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IoProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IoProto.java @@ -64,6 +64,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_BigQueryDestination_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_BigQueryDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_VertexMultimodalDatasetSource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_VertexMultimodalDatasetSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_VertexMultimodalDatasetDestination_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_VertexMultimodalDatasetDestination_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_CsvDestination_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -127,18 +135,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n(google/cloud/aiplatform/v1beta1/io.pro" + "to\022\037google.cloud.aiplatform.v1beta1\032\037goo" - + "gle/api/field_behavior.proto\032.google/clo" - + "ud/aiplatform/v1beta1/api_auth.proto\032\037go" - + "ogle/protobuf/timestamp.proto\"Q\n\nAvroSou" - + "rce\022C\n\ngcs_source\030\001 \001(\0132*.google.cloud.a" - + "iplatform.v1beta1.GcsSourceB\003\340A\002\"P\n\tCsvS" - + "ource\022C\n\ngcs_source\030\001 \001(\0132*.google.cloud" - + ".aiplatform.v1beta1.GcsSourceB\003\340A\002\"\036\n\tGc" - + "sSource\022\021\n\004uris\030\001 \003(\tB\003\340A\002\"0\n\016GcsDestina" - + "tion\022\036\n\021output_uri_prefix\030\001 \001(\tB\003\340A\002\"(\n\016" - + "BigQuerySource\022\026\n\tinput_uri\030\001 \001(\tB\003\340A\002\"." - + "\n\023BigQueryDestination\022\027\n\noutput_uri\030\001 \001(" - + "\tB\003\340A\002\"_\n\016CsvDestination\022M\n\017gcs_destinat" + + "gle/api/field_behavior.proto\032\031google/api" + + "/resource.proto\032.google/cloud/aiplatform" + + "/v1beta1/api_auth.proto\032\037google/protobuf" + + "/timestamp.proto\"Q\n\nAvroSource\022C\n\ngcs_so" + + "urce\030\001 \001(\0132*.google.cloud.aiplatform.v1b" + + "eta1.GcsSourceB\003\340A\002\"P\n\tCsvSource\022C\n\ngcs_" + + "source\030\001 \001(\0132*.google.cloud.aiplatform.v" + + "1beta1.GcsSourceB\003\340A\002\"\036\n\tGcsSource\022\021\n\004ur" + + "is\030\001 \003(\tB\003\340A\002\"0\n\016GcsDestination\022\036\n\021outpu" + + "t_uri_prefix\030\001 \001(\tB\003\340A\002\"(\n\016BigQuerySourc" + + "e\022\026\n\tinput_uri\030\001 \001(\tB\003\340A\002\".\n\023BigQueryDes" + + "tination\022\027\n\noutput_uri\030\001 \001(\tB\003\340A\002\"`\n\035Ver" + + "texMultimodalDatasetSource\022?\n\014dataset_na" + + "me\030\001 \001(\tB)\340A\002\372A#\n!aiplatform.googleapis." + + "com/Dataset\"\230\001\n\"VertexMultimodalDatasetD" + + "estination\022W\n\024bigquery_destination\030\001 \001(\013" + + "24.google.cloud.aiplatform.v1beta1.BigQu" + + "eryDestinationB\003\340A\001\022\031\n\014display_name\030\002 \001(" + + "\tB\003\340A\001\"_\n\016CsvDestination\022M\n\017gcs_destinat" + "ion\030\001 \001(\0132/.google.cloud.aiplatform.v1be" + "ta1.GcsDestinationB\003\340A\002\"d\n\023TFRecordDesti" + "nation\022M\n\017gcs_destination\030\001 \001(\0132/.google" @@ -196,6 +211,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.ApiAuthProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); @@ -247,8 +263,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "OutputUri", }); - internal_static_google_cloud_aiplatform_v1beta1_CsvDestination_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_VertexMultimodalDatasetSource_descriptor = getDescriptor().getMessageType(6); + internal_static_google_cloud_aiplatform_v1beta1_VertexMultimodalDatasetSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_VertexMultimodalDatasetSource_descriptor, + new java.lang.String[] { + "DatasetName", + }); + internal_static_google_cloud_aiplatform_v1beta1_VertexMultimodalDatasetDestination_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_aiplatform_v1beta1_VertexMultimodalDatasetDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_VertexMultimodalDatasetDestination_descriptor, + new java.lang.String[] { + "BigqueryDestination", "DisplayName", + }); + internal_static_google_cloud_aiplatform_v1beta1_CsvDestination_descriptor = + getDescriptor().getMessageType(8); internal_static_google_cloud_aiplatform_v1beta1_CsvDestination_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_CsvDestination_descriptor, @@ -256,7 +288,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GcsDestination", }); internal_static_google_cloud_aiplatform_v1beta1_TFRecordDestination_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(9); internal_static_google_cloud_aiplatform_v1beta1_TFRecordDestination_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_TFRecordDestination_descriptor, @@ -264,7 +296,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GcsDestination", }); internal_static_google_cloud_aiplatform_v1beta1_ContainerRegistryDestination_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(10); internal_static_google_cloud_aiplatform_v1beta1_ContainerRegistryDestination_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ContainerRegistryDestination_descriptor, @@ -272,7 +304,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OutputUri", }); internal_static_google_cloud_aiplatform_v1beta1_GoogleDriveSource_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(11); internal_static_google_cloud_aiplatform_v1beta1_GoogleDriveSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_GoogleDriveSource_descriptor, @@ -289,13 +321,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ResourceType", "ResourceId", }); internal_static_google_cloud_aiplatform_v1beta1_DirectUploadSource_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(12); internal_static_google_cloud_aiplatform_v1beta1_DirectUploadSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_DirectUploadSource_descriptor, new java.lang.String[] {}); internal_static_google_cloud_aiplatform_v1beta1_SlackSource_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(13); internal_static_google_cloud_aiplatform_v1beta1_SlackSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_SlackSource_descriptor, @@ -320,7 +352,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ChannelId", "StartTime", "EndTime", }); internal_static_google_cloud_aiplatform_v1beta1_JiraSource_descriptor = - getDescriptor().getMessageType(12); + getDescriptor().getMessageType(14); internal_static_google_cloud_aiplatform_v1beta1_JiraSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_JiraSource_descriptor, @@ -336,7 +368,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Projects", "CustomQueries", "Email", "ServerUri", "ApiKeyConfig", }); internal_static_google_cloud_aiplatform_v1beta1_SharePointSources_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(15); internal_static_google_cloud_aiplatform_v1beta1_SharePointSources_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_SharePointSources_descriptor, @@ -364,11 +396,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.ApiAuthProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LLMBasedMetricSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LLMBasedMetricSpec.java new file mode 100644 index 000000000000..885e9eeb039f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LLMBasedMetricSpec.java @@ -0,0 +1,2184 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
    + * Specification for an LLM based metric.
    + * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec} + */ +@com.google.protobuf.Generated +public final class LLMBasedMetricSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec) + LLMBasedMetricSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "LLMBasedMetricSpec"); + } + + // Use LLMBasedMetricSpec.newBuilder() to construct. + private LLMBasedMetricSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private LLMBasedMetricSpec() { + metricPromptTemplate_ = ""; + systemInstruction_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_LLMBasedMetricSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_LLMBasedMetricSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.class, + com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.Builder.class); + } + + private int bitField0_; + private int rubricsSourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object rubricsSource_; + + public enum RubricsSourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + RUBRIC_GROUP_KEY(4), + PREDEFINED_RUBRIC_GENERATION_SPEC(6), + RUBRICSSOURCE_NOT_SET(0); + private final int value; + + private RubricsSourceCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RubricsSourceCase valueOf(int value) { + return forNumber(value); + } + + public static RubricsSourceCase forNumber(int value) { + switch (value) { + case 4: + return RUBRIC_GROUP_KEY; + case 6: + return PREDEFINED_RUBRIC_GENERATION_SPEC; + case 0: + return RUBRICSSOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public RubricsSourceCase getRubricsSourceCase() { + return RubricsSourceCase.forNumber(rubricsSourceCase_); + } + + public static final int RUBRIC_GROUP_KEY_FIELD_NUMBER = 4; + + /** + * + * + *
    +   * Use a pre-defined group of rubrics associated with the input.
    +   * Refers to a key in the rubric_groups map of EvaluationInstance.
    +   * 
    + * + * string rubric_group_key = 4; + * + * @return Whether the rubricGroupKey field is set. + */ + public boolean hasRubricGroupKey() { + return rubricsSourceCase_ == 4; + } + + /** + * + * + *
    +   * Use a pre-defined group of rubrics associated with the input.
    +   * Refers to a key in the rubric_groups map of EvaluationInstance.
    +   * 
    + * + * string rubric_group_key = 4; + * + * @return The rubricGroupKey. + */ + public java.lang.String getRubricGroupKey() { + java.lang.Object ref = ""; + if (rubricsSourceCase_ == 4) { + ref = rubricsSource_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (rubricsSourceCase_ == 4) { + rubricsSource_ = s; + } + return s; + } + } + + /** + * + * + *
    +   * Use a pre-defined group of rubrics associated with the input.
    +   * Refers to a key in the rubric_groups map of EvaluationInstance.
    +   * 
    + * + * string rubric_group_key = 4; + * + * @return The bytes for rubricGroupKey. + */ + public com.google.protobuf.ByteString getRubricGroupKeyBytes() { + java.lang.Object ref = ""; + if (rubricsSourceCase_ == 4) { + ref = rubricsSource_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (rubricsSourceCase_ == 4) { + rubricsSource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PREDEFINED_RUBRIC_GENERATION_SPEC_FIELD_NUMBER = 6; + + /** + * + * + *
    +   * Dynamically generate rubrics using a predefined spec.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 6; + * + * + * @return Whether the predefinedRubricGenerationSpec field is set. + */ + @java.lang.Override + public boolean hasPredefinedRubricGenerationSpec() { + return rubricsSourceCase_ == 6; + } + + /** + * + * + *
    +   * Dynamically generate rubrics using a predefined spec.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 6; + * + * + * @return The predefinedRubricGenerationSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec + getPredefinedRubricGenerationSpec() { + if (rubricsSourceCase_ == 6) { + return (com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec) rubricsSource_; + } + return com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.getDefaultInstance(); + } + + /** + * + * + *
    +   * Dynamically generate rubrics using a predefined spec.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 6; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpecOrBuilder + getPredefinedRubricGenerationSpecOrBuilder() { + if (rubricsSourceCase_ == 6) { + return (com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec) rubricsSource_; + } + return com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.getDefaultInstance(); + } + + public static final int METRIC_PROMPT_TEMPLATE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object metricPromptTemplate_ = ""; + + /** + * + * + *
    +   * Required. Template for the prompt sent to the judge model.
    +   * 
    + * + * optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricPromptTemplate field is set. + */ + @java.lang.Override + public boolean hasMetricPromptTemplate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. Template for the prompt sent to the judge model.
    +   * 
    + * + * optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricPromptTemplate. + */ + @java.lang.Override + public java.lang.String getMetricPromptTemplate() { + java.lang.Object ref = metricPromptTemplate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metricPromptTemplate_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. Template for the prompt sent to the judge model.
    +   * 
    + * + * optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for metricPromptTemplate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetricPromptTemplateBytes() { + java.lang.Object ref = metricPromptTemplate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metricPromptTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SYSTEM_INSTRUCTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object systemInstruction_ = ""; + + /** + * + * + *
    +   * Optional. System instructions for the judge model.
    +   * 
    + * + * optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the systemInstruction field is set. + */ + @java.lang.Override + public boolean hasSystemInstruction() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Optional. System instructions for the judge model.
    +   * 
    + * + * optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The systemInstruction. + */ + @java.lang.Override + public java.lang.String getSystemInstruction() { + java.lang.Object ref = systemInstruction_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + systemInstruction_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. System instructions for the judge model.
    +   * 
    + * + * optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for systemInstruction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSystemInstructionBytes() { + java.lang.Object ref = systemInstruction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + systemInstruction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JUDGE_AUTORATER_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1beta1.AutoraterConfig judgeAutoraterConfig_; + + /** + * + * + *
    +   * Optional. Optional configuration for the judge LLM (Autorater).
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig judge_autorater_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the judgeAutoraterConfig field is set. + */ + @java.lang.Override + public boolean hasJudgeAutoraterConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +   * Optional. Optional configuration for the judge LLM (Autorater).
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig judge_autorater_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The judgeAutoraterConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AutoraterConfig getJudgeAutoraterConfig() { + return judgeAutoraterConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.AutoraterConfig.getDefaultInstance() + : judgeAutoraterConfig_; + } + + /** + * + * + *
    +   * Optional. Optional configuration for the judge LLM (Autorater).
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig judge_autorater_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AutoraterConfigOrBuilder + getJudgeAutoraterConfigOrBuilder() { + return judgeAutoraterConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.AutoraterConfig.getDefaultInstance() + : judgeAutoraterConfig_; + } + + public static final int ADDITIONAL_CONFIG_FIELD_NUMBER = 7; + private com.google.protobuf.Struct additionalConfig_; + + /** + * + * + *
    +   * Optional. Optional additional configuration for the metric.
    +   * 
    + * + * + * optional .google.protobuf.Struct additional_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the additionalConfig field is set. + */ + @java.lang.Override + public boolean hasAdditionalConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +   * Optional. Optional additional configuration for the metric.
    +   * 
    + * + * + * optional .google.protobuf.Struct additional_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The additionalConfig. + */ + @java.lang.Override + public com.google.protobuf.Struct getAdditionalConfig() { + return additionalConfig_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : additionalConfig_; + } + + /** + * + * + *
    +   * Optional. Optional additional configuration for the metric.
    +   * 
    + * + * + * optional .google.protobuf.Struct additional_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getAdditionalConfigOrBuilder() { + return additionalConfig_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : additionalConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, metricPromptTemplate_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, systemInstruction_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getJudgeAutoraterConfig()); + } + if (rubricsSourceCase_ == 4) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, rubricsSource_); + } + if (rubricsSourceCase_ == 6) { + output.writeMessage( + 6, (com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec) rubricsSource_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(7, getAdditionalConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, metricPromptTemplate_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, systemInstruction_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getJudgeAutoraterConfig()); + } + if (rubricsSourceCase_ == 4) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, rubricsSource_); + } + if (rubricsSourceCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec) rubricsSource_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getAdditionalConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec other = + (com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec) obj; + + if (hasMetricPromptTemplate() != other.hasMetricPromptTemplate()) return false; + if (hasMetricPromptTemplate()) { + if (!getMetricPromptTemplate().equals(other.getMetricPromptTemplate())) return false; + } + if (hasSystemInstruction() != other.hasSystemInstruction()) return false; + if (hasSystemInstruction()) { + if (!getSystemInstruction().equals(other.getSystemInstruction())) return false; + } + if (hasJudgeAutoraterConfig() != other.hasJudgeAutoraterConfig()) return false; + if (hasJudgeAutoraterConfig()) { + if (!getJudgeAutoraterConfig().equals(other.getJudgeAutoraterConfig())) return false; + } + if (hasAdditionalConfig() != other.hasAdditionalConfig()) return false; + if (hasAdditionalConfig()) { + if (!getAdditionalConfig().equals(other.getAdditionalConfig())) return false; + } + if (!getRubricsSourceCase().equals(other.getRubricsSourceCase())) return false; + switch (rubricsSourceCase_) { + case 4: + if (!getRubricGroupKey().equals(other.getRubricGroupKey())) return false; + break; + case 6: + if (!getPredefinedRubricGenerationSpec().equals(other.getPredefinedRubricGenerationSpec())) + return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetricPromptTemplate()) { + hash = (37 * hash) + METRIC_PROMPT_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getMetricPromptTemplate().hashCode(); + } + if (hasSystemInstruction()) { + hash = (37 * hash) + SYSTEM_INSTRUCTION_FIELD_NUMBER; + hash = (53 * hash) + getSystemInstruction().hashCode(); + } + if (hasJudgeAutoraterConfig()) { + hash = (37 * hash) + JUDGE_AUTORATER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getJudgeAutoraterConfig().hashCode(); + } + if (hasAdditionalConfig()) { + hash = (37 * hash) + ADDITIONAL_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalConfig().hashCode(); + } + switch (rubricsSourceCase_) { + case 4: + hash = (37 * hash) + RUBRIC_GROUP_KEY_FIELD_NUMBER; + hash = (53 * hash) + getRubricGroupKey().hashCode(); + break; + case 6: + hash = (37 * hash) + PREDEFINED_RUBRIC_GENERATION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getPredefinedRubricGenerationSpec().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Specification for an LLM based metric.
    +   * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec) + com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_LLMBasedMetricSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_LLMBasedMetricSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.class, + com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetJudgeAutoraterConfigFieldBuilder(); + internalGetAdditionalConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (predefinedRubricGenerationSpecBuilder_ != null) { + predefinedRubricGenerationSpecBuilder_.clear(); + } + metricPromptTemplate_ = ""; + systemInstruction_ = ""; + judgeAutoraterConfig_ = null; + if (judgeAutoraterConfigBuilder_ != null) { + judgeAutoraterConfigBuilder_.dispose(); + judgeAutoraterConfigBuilder_ = null; + } + additionalConfig_ = null; + if (additionalConfigBuilder_ != null) { + additionalConfigBuilder_.dispose(); + additionalConfigBuilder_ = null; + } + rubricsSourceCase_ = 0; + rubricsSource_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_LLMBasedMetricSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec build() { + com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec buildPartial() { + com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec result = + new com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.metricPromptTemplate_ = metricPromptTemplate_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.systemInstruction_ = systemInstruction_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.judgeAutoraterConfig_ = + judgeAutoraterConfigBuilder_ == null + ? judgeAutoraterConfig_ + : judgeAutoraterConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.additionalConfig_ = + additionalConfigBuilder_ == null ? additionalConfig_ : additionalConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec result) { + result.rubricsSourceCase_ = rubricsSourceCase_; + result.rubricsSource_ = this.rubricsSource_; + if (rubricsSourceCase_ == 6 && predefinedRubricGenerationSpecBuilder_ != null) { + result.rubricsSource_ = predefinedRubricGenerationSpecBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec other) { + if (other == com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.getDefaultInstance()) + return this; + if (other.hasMetricPromptTemplate()) { + metricPromptTemplate_ = other.metricPromptTemplate_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasSystemInstruction()) { + systemInstruction_ = other.systemInstruction_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasJudgeAutoraterConfig()) { + mergeJudgeAutoraterConfig(other.getJudgeAutoraterConfig()); + } + if (other.hasAdditionalConfig()) { + mergeAdditionalConfig(other.getAdditionalConfig()); + } + switch (other.getRubricsSourceCase()) { + case RUBRIC_GROUP_KEY: + { + rubricsSourceCase_ = 4; + rubricsSource_ = other.rubricsSource_; + onChanged(); + break; + } + case PREDEFINED_RUBRIC_GENERATION_SPEC: + { + mergePredefinedRubricGenerationSpec(other.getPredefinedRubricGenerationSpec()); + break; + } + case RUBRICSSOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + metricPromptTemplate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + systemInstruction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetJudgeAutoraterConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + rubricsSourceCase_ = 4; + rubricsSource_ = s; + break; + } // case 34 + case 50: + { + input.readMessage( + internalGetPredefinedRubricGenerationSpecFieldBuilder().getBuilder(), + extensionRegistry); + rubricsSourceCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetAdditionalConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int rubricsSourceCase_ = 0; + private java.lang.Object rubricsSource_; + + public RubricsSourceCase getRubricsSourceCase() { + return RubricsSourceCase.forNumber(rubricsSourceCase_); + } + + public Builder clearRubricsSource() { + rubricsSourceCase_ = 0; + rubricsSource_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
    +     * Use a pre-defined group of rubrics associated with the input.
    +     * Refers to a key in the rubric_groups map of EvaluationInstance.
    +     * 
    + * + * string rubric_group_key = 4; + * + * @return Whether the rubricGroupKey field is set. + */ + @java.lang.Override + public boolean hasRubricGroupKey() { + return rubricsSourceCase_ == 4; + } + + /** + * + * + *
    +     * Use a pre-defined group of rubrics associated with the input.
    +     * Refers to a key in the rubric_groups map of EvaluationInstance.
    +     * 
    + * + * string rubric_group_key = 4; + * + * @return The rubricGroupKey. + */ + @java.lang.Override + public java.lang.String getRubricGroupKey() { + java.lang.Object ref = ""; + if (rubricsSourceCase_ == 4) { + ref = rubricsSource_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (rubricsSourceCase_ == 4) { + rubricsSource_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Use a pre-defined group of rubrics associated with the input.
    +     * Refers to a key in the rubric_groups map of EvaluationInstance.
    +     * 
    + * + * string rubric_group_key = 4; + * + * @return The bytes for rubricGroupKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRubricGroupKeyBytes() { + java.lang.Object ref = ""; + if (rubricsSourceCase_ == 4) { + ref = rubricsSource_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (rubricsSourceCase_ == 4) { + rubricsSource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Use a pre-defined group of rubrics associated with the input.
    +     * Refers to a key in the rubric_groups map of EvaluationInstance.
    +     * 
    + * + * string rubric_group_key = 4; + * + * @param value The rubricGroupKey to set. + * @return This builder for chaining. + */ + public Builder setRubricGroupKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rubricsSourceCase_ = 4; + rubricsSource_ = value; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Use a pre-defined group of rubrics associated with the input.
    +     * Refers to a key in the rubric_groups map of EvaluationInstance.
    +     * 
    + * + * string rubric_group_key = 4; + * + * @return This builder for chaining. + */ + public Builder clearRubricGroupKey() { + if (rubricsSourceCase_ == 4) { + rubricsSourceCase_ = 0; + rubricsSource_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Use a pre-defined group of rubrics associated with the input.
    +     * Refers to a key in the rubric_groups map of EvaluationInstance.
    +     * 
    + * + * string rubric_group_key = 4; + * + * @param value The bytes for rubricGroupKey to set. + * @return This builder for chaining. + */ + public Builder setRubricGroupKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rubricsSourceCase_ = 4; + rubricsSource_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec, + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.Builder, + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpecOrBuilder> + predefinedRubricGenerationSpecBuilder_; + + /** + * + * + *
    +     * Dynamically generate rubrics using a predefined spec.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 6; + * + * + * @return Whether the predefinedRubricGenerationSpec field is set. + */ + @java.lang.Override + public boolean hasPredefinedRubricGenerationSpec() { + return rubricsSourceCase_ == 6; + } + + /** + * + * + *
    +     * Dynamically generate rubrics using a predefined spec.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 6; + * + * + * @return The predefinedRubricGenerationSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec + getPredefinedRubricGenerationSpec() { + if (predefinedRubricGenerationSpecBuilder_ == null) { + if (rubricsSourceCase_ == 6) { + return (com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec) rubricsSource_; + } + return com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.getDefaultInstance(); + } else { + if (rubricsSourceCase_ == 6) { + return predefinedRubricGenerationSpecBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Dynamically generate rubrics using a predefined spec.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 6; + * + */ + public Builder setPredefinedRubricGenerationSpec( + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec value) { + if (predefinedRubricGenerationSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rubricsSource_ = value; + onChanged(); + } else { + predefinedRubricGenerationSpecBuilder_.setMessage(value); + } + rubricsSourceCase_ = 6; + return this; + } + + /** + * + * + *
    +     * Dynamically generate rubrics using a predefined spec.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 6; + * + */ + public Builder setPredefinedRubricGenerationSpec( + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.Builder builderForValue) { + if (predefinedRubricGenerationSpecBuilder_ == null) { + rubricsSource_ = builderForValue.build(); + onChanged(); + } else { + predefinedRubricGenerationSpecBuilder_.setMessage(builderForValue.build()); + } + rubricsSourceCase_ = 6; + return this; + } + + /** + * + * + *
    +     * Dynamically generate rubrics using a predefined spec.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 6; + * + */ + public Builder mergePredefinedRubricGenerationSpec( + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec value) { + if (predefinedRubricGenerationSpecBuilder_ == null) { + if (rubricsSourceCase_ == 6 + && rubricsSource_ + != com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.getDefaultInstance()) { + rubricsSource_ = + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.newBuilder( + (com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec) rubricsSource_) + .mergeFrom(value) + .buildPartial(); + } else { + rubricsSource_ = value; + } + onChanged(); + } else { + if (rubricsSourceCase_ == 6) { + predefinedRubricGenerationSpecBuilder_.mergeFrom(value); + } else { + predefinedRubricGenerationSpecBuilder_.setMessage(value); + } + } + rubricsSourceCase_ = 6; + return this; + } + + /** + * + * + *
    +     * Dynamically generate rubrics using a predefined spec.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 6; + * + */ + public Builder clearPredefinedRubricGenerationSpec() { + if (predefinedRubricGenerationSpecBuilder_ == null) { + if (rubricsSourceCase_ == 6) { + rubricsSourceCase_ = 0; + rubricsSource_ = null; + onChanged(); + } + } else { + if (rubricsSourceCase_ == 6) { + rubricsSourceCase_ = 0; + rubricsSource_ = null; + } + predefinedRubricGenerationSpecBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Dynamically generate rubrics using a predefined spec.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 6; + * + */ + public com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.Builder + getPredefinedRubricGenerationSpecBuilder() { + return internalGetPredefinedRubricGenerationSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Dynamically generate rubrics using a predefined spec.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 6; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpecOrBuilder + getPredefinedRubricGenerationSpecOrBuilder() { + if ((rubricsSourceCase_ == 6) && (predefinedRubricGenerationSpecBuilder_ != null)) { + return predefinedRubricGenerationSpecBuilder_.getMessageOrBuilder(); + } else { + if (rubricsSourceCase_ == 6) { + return (com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec) rubricsSource_; + } + return com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Dynamically generate rubrics using a predefined spec.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 6; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec, + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.Builder, + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpecOrBuilder> + internalGetPredefinedRubricGenerationSpecFieldBuilder() { + if (predefinedRubricGenerationSpecBuilder_ == null) { + if (!(rubricsSourceCase_ == 6)) { + rubricsSource_ = + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.getDefaultInstance(); + } + predefinedRubricGenerationSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec, + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.Builder, + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpecOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec) rubricsSource_, + getParentForChildren(), + isClean()); + rubricsSource_ = null; + } + rubricsSourceCase_ = 6; + onChanged(); + return predefinedRubricGenerationSpecBuilder_; + } + + private java.lang.Object metricPromptTemplate_ = ""; + + /** + * + * + *
    +     * Required. Template for the prompt sent to the judge model.
    +     * 
    + * + * optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricPromptTemplate field is set. + */ + public boolean hasMetricPromptTemplate() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Required. Template for the prompt sent to the judge model.
    +     * 
    + * + * optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricPromptTemplate. + */ + public java.lang.String getMetricPromptTemplate() { + java.lang.Object ref = metricPromptTemplate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metricPromptTemplate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. Template for the prompt sent to the judge model.
    +     * 
    + * + * optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for metricPromptTemplate. + */ + public com.google.protobuf.ByteString getMetricPromptTemplateBytes() { + java.lang.Object ref = metricPromptTemplate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metricPromptTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. Template for the prompt sent to the judge model.
    +     * 
    + * + * optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The metricPromptTemplate to set. + * @return This builder for chaining. + */ + public Builder setMetricPromptTemplate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + metricPromptTemplate_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Template for the prompt sent to the judge model.
    +     * 
    + * + * optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearMetricPromptTemplate() { + metricPromptTemplate_ = getDefaultInstance().getMetricPromptTemplate(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Template for the prompt sent to the judge model.
    +     * 
    + * + * optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for metricPromptTemplate to set. + * @return This builder for chaining. + */ + public Builder setMetricPromptTemplateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + metricPromptTemplate_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object systemInstruction_ = ""; + + /** + * + * + *
    +     * Optional. System instructions for the judge model.
    +     * 
    + * + * optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the systemInstruction field is set. + */ + public boolean hasSystemInstruction() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +     * Optional. System instructions for the judge model.
    +     * 
    + * + * optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The systemInstruction. + */ + public java.lang.String getSystemInstruction() { + java.lang.Object ref = systemInstruction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + systemInstruction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. System instructions for the judge model.
    +     * 
    + * + * optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for systemInstruction. + */ + public com.google.protobuf.ByteString getSystemInstructionBytes() { + java.lang.Object ref = systemInstruction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + systemInstruction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. System instructions for the judge model.
    +     * 
    + * + * optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The systemInstruction to set. + * @return This builder for chaining. + */ + public Builder setSystemInstruction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + systemInstruction_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. System instructions for the judge model.
    +     * 
    + * + * optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSystemInstruction() { + systemInstruction_ = getDefaultInstance().getSystemInstruction(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. System instructions for the judge model.
    +     * 
    + * + * optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for systemInstruction to set. + * @return This builder for chaining. + */ + public Builder setSystemInstructionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + systemInstruction_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.AutoraterConfig judgeAutoraterConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.AutoraterConfig, + com.google.cloud.aiplatform.v1beta1.AutoraterConfig.Builder, + com.google.cloud.aiplatform.v1beta1.AutoraterConfigOrBuilder> + judgeAutoraterConfigBuilder_; + + /** + * + * + *
    +     * Optional. Optional configuration for the judge LLM (Autorater).
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig judge_autorater_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the judgeAutoraterConfig field is set. + */ + public boolean hasJudgeAutoraterConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
    +     * Optional. Optional configuration for the judge LLM (Autorater).
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig judge_autorater_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The judgeAutoraterConfig. + */ + public com.google.cloud.aiplatform.v1beta1.AutoraterConfig getJudgeAutoraterConfig() { + if (judgeAutoraterConfigBuilder_ == null) { + return judgeAutoraterConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.AutoraterConfig.getDefaultInstance() + : judgeAutoraterConfig_; + } else { + return judgeAutoraterConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. Optional configuration for the judge LLM (Autorater).
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig judge_autorater_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setJudgeAutoraterConfig( + com.google.cloud.aiplatform.v1beta1.AutoraterConfig value) { + if (judgeAutoraterConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + judgeAutoraterConfig_ = value; + } else { + judgeAutoraterConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Optional configuration for the judge LLM (Autorater).
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig judge_autorater_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setJudgeAutoraterConfig( + com.google.cloud.aiplatform.v1beta1.AutoraterConfig.Builder builderForValue) { + if (judgeAutoraterConfigBuilder_ == null) { + judgeAutoraterConfig_ = builderForValue.build(); + } else { + judgeAutoraterConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Optional configuration for the judge LLM (Autorater).
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig judge_autorater_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeJudgeAutoraterConfig( + com.google.cloud.aiplatform.v1beta1.AutoraterConfig value) { + if (judgeAutoraterConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && judgeAutoraterConfig_ != null + && judgeAutoraterConfig_ + != com.google.cloud.aiplatform.v1beta1.AutoraterConfig.getDefaultInstance()) { + getJudgeAutoraterConfigBuilder().mergeFrom(value); + } else { + judgeAutoraterConfig_ = value; + } + } else { + judgeAutoraterConfigBuilder_.mergeFrom(value); + } + if (judgeAutoraterConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Optional configuration for the judge LLM (Autorater).
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig judge_autorater_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearJudgeAutoraterConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + judgeAutoraterConfig_ = null; + if (judgeAutoraterConfigBuilder_ != null) { + judgeAutoraterConfigBuilder_.dispose(); + judgeAutoraterConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Optional configuration for the judge LLM (Autorater).
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig judge_autorater_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.AutoraterConfig.Builder + getJudgeAutoraterConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetJudgeAutoraterConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. Optional configuration for the judge LLM (Autorater).
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig judge_autorater_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.AutoraterConfigOrBuilder + getJudgeAutoraterConfigOrBuilder() { + if (judgeAutoraterConfigBuilder_ != null) { + return judgeAutoraterConfigBuilder_.getMessageOrBuilder(); + } else { + return judgeAutoraterConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.AutoraterConfig.getDefaultInstance() + : judgeAutoraterConfig_; + } + } + + /** + * + * + *
    +     * Optional. Optional configuration for the judge LLM (Autorater).
    +     * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig judge_autorater_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.AutoraterConfig, + com.google.cloud.aiplatform.v1beta1.AutoraterConfig.Builder, + com.google.cloud.aiplatform.v1beta1.AutoraterConfigOrBuilder> + internalGetJudgeAutoraterConfigFieldBuilder() { + if (judgeAutoraterConfigBuilder_ == null) { + judgeAutoraterConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.AutoraterConfig, + com.google.cloud.aiplatform.v1beta1.AutoraterConfig.Builder, + com.google.cloud.aiplatform.v1beta1.AutoraterConfigOrBuilder>( + getJudgeAutoraterConfig(), getParentForChildren(), isClean()); + judgeAutoraterConfig_ = null; + } + return judgeAutoraterConfigBuilder_; + } + + private com.google.protobuf.Struct additionalConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + additionalConfigBuilder_; + + /** + * + * + *
    +     * Optional. Optional additional configuration for the metric.
    +     * 
    + * + * + * optional .google.protobuf.Struct additional_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the additionalConfig field is set. + */ + public boolean hasAdditionalConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
    +     * Optional. Optional additional configuration for the metric.
    +     * 
    + * + * + * optional .google.protobuf.Struct additional_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The additionalConfig. + */ + public com.google.protobuf.Struct getAdditionalConfig() { + if (additionalConfigBuilder_ == null) { + return additionalConfig_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : additionalConfig_; + } else { + return additionalConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. Optional additional configuration for the metric.
    +     * 
    + * + * + * optional .google.protobuf.Struct additional_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAdditionalConfig(com.google.protobuf.Struct value) { + if (additionalConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + additionalConfig_ = value; + } else { + additionalConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Optional additional configuration for the metric.
    +     * 
    + * + * + * optional .google.protobuf.Struct additional_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAdditionalConfig(com.google.protobuf.Struct.Builder builderForValue) { + if (additionalConfigBuilder_ == null) { + additionalConfig_ = builderForValue.build(); + } else { + additionalConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Optional additional configuration for the metric.
    +     * 
    + * + * + * optional .google.protobuf.Struct additional_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAdditionalConfig(com.google.protobuf.Struct value) { + if (additionalConfigBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && additionalConfig_ != null + && additionalConfig_ != com.google.protobuf.Struct.getDefaultInstance()) { + getAdditionalConfigBuilder().mergeFrom(value); + } else { + additionalConfig_ = value; + } + } else { + additionalConfigBuilder_.mergeFrom(value); + } + if (additionalConfig_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Optional additional configuration for the metric.
    +     * 
    + * + * + * optional .google.protobuf.Struct additional_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAdditionalConfig() { + bitField0_ = (bitField0_ & ~0x00000020); + additionalConfig_ = null; + if (additionalConfigBuilder_ != null) { + additionalConfigBuilder_.dispose(); + additionalConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Optional additional configuration for the metric.
    +     * 
    + * + * + * optional .google.protobuf.Struct additional_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getAdditionalConfigBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetAdditionalConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. Optional additional configuration for the metric.
    +     * 
    + * + * + * optional .google.protobuf.Struct additional_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getAdditionalConfigOrBuilder() { + if (additionalConfigBuilder_ != null) { + return additionalConfigBuilder_.getMessageOrBuilder(); + } else { + return additionalConfig_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : additionalConfig_; + } + } + + /** + * + * + *
    +     * Optional. Optional additional configuration for the metric.
    +     * 
    + * + * + * optional .google.protobuf.Struct additional_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetAdditionalConfigFieldBuilder() { + if (additionalConfigBuilder_ == null) { + additionalConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getAdditionalConfig(), getParentForChildren(), isClean()); + additionalConfig_ = null; + } + return additionalConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec) + private static final com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec(); + } + + public static com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LLMBasedMetricSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LLMBasedMetricSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LLMBasedMetricSpecOrBuilder.java new file mode 100644 index 000000000000..59c842a2103b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LLMBasedMetricSpecOrBuilder.java @@ -0,0 +1,283 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface LLMBasedMetricSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Use a pre-defined group of rubrics associated with the input.
    +   * Refers to a key in the rubric_groups map of EvaluationInstance.
    +   * 
    + * + * string rubric_group_key = 4; + * + * @return Whether the rubricGroupKey field is set. + */ + boolean hasRubricGroupKey(); + + /** + * + * + *
    +   * Use a pre-defined group of rubrics associated with the input.
    +   * Refers to a key in the rubric_groups map of EvaluationInstance.
    +   * 
    + * + * string rubric_group_key = 4; + * + * @return The rubricGroupKey. + */ + java.lang.String getRubricGroupKey(); + + /** + * + * + *
    +   * Use a pre-defined group of rubrics associated with the input.
    +   * Refers to a key in the rubric_groups map of EvaluationInstance.
    +   * 
    + * + * string rubric_group_key = 4; + * + * @return The bytes for rubricGroupKey. + */ + com.google.protobuf.ByteString getRubricGroupKeyBytes(); + + /** + * + * + *
    +   * Dynamically generate rubrics using a predefined spec.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 6; + * + * + * @return Whether the predefinedRubricGenerationSpec field is set. + */ + boolean hasPredefinedRubricGenerationSpec(); + + /** + * + * + *
    +   * Dynamically generate rubrics using a predefined spec.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 6; + * + * + * @return The predefinedRubricGenerationSpec. + */ + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec getPredefinedRubricGenerationSpec(); + + /** + * + * + *
    +   * Dynamically generate rubrics using a predefined spec.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 6; + * + */ + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpecOrBuilder + getPredefinedRubricGenerationSpecOrBuilder(); + + /** + * + * + *
    +   * Required. Template for the prompt sent to the judge model.
    +   * 
    + * + * optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricPromptTemplate field is set. + */ + boolean hasMetricPromptTemplate(); + + /** + * + * + *
    +   * Required. Template for the prompt sent to the judge model.
    +   * 
    + * + * optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricPromptTemplate. + */ + java.lang.String getMetricPromptTemplate(); + + /** + * + * + *
    +   * Required. Template for the prompt sent to the judge model.
    +   * 
    + * + * optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for metricPromptTemplate. + */ + com.google.protobuf.ByteString getMetricPromptTemplateBytes(); + + /** + * + * + *
    +   * Optional. System instructions for the judge model.
    +   * 
    + * + * optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the systemInstruction field is set. + */ + boolean hasSystemInstruction(); + + /** + * + * + *
    +   * Optional. System instructions for the judge model.
    +   * 
    + * + * optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The systemInstruction. + */ + java.lang.String getSystemInstruction(); + + /** + * + * + *
    +   * Optional. System instructions for the judge model.
    +   * 
    + * + * optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for systemInstruction. + */ + com.google.protobuf.ByteString getSystemInstructionBytes(); + + /** + * + * + *
    +   * Optional. Optional configuration for the judge LLM (Autorater).
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig judge_autorater_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the judgeAutoraterConfig field is set. + */ + boolean hasJudgeAutoraterConfig(); + + /** + * + * + *
    +   * Optional. Optional configuration for the judge LLM (Autorater).
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig judge_autorater_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The judgeAutoraterConfig. + */ + com.google.cloud.aiplatform.v1beta1.AutoraterConfig getJudgeAutoraterConfig(); + + /** + * + * + *
    +   * Optional. Optional configuration for the judge LLM (Autorater).
    +   * 
    + * + * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig judge_autorater_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.AutoraterConfigOrBuilder getJudgeAutoraterConfigOrBuilder(); + + /** + * + * + *
    +   * Optional. Optional additional configuration for the metric.
    +   * 
    + * + * + * optional .google.protobuf.Struct additional_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the additionalConfig field is set. + */ + boolean hasAdditionalConfig(); + + /** + * + * + *
    +   * Optional. Optional additional configuration for the metric.
    +   * 
    + * + * + * optional .google.protobuf.Struct additional_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The additionalConfig. + */ + com.google.protobuf.Struct getAdditionalConfig(); + + /** + * + * + *
    +   * Optional. Optional additional configuration for the metric.
    +   * 
    + * + * + * optional .google.protobuf.Struct additional_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getAdditionalConfigOrBuilder(); + + com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.RubricsSourceCase getRubricsSourceCase(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Metric.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Metric.java index fb56f9bbb7cd..9baeab5f790b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Metric.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Metric.java @@ -24,7 +24,7 @@ * * *
    - * The metric used for dataset level evaluation.
    + * The metric used for running evaluations.
      * 
    * * Protobuf type {@code google.cloud.aiplatform.v1beta1.Metric} @@ -74,7 +74,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * The aggregation metrics supported by EvaluationService.EvaluateDataset.
    +   * The per-metric statistics on evaluation results supported by
    +   * `EvaluationService.EvaluateDataset`.
        * 
    * * Protobuf enum {@code google.cloud.aiplatform.v1beta1.Metric.AggregationMetric} @@ -435,6 +436,9 @@ public enum MetricSpecCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PREDEFINED_METRIC_SPEC(8), + COMPUTATION_BASED_METRIC_SPEC(9), + LLM_BASED_METRIC_SPEC(10), POINTWISE_METRIC_SPEC(2), PAIRWISE_METRIC_SPEC(3), EXACT_MATCH_SPEC(4), @@ -459,6 +463,12 @@ public static MetricSpecCase valueOf(int value) { public static MetricSpecCase forNumber(int value) { switch (value) { + case 8: + return PREDEFINED_METRIC_SPEC; + case 9: + return COMPUTATION_BASED_METRIC_SPEC; + case 10: + return LLM_BASED_METRIC_SPEC; case 2: return POINTWISE_METRIC_SPEC; case 3: @@ -485,6 +495,178 @@ public MetricSpecCase getMetricSpecCase() { return MetricSpecCase.forNumber(metricSpecCase_); } + public static final int PREDEFINED_METRIC_SPEC_FIELD_NUMBER = 8; + + /** + * + * + *
    +   * The spec for a pre-defined metric.
    +   * 
    + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_metric_spec = 8; + * + * @return Whether the predefinedMetricSpec field is set. + */ + @java.lang.Override + public boolean hasPredefinedMetricSpec() { + return metricSpecCase_ == 8; + } + + /** + * + * + *
    +   * The spec for a pre-defined metric.
    +   * 
    + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_metric_spec = 8; + * + * @return The predefinedMetricSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec getPredefinedMetricSpec() { + if (metricSpecCase_ == 8) { + return (com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec) metricSpec_; + } + return com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.getDefaultInstance(); + } + + /** + * + * + *
    +   * The spec for a pre-defined metric.
    +   * 
    + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_metric_spec = 8; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpecOrBuilder + getPredefinedMetricSpecOrBuilder() { + if (metricSpecCase_ == 8) { + return (com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec) metricSpec_; + } + return com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.getDefaultInstance(); + } + + public static final int COMPUTATION_BASED_METRIC_SPEC_FIELD_NUMBER = 9; + + /** + * + * + *
    +   * Spec for a computation based metric.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec computation_based_metric_spec = 9; + * + * + * @return Whether the computationBasedMetricSpec field is set. + */ + @java.lang.Override + public boolean hasComputationBasedMetricSpec() { + return metricSpecCase_ == 9; + } + + /** + * + * + *
    +   * Spec for a computation based metric.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec computation_based_metric_spec = 9; + * + * + * @return The computationBasedMetricSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec + getComputationBasedMetricSpec() { + if (metricSpecCase_ == 9) { + return (com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec) metricSpec_; + } + return com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.getDefaultInstance(); + } + + /** + * + * + *
    +   * Spec for a computation based metric.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec computation_based_metric_spec = 9; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpecOrBuilder + getComputationBasedMetricSpecOrBuilder() { + if (metricSpecCase_ == 9) { + return (com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec) metricSpec_; + } + return com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.getDefaultInstance(); + } + + public static final int LLM_BASED_METRIC_SPEC_FIELD_NUMBER = 10; + + /** + * + * + *
    +   * Spec for an LLM based metric.
    +   * 
    + * + * .google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec llm_based_metric_spec = 10; + * + * @return Whether the llmBasedMetricSpec field is set. + */ + @java.lang.Override + public boolean hasLlmBasedMetricSpec() { + return metricSpecCase_ == 10; + } + + /** + * + * + *
    +   * Spec for an LLM based metric.
    +   * 
    + * + * .google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec llm_based_metric_spec = 10; + * + * @return The llmBasedMetricSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec getLlmBasedMetricSpec() { + if (metricSpecCase_ == 10) { + return (com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec) metricSpec_; + } + return com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.getDefaultInstance(); + } + + /** + * + * + *
    +   * Spec for an LLM based metric.
    +   * 
    + * + * .google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec llm_based_metric_spec = 10; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpecOrBuilder + getLlmBasedMetricSpecOrBuilder() { + if (metricSpecCase_ == 10) { + return (com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec) metricSpec_; + } + return com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.getDefaultInstance(); + } + public static final int POINTWISE_METRIC_SPEC_FIELD_NUMBER = 2; /** @@ -911,6 +1093,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (metricSpecCase_ == 6) { output.writeMessage(6, (com.google.cloud.aiplatform.v1beta1.RougeSpec) metricSpec_); } + if (metricSpecCase_ == 8) { + output.writeMessage( + 8, (com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec) metricSpec_); + } + if (metricSpecCase_ == 9) { + output.writeMessage( + 9, (com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec) metricSpec_); + } + if (metricSpecCase_ == 10) { + output.writeMessage(10, (com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec) metricSpec_); + } getUnknownFields().writeTo(output); } @@ -959,6 +1152,21 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 6, (com.google.cloud.aiplatform.v1beta1.RougeSpec) metricSpec_); } + if (metricSpecCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec) metricSpec_); + } + if (metricSpecCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec) metricSpec_); + } + if (metricSpecCase_ == 10) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, (com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec) metricSpec_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -978,6 +1186,16 @@ public boolean equals(final java.lang.Object obj) { if (!aggregationMetrics_.equals(other.aggregationMetrics_)) return false; if (!getMetricSpecCase().equals(other.getMetricSpecCase())) return false; switch (metricSpecCase_) { + case 8: + if (!getPredefinedMetricSpec().equals(other.getPredefinedMetricSpec())) return false; + break; + case 9: + if (!getComputationBasedMetricSpec().equals(other.getComputationBasedMetricSpec())) + return false; + break; + case 10: + if (!getLlmBasedMetricSpec().equals(other.getLlmBasedMetricSpec())) return false; + break; case 2: if (!getPointwiseMetricSpec().equals(other.getPointwiseMetricSpec())) return false; break; @@ -1012,6 +1230,18 @@ public int hashCode() { hash = (53 * hash) + aggregationMetrics_.hashCode(); } switch (metricSpecCase_) { + case 8: + hash = (37 * hash) + PREDEFINED_METRIC_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getPredefinedMetricSpec().hashCode(); + break; + case 9: + hash = (37 * hash) + COMPUTATION_BASED_METRIC_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getComputationBasedMetricSpec().hashCode(); + break; + case 10: + hash = (37 * hash) + LLM_BASED_METRIC_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getLlmBasedMetricSpec().hashCode(); + break; case 2: hash = (37 * hash) + POINTWISE_METRIC_SPEC_FIELD_NUMBER; hash = (53 * hash) + getPointwiseMetricSpec().hashCode(); @@ -1140,7 +1370,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
    -   * The metric used for dataset level evaluation.
    +   * The metric used for running evaluations.
        * 
    * * Protobuf type {@code google.cloud.aiplatform.v1beta1.Metric} @@ -1175,6 +1405,15 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; + if (predefinedMetricSpecBuilder_ != null) { + predefinedMetricSpecBuilder_.clear(); + } + if (computationBasedMetricSpecBuilder_ != null) { + computationBasedMetricSpecBuilder_.clear(); + } + if (llmBasedMetricSpecBuilder_ != null) { + llmBasedMetricSpecBuilder_.clear(); + } if (pointwiseMetricSpecBuilder_ != null) { pointwiseMetricSpecBuilder_.clear(); } @@ -1230,7 +1469,7 @@ public com.google.cloud.aiplatform.v1beta1.Metric buildPartial() { private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Metric result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { aggregationMetrics_.makeImmutable(); result.aggregationMetrics_ = aggregationMetrics_; } @@ -1239,6 +1478,15 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Metric result) { private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.Metric result) { result.metricSpecCase_ = metricSpecCase_; result.metricSpec_ = this.metricSpec_; + if (metricSpecCase_ == 8 && predefinedMetricSpecBuilder_ != null) { + result.metricSpec_ = predefinedMetricSpecBuilder_.build(); + } + if (metricSpecCase_ == 9 && computationBasedMetricSpecBuilder_ != null) { + result.metricSpec_ = computationBasedMetricSpecBuilder_.build(); + } + if (metricSpecCase_ == 10 && llmBasedMetricSpecBuilder_ != null) { + result.metricSpec_ = llmBasedMetricSpecBuilder_.build(); + } if (metricSpecCase_ == 2 && pointwiseMetricSpecBuilder_ != null) { result.metricSpec_ = pointwiseMetricSpecBuilder_.build(); } @@ -1272,7 +1520,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Metric other) { if (aggregationMetrics_.isEmpty()) { aggregationMetrics_ = other.aggregationMetrics_; aggregationMetrics_.makeImmutable(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; } else { ensureAggregationMetricsIsMutable(); aggregationMetrics_.addAll(other.aggregationMetrics_); @@ -1280,6 +1528,21 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Metric other) { onChanged(); } switch (other.getMetricSpecCase()) { + case PREDEFINED_METRIC_SPEC: + { + mergePredefinedMetricSpec(other.getPredefinedMetricSpec()); + break; + } + case COMPUTATION_BASED_METRIC_SPEC: + { + mergeComputationBasedMetricSpec(other.getComputationBasedMetricSpec()); + break; + } + case LLM_BASED_METRIC_SPEC: + { + mergeLlmBasedMetricSpec(other.getLlmBasedMetricSpec()); + break; + } case POINTWISE_METRIC_SPEC: { mergePointwiseMetricSpec(other.getPointwiseMetricSpec()); @@ -1389,6 +1652,28 @@ public Builder mergeFrom( metricSpecCase_ = 6; break; } // case 50 + case 66: + { + input.readMessage( + internalGetPredefinedMetricSpecFieldBuilder().getBuilder(), extensionRegistry); + metricSpecCase_ = 8; + break; + } // case 66 + case 74: + { + input.readMessage( + internalGetComputationBasedMetricSpecFieldBuilder().getBuilder(), + extensionRegistry); + metricSpecCase_ = 9; + break; + } // case 74 + case 82: + { + input.readMessage( + internalGetLlmBasedMetricSpecFieldBuilder().getBuilder(), extensionRegistry); + metricSpecCase_ = 10; + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1422,6 +1707,706 @@ public Builder clearMetricSpec() { private int bitField0_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec, + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.Builder, + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpecOrBuilder> + predefinedMetricSpecBuilder_; + + /** + * + * + *
    +     * The spec for a pre-defined metric.
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_metric_spec = 8; + * + * + * @return Whether the predefinedMetricSpec field is set. + */ + @java.lang.Override + public boolean hasPredefinedMetricSpec() { + return metricSpecCase_ == 8; + } + + /** + * + * + *
    +     * The spec for a pre-defined metric.
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_metric_spec = 8; + * + * + * @return The predefinedMetricSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec getPredefinedMetricSpec() { + if (predefinedMetricSpecBuilder_ == null) { + if (metricSpecCase_ == 8) { + return (com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec) metricSpec_; + } + return com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.getDefaultInstance(); + } else { + if (metricSpecCase_ == 8) { + return predefinedMetricSpecBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * The spec for a pre-defined metric.
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_metric_spec = 8; + * + */ + public Builder setPredefinedMetricSpec( + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec value) { + if (predefinedMetricSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricSpec_ = value; + onChanged(); + } else { + predefinedMetricSpecBuilder_.setMessage(value); + } + metricSpecCase_ = 8; + return this; + } + + /** + * + * + *
    +     * The spec for a pre-defined metric.
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_metric_spec = 8; + * + */ + public Builder setPredefinedMetricSpec( + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.Builder builderForValue) { + if (predefinedMetricSpecBuilder_ == null) { + metricSpec_ = builderForValue.build(); + onChanged(); + } else { + predefinedMetricSpecBuilder_.setMessage(builderForValue.build()); + } + metricSpecCase_ = 8; + return this; + } + + /** + * + * + *
    +     * The spec for a pre-defined metric.
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_metric_spec = 8; + * + */ + public Builder mergePredefinedMetricSpec( + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec value) { + if (predefinedMetricSpecBuilder_ == null) { + if (metricSpecCase_ == 8 + && metricSpec_ + != com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.getDefaultInstance()) { + metricSpec_ = + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.newBuilder( + (com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec) metricSpec_) + .mergeFrom(value) + .buildPartial(); + } else { + metricSpec_ = value; + } + onChanged(); + } else { + if (metricSpecCase_ == 8) { + predefinedMetricSpecBuilder_.mergeFrom(value); + } else { + predefinedMetricSpecBuilder_.setMessage(value); + } + } + metricSpecCase_ = 8; + return this; + } + + /** + * + * + *
    +     * The spec for a pre-defined metric.
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_metric_spec = 8; + * + */ + public Builder clearPredefinedMetricSpec() { + if (predefinedMetricSpecBuilder_ == null) { + if (metricSpecCase_ == 8) { + metricSpecCase_ = 0; + metricSpec_ = null; + onChanged(); + } + } else { + if (metricSpecCase_ == 8) { + metricSpecCase_ = 0; + metricSpec_ = null; + } + predefinedMetricSpecBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The spec for a pre-defined metric.
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_metric_spec = 8; + * + */ + public com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.Builder + getPredefinedMetricSpecBuilder() { + return internalGetPredefinedMetricSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * The spec for a pre-defined metric.
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_metric_spec = 8; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpecOrBuilder + getPredefinedMetricSpecOrBuilder() { + if ((metricSpecCase_ == 8) && (predefinedMetricSpecBuilder_ != null)) { + return predefinedMetricSpecBuilder_.getMessageOrBuilder(); + } else { + if (metricSpecCase_ == 8) { + return (com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec) metricSpec_; + } + return com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * The spec for a pre-defined metric.
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_metric_spec = 8; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec, + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.Builder, + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpecOrBuilder> + internalGetPredefinedMetricSpecFieldBuilder() { + if (predefinedMetricSpecBuilder_ == null) { + if (!(metricSpecCase_ == 8)) { + metricSpec_ = + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.getDefaultInstance(); + } + predefinedMetricSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec, + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.Builder, + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpecOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec) metricSpec_, + getParentForChildren(), + isClean()); + metricSpec_ = null; + } + metricSpecCase_ = 8; + onChanged(); + return predefinedMetricSpecBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec, + com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.Builder, + com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpecOrBuilder> + computationBasedMetricSpecBuilder_; + + /** + * + * + *
    +     * Spec for a computation based metric.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec computation_based_metric_spec = 9; + * + * + * @return Whether the computationBasedMetricSpec field is set. + */ + @java.lang.Override + public boolean hasComputationBasedMetricSpec() { + return metricSpecCase_ == 9; + } + + /** + * + * + *
    +     * Spec for a computation based metric.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec computation_based_metric_spec = 9; + * + * + * @return The computationBasedMetricSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec + getComputationBasedMetricSpec() { + if (computationBasedMetricSpecBuilder_ == null) { + if (metricSpecCase_ == 9) { + return (com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec) metricSpec_; + } + return com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.getDefaultInstance(); + } else { + if (metricSpecCase_ == 9) { + return computationBasedMetricSpecBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Spec for a computation based metric.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec computation_based_metric_spec = 9; + * + */ + public Builder setComputationBasedMetricSpec( + com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec value) { + if (computationBasedMetricSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricSpec_ = value; + onChanged(); + } else { + computationBasedMetricSpecBuilder_.setMessage(value); + } + metricSpecCase_ = 9; + return this; + } + + /** + * + * + *
    +     * Spec for a computation based metric.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec computation_based_metric_spec = 9; + * + */ + public Builder setComputationBasedMetricSpec( + com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.Builder builderForValue) { + if (computationBasedMetricSpecBuilder_ == null) { + metricSpec_ = builderForValue.build(); + onChanged(); + } else { + computationBasedMetricSpecBuilder_.setMessage(builderForValue.build()); + } + metricSpecCase_ = 9; + return this; + } + + /** + * + * + *
    +     * Spec for a computation based metric.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec computation_based_metric_spec = 9; + * + */ + public Builder mergeComputationBasedMetricSpec( + com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec value) { + if (computationBasedMetricSpecBuilder_ == null) { + if (metricSpecCase_ == 9 + && metricSpec_ + != com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec + .getDefaultInstance()) { + metricSpec_ = + com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.newBuilder( + (com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec) metricSpec_) + .mergeFrom(value) + .buildPartial(); + } else { + metricSpec_ = value; + } + onChanged(); + } else { + if (metricSpecCase_ == 9) { + computationBasedMetricSpecBuilder_.mergeFrom(value); + } else { + computationBasedMetricSpecBuilder_.setMessage(value); + } + } + metricSpecCase_ = 9; + return this; + } + + /** + * + * + *
    +     * Spec for a computation based metric.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec computation_based_metric_spec = 9; + * + */ + public Builder clearComputationBasedMetricSpec() { + if (computationBasedMetricSpecBuilder_ == null) { + if (metricSpecCase_ == 9) { + metricSpecCase_ = 0; + metricSpec_ = null; + onChanged(); + } + } else { + if (metricSpecCase_ == 9) { + metricSpecCase_ = 0; + metricSpec_ = null; + } + computationBasedMetricSpecBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Spec for a computation based metric.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec computation_based_metric_spec = 9; + * + */ + public com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.Builder + getComputationBasedMetricSpecBuilder() { + return internalGetComputationBasedMetricSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Spec for a computation based metric.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec computation_based_metric_spec = 9; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpecOrBuilder + getComputationBasedMetricSpecOrBuilder() { + if ((metricSpecCase_ == 9) && (computationBasedMetricSpecBuilder_ != null)) { + return computationBasedMetricSpecBuilder_.getMessageOrBuilder(); + } else { + if (metricSpecCase_ == 9) { + return (com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec) metricSpec_; + } + return com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Spec for a computation based metric.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec computation_based_metric_spec = 9; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec, + com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.Builder, + com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpecOrBuilder> + internalGetComputationBasedMetricSpecFieldBuilder() { + if (computationBasedMetricSpecBuilder_ == null) { + if (!(metricSpecCase_ == 9)) { + metricSpec_ = + com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.getDefaultInstance(); + } + computationBasedMetricSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec, + com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec.Builder, + com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpecOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec) metricSpec_, + getParentForChildren(), + isClean()); + metricSpec_ = null; + } + metricSpecCase_ = 9; + onChanged(); + return computationBasedMetricSpecBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec, + com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.Builder, + com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpecOrBuilder> + llmBasedMetricSpecBuilder_; + + /** + * + * + *
    +     * Spec for an LLM based metric.
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec llm_based_metric_spec = 10; + * + * @return Whether the llmBasedMetricSpec field is set. + */ + @java.lang.Override + public boolean hasLlmBasedMetricSpec() { + return metricSpecCase_ == 10; + } + + /** + * + * + *
    +     * Spec for an LLM based metric.
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec llm_based_metric_spec = 10; + * + * @return The llmBasedMetricSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec getLlmBasedMetricSpec() { + if (llmBasedMetricSpecBuilder_ == null) { + if (metricSpecCase_ == 10) { + return (com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec) metricSpec_; + } + return com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.getDefaultInstance(); + } else { + if (metricSpecCase_ == 10) { + return llmBasedMetricSpecBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Spec for an LLM based metric.
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec llm_based_metric_spec = 10; + */ + public Builder setLlmBasedMetricSpec( + com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec value) { + if (llmBasedMetricSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricSpec_ = value; + onChanged(); + } else { + llmBasedMetricSpecBuilder_.setMessage(value); + } + metricSpecCase_ = 10; + return this; + } + + /** + * + * + *
    +     * Spec for an LLM based metric.
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec llm_based_metric_spec = 10; + */ + public Builder setLlmBasedMetricSpec( + com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.Builder builderForValue) { + if (llmBasedMetricSpecBuilder_ == null) { + metricSpec_ = builderForValue.build(); + onChanged(); + } else { + llmBasedMetricSpecBuilder_.setMessage(builderForValue.build()); + } + metricSpecCase_ = 10; + return this; + } + + /** + * + * + *
    +     * Spec for an LLM based metric.
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec llm_based_metric_spec = 10; + */ + public Builder mergeLlmBasedMetricSpec( + com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec value) { + if (llmBasedMetricSpecBuilder_ == null) { + if (metricSpecCase_ == 10 + && metricSpec_ + != com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.getDefaultInstance()) { + metricSpec_ = + com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.newBuilder( + (com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec) metricSpec_) + .mergeFrom(value) + .buildPartial(); + } else { + metricSpec_ = value; + } + onChanged(); + } else { + if (metricSpecCase_ == 10) { + llmBasedMetricSpecBuilder_.mergeFrom(value); + } else { + llmBasedMetricSpecBuilder_.setMessage(value); + } + } + metricSpecCase_ = 10; + return this; + } + + /** + * + * + *
    +     * Spec for an LLM based metric.
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec llm_based_metric_spec = 10; + */ + public Builder clearLlmBasedMetricSpec() { + if (llmBasedMetricSpecBuilder_ == null) { + if (metricSpecCase_ == 10) { + metricSpecCase_ = 0; + metricSpec_ = null; + onChanged(); + } + } else { + if (metricSpecCase_ == 10) { + metricSpecCase_ = 0; + metricSpec_ = null; + } + llmBasedMetricSpecBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Spec for an LLM based metric.
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec llm_based_metric_spec = 10; + */ + public com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.Builder + getLlmBasedMetricSpecBuilder() { + return internalGetLlmBasedMetricSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Spec for an LLM based metric.
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec llm_based_metric_spec = 10; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpecOrBuilder + getLlmBasedMetricSpecOrBuilder() { + if ((metricSpecCase_ == 10) && (llmBasedMetricSpecBuilder_ != null)) { + return llmBasedMetricSpecBuilder_.getMessageOrBuilder(); + } else { + if (metricSpecCase_ == 10) { + return (com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec) metricSpec_; + } + return com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Spec for an LLM based metric.
    +     * 
    + * + * .google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec llm_based_metric_spec = 10; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec, + com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.Builder, + com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpecOrBuilder> + internalGetLlmBasedMetricSpecFieldBuilder() { + if (llmBasedMetricSpecBuilder_ == null) { + if (!(metricSpecCase_ == 10)) { + metricSpec_ = com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.getDefaultInstance(); + } + llmBasedMetricSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec, + com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.Builder, + com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpecOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec) metricSpec_, + getParentForChildren(), + isClean()); + metricSpec_ = null; + } + metricSpecCase_ = 10; + onChanged(); + return llmBasedMetricSpecBuilder_; + } + private com.google.protobuf.SingleFieldBuilder< com.google.cloud.aiplatform.v1beta1.PointwiseMetricSpec, com.google.cloud.aiplatform.v1beta1.PointwiseMetricSpec.Builder, @@ -2531,7 +3516,7 @@ private void ensureAggregationMetricsIsMutable() { if (!aggregationMetrics_.isModifiable()) { aggregationMetrics_ = makeMutableCopy(aggregationMetrics_); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; } /** @@ -2681,7 +3666,7 @@ public Builder addAllAggregationMetrics( */ public Builder clearAggregationMetrics() { aggregationMetrics_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricOrBuilder.java index 820b5c14c50b..006c928faa18 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricOrBuilder.java @@ -26,6 +26,125 @@ public interface MetricOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.Metric) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
    +   * The spec for a pre-defined metric.
    +   * 
    + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_metric_spec = 8; + * + * @return Whether the predefinedMetricSpec field is set. + */ + boolean hasPredefinedMetricSpec(); + + /** + * + * + *
    +   * The spec for a pre-defined metric.
    +   * 
    + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_metric_spec = 8; + * + * @return The predefinedMetricSpec. + */ + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec getPredefinedMetricSpec(); + + /** + * + * + *
    +   * The spec for a pre-defined metric.
    +   * 
    + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_metric_spec = 8; + */ + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpecOrBuilder + getPredefinedMetricSpecOrBuilder(); + + /** + * + * + *
    +   * Spec for a computation based metric.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec computation_based_metric_spec = 9; + * + * + * @return Whether the computationBasedMetricSpec field is set. + */ + boolean hasComputationBasedMetricSpec(); + + /** + * + * + *
    +   * Spec for a computation based metric.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec computation_based_metric_spec = 9; + * + * + * @return The computationBasedMetricSpec. + */ + com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec getComputationBasedMetricSpec(); + + /** + * + * + *
    +   * Spec for a computation based metric.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpec computation_based_metric_spec = 9; + * + */ + com.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpecOrBuilder + getComputationBasedMetricSpecOrBuilder(); + + /** + * + * + *
    +   * Spec for an LLM based metric.
    +   * 
    + * + * .google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec llm_based_metric_spec = 10; + * + * @return Whether the llmBasedMetricSpec field is set. + */ + boolean hasLlmBasedMetricSpec(); + + /** + * + * + *
    +   * Spec for an LLM based metric.
    +   * 
    + * + * .google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec llm_based_metric_spec = 10; + * + * @return The llmBasedMetricSpec. + */ + com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec getLlmBasedMetricSpec(); + + /** + * + * + *
    +   * Spec for an LLM based metric.
    +   * 
    + * + * .google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec llm_based_metric_spec = 10; + */ + com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpecOrBuilder getLlmBasedMetricSpecOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricResult.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricResult.java new file mode 100644 index 000000000000..d485627df291 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricResult.java @@ -0,0 +1,1065 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
    + * Result for a single metric on a single instance.
    + * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.MetricResult} + */ +@com.google.protobuf.Generated +public final class MetricResult extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.MetricResult) + MetricResultOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MetricResult"); + } + + // Use MetricResult.newBuilder() to construct. + private MetricResult(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MetricResult() { + explanation_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.MetricResult.class, + com.google.cloud.aiplatform.v1beta1.MetricResult.Builder.class); + } + + private int bitField0_; + public static final int SCORE_FIELD_NUMBER = 1; + private float score_ = 0F; + + /** + * + * + *
    +   * Output only. The score for the metric.
    +   * Please refer to each metric's documentation for the meaning of the score.
    +   * 
    + * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Output only. The score for the metric.
    +   * Please refer to each metric's documentation for the meaning of the score.
    +   * 
    + * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + + public static final int EXPLANATION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object explanation_ = ""; + + /** + * + * + *
    +   * Output only. The explanation for the metric result.
    +   * 
    + * + * optional string explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the explanation field is set. + */ + @java.lang.Override + public boolean hasExplanation() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Output only. The explanation for the metric result.
    +   * 
    + * + * optional string explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The explanation. + */ + @java.lang.Override + public java.lang.String getExplanation() { + java.lang.Object ref = explanation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + explanation_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. The explanation for the metric result.
    +   * 
    + * + * optional string explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for explanation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExplanationBytes() { + java.lang.Object ref = explanation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + explanation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_FIELD_NUMBER = 4; + private com.google.rpc.Status error_; + + /** + * + * + *
    +   * Output only. The error status for the metric result.
    +   * 
    + * + * optional .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +   * Output only. The error status for the metric result.
    +   * 
    + * + * optional .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The error. + */ + @java.lang.Override + public com.google.rpc.Status getError() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + + /** + * + * + *
    +   * Output only. The error status for the metric result.
    +   * 
    + * + * optional .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeFloat(1, score_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, explanation_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getError()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, score_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, explanation_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getError()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.MetricResult)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.MetricResult other = + (com.google.cloud.aiplatform.v1beta1.MetricResult) obj; + + if (hasScore() != other.hasScore()) return false; + if (hasScore()) { + if (java.lang.Float.floatToIntBits(getScore()) + != java.lang.Float.floatToIntBits(other.getScore())) return false; + } + if (hasExplanation() != other.hasExplanation()) return false; + if (hasExplanation()) { + if (!getExplanation().equals(other.getExplanation())) return false; + } + if (hasError() != other.hasError()) return false; + if (hasError()) { + if (!getError().equals(other.getError())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasScore()) { + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + } + if (hasExplanation()) { + hash = (37 * hash) + EXPLANATION_FIELD_NUMBER; + hash = (53 * hash) + getExplanation().hashCode(); + } + if (hasError()) { + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.MetricResult parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricResult parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricResult parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricResult parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.MetricResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Result for a single metric on a single instance.
    +   * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.MetricResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.MetricResult) + com.google.cloud.aiplatform.v1beta1.MetricResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.MetricResult.class, + com.google.cloud.aiplatform.v1beta1.MetricResult.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.MetricResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetErrorFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + score_ = 0F; + explanation_ = ""; + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricResult getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.MetricResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricResult build() { + com.google.cloud.aiplatform.v1beta1.MetricResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricResult buildPartial() { + com.google.cloud.aiplatform.v1beta1.MetricResult result = + new com.google.cloud.aiplatform.v1beta1.MetricResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.MetricResult result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.score_ = score_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.explanation_ = explanation_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.MetricResult) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.MetricResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.MetricResult other) { + if (other == com.google.cloud.aiplatform.v1beta1.MetricResult.getDefaultInstance()) + return this; + if (other.hasScore()) { + setScore(other.getScore()); + } + if (other.hasExplanation()) { + explanation_ = other.explanation_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasError()) { + mergeError(other.getError()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 13: + { + score_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + case 26: + { + explanation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: + { + input.readMessage(internalGetErrorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private float score_; + + /** + * + * + *
    +     * Output only. The score for the metric.
    +     * Please refer to each metric's documentation for the meaning of the score.
    +     * 
    + * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Output only. The score for the metric.
    +     * Please refer to each metric's documentation for the meaning of the score.
    +     * 
    + * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + + /** + * + * + *
    +     * Output only. The score for the metric.
    +     * Please refer to each metric's documentation for the meaning of the score.
    +     * 
    + * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(float value) { + + score_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The score for the metric.
    +     * Please refer to each metric's documentation for the meaning of the score.
    +     * 
    + * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000001); + score_ = 0F; + onChanged(); + return this; + } + + private java.lang.Object explanation_ = ""; + + /** + * + * + *
    +     * Output only. The explanation for the metric result.
    +     * 
    + * + * optional string explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the explanation field is set. + */ + public boolean hasExplanation() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Output only. The explanation for the metric result.
    +     * 
    + * + * optional string explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The explanation. + */ + public java.lang.String getExplanation() { + java.lang.Object ref = explanation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + explanation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. The explanation for the metric result.
    +     * 
    + * + * optional string explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for explanation. + */ + public com.google.protobuf.ByteString getExplanationBytes() { + java.lang.Object ref = explanation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + explanation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. The explanation for the metric result.
    +     * 
    + * + * optional string explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The explanation to set. + * @return This builder for chaining. + */ + public Builder setExplanation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + explanation_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The explanation for the metric result.
    +     * 
    + * + * optional string explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearExplanation() { + explanation_ = getDefaultInstance().getExplanation(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The explanation for the metric result.
    +     * 
    + * + * optional string explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for explanation to set. + * @return This builder for chaining. + */ + public Builder setExplanationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + explanation_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.rpc.Status error_; + private com.google.protobuf.SingleFieldBuilder< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; + + /** + * + * + *
    +     * Output only. The error status for the metric result.
    +     * 
    + * + * optional .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the error field is set. + */ + public boolean hasError() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Output only. The error status for the metric result.
    +     * 
    + * + * optional .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The error. + */ + public com.google.rpc.Status getError() { + if (errorBuilder_ == null) { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } else { + return errorBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Output only. The error status for the metric result.
    +     * 
    + * + * optional .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + } else { + errorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The error status for the metric result.
    +     * 
    + * + * optional .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setError(com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The error status for the metric result.
    +     * 
    + * + * optional .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); + } else { + error_ = value; + } + } else { + errorBuilder_.mergeFrom(value); + } + if (error_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Output only. The error status for the metric result.
    +     * 
    + * + * optional .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearError() { + bitField0_ = (bitField0_ & ~0x00000004); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The error status for the metric result.
    +     * 
    + * + * optional .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Status.Builder getErrorBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetErrorFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Output only. The error status for the metric result.
    +     * 
    + * + * optional .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + } + + /** + * + * + *
    +     * Output only. The error status for the metric result.
    +     * 
    + * + * optional .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + internalGetErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); + error_ = null; + } + return errorBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.MetricResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.MetricResult) + private static final com.google.cloud.aiplatform.v1beta1.MetricResult DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.MetricResult(); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetricResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricResultOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricResultOrBuilder.java new file mode 100644 index 000000000000..8700bbfa7f8b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricResultOrBuilder.java @@ -0,0 +1,135 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface MetricResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.MetricResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Output only. The score for the metric.
    +   * Please refer to each metric's documentation for the meaning of the score.
    +   * 
    + * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + boolean hasScore(); + + /** + * + * + *
    +   * Output only. The score for the metric.
    +   * Please refer to each metric's documentation for the meaning of the score.
    +   * 
    + * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + float getScore(); + + /** + * + * + *
    +   * Output only. The explanation for the metric result.
    +   * 
    + * + * optional string explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the explanation field is set. + */ + boolean hasExplanation(); + + /** + * + * + *
    +   * Output only. The explanation for the metric result.
    +   * 
    + * + * optional string explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The explanation. + */ + java.lang.String getExplanation(); + + /** + * + * + *
    +   * Output only. The explanation for the metric result.
    +   * 
    + * + * optional string explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for explanation. + */ + com.google.protobuf.ByteString getExplanationBytes(); + + /** + * + * + *
    +   * Output only. The error status for the metric result.
    +   * 
    + * + * optional .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the error field is set. + */ + boolean hasError(); + + /** + * + * + *
    +   * Output only. The error status for the metric result.
    +   * 
    + * + * optional .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The error. + */ + com.google.rpc.Status getError(); + + /** + * + * + *
    +   * Output only. The error status for the metric result.
    +   * 
    + * + * optional .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.rpc.StatusOrBuilder getErrorOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OutputInfo.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OutputInfo.java index 7fa5f500dc32..960934452afe 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OutputInfo.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OutputInfo.java @@ -24,7 +24,7 @@ * * *
    - * Describes the info for output of EvaluationService.EvaluateDataset.
    + * Describes the info for output of EvaluationService.
      * 
    * * Protobuf type {@code google.cloud.aiplatform.v1beta1.OutputInfo} @@ -368,7 +368,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
    -   * Describes the info for output of EvaluationService.EvaluateDataset.
    +   * Describes the info for output of EvaluationService.
        * 
    * * Protobuf type {@code google.cloud.aiplatform.v1beta1.OutputInfo} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredefinedMetricSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredefinedMetricSpec.java new file mode 100644 index 000000000000..30d728514718 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredefinedMetricSpec.java @@ -0,0 +1,924 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
    + * The spec for a pre-defined metric.
    + * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PredefinedMetricSpec} + */ +@com.google.protobuf.Generated +public final class PredefinedMetricSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.PredefinedMetricSpec) + PredefinedMetricSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PredefinedMetricSpec"); + } + + // Use PredefinedMetricSpec.newBuilder() to construct. + private PredefinedMetricSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PredefinedMetricSpec() { + metricSpecName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PredefinedMetricSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PredefinedMetricSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.class, + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.Builder.class); + } + + private int bitField0_; + public static final int METRIC_SPEC_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object metricSpecName_ = ""; + + /** + * + * + *
    +   * Required. The name of a pre-defined metric, such as
    +   * "instruction_following_v1" or "text_quality_v1".
    +   * 
    + * + * string metric_spec_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The metricSpecName. + */ + @java.lang.Override + public java.lang.String getMetricSpecName() { + java.lang.Object ref = metricSpecName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metricSpecName_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The name of a pre-defined metric, such as
    +   * "instruction_following_v1" or "text_quality_v1".
    +   * 
    + * + * string metric_spec_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for metricSpecName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetricSpecNameBytes() { + java.lang.Object ref = metricSpecName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metricSpecName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METRIC_SPEC_PARAMETERS_FIELD_NUMBER = 2; + private com.google.protobuf.Struct metricSpecParameters_; + + /** + * + * + *
    +   * Optional. The parameters needed to run the pre-defined metric.
    +   * 
    + * + * + * .google.protobuf.Struct metric_spec_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metricSpecParameters field is set. + */ + @java.lang.Override + public boolean hasMetricSpecParameters() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Optional. The parameters needed to run the pre-defined metric.
    +   * 
    + * + * + * .google.protobuf.Struct metric_spec_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metricSpecParameters. + */ + @java.lang.Override + public com.google.protobuf.Struct getMetricSpecParameters() { + return metricSpecParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : metricSpecParameters_; + } + + /** + * + * + *
    +   * Optional. The parameters needed to run the pre-defined metric.
    +   * 
    + * + * + * .google.protobuf.Struct metric_spec_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getMetricSpecParametersOrBuilder() { + return metricSpecParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : metricSpecParameters_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(metricSpecName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, metricSpecName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getMetricSpecParameters()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(metricSpecName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, metricSpecName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMetricSpecParameters()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec other = + (com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec) obj; + + if (!getMetricSpecName().equals(other.getMetricSpecName())) return false; + if (hasMetricSpecParameters() != other.hasMetricSpecParameters()) return false; + if (hasMetricSpecParameters()) { + if (!getMetricSpecParameters().equals(other.getMetricSpecParameters())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + METRIC_SPEC_NAME_FIELD_NUMBER; + hash = (53 * hash) + getMetricSpecName().hashCode(); + if (hasMetricSpecParameters()) { + hash = (37 * hash) + METRIC_SPEC_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getMetricSpecParameters().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * The spec for a pre-defined metric.
    +   * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PredefinedMetricSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PredefinedMetricSpec) + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PredefinedMetricSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PredefinedMetricSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.class, + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMetricSpecParametersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + metricSpecName_ = ""; + metricSpecParameters_ = null; + if (metricSpecParametersBuilder_ != null) { + metricSpecParametersBuilder_.dispose(); + metricSpecParametersBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PredefinedMetricSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec build() { + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec buildPartial() { + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec result = + new com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metricSpecName_ = metricSpecName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.metricSpecParameters_ = + metricSpecParametersBuilder_ == null + ? metricSpecParameters_ + : metricSpecParametersBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec other) { + if (other == com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.getDefaultInstance()) + return this; + if (!other.getMetricSpecName().isEmpty()) { + metricSpecName_ = other.metricSpecName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasMetricSpecParameters()) { + mergeMetricSpecParameters(other.getMetricSpecParameters()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + metricSpecName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetMetricSpecParametersFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object metricSpecName_ = ""; + + /** + * + * + *
    +     * Required. The name of a pre-defined metric, such as
    +     * "instruction_following_v1" or "text_quality_v1".
    +     * 
    + * + * string metric_spec_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The metricSpecName. + */ + public java.lang.String getMetricSpecName() { + java.lang.Object ref = metricSpecName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metricSpecName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The name of a pre-defined metric, such as
    +     * "instruction_following_v1" or "text_quality_v1".
    +     * 
    + * + * string metric_spec_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for metricSpecName. + */ + public com.google.protobuf.ByteString getMetricSpecNameBytes() { + java.lang.Object ref = metricSpecName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metricSpecName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The name of a pre-defined metric, such as
    +     * "instruction_following_v1" or "text_quality_v1".
    +     * 
    + * + * string metric_spec_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The metricSpecName to set. + * @return This builder for chaining. + */ + public Builder setMetricSpecName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + metricSpecName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of a pre-defined metric, such as
    +     * "instruction_following_v1" or "text_quality_v1".
    +     * 
    + * + * string metric_spec_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMetricSpecName() { + metricSpecName_ = getDefaultInstance().getMetricSpecName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of a pre-defined metric, such as
    +     * "instruction_following_v1" or "text_quality_v1".
    +     * 
    + * + * string metric_spec_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for metricSpecName to set. + * @return This builder for chaining. + */ + public Builder setMetricSpecNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + metricSpecName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Struct metricSpecParameters_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + metricSpecParametersBuilder_; + + /** + * + * + *
    +     * Optional. The parameters needed to run the pre-defined metric.
    +     * 
    + * + * + * .google.protobuf.Struct metric_spec_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metricSpecParameters field is set. + */ + public boolean hasMetricSpecParameters() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Optional. The parameters needed to run the pre-defined metric.
    +     * 
    + * + * + * .google.protobuf.Struct metric_spec_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metricSpecParameters. + */ + public com.google.protobuf.Struct getMetricSpecParameters() { + if (metricSpecParametersBuilder_ == null) { + return metricSpecParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : metricSpecParameters_; + } else { + return metricSpecParametersBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. The parameters needed to run the pre-defined metric.
    +     * 
    + * + * + * .google.protobuf.Struct metric_spec_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMetricSpecParameters(com.google.protobuf.Struct value) { + if (metricSpecParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricSpecParameters_ = value; + } else { + metricSpecParametersBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The parameters needed to run the pre-defined metric.
    +     * 
    + * + * + * .google.protobuf.Struct metric_spec_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMetricSpecParameters(com.google.protobuf.Struct.Builder builderForValue) { + if (metricSpecParametersBuilder_ == null) { + metricSpecParameters_ = builderForValue.build(); + } else { + metricSpecParametersBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The parameters needed to run the pre-defined metric.
    +     * 
    + * + * + * .google.protobuf.Struct metric_spec_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMetricSpecParameters(com.google.protobuf.Struct value) { + if (metricSpecParametersBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && metricSpecParameters_ != null + && metricSpecParameters_ != com.google.protobuf.Struct.getDefaultInstance()) { + getMetricSpecParametersBuilder().mergeFrom(value); + } else { + metricSpecParameters_ = value; + } + } else { + metricSpecParametersBuilder_.mergeFrom(value); + } + if (metricSpecParameters_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. The parameters needed to run the pre-defined metric.
    +     * 
    + * + * + * .google.protobuf.Struct metric_spec_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMetricSpecParameters() { + bitField0_ = (bitField0_ & ~0x00000002); + metricSpecParameters_ = null; + if (metricSpecParametersBuilder_ != null) { + metricSpecParametersBuilder_.dispose(); + metricSpecParametersBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The parameters needed to run the pre-defined metric.
    +     * 
    + * + * + * .google.protobuf.Struct metric_spec_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getMetricSpecParametersBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetMetricSpecParametersFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. The parameters needed to run the pre-defined metric.
    +     * 
    + * + * + * .google.protobuf.Struct metric_spec_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getMetricSpecParametersOrBuilder() { + if (metricSpecParametersBuilder_ != null) { + return metricSpecParametersBuilder_.getMessageOrBuilder(); + } else { + return metricSpecParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : metricSpecParameters_; + } + } + + /** + * + * + *
    +     * Optional. The parameters needed to run the pre-defined metric.
    +     * 
    + * + * + * .google.protobuf.Struct metric_spec_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetMetricSpecParametersFieldBuilder() { + if (metricSpecParametersBuilder_ == null) { + metricSpecParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getMetricSpecParameters(), getParentForChildren(), isClean()); + metricSpecParameters_ = null; + } + return metricSpecParametersBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.PredefinedMetricSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PredefinedMetricSpec) + private static final com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec(); + } + + public static com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PredefinedMetricSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredefinedMetricSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredefinedMetricSpecOrBuilder.java new file mode 100644 index 000000000000..58411188374b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredefinedMetricSpecOrBuilder.java @@ -0,0 +1,99 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface PredefinedMetricSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.PredefinedMetricSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of a pre-defined metric, such as
    +   * "instruction_following_v1" or "text_quality_v1".
    +   * 
    + * + * string metric_spec_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The metricSpecName. + */ + java.lang.String getMetricSpecName(); + + /** + * + * + *
    +   * Required. The name of a pre-defined metric, such as
    +   * "instruction_following_v1" or "text_quality_v1".
    +   * 
    + * + * string metric_spec_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for metricSpecName. + */ + com.google.protobuf.ByteString getMetricSpecNameBytes(); + + /** + * + * + *
    +   * Optional. The parameters needed to run the pre-defined metric.
    +   * 
    + * + * + * .google.protobuf.Struct metric_spec_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metricSpecParameters field is set. + */ + boolean hasMetricSpecParameters(); + + /** + * + * + *
    +   * Optional. The parameters needed to run the pre-defined metric.
    +   * 
    + * + * + * .google.protobuf.Struct metric_spec_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metricSpecParameters. + */ + com.google.protobuf.Struct getMetricSpecParameters(); + + /** + * + * + *
    +   * Optional. The parameters needed to run the pre-defined metric.
    +   * 
    + * + * + * .google.protobuf.Struct metric_spec_parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getMetricSpecParametersOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Schedule.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Schedule.java index fa3b6d190e1a..4212282e5287 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Schedule.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Schedule.java @@ -2230,6 +2230,30 @@ public long getMaxConcurrentRunCount() { return maxConcurrentRunCount_; } + public static final int MAX_CONCURRENT_ACTIVE_RUN_COUNT_FIELD_NUMBER = 21; + private long maxConcurrentActiveRunCount_ = 0L; + + /** + * + * + *
    +   * Optional. Specifies the maximum number of active runs that can be executed
    +   * concurrently for this Schedule. This limits the number of runs that can be
    +   * in a non-terminal state at the same time.
    +   * Currently, this field is only supported for requests of type
    +   * CreatePipelineJobRequest.
    +   * 
    + * + * int64 max_concurrent_active_run_count = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maxConcurrentActiveRunCount. + */ + @java.lang.Override + public long getMaxConcurrentActiveRunCount() { + return maxConcurrentActiveRunCount_; + } + public static final int ALLOW_QUEUEING_FIELD_NUMBER = 12; private boolean allowQueueing_ = false; @@ -2419,6 +2443,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 20, (com.google.cloud.aiplatform.v1beta1.CreateNotebookExecutionJobRequest) request_); } + if (maxConcurrentActiveRunCount_ != 0L) { + output.writeInt64(21, maxConcurrentActiveRunCount_); + } getUnknownFields().writeTo(output); } @@ -2497,6 +2524,10 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 20, (com.google.cloud.aiplatform.v1beta1.CreateNotebookExecutionJobRequest) request_); } + if (maxConcurrentActiveRunCount_ != 0L) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size(21, maxConcurrentActiveRunCount_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2547,6 +2578,7 @@ public boolean equals(final java.lang.Object obj) { if (!getLastResumeTime().equals(other.getLastResumeTime())) return false; } if (getMaxConcurrentRunCount() != other.getMaxConcurrentRunCount()) return false; + if (getMaxConcurrentActiveRunCount() != other.getMaxConcurrentActiveRunCount()) return false; if (getAllowQueueing() != other.getAllowQueueing()) return false; if (getCatchUp() != other.getCatchUp()) return false; if (hasLastScheduledRunResponse() != other.hasLastScheduledRunResponse()) return false; @@ -2629,6 +2661,8 @@ public int hashCode() { } hash = (37 * hash) + MAX_CONCURRENT_RUN_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxConcurrentRunCount()); + hash = (37 * hash) + MAX_CONCURRENT_ACTIVE_RUN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxConcurrentActiveRunCount()); hash = (37 * hash) + ALLOW_QUEUEING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowQueueing()); hash = (37 * hash) + CATCH_UP_FIELD_NUMBER; @@ -2868,6 +2902,7 @@ public Builder clear() { lastResumeTimeBuilder_ = null; } maxConcurrentRunCount_ = 0L; + maxConcurrentActiveRunCount_ = 0L; allowQueueing_ = false; catchUp_ = false; lastScheduledRunResponse_ = null; @@ -2967,12 +3002,15 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Schedule result) result.maxConcurrentRunCount_ = maxConcurrentRunCount_; } if (((from_bitField0_ & 0x00020000) != 0)) { - result.allowQueueing_ = allowQueueing_; + result.maxConcurrentActiveRunCount_ = maxConcurrentActiveRunCount_; } if (((from_bitField0_ & 0x00040000) != 0)) { - result.catchUp_ = catchUp_; + result.allowQueueing_ = allowQueueing_; } if (((from_bitField0_ & 0x00080000) != 0)) { + result.catchUp_ = catchUp_; + } + if (((from_bitField0_ & 0x00100000) != 0)) { result.lastScheduledRunResponse_ = lastScheduledRunResponseBuilder_ == null ? lastScheduledRunResponse_ @@ -3053,6 +3091,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Schedule other) { if (other.getMaxConcurrentRunCount() != 0L) { setMaxConcurrentRunCount(other.getMaxConcurrentRunCount()); } + if (other.getMaxConcurrentActiveRunCount() != 0L) { + setMaxConcurrentActiveRunCount(other.getMaxConcurrentActiveRunCount()); + } if (other.getAllowQueueing() != false) { setAllowQueueing(other.getAllowQueueing()); } @@ -3197,13 +3238,13 @@ public Builder mergeFrom( case 96: { allowQueueing_ = input.readBool(); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 96 case 104: { catchUp_ = input.readBool(); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 104 case 114: @@ -3239,7 +3280,7 @@ public Builder mergeFrom( input.readMessage( internalGetLastScheduledRunResponseFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; break; } // case 146 case 154: @@ -3257,6 +3298,12 @@ public Builder mergeFrom( requestCase_ = 20; break; } // case 162 + case 168: + { + maxConcurrentActiveRunCount_ = input.readInt64(); + bitField0_ |= 0x00020000; + break; + } // case 168 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6338,6 +6385,77 @@ public Builder clearMaxConcurrentRunCount() { return this; } + private long maxConcurrentActiveRunCount_; + + /** + * + * + *
    +     * Optional. Specifies the maximum number of active runs that can be executed
    +     * concurrently for this Schedule. This limits the number of runs that can be
    +     * in a non-terminal state at the same time.
    +     * Currently, this field is only supported for requests of type
    +     * CreatePipelineJobRequest.
    +     * 
    + * + * int64 max_concurrent_active_run_count = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maxConcurrentActiveRunCount. + */ + @java.lang.Override + public long getMaxConcurrentActiveRunCount() { + return maxConcurrentActiveRunCount_; + } + + /** + * + * + *
    +     * Optional. Specifies the maximum number of active runs that can be executed
    +     * concurrently for this Schedule. This limits the number of runs that can be
    +     * in a non-terminal state at the same time.
    +     * Currently, this field is only supported for requests of type
    +     * CreatePipelineJobRequest.
    +     * 
    + * + * int64 max_concurrent_active_run_count = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The maxConcurrentActiveRunCount to set. + * @return This builder for chaining. + */ + public Builder setMaxConcurrentActiveRunCount(long value) { + + maxConcurrentActiveRunCount_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Specifies the maximum number of active runs that can be executed
    +     * concurrently for this Schedule. This limits the number of runs that can be
    +     * in a non-terminal state at the same time.
    +     * Currently, this field is only supported for requests of type
    +     * CreatePipelineJobRequest.
    +     * 
    + * + * int64 max_concurrent_active_run_count = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMaxConcurrentActiveRunCount() { + bitField0_ = (bitField0_ & ~0x00020000); + maxConcurrentActiveRunCount_ = 0L; + onChanged(); + return this; + } + private boolean allowQueueing_; /** @@ -6375,7 +6493,7 @@ public boolean getAllowQueueing() { public Builder setAllowQueueing(boolean value) { allowQueueing_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -6394,7 +6512,7 @@ public Builder setAllowQueueing(boolean value) { * @return This builder for chaining. */ public Builder clearAllowQueueing() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); allowQueueing_ = false; onChanged(); return this; @@ -6437,7 +6555,7 @@ public boolean getCatchUp() { public Builder setCatchUp(boolean value) { catchUp_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -6456,7 +6574,7 @@ public Builder setCatchUp(boolean value) { * @return This builder for chaining. */ public Builder clearCatchUp() { - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); catchUp_ = false; onChanged(); return this; @@ -6486,7 +6604,7 @@ public Builder clearCatchUp() { * @return Whether the lastScheduledRunResponse field is set. */ public boolean hasLastScheduledRunResponse() { - return ((bitField0_ & 0x00080000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** @@ -6539,7 +6657,7 @@ public Builder setLastScheduledRunResponse( } else { lastScheduledRunResponseBuilder_.setMessage(value); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -6565,7 +6683,7 @@ public Builder setLastScheduledRunResponse( } else { lastScheduledRunResponseBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -6587,7 +6705,7 @@ public Builder setLastScheduledRunResponse( public Builder mergeLastScheduledRunResponse( com.google.cloud.aiplatform.v1beta1.Schedule.RunResponse value) { if (lastScheduledRunResponseBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0) + if (((bitField0_ & 0x00100000) != 0) && lastScheduledRunResponse_ != null && lastScheduledRunResponse_ != com.google.cloud.aiplatform.v1beta1.Schedule.RunResponse.getDefaultInstance()) { @@ -6599,7 +6717,7 @@ public Builder mergeLastScheduledRunResponse( lastScheduledRunResponseBuilder_.mergeFrom(value); } if (lastScheduledRunResponse_ != null) { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); } return this; @@ -6620,7 +6738,7 @@ public Builder mergeLastScheduledRunResponse( *
    */ public Builder clearLastScheduledRunResponse() { - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); lastScheduledRunResponse_ = null; if (lastScheduledRunResponseBuilder_ != null) { lastScheduledRunResponseBuilder_.dispose(); @@ -6646,7 +6764,7 @@ public Builder clearLastScheduledRunResponse() { */ public com.google.cloud.aiplatform.v1beta1.Schedule.RunResponse.Builder getLastScheduledRunResponseBuilder() { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return internalGetLastScheduledRunResponseFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleOrBuilder.java index 6116d6f776a6..cd14ea5c3131 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleOrBuilder.java @@ -677,6 +677,24 @@ public interface ScheduleOrBuilder */ long getMaxConcurrentRunCount(); + /** + * + * + *
    +   * Optional. Specifies the maximum number of active runs that can be executed
    +   * concurrently for this Schedule. This limits the number of runs that can be
    +   * in a non-terminal state at the same time.
    +   * Currently, this field is only supported for requests of type
    +   * CreatePipelineJobRequest.
    +   * 
    + * + * int64 max_concurrent_active_run_count = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maxConcurrentActiveRunCount. + */ + long getMaxConcurrentActiveRunCount(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleProto.java index e4f7f6a4d729..330686c32bb8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleProto.java @@ -57,61 +57,57 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n" - + ".google/cloud/aiplatform/v1beta1/schedule.proto\022\037google.cloud.aiplatform.v1beta" + "\n.google/cloud/aiplatform/v1beta1/schedu" + + "le.proto\022\037google.cloud.aiplatform.v1beta" + "1\032\037google/api/field_behavior.proto\032\031goog" - + "le/api/resource.proto\032>google/cloud/aiplatform/v1beta1/model_monitoring_service." - + "proto\0326google/cloud/aiplatform/v1beta1/notebook_service.proto\0326google/cloud/aipl" - + "atform/v1beta1/pipeline_service.proto\032\037google/protobuf/timestamp.proto\"\372\n\n" - + "\010Schedule\022\016\n" - + "\004cron\030\n" - + " \001(\tH\000\022`\n" - + "\033create_pipeline_job_request\030\016" - + " \001(\01329.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequestH\001\022o\n" + + "le/api/resource.proto\032>google/cloud/aipl" + + "atform/v1beta1/model_monitoring_service." + + "proto\0326google/cloud/aiplatform/v1beta1/n" + + "otebook_service.proto\0326google/cloud/aipl" + + "atform/v1beta1/pipeline_service.proto\032\037g" + + "oogle/protobuf/timestamp.proto\"\250\013\n\010Sched" + + "ule\022\016\n\004cron\030\n \001(\tH\000\022`\n\033create_pipeline_j" + + "ob_request\030\016 \001(\01329.google.cloud.aiplatfo" + + "rm.v1beta1.CreatePipelineJobRequestH\001\022o\n" + "#create_model_monitoring_job_request\030\017 \001" - + "(\0132@.google.cloud.aiplatform.v1beta1.CreateModelMonitoringJobRequestH\001\022s\n" - + "%create_notebook_execution_job_request\030\024 \001(\0132B." - + "google.cloud.aiplatform.v1beta1.CreateNotebookExecutionJobRequestH\001\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\005\022\031\n" - + "\014display_name\030\002 \001(\tB\003\340A\002\0223\n\n" - + "start_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\0221\n" - + "\010end_time\030\004" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022\032\n\r" - + "max_run_count\030\020 \001(\003B\003\340A\001\022\036\n" - + "\021started_run_count\030\021 \001(\003B\003\340A\003\022C\n" - + "\005state\030\005" - + " \001(\0162/.google.cloud.aiplatform.v1beta1.Schedule.StateB\003\340A\003\0224\n" - + "\013create_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" - + "\013update_time\030\023" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0226\n\r" - + "next_run_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0228\n" - + "\017last_pause_time\030\010" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0229\n" - + "\020last_resume_time\030\t" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022%\n" - + "\030max_concurrent_run_count\030\013 \001(\003B\003\340A\002\022\033\n" - + "\016allow_queueing\030\014 \001(\010B\003\340A\001\022\025\n" - + "\010catch_up\030\r" - + " \001(\010B\003\340A\003\022_\n" - + "\033last_scheduled_run_response\030\022 \001(\01325.go" - + "ogle.cloud.aiplatform.v1beta1.Schedule.RunResponseB\003\340A\003\032[\n" - + "\013RunResponse\0226\n" - + "\022scheduled_run_time\030\001 \001(\0132\032.google.protobuf.Timestamp\022\024\n" - + "\014run_response\030\002 \001(\t\"E\n" - + "\005State\022\025\n" - + "\021STATE_UNSPECIFIED\020\000\022\n\n" - + "\006ACTIVE\020\001\022\n\n" - + "\006PAUSED\020\002\022\r\n" - + "\tCOMPLETED\020\003:e\352Ab\n" - + "\"aiplatform.googleapis.com/Schedule\022 + * The details for a Vertex Multimodal Dataset output. + * + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination} + */ +@com.google.protobuf.Generated +public final class VertexMultimodalDatasetDestination extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination) + VertexMultimodalDatasetDestinationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "VertexMultimodalDatasetDestination"); + } + + // Use VertexMultimodalDatasetDestination.newBuilder() to construct. + private VertexMultimodalDatasetDestination( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private VertexMultimodalDatasetDestination() { + displayName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_VertexMultimodalDatasetDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_VertexMultimodalDatasetDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination.class, + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination.Builder.class); + } + + private int bitField0_; + public static final int BIGQUERY_DESTINATION_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.BigQueryDestination bigqueryDestination_; + + /** + * + * + *
    +   * Optional. The destination of the underlying BigQuery table that will be
    +   * created for the output Multimodal Dataset. If not specified, the BigQuery
    +   * table will be created in a default BigQuery dataset.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bigqueryDestination field is set. + */ + @java.lang.Override + public boolean hasBigqueryDestination() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Optional. The destination of the underlying BigQuery table that will be
    +   * created for the output Multimodal Dataset. If not specified, the BigQuery
    +   * table will be created in a default BigQuery dataset.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bigqueryDestination. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BigQueryDestination getBigqueryDestination() { + return bigqueryDestination_ == null + ? com.google.cloud.aiplatform.v1beta1.BigQueryDestination.getDefaultInstance() + : bigqueryDestination_; + } + + /** + * + * + *
    +   * Optional. The destination of the underlying BigQuery table that will be
    +   * created for the output Multimodal Dataset. If not specified, the BigQuery
    +   * table will be created in a default BigQuery dataset.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BigQueryDestinationOrBuilder + getBigqueryDestinationOrBuilder() { + return bigqueryDestination_ == null + ? com.google.cloud.aiplatform.v1beta1.BigQueryDestination.getDefaultInstance() + : bigqueryDestination_; + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
    +   * Optional. Display name of the output dataset.
    +   * 
    + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. Display name of the output dataset.
    +   * 
    + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getBigqueryDestination()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBigqueryDestination()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination other = + (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination) obj; + + if (hasBigqueryDestination() != other.hasBigqueryDestination()) return false; + if (hasBigqueryDestination()) { + if (!getBigqueryDestination().equals(other.getBigqueryDestination())) return false; + } + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasBigqueryDestination()) { + hash = (37 * hash) + BIGQUERY_DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getBigqueryDestination().hashCode(); + } + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * The details for a Vertex Multimodal Dataset output.
    +   * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination) + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestinationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_VertexMultimodalDatasetDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_VertexMultimodalDatasetDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination.class, + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetBigqueryDestinationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bigqueryDestination_ = null; + if (bigqueryDestinationBuilder_ != null) { + bigqueryDestinationBuilder_.dispose(); + bigqueryDestinationBuilder_ = null; + } + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_VertexMultimodalDatasetDestination_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination build() { + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination buildPartial() { + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination result = + new com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.bigqueryDestination_ = + bigqueryDestinationBuilder_ == null + ? bigqueryDestination_ + : bigqueryDestinationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination other) { + if (other + == com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination + .getDefaultInstance()) return this; + if (other.hasBigqueryDestination()) { + mergeBigqueryDestination(other.getBigqueryDestination()); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetBigqueryDestinationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.aiplatform.v1beta1.BigQueryDestination bigqueryDestination_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.BigQueryDestination, + com.google.cloud.aiplatform.v1beta1.BigQueryDestination.Builder, + com.google.cloud.aiplatform.v1beta1.BigQueryDestinationOrBuilder> + bigqueryDestinationBuilder_; + + /** + * + * + *
    +     * Optional. The destination of the underlying BigQuery table that will be
    +     * created for the output Multimodal Dataset. If not specified, the BigQuery
    +     * table will be created in a default BigQuery dataset.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bigqueryDestination field is set. + */ + public boolean hasBigqueryDestination() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Optional. The destination of the underlying BigQuery table that will be
    +     * created for the output Multimodal Dataset. If not specified, the BigQuery
    +     * table will be created in a default BigQuery dataset.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bigqueryDestination. + */ + public com.google.cloud.aiplatform.v1beta1.BigQueryDestination getBigqueryDestination() { + if (bigqueryDestinationBuilder_ == null) { + return bigqueryDestination_ == null + ? com.google.cloud.aiplatform.v1beta1.BigQueryDestination.getDefaultInstance() + : bigqueryDestination_; + } else { + return bigqueryDestinationBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. The destination of the underlying BigQuery table that will be
    +     * created for the output Multimodal Dataset. If not specified, the BigQuery
    +     * table will be created in a default BigQuery dataset.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBigqueryDestination( + com.google.cloud.aiplatform.v1beta1.BigQueryDestination value) { + if (bigqueryDestinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + bigqueryDestination_ = value; + } else { + bigqueryDestinationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The destination of the underlying BigQuery table that will be
    +     * created for the output Multimodal Dataset. If not specified, the BigQuery
    +     * table will be created in a default BigQuery dataset.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBigqueryDestination( + com.google.cloud.aiplatform.v1beta1.BigQueryDestination.Builder builderForValue) { + if (bigqueryDestinationBuilder_ == null) { + bigqueryDestination_ = builderForValue.build(); + } else { + bigqueryDestinationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The destination of the underlying BigQuery table that will be
    +     * created for the output Multimodal Dataset. If not specified, the BigQuery
    +     * table will be created in a default BigQuery dataset.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeBigqueryDestination( + com.google.cloud.aiplatform.v1beta1.BigQueryDestination value) { + if (bigqueryDestinationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && bigqueryDestination_ != null + && bigqueryDestination_ + != com.google.cloud.aiplatform.v1beta1.BigQueryDestination.getDefaultInstance()) { + getBigqueryDestinationBuilder().mergeFrom(value); + } else { + bigqueryDestination_ = value; + } + } else { + bigqueryDestinationBuilder_.mergeFrom(value); + } + if (bigqueryDestination_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. The destination of the underlying BigQuery table that will be
    +     * created for the output Multimodal Dataset. If not specified, the BigQuery
    +     * table will be created in a default BigQuery dataset.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearBigqueryDestination() { + bitField0_ = (bitField0_ & ~0x00000001); + bigqueryDestination_ = null; + if (bigqueryDestinationBuilder_ != null) { + bigqueryDestinationBuilder_.dispose(); + bigqueryDestinationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The destination of the underlying BigQuery table that will be
    +     * created for the output Multimodal Dataset. If not specified, the BigQuery
    +     * table will be created in a default BigQuery dataset.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.BigQueryDestination.Builder + getBigqueryDestinationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetBigqueryDestinationFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. The destination of the underlying BigQuery table that will be
    +     * created for the output Multimodal Dataset. If not specified, the BigQuery
    +     * table will be created in a default BigQuery dataset.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.BigQueryDestinationOrBuilder + getBigqueryDestinationOrBuilder() { + if (bigqueryDestinationBuilder_ != null) { + return bigqueryDestinationBuilder_.getMessageOrBuilder(); + } else { + return bigqueryDestination_ == null + ? com.google.cloud.aiplatform.v1beta1.BigQueryDestination.getDefaultInstance() + : bigqueryDestination_; + } + } + + /** + * + * + *
    +     * Optional. The destination of the underlying BigQuery table that will be
    +     * created for the output Multimodal Dataset. If not specified, the BigQuery
    +     * table will be created in a default BigQuery dataset.
    +     * 
    + * + * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.BigQueryDestination, + com.google.cloud.aiplatform.v1beta1.BigQueryDestination.Builder, + com.google.cloud.aiplatform.v1beta1.BigQueryDestinationOrBuilder> + internalGetBigqueryDestinationFieldBuilder() { + if (bigqueryDestinationBuilder_ == null) { + bigqueryDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.BigQueryDestination, + com.google.cloud.aiplatform.v1beta1.BigQueryDestination.Builder, + com.google.cloud.aiplatform.v1beta1.BigQueryDestinationOrBuilder>( + getBigqueryDestination(), getParentForChildren(), isClean()); + bigqueryDestination_ = null; + } + return bigqueryDestinationBuilder_; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
    +     * Optional. Display name of the output dataset.
    +     * 
    + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. Display name of the output dataset.
    +     * 
    + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. Display name of the output dataset.
    +     * 
    + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Display name of the output dataset.
    +     * 
    + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Display name of the output dataset.
    +     * 
    + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination) + private static final com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination(); + } + + public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VertexMultimodalDatasetDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexMultimodalDatasetDestinationOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexMultimodalDatasetDestinationOrBuilder.java new file mode 100644 index 000000000000..2c90ee829935 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexMultimodalDatasetDestinationOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/io.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface VertexMultimodalDatasetDestinationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetDestination) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Optional. The destination of the underlying BigQuery table that will be
    +   * created for the output Multimodal Dataset. If not specified, the BigQuery
    +   * table will be created in a default BigQuery dataset.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bigqueryDestination field is set. + */ + boolean hasBigqueryDestination(); + + /** + * + * + *
    +   * Optional. The destination of the underlying BigQuery table that will be
    +   * created for the output Multimodal Dataset. If not specified, the BigQuery
    +   * table will be created in a default BigQuery dataset.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bigqueryDestination. + */ + com.google.cloud.aiplatform.v1beta1.BigQueryDestination getBigqueryDestination(); + + /** + * + * + *
    +   * Optional. The destination of the underlying BigQuery table that will be
    +   * created for the output Multimodal Dataset. If not specified, the BigQuery
    +   * table will be created in a default BigQuery dataset.
    +   * 
    + * + * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.BigQueryDestinationOrBuilder + getBigqueryDestinationOrBuilder(); + + /** + * + * + *
    +   * Optional. Display name of the output dataset.
    +   * 
    + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
    +   * Optional. Display name of the output dataset.
    +   * 
    + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexMultimodalDatasetSource.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexMultimodalDatasetSource.java new file mode 100644 index 000000000000..13d5b39a916e --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexMultimodalDatasetSource.java @@ -0,0 +1,627 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/io.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
    + * The Vertex Multimodal Dataset for the input content.
    + * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource} + */ +@com.google.protobuf.Generated +public final class VertexMultimodalDatasetSource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource) + VertexMultimodalDatasetSourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "VertexMultimodalDatasetSource"); + } + + // Use VertexMultimodalDatasetSource.newBuilder() to construct. + private VertexMultimodalDatasetSource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private VertexMultimodalDatasetSource() { + datasetName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_VertexMultimodalDatasetSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_VertexMultimodalDatasetSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource.class, + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource.Builder.class); + } + + public static final int DATASET_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object datasetName_ = ""; + + /** + * + * + *
    +   * Required. The resource name of the Vertex Dataset.
    +   * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
    +   * 
    + * + * + * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The datasetName. + */ + @java.lang.Override + public java.lang.String getDatasetName() { + java.lang.Object ref = datasetName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + datasetName_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The resource name of the Vertex Dataset.
    +   * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
    +   * 
    + * + * + * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for datasetName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatasetNameBytes() { + java.lang.Object ref = datasetName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + datasetName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(datasetName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, datasetName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(datasetName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, datasetName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource other = + (com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource) obj; + + if (!getDatasetName().equals(other.getDatasetName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DATASET_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDatasetName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * The Vertex Multimodal Dataset for the input content.
    +   * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource) + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_VertexMultimodalDatasetSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_VertexMultimodalDatasetSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource.class, + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + datasetName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.IoProto + .internal_static_google_cloud_aiplatform_v1beta1_VertexMultimodalDatasetSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource build() { + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource buildPartial() { + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource result = + new com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.datasetName_ = datasetName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource other) { + if (other + == com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource.getDefaultInstance()) + return this; + if (!other.getDatasetName().isEmpty()) { + datasetName_ = other.datasetName_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + datasetName_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object datasetName_ = ""; + + /** + * + * + *
    +     * Required. The resource name of the Vertex Dataset.
    +     * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
    +     * 
    + * + * + * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The datasetName. + */ + public java.lang.String getDatasetName() { + java.lang.Object ref = datasetName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + datasetName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The resource name of the Vertex Dataset.
    +     * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
    +     * 
    + * + * + * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for datasetName. + */ + public com.google.protobuf.ByteString getDatasetNameBytes() { + java.lang.Object ref = datasetName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + datasetName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The resource name of the Vertex Dataset.
    +     * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
    +     * 
    + * + * + * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The datasetName to set. + * @return This builder for chaining. + */ + public Builder setDatasetName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + datasetName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource name of the Vertex Dataset.
    +     * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
    +     * 
    + * + * + * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDatasetName() { + datasetName_ = getDefaultInstance().getDatasetName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource name of the Vertex Dataset.
    +     * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
    +     * 
    + * + * + * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for datasetName to set. + * @return This builder for chaining. + */ + public Builder setDatasetNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + datasetName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource) + private static final com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource(); + } + + public static com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VertexMultimodalDatasetSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexMultimodalDatasetSourceOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexMultimodalDatasetSourceOrBuilder.java new file mode 100644 index 000000000000..53b134048277 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexMultimodalDatasetSourceOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/io.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface VertexMultimodalDatasetSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.VertexMultimodalDatasetSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the Vertex Dataset.
    +   * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
    +   * 
    + * + * + * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The datasetName. + */ + java.lang.String getDatasetName(); + + /** + * + * + *
    +   * Required. The resource name of the Vertex Dataset.
    +   * Format: `projects/{project}/locations/{location}/datasets/{dataset}`
    +   * 
    + * + * + * string dataset_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for datasetName. + */ + com.google.protobuf.ByteString getDatasetNameBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceProto.java index b6bb83106a3f..2429ecc1cb68 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceProto.java @@ -129,163 +129,165 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n" - + "=google/cloud/aiplatform/v1beta1/vertex_rag_data_service.proto\022\037google.cloud.ai" + "\n=google/cloud/aiplatform/v1beta1/vertex" + + "_rag_data_service.proto\022\037google.cloud.ai" + "platform.v1beta1\032\034google/api/annotations" + ".proto\032\027google/api/client.proto\032\037google/" + "api/field_behavior.proto\032\031google/api/res" - + "ource.proto\032/google/cloud/aiplatform/v1beta1/operation.proto\0325google/cloud/aipla" + + "ource.proto\032/google/cloud/aiplatform/v1b" + + "eta1/operation.proto\0325google/cloud/aipla" + "tform/v1beta1/vertex_rag_data.proto\032#goo" + "gle/longrunning/operations.proto\032\033google" - + "/protobuf/empty.proto\032\027google/rpc/status.proto\"\230\001\n" - + "\026CreateRagCorpusRequest\0229\n" - + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" - + "!locations.googleapis.com/Location\022C\n\n" - + "rag_corpus\030\002 \001(\0132*.googl" - + "e.cloud.aiplatform.v1beta1.RagCorpusB\003\340A\002\"P\n" - + "\023GetRagCorpusRequest\0229\n" - + "\004name\030\001 \001(\tB+\340A\002\372A%\n" - + "#aiplatform.googleapis.com/RagCorpus\"\203\001\n" - + "\025ListRagCorporaRequest\0229\n" - + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" - + "!locations.googleapis.com/Location\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" - + "page_token\030\003 \001(\tB\003\340A\001\"r\n" - + "\026ListRagCorporaResponse\022?\n" - + "\013rag_corpora\030\001" - + " \003(\0132*.google.cloud.aiplatform.v1beta1.RagCorpus\022\027\n" - + "\017next_page_token\030\002 \001(\t\"g\n" - + "\026DeleteRagCorpusRequest\0229\n" - + "\004name\030\001 \001(\tB+\340A\002\372A%\n" - + "#aiplatform.googleapis.com/RagCorpus\022\022\n" - + "\005force\030\002 \001(\010B\003\340A\001\"\357\001\n" - + "\024UploadRagFileRequest\022;\n" - + "\006parent\030\001 \001(\tB+\340A\002\372A%\n" - + "#aiplatform.googleapis.com/RagCorpus\022?\n" - + "\010rag_file\030\002" - + " \001(\0132(.google.cloud.aiplatform.v1beta1.RagFileB\003\340A\002\022Y\n" - + "\026upload_rag_file_config\030\005 \001(\01324.google.cloud.aip" - + "latform.v1beta1.UploadRagFileConfigB\003\340A\002\"\204\001\n" - + "\025UploadRagFileResponse\022<\n" - + "\010rag_file\030\001 \001(\0132(.google.cloud.aiplatform.v1beta1.RagFileH\000\022#\n" - + "\005error\030\004 \001(\0132\022.google.rpc.StatusH\000B\010\n" - + "\006result\"\261\001\n" - + "\025ImportRagFilesRequest\022;\n" - + "\006parent\030\001 \001(\tB+\340A\002\372A%\n" - + "#aiplatform.googleapis.com/RagCorpus\022[\n" - + "\027import_rag_files_config\030\002" - + " \001(\01325.google.cloud.aiplatform.v1beta1.ImportRagFilesConfigB\003\340A\002\"\343\001\n" - + "\026ImportRagFilesResponse\022#\n" - + "\031partial_failures_gcs_path\030\004 \001(\tH\000\022)\n" - + "\037partial_failures_bigquery_table\030\005 \001(\tH\000\022 \n" - + "\030imported_rag_files_count\030\001 \001(\003\022\036\n" - + "\026failed_rag_files_count\030\002 \001(\003\022\037\n" - + "\027skipped_rag_files_count\030\003 \001(\003B\026\n" - + "\024partial_failure_sink\"L\n" - + "\021GetRagFileRequest\0227\n" - + "\004name\030\001 \001(\tB)\340A\002\372A#\n" - + "!aiplatform.googleapis.com/RagFile\"\203\001\n" - + "\023ListRagFilesRequest\022;\n" - + "\006parent\030\001 \001(\tB+\340A\002\372A%\n" - + "#aiplatform.googleapis.com/RagCorpus\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" - + "page_token\030\003 \001(\tB\003\340A\001\"l\n" - + "\024ListRagFilesResponse\022;\n" - + "\trag_files\030\001 \003(\0132(.google.cloud.aiplatform.v1beta1.RagFile\022\027\n" - + "\017next_page_token\030\002 \001(\t\"j\n" - + "\024DeleteRagFileRequest\0227\n" - + "\004name\030\001 \001(\tB)\340A\002\372A#\n" - + "!aiplatform.googleapis.com/RagFile\022\031\n" - + "\014force_delete\030\002 \001(\010B\003\340A\001\"w\n" - + " CreateRagCorpusOperationMetadata\022S\n" - + "\020generic_metadata\030\001 \001(\01329." - + "google.cloud.aiplatform.v1beta1.GenericOperationMetadata\"\\\n" - + "\031GetRagEngineConfigRequest\022?\n" - + "\004name\030\001 \001(\tB1\340A\002\372A+\n" - + ")aiplatform.googleapis.com/RagEngineConfig\"]\n" - + "\026UpdateRagCorpusRequest\022C\n\n" - + "rag_corpus\030\001 \001(\0132*.g" - + "oogle.cloud.aiplatform.v1beta1.RagCorpusB\003\340A\002\"w\n" - + " UpdateRagCorpusOperationMetadata\022S\n" - + "\020generic_metadata\030\001 \001(\01329.google.clo" - + "ud.aiplatform.v1beta1.GenericOperationMetadata\"\207\002\n" - + "\037ImportRagFilesOperationMetadata\022S\n" - + "\020generic_metadata\030\001 \001(\01329.google.cl" - + "oud.aiplatform.v1beta1.GenericOperationMetadata\022\025\n\r" - + "rag_corpus_id\030\002 \001(\003\022[\n" - + "\027import_rag_files_config\030\003 \001(\01325.google.cloud.a" - + "iplatform.v1beta1.ImportRagFilesConfigB\003\340A\003\022\033\n" - + "\023progress_percentage\030\004 \001(\005\"p\n" - + "\034UpdateRagEngineConfigRequest\022P\n" - + "\021rag_engine_config\030\001" - + " \001(\01320.google.cloud.aiplatform.v1beta1.RagEngineConfigB\003\340A\002\"}\n" - + "&UpdateRagEngineConfigOperationMetadata\022S\n" - + "\020generic_metadata\030\001" - + " \001(\01329.google.cloud.aiplatform.v1beta1.GenericOperationMetadata2\307\026\n" - + "\024VertexRagDataService\022\367\001\n" - + "\017CreateRagCorpus\0227.google.cloud.aiplatform.v1beta1.CreateR" - + "agCorpusRequest\032\035.google.longrunning.Operation\"\213\001\312A-\n" - + "\tRagCorpus\022 CreateRagCorpusOperationMetadata\332A\021parent,rag_corpus\202\323\344" - + "\223\002A\"3/v1beta1/{parent=projects/*/locations/*}/ragCorpora:\n" - + "rag_corpus\022\373\001\n" - + "\017UpdateRagCorpus\0227.google.cloud.aiplatform.v1bet" - + "a1.UpdateRagCorpusRequest\032\035.google.longrunning.Operation\"\217\001\312A-\n" - + "\tRagCorpus\022 UpdateRagCorpusOperationMetadata\332A\n" - + "rag_corpus" - + "\202\323\344\223\002L2>/v1beta1/{rag_corpus.name=projects/*/locations/*/ragCorpora/*}:\n" - + "rag_corpus\022\264\001\n" - + "\014GetRagCorpus\0224.google.cloud.aiplatform.v1beta1.GetRagCorpusRequest\032*.goog" - + "le.cloud.aiplatform.v1beta1.RagCorpus\"B\332" - + "A\004name\202\323\344\223\0025\0223/v1beta1/{name=projects/*/locations/*/ragCorpora/*}\022\307\001\n" - + "\016ListRagCorpora\0226.google.cloud.aiplatform.v1beta1.L" - + "istRagCorporaRequest\0327.google.cloud.aipl" - + "atform.v1beta1.ListRagCorporaResponse\"D\332" - + "A\006parent\202\323\344\223\0025\0223/v1beta1/{parent=projects/*/locations/*}/ragCorpora\022\340\001\n" - + "\017DeleteRagCorpus\0227.google.cloud.aiplatform.v1beta" - + "1.DeleteRagCorpusRequest\032\035.google.longrunning.Operation\"u\312A0\n" - + "\025google.protobuf.Em" - + "pty\022\027DeleteOperationMetadata\332A\004name\202\323\344\223\002" - + "5*3/v1beta1/{name=projects/*/locations/*/ragCorpora/*}\022\371\001\n\r" - + "UploadRagFile\0225.google.cloud.aiplatform.v1beta1.UploadRagFile" - + "Request\0326.google.cloud.aiplatform.v1beta" - + "1.UploadRagFileResponse\"y\332A&parent,rag_f" - + "ile,upload_rag_file_config\202\323\344\223\002J\"E/v1bet" - + "a1/{parent=projects/*/locations/*/ragCorpora/*}/ragFiles:upload:\001*\022\227\002\n" - + "\016ImportRagFiles\0226.google.cloud.aiplatform.v1beta1." - + "ImportRagFilesRequest\032\035.google.longrunning.Operation\"\255\001\312A9\n" - + "\026ImportRagFilesResponse\022\037ImportRagFilesOperationMetadata\332A\036pa" - + "rent,import_rag_files_config\202\323\344\223\002J\"E/v1b" - + "eta1/{parent=projects/*/locations/*/ragCorpora/*}/ragFiles:import:\001*\022\271\001\n\n" - + "GetRagFile\0222.google.cloud.aiplatform.v1beta1.Ge" - + "tRagFileRequest\032(.google.cloud.aiplatfor" - + "m.v1beta1.RagFile\"M\332A\004name\202\323\344\223\002@\022>/v1bet" - + "a1/{name=projects/*/locations/*/ragCorpora/*/ragFiles/*}\022\314\001\n" - + "\014ListRagFiles\0224.google.cloud.aiplatform.v1beta1.ListRagFiles" - + "Request\0325.google.cloud.aiplatform.v1beta" - + "1.ListRagFilesResponse\"O\332A\006parent\202\323\344\223\002@\022" - + ">/v1beta1/{parent=projects/*/locations/*/ragCorpora/*}/ragFiles\022\350\001\n\r" - + "DeleteRagFile\0225.google.cloud.aiplatform.v1beta1.Dele" - + "teRagFileRequest\032\035.google.longrunning.Operation\"\200\001\312A0\n" - + "\025google.protobuf.Empty\022\027De" - + "leteOperationMetadata\332A\004name\202\323\344\223\002@*>/v1b" - + "eta1/{name=projects/*/locations/*/ragCorpora/*/ragFiles/*}\022\253\002\n" - + "\025UpdateRagEngineConfig\022=.google.cloud.aiplatform.v1beta1.U" - + "pdateRagEngineConfigRequest\032\035.google.longrunning.Operation\"\263\001\312A9\n" - + "\017RagEngineConfig\022&UpdateRagEngineConfigOperationMetadat" - + "a\332A\021rag_engine_config\202\323\344\223\002]2H/v1beta1/{r" - + "ag_engine_config.name=projects/*/locatio" - + "ns/*/ragEngineConfig}:\021rag_engine_config\022\311\001\n" - + "\022GetRagEngineConfig\022:.google.cloud.aiplatform.v1beta1.GetRagEngineConfigRequ" - + "est\0320.google.cloud.aiplatform.v1beta1.Ra" - + "gEngineConfig\"E\332A\004name\202\323\344\223\0028\0226/v1beta1/{" - + "name=projects/*/locations/*/ragEngineCon" - + "fig}\032M\312A\031aiplatform.googleapis.com\322A.htt" - + "ps://www.googleapis.com/auth/cloud-platformB\360\001\n" - + "#com.google.cloud.aiplatform.v1beta1B\031VertexRagDataServiceProtoP\001ZCcloud." - + "google.com/go/aiplatform/apiv1beta1/aipl" - + "atformpb;aiplatformpb\252\002\037Google.Cloud.AIP" - + "latform.V1Beta1\312\002\037Google\\Cloud\\AIPlatfor" - + "m\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" + + "/protobuf/empty.proto\032\027google/rpc/status" + + ".proto\"\230\001\n\026CreateRagCorpusRequest\0229\n\006par" + + "ent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis." + + "com/Location\022C\n\nrag_corpus\030\002 \001(\0132*.googl" + + "e.cloud.aiplatform.v1beta1.RagCorpusB\003\340A" + + "\002\"P\n\023GetRagCorpusRequest\0229\n\004name\030\001 \001(\tB+" + + "\340A\002\372A%\n#aiplatform.googleapis.com/RagCor" + + "pus\"\203\001\n\025ListRagCorporaRequest\0229\n\006parent\030" + + "\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com/" + + "Location\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage" + + "_token\030\003 \001(\tB\003\340A\001\"r\n\026ListRagCorporaRespo" + + "nse\022?\n\013rag_corpora\030\001 \003(\0132*.google.cloud." + + "aiplatform.v1beta1.RagCorpus\022\027\n\017next_pag" + + "e_token\030\002 \001(\t\"\202\001\n\026DeleteRagCorpusRequest" + + "\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#aiplatform.googl" + + "eapis.com/RagCorpus\022\022\n\005force\030\002 \001(\010B\003\340A\001\022" + + "\031\n\014force_delete\030\003 \001(\010B\003\340A\001\"\357\001\n\024UploadRag" + + "FileRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\n#aip" + + "latform.googleapis.com/RagCorpus\022?\n\010rag_" + + "file\030\002 \001(\0132(.google.cloud.aiplatform.v1b" + + "eta1.RagFileB\003\340A\002\022Y\n\026upload_rag_file_con" + + "fig\030\005 \001(\01324.google.cloud.aiplatform.v1be" + + "ta1.UploadRagFileConfigB\003\340A\002\"\204\001\n\025UploadR" + + "agFileResponse\022<\n\010rag_file\030\001 \001(\0132(.googl" + + "e.cloud.aiplatform.v1beta1.RagFileH\000\022#\n\005" + + "error\030\004 \001(\0132\022.google.rpc.StatusH\000B\010\n\006res" + + "ult\"\261\001\n\025ImportRagFilesRequest\022;\n\006parent\030" + + "\001 \001(\tB+\340A\002\372A%\n#aiplatform.googleapis.com" + + "/RagCorpus\022[\n\027import_rag_files_config\030\002 " + + "\001(\01325.google.cloud.aiplatform.v1beta1.Im" + + "portRagFilesConfigB\003\340A\002\"\343\001\n\026ImportRagFil" + + "esResponse\022#\n\031partial_failures_gcs_path\030" + + "\004 \001(\tH\000\022)\n\037partial_failures_bigquery_tab" + + "le\030\005 \001(\tH\000\022 \n\030imported_rag_files_count\030\001" + + " \001(\003\022\036\n\026failed_rag_files_count\030\002 \001(\003\022\037\n\027" + + "skipped_rag_files_count\030\003 \001(\003B\026\n\024partial" + + "_failure_sink\"L\n\021GetRagFileRequest\0227\n\004na" + + "me\030\001 \001(\tB)\340A\002\372A#\n!aiplatform.googleapis." + + "com/RagFile\"\203\001\n\023ListRagFilesRequest\022;\n\006p" + + "arent\030\001 \001(\tB+\340A\002\372A%\n#aiplatform.googleap" + + "is.com/RagCorpus\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001" + + "\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"l\n\024ListRagFile" + + "sResponse\022;\n\trag_files\030\001 \003(\0132(.google.cl" + + "oud.aiplatform.v1beta1.RagFile\022\027\n\017next_p" + + "age_token\030\002 \001(\t\"j\n\024DeleteRagFileRequest\022" + + "7\n\004name\030\001 \001(\tB)\340A\002\372A#\n!aiplatform.google" + + "apis.com/RagFile\022\031\n\014force_delete\030\002 \001(\010B\003" + + "\340A\001\"w\n CreateRagCorpusOperationMetadata\022" + + "S\n\020generic_metadata\030\001 \001(\01329.google.cloud" + + ".aiplatform.v1beta1.GenericOperationMeta" + + "data\"\\\n\031GetRagEngineConfigRequest\022?\n\004nam" + + "e\030\001 \001(\tB1\340A\002\372A+\n)aiplatform.googleapis.c" + + "om/RagEngineConfig\"]\n\026UpdateRagCorpusReq" + + "uest\022C\n\nrag_corpus\030\001 \001(\0132*.google.cloud." + + "aiplatform.v1beta1.RagCorpusB\003\340A\002\"w\n Upd" + + "ateRagCorpusOperationMetadata\022S\n\020generic" + + "_metadata\030\001 \001(\01329.google.cloud.aiplatfor" + + "m.v1beta1.GenericOperationMetadata\"\207\002\n\037I" + + "mportRagFilesOperationMetadata\022S\n\020generi" + + "c_metadata\030\001 \001(\01329.google.cloud.aiplatfo" + + "rm.v1beta1.GenericOperationMetadata\022\025\n\rr" + + "ag_corpus_id\030\002 \001(\003\022[\n\027import_rag_files_c" + + "onfig\030\003 \001(\01325.google.cloud.aiplatform.v1" + + "beta1.ImportRagFilesConfigB\003\340A\003\022\033\n\023progr" + + "ess_percentage\030\004 \001(\005\"p\n\034UpdateRagEngineC" + + "onfigRequest\022P\n\021rag_engine_config\030\001 \001(\0132" + + "0.google.cloud.aiplatform.v1beta1.RagEng" + + "ineConfigB\003\340A\002\"}\n&UpdateRagEngineConfigO" + + "perationMetadata\022S\n\020generic_metadata\030\001 \001" + + "(\01329.google.cloud.aiplatform.v1beta1.Gen" + + "ericOperationMetadata2\307\026\n\024VertexRagDataS" + + "ervice\022\367\001\n\017CreateRagCorpus\0227.google.clou" + + "d.aiplatform.v1beta1.CreateRagCorpusRequ" + + "est\032\035.google.longrunning.Operation\"\213\001\312A-" + + "\n\tRagCorpus\022 CreateRagCorpusOperationMet" + + "adata\332A\021parent,rag_corpus\202\323\344\223\002A\"3/v1beta" + + "1/{parent=projects/*/locations/*}/ragCor" + + "pora:\nrag_corpus\022\373\001\n\017UpdateRagCorpus\0227.g" + + "oogle.cloud.aiplatform.v1beta1.UpdateRag" + + "CorpusRequest\032\035.google.longrunning.Opera" + + "tion\"\217\001\312A-\n\tRagCorpus\022 UpdateRagCorpusOp" + + "erationMetadata\332A\nrag_corpus\202\323\344\223\002L2>/v1b" + + "eta1/{rag_corpus.name=projects/*/locatio" + + "ns/*/ragCorpora/*}:\nrag_corpus\022\264\001\n\014GetRa" + + "gCorpus\0224.google.cloud.aiplatform.v1beta" + + "1.GetRagCorpusRequest\032*.google.cloud.aip" + + "latform.v1beta1.RagCorpus\"B\332A\004name\202\323\344\223\0025" + + "\0223/v1beta1/{name=projects/*/locations/*/" + + "ragCorpora/*}\022\307\001\n\016ListRagCorpora\0226.googl" + + "e.cloud.aiplatform.v1beta1.ListRagCorpor" + + "aRequest\0327.google.cloud.aiplatform.v1bet" + + "a1.ListRagCorporaResponse\"D\332A\006parent\202\323\344\223" + + "\0025\0223/v1beta1/{parent=projects/*/location" + + "s/*}/ragCorpora\022\340\001\n\017DeleteRagCorpus\0227.go" + + "ogle.cloud.aiplatform.v1beta1.DeleteRagC" + + "orpusRequest\032\035.google.longrunning.Operat" + + "ion\"u\312A0\n\025google.protobuf.Empty\022\027DeleteO" + + "perationMetadata\332A\004name\202\323\344\223\0025*3/v1beta1/" + + "{name=projects/*/locations/*/ragCorpora/" + + "*}\022\371\001\n\rUploadRagFile\0225.google.cloud.aipl" + + "atform.v1beta1.UploadRagFileRequest\0326.go" + + "ogle.cloud.aiplatform.v1beta1.UploadRagF" + + "ileResponse\"y\332A&parent,rag_file,upload_r" + + "ag_file_config\202\323\344\223\002J\"E/v1beta1/{parent=p" + + "rojects/*/locations/*/ragCorpora/*}/ragF" + + "iles:upload:\001*\022\227\002\n\016ImportRagFiles\0226.goog" + + "le.cloud.aiplatform.v1beta1.ImportRagFil" + + "esRequest\032\035.google.longrunning.Operation" + + "\"\255\001\312A9\n\026ImportRagFilesResponse\022\037ImportRa" + + "gFilesOperationMetadata\332A\036parent,import_" + + "rag_files_config\202\323\344\223\002J\"E/v1beta1/{parent" + + "=projects/*/locations/*/ragCorpora/*}/ra" + + "gFiles:import:\001*\022\271\001\n\nGetRagFile\0222.google" + + ".cloud.aiplatform.v1beta1.GetRagFileRequ" + + "est\032(.google.cloud.aiplatform.v1beta1.Ra" + + "gFile\"M\332A\004name\202\323\344\223\002@\022>/v1beta1/{name=pro" + + "jects/*/locations/*/ragCorpora/*/ragFile" + + "s/*}\022\314\001\n\014ListRagFiles\0224.google.cloud.aip" + + "latform.v1beta1.ListRagFilesRequest\0325.go" + + "ogle.cloud.aiplatform.v1beta1.ListRagFil" + + "esResponse\"O\332A\006parent\202\323\344\223\002@\022>/v1beta1/{p" + + "arent=projects/*/locations/*/ragCorpora/" + + "*}/ragFiles\022\350\001\n\rDeleteRagFile\0225.google.c" + + "loud.aiplatform.v1beta1.DeleteRagFileReq" + + "uest\032\035.google.longrunning.Operation\"\200\001\312A" + + "0\n\025google.protobuf.Empty\022\027DeleteOperatio" + + "nMetadata\332A\004name\202\323\344\223\002@*>/v1beta1/{name=p" + + "rojects/*/locations/*/ragCorpora/*/ragFi" + + "les/*}\022\253\002\n\025UpdateRagEngineConfig\022=.googl" + + "e.cloud.aiplatform.v1beta1.UpdateRagEngi" + + "neConfigRequest\032\035.google.longrunning.Ope" + + "ration\"\263\001\312A9\n\017RagEngineConfig\022&UpdateRag" + + "EngineConfigOperationMetadata\332A\021rag_engi" + + "ne_config\202\323\344\223\002]2H/v1beta1/{rag_engine_co" + + "nfig.name=projects/*/locations/*/ragEngi" + + "neConfig}:\021rag_engine_config\022\311\001\n\022GetRagE" + + "ngineConfig\022:.google.cloud.aiplatform.v1" + + "beta1.GetRagEngineConfigRequest\0320.google" + + ".cloud.aiplatform.v1beta1.RagEngineConfi" + + "g\"E\332A\004name\202\323\344\223\0028\0226/v1beta1/{name=project" + + "s/*/locations/*/ragEngineConfig}\032M\312A\031aip" + + "latform.googleapis.com\322A.https://www.goo" + + "gleapis.com/auth/cloud-platformB\360\001\n#com." + + "google.cloud.aiplatform.v1beta1B\031VertexR" + + "agDataServiceProtoP\001ZCcloud.google.com/g" + + "o/aiplatform/apiv1beta1/aiplatformpb;aip" + + "latformpb\252\002\037Google.Cloud.AIPlatform.V1Be" + + "ta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"" + + "Google::Cloud::AIPlatform::V1beta1b\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -339,7 +341,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_DeleteRagCorpusRequest_descriptor, new java.lang.String[] { - "Name", "Force", + "Name", "Force", "ForceDelete", }); internal_static_google_cloud_aiplatform_v1beta1_UploadRagFileRequest_descriptor = getDescriptor().getMessageType(5); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto index 15607889a3eb..7be3f4f5edce 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -70,6 +70,10 @@ message BatchPredictionJob { // additional columns that are not described by the schema, and they will // be ignored. BigQuerySource bigquery_source = 3; + + // A Vertex Managed Dataset. Currently, only datasets of type Multimodal + // are supported. + VertexMultimodalDatasetSource vertex_multimodal_dataset_source = 4; } // Required. The format in which instances are given, must be one of the @@ -230,6 +234,11 @@ message BatchPredictionJob { // has [google.rpc.Status][google.rpc.Status] // represented as a STRUCT, and containing only `code` and `message`. BigQueryDestination bigquery_destination = 3; + + // The details for a Vertex Multimodal Dataset that will be created for + // the output. + VertexMultimodalDatasetDestination vertex_multimodal_dataset_destination = + 6; } // Required. The format in which Vertex AI gives the predictions, must be @@ -255,6 +264,16 @@ message BatchPredictionJob { // format, into which the prediction output is written. string bigquery_output_dataset = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The resource name of the Vertex Managed Dataset created, + // into which the prediction output is written. Format: + // `projects/{project}/locations/{location}/datasets/{dataset}` + string vertex_multimodal_dataset_name = 5 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Dataset" + } + ]; } // Output only. The name of the BigQuery table created, in diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset.proto index 43032debb0c1..d208f8e2ec26 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,9 +40,14 @@ message Dataset { }; // Output only. Identifier. The resource name of the Dataset. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}` string name = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.field_behavior) = IDENTIFIER + (google.api.field_behavior) = IDENTIFIER, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Dataset" + } ]; // Required. The user-defined name of the Dataset. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_service.proto index 9cddafa697e6..bce5a6eb3efc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -1151,6 +1151,11 @@ message GeminiExample { repeated SafetySetting safety_settings = 3 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Settings for prompt and response sanitization using the Model + // Armor service. If supplied, safety_settings must not be supplied. + ModelArmorConfig model_armor_config = 11 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. Generation config. GenerationConfig generation_config = 4 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_version.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_version.proto index 4599081f7426..ecdeb1a0da9c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_version.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_version.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,9 +37,14 @@ message DatasetVersion { }; // Output only. Identifier. The resource name of the DatasetVersion. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` string name = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.field_behavior) = IDENTIFIER + (google.api.field_behavior) = IDENTIFIER, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/DatasetVersion" + } ]; // Output only. Timestamp when this DatasetVersion was created. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/evaluation_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/evaluation_service.proto index f4a30cec634a..f015bc4194bf 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/evaluation_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/evaluation_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -24,6 +24,8 @@ import "google/cloud/aiplatform/v1beta1/content.proto"; import "google/cloud/aiplatform/v1beta1/io.proto"; import "google/cloud/aiplatform/v1beta1/operation.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/struct.proto"; +import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; @@ -45,6 +47,7 @@ service EvaluationService { option (google.api.http) = { post: "/v1beta1/{location=projects/*/locations/*}:evaluateInstances" body: "*" + additional_bindings { post: "/v1beta1:evaluateInstances" body: "*" } }; } @@ -54,6 +57,7 @@ service EvaluationService { option (google.api.http) = { post: "/v1beta1/{location=projects/*/locations/*}:evaluateDataset" body: "*" + additional_bindings { post: "/v1beta1:evaluateDataset" body: "*" } }; option (google.longrunning.operation_info) = { response_type: "EvaluateDatasetResponse" @@ -83,18 +87,18 @@ message EvaluateDatasetOperationMetadata { GenericOperationMetadata generic_metadata = 1; } -// Response in LRO for EvaluationService.EvaluateDataset. +// The results from an evaluation run performed by the EvaluationService. message EvaluateDatasetResponse { // Output only. Aggregation statistics derived from results of - // EvaluationService.EvaluateDataset. + // EvaluationService. AggregationOutput aggregation_output = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Output info for EvaluationService.EvaluateDataset. + // Output only. Output info for EvaluationService. OutputInfo output_info = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } -// Describes the info for output of EvaluationService.EvaluateDataset. +// Describes the info for output of EvaluationService. message OutputInfo { // The output location into which evaluation output is written. oneof output_location { @@ -172,9 +176,10 @@ message OutputConfig { } } -// The metric used for dataset level evaluation. +// The metric used for running evaluations. message Metric { - // The aggregation metrics supported by EvaluationService.EvaluateDataset. + // The per-metric statistics on evaluation results supported by + // `EvaluationService.EvaluateDataset`. enum AggregationMetric { // Unspecified aggregation metric. AGGREGATION_METRIC_UNSPECIFIED = 0; @@ -210,8 +215,18 @@ message Metric { PERCENTILE_P99 = 10; } - // The metric spec used for evaluation. + // The spec for the metric. + // It would be either a pre-defined metric, or a inline metric spec. oneof metric_spec { + // The spec for a pre-defined metric. + PredefinedMetricSpec predefined_metric_spec = 8; + + // Spec for a computation based metric. + ComputationBasedMetricSpec computation_based_metric_spec = 9; + + // Spec for an LLM based metric. + LLMBasedMetricSpec llm_based_metric_spec = 10; + // Spec for pointwise metric. PointwiseMetricSpec pointwise_metric_spec = 2; @@ -511,6 +526,92 @@ message EvaluateInstancesResponse { RubricBasedInstructionFollowingResult rubric_based_instruction_following_result = 38; } + + // Metric results for each instance. + // The order of the metric results is guaranteed to be the same as the order + // of the instances in the request. + repeated MetricResult metric_results = 43; +} + +// Result for a single metric on a single instance. +message MetricResult { + // Output only. The score for the metric. + // Please refer to each metric's documentation for the meaning of the score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The explanation for the metric result. + optional string explanation = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The error status for the metric result. + optional google.rpc.Status error = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The spec for a pre-defined metric. +message PredefinedMetricSpec { + // Required. The name of a pre-defined metric, such as + // "instruction_following_v1" or "text_quality_v1". + string metric_spec_name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The parameters needed to run the pre-defined metric. + google.protobuf.Struct metric_spec_parameters = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Specification for a computation based metric. +message ComputationBasedMetricSpec { + // Types of computation based metrics. + enum ComputationBasedMetricType { + // Unspecified computation based metric type. + COMPUTATION_BASED_METRIC_TYPE_UNSPECIFIED = 0; + + // Exact match metric. + EXACT_MATCH = 1; + + // BLEU metric. + BLEU = 2; + + // ROUGE metric. + ROUGE = 3; + } + + // Required. The type of the computation based metric. + optional ComputationBasedMetricType type = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A map of parameters for the metric, e.g. {"rouge_type": + // "rougeL"}. + optional google.protobuf.Struct parameters = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Specification for an LLM based metric. +message LLMBasedMetricSpec { + // Source of the rubrics to be used for evaluation. + oneof rubrics_source { + // Use a pre-defined group of rubrics associated with the input. + // Refers to a key in the rubric_groups map of EvaluationInstance. + string rubric_group_key = 4; + + // Dynamically generate rubrics using a predefined spec. + PredefinedMetricSpec predefined_rubric_generation_spec = 6; + } + + // Required. Template for the prompt sent to the judge model. + optional string metric_prompt_template = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. System instructions for the judge model. + optional string system_instruction = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional configuration for the judge LLM (Autorater). + optional AutoraterConfig judge_autorater_config = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional additional configuration for the metric. + optional google.protobuf.Struct additional_config = 7 + [(google.api.field_behavior) = OPTIONAL]; } // Input for exact match metric. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/io.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/io.proto index eb34506f2dd4..3b85f235571d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/io.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/io.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/api_auth.proto"; import "google/protobuf/timestamp.proto"; @@ -82,6 +83,30 @@ message BigQueryDestination { string output_uri = 1 [(google.api.field_behavior) = REQUIRED]; } +// The Vertex Multimodal Dataset for the input content. +message VertexMultimodalDatasetSource { + // Required. The resource name of the Vertex Dataset. + // Format: `projects/{project}/locations/{location}/datasets/{dataset}` + string dataset_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Dataset" + } + ]; +} + +// The details for a Vertex Multimodal Dataset output. +message VertexMultimodalDatasetDestination { + // Optional. The destination of the underlying BigQuery table that will be + // created for the output Multimodal Dataset. If not specified, the BigQuery + // table will be created in a default BigQuery dataset. + BigQueryDestination bigquery_destination = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Display name of the output dataset. + string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; +} + // The storage details for CSV output content. message CsvDestination { // Required. Google Cloud Storage location. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schedule.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schedule.proto index c333d0b4af79..79f5aa32f60e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schedule.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schedule.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -164,6 +164,14 @@ message Schedule { // execution of the operations/jobs created by the requests (if applicable). int64 max_concurrent_run_count = 11 [(google.api.field_behavior) = REQUIRED]; + // Optional. Specifies the maximum number of active runs that can be executed + // concurrently for this Schedule. This limits the number of runs that can be + // in a non-terminal state at the same time. + // Currently, this field is only supported for requests of type + // CreatePipelineJobRequest. + int64 max_concurrent_active_run_count = 21 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. Whether new scheduled runs can be queued when max_concurrent_runs // limit is reached. If set to true, new runs will be queued instead of // skipped. Default to false. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_data_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_data_service.proto index 914e9b5108d4..da2f9f6bfa25 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_data_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_data_service.proto @@ -257,6 +257,10 @@ message DeleteRagCorpusRequest { // deleted. Otherwise, the request will only work if the RagCorpus has no // RagFiles. bool force = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set to true, any errors generated by external vector database + // during the deletion will be ignored. The default value is false. + bool force_delete = 3 [(google.api.field_behavior) = OPTIONAL]; } // Request message for diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragdataservice/deleteragcorpus/AsyncDeleteRagCorpus.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragdataservice/deleteragcorpus/AsyncDeleteRagCorpus.java index 4ddc19d9b7e5..17eaa5dc843c 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragdataservice/deleteragcorpus/AsyncDeleteRagCorpus.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragdataservice/deleteragcorpus/AsyncDeleteRagCorpus.java @@ -41,6 +41,7 @@ public static void asyncDeleteRagCorpus() throws Exception { DeleteRagCorpusRequest.newBuilder() .setName(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString()) .setForce(true) + .setForceDelete(true) .build(); ApiFuture future = vertexRagDataServiceClient.deleteRagCorpusCallable().futureCall(request); diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragdataservice/deleteragcorpus/AsyncDeleteRagCorpusLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragdataservice/deleteragcorpus/AsyncDeleteRagCorpusLRO.java index e05b816eab8a..c6dafec91d08 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragdataservice/deleteragcorpus/AsyncDeleteRagCorpusLRO.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragdataservice/deleteragcorpus/AsyncDeleteRagCorpusLRO.java @@ -42,6 +42,7 @@ public static void asyncDeleteRagCorpusLRO() throws Exception { DeleteRagCorpusRequest.newBuilder() .setName(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString()) .setForce(true) + .setForceDelete(true) .build(); OperationFuture future = vertexRagDataServiceClient.deleteRagCorpusOperationCallable().futureCall(request); diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragdataservice/deleteragcorpus/SyncDeleteRagCorpus.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragdataservice/deleteragcorpus/SyncDeleteRagCorpus.java index f482f6eec897..8688bd23b4ff 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragdataservice/deleteragcorpus/SyncDeleteRagCorpus.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragdataservice/deleteragcorpus/SyncDeleteRagCorpus.java @@ -40,6 +40,7 @@ public static void syncDeleteRagCorpus() throws Exception { DeleteRagCorpusRequest.newBuilder() .setName(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString()) .setForce(true) + .setForceDelete(true) .build(); vertexRagDataServiceClient.deleteRagCorpusAsync(request).get(); } diff --git a/java-alloydb-connectors/README.md b/java-alloydb-connectors/README.md index be297cb2e0bf..765194825729 100644 --- a/java-alloydb-connectors/README.md +++ b/java-alloydb-connectors/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-alloydb-connectors - 0.60.0 + 0.61.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.60.0' +implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.61.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.60.0" +libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.61.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-alloydb-connectors/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-alloydb-connectors.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.60.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.61.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-alloydb-connectors/google-cloud-alloydb-connectors-bom/pom.xml b/java-alloydb-connectors/google-cloud-alloydb-connectors-bom/pom.xml index b69543d76d67..47e5544a7cc0 100644 --- a/java-alloydb-connectors/google-cloud-alloydb-connectors-bom/pom.xml +++ b/java-alloydb-connectors/google-cloud-alloydb-connectors-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-alloydb-connectors-bom - 0.62.0-SNAPSHOT + 0.63.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,22 +27,22 @@ com.google.cloud google-cloud-alloydb-connectors - 0.62.0-SNAPSHOT + 0.63.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1alpha - 0.62.0-SNAPSHOT + 0.63.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1beta - 0.62.0-SNAPSHOT + 0.63.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1 - 0.62.0-SNAPSHOT + 0.63.0
    diff --git a/java-alloydb-connectors/google-cloud-alloydb-connectors/pom.xml b/java-alloydb-connectors/google-cloud-alloydb-connectors/pom.xml index ecd8ec693422..00f9ca9e292a 100644 --- a/java-alloydb-connectors/google-cloud-alloydb-connectors/pom.xml +++ b/java-alloydb-connectors/google-cloud-alloydb-connectors/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-alloydb-connectors - 0.62.0-SNAPSHOT + 0.63.0 jar Google AlloyDB connectors AlloyDB connectors AlloyDB is a fully-managed, PostgreSQL-compatible database for demanding transactional workloads. It provides enterprise-grade performance and availability while maintaining 100% compatibility with open-source PostgreSQL. com.google.cloud google-cloud-alloydb-connectors-parent - 0.62.0-SNAPSHOT + 0.63.0 google-cloud-alloydb-connectors diff --git a/java-alloydb-connectors/pom.xml b/java-alloydb-connectors/pom.xml index ed9245aafa9b..1d3c145ca6bd 100644 --- a/java-alloydb-connectors/pom.xml +++ b/java-alloydb-connectors/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-alloydb-connectors-parent pom - 0.62.0-SNAPSHOT + 0.63.0 Google AlloyDB connectors Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,22 +29,22 @@ com.google.cloud google-cloud-alloydb-connectors - 0.62.0-SNAPSHOT + 0.63.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1 - 0.62.0-SNAPSHOT + 0.63.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1beta - 0.62.0-SNAPSHOT + 0.63.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1alpha - 0.62.0-SNAPSHOT + 0.63.0
    diff --git a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1/pom.xml b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1/pom.xml index 458ee47b2ee1..41b278dd48b7 100644 --- a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1/pom.xml +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1 - 0.62.0-SNAPSHOT + 0.63.0 proto-google-cloud-alloydb-connectors-v1 Proto library for google-cloud-alloydb-connectors com.google.cloud google-cloud-alloydb-connectors-parent - 0.62.0-SNAPSHOT + 0.63.0 diff --git a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/pom.xml b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/pom.xml index d3a73c1d3e54..6a1cd70bb258 100644 --- a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/pom.xml +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1alpha - 0.62.0-SNAPSHOT + 0.63.0 proto-google-cloud-alloydb-connectors-v1alpha Proto library for google-cloud-alloydb-connectors com.google.cloud google-cloud-alloydb-connectors-parent - 0.62.0-SNAPSHOT + 0.63.0 diff --git a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/pom.xml b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/pom.xml index 145cf8c096ce..487f7e9fb765 100644 --- a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/pom.xml +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1beta - 0.62.0-SNAPSHOT + 0.63.0 proto-google-cloud-alloydb-connectors-v1beta Proto library for google-cloud-alloydb-connectors com.google.cloud google-cloud-alloydb-connectors-parent - 0.62.0-SNAPSHOT + 0.63.0 diff --git a/java-alloydb/README.md b/java-alloydb/README.md index a6a53843fb3b..7e57a9d2043f 100644 --- a/java-alloydb/README.md +++ b/java-alloydb/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-alloydb - 0.71.0 + 0.72.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-alloydb:0.71.0' +implementation 'com.google.cloud:google-cloud-alloydb:0.72.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.71.0" +libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.72.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-alloydb/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-alloydb.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.71.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.72.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-alloydb/google-cloud-alloydb-bom/pom.xml b/java-alloydb/google-cloud-alloydb-bom/pom.xml index 3ceb05345886..3a33cb5e5e95 100644 --- a/java-alloydb/google-cloud-alloydb-bom/pom.xml +++ b/java-alloydb/google-cloud-alloydb-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-alloydb-bom - 0.73.0-SNAPSHOT + 0.74.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.cloud google-cloud-alloydb - 0.73.0-SNAPSHOT + 0.74.0 com.google.api.grpc grpc-google-cloud-alloydb-v1beta - 0.73.0-SNAPSHOT + 0.74.0 com.google.api.grpc grpc-google-cloud-alloydb-v1 - 0.73.0-SNAPSHOT + 0.74.0 com.google.api.grpc grpc-google-cloud-alloydb-v1alpha - 0.73.0-SNAPSHOT + 0.74.0 com.google.api.grpc proto-google-cloud-alloydb-v1 - 0.73.0-SNAPSHOT + 0.74.0 com.google.api.grpc proto-google-cloud-alloydb-v1beta - 0.73.0-SNAPSHOT + 0.74.0 com.google.api.grpc proto-google-cloud-alloydb-v1alpha - 0.73.0-SNAPSHOT + 0.74.0 diff --git a/java-alloydb/google-cloud-alloydb/pom.xml b/java-alloydb/google-cloud-alloydb/pom.xml index 0172be3cdb68..b99b7093e2ca 100644 --- a/java-alloydb/google-cloud-alloydb/pom.xml +++ b/java-alloydb/google-cloud-alloydb/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-alloydb - 0.73.0-SNAPSHOT + 0.74.0 jar Google AlloyDB AlloyDB AlloyDB is a fully managed, PostgreSQL-compatible database service with industry-leading performance, availability, and scale. com.google.cloud google-cloud-alloydb-parent - 0.73.0-SNAPSHOT + 0.74.0 google-cloud-alloydb diff --git a/java-alloydb/grpc-google-cloud-alloydb-v1/pom.xml b/java-alloydb/grpc-google-cloud-alloydb-v1/pom.xml index 9fac5a9ebc19..943ad52121b8 100644 --- a/java-alloydb/grpc-google-cloud-alloydb-v1/pom.xml +++ b/java-alloydb/grpc-google-cloud-alloydb-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-alloydb-v1 - 0.73.0-SNAPSHOT + 0.74.0 grpc-google-cloud-alloydb-v1 GRPC library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.73.0-SNAPSHOT + 0.74.0 diff --git a/java-alloydb/grpc-google-cloud-alloydb-v1alpha/pom.xml b/java-alloydb/grpc-google-cloud-alloydb-v1alpha/pom.xml index 2f1d597de061..0b93dca947f9 100644 --- a/java-alloydb/grpc-google-cloud-alloydb-v1alpha/pom.xml +++ b/java-alloydb/grpc-google-cloud-alloydb-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-alloydb-v1alpha - 0.73.0-SNAPSHOT + 0.74.0 grpc-google-cloud-alloydb-v1alpha GRPC library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.73.0-SNAPSHOT + 0.74.0 diff --git a/java-alloydb/grpc-google-cloud-alloydb-v1beta/pom.xml b/java-alloydb/grpc-google-cloud-alloydb-v1beta/pom.xml index 11634eb98808..34ed3355a1db 100644 --- a/java-alloydb/grpc-google-cloud-alloydb-v1beta/pom.xml +++ b/java-alloydb/grpc-google-cloud-alloydb-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-alloydb-v1beta - 0.73.0-SNAPSHOT + 0.74.0 grpc-google-cloud-alloydb-v1beta GRPC library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.73.0-SNAPSHOT + 0.74.0 diff --git a/java-alloydb/pom.xml b/java-alloydb/pom.xml index 8f07cfaa1d3c..fdf8e5e056a4 100644 --- a/java-alloydb/pom.xml +++ b/java-alloydb/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-alloydb-parent pom - 0.73.0-SNAPSHOT + 0.74.0 Google AlloyDB Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-alloydb - 0.73.0-SNAPSHOT + 0.74.0 com.google.api.grpc grpc-google-cloud-alloydb-v1beta - 0.73.0-SNAPSHOT + 0.74.0 com.google.api.grpc grpc-google-cloud-alloydb-v1 - 0.73.0-SNAPSHOT + 0.74.0 com.google.api.grpc grpc-google-cloud-alloydb-v1alpha - 0.73.0-SNAPSHOT + 0.74.0 com.google.api.grpc proto-google-cloud-alloydb-v1 - 0.73.0-SNAPSHOT + 0.74.0 com.google.api.grpc proto-google-cloud-alloydb-v1beta - 0.73.0-SNAPSHOT + 0.74.0 com.google.api.grpc proto-google-cloud-alloydb-v1alpha - 0.73.0-SNAPSHOT + 0.74.0 diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/pom.xml b/java-alloydb/proto-google-cloud-alloydb-v1/pom.xml index ffac6f682af6..3d768667999b 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/pom.xml +++ b/java-alloydb/proto-google-cloud-alloydb-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-v1 - 0.73.0-SNAPSHOT + 0.74.0 proto-google-cloud-alloydb-v1 Proto library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.73.0-SNAPSHOT + 0.74.0 diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/pom.xml b/java-alloydb/proto-google-cloud-alloydb-v1alpha/pom.xml index 6466e1e1e875..bb1ffd5fb46e 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/pom.xml +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-v1alpha - 0.73.0-SNAPSHOT + 0.74.0 proto-google-cloud-alloydb-v1alpha Proto library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.73.0-SNAPSHOT + 0.74.0 diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/pom.xml b/java-alloydb/proto-google-cloud-alloydb-v1beta/pom.xml index 2f8c9e4134c9..5e8f2ed3e5c4 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/pom.xml +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-v1beta - 0.73.0-SNAPSHOT + 0.74.0 proto-google-cloud-alloydb-v1beta Proto library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.73.0-SNAPSHOT + 0.74.0 diff --git a/java-analytics-admin/README.md b/java-analytics-admin/README.md index a228731b6a72..16e08d2ddbce 100644 --- a/java-analytics-admin/README.md +++ b/java-analytics-admin/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.analytics google-analytics-admin - 0.92.0 + 0.93.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-admin:0.92.0' +implementation 'com.google.analytics:google-analytics-admin:0.93.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.92.0" +libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.93.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-analytics-admin/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.92.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.93.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-analytics-admin/google-analytics-admin-bom/pom.xml b/java-analytics-admin/google-analytics-admin-bom/pom.xml index 0a68a4f9384a..377d7bc95e72 100644 --- a/java-analytics-admin/google-analytics-admin-bom/pom.xml +++ b/java-analytics-admin/google-analytics-admin-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.analytics google-analytics-admin-bom - 0.94.0-SNAPSHOT + 0.95.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.analytics google-analytics-admin - 0.94.0-SNAPSHOT + 0.95.0 com.google.api.grpc grpc-google-analytics-admin-v1alpha - 0.94.0-SNAPSHOT + 0.95.0 com.google.api.grpc grpc-google-analytics-admin-v1beta - 0.94.0-SNAPSHOT + 0.95.0 com.google.api.grpc proto-google-analytics-admin-v1alpha - 0.94.0-SNAPSHOT + 0.95.0 com.google.api.grpc proto-google-analytics-admin-v1beta - 0.94.0-SNAPSHOT + 0.95.0 diff --git a/java-analytics-admin/google-analytics-admin/pom.xml b/java-analytics-admin/google-analytics-admin/pom.xml index b8796dfeff5e..6c05d2ef1eab 100644 --- a/java-analytics-admin/google-analytics-admin/pom.xml +++ b/java-analytics-admin/google-analytics-admin/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.analytics google-analytics-admin - 0.94.0-SNAPSHOT + 0.95.0 jar Google Analytics Admin allows you to manage Google Analytics accounts and properties. com.google.analytics google-analytics-admin-parent - 0.94.0-SNAPSHOT + 0.95.0 google-analytics-admin diff --git a/java-analytics-admin/grpc-google-analytics-admin-v1alpha/pom.xml b/java-analytics-admin/grpc-google-analytics-admin-v1alpha/pom.xml index 51b62ed1fe16..0c868fe9633c 100644 --- a/java-analytics-admin/grpc-google-analytics-admin-v1alpha/pom.xml +++ b/java-analytics-admin/grpc-google-analytics-admin-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-admin-v1alpha - 0.94.0-SNAPSHOT + 0.95.0 grpc-google-analytics-admin-v1alpha GRPC library for grpc-google-analytics-admin-v1alpha com.google.analytics google-analytics-admin-parent - 0.94.0-SNAPSHOT + 0.95.0 diff --git a/java-analytics-admin/grpc-google-analytics-admin-v1beta/pom.xml b/java-analytics-admin/grpc-google-analytics-admin-v1beta/pom.xml index 268d9c0c9a23..3b0fc5befe54 100644 --- a/java-analytics-admin/grpc-google-analytics-admin-v1beta/pom.xml +++ b/java-analytics-admin/grpc-google-analytics-admin-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-admin-v1beta - 0.94.0-SNAPSHOT + 0.95.0 grpc-google-analytics-admin-v1beta GRPC library for google-analytics-admin com.google.analytics google-analytics-admin-parent - 0.94.0-SNAPSHOT + 0.95.0 diff --git a/java-analytics-admin/pom.xml b/java-analytics-admin/pom.xml index a6927dfe9804..425b4d05ec71 100644 --- a/java-analytics-admin/pom.xml +++ b/java-analytics-admin/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-admin-parent pom - 0.94.0-SNAPSHOT + 0.95.0 Google Analytics Admin Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.analytics google-analytics-admin - 0.94.0-SNAPSHOT + 0.95.0 com.google.api.grpc proto-google-analytics-admin-v1beta - 0.94.0-SNAPSHOT + 0.95.0 com.google.api.grpc grpc-google-analytics-admin-v1beta - 0.94.0-SNAPSHOT + 0.95.0 com.google.api.grpc proto-google-analytics-admin-v1alpha - 0.94.0-SNAPSHOT + 0.95.0 com.google.api.grpc grpc-google-analytics-admin-v1alpha - 0.94.0-SNAPSHOT + 0.95.0 diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/pom.xml b/java-analytics-admin/proto-google-analytics-admin-v1alpha/pom.xml index 582793db5119..803b76109358 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/pom.xml +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-admin-v1alpha - 0.94.0-SNAPSHOT + 0.95.0 proto-google-analytics-admin-v1alpha PROTO library for proto-google-analytics-admin-v1alpha com.google.analytics google-analytics-admin-parent - 0.94.0-SNAPSHOT + 0.95.0 diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/pom.xml b/java-analytics-admin/proto-google-analytics-admin-v1beta/pom.xml index efb861c37897..f443867490ca 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/pom.xml +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-admin-v1beta - 0.94.0-SNAPSHOT + 0.95.0 proto-google-analytics-admin-v1beta Proto library for google-analytics-admin com.google.analytics google-analytics-admin-parent - 0.94.0-SNAPSHOT + 0.95.0 diff --git a/java-analytics-data/README.md b/java-analytics-data/README.md index 21aa7a05048b..1f1fa61ca2ef 100644 --- a/java-analytics-data/README.md +++ b/java-analytics-data/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.analytics google-analytics-data - 0.93.0 + 0.94.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.93.0' +implementation 'com.google.analytics:google-analytics-data:0.94.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.93.0" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.94.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-analytics-data/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-data.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.93.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.94.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-analytics-data/google-analytics-data-bom/pom.xml b/java-analytics-data/google-analytics-data-bom/pom.xml index 70230e512132..3dec719f941d 100644 --- a/java-analytics-data/google-analytics-data-bom/pom.xml +++ b/java-analytics-data/google-analytics-data-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.95.0-SNAPSHOT + 0.96.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.analytics google-analytics-data - 0.95.0-SNAPSHOT + 0.96.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.95.0-SNAPSHOT + 0.96.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.95.0-SNAPSHOT + 0.96.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.95.0-SNAPSHOT + 0.96.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.95.0-SNAPSHOT + 0.96.0 diff --git a/java-analytics-data/google-analytics-data/pom.xml b/java-analytics-data/google-analytics-data/pom.xml index ed2a8ac90d47..84ad168083f5 100644 --- a/java-analytics-data/google-analytics-data/pom.xml +++ b/java-analytics-data/google-analytics-data/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.analytics google-analytics-data - 0.95.0-SNAPSHOT + 0.96.0 jar Google Analytics Data provides programmatic methods to access report data in Google Analytics App+Web properties. com.google.analytics google-analytics-data-parent - 0.95.0-SNAPSHOT + 0.96.0 google-analytics-data diff --git a/java-analytics-data/grpc-google-analytics-data-v1alpha/pom.xml b/java-analytics-data/grpc-google-analytics-data-v1alpha/pom.xml index 402842df4003..373de4f641f7 100644 --- a/java-analytics-data/grpc-google-analytics-data-v1alpha/pom.xml +++ b/java-analytics-data/grpc-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.95.0-SNAPSHOT + 0.96.0 grpc-google-analytics-data-v1alpha GRPC library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.95.0-SNAPSHOT + 0.96.0 diff --git a/java-analytics-data/grpc-google-analytics-data-v1beta/pom.xml b/java-analytics-data/grpc-google-analytics-data-v1beta/pom.xml index 01843f3dde04..52a60989d3c9 100644 --- a/java-analytics-data/grpc-google-analytics-data-v1beta/pom.xml +++ b/java-analytics-data/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.95.0-SNAPSHOT + 0.96.0 grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.95.0-SNAPSHOT + 0.96.0 diff --git a/java-analytics-data/pom.xml b/java-analytics-data/pom.xml index efeb3777d94f..32b67cf51db9 100644 --- a/java-analytics-data/pom.xml +++ b/java-analytics-data/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.95.0-SNAPSHOT + 0.96.0 Google Analytics Data Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.analytics google-analytics-data - 0.95.0-SNAPSHOT + 0.96.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.95.0-SNAPSHOT + 0.96.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.95.0-SNAPSHOT + 0.96.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.95.0-SNAPSHOT + 0.96.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.95.0-SNAPSHOT + 0.96.0 diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/pom.xml b/java-analytics-data/proto-google-analytics-data-v1alpha/pom.xml index 495b263cade3..8ac5780bcccd 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/pom.xml +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.95.0-SNAPSHOT + 0.96.0 proto-google-analytics-data-v1alpha Proto library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.95.0-SNAPSHOT + 0.96.0 diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/pom.xml b/java-analytics-data/proto-google-analytics-data-v1beta/pom.xml index a53e4cb20ec8..f0f6c87c919d 100644 --- a/java-analytics-data/proto-google-analytics-data-v1beta/pom.xml +++ b/java-analytics-data/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.95.0-SNAPSHOT + 0.96.0 proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.95.0-SNAPSHOT + 0.96.0 diff --git a/java-analyticshub/README.md b/java-analyticshub/README.md index 2ff341986b8c..5af9cc3c1787 100644 --- a/java-analyticshub/README.md +++ b/java-analyticshub/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-analyticshub - 0.79.0 + 0.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-analyticshub:0.79.0' +implementation 'com.google.cloud:google-cloud-analyticshub:0.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.80.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-analyticshub/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-analyticshub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.80.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-analyticshub/google-cloud-analyticshub-bom/pom.xml b/java-analyticshub/google-cloud-analyticshub-bom/pom.xml index c21bc0832d3d..8dbc35fea311 100644 --- a/java-analyticshub/google-cloud-analyticshub-bom/pom.xml +++ b/java-analyticshub/google-cloud-analyticshub-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-analyticshub-bom - 0.81.0-SNAPSHOT + 0.82.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-analyticshub - 0.81.0-SNAPSHOT + 0.82.0 com.google.api.grpc grpc-google-cloud-analyticshub-v1 - 0.81.0-SNAPSHOT + 0.82.0 com.google.api.grpc proto-google-cloud-analyticshub-v1 - 0.81.0-SNAPSHOT + 0.82.0 diff --git a/java-analyticshub/google-cloud-analyticshub/pom.xml b/java-analyticshub/google-cloud-analyticshub/pom.xml index d9a9dc462311..a2c84c73adce 100644 --- a/java-analyticshub/google-cloud-analyticshub/pom.xml +++ b/java-analyticshub/google-cloud-analyticshub/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-analyticshub - 0.81.0-SNAPSHOT + 0.82.0 jar Google Analytics Hub API Analytics Hub API TBD com.google.cloud google-cloud-analyticshub-parent - 0.81.0-SNAPSHOT + 0.82.0 google-cloud-analyticshub diff --git a/java-analyticshub/grpc-google-cloud-analyticshub-v1/pom.xml b/java-analyticshub/grpc-google-cloud-analyticshub-v1/pom.xml index 45b7ad617446..9370267a5867 100644 --- a/java-analyticshub/grpc-google-cloud-analyticshub-v1/pom.xml +++ b/java-analyticshub/grpc-google-cloud-analyticshub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-analyticshub-v1 - 0.81.0-SNAPSHOT + 0.82.0 grpc-google-cloud-analyticshub-v1 GRPC library for google-cloud-analyticshub com.google.cloud google-cloud-analyticshub-parent - 0.81.0-SNAPSHOT + 0.82.0 diff --git a/java-analyticshub/pom.xml b/java-analyticshub/pom.xml index eed47051c741..5dabd8bbb59b 100644 --- a/java-analyticshub/pom.xml +++ b/java-analyticshub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-analyticshub-parent pom - 0.81.0-SNAPSHOT + 0.82.0 Google Analytics Hub API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-analyticshub - 0.81.0-SNAPSHOT + 0.82.0 com.google.api.grpc grpc-google-cloud-analyticshub-v1 - 0.81.0-SNAPSHOT + 0.82.0 com.google.api.grpc proto-google-cloud-analyticshub-v1 - 0.81.0-SNAPSHOT + 0.82.0 diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/pom.xml b/java-analyticshub/proto-google-cloud-analyticshub-v1/pom.xml index 2132f8b1cefd..a6fac1ff065e 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/pom.xml +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-analyticshub-v1 - 0.81.0-SNAPSHOT + 0.82.0 proto-google-cloud-analyticshub-v1 Proto library for google-cloud-analyticshub com.google.cloud google-cloud-analyticshub-parent - 0.81.0-SNAPSHOT + 0.82.0 diff --git a/java-api-gateway/README.md b/java-api-gateway/README.md index 83bca2681114..ea91809547c4 100644 --- a/java-api-gateway/README.md +++ b/java-api-gateway/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-api-gateway - 2.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-api-gateway:2.82.0' +implementation 'com.google.cloud:google-cloud-api-gateway:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-api-gateway/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-api-gateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-api-gateway/2.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-api-gateway/2.83.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-api-gateway/google-cloud-api-gateway-bom/pom.xml b/java-api-gateway/google-cloud-api-gateway-bom/pom.xml index 4dd9715d73cb..bdc6ad481111 100644 --- a/java-api-gateway/google-cloud-api-gateway-bom/pom.xml +++ b/java-api-gateway/google-cloud-api-gateway-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-api-gateway-bom - 2.84.0-SNAPSHOT + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-api-gateway - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc grpc-google-cloud-api-gateway-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc proto-google-cloud-api-gateway-v1 - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-api-gateway/google-cloud-api-gateway/pom.xml b/java-api-gateway/google-cloud-api-gateway/pom.xml index 8f5bf589f563..0c946b643fba 100644 --- a/java-api-gateway/google-cloud-api-gateway/pom.xml +++ b/java-api-gateway/google-cloud-api-gateway/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-api-gateway - 2.84.0-SNAPSHOT + 2.85.0 jar Google API Gateway API Gateway enables you to provide secure access to your backend services through a well-defined REST API that is consistent across all of your services, regardless of the service implementation. Clients consume your REST APIS to implement standalone apps for a mobile device or tablet, through apps running in a browser, or through any other type of app that can make a request to an HTTP endpoint. com.google.cloud google-cloud-api-gateway-parent - 2.84.0-SNAPSHOT + 2.85.0 google-cloud-api-gateway diff --git a/java-api-gateway/grpc-google-cloud-api-gateway-v1/pom.xml b/java-api-gateway/grpc-google-cloud-api-gateway-v1/pom.xml index 7e7cab8fbbe3..81c77cca4101 100644 --- a/java-api-gateway/grpc-google-cloud-api-gateway-v1/pom.xml +++ b/java-api-gateway/grpc-google-cloud-api-gateway-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-api-gateway-v1 - 2.84.0-SNAPSHOT + 2.85.0 grpc-google-cloud-api-gateway-v1 GRPC library for google-cloud-api-gateway com.google.cloud google-cloud-api-gateway-parent - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-api-gateway/pom.xml b/java-api-gateway/pom.xml index 6c1c331737c6..90edff3da386 100644 --- a/java-api-gateway/pom.xml +++ b/java-api-gateway/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-api-gateway-parent pom - 2.84.0-SNAPSHOT + 2.85.0 Google API Gateway Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-api-gateway - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc grpc-google-cloud-api-gateway-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc proto-google-cloud-api-gateway-v1 - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-api-gateway/proto-google-cloud-api-gateway-v1/pom.xml b/java-api-gateway/proto-google-cloud-api-gateway-v1/pom.xml index 6213fd5021db..ce569e67b24c 100644 --- a/java-api-gateway/proto-google-cloud-api-gateway-v1/pom.xml +++ b/java-api-gateway/proto-google-cloud-api-gateway-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-api-gateway-v1 - 2.84.0-SNAPSHOT + 2.85.0 proto-google-cloud-api-gateway-v1 Proto library for google-cloud-api-gateway com.google.cloud google-cloud-api-gateway-parent - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-apigee-connect/README.md b/java-apigee-connect/README.md index 009cd4883470..8534974f0371 100644 --- a/java-apigee-connect/README.md +++ b/java-apigee-connect/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apigee-connect - 2.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apigee-connect:2.82.0' +implementation 'com.google.cloud:google-cloud-apigee-connect:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apigee-connect/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apigee-connect.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-connect/2.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-connect/2.83.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apigee-connect/google-cloud-apigee-connect-bom/pom.xml b/java-apigee-connect/google-cloud-apigee-connect-bom/pom.xml index bf285efbefa1..452d1fabe131 100644 --- a/java-apigee-connect/google-cloud-apigee-connect-bom/pom.xml +++ b/java-apigee-connect/google-cloud-apigee-connect-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-apigee-connect-bom - 2.84.0-SNAPSHOT + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-apigee-connect - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc grpc-google-cloud-apigee-connect-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc proto-google-cloud-apigee-connect-v1 - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-apigee-connect/google-cloud-apigee-connect/pom.xml b/java-apigee-connect/google-cloud-apigee-connect/pom.xml index ffe0b0ef5f0b..dcc0bdb97f80 100644 --- a/java-apigee-connect/google-cloud-apigee-connect/pom.xml +++ b/java-apigee-connect/google-cloud-apigee-connect/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-apigee-connect - 2.84.0-SNAPSHOT + 2.85.0 jar Google Apigee Connect Apigee Connect allows the Apigee hybrid management plane to connect securely to the MART service in the runtime plane without requiring you to expose the MART endpoint on the internet. com.google.cloud google-cloud-apigee-connect-parent - 2.84.0-SNAPSHOT + 2.85.0 google-cloud-apigee-connect diff --git a/java-apigee-connect/grpc-google-cloud-apigee-connect-v1/pom.xml b/java-apigee-connect/grpc-google-cloud-apigee-connect-v1/pom.xml index 1e4ae23b79ec..97960f8fa5a5 100644 --- a/java-apigee-connect/grpc-google-cloud-apigee-connect-v1/pom.xml +++ b/java-apigee-connect/grpc-google-cloud-apigee-connect-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-apigee-connect-v1 - 2.84.0-SNAPSHOT + 2.85.0 grpc-google-cloud-apigee-connect-v1 GRPC library for google-cloud-apigee-connect com.google.cloud google-cloud-apigee-connect-parent - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-apigee-connect/pom.xml b/java-apigee-connect/pom.xml index cd1afd8228cd..59b59c4574b6 100644 --- a/java-apigee-connect/pom.xml +++ b/java-apigee-connect/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-apigee-connect-parent pom - 2.84.0-SNAPSHOT + 2.85.0 Google Apigee Connect Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-apigee-connect - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc grpc-google-cloud-apigee-connect-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc proto-google-cloud-apigee-connect-v1 - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-apigee-connect/proto-google-cloud-apigee-connect-v1/pom.xml b/java-apigee-connect/proto-google-cloud-apigee-connect-v1/pom.xml index 7708e296c2db..5c995711062d 100644 --- a/java-apigee-connect/proto-google-cloud-apigee-connect-v1/pom.xml +++ b/java-apigee-connect/proto-google-cloud-apigee-connect-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-apigee-connect-v1 - 2.84.0-SNAPSHOT + 2.85.0 proto-google-cloud-apigee-connect-v1 Proto library for google-cloud-apigee-connect com.google.cloud google-cloud-apigee-connect-parent - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-apigee-registry/README.md b/java-apigee-registry/README.md index 2e4ef42436c3..9e12c6fd6ecf 100644 --- a/java-apigee-registry/README.md +++ b/java-apigee-registry/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apigee-registry - 0.82.0 + 0.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apigee-registry:0.82.0' +implementation 'com.google.cloud:google-cloud-apigee-registry:0.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apigee-registry" % "0.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apigee-registry" % "0.83.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apigee-registry/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apigee-registry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-registry/0.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-registry/0.83.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apigee-registry/google-cloud-apigee-registry-bom/pom.xml b/java-apigee-registry/google-cloud-apigee-registry-bom/pom.xml index 65b240f39245..696c8f88e3da 100644 --- a/java-apigee-registry/google-cloud-apigee-registry-bom/pom.xml +++ b/java-apigee-registry/google-cloud-apigee-registry-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-apigee-registry-bom - 0.84.0-SNAPSHOT + 0.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-apigee-registry - 0.84.0-SNAPSHOT + 0.85.0 com.google.api.grpc grpc-google-cloud-apigee-registry-v1 - 0.84.0-SNAPSHOT + 0.85.0 com.google.api.grpc proto-google-cloud-apigee-registry-v1 - 0.84.0-SNAPSHOT + 0.85.0 diff --git a/java-apigee-registry/google-cloud-apigee-registry/pom.xml b/java-apigee-registry/google-cloud-apigee-registry/pom.xml index f00dd83c6ebd..7fdfb2a02db2 100644 --- a/java-apigee-registry/google-cloud-apigee-registry/pom.xml +++ b/java-apigee-registry/google-cloud-apigee-registry/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-apigee-registry - 0.84.0-SNAPSHOT + 0.85.0 jar Google Registry API Registry API allows teams to upload and share machine-readable descriptions of APIs that are in use and in development. com.google.cloud google-cloud-apigee-registry-parent - 0.84.0-SNAPSHOT + 0.85.0 google-cloud-apigee-registry diff --git a/java-apigee-registry/grpc-google-cloud-apigee-registry-v1/pom.xml b/java-apigee-registry/grpc-google-cloud-apigee-registry-v1/pom.xml index 97280f62c2d9..0ac00986fe93 100644 --- a/java-apigee-registry/grpc-google-cloud-apigee-registry-v1/pom.xml +++ b/java-apigee-registry/grpc-google-cloud-apigee-registry-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-apigee-registry-v1 - 0.84.0-SNAPSHOT + 0.85.0 grpc-google-cloud-apigee-registry-v1 GRPC library for google-cloud-apigee-registry com.google.cloud google-cloud-apigee-registry-parent - 0.84.0-SNAPSHOT + 0.85.0 diff --git a/java-apigee-registry/pom.xml b/java-apigee-registry/pom.xml index feb072a1620a..920384ed8971 100644 --- a/java-apigee-registry/pom.xml +++ b/java-apigee-registry/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-apigee-registry-parent pom - 0.84.0-SNAPSHOT + 0.85.0 Google Registry API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-apigee-registry - 0.84.0-SNAPSHOT + 0.85.0 com.google.api.grpc grpc-google-cloud-apigee-registry-v1 - 0.84.0-SNAPSHOT + 0.85.0 com.google.api.grpc proto-google-cloud-apigee-registry-v1 - 0.84.0-SNAPSHOT + 0.85.0 diff --git a/java-apigee-registry/proto-google-cloud-apigee-registry-v1/pom.xml b/java-apigee-registry/proto-google-cloud-apigee-registry-v1/pom.xml index dfca9959ece2..5c04643f55cb 100644 --- a/java-apigee-registry/proto-google-cloud-apigee-registry-v1/pom.xml +++ b/java-apigee-registry/proto-google-cloud-apigee-registry-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-apigee-registry-v1 - 0.84.0-SNAPSHOT + 0.85.0 proto-google-cloud-apigee-registry-v1 Proto library for google-cloud-apigee-registry com.google.cloud google-cloud-apigee-registry-parent - 0.84.0-SNAPSHOT + 0.85.0 diff --git a/java-apihub/README.md b/java-apihub/README.md index 226e33f00b9f..4d9f1c7bb627 100644 --- a/java-apihub/README.md +++ b/java-apihub/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apihub - 0.35.0 + 0.36.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apihub:0.35.0' +implementation 'com.google.cloud:google-cloud-apihub:0.36.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "0.35.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "0.36.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apihub/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apihub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apihub/0.35.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apihub/0.36.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apihub/google-cloud-apihub-bom/pom.xml b/java-apihub/google-cloud-apihub-bom/pom.xml index 3db4aa5f1e80..fe44a3684507 100644 --- a/java-apihub/google-cloud-apihub-bom/pom.xml +++ b/java-apihub/google-cloud-apihub-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-apihub-bom - 0.37.0-SNAPSHOT + 0.38.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,12 +26,12 @@ com.google.cloud google-cloud-apihub - 0.37.0-SNAPSHOT + 0.38.0 com.google.api.grpc proto-google-cloud-apihub-v1 - 0.37.0-SNAPSHOT + 0.38.0 diff --git a/java-apihub/google-cloud-apihub/pom.xml b/java-apihub/google-cloud-apihub/pom.xml index 2431bb58b4ee..d1040d7539fa 100644 --- a/java-apihub/google-cloud-apihub/pom.xml +++ b/java-apihub/google-cloud-apihub/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-apihub - 0.37.0-SNAPSHOT + 0.38.0 jar Google API hub API API hub API API hub lets you consolidate and organize information about all of the APIs of interest to your organization. API hub lets you capture critical information about APIs that allows developers to discover and evaluate them easily and leverage the work of other teams wherever possible. API platform teams can use API hub to have visibility into and manage their portfolio of APIs. com.google.cloud google-cloud-apihub-parent - 0.37.0-SNAPSHOT + 0.38.0 google-cloud-apihub diff --git a/java-apihub/pom.xml b/java-apihub/pom.xml index bdacb48aa05d..15c03ec3718c 100644 --- a/java-apihub/pom.xml +++ b/java-apihub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-apihub-parent pom - 0.37.0-SNAPSHOT + 0.38.0 Google API hub API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,12 +29,12 @@ com.google.cloud google-cloud-apihub - 0.37.0-SNAPSHOT + 0.38.0 com.google.api.grpc proto-google-cloud-apihub-v1 - 0.37.0-SNAPSHOT + 0.38.0 diff --git a/java-apihub/proto-google-cloud-apihub-v1/pom.xml b/java-apihub/proto-google-cloud-apihub-v1/pom.xml index 3af260e0ac31..450e47490f85 100644 --- a/java-apihub/proto-google-cloud-apihub-v1/pom.xml +++ b/java-apihub/proto-google-cloud-apihub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-apihub-v1 - 0.37.0-SNAPSHOT + 0.38.0 proto-google-cloud-apihub-v1 Proto library for google-cloud-apihub com.google.cloud google-cloud-apihub-parent - 0.37.0-SNAPSHOT + 0.38.0 diff --git a/java-apikeys/README.md b/java-apikeys/README.md index fa971b067faf..adaf0fdc7ceb 100644 --- a/java-apikeys/README.md +++ b/java-apikeys/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apikeys - 0.80.0 + 0.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apikeys:0.80.0' +implementation 'com.google.cloud:google-cloud-apikeys:0.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.81.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apikeys/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apikeys.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apikeys/0.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apikeys/0.81.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apikeys/google-cloud-apikeys-bom/pom.xml b/java-apikeys/google-cloud-apikeys-bom/pom.xml index e6d70900cf61..ebe7ebb123b8 100644 --- a/java-apikeys/google-cloud-apikeys-bom/pom.xml +++ b/java-apikeys/google-cloud-apikeys-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-apikeys-bom - 0.82.0-SNAPSHOT + 0.83.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-apikeys - 0.82.0-SNAPSHOT + 0.83.0 com.google.api.grpc grpc-google-cloud-apikeys-v2 - 0.82.0-SNAPSHOT + 0.83.0 com.google.api.grpc proto-google-cloud-apikeys-v2 - 0.82.0-SNAPSHOT + 0.83.0 diff --git a/java-apikeys/google-cloud-apikeys/pom.xml b/java-apikeys/google-cloud-apikeys/pom.xml index 131e8654a4e2..b6f3bafdb4b9 100644 --- a/java-apikeys/google-cloud-apikeys/pom.xml +++ b/java-apikeys/google-cloud-apikeys/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-apikeys - 0.82.0-SNAPSHOT + 0.83.0 jar Google API Keys API API Keys API API Keys lets you create and manage your API keys for your projects. com.google.cloud google-cloud-apikeys-parent - 0.82.0-SNAPSHOT + 0.83.0 google-cloud-apikeys diff --git a/java-apikeys/grpc-google-cloud-apikeys-v2/pom.xml b/java-apikeys/grpc-google-cloud-apikeys-v2/pom.xml index 9e4f68efe861..058ca1f8e988 100644 --- a/java-apikeys/grpc-google-cloud-apikeys-v2/pom.xml +++ b/java-apikeys/grpc-google-cloud-apikeys-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-apikeys-v2 - 0.82.0-SNAPSHOT + 0.83.0 grpc-google-cloud-apikeys-v2 GRPC library for google-cloud-apikeys com.google.cloud google-cloud-apikeys-parent - 0.82.0-SNAPSHOT + 0.83.0 diff --git a/java-apikeys/pom.xml b/java-apikeys/pom.xml index 09af37fec2b6..14041454a8c2 100644 --- a/java-apikeys/pom.xml +++ b/java-apikeys/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-apikeys-parent pom - 0.82.0-SNAPSHOT + 0.83.0 Google API Keys API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-apikeys - 0.82.0-SNAPSHOT + 0.83.0 com.google.api.grpc grpc-google-cloud-apikeys-v2 - 0.82.0-SNAPSHOT + 0.83.0 com.google.api.grpc proto-google-cloud-apikeys-v2 - 0.82.0-SNAPSHOT + 0.83.0 diff --git a/java-apikeys/proto-google-cloud-apikeys-v2/pom.xml b/java-apikeys/proto-google-cloud-apikeys-v2/pom.xml index 3a34e6dc0014..e2c110fdc9f9 100644 --- a/java-apikeys/proto-google-cloud-apikeys-v2/pom.xml +++ b/java-apikeys/proto-google-cloud-apikeys-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-apikeys-v2 - 0.82.0-SNAPSHOT + 0.83.0 proto-google-cloud-apikeys-v2 Proto library for google-cloud-apikeys com.google.cloud google-cloud-apikeys-parent - 0.82.0-SNAPSHOT + 0.83.0 diff --git a/java-appengine-admin/README.md b/java-appengine-admin/README.md index f73182ea5441..b361dfc01846 100644 --- a/java-appengine-admin/README.md +++ b/java-appengine-admin/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-appengine-admin - 2.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-appengine-admin:2.82.0' +implementation 'com.google.cloud:google-cloud-appengine-admin:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-appengine-admin/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-appengine-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appengine-admin/2.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appengine-admin/2.83.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-appengine-admin/google-cloud-appengine-admin-bom/pom.xml b/java-appengine-admin/google-cloud-appengine-admin-bom/pom.xml index 416af7e699ba..ede1bbc49654 100644 --- a/java-appengine-admin/google-cloud-appengine-admin-bom/pom.xml +++ b/java-appengine-admin/google-cloud-appengine-admin-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-appengine-admin-bom - 2.84.0-SNAPSHOT + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-appengine-admin - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc grpc-google-cloud-appengine-admin-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc proto-google-cloud-appengine-admin-v1 - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-appengine-admin/google-cloud-appengine-admin/pom.xml b/java-appengine-admin/google-cloud-appengine-admin/pom.xml index 5559ecdc2b33..5fffd56e5e75 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/pom.xml +++ b/java-appengine-admin/google-cloud-appengine-admin/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-appengine-admin - 2.84.0-SNAPSHOT + 2.85.0 jar Google App Engine Admin API App Engine Admin API you to manage your App Engine applications. com.google.cloud google-cloud-appengine-admin-parent - 2.84.0-SNAPSHOT + 2.85.0 google-cloud-appengine-admin diff --git a/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/pom.xml b/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/pom.xml index 4ce9af428336..1dc60a8f0e27 100644 --- a/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/pom.xml +++ b/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-appengine-admin-v1 - 2.84.0-SNAPSHOT + 2.85.0 grpc-google-cloud-appengine-admin-v1 GRPC library for google-cloud-appengine-admin com.google.cloud google-cloud-appengine-admin-parent - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-appengine-admin/pom.xml b/java-appengine-admin/pom.xml index c8f7f00c6624..c5291d8e85da 100644 --- a/java-appengine-admin/pom.xml +++ b/java-appengine-admin/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-appengine-admin-parent pom - 2.84.0-SNAPSHOT + 2.85.0 Google App Engine Admin API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-appengine-admin - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc grpc-google-cloud-appengine-admin-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc proto-google-cloud-appengine-admin-v1 - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-appengine-admin/proto-google-cloud-appengine-admin-v1/pom.xml b/java-appengine-admin/proto-google-cloud-appengine-admin-v1/pom.xml index e0f8edc64f34..b69a61f95581 100644 --- a/java-appengine-admin/proto-google-cloud-appengine-admin-v1/pom.xml +++ b/java-appengine-admin/proto-google-cloud-appengine-admin-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-appengine-admin-v1 - 2.84.0-SNAPSHOT + 2.85.0 proto-google-cloud-appengine-admin-v1 Proto library for google-cloud-appengine-admin com.google.cloud google-cloud-appengine-admin-parent - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-apphub/README.md b/java-apphub/README.md index c5315776a752..75309e679bc0 100644 --- a/java-apphub/README.md +++ b/java-apphub/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apphub - 0.46.0 + 0.47.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apphub:0.46.0' +implementation 'com.google.cloud:google-cloud-apphub:0.47.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.46.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.47.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apphub/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apphub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/0.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/0.47.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apphub/google-cloud-apphub-bom/pom.xml b/java-apphub/google-cloud-apphub-bom/pom.xml index 50ef48ef66d5..931b249452b9 100644 --- a/java-apphub/google-cloud-apphub-bom/pom.xml +++ b/java-apphub/google-cloud-apphub-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-apphub-bom - 0.48.0-SNAPSHOT + 0.49.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-apphub - 0.48.0-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-apphub-v1 - 0.48.0-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-apphub-v1 - 0.48.0-SNAPSHOT + 0.49.0 diff --git a/java-apphub/google-cloud-apphub/pom.xml b/java-apphub/google-cloud-apphub/pom.xml index 057d0bf9659b..9d587d63003d 100644 --- a/java-apphub/google-cloud-apphub/pom.xml +++ b/java-apphub/google-cloud-apphub/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-apphub - 0.48.0-SNAPSHOT + 0.49.0 jar Google App Hub API App Hub API App Hub simplifies the process of building, running, and managing applications on Google Cloud. com.google.cloud google-cloud-apphub-parent - 0.48.0-SNAPSHOT + 0.49.0 google-cloud-apphub diff --git a/java-apphub/grpc-google-cloud-apphub-v1/pom.xml b/java-apphub/grpc-google-cloud-apphub-v1/pom.xml index 4a47b87363d1..c63e945b01e4 100644 --- a/java-apphub/grpc-google-cloud-apphub-v1/pom.xml +++ b/java-apphub/grpc-google-cloud-apphub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-apphub-v1 - 0.48.0-SNAPSHOT + 0.49.0 grpc-google-cloud-apphub-v1 GRPC library for google-cloud-apphub com.google.cloud google-cloud-apphub-parent - 0.48.0-SNAPSHOT + 0.49.0 diff --git a/java-apphub/pom.xml b/java-apphub/pom.xml index fe0e79d9f0a8..156dc1021fce 100644 --- a/java-apphub/pom.xml +++ b/java-apphub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-apphub-parent pom - 0.48.0-SNAPSHOT + 0.49.0 Google App Hub API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-apphub - 0.48.0-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-apphub-v1 - 0.48.0-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-apphub-v1 - 0.48.0-SNAPSHOT + 0.49.0 diff --git a/java-apphub/proto-google-cloud-apphub-v1/pom.xml b/java-apphub/proto-google-cloud-apphub-v1/pom.xml index 95aeb312239a..07e50fb75380 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/pom.xml +++ b/java-apphub/proto-google-cloud-apphub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-apphub-v1 - 0.48.0-SNAPSHOT + 0.49.0 proto-google-cloud-apphub-v1 Proto library for google-cloud-apphub com.google.cloud google-cloud-apphub-parent - 0.48.0-SNAPSHOT + 0.49.0 diff --git a/java-area120-tables/README.md b/java-area120-tables/README.md index 1331b34c7200..d3855ae4f1e8 100644 --- a/java-area120-tables/README.md +++ b/java-area120-tables/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.area120 google-area120-tables - 0.86.0 + 0.87.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.area120:google-area120-tables:0.86.0' +implementation 'com.google.area120:google-area120-tables:0.87.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.area120" % "google-area120-tables" % "0.86.0" +libraryDependencies += "com.google.area120" % "google-area120-tables" % "0.87.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-area120-tables/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.area120/google-area120-tables.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.area120/google-area120-tables/0.86.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.area120/google-area120-tables/0.87.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-area120-tables/google-area120-tables-bom/pom.xml b/java-area120-tables/google-area120-tables-bom/pom.xml index 7f1e791f2a71..42f3868bb41f 100644 --- a/java-area120-tables/google-area120-tables-bom/pom.xml +++ b/java-area120-tables/google-area120-tables-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.area120 google-area120-tables-bom - 0.88.0-SNAPSHOT + 0.89.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.area120 google-area120-tables - 0.88.0-SNAPSHOT + 0.89.0 com.google.api.grpc grpc-google-area120-tables-v1alpha1 - 0.88.0-SNAPSHOT + 0.89.0 com.google.api.grpc proto-google-area120-tables-v1alpha1 - 0.88.0-SNAPSHOT + 0.89.0 diff --git a/java-area120-tables/google-area120-tables/pom.xml b/java-area120-tables/google-area120-tables/pom.xml index c70c4c0257b4..db13869820c0 100644 --- a/java-area120-tables/google-area120-tables/pom.xml +++ b/java-area120-tables/google-area120-tables/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.area120 google-area120-tables - 0.88.0-SNAPSHOT + 0.89.0 jar Google Area 120 Tables provides programmatic methods to the Area 120 Tables API. com.google.area120 google-area120-tables-parent - 0.88.0-SNAPSHOT + 0.89.0 google-area120-tables diff --git a/java-area120-tables/grpc-google-area120-tables-v1alpha1/pom.xml b/java-area120-tables/grpc-google-area120-tables-v1alpha1/pom.xml index 5af07d1470f0..726b02961907 100644 --- a/java-area120-tables/grpc-google-area120-tables-v1alpha1/pom.xml +++ b/java-area120-tables/grpc-google-area120-tables-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-area120-tables-v1alpha1 - 0.88.0-SNAPSHOT + 0.89.0 grpc-google-area120-tables-v1alpha1 GRPC library for google-area120-tables com.google.area120 google-area120-tables-parent - 0.88.0-SNAPSHOT + 0.89.0 diff --git a/java-area120-tables/pom.xml b/java-area120-tables/pom.xml index 191cf3e2c2d9..75c8d7bd6929 100644 --- a/java-area120-tables/pom.xml +++ b/java-area120-tables/pom.xml @@ -4,7 +4,7 @@ com.google.area120 google-area120-tables-parent pom - 0.88.0-SNAPSHOT + 0.89.0 Google Area 120 Tables Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.area120 google-area120-tables - 0.88.0-SNAPSHOT + 0.89.0 com.google.api.grpc proto-google-area120-tables-v1alpha1 - 0.88.0-SNAPSHOT + 0.89.0 com.google.api.grpc grpc-google-area120-tables-v1alpha1 - 0.88.0-SNAPSHOT + 0.89.0 diff --git a/java-area120-tables/proto-google-area120-tables-v1alpha1/pom.xml b/java-area120-tables/proto-google-area120-tables-v1alpha1/pom.xml index 157b8487a76a..4bdc9bfa7011 100644 --- a/java-area120-tables/proto-google-area120-tables-v1alpha1/pom.xml +++ b/java-area120-tables/proto-google-area120-tables-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-area120-tables-v1alpha1 - 0.88.0-SNAPSHOT + 0.89.0 proto-google-area120-tables-v1alpha1 Proto library for google-area120-tables com.google.area120 google-area120-tables-parent - 0.88.0-SNAPSHOT + 0.89.0 diff --git a/java-artifact-registry/README.md b/java-artifact-registry/README.md index 8337668cdd74..c9a529cee0dd 100644 --- a/java-artifact-registry/README.md +++ b/java-artifact-registry/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-artifact-registry - 1.81.0 + 1.82.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-artifact-registry:1.81.0' +implementation 'com.google.cloud:google-cloud-artifact-registry:1.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.82.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-artifact-registry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/1.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/1.82.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-artifact-registry/google-cloud-artifact-registry-bom/pom.xml b/java-artifact-registry/google-cloud-artifact-registry-bom/pom.xml index 3828f39967d6..1e01077d5455 100644 --- a/java-artifact-registry/google-cloud-artifact-registry-bom/pom.xml +++ b/java-artifact-registry/google-cloud-artifact-registry-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-artifact-registry-bom - 1.83.0-SNAPSHOT + 1.84.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-artifact-registry - 1.83.0-SNAPSHOT + 1.84.0 com.google.api.grpc grpc-google-cloud-artifact-registry-v1beta2 - 0.89.0-SNAPSHOT + 0.90.0 com.google.api.grpc grpc-google-cloud-artifact-registry-v1 - 1.83.0-SNAPSHOT + 1.84.0 com.google.api.grpc proto-google-cloud-artifact-registry-v1beta2 - 0.89.0-SNAPSHOT + 0.90.0 com.google.api.grpc proto-google-cloud-artifact-registry-v1 - 1.83.0-SNAPSHOT + 1.84.0 diff --git a/java-artifact-registry/google-cloud-artifact-registry/pom.xml b/java-artifact-registry/google-cloud-artifact-registry/pom.xml index 02f92173e606..cd450b467a86 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/pom.xml +++ b/java-artifact-registry/google-cloud-artifact-registry/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-artifact-registry - 1.83.0-SNAPSHOT + 1.84.0 jar Google Artifact Registry provides a single place for your organization to manage container images and language packages (such as Maven and npm). It is fully integrated with Google Cloud's tooling and runtimes and comes with support for native artifact protocols. This makes it simple to integrate it with your CI/CD tooling to set up automated pipelines. com.google.cloud google-cloud-artifact-registry-parent - 1.83.0-SNAPSHOT + 1.84.0 google-cloud-artifact-registry diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClient.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClient.java index 6b6e8cbc4d2c..a62590d334a9 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClient.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClient.java @@ -1020,7 +1020,8 @@ * * *

    ListLocations - *

    Lists information about the supported locations for this service. + *

    Lists information about the supported locations for this service.This method can be called in two ways: + *

    * **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project. * *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      @@ -7090,7 +7091,13 @@ public final UnaryCallable exportArtifactCalla // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

      * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

      Sample code: * @@ -7123,7 +7130,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

      * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

      Sample code: * @@ -7157,7 +7170,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

      * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

      Sample code: * diff --git a/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/pom.xml b/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/pom.xml index 3688a4bc61a0..6b78f277943a 100644 --- a/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/pom.xml +++ b/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-artifact-registry-v1 - 1.83.0-SNAPSHOT + 1.84.0 grpc-google-cloud-artifact-registry-v1 GRPC library for google-cloud-artifact-registry com.google.cloud google-cloud-artifact-registry-parent - 1.83.0-SNAPSHOT + 1.84.0 diff --git a/java-artifact-registry/grpc-google-cloud-artifact-registry-v1beta2/pom.xml b/java-artifact-registry/grpc-google-cloud-artifact-registry-v1beta2/pom.xml index d45832ff41d0..5ed59da06ed2 100644 --- a/java-artifact-registry/grpc-google-cloud-artifact-registry-v1beta2/pom.xml +++ b/java-artifact-registry/grpc-google-cloud-artifact-registry-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-artifact-registry-v1beta2 - 0.89.0-SNAPSHOT + 0.90.0 grpc-google-cloud-artifact-registry-v1beta2 GRPC library for google-cloud-artifact-registry com.google.cloud google-cloud-artifact-registry-parent - 1.83.0-SNAPSHOT + 1.84.0 diff --git a/java-artifact-registry/pom.xml b/java-artifact-registry/pom.xml index adc322a36c48..c8cbe20989ad 100644 --- a/java-artifact-registry/pom.xml +++ b/java-artifact-registry/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-artifact-registry-parent pom - 1.83.0-SNAPSHOT + 1.84.0 Google Artifact Registry Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-artifact-registry - 1.83.0-SNAPSHOT + 1.84.0 com.google.api.grpc proto-google-cloud-artifact-registry-v1 - 1.83.0-SNAPSHOT + 1.84.0 com.google.api.grpc grpc-google-cloud-artifact-registry-v1 - 1.83.0-SNAPSHOT + 1.84.0 com.google.api.grpc proto-google-cloud-artifact-registry-v1beta2 - 0.89.0-SNAPSHOT + 0.90.0 com.google.api.grpc grpc-google-cloud-artifact-registry-v1beta2 - 0.89.0-SNAPSHOT + 0.90.0 diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/pom.xml b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/pom.xml index 98109653dd04..c7fc40368f41 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/pom.xml +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-artifact-registry-v1 - 1.83.0-SNAPSHOT + 1.84.0 proto-google-cloud-artifact-registry-v1 Proto library for google-cloud-artifact-registry com.google.cloud google-cloud-artifact-registry-parent - 1.83.0-SNAPSHOT + 1.84.0 diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/FileProto.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/FileProto.java index c84988f9e76e..185058aa92c1 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/FileProto.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/FileProto.java @@ -84,14 +84,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + ".google/devtools/artifactregistry/v1/file.proto\022#google.devtools.artifactregist" + "ry.v1\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\223\001\n" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\246\001\n" + "\004Hash\022@\n" + "\004type\030\001 \001(\01622.google.devtools.artifactregistry.v1.Hash.HashType\022\r\n" - + "\005value\030\002 \001(\014\":\n" + + "\005value\030\002 \001(\014\"M\n" + "\010HashType\022\031\n" + "\025HASH_TYPE_UNSPECIFIED\020\000\022\n\n" + "\006SHA256\020\001\022\007\n" - + "\003MD5\020\002\"\230\004\n" + + "\003MD5\020\002\022\021\n\r" + + "DIRSUM_SHA256\020\003\"\230\004\n" + "\004File\022\014\n" + "\004name\030\001 \001(\t\022\022\n\n" + "size_bytes\030\003 \001(\003\0229\n" @@ -100,16 +101,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\r\n" + "\005owner\030\007 \001(\t\0223\n\n" + "fetch_time\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022T\n" - + "\013annotations\030\t \003(\0132:.google.devtools." - + "artifactregistry.v1.File.AnnotationsEntryB\003\340A\001\0322\n" + + "\013annotations\030\t \003(\013" + + "2:.google.devtools.artifactregistry.v1.File.AnnotationsEntryB\003\340A\001\0322\n" + "\020AnnotationsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:y\352Av\n" - + "$artifactregistry.googleapis.com/File\022Nprojects/{project" - + "}/locations/{location}/repositories/{repository}/files/{file}\"\231\001\n" + + "$artifactregistry.googleapis.com/File\022Nprojects/{project}/locations/{location" + + "}/repositories/{repository}/files/{file}\"\231\001\n" + "\020ListFilesRequest\022<\n" - + "\006parent\030\001 \001(" - + "\tB,\340A\002\372A&\022$artifactregistry.googleapis.com/File\022\016\n" + + "\006parent\030\001 \001(\tB,\340" + + "A\002\372A&\022$artifactregistry.googleapis.com/File\022\016\n" + "\006filter\030\004 \001(\t\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\022\020\n" @@ -124,14 +125,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB,\340A\002\372A&\n" + "$artifactregistry.googleapis.com/File\"\207\001\n" + "\021UpdateFileRequest\022<\n" - + "\004file\030\001 \001(\0132).g" - + "oogle.devtools.artifactregistry.v1.FileB\003\340A\002\0224\n" + + "\004file\030\001" + + " \001(\0132).google.devtools.artifactregistry.v1.FileB\003\340A\002\0224\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002B\364\001\n" - + "\'com.google.devtools.artifactregistry.v1B\tFileProtoP\001ZPclo" - + "ud.google.com/go/artifactregistry/apiv1/artifactregistrypb;artifactregistrypb\252\002" - + " Google.Cloud.ArtifactRegistry.V1\312\002 Googl" - + "e\\Cloud\\ArtifactRegistry\\V1\352\002#Google::Cloud::ArtifactRegistry::V1b\006proto3" + + "\'com.google.devtools.artifactregistry.v1B\tFileProtoP\001ZPcloud.google.com/go/arti" + + "factregistry/apiv1/artifactregistrypb;artifactregistrypb\252\002" + + " Google.Cloud.ArtifactRegistry.V1\312\002 Google\\Cloud\\ArtifactRegis" + + "try\\V1\352\002#Google::Cloud::ArtifactRegistry::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Hash.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Hash.java index c6a05a020f4a..56398a00f2e1 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Hash.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Hash.java @@ -111,6 +111,16 @@ public enum HashType implements com.google.protobuf.ProtocolMessageEnum { * MD5 = 2; */ MD5(2), + /** + * + * + *

      +     * Dirsum SHA256 hash.
      +     * 
      + * + * DIRSUM_SHA256 = 3; + */ + DIRSUM_SHA256(3), UNRECOGNIZED(-1), ; @@ -157,6 +167,17 @@ public enum HashType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MD5_VALUE = 2; + /** + * + * + *
      +     * Dirsum SHA256 hash.
      +     * 
      + * + * DIRSUM_SHA256 = 3; + */ + public static final int DIRSUM_SHA256_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -187,6 +208,8 @@ public static HashType forNumber(int value) { return SHA256; case 2: return MD5; + case 3: + return DIRSUM_SHA256; default: return null; } diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/apt_artifact.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/apt_artifact.proto index c9da2a5d7be8..67a1b9cf42b6 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/apt_artifact.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/apt_artifact.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/artifact.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/artifact.proto index 691638efd8d6..a61538a9475f 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/artifact.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/artifact.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/attachment.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/attachment.proto index 7f283f684a87..da05158d2d81 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/attachment.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/attachment.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/export.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/export.proto index 2e89c126a96e..890e42a9e0c1 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/export.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/export.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/file.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/file.proto index 35b3ebde6f87..ed5886d9f5e7 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/file.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/file.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -41,6 +41,9 @@ message Hash { // MD5 hash. MD5 = 2; + + // Dirsum SHA256 hash. + DIRSUM_SHA256 = 3; } // The algorithm used to compute the hash value. diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/generic.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/generic.proto index b26f31a9e783..85c0c10f0ff4 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/generic.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/generic.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/go.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/go.proto index 0f459b4f1cf2..3a5d56918cbb 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/go.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/go.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/kfp_artifact.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/kfp_artifact.proto index 94641accdbb0..c7e59a59d84b 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/kfp_artifact.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/kfp_artifact.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/package.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/package.proto index 35ae37ef1e5b..8bb9c0426a71 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/package.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/package.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/repository.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/repository.proto index 40fc30a008a7..82bfb3ebf3f3 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/repository.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/repository.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/rule.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/rule.proto index cfe5be0ab580..03be67007bdc 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/rule.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/rule.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/service.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/service.proto index b7e7c368092d..0b17ae07be06 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/service.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/settings.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/settings.proto index 54f94b30a788..f617db75c128 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/settings.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/settings.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/tag.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/tag.proto index 3268a2f8ad0c..a7bcb3d59734 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/tag.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/tag.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/version.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/version.proto index 4efa5c15fec3..05a547676135 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/version.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/version.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/vpcsc_config.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/vpcsc_config.proto index 477bbda9a89f..a2c5b5100b79 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/vpcsc_config.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/vpcsc_config.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/yum_artifact.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/yum_artifact.proto index 3592c8f4896f..b36a13118249 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/yum_artifact.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/yum_artifact.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/pom.xml b/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/pom.xml index 4315c87ff164..09b1f380f877 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/pom.xml +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-artifact-registry-v1beta2 - 0.89.0-SNAPSHOT + 0.90.0 grpc-google-cloud-artifact-registry-v1beta2 Proto library for google-cloud-artifact-registry com.google.cloud google-cloud-artifact-registry-parent - 1.83.0-SNAPSHOT + 1.84.0 diff --git a/java-asset/README.md b/java-asset/README.md index 59b045948cdc..f805802fe19d 100644 --- a/java-asset/README.md +++ b/java-asset/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-asset - 3.86.0 + 3.87.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-asset:3.86.0' +implementation 'com.google.cloud:google-cloud-asset:3.87.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.86.0" +libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.87.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-asset/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-asset.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.86.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.87.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-asset/google-cloud-asset-bom/pom.xml b/java-asset/google-cloud-asset-bom/pom.xml index abff25934a08..514a1d87d7c8 100644 --- a/java-asset/google-cloud-asset-bom/pom.xml +++ b/java-asset/google-cloud-asset-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-asset-bom - 3.88.0-SNAPSHOT + 3.89.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,57 +23,57 @@ com.google.cloud google-cloud-asset - 3.88.0-SNAPSHOT + 3.89.0 com.google.api.grpc grpc-google-cloud-asset-v1 - 3.88.0-SNAPSHOT + 3.89.0 com.google.api.grpc grpc-google-cloud-asset-v1p1beta1 - 0.188.0-SNAPSHOT + 0.189.0 com.google.api.grpc grpc-google-cloud-asset-v1p2beta1 - 0.188.0-SNAPSHOT + 0.189.0 com.google.api.grpc grpc-google-cloud-asset-v1p5beta1 - 0.188.0-SNAPSHOT + 0.189.0 com.google.api.grpc grpc-google-cloud-asset-v1p7beta1 - 3.88.0-SNAPSHOT + 3.89.0 com.google.api.grpc proto-google-cloud-asset-v1 - 3.88.0-SNAPSHOT + 3.89.0 com.google.api.grpc proto-google-cloud-asset-v1p1beta1 - 0.188.0-SNAPSHOT + 0.189.0 com.google.api.grpc proto-google-cloud-asset-v1p2beta1 - 0.188.0-SNAPSHOT + 0.189.0 com.google.api.grpc proto-google-cloud-asset-v1p5beta1 - 0.188.0-SNAPSHOT + 0.189.0 com.google.api.grpc proto-google-cloud-asset-v1p7beta1 - 3.88.0-SNAPSHOT + 3.89.0 diff --git a/java-asset/google-cloud-asset/pom.xml b/java-asset/google-cloud-asset/pom.xml index b192ff5b832e..0d51a2385b74 100644 --- a/java-asset/google-cloud-asset/pom.xml +++ b/java-asset/google-cloud-asset/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-asset - 3.88.0-SNAPSHOT + 3.89.0 jar Google Cloud Asset Java idiomatic client for Google Cloud Asset com.google.cloud google-cloud-asset-parent - 3.88.0-SNAPSHOT + 3.89.0 google-cloud-asset diff --git a/java-asset/grpc-google-cloud-asset-v1/pom.xml b/java-asset/grpc-google-cloud-asset-v1/pom.xml index b12985ccde10..81a7f104eae7 100644 --- a/java-asset/grpc-google-cloud-asset-v1/pom.xml +++ b/java-asset/grpc-google-cloud-asset-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-asset-v1 - 3.88.0-SNAPSHOT + 3.89.0 grpc-google-cloud-asset-v1 GRPC library for grpc-google-cloud-asset-v1 com.google.cloud google-cloud-asset-parent - 3.88.0-SNAPSHOT + 3.89.0 diff --git a/java-asset/grpc-google-cloud-asset-v1p1beta1/pom.xml b/java-asset/grpc-google-cloud-asset-v1p1beta1/pom.xml index 2879770d0b5b..045d96838d4a 100644 --- a/java-asset/grpc-google-cloud-asset-v1p1beta1/pom.xml +++ b/java-asset/grpc-google-cloud-asset-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-asset-v1p1beta1 - 0.188.0-SNAPSHOT + 0.189.0 grpc-google-cloud-asset-v1p1beta1 GRPC library for grpc-google-cloud-asset-v1p1beta1 com.google.cloud google-cloud-asset-parent - 3.88.0-SNAPSHOT + 3.89.0 diff --git a/java-asset/grpc-google-cloud-asset-v1p2beta1/pom.xml b/java-asset/grpc-google-cloud-asset-v1p2beta1/pom.xml index 6a5adde49371..136e7f0f72a0 100644 --- a/java-asset/grpc-google-cloud-asset-v1p2beta1/pom.xml +++ b/java-asset/grpc-google-cloud-asset-v1p2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-asset-v1p2beta1 - 0.188.0-SNAPSHOT + 0.189.0 grpc-google-cloud-asset-v1p2beta1 GRPC library for grpc-google-cloud-asset-v1p2beta1 com.google.cloud google-cloud-asset-parent - 3.88.0-SNAPSHOT + 3.89.0 diff --git a/java-asset/grpc-google-cloud-asset-v1p5beta1/pom.xml b/java-asset/grpc-google-cloud-asset-v1p5beta1/pom.xml index 3492a952fee3..2b70ff3ff9c7 100644 --- a/java-asset/grpc-google-cloud-asset-v1p5beta1/pom.xml +++ b/java-asset/grpc-google-cloud-asset-v1p5beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-asset-v1p5beta1 - 0.188.0-SNAPSHOT + 0.189.0 grpc-google-cloud-asset-v1p5beta1 GRPC library for grpc-google-cloud-asset-v1p5beta1 com.google.cloud google-cloud-asset-parent - 3.88.0-SNAPSHOT + 3.89.0 diff --git a/java-asset/grpc-google-cloud-asset-v1p7beta1/pom.xml b/java-asset/grpc-google-cloud-asset-v1p7beta1/pom.xml index b9714dcde2bb..e5d2cb924eb1 100644 --- a/java-asset/grpc-google-cloud-asset-v1p7beta1/pom.xml +++ b/java-asset/grpc-google-cloud-asset-v1p7beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-asset-v1p7beta1 - 3.88.0-SNAPSHOT + 3.89.0 grpc-google-cloud-asset-v1p7beta1 GRPC library for google-cloud-asset com.google.cloud google-cloud-asset-parent - 3.88.0-SNAPSHOT + 3.89.0 diff --git a/java-asset/pom.xml b/java-asset/pom.xml index 52ae395f0096..8bf26778845e 100644 --- a/java-asset/pom.xml +++ b/java-asset/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-asset-parent pom - 3.88.0-SNAPSHOT + 3.89.0 Google Cloud Asset Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,77 +29,77 @@ com.google.api.grpc proto-google-cloud-asset-v1 - 3.88.0-SNAPSHOT + 3.89.0 com.google.api.grpc proto-google-cloud-asset-v1p7beta1 - 3.88.0-SNAPSHOT + 3.89.0 com.google.api.grpc grpc-google-cloud-asset-v1p7beta1 - 3.88.0-SNAPSHOT + 3.89.0 com.google.api.grpc proto-google-cloud-asset-v1p1beta1 - 0.188.0-SNAPSHOT + 0.189.0 com.google.api.grpc proto-google-cloud-asset-v1p2beta1 - 0.188.0-SNAPSHOT + 0.189.0 com.google.api.grpc proto-google-cloud-asset-v1p5beta1 - 0.188.0-SNAPSHOT + 0.189.0 com.google.api.grpc grpc-google-cloud-asset-v1 - 3.88.0-SNAPSHOT + 3.89.0 com.google.api.grpc grpc-google-cloud-asset-v1p1beta1 - 0.188.0-SNAPSHOT + 0.189.0 com.google.api.grpc grpc-google-cloud-asset-v1p2beta1 - 0.188.0-SNAPSHOT + 0.189.0 com.google.api.grpc grpc-google-cloud-asset-v1p5beta1 - 0.188.0-SNAPSHOT + 0.189.0 com.google.cloud google-cloud-asset - 3.88.0-SNAPSHOT + 3.89.0 com.google.api.grpc proto-google-cloud-orgpolicy-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc proto-google-identity-accesscontextmanager-v1 - 1.85.0-SNAPSHOT + 1.86.0 com.google.api.grpc proto-google-cloud-os-config-v1 - 2.86.0-SNAPSHOT + 2.87.0 com.google.cloud google-cloud-resourcemanager - 1.86.0-SNAPSHOT + 1.87.0 test diff --git a/java-asset/proto-google-cloud-asset-v1/pom.xml b/java-asset/proto-google-cloud-asset-v1/pom.xml index f56718e91bff..8f0e077c6a8d 100644 --- a/java-asset/proto-google-cloud-asset-v1/pom.xml +++ b/java-asset/proto-google-cloud-asset-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-asset-v1 - 3.88.0-SNAPSHOT + 3.89.0 proto-google-cloud-asset-v1 PROTO library for proto-google-cloud-asset-v1 com.google.cloud google-cloud-asset-parent - 3.88.0-SNAPSHOT + 3.89.0 diff --git a/java-asset/proto-google-cloud-asset-v1p1beta1/pom.xml b/java-asset/proto-google-cloud-asset-v1p1beta1/pom.xml index 1f8c46d3c594..d0b4537be3bc 100644 --- a/java-asset/proto-google-cloud-asset-v1p1beta1/pom.xml +++ b/java-asset/proto-google-cloud-asset-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-asset-v1p1beta1 - 0.188.0-SNAPSHOT + 0.189.0 proto-google-cloud-asset-v1p1beta1 PROTO library for proto-google-cloud-asset-v1p1beta1 com.google.cloud google-cloud-asset-parent - 3.88.0-SNAPSHOT + 3.89.0 diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/pom.xml b/java-asset/proto-google-cloud-asset-v1p2beta1/pom.xml index 34b5aff26e5f..57a4f1f8de06 100644 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/pom.xml +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-asset-v1p2beta1 - 0.188.0-SNAPSHOT + 0.189.0 proto-google-cloud-asset-v1p2beta1 PROTO library for proto-google-cloud-asset-v1p2beta1 com.google.cloud google-cloud-asset-parent - 3.88.0-SNAPSHOT + 3.89.0 diff --git a/java-asset/proto-google-cloud-asset-v1p5beta1/pom.xml b/java-asset/proto-google-cloud-asset-v1p5beta1/pom.xml index 8d661957851a..395a235a53c8 100644 --- a/java-asset/proto-google-cloud-asset-v1p5beta1/pom.xml +++ b/java-asset/proto-google-cloud-asset-v1p5beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-asset-v1p5beta1 - 0.188.0-SNAPSHOT + 0.189.0 proto-google-cloud-asset-v1p5beta1 PROTO library for proto-google-cloud-asset-v1p4beta1 com.google.cloud google-cloud-asset-parent - 3.88.0-SNAPSHOT + 3.89.0 diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/pom.xml b/java-asset/proto-google-cloud-asset-v1p7beta1/pom.xml index ffe430007b2b..764c1a88917f 100644 --- a/java-asset/proto-google-cloud-asset-v1p7beta1/pom.xml +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-asset-v1p7beta1 - 3.88.0-SNAPSHOT + 3.89.0 proto-google-cloud-asset-v1p7beta1 Proto library for google-cloud-asset com.google.cloud google-cloud-asset-parent - 3.88.0-SNAPSHOT + 3.89.0 diff --git a/java-assured-workloads/README.md b/java-assured-workloads/README.md index a1958291edc9..66de12a7a470 100644 --- a/java-assured-workloads/README.md +++ b/java-assured-workloads/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-assured-workloads - 2.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-assured-workloads:2.82.0' +implementation 'com.google.cloud:google-cloud-assured-workloads:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-assured-workloads/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-assured-workloads.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-assured-workloads/2.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-assured-workloads/2.83.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-assured-workloads/google-cloud-assured-workloads-bom/pom.xml b/java-assured-workloads/google-cloud-assured-workloads-bom/pom.xml index 743c471248ef..c3bf2db68f99 100644 --- a/java-assured-workloads/google-cloud-assured-workloads-bom/pom.xml +++ b/java-assured-workloads/google-cloud-assured-workloads-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-assured-workloads-bom - 2.84.0-SNAPSHOT + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-assured-workloads - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc grpc-google-cloud-assured-workloads-v1beta1 - 0.96.0-SNAPSHOT + 0.97.0 com.google.api.grpc grpc-google-cloud-assured-workloads-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc proto-google-cloud-assured-workloads-v1beta1 - 0.96.0-SNAPSHOT + 0.97.0 com.google.api.grpc proto-google-cloud-assured-workloads-v1 - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-assured-workloads/google-cloud-assured-workloads/pom.xml b/java-assured-workloads/google-cloud-assured-workloads/pom.xml index 379751d39d11..34c6afeca01c 100644 --- a/java-assured-workloads/google-cloud-assured-workloads/pom.xml +++ b/java-assured-workloads/google-cloud-assured-workloads/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-assured-workloads - 2.84.0-SNAPSHOT + 2.85.0 jar Google Assured Workloads for Government allows you to secure your government workloads and accelerate your path to running compliant workloads on Google Cloud with Assured Workloads for Government. com.google.cloud google-cloud-assured-workloads-parent - 2.84.0-SNAPSHOT + 2.85.0 google-cloud-assured-workloads diff --git a/java-assured-workloads/grpc-google-cloud-assured-workloads-v1/pom.xml b/java-assured-workloads/grpc-google-cloud-assured-workloads-v1/pom.xml index 5face2b6c67d..be0ea9e15d15 100644 --- a/java-assured-workloads/grpc-google-cloud-assured-workloads-v1/pom.xml +++ b/java-assured-workloads/grpc-google-cloud-assured-workloads-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-assured-workloads-v1 - 2.84.0-SNAPSHOT + 2.85.0 grpc-google-cloud-assured-workloads-v1 GRPC library for google-cloud-assured-workloads com.google.cloud google-cloud-assured-workloads-parent - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-assured-workloads/grpc-google-cloud-assured-workloads-v1beta1/pom.xml b/java-assured-workloads/grpc-google-cloud-assured-workloads-v1beta1/pom.xml index daa775b92155..322a0b5df991 100644 --- a/java-assured-workloads/grpc-google-cloud-assured-workloads-v1beta1/pom.xml +++ b/java-assured-workloads/grpc-google-cloud-assured-workloads-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-assured-workloads-v1beta1 - 0.96.0-SNAPSHOT + 0.97.0 grpc-google-cloud-assured-workloads-v1beta1 GRPC library for google-cloud-assured-workloads com.google.cloud google-cloud-assured-workloads-parent - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-assured-workloads/pom.xml b/java-assured-workloads/pom.xml index 11b6a5a3a408..347f5447dbff 100644 --- a/java-assured-workloads/pom.xml +++ b/java-assured-workloads/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-assured-workloads-parent pom - 2.84.0-SNAPSHOT + 2.85.0 Google Assured Workloads for Government Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-assured-workloads - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc proto-google-cloud-assured-workloads-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc grpc-google-cloud-assured-workloads-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc proto-google-cloud-assured-workloads-v1beta1 - 0.96.0-SNAPSHOT + 0.97.0 com.google.api.grpc grpc-google-cloud-assured-workloads-v1beta1 - 0.96.0-SNAPSHOT + 0.97.0 diff --git a/java-assured-workloads/proto-google-cloud-assured-workloads-v1/pom.xml b/java-assured-workloads/proto-google-cloud-assured-workloads-v1/pom.xml index a9f4da870654..31ac6b58530b 100644 --- a/java-assured-workloads/proto-google-cloud-assured-workloads-v1/pom.xml +++ b/java-assured-workloads/proto-google-cloud-assured-workloads-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-assured-workloads-v1 - 2.84.0-SNAPSHOT + 2.85.0 proto-google-cloud-assured-workloads-v1 Proto library for google-cloud-assured-workloads com.google.cloud google-cloud-assured-workloads-parent - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/pom.xml b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/pom.xml index 768eb216402d..ba4db667e629 100644 --- a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/pom.xml +++ b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-assured-workloads-v1beta1 - 0.96.0-SNAPSHOT + 0.97.0 proto-google-cloud-assured-workloads-v1beta1 Proto library for google-cloud-assured-workloads com.google.cloud google-cloud-assured-workloads-parent - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-auditmanager/README.md b/java-auditmanager/README.md index f44ebe5eba0b..9444ff4b4bed 100644 --- a/java-auditmanager/README.md +++ b/java-auditmanager/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-auditmanager - 0.0.0 + 0.2.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-auditmanager:0.0.0' +implementation 'com.google.cloud:google-cloud-auditmanager:0.2.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-auditmanager" % "0.0.0" +libraryDependencies += "com.google.cloud" % "google-cloud-auditmanager" % "0.2.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-auditmanager/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-auditmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-auditmanager/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-auditmanager/0.2.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-auditmanager/google-cloud-auditmanager-bom/pom.xml b/java-auditmanager/google-cloud-auditmanager-bom/pom.xml index d288b0bdbda4..e5e8d628bb2d 100644 --- a/java-auditmanager/google-cloud-auditmanager-bom/pom.xml +++ b/java-auditmanager/google-cloud-auditmanager-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-auditmanager-bom - 0.2.0-SNAPSHOT + 0.3.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-auditmanager - 0.2.0-SNAPSHOT + 0.3.0 com.google.api.grpc grpc-google-cloud-auditmanager-v1 - 0.2.0-SNAPSHOT + 0.3.0 com.google.api.grpc proto-google-cloud-auditmanager-v1 - 0.2.0-SNAPSHOT + 0.3.0 diff --git a/java-auditmanager/google-cloud-auditmanager/pom.xml b/java-auditmanager/google-cloud-auditmanager/pom.xml index fb75a9de6908..bfa31409ffd3 100644 --- a/java-auditmanager/google-cloud-auditmanager/pom.xml +++ b/java-auditmanager/google-cloud-auditmanager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-auditmanager - 0.2.0-SNAPSHOT + 0.3.0 jar Google Audit Manager API Audit Manager API Lists information about the supported locations for this service. com.google.cloud google-cloud-auditmanager-parent - 0.2.0-SNAPSHOT + 0.3.0 google-cloud-auditmanager diff --git a/java-auditmanager/grpc-google-cloud-auditmanager-v1/pom.xml b/java-auditmanager/grpc-google-cloud-auditmanager-v1/pom.xml index 0e6acae65a1d..eabb38e43aeb 100644 --- a/java-auditmanager/grpc-google-cloud-auditmanager-v1/pom.xml +++ b/java-auditmanager/grpc-google-cloud-auditmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-auditmanager-v1 - 0.2.0-SNAPSHOT + 0.3.0 grpc-google-cloud-auditmanager-v1 GRPC library for google-cloud-auditmanager com.google.cloud google-cloud-auditmanager-parent - 0.2.0-SNAPSHOT + 0.3.0 diff --git a/java-auditmanager/pom.xml b/java-auditmanager/pom.xml index 6aedc311556f..be548aa6f5a2 100644 --- a/java-auditmanager/pom.xml +++ b/java-auditmanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-auditmanager-parent pom - 0.2.0-SNAPSHOT + 0.3.0 Google Audit Manager API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-auditmanager - 0.2.0-SNAPSHOT + 0.3.0 com.google.api.grpc grpc-google-cloud-auditmanager-v1 - 0.2.0-SNAPSHOT + 0.3.0 com.google.api.grpc proto-google-cloud-auditmanager-v1 - 0.2.0-SNAPSHOT + 0.3.0 diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/pom.xml b/java-auditmanager/proto-google-cloud-auditmanager-v1/pom.xml index a1fc1e235456..1af7e2ad68df 100644 --- a/java-auditmanager/proto-google-cloud-auditmanager-v1/pom.xml +++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-auditmanager-v1 - 0.2.0-SNAPSHOT + 0.3.0 proto-google-cloud-auditmanager-v1 Proto library for google-cloud-auditmanager com.google.cloud google-cloud-auditmanager-parent - 0.2.0-SNAPSHOT + 0.3.0 diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/V1mainProto.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/V1mainProto.java index 5284e049bd25..5ffafbd044e9 100644 --- a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/V1mainProto.java +++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/V1mainProto.java @@ -411,8 +411,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ions/*/standards/*}/controls\032O\312A\033auditma" + "nager.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\226\006\n" + " com.google.cloud.auditmanager.v1B\013V1mainProtoP" - + "\001ZHgoogle.golang.org/genproto/googleapis" - + "/cloud/auditmanager/v1;auditmanager\252\002\034Go" + + "\001ZHcloud.google.com/go/auditmanager/apiv" + + "1main/auditmanagerpb;auditmanagerpb\252\002\034Go" + "ogle.Cloud.AuditManager.V1\312\002\034Google\\Clou" + "d\\AuditManager\\V1\352\002\037Google::Cloud::AuditManager::V1\352AS\n" + "*auditmanager.googleapis." diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/proto/google/cloud/auditmanager/v1/auditmanager.proto b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/proto/google/cloud/auditmanager/v1/auditmanager.proto index 94ba0a03a240..c457849cb5a4 100644 --- a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/proto/google/cloud/auditmanager/v1/auditmanager.proto +++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/proto/google/cloud/auditmanager/v1/auditmanager.proto @@ -24,7 +24,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AuditManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/auditmanager/v1;auditmanager"; +option go_package = "cloud.google.com/go/auditmanager/apiv1main/auditmanagerpb;auditmanagerpb"; option java_multiple_files = true; option java_outer_classname = "V1mainProto"; option java_package = "com.google.cloud.auditmanager.v1"; diff --git a/java-automl/README.md b/java-automl/README.md index 37d0ea100b47..dcc44189bb78 100644 --- a/java-automl/README.md +++ b/java-automl/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-automl - 2.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-automl:2.82.0' +implementation 'com.google.cloud:google-cloud-automl:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "2.83.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-automl/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-automl.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-automl/2.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-automl/2.83.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-automl/google-cloud-automl-bom/pom.xml b/java-automl/google-cloud-automl-bom/pom.xml index 20dfbe0766d9..0cc581ab392c 100644 --- a/java-automl/google-cloud-automl-bom/pom.xml +++ b/java-automl/google-cloud-automl-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-automl-bom - 2.84.0-SNAPSHOT + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-automl - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc grpc-google-cloud-automl-v1beta1 - 0.171.0-SNAPSHOT + 0.172.0 com.google.api.grpc grpc-google-cloud-automl-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc proto-google-cloud-automl-v1beta1 - 0.171.0-SNAPSHOT + 0.172.0 com.google.api.grpc proto-google-cloud-automl-v1 - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-automl/google-cloud-automl/pom.xml b/java-automl/google-cloud-automl/pom.xml index 142dfdb74e44..914b578e924f 100644 --- a/java-automl/google-cloud-automl/pom.xml +++ b/java-automl/google-cloud-automl/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-automl - 2.84.0-SNAPSHOT + 2.85.0 jar Google Cloud AutoML Java idiomatic client for Google Cloud Auto ML com.google.cloud google-cloud-automl-parent - 2.84.0-SNAPSHOT + 2.85.0 google-cloud-automl diff --git a/java-automl/grpc-google-cloud-automl-v1/pom.xml b/java-automl/grpc-google-cloud-automl-v1/pom.xml index 0f9796e869b6..1a35e8179381 100644 --- a/java-automl/grpc-google-cloud-automl-v1/pom.xml +++ b/java-automl/grpc-google-cloud-automl-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-automl-v1 - 2.84.0-SNAPSHOT + 2.85.0 grpc-google-cloud-automl-v1 GRPC library for grpc-google-cloud-automl-v1 com.google.cloud google-cloud-automl-parent - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-automl/grpc-google-cloud-automl-v1beta1/pom.xml b/java-automl/grpc-google-cloud-automl-v1beta1/pom.xml index bef57e43f65c..4b4fe6a30f46 100644 --- a/java-automl/grpc-google-cloud-automl-v1beta1/pom.xml +++ b/java-automl/grpc-google-cloud-automl-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-automl-v1beta1 - 0.171.0-SNAPSHOT + 0.172.0 grpc-google-cloud-automl-v1beta1 GRPC library for grpc-google-cloud-automl-v1beta1 com.google.cloud google-cloud-automl-parent - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-automl/pom.xml b/java-automl/pom.xml index 363b9350092e..71fd6ef520ec 100644 --- a/java-automl/pom.xml +++ b/java-automl/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-automl-parent pom - 2.84.0-SNAPSHOT + 2.85.0 Google Cloud AutoML Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-automl-v1beta1 - 0.171.0-SNAPSHOT + 0.172.0 com.google.api.grpc proto-google-cloud-automl-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc grpc-google-cloud-automl-v1beta1 - 0.171.0-SNAPSHOT + 0.172.0 com.google.api.grpc grpc-google-cloud-automl-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.cloud google-cloud-automl - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-automl/proto-google-cloud-automl-v1/pom.xml b/java-automl/proto-google-cloud-automl-v1/pom.xml index 81044d423642..4518f306c9b0 100644 --- a/java-automl/proto-google-cloud-automl-v1/pom.xml +++ b/java-automl/proto-google-cloud-automl-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-automl-v1 - 2.84.0-SNAPSHOT + 2.85.0 proto-google-cloud-automl-v1 PROTO library for proto-google-cloud-automl-v1 com.google.cloud google-cloud-automl-parent - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-automl/proto-google-cloud-automl-v1beta1/pom.xml b/java-automl/proto-google-cloud-automl-v1beta1/pom.xml index 0c14c310273e..40477ee0ff36 100644 --- a/java-automl/proto-google-cloud-automl-v1beta1/pom.xml +++ b/java-automl/proto-google-cloud-automl-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-automl-v1beta1 - 0.171.0-SNAPSHOT + 0.172.0 proto-google-cloud-automl-v1beta1 PROTO library for proto-google-cloud-automl-v1beta1 com.google.cloud google-cloud-automl-parent - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-backupdr/README.md b/java-backupdr/README.md index 01e4a389117e..8e71eb09b7ea 100644 --- a/java-backupdr/README.md +++ b/java-backupdr/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-backupdr - 0.41.0 + 0.42.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-backupdr:0.41.0' +implementation 'com.google.cloud:google-cloud-backupdr:0.42.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.41.0" +libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.42.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-backupdr.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/0.41.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/0.42.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-backupdr/google-cloud-backupdr-bom/pom.xml b/java-backupdr/google-cloud-backupdr-bom/pom.xml index e87cc27489a1..de7ac96b9ed7 100644 --- a/java-backupdr/google-cloud-backupdr-bom/pom.xml +++ b/java-backupdr/google-cloud-backupdr-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-backupdr-bom - 0.43.0-SNAPSHOT + 0.44.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-backupdr - 0.43.0-SNAPSHOT + 0.44.0 com.google.api.grpc grpc-google-cloud-backupdr-v1 - 0.43.0-SNAPSHOT + 0.44.0 com.google.api.grpc proto-google-cloud-backupdr-v1 - 0.43.0-SNAPSHOT + 0.44.0 diff --git a/java-backupdr/google-cloud-backupdr/pom.xml b/java-backupdr/google-cloud-backupdr/pom.xml index 721420bf3d3e..acccdc251773 100644 --- a/java-backupdr/google-cloud-backupdr/pom.xml +++ b/java-backupdr/google-cloud-backupdr/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-backupdr - 0.43.0-SNAPSHOT + 0.44.0 jar Google Backup and DR Service API Backup and DR Service API Backup and DR Service is a powerful, centralized, cloud-first backup and disaster recovery solution for cloud-based and hybrid workloads. com.google.cloud google-cloud-backupdr-parent - 0.43.0-SNAPSHOT + 0.44.0 google-cloud-backupdr diff --git a/java-backupdr/grpc-google-cloud-backupdr-v1/pom.xml b/java-backupdr/grpc-google-cloud-backupdr-v1/pom.xml index 9fc3c18c16a0..81274935fda6 100644 --- a/java-backupdr/grpc-google-cloud-backupdr-v1/pom.xml +++ b/java-backupdr/grpc-google-cloud-backupdr-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-backupdr-v1 - 0.43.0-SNAPSHOT + 0.44.0 grpc-google-cloud-backupdr-v1 GRPC library for google-cloud-backupdr com.google.cloud google-cloud-backupdr-parent - 0.43.0-SNAPSHOT + 0.44.0 diff --git a/java-backupdr/pom.xml b/java-backupdr/pom.xml index 0fdd8689999b..c24600075d4a 100644 --- a/java-backupdr/pom.xml +++ b/java-backupdr/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-backupdr-parent pom - 0.43.0-SNAPSHOT + 0.44.0 Google Backup and DR Service API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-backupdr - 0.43.0-SNAPSHOT + 0.44.0 com.google.api.grpc grpc-google-cloud-backupdr-v1 - 0.43.0-SNAPSHOT + 0.44.0 com.google.api.grpc proto-google-cloud-backupdr-v1 - 0.43.0-SNAPSHOT + 0.44.0 diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/pom.xml b/java-backupdr/proto-google-cloud-backupdr-v1/pom.xml index bc9ffce9f394..62692f16d713 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/pom.xml +++ b/java-backupdr/proto-google-cloud-backupdr-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-backupdr-v1 - 0.43.0-SNAPSHOT + 0.44.0 proto-google-cloud-backupdr-v1 Proto library for google-cloud-backupdr com.google.cloud google-cloud-backupdr-parent - 0.43.0-SNAPSHOT + 0.44.0 diff --git a/java-bare-metal-solution/README.md b/java-bare-metal-solution/README.md index 9e7030d0e962..7ea239aba3d8 100644 --- a/java-bare-metal-solution/README.md +++ b/java-bare-metal-solution/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bare-metal-solution - 0.82.0 + 0.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.82.0' +implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.83.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bare-metal-solution/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bare-metal-solution.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/0.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/0.83.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bare-metal-solution/google-cloud-bare-metal-solution-bom/pom.xml b/java-bare-metal-solution/google-cloud-bare-metal-solution-bom/pom.xml index 678f4c01ea62..5b8c47ccc39a 100644 --- a/java-bare-metal-solution/google-cloud-bare-metal-solution-bom/pom.xml +++ b/java-bare-metal-solution/google-cloud-bare-metal-solution-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bare-metal-solution-bom - 0.84.0-SNAPSHOT + 0.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-bare-metal-solution - 0.84.0-SNAPSHOT + 0.85.0 com.google.api.grpc grpc-google-cloud-bare-metal-solution-v2 - 0.84.0-SNAPSHOT + 0.85.0 com.google.api.grpc proto-google-cloud-bare-metal-solution-v2 - 0.84.0-SNAPSHOT + 0.85.0 diff --git a/java-bare-metal-solution/google-cloud-bare-metal-solution/pom.xml b/java-bare-metal-solution/google-cloud-bare-metal-solution/pom.xml index 30f75830e0e2..225eb40187cc 100644 --- a/java-bare-metal-solution/google-cloud-bare-metal-solution/pom.xml +++ b/java-bare-metal-solution/google-cloud-bare-metal-solution/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bare-metal-solution - 0.84.0-SNAPSHOT + 0.85.0 jar Google Bare Metal SOlution Bare Metal SOlution Bring your Oracle workloads to Google Cloud with Bare Metal Solution and jumpstart your cloud journey with minimal risk. com.google.cloud google-cloud-bare-metal-solution-parent - 0.84.0-SNAPSHOT + 0.85.0 google-cloud-bare-metal-solution diff --git a/java-bare-metal-solution/grpc-google-cloud-bare-metal-solution-v2/pom.xml b/java-bare-metal-solution/grpc-google-cloud-bare-metal-solution-v2/pom.xml index 5a34f42c7fe8..9b1e12826876 100644 --- a/java-bare-metal-solution/grpc-google-cloud-bare-metal-solution-v2/pom.xml +++ b/java-bare-metal-solution/grpc-google-cloud-bare-metal-solution-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bare-metal-solution-v2 - 0.84.0-SNAPSHOT + 0.85.0 grpc-google-cloud-bare-metal-solution-v2 GRPC library for google-cloud-bare-metal-solution com.google.cloud google-cloud-bare-metal-solution-parent - 0.84.0-SNAPSHOT + 0.85.0 diff --git a/java-bare-metal-solution/pom.xml b/java-bare-metal-solution/pom.xml index c1399c776395..d79c542b85ff 100644 --- a/java-bare-metal-solution/pom.xml +++ b/java-bare-metal-solution/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bare-metal-solution-parent pom - 0.84.0-SNAPSHOT + 0.85.0 Google Bare Metal SOlution Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-bare-metal-solution - 0.84.0-SNAPSHOT + 0.85.0 com.google.api.grpc grpc-google-cloud-bare-metal-solution-v2 - 0.84.0-SNAPSHOT + 0.85.0 com.google.api.grpc proto-google-cloud-bare-metal-solution-v2 - 0.84.0-SNAPSHOT + 0.85.0 diff --git a/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/pom.xml b/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/pom.xml index d44390e5abb5..595bb3ce3e21 100644 --- a/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/pom.xml +++ b/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bare-metal-solution-v2 - 0.84.0-SNAPSHOT + 0.85.0 proto-google-cloud-bare-metal-solution-v2 Proto library for google-cloud-bare-metal-solution com.google.cloud google-cloud-bare-metal-solution-parent - 0.84.0-SNAPSHOT + 0.85.0 diff --git a/java-batch/README.md b/java-batch/README.md index b9df0ca805f0..3ed463ad2720 100644 --- a/java-batch/README.md +++ b/java-batch/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-batch - 0.82.0 + 0.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-batch:0.82.0' +implementation 'com.google.cloud:google-cloud-batch:0.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.83.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-batch/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-batch.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.83.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-batch/google-cloud-batch-bom/pom.xml b/java-batch/google-cloud-batch-bom/pom.xml index be296574db61..83e46a080482 100644 --- a/java-batch/google-cloud-batch-bom/pom.xml +++ b/java-batch/google-cloud-batch-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-batch-bom - 0.84.0-SNAPSHOT + 0.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-batch - 0.84.0-SNAPSHOT + 0.85.0 com.google.api.grpc grpc-google-cloud-batch-v1 - 0.84.0-SNAPSHOT + 0.85.0 com.google.api.grpc grpc-google-cloud-batch-v1alpha - 0.84.0-SNAPSHOT + 0.85.0 com.google.api.grpc proto-google-cloud-batch-v1 - 0.84.0-SNAPSHOT + 0.85.0 com.google.api.grpc proto-google-cloud-batch-v1alpha - 0.84.0-SNAPSHOT + 0.85.0 diff --git a/java-batch/google-cloud-batch/pom.xml b/java-batch/google-cloud-batch/pom.xml index e1a80d11e3c5..5eade8210094 100644 --- a/java-batch/google-cloud-batch/pom.xml +++ b/java-batch/google-cloud-batch/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-batch - 0.84.0-SNAPSHOT + 0.85.0 jar Google Google Cloud Batch Google Cloud Batch n/a com.google.cloud google-cloud-batch-parent - 0.84.0-SNAPSHOT + 0.85.0 google-cloud-batch diff --git a/java-batch/grpc-google-cloud-batch-v1/pom.xml b/java-batch/grpc-google-cloud-batch-v1/pom.xml index a0f51ebe3c77..5a514b210f6a 100644 --- a/java-batch/grpc-google-cloud-batch-v1/pom.xml +++ b/java-batch/grpc-google-cloud-batch-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-batch-v1 - 0.84.0-SNAPSHOT + 0.85.0 grpc-google-cloud-batch-v1 GRPC library for google-cloud-batch com.google.cloud google-cloud-batch-parent - 0.84.0-SNAPSHOT + 0.85.0 diff --git a/java-batch/grpc-google-cloud-batch-v1alpha/pom.xml b/java-batch/grpc-google-cloud-batch-v1alpha/pom.xml index 46a096ef420d..c815bb743cef 100644 --- a/java-batch/grpc-google-cloud-batch-v1alpha/pom.xml +++ b/java-batch/grpc-google-cloud-batch-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-batch-v1alpha - 0.84.0-SNAPSHOT + 0.85.0 grpc-google-cloud-batch-v1alpha GRPC library for google-cloud-batch com.google.cloud google-cloud-batch-parent - 0.84.0-SNAPSHOT + 0.85.0 diff --git a/java-batch/pom.xml b/java-batch/pom.xml index db440c1670f8..2a8f934db9fd 100644 --- a/java-batch/pom.xml +++ b/java-batch/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-batch-parent pom - 0.84.0-SNAPSHOT + 0.85.0 Google Google Cloud Batch Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-batch - 0.84.0-SNAPSHOT + 0.85.0 com.google.api.grpc proto-google-cloud-batch-v1alpha - 0.84.0-SNAPSHOT + 0.85.0 com.google.api.grpc grpc-google-cloud-batch-v1alpha - 0.84.0-SNAPSHOT + 0.85.0 com.google.api.grpc grpc-google-cloud-batch-v1 - 0.84.0-SNAPSHOT + 0.85.0 com.google.api.grpc proto-google-cloud-batch-v1 - 0.84.0-SNAPSHOT + 0.85.0 diff --git a/java-batch/proto-google-cloud-batch-v1/pom.xml b/java-batch/proto-google-cloud-batch-v1/pom.xml index d1b96c6cf27f..b2dc1e1f39f5 100644 --- a/java-batch/proto-google-cloud-batch-v1/pom.xml +++ b/java-batch/proto-google-cloud-batch-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-batch-v1 - 0.84.0-SNAPSHOT + 0.85.0 proto-google-cloud-batch-v1 Proto library for google-cloud-batch com.google.cloud google-cloud-batch-parent - 0.84.0-SNAPSHOT + 0.85.0 diff --git a/java-batch/proto-google-cloud-batch-v1alpha/pom.xml b/java-batch/proto-google-cloud-batch-v1alpha/pom.xml index 0c334378635a..06a803164235 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/pom.xml +++ b/java-batch/proto-google-cloud-batch-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-batch-v1alpha - 0.84.0-SNAPSHOT + 0.85.0 proto-google-cloud-batch-v1alpha Proto library for google-cloud-batch com.google.cloud google-cloud-batch-parent - 0.84.0-SNAPSHOT + 0.85.0 diff --git a/java-beyondcorp-appconnections/README.md b/java-beyondcorp-appconnections/README.md index fd83b8bfa4b8..23120b0418c6 100644 --- a/java-beyondcorp-appconnections/README.md +++ b/java-beyondcorp-appconnections/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appconnections - 0.80.0 + 0.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections:0.80.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections:0.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "0.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "0.81.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-appconnections/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-appconnections.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/0.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/0.81.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections-bom/pom.xml b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections-bom/pom.xml index 643620fd31d6..a2b66ef09766 100644 --- a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections-bom/pom.xml +++ b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appconnections-bom - 0.82.0-SNAPSHOT + 0.83.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-beyondcorp-appconnections - 0.82.0-SNAPSHOT + 0.83.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appconnections-v1 - 0.82.0-SNAPSHOT + 0.83.0 com.google.api.grpc proto-google-cloud-beyondcorp-appconnections-v1 - 0.82.0-SNAPSHOT + 0.83.0 diff --git a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/pom.xml b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/pom.xml index 193be3945667..5eb6470b66d6 100644 --- a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/pom.xml +++ b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appconnections - 0.82.0-SNAPSHOT + 0.83.0 jar Google BeyondCorp AppConnections BeyondCorp AppConnections is Google's implementation of the zero trust model. It builds upon a decade of experience at Google, combined with ideas and best practices from the community. By shifting access controls from the network perimeter to individual users, BeyondCorp enables secure work from virtually any location without the need for a traditional VPN. com.google.cloud google-cloud-beyondcorp-appconnections-parent - 0.82.0-SNAPSHOT + 0.83.0 google-cloud-beyondcorp-appconnections diff --git a/java-beyondcorp-appconnections/grpc-google-cloud-beyondcorp-appconnections-v1/pom.xml b/java-beyondcorp-appconnections/grpc-google-cloud-beyondcorp-appconnections-v1/pom.xml index 02763c28e4c6..16511f1bb041 100644 --- a/java-beyondcorp-appconnections/grpc-google-cloud-beyondcorp-appconnections-v1/pom.xml +++ b/java-beyondcorp-appconnections/grpc-google-cloud-beyondcorp-appconnections-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appconnections-v1 - 0.82.0-SNAPSHOT + 0.83.0 grpc-google-cloud-beyondcorp-appconnections-v1 GRPC library for google-cloud-beyondcorp-appconnections com.google.cloud google-cloud-beyondcorp-appconnections-parent - 0.82.0-SNAPSHOT + 0.83.0 diff --git a/java-beyondcorp-appconnections/pom.xml b/java-beyondcorp-appconnections/pom.xml index 08a421476cb4..cacba30e4e7e 100644 --- a/java-beyondcorp-appconnections/pom.xml +++ b/java-beyondcorp-appconnections/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-beyondcorp-appconnections-parent pom - 0.82.0-SNAPSHOT + 0.83.0 Google BeyondCorp AppConnections Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-beyondcorp-appconnections - 0.82.0-SNAPSHOT + 0.83.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appconnections-v1 - 0.82.0-SNAPSHOT + 0.83.0 com.google.api.grpc proto-google-cloud-beyondcorp-appconnections-v1 - 0.82.0-SNAPSHOT + 0.83.0 diff --git a/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/pom.xml b/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/pom.xml index 8ae67321584a..c292ca361f7c 100644 --- a/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/pom.xml +++ b/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-beyondcorp-appconnections-v1 - 0.82.0-SNAPSHOT + 0.83.0 proto-google-cloud-beyondcorp-appconnections-v1 Proto library for google-cloud-beyondcorp-appconnections com.google.cloud google-cloud-beyondcorp-appconnections-parent - 0.82.0-SNAPSHOT + 0.83.0 diff --git a/java-beyondcorp-appconnectors/README.md b/java-beyondcorp-appconnectors/README.md index 1696363a99b4..2db4dca08198 100644 --- a/java-beyondcorp-appconnectors/README.md +++ b/java-beyondcorp-appconnectors/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appconnectors - 0.80.0 + 0.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors:0.80.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors:0.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "0.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "0.81.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-appconnectors/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-appconnectors.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/0.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/0.81.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors-bom/pom.xml b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors-bom/pom.xml index 525540b08daa..9a11a9ec3098 100644 --- a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors-bom/pom.xml +++ b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appconnectors-bom - 0.82.0-SNAPSHOT + 0.83.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-beyondcorp-appconnectors - 0.82.0-SNAPSHOT + 0.83.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appconnectors-v1 - 0.82.0-SNAPSHOT + 0.83.0 com.google.api.grpc proto-google-cloud-beyondcorp-appconnectors-v1 - 0.82.0-SNAPSHOT + 0.83.0 diff --git a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/pom.xml b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/pom.xml index f94ed92bcb17..8828370a088f 100644 --- a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/pom.xml +++ b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appconnectors - 0.82.0-SNAPSHOT + 0.83.0 jar Google BeyondCorp AppConnectors BeyondCorp AppConnectors provides methods to manage (create/read/update/delete) BeyondCorp AppConnectors. com.google.cloud google-cloud-beyondcorp-appconnectors-parent - 0.82.0-SNAPSHOT + 0.83.0 google-cloud-beyondcorp-appconnectors diff --git a/java-beyondcorp-appconnectors/grpc-google-cloud-beyondcorp-appconnectors-v1/pom.xml b/java-beyondcorp-appconnectors/grpc-google-cloud-beyondcorp-appconnectors-v1/pom.xml index 74ef29928799..553991184cc8 100644 --- a/java-beyondcorp-appconnectors/grpc-google-cloud-beyondcorp-appconnectors-v1/pom.xml +++ b/java-beyondcorp-appconnectors/grpc-google-cloud-beyondcorp-appconnectors-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appconnectors-v1 - 0.82.0-SNAPSHOT + 0.83.0 grpc-google-cloud-beyondcorp-appconnectors-v1 GRPC library for google-cloud-beyondcorp-appconnectors com.google.cloud google-cloud-beyondcorp-appconnectors-parent - 0.82.0-SNAPSHOT + 0.83.0 diff --git a/java-beyondcorp-appconnectors/pom.xml b/java-beyondcorp-appconnectors/pom.xml index d84382211b57..8a56a8798c66 100644 --- a/java-beyondcorp-appconnectors/pom.xml +++ b/java-beyondcorp-appconnectors/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-beyondcorp-appconnectors-parent pom - 0.82.0-SNAPSHOT + 0.83.0 Google BeyondCorp AppConnectors Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-beyondcorp-appconnectors - 0.82.0-SNAPSHOT + 0.83.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appconnectors-v1 - 0.82.0-SNAPSHOT + 0.83.0 com.google.api.grpc proto-google-cloud-beyondcorp-appconnectors-v1 - 0.82.0-SNAPSHOT + 0.83.0 diff --git a/java-beyondcorp-appconnectors/proto-google-cloud-beyondcorp-appconnectors-v1/pom.xml b/java-beyondcorp-appconnectors/proto-google-cloud-beyondcorp-appconnectors-v1/pom.xml index de9ccbb4774c..ad68e3ef4ab7 100644 --- a/java-beyondcorp-appconnectors/proto-google-cloud-beyondcorp-appconnectors-v1/pom.xml +++ b/java-beyondcorp-appconnectors/proto-google-cloud-beyondcorp-appconnectors-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-beyondcorp-appconnectors-v1 - 0.82.0-SNAPSHOT + 0.83.0 proto-google-cloud-beyondcorp-appconnectors-v1 Proto library for google-cloud-beyondcorp-appconnectors com.google.cloud google-cloud-beyondcorp-appconnectors-parent - 0.82.0-SNAPSHOT + 0.83.0 diff --git a/java-beyondcorp-appgateways/README.md b/java-beyondcorp-appgateways/README.md index ad1e2cf4f082..488ab5c02b50 100644 --- a/java-beyondcorp-appgateways/README.md +++ b/java-beyondcorp-appgateways/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appgateways - 0.80.0 + 0.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways:0.80.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways:0.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "0.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "0.81.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-appgateways/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-appgateways.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/0.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/0.81.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways-bom/pom.xml b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways-bom/pom.xml index 6d63438cc969..15041699cd5c 100644 --- a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways-bom/pom.xml +++ b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appgateways-bom - 0.82.0-SNAPSHOT + 0.83.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-beyondcorp-appgateways - 0.82.0-SNAPSHOT + 0.83.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appgateways-v1 - 0.82.0-SNAPSHOT + 0.83.0 com.google.api.grpc proto-google-cloud-beyondcorp-appgateways-v1 - 0.82.0-SNAPSHOT + 0.83.0 diff --git a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/pom.xml b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/pom.xml index 19676fd950dc..e867ecc1fbe2 100644 --- a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/pom.xml +++ b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appgateways - 0.82.0-SNAPSHOT + 0.83.0 jar Google BeyondCorp AppGateways BeyondCorp AppGateways A zero trust solution that enables secure access to applications and resources, and offers integrated threat and data protection. com.google.cloud google-cloud-beyondcorp-appgateways-parent - 0.82.0-SNAPSHOT + 0.83.0 google-cloud-beyondcorp-appgateways diff --git a/java-beyondcorp-appgateways/grpc-google-cloud-beyondcorp-appgateways-v1/pom.xml b/java-beyondcorp-appgateways/grpc-google-cloud-beyondcorp-appgateways-v1/pom.xml index 3222a81c77ed..2a85b178312c 100644 --- a/java-beyondcorp-appgateways/grpc-google-cloud-beyondcorp-appgateways-v1/pom.xml +++ b/java-beyondcorp-appgateways/grpc-google-cloud-beyondcorp-appgateways-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appgateways-v1 - 0.82.0-SNAPSHOT + 0.83.0 grpc-google-cloud-beyondcorp-appgateways-v1 GRPC library for google-cloud-beyondcorp-appgateways com.google.cloud google-cloud-beyondcorp-appgateways-parent - 0.82.0-SNAPSHOT + 0.83.0 diff --git a/java-beyondcorp-appgateways/pom.xml b/java-beyondcorp-appgateways/pom.xml index 7ce6a6d5ec8c..cff273acc0c2 100644 --- a/java-beyondcorp-appgateways/pom.xml +++ b/java-beyondcorp-appgateways/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-beyondcorp-appgateways-parent pom - 0.82.0-SNAPSHOT + 0.83.0 Google BeyondCorp AppGateways Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-beyondcorp-appgateways - 0.82.0-SNAPSHOT + 0.83.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appgateways-v1 - 0.82.0-SNAPSHOT + 0.83.0 com.google.api.grpc proto-google-cloud-beyondcorp-appgateways-v1 - 0.82.0-SNAPSHOT + 0.83.0 diff --git a/java-beyondcorp-appgateways/proto-google-cloud-beyondcorp-appgateways-v1/pom.xml b/java-beyondcorp-appgateways/proto-google-cloud-beyondcorp-appgateways-v1/pom.xml index 3562ef32ed3a..ac4b9ce48d98 100644 --- a/java-beyondcorp-appgateways/proto-google-cloud-beyondcorp-appgateways-v1/pom.xml +++ b/java-beyondcorp-appgateways/proto-google-cloud-beyondcorp-appgateways-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-beyondcorp-appgateways-v1 - 0.82.0-SNAPSHOT + 0.83.0 proto-google-cloud-beyondcorp-appgateways-v1 Proto library for google-cloud-beyondcorp-appgateways com.google.cloud google-cloud-beyondcorp-appgateways-parent - 0.82.0-SNAPSHOT + 0.83.0 diff --git a/java-beyondcorp-clientconnectorservices/README.md b/java-beyondcorp-clientconnectorservices/README.md index 9ab8d8c19e1a..3c8c41a2c331 100644 --- a/java-beyondcorp-clientconnectorservices/README.md +++ b/java-beyondcorp-clientconnectorservices/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-clientconnectorservices - 0.80.0 + 0.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices:0.80.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices:0.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "0.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "0.81.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-clientconnectorservices/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/0.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/0.81.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices-bom/pom.xml b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices-bom/pom.xml index 474d7a44bc38..5ea654492153 100644 --- a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices-bom/pom.xml +++ b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-clientconnectorservices-bom - 0.82.0-SNAPSHOT + 0.83.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-beyondcorp-clientconnectorservices - 0.82.0-SNAPSHOT + 0.83.0 com.google.api.grpc grpc-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.82.0-SNAPSHOT + 0.83.0 com.google.api.grpc proto-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.82.0-SNAPSHOT + 0.83.0 diff --git a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/pom.xml b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/pom.xml index 78f71cdf2180..1ad39d06cddd 100644 --- a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/pom.xml +++ b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-clientconnectorservices - 0.82.0-SNAPSHOT + 0.83.0 jar Google BeyondCorp ClientConnectorServices BeyondCorp ClientConnectorServices A zero trust solution that enables secure access to applications and resources, and offers integrated threat and data protection. com.google.cloud google-cloud-beyondcorp-clientconnectorservices-parent - 0.82.0-SNAPSHOT + 0.83.0 google-cloud-beyondcorp-clientconnectorservices diff --git a/java-beyondcorp-clientconnectorservices/grpc-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml b/java-beyondcorp-clientconnectorservices/grpc-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml index 42b8df22297c..7258ca475182 100644 --- a/java-beyondcorp-clientconnectorservices/grpc-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml +++ b/java-beyondcorp-clientconnectorservices/grpc-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.82.0-SNAPSHOT + 0.83.0 grpc-google-cloud-beyondcorp-clientconnectorservices-v1 GRPC library for google-cloud-beyondcorp-clientconnectorservices com.google.cloud google-cloud-beyondcorp-clientconnectorservices-parent - 0.82.0-SNAPSHOT + 0.83.0 diff --git a/java-beyondcorp-clientconnectorservices/pom.xml b/java-beyondcorp-clientconnectorservices/pom.xml index a54ddebd06d5..f27a780afde8 100644 --- a/java-beyondcorp-clientconnectorservices/pom.xml +++ b/java-beyondcorp-clientconnectorservices/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-beyondcorp-clientconnectorservices-parent pom - 0.82.0-SNAPSHOT + 0.83.0 Google BeyondCorp ClientConnectorServices Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-beyondcorp-clientconnectorservices - 0.82.0-SNAPSHOT + 0.83.0 com.google.api.grpc grpc-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.82.0-SNAPSHOT + 0.83.0 com.google.api.grpc proto-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.82.0-SNAPSHOT + 0.83.0 diff --git a/java-beyondcorp-clientconnectorservices/proto-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml b/java-beyondcorp-clientconnectorservices/proto-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml index 64378f803a04..36b05ee0d97e 100644 --- a/java-beyondcorp-clientconnectorservices/proto-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml +++ b/java-beyondcorp-clientconnectorservices/proto-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.82.0-SNAPSHOT + 0.83.0 proto-google-cloud-beyondcorp-clientconnectorservices-v1 Proto library for google-cloud-beyondcorp-clientconnectorservices com.google.cloud google-cloud-beyondcorp-clientconnectorservices-parent - 0.82.0-SNAPSHOT + 0.83.0 diff --git a/java-beyondcorp-clientgateways/README.md b/java-beyondcorp-clientgateways/README.md index 211d0c3a175c..9bb921de9f42 100644 --- a/java-beyondcorp-clientgateways/README.md +++ b/java-beyondcorp-clientgateways/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-clientgateways - 0.80.0 + 0.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways:0.80.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways:0.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "0.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "0.81.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-clientgateways/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-clientgateways.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/0.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/0.81.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways-bom/pom.xml b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways-bom/pom.xml index 3fabc40babad..d4e9e8769739 100644 --- a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways-bom/pom.xml +++ b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-clientgateways-bom - 0.82.0-SNAPSHOT + 0.83.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-beyondcorp-clientgateways - 0.82.0-SNAPSHOT + 0.83.0 com.google.api.grpc grpc-google-cloud-beyondcorp-clientgateways-v1 - 0.82.0-SNAPSHOT + 0.83.0 com.google.api.grpc proto-google-cloud-beyondcorp-clientgateways-v1 - 0.82.0-SNAPSHOT + 0.83.0 diff --git a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/pom.xml b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/pom.xml index 8919fc2b92fe..15d6b8f4d9fc 100644 --- a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/pom.xml +++ b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-clientgateways - 0.82.0-SNAPSHOT + 0.83.0 jar Google BeyondCorp ClientGateways BeyondCorp ClientGateways A zero trust solution that enables secure access to applications and resources, and offers integrated threat and data protection. com.google.cloud google-cloud-beyondcorp-clientgateways-parent - 0.82.0-SNAPSHOT + 0.83.0 google-cloud-beyondcorp-clientgateways diff --git a/java-beyondcorp-clientgateways/grpc-google-cloud-beyondcorp-clientgateways-v1/pom.xml b/java-beyondcorp-clientgateways/grpc-google-cloud-beyondcorp-clientgateways-v1/pom.xml index c87f24e658d1..a42f2e752f2e 100644 --- a/java-beyondcorp-clientgateways/grpc-google-cloud-beyondcorp-clientgateways-v1/pom.xml +++ b/java-beyondcorp-clientgateways/grpc-google-cloud-beyondcorp-clientgateways-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-beyondcorp-clientgateways-v1 - 0.82.0-SNAPSHOT + 0.83.0 grpc-google-cloud-beyondcorp-clientgateways-v1 GRPC library for google-cloud-beyondcorp-clientgateways com.google.cloud google-cloud-beyondcorp-clientgateways-parent - 0.82.0-SNAPSHOT + 0.83.0 diff --git a/java-beyondcorp-clientgateways/pom.xml b/java-beyondcorp-clientgateways/pom.xml index 0489e965c924..41b228ccb2d7 100644 --- a/java-beyondcorp-clientgateways/pom.xml +++ b/java-beyondcorp-clientgateways/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-beyondcorp-clientgateways-parent pom - 0.82.0-SNAPSHOT + 0.83.0 Google BeyondCorp ClientGateways Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-beyondcorp-clientgateways - 0.82.0-SNAPSHOT + 0.83.0 com.google.api.grpc grpc-google-cloud-beyondcorp-clientgateways-v1 - 0.82.0-SNAPSHOT + 0.83.0 com.google.api.grpc proto-google-cloud-beyondcorp-clientgateways-v1 - 0.82.0-SNAPSHOT + 0.83.0 diff --git a/java-beyondcorp-clientgateways/proto-google-cloud-beyondcorp-clientgateways-v1/pom.xml b/java-beyondcorp-clientgateways/proto-google-cloud-beyondcorp-clientgateways-v1/pom.xml index 61fd0125aaa2..f2bd78db919d 100644 --- a/java-beyondcorp-clientgateways/proto-google-cloud-beyondcorp-clientgateways-v1/pom.xml +++ b/java-beyondcorp-clientgateways/proto-google-cloud-beyondcorp-clientgateways-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-beyondcorp-clientgateways-v1 - 0.82.0-SNAPSHOT + 0.83.0 proto-google-cloud-beyondcorp-clientgateways-v1 Proto library for google-cloud-beyondcorp-clientgateways com.google.cloud google-cloud-beyondcorp-clientgateways-parent - 0.82.0-SNAPSHOT + 0.83.0 diff --git a/java-biglake/README.md b/java-biglake/README.md index 3bfe137f03b3..f3767802e6dd 100644 --- a/java-biglake/README.md +++ b/java-biglake/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-biglake - 0.70.0 + 0.71.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-biglake:0.70.0' +implementation 'com.google.cloud:google-cloud-biglake:0.71.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.70.0" +libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.71.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-biglake/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-biglake.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.71.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-biglake/google-cloud-biglake-bom/pom.xml b/java-biglake/google-cloud-biglake-bom/pom.xml index eadacda6d37f..c6dac5eb2c0e 100644 --- a/java-biglake/google-cloud-biglake-bom/pom.xml +++ b/java-biglake/google-cloud-biglake-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-biglake-bom - 0.72.0-SNAPSHOT + 0.73.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-biglake - 0.72.0-SNAPSHOT + 0.73.0 com.google.api.grpc grpc-google-cloud-biglake-v1alpha1 - 0.72.0-SNAPSHOT + 0.73.0 com.google.api.grpc grpc-google-cloud-biglake-v1 - 0.72.0-SNAPSHOT + 0.73.0 com.google.api.grpc proto-google-cloud-biglake-v1alpha1 - 0.72.0-SNAPSHOT + 0.73.0 com.google.api.grpc proto-google-cloud-biglake-v1 - 0.72.0-SNAPSHOT + 0.73.0 diff --git a/java-biglake/google-cloud-biglake/pom.xml b/java-biglake/google-cloud-biglake/pom.xml index 2a45e0a7d697..52414d86c18c 100644 --- a/java-biglake/google-cloud-biglake/pom.xml +++ b/java-biglake/google-cloud-biglake/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-biglake - 0.72.0-SNAPSHOT + 0.73.0 jar Google BigLake BigLake The BigLake API provides access to BigLake Metastore, a serverless, fully managed, and highly available metastore for open-source data that can be used for querying Apache Iceberg tables in BigQuery. com.google.cloud google-cloud-biglake-parent - 0.72.0-SNAPSHOT + 0.73.0 google-cloud-biglake diff --git a/java-biglake/grpc-google-cloud-biglake-v1/pom.xml b/java-biglake/grpc-google-cloud-biglake-v1/pom.xml index 1b81d0746551..9e5d81b4e14b 100644 --- a/java-biglake/grpc-google-cloud-biglake-v1/pom.xml +++ b/java-biglake/grpc-google-cloud-biglake-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-biglake-v1 - 0.72.0-SNAPSHOT + 0.73.0 grpc-google-cloud-biglake-v1 GRPC library for google-cloud-biglake com.google.cloud google-cloud-biglake-parent - 0.72.0-SNAPSHOT + 0.73.0 diff --git a/java-biglake/grpc-google-cloud-biglake-v1alpha1/pom.xml b/java-biglake/grpc-google-cloud-biglake-v1alpha1/pom.xml index a89e8b6bdf02..a6121f0458a6 100644 --- a/java-biglake/grpc-google-cloud-biglake-v1alpha1/pom.xml +++ b/java-biglake/grpc-google-cloud-biglake-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-biglake-v1alpha1 - 0.72.0-SNAPSHOT + 0.73.0 grpc-google-cloud-biglake-v1alpha1 GRPC library for google-cloud-biglake com.google.cloud google-cloud-biglake-parent - 0.72.0-SNAPSHOT + 0.73.0 diff --git a/java-biglake/pom.xml b/java-biglake/pom.xml index f3e45caa3d63..4575f692e8e2 100644 --- a/java-biglake/pom.xml +++ b/java-biglake/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-biglake-parent pom - 0.72.0-SNAPSHOT + 0.73.0 Google BigLake Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-biglake - 0.72.0-SNAPSHOT + 0.73.0 com.google.api.grpc proto-google-cloud-biglake-v1 - 0.72.0-SNAPSHOT + 0.73.0 com.google.api.grpc grpc-google-cloud-biglake-v1 - 0.72.0-SNAPSHOT + 0.73.0 com.google.api.grpc grpc-google-cloud-biglake-v1alpha1 - 0.72.0-SNAPSHOT + 0.73.0 com.google.api.grpc proto-google-cloud-biglake-v1alpha1 - 0.72.0-SNAPSHOT + 0.73.0 diff --git a/java-biglake/proto-google-cloud-biglake-v1/pom.xml b/java-biglake/proto-google-cloud-biglake-v1/pom.xml index c3c325be803a..72b019937041 100644 --- a/java-biglake/proto-google-cloud-biglake-v1/pom.xml +++ b/java-biglake/proto-google-cloud-biglake-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-biglake-v1 - 0.72.0-SNAPSHOT + 0.73.0 proto-google-cloud-biglake-v1 Proto library for google-cloud-biglake com.google.cloud google-cloud-biglake-parent - 0.72.0-SNAPSHOT + 0.73.0 diff --git a/java-biglake/proto-google-cloud-biglake-v1alpha1/pom.xml b/java-biglake/proto-google-cloud-biglake-v1alpha1/pom.xml index 878cfc1c0fe2..6540925ff610 100644 --- a/java-biglake/proto-google-cloud-biglake-v1alpha1/pom.xml +++ b/java-biglake/proto-google-cloud-biglake-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-biglake-v1alpha1 - 0.72.0-SNAPSHOT + 0.73.0 proto-google-cloud-biglake-v1alpha1 Proto library for google-cloud-biglake com.google.cloud google-cloud-biglake-parent - 0.72.0-SNAPSHOT + 0.73.0 diff --git a/java-bigquery-data-exchange/README.md b/java-bigquery-data-exchange/README.md index cc3aa8bdf8b4..d7b8d8d10d85 100644 --- a/java-bigquery-data-exchange/README.md +++ b/java-bigquery-data-exchange/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquery-data-exchange - 2.77.0 + 2.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquery-data-exchange:2.77.0' +implementation 'com.google.cloud:google-cloud-bigquery-data-exchange:2.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.78.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquery-data-exchange/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquery-data-exchange.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange-bom/pom.xml b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange-bom/pom.xml index d5225d4f3764..7c3ca02e1b39 100644 --- a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange-bom/pom.xml +++ b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigquery-data-exchange-bom - 2.79.0-SNAPSHOT + 2.80.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-bigquery-data-exchange - 2.79.0-SNAPSHOT + 2.80.0 com.google.api.grpc grpc-google-cloud-bigquery-data-exchange-v1beta1 - 2.79.0-SNAPSHOT + 2.80.0 com.google.api.grpc proto-google-cloud-bigquery-data-exchange-v1beta1 - 2.79.0-SNAPSHOT + 2.80.0 diff --git a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/pom.xml b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/pom.xml index c53ba63f1bb9..0e238a24550f 100644 --- a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/pom.xml +++ b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigquery-data-exchange - 2.79.0-SNAPSHOT + 2.80.0 jar Google Analytics Hub Analytics Hub is a data exchange that allows you to efficiently and securely exchange data assets across organizations to address challenges of data reliability and cost. com.google.cloud google-cloud-bigquery-data-exchange-parent - 2.79.0-SNAPSHOT + 2.80.0 google-cloud-bigquery-data-exchange diff --git a/java-bigquery-data-exchange/grpc-google-cloud-bigquery-data-exchange-v1beta1/pom.xml b/java-bigquery-data-exchange/grpc-google-cloud-bigquery-data-exchange-v1beta1/pom.xml index ec6be86f4b5b..1790c46f3405 100644 --- a/java-bigquery-data-exchange/grpc-google-cloud-bigquery-data-exchange-v1beta1/pom.xml +++ b/java-bigquery-data-exchange/grpc-google-cloud-bigquery-data-exchange-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquery-data-exchange-v1beta1 - 2.79.0-SNAPSHOT + 2.80.0 grpc-google-cloud-bigquery-data-exchange-v1beta1 GRPC library for google-cloud-bigquery-data-exchange com.google.cloud google-cloud-bigquery-data-exchange-parent - 2.79.0-SNAPSHOT + 2.80.0 diff --git a/java-bigquery-data-exchange/pom.xml b/java-bigquery-data-exchange/pom.xml index afda7854a8fd..1b7d9572e78e 100644 --- a/java-bigquery-data-exchange/pom.xml +++ b/java-bigquery-data-exchange/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigquery-data-exchange-parent pom - 2.79.0-SNAPSHOT + 2.80.0 Google Analytics Hub Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-bigquery-data-exchange - 2.79.0-SNAPSHOT + 2.80.0 com.google.api.grpc grpc-google-cloud-bigquery-data-exchange-v1beta1 - 2.79.0-SNAPSHOT + 2.80.0 com.google.api.grpc proto-google-cloud-bigquery-data-exchange-v1beta1 - 2.79.0-SNAPSHOT + 2.80.0 diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/pom.xml b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/pom.xml index 303cbc5a6cd6..baa311202e01 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/pom.xml +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquery-data-exchange-v1beta1 - 2.79.0-SNAPSHOT + 2.80.0 proto-google-cloud-bigquery-data-exchange-v1beta1 Proto library for google-cloud-bigquery-data-exchange com.google.cloud google-cloud-bigquery-data-exchange-parent - 2.79.0-SNAPSHOT + 2.80.0 diff --git a/java-bigqueryconnection/README.md b/java-bigqueryconnection/README.md index 1b267a999002..e36f9597936d 100644 --- a/java-bigqueryconnection/README.md +++ b/java-bigqueryconnection/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigqueryconnection - 2.84.0 + 2.85.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.84.0' +implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.85.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.84.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.85.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/bigquery/docs/reference/reservations/rpc/google.cloud.bigquery.reservation.v1beta1 [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigqueryconnection.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/2.84.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/2.85.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection-bom/pom.xml b/java-bigqueryconnection/google-cloud-bigqueryconnection-bom/pom.xml index a82b39478ffe..e994e58a22a1 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection-bom/pom.xml +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigqueryconnection-bom - 2.86.0-SNAPSHOT + 2.87.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-bigqueryconnection - 2.86.0-SNAPSHOT + 2.87.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1 - 2.86.0-SNAPSHOT + 2.87.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1beta1 - 0.94.0-SNAPSHOT + 0.95.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 - 2.86.0-SNAPSHOT + 2.87.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1beta1 - 0.94.0-SNAPSHOT + 0.95.0 diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/pom.xml b/java-bigqueryconnection/google-cloud-bigqueryconnection/pom.xml index 5a0167b31579..3644b6a670df 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection/pom.xml +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigqueryconnection - 2.86.0-SNAPSHOT + 2.87.0 jar Google Cloud BigQuery Connections is about com.google.cloud google-cloud-bigqueryconnection-parent - 2.86.0-SNAPSHOT + 2.87.0 google-cloud-bigqueryconnection diff --git a/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/pom.xml b/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/pom.xml index a41abbb7c531..88cbc41f0f58 100644 --- a/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/pom.xml +++ b/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1 - 2.86.0-SNAPSHOT + 2.87.0 grpc-google-cloud-bigqueryconnection-v1 GRPC library for grpc-google-cloud-bigqueryconnection-v1 com.google.cloud google-cloud-bigqueryconnection-parent - 2.86.0-SNAPSHOT + 2.87.0 diff --git a/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml b/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml index 4d93afff27c0..427654534056 100644 --- a/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml +++ b/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1beta1 - 0.94.0-SNAPSHOT + 0.95.0 grpc-google-cloud-bigqueryconnection-v1beta1 GRPC library for grpc-google-cloud-bigqueryconnection-v1beta1 com.google.cloud google-cloud-bigqueryconnection-parent - 2.86.0-SNAPSHOT + 2.87.0 diff --git a/java-bigqueryconnection/pom.xml b/java-bigqueryconnection/pom.xml index 16896238b474..175c4cbe50d8 100644 --- a/java-bigqueryconnection/pom.xml +++ b/java-bigqueryconnection/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigqueryconnection-parent pom - 2.86.0-SNAPSHOT + 2.87.0 Google Cloud BigQuery Connections Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-bigqueryconnection - 2.86.0-SNAPSHOT + 2.87.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 - 2.86.0-SNAPSHOT + 2.87.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1 - 2.86.0-SNAPSHOT + 2.87.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1beta1 - 0.94.0-SNAPSHOT + 0.95.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1beta1 - 0.94.0-SNAPSHOT + 0.95.0 diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/pom.xml b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/pom.xml index e703e1bba5d3..c299575c1a1f 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/pom.xml +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 - 2.86.0-SNAPSHOT + 2.87.0 proto-google-cloud-bigqueryconnection-v1 PROTO library for proto-google-cloud-bigqueryconnection-v1 com.google.cloud google-cloud-bigqueryconnection-parent - 2.86.0-SNAPSHOT + 2.87.0 diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml index a438de69bafc..e26783fd7924 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1beta1 - 0.94.0-SNAPSHOT + 0.95.0 proto-google-cloud-bigqueryconnection-v1beta1 PROTO library for proto-google-cloud-bigqueryconnection-v1beta1 com.google.cloud google-cloud-bigqueryconnection-parent - 2.86.0-SNAPSHOT + 2.87.0 diff --git a/java-bigquerydatapolicy/README.md b/java-bigquerydatapolicy/README.md index b091f269d646..afabf70ed666 100644 --- a/java-bigquerydatapolicy/README.md +++ b/java-bigquerydatapolicy/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerydatapolicy - 0.79.0 + 0.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.79.0' +implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.80.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquerydatapolicy/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerydatapolicy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/0.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/0.80.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy-bom/pom.xml b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy-bom/pom.xml index 5d33c7bf1ac1..462f2723a51a 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy-bom/pom.xml +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigquerydatapolicy-bom - 0.81.0-SNAPSHOT + 0.82.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,47 +27,47 @@ com.google.cloud google-cloud-bigquerydatapolicy - 0.81.0-SNAPSHOT + 0.82.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1beta1 - 0.81.0-SNAPSHOT + 0.82.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1 - 0.81.0-SNAPSHOT + 0.82.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v2beta1 - 0.81.0-SNAPSHOT + 0.82.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v2 - 0.81.0-SNAPSHOT + 0.82.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1beta1 - 0.81.0-SNAPSHOT + 0.82.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1 - 0.81.0-SNAPSHOT + 0.82.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v2beta1 - 0.81.0-SNAPSHOT + 0.82.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v2 - 0.81.0-SNAPSHOT + 0.82.0 diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/pom.xml b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/pom.xml index dafc2a79ad63..65a00ca7e01d 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/pom.xml +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigquerydatapolicy - 0.81.0-SNAPSHOT + 0.82.0 jar Google BigQuery DataPolicy API BigQuery DataPolicy API com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.81.0-SNAPSHOT + 0.82.0 google-cloud-bigquerydatapolicy diff --git a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1/pom.xml b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1/pom.xml index cc623033c76c..693a5bae0ab0 100644 --- a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1/pom.xml +++ b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1 - 0.81.0-SNAPSHOT + 0.82.0 grpc-google-cloud-bigquerydatapolicy-v1 GRPC library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.81.0-SNAPSHOT + 0.82.0 diff --git a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1beta1/pom.xml b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1beta1/pom.xml index 0975737e31d7..9391adadb1a6 100644 --- a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1beta1/pom.xml +++ b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1beta1 - 0.81.0-SNAPSHOT + 0.82.0 grpc-google-cloud-bigquerydatapolicy-v1beta1 GRPC library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.81.0-SNAPSHOT + 0.82.0 diff --git a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2/pom.xml b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2/pom.xml index 907e45c27b27..9464eafb2fef 100644 --- a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2/pom.xml +++ b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v2 - 0.81.0-SNAPSHOT + 0.82.0 grpc-google-cloud-bigquerydatapolicy-v2 GRPC library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.81.0-SNAPSHOT + 0.82.0 diff --git a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2beta1/pom.xml b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2beta1/pom.xml index 37886b08ad27..f45c315b62a0 100644 --- a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2beta1/pom.xml +++ b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v2beta1 - 0.81.0-SNAPSHOT + 0.82.0 grpc-google-cloud-bigquerydatapolicy-v2beta1 GRPC library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.81.0-SNAPSHOT + 0.82.0 diff --git a/java-bigquerydatapolicy/pom.xml b/java-bigquerydatapolicy/pom.xml index 1dd50323b7e9..c35db21403b0 100644 --- a/java-bigquerydatapolicy/pom.xml +++ b/java-bigquerydatapolicy/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigquerydatapolicy-parent pom - 0.81.0-SNAPSHOT + 0.82.0 Google BigQuery DataPolicy API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,47 +29,47 @@ com.google.cloud google-cloud-bigquerydatapolicy - 0.81.0-SNAPSHOT + 0.82.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v2 - 0.81.0-SNAPSHOT + 0.82.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v2 - 0.81.0-SNAPSHOT + 0.82.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v2beta1 - 0.81.0-SNAPSHOT + 0.82.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v2beta1 - 0.81.0-SNAPSHOT + 0.82.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1 - 0.81.0-SNAPSHOT + 0.82.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1 - 0.81.0-SNAPSHOT + 0.82.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1beta1 - 0.81.0-SNAPSHOT + 0.82.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1beta1 - 0.81.0-SNAPSHOT + 0.82.0 diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1/pom.xml b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1/pom.xml index 0398fb9dc507..d3bac8c2d197 100644 --- a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1/pom.xml +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1 - 0.81.0-SNAPSHOT + 0.82.0 proto-google-cloud-bigquerydatapolicy-v1 Proto library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.81.0-SNAPSHOT + 0.82.0 diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1beta1/pom.xml b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1beta1/pom.xml index 1bad3d19bae2..7d2ef260ce70 100644 --- a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1beta1/pom.xml +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1beta1 - 0.81.0-SNAPSHOT + 0.82.0 proto-google-cloud-bigquerydatapolicy-v1beta1 Proto library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.81.0-SNAPSHOT + 0.82.0 diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2/pom.xml b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2/pom.xml index 39987b6ca543..a5a5ec70d8b8 100644 --- a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2/pom.xml +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v2 - 0.81.0-SNAPSHOT + 0.82.0 proto-google-cloud-bigquerydatapolicy-v2 Proto library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.81.0-SNAPSHOT + 0.82.0 diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/pom.xml b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/pom.xml index 463f938f622b..b2b2813221a5 100644 --- a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/pom.xml +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v2beta1 - 0.81.0-SNAPSHOT + 0.82.0 proto-google-cloud-bigquerydatapolicy-v2beta1 Proto library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.81.0-SNAPSHOT + 0.82.0 diff --git a/java-bigquerydatatransfer/README.md b/java-bigquerydatatransfer/README.md index e56e51d3e1c0..d165c560fb46 100644 --- a/java-bigquerydatatransfer/README.md +++ b/java-bigquerydatatransfer/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerydatatransfer - 2.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.82.0' +implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquerydatatransfer/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerydatatransfer.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.83.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer-bom/pom.xml b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer-bom/pom.xml index 9089f81af7a8..28e98669d7e4 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer-bom/pom.xml +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigquerydatatransfer-bom - 2.84.0-SNAPSHOT + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-bigquerydatatransfer - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/pom.xml b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/pom.xml index 8e9f30c468d1..c0384e5002e6 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/pom.xml +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigquerydatatransfer - 2.84.0-SNAPSHOT + 2.85.0 jar BigQuery DataTransfer BigQuery DataTransfer com.google.cloud google-cloud-bigquerydatatransfer-parent - 2.84.0-SNAPSHOT + 2.85.0 google-cloud-bigquerydatatransfer diff --git a/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml b/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml index 8129214a09e3..0fd6f207ec23 100644 --- a/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml +++ b/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 2.84.0-SNAPSHOT + 2.85.0 grpc-google-cloud-bigquerydatatransfer-v1 GRPC library for grpc-google-cloud-bigquerydatatransfer-v1 com.google.cloud google-cloud-bigquerydatatransfer-parent - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-bigquerydatatransfer/pom.xml b/java-bigquerydatatransfer/pom.xml index 7dfc3fbaa337..07a87620a440 100644 --- a/java-bigquerydatatransfer/pom.xml +++ b/java-bigquerydatatransfer/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigquerydatatransfer-parent pom - 2.84.0-SNAPSHOT + 2.85.0 BigQuery DataTransfer Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.cloud google-cloud-bigquerydatatransfer - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/pom.xml b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/pom.xml index 37c1c7b6da21..facb04ee131a 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/pom.xml +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 2.84.0-SNAPSHOT + 2.85.0 proto-google-cloud-bigquerydatatransfer-v1 PROTO library for proto-google-cloud-bigquerydatatransfer-v1 com.google.cloud google-cloud-bigquerydatatransfer-parent - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-bigquerymigration/README.md b/java-bigquerymigration/README.md index 10e24f8eceb2..b6eb12da9edb 100644 --- a/java-bigquerymigration/README.md +++ b/java-bigquerymigration/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerymigration - 0.85.0 + 0.86.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerymigration:0.85.0' +implementation 'com.google.cloud:google-cloud-bigquerymigration:0.86.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.85.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.86.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquerymigration/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerymigration.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.85.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.86.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquerymigration/google-cloud-bigquerymigration-bom/pom.xml b/java-bigquerymigration/google-cloud-bigquerymigration-bom/pom.xml index f6c6cff92b65..f3677b5c5d73 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration-bom/pom.xml +++ b/java-bigquerymigration/google-cloud-bigquerymigration-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigquerymigration-bom - 0.87.0-SNAPSHOT + 0.88.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-bigquerymigration - 0.87.0-SNAPSHOT + 0.88.0 com.google.api.grpc grpc-google-cloud-bigquerymigration-v2alpha - 0.87.0-SNAPSHOT + 0.88.0 com.google.api.grpc grpc-google-cloud-bigquerymigration-v2 - 0.87.0-SNAPSHOT + 0.88.0 com.google.api.grpc proto-google-cloud-bigquerymigration-v2alpha - 0.87.0-SNAPSHOT + 0.88.0 com.google.api.grpc proto-google-cloud-bigquerymigration-v2 - 0.87.0-SNAPSHOT + 0.88.0 diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/pom.xml b/java-bigquerymigration/google-cloud-bigquerymigration/pom.xml index 0495b0190ae1..45be2b67f9da 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/pom.xml +++ b/java-bigquerymigration/google-cloud-bigquerymigration/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigquerymigration - 0.87.0-SNAPSHOT + 0.88.0 jar Google BigQuery Migration BigQuery Migration BigQuery Migration API com.google.cloud google-cloud-bigquerymigration-parent - 0.87.0-SNAPSHOT + 0.88.0 google-cloud-bigquerymigration diff --git a/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2/pom.xml b/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2/pom.xml index 3e640df455e0..3d3ff5ddfe22 100644 --- a/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2/pom.xml +++ b/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerymigration-v2 - 0.87.0-SNAPSHOT + 0.88.0 grpc-google-cloud-bigquerymigration-v2 GRPC library for google-cloud-bigquerymigration com.google.cloud google-cloud-bigquerymigration-parent - 0.87.0-SNAPSHOT + 0.88.0 diff --git a/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2alpha/pom.xml b/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2alpha/pom.xml index 66fa5c2d0a5a..df949e7e900a 100644 --- a/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2alpha/pom.xml +++ b/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerymigration-v2alpha - 0.87.0-SNAPSHOT + 0.88.0 grpc-google-cloud-bigquerymigration-v2alpha GRPC library for google-cloud-bigquerymigration com.google.cloud google-cloud-bigquerymigration-parent - 0.87.0-SNAPSHOT + 0.88.0 diff --git a/java-bigquerymigration/pom.xml b/java-bigquerymigration/pom.xml index a8b2afbb225c..9e5e41fc2dea 100644 --- a/java-bigquerymigration/pom.xml +++ b/java-bigquerymigration/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigquerymigration-parent pom - 0.87.0-SNAPSHOT + 0.88.0 Google BigQuery Migration Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-bigquerymigration - 0.87.0-SNAPSHOT + 0.88.0 com.google.api.grpc proto-google-cloud-bigquerymigration-v2 - 0.87.0-SNAPSHOT + 0.88.0 com.google.api.grpc grpc-google-cloud-bigquerymigration-v2 - 0.87.0-SNAPSHOT + 0.88.0 com.google.api.grpc grpc-google-cloud-bigquerymigration-v2alpha - 0.87.0-SNAPSHOT + 0.88.0 com.google.api.grpc proto-google-cloud-bigquerymigration-v2alpha - 0.87.0-SNAPSHOT + 0.88.0 diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/pom.xml b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/pom.xml index b9d3ca3edd3b..d21e191567a2 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/pom.xml +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerymigration-v2 - 0.87.0-SNAPSHOT + 0.88.0 proto-google-cloud-bigquerymigration-v2 Proto library for google-cloud-bigquerymigration com.google.cloud google-cloud-bigquerymigration-parent - 0.87.0-SNAPSHOT + 0.88.0 diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/pom.xml b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/pom.xml index df2cfb20fe05..26bcb3c37da5 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/pom.xml +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerymigration-v2alpha - 0.87.0-SNAPSHOT + 0.88.0 proto-google-cloud-bigquerymigration-v2alpha Proto library for google-cloud-bigquerymigration com.google.cloud google-cloud-bigquerymigration-parent - 0.87.0-SNAPSHOT + 0.88.0 diff --git a/java-bigqueryreservation/README.md b/java-bigqueryreservation/README.md index b4a8c22564ef..527ce90671fc 100644 --- a/java-bigqueryreservation/README.md +++ b/java-bigqueryreservation/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigqueryreservation - 2.83.0 + 2.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.83.0' +implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.83.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.84.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigqueryreservation/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigqueryreservation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryreservation/2.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryreservation/2.84.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation-bom/pom.xml b/java-bigqueryreservation/google-cloud-bigqueryreservation-bom/pom.xml index daec81547174..bffaa01f4245 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation-bom/pom.xml +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigqueryreservation-bom - 2.85.0-SNAPSHOT + 2.86.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-bigqueryreservation - 2.85.0-SNAPSHOT + 2.86.0 com.google.api.grpc grpc-google-cloud-bigqueryreservation-v1 - 2.85.0-SNAPSHOT + 2.86.0 com.google.api.grpc proto-google-cloud-bigqueryreservation-v1 - 2.85.0-SNAPSHOT + 2.86.0 diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation/pom.xml b/java-bigqueryreservation/google-cloud-bigqueryreservation/pom.xml index 9cd011bf2489..82c3a3ca7111 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation/pom.xml +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigqueryreservation - 2.85.0-SNAPSHOT + 2.86.0 jar Google Cloud BigQuery Reservations allows users to manage their flat-rate BigQuery reservations. com.google.cloud google-cloud-bigqueryreservation-parent - 2.85.0-SNAPSHOT + 2.86.0 google-cloud-bigqueryreservation diff --git a/java-bigqueryreservation/grpc-google-cloud-bigqueryreservation-v1/pom.xml b/java-bigqueryreservation/grpc-google-cloud-bigqueryreservation-v1/pom.xml index edf96e71e057..fc9591b3406e 100644 --- a/java-bigqueryreservation/grpc-google-cloud-bigqueryreservation-v1/pom.xml +++ b/java-bigqueryreservation/grpc-google-cloud-bigqueryreservation-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigqueryreservation-v1 - 2.85.0-SNAPSHOT + 2.86.0 grpc-google-cloud-bigqueryreservation-v1 GRPC library for grpc-google-cloud-bigqueryreservation-v1 com.google.cloud google-cloud-bigqueryreservation-parent - 2.85.0-SNAPSHOT + 2.86.0 diff --git a/java-bigqueryreservation/pom.xml b/java-bigqueryreservation/pom.xml index ce5761bef9df..36bc827e0f21 100644 --- a/java-bigqueryreservation/pom.xml +++ b/java-bigqueryreservation/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigqueryreservation-parent pom - 2.85.0-SNAPSHOT + 2.86.0 Google Cloud BigQuery Reservations Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-bigqueryreservation - 2.85.0-SNAPSHOT + 2.86.0 com.google.api.grpc proto-google-cloud-bigqueryreservation-v1 - 2.85.0-SNAPSHOT + 2.86.0 com.google.api.grpc grpc-google-cloud-bigqueryreservation-v1 - 2.85.0-SNAPSHOT + 2.86.0 diff --git a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/pom.xml b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/pom.xml index 5bf7d4f0bc78..c76016b24eeb 100644 --- a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/pom.xml +++ b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigqueryreservation-v1 - 2.85.0-SNAPSHOT + 2.86.0 proto-google-cloud-bigqueryreservation-v1 PROTO library for proto-google-cloud-bigqueryreservation-v1 com.google.cloud google-cloud-bigqueryreservation-parent - 2.85.0-SNAPSHOT + 2.86.0 diff --git a/java-billing/README.md b/java-billing/README.md index 04281b64b09f..626f6ae7aff8 100644 --- a/java-billing/README.md +++ b/java-billing/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-billing - 2.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-billing:2.82.0' +implementation 'com.google.cloud:google-cloud-billing:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-billing/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-billing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.83.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-billing/google-cloud-billing-bom/pom.xml b/java-billing/google-cloud-billing-bom/pom.xml index bb4f705e299a..59f6613ef8e8 100644 --- a/java-billing/google-cloud-billing-bom/pom.xml +++ b/java-billing/google-cloud-billing-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-billing-bom - 2.84.0-SNAPSHOT + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-billing - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc grpc-google-cloud-billing-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc proto-google-cloud-billing-v1 - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-billing/google-cloud-billing/pom.xml b/java-billing/google-cloud-billing/pom.xml index 81cdbacee03d..f9fcd515d144 100644 --- a/java-billing/google-cloud-billing/pom.xml +++ b/java-billing/google-cloud-billing/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-billing - 2.84.0-SNAPSHOT + 2.85.0 jar Google Cloud Billing Java idiomatic client for Google Cloud Billing com.google.cloud google-cloud-billing-parent - 2.84.0-SNAPSHOT + 2.85.0 google-cloud-billing diff --git a/java-billing/grpc-google-cloud-billing-v1/pom.xml b/java-billing/grpc-google-cloud-billing-v1/pom.xml index 97353574cfaa..41fce5efc77f 100644 --- a/java-billing/grpc-google-cloud-billing-v1/pom.xml +++ b/java-billing/grpc-google-cloud-billing-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-billing-v1 - 2.84.0-SNAPSHOT + 2.85.0 grpc-google-cloud-billing-v1 GRPC library for grpc-google-cloud-billing-v1 com.google.cloud google-cloud-billing-parent - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-billing/pom.xml b/java-billing/pom.xml index 8516c18d3957..70a245b72c2a 100644 --- a/java-billing/pom.xml +++ b/java-billing/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-billing-parent pom - 2.84.0-SNAPSHOT + 2.85.0 Google Cloud Billing Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-billing-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc grpc-google-cloud-billing-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.cloud google-cloud-billing - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-billing/proto-google-cloud-billing-v1/pom.xml b/java-billing/proto-google-cloud-billing-v1/pom.xml index efca4dadcea7..10eb8f413735 100644 --- a/java-billing/proto-google-cloud-billing-v1/pom.xml +++ b/java-billing/proto-google-cloud-billing-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-billing-v1 - 2.84.0-SNAPSHOT + 2.85.0 proto-google-cloud-billing-v1beta1 PROTO library for proto-google-cloud-billing-v1 com.google.cloud google-cloud-billing-parent - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-billingbudgets/README.md b/java-billingbudgets/README.md index 79c803d8464a..00eded0e9052 100644 --- a/java-billingbudgets/README.md +++ b/java-billingbudgets/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-billingbudgets - 2.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-billingbudgets:2.82.0' +implementation 'com.google.cloud:google-cloud-billingbudgets:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-billingbudgets/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-billingbudgets.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.83.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-billingbudgets/google-cloud-billingbudgets-bom/pom.xml b/java-billingbudgets/google-cloud-billingbudgets-bom/pom.xml index 3d641fc0b8fa..656c277ac8b6 100644 --- a/java-billingbudgets/google-cloud-billingbudgets-bom/pom.xml +++ b/java-billingbudgets/google-cloud-billingbudgets-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-billingbudgets-bom - 2.84.0-SNAPSHOT + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-billingbudgets - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc grpc-google-cloud-billingbudgets-v1beta1 - 0.93.0-SNAPSHOT + 0.94.0 com.google.api.grpc grpc-google-cloud-billingbudgets-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc proto-google-cloud-billingbudgets-v1beta1 - 0.93.0-SNAPSHOT + 0.94.0 com.google.api.grpc proto-google-cloud-billingbudgets-v1 - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-billingbudgets/google-cloud-billingbudgets/pom.xml b/java-billingbudgets/google-cloud-billingbudgets/pom.xml index 4e48e8af5dce..dce7e30b082a 100644 --- a/java-billingbudgets/google-cloud-billingbudgets/pom.xml +++ b/java-billingbudgets/google-cloud-billingbudgets/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-billingbudgets - 2.84.0-SNAPSHOT + 2.85.0 jar Google Cloud billingbudgets Java idiomatic client for Google Cloud billingbudgets com.google.cloud google-cloud-billingbudgets-parent - 2.84.0-SNAPSHOT + 2.85.0 google-cloud-billingbudgets diff --git a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/pom.xml b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/pom.xml index 7f1e8facf5a6..d13c80961617 100644 --- a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/pom.xml +++ b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-billingbudgets-v1 - 2.84.0-SNAPSHOT + 2.85.0 grpc-google-cloud-billingbudgets-v1 GRPC library for grpc-google-cloud-billingbudgets-v1 com.google.cloud google-cloud-billingbudgets-parent - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/pom.xml b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/pom.xml index 78b38100b638..5d9f3aee3890 100644 --- a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/pom.xml +++ b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-billingbudgets-v1beta1 - 0.93.0-SNAPSHOT + 0.94.0 grpc-google-cloud-billingbudgets-v1beta1 GRPC library for grpc-google-cloud-billingbudgets-v1beta1 com.google.cloud google-cloud-billingbudgets-parent - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-billingbudgets/pom.xml b/java-billingbudgets/pom.xml index 12741b57ed16..def37d70b0a1 100644 --- a/java-billingbudgets/pom.xml +++ b/java-billingbudgets/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-billingbudgets-parent pom - 2.84.0-SNAPSHOT + 2.85.0 Google Cloud Billing Budgets Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-billingbudgets-v1beta1 - 0.93.0-SNAPSHOT + 0.94.0 com.google.api.grpc proto-google-cloud-billingbudgets-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc grpc-google-cloud-billingbudgets-v1beta1 - 0.93.0-SNAPSHOT + 0.94.0 com.google.api.grpc grpc-google-cloud-billingbudgets-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.cloud google-cloud-billingbudgets - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/pom.xml b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/pom.xml index 5eac96a470b2..baed8c30684b 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/pom.xml +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-billingbudgets-v1 - 2.84.0-SNAPSHOT + 2.85.0 proto-google-cloud-billingbudgets-v1 PROTO library for proto-google-cloud-billingbudgets-v1 com.google.cloud google-cloud-billingbudgets-parent - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/pom.xml b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/pom.xml index d5e60aa633ae..635be740d052 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/pom.xml +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-billingbudgets-v1beta1 - 0.93.0-SNAPSHOT + 0.94.0 proto-google-cloud-billingbudgets-v1beta1 PROTO library for proto-google-cloud-billingbudgets-v1beta1 com.google.cloud google-cloud-billingbudgets-parent - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-binary-authorization/README.md b/java-binary-authorization/README.md index bd905f14b4bb..9a4e3efd471a 100644 --- a/java-binary-authorization/README.md +++ b/java-binary-authorization/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-binary-authorization - 1.81.0 + 1.82.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-binary-authorization:1.81.0' +implementation 'com.google.cloud:google-cloud-binary-authorization:1.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "1.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "1.82.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-binary-authorization/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-binary-authorization.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/1.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/1.82.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-binary-authorization/google-cloud-binary-authorization-bom/pom.xml b/java-binary-authorization/google-cloud-binary-authorization-bom/pom.xml index 043327f0197d..93751d0d4026 100644 --- a/java-binary-authorization/google-cloud-binary-authorization-bom/pom.xml +++ b/java-binary-authorization/google-cloud-binary-authorization-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-binary-authorization-bom - 1.83.0-SNAPSHOT + 1.84.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-binary-authorization - 1.83.0-SNAPSHOT + 1.84.0 com.google.api.grpc grpc-google-cloud-binary-authorization-v1beta1 - 0.88.0-SNAPSHOT + 0.89.0 com.google.api.grpc grpc-google-cloud-binary-authorization-v1 - 1.83.0-SNAPSHOT + 1.84.0 com.google.api.grpc proto-google-cloud-binary-authorization-v1beta1 - 0.88.0-SNAPSHOT + 0.89.0 com.google.api.grpc proto-google-cloud-binary-authorization-v1 - 1.83.0-SNAPSHOT + 1.84.0 diff --git a/java-binary-authorization/google-cloud-binary-authorization/pom.xml b/java-binary-authorization/google-cloud-binary-authorization/pom.xml index 233f9d2369c8..883d0e07788c 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/pom.xml +++ b/java-binary-authorization/google-cloud-binary-authorization/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-binary-authorization - 1.83.0-SNAPSHOT + 1.84.0 jar Google Binary Authorization Binary Authorization is a service on Google Cloud that provides centralized software supply-chain security for applications that run on Google Kubernetes Engine (GKE) and Anthos clusters on VMware com.google.cloud google-cloud-binary-authorization-parent - 1.83.0-SNAPSHOT + 1.84.0 google-cloud-binary-authorization diff --git a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/pom.xml b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/pom.xml index ac17db48d5f2..82b28550bd36 100644 --- a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/pom.xml +++ b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-binary-authorization-v1 - 1.83.0-SNAPSHOT + 1.84.0 grpc-google-cloud-binary-authorization-v1 GRPC library for google-cloud-binary-authorization com.google.cloud google-cloud-binary-authorization-parent - 1.83.0-SNAPSHOT + 1.84.0 diff --git a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/pom.xml b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/pom.xml index 4456fd5912a2..6f786eb78a39 100644 --- a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/pom.xml +++ b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-binary-authorization-v1beta1 - 0.88.0-SNAPSHOT + 0.89.0 grpc-google-cloud-binary-authorization-v1beta1 GRPC library for google-cloud-binary-authorization com.google.cloud google-cloud-binary-authorization-parent - 1.83.0-SNAPSHOT + 1.84.0 diff --git a/java-binary-authorization/pom.xml b/java-binary-authorization/pom.xml index 7d0d5c69056c..b19cb00c551e 100644 --- a/java-binary-authorization/pom.xml +++ b/java-binary-authorization/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-binary-authorization-parent pom - 1.83.0-SNAPSHOT + 1.84.0 Google Binary Authorization Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,33 +29,33 @@ com.google.cloud google-cloud-binary-authorization - 1.83.0-SNAPSHOT + 1.84.0 com.google.api.grpc proto-google-cloud-binary-authorization-v1 - 1.83.0-SNAPSHOT + 1.84.0 com.google.api.grpc grpc-google-cloud-binary-authorization-v1 - 1.83.0-SNAPSHOT + 1.84.0 com.google.api.grpc grpc-google-cloud-binary-authorization-v1beta1 - 0.88.0-SNAPSHOT + 0.89.0 com.google.api.grpc proto-google-cloud-binary-authorization-v1beta1 - 0.88.0-SNAPSHOT + 0.89.0 io.grafeas grafeas - 2.85.0-SNAPSHOT + 2.86.0 diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1/pom.xml b/java-binary-authorization/proto-google-cloud-binary-authorization-v1/pom.xml index cfd94acdf4d6..81bb99786553 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1/pom.xml +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-binary-authorization-v1 - 1.83.0-SNAPSHOT + 1.84.0 proto-google-cloud-binary-authorization-v1 Proto library for google-cloud-binary-authorization com.google.cloud google-cloud-binary-authorization-parent - 1.83.0-SNAPSHOT + 1.84.0 diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/pom.xml b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/pom.xml index f8cf114fa125..7e302d24fa4e 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/pom.xml +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-binary-authorization-v1beta1 - 0.88.0-SNAPSHOT + 0.89.0 proto-google-cloud-binary-authorization-v1beta1 Proto library for google-cloud-binary-authorization com.google.cloud google-cloud-binary-authorization-parent - 1.83.0-SNAPSHOT + 1.84.0 diff --git a/java-capacityplanner/README.md b/java-capacityplanner/README.md index 9db8bbab95e0..212fb0d859af 100644 --- a/java-capacityplanner/README.md +++ b/java-capacityplanner/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-capacityplanner - 0.5.0 + 0.6.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-capacityplanner:0.5.0' +implementation 'com.google.cloud:google-cloud-capacityplanner:0.6.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-capacityplanner" % "0.5.0" +libraryDependencies += "com.google.cloud" % "google-cloud-capacityplanner" % "0.6.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-capacityplanner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-capacityplanner/0.5.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-capacityplanner/0.6.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-capacityplanner/google-cloud-capacityplanner-bom/pom.xml b/java-capacityplanner/google-cloud-capacityplanner-bom/pom.xml index e2c96adca76f..cc481d9fbeb3 100644 --- a/java-capacityplanner/google-cloud-capacityplanner-bom/pom.xml +++ b/java-capacityplanner/google-cloud-capacityplanner-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-capacityplanner-bom - 0.7.0-SNAPSHOT + 0.8.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-capacityplanner - 0.7.0-SNAPSHOT + 0.8.0 com.google.api.grpc grpc-google-cloud-capacityplanner-v1beta - 0.7.0-SNAPSHOT + 0.8.0 com.google.api.grpc proto-google-cloud-capacityplanner-v1beta - 0.7.0-SNAPSHOT + 0.8.0 diff --git a/java-capacityplanner/google-cloud-capacityplanner/pom.xml b/java-capacityplanner/google-cloud-capacityplanner/pom.xml index 89cdd56804ca..daebc634ff28 100644 --- a/java-capacityplanner/google-cloud-capacityplanner/pom.xml +++ b/java-capacityplanner/google-cloud-capacityplanner/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-capacityplanner - 0.7.0-SNAPSHOT + 0.8.0 jar Google Capacity Planner API Capacity Planner API Provides programmatic access to Capacity Planner features. com.google.cloud google-cloud-capacityplanner-parent - 0.7.0-SNAPSHOT + 0.8.0 google-cloud-capacityplanner diff --git a/java-capacityplanner/grpc-google-cloud-capacityplanner-v1beta/pom.xml b/java-capacityplanner/grpc-google-cloud-capacityplanner-v1beta/pom.xml index 6642a102d176..19fae9e76310 100644 --- a/java-capacityplanner/grpc-google-cloud-capacityplanner-v1beta/pom.xml +++ b/java-capacityplanner/grpc-google-cloud-capacityplanner-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-capacityplanner-v1beta - 0.7.0-SNAPSHOT + 0.8.0 grpc-google-cloud-capacityplanner-v1beta GRPC library for google-cloud-capacityplanner com.google.cloud google-cloud-capacityplanner-parent - 0.7.0-SNAPSHOT + 0.8.0 diff --git a/java-capacityplanner/pom.xml b/java-capacityplanner/pom.xml index 5cf718517b20..1d541a614f40 100644 --- a/java-capacityplanner/pom.xml +++ b/java-capacityplanner/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-capacityplanner-parent pom - 0.7.0-SNAPSHOT + 0.8.0 Google Capacity Planner API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-capacityplanner - 0.7.0-SNAPSHOT + 0.8.0 com.google.api.grpc grpc-google-cloud-capacityplanner-v1beta - 0.7.0-SNAPSHOT + 0.8.0 com.google.api.grpc proto-google-cloud-capacityplanner-v1beta - 0.7.0-SNAPSHOT + 0.8.0 diff --git a/java-capacityplanner/proto-google-cloud-capacityplanner-v1beta/pom.xml b/java-capacityplanner/proto-google-cloud-capacityplanner-v1beta/pom.xml index 3534f1672e43..623767e39402 100644 --- a/java-capacityplanner/proto-google-cloud-capacityplanner-v1beta/pom.xml +++ b/java-capacityplanner/proto-google-cloud-capacityplanner-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-capacityplanner-v1beta - 0.7.0-SNAPSHOT + 0.8.0 proto-google-cloud-capacityplanner-v1beta Proto library for google-cloud-capacityplanner com.google.cloud google-cloud-capacityplanner-parent - 0.7.0-SNAPSHOT + 0.8.0 diff --git a/java-certificate-manager/README.md b/java-certificate-manager/README.md index 2954d7a4262e..1d93728b43ee 100644 --- a/java-certificate-manager/README.md +++ b/java-certificate-manager/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-certificate-manager - 0.85.0 + 0.86.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-certificate-manager:0.85.0' +implementation 'com.google.cloud:google-cloud-certificate-manager:0.86.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.85.0" +libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.86.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-certificate-manager/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-certificate-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.85.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.86.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-certificate-manager/google-cloud-certificate-manager-bom/pom.xml b/java-certificate-manager/google-cloud-certificate-manager-bom/pom.xml index 99752d2698a3..204628206ff4 100644 --- a/java-certificate-manager/google-cloud-certificate-manager-bom/pom.xml +++ b/java-certificate-manager/google-cloud-certificate-manager-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-certificate-manager-bom - 0.87.0-SNAPSHOT + 0.88.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-certificate-manager - 0.87.0-SNAPSHOT + 0.88.0 com.google.api.grpc grpc-google-cloud-certificate-manager-v1 - 0.87.0-SNAPSHOT + 0.88.0 com.google.api.grpc proto-google-cloud-certificate-manager-v1 - 0.87.0-SNAPSHOT + 0.88.0 diff --git a/java-certificate-manager/google-cloud-certificate-manager/pom.xml b/java-certificate-manager/google-cloud-certificate-manager/pom.xml index 756595f8ef26..3db6cb35e8cf 100644 --- a/java-certificate-manager/google-cloud-certificate-manager/pom.xml +++ b/java-certificate-manager/google-cloud-certificate-manager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-certificate-manager - 0.87.0-SNAPSHOT + 0.88.0 jar Google Certificate Manager Certificate Manager lets you acquire and manage TLS (SSL) certificates for use with Cloud Load Balancing. com.google.cloud google-cloud-certificate-manager-parent - 0.87.0-SNAPSHOT + 0.88.0 google-cloud-certificate-manager diff --git a/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/pom.xml b/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/pom.xml index 2fe9f35244aa..76c1938fd45b 100644 --- a/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/pom.xml +++ b/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-certificate-manager-v1 - 0.87.0-SNAPSHOT + 0.88.0 grpc-google-cloud-certificate-manager-v1 GRPC library for google-cloud-certificate-manager com.google.cloud google-cloud-certificate-manager-parent - 0.87.0-SNAPSHOT + 0.88.0 diff --git a/java-certificate-manager/pom.xml b/java-certificate-manager/pom.xml index aa33ae29d625..9d6e82e24454 100644 --- a/java-certificate-manager/pom.xml +++ b/java-certificate-manager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-certificate-manager-parent pom - 0.87.0-SNAPSHOT + 0.88.0 Google Certificate Manager Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-certificate-manager - 0.87.0-SNAPSHOT + 0.88.0 com.google.api.grpc grpc-google-cloud-certificate-manager-v1 - 0.87.0-SNAPSHOT + 0.88.0 com.google.api.grpc proto-google-cloud-certificate-manager-v1 - 0.87.0-SNAPSHOT + 0.88.0 diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/pom.xml b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/pom.xml index 402d4e4da7cb..aa6298c9ccc3 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/pom.xml +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-certificate-manager-v1 - 0.87.0-SNAPSHOT + 0.88.0 proto-google-cloud-certificate-manager-v1 Proto library for google-cloud-certificate-manager com.google.cloud google-cloud-certificate-manager-parent - 0.87.0-SNAPSHOT + 0.88.0 diff --git a/java-ces/.OwlBot-hermetic.yaml b/java-ces/.OwlBot-hermetic.yaml new file mode 100644 index 000000000000..022d5aa9b1bf --- /dev/null +++ b/java-ces/.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: +- "/java-ces/grpc-google-.*/src" +- "/java-ces/proto-google-.*/src" +- "/java-ces/google-.*/src" +- "/java-ces/samples/snippets/generated" + +deep-preserve-regex: +- "/java-ces/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + +deep-copy-regex: +- source: "/google/cloud/ces/(v.*)/.*-java/proto-google-.*/src" + dest: "/owl-bot-staging/java-ces/$1/proto-google-cloud-ces-$1/src" +- source: "/google/cloud/ces/(v.*)/.*-java/grpc-google-.*/src" + dest: "/owl-bot-staging/java-ces/$1/grpc-google-cloud-ces-$1/src" +- source: "/google/cloud/ces/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-ces/$1/google-cloud-ces/src" +- source: "/google/cloud/ces/(v.*)/.*-java/samples/snippets/generated" + dest: "/owl-bot-staging/java-ces/$1/samples/snippets/generated" + +api-name: ces \ No newline at end of file diff --git a/java-ces/.repo-metadata.json b/java-ces/.repo-metadata.json new file mode 100644 index 000000000000..cf714070c697 --- /dev/null +++ b/java-ces/.repo-metadata.json @@ -0,0 +1,17 @@ +{ + "api_shortname": "ces", + "name_pretty": "Gemini Enterprise for Customer Experience API", + "product_documentation": "https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps", + "api_description": "Customer Experience Agent Studio (CX Agent Studio) is a minimal code conversational agent builder.", + "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-ces/latest/overview", + "release_level": "preview", + "transport": "both", + "language": "java", + "repo": "googleapis/google-cloud-java", + "repo_short": "java-ces", + "distribution_name": "com.google.cloud:google-cloud-ces", + "api_id": "ces.googleapis.com", + "library_type": "GAPIC_AUTO", + "requires_billing": true, + "rpc_documentation": "https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/rpc" +} \ No newline at end of file diff --git a/java-ces/README.md b/java-ces/README.md new file mode 100644 index 000000000000..66cc0abc9b82 --- /dev/null +++ b/java-ces/README.md @@ -0,0 +1,205 @@ +# Google Gemini Enterprise for Customer Experience API Client for Java + +Java idiomatic client for [Gemini Enterprise for Customer Experience API][product-docs]. + +[![Maven][maven-version-image]][maven-version-link] +![Stability][stability-image] + +- [Product Documentation][product-docs] +- [Client Library Documentation][javadocs] + +> Note: This client is a work-in-progress, and may occasionally +> make backwards-incompatible changes. + + +## Quickstart + + +If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: + +```xml + + + + com.google.cloud + libraries-bom + 26.75.0 + pom + import + + + + + + + com.google.cloud + google-cloud-ces + + +``` + +If you are using Maven without the BOM, add this to your dependencies: + + +```xml + + com.google.cloud + google-cloud-ces + 0.0.0 + +``` + +If you are using Gradle without BOM, add this to your dependencies: + +```Groovy +implementation 'com.google.cloud:google-cloud-ces:0.0.0' +``` + +If you are using SBT, add this to your dependencies: + +```Scala +libraryDependencies += "com.google.cloud" % "google-cloud-ces" % "0.0.0" +``` + +## Authentication + +See the [Authentication][authentication] section in the base directory's README. + +## Authorization + +The client application making API calls must be granted [authorization scopes][auth-scopes] required for the desired Gemini Enterprise for Customer Experience API APIs, and the authenticated principal must have the [IAM role(s)][predefined-iam-roles] required to access GCP resources using the Gemini Enterprise for Customer Experience API API calls. + +## Getting Started + +### Prerequisites + +You will need a [Google Cloud Platform Console][developer-console] project with the Gemini Enterprise for Customer Experience API [API enabled][enable-api]. +You will need to [enable billing][enable-billing] to use Google Gemini Enterprise for Customer Experience API. +[Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by +[installing the Google Cloud Command Line Interface][cloud-cli] and running the following commands in command line: +`gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`. + +### Installation and setup + +You'll need to obtain the `google-cloud-ces` library. See the [Quickstart](#quickstart) section +to add `google-cloud-ces` as a dependency in your code. + +## About Gemini Enterprise for Customer Experience API + + +[Gemini Enterprise for Customer Experience API][product-docs] Customer Experience Agent Studio (CX Agent Studio) is a minimal code conversational agent builder. + +See the [Gemini Enterprise for Customer Experience API client library docs][javadocs] to learn how to +use this Gemini Enterprise for Customer Experience API Client Library. + + + + + + +## Troubleshooting + +To get help, follow the instructions in the [shared Troubleshooting document][troubleshooting]. + +## Transport + +Gemini Enterprise for Customer Experience API uses both gRPC and HTTP/JSON for the transport layer. + +## Supported Java Versions + +Java 8 or above is required for using this client. + +Google's Java client libraries, +[Google Cloud Client Libraries][cloudlibs] +and +[Google Cloud API Libraries][apilibs], +follow the +[Oracle Java SE support roadmap][oracle] +(see the Oracle Java SE Product Releases section). + +### For new development + +In general, new feature development occurs with support for the lowest Java +LTS version covered by Oracle's Premier Support (which typically lasts 5 years +from initial General Availability). If the minimum required JVM for a given +library is changed, it is accompanied by a [semver][semver] major release. + +Java 11 and (in September 2021) Java 17 are the best choices for new +development. + +### Keeping production systems current + +Google tests its client libraries with all current LTS versions covered by +Oracle's Extended Support (which typically lasts 8 years from initial +General Availability). + +#### Legacy support + +Google's client libraries support legacy versions of Java runtimes with long +term stable libraries that don't receive feature updates on a best efforts basis +as it may not be possible to backport all patches. + +Google provides updates on a best efforts basis to apps that continue to use +Java 7, though apps might need to upgrade to current versions of the library +that supports their JVM. + +#### Where to find specific information + +The latest versions and the supported Java versions are identified on +the individual GitHub repository `github.com/GoogleAPIs/java-SERVICENAME` +and on [google-cloud-java][g-c-j]. + +## Versioning + + +This library follows [Semantic Versioning](http://semver.org/). + + +It is currently in major version zero (``0.y.z``), which means that anything may change at any time +and the public API should not be considered stable. + + +## Contributing + + +Contributions to this library are always welcome and highly encouraged. + +See [CONTRIBUTING][contributing] for more information how to get started. + +Please note that this project is released with a Contributor Code of Conduct. By participating in +this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more +information. + + +## License + +Apache 2.0 - See [LICENSE][license] for more information. + +Java is a registered trademark of Oracle and/or its affiliates. + +[product-docs]: https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps +[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-ces/latest/overview +[stability-image]: https://img.shields.io/badge/stability-preview-yellow +[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-ces.svg +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ces/0.0.0 +[authentication]: https://github.com/googleapis/google-cloud-java#authentication +[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes +[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles +[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy +[developer-console]: https://console.developers.google.com/ +[create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects +[cloud-cli]: https://cloud.google.com/cli +[troubleshooting]: https://github.com/googleapis/google-cloud-java/blob/main/TROUBLESHOOTING.md +[contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md +[code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct +[license]: https://github.com/googleapis/google-cloud-java/blob/main/LICENSE +[enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing +[enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=ces.googleapis.com +[libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM +[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png + +[semver]: https://semver.org/ +[cloudlibs]: https://cloud.google.com/apis/docs/client-libraries-explained +[apilibs]: https://cloud.google.com/apis/docs/client-libraries-explained#google_api_client_libraries +[oracle]: https://www.oracle.com/java/technologies/java-se-support-roadmap.html +[g-c-j]: http://github.com/googleapis/google-cloud-java diff --git a/java-ces/google-cloud-ces-bom/pom.xml b/java-ces/google-cloud-ces-bom/pom.xml new file mode 100644 index 000000000000..36b5e1588ceb --- /dev/null +++ b/java-ces/google-cloud-ces-bom/pom.xml @@ -0,0 +1,43 @@ + + + 4.0.0 + com.google.cloud + google-cloud-ces-bom + 0.1.0 + pom + + com.google.cloud + google-cloud-pom-parent + 1.79.0 + ../../google-cloud-pom-parent/pom.xml + + + Google Gemini Enterprise for Customer Experience API BOM + + BOM for Gemini Enterprise for Customer Experience API + + + + true + + + + + + com.google.cloud + google-cloud-ces + 0.1.0 + + + com.google.api.grpc + grpc-google-cloud-ces-v1 + 0.1.0 + + + com.google.api.grpc + proto-google-cloud-ces-v1 + 0.1.0 + + + + diff --git a/java-ces/google-cloud-ces/pom.xml b/java-ces/google-cloud-ces/pom.xml new file mode 100644 index 000000000000..211a30b08b51 --- /dev/null +++ b/java-ces/google-cloud-ces/pom.xml @@ -0,0 +1,115 @@ + + + 4.0.0 + com.google.cloud + google-cloud-ces + 0.1.0 + jar + Google Gemini Enterprise for Customer Experience API + Gemini Enterprise for Customer Experience API Customer Experience Agent Studio (CX Agent Studio) is a minimal code conversational agent builder. + + com.google.cloud + google-cloud-ces-parent + 0.1.0 + + + google-cloud-ces + + + + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.api + api-common + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + + com.google.api.grpc + proto-google-cloud-ces-v1 + + + com.google.guava + guava + + + com.google.api + gax + + + com.google.api + gax-grpc + + + com.google.api + gax-httpjson + + + com.google.api.grpc + proto-google-iam-v1 + + + org.threeten + threetenbp + + + + + com.google.api.grpc + grpc-google-common-protos + test + + + com.google.api.grpc + grpc-google-iam-v1 + test + + + junit + junit + test + + + + com.google.api.grpc + grpc-google-cloud-ces-v1 + test + + + + com.google.api + gax + testlib + test + + + com.google.api + gax-grpc + testlib + test + + + com.google.api + gax-httpjson + testlib + test + + + diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/AgentServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/AgentServiceClient.java new file mode 100644 index 000000000000..a8cf4a8e8dbc --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/AgentServiceClient.java @@ -0,0 +1,8856 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.ces.v1.stub.AgentServiceStub; +import com.google.cloud.ces.v1.stub.AgentServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: The service that manages agent-related resources in Gemini Enterprise for + * Customer Engagement (CES). + * + *

      This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      + *   AppName name = AppName.of("[PROJECT]", "[LOCATION]", "[APP]");
      + *   App response = agentServiceClient.getApp(name);
      + * }
      + * }
      + * + *

      Note: close() needs to be called on the AgentServiceClient object to clean up resources such + * as threads. In the example above, try-with-resources is used, which automatically calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      Methods
      MethodDescriptionMethod Variants

      ListApps

      Lists apps in the given project and location.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • listApps(ListAppsRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • listApps(LocationName parent) + *

      • listApps(String parent) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • listAppsPagedCallable() + *

      • listAppsCallable() + *

      + *

      GetApp

      Gets details of the specified app.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • getApp(GetAppRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • getApp(AppName name) + *

      • getApp(String name) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • getAppCallable() + *

      + *

      CreateApp

      Creates a new app in the given project and location.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • createAppAsync(CreateAppRequest request) + *

      + *

      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

      + *
        + *
      • createAppAsync(LocationName parent, App app) + *

      • createAppAsync(String parent, App app) + *

      • createAppAsync(LocationName parent, App app, String appId) + *

      • createAppAsync(String parent, App app, String appId) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • createAppOperationCallable() + *

      • createAppCallable() + *

      + *

      UpdateApp

      Updates the specified app.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • updateApp(UpdateAppRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • updateApp(App app, FieldMask updateMask) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • updateAppCallable() + *

      + *

      DeleteApp

      Deletes the specified app.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • deleteAppAsync(DeleteAppRequest request) + *

      + *

      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

      + *
        + *
      • deleteAppAsync(AppName name) + *

      • deleteAppAsync(String name) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • deleteAppOperationCallable() + *

      • deleteAppCallable() + *

      + *

      ExportApp

      Exports the specified app.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • exportAppAsync(ExportAppRequest request) + *

      + *

      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

      + *
        + *
      • exportAppAsync(AppName name) + *

      • exportAppAsync(String name) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • exportAppOperationCallable() + *

      • exportAppCallable() + *

      + *

      ImportApp

      Imports the specified app.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • importAppAsync(ImportAppRequest request) + *

      + *

      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

      + *
        + *
      • importAppAsync(LocationName parent, String displayName, String appId) + *

      • importAppAsync(String parent, String displayName, String appId) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • importAppOperationCallable() + *

      • importAppCallable() + *

      + *

      ListAgents

      Lists agents in the given app.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • listAgents(ListAgentsRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • listAgents(AppName parent) + *

      • listAgents(String parent) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • listAgentsPagedCallable() + *

      • listAgentsCallable() + *

      + *

      GetAgent

      Gets details of the specified agent.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • getAgent(GetAgentRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • getAgent(AgentName name) + *

      • getAgent(String name) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • getAgentCallable() + *

      + *

      CreateAgent

      Creates a new agent in the given app.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • createAgent(CreateAgentRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • createAgent(AppName parent, Agent agent) + *

      • createAgent(String parent, Agent agent) + *

      • createAgent(AppName parent, Agent agent, String agentId) + *

      • createAgent(String parent, Agent agent, String agentId) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • createAgentCallable() + *

      + *

      UpdateAgent

      Updates the specified agent.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • updateAgent(UpdateAgentRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • updateAgent(Agent agent, FieldMask updateMask) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • updateAgentCallable() + *

      + *

      DeleteAgent

      Deletes the specified agent.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • deleteAgent(DeleteAgentRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • deleteAgent(AgentName name) + *

      • deleteAgent(String name) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • deleteAgentCallable() + *

      + *

      ListExamples

      Lists examples in the given app.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • listExamples(ListExamplesRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • listExamples(AppName parent) + *

      • listExamples(String parent) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • listExamplesPagedCallable() + *

      • listExamplesCallable() + *

      + *

      GetExample

      Gets details of the specified example.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • getExample(GetExampleRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • getExample(ExampleName name) + *

      • getExample(String name) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • getExampleCallable() + *

      + *

      CreateExample

      Creates a new example in the given app.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • createExample(CreateExampleRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • createExample(AppName parent, Example example) + *

      • createExample(String parent, Example example) + *

      • createExample(AppName parent, Example example, String exampleId) + *

      • createExample(String parent, Example example, String exampleId) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • createExampleCallable() + *

      + *

      UpdateExample

      Updates the specified example.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • updateExample(UpdateExampleRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • updateExample(Example example, FieldMask updateMask) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • updateExampleCallable() + *

      + *

      DeleteExample

      Deletes the specified example.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • deleteExample(DeleteExampleRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • deleteExample(ExampleName name) + *

      • deleteExample(String name) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • deleteExampleCallable() + *

      + *

      ListTools

      Lists tools in the given app.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • listTools(ListToolsRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • listTools(AppName parent) + *

      • listTools(String parent) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • listToolsPagedCallable() + *

      • listToolsCallable() + *

      + *

      GetTool

      Gets details of the specified tool.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • getTool(GetToolRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • getTool(ToolName name) + *

      • getTool(String name) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • getToolCallable() + *

      + *

      ListConversations

      Lists conversations in the given app.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • listConversations(ListConversationsRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • listConversations(AppName parent) + *

      • listConversations(String parent) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • listConversationsPagedCallable() + *

      • listConversationsCallable() + *

      + *

      GetConversation

      Gets details of the specified conversation.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • getConversation(GetConversationRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • getConversation(ConversationName name) + *

      • getConversation(String name) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • getConversationCallable() + *

      + *

      DeleteConversation

      Deletes the specified conversation.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • deleteConversation(DeleteConversationRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • deleteConversation(ConversationName name) + *

      • deleteConversation(String name) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • deleteConversationCallable() + *

      + *

      BatchDeleteConversations

      Batch deletes the specified conversations.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • batchDeleteConversationsAsync(BatchDeleteConversationsRequest request) + *

      + *

      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

      + *
        + *
      • batchDeleteConversationsAsync(AppName parent) + *

      • batchDeleteConversationsAsync(String parent) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • batchDeleteConversationsOperationCallable() + *

      • batchDeleteConversationsCallable() + *

      + *

      CreateTool

      Creates a new tool in the given app.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • createTool(CreateToolRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • createTool(AppName parent, Tool tool) + *

      • createTool(String parent, Tool tool) + *

      • createTool(AppName parent, Tool tool, String toolId) + *

      • createTool(String parent, Tool tool, String toolId) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • createToolCallable() + *

      + *

      UpdateTool

      Updates the specified tool.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • updateTool(UpdateToolRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • updateTool(Tool tool, FieldMask updateMask) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • updateToolCallable() + *

      + *

      DeleteTool

      Deletes the specified tool.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • deleteTool(DeleteToolRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • deleteTool(ToolName name) + *

      • deleteTool(String name) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • deleteToolCallable() + *

      + *

      ListGuardrails

      Lists guardrails in the given app.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • listGuardrails(ListGuardrailsRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • listGuardrails(AppName parent) + *

      • listGuardrails(String parent) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • listGuardrailsPagedCallable() + *

      • listGuardrailsCallable() + *

      + *

      GetGuardrail

      Gets details of the specified guardrail.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • getGuardrail(GetGuardrailRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • getGuardrail(GuardrailName name) + *

      • getGuardrail(String name) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • getGuardrailCallable() + *

      + *

      CreateGuardrail

      Creates a new guardrail in the given app.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • createGuardrail(CreateGuardrailRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • createGuardrail(AppName parent, Guardrail guardrail) + *

      • createGuardrail(String parent, Guardrail guardrail) + *

      • createGuardrail(AppName parent, Guardrail guardrail, String guardrailId) + *

      • createGuardrail(String parent, Guardrail guardrail, String guardrailId) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • createGuardrailCallable() + *

      + *

      UpdateGuardrail

      Updates the specified guardrail.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • updateGuardrail(UpdateGuardrailRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • updateGuardrail(Guardrail guardrail, FieldMask updateMask) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • updateGuardrailCallable() + *

      + *

      DeleteGuardrail

      Deletes the specified guardrail.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • deleteGuardrail(DeleteGuardrailRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • deleteGuardrail(GuardrailName name) + *

      • deleteGuardrail(String name) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • deleteGuardrailCallable() + *

      + *

      ListDeployments

      Lists deployments in the given app.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • listDeployments(ListDeploymentsRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • listDeployments(AppName parent) + *

      • listDeployments(String parent) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • listDeploymentsPagedCallable() + *

      • listDeploymentsCallable() + *

      + *

      GetDeployment

      Gets details of the specified deployment.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • getDeployment(GetDeploymentRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • getDeployment(DeploymentName name) + *

      • getDeployment(String name) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • getDeploymentCallable() + *

      + *

      CreateDeployment

      Creates a new deployment in the given app.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • createDeployment(CreateDeploymentRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • createDeployment(AppName parent, Deployment deployment) + *

      • createDeployment(String parent, Deployment deployment) + *

      • createDeployment(AppName parent, Deployment deployment, String deploymentId) + *

      • createDeployment(String parent, Deployment deployment, String deploymentId) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • createDeploymentCallable() + *

      + *

      UpdateDeployment

      Updates the specified deployment.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • updateDeployment(UpdateDeploymentRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • updateDeployment(Deployment deployment, FieldMask updateMask) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • updateDeploymentCallable() + *

      + *

      DeleteDeployment

      Deletes the specified deployment.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • deleteDeployment(DeleteDeploymentRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • deleteDeployment(DeploymentName name) + *

      • deleteDeployment(String name) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • deleteDeploymentCallable() + *

      + *

      ListToolsets

      Lists toolsets in the given app.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • listToolsets(ListToolsetsRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • listToolsets(AppName parent) + *

      • listToolsets(String parent) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • listToolsetsPagedCallable() + *

      • listToolsetsCallable() + *

      + *

      GetToolset

      Gets details of the specified toolset.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • getToolset(GetToolsetRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • getToolset(ToolsetName name) + *

      • getToolset(String name) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • getToolsetCallable() + *

      + *

      CreateToolset

      Creates a new toolset in the given app.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • createToolset(CreateToolsetRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • createToolset(AppName parent, Toolset toolset) + *

      • createToolset(String parent, Toolset toolset) + *

      • createToolset(AppName parent, Toolset toolset, String toolsetId) + *

      • createToolset(String parent, Toolset toolset, String toolsetId) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • createToolsetCallable() + *

      + *

      UpdateToolset

      Updates the specified toolset.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • updateToolset(UpdateToolsetRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • updateToolset(Toolset toolset, FieldMask updateMask) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • updateToolsetCallable() + *

      + *

      DeleteToolset

      Deletes the specified toolset.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • deleteToolset(DeleteToolsetRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • deleteToolset(ToolsetName name) + *

      • deleteToolset(String name) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • deleteToolsetCallable() + *

      + *

      ListAppVersions

      Lists all app versions in the given app.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • listAppVersions(ListAppVersionsRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • listAppVersions(AppName parent) + *

      • listAppVersions(String parent) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • listAppVersionsPagedCallable() + *

      • listAppVersionsCallable() + *

      + *

      GetAppVersion

      Gets details of the specified app version.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • getAppVersion(GetAppVersionRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • getAppVersion(AppVersionName name) + *

      • getAppVersion(String name) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • getAppVersionCallable() + *

      + *

      CreateAppVersion

      Creates a new app version in the given app.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • createAppVersion(CreateAppVersionRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • createAppVersion(AppName parent, AppVersion appVersion) + *

      • createAppVersion(String parent, AppVersion appVersion) + *

      • createAppVersion(AppName parent, AppVersion appVersion, String appVersionId) + *

      • createAppVersion(String parent, AppVersion appVersion, String appVersionId) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • createAppVersionCallable() + *

      + *

      DeleteAppVersion

      Deletes the specified app version.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • deleteAppVersion(DeleteAppVersionRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • deleteAppVersion(AppVersionName name) + *

      • deleteAppVersion(String name) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • deleteAppVersionCallable() + *

      + *

      RestoreAppVersion

      Restores the specified app version. This will create a new app version from the current draft app and overwrite the current draft with the specified app version.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • restoreAppVersionAsync(RestoreAppVersionRequest request) + *

      + *

      Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

      + *
        + *
      • restoreAppVersionAsync(AppVersionName name) + *

      • restoreAppVersionAsync(String name) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • restoreAppVersionOperationCallable() + *

      • restoreAppVersionCallable() + *

      + *

      ListChangelogs

      Lists the changelogs of the specified app.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • listChangelogs(ListChangelogsRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • listChangelogs(AppName parent) + *

      • listChangelogs(String parent) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • listChangelogsPagedCallable() + *

      • listChangelogsCallable() + *

      + *

      GetChangelog

      Gets the specified changelog.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • getChangelog(GetChangelogRequest request) + *

      + *

      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

      + *
        + *
      • getChangelog(ChangelogName name) + *

      • getChangelog(String name) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • getChangelogCallable() + *

      + *

      ListLocations

      Lists information about the supported locations for this service.This method can be called in two ways: + *

      * **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • listLocations(ListLocationsRequest request) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • listLocationsPagedCallable() + *

      • listLocationsCallable() + *

      + *

      GetLocation

      Gets information about a location.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • getLocation(GetLocationRequest request) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • getLocationCallable() + *

      + *
      + * + *

      See the individual methods for example code. + * + *

      Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

      This class can be customized by passing in a custom instance of AgentServiceSettings to + * create(). For example: + * + *

      To customize credentials: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * AgentServiceSettings agentServiceSettings =
      + *     AgentServiceSettings.newBuilder()
      + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
      + *         .build();
      + * AgentServiceClient agentServiceClient = AgentServiceClient.create(agentServiceSettings);
      + * }
      + * + *

      To customize the endpoint: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * AgentServiceSettings agentServiceSettings =
      + *     AgentServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
      + * AgentServiceClient agentServiceClient = AgentServiceClient.create(agentServiceSettings);
      + * }
      + * + *

      To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * AgentServiceSettings agentServiceSettings = AgentServiceSettings.newHttpJsonBuilder().build();
      + * AgentServiceClient agentServiceClient = AgentServiceClient.create(agentServiceSettings);
      + * }
      + * + *

      Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class AgentServiceClient implements BackgroundResource { + private final AgentServiceSettings settings; + private final AgentServiceStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of AgentServiceClient with default settings. */ + public static final AgentServiceClient create() throws IOException { + return create(AgentServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of AgentServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final AgentServiceClient create(AgentServiceSettings settings) throws IOException { + return new AgentServiceClient(settings); + } + + /** + * Constructs an instance of AgentServiceClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(AgentServiceSettings). + */ + public static final AgentServiceClient create(AgentServiceStub stub) { + return new AgentServiceClient(stub); + } + + /** + * Constructs an instance of AgentServiceClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected AgentServiceClient(AgentServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((AgentServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected AgentServiceClient(AgentServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final AgentServiceSettings getSettings() { + return settings; + } + + public AgentServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists apps in the given project and location. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
      +   *   for (App element : agentServiceClient.listApps(parent).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the location to list apps from. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAppsPagedResponse listApps(LocationName parent) { + ListAppsRequest request = + ListAppsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listApps(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists apps in the given project and location. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
      +   *   for (App element : agentServiceClient.listApps(parent).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the location to list apps from. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAppsPagedResponse listApps(String parent) { + ListAppsRequest request = ListAppsRequest.newBuilder().setParent(parent).build(); + return listApps(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists apps in the given project and location. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ListAppsRequest request =
      +   *       ListAppsRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .setOrderBy("orderBy-1207110587")
      +   *           .build();
      +   *   for (App element : agentServiceClient.listApps(request).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAppsPagedResponse listApps(ListAppsRequest request) { + return listAppsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists apps in the given project and location. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ListAppsRequest request =
      +   *       ListAppsRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .setOrderBy("orderBy-1207110587")
      +   *           .build();
      +   *   ApiFuture future = agentServiceClient.listAppsPagedCallable().futureCall(request);
      +   *   // Do something.
      +   *   for (App element : future.get().iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable listAppsPagedCallable() { + return stub.listAppsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists apps in the given project and location. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ListAppsRequest request =
      +   *       ListAppsRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .setOrderBy("orderBy-1207110587")
      +   *           .build();
      +   *   while (true) {
      +   *     ListAppsResponse response = agentServiceClient.listAppsCallable().call(request);
      +   *     for (App element : response.getAppsList()) {
      +   *       // doThingsWith(element);
      +   *     }
      +   *     String nextPageToken = response.getNextPageToken();
      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
      +   *     } else {
      +   *       break;
      +   *     }
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable listAppsCallable() { + return stub.listAppsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   AppName name = AppName.of("[PROJECT]", "[LOCATION]", "[APP]");
      +   *   App response = agentServiceClient.getApp(name);
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the app to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final App getApp(AppName name) { + GetAppRequest request = + GetAppRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getApp(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String name = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString();
      +   *   App response = agentServiceClient.getApp(name);
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the app to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final App getApp(String name) { + GetAppRequest request = GetAppRequest.newBuilder().setName(name).build(); + return getApp(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   GetAppRequest request =
      +   *       GetAppRequest.newBuilder()
      +   *           .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .build();
      +   *   App response = agentServiceClient.getApp(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final App getApp(GetAppRequest request) { + return getAppCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   GetAppRequest request =
      +   *       GetAppRequest.newBuilder()
      +   *           .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .build();
      +   *   ApiFuture future = agentServiceClient.getAppCallable().futureCall(request);
      +   *   // Do something.
      +   *   App response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable getAppCallable() { + return stub.getAppCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new app in the given project and location. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
      +   *   App app = App.newBuilder().build();
      +   *   App response = agentServiceClient.createAppAsync(parent, app).get();
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the location to create an app in. + * @param app Required. The app to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createAppAsync( + LocationName parent, App app) { + CreateAppRequest request = + CreateAppRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setApp(app) + .build(); + return createAppAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new app in the given project and location. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
      +   *   App app = App.newBuilder().build();
      +   *   App response = agentServiceClient.createAppAsync(parent, app).get();
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the location to create an app in. + * @param app Required. The app to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createAppAsync(String parent, App app) { + CreateAppRequest request = CreateAppRequest.newBuilder().setParent(parent).setApp(app).build(); + return createAppAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new app in the given project and location. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
      +   *   App app = App.newBuilder().build();
      +   *   String appId = "appId93028124";
      +   *   App response = agentServiceClient.createAppAsync(parent, app, appId).get();
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the location to create an app in. + * @param app Required. The app to create. + * @param appId Optional. The ID to use for the app, which will become the final component of the + * app's resource name. If not provided, a unique ID will be automatically assigned for the + * app. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createAppAsync( + LocationName parent, App app, String appId) { + CreateAppRequest request = + CreateAppRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setApp(app) + .setAppId(appId) + .build(); + return createAppAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new app in the given project and location. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
      +   *   App app = App.newBuilder().build();
      +   *   String appId = "appId93028124";
      +   *   App response = agentServiceClient.createAppAsync(parent, app, appId).get();
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the location to create an app in. + * @param app Required. The app to create. + * @param appId Optional. The ID to use for the app, which will become the final component of the + * app's resource name. If not provided, a unique ID will be automatically assigned for the + * app. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createAppAsync( + String parent, App app, String appId) { + CreateAppRequest request = + CreateAppRequest.newBuilder().setParent(parent).setApp(app).setAppId(appId).build(); + return createAppAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new app in the given project and location. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   CreateAppRequest request =
      +   *       CreateAppRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setAppId("appId93028124")
      +   *           .setApp(App.newBuilder().build())
      +   *           .build();
      +   *   App response = agentServiceClient.createAppAsync(request).get();
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createAppAsync(CreateAppRequest request) { + return createAppOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new app in the given project and location. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   CreateAppRequest request =
      +   *       CreateAppRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setAppId("appId93028124")
      +   *           .setApp(App.newBuilder().build())
      +   *           .build();
      +   *   OperationFuture future =
      +   *       agentServiceClient.createAppOperationCallable().futureCall(request);
      +   *   // Do something.
      +   *   App response = future.get();
      +   * }
      +   * }
      + */ + public final OperationCallable + createAppOperationCallable() { + return stub.createAppOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new app in the given project and location. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   CreateAppRequest request =
      +   *       CreateAppRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setAppId("appId93028124")
      +   *           .setApp(App.newBuilder().build())
      +   *           .build();
      +   *   ApiFuture future = agentServiceClient.createAppCallable().futureCall(request);
      +   *   // Do something.
      +   *   Operation response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable createAppCallable() { + return stub.createAppCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   App app = App.newBuilder().build();
      +   *   FieldMask updateMask = FieldMask.newBuilder().build();
      +   *   App response = agentServiceClient.updateApp(app, updateMask);
      +   * }
      +   * }
      + * + * @param app Required. The app to update. + * @param updateMask Optional. Field mask is used to control which fields get updated. If the mask + * is not present, all fields will be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final App updateApp(App app, FieldMask updateMask) { + UpdateAppRequest request = + UpdateAppRequest.newBuilder().setApp(app).setUpdateMask(updateMask).build(); + return updateApp(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   UpdateAppRequest request =
      +   *       UpdateAppRequest.newBuilder()
      +   *           .setApp(App.newBuilder().build())
      +   *           .setUpdateMask(FieldMask.newBuilder().build())
      +   *           .build();
      +   *   App response = agentServiceClient.updateApp(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final App updateApp(UpdateAppRequest request) { + return updateAppCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   UpdateAppRequest request =
      +   *       UpdateAppRequest.newBuilder()
      +   *           .setApp(App.newBuilder().build())
      +   *           .setUpdateMask(FieldMask.newBuilder().build())
      +   *           .build();
      +   *   ApiFuture future = agentServiceClient.updateAppCallable().futureCall(request);
      +   *   // Do something.
      +   *   App response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable updateAppCallable() { + return stub.updateAppCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   AppName name = AppName.of("[PROJECT]", "[LOCATION]", "[APP]");
      +   *   agentServiceClient.deleteAppAsync(name).get();
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the app to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAppAsync(AppName name) { + DeleteAppRequest request = + DeleteAppRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteAppAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String name = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString();
      +   *   agentServiceClient.deleteAppAsync(name).get();
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the app to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAppAsync(String name) { + DeleteAppRequest request = DeleteAppRequest.newBuilder().setName(name).build(); + return deleteAppAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   DeleteAppRequest request =
      +   *       DeleteAppRequest.newBuilder()
      +   *           .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setEtag("etag3123477")
      +   *           .build();
      +   *   agentServiceClient.deleteAppAsync(request).get();
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAppAsync(DeleteAppRequest request) { + return deleteAppOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   DeleteAppRequest request =
      +   *       DeleteAppRequest.newBuilder()
      +   *           .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setEtag("etag3123477")
      +   *           .build();
      +   *   OperationFuture future =
      +   *       agentServiceClient.deleteAppOperationCallable().futureCall(request);
      +   *   // Do something.
      +   *   future.get();
      +   * }
      +   * }
      + */ + public final OperationCallable + deleteAppOperationCallable() { + return stub.deleteAppOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   DeleteAppRequest request =
      +   *       DeleteAppRequest.newBuilder()
      +   *           .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setEtag("etag3123477")
      +   *           .build();
      +   *   ApiFuture future = agentServiceClient.deleteAppCallable().futureCall(request);
      +   *   // Do something.
      +   *   future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable deleteAppCallable() { + return stub.deleteAppCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports the specified app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   AppName name = AppName.of("[PROJECT]", "[LOCATION]", "[APP]");
      +   *   ExportAppResponse response = agentServiceClient.exportAppAsync(name).get();
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the app to export. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture exportAppAsync(AppName name) { + ExportAppRequest request = + ExportAppRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return exportAppAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports the specified app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String name = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString();
      +   *   ExportAppResponse response = agentServiceClient.exportAppAsync(name).get();
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the app to export. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture exportAppAsync(String name) { + ExportAppRequest request = ExportAppRequest.newBuilder().setName(name).build(); + return exportAppAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports the specified app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ExportAppRequest request =
      +   *       ExportAppRequest.newBuilder()
      +   *           .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setGcsUri("gcsUri-1251224875")
      +   *           .build();
      +   *   ExportAppResponse response = agentServiceClient.exportAppAsync(request).get();
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture exportAppAsync( + ExportAppRequest request) { + return exportAppOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports the specified app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ExportAppRequest request =
      +   *       ExportAppRequest.newBuilder()
      +   *           .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setGcsUri("gcsUri-1251224875")
      +   *           .build();
      +   *   OperationFuture future =
      +   *       agentServiceClient.exportAppOperationCallable().futureCall(request);
      +   *   // Do something.
      +   *   ExportAppResponse response = future.get();
      +   * }
      +   * }
      + */ + public final OperationCallable + exportAppOperationCallable() { + return stub.exportAppOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports the specified app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ExportAppRequest request =
      +   *       ExportAppRequest.newBuilder()
      +   *           .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setGcsUri("gcsUri-1251224875")
      +   *           .build();
      +   *   ApiFuture future = agentServiceClient.exportAppCallable().futureCall(request);
      +   *   // Do something.
      +   *   Operation response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable exportAppCallable() { + return stub.exportAppCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports the specified app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
      +   *   String displayName = "displayName1714148973";
      +   *   String appId = "appId93028124";
      +   *   ImportAppResponse response =
      +   *       agentServiceClient.importAppAsync(parent, displayName, appId).get();
      +   * }
      +   * }
      + * + * @param parent Required. The parent resource name with the location of the app to import. + * @param displayName Optional. The display name of the app to import. + *
        + *
      • If the app is created on import, and the display name is specified, the imported app + * will use this display name. If a conflict is detected with an existing app, a + * timestamp will be appended to the display name to make it unique. + *
      • If the app is a reimport, this field should not be set. Providing a display name + * during reimport will result in an INVALID_ARGUMENT error. + *
      + * + * @param appId Optional. The ID to use for the imported app. + *
        + *
      • If not specified, a unique ID will be automatically assigned for the app. + *
      • Otherwise, the imported app will use this ID as the final component of its resource + * name. If an app with the same ID already exists at the specified location in the + * project, the content of the existing app will be replaced. + *
      + * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture importAppAsync( + LocationName parent, String displayName, String appId) { + ImportAppRequest request = + ImportAppRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDisplayName(displayName) + .setAppId(appId) + .build(); + return importAppAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports the specified app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
      +   *   String displayName = "displayName1714148973";
      +   *   String appId = "appId93028124";
      +   *   ImportAppResponse response =
      +   *       agentServiceClient.importAppAsync(parent, displayName, appId).get();
      +   * }
      +   * }
      + * + * @param parent Required. The parent resource name with the location of the app to import. + * @param displayName Optional. The display name of the app to import. + *
        + *
      • If the app is created on import, and the display name is specified, the imported app + * will use this display name. If a conflict is detected with an existing app, a + * timestamp will be appended to the display name to make it unique. + *
      • If the app is a reimport, this field should not be set. Providing a display name + * during reimport will result in an INVALID_ARGUMENT error. + *
      + * + * @param appId Optional. The ID to use for the imported app. + *
        + *
      • If not specified, a unique ID will be automatically assigned for the app. + *
      • Otherwise, the imported app will use this ID as the final component of its resource + * name. If an app with the same ID already exists at the specified location in the + * project, the content of the existing app will be replaced. + *
      + * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture importAppAsync( + String parent, String displayName, String appId) { + ImportAppRequest request = + ImportAppRequest.newBuilder() + .setParent(parent) + .setDisplayName(displayName) + .setAppId(appId) + .build(); + return importAppAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports the specified app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ImportAppRequest request =
      +   *       ImportAppRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setDisplayName("displayName1714148973")
      +   *           .setAppId("appId93028124")
      +   *           .setImportOptions(ImportAppRequest.ImportOptions.newBuilder().build())
      +   *           .setIgnoreAppLock(true)
      +   *           .build();
      +   *   ImportAppResponse response = agentServiceClient.importAppAsync(request).get();
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture importAppAsync( + ImportAppRequest request) { + return importAppOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports the specified app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ImportAppRequest request =
      +   *       ImportAppRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setDisplayName("displayName1714148973")
      +   *           .setAppId("appId93028124")
      +   *           .setImportOptions(ImportAppRequest.ImportOptions.newBuilder().build())
      +   *           .setIgnoreAppLock(true)
      +   *           .build();
      +   *   OperationFuture future =
      +   *       agentServiceClient.importAppOperationCallable().futureCall(request);
      +   *   // Do something.
      +   *   ImportAppResponse response = future.get();
      +   * }
      +   * }
      + */ + public final OperationCallable + importAppOperationCallable() { + return stub.importAppOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports the specified app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ImportAppRequest request =
      +   *       ImportAppRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setDisplayName("displayName1714148973")
      +   *           .setAppId("appId93028124")
      +   *           .setImportOptions(ImportAppRequest.ImportOptions.newBuilder().build())
      +   *           .setIgnoreAppLock(true)
      +   *           .build();
      +   *   ApiFuture future = agentServiceClient.importAppCallable().futureCall(request);
      +   *   // Do something.
      +   *   Operation response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable importAppCallable() { + return stub.importAppCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists agents in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]");
      +   *   for (Agent element : agentServiceClient.listAgents(parent).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to list agents from. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAgentsPagedResponse listAgents(AppName parent) { + ListAgentsRequest request = + ListAgentsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listAgents(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists agents in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString();
      +   *   for (Agent element : agentServiceClient.listAgents(parent).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to list agents from. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAgentsPagedResponse listAgents(String parent) { + ListAgentsRequest request = ListAgentsRequest.newBuilder().setParent(parent).build(); + return listAgents(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists agents in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ListAgentsRequest request =
      +   *       ListAgentsRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .setOrderBy("orderBy-1207110587")
      +   *           .build();
      +   *   for (Agent element : agentServiceClient.listAgents(request).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAgentsPagedResponse listAgents(ListAgentsRequest request) { + return listAgentsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists agents in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ListAgentsRequest request =
      +   *       ListAgentsRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .setOrderBy("orderBy-1207110587")
      +   *           .build();
      +   *   ApiFuture future = agentServiceClient.listAgentsPagedCallable().futureCall(request);
      +   *   // Do something.
      +   *   for (Agent element : future.get().iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable listAgentsPagedCallable() { + return stub.listAgentsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists agents in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ListAgentsRequest request =
      +   *       ListAgentsRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .setOrderBy("orderBy-1207110587")
      +   *           .build();
      +   *   while (true) {
      +   *     ListAgentsResponse response = agentServiceClient.listAgentsCallable().call(request);
      +   *     for (Agent element : response.getAgentsList()) {
      +   *       // doThingsWith(element);
      +   *     }
      +   *     String nextPageToken = response.getNextPageToken();
      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
      +   *     } else {
      +   *       break;
      +   *     }
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable listAgentsCallable() { + return stub.listAgentsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified agent. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]");
      +   *   Agent response = agentServiceClient.getAgent(name);
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the agent to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Agent getAgent(AgentName name) { + GetAgentRequest request = + GetAgentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAgent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified agent. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String name = AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString();
      +   *   Agent response = agentServiceClient.getAgent(name);
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the agent to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Agent getAgent(String name) { + GetAgentRequest request = GetAgentRequest.newBuilder().setName(name).build(); + return getAgent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified agent. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   GetAgentRequest request =
      +   *       GetAgentRequest.newBuilder()
      +   *           .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString())
      +   *           .build();
      +   *   Agent response = agentServiceClient.getAgent(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Agent getAgent(GetAgentRequest request) { + return getAgentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified agent. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   GetAgentRequest request =
      +   *       GetAgentRequest.newBuilder()
      +   *           .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString())
      +   *           .build();
      +   *   ApiFuture future = agentServiceClient.getAgentCallable().futureCall(request);
      +   *   // Do something.
      +   *   Agent response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable getAgentCallable() { + return stub.getAgentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new agent in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]");
      +   *   Agent agent = Agent.newBuilder().build();
      +   *   Agent response = agentServiceClient.createAgent(parent, agent);
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to create an agent in. + * @param agent Required. The agent to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Agent createAgent(AppName parent, Agent agent) { + CreateAgentRequest request = + CreateAgentRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAgent(agent) + .build(); + return createAgent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new agent in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString();
      +   *   Agent agent = Agent.newBuilder().build();
      +   *   Agent response = agentServiceClient.createAgent(parent, agent);
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to create an agent in. + * @param agent Required. The agent to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Agent createAgent(String parent, Agent agent) { + CreateAgentRequest request = + CreateAgentRequest.newBuilder().setParent(parent).setAgent(agent).build(); + return createAgent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new agent in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]");
      +   *   Agent agent = Agent.newBuilder().build();
      +   *   String agentId = "agentId-1060987136";
      +   *   Agent response = agentServiceClient.createAgent(parent, agent, agentId);
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to create an agent in. + * @param agent Required. The agent to create. + * @param agentId Optional. The ID to use for the agent, which will become the final component of + * the agent's resource name. If not provided, a unique ID will be automatically assigned for + * the agent. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Agent createAgent(AppName parent, Agent agent, String agentId) { + CreateAgentRequest request = + CreateAgentRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAgent(agent) + .setAgentId(agentId) + .build(); + return createAgent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new agent in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString();
      +   *   Agent agent = Agent.newBuilder().build();
      +   *   String agentId = "agentId-1060987136";
      +   *   Agent response = agentServiceClient.createAgent(parent, agent, agentId);
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to create an agent in. + * @param agent Required. The agent to create. + * @param agentId Optional. The ID to use for the agent, which will become the final component of + * the agent's resource name. If not provided, a unique ID will be automatically assigned for + * the agent. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Agent createAgent(String parent, Agent agent, String agentId) { + CreateAgentRequest request = + CreateAgentRequest.newBuilder() + .setParent(parent) + .setAgent(agent) + .setAgentId(agentId) + .build(); + return createAgent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new agent in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   CreateAgentRequest request =
      +   *       CreateAgentRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setAgentId("agentId-1060987136")
      +   *           .setAgent(Agent.newBuilder().build())
      +   *           .build();
      +   *   Agent response = agentServiceClient.createAgent(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Agent createAgent(CreateAgentRequest request) { + return createAgentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new agent in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   CreateAgentRequest request =
      +   *       CreateAgentRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setAgentId("agentId-1060987136")
      +   *           .setAgent(Agent.newBuilder().build())
      +   *           .build();
      +   *   ApiFuture future = agentServiceClient.createAgentCallable().futureCall(request);
      +   *   // Do something.
      +   *   Agent response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable createAgentCallable() { + return stub.createAgentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified agent. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   Agent agent = Agent.newBuilder().build();
      +   *   FieldMask updateMask = FieldMask.newBuilder().build();
      +   *   Agent response = agentServiceClient.updateAgent(agent, updateMask);
      +   * }
      +   * }
      + * + * @param agent Required. The agent to update. + * @param updateMask Optional. Field mask is used to control which fields get updated. If the mask + * is not present, all fields will be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Agent updateAgent(Agent agent, FieldMask updateMask) { + UpdateAgentRequest request = + UpdateAgentRequest.newBuilder().setAgent(agent).setUpdateMask(updateMask).build(); + return updateAgent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified agent. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   UpdateAgentRequest request =
      +   *       UpdateAgentRequest.newBuilder()
      +   *           .setAgent(Agent.newBuilder().build())
      +   *           .setUpdateMask(FieldMask.newBuilder().build())
      +   *           .build();
      +   *   Agent response = agentServiceClient.updateAgent(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Agent updateAgent(UpdateAgentRequest request) { + return updateAgentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified agent. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   UpdateAgentRequest request =
      +   *       UpdateAgentRequest.newBuilder()
      +   *           .setAgent(Agent.newBuilder().build())
      +   *           .setUpdateMask(FieldMask.newBuilder().build())
      +   *           .build();
      +   *   ApiFuture future = agentServiceClient.updateAgentCallable().futureCall(request);
      +   *   // Do something.
      +   *   Agent response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable updateAgentCallable() { + return stub.updateAgentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified agent. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]");
      +   *   agentServiceClient.deleteAgent(name);
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the agent to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteAgent(AgentName name) { + DeleteAgentRequest request = + DeleteAgentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteAgent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified agent. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String name = AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString();
      +   *   agentServiceClient.deleteAgent(name);
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the agent to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteAgent(String name) { + DeleteAgentRequest request = DeleteAgentRequest.newBuilder().setName(name).build(); + deleteAgent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified agent. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   DeleteAgentRequest request =
      +   *       DeleteAgentRequest.newBuilder()
      +   *           .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString())
      +   *           .setForce(true)
      +   *           .setEtag("etag3123477")
      +   *           .build();
      +   *   agentServiceClient.deleteAgent(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteAgent(DeleteAgentRequest request) { + deleteAgentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified agent. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   DeleteAgentRequest request =
      +   *       DeleteAgentRequest.newBuilder()
      +   *           .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString())
      +   *           .setForce(true)
      +   *           .setEtag("etag3123477")
      +   *           .build();
      +   *   ApiFuture future = agentServiceClient.deleteAgentCallable().futureCall(request);
      +   *   // Do something.
      +   *   future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable deleteAgentCallable() { + return stub.deleteAgentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists examples in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]");
      +   *   for (Example element : agentServiceClient.listExamples(parent).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to list examples from. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListExamplesPagedResponse listExamples(AppName parent) { + ListExamplesRequest request = + ListExamplesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listExamples(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists examples in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString();
      +   *   for (Example element : agentServiceClient.listExamples(parent).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to list examples from. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListExamplesPagedResponse listExamples(String parent) { + ListExamplesRequest request = ListExamplesRequest.newBuilder().setParent(parent).build(); + return listExamples(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists examples in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ListExamplesRequest request =
      +   *       ListExamplesRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .setOrderBy("orderBy-1207110587")
      +   *           .build();
      +   *   for (Example element : agentServiceClient.listExamples(request).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListExamplesPagedResponse listExamples(ListExamplesRequest request) { + return listExamplesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists examples in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ListExamplesRequest request =
      +   *       ListExamplesRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .setOrderBy("orderBy-1207110587")
      +   *           .build();
      +   *   ApiFuture future =
      +   *       agentServiceClient.listExamplesPagedCallable().futureCall(request);
      +   *   // Do something.
      +   *   for (Example element : future.get().iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable + listExamplesPagedCallable() { + return stub.listExamplesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists examples in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ListExamplesRequest request =
      +   *       ListExamplesRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .setOrderBy("orderBy-1207110587")
      +   *           .build();
      +   *   while (true) {
      +   *     ListExamplesResponse response = agentServiceClient.listExamplesCallable().call(request);
      +   *     for (Example element : response.getExamplesList()) {
      +   *       // doThingsWith(element);
      +   *     }
      +   *     String nextPageToken = response.getNextPageToken();
      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
      +   *     } else {
      +   *       break;
      +   *     }
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable listExamplesCallable() { + return stub.listExamplesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified example. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ExampleName name = ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]");
      +   *   Example response = agentServiceClient.getExample(name);
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the example to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Example getExample(ExampleName name) { + GetExampleRequest request = + GetExampleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getExample(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified example. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String name = ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]").toString();
      +   *   Example response = agentServiceClient.getExample(name);
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the example to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Example getExample(String name) { + GetExampleRequest request = GetExampleRequest.newBuilder().setName(name).build(); + return getExample(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified example. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   GetExampleRequest request =
      +   *       GetExampleRequest.newBuilder()
      +   *           .setName(ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]").toString())
      +   *           .build();
      +   *   Example response = agentServiceClient.getExample(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Example getExample(GetExampleRequest request) { + return getExampleCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified example. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   GetExampleRequest request =
      +   *       GetExampleRequest.newBuilder()
      +   *           .setName(ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]").toString())
      +   *           .build();
      +   *   ApiFuture future = agentServiceClient.getExampleCallable().futureCall(request);
      +   *   // Do something.
      +   *   Example response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable getExampleCallable() { + return stub.getExampleCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new example in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]");
      +   *   Example example = Example.newBuilder().build();
      +   *   Example response = agentServiceClient.createExample(parent, example);
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to create an example in. + * @param example Required. The example to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Example createExample(AppName parent, Example example) { + CreateExampleRequest request = + CreateExampleRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setExample(example) + .build(); + return createExample(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new example in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString();
      +   *   Example example = Example.newBuilder().build();
      +   *   Example response = agentServiceClient.createExample(parent, example);
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to create an example in. + * @param example Required. The example to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Example createExample(String parent, Example example) { + CreateExampleRequest request = + CreateExampleRequest.newBuilder().setParent(parent).setExample(example).build(); + return createExample(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new example in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]");
      +   *   Example example = Example.newBuilder().build();
      +   *   String exampleId = "exampleId-64591835";
      +   *   Example response = agentServiceClient.createExample(parent, example, exampleId);
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to create an example in. + * @param example Required. The example to create. + * @param exampleId Optional. The ID to use for the example, which will become the final component + * of the example's resource name. If not provided, a unique ID will be automatically assigned + * for the example. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Example createExample(AppName parent, Example example, String exampleId) { + CreateExampleRequest request = + CreateExampleRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setExample(example) + .setExampleId(exampleId) + .build(); + return createExample(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new example in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString();
      +   *   Example example = Example.newBuilder().build();
      +   *   String exampleId = "exampleId-64591835";
      +   *   Example response = agentServiceClient.createExample(parent, example, exampleId);
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to create an example in. + * @param example Required. The example to create. + * @param exampleId Optional. The ID to use for the example, which will become the final component + * of the example's resource name. If not provided, a unique ID will be automatically assigned + * for the example. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Example createExample(String parent, Example example, String exampleId) { + CreateExampleRequest request = + CreateExampleRequest.newBuilder() + .setParent(parent) + .setExample(example) + .setExampleId(exampleId) + .build(); + return createExample(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new example in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   CreateExampleRequest request =
      +   *       CreateExampleRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setExampleId("exampleId-64591835")
      +   *           .setExample(Example.newBuilder().build())
      +   *           .build();
      +   *   Example response = agentServiceClient.createExample(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Example createExample(CreateExampleRequest request) { + return createExampleCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new example in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   CreateExampleRequest request =
      +   *       CreateExampleRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setExampleId("exampleId-64591835")
      +   *           .setExample(Example.newBuilder().build())
      +   *           .build();
      +   *   ApiFuture future = agentServiceClient.createExampleCallable().futureCall(request);
      +   *   // Do something.
      +   *   Example response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable createExampleCallable() { + return stub.createExampleCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified example. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   Example example = Example.newBuilder().build();
      +   *   FieldMask updateMask = FieldMask.newBuilder().build();
      +   *   Example response = agentServiceClient.updateExample(example, updateMask);
      +   * }
      +   * }
      + * + * @param example Required. The example to update. + * @param updateMask Optional. Field mask is used to control which fields get updated. If the mask + * is not present, all fields will be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Example updateExample(Example example, FieldMask updateMask) { + UpdateExampleRequest request = + UpdateExampleRequest.newBuilder().setExample(example).setUpdateMask(updateMask).build(); + return updateExample(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified example. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   UpdateExampleRequest request =
      +   *       UpdateExampleRequest.newBuilder()
      +   *           .setExample(Example.newBuilder().build())
      +   *           .setUpdateMask(FieldMask.newBuilder().build())
      +   *           .build();
      +   *   Example response = agentServiceClient.updateExample(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Example updateExample(UpdateExampleRequest request) { + return updateExampleCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified example. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   UpdateExampleRequest request =
      +   *       UpdateExampleRequest.newBuilder()
      +   *           .setExample(Example.newBuilder().build())
      +   *           .setUpdateMask(FieldMask.newBuilder().build())
      +   *           .build();
      +   *   ApiFuture future = agentServiceClient.updateExampleCallable().futureCall(request);
      +   *   // Do something.
      +   *   Example response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable updateExampleCallable() { + return stub.updateExampleCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified example. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ExampleName name = ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]");
      +   *   agentServiceClient.deleteExample(name);
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the example to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteExample(ExampleName name) { + DeleteExampleRequest request = + DeleteExampleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteExample(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified example. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String name = ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]").toString();
      +   *   agentServiceClient.deleteExample(name);
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the example to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteExample(String name) { + DeleteExampleRequest request = DeleteExampleRequest.newBuilder().setName(name).build(); + deleteExample(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified example. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   DeleteExampleRequest request =
      +   *       DeleteExampleRequest.newBuilder()
      +   *           .setName(ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]").toString())
      +   *           .setEtag("etag3123477")
      +   *           .build();
      +   *   agentServiceClient.deleteExample(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteExample(DeleteExampleRequest request) { + deleteExampleCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified example. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   DeleteExampleRequest request =
      +   *       DeleteExampleRequest.newBuilder()
      +   *           .setName(ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]").toString())
      +   *           .setEtag("etag3123477")
      +   *           .build();
      +   *   ApiFuture future = agentServiceClient.deleteExampleCallable().futureCall(request);
      +   *   // Do something.
      +   *   future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable deleteExampleCallable() { + return stub.deleteExampleCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists tools in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]");
      +   *   for (Tool element : agentServiceClient.listTools(parent).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to list tools from. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListToolsPagedResponse listTools(AppName parent) { + ListToolsRequest request = + ListToolsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listTools(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists tools in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString();
      +   *   for (Tool element : agentServiceClient.listTools(parent).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to list tools from. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListToolsPagedResponse listTools(String parent) { + ListToolsRequest request = ListToolsRequest.newBuilder().setParent(parent).build(); + return listTools(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists tools in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ListToolsRequest request =
      +   *       ListToolsRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .setOrderBy("orderBy-1207110587")
      +   *           .build();
      +   *   for (Tool element : agentServiceClient.listTools(request).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListToolsPagedResponse listTools(ListToolsRequest request) { + return listToolsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists tools in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ListToolsRequest request =
      +   *       ListToolsRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .setOrderBy("orderBy-1207110587")
      +   *           .build();
      +   *   ApiFuture future = agentServiceClient.listToolsPagedCallable().futureCall(request);
      +   *   // Do something.
      +   *   for (Tool element : future.get().iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable listToolsPagedCallable() { + return stub.listToolsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists tools in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ListToolsRequest request =
      +   *       ListToolsRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .setOrderBy("orderBy-1207110587")
      +   *           .build();
      +   *   while (true) {
      +   *     ListToolsResponse response = agentServiceClient.listToolsCallable().call(request);
      +   *     for (Tool element : response.getToolsList()) {
      +   *       // doThingsWith(element);
      +   *     }
      +   *     String nextPageToken = response.getNextPageToken();
      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
      +   *     } else {
      +   *       break;
      +   *     }
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable listToolsCallable() { + return stub.listToolsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified tool. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ToolName name = ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]");
      +   *   Tool response = agentServiceClient.getTool(name);
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the tool to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tool getTool(ToolName name) { + GetToolRequest request = + GetToolRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getTool(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified tool. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String name = ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString();
      +   *   Tool response = agentServiceClient.getTool(name);
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the tool to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tool getTool(String name) { + GetToolRequest request = GetToolRequest.newBuilder().setName(name).build(); + return getTool(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified tool. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   GetToolRequest request =
      +   *       GetToolRequest.newBuilder()
      +   *           .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString())
      +   *           .build();
      +   *   Tool response = agentServiceClient.getTool(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tool getTool(GetToolRequest request) { + return getToolCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified tool. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   GetToolRequest request =
      +   *       GetToolRequest.newBuilder()
      +   *           .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString())
      +   *           .build();
      +   *   ApiFuture future = agentServiceClient.getToolCallable().futureCall(request);
      +   *   // Do something.
      +   *   Tool response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable getToolCallable() { + return stub.getToolCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists conversations in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]");
      +   *   for (Conversation element : agentServiceClient.listConversations(parent).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to list conversations from. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListConversationsPagedResponse listConversations(AppName parent) { + ListConversationsRequest request = + ListConversationsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listConversations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists conversations in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString();
      +   *   for (Conversation element : agentServiceClient.listConversations(parent).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to list conversations from. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListConversationsPagedResponse listConversations(String parent) { + ListConversationsRequest request = + ListConversationsRequest.newBuilder().setParent(parent).build(); + return listConversations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists conversations in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ListConversationsRequest request =
      +   *       ListConversationsRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .addAllSources(new ArrayList())
      +   *           .build();
      +   *   for (Conversation element : agentServiceClient.listConversations(request).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListConversationsPagedResponse listConversations(ListConversationsRequest request) { + return listConversationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists conversations in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ListConversationsRequest request =
      +   *       ListConversationsRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .addAllSources(new ArrayList())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       agentServiceClient.listConversationsPagedCallable().futureCall(request);
      +   *   // Do something.
      +   *   for (Conversation element : future.get().iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable + listConversationsPagedCallable() { + return stub.listConversationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists conversations in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ListConversationsRequest request =
      +   *       ListConversationsRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .addAllSources(new ArrayList())
      +   *           .build();
      +   *   while (true) {
      +   *     ListConversationsResponse response =
      +   *         agentServiceClient.listConversationsCallable().call(request);
      +   *     for (Conversation element : response.getConversationsList()) {
      +   *       // doThingsWith(element);
      +   *     }
      +   *     String nextPageToken = response.getNextPageToken();
      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
      +   *     } else {
      +   *       break;
      +   *     }
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable + listConversationsCallable() { + return stub.listConversationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified conversation. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ConversationName name =
      +   *       ConversationName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CONVERSATION]");
      +   *   Conversation response = agentServiceClient.getConversation(name);
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the conversation to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Conversation getConversation(ConversationName name) { + GetConversationRequest request = + GetConversationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getConversation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified conversation. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String name =
      +   *       ConversationName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CONVERSATION]").toString();
      +   *   Conversation response = agentServiceClient.getConversation(name);
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the conversation to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Conversation getConversation(String name) { + GetConversationRequest request = GetConversationRequest.newBuilder().setName(name).build(); + return getConversation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified conversation. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   GetConversationRequest request =
      +   *       GetConversationRequest.newBuilder()
      +   *           .setName(
      +   *               ConversationName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CONVERSATION]")
      +   *                   .toString())
      +   *           .build();
      +   *   Conversation response = agentServiceClient.getConversation(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Conversation getConversation(GetConversationRequest request) { + return getConversationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified conversation. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   GetConversationRequest request =
      +   *       GetConversationRequest.newBuilder()
      +   *           .setName(
      +   *               ConversationName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CONVERSATION]")
      +   *                   .toString())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       agentServiceClient.getConversationCallable().futureCall(request);
      +   *   // Do something.
      +   *   Conversation response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable getConversationCallable() { + return stub.getConversationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified conversation. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ConversationName name =
      +   *       ConversationName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CONVERSATION]");
      +   *   agentServiceClient.deleteConversation(name);
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the conversation to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteConversation(ConversationName name) { + DeleteConversationRequest request = + DeleteConversationRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteConversation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified conversation. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String name =
      +   *       ConversationName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CONVERSATION]").toString();
      +   *   agentServiceClient.deleteConversation(name);
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the conversation to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteConversation(String name) { + DeleteConversationRequest request = + DeleteConversationRequest.newBuilder().setName(name).build(); + deleteConversation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified conversation. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   DeleteConversationRequest request =
      +   *       DeleteConversationRequest.newBuilder()
      +   *           .setName(
      +   *               ConversationName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CONVERSATION]")
      +   *                   .toString())
      +   *           .build();
      +   *   agentServiceClient.deleteConversation(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteConversation(DeleteConversationRequest request) { + deleteConversationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified conversation. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   DeleteConversationRequest request =
      +   *       DeleteConversationRequest.newBuilder()
      +   *           .setName(
      +   *               ConversationName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CONVERSATION]")
      +   *                   .toString())
      +   *           .build();
      +   *   ApiFuture future = agentServiceClient.deleteConversationCallable().futureCall(request);
      +   *   // Do something.
      +   *   future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable deleteConversationCallable() { + return stub.deleteConversationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Batch deletes the specified conversations. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]");
      +   *   BatchDeleteConversationsResponse response =
      +   *       agentServiceClient.batchDeleteConversationsAsync(parent).get();
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to delete conversations from. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + batchDeleteConversationsAsync(AppName parent) { + BatchDeleteConversationsRequest request = + BatchDeleteConversationsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return batchDeleteConversationsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Batch deletes the specified conversations. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString();
      +   *   BatchDeleteConversationsResponse response =
      +   *       agentServiceClient.batchDeleteConversationsAsync(parent).get();
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to delete conversations from. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + batchDeleteConversationsAsync(String parent) { + BatchDeleteConversationsRequest request = + BatchDeleteConversationsRequest.newBuilder().setParent(parent).build(); + return batchDeleteConversationsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Batch deletes the specified conversations. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   BatchDeleteConversationsRequest request =
      +   *       BatchDeleteConversationsRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .addAllConversations(new ArrayList())
      +   *           .build();
      +   *   BatchDeleteConversationsResponse response =
      +   *       agentServiceClient.batchDeleteConversationsAsync(request).get();
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + batchDeleteConversationsAsync(BatchDeleteConversationsRequest request) { + return batchDeleteConversationsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Batch deletes the specified conversations. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   BatchDeleteConversationsRequest request =
      +   *       BatchDeleteConversationsRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .addAllConversations(new ArrayList())
      +   *           .build();
      +   *   OperationFuture future =
      +   *       agentServiceClient.batchDeleteConversationsOperationCallable().futureCall(request);
      +   *   // Do something.
      +   *   BatchDeleteConversationsResponse response = future.get();
      +   * }
      +   * }
      + */ + public final OperationCallable< + BatchDeleteConversationsRequest, BatchDeleteConversationsResponse, OperationMetadata> + batchDeleteConversationsOperationCallable() { + return stub.batchDeleteConversationsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Batch deletes the specified conversations. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   BatchDeleteConversationsRequest request =
      +   *       BatchDeleteConversationsRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .addAllConversations(new ArrayList())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       agentServiceClient.batchDeleteConversationsCallable().futureCall(request);
      +   *   // Do something.
      +   *   Operation response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable + batchDeleteConversationsCallable() { + return stub.batchDeleteConversationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new tool in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]");
      +   *   Tool tool = Tool.newBuilder().build();
      +   *   Tool response = agentServiceClient.createTool(parent, tool);
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to create a tool in. + * @param tool Required. The tool to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tool createTool(AppName parent, Tool tool) { + CreateToolRequest request = + CreateToolRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setTool(tool) + .build(); + return createTool(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new tool in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString();
      +   *   Tool tool = Tool.newBuilder().build();
      +   *   Tool response = agentServiceClient.createTool(parent, tool);
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to create a tool in. + * @param tool Required. The tool to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tool createTool(String parent, Tool tool) { + CreateToolRequest request = + CreateToolRequest.newBuilder().setParent(parent).setTool(tool).build(); + return createTool(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new tool in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]");
      +   *   Tool tool = Tool.newBuilder().build();
      +   *   String toolId = "toolId-868061997";
      +   *   Tool response = agentServiceClient.createTool(parent, tool, toolId);
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to create a tool in. + * @param tool Required. The tool to create. + * @param toolId Optional. The ID to use for the tool, which will become the final component of + * the tool's resource name. If not provided, a unique ID will be automatically assigned for + * the tool. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tool createTool(AppName parent, Tool tool, String toolId) { + CreateToolRequest request = + CreateToolRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setTool(tool) + .setToolId(toolId) + .build(); + return createTool(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new tool in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString();
      +   *   Tool tool = Tool.newBuilder().build();
      +   *   String toolId = "toolId-868061997";
      +   *   Tool response = agentServiceClient.createTool(parent, tool, toolId);
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to create a tool in. + * @param tool Required. The tool to create. + * @param toolId Optional. The ID to use for the tool, which will become the final component of + * the tool's resource name. If not provided, a unique ID will be automatically assigned for + * the tool. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tool createTool(String parent, Tool tool, String toolId) { + CreateToolRequest request = + CreateToolRequest.newBuilder().setParent(parent).setTool(tool).setToolId(toolId).build(); + return createTool(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new tool in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   CreateToolRequest request =
      +   *       CreateToolRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setToolId("toolId-868061997")
      +   *           .setTool(Tool.newBuilder().build())
      +   *           .build();
      +   *   Tool response = agentServiceClient.createTool(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tool createTool(CreateToolRequest request) { + return createToolCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new tool in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   CreateToolRequest request =
      +   *       CreateToolRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setToolId("toolId-868061997")
      +   *           .setTool(Tool.newBuilder().build())
      +   *           .build();
      +   *   ApiFuture future = agentServiceClient.createToolCallable().futureCall(request);
      +   *   // Do something.
      +   *   Tool response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable createToolCallable() { + return stub.createToolCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified tool. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   Tool tool = Tool.newBuilder().build();
      +   *   FieldMask updateMask = FieldMask.newBuilder().build();
      +   *   Tool response = agentServiceClient.updateTool(tool, updateMask);
      +   * }
      +   * }
      + * + * @param tool Required. The tool to update. + * @param updateMask Optional. Field mask is used to control which fields get updated. If the mask + * is not present, all fields will be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tool updateTool(Tool tool, FieldMask updateMask) { + UpdateToolRequest request = + UpdateToolRequest.newBuilder().setTool(tool).setUpdateMask(updateMask).build(); + return updateTool(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified tool. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   UpdateToolRequest request =
      +   *       UpdateToolRequest.newBuilder()
      +   *           .setTool(Tool.newBuilder().build())
      +   *           .setUpdateMask(FieldMask.newBuilder().build())
      +   *           .build();
      +   *   Tool response = agentServiceClient.updateTool(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tool updateTool(UpdateToolRequest request) { + return updateToolCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified tool. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   UpdateToolRequest request =
      +   *       UpdateToolRequest.newBuilder()
      +   *           .setTool(Tool.newBuilder().build())
      +   *           .setUpdateMask(FieldMask.newBuilder().build())
      +   *           .build();
      +   *   ApiFuture future = agentServiceClient.updateToolCallable().futureCall(request);
      +   *   // Do something.
      +   *   Tool response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable updateToolCallable() { + return stub.updateToolCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified tool. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ToolName name = ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]");
      +   *   agentServiceClient.deleteTool(name);
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the tool to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteTool(ToolName name) { + DeleteToolRequest request = + DeleteToolRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteTool(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified tool. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String name = ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString();
      +   *   agentServiceClient.deleteTool(name);
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the tool to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteTool(String name) { + DeleteToolRequest request = DeleteToolRequest.newBuilder().setName(name).build(); + deleteTool(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified tool. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   DeleteToolRequest request =
      +   *       DeleteToolRequest.newBuilder()
      +   *           .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString())
      +   *           .setForce(true)
      +   *           .setEtag("etag3123477")
      +   *           .build();
      +   *   agentServiceClient.deleteTool(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteTool(DeleteToolRequest request) { + deleteToolCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified tool. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   DeleteToolRequest request =
      +   *       DeleteToolRequest.newBuilder()
      +   *           .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString())
      +   *           .setForce(true)
      +   *           .setEtag("etag3123477")
      +   *           .build();
      +   *   ApiFuture future = agentServiceClient.deleteToolCallable().futureCall(request);
      +   *   // Do something.
      +   *   future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable deleteToolCallable() { + return stub.deleteToolCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists guardrails in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]");
      +   *   for (Guardrail element : agentServiceClient.listGuardrails(parent).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to list guardrails from. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGuardrailsPagedResponse listGuardrails(AppName parent) { + ListGuardrailsRequest request = + ListGuardrailsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listGuardrails(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists guardrails in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString();
      +   *   for (Guardrail element : agentServiceClient.listGuardrails(parent).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to list guardrails from. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGuardrailsPagedResponse listGuardrails(String parent) { + ListGuardrailsRequest request = ListGuardrailsRequest.newBuilder().setParent(parent).build(); + return listGuardrails(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists guardrails in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ListGuardrailsRequest request =
      +   *       ListGuardrailsRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .setOrderBy("orderBy-1207110587")
      +   *           .build();
      +   *   for (Guardrail element : agentServiceClient.listGuardrails(request).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListGuardrailsPagedResponse listGuardrails(ListGuardrailsRequest request) { + return listGuardrailsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists guardrails in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ListGuardrailsRequest request =
      +   *       ListGuardrailsRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .setOrderBy("orderBy-1207110587")
      +   *           .build();
      +   *   ApiFuture future =
      +   *       agentServiceClient.listGuardrailsPagedCallable().futureCall(request);
      +   *   // Do something.
      +   *   for (Guardrail element : future.get().iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable + listGuardrailsPagedCallable() { + return stub.listGuardrailsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists guardrails in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ListGuardrailsRequest request =
      +   *       ListGuardrailsRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .setOrderBy("orderBy-1207110587")
      +   *           .build();
      +   *   while (true) {
      +   *     ListGuardrailsResponse response = agentServiceClient.listGuardrailsCallable().call(request);
      +   *     for (Guardrail element : response.getGuardrailsList()) {
      +   *       // doThingsWith(element);
      +   *     }
      +   *     String nextPageToken = response.getNextPageToken();
      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
      +   *     } else {
      +   *       break;
      +   *     }
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable + listGuardrailsCallable() { + return stub.listGuardrailsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified guardrail. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   GuardrailName name = GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]");
      +   *   Guardrail response = agentServiceClient.getGuardrail(name);
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the guardrail to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Guardrail getGuardrail(GuardrailName name) { + GetGuardrailRequest request = + GetGuardrailRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getGuardrail(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified guardrail. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String name = GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]").toString();
      +   *   Guardrail response = agentServiceClient.getGuardrail(name);
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the guardrail to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Guardrail getGuardrail(String name) { + GetGuardrailRequest request = GetGuardrailRequest.newBuilder().setName(name).build(); + return getGuardrail(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified guardrail. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   GetGuardrailRequest request =
      +   *       GetGuardrailRequest.newBuilder()
      +   *           .setName(
      +   *               GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]").toString())
      +   *           .build();
      +   *   Guardrail response = agentServiceClient.getGuardrail(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Guardrail getGuardrail(GetGuardrailRequest request) { + return getGuardrailCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified guardrail. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   GetGuardrailRequest request =
      +   *       GetGuardrailRequest.newBuilder()
      +   *           .setName(
      +   *               GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]").toString())
      +   *           .build();
      +   *   ApiFuture future = agentServiceClient.getGuardrailCallable().futureCall(request);
      +   *   // Do something.
      +   *   Guardrail response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable getGuardrailCallable() { + return stub.getGuardrailCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new guardrail in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]");
      +   *   Guardrail guardrail = Guardrail.newBuilder().build();
      +   *   Guardrail response = agentServiceClient.createGuardrail(parent, guardrail);
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to create a guardrail in. + * @param guardrail Required. The guardrail to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Guardrail createGuardrail(AppName parent, Guardrail guardrail) { + CreateGuardrailRequest request = + CreateGuardrailRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setGuardrail(guardrail) + .build(); + return createGuardrail(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new guardrail in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString();
      +   *   Guardrail guardrail = Guardrail.newBuilder().build();
      +   *   Guardrail response = agentServiceClient.createGuardrail(parent, guardrail);
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to create a guardrail in. + * @param guardrail Required. The guardrail to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Guardrail createGuardrail(String parent, Guardrail guardrail) { + CreateGuardrailRequest request = + CreateGuardrailRequest.newBuilder().setParent(parent).setGuardrail(guardrail).build(); + return createGuardrail(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new guardrail in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]");
      +   *   Guardrail guardrail = Guardrail.newBuilder().build();
      +   *   String guardrailId = "guardrailId1875412786";
      +   *   Guardrail response = agentServiceClient.createGuardrail(parent, guardrail, guardrailId);
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to create a guardrail in. + * @param guardrail Required. The guardrail to create. + * @param guardrailId Optional. The ID to use for the guardrail, which will become the final + * component of the guardrail's resource name. If not provided, a unique ID will be + * automatically assigned for the guardrail. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Guardrail createGuardrail(AppName parent, Guardrail guardrail, String guardrailId) { + CreateGuardrailRequest request = + CreateGuardrailRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setGuardrail(guardrail) + .setGuardrailId(guardrailId) + .build(); + return createGuardrail(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new guardrail in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString();
      +   *   Guardrail guardrail = Guardrail.newBuilder().build();
      +   *   String guardrailId = "guardrailId1875412786";
      +   *   Guardrail response = agentServiceClient.createGuardrail(parent, guardrail, guardrailId);
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to create a guardrail in. + * @param guardrail Required. The guardrail to create. + * @param guardrailId Optional. The ID to use for the guardrail, which will become the final + * component of the guardrail's resource name. If not provided, a unique ID will be + * automatically assigned for the guardrail. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Guardrail createGuardrail(String parent, Guardrail guardrail, String guardrailId) { + CreateGuardrailRequest request = + CreateGuardrailRequest.newBuilder() + .setParent(parent) + .setGuardrail(guardrail) + .setGuardrailId(guardrailId) + .build(); + return createGuardrail(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new guardrail in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   CreateGuardrailRequest request =
      +   *       CreateGuardrailRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setGuardrailId("guardrailId1875412786")
      +   *           .setGuardrail(Guardrail.newBuilder().build())
      +   *           .build();
      +   *   Guardrail response = agentServiceClient.createGuardrail(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Guardrail createGuardrail(CreateGuardrailRequest request) { + return createGuardrailCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new guardrail in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   CreateGuardrailRequest request =
      +   *       CreateGuardrailRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setGuardrailId("guardrailId1875412786")
      +   *           .setGuardrail(Guardrail.newBuilder().build())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       agentServiceClient.createGuardrailCallable().futureCall(request);
      +   *   // Do something.
      +   *   Guardrail response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable createGuardrailCallable() { + return stub.createGuardrailCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified guardrail. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   Guardrail guardrail = Guardrail.newBuilder().build();
      +   *   FieldMask updateMask = FieldMask.newBuilder().build();
      +   *   Guardrail response = agentServiceClient.updateGuardrail(guardrail, updateMask);
      +   * }
      +   * }
      + * + * @param guardrail Required. The guardrail to update. + * @param updateMask Optional. Field mask is used to control which fields get updated. If the mask + * is not present, all fields will be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Guardrail updateGuardrail(Guardrail guardrail, FieldMask updateMask) { + UpdateGuardrailRequest request = + UpdateGuardrailRequest.newBuilder() + .setGuardrail(guardrail) + .setUpdateMask(updateMask) + .build(); + return updateGuardrail(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified guardrail. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   UpdateGuardrailRequest request =
      +   *       UpdateGuardrailRequest.newBuilder()
      +   *           .setGuardrail(Guardrail.newBuilder().build())
      +   *           .setUpdateMask(FieldMask.newBuilder().build())
      +   *           .build();
      +   *   Guardrail response = agentServiceClient.updateGuardrail(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Guardrail updateGuardrail(UpdateGuardrailRequest request) { + return updateGuardrailCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified guardrail. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   UpdateGuardrailRequest request =
      +   *       UpdateGuardrailRequest.newBuilder()
      +   *           .setGuardrail(Guardrail.newBuilder().build())
      +   *           .setUpdateMask(FieldMask.newBuilder().build())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       agentServiceClient.updateGuardrailCallable().futureCall(request);
      +   *   // Do something.
      +   *   Guardrail response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable updateGuardrailCallable() { + return stub.updateGuardrailCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified guardrail. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   GuardrailName name = GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]");
      +   *   agentServiceClient.deleteGuardrail(name);
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the guardrail to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteGuardrail(GuardrailName name) { + DeleteGuardrailRequest request = + DeleteGuardrailRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteGuardrail(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified guardrail. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String name = GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]").toString();
      +   *   agentServiceClient.deleteGuardrail(name);
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the guardrail to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteGuardrail(String name) { + DeleteGuardrailRequest request = DeleteGuardrailRequest.newBuilder().setName(name).build(); + deleteGuardrail(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified guardrail. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   DeleteGuardrailRequest request =
      +   *       DeleteGuardrailRequest.newBuilder()
      +   *           .setName(
      +   *               GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]").toString())
      +   *           .setForce(true)
      +   *           .setEtag("etag3123477")
      +   *           .build();
      +   *   agentServiceClient.deleteGuardrail(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteGuardrail(DeleteGuardrailRequest request) { + deleteGuardrailCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified guardrail. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   DeleteGuardrailRequest request =
      +   *       DeleteGuardrailRequest.newBuilder()
      +   *           .setName(
      +   *               GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]").toString())
      +   *           .setForce(true)
      +   *           .setEtag("etag3123477")
      +   *           .build();
      +   *   ApiFuture future = agentServiceClient.deleteGuardrailCallable().futureCall(request);
      +   *   // Do something.
      +   *   future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable deleteGuardrailCallable() { + return stub.deleteGuardrailCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists deployments in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]");
      +   *   for (Deployment element : agentServiceClient.listDeployments(parent).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param parent Required. The parent app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeploymentsPagedResponse listDeployments(AppName parent) { + ListDeploymentsRequest request = + ListDeploymentsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDeployments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists deployments in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString();
      +   *   for (Deployment element : agentServiceClient.listDeployments(parent).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param parent Required. The parent app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeploymentsPagedResponse listDeployments(String parent) { + ListDeploymentsRequest request = ListDeploymentsRequest.newBuilder().setParent(parent).build(); + return listDeployments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists deployments in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ListDeploymentsRequest request =
      +   *       ListDeploymentsRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setOrderBy("orderBy-1207110587")
      +   *           .build();
      +   *   for (Deployment element : agentServiceClient.listDeployments(request).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeploymentsPagedResponse listDeployments(ListDeploymentsRequest request) { + return listDeploymentsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists deployments in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ListDeploymentsRequest request =
      +   *       ListDeploymentsRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setOrderBy("orderBy-1207110587")
      +   *           .build();
      +   *   ApiFuture future =
      +   *       agentServiceClient.listDeploymentsPagedCallable().futureCall(request);
      +   *   // Do something.
      +   *   for (Deployment element : future.get().iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable + listDeploymentsPagedCallable() { + return stub.listDeploymentsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists deployments in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ListDeploymentsRequest request =
      +   *       ListDeploymentsRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setOrderBy("orderBy-1207110587")
      +   *           .build();
      +   *   while (true) {
      +   *     ListDeploymentsResponse response =
      +   *         agentServiceClient.listDeploymentsCallable().call(request);
      +   *     for (Deployment element : response.getDeploymentsList()) {
      +   *       // doThingsWith(element);
      +   *     }
      +   *     String nextPageToken = response.getNextPageToken();
      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
      +   *     } else {
      +   *       break;
      +   *     }
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable + listDeploymentsCallable() { + return stub.listDeploymentsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified deployment. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   DeploymentName name = DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]");
      +   *   Deployment response = agentServiceClient.getDeployment(name);
      +   * }
      +   * }
      + * + * @param name Required. The name of the deployment. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment getDeployment(DeploymentName name) { + GetDeploymentRequest request = + GetDeploymentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified deployment. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String name =
      +   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString();
      +   *   Deployment response = agentServiceClient.getDeployment(name);
      +   * }
      +   * }
      + * + * @param name Required. The name of the deployment. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment getDeployment(String name) { + GetDeploymentRequest request = GetDeploymentRequest.newBuilder().setName(name).build(); + return getDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified deployment. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   GetDeploymentRequest request =
      +   *       GetDeploymentRequest.newBuilder()
      +   *           .setName(
      +   *               DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString())
      +   *           .build();
      +   *   Deployment response = agentServiceClient.getDeployment(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment getDeployment(GetDeploymentRequest request) { + return getDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified deployment. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   GetDeploymentRequest request =
      +   *       GetDeploymentRequest.newBuilder()
      +   *           .setName(
      +   *               DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString())
      +   *           .build();
      +   *   ApiFuture future = agentServiceClient.getDeploymentCallable().futureCall(request);
      +   *   // Do something.
      +   *   Deployment response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable getDeploymentCallable() { + return stub.getDeploymentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new deployment in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]");
      +   *   Deployment deployment = Deployment.newBuilder().build();
      +   *   Deployment response = agentServiceClient.createDeployment(parent, deployment);
      +   * }
      +   * }
      + * + * @param parent Required. The parent app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param deployment Required. The deployment to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment createDeployment(AppName parent, Deployment deployment) { + CreateDeploymentRequest request = + CreateDeploymentRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDeployment(deployment) + .build(); + return createDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new deployment in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString();
      +   *   Deployment deployment = Deployment.newBuilder().build();
      +   *   Deployment response = agentServiceClient.createDeployment(parent, deployment);
      +   * }
      +   * }
      + * + * @param parent Required. The parent app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param deployment Required. The deployment to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment createDeployment(String parent, Deployment deployment) { + CreateDeploymentRequest request = + CreateDeploymentRequest.newBuilder().setParent(parent).setDeployment(deployment).build(); + return createDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new deployment in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]");
      +   *   Deployment deployment = Deployment.newBuilder().build();
      +   *   String deploymentId = "deploymentId-136894784";
      +   *   Deployment response = agentServiceClient.createDeployment(parent, deployment, deploymentId);
      +   * }
      +   * }
      + * + * @param parent Required. The parent app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param deployment Required. The deployment to create. + * @param deploymentId Optional. The ID to use for the deployment, which will become the final + * component of the deployment's resource name. If not provided, a unique ID will be + * automatically assigned for the deployment. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment createDeployment( + AppName parent, Deployment deployment, String deploymentId) { + CreateDeploymentRequest request = + CreateDeploymentRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDeployment(deployment) + .setDeploymentId(deploymentId) + .build(); + return createDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new deployment in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString();
      +   *   Deployment deployment = Deployment.newBuilder().build();
      +   *   String deploymentId = "deploymentId-136894784";
      +   *   Deployment response = agentServiceClient.createDeployment(parent, deployment, deploymentId);
      +   * }
      +   * }
      + * + * @param parent Required. The parent app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param deployment Required. The deployment to create. + * @param deploymentId Optional. The ID to use for the deployment, which will become the final + * component of the deployment's resource name. If not provided, a unique ID will be + * automatically assigned for the deployment. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment createDeployment( + String parent, Deployment deployment, String deploymentId) { + CreateDeploymentRequest request = + CreateDeploymentRequest.newBuilder() + .setParent(parent) + .setDeployment(deployment) + .setDeploymentId(deploymentId) + .build(); + return createDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new deployment in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   CreateDeploymentRequest request =
      +   *       CreateDeploymentRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setDeploymentId("deploymentId-136894784")
      +   *           .setDeployment(Deployment.newBuilder().build())
      +   *           .build();
      +   *   Deployment response = agentServiceClient.createDeployment(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment createDeployment(CreateDeploymentRequest request) { + return createDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new deployment in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   CreateDeploymentRequest request =
      +   *       CreateDeploymentRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setDeploymentId("deploymentId-136894784")
      +   *           .setDeployment(Deployment.newBuilder().build())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       agentServiceClient.createDeploymentCallable().futureCall(request);
      +   *   // Do something.
      +   *   Deployment response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable createDeploymentCallable() { + return stub.createDeploymentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified deployment. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   Deployment deployment = Deployment.newBuilder().build();
      +   *   FieldMask updateMask = FieldMask.newBuilder().build();
      +   *   Deployment response = agentServiceClient.updateDeployment(deployment, updateMask);
      +   * }
      +   * }
      + * + * @param deployment Required. The deployment to update. + * @param updateMask Optional. The list of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment updateDeployment(Deployment deployment, FieldMask updateMask) { + UpdateDeploymentRequest request = + UpdateDeploymentRequest.newBuilder() + .setDeployment(deployment) + .setUpdateMask(updateMask) + .build(); + return updateDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified deployment. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   UpdateDeploymentRequest request =
      +   *       UpdateDeploymentRequest.newBuilder()
      +   *           .setDeployment(Deployment.newBuilder().build())
      +   *           .setUpdateMask(FieldMask.newBuilder().build())
      +   *           .build();
      +   *   Deployment response = agentServiceClient.updateDeployment(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment updateDeployment(UpdateDeploymentRequest request) { + return updateDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified deployment. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   UpdateDeploymentRequest request =
      +   *       UpdateDeploymentRequest.newBuilder()
      +   *           .setDeployment(Deployment.newBuilder().build())
      +   *           .setUpdateMask(FieldMask.newBuilder().build())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       agentServiceClient.updateDeploymentCallable().futureCall(request);
      +   *   // Do something.
      +   *   Deployment response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable updateDeploymentCallable() { + return stub.updateDeploymentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified deployment. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   DeploymentName name = DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]");
      +   *   agentServiceClient.deleteDeployment(name);
      +   * }
      +   * }
      + * + * @param name Required. The name of the deployment to delete. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDeployment(DeploymentName name) { + DeleteDeploymentRequest request = + DeleteDeploymentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified deployment. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String name =
      +   *       DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString();
      +   *   agentServiceClient.deleteDeployment(name);
      +   * }
      +   * }
      + * + * @param name Required. The name of the deployment to delete. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDeployment(String name) { + DeleteDeploymentRequest request = DeleteDeploymentRequest.newBuilder().setName(name).build(); + deleteDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified deployment. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   DeleteDeploymentRequest request =
      +   *       DeleteDeploymentRequest.newBuilder()
      +   *           .setName(
      +   *               DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString())
      +   *           .setEtag("etag3123477")
      +   *           .build();
      +   *   agentServiceClient.deleteDeployment(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDeployment(DeleteDeploymentRequest request) { + deleteDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified deployment. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   DeleteDeploymentRequest request =
      +   *       DeleteDeploymentRequest.newBuilder()
      +   *           .setName(
      +   *               DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString())
      +   *           .setEtag("etag3123477")
      +   *           .build();
      +   *   ApiFuture future = agentServiceClient.deleteDeploymentCallable().futureCall(request);
      +   *   // Do something.
      +   *   future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable deleteDeploymentCallable() { + return stub.deleteDeploymentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists toolsets in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]");
      +   *   for (Toolset element : agentServiceClient.listToolsets(parent).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to list toolsets from. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListToolsetsPagedResponse listToolsets(AppName parent) { + ListToolsetsRequest request = + ListToolsetsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listToolsets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists toolsets in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString();
      +   *   for (Toolset element : agentServiceClient.listToolsets(parent).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to list toolsets from. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListToolsetsPagedResponse listToolsets(String parent) { + ListToolsetsRequest request = ListToolsetsRequest.newBuilder().setParent(parent).build(); + return listToolsets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists toolsets in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ListToolsetsRequest request =
      +   *       ListToolsetsRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .setOrderBy("orderBy-1207110587")
      +   *           .build();
      +   *   for (Toolset element : agentServiceClient.listToolsets(request).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListToolsetsPagedResponse listToolsets(ListToolsetsRequest request) { + return listToolsetsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists toolsets in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ListToolsetsRequest request =
      +   *       ListToolsetsRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .setOrderBy("orderBy-1207110587")
      +   *           .build();
      +   *   ApiFuture future =
      +   *       agentServiceClient.listToolsetsPagedCallable().futureCall(request);
      +   *   // Do something.
      +   *   for (Toolset element : future.get().iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable + listToolsetsPagedCallable() { + return stub.listToolsetsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists toolsets in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ListToolsetsRequest request =
      +   *       ListToolsetsRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .setOrderBy("orderBy-1207110587")
      +   *           .build();
      +   *   while (true) {
      +   *     ListToolsetsResponse response = agentServiceClient.listToolsetsCallable().call(request);
      +   *     for (Toolset element : response.getToolsetsList()) {
      +   *       // doThingsWith(element);
      +   *     }
      +   *     String nextPageToken = response.getNextPageToken();
      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
      +   *     } else {
      +   *       break;
      +   *     }
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable listToolsetsCallable() { + return stub.listToolsetsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified toolset. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ToolsetName name = ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]");
      +   *   Toolset response = agentServiceClient.getToolset(name);
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the toolset to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Toolset getToolset(ToolsetName name) { + GetToolsetRequest request = + GetToolsetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getToolset(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified toolset. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String name = ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString();
      +   *   Toolset response = agentServiceClient.getToolset(name);
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the toolset to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Toolset getToolset(String name) { + GetToolsetRequest request = GetToolsetRequest.newBuilder().setName(name).build(); + return getToolset(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified toolset. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   GetToolsetRequest request =
      +   *       GetToolsetRequest.newBuilder()
      +   *           .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString())
      +   *           .build();
      +   *   Toolset response = agentServiceClient.getToolset(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Toolset getToolset(GetToolsetRequest request) { + return getToolsetCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified toolset. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   GetToolsetRequest request =
      +   *       GetToolsetRequest.newBuilder()
      +   *           .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString())
      +   *           .build();
      +   *   ApiFuture future = agentServiceClient.getToolsetCallable().futureCall(request);
      +   *   // Do something.
      +   *   Toolset response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable getToolsetCallable() { + return stub.getToolsetCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new toolset in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]");
      +   *   Toolset toolset = Toolset.newBuilder().build();
      +   *   Toolset response = agentServiceClient.createToolset(parent, toolset);
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to create a toolset in. + * @param toolset Required. The toolset to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Toolset createToolset(AppName parent, Toolset toolset) { + CreateToolsetRequest request = + CreateToolsetRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setToolset(toolset) + .build(); + return createToolset(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new toolset in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString();
      +   *   Toolset toolset = Toolset.newBuilder().build();
      +   *   Toolset response = agentServiceClient.createToolset(parent, toolset);
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to create a toolset in. + * @param toolset Required. The toolset to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Toolset createToolset(String parent, Toolset toolset) { + CreateToolsetRequest request = + CreateToolsetRequest.newBuilder().setParent(parent).setToolset(toolset).build(); + return createToolset(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new toolset in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]");
      +   *   Toolset toolset = Toolset.newBuilder().build();
      +   *   String toolsetId = "toolsetId-397931899";
      +   *   Toolset response = agentServiceClient.createToolset(parent, toolset, toolsetId);
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to create a toolset in. + * @param toolset Required. The toolset to create. + * @param toolsetId Optional. The ID to use for the toolset, which will become the final component + * of the toolset's resource name. If not provided, a unique ID will be automatically assigned + * for the toolset. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Toolset createToolset(AppName parent, Toolset toolset, String toolsetId) { + CreateToolsetRequest request = + CreateToolsetRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setToolset(toolset) + .setToolsetId(toolsetId) + .build(); + return createToolset(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new toolset in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString();
      +   *   Toolset toolset = Toolset.newBuilder().build();
      +   *   String toolsetId = "toolsetId-397931899";
      +   *   Toolset response = agentServiceClient.createToolset(parent, toolset, toolsetId);
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to create a toolset in. + * @param toolset Required. The toolset to create. + * @param toolsetId Optional. The ID to use for the toolset, which will become the final component + * of the toolset's resource name. If not provided, a unique ID will be automatically assigned + * for the toolset. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Toolset createToolset(String parent, Toolset toolset, String toolsetId) { + CreateToolsetRequest request = + CreateToolsetRequest.newBuilder() + .setParent(parent) + .setToolset(toolset) + .setToolsetId(toolsetId) + .build(); + return createToolset(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new toolset in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   CreateToolsetRequest request =
      +   *       CreateToolsetRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setToolsetId("toolsetId-397931899")
      +   *           .setToolset(Toolset.newBuilder().build())
      +   *           .build();
      +   *   Toolset response = agentServiceClient.createToolset(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Toolset createToolset(CreateToolsetRequest request) { + return createToolsetCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new toolset in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   CreateToolsetRequest request =
      +   *       CreateToolsetRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setToolsetId("toolsetId-397931899")
      +   *           .setToolset(Toolset.newBuilder().build())
      +   *           .build();
      +   *   ApiFuture future = agentServiceClient.createToolsetCallable().futureCall(request);
      +   *   // Do something.
      +   *   Toolset response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable createToolsetCallable() { + return stub.createToolsetCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified toolset. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   Toolset toolset = Toolset.newBuilder().build();
      +   *   FieldMask updateMask = FieldMask.newBuilder().build();
      +   *   Toolset response = agentServiceClient.updateToolset(toolset, updateMask);
      +   * }
      +   * }
      + * + * @param toolset Required. The toolset to update. + * @param updateMask Optional. Field mask is used to control which fields get updated. If the mask + * is not present, all fields will be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Toolset updateToolset(Toolset toolset, FieldMask updateMask) { + UpdateToolsetRequest request = + UpdateToolsetRequest.newBuilder().setToolset(toolset).setUpdateMask(updateMask).build(); + return updateToolset(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified toolset. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   UpdateToolsetRequest request =
      +   *       UpdateToolsetRequest.newBuilder()
      +   *           .setToolset(Toolset.newBuilder().build())
      +   *           .setUpdateMask(FieldMask.newBuilder().build())
      +   *           .build();
      +   *   Toolset response = agentServiceClient.updateToolset(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Toolset updateToolset(UpdateToolsetRequest request) { + return updateToolsetCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified toolset. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   UpdateToolsetRequest request =
      +   *       UpdateToolsetRequest.newBuilder()
      +   *           .setToolset(Toolset.newBuilder().build())
      +   *           .setUpdateMask(FieldMask.newBuilder().build())
      +   *           .build();
      +   *   ApiFuture future = agentServiceClient.updateToolsetCallable().futureCall(request);
      +   *   // Do something.
      +   *   Toolset response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable updateToolsetCallable() { + return stub.updateToolsetCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified toolset. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ToolsetName name = ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]");
      +   *   agentServiceClient.deleteToolset(name);
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the toolset to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteToolset(ToolsetName name) { + DeleteToolsetRequest request = + DeleteToolsetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteToolset(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified toolset. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String name = ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString();
      +   *   agentServiceClient.deleteToolset(name);
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the toolset to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteToolset(String name) { + DeleteToolsetRequest request = DeleteToolsetRequest.newBuilder().setName(name).build(); + deleteToolset(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified toolset. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   DeleteToolsetRequest request =
      +   *       DeleteToolsetRequest.newBuilder()
      +   *           .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString())
      +   *           .setForce(true)
      +   *           .setEtag("etag3123477")
      +   *           .build();
      +   *   agentServiceClient.deleteToolset(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteToolset(DeleteToolsetRequest request) { + deleteToolsetCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified toolset. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   DeleteToolsetRequest request =
      +   *       DeleteToolsetRequest.newBuilder()
      +   *           .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString())
      +   *           .setForce(true)
      +   *           .setEtag("etag3123477")
      +   *           .build();
      +   *   ApiFuture future = agentServiceClient.deleteToolsetCallable().futureCall(request);
      +   *   // Do something.
      +   *   future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable deleteToolsetCallable() { + return stub.deleteToolsetCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all app versions in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]");
      +   *   for (AppVersion element : agentServiceClient.listAppVersions(parent).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to list app versions from. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAppVersionsPagedResponse listAppVersions(AppName parent) { + ListAppVersionsRequest request = + ListAppVersionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAppVersions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all app versions in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString();
      +   *   for (AppVersion element : agentServiceClient.listAppVersions(parent).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to list app versions from. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAppVersionsPagedResponse listAppVersions(String parent) { + ListAppVersionsRequest request = ListAppVersionsRequest.newBuilder().setParent(parent).build(); + return listAppVersions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all app versions in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ListAppVersionsRequest request =
      +   *       ListAppVersionsRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .setOrderBy("orderBy-1207110587")
      +   *           .build();
      +   *   for (AppVersion element : agentServiceClient.listAppVersions(request).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAppVersionsPagedResponse listAppVersions(ListAppVersionsRequest request) { + return listAppVersionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all app versions in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ListAppVersionsRequest request =
      +   *       ListAppVersionsRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .setOrderBy("orderBy-1207110587")
      +   *           .build();
      +   *   ApiFuture future =
      +   *       agentServiceClient.listAppVersionsPagedCallable().futureCall(request);
      +   *   // Do something.
      +   *   for (AppVersion element : future.get().iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable + listAppVersionsPagedCallable() { + return stub.listAppVersionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all app versions in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ListAppVersionsRequest request =
      +   *       ListAppVersionsRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .setOrderBy("orderBy-1207110587")
      +   *           .build();
      +   *   while (true) {
      +   *     ListAppVersionsResponse response =
      +   *         agentServiceClient.listAppVersionsCallable().call(request);
      +   *     for (AppVersion element : response.getAppVersionsList()) {
      +   *       // doThingsWith(element);
      +   *     }
      +   *     String nextPageToken = response.getNextPageToken();
      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
      +   *     } else {
      +   *       break;
      +   *     }
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable + listAppVersionsCallable() { + return stub.listAppVersionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified app version. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   AppVersionName name = AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]");
      +   *   AppVersion response = agentServiceClient.getAppVersion(name);
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the app version to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AppVersion getAppVersion(AppVersionName name) { + GetAppVersionRequest request = + GetAppVersionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAppVersion(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified app version. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String name = AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString();
      +   *   AppVersion response = agentServiceClient.getAppVersion(name);
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the app version to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AppVersion getAppVersion(String name) { + GetAppVersionRequest request = GetAppVersionRequest.newBuilder().setName(name).build(); + return getAppVersion(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified app version. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   GetAppVersionRequest request =
      +   *       GetAppVersionRequest.newBuilder()
      +   *           .setName(
      +   *               AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString())
      +   *           .build();
      +   *   AppVersion response = agentServiceClient.getAppVersion(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AppVersion getAppVersion(GetAppVersionRequest request) { + return getAppVersionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified app version. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   GetAppVersionRequest request =
      +   *       GetAppVersionRequest.newBuilder()
      +   *           .setName(
      +   *               AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString())
      +   *           .build();
      +   *   ApiFuture future = agentServiceClient.getAppVersionCallable().futureCall(request);
      +   *   // Do something.
      +   *   AppVersion response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable getAppVersionCallable() { + return stub.getAppVersionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new app version in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]");
      +   *   AppVersion appVersion = AppVersion.newBuilder().build();
      +   *   AppVersion response = agentServiceClient.createAppVersion(parent, appVersion);
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to create an app version in. + * @param appVersion Required. The app version to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AppVersion createAppVersion(AppName parent, AppVersion appVersion) { + CreateAppVersionRequest request = + CreateAppVersionRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAppVersion(appVersion) + .build(); + return createAppVersion(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new app version in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString();
      +   *   AppVersion appVersion = AppVersion.newBuilder().build();
      +   *   AppVersion response = agentServiceClient.createAppVersion(parent, appVersion);
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to create an app version in. + * @param appVersion Required. The app version to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AppVersion createAppVersion(String parent, AppVersion appVersion) { + CreateAppVersionRequest request = + CreateAppVersionRequest.newBuilder().setParent(parent).setAppVersion(appVersion).build(); + return createAppVersion(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new app version in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]");
      +   *   AppVersion appVersion = AppVersion.newBuilder().build();
      +   *   String appVersionId = "appVersionId303221490";
      +   *   AppVersion response = agentServiceClient.createAppVersion(parent, appVersion, appVersionId);
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to create an app version in. + * @param appVersion Required. The app version to create. + * @param appVersionId Optional. The ID to use for the app version, which will become the final + * component of the app version's resource name. If not provided, a unique ID will be + * automatically assigned for the app version. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AppVersion createAppVersion( + AppName parent, AppVersion appVersion, String appVersionId) { + CreateAppVersionRequest request = + CreateAppVersionRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAppVersion(appVersion) + .setAppVersionId(appVersionId) + .build(); + return createAppVersion(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new app version in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString();
      +   *   AppVersion appVersion = AppVersion.newBuilder().build();
      +   *   String appVersionId = "appVersionId303221490";
      +   *   AppVersion response = agentServiceClient.createAppVersion(parent, appVersion, appVersionId);
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to create an app version in. + * @param appVersion Required. The app version to create. + * @param appVersionId Optional. The ID to use for the app version, which will become the final + * component of the app version's resource name. If not provided, a unique ID will be + * automatically assigned for the app version. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AppVersion createAppVersion( + String parent, AppVersion appVersion, String appVersionId) { + CreateAppVersionRequest request = + CreateAppVersionRequest.newBuilder() + .setParent(parent) + .setAppVersion(appVersion) + .setAppVersionId(appVersionId) + .build(); + return createAppVersion(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new app version in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   CreateAppVersionRequest request =
      +   *       CreateAppVersionRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setAppVersionId("appVersionId303221490")
      +   *           .setAppVersion(AppVersion.newBuilder().build())
      +   *           .build();
      +   *   AppVersion response = agentServiceClient.createAppVersion(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AppVersion createAppVersion(CreateAppVersionRequest request) { + return createAppVersionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new app version in the given app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   CreateAppVersionRequest request =
      +   *       CreateAppVersionRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setAppVersionId("appVersionId303221490")
      +   *           .setAppVersion(AppVersion.newBuilder().build())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       agentServiceClient.createAppVersionCallable().futureCall(request);
      +   *   // Do something.
      +   *   AppVersion response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable createAppVersionCallable() { + return stub.createAppVersionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified app version. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   AppVersionName name = AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]");
      +   *   agentServiceClient.deleteAppVersion(name);
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the app version to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteAppVersion(AppVersionName name) { + DeleteAppVersionRequest request = + DeleteAppVersionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteAppVersion(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified app version. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String name = AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString();
      +   *   agentServiceClient.deleteAppVersion(name);
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the app version to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteAppVersion(String name) { + DeleteAppVersionRequest request = DeleteAppVersionRequest.newBuilder().setName(name).build(); + deleteAppVersion(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified app version. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   DeleteAppVersionRequest request =
      +   *       DeleteAppVersionRequest.newBuilder()
      +   *           .setName(
      +   *               AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString())
      +   *           .setEtag("etag3123477")
      +   *           .build();
      +   *   agentServiceClient.deleteAppVersion(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteAppVersion(DeleteAppVersionRequest request) { + deleteAppVersionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified app version. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   DeleteAppVersionRequest request =
      +   *       DeleteAppVersionRequest.newBuilder()
      +   *           .setName(
      +   *               AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString())
      +   *           .setEtag("etag3123477")
      +   *           .build();
      +   *   ApiFuture future = agentServiceClient.deleteAppVersionCallable().futureCall(request);
      +   *   // Do something.
      +   *   future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable deleteAppVersionCallable() { + return stub.deleteAppVersionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores the specified app version. This will create a new app version from the current draft + * app and overwrite the current draft with the specified app version. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   AppVersionName name = AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]");
      +   *   RestoreAppVersionResponse response = agentServiceClient.restoreAppVersionAsync(name).get();
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the app version to restore. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture restoreAppVersionAsync( + AppVersionName name) { + RestoreAppVersionRequest request = + RestoreAppVersionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return restoreAppVersionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores the specified app version. This will create a new app version from the current draft + * app and overwrite the current draft with the specified app version. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String name = AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString();
      +   *   RestoreAppVersionResponse response = agentServiceClient.restoreAppVersionAsync(name).get();
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the app version to restore. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture restoreAppVersionAsync( + String name) { + RestoreAppVersionRequest request = RestoreAppVersionRequest.newBuilder().setName(name).build(); + return restoreAppVersionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores the specified app version. This will create a new app version from the current draft + * app and overwrite the current draft with the specified app version. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   RestoreAppVersionRequest request =
      +   *       RestoreAppVersionRequest.newBuilder()
      +   *           .setName(
      +   *               AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString())
      +   *           .build();
      +   *   RestoreAppVersionResponse response = agentServiceClient.restoreAppVersionAsync(request).get();
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture restoreAppVersionAsync( + RestoreAppVersionRequest request) { + return restoreAppVersionOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores the specified app version. This will create a new app version from the current draft + * app and overwrite the current draft with the specified app version. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   RestoreAppVersionRequest request =
      +   *       RestoreAppVersionRequest.newBuilder()
      +   *           .setName(
      +   *               AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString())
      +   *           .build();
      +   *   OperationFuture future =
      +   *       agentServiceClient.restoreAppVersionOperationCallable().futureCall(request);
      +   *   // Do something.
      +   *   RestoreAppVersionResponse response = future.get();
      +   * }
      +   * }
      + */ + public final OperationCallable< + RestoreAppVersionRequest, RestoreAppVersionResponse, OperationMetadata> + restoreAppVersionOperationCallable() { + return stub.restoreAppVersionOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores the specified app version. This will create a new app version from the current draft + * app and overwrite the current draft with the specified app version. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   RestoreAppVersionRequest request =
      +   *       RestoreAppVersionRequest.newBuilder()
      +   *           .setName(
      +   *               AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       agentServiceClient.restoreAppVersionCallable().futureCall(request);
      +   *   // Do something.
      +   *   Operation response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable restoreAppVersionCallable() { + return stub.restoreAppVersionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the changelogs of the specified app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]");
      +   *   for (Changelog element : agentServiceClient.listChangelogs(parent).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to list changelogs from. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListChangelogsPagedResponse listChangelogs(AppName parent) { + ListChangelogsRequest request = + ListChangelogsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listChangelogs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the changelogs of the specified app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString();
      +   *   for (Changelog element : agentServiceClient.listChangelogs(parent).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param parent Required. The resource name of the app to list changelogs from. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListChangelogsPagedResponse listChangelogs(String parent) { + ListChangelogsRequest request = ListChangelogsRequest.newBuilder().setParent(parent).build(); + return listChangelogs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the changelogs of the specified app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ListChangelogsRequest request =
      +   *       ListChangelogsRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .setOrderBy("orderBy-1207110587")
      +   *           .build();
      +   *   for (Changelog element : agentServiceClient.listChangelogs(request).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListChangelogsPagedResponse listChangelogs(ListChangelogsRequest request) { + return listChangelogsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the changelogs of the specified app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ListChangelogsRequest request =
      +   *       ListChangelogsRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .setOrderBy("orderBy-1207110587")
      +   *           .build();
      +   *   ApiFuture future =
      +   *       agentServiceClient.listChangelogsPagedCallable().futureCall(request);
      +   *   // Do something.
      +   *   for (Changelog element : future.get().iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable + listChangelogsPagedCallable() { + return stub.listChangelogsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the changelogs of the specified app. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ListChangelogsRequest request =
      +   *       ListChangelogsRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .setOrderBy("orderBy-1207110587")
      +   *           .build();
      +   *   while (true) {
      +   *     ListChangelogsResponse response = agentServiceClient.listChangelogsCallable().call(request);
      +   *     for (Changelog element : response.getChangelogsList()) {
      +   *       // doThingsWith(element);
      +   *     }
      +   *     String nextPageToken = response.getNextPageToken();
      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
      +   *     } else {
      +   *       break;
      +   *     }
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable + listChangelogsCallable() { + return stub.listChangelogsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the specified changelog. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ChangelogName name = ChangelogName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CHANGELOG]");
      +   *   Changelog response = agentServiceClient.getChangelog(name);
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the changelog to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Changelog getChangelog(ChangelogName name) { + GetChangelogRequest request = + GetChangelogRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getChangelog(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the specified changelog. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   String name = ChangelogName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CHANGELOG]").toString();
      +   *   Changelog response = agentServiceClient.getChangelog(name);
      +   * }
      +   * }
      + * + * @param name Required. The resource name of the changelog to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Changelog getChangelog(String name) { + GetChangelogRequest request = GetChangelogRequest.newBuilder().setName(name).build(); + return getChangelog(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the specified changelog. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   GetChangelogRequest request =
      +   *       GetChangelogRequest.newBuilder()
      +   *           .setName(
      +   *               ChangelogName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CHANGELOG]").toString())
      +   *           .build();
      +   *   Changelog response = agentServiceClient.getChangelog(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Changelog getChangelog(GetChangelogRequest request) { + return getChangelogCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the specified changelog. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   GetChangelogRequest request =
      +   *       GetChangelogRequest.newBuilder()
      +   *           .setName(
      +   *               ChangelogName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CHANGELOG]").toString())
      +   *           .build();
      +   *   ApiFuture future = agentServiceClient.getChangelogCallable().futureCall(request);
      +   *   // Do something.
      +   *   Changelog response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable getChangelogCallable() { + return stub.getChangelogCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

      * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ListLocationsRequest request =
      +   *       ListLocationsRequest.newBuilder()
      +   *           .setName("name3373707")
      +   *           .setFilter("filter-1274492040")
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .build();
      +   *   for (Location element : agentServiceClient.listLocations(request).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

      * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ListLocationsRequest request =
      +   *       ListLocationsRequest.newBuilder()
      +   *           .setName("name3373707")
      +   *           .setFilter("filter-1274492040")
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .build();
      +   *   ApiFuture future =
      +   *       agentServiceClient.listLocationsPagedCallable().futureCall(request);
      +   *   // Do something.
      +   *   for (Location element : future.get().iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

      * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   ListLocationsRequest request =
      +   *       ListLocationsRequest.newBuilder()
      +   *           .setName("name3373707")
      +   *           .setFilter("filter-1274492040")
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .build();
      +   *   while (true) {
      +   *     ListLocationsResponse response = agentServiceClient.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;
      +   *     }
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
      +   *   Location response = agentServiceClient.getLocation(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
      +   *   ApiFuture future = agentServiceClient.getLocationCallable().futureCall(request);
      +   *   // Do something.
      +   *   Location response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListAppsPagedResponse + extends AbstractPagedListResponse< + ListAppsRequest, ListAppsResponse, App, ListAppsPage, ListAppsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAppsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListAppsPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListAppsPagedResponse(ListAppsPage page) { + super(page, ListAppsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAppsPage + extends AbstractPage { + + private ListAppsPage( + PageContext context, ListAppsResponse response) { + super(context, response); + } + + private static ListAppsPage createEmptyPage() { + return new ListAppsPage(null, null); + } + + @Override + protected ListAppsPage createPage( + PageContext context, ListAppsResponse response) { + return new ListAppsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAppsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAppsRequest, ListAppsResponse, App, ListAppsPage, ListAppsFixedSizeCollection> { + + private ListAppsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAppsFixedSizeCollection createEmptyCollection() { + return new ListAppsFixedSizeCollection(null, 0); + } + + @Override + protected ListAppsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListAppsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListAgentsPagedResponse + extends AbstractPagedListResponse< + ListAgentsRequest, + ListAgentsResponse, + Agent, + ListAgentsPage, + ListAgentsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAgentsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListAgentsPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListAgentsPagedResponse(ListAgentsPage page) { + super(page, ListAgentsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAgentsPage + extends AbstractPage { + + private ListAgentsPage( + PageContext context, + ListAgentsResponse response) { + super(context, response); + } + + private static ListAgentsPage createEmptyPage() { + return new ListAgentsPage(null, null); + } + + @Override + protected ListAgentsPage createPage( + PageContext context, + ListAgentsResponse response) { + return new ListAgentsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAgentsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAgentsRequest, + ListAgentsResponse, + Agent, + ListAgentsPage, + ListAgentsFixedSizeCollection> { + + private ListAgentsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAgentsFixedSizeCollection createEmptyCollection() { + return new ListAgentsFixedSizeCollection(null, 0); + } + + @Override + protected ListAgentsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListAgentsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListExamplesPagedResponse + extends AbstractPagedListResponse< + ListExamplesRequest, + ListExamplesResponse, + Example, + ListExamplesPage, + ListExamplesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListExamplesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListExamplesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListExamplesPagedResponse(ListExamplesPage page) { + super(page, ListExamplesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListExamplesPage + extends AbstractPage { + + private ListExamplesPage( + PageContext context, + ListExamplesResponse response) { + super(context, response); + } + + private static ListExamplesPage createEmptyPage() { + return new ListExamplesPage(null, null); + } + + @Override + protected ListExamplesPage createPage( + PageContext context, + ListExamplesResponse response) { + return new ListExamplesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListExamplesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListExamplesRequest, + ListExamplesResponse, + Example, + ListExamplesPage, + ListExamplesFixedSizeCollection> { + + private ListExamplesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListExamplesFixedSizeCollection createEmptyCollection() { + return new ListExamplesFixedSizeCollection(null, 0); + } + + @Override + protected ListExamplesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListExamplesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListToolsPagedResponse + extends AbstractPagedListResponse< + ListToolsRequest, ListToolsResponse, Tool, ListToolsPage, ListToolsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListToolsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListToolsPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListToolsPagedResponse(ListToolsPage page) { + super(page, ListToolsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListToolsPage + extends AbstractPage { + + private ListToolsPage( + PageContext context, + ListToolsResponse response) { + super(context, response); + } + + private static ListToolsPage createEmptyPage() { + return new ListToolsPage(null, null); + } + + @Override + protected ListToolsPage createPage( + PageContext context, + ListToolsResponse response) { + return new ListToolsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListToolsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListToolsRequest, ListToolsResponse, Tool, ListToolsPage, ListToolsFixedSizeCollection> { + + private ListToolsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListToolsFixedSizeCollection createEmptyCollection() { + return new ListToolsFixedSizeCollection(null, 0); + } + + @Override + protected ListToolsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListToolsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListConversationsPagedResponse + extends AbstractPagedListResponse< + ListConversationsRequest, + ListConversationsResponse, + Conversation, + ListConversationsPage, + ListConversationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListConversationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListConversationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListConversationsPagedResponse(ListConversationsPage page) { + super(page, ListConversationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListConversationsPage + extends AbstractPage< + ListConversationsRequest, + ListConversationsResponse, + Conversation, + ListConversationsPage> { + + private ListConversationsPage( + PageContext context, + ListConversationsResponse response) { + super(context, response); + } + + private static ListConversationsPage createEmptyPage() { + return new ListConversationsPage(null, null); + } + + @Override + protected ListConversationsPage createPage( + PageContext context, + ListConversationsResponse response) { + return new ListConversationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListConversationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListConversationsRequest, + ListConversationsResponse, + Conversation, + ListConversationsPage, + ListConversationsFixedSizeCollection> { + + private ListConversationsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListConversationsFixedSizeCollection createEmptyCollection() { + return new ListConversationsFixedSizeCollection(null, 0); + } + + @Override + protected ListConversationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListConversationsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListGuardrailsPagedResponse + extends AbstractPagedListResponse< + ListGuardrailsRequest, + ListGuardrailsResponse, + Guardrail, + ListGuardrailsPage, + ListGuardrailsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListGuardrailsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListGuardrailsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListGuardrailsPagedResponse(ListGuardrailsPage page) { + super(page, ListGuardrailsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListGuardrailsPage + extends AbstractPage< + ListGuardrailsRequest, ListGuardrailsResponse, Guardrail, ListGuardrailsPage> { + + private ListGuardrailsPage( + PageContext context, + ListGuardrailsResponse response) { + super(context, response); + } + + private static ListGuardrailsPage createEmptyPage() { + return new ListGuardrailsPage(null, null); + } + + @Override + protected ListGuardrailsPage createPage( + PageContext context, + ListGuardrailsResponse response) { + return new ListGuardrailsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListGuardrailsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListGuardrailsRequest, + ListGuardrailsResponse, + Guardrail, + ListGuardrailsPage, + ListGuardrailsFixedSizeCollection> { + + private ListGuardrailsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListGuardrailsFixedSizeCollection createEmptyCollection() { + return new ListGuardrailsFixedSizeCollection(null, 0); + } + + @Override + protected ListGuardrailsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListGuardrailsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListDeploymentsPagedResponse + extends AbstractPagedListResponse< + ListDeploymentsRequest, + ListDeploymentsResponse, + Deployment, + ListDeploymentsPage, + ListDeploymentsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDeploymentsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListDeploymentsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListDeploymentsPagedResponse(ListDeploymentsPage page) { + super(page, ListDeploymentsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListDeploymentsPage + extends AbstractPage< + ListDeploymentsRequest, ListDeploymentsResponse, Deployment, ListDeploymentsPage> { + + private ListDeploymentsPage( + PageContext context, + ListDeploymentsResponse response) { + super(context, response); + } + + private static ListDeploymentsPage createEmptyPage() { + return new ListDeploymentsPage(null, null); + } + + @Override + protected ListDeploymentsPage createPage( + PageContext context, + ListDeploymentsResponse response) { + return new ListDeploymentsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListDeploymentsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListDeploymentsRequest, + ListDeploymentsResponse, + Deployment, + ListDeploymentsPage, + ListDeploymentsFixedSizeCollection> { + + private ListDeploymentsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListDeploymentsFixedSizeCollection createEmptyCollection() { + return new ListDeploymentsFixedSizeCollection(null, 0); + } + + @Override + protected ListDeploymentsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDeploymentsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListToolsetsPagedResponse + extends AbstractPagedListResponse< + ListToolsetsRequest, + ListToolsetsResponse, + Toolset, + ListToolsetsPage, + ListToolsetsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListToolsetsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListToolsetsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListToolsetsPagedResponse(ListToolsetsPage page) { + super(page, ListToolsetsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListToolsetsPage + extends AbstractPage { + + private ListToolsetsPage( + PageContext context, + ListToolsetsResponse response) { + super(context, response); + } + + private static ListToolsetsPage createEmptyPage() { + return new ListToolsetsPage(null, null); + } + + @Override + protected ListToolsetsPage createPage( + PageContext context, + ListToolsetsResponse response) { + return new ListToolsetsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListToolsetsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListToolsetsRequest, + ListToolsetsResponse, + Toolset, + ListToolsetsPage, + ListToolsetsFixedSizeCollection> { + + private ListToolsetsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListToolsetsFixedSizeCollection createEmptyCollection() { + return new ListToolsetsFixedSizeCollection(null, 0); + } + + @Override + protected ListToolsetsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListToolsetsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListAppVersionsPagedResponse + extends AbstractPagedListResponse< + ListAppVersionsRequest, + ListAppVersionsResponse, + AppVersion, + ListAppVersionsPage, + ListAppVersionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAppVersionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAppVersionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAppVersionsPagedResponse(ListAppVersionsPage page) { + super(page, ListAppVersionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAppVersionsPage + extends AbstractPage< + ListAppVersionsRequest, ListAppVersionsResponse, AppVersion, ListAppVersionsPage> { + + private ListAppVersionsPage( + PageContext context, + ListAppVersionsResponse response) { + super(context, response); + } + + private static ListAppVersionsPage createEmptyPage() { + return new ListAppVersionsPage(null, null); + } + + @Override + protected ListAppVersionsPage createPage( + PageContext context, + ListAppVersionsResponse response) { + return new ListAppVersionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAppVersionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAppVersionsRequest, + ListAppVersionsResponse, + AppVersion, + ListAppVersionsPage, + ListAppVersionsFixedSizeCollection> { + + private ListAppVersionsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAppVersionsFixedSizeCollection createEmptyCollection() { + return new ListAppVersionsFixedSizeCollection(null, 0); + } + + @Override + protected ListAppVersionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListAppVersionsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListChangelogsPagedResponse + extends AbstractPagedListResponse< + ListChangelogsRequest, + ListChangelogsResponse, + Changelog, + ListChangelogsPage, + ListChangelogsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListChangelogsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListChangelogsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListChangelogsPagedResponse(ListChangelogsPage page) { + super(page, ListChangelogsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListChangelogsPage + extends AbstractPage< + ListChangelogsRequest, ListChangelogsResponse, Changelog, ListChangelogsPage> { + + private ListChangelogsPage( + PageContext context, + ListChangelogsResponse response) { + super(context, response); + } + + private static ListChangelogsPage createEmptyPage() { + return new ListChangelogsPage(null, null); + } + + @Override + protected ListChangelogsPage createPage( + PageContext context, + ListChangelogsResponse response) { + return new ListChangelogsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListChangelogsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListChangelogsRequest, + ListChangelogsResponse, + Changelog, + ListChangelogsPage, + ListChangelogsFixedSizeCollection> { + + private ListChangelogsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListChangelogsFixedSizeCollection createEmptyCollection() { + return new ListChangelogsFixedSizeCollection(null, 0); + } + + @Override + protected ListChangelogsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListChangelogsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/AgentServiceSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/AgentServiceSettings.java new file mode 100644 index 000000000000..fd39ed62f3ce --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/AgentServiceSettings.java @@ -0,0 +1,869 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import static com.google.cloud.ces.v1.AgentServiceClient.ListAgentsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListAppVersionsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListAppsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListChangelogsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListConversationsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListDeploymentsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListExamplesPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListGuardrailsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListToolsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListToolsetsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.ces.v1.stub.AgentServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AgentServiceClient}. + * + *

      The default instance has everything set to sensible defaults: + * + *

        + *
      • The default service address (ces.googleapis.com) and default port (443) are used. + *
      • Credentials are acquired automatically through Application Default Credentials. + *
      • Retries are configured for idempotent methods but not for non-idempotent methods. + *
      + * + *

      The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

      For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getApp: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * AgentServiceSettings.Builder agentServiceSettingsBuilder = AgentServiceSettings.newBuilder();
      + * agentServiceSettingsBuilder
      + *     .getAppSettings()
      + *     .setRetrySettings(
      + *         agentServiceSettingsBuilder
      + *             .getAppSettings()
      + *             .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());
      + * AgentServiceSettings agentServiceSettings = agentServiceSettingsBuilder.build();
      + * }
      + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

      To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createApp: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * AgentServiceSettings.Builder agentServiceSettingsBuilder = AgentServiceSettings.newBuilder();
      + * TimedRetryAlgorithm timedRetryAlgorithm =
      + *     OperationalTimedPollAlgorithm.create(
      + *         RetrySettings.newBuilder()
      + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
      + *             .setRetryDelayMultiplier(1.5)
      + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
      + *             .setTotalTimeoutDuration(Duration.ofHours(24))
      + *             .build());
      + * agentServiceSettingsBuilder
      + *     .createClusterOperationSettings()
      + *     .setPollingAlgorithm(timedRetryAlgorithm)
      + *     .build();
      + * }
      + */ +@Generated("by gapic-generator-java") +public class AgentServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to listApps. */ + public PagedCallSettings + listAppsSettings() { + return ((AgentServiceStubSettings) getStubSettings()).listAppsSettings(); + } + + /** Returns the object with the settings used for calls to getApp. */ + public UnaryCallSettings getAppSettings() { + return ((AgentServiceStubSettings) getStubSettings()).getAppSettings(); + } + + /** Returns the object with the settings used for calls to createApp. */ + public UnaryCallSettings createAppSettings() { + return ((AgentServiceStubSettings) getStubSettings()).createAppSettings(); + } + + /** Returns the object with the settings used for calls to createApp. */ + public OperationCallSettings + createAppOperationSettings() { + return ((AgentServiceStubSettings) getStubSettings()).createAppOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateApp. */ + public UnaryCallSettings updateAppSettings() { + return ((AgentServiceStubSettings) getStubSettings()).updateAppSettings(); + } + + /** Returns the object with the settings used for calls to deleteApp. */ + public UnaryCallSettings deleteAppSettings() { + return ((AgentServiceStubSettings) getStubSettings()).deleteAppSettings(); + } + + /** Returns the object with the settings used for calls to deleteApp. */ + public OperationCallSettings + deleteAppOperationSettings() { + return ((AgentServiceStubSettings) getStubSettings()).deleteAppOperationSettings(); + } + + /** Returns the object with the settings used for calls to exportApp. */ + public UnaryCallSettings exportAppSettings() { + return ((AgentServiceStubSettings) getStubSettings()).exportAppSettings(); + } + + /** Returns the object with the settings used for calls to exportApp. */ + public OperationCallSettings + exportAppOperationSettings() { + return ((AgentServiceStubSettings) getStubSettings()).exportAppOperationSettings(); + } + + /** Returns the object with the settings used for calls to importApp. */ + public UnaryCallSettings importAppSettings() { + return ((AgentServiceStubSettings) getStubSettings()).importAppSettings(); + } + + /** Returns the object with the settings used for calls to importApp. */ + public OperationCallSettings + importAppOperationSettings() { + return ((AgentServiceStubSettings) getStubSettings()).importAppOperationSettings(); + } + + /** Returns the object with the settings used for calls to listAgents. */ + public PagedCallSettings + listAgentsSettings() { + return ((AgentServiceStubSettings) getStubSettings()).listAgentsSettings(); + } + + /** Returns the object with the settings used for calls to getAgent. */ + public UnaryCallSettings getAgentSettings() { + return ((AgentServiceStubSettings) getStubSettings()).getAgentSettings(); + } + + /** Returns the object with the settings used for calls to createAgent. */ + public UnaryCallSettings createAgentSettings() { + return ((AgentServiceStubSettings) getStubSettings()).createAgentSettings(); + } + + /** Returns the object with the settings used for calls to updateAgent. */ + public UnaryCallSettings updateAgentSettings() { + return ((AgentServiceStubSettings) getStubSettings()).updateAgentSettings(); + } + + /** Returns the object with the settings used for calls to deleteAgent. */ + public UnaryCallSettings deleteAgentSettings() { + return ((AgentServiceStubSettings) getStubSettings()).deleteAgentSettings(); + } + + /** Returns the object with the settings used for calls to listExamples. */ + public PagedCallSettings + listExamplesSettings() { + return ((AgentServiceStubSettings) getStubSettings()).listExamplesSettings(); + } + + /** Returns the object with the settings used for calls to getExample. */ + public UnaryCallSettings getExampleSettings() { + return ((AgentServiceStubSettings) getStubSettings()).getExampleSettings(); + } + + /** Returns the object with the settings used for calls to createExample. */ + public UnaryCallSettings createExampleSettings() { + return ((AgentServiceStubSettings) getStubSettings()).createExampleSettings(); + } + + /** Returns the object with the settings used for calls to updateExample. */ + public UnaryCallSettings updateExampleSettings() { + return ((AgentServiceStubSettings) getStubSettings()).updateExampleSettings(); + } + + /** Returns the object with the settings used for calls to deleteExample. */ + public UnaryCallSettings deleteExampleSettings() { + return ((AgentServiceStubSettings) getStubSettings()).deleteExampleSettings(); + } + + /** Returns the object with the settings used for calls to listTools. */ + public PagedCallSettings + listToolsSettings() { + return ((AgentServiceStubSettings) getStubSettings()).listToolsSettings(); + } + + /** Returns the object with the settings used for calls to getTool. */ + public UnaryCallSettings getToolSettings() { + return ((AgentServiceStubSettings) getStubSettings()).getToolSettings(); + } + + /** Returns the object with the settings used for calls to listConversations. */ + public PagedCallSettings< + ListConversationsRequest, ListConversationsResponse, ListConversationsPagedResponse> + listConversationsSettings() { + return ((AgentServiceStubSettings) getStubSettings()).listConversationsSettings(); + } + + /** Returns the object with the settings used for calls to getConversation. */ + public UnaryCallSettings getConversationSettings() { + return ((AgentServiceStubSettings) getStubSettings()).getConversationSettings(); + } + + /** Returns the object with the settings used for calls to deleteConversation. */ + public UnaryCallSettings deleteConversationSettings() { + return ((AgentServiceStubSettings) getStubSettings()).deleteConversationSettings(); + } + + /** Returns the object with the settings used for calls to batchDeleteConversations. */ + public UnaryCallSettings + batchDeleteConversationsSettings() { + return ((AgentServiceStubSettings) getStubSettings()).batchDeleteConversationsSettings(); + } + + /** Returns the object with the settings used for calls to batchDeleteConversations. */ + public OperationCallSettings< + BatchDeleteConversationsRequest, BatchDeleteConversationsResponse, OperationMetadata> + batchDeleteConversationsOperationSettings() { + return ((AgentServiceStubSettings) getStubSettings()) + .batchDeleteConversationsOperationSettings(); + } + + /** Returns the object with the settings used for calls to createTool. */ + public UnaryCallSettings createToolSettings() { + return ((AgentServiceStubSettings) getStubSettings()).createToolSettings(); + } + + /** Returns the object with the settings used for calls to updateTool. */ + public UnaryCallSettings updateToolSettings() { + return ((AgentServiceStubSettings) getStubSettings()).updateToolSettings(); + } + + /** Returns the object with the settings used for calls to deleteTool. */ + public UnaryCallSettings deleteToolSettings() { + return ((AgentServiceStubSettings) getStubSettings()).deleteToolSettings(); + } + + /** Returns the object with the settings used for calls to listGuardrails. */ + public PagedCallSettings< + ListGuardrailsRequest, ListGuardrailsResponse, ListGuardrailsPagedResponse> + listGuardrailsSettings() { + return ((AgentServiceStubSettings) getStubSettings()).listGuardrailsSettings(); + } + + /** Returns the object with the settings used for calls to getGuardrail. */ + public UnaryCallSettings getGuardrailSettings() { + return ((AgentServiceStubSettings) getStubSettings()).getGuardrailSettings(); + } + + /** Returns the object with the settings used for calls to createGuardrail. */ + public UnaryCallSettings createGuardrailSettings() { + return ((AgentServiceStubSettings) getStubSettings()).createGuardrailSettings(); + } + + /** Returns the object with the settings used for calls to updateGuardrail. */ + public UnaryCallSettings updateGuardrailSettings() { + return ((AgentServiceStubSettings) getStubSettings()).updateGuardrailSettings(); + } + + /** Returns the object with the settings used for calls to deleteGuardrail. */ + public UnaryCallSettings deleteGuardrailSettings() { + return ((AgentServiceStubSettings) getStubSettings()).deleteGuardrailSettings(); + } + + /** Returns the object with the settings used for calls to listDeployments. */ + public PagedCallSettings< + ListDeploymentsRequest, ListDeploymentsResponse, ListDeploymentsPagedResponse> + listDeploymentsSettings() { + return ((AgentServiceStubSettings) getStubSettings()).listDeploymentsSettings(); + } + + /** Returns the object with the settings used for calls to getDeployment. */ + public UnaryCallSettings getDeploymentSettings() { + return ((AgentServiceStubSettings) getStubSettings()).getDeploymentSettings(); + } + + /** Returns the object with the settings used for calls to createDeployment. */ + public UnaryCallSettings createDeploymentSettings() { + return ((AgentServiceStubSettings) getStubSettings()).createDeploymentSettings(); + } + + /** Returns the object with the settings used for calls to updateDeployment. */ + public UnaryCallSettings updateDeploymentSettings() { + return ((AgentServiceStubSettings) getStubSettings()).updateDeploymentSettings(); + } + + /** Returns the object with the settings used for calls to deleteDeployment. */ + public UnaryCallSettings deleteDeploymentSettings() { + return ((AgentServiceStubSettings) getStubSettings()).deleteDeploymentSettings(); + } + + /** Returns the object with the settings used for calls to listToolsets. */ + public PagedCallSettings + listToolsetsSettings() { + return ((AgentServiceStubSettings) getStubSettings()).listToolsetsSettings(); + } + + /** Returns the object with the settings used for calls to getToolset. */ + public UnaryCallSettings getToolsetSettings() { + return ((AgentServiceStubSettings) getStubSettings()).getToolsetSettings(); + } + + /** Returns the object with the settings used for calls to createToolset. */ + public UnaryCallSettings createToolsetSettings() { + return ((AgentServiceStubSettings) getStubSettings()).createToolsetSettings(); + } + + /** Returns the object with the settings used for calls to updateToolset. */ + public UnaryCallSettings updateToolsetSettings() { + return ((AgentServiceStubSettings) getStubSettings()).updateToolsetSettings(); + } + + /** Returns the object with the settings used for calls to deleteToolset. */ + public UnaryCallSettings deleteToolsetSettings() { + return ((AgentServiceStubSettings) getStubSettings()).deleteToolsetSettings(); + } + + /** Returns the object with the settings used for calls to listAppVersions. */ + public PagedCallSettings< + ListAppVersionsRequest, ListAppVersionsResponse, ListAppVersionsPagedResponse> + listAppVersionsSettings() { + return ((AgentServiceStubSettings) getStubSettings()).listAppVersionsSettings(); + } + + /** Returns the object with the settings used for calls to getAppVersion. */ + public UnaryCallSettings getAppVersionSettings() { + return ((AgentServiceStubSettings) getStubSettings()).getAppVersionSettings(); + } + + /** Returns the object with the settings used for calls to createAppVersion. */ + public UnaryCallSettings createAppVersionSettings() { + return ((AgentServiceStubSettings) getStubSettings()).createAppVersionSettings(); + } + + /** Returns the object with the settings used for calls to deleteAppVersion. */ + public UnaryCallSettings deleteAppVersionSettings() { + return ((AgentServiceStubSettings) getStubSettings()).deleteAppVersionSettings(); + } + + /** Returns the object with the settings used for calls to restoreAppVersion. */ + public UnaryCallSettings restoreAppVersionSettings() { + return ((AgentServiceStubSettings) getStubSettings()).restoreAppVersionSettings(); + } + + /** Returns the object with the settings used for calls to restoreAppVersion. */ + public OperationCallSettings< + RestoreAppVersionRequest, RestoreAppVersionResponse, OperationMetadata> + restoreAppVersionOperationSettings() { + return ((AgentServiceStubSettings) getStubSettings()).restoreAppVersionOperationSettings(); + } + + /** Returns the object with the settings used for calls to listChangelogs. */ + public PagedCallSettings< + ListChangelogsRequest, ListChangelogsResponse, ListChangelogsPagedResponse> + listChangelogsSettings() { + return ((AgentServiceStubSettings) getStubSettings()).listChangelogsSettings(); + } + + /** Returns the object with the settings used for calls to getChangelog. */ + public UnaryCallSettings getChangelogSettings() { + return ((AgentServiceStubSettings) getStubSettings()).getChangelogSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((AgentServiceStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((AgentServiceStubSettings) getStubSettings()).getLocationSettings(); + } + + public static final AgentServiceSettings create(AgentServiceStubSettings stub) + throws IOException { + return new AgentServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return AgentServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return AgentServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return AgentServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return AgentServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return AgentServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return AgentServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return AgentServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AgentServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AgentServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for AgentServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(AgentServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(AgentServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(AgentServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(AgentServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(AgentServiceStubSettings.newHttpJsonBuilder()); + } + + public AgentServiceStubSettings.Builder getStubSettingsBuilder() { + return ((AgentServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

      Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to listApps. */ + public PagedCallSettings.Builder + listAppsSettings() { + return getStubSettingsBuilder().listAppsSettings(); + } + + /** Returns the builder for the settings used for calls to getApp. */ + public UnaryCallSettings.Builder getAppSettings() { + return getStubSettingsBuilder().getAppSettings(); + } + + /** Returns the builder for the settings used for calls to createApp. */ + public UnaryCallSettings.Builder createAppSettings() { + return getStubSettingsBuilder().createAppSettings(); + } + + /** Returns the builder for the settings used for calls to createApp. */ + public OperationCallSettings.Builder + createAppOperationSettings() { + return getStubSettingsBuilder().createAppOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateApp. */ + public UnaryCallSettings.Builder updateAppSettings() { + return getStubSettingsBuilder().updateAppSettings(); + } + + /** Returns the builder for the settings used for calls to deleteApp. */ + public UnaryCallSettings.Builder deleteAppSettings() { + return getStubSettingsBuilder().deleteAppSettings(); + } + + /** Returns the builder for the settings used for calls to deleteApp. */ + public OperationCallSettings.Builder + deleteAppOperationSettings() { + return getStubSettingsBuilder().deleteAppOperationSettings(); + } + + /** Returns the builder for the settings used for calls to exportApp. */ + public UnaryCallSettings.Builder exportAppSettings() { + return getStubSettingsBuilder().exportAppSettings(); + } + + /** Returns the builder for the settings used for calls to exportApp. */ + public OperationCallSettings.Builder + exportAppOperationSettings() { + return getStubSettingsBuilder().exportAppOperationSettings(); + } + + /** Returns the builder for the settings used for calls to importApp. */ + public UnaryCallSettings.Builder importAppSettings() { + return getStubSettingsBuilder().importAppSettings(); + } + + /** Returns the builder for the settings used for calls to importApp. */ + public OperationCallSettings.Builder + importAppOperationSettings() { + return getStubSettingsBuilder().importAppOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listAgents. */ + public PagedCallSettings.Builder + listAgentsSettings() { + return getStubSettingsBuilder().listAgentsSettings(); + } + + /** Returns the builder for the settings used for calls to getAgent. */ + public UnaryCallSettings.Builder getAgentSettings() { + return getStubSettingsBuilder().getAgentSettings(); + } + + /** Returns the builder for the settings used for calls to createAgent. */ + public UnaryCallSettings.Builder createAgentSettings() { + return getStubSettingsBuilder().createAgentSettings(); + } + + /** Returns the builder for the settings used for calls to updateAgent. */ + public UnaryCallSettings.Builder updateAgentSettings() { + return getStubSettingsBuilder().updateAgentSettings(); + } + + /** Returns the builder for the settings used for calls to deleteAgent. */ + public UnaryCallSettings.Builder deleteAgentSettings() { + return getStubSettingsBuilder().deleteAgentSettings(); + } + + /** Returns the builder for the settings used for calls to listExamples. */ + public PagedCallSettings.Builder< + ListExamplesRequest, ListExamplesResponse, ListExamplesPagedResponse> + listExamplesSettings() { + return getStubSettingsBuilder().listExamplesSettings(); + } + + /** Returns the builder for the settings used for calls to getExample. */ + public UnaryCallSettings.Builder getExampleSettings() { + return getStubSettingsBuilder().getExampleSettings(); + } + + /** Returns the builder for the settings used for calls to createExample. */ + public UnaryCallSettings.Builder createExampleSettings() { + return getStubSettingsBuilder().createExampleSettings(); + } + + /** Returns the builder for the settings used for calls to updateExample. */ + public UnaryCallSettings.Builder updateExampleSettings() { + return getStubSettingsBuilder().updateExampleSettings(); + } + + /** Returns the builder for the settings used for calls to deleteExample. */ + public UnaryCallSettings.Builder deleteExampleSettings() { + return getStubSettingsBuilder().deleteExampleSettings(); + } + + /** Returns the builder for the settings used for calls to listTools. */ + public PagedCallSettings.Builder + listToolsSettings() { + return getStubSettingsBuilder().listToolsSettings(); + } + + /** Returns the builder for the settings used for calls to getTool. */ + public UnaryCallSettings.Builder getToolSettings() { + return getStubSettingsBuilder().getToolSettings(); + } + + /** Returns the builder for the settings used for calls to listConversations. */ + public PagedCallSettings.Builder< + ListConversationsRequest, ListConversationsResponse, ListConversationsPagedResponse> + listConversationsSettings() { + return getStubSettingsBuilder().listConversationsSettings(); + } + + /** Returns the builder for the settings used for calls to getConversation. */ + public UnaryCallSettings.Builder + getConversationSettings() { + return getStubSettingsBuilder().getConversationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteConversation. */ + public UnaryCallSettings.Builder + deleteConversationSettings() { + return getStubSettingsBuilder().deleteConversationSettings(); + } + + /** Returns the builder for the settings used for calls to batchDeleteConversations. */ + public UnaryCallSettings.Builder + batchDeleteConversationsSettings() { + return getStubSettingsBuilder().batchDeleteConversationsSettings(); + } + + /** Returns the builder for the settings used for calls to batchDeleteConversations. */ + public OperationCallSettings.Builder< + BatchDeleteConversationsRequest, BatchDeleteConversationsResponse, OperationMetadata> + batchDeleteConversationsOperationSettings() { + return getStubSettingsBuilder().batchDeleteConversationsOperationSettings(); + } + + /** Returns the builder for the settings used for calls to createTool. */ + public UnaryCallSettings.Builder createToolSettings() { + return getStubSettingsBuilder().createToolSettings(); + } + + /** Returns the builder for the settings used for calls to updateTool. */ + public UnaryCallSettings.Builder updateToolSettings() { + return getStubSettingsBuilder().updateToolSettings(); + } + + /** Returns the builder for the settings used for calls to deleteTool. */ + public UnaryCallSettings.Builder deleteToolSettings() { + return getStubSettingsBuilder().deleteToolSettings(); + } + + /** Returns the builder for the settings used for calls to listGuardrails. */ + public PagedCallSettings.Builder< + ListGuardrailsRequest, ListGuardrailsResponse, ListGuardrailsPagedResponse> + listGuardrailsSettings() { + return getStubSettingsBuilder().listGuardrailsSettings(); + } + + /** Returns the builder for the settings used for calls to getGuardrail. */ + public UnaryCallSettings.Builder getGuardrailSettings() { + return getStubSettingsBuilder().getGuardrailSettings(); + } + + /** Returns the builder for the settings used for calls to createGuardrail. */ + public UnaryCallSettings.Builder createGuardrailSettings() { + return getStubSettingsBuilder().createGuardrailSettings(); + } + + /** Returns the builder for the settings used for calls to updateGuardrail. */ + public UnaryCallSettings.Builder updateGuardrailSettings() { + return getStubSettingsBuilder().updateGuardrailSettings(); + } + + /** Returns the builder for the settings used for calls to deleteGuardrail. */ + public UnaryCallSettings.Builder deleteGuardrailSettings() { + return getStubSettingsBuilder().deleteGuardrailSettings(); + } + + /** Returns the builder for the settings used for calls to listDeployments. */ + public PagedCallSettings.Builder< + ListDeploymentsRequest, ListDeploymentsResponse, ListDeploymentsPagedResponse> + listDeploymentsSettings() { + return getStubSettingsBuilder().listDeploymentsSettings(); + } + + /** Returns the builder for the settings used for calls to getDeployment. */ + public UnaryCallSettings.Builder getDeploymentSettings() { + return getStubSettingsBuilder().getDeploymentSettings(); + } + + /** Returns the builder for the settings used for calls to createDeployment. */ + public UnaryCallSettings.Builder + createDeploymentSettings() { + return getStubSettingsBuilder().createDeploymentSettings(); + } + + /** Returns the builder for the settings used for calls to updateDeployment. */ + public UnaryCallSettings.Builder + updateDeploymentSettings() { + return getStubSettingsBuilder().updateDeploymentSettings(); + } + + /** Returns the builder for the settings used for calls to deleteDeployment. */ + public UnaryCallSettings.Builder deleteDeploymentSettings() { + return getStubSettingsBuilder().deleteDeploymentSettings(); + } + + /** Returns the builder for the settings used for calls to listToolsets. */ + public PagedCallSettings.Builder< + ListToolsetsRequest, ListToolsetsResponse, ListToolsetsPagedResponse> + listToolsetsSettings() { + return getStubSettingsBuilder().listToolsetsSettings(); + } + + /** Returns the builder for the settings used for calls to getToolset. */ + public UnaryCallSettings.Builder getToolsetSettings() { + return getStubSettingsBuilder().getToolsetSettings(); + } + + /** Returns the builder for the settings used for calls to createToolset. */ + public UnaryCallSettings.Builder createToolsetSettings() { + return getStubSettingsBuilder().createToolsetSettings(); + } + + /** Returns the builder for the settings used for calls to updateToolset. */ + public UnaryCallSettings.Builder updateToolsetSettings() { + return getStubSettingsBuilder().updateToolsetSettings(); + } + + /** Returns the builder for the settings used for calls to deleteToolset. */ + public UnaryCallSettings.Builder deleteToolsetSettings() { + return getStubSettingsBuilder().deleteToolsetSettings(); + } + + /** Returns the builder for the settings used for calls to listAppVersions. */ + public PagedCallSettings.Builder< + ListAppVersionsRequest, ListAppVersionsResponse, ListAppVersionsPagedResponse> + listAppVersionsSettings() { + return getStubSettingsBuilder().listAppVersionsSettings(); + } + + /** Returns the builder for the settings used for calls to getAppVersion. */ + public UnaryCallSettings.Builder getAppVersionSettings() { + return getStubSettingsBuilder().getAppVersionSettings(); + } + + /** Returns the builder for the settings used for calls to createAppVersion. */ + public UnaryCallSettings.Builder + createAppVersionSettings() { + return getStubSettingsBuilder().createAppVersionSettings(); + } + + /** Returns the builder for the settings used for calls to deleteAppVersion. */ + public UnaryCallSettings.Builder deleteAppVersionSettings() { + return getStubSettingsBuilder().deleteAppVersionSettings(); + } + + /** Returns the builder for the settings used for calls to restoreAppVersion. */ + public UnaryCallSettings.Builder + restoreAppVersionSettings() { + return getStubSettingsBuilder().restoreAppVersionSettings(); + } + + /** Returns the builder for the settings used for calls to restoreAppVersion. */ + public OperationCallSettings.Builder< + RestoreAppVersionRequest, RestoreAppVersionResponse, OperationMetadata> + restoreAppVersionOperationSettings() { + return getStubSettingsBuilder().restoreAppVersionOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listChangelogs. */ + public PagedCallSettings.Builder< + ListChangelogsRequest, ListChangelogsResponse, ListChangelogsPagedResponse> + listChangelogsSettings() { + return getStubSettingsBuilder().listChangelogsSettings(); + } + + /** Returns the builder for the settings used for calls to getChangelog. */ + public UnaryCallSettings.Builder getChangelogSettings() { + return getStubSettingsBuilder().getChangelogSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + @Override + public AgentServiceSettings build() throws IOException { + return new AgentServiceSettings(this); + } + } +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/SessionServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/SessionServiceClient.java new file mode 100644 index 000000000000..ca2de5bb9dd7 --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/SessionServiceClient.java @@ -0,0 +1,652 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.ces.v1.stub.SessionServiceStub; +import com.google.cloud.ces.v1.stub.SessionServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Session service provides APIs for interacting with CES agents. + * + *

      This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * try (SessionServiceClient sessionServiceClient = SessionServiceClient.create()) {
      + *   RunSessionRequest request =
      + *       RunSessionRequest.newBuilder()
      + *           .setConfig(SessionConfig.newBuilder().build())
      + *           .addAllInputs(new ArrayList())
      + *           .build();
      + *   RunSessionResponse response = sessionServiceClient.runSession(request);
      + * }
      + * }
      + * + *

      Note: close() needs to be called on the SessionServiceClient object to clean up resources such + * as threads. In the example above, try-with-resources is used, which automatically calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      Methods
      MethodDescriptionMethod Variants

      RunSession

      Initiates a single turn interaction with the CES agent within a session.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • runSession(RunSessionRequest request) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • runSessionCallable() + *

      + *

      BidiRunSession

      Establishes a bidirectional streaming connection with the CES agent. The agent processes continuous multimodal inputs (e.g., text, audio) and generates real-time multimodal output streams. + *

      --- Client Request Stream --- The client streams requests in the following order: + *

      1. Initialization: The first message must contain [SessionConfig][google.cloud.ces.v1.BidiSessionClientMessage.config]. For audio sessions, this should also include [InputAudioConfig][google.cloud.ces.v1.SessionConfig.input_audio_config] and [OutputAudioConfig][google.cloud.ces.v1.SessionConfig.output_audio_config] to define audio processing and synthesis parameters. + *

      2. Interaction: Subsequent messages stream [SessionInput][google.cloud.ces.v1.BidiSessionClientMessage.realtime_input] containing real-time user input data. + *

      3. Termination: The client should half-close the stream when there is no more user input. It should also half-close upon receiving [EndSession][google.cloud.ces.v1.BidiSessionServerMessage.end_session] or [GoAway][google.cloud.ces.v1.BidiSessionServerMessage.go_away] from the agent. + *

      --- Server Response Stream --- For each interaction turn, the agent streams messages in the following sequence: + *

      1. Speech Recognition (First N messages): Contains [RecognitionResult][google.cloud.ces.v1.BidiSessionServerMessage.recognition_result] representing the concatenated user speech segments captured so far. This is only populated for audio sessions. + *

      2. Response (Next M messages): Contains [SessionOutput][google.cloud.ces.v1.BidiSessionServerMessage.session_output] delivering the agent's response in various modalities (e.g., text, audio). + *

      3. Turn Completion (Final message of the turn): Contains [SessionOutput][google.cloud.ces.v1.BidiSessionServerMessage.session_output] with [turn_completed][google.cloud.ces.v1.SessionOutput.turn_completed] set to true. This signals the end of the current turn and includes [DiagnosticInfo][google.cloud.ces.v1.SessionOutput.diagnostic_info] with execution details. + *

      --- Audio Best Practices --- 1. Streaming: Stream [audio data][google.cloud.ces.v1.SessionInput.audio] **CONTINUOUSLY**, even during silence. Recommended chunk size: 40-120ms (balances latency vs. efficiency). + *

      2. Playback & Interruption: Play [audio responses][google.cloud.ces.v1.SessionOutput.audio] upon receipt. Stop playback immediately if an [InterruptionSignal][google.cloud.ces.v1.BidiSessionServerMessage.interruption_signal] is received (e.g., user barge-in or new agent response).

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • bidiRunSessionCallable() + *

      + *

      ListLocations

      Lists information about the supported locations for this service.This method can be called in two ways: + *

      * **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • listLocations(ListLocationsRequest request) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • listLocationsPagedCallable() + *

      • listLocationsCallable() + *

      + *

      GetLocation

      Gets information about a location.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • getLocation(GetLocationRequest request) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • getLocationCallable() + *

      + *
      + * + *

      See the individual methods for example code. + * + *

      Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

      This class can be customized by passing in a custom instance of SessionServiceSettings to + * create(). For example: + * + *

      To customize credentials: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * SessionServiceSettings sessionServiceSettings =
      + *     SessionServiceSettings.newBuilder()
      + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
      + *         .build();
      + * SessionServiceClient sessionServiceClient = SessionServiceClient.create(sessionServiceSettings);
      + * }
      + * + *

      To customize the endpoint: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * SessionServiceSettings sessionServiceSettings =
      + *     SessionServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
      + * SessionServiceClient sessionServiceClient = SessionServiceClient.create(sessionServiceSettings);
      + * }
      + * + *

      To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * SessionServiceSettings sessionServiceSettings =
      + *     SessionServiceSettings.newHttpJsonBuilder().build();
      + * SessionServiceClient sessionServiceClient = SessionServiceClient.create(sessionServiceSettings);
      + * }
      + * + *

      Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class SessionServiceClient implements BackgroundResource { + private final SessionServiceSettings settings; + private final SessionServiceStub stub; + + /** Constructs an instance of SessionServiceClient with default settings. */ + public static final SessionServiceClient create() throws IOException { + return create(SessionServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of SessionServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final SessionServiceClient create(SessionServiceSettings settings) + throws IOException { + return new SessionServiceClient(settings); + } + + /** + * Constructs an instance of SessionServiceClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(SessionServiceSettings). + */ + public static final SessionServiceClient create(SessionServiceStub stub) { + return new SessionServiceClient(stub); + } + + /** + * Constructs an instance of SessionServiceClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected SessionServiceClient(SessionServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((SessionServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected SessionServiceClient(SessionServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final SessionServiceSettings getSettings() { + return settings; + } + + public SessionServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initiates a single turn interaction with the CES agent within a session. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (SessionServiceClient sessionServiceClient = SessionServiceClient.create()) {
      +   *   RunSessionRequest request =
      +   *       RunSessionRequest.newBuilder()
      +   *           .setConfig(SessionConfig.newBuilder().build())
      +   *           .addAllInputs(new ArrayList())
      +   *           .build();
      +   *   RunSessionResponse response = sessionServiceClient.runSession(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RunSessionResponse runSession(RunSessionRequest request) { + return runSessionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initiates a single turn interaction with the CES agent within a session. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (SessionServiceClient sessionServiceClient = SessionServiceClient.create()) {
      +   *   RunSessionRequest request =
      +   *       RunSessionRequest.newBuilder()
      +   *           .setConfig(SessionConfig.newBuilder().build())
      +   *           .addAllInputs(new ArrayList())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       sessionServiceClient.runSessionCallable().futureCall(request);
      +   *   // Do something.
      +   *   RunSessionResponse response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable runSessionCallable() { + return stub.runSessionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Establishes a bidirectional streaming connection with the CES agent. The agent processes + * continuous multimodal inputs (e.g., text, audio) and generates real-time multimodal output + * streams. + * + *

      --- Client Request Stream --- The client streams requests in the following order: + * + *

      1. Initialization: The first message must contain + * [SessionConfig][google.cloud.ces.v1.BidiSessionClientMessage.config]. For audio sessions, this + * should also include [InputAudioConfig][google.cloud.ces.v1.SessionConfig.input_audio_config] + * and [OutputAudioConfig][google.cloud.ces.v1.SessionConfig.output_audio_config] to define audio + * processing and synthesis parameters. + * + *

      2. Interaction: Subsequent messages stream + * [SessionInput][google.cloud.ces.v1.BidiSessionClientMessage.realtime_input] containing + * real-time user input data. + * + *

      3. Termination: The client should half-close the stream when there is no more user input. It + * should also half-close upon receiving + * [EndSession][google.cloud.ces.v1.BidiSessionServerMessage.end_session] or + * [GoAway][google.cloud.ces.v1.BidiSessionServerMessage.go_away] from the agent. + * + *

      --- Server Response Stream --- For each interaction turn, the agent streams messages in the + * following sequence: + * + *

      1. Speech Recognition (First N messages): Contains + * [RecognitionResult][google.cloud.ces.v1.BidiSessionServerMessage.recognition_result] + * representing the concatenated user speech segments captured so far. This is only populated for + * audio sessions. + * + *

      2. Response (Next M messages): Contains + * [SessionOutput][google.cloud.ces.v1.BidiSessionServerMessage.session_output] delivering the + * agent's response in various modalities (e.g., text, audio). + * + *

      3. Turn Completion (Final message of the turn): Contains + * [SessionOutput][google.cloud.ces.v1.BidiSessionServerMessage.session_output] with + * [turn_completed][google.cloud.ces.v1.SessionOutput.turn_completed] set to true. This signals + * the end of the current turn and includes + * [DiagnosticInfo][google.cloud.ces.v1.SessionOutput.diagnostic_info] with execution details. + * + *

      --- Audio Best Practices --- 1. Streaming: Stream [audio + * data][google.cloud.ces.v1.SessionInput.audio] **CONTINUOUSLY**, even during + * silence. Recommended chunk size: 40-120ms (balances latency vs. efficiency). + * + *

      2. Playback & Interruption: Play [audio + * responses][google.cloud.ces.v1.SessionOutput.audio] upon receipt. Stop playback immediately if + * an [InterruptionSignal][google.cloud.ces.v1.BidiSessionServerMessage.interruption_signal] is + * received (e.g., user barge-in or new agent response). + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (SessionServiceClient sessionServiceClient = SessionServiceClient.create()) {
      +   *   BidiStream bidiStream =
      +   *       sessionServiceClient.bidiRunSessionCallable().call();
      +   *   BidiSessionClientMessage request = BidiSessionClientMessage.newBuilder().build();
      +   *   bidiStream.send(request);
      +   *   for (BidiSessionServerMessage response : bidiStream) {
      +   *     // Do something when a response is received.
      +   *   }
      +   * }
      +   * }
      + */ + public final BidiStreamingCallable + bidiRunSessionCallable() { + return stub.bidiRunSessionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

      * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (SessionServiceClient sessionServiceClient = SessionServiceClient.create()) {
      +   *   ListLocationsRequest request =
      +   *       ListLocationsRequest.newBuilder()
      +   *           .setName("name3373707")
      +   *           .setFilter("filter-1274492040")
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .build();
      +   *   for (Location element : sessionServiceClient.listLocations(request).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

      * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (SessionServiceClient sessionServiceClient = SessionServiceClient.create()) {
      +   *   ListLocationsRequest request =
      +   *       ListLocationsRequest.newBuilder()
      +   *           .setName("name3373707")
      +   *           .setFilter("filter-1274492040")
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .build();
      +   *   ApiFuture future =
      +   *       sessionServiceClient.listLocationsPagedCallable().futureCall(request);
      +   *   // Do something.
      +   *   for (Location element : future.get().iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

      * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (SessionServiceClient sessionServiceClient = SessionServiceClient.create()) {
      +   *   ListLocationsRequest request =
      +   *       ListLocationsRequest.newBuilder()
      +   *           .setName("name3373707")
      +   *           .setFilter("filter-1274492040")
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .build();
      +   *   while (true) {
      +   *     ListLocationsResponse response = sessionServiceClient.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;
      +   *     }
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (SessionServiceClient sessionServiceClient = SessionServiceClient.create()) {
      +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
      +   *   Location response = sessionServiceClient.getLocation(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (SessionServiceClient sessionServiceClient = SessionServiceClient.create()) {
      +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
      +   *   ApiFuture future = sessionServiceClient.getLocationCallable().futureCall(request);
      +   *   // Do something.
      +   *   Location response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/SessionServiceSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/SessionServiceSettings.java new file mode 100644 index 000000000000..e0c1f945b24b --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/SessionServiceSettings.java @@ -0,0 +1,258 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import static com.google.cloud.ces.v1.SessionServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.ces.v1.stub.SessionServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link SessionServiceClient}. + * + *

      The default instance has everything set to sensible defaults: + * + *

        + *
      • The default service address (ces.googleapis.com) and default port (443) are used. + *
      • Credentials are acquired automatically through Application Default Credentials. + *
      • Retries are configured for idempotent methods but not for non-idempotent methods. + *
      + * + *

      The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

      For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of runSession: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * SessionServiceSettings.Builder sessionServiceSettingsBuilder =
      + *     SessionServiceSettings.newBuilder();
      + * sessionServiceSettingsBuilder
      + *     .runSessionSettings()
      + *     .setRetrySettings(
      + *         sessionServiceSettingsBuilder
      + *             .runSessionSettings()
      + *             .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());
      + * SessionServiceSettings sessionServiceSettings = sessionServiceSettingsBuilder.build();
      + * }
      + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@Generated("by gapic-generator-java") +public class SessionServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to runSession. */ + public UnaryCallSettings runSessionSettings() { + return ((SessionServiceStubSettings) getStubSettings()).runSessionSettings(); + } + + /** Returns the object with the settings used for calls to bidiRunSession. */ + public StreamingCallSettings + bidiRunSessionSettings() { + return ((SessionServiceStubSettings) getStubSettings()).bidiRunSessionSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((SessionServiceStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((SessionServiceStubSettings) getStubSettings()).getLocationSettings(); + } + + public static final SessionServiceSettings create(SessionServiceStubSettings stub) + throws IOException { + return new SessionServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return SessionServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return SessionServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return SessionServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return SessionServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return SessionServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return SessionServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return SessionServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SessionServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected SessionServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for SessionServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(SessionServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(SessionServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(SessionServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(SessionServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(SessionServiceStubSettings.newHttpJsonBuilder()); + } + + public SessionServiceStubSettings.Builder getStubSettingsBuilder() { + return ((SessionServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

      Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to runSession. */ + public UnaryCallSettings.Builder runSessionSettings() { + return getStubSettingsBuilder().runSessionSettings(); + } + + /** Returns the builder for the settings used for calls to bidiRunSession. */ + public StreamingCallSettings.Builder + bidiRunSessionSettings() { + return getStubSettingsBuilder().bidiRunSessionSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + @Override + public SessionServiceSettings build() throws IOException { + return new SessionServiceSettings(this); + } + } +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/ToolServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/ToolServiceClient.java new file mode 100644 index 000000000000..611add74a35e --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/ToolServiceClient.java @@ -0,0 +1,702 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.ces.v1.stub.ToolServiceStub; +import com.google.cloud.ces.v1.stub.ToolServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Tool service provides APIs for interacting with CES tools. + * + *

      This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * try (ToolServiceClient toolServiceClient = ToolServiceClient.create()) {
      + *   ExecuteToolRequest request =
      + *       ExecuteToolRequest.newBuilder()
      + *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      + *           .setArgs(Struct.newBuilder().build())
      + *           .build();
      + *   ExecuteToolResponse response = toolServiceClient.executeTool(request);
      + * }
      + * }
      + * + *

      Note: close() needs to be called on the ToolServiceClient object to clean up resources such as + * threads. In the example above, try-with-resources is used, which automatically calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      Methods
      MethodDescriptionMethod Variants

      ExecuteTool

      Executes the given tool with the given arguments.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • executeTool(ExecuteToolRequest request) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • executeToolCallable() + *

      + *

      RetrieveToolSchema

      Retrieve the schema of the given tool. The schema is computed on the fly for the given instance of the tool.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • retrieveToolSchema(RetrieveToolSchemaRequest request) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • retrieveToolSchemaCallable() + *

      + *

      RetrieveTools

      Retrieve the list of tools included in the specified toolset.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • retrieveTools(RetrieveToolsRequest request) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • retrieveToolsCallable() + *

      + *

      ListLocations

      Lists information about the supported locations for this service.This method can be called in two ways: + *

      * **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • listLocations(ListLocationsRequest request) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • listLocationsPagedCallable() + *

      • listLocationsCallable() + *

      + *

      GetLocation

      Gets information about a location.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • getLocation(GetLocationRequest request) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • getLocationCallable() + *

      + *
      + * + *

      See the individual methods for example code. + * + *

      Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

      This class can be customized by passing in a custom instance of ToolServiceSettings to + * create(). For example: + * + *

      To customize credentials: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * ToolServiceSettings toolServiceSettings =
      + *     ToolServiceSettings.newBuilder()
      + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
      + *         .build();
      + * ToolServiceClient toolServiceClient = ToolServiceClient.create(toolServiceSettings);
      + * }
      + * + *

      To customize the endpoint: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * ToolServiceSettings toolServiceSettings =
      + *     ToolServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
      + * ToolServiceClient toolServiceClient = ToolServiceClient.create(toolServiceSettings);
      + * }
      + * + *

      To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * ToolServiceSettings toolServiceSettings = ToolServiceSettings.newHttpJsonBuilder().build();
      + * ToolServiceClient toolServiceClient = ToolServiceClient.create(toolServiceSettings);
      + * }
      + * + *

      Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class ToolServiceClient implements BackgroundResource { + private final ToolServiceSettings settings; + private final ToolServiceStub stub; + + /** Constructs an instance of ToolServiceClient with default settings. */ + public static final ToolServiceClient create() throws IOException { + return create(ToolServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of ToolServiceClient, using the given settings. The channels are created + * based on the settings passed in, or defaults for any settings that are not set. + */ + public static final ToolServiceClient create(ToolServiceSettings settings) throws IOException { + return new ToolServiceClient(settings); + } + + /** + * Constructs an instance of ToolServiceClient, using the given stub for making calls. This is for + * advanced usage - prefer using create(ToolServiceSettings). + */ + public static final ToolServiceClient create(ToolServiceStub stub) { + return new ToolServiceClient(stub); + } + + /** + * Constructs an instance of ToolServiceClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected ToolServiceClient(ToolServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((ToolServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected ToolServiceClient(ToolServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final ToolServiceSettings getSettings() { + return settings; + } + + public ToolServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Executes the given tool with the given arguments. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (ToolServiceClient toolServiceClient = ToolServiceClient.create()) {
      +   *   ExecuteToolRequest request =
      +   *       ExecuteToolRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setArgs(Struct.newBuilder().build())
      +   *           .build();
      +   *   ExecuteToolResponse response = toolServiceClient.executeTool(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ExecuteToolResponse executeTool(ExecuteToolRequest request) { + return executeToolCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Executes the given tool with the given arguments. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (ToolServiceClient toolServiceClient = ToolServiceClient.create()) {
      +   *   ExecuteToolRequest request =
      +   *       ExecuteToolRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .setArgs(Struct.newBuilder().build())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       toolServiceClient.executeToolCallable().futureCall(request);
      +   *   // Do something.
      +   *   ExecuteToolResponse response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable executeToolCallable() { + return stub.executeToolCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve the schema of the given tool. The schema is computed on the fly for the given instance + * of the tool. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (ToolServiceClient toolServiceClient = ToolServiceClient.create()) {
      +   *   RetrieveToolSchemaRequest request =
      +   *       RetrieveToolSchemaRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .build();
      +   *   RetrieveToolSchemaResponse response = toolServiceClient.retrieveToolSchema(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RetrieveToolSchemaResponse retrieveToolSchema(RetrieveToolSchemaRequest request) { + return retrieveToolSchemaCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve the schema of the given tool. The schema is computed on the fly for the given instance + * of the tool. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (ToolServiceClient toolServiceClient = ToolServiceClient.create()) {
      +   *   RetrieveToolSchemaRequest request =
      +   *       RetrieveToolSchemaRequest.newBuilder()
      +   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       toolServiceClient.retrieveToolSchemaCallable().futureCall(request);
      +   *   // Do something.
      +   *   RetrieveToolSchemaResponse response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable + retrieveToolSchemaCallable() { + return stub.retrieveToolSchemaCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve the list of tools included in the specified toolset. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (ToolServiceClient toolServiceClient = ToolServiceClient.create()) {
      +   *   RetrieveToolsRequest request =
      +   *       RetrieveToolsRequest.newBuilder()
      +   *           .setToolset(
      +   *               ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString())
      +   *           .addAllToolIds(new ArrayList())
      +   *           .build();
      +   *   RetrieveToolsResponse response = toolServiceClient.retrieveTools(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RetrieveToolsResponse retrieveTools(RetrieveToolsRequest request) { + return retrieveToolsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve the list of tools included in the specified toolset. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (ToolServiceClient toolServiceClient = ToolServiceClient.create()) {
      +   *   RetrieveToolsRequest request =
      +   *       RetrieveToolsRequest.newBuilder()
      +   *           .setToolset(
      +   *               ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString())
      +   *           .addAllToolIds(new ArrayList())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       toolServiceClient.retrieveToolsCallable().futureCall(request);
      +   *   // Do something.
      +   *   RetrieveToolsResponse response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable retrieveToolsCallable() { + return stub.retrieveToolsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

      * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (ToolServiceClient toolServiceClient = ToolServiceClient.create()) {
      +   *   ListLocationsRequest request =
      +   *       ListLocationsRequest.newBuilder()
      +   *           .setName("name3373707")
      +   *           .setFilter("filter-1274492040")
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .build();
      +   *   for (Location element : toolServiceClient.listLocations(request).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

      * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (ToolServiceClient toolServiceClient = ToolServiceClient.create()) {
      +   *   ListLocationsRequest request =
      +   *       ListLocationsRequest.newBuilder()
      +   *           .setName("name3373707")
      +   *           .setFilter("filter-1274492040")
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .build();
      +   *   ApiFuture future =
      +   *       toolServiceClient.listLocationsPagedCallable().futureCall(request);
      +   *   // Do something.
      +   *   for (Location element : future.get().iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

      * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (ToolServiceClient toolServiceClient = ToolServiceClient.create()) {
      +   *   ListLocationsRequest request =
      +   *       ListLocationsRequest.newBuilder()
      +   *           .setName("name3373707")
      +   *           .setFilter("filter-1274492040")
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .build();
      +   *   while (true) {
      +   *     ListLocationsResponse response = toolServiceClient.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;
      +   *     }
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (ToolServiceClient toolServiceClient = ToolServiceClient.create()) {
      +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
      +   *   Location response = toolServiceClient.getLocation(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (ToolServiceClient toolServiceClient = ToolServiceClient.create()) {
      +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
      +   *   ApiFuture future = toolServiceClient.getLocationCallable().futureCall(request);
      +   *   // Do something.
      +   *   Location response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/ToolServiceSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/ToolServiceSettings.java new file mode 100644 index 000000000000..386e4b17c04f --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/ToolServiceSettings.java @@ -0,0 +1,267 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import static com.google.cloud.ces.v1.ToolServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.ces.v1.stub.ToolServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ToolServiceClient}. + * + *

      The default instance has everything set to sensible defaults: + * + *

        + *
      • The default service address (ces.googleapis.com) and default port (443) are used. + *
      • Credentials are acquired automatically through Application Default Credentials. + *
      • Retries are configured for idempotent methods but not for non-idempotent methods. + *
      + * + *

      The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

      For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of executeTool: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * ToolServiceSettings.Builder toolServiceSettingsBuilder = ToolServiceSettings.newBuilder();
      + * toolServiceSettingsBuilder
      + *     .executeToolSettings()
      + *     .setRetrySettings(
      + *         toolServiceSettingsBuilder
      + *             .executeToolSettings()
      + *             .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());
      + * ToolServiceSettings toolServiceSettings = toolServiceSettingsBuilder.build();
      + * }
      + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@Generated("by gapic-generator-java") +public class ToolServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to executeTool. */ + public UnaryCallSettings executeToolSettings() { + return ((ToolServiceStubSettings) getStubSettings()).executeToolSettings(); + } + + /** Returns the object with the settings used for calls to retrieveToolSchema. */ + public UnaryCallSettings + retrieveToolSchemaSettings() { + return ((ToolServiceStubSettings) getStubSettings()).retrieveToolSchemaSettings(); + } + + /** Returns the object with the settings used for calls to retrieveTools. */ + public UnaryCallSettings retrieveToolsSettings() { + return ((ToolServiceStubSettings) getStubSettings()).retrieveToolsSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((ToolServiceStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((ToolServiceStubSettings) getStubSettings()).getLocationSettings(); + } + + public static final ToolServiceSettings create(ToolServiceStubSettings stub) throws IOException { + return new ToolServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return ToolServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return ToolServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return ToolServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return ToolServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return ToolServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return ToolServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return ToolServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ToolServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ToolServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for ToolServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(ToolServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(ToolServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(ToolServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(ToolServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(ToolServiceStubSettings.newHttpJsonBuilder()); + } + + public ToolServiceStubSettings.Builder getStubSettingsBuilder() { + return ((ToolServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

      Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to executeTool. */ + public UnaryCallSettings.Builder + executeToolSettings() { + return getStubSettingsBuilder().executeToolSettings(); + } + + /** Returns the builder for the settings used for calls to retrieveToolSchema. */ + public UnaryCallSettings.Builder + retrieveToolSchemaSettings() { + return getStubSettingsBuilder().retrieveToolSchemaSettings(); + } + + /** Returns the builder for the settings used for calls to retrieveTools. */ + public UnaryCallSettings.Builder + retrieveToolsSettings() { + return getStubSettingsBuilder().retrieveToolsSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + @Override + public ToolServiceSettings build() throws IOException { + return new ToolServiceSettings(this); + } + } +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/WidgetServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/WidgetServiceClient.java new file mode 100644 index 000000000000..5f0916d87336 --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/WidgetServiceClient.java @@ -0,0 +1,564 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.ces.v1.stub.WidgetServiceStub; +import com.google.cloud.ces.v1.stub.WidgetServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides APIs for widgets to interact with CES APIs. + * + *

      This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * try (WidgetServiceClient widgetServiceClient = WidgetServiceClient.create()) {
      + *   GenerateChatTokenRequest request =
      + *       GenerateChatTokenRequest.newBuilder()
      + *           .setName(SessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[SESSION]").toString())
      + *           .setDeployment(
      + *               DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString())
      + *           .setRecaptchaToken("recaptchaToken1978277202")
      + *           .build();
      + *   GenerateChatTokenResponse response = widgetServiceClient.generateChatToken(request);
      + * }
      + * }
      + * + *

      Note: close() needs to be called on the WidgetServiceClient object to clean up resources such + * as threads. In the example above, try-with-resources is used, which automatically calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
      Methods
      MethodDescriptionMethod Variants

      GenerateChatToken

      Generates a session scoped token for chat widget to authenticate with Session APIs.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • generateChatToken(GenerateChatTokenRequest request) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • generateChatTokenCallable() + *

      + *

      ListLocations

      Lists information about the supported locations for this service.This method can be called in two ways: + *

      * **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • listLocations(ListLocationsRequest request) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • listLocationsPagedCallable() + *

      • listLocationsCallable() + *

      + *

      GetLocation

      Gets information about a location.

      + *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      + *
        + *
      • getLocation(GetLocationRequest request) + *

      + *

      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

      + *
        + *
      • getLocationCallable() + *

      + *
      + * + *

      See the individual methods for example code. + * + *

      Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

      This class can be customized by passing in a custom instance of WidgetServiceSettings to + * create(). For example: + * + *

      To customize credentials: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * WidgetServiceSettings widgetServiceSettings =
      + *     WidgetServiceSettings.newBuilder()
      + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
      + *         .build();
      + * WidgetServiceClient widgetServiceClient = WidgetServiceClient.create(widgetServiceSettings);
      + * }
      + * + *

      To customize the endpoint: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * WidgetServiceSettings widgetServiceSettings =
      + *     WidgetServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
      + * WidgetServiceClient widgetServiceClient = WidgetServiceClient.create(widgetServiceSettings);
      + * }
      + * + *

      To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * WidgetServiceSettings widgetServiceSettings =
      + *     WidgetServiceSettings.newHttpJsonBuilder().build();
      + * WidgetServiceClient widgetServiceClient = WidgetServiceClient.create(widgetServiceSettings);
      + * }
      + * + *

      Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class WidgetServiceClient implements BackgroundResource { + private final WidgetServiceSettings settings; + private final WidgetServiceStub stub; + + /** Constructs an instance of WidgetServiceClient with default settings. */ + public static final WidgetServiceClient create() throws IOException { + return create(WidgetServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of WidgetServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final WidgetServiceClient create(WidgetServiceSettings settings) + throws IOException { + return new WidgetServiceClient(settings); + } + + /** + * Constructs an instance of WidgetServiceClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(WidgetServiceSettings). + */ + public static final WidgetServiceClient create(WidgetServiceStub stub) { + return new WidgetServiceClient(stub); + } + + /** + * Constructs an instance of WidgetServiceClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected WidgetServiceClient(WidgetServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((WidgetServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected WidgetServiceClient(WidgetServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final WidgetServiceSettings getSettings() { + return settings; + } + + public WidgetServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates a session scoped token for chat widget to authenticate with Session APIs. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (WidgetServiceClient widgetServiceClient = WidgetServiceClient.create()) {
      +   *   GenerateChatTokenRequest request =
      +   *       GenerateChatTokenRequest.newBuilder()
      +   *           .setName(SessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[SESSION]").toString())
      +   *           .setDeployment(
      +   *               DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString())
      +   *           .setRecaptchaToken("recaptchaToken1978277202")
      +   *           .build();
      +   *   GenerateChatTokenResponse response = widgetServiceClient.generateChatToken(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GenerateChatTokenResponse generateChatToken(GenerateChatTokenRequest request) { + return generateChatTokenCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates a session scoped token for chat widget to authenticate with Session APIs. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (WidgetServiceClient widgetServiceClient = WidgetServiceClient.create()) {
      +   *   GenerateChatTokenRequest request =
      +   *       GenerateChatTokenRequest.newBuilder()
      +   *           .setName(SessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[SESSION]").toString())
      +   *           .setDeployment(
      +   *               DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString())
      +   *           .setRecaptchaToken("recaptchaToken1978277202")
      +   *           .build();
      +   *   ApiFuture future =
      +   *       widgetServiceClient.generateChatTokenCallable().futureCall(request);
      +   *   // Do something.
      +   *   GenerateChatTokenResponse response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable + generateChatTokenCallable() { + return stub.generateChatTokenCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

      * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (WidgetServiceClient widgetServiceClient = WidgetServiceClient.create()) {
      +   *   ListLocationsRequest request =
      +   *       ListLocationsRequest.newBuilder()
      +   *           .setName("name3373707")
      +   *           .setFilter("filter-1274492040")
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .build();
      +   *   for (Location element : widgetServiceClient.listLocations(request).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

      * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (WidgetServiceClient widgetServiceClient = WidgetServiceClient.create()) {
      +   *   ListLocationsRequest request =
      +   *       ListLocationsRequest.newBuilder()
      +   *           .setName("name3373707")
      +   *           .setFilter("filter-1274492040")
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .build();
      +   *   ApiFuture future =
      +   *       widgetServiceClient.listLocationsPagedCallable().futureCall(request);
      +   *   // Do something.
      +   *   for (Location element : future.get().iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

      * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (WidgetServiceClient widgetServiceClient = WidgetServiceClient.create()) {
      +   *   ListLocationsRequest request =
      +   *       ListLocationsRequest.newBuilder()
      +   *           .setName("name3373707")
      +   *           .setFilter("filter-1274492040")
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .build();
      +   *   while (true) {
      +   *     ListLocationsResponse response = widgetServiceClient.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;
      +   *     }
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (WidgetServiceClient widgetServiceClient = WidgetServiceClient.create()) {
      +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
      +   *   Location response = widgetServiceClient.getLocation(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (WidgetServiceClient widgetServiceClient = WidgetServiceClient.create()) {
      +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
      +   *   ApiFuture future = widgetServiceClient.getLocationCallable().futureCall(request);
      +   *   // Do something.
      +   *   Location response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/WidgetServiceSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/WidgetServiceSettings.java new file mode 100644 index 000000000000..c85b6dfa2636 --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/WidgetServiceSettings.java @@ -0,0 +1,246 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import static com.google.cloud.ces.v1.WidgetServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.ces.v1.stub.WidgetServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link WidgetServiceClient}. + * + *

      The default instance has everything set to sensible defaults: + * + *

        + *
      • The default service address (ces.googleapis.com) and default port (443) are used. + *
      • Credentials are acquired automatically through Application Default Credentials. + *
      • Retries are configured for idempotent methods but not for non-idempotent methods. + *
      + * + *

      The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

      For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of generateChatToken: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * WidgetServiceSettings.Builder widgetServiceSettingsBuilder = WidgetServiceSettings.newBuilder();
      + * widgetServiceSettingsBuilder
      + *     .generateChatTokenSettings()
      + *     .setRetrySettings(
      + *         widgetServiceSettingsBuilder
      + *             .generateChatTokenSettings()
      + *             .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());
      + * WidgetServiceSettings widgetServiceSettings = widgetServiceSettingsBuilder.build();
      + * }
      + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@Generated("by gapic-generator-java") +public class WidgetServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to generateChatToken. */ + public UnaryCallSettings + generateChatTokenSettings() { + return ((WidgetServiceStubSettings) getStubSettings()).generateChatTokenSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((WidgetServiceStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((WidgetServiceStubSettings) getStubSettings()).getLocationSettings(); + } + + public static final WidgetServiceSettings create(WidgetServiceStubSettings stub) + throws IOException { + return new WidgetServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return WidgetServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return WidgetServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return WidgetServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return WidgetServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return WidgetServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return WidgetServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return WidgetServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return WidgetServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected WidgetServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for WidgetServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(WidgetServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(WidgetServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(WidgetServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(WidgetServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(WidgetServiceStubSettings.newHttpJsonBuilder()); + } + + public WidgetServiceStubSettings.Builder getStubSettingsBuilder() { + return ((WidgetServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

      Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to generateChatToken. */ + public UnaryCallSettings.Builder + generateChatTokenSettings() { + return getStubSettingsBuilder().generateChatTokenSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + @Override + public WidgetServiceSettings build() throws IOException { + return new WidgetServiceSettings(this); + } + } +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/gapic_metadata.json b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/gapic_metadata.json new file mode 100644 index 000000000000..0754a01df16e --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/gapic_metadata.json @@ -0,0 +1,231 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.ces.v1", + "libraryPackage": "com.google.cloud.ces.v1", + "services": { + "AgentService": { + "clients": { + "grpc": { + "libraryClient": "AgentServiceClient", + "rpcs": { + "BatchDeleteConversations": { + "methods": ["batchDeleteConversationsAsync", "batchDeleteConversationsAsync", "batchDeleteConversationsAsync", "batchDeleteConversationsOperationCallable", "batchDeleteConversationsCallable"] + }, + "CreateAgent": { + "methods": ["createAgent", "createAgent", "createAgent", "createAgent", "createAgent", "createAgentCallable"] + }, + "CreateApp": { + "methods": ["createAppAsync", "createAppAsync", "createAppAsync", "createAppAsync", "createAppAsync", "createAppOperationCallable", "createAppCallable"] + }, + "CreateAppVersion": { + "methods": ["createAppVersion", "createAppVersion", "createAppVersion", "createAppVersion", "createAppVersion", "createAppVersionCallable"] + }, + "CreateDeployment": { + "methods": ["createDeployment", "createDeployment", "createDeployment", "createDeployment", "createDeployment", "createDeploymentCallable"] + }, + "CreateExample": { + "methods": ["createExample", "createExample", "createExample", "createExample", "createExample", "createExampleCallable"] + }, + "CreateGuardrail": { + "methods": ["createGuardrail", "createGuardrail", "createGuardrail", "createGuardrail", "createGuardrail", "createGuardrailCallable"] + }, + "CreateTool": { + "methods": ["createTool", "createTool", "createTool", "createTool", "createTool", "createToolCallable"] + }, + "CreateToolset": { + "methods": ["createToolset", "createToolset", "createToolset", "createToolset", "createToolset", "createToolsetCallable"] + }, + "DeleteAgent": { + "methods": ["deleteAgent", "deleteAgent", "deleteAgent", "deleteAgentCallable"] + }, + "DeleteApp": { + "methods": ["deleteAppAsync", "deleteAppAsync", "deleteAppAsync", "deleteAppOperationCallable", "deleteAppCallable"] + }, + "DeleteAppVersion": { + "methods": ["deleteAppVersion", "deleteAppVersion", "deleteAppVersion", "deleteAppVersionCallable"] + }, + "DeleteConversation": { + "methods": ["deleteConversation", "deleteConversation", "deleteConversation", "deleteConversationCallable"] + }, + "DeleteDeployment": { + "methods": ["deleteDeployment", "deleteDeployment", "deleteDeployment", "deleteDeploymentCallable"] + }, + "DeleteExample": { + "methods": ["deleteExample", "deleteExample", "deleteExample", "deleteExampleCallable"] + }, + "DeleteGuardrail": { + "methods": ["deleteGuardrail", "deleteGuardrail", "deleteGuardrail", "deleteGuardrailCallable"] + }, + "DeleteTool": { + "methods": ["deleteTool", "deleteTool", "deleteTool", "deleteToolCallable"] + }, + "DeleteToolset": { + "methods": ["deleteToolset", "deleteToolset", "deleteToolset", "deleteToolsetCallable"] + }, + "ExportApp": { + "methods": ["exportAppAsync", "exportAppAsync", "exportAppAsync", "exportAppOperationCallable", "exportAppCallable"] + }, + "GetAgent": { + "methods": ["getAgent", "getAgent", "getAgent", "getAgentCallable"] + }, + "GetApp": { + "methods": ["getApp", "getApp", "getApp", "getAppCallable"] + }, + "GetAppVersion": { + "methods": ["getAppVersion", "getAppVersion", "getAppVersion", "getAppVersionCallable"] + }, + "GetChangelog": { + "methods": ["getChangelog", "getChangelog", "getChangelog", "getChangelogCallable"] + }, + "GetConversation": { + "methods": ["getConversation", "getConversation", "getConversation", "getConversationCallable"] + }, + "GetDeployment": { + "methods": ["getDeployment", "getDeployment", "getDeployment", "getDeploymentCallable"] + }, + "GetExample": { + "methods": ["getExample", "getExample", "getExample", "getExampleCallable"] + }, + "GetGuardrail": { + "methods": ["getGuardrail", "getGuardrail", "getGuardrail", "getGuardrailCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "GetTool": { + "methods": ["getTool", "getTool", "getTool", "getToolCallable"] + }, + "GetToolset": { + "methods": ["getToolset", "getToolset", "getToolset", "getToolsetCallable"] + }, + "ImportApp": { + "methods": ["importAppAsync", "importAppAsync", "importAppAsync", "importAppOperationCallable", "importAppCallable"] + }, + "ListAgents": { + "methods": ["listAgents", "listAgents", "listAgents", "listAgentsPagedCallable", "listAgentsCallable"] + }, + "ListAppVersions": { + "methods": ["listAppVersions", "listAppVersions", "listAppVersions", "listAppVersionsPagedCallable", "listAppVersionsCallable"] + }, + "ListApps": { + "methods": ["listApps", "listApps", "listApps", "listAppsPagedCallable", "listAppsCallable"] + }, + "ListChangelogs": { + "methods": ["listChangelogs", "listChangelogs", "listChangelogs", "listChangelogsPagedCallable", "listChangelogsCallable"] + }, + "ListConversations": { + "methods": ["listConversations", "listConversations", "listConversations", "listConversationsPagedCallable", "listConversationsCallable"] + }, + "ListDeployments": { + "methods": ["listDeployments", "listDeployments", "listDeployments", "listDeploymentsPagedCallable", "listDeploymentsCallable"] + }, + "ListExamples": { + "methods": ["listExamples", "listExamples", "listExamples", "listExamplesPagedCallable", "listExamplesCallable"] + }, + "ListGuardrails": { + "methods": ["listGuardrails", "listGuardrails", "listGuardrails", "listGuardrailsPagedCallable", "listGuardrailsCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "ListTools": { + "methods": ["listTools", "listTools", "listTools", "listToolsPagedCallable", "listToolsCallable"] + }, + "ListToolsets": { + "methods": ["listToolsets", "listToolsets", "listToolsets", "listToolsetsPagedCallable", "listToolsetsCallable"] + }, + "RestoreAppVersion": { + "methods": ["restoreAppVersionAsync", "restoreAppVersionAsync", "restoreAppVersionAsync", "restoreAppVersionOperationCallable", "restoreAppVersionCallable"] + }, + "UpdateAgent": { + "methods": ["updateAgent", "updateAgent", "updateAgentCallable"] + }, + "UpdateApp": { + "methods": ["updateApp", "updateApp", "updateAppCallable"] + }, + "UpdateDeployment": { + "methods": ["updateDeployment", "updateDeployment", "updateDeploymentCallable"] + }, + "UpdateExample": { + "methods": ["updateExample", "updateExample", "updateExampleCallable"] + }, + "UpdateGuardrail": { + "methods": ["updateGuardrail", "updateGuardrail", "updateGuardrailCallable"] + }, + "UpdateTool": { + "methods": ["updateTool", "updateTool", "updateToolCallable"] + }, + "UpdateToolset": { + "methods": ["updateToolset", "updateToolset", "updateToolsetCallable"] + } + } + } + } + }, + "SessionService": { + "clients": { + "grpc": { + "libraryClient": "SessionServiceClient", + "rpcs": { + "BidiRunSession": { + "methods": ["bidiRunSessionCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "RunSession": { + "methods": ["runSession", "runSessionCallable"] + } + } + } + } + }, + "ToolService": { + "clients": { + "grpc": { + "libraryClient": "ToolServiceClient", + "rpcs": { + "ExecuteTool": { + "methods": ["executeTool", "executeToolCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "RetrieveToolSchema": { + "methods": ["retrieveToolSchema", "retrieveToolSchemaCallable"] + }, + "RetrieveTools": { + "methods": ["retrieveTools", "retrieveToolsCallable"] + } + } + } + } + }, + "WidgetService": { + "clients": { + "grpc": { + "libraryClient": "WidgetServiceClient", + "rpcs": { + "GenerateChatToken": { + "methods": ["generateChatToken", "generateChatTokenCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/package-info.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/package-info.java new file mode 100644 index 000000000000..26a8eb667b37 --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/package-info.java @@ -0,0 +1,112 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * A client to Gemini Enterprise for Customer Experience API + * + *

      The interfaces provided are listed below, along with usage samples. + * + *

      ======================= AgentServiceClient ======================= + * + *

      Service Description: The service that manages agent-related resources in Gemini Enterprise for + * Customer Engagement (CES). + * + *

      Sample for AgentServiceClient: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
      + *   AppName name = AppName.of("[PROJECT]", "[LOCATION]", "[APP]");
      + *   App response = agentServiceClient.getApp(name);
      + * }
      + * }
      + * + *

      ======================= SessionServiceClient ======================= + * + *

      Service Description: Session service provides APIs for interacting with CES agents. + * + *

      Sample for SessionServiceClient: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * try (SessionServiceClient sessionServiceClient = SessionServiceClient.create()) {
      + *   RunSessionRequest request =
      + *       RunSessionRequest.newBuilder()
      + *           .setConfig(SessionConfig.newBuilder().build())
      + *           .addAllInputs(new ArrayList())
      + *           .build();
      + *   RunSessionResponse response = sessionServiceClient.runSession(request);
      + * }
      + * }
      + * + *

      ======================= ToolServiceClient ======================= + * + *

      Service Description: Tool service provides APIs for interacting with CES tools. + * + *

      Sample for ToolServiceClient: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * try (ToolServiceClient toolServiceClient = ToolServiceClient.create()) {
      + *   ExecuteToolRequest request =
      + *       ExecuteToolRequest.newBuilder()
      + *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
      + *           .setArgs(Struct.newBuilder().build())
      + *           .build();
      + *   ExecuteToolResponse response = toolServiceClient.executeTool(request);
      + * }
      + * }
      + * + *

      ======================= WidgetServiceClient ======================= + * + *

      Service Description: Provides APIs for widgets to interact with CES APIs. + * + *

      Sample for WidgetServiceClient: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * try (WidgetServiceClient widgetServiceClient = WidgetServiceClient.create()) {
      + *   GenerateChatTokenRequest request =
      + *       GenerateChatTokenRequest.newBuilder()
      + *           .setName(SessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[SESSION]").toString())
      + *           .setDeployment(
      + *               DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString())
      + *           .setRecaptchaToken("recaptchaToken1978277202")
      + *           .build();
      + *   GenerateChatTokenResponse response = widgetServiceClient.generateChatToken(request);
      + * }
      + * }
      + */ +@Generated("by gapic-generator-java") +package com.google.cloud.ces.v1; + +import javax.annotation.Generated; diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/AgentServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/AgentServiceStub.java new file mode 100644 index 000000000000..1d46de1622d5 --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/AgentServiceStub.java @@ -0,0 +1,419 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.stub; + +import static com.google.cloud.ces.v1.AgentServiceClient.ListAgentsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListAppVersionsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListAppsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListChangelogsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListConversationsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListDeploymentsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListExamplesPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListGuardrailsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListToolsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListToolsetsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.ces.v1.Agent; +import com.google.cloud.ces.v1.App; +import com.google.cloud.ces.v1.AppVersion; +import com.google.cloud.ces.v1.BatchDeleteConversationsRequest; +import com.google.cloud.ces.v1.BatchDeleteConversationsResponse; +import com.google.cloud.ces.v1.Changelog; +import com.google.cloud.ces.v1.Conversation; +import com.google.cloud.ces.v1.CreateAgentRequest; +import com.google.cloud.ces.v1.CreateAppRequest; +import com.google.cloud.ces.v1.CreateAppVersionRequest; +import com.google.cloud.ces.v1.CreateDeploymentRequest; +import com.google.cloud.ces.v1.CreateExampleRequest; +import com.google.cloud.ces.v1.CreateGuardrailRequest; +import com.google.cloud.ces.v1.CreateToolRequest; +import com.google.cloud.ces.v1.CreateToolsetRequest; +import com.google.cloud.ces.v1.DeleteAgentRequest; +import com.google.cloud.ces.v1.DeleteAppRequest; +import com.google.cloud.ces.v1.DeleteAppVersionRequest; +import com.google.cloud.ces.v1.DeleteConversationRequest; +import com.google.cloud.ces.v1.DeleteDeploymentRequest; +import com.google.cloud.ces.v1.DeleteExampleRequest; +import com.google.cloud.ces.v1.DeleteGuardrailRequest; +import com.google.cloud.ces.v1.DeleteToolRequest; +import com.google.cloud.ces.v1.DeleteToolsetRequest; +import com.google.cloud.ces.v1.Deployment; +import com.google.cloud.ces.v1.Example; +import com.google.cloud.ces.v1.ExportAppRequest; +import com.google.cloud.ces.v1.ExportAppResponse; +import com.google.cloud.ces.v1.GetAgentRequest; +import com.google.cloud.ces.v1.GetAppRequest; +import com.google.cloud.ces.v1.GetAppVersionRequest; +import com.google.cloud.ces.v1.GetChangelogRequest; +import com.google.cloud.ces.v1.GetConversationRequest; +import com.google.cloud.ces.v1.GetDeploymentRequest; +import com.google.cloud.ces.v1.GetExampleRequest; +import com.google.cloud.ces.v1.GetGuardrailRequest; +import com.google.cloud.ces.v1.GetToolRequest; +import com.google.cloud.ces.v1.GetToolsetRequest; +import com.google.cloud.ces.v1.Guardrail; +import com.google.cloud.ces.v1.ImportAppRequest; +import com.google.cloud.ces.v1.ImportAppResponse; +import com.google.cloud.ces.v1.ListAgentsRequest; +import com.google.cloud.ces.v1.ListAgentsResponse; +import com.google.cloud.ces.v1.ListAppVersionsRequest; +import com.google.cloud.ces.v1.ListAppVersionsResponse; +import com.google.cloud.ces.v1.ListAppsRequest; +import com.google.cloud.ces.v1.ListAppsResponse; +import com.google.cloud.ces.v1.ListChangelogsRequest; +import com.google.cloud.ces.v1.ListChangelogsResponse; +import com.google.cloud.ces.v1.ListConversationsRequest; +import com.google.cloud.ces.v1.ListConversationsResponse; +import com.google.cloud.ces.v1.ListDeploymentsRequest; +import com.google.cloud.ces.v1.ListDeploymentsResponse; +import com.google.cloud.ces.v1.ListExamplesRequest; +import com.google.cloud.ces.v1.ListExamplesResponse; +import com.google.cloud.ces.v1.ListGuardrailsRequest; +import com.google.cloud.ces.v1.ListGuardrailsResponse; +import com.google.cloud.ces.v1.ListToolsRequest; +import com.google.cloud.ces.v1.ListToolsResponse; +import com.google.cloud.ces.v1.ListToolsetsRequest; +import com.google.cloud.ces.v1.ListToolsetsResponse; +import com.google.cloud.ces.v1.OperationMetadata; +import com.google.cloud.ces.v1.RestoreAppVersionRequest; +import com.google.cloud.ces.v1.RestoreAppVersionResponse; +import com.google.cloud.ces.v1.Tool; +import com.google.cloud.ces.v1.Toolset; +import com.google.cloud.ces.v1.UpdateAgentRequest; +import com.google.cloud.ces.v1.UpdateAppRequest; +import com.google.cloud.ces.v1.UpdateDeploymentRequest; +import com.google.cloud.ces.v1.UpdateExampleRequest; +import com.google.cloud.ces.v1.UpdateGuardrailRequest; +import com.google.cloud.ces.v1.UpdateToolRequest; +import com.google.cloud.ces.v1.UpdateToolsetRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the AgentService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class AgentServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public UnaryCallable listAppsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listAppsPagedCallable()"); + } + + public UnaryCallable listAppsCallable() { + throw new UnsupportedOperationException("Not implemented: listAppsCallable()"); + } + + public UnaryCallable getAppCallable() { + throw new UnsupportedOperationException("Not implemented: getAppCallable()"); + } + + public OperationCallable createAppOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createAppOperationCallable()"); + } + + public UnaryCallable createAppCallable() { + throw new UnsupportedOperationException("Not implemented: createAppCallable()"); + } + + public UnaryCallable updateAppCallable() { + throw new UnsupportedOperationException("Not implemented: updateAppCallable()"); + } + + public OperationCallable + deleteAppOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAppOperationCallable()"); + } + + public UnaryCallable deleteAppCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAppCallable()"); + } + + public OperationCallable + exportAppOperationCallable() { + throw new UnsupportedOperationException("Not implemented: exportAppOperationCallable()"); + } + + public UnaryCallable exportAppCallable() { + throw new UnsupportedOperationException("Not implemented: exportAppCallable()"); + } + + public OperationCallable + importAppOperationCallable() { + throw new UnsupportedOperationException("Not implemented: importAppOperationCallable()"); + } + + public UnaryCallable importAppCallable() { + throw new UnsupportedOperationException("Not implemented: importAppCallable()"); + } + + public UnaryCallable listAgentsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listAgentsPagedCallable()"); + } + + public UnaryCallable listAgentsCallable() { + throw new UnsupportedOperationException("Not implemented: listAgentsCallable()"); + } + + public UnaryCallable getAgentCallable() { + throw new UnsupportedOperationException("Not implemented: getAgentCallable()"); + } + + public UnaryCallable createAgentCallable() { + throw new UnsupportedOperationException("Not implemented: createAgentCallable()"); + } + + public UnaryCallable updateAgentCallable() { + throw new UnsupportedOperationException("Not implemented: updateAgentCallable()"); + } + + public UnaryCallable deleteAgentCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAgentCallable()"); + } + + public UnaryCallable listExamplesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listExamplesPagedCallable()"); + } + + public UnaryCallable listExamplesCallable() { + throw new UnsupportedOperationException("Not implemented: listExamplesCallable()"); + } + + public UnaryCallable getExampleCallable() { + throw new UnsupportedOperationException("Not implemented: getExampleCallable()"); + } + + public UnaryCallable createExampleCallable() { + throw new UnsupportedOperationException("Not implemented: createExampleCallable()"); + } + + public UnaryCallable updateExampleCallable() { + throw new UnsupportedOperationException("Not implemented: updateExampleCallable()"); + } + + public UnaryCallable deleteExampleCallable() { + throw new UnsupportedOperationException("Not implemented: deleteExampleCallable()"); + } + + public UnaryCallable listToolsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listToolsPagedCallable()"); + } + + public UnaryCallable listToolsCallable() { + throw new UnsupportedOperationException("Not implemented: listToolsCallable()"); + } + + public UnaryCallable getToolCallable() { + throw new UnsupportedOperationException("Not implemented: getToolCallable()"); + } + + public UnaryCallable + listConversationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listConversationsPagedCallable()"); + } + + public UnaryCallable + listConversationsCallable() { + throw new UnsupportedOperationException("Not implemented: listConversationsCallable()"); + } + + public UnaryCallable getConversationCallable() { + throw new UnsupportedOperationException("Not implemented: getConversationCallable()"); + } + + public UnaryCallable deleteConversationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteConversationCallable()"); + } + + public OperationCallable< + BatchDeleteConversationsRequest, BatchDeleteConversationsResponse, OperationMetadata> + batchDeleteConversationsOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: batchDeleteConversationsOperationCallable()"); + } + + public UnaryCallable + batchDeleteConversationsCallable() { + throw new UnsupportedOperationException("Not implemented: batchDeleteConversationsCallable()"); + } + + public UnaryCallable createToolCallable() { + throw new UnsupportedOperationException("Not implemented: createToolCallable()"); + } + + public UnaryCallable updateToolCallable() { + throw new UnsupportedOperationException("Not implemented: updateToolCallable()"); + } + + public UnaryCallable deleteToolCallable() { + throw new UnsupportedOperationException("Not implemented: deleteToolCallable()"); + } + + public UnaryCallable + listGuardrailsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listGuardrailsPagedCallable()"); + } + + public UnaryCallable listGuardrailsCallable() { + throw new UnsupportedOperationException("Not implemented: listGuardrailsCallable()"); + } + + public UnaryCallable getGuardrailCallable() { + throw new UnsupportedOperationException("Not implemented: getGuardrailCallable()"); + } + + public UnaryCallable createGuardrailCallable() { + throw new UnsupportedOperationException("Not implemented: createGuardrailCallable()"); + } + + public UnaryCallable updateGuardrailCallable() { + throw new UnsupportedOperationException("Not implemented: updateGuardrailCallable()"); + } + + public UnaryCallable deleteGuardrailCallable() { + throw new UnsupportedOperationException("Not implemented: deleteGuardrailCallable()"); + } + + public UnaryCallable + listDeploymentsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listDeploymentsPagedCallable()"); + } + + public UnaryCallable listDeploymentsCallable() { + throw new UnsupportedOperationException("Not implemented: listDeploymentsCallable()"); + } + + public UnaryCallable getDeploymentCallable() { + throw new UnsupportedOperationException("Not implemented: getDeploymentCallable()"); + } + + public UnaryCallable createDeploymentCallable() { + throw new UnsupportedOperationException("Not implemented: createDeploymentCallable()"); + } + + public UnaryCallable updateDeploymentCallable() { + throw new UnsupportedOperationException("Not implemented: updateDeploymentCallable()"); + } + + public UnaryCallable deleteDeploymentCallable() { + throw new UnsupportedOperationException("Not implemented: deleteDeploymentCallable()"); + } + + public UnaryCallable listToolsetsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listToolsetsPagedCallable()"); + } + + public UnaryCallable listToolsetsCallable() { + throw new UnsupportedOperationException("Not implemented: listToolsetsCallable()"); + } + + public UnaryCallable getToolsetCallable() { + throw new UnsupportedOperationException("Not implemented: getToolsetCallable()"); + } + + public UnaryCallable createToolsetCallable() { + throw new UnsupportedOperationException("Not implemented: createToolsetCallable()"); + } + + public UnaryCallable updateToolsetCallable() { + throw new UnsupportedOperationException("Not implemented: updateToolsetCallable()"); + } + + public UnaryCallable deleteToolsetCallable() { + throw new UnsupportedOperationException("Not implemented: deleteToolsetCallable()"); + } + + public UnaryCallable + listAppVersionsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listAppVersionsPagedCallable()"); + } + + public UnaryCallable listAppVersionsCallable() { + throw new UnsupportedOperationException("Not implemented: listAppVersionsCallable()"); + } + + public UnaryCallable getAppVersionCallable() { + throw new UnsupportedOperationException("Not implemented: getAppVersionCallable()"); + } + + public UnaryCallable createAppVersionCallable() { + throw new UnsupportedOperationException("Not implemented: createAppVersionCallable()"); + } + + public UnaryCallable deleteAppVersionCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAppVersionCallable()"); + } + + public OperationCallable + restoreAppVersionOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: restoreAppVersionOperationCallable()"); + } + + public UnaryCallable restoreAppVersionCallable() { + throw new UnsupportedOperationException("Not implemented: restoreAppVersionCallable()"); + } + + public UnaryCallable + listChangelogsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listChangelogsPagedCallable()"); + } + + public UnaryCallable listChangelogsCallable() { + throw new UnsupportedOperationException("Not implemented: listChangelogsCallable()"); + } + + public UnaryCallable getChangelogCallable() { + throw new UnsupportedOperationException("Not implemented: getChangelogCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/AgentServiceStubSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/AgentServiceStubSettings.java new file mode 100644 index 000000000000..870cf6266713 --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/AgentServiceStubSettings.java @@ -0,0 +1,2493 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.stub; + +import static com.google.cloud.ces.v1.AgentServiceClient.ListAgentsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListAppVersionsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListAppsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListChangelogsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListConversationsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListDeploymentsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListExamplesPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListGuardrailsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListToolsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListToolsetsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.ces.v1.Agent; +import com.google.cloud.ces.v1.App; +import com.google.cloud.ces.v1.AppVersion; +import com.google.cloud.ces.v1.BatchDeleteConversationsRequest; +import com.google.cloud.ces.v1.BatchDeleteConversationsResponse; +import com.google.cloud.ces.v1.Changelog; +import com.google.cloud.ces.v1.Conversation; +import com.google.cloud.ces.v1.CreateAgentRequest; +import com.google.cloud.ces.v1.CreateAppRequest; +import com.google.cloud.ces.v1.CreateAppVersionRequest; +import com.google.cloud.ces.v1.CreateDeploymentRequest; +import com.google.cloud.ces.v1.CreateExampleRequest; +import com.google.cloud.ces.v1.CreateGuardrailRequest; +import com.google.cloud.ces.v1.CreateToolRequest; +import com.google.cloud.ces.v1.CreateToolsetRequest; +import com.google.cloud.ces.v1.DeleteAgentRequest; +import com.google.cloud.ces.v1.DeleteAppRequest; +import com.google.cloud.ces.v1.DeleteAppVersionRequest; +import com.google.cloud.ces.v1.DeleteConversationRequest; +import com.google.cloud.ces.v1.DeleteDeploymentRequest; +import com.google.cloud.ces.v1.DeleteExampleRequest; +import com.google.cloud.ces.v1.DeleteGuardrailRequest; +import com.google.cloud.ces.v1.DeleteToolRequest; +import com.google.cloud.ces.v1.DeleteToolsetRequest; +import com.google.cloud.ces.v1.Deployment; +import com.google.cloud.ces.v1.Example; +import com.google.cloud.ces.v1.ExportAppRequest; +import com.google.cloud.ces.v1.ExportAppResponse; +import com.google.cloud.ces.v1.GetAgentRequest; +import com.google.cloud.ces.v1.GetAppRequest; +import com.google.cloud.ces.v1.GetAppVersionRequest; +import com.google.cloud.ces.v1.GetChangelogRequest; +import com.google.cloud.ces.v1.GetConversationRequest; +import com.google.cloud.ces.v1.GetDeploymentRequest; +import com.google.cloud.ces.v1.GetExampleRequest; +import com.google.cloud.ces.v1.GetGuardrailRequest; +import com.google.cloud.ces.v1.GetToolRequest; +import com.google.cloud.ces.v1.GetToolsetRequest; +import com.google.cloud.ces.v1.Guardrail; +import com.google.cloud.ces.v1.ImportAppRequest; +import com.google.cloud.ces.v1.ImportAppResponse; +import com.google.cloud.ces.v1.ListAgentsRequest; +import com.google.cloud.ces.v1.ListAgentsResponse; +import com.google.cloud.ces.v1.ListAppVersionsRequest; +import com.google.cloud.ces.v1.ListAppVersionsResponse; +import com.google.cloud.ces.v1.ListAppsRequest; +import com.google.cloud.ces.v1.ListAppsResponse; +import com.google.cloud.ces.v1.ListChangelogsRequest; +import com.google.cloud.ces.v1.ListChangelogsResponse; +import com.google.cloud.ces.v1.ListConversationsRequest; +import com.google.cloud.ces.v1.ListConversationsResponse; +import com.google.cloud.ces.v1.ListDeploymentsRequest; +import com.google.cloud.ces.v1.ListDeploymentsResponse; +import com.google.cloud.ces.v1.ListExamplesRequest; +import com.google.cloud.ces.v1.ListExamplesResponse; +import com.google.cloud.ces.v1.ListGuardrailsRequest; +import com.google.cloud.ces.v1.ListGuardrailsResponse; +import com.google.cloud.ces.v1.ListToolsRequest; +import com.google.cloud.ces.v1.ListToolsResponse; +import com.google.cloud.ces.v1.ListToolsetsRequest; +import com.google.cloud.ces.v1.ListToolsetsResponse; +import com.google.cloud.ces.v1.OperationMetadata; +import com.google.cloud.ces.v1.RestoreAppVersionRequest; +import com.google.cloud.ces.v1.RestoreAppVersionResponse; +import com.google.cloud.ces.v1.Tool; +import com.google.cloud.ces.v1.Toolset; +import com.google.cloud.ces.v1.UpdateAgentRequest; +import com.google.cloud.ces.v1.UpdateAppRequest; +import com.google.cloud.ces.v1.UpdateDeploymentRequest; +import com.google.cloud.ces.v1.UpdateExampleRequest; +import com.google.cloud.ces.v1.UpdateGuardrailRequest; +import com.google.cloud.ces.v1.UpdateToolRequest; +import com.google.cloud.ces.v1.UpdateToolsetRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AgentServiceStub}. + * + *

      The default instance has everything set to sensible defaults: + * + *

        + *
      • The default service address (ces.googleapis.com) and default port (443) are used. + *
      • Credentials are acquired automatically through Application Default Credentials. + *
      • Retries are configured for idempotent methods but not for non-idempotent methods. + *
      + * + *

      The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

      For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getApp: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * AgentServiceStubSettings.Builder agentServiceSettingsBuilder =
      + *     AgentServiceStubSettings.newBuilder();
      + * agentServiceSettingsBuilder
      + *     .getAppSettings()
      + *     .setRetrySettings(
      + *         agentServiceSettingsBuilder
      + *             .getAppSettings()
      + *             .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());
      + * AgentServiceStubSettings agentServiceSettings = agentServiceSettingsBuilder.build();
      + * }
      + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

      To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createApp: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * AgentServiceStubSettings.Builder agentServiceSettingsBuilder =
      + *     AgentServiceStubSettings.newBuilder();
      + * TimedRetryAlgorithm timedRetryAlgorithm =
      + *     OperationalTimedPollAlgorithm.create(
      + *         RetrySettings.newBuilder()
      + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
      + *             .setRetryDelayMultiplier(1.5)
      + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
      + *             .setTotalTimeoutDuration(Duration.ofHours(24))
      + *             .build());
      + * agentServiceSettingsBuilder
      + *     .createClusterOperationSettings()
      + *     .setPollingAlgorithm(timedRetryAlgorithm)
      + *     .build();
      + * }
      + */ +@Generated("by gapic-generator-java") +public class AgentServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/ces") + .add("https://www.googleapis.com/auth/cloud-platform") + .build(); + + private final PagedCallSettings + listAppsSettings; + private final UnaryCallSettings getAppSettings; + private final UnaryCallSettings createAppSettings; + private final OperationCallSettings + createAppOperationSettings; + private final UnaryCallSettings updateAppSettings; + private final UnaryCallSettings deleteAppSettings; + private final OperationCallSettings + deleteAppOperationSettings; + private final UnaryCallSettings exportAppSettings; + private final OperationCallSettings + exportAppOperationSettings; + private final UnaryCallSettings importAppSettings; + private final OperationCallSettings + importAppOperationSettings; + private final PagedCallSettings + listAgentsSettings; + private final UnaryCallSettings getAgentSettings; + private final UnaryCallSettings createAgentSettings; + private final UnaryCallSettings updateAgentSettings; + private final UnaryCallSettings deleteAgentSettings; + private final PagedCallSettings< + ListExamplesRequest, ListExamplesResponse, ListExamplesPagedResponse> + listExamplesSettings; + private final UnaryCallSettings getExampleSettings; + private final UnaryCallSettings createExampleSettings; + private final UnaryCallSettings updateExampleSettings; + private final UnaryCallSettings deleteExampleSettings; + private final PagedCallSettings + listToolsSettings; + private final UnaryCallSettings getToolSettings; + private final PagedCallSettings< + ListConversationsRequest, ListConversationsResponse, ListConversationsPagedResponse> + listConversationsSettings; + private final UnaryCallSettings getConversationSettings; + private final UnaryCallSettings deleteConversationSettings; + private final UnaryCallSettings + batchDeleteConversationsSettings; + private final OperationCallSettings< + BatchDeleteConversationsRequest, BatchDeleteConversationsResponse, OperationMetadata> + batchDeleteConversationsOperationSettings; + private final UnaryCallSettings createToolSettings; + private final UnaryCallSettings updateToolSettings; + private final UnaryCallSettings deleteToolSettings; + private final PagedCallSettings< + ListGuardrailsRequest, ListGuardrailsResponse, ListGuardrailsPagedResponse> + listGuardrailsSettings; + private final UnaryCallSettings getGuardrailSettings; + private final UnaryCallSettings createGuardrailSettings; + private final UnaryCallSettings updateGuardrailSettings; + private final UnaryCallSettings deleteGuardrailSettings; + private final PagedCallSettings< + ListDeploymentsRequest, ListDeploymentsResponse, ListDeploymentsPagedResponse> + listDeploymentsSettings; + private final UnaryCallSettings getDeploymentSettings; + private final UnaryCallSettings createDeploymentSettings; + private final UnaryCallSettings updateDeploymentSettings; + private final UnaryCallSettings deleteDeploymentSettings; + private final PagedCallSettings< + ListToolsetsRequest, ListToolsetsResponse, ListToolsetsPagedResponse> + listToolsetsSettings; + private final UnaryCallSettings getToolsetSettings; + private final UnaryCallSettings createToolsetSettings; + private final UnaryCallSettings updateToolsetSettings; + private final UnaryCallSettings deleteToolsetSettings; + private final PagedCallSettings< + ListAppVersionsRequest, ListAppVersionsResponse, ListAppVersionsPagedResponse> + listAppVersionsSettings; + private final UnaryCallSettings getAppVersionSettings; + private final UnaryCallSettings createAppVersionSettings; + private final UnaryCallSettings deleteAppVersionSettings; + private final UnaryCallSettings restoreAppVersionSettings; + private final OperationCallSettings< + RestoreAppVersionRequest, RestoreAppVersionResponse, OperationMetadata> + restoreAppVersionOperationSettings; + private final PagedCallSettings< + ListChangelogsRequest, ListChangelogsResponse, ListChangelogsPagedResponse> + listChangelogsSettings; + private final UnaryCallSettings getChangelogSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + + private static final PagedListDescriptor + LIST_APPS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAppsRequest injectToken(ListAppsRequest payload, String token) { + return ListAppsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAppsRequest injectPageSize(ListAppsRequest payload, int pageSize) { + return ListAppsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListAppsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAppsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListAppsResponse payload) { + return payload.getAppsList(); + } + }; + + private static final PagedListDescriptor + LIST_AGENTS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAgentsRequest injectToken(ListAgentsRequest payload, String token) { + return ListAgentsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAgentsRequest injectPageSize(ListAgentsRequest payload, int pageSize) { + return ListAgentsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListAgentsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAgentsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListAgentsResponse payload) { + return payload.getAgentsList(); + } + }; + + private static final PagedListDescriptor + LIST_EXAMPLES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListExamplesRequest injectToken(ListExamplesRequest payload, String token) { + return ListExamplesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListExamplesRequest injectPageSize(ListExamplesRequest payload, int pageSize) { + return ListExamplesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListExamplesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListExamplesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListExamplesResponse payload) { + return payload.getExamplesList(); + } + }; + + private static final PagedListDescriptor + LIST_TOOLS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListToolsRequest injectToken(ListToolsRequest payload, String token) { + return ListToolsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListToolsRequest injectPageSize(ListToolsRequest payload, int pageSize) { + return ListToolsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListToolsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListToolsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListToolsResponse payload) { + return payload.getToolsList(); + } + }; + + private static final PagedListDescriptor< + ListConversationsRequest, ListConversationsResponse, Conversation> + LIST_CONVERSATIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListConversationsRequest, ListConversationsResponse, Conversation>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListConversationsRequest injectToken( + ListConversationsRequest payload, String token) { + return ListConversationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListConversationsRequest injectPageSize( + ListConversationsRequest payload, int pageSize) { + return ListConversationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListConversationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListConversationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListConversationsResponse payload) { + return payload.getConversationsList(); + } + }; + + private static final PagedListDescriptor + LIST_GUARDRAILS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListGuardrailsRequest injectToken(ListGuardrailsRequest payload, String token) { + return ListGuardrailsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListGuardrailsRequest injectPageSize( + ListGuardrailsRequest payload, int pageSize) { + return ListGuardrailsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListGuardrailsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListGuardrailsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListGuardrailsResponse payload) { + return payload.getGuardrailsList(); + } + }; + + private static final PagedListDescriptor< + ListDeploymentsRequest, ListDeploymentsResponse, Deployment> + LIST_DEPLOYMENTS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListDeploymentsRequest injectToken( + ListDeploymentsRequest payload, String token) { + return ListDeploymentsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListDeploymentsRequest injectPageSize( + ListDeploymentsRequest payload, int pageSize) { + return ListDeploymentsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListDeploymentsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListDeploymentsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListDeploymentsResponse payload) { + return payload.getDeploymentsList(); + } + }; + + private static final PagedListDescriptor + LIST_TOOLSETS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListToolsetsRequest injectToken(ListToolsetsRequest payload, String token) { + return ListToolsetsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListToolsetsRequest injectPageSize(ListToolsetsRequest payload, int pageSize) { + return ListToolsetsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListToolsetsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListToolsetsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListToolsetsResponse payload) { + return payload.getToolsetsList(); + } + }; + + private static final PagedListDescriptor< + ListAppVersionsRequest, ListAppVersionsResponse, AppVersion> + LIST_APP_VERSIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAppVersionsRequest injectToken( + ListAppVersionsRequest payload, String token) { + return ListAppVersionsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAppVersionsRequest injectPageSize( + ListAppVersionsRequest payload, int pageSize) { + return ListAppVersionsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListAppVersionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAppVersionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListAppVersionsResponse payload) { + return payload.getAppVersionsList(); + } + }; + + private static final PagedListDescriptor + LIST_CHANGELOGS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListChangelogsRequest injectToken(ListChangelogsRequest payload, String token) { + return ListChangelogsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListChangelogsRequest injectPageSize( + ListChangelogsRequest payload, int pageSize) { + return ListChangelogsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListChangelogsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListChangelogsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListChangelogsResponse payload) { + return payload.getChangelogsList(); + } + }; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListAppsRequest, ListAppsResponse, ListAppsPagedResponse> + LIST_APPS_PAGE_STR_FACT = + new PagedListResponseFactory() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListAppsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_APPS_PAGE_STR_DESC, request, context); + return ListAppsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListAgentsRequest, ListAgentsResponse, ListAgentsPagedResponse> + LIST_AGENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAgentsRequest, ListAgentsResponse, ListAgentsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListAgentsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_AGENTS_PAGE_STR_DESC, request, context); + return ListAgentsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListExamplesRequest, ListExamplesResponse, ListExamplesPagedResponse> + LIST_EXAMPLES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListExamplesRequest, ListExamplesResponse, ListExamplesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListExamplesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_EXAMPLES_PAGE_STR_DESC, request, context); + return ListExamplesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListToolsRequest, ListToolsResponse, ListToolsPagedResponse> + LIST_TOOLS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListToolsRequest, ListToolsResponse, ListToolsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListToolsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_TOOLS_PAGE_STR_DESC, request, context); + return ListToolsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListConversationsRequest, ListConversationsResponse, ListConversationsPagedResponse> + LIST_CONVERSATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListConversationsRequest, + ListConversationsResponse, + ListConversationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListConversationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_CONVERSATIONS_PAGE_STR_DESC, request, context); + return ListConversationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListGuardrailsRequest, ListGuardrailsResponse, ListGuardrailsPagedResponse> + LIST_GUARDRAILS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListGuardrailsRequest, ListGuardrailsResponse, ListGuardrailsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListGuardrailsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_GUARDRAILS_PAGE_STR_DESC, request, context); + return ListGuardrailsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListDeploymentsRequest, ListDeploymentsResponse, ListDeploymentsPagedResponse> + LIST_DEPLOYMENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDeploymentsRequest, ListDeploymentsResponse, ListDeploymentsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListDeploymentsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_DEPLOYMENTS_PAGE_STR_DESC, request, context); + return ListDeploymentsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListToolsetsRequest, ListToolsetsResponse, ListToolsetsPagedResponse> + LIST_TOOLSETS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListToolsetsRequest, ListToolsetsResponse, ListToolsetsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListToolsetsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_TOOLSETS_PAGE_STR_DESC, request, context); + return ListToolsetsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListAppVersionsRequest, ListAppVersionsResponse, ListAppVersionsPagedResponse> + LIST_APP_VERSIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAppVersionsRequest, ListAppVersionsResponse, ListAppVersionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListAppVersionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_APP_VERSIONS_PAGE_STR_DESC, request, context); + return ListAppVersionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListChangelogsRequest, ListChangelogsResponse, ListChangelogsPagedResponse> + LIST_CHANGELOGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListChangelogsRequest, ListChangelogsResponse, ListChangelogsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListChangelogsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_CHANGELOGS_PAGE_STR_DESC, request, context); + return ListChangelogsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to listApps. */ + public PagedCallSettings + listAppsSettings() { + return listAppsSettings; + } + + /** Returns the object with the settings used for calls to getApp. */ + public UnaryCallSettings getAppSettings() { + return getAppSettings; + } + + /** Returns the object with the settings used for calls to createApp. */ + public UnaryCallSettings createAppSettings() { + return createAppSettings; + } + + /** Returns the object with the settings used for calls to createApp. */ + public OperationCallSettings + createAppOperationSettings() { + return createAppOperationSettings; + } + + /** Returns the object with the settings used for calls to updateApp. */ + public UnaryCallSettings updateAppSettings() { + return updateAppSettings; + } + + /** Returns the object with the settings used for calls to deleteApp. */ + public UnaryCallSettings deleteAppSettings() { + return deleteAppSettings; + } + + /** Returns the object with the settings used for calls to deleteApp. */ + public OperationCallSettings + deleteAppOperationSettings() { + return deleteAppOperationSettings; + } + + /** Returns the object with the settings used for calls to exportApp. */ + public UnaryCallSettings exportAppSettings() { + return exportAppSettings; + } + + /** Returns the object with the settings used for calls to exportApp. */ + public OperationCallSettings + exportAppOperationSettings() { + return exportAppOperationSettings; + } + + /** Returns the object with the settings used for calls to importApp. */ + public UnaryCallSettings importAppSettings() { + return importAppSettings; + } + + /** Returns the object with the settings used for calls to importApp. */ + public OperationCallSettings + importAppOperationSettings() { + return importAppOperationSettings; + } + + /** Returns the object with the settings used for calls to listAgents. */ + public PagedCallSettings + listAgentsSettings() { + return listAgentsSettings; + } + + /** Returns the object with the settings used for calls to getAgent. */ + public UnaryCallSettings getAgentSettings() { + return getAgentSettings; + } + + /** Returns the object with the settings used for calls to createAgent. */ + public UnaryCallSettings createAgentSettings() { + return createAgentSettings; + } + + /** Returns the object with the settings used for calls to updateAgent. */ + public UnaryCallSettings updateAgentSettings() { + return updateAgentSettings; + } + + /** Returns the object with the settings used for calls to deleteAgent. */ + public UnaryCallSettings deleteAgentSettings() { + return deleteAgentSettings; + } + + /** Returns the object with the settings used for calls to listExamples. */ + public PagedCallSettings + listExamplesSettings() { + return listExamplesSettings; + } + + /** Returns the object with the settings used for calls to getExample. */ + public UnaryCallSettings getExampleSettings() { + return getExampleSettings; + } + + /** Returns the object with the settings used for calls to createExample. */ + public UnaryCallSettings createExampleSettings() { + return createExampleSettings; + } + + /** Returns the object with the settings used for calls to updateExample. */ + public UnaryCallSettings updateExampleSettings() { + return updateExampleSettings; + } + + /** Returns the object with the settings used for calls to deleteExample. */ + public UnaryCallSettings deleteExampleSettings() { + return deleteExampleSettings; + } + + /** Returns the object with the settings used for calls to listTools. */ + public PagedCallSettings + listToolsSettings() { + return listToolsSettings; + } + + /** Returns the object with the settings used for calls to getTool. */ + public UnaryCallSettings getToolSettings() { + return getToolSettings; + } + + /** Returns the object with the settings used for calls to listConversations. */ + public PagedCallSettings< + ListConversationsRequest, ListConversationsResponse, ListConversationsPagedResponse> + listConversationsSettings() { + return listConversationsSettings; + } + + /** Returns the object with the settings used for calls to getConversation. */ + public UnaryCallSettings getConversationSettings() { + return getConversationSettings; + } + + /** Returns the object with the settings used for calls to deleteConversation. */ + public UnaryCallSettings deleteConversationSettings() { + return deleteConversationSettings; + } + + /** Returns the object with the settings used for calls to batchDeleteConversations. */ + public UnaryCallSettings + batchDeleteConversationsSettings() { + return batchDeleteConversationsSettings; + } + + /** Returns the object with the settings used for calls to batchDeleteConversations. */ + public OperationCallSettings< + BatchDeleteConversationsRequest, BatchDeleteConversationsResponse, OperationMetadata> + batchDeleteConversationsOperationSettings() { + return batchDeleteConversationsOperationSettings; + } + + /** Returns the object with the settings used for calls to createTool. */ + public UnaryCallSettings createToolSettings() { + return createToolSettings; + } + + /** Returns the object with the settings used for calls to updateTool. */ + public UnaryCallSettings updateToolSettings() { + return updateToolSettings; + } + + /** Returns the object with the settings used for calls to deleteTool. */ + public UnaryCallSettings deleteToolSettings() { + return deleteToolSettings; + } + + /** Returns the object with the settings used for calls to listGuardrails. */ + public PagedCallSettings< + ListGuardrailsRequest, ListGuardrailsResponse, ListGuardrailsPagedResponse> + listGuardrailsSettings() { + return listGuardrailsSettings; + } + + /** Returns the object with the settings used for calls to getGuardrail. */ + public UnaryCallSettings getGuardrailSettings() { + return getGuardrailSettings; + } + + /** Returns the object with the settings used for calls to createGuardrail. */ + public UnaryCallSettings createGuardrailSettings() { + return createGuardrailSettings; + } + + /** Returns the object with the settings used for calls to updateGuardrail. */ + public UnaryCallSettings updateGuardrailSettings() { + return updateGuardrailSettings; + } + + /** Returns the object with the settings used for calls to deleteGuardrail. */ + public UnaryCallSettings deleteGuardrailSettings() { + return deleteGuardrailSettings; + } + + /** Returns the object with the settings used for calls to listDeployments. */ + public PagedCallSettings< + ListDeploymentsRequest, ListDeploymentsResponse, ListDeploymentsPagedResponse> + listDeploymentsSettings() { + return listDeploymentsSettings; + } + + /** Returns the object with the settings used for calls to getDeployment. */ + public UnaryCallSettings getDeploymentSettings() { + return getDeploymentSettings; + } + + /** Returns the object with the settings used for calls to createDeployment. */ + public UnaryCallSettings createDeploymentSettings() { + return createDeploymentSettings; + } + + /** Returns the object with the settings used for calls to updateDeployment. */ + public UnaryCallSettings updateDeploymentSettings() { + return updateDeploymentSettings; + } + + /** Returns the object with the settings used for calls to deleteDeployment. */ + public UnaryCallSettings deleteDeploymentSettings() { + return deleteDeploymentSettings; + } + + /** Returns the object with the settings used for calls to listToolsets. */ + public PagedCallSettings + listToolsetsSettings() { + return listToolsetsSettings; + } + + /** Returns the object with the settings used for calls to getToolset. */ + public UnaryCallSettings getToolsetSettings() { + return getToolsetSettings; + } + + /** Returns the object with the settings used for calls to createToolset. */ + public UnaryCallSettings createToolsetSettings() { + return createToolsetSettings; + } + + /** Returns the object with the settings used for calls to updateToolset. */ + public UnaryCallSettings updateToolsetSettings() { + return updateToolsetSettings; + } + + /** Returns the object with the settings used for calls to deleteToolset. */ + public UnaryCallSettings deleteToolsetSettings() { + return deleteToolsetSettings; + } + + /** Returns the object with the settings used for calls to listAppVersions. */ + public PagedCallSettings< + ListAppVersionsRequest, ListAppVersionsResponse, ListAppVersionsPagedResponse> + listAppVersionsSettings() { + return listAppVersionsSettings; + } + + /** Returns the object with the settings used for calls to getAppVersion. */ + public UnaryCallSettings getAppVersionSettings() { + return getAppVersionSettings; + } + + /** Returns the object with the settings used for calls to createAppVersion. */ + public UnaryCallSettings createAppVersionSettings() { + return createAppVersionSettings; + } + + /** Returns the object with the settings used for calls to deleteAppVersion. */ + public UnaryCallSettings deleteAppVersionSettings() { + return deleteAppVersionSettings; + } + + /** Returns the object with the settings used for calls to restoreAppVersion. */ + public UnaryCallSettings restoreAppVersionSettings() { + return restoreAppVersionSettings; + } + + /** Returns the object with the settings used for calls to restoreAppVersion. */ + public OperationCallSettings< + RestoreAppVersionRequest, RestoreAppVersionResponse, OperationMetadata> + restoreAppVersionOperationSettings() { + return restoreAppVersionOperationSettings; + } + + /** Returns the object with the settings used for calls to listChangelogs. */ + public PagedCallSettings< + ListChangelogsRequest, ListChangelogsResponse, ListChangelogsPagedResponse> + listChangelogsSettings() { + return listChangelogsSettings; + } + + /** Returns the object with the settings used for calls to getChangelog. */ + public UnaryCallSettings getChangelogSettings() { + return getChangelogSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + public AgentServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcAgentServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonAgentServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "ces"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "ces.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "ces.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AgentServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AgentServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AgentServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AgentServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listAppsSettings = settingsBuilder.listAppsSettings().build(); + getAppSettings = settingsBuilder.getAppSettings().build(); + createAppSettings = settingsBuilder.createAppSettings().build(); + createAppOperationSettings = settingsBuilder.createAppOperationSettings().build(); + updateAppSettings = settingsBuilder.updateAppSettings().build(); + deleteAppSettings = settingsBuilder.deleteAppSettings().build(); + deleteAppOperationSettings = settingsBuilder.deleteAppOperationSettings().build(); + exportAppSettings = settingsBuilder.exportAppSettings().build(); + exportAppOperationSettings = settingsBuilder.exportAppOperationSettings().build(); + importAppSettings = settingsBuilder.importAppSettings().build(); + importAppOperationSettings = settingsBuilder.importAppOperationSettings().build(); + listAgentsSettings = settingsBuilder.listAgentsSettings().build(); + getAgentSettings = settingsBuilder.getAgentSettings().build(); + createAgentSettings = settingsBuilder.createAgentSettings().build(); + updateAgentSettings = settingsBuilder.updateAgentSettings().build(); + deleteAgentSettings = settingsBuilder.deleteAgentSettings().build(); + listExamplesSettings = settingsBuilder.listExamplesSettings().build(); + getExampleSettings = settingsBuilder.getExampleSettings().build(); + createExampleSettings = settingsBuilder.createExampleSettings().build(); + updateExampleSettings = settingsBuilder.updateExampleSettings().build(); + deleteExampleSettings = settingsBuilder.deleteExampleSettings().build(); + listToolsSettings = settingsBuilder.listToolsSettings().build(); + getToolSettings = settingsBuilder.getToolSettings().build(); + listConversationsSettings = settingsBuilder.listConversationsSettings().build(); + getConversationSettings = settingsBuilder.getConversationSettings().build(); + deleteConversationSettings = settingsBuilder.deleteConversationSettings().build(); + batchDeleteConversationsSettings = settingsBuilder.batchDeleteConversationsSettings().build(); + batchDeleteConversationsOperationSettings = + settingsBuilder.batchDeleteConversationsOperationSettings().build(); + createToolSettings = settingsBuilder.createToolSettings().build(); + updateToolSettings = settingsBuilder.updateToolSettings().build(); + deleteToolSettings = settingsBuilder.deleteToolSettings().build(); + listGuardrailsSettings = settingsBuilder.listGuardrailsSettings().build(); + getGuardrailSettings = settingsBuilder.getGuardrailSettings().build(); + createGuardrailSettings = settingsBuilder.createGuardrailSettings().build(); + updateGuardrailSettings = settingsBuilder.updateGuardrailSettings().build(); + deleteGuardrailSettings = settingsBuilder.deleteGuardrailSettings().build(); + listDeploymentsSettings = settingsBuilder.listDeploymentsSettings().build(); + getDeploymentSettings = settingsBuilder.getDeploymentSettings().build(); + createDeploymentSettings = settingsBuilder.createDeploymentSettings().build(); + updateDeploymentSettings = settingsBuilder.updateDeploymentSettings().build(); + deleteDeploymentSettings = settingsBuilder.deleteDeploymentSettings().build(); + listToolsetsSettings = settingsBuilder.listToolsetsSettings().build(); + getToolsetSettings = settingsBuilder.getToolsetSettings().build(); + createToolsetSettings = settingsBuilder.createToolsetSettings().build(); + updateToolsetSettings = settingsBuilder.updateToolsetSettings().build(); + deleteToolsetSettings = settingsBuilder.deleteToolsetSettings().build(); + listAppVersionsSettings = settingsBuilder.listAppVersionsSettings().build(); + getAppVersionSettings = settingsBuilder.getAppVersionSettings().build(); + createAppVersionSettings = settingsBuilder.createAppVersionSettings().build(); + deleteAppVersionSettings = settingsBuilder.deleteAppVersionSettings().build(); + restoreAppVersionSettings = settingsBuilder.restoreAppVersionSettings().build(); + restoreAppVersionOperationSettings = + settingsBuilder.restoreAppVersionOperationSettings().build(); + listChangelogsSettings = settingsBuilder.listChangelogsSettings().build(); + getChangelogSettings = settingsBuilder.getChangelogSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + } + + /** Builder for AgentServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListAppsRequest, ListAppsResponse, ListAppsPagedResponse> + listAppsSettings; + private final UnaryCallSettings.Builder getAppSettings; + private final UnaryCallSettings.Builder createAppSettings; + private final OperationCallSettings.Builder + createAppOperationSettings; + private final UnaryCallSettings.Builder updateAppSettings; + private final UnaryCallSettings.Builder deleteAppSettings; + private final OperationCallSettings.Builder + deleteAppOperationSettings; + private final UnaryCallSettings.Builder exportAppSettings; + private final OperationCallSettings.Builder< + ExportAppRequest, ExportAppResponse, OperationMetadata> + exportAppOperationSettings; + private final UnaryCallSettings.Builder importAppSettings; + private final OperationCallSettings.Builder< + ImportAppRequest, ImportAppResponse, OperationMetadata> + importAppOperationSettings; + private final PagedCallSettings.Builder< + ListAgentsRequest, ListAgentsResponse, ListAgentsPagedResponse> + listAgentsSettings; + private final UnaryCallSettings.Builder getAgentSettings; + private final UnaryCallSettings.Builder createAgentSettings; + private final UnaryCallSettings.Builder updateAgentSettings; + private final UnaryCallSettings.Builder deleteAgentSettings; + private final PagedCallSettings.Builder< + ListExamplesRequest, ListExamplesResponse, ListExamplesPagedResponse> + listExamplesSettings; + private final UnaryCallSettings.Builder getExampleSettings; + private final UnaryCallSettings.Builder createExampleSettings; + private final UnaryCallSettings.Builder updateExampleSettings; + private final UnaryCallSettings.Builder deleteExampleSettings; + private final PagedCallSettings.Builder< + ListToolsRequest, ListToolsResponse, ListToolsPagedResponse> + listToolsSettings; + private final UnaryCallSettings.Builder getToolSettings; + private final PagedCallSettings.Builder< + ListConversationsRequest, ListConversationsResponse, ListConversationsPagedResponse> + listConversationsSettings; + private final UnaryCallSettings.Builder + getConversationSettings; + private final UnaryCallSettings.Builder + deleteConversationSettings; + private final UnaryCallSettings.Builder + batchDeleteConversationsSettings; + private final OperationCallSettings.Builder< + BatchDeleteConversationsRequest, BatchDeleteConversationsResponse, OperationMetadata> + batchDeleteConversationsOperationSettings; + private final UnaryCallSettings.Builder createToolSettings; + private final UnaryCallSettings.Builder updateToolSettings; + private final UnaryCallSettings.Builder deleteToolSettings; + private final PagedCallSettings.Builder< + ListGuardrailsRequest, ListGuardrailsResponse, ListGuardrailsPagedResponse> + listGuardrailsSettings; + private final UnaryCallSettings.Builder getGuardrailSettings; + private final UnaryCallSettings.Builder + createGuardrailSettings; + private final UnaryCallSettings.Builder + updateGuardrailSettings; + private final UnaryCallSettings.Builder deleteGuardrailSettings; + private final PagedCallSettings.Builder< + ListDeploymentsRequest, ListDeploymentsResponse, ListDeploymentsPagedResponse> + listDeploymentsSettings; + private final UnaryCallSettings.Builder getDeploymentSettings; + private final UnaryCallSettings.Builder + createDeploymentSettings; + private final UnaryCallSettings.Builder + updateDeploymentSettings; + private final UnaryCallSettings.Builder + deleteDeploymentSettings; + private final PagedCallSettings.Builder< + ListToolsetsRequest, ListToolsetsResponse, ListToolsetsPagedResponse> + listToolsetsSettings; + private final UnaryCallSettings.Builder getToolsetSettings; + private final UnaryCallSettings.Builder createToolsetSettings; + private final UnaryCallSettings.Builder updateToolsetSettings; + private final UnaryCallSettings.Builder deleteToolsetSettings; + private final PagedCallSettings.Builder< + ListAppVersionsRequest, ListAppVersionsResponse, ListAppVersionsPagedResponse> + listAppVersionsSettings; + private final UnaryCallSettings.Builder getAppVersionSettings; + private final UnaryCallSettings.Builder + createAppVersionSettings; + private final UnaryCallSettings.Builder + deleteAppVersionSettings; + private final UnaryCallSettings.Builder + restoreAppVersionSettings; + private final OperationCallSettings.Builder< + RestoreAppVersionRequest, RestoreAppVersionResponse, OperationMetadata> + restoreAppVersionOperationSettings; + private final PagedCallSettings.Builder< + ListChangelogsRequest, ListChangelogsResponse, ListChangelogsPagedResponse> + listChangelogsSettings; + private final UnaryCallSettings.Builder getChangelogSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(60000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setTotalTimeoutDuration(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + listAppsSettings = PagedCallSettings.newBuilder(LIST_APPS_PAGE_STR_FACT); + getAppSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createAppSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createAppOperationSettings = OperationCallSettings.newBuilder(); + updateAppSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteAppSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteAppOperationSettings = OperationCallSettings.newBuilder(); + exportAppSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + exportAppOperationSettings = OperationCallSettings.newBuilder(); + importAppSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + importAppOperationSettings = OperationCallSettings.newBuilder(); + listAgentsSettings = PagedCallSettings.newBuilder(LIST_AGENTS_PAGE_STR_FACT); + getAgentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createAgentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateAgentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteAgentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listExamplesSettings = PagedCallSettings.newBuilder(LIST_EXAMPLES_PAGE_STR_FACT); + getExampleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createExampleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateExampleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteExampleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listToolsSettings = PagedCallSettings.newBuilder(LIST_TOOLS_PAGE_STR_FACT); + getToolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listConversationsSettings = PagedCallSettings.newBuilder(LIST_CONVERSATIONS_PAGE_STR_FACT); + getConversationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteConversationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchDeleteConversationsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchDeleteConversationsOperationSettings = OperationCallSettings.newBuilder(); + createToolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateToolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteToolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listGuardrailsSettings = PagedCallSettings.newBuilder(LIST_GUARDRAILS_PAGE_STR_FACT); + getGuardrailSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createGuardrailSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateGuardrailSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteGuardrailSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listDeploymentsSettings = PagedCallSettings.newBuilder(LIST_DEPLOYMENTS_PAGE_STR_FACT); + getDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listToolsetsSettings = PagedCallSettings.newBuilder(LIST_TOOLSETS_PAGE_STR_FACT); + getToolsetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createToolsetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateToolsetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteToolsetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listAppVersionsSettings = PagedCallSettings.newBuilder(LIST_APP_VERSIONS_PAGE_STR_FACT); + getAppVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createAppVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteAppVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + restoreAppVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + restoreAppVersionOperationSettings = OperationCallSettings.newBuilder(); + listChangelogsSettings = PagedCallSettings.newBuilder(LIST_CHANGELOGS_PAGE_STR_FACT); + getChangelogSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listAppsSettings, + getAppSettings, + createAppSettings, + updateAppSettings, + deleteAppSettings, + exportAppSettings, + importAppSettings, + listAgentsSettings, + getAgentSettings, + createAgentSettings, + updateAgentSettings, + deleteAgentSettings, + listExamplesSettings, + getExampleSettings, + createExampleSettings, + updateExampleSettings, + deleteExampleSettings, + listToolsSettings, + getToolSettings, + listConversationsSettings, + getConversationSettings, + deleteConversationSettings, + batchDeleteConversationsSettings, + createToolSettings, + updateToolSettings, + deleteToolSettings, + listGuardrailsSettings, + getGuardrailSettings, + createGuardrailSettings, + updateGuardrailSettings, + deleteGuardrailSettings, + listDeploymentsSettings, + getDeploymentSettings, + createDeploymentSettings, + updateDeploymentSettings, + deleteDeploymentSettings, + listToolsetsSettings, + getToolsetSettings, + createToolsetSettings, + updateToolsetSettings, + deleteToolsetSettings, + listAppVersionsSettings, + getAppVersionSettings, + createAppVersionSettings, + deleteAppVersionSettings, + restoreAppVersionSettings, + listChangelogsSettings, + getChangelogSettings, + listLocationsSettings, + getLocationSettings); + initDefaults(this); + } + + protected Builder(AgentServiceStubSettings settings) { + super(settings); + + listAppsSettings = settings.listAppsSettings.toBuilder(); + getAppSettings = settings.getAppSettings.toBuilder(); + createAppSettings = settings.createAppSettings.toBuilder(); + createAppOperationSettings = settings.createAppOperationSettings.toBuilder(); + updateAppSettings = settings.updateAppSettings.toBuilder(); + deleteAppSettings = settings.deleteAppSettings.toBuilder(); + deleteAppOperationSettings = settings.deleteAppOperationSettings.toBuilder(); + exportAppSettings = settings.exportAppSettings.toBuilder(); + exportAppOperationSettings = settings.exportAppOperationSettings.toBuilder(); + importAppSettings = settings.importAppSettings.toBuilder(); + importAppOperationSettings = settings.importAppOperationSettings.toBuilder(); + listAgentsSettings = settings.listAgentsSettings.toBuilder(); + getAgentSettings = settings.getAgentSettings.toBuilder(); + createAgentSettings = settings.createAgentSettings.toBuilder(); + updateAgentSettings = settings.updateAgentSettings.toBuilder(); + deleteAgentSettings = settings.deleteAgentSettings.toBuilder(); + listExamplesSettings = settings.listExamplesSettings.toBuilder(); + getExampleSettings = settings.getExampleSettings.toBuilder(); + createExampleSettings = settings.createExampleSettings.toBuilder(); + updateExampleSettings = settings.updateExampleSettings.toBuilder(); + deleteExampleSettings = settings.deleteExampleSettings.toBuilder(); + listToolsSettings = settings.listToolsSettings.toBuilder(); + getToolSettings = settings.getToolSettings.toBuilder(); + listConversationsSettings = settings.listConversationsSettings.toBuilder(); + getConversationSettings = settings.getConversationSettings.toBuilder(); + deleteConversationSettings = settings.deleteConversationSettings.toBuilder(); + batchDeleteConversationsSettings = settings.batchDeleteConversationsSettings.toBuilder(); + batchDeleteConversationsOperationSettings = + settings.batchDeleteConversationsOperationSettings.toBuilder(); + createToolSettings = settings.createToolSettings.toBuilder(); + updateToolSettings = settings.updateToolSettings.toBuilder(); + deleteToolSettings = settings.deleteToolSettings.toBuilder(); + listGuardrailsSettings = settings.listGuardrailsSettings.toBuilder(); + getGuardrailSettings = settings.getGuardrailSettings.toBuilder(); + createGuardrailSettings = settings.createGuardrailSettings.toBuilder(); + updateGuardrailSettings = settings.updateGuardrailSettings.toBuilder(); + deleteGuardrailSettings = settings.deleteGuardrailSettings.toBuilder(); + listDeploymentsSettings = settings.listDeploymentsSettings.toBuilder(); + getDeploymentSettings = settings.getDeploymentSettings.toBuilder(); + createDeploymentSettings = settings.createDeploymentSettings.toBuilder(); + updateDeploymentSettings = settings.updateDeploymentSettings.toBuilder(); + deleteDeploymentSettings = settings.deleteDeploymentSettings.toBuilder(); + listToolsetsSettings = settings.listToolsetsSettings.toBuilder(); + getToolsetSettings = settings.getToolsetSettings.toBuilder(); + createToolsetSettings = settings.createToolsetSettings.toBuilder(); + updateToolsetSettings = settings.updateToolsetSettings.toBuilder(); + deleteToolsetSettings = settings.deleteToolsetSettings.toBuilder(); + listAppVersionsSettings = settings.listAppVersionsSettings.toBuilder(); + getAppVersionSettings = settings.getAppVersionSettings.toBuilder(); + createAppVersionSettings = settings.createAppVersionSettings.toBuilder(); + deleteAppVersionSettings = settings.deleteAppVersionSettings.toBuilder(); + restoreAppVersionSettings = settings.restoreAppVersionSettings.toBuilder(); + restoreAppVersionOperationSettings = settings.restoreAppVersionOperationSettings.toBuilder(); + listChangelogsSettings = settings.listChangelogsSettings.toBuilder(); + getChangelogSettings = settings.getChangelogSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listAppsSettings, + getAppSettings, + createAppSettings, + updateAppSettings, + deleteAppSettings, + exportAppSettings, + importAppSettings, + listAgentsSettings, + getAgentSettings, + createAgentSettings, + updateAgentSettings, + deleteAgentSettings, + listExamplesSettings, + getExampleSettings, + createExampleSettings, + updateExampleSettings, + deleteExampleSettings, + listToolsSettings, + getToolSettings, + listConversationsSettings, + getConversationSettings, + deleteConversationSettings, + batchDeleteConversationsSettings, + createToolSettings, + updateToolSettings, + deleteToolSettings, + listGuardrailsSettings, + getGuardrailSettings, + createGuardrailSettings, + updateGuardrailSettings, + deleteGuardrailSettings, + listDeploymentsSettings, + getDeploymentSettings, + createDeploymentSettings, + updateDeploymentSettings, + deleteDeploymentSettings, + listToolsetsSettings, + getToolsetSettings, + createToolsetSettings, + updateToolsetSettings, + deleteToolsetSettings, + listAppVersionsSettings, + getAppVersionSettings, + createAppVersionSettings, + deleteAppVersionSettings, + restoreAppVersionSettings, + listChangelogsSettings, + getChangelogSettings, + listLocationsSettings, + getLocationSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .listAppsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getAppSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createAppSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateAppSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteAppSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .exportAppSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .importAppSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listAgentsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getAgentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createAgentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateAgentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteAgentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listExamplesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getExampleSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createExampleSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateExampleSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteExampleSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listToolsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getToolSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listConversationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getConversationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteConversationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .batchDeleteConversationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createToolSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateToolSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteToolSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listGuardrailsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getGuardrailSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createGuardrailSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateGuardrailSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteGuardrailSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listDeploymentsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getDeploymentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createDeploymentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateDeploymentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteDeploymentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listToolsetsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getToolsetSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createToolsetSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateToolsetSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteToolsetSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listAppVersionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getAppVersionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createAppVersionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteAppVersionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .restoreAppVersionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listChangelogsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getChangelogSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createAppOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer(ProtoOperationTransformers.ResponseTransformer.create(App.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteAppOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .exportAppOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(ExportAppResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .importAppOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(ImportAppResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .batchDeleteConversationsOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + BatchDeleteConversationsResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .restoreAppVersionOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + RestoreAppVersionResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

      Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to listApps. */ + public PagedCallSettings.Builder + listAppsSettings() { + return listAppsSettings; + } + + /** Returns the builder for the settings used for calls to getApp. */ + public UnaryCallSettings.Builder getAppSettings() { + return getAppSettings; + } + + /** Returns the builder for the settings used for calls to createApp. */ + public UnaryCallSettings.Builder createAppSettings() { + return createAppSettings; + } + + /** Returns the builder for the settings used for calls to createApp. */ + public OperationCallSettings.Builder + createAppOperationSettings() { + return createAppOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateApp. */ + public UnaryCallSettings.Builder updateAppSettings() { + return updateAppSettings; + } + + /** Returns the builder for the settings used for calls to deleteApp. */ + public UnaryCallSettings.Builder deleteAppSettings() { + return deleteAppSettings; + } + + /** Returns the builder for the settings used for calls to deleteApp. */ + public OperationCallSettings.Builder + deleteAppOperationSettings() { + return deleteAppOperationSettings; + } + + /** Returns the builder for the settings used for calls to exportApp. */ + public UnaryCallSettings.Builder exportAppSettings() { + return exportAppSettings; + } + + /** Returns the builder for the settings used for calls to exportApp. */ + public OperationCallSettings.Builder + exportAppOperationSettings() { + return exportAppOperationSettings; + } + + /** Returns the builder for the settings used for calls to importApp. */ + public UnaryCallSettings.Builder importAppSettings() { + return importAppSettings; + } + + /** Returns the builder for the settings used for calls to importApp. */ + public OperationCallSettings.Builder + importAppOperationSettings() { + return importAppOperationSettings; + } + + /** Returns the builder for the settings used for calls to listAgents. */ + public PagedCallSettings.Builder + listAgentsSettings() { + return listAgentsSettings; + } + + /** Returns the builder for the settings used for calls to getAgent. */ + public UnaryCallSettings.Builder getAgentSettings() { + return getAgentSettings; + } + + /** Returns the builder for the settings used for calls to createAgent. */ + public UnaryCallSettings.Builder createAgentSettings() { + return createAgentSettings; + } + + /** Returns the builder for the settings used for calls to updateAgent. */ + public UnaryCallSettings.Builder updateAgentSettings() { + return updateAgentSettings; + } + + /** Returns the builder for the settings used for calls to deleteAgent. */ + public UnaryCallSettings.Builder deleteAgentSettings() { + return deleteAgentSettings; + } + + /** Returns the builder for the settings used for calls to listExamples. */ + public PagedCallSettings.Builder< + ListExamplesRequest, ListExamplesResponse, ListExamplesPagedResponse> + listExamplesSettings() { + return listExamplesSettings; + } + + /** Returns the builder for the settings used for calls to getExample. */ + public UnaryCallSettings.Builder getExampleSettings() { + return getExampleSettings; + } + + /** Returns the builder for the settings used for calls to createExample. */ + public UnaryCallSettings.Builder createExampleSettings() { + return createExampleSettings; + } + + /** Returns the builder for the settings used for calls to updateExample. */ + public UnaryCallSettings.Builder updateExampleSettings() { + return updateExampleSettings; + } + + /** Returns the builder for the settings used for calls to deleteExample. */ + public UnaryCallSettings.Builder deleteExampleSettings() { + return deleteExampleSettings; + } + + /** Returns the builder for the settings used for calls to listTools. */ + public PagedCallSettings.Builder + listToolsSettings() { + return listToolsSettings; + } + + /** Returns the builder for the settings used for calls to getTool. */ + public UnaryCallSettings.Builder getToolSettings() { + return getToolSettings; + } + + /** Returns the builder for the settings used for calls to listConversations. */ + public PagedCallSettings.Builder< + ListConversationsRequest, ListConversationsResponse, ListConversationsPagedResponse> + listConversationsSettings() { + return listConversationsSettings; + } + + /** Returns the builder for the settings used for calls to getConversation. */ + public UnaryCallSettings.Builder + getConversationSettings() { + return getConversationSettings; + } + + /** Returns the builder for the settings used for calls to deleteConversation. */ + public UnaryCallSettings.Builder + deleteConversationSettings() { + return deleteConversationSettings; + } + + /** Returns the builder for the settings used for calls to batchDeleteConversations. */ + public UnaryCallSettings.Builder + batchDeleteConversationsSettings() { + return batchDeleteConversationsSettings; + } + + /** Returns the builder for the settings used for calls to batchDeleteConversations. */ + public OperationCallSettings.Builder< + BatchDeleteConversationsRequest, BatchDeleteConversationsResponse, OperationMetadata> + batchDeleteConversationsOperationSettings() { + return batchDeleteConversationsOperationSettings; + } + + /** Returns the builder for the settings used for calls to createTool. */ + public UnaryCallSettings.Builder createToolSettings() { + return createToolSettings; + } + + /** Returns the builder for the settings used for calls to updateTool. */ + public UnaryCallSettings.Builder updateToolSettings() { + return updateToolSettings; + } + + /** Returns the builder for the settings used for calls to deleteTool. */ + public UnaryCallSettings.Builder deleteToolSettings() { + return deleteToolSettings; + } + + /** Returns the builder for the settings used for calls to listGuardrails. */ + public PagedCallSettings.Builder< + ListGuardrailsRequest, ListGuardrailsResponse, ListGuardrailsPagedResponse> + listGuardrailsSettings() { + return listGuardrailsSettings; + } + + /** Returns the builder for the settings used for calls to getGuardrail. */ + public UnaryCallSettings.Builder getGuardrailSettings() { + return getGuardrailSettings; + } + + /** Returns the builder for the settings used for calls to createGuardrail. */ + public UnaryCallSettings.Builder createGuardrailSettings() { + return createGuardrailSettings; + } + + /** Returns the builder for the settings used for calls to updateGuardrail. */ + public UnaryCallSettings.Builder updateGuardrailSettings() { + return updateGuardrailSettings; + } + + /** Returns the builder for the settings used for calls to deleteGuardrail. */ + public UnaryCallSettings.Builder deleteGuardrailSettings() { + return deleteGuardrailSettings; + } + + /** Returns the builder for the settings used for calls to listDeployments. */ + public PagedCallSettings.Builder< + ListDeploymentsRequest, ListDeploymentsResponse, ListDeploymentsPagedResponse> + listDeploymentsSettings() { + return listDeploymentsSettings; + } + + /** Returns the builder for the settings used for calls to getDeployment. */ + public UnaryCallSettings.Builder getDeploymentSettings() { + return getDeploymentSettings; + } + + /** Returns the builder for the settings used for calls to createDeployment. */ + public UnaryCallSettings.Builder + createDeploymentSettings() { + return createDeploymentSettings; + } + + /** Returns the builder for the settings used for calls to updateDeployment. */ + public UnaryCallSettings.Builder + updateDeploymentSettings() { + return updateDeploymentSettings; + } + + /** Returns the builder for the settings used for calls to deleteDeployment. */ + public UnaryCallSettings.Builder deleteDeploymentSettings() { + return deleteDeploymentSettings; + } + + /** Returns the builder for the settings used for calls to listToolsets. */ + public PagedCallSettings.Builder< + ListToolsetsRequest, ListToolsetsResponse, ListToolsetsPagedResponse> + listToolsetsSettings() { + return listToolsetsSettings; + } + + /** Returns the builder for the settings used for calls to getToolset. */ + public UnaryCallSettings.Builder getToolsetSettings() { + return getToolsetSettings; + } + + /** Returns the builder for the settings used for calls to createToolset. */ + public UnaryCallSettings.Builder createToolsetSettings() { + return createToolsetSettings; + } + + /** Returns the builder for the settings used for calls to updateToolset. */ + public UnaryCallSettings.Builder updateToolsetSettings() { + return updateToolsetSettings; + } + + /** Returns the builder for the settings used for calls to deleteToolset. */ + public UnaryCallSettings.Builder deleteToolsetSettings() { + return deleteToolsetSettings; + } + + /** Returns the builder for the settings used for calls to listAppVersions. */ + public PagedCallSettings.Builder< + ListAppVersionsRequest, ListAppVersionsResponse, ListAppVersionsPagedResponse> + listAppVersionsSettings() { + return listAppVersionsSettings; + } + + /** Returns the builder for the settings used for calls to getAppVersion. */ + public UnaryCallSettings.Builder getAppVersionSettings() { + return getAppVersionSettings; + } + + /** Returns the builder for the settings used for calls to createAppVersion. */ + public UnaryCallSettings.Builder + createAppVersionSettings() { + return createAppVersionSettings; + } + + /** Returns the builder for the settings used for calls to deleteAppVersion. */ + public UnaryCallSettings.Builder deleteAppVersionSettings() { + return deleteAppVersionSettings; + } + + /** Returns the builder for the settings used for calls to restoreAppVersion. */ + public UnaryCallSettings.Builder + restoreAppVersionSettings() { + return restoreAppVersionSettings; + } + + /** Returns the builder for the settings used for calls to restoreAppVersion. */ + public OperationCallSettings.Builder< + RestoreAppVersionRequest, RestoreAppVersionResponse, OperationMetadata> + restoreAppVersionOperationSettings() { + return restoreAppVersionOperationSettings; + } + + /** Returns the builder for the settings used for calls to listChangelogs. */ + public PagedCallSettings.Builder< + ListChangelogsRequest, ListChangelogsResponse, ListChangelogsPagedResponse> + listChangelogsSettings() { + return listChangelogsSettings; + } + + /** Returns the builder for the settings used for calls to getChangelog. */ + public UnaryCallSettings.Builder getChangelogSettings() { + return getChangelogSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + @Override + public AgentServiceStubSettings build() throws IOException { + return new AgentServiceStubSettings(this); + } + } +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcAgentServiceCallableFactory.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcAgentServiceCallableFactory.java new file mode 100644 index 000000000000..ab8744ed6c51 --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcAgentServiceCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the AgentService service API. + * + *

      This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcAgentServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcAgentServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcAgentServiceStub.java new file mode 100644 index 000000000000..e88f2c7c651f --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcAgentServiceStub.java @@ -0,0 +1,1905 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.stub; + +import static com.google.cloud.ces.v1.AgentServiceClient.ListAgentsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListAppVersionsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListAppsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListChangelogsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListConversationsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListDeploymentsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListExamplesPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListGuardrailsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListToolsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListToolsetsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.ces.v1.Agent; +import com.google.cloud.ces.v1.App; +import com.google.cloud.ces.v1.AppVersion; +import com.google.cloud.ces.v1.BatchDeleteConversationsRequest; +import com.google.cloud.ces.v1.BatchDeleteConversationsResponse; +import com.google.cloud.ces.v1.Changelog; +import com.google.cloud.ces.v1.Conversation; +import com.google.cloud.ces.v1.CreateAgentRequest; +import com.google.cloud.ces.v1.CreateAppRequest; +import com.google.cloud.ces.v1.CreateAppVersionRequest; +import com.google.cloud.ces.v1.CreateDeploymentRequest; +import com.google.cloud.ces.v1.CreateExampleRequest; +import com.google.cloud.ces.v1.CreateGuardrailRequest; +import com.google.cloud.ces.v1.CreateToolRequest; +import com.google.cloud.ces.v1.CreateToolsetRequest; +import com.google.cloud.ces.v1.DeleteAgentRequest; +import com.google.cloud.ces.v1.DeleteAppRequest; +import com.google.cloud.ces.v1.DeleteAppVersionRequest; +import com.google.cloud.ces.v1.DeleteConversationRequest; +import com.google.cloud.ces.v1.DeleteDeploymentRequest; +import com.google.cloud.ces.v1.DeleteExampleRequest; +import com.google.cloud.ces.v1.DeleteGuardrailRequest; +import com.google.cloud.ces.v1.DeleteToolRequest; +import com.google.cloud.ces.v1.DeleteToolsetRequest; +import com.google.cloud.ces.v1.Deployment; +import com.google.cloud.ces.v1.Example; +import com.google.cloud.ces.v1.ExportAppRequest; +import com.google.cloud.ces.v1.ExportAppResponse; +import com.google.cloud.ces.v1.GetAgentRequest; +import com.google.cloud.ces.v1.GetAppRequest; +import com.google.cloud.ces.v1.GetAppVersionRequest; +import com.google.cloud.ces.v1.GetChangelogRequest; +import com.google.cloud.ces.v1.GetConversationRequest; +import com.google.cloud.ces.v1.GetDeploymentRequest; +import com.google.cloud.ces.v1.GetExampleRequest; +import com.google.cloud.ces.v1.GetGuardrailRequest; +import com.google.cloud.ces.v1.GetToolRequest; +import com.google.cloud.ces.v1.GetToolsetRequest; +import com.google.cloud.ces.v1.Guardrail; +import com.google.cloud.ces.v1.ImportAppRequest; +import com.google.cloud.ces.v1.ImportAppResponse; +import com.google.cloud.ces.v1.ListAgentsRequest; +import com.google.cloud.ces.v1.ListAgentsResponse; +import com.google.cloud.ces.v1.ListAppVersionsRequest; +import com.google.cloud.ces.v1.ListAppVersionsResponse; +import com.google.cloud.ces.v1.ListAppsRequest; +import com.google.cloud.ces.v1.ListAppsResponse; +import com.google.cloud.ces.v1.ListChangelogsRequest; +import com.google.cloud.ces.v1.ListChangelogsResponse; +import com.google.cloud.ces.v1.ListConversationsRequest; +import com.google.cloud.ces.v1.ListConversationsResponse; +import com.google.cloud.ces.v1.ListDeploymentsRequest; +import com.google.cloud.ces.v1.ListDeploymentsResponse; +import com.google.cloud.ces.v1.ListExamplesRequest; +import com.google.cloud.ces.v1.ListExamplesResponse; +import com.google.cloud.ces.v1.ListGuardrailsRequest; +import com.google.cloud.ces.v1.ListGuardrailsResponse; +import com.google.cloud.ces.v1.ListToolsRequest; +import com.google.cloud.ces.v1.ListToolsResponse; +import com.google.cloud.ces.v1.ListToolsetsRequest; +import com.google.cloud.ces.v1.ListToolsetsResponse; +import com.google.cloud.ces.v1.OperationMetadata; +import com.google.cloud.ces.v1.RestoreAppVersionRequest; +import com.google.cloud.ces.v1.RestoreAppVersionResponse; +import com.google.cloud.ces.v1.Tool; +import com.google.cloud.ces.v1.Toolset; +import com.google.cloud.ces.v1.UpdateAgentRequest; +import com.google.cloud.ces.v1.UpdateAppRequest; +import com.google.cloud.ces.v1.UpdateDeploymentRequest; +import com.google.cloud.ces.v1.UpdateExampleRequest; +import com.google.cloud.ces.v1.UpdateGuardrailRequest; +import com.google.cloud.ces.v1.UpdateToolRequest; +import com.google.cloud.ces.v1.UpdateToolsetRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the AgentService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcAgentServiceStub extends AgentServiceStub { + private static final MethodDescriptor + listAppsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/ListApps") + .setRequestMarshaller(ProtoUtils.marshaller(ListAppsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListAppsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getAppMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/GetApp") + .setRequestMarshaller(ProtoUtils.marshaller(GetAppRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(App.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor createAppMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/CreateApp") + .setRequestMarshaller(ProtoUtils.marshaller(CreateAppRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor updateAppMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/UpdateApp") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateAppRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(App.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor deleteAppMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/DeleteApp") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteAppRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor exportAppMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/ExportApp") + .setRequestMarshaller(ProtoUtils.marshaller(ExportAppRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor importAppMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/ImportApp") + .setRequestMarshaller(ProtoUtils.marshaller(ImportAppRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listAgentsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/ListAgents") + .setRequestMarshaller(ProtoUtils.marshaller(ListAgentsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListAgentsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getAgentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/GetAgent") + .setRequestMarshaller(ProtoUtils.marshaller(GetAgentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Agent.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor createAgentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/CreateAgent") + .setRequestMarshaller(ProtoUtils.marshaller(CreateAgentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Agent.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor updateAgentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/UpdateAgent") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateAgentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Agent.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor deleteAgentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/DeleteAgent") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteAgentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listExamplesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/ListExamples") + .setRequestMarshaller(ProtoUtils.marshaller(ListExamplesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListExamplesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getExampleMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/GetExample") + .setRequestMarshaller(ProtoUtils.marshaller(GetExampleRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Example.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createExampleMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/CreateExample") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateExampleRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Example.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateExampleMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/UpdateExample") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateExampleRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Example.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor deleteExampleMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/DeleteExample") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteExampleRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listToolsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/ListTools") + .setRequestMarshaller(ProtoUtils.marshaller(ListToolsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListToolsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getToolMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/GetTool") + .setRequestMarshaller(ProtoUtils.marshaller(GetToolRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Tool.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listConversationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/ListConversations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListConversationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListConversationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getConversationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/GetConversation") + .setRequestMarshaller( + ProtoUtils.marshaller(GetConversationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Conversation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteConversationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/DeleteConversation") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteConversationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + batchDeleteConversationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/BatchDeleteConversations") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchDeleteConversationsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor createToolMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/CreateTool") + .setRequestMarshaller(ProtoUtils.marshaller(CreateToolRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Tool.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor updateToolMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/UpdateTool") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateToolRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Tool.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor deleteToolMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/DeleteTool") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteToolRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listGuardrailsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/ListGuardrails") + .setRequestMarshaller( + ProtoUtils.marshaller(ListGuardrailsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListGuardrailsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getGuardrailMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/GetGuardrail") + .setRequestMarshaller(ProtoUtils.marshaller(GetGuardrailRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Guardrail.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createGuardrailMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/CreateGuardrail") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateGuardrailRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Guardrail.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateGuardrailMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/UpdateGuardrail") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateGuardrailRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Guardrail.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteGuardrailMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/DeleteGuardrail") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteGuardrailRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listDeploymentsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/ListDeployments") + .setRequestMarshaller( + ProtoUtils.marshaller(ListDeploymentsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListDeploymentsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getDeploymentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/GetDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller(GetDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Deployment.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createDeploymentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/CreateDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Deployment.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateDeploymentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/UpdateDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Deployment.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteDeploymentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/DeleteDeployment") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listToolsetsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/ListToolsets") + .setRequestMarshaller(ProtoUtils.marshaller(ListToolsetsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListToolsetsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getToolsetMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/GetToolset") + .setRequestMarshaller(ProtoUtils.marshaller(GetToolsetRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Toolset.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createToolsetMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/CreateToolset") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateToolsetRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Toolset.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateToolsetMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/UpdateToolset") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateToolsetRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Toolset.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor deleteToolsetMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/DeleteToolset") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteToolsetRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listAppVersionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/ListAppVersions") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAppVersionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAppVersionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getAppVersionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/GetAppVersion") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAppVersionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AppVersion.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createAppVersionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/CreateAppVersion") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateAppVersionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AppVersion.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteAppVersionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/DeleteAppVersion") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteAppVersionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + restoreAppVersionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/RestoreAppVersion") + .setRequestMarshaller( + ProtoUtils.marshaller(RestoreAppVersionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listChangelogsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/ListChangelogs") + .setRequestMarshaller( + ProtoUtils.marshaller(ListChangelogsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListChangelogsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getChangelogMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.AgentService/GetChangelog") + .setRequestMarshaller(ProtoUtils.marshaller(GetChangelogRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Changelog.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable listAppsCallable; + private final UnaryCallable listAppsPagedCallable; + private final UnaryCallable getAppCallable; + private final UnaryCallable createAppCallable; + private final OperationCallable + createAppOperationCallable; + private final UnaryCallable updateAppCallable; + private final UnaryCallable deleteAppCallable; + private final OperationCallable + deleteAppOperationCallable; + private final UnaryCallable exportAppCallable; + private final OperationCallable + exportAppOperationCallable; + private final UnaryCallable importAppCallable; + private final OperationCallable + importAppOperationCallable; + private final UnaryCallable listAgentsCallable; + private final UnaryCallable listAgentsPagedCallable; + private final UnaryCallable getAgentCallable; + private final UnaryCallable createAgentCallable; + private final UnaryCallable updateAgentCallable; + private final UnaryCallable deleteAgentCallable; + private final UnaryCallable listExamplesCallable; + private final UnaryCallable + listExamplesPagedCallable; + private final UnaryCallable getExampleCallable; + private final UnaryCallable createExampleCallable; + private final UnaryCallable updateExampleCallable; + private final UnaryCallable deleteExampleCallable; + private final UnaryCallable listToolsCallable; + private final UnaryCallable listToolsPagedCallable; + private final UnaryCallable getToolCallable; + private final UnaryCallable + listConversationsCallable; + private final UnaryCallable + listConversationsPagedCallable; + private final UnaryCallable getConversationCallable; + private final UnaryCallable deleteConversationCallable; + private final UnaryCallable + batchDeleteConversationsCallable; + private final OperationCallable< + BatchDeleteConversationsRequest, BatchDeleteConversationsResponse, OperationMetadata> + batchDeleteConversationsOperationCallable; + private final UnaryCallable createToolCallable; + private final UnaryCallable updateToolCallable; + private final UnaryCallable deleteToolCallable; + private final UnaryCallable listGuardrailsCallable; + private final UnaryCallable + listGuardrailsPagedCallable; + private final UnaryCallable getGuardrailCallable; + private final UnaryCallable createGuardrailCallable; + private final UnaryCallable updateGuardrailCallable; + private final UnaryCallable deleteGuardrailCallable; + private final UnaryCallable + listDeploymentsCallable; + private final UnaryCallable + listDeploymentsPagedCallable; + private final UnaryCallable getDeploymentCallable; + private final UnaryCallable createDeploymentCallable; + private final UnaryCallable updateDeploymentCallable; + private final UnaryCallable deleteDeploymentCallable; + private final UnaryCallable listToolsetsCallable; + private final UnaryCallable + listToolsetsPagedCallable; + private final UnaryCallable getToolsetCallable; + private final UnaryCallable createToolsetCallable; + private final UnaryCallable updateToolsetCallable; + private final UnaryCallable deleteToolsetCallable; + private final UnaryCallable + listAppVersionsCallable; + private final UnaryCallable + listAppVersionsPagedCallable; + private final UnaryCallable getAppVersionCallable; + private final UnaryCallable createAppVersionCallable; + private final UnaryCallable deleteAppVersionCallable; + private final UnaryCallable restoreAppVersionCallable; + private final OperationCallable< + RestoreAppVersionRequest, RestoreAppVersionResponse, OperationMetadata> + restoreAppVersionOperationCallable; + private final UnaryCallable listChangelogsCallable; + private final UnaryCallable + listChangelogsPagedCallable; + private final UnaryCallable getChangelogCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcAgentServiceStub create(AgentServiceStubSettings settings) + throws IOException { + return new GrpcAgentServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcAgentServiceStub create(ClientContext clientContext) throws IOException { + return new GrpcAgentServiceStub(AgentServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcAgentServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcAgentServiceStub( + AgentServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcAgentServiceStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcAgentServiceStub(AgentServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcAgentServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcAgentServiceStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcAgentServiceStub( + AgentServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings listAppsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAppsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getAppTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAppMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createAppTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createAppMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateAppTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAppMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("app.name", String.valueOf(request.getApp().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteAppTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteAppMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings exportAppTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(exportAppMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings importAppTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(importAppMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings listAgentsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAgentsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getAgentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAgentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createAgentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createAgentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateAgentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAgentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("agent.name", String.valueOf(request.getAgent().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteAgentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteAgentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listExamplesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listExamplesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getExampleTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getExampleMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createExampleTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createExampleMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateExampleTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateExampleMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("example.name", String.valueOf(request.getExample().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteExampleTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteExampleMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listToolsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listToolsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getToolTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getToolMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listConversationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listConversationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getConversationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getConversationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteConversationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteConversationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + batchDeleteConversationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(batchDeleteConversationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings createToolTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createToolMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateToolTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateToolMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("tool.name", String.valueOf(request.getTool().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteToolTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteToolMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listGuardrailsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listGuardrailsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getGuardrailTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getGuardrailMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createGuardrailTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createGuardrailMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateGuardrailTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateGuardrailMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("guardrail.name", String.valueOf(request.getGuardrail().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteGuardrailTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteGuardrailMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listDeploymentsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listDeploymentsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getDeploymentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createDeploymentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateDeploymentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("deployment.name", String.valueOf(request.getDeployment().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteDeploymentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteDeploymentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listToolsetsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listToolsetsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getToolsetTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getToolsetMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createToolsetTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createToolsetMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateToolsetTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateToolsetMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("toolset.name", String.valueOf(request.getToolset().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteToolsetTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteToolsetMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listAppVersionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAppVersionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getAppVersionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAppVersionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createAppVersionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createAppVersionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteAppVersionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteAppVersionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings restoreAppVersionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(restoreAppVersionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listChangelogsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listChangelogsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getChangelogTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getChangelogMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.listAppsCallable = + callableFactory.createUnaryCallable( + listAppsTransportSettings, settings.listAppsSettings(), clientContext); + this.listAppsPagedCallable = + callableFactory.createPagedCallable( + listAppsTransportSettings, settings.listAppsSettings(), clientContext); + this.getAppCallable = + callableFactory.createUnaryCallable( + getAppTransportSettings, settings.getAppSettings(), clientContext); + this.createAppCallable = + callableFactory.createUnaryCallable( + createAppTransportSettings, settings.createAppSettings(), clientContext); + this.createAppOperationCallable = + callableFactory.createOperationCallable( + createAppTransportSettings, + settings.createAppOperationSettings(), + clientContext, + operationsStub); + this.updateAppCallable = + callableFactory.createUnaryCallable( + updateAppTransportSettings, settings.updateAppSettings(), clientContext); + this.deleteAppCallable = + callableFactory.createUnaryCallable( + deleteAppTransportSettings, settings.deleteAppSettings(), clientContext); + this.deleteAppOperationCallable = + callableFactory.createOperationCallable( + deleteAppTransportSettings, + settings.deleteAppOperationSettings(), + clientContext, + operationsStub); + this.exportAppCallable = + callableFactory.createUnaryCallable( + exportAppTransportSettings, settings.exportAppSettings(), clientContext); + this.exportAppOperationCallable = + callableFactory.createOperationCallable( + exportAppTransportSettings, + settings.exportAppOperationSettings(), + clientContext, + operationsStub); + this.importAppCallable = + callableFactory.createUnaryCallable( + importAppTransportSettings, settings.importAppSettings(), clientContext); + this.importAppOperationCallable = + callableFactory.createOperationCallable( + importAppTransportSettings, + settings.importAppOperationSettings(), + clientContext, + operationsStub); + this.listAgentsCallable = + callableFactory.createUnaryCallable( + listAgentsTransportSettings, settings.listAgentsSettings(), clientContext); + this.listAgentsPagedCallable = + callableFactory.createPagedCallable( + listAgentsTransportSettings, settings.listAgentsSettings(), clientContext); + this.getAgentCallable = + callableFactory.createUnaryCallable( + getAgentTransportSettings, settings.getAgentSettings(), clientContext); + this.createAgentCallable = + callableFactory.createUnaryCallable( + createAgentTransportSettings, settings.createAgentSettings(), clientContext); + this.updateAgentCallable = + callableFactory.createUnaryCallable( + updateAgentTransportSettings, settings.updateAgentSettings(), clientContext); + this.deleteAgentCallable = + callableFactory.createUnaryCallable( + deleteAgentTransportSettings, settings.deleteAgentSettings(), clientContext); + this.listExamplesCallable = + callableFactory.createUnaryCallable( + listExamplesTransportSettings, settings.listExamplesSettings(), clientContext); + this.listExamplesPagedCallable = + callableFactory.createPagedCallable( + listExamplesTransportSettings, settings.listExamplesSettings(), clientContext); + this.getExampleCallable = + callableFactory.createUnaryCallable( + getExampleTransportSettings, settings.getExampleSettings(), clientContext); + this.createExampleCallable = + callableFactory.createUnaryCallable( + createExampleTransportSettings, settings.createExampleSettings(), clientContext); + this.updateExampleCallable = + callableFactory.createUnaryCallable( + updateExampleTransportSettings, settings.updateExampleSettings(), clientContext); + this.deleteExampleCallable = + callableFactory.createUnaryCallable( + deleteExampleTransportSettings, settings.deleteExampleSettings(), clientContext); + this.listToolsCallable = + callableFactory.createUnaryCallable( + listToolsTransportSettings, settings.listToolsSettings(), clientContext); + this.listToolsPagedCallable = + callableFactory.createPagedCallable( + listToolsTransportSettings, settings.listToolsSettings(), clientContext); + this.getToolCallable = + callableFactory.createUnaryCallable( + getToolTransportSettings, settings.getToolSettings(), clientContext); + this.listConversationsCallable = + callableFactory.createUnaryCallable( + listConversationsTransportSettings, + settings.listConversationsSettings(), + clientContext); + this.listConversationsPagedCallable = + callableFactory.createPagedCallable( + listConversationsTransportSettings, + settings.listConversationsSettings(), + clientContext); + this.getConversationCallable = + callableFactory.createUnaryCallable( + getConversationTransportSettings, settings.getConversationSettings(), clientContext); + this.deleteConversationCallable = + callableFactory.createUnaryCallable( + deleteConversationTransportSettings, + settings.deleteConversationSettings(), + clientContext); + this.batchDeleteConversationsCallable = + callableFactory.createUnaryCallable( + batchDeleteConversationsTransportSettings, + settings.batchDeleteConversationsSettings(), + clientContext); + this.batchDeleteConversationsOperationCallable = + callableFactory.createOperationCallable( + batchDeleteConversationsTransportSettings, + settings.batchDeleteConversationsOperationSettings(), + clientContext, + operationsStub); + this.createToolCallable = + callableFactory.createUnaryCallable( + createToolTransportSettings, settings.createToolSettings(), clientContext); + this.updateToolCallable = + callableFactory.createUnaryCallable( + updateToolTransportSettings, settings.updateToolSettings(), clientContext); + this.deleteToolCallable = + callableFactory.createUnaryCallable( + deleteToolTransportSettings, settings.deleteToolSettings(), clientContext); + this.listGuardrailsCallable = + callableFactory.createUnaryCallable( + listGuardrailsTransportSettings, settings.listGuardrailsSettings(), clientContext); + this.listGuardrailsPagedCallable = + callableFactory.createPagedCallable( + listGuardrailsTransportSettings, settings.listGuardrailsSettings(), clientContext); + this.getGuardrailCallable = + callableFactory.createUnaryCallable( + getGuardrailTransportSettings, settings.getGuardrailSettings(), clientContext); + this.createGuardrailCallable = + callableFactory.createUnaryCallable( + createGuardrailTransportSettings, settings.createGuardrailSettings(), clientContext); + this.updateGuardrailCallable = + callableFactory.createUnaryCallable( + updateGuardrailTransportSettings, settings.updateGuardrailSettings(), clientContext); + this.deleteGuardrailCallable = + callableFactory.createUnaryCallable( + deleteGuardrailTransportSettings, settings.deleteGuardrailSettings(), clientContext); + this.listDeploymentsCallable = + callableFactory.createUnaryCallable( + listDeploymentsTransportSettings, settings.listDeploymentsSettings(), clientContext); + this.listDeploymentsPagedCallable = + callableFactory.createPagedCallable( + listDeploymentsTransportSettings, settings.listDeploymentsSettings(), clientContext); + this.getDeploymentCallable = + callableFactory.createUnaryCallable( + getDeploymentTransportSettings, settings.getDeploymentSettings(), clientContext); + this.createDeploymentCallable = + callableFactory.createUnaryCallable( + createDeploymentTransportSettings, settings.createDeploymentSettings(), clientContext); + this.updateDeploymentCallable = + callableFactory.createUnaryCallable( + updateDeploymentTransportSettings, settings.updateDeploymentSettings(), clientContext); + this.deleteDeploymentCallable = + callableFactory.createUnaryCallable( + deleteDeploymentTransportSettings, settings.deleteDeploymentSettings(), clientContext); + this.listToolsetsCallable = + callableFactory.createUnaryCallable( + listToolsetsTransportSettings, settings.listToolsetsSettings(), clientContext); + this.listToolsetsPagedCallable = + callableFactory.createPagedCallable( + listToolsetsTransportSettings, settings.listToolsetsSettings(), clientContext); + this.getToolsetCallable = + callableFactory.createUnaryCallable( + getToolsetTransportSettings, settings.getToolsetSettings(), clientContext); + this.createToolsetCallable = + callableFactory.createUnaryCallable( + createToolsetTransportSettings, settings.createToolsetSettings(), clientContext); + this.updateToolsetCallable = + callableFactory.createUnaryCallable( + updateToolsetTransportSettings, settings.updateToolsetSettings(), clientContext); + this.deleteToolsetCallable = + callableFactory.createUnaryCallable( + deleteToolsetTransportSettings, settings.deleteToolsetSettings(), clientContext); + this.listAppVersionsCallable = + callableFactory.createUnaryCallable( + listAppVersionsTransportSettings, settings.listAppVersionsSettings(), clientContext); + this.listAppVersionsPagedCallable = + callableFactory.createPagedCallable( + listAppVersionsTransportSettings, settings.listAppVersionsSettings(), clientContext); + this.getAppVersionCallable = + callableFactory.createUnaryCallable( + getAppVersionTransportSettings, settings.getAppVersionSettings(), clientContext); + this.createAppVersionCallable = + callableFactory.createUnaryCallable( + createAppVersionTransportSettings, settings.createAppVersionSettings(), clientContext); + this.deleteAppVersionCallable = + callableFactory.createUnaryCallable( + deleteAppVersionTransportSettings, settings.deleteAppVersionSettings(), clientContext); + this.restoreAppVersionCallable = + callableFactory.createUnaryCallable( + restoreAppVersionTransportSettings, + settings.restoreAppVersionSettings(), + clientContext); + this.restoreAppVersionOperationCallable = + callableFactory.createOperationCallable( + restoreAppVersionTransportSettings, + settings.restoreAppVersionOperationSettings(), + clientContext, + operationsStub); + this.listChangelogsCallable = + callableFactory.createUnaryCallable( + listChangelogsTransportSettings, settings.listChangelogsSettings(), clientContext); + this.listChangelogsPagedCallable = + callableFactory.createPagedCallable( + listChangelogsTransportSettings, settings.listChangelogsSettings(), clientContext); + this.getChangelogCallable = + callableFactory.createUnaryCallable( + getChangelogTransportSettings, settings.getChangelogSettings(), clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable listAppsCallable() { + return listAppsCallable; + } + + @Override + public UnaryCallable listAppsPagedCallable() { + return listAppsPagedCallable; + } + + @Override + public UnaryCallable getAppCallable() { + return getAppCallable; + } + + @Override + public UnaryCallable createAppCallable() { + return createAppCallable; + } + + @Override + public OperationCallable createAppOperationCallable() { + return createAppOperationCallable; + } + + @Override + public UnaryCallable updateAppCallable() { + return updateAppCallable; + } + + @Override + public UnaryCallable deleteAppCallable() { + return deleteAppCallable; + } + + @Override + public OperationCallable + deleteAppOperationCallable() { + return deleteAppOperationCallable; + } + + @Override + public UnaryCallable exportAppCallable() { + return exportAppCallable; + } + + @Override + public OperationCallable + exportAppOperationCallable() { + return exportAppOperationCallable; + } + + @Override + public UnaryCallable importAppCallable() { + return importAppCallable; + } + + @Override + public OperationCallable + importAppOperationCallable() { + return importAppOperationCallable; + } + + @Override + public UnaryCallable listAgentsCallable() { + return listAgentsCallable; + } + + @Override + public UnaryCallable listAgentsPagedCallable() { + return listAgentsPagedCallable; + } + + @Override + public UnaryCallable getAgentCallable() { + return getAgentCallable; + } + + @Override + public UnaryCallable createAgentCallable() { + return createAgentCallable; + } + + @Override + public UnaryCallable updateAgentCallable() { + return updateAgentCallable; + } + + @Override + public UnaryCallable deleteAgentCallable() { + return deleteAgentCallable; + } + + @Override + public UnaryCallable listExamplesCallable() { + return listExamplesCallable; + } + + @Override + public UnaryCallable listExamplesPagedCallable() { + return listExamplesPagedCallable; + } + + @Override + public UnaryCallable getExampleCallable() { + return getExampleCallable; + } + + @Override + public UnaryCallable createExampleCallable() { + return createExampleCallable; + } + + @Override + public UnaryCallable updateExampleCallable() { + return updateExampleCallable; + } + + @Override + public UnaryCallable deleteExampleCallable() { + return deleteExampleCallable; + } + + @Override + public UnaryCallable listToolsCallable() { + return listToolsCallable; + } + + @Override + public UnaryCallable listToolsPagedCallable() { + return listToolsPagedCallable; + } + + @Override + public UnaryCallable getToolCallable() { + return getToolCallable; + } + + @Override + public UnaryCallable + listConversationsCallable() { + return listConversationsCallable; + } + + @Override + public UnaryCallable + listConversationsPagedCallable() { + return listConversationsPagedCallable; + } + + @Override + public UnaryCallable getConversationCallable() { + return getConversationCallable; + } + + @Override + public UnaryCallable deleteConversationCallable() { + return deleteConversationCallable; + } + + @Override + public UnaryCallable + batchDeleteConversationsCallable() { + return batchDeleteConversationsCallable; + } + + @Override + public OperationCallable< + BatchDeleteConversationsRequest, BatchDeleteConversationsResponse, OperationMetadata> + batchDeleteConversationsOperationCallable() { + return batchDeleteConversationsOperationCallable; + } + + @Override + public UnaryCallable createToolCallable() { + return createToolCallable; + } + + @Override + public UnaryCallable updateToolCallable() { + return updateToolCallable; + } + + @Override + public UnaryCallable deleteToolCallable() { + return deleteToolCallable; + } + + @Override + public UnaryCallable listGuardrailsCallable() { + return listGuardrailsCallable; + } + + @Override + public UnaryCallable + listGuardrailsPagedCallable() { + return listGuardrailsPagedCallable; + } + + @Override + public UnaryCallable getGuardrailCallable() { + return getGuardrailCallable; + } + + @Override + public UnaryCallable createGuardrailCallable() { + return createGuardrailCallable; + } + + @Override + public UnaryCallable updateGuardrailCallable() { + return updateGuardrailCallable; + } + + @Override + public UnaryCallable deleteGuardrailCallable() { + return deleteGuardrailCallable; + } + + @Override + public UnaryCallable listDeploymentsCallable() { + return listDeploymentsCallable; + } + + @Override + public UnaryCallable + listDeploymentsPagedCallable() { + return listDeploymentsPagedCallable; + } + + @Override + public UnaryCallable getDeploymentCallable() { + return getDeploymentCallable; + } + + @Override + public UnaryCallable createDeploymentCallable() { + return createDeploymentCallable; + } + + @Override + public UnaryCallable updateDeploymentCallable() { + return updateDeploymentCallable; + } + + @Override + public UnaryCallable deleteDeploymentCallable() { + return deleteDeploymentCallable; + } + + @Override + public UnaryCallable listToolsetsCallable() { + return listToolsetsCallable; + } + + @Override + public UnaryCallable listToolsetsPagedCallable() { + return listToolsetsPagedCallable; + } + + @Override + public UnaryCallable getToolsetCallable() { + return getToolsetCallable; + } + + @Override + public UnaryCallable createToolsetCallable() { + return createToolsetCallable; + } + + @Override + public UnaryCallable updateToolsetCallable() { + return updateToolsetCallable; + } + + @Override + public UnaryCallable deleteToolsetCallable() { + return deleteToolsetCallable; + } + + @Override + public UnaryCallable listAppVersionsCallable() { + return listAppVersionsCallable; + } + + @Override + public UnaryCallable + listAppVersionsPagedCallable() { + return listAppVersionsPagedCallable; + } + + @Override + public UnaryCallable getAppVersionCallable() { + return getAppVersionCallable; + } + + @Override + public UnaryCallable createAppVersionCallable() { + return createAppVersionCallable; + } + + @Override + public UnaryCallable deleteAppVersionCallable() { + return deleteAppVersionCallable; + } + + @Override + public UnaryCallable restoreAppVersionCallable() { + return restoreAppVersionCallable; + } + + @Override + public OperationCallable + restoreAppVersionOperationCallable() { + return restoreAppVersionOperationCallable; + } + + @Override + public UnaryCallable listChangelogsCallable() { + return listChangelogsCallable; + } + + @Override + public UnaryCallable + listChangelogsPagedCallable() { + return listChangelogsPagedCallable; + } + + @Override + public UnaryCallable getChangelogCallable() { + return getChangelogCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcSessionServiceCallableFactory.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcSessionServiceCallableFactory.java new file mode 100644 index 000000000000..ad9c90f766c3 --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcSessionServiceCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the SessionService service API. + * + *

      This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcSessionServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcSessionServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcSessionServiceStub.java new file mode 100644 index 000000000000..6f7f00ffa81f --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcSessionServiceStub.java @@ -0,0 +1,269 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.stub; + +import static com.google.cloud.ces.v1.SessionServiceClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.ces.v1.BidiSessionClientMessage; +import com.google.cloud.ces.v1.BidiSessionServerMessage; +import com.google.cloud.ces.v1.RunSessionRequest; +import com.google.cloud.ces.v1.RunSessionResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the SessionService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcSessionServiceStub extends SessionServiceStub { + private static final MethodDescriptor + runSessionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.SessionService/RunSession") + .setRequestMarshaller(ProtoUtils.marshaller(RunSessionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(RunSessionResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + bidiRunSessionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName("google.cloud.ces.v1.SessionService/BidiRunSession") + .setRequestMarshaller( + ProtoUtils.marshaller(BidiSessionClientMessage.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(BidiSessionServerMessage.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable runSessionCallable; + private final BidiStreamingCallable + bidiRunSessionCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcSessionServiceStub create(SessionServiceStubSettings settings) + throws IOException { + return new GrpcSessionServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcSessionServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcSessionServiceStub( + SessionServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcSessionServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcSessionServiceStub( + SessionServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcSessionServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcSessionServiceStub(SessionServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcSessionServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcSessionServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcSessionServiceStub( + SessionServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings runSessionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(runSessionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("config.session", String.valueOf(request.getConfig().getSession())); + return builder.build(); + }) + .build(); + GrpcCallSettings + bidiRunSessionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(bidiRunSessionMethodDescriptor) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.runSessionCallable = + callableFactory.createUnaryCallable( + runSessionTransportSettings, settings.runSessionSettings(), clientContext); + this.bidiRunSessionCallable = + callableFactory.createBidiStreamingCallable( + bidiRunSessionTransportSettings, settings.bidiRunSessionSettings(), clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable runSessionCallable() { + return runSessionCallable; + } + + @Override + public BidiStreamingCallable + bidiRunSessionCallable() { + return bidiRunSessionCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcToolServiceCallableFactory.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcToolServiceCallableFactory.java new file mode 100644 index 000000000000..66ab55549a77 --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcToolServiceCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the ToolService service API. + * + *

      This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcToolServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcToolServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcToolServiceStub.java new file mode 100644 index 000000000000..5b7739312f91 --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcToolServiceStub.java @@ -0,0 +1,308 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.stub; + +import static com.google.cloud.ces.v1.ToolServiceClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.ces.v1.ExecuteToolRequest; +import com.google.cloud.ces.v1.ExecuteToolResponse; +import com.google.cloud.ces.v1.RetrieveToolSchemaRequest; +import com.google.cloud.ces.v1.RetrieveToolSchemaResponse; +import com.google.cloud.ces.v1.RetrieveToolsRequest; +import com.google.cloud.ces.v1.RetrieveToolsResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the ToolService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcToolServiceStub extends ToolServiceStub { + private static final MethodDescriptor + executeToolMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.ToolService/ExecuteTool") + .setRequestMarshaller(ProtoUtils.marshaller(ExecuteToolRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ExecuteToolResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + retrieveToolSchemaMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.ToolService/RetrieveToolSchema") + .setRequestMarshaller( + ProtoUtils.marshaller(RetrieveToolSchemaRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(RetrieveToolSchemaResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + retrieveToolsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.ToolService/RetrieveTools") + .setRequestMarshaller( + ProtoUtils.marshaller(RetrieveToolsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(RetrieveToolsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable executeToolCallable; + private final UnaryCallable + retrieveToolSchemaCallable; + private final UnaryCallable retrieveToolsCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcToolServiceStub create(ToolServiceStubSettings settings) + throws IOException { + return new GrpcToolServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcToolServiceStub create(ClientContext clientContext) throws IOException { + return new GrpcToolServiceStub(ToolServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcToolServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcToolServiceStub( + ToolServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcToolServiceStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcToolServiceStub(ToolServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcToolServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcToolServiceStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcToolServiceStub( + ToolServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings executeToolTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(executeToolMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + retrieveToolSchemaTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(retrieveToolSchemaMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings retrieveToolsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(retrieveToolsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("toolset", String.valueOf(request.getToolset())); + return builder.build(); + }) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.executeToolCallable = + callableFactory.createUnaryCallable( + executeToolTransportSettings, settings.executeToolSettings(), clientContext); + this.retrieveToolSchemaCallable = + callableFactory.createUnaryCallable( + retrieveToolSchemaTransportSettings, + settings.retrieveToolSchemaSettings(), + clientContext); + this.retrieveToolsCallable = + callableFactory.createUnaryCallable( + retrieveToolsTransportSettings, settings.retrieveToolsSettings(), clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable executeToolCallable() { + return executeToolCallable; + } + + @Override + public UnaryCallable + retrieveToolSchemaCallable() { + return retrieveToolSchemaCallable; + } + + @Override + public UnaryCallable retrieveToolsCallable() { + return retrieveToolsCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcWidgetServiceCallableFactory.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcWidgetServiceCallableFactory.java new file mode 100644 index 000000000000..9ab872ed6997 --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcWidgetServiceCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the WidgetService service API. + * + *

      This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcWidgetServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcWidgetServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcWidgetServiceStub.java new file mode 100644 index 000000000000..0eb9ec44b92f --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcWidgetServiceStub.java @@ -0,0 +1,243 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.stub; + +import static com.google.cloud.ces.v1.WidgetServiceClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.ces.v1.GenerateChatTokenRequest; +import com.google.cloud.ces.v1.GenerateChatTokenResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the WidgetService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcWidgetServiceStub extends WidgetServiceStub { + private static final MethodDescriptor + generateChatTokenMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1.WidgetService/GenerateChatToken") + .setRequestMarshaller( + ProtoUtils.marshaller(GenerateChatTokenRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(GenerateChatTokenResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable + generateChatTokenCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcWidgetServiceStub create(WidgetServiceStubSettings settings) + throws IOException { + return new GrpcWidgetServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcWidgetServiceStub create(ClientContext clientContext) throws IOException { + return new GrpcWidgetServiceStub(WidgetServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcWidgetServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcWidgetServiceStub( + WidgetServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcWidgetServiceStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcWidgetServiceStub(WidgetServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcWidgetServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcWidgetServiceStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcWidgetServiceStub( + WidgetServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + generateChatTokenTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(generateChatTokenMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.generateChatTokenCallable = + callableFactory.createUnaryCallable( + generateChatTokenTransportSettings, + settings.generateChatTokenSettings(), + clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable + generateChatTokenCallable() { + return generateChatTokenCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonAgentServiceCallableFactory.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonAgentServiceCallableFactory.java new file mode 100644 index 000000000000..93513311faa1 --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonAgentServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the AgentService service API. + * + *

      This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonAgentServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonAgentServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonAgentServiceStub.java new file mode 100644 index 000000000000..a39d504a9185 --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonAgentServiceStub.java @@ -0,0 +1,3376 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.stub; + +import static com.google.cloud.ces.v1.AgentServiceClient.ListAgentsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListAppVersionsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListAppsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListChangelogsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListConversationsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListDeploymentsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListExamplesPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListGuardrailsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListToolsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListToolsetsPagedResponse; + +import com.google.api.HttpRule; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +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.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.ces.v1.Agent; +import com.google.cloud.ces.v1.App; +import com.google.cloud.ces.v1.AppVersion; +import com.google.cloud.ces.v1.BatchDeleteConversationsRequest; +import com.google.cloud.ces.v1.BatchDeleteConversationsResponse; +import com.google.cloud.ces.v1.Changelog; +import com.google.cloud.ces.v1.Conversation; +import com.google.cloud.ces.v1.CreateAgentRequest; +import com.google.cloud.ces.v1.CreateAppRequest; +import com.google.cloud.ces.v1.CreateAppVersionRequest; +import com.google.cloud.ces.v1.CreateDeploymentRequest; +import com.google.cloud.ces.v1.CreateExampleRequest; +import com.google.cloud.ces.v1.CreateGuardrailRequest; +import com.google.cloud.ces.v1.CreateToolRequest; +import com.google.cloud.ces.v1.CreateToolsetRequest; +import com.google.cloud.ces.v1.DeleteAgentRequest; +import com.google.cloud.ces.v1.DeleteAppRequest; +import com.google.cloud.ces.v1.DeleteAppVersionRequest; +import com.google.cloud.ces.v1.DeleteConversationRequest; +import com.google.cloud.ces.v1.DeleteDeploymentRequest; +import com.google.cloud.ces.v1.DeleteExampleRequest; +import com.google.cloud.ces.v1.DeleteGuardrailRequest; +import com.google.cloud.ces.v1.DeleteToolRequest; +import com.google.cloud.ces.v1.DeleteToolsetRequest; +import com.google.cloud.ces.v1.Deployment; +import com.google.cloud.ces.v1.Example; +import com.google.cloud.ces.v1.ExportAppRequest; +import com.google.cloud.ces.v1.ExportAppResponse; +import com.google.cloud.ces.v1.GetAgentRequest; +import com.google.cloud.ces.v1.GetAppRequest; +import com.google.cloud.ces.v1.GetAppVersionRequest; +import com.google.cloud.ces.v1.GetChangelogRequest; +import com.google.cloud.ces.v1.GetConversationRequest; +import com.google.cloud.ces.v1.GetDeploymentRequest; +import com.google.cloud.ces.v1.GetExampleRequest; +import com.google.cloud.ces.v1.GetGuardrailRequest; +import com.google.cloud.ces.v1.GetToolRequest; +import com.google.cloud.ces.v1.GetToolsetRequest; +import com.google.cloud.ces.v1.Guardrail; +import com.google.cloud.ces.v1.ImportAppRequest; +import com.google.cloud.ces.v1.ImportAppResponse; +import com.google.cloud.ces.v1.ListAgentsRequest; +import com.google.cloud.ces.v1.ListAgentsResponse; +import com.google.cloud.ces.v1.ListAppVersionsRequest; +import com.google.cloud.ces.v1.ListAppVersionsResponse; +import com.google.cloud.ces.v1.ListAppsRequest; +import com.google.cloud.ces.v1.ListAppsResponse; +import com.google.cloud.ces.v1.ListChangelogsRequest; +import com.google.cloud.ces.v1.ListChangelogsResponse; +import com.google.cloud.ces.v1.ListConversationsRequest; +import com.google.cloud.ces.v1.ListConversationsResponse; +import com.google.cloud.ces.v1.ListDeploymentsRequest; +import com.google.cloud.ces.v1.ListDeploymentsResponse; +import com.google.cloud.ces.v1.ListExamplesRequest; +import com.google.cloud.ces.v1.ListExamplesResponse; +import com.google.cloud.ces.v1.ListGuardrailsRequest; +import com.google.cloud.ces.v1.ListGuardrailsResponse; +import com.google.cloud.ces.v1.ListToolsRequest; +import com.google.cloud.ces.v1.ListToolsResponse; +import com.google.cloud.ces.v1.ListToolsetsRequest; +import com.google.cloud.ces.v1.ListToolsetsResponse; +import com.google.cloud.ces.v1.OperationMetadata; +import com.google.cloud.ces.v1.RestoreAppVersionRequest; +import com.google.cloud.ces.v1.RestoreAppVersionResponse; +import com.google.cloud.ces.v1.Tool; +import com.google.cloud.ces.v1.Toolset; +import com.google.cloud.ces.v1.UpdateAgentRequest; +import com.google.cloud.ces.v1.UpdateAppRequest; +import com.google.cloud.ces.v1.UpdateDeploymentRequest; +import com.google.cloud.ces.v1.UpdateExampleRequest; +import com.google.cloud.ces.v1.UpdateGuardrailRequest; +import com.google.cloud.ces.v1.UpdateToolRequest; +import com.google.cloud.ces.v1.UpdateToolsetRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the AgentService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonAgentServiceStub extends AgentServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Empty.getDescriptor()) + .add(BatchDeleteConversationsResponse.getDescriptor()) + .add(ExportAppResponse.getDescriptor()) + .add(App.getDescriptor()) + .add(OperationMetadata.getDescriptor()) + .add(ImportAppResponse.getDescriptor()) + .add(RestoreAppVersionResponse.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + listAppsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/ListApps") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/apps", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAppsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getAppMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/GetApp") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/apps/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(App.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor createAppMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/CreateApp") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/apps", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "appId", request.getAppId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> ProtoRestSerializer.create().toBody("app", request.getApp(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateAppRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor updateAppMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/UpdateApp") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{app.name=projects/*/locations/*/apps/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "app.name", request.getApp().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> ProtoRestSerializer.create().toBody("app", request.getApp(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(App.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor deleteAppMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/DeleteApp") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/apps/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "etag", request.getEtag()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteAppRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor exportAppMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/ExportApp") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/apps/*}:exportApp", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ExportAppRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor importAppMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/ImportApp") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/apps:importApp", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ImportAppRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listAgentsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/ListAgents") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/apps/*}/agents", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAgentsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getAgentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/GetAgent") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/apps/*/agents/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Agent.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor createAgentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/CreateAgent") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/apps/*}/agents", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "agentId", request.getAgentId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("agent", request.getAgent(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Agent.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor updateAgentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/UpdateAgent") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{agent.name=projects/*/locations/*/apps/*/agents/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "agent.name", request.getAgent().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("agent", request.getAgent(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Agent.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor deleteAgentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/DeleteAgent") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/apps/*/agents/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "etag", request.getEtag()); + serializer.putQueryParam(fields, "force", request.getForce()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listExamplesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/ListExamples") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/apps/*}/examples", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListExamplesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getExampleMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/GetExample") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/apps/*/examples/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Example.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createExampleMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/CreateExample") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/apps/*}/examples", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "exampleId", request.getExampleId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("example", request.getExample(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Example.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateExampleMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/UpdateExample") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{example.name=projects/*/locations/*/apps/*/examples/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "example.name", request.getExample().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("example", request.getExample(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Example.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteExampleMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/DeleteExample") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/apps/*/examples/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "etag", request.getEtag()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listToolsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/ListTools") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/apps/*}/tools", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListToolsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getToolMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/GetTool") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/apps/*/tools/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Tool.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listConversationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/ListConversations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/apps/*}/conversations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "source", request.getSourceValue()); + serializer.putQueryParam(fields, "sources", request.getSourcesList()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListConversationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getConversationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/GetConversation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/apps/*/conversations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "source", request.getSourceValue()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Conversation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteConversationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/DeleteConversation") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/apps/*/conversations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "source", request.getSourceValue()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + batchDeleteConversationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/BatchDeleteConversations") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/apps/*}/conversations:batchDelete", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (BatchDeleteConversationsRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor createToolMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/CreateTool") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/apps/*}/tools", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "toolId", request.getToolId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("tool", request.getTool(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Tool.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor updateToolMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/UpdateTool") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{tool.name=projects/*/locations/*/apps/*/tools/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "tool.name", request.getTool().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("tool", request.getTool(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Tool.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor deleteToolMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/DeleteTool") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/apps/*/tools/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "etag", request.getEtag()); + serializer.putQueryParam(fields, "force", request.getForce()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listGuardrailsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/ListGuardrails") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/apps/*}/guardrails", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListGuardrailsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getGuardrailMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/GetGuardrail") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/apps/*/guardrails/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Guardrail.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createGuardrailMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/CreateGuardrail") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/apps/*}/guardrails", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "guardrailId", request.getGuardrailId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("guardrail", request.getGuardrail(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Guardrail.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateGuardrailMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/UpdateGuardrail") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{guardrail.name=projects/*/locations/*/apps/*/guardrails/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "guardrail.name", request.getGuardrail().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("guardrail", request.getGuardrail(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Guardrail.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteGuardrailMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/DeleteGuardrail") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/apps/*/guardrails/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "etag", request.getEtag()); + serializer.putQueryParam(fields, "force", request.getForce()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listDeploymentsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/ListDeployments") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/apps/*}/deployments", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListDeploymentsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getDeploymentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/GetDeployment") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/apps/*/deployments/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Deployment.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createDeploymentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/CreateDeployment") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/apps/*}/deployments", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "deploymentId", request.getDeploymentId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("deployment", request.getDeployment(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Deployment.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateDeploymentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/UpdateDeployment") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{deployment.name=projects/*/locations/*/apps/*/deployments/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "deployment.name", request.getDeployment().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("deployment", request.getDeployment(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Deployment.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteDeploymentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/DeleteDeployment") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/apps/*/deployments/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "etag", request.getEtag()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listToolsetsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/ListToolsets") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/apps/*}/toolsets", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListToolsetsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getToolsetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/GetToolset") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/apps/*/toolsets/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Toolset.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createToolsetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/CreateToolset") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/apps/*}/toolsets", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "toolsetId", request.getToolsetId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("toolset", request.getToolset(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Toolset.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateToolsetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/UpdateToolset") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{toolset.name=projects/*/locations/*/apps/*/toolsets/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "toolset.name", request.getToolset().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("toolset", request.getToolset(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Toolset.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteToolsetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/DeleteToolset") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/apps/*/toolsets/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "etag", request.getEtag()); + serializer.putQueryParam(fields, "force", request.getForce()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listAppVersionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/ListAppVersions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/apps/*}/versions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAppVersionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getAppVersionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/GetAppVersion") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/apps/*/versions/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AppVersion.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createAppVersionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/CreateAppVersion") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/apps/*}/versions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "appVersionId", request.getAppVersionId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("appVersion", request.getAppVersion(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AppVersion.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteAppVersionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/DeleteAppVersion") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/apps/*/versions/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "etag", request.getEtag()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + restoreAppVersionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/RestoreAppVersion") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/apps/*/versions/*}:restore", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (RestoreAppVersionRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listChangelogsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/ListChangelogs") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/apps/*}/changelogs", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListChangelogsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getChangelogMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.AgentService/GetChangelog") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/apps/*/changelogs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Changelog.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*}/locations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable listAppsCallable; + private final UnaryCallable listAppsPagedCallable; + private final UnaryCallable getAppCallable; + private final UnaryCallable createAppCallable; + private final OperationCallable + createAppOperationCallable; + private final UnaryCallable updateAppCallable; + private final UnaryCallable deleteAppCallable; + private final OperationCallable + deleteAppOperationCallable; + private final UnaryCallable exportAppCallable; + private final OperationCallable + exportAppOperationCallable; + private final UnaryCallable importAppCallable; + private final OperationCallable + importAppOperationCallable; + private final UnaryCallable listAgentsCallable; + private final UnaryCallable listAgentsPagedCallable; + private final UnaryCallable getAgentCallable; + private final UnaryCallable createAgentCallable; + private final UnaryCallable updateAgentCallable; + private final UnaryCallable deleteAgentCallable; + private final UnaryCallable listExamplesCallable; + private final UnaryCallable + listExamplesPagedCallable; + private final UnaryCallable getExampleCallable; + private final UnaryCallable createExampleCallable; + private final UnaryCallable updateExampleCallable; + private final UnaryCallable deleteExampleCallable; + private final UnaryCallable listToolsCallable; + private final UnaryCallable listToolsPagedCallable; + private final UnaryCallable getToolCallable; + private final UnaryCallable + listConversationsCallable; + private final UnaryCallable + listConversationsPagedCallable; + private final UnaryCallable getConversationCallable; + private final UnaryCallable deleteConversationCallable; + private final UnaryCallable + batchDeleteConversationsCallable; + private final OperationCallable< + BatchDeleteConversationsRequest, BatchDeleteConversationsResponse, OperationMetadata> + batchDeleteConversationsOperationCallable; + private final UnaryCallable createToolCallable; + private final UnaryCallable updateToolCallable; + private final UnaryCallable deleteToolCallable; + private final UnaryCallable listGuardrailsCallable; + private final UnaryCallable + listGuardrailsPagedCallable; + private final UnaryCallable getGuardrailCallable; + private final UnaryCallable createGuardrailCallable; + private final UnaryCallable updateGuardrailCallable; + private final UnaryCallable deleteGuardrailCallable; + private final UnaryCallable + listDeploymentsCallable; + private final UnaryCallable + listDeploymentsPagedCallable; + private final UnaryCallable getDeploymentCallable; + private final UnaryCallable createDeploymentCallable; + private final UnaryCallable updateDeploymentCallable; + private final UnaryCallable deleteDeploymentCallable; + private final UnaryCallable listToolsetsCallable; + private final UnaryCallable + listToolsetsPagedCallable; + private final UnaryCallable getToolsetCallable; + private final UnaryCallable createToolsetCallable; + private final UnaryCallable updateToolsetCallable; + private final UnaryCallable deleteToolsetCallable; + private final UnaryCallable + listAppVersionsCallable; + private final UnaryCallable + listAppVersionsPagedCallable; + private final UnaryCallable getAppVersionCallable; + private final UnaryCallable createAppVersionCallable; + private final UnaryCallable deleteAppVersionCallable; + private final UnaryCallable restoreAppVersionCallable; + private final OperationCallable< + RestoreAppVersionRequest, RestoreAppVersionResponse, OperationMetadata> + restoreAppVersionOperationCallable; + private final UnaryCallable listChangelogsCallable; + private final UnaryCallable + listChangelogsPagedCallable; + private final UnaryCallable getChangelogCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonAgentServiceStub create(AgentServiceStubSettings settings) + throws IOException { + return new HttpJsonAgentServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonAgentServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonAgentServiceStub( + AgentServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonAgentServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonAgentServiceStub( + AgentServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonAgentServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonAgentServiceStub(AgentServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonAgentServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonAgentServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonAgentServiceStub( + AgentServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost("/v1/{name=projects/*/locations/*/operations/*}:cancel") + .build()) + .put( + "google.longrunning.Operations.DeleteOperation", + HttpRule.newBuilder() + .setDelete("/v1/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*}/operations") + .build()) + .build()); + + HttpJsonCallSettings listAppsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listAppsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getAppTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAppMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createAppTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createAppMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateAppTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateAppMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("app.name", String.valueOf(request.getApp().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteAppTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteAppMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings exportAppTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(exportAppMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings importAppTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(importAppMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings listAgentsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listAgentsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getAgentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAgentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createAgentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createAgentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateAgentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateAgentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("agent.name", String.valueOf(request.getAgent().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteAgentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteAgentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings listExamplesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listExamplesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getExampleTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getExampleMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createExampleTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createExampleMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateExampleTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateExampleMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("example.name", String.valueOf(request.getExample().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteExampleTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteExampleMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings listToolsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listToolsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getToolTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getToolMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listConversationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listConversationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getConversationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getConversationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteConversationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteConversationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + batchDeleteConversationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(batchDeleteConversationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createToolTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createToolMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateToolTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateToolMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("tool.name", String.valueOf(request.getTool().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteToolTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteToolMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listGuardrailsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listGuardrailsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getGuardrailTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getGuardrailMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createGuardrailTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createGuardrailMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateGuardrailTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateGuardrailMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("guardrail.name", String.valueOf(request.getGuardrail().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteGuardrailTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteGuardrailMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listDeploymentsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listDeploymentsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getDeploymentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getDeploymentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createDeploymentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createDeploymentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateDeploymentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateDeploymentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("deployment.name", String.valueOf(request.getDeployment().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteDeploymentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteDeploymentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings listToolsetsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listToolsetsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getToolsetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getToolsetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createToolsetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createToolsetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateToolsetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateToolsetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("toolset.name", String.valueOf(request.getToolset().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteToolsetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteToolsetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listAppVersionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listAppVersionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getAppVersionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAppVersionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createAppVersionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createAppVersionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteAppVersionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteAppVersionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings restoreAppVersionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(restoreAppVersionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listChangelogsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listChangelogsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getChangelogTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getChangelogMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.listAppsCallable = + callableFactory.createUnaryCallable( + listAppsTransportSettings, settings.listAppsSettings(), clientContext); + this.listAppsPagedCallable = + callableFactory.createPagedCallable( + listAppsTransportSettings, settings.listAppsSettings(), clientContext); + this.getAppCallable = + callableFactory.createUnaryCallable( + getAppTransportSettings, settings.getAppSettings(), clientContext); + this.createAppCallable = + callableFactory.createUnaryCallable( + createAppTransportSettings, settings.createAppSettings(), clientContext); + this.createAppOperationCallable = + callableFactory.createOperationCallable( + createAppTransportSettings, + settings.createAppOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateAppCallable = + callableFactory.createUnaryCallable( + updateAppTransportSettings, settings.updateAppSettings(), clientContext); + this.deleteAppCallable = + callableFactory.createUnaryCallable( + deleteAppTransportSettings, settings.deleteAppSettings(), clientContext); + this.deleteAppOperationCallable = + callableFactory.createOperationCallable( + deleteAppTransportSettings, + settings.deleteAppOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.exportAppCallable = + callableFactory.createUnaryCallable( + exportAppTransportSettings, settings.exportAppSettings(), clientContext); + this.exportAppOperationCallable = + callableFactory.createOperationCallable( + exportAppTransportSettings, + settings.exportAppOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.importAppCallable = + callableFactory.createUnaryCallable( + importAppTransportSettings, settings.importAppSettings(), clientContext); + this.importAppOperationCallable = + callableFactory.createOperationCallable( + importAppTransportSettings, + settings.importAppOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listAgentsCallable = + callableFactory.createUnaryCallable( + listAgentsTransportSettings, settings.listAgentsSettings(), clientContext); + this.listAgentsPagedCallable = + callableFactory.createPagedCallable( + listAgentsTransportSettings, settings.listAgentsSettings(), clientContext); + this.getAgentCallable = + callableFactory.createUnaryCallable( + getAgentTransportSettings, settings.getAgentSettings(), clientContext); + this.createAgentCallable = + callableFactory.createUnaryCallable( + createAgentTransportSettings, settings.createAgentSettings(), clientContext); + this.updateAgentCallable = + callableFactory.createUnaryCallable( + updateAgentTransportSettings, settings.updateAgentSettings(), clientContext); + this.deleteAgentCallable = + callableFactory.createUnaryCallable( + deleteAgentTransportSettings, settings.deleteAgentSettings(), clientContext); + this.listExamplesCallable = + callableFactory.createUnaryCallable( + listExamplesTransportSettings, settings.listExamplesSettings(), clientContext); + this.listExamplesPagedCallable = + callableFactory.createPagedCallable( + listExamplesTransportSettings, settings.listExamplesSettings(), clientContext); + this.getExampleCallable = + callableFactory.createUnaryCallable( + getExampleTransportSettings, settings.getExampleSettings(), clientContext); + this.createExampleCallable = + callableFactory.createUnaryCallable( + createExampleTransportSettings, settings.createExampleSettings(), clientContext); + this.updateExampleCallable = + callableFactory.createUnaryCallable( + updateExampleTransportSettings, settings.updateExampleSettings(), clientContext); + this.deleteExampleCallable = + callableFactory.createUnaryCallable( + deleteExampleTransportSettings, settings.deleteExampleSettings(), clientContext); + this.listToolsCallable = + callableFactory.createUnaryCallable( + listToolsTransportSettings, settings.listToolsSettings(), clientContext); + this.listToolsPagedCallable = + callableFactory.createPagedCallable( + listToolsTransportSettings, settings.listToolsSettings(), clientContext); + this.getToolCallable = + callableFactory.createUnaryCallable( + getToolTransportSettings, settings.getToolSettings(), clientContext); + this.listConversationsCallable = + callableFactory.createUnaryCallable( + listConversationsTransportSettings, + settings.listConversationsSettings(), + clientContext); + this.listConversationsPagedCallable = + callableFactory.createPagedCallable( + listConversationsTransportSettings, + settings.listConversationsSettings(), + clientContext); + this.getConversationCallable = + callableFactory.createUnaryCallable( + getConversationTransportSettings, settings.getConversationSettings(), clientContext); + this.deleteConversationCallable = + callableFactory.createUnaryCallable( + deleteConversationTransportSettings, + settings.deleteConversationSettings(), + clientContext); + this.batchDeleteConversationsCallable = + callableFactory.createUnaryCallable( + batchDeleteConversationsTransportSettings, + settings.batchDeleteConversationsSettings(), + clientContext); + this.batchDeleteConversationsOperationCallable = + callableFactory.createOperationCallable( + batchDeleteConversationsTransportSettings, + settings.batchDeleteConversationsOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.createToolCallable = + callableFactory.createUnaryCallable( + createToolTransportSettings, settings.createToolSettings(), clientContext); + this.updateToolCallable = + callableFactory.createUnaryCallable( + updateToolTransportSettings, settings.updateToolSettings(), clientContext); + this.deleteToolCallable = + callableFactory.createUnaryCallable( + deleteToolTransportSettings, settings.deleteToolSettings(), clientContext); + this.listGuardrailsCallable = + callableFactory.createUnaryCallable( + listGuardrailsTransportSettings, settings.listGuardrailsSettings(), clientContext); + this.listGuardrailsPagedCallable = + callableFactory.createPagedCallable( + listGuardrailsTransportSettings, settings.listGuardrailsSettings(), clientContext); + this.getGuardrailCallable = + callableFactory.createUnaryCallable( + getGuardrailTransportSettings, settings.getGuardrailSettings(), clientContext); + this.createGuardrailCallable = + callableFactory.createUnaryCallable( + createGuardrailTransportSettings, settings.createGuardrailSettings(), clientContext); + this.updateGuardrailCallable = + callableFactory.createUnaryCallable( + updateGuardrailTransportSettings, settings.updateGuardrailSettings(), clientContext); + this.deleteGuardrailCallable = + callableFactory.createUnaryCallable( + deleteGuardrailTransportSettings, settings.deleteGuardrailSettings(), clientContext); + this.listDeploymentsCallable = + callableFactory.createUnaryCallable( + listDeploymentsTransportSettings, settings.listDeploymentsSettings(), clientContext); + this.listDeploymentsPagedCallable = + callableFactory.createPagedCallable( + listDeploymentsTransportSettings, settings.listDeploymentsSettings(), clientContext); + this.getDeploymentCallable = + callableFactory.createUnaryCallable( + getDeploymentTransportSettings, settings.getDeploymentSettings(), clientContext); + this.createDeploymentCallable = + callableFactory.createUnaryCallable( + createDeploymentTransportSettings, settings.createDeploymentSettings(), clientContext); + this.updateDeploymentCallable = + callableFactory.createUnaryCallable( + updateDeploymentTransportSettings, settings.updateDeploymentSettings(), clientContext); + this.deleteDeploymentCallable = + callableFactory.createUnaryCallable( + deleteDeploymentTransportSettings, settings.deleteDeploymentSettings(), clientContext); + this.listToolsetsCallable = + callableFactory.createUnaryCallable( + listToolsetsTransportSettings, settings.listToolsetsSettings(), clientContext); + this.listToolsetsPagedCallable = + callableFactory.createPagedCallable( + listToolsetsTransportSettings, settings.listToolsetsSettings(), clientContext); + this.getToolsetCallable = + callableFactory.createUnaryCallable( + getToolsetTransportSettings, settings.getToolsetSettings(), clientContext); + this.createToolsetCallable = + callableFactory.createUnaryCallable( + createToolsetTransportSettings, settings.createToolsetSettings(), clientContext); + this.updateToolsetCallable = + callableFactory.createUnaryCallable( + updateToolsetTransportSettings, settings.updateToolsetSettings(), clientContext); + this.deleteToolsetCallable = + callableFactory.createUnaryCallable( + deleteToolsetTransportSettings, settings.deleteToolsetSettings(), clientContext); + this.listAppVersionsCallable = + callableFactory.createUnaryCallable( + listAppVersionsTransportSettings, settings.listAppVersionsSettings(), clientContext); + this.listAppVersionsPagedCallable = + callableFactory.createPagedCallable( + listAppVersionsTransportSettings, settings.listAppVersionsSettings(), clientContext); + this.getAppVersionCallable = + callableFactory.createUnaryCallable( + getAppVersionTransportSettings, settings.getAppVersionSettings(), clientContext); + this.createAppVersionCallable = + callableFactory.createUnaryCallable( + createAppVersionTransportSettings, settings.createAppVersionSettings(), clientContext); + this.deleteAppVersionCallable = + callableFactory.createUnaryCallable( + deleteAppVersionTransportSettings, settings.deleteAppVersionSettings(), clientContext); + this.restoreAppVersionCallable = + callableFactory.createUnaryCallable( + restoreAppVersionTransportSettings, + settings.restoreAppVersionSettings(), + clientContext); + this.restoreAppVersionOperationCallable = + callableFactory.createOperationCallable( + restoreAppVersionTransportSettings, + settings.restoreAppVersionOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listChangelogsCallable = + callableFactory.createUnaryCallable( + listChangelogsTransportSettings, settings.listChangelogsSettings(), clientContext); + this.listChangelogsPagedCallable = + callableFactory.createPagedCallable( + listChangelogsTransportSettings, settings.listChangelogsSettings(), clientContext); + this.getChangelogCallable = + callableFactory.createUnaryCallable( + getChangelogTransportSettings, settings.getChangelogSettings(), clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(listAppsMethodDescriptor); + methodDescriptors.add(getAppMethodDescriptor); + methodDescriptors.add(createAppMethodDescriptor); + methodDescriptors.add(updateAppMethodDescriptor); + methodDescriptors.add(deleteAppMethodDescriptor); + methodDescriptors.add(exportAppMethodDescriptor); + methodDescriptors.add(importAppMethodDescriptor); + methodDescriptors.add(listAgentsMethodDescriptor); + methodDescriptors.add(getAgentMethodDescriptor); + methodDescriptors.add(createAgentMethodDescriptor); + methodDescriptors.add(updateAgentMethodDescriptor); + methodDescriptors.add(deleteAgentMethodDescriptor); + methodDescriptors.add(listExamplesMethodDescriptor); + methodDescriptors.add(getExampleMethodDescriptor); + methodDescriptors.add(createExampleMethodDescriptor); + methodDescriptors.add(updateExampleMethodDescriptor); + methodDescriptors.add(deleteExampleMethodDescriptor); + methodDescriptors.add(listToolsMethodDescriptor); + methodDescriptors.add(getToolMethodDescriptor); + methodDescriptors.add(listConversationsMethodDescriptor); + methodDescriptors.add(getConversationMethodDescriptor); + methodDescriptors.add(deleteConversationMethodDescriptor); + methodDescriptors.add(batchDeleteConversationsMethodDescriptor); + methodDescriptors.add(createToolMethodDescriptor); + methodDescriptors.add(updateToolMethodDescriptor); + methodDescriptors.add(deleteToolMethodDescriptor); + methodDescriptors.add(listGuardrailsMethodDescriptor); + methodDescriptors.add(getGuardrailMethodDescriptor); + methodDescriptors.add(createGuardrailMethodDescriptor); + methodDescriptors.add(updateGuardrailMethodDescriptor); + methodDescriptors.add(deleteGuardrailMethodDescriptor); + methodDescriptors.add(listDeploymentsMethodDescriptor); + methodDescriptors.add(getDeploymentMethodDescriptor); + methodDescriptors.add(createDeploymentMethodDescriptor); + methodDescriptors.add(updateDeploymentMethodDescriptor); + methodDescriptors.add(deleteDeploymentMethodDescriptor); + methodDescriptors.add(listToolsetsMethodDescriptor); + methodDescriptors.add(getToolsetMethodDescriptor); + methodDescriptors.add(createToolsetMethodDescriptor); + methodDescriptors.add(updateToolsetMethodDescriptor); + methodDescriptors.add(deleteToolsetMethodDescriptor); + methodDescriptors.add(listAppVersionsMethodDescriptor); + methodDescriptors.add(getAppVersionMethodDescriptor); + methodDescriptors.add(createAppVersionMethodDescriptor); + methodDescriptors.add(deleteAppVersionMethodDescriptor); + methodDescriptors.add(restoreAppVersionMethodDescriptor); + methodDescriptors.add(listChangelogsMethodDescriptor); + methodDescriptors.add(getChangelogMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable listAppsCallable() { + return listAppsCallable; + } + + @Override + public UnaryCallable listAppsPagedCallable() { + return listAppsPagedCallable; + } + + @Override + public UnaryCallable getAppCallable() { + return getAppCallable; + } + + @Override + public UnaryCallable createAppCallable() { + return createAppCallable; + } + + @Override + public OperationCallable createAppOperationCallable() { + return createAppOperationCallable; + } + + @Override + public UnaryCallable updateAppCallable() { + return updateAppCallable; + } + + @Override + public UnaryCallable deleteAppCallable() { + return deleteAppCallable; + } + + @Override + public OperationCallable + deleteAppOperationCallable() { + return deleteAppOperationCallable; + } + + @Override + public UnaryCallable exportAppCallable() { + return exportAppCallable; + } + + @Override + public OperationCallable + exportAppOperationCallable() { + return exportAppOperationCallable; + } + + @Override + public UnaryCallable importAppCallable() { + return importAppCallable; + } + + @Override + public OperationCallable + importAppOperationCallable() { + return importAppOperationCallable; + } + + @Override + public UnaryCallable listAgentsCallable() { + return listAgentsCallable; + } + + @Override + public UnaryCallable listAgentsPagedCallable() { + return listAgentsPagedCallable; + } + + @Override + public UnaryCallable getAgentCallable() { + return getAgentCallable; + } + + @Override + public UnaryCallable createAgentCallable() { + return createAgentCallable; + } + + @Override + public UnaryCallable updateAgentCallable() { + return updateAgentCallable; + } + + @Override + public UnaryCallable deleteAgentCallable() { + return deleteAgentCallable; + } + + @Override + public UnaryCallable listExamplesCallable() { + return listExamplesCallable; + } + + @Override + public UnaryCallable listExamplesPagedCallable() { + return listExamplesPagedCallable; + } + + @Override + public UnaryCallable getExampleCallable() { + return getExampleCallable; + } + + @Override + public UnaryCallable createExampleCallable() { + return createExampleCallable; + } + + @Override + public UnaryCallable updateExampleCallable() { + return updateExampleCallable; + } + + @Override + public UnaryCallable deleteExampleCallable() { + return deleteExampleCallable; + } + + @Override + public UnaryCallable listToolsCallable() { + return listToolsCallable; + } + + @Override + public UnaryCallable listToolsPagedCallable() { + return listToolsPagedCallable; + } + + @Override + public UnaryCallable getToolCallable() { + return getToolCallable; + } + + @Override + public UnaryCallable + listConversationsCallable() { + return listConversationsCallable; + } + + @Override + public UnaryCallable + listConversationsPagedCallable() { + return listConversationsPagedCallable; + } + + @Override + public UnaryCallable getConversationCallable() { + return getConversationCallable; + } + + @Override + public UnaryCallable deleteConversationCallable() { + return deleteConversationCallable; + } + + @Override + public UnaryCallable + batchDeleteConversationsCallable() { + return batchDeleteConversationsCallable; + } + + @Override + public OperationCallable< + BatchDeleteConversationsRequest, BatchDeleteConversationsResponse, OperationMetadata> + batchDeleteConversationsOperationCallable() { + return batchDeleteConversationsOperationCallable; + } + + @Override + public UnaryCallable createToolCallable() { + return createToolCallable; + } + + @Override + public UnaryCallable updateToolCallable() { + return updateToolCallable; + } + + @Override + public UnaryCallable deleteToolCallable() { + return deleteToolCallable; + } + + @Override + public UnaryCallable listGuardrailsCallable() { + return listGuardrailsCallable; + } + + @Override + public UnaryCallable + listGuardrailsPagedCallable() { + return listGuardrailsPagedCallable; + } + + @Override + public UnaryCallable getGuardrailCallable() { + return getGuardrailCallable; + } + + @Override + public UnaryCallable createGuardrailCallable() { + return createGuardrailCallable; + } + + @Override + public UnaryCallable updateGuardrailCallable() { + return updateGuardrailCallable; + } + + @Override + public UnaryCallable deleteGuardrailCallable() { + return deleteGuardrailCallable; + } + + @Override + public UnaryCallable listDeploymentsCallable() { + return listDeploymentsCallable; + } + + @Override + public UnaryCallable + listDeploymentsPagedCallable() { + return listDeploymentsPagedCallable; + } + + @Override + public UnaryCallable getDeploymentCallable() { + return getDeploymentCallable; + } + + @Override + public UnaryCallable createDeploymentCallable() { + return createDeploymentCallable; + } + + @Override + public UnaryCallable updateDeploymentCallable() { + return updateDeploymentCallable; + } + + @Override + public UnaryCallable deleteDeploymentCallable() { + return deleteDeploymentCallable; + } + + @Override + public UnaryCallable listToolsetsCallable() { + return listToolsetsCallable; + } + + @Override + public UnaryCallable listToolsetsPagedCallable() { + return listToolsetsPagedCallable; + } + + @Override + public UnaryCallable getToolsetCallable() { + return getToolsetCallable; + } + + @Override + public UnaryCallable createToolsetCallable() { + return createToolsetCallable; + } + + @Override + public UnaryCallable updateToolsetCallable() { + return updateToolsetCallable; + } + + @Override + public UnaryCallable deleteToolsetCallable() { + return deleteToolsetCallable; + } + + @Override + public UnaryCallable listAppVersionsCallable() { + return listAppVersionsCallable; + } + + @Override + public UnaryCallable + listAppVersionsPagedCallable() { + return listAppVersionsPagedCallable; + } + + @Override + public UnaryCallable getAppVersionCallable() { + return getAppVersionCallable; + } + + @Override + public UnaryCallable createAppVersionCallable() { + return createAppVersionCallable; + } + + @Override + public UnaryCallable deleteAppVersionCallable() { + return deleteAppVersionCallable; + } + + @Override + public UnaryCallable restoreAppVersionCallable() { + return restoreAppVersionCallable; + } + + @Override + public OperationCallable + restoreAppVersionOperationCallable() { + return restoreAppVersionOperationCallable; + } + + @Override + public UnaryCallable listChangelogsCallable() { + return listChangelogsCallable; + } + + @Override + public UnaryCallable + listChangelogsPagedCallable() { + return listChangelogsPagedCallable; + } + + @Override + public UnaryCallable getChangelogCallable() { + return getChangelogCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonSessionServiceCallableFactory.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonSessionServiceCallableFactory.java new file mode 100644 index 000000000000..693383f9e626 --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonSessionServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the SessionService service API. + * + *

      This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonSessionServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonSessionServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonSessionServiceStub.java new file mode 100644 index 000000000000..189d73442f2e --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonSessionServiceStub.java @@ -0,0 +1,340 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.stub; + +import static com.google.cloud.ces.v1.SessionServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.ces.v1.BidiSessionClientMessage; +import com.google.cloud.ces.v1.BidiSessionServerMessage; +import com.google.cloud.ces.v1.RunSessionRequest; +import com.google.cloud.ces.v1.RunSessionResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the SessionService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonSessionServiceStub extends SessionServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + runSessionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.SessionService/RunSession") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{config.session=projects/*/locations/*/apps/*/sessions/*}:runSession", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "config.session", request.getConfig().getSession()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(RunSessionResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*}/locations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable runSessionCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonSessionServiceStub create(SessionServiceStubSettings settings) + throws IOException { + return new HttpJsonSessionServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonSessionServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonSessionServiceStub( + SessionServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonSessionServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonSessionServiceStub( + SessionServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonSessionServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonSessionServiceStub( + SessionServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonSessionServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonSessionServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonSessionServiceStub( + SessionServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings runSessionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(runSessionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("config.session", String.valueOf(request.getConfig().getSession())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.runSessionCallable = + callableFactory.createUnaryCallable( + runSessionTransportSettings, settings.runSessionSettings(), clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(runSessionMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable runSessionCallable() { + return runSessionCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public BidiStreamingCallable + bidiRunSessionCallable() { + throw new UnsupportedOperationException( + "Not implemented: bidiRunSessionCallable(). REST transport is not implemented for this" + + " method yet."); + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonToolServiceCallableFactory.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonToolServiceCallableFactory.java new file mode 100644 index 000000000000..91674cb3571e --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonToolServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the ToolService service API. + * + *

      This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonToolServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonToolServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonToolServiceStub.java new file mode 100644 index 000000000000..cef1971c408b --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonToolServiceStub.java @@ -0,0 +1,454 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.stub; + +import static com.google.cloud.ces.v1.ToolServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.ces.v1.ExecuteToolRequest; +import com.google.cloud.ces.v1.ExecuteToolResponse; +import com.google.cloud.ces.v1.RetrieveToolSchemaRequest; +import com.google.cloud.ces.v1.RetrieveToolSchemaResponse; +import com.google.cloud.ces.v1.RetrieveToolsRequest; +import com.google.cloud.ces.v1.RetrieveToolsResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the ToolService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonToolServiceStub extends ToolServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + executeToolMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.ToolService/ExecuteTool") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/apps/*}:executeTool", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ExecuteToolResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + retrieveToolSchemaMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.ToolService/RetrieveToolSchema") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/apps/*}:retrieveToolSchema", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(RetrieveToolSchemaResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + retrieveToolsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.ToolService/RetrieveTools") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{toolset=projects/*/locations/*/apps/*/toolsets/*}:retrieveTools", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "toolset", request.getToolset()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearToolset().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(RetrieveToolsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*}/locations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable executeToolCallable; + private final UnaryCallable + retrieveToolSchemaCallable; + private final UnaryCallable retrieveToolsCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonToolServiceStub create(ToolServiceStubSettings settings) + throws IOException { + return new HttpJsonToolServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonToolServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonToolServiceStub( + ToolServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonToolServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonToolServiceStub( + ToolServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonToolServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonToolServiceStub(ToolServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonToolServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonToolServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonToolServiceStub( + ToolServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings executeToolTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(executeToolMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + retrieveToolSchemaTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(retrieveToolSchemaMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + retrieveToolsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(retrieveToolsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("toolset", String.valueOf(request.getToolset())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.executeToolCallable = + callableFactory.createUnaryCallable( + executeToolTransportSettings, settings.executeToolSettings(), clientContext); + this.retrieveToolSchemaCallable = + callableFactory.createUnaryCallable( + retrieveToolSchemaTransportSettings, + settings.retrieveToolSchemaSettings(), + clientContext); + this.retrieveToolsCallable = + callableFactory.createUnaryCallable( + retrieveToolsTransportSettings, settings.retrieveToolsSettings(), clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(executeToolMethodDescriptor); + methodDescriptors.add(retrieveToolSchemaMethodDescriptor); + methodDescriptors.add(retrieveToolsMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable executeToolCallable() { + return executeToolCallable; + } + + @Override + public UnaryCallable + retrieveToolSchemaCallable() { + return retrieveToolSchemaCallable; + } + + @Override + public UnaryCallable retrieveToolsCallable() { + return retrieveToolsCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonWidgetServiceCallableFactory.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonWidgetServiceCallableFactory.java new file mode 100644 index 000000000000..956997d83b82 --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonWidgetServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the WidgetService service API. + * + *

      This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonWidgetServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonWidgetServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonWidgetServiceStub.java new file mode 100644 index 000000000000..7a9353e653a4 --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/HttpJsonWidgetServiceStub.java @@ -0,0 +1,333 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.stub; + +import static com.google.cloud.ces.v1.WidgetServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.ces.v1.GenerateChatTokenRequest; +import com.google.cloud.ces.v1.GenerateChatTokenResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the WidgetService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonWidgetServiceStub extends WidgetServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + generateChatTokenMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1.WidgetService/GenerateChatToken") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/apps/*/sessions/*}:generateChatToken", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(GenerateChatTokenResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*}/locations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + generateChatTokenCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonWidgetServiceStub create(WidgetServiceStubSettings settings) + throws IOException { + return new HttpJsonWidgetServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonWidgetServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonWidgetServiceStub( + WidgetServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonWidgetServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonWidgetServiceStub( + WidgetServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonWidgetServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonWidgetServiceStub( + WidgetServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonWidgetServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonWidgetServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonWidgetServiceStub( + WidgetServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + generateChatTokenTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(generateChatTokenMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.generateChatTokenCallable = + callableFactory.createUnaryCallable( + generateChatTokenTransportSettings, + settings.generateChatTokenSettings(), + clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(generateChatTokenMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable + generateChatTokenCallable() { + return generateChatTokenCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/SessionServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/SessionServiceStub.java new file mode 100644 index 000000000000..900962d39040 --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/SessionServiceStub.java @@ -0,0 +1,67 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.stub; + +import static com.google.cloud.ces.v1.SessionServiceClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.ces.v1.BidiSessionClientMessage; +import com.google.cloud.ces.v1.BidiSessionServerMessage; +import com.google.cloud.ces.v1.RunSessionRequest; +import com.google.cloud.ces.v1.RunSessionResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the SessionService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class SessionServiceStub implements BackgroundResource { + + public UnaryCallable runSessionCallable() { + throw new UnsupportedOperationException("Not implemented: runSessionCallable()"); + } + + public BidiStreamingCallable + bidiRunSessionCallable() { + throw new UnsupportedOperationException("Not implemented: bidiRunSessionCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/SessionServiceStubSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/SessionServiceStubSettings.java new file mode 100644 index 000000000000..465aa211f456 --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/SessionServiceStubSettings.java @@ -0,0 +1,509 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.stub; + +import static com.google.cloud.ces.v1.SessionServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.ces.v1.BidiSessionClientMessage; +import com.google.cloud.ces.v1.BidiSessionServerMessage; +import com.google.cloud.ces.v1.RunSessionRequest; +import com.google.cloud.ces.v1.RunSessionResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link SessionServiceStub}. + * + *

      The default instance has everything set to sensible defaults: + * + *

        + *
      • The default service address (ces.googleapis.com) and default port (443) are used. + *
      • Credentials are acquired automatically through Application Default Credentials. + *
      • Retries are configured for idempotent methods but not for non-idempotent methods. + *
      + * + *

      The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

      For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of runSession: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * SessionServiceStubSettings.Builder sessionServiceSettingsBuilder =
      + *     SessionServiceStubSettings.newBuilder();
      + * sessionServiceSettingsBuilder
      + *     .runSessionSettings()
      + *     .setRetrySettings(
      + *         sessionServiceSettingsBuilder
      + *             .runSessionSettings()
      + *             .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());
      + * SessionServiceStubSettings sessionServiceSettings = sessionServiceSettingsBuilder.build();
      + * }
      + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@Generated("by gapic-generator-java") +public class SessionServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/ces") + .add("https://www.googleapis.com/auth/cloud-platform") + .build(); + + private final UnaryCallSettings runSessionSettings; + private final StreamingCallSettings + bidiRunSessionSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to runSession. */ + public UnaryCallSettings runSessionSettings() { + return runSessionSettings; + } + + /** Returns the object with the settings used for calls to bidiRunSession. */ + public StreamingCallSettings + bidiRunSessionSettings() { + return bidiRunSessionSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + public SessionServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcSessionServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonSessionServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "ces"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "ces.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "ces.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SessionServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SessionServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SessionServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected SessionServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + runSessionSettings = settingsBuilder.runSessionSettings().build(); + bidiRunSessionSettings = settingsBuilder.bidiRunSessionSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + } + + /** Builder for SessionServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + runSessionSettings; + private final StreamingCallSettings.Builder + bidiRunSessionSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_2_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(60000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(220000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(220000L)) + .setTotalTimeoutDuration(Duration.ofMillis(220000L)) + .build(); + definitions.put("retry_policy_1_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(60000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(3600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(3600000L)) + .setTotalTimeoutDuration(Duration.ofMillis(3600000L)) + .build(); + definitions.put("retry_policy_2_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(60000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setTotalTimeoutDuration(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + runSessionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + bidiRunSessionSettings = StreamingCallSettings.newBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + runSessionSettings, listLocationsSettings, getLocationSettings); + initDefaults(this); + } + + protected Builder(SessionServiceStubSettings settings) { + super(settings); + + runSessionSettings = settings.runSessionSettings.toBuilder(); + bidiRunSessionSettings = settings.bidiRunSessionSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + runSessionSettings, listLocationsSettings, getLocationSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .runSessionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

      Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to runSession. */ + public UnaryCallSettings.Builder runSessionSettings() { + return runSessionSettings; + } + + /** Returns the builder for the settings used for calls to bidiRunSession. */ + public StreamingCallSettings.Builder + bidiRunSessionSettings() { + return bidiRunSessionSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + @Override + public SessionServiceStubSettings build() throws IOException { + return new SessionServiceStubSettings(this); + } + } +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/ToolServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/ToolServiceStub.java new file mode 100644 index 000000000000..6a985c6215b9 --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/ToolServiceStub.java @@ -0,0 +1,72 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.stub; + +import static com.google.cloud.ces.v1.ToolServiceClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.ces.v1.ExecuteToolRequest; +import com.google.cloud.ces.v1.ExecuteToolResponse; +import com.google.cloud.ces.v1.RetrieveToolSchemaRequest; +import com.google.cloud.ces.v1.RetrieveToolSchemaResponse; +import com.google.cloud.ces.v1.RetrieveToolsRequest; +import com.google.cloud.ces.v1.RetrieveToolsResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the ToolService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class ToolServiceStub implements BackgroundResource { + + public UnaryCallable executeToolCallable() { + throw new UnsupportedOperationException("Not implemented: executeToolCallable()"); + } + + public UnaryCallable + retrieveToolSchemaCallable() { + throw new UnsupportedOperationException("Not implemented: retrieveToolSchemaCallable()"); + } + + public UnaryCallable retrieveToolsCallable() { + throw new UnsupportedOperationException("Not implemented: retrieveToolsCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/ToolServiceStubSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/ToolServiceStubSettings.java new file mode 100644 index 000000000000..fe941f7615ac --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/ToolServiceStubSettings.java @@ -0,0 +1,521 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.stub; + +import static com.google.cloud.ces.v1.ToolServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.ces.v1.ExecuteToolRequest; +import com.google.cloud.ces.v1.ExecuteToolResponse; +import com.google.cloud.ces.v1.RetrieveToolSchemaRequest; +import com.google.cloud.ces.v1.RetrieveToolSchemaResponse; +import com.google.cloud.ces.v1.RetrieveToolsRequest; +import com.google.cloud.ces.v1.RetrieveToolsResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ToolServiceStub}. + * + *

      The default instance has everything set to sensible defaults: + * + *

        + *
      • The default service address (ces.googleapis.com) and default port (443) are used. + *
      • Credentials are acquired automatically through Application Default Credentials. + *
      • Retries are configured for idempotent methods but not for non-idempotent methods. + *
      + * + *

      The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

      For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of executeTool: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * ToolServiceStubSettings.Builder toolServiceSettingsBuilder =
      + *     ToolServiceStubSettings.newBuilder();
      + * toolServiceSettingsBuilder
      + *     .executeToolSettings()
      + *     .setRetrySettings(
      + *         toolServiceSettingsBuilder
      + *             .executeToolSettings()
      + *             .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());
      + * ToolServiceStubSettings toolServiceSettings = toolServiceSettingsBuilder.build();
      + * }
      + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@Generated("by gapic-generator-java") +public class ToolServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/ces") + .add("https://www.googleapis.com/auth/cloud-platform") + .build(); + + private final UnaryCallSettings executeToolSettings; + private final UnaryCallSettings + retrieveToolSchemaSettings; + private final UnaryCallSettings + retrieveToolsSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to executeTool. */ + public UnaryCallSettings executeToolSettings() { + return executeToolSettings; + } + + /** Returns the object with the settings used for calls to retrieveToolSchema. */ + public UnaryCallSettings + retrieveToolSchemaSettings() { + return retrieveToolSchemaSettings; + } + + /** Returns the object with the settings used for calls to retrieveTools. */ + public UnaryCallSettings retrieveToolsSettings() { + return retrieveToolsSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + public ToolServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcToolServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonToolServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "ces"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "ces.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "ces.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ToolServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ToolServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ToolServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ToolServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + executeToolSettings = settingsBuilder.executeToolSettings().build(); + retrieveToolSchemaSettings = settingsBuilder.retrieveToolSchemaSettings().build(); + retrieveToolsSettings = settingsBuilder.retrieveToolsSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + } + + /** Builder for ToolServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + executeToolSettings; + private final UnaryCallSettings.Builder + retrieveToolSchemaSettings; + private final UnaryCallSettings.Builder + retrieveToolsSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(60000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setTotalTimeoutDuration(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + executeToolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + retrieveToolSchemaSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + retrieveToolsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + executeToolSettings, + retrieveToolSchemaSettings, + retrieveToolsSettings, + listLocationsSettings, + getLocationSettings); + initDefaults(this); + } + + protected Builder(ToolServiceStubSettings settings) { + super(settings); + + executeToolSettings = settings.executeToolSettings.toBuilder(); + retrieveToolSchemaSettings = settings.retrieveToolSchemaSettings.toBuilder(); + retrieveToolsSettings = settings.retrieveToolsSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + executeToolSettings, + retrieveToolSchemaSettings, + retrieveToolsSettings, + listLocationsSettings, + getLocationSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .executeToolSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .retrieveToolSchemaSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .retrieveToolsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

      Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to executeTool. */ + public UnaryCallSettings.Builder + executeToolSettings() { + return executeToolSettings; + } + + /** Returns the builder for the settings used for calls to retrieveToolSchema. */ + public UnaryCallSettings.Builder + retrieveToolSchemaSettings() { + return retrieveToolSchemaSettings; + } + + /** Returns the builder for the settings used for calls to retrieveTools. */ + public UnaryCallSettings.Builder + retrieveToolsSettings() { + return retrieveToolsSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + @Override + public ToolServiceStubSettings build() throws IOException { + return new ToolServiceStubSettings(this); + } + } +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/WidgetServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/WidgetServiceStub.java new file mode 100644 index 000000000000..eddbd746e902 --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/WidgetServiceStub.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.stub; + +import static com.google.cloud.ces.v1.WidgetServiceClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.ces.v1.GenerateChatTokenRequest; +import com.google.cloud.ces.v1.GenerateChatTokenResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the WidgetService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class WidgetServiceStub implements BackgroundResource { + + public UnaryCallable + generateChatTokenCallable() { + throw new UnsupportedOperationException("Not implemented: generateChatTokenCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/WidgetServiceStubSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/WidgetServiceStubSettings.java new file mode 100644 index 000000000000..22fbbbe9c689 --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/WidgetServiceStubSettings.java @@ -0,0 +1,450 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.stub; + +import static com.google.cloud.ces.v1.WidgetServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.ces.v1.GenerateChatTokenRequest; +import com.google.cloud.ces.v1.GenerateChatTokenResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link WidgetServiceStub}. + * + *

      The default instance has everything set to sensible defaults: + * + *

        + *
      • The default service address (ces.googleapis.com) and default port (443) are used. + *
      • Credentials are acquired automatically through Application Default Credentials. + *
      • Retries are configured for idempotent methods but not for non-idempotent methods. + *
      + * + *

      The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

      For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of generateChatToken: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * WidgetServiceStubSettings.Builder widgetServiceSettingsBuilder =
      + *     WidgetServiceStubSettings.newBuilder();
      + * widgetServiceSettingsBuilder
      + *     .generateChatTokenSettings()
      + *     .setRetrySettings(
      + *         widgetServiceSettingsBuilder
      + *             .generateChatTokenSettings()
      + *             .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());
      + * WidgetServiceStubSettings widgetServiceSettings = widgetServiceSettingsBuilder.build();
      + * }
      + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@Generated("by gapic-generator-java") +public class WidgetServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/ces") + .add("https://www.googleapis.com/auth/cloud-platform") + .build(); + + private final UnaryCallSettings + generateChatTokenSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to generateChatToken. */ + public UnaryCallSettings + generateChatTokenSettings() { + return generateChatTokenSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + public WidgetServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcWidgetServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonWidgetServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "ces"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "ces.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "ces.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(WidgetServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(WidgetServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return WidgetServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected WidgetServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + generateChatTokenSettings = settingsBuilder.generateChatTokenSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + } + + /** Builder for WidgetServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + generateChatTokenSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + generateChatTokenSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + generateChatTokenSettings, listLocationsSettings, getLocationSettings); + initDefaults(this); + } + + protected Builder(WidgetServiceStubSettings settings) { + super(settings); + + generateChatTokenSettings = settings.generateChatTokenSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + generateChatTokenSettings, listLocationsSettings, getLocationSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .generateChatTokenSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

      Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to generateChatToken. */ + public UnaryCallSettings.Builder + generateChatTokenSettings() { + return generateChatTokenSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + @Override + public WidgetServiceStubSettings build() throws IOException { + return new WidgetServiceStubSettings(this); + } + } +} diff --git a/java-ces/google-cloud-ces/src/main/resources/META-INF/native-image/com.google.cloud.ces.v1/reflect-config.json b/java-ces/google-cloud-ces/src/main/resources/META-INF/native-image/com.google.cloud.ces.v1/reflect-config.json new file mode 100644 index 000000000000..53250a2f460e --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/resources/META-INF/native-image/com.google.cloud.ces.v1/reflect-config.json @@ -0,0 +1,5771 @@ +[ + { + "name": "com.google.api.ClientLibraryDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibraryOrganization", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LaunchStage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$ExperimentalFeatures", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$ExperimentalFeatures$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$History", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Style", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Action", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Action$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Action$EntityOperation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Action$EntityOperation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Action$EntityOperation$OperationType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Agent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Agent$AgentToolset", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Agent$AgentToolset$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Agent$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Agent$LlmAgent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Agent$LlmAgent$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Agent$RemoteDialogflowAgent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Agent$RemoteDialogflowAgent$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.AgentTransfer", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.AgentTransfer$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.AmbientSoundConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.AmbientSoundConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.AmbientSoundConfig$PrebuiltAmbientNoise", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ApiAuthentication", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ApiAuthentication$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ApiKeyConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ApiKeyConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ApiKeyConfig$RequestLocation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.App", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.App$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.App$ToolExecutionMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.App$VariableDeclaration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.App$VariableDeclaration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.AppSnapshot", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.AppSnapshot$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.AppVersion", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.AppVersion$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.AudioEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.AudioProcessingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.AudioProcessingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.AudioRecordingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.AudioRecordingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.BargeInConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.BargeInConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.BatchDeleteConversationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.BatchDeleteConversationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.BatchDeleteConversationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.BatchDeleteConversationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.BearerTokenConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.BearerTokenConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.BidiSessionClientMessage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.BidiSessionClientMessage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.BidiSessionServerMessage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.BidiSessionServerMessage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.BigQueryExportSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.BigQueryExportSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Blob", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Blob$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Callback", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Callback$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Changelog", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Changelog$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ChannelProfile", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ChannelProfile$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ChannelProfile$ChannelType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ChannelProfile$PersonaProperty", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ChannelProfile$PersonaProperty$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ChannelProfile$PersonaProperty$Persona", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ChannelProfile$WebWidgetConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ChannelProfile$WebWidgetConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ChannelProfile$WebWidgetConfig$Modality", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ChannelProfile$WebWidgetConfig$SecuritySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ChannelProfile$WebWidgetConfig$SecuritySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ChannelProfile$WebWidgetConfig$Theme", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Chunk", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Chunk$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Citations", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Citations$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Citations$CitedChunk", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Citations$CitedChunk$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ClientCertificateSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ClientCertificateSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ClientFunction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ClientFunction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.CloudLoggingSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.CloudLoggingSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.CodeBlock", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.CodeBlock$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ConnectorTool", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ConnectorTool$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ConnectorToolset", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ConnectorToolset$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Conversation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Conversation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Conversation$ChannelType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Conversation$InputType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Conversation$Source", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Conversation$Turn", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Conversation$Turn$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ConversationLoggingSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ConversationLoggingSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.CreateAgentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.CreateAgentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.CreateAppRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.CreateAppRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.CreateAppVersionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.CreateAppVersionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.CreateDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.CreateDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.CreateExampleRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.CreateExampleRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.CreateGuardrailRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.CreateGuardrailRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.CreateToolRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.CreateToolRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.CreateToolsetRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.CreateToolsetRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStore", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStore$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStore$ConnectorConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStore$ConnectorConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStore$DataStoreType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStore$DocumentProcessingMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStoreSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStoreSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStoreSettings$Engine", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStoreSettings$Engine$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStoreSettings$Engine$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStoreTool", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStoreTool$BoostSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStoreTool$BoostSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStoreTool$BoostSpec$ConditionBoostSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStoreTool$BoostSpec$ConditionBoostSpec$BoostControlSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStoreTool$BoostSpec$ConditionBoostSpec$BoostControlSpec$AttributeType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStoreTool$BoostSpec$ConditionBoostSpec$BoostControlSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStoreTool$BoostSpec$ConditionBoostSpec$BoostControlSpec$ControlPoint", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStoreTool$BoostSpec$ConditionBoostSpec$BoostControlSpec$ControlPoint$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStoreTool$BoostSpec$ConditionBoostSpec$BoostControlSpec$InterpolationType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStoreTool$BoostSpec$ConditionBoostSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStoreTool$BoostSpecs", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStoreTool$BoostSpecs$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStoreTool$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStoreTool$DataStoreSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStoreTool$DataStoreSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStoreTool$EngineSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStoreTool$EngineSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStoreTool$FilterParameterBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStoreTool$GroundingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStoreTool$GroundingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStoreTool$ModalityConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStoreTool$ModalityConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStoreTool$ModalityConfig$ModalityType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStoreTool$RewriterConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStoreTool$RewriterConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStoreTool$SummarizationConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DataStoreTool$SummarizationConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DeleteAgentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DeleteAgentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DeleteAppRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DeleteAppRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DeleteAppVersionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DeleteAppVersionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DeleteConversationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DeleteConversationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DeleteDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DeleteDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DeleteExampleRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DeleteExampleRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DeleteGuardrailRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DeleteGuardrailRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DeleteToolRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DeleteToolRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DeleteToolsetRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.DeleteToolsetRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Deployment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Deployment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.EndSession", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.EndSession$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.EndUserAuthConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.EndUserAuthConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.EndUserAuthConfig$Oauth2AuthCodeConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.EndUserAuthConfig$Oauth2AuthCodeConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.EndUserAuthConfig$Oauth2JwtBearerConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.EndUserAuthConfig$Oauth2JwtBearerConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.EvaluationMetricsThresholds", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.EvaluationMetricsThresholds$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds$ExpectationLevelMetricsThresholds", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds$ExpectationLevelMetricsThresholds$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds$TurnLevelMetricsThresholds", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds$TurnLevelMetricsThresholds$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds$TurnLevelMetricsThresholds$SemanticSimilarityChannel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.EvaluationMetricsThresholds$HallucinationMetricBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.EvaluationMetricsThresholds$ToolMatchingSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.EvaluationMetricsThresholds$ToolMatchingSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.EvaluationMetricsThresholds$ToolMatchingSettings$ExtraToolCallBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Event", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Event$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Example", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Example$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ExecuteToolRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ExecuteToolRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ExecuteToolResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ExecuteToolResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ExecutionType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ExportAppRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ExportAppRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ExportAppRequest$ExportFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ExportAppResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ExportAppResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ExpressionCondition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ExpressionCondition$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.FileSearchTool", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.FileSearchTool$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.FileSearchTool$CorpusType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.GenerateChatTokenRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.GenerateChatTokenRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.GenerateChatTokenResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.GenerateChatTokenResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.GetAgentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.GetAgentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.GetAppRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.GetAppRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.GetAppVersionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.GetAppVersionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.GetChangelogRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.GetChangelogRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.GetConversationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.GetConversationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.GetDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.GetDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.GetExampleRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.GetExampleRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.GetGuardrailRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.GetGuardrailRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.GetToolRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.GetToolRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.GetToolsetRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.GetToolsetRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.GoAway", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.GoAway$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.GoogleSearchSuggestions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.GoogleSearchSuggestions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.GoogleSearchTool", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.GoogleSearchTool$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.GoogleSearchTool$PromptConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.GoogleSearchTool$PromptConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Guardrail", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Guardrail$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Guardrail$CodeCallback", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Guardrail$CodeCallback$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Guardrail$ContentFilter", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Guardrail$ContentFilter$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Guardrail$ContentFilter$MatchType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Guardrail$LlmPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Guardrail$LlmPolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Guardrail$LlmPolicy$PolicyScope", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Guardrail$LlmPromptSecurity", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Guardrail$LlmPromptSecurity$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Guardrail$LlmPromptSecurity$DefaultSecuritySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Guardrail$LlmPromptSecurity$DefaultSecuritySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Guardrail$ModelSafety", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Guardrail$ModelSafety$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Guardrail$ModelSafety$HarmBlockThreshold", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Guardrail$ModelSafety$HarmCategory", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Guardrail$ModelSafety$SafetySetting", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Guardrail$ModelSafety$SafetySetting$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Image", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Image$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ImportAppRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ImportAppRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ImportAppRequest$ImportOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ImportAppRequest$ImportOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ImportAppRequest$ImportOptions$ConflictResolutionStrategy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ImportAppResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ImportAppResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.InputAudioConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.InputAudioConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.InterruptionSignal", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.InterruptionSignal$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.LanguageSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.LanguageSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListAgentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListAgentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListAgentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListAgentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListAppVersionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListAppVersionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListAppVersionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListAppVersionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListAppsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListAppsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListAppsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListAppsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListChangelogsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListChangelogsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListChangelogsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListChangelogsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListConversationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListConversationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListConversationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListConversationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListDeploymentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListDeploymentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListDeploymentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListDeploymentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListExamplesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListExamplesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListExamplesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListExamplesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListGuardrailsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListGuardrailsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListGuardrailsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListGuardrailsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListToolsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListToolsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListToolsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListToolsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListToolsetsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListToolsetsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListToolsetsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ListToolsetsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.LoggingSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.LoggingSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.McpTool", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.McpTool$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.McpToolset", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.McpToolset$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Message", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Message$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.MetricAnalysisSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.MetricAnalysisSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ModelSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ModelSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.OAuthConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.OAuthConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.OAuthConfig$OauthGrantType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Omnichannel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Omnichannel$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.OmnichannelIntegrationConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.OmnichannelIntegrationConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.OmnichannelIntegrationConfig$CesAppConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.OmnichannelIntegrationConfig$CesAppConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.OmnichannelIntegrationConfig$ChannelConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.OmnichannelIntegrationConfig$ChannelConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.OmnichannelIntegrationConfig$RoutingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.OmnichannelIntegrationConfig$RoutingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.OmnichannelIntegrationConfig$SubscriberConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.OmnichannelIntegrationConfig$SubscriberConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.OmnichannelIntegrationConfig$WhatsappConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.OmnichannelIntegrationConfig$WhatsappConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.OmnichannelOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.OmnichannelOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.OpenApiTool", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.OpenApiTool$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.OpenApiToolset", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.OpenApiToolset$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.OperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.OperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.OutputAudioConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.OutputAudioConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.PythonCodeCondition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.PythonCodeCondition$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.PythonFunction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.PythonFunction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.RecognitionResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.RecognitionResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.RedactionConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.RedactionConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.RestoreAppVersionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.RestoreAppVersionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.RestoreAppVersionResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.RestoreAppVersionResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.RetrieveToolSchemaRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.RetrieveToolSchemaRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.RetrieveToolSchemaResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.RetrieveToolSchemaResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.RetrieveToolsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.RetrieveToolsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.RetrieveToolsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.RetrieveToolsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.RunSessionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.RunSessionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.RunSessionResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.RunSessionResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Schema", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Schema$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Schema$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ServiceAccountAuthConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ServiceAccountAuthConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ServiceDirectoryConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ServiceDirectoryConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.SessionConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.SessionConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.SessionConfig$RemoteDialogflowQueryParameters", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.SessionConfig$RemoteDialogflowQueryParameters$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.SessionInput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.SessionInput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.SessionOutput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.SessionOutput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.SessionOutput$DiagnosticInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.SessionOutput$DiagnosticInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Span", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Span$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.SynthesizeSpeechConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.SynthesizeSpeechConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.SystemTool", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.SystemTool$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.TimeZoneSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.TimeZoneSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.TlsConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.TlsConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.TlsConfig$CaCert", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.TlsConfig$CaCert$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Tool", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Tool$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ToolCall", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ToolCall$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ToolCalls", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ToolCalls$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ToolFakeConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ToolFakeConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ToolResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ToolResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ToolResponses", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ToolResponses$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Toolset", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.Toolset$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ToolsetTool", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.ToolsetTool$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.TransferRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.TransferRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.TransferRule$DeterministicTransfer", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.TransferRule$DeterministicTransfer$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.TransferRule$Direction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.TransferRule$DisablePlannerTransfer", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.TransferRule$DisablePlannerTransfer$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.TriggerAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.TriggerAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.TriggerAction$GenerativeAnswer", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.TriggerAction$GenerativeAnswer$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.TriggerAction$RespondImmediately", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.TriggerAction$RespondImmediately$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.TriggerAction$Response", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.TriggerAction$Response$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.TriggerAction$TransferAgent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.TriggerAction$TransferAgent$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.UpdateAgentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.UpdateAgentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.UpdateAppRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.UpdateAppRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.UpdateDeploymentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.UpdateDeploymentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.UpdateExampleRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.UpdateExampleRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.UpdateGuardrailRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.UpdateGuardrailRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.UpdateToolRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.UpdateToolRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.UpdateToolsetRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.UpdateToolsetRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.WebSearchQuery", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.WebSearchQuery$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.WidgetTool", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.WidgetTool$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1.WidgetTool$WidgetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.GetLocationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.GetLocationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$Edition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnforceNamingStyle", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnumType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$FieldPresence", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$JsonFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$MessageEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$RepeatedFieldEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Utf8Validation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$VisibilityFeature", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$VisibilityFeature$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$VisibilityFeature$DefaultSymbolVisibility", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$FeatureSupport", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$FeatureSupport$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SymbolVisibility", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.ListValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.ListValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.NullValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Struct", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Struct$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Value", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Value$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + } +] \ No newline at end of file diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/AgentServiceClientHttpJsonTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/AgentServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..b82d4910c770 --- /dev/null +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/AgentServiceClientHttpJsonTest.java @@ -0,0 +1,5936 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import static com.google.cloud.ces.v1.AgentServiceClient.ListAgentsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListAppVersionsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListAppsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListChangelogsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListConversationsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListDeploymentsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListExamplesPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListGuardrailsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListToolsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListToolsetsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.ces.v1.stub.HttpJsonAgentServiceStub; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Struct; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AgentServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static AgentServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonAgentServiceStub.getMethodDescriptors(), + AgentServiceSettings.getDefaultEndpoint()); + AgentServiceSettings settings = + AgentServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + AgentServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AgentServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listAppsTest() throws Exception { + App responsesElement = App.newBuilder().build(); + ListAppsResponse expectedResponse = + ListAppsResponse.newBuilder() + .setNextPageToken("") + .addAllApps(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAppsPagedResponse pagedListResponse = client.listApps(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAppsList().get(0), resources.get(0)); + + 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 listAppsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listApps(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAppsTest2() throws Exception { + App responsesElement = App.newBuilder().build(); + ListAppsResponse expectedResponse = + ListAppsResponse.newBuilder() + .setNextPageToken("") + .addAllApps(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListAppsPagedResponse pagedListResponse = client.listApps(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAppsList().get(0), resources.get(0)); + + 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 listAppsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listApps(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAppTest() throws Exception { + App expectedResponse = + App.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setPinned(true) + .setRootAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setLanguageSettings(LanguageSettings.newBuilder().build()) + .setTimeZoneSettings(TimeZoneSettings.newBuilder().build()) + .setAudioProcessingConfig(AudioProcessingConfig.newBuilder().build()) + .setLoggingSettings(LoggingSettings.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) + .addAllVariableDeclarations(new ArrayList()) + .addAllPredefinedVariableDeclarations(new ArrayList()) + .setGlobalInstruction("globalInstruction518388971") + .addAllGuardrails(new ArrayList()) + .setDataStoreSettings(DataStoreSettings.newBuilder().build()) + .setDefaultChannelProfile(ChannelProfile.newBuilder().build()) + .putAllMetadata(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setDeploymentCount(2081851157) + .setClientCertificateSettings(ClientCertificateSettings.newBuilder().build()) + .setLocked(true) + .build(); + mockService.addResponse(expectedResponse); + + AppName name = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + + App actualResponse = client.getApp(name); + 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 getAppExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppName name = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + client.getApp(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAppTest2() throws Exception { + App expectedResponse = + App.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setPinned(true) + .setRootAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setLanguageSettings(LanguageSettings.newBuilder().build()) + .setTimeZoneSettings(TimeZoneSettings.newBuilder().build()) + .setAudioProcessingConfig(AudioProcessingConfig.newBuilder().build()) + .setLoggingSettings(LoggingSettings.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) + .addAllVariableDeclarations(new ArrayList()) + .addAllPredefinedVariableDeclarations(new ArrayList()) + .setGlobalInstruction("globalInstruction518388971") + .addAllGuardrails(new ArrayList()) + .setDataStoreSettings(DataStoreSettings.newBuilder().build()) + .setDefaultChannelProfile(ChannelProfile.newBuilder().build()) + .putAllMetadata(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setDeploymentCount(2081851157) + .setClientCertificateSettings(ClientCertificateSettings.newBuilder().build()) + .setLocked(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-5070/locations/location-5070/apps/app-5070"; + + App actualResponse = client.getApp(name); + 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 getAppExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-5070/locations/location-5070/apps/app-5070"; + client.getApp(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAppTest() throws Exception { + App expectedResponse = + App.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setPinned(true) + .setRootAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setLanguageSettings(LanguageSettings.newBuilder().build()) + .setTimeZoneSettings(TimeZoneSettings.newBuilder().build()) + .setAudioProcessingConfig(AudioProcessingConfig.newBuilder().build()) + .setLoggingSettings(LoggingSettings.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) + .addAllVariableDeclarations(new ArrayList()) + .addAllPredefinedVariableDeclarations(new ArrayList()) + .setGlobalInstruction("globalInstruction518388971") + .addAllGuardrails(new ArrayList()) + .setDataStoreSettings(DataStoreSettings.newBuilder().build()) + .setDefaultChannelProfile(ChannelProfile.newBuilder().build()) + .putAllMetadata(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setDeploymentCount(2081851157) + .setClientCertificateSettings(ClientCertificateSettings.newBuilder().build()) + .setLocked(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAppTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + App app = App.newBuilder().build(); + + App actualResponse = client.createAppAsync(parent, app).get(); + 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 createAppExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + App app = App.newBuilder().build(); + client.createAppAsync(parent, app).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createAppTest2() throws Exception { + App expectedResponse = + App.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setPinned(true) + .setRootAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setLanguageSettings(LanguageSettings.newBuilder().build()) + .setTimeZoneSettings(TimeZoneSettings.newBuilder().build()) + .setAudioProcessingConfig(AudioProcessingConfig.newBuilder().build()) + .setLoggingSettings(LoggingSettings.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) + .addAllVariableDeclarations(new ArrayList()) + .addAllPredefinedVariableDeclarations(new ArrayList()) + .setGlobalInstruction("globalInstruction518388971") + .addAllGuardrails(new ArrayList()) + .setDataStoreSettings(DataStoreSettings.newBuilder().build()) + .setDefaultChannelProfile(ChannelProfile.newBuilder().build()) + .putAllMetadata(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setDeploymentCount(2081851157) + .setClientCertificateSettings(ClientCertificateSettings.newBuilder().build()) + .setLocked(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAppTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + App app = App.newBuilder().build(); + + App actualResponse = client.createAppAsync(parent, app).get(); + 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 createAppExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + App app = App.newBuilder().build(); + client.createAppAsync(parent, app).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createAppTest3() throws Exception { + App expectedResponse = + App.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setPinned(true) + .setRootAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setLanguageSettings(LanguageSettings.newBuilder().build()) + .setTimeZoneSettings(TimeZoneSettings.newBuilder().build()) + .setAudioProcessingConfig(AudioProcessingConfig.newBuilder().build()) + .setLoggingSettings(LoggingSettings.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) + .addAllVariableDeclarations(new ArrayList()) + .addAllPredefinedVariableDeclarations(new ArrayList()) + .setGlobalInstruction("globalInstruction518388971") + .addAllGuardrails(new ArrayList()) + .setDataStoreSettings(DataStoreSettings.newBuilder().build()) + .setDefaultChannelProfile(ChannelProfile.newBuilder().build()) + .putAllMetadata(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setDeploymentCount(2081851157) + .setClientCertificateSettings(ClientCertificateSettings.newBuilder().build()) + .setLocked(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAppTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + App app = App.newBuilder().build(); + String appId = "appId93028124"; + + App actualResponse = client.createAppAsync(parent, app, appId).get(); + 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 createAppExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + App app = App.newBuilder().build(); + String appId = "appId93028124"; + client.createAppAsync(parent, app, appId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createAppTest4() throws Exception { + App expectedResponse = + App.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setPinned(true) + .setRootAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setLanguageSettings(LanguageSettings.newBuilder().build()) + .setTimeZoneSettings(TimeZoneSettings.newBuilder().build()) + .setAudioProcessingConfig(AudioProcessingConfig.newBuilder().build()) + .setLoggingSettings(LoggingSettings.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) + .addAllVariableDeclarations(new ArrayList()) + .addAllPredefinedVariableDeclarations(new ArrayList()) + .setGlobalInstruction("globalInstruction518388971") + .addAllGuardrails(new ArrayList()) + .setDataStoreSettings(DataStoreSettings.newBuilder().build()) + .setDefaultChannelProfile(ChannelProfile.newBuilder().build()) + .putAllMetadata(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setDeploymentCount(2081851157) + .setClientCertificateSettings(ClientCertificateSettings.newBuilder().build()) + .setLocked(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAppTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + App app = App.newBuilder().build(); + String appId = "appId93028124"; + + App actualResponse = client.createAppAsync(parent, app, appId).get(); + 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 createAppExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + App app = App.newBuilder().build(); + String appId = "appId93028124"; + client.createAppAsync(parent, app, appId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateAppTest() throws Exception { + App expectedResponse = + App.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setPinned(true) + .setRootAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setLanguageSettings(LanguageSettings.newBuilder().build()) + .setTimeZoneSettings(TimeZoneSettings.newBuilder().build()) + .setAudioProcessingConfig(AudioProcessingConfig.newBuilder().build()) + .setLoggingSettings(LoggingSettings.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) + .addAllVariableDeclarations(new ArrayList()) + .addAllPredefinedVariableDeclarations(new ArrayList()) + .setGlobalInstruction("globalInstruction518388971") + .addAllGuardrails(new ArrayList()) + .setDataStoreSettings(DataStoreSettings.newBuilder().build()) + .setDefaultChannelProfile(ChannelProfile.newBuilder().build()) + .putAllMetadata(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setDeploymentCount(2081851157) + .setClientCertificateSettings(ClientCertificateSettings.newBuilder().build()) + .setLocked(true) + .build(); + mockService.addResponse(expectedResponse); + + App app = + App.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setPinned(true) + .setRootAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setLanguageSettings(LanguageSettings.newBuilder().build()) + .setTimeZoneSettings(TimeZoneSettings.newBuilder().build()) + .setAudioProcessingConfig(AudioProcessingConfig.newBuilder().build()) + .setLoggingSettings(LoggingSettings.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) + .addAllVariableDeclarations(new ArrayList()) + .addAllPredefinedVariableDeclarations(new ArrayList()) + .setGlobalInstruction("globalInstruction518388971") + .addAllGuardrails(new ArrayList()) + .setDataStoreSettings(DataStoreSettings.newBuilder().build()) + .setDefaultChannelProfile(ChannelProfile.newBuilder().build()) + .putAllMetadata(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setDeploymentCount(2081851157) + .setClientCertificateSettings(ClientCertificateSettings.newBuilder().build()) + .setLocked(true) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + App actualResponse = client.updateApp(app, updateMask); + 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 updateAppExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + App app = + App.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setPinned(true) + .setRootAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setLanguageSettings(LanguageSettings.newBuilder().build()) + .setTimeZoneSettings(TimeZoneSettings.newBuilder().build()) + .setAudioProcessingConfig(AudioProcessingConfig.newBuilder().build()) + .setLoggingSettings(LoggingSettings.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) + .addAllVariableDeclarations(new ArrayList()) + .addAllPredefinedVariableDeclarations(new ArrayList()) + .setGlobalInstruction("globalInstruction518388971") + .addAllGuardrails(new ArrayList()) + .setDataStoreSettings(DataStoreSettings.newBuilder().build()) + .setDefaultChannelProfile(ChannelProfile.newBuilder().build()) + .putAllMetadata(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setDeploymentCount(2081851157) + .setClientCertificateSettings(ClientCertificateSettings.newBuilder().build()) + .setLocked(true) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateApp(app, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAppTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAppTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + AppName name = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + + client.deleteAppAsync(name).get(); + + 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 deleteAppExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppName name = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + client.deleteAppAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteAppTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAppTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-5070/locations/location-5070/apps/app-5070"; + + client.deleteAppAsync(name).get(); + + 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 deleteAppExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-5070/locations/location-5070/apps/app-5070"; + client.deleteAppAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void exportAppTest() throws Exception { + ExportAppResponse expectedResponse = ExportAppResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportAppTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + AppName name = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + + ExportAppResponse actualResponse = client.exportAppAsync(name).get(); + 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 exportAppExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppName name = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + client.exportAppAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void exportAppTest2() throws Exception { + ExportAppResponse expectedResponse = ExportAppResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportAppTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-5070/locations/location-5070/apps/app-5070"; + + ExportAppResponse actualResponse = client.exportAppAsync(name).get(); + 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 exportAppExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-5070/locations/location-5070/apps/app-5070"; + client.exportAppAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void importAppTest() throws Exception { + ImportAppResponse expectedResponse = + ImportAppResponse.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .addAllWarnings(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importAppTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String displayName = "displayName1714148973"; + String appId = "appId93028124"; + + ImportAppResponse actualResponse = client.importAppAsync(parent, displayName, appId).get(); + 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 importAppExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String displayName = "displayName1714148973"; + String appId = "appId93028124"; + client.importAppAsync(parent, displayName, appId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void importAppTest2() throws Exception { + ImportAppResponse expectedResponse = + ImportAppResponse.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .addAllWarnings(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importAppTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + String displayName = "displayName1714148973"; + String appId = "appId93028124"; + + ImportAppResponse actualResponse = client.importAppAsync(parent, displayName, appId).get(); + 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 importAppExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + String displayName = "displayName1714148973"; + String appId = "appId93028124"; + client.importAppAsync(parent, displayName, appId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listAgentsTest() throws Exception { + Agent responsesElement = Agent.newBuilder().build(); + ListAgentsResponse expectedResponse = + ListAgentsResponse.newBuilder() + .setNextPageToken("") + .addAllAgents(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + + ListAgentsPagedResponse pagedListResponse = client.listAgents(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAgentsList().get(0), resources.get(0)); + + 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 listAgentsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + client.listAgents(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAgentsTest2() throws Exception { + Agent responsesElement = Agent.newBuilder().build(); + ListAgentsResponse expectedResponse = + ListAgentsResponse.newBuilder() + .setNextPageToken("") + .addAllAgents(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + + ListAgentsPagedResponse pagedListResponse = client.listAgents(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAgentsList().get(0), resources.get(0)); + + 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 listAgentsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + client.listAgents(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAgentTest() throws Exception { + Agent expectedResponse = + Agent.newBuilder() + .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setModelSettings(ModelSettings.newBuilder().build()) + .setInstruction("instruction301526158") + .addAllTools(new ArrayList()) + .addAllChildAgents(new ArrayList()) + .addAllBeforeAgentCallbacks(new ArrayList()) + .addAllAfterAgentCallbacks(new ArrayList()) + .addAllBeforeModelCallbacks(new ArrayList()) + .addAllAfterModelCallbacks(new ArrayList()) + .addAllBeforeToolCallbacks(new ArrayList()) + .addAllAfterToolCallbacks(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllGuardrails(new ArrayList()) + .setEtag("etag3123477") + .addAllToolsets(new ArrayList()) + .setGeneratedSummary("generatedSummary-323053801") + .addAllTransferRules(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]"); + + Agent actualResponse = client.getAgent(name); + 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 getAgentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]"); + client.getAgent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAgentTest2() throws Exception { + Agent expectedResponse = + Agent.newBuilder() + .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setModelSettings(ModelSettings.newBuilder().build()) + .setInstruction("instruction301526158") + .addAllTools(new ArrayList()) + .addAllChildAgents(new ArrayList()) + .addAllBeforeAgentCallbacks(new ArrayList()) + .addAllAfterAgentCallbacks(new ArrayList()) + .addAllBeforeModelCallbacks(new ArrayList()) + .addAllAfterModelCallbacks(new ArrayList()) + .addAllBeforeToolCallbacks(new ArrayList()) + .addAllAfterToolCallbacks(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllGuardrails(new ArrayList()) + .setEtag("etag3123477") + .addAllToolsets(new ArrayList()) + .setGeneratedSummary("generatedSummary-323053801") + .addAllTransferRules(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-5446/locations/location-5446/apps/app-5446/agents/agent-5446"; + + Agent actualResponse = client.getAgent(name); + 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 getAgentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-5446/locations/location-5446/apps/app-5446/agents/agent-5446"; + client.getAgent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAgentTest() throws Exception { + Agent expectedResponse = + Agent.newBuilder() + .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setModelSettings(ModelSettings.newBuilder().build()) + .setInstruction("instruction301526158") + .addAllTools(new ArrayList()) + .addAllChildAgents(new ArrayList()) + .addAllBeforeAgentCallbacks(new ArrayList()) + .addAllAfterAgentCallbacks(new ArrayList()) + .addAllBeforeModelCallbacks(new ArrayList()) + .addAllAfterModelCallbacks(new ArrayList()) + .addAllBeforeToolCallbacks(new ArrayList()) + .addAllAfterToolCallbacks(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllGuardrails(new ArrayList()) + .setEtag("etag3123477") + .addAllToolsets(new ArrayList()) + .setGeneratedSummary("generatedSummary-323053801") + .addAllTransferRules(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Agent agent = Agent.newBuilder().build(); + + Agent actualResponse = client.createAgent(parent, agent); + 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 createAgentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Agent agent = Agent.newBuilder().build(); + client.createAgent(parent, agent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAgentTest2() throws Exception { + Agent expectedResponse = + Agent.newBuilder() + .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setModelSettings(ModelSettings.newBuilder().build()) + .setInstruction("instruction301526158") + .addAllTools(new ArrayList()) + .addAllChildAgents(new ArrayList()) + .addAllBeforeAgentCallbacks(new ArrayList()) + .addAllAfterAgentCallbacks(new ArrayList()) + .addAllBeforeModelCallbacks(new ArrayList()) + .addAllAfterModelCallbacks(new ArrayList()) + .addAllBeforeToolCallbacks(new ArrayList()) + .addAllAfterToolCallbacks(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllGuardrails(new ArrayList()) + .setEtag("etag3123477") + .addAllToolsets(new ArrayList()) + .setGeneratedSummary("generatedSummary-323053801") + .addAllTransferRules(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + Agent agent = Agent.newBuilder().build(); + + Agent actualResponse = client.createAgent(parent, agent); + 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 createAgentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + Agent agent = Agent.newBuilder().build(); + client.createAgent(parent, agent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAgentTest3() throws Exception { + Agent expectedResponse = + Agent.newBuilder() + .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setModelSettings(ModelSettings.newBuilder().build()) + .setInstruction("instruction301526158") + .addAllTools(new ArrayList()) + .addAllChildAgents(new ArrayList()) + .addAllBeforeAgentCallbacks(new ArrayList()) + .addAllAfterAgentCallbacks(new ArrayList()) + .addAllBeforeModelCallbacks(new ArrayList()) + .addAllAfterModelCallbacks(new ArrayList()) + .addAllBeforeToolCallbacks(new ArrayList()) + .addAllAfterToolCallbacks(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllGuardrails(new ArrayList()) + .setEtag("etag3123477") + .addAllToolsets(new ArrayList()) + .setGeneratedSummary("generatedSummary-323053801") + .addAllTransferRules(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Agent agent = Agent.newBuilder().build(); + String agentId = "agentId-1060987136"; + + Agent actualResponse = client.createAgent(parent, agent, agentId); + 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 createAgentExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Agent agent = Agent.newBuilder().build(); + String agentId = "agentId-1060987136"; + client.createAgent(parent, agent, agentId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAgentTest4() throws Exception { + Agent expectedResponse = + Agent.newBuilder() + .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setModelSettings(ModelSettings.newBuilder().build()) + .setInstruction("instruction301526158") + .addAllTools(new ArrayList()) + .addAllChildAgents(new ArrayList()) + .addAllBeforeAgentCallbacks(new ArrayList()) + .addAllAfterAgentCallbacks(new ArrayList()) + .addAllBeforeModelCallbacks(new ArrayList()) + .addAllAfterModelCallbacks(new ArrayList()) + .addAllBeforeToolCallbacks(new ArrayList()) + .addAllAfterToolCallbacks(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllGuardrails(new ArrayList()) + .setEtag("etag3123477") + .addAllToolsets(new ArrayList()) + .setGeneratedSummary("generatedSummary-323053801") + .addAllTransferRules(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + Agent agent = Agent.newBuilder().build(); + String agentId = "agentId-1060987136"; + + Agent actualResponse = client.createAgent(parent, agent, agentId); + 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 createAgentExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + Agent agent = Agent.newBuilder().build(); + String agentId = "agentId-1060987136"; + client.createAgent(parent, agent, agentId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateAgentTest() throws Exception { + Agent expectedResponse = + Agent.newBuilder() + .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setModelSettings(ModelSettings.newBuilder().build()) + .setInstruction("instruction301526158") + .addAllTools(new ArrayList()) + .addAllChildAgents(new ArrayList()) + .addAllBeforeAgentCallbacks(new ArrayList()) + .addAllAfterAgentCallbacks(new ArrayList()) + .addAllBeforeModelCallbacks(new ArrayList()) + .addAllAfterModelCallbacks(new ArrayList()) + .addAllBeforeToolCallbacks(new ArrayList()) + .addAllAfterToolCallbacks(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllGuardrails(new ArrayList()) + .setEtag("etag3123477") + .addAllToolsets(new ArrayList()) + .setGeneratedSummary("generatedSummary-323053801") + .addAllTransferRules(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + Agent agent = + Agent.newBuilder() + .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setModelSettings(ModelSettings.newBuilder().build()) + .setInstruction("instruction301526158") + .addAllTools(new ArrayList()) + .addAllChildAgents(new ArrayList()) + .addAllBeforeAgentCallbacks(new ArrayList()) + .addAllAfterAgentCallbacks(new ArrayList()) + .addAllBeforeModelCallbacks(new ArrayList()) + .addAllAfterModelCallbacks(new ArrayList()) + .addAllBeforeToolCallbacks(new ArrayList()) + .addAllAfterToolCallbacks(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllGuardrails(new ArrayList()) + .setEtag("etag3123477") + .addAllToolsets(new ArrayList()) + .setGeneratedSummary("generatedSummary-323053801") + .addAllTransferRules(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Agent actualResponse = client.updateAgent(agent, updateMask); + 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 updateAgentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Agent agent = + Agent.newBuilder() + .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setModelSettings(ModelSettings.newBuilder().build()) + .setInstruction("instruction301526158") + .addAllTools(new ArrayList()) + .addAllChildAgents(new ArrayList()) + .addAllBeforeAgentCallbacks(new ArrayList()) + .addAllAfterAgentCallbacks(new ArrayList()) + .addAllBeforeModelCallbacks(new ArrayList()) + .addAllAfterModelCallbacks(new ArrayList()) + .addAllBeforeToolCallbacks(new ArrayList()) + .addAllAfterToolCallbacks(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllGuardrails(new ArrayList()) + .setEtag("etag3123477") + .addAllToolsets(new ArrayList()) + .setGeneratedSummary("generatedSummary-323053801") + .addAllTransferRules(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAgent(agent, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAgentTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]"); + + client.deleteAgent(name); + + 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 deleteAgentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]"); + client.deleteAgent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAgentTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-5446/locations/location-5446/apps/app-5446/agents/agent-5446"; + + client.deleteAgent(name); + + 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 deleteAgentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-5446/locations/location-5446/apps/app-5446/agents/agent-5446"; + client.deleteAgent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listExamplesTest() throws Exception { + Example responsesElement = Example.newBuilder().build(); + ListExamplesResponse expectedResponse = + ListExamplesResponse.newBuilder() + .setNextPageToken("") + .addAllExamples(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + + ListExamplesPagedResponse pagedListResponse = client.listExamples(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExamplesList().get(0), resources.get(0)); + + 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 listExamplesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + client.listExamples(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listExamplesTest2() throws Exception { + Example responsesElement = Example.newBuilder().build(); + ListExamplesResponse expectedResponse = + ListExamplesResponse.newBuilder() + .setNextPageToken("") + .addAllExamples(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + + ListExamplesPagedResponse pagedListResponse = client.listExamples(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExamplesList().get(0), resources.get(0)); + + 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 listExamplesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + client.listExamples(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getExampleTest() throws Exception { + Example expectedResponse = + Example.newBuilder() + .setName(ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEntryAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .addAllMessages(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInvalid(true) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + ExampleName name = ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]"); + + Example actualResponse = client.getExample(name); + 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 getExampleExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ExampleName name = ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]"); + client.getExample(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getExampleTest2() throws Exception { + Example expectedResponse = + Example.newBuilder() + .setName(ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEntryAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .addAllMessages(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInvalid(true) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-991/locations/location-991/apps/app-991/examples/example-991"; + + Example actualResponse = client.getExample(name); + 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 getExampleExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-991/locations/location-991/apps/app-991/examples/example-991"; + client.getExample(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createExampleTest() throws Exception { + Example expectedResponse = + Example.newBuilder() + .setName(ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEntryAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .addAllMessages(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInvalid(true) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Example example = Example.newBuilder().build(); + + Example actualResponse = client.createExample(parent, example); + 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 createExampleExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Example example = Example.newBuilder().build(); + client.createExample(parent, example); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createExampleTest2() throws Exception { + Example expectedResponse = + Example.newBuilder() + .setName(ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEntryAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .addAllMessages(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInvalid(true) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + Example example = Example.newBuilder().build(); + + Example actualResponse = client.createExample(parent, example); + 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 createExampleExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + Example example = Example.newBuilder().build(); + client.createExample(parent, example); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createExampleTest3() throws Exception { + Example expectedResponse = + Example.newBuilder() + .setName(ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEntryAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .addAllMessages(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInvalid(true) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Example example = Example.newBuilder().build(); + String exampleId = "exampleId-64591835"; + + Example actualResponse = client.createExample(parent, example, exampleId); + 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 createExampleExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Example example = Example.newBuilder().build(); + String exampleId = "exampleId-64591835"; + client.createExample(parent, example, exampleId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createExampleTest4() throws Exception { + Example expectedResponse = + Example.newBuilder() + .setName(ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEntryAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .addAllMessages(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInvalid(true) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + Example example = Example.newBuilder().build(); + String exampleId = "exampleId-64591835"; + + Example actualResponse = client.createExample(parent, example, exampleId); + 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 createExampleExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + Example example = Example.newBuilder().build(); + String exampleId = "exampleId-64591835"; + client.createExample(parent, example, exampleId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateExampleTest() throws Exception { + Example expectedResponse = + Example.newBuilder() + .setName(ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEntryAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .addAllMessages(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInvalid(true) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + Example example = + Example.newBuilder() + .setName(ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEntryAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .addAllMessages(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInvalid(true) + .setEtag("etag3123477") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Example actualResponse = client.updateExample(example, updateMask); + 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 updateExampleExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Example example = + Example.newBuilder() + .setName(ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEntryAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .addAllMessages(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInvalid(true) + .setEtag("etag3123477") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateExample(example, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteExampleTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + ExampleName name = ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]"); + + client.deleteExample(name); + + 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 deleteExampleExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ExampleName name = ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]"); + client.deleteExample(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteExampleTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-991/locations/location-991/apps/app-991/examples/example-991"; + + client.deleteExample(name); + + 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 deleteExampleExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-991/locations/location-991/apps/app-991/examples/example-991"; + client.deleteExample(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listToolsTest() throws Exception { + Tool responsesElement = Tool.newBuilder().build(); + ListToolsResponse expectedResponse = + ListToolsResponse.newBuilder() + .setNextPageToken("") + .addAllTools(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + + ListToolsPagedResponse pagedListResponse = client.listTools(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getToolsList().get(0), resources.get(0)); + + 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 listToolsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + client.listTools(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listToolsTest2() throws Exception { + Tool responsesElement = Tool.newBuilder().build(); + ListToolsResponse expectedResponse = + ListToolsResponse.newBuilder() + .setNextPageToken("") + .addAllTools(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + + ListToolsPagedResponse pagedListResponse = client.listTools(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getToolsList().get(0), resources.get(0)); + + 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 listToolsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + client.listTools(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getToolTest() throws Exception { + Tool expectedResponse = + Tool.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) + .setDisplayName("displayName1714148973") + .setExecutionType(ExecutionType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setGeneratedSummary("generatedSummary-323053801") + .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ToolName name = ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]"); + + Tool actualResponse = client.getTool(name); + 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 getToolExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ToolName name = ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]"); + client.getTool(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getToolTest2() throws Exception { + Tool expectedResponse = + Tool.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) + .setDisplayName("displayName1714148973") + .setExecutionType(ExecutionType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setGeneratedSummary("generatedSummary-323053801") + .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-4311/locations/location-4311/apps/app-4311/tools/tool-4311"; + + Tool actualResponse = client.getTool(name); + 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 getToolExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4311/locations/location-4311/apps/app-4311/tools/tool-4311"; + client.getTool(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listConversationsTest() throws Exception { + Conversation responsesElement = Conversation.newBuilder().build(); + ListConversationsResponse expectedResponse = + ListConversationsResponse.newBuilder() + .setNextPageToken("") + .addAllConversations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + + ListConversationsPagedResponse pagedListResponse = client.listConversations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConversationsList().get(0), resources.get(0)); + + 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 listConversationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + client.listConversations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listConversationsTest2() throws Exception { + Conversation responsesElement = Conversation.newBuilder().build(); + ListConversationsResponse expectedResponse = + ListConversationsResponse.newBuilder() + .setNextPageToken("") + .addAllConversations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + + ListConversationsPagedResponse pagedListResponse = client.listConversations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConversationsList().get(0), resources.get(0)); + + 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 listConversationsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + client.listConversations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getConversationTest() throws Exception { + Conversation expectedResponse = + Conversation.newBuilder() + .setName( + ConversationName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CONVERSATION]") + .toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .addAllTurns(new ArrayList()) + .setTurnCount(428155597) + .addAllInputTypes(new ArrayList()) + .setEntryAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setDeployment( + DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) + .setAppVersion( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setLanguageCode("languageCode-2092349083") + .addAllMessages(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + ConversationName name = + ConversationName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CONVERSATION]"); + + Conversation actualResponse = client.getConversation(name); + 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 getConversationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ConversationName name = + ConversationName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CONVERSATION]"); + client.getConversation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getConversationTest2() throws Exception { + Conversation expectedResponse = + Conversation.newBuilder() + .setName( + ConversationName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CONVERSATION]") + .toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .addAllTurns(new ArrayList()) + .setTurnCount(428155597) + .addAllInputTypes(new ArrayList()) + .setEntryAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setDeployment( + DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) + .setAppVersion( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setLanguageCode("languageCode-2092349083") + .addAllMessages(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-5806/locations/location-5806/apps/app-5806/conversations/conversation-5806"; + + Conversation actualResponse = client.getConversation(name); + 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 getConversationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-5806/locations/location-5806/apps/app-5806/conversations/conversation-5806"; + client.getConversation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteConversationTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + ConversationName name = + ConversationName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CONVERSATION]"); + + client.deleteConversation(name); + + 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 deleteConversationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ConversationName name = + ConversationName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CONVERSATION]"); + client.deleteConversation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteConversationTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-5806/locations/location-5806/apps/app-5806/conversations/conversation-5806"; + + client.deleteConversation(name); + + 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 deleteConversationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-5806/locations/location-5806/apps/app-5806/conversations/conversation-5806"; + client.deleteConversation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchDeleteConversationsTest() throws Exception { + BatchDeleteConversationsResponse expectedResponse = + BatchDeleteConversationsResponse.newBuilder() + .addAllDeletedConversations(new ArrayList()) + .addAllFailedConversations(new ArrayList()) + .addAllErrorMessages(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchDeleteConversationsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + + BatchDeleteConversationsResponse actualResponse = + client.batchDeleteConversationsAsync(parent).get(); + 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 batchDeleteConversationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + client.batchDeleteConversationsAsync(parent).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void batchDeleteConversationsTest2() throws Exception { + BatchDeleteConversationsResponse expectedResponse = + BatchDeleteConversationsResponse.newBuilder() + .addAllDeletedConversations(new ArrayList()) + .addAllFailedConversations(new ArrayList()) + .addAllErrorMessages(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchDeleteConversationsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + + BatchDeleteConversationsResponse actualResponse = + client.batchDeleteConversationsAsync(parent).get(); + 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 batchDeleteConversationsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + client.batchDeleteConversationsAsync(parent).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createToolTest() throws Exception { + Tool expectedResponse = + Tool.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) + .setDisplayName("displayName1714148973") + .setExecutionType(ExecutionType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setGeneratedSummary("generatedSummary-323053801") + .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Tool tool = Tool.newBuilder().build(); + + Tool actualResponse = client.createTool(parent, tool); + 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 createToolExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Tool tool = Tool.newBuilder().build(); + client.createTool(parent, tool); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createToolTest2() throws Exception { + Tool expectedResponse = + Tool.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) + .setDisplayName("displayName1714148973") + .setExecutionType(ExecutionType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setGeneratedSummary("generatedSummary-323053801") + .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + Tool tool = Tool.newBuilder().build(); + + Tool actualResponse = client.createTool(parent, tool); + 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 createToolExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + Tool tool = Tool.newBuilder().build(); + client.createTool(parent, tool); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createToolTest3() throws Exception { + Tool expectedResponse = + Tool.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) + .setDisplayName("displayName1714148973") + .setExecutionType(ExecutionType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setGeneratedSummary("generatedSummary-323053801") + .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Tool tool = Tool.newBuilder().build(); + String toolId = "toolId-868061997"; + + Tool actualResponse = client.createTool(parent, tool, toolId); + 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 createToolExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Tool tool = Tool.newBuilder().build(); + String toolId = "toolId-868061997"; + client.createTool(parent, tool, toolId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createToolTest4() throws Exception { + Tool expectedResponse = + Tool.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) + .setDisplayName("displayName1714148973") + .setExecutionType(ExecutionType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setGeneratedSummary("generatedSummary-323053801") + .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + Tool tool = Tool.newBuilder().build(); + String toolId = "toolId-868061997"; + + Tool actualResponse = client.createTool(parent, tool, toolId); + 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 createToolExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + Tool tool = Tool.newBuilder().build(); + String toolId = "toolId-868061997"; + client.createTool(parent, tool, toolId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateToolTest() throws Exception { + Tool expectedResponse = + Tool.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) + .setDisplayName("displayName1714148973") + .setExecutionType(ExecutionType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setGeneratedSummary("generatedSummary-323053801") + .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + Tool tool = + Tool.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) + .setDisplayName("displayName1714148973") + .setExecutionType(ExecutionType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setGeneratedSummary("generatedSummary-323053801") + .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Tool actualResponse = client.updateTool(tool, updateMask); + 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 updateToolExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Tool tool = + Tool.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) + .setDisplayName("displayName1714148973") + .setExecutionType(ExecutionType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setGeneratedSummary("generatedSummary-323053801") + .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateTool(tool, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteToolTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + ToolName name = ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]"); + + client.deleteTool(name); + + 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 deleteToolExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ToolName name = ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]"); + client.deleteTool(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteToolTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-4311/locations/location-4311/apps/app-4311/tools/tool-4311"; + + client.deleteTool(name); + + 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 deleteToolExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4311/locations/location-4311/apps/app-4311/tools/tool-4311"; + client.deleteTool(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listGuardrailsTest() throws Exception { + Guardrail responsesElement = Guardrail.newBuilder().build(); + ListGuardrailsResponse expectedResponse = + ListGuardrailsResponse.newBuilder() + .setNextPageToken("") + .addAllGuardrails(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + + ListGuardrailsPagedResponse pagedListResponse = client.listGuardrails(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGuardrailsList().get(0), resources.get(0)); + + 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 listGuardrailsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + client.listGuardrails(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listGuardrailsTest2() throws Exception { + Guardrail responsesElement = Guardrail.newBuilder().build(); + ListGuardrailsResponse expectedResponse = + ListGuardrailsResponse.newBuilder() + .setNextPageToken("") + .addAllGuardrails(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + + ListGuardrailsPagedResponse pagedListResponse = client.listGuardrails(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGuardrailsList().get(0), resources.get(0)); + + 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 listGuardrailsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + client.listGuardrails(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGuardrailTest() throws Exception { + Guardrail expectedResponse = + Guardrail.newBuilder() + .setName(GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEnabled(true) + .setAction(TriggerAction.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + GuardrailName name = GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]"); + + Guardrail actualResponse = client.getGuardrail(name); + 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 getGuardrailExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GuardrailName name = GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]"); + client.getGuardrail(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGuardrailTest2() throws Exception { + Guardrail expectedResponse = + Guardrail.newBuilder() + .setName(GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEnabled(true) + .setAction(TriggerAction.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-6724/locations/location-6724/apps/app-6724/guardrails/guardrail-6724"; + + Guardrail actualResponse = client.getGuardrail(name); + 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 getGuardrailExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6724/locations/location-6724/apps/app-6724/guardrails/guardrail-6724"; + client.getGuardrail(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createGuardrailTest() throws Exception { + Guardrail expectedResponse = + Guardrail.newBuilder() + .setName(GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEnabled(true) + .setAction(TriggerAction.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Guardrail guardrail = Guardrail.newBuilder().build(); + + Guardrail actualResponse = client.createGuardrail(parent, guardrail); + 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 createGuardrailExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Guardrail guardrail = Guardrail.newBuilder().build(); + client.createGuardrail(parent, guardrail); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createGuardrailTest2() throws Exception { + Guardrail expectedResponse = + Guardrail.newBuilder() + .setName(GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEnabled(true) + .setAction(TriggerAction.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + Guardrail guardrail = Guardrail.newBuilder().build(); + + Guardrail actualResponse = client.createGuardrail(parent, guardrail); + 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 createGuardrailExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + Guardrail guardrail = Guardrail.newBuilder().build(); + client.createGuardrail(parent, guardrail); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createGuardrailTest3() throws Exception { + Guardrail expectedResponse = + Guardrail.newBuilder() + .setName(GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEnabled(true) + .setAction(TriggerAction.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Guardrail guardrail = Guardrail.newBuilder().build(); + String guardrailId = "guardrailId1875412786"; + + Guardrail actualResponse = client.createGuardrail(parent, guardrail, guardrailId); + 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 createGuardrailExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Guardrail guardrail = Guardrail.newBuilder().build(); + String guardrailId = "guardrailId1875412786"; + client.createGuardrail(parent, guardrail, guardrailId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createGuardrailTest4() throws Exception { + Guardrail expectedResponse = + Guardrail.newBuilder() + .setName(GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEnabled(true) + .setAction(TriggerAction.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + Guardrail guardrail = Guardrail.newBuilder().build(); + String guardrailId = "guardrailId1875412786"; + + Guardrail actualResponse = client.createGuardrail(parent, guardrail, guardrailId); + 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 createGuardrailExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + Guardrail guardrail = Guardrail.newBuilder().build(); + String guardrailId = "guardrailId1875412786"; + client.createGuardrail(parent, guardrail, guardrailId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateGuardrailTest() throws Exception { + Guardrail expectedResponse = + Guardrail.newBuilder() + .setName(GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEnabled(true) + .setAction(TriggerAction.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + Guardrail guardrail = + Guardrail.newBuilder() + .setName(GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEnabled(true) + .setAction(TriggerAction.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Guardrail actualResponse = client.updateGuardrail(guardrail, updateMask); + 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 updateGuardrailExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Guardrail guardrail = + Guardrail.newBuilder() + .setName( + GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEnabled(true) + .setAction(TriggerAction.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateGuardrail(guardrail, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteGuardrailTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + GuardrailName name = GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]"); + + client.deleteGuardrail(name); + + 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 deleteGuardrailExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GuardrailName name = GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]"); + client.deleteGuardrail(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteGuardrailTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-6724/locations/location-6724/apps/app-6724/guardrails/guardrail-6724"; + + client.deleteGuardrail(name); + + 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 deleteGuardrailExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6724/locations/location-6724/apps/app-6724/guardrails/guardrail-6724"; + client.deleteGuardrail(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDeploymentsTest() throws Exception { + Deployment responsesElement = Deployment.newBuilder().build(); + ListDeploymentsResponse expectedResponse = + ListDeploymentsResponse.newBuilder() + .setNextPageToken("") + .addAllDeployments(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + + ListDeploymentsPagedResponse pagedListResponse = client.listDeployments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeploymentsList().get(0), resources.get(0)); + + 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 listDeploymentsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + client.listDeployments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDeploymentsTest2() throws Exception { + Deployment responsesElement = Deployment.newBuilder().build(); + ListDeploymentsResponse expectedResponse = + ListDeploymentsResponse.newBuilder() + .setNextPageToken("") + .addAllDeployments(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + + ListDeploymentsPagedResponse pagedListResponse = client.listDeployments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeploymentsList().get(0), resources.get(0)); + + 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 listDeploymentsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + client.listDeployments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDeploymentTest() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) + .setDisplayName("displayName1714148973") + .setAppVersion( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setChannelProfile(ChannelProfile.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + DeploymentName name = DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]"); + + Deployment actualResponse = client.getDeployment(name); + 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 getDeploymentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DeploymentName name = DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]"); + client.getDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDeploymentTest2() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) + .setDisplayName("displayName1714148973") + .setAppVersion( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setChannelProfile(ChannelProfile.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3012/locations/location-3012/apps/app-3012/deployments/deployment-3012"; + + Deployment actualResponse = client.getDeployment(name); + 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 getDeploymentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3012/locations/location-3012/apps/app-3012/deployments/deployment-3012"; + client.getDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDeploymentTest() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) + .setDisplayName("displayName1714148973") + .setAppVersion( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setChannelProfile(ChannelProfile.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Deployment deployment = Deployment.newBuilder().build(); + + Deployment actualResponse = client.createDeployment(parent, deployment); + 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 createDeploymentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Deployment deployment = Deployment.newBuilder().build(); + client.createDeployment(parent, deployment); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDeploymentTest2() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) + .setDisplayName("displayName1714148973") + .setAppVersion( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setChannelProfile(ChannelProfile.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + Deployment deployment = Deployment.newBuilder().build(); + + Deployment actualResponse = client.createDeployment(parent, deployment); + 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 createDeploymentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + Deployment deployment = Deployment.newBuilder().build(); + client.createDeployment(parent, deployment); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDeploymentTest3() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) + .setDisplayName("displayName1714148973") + .setAppVersion( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setChannelProfile(ChannelProfile.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Deployment deployment = Deployment.newBuilder().build(); + String deploymentId = "deploymentId-136894784"; + + Deployment actualResponse = client.createDeployment(parent, deployment, deploymentId); + 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 createDeploymentExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Deployment deployment = Deployment.newBuilder().build(); + String deploymentId = "deploymentId-136894784"; + client.createDeployment(parent, deployment, deploymentId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDeploymentTest4() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) + .setDisplayName("displayName1714148973") + .setAppVersion( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setChannelProfile(ChannelProfile.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + Deployment deployment = Deployment.newBuilder().build(); + String deploymentId = "deploymentId-136894784"; + + Deployment actualResponse = client.createDeployment(parent, deployment, deploymentId); + 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 createDeploymentExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + Deployment deployment = Deployment.newBuilder().build(); + String deploymentId = "deploymentId-136894784"; + client.createDeployment(parent, deployment, deploymentId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateDeploymentTest() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) + .setDisplayName("displayName1714148973") + .setAppVersion( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setChannelProfile(ChannelProfile.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + Deployment deployment = + Deployment.newBuilder() + .setName( + DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) + .setDisplayName("displayName1714148973") + .setAppVersion( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setChannelProfile(ChannelProfile.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Deployment actualResponse = client.updateDeployment(deployment, updateMask); + 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 updateDeploymentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Deployment deployment = + Deployment.newBuilder() + .setName( + DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) + .setDisplayName("displayName1714148973") + .setAppVersion( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setChannelProfile(ChannelProfile.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDeployment(deployment, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDeploymentTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + DeploymentName name = DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]"); + + client.deleteDeployment(name); + + 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 deleteDeploymentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DeploymentName name = DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]"); + client.deleteDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDeploymentTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3012/locations/location-3012/apps/app-3012/deployments/deployment-3012"; + + client.deleteDeployment(name); + + 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 deleteDeploymentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3012/locations/location-3012/apps/app-3012/deployments/deployment-3012"; + client.deleteDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listToolsetsTest() throws Exception { + Toolset responsesElement = Toolset.newBuilder().build(); + ListToolsetsResponse expectedResponse = + ListToolsetsResponse.newBuilder() + .setNextPageToken("") + .addAllToolsets(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + + ListToolsetsPagedResponse pagedListResponse = client.listToolsets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getToolsetsList().get(0), resources.get(0)); + + 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 listToolsetsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + client.listToolsets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listToolsetsTest2() throws Exception { + Toolset responsesElement = Toolset.newBuilder().build(); + ListToolsetsResponse expectedResponse = + ListToolsetsResponse.newBuilder() + .setNextPageToken("") + .addAllToolsets(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + + ListToolsetsPagedResponse pagedListResponse = client.listToolsets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getToolsetsList().get(0), resources.get(0)); + + 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 listToolsetsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + client.listToolsets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getToolsetTest() throws Exception { + Toolset expectedResponse = + Toolset.newBuilder() + .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setExecutionType(ExecutionType.forNumber(0)) + .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ToolsetName name = ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]"); + + Toolset actualResponse = client.getToolset(name); + 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 getToolsetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ToolsetName name = ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]"); + client.getToolset(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getToolsetTest2() throws Exception { + Toolset expectedResponse = + Toolset.newBuilder() + .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setExecutionType(ExecutionType.forNumber(0)) + .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-8913/locations/location-8913/apps/app-8913/toolsets/toolset-8913"; + + Toolset actualResponse = client.getToolset(name); + 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 getToolsetExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8913/locations/location-8913/apps/app-8913/toolsets/toolset-8913"; + client.getToolset(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createToolsetTest() throws Exception { + Toolset expectedResponse = + Toolset.newBuilder() + .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setExecutionType(ExecutionType.forNumber(0)) + .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Toolset toolset = Toolset.newBuilder().build(); + + Toolset actualResponse = client.createToolset(parent, toolset); + 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 createToolsetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Toolset toolset = Toolset.newBuilder().build(); + client.createToolset(parent, toolset); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createToolsetTest2() throws Exception { + Toolset expectedResponse = + Toolset.newBuilder() + .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setExecutionType(ExecutionType.forNumber(0)) + .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + Toolset toolset = Toolset.newBuilder().build(); + + Toolset actualResponse = client.createToolset(parent, toolset); + 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 createToolsetExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + Toolset toolset = Toolset.newBuilder().build(); + client.createToolset(parent, toolset); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createToolsetTest3() throws Exception { + Toolset expectedResponse = + Toolset.newBuilder() + .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setExecutionType(ExecutionType.forNumber(0)) + .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Toolset toolset = Toolset.newBuilder().build(); + String toolsetId = "toolsetId-397931899"; + + Toolset actualResponse = client.createToolset(parent, toolset, toolsetId); + 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 createToolsetExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Toolset toolset = Toolset.newBuilder().build(); + String toolsetId = "toolsetId-397931899"; + client.createToolset(parent, toolset, toolsetId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createToolsetTest4() throws Exception { + Toolset expectedResponse = + Toolset.newBuilder() + .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setExecutionType(ExecutionType.forNumber(0)) + .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + Toolset toolset = Toolset.newBuilder().build(); + String toolsetId = "toolsetId-397931899"; + + Toolset actualResponse = client.createToolset(parent, toolset, toolsetId); + 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 createToolsetExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + Toolset toolset = Toolset.newBuilder().build(); + String toolsetId = "toolsetId-397931899"; + client.createToolset(parent, toolset, toolsetId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateToolsetTest() throws Exception { + Toolset expectedResponse = + Toolset.newBuilder() + .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setExecutionType(ExecutionType.forNumber(0)) + .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + Toolset toolset = + Toolset.newBuilder() + .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setExecutionType(ExecutionType.forNumber(0)) + .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Toolset actualResponse = client.updateToolset(toolset, updateMask); + 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 updateToolsetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Toolset toolset = + Toolset.newBuilder() + .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setExecutionType(ExecutionType.forNumber(0)) + .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateToolset(toolset, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteToolsetTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + ToolsetName name = ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]"); + + client.deleteToolset(name); + + 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 deleteToolsetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ToolsetName name = ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]"); + client.deleteToolset(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteToolsetTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-8913/locations/location-8913/apps/app-8913/toolsets/toolset-8913"; + + client.deleteToolset(name); + + 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 deleteToolsetExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8913/locations/location-8913/apps/app-8913/toolsets/toolset-8913"; + client.deleteToolset(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAppVersionsTest() throws Exception { + AppVersion responsesElement = AppVersion.newBuilder().build(); + ListAppVersionsResponse expectedResponse = + ListAppVersionsResponse.newBuilder() + .setNextPageToken("") + .addAllAppVersions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + + ListAppVersionsPagedResponse pagedListResponse = client.listAppVersions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAppVersionsList().get(0), resources.get(0)); + + 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 listAppVersionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + client.listAppVersions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAppVersionsTest2() throws Exception { + AppVersion responsesElement = AppVersion.newBuilder().build(); + ListAppVersionsResponse expectedResponse = + ListAppVersionsResponse.newBuilder() + .setNextPageToken("") + .addAllAppVersions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + + ListAppVersionsPagedResponse pagedListResponse = client.listAppVersions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAppVersionsList().get(0), resources.get(0)); + + 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 listAppVersionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + client.listAppVersions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAppVersionTest() throws Exception { + AppVersion expectedResponse = + AppVersion.newBuilder() + .setName(AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreator("creator1028554796") + .setCreateTime(Timestamp.newBuilder().build()) + .setSnapshot(AppSnapshot.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + AppVersionName name = AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]"); + + AppVersion actualResponse = client.getAppVersion(name); + 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 getAppVersionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppVersionName name = AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]"); + client.getAppVersion(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAppVersionTest2() throws Exception { + AppVersion expectedResponse = + AppVersion.newBuilder() + .setName(AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreator("creator1028554796") + .setCreateTime(Timestamp.newBuilder().build()) + .setSnapshot(AppSnapshot.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-2813/locations/location-2813/apps/app-2813/versions/version-2813"; + + AppVersion actualResponse = client.getAppVersion(name); + 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 getAppVersionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-2813/locations/location-2813/apps/app-2813/versions/version-2813"; + client.getAppVersion(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAppVersionTest() throws Exception { + AppVersion expectedResponse = + AppVersion.newBuilder() + .setName(AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreator("creator1028554796") + .setCreateTime(Timestamp.newBuilder().build()) + .setSnapshot(AppSnapshot.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + AppVersion appVersion = AppVersion.newBuilder().build(); + + AppVersion actualResponse = client.createAppVersion(parent, appVersion); + 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 createAppVersionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + AppVersion appVersion = AppVersion.newBuilder().build(); + client.createAppVersion(parent, appVersion); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAppVersionTest2() throws Exception { + AppVersion expectedResponse = + AppVersion.newBuilder() + .setName(AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreator("creator1028554796") + .setCreateTime(Timestamp.newBuilder().build()) + .setSnapshot(AppSnapshot.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + AppVersion appVersion = AppVersion.newBuilder().build(); + + AppVersion actualResponse = client.createAppVersion(parent, appVersion); + 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 createAppVersionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + AppVersion appVersion = AppVersion.newBuilder().build(); + client.createAppVersion(parent, appVersion); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAppVersionTest3() throws Exception { + AppVersion expectedResponse = + AppVersion.newBuilder() + .setName(AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreator("creator1028554796") + .setCreateTime(Timestamp.newBuilder().build()) + .setSnapshot(AppSnapshot.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + AppVersion appVersion = AppVersion.newBuilder().build(); + String appVersionId = "appVersionId303221490"; + + AppVersion actualResponse = client.createAppVersion(parent, appVersion, appVersionId); + 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 createAppVersionExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + AppVersion appVersion = AppVersion.newBuilder().build(); + String appVersionId = "appVersionId303221490"; + client.createAppVersion(parent, appVersion, appVersionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAppVersionTest4() throws Exception { + AppVersion expectedResponse = + AppVersion.newBuilder() + .setName(AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreator("creator1028554796") + .setCreateTime(Timestamp.newBuilder().build()) + .setSnapshot(AppSnapshot.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + AppVersion appVersion = AppVersion.newBuilder().build(); + String appVersionId = "appVersionId303221490"; + + AppVersion actualResponse = client.createAppVersion(parent, appVersion, appVersionId); + 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 createAppVersionExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + AppVersion appVersion = AppVersion.newBuilder().build(); + String appVersionId = "appVersionId303221490"; + client.createAppVersion(parent, appVersion, appVersionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAppVersionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + AppVersionName name = AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]"); + + client.deleteAppVersion(name); + + 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 deleteAppVersionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppVersionName name = AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]"); + client.deleteAppVersion(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAppVersionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-2813/locations/location-2813/apps/app-2813/versions/version-2813"; + + client.deleteAppVersion(name); + + 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 deleteAppVersionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-2813/locations/location-2813/apps/app-2813/versions/version-2813"; + client.deleteAppVersion(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void restoreAppVersionTest() throws Exception { + RestoreAppVersionResponse expectedResponse = RestoreAppVersionResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreAppVersionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + AppVersionName name = AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]"); + + RestoreAppVersionResponse actualResponse = client.restoreAppVersionAsync(name).get(); + 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 restoreAppVersionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppVersionName name = AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]"); + client.restoreAppVersionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void restoreAppVersionTest2() throws Exception { + RestoreAppVersionResponse expectedResponse = RestoreAppVersionResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreAppVersionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-2813/locations/location-2813/apps/app-2813/versions/version-2813"; + + RestoreAppVersionResponse actualResponse = client.restoreAppVersionAsync(name).get(); + 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 restoreAppVersionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-2813/locations/location-2813/apps/app-2813/versions/version-2813"; + client.restoreAppVersionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listChangelogsTest() throws Exception { + Changelog responsesElement = Changelog.newBuilder().build(); + ListChangelogsResponse expectedResponse = + ListChangelogsResponse.newBuilder() + .setNextPageToken("") + .addAllChangelogs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + + ListChangelogsPagedResponse pagedListResponse = client.listChangelogs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getChangelogsList().get(0), resources.get(0)); + + 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 listChangelogsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + client.listChangelogs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listChangelogsTest2() throws Exception { + Changelog responsesElement = Changelog.newBuilder().build(); + ListChangelogsResponse expectedResponse = + ListChangelogsResponse.newBuilder() + .setNextPageToken("") + .addAllChangelogs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + + ListChangelogsPagedResponse pagedListResponse = client.listChangelogs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getChangelogsList().get(0), resources.get(0)); + + 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 listChangelogsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + client.listChangelogs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getChangelogTest() throws Exception { + Changelog expectedResponse = + Changelog.newBuilder() + .setName(ChangelogName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CHANGELOG]").toString()) + .setAuthor("author-1406328437") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setResource("resource-341064690") + .setResourceType("resourceType-384364440") + .setAction("action-1422950858") + .setOriginalResource(Struct.newBuilder().build()) + .setNewResource(Struct.newBuilder().build()) + .addAllDependentResources(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSequenceNumber(-1309190777) + .build(); + mockService.addResponse(expectedResponse); + + ChangelogName name = ChangelogName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CHANGELOG]"); + + Changelog actualResponse = client.getChangelog(name); + 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 getChangelogExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ChangelogName name = ChangelogName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CHANGELOG]"); + client.getChangelog(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getChangelogTest2() throws Exception { + Changelog expectedResponse = + Changelog.newBuilder() + .setName(ChangelogName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CHANGELOG]").toString()) + .setAuthor("author-1406328437") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setResource("resource-341064690") + .setResourceType("resourceType-384364440") + .setAction("action-1422950858") + .setOriginalResource(Struct.newBuilder().build()) + .setNewResource(Struct.newBuilder().build()) + .addAllDependentResources(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSequenceNumber(-1309190777) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-6425/locations/location-6425/apps/app-6425/changelogs/changelog-6425"; + + Changelog actualResponse = client.getChangelog(name); + 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 getChangelogExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6425/locations/location-6425/apps/app-6425/changelogs/changelog-6425"; + client.getChangelog(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + 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 listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + + Location actualResponse = client.getLocation(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 getLocationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/AgentServiceClientTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/AgentServiceClientTest.java new file mode 100644 index 000000000000..1c2a41b89e6f --- /dev/null +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/AgentServiceClientTest.java @@ -0,0 +1,5176 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import static com.google.cloud.ces.v1.AgentServiceClient.ListAgentsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListAppVersionsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListAppsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListChangelogsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListConversationsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListDeploymentsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListExamplesPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListGuardrailsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListToolsPagedResponse; +import static com.google.cloud.ces.v1.AgentServiceClient.ListToolsetsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Struct; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AgentServiceClientTest { + private static MockAgentService mockAgentService; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private AgentServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockAgentService = new MockAgentService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockAgentService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + AgentServiceSettings settings = + AgentServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AgentServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listAppsTest() throws Exception { + App responsesElement = App.newBuilder().build(); + ListAppsResponse expectedResponse = + ListAppsResponse.newBuilder() + .setNextPageToken("") + .addAllApps(Arrays.asList(responsesElement)) + .build(); + mockAgentService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAppsPagedResponse pagedListResponse = client.listApps(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAppsList().get(0), resources.get(0)); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAppsRequest actualRequest = ((ListAppsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAppsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listApps(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAppsTest2() throws Exception { + App responsesElement = App.newBuilder().build(); + ListAppsResponse expectedResponse = + ListAppsResponse.newBuilder() + .setNextPageToken("") + .addAllApps(Arrays.asList(responsesElement)) + .build(); + mockAgentService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAppsPagedResponse pagedListResponse = client.listApps(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAppsList().get(0), resources.get(0)); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAppsRequest actualRequest = ((ListAppsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAppsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listApps(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAppTest() throws Exception { + App expectedResponse = + App.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setPinned(true) + .setRootAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setLanguageSettings(LanguageSettings.newBuilder().build()) + .setTimeZoneSettings(TimeZoneSettings.newBuilder().build()) + .setAudioProcessingConfig(AudioProcessingConfig.newBuilder().build()) + .setLoggingSettings(LoggingSettings.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) + .addAllVariableDeclarations(new ArrayList()) + .addAllPredefinedVariableDeclarations(new ArrayList()) + .setGlobalInstruction("globalInstruction518388971") + .addAllGuardrails(new ArrayList()) + .setDataStoreSettings(DataStoreSettings.newBuilder().build()) + .setDefaultChannelProfile(ChannelProfile.newBuilder().build()) + .putAllMetadata(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setDeploymentCount(2081851157) + .setClientCertificateSettings(ClientCertificateSettings.newBuilder().build()) + .setLocked(true) + .build(); + mockAgentService.addResponse(expectedResponse); + + AppName name = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + + App actualResponse = client.getApp(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAppRequest actualRequest = ((GetAppRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAppExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + AppName name = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + client.getApp(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAppTest2() throws Exception { + App expectedResponse = + App.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setPinned(true) + .setRootAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setLanguageSettings(LanguageSettings.newBuilder().build()) + .setTimeZoneSettings(TimeZoneSettings.newBuilder().build()) + .setAudioProcessingConfig(AudioProcessingConfig.newBuilder().build()) + .setLoggingSettings(LoggingSettings.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) + .addAllVariableDeclarations(new ArrayList()) + .addAllPredefinedVariableDeclarations(new ArrayList()) + .setGlobalInstruction("globalInstruction518388971") + .addAllGuardrails(new ArrayList()) + .setDataStoreSettings(DataStoreSettings.newBuilder().build()) + .setDefaultChannelProfile(ChannelProfile.newBuilder().build()) + .putAllMetadata(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setDeploymentCount(2081851157) + .setClientCertificateSettings(ClientCertificateSettings.newBuilder().build()) + .setLocked(true) + .build(); + mockAgentService.addResponse(expectedResponse); + + String name = "name3373707"; + + App actualResponse = client.getApp(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAppRequest actualRequest = ((GetAppRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAppExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String name = "name3373707"; + client.getApp(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAppTest() throws Exception { + App expectedResponse = + App.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setPinned(true) + .setRootAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setLanguageSettings(LanguageSettings.newBuilder().build()) + .setTimeZoneSettings(TimeZoneSettings.newBuilder().build()) + .setAudioProcessingConfig(AudioProcessingConfig.newBuilder().build()) + .setLoggingSettings(LoggingSettings.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) + .addAllVariableDeclarations(new ArrayList()) + .addAllPredefinedVariableDeclarations(new ArrayList()) + .setGlobalInstruction("globalInstruction518388971") + .addAllGuardrails(new ArrayList()) + .setDataStoreSettings(DataStoreSettings.newBuilder().build()) + .setDefaultChannelProfile(ChannelProfile.newBuilder().build()) + .putAllMetadata(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setDeploymentCount(2081851157) + .setClientCertificateSettings(ClientCertificateSettings.newBuilder().build()) + .setLocked(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAppTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAgentService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + App app = App.newBuilder().build(); + + App actualResponse = client.createAppAsync(parent, app).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAppRequest actualRequest = ((CreateAppRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(app, actualRequest.getApp()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAppExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + App app = App.newBuilder().build(); + client.createAppAsync(parent, app).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createAppTest2() throws Exception { + App expectedResponse = + App.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setPinned(true) + .setRootAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setLanguageSettings(LanguageSettings.newBuilder().build()) + .setTimeZoneSettings(TimeZoneSettings.newBuilder().build()) + .setAudioProcessingConfig(AudioProcessingConfig.newBuilder().build()) + .setLoggingSettings(LoggingSettings.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) + .addAllVariableDeclarations(new ArrayList()) + .addAllPredefinedVariableDeclarations(new ArrayList()) + .setGlobalInstruction("globalInstruction518388971") + .addAllGuardrails(new ArrayList()) + .setDataStoreSettings(DataStoreSettings.newBuilder().build()) + .setDefaultChannelProfile(ChannelProfile.newBuilder().build()) + .putAllMetadata(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setDeploymentCount(2081851157) + .setClientCertificateSettings(ClientCertificateSettings.newBuilder().build()) + .setLocked(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAppTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAgentService.addResponse(resultOperation); + + String parent = "parent-995424086"; + App app = App.newBuilder().build(); + + App actualResponse = client.createAppAsync(parent, app).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAppRequest actualRequest = ((CreateAppRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(app, actualRequest.getApp()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAppExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String parent = "parent-995424086"; + App app = App.newBuilder().build(); + client.createAppAsync(parent, app).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createAppTest3() throws Exception { + App expectedResponse = + App.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setPinned(true) + .setRootAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setLanguageSettings(LanguageSettings.newBuilder().build()) + .setTimeZoneSettings(TimeZoneSettings.newBuilder().build()) + .setAudioProcessingConfig(AudioProcessingConfig.newBuilder().build()) + .setLoggingSettings(LoggingSettings.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) + .addAllVariableDeclarations(new ArrayList()) + .addAllPredefinedVariableDeclarations(new ArrayList()) + .setGlobalInstruction("globalInstruction518388971") + .addAllGuardrails(new ArrayList()) + .setDataStoreSettings(DataStoreSettings.newBuilder().build()) + .setDefaultChannelProfile(ChannelProfile.newBuilder().build()) + .putAllMetadata(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setDeploymentCount(2081851157) + .setClientCertificateSettings(ClientCertificateSettings.newBuilder().build()) + .setLocked(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAppTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAgentService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + App app = App.newBuilder().build(); + String appId = "appId93028124"; + + App actualResponse = client.createAppAsync(parent, app, appId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAppRequest actualRequest = ((CreateAppRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(app, actualRequest.getApp()); + Assert.assertEquals(appId, actualRequest.getAppId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAppExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + App app = App.newBuilder().build(); + String appId = "appId93028124"; + client.createAppAsync(parent, app, appId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createAppTest4() throws Exception { + App expectedResponse = + App.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setPinned(true) + .setRootAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setLanguageSettings(LanguageSettings.newBuilder().build()) + .setTimeZoneSettings(TimeZoneSettings.newBuilder().build()) + .setAudioProcessingConfig(AudioProcessingConfig.newBuilder().build()) + .setLoggingSettings(LoggingSettings.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) + .addAllVariableDeclarations(new ArrayList()) + .addAllPredefinedVariableDeclarations(new ArrayList()) + .setGlobalInstruction("globalInstruction518388971") + .addAllGuardrails(new ArrayList()) + .setDataStoreSettings(DataStoreSettings.newBuilder().build()) + .setDefaultChannelProfile(ChannelProfile.newBuilder().build()) + .putAllMetadata(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setDeploymentCount(2081851157) + .setClientCertificateSettings(ClientCertificateSettings.newBuilder().build()) + .setLocked(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAppTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAgentService.addResponse(resultOperation); + + String parent = "parent-995424086"; + App app = App.newBuilder().build(); + String appId = "appId93028124"; + + App actualResponse = client.createAppAsync(parent, app, appId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAppRequest actualRequest = ((CreateAppRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(app, actualRequest.getApp()); + Assert.assertEquals(appId, actualRequest.getAppId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAppExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String parent = "parent-995424086"; + App app = App.newBuilder().build(); + String appId = "appId93028124"; + client.createAppAsync(parent, app, appId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateAppTest() throws Exception { + App expectedResponse = + App.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setPinned(true) + .setRootAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setLanguageSettings(LanguageSettings.newBuilder().build()) + .setTimeZoneSettings(TimeZoneSettings.newBuilder().build()) + .setAudioProcessingConfig(AudioProcessingConfig.newBuilder().build()) + .setLoggingSettings(LoggingSettings.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) + .addAllVariableDeclarations(new ArrayList()) + .addAllPredefinedVariableDeclarations(new ArrayList()) + .setGlobalInstruction("globalInstruction518388971") + .addAllGuardrails(new ArrayList()) + .setDataStoreSettings(DataStoreSettings.newBuilder().build()) + .setDefaultChannelProfile(ChannelProfile.newBuilder().build()) + .putAllMetadata(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setDeploymentCount(2081851157) + .setClientCertificateSettings(ClientCertificateSettings.newBuilder().build()) + .setLocked(true) + .build(); + mockAgentService.addResponse(expectedResponse); + + App app = App.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + App actualResponse = client.updateApp(app, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateAppRequest actualRequest = ((UpdateAppRequest) actualRequests.get(0)); + + Assert.assertEquals(app, actualRequest.getApp()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateAppExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + App app = App.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateApp(app, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAppTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAppTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAgentService.addResponse(resultOperation); + + AppName name = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + + client.deleteAppAsync(name).get(); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAppRequest actualRequest = ((DeleteAppRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAppExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + AppName name = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + client.deleteAppAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteAppTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAppTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAgentService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteAppAsync(name).get(); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAppRequest actualRequest = ((DeleteAppRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAppExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String name = "name3373707"; + client.deleteAppAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void exportAppTest() throws Exception { + ExportAppResponse expectedResponse = ExportAppResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportAppTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAgentService.addResponse(resultOperation); + + AppName name = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + + ExportAppResponse actualResponse = client.exportAppAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ExportAppRequest actualRequest = ((ExportAppRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void exportAppExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + AppName name = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + client.exportAppAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void exportAppTest2() throws Exception { + ExportAppResponse expectedResponse = ExportAppResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportAppTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAgentService.addResponse(resultOperation); + + String name = "name3373707"; + + ExportAppResponse actualResponse = client.exportAppAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ExportAppRequest actualRequest = ((ExportAppRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void exportAppExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String name = "name3373707"; + client.exportAppAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void importAppTest() throws Exception { + ImportAppResponse expectedResponse = + ImportAppResponse.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .addAllWarnings(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importAppTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAgentService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String displayName = "displayName1714148973"; + String appId = "appId93028124"; + + ImportAppResponse actualResponse = client.importAppAsync(parent, displayName, appId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportAppRequest actualRequest = ((ImportAppRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(displayName, actualRequest.getDisplayName()); + Assert.assertEquals(appId, actualRequest.getAppId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void importAppExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String displayName = "displayName1714148973"; + String appId = "appId93028124"; + client.importAppAsync(parent, displayName, appId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void importAppTest2() throws Exception { + ImportAppResponse expectedResponse = + ImportAppResponse.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .addAllWarnings(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importAppTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAgentService.addResponse(resultOperation); + + String parent = "parent-995424086"; + String displayName = "displayName1714148973"; + String appId = "appId93028124"; + + ImportAppResponse actualResponse = client.importAppAsync(parent, displayName, appId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportAppRequest actualRequest = ((ImportAppRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(displayName, actualRequest.getDisplayName()); + Assert.assertEquals(appId, actualRequest.getAppId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void importAppExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String parent = "parent-995424086"; + String displayName = "displayName1714148973"; + String appId = "appId93028124"; + client.importAppAsync(parent, displayName, appId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listAgentsTest() throws Exception { + Agent responsesElement = Agent.newBuilder().build(); + ListAgentsResponse expectedResponse = + ListAgentsResponse.newBuilder() + .setNextPageToken("") + .addAllAgents(Arrays.asList(responsesElement)) + .build(); + mockAgentService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + + ListAgentsPagedResponse pagedListResponse = client.listAgents(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAgentsList().get(0), resources.get(0)); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAgentsRequest actualRequest = ((ListAgentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAgentsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + client.listAgents(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAgentsTest2() throws Exception { + Agent responsesElement = Agent.newBuilder().build(); + ListAgentsResponse expectedResponse = + ListAgentsResponse.newBuilder() + .setNextPageToken("") + .addAllAgents(Arrays.asList(responsesElement)) + .build(); + mockAgentService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAgentsPagedResponse pagedListResponse = client.listAgents(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAgentsList().get(0), resources.get(0)); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAgentsRequest actualRequest = ((ListAgentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAgentsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listAgents(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAgentTest() throws Exception { + Agent expectedResponse = + Agent.newBuilder() + .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setModelSettings(ModelSettings.newBuilder().build()) + .setInstruction("instruction301526158") + .addAllTools(new ArrayList()) + .addAllChildAgents(new ArrayList()) + .addAllBeforeAgentCallbacks(new ArrayList()) + .addAllAfterAgentCallbacks(new ArrayList()) + .addAllBeforeModelCallbacks(new ArrayList()) + .addAllAfterModelCallbacks(new ArrayList()) + .addAllBeforeToolCallbacks(new ArrayList()) + .addAllAfterToolCallbacks(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllGuardrails(new ArrayList()) + .setEtag("etag3123477") + .addAllToolsets(new ArrayList()) + .setGeneratedSummary("generatedSummary-323053801") + .addAllTransferRules(new ArrayList()) + .build(); + mockAgentService.addResponse(expectedResponse); + + AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]"); + + Agent actualResponse = client.getAgent(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAgentRequest actualRequest = ((GetAgentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAgentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]"); + client.getAgent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAgentTest2() throws Exception { + Agent expectedResponse = + Agent.newBuilder() + .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setModelSettings(ModelSettings.newBuilder().build()) + .setInstruction("instruction301526158") + .addAllTools(new ArrayList()) + .addAllChildAgents(new ArrayList()) + .addAllBeforeAgentCallbacks(new ArrayList()) + .addAllAfterAgentCallbacks(new ArrayList()) + .addAllBeforeModelCallbacks(new ArrayList()) + .addAllAfterModelCallbacks(new ArrayList()) + .addAllBeforeToolCallbacks(new ArrayList()) + .addAllAfterToolCallbacks(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllGuardrails(new ArrayList()) + .setEtag("etag3123477") + .addAllToolsets(new ArrayList()) + .setGeneratedSummary("generatedSummary-323053801") + .addAllTransferRules(new ArrayList()) + .build(); + mockAgentService.addResponse(expectedResponse); + + String name = "name3373707"; + + Agent actualResponse = client.getAgent(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAgentRequest actualRequest = ((GetAgentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAgentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String name = "name3373707"; + client.getAgent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAgentTest() throws Exception { + Agent expectedResponse = + Agent.newBuilder() + .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setModelSettings(ModelSettings.newBuilder().build()) + .setInstruction("instruction301526158") + .addAllTools(new ArrayList()) + .addAllChildAgents(new ArrayList()) + .addAllBeforeAgentCallbacks(new ArrayList()) + .addAllAfterAgentCallbacks(new ArrayList()) + .addAllBeforeModelCallbacks(new ArrayList()) + .addAllAfterModelCallbacks(new ArrayList()) + .addAllBeforeToolCallbacks(new ArrayList()) + .addAllAfterToolCallbacks(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllGuardrails(new ArrayList()) + .setEtag("etag3123477") + .addAllToolsets(new ArrayList()) + .setGeneratedSummary("generatedSummary-323053801") + .addAllTransferRules(new ArrayList()) + .build(); + mockAgentService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Agent agent = Agent.newBuilder().build(); + + Agent actualResponse = client.createAgent(parent, agent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAgentRequest actualRequest = ((CreateAgentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(agent, actualRequest.getAgent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAgentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Agent agent = Agent.newBuilder().build(); + client.createAgent(parent, agent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAgentTest2() throws Exception { + Agent expectedResponse = + Agent.newBuilder() + .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setModelSettings(ModelSettings.newBuilder().build()) + .setInstruction("instruction301526158") + .addAllTools(new ArrayList()) + .addAllChildAgents(new ArrayList()) + .addAllBeforeAgentCallbacks(new ArrayList()) + .addAllAfterAgentCallbacks(new ArrayList()) + .addAllBeforeModelCallbacks(new ArrayList()) + .addAllAfterModelCallbacks(new ArrayList()) + .addAllBeforeToolCallbacks(new ArrayList()) + .addAllAfterToolCallbacks(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllGuardrails(new ArrayList()) + .setEtag("etag3123477") + .addAllToolsets(new ArrayList()) + .setGeneratedSummary("generatedSummary-323053801") + .addAllTransferRules(new ArrayList()) + .build(); + mockAgentService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Agent agent = Agent.newBuilder().build(); + + Agent actualResponse = client.createAgent(parent, agent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAgentRequest actualRequest = ((CreateAgentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(agent, actualRequest.getAgent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAgentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String parent = "parent-995424086"; + Agent agent = Agent.newBuilder().build(); + client.createAgent(parent, agent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAgentTest3() throws Exception { + Agent expectedResponse = + Agent.newBuilder() + .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setModelSettings(ModelSettings.newBuilder().build()) + .setInstruction("instruction301526158") + .addAllTools(new ArrayList()) + .addAllChildAgents(new ArrayList()) + .addAllBeforeAgentCallbacks(new ArrayList()) + .addAllAfterAgentCallbacks(new ArrayList()) + .addAllBeforeModelCallbacks(new ArrayList()) + .addAllAfterModelCallbacks(new ArrayList()) + .addAllBeforeToolCallbacks(new ArrayList()) + .addAllAfterToolCallbacks(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllGuardrails(new ArrayList()) + .setEtag("etag3123477") + .addAllToolsets(new ArrayList()) + .setGeneratedSummary("generatedSummary-323053801") + .addAllTransferRules(new ArrayList()) + .build(); + mockAgentService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Agent agent = Agent.newBuilder().build(); + String agentId = "agentId-1060987136"; + + Agent actualResponse = client.createAgent(parent, agent, agentId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAgentRequest actualRequest = ((CreateAgentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(agent, actualRequest.getAgent()); + Assert.assertEquals(agentId, actualRequest.getAgentId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAgentExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Agent agent = Agent.newBuilder().build(); + String agentId = "agentId-1060987136"; + client.createAgent(parent, agent, agentId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAgentTest4() throws Exception { + Agent expectedResponse = + Agent.newBuilder() + .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setModelSettings(ModelSettings.newBuilder().build()) + .setInstruction("instruction301526158") + .addAllTools(new ArrayList()) + .addAllChildAgents(new ArrayList()) + .addAllBeforeAgentCallbacks(new ArrayList()) + .addAllAfterAgentCallbacks(new ArrayList()) + .addAllBeforeModelCallbacks(new ArrayList()) + .addAllAfterModelCallbacks(new ArrayList()) + .addAllBeforeToolCallbacks(new ArrayList()) + .addAllAfterToolCallbacks(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllGuardrails(new ArrayList()) + .setEtag("etag3123477") + .addAllToolsets(new ArrayList()) + .setGeneratedSummary("generatedSummary-323053801") + .addAllTransferRules(new ArrayList()) + .build(); + mockAgentService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Agent agent = Agent.newBuilder().build(); + String agentId = "agentId-1060987136"; + + Agent actualResponse = client.createAgent(parent, agent, agentId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAgentRequest actualRequest = ((CreateAgentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(agent, actualRequest.getAgent()); + Assert.assertEquals(agentId, actualRequest.getAgentId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAgentExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String parent = "parent-995424086"; + Agent agent = Agent.newBuilder().build(); + String agentId = "agentId-1060987136"; + client.createAgent(parent, agent, agentId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateAgentTest() throws Exception { + Agent expectedResponse = + Agent.newBuilder() + .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setModelSettings(ModelSettings.newBuilder().build()) + .setInstruction("instruction301526158") + .addAllTools(new ArrayList()) + .addAllChildAgents(new ArrayList()) + .addAllBeforeAgentCallbacks(new ArrayList()) + .addAllAfterAgentCallbacks(new ArrayList()) + .addAllBeforeModelCallbacks(new ArrayList()) + .addAllAfterModelCallbacks(new ArrayList()) + .addAllBeforeToolCallbacks(new ArrayList()) + .addAllAfterToolCallbacks(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllGuardrails(new ArrayList()) + .setEtag("etag3123477") + .addAllToolsets(new ArrayList()) + .setGeneratedSummary("generatedSummary-323053801") + .addAllTransferRules(new ArrayList()) + .build(); + mockAgentService.addResponse(expectedResponse); + + Agent agent = Agent.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Agent actualResponse = client.updateAgent(agent, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateAgentRequest actualRequest = ((UpdateAgentRequest) actualRequests.get(0)); + + Assert.assertEquals(agent, actualRequest.getAgent()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateAgentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + Agent agent = Agent.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAgent(agent, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAgentTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAgentService.addResponse(expectedResponse); + + AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]"); + + client.deleteAgent(name); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAgentRequest actualRequest = ((DeleteAgentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAgentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]"); + client.deleteAgent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAgentTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAgentService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteAgent(name); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAgentRequest actualRequest = ((DeleteAgentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAgentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String name = "name3373707"; + client.deleteAgent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listExamplesTest() throws Exception { + Example responsesElement = Example.newBuilder().build(); + ListExamplesResponse expectedResponse = + ListExamplesResponse.newBuilder() + .setNextPageToken("") + .addAllExamples(Arrays.asList(responsesElement)) + .build(); + mockAgentService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + + ListExamplesPagedResponse pagedListResponse = client.listExamples(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExamplesList().get(0), resources.get(0)); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListExamplesRequest actualRequest = ((ListExamplesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listExamplesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + client.listExamples(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listExamplesTest2() throws Exception { + Example responsesElement = Example.newBuilder().build(); + ListExamplesResponse expectedResponse = + ListExamplesResponse.newBuilder() + .setNextPageToken("") + .addAllExamples(Arrays.asList(responsesElement)) + .build(); + mockAgentService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListExamplesPagedResponse pagedListResponse = client.listExamples(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExamplesList().get(0), resources.get(0)); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListExamplesRequest actualRequest = ((ListExamplesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listExamplesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listExamples(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getExampleTest() throws Exception { + Example expectedResponse = + Example.newBuilder() + .setName(ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEntryAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .addAllMessages(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInvalid(true) + .setEtag("etag3123477") + .build(); + mockAgentService.addResponse(expectedResponse); + + ExampleName name = ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]"); + + Example actualResponse = client.getExample(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetExampleRequest actualRequest = ((GetExampleRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getExampleExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + ExampleName name = ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]"); + client.getExample(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getExampleTest2() throws Exception { + Example expectedResponse = + Example.newBuilder() + .setName(ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEntryAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .addAllMessages(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInvalid(true) + .setEtag("etag3123477") + .build(); + mockAgentService.addResponse(expectedResponse); + + String name = "name3373707"; + + Example actualResponse = client.getExample(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetExampleRequest actualRequest = ((GetExampleRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getExampleExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String name = "name3373707"; + client.getExample(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createExampleTest() throws Exception { + Example expectedResponse = + Example.newBuilder() + .setName(ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEntryAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .addAllMessages(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInvalid(true) + .setEtag("etag3123477") + .build(); + mockAgentService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Example example = Example.newBuilder().build(); + + Example actualResponse = client.createExample(parent, example); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateExampleRequest actualRequest = ((CreateExampleRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(example, actualRequest.getExample()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createExampleExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Example example = Example.newBuilder().build(); + client.createExample(parent, example); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createExampleTest2() throws Exception { + Example expectedResponse = + Example.newBuilder() + .setName(ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEntryAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .addAllMessages(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInvalid(true) + .setEtag("etag3123477") + .build(); + mockAgentService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Example example = Example.newBuilder().build(); + + Example actualResponse = client.createExample(parent, example); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateExampleRequest actualRequest = ((CreateExampleRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(example, actualRequest.getExample()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createExampleExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String parent = "parent-995424086"; + Example example = Example.newBuilder().build(); + client.createExample(parent, example); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createExampleTest3() throws Exception { + Example expectedResponse = + Example.newBuilder() + .setName(ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEntryAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .addAllMessages(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInvalid(true) + .setEtag("etag3123477") + .build(); + mockAgentService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Example example = Example.newBuilder().build(); + String exampleId = "exampleId-64591835"; + + Example actualResponse = client.createExample(parent, example, exampleId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateExampleRequest actualRequest = ((CreateExampleRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(example, actualRequest.getExample()); + Assert.assertEquals(exampleId, actualRequest.getExampleId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createExampleExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Example example = Example.newBuilder().build(); + String exampleId = "exampleId-64591835"; + client.createExample(parent, example, exampleId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createExampleTest4() throws Exception { + Example expectedResponse = + Example.newBuilder() + .setName(ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEntryAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .addAllMessages(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInvalid(true) + .setEtag("etag3123477") + .build(); + mockAgentService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Example example = Example.newBuilder().build(); + String exampleId = "exampleId-64591835"; + + Example actualResponse = client.createExample(parent, example, exampleId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateExampleRequest actualRequest = ((CreateExampleRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(example, actualRequest.getExample()); + Assert.assertEquals(exampleId, actualRequest.getExampleId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createExampleExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String parent = "parent-995424086"; + Example example = Example.newBuilder().build(); + String exampleId = "exampleId-64591835"; + client.createExample(parent, example, exampleId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateExampleTest() throws Exception { + Example expectedResponse = + Example.newBuilder() + .setName(ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEntryAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .addAllMessages(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInvalid(true) + .setEtag("etag3123477") + .build(); + mockAgentService.addResponse(expectedResponse); + + Example example = Example.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Example actualResponse = client.updateExample(example, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateExampleRequest actualRequest = ((UpdateExampleRequest) actualRequests.get(0)); + + Assert.assertEquals(example, actualRequest.getExample()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateExampleExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + Example example = Example.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateExample(example, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteExampleTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAgentService.addResponse(expectedResponse); + + ExampleName name = ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]"); + + client.deleteExample(name); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteExampleRequest actualRequest = ((DeleteExampleRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteExampleExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + ExampleName name = ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]"); + client.deleteExample(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteExampleTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAgentService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteExample(name); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteExampleRequest actualRequest = ((DeleteExampleRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteExampleExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String name = "name3373707"; + client.deleteExample(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listToolsTest() throws Exception { + Tool responsesElement = Tool.newBuilder().build(); + ListToolsResponse expectedResponse = + ListToolsResponse.newBuilder() + .setNextPageToken("") + .addAllTools(Arrays.asList(responsesElement)) + .build(); + mockAgentService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + + ListToolsPagedResponse pagedListResponse = client.listTools(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getToolsList().get(0), resources.get(0)); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListToolsRequest actualRequest = ((ListToolsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listToolsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + client.listTools(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listToolsTest2() throws Exception { + Tool responsesElement = Tool.newBuilder().build(); + ListToolsResponse expectedResponse = + ListToolsResponse.newBuilder() + .setNextPageToken("") + .addAllTools(Arrays.asList(responsesElement)) + .build(); + mockAgentService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListToolsPagedResponse pagedListResponse = client.listTools(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getToolsList().get(0), resources.get(0)); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListToolsRequest actualRequest = ((ListToolsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listToolsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listTools(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getToolTest() throws Exception { + Tool expectedResponse = + Tool.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) + .setDisplayName("displayName1714148973") + .setExecutionType(ExecutionType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setGeneratedSummary("generatedSummary-323053801") + .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .build(); + mockAgentService.addResponse(expectedResponse); + + ToolName name = ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]"); + + Tool actualResponse = client.getTool(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetToolRequest actualRequest = ((GetToolRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getToolExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + ToolName name = ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]"); + client.getTool(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getToolTest2() throws Exception { + Tool expectedResponse = + Tool.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) + .setDisplayName("displayName1714148973") + .setExecutionType(ExecutionType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setGeneratedSummary("generatedSummary-323053801") + .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .build(); + mockAgentService.addResponse(expectedResponse); + + String name = "name3373707"; + + Tool actualResponse = client.getTool(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetToolRequest actualRequest = ((GetToolRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getToolExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String name = "name3373707"; + client.getTool(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listConversationsTest() throws Exception { + Conversation responsesElement = Conversation.newBuilder().build(); + ListConversationsResponse expectedResponse = + ListConversationsResponse.newBuilder() + .setNextPageToken("") + .addAllConversations(Arrays.asList(responsesElement)) + .build(); + mockAgentService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + + ListConversationsPagedResponse pagedListResponse = client.listConversations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConversationsList().get(0), resources.get(0)); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListConversationsRequest actualRequest = ((ListConversationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listConversationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + client.listConversations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listConversationsTest2() throws Exception { + Conversation responsesElement = Conversation.newBuilder().build(); + ListConversationsResponse expectedResponse = + ListConversationsResponse.newBuilder() + .setNextPageToken("") + .addAllConversations(Arrays.asList(responsesElement)) + .build(); + mockAgentService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListConversationsPagedResponse pagedListResponse = client.listConversations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConversationsList().get(0), resources.get(0)); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListConversationsRequest actualRequest = ((ListConversationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listConversationsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listConversations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getConversationTest() throws Exception { + Conversation expectedResponse = + Conversation.newBuilder() + .setName( + ConversationName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CONVERSATION]") + .toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .addAllTurns(new ArrayList()) + .setTurnCount(428155597) + .addAllInputTypes(new ArrayList()) + .setEntryAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setDeployment( + DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) + .setAppVersion( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setLanguageCode("languageCode-2092349083") + .addAllMessages(new ArrayList()) + .build(); + mockAgentService.addResponse(expectedResponse); + + ConversationName name = + ConversationName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CONVERSATION]"); + + Conversation actualResponse = client.getConversation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetConversationRequest actualRequest = ((GetConversationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getConversationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + ConversationName name = + ConversationName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CONVERSATION]"); + client.getConversation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getConversationTest2() throws Exception { + Conversation expectedResponse = + Conversation.newBuilder() + .setName( + ConversationName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CONVERSATION]") + .toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .addAllTurns(new ArrayList()) + .setTurnCount(428155597) + .addAllInputTypes(new ArrayList()) + .setEntryAgent(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setDeployment( + DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) + .setAppVersion( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setLanguageCode("languageCode-2092349083") + .addAllMessages(new ArrayList()) + .build(); + mockAgentService.addResponse(expectedResponse); + + String name = "name3373707"; + + Conversation actualResponse = client.getConversation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetConversationRequest actualRequest = ((GetConversationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getConversationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String name = "name3373707"; + client.getConversation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteConversationTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAgentService.addResponse(expectedResponse); + + ConversationName name = + ConversationName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CONVERSATION]"); + + client.deleteConversation(name); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteConversationRequest actualRequest = ((DeleteConversationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteConversationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + ConversationName name = + ConversationName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CONVERSATION]"); + client.deleteConversation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteConversationTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAgentService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteConversation(name); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteConversationRequest actualRequest = ((DeleteConversationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteConversationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String name = "name3373707"; + client.deleteConversation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchDeleteConversationsTest() throws Exception { + BatchDeleteConversationsResponse expectedResponse = + BatchDeleteConversationsResponse.newBuilder() + .addAllDeletedConversations(new ArrayList()) + .addAllFailedConversations(new ArrayList()) + .addAllErrorMessages(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchDeleteConversationsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAgentService.addResponse(resultOperation); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + + BatchDeleteConversationsResponse actualResponse = + client.batchDeleteConversationsAsync(parent).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchDeleteConversationsRequest actualRequest = + ((BatchDeleteConversationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchDeleteConversationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + client.batchDeleteConversationsAsync(parent).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void batchDeleteConversationsTest2() throws Exception { + BatchDeleteConversationsResponse expectedResponse = + BatchDeleteConversationsResponse.newBuilder() + .addAllDeletedConversations(new ArrayList()) + .addAllFailedConversations(new ArrayList()) + .addAllErrorMessages(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchDeleteConversationsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAgentService.addResponse(resultOperation); + + String parent = "parent-995424086"; + + BatchDeleteConversationsResponse actualResponse = + client.batchDeleteConversationsAsync(parent).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchDeleteConversationsRequest actualRequest = + ((BatchDeleteConversationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchDeleteConversationsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String parent = "parent-995424086"; + client.batchDeleteConversationsAsync(parent).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createToolTest() throws Exception { + Tool expectedResponse = + Tool.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) + .setDisplayName("displayName1714148973") + .setExecutionType(ExecutionType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setGeneratedSummary("generatedSummary-323053801") + .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .build(); + mockAgentService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Tool tool = Tool.newBuilder().build(); + + Tool actualResponse = client.createTool(parent, tool); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateToolRequest actualRequest = ((CreateToolRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(tool, actualRequest.getTool()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createToolExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Tool tool = Tool.newBuilder().build(); + client.createTool(parent, tool); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createToolTest2() throws Exception { + Tool expectedResponse = + Tool.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) + .setDisplayName("displayName1714148973") + .setExecutionType(ExecutionType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setGeneratedSummary("generatedSummary-323053801") + .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .build(); + mockAgentService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Tool tool = Tool.newBuilder().build(); + + Tool actualResponse = client.createTool(parent, tool); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateToolRequest actualRequest = ((CreateToolRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(tool, actualRequest.getTool()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createToolExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String parent = "parent-995424086"; + Tool tool = Tool.newBuilder().build(); + client.createTool(parent, tool); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createToolTest3() throws Exception { + Tool expectedResponse = + Tool.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) + .setDisplayName("displayName1714148973") + .setExecutionType(ExecutionType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setGeneratedSummary("generatedSummary-323053801") + .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .build(); + mockAgentService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Tool tool = Tool.newBuilder().build(); + String toolId = "toolId-868061997"; + + Tool actualResponse = client.createTool(parent, tool, toolId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateToolRequest actualRequest = ((CreateToolRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(tool, actualRequest.getTool()); + Assert.assertEquals(toolId, actualRequest.getToolId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createToolExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Tool tool = Tool.newBuilder().build(); + String toolId = "toolId-868061997"; + client.createTool(parent, tool, toolId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createToolTest4() throws Exception { + Tool expectedResponse = + Tool.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) + .setDisplayName("displayName1714148973") + .setExecutionType(ExecutionType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setGeneratedSummary("generatedSummary-323053801") + .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .build(); + mockAgentService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Tool tool = Tool.newBuilder().build(); + String toolId = "toolId-868061997"; + + Tool actualResponse = client.createTool(parent, tool, toolId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateToolRequest actualRequest = ((CreateToolRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(tool, actualRequest.getTool()); + Assert.assertEquals(toolId, actualRequest.getToolId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createToolExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String parent = "parent-995424086"; + Tool tool = Tool.newBuilder().build(); + String toolId = "toolId-868061997"; + client.createTool(parent, tool, toolId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateToolTest() throws Exception { + Tool expectedResponse = + Tool.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) + .setDisplayName("displayName1714148973") + .setExecutionType(ExecutionType.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setGeneratedSummary("generatedSummary-323053801") + .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .build(); + mockAgentService.addResponse(expectedResponse); + + Tool tool = Tool.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Tool actualResponse = client.updateTool(tool, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateToolRequest actualRequest = ((UpdateToolRequest) actualRequests.get(0)); + + Assert.assertEquals(tool, actualRequest.getTool()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateToolExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + Tool tool = Tool.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateTool(tool, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteToolTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAgentService.addResponse(expectedResponse); + + ToolName name = ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]"); + + client.deleteTool(name); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteToolRequest actualRequest = ((DeleteToolRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteToolExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + ToolName name = ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]"); + client.deleteTool(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteToolTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAgentService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteTool(name); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteToolRequest actualRequest = ((DeleteToolRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteToolExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String name = "name3373707"; + client.deleteTool(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listGuardrailsTest() throws Exception { + Guardrail responsesElement = Guardrail.newBuilder().build(); + ListGuardrailsResponse expectedResponse = + ListGuardrailsResponse.newBuilder() + .setNextPageToken("") + .addAllGuardrails(Arrays.asList(responsesElement)) + .build(); + mockAgentService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + + ListGuardrailsPagedResponse pagedListResponse = client.listGuardrails(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGuardrailsList().get(0), resources.get(0)); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListGuardrailsRequest actualRequest = ((ListGuardrailsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listGuardrailsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + client.listGuardrails(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listGuardrailsTest2() throws Exception { + Guardrail responsesElement = Guardrail.newBuilder().build(); + ListGuardrailsResponse expectedResponse = + ListGuardrailsResponse.newBuilder() + .setNextPageToken("") + .addAllGuardrails(Arrays.asList(responsesElement)) + .build(); + mockAgentService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListGuardrailsPagedResponse pagedListResponse = client.listGuardrails(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGuardrailsList().get(0), resources.get(0)); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListGuardrailsRequest actualRequest = ((ListGuardrailsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listGuardrailsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listGuardrails(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGuardrailTest() throws Exception { + Guardrail expectedResponse = + Guardrail.newBuilder() + .setName(GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEnabled(true) + .setAction(TriggerAction.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockAgentService.addResponse(expectedResponse); + + GuardrailName name = GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]"); + + Guardrail actualResponse = client.getGuardrail(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetGuardrailRequest actualRequest = ((GetGuardrailRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getGuardrailExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + GuardrailName name = GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]"); + client.getGuardrail(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGuardrailTest2() throws Exception { + Guardrail expectedResponse = + Guardrail.newBuilder() + .setName(GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEnabled(true) + .setAction(TriggerAction.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockAgentService.addResponse(expectedResponse); + + String name = "name3373707"; + + Guardrail actualResponse = client.getGuardrail(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetGuardrailRequest actualRequest = ((GetGuardrailRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getGuardrailExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String name = "name3373707"; + client.getGuardrail(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createGuardrailTest() throws Exception { + Guardrail expectedResponse = + Guardrail.newBuilder() + .setName(GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEnabled(true) + .setAction(TriggerAction.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockAgentService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Guardrail guardrail = Guardrail.newBuilder().build(); + + Guardrail actualResponse = client.createGuardrail(parent, guardrail); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateGuardrailRequest actualRequest = ((CreateGuardrailRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(guardrail, actualRequest.getGuardrail()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createGuardrailExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Guardrail guardrail = Guardrail.newBuilder().build(); + client.createGuardrail(parent, guardrail); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createGuardrailTest2() throws Exception { + Guardrail expectedResponse = + Guardrail.newBuilder() + .setName(GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEnabled(true) + .setAction(TriggerAction.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockAgentService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Guardrail guardrail = Guardrail.newBuilder().build(); + + Guardrail actualResponse = client.createGuardrail(parent, guardrail); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateGuardrailRequest actualRequest = ((CreateGuardrailRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(guardrail, actualRequest.getGuardrail()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createGuardrailExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String parent = "parent-995424086"; + Guardrail guardrail = Guardrail.newBuilder().build(); + client.createGuardrail(parent, guardrail); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createGuardrailTest3() throws Exception { + Guardrail expectedResponse = + Guardrail.newBuilder() + .setName(GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEnabled(true) + .setAction(TriggerAction.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockAgentService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Guardrail guardrail = Guardrail.newBuilder().build(); + String guardrailId = "guardrailId1875412786"; + + Guardrail actualResponse = client.createGuardrail(parent, guardrail, guardrailId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateGuardrailRequest actualRequest = ((CreateGuardrailRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(guardrail, actualRequest.getGuardrail()); + Assert.assertEquals(guardrailId, actualRequest.getGuardrailId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createGuardrailExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Guardrail guardrail = Guardrail.newBuilder().build(); + String guardrailId = "guardrailId1875412786"; + client.createGuardrail(parent, guardrail, guardrailId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createGuardrailTest4() throws Exception { + Guardrail expectedResponse = + Guardrail.newBuilder() + .setName(GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEnabled(true) + .setAction(TriggerAction.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockAgentService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Guardrail guardrail = Guardrail.newBuilder().build(); + String guardrailId = "guardrailId1875412786"; + + Guardrail actualResponse = client.createGuardrail(parent, guardrail, guardrailId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateGuardrailRequest actualRequest = ((CreateGuardrailRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(guardrail, actualRequest.getGuardrail()); + Assert.assertEquals(guardrailId, actualRequest.getGuardrailId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createGuardrailExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String parent = "parent-995424086"; + Guardrail guardrail = Guardrail.newBuilder().build(); + String guardrailId = "guardrailId1875412786"; + client.createGuardrail(parent, guardrail, guardrailId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateGuardrailTest() throws Exception { + Guardrail expectedResponse = + Guardrail.newBuilder() + .setName(GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setEnabled(true) + .setAction(TriggerAction.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockAgentService.addResponse(expectedResponse); + + Guardrail guardrail = Guardrail.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Guardrail actualResponse = client.updateGuardrail(guardrail, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateGuardrailRequest actualRequest = ((UpdateGuardrailRequest) actualRequests.get(0)); + + Assert.assertEquals(guardrail, actualRequest.getGuardrail()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateGuardrailExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + Guardrail guardrail = Guardrail.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateGuardrail(guardrail, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteGuardrailTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAgentService.addResponse(expectedResponse); + + GuardrailName name = GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]"); + + client.deleteGuardrail(name); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteGuardrailRequest actualRequest = ((DeleteGuardrailRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteGuardrailExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + GuardrailName name = GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]"); + client.deleteGuardrail(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteGuardrailTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAgentService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteGuardrail(name); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteGuardrailRequest actualRequest = ((DeleteGuardrailRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteGuardrailExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String name = "name3373707"; + client.deleteGuardrail(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDeploymentsTest() throws Exception { + Deployment responsesElement = Deployment.newBuilder().build(); + ListDeploymentsResponse expectedResponse = + ListDeploymentsResponse.newBuilder() + .setNextPageToken("") + .addAllDeployments(Arrays.asList(responsesElement)) + .build(); + mockAgentService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + + ListDeploymentsPagedResponse pagedListResponse = client.listDeployments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDeploymentsRequest actualRequest = ((ListDeploymentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDeploymentsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + client.listDeployments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDeploymentsTest2() throws Exception { + Deployment responsesElement = Deployment.newBuilder().build(); + ListDeploymentsResponse expectedResponse = + ListDeploymentsResponse.newBuilder() + .setNextPageToken("") + .addAllDeployments(Arrays.asList(responsesElement)) + .build(); + mockAgentService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListDeploymentsPagedResponse pagedListResponse = client.listDeployments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDeploymentsRequest actualRequest = ((ListDeploymentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDeploymentsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listDeployments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDeploymentTest() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) + .setDisplayName("displayName1714148973") + .setAppVersion( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setChannelProfile(ChannelProfile.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockAgentService.addResponse(expectedResponse); + + DeploymentName name = DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]"); + + Deployment actualResponse = client.getDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDeploymentRequest actualRequest = ((GetDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDeploymentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + DeploymentName name = DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]"); + client.getDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDeploymentTest2() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) + .setDisplayName("displayName1714148973") + .setAppVersion( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setChannelProfile(ChannelProfile.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockAgentService.addResponse(expectedResponse); + + String name = "name3373707"; + + Deployment actualResponse = client.getDeployment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDeploymentRequest actualRequest = ((GetDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDeploymentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String name = "name3373707"; + client.getDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDeploymentTest() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) + .setDisplayName("displayName1714148973") + .setAppVersion( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setChannelProfile(ChannelProfile.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockAgentService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Deployment deployment = Deployment.newBuilder().build(); + + Deployment actualResponse = client.createDeployment(parent, deployment); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDeploymentRequest actualRequest = ((CreateDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(deployment, actualRequest.getDeployment()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDeploymentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Deployment deployment = Deployment.newBuilder().build(); + client.createDeployment(parent, deployment); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDeploymentTest2() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) + .setDisplayName("displayName1714148973") + .setAppVersion( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setChannelProfile(ChannelProfile.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockAgentService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Deployment deployment = Deployment.newBuilder().build(); + + Deployment actualResponse = client.createDeployment(parent, deployment); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDeploymentRequest actualRequest = ((CreateDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(deployment, actualRequest.getDeployment()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDeploymentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String parent = "parent-995424086"; + Deployment deployment = Deployment.newBuilder().build(); + client.createDeployment(parent, deployment); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDeploymentTest3() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) + .setDisplayName("displayName1714148973") + .setAppVersion( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setChannelProfile(ChannelProfile.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockAgentService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Deployment deployment = Deployment.newBuilder().build(); + String deploymentId = "deploymentId-136894784"; + + Deployment actualResponse = client.createDeployment(parent, deployment, deploymentId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDeploymentRequest actualRequest = ((CreateDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(deployment, actualRequest.getDeployment()); + Assert.assertEquals(deploymentId, actualRequest.getDeploymentId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDeploymentExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Deployment deployment = Deployment.newBuilder().build(); + String deploymentId = "deploymentId-136894784"; + client.createDeployment(parent, deployment, deploymentId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDeploymentTest4() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) + .setDisplayName("displayName1714148973") + .setAppVersion( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setChannelProfile(ChannelProfile.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockAgentService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Deployment deployment = Deployment.newBuilder().build(); + String deploymentId = "deploymentId-136894784"; + + Deployment actualResponse = client.createDeployment(parent, deployment, deploymentId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDeploymentRequest actualRequest = ((CreateDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(deployment, actualRequest.getDeployment()); + Assert.assertEquals(deploymentId, actualRequest.getDeploymentId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDeploymentExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String parent = "parent-995424086"; + Deployment deployment = Deployment.newBuilder().build(); + String deploymentId = "deploymentId-136894784"; + client.createDeployment(parent, deployment, deploymentId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateDeploymentTest() throws Exception { + Deployment expectedResponse = + Deployment.newBuilder() + .setName( + DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) + .setDisplayName("displayName1714148973") + .setAppVersion( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setChannelProfile(ChannelProfile.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockAgentService.addResponse(expectedResponse); + + Deployment deployment = Deployment.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Deployment actualResponse = client.updateDeployment(deployment, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateDeploymentRequest actualRequest = ((UpdateDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(deployment, actualRequest.getDeployment()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateDeploymentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + Deployment deployment = Deployment.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDeployment(deployment, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDeploymentTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAgentService.addResponse(expectedResponse); + + DeploymentName name = DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]"); + + client.deleteDeployment(name); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteDeploymentRequest actualRequest = ((DeleteDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteDeploymentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + DeploymentName name = DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]"); + client.deleteDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDeploymentTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAgentService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteDeployment(name); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteDeploymentRequest actualRequest = ((DeleteDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteDeploymentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String name = "name3373707"; + client.deleteDeployment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listToolsetsTest() throws Exception { + Toolset responsesElement = Toolset.newBuilder().build(); + ListToolsetsResponse expectedResponse = + ListToolsetsResponse.newBuilder() + .setNextPageToken("") + .addAllToolsets(Arrays.asList(responsesElement)) + .build(); + mockAgentService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + + ListToolsetsPagedResponse pagedListResponse = client.listToolsets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getToolsetsList().get(0), resources.get(0)); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListToolsetsRequest actualRequest = ((ListToolsetsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listToolsetsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + client.listToolsets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listToolsetsTest2() throws Exception { + Toolset responsesElement = Toolset.newBuilder().build(); + ListToolsetsResponse expectedResponse = + ListToolsetsResponse.newBuilder() + .setNextPageToken("") + .addAllToolsets(Arrays.asList(responsesElement)) + .build(); + mockAgentService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListToolsetsPagedResponse pagedListResponse = client.listToolsets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getToolsetsList().get(0), resources.get(0)); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListToolsetsRequest actualRequest = ((ListToolsetsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listToolsetsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listToolsets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getToolsetTest() throws Exception { + Toolset expectedResponse = + Toolset.newBuilder() + .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setExecutionType(ExecutionType.forNumber(0)) + .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .build(); + mockAgentService.addResponse(expectedResponse); + + ToolsetName name = ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]"); + + Toolset actualResponse = client.getToolset(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetToolsetRequest actualRequest = ((GetToolsetRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getToolsetExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + ToolsetName name = ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]"); + client.getToolset(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getToolsetTest2() throws Exception { + Toolset expectedResponse = + Toolset.newBuilder() + .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setExecutionType(ExecutionType.forNumber(0)) + .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .build(); + mockAgentService.addResponse(expectedResponse); + + String name = "name3373707"; + + Toolset actualResponse = client.getToolset(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetToolsetRequest actualRequest = ((GetToolsetRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getToolsetExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String name = "name3373707"; + client.getToolset(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createToolsetTest() throws Exception { + Toolset expectedResponse = + Toolset.newBuilder() + .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setExecutionType(ExecutionType.forNumber(0)) + .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .build(); + mockAgentService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Toolset toolset = Toolset.newBuilder().build(); + + Toolset actualResponse = client.createToolset(parent, toolset); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateToolsetRequest actualRequest = ((CreateToolsetRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(toolset, actualRequest.getToolset()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createToolsetExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Toolset toolset = Toolset.newBuilder().build(); + client.createToolset(parent, toolset); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createToolsetTest2() throws Exception { + Toolset expectedResponse = + Toolset.newBuilder() + .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setExecutionType(ExecutionType.forNumber(0)) + .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .build(); + mockAgentService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Toolset toolset = Toolset.newBuilder().build(); + + Toolset actualResponse = client.createToolset(parent, toolset); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateToolsetRequest actualRequest = ((CreateToolsetRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(toolset, actualRequest.getToolset()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createToolsetExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String parent = "parent-995424086"; + Toolset toolset = Toolset.newBuilder().build(); + client.createToolset(parent, toolset); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createToolsetTest3() throws Exception { + Toolset expectedResponse = + Toolset.newBuilder() + .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setExecutionType(ExecutionType.forNumber(0)) + .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .build(); + mockAgentService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Toolset toolset = Toolset.newBuilder().build(); + String toolsetId = "toolsetId-397931899"; + + Toolset actualResponse = client.createToolset(parent, toolset, toolsetId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateToolsetRequest actualRequest = ((CreateToolsetRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(toolset, actualRequest.getToolset()); + Assert.assertEquals(toolsetId, actualRequest.getToolsetId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createToolsetExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Toolset toolset = Toolset.newBuilder().build(); + String toolsetId = "toolsetId-397931899"; + client.createToolset(parent, toolset, toolsetId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createToolsetTest4() throws Exception { + Toolset expectedResponse = + Toolset.newBuilder() + .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setExecutionType(ExecutionType.forNumber(0)) + .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .build(); + mockAgentService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Toolset toolset = Toolset.newBuilder().build(); + String toolsetId = "toolsetId-397931899"; + + Toolset actualResponse = client.createToolset(parent, toolset, toolsetId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateToolsetRequest actualRequest = ((CreateToolsetRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(toolset, actualRequest.getToolset()); + Assert.assertEquals(toolsetId, actualRequest.getToolsetId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createToolsetExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String parent = "parent-995424086"; + Toolset toolset = Toolset.newBuilder().build(); + String toolsetId = "toolsetId-397931899"; + client.createToolset(parent, toolset, toolsetId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateToolsetTest() throws Exception { + Toolset expectedResponse = + Toolset.newBuilder() + .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setExecutionType(ExecutionType.forNumber(0)) + .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .build(); + mockAgentService.addResponse(expectedResponse); + + Toolset toolset = Toolset.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Toolset actualResponse = client.updateToolset(toolset, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateToolsetRequest actualRequest = ((UpdateToolsetRequest) actualRequests.get(0)); + + Assert.assertEquals(toolset, actualRequest.getToolset()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateToolsetExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + Toolset toolset = Toolset.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateToolset(toolset, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteToolsetTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAgentService.addResponse(expectedResponse); + + ToolsetName name = ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]"); + + client.deleteToolset(name); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteToolsetRequest actualRequest = ((DeleteToolsetRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteToolsetExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + ToolsetName name = ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]"); + client.deleteToolset(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteToolsetTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAgentService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteToolset(name); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteToolsetRequest actualRequest = ((DeleteToolsetRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteToolsetExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String name = "name3373707"; + client.deleteToolset(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAppVersionsTest() throws Exception { + AppVersion responsesElement = AppVersion.newBuilder().build(); + ListAppVersionsResponse expectedResponse = + ListAppVersionsResponse.newBuilder() + .setNextPageToken("") + .addAllAppVersions(Arrays.asList(responsesElement)) + .build(); + mockAgentService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + + ListAppVersionsPagedResponse pagedListResponse = client.listAppVersions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAppVersionsList().get(0), resources.get(0)); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAppVersionsRequest actualRequest = ((ListAppVersionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAppVersionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + client.listAppVersions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAppVersionsTest2() throws Exception { + AppVersion responsesElement = AppVersion.newBuilder().build(); + ListAppVersionsResponse expectedResponse = + ListAppVersionsResponse.newBuilder() + .setNextPageToken("") + .addAllAppVersions(Arrays.asList(responsesElement)) + .build(); + mockAgentService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAppVersionsPagedResponse pagedListResponse = client.listAppVersions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAppVersionsList().get(0), resources.get(0)); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAppVersionsRequest actualRequest = ((ListAppVersionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAppVersionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listAppVersions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAppVersionTest() throws Exception { + AppVersion expectedResponse = + AppVersion.newBuilder() + .setName(AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreator("creator1028554796") + .setCreateTime(Timestamp.newBuilder().build()) + .setSnapshot(AppSnapshot.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockAgentService.addResponse(expectedResponse); + + AppVersionName name = AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]"); + + AppVersion actualResponse = client.getAppVersion(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAppVersionRequest actualRequest = ((GetAppVersionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAppVersionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + AppVersionName name = AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]"); + client.getAppVersion(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAppVersionTest2() throws Exception { + AppVersion expectedResponse = + AppVersion.newBuilder() + .setName(AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreator("creator1028554796") + .setCreateTime(Timestamp.newBuilder().build()) + .setSnapshot(AppSnapshot.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockAgentService.addResponse(expectedResponse); + + String name = "name3373707"; + + AppVersion actualResponse = client.getAppVersion(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAppVersionRequest actualRequest = ((GetAppVersionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAppVersionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String name = "name3373707"; + client.getAppVersion(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAppVersionTest() throws Exception { + AppVersion expectedResponse = + AppVersion.newBuilder() + .setName(AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreator("creator1028554796") + .setCreateTime(Timestamp.newBuilder().build()) + .setSnapshot(AppSnapshot.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockAgentService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + AppVersion appVersion = AppVersion.newBuilder().build(); + + AppVersion actualResponse = client.createAppVersion(parent, appVersion); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAppVersionRequest actualRequest = ((CreateAppVersionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(appVersion, actualRequest.getAppVersion()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAppVersionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + AppVersion appVersion = AppVersion.newBuilder().build(); + client.createAppVersion(parent, appVersion); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAppVersionTest2() throws Exception { + AppVersion expectedResponse = + AppVersion.newBuilder() + .setName(AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreator("creator1028554796") + .setCreateTime(Timestamp.newBuilder().build()) + .setSnapshot(AppSnapshot.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockAgentService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + AppVersion appVersion = AppVersion.newBuilder().build(); + + AppVersion actualResponse = client.createAppVersion(parent, appVersion); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAppVersionRequest actualRequest = ((CreateAppVersionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(appVersion, actualRequest.getAppVersion()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAppVersionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String parent = "parent-995424086"; + AppVersion appVersion = AppVersion.newBuilder().build(); + client.createAppVersion(parent, appVersion); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAppVersionTest3() throws Exception { + AppVersion expectedResponse = + AppVersion.newBuilder() + .setName(AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreator("creator1028554796") + .setCreateTime(Timestamp.newBuilder().build()) + .setSnapshot(AppSnapshot.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockAgentService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + AppVersion appVersion = AppVersion.newBuilder().build(); + String appVersionId = "appVersionId303221490"; + + AppVersion actualResponse = client.createAppVersion(parent, appVersion, appVersionId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAppVersionRequest actualRequest = ((CreateAppVersionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(appVersion, actualRequest.getAppVersion()); + Assert.assertEquals(appVersionId, actualRequest.getAppVersionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAppVersionExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + AppVersion appVersion = AppVersion.newBuilder().build(); + String appVersionId = "appVersionId303221490"; + client.createAppVersion(parent, appVersion, appVersionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAppVersionTest4() throws Exception { + AppVersion expectedResponse = + AppVersion.newBuilder() + .setName(AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreator("creator1028554796") + .setCreateTime(Timestamp.newBuilder().build()) + .setSnapshot(AppSnapshot.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockAgentService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + AppVersion appVersion = AppVersion.newBuilder().build(); + String appVersionId = "appVersionId303221490"; + + AppVersion actualResponse = client.createAppVersion(parent, appVersion, appVersionId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAppVersionRequest actualRequest = ((CreateAppVersionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(appVersion, actualRequest.getAppVersion()); + Assert.assertEquals(appVersionId, actualRequest.getAppVersionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAppVersionExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String parent = "parent-995424086"; + AppVersion appVersion = AppVersion.newBuilder().build(); + String appVersionId = "appVersionId303221490"; + client.createAppVersion(parent, appVersion, appVersionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAppVersionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAgentService.addResponse(expectedResponse); + + AppVersionName name = AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]"); + + client.deleteAppVersion(name); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAppVersionRequest actualRequest = ((DeleteAppVersionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAppVersionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + AppVersionName name = AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]"); + client.deleteAppVersion(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAppVersionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAgentService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteAppVersion(name); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAppVersionRequest actualRequest = ((DeleteAppVersionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAppVersionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String name = "name3373707"; + client.deleteAppVersion(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void restoreAppVersionTest() throws Exception { + RestoreAppVersionResponse expectedResponse = RestoreAppVersionResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreAppVersionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAgentService.addResponse(resultOperation); + + AppVersionName name = AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]"); + + RestoreAppVersionResponse actualResponse = client.restoreAppVersionAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RestoreAppVersionRequest actualRequest = ((RestoreAppVersionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void restoreAppVersionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + AppVersionName name = AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]"); + client.restoreAppVersionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void restoreAppVersionTest2() throws Exception { + RestoreAppVersionResponse expectedResponse = RestoreAppVersionResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreAppVersionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAgentService.addResponse(resultOperation); + + String name = "name3373707"; + + RestoreAppVersionResponse actualResponse = client.restoreAppVersionAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RestoreAppVersionRequest actualRequest = ((RestoreAppVersionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void restoreAppVersionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String name = "name3373707"; + client.restoreAppVersionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listChangelogsTest() throws Exception { + Changelog responsesElement = Changelog.newBuilder().build(); + ListChangelogsResponse expectedResponse = + ListChangelogsResponse.newBuilder() + .setNextPageToken("") + .addAllChangelogs(Arrays.asList(responsesElement)) + .build(); + mockAgentService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + + ListChangelogsPagedResponse pagedListResponse = client.listChangelogs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getChangelogsList().get(0), resources.get(0)); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListChangelogsRequest actualRequest = ((ListChangelogsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listChangelogsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + client.listChangelogs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listChangelogsTest2() throws Exception { + Changelog responsesElement = Changelog.newBuilder().build(); + ListChangelogsResponse expectedResponse = + ListChangelogsResponse.newBuilder() + .setNextPageToken("") + .addAllChangelogs(Arrays.asList(responsesElement)) + .build(); + mockAgentService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListChangelogsPagedResponse pagedListResponse = client.listChangelogs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getChangelogsList().get(0), resources.get(0)); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListChangelogsRequest actualRequest = ((ListChangelogsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listChangelogsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listChangelogs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getChangelogTest() throws Exception { + Changelog expectedResponse = + Changelog.newBuilder() + .setName(ChangelogName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CHANGELOG]").toString()) + .setAuthor("author-1406328437") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setResource("resource-341064690") + .setResourceType("resourceType-384364440") + .setAction("action-1422950858") + .setOriginalResource(Struct.newBuilder().build()) + .setNewResource(Struct.newBuilder().build()) + .addAllDependentResources(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSequenceNumber(-1309190777) + .build(); + mockAgentService.addResponse(expectedResponse); + + ChangelogName name = ChangelogName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CHANGELOG]"); + + Changelog actualResponse = client.getChangelog(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetChangelogRequest actualRequest = ((GetChangelogRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getChangelogExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + ChangelogName name = ChangelogName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CHANGELOG]"); + client.getChangelog(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getChangelogTest2() throws Exception { + Changelog expectedResponse = + Changelog.newBuilder() + .setName(ChangelogName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CHANGELOG]").toString()) + .setAuthor("author-1406328437") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setResource("resource-341064690") + .setResourceType("resourceType-384364440") + .setAction("action-1422950858") + .setOriginalResource(Struct.newBuilder().build()) + .setNewResource(Struct.newBuilder().build()) + .addAllDependentResources(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSequenceNumber(-1309190777) + .build(); + mockAgentService.addResponse(expectedResponse); + + String name = "name3373707"; + + Changelog actualResponse = client.getChangelog(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetChangelogRequest actualRequest = ((GetChangelogRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getChangelogExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + String name = "name3373707"; + client.getChangelog(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/MockAgentService.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/MockAgentService.java new file mode 100644 index 000000000000..bfaa430a9057 --- /dev/null +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/MockAgentService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockAgentService implements MockGrpcService { + private final MockAgentServiceImpl serviceImpl; + + public MockAgentService() { + serviceImpl = new MockAgentServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/MockAgentServiceImpl.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/MockAgentServiceImpl.java new file mode 100644 index 000000000000..e129210df386 --- /dev/null +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/MockAgentServiceImpl.java @@ -0,0 +1,1053 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.ces.v1.AgentServiceGrpc.AgentServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockAgentServiceImpl extends AgentServiceImplBase { + private List requests; + private Queue responses; + + public MockAgentServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listApps(ListAppsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAppsResponse) { + requests.add(request); + responseObserver.onNext(((ListAppsResponse) 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 ListApps, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListAppsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getApp(GetAppRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof App) { + requests.add(request); + responseObserver.onNext(((App) 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 GetApp, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + App.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createApp(CreateAppRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateApp, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateApp(UpdateAppRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof App) { + requests.add(request); + responseObserver.onNext(((App) 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 UpdateApp, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + App.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteApp(DeleteAppRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteApp, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void exportApp(ExportAppRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ExportApp, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void importApp(ImportAppRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ImportApp, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listAgents( + ListAgentsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAgentsResponse) { + requests.add(request); + responseObserver.onNext(((ListAgentsResponse) 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 ListAgents, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListAgentsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAgent(GetAgentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Agent) { + requests.add(request); + responseObserver.onNext(((Agent) 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 GetAgent, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Agent.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createAgent(CreateAgentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Agent) { + requests.add(request); + responseObserver.onNext(((Agent) 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 CreateAgent, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Agent.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateAgent(UpdateAgentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Agent) { + requests.add(request); + responseObserver.onNext(((Agent) 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 UpdateAgent, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Agent.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteAgent(DeleteAgentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteAgent, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listExamples( + ListExamplesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListExamplesResponse) { + requests.add(request); + responseObserver.onNext(((ListExamplesResponse) 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 ListExamples, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListExamplesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getExample(GetExampleRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Example) { + requests.add(request); + responseObserver.onNext(((Example) 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 GetExample, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Example.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createExample( + CreateExampleRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Example) { + requests.add(request); + responseObserver.onNext(((Example) 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 CreateExample, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Example.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateExample( + UpdateExampleRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Example) { + requests.add(request); + responseObserver.onNext(((Example) 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 UpdateExample, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Example.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteExample(DeleteExampleRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteExample, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listTools( + ListToolsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListToolsResponse) { + requests.add(request); + responseObserver.onNext(((ListToolsResponse) 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 ListTools, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListToolsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getTool(GetToolRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Tool) { + requests.add(request); + responseObserver.onNext(((Tool) 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 GetTool, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Tool.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listConversations( + ListConversationsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListConversationsResponse) { + requests.add(request); + responseObserver.onNext(((ListConversationsResponse) 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 ListConversations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListConversationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getConversation( + GetConversationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Conversation) { + requests.add(request); + responseObserver.onNext(((Conversation) 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 GetConversation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Conversation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteConversation( + DeleteConversationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteConversation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void batchDeleteConversations( + BatchDeleteConversationsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method BatchDeleteConversations, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createTool(CreateToolRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Tool) { + requests.add(request); + responseObserver.onNext(((Tool) 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 CreateTool, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Tool.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateTool(UpdateToolRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Tool) { + requests.add(request); + responseObserver.onNext(((Tool) 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 UpdateTool, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Tool.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteTool(DeleteToolRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteTool, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listGuardrails( + ListGuardrailsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListGuardrailsResponse) { + requests.add(request); + responseObserver.onNext(((ListGuardrailsResponse) 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 ListGuardrails, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListGuardrailsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getGuardrail( + GetGuardrailRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Guardrail) { + requests.add(request); + responseObserver.onNext(((Guardrail) 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 GetGuardrail, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Guardrail.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createGuardrail( + CreateGuardrailRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Guardrail) { + requests.add(request); + responseObserver.onNext(((Guardrail) 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 CreateGuardrail, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Guardrail.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateGuardrail( + UpdateGuardrailRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Guardrail) { + requests.add(request); + responseObserver.onNext(((Guardrail) 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 UpdateGuardrail, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Guardrail.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteGuardrail( + DeleteGuardrailRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteGuardrail, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listDeployments( + ListDeploymentsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListDeploymentsResponse) { + requests.add(request); + responseObserver.onNext(((ListDeploymentsResponse) 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 ListDeployments, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListDeploymentsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getDeployment( + GetDeploymentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Deployment) { + requests.add(request); + responseObserver.onNext(((Deployment) 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 GetDeployment, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Deployment.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createDeployment( + CreateDeploymentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Deployment) { + requests.add(request); + responseObserver.onNext(((Deployment) 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 CreateDeployment, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Deployment.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateDeployment( + UpdateDeploymentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Deployment) { + requests.add(request); + responseObserver.onNext(((Deployment) 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 UpdateDeployment, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Deployment.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteDeployment( + DeleteDeploymentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteDeployment, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listToolsets( + ListToolsetsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListToolsetsResponse) { + requests.add(request); + responseObserver.onNext(((ListToolsetsResponse) 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 ListToolsets, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListToolsetsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getToolset(GetToolsetRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Toolset) { + requests.add(request); + responseObserver.onNext(((Toolset) 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 GetToolset, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Toolset.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createToolset( + CreateToolsetRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Toolset) { + requests.add(request); + responseObserver.onNext(((Toolset) 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 CreateToolset, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Toolset.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateToolset( + UpdateToolsetRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Toolset) { + requests.add(request); + responseObserver.onNext(((Toolset) 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 UpdateToolset, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Toolset.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteToolset(DeleteToolsetRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteToolset, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listAppVersions( + ListAppVersionsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAppVersionsResponse) { + requests.add(request); + responseObserver.onNext(((ListAppVersionsResponse) 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 ListAppVersions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListAppVersionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAppVersion( + GetAppVersionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AppVersion) { + requests.add(request); + responseObserver.onNext(((AppVersion) 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 GetAppVersion, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AppVersion.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createAppVersion( + CreateAppVersionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AppVersion) { + requests.add(request); + responseObserver.onNext(((AppVersion) 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 CreateAppVersion, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AppVersion.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteAppVersion( + DeleteAppVersionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteAppVersion, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void restoreAppVersion( + RestoreAppVersionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method RestoreAppVersion, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listChangelogs( + ListChangelogsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListChangelogsResponse) { + requests.add(request); + responseObserver.onNext(((ListChangelogsResponse) 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 ListChangelogs, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListChangelogsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getChangelog( + GetChangelogRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Changelog) { + requests.add(request); + responseObserver.onNext(((Changelog) 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 GetChangelog, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Changelog.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/MockLocations.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/MockLocations.java new file mode 100644 index 000000000000..ec4db76ae732 --- /dev/null +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/MockLocations.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLocations implements MockGrpcService { + private final MockLocationsImpl serviceImpl; + + public MockLocations() { + serviceImpl = new MockLocationsImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/MockLocationsImpl.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/MockLocationsImpl.java new file mode 100644 index 000000000000..44c2060cf118 --- /dev/null +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/MockLocationsImpl.java @@ -0,0 +1,105 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.location.LocationsGrpc.LocationsImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLocationsImpl extends LocationsImplBase { + private List requests; + private Queue responses; + + public MockLocationsImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listLocations( + ListLocationsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListLocationsResponse) { + requests.add(request); + responseObserver.onNext(((ListLocationsResponse) 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 ListLocations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListLocationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getLocation(GetLocationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Location) { + requests.add(request); + responseObserver.onNext(((Location) 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 GetLocation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Location.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/MockSessionService.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/MockSessionService.java new file mode 100644 index 000000000000..1a131abab1e5 --- /dev/null +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/MockSessionService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSessionService implements MockGrpcService { + private final MockSessionServiceImpl serviceImpl; + + public MockSessionService() { + serviceImpl = new MockSessionServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/MockSessionServiceImpl.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/MockSessionServiceImpl.java new file mode 100644 index 000000000000..8da810c2eadf --- /dev/null +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/MockSessionServiceImpl.java @@ -0,0 +1,119 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.ces.v1.SessionServiceGrpc.SessionServiceImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSessionServiceImpl extends SessionServiceImplBase { + private List requests; + private Queue responses; + + public MockSessionServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void runSession( + RunSessionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof RunSessionResponse) { + requests.add(request); + responseObserver.onNext(((RunSessionResponse) 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 RunSession, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + RunSessionResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public StreamObserver bidiRunSession( + final StreamObserver responseObserver) { + StreamObserver requestObserver = + new StreamObserver() { + @Override + public void onNext(BidiSessionClientMessage value) { + requests.add(value); + final Object response = responses.remove(); + if (response instanceof BidiSessionServerMessage) { + responseObserver.onNext(((BidiSessionServerMessage) response)); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method BidiRunSession, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + BidiSessionServerMessage.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void onError(Throwable t) { + responseObserver.onError(t); + } + + @Override + public void onCompleted() { + responseObserver.onCompleted(); + } + }; + return requestObserver; + } +} diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/MockToolService.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/MockToolService.java new file mode 100644 index 000000000000..deac11261579 --- /dev/null +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/MockToolService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockToolService implements MockGrpcService { + private final MockToolServiceImpl serviceImpl; + + public MockToolService() { + serviceImpl = new MockToolServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/MockToolServiceImpl.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/MockToolServiceImpl.java new file mode 100644 index 000000000000..9fdfdfb63e93 --- /dev/null +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/MockToolServiceImpl.java @@ -0,0 +1,124 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.ces.v1.ToolServiceGrpc.ToolServiceImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockToolServiceImpl extends ToolServiceImplBase { + private List requests; + private Queue responses; + + public MockToolServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void executeTool( + ExecuteToolRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ExecuteToolResponse) { + requests.add(request); + responseObserver.onNext(((ExecuteToolResponse) 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 ExecuteTool, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ExecuteToolResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void retrieveToolSchema( + RetrieveToolSchemaRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof RetrieveToolSchemaResponse) { + requests.add(request); + responseObserver.onNext(((RetrieveToolSchemaResponse) 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 RetrieveToolSchema, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + RetrieveToolSchemaResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void retrieveTools( + RetrieveToolsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof RetrieveToolsResponse) { + requests.add(request); + responseObserver.onNext(((RetrieveToolsResponse) 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 RetrieveTools, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + RetrieveToolsResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/MockWidgetService.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/MockWidgetService.java new file mode 100644 index 000000000000..7273d573126e --- /dev/null +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/MockWidgetService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockWidgetService implements MockGrpcService { + private final MockWidgetServiceImpl serviceImpl; + + public MockWidgetService() { + serviceImpl = new MockWidgetServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/MockWidgetServiceImpl.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/MockWidgetServiceImpl.java new file mode 100644 index 000000000000..9d4e63713b19 --- /dev/null +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/MockWidgetServiceImpl.java @@ -0,0 +1,82 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.ces.v1.WidgetServiceGrpc.WidgetServiceImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockWidgetServiceImpl extends WidgetServiceImplBase { + private List requests; + private Queue responses; + + public MockWidgetServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void generateChatToken( + GenerateChatTokenRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof GenerateChatTokenResponse) { + requests.add(request); + responseObserver.onNext(((GenerateChatTokenResponse) 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 GenerateChatToken, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + GenerateChatTokenResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/SessionServiceClientHttpJsonTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/SessionServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..b4a76f3a6e33 --- /dev/null +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/SessionServiceClientHttpJsonTest.java @@ -0,0 +1,283 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import static com.google.cloud.ces.v1.SessionServiceClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.ces.v1.stub.HttpJsonSessionServiceStub; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.protobuf.Any; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SessionServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static SessionServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonSessionServiceStub.getMethodDescriptors(), + SessionServiceSettings.getDefaultEndpoint()); + SessionServiceSettings settings = + SessionServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + SessionServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SessionServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void runSessionTest() throws Exception { + RunSessionResponse expectedResponse = + RunSessionResponse.newBuilder().addAllOutputs(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + RunSessionRequest request = + RunSessionRequest.newBuilder() + .setConfig( + SessionConfig.newBuilder() + .setSession( + SessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[SESSION]").toString()) + .setInputAudioConfig(InputAudioConfig.newBuilder().build()) + .setOutputAudioConfig(OutputAudioConfig.newBuilder().build()) + .addAllHistoricalContexts(new ArrayList()) + .setEntryAgent( + AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setDeployment("deployment1939520197") + .setTimeZone("timeZone-2077180903") + .setRemoteDialogflowQueryParameters( + SessionConfig.RemoteDialogflowQueryParameters.newBuilder().build()) + .build()) + .addAllInputs(new ArrayList()) + .build(); + + RunSessionResponse actualResponse = client.runSession(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 runSessionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RunSessionRequest request = + RunSessionRequest.newBuilder() + .setConfig( + SessionConfig.newBuilder() + .setSession( + SessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[SESSION]") + .toString()) + .setInputAudioConfig(InputAudioConfig.newBuilder().build()) + .setOutputAudioConfig(OutputAudioConfig.newBuilder().build()) + .addAllHistoricalContexts(new ArrayList()) + .setEntryAgent( + AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setDeployment("deployment1939520197") + .setTimeZone("timeZone-2077180903") + .setRemoteDialogflowQueryParameters( + SessionConfig.RemoteDialogflowQueryParameters.newBuilder().build()) + .build()) + .addAllInputs(new ArrayList()) + .build(); + client.runSession(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void bidiRunSessionUnsupportedMethodTest() throws Exception { + // The bidiRunSession() method is not supported in REST transport. + // This empty test is generated for technical reasons. + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + 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 listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + + Location actualResponse = client.getLocation(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 getLocationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/SessionServiceClientTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/SessionServiceClientTest.java new file mode 100644 index 000000000000..c88a50de9935 --- /dev/null +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/SessionServiceClientTest.java @@ -0,0 +1,287 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import static com.google.cloud.ces.v1.SessionServiceClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.grpc.testing.MockStreamObserver; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiStreamObserver; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SessionServiceClientTest { + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private static MockSessionService mockSessionService; + private LocalChannelProvider channelProvider; + private SessionServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockSessionService = new MockSessionService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockSessionService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + SessionServiceSettings settings = + SessionServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SessionServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void runSessionTest() throws Exception { + RunSessionResponse expectedResponse = + RunSessionResponse.newBuilder().addAllOutputs(new ArrayList()).build(); + mockSessionService.addResponse(expectedResponse); + + RunSessionRequest request = + RunSessionRequest.newBuilder() + .setConfig(SessionConfig.newBuilder().build()) + .addAllInputs(new ArrayList()) + .build(); + + RunSessionResponse actualResponse = client.runSession(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSessionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RunSessionRequest actualRequest = ((RunSessionRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getConfig(), actualRequest.getConfig()); + Assert.assertEquals(request.getInputsList(), actualRequest.getInputsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void runSessionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSessionService.addException(exception); + + try { + RunSessionRequest request = + RunSessionRequest.newBuilder() + .setConfig(SessionConfig.newBuilder().build()) + .addAllInputs(new ArrayList()) + .build(); + client.runSession(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void bidiRunSessionTest() throws Exception { + BidiSessionServerMessage expectedResponse = BidiSessionServerMessage.newBuilder().build(); + mockSessionService.addResponse(expectedResponse); + BidiSessionClientMessage request = BidiSessionClientMessage.newBuilder().build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + BidiStreamingCallable callable = + client.bidiRunSessionCallable(); + ApiStreamObserver requestObserver = + callable.bidiStreamingCall(responseObserver); + + requestObserver.onNext(request); + requestObserver.onCompleted(); + + List actualResponses = responseObserver.future().get(); + Assert.assertEquals(1, actualResponses.size()); + Assert.assertEquals(expectedResponse, actualResponses.get(0)); + } + + @Test + public void bidiRunSessionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSessionService.addException(exception); + BidiSessionClientMessage request = BidiSessionClientMessage.newBuilder().build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + BidiStreamingCallable callable = + client.bidiRunSessionCallable(); + ApiStreamObserver requestObserver = + callable.bidiStreamingCall(responseObserver); + + requestObserver.onNext(request); + + try { + List actualResponses = responseObserver.future().get(); + Assert.fail("No exception thrown"); + } catch (ExecutionException e) { + Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/ToolServiceClientHttpJsonTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/ToolServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..7bb1753da5e2 --- /dev/null +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/ToolServiceClientHttpJsonTest.java @@ -0,0 +1,353 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import static com.google.cloud.ces.v1.ToolServiceClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.ces.v1.stub.HttpJsonToolServiceStub; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.protobuf.Any; +import com.google.protobuf.Struct; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ToolServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static ToolServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonToolServiceStub.getMethodDescriptors(), + ToolServiceSettings.getDefaultEndpoint()); + ToolServiceSettings settings = + ToolServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + ToolServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ToolServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void executeToolTest() throws Exception { + ExecuteToolResponse expectedResponse = + ExecuteToolResponse.newBuilder().setResponse(Struct.newBuilder().build()).build(); + mockService.addResponse(expectedResponse); + + ExecuteToolRequest request = + ExecuteToolRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setArgs(Struct.newBuilder().build()) + .build(); + + ExecuteToolResponse actualResponse = client.executeTool(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 executeToolExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ExecuteToolRequest request = + ExecuteToolRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setArgs(Struct.newBuilder().build()) + .build(); + client.executeTool(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void retrieveToolSchemaTest() throws Exception { + RetrieveToolSchemaResponse expectedResponse = + RetrieveToolSchemaResponse.newBuilder() + .setInputSchema(Schema.newBuilder().build()) + .setOutputSchema(Schema.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + RetrieveToolSchemaRequest request = + RetrieveToolSchemaRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .build(); + + RetrieveToolSchemaResponse actualResponse = client.retrieveToolSchema(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 retrieveToolSchemaExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RetrieveToolSchemaRequest request = + RetrieveToolSchemaRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .build(); + client.retrieveToolSchema(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void retrieveToolsTest() throws Exception { + RetrieveToolsResponse expectedResponse = + RetrieveToolsResponse.newBuilder().addAllTools(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + RetrieveToolsRequest request = + RetrieveToolsRequest.newBuilder() + .setToolset(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) + .addAllToolIds(new ArrayList()) + .build(); + + RetrieveToolsResponse actualResponse = client.retrieveTools(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 retrieveToolsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RetrieveToolsRequest request = + RetrieveToolsRequest.newBuilder() + .setToolset( + ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) + .addAllToolIds(new ArrayList()) + .build(); + client.retrieveTools(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + 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 listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + + Location actualResponse = client.getLocation(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 getLocationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/ToolServiceClientTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/ToolServiceClientTest.java new file mode 100644 index 000000000000..df92a8c51e96 --- /dev/null +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/ToolServiceClientTest.java @@ -0,0 +1,332 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import static com.google.cloud.ces.v1.ToolServiceClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Struct; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ToolServiceClientTest { + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private static MockToolService mockToolService; + private LocalChannelProvider channelProvider; + private ToolServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockToolService = new MockToolService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockToolService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + ToolServiceSettings settings = + ToolServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ToolServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void executeToolTest() throws Exception { + ExecuteToolResponse expectedResponse = + ExecuteToolResponse.newBuilder().setResponse(Struct.newBuilder().build()).build(); + mockToolService.addResponse(expectedResponse); + + ExecuteToolRequest request = + ExecuteToolRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setArgs(Struct.newBuilder().build()) + .build(); + + ExecuteToolResponse actualResponse = client.executeTool(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockToolService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ExecuteToolRequest actualRequest = ((ExecuteToolRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getTool(), actualRequest.getTool()); + Assert.assertEquals(request.getToolsetTool(), actualRequest.getToolsetTool()); + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getArgs(), actualRequest.getArgs()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void executeToolExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockToolService.addException(exception); + + try { + ExecuteToolRequest request = + ExecuteToolRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setArgs(Struct.newBuilder().build()) + .build(); + client.executeTool(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void retrieveToolSchemaTest() throws Exception { + RetrieveToolSchemaResponse expectedResponse = + RetrieveToolSchemaResponse.newBuilder() + .setInputSchema(Schema.newBuilder().build()) + .setOutputSchema(Schema.newBuilder().build()) + .build(); + mockToolService.addResponse(expectedResponse); + + RetrieveToolSchemaRequest request = + RetrieveToolSchemaRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .build(); + + RetrieveToolSchemaResponse actualResponse = client.retrieveToolSchema(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockToolService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RetrieveToolSchemaRequest actualRequest = ((RetrieveToolSchemaRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getTool(), actualRequest.getTool()); + Assert.assertEquals(request.getToolsetTool(), actualRequest.getToolsetTool()); + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void retrieveToolSchemaExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockToolService.addException(exception); + + try { + RetrieveToolSchemaRequest request = + RetrieveToolSchemaRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .build(); + client.retrieveToolSchema(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void retrieveToolsTest() throws Exception { + RetrieveToolsResponse expectedResponse = + RetrieveToolsResponse.newBuilder().addAllTools(new ArrayList()).build(); + mockToolService.addResponse(expectedResponse); + + RetrieveToolsRequest request = + RetrieveToolsRequest.newBuilder() + .setToolset(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) + .addAllToolIds(new ArrayList()) + .build(); + + RetrieveToolsResponse actualResponse = client.retrieveTools(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockToolService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RetrieveToolsRequest actualRequest = ((RetrieveToolsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getToolset(), actualRequest.getToolset()); + Assert.assertEquals(request.getToolIdsList(), actualRequest.getToolIdsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void retrieveToolsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockToolService.addException(exception); + + try { + RetrieveToolsRequest request = + RetrieveToolsRequest.newBuilder() + .setToolset( + ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) + .addAllToolIds(new ArrayList()) + .build(); + client.retrieveTools(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/WidgetServiceClientHttpJsonTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/WidgetServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..a8e8e747bc32 --- /dev/null +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/WidgetServiceClientHttpJsonTest.java @@ -0,0 +1,257 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import static com.google.cloud.ces.v1.WidgetServiceClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.ces.v1.stub.HttpJsonWidgetServiceStub; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class WidgetServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static WidgetServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonWidgetServiceStub.getMethodDescriptors(), + WidgetServiceSettings.getDefaultEndpoint()); + WidgetServiceSettings settings = + WidgetServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + WidgetServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = WidgetServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void generateChatTokenTest() throws Exception { + GenerateChatTokenResponse expectedResponse = + GenerateChatTokenResponse.newBuilder() + .setChatToken("chatToken1609796993") + .setExpireTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GenerateChatTokenRequest request = + GenerateChatTokenRequest.newBuilder() + .setName(SessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[SESSION]").toString()) + .setDeployment( + DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) + .setRecaptchaToken("recaptchaToken1978277202") + .build(); + + GenerateChatTokenResponse actualResponse = client.generateChatToken(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 generateChatTokenExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GenerateChatTokenRequest request = + GenerateChatTokenRequest.newBuilder() + .setName(SessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[SESSION]").toString()) + .setDeployment( + DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) + .setRecaptchaToken("recaptchaToken1978277202") + .build(); + client.generateChatToken(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + 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 listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + + Location actualResponse = client.getLocation(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 getLocationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/WidgetServiceClientTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/WidgetServiceClientTest.java new file mode 100644 index 000000000000..eab588f7836d --- /dev/null +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1/WidgetServiceClientTest.java @@ -0,0 +1,244 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import static com.google.cloud.ces.v1.WidgetServiceClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class WidgetServiceClientTest { + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private static MockWidgetService mockWidgetService; + private LocalChannelProvider channelProvider; + private WidgetServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockWidgetService = new MockWidgetService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockWidgetService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + WidgetServiceSettings settings = + WidgetServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = WidgetServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void generateChatTokenTest() throws Exception { + GenerateChatTokenResponse expectedResponse = + GenerateChatTokenResponse.newBuilder() + .setChatToken("chatToken1609796993") + .setExpireTime(Timestamp.newBuilder().build()) + .build(); + mockWidgetService.addResponse(expectedResponse); + + GenerateChatTokenRequest request = + GenerateChatTokenRequest.newBuilder() + .setName(SessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[SESSION]").toString()) + .setDeployment( + DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) + .setRecaptchaToken("recaptchaToken1978277202") + .build(); + + GenerateChatTokenResponse actualResponse = client.generateChatToken(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWidgetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GenerateChatTokenRequest actualRequest = ((GenerateChatTokenRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getDeployment(), actualRequest.getDeployment()); + Assert.assertEquals(request.getRecaptchaToken(), actualRequest.getRecaptchaToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void generateChatTokenExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWidgetService.addException(exception); + + try { + GenerateChatTokenRequest request = + GenerateChatTokenRequest.newBuilder() + .setName(SessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[SESSION]").toString()) + .setDeployment( + DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) + .setRecaptchaToken("recaptchaToken1978277202") + .build(); + client.generateChatToken(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-ces/grpc-google-cloud-ces-v1/pom.xml b/java-ces/grpc-google-cloud-ces-v1/pom.xml new file mode 100644 index 000000000000..3dced10720e8 --- /dev/null +++ b/java-ces/grpc-google-cloud-ces-v1/pom.xml @@ -0,0 +1,45 @@ + + 4.0.0 + com.google.api.grpc + grpc-google-cloud-ces-v1 + 0.1.0 + grpc-google-cloud-ces-v1 + GRPC library for google-cloud-ces + + com.google.cloud + google-cloud-ces-parent + 0.1.0 + + + + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-cloud-ces-v1 + + + com.google.guava + guava + + + diff --git a/java-ces/grpc-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentServiceGrpc.java b/java-ces/grpc-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentServiceGrpc.java new file mode 100644 index 000000000000..c4f4e2c1ad15 --- /dev/null +++ b/java-ces/grpc-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentServiceGrpc.java @@ -0,0 +1,6220 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.ces.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
      + * The service that manages agent-related resources in Gemini Enterprise for
      + * Customer Engagement (CES).
      + * 
      + */ +@io.grpc.stub.annotations.GrpcGenerated +public final class AgentServiceGrpc { + + private AgentServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.ces.v1.AgentService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ListAppsRequest, com.google.cloud.ces.v1.ListAppsResponse> + getListAppsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListApps", + requestType = com.google.cloud.ces.v1.ListAppsRequest.class, + responseType = com.google.cloud.ces.v1.ListAppsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ListAppsRequest, com.google.cloud.ces.v1.ListAppsResponse> + getListAppsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ListAppsRequest, com.google.cloud.ces.v1.ListAppsResponse> + getListAppsMethod; + if ((getListAppsMethod = AgentServiceGrpc.getListAppsMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getListAppsMethod = AgentServiceGrpc.getListAppsMethod) == null) { + AgentServiceGrpc.getListAppsMethod = + getListAppsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListApps")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.ListAppsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.ListAppsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AgentServiceMethodDescriptorSupplier("ListApps")) + .build(); + } + } + } + return getListAppsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.GetAppRequest, com.google.cloud.ces.v1.App> + getGetAppMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetApp", + requestType = com.google.cloud.ces.v1.GetAppRequest.class, + responseType = com.google.cloud.ces.v1.App.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.GetAppRequest, com.google.cloud.ces.v1.App> + getGetAppMethod() { + io.grpc.MethodDescriptor + getGetAppMethod; + if ((getGetAppMethod = AgentServiceGrpc.getGetAppMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getGetAppMethod = AgentServiceGrpc.getGetAppMethod) == null) { + AgentServiceGrpc.getGetAppMethod = + getGetAppMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetApp")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.GetAppRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.App.getDefaultInstance())) + .setSchemaDescriptor(new AgentServiceMethodDescriptorSupplier("GetApp")) + .build(); + } + } + } + return getGetAppMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.CreateAppRequest, com.google.longrunning.Operation> + getCreateAppMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateApp", + requestType = com.google.cloud.ces.v1.CreateAppRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.CreateAppRequest, com.google.longrunning.Operation> + getCreateAppMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.CreateAppRequest, com.google.longrunning.Operation> + getCreateAppMethod; + if ((getCreateAppMethod = AgentServiceGrpc.getCreateAppMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getCreateAppMethod = AgentServiceGrpc.getCreateAppMethod) == null) { + AgentServiceGrpc.getCreateAppMethod = + getCreateAppMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateApp")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.CreateAppRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AgentServiceMethodDescriptorSupplier("CreateApp")) + .build(); + } + } + } + return getCreateAppMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.UpdateAppRequest, com.google.cloud.ces.v1.App> + getUpdateAppMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateApp", + requestType = com.google.cloud.ces.v1.UpdateAppRequest.class, + responseType = com.google.cloud.ces.v1.App.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.UpdateAppRequest, com.google.cloud.ces.v1.App> + getUpdateAppMethod() { + io.grpc.MethodDescriptor + getUpdateAppMethod; + if ((getUpdateAppMethod = AgentServiceGrpc.getUpdateAppMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getUpdateAppMethod = AgentServiceGrpc.getUpdateAppMethod) == null) { + AgentServiceGrpc.getUpdateAppMethod = + getUpdateAppMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateApp")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.UpdateAppRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.App.getDefaultInstance())) + .setSchemaDescriptor(new AgentServiceMethodDescriptorSupplier("UpdateApp")) + .build(); + } + } + } + return getUpdateAppMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.DeleteAppRequest, com.google.longrunning.Operation> + getDeleteAppMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteApp", + requestType = com.google.cloud.ces.v1.DeleteAppRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.DeleteAppRequest, com.google.longrunning.Operation> + getDeleteAppMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.DeleteAppRequest, com.google.longrunning.Operation> + getDeleteAppMethod; + if ((getDeleteAppMethod = AgentServiceGrpc.getDeleteAppMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getDeleteAppMethod = AgentServiceGrpc.getDeleteAppMethod) == null) { + AgentServiceGrpc.getDeleteAppMethod = + getDeleteAppMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteApp")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.DeleteAppRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AgentServiceMethodDescriptorSupplier("DeleteApp")) + .build(); + } + } + } + return getDeleteAppMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ExportAppRequest, com.google.longrunning.Operation> + getExportAppMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExportApp", + requestType = com.google.cloud.ces.v1.ExportAppRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ExportAppRequest, com.google.longrunning.Operation> + getExportAppMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ExportAppRequest, com.google.longrunning.Operation> + getExportAppMethod; + if ((getExportAppMethod = AgentServiceGrpc.getExportAppMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getExportAppMethod = AgentServiceGrpc.getExportAppMethod) == null) { + AgentServiceGrpc.getExportAppMethod = + getExportAppMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportApp")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.ExportAppRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AgentServiceMethodDescriptorSupplier("ExportApp")) + .build(); + } + } + } + return getExportAppMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ImportAppRequest, com.google.longrunning.Operation> + getImportAppMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ImportApp", + requestType = com.google.cloud.ces.v1.ImportAppRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ImportAppRequest, com.google.longrunning.Operation> + getImportAppMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ImportAppRequest, com.google.longrunning.Operation> + getImportAppMethod; + if ((getImportAppMethod = AgentServiceGrpc.getImportAppMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getImportAppMethod = AgentServiceGrpc.getImportAppMethod) == null) { + AgentServiceGrpc.getImportAppMethod = + getImportAppMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportApp")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.ImportAppRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AgentServiceMethodDescriptorSupplier("ImportApp")) + .build(); + } + } + } + return getImportAppMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ListAgentsRequest, com.google.cloud.ces.v1.ListAgentsResponse> + getListAgentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAgents", + requestType = com.google.cloud.ces.v1.ListAgentsRequest.class, + responseType = com.google.cloud.ces.v1.ListAgentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ListAgentsRequest, com.google.cloud.ces.v1.ListAgentsResponse> + getListAgentsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ListAgentsRequest, com.google.cloud.ces.v1.ListAgentsResponse> + getListAgentsMethod; + if ((getListAgentsMethod = AgentServiceGrpc.getListAgentsMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getListAgentsMethod = AgentServiceGrpc.getListAgentsMethod) == null) { + AgentServiceGrpc.getListAgentsMethod = + getListAgentsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAgents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.ListAgentsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.ListAgentsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AgentServiceMethodDescriptorSupplier("ListAgents")) + .build(); + } + } + } + return getListAgentsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.GetAgentRequest, com.google.cloud.ces.v1.Agent> + getGetAgentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAgent", + requestType = com.google.cloud.ces.v1.GetAgentRequest.class, + responseType = com.google.cloud.ces.v1.Agent.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.GetAgentRequest, com.google.cloud.ces.v1.Agent> + getGetAgentMethod() { + io.grpc.MethodDescriptor + getGetAgentMethod; + if ((getGetAgentMethod = AgentServiceGrpc.getGetAgentMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getGetAgentMethod = AgentServiceGrpc.getGetAgentMethod) == null) { + AgentServiceGrpc.getGetAgentMethod = + getGetAgentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAgent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.GetAgentRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.Agent.getDefaultInstance())) + .setSchemaDescriptor(new AgentServiceMethodDescriptorSupplier("GetAgent")) + .build(); + } + } + } + return getGetAgentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.CreateAgentRequest, com.google.cloud.ces.v1.Agent> + getCreateAgentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAgent", + requestType = com.google.cloud.ces.v1.CreateAgentRequest.class, + responseType = com.google.cloud.ces.v1.Agent.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.CreateAgentRequest, com.google.cloud.ces.v1.Agent> + getCreateAgentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.CreateAgentRequest, com.google.cloud.ces.v1.Agent> + getCreateAgentMethod; + if ((getCreateAgentMethod = AgentServiceGrpc.getCreateAgentMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getCreateAgentMethod = AgentServiceGrpc.getCreateAgentMethod) == null) { + AgentServiceGrpc.getCreateAgentMethod = + getCreateAgentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAgent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.CreateAgentRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.Agent.getDefaultInstance())) + .setSchemaDescriptor(new AgentServiceMethodDescriptorSupplier("CreateAgent")) + .build(); + } + } + } + return getCreateAgentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.UpdateAgentRequest, com.google.cloud.ces.v1.Agent> + getUpdateAgentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAgent", + requestType = com.google.cloud.ces.v1.UpdateAgentRequest.class, + responseType = com.google.cloud.ces.v1.Agent.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.UpdateAgentRequest, com.google.cloud.ces.v1.Agent> + getUpdateAgentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.UpdateAgentRequest, com.google.cloud.ces.v1.Agent> + getUpdateAgentMethod; + if ((getUpdateAgentMethod = AgentServiceGrpc.getUpdateAgentMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getUpdateAgentMethod = AgentServiceGrpc.getUpdateAgentMethod) == null) { + AgentServiceGrpc.getUpdateAgentMethod = + getUpdateAgentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAgent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.UpdateAgentRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.Agent.getDefaultInstance())) + .setSchemaDescriptor(new AgentServiceMethodDescriptorSupplier("UpdateAgent")) + .build(); + } + } + } + return getUpdateAgentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.DeleteAgentRequest, com.google.protobuf.Empty> + getDeleteAgentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAgent", + requestType = com.google.cloud.ces.v1.DeleteAgentRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.DeleteAgentRequest, com.google.protobuf.Empty> + getDeleteAgentMethod() { + io.grpc.MethodDescriptor + getDeleteAgentMethod; + if ((getDeleteAgentMethod = AgentServiceGrpc.getDeleteAgentMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getDeleteAgentMethod = AgentServiceGrpc.getDeleteAgentMethod) == null) { + AgentServiceGrpc.getDeleteAgentMethod = + getDeleteAgentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAgent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.DeleteAgentRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new AgentServiceMethodDescriptorSupplier("DeleteAgent")) + .build(); + } + } + } + return getDeleteAgentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ListExamplesRequest, com.google.cloud.ces.v1.ListExamplesResponse> + getListExamplesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListExamples", + requestType = com.google.cloud.ces.v1.ListExamplesRequest.class, + responseType = com.google.cloud.ces.v1.ListExamplesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ListExamplesRequest, com.google.cloud.ces.v1.ListExamplesResponse> + getListExamplesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ListExamplesRequest, + com.google.cloud.ces.v1.ListExamplesResponse> + getListExamplesMethod; + if ((getListExamplesMethod = AgentServiceGrpc.getListExamplesMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getListExamplesMethod = AgentServiceGrpc.getListExamplesMethod) == null) { + AgentServiceGrpc.getListExamplesMethod = + getListExamplesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListExamples")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.ListExamplesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.ListExamplesResponse.getDefaultInstance())) + .setSchemaDescriptor(new AgentServiceMethodDescriptorSupplier("ListExamples")) + .build(); + } + } + } + return getListExamplesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.GetExampleRequest, com.google.cloud.ces.v1.Example> + getGetExampleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetExample", + requestType = com.google.cloud.ces.v1.GetExampleRequest.class, + responseType = com.google.cloud.ces.v1.Example.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.GetExampleRequest, com.google.cloud.ces.v1.Example> + getGetExampleMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.GetExampleRequest, com.google.cloud.ces.v1.Example> + getGetExampleMethod; + if ((getGetExampleMethod = AgentServiceGrpc.getGetExampleMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getGetExampleMethod = AgentServiceGrpc.getGetExampleMethod) == null) { + AgentServiceGrpc.getGetExampleMethod = + getGetExampleMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetExample")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.GetExampleRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.Example.getDefaultInstance())) + .setSchemaDescriptor(new AgentServiceMethodDescriptorSupplier("GetExample")) + .build(); + } + } + } + return getGetExampleMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.CreateExampleRequest, com.google.cloud.ces.v1.Example> + getCreateExampleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateExample", + requestType = com.google.cloud.ces.v1.CreateExampleRequest.class, + responseType = com.google.cloud.ces.v1.Example.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.CreateExampleRequest, com.google.cloud.ces.v1.Example> + getCreateExampleMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.CreateExampleRequest, com.google.cloud.ces.v1.Example> + getCreateExampleMethod; + if ((getCreateExampleMethod = AgentServiceGrpc.getCreateExampleMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getCreateExampleMethod = AgentServiceGrpc.getCreateExampleMethod) == null) { + AgentServiceGrpc.getCreateExampleMethod = + getCreateExampleMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateExample")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.CreateExampleRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.Example.getDefaultInstance())) + .setSchemaDescriptor( + new AgentServiceMethodDescriptorSupplier("CreateExample")) + .build(); + } + } + } + return getCreateExampleMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.UpdateExampleRequest, com.google.cloud.ces.v1.Example> + getUpdateExampleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateExample", + requestType = com.google.cloud.ces.v1.UpdateExampleRequest.class, + responseType = com.google.cloud.ces.v1.Example.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.UpdateExampleRequest, com.google.cloud.ces.v1.Example> + getUpdateExampleMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.UpdateExampleRequest, com.google.cloud.ces.v1.Example> + getUpdateExampleMethod; + if ((getUpdateExampleMethod = AgentServiceGrpc.getUpdateExampleMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getUpdateExampleMethod = AgentServiceGrpc.getUpdateExampleMethod) == null) { + AgentServiceGrpc.getUpdateExampleMethod = + getUpdateExampleMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateExample")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.UpdateExampleRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.Example.getDefaultInstance())) + .setSchemaDescriptor( + new AgentServiceMethodDescriptorSupplier("UpdateExample")) + .build(); + } + } + } + return getUpdateExampleMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.DeleteExampleRequest, com.google.protobuf.Empty> + getDeleteExampleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteExample", + requestType = com.google.cloud.ces.v1.DeleteExampleRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.DeleteExampleRequest, com.google.protobuf.Empty> + getDeleteExampleMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.DeleteExampleRequest, com.google.protobuf.Empty> + getDeleteExampleMethod; + if ((getDeleteExampleMethod = AgentServiceGrpc.getDeleteExampleMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getDeleteExampleMethod = AgentServiceGrpc.getDeleteExampleMethod) == null) { + AgentServiceGrpc.getDeleteExampleMethod = + getDeleteExampleMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteExample")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.DeleteExampleRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AgentServiceMethodDescriptorSupplier("DeleteExample")) + .build(); + } + } + } + return getDeleteExampleMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ListToolsRequest, com.google.cloud.ces.v1.ListToolsResponse> + getListToolsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTools", + requestType = com.google.cloud.ces.v1.ListToolsRequest.class, + responseType = com.google.cloud.ces.v1.ListToolsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ListToolsRequest, com.google.cloud.ces.v1.ListToolsResponse> + getListToolsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ListToolsRequest, com.google.cloud.ces.v1.ListToolsResponse> + getListToolsMethod; + if ((getListToolsMethod = AgentServiceGrpc.getListToolsMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getListToolsMethod = AgentServiceGrpc.getListToolsMethod) == null) { + AgentServiceGrpc.getListToolsMethod = + getListToolsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTools")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.ListToolsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.ListToolsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AgentServiceMethodDescriptorSupplier("ListTools")) + .build(); + } + } + } + return getListToolsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.GetToolRequest, com.google.cloud.ces.v1.Tool> + getGetToolMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTool", + requestType = com.google.cloud.ces.v1.GetToolRequest.class, + responseType = com.google.cloud.ces.v1.Tool.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.GetToolRequest, com.google.cloud.ces.v1.Tool> + getGetToolMethod() { + io.grpc.MethodDescriptor + getGetToolMethod; + if ((getGetToolMethod = AgentServiceGrpc.getGetToolMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getGetToolMethod = AgentServiceGrpc.getGetToolMethod) == null) { + AgentServiceGrpc.getGetToolMethod = + getGetToolMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.GetToolRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.Tool.getDefaultInstance())) + .setSchemaDescriptor(new AgentServiceMethodDescriptorSupplier("GetTool")) + .build(); + } + } + } + return getGetToolMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ListConversationsRequest, + com.google.cloud.ces.v1.ListConversationsResponse> + getListConversationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListConversations", + requestType = com.google.cloud.ces.v1.ListConversationsRequest.class, + responseType = com.google.cloud.ces.v1.ListConversationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ListConversationsRequest, + com.google.cloud.ces.v1.ListConversationsResponse> + getListConversationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ListConversationsRequest, + com.google.cloud.ces.v1.ListConversationsResponse> + getListConversationsMethod; + if ((getListConversationsMethod = AgentServiceGrpc.getListConversationsMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getListConversationsMethod = AgentServiceGrpc.getListConversationsMethod) == null) { + AgentServiceGrpc.getListConversationsMethod = + getListConversationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConversations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.ListConversationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.ListConversationsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AgentServiceMethodDescriptorSupplier("ListConversations")) + .build(); + } + } + } + return getListConversationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.GetConversationRequest, com.google.cloud.ces.v1.Conversation> + getGetConversationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConversation", + requestType = com.google.cloud.ces.v1.GetConversationRequest.class, + responseType = com.google.cloud.ces.v1.Conversation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.GetConversationRequest, com.google.cloud.ces.v1.Conversation> + getGetConversationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.GetConversationRequest, com.google.cloud.ces.v1.Conversation> + getGetConversationMethod; + if ((getGetConversationMethod = AgentServiceGrpc.getGetConversationMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getGetConversationMethod = AgentServiceGrpc.getGetConversationMethod) == null) { + AgentServiceGrpc.getGetConversationMethod = + getGetConversationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConversation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.GetConversationRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.Conversation.getDefaultInstance())) + .setSchemaDescriptor( + new AgentServiceMethodDescriptorSupplier("GetConversation")) + .build(); + } + } + } + return getGetConversationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.DeleteConversationRequest, com.google.protobuf.Empty> + getDeleteConversationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteConversation", + requestType = com.google.cloud.ces.v1.DeleteConversationRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.DeleteConversationRequest, com.google.protobuf.Empty> + getDeleteConversationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.DeleteConversationRequest, com.google.protobuf.Empty> + getDeleteConversationMethod; + if ((getDeleteConversationMethod = AgentServiceGrpc.getDeleteConversationMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getDeleteConversationMethod = AgentServiceGrpc.getDeleteConversationMethod) == null) { + AgentServiceGrpc.getDeleteConversationMethod = + getDeleteConversationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConversation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.DeleteConversationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AgentServiceMethodDescriptorSupplier("DeleteConversation")) + .build(); + } + } + } + return getDeleteConversationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.BatchDeleteConversationsRequest, com.google.longrunning.Operation> + getBatchDeleteConversationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchDeleteConversations", + requestType = com.google.cloud.ces.v1.BatchDeleteConversationsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.BatchDeleteConversationsRequest, com.google.longrunning.Operation> + getBatchDeleteConversationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.BatchDeleteConversationsRequest, + com.google.longrunning.Operation> + getBatchDeleteConversationsMethod; + if ((getBatchDeleteConversationsMethod = AgentServiceGrpc.getBatchDeleteConversationsMethod) + == null) { + synchronized (AgentServiceGrpc.class) { + if ((getBatchDeleteConversationsMethod = AgentServiceGrpc.getBatchDeleteConversationsMethod) + == null) { + AgentServiceGrpc.getBatchDeleteConversationsMethod = + getBatchDeleteConversationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "BatchDeleteConversations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.BatchDeleteConversationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AgentServiceMethodDescriptorSupplier("BatchDeleteConversations")) + .build(); + } + } + } + return getBatchDeleteConversationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.CreateToolRequest, com.google.cloud.ces.v1.Tool> + getCreateToolMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateTool", + requestType = com.google.cloud.ces.v1.CreateToolRequest.class, + responseType = com.google.cloud.ces.v1.Tool.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.CreateToolRequest, com.google.cloud.ces.v1.Tool> + getCreateToolMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.CreateToolRequest, com.google.cloud.ces.v1.Tool> + getCreateToolMethod; + if ((getCreateToolMethod = AgentServiceGrpc.getCreateToolMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getCreateToolMethod = AgentServiceGrpc.getCreateToolMethod) == null) { + AgentServiceGrpc.getCreateToolMethod = + getCreateToolMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.CreateToolRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.Tool.getDefaultInstance())) + .setSchemaDescriptor(new AgentServiceMethodDescriptorSupplier("CreateTool")) + .build(); + } + } + } + return getCreateToolMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.UpdateToolRequest, com.google.cloud.ces.v1.Tool> + getUpdateToolMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateTool", + requestType = com.google.cloud.ces.v1.UpdateToolRequest.class, + responseType = com.google.cloud.ces.v1.Tool.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.UpdateToolRequest, com.google.cloud.ces.v1.Tool> + getUpdateToolMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.UpdateToolRequest, com.google.cloud.ces.v1.Tool> + getUpdateToolMethod; + if ((getUpdateToolMethod = AgentServiceGrpc.getUpdateToolMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getUpdateToolMethod = AgentServiceGrpc.getUpdateToolMethod) == null) { + AgentServiceGrpc.getUpdateToolMethod = + getUpdateToolMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateTool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.UpdateToolRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.Tool.getDefaultInstance())) + .setSchemaDescriptor(new AgentServiceMethodDescriptorSupplier("UpdateTool")) + .build(); + } + } + } + return getUpdateToolMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.DeleteToolRequest, com.google.protobuf.Empty> + getDeleteToolMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteTool", + requestType = com.google.cloud.ces.v1.DeleteToolRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.DeleteToolRequest, com.google.protobuf.Empty> + getDeleteToolMethod() { + io.grpc.MethodDescriptor + getDeleteToolMethod; + if ((getDeleteToolMethod = AgentServiceGrpc.getDeleteToolMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getDeleteToolMethod = AgentServiceGrpc.getDeleteToolMethod) == null) { + AgentServiceGrpc.getDeleteToolMethod = + getDeleteToolMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.DeleteToolRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new AgentServiceMethodDescriptorSupplier("DeleteTool")) + .build(); + } + } + } + return getDeleteToolMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ListGuardrailsRequest, + com.google.cloud.ces.v1.ListGuardrailsResponse> + getListGuardrailsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListGuardrails", + requestType = com.google.cloud.ces.v1.ListGuardrailsRequest.class, + responseType = com.google.cloud.ces.v1.ListGuardrailsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ListGuardrailsRequest, + com.google.cloud.ces.v1.ListGuardrailsResponse> + getListGuardrailsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ListGuardrailsRequest, + com.google.cloud.ces.v1.ListGuardrailsResponse> + getListGuardrailsMethod; + if ((getListGuardrailsMethod = AgentServiceGrpc.getListGuardrailsMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getListGuardrailsMethod = AgentServiceGrpc.getListGuardrailsMethod) == null) { + AgentServiceGrpc.getListGuardrailsMethod = + getListGuardrailsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGuardrails")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.ListGuardrailsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.ListGuardrailsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new AgentServiceMethodDescriptorSupplier("ListGuardrails")) + .build(); + } + } + } + return getListGuardrailsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.GetGuardrailRequest, com.google.cloud.ces.v1.Guardrail> + getGetGuardrailMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetGuardrail", + requestType = com.google.cloud.ces.v1.GetGuardrailRequest.class, + responseType = com.google.cloud.ces.v1.Guardrail.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.GetGuardrailRequest, com.google.cloud.ces.v1.Guardrail> + getGetGuardrailMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.GetGuardrailRequest, com.google.cloud.ces.v1.Guardrail> + getGetGuardrailMethod; + if ((getGetGuardrailMethod = AgentServiceGrpc.getGetGuardrailMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getGetGuardrailMethod = AgentServiceGrpc.getGetGuardrailMethod) == null) { + AgentServiceGrpc.getGetGuardrailMethod = + getGetGuardrailMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGuardrail")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.GetGuardrailRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.Guardrail.getDefaultInstance())) + .setSchemaDescriptor(new AgentServiceMethodDescriptorSupplier("GetGuardrail")) + .build(); + } + } + } + return getGetGuardrailMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.CreateGuardrailRequest, com.google.cloud.ces.v1.Guardrail> + getCreateGuardrailMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateGuardrail", + requestType = com.google.cloud.ces.v1.CreateGuardrailRequest.class, + responseType = com.google.cloud.ces.v1.Guardrail.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.CreateGuardrailRequest, com.google.cloud.ces.v1.Guardrail> + getCreateGuardrailMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.CreateGuardrailRequest, com.google.cloud.ces.v1.Guardrail> + getCreateGuardrailMethod; + if ((getCreateGuardrailMethod = AgentServiceGrpc.getCreateGuardrailMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getCreateGuardrailMethod = AgentServiceGrpc.getCreateGuardrailMethod) == null) { + AgentServiceGrpc.getCreateGuardrailMethod = + getCreateGuardrailMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateGuardrail")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.CreateGuardrailRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.Guardrail.getDefaultInstance())) + .setSchemaDescriptor( + new AgentServiceMethodDescriptorSupplier("CreateGuardrail")) + .build(); + } + } + } + return getCreateGuardrailMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.UpdateGuardrailRequest, com.google.cloud.ces.v1.Guardrail> + getUpdateGuardrailMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateGuardrail", + requestType = com.google.cloud.ces.v1.UpdateGuardrailRequest.class, + responseType = com.google.cloud.ces.v1.Guardrail.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.UpdateGuardrailRequest, com.google.cloud.ces.v1.Guardrail> + getUpdateGuardrailMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.UpdateGuardrailRequest, com.google.cloud.ces.v1.Guardrail> + getUpdateGuardrailMethod; + if ((getUpdateGuardrailMethod = AgentServiceGrpc.getUpdateGuardrailMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getUpdateGuardrailMethod = AgentServiceGrpc.getUpdateGuardrailMethod) == null) { + AgentServiceGrpc.getUpdateGuardrailMethod = + getUpdateGuardrailMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateGuardrail")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.UpdateGuardrailRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.Guardrail.getDefaultInstance())) + .setSchemaDescriptor( + new AgentServiceMethodDescriptorSupplier("UpdateGuardrail")) + .build(); + } + } + } + return getUpdateGuardrailMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.DeleteGuardrailRequest, com.google.protobuf.Empty> + getDeleteGuardrailMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteGuardrail", + requestType = com.google.cloud.ces.v1.DeleteGuardrailRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.DeleteGuardrailRequest, com.google.protobuf.Empty> + getDeleteGuardrailMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.DeleteGuardrailRequest, com.google.protobuf.Empty> + getDeleteGuardrailMethod; + if ((getDeleteGuardrailMethod = AgentServiceGrpc.getDeleteGuardrailMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getDeleteGuardrailMethod = AgentServiceGrpc.getDeleteGuardrailMethod) == null) { + AgentServiceGrpc.getDeleteGuardrailMethod = + getDeleteGuardrailMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteGuardrail")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.DeleteGuardrailRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AgentServiceMethodDescriptorSupplier("DeleteGuardrail")) + .build(); + } + } + } + return getDeleteGuardrailMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ListDeploymentsRequest, + com.google.cloud.ces.v1.ListDeploymentsResponse> + getListDeploymentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDeployments", + requestType = com.google.cloud.ces.v1.ListDeploymentsRequest.class, + responseType = com.google.cloud.ces.v1.ListDeploymentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ListDeploymentsRequest, + com.google.cloud.ces.v1.ListDeploymentsResponse> + getListDeploymentsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ListDeploymentsRequest, + com.google.cloud.ces.v1.ListDeploymentsResponse> + getListDeploymentsMethod; + if ((getListDeploymentsMethod = AgentServiceGrpc.getListDeploymentsMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getListDeploymentsMethod = AgentServiceGrpc.getListDeploymentsMethod) == null) { + AgentServiceGrpc.getListDeploymentsMethod = + getListDeploymentsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDeployments")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.ListDeploymentsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.ListDeploymentsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new AgentServiceMethodDescriptorSupplier("ListDeployments")) + .build(); + } + } + } + return getListDeploymentsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.GetDeploymentRequest, com.google.cloud.ces.v1.Deployment> + getGetDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDeployment", + requestType = com.google.cloud.ces.v1.GetDeploymentRequest.class, + responseType = com.google.cloud.ces.v1.Deployment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.GetDeploymentRequest, com.google.cloud.ces.v1.Deployment> + getGetDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.GetDeploymentRequest, com.google.cloud.ces.v1.Deployment> + getGetDeploymentMethod; + if ((getGetDeploymentMethod = AgentServiceGrpc.getGetDeploymentMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getGetDeploymentMethod = AgentServiceGrpc.getGetDeploymentMethod) == null) { + AgentServiceGrpc.getGetDeploymentMethod = + getGetDeploymentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDeployment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.GetDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.Deployment.getDefaultInstance())) + .setSchemaDescriptor( + new AgentServiceMethodDescriptorSupplier("GetDeployment")) + .build(); + } + } + } + return getGetDeploymentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.CreateDeploymentRequest, com.google.cloud.ces.v1.Deployment> + getCreateDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDeployment", + requestType = com.google.cloud.ces.v1.CreateDeploymentRequest.class, + responseType = com.google.cloud.ces.v1.Deployment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.CreateDeploymentRequest, com.google.cloud.ces.v1.Deployment> + getCreateDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.CreateDeploymentRequest, com.google.cloud.ces.v1.Deployment> + getCreateDeploymentMethod; + if ((getCreateDeploymentMethod = AgentServiceGrpc.getCreateDeploymentMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getCreateDeploymentMethod = AgentServiceGrpc.getCreateDeploymentMethod) == null) { + AgentServiceGrpc.getCreateDeploymentMethod = + getCreateDeploymentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDeployment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.CreateDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.Deployment.getDefaultInstance())) + .setSchemaDescriptor( + new AgentServiceMethodDescriptorSupplier("CreateDeployment")) + .build(); + } + } + } + return getCreateDeploymentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.UpdateDeploymentRequest, com.google.cloud.ces.v1.Deployment> + getUpdateDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDeployment", + requestType = com.google.cloud.ces.v1.UpdateDeploymentRequest.class, + responseType = com.google.cloud.ces.v1.Deployment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.UpdateDeploymentRequest, com.google.cloud.ces.v1.Deployment> + getUpdateDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.UpdateDeploymentRequest, com.google.cloud.ces.v1.Deployment> + getUpdateDeploymentMethod; + if ((getUpdateDeploymentMethod = AgentServiceGrpc.getUpdateDeploymentMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getUpdateDeploymentMethod = AgentServiceGrpc.getUpdateDeploymentMethod) == null) { + AgentServiceGrpc.getUpdateDeploymentMethod = + getUpdateDeploymentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDeployment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.UpdateDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.Deployment.getDefaultInstance())) + .setSchemaDescriptor( + new AgentServiceMethodDescriptorSupplier("UpdateDeployment")) + .build(); + } + } + } + return getUpdateDeploymentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.DeleteDeploymentRequest, com.google.protobuf.Empty> + getDeleteDeploymentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDeployment", + requestType = com.google.cloud.ces.v1.DeleteDeploymentRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.DeleteDeploymentRequest, com.google.protobuf.Empty> + getDeleteDeploymentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.DeleteDeploymentRequest, com.google.protobuf.Empty> + getDeleteDeploymentMethod; + if ((getDeleteDeploymentMethod = AgentServiceGrpc.getDeleteDeploymentMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getDeleteDeploymentMethod = AgentServiceGrpc.getDeleteDeploymentMethod) == null) { + AgentServiceGrpc.getDeleteDeploymentMethod = + getDeleteDeploymentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDeployment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.DeleteDeploymentRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AgentServiceMethodDescriptorSupplier("DeleteDeployment")) + .build(); + } + } + } + return getDeleteDeploymentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ListToolsetsRequest, com.google.cloud.ces.v1.ListToolsetsResponse> + getListToolsetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListToolsets", + requestType = com.google.cloud.ces.v1.ListToolsetsRequest.class, + responseType = com.google.cloud.ces.v1.ListToolsetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ListToolsetsRequest, com.google.cloud.ces.v1.ListToolsetsResponse> + getListToolsetsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ListToolsetsRequest, + com.google.cloud.ces.v1.ListToolsetsResponse> + getListToolsetsMethod; + if ((getListToolsetsMethod = AgentServiceGrpc.getListToolsetsMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getListToolsetsMethod = AgentServiceGrpc.getListToolsetsMethod) == null) { + AgentServiceGrpc.getListToolsetsMethod = + getListToolsetsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListToolsets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.ListToolsetsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.ListToolsetsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AgentServiceMethodDescriptorSupplier("ListToolsets")) + .build(); + } + } + } + return getListToolsetsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.GetToolsetRequest, com.google.cloud.ces.v1.Toolset> + getGetToolsetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetToolset", + requestType = com.google.cloud.ces.v1.GetToolsetRequest.class, + responseType = com.google.cloud.ces.v1.Toolset.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.GetToolsetRequest, com.google.cloud.ces.v1.Toolset> + getGetToolsetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.GetToolsetRequest, com.google.cloud.ces.v1.Toolset> + getGetToolsetMethod; + if ((getGetToolsetMethod = AgentServiceGrpc.getGetToolsetMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getGetToolsetMethod = AgentServiceGrpc.getGetToolsetMethod) == null) { + AgentServiceGrpc.getGetToolsetMethod = + getGetToolsetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetToolset")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.GetToolsetRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.Toolset.getDefaultInstance())) + .setSchemaDescriptor(new AgentServiceMethodDescriptorSupplier("GetToolset")) + .build(); + } + } + } + return getGetToolsetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.CreateToolsetRequest, com.google.cloud.ces.v1.Toolset> + getCreateToolsetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateToolset", + requestType = com.google.cloud.ces.v1.CreateToolsetRequest.class, + responseType = com.google.cloud.ces.v1.Toolset.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.CreateToolsetRequest, com.google.cloud.ces.v1.Toolset> + getCreateToolsetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.CreateToolsetRequest, com.google.cloud.ces.v1.Toolset> + getCreateToolsetMethod; + if ((getCreateToolsetMethod = AgentServiceGrpc.getCreateToolsetMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getCreateToolsetMethod = AgentServiceGrpc.getCreateToolsetMethod) == null) { + AgentServiceGrpc.getCreateToolsetMethod = + getCreateToolsetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateToolset")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.CreateToolsetRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.Toolset.getDefaultInstance())) + .setSchemaDescriptor( + new AgentServiceMethodDescriptorSupplier("CreateToolset")) + .build(); + } + } + } + return getCreateToolsetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.UpdateToolsetRequest, com.google.cloud.ces.v1.Toolset> + getUpdateToolsetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateToolset", + requestType = com.google.cloud.ces.v1.UpdateToolsetRequest.class, + responseType = com.google.cloud.ces.v1.Toolset.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.UpdateToolsetRequest, com.google.cloud.ces.v1.Toolset> + getUpdateToolsetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.UpdateToolsetRequest, com.google.cloud.ces.v1.Toolset> + getUpdateToolsetMethod; + if ((getUpdateToolsetMethod = AgentServiceGrpc.getUpdateToolsetMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getUpdateToolsetMethod = AgentServiceGrpc.getUpdateToolsetMethod) == null) { + AgentServiceGrpc.getUpdateToolsetMethod = + getUpdateToolsetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateToolset")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.UpdateToolsetRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.Toolset.getDefaultInstance())) + .setSchemaDescriptor( + new AgentServiceMethodDescriptorSupplier("UpdateToolset")) + .build(); + } + } + } + return getUpdateToolsetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.DeleteToolsetRequest, com.google.protobuf.Empty> + getDeleteToolsetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteToolset", + requestType = com.google.cloud.ces.v1.DeleteToolsetRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.DeleteToolsetRequest, com.google.protobuf.Empty> + getDeleteToolsetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.DeleteToolsetRequest, com.google.protobuf.Empty> + getDeleteToolsetMethod; + if ((getDeleteToolsetMethod = AgentServiceGrpc.getDeleteToolsetMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getDeleteToolsetMethod = AgentServiceGrpc.getDeleteToolsetMethod) == null) { + AgentServiceGrpc.getDeleteToolsetMethod = + getDeleteToolsetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteToolset")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.DeleteToolsetRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AgentServiceMethodDescriptorSupplier("DeleteToolset")) + .build(); + } + } + } + return getDeleteToolsetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ListAppVersionsRequest, + com.google.cloud.ces.v1.ListAppVersionsResponse> + getListAppVersionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAppVersions", + requestType = com.google.cloud.ces.v1.ListAppVersionsRequest.class, + responseType = com.google.cloud.ces.v1.ListAppVersionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ListAppVersionsRequest, + com.google.cloud.ces.v1.ListAppVersionsResponse> + getListAppVersionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ListAppVersionsRequest, + com.google.cloud.ces.v1.ListAppVersionsResponse> + getListAppVersionsMethod; + if ((getListAppVersionsMethod = AgentServiceGrpc.getListAppVersionsMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getListAppVersionsMethod = AgentServiceGrpc.getListAppVersionsMethod) == null) { + AgentServiceGrpc.getListAppVersionsMethod = + getListAppVersionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAppVersions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.ListAppVersionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.ListAppVersionsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new AgentServiceMethodDescriptorSupplier("ListAppVersions")) + .build(); + } + } + } + return getListAppVersionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.GetAppVersionRequest, com.google.cloud.ces.v1.AppVersion> + getGetAppVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAppVersion", + requestType = com.google.cloud.ces.v1.GetAppVersionRequest.class, + responseType = com.google.cloud.ces.v1.AppVersion.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.GetAppVersionRequest, com.google.cloud.ces.v1.AppVersion> + getGetAppVersionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.GetAppVersionRequest, com.google.cloud.ces.v1.AppVersion> + getGetAppVersionMethod; + if ((getGetAppVersionMethod = AgentServiceGrpc.getGetAppVersionMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getGetAppVersionMethod = AgentServiceGrpc.getGetAppVersionMethod) == null) { + AgentServiceGrpc.getGetAppVersionMethod = + getGetAppVersionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAppVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.GetAppVersionRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.AppVersion.getDefaultInstance())) + .setSchemaDescriptor( + new AgentServiceMethodDescriptorSupplier("GetAppVersion")) + .build(); + } + } + } + return getGetAppVersionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.CreateAppVersionRequest, com.google.cloud.ces.v1.AppVersion> + getCreateAppVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAppVersion", + requestType = com.google.cloud.ces.v1.CreateAppVersionRequest.class, + responseType = com.google.cloud.ces.v1.AppVersion.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.CreateAppVersionRequest, com.google.cloud.ces.v1.AppVersion> + getCreateAppVersionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.CreateAppVersionRequest, com.google.cloud.ces.v1.AppVersion> + getCreateAppVersionMethod; + if ((getCreateAppVersionMethod = AgentServiceGrpc.getCreateAppVersionMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getCreateAppVersionMethod = AgentServiceGrpc.getCreateAppVersionMethod) == null) { + AgentServiceGrpc.getCreateAppVersionMethod = + getCreateAppVersionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAppVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.CreateAppVersionRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.AppVersion.getDefaultInstance())) + .setSchemaDescriptor( + new AgentServiceMethodDescriptorSupplier("CreateAppVersion")) + .build(); + } + } + } + return getCreateAppVersionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.DeleteAppVersionRequest, com.google.protobuf.Empty> + getDeleteAppVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAppVersion", + requestType = com.google.cloud.ces.v1.DeleteAppVersionRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.DeleteAppVersionRequest, com.google.protobuf.Empty> + getDeleteAppVersionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.DeleteAppVersionRequest, com.google.protobuf.Empty> + getDeleteAppVersionMethod; + if ((getDeleteAppVersionMethod = AgentServiceGrpc.getDeleteAppVersionMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getDeleteAppVersionMethod = AgentServiceGrpc.getDeleteAppVersionMethod) == null) { + AgentServiceGrpc.getDeleteAppVersionMethod = + getDeleteAppVersionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAppVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.DeleteAppVersionRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AgentServiceMethodDescriptorSupplier("DeleteAppVersion")) + .build(); + } + } + } + return getDeleteAppVersionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.RestoreAppVersionRequest, com.google.longrunning.Operation> + getRestoreAppVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RestoreAppVersion", + requestType = com.google.cloud.ces.v1.RestoreAppVersionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.RestoreAppVersionRequest, com.google.longrunning.Operation> + getRestoreAppVersionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.RestoreAppVersionRequest, com.google.longrunning.Operation> + getRestoreAppVersionMethod; + if ((getRestoreAppVersionMethod = AgentServiceGrpc.getRestoreAppVersionMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getRestoreAppVersionMethod = AgentServiceGrpc.getRestoreAppVersionMethod) == null) { + AgentServiceGrpc.getRestoreAppVersionMethod = + getRestoreAppVersionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RestoreAppVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.RestoreAppVersionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AgentServiceMethodDescriptorSupplier("RestoreAppVersion")) + .build(); + } + } + } + return getRestoreAppVersionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ListChangelogsRequest, + com.google.cloud.ces.v1.ListChangelogsResponse> + getListChangelogsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListChangelogs", + requestType = com.google.cloud.ces.v1.ListChangelogsRequest.class, + responseType = com.google.cloud.ces.v1.ListChangelogsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ListChangelogsRequest, + com.google.cloud.ces.v1.ListChangelogsResponse> + getListChangelogsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ListChangelogsRequest, + com.google.cloud.ces.v1.ListChangelogsResponse> + getListChangelogsMethod; + if ((getListChangelogsMethod = AgentServiceGrpc.getListChangelogsMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getListChangelogsMethod = AgentServiceGrpc.getListChangelogsMethod) == null) { + AgentServiceGrpc.getListChangelogsMethod = + getListChangelogsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListChangelogs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.ListChangelogsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.ListChangelogsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new AgentServiceMethodDescriptorSupplier("ListChangelogs")) + .build(); + } + } + } + return getListChangelogsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.GetChangelogRequest, com.google.cloud.ces.v1.Changelog> + getGetChangelogMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetChangelog", + requestType = com.google.cloud.ces.v1.GetChangelogRequest.class, + responseType = com.google.cloud.ces.v1.Changelog.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.GetChangelogRequest, com.google.cloud.ces.v1.Changelog> + getGetChangelogMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.GetChangelogRequest, com.google.cloud.ces.v1.Changelog> + getGetChangelogMethod; + if ((getGetChangelogMethod = AgentServiceGrpc.getGetChangelogMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getGetChangelogMethod = AgentServiceGrpc.getGetChangelogMethod) == null) { + AgentServiceGrpc.getGetChangelogMethod = + getGetChangelogMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetChangelog")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.GetChangelogRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.Changelog.getDefaultInstance())) + .setSchemaDescriptor(new AgentServiceMethodDescriptorSupplier("GetChangelog")) + .build(); + } + } + } + return getGetChangelogMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AgentServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AgentServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentServiceStub(channel, callOptions); + } + }; + return AgentServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static AgentServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AgentServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentServiceBlockingV2Stub(channel, callOptions); + } + }; + return AgentServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AgentServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AgentServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentServiceBlockingStub(channel, callOptions); + } + }; + return AgentServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AgentServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AgentServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentServiceFutureStub(channel, callOptions); + } + }; + return AgentServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
      +   * The service that manages agent-related resources in Gemini Enterprise for
      +   * Customer Engagement (CES).
      +   * 
      + */ + public interface AsyncService { + + /** + * + * + *
      +     * Lists apps in the given project and location.
      +     * 
      + */ + default void listApps( + com.google.cloud.ces.v1.ListAppsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAppsMethod(), responseObserver); + } + + /** + * + * + *
      +     * Gets details of the specified app.
      +     * 
      + */ + default void getApp( + com.google.cloud.ces.v1.GetAppRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAppMethod(), responseObserver); + } + + /** + * + * + *
      +     * Creates a new app in the given project and location.
      +     * 
      + */ + default void createApp( + com.google.cloud.ces.v1.CreateAppRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateAppMethod(), responseObserver); + } + + /** + * + * + *
      +     * Updates the specified app.
      +     * 
      + */ + default void updateApp( + com.google.cloud.ces.v1.UpdateAppRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateAppMethod(), responseObserver); + } + + /** + * + * + *
      +     * Deletes the specified app.
      +     * 
      + */ + default void deleteApp( + com.google.cloud.ces.v1.DeleteAppRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteAppMethod(), responseObserver); + } + + /** + * + * + *
      +     * Exports the specified app.
      +     * 
      + */ + default void exportApp( + com.google.cloud.ces.v1.ExportAppRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportAppMethod(), responseObserver); + } + + /** + * + * + *
      +     * Imports the specified app.
      +     * 
      + */ + default void importApp( + com.google.cloud.ces.v1.ImportAppRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportAppMethod(), responseObserver); + } + + /** + * + * + *
      +     * Lists agents in the given app.
      +     * 
      + */ + default void listAgents( + com.google.cloud.ces.v1.ListAgentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAgentsMethod(), responseObserver); + } + + /** + * + * + *
      +     * Gets details of the specified agent.
      +     * 
      + */ + default void getAgent( + com.google.cloud.ces.v1.GetAgentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAgentMethod(), responseObserver); + } + + /** + * + * + *
      +     * Creates a new agent in the given app.
      +     * 
      + */ + default void createAgent( + com.google.cloud.ces.v1.CreateAgentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAgentMethod(), responseObserver); + } + + /** + * + * + *
      +     * Updates the specified agent.
      +     * 
      + */ + default void updateAgent( + com.google.cloud.ces.v1.UpdateAgentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAgentMethod(), responseObserver); + } + + /** + * + * + *
      +     * Deletes the specified agent.
      +     * 
      + */ + default void deleteAgent( + com.google.cloud.ces.v1.DeleteAgentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAgentMethod(), responseObserver); + } + + /** + * + * + *
      +     * Lists examples in the given app.
      +     * 
      + */ + default void listExamples( + com.google.cloud.ces.v1.ListExamplesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListExamplesMethod(), responseObserver); + } + + /** + * + * + *
      +     * Gets details of the specified example.
      +     * 
      + */ + default void getExample( + com.google.cloud.ces.v1.GetExampleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetExampleMethod(), responseObserver); + } + + /** + * + * + *
      +     * Creates a new example in the given app.
      +     * 
      + */ + default void createExample( + com.google.cloud.ces.v1.CreateExampleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateExampleMethod(), responseObserver); + } + + /** + * + * + *
      +     * Updates the specified example.
      +     * 
      + */ + default void updateExample( + com.google.cloud.ces.v1.UpdateExampleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateExampleMethod(), responseObserver); + } + + /** + * + * + *
      +     * Deletes the specified example.
      +     * 
      + */ + default void deleteExample( + com.google.cloud.ces.v1.DeleteExampleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteExampleMethod(), responseObserver); + } + + /** + * + * + *
      +     * Lists tools in the given app.
      +     * 
      + */ + default void listTools( + com.google.cloud.ces.v1.ListToolsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListToolsMethod(), responseObserver); + } + + /** + * + * + *
      +     * Gets details of the specified tool.
      +     * 
      + */ + default void getTool( + com.google.cloud.ces.v1.GetToolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetToolMethod(), responseObserver); + } + + /** + * + * + *
      +     * Lists conversations in the given app.
      +     * 
      + */ + default void listConversations( + com.google.cloud.ces.v1.ListConversationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListConversationsMethod(), responseObserver); + } + + /** + * + * + *
      +     * Gets details of the specified conversation.
      +     * 
      + */ + default void getConversation( + com.google.cloud.ces.v1.GetConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetConversationMethod(), responseObserver); + } + + /** + * + * + *
      +     * Deletes the specified conversation.
      +     * 
      + */ + default void deleteConversation( + com.google.cloud.ces.v1.DeleteConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteConversationMethod(), responseObserver); + } + + /** + * + * + *
      +     * Batch deletes the specified conversations.
      +     * 
      + */ + default void batchDeleteConversations( + com.google.cloud.ces.v1.BatchDeleteConversationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchDeleteConversationsMethod(), responseObserver); + } + + /** + * + * + *
      +     * Creates a new tool in the given app.
      +     * 
      + */ + default void createTool( + com.google.cloud.ces.v1.CreateToolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateToolMethod(), responseObserver); + } + + /** + * + * + *
      +     * Updates the specified tool.
      +     * 
      + */ + default void updateTool( + com.google.cloud.ces.v1.UpdateToolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateToolMethod(), responseObserver); + } + + /** + * + * + *
      +     * Deletes the specified tool.
      +     * 
      + */ + default void deleteTool( + com.google.cloud.ces.v1.DeleteToolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteToolMethod(), responseObserver); + } + + /** + * + * + *
      +     * Lists guardrails in the given app.
      +     * 
      + */ + default void listGuardrails( + com.google.cloud.ces.v1.ListGuardrailsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListGuardrailsMethod(), responseObserver); + } + + /** + * + * + *
      +     * Gets details of the specified guardrail.
      +     * 
      + */ + default void getGuardrail( + com.google.cloud.ces.v1.GetGuardrailRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetGuardrailMethod(), responseObserver); + } + + /** + * + * + *
      +     * Creates a new guardrail in the given app.
      +     * 
      + */ + default void createGuardrail( + com.google.cloud.ces.v1.CreateGuardrailRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateGuardrailMethod(), responseObserver); + } + + /** + * + * + *
      +     * Updates the specified guardrail.
      +     * 
      + */ + default void updateGuardrail( + com.google.cloud.ces.v1.UpdateGuardrailRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateGuardrailMethod(), responseObserver); + } + + /** + * + * + *
      +     * Deletes the specified guardrail.
      +     * 
      + */ + default void deleteGuardrail( + com.google.cloud.ces.v1.DeleteGuardrailRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteGuardrailMethod(), responseObserver); + } + + /** + * + * + *
      +     * Lists deployments in the given app.
      +     * 
      + */ + default void listDeployments( + com.google.cloud.ces.v1.ListDeploymentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDeploymentsMethod(), responseObserver); + } + + /** + * + * + *
      +     * Gets details of the specified deployment.
      +     * 
      + */ + default void getDeployment( + com.google.cloud.ces.v1.GetDeploymentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDeploymentMethod(), responseObserver); + } + + /** + * + * + *
      +     * Creates a new deployment in the given app.
      +     * 
      + */ + default void createDeployment( + com.google.cloud.ces.v1.CreateDeploymentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDeploymentMethod(), responseObserver); + } + + /** + * + * + *
      +     * Updates the specified deployment.
      +     * 
      + */ + default void updateDeployment( + com.google.cloud.ces.v1.UpdateDeploymentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDeploymentMethod(), responseObserver); + } + + /** + * + * + *
      +     * Deletes the specified deployment.
      +     * 
      + */ + default void deleteDeployment( + com.google.cloud.ces.v1.DeleteDeploymentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDeploymentMethod(), responseObserver); + } + + /** + * + * + *
      +     * Lists toolsets in the given app.
      +     * 
      + */ + default void listToolsets( + com.google.cloud.ces.v1.ListToolsetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListToolsetsMethod(), responseObserver); + } + + /** + * + * + *
      +     * Gets details of the specified toolset.
      +     * 
      + */ + default void getToolset( + com.google.cloud.ces.v1.GetToolsetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetToolsetMethod(), responseObserver); + } + + /** + * + * + *
      +     * Creates a new toolset in the given app.
      +     * 
      + */ + default void createToolset( + com.google.cloud.ces.v1.CreateToolsetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateToolsetMethod(), responseObserver); + } + + /** + * + * + *
      +     * Updates the specified toolset.
      +     * 
      + */ + default void updateToolset( + com.google.cloud.ces.v1.UpdateToolsetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateToolsetMethod(), responseObserver); + } + + /** + * + * + *
      +     * Deletes the specified toolset.
      +     * 
      + */ + default void deleteToolset( + com.google.cloud.ces.v1.DeleteToolsetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteToolsetMethod(), responseObserver); + } + + /** + * + * + *
      +     * Lists all app versions in the given app.
      +     * 
      + */ + default void listAppVersions( + com.google.cloud.ces.v1.ListAppVersionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAppVersionsMethod(), responseObserver); + } + + /** + * + * + *
      +     * Gets details of the specified app version.
      +     * 
      + */ + default void getAppVersion( + com.google.cloud.ces.v1.GetAppVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAppVersionMethod(), responseObserver); + } + + /** + * + * + *
      +     * Creates a new app version in the given app.
      +     * 
      + */ + default void createAppVersion( + com.google.cloud.ces.v1.CreateAppVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAppVersionMethod(), responseObserver); + } + + /** + * + * + *
      +     * Deletes the specified app version.
      +     * 
      + */ + default void deleteAppVersion( + com.google.cloud.ces.v1.DeleteAppVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAppVersionMethod(), responseObserver); + } + + /** + * + * + *
      +     * Restores the specified app version.
      +     * This will create a new app version from the current draft app and overwrite
      +     * the current draft with the specified app version.
      +     * 
      + */ + default void restoreAppVersion( + com.google.cloud.ces.v1.RestoreAppVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRestoreAppVersionMethod(), responseObserver); + } + + /** + * + * + *
      +     * Lists the changelogs of the specified app.
      +     * 
      + */ + default void listChangelogs( + com.google.cloud.ces.v1.ListChangelogsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListChangelogsMethod(), responseObserver); + } + + /** + * + * + *
      +     * Gets the specified changelog.
      +     * 
      + */ + default void getChangelog( + com.google.cloud.ces.v1.GetChangelogRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetChangelogMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service AgentService. + * + *
      +   * The service that manages agent-related resources in Gemini Enterprise for
      +   * Customer Engagement (CES).
      +   * 
      + */ + public abstract static class AgentServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return AgentServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service AgentService. + * + *
      +   * The service that manages agent-related resources in Gemini Enterprise for
      +   * Customer Engagement (CES).
      +   * 
      + */ + public static final class AgentServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private AgentServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AgentServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentServiceStub(channel, callOptions); + } + + /** + * + * + *
      +     * Lists apps in the given project and location.
      +     * 
      + */ + public void listApps( + com.google.cloud.ces.v1.ListAppsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAppsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
      +     * Gets details of the specified app.
      +     * 
      + */ + public void getApp( + com.google.cloud.ces.v1.GetAppRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAppMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
      +     * Creates a new app in the given project and location.
      +     * 
      + */ + public void createApp( + com.google.cloud.ces.v1.CreateAppRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAppMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
      +     * Updates the specified app.
      +     * 
      + */ + public void updateApp( + com.google.cloud.ces.v1.UpdateAppRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAppMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
      +     * Deletes the specified app.
      +     * 
      + */ + public void deleteApp( + com.google.cloud.ces.v1.DeleteAppRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAppMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
      +     * Exports the specified app.
      +     * 
      + */ + public void exportApp( + com.google.cloud.ces.v1.ExportAppRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExportAppMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
      +     * Imports the specified app.
      +     * 
      + */ + public void importApp( + com.google.cloud.ces.v1.ImportAppRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportAppMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
      +     * Lists agents in the given app.
      +     * 
      + */ + public void listAgents( + com.google.cloud.ces.v1.ListAgentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAgentsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
      +     * Gets details of the specified agent.
      +     * 
      + */ + public void getAgent( + com.google.cloud.ces.v1.GetAgentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAgentMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
      +     * Creates a new agent in the given app.
      +     * 
      + */ + public void createAgent( + com.google.cloud.ces.v1.CreateAgentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAgentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Updates the specified agent.
      +     * 
      + */ + public void updateAgent( + com.google.cloud.ces.v1.UpdateAgentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAgentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Deletes the specified agent.
      +     * 
      + */ + public void deleteAgent( + com.google.cloud.ces.v1.DeleteAgentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAgentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Lists examples in the given app.
      +     * 
      + */ + public void listExamples( + com.google.cloud.ces.v1.ListExamplesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListExamplesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Gets details of the specified example.
      +     * 
      + */ + public void getExample( + com.google.cloud.ces.v1.GetExampleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetExampleMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
      +     * Creates a new example in the given app.
      +     * 
      + */ + public void createExample( + com.google.cloud.ces.v1.CreateExampleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateExampleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Updates the specified example.
      +     * 
      + */ + public void updateExample( + com.google.cloud.ces.v1.UpdateExampleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateExampleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Deletes the specified example.
      +     * 
      + */ + public void deleteExample( + com.google.cloud.ces.v1.DeleteExampleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteExampleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Lists tools in the given app.
      +     * 
      + */ + public void listTools( + com.google.cloud.ces.v1.ListToolsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListToolsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
      +     * Gets details of the specified tool.
      +     * 
      + */ + public void getTool( + com.google.cloud.ces.v1.GetToolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetToolMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
      +     * Lists conversations in the given app.
      +     * 
      + */ + public void listConversations( + com.google.cloud.ces.v1.ListConversationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListConversationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Gets details of the specified conversation.
      +     * 
      + */ + public void getConversation( + com.google.cloud.ces.v1.GetConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConversationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Deletes the specified conversation.
      +     * 
      + */ + public void deleteConversation( + com.google.cloud.ces.v1.DeleteConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteConversationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Batch deletes the specified conversations.
      +     * 
      + */ + public void batchDeleteConversations( + com.google.cloud.ces.v1.BatchDeleteConversationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchDeleteConversationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Creates a new tool in the given app.
      +     * 
      + */ + public void createTool( + com.google.cloud.ces.v1.CreateToolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateToolMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
      +     * Updates the specified tool.
      +     * 
      + */ + public void updateTool( + com.google.cloud.ces.v1.UpdateToolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateToolMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
      +     * Deletes the specified tool.
      +     * 
      + */ + public void deleteTool( + com.google.cloud.ces.v1.DeleteToolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteToolMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
      +     * Lists guardrails in the given app.
      +     * 
      + */ + public void listGuardrails( + com.google.cloud.ces.v1.ListGuardrailsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListGuardrailsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Gets details of the specified guardrail.
      +     * 
      + */ + public void getGuardrail( + com.google.cloud.ces.v1.GetGuardrailRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetGuardrailMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Creates a new guardrail in the given app.
      +     * 
      + */ + public void createGuardrail( + com.google.cloud.ces.v1.CreateGuardrailRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateGuardrailMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Updates the specified guardrail.
      +     * 
      + */ + public void updateGuardrail( + com.google.cloud.ces.v1.UpdateGuardrailRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateGuardrailMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Deletes the specified guardrail.
      +     * 
      + */ + public void deleteGuardrail( + com.google.cloud.ces.v1.DeleteGuardrailRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteGuardrailMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Lists deployments in the given app.
      +     * 
      + */ + public void listDeployments( + com.google.cloud.ces.v1.ListDeploymentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDeploymentsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Gets details of the specified deployment.
      +     * 
      + */ + public void getDeployment( + com.google.cloud.ces.v1.GetDeploymentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Creates a new deployment in the given app.
      +     * 
      + */ + public void createDeployment( + com.google.cloud.ces.v1.CreateDeploymentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Updates the specified deployment.
      +     * 
      + */ + public void updateDeployment( + com.google.cloud.ces.v1.UpdateDeploymentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Deletes the specified deployment.
      +     * 
      + */ + public void deleteDeployment( + com.google.cloud.ces.v1.DeleteDeploymentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDeploymentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Lists toolsets in the given app.
      +     * 
      + */ + public void listToolsets( + com.google.cloud.ces.v1.ListToolsetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListToolsetsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Gets details of the specified toolset.
      +     * 
      + */ + public void getToolset( + com.google.cloud.ces.v1.GetToolsetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetToolsetMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
      +     * Creates a new toolset in the given app.
      +     * 
      + */ + public void createToolset( + com.google.cloud.ces.v1.CreateToolsetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateToolsetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Updates the specified toolset.
      +     * 
      + */ + public void updateToolset( + com.google.cloud.ces.v1.UpdateToolsetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateToolsetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Deletes the specified toolset.
      +     * 
      + */ + public void deleteToolset( + com.google.cloud.ces.v1.DeleteToolsetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteToolsetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Lists all app versions in the given app.
      +     * 
      + */ + public void listAppVersions( + com.google.cloud.ces.v1.ListAppVersionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAppVersionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Gets details of the specified app version.
      +     * 
      + */ + public void getAppVersion( + com.google.cloud.ces.v1.GetAppVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAppVersionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Creates a new app version in the given app.
      +     * 
      + */ + public void createAppVersion( + com.google.cloud.ces.v1.CreateAppVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAppVersionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Deletes the specified app version.
      +     * 
      + */ + public void deleteAppVersion( + com.google.cloud.ces.v1.DeleteAppVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAppVersionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Restores the specified app version.
      +     * This will create a new app version from the current draft app and overwrite
      +     * the current draft with the specified app version.
      +     * 
      + */ + public void restoreAppVersion( + com.google.cloud.ces.v1.RestoreAppVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRestoreAppVersionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Lists the changelogs of the specified app.
      +     * 
      + */ + public void listChangelogs( + com.google.cloud.ces.v1.ListChangelogsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListChangelogsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Gets the specified changelog.
      +     * 
      + */ + public void getChangelog( + com.google.cloud.ces.v1.GetChangelogRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetChangelogMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service AgentService. + * + *
      +   * The service that manages agent-related resources in Gemini Enterprise for
      +   * Customer Engagement (CES).
      +   * 
      + */ + public static final class AgentServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private AgentServiceBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AgentServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
      +     * Lists apps in the given project and location.
      +     * 
      + */ + public com.google.cloud.ces.v1.ListAppsResponse listApps( + com.google.cloud.ces.v1.ListAppsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAppsMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Gets details of the specified app.
      +     * 
      + */ + public com.google.cloud.ces.v1.App getApp(com.google.cloud.ces.v1.GetAppRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAppMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Creates a new app in the given project and location.
      +     * 
      + */ + public com.google.longrunning.Operation createApp( + com.google.cloud.ces.v1.CreateAppRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateAppMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Updates the specified app.
      +     * 
      + */ + public com.google.cloud.ces.v1.App updateApp(com.google.cloud.ces.v1.UpdateAppRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateAppMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Deletes the specified app.
      +     * 
      + */ + public com.google.longrunning.Operation deleteApp( + com.google.cloud.ces.v1.DeleteAppRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteAppMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Exports the specified app.
      +     * 
      + */ + public com.google.longrunning.Operation exportApp( + com.google.cloud.ces.v1.ExportAppRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getExportAppMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Imports the specified app.
      +     * 
      + */ + public com.google.longrunning.Operation importApp( + com.google.cloud.ces.v1.ImportAppRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getImportAppMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Lists agents in the given app.
      +     * 
      + */ + public com.google.cloud.ces.v1.ListAgentsResponse listAgents( + com.google.cloud.ces.v1.ListAgentsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAgentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Gets details of the specified agent.
      +     * 
      + */ + public com.google.cloud.ces.v1.Agent getAgent(com.google.cloud.ces.v1.GetAgentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAgentMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Creates a new agent in the given app.
      +     * 
      + */ + public com.google.cloud.ces.v1.Agent createAgent( + com.google.cloud.ces.v1.CreateAgentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateAgentMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Updates the specified agent.
      +     * 
      + */ + public com.google.cloud.ces.v1.Agent updateAgent( + com.google.cloud.ces.v1.UpdateAgentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateAgentMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Deletes the specified agent.
      +     * 
      + */ + public com.google.protobuf.Empty deleteAgent(com.google.cloud.ces.v1.DeleteAgentRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteAgentMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Lists examples in the given app.
      +     * 
      + */ + public com.google.cloud.ces.v1.ListExamplesResponse listExamples( + com.google.cloud.ces.v1.ListExamplesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListExamplesMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Gets details of the specified example.
      +     * 
      + */ + public com.google.cloud.ces.v1.Example getExample( + com.google.cloud.ces.v1.GetExampleRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetExampleMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Creates a new example in the given app.
      +     * 
      + */ + public com.google.cloud.ces.v1.Example createExample( + com.google.cloud.ces.v1.CreateExampleRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateExampleMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Updates the specified example.
      +     * 
      + */ + public com.google.cloud.ces.v1.Example updateExample( + com.google.cloud.ces.v1.UpdateExampleRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateExampleMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Deletes the specified example.
      +     * 
      + */ + public com.google.protobuf.Empty deleteExample( + com.google.cloud.ces.v1.DeleteExampleRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteExampleMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Lists tools in the given app.
      +     * 
      + */ + public com.google.cloud.ces.v1.ListToolsResponse listTools( + com.google.cloud.ces.v1.ListToolsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListToolsMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Gets details of the specified tool.
      +     * 
      + */ + public com.google.cloud.ces.v1.Tool getTool(com.google.cloud.ces.v1.GetToolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetToolMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Lists conversations in the given app.
      +     * 
      + */ + public com.google.cloud.ces.v1.ListConversationsResponse listConversations( + com.google.cloud.ces.v1.ListConversationsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListConversationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Gets details of the specified conversation.
      +     * 
      + */ + public com.google.cloud.ces.v1.Conversation getConversation( + com.google.cloud.ces.v1.GetConversationRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetConversationMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Deletes the specified conversation.
      +     * 
      + */ + public com.google.protobuf.Empty deleteConversation( + com.google.cloud.ces.v1.DeleteConversationRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteConversationMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Batch deletes the specified conversations.
      +     * 
      + */ + public com.google.longrunning.Operation batchDeleteConversations( + com.google.cloud.ces.v1.BatchDeleteConversationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getBatchDeleteConversationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Creates a new tool in the given app.
      +     * 
      + */ + public com.google.cloud.ces.v1.Tool createTool( + com.google.cloud.ces.v1.CreateToolRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateToolMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Updates the specified tool.
      +     * 
      + */ + public com.google.cloud.ces.v1.Tool updateTool( + com.google.cloud.ces.v1.UpdateToolRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateToolMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Deletes the specified tool.
      +     * 
      + */ + public com.google.protobuf.Empty deleteTool(com.google.cloud.ces.v1.DeleteToolRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteToolMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Lists guardrails in the given app.
      +     * 
      + */ + public com.google.cloud.ces.v1.ListGuardrailsResponse listGuardrails( + com.google.cloud.ces.v1.ListGuardrailsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListGuardrailsMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Gets details of the specified guardrail.
      +     * 
      + */ + public com.google.cloud.ces.v1.Guardrail getGuardrail( + com.google.cloud.ces.v1.GetGuardrailRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetGuardrailMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Creates a new guardrail in the given app.
      +     * 
      + */ + public com.google.cloud.ces.v1.Guardrail createGuardrail( + com.google.cloud.ces.v1.CreateGuardrailRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateGuardrailMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Updates the specified guardrail.
      +     * 
      + */ + public com.google.cloud.ces.v1.Guardrail updateGuardrail( + com.google.cloud.ces.v1.UpdateGuardrailRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateGuardrailMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Deletes the specified guardrail.
      +     * 
      + */ + public com.google.protobuf.Empty deleteGuardrail( + com.google.cloud.ces.v1.DeleteGuardrailRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteGuardrailMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Lists deployments in the given app.
      +     * 
      + */ + public com.google.cloud.ces.v1.ListDeploymentsResponse listDeployments( + com.google.cloud.ces.v1.ListDeploymentsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListDeploymentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Gets details of the specified deployment.
      +     * 
      + */ + public com.google.cloud.ces.v1.Deployment getDeployment( + com.google.cloud.ces.v1.GetDeploymentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Creates a new deployment in the given app.
      +     * 
      + */ + public com.google.cloud.ces.v1.Deployment createDeployment( + com.google.cloud.ces.v1.CreateDeploymentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Updates the specified deployment.
      +     * 
      + */ + public com.google.cloud.ces.v1.Deployment updateDeployment( + com.google.cloud.ces.v1.UpdateDeploymentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Deletes the specified deployment.
      +     * 
      + */ + public com.google.protobuf.Empty deleteDeployment( + com.google.cloud.ces.v1.DeleteDeploymentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Lists toolsets in the given app.
      +     * 
      + */ + public com.google.cloud.ces.v1.ListToolsetsResponse listToolsets( + com.google.cloud.ces.v1.ListToolsetsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListToolsetsMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Gets details of the specified toolset.
      +     * 
      + */ + public com.google.cloud.ces.v1.Toolset getToolset( + com.google.cloud.ces.v1.GetToolsetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetToolsetMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Creates a new toolset in the given app.
      +     * 
      + */ + public com.google.cloud.ces.v1.Toolset createToolset( + com.google.cloud.ces.v1.CreateToolsetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateToolsetMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Updates the specified toolset.
      +     * 
      + */ + public com.google.cloud.ces.v1.Toolset updateToolset( + com.google.cloud.ces.v1.UpdateToolsetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateToolsetMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Deletes the specified toolset.
      +     * 
      + */ + public com.google.protobuf.Empty deleteToolset( + com.google.cloud.ces.v1.DeleteToolsetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteToolsetMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Lists all app versions in the given app.
      +     * 
      + */ + public com.google.cloud.ces.v1.ListAppVersionsResponse listAppVersions( + com.google.cloud.ces.v1.ListAppVersionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAppVersionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Gets details of the specified app version.
      +     * 
      + */ + public com.google.cloud.ces.v1.AppVersion getAppVersion( + com.google.cloud.ces.v1.GetAppVersionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAppVersionMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Creates a new app version in the given app.
      +     * 
      + */ + public com.google.cloud.ces.v1.AppVersion createAppVersion( + com.google.cloud.ces.v1.CreateAppVersionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateAppVersionMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Deletes the specified app version.
      +     * 
      + */ + public com.google.protobuf.Empty deleteAppVersion( + com.google.cloud.ces.v1.DeleteAppVersionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteAppVersionMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Restores the specified app version.
      +     * This will create a new app version from the current draft app and overwrite
      +     * the current draft with the specified app version.
      +     * 
      + */ + public com.google.longrunning.Operation restoreAppVersion( + com.google.cloud.ces.v1.RestoreAppVersionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getRestoreAppVersionMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Lists the changelogs of the specified app.
      +     * 
      + */ + public com.google.cloud.ces.v1.ListChangelogsResponse listChangelogs( + com.google.cloud.ces.v1.ListChangelogsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListChangelogsMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Gets the specified changelog.
      +     * 
      + */ + public com.google.cloud.ces.v1.Changelog getChangelog( + com.google.cloud.ces.v1.GetChangelogRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetChangelogMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service AgentService. + * + *
      +   * The service that manages agent-related resources in Gemini Enterprise for
      +   * Customer Engagement (CES).
      +   * 
      + */ + public static final class AgentServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AgentServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AgentServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
      +     * Lists apps in the given project and location.
      +     * 
      + */ + public com.google.cloud.ces.v1.ListAppsResponse listApps( + com.google.cloud.ces.v1.ListAppsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAppsMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Gets details of the specified app.
      +     * 
      + */ + public com.google.cloud.ces.v1.App getApp(com.google.cloud.ces.v1.GetAppRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAppMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Creates a new app in the given project and location.
      +     * 
      + */ + public com.google.longrunning.Operation createApp( + com.google.cloud.ces.v1.CreateAppRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAppMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Updates the specified app.
      +     * 
      + */ + public com.google.cloud.ces.v1.App updateApp(com.google.cloud.ces.v1.UpdateAppRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAppMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Deletes the specified app.
      +     * 
      + */ + public com.google.longrunning.Operation deleteApp( + com.google.cloud.ces.v1.DeleteAppRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAppMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Exports the specified app.
      +     * 
      + */ + public com.google.longrunning.Operation exportApp( + com.google.cloud.ces.v1.ExportAppRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportAppMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Imports the specified app.
      +     * 
      + */ + public com.google.longrunning.Operation importApp( + com.google.cloud.ces.v1.ImportAppRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportAppMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Lists agents in the given app.
      +     * 
      + */ + public com.google.cloud.ces.v1.ListAgentsResponse listAgents( + com.google.cloud.ces.v1.ListAgentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAgentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Gets details of the specified agent.
      +     * 
      + */ + public com.google.cloud.ces.v1.Agent getAgent(com.google.cloud.ces.v1.GetAgentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAgentMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Creates a new agent in the given app.
      +     * 
      + */ + public com.google.cloud.ces.v1.Agent createAgent( + com.google.cloud.ces.v1.CreateAgentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAgentMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Updates the specified agent.
      +     * 
      + */ + public com.google.cloud.ces.v1.Agent updateAgent( + com.google.cloud.ces.v1.UpdateAgentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAgentMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Deletes the specified agent.
      +     * 
      + */ + public com.google.protobuf.Empty deleteAgent( + com.google.cloud.ces.v1.DeleteAgentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAgentMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Lists examples in the given app.
      +     * 
      + */ + public com.google.cloud.ces.v1.ListExamplesResponse listExamples( + com.google.cloud.ces.v1.ListExamplesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListExamplesMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Gets details of the specified example.
      +     * 
      + */ + public com.google.cloud.ces.v1.Example getExample( + com.google.cloud.ces.v1.GetExampleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetExampleMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Creates a new example in the given app.
      +     * 
      + */ + public com.google.cloud.ces.v1.Example createExample( + com.google.cloud.ces.v1.CreateExampleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateExampleMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Updates the specified example.
      +     * 
      + */ + public com.google.cloud.ces.v1.Example updateExample( + com.google.cloud.ces.v1.UpdateExampleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateExampleMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Deletes the specified example.
      +     * 
      + */ + public com.google.protobuf.Empty deleteExample( + com.google.cloud.ces.v1.DeleteExampleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteExampleMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Lists tools in the given app.
      +     * 
      + */ + public com.google.cloud.ces.v1.ListToolsResponse listTools( + com.google.cloud.ces.v1.ListToolsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListToolsMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Gets details of the specified tool.
      +     * 
      + */ + public com.google.cloud.ces.v1.Tool getTool(com.google.cloud.ces.v1.GetToolRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetToolMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Lists conversations in the given app.
      +     * 
      + */ + public com.google.cloud.ces.v1.ListConversationsResponse listConversations( + com.google.cloud.ces.v1.ListConversationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListConversationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Gets details of the specified conversation.
      +     * 
      + */ + public com.google.cloud.ces.v1.Conversation getConversation( + com.google.cloud.ces.v1.GetConversationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConversationMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Deletes the specified conversation.
      +     * 
      + */ + public com.google.protobuf.Empty deleteConversation( + com.google.cloud.ces.v1.DeleteConversationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteConversationMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Batch deletes the specified conversations.
      +     * 
      + */ + public com.google.longrunning.Operation batchDeleteConversations( + com.google.cloud.ces.v1.BatchDeleteConversationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchDeleteConversationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Creates a new tool in the given app.
      +     * 
      + */ + public com.google.cloud.ces.v1.Tool createTool( + com.google.cloud.ces.v1.CreateToolRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateToolMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Updates the specified tool.
      +     * 
      + */ + public com.google.cloud.ces.v1.Tool updateTool( + com.google.cloud.ces.v1.UpdateToolRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateToolMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Deletes the specified tool.
      +     * 
      + */ + public com.google.protobuf.Empty deleteTool(com.google.cloud.ces.v1.DeleteToolRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteToolMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Lists guardrails in the given app.
      +     * 
      + */ + public com.google.cloud.ces.v1.ListGuardrailsResponse listGuardrails( + com.google.cloud.ces.v1.ListGuardrailsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListGuardrailsMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Gets details of the specified guardrail.
      +     * 
      + */ + public com.google.cloud.ces.v1.Guardrail getGuardrail( + com.google.cloud.ces.v1.GetGuardrailRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetGuardrailMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Creates a new guardrail in the given app.
      +     * 
      + */ + public com.google.cloud.ces.v1.Guardrail createGuardrail( + com.google.cloud.ces.v1.CreateGuardrailRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateGuardrailMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Updates the specified guardrail.
      +     * 
      + */ + public com.google.cloud.ces.v1.Guardrail updateGuardrail( + com.google.cloud.ces.v1.UpdateGuardrailRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateGuardrailMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Deletes the specified guardrail.
      +     * 
      + */ + public com.google.protobuf.Empty deleteGuardrail( + com.google.cloud.ces.v1.DeleteGuardrailRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteGuardrailMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Lists deployments in the given app.
      +     * 
      + */ + public com.google.cloud.ces.v1.ListDeploymentsResponse listDeployments( + com.google.cloud.ces.v1.ListDeploymentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDeploymentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Gets details of the specified deployment.
      +     * 
      + */ + public com.google.cloud.ces.v1.Deployment getDeployment( + com.google.cloud.ces.v1.GetDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Creates a new deployment in the given app.
      +     * 
      + */ + public com.google.cloud.ces.v1.Deployment createDeployment( + com.google.cloud.ces.v1.CreateDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Updates the specified deployment.
      +     * 
      + */ + public com.google.cloud.ces.v1.Deployment updateDeployment( + com.google.cloud.ces.v1.UpdateDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Deletes the specified deployment.
      +     * 
      + */ + public com.google.protobuf.Empty deleteDeployment( + com.google.cloud.ces.v1.DeleteDeploymentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDeploymentMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Lists toolsets in the given app.
      +     * 
      + */ + public com.google.cloud.ces.v1.ListToolsetsResponse listToolsets( + com.google.cloud.ces.v1.ListToolsetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListToolsetsMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Gets details of the specified toolset.
      +     * 
      + */ + public com.google.cloud.ces.v1.Toolset getToolset( + com.google.cloud.ces.v1.GetToolsetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetToolsetMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Creates a new toolset in the given app.
      +     * 
      + */ + public com.google.cloud.ces.v1.Toolset createToolset( + com.google.cloud.ces.v1.CreateToolsetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateToolsetMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Updates the specified toolset.
      +     * 
      + */ + public com.google.cloud.ces.v1.Toolset updateToolset( + com.google.cloud.ces.v1.UpdateToolsetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateToolsetMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Deletes the specified toolset.
      +     * 
      + */ + public com.google.protobuf.Empty deleteToolset( + com.google.cloud.ces.v1.DeleteToolsetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteToolsetMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Lists all app versions in the given app.
      +     * 
      + */ + public com.google.cloud.ces.v1.ListAppVersionsResponse listAppVersions( + com.google.cloud.ces.v1.ListAppVersionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAppVersionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Gets details of the specified app version.
      +     * 
      + */ + public com.google.cloud.ces.v1.AppVersion getAppVersion( + com.google.cloud.ces.v1.GetAppVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAppVersionMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Creates a new app version in the given app.
      +     * 
      + */ + public com.google.cloud.ces.v1.AppVersion createAppVersion( + com.google.cloud.ces.v1.CreateAppVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAppVersionMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Deletes the specified app version.
      +     * 
      + */ + public com.google.protobuf.Empty deleteAppVersion( + com.google.cloud.ces.v1.DeleteAppVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAppVersionMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Restores the specified app version.
      +     * This will create a new app version from the current draft app and overwrite
      +     * the current draft with the specified app version.
      +     * 
      + */ + public com.google.longrunning.Operation restoreAppVersion( + com.google.cloud.ces.v1.RestoreAppVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRestoreAppVersionMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Lists the changelogs of the specified app.
      +     * 
      + */ + public com.google.cloud.ces.v1.ListChangelogsResponse listChangelogs( + com.google.cloud.ces.v1.ListChangelogsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListChangelogsMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Gets the specified changelog.
      +     * 
      + */ + public com.google.cloud.ces.v1.Changelog getChangelog( + com.google.cloud.ces.v1.GetChangelogRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetChangelogMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service AgentService. + * + *
      +   * The service that manages agent-related resources in Gemini Enterprise for
      +   * Customer Engagement (CES).
      +   * 
      + */ + public static final class AgentServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AgentServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AgentServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
      +     * Lists apps in the given project and location.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.ces.v1.ListAppsResponse> + listApps(com.google.cloud.ces.v1.ListAppsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAppsMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Gets details of the specified app.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture getApp( + com.google.cloud.ces.v1.GetAppRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAppMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Creates a new app in the given project and location.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + createApp(com.google.cloud.ces.v1.CreateAppRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAppMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Updates the specified app.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + updateApp(com.google.cloud.ces.v1.UpdateAppRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAppMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Deletes the specified app.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + deleteApp(com.google.cloud.ces.v1.DeleteAppRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAppMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Exports the specified app.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + exportApp(com.google.cloud.ces.v1.ExportAppRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExportAppMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Imports the specified app.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + importApp(com.google.cloud.ces.v1.ImportAppRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getImportAppMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Lists agents in the given app.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.ces.v1.ListAgentsResponse> + listAgents(com.google.cloud.ces.v1.ListAgentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAgentsMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Gets details of the specified agent.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + getAgent(com.google.cloud.ces.v1.GetAgentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAgentMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Creates a new agent in the given app.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + createAgent(com.google.cloud.ces.v1.CreateAgentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAgentMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Updates the specified agent.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + updateAgent(com.google.cloud.ces.v1.UpdateAgentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAgentMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Deletes the specified agent.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + deleteAgent(com.google.cloud.ces.v1.DeleteAgentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAgentMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Lists examples in the given app.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.ces.v1.ListExamplesResponse> + listExamples(com.google.cloud.ces.v1.ListExamplesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListExamplesMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Gets details of the specified example.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + getExample(com.google.cloud.ces.v1.GetExampleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetExampleMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Creates a new example in the given app.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + createExample(com.google.cloud.ces.v1.CreateExampleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateExampleMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Updates the specified example.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + updateExample(com.google.cloud.ces.v1.UpdateExampleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateExampleMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Deletes the specified example.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + deleteExample(com.google.cloud.ces.v1.DeleteExampleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteExampleMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Lists tools in the given app.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.ces.v1.ListToolsResponse> + listTools(com.google.cloud.ces.v1.ListToolsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListToolsMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Gets details of the specified tool.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture getTool( + com.google.cloud.ces.v1.GetToolRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetToolMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Lists conversations in the given app.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.ces.v1.ListConversationsResponse> + listConversations(com.google.cloud.ces.v1.ListConversationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListConversationsMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Gets details of the specified conversation.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + getConversation(com.google.cloud.ces.v1.GetConversationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetConversationMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Deletes the specified conversation.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + deleteConversation(com.google.cloud.ces.v1.DeleteConversationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteConversationMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Batch deletes the specified conversations.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + batchDeleteConversations(com.google.cloud.ces.v1.BatchDeleteConversationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchDeleteConversationsMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Creates a new tool in the given app.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + createTool(com.google.cloud.ces.v1.CreateToolRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateToolMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Updates the specified tool.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + updateTool(com.google.cloud.ces.v1.UpdateToolRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateToolMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Deletes the specified tool.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture deleteTool( + com.google.cloud.ces.v1.DeleteToolRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteToolMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Lists guardrails in the given app.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.ces.v1.ListGuardrailsResponse> + listGuardrails(com.google.cloud.ces.v1.ListGuardrailsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListGuardrailsMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Gets details of the specified guardrail.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + getGuardrail(com.google.cloud.ces.v1.GetGuardrailRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetGuardrailMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Creates a new guardrail in the given app.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + createGuardrail(com.google.cloud.ces.v1.CreateGuardrailRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateGuardrailMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Updates the specified guardrail.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + updateGuardrail(com.google.cloud.ces.v1.UpdateGuardrailRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateGuardrailMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Deletes the specified guardrail.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + deleteGuardrail(com.google.cloud.ces.v1.DeleteGuardrailRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteGuardrailMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Lists deployments in the given app.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.ces.v1.ListDeploymentsResponse> + listDeployments(com.google.cloud.ces.v1.ListDeploymentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDeploymentsMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Gets details of the specified deployment.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + getDeployment(com.google.cloud.ces.v1.GetDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDeploymentMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Creates a new deployment in the given app.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + createDeployment(com.google.cloud.ces.v1.CreateDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDeploymentMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Updates the specified deployment.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + updateDeployment(com.google.cloud.ces.v1.UpdateDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDeploymentMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Deletes the specified deployment.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + deleteDeployment(com.google.cloud.ces.v1.DeleteDeploymentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDeploymentMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Lists toolsets in the given app.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.ces.v1.ListToolsetsResponse> + listToolsets(com.google.cloud.ces.v1.ListToolsetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListToolsetsMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Gets details of the specified toolset.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + getToolset(com.google.cloud.ces.v1.GetToolsetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetToolsetMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Creates a new toolset in the given app.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + createToolset(com.google.cloud.ces.v1.CreateToolsetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateToolsetMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Updates the specified toolset.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + updateToolset(com.google.cloud.ces.v1.UpdateToolsetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateToolsetMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Deletes the specified toolset.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + deleteToolset(com.google.cloud.ces.v1.DeleteToolsetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteToolsetMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Lists all app versions in the given app.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.ces.v1.ListAppVersionsResponse> + listAppVersions(com.google.cloud.ces.v1.ListAppVersionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAppVersionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Gets details of the specified app version.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + getAppVersion(com.google.cloud.ces.v1.GetAppVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAppVersionMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Creates a new app version in the given app.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + createAppVersion(com.google.cloud.ces.v1.CreateAppVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAppVersionMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Deletes the specified app version.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + deleteAppVersion(com.google.cloud.ces.v1.DeleteAppVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAppVersionMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Restores the specified app version.
      +     * This will create a new app version from the current draft app and overwrite
      +     * the current draft with the specified app version.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + restoreAppVersion(com.google.cloud.ces.v1.RestoreAppVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRestoreAppVersionMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Lists the changelogs of the specified app.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.ces.v1.ListChangelogsResponse> + listChangelogs(com.google.cloud.ces.v1.ListChangelogsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListChangelogsMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Gets the specified changelog.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture + getChangelog(com.google.cloud.ces.v1.GetChangelogRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetChangelogMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_APPS = 0; + private static final int METHODID_GET_APP = 1; + private static final int METHODID_CREATE_APP = 2; + private static final int METHODID_UPDATE_APP = 3; + private static final int METHODID_DELETE_APP = 4; + private static final int METHODID_EXPORT_APP = 5; + private static final int METHODID_IMPORT_APP = 6; + private static final int METHODID_LIST_AGENTS = 7; + private static final int METHODID_GET_AGENT = 8; + private static final int METHODID_CREATE_AGENT = 9; + private static final int METHODID_UPDATE_AGENT = 10; + private static final int METHODID_DELETE_AGENT = 11; + private static final int METHODID_LIST_EXAMPLES = 12; + private static final int METHODID_GET_EXAMPLE = 13; + private static final int METHODID_CREATE_EXAMPLE = 14; + private static final int METHODID_UPDATE_EXAMPLE = 15; + private static final int METHODID_DELETE_EXAMPLE = 16; + private static final int METHODID_LIST_TOOLS = 17; + private static final int METHODID_GET_TOOL = 18; + private static final int METHODID_LIST_CONVERSATIONS = 19; + private static final int METHODID_GET_CONVERSATION = 20; + private static final int METHODID_DELETE_CONVERSATION = 21; + private static final int METHODID_BATCH_DELETE_CONVERSATIONS = 22; + private static final int METHODID_CREATE_TOOL = 23; + private static final int METHODID_UPDATE_TOOL = 24; + private static final int METHODID_DELETE_TOOL = 25; + private static final int METHODID_LIST_GUARDRAILS = 26; + private static final int METHODID_GET_GUARDRAIL = 27; + private static final int METHODID_CREATE_GUARDRAIL = 28; + private static final int METHODID_UPDATE_GUARDRAIL = 29; + private static final int METHODID_DELETE_GUARDRAIL = 30; + private static final int METHODID_LIST_DEPLOYMENTS = 31; + private static final int METHODID_GET_DEPLOYMENT = 32; + private static final int METHODID_CREATE_DEPLOYMENT = 33; + private static final int METHODID_UPDATE_DEPLOYMENT = 34; + private static final int METHODID_DELETE_DEPLOYMENT = 35; + private static final int METHODID_LIST_TOOLSETS = 36; + private static final int METHODID_GET_TOOLSET = 37; + private static final int METHODID_CREATE_TOOLSET = 38; + private static final int METHODID_UPDATE_TOOLSET = 39; + private static final int METHODID_DELETE_TOOLSET = 40; + private static final int METHODID_LIST_APP_VERSIONS = 41; + private static final int METHODID_GET_APP_VERSION = 42; + private static final int METHODID_CREATE_APP_VERSION = 43; + private static final int METHODID_DELETE_APP_VERSION = 44; + private static final int METHODID_RESTORE_APP_VERSION = 45; + private static final int METHODID_LIST_CHANGELOGS = 46; + private static final int METHODID_GET_CHANGELOG = 47; + + 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_LIST_APPS: + serviceImpl.listApps( + (com.google.cloud.ces.v1.ListAppsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_APP: + serviceImpl.getApp( + (com.google.cloud.ces.v1.GetAppRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_APP: + serviceImpl.createApp( + (com.google.cloud.ces.v1.CreateAppRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_APP: + serviceImpl.updateApp( + (com.google.cloud.ces.v1.UpdateAppRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_APP: + serviceImpl.deleteApp( + (com.google.cloud.ces.v1.DeleteAppRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_EXPORT_APP: + serviceImpl.exportApp( + (com.google.cloud.ces.v1.ExportAppRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_IMPORT_APP: + serviceImpl.importApp( + (com.google.cloud.ces.v1.ImportAppRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_AGENTS: + serviceImpl.listAgents( + (com.google.cloud.ces.v1.ListAgentsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_AGENT: + serviceImpl.getAgent( + (com.google.cloud.ces.v1.GetAgentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_AGENT: + serviceImpl.createAgent( + (com.google.cloud.ces.v1.CreateAgentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_AGENT: + serviceImpl.updateAgent( + (com.google.cloud.ces.v1.UpdateAgentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_AGENT: + serviceImpl.deleteAgent( + (com.google.cloud.ces.v1.DeleteAgentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_EXAMPLES: + serviceImpl.listExamples( + (com.google.cloud.ces.v1.ListExamplesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_EXAMPLE: + serviceImpl.getExample( + (com.google.cloud.ces.v1.GetExampleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_EXAMPLE: + serviceImpl.createExample( + (com.google.cloud.ces.v1.CreateExampleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_EXAMPLE: + serviceImpl.updateExample( + (com.google.cloud.ces.v1.UpdateExampleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_EXAMPLE: + serviceImpl.deleteExample( + (com.google.cloud.ces.v1.DeleteExampleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_TOOLS: + serviceImpl.listTools( + (com.google.cloud.ces.v1.ListToolsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_TOOL: + serviceImpl.getTool( + (com.google.cloud.ces.v1.GetToolRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CONVERSATIONS: + serviceImpl.listConversations( + (com.google.cloud.ces.v1.ListConversationsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_CONVERSATION: + serviceImpl.getConversation( + (com.google.cloud.ces.v1.GetConversationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CONVERSATION: + serviceImpl.deleteConversation( + (com.google.cloud.ces.v1.DeleteConversationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_BATCH_DELETE_CONVERSATIONS: + serviceImpl.batchDeleteConversations( + (com.google.cloud.ces.v1.BatchDeleteConversationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_TOOL: + serviceImpl.createTool( + (com.google.cloud.ces.v1.CreateToolRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_TOOL: + serviceImpl.updateTool( + (com.google.cloud.ces.v1.UpdateToolRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_TOOL: + serviceImpl.deleteTool( + (com.google.cloud.ces.v1.DeleteToolRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_GUARDRAILS: + serviceImpl.listGuardrails( + (com.google.cloud.ces.v1.ListGuardrailsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_GUARDRAIL: + serviceImpl.getGuardrail( + (com.google.cloud.ces.v1.GetGuardrailRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_GUARDRAIL: + serviceImpl.createGuardrail( + (com.google.cloud.ces.v1.CreateGuardrailRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_GUARDRAIL: + serviceImpl.updateGuardrail( + (com.google.cloud.ces.v1.UpdateGuardrailRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_GUARDRAIL: + serviceImpl.deleteGuardrail( + (com.google.cloud.ces.v1.DeleteGuardrailRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_DEPLOYMENTS: + serviceImpl.listDeployments( + (com.google.cloud.ces.v1.ListDeploymentsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_DEPLOYMENT: + serviceImpl.getDeployment( + (com.google.cloud.ces.v1.GetDeploymentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_DEPLOYMENT: + serviceImpl.createDeployment( + (com.google.cloud.ces.v1.CreateDeploymentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_DEPLOYMENT: + serviceImpl.updateDeployment( + (com.google.cloud.ces.v1.UpdateDeploymentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_DEPLOYMENT: + serviceImpl.deleteDeployment( + (com.google.cloud.ces.v1.DeleteDeploymentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_TOOLSETS: + serviceImpl.listToolsets( + (com.google.cloud.ces.v1.ListToolsetsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_TOOLSET: + serviceImpl.getToolset( + (com.google.cloud.ces.v1.GetToolsetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_TOOLSET: + serviceImpl.createToolset( + (com.google.cloud.ces.v1.CreateToolsetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_TOOLSET: + serviceImpl.updateToolset( + (com.google.cloud.ces.v1.UpdateToolsetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_TOOLSET: + serviceImpl.deleteToolset( + (com.google.cloud.ces.v1.DeleteToolsetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_APP_VERSIONS: + serviceImpl.listAppVersions( + (com.google.cloud.ces.v1.ListAppVersionsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_APP_VERSION: + serviceImpl.getAppVersion( + (com.google.cloud.ces.v1.GetAppVersionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_APP_VERSION: + serviceImpl.createAppVersion( + (com.google.cloud.ces.v1.CreateAppVersionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_APP_VERSION: + serviceImpl.deleteAppVersion( + (com.google.cloud.ces.v1.DeleteAppVersionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESTORE_APP_VERSION: + serviceImpl.restoreAppVersion( + (com.google.cloud.ces.v1.RestoreAppVersionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CHANGELOGS: + serviceImpl.listChangelogs( + (com.google.cloud.ces.v1.ListChangelogsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_CHANGELOG: + serviceImpl.getChangelog( + (com.google.cloud.ces.v1.GetChangelogRequest) 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( + getListAppsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.ListAppsRequest, + com.google.cloud.ces.v1.ListAppsResponse>(service, METHODID_LIST_APPS))) + .addMethod( + getGetAppMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.GetAppRequest, com.google.cloud.ces.v1.App>( + service, METHODID_GET_APP))) + .addMethod( + getCreateAppMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.CreateAppRequest, com.google.longrunning.Operation>( + service, METHODID_CREATE_APP))) + .addMethod( + getUpdateAppMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.UpdateAppRequest, com.google.cloud.ces.v1.App>( + service, METHODID_UPDATE_APP))) + .addMethod( + getDeleteAppMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.DeleteAppRequest, com.google.longrunning.Operation>( + service, METHODID_DELETE_APP))) + .addMethod( + getExportAppMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.ExportAppRequest, com.google.longrunning.Operation>( + service, METHODID_EXPORT_APP))) + .addMethod( + getImportAppMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.ImportAppRequest, com.google.longrunning.Operation>( + service, METHODID_IMPORT_APP))) + .addMethod( + getListAgentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.ListAgentsRequest, + com.google.cloud.ces.v1.ListAgentsResponse>(service, METHODID_LIST_AGENTS))) + .addMethod( + getGetAgentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.GetAgentRequest, com.google.cloud.ces.v1.Agent>( + service, METHODID_GET_AGENT))) + .addMethod( + getCreateAgentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.CreateAgentRequest, com.google.cloud.ces.v1.Agent>( + service, METHODID_CREATE_AGENT))) + .addMethod( + getUpdateAgentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.UpdateAgentRequest, com.google.cloud.ces.v1.Agent>( + service, METHODID_UPDATE_AGENT))) + .addMethod( + getDeleteAgentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.DeleteAgentRequest, com.google.protobuf.Empty>( + service, METHODID_DELETE_AGENT))) + .addMethod( + getListExamplesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.ListExamplesRequest, + com.google.cloud.ces.v1.ListExamplesResponse>(service, METHODID_LIST_EXAMPLES))) + .addMethod( + getGetExampleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.GetExampleRequest, com.google.cloud.ces.v1.Example>( + service, METHODID_GET_EXAMPLE))) + .addMethod( + getCreateExampleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.CreateExampleRequest, com.google.cloud.ces.v1.Example>( + service, METHODID_CREATE_EXAMPLE))) + .addMethod( + getUpdateExampleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.UpdateExampleRequest, com.google.cloud.ces.v1.Example>( + service, METHODID_UPDATE_EXAMPLE))) + .addMethod( + getDeleteExampleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.DeleteExampleRequest, com.google.protobuf.Empty>( + service, METHODID_DELETE_EXAMPLE))) + .addMethod( + getListToolsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.ListToolsRequest, + com.google.cloud.ces.v1.ListToolsResponse>(service, METHODID_LIST_TOOLS))) + .addMethod( + getGetToolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.GetToolRequest, com.google.cloud.ces.v1.Tool>( + service, METHODID_GET_TOOL))) + .addMethod( + getListConversationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.ListConversationsRequest, + com.google.cloud.ces.v1.ListConversationsResponse>( + service, METHODID_LIST_CONVERSATIONS))) + .addMethod( + getGetConversationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.GetConversationRequest, + com.google.cloud.ces.v1.Conversation>(service, METHODID_GET_CONVERSATION))) + .addMethod( + getDeleteConversationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.DeleteConversationRequest, com.google.protobuf.Empty>( + service, METHODID_DELETE_CONVERSATION))) + .addMethod( + getBatchDeleteConversationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.BatchDeleteConversationsRequest, + com.google.longrunning.Operation>( + service, METHODID_BATCH_DELETE_CONVERSATIONS))) + .addMethod( + getCreateToolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.CreateToolRequest, com.google.cloud.ces.v1.Tool>( + service, METHODID_CREATE_TOOL))) + .addMethod( + getUpdateToolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.UpdateToolRequest, com.google.cloud.ces.v1.Tool>( + service, METHODID_UPDATE_TOOL))) + .addMethod( + getDeleteToolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.DeleteToolRequest, com.google.protobuf.Empty>( + service, METHODID_DELETE_TOOL))) + .addMethod( + getListGuardrailsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.ListGuardrailsRequest, + com.google.cloud.ces.v1.ListGuardrailsResponse>( + service, METHODID_LIST_GUARDRAILS))) + .addMethod( + getGetGuardrailMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.GetGuardrailRequest, com.google.cloud.ces.v1.Guardrail>( + service, METHODID_GET_GUARDRAIL))) + .addMethod( + getCreateGuardrailMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.CreateGuardrailRequest, + com.google.cloud.ces.v1.Guardrail>(service, METHODID_CREATE_GUARDRAIL))) + .addMethod( + getUpdateGuardrailMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.UpdateGuardrailRequest, + com.google.cloud.ces.v1.Guardrail>(service, METHODID_UPDATE_GUARDRAIL))) + .addMethod( + getDeleteGuardrailMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.DeleteGuardrailRequest, com.google.protobuf.Empty>( + service, METHODID_DELETE_GUARDRAIL))) + .addMethod( + getListDeploymentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.ListDeploymentsRequest, + com.google.cloud.ces.v1.ListDeploymentsResponse>( + service, METHODID_LIST_DEPLOYMENTS))) + .addMethod( + getGetDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.GetDeploymentRequest, + com.google.cloud.ces.v1.Deployment>(service, METHODID_GET_DEPLOYMENT))) + .addMethod( + getCreateDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.CreateDeploymentRequest, + com.google.cloud.ces.v1.Deployment>(service, METHODID_CREATE_DEPLOYMENT))) + .addMethod( + getUpdateDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.UpdateDeploymentRequest, + com.google.cloud.ces.v1.Deployment>(service, METHODID_UPDATE_DEPLOYMENT))) + .addMethod( + getDeleteDeploymentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.DeleteDeploymentRequest, com.google.protobuf.Empty>( + service, METHODID_DELETE_DEPLOYMENT))) + .addMethod( + getListToolsetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.ListToolsetsRequest, + com.google.cloud.ces.v1.ListToolsetsResponse>(service, METHODID_LIST_TOOLSETS))) + .addMethod( + getGetToolsetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.GetToolsetRequest, com.google.cloud.ces.v1.Toolset>( + service, METHODID_GET_TOOLSET))) + .addMethod( + getCreateToolsetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.CreateToolsetRequest, com.google.cloud.ces.v1.Toolset>( + service, METHODID_CREATE_TOOLSET))) + .addMethod( + getUpdateToolsetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.UpdateToolsetRequest, com.google.cloud.ces.v1.Toolset>( + service, METHODID_UPDATE_TOOLSET))) + .addMethod( + getDeleteToolsetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.DeleteToolsetRequest, com.google.protobuf.Empty>( + service, METHODID_DELETE_TOOLSET))) + .addMethod( + getListAppVersionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.ListAppVersionsRequest, + com.google.cloud.ces.v1.ListAppVersionsResponse>( + service, METHODID_LIST_APP_VERSIONS))) + .addMethod( + getGetAppVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.GetAppVersionRequest, + com.google.cloud.ces.v1.AppVersion>(service, METHODID_GET_APP_VERSION))) + .addMethod( + getCreateAppVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.CreateAppVersionRequest, + com.google.cloud.ces.v1.AppVersion>(service, METHODID_CREATE_APP_VERSION))) + .addMethod( + getDeleteAppVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.DeleteAppVersionRequest, com.google.protobuf.Empty>( + service, METHODID_DELETE_APP_VERSION))) + .addMethod( + getRestoreAppVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.RestoreAppVersionRequest, + com.google.longrunning.Operation>(service, METHODID_RESTORE_APP_VERSION))) + .addMethod( + getListChangelogsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.ListChangelogsRequest, + com.google.cloud.ces.v1.ListChangelogsResponse>( + service, METHODID_LIST_CHANGELOGS))) + .addMethod( + getGetChangelogMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.GetChangelogRequest, com.google.cloud.ces.v1.Changelog>( + service, METHODID_GET_CHANGELOG))) + .build(); + } + + private abstract static class AgentServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AgentServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AgentService"); + } + } + + private static final class AgentServiceFileDescriptorSupplier + extends AgentServiceBaseDescriptorSupplier { + AgentServiceFileDescriptorSupplier() {} + } + + private static final class AgentServiceMethodDescriptorSupplier + extends AgentServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + AgentServiceMethodDescriptorSupplier(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 (AgentServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AgentServiceFileDescriptorSupplier()) + .addMethod(getListAppsMethod()) + .addMethod(getGetAppMethod()) + .addMethod(getCreateAppMethod()) + .addMethod(getUpdateAppMethod()) + .addMethod(getDeleteAppMethod()) + .addMethod(getExportAppMethod()) + .addMethod(getImportAppMethod()) + .addMethod(getListAgentsMethod()) + .addMethod(getGetAgentMethod()) + .addMethod(getCreateAgentMethod()) + .addMethod(getUpdateAgentMethod()) + .addMethod(getDeleteAgentMethod()) + .addMethod(getListExamplesMethod()) + .addMethod(getGetExampleMethod()) + .addMethod(getCreateExampleMethod()) + .addMethod(getUpdateExampleMethod()) + .addMethod(getDeleteExampleMethod()) + .addMethod(getListToolsMethod()) + .addMethod(getGetToolMethod()) + .addMethod(getListConversationsMethod()) + .addMethod(getGetConversationMethod()) + .addMethod(getDeleteConversationMethod()) + .addMethod(getBatchDeleteConversationsMethod()) + .addMethod(getCreateToolMethod()) + .addMethod(getUpdateToolMethod()) + .addMethod(getDeleteToolMethod()) + .addMethod(getListGuardrailsMethod()) + .addMethod(getGetGuardrailMethod()) + .addMethod(getCreateGuardrailMethod()) + .addMethod(getUpdateGuardrailMethod()) + .addMethod(getDeleteGuardrailMethod()) + .addMethod(getListDeploymentsMethod()) + .addMethod(getGetDeploymentMethod()) + .addMethod(getCreateDeploymentMethod()) + .addMethod(getUpdateDeploymentMethod()) + .addMethod(getDeleteDeploymentMethod()) + .addMethod(getListToolsetsMethod()) + .addMethod(getGetToolsetMethod()) + .addMethod(getCreateToolsetMethod()) + .addMethod(getUpdateToolsetMethod()) + .addMethod(getDeleteToolsetMethod()) + .addMethod(getListAppVersionsMethod()) + .addMethod(getGetAppVersionMethod()) + .addMethod(getCreateAppVersionMethod()) + .addMethod(getDeleteAppVersionMethod()) + .addMethod(getRestoreAppVersionMethod()) + .addMethod(getListChangelogsMethod()) + .addMethod(getGetChangelogMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-ces/grpc-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionServiceGrpc.java b/java-ces/grpc-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionServiceGrpc.java new file mode 100644 index 000000000000..25719a3a9315 --- /dev/null +++ b/java-ces/grpc-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionServiceGrpc.java @@ -0,0 +1,677 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.ces.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
      + * Session service provides APIs for interacting with CES agents.
      + * 
      + */ +@io.grpc.stub.annotations.GrpcGenerated +public final class SessionServiceGrpc { + + private SessionServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.ces.v1.SessionService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.RunSessionRequest, com.google.cloud.ces.v1.RunSessionResponse> + getRunSessionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RunSession", + requestType = com.google.cloud.ces.v1.RunSessionRequest.class, + responseType = com.google.cloud.ces.v1.RunSessionResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.RunSessionRequest, com.google.cloud.ces.v1.RunSessionResponse> + getRunSessionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.RunSessionRequest, com.google.cloud.ces.v1.RunSessionResponse> + getRunSessionMethod; + if ((getRunSessionMethod = SessionServiceGrpc.getRunSessionMethod) == null) { + synchronized (SessionServiceGrpc.class) { + if ((getRunSessionMethod = SessionServiceGrpc.getRunSessionMethod) == null) { + SessionServiceGrpc.getRunSessionMethod = + getRunSessionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunSession")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.RunSessionRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.RunSessionResponse.getDefaultInstance())) + .setSchemaDescriptor(new SessionServiceMethodDescriptorSupplier("RunSession")) + .build(); + } + } + } + return getRunSessionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.BidiSessionClientMessage, + com.google.cloud.ces.v1.BidiSessionServerMessage> + getBidiRunSessionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BidiRunSession", + requestType = com.google.cloud.ces.v1.BidiSessionClientMessage.class, + responseType = com.google.cloud.ces.v1.BidiSessionServerMessage.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.BidiSessionClientMessage, + com.google.cloud.ces.v1.BidiSessionServerMessage> + getBidiRunSessionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.BidiSessionClientMessage, + com.google.cloud.ces.v1.BidiSessionServerMessage> + getBidiRunSessionMethod; + if ((getBidiRunSessionMethod = SessionServiceGrpc.getBidiRunSessionMethod) == null) { + synchronized (SessionServiceGrpc.class) { + if ((getBidiRunSessionMethod = SessionServiceGrpc.getBidiRunSessionMethod) == null) { + SessionServiceGrpc.getBidiRunSessionMethod = + getBidiRunSessionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BidiRunSession")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.BidiSessionClientMessage + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.BidiSessionServerMessage + .getDefaultInstance())) + .setSchemaDescriptor( + new SessionServiceMethodDescriptorSupplier("BidiRunSession")) + .build(); + } + } + } + return getBidiRunSessionMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static SessionServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SessionServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SessionServiceStub(channel, callOptions); + } + }; + return SessionServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static SessionServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SessionServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SessionServiceBlockingV2Stub(channel, callOptions); + } + }; + return SessionServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SessionServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SessionServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SessionServiceBlockingStub(channel, callOptions); + } + }; + return SessionServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static SessionServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SessionServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SessionServiceFutureStub(channel, callOptions); + } + }; + return SessionServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
      +   * Session service provides APIs for interacting with CES agents.
      +   * 
      + */ + public interface AsyncService { + + /** + * + * + *
      +     * Initiates a single turn interaction with the CES agent within a
      +     * session.
      +     * 
      + */ + default void runSession( + com.google.cloud.ces.v1.RunSessionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRunSessionMethod(), responseObserver); + } + + /** + * + * + *
      +     * Establishes a bidirectional streaming connection with the CES agent.
      +     * The agent processes continuous multimodal inputs (e.g., text, audio) and
      +     * generates real-time multimodal output streams.
      +     * --- Client Request Stream ---
      +     * The client streams requests in the following order:
      +     * 1.  Initialization:
      +     *     The first message must contain
      +     *     [SessionConfig][google.cloud.ces.v1.BidiSessionClientMessage.config].
      +     *     For audio sessions, this should also include
      +     *     [InputAudioConfig][google.cloud.ces.v1.SessionConfig.input_audio_config]
      +     *     and
      +     *     [OutputAudioConfig][google.cloud.ces.v1.SessionConfig.output_audio_config]
      +     *     to define audio processing and synthesis parameters.
      +     * 2.  Interaction:
      +     *     Subsequent messages stream
      +     *     [SessionInput][google.cloud.ces.v1.BidiSessionClientMessage.realtime_input]
      +     *     containing real-time user input data.
      +     * 3.  Termination:
      +     *     The client should half-close the stream when there is no more user
      +     *     input. It should also half-close upon receiving
      +     *     [EndSession][google.cloud.ces.v1.BidiSessionServerMessage.end_session]
      +     *     or [GoAway][google.cloud.ces.v1.BidiSessionServerMessage.go_away] from
      +     *     the agent.
      +     * --- Server Response Stream ---
      +     * For each interaction turn, the agent streams messages in the following
      +     * sequence:
      +     * 1.  Speech Recognition (First N messages):
      +     *     Contains
      +     *     [RecognitionResult][google.cloud.ces.v1.BidiSessionServerMessage.recognition_result]
      +     *     representing the concatenated user speech segments captured so far.
      +     *     This is only populated for audio sessions.
      +     * 2.  Response (Next M messages):
      +     *     Contains
      +     *     [SessionOutput][google.cloud.ces.v1.BidiSessionServerMessage.session_output]
      +     *     delivering the agent's response in various modalities (e.g., text,
      +     *     audio).
      +     * 3.  Turn Completion (Final message of the turn):
      +     *     Contains
      +     *     [SessionOutput][google.cloud.ces.v1.BidiSessionServerMessage.session_output]
      +     *     with [turn_completed][google.cloud.ces.v1.SessionOutput.turn_completed]
      +     *     set to true. This signals the end of the current turn and includes
      +     *     [DiagnosticInfo][google.cloud.ces.v1.SessionOutput.diagnostic_info]
      +     *     with execution details.
      +     * --- Audio Best Practices ---
      +     * 1.  Streaming:
      +     *     Stream [audio data][google.cloud.ces.v1.SessionInput.audio]
      +     *     **CONTINUOUSLY**, even during silence. Recommended chunk size: 40-120ms
      +     *     (balances latency vs. efficiency).
      +     * 2.  Playback & Interruption:
      +     *     Play [audio responses][google.cloud.ces.v1.SessionOutput.audio] upon
      +     *     receipt. Stop playback immediately if an
      +     *     [InterruptionSignal][google.cloud.ces.v1.BidiSessionServerMessage.interruption_signal]
      +     *     is received (e.g., user barge-in or new agent response).
      +     * 
      + */ + default io.grpc.stub.StreamObserver + bidiRunSession( + io.grpc.stub.StreamObserver + responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getBidiRunSessionMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service SessionService. + * + *
      +   * Session service provides APIs for interacting with CES agents.
      +   * 
      + */ + public abstract static class SessionServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return SessionServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service SessionService. + * + *
      +   * Session service provides APIs for interacting with CES agents.
      +   * 
      + */ + public static final class SessionServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private SessionServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SessionServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SessionServiceStub(channel, callOptions); + } + + /** + * + * + *
      +     * Initiates a single turn interaction with the CES agent within a
      +     * session.
      +     * 
      + */ + public void runSession( + com.google.cloud.ces.v1.RunSessionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRunSessionMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
      +     * Establishes a bidirectional streaming connection with the CES agent.
      +     * The agent processes continuous multimodal inputs (e.g., text, audio) and
      +     * generates real-time multimodal output streams.
      +     * --- Client Request Stream ---
      +     * The client streams requests in the following order:
      +     * 1.  Initialization:
      +     *     The first message must contain
      +     *     [SessionConfig][google.cloud.ces.v1.BidiSessionClientMessage.config].
      +     *     For audio sessions, this should also include
      +     *     [InputAudioConfig][google.cloud.ces.v1.SessionConfig.input_audio_config]
      +     *     and
      +     *     [OutputAudioConfig][google.cloud.ces.v1.SessionConfig.output_audio_config]
      +     *     to define audio processing and synthesis parameters.
      +     * 2.  Interaction:
      +     *     Subsequent messages stream
      +     *     [SessionInput][google.cloud.ces.v1.BidiSessionClientMessage.realtime_input]
      +     *     containing real-time user input data.
      +     * 3.  Termination:
      +     *     The client should half-close the stream when there is no more user
      +     *     input. It should also half-close upon receiving
      +     *     [EndSession][google.cloud.ces.v1.BidiSessionServerMessage.end_session]
      +     *     or [GoAway][google.cloud.ces.v1.BidiSessionServerMessage.go_away] from
      +     *     the agent.
      +     * --- Server Response Stream ---
      +     * For each interaction turn, the agent streams messages in the following
      +     * sequence:
      +     * 1.  Speech Recognition (First N messages):
      +     *     Contains
      +     *     [RecognitionResult][google.cloud.ces.v1.BidiSessionServerMessage.recognition_result]
      +     *     representing the concatenated user speech segments captured so far.
      +     *     This is only populated for audio sessions.
      +     * 2.  Response (Next M messages):
      +     *     Contains
      +     *     [SessionOutput][google.cloud.ces.v1.BidiSessionServerMessage.session_output]
      +     *     delivering the agent's response in various modalities (e.g., text,
      +     *     audio).
      +     * 3.  Turn Completion (Final message of the turn):
      +     *     Contains
      +     *     [SessionOutput][google.cloud.ces.v1.BidiSessionServerMessage.session_output]
      +     *     with [turn_completed][google.cloud.ces.v1.SessionOutput.turn_completed]
      +     *     set to true. This signals the end of the current turn and includes
      +     *     [DiagnosticInfo][google.cloud.ces.v1.SessionOutput.diagnostic_info]
      +     *     with execution details.
      +     * --- Audio Best Practices ---
      +     * 1.  Streaming:
      +     *     Stream [audio data][google.cloud.ces.v1.SessionInput.audio]
      +     *     **CONTINUOUSLY**, even during silence. Recommended chunk size: 40-120ms
      +     *     (balances latency vs. efficiency).
      +     * 2.  Playback & Interruption:
      +     *     Play [audio responses][google.cloud.ces.v1.SessionOutput.audio] upon
      +     *     receipt. Stop playback immediately if an
      +     *     [InterruptionSignal][google.cloud.ces.v1.BidiSessionServerMessage.interruption_signal]
      +     *     is received (e.g., user barge-in or new agent response).
      +     * 
      + */ + public io.grpc.stub.StreamObserver + bidiRunSession( + io.grpc.stub.StreamObserver + responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getBidiRunSessionMethod(), getCallOptions()), responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service SessionService. + * + *
      +   * Session service provides APIs for interacting with CES agents.
      +   * 
      + */ + public static final class SessionServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private SessionServiceBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SessionServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SessionServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
      +     * Initiates a single turn interaction with the CES agent within a
      +     * session.
      +     * 
      + */ + public com.google.cloud.ces.v1.RunSessionResponse runSession( + com.google.cloud.ces.v1.RunSessionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getRunSessionMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Establishes a bidirectional streaming connection with the CES agent.
      +     * The agent processes continuous multimodal inputs (e.g., text, audio) and
      +     * generates real-time multimodal output streams.
      +     * --- Client Request Stream ---
      +     * The client streams requests in the following order:
      +     * 1.  Initialization:
      +     *     The first message must contain
      +     *     [SessionConfig][google.cloud.ces.v1.BidiSessionClientMessage.config].
      +     *     For audio sessions, this should also include
      +     *     [InputAudioConfig][google.cloud.ces.v1.SessionConfig.input_audio_config]
      +     *     and
      +     *     [OutputAudioConfig][google.cloud.ces.v1.SessionConfig.output_audio_config]
      +     *     to define audio processing and synthesis parameters.
      +     * 2.  Interaction:
      +     *     Subsequent messages stream
      +     *     [SessionInput][google.cloud.ces.v1.BidiSessionClientMessage.realtime_input]
      +     *     containing real-time user input data.
      +     * 3.  Termination:
      +     *     The client should half-close the stream when there is no more user
      +     *     input. It should also half-close upon receiving
      +     *     [EndSession][google.cloud.ces.v1.BidiSessionServerMessage.end_session]
      +     *     or [GoAway][google.cloud.ces.v1.BidiSessionServerMessage.go_away] from
      +     *     the agent.
      +     * --- Server Response Stream ---
      +     * For each interaction turn, the agent streams messages in the following
      +     * sequence:
      +     * 1.  Speech Recognition (First N messages):
      +     *     Contains
      +     *     [RecognitionResult][google.cloud.ces.v1.BidiSessionServerMessage.recognition_result]
      +     *     representing the concatenated user speech segments captured so far.
      +     *     This is only populated for audio sessions.
      +     * 2.  Response (Next M messages):
      +     *     Contains
      +     *     [SessionOutput][google.cloud.ces.v1.BidiSessionServerMessage.session_output]
      +     *     delivering the agent's response in various modalities (e.g., text,
      +     *     audio).
      +     * 3.  Turn Completion (Final message of the turn):
      +     *     Contains
      +     *     [SessionOutput][google.cloud.ces.v1.BidiSessionServerMessage.session_output]
      +     *     with [turn_completed][google.cloud.ces.v1.SessionOutput.turn_completed]
      +     *     set to true. This signals the end of the current turn and includes
      +     *     [DiagnosticInfo][google.cloud.ces.v1.SessionOutput.diagnostic_info]
      +     *     with execution details.
      +     * --- Audio Best Practices ---
      +     * 1.  Streaming:
      +     *     Stream [audio data][google.cloud.ces.v1.SessionInput.audio]
      +     *     **CONTINUOUSLY**, even during silence. Recommended chunk size: 40-120ms
      +     *     (balances latency vs. efficiency).
      +     * 2.  Playback & Interruption:
      +     *     Play [audio responses][google.cloud.ces.v1.SessionOutput.audio] upon
      +     *     receipt. Stop playback immediately if an
      +     *     [InterruptionSignal][google.cloud.ces.v1.BidiSessionServerMessage.interruption_signal]
      +     *     is received (e.g., user barge-in or new agent response).
      +     * 
      + */ + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") + public io.grpc.stub.BlockingClientCall< + com.google.cloud.ces.v1.BidiSessionClientMessage, + com.google.cloud.ces.v1.BidiSessionServerMessage> + bidiRunSession() { + return io.grpc.stub.ClientCalls.blockingBidiStreamingCall( + getChannel(), getBidiRunSessionMethod(), getCallOptions()); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service SessionService. + * + *
      +   * Session service provides APIs for interacting with CES agents.
      +   * 
      + */ + public static final class SessionServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SessionServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SessionServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SessionServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
      +     * Initiates a single turn interaction with the CES agent within a
      +     * session.
      +     * 
      + */ + public com.google.cloud.ces.v1.RunSessionResponse runSession( + com.google.cloud.ces.v1.RunSessionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRunSessionMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service SessionService. + * + *
      +   * Session service provides APIs for interacting with CES agents.
      +   * 
      + */ + public static final class SessionServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private SessionServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SessionServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SessionServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
      +     * Initiates a single turn interaction with the CES agent within a
      +     * session.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.ces.v1.RunSessionResponse> + runSession(com.google.cloud.ces.v1.RunSessionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRunSessionMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_RUN_SESSION = 0; + private static final int METHODID_BIDI_RUN_SESSION = 1; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final 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_RUN_SESSION: + serviceImpl.runSession( + (com.google.cloud.ces.v1.RunSessionRequest) 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_BIDI_RUN_SESSION: + return (io.grpc.stub.StreamObserver) + serviceImpl.bidiRunSession( + (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( + getRunSessionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.RunSessionRequest, + com.google.cloud.ces.v1.RunSessionResponse>(service, METHODID_RUN_SESSION))) + .addMethod( + getBidiRunSessionMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.ces.v1.BidiSessionClientMessage, + com.google.cloud.ces.v1.BidiSessionServerMessage>( + service, METHODID_BIDI_RUN_SESSION))) + .build(); + } + + private abstract static class SessionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SessionServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SessionService"); + } + } + + private static final class SessionServiceFileDescriptorSupplier + extends SessionServiceBaseDescriptorSupplier { + SessionServiceFileDescriptorSupplier() {} + } + + private static final class SessionServiceMethodDescriptorSupplier + extends SessionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + SessionServiceMethodDescriptorSupplier(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 (SessionServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SessionServiceFileDescriptorSupplier()) + .addMethod(getRunSessionMethod()) + .addMethod(getBidiRunSessionMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-ces/grpc-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolServiceGrpc.java b/java-ces/grpc-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolServiceGrpc.java new file mode 100644 index 000000000000..05bbb93436de --- /dev/null +++ b/java-ces/grpc-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolServiceGrpc.java @@ -0,0 +1,681 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.ces.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
      + * Tool service provides APIs for interacting with CES tools.
      + * 
      + */ +@io.grpc.stub.annotations.GrpcGenerated +public final class ToolServiceGrpc { + + private ToolServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.ces.v1.ToolService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ExecuteToolRequest, com.google.cloud.ces.v1.ExecuteToolResponse> + getExecuteToolMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExecuteTool", + requestType = com.google.cloud.ces.v1.ExecuteToolRequest.class, + responseType = com.google.cloud.ces.v1.ExecuteToolResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ExecuteToolRequest, com.google.cloud.ces.v1.ExecuteToolResponse> + getExecuteToolMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.ExecuteToolRequest, com.google.cloud.ces.v1.ExecuteToolResponse> + getExecuteToolMethod; + if ((getExecuteToolMethod = ToolServiceGrpc.getExecuteToolMethod) == null) { + synchronized (ToolServiceGrpc.class) { + if ((getExecuteToolMethod = ToolServiceGrpc.getExecuteToolMethod) == null) { + ToolServiceGrpc.getExecuteToolMethod = + getExecuteToolMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExecuteTool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.ExecuteToolRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.ExecuteToolResponse.getDefaultInstance())) + .setSchemaDescriptor(new ToolServiceMethodDescriptorSupplier("ExecuteTool")) + .build(); + } + } + } + return getExecuteToolMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.RetrieveToolSchemaRequest, + com.google.cloud.ces.v1.RetrieveToolSchemaResponse> + getRetrieveToolSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RetrieveToolSchema", + requestType = com.google.cloud.ces.v1.RetrieveToolSchemaRequest.class, + responseType = com.google.cloud.ces.v1.RetrieveToolSchemaResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.RetrieveToolSchemaRequest, + com.google.cloud.ces.v1.RetrieveToolSchemaResponse> + getRetrieveToolSchemaMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.RetrieveToolSchemaRequest, + com.google.cloud.ces.v1.RetrieveToolSchemaResponse> + getRetrieveToolSchemaMethod; + if ((getRetrieveToolSchemaMethod = ToolServiceGrpc.getRetrieveToolSchemaMethod) == null) { + synchronized (ToolServiceGrpc.class) { + if ((getRetrieveToolSchemaMethod = ToolServiceGrpc.getRetrieveToolSchemaMethod) == null) { + ToolServiceGrpc.getRetrieveToolSchemaMethod = + getRetrieveToolSchemaMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RetrieveToolSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.RetrieveToolSchemaRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.RetrieveToolSchemaResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ToolServiceMethodDescriptorSupplier("RetrieveToolSchema")) + .build(); + } + } + } + return getRetrieveToolSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.RetrieveToolsRequest, + com.google.cloud.ces.v1.RetrieveToolsResponse> + getRetrieveToolsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RetrieveTools", + requestType = com.google.cloud.ces.v1.RetrieveToolsRequest.class, + responseType = com.google.cloud.ces.v1.RetrieveToolsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.RetrieveToolsRequest, + com.google.cloud.ces.v1.RetrieveToolsResponse> + getRetrieveToolsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.RetrieveToolsRequest, + com.google.cloud.ces.v1.RetrieveToolsResponse> + getRetrieveToolsMethod; + if ((getRetrieveToolsMethod = ToolServiceGrpc.getRetrieveToolsMethod) == null) { + synchronized (ToolServiceGrpc.class) { + if ((getRetrieveToolsMethod = ToolServiceGrpc.getRetrieveToolsMethod) == null) { + ToolServiceGrpc.getRetrieveToolsMethod = + getRetrieveToolsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RetrieveTools")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.RetrieveToolsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.RetrieveToolsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ToolServiceMethodDescriptorSupplier("RetrieveTools")) + .build(); + } + } + } + return getRetrieveToolsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static ToolServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ToolServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ToolServiceStub(channel, callOptions); + } + }; + return ToolServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static ToolServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ToolServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ToolServiceBlockingV2Stub(channel, callOptions); + } + }; + return ToolServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ToolServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ToolServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ToolServiceBlockingStub(channel, callOptions); + } + }; + return ToolServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ToolServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ToolServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ToolServiceFutureStub(channel, callOptions); + } + }; + return ToolServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
      +   * Tool service provides APIs for interacting with CES tools.
      +   * 
      + */ + public interface AsyncService { + + /** + * + * + *
      +     * Executes the given tool with the given arguments.
      +     * 
      + */ + default void executeTool( + com.google.cloud.ces.v1.ExecuteToolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExecuteToolMethod(), responseObserver); + } + + /** + * + * + *
      +     * Retrieve the schema of the given tool. The schema is computed on the fly
      +     * for the given instance of the tool.
      +     * 
      + */ + default void retrieveToolSchema( + com.google.cloud.ces.v1.RetrieveToolSchemaRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRetrieveToolSchemaMethod(), responseObserver); + } + + /** + * + * + *
      +     * Retrieve the list of tools included in the specified toolset.
      +     * 
      + */ + default void retrieveTools( + com.google.cloud.ces.v1.RetrieveToolsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRetrieveToolsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service ToolService. + * + *
      +   * Tool service provides APIs for interacting with CES tools.
      +   * 
      + */ + public abstract static class ToolServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return ToolServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service ToolService. + * + *
      +   * Tool service provides APIs for interacting with CES tools.
      +   * 
      + */ + public static final class ToolServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private ToolServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ToolServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ToolServiceStub(channel, callOptions); + } + + /** + * + * + *
      +     * Executes the given tool with the given arguments.
      +     * 
      + */ + public void executeTool( + com.google.cloud.ces.v1.ExecuteToolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExecuteToolMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Retrieve the schema of the given tool. The schema is computed on the fly
      +     * for the given instance of the tool.
      +     * 
      + */ + public void retrieveToolSchema( + com.google.cloud.ces.v1.RetrieveToolSchemaRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRetrieveToolSchemaMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
      +     * Retrieve the list of tools included in the specified toolset.
      +     * 
      + */ + public void retrieveTools( + com.google.cloud.ces.v1.RetrieveToolsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRetrieveToolsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service ToolService. + * + *
      +   * Tool service provides APIs for interacting with CES tools.
      +   * 
      + */ + public static final class ToolServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private ToolServiceBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ToolServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ToolServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
      +     * Executes the given tool with the given arguments.
      +     * 
      + */ + public com.google.cloud.ces.v1.ExecuteToolResponse executeTool( + com.google.cloud.ces.v1.ExecuteToolRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getExecuteToolMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Retrieve the schema of the given tool. The schema is computed on the fly
      +     * for the given instance of the tool.
      +     * 
      + */ + public com.google.cloud.ces.v1.RetrieveToolSchemaResponse retrieveToolSchema( + com.google.cloud.ces.v1.RetrieveToolSchemaRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getRetrieveToolSchemaMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Retrieve the list of tools included in the specified toolset.
      +     * 
      + */ + public com.google.cloud.ces.v1.RetrieveToolsResponse retrieveTools( + com.google.cloud.ces.v1.RetrieveToolsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getRetrieveToolsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service ToolService. + * + *
      +   * Tool service provides APIs for interacting with CES tools.
      +   * 
      + */ + public static final class ToolServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ToolServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ToolServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ToolServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
      +     * Executes the given tool with the given arguments.
      +     * 
      + */ + public com.google.cloud.ces.v1.ExecuteToolResponse executeTool( + com.google.cloud.ces.v1.ExecuteToolRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExecuteToolMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Retrieve the schema of the given tool. The schema is computed on the fly
      +     * for the given instance of the tool.
      +     * 
      + */ + public com.google.cloud.ces.v1.RetrieveToolSchemaResponse retrieveToolSchema( + com.google.cloud.ces.v1.RetrieveToolSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRetrieveToolSchemaMethod(), getCallOptions(), request); + } + + /** + * + * + *
      +     * Retrieve the list of tools included in the specified toolset.
      +     * 
      + */ + public com.google.cloud.ces.v1.RetrieveToolsResponse retrieveTools( + com.google.cloud.ces.v1.RetrieveToolsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRetrieveToolsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service ToolService. + * + *
      +   * Tool service provides APIs for interacting with CES tools.
      +   * 
      + */ + public static final class ToolServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ToolServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ToolServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ToolServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
      +     * Executes the given tool with the given arguments.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.ces.v1.ExecuteToolResponse> + executeTool(com.google.cloud.ces.v1.ExecuteToolRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExecuteToolMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Retrieve the schema of the given tool. The schema is computed on the fly
      +     * for the given instance of the tool.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.ces.v1.RetrieveToolSchemaResponse> + retrieveToolSchema(com.google.cloud.ces.v1.RetrieveToolSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRetrieveToolSchemaMethod(), getCallOptions()), request); + } + + /** + * + * + *
      +     * Retrieve the list of tools included in the specified toolset.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.ces.v1.RetrieveToolsResponse> + retrieveTools(com.google.cloud.ces.v1.RetrieveToolsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRetrieveToolsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_EXECUTE_TOOL = 0; + private static final int METHODID_RETRIEVE_TOOL_SCHEMA = 1; + private static final int METHODID_RETRIEVE_TOOLS = 2; + + 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_EXECUTE_TOOL: + serviceImpl.executeTool( + (com.google.cloud.ces.v1.ExecuteToolRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_RETRIEVE_TOOL_SCHEMA: + serviceImpl.retrieveToolSchema( + (com.google.cloud.ces.v1.RetrieveToolSchemaRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_RETRIEVE_TOOLS: + serviceImpl.retrieveTools( + (com.google.cloud.ces.v1.RetrieveToolsRequest) 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( + getExecuteToolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.ExecuteToolRequest, + com.google.cloud.ces.v1.ExecuteToolResponse>(service, METHODID_EXECUTE_TOOL))) + .addMethod( + getRetrieveToolSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.RetrieveToolSchemaRequest, + com.google.cloud.ces.v1.RetrieveToolSchemaResponse>( + service, METHODID_RETRIEVE_TOOL_SCHEMA))) + .addMethod( + getRetrieveToolsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.RetrieveToolsRequest, + com.google.cloud.ces.v1.RetrieveToolsResponse>( + service, METHODID_RETRIEVE_TOOLS))) + .build(); + } + + private abstract static class ToolServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ToolServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.ces.v1.ToolServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ToolService"); + } + } + + private static final class ToolServiceFileDescriptorSupplier + extends ToolServiceBaseDescriptorSupplier { + ToolServiceFileDescriptorSupplier() {} + } + + private static final class ToolServiceMethodDescriptorSupplier + extends ToolServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + ToolServiceMethodDescriptorSupplier(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 (ToolServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ToolServiceFileDescriptorSupplier()) + .addMethod(getExecuteToolMethod()) + .addMethod(getRetrieveToolSchemaMethod()) + .addMethod(getRetrieveToolsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-ces/grpc-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetServiceGrpc.java b/java-ces/grpc-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetServiceGrpc.java new file mode 100644 index 000000000000..61e855b5eed5 --- /dev/null +++ b/java-ces/grpc-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetServiceGrpc.java @@ -0,0 +1,426 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.ces.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
      + * Provides APIs for widgets to interact with CES APIs.
      + * 
      + */ +@io.grpc.stub.annotations.GrpcGenerated +public final class WidgetServiceGrpc { + + private WidgetServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.ces.v1.WidgetService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.GenerateChatTokenRequest, + com.google.cloud.ces.v1.GenerateChatTokenResponse> + getGenerateChatTokenMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateChatToken", + requestType = com.google.cloud.ces.v1.GenerateChatTokenRequest.class, + responseType = com.google.cloud.ces.v1.GenerateChatTokenResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.GenerateChatTokenRequest, + com.google.cloud.ces.v1.GenerateChatTokenResponse> + getGenerateChatTokenMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1.GenerateChatTokenRequest, + com.google.cloud.ces.v1.GenerateChatTokenResponse> + getGenerateChatTokenMethod; + if ((getGenerateChatTokenMethod = WidgetServiceGrpc.getGenerateChatTokenMethod) == null) { + synchronized (WidgetServiceGrpc.class) { + if ((getGenerateChatTokenMethod = WidgetServiceGrpc.getGenerateChatTokenMethod) == null) { + WidgetServiceGrpc.getGenerateChatTokenMethod = + getGenerateChatTokenMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateChatToken")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.GenerateChatTokenRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1.GenerateChatTokenResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WidgetServiceMethodDescriptorSupplier("GenerateChatToken")) + .build(); + } + } + } + return getGenerateChatTokenMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static WidgetServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WidgetServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WidgetServiceStub(channel, callOptions); + } + }; + return WidgetServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static WidgetServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WidgetServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WidgetServiceBlockingV2Stub(channel, callOptions); + } + }; + return WidgetServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static WidgetServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WidgetServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WidgetServiceBlockingStub(channel, callOptions); + } + }; + return WidgetServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static WidgetServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WidgetServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WidgetServiceFutureStub(channel, callOptions); + } + }; + return WidgetServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
      +   * Provides APIs for widgets to interact with CES APIs.
      +   * 
      + */ + public interface AsyncService { + + /** + * + * + *
      +     * Generates a session scoped token for chat widget to authenticate with
      +     * Session APIs.
      +     * 
      + */ + default void generateChatToken( + com.google.cloud.ces.v1.GenerateChatTokenRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateChatTokenMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service WidgetService. + * + *
      +   * Provides APIs for widgets to interact with CES APIs.
      +   * 
      + */ + public abstract static class WidgetServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return WidgetServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service WidgetService. + * + *
      +   * Provides APIs for widgets to interact with CES APIs.
      +   * 
      + */ + public static final class WidgetServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private WidgetServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WidgetServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WidgetServiceStub(channel, callOptions); + } + + /** + * + * + *
      +     * Generates a session scoped token for chat widget to authenticate with
      +     * Session APIs.
      +     * 
      + */ + public void generateChatToken( + com.google.cloud.ces.v1.GenerateChatTokenRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateChatTokenMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service WidgetService. + * + *
      +   * Provides APIs for widgets to interact with CES APIs.
      +   * 
      + */ + public static final class WidgetServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private WidgetServiceBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WidgetServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WidgetServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
      +     * Generates a session scoped token for chat widget to authenticate with
      +     * Session APIs.
      +     * 
      + */ + public com.google.cloud.ces.v1.GenerateChatTokenResponse generateChatToken( + com.google.cloud.ces.v1.GenerateChatTokenRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGenerateChatTokenMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service WidgetService. + * + *
      +   * Provides APIs for widgets to interact with CES APIs.
      +   * 
      + */ + public static final class WidgetServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private WidgetServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WidgetServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WidgetServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
      +     * Generates a session scoped token for chat widget to authenticate with
      +     * Session APIs.
      +     * 
      + */ + public com.google.cloud.ces.v1.GenerateChatTokenResponse generateChatToken( + com.google.cloud.ces.v1.GenerateChatTokenRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateChatTokenMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service WidgetService. + * + *
      +   * Provides APIs for widgets to interact with CES APIs.
      +   * 
      + */ + public static final class WidgetServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private WidgetServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WidgetServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WidgetServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
      +     * Generates a session scoped token for chat widget to authenticate with
      +     * Session APIs.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.ces.v1.GenerateChatTokenResponse> + generateChatToken(com.google.cloud.ces.v1.GenerateChatTokenRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateChatTokenMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GENERATE_CHAT_TOKEN = 0; + + 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_GENERATE_CHAT_TOKEN: + serviceImpl.generateChatToken( + (com.google.cloud.ces.v1.GenerateChatTokenRequest) 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( + getGenerateChatTokenMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1.GenerateChatTokenRequest, + com.google.cloud.ces.v1.GenerateChatTokenResponse>( + service, METHODID_GENERATE_CHAT_TOKEN))) + .build(); + } + + private abstract static class WidgetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + WidgetServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.ces.v1.WidgetServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("WidgetService"); + } + } + + private static final class WidgetServiceFileDescriptorSupplier + extends WidgetServiceBaseDescriptorSupplier { + WidgetServiceFileDescriptorSupplier() {} + } + + private static final class WidgetServiceMethodDescriptorSupplier + extends WidgetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + WidgetServiceMethodDescriptorSupplier(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 (WidgetServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new WidgetServiceFileDescriptorSupplier()) + .addMethod(getGenerateChatTokenMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-ces/owlbot.py b/java-ces/owlbot.py new file mode 100644 index 000000000000..2ba11e6bba67 --- /dev/null +++ b/java-ces/owlbot.py @@ -0,0 +1,36 @@ +# 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 + s.move(library) + +s.remove_staging_dirs() +java.common_templates(monorepo=True, excludes=[ + ".github/*", + ".kokoro/*", + "samples/*", + "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/java-ces/pom.xml b/java-ces/pom.xml new file mode 100644 index 000000000000..2f3c9233ab39 --- /dev/null +++ b/java-ces/pom.xml @@ -0,0 +1,55 @@ + + + 4.0.0 + com.google.cloud + google-cloud-ces-parent + pom + 0.1.0 + Google Gemini Enterprise for Customer Experience API Parent + + Java idiomatic client for Google Cloud Platform services. + + + + com.google.cloud + google-cloud-jar-parent + 1.79.0 + ../google-cloud-jar-parent/pom.xml + + + + UTF-8 + UTF-8 + github + google-cloud-ces-parent + + + + + + com.google.cloud + google-cloud-ces + 0.1.0 + + + com.google.api.grpc + grpc-google-cloud-ces-v1 + 0.1.0 + + + com.google.api.grpc + proto-google-cloud-ces-v1 + 0.1.0 + + + + + + + google-cloud-ces + grpc-google-cloud-ces-v1 + proto-google-cloud-ces-v1 + google-cloud-ces-bom + + + diff --git a/java-ces/proto-google-cloud-ces-v1/clirr-ignored-differences.xml b/java-ces/proto-google-cloud-ces-v1/clirr-ignored-differences.xml new file mode 100644 index 000000000000..ede2e7d23f6c --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/clirr-ignored-differences.xml @@ -0,0 +1,80 @@ + + + + + 7012 + com/google/cloud/ces/v1/*OrBuilder + * get*(*) + + + 7012 + com/google/cloud/ces/v1/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/cloud/ces/v1/*OrBuilder + boolean has*(*) + + + + 7006 + com/google/cloud/ces/v1/** + * getDefaultInstanceForType() + ** + + + 7006 + com/google/cloud/ces/v1/** + * addRepeatedField(*) + ** + + + 7006 + com/google/cloud/ces/v1/** + * clear() + ** + + + 7006 + com/google/cloud/ces/v1/** + * clearField(*) + ** + + + 7006 + com/google/cloud/ces/v1/** + * clearOneof(*) + ** + + + 7006 + com/google/cloud/ces/v1/** + * clone() + ** + + + 7006 + com/google/cloud/ces/v1/** + * mergeUnknownFields(*) + ** + + + 7006 + com/google/cloud/ces/v1/** + * setField(*) + ** + + + 7006 + com/google/cloud/ces/v1/** + * setRepeatedField(*) + ** + + + 7006 + com/google/cloud/ces/v1/** + * setUnknownFields(*) + ** + + diff --git a/java-ces/proto-google-cloud-ces-v1/pom.xml b/java-ces/proto-google-cloud-ces-v1/pom.xml new file mode 100644 index 000000000000..51b7c354361f --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/pom.xml @@ -0,0 +1,37 @@ + + 4.0.0 + com.google.api.grpc + proto-google-cloud-ces-v1 + 0.1.0 + proto-google-cloud-ces-v1 + Proto library for google-cloud-ces + + com.google.cloud + google-cloud-ces-parent + 0.1.0 + + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-iam-v1 + + + com.google.api + api-common + + + com.google.guava + guava + + + diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Action.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Action.java new file mode 100644 index 000000000000..27cb8abb6621 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Action.java @@ -0,0 +1,2701 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/connector_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Configuration of an Action for the tool to use.
      + * Note: This can be either an Action or an Operation. See
      + * https://cloud.google.com/integration-connectors/docs/entities-operation-action
      + * for details.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Action} + */ +@com.google.protobuf.Generated +public final class Action extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.Action) + ActionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Action"); + } + + // Use Action.newBuilder() to construct. + private Action(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Action() { + inputFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + outputFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ConnectorToolProto + .internal_static_google_cloud_ces_v1_Action_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ConnectorToolProto + .internal_static_google_cloud_ces_v1_Action_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Action.class, com.google.cloud.ces.v1.Action.Builder.class); + } + + public interface EntityOperationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.Action.EntityOperation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Required. ID of the entity.
      +     * 
      + * + * string entity_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The entityId. + */ + java.lang.String getEntityId(); + + /** + * + * + *
      +     * Required. ID of the entity.
      +     * 
      + * + * string entity_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for entityId. + */ + com.google.protobuf.ByteString getEntityIdBytes(); + + /** + * + * + *
      +     * Required. Operation to perform on the entity.
      +     * 
      + * + * + * .google.cloud.ces.v1.Action.EntityOperation.OperationType operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for operation. + */ + int getOperationValue(); + + /** + * + * + *
      +     * Required. Operation to perform on the entity.
      +     * 
      + * + * + * .google.cloud.ces.v1.Action.EntityOperation.OperationType operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The operation. + */ + com.google.cloud.ces.v1.Action.EntityOperation.OperationType getOperation(); + } + + /** + * + * + *
      +   * Entity CRUD operation specification.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Action.EntityOperation} + */ + public static final class EntityOperation extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.Action.EntityOperation) + EntityOperationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EntityOperation"); + } + + // Use EntityOperation.newBuilder() to construct. + private EntityOperation(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private EntityOperation() { + entityId_ = ""; + operation_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ConnectorToolProto + .internal_static_google_cloud_ces_v1_Action_EntityOperation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ConnectorToolProto + .internal_static_google_cloud_ces_v1_Action_EntityOperation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Action.EntityOperation.class, + com.google.cloud.ces.v1.Action.EntityOperation.Builder.class); + } + + /** + * + * + *
      +     * The operation to perform on the entity.
      +     * 
      + * + * Protobuf enum {@code google.cloud.ces.v1.Action.EntityOperation.OperationType} + */ + public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +       * Operation type unspecified. Invalid, ConnectorTool create/update
      +       * will fail.
      +       * 
      + * + * OPERATION_TYPE_UNSPECIFIED = 0; + */ + OPERATION_TYPE_UNSPECIFIED(0), + /** + * + * + *
      +       * List operation.
      +       * 
      + * + * LIST = 1; + */ + LIST(1), + /** + * + * + *
      +       * Get operation.
      +       * 
      + * + * GET = 2; + */ + GET(2), + /** + * + * + *
      +       * Create operation.
      +       * 
      + * + * CREATE = 3; + */ + CREATE(3), + /** + * + * + *
      +       * Update operation.
      +       * 
      + * + * UPDATE = 4; + */ + UPDATE(4), + /** + * + * + *
      +       * Delete operation.
      +       * 
      + * + * DELETE = 5; + */ + DELETE(5), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OperationType"); + } + + /** + * + * + *
      +       * Operation type unspecified. Invalid, ConnectorTool create/update
      +       * will fail.
      +       * 
      + * + * OPERATION_TYPE_UNSPECIFIED = 0; + */ + public static final int OPERATION_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +       * List operation.
      +       * 
      + * + * LIST = 1; + */ + public static final int LIST_VALUE = 1; + + /** + * + * + *
      +       * Get operation.
      +       * 
      + * + * GET = 2; + */ + public static final int GET_VALUE = 2; + + /** + * + * + *
      +       * Create operation.
      +       * 
      + * + * CREATE = 3; + */ + public static final int CREATE_VALUE = 3; + + /** + * + * + *
      +       * Update operation.
      +       * 
      + * + * UPDATE = 4; + */ + public static final int UPDATE_VALUE = 4; + + /** + * + * + *
      +       * Delete operation.
      +       * 
      + * + * DELETE = 5; + */ + public static final int DELETE_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OperationType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static OperationType forNumber(int value) { + switch (value) { + case 0: + return OPERATION_TYPE_UNSPECIFIED; + case 1: + return LIST; + case 2: + return GET; + case 3: + return CREATE; + case 4: + return UPDATE; + case 5: + return DELETE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public OperationType findValueByNumber(int number) { + return OperationType.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.Action.EntityOperation.getDescriptor().getEnumTypes().get(0); + } + + private static final OperationType[] VALUES = values(); + + public static OperationType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private OperationType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.Action.EntityOperation.OperationType) + } + + public static final int ENTITY_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityId_ = ""; + + /** + * + * + *
      +     * Required. ID of the entity.
      +     * 
      + * + * string entity_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The entityId. + */ + @java.lang.Override + public java.lang.String getEntityId() { + java.lang.Object ref = entityId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entityId_ = s; + return s; + } + } + + /** + * + * + *
      +     * Required. ID of the entity.
      +     * 
      + * + * string entity_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for entityId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntityIdBytes() { + java.lang.Object ref = entityId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATION_FIELD_NUMBER = 2; + private int operation_ = 0; + + /** + * + * + *
      +     * Required. Operation to perform on the entity.
      +     * 
      + * + * + * .google.cloud.ces.v1.Action.EntityOperation.OperationType operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for operation. + */ + @java.lang.Override + public int getOperationValue() { + return operation_; + } + + /** + * + * + *
      +     * Required. Operation to perform on the entity.
      +     * 
      + * + * + * .google.cloud.ces.v1.Action.EntityOperation.OperationType operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The operation. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Action.EntityOperation.OperationType getOperation() { + com.google.cloud.ces.v1.Action.EntityOperation.OperationType result = + com.google.cloud.ces.v1.Action.EntityOperation.OperationType.forNumber(operation_); + return result == null + ? com.google.cloud.ces.v1.Action.EntityOperation.OperationType.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(entityId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, entityId_); + } + if (operation_ + != com.google.cloud.ces.v1.Action.EntityOperation.OperationType.OPERATION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, operation_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(entityId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, entityId_); + } + if (operation_ + != com.google.cloud.ces.v1.Action.EntityOperation.OperationType.OPERATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, operation_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.Action.EntityOperation)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.Action.EntityOperation other = + (com.google.cloud.ces.v1.Action.EntityOperation) obj; + + if (!getEntityId().equals(other.getEntityId())) return false; + if (operation_ != other.operation_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER; + hash = (53 * hash) + getEntityId().hashCode(); + hash = (37 * hash) + OPERATION_FIELD_NUMBER; + hash = (53 * hash) + operation_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.Action.EntityOperation parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Action.EntityOperation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Action.EntityOperation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Action.EntityOperation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Action.EntityOperation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Action.EntityOperation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Action.EntityOperation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Action.EntityOperation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Action.EntityOperation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Action.EntityOperation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Action.EntityOperation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Action.EntityOperation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.Action.EntityOperation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Entity CRUD operation specification.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Action.EntityOperation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.Action.EntityOperation) + com.google.cloud.ces.v1.Action.EntityOperationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ConnectorToolProto + .internal_static_google_cloud_ces_v1_Action_EntityOperation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ConnectorToolProto + .internal_static_google_cloud_ces_v1_Action_EntityOperation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Action.EntityOperation.class, + com.google.cloud.ces.v1.Action.EntityOperation.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.Action.EntityOperation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + entityId_ = ""; + operation_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.ConnectorToolProto + .internal_static_google_cloud_ces_v1_Action_EntityOperation_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Action.EntityOperation getDefaultInstanceForType() { + return com.google.cloud.ces.v1.Action.EntityOperation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.Action.EntityOperation build() { + com.google.cloud.ces.v1.Action.EntityOperation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Action.EntityOperation buildPartial() { + com.google.cloud.ces.v1.Action.EntityOperation result = + new com.google.cloud.ces.v1.Action.EntityOperation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.Action.EntityOperation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entityId_ = entityId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.operation_ = operation_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.Action.EntityOperation) { + return mergeFrom((com.google.cloud.ces.v1.Action.EntityOperation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.Action.EntityOperation other) { + if (other == com.google.cloud.ces.v1.Action.EntityOperation.getDefaultInstance()) + return this; + if (!other.getEntityId().isEmpty()) { + entityId_ = other.entityId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.operation_ != 0) { + setOperationValue(other.getOperationValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + entityId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + operation_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object entityId_ = ""; + + /** + * + * + *
      +       * Required. ID of the entity.
      +       * 
      + * + * string entity_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The entityId. + */ + public java.lang.String getEntityId() { + java.lang.Object ref = entityId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entityId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Required. ID of the entity.
      +       * 
      + * + * string entity_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for entityId. + */ + public com.google.protobuf.ByteString getEntityIdBytes() { + java.lang.Object ref = entityId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Required. ID of the entity.
      +       * 
      + * + * string entity_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + entityId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. ID of the entity.
      +       * 
      + * + * string entity_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearEntityId() { + entityId_ = getDefaultInstance().getEntityId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. ID of the entity.
      +       * 
      + * + * string entity_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entityId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int operation_ = 0; + + /** + * + * + *
      +       * Required. Operation to perform on the entity.
      +       * 
      + * + * + * .google.cloud.ces.v1.Action.EntityOperation.OperationType operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for operation. + */ + @java.lang.Override + public int getOperationValue() { + return operation_; + } + + /** + * + * + *
      +       * Required. Operation to perform on the entity.
      +       * 
      + * + * + * .google.cloud.ces.v1.Action.EntityOperation.OperationType operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for operation to set. + * @return This builder for chaining. + */ + public Builder setOperationValue(int value) { + operation_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. Operation to perform on the entity.
      +       * 
      + * + * + * .google.cloud.ces.v1.Action.EntityOperation.OperationType operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The operation. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Action.EntityOperation.OperationType getOperation() { + com.google.cloud.ces.v1.Action.EntityOperation.OperationType result = + com.google.cloud.ces.v1.Action.EntityOperation.OperationType.forNumber(operation_); + return result == null + ? com.google.cloud.ces.v1.Action.EntityOperation.OperationType.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +       * Required. Operation to perform on the entity.
      +       * 
      + * + * + * .google.cloud.ces.v1.Action.EntityOperation.OperationType operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The operation to set. + * @return This builder for chaining. + */ + public Builder setOperation( + com.google.cloud.ces.v1.Action.EntityOperation.OperationType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + operation_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. Operation to perform on the entity.
      +       * 
      + * + * + * .google.cloud.ces.v1.Action.EntityOperation.OperationType operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearOperation() { + bitField0_ = (bitField0_ & ~0x00000002); + operation_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Action.EntityOperation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.Action.EntityOperation) + private static final com.google.cloud.ces.v1.Action.EntityOperation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.Action.EntityOperation(); + } + + public static com.google.cloud.ces.v1.Action.EntityOperation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EntityOperation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Action.EntityOperation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int actionSpecCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object actionSpec_; + + public enum ActionSpecCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CONNECTION_ACTION_ID(4), + ENTITY_OPERATION(5), + ACTIONSPEC_NOT_SET(0); + private final int value; + + private ActionSpecCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ActionSpecCase valueOf(int value) { + return forNumber(value); + } + + public static ActionSpecCase forNumber(int value) { + switch (value) { + case 4: + return CONNECTION_ACTION_ID; + case 5: + return ENTITY_OPERATION; + case 0: + return ACTIONSPEC_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ActionSpecCase getActionSpecCase() { + return ActionSpecCase.forNumber(actionSpecCase_); + } + + public static final int CONNECTION_ACTION_ID_FIELD_NUMBER = 4; + + /** + * + * + *
      +   * ID of a Connection action for the tool to use.
      +   * 
      + * + * string connection_action_id = 4; + * + * @return Whether the connectionActionId field is set. + */ + public boolean hasConnectionActionId() { + return actionSpecCase_ == 4; + } + + /** + * + * + *
      +   * ID of a Connection action for the tool to use.
      +   * 
      + * + * string connection_action_id = 4; + * + * @return The connectionActionId. + */ + public java.lang.String getConnectionActionId() { + java.lang.Object ref = ""; + if (actionSpecCase_ == 4) { + ref = actionSpec_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (actionSpecCase_ == 4) { + actionSpec_ = s; + } + return s; + } + } + + /** + * + * + *
      +   * ID of a Connection action for the tool to use.
      +   * 
      + * + * string connection_action_id = 4; + * + * @return The bytes for connectionActionId. + */ + public com.google.protobuf.ByteString getConnectionActionIdBytes() { + java.lang.Object ref = ""; + if (actionSpecCase_ == 4) { + ref = actionSpec_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (actionSpecCase_ == 4) { + actionSpec_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENTITY_OPERATION_FIELD_NUMBER = 5; + + /** + * + * + *
      +   * Entity operation configuration for the tool to use.
      +   * 
      + * + * .google.cloud.ces.v1.Action.EntityOperation entity_operation = 5; + * + * @return Whether the entityOperation field is set. + */ + @java.lang.Override + public boolean hasEntityOperation() { + return actionSpecCase_ == 5; + } + + /** + * + * + *
      +   * Entity operation configuration for the tool to use.
      +   * 
      + * + * .google.cloud.ces.v1.Action.EntityOperation entity_operation = 5; + * + * @return The entityOperation. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Action.EntityOperation getEntityOperation() { + if (actionSpecCase_ == 5) { + return (com.google.cloud.ces.v1.Action.EntityOperation) actionSpec_; + } + return com.google.cloud.ces.v1.Action.EntityOperation.getDefaultInstance(); + } + + /** + * + * + *
      +   * Entity operation configuration for the tool to use.
      +   * 
      + * + * .google.cloud.ces.v1.Action.EntityOperation entity_operation = 5; + */ + @java.lang.Override + public com.google.cloud.ces.v1.Action.EntityOperationOrBuilder getEntityOperationOrBuilder() { + if (actionSpecCase_ == 5) { + return (com.google.cloud.ces.v1.Action.EntityOperation) actionSpec_; + } + return com.google.cloud.ces.v1.Action.EntityOperation.getDefaultInstance(); + } + + public static final int INPUT_FIELDS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList inputFields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +   * Optional. Entity fields to use as inputs for the operation.
      +   * If no fields are specified, all fields of the Entity will be used.
      +   * 
      + * + * repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the inputFields. + */ + public com.google.protobuf.ProtocolStringList getInputFieldsList() { + return inputFields_; + } + + /** + * + * + *
      +   * Optional. Entity fields to use as inputs for the operation.
      +   * If no fields are specified, all fields of the Entity will be used.
      +   * 
      + * + * repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of inputFields. + */ + public int getInputFieldsCount() { + return inputFields_.size(); + } + + /** + * + * + *
      +   * Optional. Entity fields to use as inputs for the operation.
      +   * If no fields are specified, all fields of the Entity will be used.
      +   * 
      + * + * repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The inputFields at the given index. + */ + public java.lang.String getInputFields(int index) { + return inputFields_.get(index); + } + + /** + * + * + *
      +   * Optional. Entity fields to use as inputs for the operation.
      +   * If no fields are specified, all fields of the Entity will be used.
      +   * 
      + * + * repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the inputFields at the given index. + */ + public com.google.protobuf.ByteString getInputFieldsBytes(int index) { + return inputFields_.getByteString(index); + } + + public static final int OUTPUT_FIELDS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList outputFields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +   * Optional. Entity fields to return from the operation.
      +   * If no fields are specified, all fields of the Entity will be returned.
      +   * 
      + * + * repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the outputFields. + */ + public com.google.protobuf.ProtocolStringList getOutputFieldsList() { + return outputFields_; + } + + /** + * + * + *
      +   * Optional. Entity fields to return from the operation.
      +   * If no fields are specified, all fields of the Entity will be returned.
      +   * 
      + * + * repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of outputFields. + */ + public int getOutputFieldsCount() { + return outputFields_.size(); + } + + /** + * + * + *
      +   * Optional. Entity fields to return from the operation.
      +   * If no fields are specified, all fields of the Entity will be returned.
      +   * 
      + * + * repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The outputFields at the given index. + */ + public java.lang.String getOutputFields(int index) { + return outputFields_.get(index); + } + + /** + * + * + *
      +   * Optional. Entity fields to return from the operation.
      +   * If no fields are specified, all fields of the Entity will be returned.
      +   * 
      + * + * repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the outputFields at the given index. + */ + public com.google.protobuf.ByteString getOutputFieldsBytes(int index) { + return outputFields_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < inputFields_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, inputFields_.getRaw(i)); + } + for (int i = 0; i < outputFields_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, outputFields_.getRaw(i)); + } + if (actionSpecCase_ == 4) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, actionSpec_); + } + if (actionSpecCase_ == 5) { + output.writeMessage(5, (com.google.cloud.ces.v1.Action.EntityOperation) actionSpec_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < inputFields_.size(); i++) { + dataSize += computeStringSizeNoTag(inputFields_.getRaw(i)); + } + size += dataSize; + size += 1 * getInputFieldsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < outputFields_.size(); i++) { + dataSize += computeStringSizeNoTag(outputFields_.getRaw(i)); + } + size += dataSize; + size += 1 * getOutputFieldsList().size(); + } + if (actionSpecCase_ == 4) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, actionSpec_); + } + if (actionSpecCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.ces.v1.Action.EntityOperation) actionSpec_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.Action)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.Action other = (com.google.cloud.ces.v1.Action) obj; + + if (!getInputFieldsList().equals(other.getInputFieldsList())) return false; + if (!getOutputFieldsList().equals(other.getOutputFieldsList())) return false; + if (!getActionSpecCase().equals(other.getActionSpecCase())) return false; + switch (actionSpecCase_) { + case 4: + if (!getConnectionActionId().equals(other.getConnectionActionId())) return false; + break; + case 5: + if (!getEntityOperation().equals(other.getEntityOperation())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getInputFieldsCount() > 0) { + hash = (37 * hash) + INPUT_FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getInputFieldsList().hashCode(); + } + if (getOutputFieldsCount() > 0) { + hash = (37 * hash) + OUTPUT_FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getOutputFieldsList().hashCode(); + } + switch (actionSpecCase_) { + case 4: + hash = (37 * hash) + CONNECTION_ACTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getConnectionActionId().hashCode(); + break; + case 5: + hash = (37 * hash) + ENTITY_OPERATION_FIELD_NUMBER; + hash = (53 * hash) + getEntityOperation().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.Action parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Action parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Action parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Action parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Action parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Action parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Action parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Action parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Action parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Action parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Action parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Action parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.Action prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Configuration of an Action for the tool to use.
      +   * Note: This can be either an Action or an Operation. See
      +   * https://cloud.google.com/integration-connectors/docs/entities-operation-action
      +   * for details.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Action} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.Action) + com.google.cloud.ces.v1.ActionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ConnectorToolProto + .internal_static_google_cloud_ces_v1_Action_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ConnectorToolProto + .internal_static_google_cloud_ces_v1_Action_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Action.class, com.google.cloud.ces.v1.Action.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.Action.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (entityOperationBuilder_ != null) { + entityOperationBuilder_.clear(); + } + inputFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + outputFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + actionSpecCase_ = 0; + actionSpec_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.ConnectorToolProto + .internal_static_google_cloud_ces_v1_Action_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Action getDefaultInstanceForType() { + return com.google.cloud.ces.v1.Action.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.Action build() { + com.google.cloud.ces.v1.Action result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Action buildPartial() { + com.google.cloud.ces.v1.Action result = new com.google.cloud.ces.v1.Action(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.Action result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + inputFields_.makeImmutable(); + result.inputFields_ = inputFields_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + outputFields_.makeImmutable(); + result.outputFields_ = outputFields_; + } + } + + private void buildPartialOneofs(com.google.cloud.ces.v1.Action result) { + result.actionSpecCase_ = actionSpecCase_; + result.actionSpec_ = this.actionSpec_; + if (actionSpecCase_ == 5 && entityOperationBuilder_ != null) { + result.actionSpec_ = entityOperationBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.Action) { + return mergeFrom((com.google.cloud.ces.v1.Action) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.Action other) { + if (other == com.google.cloud.ces.v1.Action.getDefaultInstance()) return this; + if (!other.inputFields_.isEmpty()) { + if (inputFields_.isEmpty()) { + inputFields_ = other.inputFields_; + bitField0_ |= 0x00000004; + } else { + ensureInputFieldsIsMutable(); + inputFields_.addAll(other.inputFields_); + } + onChanged(); + } + if (!other.outputFields_.isEmpty()) { + if (outputFields_.isEmpty()) { + outputFields_ = other.outputFields_; + bitField0_ |= 0x00000008; + } else { + ensureOutputFieldsIsMutable(); + outputFields_.addAll(other.outputFields_); + } + onChanged(); + } + switch (other.getActionSpecCase()) { + case CONNECTION_ACTION_ID: + { + actionSpecCase_ = 4; + actionSpec_ = other.actionSpec_; + onChanged(); + break; + } + case ENTITY_OPERATION: + { + mergeEntityOperation(other.getEntityOperation()); + break; + } + case ACTIONSPEC_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureInputFieldsIsMutable(); + inputFields_.add(s); + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureOutputFieldsIsMutable(); + outputFields_.add(s); + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + actionSpecCase_ = 4; + actionSpec_ = s; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetEntityOperationFieldBuilder().getBuilder(), extensionRegistry); + actionSpecCase_ = 5; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int actionSpecCase_ = 0; + private java.lang.Object actionSpec_; + + public ActionSpecCase getActionSpecCase() { + return ActionSpecCase.forNumber(actionSpecCase_); + } + + public Builder clearActionSpec() { + actionSpecCase_ = 0; + actionSpec_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
      +     * ID of a Connection action for the tool to use.
      +     * 
      + * + * string connection_action_id = 4; + * + * @return Whether the connectionActionId field is set. + */ + @java.lang.Override + public boolean hasConnectionActionId() { + return actionSpecCase_ == 4; + } + + /** + * + * + *
      +     * ID of a Connection action for the tool to use.
      +     * 
      + * + * string connection_action_id = 4; + * + * @return The connectionActionId. + */ + @java.lang.Override + public java.lang.String getConnectionActionId() { + java.lang.Object ref = ""; + if (actionSpecCase_ == 4) { + ref = actionSpec_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (actionSpecCase_ == 4) { + actionSpec_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * ID of a Connection action for the tool to use.
      +     * 
      + * + * string connection_action_id = 4; + * + * @return The bytes for connectionActionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConnectionActionIdBytes() { + java.lang.Object ref = ""; + if (actionSpecCase_ == 4) { + ref = actionSpec_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (actionSpecCase_ == 4) { + actionSpec_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * ID of a Connection action for the tool to use.
      +     * 
      + * + * string connection_action_id = 4; + * + * @param value The connectionActionId to set. + * @return This builder for chaining. + */ + public Builder setConnectionActionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + actionSpecCase_ = 4; + actionSpec_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * ID of a Connection action for the tool to use.
      +     * 
      + * + * string connection_action_id = 4; + * + * @return This builder for chaining. + */ + public Builder clearConnectionActionId() { + if (actionSpecCase_ == 4) { + actionSpecCase_ = 0; + actionSpec_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * ID of a Connection action for the tool to use.
      +     * 
      + * + * string connection_action_id = 4; + * + * @param value The bytes for connectionActionId to set. + * @return This builder for chaining. + */ + public Builder setConnectionActionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + actionSpecCase_ = 4; + actionSpec_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Action.EntityOperation, + com.google.cloud.ces.v1.Action.EntityOperation.Builder, + com.google.cloud.ces.v1.Action.EntityOperationOrBuilder> + entityOperationBuilder_; + + /** + * + * + *
      +     * Entity operation configuration for the tool to use.
      +     * 
      + * + * .google.cloud.ces.v1.Action.EntityOperation entity_operation = 5; + * + * @return Whether the entityOperation field is set. + */ + @java.lang.Override + public boolean hasEntityOperation() { + return actionSpecCase_ == 5; + } + + /** + * + * + *
      +     * Entity operation configuration for the tool to use.
      +     * 
      + * + * .google.cloud.ces.v1.Action.EntityOperation entity_operation = 5; + * + * @return The entityOperation. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Action.EntityOperation getEntityOperation() { + if (entityOperationBuilder_ == null) { + if (actionSpecCase_ == 5) { + return (com.google.cloud.ces.v1.Action.EntityOperation) actionSpec_; + } + return com.google.cloud.ces.v1.Action.EntityOperation.getDefaultInstance(); + } else { + if (actionSpecCase_ == 5) { + return entityOperationBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.Action.EntityOperation.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Entity operation configuration for the tool to use.
      +     * 
      + * + * .google.cloud.ces.v1.Action.EntityOperation entity_operation = 5; + */ + public Builder setEntityOperation(com.google.cloud.ces.v1.Action.EntityOperation value) { + if (entityOperationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + actionSpec_ = value; + onChanged(); + } else { + entityOperationBuilder_.setMessage(value); + } + actionSpecCase_ = 5; + return this; + } + + /** + * + * + *
      +     * Entity operation configuration for the tool to use.
      +     * 
      + * + * .google.cloud.ces.v1.Action.EntityOperation entity_operation = 5; + */ + public Builder setEntityOperation( + com.google.cloud.ces.v1.Action.EntityOperation.Builder builderForValue) { + if (entityOperationBuilder_ == null) { + actionSpec_ = builderForValue.build(); + onChanged(); + } else { + entityOperationBuilder_.setMessage(builderForValue.build()); + } + actionSpecCase_ = 5; + return this; + } + + /** + * + * + *
      +     * Entity operation configuration for the tool to use.
      +     * 
      + * + * .google.cloud.ces.v1.Action.EntityOperation entity_operation = 5; + */ + public Builder mergeEntityOperation(com.google.cloud.ces.v1.Action.EntityOperation value) { + if (entityOperationBuilder_ == null) { + if (actionSpecCase_ == 5 + && actionSpec_ != com.google.cloud.ces.v1.Action.EntityOperation.getDefaultInstance()) { + actionSpec_ = + com.google.cloud.ces.v1.Action.EntityOperation.newBuilder( + (com.google.cloud.ces.v1.Action.EntityOperation) actionSpec_) + .mergeFrom(value) + .buildPartial(); + } else { + actionSpec_ = value; + } + onChanged(); + } else { + if (actionSpecCase_ == 5) { + entityOperationBuilder_.mergeFrom(value); + } else { + entityOperationBuilder_.setMessage(value); + } + } + actionSpecCase_ = 5; + return this; + } + + /** + * + * + *
      +     * Entity operation configuration for the tool to use.
      +     * 
      + * + * .google.cloud.ces.v1.Action.EntityOperation entity_operation = 5; + */ + public Builder clearEntityOperation() { + if (entityOperationBuilder_ == null) { + if (actionSpecCase_ == 5) { + actionSpecCase_ = 0; + actionSpec_ = null; + onChanged(); + } + } else { + if (actionSpecCase_ == 5) { + actionSpecCase_ = 0; + actionSpec_ = null; + } + entityOperationBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Entity operation configuration for the tool to use.
      +     * 
      + * + * .google.cloud.ces.v1.Action.EntityOperation entity_operation = 5; + */ + public com.google.cloud.ces.v1.Action.EntityOperation.Builder getEntityOperationBuilder() { + return internalGetEntityOperationFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Entity operation configuration for the tool to use.
      +     * 
      + * + * .google.cloud.ces.v1.Action.EntityOperation entity_operation = 5; + */ + @java.lang.Override + public com.google.cloud.ces.v1.Action.EntityOperationOrBuilder getEntityOperationOrBuilder() { + if ((actionSpecCase_ == 5) && (entityOperationBuilder_ != null)) { + return entityOperationBuilder_.getMessageOrBuilder(); + } else { + if (actionSpecCase_ == 5) { + return (com.google.cloud.ces.v1.Action.EntityOperation) actionSpec_; + } + return com.google.cloud.ces.v1.Action.EntityOperation.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Entity operation configuration for the tool to use.
      +     * 
      + * + * .google.cloud.ces.v1.Action.EntityOperation entity_operation = 5; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Action.EntityOperation, + com.google.cloud.ces.v1.Action.EntityOperation.Builder, + com.google.cloud.ces.v1.Action.EntityOperationOrBuilder> + internalGetEntityOperationFieldBuilder() { + if (entityOperationBuilder_ == null) { + if (!(actionSpecCase_ == 5)) { + actionSpec_ = com.google.cloud.ces.v1.Action.EntityOperation.getDefaultInstance(); + } + entityOperationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Action.EntityOperation, + com.google.cloud.ces.v1.Action.EntityOperation.Builder, + com.google.cloud.ces.v1.Action.EntityOperationOrBuilder>( + (com.google.cloud.ces.v1.Action.EntityOperation) actionSpec_, + getParentForChildren(), + isClean()); + actionSpec_ = null; + } + actionSpecCase_ = 5; + onChanged(); + return entityOperationBuilder_; + } + + private com.google.protobuf.LazyStringArrayList inputFields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureInputFieldsIsMutable() { + if (!inputFields_.isModifiable()) { + inputFields_ = new com.google.protobuf.LazyStringArrayList(inputFields_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
      +     * Optional. Entity fields to use as inputs for the operation.
      +     * If no fields are specified, all fields of the Entity will be used.
      +     * 
      + * + * repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the inputFields. + */ + public com.google.protobuf.ProtocolStringList getInputFieldsList() { + inputFields_.makeImmutable(); + return inputFields_; + } + + /** + * + * + *
      +     * Optional. Entity fields to use as inputs for the operation.
      +     * If no fields are specified, all fields of the Entity will be used.
      +     * 
      + * + * repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of inputFields. + */ + public int getInputFieldsCount() { + return inputFields_.size(); + } + + /** + * + * + *
      +     * Optional. Entity fields to use as inputs for the operation.
      +     * If no fields are specified, all fields of the Entity will be used.
      +     * 
      + * + * repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The inputFields at the given index. + */ + public java.lang.String getInputFields(int index) { + return inputFields_.get(index); + } + + /** + * + * + *
      +     * Optional. Entity fields to use as inputs for the operation.
      +     * If no fields are specified, all fields of the Entity will be used.
      +     * 
      + * + * repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the inputFields at the given index. + */ + public com.google.protobuf.ByteString getInputFieldsBytes(int index) { + return inputFields_.getByteString(index); + } + + /** + * + * + *
      +     * Optional. Entity fields to use as inputs for the operation.
      +     * If no fields are specified, all fields of the Entity will be used.
      +     * 
      + * + * repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The inputFields to set. + * @return This builder for chaining. + */ + public Builder setInputFields(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputFieldsIsMutable(); + inputFields_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Entity fields to use as inputs for the operation.
      +     * If no fields are specified, all fields of the Entity will be used.
      +     * 
      + * + * repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The inputFields to add. + * @return This builder for chaining. + */ + public Builder addInputFields(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputFieldsIsMutable(); + inputFields_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Entity fields to use as inputs for the operation.
      +     * If no fields are specified, all fields of the Entity will be used.
      +     * 
      + * + * repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The inputFields to add. + * @return This builder for chaining. + */ + public Builder addAllInputFields(java.lang.Iterable values) { + ensureInputFieldsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputFields_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Entity fields to use as inputs for the operation.
      +     * If no fields are specified, all fields of the Entity will be used.
      +     * 
      + * + * repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearInputFields() { + inputFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Entity fields to use as inputs for the operation.
      +     * If no fields are specified, all fields of the Entity will be used.
      +     * 
      + * + * repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the inputFields to add. + * @return This builder for chaining. + */ + public Builder addInputFieldsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureInputFieldsIsMutable(); + inputFields_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList outputFields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureOutputFieldsIsMutable() { + if (!outputFields_.isModifiable()) { + outputFields_ = new com.google.protobuf.LazyStringArrayList(outputFields_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
      +     * Optional. Entity fields to return from the operation.
      +     * If no fields are specified, all fields of the Entity will be returned.
      +     * 
      + * + * repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the outputFields. + */ + public com.google.protobuf.ProtocolStringList getOutputFieldsList() { + outputFields_.makeImmutable(); + return outputFields_; + } + + /** + * + * + *
      +     * Optional. Entity fields to return from the operation.
      +     * If no fields are specified, all fields of the Entity will be returned.
      +     * 
      + * + * repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of outputFields. + */ + public int getOutputFieldsCount() { + return outputFields_.size(); + } + + /** + * + * + *
      +     * Optional. Entity fields to return from the operation.
      +     * If no fields are specified, all fields of the Entity will be returned.
      +     * 
      + * + * repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The outputFields at the given index. + */ + public java.lang.String getOutputFields(int index) { + return outputFields_.get(index); + } + + /** + * + * + *
      +     * Optional. Entity fields to return from the operation.
      +     * If no fields are specified, all fields of the Entity will be returned.
      +     * 
      + * + * repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the outputFields at the given index. + */ + public com.google.protobuf.ByteString getOutputFieldsBytes(int index) { + return outputFields_.getByteString(index); + } + + /** + * + * + *
      +     * Optional. Entity fields to return from the operation.
      +     * If no fields are specified, all fields of the Entity will be returned.
      +     * 
      + * + * repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The outputFields to set. + * @return This builder for chaining. + */ + public Builder setOutputFields(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputFieldsIsMutable(); + outputFields_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Entity fields to return from the operation.
      +     * If no fields are specified, all fields of the Entity will be returned.
      +     * 
      + * + * repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The outputFields to add. + * @return This builder for chaining. + */ + public Builder addOutputFields(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputFieldsIsMutable(); + outputFields_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Entity fields to return from the operation.
      +     * If no fields are specified, all fields of the Entity will be returned.
      +     * 
      + * + * repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The outputFields to add. + * @return This builder for chaining. + */ + public Builder addAllOutputFields(java.lang.Iterable values) { + ensureOutputFieldsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, outputFields_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Entity fields to return from the operation.
      +     * If no fields are specified, all fields of the Entity will be returned.
      +     * 
      + * + * repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOutputFields() { + outputFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Entity fields to return from the operation.
      +     * If no fields are specified, all fields of the Entity will be returned.
      +     * 
      + * + * repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the outputFields to add. + * @return This builder for chaining. + */ + public Builder addOutputFieldsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureOutputFieldsIsMutable(); + outputFields_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Action) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.Action) + private static final com.google.cloud.ces.v1.Action DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.Action(); + } + + public static com.google.cloud.ces.v1.Action getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Action parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Action getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ActionOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ActionOrBuilder.java new file mode 100644 index 000000000000..b57cae41129d --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ActionOrBuilder.java @@ -0,0 +1,222 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/connector_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ActionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.Action) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * ID of a Connection action for the tool to use.
      +   * 
      + * + * string connection_action_id = 4; + * + * @return Whether the connectionActionId field is set. + */ + boolean hasConnectionActionId(); + + /** + * + * + *
      +   * ID of a Connection action for the tool to use.
      +   * 
      + * + * string connection_action_id = 4; + * + * @return The connectionActionId. + */ + java.lang.String getConnectionActionId(); + + /** + * + * + *
      +   * ID of a Connection action for the tool to use.
      +   * 
      + * + * string connection_action_id = 4; + * + * @return The bytes for connectionActionId. + */ + com.google.protobuf.ByteString getConnectionActionIdBytes(); + + /** + * + * + *
      +   * Entity operation configuration for the tool to use.
      +   * 
      + * + * .google.cloud.ces.v1.Action.EntityOperation entity_operation = 5; + * + * @return Whether the entityOperation field is set. + */ + boolean hasEntityOperation(); + + /** + * + * + *
      +   * Entity operation configuration for the tool to use.
      +   * 
      + * + * .google.cloud.ces.v1.Action.EntityOperation entity_operation = 5; + * + * @return The entityOperation. + */ + com.google.cloud.ces.v1.Action.EntityOperation getEntityOperation(); + + /** + * + * + *
      +   * Entity operation configuration for the tool to use.
      +   * 
      + * + * .google.cloud.ces.v1.Action.EntityOperation entity_operation = 5; + */ + com.google.cloud.ces.v1.Action.EntityOperationOrBuilder getEntityOperationOrBuilder(); + + /** + * + * + *
      +   * Optional. Entity fields to use as inputs for the operation.
      +   * If no fields are specified, all fields of the Entity will be used.
      +   * 
      + * + * repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the inputFields. + */ + java.util.List getInputFieldsList(); + + /** + * + * + *
      +   * Optional. Entity fields to use as inputs for the operation.
      +   * If no fields are specified, all fields of the Entity will be used.
      +   * 
      + * + * repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of inputFields. + */ + int getInputFieldsCount(); + + /** + * + * + *
      +   * Optional. Entity fields to use as inputs for the operation.
      +   * If no fields are specified, all fields of the Entity will be used.
      +   * 
      + * + * repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The inputFields at the given index. + */ + java.lang.String getInputFields(int index); + + /** + * + * + *
      +   * Optional. Entity fields to use as inputs for the operation.
      +   * If no fields are specified, all fields of the Entity will be used.
      +   * 
      + * + * repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the inputFields at the given index. + */ + com.google.protobuf.ByteString getInputFieldsBytes(int index); + + /** + * + * + *
      +   * Optional. Entity fields to return from the operation.
      +   * If no fields are specified, all fields of the Entity will be returned.
      +   * 
      + * + * repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the outputFields. + */ + java.util.List getOutputFieldsList(); + + /** + * + * + *
      +   * Optional. Entity fields to return from the operation.
      +   * If no fields are specified, all fields of the Entity will be returned.
      +   * 
      + * + * repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of outputFields. + */ + int getOutputFieldsCount(); + + /** + * + * + *
      +   * Optional. Entity fields to return from the operation.
      +   * If no fields are specified, all fields of the Entity will be returned.
      +   * 
      + * + * repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The outputFields at the given index. + */ + java.lang.String getOutputFields(int index); + + /** + * + * + *
      +   * Optional. Entity fields to return from the operation.
      +   * If no fields are specified, all fields of the Entity will be returned.
      +   * 
      + * + * repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the outputFields at the given index. + */ + com.google.protobuf.ByteString getOutputFieldsBytes(int index); + + com.google.cloud.ces.v1.Action.ActionSpecCase getActionSpecCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Agent.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Agent.java new file mode 100644 index 000000000000..4eb273f2552a --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Agent.java @@ -0,0 +1,12914 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * An agent acts as the fundamental building block that provides instructions to
      + * the Large Language Model (LLM) for executing specific tasks.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Agent} + */ +@com.google.protobuf.Generated +public final class Agent extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.Agent) + AgentOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Agent"); + } + + // Use Agent.newBuilder() to construct. + private Agent(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Agent() { + name_ = ""; + displayName_ = ""; + description_ = ""; + instruction_ = ""; + tools_ = com.google.protobuf.LazyStringArrayList.emptyList(); + childAgents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + beforeAgentCallbacks_ = java.util.Collections.emptyList(); + afterAgentCallbacks_ = java.util.Collections.emptyList(); + beforeModelCallbacks_ = java.util.Collections.emptyList(); + afterModelCallbacks_ = java.util.Collections.emptyList(); + beforeToolCallbacks_ = java.util.Collections.emptyList(); + afterToolCallbacks_ = java.util.Collections.emptyList(); + guardrails_ = com.google.protobuf.LazyStringArrayList.emptyList(); + etag_ = ""; + toolsets_ = java.util.Collections.emptyList(); + generatedSummary_ = ""; + transferRules_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentProto.internal_static_google_cloud_ces_v1_Agent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentProto + .internal_static_google_cloud_ces_v1_Agent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Agent.class, com.google.cloud.ces.v1.Agent.Builder.class); + } + + public interface LlmAgentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.Agent.LlmAgent) + com.google.protobuf.MessageOrBuilder {} + + /** + * + * + *
      +   * Default agent type. The agent uses instructions and callbacks specified in
      +   * the agent to perform the task using a large language model.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Agent.LlmAgent} + */ + public static final class LlmAgent extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.Agent.LlmAgent) + LlmAgentOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "LlmAgent"); + } + + // Use LlmAgent.newBuilder() to construct. + private LlmAgent(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private LlmAgent() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentProto + .internal_static_google_cloud_ces_v1_Agent_LlmAgent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentProto + .internal_static_google_cloud_ces_v1_Agent_LlmAgent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Agent.LlmAgent.class, + com.google.cloud.ces.v1.Agent.LlmAgent.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.Agent.LlmAgent)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.Agent.LlmAgent other = (com.google.cloud.ces.v1.Agent.LlmAgent) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.Agent.LlmAgent parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Agent.LlmAgent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Agent.LlmAgent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Agent.LlmAgent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Agent.LlmAgent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Agent.LlmAgent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Agent.LlmAgent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Agent.LlmAgent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Agent.LlmAgent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Agent.LlmAgent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Agent.LlmAgent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Agent.LlmAgent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.Agent.LlmAgent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Default agent type. The agent uses instructions and callbacks specified in
      +     * the agent to perform the task using a large language model.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Agent.LlmAgent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.Agent.LlmAgent) + com.google.cloud.ces.v1.Agent.LlmAgentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentProto + .internal_static_google_cloud_ces_v1_Agent_LlmAgent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentProto + .internal_static_google_cloud_ces_v1_Agent_LlmAgent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Agent.LlmAgent.class, + com.google.cloud.ces.v1.Agent.LlmAgent.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.Agent.LlmAgent.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentProto + .internal_static_google_cloud_ces_v1_Agent_LlmAgent_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Agent.LlmAgent getDefaultInstanceForType() { + return com.google.cloud.ces.v1.Agent.LlmAgent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.Agent.LlmAgent build() { + com.google.cloud.ces.v1.Agent.LlmAgent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Agent.LlmAgent buildPartial() { + com.google.cloud.ces.v1.Agent.LlmAgent result = + new com.google.cloud.ces.v1.Agent.LlmAgent(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.Agent.LlmAgent) { + return mergeFrom((com.google.cloud.ces.v1.Agent.LlmAgent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.Agent.LlmAgent other) { + if (other == com.google.cloud.ces.v1.Agent.LlmAgent.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Agent.LlmAgent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.Agent.LlmAgent) + private static final com.google.cloud.ces.v1.Agent.LlmAgent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.Agent.LlmAgent(); + } + + public static com.google.cloud.ces.v1.Agent.LlmAgent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LlmAgent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Agent.LlmAgent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface RemoteDialogflowAgentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.Agent.RemoteDialogflowAgent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Required. The
      +     * [Dialogflow](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent)
      +     * agent resource name.
      +     * Format: `projects/{project}/locations/{location}/agents/{agent}`
      +     * 
      + * + * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The agent. + */ + java.lang.String getAgent(); + + /** + * + * + *
      +     * Required. The
      +     * [Dialogflow](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent)
      +     * agent resource name.
      +     * Format: `projects/{project}/locations/{location}/agents/{agent}`
      +     * 
      + * + * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for agent. + */ + com.google.protobuf.ByteString getAgentBytes(); + + /** + * + * + *
      +     * Optional. The flow ID of the flow in the Dialogflow agent.
      +     * 
      + * + * string flow_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The flowId. + */ + java.lang.String getFlowId(); + + /** + * + * + *
      +     * Optional. The flow ID of the flow in the Dialogflow agent.
      +     * 
      + * + * string flow_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for flowId. + */ + com.google.protobuf.ByteString getFlowIdBytes(); + + /** + * + * + *
      +     * Optional. The environment ID of the Dialogflow agent to be used for the
      +     * agent execution. If not specified, the draft environment will be used.
      +     * 
      + * + * string environment_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The environmentId. + */ + java.lang.String getEnvironmentId(); + + /** + * + * + *
      +     * Optional. The environment ID of the Dialogflow agent to be used for the
      +     * agent execution. If not specified, the draft environment will be used.
      +     * 
      + * + * string environment_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for environmentId. + */ + com.google.protobuf.ByteString getEnvironmentIdBytes(); + + /** + * + * + *
      +     * Optional. The mapping of the app variables names to the Dialogflow
      +     * session parameters names to be sent to the Dialogflow agent as input.
      +     * 
      + * + * + * map<string, string> input_variable_mapping = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getInputVariableMappingCount(); + + /** + * + * + *
      +     * Optional. The mapping of the app variables names to the Dialogflow
      +     * session parameters names to be sent to the Dialogflow agent as input.
      +     * 
      + * + * + * map<string, string> input_variable_mapping = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsInputVariableMapping(java.lang.String key); + + /** Use {@link #getInputVariableMappingMap()} instead. */ + @java.lang.Deprecated + java.util.Map getInputVariableMapping(); + + /** + * + * + *
      +     * Optional. The mapping of the app variables names to the Dialogflow
      +     * session parameters names to be sent to the Dialogflow agent as input.
      +     * 
      + * + * + * map<string, string> input_variable_mapping = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getInputVariableMappingMap(); + + /** + * + * + *
      +     * Optional. The mapping of the app variables names to the Dialogflow
      +     * session parameters names to be sent to the Dialogflow agent as input.
      +     * 
      + * + * + * map<string, string> input_variable_mapping = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getInputVariableMappingOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
      +     * Optional. The mapping of the app variables names to the Dialogflow
      +     * session parameters names to be sent to the Dialogflow agent as input.
      +     * 
      + * + * + * map<string, string> input_variable_mapping = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getInputVariableMappingOrThrow(java.lang.String key); + + /** + * + * + *
      +     * Optional. The mapping of the Dialogflow session parameters names to the
      +     * app variables names to be sent back to the CES agent after the Dialogflow
      +     * agent execution ends.
      +     * 
      + * + * + * map<string, string> output_variable_mapping = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getOutputVariableMappingCount(); + + /** + * + * + *
      +     * Optional. The mapping of the Dialogflow session parameters names to the
      +     * app variables names to be sent back to the CES agent after the Dialogflow
      +     * agent execution ends.
      +     * 
      + * + * + * map<string, string> output_variable_mapping = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsOutputVariableMapping(java.lang.String key); + + /** Use {@link #getOutputVariableMappingMap()} instead. */ + @java.lang.Deprecated + java.util.Map getOutputVariableMapping(); + + /** + * + * + *
      +     * Optional. The mapping of the Dialogflow session parameters names to the
      +     * app variables names to be sent back to the CES agent after the Dialogflow
      +     * agent execution ends.
      +     * 
      + * + * + * map<string, string> output_variable_mapping = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getOutputVariableMappingMap(); + + /** + * + * + *
      +     * Optional. The mapping of the Dialogflow session parameters names to the
      +     * app variables names to be sent back to the CES agent after the Dialogflow
      +     * agent execution ends.
      +     * 
      + * + * + * map<string, string> output_variable_mapping = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getOutputVariableMappingOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
      +     * Optional. The mapping of the Dialogflow session parameters names to the
      +     * app variables names to be sent back to the CES agent after the Dialogflow
      +     * agent execution ends.
      +     * 
      + * + * + * map<string, string> output_variable_mapping = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getOutputVariableMappingOrThrow(java.lang.String key); + + /** + * + * + *
      +     * Optional. Indicates whether to respect the message-level interruption
      +     * settings configured in the Dialogflow agent.
      +     *
      +     * * If false: all response messages from the Dialogflow agent follow the
      +     * app-level barge-in settings.
      +     * * If true: only response messages with
      +     * [`allow_playback_interruption`](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#text)
      +     * set to true will be interruptable, all other messages follow the
      +     * app-level barge-in settings.
      +     * 
      + * + * + * bool respect_response_interruption_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The respectResponseInterruptionSettings. + */ + boolean getRespectResponseInterruptionSettings(); + } + + /** + * + * + *
      +   * The agent which will transfer execution to a remote
      +   * [Dialogflow
      +   * CX](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent) agent.
      +   * The Dialogflow agent will process subsequent user queries until the session
      +   * ends or flow ends, and the control is transferred back to the parent CES
      +   * agent.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Agent.RemoteDialogflowAgent} + */ + public static final class RemoteDialogflowAgent extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.Agent.RemoteDialogflowAgent) + RemoteDialogflowAgentOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RemoteDialogflowAgent"); + } + + // Use RemoteDialogflowAgent.newBuilder() to construct. + private RemoteDialogflowAgent(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RemoteDialogflowAgent() { + agent_ = ""; + flowId_ = ""; + environmentId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentProto + .internal_static_google_cloud_ces_v1_Agent_RemoteDialogflowAgent_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetInputVariableMapping(); + case 5: + return internalGetOutputVariableMapping(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentProto + .internal_static_google_cloud_ces_v1_Agent_RemoteDialogflowAgent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent.class, + com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent.Builder.class); + } + + public static final int AGENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object agent_ = ""; + + /** + * + * + *
      +     * Required. The
      +     * [Dialogflow](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent)
      +     * agent resource name.
      +     * Format: `projects/{project}/locations/{location}/agents/{agent}`
      +     * 
      + * + * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The agent. + */ + @java.lang.Override + public java.lang.String getAgent() { + java.lang.Object ref = agent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agent_ = s; + return s; + } + } + + /** + * + * + *
      +     * Required. The
      +     * [Dialogflow](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent)
      +     * agent resource name.
      +     * Format: `projects/{project}/locations/{location}/agents/{agent}`
      +     * 
      + * + * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for agent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAgentBytes() { + java.lang.Object ref = agent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FLOW_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object flowId_ = ""; + + /** + * + * + *
      +     * Optional. The flow ID of the flow in the Dialogflow agent.
      +     * 
      + * + * string flow_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The flowId. + */ + @java.lang.Override + public java.lang.String getFlowId() { + java.lang.Object ref = flowId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + flowId_ = s; + return s; + } + } + + /** + * + * + *
      +     * Optional. The flow ID of the flow in the Dialogflow agent.
      +     * 
      + * + * string flow_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for flowId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFlowIdBytes() { + java.lang.Object ref = flowId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + flowId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENVIRONMENT_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object environmentId_ = ""; + + /** + * + * + *
      +     * Optional. The environment ID of the Dialogflow agent to be used for the
      +     * agent execution. If not specified, the draft environment will be used.
      +     * 
      + * + * string environment_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The environmentId. + */ + @java.lang.Override + public java.lang.String getEnvironmentId() { + java.lang.Object ref = environmentId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + environmentId_ = s; + return s; + } + } + + /** + * + * + *
      +     * Optional. The environment ID of the Dialogflow agent to be used for the
      +     * agent execution. If not specified, the draft environment will be used.
      +     * 
      + * + * string environment_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for environmentId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEnvironmentIdBytes() { + java.lang.Object ref = environmentId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + environmentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INPUT_VARIABLE_MAPPING_FIELD_NUMBER = 4; + + private static final class InputVariableMappingDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.ces.v1.AgentProto + .internal_static_google_cloud_ces_v1_Agent_RemoteDialogflowAgent_InputVariableMappingEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField inputVariableMapping_; + + private com.google.protobuf.MapField + internalGetInputVariableMapping() { + if (inputVariableMapping_ == null) { + return com.google.protobuf.MapField.emptyMapField( + InputVariableMappingDefaultEntryHolder.defaultEntry); + } + return inputVariableMapping_; + } + + public int getInputVariableMappingCount() { + return internalGetInputVariableMapping().getMap().size(); + } + + /** + * + * + *
      +     * Optional. The mapping of the app variables names to the Dialogflow
      +     * session parameters names to be sent to the Dialogflow agent as input.
      +     * 
      + * + * + * map<string, string> input_variable_mapping = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsInputVariableMapping(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetInputVariableMapping().getMap().containsKey(key); + } + + /** Use {@link #getInputVariableMappingMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getInputVariableMapping() { + return getInputVariableMappingMap(); + } + + /** + * + * + *
      +     * Optional. The mapping of the app variables names to the Dialogflow
      +     * session parameters names to be sent to the Dialogflow agent as input.
      +     * 
      + * + * + * map<string, string> input_variable_mapping = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getInputVariableMappingMap() { + return internalGetInputVariableMapping().getMap(); + } + + /** + * + * + *
      +     * Optional. The mapping of the app variables names to the Dialogflow
      +     * session parameters names to be sent to the Dialogflow agent as input.
      +     * 
      + * + * + * map<string, string> input_variable_mapping = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getInputVariableMappingOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetInputVariableMapping().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
      +     * Optional. The mapping of the app variables names to the Dialogflow
      +     * session parameters names to be sent to the Dialogflow agent as input.
      +     * 
      + * + * + * map<string, string> input_variable_mapping = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getInputVariableMappingOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetInputVariableMapping().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int OUTPUT_VARIABLE_MAPPING_FIELD_NUMBER = 5; + + private static final class OutputVariableMappingDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.ces.v1.AgentProto + .internal_static_google_cloud_ces_v1_Agent_RemoteDialogflowAgent_OutputVariableMappingEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField outputVariableMapping_; + + private com.google.protobuf.MapField + internalGetOutputVariableMapping() { + if (outputVariableMapping_ == null) { + return com.google.protobuf.MapField.emptyMapField( + OutputVariableMappingDefaultEntryHolder.defaultEntry); + } + return outputVariableMapping_; + } + + public int getOutputVariableMappingCount() { + return internalGetOutputVariableMapping().getMap().size(); + } + + /** + * + * + *
      +     * Optional. The mapping of the Dialogflow session parameters names to the
      +     * app variables names to be sent back to the CES agent after the Dialogflow
      +     * agent execution ends.
      +     * 
      + * + * + * map<string, string> output_variable_mapping = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsOutputVariableMapping(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetOutputVariableMapping().getMap().containsKey(key); + } + + /** Use {@link #getOutputVariableMappingMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getOutputVariableMapping() { + return getOutputVariableMappingMap(); + } + + /** + * + * + *
      +     * Optional. The mapping of the Dialogflow session parameters names to the
      +     * app variables names to be sent back to the CES agent after the Dialogflow
      +     * agent execution ends.
      +     * 
      + * + * + * map<string, string> output_variable_mapping = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getOutputVariableMappingMap() { + return internalGetOutputVariableMapping().getMap(); + } + + /** + * + * + *
      +     * Optional. The mapping of the Dialogflow session parameters names to the
      +     * app variables names to be sent back to the CES agent after the Dialogflow
      +     * agent execution ends.
      +     * 
      + * + * + * map<string, string> output_variable_mapping = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getOutputVariableMappingOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetOutputVariableMapping().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
      +     * Optional. The mapping of the Dialogflow session parameters names to the
      +     * app variables names to be sent back to the CES agent after the Dialogflow
      +     * agent execution ends.
      +     * 
      + * + * + * map<string, string> output_variable_mapping = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getOutputVariableMappingOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetOutputVariableMapping().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int RESPECT_RESPONSE_INTERRUPTION_SETTINGS_FIELD_NUMBER = 6; + private boolean respectResponseInterruptionSettings_ = false; + + /** + * + * + *
      +     * Optional. Indicates whether to respect the message-level interruption
      +     * settings configured in the Dialogflow agent.
      +     *
      +     * * If false: all response messages from the Dialogflow agent follow the
      +     * app-level barge-in settings.
      +     * * If true: only response messages with
      +     * [`allow_playback_interruption`](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#text)
      +     * set to true will be interruptable, all other messages follow the
      +     * app-level barge-in settings.
      +     * 
      + * + * + * bool respect_response_interruption_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The respectResponseInterruptionSettings. + */ + @java.lang.Override + public boolean getRespectResponseInterruptionSettings() { + return respectResponseInterruptionSettings_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, agent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(flowId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, flowId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(environmentId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, environmentId_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, + internalGetInputVariableMapping(), + InputVariableMappingDefaultEntryHolder.defaultEntry, + 4); + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, + internalGetOutputVariableMapping(), + OutputVariableMappingDefaultEntryHolder.defaultEntry, + 5); + if (respectResponseInterruptionSettings_ != false) { + output.writeBool(6, respectResponseInterruptionSettings_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, agent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(flowId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, flowId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(environmentId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, environmentId_); + } + for (java.util.Map.Entry entry : + internalGetInputVariableMapping().getMap().entrySet()) { + com.google.protobuf.MapEntry inputVariableMapping__ = + InputVariableMappingDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, inputVariableMapping__); + } + for (java.util.Map.Entry entry : + internalGetOutputVariableMapping().getMap().entrySet()) { + com.google.protobuf.MapEntry outputVariableMapping__ = + OutputVariableMappingDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, outputVariableMapping__); + } + if (respectResponseInterruptionSettings_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 6, respectResponseInterruptionSettings_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent other = + (com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent) obj; + + if (!getAgent().equals(other.getAgent())) return false; + if (!getFlowId().equals(other.getFlowId())) return false; + if (!getEnvironmentId().equals(other.getEnvironmentId())) return false; + if (!internalGetInputVariableMapping().equals(other.internalGetInputVariableMapping())) + return false; + if (!internalGetOutputVariableMapping().equals(other.internalGetOutputVariableMapping())) + return false; + if (getRespectResponseInterruptionSettings() + != other.getRespectResponseInterruptionSettings()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + AGENT_FIELD_NUMBER; + hash = (53 * hash) + getAgent().hashCode(); + hash = (37 * hash) + FLOW_ID_FIELD_NUMBER; + hash = (53 * hash) + getFlowId().hashCode(); + hash = (37 * hash) + ENVIRONMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getEnvironmentId().hashCode(); + if (!internalGetInputVariableMapping().getMap().isEmpty()) { + hash = (37 * hash) + INPUT_VARIABLE_MAPPING_FIELD_NUMBER; + hash = (53 * hash) + internalGetInputVariableMapping().hashCode(); + } + if (!internalGetOutputVariableMapping().getMap().isEmpty()) { + hash = (37 * hash) + OUTPUT_VARIABLE_MAPPING_FIELD_NUMBER; + hash = (53 * hash) + internalGetOutputVariableMapping().hashCode(); + } + hash = (37 * hash) + RESPECT_RESPONSE_INTERRUPTION_SETTINGS_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getRespectResponseInterruptionSettings()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * The agent which will transfer execution to a remote
      +     * [Dialogflow
      +     * CX](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent) agent.
      +     * The Dialogflow agent will process subsequent user queries until the session
      +     * ends or flow ends, and the control is transferred back to the parent CES
      +     * agent.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Agent.RemoteDialogflowAgent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.Agent.RemoteDialogflowAgent) + com.google.cloud.ces.v1.Agent.RemoteDialogflowAgentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentProto + .internal_static_google_cloud_ces_v1_Agent_RemoteDialogflowAgent_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetInputVariableMapping(); + case 5: + return internalGetOutputVariableMapping(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableInputVariableMapping(); + case 5: + return internalGetMutableOutputVariableMapping(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentProto + .internal_static_google_cloud_ces_v1_Agent_RemoteDialogflowAgent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent.class, + com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + agent_ = ""; + flowId_ = ""; + environmentId_ = ""; + internalGetMutableInputVariableMapping().clear(); + internalGetMutableOutputVariableMapping().clear(); + respectResponseInterruptionSettings_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentProto + .internal_static_google_cloud_ces_v1_Agent_RemoteDialogflowAgent_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent getDefaultInstanceForType() { + return com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent build() { + com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent buildPartial() { + com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent result = + new com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.agent_ = agent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.flowId_ = flowId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.environmentId_ = environmentId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.inputVariableMapping_ = internalGetInputVariableMapping(); + result.inputVariableMapping_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.outputVariableMapping_ = internalGetOutputVariableMapping(); + result.outputVariableMapping_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.respectResponseInterruptionSettings_ = respectResponseInterruptionSettings_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent) { + return mergeFrom((com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent other) { + if (other == com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent.getDefaultInstance()) + return this; + if (!other.getAgent().isEmpty()) { + agent_ = other.agent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFlowId().isEmpty()) { + flowId_ = other.flowId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getEnvironmentId().isEmpty()) { + environmentId_ = other.environmentId_; + bitField0_ |= 0x00000004; + onChanged(); + } + internalGetMutableInputVariableMapping().mergeFrom(other.internalGetInputVariableMapping()); + bitField0_ |= 0x00000008; + internalGetMutableOutputVariableMapping() + .mergeFrom(other.internalGetOutputVariableMapping()); + bitField0_ |= 0x00000010; + if (other.getRespectResponseInterruptionSettings() != false) { + setRespectResponseInterruptionSettings(other.getRespectResponseInterruptionSettings()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + agent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + flowId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + environmentId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry + inputVariableMapping__ = + input.readMessage( + InputVariableMappingDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + internalGetMutableInputVariableMapping() + .getMutableMap() + .put(inputVariableMapping__.getKey(), inputVariableMapping__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.protobuf.MapEntry + outputVariableMapping__ = + input.readMessage( + OutputVariableMappingDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + internalGetMutableOutputVariableMapping() + .getMutableMap() + .put(outputVariableMapping__.getKey(), outputVariableMapping__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + respectResponseInterruptionSettings_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object agent_ = ""; + + /** + * + * + *
      +       * Required. The
      +       * [Dialogflow](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent)
      +       * agent resource name.
      +       * Format: `projects/{project}/locations/{location}/agents/{agent}`
      +       * 
      + * + * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The agent. + */ + public java.lang.String getAgent() { + java.lang.Object ref = agent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Required. The
      +       * [Dialogflow](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent)
      +       * agent resource name.
      +       * Format: `projects/{project}/locations/{location}/agents/{agent}`
      +       * 
      + * + * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for agent. + */ + public com.google.protobuf.ByteString getAgentBytes() { + java.lang.Object ref = agent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Required. The
      +       * [Dialogflow](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent)
      +       * agent resource name.
      +       * Format: `projects/{project}/locations/{location}/agents/{agent}`
      +       * 
      + * + * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The agent to set. + * @return This builder for chaining. + */ + public Builder setAgent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + agent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. The
      +       * [Dialogflow](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent)
      +       * agent resource name.
      +       * Format: `projects/{project}/locations/{location}/agents/{agent}`
      +       * 
      + * + * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAgent() { + agent_ = getDefaultInstance().getAgent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. The
      +       * [Dialogflow](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent)
      +       * agent resource name.
      +       * Format: `projects/{project}/locations/{location}/agents/{agent}`
      +       * 
      + * + * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for agent to set. + * @return This builder for chaining. + */ + public Builder setAgentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + agent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object flowId_ = ""; + + /** + * + * + *
      +       * Optional. The flow ID of the flow in the Dialogflow agent.
      +       * 
      + * + * string flow_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The flowId. + */ + public java.lang.String getFlowId() { + java.lang.Object ref = flowId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + flowId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Optional. The flow ID of the flow in the Dialogflow agent.
      +       * 
      + * + * string flow_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for flowId. + */ + public com.google.protobuf.ByteString getFlowIdBytes() { + java.lang.Object ref = flowId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + flowId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Optional. The flow ID of the flow in the Dialogflow agent.
      +       * 
      + * + * string flow_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The flowId to set. + * @return This builder for chaining. + */ + public Builder setFlowId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + flowId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The flow ID of the flow in the Dialogflow agent.
      +       * 
      + * + * string flow_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFlowId() { + flowId_ = getDefaultInstance().getFlowId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The flow ID of the flow in the Dialogflow agent.
      +       * 
      + * + * string flow_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for flowId to set. + * @return This builder for chaining. + */ + public Builder setFlowIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + flowId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object environmentId_ = ""; + + /** + * + * + *
      +       * Optional. The environment ID of the Dialogflow agent to be used for the
      +       * agent execution. If not specified, the draft environment will be used.
      +       * 
      + * + * string environment_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The environmentId. + */ + public java.lang.String getEnvironmentId() { + java.lang.Object ref = environmentId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + environmentId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Optional. The environment ID of the Dialogflow agent to be used for the
      +       * agent execution. If not specified, the draft environment will be used.
      +       * 
      + * + * string environment_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for environmentId. + */ + public com.google.protobuf.ByteString getEnvironmentIdBytes() { + java.lang.Object ref = environmentId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + environmentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Optional. The environment ID of the Dialogflow agent to be used for the
      +       * agent execution. If not specified, the draft environment will be used.
      +       * 
      + * + * string environment_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The environmentId to set. + * @return This builder for chaining. + */ + public Builder setEnvironmentId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + environmentId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The environment ID of the Dialogflow agent to be used for the
      +       * agent execution. If not specified, the draft environment will be used.
      +       * 
      + * + * string environment_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnvironmentId() { + environmentId_ = getDefaultInstance().getEnvironmentId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The environment ID of the Dialogflow agent to be used for the
      +       * agent execution. If not specified, the draft environment will be used.
      +       * 
      + * + * string environment_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for environmentId to set. + * @return This builder for chaining. + */ + public Builder setEnvironmentIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + environmentId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.MapField + inputVariableMapping_; + + private com.google.protobuf.MapField + internalGetInputVariableMapping() { + if (inputVariableMapping_ == null) { + return com.google.protobuf.MapField.emptyMapField( + InputVariableMappingDefaultEntryHolder.defaultEntry); + } + return inputVariableMapping_; + } + + private com.google.protobuf.MapField + internalGetMutableInputVariableMapping() { + if (inputVariableMapping_ == null) { + inputVariableMapping_ = + com.google.protobuf.MapField.newMapField( + InputVariableMappingDefaultEntryHolder.defaultEntry); + } + if (!inputVariableMapping_.isMutable()) { + inputVariableMapping_ = inputVariableMapping_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return inputVariableMapping_; + } + + public int getInputVariableMappingCount() { + return internalGetInputVariableMapping().getMap().size(); + } + + /** + * + * + *
      +       * Optional. The mapping of the app variables names to the Dialogflow
      +       * session parameters names to be sent to the Dialogflow agent as input.
      +       * 
      + * + * + * map<string, string> input_variable_mapping = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsInputVariableMapping(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetInputVariableMapping().getMap().containsKey(key); + } + + /** Use {@link #getInputVariableMappingMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getInputVariableMapping() { + return getInputVariableMappingMap(); + } + + /** + * + * + *
      +       * Optional. The mapping of the app variables names to the Dialogflow
      +       * session parameters names to be sent to the Dialogflow agent as input.
      +       * 
      + * + * + * map<string, string> input_variable_mapping = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getInputVariableMappingMap() { + return internalGetInputVariableMapping().getMap(); + } + + /** + * + * + *
      +       * Optional. The mapping of the app variables names to the Dialogflow
      +       * session parameters names to be sent to the Dialogflow agent as input.
      +       * 
      + * + * + * map<string, string> input_variable_mapping = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getInputVariableMappingOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetInputVariableMapping().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
      +       * Optional. The mapping of the app variables names to the Dialogflow
      +       * session parameters names to be sent to the Dialogflow agent as input.
      +       * 
      + * + * + * map<string, string> input_variable_mapping = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getInputVariableMappingOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetInputVariableMapping().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearInputVariableMapping() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableInputVariableMapping().getMutableMap().clear(); + return this; + } + + /** + * + * + *
      +       * Optional. The mapping of the app variables names to the Dialogflow
      +       * session parameters names to be sent to the Dialogflow agent as input.
      +       * 
      + * + * + * map<string, string> input_variable_mapping = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeInputVariableMapping(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableInputVariableMapping().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableInputVariableMapping() { + bitField0_ |= 0x00000008; + return internalGetMutableInputVariableMapping().getMutableMap(); + } + + /** + * + * + *
      +       * Optional. The mapping of the app variables names to the Dialogflow
      +       * session parameters names to be sent to the Dialogflow agent as input.
      +       * 
      + * + * + * map<string, string> input_variable_mapping = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putInputVariableMapping(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableInputVariableMapping().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
      +       * Optional. The mapping of the app variables names to the Dialogflow
      +       * session parameters names to be sent to the Dialogflow agent as input.
      +       * 
      + * + * + * map<string, string> input_variable_mapping = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllInputVariableMapping( + java.util.Map values) { + internalGetMutableInputVariableMapping().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private com.google.protobuf.MapField + outputVariableMapping_; + + private com.google.protobuf.MapField + internalGetOutputVariableMapping() { + if (outputVariableMapping_ == null) { + return com.google.protobuf.MapField.emptyMapField( + OutputVariableMappingDefaultEntryHolder.defaultEntry); + } + return outputVariableMapping_; + } + + private com.google.protobuf.MapField + internalGetMutableOutputVariableMapping() { + if (outputVariableMapping_ == null) { + outputVariableMapping_ = + com.google.protobuf.MapField.newMapField( + OutputVariableMappingDefaultEntryHolder.defaultEntry); + } + if (!outputVariableMapping_.isMutable()) { + outputVariableMapping_ = outputVariableMapping_.copy(); + } + bitField0_ |= 0x00000010; + onChanged(); + return outputVariableMapping_; + } + + public int getOutputVariableMappingCount() { + return internalGetOutputVariableMapping().getMap().size(); + } + + /** + * + * + *
      +       * Optional. The mapping of the Dialogflow session parameters names to the
      +       * app variables names to be sent back to the CES agent after the Dialogflow
      +       * agent execution ends.
      +       * 
      + * + * + * map<string, string> output_variable_mapping = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsOutputVariableMapping(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetOutputVariableMapping().getMap().containsKey(key); + } + + /** Use {@link #getOutputVariableMappingMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getOutputVariableMapping() { + return getOutputVariableMappingMap(); + } + + /** + * + * + *
      +       * Optional. The mapping of the Dialogflow session parameters names to the
      +       * app variables names to be sent back to the CES agent after the Dialogflow
      +       * agent execution ends.
      +       * 
      + * + * + * map<string, string> output_variable_mapping = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getOutputVariableMappingMap() { + return internalGetOutputVariableMapping().getMap(); + } + + /** + * + * + *
      +       * Optional. The mapping of the Dialogflow session parameters names to the
      +       * app variables names to be sent back to the CES agent after the Dialogflow
      +       * agent execution ends.
      +       * 
      + * + * + * map<string, string> output_variable_mapping = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getOutputVariableMappingOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetOutputVariableMapping().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
      +       * Optional. The mapping of the Dialogflow session parameters names to the
      +       * app variables names to be sent back to the CES agent after the Dialogflow
      +       * agent execution ends.
      +       * 
      + * + * + * map<string, string> output_variable_mapping = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getOutputVariableMappingOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetOutputVariableMapping().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearOutputVariableMapping() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableOutputVariableMapping().getMutableMap().clear(); + return this; + } + + /** + * + * + *
      +       * Optional. The mapping of the Dialogflow session parameters names to the
      +       * app variables names to be sent back to the CES agent after the Dialogflow
      +       * agent execution ends.
      +       * 
      + * + * + * map<string, string> output_variable_mapping = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeOutputVariableMapping(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableOutputVariableMapping().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableOutputVariableMapping() { + bitField0_ |= 0x00000010; + return internalGetMutableOutputVariableMapping().getMutableMap(); + } + + /** + * + * + *
      +       * Optional. The mapping of the Dialogflow session parameters names to the
      +       * app variables names to be sent back to the CES agent after the Dialogflow
      +       * agent execution ends.
      +       * 
      + * + * + * map<string, string> output_variable_mapping = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putOutputVariableMapping(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableOutputVariableMapping().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; + return this; + } + + /** + * + * + *
      +       * Optional. The mapping of the Dialogflow session parameters names to the
      +       * app variables names to be sent back to the CES agent after the Dialogflow
      +       * agent execution ends.
      +       * 
      + * + * + * map<string, string> output_variable_mapping = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllOutputVariableMapping( + java.util.Map values) { + internalGetMutableOutputVariableMapping().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; + return this; + } + + private boolean respectResponseInterruptionSettings_; + + /** + * + * + *
      +       * Optional. Indicates whether to respect the message-level interruption
      +       * settings configured in the Dialogflow agent.
      +       *
      +       * * If false: all response messages from the Dialogflow agent follow the
      +       * app-level barge-in settings.
      +       * * If true: only response messages with
      +       * [`allow_playback_interruption`](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#text)
      +       * set to true will be interruptable, all other messages follow the
      +       * app-level barge-in settings.
      +       * 
      + * + * + * bool respect_response_interruption_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The respectResponseInterruptionSettings. + */ + @java.lang.Override + public boolean getRespectResponseInterruptionSettings() { + return respectResponseInterruptionSettings_; + } + + /** + * + * + *
      +       * Optional. Indicates whether to respect the message-level interruption
      +       * settings configured in the Dialogflow agent.
      +       *
      +       * * If false: all response messages from the Dialogflow agent follow the
      +       * app-level barge-in settings.
      +       * * If true: only response messages with
      +       * [`allow_playback_interruption`](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#text)
      +       * set to true will be interruptable, all other messages follow the
      +       * app-level barge-in settings.
      +       * 
      + * + * + * bool respect_response_interruption_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The respectResponseInterruptionSettings to set. + * @return This builder for chaining. + */ + public Builder setRespectResponseInterruptionSettings(boolean value) { + + respectResponseInterruptionSettings_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. Indicates whether to respect the message-level interruption
      +       * settings configured in the Dialogflow agent.
      +       *
      +       * * If false: all response messages from the Dialogflow agent follow the
      +       * app-level barge-in settings.
      +       * * If true: only response messages with
      +       * [`allow_playback_interruption`](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#text)
      +       * set to true will be interruptable, all other messages follow the
      +       * app-level barge-in settings.
      +       * 
      + * + * + * bool respect_response_interruption_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearRespectResponseInterruptionSettings() { + bitField0_ = (bitField0_ & ~0x00000020); + respectResponseInterruptionSettings_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Agent.RemoteDialogflowAgent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.Agent.RemoteDialogflowAgent) + private static final com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent(); + } + + public static com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemoteDialogflowAgent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AgentToolsetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.Agent.AgentToolset) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Required. The resource name of the toolset.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +     * 
      + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The toolset. + */ + java.lang.String getToolset(); + + /** + * + * + *
      +     * Required. The resource name of the toolset.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +     * 
      + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolset. + */ + com.google.protobuf.ByteString getToolsetBytes(); + + /** + * + * + *
      +     * Optional. The tools IDs to filter the toolset.
      +     * 
      + * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the toolIds. + */ + java.util.List getToolIdsList(); + + /** + * + * + *
      +     * Optional. The tools IDs to filter the toolset.
      +     * 
      + * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of toolIds. + */ + int getToolIdsCount(); + + /** + * + * + *
      +     * Optional. The tools IDs to filter the toolset.
      +     * 
      + * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The toolIds at the given index. + */ + java.lang.String getToolIds(int index); + + /** + * + * + *
      +     * Optional. The tools IDs to filter the toolset.
      +     * 
      + * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the toolIds at the given index. + */ + com.google.protobuf.ByteString getToolIdsBytes(int index); + } + + /** + * + * + *
      +   * A toolset with a selection of its tools.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Agent.AgentToolset} + */ + public static final class AgentToolset extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.Agent.AgentToolset) + AgentToolsetOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentToolset"); + } + + // Use AgentToolset.newBuilder() to construct. + private AgentToolset(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AgentToolset() { + toolset_ = ""; + toolIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentProto + .internal_static_google_cloud_ces_v1_Agent_AgentToolset_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentProto + .internal_static_google_cloud_ces_v1_Agent_AgentToolset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Agent.AgentToolset.class, + com.google.cloud.ces.v1.Agent.AgentToolset.Builder.class); + } + + public static final int TOOLSET_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object toolset_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the toolset.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +     * 
      + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The toolset. + */ + @java.lang.Override + public java.lang.String getToolset() { + java.lang.Object ref = toolset_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolset_ = s; + return s; + } + } + + /** + * + * + *
      +     * Required. The resource name of the toolset.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +     * 
      + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolset. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolsetBytes() { + java.lang.Object ref = toolset_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOL_IDS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList toolIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +     * Optional. The tools IDs to filter the toolset.
      +     * 
      + * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the toolIds. + */ + public com.google.protobuf.ProtocolStringList getToolIdsList() { + return toolIds_; + } + + /** + * + * + *
      +     * Optional. The tools IDs to filter the toolset.
      +     * 
      + * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of toolIds. + */ + public int getToolIdsCount() { + return toolIds_.size(); + } + + /** + * + * + *
      +     * Optional. The tools IDs to filter the toolset.
      +     * 
      + * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The toolIds at the given index. + */ + public java.lang.String getToolIds(int index) { + return toolIds_.get(index); + } + + /** + * + * + *
      +     * Optional. The tools IDs to filter the toolset.
      +     * 
      + * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the toolIds at the given index. + */ + public com.google.protobuf.ByteString getToolIdsBytes(int index) { + return toolIds_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolset_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, toolset_); + } + for (int i = 0; i < toolIds_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, toolIds_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolset_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, toolset_); + } + { + int dataSize = 0; + for (int i = 0; i < toolIds_.size(); i++) { + dataSize += computeStringSizeNoTag(toolIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getToolIdsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.Agent.AgentToolset)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.Agent.AgentToolset other = + (com.google.cloud.ces.v1.Agent.AgentToolset) obj; + + if (!getToolset().equals(other.getToolset())) return false; + if (!getToolIdsList().equals(other.getToolIdsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOOLSET_FIELD_NUMBER; + hash = (53 * hash) + getToolset().hashCode(); + if (getToolIdsCount() > 0) { + hash = (37 * hash) + TOOL_IDS_FIELD_NUMBER; + hash = (53 * hash) + getToolIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.Agent.AgentToolset parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Agent.AgentToolset parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Agent.AgentToolset parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Agent.AgentToolset parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Agent.AgentToolset parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Agent.AgentToolset parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Agent.AgentToolset parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Agent.AgentToolset parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Agent.AgentToolset parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Agent.AgentToolset parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Agent.AgentToolset parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Agent.AgentToolset parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.Agent.AgentToolset prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * A toolset with a selection of its tools.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Agent.AgentToolset} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.Agent.AgentToolset) + com.google.cloud.ces.v1.Agent.AgentToolsetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentProto + .internal_static_google_cloud_ces_v1_Agent_AgentToolset_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentProto + .internal_static_google_cloud_ces_v1_Agent_AgentToolset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Agent.AgentToolset.class, + com.google.cloud.ces.v1.Agent.AgentToolset.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.Agent.AgentToolset.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + toolset_ = ""; + toolIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentProto + .internal_static_google_cloud_ces_v1_Agent_AgentToolset_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Agent.AgentToolset getDefaultInstanceForType() { + return com.google.cloud.ces.v1.Agent.AgentToolset.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.Agent.AgentToolset build() { + com.google.cloud.ces.v1.Agent.AgentToolset result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Agent.AgentToolset buildPartial() { + com.google.cloud.ces.v1.Agent.AgentToolset result = + new com.google.cloud.ces.v1.Agent.AgentToolset(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.Agent.AgentToolset result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.toolset_ = toolset_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + toolIds_.makeImmutable(); + result.toolIds_ = toolIds_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.Agent.AgentToolset) { + return mergeFrom((com.google.cloud.ces.v1.Agent.AgentToolset) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.Agent.AgentToolset other) { + if (other == com.google.cloud.ces.v1.Agent.AgentToolset.getDefaultInstance()) return this; + if (!other.getToolset().isEmpty()) { + toolset_ = other.toolset_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.toolIds_.isEmpty()) { + if (toolIds_.isEmpty()) { + toolIds_ = other.toolIds_; + bitField0_ |= 0x00000002; + } else { + ensureToolIdsIsMutable(); + toolIds_.addAll(other.toolIds_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + toolset_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureToolIdsIsMutable(); + toolIds_.add(s); + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object toolset_ = ""; + + /** + * + * + *
      +       * Required. The resource name of the toolset.
      +       * Format:
      +       * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +       * 
      + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The toolset. + */ + public java.lang.String getToolset() { + java.lang.Object ref = toolset_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolset_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Required. The resource name of the toolset.
      +       * Format:
      +       * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +       * 
      + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolset. + */ + public com.google.protobuf.ByteString getToolsetBytes() { + java.lang.Object ref = toolset_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Required. The resource name of the toolset.
      +       * Format:
      +       * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +       * 
      + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The toolset to set. + * @return This builder for chaining. + */ + public Builder setToolset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolset_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. The resource name of the toolset.
      +       * Format:
      +       * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +       * 
      + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearToolset() { + toolset_ = getDefaultInstance().getToolset(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. The resource name of the toolset.
      +       * Format:
      +       * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +       * 
      + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for toolset to set. + * @return This builder for chaining. + */ + public Builder setToolsetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolset_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList toolIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureToolIdsIsMutable() { + if (!toolIds_.isModifiable()) { + toolIds_ = new com.google.protobuf.LazyStringArrayList(toolIds_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
      +       * Optional. The tools IDs to filter the toolset.
      +       * 
      + * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the toolIds. + */ + public com.google.protobuf.ProtocolStringList getToolIdsList() { + toolIds_.makeImmutable(); + return toolIds_; + } + + /** + * + * + *
      +       * Optional. The tools IDs to filter the toolset.
      +       * 
      + * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of toolIds. + */ + public int getToolIdsCount() { + return toolIds_.size(); + } + + /** + * + * + *
      +       * Optional. The tools IDs to filter the toolset.
      +       * 
      + * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The toolIds at the given index. + */ + public java.lang.String getToolIds(int index) { + return toolIds_.get(index); + } + + /** + * + * + *
      +       * Optional. The tools IDs to filter the toolset.
      +       * 
      + * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the toolIds at the given index. + */ + public com.google.protobuf.ByteString getToolIdsBytes(int index) { + return toolIds_.getByteString(index); + } + + /** + * + * + *
      +       * Optional. The tools IDs to filter the toolset.
      +       * 
      + * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The toolIds to set. + * @return This builder for chaining. + */ + public Builder setToolIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolIdsIsMutable(); + toolIds_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The tools IDs to filter the toolset.
      +       * 
      + * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The toolIds to add. + * @return This builder for chaining. + */ + public Builder addToolIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolIdsIsMutable(); + toolIds_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The tools IDs to filter the toolset.
      +       * 
      + * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The toolIds to add. + * @return This builder for chaining. + */ + public Builder addAllToolIds(java.lang.Iterable values) { + ensureToolIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, toolIds_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The tools IDs to filter the toolset.
      +       * 
      + * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearToolIds() { + toolIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The tools IDs to filter the toolset.
      +       * 
      + * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the toolIds to add. + * @return This builder for chaining. + */ + public Builder addToolIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureToolIdsIsMutable(); + toolIds_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Agent.AgentToolset) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.Agent.AgentToolset) + private static final com.google.cloud.ces.v1.Agent.AgentToolset DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.Agent.AgentToolset(); + } + + public static com.google.cloud.ces.v1.Agent.AgentToolset getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentToolset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Agent.AgentToolset getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int agentTypeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object agentType_; + + public enum AgentTypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + LLM_AGENT(26), + REMOTE_DIALOGFLOW_AGENT(27), + AGENTTYPE_NOT_SET(0); + private final int value; + + private AgentTypeCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AgentTypeCase valueOf(int value) { + return forNumber(value); + } + + public static AgentTypeCase forNumber(int value) { + switch (value) { + case 26: + return LLM_AGENT; + case 27: + return REMOTE_DIALOGFLOW_AGENT; + case 0: + return AGENTTYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public AgentTypeCase getAgentTypeCase() { + return AgentTypeCase.forNumber(agentTypeCase_); + } + + public static final int LLM_AGENT_FIELD_NUMBER = 26; + + /** + * + * + *
      +   * Optional. The default agent type.
      +   * 
      + * + * + * .google.cloud.ces.v1.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the llmAgent field is set. + */ + @java.lang.Override + public boolean hasLlmAgent() { + return agentTypeCase_ == 26; + } + + /** + * + * + *
      +   * Optional. The default agent type.
      +   * 
      + * + * + * .google.cloud.ces.v1.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The llmAgent. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Agent.LlmAgent getLlmAgent() { + if (agentTypeCase_ == 26) { + return (com.google.cloud.ces.v1.Agent.LlmAgent) agentType_; + } + return com.google.cloud.ces.v1.Agent.LlmAgent.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. The default agent type.
      +   * 
      + * + * + * .google.cloud.ces.v1.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Agent.LlmAgentOrBuilder getLlmAgentOrBuilder() { + if (agentTypeCase_ == 26) { + return (com.google.cloud.ces.v1.Agent.LlmAgent) agentType_; + } + return com.google.cloud.ces.v1.Agent.LlmAgent.getDefaultInstance(); + } + + public static final int REMOTE_DIALOGFLOW_AGENT_FIELD_NUMBER = 27; + + /** + * + * + *
      +   * Optional. The remote
      +   * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
      +   * agent to be used for the agent execution. If this field is set, all other
      +   * agent level properties will be ignored.
      +   *
      +   * Note: If the Dialogflow agent is in a different project from the app, you
      +   * should grant `roles/dialogflow.client` to the CES service agent
      +   * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +   * 
      + * + * + * .google.cloud.ces.v1.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the remoteDialogflowAgent field is set. + */ + @java.lang.Override + public boolean hasRemoteDialogflowAgent() { + return agentTypeCase_ == 27; + } + + /** + * + * + *
      +   * Optional. The remote
      +   * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
      +   * agent to be used for the agent execution. If this field is set, all other
      +   * agent level properties will be ignored.
      +   *
      +   * Note: If the Dialogflow agent is in a different project from the app, you
      +   * should grant `roles/dialogflow.client` to the CES service agent
      +   * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +   * 
      + * + * + * .google.cloud.ces.v1.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The remoteDialogflowAgent. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent getRemoteDialogflowAgent() { + if (agentTypeCase_ == 27) { + return (com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent) agentType_; + } + return com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. The remote
      +   * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
      +   * agent to be used for the agent execution. If this field is set, all other
      +   * agent level properties will be ignored.
      +   *
      +   * Note: If the Dialogflow agent is in a different project from the app, you
      +   * should grant `roles/dialogflow.client` to the CES service agent
      +   * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +   * 
      + * + * + * .google.cloud.ces.v1.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Agent.RemoteDialogflowAgentOrBuilder + getRemoteDialogflowAgentOrBuilder() { + if (agentTypeCase_ == 27) { + return (com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent) agentType_; + } + return com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Identifier. The unique identifier of the agent.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Identifier. The unique identifier of the agent.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
      +   * Required. Display name of the agent.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. Display name of the agent.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
      +   * Optional. Human-readable description of the agent.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. Human-readable description of the agent.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MODEL_SETTINGS_FIELD_NUMBER = 4; + private com.google.cloud.ces.v1.ModelSettings modelSettings_; + + /** + * + * + *
      +   * Optional. Configurations for the LLM model.
      +   * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelSettings field is set. + */ + @java.lang.Override + public boolean hasModelSettings() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Optional. Configurations for the LLM model.
      +   * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelSettings. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ModelSettings getModelSettings() { + return modelSettings_ == null + ? com.google.cloud.ces.v1.ModelSettings.getDefaultInstance() + : modelSettings_; + } + + /** + * + * + *
      +   * Optional. Configurations for the LLM model.
      +   * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ModelSettingsOrBuilder getModelSettingsOrBuilder() { + return modelSettings_ == null + ? com.google.cloud.ces.v1.ModelSettings.getDefaultInstance() + : modelSettings_; + } + + public static final int INSTRUCTION_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object instruction_ = ""; + + /** + * + * + *
      +   * Optional. Instructions for the LLM model to guide the agent's behavior.
      +   * 
      + * + * string instruction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The instruction. + */ + @java.lang.Override + public java.lang.String getInstruction() { + java.lang.Object ref = instruction_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instruction_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. Instructions for the LLM model to guide the agent's behavior.
      +   * 
      + * + * string instruction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for instruction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstructionBytes() { + java.lang.Object ref = instruction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instruction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOLS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList tools_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +   * Optional. List of available tools for the agent.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +   * 
      + * + * + * repeated string tools = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the tools. + */ + public com.google.protobuf.ProtocolStringList getToolsList() { + return tools_; + } + + /** + * + * + *
      +   * Optional. List of available tools for the agent.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +   * 
      + * + * + * repeated string tools = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of tools. + */ + public int getToolsCount() { + return tools_.size(); + } + + /** + * + * + *
      +   * Optional. List of available tools for the agent.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +   * 
      + * + * + * repeated string tools = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The tools at the given index. + */ + public java.lang.String getTools(int index) { + return tools_.get(index); + } + + /** + * + * + *
      +   * Optional. List of available tools for the agent.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +   * 
      + * + * + * repeated string tools = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the tools at the given index. + */ + public com.google.protobuf.ByteString getToolsBytes(int index) { + return tools_.getByteString(index); + } + + public static final int CHILD_AGENTS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList childAgents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +   * Optional. List of child agents in the agent tree.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +   * 
      + * + * + * repeated string child_agents = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the childAgents. + */ + public com.google.protobuf.ProtocolStringList getChildAgentsList() { + return childAgents_; + } + + /** + * + * + *
      +   * Optional. List of child agents in the agent tree.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +   * 
      + * + * + * repeated string child_agents = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of childAgents. + */ + public int getChildAgentsCount() { + return childAgents_.size(); + } + + /** + * + * + *
      +   * Optional. List of child agents in the agent tree.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +   * 
      + * + * + * repeated string child_agents = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The childAgents at the given index. + */ + public java.lang.String getChildAgents(int index) { + return childAgents_.get(index); + } + + /** + * + * + *
      +   * Optional. List of child agents in the agent tree.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +   * 
      + * + * + * repeated string child_agents = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the childAgents at the given index. + */ + public com.google.protobuf.ByteString getChildAgentsBytes(int index) { + return childAgents_.getByteString(index); + } + + public static final int BEFORE_AGENT_CALLBACKS_FIELD_NUMBER = 18; + + @SuppressWarnings("serial") + private java.util.List beforeAgentCallbacks_; + + /** + * + * + *
      +   * Optional. The callbacks to execute before the agent is called.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_agent_callbacks = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getBeforeAgentCallbacksList() { + return beforeAgentCallbacks_; + } + + /** + * + * + *
      +   * Optional. The callbacks to execute before the agent is called.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_agent_callbacks = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getBeforeAgentCallbacksOrBuilderList() { + return beforeAgentCallbacks_; + } + + /** + * + * + *
      +   * Optional. The callbacks to execute before the agent is called.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_agent_callbacks = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getBeforeAgentCallbacksCount() { + return beforeAgentCallbacks_.size(); + } + + /** + * + * + *
      +   * Optional. The callbacks to execute before the agent is called.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_agent_callbacks = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Callback getBeforeAgentCallbacks(int index) { + return beforeAgentCallbacks_.get(index); + } + + /** + * + * + *
      +   * Optional. The callbacks to execute before the agent is called.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_agent_callbacks = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.CallbackOrBuilder getBeforeAgentCallbacksOrBuilder(int index) { + return beforeAgentCallbacks_.get(index); + } + + public static final int AFTER_AGENT_CALLBACKS_FIELD_NUMBER = 19; + + @SuppressWarnings("serial") + private java.util.List afterAgentCallbacks_; + + /** + * + * + *
      +   * Optional. The callbacks to execute after the agent is called.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_agent_callbacks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getAfterAgentCallbacksList() { + return afterAgentCallbacks_; + } + + /** + * + * + *
      +   * Optional. The callbacks to execute after the agent is called.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_agent_callbacks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getAfterAgentCallbacksOrBuilderList() { + return afterAgentCallbacks_; + } + + /** + * + * + *
      +   * Optional. The callbacks to execute after the agent is called.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_agent_callbacks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getAfterAgentCallbacksCount() { + return afterAgentCallbacks_.size(); + } + + /** + * + * + *
      +   * Optional. The callbacks to execute after the agent is called.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_agent_callbacks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Callback getAfterAgentCallbacks(int index) { + return afterAgentCallbacks_.get(index); + } + + /** + * + * + *
      +   * Optional. The callbacks to execute after the agent is called.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_agent_callbacks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.CallbackOrBuilder getAfterAgentCallbacksOrBuilder(int index) { + return afterAgentCallbacks_.get(index); + } + + public static final int BEFORE_MODEL_CALLBACKS_FIELD_NUMBER = 20; + + @SuppressWarnings("serial") + private java.util.List beforeModelCallbacks_; + + /** + * + * + *
      +   * Optional. The callbacks to execute before the model is called. If there are
      +   * multiple calls to the model, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_model_callbacks = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getBeforeModelCallbacksList() { + return beforeModelCallbacks_; + } + + /** + * + * + *
      +   * Optional. The callbacks to execute before the model is called. If there are
      +   * multiple calls to the model, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_model_callbacks = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getBeforeModelCallbacksOrBuilderList() { + return beforeModelCallbacks_; + } + + /** + * + * + *
      +   * Optional. The callbacks to execute before the model is called. If there are
      +   * multiple calls to the model, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_model_callbacks = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getBeforeModelCallbacksCount() { + return beforeModelCallbacks_.size(); + } + + /** + * + * + *
      +   * Optional. The callbacks to execute before the model is called. If there are
      +   * multiple calls to the model, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_model_callbacks = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Callback getBeforeModelCallbacks(int index) { + return beforeModelCallbacks_.get(index); + } + + /** + * + * + *
      +   * Optional. The callbacks to execute before the model is called. If there are
      +   * multiple calls to the model, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_model_callbacks = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.CallbackOrBuilder getBeforeModelCallbacksOrBuilder(int index) { + return beforeModelCallbacks_.get(index); + } + + public static final int AFTER_MODEL_CALLBACKS_FIELD_NUMBER = 21; + + @SuppressWarnings("serial") + private java.util.List afterModelCallbacks_; + + /** + * + * + *
      +   * Optional. The callbacks to execute after the model is called. If there are
      +   * multiple calls to the model, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_model_callbacks = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getAfterModelCallbacksList() { + return afterModelCallbacks_; + } + + /** + * + * + *
      +   * Optional. The callbacks to execute after the model is called. If there are
      +   * multiple calls to the model, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_model_callbacks = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getAfterModelCallbacksOrBuilderList() { + return afterModelCallbacks_; + } + + /** + * + * + *
      +   * Optional. The callbacks to execute after the model is called. If there are
      +   * multiple calls to the model, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_model_callbacks = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getAfterModelCallbacksCount() { + return afterModelCallbacks_.size(); + } + + /** + * + * + *
      +   * Optional. The callbacks to execute after the model is called. If there are
      +   * multiple calls to the model, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_model_callbacks = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Callback getAfterModelCallbacks(int index) { + return afterModelCallbacks_.get(index); + } + + /** + * + * + *
      +   * Optional. The callbacks to execute after the model is called. If there are
      +   * multiple calls to the model, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_model_callbacks = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.CallbackOrBuilder getAfterModelCallbacksOrBuilder(int index) { + return afterModelCallbacks_.get(index); + } + + public static final int BEFORE_TOOL_CALLBACKS_FIELD_NUMBER = 22; + + @SuppressWarnings("serial") + private java.util.List beforeToolCallbacks_; + + /** + * + * + *
      +   * Optional. The callbacks to execute before the tool is invoked. If there are
      +   * multiple tool invocations, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_tool_callbacks = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getBeforeToolCallbacksList() { + return beforeToolCallbacks_; + } + + /** + * + * + *
      +   * Optional. The callbacks to execute before the tool is invoked. If there are
      +   * multiple tool invocations, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_tool_callbacks = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getBeforeToolCallbacksOrBuilderList() { + return beforeToolCallbacks_; + } + + /** + * + * + *
      +   * Optional. The callbacks to execute before the tool is invoked. If there are
      +   * multiple tool invocations, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_tool_callbacks = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getBeforeToolCallbacksCount() { + return beforeToolCallbacks_.size(); + } + + /** + * + * + *
      +   * Optional. The callbacks to execute before the tool is invoked. If there are
      +   * multiple tool invocations, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_tool_callbacks = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Callback getBeforeToolCallbacks(int index) { + return beforeToolCallbacks_.get(index); + } + + /** + * + * + *
      +   * Optional. The callbacks to execute before the tool is invoked. If there are
      +   * multiple tool invocations, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_tool_callbacks = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.CallbackOrBuilder getBeforeToolCallbacksOrBuilder(int index) { + return beforeToolCallbacks_.get(index); + } + + public static final int AFTER_TOOL_CALLBACKS_FIELD_NUMBER = 23; + + @SuppressWarnings("serial") + private java.util.List afterToolCallbacks_; + + /** + * + * + *
      +   * Optional. The callbacks to execute after the tool is invoked. If there are
      +   * multiple tool invocations, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_tool_callbacks = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getAfterToolCallbacksList() { + return afterToolCallbacks_; + } + + /** + * + * + *
      +   * Optional. The callbacks to execute after the tool is invoked. If there are
      +   * multiple tool invocations, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_tool_callbacks = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getAfterToolCallbacksOrBuilderList() { + return afterToolCallbacks_; + } + + /** + * + * + *
      +   * Optional. The callbacks to execute after the tool is invoked. If there are
      +   * multiple tool invocations, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_tool_callbacks = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getAfterToolCallbacksCount() { + return afterToolCallbacks_.size(); + } + + /** + * + * + *
      +   * Optional. The callbacks to execute after the tool is invoked. If there are
      +   * multiple tool invocations, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_tool_callbacks = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Callback getAfterToolCallbacks(int index) { + return afterToolCallbacks_.get(index); + } + + /** + * + * + *
      +   * Optional. The callbacks to execute after the tool is invoked. If there are
      +   * multiple tool invocations, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_tool_callbacks = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.CallbackOrBuilder getAfterToolCallbacksOrBuilder(int index) { + return afterToolCallbacks_.get(index); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 15; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
      +   * Output only. Timestamp when the agent was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Output only. Timestamp when the agent was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
      +   * Output only. Timestamp when the agent was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 16; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
      +   * Output only. Timestamp when the agent was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * Output only. Timestamp when the agent was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
      +   * Output only. Timestamp when the agent was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int GUARDRAILS_FIELD_NUMBER = 17; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList guardrails_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +   * Optional. List of guardrails for the agent.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +   * 
      + * + * + * repeated string guardrails = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the guardrails. + */ + public com.google.protobuf.ProtocolStringList getGuardrailsList() { + return guardrails_; + } + + /** + * + * + *
      +   * Optional. List of guardrails for the agent.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +   * 
      + * + * + * repeated string guardrails = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of guardrails. + */ + public int getGuardrailsCount() { + return guardrails_.size(); + } + + /** + * + * + *
      +   * Optional. List of guardrails for the agent.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +   * 
      + * + * + * repeated string guardrails = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The guardrails at the given index. + */ + public java.lang.String getGuardrails(int index) { + return guardrails_.get(index); + } + + /** + * + * + *
      +   * Optional. List of guardrails for the agent.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +   * 
      + * + * + * repeated string guardrails = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the guardrails at the given index. + */ + public com.google.protobuf.ByteString getGuardrailsBytes(int index) { + return guardrails_.getByteString(index); + } + + public static final int ETAG_FIELD_NUMBER = 24; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
      +   * Etag used to ensure the object hasn't changed during a read-modify-write
      +   * operation. If the etag is empty, the update will overwrite any concurrent
      +   * changes.
      +   * 
      + * + * string etag = 24; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + + /** + * + * + *
      +   * Etag used to ensure the object hasn't changed during a read-modify-write
      +   * operation. If the etag is empty, the update will overwrite any concurrent
      +   * changes.
      +   * 
      + * + * string etag = 24; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOLSETS_FIELD_NUMBER = 28; + + @SuppressWarnings("serial") + private java.util.List toolsets_; + + /** + * + * + *
      +   * Optional. List of toolsets for the agent.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Agent.AgentToolset toolsets = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getToolsetsList() { + return toolsets_; + } + + /** + * + * + *
      +   * Optional. List of toolsets for the agent.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Agent.AgentToolset toolsets = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getToolsetsOrBuilderList() { + return toolsets_; + } + + /** + * + * + *
      +   * Optional. List of toolsets for the agent.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Agent.AgentToolset toolsets = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getToolsetsCount() { + return toolsets_.size(); + } + + /** + * + * + *
      +   * Optional. List of toolsets for the agent.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Agent.AgentToolset toolsets = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Agent.AgentToolset getToolsets(int index) { + return toolsets_.get(index); + } + + /** + * + * + *
      +   * Optional. List of toolsets for the agent.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Agent.AgentToolset toolsets = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Agent.AgentToolsetOrBuilder getToolsetsOrBuilder(int index) { + return toolsets_.get(index); + } + + public static final int GENERATED_SUMMARY_FIELD_NUMBER = 29; + + @SuppressWarnings("serial") + private volatile java.lang.Object generatedSummary_ = ""; + + /** + * + * + *
      +   * Output only. If the agent is generated by the LLM assistant, this field
      +   * contains a descriptive summary of the generation.
      +   * 
      + * + * string generated_summary = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The generatedSummary. + */ + @java.lang.Override + public java.lang.String getGeneratedSummary() { + java.lang.Object ref = generatedSummary_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + generatedSummary_ = s; + return s; + } + } + + /** + * + * + *
      +   * Output only. If the agent is generated by the LLM assistant, this field
      +   * contains a descriptive summary of the generation.
      +   * 
      + * + * string generated_summary = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for generatedSummary. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGeneratedSummaryBytes() { + java.lang.Object ref = generatedSummary_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + generatedSummary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TRANSFER_RULES_FIELD_NUMBER = 30; + + @SuppressWarnings("serial") + private java.util.List transferRules_; + + /** + * + * + *
      +   * Optional. Agent transfer rules.
      +   * If multiple rules match, the first one in the list will be used.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.TransferRule transfer_rules = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getTransferRulesList() { + return transferRules_; + } + + /** + * + * + *
      +   * Optional. Agent transfer rules.
      +   * If multiple rules match, the first one in the list will be used.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.TransferRule transfer_rules = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getTransferRulesOrBuilderList() { + return transferRules_; + } + + /** + * + * + *
      +   * Optional. Agent transfer rules.
      +   * If multiple rules match, the first one in the list will be used.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.TransferRule transfer_rules = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getTransferRulesCount() { + return transferRules_.size(); + } + + /** + * + * + *
      +   * Optional. Agent transfer rules.
      +   * If multiple rules match, the first one in the list will be used.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.TransferRule transfer_rules = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.TransferRule getTransferRules(int index) { + return transferRules_.get(index); + } + + /** + * + * + *
      +   * Optional. Agent transfer rules.
      +   * If multiple rules match, the first one in the list will be used.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.TransferRule transfer_rules = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.TransferRuleOrBuilder getTransferRulesOrBuilder(int index) { + return transferRules_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getModelSettings()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instruction_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, instruction_); + } + for (int i = 0; i < tools_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, tools_.getRaw(i)); + } + for (int i = 0; i < childAgents_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, childAgents_.getRaw(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(15, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(16, getUpdateTime()); + } + for (int i = 0; i < guardrails_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 17, guardrails_.getRaw(i)); + } + for (int i = 0; i < beforeAgentCallbacks_.size(); i++) { + output.writeMessage(18, beforeAgentCallbacks_.get(i)); + } + for (int i = 0; i < afterAgentCallbacks_.size(); i++) { + output.writeMessage(19, afterAgentCallbacks_.get(i)); + } + for (int i = 0; i < beforeModelCallbacks_.size(); i++) { + output.writeMessage(20, beforeModelCallbacks_.get(i)); + } + for (int i = 0; i < afterModelCallbacks_.size(); i++) { + output.writeMessage(21, afterModelCallbacks_.get(i)); + } + for (int i = 0; i < beforeToolCallbacks_.size(); i++) { + output.writeMessage(22, beforeToolCallbacks_.get(i)); + } + for (int i = 0; i < afterToolCallbacks_.size(); i++) { + output.writeMessage(23, afterToolCallbacks_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 24, etag_); + } + if (agentTypeCase_ == 26) { + output.writeMessage(26, (com.google.cloud.ces.v1.Agent.LlmAgent) agentType_); + } + if (agentTypeCase_ == 27) { + output.writeMessage(27, (com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent) agentType_); + } + for (int i = 0; i < toolsets_.size(); i++) { + output.writeMessage(28, toolsets_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(generatedSummary_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 29, generatedSummary_); + } + for (int i = 0; i < transferRules_.size(); i++) { + output.writeMessage(30, transferRules_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getModelSettings()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instruction_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, instruction_); + } + { + int dataSize = 0; + for (int i = 0; i < tools_.size(); i++) { + dataSize += computeStringSizeNoTag(tools_.getRaw(i)); + } + size += dataSize; + size += 1 * getToolsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < childAgents_.size(); i++) { + dataSize += computeStringSizeNoTag(childAgents_.getRaw(i)); + } + size += dataSize; + size += 1 * getChildAgentsList().size(); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getUpdateTime()); + } + { + int dataSize = 0; + for (int i = 0; i < guardrails_.size(); i++) { + dataSize += computeStringSizeNoTag(guardrails_.getRaw(i)); + } + size += dataSize; + size += 2 * getGuardrailsList().size(); + } + for (int i = 0; i < beforeAgentCallbacks_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 18, beforeAgentCallbacks_.get(i)); + } + for (int i = 0; i < afterAgentCallbacks_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(19, afterAgentCallbacks_.get(i)); + } + for (int i = 0; i < beforeModelCallbacks_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 20, beforeModelCallbacks_.get(i)); + } + for (int i = 0; i < afterModelCallbacks_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(21, afterModelCallbacks_.get(i)); + } + for (int i = 0; i < beforeToolCallbacks_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(22, beforeToolCallbacks_.get(i)); + } + for (int i = 0; i < afterToolCallbacks_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(23, afterToolCallbacks_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(24, etag_); + } + if (agentTypeCase_ == 26) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 26, (com.google.cloud.ces.v1.Agent.LlmAgent) agentType_); + } + if (agentTypeCase_ == 27) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 27, (com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent) agentType_); + } + for (int i = 0; i < toolsets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, toolsets_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(generatedSummary_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(29, generatedSummary_); + } + for (int i = 0; i < transferRules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(30, transferRules_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.Agent)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.Agent other = (com.google.cloud.ces.v1.Agent) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (hasModelSettings() != other.hasModelSettings()) return false; + if (hasModelSettings()) { + if (!getModelSettings().equals(other.getModelSettings())) return false; + } + if (!getInstruction().equals(other.getInstruction())) return false; + if (!getToolsList().equals(other.getToolsList())) return false; + if (!getChildAgentsList().equals(other.getChildAgentsList())) return false; + if (!getBeforeAgentCallbacksList().equals(other.getBeforeAgentCallbacksList())) return false; + if (!getAfterAgentCallbacksList().equals(other.getAfterAgentCallbacksList())) return false; + if (!getBeforeModelCallbacksList().equals(other.getBeforeModelCallbacksList())) return false; + if (!getAfterModelCallbacksList().equals(other.getAfterModelCallbacksList())) return false; + if (!getBeforeToolCallbacksList().equals(other.getBeforeToolCallbacksList())) return false; + if (!getAfterToolCallbacksList().equals(other.getAfterToolCallbacksList())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getGuardrailsList().equals(other.getGuardrailsList())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!getToolsetsList().equals(other.getToolsetsList())) return false; + if (!getGeneratedSummary().equals(other.getGeneratedSummary())) return false; + if (!getTransferRulesList().equals(other.getTransferRulesList())) return false; + if (!getAgentTypeCase().equals(other.getAgentTypeCase())) return false; + switch (agentTypeCase_) { + case 26: + if (!getLlmAgent().equals(other.getLlmAgent())) return false; + break; + case 27: + if (!getRemoteDialogflowAgent().equals(other.getRemoteDialogflowAgent())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasModelSettings()) { + hash = (37 * hash) + MODEL_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getModelSettings().hashCode(); + } + hash = (37 * hash) + INSTRUCTION_FIELD_NUMBER; + hash = (53 * hash) + getInstruction().hashCode(); + if (getToolsCount() > 0) { + hash = (37 * hash) + TOOLS_FIELD_NUMBER; + hash = (53 * hash) + getToolsList().hashCode(); + } + if (getChildAgentsCount() > 0) { + hash = (37 * hash) + CHILD_AGENTS_FIELD_NUMBER; + hash = (53 * hash) + getChildAgentsList().hashCode(); + } + if (getBeforeAgentCallbacksCount() > 0) { + hash = (37 * hash) + BEFORE_AGENT_CALLBACKS_FIELD_NUMBER; + hash = (53 * hash) + getBeforeAgentCallbacksList().hashCode(); + } + if (getAfterAgentCallbacksCount() > 0) { + hash = (37 * hash) + AFTER_AGENT_CALLBACKS_FIELD_NUMBER; + hash = (53 * hash) + getAfterAgentCallbacksList().hashCode(); + } + if (getBeforeModelCallbacksCount() > 0) { + hash = (37 * hash) + BEFORE_MODEL_CALLBACKS_FIELD_NUMBER; + hash = (53 * hash) + getBeforeModelCallbacksList().hashCode(); + } + if (getAfterModelCallbacksCount() > 0) { + hash = (37 * hash) + AFTER_MODEL_CALLBACKS_FIELD_NUMBER; + hash = (53 * hash) + getAfterModelCallbacksList().hashCode(); + } + if (getBeforeToolCallbacksCount() > 0) { + hash = (37 * hash) + BEFORE_TOOL_CALLBACKS_FIELD_NUMBER; + hash = (53 * hash) + getBeforeToolCallbacksList().hashCode(); + } + if (getAfterToolCallbacksCount() > 0) { + hash = (37 * hash) + AFTER_TOOL_CALLBACKS_FIELD_NUMBER; + hash = (53 * hash) + getAfterToolCallbacksList().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (getGuardrailsCount() > 0) { + hash = (37 * hash) + GUARDRAILS_FIELD_NUMBER; + hash = (53 * hash) + getGuardrailsList().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + if (getToolsetsCount() > 0) { + hash = (37 * hash) + TOOLSETS_FIELD_NUMBER; + hash = (53 * hash) + getToolsetsList().hashCode(); + } + hash = (37 * hash) + GENERATED_SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getGeneratedSummary().hashCode(); + if (getTransferRulesCount() > 0) { + hash = (37 * hash) + TRANSFER_RULES_FIELD_NUMBER; + hash = (53 * hash) + getTransferRulesList().hashCode(); + } + switch (agentTypeCase_) { + case 26: + hash = (37 * hash) + LLM_AGENT_FIELD_NUMBER; + hash = (53 * hash) + getLlmAgent().hashCode(); + break; + case 27: + hash = (37 * hash) + REMOTE_DIALOGFLOW_AGENT_FIELD_NUMBER; + hash = (53 * hash) + getRemoteDialogflowAgent().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.Agent parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Agent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Agent parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Agent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Agent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Agent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Agent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Agent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Agent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Agent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Agent parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Agent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.Agent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * An agent acts as the fundamental building block that provides instructions to
      +   * the Large Language Model (LLM) for executing specific tasks.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Agent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.Agent) + com.google.cloud.ces.v1.AgentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentProto + .internal_static_google_cloud_ces_v1_Agent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentProto + .internal_static_google_cloud_ces_v1_Agent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Agent.class, com.google.cloud.ces.v1.Agent.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.Agent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetModelSettingsFieldBuilder(); + internalGetBeforeAgentCallbacksFieldBuilder(); + internalGetAfterAgentCallbacksFieldBuilder(); + internalGetBeforeModelCallbacksFieldBuilder(); + internalGetAfterModelCallbacksFieldBuilder(); + internalGetBeforeToolCallbacksFieldBuilder(); + internalGetAfterToolCallbacksFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetToolsetsFieldBuilder(); + internalGetTransferRulesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (llmAgentBuilder_ != null) { + llmAgentBuilder_.clear(); + } + if (remoteDialogflowAgentBuilder_ != null) { + remoteDialogflowAgentBuilder_.clear(); + } + name_ = ""; + displayName_ = ""; + description_ = ""; + modelSettings_ = null; + if (modelSettingsBuilder_ != null) { + modelSettingsBuilder_.dispose(); + modelSettingsBuilder_ = null; + } + instruction_ = ""; + tools_ = com.google.protobuf.LazyStringArrayList.emptyList(); + childAgents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + if (beforeAgentCallbacksBuilder_ == null) { + beforeAgentCallbacks_ = java.util.Collections.emptyList(); + } else { + beforeAgentCallbacks_ = null; + beforeAgentCallbacksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); + if (afterAgentCallbacksBuilder_ == null) { + afterAgentCallbacks_ = java.util.Collections.emptyList(); + } else { + afterAgentCallbacks_ = null; + afterAgentCallbacksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000400); + if (beforeModelCallbacksBuilder_ == null) { + beforeModelCallbacks_ = java.util.Collections.emptyList(); + } else { + beforeModelCallbacks_ = null; + beforeModelCallbacksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000800); + if (afterModelCallbacksBuilder_ == null) { + afterModelCallbacks_ = java.util.Collections.emptyList(); + } else { + afterModelCallbacks_ = null; + afterModelCallbacksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00001000); + if (beforeToolCallbacksBuilder_ == null) { + beforeToolCallbacks_ = java.util.Collections.emptyList(); + } else { + beforeToolCallbacks_ = null; + beforeToolCallbacksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00002000); + if (afterToolCallbacksBuilder_ == null) { + afterToolCallbacks_ = java.util.Collections.emptyList(); + } else { + afterToolCallbacks_ = null; + afterToolCallbacksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00004000); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + guardrails_ = com.google.protobuf.LazyStringArrayList.emptyList(); + etag_ = ""; + if (toolsetsBuilder_ == null) { + toolsets_ = java.util.Collections.emptyList(); + } else { + toolsets_ = null; + toolsetsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00080000); + generatedSummary_ = ""; + if (transferRulesBuilder_ == null) { + transferRules_ = java.util.Collections.emptyList(); + } else { + transferRules_ = null; + transferRulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00200000); + agentTypeCase_ = 0; + agentType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentProto + .internal_static_google_cloud_ces_v1_Agent_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Agent getDefaultInstanceForType() { + return com.google.cloud.ces.v1.Agent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.Agent build() { + com.google.cloud.ces.v1.Agent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Agent buildPartial() { + com.google.cloud.ces.v1.Agent result = new com.google.cloud.ces.v1.Agent(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1.Agent result) { + if (beforeAgentCallbacksBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + beforeAgentCallbacks_ = java.util.Collections.unmodifiableList(beforeAgentCallbacks_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.beforeAgentCallbacks_ = beforeAgentCallbacks_; + } else { + result.beforeAgentCallbacks_ = beforeAgentCallbacksBuilder_.build(); + } + if (afterAgentCallbacksBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0)) { + afterAgentCallbacks_ = java.util.Collections.unmodifiableList(afterAgentCallbacks_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.afterAgentCallbacks_ = afterAgentCallbacks_; + } else { + result.afterAgentCallbacks_ = afterAgentCallbacksBuilder_.build(); + } + if (beforeModelCallbacksBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0)) { + beforeModelCallbacks_ = java.util.Collections.unmodifiableList(beforeModelCallbacks_); + bitField0_ = (bitField0_ & ~0x00000800); + } + result.beforeModelCallbacks_ = beforeModelCallbacks_; + } else { + result.beforeModelCallbacks_ = beforeModelCallbacksBuilder_.build(); + } + if (afterModelCallbacksBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0)) { + afterModelCallbacks_ = java.util.Collections.unmodifiableList(afterModelCallbacks_); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.afterModelCallbacks_ = afterModelCallbacks_; + } else { + result.afterModelCallbacks_ = afterModelCallbacksBuilder_.build(); + } + if (beforeToolCallbacksBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0)) { + beforeToolCallbacks_ = java.util.Collections.unmodifiableList(beforeToolCallbacks_); + bitField0_ = (bitField0_ & ~0x00002000); + } + result.beforeToolCallbacks_ = beforeToolCallbacks_; + } else { + result.beforeToolCallbacks_ = beforeToolCallbacksBuilder_.build(); + } + if (afterToolCallbacksBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0)) { + afterToolCallbacks_ = java.util.Collections.unmodifiableList(afterToolCallbacks_); + bitField0_ = (bitField0_ & ~0x00004000); + } + result.afterToolCallbacks_ = afterToolCallbacks_; + } else { + result.afterToolCallbacks_ = afterToolCallbacksBuilder_.build(); + } + if (toolsetsBuilder_ == null) { + if (((bitField0_ & 0x00080000) != 0)) { + toolsets_ = java.util.Collections.unmodifiableList(toolsets_); + bitField0_ = (bitField0_ & ~0x00080000); + } + result.toolsets_ = toolsets_; + } else { + result.toolsets_ = toolsetsBuilder_.build(); + } + if (transferRulesBuilder_ == null) { + if (((bitField0_ & 0x00200000) != 0)) { + transferRules_ = java.util.Collections.unmodifiableList(transferRules_); + bitField0_ = (bitField0_ & ~0x00200000); + } + result.transferRules_ = transferRules_; + } else { + result.transferRules_ = transferRulesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.Agent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.description_ = description_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.modelSettings_ = + modelSettingsBuilder_ == null ? modelSettings_ : modelSettingsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.instruction_ = instruction_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + tools_.makeImmutable(); + result.tools_ = tools_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + childAgents_.makeImmutable(); + result.childAgents_ = childAgents_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + guardrails_.makeImmutable(); + result.guardrails_ = guardrails_; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.generatedSummary_ = generatedSummary_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.ces.v1.Agent result) { + result.agentTypeCase_ = agentTypeCase_; + result.agentType_ = this.agentType_; + if (agentTypeCase_ == 26 && llmAgentBuilder_ != null) { + result.agentType_ = llmAgentBuilder_.build(); + } + if (agentTypeCase_ == 27 && remoteDialogflowAgentBuilder_ != null) { + result.agentType_ = remoteDialogflowAgentBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.Agent) { + return mergeFrom((com.google.cloud.ces.v1.Agent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.Agent other) { + if (other == com.google.cloud.ces.v1.Agent.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasModelSettings()) { + mergeModelSettings(other.getModelSettings()); + } + if (!other.getInstruction().isEmpty()) { + instruction_ = other.instruction_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.tools_.isEmpty()) { + if (tools_.isEmpty()) { + tools_ = other.tools_; + bitField0_ |= 0x00000080; + } else { + ensureToolsIsMutable(); + tools_.addAll(other.tools_); + } + onChanged(); + } + if (!other.childAgents_.isEmpty()) { + if (childAgents_.isEmpty()) { + childAgents_ = other.childAgents_; + bitField0_ |= 0x00000100; + } else { + ensureChildAgentsIsMutable(); + childAgents_.addAll(other.childAgents_); + } + onChanged(); + } + if (beforeAgentCallbacksBuilder_ == null) { + if (!other.beforeAgentCallbacks_.isEmpty()) { + if (beforeAgentCallbacks_.isEmpty()) { + beforeAgentCallbacks_ = other.beforeAgentCallbacks_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureBeforeAgentCallbacksIsMutable(); + beforeAgentCallbacks_.addAll(other.beforeAgentCallbacks_); + } + onChanged(); + } + } else { + if (!other.beforeAgentCallbacks_.isEmpty()) { + if (beforeAgentCallbacksBuilder_.isEmpty()) { + beforeAgentCallbacksBuilder_.dispose(); + beforeAgentCallbacksBuilder_ = null; + beforeAgentCallbacks_ = other.beforeAgentCallbacks_; + bitField0_ = (bitField0_ & ~0x00000200); + beforeAgentCallbacksBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetBeforeAgentCallbacksFieldBuilder() + : null; + } else { + beforeAgentCallbacksBuilder_.addAllMessages(other.beforeAgentCallbacks_); + } + } + } + if (afterAgentCallbacksBuilder_ == null) { + if (!other.afterAgentCallbacks_.isEmpty()) { + if (afterAgentCallbacks_.isEmpty()) { + afterAgentCallbacks_ = other.afterAgentCallbacks_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureAfterAgentCallbacksIsMutable(); + afterAgentCallbacks_.addAll(other.afterAgentCallbacks_); + } + onChanged(); + } + } else { + if (!other.afterAgentCallbacks_.isEmpty()) { + if (afterAgentCallbacksBuilder_.isEmpty()) { + afterAgentCallbacksBuilder_.dispose(); + afterAgentCallbacksBuilder_ = null; + afterAgentCallbacks_ = other.afterAgentCallbacks_; + bitField0_ = (bitField0_ & ~0x00000400); + afterAgentCallbacksBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAfterAgentCallbacksFieldBuilder() + : null; + } else { + afterAgentCallbacksBuilder_.addAllMessages(other.afterAgentCallbacks_); + } + } + } + if (beforeModelCallbacksBuilder_ == null) { + if (!other.beforeModelCallbacks_.isEmpty()) { + if (beforeModelCallbacks_.isEmpty()) { + beforeModelCallbacks_ = other.beforeModelCallbacks_; + bitField0_ = (bitField0_ & ~0x00000800); + } else { + ensureBeforeModelCallbacksIsMutable(); + beforeModelCallbacks_.addAll(other.beforeModelCallbacks_); + } + onChanged(); + } + } else { + if (!other.beforeModelCallbacks_.isEmpty()) { + if (beforeModelCallbacksBuilder_.isEmpty()) { + beforeModelCallbacksBuilder_.dispose(); + beforeModelCallbacksBuilder_ = null; + beforeModelCallbacks_ = other.beforeModelCallbacks_; + bitField0_ = (bitField0_ & ~0x00000800); + beforeModelCallbacksBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetBeforeModelCallbacksFieldBuilder() + : null; + } else { + beforeModelCallbacksBuilder_.addAllMessages(other.beforeModelCallbacks_); + } + } + } + if (afterModelCallbacksBuilder_ == null) { + if (!other.afterModelCallbacks_.isEmpty()) { + if (afterModelCallbacks_.isEmpty()) { + afterModelCallbacks_ = other.afterModelCallbacks_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureAfterModelCallbacksIsMutable(); + afterModelCallbacks_.addAll(other.afterModelCallbacks_); + } + onChanged(); + } + } else { + if (!other.afterModelCallbacks_.isEmpty()) { + if (afterModelCallbacksBuilder_.isEmpty()) { + afterModelCallbacksBuilder_.dispose(); + afterModelCallbacksBuilder_ = null; + afterModelCallbacks_ = other.afterModelCallbacks_; + bitField0_ = (bitField0_ & ~0x00001000); + afterModelCallbacksBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAfterModelCallbacksFieldBuilder() + : null; + } else { + afterModelCallbacksBuilder_.addAllMessages(other.afterModelCallbacks_); + } + } + } + if (beforeToolCallbacksBuilder_ == null) { + if (!other.beforeToolCallbacks_.isEmpty()) { + if (beforeToolCallbacks_.isEmpty()) { + beforeToolCallbacks_ = other.beforeToolCallbacks_; + bitField0_ = (bitField0_ & ~0x00002000); + } else { + ensureBeforeToolCallbacksIsMutable(); + beforeToolCallbacks_.addAll(other.beforeToolCallbacks_); + } + onChanged(); + } + } else { + if (!other.beforeToolCallbacks_.isEmpty()) { + if (beforeToolCallbacksBuilder_.isEmpty()) { + beforeToolCallbacksBuilder_.dispose(); + beforeToolCallbacksBuilder_ = null; + beforeToolCallbacks_ = other.beforeToolCallbacks_; + bitField0_ = (bitField0_ & ~0x00002000); + beforeToolCallbacksBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetBeforeToolCallbacksFieldBuilder() + : null; + } else { + beforeToolCallbacksBuilder_.addAllMessages(other.beforeToolCallbacks_); + } + } + } + if (afterToolCallbacksBuilder_ == null) { + if (!other.afterToolCallbacks_.isEmpty()) { + if (afterToolCallbacks_.isEmpty()) { + afterToolCallbacks_ = other.afterToolCallbacks_; + bitField0_ = (bitField0_ & ~0x00004000); + } else { + ensureAfterToolCallbacksIsMutable(); + afterToolCallbacks_.addAll(other.afterToolCallbacks_); + } + onChanged(); + } + } else { + if (!other.afterToolCallbacks_.isEmpty()) { + if (afterToolCallbacksBuilder_.isEmpty()) { + afterToolCallbacksBuilder_.dispose(); + afterToolCallbacksBuilder_ = null; + afterToolCallbacks_ = other.afterToolCallbacks_; + bitField0_ = (bitField0_ & ~0x00004000); + afterToolCallbacksBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAfterToolCallbacksFieldBuilder() + : null; + } else { + afterToolCallbacksBuilder_.addAllMessages(other.afterToolCallbacks_); + } + } + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.guardrails_.isEmpty()) { + if (guardrails_.isEmpty()) { + guardrails_ = other.guardrails_; + bitField0_ |= 0x00020000; + } else { + ensureGuardrailsIsMutable(); + guardrails_.addAll(other.guardrails_); + } + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00040000; + onChanged(); + } + if (toolsetsBuilder_ == null) { + if (!other.toolsets_.isEmpty()) { + if (toolsets_.isEmpty()) { + toolsets_ = other.toolsets_; + bitField0_ = (bitField0_ & ~0x00080000); + } else { + ensureToolsetsIsMutable(); + toolsets_.addAll(other.toolsets_); + } + onChanged(); + } + } else { + if (!other.toolsets_.isEmpty()) { + if (toolsetsBuilder_.isEmpty()) { + toolsetsBuilder_.dispose(); + toolsetsBuilder_ = null; + toolsets_ = other.toolsets_; + bitField0_ = (bitField0_ & ~0x00080000); + toolsetsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetToolsetsFieldBuilder() + : null; + } else { + toolsetsBuilder_.addAllMessages(other.toolsets_); + } + } + } + if (!other.getGeneratedSummary().isEmpty()) { + generatedSummary_ = other.generatedSummary_; + bitField0_ |= 0x00100000; + onChanged(); + } + if (transferRulesBuilder_ == null) { + if (!other.transferRules_.isEmpty()) { + if (transferRules_.isEmpty()) { + transferRules_ = other.transferRules_; + bitField0_ = (bitField0_ & ~0x00200000); + } else { + ensureTransferRulesIsMutable(); + transferRules_.addAll(other.transferRules_); + } + onChanged(); + } + } else { + if (!other.transferRules_.isEmpty()) { + if (transferRulesBuilder_.isEmpty()) { + transferRulesBuilder_.dispose(); + transferRulesBuilder_ = null; + transferRules_ = other.transferRules_; + bitField0_ = (bitField0_ & ~0x00200000); + transferRulesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetTransferRulesFieldBuilder() + : null; + } else { + transferRulesBuilder_.addAllMessages(other.transferRules_); + } + } + } + switch (other.getAgentTypeCase()) { + case LLM_AGENT: + { + mergeLlmAgent(other.getLlmAgent()); + break; + } + case REMOTE_DIALOGFLOW_AGENT: + { + mergeRemoteDialogflowAgent(other.getRemoteDialogflowAgent()); + break; + } + case AGENTTYPE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetModelSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 34 + case 50: + { + instruction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureToolsIsMutable(); + tools_.add(s); + break; + } // case 58 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureChildAgentsIsMutable(); + childAgents_.add(s); + break; + } // case 66 + case 122: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 122 + case 130: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 130 + case 138: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureGuardrailsIsMutable(); + guardrails_.add(s); + break; + } // case 138 + case 146: + { + com.google.cloud.ces.v1.Callback m = + input.readMessage(com.google.cloud.ces.v1.Callback.parser(), extensionRegistry); + if (beforeAgentCallbacksBuilder_ == null) { + ensureBeforeAgentCallbacksIsMutable(); + beforeAgentCallbacks_.add(m); + } else { + beforeAgentCallbacksBuilder_.addMessage(m); + } + break; + } // case 146 + case 154: + { + com.google.cloud.ces.v1.Callback m = + input.readMessage(com.google.cloud.ces.v1.Callback.parser(), extensionRegistry); + if (afterAgentCallbacksBuilder_ == null) { + ensureAfterAgentCallbacksIsMutable(); + afterAgentCallbacks_.add(m); + } else { + afterAgentCallbacksBuilder_.addMessage(m); + } + break; + } // case 154 + case 162: + { + com.google.cloud.ces.v1.Callback m = + input.readMessage(com.google.cloud.ces.v1.Callback.parser(), extensionRegistry); + if (beforeModelCallbacksBuilder_ == null) { + ensureBeforeModelCallbacksIsMutable(); + beforeModelCallbacks_.add(m); + } else { + beforeModelCallbacksBuilder_.addMessage(m); + } + break; + } // case 162 + case 170: + { + com.google.cloud.ces.v1.Callback m = + input.readMessage(com.google.cloud.ces.v1.Callback.parser(), extensionRegistry); + if (afterModelCallbacksBuilder_ == null) { + ensureAfterModelCallbacksIsMutable(); + afterModelCallbacks_.add(m); + } else { + afterModelCallbacksBuilder_.addMessage(m); + } + break; + } // case 170 + case 178: + { + com.google.cloud.ces.v1.Callback m = + input.readMessage(com.google.cloud.ces.v1.Callback.parser(), extensionRegistry); + if (beforeToolCallbacksBuilder_ == null) { + ensureBeforeToolCallbacksIsMutable(); + beforeToolCallbacks_.add(m); + } else { + beforeToolCallbacksBuilder_.addMessage(m); + } + break; + } // case 178 + case 186: + { + com.google.cloud.ces.v1.Callback m = + input.readMessage(com.google.cloud.ces.v1.Callback.parser(), extensionRegistry); + if (afterToolCallbacksBuilder_ == null) { + ensureAfterToolCallbacksIsMutable(); + afterToolCallbacks_.add(m); + } else { + afterToolCallbacksBuilder_.addMessage(m); + } + break; + } // case 186 + case 194: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00040000; + break; + } // case 194 + case 210: + { + input.readMessage( + internalGetLlmAgentFieldBuilder().getBuilder(), extensionRegistry); + agentTypeCase_ = 26; + break; + } // case 210 + case 218: + { + input.readMessage( + internalGetRemoteDialogflowAgentFieldBuilder().getBuilder(), extensionRegistry); + agentTypeCase_ = 27; + break; + } // case 218 + case 226: + { + com.google.cloud.ces.v1.Agent.AgentToolset m = + input.readMessage( + com.google.cloud.ces.v1.Agent.AgentToolset.parser(), extensionRegistry); + if (toolsetsBuilder_ == null) { + ensureToolsetsIsMutable(); + toolsets_.add(m); + } else { + toolsetsBuilder_.addMessage(m); + } + break; + } // case 226 + case 234: + { + generatedSummary_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00100000; + break; + } // case 234 + case 242: + { + com.google.cloud.ces.v1.TransferRule m = + input.readMessage( + com.google.cloud.ces.v1.TransferRule.parser(), extensionRegistry); + if (transferRulesBuilder_ == null) { + ensureTransferRulesIsMutable(); + transferRules_.add(m); + } else { + transferRulesBuilder_.addMessage(m); + } + break; + } // case 242 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int agentTypeCase_ = 0; + private java.lang.Object agentType_; + + public AgentTypeCase getAgentTypeCase() { + return AgentTypeCase.forNumber(agentTypeCase_); + } + + public Builder clearAgentType() { + agentTypeCase_ = 0; + agentType_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Agent.LlmAgent, + com.google.cloud.ces.v1.Agent.LlmAgent.Builder, + com.google.cloud.ces.v1.Agent.LlmAgentOrBuilder> + llmAgentBuilder_; + + /** + * + * + *
      +     * Optional. The default agent type.
      +     * 
      + * + * + * .google.cloud.ces.v1.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the llmAgent field is set. + */ + @java.lang.Override + public boolean hasLlmAgent() { + return agentTypeCase_ == 26; + } + + /** + * + * + *
      +     * Optional. The default agent type.
      +     * 
      + * + * + * .google.cloud.ces.v1.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The llmAgent. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Agent.LlmAgent getLlmAgent() { + if (llmAgentBuilder_ == null) { + if (agentTypeCase_ == 26) { + return (com.google.cloud.ces.v1.Agent.LlmAgent) agentType_; + } + return com.google.cloud.ces.v1.Agent.LlmAgent.getDefaultInstance(); + } else { + if (agentTypeCase_ == 26) { + return llmAgentBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.Agent.LlmAgent.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The default agent type.
      +     * 
      + * + * + * .google.cloud.ces.v1.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLlmAgent(com.google.cloud.ces.v1.Agent.LlmAgent value) { + if (llmAgentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentType_ = value; + onChanged(); + } else { + llmAgentBuilder_.setMessage(value); + } + agentTypeCase_ = 26; + return this; + } + + /** + * + * + *
      +     * Optional. The default agent type.
      +     * 
      + * + * + * .google.cloud.ces.v1.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLlmAgent(com.google.cloud.ces.v1.Agent.LlmAgent.Builder builderForValue) { + if (llmAgentBuilder_ == null) { + agentType_ = builderForValue.build(); + onChanged(); + } else { + llmAgentBuilder_.setMessage(builderForValue.build()); + } + agentTypeCase_ = 26; + return this; + } + + /** + * + * + *
      +     * Optional. The default agent type.
      +     * 
      + * + * + * .google.cloud.ces.v1.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeLlmAgent(com.google.cloud.ces.v1.Agent.LlmAgent value) { + if (llmAgentBuilder_ == null) { + if (agentTypeCase_ == 26 + && agentType_ != com.google.cloud.ces.v1.Agent.LlmAgent.getDefaultInstance()) { + agentType_ = + com.google.cloud.ces.v1.Agent.LlmAgent.newBuilder( + (com.google.cloud.ces.v1.Agent.LlmAgent) agentType_) + .mergeFrom(value) + .buildPartial(); + } else { + agentType_ = value; + } + onChanged(); + } else { + if (agentTypeCase_ == 26) { + llmAgentBuilder_.mergeFrom(value); + } else { + llmAgentBuilder_.setMessage(value); + } + } + agentTypeCase_ = 26; + return this; + } + + /** + * + * + *
      +     * Optional. The default agent type.
      +     * 
      + * + * + * .google.cloud.ces.v1.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearLlmAgent() { + if (llmAgentBuilder_ == null) { + if (agentTypeCase_ == 26) { + agentTypeCase_ = 0; + agentType_ = null; + onChanged(); + } + } else { + if (agentTypeCase_ == 26) { + agentTypeCase_ = 0; + agentType_ = null; + } + llmAgentBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The default agent type.
      +     * 
      + * + * + * .google.cloud.ces.v1.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Agent.LlmAgent.Builder getLlmAgentBuilder() { + return internalGetLlmAgentFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The default agent type.
      +     * 
      + * + * + * .google.cloud.ces.v1.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Agent.LlmAgentOrBuilder getLlmAgentOrBuilder() { + if ((agentTypeCase_ == 26) && (llmAgentBuilder_ != null)) { + return llmAgentBuilder_.getMessageOrBuilder(); + } else { + if (agentTypeCase_ == 26) { + return (com.google.cloud.ces.v1.Agent.LlmAgent) agentType_; + } + return com.google.cloud.ces.v1.Agent.LlmAgent.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The default agent type.
      +     * 
      + * + * + * .google.cloud.ces.v1.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Agent.LlmAgent, + com.google.cloud.ces.v1.Agent.LlmAgent.Builder, + com.google.cloud.ces.v1.Agent.LlmAgentOrBuilder> + internalGetLlmAgentFieldBuilder() { + if (llmAgentBuilder_ == null) { + if (!(agentTypeCase_ == 26)) { + agentType_ = com.google.cloud.ces.v1.Agent.LlmAgent.getDefaultInstance(); + } + llmAgentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Agent.LlmAgent, + com.google.cloud.ces.v1.Agent.LlmAgent.Builder, + com.google.cloud.ces.v1.Agent.LlmAgentOrBuilder>( + (com.google.cloud.ces.v1.Agent.LlmAgent) agentType_, + getParentForChildren(), + isClean()); + agentType_ = null; + } + agentTypeCase_ = 26; + onChanged(); + return llmAgentBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent, + com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent.Builder, + com.google.cloud.ces.v1.Agent.RemoteDialogflowAgentOrBuilder> + remoteDialogflowAgentBuilder_; + + /** + * + * + *
      +     * Optional. The remote
      +     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
      +     * agent to be used for the agent execution. If this field is set, all other
      +     * agent level properties will be ignored.
      +     *
      +     * Note: If the Dialogflow agent is in a different project from the app, you
      +     * should grant `roles/dialogflow.client` to the CES service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +     * 
      + * + * + * .google.cloud.ces.v1.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the remoteDialogflowAgent field is set. + */ + @java.lang.Override + public boolean hasRemoteDialogflowAgent() { + return agentTypeCase_ == 27; + } + + /** + * + * + *
      +     * Optional. The remote
      +     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
      +     * agent to be used for the agent execution. If this field is set, all other
      +     * agent level properties will be ignored.
      +     *
      +     * Note: If the Dialogflow agent is in a different project from the app, you
      +     * should grant `roles/dialogflow.client` to the CES service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +     * 
      + * + * + * .google.cloud.ces.v1.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The remoteDialogflowAgent. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent getRemoteDialogflowAgent() { + if (remoteDialogflowAgentBuilder_ == null) { + if (agentTypeCase_ == 27) { + return (com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent) agentType_; + } + return com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent.getDefaultInstance(); + } else { + if (agentTypeCase_ == 27) { + return remoteDialogflowAgentBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The remote
      +     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
      +     * agent to be used for the agent execution. If this field is set, all other
      +     * agent level properties will be ignored.
      +     *
      +     * Note: If the Dialogflow agent is in a different project from the app, you
      +     * should grant `roles/dialogflow.client` to the CES service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +     * 
      + * + * + * .google.cloud.ces.v1.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRemoteDialogflowAgent( + com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent value) { + if (remoteDialogflowAgentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentType_ = value; + onChanged(); + } else { + remoteDialogflowAgentBuilder_.setMessage(value); + } + agentTypeCase_ = 27; + return this; + } + + /** + * + * + *
      +     * Optional. The remote
      +     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
      +     * agent to be used for the agent execution. If this field is set, all other
      +     * agent level properties will be ignored.
      +     *
      +     * Note: If the Dialogflow agent is in a different project from the app, you
      +     * should grant `roles/dialogflow.client` to the CES service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +     * 
      + * + * + * .google.cloud.ces.v1.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRemoteDialogflowAgent( + com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent.Builder builderForValue) { + if (remoteDialogflowAgentBuilder_ == null) { + agentType_ = builderForValue.build(); + onChanged(); + } else { + remoteDialogflowAgentBuilder_.setMessage(builderForValue.build()); + } + agentTypeCase_ = 27; + return this; + } + + /** + * + * + *
      +     * Optional. The remote
      +     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
      +     * agent to be used for the agent execution. If this field is set, all other
      +     * agent level properties will be ignored.
      +     *
      +     * Note: If the Dialogflow agent is in a different project from the app, you
      +     * should grant `roles/dialogflow.client` to the CES service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +     * 
      + * + * + * .google.cloud.ces.v1.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRemoteDialogflowAgent( + com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent value) { + if (remoteDialogflowAgentBuilder_ == null) { + if (agentTypeCase_ == 27 + && agentType_ + != com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent.getDefaultInstance()) { + agentType_ = + com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent.newBuilder( + (com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent) agentType_) + .mergeFrom(value) + .buildPartial(); + } else { + agentType_ = value; + } + onChanged(); + } else { + if (agentTypeCase_ == 27) { + remoteDialogflowAgentBuilder_.mergeFrom(value); + } else { + remoteDialogflowAgentBuilder_.setMessage(value); + } + } + agentTypeCase_ = 27; + return this; + } + + /** + * + * + *
      +     * Optional. The remote
      +     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
      +     * agent to be used for the agent execution. If this field is set, all other
      +     * agent level properties will be ignored.
      +     *
      +     * Note: If the Dialogflow agent is in a different project from the app, you
      +     * should grant `roles/dialogflow.client` to the CES service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +     * 
      + * + * + * .google.cloud.ces.v1.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRemoteDialogflowAgent() { + if (remoteDialogflowAgentBuilder_ == null) { + if (agentTypeCase_ == 27) { + agentTypeCase_ = 0; + agentType_ = null; + onChanged(); + } + } else { + if (agentTypeCase_ == 27) { + agentTypeCase_ = 0; + agentType_ = null; + } + remoteDialogflowAgentBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The remote
      +     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
      +     * agent to be used for the agent execution. If this field is set, all other
      +     * agent level properties will be ignored.
      +     *
      +     * Note: If the Dialogflow agent is in a different project from the app, you
      +     * should grant `roles/dialogflow.client` to the CES service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +     * 
      + * + * + * .google.cloud.ces.v1.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent.Builder + getRemoteDialogflowAgentBuilder() { + return internalGetRemoteDialogflowAgentFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The remote
      +     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
      +     * agent to be used for the agent execution. If this field is set, all other
      +     * agent level properties will be ignored.
      +     *
      +     * Note: If the Dialogflow agent is in a different project from the app, you
      +     * should grant `roles/dialogflow.client` to the CES service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +     * 
      + * + * + * .google.cloud.ces.v1.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Agent.RemoteDialogflowAgentOrBuilder + getRemoteDialogflowAgentOrBuilder() { + if ((agentTypeCase_ == 27) && (remoteDialogflowAgentBuilder_ != null)) { + return remoteDialogflowAgentBuilder_.getMessageOrBuilder(); + } else { + if (agentTypeCase_ == 27) { + return (com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent) agentType_; + } + return com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The remote
      +     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
      +     * agent to be used for the agent execution. If this field is set, all other
      +     * agent level properties will be ignored.
      +     *
      +     * Note: If the Dialogflow agent is in a different project from the app, you
      +     * should grant `roles/dialogflow.client` to the CES service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +     * 
      + * + * + * .google.cloud.ces.v1.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent, + com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent.Builder, + com.google.cloud.ces.v1.Agent.RemoteDialogflowAgentOrBuilder> + internalGetRemoteDialogflowAgentFieldBuilder() { + if (remoteDialogflowAgentBuilder_ == null) { + if (!(agentTypeCase_ == 27)) { + agentType_ = com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent.getDefaultInstance(); + } + remoteDialogflowAgentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent, + com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent.Builder, + com.google.cloud.ces.v1.Agent.RemoteDialogflowAgentOrBuilder>( + (com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent) agentType_, + getParentForChildren(), + isClean()); + agentType_ = null; + } + agentTypeCase_ = 27; + onChanged(); + return remoteDialogflowAgentBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Identifier. The unique identifier of the agent.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the agent.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the agent.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the agent.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the agent.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
      +     * Required. Display name of the agent.
      +     * 
      + * + * 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; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. Display name of the agent.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. Display name of the agent.
      +     * 
      + * + * 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(); + } + displayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. Display name of the agent.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. Display name of the agent.
      +     * 
      + * + * 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(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
      +     * Optional. Human-readable description of the agent.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Human-readable description of the agent.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Human-readable description of the agent.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Human-readable description of the agent.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Human-readable description of the agent.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.ModelSettings modelSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ModelSettings, + com.google.cloud.ces.v1.ModelSettings.Builder, + com.google.cloud.ces.v1.ModelSettingsOrBuilder> + modelSettingsBuilder_; + + /** + * + * + *
      +     * Optional. Configurations for the LLM model.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelSettings field is set. + */ + public boolean hasModelSettings() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +     * Optional. Configurations for the LLM model.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelSettings. + */ + public com.google.cloud.ces.v1.ModelSettings getModelSettings() { + if (modelSettingsBuilder_ == null) { + return modelSettings_ == null + ? com.google.cloud.ces.v1.ModelSettings.getDefaultInstance() + : modelSettings_; + } else { + return modelSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Configurations for the LLM model.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setModelSettings(com.google.cloud.ces.v1.ModelSettings value) { + if (modelSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modelSettings_ = value; + } else { + modelSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configurations for the LLM model.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setModelSettings(com.google.cloud.ces.v1.ModelSettings.Builder builderForValue) { + if (modelSettingsBuilder_ == null) { + modelSettings_ = builderForValue.build(); + } else { + modelSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configurations for the LLM model.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeModelSettings(com.google.cloud.ces.v1.ModelSettings value) { + if (modelSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && modelSettings_ != null + && modelSettings_ != com.google.cloud.ces.v1.ModelSettings.getDefaultInstance()) { + getModelSettingsBuilder().mergeFrom(value); + } else { + modelSettings_ = value; + } + } else { + modelSettingsBuilder_.mergeFrom(value); + } + if (modelSettings_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Configurations for the LLM model.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearModelSettings() { + bitField0_ = (bitField0_ & ~0x00000020); + modelSettings_ = null; + if (modelSettingsBuilder_ != null) { + modelSettingsBuilder_.dispose(); + modelSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configurations for the LLM model.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ModelSettings.Builder getModelSettingsBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetModelSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Configurations for the LLM model.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ModelSettingsOrBuilder getModelSettingsOrBuilder() { + if (modelSettingsBuilder_ != null) { + return modelSettingsBuilder_.getMessageOrBuilder(); + } else { + return modelSettings_ == null + ? com.google.cloud.ces.v1.ModelSettings.getDefaultInstance() + : modelSettings_; + } + } + + /** + * + * + *
      +     * Optional. Configurations for the LLM model.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ModelSettings, + com.google.cloud.ces.v1.ModelSettings.Builder, + com.google.cloud.ces.v1.ModelSettingsOrBuilder> + internalGetModelSettingsFieldBuilder() { + if (modelSettingsBuilder_ == null) { + modelSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ModelSettings, + com.google.cloud.ces.v1.ModelSettings.Builder, + com.google.cloud.ces.v1.ModelSettingsOrBuilder>( + getModelSettings(), getParentForChildren(), isClean()); + modelSettings_ = null; + } + return modelSettingsBuilder_; + } + + private java.lang.Object instruction_ = ""; + + /** + * + * + *
      +     * Optional. Instructions for the LLM model to guide the agent's behavior.
      +     * 
      + * + * string instruction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The instruction. + */ + public java.lang.String getInstruction() { + java.lang.Object ref = instruction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instruction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Instructions for the LLM model to guide the agent's behavior.
      +     * 
      + * + * string instruction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for instruction. + */ + public com.google.protobuf.ByteString getInstructionBytes() { + java.lang.Object ref = instruction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instruction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Instructions for the LLM model to guide the agent's behavior.
      +     * 
      + * + * string instruction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The instruction to set. + * @return This builder for chaining. + */ + public Builder setInstruction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instruction_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Instructions for the LLM model to guide the agent's behavior.
      +     * 
      + * + * string instruction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearInstruction() { + instruction_ = getDefaultInstance().getInstruction(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Instructions for the LLM model to guide the agent's behavior.
      +     * 
      + * + * string instruction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for instruction to set. + * @return This builder for chaining. + */ + public Builder setInstructionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instruction_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList tools_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureToolsIsMutable() { + if (!tools_.isModifiable()) { + tools_ = new com.google.protobuf.LazyStringArrayList(tools_); + } + bitField0_ |= 0x00000080; + } + + /** + * + * + *
      +     * Optional. List of available tools for the agent.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +     * 
      + * + * + * repeated string tools = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the tools. + */ + public com.google.protobuf.ProtocolStringList getToolsList() { + tools_.makeImmutable(); + return tools_; + } + + /** + * + * + *
      +     * Optional. List of available tools for the agent.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +     * 
      + * + * + * repeated string tools = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of tools. + */ + public int getToolsCount() { + return tools_.size(); + } + + /** + * + * + *
      +     * Optional. List of available tools for the agent.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +     * 
      + * + * + * repeated string tools = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The tools at the given index. + */ + public java.lang.String getTools(int index) { + return tools_.get(index); + } + + /** + * + * + *
      +     * Optional. List of available tools for the agent.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +     * 
      + * + * + * repeated string tools = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the tools at the given index. + */ + public com.google.protobuf.ByteString getToolsBytes(int index) { + return tools_.getByteString(index); + } + + /** + * + * + *
      +     * Optional. List of available tools for the agent.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +     * 
      + * + * + * repeated string tools = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The tools to set. + * @return This builder for chaining. + */ + public Builder setTools(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.set(index, value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. List of available tools for the agent.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +     * 
      + * + * + * repeated string tools = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The tools to add. + * @return This builder for chaining. + */ + public Builder addTools(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. List of available tools for the agent.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +     * 
      + * + * + * repeated string tools = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The tools to add. + * @return This builder for chaining. + */ + public Builder addAllTools(java.lang.Iterable values) { + ensureToolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tools_); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. List of available tools for the agent.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +     * 
      + * + * + * repeated string tools = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTools() { + tools_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. List of available tools for the agent.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +     * 
      + * + * + * repeated string tools = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the tools to add. + * @return This builder for chaining. + */ + public Builder addToolsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureToolsIsMutable(); + tools_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList childAgents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureChildAgentsIsMutable() { + if (!childAgents_.isModifiable()) { + childAgents_ = new com.google.protobuf.LazyStringArrayList(childAgents_); + } + bitField0_ |= 0x00000100; + } + + /** + * + * + *
      +     * Optional. List of child agents in the agent tree.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * repeated string child_agents = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the childAgents. + */ + public com.google.protobuf.ProtocolStringList getChildAgentsList() { + childAgents_.makeImmutable(); + return childAgents_; + } + + /** + * + * + *
      +     * Optional. List of child agents in the agent tree.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * repeated string child_agents = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of childAgents. + */ + public int getChildAgentsCount() { + return childAgents_.size(); + } + + /** + * + * + *
      +     * Optional. List of child agents in the agent tree.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * repeated string child_agents = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The childAgents at the given index. + */ + public java.lang.String getChildAgents(int index) { + return childAgents_.get(index); + } + + /** + * + * + *
      +     * Optional. List of child agents in the agent tree.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * repeated string child_agents = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the childAgents at the given index. + */ + public com.google.protobuf.ByteString getChildAgentsBytes(int index) { + return childAgents_.getByteString(index); + } + + /** + * + * + *
      +     * Optional. List of child agents in the agent tree.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * repeated string child_agents = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The childAgents to set. + * @return This builder for chaining. + */ + public Builder setChildAgents(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureChildAgentsIsMutable(); + childAgents_.set(index, value); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. List of child agents in the agent tree.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * repeated string child_agents = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The childAgents to add. + * @return This builder for chaining. + */ + public Builder addChildAgents(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureChildAgentsIsMutable(); + childAgents_.add(value); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. List of child agents in the agent tree.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * repeated string child_agents = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The childAgents to add. + * @return This builder for chaining. + */ + public Builder addAllChildAgents(java.lang.Iterable values) { + ensureChildAgentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, childAgents_); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. List of child agents in the agent tree.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * repeated string child_agents = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearChildAgents() { + childAgents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. List of child agents in the agent tree.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * repeated string child_agents = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the childAgents to add. + * @return This builder for chaining. + */ + public Builder addChildAgentsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureChildAgentsIsMutable(); + childAgents_.add(value); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.util.List beforeAgentCallbacks_ = + java.util.Collections.emptyList(); + + private void ensureBeforeAgentCallbacksIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + beforeAgentCallbacks_ = + new java.util.ArrayList(beforeAgentCallbacks_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Callback, + com.google.cloud.ces.v1.Callback.Builder, + com.google.cloud.ces.v1.CallbackOrBuilder> + beforeAgentCallbacksBuilder_; + + /** + * + * + *
      +     * Optional. The callbacks to execute before the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_agent_callbacks = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getBeforeAgentCallbacksList() { + if (beforeAgentCallbacksBuilder_ == null) { + return java.util.Collections.unmodifiableList(beforeAgentCallbacks_); + } else { + return beforeAgentCallbacksBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_agent_callbacks = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getBeforeAgentCallbacksCount() { + if (beforeAgentCallbacksBuilder_ == null) { + return beforeAgentCallbacks_.size(); + } else { + return beforeAgentCallbacksBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_agent_callbacks = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Callback getBeforeAgentCallbacks(int index) { + if (beforeAgentCallbacksBuilder_ == null) { + return beforeAgentCallbacks_.get(index); + } else { + return beforeAgentCallbacksBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_agent_callbacks = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBeforeAgentCallbacks(int index, com.google.cloud.ces.v1.Callback value) { + if (beforeAgentCallbacksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBeforeAgentCallbacksIsMutable(); + beforeAgentCallbacks_.set(index, value); + onChanged(); + } else { + beforeAgentCallbacksBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_agent_callbacks = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBeforeAgentCallbacks( + int index, com.google.cloud.ces.v1.Callback.Builder builderForValue) { + if (beforeAgentCallbacksBuilder_ == null) { + ensureBeforeAgentCallbacksIsMutable(); + beforeAgentCallbacks_.set(index, builderForValue.build()); + onChanged(); + } else { + beforeAgentCallbacksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_agent_callbacks = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addBeforeAgentCallbacks(com.google.cloud.ces.v1.Callback value) { + if (beforeAgentCallbacksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBeforeAgentCallbacksIsMutable(); + beforeAgentCallbacks_.add(value); + onChanged(); + } else { + beforeAgentCallbacksBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_agent_callbacks = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addBeforeAgentCallbacks(int index, com.google.cloud.ces.v1.Callback value) { + if (beforeAgentCallbacksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBeforeAgentCallbacksIsMutable(); + beforeAgentCallbacks_.add(index, value); + onChanged(); + } else { + beforeAgentCallbacksBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_agent_callbacks = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addBeforeAgentCallbacks( + com.google.cloud.ces.v1.Callback.Builder builderForValue) { + if (beforeAgentCallbacksBuilder_ == null) { + ensureBeforeAgentCallbacksIsMutable(); + beforeAgentCallbacks_.add(builderForValue.build()); + onChanged(); + } else { + beforeAgentCallbacksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_agent_callbacks = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addBeforeAgentCallbacks( + int index, com.google.cloud.ces.v1.Callback.Builder builderForValue) { + if (beforeAgentCallbacksBuilder_ == null) { + ensureBeforeAgentCallbacksIsMutable(); + beforeAgentCallbacks_.add(index, builderForValue.build()); + onChanged(); + } else { + beforeAgentCallbacksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_agent_callbacks = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllBeforeAgentCallbacks( + java.lang.Iterable values) { + if (beforeAgentCallbacksBuilder_ == null) { + ensureBeforeAgentCallbacksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, beforeAgentCallbacks_); + onChanged(); + } else { + beforeAgentCallbacksBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_agent_callbacks = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearBeforeAgentCallbacks() { + if (beforeAgentCallbacksBuilder_ == null) { + beforeAgentCallbacks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + beforeAgentCallbacksBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_agent_callbacks = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeBeforeAgentCallbacks(int index) { + if (beforeAgentCallbacksBuilder_ == null) { + ensureBeforeAgentCallbacksIsMutable(); + beforeAgentCallbacks_.remove(index); + onChanged(); + } else { + beforeAgentCallbacksBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_agent_callbacks = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Callback.Builder getBeforeAgentCallbacksBuilder(int index) { + return internalGetBeforeAgentCallbacksFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_agent_callbacks = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.CallbackOrBuilder getBeforeAgentCallbacksOrBuilder(int index) { + if (beforeAgentCallbacksBuilder_ == null) { + return beforeAgentCallbacks_.get(index); + } else { + return beforeAgentCallbacksBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_agent_callbacks = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getBeforeAgentCallbacksOrBuilderList() { + if (beforeAgentCallbacksBuilder_ != null) { + return beforeAgentCallbacksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(beforeAgentCallbacks_); + } + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_agent_callbacks = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Callback.Builder addBeforeAgentCallbacksBuilder() { + return internalGetBeforeAgentCallbacksFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.Callback.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_agent_callbacks = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Callback.Builder addBeforeAgentCallbacksBuilder(int index) { + return internalGetBeforeAgentCallbacksFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.Callback.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_agent_callbacks = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getBeforeAgentCallbacksBuilderList() { + return internalGetBeforeAgentCallbacksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Callback, + com.google.cloud.ces.v1.Callback.Builder, + com.google.cloud.ces.v1.CallbackOrBuilder> + internalGetBeforeAgentCallbacksFieldBuilder() { + if (beforeAgentCallbacksBuilder_ == null) { + beforeAgentCallbacksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Callback, + com.google.cloud.ces.v1.Callback.Builder, + com.google.cloud.ces.v1.CallbackOrBuilder>( + beforeAgentCallbacks_, + ((bitField0_ & 0x00000200) != 0), + getParentForChildren(), + isClean()); + beforeAgentCallbacks_ = null; + } + return beforeAgentCallbacksBuilder_; + } + + private java.util.List afterAgentCallbacks_ = + java.util.Collections.emptyList(); + + private void ensureAfterAgentCallbacksIsMutable() { + if (!((bitField0_ & 0x00000400) != 0)) { + afterAgentCallbacks_ = + new java.util.ArrayList(afterAgentCallbacks_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Callback, + com.google.cloud.ces.v1.Callback.Builder, + com.google.cloud.ces.v1.CallbackOrBuilder> + afterAgentCallbacksBuilder_; + + /** + * + * + *
      +     * Optional. The callbacks to execute after the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_agent_callbacks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getAfterAgentCallbacksList() { + if (afterAgentCallbacksBuilder_ == null) { + return java.util.Collections.unmodifiableList(afterAgentCallbacks_); + } else { + return afterAgentCallbacksBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_agent_callbacks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getAfterAgentCallbacksCount() { + if (afterAgentCallbacksBuilder_ == null) { + return afterAgentCallbacks_.size(); + } else { + return afterAgentCallbacksBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_agent_callbacks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Callback getAfterAgentCallbacks(int index) { + if (afterAgentCallbacksBuilder_ == null) { + return afterAgentCallbacks_.get(index); + } else { + return afterAgentCallbacksBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_agent_callbacks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAfterAgentCallbacks(int index, com.google.cloud.ces.v1.Callback value) { + if (afterAgentCallbacksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAfterAgentCallbacksIsMutable(); + afterAgentCallbacks_.set(index, value); + onChanged(); + } else { + afterAgentCallbacksBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_agent_callbacks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAfterAgentCallbacks( + int index, com.google.cloud.ces.v1.Callback.Builder builderForValue) { + if (afterAgentCallbacksBuilder_ == null) { + ensureAfterAgentCallbacksIsMutable(); + afterAgentCallbacks_.set(index, builderForValue.build()); + onChanged(); + } else { + afterAgentCallbacksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_agent_callbacks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAfterAgentCallbacks(com.google.cloud.ces.v1.Callback value) { + if (afterAgentCallbacksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAfterAgentCallbacksIsMutable(); + afterAgentCallbacks_.add(value); + onChanged(); + } else { + afterAgentCallbacksBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_agent_callbacks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAfterAgentCallbacks(int index, com.google.cloud.ces.v1.Callback value) { + if (afterAgentCallbacksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAfterAgentCallbacksIsMutable(); + afterAgentCallbacks_.add(index, value); + onChanged(); + } else { + afterAgentCallbacksBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_agent_callbacks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAfterAgentCallbacks( + com.google.cloud.ces.v1.Callback.Builder builderForValue) { + if (afterAgentCallbacksBuilder_ == null) { + ensureAfterAgentCallbacksIsMutable(); + afterAgentCallbacks_.add(builderForValue.build()); + onChanged(); + } else { + afterAgentCallbacksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_agent_callbacks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAfterAgentCallbacks( + int index, com.google.cloud.ces.v1.Callback.Builder builderForValue) { + if (afterAgentCallbacksBuilder_ == null) { + ensureAfterAgentCallbacksIsMutable(); + afterAgentCallbacks_.add(index, builderForValue.build()); + onChanged(); + } else { + afterAgentCallbacksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_agent_callbacks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllAfterAgentCallbacks( + java.lang.Iterable values) { + if (afterAgentCallbacksBuilder_ == null) { + ensureAfterAgentCallbacksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, afterAgentCallbacks_); + onChanged(); + } else { + afterAgentCallbacksBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_agent_callbacks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAfterAgentCallbacks() { + if (afterAgentCallbacksBuilder_ == null) { + afterAgentCallbacks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + afterAgentCallbacksBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_agent_callbacks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAfterAgentCallbacks(int index) { + if (afterAgentCallbacksBuilder_ == null) { + ensureAfterAgentCallbacksIsMutable(); + afterAgentCallbacks_.remove(index); + onChanged(); + } else { + afterAgentCallbacksBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_agent_callbacks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Callback.Builder getAfterAgentCallbacksBuilder(int index) { + return internalGetAfterAgentCallbacksFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_agent_callbacks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.CallbackOrBuilder getAfterAgentCallbacksOrBuilder(int index) { + if (afterAgentCallbacksBuilder_ == null) { + return afterAgentCallbacks_.get(index); + } else { + return afterAgentCallbacksBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_agent_callbacks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAfterAgentCallbacksOrBuilderList() { + if (afterAgentCallbacksBuilder_ != null) { + return afterAgentCallbacksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(afterAgentCallbacks_); + } + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_agent_callbacks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Callback.Builder addAfterAgentCallbacksBuilder() { + return internalGetAfterAgentCallbacksFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.Callback.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_agent_callbacks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Callback.Builder addAfterAgentCallbacksBuilder(int index) { + return internalGetAfterAgentCallbacksFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.Callback.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the agent is called.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_agent_callbacks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAfterAgentCallbacksBuilderList() { + return internalGetAfterAgentCallbacksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Callback, + com.google.cloud.ces.v1.Callback.Builder, + com.google.cloud.ces.v1.CallbackOrBuilder> + internalGetAfterAgentCallbacksFieldBuilder() { + if (afterAgentCallbacksBuilder_ == null) { + afterAgentCallbacksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Callback, + com.google.cloud.ces.v1.Callback.Builder, + com.google.cloud.ces.v1.CallbackOrBuilder>( + afterAgentCallbacks_, + ((bitField0_ & 0x00000400) != 0), + getParentForChildren(), + isClean()); + afterAgentCallbacks_ = null; + } + return afterAgentCallbacksBuilder_; + } + + private java.util.List beforeModelCallbacks_ = + java.util.Collections.emptyList(); + + private void ensureBeforeModelCallbacksIsMutable() { + if (!((bitField0_ & 0x00000800) != 0)) { + beforeModelCallbacks_ = + new java.util.ArrayList(beforeModelCallbacks_); + bitField0_ |= 0x00000800; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Callback, + com.google.cloud.ces.v1.Callback.Builder, + com.google.cloud.ces.v1.CallbackOrBuilder> + beforeModelCallbacksBuilder_; + + /** + * + * + *
      +     * Optional. The callbacks to execute before the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_model_callbacks = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getBeforeModelCallbacksList() { + if (beforeModelCallbacksBuilder_ == null) { + return java.util.Collections.unmodifiableList(beforeModelCallbacks_); + } else { + return beforeModelCallbacksBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_model_callbacks = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getBeforeModelCallbacksCount() { + if (beforeModelCallbacksBuilder_ == null) { + return beforeModelCallbacks_.size(); + } else { + return beforeModelCallbacksBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_model_callbacks = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Callback getBeforeModelCallbacks(int index) { + if (beforeModelCallbacksBuilder_ == null) { + return beforeModelCallbacks_.get(index); + } else { + return beforeModelCallbacksBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_model_callbacks = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBeforeModelCallbacks(int index, com.google.cloud.ces.v1.Callback value) { + if (beforeModelCallbacksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBeforeModelCallbacksIsMutable(); + beforeModelCallbacks_.set(index, value); + onChanged(); + } else { + beforeModelCallbacksBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_model_callbacks = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBeforeModelCallbacks( + int index, com.google.cloud.ces.v1.Callback.Builder builderForValue) { + if (beforeModelCallbacksBuilder_ == null) { + ensureBeforeModelCallbacksIsMutable(); + beforeModelCallbacks_.set(index, builderForValue.build()); + onChanged(); + } else { + beforeModelCallbacksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_model_callbacks = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addBeforeModelCallbacks(com.google.cloud.ces.v1.Callback value) { + if (beforeModelCallbacksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBeforeModelCallbacksIsMutable(); + beforeModelCallbacks_.add(value); + onChanged(); + } else { + beforeModelCallbacksBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_model_callbacks = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addBeforeModelCallbacks(int index, com.google.cloud.ces.v1.Callback value) { + if (beforeModelCallbacksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBeforeModelCallbacksIsMutable(); + beforeModelCallbacks_.add(index, value); + onChanged(); + } else { + beforeModelCallbacksBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_model_callbacks = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addBeforeModelCallbacks( + com.google.cloud.ces.v1.Callback.Builder builderForValue) { + if (beforeModelCallbacksBuilder_ == null) { + ensureBeforeModelCallbacksIsMutable(); + beforeModelCallbacks_.add(builderForValue.build()); + onChanged(); + } else { + beforeModelCallbacksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_model_callbacks = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addBeforeModelCallbacks( + int index, com.google.cloud.ces.v1.Callback.Builder builderForValue) { + if (beforeModelCallbacksBuilder_ == null) { + ensureBeforeModelCallbacksIsMutable(); + beforeModelCallbacks_.add(index, builderForValue.build()); + onChanged(); + } else { + beforeModelCallbacksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_model_callbacks = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllBeforeModelCallbacks( + java.lang.Iterable values) { + if (beforeModelCallbacksBuilder_ == null) { + ensureBeforeModelCallbacksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, beforeModelCallbacks_); + onChanged(); + } else { + beforeModelCallbacksBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_model_callbacks = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearBeforeModelCallbacks() { + if (beforeModelCallbacksBuilder_ == null) { + beforeModelCallbacks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + } else { + beforeModelCallbacksBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_model_callbacks = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeBeforeModelCallbacks(int index) { + if (beforeModelCallbacksBuilder_ == null) { + ensureBeforeModelCallbacksIsMutable(); + beforeModelCallbacks_.remove(index); + onChanged(); + } else { + beforeModelCallbacksBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_model_callbacks = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Callback.Builder getBeforeModelCallbacksBuilder(int index) { + return internalGetBeforeModelCallbacksFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_model_callbacks = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.CallbackOrBuilder getBeforeModelCallbacksOrBuilder(int index) { + if (beforeModelCallbacksBuilder_ == null) { + return beforeModelCallbacks_.get(index); + } else { + return beforeModelCallbacksBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_model_callbacks = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getBeforeModelCallbacksOrBuilderList() { + if (beforeModelCallbacksBuilder_ != null) { + return beforeModelCallbacksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(beforeModelCallbacks_); + } + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_model_callbacks = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Callback.Builder addBeforeModelCallbacksBuilder() { + return internalGetBeforeModelCallbacksFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.Callback.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_model_callbacks = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Callback.Builder addBeforeModelCallbacksBuilder(int index) { + return internalGetBeforeModelCallbacksFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.Callback.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_model_callbacks = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getBeforeModelCallbacksBuilderList() { + return internalGetBeforeModelCallbacksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Callback, + com.google.cloud.ces.v1.Callback.Builder, + com.google.cloud.ces.v1.CallbackOrBuilder> + internalGetBeforeModelCallbacksFieldBuilder() { + if (beforeModelCallbacksBuilder_ == null) { + beforeModelCallbacksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Callback, + com.google.cloud.ces.v1.Callback.Builder, + com.google.cloud.ces.v1.CallbackOrBuilder>( + beforeModelCallbacks_, + ((bitField0_ & 0x00000800) != 0), + getParentForChildren(), + isClean()); + beforeModelCallbacks_ = null; + } + return beforeModelCallbacksBuilder_; + } + + private java.util.List afterModelCallbacks_ = + java.util.Collections.emptyList(); + + private void ensureAfterModelCallbacksIsMutable() { + if (!((bitField0_ & 0x00001000) != 0)) { + afterModelCallbacks_ = + new java.util.ArrayList(afterModelCallbacks_); + bitField0_ |= 0x00001000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Callback, + com.google.cloud.ces.v1.Callback.Builder, + com.google.cloud.ces.v1.CallbackOrBuilder> + afterModelCallbacksBuilder_; + + /** + * + * + *
      +     * Optional. The callbacks to execute after the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_model_callbacks = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getAfterModelCallbacksList() { + if (afterModelCallbacksBuilder_ == null) { + return java.util.Collections.unmodifiableList(afterModelCallbacks_); + } else { + return afterModelCallbacksBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_model_callbacks = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getAfterModelCallbacksCount() { + if (afterModelCallbacksBuilder_ == null) { + return afterModelCallbacks_.size(); + } else { + return afterModelCallbacksBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_model_callbacks = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Callback getAfterModelCallbacks(int index) { + if (afterModelCallbacksBuilder_ == null) { + return afterModelCallbacks_.get(index); + } else { + return afterModelCallbacksBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_model_callbacks = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAfterModelCallbacks(int index, com.google.cloud.ces.v1.Callback value) { + if (afterModelCallbacksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAfterModelCallbacksIsMutable(); + afterModelCallbacks_.set(index, value); + onChanged(); + } else { + afterModelCallbacksBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_model_callbacks = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAfterModelCallbacks( + int index, com.google.cloud.ces.v1.Callback.Builder builderForValue) { + if (afterModelCallbacksBuilder_ == null) { + ensureAfterModelCallbacksIsMutable(); + afterModelCallbacks_.set(index, builderForValue.build()); + onChanged(); + } else { + afterModelCallbacksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_model_callbacks = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAfterModelCallbacks(com.google.cloud.ces.v1.Callback value) { + if (afterModelCallbacksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAfterModelCallbacksIsMutable(); + afterModelCallbacks_.add(value); + onChanged(); + } else { + afterModelCallbacksBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_model_callbacks = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAfterModelCallbacks(int index, com.google.cloud.ces.v1.Callback value) { + if (afterModelCallbacksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAfterModelCallbacksIsMutable(); + afterModelCallbacks_.add(index, value); + onChanged(); + } else { + afterModelCallbacksBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_model_callbacks = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAfterModelCallbacks( + com.google.cloud.ces.v1.Callback.Builder builderForValue) { + if (afterModelCallbacksBuilder_ == null) { + ensureAfterModelCallbacksIsMutable(); + afterModelCallbacks_.add(builderForValue.build()); + onChanged(); + } else { + afterModelCallbacksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_model_callbacks = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAfterModelCallbacks( + int index, com.google.cloud.ces.v1.Callback.Builder builderForValue) { + if (afterModelCallbacksBuilder_ == null) { + ensureAfterModelCallbacksIsMutable(); + afterModelCallbacks_.add(index, builderForValue.build()); + onChanged(); + } else { + afterModelCallbacksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_model_callbacks = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllAfterModelCallbacks( + java.lang.Iterable values) { + if (afterModelCallbacksBuilder_ == null) { + ensureAfterModelCallbacksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, afterModelCallbacks_); + onChanged(); + } else { + afterModelCallbacksBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_model_callbacks = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAfterModelCallbacks() { + if (afterModelCallbacksBuilder_ == null) { + afterModelCallbacks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + } else { + afterModelCallbacksBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_model_callbacks = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAfterModelCallbacks(int index) { + if (afterModelCallbacksBuilder_ == null) { + ensureAfterModelCallbacksIsMutable(); + afterModelCallbacks_.remove(index); + onChanged(); + } else { + afterModelCallbacksBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_model_callbacks = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Callback.Builder getAfterModelCallbacksBuilder(int index) { + return internalGetAfterModelCallbacksFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_model_callbacks = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.CallbackOrBuilder getAfterModelCallbacksOrBuilder(int index) { + if (afterModelCallbacksBuilder_ == null) { + return afterModelCallbacks_.get(index); + } else { + return afterModelCallbacksBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_model_callbacks = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAfterModelCallbacksOrBuilderList() { + if (afterModelCallbacksBuilder_ != null) { + return afterModelCallbacksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(afterModelCallbacks_); + } + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_model_callbacks = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Callback.Builder addAfterModelCallbacksBuilder() { + return internalGetAfterModelCallbacksFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.Callback.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_model_callbacks = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Callback.Builder addAfterModelCallbacksBuilder(int index) { + return internalGetAfterModelCallbacksFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.Callback.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_model_callbacks = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAfterModelCallbacksBuilderList() { + return internalGetAfterModelCallbacksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Callback, + com.google.cloud.ces.v1.Callback.Builder, + com.google.cloud.ces.v1.CallbackOrBuilder> + internalGetAfterModelCallbacksFieldBuilder() { + if (afterModelCallbacksBuilder_ == null) { + afterModelCallbacksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Callback, + com.google.cloud.ces.v1.Callback.Builder, + com.google.cloud.ces.v1.CallbackOrBuilder>( + afterModelCallbacks_, + ((bitField0_ & 0x00001000) != 0), + getParentForChildren(), + isClean()); + afterModelCallbacks_ = null; + } + return afterModelCallbacksBuilder_; + } + + private java.util.List beforeToolCallbacks_ = + java.util.Collections.emptyList(); + + private void ensureBeforeToolCallbacksIsMutable() { + if (!((bitField0_ & 0x00002000) != 0)) { + beforeToolCallbacks_ = + new java.util.ArrayList(beforeToolCallbacks_); + bitField0_ |= 0x00002000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Callback, + com.google.cloud.ces.v1.Callback.Builder, + com.google.cloud.ces.v1.CallbackOrBuilder> + beforeToolCallbacksBuilder_; + + /** + * + * + *
      +     * Optional. The callbacks to execute before the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_tool_callbacks = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getBeforeToolCallbacksList() { + if (beforeToolCallbacksBuilder_ == null) { + return java.util.Collections.unmodifiableList(beforeToolCallbacks_); + } else { + return beforeToolCallbacksBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_tool_callbacks = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getBeforeToolCallbacksCount() { + if (beforeToolCallbacksBuilder_ == null) { + return beforeToolCallbacks_.size(); + } else { + return beforeToolCallbacksBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_tool_callbacks = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Callback getBeforeToolCallbacks(int index) { + if (beforeToolCallbacksBuilder_ == null) { + return beforeToolCallbacks_.get(index); + } else { + return beforeToolCallbacksBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_tool_callbacks = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBeforeToolCallbacks(int index, com.google.cloud.ces.v1.Callback value) { + if (beforeToolCallbacksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBeforeToolCallbacksIsMutable(); + beforeToolCallbacks_.set(index, value); + onChanged(); + } else { + beforeToolCallbacksBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_tool_callbacks = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBeforeToolCallbacks( + int index, com.google.cloud.ces.v1.Callback.Builder builderForValue) { + if (beforeToolCallbacksBuilder_ == null) { + ensureBeforeToolCallbacksIsMutable(); + beforeToolCallbacks_.set(index, builderForValue.build()); + onChanged(); + } else { + beforeToolCallbacksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_tool_callbacks = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addBeforeToolCallbacks(com.google.cloud.ces.v1.Callback value) { + if (beforeToolCallbacksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBeforeToolCallbacksIsMutable(); + beforeToolCallbacks_.add(value); + onChanged(); + } else { + beforeToolCallbacksBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_tool_callbacks = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addBeforeToolCallbacks(int index, com.google.cloud.ces.v1.Callback value) { + if (beforeToolCallbacksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBeforeToolCallbacksIsMutable(); + beforeToolCallbacks_.add(index, value); + onChanged(); + } else { + beforeToolCallbacksBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_tool_callbacks = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addBeforeToolCallbacks( + com.google.cloud.ces.v1.Callback.Builder builderForValue) { + if (beforeToolCallbacksBuilder_ == null) { + ensureBeforeToolCallbacksIsMutable(); + beforeToolCallbacks_.add(builderForValue.build()); + onChanged(); + } else { + beforeToolCallbacksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_tool_callbacks = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addBeforeToolCallbacks( + int index, com.google.cloud.ces.v1.Callback.Builder builderForValue) { + if (beforeToolCallbacksBuilder_ == null) { + ensureBeforeToolCallbacksIsMutable(); + beforeToolCallbacks_.add(index, builderForValue.build()); + onChanged(); + } else { + beforeToolCallbacksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_tool_callbacks = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllBeforeToolCallbacks( + java.lang.Iterable values) { + if (beforeToolCallbacksBuilder_ == null) { + ensureBeforeToolCallbacksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, beforeToolCallbacks_); + onChanged(); + } else { + beforeToolCallbacksBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_tool_callbacks = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearBeforeToolCallbacks() { + if (beforeToolCallbacksBuilder_ == null) { + beforeToolCallbacks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + } else { + beforeToolCallbacksBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_tool_callbacks = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeBeforeToolCallbacks(int index) { + if (beforeToolCallbacksBuilder_ == null) { + ensureBeforeToolCallbacksIsMutable(); + beforeToolCallbacks_.remove(index); + onChanged(); + } else { + beforeToolCallbacksBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_tool_callbacks = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Callback.Builder getBeforeToolCallbacksBuilder(int index) { + return internalGetBeforeToolCallbacksFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_tool_callbacks = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.CallbackOrBuilder getBeforeToolCallbacksOrBuilder(int index) { + if (beforeToolCallbacksBuilder_ == null) { + return beforeToolCallbacks_.get(index); + } else { + return beforeToolCallbacksBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_tool_callbacks = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getBeforeToolCallbacksOrBuilderList() { + if (beforeToolCallbacksBuilder_ != null) { + return beforeToolCallbacksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(beforeToolCallbacks_); + } + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_tool_callbacks = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Callback.Builder addBeforeToolCallbacksBuilder() { + return internalGetBeforeToolCallbacksFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.Callback.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_tool_callbacks = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Callback.Builder addBeforeToolCallbacksBuilder(int index) { + return internalGetBeforeToolCallbacksFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.Callback.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. The callbacks to execute before the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_tool_callbacks = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getBeforeToolCallbacksBuilderList() { + return internalGetBeforeToolCallbacksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Callback, + com.google.cloud.ces.v1.Callback.Builder, + com.google.cloud.ces.v1.CallbackOrBuilder> + internalGetBeforeToolCallbacksFieldBuilder() { + if (beforeToolCallbacksBuilder_ == null) { + beforeToolCallbacksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Callback, + com.google.cloud.ces.v1.Callback.Builder, + com.google.cloud.ces.v1.CallbackOrBuilder>( + beforeToolCallbacks_, + ((bitField0_ & 0x00002000) != 0), + getParentForChildren(), + isClean()); + beforeToolCallbacks_ = null; + } + return beforeToolCallbacksBuilder_; + } + + private java.util.List afterToolCallbacks_ = + java.util.Collections.emptyList(); + + private void ensureAfterToolCallbacksIsMutable() { + if (!((bitField0_ & 0x00004000) != 0)) { + afterToolCallbacks_ = + new java.util.ArrayList(afterToolCallbacks_); + bitField0_ |= 0x00004000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Callback, + com.google.cloud.ces.v1.Callback.Builder, + com.google.cloud.ces.v1.CallbackOrBuilder> + afterToolCallbacksBuilder_; + + /** + * + * + *
      +     * Optional. The callbacks to execute after the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_tool_callbacks = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getAfterToolCallbacksList() { + if (afterToolCallbacksBuilder_ == null) { + return java.util.Collections.unmodifiableList(afterToolCallbacks_); + } else { + return afterToolCallbacksBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_tool_callbacks = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getAfterToolCallbacksCount() { + if (afterToolCallbacksBuilder_ == null) { + return afterToolCallbacks_.size(); + } else { + return afterToolCallbacksBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_tool_callbacks = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Callback getAfterToolCallbacks(int index) { + if (afterToolCallbacksBuilder_ == null) { + return afterToolCallbacks_.get(index); + } else { + return afterToolCallbacksBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_tool_callbacks = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAfterToolCallbacks(int index, com.google.cloud.ces.v1.Callback value) { + if (afterToolCallbacksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAfterToolCallbacksIsMutable(); + afterToolCallbacks_.set(index, value); + onChanged(); + } else { + afterToolCallbacksBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_tool_callbacks = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAfterToolCallbacks( + int index, com.google.cloud.ces.v1.Callback.Builder builderForValue) { + if (afterToolCallbacksBuilder_ == null) { + ensureAfterToolCallbacksIsMutable(); + afterToolCallbacks_.set(index, builderForValue.build()); + onChanged(); + } else { + afterToolCallbacksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_tool_callbacks = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAfterToolCallbacks(com.google.cloud.ces.v1.Callback value) { + if (afterToolCallbacksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAfterToolCallbacksIsMutable(); + afterToolCallbacks_.add(value); + onChanged(); + } else { + afterToolCallbacksBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_tool_callbacks = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAfterToolCallbacks(int index, com.google.cloud.ces.v1.Callback value) { + if (afterToolCallbacksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAfterToolCallbacksIsMutable(); + afterToolCallbacks_.add(index, value); + onChanged(); + } else { + afterToolCallbacksBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_tool_callbacks = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAfterToolCallbacks(com.google.cloud.ces.v1.Callback.Builder builderForValue) { + if (afterToolCallbacksBuilder_ == null) { + ensureAfterToolCallbacksIsMutable(); + afterToolCallbacks_.add(builderForValue.build()); + onChanged(); + } else { + afterToolCallbacksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_tool_callbacks = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAfterToolCallbacks( + int index, com.google.cloud.ces.v1.Callback.Builder builderForValue) { + if (afterToolCallbacksBuilder_ == null) { + ensureAfterToolCallbacksIsMutable(); + afterToolCallbacks_.add(index, builderForValue.build()); + onChanged(); + } else { + afterToolCallbacksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_tool_callbacks = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllAfterToolCallbacks( + java.lang.Iterable values) { + if (afterToolCallbacksBuilder_ == null) { + ensureAfterToolCallbacksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, afterToolCallbacks_); + onChanged(); + } else { + afterToolCallbacksBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_tool_callbacks = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAfterToolCallbacks() { + if (afterToolCallbacksBuilder_ == null) { + afterToolCallbacks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + } else { + afterToolCallbacksBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_tool_callbacks = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAfterToolCallbacks(int index) { + if (afterToolCallbacksBuilder_ == null) { + ensureAfterToolCallbacksIsMutable(); + afterToolCallbacks_.remove(index); + onChanged(); + } else { + afterToolCallbacksBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_tool_callbacks = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Callback.Builder getAfterToolCallbacksBuilder(int index) { + return internalGetAfterToolCallbacksFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_tool_callbacks = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.CallbackOrBuilder getAfterToolCallbacksOrBuilder(int index) { + if (afterToolCallbacksBuilder_ == null) { + return afterToolCallbacks_.get(index); + } else { + return afterToolCallbacksBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_tool_callbacks = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAfterToolCallbacksOrBuilderList() { + if (afterToolCallbacksBuilder_ != null) { + return afterToolCallbacksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(afterToolCallbacks_); + } + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_tool_callbacks = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Callback.Builder addAfterToolCallbacksBuilder() { + return internalGetAfterToolCallbacksFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.Callback.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_tool_callbacks = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Callback.Builder addAfterToolCallbacksBuilder(int index) { + return internalGetAfterToolCallbacksFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.Callback.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. The callbacks to execute after the tool is invoked. If there are
      +     * multiple tool invocations, the callback will be executed multiple times.
      +     * The provided callbacks are executed sequentially in the exact order they
      +     * are given in the list. If a callback returns an overridden response,
      +     * execution stops and any remaining callbacks are skipped.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_tool_callbacks = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAfterToolCallbacksBuilderList() { + return internalGetAfterToolCallbacksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Callback, + com.google.cloud.ces.v1.Callback.Builder, + com.google.cloud.ces.v1.CallbackOrBuilder> + internalGetAfterToolCallbacksFieldBuilder() { + if (afterToolCallbacksBuilder_ == null) { + afterToolCallbacksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Callback, + com.google.cloud.ces.v1.Callback.Builder, + com.google.cloud.ces.v1.CallbackOrBuilder>( + afterToolCallbacks_, + ((bitField0_ & 0x00004000) != 0), + getParentForChildren(), + isClean()); + afterToolCallbacks_ = null; + } + return afterToolCallbacksBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
      +     * Output only. Timestamp when the agent was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00008000) != 0); + } + + /** + * + * + *
      +     * Output only. Timestamp when the agent was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 15 [(.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_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the agent was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the agent was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the agent was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the agent was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00008000); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the agent was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. Timestamp when the agent was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 15 [(.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_; + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the agent was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
      +     * Output only. Timestamp when the agent was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00010000) != 0); + } + + /** + * + * + *
      +     * Output only. Timestamp when the agent was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 16 [(.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_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the agent was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the agent was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the agent was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the agent was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00010000); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the agent was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. Timestamp when the agent was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 16 [(.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_; + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the agent was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.LazyStringArrayList guardrails_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureGuardrailsIsMutable() { + if (!guardrails_.isModifiable()) { + guardrails_ = new com.google.protobuf.LazyStringArrayList(guardrails_); + } + bitField0_ |= 0x00020000; + } + + /** + * + * + *
      +     * Optional. List of guardrails for the agent.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +     * 
      + * + * + * repeated string guardrails = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the guardrails. + */ + public com.google.protobuf.ProtocolStringList getGuardrailsList() { + guardrails_.makeImmutable(); + return guardrails_; + } + + /** + * + * + *
      +     * Optional. List of guardrails for the agent.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +     * 
      + * + * + * repeated string guardrails = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of guardrails. + */ + public int getGuardrailsCount() { + return guardrails_.size(); + } + + /** + * + * + *
      +     * Optional. List of guardrails for the agent.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +     * 
      + * + * + * repeated string guardrails = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The guardrails at the given index. + */ + public java.lang.String getGuardrails(int index) { + return guardrails_.get(index); + } + + /** + * + * + *
      +     * Optional. List of guardrails for the agent.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +     * 
      + * + * + * repeated string guardrails = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the guardrails at the given index. + */ + public com.google.protobuf.ByteString getGuardrailsBytes(int index) { + return guardrails_.getByteString(index); + } + + /** + * + * + *
      +     * Optional. List of guardrails for the agent.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +     * 
      + * + * + * repeated string guardrails = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The guardrails to set. + * @return This builder for chaining. + */ + public Builder setGuardrails(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGuardrailsIsMutable(); + guardrails_.set(index, value); + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. List of guardrails for the agent.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +     * 
      + * + * + * repeated string guardrails = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The guardrails to add. + * @return This builder for chaining. + */ + public Builder addGuardrails(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGuardrailsIsMutable(); + guardrails_.add(value); + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. List of guardrails for the agent.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +     * 
      + * + * + * repeated string guardrails = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The guardrails to add. + * @return This builder for chaining. + */ + public Builder addAllGuardrails(java.lang.Iterable values) { + ensureGuardrailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, guardrails_); + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. List of guardrails for the agent.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +     * 
      + * + * + * repeated string guardrails = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearGuardrails() { + guardrails_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00020000); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. List of guardrails for the agent.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +     * 
      + * + * + * repeated string guardrails = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the guardrails to add. + * @return This builder for chaining. + */ + public Builder addGuardrailsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureGuardrailsIsMutable(); + guardrails_.add(value); + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
      +     * Etag used to ensure the object hasn't changed during a read-modify-write
      +     * operation. If the etag is empty, the update will overwrite any concurrent
      +     * changes.
      +     * 
      + * + * string etag = 24; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Etag used to ensure the object hasn't changed during a read-modify-write
      +     * operation. If the etag is empty, the update will overwrite any concurrent
      +     * changes.
      +     * 
      + * + * string etag = 24; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Etag used to ensure the object hasn't changed during a read-modify-write
      +     * operation. If the etag is empty, the update will overwrite any concurrent
      +     * changes.
      +     * 
      + * + * string etag = 24; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Etag used to ensure the object hasn't changed during a read-modify-write
      +     * operation. If the etag is empty, the update will overwrite any concurrent
      +     * changes.
      +     * 
      + * + * string etag = 24; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00040000); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Etag used to ensure the object hasn't changed during a read-modify-write
      +     * operation. If the etag is empty, the update will overwrite any concurrent
      +     * changes.
      +     * 
      + * + * string etag = 24; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + private java.util.List toolsets_ = + java.util.Collections.emptyList(); + + private void ensureToolsetsIsMutable() { + if (!((bitField0_ & 0x00080000) != 0)) { + toolsets_ = new java.util.ArrayList(toolsets_); + bitField0_ |= 0x00080000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Agent.AgentToolset, + com.google.cloud.ces.v1.Agent.AgentToolset.Builder, + com.google.cloud.ces.v1.Agent.AgentToolsetOrBuilder> + toolsetsBuilder_; + + /** + * + * + *
      +     * Optional. List of toolsets for the agent.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent.AgentToolset toolsets = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getToolsetsList() { + if (toolsetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(toolsets_); + } else { + return toolsetsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Optional. List of toolsets for the agent.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent.AgentToolset toolsets = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getToolsetsCount() { + if (toolsetsBuilder_ == null) { + return toolsets_.size(); + } else { + return toolsetsBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Optional. List of toolsets for the agent.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent.AgentToolset toolsets = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Agent.AgentToolset getToolsets(int index) { + if (toolsetsBuilder_ == null) { + return toolsets_.get(index); + } else { + return toolsetsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Optional. List of toolsets for the agent.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent.AgentToolset toolsets = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolsets(int index, com.google.cloud.ces.v1.Agent.AgentToolset value) { + if (toolsetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsetsIsMutable(); + toolsets_.set(index, value); + onChanged(); + } else { + toolsetsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of toolsets for the agent.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent.AgentToolset toolsets = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolsets( + int index, com.google.cloud.ces.v1.Agent.AgentToolset.Builder builderForValue) { + if (toolsetsBuilder_ == null) { + ensureToolsetsIsMutable(); + toolsets_.set(index, builderForValue.build()); + onChanged(); + } else { + toolsetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of toolsets for the agent.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent.AgentToolset toolsets = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolsets(com.google.cloud.ces.v1.Agent.AgentToolset value) { + if (toolsetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsetsIsMutable(); + toolsets_.add(value); + onChanged(); + } else { + toolsetsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of toolsets for the agent.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent.AgentToolset toolsets = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolsets(int index, com.google.cloud.ces.v1.Agent.AgentToolset value) { + if (toolsetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsetsIsMutable(); + toolsets_.add(index, value); + onChanged(); + } else { + toolsetsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of toolsets for the agent.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent.AgentToolset toolsets = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolsets(com.google.cloud.ces.v1.Agent.AgentToolset.Builder builderForValue) { + if (toolsetsBuilder_ == null) { + ensureToolsetsIsMutable(); + toolsets_.add(builderForValue.build()); + onChanged(); + } else { + toolsetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of toolsets for the agent.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent.AgentToolset toolsets = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolsets( + int index, com.google.cloud.ces.v1.Agent.AgentToolset.Builder builderForValue) { + if (toolsetsBuilder_ == null) { + ensureToolsetsIsMutable(); + toolsets_.add(index, builderForValue.build()); + onChanged(); + } else { + toolsetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of toolsets for the agent.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent.AgentToolset toolsets = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllToolsets( + java.lang.Iterable values) { + if (toolsetsBuilder_ == null) { + ensureToolsetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, toolsets_); + onChanged(); + } else { + toolsetsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of toolsets for the agent.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent.AgentToolset toolsets = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearToolsets() { + if (toolsetsBuilder_ == null) { + toolsets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00080000); + onChanged(); + } else { + toolsetsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of toolsets for the agent.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent.AgentToolset toolsets = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeToolsets(int index) { + if (toolsetsBuilder_ == null) { + ensureToolsetsIsMutable(); + toolsets_.remove(index); + onChanged(); + } else { + toolsetsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of toolsets for the agent.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent.AgentToolset toolsets = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Agent.AgentToolset.Builder getToolsetsBuilder(int index) { + return internalGetToolsetsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Optional. List of toolsets for the agent.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent.AgentToolset toolsets = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Agent.AgentToolsetOrBuilder getToolsetsOrBuilder(int index) { + if (toolsetsBuilder_ == null) { + return toolsets_.get(index); + } else { + return toolsetsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Optional. List of toolsets for the agent.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent.AgentToolset toolsets = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getToolsetsOrBuilderList() { + if (toolsetsBuilder_ != null) { + return toolsetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(toolsets_); + } + } + + /** + * + * + *
      +     * Optional. List of toolsets for the agent.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent.AgentToolset toolsets = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Agent.AgentToolset.Builder addToolsetsBuilder() { + return internalGetToolsetsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.Agent.AgentToolset.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. List of toolsets for the agent.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent.AgentToolset toolsets = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Agent.AgentToolset.Builder addToolsetsBuilder(int index) { + return internalGetToolsetsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.Agent.AgentToolset.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. List of toolsets for the agent.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent.AgentToolset toolsets = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getToolsetsBuilderList() { + return internalGetToolsetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Agent.AgentToolset, + com.google.cloud.ces.v1.Agent.AgentToolset.Builder, + com.google.cloud.ces.v1.Agent.AgentToolsetOrBuilder> + internalGetToolsetsFieldBuilder() { + if (toolsetsBuilder_ == null) { + toolsetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Agent.AgentToolset, + com.google.cloud.ces.v1.Agent.AgentToolset.Builder, + com.google.cloud.ces.v1.Agent.AgentToolsetOrBuilder>( + toolsets_, ((bitField0_ & 0x00080000) != 0), getParentForChildren(), isClean()); + toolsets_ = null; + } + return toolsetsBuilder_; + } + + private java.lang.Object generatedSummary_ = ""; + + /** + * + * + *
      +     * Output only. If the agent is generated by the LLM assistant, this field
      +     * contains a descriptive summary of the generation.
      +     * 
      + * + * string generated_summary = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The generatedSummary. + */ + public java.lang.String getGeneratedSummary() { + java.lang.Object ref = generatedSummary_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + generatedSummary_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Output only. If the agent is generated by the LLM assistant, this field
      +     * contains a descriptive summary of the generation.
      +     * 
      + * + * string generated_summary = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for generatedSummary. + */ + public com.google.protobuf.ByteString getGeneratedSummaryBytes() { + java.lang.Object ref = generatedSummary_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + generatedSummary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Output only. If the agent is generated by the LLM assistant, this field
      +     * contains a descriptive summary of the generation.
      +     * 
      + * + * string generated_summary = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The generatedSummary to set. + * @return This builder for chaining. + */ + public Builder setGeneratedSummary(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + generatedSummary_ = value; + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. If the agent is generated by the LLM assistant, this field
      +     * contains a descriptive summary of the generation.
      +     * 
      + * + * string generated_summary = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearGeneratedSummary() { + generatedSummary_ = getDefaultInstance().getGeneratedSummary(); + bitField0_ = (bitField0_ & ~0x00100000); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. If the agent is generated by the LLM assistant, this field
      +     * contains a descriptive summary of the generation.
      +     * 
      + * + * string generated_summary = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for generatedSummary to set. + * @return This builder for chaining. + */ + public Builder setGeneratedSummaryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + generatedSummary_ = value; + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + private java.util.List transferRules_ = + java.util.Collections.emptyList(); + + private void ensureTransferRulesIsMutable() { + if (!((bitField0_ & 0x00200000) != 0)) { + transferRules_ = + new java.util.ArrayList(transferRules_); + bitField0_ |= 0x00200000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.TransferRule, + com.google.cloud.ces.v1.TransferRule.Builder, + com.google.cloud.ces.v1.TransferRuleOrBuilder> + transferRulesBuilder_; + + /** + * + * + *
      +     * Optional. Agent transfer rules.
      +     * If multiple rules match, the first one in the list will be used.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TransferRule transfer_rules = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getTransferRulesList() { + if (transferRulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(transferRules_); + } else { + return transferRulesBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Optional. Agent transfer rules.
      +     * If multiple rules match, the first one in the list will be used.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TransferRule transfer_rules = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getTransferRulesCount() { + if (transferRulesBuilder_ == null) { + return transferRules_.size(); + } else { + return transferRulesBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Optional. Agent transfer rules.
      +     * If multiple rules match, the first one in the list will be used.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TransferRule transfer_rules = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.TransferRule getTransferRules(int index) { + if (transferRulesBuilder_ == null) { + return transferRules_.get(index); + } else { + return transferRulesBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Optional. Agent transfer rules.
      +     * If multiple rules match, the first one in the list will be used.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TransferRule transfer_rules = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTransferRules(int index, com.google.cloud.ces.v1.TransferRule value) { + if (transferRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTransferRulesIsMutable(); + transferRules_.set(index, value); + onChanged(); + } else { + transferRulesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. Agent transfer rules.
      +     * If multiple rules match, the first one in the list will be used.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TransferRule transfer_rules = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTransferRules( + int index, com.google.cloud.ces.v1.TransferRule.Builder builderForValue) { + if (transferRulesBuilder_ == null) { + ensureTransferRulesIsMutable(); + transferRules_.set(index, builderForValue.build()); + onChanged(); + } else { + transferRulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. Agent transfer rules.
      +     * If multiple rules match, the first one in the list will be used.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TransferRule transfer_rules = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTransferRules(com.google.cloud.ces.v1.TransferRule value) { + if (transferRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTransferRulesIsMutable(); + transferRules_.add(value); + onChanged(); + } else { + transferRulesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Optional. Agent transfer rules.
      +     * If multiple rules match, the first one in the list will be used.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TransferRule transfer_rules = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTransferRules(int index, com.google.cloud.ces.v1.TransferRule value) { + if (transferRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTransferRulesIsMutable(); + transferRules_.add(index, value); + onChanged(); + } else { + transferRulesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. Agent transfer rules.
      +     * If multiple rules match, the first one in the list will be used.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TransferRule transfer_rules = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTransferRules(com.google.cloud.ces.v1.TransferRule.Builder builderForValue) { + if (transferRulesBuilder_ == null) { + ensureTransferRulesIsMutable(); + transferRules_.add(builderForValue.build()); + onChanged(); + } else { + transferRulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. Agent transfer rules.
      +     * If multiple rules match, the first one in the list will be used.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TransferRule transfer_rules = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTransferRules( + int index, com.google.cloud.ces.v1.TransferRule.Builder builderForValue) { + if (transferRulesBuilder_ == null) { + ensureTransferRulesIsMutable(); + transferRules_.add(index, builderForValue.build()); + onChanged(); + } else { + transferRulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. Agent transfer rules.
      +     * If multiple rules match, the first one in the list will be used.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TransferRule transfer_rules = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllTransferRules( + java.lang.Iterable values) { + if (transferRulesBuilder_ == null) { + ensureTransferRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, transferRules_); + onChanged(); + } else { + transferRulesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Optional. Agent transfer rules.
      +     * If multiple rules match, the first one in the list will be used.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TransferRule transfer_rules = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTransferRules() { + if (transferRulesBuilder_ == null) { + transferRules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00200000); + onChanged(); + } else { + transferRulesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Agent transfer rules.
      +     * If multiple rules match, the first one in the list will be used.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TransferRule transfer_rules = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeTransferRules(int index) { + if (transferRulesBuilder_ == null) { + ensureTransferRulesIsMutable(); + transferRules_.remove(index); + onChanged(); + } else { + transferRulesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Optional. Agent transfer rules.
      +     * If multiple rules match, the first one in the list will be used.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TransferRule transfer_rules = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.TransferRule.Builder getTransferRulesBuilder(int index) { + return internalGetTransferRulesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Optional. Agent transfer rules.
      +     * If multiple rules match, the first one in the list will be used.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TransferRule transfer_rules = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.TransferRuleOrBuilder getTransferRulesOrBuilder(int index) { + if (transferRulesBuilder_ == null) { + return transferRules_.get(index); + } else { + return transferRulesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Optional. Agent transfer rules.
      +     * If multiple rules match, the first one in the list will be used.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TransferRule transfer_rules = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getTransferRulesOrBuilderList() { + if (transferRulesBuilder_ != null) { + return transferRulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(transferRules_); + } + } + + /** + * + * + *
      +     * Optional. Agent transfer rules.
      +     * If multiple rules match, the first one in the list will be used.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TransferRule transfer_rules = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.TransferRule.Builder addTransferRulesBuilder() { + return internalGetTransferRulesFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.TransferRule.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. Agent transfer rules.
      +     * If multiple rules match, the first one in the list will be used.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TransferRule transfer_rules = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.TransferRule.Builder addTransferRulesBuilder(int index) { + return internalGetTransferRulesFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.TransferRule.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. Agent transfer rules.
      +     * If multiple rules match, the first one in the list will be used.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TransferRule transfer_rules = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getTransferRulesBuilderList() { + return internalGetTransferRulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.TransferRule, + com.google.cloud.ces.v1.TransferRule.Builder, + com.google.cloud.ces.v1.TransferRuleOrBuilder> + internalGetTransferRulesFieldBuilder() { + if (transferRulesBuilder_ == null) { + transferRulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.TransferRule, + com.google.cloud.ces.v1.TransferRule.Builder, + com.google.cloud.ces.v1.TransferRuleOrBuilder>( + transferRules_, + ((bitField0_ & 0x00200000) != 0), + getParentForChildren(), + isClean()); + transferRules_ = null; + } + return transferRulesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Agent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.Agent) + private static final com.google.cloud.ces.v1.Agent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.Agent(); + } + + public static com.google.cloud.ces.v1.Agent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Agent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Agent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentName.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentName.java new file mode 100644 index 000000000000..a9513340e9d8 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentName.java @@ -0,0 +1,257 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class AgentName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_APP_AGENT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/apps/{app}/agents/{agent}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String app; + private final String agent; + + @Deprecated + protected AgentName() { + project = null; + location = null; + app = null; + agent = null; + } + + private AgentName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + app = Preconditions.checkNotNull(builder.getApp()); + agent = Preconditions.checkNotNull(builder.getAgent()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getApp() { + return app; + } + + public String getAgent() { + return agent; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AgentName of(String project, String location, String app, String agent) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setApp(app) + .setAgent(agent) + .build(); + } + + public static String format(String project, String location, String app, String agent) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setApp(app) + .setAgent(agent) + .build() + .toString(); + } + + public static AgentName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_APP_AGENT.validatedMatch( + formattedString, "AgentName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("app"), + matchMap.get("agent")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (AgentName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_APP_AGENT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (app != null) { + fieldMapBuilder.put("app", app); + } + if (agent != null) { + fieldMapBuilder.put("agent", agent); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_APP_AGENT.instantiate( + "project", project, "location", location, "app", app, "agent", agent); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AgentName that = ((AgentName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.app, that.app) + && Objects.equals(this.agent, that.agent); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(app); + h *= 1000003; + h ^= Objects.hashCode(agent); + return h; + } + + /** Builder for projects/{project}/locations/{location}/apps/{app}/agents/{agent}. */ + public static class Builder { + private String project; + private String location; + private String app; + private String agent; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getApp() { + return app; + } + + public String getAgent() { + return agent; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setApp(String app) { + this.app = app; + return this; + } + + public Builder setAgent(String agent) { + this.agent = agent; + return this; + } + + private Builder(AgentName agentName) { + this.project = agentName.project; + this.location = agentName.location; + this.app = agentName.app; + this.agent = agentName.agent; + } + + public AgentName build() { + return new AgentName(this); + } + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentOrBuilder.java new file mode 100644 index 000000000000..0afae8621f9f --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentOrBuilder.java @@ -0,0 +1,1269 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface AgentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.Agent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. The default agent type.
      +   * 
      + * + * + * .google.cloud.ces.v1.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the llmAgent field is set. + */ + boolean hasLlmAgent(); + + /** + * + * + *
      +   * Optional. The default agent type.
      +   * 
      + * + * + * .google.cloud.ces.v1.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The llmAgent. + */ + com.google.cloud.ces.v1.Agent.LlmAgent getLlmAgent(); + + /** + * + * + *
      +   * Optional. The default agent type.
      +   * 
      + * + * + * .google.cloud.ces.v1.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.Agent.LlmAgentOrBuilder getLlmAgentOrBuilder(); + + /** + * + * + *
      +   * Optional. The remote
      +   * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
      +   * agent to be used for the agent execution. If this field is set, all other
      +   * agent level properties will be ignored.
      +   *
      +   * Note: If the Dialogflow agent is in a different project from the app, you
      +   * should grant `roles/dialogflow.client` to the CES service agent
      +   * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +   * 
      + * + * + * .google.cloud.ces.v1.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the remoteDialogflowAgent field is set. + */ + boolean hasRemoteDialogflowAgent(); + + /** + * + * + *
      +   * Optional. The remote
      +   * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
      +   * agent to be used for the agent execution. If this field is set, all other
      +   * agent level properties will be ignored.
      +   *
      +   * Note: If the Dialogflow agent is in a different project from the app, you
      +   * should grant `roles/dialogflow.client` to the CES service agent
      +   * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +   * 
      + * + * + * .google.cloud.ces.v1.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The remoteDialogflowAgent. + */ + com.google.cloud.ces.v1.Agent.RemoteDialogflowAgent getRemoteDialogflowAgent(); + + /** + * + * + *
      +   * Optional. The remote
      +   * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
      +   * agent to be used for the agent execution. If this field is set, all other
      +   * agent level properties will be ignored.
      +   *
      +   * Note: If the Dialogflow agent is in a different project from the app, you
      +   * should grant `roles/dialogflow.client` to the CES service agent
      +   * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +   * 
      + * + * + * .google.cloud.ces.v1.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.Agent.RemoteDialogflowAgentOrBuilder getRemoteDialogflowAgentOrBuilder(); + + /** + * + * + *
      +   * Identifier. The unique identifier of the agent.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Identifier. The unique identifier of the agent.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Required. Display name of the agent.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
      +   * Required. Display name of the agent.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
      +   * Optional. Human-readable description of the agent.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
      +   * Optional. Human-readable description of the agent.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
      +   * Optional. Configurations for the LLM model.
      +   * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelSettings field is set. + */ + boolean hasModelSettings(); + + /** + * + * + *
      +   * Optional. Configurations for the LLM model.
      +   * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelSettings. + */ + com.google.cloud.ces.v1.ModelSettings getModelSettings(); + + /** + * + * + *
      +   * Optional. Configurations for the LLM model.
      +   * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ModelSettingsOrBuilder getModelSettingsOrBuilder(); + + /** + * + * + *
      +   * Optional. Instructions for the LLM model to guide the agent's behavior.
      +   * 
      + * + * string instruction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The instruction. + */ + java.lang.String getInstruction(); + + /** + * + * + *
      +   * Optional. Instructions for the LLM model to guide the agent's behavior.
      +   * 
      + * + * string instruction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for instruction. + */ + com.google.protobuf.ByteString getInstructionBytes(); + + /** + * + * + *
      +   * Optional. List of available tools for the agent.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +   * 
      + * + * + * repeated string tools = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the tools. + */ + java.util.List getToolsList(); + + /** + * + * + *
      +   * Optional. List of available tools for the agent.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +   * 
      + * + * + * repeated string tools = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of tools. + */ + int getToolsCount(); + + /** + * + * + *
      +   * Optional. List of available tools for the agent.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +   * 
      + * + * + * repeated string tools = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The tools at the given index. + */ + java.lang.String getTools(int index); + + /** + * + * + *
      +   * Optional. List of available tools for the agent.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +   * 
      + * + * + * repeated string tools = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the tools at the given index. + */ + com.google.protobuf.ByteString getToolsBytes(int index); + + /** + * + * + *
      +   * Optional. List of child agents in the agent tree.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +   * 
      + * + * + * repeated string child_agents = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the childAgents. + */ + java.util.List getChildAgentsList(); + + /** + * + * + *
      +   * Optional. List of child agents in the agent tree.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +   * 
      + * + * + * repeated string child_agents = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of childAgents. + */ + int getChildAgentsCount(); + + /** + * + * + *
      +   * Optional. List of child agents in the agent tree.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +   * 
      + * + * + * repeated string child_agents = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The childAgents at the given index. + */ + java.lang.String getChildAgents(int index); + + /** + * + * + *
      +   * Optional. List of child agents in the agent tree.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +   * 
      + * + * + * repeated string child_agents = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the childAgents at the given index. + */ + com.google.protobuf.ByteString getChildAgentsBytes(int index); + + /** + * + * + *
      +   * Optional. The callbacks to execute before the agent is called.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_agent_callbacks = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getBeforeAgentCallbacksList(); + + /** + * + * + *
      +   * Optional. The callbacks to execute before the agent is called.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_agent_callbacks = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.Callback getBeforeAgentCallbacks(int index); + + /** + * + * + *
      +   * Optional. The callbacks to execute before the agent is called.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_agent_callbacks = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getBeforeAgentCallbacksCount(); + + /** + * + * + *
      +   * Optional. The callbacks to execute before the agent is called.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_agent_callbacks = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getBeforeAgentCallbacksOrBuilderList(); + + /** + * + * + *
      +   * Optional. The callbacks to execute before the agent is called.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_agent_callbacks = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.CallbackOrBuilder getBeforeAgentCallbacksOrBuilder(int index); + + /** + * + * + *
      +   * Optional. The callbacks to execute after the agent is called.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_agent_callbacks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getAfterAgentCallbacksList(); + + /** + * + * + *
      +   * Optional. The callbacks to execute after the agent is called.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_agent_callbacks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.Callback getAfterAgentCallbacks(int index); + + /** + * + * + *
      +   * Optional. The callbacks to execute after the agent is called.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_agent_callbacks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAfterAgentCallbacksCount(); + + /** + * + * + *
      +   * Optional. The callbacks to execute after the agent is called.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_agent_callbacks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getAfterAgentCallbacksOrBuilderList(); + + /** + * + * + *
      +   * Optional. The callbacks to execute after the agent is called.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_agent_callbacks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.CallbackOrBuilder getAfterAgentCallbacksOrBuilder(int index); + + /** + * + * + *
      +   * Optional. The callbacks to execute before the model is called. If there are
      +   * multiple calls to the model, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_model_callbacks = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getBeforeModelCallbacksList(); + + /** + * + * + *
      +   * Optional. The callbacks to execute before the model is called. If there are
      +   * multiple calls to the model, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_model_callbacks = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.Callback getBeforeModelCallbacks(int index); + + /** + * + * + *
      +   * Optional. The callbacks to execute before the model is called. If there are
      +   * multiple calls to the model, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_model_callbacks = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getBeforeModelCallbacksCount(); + + /** + * + * + *
      +   * Optional. The callbacks to execute before the model is called. If there are
      +   * multiple calls to the model, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_model_callbacks = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getBeforeModelCallbacksOrBuilderList(); + + /** + * + * + *
      +   * Optional. The callbacks to execute before the model is called. If there are
      +   * multiple calls to the model, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_model_callbacks = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.CallbackOrBuilder getBeforeModelCallbacksOrBuilder(int index); + + /** + * + * + *
      +   * Optional. The callbacks to execute after the model is called. If there are
      +   * multiple calls to the model, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_model_callbacks = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getAfterModelCallbacksList(); + + /** + * + * + *
      +   * Optional. The callbacks to execute after the model is called. If there are
      +   * multiple calls to the model, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_model_callbacks = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.Callback getAfterModelCallbacks(int index); + + /** + * + * + *
      +   * Optional. The callbacks to execute after the model is called. If there are
      +   * multiple calls to the model, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_model_callbacks = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAfterModelCallbacksCount(); + + /** + * + * + *
      +   * Optional. The callbacks to execute after the model is called. If there are
      +   * multiple calls to the model, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_model_callbacks = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getAfterModelCallbacksOrBuilderList(); + + /** + * + * + *
      +   * Optional. The callbacks to execute after the model is called. If there are
      +   * multiple calls to the model, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_model_callbacks = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.CallbackOrBuilder getAfterModelCallbacksOrBuilder(int index); + + /** + * + * + *
      +   * Optional. The callbacks to execute before the tool is invoked. If there are
      +   * multiple tool invocations, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_tool_callbacks = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getBeforeToolCallbacksList(); + + /** + * + * + *
      +   * Optional. The callbacks to execute before the tool is invoked. If there are
      +   * multiple tool invocations, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_tool_callbacks = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.Callback getBeforeToolCallbacks(int index); + + /** + * + * + *
      +   * Optional. The callbacks to execute before the tool is invoked. If there are
      +   * multiple tool invocations, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_tool_callbacks = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getBeforeToolCallbacksCount(); + + /** + * + * + *
      +   * Optional. The callbacks to execute before the tool is invoked. If there are
      +   * multiple tool invocations, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_tool_callbacks = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getBeforeToolCallbacksOrBuilderList(); + + /** + * + * + *
      +   * Optional. The callbacks to execute before the tool is invoked. If there are
      +   * multiple tool invocations, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback before_tool_callbacks = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.CallbackOrBuilder getBeforeToolCallbacksOrBuilder(int index); + + /** + * + * + *
      +   * Optional. The callbacks to execute after the tool is invoked. If there are
      +   * multiple tool invocations, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_tool_callbacks = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getAfterToolCallbacksList(); + + /** + * + * + *
      +   * Optional. The callbacks to execute after the tool is invoked. If there are
      +   * multiple tool invocations, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_tool_callbacks = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.Callback getAfterToolCallbacks(int index); + + /** + * + * + *
      +   * Optional. The callbacks to execute after the tool is invoked. If there are
      +   * multiple tool invocations, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_tool_callbacks = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAfterToolCallbacksCount(); + + /** + * + * + *
      +   * Optional. The callbacks to execute after the tool is invoked. If there are
      +   * multiple tool invocations, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_tool_callbacks = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getAfterToolCallbacksOrBuilderList(); + + /** + * + * + *
      +   * Optional. The callbacks to execute after the tool is invoked. If there are
      +   * multiple tool invocations, the callback will be executed multiple times.
      +   * The provided callbacks are executed sequentially in the exact order they
      +   * are given in the list. If a callback returns an overridden response,
      +   * execution stops and any remaining callbacks are skipped.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Callback after_tool_callbacks = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.CallbackOrBuilder getAfterToolCallbacksOrBuilder(int index); + + /** + * + * + *
      +   * Output only. Timestamp when the agent was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the agent was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the agent was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
      +   * Output only. Timestamp when the agent was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the agent was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the agent was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
      +   * Optional. List of guardrails for the agent.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +   * 
      + * + * + * repeated string guardrails = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the guardrails. + */ + java.util.List getGuardrailsList(); + + /** + * + * + *
      +   * Optional. List of guardrails for the agent.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +   * 
      + * + * + * repeated string guardrails = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of guardrails. + */ + int getGuardrailsCount(); + + /** + * + * + *
      +   * Optional. List of guardrails for the agent.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +   * 
      + * + * + * repeated string guardrails = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The guardrails at the given index. + */ + java.lang.String getGuardrails(int index); + + /** + * + * + *
      +   * Optional. List of guardrails for the agent.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +   * 
      + * + * + * repeated string guardrails = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the guardrails at the given index. + */ + com.google.protobuf.ByteString getGuardrailsBytes(int index); + + /** + * + * + *
      +   * Etag used to ensure the object hasn't changed during a read-modify-write
      +   * operation. If the etag is empty, the update will overwrite any concurrent
      +   * changes.
      +   * 
      + * + * string etag = 24; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
      +   * Etag used to ensure the object hasn't changed during a read-modify-write
      +   * operation. If the etag is empty, the update will overwrite any concurrent
      +   * changes.
      +   * 
      + * + * string etag = 24; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
      +   * Optional. List of toolsets for the agent.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Agent.AgentToolset toolsets = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getToolsetsList(); + + /** + * + * + *
      +   * Optional. List of toolsets for the agent.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Agent.AgentToolset toolsets = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.Agent.AgentToolset getToolsets(int index); + + /** + * + * + *
      +   * Optional. List of toolsets for the agent.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Agent.AgentToolset toolsets = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getToolsetsCount(); + + /** + * + * + *
      +   * Optional. List of toolsets for the agent.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Agent.AgentToolset toolsets = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getToolsetsOrBuilderList(); + + /** + * + * + *
      +   * Optional. List of toolsets for the agent.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Agent.AgentToolset toolsets = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.Agent.AgentToolsetOrBuilder getToolsetsOrBuilder(int index); + + /** + * + * + *
      +   * Output only. If the agent is generated by the LLM assistant, this field
      +   * contains a descriptive summary of the generation.
      +   * 
      + * + * string generated_summary = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The generatedSummary. + */ + java.lang.String getGeneratedSummary(); + + /** + * + * + *
      +   * Output only. If the agent is generated by the LLM assistant, this field
      +   * contains a descriptive summary of the generation.
      +   * 
      + * + * string generated_summary = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for generatedSummary. + */ + com.google.protobuf.ByteString getGeneratedSummaryBytes(); + + /** + * + * + *
      +   * Optional. Agent transfer rules.
      +   * If multiple rules match, the first one in the list will be used.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.TransferRule transfer_rules = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getTransferRulesList(); + + /** + * + * + *
      +   * Optional. Agent transfer rules.
      +   * If multiple rules match, the first one in the list will be used.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.TransferRule transfer_rules = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.TransferRule getTransferRules(int index); + + /** + * + * + *
      +   * Optional. Agent transfer rules.
      +   * If multiple rules match, the first one in the list will be used.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.TransferRule transfer_rules = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getTransferRulesCount(); + + /** + * + * + *
      +   * Optional. Agent transfer rules.
      +   * If multiple rules match, the first one in the list will be used.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.TransferRule transfer_rules = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getTransferRulesOrBuilderList(); + + /** + * + * + *
      +   * Optional. Agent transfer rules.
      +   * If multiple rules match, the first one in the list will be used.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.TransferRule transfer_rules = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.TransferRuleOrBuilder getTransferRulesOrBuilder(int index); + + com.google.cloud.ces.v1.Agent.AgentTypeCase getAgentTypeCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentProto.java new file mode 100644 index 000000000000..f843689c3c8f --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentProto.java @@ -0,0 +1,247 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class AgentProto extends com.google.protobuf.GeneratedFile { + private AgentProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Agent_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Agent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Agent_LlmAgent_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Agent_LlmAgent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Agent_RemoteDialogflowAgent_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Agent_RemoteDialogflowAgent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Agent_RemoteDialogflowAgent_InputVariableMappingEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Agent_RemoteDialogflowAgent_InputVariableMappingEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Agent_RemoteDialogflowAgent_OutputVariableMappingEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Agent_RemoteDialogflowAgent_OutputVariableMappingEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Agent_AgentToolset_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Agent_AgentToolset_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" + + "\037google/cloud/ces/v1/agent.proto\022\023googl" + + "e.cloud.ces.v1\032\037google/api/field_behavio" + + "r.proto\032\031google/api/resource.proto\032)google/cloud/ces/v1/agent_transfers.proto\032" + + " google/cloud/ces/v1/common.proto\032\037google/protobuf/timestamp.proto\"\234\017\n" + + "\005Agent\022=\n" + + "\tllm_agent\030\032" + + " \001(\0132#.google.cloud.ces.v1.Agent.LlmAgentB\003\340A\001H\000\022X\n" + + "\027remote_dialogflow_agent\030\033" + + " \001(\01320.google.cloud.ces.v1.Agent.RemoteDialogflowAgentB\003\340A\001H\000\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\002\022\030\n" + + "\013description\030\003 \001(\tB\003\340A\001\022?\n" + + "\016model_settings\030\004 " + + "\001(\0132\".google.cloud.ces.v1.ModelSettingsB\003\340A\001\022\030\n" + + "\013instruction\030\006 \001(\tB\003\340A\001\022.\n" + + "\005tools\030\007 \003(\tB\037\340A\001\372A\031\n" + + "\027ces.googleapis.com/Tool\0226\n" + + "\014child_agents\030\010 \003(\tB \340A\001\372A\032\n" + + "\030ces.googleapis.com/Agent\022B\n" + + "\026before_agent_callbacks\030\022" + + " \003(\0132\035.google.cloud.ces.v1.CallbackB\003\340A\001\022A\n" + + "\025after_agent_callbacks\030\023" + + " \003(\0132\035.google.cloud.ces.v1.CallbackB\003\340A\001\022B\n" + + "\026before_model_callbacks\030\024" + + " \003(\0132\035.google.cloud.ces.v1.CallbackB\003\340A\001\022A\n" + + "\025after_model_callbacks\030\025" + + " \003(\0132\035.google.cloud.ces.v1.CallbackB\003\340A\001\022A\n" + + "\025before_tool_callbacks\030\026" + + " \003(\0132\035.google.cloud.ces.v1.CallbackB\003\340A\001\022@\n" + + "\024after_tool_callbacks\030\027" + + " \003(\0132\035.google.cloud.ces.v1.CallbackB\003\340A\001\0224\n" + + "\013create_time\030\017 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\020" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0228\n\n" + + "guardrails\030\021 \003(\tB$\340A\001\372A\036\n" + + "\034ces.googleapis.com/Guardrail\022\014\n" + + "\004etag\030\030 \001(\t\022>\n" + + "\010toolsets\030\034" + + " \003(\0132\'.google.cloud.ces.v1.Agent.AgentToolsetB\003\340A\001\022\036\n" + + "\021generated_summary\030\035 \001(\tB\003\340A\003\022>\n" + + "\016transfer_rules\030\036" + + " \003(\0132!.google.cloud.ces.v1.TransferRuleB\003\340A\001\032\n\n" + + "\010LlmAgent\032\240\004\n" + + "\025RemoteDialogflowAgent\022@\n" + + "\005agent\030\001 \001(\tB1\340A\002\372A+\n" + + ")dialogflow.googleapis.com/DialogflowAgent\022\024\n" + + "\007flow_id\030\002 \001(\tB\003\340A\001\022\033\n" + + "\016environment_id\030\003 \001(\tB\003\340A\001\022o\n" + + "\026input_variable_mapping\030\004 \003(\0132J.google.cloud." + + "ces.v1.Agent.RemoteDialogflowAgent.InputVariableMappingEntryB\003\340A\001\022q\n" + + "\027output_variable_mapping\030\005 \003(\0132K.google.cloud.ces.v1" + + ".Agent.RemoteDialogflowAgent.OutputVariableMappingEntryB\003\340A\001\0223\n" + + "&respect_response_interruption_settings\030\006 \001(\010B\003\340A\001\032;\n" + + "\031InputVariableMappingEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\032<\n" + + "\032OutputVariableMappingEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\032Z\n" + + "\014AgentToolset\0223\n" + + "\007toolset\030\001 \001(\tB\"\340A\002\372A\034\n" + + "\032ces.googleapis.com/Toolset\022\025\n" + + "\010tool_ids\030\004 \003(\tB\003\340A\001:o\352Al\n" + + "\030ces.googleapis.com/Agent\022Aprojects/{project}/locations/{location}" + + "/apps/{app}/agents/{agent}*\006agents2\005agentB\014\n\n" + + "agent_typeB\270\001\n" + + "\027com.google.cloud.ces.v1B\n" + + "AgentProtoP\001Z)cloud.google.com/go/ces/apiv1/cespb;cespb\352Ac\n" + + ")dialogflow.googleapis.com/DialogflowAgent\0226projects/{pr" + + "oject}/locations/{location}/agents/{agent}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.ces.v1.AgentTransfersProto.getDescriptor(), + com.google.cloud.ces.v1.CommonProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_Agent_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_Agent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Agent_descriptor, + new java.lang.String[] { + "LlmAgent", + "RemoteDialogflowAgent", + "Name", + "DisplayName", + "Description", + "ModelSettings", + "Instruction", + "Tools", + "ChildAgents", + "BeforeAgentCallbacks", + "AfterAgentCallbacks", + "BeforeModelCallbacks", + "AfterModelCallbacks", + "BeforeToolCallbacks", + "AfterToolCallbacks", + "CreateTime", + "UpdateTime", + "Guardrails", + "Etag", + "Toolsets", + "GeneratedSummary", + "TransferRules", + "AgentType", + }); + internal_static_google_cloud_ces_v1_Agent_LlmAgent_descriptor = + internal_static_google_cloud_ces_v1_Agent_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_Agent_LlmAgent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Agent_LlmAgent_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_ces_v1_Agent_RemoteDialogflowAgent_descriptor = + internal_static_google_cloud_ces_v1_Agent_descriptor.getNestedType(1); + internal_static_google_cloud_ces_v1_Agent_RemoteDialogflowAgent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Agent_RemoteDialogflowAgent_descriptor, + new java.lang.String[] { + "Agent", + "FlowId", + "EnvironmentId", + "InputVariableMapping", + "OutputVariableMapping", + "RespectResponseInterruptionSettings", + }); + internal_static_google_cloud_ces_v1_Agent_RemoteDialogflowAgent_InputVariableMappingEntry_descriptor = + internal_static_google_cloud_ces_v1_Agent_RemoteDialogflowAgent_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_Agent_RemoteDialogflowAgent_InputVariableMappingEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Agent_RemoteDialogflowAgent_InputVariableMappingEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_ces_v1_Agent_RemoteDialogflowAgent_OutputVariableMappingEntry_descriptor = + internal_static_google_cloud_ces_v1_Agent_RemoteDialogflowAgent_descriptor.getNestedType(1); + internal_static_google_cloud_ces_v1_Agent_RemoteDialogflowAgent_OutputVariableMappingEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Agent_RemoteDialogflowAgent_OutputVariableMappingEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_ces_v1_Agent_AgentToolset_descriptor = + internal_static_google_cloud_ces_v1_Agent_descriptor.getNestedType(2); + internal_static_google_cloud_ces_v1_Agent_AgentToolset_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Agent_AgentToolset_descriptor, + new java.lang.String[] { + "Toolset", "ToolIds", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.ces.v1.AgentTransfersProto.getDescriptor(); + com.google.cloud.ces.v1.CommonProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentServiceProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentServiceProto.java new file mode 100644 index 000000000000..a77500b2fd27 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentServiceProto.java @@ -0,0 +1,1385 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class AgentServiceProto extends com.google.protobuf.GeneratedFile { + private AgentServiceProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentServiceProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ListAppsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ListAppsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ListAppsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ListAppsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_GetAppRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_GetAppRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_CreateAppRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_CreateAppRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_UpdateAppRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_UpdateAppRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_DeleteAppRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_DeleteAppRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ExportAppRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ExportAppRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ExportAppResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ExportAppResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ImportAppRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ImportAppRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ImportAppRequest_ImportOptions_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ImportAppRequest_ImportOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ImportAppResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ImportAppResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ListAgentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ListAgentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ListAgentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ListAgentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_GetAgentRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_GetAgentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_CreateAgentRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_CreateAgentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_UpdateAgentRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_UpdateAgentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_DeleteAgentRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_DeleteAgentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ListExamplesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ListExamplesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ListExamplesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ListExamplesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_GetExampleRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_GetExampleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_CreateExampleRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_CreateExampleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_UpdateExampleRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_UpdateExampleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_DeleteExampleRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_DeleteExampleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ListToolsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ListToolsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ListToolsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ListToolsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_GetToolRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_GetToolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_CreateToolRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_CreateToolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_UpdateToolRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_UpdateToolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_DeleteToolRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_DeleteToolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ListConversationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ListConversationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ListConversationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ListConversationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_GetConversationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_GetConversationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_DeleteConversationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_DeleteConversationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_BatchDeleteConversationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_BatchDeleteConversationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_BatchDeleteConversationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_BatchDeleteConversationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ListGuardrailsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ListGuardrailsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ListGuardrailsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ListGuardrailsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_GetGuardrailRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_GetGuardrailRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_CreateGuardrailRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_CreateGuardrailRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_UpdateGuardrailRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_UpdateGuardrailRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_DeleteGuardrailRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_DeleteGuardrailRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ListDeploymentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ListDeploymentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ListDeploymentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ListDeploymentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_GetDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_GetDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_CreateDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_CreateDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_UpdateDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_UpdateDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_DeleteDeploymentRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_DeleteDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ListToolsetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ListToolsetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ListToolsetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ListToolsetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_GetToolsetRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_GetToolsetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_CreateToolsetRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_CreateToolsetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_UpdateToolsetRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_UpdateToolsetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_DeleteToolsetRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_DeleteToolsetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ListAppVersionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ListAppVersionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ListAppVersionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ListAppVersionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_GetAppVersionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_GetAppVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_DeleteAppVersionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_DeleteAppVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_CreateAppVersionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_CreateAppVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_RestoreAppVersionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_RestoreAppVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_RestoreAppVersionResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_RestoreAppVersionResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ListChangelogsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ListChangelogsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ListChangelogsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ListChangelogsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_GetChangelogRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_GetChangelogRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "\'google/cloud/ces/v1/agent_service.prot" + + "o\022\023google.cloud.ces.v1\032\034google/api/annot" + + "ations.proto\032\027google/api/client.proto\032\037g" + + "oogle/api/field_behavior.proto\032\031google/a" + + "pi/resource.proto\032\037google/cloud/ces/v1/a" + + "gent.proto\032\035google/cloud/ces/v1/app.prot" + + "o\032%google/cloud/ces/v1/app_version.proto" + + "\032#google/cloud/ces/v1/changelog.proto\032&g" + + "oogle/cloud/ces/v1/conversation.proto\032$google/cloud/ces/v1/deployment.proto\032!goo" + + "gle/cloud/ces/v1/example.proto\032#google/c" + + "loud/ces/v1/guardrail.proto\032\036google/clou" + + "d/ces/v1/tool.proto\032!google/cloud/ces/v1/toolset.proto\032#google/longrunning/opera" + + "tions.proto\032\033google/protobuf/empty.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\236\001\n" + + "\017ListAppsRequest\022.\n" + + "\006parent\030\001 \001(" + + "\tB\036\340A\002\372A\030\022\026ces.googleapis.com/App\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"m\n" + + "\020ListAppsResponse\022&\n" + + "\004apps\030\001 \003(\0132\030.google.cloud.ces.v1.App\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\030\n" + + "\013unreachable\030\003 \003(\tB\003\340A\006\"=\n\r" + + "GetAppRequest\022,\n" + + "\004name\030\001 \001(\tB\036\340A\002\372A\030\n" + + "\026ces.googleapis.com/App\"\203\001\n" + + "\020CreateAppRequest\022.\n" + + "\006parent\030\001 \001(" + + "\tB\036\340A\002\372A\030\022\026ces.googleapis.com/App\022\023\n" + + "\006app_id\030\002 \001(\tB\003\340A\001\022*\n" + + "\003app\030\003 \001(\0132\030.google.cloud.ces.v1.AppB\003\340A\002\"t\n" + + "\020UpdateAppRequest\022*\n" + + "\003app\030\001 \001(\0132\030.google.cloud.ces.v1.AppB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"S\n" + + "\020DeleteAppRequest\022,\n" + + "\004name\030\001 \001(\tB\036\340A\002\372A\030\n" + + "\026ces.googleapis.com/App\022\021\n" + + "\004etag\030\002 \001(\tB\003\340A\001\"\351\001\n" + + "\020ExportAppRequest\022,\n" + + "\004name\030\001 \001(\tB\036\340A\002\372A\030\n" + + "\026ces.googleapis.com/App\022N\n\r" + + "export_format\030\002 \001(\01622.google.c" + + "loud.ces.v1.ExportAppRequest.ExportFormatB\003\340A\002\022\024\n" + + "\007gcs_uri\030\003 \001(\tB\003\340A\001\"A\n" + + "\014ExportFormat\022\035\n" + + "\031EXPORT_FORMAT_UNSPECIFIED\020\000\022\010\n" + + "\004JSON\020\001\022\010\n" + + "\004YAML\020\002\"D\n" + + "\021ExportAppResponse\022\025\n" + + "\013app_content\030\001 \001(\014H\000\022\021\n" + + "\007app_uri\030\002 \001(\tH\000B\005\n" + + "\003app\"\210\004\n" + + "\020ImportAppRequest\022\021\n" + + "\007gcs_uri\030\004 \001(\tH\000\022\025\n" + + "\013app_content\030\005 \001(\014H\000\022.\n" + + "\006parent\030\001 \001(" + + "\tB\036\340A\002\372A\030\022\026ces.googleapis.com/App\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\001\022\023\n" + + "\006app_id\030\003 \001(\tB\003\340A\001\022P\n" + + "\016import_options\030\006 \001(\01323.google.cl" + + "oud.ces.v1.ImportAppRequest.ImportOptionsB\003\340A\001\022\034\n" + + "\017ignore_app_lock\030\007 \001(\010B\003\340A\001\032\362\001\n" + + "\r" + + "ImportOptions\022y\n" + + "\034conflict_resolution_strategy\030\001 \001(\0162N.google.cloud.ces.v1.Impor" + + "tAppRequest.ImportOptions.ConflictResolutionStrategyB\003\340A\001\"f\n" + + "\032ConflictResolutionStrategy\022,\n" + + "(CONFLICT_RESOLUTION_STRATEGY_UNSPECIFIED\020\000\022\013\n" + + "\007REPLACE\020\001\022\r\n" + + "\tOVERWRITE\020\002B\005\n" + + "\003app\"P\n" + + "\021ImportAppResponse\022)\n" + + "\004name\030\001 \001(\tB\033\372A\030\n" + + "\026ces.googleapis.com/App\022\020\n" + + "\010warnings\030\002 \003(\t\"\242\001\n" + + "\021ListAgentsRequest\0220\n" + + "\006parent\030\001 \001(\tB" + + " \340A\002\372A\032\022\030ces.googleapis.com/Agent\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"Y\n" + + "\022ListAgentsResponse\022*\n" + + "\006agents\030\001 \003(\0132\032.google.cloud.ces.v1.Agent\022\027\n" + + "\017next_page_token\030\002 \001(\t\"A\n" + + "\017GetAgentRequest\022.\n" + + "\004name\030\001 \001(\tB \340A\002\372A\032\n" + + "\030ces.googleapis.com/Agent\"\215\001\n" + + "\022CreateAgentRequest\0220\n" + + "\006parent\030\001 \001(\tB" + + " \340A\002\372A\032\022\030ces.googleapis.com/Agent\022\025\n" + + "\010agent_id\030\002 \001(\tB\003\340A\001\022.\n" + + "\005agent\030\003 \001(\0132\032.google.cloud.ces.v1.AgentB\003\340A\002\"z\n" + + "\022UpdateAgentRequest\022.\n" + + "\005agent\030\001 \001(\0132\032.google.cloud.ces.v1.AgentB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"k\n" + + "\022DeleteAgentRequest\022.\n" + + "\004name\030\001 \001(\tB \340A\002\372A\032\n" + + "\030ces.googleapis.com/Agent\022\022\n" + + "\005force\030\002 \001(\010B\003\340A\001\022\021\n" + + "\004etag\030\003 \001(\tB\003\340A\001\"\276\001\n" + + "\021OperationMetadata\0224\n" + + "\013create_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" + + "\010end_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\033\n" + + "\016status_message\030\003 \001(\tB\003\340A\003\022#\n" + + "\026requested_cancellation\030\004 \001(\010B\003\340A\003\"\246\001\n" + + "\023ListExamplesRequest\0222\n" + + "\006parent\030\001 \001(" + + "\tB\"\340A\002\372A\034\022\032ces.googleapis.com/Example\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"_\n" + + "\024ListExamplesResponse\022.\n" + + "\010examples\030\001 \003(\0132\034.google.cloud.ces.v1.Example\022\027\n" + + "\017next_page_token\030\002 \001(\t\"E\n" + + "\021GetExampleRequest\0220\n" + + "\004name\030\001 \001(\tB\"\340A\002\372A\034\n" + + "\032ces.googleapis.com/Example\"\227\001\n" + + "\024CreateExampleRequest\0222\n" + + "\006parent\030\001 \001(" + + "\tB\"\340A\002\372A\034\022\032ces.googleapis.com/Example\022\027\n" + + "\n" + + "example_id\030\002 \001(\tB\003\340A\001\0222\n" + + "\007example\030\003" + + " \001(\0132\034.google.cloud.ces.v1.ExampleB\003\340A\002\"\200\001\n" + + "\024UpdateExampleRequest\0222\n" + + "\007example\030\001 \001(\0132\034.google.cloud.ces.v1.ExampleB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"[\n" + + "\024DeleteExampleRequest\0220\n" + + "\004name\030\001 \001(\tB\"\340A\002\372A\034\n" + + "\032ces.googleapis.com/Example\022\021\n" + + "\004etag\030\002 \001(\tB\003\340A\001\"\240\001\n" + + "\020ListToolsRequest\022/\n" + + "\006parent\030\001 \001(" + + "\tB\037\340A\002\372A\031\022\027ces.googleapis.com/Tool\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"V\n" + + "\021ListToolsResponse\022(\n" + + "\005tools\030\001 \003(\0132\031.google.cloud.ces.v1.Tool\022\027\n" + + "\017next_page_token\030\002 \001(\t\"?\n" + + "\016GetToolRequest\022-\n" + + "\004name\030\001 \001(\tB\037\340A\002\372A\031\n" + + "\027ces.googleapis.com/Tool\"\210\001\n" + + "\021CreateToolRequest\022/\n" + + "\006parent\030\001 \001(" + + "\tB\037\340A\002\372A\031\022\027ces.googleapis.com/Tool\022\024\n" + + "\007tool_id\030\002 \001(\tB\003\340A\001\022,\n" + + "\004tool\030\003 \001(\0132\031.google.cloud.ces.v1.ToolB\003\340A\002\"w\n" + + "\021UpdateToolRequest\022,\n" + + "\004tool\030\001 \001(\0132\031.google.cloud.ces.v1.ToolB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"i\n" + + "\021DeleteToolRequest\022-\n" + + "\004name\030\001 \001(\tB\037\340A\002\372A\031\n" + + "\027ces.googleapis.com/Tool\022\022\n" + + "\005force\030\002 \001(\010B\003\340A\001\022\021\n" + + "\004etag\030\003 \001(\tB\003\340A\001\"\230\002\n" + + "\030ListConversationsRequest\0227\n" + + "\006parent\030\001 \001(" + + "\tB\'\340A\002\372A!\022\037ces.googleapis.com/Conversation\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022=\n" + + "\006source\030\005 \001(\0162(.goog" + + "le.cloud.ces.v1.Conversation.SourceB\003\340A\001\022>\n" + + "\007sources\030\006" + + " \003(\0162(.google.cloud.ces.v1.Conversation.SourceB\003\340A\001\"n\n" + + "\031ListConversationsResponse\0228\n\r" + + "conversations\030\001 \003(\0132!.google.cloud.ces.v1.Conversation\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\220\001\n" + + "\026GetConversationRequest\0225\n" + + "\004name\030\001 \001(\tB\'\340A\002\372A!\n" + + "\037ces.googleapis.com/Conversation\022?\n" + + "\006source\030\002 \001(\0162(.goo" + + "gle.cloud.ces.v1.Conversation.SourceB\005\030\001\340A\001\"\223\001\n" + + "\031DeleteConversationRequest\0225\n" + + "\004name\030\001 \001(\tB\'\340A\002\372A!\n" + + "\037ces.googleapis.com/Conversation\022?\n" + + "\006source\030\002" + + " \001(\0162(.google.cloud.ces.v1.Conversation.SourceB\005\030\001\340A\001\"\232\001\n" + + "\037BatchDeleteConversationsRequest\0227\n" + + "\006parent\030\001 \001(" + + "\tB\'\340A\002\372A!\022\037ces.googleapis.com/Conversation\022>\n\r" + + "conversations\030\002 \003(\tB\'\340A\002\372A!\n" + + "\037ces.googleapis.com/Conversation\"|\n" + + " BatchDeleteConversationsResponse\022\035\n" + + "\025deleted_conversations\030\001 \003(\t\022\034\n" + + "\024failed_conversations\030\002 \003(\t\022\033\n" + + "\016error_messages\030\003 \003(\tB\003\340A\001\"\252\001\n" + + "\025ListGuardrailsRequest\0224\n" + + "\006parent\030\001 \001(" + + "\tB$\340A\002\372A\036\022\034ces.googleapis.com/Guardrail\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"e\n" + + "\026ListGuardrailsResponse\0222\n\n" + + "guardrails\030\001 \003(\0132\036.google.cloud.ces.v1.Guardrail\022\027\n" + + "\017next_page_token\030\002 \001(\t\"I\n" + + "\023GetGuardrailRequest\0222\n" + + "\004name\030\001 \001(\tB$\340A\002\372A\036\n" + + "\034ces.googleapis.com/Guardrail\"\241\001\n" + + "\026CreateGuardrailRequest\0224\n" + + "\006parent\030\001 \001(" + + "\tB$\340A\002\372A\036\022\034ces.googleapis.com/Guardrail\022\031\n" + + "\014guardrail_id\030\002 \001(\tB\003\340A\001\0226\n" + + "\tguardrail\030\003" + + " \001(\0132\036.google.cloud.ces.v1.GuardrailB\003\340A\002\"\206\001\n" + + "\026UpdateGuardrailRequest\0226\n" + + "\tguardrail\030\001 \001(\0132\036.google.cloud.ces.v1.GuardrailB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"s\n" + + "\026DeleteGuardrailRequest\0222\n" + + "\004name\030\001 \001(\tB$\340A\002\372A\036\n" + + "\034ces.googleapis.com/Guardrail\022\022\n" + + "\005force\030\002 \001(\010B\003\340A\001\022\021\n" + + "\004etag\030\003 \001(\tB\003\340A\001\"\227\001\n" + + "\026ListDeploymentsRequest\0225\n" + + "\006parent\030\001 \001(" + + "\tB%\340A\002\372A\037\022\035ces.googleapis.com/Deployment\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\004 \001(\tB\003\340A\001\"h\n" + + "\027ListDeploymentsResponse\0224\n" + + "\013deployments\030\001 \003(\0132\037.google.cloud.ces.v1.Deployment\022\027\n" + + "\017next_page_token\030\002 \001(\t\"K\n" + + "\024GetDeploymentRequest\0223\n" + + "\004name\030\001 \001(\tB%\340A\002\372A\037\n" + + "\035ces.googleapis.com/Deployment\"\246\001\n" + + "\027CreateDeploymentRequest\0225\n" + + "\006parent\030\001 \001(" + + "\tB%\340A\002\372A\037\022\035ces.googleapis.com/Deployment\022\032\n\r" + + "deployment_id\030\003 \001(\tB\003\340A\001\0228\n\n" + + "deployment\030\002" + + " \001(\0132\037.google.cloud.ces.v1.DeploymentB\003\340A\002\"\211\001\n" + + "\027UpdateDeploymentRequest\0228\n\n" + + "deployment\030\001 \001(\0132\037.google.cloud.ces.v1.DeploymentB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"a\n" + + "\027DeleteDeploymentRequest\0223\n" + + "\004name\030\001 \001(\tB%\340A\002\372A\037\n" + + "\035ces.googleapis.com/Deployment\022\021\n" + + "\004etag\030\002 \001(\tB\003\340A\001\"\246\001\n" + + "\023ListToolsetsRequest\0222\n" + + "\006parent\030\001 \001(" + + "\tB\"\340A\002\372A\034\022\032ces.googleapis.com/Toolset\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"_\n" + + "\024ListToolsetsResponse\022.\n" + + "\010toolsets\030\001 \003(\0132\034.google.cloud.ces.v1.Toolset\022\027\n" + + "\017next_page_token\030\002 \001(\t\"E\n" + + "\021GetToolsetRequest\0220\n" + + "\004name\030\001 \001(\tB\"\340A\002\372A\034\n" + + "\032ces.googleapis.com/Toolset\"\227\001\n" + + "\024CreateToolsetRequest\0222\n" + + "\006parent\030\001 \001(" + + "\tB\"\340A\002\372A\034\022\032ces.googleapis.com/Toolset\022\027\n\n" + + "toolset_id\030\002 \001(\tB\003\340A\001\0222\n" + + "\007toolset\030\003" + + " \001(\0132\034.google.cloud.ces.v1.ToolsetB\003\340A\002\"\200\001\n" + + "\024UpdateToolsetRequest\0222\n" + + "\007toolset\030\001 \001(\0132\034.google.cloud.ces.v1.ToolsetB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"o\n" + + "\024DeleteToolsetRequest\0220\n" + + "\004name\030\001 \001(\tB\"\340A\002\372A\034\n" + + "\032ces.googleapis.com/Toolset\022\022\n" + + "\005force\030\002 \001(\010B\003\340A\001\022\021\n" + + "\004etag\030\003 \001(\tB\003\340A\001\"\254\001\n" + + "\026ListAppVersionsRequest\0225\n" + + "\006parent\030\001 \001(" + + "\tB%\340A\002\372A\037\022\035ces.googleapis.com/AppVersion\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"i\n" + + "\027ListAppVersionsResponse\0225\n" + + "\014app_versions\030\001 \003(\0132\037.google.cloud.ces.v1.AppVersion\022\027\n" + + "\017next_page_token\030\002 \001(\t\"K\n" + + "\024GetAppVersionRequest\0223\n" + + "\004name\030\001 \001(\tB%\340A\002\372A\037\n" + + "\035ces.googleapis.com/AppVersion\"a\n" + + "\027DeleteAppVersionRequest\0223\n" + + "\004name\030\001 \001(\tB%\340A\002\372A\037\n" + + "\035ces.googleapis.com/AppVersion\022\021\n" + + "\004etag\030\002 \001(\tB\003\340A\001\"\250\001\n" + + "\027CreateAppVersionRequest\0225\n" + + "\006parent\030\001 \001(" + + "\tB%\340A\002\372A\037\022\035ces.googleapis.com/AppVersion\022\033\n" + + "\016app_version_id\030\002 \001(\tB\003\340A\001\0229\n" + + "\013app_version\030\003" + + " \001(\0132\037.google.cloud.ces.v1.AppVersionB\003\340A\002\"O\n" + + "\030RestoreAppVersionRequest\0223\n" + + "\004name\030\001 \001(\tB%\340A\002\372A\037\n" + + "\035ces.googleapis.com/AppVersion\"\033\n" + + "\031RestoreAppVersionResponse\"\252\001\n" + + "\025ListChangelogsRequest\0224\n" + + "\006parent\030\001 \001(" + + "\tB$\340A\002\372A\036\022\034ces.googleapis.com/Changelog\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"e\n" + + "\026ListChangelogsResponse\0222\n\n" + + "changelogs\030\001 \003(\0132\036.google.cloud.ces.v1.Changelog\022\027\n" + + "\017next_page_token\030\002 \001(\t\"I\n" + + "\023GetChangelogRequest\0222\n" + + "\004name\030\001 \001(\tB$\340A\002\372A\036\n" + + "\034ces.googleapis.com/Changelog2\376C\n" + + "\014AgentService\022\222\001\n" + + "\010ListApps\022$.google.cloud.ces.v1.ListAppsRequ" + + "est\032%.google.cloud.ces.v1.ListAppsRespon" + + "se\"9\332A\006parent\202\323\344\223\002*\022(/v1/{parent=projects/*/locations/*}/apps\022\177\n" + + "\006GetApp\022\".google.cloud.ces.v1.GetAppRequest\032\030.google.clo" + + "ud.ces.v1.App\"7\332A\004name\202\323\344\223\002*\022(/v1/{name=projects/*/locations/*/apps/*}\022\304\001\n" + + "\tCreat" + + "eApp\022%.google.cloud.ces.v1.CreateAppRequest\032\035.google.longrunning.Operation\"q\312A\030\n" + + "\003App\022\021OperationMetadata\332A\021parent,app,app_id\332A\n" + + "parent,app\202\323\344\223\002/\"(/v1/{parent=projects/*/locations/*}/apps:\003app\022\231\001\n" + + "\tUpdateApp\022%.google.cloud.ces.v1.UpdateAppReque" + + "st\032\030.google.cloud.ces.v1.App\"K\332A\017app,upd" + + "ate_mask\202\323\344\223\00232,/v1/{app.name=projects/*/locations/*/apps/*}:\003app\022\267\001\n" + + "\tDeleteApp\022" + + "%.google.cloud.ces.v1.DeleteAppRequest\032\035.google.longrunning.Operation\"d\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004n" + + "ame\202\323\344\223\002**(/v1/{name=projects/*/locations/*/apps/*}\022\300\001\n" + + "\tExportApp\022%.google.cloud" + + ".ces.v1.ExportAppRequest\032\035.google.longrunning.Operation\"m\312A&\n" + + "\021ExportAppResponse\022" + + "\021OperationMetadata\332A\004name\202\323\344\223\0027\"2/v1/{na" + + "me=projects/*/locations/*/apps/*}:exportApp:\001*\022\327\001\n" + + "\tImportApp\022%.google.cloud.ces." + + "v1.ImportAppRequest\032\035.google.longrunning.Operation\"\203\001\312A&\n" + + "\021ImportAppResponse\022\021OperationMetadata\332A\032parent,display_name,app" + + "_id\202\323\344\223\0027\"2/v1/{parent=projects/*/locations/*}/apps:importApp:\001*\022\241\001\n\n" + + "ListAgents\022&.google.cloud.ces.v1.ListAgentsRequest\032" + + "\'.google.cloud.ces.v1.ListAgentsResponse" + + "\"B\332A\006parent\202\323\344\223\0023\0221/v1/{parent=projects/*/locations/*/apps/*}/agents\022\216\001\n" + + "\010GetAgent\022$.google.cloud.ces.v1.GetAgentRequest\032" + + "\032.google.cloud.ces.v1.Agent\"@\332A\004name\202\323\344\223" + + "\0023\0221/v1/{name=projects/*/locations/*/apps/*/agents/*}\022\273\001\n" + + "\013CreateAgent\022\'.google.cloud.ces.v1.CreateAgentRequest\032\032.google." + + "cloud.ces.v1.Agent\"g\332A\025parent,agent,agen" + + "t_id\332A\014parent,agent\202\323\344\223\002:\"1/v1/{parent=p" + + "rojects/*/locations/*/apps/*}/agents:\005agent\022\256\001\n" + + "\013UpdateAgent\022\'.google.cloud.ces.v1.UpdateAgentRequest\032\032.google.cloud.ces." + + "v1.Agent\"Z\332A\021agent,update_mask\202\323\344\223\002@27/v" + + "1/{agent.name=projects/*/locations/*/apps/*/agents/*}:\005agent\022\220\001\n" + + "\013DeleteAgent\022\'.google.cloud.ces.v1.DeleteAgentRequest\032\026." + + "google.protobuf.Empty\"@\332A\004name\202\323\344\223\0023*1/v" + + "1/{name=projects/*/locations/*/apps/*/agents/*}\022\251\001\n" + + "\014ListExamples\022(.google.cloud.ces.v1.ListExamplesRequest\032).google.clou" + + "d.ces.v1.ListExamplesResponse\"D\332A\006parent" + + "\202\323\344\223\0025\0223/v1/{parent=projects/*/locations/*/apps/*}/examples\022\226\001\n\n" + + "GetExample\022&.google.cloud.ces.v1.GetExampleRequest\032\034.goo" + + "gle.cloud.ces.v1.Example\"B\332A\004name\202\323\344\223\0025\022" + + "3/v1/{name=projects/*/locations/*/apps/*/examples/*}\022\313\001\n\r" + + "CreateExample\022).google.cloud.ces.v1.CreateExampleRequest\032\034.goog" + + "le.cloud.ces.v1.Example\"q\332A\031parent,examp" + + "le,example_id\332A\016parent,example\202\323\344\223\002>\"3/v" + + "1/{parent=projects/*/locations/*/apps/*}/examples:\007example\022\274\001\n\r" + + "UpdateExample\022).google.cloud.ces.v1.UpdateExampleRequest\032" + + "\034.google.cloud.ces.v1.Example\"b\332A\023exampl" + + "e,update_mask\202\323\344\223\002F2;/v1/{example.name=p" + + "rojects/*/locations/*/apps/*/examples/*}:\007example\022\226\001\n\r" + + "DeleteExample\022).google.cloud.ces.v1.DeleteExampleRequest\032\026.google." + + "protobuf.Empty\"B\332A\004name\202\323\344\223\0025*3/v1/{name" + + "=projects/*/locations/*/apps/*/examples/*}\022\235\001\n" + + "\tListTools\022%.google.cloud.ces.v1.ListToolsRequest\032&.google.cloud.ces.v1.Li" + + "stToolsResponse\"A\332A\006parent\202\323\344\223\0022\0220/v1/{p" + + "arent=projects/*/locations/*/apps/*}/tools\022\212\001\n" + + "\007GetTool\022#.google.cloud.ces.v1.Get" + + "ToolRequest\032\031.google.cloud.ces.v1.Tool\"?" + + "\332A\004name\202\323\344\223\0022\0220/v1/{name=projects/*/locations/*/apps/*/tools/*}\022\275\001\n" + + "\021ListConversations\022-.google.cloud.ces.v1.ListConversa" + + "tionsRequest\032..google.cloud.ces.v1.ListC" + + "onversationsResponse\"I\332A\006parent\202\323\344\223\002:\0228/" + + "v1/{parent=projects/*/locations/*/apps/*}/conversations\022\252\001\n" + + "\017GetConversation\022+.google.cloud.ces.v1.GetConversationRequest" + + "\032!.google.cloud.ces.v1.Conversation\"G\332A\004" + + "name\202\323\344\223\002:\0228/v1/{name=projects/*/locations/*/apps/*/conversations/*}\022\245\001\n" + + "\022DeleteConversation\022..google.cloud.ces.v1.Delete" + + "ConversationRequest\032\026.google.protobuf.Em" + + "pty\"G\332A\004name\202\323\344\223\002:*8/v1/{name=projects/*/locations/*/apps/*/conversations/*}\022\202\002\n" + + "\030BatchDeleteConversations\0224.google.cloud" + + ".ces.v1.BatchDeleteConversationsRequest\032\035.google.longrunning.Operation\"\220\001\312A5\n" + + " BatchDeleteConversationsResponse\022\021Operatio" + + "nMetadata\332A\006parent\202\323\344\223\002I\"D/v1/{parent=pr" + + "ojects/*/locations/*/apps/*}/conversations:batchDelete:\001*\022\263\001\n\n" + + "CreateTool\022&.google.cloud.ces.v1.CreateToolRequest\032\031.googl" + + "e.cloud.ces.v1.Tool\"b\332A\023parent,tool,tool" + + "_id\332A\013parent,tool\202\323\344\223\0028\"0/v1/{parent=pro" + + "jects/*/locations/*/apps/*}/tools:\004tool\022\247\001\n\n" + + "UpdateTool\022&.google.cloud.ces.v1.UpdateToolRequest\032\031.google.cloud.ces.v1.Too" + + "l\"V\332A\020tool,update_mask\202\323\344\223\002=25/v1/{tool." + + "name=projects/*/locations/*/apps/*/tools/*}:\004tool\022\215\001\n\n" + + "DeleteTool\022&.google.cloud.ces.v1.DeleteToolRequest\032\026.google.protob" + + "uf.Empty\"?\332A\004name\202\323\344\223\0022*0/v1/{name=projects/*/locations/*/apps/*/tools/*}\022\261\001\n" + + "\016ListGuardrails\022*.google.cloud.ces.v1.ListG" + + "uardrailsRequest\032+.google.cloud.ces.v1.L" + + "istGuardrailsResponse\"F\332A\006parent\202\323\344\223\0027\0225" + + "/v1/{parent=projects/*/locations/*/apps/*}/guardrails\022\236\001\n" + + "\014GetGuardrail\022(.google.cloud.ces.v1.GetGuardrailRequest\032\036.googl" + + "e.cloud.ces.v1.Guardrail\"D\332A\004name\202\323\344\223\0027\022" + + "5/v1/{name=projects/*/locations/*/apps/*/guardrails/*}\022\333\001\n" + + "\017CreateGuardrail\022+.google.cloud.ces.v1.CreateGuardrailRequest\032" + + "\036.google.cloud.ces.v1.Guardrail\"{\332A\035pare" + + "nt,guardrail,guardrail_id\332A\020parent,guard" + + "rail\202\323\344\223\002B\"5/v1/{parent=projects/*/locations/*/apps/*}/guardrails:" + + "\tguardrail\022\312\001\n" + + "\017UpdateGuardrail\022+.google.cloud.ces.v1.U" + + "pdateGuardrailRequest\032\036.google.cloud.ces" + + ".v1.Guardrail\"j\332A\025guardrail,update_mask\202" + + "\323\344\223\002L2?/v1/{guardrail.name=projects/*/locations/*/apps/*/guardrails/*}:" + + "\tguardrail\022\234\001\n" + + "\017DeleteGuardrail\022+.google.cloud.ces" + + ".v1.DeleteGuardrailRequest\032\026.google.prot" + + "obuf.Empty\"D\332A\004name\202\323\344\223\0027*5/v1/{name=pro" + + "jects/*/locations/*/apps/*/guardrails/*}\022\265\001\n" + + "\017ListDeployments\022+.google.cloud.ces.v1.ListDeploymentsRequest\032,.google.cloud" + + ".ces.v1.ListDeploymentsResponse\"G\332A\006pare" + + "nt\202\323\344\223\0028\0226/v1/{parent=projects/*/locations/*/apps/*}/deployments\022\242\001\n\r" + + "GetDeployment\022).google.cloud.ces.v1.GetDeploymentRe" + + "quest\032\037.google.cloud.ces.v1.Deployment\"E" + + "\332A\004name\202\323\344\223\0028\0226/v1/{name=projects/*/locations/*/apps/*/deployments/*}\022\344\001\n" + + "\020CreateDeployment\022,.google.cloud.ces.v1.CreateD" + + "eploymentRequest\032\037.google.cloud.ces.v1.D" + + "eployment\"\200\001\332A\037parent,deployment,deploym" + + "ent_id\332A\021parent,deployment\202\323\344\223\002D\"6/v1/{p" + + "arent=projects/*/locations/*/apps/*}/deployments:\n" + + "deployment\022\321\001\n" + + "\020UpdateDeployment\022,.google.cloud.ces.v1.UpdateDeployment" + + "Request\032\037.google.cloud.ces.v1.Deployment" + + "\"n\332A\026deployment,update_mask\202\323\344\223\002O2A/v1/{" + + "deployment.name=projects/*/locations/*/apps/*/deployments/*}:\n" + + "deployment\022\237\001\n" + + "\020DeleteDeployment\022,.google.cloud.ces.v1.Dele" + + "teDeploymentRequest\032\026.google.protobuf.Em" + + "pty\"E\332A\004name\202\323\344\223\0028*6/v1/{name=projects/*/locations/*/apps/*/deployments/*}\022\251\001\n" + + "\014ListToolsets\022(.google.cloud.ces.v1.ListTo" + + "olsetsRequest\032).google.cloud.ces.v1.List" + + "ToolsetsResponse\"D\332A\006parent\202\323\344\223\0025\0223/v1/{" + + "parent=projects/*/locations/*/apps/*}/toolsets\022\226\001\n\n" + + "GetToolset\022&.google.cloud.ces.v1.GetToolsetRequest\032\034.google.cloud.ces" + + ".v1.Toolset\"B\332A\004name\202\323\344\223\0025\0223/v1/{name=pr" + + "ojects/*/locations/*/apps/*/toolsets/*}\022\313\001\n\r" + + "CreateToolset\022).google.cloud.ces.v1.CreateToolsetRequest\032\034.google.cloud.ces." + + "v1.Toolset\"q\332A\031parent,toolset,toolset_id" + + "\332A\016parent,toolset\202\323\344\223\002>\"3/v1/{parent=pro" + + "jects/*/locations/*/apps/*}/toolsets:\007toolset\022\274\001\n\r" + + "UpdateToolset\022).google.cloud.ces.v1.UpdateToolsetRequest\032\034.google.clou" + + "d.ces.v1.Toolset\"b\332A\023toolset,update_mask" + + "\202\323\344\223\002F2;/v1/{toolset.name=projects/*/locations/*/apps/*/toolsets/*}:\007toolset\022\226\001\n", + "\rDeleteToolset\022).google.cloud.ces.v1.Del" + + "eteToolsetRequest\032\026.google.protobuf.Empt" + + "y\"B\332A\004name\202\323\344\223\0025*3/v1/{name=projects/*/l" + + "ocations/*/apps/*/toolsets/*}\022\262\001\n\017ListAp" + + "pVersions\022+.google.cloud.ces.v1.ListAppV" + + "ersionsRequest\032,.google.cloud.ces.v1.Lis" + + "tAppVersionsResponse\"D\332A\006parent\202\323\344\223\0025\0223/" + + "v1/{parent=projects/*/locations/*/apps/*" + + "}/versions\022\237\001\n\rGetAppVersion\022).google.cl" + + "oud.ces.v1.GetAppVersionRequest\032\037.google" + + ".cloud.ces.v1.AppVersion\"B\332A\004name\202\323\344\223\0025\022" + + "3/v1/{name=projects/*/locations/*/apps/*" + + "/versions/*}\022\345\001\n\020CreateAppVersion\022,.goog" + + "le.cloud.ces.v1.CreateAppVersionRequest\032" + + "\037.google.cloud.ces.v1.AppVersion\"\201\001\332A!pa" + + "rent,app_version,app_version_id\332A\022parent" + + ",app_version\202\323\344\223\002B\"3/v1/{parent=projects" + + "/*/locations/*/apps/*}/versions:\013app_ver" + + "sion\022\234\001\n\020DeleteAppVersion\022,.google.cloud" + + ".ces.v1.DeleteAppVersionRequest\032\026.google" + + ".protobuf.Empty\"B\332A\004name\202\323\344\223\0025*3/v1/{nam" + + "e=projects/*/locations/*/apps/*/versions" + + "/*}\022\341\001\n\021RestoreAppVersion\022-.google.cloud" + + ".ces.v1.RestoreAppVersionRequest\032\035.googl" + + "e.longrunning.Operation\"~\312A.\n\031RestoreApp" + + "VersionResponse\022\021OperationMetadata\332A\004nam" + + "e\202\323\344\223\002@\";/v1/{name=projects/*/locations/" + + "*/apps/*/versions/*}:restore:\001*\022\261\001\n\016List" + + "Changelogs\022*.google.cloud.ces.v1.ListCha" + + "ngelogsRequest\032+.google.cloud.ces.v1.Lis" + + "tChangelogsResponse\"F\332A\006parent\202\323\344\223\0027\0225/v" + + "1/{parent=projects/*/locations/*/apps/*}" + + "/changelogs\022\236\001\n\014GetChangelog\022(.google.cl" + + "oud.ces.v1.GetChangelogRequest\032\036.google." + + "cloud.ces.v1.Changelog\"D\332A\004name\202\323\344\223\0027\0225/" + + "v1/{name=projects/*/locations/*/apps/*/c" + + "hangelogs/*}\032j\312A\022ces.googleapis.com\322ARht" + + "tps://www.googleapis.com/auth/ces,https:" + + "//www.googleapis.com/auth/cloud-platform" + + "B\306\001\n\027com.google.cloud.ces.v1B\021AgentServi" + + "ceProtoP\001Z)cloud.google.com/go/ces/apiv1" + + "/cespb;cespb\352Aj\n,contactcenterinsights.g" + + "oogleapis.com/Dataset\022:projects/{project" + + "}/locations/{location}/datasets/{dataset" + + "}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.ces.v1.AgentProto.getDescriptor(), + com.google.cloud.ces.v1.AppProto.getDescriptor(), + com.google.cloud.ces.v1.AppVersionProto.getDescriptor(), + com.google.cloud.ces.v1.ChangelogProto.getDescriptor(), + com.google.cloud.ces.v1.ConversationProto.getDescriptor(), + com.google.cloud.ces.v1.ChannelProfileProto.getDescriptor(), + com.google.cloud.ces.v1.ExampleProto.getDescriptor(), + com.google.cloud.ces.v1.GuardrailProto.getDescriptor(), + com.google.cloud.ces.v1.ToolProto.getDescriptor(), + com.google.cloud.ces.v1.ToolsetProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_ListAppsRequest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_ListAppsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ListAppsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_ces_v1_ListAppsResponse_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_ces_v1_ListAppsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ListAppsResponse_descriptor, + new java.lang.String[] { + "Apps", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_ces_v1_GetAppRequest_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_ces_v1_GetAppRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_GetAppRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_ces_v1_CreateAppRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_ces_v1_CreateAppRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_CreateAppRequest_descriptor, + new java.lang.String[] { + "Parent", "AppId", "App", + }); + internal_static_google_cloud_ces_v1_UpdateAppRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_ces_v1_UpdateAppRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_UpdateAppRequest_descriptor, + new java.lang.String[] { + "App", "UpdateMask", + }); + internal_static_google_cloud_ces_v1_DeleteAppRequest_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_ces_v1_DeleteAppRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_DeleteAppRequest_descriptor, + new java.lang.String[] { + "Name", "Etag", + }); + internal_static_google_cloud_ces_v1_ExportAppRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_ces_v1_ExportAppRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ExportAppRequest_descriptor, + new java.lang.String[] { + "Name", "ExportFormat", "GcsUri", + }); + internal_static_google_cloud_ces_v1_ExportAppResponse_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_ces_v1_ExportAppResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ExportAppResponse_descriptor, + new java.lang.String[] { + "AppContent", "AppUri", "App", + }); + internal_static_google_cloud_ces_v1_ImportAppRequest_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_ces_v1_ImportAppRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ImportAppRequest_descriptor, + new java.lang.String[] { + "GcsUri", + "AppContent", + "Parent", + "DisplayName", + "AppId", + "ImportOptions", + "IgnoreAppLock", + "App", + }); + internal_static_google_cloud_ces_v1_ImportAppRequest_ImportOptions_descriptor = + internal_static_google_cloud_ces_v1_ImportAppRequest_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_ImportAppRequest_ImportOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ImportAppRequest_ImportOptions_descriptor, + new java.lang.String[] { + "ConflictResolutionStrategy", + }); + internal_static_google_cloud_ces_v1_ImportAppResponse_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_ces_v1_ImportAppResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ImportAppResponse_descriptor, + new java.lang.String[] { + "Name", "Warnings", + }); + internal_static_google_cloud_ces_v1_ListAgentsRequest_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_cloud_ces_v1_ListAgentsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ListAgentsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_ces_v1_ListAgentsResponse_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_ces_v1_ListAgentsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ListAgentsResponse_descriptor, + new java.lang.String[] { + "Agents", "NextPageToken", + }); + internal_static_google_cloud_ces_v1_GetAgentRequest_descriptor = + getDescriptor().getMessageType(12); + internal_static_google_cloud_ces_v1_GetAgentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_GetAgentRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_ces_v1_CreateAgentRequest_descriptor = + getDescriptor().getMessageType(13); + internal_static_google_cloud_ces_v1_CreateAgentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_CreateAgentRequest_descriptor, + new java.lang.String[] { + "Parent", "AgentId", "Agent", + }); + internal_static_google_cloud_ces_v1_UpdateAgentRequest_descriptor = + getDescriptor().getMessageType(14); + internal_static_google_cloud_ces_v1_UpdateAgentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_UpdateAgentRequest_descriptor, + new java.lang.String[] { + "Agent", "UpdateMask", + }); + internal_static_google_cloud_ces_v1_DeleteAgentRequest_descriptor = + getDescriptor().getMessageType(15); + internal_static_google_cloud_ces_v1_DeleteAgentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_DeleteAgentRequest_descriptor, + new java.lang.String[] { + "Name", "Force", "Etag", + }); + internal_static_google_cloud_ces_v1_OperationMetadata_descriptor = + getDescriptor().getMessageType(16); + internal_static_google_cloud_ces_v1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", "EndTime", "StatusMessage", "RequestedCancellation", + }); + internal_static_google_cloud_ces_v1_ListExamplesRequest_descriptor = + getDescriptor().getMessageType(17); + internal_static_google_cloud_ces_v1_ListExamplesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ListExamplesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_ces_v1_ListExamplesResponse_descriptor = + getDescriptor().getMessageType(18); + internal_static_google_cloud_ces_v1_ListExamplesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ListExamplesResponse_descriptor, + new java.lang.String[] { + "Examples", "NextPageToken", + }); + internal_static_google_cloud_ces_v1_GetExampleRequest_descriptor = + getDescriptor().getMessageType(19); + internal_static_google_cloud_ces_v1_GetExampleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_GetExampleRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_ces_v1_CreateExampleRequest_descriptor = + getDescriptor().getMessageType(20); + internal_static_google_cloud_ces_v1_CreateExampleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_CreateExampleRequest_descriptor, + new java.lang.String[] { + "Parent", "ExampleId", "Example", + }); + internal_static_google_cloud_ces_v1_UpdateExampleRequest_descriptor = + getDescriptor().getMessageType(21); + internal_static_google_cloud_ces_v1_UpdateExampleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_UpdateExampleRequest_descriptor, + new java.lang.String[] { + "Example", "UpdateMask", + }); + internal_static_google_cloud_ces_v1_DeleteExampleRequest_descriptor = + getDescriptor().getMessageType(22); + internal_static_google_cloud_ces_v1_DeleteExampleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_DeleteExampleRequest_descriptor, + new java.lang.String[] { + "Name", "Etag", + }); + internal_static_google_cloud_ces_v1_ListToolsRequest_descriptor = + getDescriptor().getMessageType(23); + internal_static_google_cloud_ces_v1_ListToolsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ListToolsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_ces_v1_ListToolsResponse_descriptor = + getDescriptor().getMessageType(24); + internal_static_google_cloud_ces_v1_ListToolsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ListToolsResponse_descriptor, + new java.lang.String[] { + "Tools", "NextPageToken", + }); + internal_static_google_cloud_ces_v1_GetToolRequest_descriptor = + getDescriptor().getMessageType(25); + internal_static_google_cloud_ces_v1_GetToolRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_GetToolRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_ces_v1_CreateToolRequest_descriptor = + getDescriptor().getMessageType(26); + internal_static_google_cloud_ces_v1_CreateToolRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_CreateToolRequest_descriptor, + new java.lang.String[] { + "Parent", "ToolId", "Tool", + }); + internal_static_google_cloud_ces_v1_UpdateToolRequest_descriptor = + getDescriptor().getMessageType(27); + internal_static_google_cloud_ces_v1_UpdateToolRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_UpdateToolRequest_descriptor, + new java.lang.String[] { + "Tool", "UpdateMask", + }); + internal_static_google_cloud_ces_v1_DeleteToolRequest_descriptor = + getDescriptor().getMessageType(28); + internal_static_google_cloud_ces_v1_DeleteToolRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_DeleteToolRequest_descriptor, + new java.lang.String[] { + "Name", "Force", "Etag", + }); + internal_static_google_cloud_ces_v1_ListConversationsRequest_descriptor = + getDescriptor().getMessageType(29); + internal_static_google_cloud_ces_v1_ListConversationsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ListConversationsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "Source", "Sources", + }); + internal_static_google_cloud_ces_v1_ListConversationsResponse_descriptor = + getDescriptor().getMessageType(30); + internal_static_google_cloud_ces_v1_ListConversationsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ListConversationsResponse_descriptor, + new java.lang.String[] { + "Conversations", "NextPageToken", + }); + internal_static_google_cloud_ces_v1_GetConversationRequest_descriptor = + getDescriptor().getMessageType(31); + internal_static_google_cloud_ces_v1_GetConversationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_GetConversationRequest_descriptor, + new java.lang.String[] { + "Name", "Source", + }); + internal_static_google_cloud_ces_v1_DeleteConversationRequest_descriptor = + getDescriptor().getMessageType(32); + internal_static_google_cloud_ces_v1_DeleteConversationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_DeleteConversationRequest_descriptor, + new java.lang.String[] { + "Name", "Source", + }); + internal_static_google_cloud_ces_v1_BatchDeleteConversationsRequest_descriptor = + getDescriptor().getMessageType(33); + internal_static_google_cloud_ces_v1_BatchDeleteConversationsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_BatchDeleteConversationsRequest_descriptor, + new java.lang.String[] { + "Parent", "Conversations", + }); + internal_static_google_cloud_ces_v1_BatchDeleteConversationsResponse_descriptor = + getDescriptor().getMessageType(34); + internal_static_google_cloud_ces_v1_BatchDeleteConversationsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_BatchDeleteConversationsResponse_descriptor, + new java.lang.String[] { + "DeletedConversations", "FailedConversations", "ErrorMessages", + }); + internal_static_google_cloud_ces_v1_ListGuardrailsRequest_descriptor = + getDescriptor().getMessageType(35); + internal_static_google_cloud_ces_v1_ListGuardrailsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ListGuardrailsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_ces_v1_ListGuardrailsResponse_descriptor = + getDescriptor().getMessageType(36); + internal_static_google_cloud_ces_v1_ListGuardrailsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ListGuardrailsResponse_descriptor, + new java.lang.String[] { + "Guardrails", "NextPageToken", + }); + internal_static_google_cloud_ces_v1_GetGuardrailRequest_descriptor = + getDescriptor().getMessageType(37); + internal_static_google_cloud_ces_v1_GetGuardrailRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_GetGuardrailRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_ces_v1_CreateGuardrailRequest_descriptor = + getDescriptor().getMessageType(38); + internal_static_google_cloud_ces_v1_CreateGuardrailRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_CreateGuardrailRequest_descriptor, + new java.lang.String[] { + "Parent", "GuardrailId", "Guardrail", + }); + internal_static_google_cloud_ces_v1_UpdateGuardrailRequest_descriptor = + getDescriptor().getMessageType(39); + internal_static_google_cloud_ces_v1_UpdateGuardrailRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_UpdateGuardrailRequest_descriptor, + new java.lang.String[] { + "Guardrail", "UpdateMask", + }); + internal_static_google_cloud_ces_v1_DeleteGuardrailRequest_descriptor = + getDescriptor().getMessageType(40); + internal_static_google_cloud_ces_v1_DeleteGuardrailRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_DeleteGuardrailRequest_descriptor, + new java.lang.String[] { + "Name", "Force", "Etag", + }); + internal_static_google_cloud_ces_v1_ListDeploymentsRequest_descriptor = + getDescriptor().getMessageType(41); + internal_static_google_cloud_ces_v1_ListDeploymentsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ListDeploymentsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "OrderBy", + }); + internal_static_google_cloud_ces_v1_ListDeploymentsResponse_descriptor = + getDescriptor().getMessageType(42); + internal_static_google_cloud_ces_v1_ListDeploymentsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ListDeploymentsResponse_descriptor, + new java.lang.String[] { + "Deployments", "NextPageToken", + }); + internal_static_google_cloud_ces_v1_GetDeploymentRequest_descriptor = + getDescriptor().getMessageType(43); + internal_static_google_cloud_ces_v1_GetDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_GetDeploymentRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_ces_v1_CreateDeploymentRequest_descriptor = + getDescriptor().getMessageType(44); + internal_static_google_cloud_ces_v1_CreateDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_CreateDeploymentRequest_descriptor, + new java.lang.String[] { + "Parent", "DeploymentId", "Deployment", + }); + internal_static_google_cloud_ces_v1_UpdateDeploymentRequest_descriptor = + getDescriptor().getMessageType(45); + internal_static_google_cloud_ces_v1_UpdateDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_UpdateDeploymentRequest_descriptor, + new java.lang.String[] { + "Deployment", "UpdateMask", + }); + internal_static_google_cloud_ces_v1_DeleteDeploymentRequest_descriptor = + getDescriptor().getMessageType(46); + internal_static_google_cloud_ces_v1_DeleteDeploymentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_DeleteDeploymentRequest_descriptor, + new java.lang.String[] { + "Name", "Etag", + }); + internal_static_google_cloud_ces_v1_ListToolsetsRequest_descriptor = + getDescriptor().getMessageType(47); + internal_static_google_cloud_ces_v1_ListToolsetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ListToolsetsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_ces_v1_ListToolsetsResponse_descriptor = + getDescriptor().getMessageType(48); + internal_static_google_cloud_ces_v1_ListToolsetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ListToolsetsResponse_descriptor, + new java.lang.String[] { + "Toolsets", "NextPageToken", + }); + internal_static_google_cloud_ces_v1_GetToolsetRequest_descriptor = + getDescriptor().getMessageType(49); + internal_static_google_cloud_ces_v1_GetToolsetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_GetToolsetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_ces_v1_CreateToolsetRequest_descriptor = + getDescriptor().getMessageType(50); + internal_static_google_cloud_ces_v1_CreateToolsetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_CreateToolsetRequest_descriptor, + new java.lang.String[] { + "Parent", "ToolsetId", "Toolset", + }); + internal_static_google_cloud_ces_v1_UpdateToolsetRequest_descriptor = + getDescriptor().getMessageType(51); + internal_static_google_cloud_ces_v1_UpdateToolsetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_UpdateToolsetRequest_descriptor, + new java.lang.String[] { + "Toolset", "UpdateMask", + }); + internal_static_google_cloud_ces_v1_DeleteToolsetRequest_descriptor = + getDescriptor().getMessageType(52); + internal_static_google_cloud_ces_v1_DeleteToolsetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_DeleteToolsetRequest_descriptor, + new java.lang.String[] { + "Name", "Force", "Etag", + }); + internal_static_google_cloud_ces_v1_ListAppVersionsRequest_descriptor = + getDescriptor().getMessageType(53); + internal_static_google_cloud_ces_v1_ListAppVersionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ListAppVersionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_ces_v1_ListAppVersionsResponse_descriptor = + getDescriptor().getMessageType(54); + internal_static_google_cloud_ces_v1_ListAppVersionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ListAppVersionsResponse_descriptor, + new java.lang.String[] { + "AppVersions", "NextPageToken", + }); + internal_static_google_cloud_ces_v1_GetAppVersionRequest_descriptor = + getDescriptor().getMessageType(55); + internal_static_google_cloud_ces_v1_GetAppVersionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_GetAppVersionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_ces_v1_DeleteAppVersionRequest_descriptor = + getDescriptor().getMessageType(56); + internal_static_google_cloud_ces_v1_DeleteAppVersionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_DeleteAppVersionRequest_descriptor, + new java.lang.String[] { + "Name", "Etag", + }); + internal_static_google_cloud_ces_v1_CreateAppVersionRequest_descriptor = + getDescriptor().getMessageType(57); + internal_static_google_cloud_ces_v1_CreateAppVersionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_CreateAppVersionRequest_descriptor, + new java.lang.String[] { + "Parent", "AppVersionId", "AppVersion", + }); + internal_static_google_cloud_ces_v1_RestoreAppVersionRequest_descriptor = + getDescriptor().getMessageType(58); + internal_static_google_cloud_ces_v1_RestoreAppVersionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_RestoreAppVersionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_ces_v1_RestoreAppVersionResponse_descriptor = + getDescriptor().getMessageType(59); + internal_static_google_cloud_ces_v1_RestoreAppVersionResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_RestoreAppVersionResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_ces_v1_ListChangelogsRequest_descriptor = + getDescriptor().getMessageType(60); + internal_static_google_cloud_ces_v1_ListChangelogsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ListChangelogsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_ces_v1_ListChangelogsResponse_descriptor = + getDescriptor().getMessageType(61); + internal_static_google_cloud_ces_v1_ListChangelogsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ListChangelogsResponse_descriptor, + new java.lang.String[] { + "Changelogs", "NextPageToken", + }); + internal_static_google_cloud_ces_v1_GetChangelogRequest_descriptor = + getDescriptor().getMessageType(62); + internal_static_google_cloud_ces_v1_GetChangelogRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_GetChangelogRequest_descriptor, + new java.lang.String[] { + "Name", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.ces.v1.AgentProto.getDescriptor(); + com.google.cloud.ces.v1.AppProto.getDescriptor(); + com.google.cloud.ces.v1.AppVersionProto.getDescriptor(); + com.google.cloud.ces.v1.ChangelogProto.getDescriptor(); + com.google.cloud.ces.v1.ConversationProto.getDescriptor(); + com.google.cloud.ces.v1.ChannelProfileProto.getDescriptor(); + com.google.cloud.ces.v1.ExampleProto.getDescriptor(); + com.google.cloud.ces.v1.GuardrailProto.getDescriptor(); + com.google.cloud.ces.v1.ToolProto.getDescriptor(); + com.google.cloud.ces.v1.ToolsetProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentTransfer.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentTransfer.java new file mode 100644 index 000000000000..415131ca8ad6 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentTransfer.java @@ -0,0 +1,812 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/example.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Represents an event indicating the transfer of a conversation to a different
      + * agent.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.AgentTransfer} + */ +@com.google.protobuf.Generated +public final class AgentTransfer extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.AgentTransfer) + AgentTransferOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentTransfer"); + } + + // Use AgentTransfer.newBuilder() to construct. + private AgentTransfer(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AgentTransfer() { + targetAgent_ = ""; + displayName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_AgentTransfer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_AgentTransfer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.AgentTransfer.class, + com.google.cloud.ces.v1.AgentTransfer.Builder.class); + } + + public static final int TARGET_AGENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object targetAgent_ = ""; + + /** + * + * + *
      +   * Required. The agent to which the conversation is being transferred. The
      +   * agent will handle the conversation from this point forward. Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +   * 
      + * + * + * string target_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The targetAgent. + */ + @java.lang.Override + public java.lang.String getTargetAgent() { + java.lang.Object ref = targetAgent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetAgent_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The agent to which the conversation is being transferred. The
      +   * agent will handle the conversation from this point forward. Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +   * 
      + * + * + * string target_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for targetAgent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetAgentBytes() { + java.lang.Object ref = targetAgent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetAgent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
      +   * Output only. Display name of the agent.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
      +   * Output only. Display name of the agent.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(targetAgent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, targetAgent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(targetAgent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, targetAgent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.AgentTransfer)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.AgentTransfer other = (com.google.cloud.ces.v1.AgentTransfer) obj; + + if (!getTargetAgent().equals(other.getTargetAgent())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TARGET_AGENT_FIELD_NUMBER; + hash = (53 * hash) + getTargetAgent().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.AgentTransfer parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.AgentTransfer parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AgentTransfer parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.AgentTransfer parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AgentTransfer parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.AgentTransfer parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AgentTransfer parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.AgentTransfer parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AgentTransfer parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.AgentTransfer parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AgentTransfer parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.AgentTransfer parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.AgentTransfer prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Represents an event indicating the transfer of a conversation to a different
      +   * agent.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.AgentTransfer} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.AgentTransfer) + com.google.cloud.ces.v1.AgentTransferOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_AgentTransfer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_AgentTransfer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.AgentTransfer.class, + com.google.cloud.ces.v1.AgentTransfer.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.AgentTransfer.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + targetAgent_ = ""; + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_AgentTransfer_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.AgentTransfer getDefaultInstanceForType() { + return com.google.cloud.ces.v1.AgentTransfer.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.AgentTransfer build() { + com.google.cloud.ces.v1.AgentTransfer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.AgentTransfer buildPartial() { + com.google.cloud.ces.v1.AgentTransfer result = + new com.google.cloud.ces.v1.AgentTransfer(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.AgentTransfer result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.targetAgent_ = targetAgent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.AgentTransfer) { + return mergeFrom((com.google.cloud.ces.v1.AgentTransfer) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.AgentTransfer other) { + if (other == com.google.cloud.ces.v1.AgentTransfer.getDefaultInstance()) return this; + if (!other.getTargetAgent().isEmpty()) { + targetAgent_ = other.targetAgent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + targetAgent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object targetAgent_ = ""; + + /** + * + * + *
      +     * Required. The agent to which the conversation is being transferred. The
      +     * agent will handle the conversation from this point forward. Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * string target_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The targetAgent. + */ + public java.lang.String getTargetAgent() { + java.lang.Object ref = targetAgent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetAgent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The agent to which the conversation is being transferred. The
      +     * agent will handle the conversation from this point forward. Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * string target_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for targetAgent. + */ + public com.google.protobuf.ByteString getTargetAgentBytes() { + java.lang.Object ref = targetAgent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetAgent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The agent to which the conversation is being transferred. The
      +     * agent will handle the conversation from this point forward. Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * string target_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The targetAgent to set. + * @return This builder for chaining. + */ + public Builder setTargetAgent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetAgent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The agent to which the conversation is being transferred. The
      +     * agent will handle the conversation from this point forward. Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * string target_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTargetAgent() { + targetAgent_ = getDefaultInstance().getTargetAgent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The agent to which the conversation is being transferred. The
      +     * agent will handle the conversation from this point forward. Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * string target_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for targetAgent to set. + * @return This builder for chaining. + */ + public Builder setTargetAgentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetAgent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
      +     * Output only. Display name of the agent.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Output only. Display name of the agent.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Output only. Display name of the agent.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Display name of the agent.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Display name of the agent.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.AgentTransfer) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.AgentTransfer) + private static final com.google.cloud.ces.v1.AgentTransfer DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.AgentTransfer(); + } + + public static com.google.cloud.ces.v1.AgentTransfer getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentTransfer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.AgentTransfer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentTransferOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentTransferOrBuilder.java new file mode 100644 index 000000000000..79d83be90c68 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentTransferOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/example.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface AgentTransferOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.AgentTransfer) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The agent to which the conversation is being transferred. The
      +   * agent will handle the conversation from this point forward. Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +   * 
      + * + * + * string target_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The targetAgent. + */ + java.lang.String getTargetAgent(); + + /** + * + * + *
      +   * Required. The agent to which the conversation is being transferred. The
      +   * agent will handle the conversation from this point forward. Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +   * 
      + * + * + * string target_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for targetAgent. + */ + com.google.protobuf.ByteString getTargetAgentBytes(); + + /** + * + * + *
      +   * Output only. Display name of the agent.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
      +   * Output only. Display name of the agent.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentTransfersProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentTransfersProto.java new file mode 100644 index 000000000000..9ce6a97cae9f --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentTransfersProto.java @@ -0,0 +1,162 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_transfers.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class AgentTransfersProto extends com.google.protobuf.GeneratedFile { + private AgentTransfersProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentTransfersProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ExpressionCondition_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ExpressionCondition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_PythonCodeCondition_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_PythonCodeCondition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_TransferRule_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_TransferRule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_TransferRule_DeterministicTransfer_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_TransferRule_DeterministicTransfer_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_TransferRule_DisablePlannerTransfer_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_TransferRule_DisablePlannerTransfer_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/ces/v1/agent_transfers.pr" + + "oto\022\023google.cloud.ces.v1\032\037google/api/fie" + + "ld_behavior.proto\032\031google/api/resource.p" + + "roto\".\n\023ExpressionCondition\022\027\n\nexpressio" + + "n\030\001 \001(\tB\003\340A\002\"/\n\023PythonCodeCondition\022\030\n\013p" + + "ython_code\030\001 \001(\tB\003\340A\002\"\336\005\n\014TransferRule\022^" + + "\n\026deterministic_transfer\030\003 \001(\01327.google." + + "cloud.ces.v1.TransferRule.DeterministicT" + + "ransferB\003\340A\001H\000\022a\n\030disable_planner_transf" + + "er\030\004 \001(\01328.google.cloud.ces.v1.TransferR" + + "ule.DisablePlannerTransferB\003\340A\001H\000\0225\n\013chi" + + "ld_agent\030\001 \001(\tB \340A\002\372A\032\n\030ces.googleapis.c" + + "om/Agent\022C\n\tdirection\030\002 \001(\0162+.google.clo" + + "ud.ces.v1.TransferRule.DirectionB\003\340A\002\032\310\001" + + "\n\025DeterministicTransfer\022M\n\024expression_co" + + "ndition\030\001 \001(\0132(.google.cloud.ces.v1.Expr" + + "essionConditionB\003\340A\001H\000\022N\n\025python_code_co" + + "ndition\030\002 \001(\0132(.google.cloud.ces.v1.Pyth" + + "onCodeConditionB\003\340A\001H\000B\020\n\016condition_type" + + "\032e\n\026DisablePlannerTransfer\022K\n\024expression" + + "_condition\030\001 \001(\0132(.google.cloud.ces.v1.E" + + "xpressionConditionB\003\340A\002\"P\n\tDirection\022\031\n\025" + + "DIRECTION_UNSPECIFIED\020\000\022\023\n\017PARENT_TO_CHI" + + "LD\020\001\022\023\n\017CHILD_TO_PARENT\020\002B\013\n\trule_typeB[" + + "\n\027com.google.cloud.ces.v1B\023AgentTransfer" + + "sProtoP\001Z)cloud.google.com/go/ces/apiv1/" + + "cespb;cespbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_ExpressionCondition_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_ExpressionCondition_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ExpressionCondition_descriptor, + new java.lang.String[] { + "Expression", + }); + internal_static_google_cloud_ces_v1_PythonCodeCondition_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_ces_v1_PythonCodeCondition_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_PythonCodeCondition_descriptor, + new java.lang.String[] { + "PythonCode", + }); + internal_static_google_cloud_ces_v1_TransferRule_descriptor = getDescriptor().getMessageType(2); + internal_static_google_cloud_ces_v1_TransferRule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_TransferRule_descriptor, + new java.lang.String[] { + "DeterministicTransfer", + "DisablePlannerTransfer", + "ChildAgent", + "Direction", + "RuleType", + }); + internal_static_google_cloud_ces_v1_TransferRule_DeterministicTransfer_descriptor = + internal_static_google_cloud_ces_v1_TransferRule_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_TransferRule_DeterministicTransfer_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_TransferRule_DeterministicTransfer_descriptor, + new java.lang.String[] { + "ExpressionCondition", "PythonCodeCondition", "ConditionType", + }); + internal_static_google_cloud_ces_v1_TransferRule_DisablePlannerTransfer_descriptor = + internal_static_google_cloud_ces_v1_TransferRule_descriptor.getNestedType(1); + internal_static_google_cloud_ces_v1_TransferRule_DisablePlannerTransfer_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_TransferRule_DisablePlannerTransfer_descriptor, + new java.lang.String[] { + "ExpressionCondition", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AmbientSoundConfig.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AmbientSoundConfig.java new file mode 100644 index 000000000000..c8d53001eced --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AmbientSoundConfig.java @@ -0,0 +1,1733 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Configuration for the ambient sound to be played with the synthesized agent
      + * response, to enhance the naturalness of the conversation.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.AmbientSoundConfig} + */ +@com.google.protobuf.Generated +public final class AmbientSoundConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.AmbientSoundConfig) + AmbientSoundConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AmbientSoundConfig"); + } + + // Use AmbientSoundConfig.newBuilder() to construct. + private AmbientSoundConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AmbientSoundConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_AmbientSoundConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_AmbientSoundConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.AmbientSoundConfig.class, + com.google.cloud.ces.v1.AmbientSoundConfig.Builder.class); + } + + /** + * + * + *
      +   * Prebuilt ambient noise.
      +   * 
      + * + * Protobuf enum {@code google.cloud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoise} + */ + public enum PrebuiltAmbientNoise implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Not specified.
      +     * 
      + * + * PREBUILT_AMBIENT_NOISE_UNSPECIFIED = 0; + */ + PREBUILT_AMBIENT_NOISE_UNSPECIFIED(0), + /** + * + * + *
      +     * Ambient noise of a retail store.
      +     * 
      + * + * RETAIL_STORE = 1; + */ + RETAIL_STORE(1), + /** + * + * + *
      +     * Ambient noise of a convention hall.
      +     * 
      + * + * CONVENTION_HALL = 2; + */ + CONVENTION_HALL(2), + /** + * + * + *
      +     * Ambient noise of a street.
      +     * 
      + * + * OUTDOOR = 3; + */ + OUTDOOR(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PrebuiltAmbientNoise"); + } + + /** + * + * + *
      +     * Not specified.
      +     * 
      + * + * PREBUILT_AMBIENT_NOISE_UNSPECIFIED = 0; + */ + public static final int PREBUILT_AMBIENT_NOISE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * Ambient noise of a retail store.
      +     * 
      + * + * RETAIL_STORE = 1; + */ + public static final int RETAIL_STORE_VALUE = 1; + + /** + * + * + *
      +     * Ambient noise of a convention hall.
      +     * 
      + * + * CONVENTION_HALL = 2; + */ + public static final int CONVENTION_HALL_VALUE = 2; + + /** + * + * + *
      +     * Ambient noise of a street.
      +     * 
      + * + * OUTDOOR = 3; + */ + public static final int OUTDOOR_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PrebuiltAmbientNoise valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static PrebuiltAmbientNoise forNumber(int value) { + switch (value) { + case 0: + return PREBUILT_AMBIENT_NOISE_UNSPECIFIED; + case 1: + return RETAIL_STORE; + case 2: + return CONVENTION_HALL; + case 3: + return OUTDOOR; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PrebuiltAmbientNoise findValueByNumber(int number) { + return PrebuiltAmbientNoise.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.AmbientSoundConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final PrebuiltAmbientNoise[] VALUES = values(); + + public static PrebuiltAmbientNoise valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private PrebuiltAmbientNoise(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoise) + } + + private int sourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object source_; + + public enum SourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + @java.lang.Deprecated + PREBUILT_AMBIENT_NOISE(1), + GCS_URI(2), + PREBUILT_AMBIENT_SOUND(4), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 1: + return PREBUILT_AMBIENT_NOISE; + case 2: + return GCS_URI; + case 4: + return PREBUILT_AMBIENT_SOUND; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public static final int PREBUILT_AMBIENT_NOISE_FIELD_NUMBER = 1; + + /** + * + * + *
      +   * Optional. Deprecated: `prebuilt_ambient_noise` is deprecated in favor of
      +   * `prebuilt_ambient_sound`.
      +   * 
      + * + * + * .google.cloud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoise prebuilt_ambient_noise = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See + * google/cloud/ces/v1/app.proto;l=285 + * @return Whether the prebuiltAmbientNoise field is set. + */ + @java.lang.Deprecated + public boolean hasPrebuiltAmbientNoise() { + return sourceCase_ == 1; + } + + /** + * + * + *
      +   * Optional. Deprecated: `prebuilt_ambient_noise` is deprecated in favor of
      +   * `prebuilt_ambient_sound`.
      +   * 
      + * + * + * .google.cloud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoise prebuilt_ambient_noise = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See + * google/cloud/ces/v1/app.proto;l=285 + * @return The enum numeric value on the wire for prebuiltAmbientNoise. + */ + @java.lang.Deprecated + public int getPrebuiltAmbientNoiseValue() { + if (sourceCase_ == 1) { + return (java.lang.Integer) source_; + } + return 0; + } + + /** + * + * + *
      +   * Optional. Deprecated: `prebuilt_ambient_noise` is deprecated in favor of
      +   * `prebuilt_ambient_sound`.
      +   * 
      + * + * + * .google.cloud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoise prebuilt_ambient_noise = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See + * google/cloud/ces/v1/app.proto;l=285 + * @return The prebuiltAmbientNoise. + */ + @java.lang.Deprecated + public com.google.cloud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoise getPrebuiltAmbientNoise() { + if (sourceCase_ == 1) { + com.google.cloud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoise result = + com.google.cloud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoise.forNumber( + (java.lang.Integer) source_); + return result == null + ? com.google.cloud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoise.UNRECOGNIZED + : result; + } + return com.google.cloud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoise + .PREBUILT_AMBIENT_NOISE_UNSPECIFIED; + } + + public static final int GCS_URI_FIELD_NUMBER = 2; + + /** + * + * + *
      +   * Optional. Ambient noise as a mono-channel, 16kHz WAV file stored in
      +   * [Cloud Storage](https://cloud.google.com/storage).
      +   *
      +   * Note: Please make sure the CES service agent
      +   * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com` has
      +   * `storage.objects.get` permission to the Cloud Storage object.
      +   * 
      + * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the gcsUri field is set. + */ + public boolean hasGcsUri() { + return sourceCase_ == 2; + } + + /** + * + * + *
      +   * Optional. Ambient noise as a mono-channel, 16kHz WAV file stored in
      +   * [Cloud Storage](https://cloud.google.com/storage).
      +   *
      +   * Note: Please make sure the CES service agent
      +   * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com` has
      +   * `storage.objects.get` permission to the Cloud Storage object.
      +   * 
      + * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcsUri. + */ + public java.lang.String getGcsUri() { + java.lang.Object ref = ""; + if (sourceCase_ == 2) { + ref = source_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 2) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
      +   * Optional. Ambient noise as a mono-channel, 16kHz WAV file stored in
      +   * [Cloud Storage](https://cloud.google.com/storage).
      +   *
      +   * Note: Please make sure the CES service agent
      +   * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com` has
      +   * `storage.objects.get` permission to the Cloud Storage object.
      +   * 
      + * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcsUri. + */ + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 2) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 2) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PREBUILT_AMBIENT_SOUND_FIELD_NUMBER = 4; + + /** + * + * + *
      +   * Optional. Name of the prebuilt ambient sound.
      +   * Valid values are:
      +   * - "coffee_shop"
      +   * - "keyboard"
      +   * - "keypad"
      +   * - "hum"
      +   * - "office_1"
      +   * - "office_2"
      +   * - "office_3"
      +   * - "room_1"
      +   * - "room_2"
      +   * - "room_3"
      +   * - "room_4"
      +   * - "room_5"
      +   * - "air_conditioner"
      +   * 
      + * + * string prebuilt_ambient_sound = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the prebuiltAmbientSound field is set. + */ + public boolean hasPrebuiltAmbientSound() { + return sourceCase_ == 4; + } + + /** + * + * + *
      +   * Optional. Name of the prebuilt ambient sound.
      +   * Valid values are:
      +   * - "coffee_shop"
      +   * - "keyboard"
      +   * - "keypad"
      +   * - "hum"
      +   * - "office_1"
      +   * - "office_2"
      +   * - "office_3"
      +   * - "room_1"
      +   * - "room_2"
      +   * - "room_3"
      +   * - "room_4"
      +   * - "room_5"
      +   * - "air_conditioner"
      +   * 
      + * + * string prebuilt_ambient_sound = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The prebuiltAmbientSound. + */ + public java.lang.String getPrebuiltAmbientSound() { + java.lang.Object ref = ""; + if (sourceCase_ == 4) { + ref = source_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 4) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
      +   * Optional. Name of the prebuilt ambient sound.
      +   * Valid values are:
      +   * - "coffee_shop"
      +   * - "keyboard"
      +   * - "keypad"
      +   * - "hum"
      +   * - "office_1"
      +   * - "office_2"
      +   * - "office_3"
      +   * - "room_1"
      +   * - "room_2"
      +   * - "room_3"
      +   * - "room_4"
      +   * - "room_5"
      +   * - "air_conditioner"
      +   * 
      + * + * string prebuilt_ambient_sound = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for prebuiltAmbientSound. + */ + public com.google.protobuf.ByteString getPrebuiltAmbientSoundBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 4) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 4) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VOLUME_GAIN_DB_FIELD_NUMBER = 3; + private double volumeGainDb_ = 0D; + + /** + * + * + *
      +   * Optional. Volume gain (in dB) of the normal native volume supported by
      +   * ambient noise, in the range [-96.0, 16.0]. If unset, or set to a value of
      +   * 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
      +   * will play at approximately half the amplitude of the normal native signal
      +   * amplitude. A value of +6.0 (dB) will play at approximately twice the
      +   * amplitude of the normal native signal amplitude. We strongly recommend not
      +   * to exceed +10 (dB) as there's usually no effective increase in loudness for
      +   * any value greater than that.
      +   * 
      + * + * double volume_gain_db = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The volumeGainDb. + */ + @java.lang.Override + public double getVolumeGainDb() { + return volumeGainDb_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (sourceCase_ == 1) { + output.writeEnum(1, ((java.lang.Integer) source_)); + } + if (sourceCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, source_); + } + if (java.lang.Double.doubleToRawLongBits(volumeGainDb_) != 0) { + output.writeDouble(3, volumeGainDb_); + } + if (sourceCase_ == 4) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, source_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sourceCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(1, ((java.lang.Integer) source_)); + } + if (sourceCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, source_); + } + if (java.lang.Double.doubleToRawLongBits(volumeGainDb_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, volumeGainDb_); + } + if (sourceCase_ == 4) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, source_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.AmbientSoundConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.AmbientSoundConfig other = + (com.google.cloud.ces.v1.AmbientSoundConfig) obj; + + if (java.lang.Double.doubleToLongBits(getVolumeGainDb()) + != java.lang.Double.doubleToLongBits(other.getVolumeGainDb())) return false; + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 1: + if (getPrebuiltAmbientNoiseValue() != other.getPrebuiltAmbientNoiseValue()) return false; + break; + case 2: + if (!getGcsUri().equals(other.getGcsUri())) return false; + break; + case 4: + if (!getPrebuiltAmbientSound().equals(other.getPrebuiltAmbientSound())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VOLUME_GAIN_DB_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getVolumeGainDb())); + switch (sourceCase_) { + case 1: + hash = (37 * hash) + PREBUILT_AMBIENT_NOISE_FIELD_NUMBER; + hash = (53 * hash) + getPrebuiltAmbientNoiseValue(); + break; + case 2: + hash = (37 * hash) + GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getGcsUri().hashCode(); + break; + case 4: + hash = (37 * hash) + PREBUILT_AMBIENT_SOUND_FIELD_NUMBER; + hash = (53 * hash) + getPrebuiltAmbientSound().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.AmbientSoundConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.AmbientSoundConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AmbientSoundConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.AmbientSoundConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AmbientSoundConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.AmbientSoundConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AmbientSoundConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.AmbientSoundConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AmbientSoundConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.AmbientSoundConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AmbientSoundConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.AmbientSoundConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.AmbientSoundConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Configuration for the ambient sound to be played with the synthesized agent
      +   * response, to enhance the naturalness of the conversation.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.AmbientSoundConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.AmbientSoundConfig) + com.google.cloud.ces.v1.AmbientSoundConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_AmbientSoundConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_AmbientSoundConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.AmbientSoundConfig.class, + com.google.cloud.ces.v1.AmbientSoundConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.AmbientSoundConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + volumeGainDb_ = 0D; + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_AmbientSoundConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.AmbientSoundConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1.AmbientSoundConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.AmbientSoundConfig build() { + com.google.cloud.ces.v1.AmbientSoundConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.AmbientSoundConfig buildPartial() { + com.google.cloud.ces.v1.AmbientSoundConfig result = + new com.google.cloud.ces.v1.AmbientSoundConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.AmbientSoundConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.volumeGainDb_ = volumeGainDb_; + } + } + + private void buildPartialOneofs(com.google.cloud.ces.v1.AmbientSoundConfig result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.AmbientSoundConfig) { + return mergeFrom((com.google.cloud.ces.v1.AmbientSoundConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.AmbientSoundConfig other) { + if (other == com.google.cloud.ces.v1.AmbientSoundConfig.getDefaultInstance()) return this; + if (java.lang.Double.doubleToRawLongBits(other.getVolumeGainDb()) != 0) { + setVolumeGainDb(other.getVolumeGainDb()); + } + switch (other.getSourceCase()) { + case PREBUILT_AMBIENT_NOISE: + { + setPrebuiltAmbientNoiseValue(other.getPrebuiltAmbientNoiseValue()); + break; + } + case GCS_URI: + { + sourceCase_ = 2; + source_ = other.source_; + onChanged(); + break; + } + case PREBUILT_AMBIENT_SOUND: + { + sourceCase_ = 4; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + sourceCase_ = 1; + source_ = rawValue; + break; + } // case 8 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 2; + source_ = s; + break; + } // case 18 + case 25: + { + volumeGainDb_ = input.readDouble(); + bitField0_ |= 0x00000008; + break; + } // case 25 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 4; + source_ = s; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
      +     * Optional. Deprecated: `prebuilt_ambient_noise` is deprecated in favor of
      +     * `prebuilt_ambient_sound`.
      +     * 
      + * + * + * .google.cloud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoise prebuilt_ambient_noise = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See + * google/cloud/ces/v1/app.proto;l=285 + * @return Whether the prebuiltAmbientNoise field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasPrebuiltAmbientNoise() { + return sourceCase_ == 1; + } + + /** + * + * + *
      +     * Optional. Deprecated: `prebuilt_ambient_noise` is deprecated in favor of
      +     * `prebuilt_ambient_sound`.
      +     * 
      + * + * + * .google.cloud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoise prebuilt_ambient_noise = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See + * google/cloud/ces/v1/app.proto;l=285 + * @return The enum numeric value on the wire for prebuiltAmbientNoise. + */ + @java.lang.Override + @java.lang.Deprecated + public int getPrebuiltAmbientNoiseValue() { + if (sourceCase_ == 1) { + return ((java.lang.Integer) source_).intValue(); + } + return 0; + } + + /** + * + * + *
      +     * Optional. Deprecated: `prebuilt_ambient_noise` is deprecated in favor of
      +     * `prebuilt_ambient_sound`.
      +     * 
      + * + * + * .google.cloud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoise prebuilt_ambient_noise = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See + * google/cloud/ces/v1/app.proto;l=285 + * @param value The enum numeric value on the wire for prebuiltAmbientNoise to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setPrebuiltAmbientNoiseValue(int value) { + sourceCase_ = 1; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Deprecated: `prebuilt_ambient_noise` is deprecated in favor of
      +     * `prebuilt_ambient_sound`.
      +     * 
      + * + * + * .google.cloud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoise prebuilt_ambient_noise = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See + * google/cloud/ces/v1/app.proto;l=285 + * @return The prebuiltAmbientNoise. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoise + getPrebuiltAmbientNoise() { + if (sourceCase_ == 1) { + com.google.cloud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoise result = + com.google.cloud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoise.forNumber( + (java.lang.Integer) source_); + return result == null + ? com.google.cloud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoise.UNRECOGNIZED + : result; + } + return com.google.cloud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoise + .PREBUILT_AMBIENT_NOISE_UNSPECIFIED; + } + + /** + * + * + *
      +     * Optional. Deprecated: `prebuilt_ambient_noise` is deprecated in favor of
      +     * `prebuilt_ambient_sound`.
      +     * 
      + * + * + * .google.cloud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoise prebuilt_ambient_noise = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See + * google/cloud/ces/v1/app.proto;l=285 + * @param value The prebuiltAmbientNoise to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setPrebuiltAmbientNoise( + com.google.cloud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoise value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 1; + source_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Deprecated: `prebuilt_ambient_noise` is deprecated in favor of
      +     * `prebuilt_ambient_sound`.
      +     * 
      + * + * + * .google.cloud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoise prebuilt_ambient_noise = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See + * google/cloud/ces/v1/app.proto;l=285 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearPrebuiltAmbientNoise() { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Ambient noise as a mono-channel, 16kHz WAV file stored in
      +     * [Cloud Storage](https://cloud.google.com/storage).
      +     *
      +     * Note: Please make sure the CES service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com` has
      +     * `storage.objects.get` permission to the Cloud Storage object.
      +     * 
      + * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the gcsUri field is set. + */ + @java.lang.Override + public boolean hasGcsUri() { + return sourceCase_ == 2; + } + + /** + * + * + *
      +     * Optional. Ambient noise as a mono-channel, 16kHz WAV file stored in
      +     * [Cloud Storage](https://cloud.google.com/storage).
      +     *
      +     * Note: Please make sure the CES service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com` has
      +     * `storage.objects.get` permission to the Cloud Storage object.
      +     * 
      + * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcsUri. + */ + @java.lang.Override + public java.lang.String getGcsUri() { + java.lang.Object ref = ""; + if (sourceCase_ == 2) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 2) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Ambient noise as a mono-channel, 16kHz WAV file stored in
      +     * [Cloud Storage](https://cloud.google.com/storage).
      +     *
      +     * Note: Please make sure the CES service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com` has
      +     * `storage.objects.get` permission to the Cloud Storage object.
      +     * 
      + * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 2) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 2) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Ambient noise as a mono-channel, 16kHz WAV file stored in
      +     * [Cloud Storage](https://cloud.google.com/storage).
      +     *
      +     * Note: Please make sure the CES service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com` has
      +     * `storage.objects.get` permission to the Cloud Storage object.
      +     * 
      + * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The gcsUri to set. + * @return This builder for chaining. + */ + public Builder setGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 2; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Ambient noise as a mono-channel, 16kHz WAV file stored in
      +     * [Cloud Storage](https://cloud.google.com/storage).
      +     *
      +     * Note: Please make sure the CES service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com` has
      +     * `storage.objects.get` permission to the Cloud Storage object.
      +     * 
      + * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGcsUri() { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Ambient noise as a mono-channel, 16kHz WAV file stored in
      +     * [Cloud Storage](https://cloud.google.com/storage).
      +     *
      +     * Note: Please make sure the CES service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com` has
      +     * `storage.objects.get` permission to the Cloud Storage object.
      +     * 
      + * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for gcsUri to set. + * @return This builder for chaining. + */ + public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 2; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Name of the prebuilt ambient sound.
      +     * Valid values are:
      +     * - "coffee_shop"
      +     * - "keyboard"
      +     * - "keypad"
      +     * - "hum"
      +     * - "office_1"
      +     * - "office_2"
      +     * - "office_3"
      +     * - "room_1"
      +     * - "room_2"
      +     * - "room_3"
      +     * - "room_4"
      +     * - "room_5"
      +     * - "air_conditioner"
      +     * 
      + * + * string prebuilt_ambient_sound = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the prebuiltAmbientSound field is set. + */ + @java.lang.Override + public boolean hasPrebuiltAmbientSound() { + return sourceCase_ == 4; + } + + /** + * + * + *
      +     * Optional. Name of the prebuilt ambient sound.
      +     * Valid values are:
      +     * - "coffee_shop"
      +     * - "keyboard"
      +     * - "keypad"
      +     * - "hum"
      +     * - "office_1"
      +     * - "office_2"
      +     * - "office_3"
      +     * - "room_1"
      +     * - "room_2"
      +     * - "room_3"
      +     * - "room_4"
      +     * - "room_5"
      +     * - "air_conditioner"
      +     * 
      + * + * string prebuilt_ambient_sound = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The prebuiltAmbientSound. + */ + @java.lang.Override + public java.lang.String getPrebuiltAmbientSound() { + java.lang.Object ref = ""; + if (sourceCase_ == 4) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 4) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Name of the prebuilt ambient sound.
      +     * Valid values are:
      +     * - "coffee_shop"
      +     * - "keyboard"
      +     * - "keypad"
      +     * - "hum"
      +     * - "office_1"
      +     * - "office_2"
      +     * - "office_3"
      +     * - "room_1"
      +     * - "room_2"
      +     * - "room_3"
      +     * - "room_4"
      +     * - "room_5"
      +     * - "air_conditioner"
      +     * 
      + * + * string prebuilt_ambient_sound = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for prebuiltAmbientSound. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrebuiltAmbientSoundBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 4) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 4) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Name of the prebuilt ambient sound.
      +     * Valid values are:
      +     * - "coffee_shop"
      +     * - "keyboard"
      +     * - "keypad"
      +     * - "hum"
      +     * - "office_1"
      +     * - "office_2"
      +     * - "office_3"
      +     * - "room_1"
      +     * - "room_2"
      +     * - "room_3"
      +     * - "room_4"
      +     * - "room_5"
      +     * - "air_conditioner"
      +     * 
      + * + * string prebuilt_ambient_sound = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The prebuiltAmbientSound to set. + * @return This builder for chaining. + */ + public Builder setPrebuiltAmbientSound(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 4; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Name of the prebuilt ambient sound.
      +     * Valid values are:
      +     * - "coffee_shop"
      +     * - "keyboard"
      +     * - "keypad"
      +     * - "hum"
      +     * - "office_1"
      +     * - "office_2"
      +     * - "office_3"
      +     * - "room_1"
      +     * - "room_2"
      +     * - "room_3"
      +     * - "room_4"
      +     * - "room_5"
      +     * - "air_conditioner"
      +     * 
      + * + * string prebuilt_ambient_sound = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPrebuiltAmbientSound() { + if (sourceCase_ == 4) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Name of the prebuilt ambient sound.
      +     * Valid values are:
      +     * - "coffee_shop"
      +     * - "keyboard"
      +     * - "keypad"
      +     * - "hum"
      +     * - "office_1"
      +     * - "office_2"
      +     * - "office_3"
      +     * - "room_1"
      +     * - "room_2"
      +     * - "room_3"
      +     * - "room_4"
      +     * - "room_5"
      +     * - "air_conditioner"
      +     * 
      + * + * string prebuilt_ambient_sound = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for prebuiltAmbientSound to set. + * @return This builder for chaining. + */ + public Builder setPrebuiltAmbientSoundBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 4; + source_ = value; + onChanged(); + return this; + } + + private double volumeGainDb_; + + /** + * + * + *
      +     * Optional. Volume gain (in dB) of the normal native volume supported by
      +     * ambient noise, in the range [-96.0, 16.0]. If unset, or set to a value of
      +     * 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
      +     * will play at approximately half the amplitude of the normal native signal
      +     * amplitude. A value of +6.0 (dB) will play at approximately twice the
      +     * amplitude of the normal native signal amplitude. We strongly recommend not
      +     * to exceed +10 (dB) as there's usually no effective increase in loudness for
      +     * any value greater than that.
      +     * 
      + * + * double volume_gain_db = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The volumeGainDb. + */ + @java.lang.Override + public double getVolumeGainDb() { + return volumeGainDb_; + } + + /** + * + * + *
      +     * Optional. Volume gain (in dB) of the normal native volume supported by
      +     * ambient noise, in the range [-96.0, 16.0]. If unset, or set to a value of
      +     * 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
      +     * will play at approximately half the amplitude of the normal native signal
      +     * amplitude. A value of +6.0 (dB) will play at approximately twice the
      +     * amplitude of the normal native signal amplitude. We strongly recommend not
      +     * to exceed +10 (dB) as there's usually no effective increase in loudness for
      +     * any value greater than that.
      +     * 
      + * + * double volume_gain_db = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The volumeGainDb to set. + * @return This builder for chaining. + */ + public Builder setVolumeGainDb(double value) { + + volumeGainDb_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Volume gain (in dB) of the normal native volume supported by
      +     * ambient noise, in the range [-96.0, 16.0]. If unset, or set to a value of
      +     * 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
      +     * will play at approximately half the amplitude of the normal native signal
      +     * amplitude. A value of +6.0 (dB) will play at approximately twice the
      +     * amplitude of the normal native signal amplitude. We strongly recommend not
      +     * to exceed +10 (dB) as there's usually no effective increase in loudness for
      +     * any value greater than that.
      +     * 
      + * + * double volume_gain_db = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearVolumeGainDb() { + bitField0_ = (bitField0_ & ~0x00000008); + volumeGainDb_ = 0D; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.AmbientSoundConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.AmbientSoundConfig) + private static final com.google.cloud.ces.v1.AmbientSoundConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.AmbientSoundConfig(); + } + + public static com.google.cloud.ces.v1.AmbientSoundConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AmbientSoundConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.AmbientSoundConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AmbientSoundConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AmbientSoundConfigOrBuilder.java new file mode 100644 index 000000000000..3bfec6d4eb8d --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AmbientSoundConfigOrBuilder.java @@ -0,0 +1,242 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface AmbientSoundConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.AmbientSoundConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. Deprecated: `prebuilt_ambient_noise` is deprecated in favor of
      +   * `prebuilt_ambient_sound`.
      +   * 
      + * + * + * .google.cloud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoise prebuilt_ambient_noise = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See + * google/cloud/ces/v1/app.proto;l=285 + * @return Whether the prebuiltAmbientNoise field is set. + */ + @java.lang.Deprecated + boolean hasPrebuiltAmbientNoise(); + + /** + * + * + *
      +   * Optional. Deprecated: `prebuilt_ambient_noise` is deprecated in favor of
      +   * `prebuilt_ambient_sound`.
      +   * 
      + * + * + * .google.cloud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoise prebuilt_ambient_noise = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See + * google/cloud/ces/v1/app.proto;l=285 + * @return The enum numeric value on the wire for prebuiltAmbientNoise. + */ + @java.lang.Deprecated + int getPrebuiltAmbientNoiseValue(); + + /** + * + * + *
      +   * Optional. Deprecated: `prebuilt_ambient_noise` is deprecated in favor of
      +   * `prebuilt_ambient_sound`.
      +   * 
      + * + * + * .google.cloud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoise prebuilt_ambient_noise = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. See + * google/cloud/ces/v1/app.proto;l=285 + * @return The prebuiltAmbientNoise. + */ + @java.lang.Deprecated + com.google.cloud.ces.v1.AmbientSoundConfig.PrebuiltAmbientNoise getPrebuiltAmbientNoise(); + + /** + * + * + *
      +   * Optional. Ambient noise as a mono-channel, 16kHz WAV file stored in
      +   * [Cloud Storage](https://cloud.google.com/storage).
      +   *
      +   * Note: Please make sure the CES service agent
      +   * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com` has
      +   * `storage.objects.get` permission to the Cloud Storage object.
      +   * 
      + * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the gcsUri field is set. + */ + boolean hasGcsUri(); + + /** + * + * + *
      +   * Optional. Ambient noise as a mono-channel, 16kHz WAV file stored in
      +   * [Cloud Storage](https://cloud.google.com/storage).
      +   *
      +   * Note: Please make sure the CES service agent
      +   * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com` has
      +   * `storage.objects.get` permission to the Cloud Storage object.
      +   * 
      + * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcsUri. + */ + java.lang.String getGcsUri(); + + /** + * + * + *
      +   * Optional. Ambient noise as a mono-channel, 16kHz WAV file stored in
      +   * [Cloud Storage](https://cloud.google.com/storage).
      +   *
      +   * Note: Please make sure the CES service agent
      +   * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com` has
      +   * `storage.objects.get` permission to the Cloud Storage object.
      +   * 
      + * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcsUri. + */ + com.google.protobuf.ByteString getGcsUriBytes(); + + /** + * + * + *
      +   * Optional. Name of the prebuilt ambient sound.
      +   * Valid values are:
      +   * - "coffee_shop"
      +   * - "keyboard"
      +   * - "keypad"
      +   * - "hum"
      +   * - "office_1"
      +   * - "office_2"
      +   * - "office_3"
      +   * - "room_1"
      +   * - "room_2"
      +   * - "room_3"
      +   * - "room_4"
      +   * - "room_5"
      +   * - "air_conditioner"
      +   * 
      + * + * string prebuilt_ambient_sound = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the prebuiltAmbientSound field is set. + */ + boolean hasPrebuiltAmbientSound(); + + /** + * + * + *
      +   * Optional. Name of the prebuilt ambient sound.
      +   * Valid values are:
      +   * - "coffee_shop"
      +   * - "keyboard"
      +   * - "keypad"
      +   * - "hum"
      +   * - "office_1"
      +   * - "office_2"
      +   * - "office_3"
      +   * - "room_1"
      +   * - "room_2"
      +   * - "room_3"
      +   * - "room_4"
      +   * - "room_5"
      +   * - "air_conditioner"
      +   * 
      + * + * string prebuilt_ambient_sound = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The prebuiltAmbientSound. + */ + java.lang.String getPrebuiltAmbientSound(); + + /** + * + * + *
      +   * Optional. Name of the prebuilt ambient sound.
      +   * Valid values are:
      +   * - "coffee_shop"
      +   * - "keyboard"
      +   * - "keypad"
      +   * - "hum"
      +   * - "office_1"
      +   * - "office_2"
      +   * - "office_3"
      +   * - "room_1"
      +   * - "room_2"
      +   * - "room_3"
      +   * - "room_4"
      +   * - "room_5"
      +   * - "air_conditioner"
      +   * 
      + * + * string prebuilt_ambient_sound = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for prebuiltAmbientSound. + */ + com.google.protobuf.ByteString getPrebuiltAmbientSoundBytes(); + + /** + * + * + *
      +   * Optional. Volume gain (in dB) of the normal native volume supported by
      +   * ambient noise, in the range [-96.0, 16.0]. If unset, or set to a value of
      +   * 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
      +   * will play at approximately half the amplitude of the normal native signal
      +   * amplitude. A value of +6.0 (dB) will play at approximately twice the
      +   * amplitude of the normal native signal amplitude. We strongly recommend not
      +   * to exceed +10 (dB) as there's usually no effective increase in loudness for
      +   * any value greater than that.
      +   * 
      + * + * double volume_gain_db = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The volumeGainDb. + */ + double getVolumeGainDb(); + + com.google.cloud.ces.v1.AmbientSoundConfig.SourceCase getSourceCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ApiAuthentication.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ApiAuthentication.java new file mode 100644 index 000000000000..2c5817105fc0 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ApiAuthentication.java @@ -0,0 +1,2161 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/auth.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Authentication information required for API calls.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ApiAuthentication} + */ +@com.google.protobuf.Generated +public final class ApiAuthentication extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ApiAuthentication) + ApiAuthenticationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ApiAuthentication"); + } + + // Use ApiAuthentication.newBuilder() to construct. + private ApiAuthentication(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ApiAuthentication() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_ApiAuthentication_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_ApiAuthentication_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ApiAuthentication.class, + com.google.cloud.ces.v1.ApiAuthentication.Builder.class); + } + + private int authConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object authConfig_; + + public enum AuthConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + API_KEY_CONFIG(1), + OAUTH_CONFIG(2), + SERVICE_AGENT_ID_TOKEN_AUTH_CONFIG(3), + SERVICE_ACCOUNT_AUTH_CONFIG(4), + BEARER_TOKEN_CONFIG(5), + AUTHCONFIG_NOT_SET(0); + private final int value; + + private AuthConfigCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AuthConfigCase valueOf(int value) { + return forNumber(value); + } + + public static AuthConfigCase forNumber(int value) { + switch (value) { + case 1: + return API_KEY_CONFIG; + case 2: + return OAUTH_CONFIG; + case 3: + return SERVICE_AGENT_ID_TOKEN_AUTH_CONFIG; + case 4: + return SERVICE_ACCOUNT_AUTH_CONFIG; + case 5: + return BEARER_TOKEN_CONFIG; + case 0: + return AUTHCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public AuthConfigCase getAuthConfigCase() { + return AuthConfigCase.forNumber(authConfigCase_); + } + + public static final int API_KEY_CONFIG_FIELD_NUMBER = 1; + + /** + * + * + *
      +   * Optional. Config for API key auth.
      +   * 
      + * + * + * .google.cloud.ces.v1.ApiKeyConfig api_key_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiKeyConfig field is set. + */ + @java.lang.Override + public boolean hasApiKeyConfig() { + return authConfigCase_ == 1; + } + + /** + * + * + *
      +   * Optional. Config for API key auth.
      +   * 
      + * + * + * .google.cloud.ces.v1.ApiKeyConfig api_key_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiKeyConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ApiKeyConfig getApiKeyConfig() { + if (authConfigCase_ == 1) { + return (com.google.cloud.ces.v1.ApiKeyConfig) authConfig_; + } + return com.google.cloud.ces.v1.ApiKeyConfig.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Config for API key auth.
      +   * 
      + * + * + * .google.cloud.ces.v1.ApiKeyConfig api_key_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ApiKeyConfigOrBuilder getApiKeyConfigOrBuilder() { + if (authConfigCase_ == 1) { + return (com.google.cloud.ces.v1.ApiKeyConfig) authConfig_; + } + return com.google.cloud.ces.v1.ApiKeyConfig.getDefaultInstance(); + } + + public static final int OAUTH_CONFIG_FIELD_NUMBER = 2; + + /** + * + * + *
      +   * Optional. Config for OAuth.
      +   * 
      + * + * + * .google.cloud.ces.v1.OAuthConfig oauth_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the oauthConfig field is set. + */ + @java.lang.Override + public boolean hasOauthConfig() { + return authConfigCase_ == 2; + } + + /** + * + * + *
      +   * Optional. Config for OAuth.
      +   * 
      + * + * + * .google.cloud.ces.v1.OAuthConfig oauth_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The oauthConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.OAuthConfig getOauthConfig() { + if (authConfigCase_ == 2) { + return (com.google.cloud.ces.v1.OAuthConfig) authConfig_; + } + return com.google.cloud.ces.v1.OAuthConfig.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Config for OAuth.
      +   * 
      + * + * + * .google.cloud.ces.v1.OAuthConfig oauth_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.OAuthConfigOrBuilder getOauthConfigOrBuilder() { + if (authConfigCase_ == 2) { + return (com.google.cloud.ces.v1.OAuthConfig) authConfig_; + } + return com.google.cloud.ces.v1.OAuthConfig.getDefaultInstance(); + } + + public static final int SERVICE_AGENT_ID_TOKEN_AUTH_CONFIG_FIELD_NUMBER = 3; + + /** + * + * + *
      +   * Optional. Config for ID token auth generated from CES service agent.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig service_agent_id_token_auth_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceAgentIdTokenAuthConfig field is set. + */ + @java.lang.Override + public boolean hasServiceAgentIdTokenAuthConfig() { + return authConfigCase_ == 3; + } + + /** + * + * + *
      +   * Optional. Config for ID token auth generated from CES service agent.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig service_agent_id_token_auth_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceAgentIdTokenAuthConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig getServiceAgentIdTokenAuthConfig() { + if (authConfigCase_ == 3) { + return (com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig) authConfig_; + } + return com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Config for ID token auth generated from CES service agent.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig service_agent_id_token_auth_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfigOrBuilder + getServiceAgentIdTokenAuthConfigOrBuilder() { + if (authConfigCase_ == 3) { + return (com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig) authConfig_; + } + return com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig.getDefaultInstance(); + } + + public static final int SERVICE_ACCOUNT_AUTH_CONFIG_FIELD_NUMBER = 4; + + /** + * + * + *
      +   * Optional. Config for service account authentication.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceAccountAuthConfig service_account_auth_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceAccountAuthConfig field is set. + */ + @java.lang.Override + public boolean hasServiceAccountAuthConfig() { + return authConfigCase_ == 4; + } + + /** + * + * + *
      +   * Optional. Config for service account authentication.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceAccountAuthConfig service_account_auth_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceAccountAuthConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ServiceAccountAuthConfig getServiceAccountAuthConfig() { + if (authConfigCase_ == 4) { + return (com.google.cloud.ces.v1.ServiceAccountAuthConfig) authConfig_; + } + return com.google.cloud.ces.v1.ServiceAccountAuthConfig.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Config for service account authentication.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceAccountAuthConfig service_account_auth_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ServiceAccountAuthConfigOrBuilder + getServiceAccountAuthConfigOrBuilder() { + if (authConfigCase_ == 4) { + return (com.google.cloud.ces.v1.ServiceAccountAuthConfig) authConfig_; + } + return com.google.cloud.ces.v1.ServiceAccountAuthConfig.getDefaultInstance(); + } + + public static final int BEARER_TOKEN_CONFIG_FIELD_NUMBER = 5; + + /** + * + * + *
      +   * Optional. Config for bearer token auth.
      +   * 
      + * + * + * .google.cloud.ces.v1.BearerTokenConfig bearer_token_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bearerTokenConfig field is set. + */ + @java.lang.Override + public boolean hasBearerTokenConfig() { + return authConfigCase_ == 5; + } + + /** + * + * + *
      +   * Optional. Config for bearer token auth.
      +   * 
      + * + * + * .google.cloud.ces.v1.BearerTokenConfig bearer_token_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bearerTokenConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.BearerTokenConfig getBearerTokenConfig() { + if (authConfigCase_ == 5) { + return (com.google.cloud.ces.v1.BearerTokenConfig) authConfig_; + } + return com.google.cloud.ces.v1.BearerTokenConfig.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Config for bearer token auth.
      +   * 
      + * + * + * .google.cloud.ces.v1.BearerTokenConfig bearer_token_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.BearerTokenConfigOrBuilder getBearerTokenConfigOrBuilder() { + if (authConfigCase_ == 5) { + return (com.google.cloud.ces.v1.BearerTokenConfig) authConfig_; + } + return com.google.cloud.ces.v1.BearerTokenConfig.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (authConfigCase_ == 1) { + output.writeMessage(1, (com.google.cloud.ces.v1.ApiKeyConfig) authConfig_); + } + if (authConfigCase_ == 2) { + output.writeMessage(2, (com.google.cloud.ces.v1.OAuthConfig) authConfig_); + } + if (authConfigCase_ == 3) { + output.writeMessage(3, (com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig) authConfig_); + } + if (authConfigCase_ == 4) { + output.writeMessage(4, (com.google.cloud.ces.v1.ServiceAccountAuthConfig) authConfig_); + } + if (authConfigCase_ == 5) { + output.writeMessage(5, (com.google.cloud.ces.v1.BearerTokenConfig) authConfig_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (authConfigCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.ces.v1.ApiKeyConfig) authConfig_); + } + if (authConfigCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.ces.v1.OAuthConfig) authConfig_); + } + if (authConfigCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig) authConfig_); + } + if (authConfigCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.ces.v1.ServiceAccountAuthConfig) authConfig_); + } + if (authConfigCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.ces.v1.BearerTokenConfig) authConfig_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ApiAuthentication)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ApiAuthentication other = + (com.google.cloud.ces.v1.ApiAuthentication) obj; + + if (!getAuthConfigCase().equals(other.getAuthConfigCase())) return false; + switch (authConfigCase_) { + case 1: + if (!getApiKeyConfig().equals(other.getApiKeyConfig())) return false; + break; + case 2: + if (!getOauthConfig().equals(other.getOauthConfig())) return false; + break; + case 3: + if (!getServiceAgentIdTokenAuthConfig().equals(other.getServiceAgentIdTokenAuthConfig())) + return false; + break; + case 4: + if (!getServiceAccountAuthConfig().equals(other.getServiceAccountAuthConfig())) + return false; + break; + case 5: + if (!getBearerTokenConfig().equals(other.getBearerTokenConfig())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (authConfigCase_) { + case 1: + hash = (37 * hash) + API_KEY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getApiKeyConfig().hashCode(); + break; + case 2: + hash = (37 * hash) + OAUTH_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getOauthConfig().hashCode(); + break; + case 3: + hash = (37 * hash) + SERVICE_AGENT_ID_TOKEN_AUTH_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getServiceAgentIdTokenAuthConfig().hashCode(); + break; + case 4: + hash = (37 * hash) + SERVICE_ACCOUNT_AUTH_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccountAuthConfig().hashCode(); + break; + case 5: + hash = (37 * hash) + BEARER_TOKEN_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getBearerTokenConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ApiAuthentication parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ApiAuthentication parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ApiAuthentication parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ApiAuthentication parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ApiAuthentication parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ApiAuthentication parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ApiAuthentication parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ApiAuthentication parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ApiAuthentication parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ApiAuthentication parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ApiAuthentication parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ApiAuthentication parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ApiAuthentication prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Authentication information required for API calls.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ApiAuthentication} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ApiAuthentication) + com.google.cloud.ces.v1.ApiAuthenticationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_ApiAuthentication_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_ApiAuthentication_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ApiAuthentication.class, + com.google.cloud.ces.v1.ApiAuthentication.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ApiAuthentication.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (apiKeyConfigBuilder_ != null) { + apiKeyConfigBuilder_.clear(); + } + if (oauthConfigBuilder_ != null) { + oauthConfigBuilder_.clear(); + } + if (serviceAgentIdTokenAuthConfigBuilder_ != null) { + serviceAgentIdTokenAuthConfigBuilder_.clear(); + } + if (serviceAccountAuthConfigBuilder_ != null) { + serviceAccountAuthConfigBuilder_.clear(); + } + if (bearerTokenConfigBuilder_ != null) { + bearerTokenConfigBuilder_.clear(); + } + authConfigCase_ = 0; + authConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_ApiAuthentication_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ApiAuthentication getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ApiAuthentication.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ApiAuthentication build() { + com.google.cloud.ces.v1.ApiAuthentication result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ApiAuthentication buildPartial() { + com.google.cloud.ces.v1.ApiAuthentication result = + new com.google.cloud.ces.v1.ApiAuthentication(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ApiAuthentication result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.ces.v1.ApiAuthentication result) { + result.authConfigCase_ = authConfigCase_; + result.authConfig_ = this.authConfig_; + if (authConfigCase_ == 1 && apiKeyConfigBuilder_ != null) { + result.authConfig_ = apiKeyConfigBuilder_.build(); + } + if (authConfigCase_ == 2 && oauthConfigBuilder_ != null) { + result.authConfig_ = oauthConfigBuilder_.build(); + } + if (authConfigCase_ == 3 && serviceAgentIdTokenAuthConfigBuilder_ != null) { + result.authConfig_ = serviceAgentIdTokenAuthConfigBuilder_.build(); + } + if (authConfigCase_ == 4 && serviceAccountAuthConfigBuilder_ != null) { + result.authConfig_ = serviceAccountAuthConfigBuilder_.build(); + } + if (authConfigCase_ == 5 && bearerTokenConfigBuilder_ != null) { + result.authConfig_ = bearerTokenConfigBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ApiAuthentication) { + return mergeFrom((com.google.cloud.ces.v1.ApiAuthentication) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ApiAuthentication other) { + if (other == com.google.cloud.ces.v1.ApiAuthentication.getDefaultInstance()) return this; + switch (other.getAuthConfigCase()) { + case API_KEY_CONFIG: + { + mergeApiKeyConfig(other.getApiKeyConfig()); + break; + } + case OAUTH_CONFIG: + { + mergeOauthConfig(other.getOauthConfig()); + break; + } + case SERVICE_AGENT_ID_TOKEN_AUTH_CONFIG: + { + mergeServiceAgentIdTokenAuthConfig(other.getServiceAgentIdTokenAuthConfig()); + break; + } + case SERVICE_ACCOUNT_AUTH_CONFIG: + { + mergeServiceAccountAuthConfig(other.getServiceAccountAuthConfig()); + break; + } + case BEARER_TOKEN_CONFIG: + { + mergeBearerTokenConfig(other.getBearerTokenConfig()); + break; + } + case AUTHCONFIG_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetApiKeyConfigFieldBuilder().getBuilder(), extensionRegistry); + authConfigCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetOauthConfigFieldBuilder().getBuilder(), extensionRegistry); + authConfigCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetServiceAgentIdTokenAuthConfigFieldBuilder().getBuilder(), + extensionRegistry); + authConfigCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetServiceAccountAuthConfigFieldBuilder().getBuilder(), + extensionRegistry); + authConfigCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetBearerTokenConfigFieldBuilder().getBuilder(), extensionRegistry); + authConfigCase_ = 5; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int authConfigCase_ = 0; + private java.lang.Object authConfig_; + + public AuthConfigCase getAuthConfigCase() { + return AuthConfigCase.forNumber(authConfigCase_); + } + + public Builder clearAuthConfig() { + authConfigCase_ = 0; + authConfig_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ApiKeyConfig, + com.google.cloud.ces.v1.ApiKeyConfig.Builder, + com.google.cloud.ces.v1.ApiKeyConfigOrBuilder> + apiKeyConfigBuilder_; + + /** + * + * + *
      +     * Optional. Config for API key auth.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiKeyConfig api_key_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiKeyConfig field is set. + */ + @java.lang.Override + public boolean hasApiKeyConfig() { + return authConfigCase_ == 1; + } + + /** + * + * + *
      +     * Optional. Config for API key auth.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiKeyConfig api_key_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiKeyConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ApiKeyConfig getApiKeyConfig() { + if (apiKeyConfigBuilder_ == null) { + if (authConfigCase_ == 1) { + return (com.google.cloud.ces.v1.ApiKeyConfig) authConfig_; + } + return com.google.cloud.ces.v1.ApiKeyConfig.getDefaultInstance(); + } else { + if (authConfigCase_ == 1) { + return apiKeyConfigBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.ApiKeyConfig.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Config for API key auth.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiKeyConfig api_key_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiKeyConfig(com.google.cloud.ces.v1.ApiKeyConfig value) { + if (apiKeyConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authConfig_ = value; + onChanged(); + } else { + apiKeyConfigBuilder_.setMessage(value); + } + authConfigCase_ = 1; + return this; + } + + /** + * + * + *
      +     * Optional. Config for API key auth.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiKeyConfig api_key_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiKeyConfig(com.google.cloud.ces.v1.ApiKeyConfig.Builder builderForValue) { + if (apiKeyConfigBuilder_ == null) { + authConfig_ = builderForValue.build(); + onChanged(); + } else { + apiKeyConfigBuilder_.setMessage(builderForValue.build()); + } + authConfigCase_ = 1; + return this; + } + + /** + * + * + *
      +     * Optional. Config for API key auth.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiKeyConfig api_key_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeApiKeyConfig(com.google.cloud.ces.v1.ApiKeyConfig value) { + if (apiKeyConfigBuilder_ == null) { + if (authConfigCase_ == 1 + && authConfig_ != com.google.cloud.ces.v1.ApiKeyConfig.getDefaultInstance()) { + authConfig_ = + com.google.cloud.ces.v1.ApiKeyConfig.newBuilder( + (com.google.cloud.ces.v1.ApiKeyConfig) authConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + authConfig_ = value; + } + onChanged(); + } else { + if (authConfigCase_ == 1) { + apiKeyConfigBuilder_.mergeFrom(value); + } else { + apiKeyConfigBuilder_.setMessage(value); + } + } + authConfigCase_ = 1; + return this; + } + + /** + * + * + *
      +     * Optional. Config for API key auth.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiKeyConfig api_key_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApiKeyConfig() { + if (apiKeyConfigBuilder_ == null) { + if (authConfigCase_ == 1) { + authConfigCase_ = 0; + authConfig_ = null; + onChanged(); + } + } else { + if (authConfigCase_ == 1) { + authConfigCase_ = 0; + authConfig_ = null; + } + apiKeyConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Config for API key auth.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiKeyConfig api_key_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ApiKeyConfig.Builder getApiKeyConfigBuilder() { + return internalGetApiKeyConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Config for API key auth.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiKeyConfig api_key_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ApiKeyConfigOrBuilder getApiKeyConfigOrBuilder() { + if ((authConfigCase_ == 1) && (apiKeyConfigBuilder_ != null)) { + return apiKeyConfigBuilder_.getMessageOrBuilder(); + } else { + if (authConfigCase_ == 1) { + return (com.google.cloud.ces.v1.ApiKeyConfig) authConfig_; + } + return com.google.cloud.ces.v1.ApiKeyConfig.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Config for API key auth.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiKeyConfig api_key_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ApiKeyConfig, + com.google.cloud.ces.v1.ApiKeyConfig.Builder, + com.google.cloud.ces.v1.ApiKeyConfigOrBuilder> + internalGetApiKeyConfigFieldBuilder() { + if (apiKeyConfigBuilder_ == null) { + if (!(authConfigCase_ == 1)) { + authConfig_ = com.google.cloud.ces.v1.ApiKeyConfig.getDefaultInstance(); + } + apiKeyConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ApiKeyConfig, + com.google.cloud.ces.v1.ApiKeyConfig.Builder, + com.google.cloud.ces.v1.ApiKeyConfigOrBuilder>( + (com.google.cloud.ces.v1.ApiKeyConfig) authConfig_, + getParentForChildren(), + isClean()); + authConfig_ = null; + } + authConfigCase_ = 1; + onChanged(); + return apiKeyConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.OAuthConfig, + com.google.cloud.ces.v1.OAuthConfig.Builder, + com.google.cloud.ces.v1.OAuthConfigOrBuilder> + oauthConfigBuilder_; + + /** + * + * + *
      +     * Optional. Config for OAuth.
      +     * 
      + * + * + * .google.cloud.ces.v1.OAuthConfig oauth_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the oauthConfig field is set. + */ + @java.lang.Override + public boolean hasOauthConfig() { + return authConfigCase_ == 2; + } + + /** + * + * + *
      +     * Optional. Config for OAuth.
      +     * 
      + * + * + * .google.cloud.ces.v1.OAuthConfig oauth_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The oauthConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.OAuthConfig getOauthConfig() { + if (oauthConfigBuilder_ == null) { + if (authConfigCase_ == 2) { + return (com.google.cloud.ces.v1.OAuthConfig) authConfig_; + } + return com.google.cloud.ces.v1.OAuthConfig.getDefaultInstance(); + } else { + if (authConfigCase_ == 2) { + return oauthConfigBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.OAuthConfig.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Config for OAuth.
      +     * 
      + * + * + * .google.cloud.ces.v1.OAuthConfig oauth_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOauthConfig(com.google.cloud.ces.v1.OAuthConfig value) { + if (oauthConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authConfig_ = value; + onChanged(); + } else { + oauthConfigBuilder_.setMessage(value); + } + authConfigCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Optional. Config for OAuth.
      +     * 
      + * + * + * .google.cloud.ces.v1.OAuthConfig oauth_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOauthConfig(com.google.cloud.ces.v1.OAuthConfig.Builder builderForValue) { + if (oauthConfigBuilder_ == null) { + authConfig_ = builderForValue.build(); + onChanged(); + } else { + oauthConfigBuilder_.setMessage(builderForValue.build()); + } + authConfigCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Optional. Config for OAuth.
      +     * 
      + * + * + * .google.cloud.ces.v1.OAuthConfig oauth_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeOauthConfig(com.google.cloud.ces.v1.OAuthConfig value) { + if (oauthConfigBuilder_ == null) { + if (authConfigCase_ == 2 + && authConfig_ != com.google.cloud.ces.v1.OAuthConfig.getDefaultInstance()) { + authConfig_ = + com.google.cloud.ces.v1.OAuthConfig.newBuilder( + (com.google.cloud.ces.v1.OAuthConfig) authConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + authConfig_ = value; + } + onChanged(); + } else { + if (authConfigCase_ == 2) { + oauthConfigBuilder_.mergeFrom(value); + } else { + oauthConfigBuilder_.setMessage(value); + } + } + authConfigCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Optional. Config for OAuth.
      +     * 
      + * + * + * .google.cloud.ces.v1.OAuthConfig oauth_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOauthConfig() { + if (oauthConfigBuilder_ == null) { + if (authConfigCase_ == 2) { + authConfigCase_ = 0; + authConfig_ = null; + onChanged(); + } + } else { + if (authConfigCase_ == 2) { + authConfigCase_ = 0; + authConfig_ = null; + } + oauthConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Config for OAuth.
      +     * 
      + * + * + * .google.cloud.ces.v1.OAuthConfig oauth_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.OAuthConfig.Builder getOauthConfigBuilder() { + return internalGetOauthConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Config for OAuth.
      +     * 
      + * + * + * .google.cloud.ces.v1.OAuthConfig oauth_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.OAuthConfigOrBuilder getOauthConfigOrBuilder() { + if ((authConfigCase_ == 2) && (oauthConfigBuilder_ != null)) { + return oauthConfigBuilder_.getMessageOrBuilder(); + } else { + if (authConfigCase_ == 2) { + return (com.google.cloud.ces.v1.OAuthConfig) authConfig_; + } + return com.google.cloud.ces.v1.OAuthConfig.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Config for OAuth.
      +     * 
      + * + * + * .google.cloud.ces.v1.OAuthConfig oauth_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.OAuthConfig, + com.google.cloud.ces.v1.OAuthConfig.Builder, + com.google.cloud.ces.v1.OAuthConfigOrBuilder> + internalGetOauthConfigFieldBuilder() { + if (oauthConfigBuilder_ == null) { + if (!(authConfigCase_ == 2)) { + authConfig_ = com.google.cloud.ces.v1.OAuthConfig.getDefaultInstance(); + } + oauthConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.OAuthConfig, + com.google.cloud.ces.v1.OAuthConfig.Builder, + com.google.cloud.ces.v1.OAuthConfigOrBuilder>( + (com.google.cloud.ces.v1.OAuthConfig) authConfig_, + getParentForChildren(), + isClean()); + authConfig_ = null; + } + authConfigCase_ = 2; + onChanged(); + return oauthConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig, + com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig.Builder, + com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfigOrBuilder> + serviceAgentIdTokenAuthConfigBuilder_; + + /** + * + * + *
      +     * Optional. Config for ID token auth generated from CES service agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig service_agent_id_token_auth_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceAgentIdTokenAuthConfig field is set. + */ + @java.lang.Override + public boolean hasServiceAgentIdTokenAuthConfig() { + return authConfigCase_ == 3; + } + + /** + * + * + *
      +     * Optional. Config for ID token auth generated from CES service agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig service_agent_id_token_auth_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceAgentIdTokenAuthConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig + getServiceAgentIdTokenAuthConfig() { + if (serviceAgentIdTokenAuthConfigBuilder_ == null) { + if (authConfigCase_ == 3) { + return (com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig) authConfig_; + } + return com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig.getDefaultInstance(); + } else { + if (authConfigCase_ == 3) { + return serviceAgentIdTokenAuthConfigBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Config for ID token auth generated from CES service agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig service_agent_id_token_auth_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setServiceAgentIdTokenAuthConfig( + com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig value) { + if (serviceAgentIdTokenAuthConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authConfig_ = value; + onChanged(); + } else { + serviceAgentIdTokenAuthConfigBuilder_.setMessage(value); + } + authConfigCase_ = 3; + return this; + } + + /** + * + * + *
      +     * Optional. Config for ID token auth generated from CES service agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig service_agent_id_token_auth_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setServiceAgentIdTokenAuthConfig( + com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig.Builder builderForValue) { + if (serviceAgentIdTokenAuthConfigBuilder_ == null) { + authConfig_ = builderForValue.build(); + onChanged(); + } else { + serviceAgentIdTokenAuthConfigBuilder_.setMessage(builderForValue.build()); + } + authConfigCase_ = 3; + return this; + } + + /** + * + * + *
      +     * Optional. Config for ID token auth generated from CES service agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig service_agent_id_token_auth_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeServiceAgentIdTokenAuthConfig( + com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig value) { + if (serviceAgentIdTokenAuthConfigBuilder_ == null) { + if (authConfigCase_ == 3 + && authConfig_ + != com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig.getDefaultInstance()) { + authConfig_ = + com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig.newBuilder( + (com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig) authConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + authConfig_ = value; + } + onChanged(); + } else { + if (authConfigCase_ == 3) { + serviceAgentIdTokenAuthConfigBuilder_.mergeFrom(value); + } else { + serviceAgentIdTokenAuthConfigBuilder_.setMessage(value); + } + } + authConfigCase_ = 3; + return this; + } + + /** + * + * + *
      +     * Optional. Config for ID token auth generated from CES service agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig service_agent_id_token_auth_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearServiceAgentIdTokenAuthConfig() { + if (serviceAgentIdTokenAuthConfigBuilder_ == null) { + if (authConfigCase_ == 3) { + authConfigCase_ = 0; + authConfig_ = null; + onChanged(); + } + } else { + if (authConfigCase_ == 3) { + authConfigCase_ = 0; + authConfig_ = null; + } + serviceAgentIdTokenAuthConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Config for ID token auth generated from CES service agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig service_agent_id_token_auth_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig.Builder + getServiceAgentIdTokenAuthConfigBuilder() { + return internalGetServiceAgentIdTokenAuthConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Config for ID token auth generated from CES service agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig service_agent_id_token_auth_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfigOrBuilder + getServiceAgentIdTokenAuthConfigOrBuilder() { + if ((authConfigCase_ == 3) && (serviceAgentIdTokenAuthConfigBuilder_ != null)) { + return serviceAgentIdTokenAuthConfigBuilder_.getMessageOrBuilder(); + } else { + if (authConfigCase_ == 3) { + return (com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig) authConfig_; + } + return com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Config for ID token auth generated from CES service agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig service_agent_id_token_auth_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig, + com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig.Builder, + com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfigOrBuilder> + internalGetServiceAgentIdTokenAuthConfigFieldBuilder() { + if (serviceAgentIdTokenAuthConfigBuilder_ == null) { + if (!(authConfigCase_ == 3)) { + authConfig_ = com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig.getDefaultInstance(); + } + serviceAgentIdTokenAuthConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig, + com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig.Builder, + com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfigOrBuilder>( + (com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig) authConfig_, + getParentForChildren(), + isClean()); + authConfig_ = null; + } + authConfigCase_ = 3; + onChanged(); + return serviceAgentIdTokenAuthConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ServiceAccountAuthConfig, + com.google.cloud.ces.v1.ServiceAccountAuthConfig.Builder, + com.google.cloud.ces.v1.ServiceAccountAuthConfigOrBuilder> + serviceAccountAuthConfigBuilder_; + + /** + * + * + *
      +     * Optional. Config for service account authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceAccountAuthConfig service_account_auth_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceAccountAuthConfig field is set. + */ + @java.lang.Override + public boolean hasServiceAccountAuthConfig() { + return authConfigCase_ == 4; + } + + /** + * + * + *
      +     * Optional. Config for service account authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceAccountAuthConfig service_account_auth_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceAccountAuthConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ServiceAccountAuthConfig getServiceAccountAuthConfig() { + if (serviceAccountAuthConfigBuilder_ == null) { + if (authConfigCase_ == 4) { + return (com.google.cloud.ces.v1.ServiceAccountAuthConfig) authConfig_; + } + return com.google.cloud.ces.v1.ServiceAccountAuthConfig.getDefaultInstance(); + } else { + if (authConfigCase_ == 4) { + return serviceAccountAuthConfigBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.ServiceAccountAuthConfig.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Config for service account authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceAccountAuthConfig service_account_auth_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setServiceAccountAuthConfig( + com.google.cloud.ces.v1.ServiceAccountAuthConfig value) { + if (serviceAccountAuthConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authConfig_ = value; + onChanged(); + } else { + serviceAccountAuthConfigBuilder_.setMessage(value); + } + authConfigCase_ = 4; + return this; + } + + /** + * + * + *
      +     * Optional. Config for service account authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceAccountAuthConfig service_account_auth_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setServiceAccountAuthConfig( + com.google.cloud.ces.v1.ServiceAccountAuthConfig.Builder builderForValue) { + if (serviceAccountAuthConfigBuilder_ == null) { + authConfig_ = builderForValue.build(); + onChanged(); + } else { + serviceAccountAuthConfigBuilder_.setMessage(builderForValue.build()); + } + authConfigCase_ = 4; + return this; + } + + /** + * + * + *
      +     * Optional. Config for service account authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceAccountAuthConfig service_account_auth_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeServiceAccountAuthConfig( + com.google.cloud.ces.v1.ServiceAccountAuthConfig value) { + if (serviceAccountAuthConfigBuilder_ == null) { + if (authConfigCase_ == 4 + && authConfig_ + != com.google.cloud.ces.v1.ServiceAccountAuthConfig.getDefaultInstance()) { + authConfig_ = + com.google.cloud.ces.v1.ServiceAccountAuthConfig.newBuilder( + (com.google.cloud.ces.v1.ServiceAccountAuthConfig) authConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + authConfig_ = value; + } + onChanged(); + } else { + if (authConfigCase_ == 4) { + serviceAccountAuthConfigBuilder_.mergeFrom(value); + } else { + serviceAccountAuthConfigBuilder_.setMessage(value); + } + } + authConfigCase_ = 4; + return this; + } + + /** + * + * + *
      +     * Optional. Config for service account authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceAccountAuthConfig service_account_auth_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearServiceAccountAuthConfig() { + if (serviceAccountAuthConfigBuilder_ == null) { + if (authConfigCase_ == 4) { + authConfigCase_ = 0; + authConfig_ = null; + onChanged(); + } + } else { + if (authConfigCase_ == 4) { + authConfigCase_ = 0; + authConfig_ = null; + } + serviceAccountAuthConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Config for service account authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceAccountAuthConfig service_account_auth_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ServiceAccountAuthConfig.Builder + getServiceAccountAuthConfigBuilder() { + return internalGetServiceAccountAuthConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Config for service account authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceAccountAuthConfig service_account_auth_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ServiceAccountAuthConfigOrBuilder + getServiceAccountAuthConfigOrBuilder() { + if ((authConfigCase_ == 4) && (serviceAccountAuthConfigBuilder_ != null)) { + return serviceAccountAuthConfigBuilder_.getMessageOrBuilder(); + } else { + if (authConfigCase_ == 4) { + return (com.google.cloud.ces.v1.ServiceAccountAuthConfig) authConfig_; + } + return com.google.cloud.ces.v1.ServiceAccountAuthConfig.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Config for service account authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceAccountAuthConfig service_account_auth_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ServiceAccountAuthConfig, + com.google.cloud.ces.v1.ServiceAccountAuthConfig.Builder, + com.google.cloud.ces.v1.ServiceAccountAuthConfigOrBuilder> + internalGetServiceAccountAuthConfigFieldBuilder() { + if (serviceAccountAuthConfigBuilder_ == null) { + if (!(authConfigCase_ == 4)) { + authConfig_ = com.google.cloud.ces.v1.ServiceAccountAuthConfig.getDefaultInstance(); + } + serviceAccountAuthConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ServiceAccountAuthConfig, + com.google.cloud.ces.v1.ServiceAccountAuthConfig.Builder, + com.google.cloud.ces.v1.ServiceAccountAuthConfigOrBuilder>( + (com.google.cloud.ces.v1.ServiceAccountAuthConfig) authConfig_, + getParentForChildren(), + isClean()); + authConfig_ = null; + } + authConfigCase_ = 4; + onChanged(); + return serviceAccountAuthConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.BearerTokenConfig, + com.google.cloud.ces.v1.BearerTokenConfig.Builder, + com.google.cloud.ces.v1.BearerTokenConfigOrBuilder> + bearerTokenConfigBuilder_; + + /** + * + * + *
      +     * Optional. Config for bearer token auth.
      +     * 
      + * + * + * .google.cloud.ces.v1.BearerTokenConfig bearer_token_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bearerTokenConfig field is set. + */ + @java.lang.Override + public boolean hasBearerTokenConfig() { + return authConfigCase_ == 5; + } + + /** + * + * + *
      +     * Optional. Config for bearer token auth.
      +     * 
      + * + * + * .google.cloud.ces.v1.BearerTokenConfig bearer_token_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bearerTokenConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.BearerTokenConfig getBearerTokenConfig() { + if (bearerTokenConfigBuilder_ == null) { + if (authConfigCase_ == 5) { + return (com.google.cloud.ces.v1.BearerTokenConfig) authConfig_; + } + return com.google.cloud.ces.v1.BearerTokenConfig.getDefaultInstance(); + } else { + if (authConfigCase_ == 5) { + return bearerTokenConfigBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.BearerTokenConfig.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Config for bearer token auth.
      +     * 
      + * + * + * .google.cloud.ces.v1.BearerTokenConfig bearer_token_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBearerTokenConfig(com.google.cloud.ces.v1.BearerTokenConfig value) { + if (bearerTokenConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authConfig_ = value; + onChanged(); + } else { + bearerTokenConfigBuilder_.setMessage(value); + } + authConfigCase_ = 5; + return this; + } + + /** + * + * + *
      +     * Optional. Config for bearer token auth.
      +     * 
      + * + * + * .google.cloud.ces.v1.BearerTokenConfig bearer_token_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBearerTokenConfig( + com.google.cloud.ces.v1.BearerTokenConfig.Builder builderForValue) { + if (bearerTokenConfigBuilder_ == null) { + authConfig_ = builderForValue.build(); + onChanged(); + } else { + bearerTokenConfigBuilder_.setMessage(builderForValue.build()); + } + authConfigCase_ = 5; + return this; + } + + /** + * + * + *
      +     * Optional. Config for bearer token auth.
      +     * 
      + * + * + * .google.cloud.ces.v1.BearerTokenConfig bearer_token_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeBearerTokenConfig(com.google.cloud.ces.v1.BearerTokenConfig value) { + if (bearerTokenConfigBuilder_ == null) { + if (authConfigCase_ == 5 + && authConfig_ != com.google.cloud.ces.v1.BearerTokenConfig.getDefaultInstance()) { + authConfig_ = + com.google.cloud.ces.v1.BearerTokenConfig.newBuilder( + (com.google.cloud.ces.v1.BearerTokenConfig) authConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + authConfig_ = value; + } + onChanged(); + } else { + if (authConfigCase_ == 5) { + bearerTokenConfigBuilder_.mergeFrom(value); + } else { + bearerTokenConfigBuilder_.setMessage(value); + } + } + authConfigCase_ = 5; + return this; + } + + /** + * + * + *
      +     * Optional. Config for bearer token auth.
      +     * 
      + * + * + * .google.cloud.ces.v1.BearerTokenConfig bearer_token_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearBearerTokenConfig() { + if (bearerTokenConfigBuilder_ == null) { + if (authConfigCase_ == 5) { + authConfigCase_ = 0; + authConfig_ = null; + onChanged(); + } + } else { + if (authConfigCase_ == 5) { + authConfigCase_ = 0; + authConfig_ = null; + } + bearerTokenConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Config for bearer token auth.
      +     * 
      + * + * + * .google.cloud.ces.v1.BearerTokenConfig bearer_token_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.BearerTokenConfig.Builder getBearerTokenConfigBuilder() { + return internalGetBearerTokenConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Config for bearer token auth.
      +     * 
      + * + * + * .google.cloud.ces.v1.BearerTokenConfig bearer_token_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.BearerTokenConfigOrBuilder getBearerTokenConfigOrBuilder() { + if ((authConfigCase_ == 5) && (bearerTokenConfigBuilder_ != null)) { + return bearerTokenConfigBuilder_.getMessageOrBuilder(); + } else { + if (authConfigCase_ == 5) { + return (com.google.cloud.ces.v1.BearerTokenConfig) authConfig_; + } + return com.google.cloud.ces.v1.BearerTokenConfig.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Config for bearer token auth.
      +     * 
      + * + * + * .google.cloud.ces.v1.BearerTokenConfig bearer_token_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.BearerTokenConfig, + com.google.cloud.ces.v1.BearerTokenConfig.Builder, + com.google.cloud.ces.v1.BearerTokenConfigOrBuilder> + internalGetBearerTokenConfigFieldBuilder() { + if (bearerTokenConfigBuilder_ == null) { + if (!(authConfigCase_ == 5)) { + authConfig_ = com.google.cloud.ces.v1.BearerTokenConfig.getDefaultInstance(); + } + bearerTokenConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.BearerTokenConfig, + com.google.cloud.ces.v1.BearerTokenConfig.Builder, + com.google.cloud.ces.v1.BearerTokenConfigOrBuilder>( + (com.google.cloud.ces.v1.BearerTokenConfig) authConfig_, + getParentForChildren(), + isClean()); + authConfig_ = null; + } + authConfigCase_ = 5; + onChanged(); + return bearerTokenConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ApiAuthentication) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ApiAuthentication) + private static final com.google.cloud.ces.v1.ApiAuthentication DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ApiAuthentication(); + } + + public static com.google.cloud.ces.v1.ApiAuthentication getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApiAuthentication parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ApiAuthentication getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ApiAuthenticationOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ApiAuthenticationOrBuilder.java new file mode 100644 index 000000000000..e02e57314059 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ApiAuthenticationOrBuilder.java @@ -0,0 +1,246 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/auth.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ApiAuthenticationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ApiAuthentication) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. Config for API key auth.
      +   * 
      + * + * + * .google.cloud.ces.v1.ApiKeyConfig api_key_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiKeyConfig field is set. + */ + boolean hasApiKeyConfig(); + + /** + * + * + *
      +   * Optional. Config for API key auth.
      +   * 
      + * + * + * .google.cloud.ces.v1.ApiKeyConfig api_key_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiKeyConfig. + */ + com.google.cloud.ces.v1.ApiKeyConfig getApiKeyConfig(); + + /** + * + * + *
      +   * Optional. Config for API key auth.
      +   * 
      + * + * + * .google.cloud.ces.v1.ApiKeyConfig api_key_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ApiKeyConfigOrBuilder getApiKeyConfigOrBuilder(); + + /** + * + * + *
      +   * Optional. Config for OAuth.
      +   * 
      + * + * + * .google.cloud.ces.v1.OAuthConfig oauth_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the oauthConfig field is set. + */ + boolean hasOauthConfig(); + + /** + * + * + *
      +   * Optional. Config for OAuth.
      +   * 
      + * + * + * .google.cloud.ces.v1.OAuthConfig oauth_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The oauthConfig. + */ + com.google.cloud.ces.v1.OAuthConfig getOauthConfig(); + + /** + * + * + *
      +   * Optional. Config for OAuth.
      +   * 
      + * + * + * .google.cloud.ces.v1.OAuthConfig oauth_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.OAuthConfigOrBuilder getOauthConfigOrBuilder(); + + /** + * + * + *
      +   * Optional. Config for ID token auth generated from CES service agent.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig service_agent_id_token_auth_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceAgentIdTokenAuthConfig field is set. + */ + boolean hasServiceAgentIdTokenAuthConfig(); + + /** + * + * + *
      +   * Optional. Config for ID token auth generated from CES service agent.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig service_agent_id_token_auth_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceAgentIdTokenAuthConfig. + */ + com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig getServiceAgentIdTokenAuthConfig(); + + /** + * + * + *
      +   * Optional. Config for ID token auth generated from CES service agent.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig service_agent_id_token_auth_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfigOrBuilder + getServiceAgentIdTokenAuthConfigOrBuilder(); + + /** + * + * + *
      +   * Optional. Config for service account authentication.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceAccountAuthConfig service_account_auth_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceAccountAuthConfig field is set. + */ + boolean hasServiceAccountAuthConfig(); + + /** + * + * + *
      +   * Optional. Config for service account authentication.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceAccountAuthConfig service_account_auth_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceAccountAuthConfig. + */ + com.google.cloud.ces.v1.ServiceAccountAuthConfig getServiceAccountAuthConfig(); + + /** + * + * + *
      +   * Optional. Config for service account authentication.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceAccountAuthConfig service_account_auth_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ServiceAccountAuthConfigOrBuilder getServiceAccountAuthConfigOrBuilder(); + + /** + * + * + *
      +   * Optional. Config for bearer token auth.
      +   * 
      + * + * + * .google.cloud.ces.v1.BearerTokenConfig bearer_token_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bearerTokenConfig field is set. + */ + boolean hasBearerTokenConfig(); + + /** + * + * + *
      +   * Optional. Config for bearer token auth.
      +   * 
      + * + * + * .google.cloud.ces.v1.BearerTokenConfig bearer_token_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bearerTokenConfig. + */ + com.google.cloud.ces.v1.BearerTokenConfig getBearerTokenConfig(); + + /** + * + * + *
      +   * Optional. Config for bearer token auth.
      +   * 
      + * + * + * .google.cloud.ces.v1.BearerTokenConfig bearer_token_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.BearerTokenConfigOrBuilder getBearerTokenConfigOrBuilder(); + + com.google.cloud.ces.v1.ApiAuthentication.AuthConfigCase getAuthConfigCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ApiKeyConfig.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ApiKeyConfig.java new file mode 100644 index 000000000000..3ac62675a8d6 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ApiKeyConfig.java @@ -0,0 +1,1192 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/auth.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Configurations for authentication with API key.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ApiKeyConfig} + */ +@com.google.protobuf.Generated +public final class ApiKeyConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ApiKeyConfig) + ApiKeyConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ApiKeyConfig"); + } + + // Use ApiKeyConfig.newBuilder() to construct. + private ApiKeyConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ApiKeyConfig() { + keyName_ = ""; + apiKeySecretVersion_ = ""; + requestLocation_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_ApiKeyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_ApiKeyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ApiKeyConfig.class, + com.google.cloud.ces.v1.ApiKeyConfig.Builder.class); + } + + /** + * + * + *
      +   * The location of the API key in the request.
      +   * 
      + * + * Protobuf enum {@code google.cloud.ces.v1.ApiKeyConfig.RequestLocation} + */ + public enum RequestLocation implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Unspecified. This value should not be used.
      +     * 
      + * + * REQUEST_LOCATION_UNSPECIFIED = 0; + */ + REQUEST_LOCATION_UNSPECIFIED(0), + /** + * + * + *
      +     * Represents the key in http header.
      +     * 
      + * + * HEADER = 1; + */ + HEADER(1), + /** + * + * + *
      +     * Represents the key in query string.
      +     * 
      + * + * QUERY_STRING = 2; + */ + QUERY_STRING(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RequestLocation"); + } + + /** + * + * + *
      +     * Unspecified. This value should not be used.
      +     * 
      + * + * REQUEST_LOCATION_UNSPECIFIED = 0; + */ + public static final int REQUEST_LOCATION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * Represents the key in http header.
      +     * 
      + * + * HEADER = 1; + */ + public static final int HEADER_VALUE = 1; + + /** + * + * + *
      +     * Represents the key in query string.
      +     * 
      + * + * QUERY_STRING = 2; + */ + public static final int QUERY_STRING_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RequestLocation valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static RequestLocation forNumber(int value) { + switch (value) { + case 0: + return REQUEST_LOCATION_UNSPECIFIED; + case 1: + return HEADER; + case 2: + return QUERY_STRING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RequestLocation findValueByNumber(int number) { + return RequestLocation.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.ApiKeyConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final RequestLocation[] VALUES = values(); + + public static RequestLocation valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private RequestLocation(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.ApiKeyConfig.RequestLocation) + } + + public static final int KEY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object keyName_ = ""; + + /** + * + * + *
      +   * Required. The parameter name or the header name of the API key.
      +   * E.g., If the API request is "https://example.com/act?X-Api-Key=<API
      +   * KEY>", "X-Api-Key" would be the parameter name.
      +   * 
      + * + * string key_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The keyName. + */ + @java.lang.Override + public java.lang.String getKeyName() { + java.lang.Object ref = keyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + keyName_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The parameter name or the header name of the API key.
      +   * E.g., If the API request is "https://example.com/act?X-Api-Key=<API
      +   * KEY>", "X-Api-Key" would be the parameter name.
      +   * 
      + * + * string key_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for keyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyNameBytes() { + java.lang.Object ref = keyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + keyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int API_KEY_SECRET_VERSION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object apiKeySecretVersion_ = ""; + + /** + * + * + *
      +   * Required. The name of the SecretManager secret version resource storing the
      +   * API key. Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +   *
      +   * Note: You should grant `roles/secretmanager.secretAccessor` role to the CES
      +   * service agent
      +   * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +   * 
      + * + * + * string api_key_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The apiKeySecretVersion. + */ + @java.lang.Override + public java.lang.String getApiKeySecretVersion() { + java.lang.Object ref = apiKeySecretVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiKeySecretVersion_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The name of the SecretManager secret version resource storing the
      +   * API key. Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +   *
      +   * Note: You should grant `roles/secretmanager.secretAccessor` role to the CES
      +   * service agent
      +   * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +   * 
      + * + * + * string api_key_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for apiKeySecretVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApiKeySecretVersionBytes() { + java.lang.Object ref = apiKeySecretVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiKeySecretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_LOCATION_FIELD_NUMBER = 3; + private int requestLocation_ = 0; + + /** + * + * + *
      +   * Required. Key location in the request.
      +   * 
      + * + * + * .google.cloud.ces.v1.ApiKeyConfig.RequestLocation request_location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for requestLocation. + */ + @java.lang.Override + public int getRequestLocationValue() { + return requestLocation_; + } + + /** + * + * + *
      +   * Required. Key location in the request.
      +   * 
      + * + * + * .google.cloud.ces.v1.ApiKeyConfig.RequestLocation request_location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The requestLocation. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ApiKeyConfig.RequestLocation getRequestLocation() { + com.google.cloud.ces.v1.ApiKeyConfig.RequestLocation result = + com.google.cloud.ces.v1.ApiKeyConfig.RequestLocation.forNumber(requestLocation_); + return result == null + ? com.google.cloud.ces.v1.ApiKeyConfig.RequestLocation.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(keyName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, keyName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(apiKeySecretVersion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, apiKeySecretVersion_); + } + if (requestLocation_ + != com.google.cloud.ces.v1.ApiKeyConfig.RequestLocation.REQUEST_LOCATION_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, requestLocation_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(keyName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, keyName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(apiKeySecretVersion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, apiKeySecretVersion_); + } + if (requestLocation_ + != com.google.cloud.ces.v1.ApiKeyConfig.RequestLocation.REQUEST_LOCATION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, requestLocation_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ApiKeyConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ApiKeyConfig other = (com.google.cloud.ces.v1.ApiKeyConfig) obj; + + if (!getKeyName().equals(other.getKeyName())) return false; + if (!getApiKeySecretVersion().equals(other.getApiKeySecretVersion())) return false; + if (requestLocation_ != other.requestLocation_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKeyName().hashCode(); + hash = (37 * hash) + API_KEY_SECRET_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getApiKeySecretVersion().hashCode(); + hash = (37 * hash) + REQUEST_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + requestLocation_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ApiKeyConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ApiKeyConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ApiKeyConfig parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ApiKeyConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ApiKeyConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ApiKeyConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ApiKeyConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ApiKeyConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ApiKeyConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ApiKeyConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ApiKeyConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ApiKeyConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ApiKeyConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Configurations for authentication with API key.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ApiKeyConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ApiKeyConfig) + com.google.cloud.ces.v1.ApiKeyConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_ApiKeyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_ApiKeyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ApiKeyConfig.class, + com.google.cloud.ces.v1.ApiKeyConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ApiKeyConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + keyName_ = ""; + apiKeySecretVersion_ = ""; + requestLocation_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_ApiKeyConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ApiKeyConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ApiKeyConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ApiKeyConfig build() { + com.google.cloud.ces.v1.ApiKeyConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ApiKeyConfig buildPartial() { + com.google.cloud.ces.v1.ApiKeyConfig result = new com.google.cloud.ces.v1.ApiKeyConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ApiKeyConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.keyName_ = keyName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.apiKeySecretVersion_ = apiKeySecretVersion_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestLocation_ = requestLocation_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ApiKeyConfig) { + return mergeFrom((com.google.cloud.ces.v1.ApiKeyConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ApiKeyConfig other) { + if (other == com.google.cloud.ces.v1.ApiKeyConfig.getDefaultInstance()) return this; + if (!other.getKeyName().isEmpty()) { + keyName_ = other.keyName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getApiKeySecretVersion().isEmpty()) { + apiKeySecretVersion_ = other.apiKeySecretVersion_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.requestLocation_ != 0) { + setRequestLocationValue(other.getRequestLocationValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + keyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + apiKeySecretVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + requestLocation_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object keyName_ = ""; + + /** + * + * + *
      +     * Required. The parameter name or the header name of the API key.
      +     * E.g., If the API request is "https://example.com/act?X-Api-Key=<API
      +     * KEY>", "X-Api-Key" would be the parameter name.
      +     * 
      + * + * string key_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The keyName. + */ + public java.lang.String getKeyName() { + java.lang.Object ref = keyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + keyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The parameter name or the header name of the API key.
      +     * E.g., If the API request is "https://example.com/act?X-Api-Key=<API
      +     * KEY>", "X-Api-Key" would be the parameter name.
      +     * 
      + * + * string key_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for keyName. + */ + public com.google.protobuf.ByteString getKeyNameBytes() { + java.lang.Object ref = keyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + keyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The parameter name or the header name of the API key.
      +     * E.g., If the API request is "https://example.com/act?X-Api-Key=<API
      +     * KEY>", "X-Api-Key" would be the parameter name.
      +     * 
      + * + * string key_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The keyName to set. + * @return This builder for chaining. + */ + public Builder setKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + keyName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The parameter name or the header name of the API key.
      +     * E.g., If the API request is "https://example.com/act?X-Api-Key=<API
      +     * KEY>", "X-Api-Key" would be the parameter name.
      +     * 
      + * + * string key_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearKeyName() { + keyName_ = getDefaultInstance().getKeyName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The parameter name or the header name of the API key.
      +     * E.g., If the API request is "https://example.com/act?X-Api-Key=<API
      +     * KEY>", "X-Api-Key" would be the parameter name.
      +     * 
      + * + * string key_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for keyName to set. + * @return This builder for chaining. + */ + public Builder setKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + keyName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object apiKeySecretVersion_ = ""; + + /** + * + * + *
      +     * Required. The name of the SecretManager secret version resource storing the
      +     * API key. Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +     *
      +     * Note: You should grant `roles/secretmanager.secretAccessor` role to the CES
      +     * service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +     * 
      + * + * + * string api_key_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The apiKeySecretVersion. + */ + public java.lang.String getApiKeySecretVersion() { + java.lang.Object ref = apiKeySecretVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiKeySecretVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The name of the SecretManager secret version resource storing the
      +     * API key. Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +     *
      +     * Note: You should grant `roles/secretmanager.secretAccessor` role to the CES
      +     * service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +     * 
      + * + * + * string api_key_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for apiKeySecretVersion. + */ + public com.google.protobuf.ByteString getApiKeySecretVersionBytes() { + java.lang.Object ref = apiKeySecretVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiKeySecretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The name of the SecretManager secret version resource storing the
      +     * API key. Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +     *
      +     * Note: You should grant `roles/secretmanager.secretAccessor` role to the CES
      +     * service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +     * 
      + * + * + * string api_key_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The apiKeySecretVersion to set. + * @return This builder for chaining. + */ + public Builder setApiKeySecretVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + apiKeySecretVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The name of the SecretManager secret version resource storing the
      +     * API key. Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +     *
      +     * Note: You should grant `roles/secretmanager.secretAccessor` role to the CES
      +     * service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +     * 
      + * + * + * string api_key_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearApiKeySecretVersion() { + apiKeySecretVersion_ = getDefaultInstance().getApiKeySecretVersion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The name of the SecretManager secret version resource storing the
      +     * API key. Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +     *
      +     * Note: You should grant `roles/secretmanager.secretAccessor` role to the CES
      +     * service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +     * 
      + * + * + * string api_key_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for apiKeySecretVersion to set. + * @return This builder for chaining. + */ + public Builder setApiKeySecretVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiKeySecretVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int requestLocation_ = 0; + + /** + * + * + *
      +     * Required. Key location in the request.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiKeyConfig.RequestLocation request_location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for requestLocation. + */ + @java.lang.Override + public int getRequestLocationValue() { + return requestLocation_; + } + + /** + * + * + *
      +     * Required. Key location in the request.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiKeyConfig.RequestLocation request_location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for requestLocation to set. + * @return This builder for chaining. + */ + public Builder setRequestLocationValue(int value) { + requestLocation_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. Key location in the request.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiKeyConfig.RequestLocation request_location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The requestLocation. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ApiKeyConfig.RequestLocation getRequestLocation() { + com.google.cloud.ces.v1.ApiKeyConfig.RequestLocation result = + com.google.cloud.ces.v1.ApiKeyConfig.RequestLocation.forNumber(requestLocation_); + return result == null + ? com.google.cloud.ces.v1.ApiKeyConfig.RequestLocation.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * Required. Key location in the request.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiKeyConfig.RequestLocation request_location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The requestLocation to set. + * @return This builder for chaining. + */ + public Builder setRequestLocation(com.google.cloud.ces.v1.ApiKeyConfig.RequestLocation value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + requestLocation_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. Key location in the request.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiKeyConfig.RequestLocation request_location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearRequestLocation() { + bitField0_ = (bitField0_ & ~0x00000004); + requestLocation_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ApiKeyConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ApiKeyConfig) + private static final com.google.cloud.ces.v1.ApiKeyConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ApiKeyConfig(); + } + + public static com.google.cloud.ces.v1.ApiKeyConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApiKeyConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ApiKeyConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ApiKeyConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ApiKeyConfigOrBuilder.java new file mode 100644 index 000000000000..cbcd6f427f44 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ApiKeyConfigOrBuilder.java @@ -0,0 +1,128 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/auth.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ApiKeyConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ApiKeyConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The parameter name or the header name of the API key.
      +   * E.g., If the API request is "https://example.com/act?X-Api-Key=<API
      +   * KEY>", "X-Api-Key" would be the parameter name.
      +   * 
      + * + * string key_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The keyName. + */ + java.lang.String getKeyName(); + + /** + * + * + *
      +   * Required. The parameter name or the header name of the API key.
      +   * E.g., If the API request is "https://example.com/act?X-Api-Key=<API
      +   * KEY>", "X-Api-Key" would be the parameter name.
      +   * 
      + * + * string key_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for keyName. + */ + com.google.protobuf.ByteString getKeyNameBytes(); + + /** + * + * + *
      +   * Required. The name of the SecretManager secret version resource storing the
      +   * API key. Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +   *
      +   * Note: You should grant `roles/secretmanager.secretAccessor` role to the CES
      +   * service agent
      +   * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +   * 
      + * + * + * string api_key_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The apiKeySecretVersion. + */ + java.lang.String getApiKeySecretVersion(); + + /** + * + * + *
      +   * Required. The name of the SecretManager secret version resource storing the
      +   * API key. Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +   *
      +   * Note: You should grant `roles/secretmanager.secretAccessor` role to the CES
      +   * service agent
      +   * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +   * 
      + * + * + * string api_key_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for apiKeySecretVersion. + */ + com.google.protobuf.ByteString getApiKeySecretVersionBytes(); + + /** + * + * + *
      +   * Required. Key location in the request.
      +   * 
      + * + * + * .google.cloud.ces.v1.ApiKeyConfig.RequestLocation request_location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for requestLocation. + */ + int getRequestLocationValue(); + + /** + * + * + *
      +   * Required. Key location in the request.
      +   * 
      + * + * + * .google.cloud.ces.v1.ApiKeyConfig.RequestLocation request_location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The requestLocation. + */ + com.google.cloud.ces.v1.ApiKeyConfig.RequestLocation getRequestLocation(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/App.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/App.java new file mode 100644 index 000000000000..f2827ebabe53 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/App.java @@ -0,0 +1,8723 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * An app serves as a top-level container for a group of agents, including the
      + * root agent and its sub-agents, along with their associated configurations.
      + * These agents work together to achieve specific goals within the app's
      + * context.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.App} + */ +@com.google.protobuf.Generated +public final class App extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.App) + AppOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "App"); + } + + // Use App.newBuilder() to construct. + private App(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private App() { + name_ = ""; + displayName_ = ""; + description_ = ""; + rootAgent_ = ""; + toolExecutionMode_ = 0; + variableDeclarations_ = java.util.Collections.emptyList(); + predefinedVariableDeclarations_ = java.util.Collections.emptyList(); + globalInstruction_ = ""; + guardrails_ = com.google.protobuf.LazyStringArrayList.emptyList(); + etag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto.internal_static_google_cloud_ces_v1_App_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 11: + return internalGetMetadata(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_App_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.App.class, com.google.cloud.ces.v1.App.Builder.class); + } + + /** + * + * + *
      +   * Defines the tool execution behavior if there are **multiple** tools being
      +   * selected by the agent **at the same time**.
      +   * 
      + * + * Protobuf enum {@code google.cloud.ces.v1.App.ToolExecutionMode} + */ + public enum ToolExecutionMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Unspecified tool execution mode. Default to PARALLEL.
      +     * 
      + * + * TOOL_EXECUTION_MODE_UNSPECIFIED = 0; + */ + TOOL_EXECUTION_MODE_UNSPECIFIED(0), + /** + * + * + *
      +     * If there are multiple tools being selected, they will be executed in
      +     * parallel, with the same
      +     * [ToolContext](https://google.github.io/adk-docs/context/#the-different-types-of-context).
      +     * 
      + * + * PARALLEL = 1; + */ + PARALLEL(1), + /** + * + * + *
      +     * If there are multiple tools being selected, they will be executed
      +     * sequentially. The next tool will only be executed after the previous tool
      +     * completes and it can see updated
      +     * [ToolContext](https://google.github.io/adk-docs/context/#the-different-types-of-context)
      +     * from the previous tool.
      +     * 
      + * + * SEQUENTIAL = 2; + */ + SEQUENTIAL(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ToolExecutionMode"); + } + + /** + * + * + *
      +     * Unspecified tool execution mode. Default to PARALLEL.
      +     * 
      + * + * TOOL_EXECUTION_MODE_UNSPECIFIED = 0; + */ + public static final int TOOL_EXECUTION_MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * If there are multiple tools being selected, they will be executed in
      +     * parallel, with the same
      +     * [ToolContext](https://google.github.io/adk-docs/context/#the-different-types-of-context).
      +     * 
      + * + * PARALLEL = 1; + */ + public static final int PARALLEL_VALUE = 1; + + /** + * + * + *
      +     * If there are multiple tools being selected, they will be executed
      +     * sequentially. The next tool will only be executed after the previous tool
      +     * completes and it can see updated
      +     * [ToolContext](https://google.github.io/adk-docs/context/#the-different-types-of-context)
      +     * from the previous tool.
      +     * 
      + * + * SEQUENTIAL = 2; + */ + public static final int SEQUENTIAL_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ToolExecutionMode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ToolExecutionMode forNumber(int value) { + switch (value) { + case 0: + return TOOL_EXECUTION_MODE_UNSPECIFIED; + case 1: + return PARALLEL; + case 2: + return SEQUENTIAL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ToolExecutionMode findValueByNumber(int number) { + return ToolExecutionMode.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.App.getDescriptor().getEnumTypes().get(0); + } + + private static final ToolExecutionMode[] VALUES = values(); + + public static ToolExecutionMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ToolExecutionMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.App.ToolExecutionMode) + } + + public interface VariableDeclarationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.App.VariableDeclaration) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Required. The name of the variable. The name must start with a letter or
      +     * underscore and contain only letters, numbers, or underscores.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +     * Required. The name of the variable. The name must start with a letter or
      +     * underscore and contain only letters, numbers, or underscores.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +     * Required. The description of the variable.
      +     * 
      + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
      +     * Required. The description of the variable.
      +     * 
      + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
      +     * Required. The schema of the variable.
      +     * 
      + * + * .google.cloud.ces.v1.Schema schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the schema field is set. + */ + boolean hasSchema(); + + /** + * + * + *
      +     * Required. The schema of the variable.
      +     * 
      + * + * .google.cloud.ces.v1.Schema schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The schema. + */ + com.google.cloud.ces.v1.Schema getSchema(); + + /** + * + * + *
      +     * Required. The schema of the variable.
      +     * 
      + * + * .google.cloud.ces.v1.Schema schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.SchemaOrBuilder getSchemaOrBuilder(); + } + + /** + * + * + *
      +   * Defines the structure and metadata for a variable.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.App.VariableDeclaration} + */ + public static final class VariableDeclaration extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.App.VariableDeclaration) + VariableDeclarationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "VariableDeclaration"); + } + + // Use VariableDeclaration.newBuilder() to construct. + private VariableDeclaration(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private VariableDeclaration() { + name_ = ""; + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_App_VariableDeclaration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_App_VariableDeclaration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.App.VariableDeclaration.class, + com.google.cloud.ces.v1.App.VariableDeclaration.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Required. The name of the variable. The name must start with a letter or
      +     * underscore and contain only letters, numbers, or underscores.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +     * Required. The name of the variable. The name must start with a letter or
      +     * underscore and contain only letters, numbers, or underscores.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
      +     * Required. The description of the variable.
      +     * 
      + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
      +     * Required. The description of the variable.
      +     * 
      + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for description. + */ + @java.lang.Override + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCHEMA_FIELD_NUMBER = 3; + private com.google.cloud.ces.v1.Schema schema_; + + /** + * + * + *
      +     * Required. The schema of the variable.
      +     * 
      + * + * .google.cloud.ces.v1.Schema schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the schema field is set. + */ + @java.lang.Override + public boolean hasSchema() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Required. The schema of the variable.
      +     * 
      + * + * .google.cloud.ces.v1.Schema schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The schema. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Schema getSchema() { + return schema_ == null ? com.google.cloud.ces.v1.Schema.getDefaultInstance() : schema_; + } + + /** + * + * + *
      +     * Required. The schema of the variable.
      +     * 
      + * + * .google.cloud.ces.v1.Schema schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.SchemaOrBuilder getSchemaOrBuilder() { + return schema_ == null ? com.google.cloud.ces.v1.Schema.getDefaultInstance() : schema_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getSchema()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSchema()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.App.VariableDeclaration)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.App.VariableDeclaration other = + (com.google.cloud.ces.v1.App.VariableDeclaration) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (hasSchema() != other.hasSchema()) return false; + if (hasSchema()) { + if (!getSchema().equals(other.getSchema())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasSchema()) { + hash = (37 * hash) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.App.VariableDeclaration parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.App.VariableDeclaration parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.App.VariableDeclaration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.App.VariableDeclaration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.App.VariableDeclaration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.App.VariableDeclaration parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.App.VariableDeclaration parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.App.VariableDeclaration parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.App.VariableDeclaration parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.App.VariableDeclaration parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.App.VariableDeclaration parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.App.VariableDeclaration parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.App.VariableDeclaration prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Defines the structure and metadata for a variable.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.App.VariableDeclaration} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.App.VariableDeclaration) + com.google.cloud.ces.v1.App.VariableDeclarationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_App_VariableDeclaration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_App_VariableDeclaration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.App.VariableDeclaration.class, + com.google.cloud.ces.v1.App.VariableDeclaration.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.App.VariableDeclaration.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSchemaFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + description_ = ""; + schema_ = null; + if (schemaBuilder_ != null) { + schemaBuilder_.dispose(); + schemaBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_App_VariableDeclaration_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.App.VariableDeclaration getDefaultInstanceForType() { + return com.google.cloud.ces.v1.App.VariableDeclaration.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.App.VariableDeclaration build() { + com.google.cloud.ces.v1.App.VariableDeclaration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.App.VariableDeclaration buildPartial() { + com.google.cloud.ces.v1.App.VariableDeclaration result = + new com.google.cloud.ces.v1.App.VariableDeclaration(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.App.VariableDeclaration result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.App.VariableDeclaration) { + return mergeFrom((com.google.cloud.ces.v1.App.VariableDeclaration) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.App.VariableDeclaration other) { + if (other == com.google.cloud.ces.v1.App.VariableDeclaration.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasSchema()) { + mergeSchema(other.getSchema()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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( + internalGetSchemaFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +       * Required. The name of the variable. The name must start with a letter or
      +       * underscore and contain only letters, numbers, or underscores.
      +       * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Required. The name of the variable. The name must start with a letter or
      +       * underscore and contain only letters, numbers, or underscores.
      +       * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Required. The name of the variable. The name must start with a letter or
      +       * underscore and contain only letters, numbers, or underscores.
      +       * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. The name of the variable. The name must start with a letter or
      +       * underscore and contain only letters, numbers, or underscores.
      +       * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. The name of the variable. The name must start with a letter or
      +       * underscore and contain only letters, numbers, or underscores.
      +       * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
      +       * Required. The description of the variable.
      +       * 
      + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Required. The description of the variable.
      +       * 
      + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for description. + */ + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Required. The description of the variable.
      +       * 
      + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. The description of the variable.
      +       * 
      + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. The description of the variable.
      +       * 
      + * + * string description = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.Schema schema_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder> + schemaBuilder_; + + /** + * + * + *
      +       * Required. The schema of the variable.
      +       * 
      + * + * .google.cloud.ces.v1.Schema schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the schema field is set. + */ + public boolean hasSchema() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +       * Required. The schema of the variable.
      +       * 
      + * + * .google.cloud.ces.v1.Schema schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The schema. + */ + public com.google.cloud.ces.v1.Schema getSchema() { + if (schemaBuilder_ == null) { + return schema_ == null ? com.google.cloud.ces.v1.Schema.getDefaultInstance() : schema_; + } else { + return schemaBuilder_.getMessage(); + } + } + + /** + * + * + *
      +       * Required. The schema of the variable.
      +       * 
      + * + * .google.cloud.ces.v1.Schema schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSchema(com.google.cloud.ces.v1.Schema value) { + if (schemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + schema_ = value; + } else { + schemaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. The schema of the variable.
      +       * 
      + * + * .google.cloud.ces.v1.Schema schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSchema(com.google.cloud.ces.v1.Schema.Builder builderForValue) { + if (schemaBuilder_ == null) { + schema_ = builderForValue.build(); + } else { + schemaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. The schema of the variable.
      +       * 
      + * + * .google.cloud.ces.v1.Schema schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSchema(com.google.cloud.ces.v1.Schema value) { + if (schemaBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && schema_ != null + && schema_ != com.google.cloud.ces.v1.Schema.getDefaultInstance()) { + getSchemaBuilder().mergeFrom(value); + } else { + schema_ = value; + } + } else { + schemaBuilder_.mergeFrom(value); + } + if (schema_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
      +       * Required. The schema of the variable.
      +       * 
      + * + * .google.cloud.ces.v1.Schema schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSchema() { + bitField0_ = (bitField0_ & ~0x00000004); + schema_ = null; + if (schemaBuilder_ != null) { + schemaBuilder_.dispose(); + schemaBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. The schema of the variable.
      +       * 
      + * + * .google.cloud.ces.v1.Schema schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.Schema.Builder getSchemaBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetSchemaFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Required. The schema of the variable.
      +       * 
      + * + * .google.cloud.ces.v1.Schema schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.SchemaOrBuilder getSchemaOrBuilder() { + if (schemaBuilder_ != null) { + return schemaBuilder_.getMessageOrBuilder(); + } else { + return schema_ == null ? com.google.cloud.ces.v1.Schema.getDefaultInstance() : schema_; + } + } + + /** + * + * + *
      +       * Required. The schema of the variable.
      +       * 
      + * + * .google.cloud.ces.v1.Schema schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder> + internalGetSchemaFieldBuilder() { + if (schemaBuilder_ == null) { + schemaBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder>( + getSchema(), getParentForChildren(), isClean()); + schema_ = null; + } + return schemaBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.App.VariableDeclaration) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.App.VariableDeclaration) + private static final com.google.cloud.ces.v1.App.VariableDeclaration DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.App.VariableDeclaration(); + } + + public static com.google.cloud.ces.v1.App.VariableDeclaration getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VariableDeclaration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.App.VariableDeclaration getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Identifier. The unique identifier of the app.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Identifier. The unique identifier of the app.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
      +   * Required. Display name of the app.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. Display name of the app.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
      +   * Optional. Human-readable description of the app.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. Human-readable description of the app.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PINNED_FIELD_NUMBER = 31; + private boolean pinned_ = false; + + /** + * + * + *
      +   * Optional. Whether the app is pinned in the app list.
      +   * 
      + * + * bool pinned = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pinned. + */ + @java.lang.Override + public boolean getPinned() { + return pinned_; + } + + public static final int ROOT_AGENT_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object rootAgent_ = ""; + + /** + * + * + *
      +   * Optional. The root agent is the entry point of the app.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +   * 
      + * + * + * string root_agent = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The rootAgent. + */ + @java.lang.Override + public java.lang.String getRootAgent() { + java.lang.Object ref = rootAgent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rootAgent_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The root agent is the entry point of the app.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +   * 
      + * + * + * string root_agent = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for rootAgent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRootAgentBytes() { + java.lang.Object ref = rootAgent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rootAgent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LANGUAGE_SETTINGS_FIELD_NUMBER = 18; + private com.google.cloud.ces.v1.LanguageSettings languageSettings_; + + /** + * + * + *
      +   * Optional. Language settings of the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.LanguageSettings language_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the languageSettings field is set. + */ + @java.lang.Override + public boolean hasLanguageSettings() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Optional. Language settings of the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.LanguageSettings language_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The languageSettings. + */ + @java.lang.Override + public com.google.cloud.ces.v1.LanguageSettings getLanguageSettings() { + return languageSettings_ == null + ? com.google.cloud.ces.v1.LanguageSettings.getDefaultInstance() + : languageSettings_; + } + + /** + * + * + *
      +   * Optional. Language settings of the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.LanguageSettings language_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.LanguageSettingsOrBuilder getLanguageSettingsOrBuilder() { + return languageSettings_ == null + ? com.google.cloud.ces.v1.LanguageSettings.getDefaultInstance() + : languageSettings_; + } + + public static final int TIME_ZONE_SETTINGS_FIELD_NUMBER = 27; + private com.google.cloud.ces.v1.TimeZoneSettings timeZoneSettings_; + + /** + * + * + *
      +   * Optional. TimeZone settings of the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.TimeZoneSettings time_zone_settings = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the timeZoneSettings field is set. + */ + @java.lang.Override + public boolean hasTimeZoneSettings() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Optional. TimeZone settings of the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.TimeZoneSettings time_zone_settings = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The timeZoneSettings. + */ + @java.lang.Override + public com.google.cloud.ces.v1.TimeZoneSettings getTimeZoneSettings() { + return timeZoneSettings_ == null + ? com.google.cloud.ces.v1.TimeZoneSettings.getDefaultInstance() + : timeZoneSettings_; + } + + /** + * + * + *
      +   * Optional. TimeZone settings of the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.TimeZoneSettings time_zone_settings = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.TimeZoneSettingsOrBuilder getTimeZoneSettingsOrBuilder() { + return timeZoneSettings_ == null + ? com.google.cloud.ces.v1.TimeZoneSettings.getDefaultInstance() + : timeZoneSettings_; + } + + public static final int AUDIO_PROCESSING_CONFIG_FIELD_NUMBER = 7; + private com.google.cloud.ces.v1.AudioProcessingConfig audioProcessingConfig_; + + /** + * + * + *
      +   * Optional. Audio processing configuration of the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.AudioProcessingConfig audio_processing_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the audioProcessingConfig field is set. + */ + @java.lang.Override + public boolean hasAudioProcessingConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * Optional. Audio processing configuration of the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.AudioProcessingConfig audio_processing_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The audioProcessingConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.AudioProcessingConfig getAudioProcessingConfig() { + return audioProcessingConfig_ == null + ? com.google.cloud.ces.v1.AudioProcessingConfig.getDefaultInstance() + : audioProcessingConfig_; + } + + /** + * + * + *
      +   * Optional. Audio processing configuration of the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.AudioProcessingConfig audio_processing_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.AudioProcessingConfigOrBuilder + getAudioProcessingConfigOrBuilder() { + return audioProcessingConfig_ == null + ? com.google.cloud.ces.v1.AudioProcessingConfig.getDefaultInstance() + : audioProcessingConfig_; + } + + public static final int LOGGING_SETTINGS_FIELD_NUMBER = 8; + private com.google.cloud.ces.v1.LoggingSettings loggingSettings_; + + /** + * + * + *
      +   * Optional. Logging settings of the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.LoggingSettings logging_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the loggingSettings field is set. + */ + @java.lang.Override + public boolean hasLoggingSettings() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +   * Optional. Logging settings of the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.LoggingSettings logging_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The loggingSettings. + */ + @java.lang.Override + public com.google.cloud.ces.v1.LoggingSettings getLoggingSettings() { + return loggingSettings_ == null + ? com.google.cloud.ces.v1.LoggingSettings.getDefaultInstance() + : loggingSettings_; + } + + /** + * + * + *
      +   * Optional. Logging settings of the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.LoggingSettings logging_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.LoggingSettingsOrBuilder getLoggingSettingsOrBuilder() { + return loggingSettings_ == null + ? com.google.cloud.ces.v1.LoggingSettings.getDefaultInstance() + : loggingSettings_; + } + + public static final int MODEL_SETTINGS_FIELD_NUMBER = 13; + private com.google.cloud.ces.v1.ModelSettings modelSettings_; + + /** + * + * + *
      +   * Optional. The default LLM model settings for the app.
      +   * Individual resources (e.g. agents, guardrails) can override these
      +   * configurations as needed.
      +   * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelSettings field is set. + */ + @java.lang.Override + public boolean hasModelSettings() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +   * Optional. The default LLM model settings for the app.
      +   * Individual resources (e.g. agents, guardrails) can override these
      +   * configurations as needed.
      +   * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelSettings. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ModelSettings getModelSettings() { + return modelSettings_ == null + ? com.google.cloud.ces.v1.ModelSettings.getDefaultInstance() + : modelSettings_; + } + + /** + * + * + *
      +   * Optional. The default LLM model settings for the app.
      +   * Individual resources (e.g. agents, guardrails) can override these
      +   * configurations as needed.
      +   * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ModelSettingsOrBuilder getModelSettingsOrBuilder() { + return modelSettings_ == null + ? com.google.cloud.ces.v1.ModelSettings.getDefaultInstance() + : modelSettings_; + } + + public static final int TOOL_EXECUTION_MODE_FIELD_NUMBER = 32; + private int toolExecutionMode_ = 0; + + /** + * + * + *
      +   * Optional. The tool execution mode for the app. If not provided, will
      +   * default to PARALLEL.
      +   * 
      + * + * + * .google.cloud.ces.v1.App.ToolExecutionMode tool_execution_mode = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for toolExecutionMode. + */ + @java.lang.Override + public int getToolExecutionModeValue() { + return toolExecutionMode_; + } + + /** + * + * + *
      +   * Optional. The tool execution mode for the app. If not provided, will
      +   * default to PARALLEL.
      +   * 
      + * + * + * .google.cloud.ces.v1.App.ToolExecutionMode tool_execution_mode = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolExecutionMode. + */ + @java.lang.Override + public com.google.cloud.ces.v1.App.ToolExecutionMode getToolExecutionMode() { + com.google.cloud.ces.v1.App.ToolExecutionMode result = + com.google.cloud.ces.v1.App.ToolExecutionMode.forNumber(toolExecutionMode_); + return result == null ? com.google.cloud.ces.v1.App.ToolExecutionMode.UNRECOGNIZED : result; + } + + public static final int EVALUATION_METRICS_THRESHOLDS_FIELD_NUMBER = 24; + private com.google.cloud.ces.v1.EvaluationMetricsThresholds evaluationMetricsThresholds_; + + /** + * + * + *
      +   * Optional. The evaluation thresholds for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds evaluation_metrics_thresholds = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the evaluationMetricsThresholds field is set. + */ + @java.lang.Override + public boolean hasEvaluationMetricsThresholds() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +   * Optional. The evaluation thresholds for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds evaluation_metrics_thresholds = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The evaluationMetricsThresholds. + */ + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds getEvaluationMetricsThresholds() { + return evaluationMetricsThresholds_ == null + ? com.google.cloud.ces.v1.EvaluationMetricsThresholds.getDefaultInstance() + : evaluationMetricsThresholds_; + } + + /** + * + * + *
      +   * Optional. The evaluation thresholds for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds evaluation_metrics_thresholds = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholdsOrBuilder + getEvaluationMetricsThresholdsOrBuilder() { + return evaluationMetricsThresholds_ == null + ? com.google.cloud.ces.v1.EvaluationMetricsThresholds.getDefaultInstance() + : evaluationMetricsThresholds_; + } + + public static final int VARIABLE_DECLARATIONS_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private java.util.List variableDeclarations_; + + /** + * + * + *
      +   * Optional. The declarations of the variables.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration variable_declarations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getVariableDeclarationsList() { + return variableDeclarations_; + } + + /** + * + * + *
      +   * Optional. The declarations of the variables.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration variable_declarations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getVariableDeclarationsOrBuilderList() { + return variableDeclarations_; + } + + /** + * + * + *
      +   * Optional. The declarations of the variables.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration variable_declarations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getVariableDeclarationsCount() { + return variableDeclarations_.size(); + } + + /** + * + * + *
      +   * Optional. The declarations of the variables.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration variable_declarations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.App.VariableDeclaration getVariableDeclarations(int index) { + return variableDeclarations_.get(index); + } + + /** + * + * + *
      +   * Optional. The declarations of the variables.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration variable_declarations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.App.VariableDeclarationOrBuilder getVariableDeclarationsOrBuilder( + int index) { + return variableDeclarations_.get(index); + } + + public static final int PREDEFINED_VARIABLE_DECLARATIONS_FIELD_NUMBER = 28; + + @SuppressWarnings("serial") + private java.util.List + predefinedVariableDeclarations_; + + /** + * + * + *
      +   * Output only. The declarations of predefined variables for the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration predefined_variable_declarations = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getPredefinedVariableDeclarationsList() { + return predefinedVariableDeclarations_; + } + + /** + * + * + *
      +   * Output only. The declarations of predefined variables for the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration predefined_variable_declarations = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getPredefinedVariableDeclarationsOrBuilderList() { + return predefinedVariableDeclarations_; + } + + /** + * + * + *
      +   * Output only. The declarations of predefined variables for the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration predefined_variable_declarations = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getPredefinedVariableDeclarationsCount() { + return predefinedVariableDeclarations_.size(); + } + + /** + * + * + *
      +   * Output only. The declarations of predefined variables for the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration predefined_variable_declarations = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.App.VariableDeclaration getPredefinedVariableDeclarations( + int index) { + return predefinedVariableDeclarations_.get(index); + } + + /** + * + * + *
      +   * Output only. The declarations of predefined variables for the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration predefined_variable_declarations = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.App.VariableDeclarationOrBuilder + getPredefinedVariableDeclarationsOrBuilder(int index) { + return predefinedVariableDeclarations_.get(index); + } + + public static final int GLOBAL_INSTRUCTION_FIELD_NUMBER = 17; + + @SuppressWarnings("serial") + private volatile java.lang.Object globalInstruction_ = ""; + + /** + * + * + *
      +   * Optional. Instructions for all the agents in the app.
      +   * You can use this instruction to set up a stable identity or personality
      +   * across all the agents.
      +   * 
      + * + * string global_instruction = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The globalInstruction. + */ + @java.lang.Override + public java.lang.String getGlobalInstruction() { + java.lang.Object ref = globalInstruction_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + globalInstruction_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. Instructions for all the agents in the app.
      +   * You can use this instruction to set up a stable identity or personality
      +   * across all the agents.
      +   * 
      + * + * string global_instruction = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for globalInstruction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGlobalInstructionBytes() { + java.lang.Object ref = globalInstruction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + globalInstruction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GUARDRAILS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList guardrails_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +   * Optional. List of guardrails for the app.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +   * 
      + * + * + * repeated string guardrails = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the guardrails. + */ + public com.google.protobuf.ProtocolStringList getGuardrailsList() { + return guardrails_; + } + + /** + * + * + *
      +   * Optional. List of guardrails for the app.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +   * 
      + * + * + * repeated string guardrails = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of guardrails. + */ + public int getGuardrailsCount() { + return guardrails_.size(); + } + + /** + * + * + *
      +   * Optional. List of guardrails for the app.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +   * 
      + * + * + * repeated string guardrails = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The guardrails at the given index. + */ + public java.lang.String getGuardrails(int index) { + return guardrails_.get(index); + } + + /** + * + * + *
      +   * Optional. List of guardrails for the app.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +   * 
      + * + * + * repeated string guardrails = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the guardrails at the given index. + */ + public com.google.protobuf.ByteString getGuardrailsBytes(int index) { + return guardrails_.getByteString(index); + } + + public static final int DATA_STORE_SETTINGS_FIELD_NUMBER = 15; + private com.google.cloud.ces.v1.DataStoreSettings dataStoreSettings_; + + /** + * + * + *
      +   * Optional. The data store settings for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStoreSettings data_store_settings = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataStoreSettings field is set. + */ + @java.lang.Override + public boolean hasDataStoreSettings() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
      +   * Optional. The data store settings for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStoreSettings data_store_settings = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataStoreSettings. + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreSettings getDataStoreSettings() { + return dataStoreSettings_ == null + ? com.google.cloud.ces.v1.DataStoreSettings.getDefaultInstance() + : dataStoreSettings_; + } + + /** + * + * + *
      +   * Optional. The data store settings for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStoreSettings data_store_settings = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreSettingsOrBuilder getDataStoreSettingsOrBuilder() { + return dataStoreSettings_ == null + ? com.google.cloud.ces.v1.DataStoreSettings.getDefaultInstance() + : dataStoreSettings_; + } + + public static final int DEFAULT_CHANNEL_PROFILE_FIELD_NUMBER = 22; + private com.google.cloud.ces.v1.ChannelProfile defaultChannelProfile_; + + /** + * + * + *
      +   * Optional. The default channel profile used by the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile default_channel_profile = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultChannelProfile field is set. + */ + @java.lang.Override + public boolean hasDefaultChannelProfile() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
      +   * Optional. The default channel profile used by the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile default_channel_profile = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultChannelProfile. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile getDefaultChannelProfile() { + return defaultChannelProfile_ == null + ? com.google.cloud.ces.v1.ChannelProfile.getDefaultInstance() + : defaultChannelProfile_; + } + + /** + * + * + *
      +   * Optional. The default channel profile used by the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile default_channel_profile = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfileOrBuilder getDefaultChannelProfileOrBuilder() { + return defaultChannelProfile_ == null + ? com.google.cloud.ces.v1.ChannelProfile.getDefaultInstance() + : defaultChannelProfile_; + } + + public static final int METADATA_FIELD_NUMBER = 11; + + private static final class MetadataDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_App_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField metadata_; + + private com.google.protobuf.MapField internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + + /** + * + * + *
      +   * Optional. Metadata about the app. This field can be used to store
      +   * additional information relevant to the app's details or intended usages.
      +   * 
      + * + * map<string, string> metadata = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetMetadata().getMap().containsKey(key); + } + + /** Use {@link #getMetadataMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getMetadata() { + return getMetadataMap(); + } + + /** + * + * + *
      +   * Optional. Metadata about the app. This field can be used to store
      +   * additional information relevant to the app's details or intended usages.
      +   * 
      + * + * map<string, string> metadata = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + + /** + * + * + *
      +   * Optional. Metadata about the app. This field can be used to store
      +   * additional information relevant to the app's details or intended usages.
      +   * 
      + * + * map<string, string> metadata = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getMetadataOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
      +   * Optional. Metadata about the app. This field can be used to store
      +   * additional information relevant to the app's details or intended usages.
      +   * 
      + * + * map<string, string> metadata = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getMetadataOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
      +   * Output only. Timestamp when the app was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
      +   * Output only. Timestamp when the app was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
      +   * Output only. Timestamp when the app was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
      +   * Output only. Timestamp when the app was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
      +   * Output only. Timestamp when the app was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
      +   * Output only. Timestamp when the app was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int ETAG_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
      +   * Output only. Etag used to ensure the object hasn't changed during a
      +   * read-modify-write operation. If the etag is empty, the update will
      +   * overwrite any concurrent changes.
      +   * 
      + * + * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + + /** + * + * + *
      +   * Output only. Etag used to ensure the object hasn't changed during a
      +   * read-modify-write operation. If the etag is empty, the update will
      +   * overwrite any concurrent changes.
      +   * 
      + * + * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYMENT_COUNT_FIELD_NUMBER = 23; + private int deploymentCount_ = 0; + + /** + * + * + *
      +   * Output only. Number of deployments in the app.
      +   * 
      + * + * int32 deployment_count = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deploymentCount. + */ + @java.lang.Override + public int getDeploymentCount() { + return deploymentCount_; + } + + public static final int CLIENT_CERTIFICATE_SETTINGS_FIELD_NUMBER = 25; + private com.google.cloud.ces.v1.ClientCertificateSettings clientCertificateSettings_; + + /** + * + * + *
      +   * Optional. The default client certificate settings for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.ClientCertificateSettings client_certificate_settings = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the clientCertificateSettings field is set. + */ + @java.lang.Override + public boolean hasClientCertificateSettings() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
      +   * Optional. The default client certificate settings for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.ClientCertificateSettings client_certificate_settings = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clientCertificateSettings. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ClientCertificateSettings getClientCertificateSettings() { + return clientCertificateSettings_ == null + ? com.google.cloud.ces.v1.ClientCertificateSettings.getDefaultInstance() + : clientCertificateSettings_; + } + + /** + * + * + *
      +   * Optional. The default client certificate settings for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.ClientCertificateSettings client_certificate_settings = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ClientCertificateSettingsOrBuilder + getClientCertificateSettingsOrBuilder() { + return clientCertificateSettings_ == null + ? com.google.cloud.ces.v1.ClientCertificateSettings.getDefaultInstance() + : clientCertificateSettings_; + } + + public static final int LOCKED_FIELD_NUMBER = 29; + private boolean locked_ = false; + + /** + * + * + *
      +   * Optional. Indicates whether the app is locked for changes. If the app is
      +   * locked, modifications to the app resources will be rejected.
      +   * 
      + * + * bool locked = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The locked. + */ + @java.lang.Override + public boolean getLocked() { + return locked_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rootAgent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, rootAgent_); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(5, getCreateTime()); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(6, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(7, getAudioProcessingConfig()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(8, getLoggingSettings()); + } + for (int i = 0; i < guardrails_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, guardrails_.getRaw(i)); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 11); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, etag_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(13, getModelSettings()); + } + for (int i = 0; i < variableDeclarations_.size(); i++) { + output.writeMessage(14, variableDeclarations_.get(i)); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(15, getDataStoreSettings()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(globalInstruction_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 17, globalInstruction_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(18, getLanguageSettings()); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(22, getDefaultChannelProfile()); + } + if (deploymentCount_ != 0) { + output.writeInt32(23, deploymentCount_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(24, getEvaluationMetricsThresholds()); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(25, getClientCertificateSettings()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(27, getTimeZoneSettings()); + } + for (int i = 0; i < predefinedVariableDeclarations_.size(); i++) { + output.writeMessage(28, predefinedVariableDeclarations_.get(i)); + } + if (locked_ != false) { + output.writeBool(29, locked_); + } + if (pinned_ != false) { + output.writeBool(31, pinned_); + } + if (toolExecutionMode_ + != com.google.cloud.ces.v1.App.ToolExecutionMode.TOOL_EXECUTION_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(32, toolExecutionMode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rootAgent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, rootAgent_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(7, getAudioProcessingConfig()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getLoggingSettings()); + } + { + int dataSize = 0; + for (int i = 0; i < guardrails_.size(); i++) { + dataSize += computeStringSizeNoTag(guardrails_.getRaw(i)); + } + size += dataSize; + size += 1 * getGuardrailsList().size(); + } + for (java.util.Map.Entry entry : + internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry metadata__ = + MetadataDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, metadata__); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(12, etag_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getModelSettings()); + } + for (int i = 0; i < variableDeclarations_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, variableDeclarations_.get(i)); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getDataStoreSettings()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(globalInstruction_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(17, globalInstruction_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getLanguageSettings()); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(22, getDefaultChannelProfile()); + } + if (deploymentCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(23, deploymentCount_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 24, getEvaluationMetricsThresholds()); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 25, getClientCertificateSettings()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, getTimeZoneSettings()); + } + for (int i = 0; i < predefinedVariableDeclarations_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 28, predefinedVariableDeclarations_.get(i)); + } + if (locked_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(29, locked_); + } + if (pinned_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(31, pinned_); + } + if (toolExecutionMode_ + != com.google.cloud.ces.v1.App.ToolExecutionMode.TOOL_EXECUTION_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(32, toolExecutionMode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.App)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.App other = (com.google.cloud.ces.v1.App) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (getPinned() != other.getPinned()) return false; + if (!getRootAgent().equals(other.getRootAgent())) return false; + if (hasLanguageSettings() != other.hasLanguageSettings()) return false; + if (hasLanguageSettings()) { + if (!getLanguageSettings().equals(other.getLanguageSettings())) return false; + } + if (hasTimeZoneSettings() != other.hasTimeZoneSettings()) return false; + if (hasTimeZoneSettings()) { + if (!getTimeZoneSettings().equals(other.getTimeZoneSettings())) return false; + } + if (hasAudioProcessingConfig() != other.hasAudioProcessingConfig()) return false; + if (hasAudioProcessingConfig()) { + if (!getAudioProcessingConfig().equals(other.getAudioProcessingConfig())) return false; + } + if (hasLoggingSettings() != other.hasLoggingSettings()) return false; + if (hasLoggingSettings()) { + if (!getLoggingSettings().equals(other.getLoggingSettings())) return false; + } + if (hasModelSettings() != other.hasModelSettings()) return false; + if (hasModelSettings()) { + if (!getModelSettings().equals(other.getModelSettings())) return false; + } + if (toolExecutionMode_ != other.toolExecutionMode_) return false; + if (hasEvaluationMetricsThresholds() != other.hasEvaluationMetricsThresholds()) return false; + if (hasEvaluationMetricsThresholds()) { + if (!getEvaluationMetricsThresholds().equals(other.getEvaluationMetricsThresholds())) + return false; + } + if (!getVariableDeclarationsList().equals(other.getVariableDeclarationsList())) return false; + if (!getPredefinedVariableDeclarationsList() + .equals(other.getPredefinedVariableDeclarationsList())) return false; + if (!getGlobalInstruction().equals(other.getGlobalInstruction())) return false; + if (!getGuardrailsList().equals(other.getGuardrailsList())) return false; + if (hasDataStoreSettings() != other.hasDataStoreSettings()) return false; + if (hasDataStoreSettings()) { + if (!getDataStoreSettings().equals(other.getDataStoreSettings())) return false; + } + if (hasDefaultChannelProfile() != other.hasDefaultChannelProfile()) return false; + if (hasDefaultChannelProfile()) { + if (!getDefaultChannelProfile().equals(other.getDefaultChannelProfile())) return false; + } + if (!internalGetMetadata().equals(other.internalGetMetadata())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getEtag().equals(other.getEtag())) return false; + if (getDeploymentCount() != other.getDeploymentCount()) return false; + if (hasClientCertificateSettings() != other.hasClientCertificateSettings()) return false; + if (hasClientCertificateSettings()) { + if (!getClientCertificateSettings().equals(other.getClientCertificateSettings())) + return false; + } + if (getLocked() != other.getLocked()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + PINNED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPinned()); + hash = (37 * hash) + ROOT_AGENT_FIELD_NUMBER; + hash = (53 * hash) + getRootAgent().hashCode(); + if (hasLanguageSettings()) { + hash = (37 * hash) + LANGUAGE_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getLanguageSettings().hashCode(); + } + if (hasTimeZoneSettings()) { + hash = (37 * hash) + TIME_ZONE_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getTimeZoneSettings().hashCode(); + } + if (hasAudioProcessingConfig()) { + hash = (37 * hash) + AUDIO_PROCESSING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAudioProcessingConfig().hashCode(); + } + if (hasLoggingSettings()) { + hash = (37 * hash) + LOGGING_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getLoggingSettings().hashCode(); + } + if (hasModelSettings()) { + hash = (37 * hash) + MODEL_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getModelSettings().hashCode(); + } + hash = (37 * hash) + TOOL_EXECUTION_MODE_FIELD_NUMBER; + hash = (53 * hash) + toolExecutionMode_; + if (hasEvaluationMetricsThresholds()) { + hash = (37 * hash) + EVALUATION_METRICS_THRESHOLDS_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationMetricsThresholds().hashCode(); + } + if (getVariableDeclarationsCount() > 0) { + hash = (37 * hash) + VARIABLE_DECLARATIONS_FIELD_NUMBER; + hash = (53 * hash) + getVariableDeclarationsList().hashCode(); + } + if (getPredefinedVariableDeclarationsCount() > 0) { + hash = (37 * hash) + PREDEFINED_VARIABLE_DECLARATIONS_FIELD_NUMBER; + hash = (53 * hash) + getPredefinedVariableDeclarationsList().hashCode(); + } + hash = (37 * hash) + GLOBAL_INSTRUCTION_FIELD_NUMBER; + hash = (53 * hash) + getGlobalInstruction().hashCode(); + if (getGuardrailsCount() > 0) { + hash = (37 * hash) + GUARDRAILS_FIELD_NUMBER; + hash = (53 * hash) + getGuardrailsList().hashCode(); + } + if (hasDataStoreSettings()) { + hash = (37 * hash) + DATA_STORE_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getDataStoreSettings().hashCode(); + } + if (hasDefaultChannelProfile()) { + hash = (37 * hash) + DEFAULT_CHANNEL_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultChannelProfile().hashCode(); + } + if (!internalGetMetadata().getMap().isEmpty()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + internalGetMetadata().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + DEPLOYMENT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentCount(); + if (hasClientCertificateSettings()) { + hash = (37 * hash) + CLIENT_CERTIFICATE_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getClientCertificateSettings().hashCode(); + } + hash = (37 * hash) + LOCKED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLocked()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.App parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.App parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.App parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.App parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.App parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.App parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.App parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.App parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.App parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.App parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.App parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.App parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.App prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * An app serves as a top-level container for a group of agents, including the
      +   * root agent and its sub-agents, along with their associated configurations.
      +   * These agents work together to achieve specific goals within the app's
      +   * context.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.App} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.App) + com.google.cloud.ces.v1.AppOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto.internal_static_google_cloud_ces_v1_App_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 11: + return internalGetMetadata(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 11: + return internalGetMutableMetadata(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_App_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.App.class, com.google.cloud.ces.v1.App.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.App.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetLanguageSettingsFieldBuilder(); + internalGetTimeZoneSettingsFieldBuilder(); + internalGetAudioProcessingConfigFieldBuilder(); + internalGetLoggingSettingsFieldBuilder(); + internalGetModelSettingsFieldBuilder(); + internalGetEvaluationMetricsThresholdsFieldBuilder(); + internalGetVariableDeclarationsFieldBuilder(); + internalGetPredefinedVariableDeclarationsFieldBuilder(); + internalGetDataStoreSettingsFieldBuilder(); + internalGetDefaultChannelProfileFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetClientCertificateSettingsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + description_ = ""; + pinned_ = false; + rootAgent_ = ""; + languageSettings_ = null; + if (languageSettingsBuilder_ != null) { + languageSettingsBuilder_.dispose(); + languageSettingsBuilder_ = null; + } + timeZoneSettings_ = null; + if (timeZoneSettingsBuilder_ != null) { + timeZoneSettingsBuilder_.dispose(); + timeZoneSettingsBuilder_ = null; + } + audioProcessingConfig_ = null; + if (audioProcessingConfigBuilder_ != null) { + audioProcessingConfigBuilder_.dispose(); + audioProcessingConfigBuilder_ = null; + } + loggingSettings_ = null; + if (loggingSettingsBuilder_ != null) { + loggingSettingsBuilder_.dispose(); + loggingSettingsBuilder_ = null; + } + modelSettings_ = null; + if (modelSettingsBuilder_ != null) { + modelSettingsBuilder_.dispose(); + modelSettingsBuilder_ = null; + } + toolExecutionMode_ = 0; + evaluationMetricsThresholds_ = null; + if (evaluationMetricsThresholdsBuilder_ != null) { + evaluationMetricsThresholdsBuilder_.dispose(); + evaluationMetricsThresholdsBuilder_ = null; + } + if (variableDeclarationsBuilder_ == null) { + variableDeclarations_ = java.util.Collections.emptyList(); + } else { + variableDeclarations_ = null; + variableDeclarationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00001000); + if (predefinedVariableDeclarationsBuilder_ == null) { + predefinedVariableDeclarations_ = java.util.Collections.emptyList(); + } else { + predefinedVariableDeclarations_ = null; + predefinedVariableDeclarationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00002000); + globalInstruction_ = ""; + guardrails_ = com.google.protobuf.LazyStringArrayList.emptyList(); + dataStoreSettings_ = null; + if (dataStoreSettingsBuilder_ != null) { + dataStoreSettingsBuilder_.dispose(); + dataStoreSettingsBuilder_ = null; + } + defaultChannelProfile_ = null; + if (defaultChannelProfileBuilder_ != null) { + defaultChannelProfileBuilder_.dispose(); + defaultChannelProfileBuilder_ = null; + } + internalGetMutableMetadata().clear(); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + etag_ = ""; + deploymentCount_ = 0; + clientCertificateSettings_ = null; + if (clientCertificateSettingsBuilder_ != null) { + clientCertificateSettingsBuilder_.dispose(); + clientCertificateSettingsBuilder_ = null; + } + locked_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AppProto.internal_static_google_cloud_ces_v1_App_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.App getDefaultInstanceForType() { + return com.google.cloud.ces.v1.App.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.App build() { + com.google.cloud.ces.v1.App result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.App buildPartial() { + com.google.cloud.ces.v1.App result = new com.google.cloud.ces.v1.App(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1.App result) { + if (variableDeclarationsBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0)) { + variableDeclarations_ = java.util.Collections.unmodifiableList(variableDeclarations_); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.variableDeclarations_ = variableDeclarations_; + } else { + result.variableDeclarations_ = variableDeclarationsBuilder_.build(); + } + if (predefinedVariableDeclarationsBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0)) { + predefinedVariableDeclarations_ = + java.util.Collections.unmodifiableList(predefinedVariableDeclarations_); + bitField0_ = (bitField0_ & ~0x00002000); + } + result.predefinedVariableDeclarations_ = predefinedVariableDeclarations_; + } else { + result.predefinedVariableDeclarations_ = predefinedVariableDeclarationsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.App result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pinned_ = pinned_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.rootAgent_ = rootAgent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.languageSettings_ = + languageSettingsBuilder_ == null ? languageSettings_ : languageSettingsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.timeZoneSettings_ = + timeZoneSettingsBuilder_ == null ? timeZoneSettings_ : timeZoneSettingsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.audioProcessingConfig_ = + audioProcessingConfigBuilder_ == null + ? audioProcessingConfig_ + : audioProcessingConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.loggingSettings_ = + loggingSettingsBuilder_ == null ? loggingSettings_ : loggingSettingsBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.modelSettings_ = + modelSettingsBuilder_ == null ? modelSettings_ : modelSettingsBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.toolExecutionMode_ = toolExecutionMode_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.evaluationMetricsThresholds_ = + evaluationMetricsThresholdsBuilder_ == null + ? evaluationMetricsThresholds_ + : evaluationMetricsThresholdsBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.globalInstruction_ = globalInstruction_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + guardrails_.makeImmutable(); + result.guardrails_ = guardrails_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.dataStoreSettings_ = + dataStoreSettingsBuilder_ == null + ? dataStoreSettings_ + : dataStoreSettingsBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.defaultChannelProfile_ = + defaultChannelProfileBuilder_ == null + ? defaultChannelProfile_ + : defaultChannelProfileBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.metadata_ = internalGetMetadata(); + result.metadata_.makeImmutable(); + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.deploymentCount_ = deploymentCount_; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.clientCertificateSettings_ = + clientCertificateSettingsBuilder_ == null + ? clientCertificateSettings_ + : clientCertificateSettingsBuilder_.build(); + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x01000000) != 0)) { + result.locked_ = locked_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.App) { + return mergeFrom((com.google.cloud.ces.v1.App) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.App other) { + if (other == com.google.cloud.ces.v1.App.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getPinned() != false) { + setPinned(other.getPinned()); + } + if (!other.getRootAgent().isEmpty()) { + rootAgent_ = other.rootAgent_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasLanguageSettings()) { + mergeLanguageSettings(other.getLanguageSettings()); + } + if (other.hasTimeZoneSettings()) { + mergeTimeZoneSettings(other.getTimeZoneSettings()); + } + if (other.hasAudioProcessingConfig()) { + mergeAudioProcessingConfig(other.getAudioProcessingConfig()); + } + if (other.hasLoggingSettings()) { + mergeLoggingSettings(other.getLoggingSettings()); + } + if (other.hasModelSettings()) { + mergeModelSettings(other.getModelSettings()); + } + if (other.toolExecutionMode_ != 0) { + setToolExecutionModeValue(other.getToolExecutionModeValue()); + } + if (other.hasEvaluationMetricsThresholds()) { + mergeEvaluationMetricsThresholds(other.getEvaluationMetricsThresholds()); + } + if (variableDeclarationsBuilder_ == null) { + if (!other.variableDeclarations_.isEmpty()) { + if (variableDeclarations_.isEmpty()) { + variableDeclarations_ = other.variableDeclarations_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureVariableDeclarationsIsMutable(); + variableDeclarations_.addAll(other.variableDeclarations_); + } + onChanged(); + } + } else { + if (!other.variableDeclarations_.isEmpty()) { + if (variableDeclarationsBuilder_.isEmpty()) { + variableDeclarationsBuilder_.dispose(); + variableDeclarationsBuilder_ = null; + variableDeclarations_ = other.variableDeclarations_; + bitField0_ = (bitField0_ & ~0x00001000); + variableDeclarationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetVariableDeclarationsFieldBuilder() + : null; + } else { + variableDeclarationsBuilder_.addAllMessages(other.variableDeclarations_); + } + } + } + if (predefinedVariableDeclarationsBuilder_ == null) { + if (!other.predefinedVariableDeclarations_.isEmpty()) { + if (predefinedVariableDeclarations_.isEmpty()) { + predefinedVariableDeclarations_ = other.predefinedVariableDeclarations_; + bitField0_ = (bitField0_ & ~0x00002000); + } else { + ensurePredefinedVariableDeclarationsIsMutable(); + predefinedVariableDeclarations_.addAll(other.predefinedVariableDeclarations_); + } + onChanged(); + } + } else { + if (!other.predefinedVariableDeclarations_.isEmpty()) { + if (predefinedVariableDeclarationsBuilder_.isEmpty()) { + predefinedVariableDeclarationsBuilder_.dispose(); + predefinedVariableDeclarationsBuilder_ = null; + predefinedVariableDeclarations_ = other.predefinedVariableDeclarations_; + bitField0_ = (bitField0_ & ~0x00002000); + predefinedVariableDeclarationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetPredefinedVariableDeclarationsFieldBuilder() + : null; + } else { + predefinedVariableDeclarationsBuilder_.addAllMessages( + other.predefinedVariableDeclarations_); + } + } + } + if (!other.getGlobalInstruction().isEmpty()) { + globalInstruction_ = other.globalInstruction_; + bitField0_ |= 0x00004000; + onChanged(); + } + if (!other.guardrails_.isEmpty()) { + if (guardrails_.isEmpty()) { + guardrails_ = other.guardrails_; + bitField0_ |= 0x00008000; + } else { + ensureGuardrailsIsMutable(); + guardrails_.addAll(other.guardrails_); + } + onChanged(); + } + if (other.hasDataStoreSettings()) { + mergeDataStoreSettings(other.getDataStoreSettings()); + } + if (other.hasDefaultChannelProfile()) { + mergeDefaultChannelProfile(other.getDefaultChannelProfile()); + } + internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); + bitField0_ |= 0x00040000; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00200000; + onChanged(); + } + if (other.getDeploymentCount() != 0) { + setDeploymentCount(other.getDeploymentCount()); + } + if (other.hasClientCertificateSettings()) { + mergeClientCertificateSettings(other.getClientCertificateSettings()); + } + if (other.getLocked() != false) { + setLocked(other.getLocked()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + { + rootAgent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00080000; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetAudioProcessingConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetLoggingSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureGuardrailsIsMutable(); + guardrails_.add(s); + break; + } // case 82 + case 90: + { + com.google.protobuf.MapEntry metadata__ = + input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableMetadata() + .getMutableMap() + .put(metadata__.getKey(), metadata__.getValue()); + bitField0_ |= 0x00040000; + break; + } // case 90 + case 98: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00200000; + break; + } // case 98 + case 106: + { + input.readMessage( + internalGetModelSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 106 + case 114: + { + com.google.cloud.ces.v1.App.VariableDeclaration m = + input.readMessage( + com.google.cloud.ces.v1.App.VariableDeclaration.parser(), + extensionRegistry); + if (variableDeclarationsBuilder_ == null) { + ensureVariableDeclarationsIsMutable(); + variableDeclarations_.add(m); + } else { + variableDeclarationsBuilder_.addMessage(m); + } + break; + } // case 114 + case 122: + { + input.readMessage( + internalGetDataStoreSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 122 + case 138: + { + globalInstruction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00004000; + break; + } // case 138 + case 146: + { + input.readMessage( + internalGetLanguageSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 146 + case 178: + { + input.readMessage( + internalGetDefaultChannelProfileFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 178 + case 184: + { + deploymentCount_ = input.readInt32(); + bitField0_ |= 0x00400000; + break; + } // case 184 + case 194: + { + input.readMessage( + internalGetEvaluationMetricsThresholdsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 194 + case 202: + { + input.readMessage( + internalGetClientCertificateSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00800000; + break; + } // case 202 + case 218: + { + input.readMessage( + internalGetTimeZoneSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 218 + case 226: + { + com.google.cloud.ces.v1.App.VariableDeclaration m = + input.readMessage( + com.google.cloud.ces.v1.App.VariableDeclaration.parser(), + extensionRegistry); + if (predefinedVariableDeclarationsBuilder_ == null) { + ensurePredefinedVariableDeclarationsIsMutable(); + predefinedVariableDeclarations_.add(m); + } else { + predefinedVariableDeclarationsBuilder_.addMessage(m); + } + break; + } // case 226 + case 232: + { + locked_ = input.readBool(); + bitField0_ |= 0x01000000; + break; + } // case 232 + case 248: + { + pinned_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 248 + case 256: + { + toolExecutionMode_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 256 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Identifier. The unique identifier of the app.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the app.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the app.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the app.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the app.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
      +     * Required. Display name of the app.
      +     * 
      + * + * 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; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. Display name of the app.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. Display name of the app.
      +     * 
      + * + * 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(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. Display name of the app.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. Display name of the app.
      +     * 
      + * + * 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(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
      +     * Optional. Human-readable description of the app.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Human-readable description of the app.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Human-readable description of the app.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Human-readable description of the app.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Human-readable description of the app.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean pinned_; + + /** + * + * + *
      +     * Optional. Whether the app is pinned in the app list.
      +     * 
      + * + * bool pinned = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pinned. + */ + @java.lang.Override + public boolean getPinned() { + return pinned_; + } + + /** + * + * + *
      +     * Optional. Whether the app is pinned in the app list.
      +     * 
      + * + * bool pinned = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pinned to set. + * @return This builder for chaining. + */ + public Builder setPinned(boolean value) { + + pinned_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Whether the app is pinned in the app list.
      +     * 
      + * + * bool pinned = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPinned() { + bitField0_ = (bitField0_ & ~0x00000008); + pinned_ = false; + onChanged(); + return this; + } + + private java.lang.Object rootAgent_ = ""; + + /** + * + * + *
      +     * Optional. The root agent is the entry point of the app.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * string root_agent = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The rootAgent. + */ + public java.lang.String getRootAgent() { + java.lang.Object ref = rootAgent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rootAgent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The root agent is the entry point of the app.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * string root_agent = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for rootAgent. + */ + public com.google.protobuf.ByteString getRootAgentBytes() { + java.lang.Object ref = rootAgent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rootAgent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The root agent is the entry point of the app.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * string root_agent = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The rootAgent to set. + * @return This builder for chaining. + */ + public Builder setRootAgent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rootAgent_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The root agent is the entry point of the app.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * string root_agent = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRootAgent() { + rootAgent_ = getDefaultInstance().getRootAgent(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The root agent is the entry point of the app.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * string root_agent = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for rootAgent to set. + * @return This builder for chaining. + */ + public Builder setRootAgentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rootAgent_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.LanguageSettings languageSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.LanguageSettings, + com.google.cloud.ces.v1.LanguageSettings.Builder, + com.google.cloud.ces.v1.LanguageSettingsOrBuilder> + languageSettingsBuilder_; + + /** + * + * + *
      +     * Optional. Language settings of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.LanguageSettings language_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the languageSettings field is set. + */ + public boolean hasLanguageSettings() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +     * Optional. Language settings of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.LanguageSettings language_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The languageSettings. + */ + public com.google.cloud.ces.v1.LanguageSettings getLanguageSettings() { + if (languageSettingsBuilder_ == null) { + return languageSettings_ == null + ? com.google.cloud.ces.v1.LanguageSettings.getDefaultInstance() + : languageSettings_; + } else { + return languageSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Language settings of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.LanguageSettings language_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLanguageSettings(com.google.cloud.ces.v1.LanguageSettings value) { + if (languageSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + languageSettings_ = value; + } else { + languageSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Language settings of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.LanguageSettings language_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLanguageSettings( + com.google.cloud.ces.v1.LanguageSettings.Builder builderForValue) { + if (languageSettingsBuilder_ == null) { + languageSettings_ = builderForValue.build(); + } else { + languageSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Language settings of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.LanguageSettings language_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeLanguageSettings(com.google.cloud.ces.v1.LanguageSettings value) { + if (languageSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && languageSettings_ != null + && languageSettings_ != com.google.cloud.ces.v1.LanguageSettings.getDefaultInstance()) { + getLanguageSettingsBuilder().mergeFrom(value); + } else { + languageSettings_ = value; + } + } else { + languageSettingsBuilder_.mergeFrom(value); + } + if (languageSettings_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Language settings of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.LanguageSettings language_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearLanguageSettings() { + bitField0_ = (bitField0_ & ~0x00000020); + languageSettings_ = null; + if (languageSettingsBuilder_ != null) { + languageSettingsBuilder_.dispose(); + languageSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Language settings of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.LanguageSettings language_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.LanguageSettings.Builder getLanguageSettingsBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetLanguageSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Language settings of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.LanguageSettings language_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.LanguageSettingsOrBuilder getLanguageSettingsOrBuilder() { + if (languageSettingsBuilder_ != null) { + return languageSettingsBuilder_.getMessageOrBuilder(); + } else { + return languageSettings_ == null + ? com.google.cloud.ces.v1.LanguageSettings.getDefaultInstance() + : languageSettings_; + } + } + + /** + * + * + *
      +     * Optional. Language settings of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.LanguageSettings language_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.LanguageSettings, + com.google.cloud.ces.v1.LanguageSettings.Builder, + com.google.cloud.ces.v1.LanguageSettingsOrBuilder> + internalGetLanguageSettingsFieldBuilder() { + if (languageSettingsBuilder_ == null) { + languageSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.LanguageSettings, + com.google.cloud.ces.v1.LanguageSettings.Builder, + com.google.cloud.ces.v1.LanguageSettingsOrBuilder>( + getLanguageSettings(), getParentForChildren(), isClean()); + languageSettings_ = null; + } + return languageSettingsBuilder_; + } + + private com.google.cloud.ces.v1.TimeZoneSettings timeZoneSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.TimeZoneSettings, + com.google.cloud.ces.v1.TimeZoneSettings.Builder, + com.google.cloud.ces.v1.TimeZoneSettingsOrBuilder> + timeZoneSettingsBuilder_; + + /** + * + * + *
      +     * Optional. TimeZone settings of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.TimeZoneSettings time_zone_settings = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the timeZoneSettings field is set. + */ + public boolean hasTimeZoneSettings() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
      +     * Optional. TimeZone settings of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.TimeZoneSettings time_zone_settings = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The timeZoneSettings. + */ + public com.google.cloud.ces.v1.TimeZoneSettings getTimeZoneSettings() { + if (timeZoneSettingsBuilder_ == null) { + return timeZoneSettings_ == null + ? com.google.cloud.ces.v1.TimeZoneSettings.getDefaultInstance() + : timeZoneSettings_; + } else { + return timeZoneSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. TimeZone settings of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.TimeZoneSettings time_zone_settings = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTimeZoneSettings(com.google.cloud.ces.v1.TimeZoneSettings value) { + if (timeZoneSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeZoneSettings_ = value; + } else { + timeZoneSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. TimeZone settings of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.TimeZoneSettings time_zone_settings = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTimeZoneSettings( + com.google.cloud.ces.v1.TimeZoneSettings.Builder builderForValue) { + if (timeZoneSettingsBuilder_ == null) { + timeZoneSettings_ = builderForValue.build(); + } else { + timeZoneSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. TimeZone settings of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.TimeZoneSettings time_zone_settings = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeTimeZoneSettings(com.google.cloud.ces.v1.TimeZoneSettings value) { + if (timeZoneSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && timeZoneSettings_ != null + && timeZoneSettings_ != com.google.cloud.ces.v1.TimeZoneSettings.getDefaultInstance()) { + getTimeZoneSettingsBuilder().mergeFrom(value); + } else { + timeZoneSettings_ = value; + } + } else { + timeZoneSettingsBuilder_.mergeFrom(value); + } + if (timeZoneSettings_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. TimeZone settings of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.TimeZoneSettings time_zone_settings = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTimeZoneSettings() { + bitField0_ = (bitField0_ & ~0x00000040); + timeZoneSettings_ = null; + if (timeZoneSettingsBuilder_ != null) { + timeZoneSettingsBuilder_.dispose(); + timeZoneSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. TimeZone settings of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.TimeZoneSettings time_zone_settings = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.TimeZoneSettings.Builder getTimeZoneSettingsBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetTimeZoneSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. TimeZone settings of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.TimeZoneSettings time_zone_settings = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.TimeZoneSettingsOrBuilder getTimeZoneSettingsOrBuilder() { + if (timeZoneSettingsBuilder_ != null) { + return timeZoneSettingsBuilder_.getMessageOrBuilder(); + } else { + return timeZoneSettings_ == null + ? com.google.cloud.ces.v1.TimeZoneSettings.getDefaultInstance() + : timeZoneSettings_; + } + } + + /** + * + * + *
      +     * Optional. TimeZone settings of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.TimeZoneSettings time_zone_settings = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.TimeZoneSettings, + com.google.cloud.ces.v1.TimeZoneSettings.Builder, + com.google.cloud.ces.v1.TimeZoneSettingsOrBuilder> + internalGetTimeZoneSettingsFieldBuilder() { + if (timeZoneSettingsBuilder_ == null) { + timeZoneSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.TimeZoneSettings, + com.google.cloud.ces.v1.TimeZoneSettings.Builder, + com.google.cloud.ces.v1.TimeZoneSettingsOrBuilder>( + getTimeZoneSettings(), getParentForChildren(), isClean()); + timeZoneSettings_ = null; + } + return timeZoneSettingsBuilder_; + } + + private com.google.cloud.ces.v1.AudioProcessingConfig audioProcessingConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.AudioProcessingConfig, + com.google.cloud.ces.v1.AudioProcessingConfig.Builder, + com.google.cloud.ces.v1.AudioProcessingConfigOrBuilder> + audioProcessingConfigBuilder_; + + /** + * + * + *
      +     * Optional. Audio processing configuration of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioProcessingConfig audio_processing_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the audioProcessingConfig field is set. + */ + public boolean hasAudioProcessingConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
      +     * Optional. Audio processing configuration of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioProcessingConfig audio_processing_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The audioProcessingConfig. + */ + public com.google.cloud.ces.v1.AudioProcessingConfig getAudioProcessingConfig() { + if (audioProcessingConfigBuilder_ == null) { + return audioProcessingConfig_ == null + ? com.google.cloud.ces.v1.AudioProcessingConfig.getDefaultInstance() + : audioProcessingConfig_; + } else { + return audioProcessingConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Audio processing configuration of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioProcessingConfig audio_processing_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAudioProcessingConfig(com.google.cloud.ces.v1.AudioProcessingConfig value) { + if (audioProcessingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + audioProcessingConfig_ = value; + } else { + audioProcessingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Audio processing configuration of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioProcessingConfig audio_processing_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAudioProcessingConfig( + com.google.cloud.ces.v1.AudioProcessingConfig.Builder builderForValue) { + if (audioProcessingConfigBuilder_ == null) { + audioProcessingConfig_ = builderForValue.build(); + } else { + audioProcessingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Audio processing configuration of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioProcessingConfig audio_processing_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAudioProcessingConfig(com.google.cloud.ces.v1.AudioProcessingConfig value) { + if (audioProcessingConfigBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && audioProcessingConfig_ != null + && audioProcessingConfig_ + != com.google.cloud.ces.v1.AudioProcessingConfig.getDefaultInstance()) { + getAudioProcessingConfigBuilder().mergeFrom(value); + } else { + audioProcessingConfig_ = value; + } + } else { + audioProcessingConfigBuilder_.mergeFrom(value); + } + if (audioProcessingConfig_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Audio processing configuration of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioProcessingConfig audio_processing_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAudioProcessingConfig() { + bitField0_ = (bitField0_ & ~0x00000080); + audioProcessingConfig_ = null; + if (audioProcessingConfigBuilder_ != null) { + audioProcessingConfigBuilder_.dispose(); + audioProcessingConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Audio processing configuration of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioProcessingConfig audio_processing_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.AudioProcessingConfig.Builder getAudioProcessingConfigBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetAudioProcessingConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Audio processing configuration of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioProcessingConfig audio_processing_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.AudioProcessingConfigOrBuilder + getAudioProcessingConfigOrBuilder() { + if (audioProcessingConfigBuilder_ != null) { + return audioProcessingConfigBuilder_.getMessageOrBuilder(); + } else { + return audioProcessingConfig_ == null + ? com.google.cloud.ces.v1.AudioProcessingConfig.getDefaultInstance() + : audioProcessingConfig_; + } + } + + /** + * + * + *
      +     * Optional. Audio processing configuration of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioProcessingConfig audio_processing_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.AudioProcessingConfig, + com.google.cloud.ces.v1.AudioProcessingConfig.Builder, + com.google.cloud.ces.v1.AudioProcessingConfigOrBuilder> + internalGetAudioProcessingConfigFieldBuilder() { + if (audioProcessingConfigBuilder_ == null) { + audioProcessingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.AudioProcessingConfig, + com.google.cloud.ces.v1.AudioProcessingConfig.Builder, + com.google.cloud.ces.v1.AudioProcessingConfigOrBuilder>( + getAudioProcessingConfig(), getParentForChildren(), isClean()); + audioProcessingConfig_ = null; + } + return audioProcessingConfigBuilder_; + } + + private com.google.cloud.ces.v1.LoggingSettings loggingSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.LoggingSettings, + com.google.cloud.ces.v1.LoggingSettings.Builder, + com.google.cloud.ces.v1.LoggingSettingsOrBuilder> + loggingSettingsBuilder_; + + /** + * + * + *
      +     * Optional. Logging settings of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.LoggingSettings logging_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the loggingSettings field is set. + */ + public boolean hasLoggingSettings() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
      +     * Optional. Logging settings of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.LoggingSettings logging_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The loggingSettings. + */ + public com.google.cloud.ces.v1.LoggingSettings getLoggingSettings() { + if (loggingSettingsBuilder_ == null) { + return loggingSettings_ == null + ? com.google.cloud.ces.v1.LoggingSettings.getDefaultInstance() + : loggingSettings_; + } else { + return loggingSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Logging settings of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.LoggingSettings logging_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLoggingSettings(com.google.cloud.ces.v1.LoggingSettings value) { + if (loggingSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + loggingSettings_ = value; + } else { + loggingSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Logging settings of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.LoggingSettings logging_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLoggingSettings( + com.google.cloud.ces.v1.LoggingSettings.Builder builderForValue) { + if (loggingSettingsBuilder_ == null) { + loggingSettings_ = builderForValue.build(); + } else { + loggingSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Logging settings of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.LoggingSettings logging_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeLoggingSettings(com.google.cloud.ces.v1.LoggingSettings value) { + if (loggingSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && loggingSettings_ != null + && loggingSettings_ != com.google.cloud.ces.v1.LoggingSettings.getDefaultInstance()) { + getLoggingSettingsBuilder().mergeFrom(value); + } else { + loggingSettings_ = value; + } + } else { + loggingSettingsBuilder_.mergeFrom(value); + } + if (loggingSettings_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Logging settings of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.LoggingSettings logging_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearLoggingSettings() { + bitField0_ = (bitField0_ & ~0x00000100); + loggingSettings_ = null; + if (loggingSettingsBuilder_ != null) { + loggingSettingsBuilder_.dispose(); + loggingSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Logging settings of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.LoggingSettings logging_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.LoggingSettings.Builder getLoggingSettingsBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return internalGetLoggingSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Logging settings of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.LoggingSettings logging_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.LoggingSettingsOrBuilder getLoggingSettingsOrBuilder() { + if (loggingSettingsBuilder_ != null) { + return loggingSettingsBuilder_.getMessageOrBuilder(); + } else { + return loggingSettings_ == null + ? com.google.cloud.ces.v1.LoggingSettings.getDefaultInstance() + : loggingSettings_; + } + } + + /** + * + * + *
      +     * Optional. Logging settings of the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.LoggingSettings logging_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.LoggingSettings, + com.google.cloud.ces.v1.LoggingSettings.Builder, + com.google.cloud.ces.v1.LoggingSettingsOrBuilder> + internalGetLoggingSettingsFieldBuilder() { + if (loggingSettingsBuilder_ == null) { + loggingSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.LoggingSettings, + com.google.cloud.ces.v1.LoggingSettings.Builder, + com.google.cloud.ces.v1.LoggingSettingsOrBuilder>( + getLoggingSettings(), getParentForChildren(), isClean()); + loggingSettings_ = null; + } + return loggingSettingsBuilder_; + } + + private com.google.cloud.ces.v1.ModelSettings modelSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ModelSettings, + com.google.cloud.ces.v1.ModelSettings.Builder, + com.google.cloud.ces.v1.ModelSettingsOrBuilder> + modelSettingsBuilder_; + + /** + * + * + *
      +     * Optional. The default LLM model settings for the app.
      +     * Individual resources (e.g. agents, guardrails) can override these
      +     * configurations as needed.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelSettings field is set. + */ + public boolean hasModelSettings() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
      +     * Optional. The default LLM model settings for the app.
      +     * Individual resources (e.g. agents, guardrails) can override these
      +     * configurations as needed.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelSettings. + */ + public com.google.cloud.ces.v1.ModelSettings getModelSettings() { + if (modelSettingsBuilder_ == null) { + return modelSettings_ == null + ? com.google.cloud.ces.v1.ModelSettings.getDefaultInstance() + : modelSettings_; + } else { + return modelSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. The default LLM model settings for the app.
      +     * Individual resources (e.g. agents, guardrails) can override these
      +     * configurations as needed.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setModelSettings(com.google.cloud.ces.v1.ModelSettings value) { + if (modelSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modelSettings_ = value; + } else { + modelSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The default LLM model settings for the app.
      +     * Individual resources (e.g. agents, guardrails) can override these
      +     * configurations as needed.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setModelSettings(com.google.cloud.ces.v1.ModelSettings.Builder builderForValue) { + if (modelSettingsBuilder_ == null) { + modelSettings_ = builderForValue.build(); + } else { + modelSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The default LLM model settings for the app.
      +     * Individual resources (e.g. agents, guardrails) can override these
      +     * configurations as needed.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeModelSettings(com.google.cloud.ces.v1.ModelSettings value) { + if (modelSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && modelSettings_ != null + && modelSettings_ != com.google.cloud.ces.v1.ModelSettings.getDefaultInstance()) { + getModelSettingsBuilder().mergeFrom(value); + } else { + modelSettings_ = value; + } + } else { + modelSettingsBuilder_.mergeFrom(value); + } + if (modelSettings_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The default LLM model settings for the app.
      +     * Individual resources (e.g. agents, guardrails) can override these
      +     * configurations as needed.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearModelSettings() { + bitField0_ = (bitField0_ & ~0x00000200); + modelSettings_ = null; + if (modelSettingsBuilder_ != null) { + modelSettingsBuilder_.dispose(); + modelSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The default LLM model settings for the app.
      +     * Individual resources (e.g. agents, guardrails) can override these
      +     * configurations as needed.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ModelSettings.Builder getModelSettingsBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetModelSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The default LLM model settings for the app.
      +     * Individual resources (e.g. agents, guardrails) can override these
      +     * configurations as needed.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ModelSettingsOrBuilder getModelSettingsOrBuilder() { + if (modelSettingsBuilder_ != null) { + return modelSettingsBuilder_.getMessageOrBuilder(); + } else { + return modelSettings_ == null + ? com.google.cloud.ces.v1.ModelSettings.getDefaultInstance() + : modelSettings_; + } + } + + /** + * + * + *
      +     * Optional. The default LLM model settings for the app.
      +     * Individual resources (e.g. agents, guardrails) can override these
      +     * configurations as needed.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ModelSettings, + com.google.cloud.ces.v1.ModelSettings.Builder, + com.google.cloud.ces.v1.ModelSettingsOrBuilder> + internalGetModelSettingsFieldBuilder() { + if (modelSettingsBuilder_ == null) { + modelSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ModelSettings, + com.google.cloud.ces.v1.ModelSettings.Builder, + com.google.cloud.ces.v1.ModelSettingsOrBuilder>( + getModelSettings(), getParentForChildren(), isClean()); + modelSettings_ = null; + } + return modelSettingsBuilder_; + } + + private int toolExecutionMode_ = 0; + + /** + * + * + *
      +     * Optional. The tool execution mode for the app. If not provided, will
      +     * default to PARALLEL.
      +     * 
      + * + * + * .google.cloud.ces.v1.App.ToolExecutionMode tool_execution_mode = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for toolExecutionMode. + */ + @java.lang.Override + public int getToolExecutionModeValue() { + return toolExecutionMode_; + } + + /** + * + * + *
      +     * Optional. The tool execution mode for the app. If not provided, will
      +     * default to PARALLEL.
      +     * 
      + * + * + * .google.cloud.ces.v1.App.ToolExecutionMode tool_execution_mode = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for toolExecutionMode to set. + * @return This builder for chaining. + */ + public Builder setToolExecutionModeValue(int value) { + toolExecutionMode_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The tool execution mode for the app. If not provided, will
      +     * default to PARALLEL.
      +     * 
      + * + * + * .google.cloud.ces.v1.App.ToolExecutionMode tool_execution_mode = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolExecutionMode. + */ + @java.lang.Override + public com.google.cloud.ces.v1.App.ToolExecutionMode getToolExecutionMode() { + com.google.cloud.ces.v1.App.ToolExecutionMode result = + com.google.cloud.ces.v1.App.ToolExecutionMode.forNumber(toolExecutionMode_); + return result == null ? com.google.cloud.ces.v1.App.ToolExecutionMode.UNRECOGNIZED : result; + } + + /** + * + * + *
      +     * Optional. The tool execution mode for the app. If not provided, will
      +     * default to PARALLEL.
      +     * 
      + * + * + * .google.cloud.ces.v1.App.ToolExecutionMode tool_execution_mode = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The toolExecutionMode to set. + * @return This builder for chaining. + */ + public Builder setToolExecutionMode(com.google.cloud.ces.v1.App.ToolExecutionMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + toolExecutionMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The tool execution mode for the app. If not provided, will
      +     * default to PARALLEL.
      +     * 
      + * + * + * .google.cloud.ces.v1.App.ToolExecutionMode tool_execution_mode = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearToolExecutionMode() { + bitField0_ = (bitField0_ & ~0x00000400); + toolExecutionMode_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.EvaluationMetricsThresholds evaluationMetricsThresholds_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EvaluationMetricsThresholds, + com.google.cloud.ces.v1.EvaluationMetricsThresholds.Builder, + com.google.cloud.ces.v1.EvaluationMetricsThresholdsOrBuilder> + evaluationMetricsThresholdsBuilder_; + + /** + * + * + *
      +     * Optional. The evaluation thresholds for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds evaluation_metrics_thresholds = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the evaluationMetricsThresholds field is set. + */ + public boolean hasEvaluationMetricsThresholds() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
      +     * Optional. The evaluation thresholds for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds evaluation_metrics_thresholds = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The evaluationMetricsThresholds. + */ + public com.google.cloud.ces.v1.EvaluationMetricsThresholds getEvaluationMetricsThresholds() { + if (evaluationMetricsThresholdsBuilder_ == null) { + return evaluationMetricsThresholds_ == null + ? com.google.cloud.ces.v1.EvaluationMetricsThresholds.getDefaultInstance() + : evaluationMetricsThresholds_; + } else { + return evaluationMetricsThresholdsBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. The evaluation thresholds for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds evaluation_metrics_thresholds = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEvaluationMetricsThresholds( + com.google.cloud.ces.v1.EvaluationMetricsThresholds value) { + if (evaluationMetricsThresholdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evaluationMetricsThresholds_ = value; + } else { + evaluationMetricsThresholdsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The evaluation thresholds for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds evaluation_metrics_thresholds = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEvaluationMetricsThresholds( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.Builder builderForValue) { + if (evaluationMetricsThresholdsBuilder_ == null) { + evaluationMetricsThresholds_ = builderForValue.build(); + } else { + evaluationMetricsThresholdsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The evaluation thresholds for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds evaluation_metrics_thresholds = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEvaluationMetricsThresholds( + com.google.cloud.ces.v1.EvaluationMetricsThresholds value) { + if (evaluationMetricsThresholdsBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && evaluationMetricsThresholds_ != null + && evaluationMetricsThresholds_ + != com.google.cloud.ces.v1.EvaluationMetricsThresholds.getDefaultInstance()) { + getEvaluationMetricsThresholdsBuilder().mergeFrom(value); + } else { + evaluationMetricsThresholds_ = value; + } + } else { + evaluationMetricsThresholdsBuilder_.mergeFrom(value); + } + if (evaluationMetricsThresholds_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The evaluation thresholds for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds evaluation_metrics_thresholds = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEvaluationMetricsThresholds() { + bitField0_ = (bitField0_ & ~0x00000800); + evaluationMetricsThresholds_ = null; + if (evaluationMetricsThresholdsBuilder_ != null) { + evaluationMetricsThresholdsBuilder_.dispose(); + evaluationMetricsThresholdsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The evaluation thresholds for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds evaluation_metrics_thresholds = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.Builder + getEvaluationMetricsThresholdsBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return internalGetEvaluationMetricsThresholdsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The evaluation thresholds for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds evaluation_metrics_thresholds = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.EvaluationMetricsThresholdsOrBuilder + getEvaluationMetricsThresholdsOrBuilder() { + if (evaluationMetricsThresholdsBuilder_ != null) { + return evaluationMetricsThresholdsBuilder_.getMessageOrBuilder(); + } else { + return evaluationMetricsThresholds_ == null + ? com.google.cloud.ces.v1.EvaluationMetricsThresholds.getDefaultInstance() + : evaluationMetricsThresholds_; + } + } + + /** + * + * + *
      +     * Optional. The evaluation thresholds for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds evaluation_metrics_thresholds = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EvaluationMetricsThresholds, + com.google.cloud.ces.v1.EvaluationMetricsThresholds.Builder, + com.google.cloud.ces.v1.EvaluationMetricsThresholdsOrBuilder> + internalGetEvaluationMetricsThresholdsFieldBuilder() { + if (evaluationMetricsThresholdsBuilder_ == null) { + evaluationMetricsThresholdsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EvaluationMetricsThresholds, + com.google.cloud.ces.v1.EvaluationMetricsThresholds.Builder, + com.google.cloud.ces.v1.EvaluationMetricsThresholdsOrBuilder>( + getEvaluationMetricsThresholds(), getParentForChildren(), isClean()); + evaluationMetricsThresholds_ = null; + } + return evaluationMetricsThresholdsBuilder_; + } + + private java.util.List variableDeclarations_ = + java.util.Collections.emptyList(); + + private void ensureVariableDeclarationsIsMutable() { + if (!((bitField0_ & 0x00001000) != 0)) { + variableDeclarations_ = + new java.util.ArrayList( + variableDeclarations_); + bitField0_ |= 0x00001000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.App.VariableDeclaration, + com.google.cloud.ces.v1.App.VariableDeclaration.Builder, + com.google.cloud.ces.v1.App.VariableDeclarationOrBuilder> + variableDeclarationsBuilder_; + + /** + * + * + *
      +     * Optional. The declarations of the variables.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration variable_declarations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getVariableDeclarationsList() { + if (variableDeclarationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(variableDeclarations_); + } else { + return variableDeclarationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Optional. The declarations of the variables.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration variable_declarations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getVariableDeclarationsCount() { + if (variableDeclarationsBuilder_ == null) { + return variableDeclarations_.size(); + } else { + return variableDeclarationsBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Optional. The declarations of the variables.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration variable_declarations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.App.VariableDeclaration getVariableDeclarations(int index) { + if (variableDeclarationsBuilder_ == null) { + return variableDeclarations_.get(index); + } else { + return variableDeclarationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Optional. The declarations of the variables.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration variable_declarations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setVariableDeclarations( + int index, com.google.cloud.ces.v1.App.VariableDeclaration value) { + if (variableDeclarationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVariableDeclarationsIsMutable(); + variableDeclarations_.set(index, value); + onChanged(); + } else { + variableDeclarationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The declarations of the variables.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration variable_declarations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setVariableDeclarations( + int index, com.google.cloud.ces.v1.App.VariableDeclaration.Builder builderForValue) { + if (variableDeclarationsBuilder_ == null) { + ensureVariableDeclarationsIsMutable(); + variableDeclarations_.set(index, builderForValue.build()); + onChanged(); + } else { + variableDeclarationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The declarations of the variables.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration variable_declarations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addVariableDeclarations(com.google.cloud.ces.v1.App.VariableDeclaration value) { + if (variableDeclarationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVariableDeclarationsIsMutable(); + variableDeclarations_.add(value); + onChanged(); + } else { + variableDeclarationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The declarations of the variables.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration variable_declarations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addVariableDeclarations( + int index, com.google.cloud.ces.v1.App.VariableDeclaration value) { + if (variableDeclarationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVariableDeclarationsIsMutable(); + variableDeclarations_.add(index, value); + onChanged(); + } else { + variableDeclarationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The declarations of the variables.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration variable_declarations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addVariableDeclarations( + com.google.cloud.ces.v1.App.VariableDeclaration.Builder builderForValue) { + if (variableDeclarationsBuilder_ == null) { + ensureVariableDeclarationsIsMutable(); + variableDeclarations_.add(builderForValue.build()); + onChanged(); + } else { + variableDeclarationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The declarations of the variables.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration variable_declarations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addVariableDeclarations( + int index, com.google.cloud.ces.v1.App.VariableDeclaration.Builder builderForValue) { + if (variableDeclarationsBuilder_ == null) { + ensureVariableDeclarationsIsMutable(); + variableDeclarations_.add(index, builderForValue.build()); + onChanged(); + } else { + variableDeclarationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The declarations of the variables.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration variable_declarations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllVariableDeclarations( + java.lang.Iterable values) { + if (variableDeclarationsBuilder_ == null) { + ensureVariableDeclarationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, variableDeclarations_); + onChanged(); + } else { + variableDeclarationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Optional. The declarations of the variables.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration variable_declarations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearVariableDeclarations() { + if (variableDeclarationsBuilder_ == null) { + variableDeclarations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + } else { + variableDeclarationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The declarations of the variables.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration variable_declarations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeVariableDeclarations(int index) { + if (variableDeclarationsBuilder_ == null) { + ensureVariableDeclarationsIsMutable(); + variableDeclarations_.remove(index); + onChanged(); + } else { + variableDeclarationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Optional. The declarations of the variables.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration variable_declarations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.App.VariableDeclaration.Builder getVariableDeclarationsBuilder( + int index) { + return internalGetVariableDeclarationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Optional. The declarations of the variables.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration variable_declarations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.App.VariableDeclarationOrBuilder + getVariableDeclarationsOrBuilder(int index) { + if (variableDeclarationsBuilder_ == null) { + return variableDeclarations_.get(index); + } else { + return variableDeclarationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Optional. The declarations of the variables.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration variable_declarations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getVariableDeclarationsOrBuilderList() { + if (variableDeclarationsBuilder_ != null) { + return variableDeclarationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(variableDeclarations_); + } + } + + /** + * + * + *
      +     * Optional. The declarations of the variables.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration variable_declarations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.App.VariableDeclaration.Builder + addVariableDeclarationsBuilder() { + return internalGetVariableDeclarationsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.App.VariableDeclaration.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. The declarations of the variables.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration variable_declarations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.App.VariableDeclaration.Builder addVariableDeclarationsBuilder( + int index) { + return internalGetVariableDeclarationsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.App.VariableDeclaration.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. The declarations of the variables.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration variable_declarations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getVariableDeclarationsBuilderList() { + return internalGetVariableDeclarationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.App.VariableDeclaration, + com.google.cloud.ces.v1.App.VariableDeclaration.Builder, + com.google.cloud.ces.v1.App.VariableDeclarationOrBuilder> + internalGetVariableDeclarationsFieldBuilder() { + if (variableDeclarationsBuilder_ == null) { + variableDeclarationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.App.VariableDeclaration, + com.google.cloud.ces.v1.App.VariableDeclaration.Builder, + com.google.cloud.ces.v1.App.VariableDeclarationOrBuilder>( + variableDeclarations_, + ((bitField0_ & 0x00001000) != 0), + getParentForChildren(), + isClean()); + variableDeclarations_ = null; + } + return variableDeclarationsBuilder_; + } + + private java.util.List + predefinedVariableDeclarations_ = java.util.Collections.emptyList(); + + private void ensurePredefinedVariableDeclarationsIsMutable() { + if (!((bitField0_ & 0x00002000) != 0)) { + predefinedVariableDeclarations_ = + new java.util.ArrayList( + predefinedVariableDeclarations_); + bitField0_ |= 0x00002000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.App.VariableDeclaration, + com.google.cloud.ces.v1.App.VariableDeclaration.Builder, + com.google.cloud.ces.v1.App.VariableDeclarationOrBuilder> + predefinedVariableDeclarationsBuilder_; + + /** + * + * + *
      +     * Output only. The declarations of predefined variables for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration predefined_variable_declarations = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getPredefinedVariableDeclarationsList() { + if (predefinedVariableDeclarationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(predefinedVariableDeclarations_); + } else { + return predefinedVariableDeclarationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Output only. The declarations of predefined variables for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration predefined_variable_declarations = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getPredefinedVariableDeclarationsCount() { + if (predefinedVariableDeclarationsBuilder_ == null) { + return predefinedVariableDeclarations_.size(); + } else { + return predefinedVariableDeclarationsBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Output only. The declarations of predefined variables for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration predefined_variable_declarations = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1.App.VariableDeclaration getPredefinedVariableDeclarations( + int index) { + if (predefinedVariableDeclarationsBuilder_ == null) { + return predefinedVariableDeclarations_.get(index); + } else { + return predefinedVariableDeclarationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Output only. The declarations of predefined variables for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration predefined_variable_declarations = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPredefinedVariableDeclarations( + int index, com.google.cloud.ces.v1.App.VariableDeclaration value) { + if (predefinedVariableDeclarationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePredefinedVariableDeclarationsIsMutable(); + predefinedVariableDeclarations_.set(index, value); + onChanged(); + } else { + predefinedVariableDeclarationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Output only. The declarations of predefined variables for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration predefined_variable_declarations = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPredefinedVariableDeclarations( + int index, com.google.cloud.ces.v1.App.VariableDeclaration.Builder builderForValue) { + if (predefinedVariableDeclarationsBuilder_ == null) { + ensurePredefinedVariableDeclarationsIsMutable(); + predefinedVariableDeclarations_.set(index, builderForValue.build()); + onChanged(); + } else { + predefinedVariableDeclarationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Output only. The declarations of predefined variables for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration predefined_variable_declarations = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPredefinedVariableDeclarations( + com.google.cloud.ces.v1.App.VariableDeclaration value) { + if (predefinedVariableDeclarationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePredefinedVariableDeclarationsIsMutable(); + predefinedVariableDeclarations_.add(value); + onChanged(); + } else { + predefinedVariableDeclarationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Output only. The declarations of predefined variables for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration predefined_variable_declarations = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPredefinedVariableDeclarations( + int index, com.google.cloud.ces.v1.App.VariableDeclaration value) { + if (predefinedVariableDeclarationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePredefinedVariableDeclarationsIsMutable(); + predefinedVariableDeclarations_.add(index, value); + onChanged(); + } else { + predefinedVariableDeclarationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Output only. The declarations of predefined variables for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration predefined_variable_declarations = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPredefinedVariableDeclarations( + com.google.cloud.ces.v1.App.VariableDeclaration.Builder builderForValue) { + if (predefinedVariableDeclarationsBuilder_ == null) { + ensurePredefinedVariableDeclarationsIsMutable(); + predefinedVariableDeclarations_.add(builderForValue.build()); + onChanged(); + } else { + predefinedVariableDeclarationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Output only. The declarations of predefined variables for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration predefined_variable_declarations = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPredefinedVariableDeclarations( + int index, com.google.cloud.ces.v1.App.VariableDeclaration.Builder builderForValue) { + if (predefinedVariableDeclarationsBuilder_ == null) { + ensurePredefinedVariableDeclarationsIsMutable(); + predefinedVariableDeclarations_.add(index, builderForValue.build()); + onChanged(); + } else { + predefinedVariableDeclarationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Output only. The declarations of predefined variables for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration predefined_variable_declarations = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllPredefinedVariableDeclarations( + java.lang.Iterable values) { + if (predefinedVariableDeclarationsBuilder_ == null) { + ensurePredefinedVariableDeclarationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, predefinedVariableDeclarations_); + onChanged(); + } else { + predefinedVariableDeclarationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Output only. The declarations of predefined variables for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration predefined_variable_declarations = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPredefinedVariableDeclarations() { + if (predefinedVariableDeclarationsBuilder_ == null) { + predefinedVariableDeclarations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + } else { + predefinedVariableDeclarationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Output only. The declarations of predefined variables for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration predefined_variable_declarations = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removePredefinedVariableDeclarations(int index) { + if (predefinedVariableDeclarationsBuilder_ == null) { + ensurePredefinedVariableDeclarationsIsMutable(); + predefinedVariableDeclarations_.remove(index); + onChanged(); + } else { + predefinedVariableDeclarationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Output only. The declarations of predefined variables for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration predefined_variable_declarations = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1.App.VariableDeclaration.Builder + getPredefinedVariableDeclarationsBuilder(int index) { + return internalGetPredefinedVariableDeclarationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Output only. The declarations of predefined variables for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration predefined_variable_declarations = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1.App.VariableDeclarationOrBuilder + getPredefinedVariableDeclarationsOrBuilder(int index) { + if (predefinedVariableDeclarationsBuilder_ == null) { + return predefinedVariableDeclarations_.get(index); + } else { + return predefinedVariableDeclarationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Output only. The declarations of predefined variables for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration predefined_variable_declarations = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getPredefinedVariableDeclarationsOrBuilderList() { + if (predefinedVariableDeclarationsBuilder_ != null) { + return predefinedVariableDeclarationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(predefinedVariableDeclarations_); + } + } + + /** + * + * + *
      +     * Output only. The declarations of predefined variables for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration predefined_variable_declarations = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1.App.VariableDeclaration.Builder + addPredefinedVariableDeclarationsBuilder() { + return internalGetPredefinedVariableDeclarationsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.App.VariableDeclaration.getDefaultInstance()); + } + + /** + * + * + *
      +     * Output only. The declarations of predefined variables for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration predefined_variable_declarations = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1.App.VariableDeclaration.Builder + addPredefinedVariableDeclarationsBuilder(int index) { + return internalGetPredefinedVariableDeclarationsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.App.VariableDeclaration.getDefaultInstance()); + } + + /** + * + * + *
      +     * Output only. The declarations of predefined variables for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration predefined_variable_declarations = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getPredefinedVariableDeclarationsBuilderList() { + return internalGetPredefinedVariableDeclarationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.App.VariableDeclaration, + com.google.cloud.ces.v1.App.VariableDeclaration.Builder, + com.google.cloud.ces.v1.App.VariableDeclarationOrBuilder> + internalGetPredefinedVariableDeclarationsFieldBuilder() { + if (predefinedVariableDeclarationsBuilder_ == null) { + predefinedVariableDeclarationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.App.VariableDeclaration, + com.google.cloud.ces.v1.App.VariableDeclaration.Builder, + com.google.cloud.ces.v1.App.VariableDeclarationOrBuilder>( + predefinedVariableDeclarations_, + ((bitField0_ & 0x00002000) != 0), + getParentForChildren(), + isClean()); + predefinedVariableDeclarations_ = null; + } + return predefinedVariableDeclarationsBuilder_; + } + + private java.lang.Object globalInstruction_ = ""; + + /** + * + * + *
      +     * Optional. Instructions for all the agents in the app.
      +     * You can use this instruction to set up a stable identity or personality
      +     * across all the agents.
      +     * 
      + * + * string global_instruction = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The globalInstruction. + */ + public java.lang.String getGlobalInstruction() { + java.lang.Object ref = globalInstruction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + globalInstruction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Instructions for all the agents in the app.
      +     * You can use this instruction to set up a stable identity or personality
      +     * across all the agents.
      +     * 
      + * + * string global_instruction = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for globalInstruction. + */ + public com.google.protobuf.ByteString getGlobalInstructionBytes() { + java.lang.Object ref = globalInstruction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + globalInstruction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Instructions for all the agents in the app.
      +     * You can use this instruction to set up a stable identity or personality
      +     * across all the agents.
      +     * 
      + * + * string global_instruction = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The globalInstruction to set. + * @return This builder for chaining. + */ + public Builder setGlobalInstruction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + globalInstruction_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Instructions for all the agents in the app.
      +     * You can use this instruction to set up a stable identity or personality
      +     * across all the agents.
      +     * 
      + * + * string global_instruction = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGlobalInstruction() { + globalInstruction_ = getDefaultInstance().getGlobalInstruction(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Instructions for all the agents in the app.
      +     * You can use this instruction to set up a stable identity or personality
      +     * across all the agents.
      +     * 
      + * + * string global_instruction = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for globalInstruction to set. + * @return This builder for chaining. + */ + public Builder setGlobalInstructionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + globalInstruction_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList guardrails_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureGuardrailsIsMutable() { + if (!guardrails_.isModifiable()) { + guardrails_ = new com.google.protobuf.LazyStringArrayList(guardrails_); + } + bitField0_ |= 0x00008000; + } + + /** + * + * + *
      +     * Optional. List of guardrails for the app.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +     * 
      + * + * + * repeated string guardrails = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the guardrails. + */ + public com.google.protobuf.ProtocolStringList getGuardrailsList() { + guardrails_.makeImmutable(); + return guardrails_; + } + + /** + * + * + *
      +     * Optional. List of guardrails for the app.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +     * 
      + * + * + * repeated string guardrails = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of guardrails. + */ + public int getGuardrailsCount() { + return guardrails_.size(); + } + + /** + * + * + *
      +     * Optional. List of guardrails for the app.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +     * 
      + * + * + * repeated string guardrails = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The guardrails at the given index. + */ + public java.lang.String getGuardrails(int index) { + return guardrails_.get(index); + } + + /** + * + * + *
      +     * Optional. List of guardrails for the app.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +     * 
      + * + * + * repeated string guardrails = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the guardrails at the given index. + */ + public com.google.protobuf.ByteString getGuardrailsBytes(int index) { + return guardrails_.getByteString(index); + } + + /** + * + * + *
      +     * Optional. List of guardrails for the app.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +     * 
      + * + * + * repeated string guardrails = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The guardrails to set. + * @return This builder for chaining. + */ + public Builder setGuardrails(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGuardrailsIsMutable(); + guardrails_.set(index, value); + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. List of guardrails for the app.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +     * 
      + * + * + * repeated string guardrails = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The guardrails to add. + * @return This builder for chaining. + */ + public Builder addGuardrails(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGuardrailsIsMutable(); + guardrails_.add(value); + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. List of guardrails for the app.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +     * 
      + * + * + * repeated string guardrails = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The guardrails to add. + * @return This builder for chaining. + */ + public Builder addAllGuardrails(java.lang.Iterable values) { + ensureGuardrailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, guardrails_); + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. List of guardrails for the app.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +     * 
      + * + * + * repeated string guardrails = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearGuardrails() { + guardrails_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00008000); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. List of guardrails for the app.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +     * 
      + * + * + * repeated string guardrails = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the guardrails to add. + * @return This builder for chaining. + */ + public Builder addGuardrailsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureGuardrailsIsMutable(); + guardrails_.add(value); + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.DataStoreSettings dataStoreSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.DataStoreSettings, + com.google.cloud.ces.v1.DataStoreSettings.Builder, + com.google.cloud.ces.v1.DataStoreSettingsOrBuilder> + dataStoreSettingsBuilder_; + + /** + * + * + *
      +     * Optional. The data store settings for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreSettings data_store_settings = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataStoreSettings field is set. + */ + public boolean hasDataStoreSettings() { + return ((bitField0_ & 0x00010000) != 0); + } + + /** + * + * + *
      +     * Optional. The data store settings for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreSettings data_store_settings = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataStoreSettings. + */ + public com.google.cloud.ces.v1.DataStoreSettings getDataStoreSettings() { + if (dataStoreSettingsBuilder_ == null) { + return dataStoreSettings_ == null + ? com.google.cloud.ces.v1.DataStoreSettings.getDefaultInstance() + : dataStoreSettings_; + } else { + return dataStoreSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. The data store settings for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreSettings data_store_settings = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataStoreSettings(com.google.cloud.ces.v1.DataStoreSettings value) { + if (dataStoreSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataStoreSettings_ = value; + } else { + dataStoreSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The data store settings for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreSettings data_store_settings = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataStoreSettings( + com.google.cloud.ces.v1.DataStoreSettings.Builder builderForValue) { + if (dataStoreSettingsBuilder_ == null) { + dataStoreSettings_ = builderForValue.build(); + } else { + dataStoreSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The data store settings for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreSettings data_store_settings = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDataStoreSettings(com.google.cloud.ces.v1.DataStoreSettings value) { + if (dataStoreSettingsBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) + && dataStoreSettings_ != null + && dataStoreSettings_ + != com.google.cloud.ces.v1.DataStoreSettings.getDefaultInstance()) { + getDataStoreSettingsBuilder().mergeFrom(value); + } else { + dataStoreSettings_ = value; + } + } else { + dataStoreSettingsBuilder_.mergeFrom(value); + } + if (dataStoreSettings_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The data store settings for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreSettings data_store_settings = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDataStoreSettings() { + bitField0_ = (bitField0_ & ~0x00010000); + dataStoreSettings_ = null; + if (dataStoreSettingsBuilder_ != null) { + dataStoreSettingsBuilder_.dispose(); + dataStoreSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The data store settings for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreSettings data_store_settings = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStoreSettings.Builder getDataStoreSettingsBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return internalGetDataStoreSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The data store settings for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreSettings data_store_settings = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStoreSettingsOrBuilder getDataStoreSettingsOrBuilder() { + if (dataStoreSettingsBuilder_ != null) { + return dataStoreSettingsBuilder_.getMessageOrBuilder(); + } else { + return dataStoreSettings_ == null + ? com.google.cloud.ces.v1.DataStoreSettings.getDefaultInstance() + : dataStoreSettings_; + } + } + + /** + * + * + *
      +     * Optional. The data store settings for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreSettings data_store_settings = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.DataStoreSettings, + com.google.cloud.ces.v1.DataStoreSettings.Builder, + com.google.cloud.ces.v1.DataStoreSettingsOrBuilder> + internalGetDataStoreSettingsFieldBuilder() { + if (dataStoreSettingsBuilder_ == null) { + dataStoreSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.DataStoreSettings, + com.google.cloud.ces.v1.DataStoreSettings.Builder, + com.google.cloud.ces.v1.DataStoreSettingsOrBuilder>( + getDataStoreSettings(), getParentForChildren(), isClean()); + dataStoreSettings_ = null; + } + return dataStoreSettingsBuilder_; + } + + private com.google.cloud.ces.v1.ChannelProfile defaultChannelProfile_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ChannelProfile, + com.google.cloud.ces.v1.ChannelProfile.Builder, + com.google.cloud.ces.v1.ChannelProfileOrBuilder> + defaultChannelProfileBuilder_; + + /** + * + * + *
      +     * Optional. The default channel profile used by the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile default_channel_profile = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultChannelProfile field is set. + */ + public boolean hasDefaultChannelProfile() { + return ((bitField0_ & 0x00020000) != 0); + } + + /** + * + * + *
      +     * Optional. The default channel profile used by the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile default_channel_profile = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultChannelProfile. + */ + public com.google.cloud.ces.v1.ChannelProfile getDefaultChannelProfile() { + if (defaultChannelProfileBuilder_ == null) { + return defaultChannelProfile_ == null + ? com.google.cloud.ces.v1.ChannelProfile.getDefaultInstance() + : defaultChannelProfile_; + } else { + return defaultChannelProfileBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. The default channel profile used by the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile default_channel_profile = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDefaultChannelProfile(com.google.cloud.ces.v1.ChannelProfile value) { + if (defaultChannelProfileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultChannelProfile_ = value; + } else { + defaultChannelProfileBuilder_.setMessage(value); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The default channel profile used by the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile default_channel_profile = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDefaultChannelProfile( + com.google.cloud.ces.v1.ChannelProfile.Builder builderForValue) { + if (defaultChannelProfileBuilder_ == null) { + defaultChannelProfile_ = builderForValue.build(); + } else { + defaultChannelProfileBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The default channel profile used by the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile default_channel_profile = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDefaultChannelProfile(com.google.cloud.ces.v1.ChannelProfile value) { + if (defaultChannelProfileBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) + && defaultChannelProfile_ != null + && defaultChannelProfile_ + != com.google.cloud.ces.v1.ChannelProfile.getDefaultInstance()) { + getDefaultChannelProfileBuilder().mergeFrom(value); + } else { + defaultChannelProfile_ = value; + } + } else { + defaultChannelProfileBuilder_.mergeFrom(value); + } + if (defaultChannelProfile_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The default channel profile used by the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile default_channel_profile = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDefaultChannelProfile() { + bitField0_ = (bitField0_ & ~0x00020000); + defaultChannelProfile_ = null; + if (defaultChannelProfileBuilder_ != null) { + defaultChannelProfileBuilder_.dispose(); + defaultChannelProfileBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The default channel profile used by the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile default_channel_profile = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ChannelProfile.Builder getDefaultChannelProfileBuilder() { + bitField0_ |= 0x00020000; + onChanged(); + return internalGetDefaultChannelProfileFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The default channel profile used by the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile default_channel_profile = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ChannelProfileOrBuilder getDefaultChannelProfileOrBuilder() { + if (defaultChannelProfileBuilder_ != null) { + return defaultChannelProfileBuilder_.getMessageOrBuilder(); + } else { + return defaultChannelProfile_ == null + ? com.google.cloud.ces.v1.ChannelProfile.getDefaultInstance() + : defaultChannelProfile_; + } + } + + /** + * + * + *
      +     * Optional. The default channel profile used by the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile default_channel_profile = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ChannelProfile, + com.google.cloud.ces.v1.ChannelProfile.Builder, + com.google.cloud.ces.v1.ChannelProfileOrBuilder> + internalGetDefaultChannelProfileFieldBuilder() { + if (defaultChannelProfileBuilder_ == null) { + defaultChannelProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ChannelProfile, + com.google.cloud.ces.v1.ChannelProfile.Builder, + com.google.cloud.ces.v1.ChannelProfileOrBuilder>( + getDefaultChannelProfile(), getParentForChildren(), isClean()); + defaultChannelProfile_ = null; + } + return defaultChannelProfileBuilder_; + } + + private com.google.protobuf.MapField metadata_; + + private com.google.protobuf.MapField internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + + private com.google.protobuf.MapField + internalGetMutableMetadata() { + if (metadata_ == null) { + metadata_ = + com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry); + } + if (!metadata_.isMutable()) { + metadata_ = metadata_.copy(); + } + bitField0_ |= 0x00040000; + onChanged(); + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + + /** + * + * + *
      +     * Optional. Metadata about the app. This field can be used to store
      +     * additional information relevant to the app's details or intended usages.
      +     * 
      + * + * map<string, string> metadata = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetMetadata().getMap().containsKey(key); + } + + /** Use {@link #getMetadataMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getMetadata() { + return getMetadataMap(); + } + + /** + * + * + *
      +     * Optional. Metadata about the app. This field can be used to store
      +     * additional information relevant to the app's details or intended usages.
      +     * 
      + * + * map<string, string> metadata = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + + /** + * + * + *
      +     * Optional. Metadata about the app. This field can be used to store
      +     * additional information relevant to the app's details or intended usages.
      +     * 
      + * + * map<string, string> metadata = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getMetadataOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
      +     * Optional. Metadata about the app. This field can be used to store
      +     * additional information relevant to the app's details or intended usages.
      +     * 
      + * + * map<string, string> metadata = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getMetadataOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00040000); + internalGetMutableMetadata().getMutableMap().clear(); + return this; + } + + /** + * + * + *
      +     * Optional. Metadata about the app. This field can be used to store
      +     * additional information relevant to the app's details or intended usages.
      +     * 
      + * + * map<string, string> metadata = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableMetadata().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableMetadata() { + bitField0_ |= 0x00040000; + return internalGetMutableMetadata().getMutableMap(); + } + + /** + * + * + *
      +     * Optional. Metadata about the app. This field can be used to store
      +     * additional information relevant to the app's details or intended usages.
      +     * 
      + * + * map<string, string> metadata = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putMetadata(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableMetadata().getMutableMap().put(key, value); + bitField0_ |= 0x00040000; + return this; + } + + /** + * + * + *
      +     * Optional. Metadata about the app. This field can be used to store
      +     * additional information relevant to the app's details or intended usages.
      +     * 
      + * + * map<string, string> metadata = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllMetadata(java.util.Map values) { + internalGetMutableMetadata().getMutableMap().putAll(values); + bitField0_ |= 0x00040000; + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
      +     * Output only. Timestamp when the app was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00080000) != 0); + } + + /** + * + * + *
      +     * Output only. Timestamp when the app was created.
      +     * 
      + * + * + * .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_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the app was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the app was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the app was created.
      +     * 
      + * + * + * .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_ & 0x00080000) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00080000; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the app was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00080000); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the app was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00080000; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. Timestamp when the app was created.
      +     * 
      + * + * + * .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_; + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the app was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
      +     * Output only. Timestamp when the app was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00100000) != 0); + } + + /** + * + * + *
      +     * Output only. Timestamp when the app was last updated.
      +     * 
      + * + * + * .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_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the app was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the app was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the app was last updated.
      +     * 
      + * + * + * .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_ & 0x00100000) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00100000; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the app was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00100000); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the app was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00100000; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. Timestamp when the app was last updated.
      +     * 
      + * + * + * .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_; + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the app was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
      +     * Output only. Etag used to ensure the object hasn't changed during a
      +     * read-modify-write operation. If the etag is empty, the update will
      +     * overwrite any concurrent changes.
      +     * 
      + * + * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Output only. Etag used to ensure the object hasn't changed during a
      +     * read-modify-write operation. If the etag is empty, the update will
      +     * overwrite any concurrent changes.
      +     * 
      + * + * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Output only. Etag used to ensure the object hasn't changed during a
      +     * read-modify-write operation. If the etag is empty, the update will
      +     * overwrite any concurrent changes.
      +     * 
      + * + * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Etag used to ensure the object hasn't changed during a
      +     * read-modify-write operation. If the etag is empty, the update will
      +     * overwrite any concurrent changes.
      +     * 
      + * + * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00200000); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Etag used to ensure the object hasn't changed during a
      +     * read-modify-write operation. If the etag is empty, the update will
      +     * overwrite any concurrent changes.
      +     * 
      + * + * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + + private int deploymentCount_; + + /** + * + * + *
      +     * Output only. Number of deployments in the app.
      +     * 
      + * + * int32 deployment_count = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deploymentCount. + */ + @java.lang.Override + public int getDeploymentCount() { + return deploymentCount_; + } + + /** + * + * + *
      +     * Output only. Number of deployments in the app.
      +     * 
      + * + * int32 deployment_count = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The deploymentCount to set. + * @return This builder for chaining. + */ + public Builder setDeploymentCount(int value) { + + deploymentCount_ = value; + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Number of deployments in the app.
      +     * 
      + * + * int32 deployment_count = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDeploymentCount() { + bitField0_ = (bitField0_ & ~0x00400000); + deploymentCount_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.ClientCertificateSettings clientCertificateSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ClientCertificateSettings, + com.google.cloud.ces.v1.ClientCertificateSettings.Builder, + com.google.cloud.ces.v1.ClientCertificateSettingsOrBuilder> + clientCertificateSettingsBuilder_; + + /** + * + * + *
      +     * Optional. The default client certificate settings for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ClientCertificateSettings client_certificate_settings = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the clientCertificateSettings field is set. + */ + public boolean hasClientCertificateSettings() { + return ((bitField0_ & 0x00800000) != 0); + } + + /** + * + * + *
      +     * Optional. The default client certificate settings for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ClientCertificateSettings client_certificate_settings = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clientCertificateSettings. + */ + public com.google.cloud.ces.v1.ClientCertificateSettings getClientCertificateSettings() { + if (clientCertificateSettingsBuilder_ == null) { + return clientCertificateSettings_ == null + ? com.google.cloud.ces.v1.ClientCertificateSettings.getDefaultInstance() + : clientCertificateSettings_; + } else { + return clientCertificateSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. The default client certificate settings for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ClientCertificateSettings client_certificate_settings = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setClientCertificateSettings( + com.google.cloud.ces.v1.ClientCertificateSettings value) { + if (clientCertificateSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + clientCertificateSettings_ = value; + } else { + clientCertificateSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The default client certificate settings for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ClientCertificateSettings client_certificate_settings = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setClientCertificateSettings( + com.google.cloud.ces.v1.ClientCertificateSettings.Builder builderForValue) { + if (clientCertificateSettingsBuilder_ == null) { + clientCertificateSettings_ = builderForValue.build(); + } else { + clientCertificateSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The default client certificate settings for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ClientCertificateSettings client_certificate_settings = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeClientCertificateSettings( + com.google.cloud.ces.v1.ClientCertificateSettings value) { + if (clientCertificateSettingsBuilder_ == null) { + if (((bitField0_ & 0x00800000) != 0) + && clientCertificateSettings_ != null + && clientCertificateSettings_ + != com.google.cloud.ces.v1.ClientCertificateSettings.getDefaultInstance()) { + getClientCertificateSettingsBuilder().mergeFrom(value); + } else { + clientCertificateSettings_ = value; + } + } else { + clientCertificateSettingsBuilder_.mergeFrom(value); + } + if (clientCertificateSettings_ != null) { + bitField0_ |= 0x00800000; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The default client certificate settings for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ClientCertificateSettings client_certificate_settings = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearClientCertificateSettings() { + bitField0_ = (bitField0_ & ~0x00800000); + clientCertificateSettings_ = null; + if (clientCertificateSettingsBuilder_ != null) { + clientCertificateSettingsBuilder_.dispose(); + clientCertificateSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The default client certificate settings for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ClientCertificateSettings client_certificate_settings = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ClientCertificateSettings.Builder + getClientCertificateSettingsBuilder() { + bitField0_ |= 0x00800000; + onChanged(); + return internalGetClientCertificateSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The default client certificate settings for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ClientCertificateSettings client_certificate_settings = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ClientCertificateSettingsOrBuilder + getClientCertificateSettingsOrBuilder() { + if (clientCertificateSettingsBuilder_ != null) { + return clientCertificateSettingsBuilder_.getMessageOrBuilder(); + } else { + return clientCertificateSettings_ == null + ? com.google.cloud.ces.v1.ClientCertificateSettings.getDefaultInstance() + : clientCertificateSettings_; + } + } + + /** + * + * + *
      +     * Optional. The default client certificate settings for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ClientCertificateSettings client_certificate_settings = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ClientCertificateSettings, + com.google.cloud.ces.v1.ClientCertificateSettings.Builder, + com.google.cloud.ces.v1.ClientCertificateSettingsOrBuilder> + internalGetClientCertificateSettingsFieldBuilder() { + if (clientCertificateSettingsBuilder_ == null) { + clientCertificateSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ClientCertificateSettings, + com.google.cloud.ces.v1.ClientCertificateSettings.Builder, + com.google.cloud.ces.v1.ClientCertificateSettingsOrBuilder>( + getClientCertificateSettings(), getParentForChildren(), isClean()); + clientCertificateSettings_ = null; + } + return clientCertificateSettingsBuilder_; + } + + private boolean locked_; + + /** + * + * + *
      +     * Optional. Indicates whether the app is locked for changes. If the app is
      +     * locked, modifications to the app resources will be rejected.
      +     * 
      + * + * bool locked = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The locked. + */ + @java.lang.Override + public boolean getLocked() { + return locked_; + } + + /** + * + * + *
      +     * Optional. Indicates whether the app is locked for changes. If the app is
      +     * locked, modifications to the app resources will be rejected.
      +     * 
      + * + * bool locked = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The locked to set. + * @return This builder for chaining. + */ + public Builder setLocked(boolean value) { + + locked_ = value; + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Indicates whether the app is locked for changes. If the app is
      +     * locked, modifications to the app resources will be rejected.
      +     * 
      + * + * bool locked = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLocked() { + bitField0_ = (bitField0_ & ~0x01000000); + locked_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.App) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.App) + private static final com.google.cloud.ces.v1.App DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.App(); + } + + public static com.google.cloud.ces.v1.App getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public App parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.App getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppName.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppName.java new file mode 100644 index 000000000000..39e61f6fc1dd --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppName.java @@ -0,0 +1,216 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class AppName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_APP = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}/apps/{app}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String app; + + @Deprecated + protected AppName() { + project = null; + location = null; + app = null; + } + + private AppName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + app = Preconditions.checkNotNull(builder.getApp()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getApp() { + return app; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AppName of(String project, String location, String app) { + return newBuilder().setProject(project).setLocation(location).setApp(app).build(); + } + + public static String format(String project, String location, String app) { + return newBuilder().setProject(project).setLocation(location).setApp(app).build().toString(); + } + + public static AppName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_APP.validatedMatch( + formattedString, "AppName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("app")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (AppName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_APP.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (app != null) { + fieldMapBuilder.put("app", app); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_APP.instantiate("project", project, "location", location, "app", app); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AppName that = ((AppName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.app, that.app); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(app); + return h; + } + + /** Builder for projects/{project}/locations/{location}/apps/{app}. */ + public static class Builder { + private String project; + private String location; + private String app; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getApp() { + return app; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setApp(String app) { + this.app = app; + return this; + } + + private Builder(AppName appName) { + this.project = appName.project; + this.location = appName.location; + this.app = appName.app; + } + + public AppName build() { + return new AppName(this); + } + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppOrBuilder.java new file mode 100644 index 000000000000..97a1842b71f5 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppOrBuilder.java @@ -0,0 +1,1020 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface AppOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.App) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Identifier. The unique identifier of the app.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Identifier. The unique identifier of the app.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Required. Display name of the app.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
      +   * Required. Display name of the app.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
      +   * Optional. Human-readable description of the app.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
      +   * Optional. Human-readable description of the app.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
      +   * Optional. Whether the app is pinned in the app list.
      +   * 
      + * + * bool pinned = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pinned. + */ + boolean getPinned(); + + /** + * + * + *
      +   * Optional. The root agent is the entry point of the app.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +   * 
      + * + * + * string root_agent = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The rootAgent. + */ + java.lang.String getRootAgent(); + + /** + * + * + *
      +   * Optional. The root agent is the entry point of the app.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +   * 
      + * + * + * string root_agent = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for rootAgent. + */ + com.google.protobuf.ByteString getRootAgentBytes(); + + /** + * + * + *
      +   * Optional. Language settings of the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.LanguageSettings language_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the languageSettings field is set. + */ + boolean hasLanguageSettings(); + + /** + * + * + *
      +   * Optional. Language settings of the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.LanguageSettings language_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The languageSettings. + */ + com.google.cloud.ces.v1.LanguageSettings getLanguageSettings(); + + /** + * + * + *
      +   * Optional. Language settings of the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.LanguageSettings language_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.LanguageSettingsOrBuilder getLanguageSettingsOrBuilder(); + + /** + * + * + *
      +   * Optional. TimeZone settings of the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.TimeZoneSettings time_zone_settings = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the timeZoneSettings field is set. + */ + boolean hasTimeZoneSettings(); + + /** + * + * + *
      +   * Optional. TimeZone settings of the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.TimeZoneSettings time_zone_settings = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The timeZoneSettings. + */ + com.google.cloud.ces.v1.TimeZoneSettings getTimeZoneSettings(); + + /** + * + * + *
      +   * Optional. TimeZone settings of the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.TimeZoneSettings time_zone_settings = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.TimeZoneSettingsOrBuilder getTimeZoneSettingsOrBuilder(); + + /** + * + * + *
      +   * Optional. Audio processing configuration of the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.AudioProcessingConfig audio_processing_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the audioProcessingConfig field is set. + */ + boolean hasAudioProcessingConfig(); + + /** + * + * + *
      +   * Optional. Audio processing configuration of the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.AudioProcessingConfig audio_processing_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The audioProcessingConfig. + */ + com.google.cloud.ces.v1.AudioProcessingConfig getAudioProcessingConfig(); + + /** + * + * + *
      +   * Optional. Audio processing configuration of the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.AudioProcessingConfig audio_processing_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.AudioProcessingConfigOrBuilder getAudioProcessingConfigOrBuilder(); + + /** + * + * + *
      +   * Optional. Logging settings of the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.LoggingSettings logging_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the loggingSettings field is set. + */ + boolean hasLoggingSettings(); + + /** + * + * + *
      +   * Optional. Logging settings of the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.LoggingSettings logging_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The loggingSettings. + */ + com.google.cloud.ces.v1.LoggingSettings getLoggingSettings(); + + /** + * + * + *
      +   * Optional. Logging settings of the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.LoggingSettings logging_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.LoggingSettingsOrBuilder getLoggingSettingsOrBuilder(); + + /** + * + * + *
      +   * Optional. The default LLM model settings for the app.
      +   * Individual resources (e.g. agents, guardrails) can override these
      +   * configurations as needed.
      +   * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelSettings field is set. + */ + boolean hasModelSettings(); + + /** + * + * + *
      +   * Optional. The default LLM model settings for the app.
      +   * Individual resources (e.g. agents, guardrails) can override these
      +   * configurations as needed.
      +   * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelSettings. + */ + com.google.cloud.ces.v1.ModelSettings getModelSettings(); + + /** + * + * + *
      +   * Optional. The default LLM model settings for the app.
      +   * Individual resources (e.g. agents, guardrails) can override these
      +   * configurations as needed.
      +   * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ModelSettingsOrBuilder getModelSettingsOrBuilder(); + + /** + * + * + *
      +   * Optional. The tool execution mode for the app. If not provided, will
      +   * default to PARALLEL.
      +   * 
      + * + * + * .google.cloud.ces.v1.App.ToolExecutionMode tool_execution_mode = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for toolExecutionMode. + */ + int getToolExecutionModeValue(); + + /** + * + * + *
      +   * Optional. The tool execution mode for the app. If not provided, will
      +   * default to PARALLEL.
      +   * 
      + * + * + * .google.cloud.ces.v1.App.ToolExecutionMode tool_execution_mode = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolExecutionMode. + */ + com.google.cloud.ces.v1.App.ToolExecutionMode getToolExecutionMode(); + + /** + * + * + *
      +   * Optional. The evaluation thresholds for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds evaluation_metrics_thresholds = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the evaluationMetricsThresholds field is set. + */ + boolean hasEvaluationMetricsThresholds(); + + /** + * + * + *
      +   * Optional. The evaluation thresholds for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds evaluation_metrics_thresholds = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The evaluationMetricsThresholds. + */ + com.google.cloud.ces.v1.EvaluationMetricsThresholds getEvaluationMetricsThresholds(); + + /** + * + * + *
      +   * Optional. The evaluation thresholds for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds evaluation_metrics_thresholds = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.EvaluationMetricsThresholdsOrBuilder + getEvaluationMetricsThresholdsOrBuilder(); + + /** + * + * + *
      +   * Optional. The declarations of the variables.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration variable_declarations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getVariableDeclarationsList(); + + /** + * + * + *
      +   * Optional. The declarations of the variables.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration variable_declarations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.App.VariableDeclaration getVariableDeclarations(int index); + + /** + * + * + *
      +   * Optional. The declarations of the variables.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration variable_declarations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getVariableDeclarationsCount(); + + /** + * + * + *
      +   * Optional. The declarations of the variables.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration variable_declarations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getVariableDeclarationsOrBuilderList(); + + /** + * + * + *
      +   * Optional. The declarations of the variables.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration variable_declarations = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.App.VariableDeclarationOrBuilder getVariableDeclarationsOrBuilder( + int index); + + /** + * + * + *
      +   * Output only. The declarations of predefined variables for the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration predefined_variable_declarations = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getPredefinedVariableDeclarationsList(); + + /** + * + * + *
      +   * Output only. The declarations of predefined variables for the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration predefined_variable_declarations = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.ces.v1.App.VariableDeclaration getPredefinedVariableDeclarations(int index); + + /** + * + * + *
      +   * Output only. The declarations of predefined variables for the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration predefined_variable_declarations = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getPredefinedVariableDeclarationsCount(); + + /** + * + * + *
      +   * Output only. The declarations of predefined variables for the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration predefined_variable_declarations = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getPredefinedVariableDeclarationsOrBuilderList(); + + /** + * + * + *
      +   * Output only. The declarations of predefined variables for the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.App.VariableDeclaration predefined_variable_declarations = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.ces.v1.App.VariableDeclarationOrBuilder + getPredefinedVariableDeclarationsOrBuilder(int index); + + /** + * + * + *
      +   * Optional. Instructions for all the agents in the app.
      +   * You can use this instruction to set up a stable identity or personality
      +   * across all the agents.
      +   * 
      + * + * string global_instruction = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The globalInstruction. + */ + java.lang.String getGlobalInstruction(); + + /** + * + * + *
      +   * Optional. Instructions for all the agents in the app.
      +   * You can use this instruction to set up a stable identity or personality
      +   * across all the agents.
      +   * 
      + * + * string global_instruction = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for globalInstruction. + */ + com.google.protobuf.ByteString getGlobalInstructionBytes(); + + /** + * + * + *
      +   * Optional. List of guardrails for the app.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +   * 
      + * + * + * repeated string guardrails = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the guardrails. + */ + java.util.List getGuardrailsList(); + + /** + * + * + *
      +   * Optional. List of guardrails for the app.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +   * 
      + * + * + * repeated string guardrails = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of guardrails. + */ + int getGuardrailsCount(); + + /** + * + * + *
      +   * Optional. List of guardrails for the app.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +   * 
      + * + * + * repeated string guardrails = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The guardrails at the given index. + */ + java.lang.String getGuardrails(int index); + + /** + * + * + *
      +   * Optional. List of guardrails for the app.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +   * 
      + * + * + * repeated string guardrails = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the guardrails at the given index. + */ + com.google.protobuf.ByteString getGuardrailsBytes(int index); + + /** + * + * + *
      +   * Optional. The data store settings for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStoreSettings data_store_settings = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataStoreSettings field is set. + */ + boolean hasDataStoreSettings(); + + /** + * + * + *
      +   * Optional. The data store settings for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStoreSettings data_store_settings = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataStoreSettings. + */ + com.google.cloud.ces.v1.DataStoreSettings getDataStoreSettings(); + + /** + * + * + *
      +   * Optional. The data store settings for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStoreSettings data_store_settings = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.DataStoreSettingsOrBuilder getDataStoreSettingsOrBuilder(); + + /** + * + * + *
      +   * Optional. The default channel profile used by the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile default_channel_profile = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultChannelProfile field is set. + */ + boolean hasDefaultChannelProfile(); + + /** + * + * + *
      +   * Optional. The default channel profile used by the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile default_channel_profile = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultChannelProfile. + */ + com.google.cloud.ces.v1.ChannelProfile getDefaultChannelProfile(); + + /** + * + * + *
      +   * Optional. The default channel profile used by the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile default_channel_profile = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ChannelProfileOrBuilder getDefaultChannelProfileOrBuilder(); + + /** + * + * + *
      +   * Optional. Metadata about the app. This field can be used to store
      +   * additional information relevant to the app's details or intended usages.
      +   * 
      + * + * map<string, string> metadata = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getMetadataCount(); + + /** + * + * + *
      +   * Optional. Metadata about the app. This field can be used to store
      +   * additional information relevant to the app's details or intended usages.
      +   * 
      + * + * map<string, string> metadata = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsMetadata(java.lang.String key); + + /** Use {@link #getMetadataMap()} instead. */ + @java.lang.Deprecated + java.util.Map getMetadata(); + + /** + * + * + *
      +   * Optional. Metadata about the app. This field can be used to store
      +   * additional information relevant to the app's details or intended usages.
      +   * 
      + * + * map<string, string> metadata = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getMetadataMap(); + + /** + * + * + *
      +   * Optional. Metadata about the app. This field can be used to store
      +   * additional information relevant to the app's details or intended usages.
      +   * 
      + * + * map<string, string> metadata = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getMetadataOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
      +   * Optional. Metadata about the app. This field can be used to store
      +   * additional information relevant to the app's details or intended usages.
      +   * 
      + * + * map<string, string> metadata = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getMetadataOrThrow(java.lang.String key); + + /** + * + * + *
      +   * Output only. Timestamp when the app was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the app was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the app was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
      +   * Output only. Timestamp when the app was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the app was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the app was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
      +   * Output only. Etag used to ensure the object hasn't changed during a
      +   * read-modify-write operation. If the etag is empty, the update will
      +   * overwrite any concurrent changes.
      +   * 
      + * + * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
      +   * Output only. Etag used to ensure the object hasn't changed during a
      +   * read-modify-write operation. If the etag is empty, the update will
      +   * overwrite any concurrent changes.
      +   * 
      + * + * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
      +   * Output only. Number of deployments in the app.
      +   * 
      + * + * int32 deployment_count = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deploymentCount. + */ + int getDeploymentCount(); + + /** + * + * + *
      +   * Optional. The default client certificate settings for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.ClientCertificateSettings client_certificate_settings = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the clientCertificateSettings field is set. + */ + boolean hasClientCertificateSettings(); + + /** + * + * + *
      +   * Optional. The default client certificate settings for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.ClientCertificateSettings client_certificate_settings = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clientCertificateSettings. + */ + com.google.cloud.ces.v1.ClientCertificateSettings getClientCertificateSettings(); + + /** + * + * + *
      +   * Optional. The default client certificate settings for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.ClientCertificateSettings client_certificate_settings = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ClientCertificateSettingsOrBuilder + getClientCertificateSettingsOrBuilder(); + + /** + * + * + *
      +   * Optional. Indicates whether the app is locked for changes. If the app is
      +   * locked, modifications to the app resources will be rejected.
      +   * 
      + * + * bool locked = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The locked. + */ + boolean getLocked(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppProto.java new file mode 100644 index 000000000000..1fe5006a52c6 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppProto.java @@ -0,0 +1,619 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class AppProto extends com.google.protobuf.GeneratedFile { + private AppProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AppProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_App_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_App_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_App_VariableDeclaration_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_App_VariableDeclaration_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_App_MetadataEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_App_MetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_TimeZoneSettings_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_TimeZoneSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_LanguageSettings_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_LanguageSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_AudioProcessingConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_AudioProcessingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_AudioProcessingConfig_SynthesizeSpeechConfigsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_AudioProcessingConfig_SynthesizeSpeechConfigsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_AmbientSoundConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_AmbientSoundConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_BargeInConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_BargeInConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_SynthesizeSpeechConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_SynthesizeSpeechConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_MetricAnalysisSettings_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_MetricAnalysisSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_LoggingSettings_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_LoggingSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_GoldenEvaluationMetricsThresholds_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_GoldenEvaluationMetricsThresholds_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_GoldenEvaluationMetricsThresholds_TurnLevelMetricsThresholds_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_GoldenEvaluationMetricsThresholds_TurnLevelMetricsThresholds_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_GoldenEvaluationMetricsThresholds_ExpectationLevelMetricsThresholds_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_GoldenEvaluationMetricsThresholds_ExpectationLevelMetricsThresholds_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_ToolMatchingSettings_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_ToolMatchingSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ClientCertificateSettings_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ClientCertificateSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ConversationLoggingSettings_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ConversationLoggingSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_CloudLoggingSettings_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_CloudLoggingSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_AudioRecordingConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_AudioRecordingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_RedactionConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_RedactionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_DataStoreSettings_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_DataStoreSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_DataStoreSettings_Engine_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_DataStoreSettings_Engine_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" + + "\035google/cloud/ces/v1/app.proto\022\023google." + + "cloud.ces.v1\032\037google/api/field_behavior." + + "proto\032\031google/api/resource.proto\032)google/cloud/ces/v1/bigquery_export.proto\032" + + " google/cloud/ces/v1/common.proto\032 google/cl" + + "oud/ces/v1/schema.proto\032\036google/protobuf" + + "/duration.proto\032\037google/protobuf/timestamp.proto\"\361\r\n" + + "\003App\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\002\022\030\n" + + "\013description\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006pinned\030\037 \001(\010B\003\340A\001\0224\n\n" + + "root_agent\030\004 \001(\tB \340A\001\372A\032\n" + + "\030ces.googleapis.com/Agent\022E\n" + + "\021language_settings\030\022" + + " \001(\0132%.google.cloud.ces.v1.LanguageSettingsB\003\340A\001\022F\n" + + "\022time_zone_settings\030\033" + + " \001(\0132%.google.cloud.ces.v1.TimeZoneSettingsB\003\340A\001\022P\n" + + "\027audio_processing_config\030\007" + + " \001(\0132*.google.cloud.ces.v1.AudioProcessingConfigB\003\340A\001\022C\n" + + "\020logging_settings\030\010" + + " \001(\0132$.google.cloud.ces.v1.LoggingSettingsB\003\340A\001\022?\n" + + "\016model_settings\030\r" + + " \001(\0132\".google.cloud.ces.v1.ModelSettingsB\003\340A\001\022L\n" + + "\023tool_execution_mode\030 \001(\0162*.google" + + ".cloud.ces.v1.App.ToolExecutionModeB\003\340A\001\022\\\n" + + "\035evaluation_metrics_thresholds\030\030 \001(\0132" + + "0.google.cloud.ces.v1.EvaluationMetricsThresholdsB\003\340A\001\022P\n" + + "\025variable_declarations\030\016" + + " \003(\0132,.google.cloud.ces.v1.App.VariableDeclarationB\003\340A\001\022[\n" + + " predefined_variable_declarations\030\034" + + " \003(\0132,.google.cloud.ces.v1.App.VariableDeclarationB\003\340A\003\022\037\n" + + "\022global_instruction\030\021 \001(\tB\003\340A\001\0228\n\n" + + "guardrails\030\n" + + " \003(\tB$\340A\001\372A\036\n" + + "\034ces.googleapis.com/Guardrail\022H\n" + + "\023data_store_settings\030\017" + + " \001(\0132&.google.cloud.ces.v1.DataStoreSettingsB\003\340A\001\022I\n" + + "\027default_channel_profile\030\026" + + " \001(\0132#.google.cloud.ces.v1.ChannelProfileB\003\340A\001\022=\n" + + "\010metadata\030\013" + + " \003(\0132&.google.cloud.ces.v1.App.MetadataEntryB\003\340A\001\0224\n" + + "\013create_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\006" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\021\n" + + "\004etag\030\014 \001(\tB\003\340A\003\022\035\n" + + "\020deployment_count\030\027 \001(\005B\003\340A\003\022X\n" + + "\033client_certificate_settings\030\031" + + " \001(\0132..google.cloud.ces.v1.ClientCertificateSettingsB\003\340A\001\022\023\n" + + "\006locked\030\035 \001(\010B\003\340A\001\032t\n" + + "\023VariableDeclaration\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\022\030\n" + + "\013description\030\002 \001(\tB\003\340A\002\0220\n" + + "\006schema\030\003 \001(\0132\033.google.cloud.ces.v1.SchemaB\003\340A\002\032/\n\r" + + "MetadataEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"V\n" + + "\021ToolExecutionMode\022#\n" + + "\037TOOL_EXECUTION_MODE_UNSPECIFIED\020\000\022\014\n" + + "\010PARALLEL\020\001\022\016\n\n" + + "SEQUENTIAL\020\002:Z\352AW\n" + + "\026ces.googleapis.co" + + "m/App\0222projects/{project}/locations/{location}/apps/{app}*\004apps2\003app\"*\n" + + "\020TimeZoneSettings\022\026\n" + + "\ttime_zone\030\001 \001(\tB\003\340A\001\"\245\001\n" + + "\020LanguageSettings\022\"\n" + + "\025default_language_code\030\001 \001(\tB\003\340A\001\022%\n" + + "\030supported_language_codes\030\002 \003(\tB\003\340A\001\022(\n" + + "\033enable_multilingual_support\030\003 \001(\010B\003\340A\001\022\034\n" + + "\017fallback_action\030\004 \001(\tB\003\340A\001\"\277\003\n" + + "\025AudioProcessingConfig\022o\n" + + "\031synthesize_speech_configs\030\001 \003(\0132G.google.cloud.ces" + + ".v1.AudioProcessingConfig.SynthesizeSpeechConfigsEntryB\003\340A\001\022@\n" + + "\017barge_in_config\030\003" + + " \001(\0132\".google.cloud.ces.v1.BargeInConfigB\003\340A\001\022:\n" + + "\022inactivity_timeout\030\004" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\022J\n" + + "\024ambient_sound_config\030\005" + + " \001(\0132\'.google.cloud.ces.v1.AmbientSoundConfigB\003\340A\001\032k\n" + + "\034SynthesizeSpeechConfigsEntry\022\013\n" + + "\003key\030\001 \001(\t\022:\n" + + "\005value\030\002 \001(" + + "\0132+.google.cloud.ces.v1.SynthesizeSpeechConfig:\0028\001\"\325\002\n" + + "\022AmbientSoundConfig\022e\n" + + "\026prebuilt_ambient_noise\030\001 \001(\0162<.google.cloud" + + ".ces.v1.AmbientSoundConfig.PrebuiltAmbientNoiseB\005\030\001\340A\001H\000\022\026\n" + + "\007gcs_uri\030\002 \001(\tB\003\340A\001H\000\022%\n" + + "\026prebuilt_ambient_sound\030\004 \001(\tB\003\340A\001H\000\022\033\n" + + "\016volume_gain_db\030\003 \001(\001B\003\340A\001\"r\n" + + "\024PrebuiltAmbientNoise\022&\n" + + "\"PREBUILT_AMBIENT_NOISE_UNSPECIFIED\020\000\022\020\n" + + "\014RETAIL_STORE\020\001\022\023\n" + + "\017CONVENTION_HALL\020\002\022\013\n" + + "\007OUTDOOR\020\003B\010\n" + + "\006source\"Q\n\r" + + "BargeInConfig\022\037\n" + + "\020disable_barge_in\030\001 \001(\010B\005\030\001\340A\001\022\037\n" + + "\022barge_in_awareness\030\002 \001(\010B\003\340A\001\"H\n" + + "\026SynthesizeSpeechConfig\022\022\n" + + "\005voice\030\001 \001(\tB\003\340A\001\022\032\n\r" + + "speaking_rate\030\002 \001(\001B\003\340A\001\"<\n" + + "\026MetricAnalysisSettings\022\"\n" + + "\025llm_metrics_opted_out\030\001 \001(\010B\003\340A\001\"\327\004\n" + + "\017LoggingSettings\022C\n" + + "\020redaction_config\030\001" + + " \001(\0132$.google.cloud.ces.v1.RedactionConfigB\003\340A\001\022N\n" + + "\026audio_recording_config\030\002" + + " \001(\0132).google.cloud.ces.v1.AudioRecordingConfigB\003\340A\001\022R\n" + + "\030bigquery_export_settings\030\003" + + " \001(\0132+.google.cloud.ces.v1.BigQueryExportSettingsB\003\340A\001\022N\n" + + "\026cloud_logging_settings\030\004" + + " \001(\0132).google.cloud.ces.v1.CloudLoggingSettingsB\003\340A\001\022\\\n" + + "\035conversation_logging_settings\030\005 \001(\01320.google.cloud" + + ".ces.v1.ConversationLoggingSettingsB\003\340A\001\022Y\n" + + "!evaluation_audio_recording_config\030\006 " + + "\001(\0132).google.cloud.ces.v1.AudioRecordingConfigB\003\340A\001\022R\n" + + "\030metric_analysis_settings\030\007" + + " \001(\0132+.google.cloud.ces.v1.MetricAnalysisSettingsB\003\340A\001\"\203\020\n" + + "\033EvaluationMetricsThresholds\022\205\001\n" + + "$golden_evaluation_metrics_thresholds\030\001 \001(\0132R.google.cloud.ces.v1.Eva" + + "luationMetricsThresholds.GoldenEvaluationMetricsThresholdsB\003\340A\001\022z\n" + + "\035hallucination_metric_behavior\030\003 \001(\0162L.google.cloud.ce" + + "s.v1.EvaluationMetricsThresholds.HallucinationMetricBehaviorB\005\030\001\340A\001\022\177\n" + + "$golden_hallucination_metric_behavior\030\005 \001(\0162L.goog" + + "le.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehaviorB\003\340A\001\022\201\001\n" + + "&scenario_hallucination_metric_behavior\030\004" + + " \001(\0162L.google.cloud.ces.v1.EvaluationMe" + + "tricsThresholds.HallucinationMetricBehaviorB\003\340A\001\032\373\010\n" + + "!GoldenEvaluationMetricsThresholds\022\231\001\n" + + "\035turn_level_metrics_thresholds\030\001 \001(\0132m.google.cloud.ces.v1.EvaluationM" + + "etricsThresholds.GoldenEvaluationMetrics" + + "Thresholds.TurnLevelMetricsThresholdsB\003\340A\001\022\247\001\n" + + "$expectation_level_metrics_thresholds\030\002 \001(\0132t.google.cloud.ces.v1.Evaluati" + + "onMetricsThresholds.GoldenEvaluationMetr" + + "icsThresholds.ExpectationLevelMetricsThresholdsB\003\340A\001\022j\n" + + "\026tool_matching_settings\030\003 \001(\0132E.google.cloud.ces.v1.EvaluationMet" + + "ricsThresholds.ToolMatchingSettingsB\003\340A\001\032\206\004\n" + + "\032TurnLevelMetricsThresholds\0227\n" + + "%semantic_similarity_success_threshold\030\001" + + " \001(\005B\003\340A\001H\000\210\001\001\022?\n" + + "-overall_tool_invocation_correctness_threshold\030\002" + + " \001(\002B\003\340A\001H\001\210\001\001\022\262\001\n" + + "\033semantic_similarity_channel\030\003 \001(\0162\207\001.googl" + + "e.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.Tur" + + "nLevelMetricsThresholds.SemanticSimilarityChannelB\003\340A\001\"]\n" + + "\031SemanticSimilarityChannel\022+\n" + + "\'SEMANTIC_SIMILARITY_CHANNEL_UNSPECIFIED\020\000\022\010\n" + + "\004TEXT\020\001\022\t\n" + + "\005AUDIO\020\002B(\n" + + "&_semantic_similarity_success_thresholdB0\n" + + "._overall_tool_invocation_correctness_threshold\032\232\001\n" + + "!ExpectationLevelMetricsThresholds\022A\n" + + "/tool_invocation_parameter_correctness_threshold\030\001" + + " \001(\002B\003\340A\001H\000\210\001\001B2\n" + + "0_tool_invocation_parameter_correctness_threshold\032\363\001\n" + + "\024ToolMatchingSettings\022\202\001\n" + + "\030extra_tool_call_behavior\030\001 \001(\0162[.google.cloud.ces.v1" + + ".EvaluationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehaviorB\003\340A\001\"V\n" + + "\025ExtraToolCallBehavior\022(\n" + + "$EXTRA_TOOL_CALL_BEHAVIOR_UNSPECIFIED\020\000\022\010\n" + + "\004FAIL\020\001\022\t\n" + + "\005ALLOW\020\002\"g\n" + + "\033HallucinationMetricBehavior\022-\n" + + ")HALLUCINATION_METRIC_BEHAVIOR_UNSPECIFIED\020\000\022\014\n" + + "\010DISABLED\020\001\022\013\n" + + "\007ENABLED\020\002\"\233\001\n" + + "\031ClientCertificateSettings\022\034\n" + + "\017tls_certificate\030\001 \001(\tB\003\340A\002\022G\n" + + "\013private_key\030\002 \001(\tB2\340A\002\372A,\n" + + "*secretmanager.googleapis.com/SecretVersion\022\027\n\n" + + "passphrase\030\003 \001(\tB\003\340A\001\"H\n" + + "\033ConversationLoggingSettings\022)\n" + + "\034disable_conversation_logging\030\001 \001(\010B\003\340A\001\"9\n" + + "\024CloudLoggingSettings\022!\n" + + "\024enable_cloud_logging\030\001 \001(\010B\003\340A\001\"M\n" + + "\024AudioRecordingConfig\022\027\n\n" + + "gcs_bucket\030\001 \001(\tB\003\340A\001\022\034\n" + + "\017gcs_path_prefix\030\002 \001(\tB\003\340A\001\"\302\001\n" + + "\017RedactionConfig\022\035\n" + + "\020enable_redaction\030\001 \001(\010B\003\340A\001\022D\n" + + "\020inspect_template\030\002 \001(\tB*\340A\001\372A$\n" + + "\"dlp.googleapis.com/InspectTemplate\022J\n" + + "\023deidentify_template\030\003 \001(\tB-\340A\001\372A\'\n" + + "%dlp.googleapis.com/DeidentifyTemplate\"\263\002\n" + + "\021DataStoreSettings\022C\n" + + "\007engines\030\003 \003(\0132-.go" + + "ogle.cloud.ces.v1.DataStoreSettings.EngineB\003\340A\003\032\330\001\n" + + "\006Engine\022;\n" + + "\004name\030\001 \001(\tB-\340A\003\372A\'\n" + + "%discoveryengine.googleapis.com/Engine\022E\n" + + "\004type\030\002" + + " \001(\01622.google.cloud.ces.v1.DataStoreSettings.Engine.TypeB\003\340A\003\"J\n" + + "\004Type\022\024\n" + + "\020TYPE_UNSPECIFIED\020\000\022\026\n" + + "\022ENGINE_TYPE_SEARCH\020\001\022\024\n" + + "\020ENGINE_TYPE_CHAT\020\002B\364\004\n" + + "\027com.googl" + + "e.cloud.ces.v1B\010AppProtoP\001Z)cloud.google.com/go/ces/apiv1/cespb;cespb\352A\310\001\n" + + "\"dlp.googleapis.com/InspectTemplate\022Uorganizat" + + "ions/{organization}/locations/{location}/inspectTemplates/{inspect_template}\022Kpr" + + "ojects/{project}/locations/{location}/inspectTemplates/{inspect_template}\352A\327\001\n" + + "%dlp.googleapis.com/DeidentifyTemplate\022[organizations/{organization}/locations/{lo" + + "cation}/deidentifyTemplates/{deidentify_template}\022Qprojects/{project}/locations/" + + "{location}/deidentifyTemplates/{deidentify_template}\352Az\n" + + "%discoveryengine.googleapis.com/Engine\022Qprojects/{project}/locat" + + "ions/{location}/collections/{collection}/engines/{engine}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.ces.v1.BigQueryExportProto.getDescriptor(), + com.google.cloud.ces.v1.CommonProto.getDescriptor(), + com.google.cloud.ces.v1.SchemaProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_App_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_App_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_App_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Description", + "Pinned", + "RootAgent", + "LanguageSettings", + "TimeZoneSettings", + "AudioProcessingConfig", + "LoggingSettings", + "ModelSettings", + "ToolExecutionMode", + "EvaluationMetricsThresholds", + "VariableDeclarations", + "PredefinedVariableDeclarations", + "GlobalInstruction", + "Guardrails", + "DataStoreSettings", + "DefaultChannelProfile", + "Metadata", + "CreateTime", + "UpdateTime", + "Etag", + "DeploymentCount", + "ClientCertificateSettings", + "Locked", + }); + internal_static_google_cloud_ces_v1_App_VariableDeclaration_descriptor = + internal_static_google_cloud_ces_v1_App_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_App_VariableDeclaration_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_App_VariableDeclaration_descriptor, + new java.lang.String[] { + "Name", "Description", "Schema", + }); + internal_static_google_cloud_ces_v1_App_MetadataEntry_descriptor = + internal_static_google_cloud_ces_v1_App_descriptor.getNestedType(1); + internal_static_google_cloud_ces_v1_App_MetadataEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_App_MetadataEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_ces_v1_TimeZoneSettings_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_ces_v1_TimeZoneSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_TimeZoneSettings_descriptor, + new java.lang.String[] { + "TimeZone", + }); + internal_static_google_cloud_ces_v1_LanguageSettings_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_ces_v1_LanguageSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_LanguageSettings_descriptor, + new java.lang.String[] { + "DefaultLanguageCode", + "SupportedLanguageCodes", + "EnableMultilingualSupport", + "FallbackAction", + }); + internal_static_google_cloud_ces_v1_AudioProcessingConfig_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_ces_v1_AudioProcessingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_AudioProcessingConfig_descriptor, + new java.lang.String[] { + "SynthesizeSpeechConfigs", "BargeInConfig", "InactivityTimeout", "AmbientSoundConfig", + }); + internal_static_google_cloud_ces_v1_AudioProcessingConfig_SynthesizeSpeechConfigsEntry_descriptor = + internal_static_google_cloud_ces_v1_AudioProcessingConfig_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_AudioProcessingConfig_SynthesizeSpeechConfigsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_AudioProcessingConfig_SynthesizeSpeechConfigsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_ces_v1_AmbientSoundConfig_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_ces_v1_AmbientSoundConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_AmbientSoundConfig_descriptor, + new java.lang.String[] { + "PrebuiltAmbientNoise", "GcsUri", "PrebuiltAmbientSound", "VolumeGainDb", "Source", + }); + internal_static_google_cloud_ces_v1_BargeInConfig_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_ces_v1_BargeInConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_BargeInConfig_descriptor, + new java.lang.String[] { + "DisableBargeIn", "BargeInAwareness", + }); + internal_static_google_cloud_ces_v1_SynthesizeSpeechConfig_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_ces_v1_SynthesizeSpeechConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_SynthesizeSpeechConfig_descriptor, + new java.lang.String[] { + "Voice", "SpeakingRate", + }); + internal_static_google_cloud_ces_v1_MetricAnalysisSettings_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_ces_v1_MetricAnalysisSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_MetricAnalysisSettings_descriptor, + new java.lang.String[] { + "LlmMetricsOptedOut", + }); + internal_static_google_cloud_ces_v1_LoggingSettings_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_ces_v1_LoggingSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_LoggingSettings_descriptor, + new java.lang.String[] { + "RedactionConfig", + "AudioRecordingConfig", + "BigqueryExportSettings", + "CloudLoggingSettings", + "ConversationLoggingSettings", + "EvaluationAudioRecordingConfig", + "MetricAnalysisSettings", + }); + internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_descriptor, + new java.lang.String[] { + "GoldenEvaluationMetricsThresholds", + "HallucinationMetricBehavior", + "GoldenHallucinationMetricBehavior", + "ScenarioHallucinationMetricBehavior", + }); + internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_GoldenEvaluationMetricsThresholds_descriptor = + internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_GoldenEvaluationMetricsThresholds_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_GoldenEvaluationMetricsThresholds_descriptor, + new java.lang.String[] { + "TurnLevelMetricsThresholds", + "ExpectationLevelMetricsThresholds", + "ToolMatchingSettings", + }); + internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_GoldenEvaluationMetricsThresholds_TurnLevelMetricsThresholds_descriptor = + internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_GoldenEvaluationMetricsThresholds_descriptor + .getNestedType(0); + internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_GoldenEvaluationMetricsThresholds_TurnLevelMetricsThresholds_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_GoldenEvaluationMetricsThresholds_TurnLevelMetricsThresholds_descriptor, + new java.lang.String[] { + "SemanticSimilaritySuccessThreshold", + "OverallToolInvocationCorrectnessThreshold", + "SemanticSimilarityChannel", + }); + internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_GoldenEvaluationMetricsThresholds_ExpectationLevelMetricsThresholds_descriptor = + internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_GoldenEvaluationMetricsThresholds_descriptor + .getNestedType(1); + internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_GoldenEvaluationMetricsThresholds_ExpectationLevelMetricsThresholds_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_GoldenEvaluationMetricsThresholds_ExpectationLevelMetricsThresholds_descriptor, + new java.lang.String[] { + "ToolInvocationParameterCorrectnessThreshold", + }); + internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_ToolMatchingSettings_descriptor = + internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_descriptor.getNestedType(1); + internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_ToolMatchingSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_ToolMatchingSettings_descriptor, + new java.lang.String[] { + "ExtraToolCallBehavior", + }); + internal_static_google_cloud_ces_v1_ClientCertificateSettings_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_cloud_ces_v1_ClientCertificateSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ClientCertificateSettings_descriptor, + new java.lang.String[] { + "TlsCertificate", "PrivateKey", "Passphrase", + }); + internal_static_google_cloud_ces_v1_ConversationLoggingSettings_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_ces_v1_ConversationLoggingSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ConversationLoggingSettings_descriptor, + new java.lang.String[] { + "DisableConversationLogging", + }); + internal_static_google_cloud_ces_v1_CloudLoggingSettings_descriptor = + getDescriptor().getMessageType(12); + internal_static_google_cloud_ces_v1_CloudLoggingSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_CloudLoggingSettings_descriptor, + new java.lang.String[] { + "EnableCloudLogging", + }); + internal_static_google_cloud_ces_v1_AudioRecordingConfig_descriptor = + getDescriptor().getMessageType(13); + internal_static_google_cloud_ces_v1_AudioRecordingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_AudioRecordingConfig_descriptor, + new java.lang.String[] { + "GcsBucket", "GcsPathPrefix", + }); + internal_static_google_cloud_ces_v1_RedactionConfig_descriptor = + getDescriptor().getMessageType(14); + internal_static_google_cloud_ces_v1_RedactionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_RedactionConfig_descriptor, + new java.lang.String[] { + "EnableRedaction", "InspectTemplate", "DeidentifyTemplate", + }); + internal_static_google_cloud_ces_v1_DataStoreSettings_descriptor = + getDescriptor().getMessageType(15); + internal_static_google_cloud_ces_v1_DataStoreSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_DataStoreSettings_descriptor, + new java.lang.String[] { + "Engines", + }); + internal_static_google_cloud_ces_v1_DataStoreSettings_Engine_descriptor = + internal_static_google_cloud_ces_v1_DataStoreSettings_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_DataStoreSettings_Engine_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_DataStoreSettings_Engine_descriptor, + new java.lang.String[] { + "Name", "Type", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.ces.v1.BigQueryExportProto.getDescriptor(); + com.google.cloud.ces.v1.CommonProto.getDescriptor(); + com.google.cloud.ces.v1.SchemaProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppSnapshot.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppSnapshot.java new file mode 100644 index 000000000000..02f304acd45b --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppSnapshot.java @@ -0,0 +1,3424 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app_version.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * A snapshot of the app.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.AppSnapshot} + */ +@com.google.protobuf.Generated +public final class AppSnapshot extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.AppSnapshot) + AppSnapshotOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AppSnapshot"); + } + + // Use AppSnapshot.newBuilder() to construct. + private AppSnapshot(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AppSnapshot() { + agents_ = java.util.Collections.emptyList(); + tools_ = java.util.Collections.emptyList(); + examples_ = java.util.Collections.emptyList(); + guardrails_ = java.util.Collections.emptyList(); + toolsets_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppVersionProto + .internal_static_google_cloud_ces_v1_AppSnapshot_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppVersionProto + .internal_static_google_cloud_ces_v1_AppSnapshot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.AppSnapshot.class, + com.google.cloud.ces.v1.AppSnapshot.Builder.class); + } + + private int bitField0_; + public static final int APP_FIELD_NUMBER = 1; + private com.google.cloud.ces.v1.App app_; + + /** + * + * + *
      +   * Optional. The basic settings for the app.
      +   * 
      + * + * .google.cloud.ces.v1.App app = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the app field is set. + */ + @java.lang.Override + public boolean hasApp() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Optional. The basic settings for the app.
      +   * 
      + * + * .google.cloud.ces.v1.App app = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The app. + */ + @java.lang.Override + public com.google.cloud.ces.v1.App getApp() { + return app_ == null ? com.google.cloud.ces.v1.App.getDefaultInstance() : app_; + } + + /** + * + * + *
      +   * Optional. The basic settings for the app.
      +   * 
      + * + * .google.cloud.ces.v1.App app = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.ces.v1.AppOrBuilder getAppOrBuilder() { + return app_ == null ? com.google.cloud.ces.v1.App.getDefaultInstance() : app_; + } + + public static final int AGENTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List agents_; + + /** + * + * + *
      +   * Optional. List of agents in the app.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getAgentsList() { + return agents_; + } + + /** + * + * + *
      +   * Optional. List of agents in the app.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getAgentsOrBuilderList() { + return agents_; + } + + /** + * + * + *
      +   * Optional. List of agents in the app.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getAgentsCount() { + return agents_.size(); + } + + /** + * + * + *
      +   * Optional. List of agents in the app.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Agent getAgents(int index) { + return agents_.get(index); + } + + /** + * + * + *
      +   * Optional. List of agents in the app.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.AgentOrBuilder getAgentsOrBuilder(int index) { + return agents_.get(index); + } + + public static final int TOOLS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List tools_; + + /** + * + * + *
      +   * Optional. List of tools in the app.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getToolsList() { + return tools_; + } + + /** + * + * + *
      +   * Optional. List of tools in the app.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getToolsOrBuilderList() { + return tools_; + } + + /** + * + * + *
      +   * Optional. List of tools in the app.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getToolsCount() { + return tools_.size(); + } + + /** + * + * + *
      +   * Optional. List of tools in the app.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Tool getTools(int index) { + return tools_.get(index); + } + + /** + * + * + *
      +   * Optional. List of tools in the app.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolOrBuilder getToolsOrBuilder(int index) { + return tools_.get(index); + } + + public static final int EXAMPLES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List examples_; + + /** + * + * + *
      +   * Optional. List of examples in the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Example examples = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getExamplesList() { + return examples_; + } + + /** + * + * + *
      +   * Optional. List of examples in the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Example examples = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getExamplesOrBuilderList() { + return examples_; + } + + /** + * + * + *
      +   * Optional. List of examples in the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Example examples = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getExamplesCount() { + return examples_.size(); + } + + /** + * + * + *
      +   * Optional. List of examples in the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Example examples = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Example getExamples(int index) { + return examples_.get(index); + } + + /** + * + * + *
      +   * Optional. List of examples in the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Example examples = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ExampleOrBuilder getExamplesOrBuilder(int index) { + return examples_.get(index); + } + + public static final int GUARDRAILS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List guardrails_; + + /** + * + * + *
      +   * Optional. List of guardrails in the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getGuardrailsList() { + return guardrails_; + } + + /** + * + * + *
      +   * Optional. List of guardrails in the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getGuardrailsOrBuilderList() { + return guardrails_; + } + + /** + * + * + *
      +   * Optional. List of guardrails in the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getGuardrailsCount() { + return guardrails_.size(); + } + + /** + * + * + *
      +   * Optional. List of guardrails in the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail getGuardrails(int index) { + return guardrails_.get(index); + } + + /** + * + * + *
      +   * Optional. List of guardrails in the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.GuardrailOrBuilder getGuardrailsOrBuilder(int index) { + return guardrails_.get(index); + } + + public static final int TOOLSETS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List toolsets_; + + /** + * + * + *
      +   * Optional. List of toolsets in the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getToolsetsList() { + return toolsets_; + } + + /** + * + * + *
      +   * Optional. List of toolsets in the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getToolsetsOrBuilderList() { + return toolsets_; + } + + /** + * + * + *
      +   * Optional. List of toolsets in the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getToolsetsCount() { + return toolsets_.size(); + } + + /** + * + * + *
      +   * Optional. List of toolsets in the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Toolset getToolsets(int index) { + return toolsets_.get(index); + } + + /** + * + * + *
      +   * Optional. List of toolsets in the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetOrBuilder getToolsetsOrBuilder(int index) { + return toolsets_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getApp()); + } + for (int i = 0; i < agents_.size(); i++) { + output.writeMessage(2, agents_.get(i)); + } + for (int i = 0; i < tools_.size(); i++) { + output.writeMessage(3, tools_.get(i)); + } + for (int i = 0; i < examples_.size(); i++) { + output.writeMessage(4, examples_.get(i)); + } + for (int i = 0; i < guardrails_.size(); i++) { + output.writeMessage(5, guardrails_.get(i)); + } + for (int i = 0; i < toolsets_.size(); i++) { + output.writeMessage(6, toolsets_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getApp()); + } + for (int i = 0; i < agents_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, agents_.get(i)); + } + for (int i = 0; i < tools_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, tools_.get(i)); + } + for (int i = 0; i < examples_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, examples_.get(i)); + } + for (int i = 0; i < guardrails_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, guardrails_.get(i)); + } + for (int i = 0; i < toolsets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, toolsets_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.AppSnapshot)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.AppSnapshot other = (com.google.cloud.ces.v1.AppSnapshot) obj; + + if (hasApp() != other.hasApp()) return false; + if (hasApp()) { + if (!getApp().equals(other.getApp())) return false; + } + if (!getAgentsList().equals(other.getAgentsList())) return false; + if (!getToolsList().equals(other.getToolsList())) return false; + if (!getExamplesList().equals(other.getExamplesList())) return false; + if (!getGuardrailsList().equals(other.getGuardrailsList())) return false; + if (!getToolsetsList().equals(other.getToolsetsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasApp()) { + hash = (37 * hash) + APP_FIELD_NUMBER; + hash = (53 * hash) + getApp().hashCode(); + } + if (getAgentsCount() > 0) { + hash = (37 * hash) + AGENTS_FIELD_NUMBER; + hash = (53 * hash) + getAgentsList().hashCode(); + } + if (getToolsCount() > 0) { + hash = (37 * hash) + TOOLS_FIELD_NUMBER; + hash = (53 * hash) + getToolsList().hashCode(); + } + if (getExamplesCount() > 0) { + hash = (37 * hash) + EXAMPLES_FIELD_NUMBER; + hash = (53 * hash) + getExamplesList().hashCode(); + } + if (getGuardrailsCount() > 0) { + hash = (37 * hash) + GUARDRAILS_FIELD_NUMBER; + hash = (53 * hash) + getGuardrailsList().hashCode(); + } + if (getToolsetsCount() > 0) { + hash = (37 * hash) + TOOLSETS_FIELD_NUMBER; + hash = (53 * hash) + getToolsetsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.AppSnapshot parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.AppSnapshot parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AppSnapshot parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.AppSnapshot parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AppSnapshot parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.AppSnapshot parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AppSnapshot parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.AppSnapshot parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AppSnapshot parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.AppSnapshot parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AppSnapshot parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.AppSnapshot parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.AppSnapshot prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * A snapshot of the app.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.AppSnapshot} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.AppSnapshot) + com.google.cloud.ces.v1.AppSnapshotOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppVersionProto + .internal_static_google_cloud_ces_v1_AppSnapshot_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppVersionProto + .internal_static_google_cloud_ces_v1_AppSnapshot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.AppSnapshot.class, + com.google.cloud.ces.v1.AppSnapshot.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.AppSnapshot.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAppFieldBuilder(); + internalGetAgentsFieldBuilder(); + internalGetToolsFieldBuilder(); + internalGetExamplesFieldBuilder(); + internalGetGuardrailsFieldBuilder(); + internalGetToolsetsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + app_ = null; + if (appBuilder_ != null) { + appBuilder_.dispose(); + appBuilder_ = null; + } + if (agentsBuilder_ == null) { + agents_ = java.util.Collections.emptyList(); + } else { + agents_ = null; + agentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (toolsBuilder_ == null) { + tools_ = java.util.Collections.emptyList(); + } else { + tools_ = null; + toolsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (examplesBuilder_ == null) { + examples_ = java.util.Collections.emptyList(); + } else { + examples_ = null; + examplesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + if (guardrailsBuilder_ == null) { + guardrails_ = java.util.Collections.emptyList(); + } else { + guardrails_ = null; + guardrailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (toolsetsBuilder_ == null) { + toolsets_ = java.util.Collections.emptyList(); + } else { + toolsets_ = null; + toolsetsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AppVersionProto + .internal_static_google_cloud_ces_v1_AppSnapshot_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.AppSnapshot getDefaultInstanceForType() { + return com.google.cloud.ces.v1.AppSnapshot.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.AppSnapshot build() { + com.google.cloud.ces.v1.AppSnapshot result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.AppSnapshot buildPartial() { + com.google.cloud.ces.v1.AppSnapshot result = new com.google.cloud.ces.v1.AppSnapshot(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1.AppSnapshot result) { + if (agentsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + agents_ = java.util.Collections.unmodifiableList(agents_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.agents_ = agents_; + } else { + result.agents_ = agentsBuilder_.build(); + } + if (toolsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + tools_ = java.util.Collections.unmodifiableList(tools_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.tools_ = tools_; + } else { + result.tools_ = toolsBuilder_.build(); + } + if (examplesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + examples_ = java.util.Collections.unmodifiableList(examples_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.examples_ = examples_; + } else { + result.examples_ = examplesBuilder_.build(); + } + if (guardrailsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + guardrails_ = java.util.Collections.unmodifiableList(guardrails_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.guardrails_ = guardrails_; + } else { + result.guardrails_ = guardrailsBuilder_.build(); + } + if (toolsetsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + toolsets_ = java.util.Collections.unmodifiableList(toolsets_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.toolsets_ = toolsets_; + } else { + result.toolsets_ = toolsetsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.AppSnapshot result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.app_ = appBuilder_ == null ? app_ : appBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.AppSnapshot) { + return mergeFrom((com.google.cloud.ces.v1.AppSnapshot) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.AppSnapshot other) { + if (other == com.google.cloud.ces.v1.AppSnapshot.getDefaultInstance()) return this; + if (other.hasApp()) { + mergeApp(other.getApp()); + } + if (agentsBuilder_ == null) { + if (!other.agents_.isEmpty()) { + if (agents_.isEmpty()) { + agents_ = other.agents_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAgentsIsMutable(); + agents_.addAll(other.agents_); + } + onChanged(); + } + } else { + if (!other.agents_.isEmpty()) { + if (agentsBuilder_.isEmpty()) { + agentsBuilder_.dispose(); + agentsBuilder_ = null; + agents_ = other.agents_; + bitField0_ = (bitField0_ & ~0x00000002); + agentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAgentsFieldBuilder() + : null; + } else { + agentsBuilder_.addAllMessages(other.agents_); + } + } + } + if (toolsBuilder_ == null) { + if (!other.tools_.isEmpty()) { + if (tools_.isEmpty()) { + tools_ = other.tools_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureToolsIsMutable(); + tools_.addAll(other.tools_); + } + onChanged(); + } + } else { + if (!other.tools_.isEmpty()) { + if (toolsBuilder_.isEmpty()) { + toolsBuilder_.dispose(); + toolsBuilder_ = null; + tools_ = other.tools_; + bitField0_ = (bitField0_ & ~0x00000004); + toolsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetToolsFieldBuilder() + : null; + } else { + toolsBuilder_.addAllMessages(other.tools_); + } + } + } + if (examplesBuilder_ == null) { + if (!other.examples_.isEmpty()) { + if (examples_.isEmpty()) { + examples_ = other.examples_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureExamplesIsMutable(); + examples_.addAll(other.examples_); + } + onChanged(); + } + } else { + if (!other.examples_.isEmpty()) { + if (examplesBuilder_.isEmpty()) { + examplesBuilder_.dispose(); + examplesBuilder_ = null; + examples_ = other.examples_; + bitField0_ = (bitField0_ & ~0x00000008); + examplesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetExamplesFieldBuilder() + : null; + } else { + examplesBuilder_.addAllMessages(other.examples_); + } + } + } + if (guardrailsBuilder_ == null) { + if (!other.guardrails_.isEmpty()) { + if (guardrails_.isEmpty()) { + guardrails_ = other.guardrails_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureGuardrailsIsMutable(); + guardrails_.addAll(other.guardrails_); + } + onChanged(); + } + } else { + if (!other.guardrails_.isEmpty()) { + if (guardrailsBuilder_.isEmpty()) { + guardrailsBuilder_.dispose(); + guardrailsBuilder_ = null; + guardrails_ = other.guardrails_; + bitField0_ = (bitField0_ & ~0x00000010); + guardrailsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetGuardrailsFieldBuilder() + : null; + } else { + guardrailsBuilder_.addAllMessages(other.guardrails_); + } + } + } + if (toolsetsBuilder_ == null) { + if (!other.toolsets_.isEmpty()) { + if (toolsets_.isEmpty()) { + toolsets_ = other.toolsets_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureToolsetsIsMutable(); + toolsets_.addAll(other.toolsets_); + } + onChanged(); + } + } else { + if (!other.toolsets_.isEmpty()) { + if (toolsetsBuilder_.isEmpty()) { + toolsetsBuilder_.dispose(); + toolsetsBuilder_ = null; + toolsets_ = other.toolsets_; + bitField0_ = (bitField0_ & ~0x00000020); + toolsetsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetToolsetsFieldBuilder() + : null; + } else { + toolsetsBuilder_.addAllMessages(other.toolsets_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(internalGetAppFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.ces.v1.Agent m = + input.readMessage(com.google.cloud.ces.v1.Agent.parser(), extensionRegistry); + if (agentsBuilder_ == null) { + ensureAgentsIsMutable(); + agents_.add(m); + } else { + agentsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + com.google.cloud.ces.v1.Tool m = + input.readMessage(com.google.cloud.ces.v1.Tool.parser(), extensionRegistry); + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(m); + } else { + toolsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + com.google.cloud.ces.v1.Example m = + input.readMessage(com.google.cloud.ces.v1.Example.parser(), extensionRegistry); + if (examplesBuilder_ == null) { + ensureExamplesIsMutable(); + examples_.add(m); + } else { + examplesBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + com.google.cloud.ces.v1.Guardrail m = + input.readMessage( + com.google.cloud.ces.v1.Guardrail.parser(), extensionRegistry); + if (guardrailsBuilder_ == null) { + ensureGuardrailsIsMutable(); + guardrails_.add(m); + } else { + guardrailsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + com.google.cloud.ces.v1.Toolset m = + input.readMessage(com.google.cloud.ces.v1.Toolset.parser(), extensionRegistry); + if (toolsetsBuilder_ == null) { + ensureToolsetsIsMutable(); + toolsets_.add(m); + } else { + toolsetsBuilder_.addMessage(m); + } + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.ces.v1.App app_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.App, + com.google.cloud.ces.v1.App.Builder, + com.google.cloud.ces.v1.AppOrBuilder> + appBuilder_; + + /** + * + * + *
      +     * Optional. The basic settings for the app.
      +     * 
      + * + * .google.cloud.ces.v1.App app = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the app field is set. + */ + public boolean hasApp() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Optional. The basic settings for the app.
      +     * 
      + * + * .google.cloud.ces.v1.App app = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The app. + */ + public com.google.cloud.ces.v1.App getApp() { + if (appBuilder_ == null) { + return app_ == null ? com.google.cloud.ces.v1.App.getDefaultInstance() : app_; + } else { + return appBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. The basic settings for the app.
      +     * 
      + * + * .google.cloud.ces.v1.App app = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setApp(com.google.cloud.ces.v1.App value) { + if (appBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + app_ = value; + } else { + appBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The basic settings for the app.
      +     * 
      + * + * .google.cloud.ces.v1.App app = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setApp(com.google.cloud.ces.v1.App.Builder builderForValue) { + if (appBuilder_ == null) { + app_ = builderForValue.build(); + } else { + appBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The basic settings for the app.
      +     * 
      + * + * .google.cloud.ces.v1.App app = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeApp(com.google.cloud.ces.v1.App value) { + if (appBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && app_ != null + && app_ != com.google.cloud.ces.v1.App.getDefaultInstance()) { + getAppBuilder().mergeFrom(value); + } else { + app_ = value; + } + } else { + appBuilder_.mergeFrom(value); + } + if (app_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The basic settings for the app.
      +     * 
      + * + * .google.cloud.ces.v1.App app = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearApp() { + bitField0_ = (bitField0_ & ~0x00000001); + app_ = null; + if (appBuilder_ != null) { + appBuilder_.dispose(); + appBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The basic settings for the app.
      +     * 
      + * + * .google.cloud.ces.v1.App app = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.ces.v1.App.Builder getAppBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetAppFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The basic settings for the app.
      +     * 
      + * + * .google.cloud.ces.v1.App app = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.ces.v1.AppOrBuilder getAppOrBuilder() { + if (appBuilder_ != null) { + return appBuilder_.getMessageOrBuilder(); + } else { + return app_ == null ? com.google.cloud.ces.v1.App.getDefaultInstance() : app_; + } + } + + /** + * + * + *
      +     * Optional. The basic settings for the app.
      +     * 
      + * + * .google.cloud.ces.v1.App app = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.App, + com.google.cloud.ces.v1.App.Builder, + com.google.cloud.ces.v1.AppOrBuilder> + internalGetAppFieldBuilder() { + if (appBuilder_ == null) { + appBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.App, + com.google.cloud.ces.v1.App.Builder, + com.google.cloud.ces.v1.AppOrBuilder>(getApp(), getParentForChildren(), isClean()); + app_ = null; + } + return appBuilder_; + } + + private java.util.List agents_ = + java.util.Collections.emptyList(); + + private void ensureAgentsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + agents_ = new java.util.ArrayList(agents_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Agent, + com.google.cloud.ces.v1.Agent.Builder, + com.google.cloud.ces.v1.AgentOrBuilder> + agentsBuilder_; + + /** + * + * + *
      +     * Optional. List of agents in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent agents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getAgentsList() { + if (agentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(agents_); + } else { + return agentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Optional. List of agents in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent agents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getAgentsCount() { + if (agentsBuilder_ == null) { + return agents_.size(); + } else { + return agentsBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Optional. List of agents in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent agents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Agent getAgents(int index) { + if (agentsBuilder_ == null) { + return agents_.get(index); + } else { + return agentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Optional. List of agents in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent agents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgents(int index, com.google.cloud.ces.v1.Agent value) { + if (agentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAgentsIsMutable(); + agents_.set(index, value); + onChanged(); + } else { + agentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of agents in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent agents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgents(int index, com.google.cloud.ces.v1.Agent.Builder builderForValue) { + if (agentsBuilder_ == null) { + ensureAgentsIsMutable(); + agents_.set(index, builderForValue.build()); + onChanged(); + } else { + agentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of agents in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent agents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAgents(com.google.cloud.ces.v1.Agent value) { + if (agentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAgentsIsMutable(); + agents_.add(value); + onChanged(); + } else { + agentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of agents in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent agents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAgents(int index, com.google.cloud.ces.v1.Agent value) { + if (agentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAgentsIsMutable(); + agents_.add(index, value); + onChanged(); + } else { + agentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of agents in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent agents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAgents(com.google.cloud.ces.v1.Agent.Builder builderForValue) { + if (agentsBuilder_ == null) { + ensureAgentsIsMutable(); + agents_.add(builderForValue.build()); + onChanged(); + } else { + agentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of agents in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent agents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAgents(int index, com.google.cloud.ces.v1.Agent.Builder builderForValue) { + if (agentsBuilder_ == null) { + ensureAgentsIsMutable(); + agents_.add(index, builderForValue.build()); + onChanged(); + } else { + agentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of agents in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent agents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllAgents( + java.lang.Iterable values) { + if (agentsBuilder_ == null) { + ensureAgentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, agents_); + onChanged(); + } else { + agentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of agents in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent agents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAgents() { + if (agentsBuilder_ == null) { + agents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + agentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of agents in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent agents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAgents(int index) { + if (agentsBuilder_ == null) { + ensureAgentsIsMutable(); + agents_.remove(index); + onChanged(); + } else { + agentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of agents in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent agents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Agent.Builder getAgentsBuilder(int index) { + return internalGetAgentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Optional. List of agents in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent agents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.AgentOrBuilder getAgentsOrBuilder(int index) { + if (agentsBuilder_ == null) { + return agents_.get(index); + } else { + return agentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Optional. List of agents in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent agents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAgentsOrBuilderList() { + if (agentsBuilder_ != null) { + return agentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(agents_); + } + } + + /** + * + * + *
      +     * Optional. List of agents in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent agents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Agent.Builder addAgentsBuilder() { + return internalGetAgentsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.Agent.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. List of agents in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent agents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Agent.Builder addAgentsBuilder(int index) { + return internalGetAgentsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.Agent.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. List of agents in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Agent agents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getAgentsBuilderList() { + return internalGetAgentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Agent, + com.google.cloud.ces.v1.Agent.Builder, + com.google.cloud.ces.v1.AgentOrBuilder> + internalGetAgentsFieldBuilder() { + if (agentsBuilder_ == null) { + agentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Agent, + com.google.cloud.ces.v1.Agent.Builder, + com.google.cloud.ces.v1.AgentOrBuilder>( + agents_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + agents_ = null; + } + return agentsBuilder_; + } + + private java.util.List tools_ = java.util.Collections.emptyList(); + + private void ensureToolsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + tools_ = new java.util.ArrayList(tools_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Tool, + com.google.cloud.ces.v1.Tool.Builder, + com.google.cloud.ces.v1.ToolOrBuilder> + toolsBuilder_; + + /** + * + * + *
      +     * Optional. List of tools in the app.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getToolsList() { + if (toolsBuilder_ == null) { + return java.util.Collections.unmodifiableList(tools_); + } else { + return toolsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Optional. List of tools in the app.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getToolsCount() { + if (toolsBuilder_ == null) { + return tools_.size(); + } else { + return toolsBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Optional. List of tools in the app.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Tool getTools(int index) { + if (toolsBuilder_ == null) { + return tools_.get(index); + } else { + return toolsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Optional. List of tools in the app.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTools(int index, com.google.cloud.ces.v1.Tool value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.set(index, value); + onChanged(); + } else { + toolsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of tools in the app.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTools(int index, com.google.cloud.ces.v1.Tool.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.set(index, builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of tools in the app.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTools(com.google.cloud.ces.v1.Tool value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.add(value); + onChanged(); + } else { + toolsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of tools in the app.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTools(int index, com.google.cloud.ces.v1.Tool value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.add(index, value); + onChanged(); + } else { + toolsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of tools in the app.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTools(com.google.cloud.ces.v1.Tool.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of tools in the app.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTools(int index, com.google.cloud.ces.v1.Tool.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(index, builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of tools in the app.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllTools(java.lang.Iterable values) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tools_); + onChanged(); + } else { + toolsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of tools in the app.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTools() { + if (toolsBuilder_ == null) { + tools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + toolsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of tools in the app.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeTools(int index) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.remove(index); + onChanged(); + } else { + toolsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of tools in the app.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Tool.Builder getToolsBuilder(int index) { + return internalGetToolsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Optional. List of tools in the app.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ToolOrBuilder getToolsOrBuilder(int index) { + if (toolsBuilder_ == null) { + return tools_.get(index); + } else { + return toolsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Optional. List of tools in the app.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getToolsOrBuilderList() { + if (toolsBuilder_ != null) { + return toolsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tools_); + } + } + + /** + * + * + *
      +     * Optional. List of tools in the app.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Tool.Builder addToolsBuilder() { + return internalGetToolsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.Tool.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. List of tools in the app.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Tool.Builder addToolsBuilder(int index) { + return internalGetToolsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.Tool.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. List of tools in the app.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getToolsBuilderList() { + return internalGetToolsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Tool, + com.google.cloud.ces.v1.Tool.Builder, + com.google.cloud.ces.v1.ToolOrBuilder> + internalGetToolsFieldBuilder() { + if (toolsBuilder_ == null) { + toolsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Tool, + com.google.cloud.ces.v1.Tool.Builder, + com.google.cloud.ces.v1.ToolOrBuilder>( + tools_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + tools_ = null; + } + return toolsBuilder_; + } + + private java.util.List examples_ = + java.util.Collections.emptyList(); + + private void ensureExamplesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + examples_ = new java.util.ArrayList(examples_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Example, + com.google.cloud.ces.v1.Example.Builder, + com.google.cloud.ces.v1.ExampleOrBuilder> + examplesBuilder_; + + /** + * + * + *
      +     * Optional. List of examples in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Example examples = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getExamplesList() { + if (examplesBuilder_ == null) { + return java.util.Collections.unmodifiableList(examples_); + } else { + return examplesBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Optional. List of examples in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Example examples = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getExamplesCount() { + if (examplesBuilder_ == null) { + return examples_.size(); + } else { + return examplesBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Optional. List of examples in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Example examples = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Example getExamples(int index) { + if (examplesBuilder_ == null) { + return examples_.get(index); + } else { + return examplesBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Optional. List of examples in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Example examples = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExamples(int index, com.google.cloud.ces.v1.Example value) { + if (examplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExamplesIsMutable(); + examples_.set(index, value); + onChanged(); + } else { + examplesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of examples in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Example examples = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExamples(int index, com.google.cloud.ces.v1.Example.Builder builderForValue) { + if (examplesBuilder_ == null) { + ensureExamplesIsMutable(); + examples_.set(index, builderForValue.build()); + onChanged(); + } else { + examplesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of examples in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Example examples = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addExamples(com.google.cloud.ces.v1.Example value) { + if (examplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExamplesIsMutable(); + examples_.add(value); + onChanged(); + } else { + examplesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of examples in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Example examples = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addExamples(int index, com.google.cloud.ces.v1.Example value) { + if (examplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExamplesIsMutable(); + examples_.add(index, value); + onChanged(); + } else { + examplesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of examples in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Example examples = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addExamples(com.google.cloud.ces.v1.Example.Builder builderForValue) { + if (examplesBuilder_ == null) { + ensureExamplesIsMutable(); + examples_.add(builderForValue.build()); + onChanged(); + } else { + examplesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of examples in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Example examples = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addExamples(int index, com.google.cloud.ces.v1.Example.Builder builderForValue) { + if (examplesBuilder_ == null) { + ensureExamplesIsMutable(); + examples_.add(index, builderForValue.build()); + onChanged(); + } else { + examplesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of examples in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Example examples = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllExamples( + java.lang.Iterable values) { + if (examplesBuilder_ == null) { + ensureExamplesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, examples_); + onChanged(); + } else { + examplesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of examples in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Example examples = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearExamples() { + if (examplesBuilder_ == null) { + examples_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + examplesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of examples in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Example examples = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeExamples(int index) { + if (examplesBuilder_ == null) { + ensureExamplesIsMutable(); + examples_.remove(index); + onChanged(); + } else { + examplesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of examples in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Example examples = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Example.Builder getExamplesBuilder(int index) { + return internalGetExamplesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Optional. List of examples in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Example examples = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ExampleOrBuilder getExamplesOrBuilder(int index) { + if (examplesBuilder_ == null) { + return examples_.get(index); + } else { + return examplesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Optional. List of examples in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Example examples = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getExamplesOrBuilderList() { + if (examplesBuilder_ != null) { + return examplesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(examples_); + } + } + + /** + * + * + *
      +     * Optional. List of examples in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Example examples = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Example.Builder addExamplesBuilder() { + return internalGetExamplesFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.Example.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. List of examples in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Example examples = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Example.Builder addExamplesBuilder(int index) { + return internalGetExamplesFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.Example.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. List of examples in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Example examples = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getExamplesBuilderList() { + return internalGetExamplesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Example, + com.google.cloud.ces.v1.Example.Builder, + com.google.cloud.ces.v1.ExampleOrBuilder> + internalGetExamplesFieldBuilder() { + if (examplesBuilder_ == null) { + examplesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Example, + com.google.cloud.ces.v1.Example.Builder, + com.google.cloud.ces.v1.ExampleOrBuilder>( + examples_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + examples_ = null; + } + return examplesBuilder_; + } + + private java.util.List guardrails_ = + java.util.Collections.emptyList(); + + private void ensureGuardrailsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + guardrails_ = new java.util.ArrayList(guardrails_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Guardrail, + com.google.cloud.ces.v1.Guardrail.Builder, + com.google.cloud.ces.v1.GuardrailOrBuilder> + guardrailsBuilder_; + + /** + * + * + *
      +     * Optional. List of guardrails in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getGuardrailsList() { + if (guardrailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(guardrails_); + } else { + return guardrailsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Optional. List of guardrails in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getGuardrailsCount() { + if (guardrailsBuilder_ == null) { + return guardrails_.size(); + } else { + return guardrailsBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Optional. List of guardrails in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Guardrail getGuardrails(int index) { + if (guardrailsBuilder_ == null) { + return guardrails_.get(index); + } else { + return guardrailsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Optional. List of guardrails in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGuardrails(int index, com.google.cloud.ces.v1.Guardrail value) { + if (guardrailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGuardrailsIsMutable(); + guardrails_.set(index, value); + onChanged(); + } else { + guardrailsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of guardrails in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGuardrails( + int index, com.google.cloud.ces.v1.Guardrail.Builder builderForValue) { + if (guardrailsBuilder_ == null) { + ensureGuardrailsIsMutable(); + guardrails_.set(index, builderForValue.build()); + onChanged(); + } else { + guardrailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of guardrails in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addGuardrails(com.google.cloud.ces.v1.Guardrail value) { + if (guardrailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGuardrailsIsMutable(); + guardrails_.add(value); + onChanged(); + } else { + guardrailsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of guardrails in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addGuardrails(int index, com.google.cloud.ces.v1.Guardrail value) { + if (guardrailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGuardrailsIsMutable(); + guardrails_.add(index, value); + onChanged(); + } else { + guardrailsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of guardrails in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addGuardrails(com.google.cloud.ces.v1.Guardrail.Builder builderForValue) { + if (guardrailsBuilder_ == null) { + ensureGuardrailsIsMutable(); + guardrails_.add(builderForValue.build()); + onChanged(); + } else { + guardrailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of guardrails in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addGuardrails( + int index, com.google.cloud.ces.v1.Guardrail.Builder builderForValue) { + if (guardrailsBuilder_ == null) { + ensureGuardrailsIsMutable(); + guardrails_.add(index, builderForValue.build()); + onChanged(); + } else { + guardrailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of guardrails in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllGuardrails( + java.lang.Iterable values) { + if (guardrailsBuilder_ == null) { + ensureGuardrailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, guardrails_); + onChanged(); + } else { + guardrailsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of guardrails in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGuardrails() { + if (guardrailsBuilder_ == null) { + guardrails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + guardrailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of guardrails in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeGuardrails(int index) { + if (guardrailsBuilder_ == null) { + ensureGuardrailsIsMutable(); + guardrails_.remove(index); + onChanged(); + } else { + guardrailsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of guardrails in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Guardrail.Builder getGuardrailsBuilder(int index) { + return internalGetGuardrailsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Optional. List of guardrails in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.GuardrailOrBuilder getGuardrailsOrBuilder(int index) { + if (guardrailsBuilder_ == null) { + return guardrails_.get(index); + } else { + return guardrailsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Optional. List of guardrails in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getGuardrailsOrBuilderList() { + if (guardrailsBuilder_ != null) { + return guardrailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(guardrails_); + } + } + + /** + * + * + *
      +     * Optional. List of guardrails in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Guardrail.Builder addGuardrailsBuilder() { + return internalGetGuardrailsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.Guardrail.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. List of guardrails in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Guardrail.Builder addGuardrailsBuilder(int index) { + return internalGetGuardrailsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.Guardrail.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. List of guardrails in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getGuardrailsBuilderList() { + return internalGetGuardrailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Guardrail, + com.google.cloud.ces.v1.Guardrail.Builder, + com.google.cloud.ces.v1.GuardrailOrBuilder> + internalGetGuardrailsFieldBuilder() { + if (guardrailsBuilder_ == null) { + guardrailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Guardrail, + com.google.cloud.ces.v1.Guardrail.Builder, + com.google.cloud.ces.v1.GuardrailOrBuilder>( + guardrails_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + guardrails_ = null; + } + return guardrailsBuilder_; + } + + private java.util.List toolsets_ = + java.util.Collections.emptyList(); + + private void ensureToolsetsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + toolsets_ = new java.util.ArrayList(toolsets_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Toolset, + com.google.cloud.ces.v1.Toolset.Builder, + com.google.cloud.ces.v1.ToolsetOrBuilder> + toolsetsBuilder_; + + /** + * + * + *
      +     * Optional. List of toolsets in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getToolsetsList() { + if (toolsetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(toolsets_); + } else { + return toolsetsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Optional. List of toolsets in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getToolsetsCount() { + if (toolsetsBuilder_ == null) { + return toolsets_.size(); + } else { + return toolsetsBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Optional. List of toolsets in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Toolset getToolsets(int index) { + if (toolsetsBuilder_ == null) { + return toolsets_.get(index); + } else { + return toolsetsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Optional. List of toolsets in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolsets(int index, com.google.cloud.ces.v1.Toolset value) { + if (toolsetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsetsIsMutable(); + toolsets_.set(index, value); + onChanged(); + } else { + toolsetsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of toolsets in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolsets(int index, com.google.cloud.ces.v1.Toolset.Builder builderForValue) { + if (toolsetsBuilder_ == null) { + ensureToolsetsIsMutable(); + toolsets_.set(index, builderForValue.build()); + onChanged(); + } else { + toolsetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of toolsets in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolsets(com.google.cloud.ces.v1.Toolset value) { + if (toolsetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsetsIsMutable(); + toolsets_.add(value); + onChanged(); + } else { + toolsetsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of toolsets in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolsets(int index, com.google.cloud.ces.v1.Toolset value) { + if (toolsetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsetsIsMutable(); + toolsets_.add(index, value); + onChanged(); + } else { + toolsetsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of toolsets in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolsets(com.google.cloud.ces.v1.Toolset.Builder builderForValue) { + if (toolsetsBuilder_ == null) { + ensureToolsetsIsMutable(); + toolsets_.add(builderForValue.build()); + onChanged(); + } else { + toolsetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of toolsets in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolsets(int index, com.google.cloud.ces.v1.Toolset.Builder builderForValue) { + if (toolsetsBuilder_ == null) { + ensureToolsetsIsMutable(); + toolsets_.add(index, builderForValue.build()); + onChanged(); + } else { + toolsetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of toolsets in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllToolsets( + java.lang.Iterable values) { + if (toolsetsBuilder_ == null) { + ensureToolsetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, toolsets_); + onChanged(); + } else { + toolsetsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of toolsets in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearToolsets() { + if (toolsetsBuilder_ == null) { + toolsets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + toolsetsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of toolsets in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeToolsets(int index) { + if (toolsetsBuilder_ == null) { + ensureToolsetsIsMutable(); + toolsets_.remove(index); + onChanged(); + } else { + toolsetsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Optional. List of toolsets in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Toolset.Builder getToolsetsBuilder(int index) { + return internalGetToolsetsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Optional. List of toolsets in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ToolsetOrBuilder getToolsetsOrBuilder(int index) { + if (toolsetsBuilder_ == null) { + return toolsets_.get(index); + } else { + return toolsetsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Optional. List of toolsets in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getToolsetsOrBuilderList() { + if (toolsetsBuilder_ != null) { + return toolsetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(toolsets_); + } + } + + /** + * + * + *
      +     * Optional. List of toolsets in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Toolset.Builder addToolsetsBuilder() { + return internalGetToolsetsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.Toolset.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. List of toolsets in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Toolset.Builder addToolsetsBuilder(int index) { + return internalGetToolsetsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.Toolset.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. List of toolsets in the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getToolsetsBuilderList() { + return internalGetToolsetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Toolset, + com.google.cloud.ces.v1.Toolset.Builder, + com.google.cloud.ces.v1.ToolsetOrBuilder> + internalGetToolsetsFieldBuilder() { + if (toolsetsBuilder_ == null) { + toolsetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Toolset, + com.google.cloud.ces.v1.Toolset.Builder, + com.google.cloud.ces.v1.ToolsetOrBuilder>( + toolsets_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); + toolsets_ = null; + } + return toolsetsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.AppSnapshot) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.AppSnapshot) + private static final com.google.cloud.ces.v1.AppSnapshot DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.AppSnapshot(); + } + + public static com.google.cloud.ces.v1.AppSnapshot getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AppSnapshot parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.AppSnapshot getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppSnapshotOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppSnapshotOrBuilder.java new file mode 100644 index 000000000000..3d0d38719c92 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppSnapshotOrBuilder.java @@ -0,0 +1,380 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app_version.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface AppSnapshotOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.AppSnapshot) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. The basic settings for the app.
      +   * 
      + * + * .google.cloud.ces.v1.App app = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the app field is set. + */ + boolean hasApp(); + + /** + * + * + *
      +   * Optional. The basic settings for the app.
      +   * 
      + * + * .google.cloud.ces.v1.App app = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The app. + */ + com.google.cloud.ces.v1.App getApp(); + + /** + * + * + *
      +   * Optional. The basic settings for the app.
      +   * 
      + * + * .google.cloud.ces.v1.App app = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.ces.v1.AppOrBuilder getAppOrBuilder(); + + /** + * + * + *
      +   * Optional. List of agents in the app.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getAgentsList(); + + /** + * + * + *
      +   * Optional. List of agents in the app.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.Agent getAgents(int index); + + /** + * + * + *
      +   * Optional. List of agents in the app.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAgentsCount(); + + /** + * + * + *
      +   * Optional. List of agents in the app.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getAgentsOrBuilderList(); + + /** + * + * + *
      +   * Optional. List of agents in the app.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.AgentOrBuilder getAgentsOrBuilder(int index); + + /** + * + * + *
      +   * Optional. List of tools in the app.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getToolsList(); + + /** + * + * + *
      +   * Optional. List of tools in the app.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.Tool getTools(int index); + + /** + * + * + *
      +   * Optional. List of tools in the app.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getToolsCount(); + + /** + * + * + *
      +   * Optional. List of tools in the app.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getToolsOrBuilderList(); + + /** + * + * + *
      +   * Optional. List of tools in the app.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ToolOrBuilder getToolsOrBuilder(int index); + + /** + * + * + *
      +   * Optional. List of examples in the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Example examples = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getExamplesList(); + + /** + * + * + *
      +   * Optional. List of examples in the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Example examples = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.Example getExamples(int index); + + /** + * + * + *
      +   * Optional. List of examples in the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Example examples = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getExamplesCount(); + + /** + * + * + *
      +   * Optional. List of examples in the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Example examples = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getExamplesOrBuilderList(); + + /** + * + * + *
      +   * Optional. List of examples in the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Example examples = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ExampleOrBuilder getExamplesOrBuilder(int index); + + /** + * + * + *
      +   * Optional. List of guardrails in the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getGuardrailsList(); + + /** + * + * + *
      +   * Optional. List of guardrails in the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.Guardrail getGuardrails(int index); + + /** + * + * + *
      +   * Optional. List of guardrails in the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getGuardrailsCount(); + + /** + * + * + *
      +   * Optional. List of guardrails in the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getGuardrailsOrBuilderList(); + + /** + * + * + *
      +   * Optional. List of guardrails in the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.GuardrailOrBuilder getGuardrailsOrBuilder(int index); + + /** + * + * + *
      +   * Optional. List of toolsets in the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getToolsetsList(); + + /** + * + * + *
      +   * Optional. List of toolsets in the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.Toolset getToolsets(int index); + + /** + * + * + *
      +   * Optional. List of toolsets in the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getToolsetsCount(); + + /** + * + * + *
      +   * Optional. List of toolsets in the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getToolsetsOrBuilderList(); + + /** + * + * + *
      +   * Optional. List of toolsets in the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ToolsetOrBuilder getToolsetsOrBuilder(int index); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppVersion.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppVersion.java new file mode 100644 index 000000000000..220744979eef --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppVersion.java @@ -0,0 +1,1990 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app_version.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * In Customer Engagement Suite (CES), an app version is a snapshot of the app
      + * at a specific point in time. It is immutable and cannot be modified once
      + * created.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.AppVersion} + */ +@com.google.protobuf.Generated +public final class AppVersion extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.AppVersion) + AppVersionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AppVersion"); + } + + // Use AppVersion.newBuilder() to construct. + private AppVersion(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AppVersion() { + name_ = ""; + displayName_ = ""; + description_ = ""; + creator_ = ""; + etag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppVersionProto + .internal_static_google_cloud_ces_v1_AppVersion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppVersionProto + .internal_static_google_cloud_ces_v1_AppVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.AppVersion.class, + com.google.cloud.ces.v1.AppVersion.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Identifier. The unique identifier of the app version.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Identifier. The unique identifier of the app version.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
      +   * Optional. The display name of the app version.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The display name of the app version.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
      +   * Optional. The description of the app version.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The description of the app version.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATOR_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object creator_ = ""; + + /** + * + * + *
      +   * Output only. Email of the user who created the app version.
      +   * 
      + * + * string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The creator. + */ + @java.lang.Override + public java.lang.String getCreator() { + java.lang.Object ref = creator_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + creator_ = s; + return s; + } + } + + /** + * + * + *
      +   * Output only. Email of the user who created the app version.
      +   * 
      + * + * string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for creator. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCreatorBytes() { + java.lang.Object ref = creator_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + creator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
      +   * Output only. Timestamp when the app version was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Output only. Timestamp when the app version was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
      +   * Output only. Timestamp when the app version was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int SNAPSHOT_FIELD_NUMBER = 8; + private com.google.cloud.ces.v1.AppSnapshot snapshot_; + + /** + * + * + *
      +   * Output only. The snapshot of the app when the version is created.
      +   * 
      + * + * + * .google.cloud.ces.v1.AppSnapshot snapshot = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the snapshot field is set. + */ + @java.lang.Override + public boolean hasSnapshot() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Output only. The snapshot of the app when the version is created.
      +   * 
      + * + * + * .google.cloud.ces.v1.AppSnapshot snapshot = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The snapshot. + */ + @java.lang.Override + public com.google.cloud.ces.v1.AppSnapshot getSnapshot() { + return snapshot_ == null ? com.google.cloud.ces.v1.AppSnapshot.getDefaultInstance() : snapshot_; + } + + /** + * + * + *
      +   * Output only. The snapshot of the app when the version is created.
      +   * 
      + * + * + * .google.cloud.ces.v1.AppSnapshot snapshot = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.AppSnapshotOrBuilder getSnapshotOrBuilder() { + return snapshot_ == null ? com.google.cloud.ces.v1.AppSnapshot.getDefaultInstance() : snapshot_; + } + + public static final int ETAG_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
      +   * Output only. Etag used to ensure the object hasn't changed during a
      +   * read-modify-write operation. If the etag is empty, the update will
      +   * overwrite any concurrent changes.
      +   * 
      + * + * string etag = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + + /** + * + * + *
      +   * Output only. Etag used to ensure the object hasn't changed during a
      +   * read-modify-write operation. If the etag is empty, the update will
      +   * overwrite any concurrent changes.
      +   * 
      + * + * string etag = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(creator_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, creator_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, etag_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(8, getSnapshot()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(creator_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, creator_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, etag_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSnapshot()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.AppVersion)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.AppVersion other = (com.google.cloud.ces.v1.AppVersion) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getCreator().equals(other.getCreator())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasSnapshot() != other.hasSnapshot()) return false; + if (hasSnapshot()) { + if (!getSnapshot().equals(other.getSnapshot())) return false; + } + if (!getEtag().equals(other.getEtag())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + CREATOR_FIELD_NUMBER; + hash = (53 * hash) + getCreator().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasSnapshot()) { + hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER; + hash = (53 * hash) + getSnapshot().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.AppVersion parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.AppVersion parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AppVersion parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.AppVersion parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AppVersion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.AppVersion parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AppVersion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.AppVersion parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AppVersion parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.AppVersion parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AppVersion parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.AppVersion parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.AppVersion prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * In Customer Engagement Suite (CES), an app version is a snapshot of the app
      +   * at a specific point in time. It is immutable and cannot be modified once
      +   * created.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.AppVersion} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.AppVersion) + com.google.cloud.ces.v1.AppVersionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppVersionProto + .internal_static_google_cloud_ces_v1_AppVersion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppVersionProto + .internal_static_google_cloud_ces_v1_AppVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.AppVersion.class, + com.google.cloud.ces.v1.AppVersion.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.AppVersion.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetSnapshotFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + description_ = ""; + creator_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + snapshot_ = null; + if (snapshotBuilder_ != null) { + snapshotBuilder_.dispose(); + snapshotBuilder_ = null; + } + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AppVersionProto + .internal_static_google_cloud_ces_v1_AppVersion_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.AppVersion getDefaultInstanceForType() { + return com.google.cloud.ces.v1.AppVersion.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.AppVersion build() { + com.google.cloud.ces.v1.AppVersion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.AppVersion buildPartial() { + com.google.cloud.ces.v1.AppVersion result = new com.google.cloud.ces.v1.AppVersion(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.AppVersion result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.creator_ = creator_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.snapshot_ = snapshotBuilder_ == null ? snapshot_ : snapshotBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.etag_ = etag_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.AppVersion) { + return mergeFrom((com.google.cloud.ces.v1.AppVersion) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.AppVersion other) { + if (other == com.google.cloud.ces.v1.AppVersion.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getCreator().isEmpty()) { + creator_ = other.creator_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasSnapshot()) { + mergeSnapshot(other.getSnapshot()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000040; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + { + creator_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 58: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetSnapshotFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Identifier. The unique identifier of the app version.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the app version.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the app version.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the app version.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the app version.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
      +     * Optional. The display name of the app version.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The display name of the app version.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The display name of the app version.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The display name of the app version.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The display name of the app version.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
      +     * Optional. The description of the app version.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The description of the app version.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The description of the app version.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The description of the app version.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The description of the app version.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object creator_ = ""; + + /** + * + * + *
      +     * Output only. Email of the user who created the app version.
      +     * 
      + * + * string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The creator. + */ + public java.lang.String getCreator() { + java.lang.Object ref = creator_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + creator_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Output only. Email of the user who created the app version.
      +     * 
      + * + * string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for creator. + */ + public com.google.protobuf.ByteString getCreatorBytes() { + java.lang.Object ref = creator_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + creator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Output only. Email of the user who created the app version.
      +     * 
      + * + * string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The creator to set. + * @return This builder for chaining. + */ + public Builder setCreator(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + creator_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Email of the user who created the app version.
      +     * 
      + * + * string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCreator() { + creator_ = getDefaultInstance().getCreator(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Email of the user who created the app version.
      +     * 
      + * + * string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for creator to set. + * @return This builder for chaining. + */ + public Builder setCreatorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + creator_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
      +     * Output only. Timestamp when the app version was created.
      +     * 
      + * + * + * .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); + } + + /** + * + * + *
      +     * Output only. Timestamp when the app version was created.
      +     * 
      + * + * + * .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_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the app version was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the app version was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the app version was created.
      +     * 
      + * + * + * .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()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the app version was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the app version was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. Timestamp when the app version was created.
      +     * 
      + * + * + * .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_; + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the app version was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.cloud.ces.v1.AppSnapshot snapshot_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.AppSnapshot, + com.google.cloud.ces.v1.AppSnapshot.Builder, + com.google.cloud.ces.v1.AppSnapshotOrBuilder> + snapshotBuilder_; + + /** + * + * + *
      +     * Output only. The snapshot of the app when the version is created.
      +     * 
      + * + * + * .google.cloud.ces.v1.AppSnapshot snapshot = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the snapshot field is set. + */ + public boolean hasSnapshot() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +     * Output only. The snapshot of the app when the version is created.
      +     * 
      + * + * + * .google.cloud.ces.v1.AppSnapshot snapshot = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The snapshot. + */ + public com.google.cloud.ces.v1.AppSnapshot getSnapshot() { + if (snapshotBuilder_ == null) { + return snapshot_ == null + ? com.google.cloud.ces.v1.AppSnapshot.getDefaultInstance() + : snapshot_; + } else { + return snapshotBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. The snapshot of the app when the version is created.
      +     * 
      + * + * + * .google.cloud.ces.v1.AppSnapshot snapshot = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSnapshot(com.google.cloud.ces.v1.AppSnapshot value) { + if (snapshotBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + snapshot_ = value; + } else { + snapshotBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The snapshot of the app when the version is created.
      +     * 
      + * + * + * .google.cloud.ces.v1.AppSnapshot snapshot = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSnapshot(com.google.cloud.ces.v1.AppSnapshot.Builder builderForValue) { + if (snapshotBuilder_ == null) { + snapshot_ = builderForValue.build(); + } else { + snapshotBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The snapshot of the app when the version is created.
      +     * 
      + * + * + * .google.cloud.ces.v1.AppSnapshot snapshot = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSnapshot(com.google.cloud.ces.v1.AppSnapshot value) { + if (snapshotBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && snapshot_ != null + && snapshot_ != com.google.cloud.ces.v1.AppSnapshot.getDefaultInstance()) { + getSnapshotBuilder().mergeFrom(value); + } else { + snapshot_ = value; + } + } else { + snapshotBuilder_.mergeFrom(value); + } + if (snapshot_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. The snapshot of the app when the version is created.
      +     * 
      + * + * + * .google.cloud.ces.v1.AppSnapshot snapshot = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSnapshot() { + bitField0_ = (bitField0_ & ~0x00000020); + snapshot_ = null; + if (snapshotBuilder_ != null) { + snapshotBuilder_.dispose(); + snapshotBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The snapshot of the app when the version is created.
      +     * 
      + * + * + * .google.cloud.ces.v1.AppSnapshot snapshot = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1.AppSnapshot.Builder getSnapshotBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetSnapshotFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. The snapshot of the app when the version is created.
      +     * 
      + * + * + * .google.cloud.ces.v1.AppSnapshot snapshot = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1.AppSnapshotOrBuilder getSnapshotOrBuilder() { + if (snapshotBuilder_ != null) { + return snapshotBuilder_.getMessageOrBuilder(); + } else { + return snapshot_ == null + ? com.google.cloud.ces.v1.AppSnapshot.getDefaultInstance() + : snapshot_; + } + } + + /** + * + * + *
      +     * Output only. The snapshot of the app when the version is created.
      +     * 
      + * + * + * .google.cloud.ces.v1.AppSnapshot snapshot = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.AppSnapshot, + com.google.cloud.ces.v1.AppSnapshot.Builder, + com.google.cloud.ces.v1.AppSnapshotOrBuilder> + internalGetSnapshotFieldBuilder() { + if (snapshotBuilder_ == null) { + snapshotBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.AppSnapshot, + com.google.cloud.ces.v1.AppSnapshot.Builder, + com.google.cloud.ces.v1.AppSnapshotOrBuilder>( + getSnapshot(), getParentForChildren(), isClean()); + snapshot_ = null; + } + return snapshotBuilder_; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
      +     * Output only. Etag used to ensure the object hasn't changed during a
      +     * read-modify-write operation. If the etag is empty, the update will
      +     * overwrite any concurrent changes.
      +     * 
      + * + * string etag = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Output only. Etag used to ensure the object hasn't changed during a
      +     * read-modify-write operation. If the etag is empty, the update will
      +     * overwrite any concurrent changes.
      +     * 
      + * + * string etag = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Output only. Etag used to ensure the object hasn't changed during a
      +     * read-modify-write operation. If the etag is empty, the update will
      +     * overwrite any concurrent changes.
      +     * 
      + * + * string etag = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Etag used to ensure the object hasn't changed during a
      +     * read-modify-write operation. If the etag is empty, the update will
      +     * overwrite any concurrent changes.
      +     * 
      + * + * string etag = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Etag used to ensure the object hasn't changed during a
      +     * read-modify-write operation. If the etag is empty, the update will
      +     * overwrite any concurrent changes.
      +     * 
      + * + * string etag = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.AppVersion) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.AppVersion) + private static final com.google.cloud.ces.v1.AppVersion DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.AppVersion(); + } + + public static com.google.cloud.ces.v1.AppVersion getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AppVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.AppVersion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppVersionName.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppVersionName.java new file mode 100644 index 000000000000..6c55bbe43bd2 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppVersionName.java @@ -0,0 +1,257 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class AppVersionName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_APP_VERSION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/apps/{app}/versions/{version}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String app; + private final String version; + + @Deprecated + protected AppVersionName() { + project = null; + location = null; + app = null; + version = null; + } + + private AppVersionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + app = Preconditions.checkNotNull(builder.getApp()); + version = Preconditions.checkNotNull(builder.getVersion()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getApp() { + return app; + } + + public String getVersion() { + return version; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AppVersionName of(String project, String location, String app, String version) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setApp(app) + .setVersion(version) + .build(); + } + + public static String format(String project, String location, String app, String version) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setApp(app) + .setVersion(version) + .build() + .toString(); + } + + public static AppVersionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_APP_VERSION.validatedMatch( + formattedString, "AppVersionName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("app"), + matchMap.get("version")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (AppVersionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_APP_VERSION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (app != null) { + fieldMapBuilder.put("app", app); + } + if (version != null) { + fieldMapBuilder.put("version", version); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_APP_VERSION.instantiate( + "project", project, "location", location, "app", app, "version", version); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AppVersionName that = ((AppVersionName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.app, that.app) + && Objects.equals(this.version, that.version); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(app); + h *= 1000003; + h ^= Objects.hashCode(version); + return h; + } + + /** Builder for projects/{project}/locations/{location}/apps/{app}/versions/{version}. */ + public static class Builder { + private String project; + private String location; + private String app; + private String version; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getApp() { + return app; + } + + public String getVersion() { + return version; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setApp(String app) { + this.app = app; + return this; + } + + public Builder setVersion(String version) { + this.version = version; + return this; + } + + private Builder(AppVersionName appVersionName) { + this.project = appVersionName.project; + this.location = appVersionName.location; + this.app = appVersionName.app; + this.version = appVersionName.version; + } + + public AppVersionName build() { + return new AppVersionName(this); + } + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppVersionOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppVersionOrBuilder.java new file mode 100644 index 000000000000..cee56b8203cc --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppVersionOrBuilder.java @@ -0,0 +1,249 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app_version.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface AppVersionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.AppVersion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Identifier. The unique identifier of the app version.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Identifier. The unique identifier of the app version.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Optional. The display name of the app version.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
      +   * Optional. The display name of the app version.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
      +   * Optional. The description of the app version.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
      +   * Optional. The description of the app version.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
      +   * Output only. Email of the user who created the app version.
      +   * 
      + * + * string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The creator. + */ + java.lang.String getCreator(); + + /** + * + * + *
      +   * Output only. Email of the user who created the app version.
      +   * 
      + * + * string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for creator. + */ + com.google.protobuf.ByteString getCreatorBytes(); + + /** + * + * + *
      +   * Output only. Timestamp when the app version was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the app version was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the app version was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
      +   * Output only. The snapshot of the app when the version is created.
      +   * 
      + * + * + * .google.cloud.ces.v1.AppSnapshot snapshot = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the snapshot field is set. + */ + boolean hasSnapshot(); + + /** + * + * + *
      +   * Output only. The snapshot of the app when the version is created.
      +   * 
      + * + * + * .google.cloud.ces.v1.AppSnapshot snapshot = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The snapshot. + */ + com.google.cloud.ces.v1.AppSnapshot getSnapshot(); + + /** + * + * + *
      +   * Output only. The snapshot of the app when the version is created.
      +   * 
      + * + * + * .google.cloud.ces.v1.AppSnapshot snapshot = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.ces.v1.AppSnapshotOrBuilder getSnapshotOrBuilder(); + + /** + * + * + *
      +   * Output only. Etag used to ensure the object hasn't changed during a
      +   * read-modify-write operation. If the etag is empty, the update will
      +   * overwrite any concurrent changes.
      +   * 
      + * + * string etag = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
      +   * Output only. Etag used to ensure the object hasn't changed during a
      +   * read-modify-write operation. If the etag is empty, the update will
      +   * overwrite any concurrent changes.
      +   * 
      + * + * string etag = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppVersionProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppVersionProto.java new file mode 100644 index 000000000000..4147aef50323 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppVersionProto.java @@ -0,0 +1,138 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app_version.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class AppVersionProto extends com.google.protobuf.GeneratedFile { + private AppVersionProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AppVersionProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_AppSnapshot_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_AppSnapshot_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_AppVersion_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_AppVersion_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "%google/cloud/ces/v1/app_version.proto\022" + + "\023google.cloud.ces.v1\032\037google/api/field_b" + + "ehavior.proto\032\031google/api/resource.proto" + + "\032\037google/cloud/ces/v1/agent.proto\032\035googl" + + "e/cloud/ces/v1/app.proto\032!google/cloud/ces/v1/example.proto\032#google/cloud/ces/v1" + + "/guardrail.proto\032\036google/cloud/ces/v1/to" + + "ol.proto\032!google/cloud/ces/v1/toolset.proto\032\037google/protobuf/timestamp.proto\"\274\002\n" + + "\013AppSnapshot\022*\n" + + "\003app\030\001 \001(\0132\030.google.cloud.ces.v1.AppB\003\340A\001\022/\n" + + "\006agents\030\002 \003(\0132\032.google.cloud.ces.v1.AgentB\003\340A\001\022-\n" + + "\005tools\030\003 \003(\0132\031.google.cloud.ces.v1.ToolB\003\340A\001\0223\n" + + "\010examples\030\004 \003(\0132\034.google.cloud.ces.v1.ExampleB\003\340A\001\0227\n\n" + + "guardrails\030\005 \003(\0132\036.google.cloud.ces.v1.GuardrailB\003\340A\001\0223\n" + + "\010toolsets\030\006" + + " \003(\0132\034.google.cloud.ces.v1.ToolsetB\003\340A\001\"\361\002\n\n" + + "AppVersion\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\001\022\030\n" + + "\013description\030\003 \001(\tB\003\340A\001\022\024\n" + + "\007creator\030\004 \001(\tB\003\340A\003\0224\n" + + "\013create_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0227\n" + + "\010snapshot\030\010 \001(\0132" + + " .google.cloud.ces.v1.AppSnapshotB\003\340A\003\022\021\n" + + "\004etag\030\007 \001(\tB\003\340A\003:\202\001\352A\177\n" + + "\035ces.googleapis.com/AppVersion\022Eproject" + + "s/{project}/locations/{location}/apps/{app}/versions/{version}*\013appVersions2\n" + + "appVersionBW\n" + + "\027com.google.cloud.ces.v1B\017AppVersionProtoP\001Z)cloud.google.com/go/ces/a" + + "piv1/cespb;cespbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.ces.v1.AgentProto.getDescriptor(), + com.google.cloud.ces.v1.AppProto.getDescriptor(), + com.google.cloud.ces.v1.ExampleProto.getDescriptor(), + com.google.cloud.ces.v1.GuardrailProto.getDescriptor(), + com.google.cloud.ces.v1.ToolProto.getDescriptor(), + com.google.cloud.ces.v1.ToolsetProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_AppSnapshot_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_AppSnapshot_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_AppSnapshot_descriptor, + new java.lang.String[] { + "App", "Agents", "Tools", "Examples", "Guardrails", "Toolsets", + }); + internal_static_google_cloud_ces_v1_AppVersion_descriptor = getDescriptor().getMessageType(1); + internal_static_google_cloud_ces_v1_AppVersion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_AppVersion_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "Description", "Creator", "CreateTime", "Snapshot", "Etag", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.ces.v1.AgentProto.getDescriptor(); + com.google.cloud.ces.v1.AppProto.getDescriptor(); + com.google.cloud.ces.v1.ExampleProto.getDescriptor(); + com.google.cloud.ces.v1.GuardrailProto.getDescriptor(); + com.google.cloud.ces.v1.ToolProto.getDescriptor(); + com.google.cloud.ces.v1.ToolsetProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AudioEncoding.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AudioEncoding.java new file mode 100644 index 000000000000..24a96e631e19 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AudioEncoding.java @@ -0,0 +1,214 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * AudioEncoding specifies the encoding format for audio data.
      + * 
      + * + * Protobuf enum {@code google.cloud.ces.v1.AudioEncoding} + */ +@com.google.protobuf.Generated +public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +   * Unspecified audio encoding.
      +   * 
      + * + * AUDIO_ENCODING_UNSPECIFIED = 0; + */ + AUDIO_ENCODING_UNSPECIFIED(0), + /** + * + * + *
      +   * 16-bit linear PCM audio encoding.
      +   * 
      + * + * LINEAR16 = 1; + */ + LINEAR16(1), + /** + * + * + *
      +   * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
      +   * 
      + * + * MULAW = 2; + */ + MULAW(2), + /** + * + * + *
      +   * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/A-law.
      +   * 
      + * + * ALAW = 3; + */ + ALAW(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AudioEncoding"); + } + + /** + * + * + *
      +   * Unspecified audio encoding.
      +   * 
      + * + * AUDIO_ENCODING_UNSPECIFIED = 0; + */ + public static final int AUDIO_ENCODING_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +   * 16-bit linear PCM audio encoding.
      +   * 
      + * + * LINEAR16 = 1; + */ + public static final int LINEAR16_VALUE = 1; + + /** + * + * + *
      +   * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
      +   * 
      + * + * MULAW = 2; + */ + public static final int MULAW_VALUE = 2; + + /** + * + * + *
      +   * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/A-law.
      +   * 
      + * + * ALAW = 3; + */ + public static final int ALAW_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AudioEncoding valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static AudioEncoding forNumber(int value) { + switch (value) { + case 0: + return AUDIO_ENCODING_UNSPECIFIED; + case 1: + return LINEAR16; + case 2: + return MULAW; + case 3: + return ALAW; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AudioEncoding findValueByNumber(int number) { + return AudioEncoding.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto.getDescriptor().getEnumTypes().get(0); + } + + private static final AudioEncoding[] VALUES = values(); + + public static AudioEncoding valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private AudioEncoding(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.AudioEncoding) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AudioProcessingConfig.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AudioProcessingConfig.java new file mode 100644 index 000000000000..027038b45ecb --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AudioProcessingConfig.java @@ -0,0 +1,1965 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Configuration for how the input and output audio should be processed and
      + * delivered.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.AudioProcessingConfig} + */ +@com.google.protobuf.Generated +public final class AudioProcessingConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.AudioProcessingConfig) + AudioProcessingConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AudioProcessingConfig"); + } + + // Use AudioProcessingConfig.newBuilder() to construct. + private AudioProcessingConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AudioProcessingConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_AudioProcessingConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetSynthesizeSpeechConfigs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_AudioProcessingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.AudioProcessingConfig.class, + com.google.cloud.ces.v1.AudioProcessingConfig.Builder.class); + } + + private int bitField0_; + public static final int SYNTHESIZE_SPEECH_CONFIGS_FIELD_NUMBER = 1; + + private static final class SynthesizeSpeechConfigsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.ces.v1.SynthesizeSpeechConfig> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_AudioProcessingConfig_SynthesizeSpeechConfigsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.ces.v1.SynthesizeSpeechConfig.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.ces.v1.SynthesizeSpeechConfig> + synthesizeSpeechConfigs_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.ces.v1.SynthesizeSpeechConfig> + internalGetSynthesizeSpeechConfigs() { + if (synthesizeSpeechConfigs_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SynthesizeSpeechConfigsDefaultEntryHolder.defaultEntry); + } + return synthesizeSpeechConfigs_; + } + + public int getSynthesizeSpeechConfigsCount() { + return internalGetSynthesizeSpeechConfigs().getMap().size(); + } + + /** + * + * + *
      +   * Optional. Configuration of how the agent response should be synthesized,
      +   * mapping from the language code to
      +   * [SynthesizeSpeechConfig][google.cloud.ces.v1.SynthesizeSpeechConfig].
      +   *
      +   * If the configuration for the specified language code is not found, the
      +   * configuration for the root language code will be used. For example, if the
      +   * map contains "en-us" and "en", and the specified language code is "en-gb",
      +   * then "en" configuration will be used.
      +   *
      +   * Note: Language code is case-insensitive.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.SynthesizeSpeechConfig> synthesize_speech_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsSynthesizeSpeechConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetSynthesizeSpeechConfigs().getMap().containsKey(key); + } + + /** Use {@link #getSynthesizeSpeechConfigsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getSynthesizeSpeechConfigs() { + return getSynthesizeSpeechConfigsMap(); + } + + /** + * + * + *
      +   * Optional. Configuration of how the agent response should be synthesized,
      +   * mapping from the language code to
      +   * [SynthesizeSpeechConfig][google.cloud.ces.v1.SynthesizeSpeechConfig].
      +   *
      +   * If the configuration for the specified language code is not found, the
      +   * configuration for the root language code will be used. For example, if the
      +   * map contains "en-us" and "en", and the specified language code is "en-gb",
      +   * then "en" configuration will be used.
      +   *
      +   * Note: Language code is case-insensitive.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.SynthesizeSpeechConfig> synthesize_speech_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map + getSynthesizeSpeechConfigsMap() { + return internalGetSynthesizeSpeechConfigs().getMap(); + } + + /** + * + * + *
      +   * Optional. Configuration of how the agent response should be synthesized,
      +   * mapping from the language code to
      +   * [SynthesizeSpeechConfig][google.cloud.ces.v1.SynthesizeSpeechConfig].
      +   *
      +   * If the configuration for the specified language code is not found, the
      +   * configuration for the root language code will be used. For example, if the
      +   * map contains "en-us" and "en", and the specified language code is "en-gb",
      +   * then "en" configuration will be used.
      +   *
      +   * Note: Language code is case-insensitive.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.SynthesizeSpeechConfig> synthesize_speech_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.ces.v1.SynthesizeSpeechConfig + getSynthesizeSpeechConfigsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.ces.v1.SynthesizeSpeechConfig defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetSynthesizeSpeechConfigs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
      +   * Optional. Configuration of how the agent response should be synthesized,
      +   * mapping from the language code to
      +   * [SynthesizeSpeechConfig][google.cloud.ces.v1.SynthesizeSpeechConfig].
      +   *
      +   * If the configuration for the specified language code is not found, the
      +   * configuration for the root language code will be used. For example, if the
      +   * map contains "en-us" and "en", and the specified language code is "en-gb",
      +   * then "en" configuration will be used.
      +   *
      +   * Note: Language code is case-insensitive.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.SynthesizeSpeechConfig> synthesize_speech_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.SynthesizeSpeechConfig getSynthesizeSpeechConfigsOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetSynthesizeSpeechConfigs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int BARGE_IN_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.ces.v1.BargeInConfig bargeInConfig_; + + /** + * + * + *
      +   * Optional. Configures the agent behavior for the user barge-in activities.
      +   * 
      + * + * + * .google.cloud.ces.v1.BargeInConfig barge_in_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bargeInConfig field is set. + */ + @java.lang.Override + public boolean hasBargeInConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Optional. Configures the agent behavior for the user barge-in activities.
      +   * 
      + * + * + * .google.cloud.ces.v1.BargeInConfig barge_in_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bargeInConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.BargeInConfig getBargeInConfig() { + return bargeInConfig_ == null + ? com.google.cloud.ces.v1.BargeInConfig.getDefaultInstance() + : bargeInConfig_; + } + + /** + * + * + *
      +   * Optional. Configures the agent behavior for the user barge-in activities.
      +   * 
      + * + * + * .google.cloud.ces.v1.BargeInConfig barge_in_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.BargeInConfigOrBuilder getBargeInConfigOrBuilder() { + return bargeInConfig_ == null + ? com.google.cloud.ces.v1.BargeInConfig.getDefaultInstance() + : bargeInConfig_; + } + + public static final int INACTIVITY_TIMEOUT_FIELD_NUMBER = 4; + private com.google.protobuf.Duration inactivityTimeout_; + + /** + * + * + *
      +   * Optional. The duration of user inactivity (no speech or interaction) before
      +   * the agent prompts the user for reengagement. If not set, the agent will not
      +   * prompt the user for reengagement.
      +   * 
      + * + * + * .google.protobuf.Duration inactivity_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the inactivityTimeout field is set. + */ + @java.lang.Override + public boolean hasInactivityTimeout() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Optional. The duration of user inactivity (no speech or interaction) before
      +   * the agent prompts the user for reengagement. If not set, the agent will not
      +   * prompt the user for reengagement.
      +   * 
      + * + * + * .google.protobuf.Duration inactivity_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inactivityTimeout. + */ + @java.lang.Override + public com.google.protobuf.Duration getInactivityTimeout() { + return inactivityTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : inactivityTimeout_; + } + + /** + * + * + *
      +   * Optional. The duration of user inactivity (no speech or interaction) before
      +   * the agent prompts the user for reengagement. If not set, the agent will not
      +   * prompt the user for reengagement.
      +   * 
      + * + * + * .google.protobuf.Duration inactivity_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getInactivityTimeoutOrBuilder() { + return inactivityTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : inactivityTimeout_; + } + + public static final int AMBIENT_SOUND_CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.ces.v1.AmbientSoundConfig ambientSoundConfig_; + + /** + * + * + *
      +   * Optional. Configuration for the ambient sound to be played with the
      +   * synthesized agent response, to enhance the naturalness of the conversation.
      +   * 
      + * + * + * .google.cloud.ces.v1.AmbientSoundConfig ambient_sound_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ambientSoundConfig field is set. + */ + @java.lang.Override + public boolean hasAmbientSoundConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * Optional. Configuration for the ambient sound to be played with the
      +   * synthesized agent response, to enhance the naturalness of the conversation.
      +   * 
      + * + * + * .google.cloud.ces.v1.AmbientSoundConfig ambient_sound_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ambientSoundConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.AmbientSoundConfig getAmbientSoundConfig() { + return ambientSoundConfig_ == null + ? com.google.cloud.ces.v1.AmbientSoundConfig.getDefaultInstance() + : ambientSoundConfig_; + } + + /** + * + * + *
      +   * Optional. Configuration for the ambient sound to be played with the
      +   * synthesized agent response, to enhance the naturalness of the conversation.
      +   * 
      + * + * + * .google.cloud.ces.v1.AmbientSoundConfig ambient_sound_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.AmbientSoundConfigOrBuilder getAmbientSoundConfigOrBuilder() { + return ambientSoundConfig_ == null + ? com.google.cloud.ces.v1.AmbientSoundConfig.getDefaultInstance() + : ambientSoundConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, + internalGetSynthesizeSpeechConfigs(), + SynthesizeSpeechConfigsDefaultEntryHolder.defaultEntry, + 1); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getBargeInConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getInactivityTimeout()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getAmbientSoundConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry + entry : internalGetSynthesizeSpeechConfigs().getMap().entrySet()) { + com.google.protobuf.MapEntry + synthesizeSpeechConfigs__ = + SynthesizeSpeechConfigsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, synthesizeSpeechConfigs__); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBargeInConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getInactivityTimeout()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAmbientSoundConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.AudioProcessingConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.AudioProcessingConfig other = + (com.google.cloud.ces.v1.AudioProcessingConfig) obj; + + if (!internalGetSynthesizeSpeechConfigs().equals(other.internalGetSynthesizeSpeechConfigs())) + return false; + if (hasBargeInConfig() != other.hasBargeInConfig()) return false; + if (hasBargeInConfig()) { + if (!getBargeInConfig().equals(other.getBargeInConfig())) return false; + } + if (hasInactivityTimeout() != other.hasInactivityTimeout()) return false; + if (hasInactivityTimeout()) { + if (!getInactivityTimeout().equals(other.getInactivityTimeout())) return false; + } + if (hasAmbientSoundConfig() != other.hasAmbientSoundConfig()) return false; + if (hasAmbientSoundConfig()) { + if (!getAmbientSoundConfig().equals(other.getAmbientSoundConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetSynthesizeSpeechConfigs().getMap().isEmpty()) { + hash = (37 * hash) + SYNTHESIZE_SPEECH_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetSynthesizeSpeechConfigs().hashCode(); + } + if (hasBargeInConfig()) { + hash = (37 * hash) + BARGE_IN_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getBargeInConfig().hashCode(); + } + if (hasInactivityTimeout()) { + hash = (37 * hash) + INACTIVITY_TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getInactivityTimeout().hashCode(); + } + if (hasAmbientSoundConfig()) { + hash = (37 * hash) + AMBIENT_SOUND_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAmbientSoundConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.AudioProcessingConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.AudioProcessingConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AudioProcessingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.AudioProcessingConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AudioProcessingConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.AudioProcessingConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AudioProcessingConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.AudioProcessingConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AudioProcessingConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.AudioProcessingConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AudioProcessingConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.AudioProcessingConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.AudioProcessingConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Configuration for how the input and output audio should be processed and
      +   * delivered.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.AudioProcessingConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.AudioProcessingConfig) + com.google.cloud.ces.v1.AudioProcessingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_AudioProcessingConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetSynthesizeSpeechConfigs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetMutableSynthesizeSpeechConfigs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_AudioProcessingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.AudioProcessingConfig.class, + com.google.cloud.ces.v1.AudioProcessingConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.AudioProcessingConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetBargeInConfigFieldBuilder(); + internalGetInactivityTimeoutFieldBuilder(); + internalGetAmbientSoundConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableSynthesizeSpeechConfigs().clear(); + bargeInConfig_ = null; + if (bargeInConfigBuilder_ != null) { + bargeInConfigBuilder_.dispose(); + bargeInConfigBuilder_ = null; + } + inactivityTimeout_ = null; + if (inactivityTimeoutBuilder_ != null) { + inactivityTimeoutBuilder_.dispose(); + inactivityTimeoutBuilder_ = null; + } + ambientSoundConfig_ = null; + if (ambientSoundConfigBuilder_ != null) { + ambientSoundConfigBuilder_.dispose(); + ambientSoundConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_AudioProcessingConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.AudioProcessingConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1.AudioProcessingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.AudioProcessingConfig build() { + com.google.cloud.ces.v1.AudioProcessingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.AudioProcessingConfig buildPartial() { + com.google.cloud.ces.v1.AudioProcessingConfig result = + new com.google.cloud.ces.v1.AudioProcessingConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.AudioProcessingConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.synthesizeSpeechConfigs_ = + internalGetSynthesizeSpeechConfigs() + .build(SynthesizeSpeechConfigsDefaultEntryHolder.defaultEntry); + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.bargeInConfig_ = + bargeInConfigBuilder_ == null ? bargeInConfig_ : bargeInConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.inactivityTimeout_ = + inactivityTimeoutBuilder_ == null + ? inactivityTimeout_ + : inactivityTimeoutBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.ambientSoundConfig_ = + ambientSoundConfigBuilder_ == null + ? ambientSoundConfig_ + : ambientSoundConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.AudioProcessingConfig) { + return mergeFrom((com.google.cloud.ces.v1.AudioProcessingConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.AudioProcessingConfig other) { + if (other == com.google.cloud.ces.v1.AudioProcessingConfig.getDefaultInstance()) return this; + internalGetMutableSynthesizeSpeechConfigs() + .mergeFrom(other.internalGetSynthesizeSpeechConfigs()); + bitField0_ |= 0x00000001; + if (other.hasBargeInConfig()) { + mergeBargeInConfig(other.getBargeInConfig()); + } + if (other.hasInactivityTimeout()) { + mergeInactivityTimeout(other.getInactivityTimeout()); + } + if (other.hasAmbientSoundConfig()) { + mergeAmbientSoundConfig(other.getAmbientSoundConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.ces.v1.SynthesizeSpeechConfig> + synthesizeSpeechConfigs__ = + input.readMessage( + SynthesizeSpeechConfigsDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + internalGetMutableSynthesizeSpeechConfigs() + .ensureBuilderMap() + .put(synthesizeSpeechConfigs__.getKey(), synthesizeSpeechConfigs__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + input.readMessage( + internalGetBargeInConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetInactivityTimeoutFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetAmbientSoundConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private static final class SynthesizeSpeechConfigsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.ces.v1.SynthesizeSpeechConfigOrBuilder, + com.google.cloud.ces.v1.SynthesizeSpeechConfig> { + @java.lang.Override + public com.google.cloud.ces.v1.SynthesizeSpeechConfig build( + com.google.cloud.ces.v1.SynthesizeSpeechConfigOrBuilder val) { + if (val instanceof com.google.cloud.ces.v1.SynthesizeSpeechConfig) { + return (com.google.cloud.ces.v1.SynthesizeSpeechConfig) val; + } + return ((com.google.cloud.ces.v1.SynthesizeSpeechConfig.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.ces.v1.SynthesizeSpeechConfig> + defaultEntry() { + return SynthesizeSpeechConfigsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final SynthesizeSpeechConfigsConverter synthesizeSpeechConfigsConverter = + new SynthesizeSpeechConfigsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.ces.v1.SynthesizeSpeechConfigOrBuilder, + com.google.cloud.ces.v1.SynthesizeSpeechConfig, + com.google.cloud.ces.v1.SynthesizeSpeechConfig.Builder> + synthesizeSpeechConfigs_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.ces.v1.SynthesizeSpeechConfigOrBuilder, + com.google.cloud.ces.v1.SynthesizeSpeechConfig, + com.google.cloud.ces.v1.SynthesizeSpeechConfig.Builder> + internalGetSynthesizeSpeechConfigs() { + if (synthesizeSpeechConfigs_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(synthesizeSpeechConfigsConverter); + } + return synthesizeSpeechConfigs_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.ces.v1.SynthesizeSpeechConfigOrBuilder, + com.google.cloud.ces.v1.SynthesizeSpeechConfig, + com.google.cloud.ces.v1.SynthesizeSpeechConfig.Builder> + internalGetMutableSynthesizeSpeechConfigs() { + if (synthesizeSpeechConfigs_ == null) { + synthesizeSpeechConfigs_ = + new com.google.protobuf.MapFieldBuilder<>(synthesizeSpeechConfigsConverter); + } + bitField0_ |= 0x00000001; + onChanged(); + return synthesizeSpeechConfigs_; + } + + public int getSynthesizeSpeechConfigsCount() { + return internalGetSynthesizeSpeechConfigs().ensureBuilderMap().size(); + } + + /** + * + * + *
      +     * Optional. Configuration of how the agent response should be synthesized,
      +     * mapping from the language code to
      +     * [SynthesizeSpeechConfig][google.cloud.ces.v1.SynthesizeSpeechConfig].
      +     *
      +     * If the configuration for the specified language code is not found, the
      +     * configuration for the root language code will be used. For example, if the
      +     * map contains "en-us" and "en", and the specified language code is "en-gb",
      +     * then "en" configuration will be used.
      +     *
      +     * Note: Language code is case-insensitive.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.SynthesizeSpeechConfig> synthesize_speech_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsSynthesizeSpeechConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetSynthesizeSpeechConfigs().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getSynthesizeSpeechConfigsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getSynthesizeSpeechConfigs() { + return getSynthesizeSpeechConfigsMap(); + } + + /** + * + * + *
      +     * Optional. Configuration of how the agent response should be synthesized,
      +     * mapping from the language code to
      +     * [SynthesizeSpeechConfig][google.cloud.ces.v1.SynthesizeSpeechConfig].
      +     *
      +     * If the configuration for the specified language code is not found, the
      +     * configuration for the root language code will be used. For example, if the
      +     * map contains "en-us" and "en", and the specified language code is "en-gb",
      +     * then "en" configuration will be used.
      +     *
      +     * Note: Language code is case-insensitive.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.SynthesizeSpeechConfig> synthesize_speech_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map + getSynthesizeSpeechConfigsMap() { + return internalGetSynthesizeSpeechConfigs().getImmutableMap(); + } + + /** + * + * + *
      +     * Optional. Configuration of how the agent response should be synthesized,
      +     * mapping from the language code to
      +     * [SynthesizeSpeechConfig][google.cloud.ces.v1.SynthesizeSpeechConfig].
      +     *
      +     * If the configuration for the specified language code is not found, the
      +     * configuration for the root language code will be used. For example, if the
      +     * map contains "en-us" and "en", and the specified language code is "en-gb",
      +     * then "en" configuration will be used.
      +     *
      +     * Note: Language code is case-insensitive.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.SynthesizeSpeechConfig> synthesize_speech_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.ces.v1.SynthesizeSpeechConfig + getSynthesizeSpeechConfigsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.ces.v1.SynthesizeSpeechConfig defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMutableSynthesizeSpeechConfigs().ensureBuilderMap(); + return map.containsKey(key) + ? synthesizeSpeechConfigsConverter.build(map.get(key)) + : defaultValue; + } + + /** + * + * + *
      +     * Optional. Configuration of how the agent response should be synthesized,
      +     * mapping from the language code to
      +     * [SynthesizeSpeechConfig][google.cloud.ces.v1.SynthesizeSpeechConfig].
      +     *
      +     * If the configuration for the specified language code is not found, the
      +     * configuration for the root language code will be used. For example, if the
      +     * map contains "en-us" and "en", and the specified language code is "en-gb",
      +     * then "en" configuration will be used.
      +     *
      +     * Note: Language code is case-insensitive.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.SynthesizeSpeechConfig> synthesize_speech_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.SynthesizeSpeechConfig getSynthesizeSpeechConfigsOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMutableSynthesizeSpeechConfigs().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return synthesizeSpeechConfigsConverter.build(map.get(key)); + } + + public Builder clearSynthesizeSpeechConfigs() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableSynthesizeSpeechConfigs().clear(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration of how the agent response should be synthesized,
      +     * mapping from the language code to
      +     * [SynthesizeSpeechConfig][google.cloud.ces.v1.SynthesizeSpeechConfig].
      +     *
      +     * If the configuration for the specified language code is not found, the
      +     * configuration for the root language code will be used. For example, if the
      +     * map contains "en-us" and "en", and the specified language code is "en-gb",
      +     * then "en" configuration will be used.
      +     *
      +     * Note: Language code is case-insensitive.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.SynthesizeSpeechConfig> synthesize_speech_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeSynthesizeSpeechConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableSynthesizeSpeechConfigs().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableSynthesizeSpeechConfigs() { + bitField0_ |= 0x00000001; + return internalGetMutableSynthesizeSpeechConfigs().ensureMessageMap(); + } + + /** + * + * + *
      +     * Optional. Configuration of how the agent response should be synthesized,
      +     * mapping from the language code to
      +     * [SynthesizeSpeechConfig][google.cloud.ces.v1.SynthesizeSpeechConfig].
      +     *
      +     * If the configuration for the specified language code is not found, the
      +     * configuration for the root language code will be used. For example, if the
      +     * map contains "en-us" and "en", and the specified language code is "en-gb",
      +     * then "en" configuration will be used.
      +     *
      +     * Note: Language code is case-insensitive.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.SynthesizeSpeechConfig> synthesize_speech_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putSynthesizeSpeechConfigs( + java.lang.String key, com.google.cloud.ces.v1.SynthesizeSpeechConfig value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableSynthesizeSpeechConfigs().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000001; + return this; + } + + /** + * + * + *
      +     * Optional. Configuration of how the agent response should be synthesized,
      +     * mapping from the language code to
      +     * [SynthesizeSpeechConfig][google.cloud.ces.v1.SynthesizeSpeechConfig].
      +     *
      +     * If the configuration for the specified language code is not found, the
      +     * configuration for the root language code will be used. For example, if the
      +     * map contains "en-us" and "en", and the specified language code is "en-gb",
      +     * then "en" configuration will be used.
      +     *
      +     * Note: Language code is case-insensitive.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.SynthesizeSpeechConfig> synthesize_speech_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllSynthesizeSpeechConfigs( + java.util.Map values) { + for (java.util.Map.Entry e : + values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableSynthesizeSpeechConfigs().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000001; + return this; + } + + /** + * + * + *
      +     * Optional. Configuration of how the agent response should be synthesized,
      +     * mapping from the language code to
      +     * [SynthesizeSpeechConfig][google.cloud.ces.v1.SynthesizeSpeechConfig].
      +     *
      +     * If the configuration for the specified language code is not found, the
      +     * configuration for the root language code will be used. For example, if the
      +     * map contains "en-us" and "en", and the specified language code is "en-gb",
      +     * then "en" configuration will be used.
      +     *
      +     * Note: Language code is case-insensitive.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.SynthesizeSpeechConfig> synthesize_speech_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.SynthesizeSpeechConfig.Builder + putSynthesizeSpeechConfigsBuilderIfAbsent(java.lang.String key) { + java.util.Map + builderMap = internalGetMutableSynthesizeSpeechConfigs().ensureBuilderMap(); + com.google.cloud.ces.v1.SynthesizeSpeechConfigOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.ces.v1.SynthesizeSpeechConfig.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.ces.v1.SynthesizeSpeechConfig) { + entry = ((com.google.cloud.ces.v1.SynthesizeSpeechConfig) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.ces.v1.SynthesizeSpeechConfig.Builder) entry; + } + + private com.google.cloud.ces.v1.BargeInConfig bargeInConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.BargeInConfig, + com.google.cloud.ces.v1.BargeInConfig.Builder, + com.google.cloud.ces.v1.BargeInConfigOrBuilder> + bargeInConfigBuilder_; + + /** + * + * + *
      +     * Optional. Configures the agent behavior for the user barge-in activities.
      +     * 
      + * + * + * .google.cloud.ces.v1.BargeInConfig barge_in_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bargeInConfig field is set. + */ + public boolean hasBargeInConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Optional. Configures the agent behavior for the user barge-in activities.
      +     * 
      + * + * + * .google.cloud.ces.v1.BargeInConfig barge_in_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bargeInConfig. + */ + public com.google.cloud.ces.v1.BargeInConfig getBargeInConfig() { + if (bargeInConfigBuilder_ == null) { + return bargeInConfig_ == null + ? com.google.cloud.ces.v1.BargeInConfig.getDefaultInstance() + : bargeInConfig_; + } else { + return bargeInConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Configures the agent behavior for the user barge-in activities.
      +     * 
      + * + * + * .google.cloud.ces.v1.BargeInConfig barge_in_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBargeInConfig(com.google.cloud.ces.v1.BargeInConfig value) { + if (bargeInConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + bargeInConfig_ = value; + } else { + bargeInConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configures the agent behavior for the user barge-in activities.
      +     * 
      + * + * + * .google.cloud.ces.v1.BargeInConfig barge_in_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBargeInConfig(com.google.cloud.ces.v1.BargeInConfig.Builder builderForValue) { + if (bargeInConfigBuilder_ == null) { + bargeInConfig_ = builderForValue.build(); + } else { + bargeInConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configures the agent behavior for the user barge-in activities.
      +     * 
      + * + * + * .google.cloud.ces.v1.BargeInConfig barge_in_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeBargeInConfig(com.google.cloud.ces.v1.BargeInConfig value) { + if (bargeInConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && bargeInConfig_ != null + && bargeInConfig_ != com.google.cloud.ces.v1.BargeInConfig.getDefaultInstance()) { + getBargeInConfigBuilder().mergeFrom(value); + } else { + bargeInConfig_ = value; + } + } else { + bargeInConfigBuilder_.mergeFrom(value); + } + if (bargeInConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Configures the agent behavior for the user barge-in activities.
      +     * 
      + * + * + * .google.cloud.ces.v1.BargeInConfig barge_in_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearBargeInConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + bargeInConfig_ = null; + if (bargeInConfigBuilder_ != null) { + bargeInConfigBuilder_.dispose(); + bargeInConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configures the agent behavior for the user barge-in activities.
      +     * 
      + * + * + * .google.cloud.ces.v1.BargeInConfig barge_in_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.BargeInConfig.Builder getBargeInConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetBargeInConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Configures the agent behavior for the user barge-in activities.
      +     * 
      + * + * + * .google.cloud.ces.v1.BargeInConfig barge_in_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.BargeInConfigOrBuilder getBargeInConfigOrBuilder() { + if (bargeInConfigBuilder_ != null) { + return bargeInConfigBuilder_.getMessageOrBuilder(); + } else { + return bargeInConfig_ == null + ? com.google.cloud.ces.v1.BargeInConfig.getDefaultInstance() + : bargeInConfig_; + } + } + + /** + * + * + *
      +     * Optional. Configures the agent behavior for the user barge-in activities.
      +     * 
      + * + * + * .google.cloud.ces.v1.BargeInConfig barge_in_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.BargeInConfig, + com.google.cloud.ces.v1.BargeInConfig.Builder, + com.google.cloud.ces.v1.BargeInConfigOrBuilder> + internalGetBargeInConfigFieldBuilder() { + if (bargeInConfigBuilder_ == null) { + bargeInConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.BargeInConfig, + com.google.cloud.ces.v1.BargeInConfig.Builder, + com.google.cloud.ces.v1.BargeInConfigOrBuilder>( + getBargeInConfig(), getParentForChildren(), isClean()); + bargeInConfig_ = null; + } + return bargeInConfigBuilder_; + } + + private com.google.protobuf.Duration inactivityTimeout_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + inactivityTimeoutBuilder_; + + /** + * + * + *
      +     * Optional. The duration of user inactivity (no speech or interaction) before
      +     * the agent prompts the user for reengagement. If not set, the agent will not
      +     * prompt the user for reengagement.
      +     * 
      + * + * + * .google.protobuf.Duration inactivity_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the inactivityTimeout field is set. + */ + public boolean hasInactivityTimeout() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Optional. The duration of user inactivity (no speech or interaction) before
      +     * the agent prompts the user for reengagement. If not set, the agent will not
      +     * prompt the user for reengagement.
      +     * 
      + * + * + * .google.protobuf.Duration inactivity_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inactivityTimeout. + */ + public com.google.protobuf.Duration getInactivityTimeout() { + if (inactivityTimeoutBuilder_ == null) { + return inactivityTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : inactivityTimeout_; + } else { + return inactivityTimeoutBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. The duration of user inactivity (no speech or interaction) before
      +     * the agent prompts the user for reengagement. If not set, the agent will not
      +     * prompt the user for reengagement.
      +     * 
      + * + * + * .google.protobuf.Duration inactivity_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInactivityTimeout(com.google.protobuf.Duration value) { + if (inactivityTimeoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inactivityTimeout_ = value; + } else { + inactivityTimeoutBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The duration of user inactivity (no speech or interaction) before
      +     * the agent prompts the user for reengagement. If not set, the agent will not
      +     * prompt the user for reengagement.
      +     * 
      + * + * + * .google.protobuf.Duration inactivity_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInactivityTimeout(com.google.protobuf.Duration.Builder builderForValue) { + if (inactivityTimeoutBuilder_ == null) { + inactivityTimeout_ = builderForValue.build(); + } else { + inactivityTimeoutBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The duration of user inactivity (no speech or interaction) before
      +     * the agent prompts the user for reengagement. If not set, the agent will not
      +     * prompt the user for reengagement.
      +     * 
      + * + * + * .google.protobuf.Duration inactivity_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeInactivityTimeout(com.google.protobuf.Duration value) { + if (inactivityTimeoutBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && inactivityTimeout_ != null + && inactivityTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { + getInactivityTimeoutBuilder().mergeFrom(value); + } else { + inactivityTimeout_ = value; + } + } else { + inactivityTimeoutBuilder_.mergeFrom(value); + } + if (inactivityTimeout_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The duration of user inactivity (no speech or interaction) before
      +     * the agent prompts the user for reengagement. If not set, the agent will not
      +     * prompt the user for reengagement.
      +     * 
      + * + * + * .google.protobuf.Duration inactivity_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearInactivityTimeout() { + bitField0_ = (bitField0_ & ~0x00000004); + inactivityTimeout_ = null; + if (inactivityTimeoutBuilder_ != null) { + inactivityTimeoutBuilder_.dispose(); + inactivityTimeoutBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The duration of user inactivity (no speech or interaction) before
      +     * the agent prompts the user for reengagement. If not set, the agent will not
      +     * prompt the user for reengagement.
      +     * 
      + * + * + * .google.protobuf.Duration inactivity_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Duration.Builder getInactivityTimeoutBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetInactivityTimeoutFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The duration of user inactivity (no speech or interaction) before
      +     * the agent prompts the user for reengagement. If not set, the agent will not
      +     * prompt the user for reengagement.
      +     * 
      + * + * + * .google.protobuf.Duration inactivity_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.DurationOrBuilder getInactivityTimeoutOrBuilder() { + if (inactivityTimeoutBuilder_ != null) { + return inactivityTimeoutBuilder_.getMessageOrBuilder(); + } else { + return inactivityTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : inactivityTimeout_; + } + } + + /** + * + * + *
      +     * Optional. The duration of user inactivity (no speech or interaction) before
      +     * the agent prompts the user for reengagement. If not set, the agent will not
      +     * prompt the user for reengagement.
      +     * 
      + * + * + * .google.protobuf.Duration inactivity_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetInactivityTimeoutFieldBuilder() { + if (inactivityTimeoutBuilder_ == null) { + inactivityTimeoutBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getInactivityTimeout(), getParentForChildren(), isClean()); + inactivityTimeout_ = null; + } + return inactivityTimeoutBuilder_; + } + + private com.google.cloud.ces.v1.AmbientSoundConfig ambientSoundConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.AmbientSoundConfig, + com.google.cloud.ces.v1.AmbientSoundConfig.Builder, + com.google.cloud.ces.v1.AmbientSoundConfigOrBuilder> + ambientSoundConfigBuilder_; + + /** + * + * + *
      +     * Optional. Configuration for the ambient sound to be played with the
      +     * synthesized agent response, to enhance the naturalness of the conversation.
      +     * 
      + * + * + * .google.cloud.ces.v1.AmbientSoundConfig ambient_sound_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ambientSoundConfig field is set. + */ + public boolean hasAmbientSoundConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +     * Optional. Configuration for the ambient sound to be played with the
      +     * synthesized agent response, to enhance the naturalness of the conversation.
      +     * 
      + * + * + * .google.cloud.ces.v1.AmbientSoundConfig ambient_sound_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ambientSoundConfig. + */ + public com.google.cloud.ces.v1.AmbientSoundConfig getAmbientSoundConfig() { + if (ambientSoundConfigBuilder_ == null) { + return ambientSoundConfig_ == null + ? com.google.cloud.ces.v1.AmbientSoundConfig.getDefaultInstance() + : ambientSoundConfig_; + } else { + return ambientSoundConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Configuration for the ambient sound to be played with the
      +     * synthesized agent response, to enhance the naturalness of the conversation.
      +     * 
      + * + * + * .google.cloud.ces.v1.AmbientSoundConfig ambient_sound_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAmbientSoundConfig(com.google.cloud.ces.v1.AmbientSoundConfig value) { + if (ambientSoundConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ambientSoundConfig_ = value; + } else { + ambientSoundConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for the ambient sound to be played with the
      +     * synthesized agent response, to enhance the naturalness of the conversation.
      +     * 
      + * + * + * .google.cloud.ces.v1.AmbientSoundConfig ambient_sound_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAmbientSoundConfig( + com.google.cloud.ces.v1.AmbientSoundConfig.Builder builderForValue) { + if (ambientSoundConfigBuilder_ == null) { + ambientSoundConfig_ = builderForValue.build(); + } else { + ambientSoundConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for the ambient sound to be played with the
      +     * synthesized agent response, to enhance the naturalness of the conversation.
      +     * 
      + * + * + * .google.cloud.ces.v1.AmbientSoundConfig ambient_sound_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAmbientSoundConfig(com.google.cloud.ces.v1.AmbientSoundConfig value) { + if (ambientSoundConfigBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && ambientSoundConfig_ != null + && ambientSoundConfig_ + != com.google.cloud.ces.v1.AmbientSoundConfig.getDefaultInstance()) { + getAmbientSoundConfigBuilder().mergeFrom(value); + } else { + ambientSoundConfig_ = value; + } + } else { + ambientSoundConfigBuilder_.mergeFrom(value); + } + if (ambientSoundConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for the ambient sound to be played with the
      +     * synthesized agent response, to enhance the naturalness of the conversation.
      +     * 
      + * + * + * .google.cloud.ces.v1.AmbientSoundConfig ambient_sound_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAmbientSoundConfig() { + bitField0_ = (bitField0_ & ~0x00000008); + ambientSoundConfig_ = null; + if (ambientSoundConfigBuilder_ != null) { + ambientSoundConfigBuilder_.dispose(); + ambientSoundConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for the ambient sound to be played with the
      +     * synthesized agent response, to enhance the naturalness of the conversation.
      +     * 
      + * + * + * .google.cloud.ces.v1.AmbientSoundConfig ambient_sound_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.AmbientSoundConfig.Builder getAmbientSoundConfigBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetAmbientSoundConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Configuration for the ambient sound to be played with the
      +     * synthesized agent response, to enhance the naturalness of the conversation.
      +     * 
      + * + * + * .google.cloud.ces.v1.AmbientSoundConfig ambient_sound_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.AmbientSoundConfigOrBuilder getAmbientSoundConfigOrBuilder() { + if (ambientSoundConfigBuilder_ != null) { + return ambientSoundConfigBuilder_.getMessageOrBuilder(); + } else { + return ambientSoundConfig_ == null + ? com.google.cloud.ces.v1.AmbientSoundConfig.getDefaultInstance() + : ambientSoundConfig_; + } + } + + /** + * + * + *
      +     * Optional. Configuration for the ambient sound to be played with the
      +     * synthesized agent response, to enhance the naturalness of the conversation.
      +     * 
      + * + * + * .google.cloud.ces.v1.AmbientSoundConfig ambient_sound_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.AmbientSoundConfig, + com.google.cloud.ces.v1.AmbientSoundConfig.Builder, + com.google.cloud.ces.v1.AmbientSoundConfigOrBuilder> + internalGetAmbientSoundConfigFieldBuilder() { + if (ambientSoundConfigBuilder_ == null) { + ambientSoundConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.AmbientSoundConfig, + com.google.cloud.ces.v1.AmbientSoundConfig.Builder, + com.google.cloud.ces.v1.AmbientSoundConfigOrBuilder>( + getAmbientSoundConfig(), getParentForChildren(), isClean()); + ambientSoundConfig_ = null; + } + return ambientSoundConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.AudioProcessingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.AudioProcessingConfig) + private static final com.google.cloud.ces.v1.AudioProcessingConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.AudioProcessingConfig(); + } + + public static com.google.cloud.ces.v1.AudioProcessingConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AudioProcessingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.AudioProcessingConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AudioProcessingConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AudioProcessingConfigOrBuilder.java new file mode 100644 index 000000000000..863de5dbbf67 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AudioProcessingConfigOrBuilder.java @@ -0,0 +1,287 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface AudioProcessingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.AudioProcessingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. Configuration of how the agent response should be synthesized,
      +   * mapping from the language code to
      +   * [SynthesizeSpeechConfig][google.cloud.ces.v1.SynthesizeSpeechConfig].
      +   *
      +   * If the configuration for the specified language code is not found, the
      +   * configuration for the root language code will be used. For example, if the
      +   * map contains "en-us" and "en", and the specified language code is "en-gb",
      +   * then "en" configuration will be used.
      +   *
      +   * Note: Language code is case-insensitive.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.SynthesizeSpeechConfig> synthesize_speech_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getSynthesizeSpeechConfigsCount(); + + /** + * + * + *
      +   * Optional. Configuration of how the agent response should be synthesized,
      +   * mapping from the language code to
      +   * [SynthesizeSpeechConfig][google.cloud.ces.v1.SynthesizeSpeechConfig].
      +   *
      +   * If the configuration for the specified language code is not found, the
      +   * configuration for the root language code will be used. For example, if the
      +   * map contains "en-us" and "en", and the specified language code is "en-gb",
      +   * then "en" configuration will be used.
      +   *
      +   * Note: Language code is case-insensitive.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.SynthesizeSpeechConfig> synthesize_speech_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsSynthesizeSpeechConfigs(java.lang.String key); + + /** Use {@link #getSynthesizeSpeechConfigsMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getSynthesizeSpeechConfigs(); + + /** + * + * + *
      +   * Optional. Configuration of how the agent response should be synthesized,
      +   * mapping from the language code to
      +   * [SynthesizeSpeechConfig][google.cloud.ces.v1.SynthesizeSpeechConfig].
      +   *
      +   * If the configuration for the specified language code is not found, the
      +   * configuration for the root language code will be used. For example, if the
      +   * map contains "en-us" and "en", and the specified language code is "en-gb",
      +   * then "en" configuration will be used.
      +   *
      +   * Note: Language code is case-insensitive.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.SynthesizeSpeechConfig> synthesize_speech_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map + getSynthesizeSpeechConfigsMap(); + + /** + * + * + *
      +   * Optional. Configuration of how the agent response should be synthesized,
      +   * mapping from the language code to
      +   * [SynthesizeSpeechConfig][google.cloud.ces.v1.SynthesizeSpeechConfig].
      +   *
      +   * If the configuration for the specified language code is not found, the
      +   * configuration for the root language code will be used. For example, if the
      +   * map contains "en-us" and "en", and the specified language code is "en-gb",
      +   * then "en" configuration will be used.
      +   *
      +   * Note: Language code is case-insensitive.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.SynthesizeSpeechConfig> synthesize_speech_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + com.google.cloud.ces.v1.SynthesizeSpeechConfig getSynthesizeSpeechConfigsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.ces.v1.SynthesizeSpeechConfig defaultValue); + + /** + * + * + *
      +   * Optional. Configuration of how the agent response should be synthesized,
      +   * mapping from the language code to
      +   * [SynthesizeSpeechConfig][google.cloud.ces.v1.SynthesizeSpeechConfig].
      +   *
      +   * If the configuration for the specified language code is not found, the
      +   * configuration for the root language code will be used. For example, if the
      +   * map contains "en-us" and "en", and the specified language code is "en-gb",
      +   * then "en" configuration will be used.
      +   *
      +   * Note: Language code is case-insensitive.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.SynthesizeSpeechConfig> synthesize_speech_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.SynthesizeSpeechConfig getSynthesizeSpeechConfigsOrThrow( + java.lang.String key); + + /** + * + * + *
      +   * Optional. Configures the agent behavior for the user barge-in activities.
      +   * 
      + * + * + * .google.cloud.ces.v1.BargeInConfig barge_in_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bargeInConfig field is set. + */ + boolean hasBargeInConfig(); + + /** + * + * + *
      +   * Optional. Configures the agent behavior for the user barge-in activities.
      +   * 
      + * + * + * .google.cloud.ces.v1.BargeInConfig barge_in_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bargeInConfig. + */ + com.google.cloud.ces.v1.BargeInConfig getBargeInConfig(); + + /** + * + * + *
      +   * Optional. Configures the agent behavior for the user barge-in activities.
      +   * 
      + * + * + * .google.cloud.ces.v1.BargeInConfig barge_in_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.BargeInConfigOrBuilder getBargeInConfigOrBuilder(); + + /** + * + * + *
      +   * Optional. The duration of user inactivity (no speech or interaction) before
      +   * the agent prompts the user for reengagement. If not set, the agent will not
      +   * prompt the user for reengagement.
      +   * 
      + * + * + * .google.protobuf.Duration inactivity_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the inactivityTimeout field is set. + */ + boolean hasInactivityTimeout(); + + /** + * + * + *
      +   * Optional. The duration of user inactivity (no speech or interaction) before
      +   * the agent prompts the user for reengagement. If not set, the agent will not
      +   * prompt the user for reengagement.
      +   * 
      + * + * + * .google.protobuf.Duration inactivity_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inactivityTimeout. + */ + com.google.protobuf.Duration getInactivityTimeout(); + + /** + * + * + *
      +   * Optional. The duration of user inactivity (no speech or interaction) before
      +   * the agent prompts the user for reengagement. If not set, the agent will not
      +   * prompt the user for reengagement.
      +   * 
      + * + * + * .google.protobuf.Duration inactivity_timeout = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.DurationOrBuilder getInactivityTimeoutOrBuilder(); + + /** + * + * + *
      +   * Optional. Configuration for the ambient sound to be played with the
      +   * synthesized agent response, to enhance the naturalness of the conversation.
      +   * 
      + * + * + * .google.cloud.ces.v1.AmbientSoundConfig ambient_sound_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ambientSoundConfig field is set. + */ + boolean hasAmbientSoundConfig(); + + /** + * + * + *
      +   * Optional. Configuration for the ambient sound to be played with the
      +   * synthesized agent response, to enhance the naturalness of the conversation.
      +   * 
      + * + * + * .google.cloud.ces.v1.AmbientSoundConfig ambient_sound_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ambientSoundConfig. + */ + com.google.cloud.ces.v1.AmbientSoundConfig getAmbientSoundConfig(); + + /** + * + * + *
      +   * Optional. Configuration for the ambient sound to be played with the
      +   * synthesized agent response, to enhance the naturalness of the conversation.
      +   * 
      + * + * + * .google.cloud.ces.v1.AmbientSoundConfig ambient_sound_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.AmbientSoundConfigOrBuilder getAmbientSoundConfigOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AudioRecordingConfig.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AudioRecordingConfig.java new file mode 100644 index 000000000000..e04b58eaf29f --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AudioRecordingConfig.java @@ -0,0 +1,917 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Configuration for how the audio interactions should be recorded.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.AudioRecordingConfig} + */ +@com.google.protobuf.Generated +public final class AudioRecordingConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.AudioRecordingConfig) + AudioRecordingConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AudioRecordingConfig"); + } + + // Use AudioRecordingConfig.newBuilder() to construct. + private AudioRecordingConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AudioRecordingConfig() { + gcsBucket_ = ""; + gcsPathPrefix_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_AudioRecordingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_AudioRecordingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.AudioRecordingConfig.class, + com.google.cloud.ces.v1.AudioRecordingConfig.Builder.class); + } + + public static final int GCS_BUCKET_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcsBucket_ = ""; + + /** + * + * + *
      +   * Optional. The [Cloud Storage](https://cloud.google.com/storage) bucket to
      +   * store the session audio recordings. The URI must start with "gs://".
      +   *
      +   * Please choose a bucket location that meets your data residency
      +   * requirements.
      +   *
      +   * Note: If the Cloud Storage bucket is in a different project from the app,
      +   * you should grant `storage.objects.create` permission to the CES service
      +   * agent `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +   * 
      + * + * string gcs_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcsBucket. + */ + @java.lang.Override + public java.lang.String getGcsBucket() { + java.lang.Object ref = gcsBucket_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsBucket_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The [Cloud Storage](https://cloud.google.com/storage) bucket to
      +   * store the session audio recordings. The URI must start with "gs://".
      +   *
      +   * Please choose a bucket location that meets your data residency
      +   * requirements.
      +   *
      +   * Note: If the Cloud Storage bucket is in a different project from the app,
      +   * you should grant `storage.objects.create` permission to the CES service
      +   * agent `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +   * 
      + * + * string gcs_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcsBucket. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcsBucketBytes() { + java.lang.Object ref = gcsBucket_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsBucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GCS_PATH_PREFIX_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcsPathPrefix_ = ""; + + /** + * + * + *
      +   * Optional. The Cloud Storage path prefix for audio recordings.
      +   *
      +   * This prefix can include the following placeholders, which will be
      +   * dynamically substituted at serving time:
      +   * - $project:   project ID
      +   * - $location:  app location
      +   * - $app:       app ID
      +   * - $date:      session date in YYYY-MM-DD format
      +   * - $session:   session ID
      +   *
      +   * If the path prefix is not specified, the default prefix
      +   * `$project/$location/$app/$date/$session/` will be used.
      +   * 
      + * + * string gcs_path_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcsPathPrefix. + */ + @java.lang.Override + public java.lang.String getGcsPathPrefix() { + java.lang.Object ref = gcsPathPrefix_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsPathPrefix_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The Cloud Storage path prefix for audio recordings.
      +   *
      +   * This prefix can include the following placeholders, which will be
      +   * dynamically substituted at serving time:
      +   * - $project:   project ID
      +   * - $location:  app location
      +   * - $app:       app ID
      +   * - $date:      session date in YYYY-MM-DD format
      +   * - $session:   session ID
      +   *
      +   * If the path prefix is not specified, the default prefix
      +   * `$project/$location/$app/$date/$session/` will be used.
      +   * 
      + * + * string gcs_path_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcsPathPrefix. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcsPathPrefixBytes() { + java.lang.Object ref = gcsPathPrefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsPathPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcsBucket_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, gcsBucket_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcsPathPrefix_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, gcsPathPrefix_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcsBucket_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, gcsBucket_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcsPathPrefix_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, gcsPathPrefix_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.AudioRecordingConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.AudioRecordingConfig other = + (com.google.cloud.ces.v1.AudioRecordingConfig) obj; + + if (!getGcsBucket().equals(other.getGcsBucket())) return false; + if (!getGcsPathPrefix().equals(other.getGcsPathPrefix())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + GCS_BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getGcsBucket().hashCode(); + hash = (37 * hash) + GCS_PATH_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getGcsPathPrefix().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.AudioRecordingConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.AudioRecordingConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AudioRecordingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.AudioRecordingConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AudioRecordingConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.AudioRecordingConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AudioRecordingConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.AudioRecordingConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AudioRecordingConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.AudioRecordingConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.AudioRecordingConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.AudioRecordingConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.AudioRecordingConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Configuration for how the audio interactions should be recorded.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.AudioRecordingConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.AudioRecordingConfig) + com.google.cloud.ces.v1.AudioRecordingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_AudioRecordingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_AudioRecordingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.AudioRecordingConfig.class, + com.google.cloud.ces.v1.AudioRecordingConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.AudioRecordingConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + gcsBucket_ = ""; + gcsPathPrefix_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_AudioRecordingConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.AudioRecordingConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1.AudioRecordingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.AudioRecordingConfig build() { + com.google.cloud.ces.v1.AudioRecordingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.AudioRecordingConfig buildPartial() { + com.google.cloud.ces.v1.AudioRecordingConfig result = + new com.google.cloud.ces.v1.AudioRecordingConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.AudioRecordingConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.gcsBucket_ = gcsBucket_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.gcsPathPrefix_ = gcsPathPrefix_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.AudioRecordingConfig) { + return mergeFrom((com.google.cloud.ces.v1.AudioRecordingConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.AudioRecordingConfig other) { + if (other == com.google.cloud.ces.v1.AudioRecordingConfig.getDefaultInstance()) return this; + if (!other.getGcsBucket().isEmpty()) { + gcsBucket_ = other.gcsBucket_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getGcsPathPrefix().isEmpty()) { + gcsPathPrefix_ = other.gcsPathPrefix_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + gcsBucket_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + gcsPathPrefix_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object gcsBucket_ = ""; + + /** + * + * + *
      +     * Optional. The [Cloud Storage](https://cloud.google.com/storage) bucket to
      +     * store the session audio recordings. The URI must start with "gs://".
      +     *
      +     * Please choose a bucket location that meets your data residency
      +     * requirements.
      +     *
      +     * Note: If the Cloud Storage bucket is in a different project from the app,
      +     * you should grant `storage.objects.create` permission to the CES service
      +     * agent `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +     * 
      + * + * string gcs_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcsBucket. + */ + public java.lang.String getGcsBucket() { + java.lang.Object ref = gcsBucket_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsBucket_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The [Cloud Storage](https://cloud.google.com/storage) bucket to
      +     * store the session audio recordings. The URI must start with "gs://".
      +     *
      +     * Please choose a bucket location that meets your data residency
      +     * requirements.
      +     *
      +     * Note: If the Cloud Storage bucket is in a different project from the app,
      +     * you should grant `storage.objects.create` permission to the CES service
      +     * agent `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +     * 
      + * + * string gcs_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcsBucket. + */ + public com.google.protobuf.ByteString getGcsBucketBytes() { + java.lang.Object ref = gcsBucket_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsBucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The [Cloud Storage](https://cloud.google.com/storage) bucket to
      +     * store the session audio recordings. The URI must start with "gs://".
      +     *
      +     * Please choose a bucket location that meets your data residency
      +     * requirements.
      +     *
      +     * Note: If the Cloud Storage bucket is in a different project from the app,
      +     * you should grant `storage.objects.create` permission to the CES service
      +     * agent `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +     * 
      + * + * string gcs_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The gcsBucket to set. + * @return This builder for chaining. + */ + public Builder setGcsBucket(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcsBucket_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The [Cloud Storage](https://cloud.google.com/storage) bucket to
      +     * store the session audio recordings. The URI must start with "gs://".
      +     *
      +     * Please choose a bucket location that meets your data residency
      +     * requirements.
      +     *
      +     * Note: If the Cloud Storage bucket is in a different project from the app,
      +     * you should grant `storage.objects.create` permission to the CES service
      +     * agent `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +     * 
      + * + * string gcs_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGcsBucket() { + gcsBucket_ = getDefaultInstance().getGcsBucket(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The [Cloud Storage](https://cloud.google.com/storage) bucket to
      +     * store the session audio recordings. The URI must start with "gs://".
      +     *
      +     * Please choose a bucket location that meets your data residency
      +     * requirements.
      +     *
      +     * Note: If the Cloud Storage bucket is in a different project from the app,
      +     * you should grant `storage.objects.create` permission to the CES service
      +     * agent `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +     * 
      + * + * string gcs_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for gcsBucket to set. + * @return This builder for chaining. + */ + public Builder setGcsBucketBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsBucket_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object gcsPathPrefix_ = ""; + + /** + * + * + *
      +     * Optional. The Cloud Storage path prefix for audio recordings.
      +     *
      +     * This prefix can include the following placeholders, which will be
      +     * dynamically substituted at serving time:
      +     * - $project:   project ID
      +     * - $location:  app location
      +     * - $app:       app ID
      +     * - $date:      session date in YYYY-MM-DD format
      +     * - $session:   session ID
      +     *
      +     * If the path prefix is not specified, the default prefix
      +     * `$project/$location/$app/$date/$session/` will be used.
      +     * 
      + * + * string gcs_path_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcsPathPrefix. + */ + public java.lang.String getGcsPathPrefix() { + java.lang.Object ref = gcsPathPrefix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsPathPrefix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The Cloud Storage path prefix for audio recordings.
      +     *
      +     * This prefix can include the following placeholders, which will be
      +     * dynamically substituted at serving time:
      +     * - $project:   project ID
      +     * - $location:  app location
      +     * - $app:       app ID
      +     * - $date:      session date in YYYY-MM-DD format
      +     * - $session:   session ID
      +     *
      +     * If the path prefix is not specified, the default prefix
      +     * `$project/$location/$app/$date/$session/` will be used.
      +     * 
      + * + * string gcs_path_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcsPathPrefix. + */ + public com.google.protobuf.ByteString getGcsPathPrefixBytes() { + java.lang.Object ref = gcsPathPrefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsPathPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The Cloud Storage path prefix for audio recordings.
      +     *
      +     * This prefix can include the following placeholders, which will be
      +     * dynamically substituted at serving time:
      +     * - $project:   project ID
      +     * - $location:  app location
      +     * - $app:       app ID
      +     * - $date:      session date in YYYY-MM-DD format
      +     * - $session:   session ID
      +     *
      +     * If the path prefix is not specified, the default prefix
      +     * `$project/$location/$app/$date/$session/` will be used.
      +     * 
      + * + * string gcs_path_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The gcsPathPrefix to set. + * @return This builder for chaining. + */ + public Builder setGcsPathPrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcsPathPrefix_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The Cloud Storage path prefix for audio recordings.
      +     *
      +     * This prefix can include the following placeholders, which will be
      +     * dynamically substituted at serving time:
      +     * - $project:   project ID
      +     * - $location:  app location
      +     * - $app:       app ID
      +     * - $date:      session date in YYYY-MM-DD format
      +     * - $session:   session ID
      +     *
      +     * If the path prefix is not specified, the default prefix
      +     * `$project/$location/$app/$date/$session/` will be used.
      +     * 
      + * + * string gcs_path_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGcsPathPrefix() { + gcsPathPrefix_ = getDefaultInstance().getGcsPathPrefix(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The Cloud Storage path prefix for audio recordings.
      +     *
      +     * This prefix can include the following placeholders, which will be
      +     * dynamically substituted at serving time:
      +     * - $project:   project ID
      +     * - $location:  app location
      +     * - $app:       app ID
      +     * - $date:      session date in YYYY-MM-DD format
      +     * - $session:   session ID
      +     *
      +     * If the path prefix is not specified, the default prefix
      +     * `$project/$location/$app/$date/$session/` will be used.
      +     * 
      + * + * string gcs_path_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for gcsPathPrefix to set. + * @return This builder for chaining. + */ + public Builder setGcsPathPrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsPathPrefix_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.AudioRecordingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.AudioRecordingConfig) + private static final com.google.cloud.ces.v1.AudioRecordingConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.AudioRecordingConfig(); + } + + public static com.google.cloud.ces.v1.AudioRecordingConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AudioRecordingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.AudioRecordingConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AudioRecordingConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AudioRecordingConfigOrBuilder.java new file mode 100644 index 000000000000..fe9002f5f74a --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AudioRecordingConfigOrBuilder.java @@ -0,0 +1,118 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface AudioRecordingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.AudioRecordingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. The [Cloud Storage](https://cloud.google.com/storage) bucket to
      +   * store the session audio recordings. The URI must start with "gs://".
      +   *
      +   * Please choose a bucket location that meets your data residency
      +   * requirements.
      +   *
      +   * Note: If the Cloud Storage bucket is in a different project from the app,
      +   * you should grant `storage.objects.create` permission to the CES service
      +   * agent `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +   * 
      + * + * string gcs_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcsBucket. + */ + java.lang.String getGcsBucket(); + + /** + * + * + *
      +   * Optional. The [Cloud Storage](https://cloud.google.com/storage) bucket to
      +   * store the session audio recordings. The URI must start with "gs://".
      +   *
      +   * Please choose a bucket location that meets your data residency
      +   * requirements.
      +   *
      +   * Note: If the Cloud Storage bucket is in a different project from the app,
      +   * you should grant `storage.objects.create` permission to the CES service
      +   * agent `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +   * 
      + * + * string gcs_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcsBucket. + */ + com.google.protobuf.ByteString getGcsBucketBytes(); + + /** + * + * + *
      +   * Optional. The Cloud Storage path prefix for audio recordings.
      +   *
      +   * This prefix can include the following placeholders, which will be
      +   * dynamically substituted at serving time:
      +   * - $project:   project ID
      +   * - $location:  app location
      +   * - $app:       app ID
      +   * - $date:      session date in YYYY-MM-DD format
      +   * - $session:   session ID
      +   *
      +   * If the path prefix is not specified, the default prefix
      +   * `$project/$location/$app/$date/$session/` will be used.
      +   * 
      + * + * string gcs_path_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcsPathPrefix. + */ + java.lang.String getGcsPathPrefix(); + + /** + * + * + *
      +   * Optional. The Cloud Storage path prefix for audio recordings.
      +   *
      +   * This prefix can include the following placeholders, which will be
      +   * dynamically substituted at serving time:
      +   * - $project:   project ID
      +   * - $location:  app location
      +   * - $app:       app ID
      +   * - $date:      session date in YYYY-MM-DD format
      +   * - $session:   session ID
      +   *
      +   * If the path prefix is not specified, the default prefix
      +   * `$project/$location/$app/$date/$session/` will be used.
      +   * 
      + * + * string gcs_path_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcsPathPrefix. + */ + com.google.protobuf.ByteString getGcsPathPrefixBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AuthProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AuthProto.java new file mode 100644 index 000000000000..8a68669953fb --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AuthProto.java @@ -0,0 +1,230 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/auth.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class AuthProto extends com.google.protobuf.GeneratedFile { + private AuthProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AuthProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ApiKeyConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ApiKeyConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_OAuthConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_OAuthConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ServiceAgentIdTokenAuthConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ServiceAgentIdTokenAuthConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ServiceAccountAuthConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ServiceAccountAuthConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_BearerTokenConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_BearerTokenConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_EndUserAuthConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_EndUserAuthConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_EndUserAuthConfig_Oauth2AuthCodeConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_EndUserAuthConfig_Oauth2AuthCodeConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_EndUserAuthConfig_Oauth2JwtBearerConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_EndUserAuthConfig_Oauth2JwtBearerConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ApiAuthentication_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ApiAuthentication_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\036google/cloud/ces/v1/auth.proto\022\023google" + + ".cloud.ces.v1\032\037google/api/field_behavior" + + ".proto\032\031google/api/resource.proto\"\236\002\n\014Ap" + + "iKeyConfig\022\025\n\010key_name\030\001 \001(\tB\003\340A\002\022R\n\026api" + + "_key_secret_version\030\002 \001(\tB2\340A\002\372A,\n*secre" + + "tmanager.googleapis.com/SecretVersion\022P\n" + + "\020request_location\030\003 \001(\01621.google.cloud.c" + + "es.v1.ApiKeyConfig.RequestLocationB\003\340A\002\"" + + "Q\n\017RequestLocation\022 \n\034REQUEST_LOCATION_U" + + "NSPECIFIED\020\000\022\n\n\006HEADER\020\001\022\020\n\014QUERY_STRING" + + "\020\002\"\305\002\n\013OAuthConfig\022N\n\020oauth_grant_type\030\001" + + " \001(\0162/.google.cloud.ces.v1.OAuthConfig.O" + + "authGrantTypeB\003\340A\002\022\026\n\tclient_id\030\002 \001(\tB\003\340" + + "A\002\022Q\n\025client_secret_version\030\003 \001(\tB2\340A\002\372A" + + ",\n*secretmanager.googleapis.com/SecretVe" + + "rsion\022\033\n\016token_endpoint\030\004 \001(\tB\003\340A\002\022\023\n\006sc" + + "opes\030\005 \003(\tB\003\340A\001\"I\n\016OauthGrantType\022 \n\034OAU" + + "TH_GRANT_TYPE_UNSPECIFIED\020\000\022\025\n\021CLIENT_CR" + + "EDENTIAL\020\001\"\037\n\035ServiceAgentIdTokenAuthCon" + + "fig\"M\n\030ServiceAccountAuthConfig\022\034\n\017servi" + + "ce_account\030\001 \001(\tB\003\340A\002\022\023\n\006scopes\030\002 \003(\tB\003\340" + + "A\001\"\'\n\021BearerTokenConfig\022\022\n\005token\030\001 \001(\tB\003" + + "\340A\002\"\363\002\n\021EndUserAuthConfig\022^\n\027oauth2_auth" + + "_code_config\030\002 \001(\0132;.google.cloud.ces.v1" + + ".EndUserAuthConfig.Oauth2AuthCodeConfigH" + + "\000\022`\n\030oauth2_jwt_bearer_config\030\003 \001(\0132<.go" + + "ogle.cloud.ces.v1.EndUserAuthConfig.Oaut" + + "h2JwtBearerConfigH\000\0320\n\024Oauth2AuthCodeCon" + + "fig\022\030\n\013oauth_token\030\001 \001(\tB\003\340A\002\032[\n\025Oauth2J" + + "wtBearerConfig\022\023\n\006issuer\030\001 \001(\tB\003\340A\002\022\024\n\007s" + + "ubject\030\002 \001(\tB\003\340A\002\022\027\n\nclient_key\030\003 \001(\tB\003\340" + + "A\002B\r\n\013auth_config\"\261\003\n\021ApiAuthentication\022" + + "@\n\016api_key_config\030\001 \001(\0132!.google.cloud.c" + + "es.v1.ApiKeyConfigB\003\340A\001H\000\022=\n\014oauth_confi" + + "g\030\002 \001(\0132 .google.cloud.ces.v1.OAuthConfi" + + "gB\003\340A\001H\000\022e\n\"service_agent_id_token_auth_" + + "config\030\003 \001(\01322.google.cloud.ces.v1.Servi" + + "ceAgentIdTokenAuthConfigB\003\340A\001H\000\022Y\n\033servi" + + "ce_account_auth_config\030\004 \001(\0132-.google.cl" + + "oud.ces.v1.ServiceAccountAuthConfigB\003\340A\001" + + "H\000\022J\n\023bearer_token_config\030\005 \001(\0132&.google" + + ".cloud.ces.v1.BearerTokenConfigB\003\340A\001H\000B\r" + + "\n\013auth_configB\277\001\n\027com.google.cloud.ces.v" + + "1B\tAuthProtoP\001Z)cloud.google.com/go/ces/" + + "apiv1/cespb;cespb\352Ak\n*secretmanager.goog" + + "leapis.com/SecretVersion\022=projects/{proj" + + "ect}/secrets/{secret}/versions/{secret_v" + + "ersion}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_ApiKeyConfig_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_ApiKeyConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ApiKeyConfig_descriptor, + new java.lang.String[] { + "KeyName", "ApiKeySecretVersion", "RequestLocation", + }); + internal_static_google_cloud_ces_v1_OAuthConfig_descriptor = getDescriptor().getMessageType(1); + internal_static_google_cloud_ces_v1_OAuthConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_OAuthConfig_descriptor, + new java.lang.String[] { + "OauthGrantType", "ClientId", "ClientSecretVersion", "TokenEndpoint", "Scopes", + }); + internal_static_google_cloud_ces_v1_ServiceAgentIdTokenAuthConfig_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_ces_v1_ServiceAgentIdTokenAuthConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ServiceAgentIdTokenAuthConfig_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_ces_v1_ServiceAccountAuthConfig_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_ces_v1_ServiceAccountAuthConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ServiceAccountAuthConfig_descriptor, + new java.lang.String[] { + "ServiceAccount", "Scopes", + }); + internal_static_google_cloud_ces_v1_BearerTokenConfig_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_ces_v1_BearerTokenConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_BearerTokenConfig_descriptor, + new java.lang.String[] { + "Token", + }); + internal_static_google_cloud_ces_v1_EndUserAuthConfig_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_ces_v1_EndUserAuthConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_EndUserAuthConfig_descriptor, + new java.lang.String[] { + "Oauth2AuthCodeConfig", "Oauth2JwtBearerConfig", "AuthConfig", + }); + internal_static_google_cloud_ces_v1_EndUserAuthConfig_Oauth2AuthCodeConfig_descriptor = + internal_static_google_cloud_ces_v1_EndUserAuthConfig_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_EndUserAuthConfig_Oauth2AuthCodeConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_EndUserAuthConfig_Oauth2AuthCodeConfig_descriptor, + new java.lang.String[] { + "OauthToken", + }); + internal_static_google_cloud_ces_v1_EndUserAuthConfig_Oauth2JwtBearerConfig_descriptor = + internal_static_google_cloud_ces_v1_EndUserAuthConfig_descriptor.getNestedType(1); + internal_static_google_cloud_ces_v1_EndUserAuthConfig_Oauth2JwtBearerConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_EndUserAuthConfig_Oauth2JwtBearerConfig_descriptor, + new java.lang.String[] { + "Issuer", "Subject", "ClientKey", + }); + internal_static_google_cloud_ces_v1_ApiAuthentication_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_ces_v1_ApiAuthentication_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ApiAuthentication_descriptor, + new java.lang.String[] { + "ApiKeyConfig", + "OauthConfig", + "ServiceAgentIdTokenAuthConfig", + "ServiceAccountAuthConfig", + "BearerTokenConfig", + "AuthConfig", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BargeInConfig.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BargeInConfig.java new file mode 100644 index 000000000000..c9d77b15bc04 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BargeInConfig.java @@ -0,0 +1,645 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Configuration for how the user barge-in activities should be handled.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.BargeInConfig} + */ +@com.google.protobuf.Generated +public final class BargeInConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.BargeInConfig) + BargeInConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BargeInConfig"); + } + + // Use BargeInConfig.newBuilder() to construct. + private BargeInConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BargeInConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_BargeInConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_BargeInConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.BargeInConfig.class, + com.google.cloud.ces.v1.BargeInConfig.Builder.class); + } + + public static final int DISABLE_BARGE_IN_FIELD_NUMBER = 1; + private boolean disableBargeIn_ = false; + + /** + * + * + *
      +   * Optional. Disables user barge-in while the agent is speaking. If true, user
      +   * input during agent response playback will be ignored.
      +   *
      +   * Deprecated: `disable_barge_in` is deprecated in favor of
      +   * [`disable_barge_in_control`][google.cloud.ces.v1.ChannelProfile.disable_barge_in_control]
      +   * in ChannelProfile.
      +   * 
      + * + * bool disable_barge_in = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.BargeInConfig.disable_barge_in is deprecated. See + * google/cloud/ces/v1/app.proto;l=333 + * @return The disableBargeIn. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean getDisableBargeIn() { + return disableBargeIn_; + } + + public static final int BARGE_IN_AWARENESS_FIELD_NUMBER = 2; + private boolean bargeInAwareness_ = false; + + /** + * + * + *
      +   * Optional. If enabled, the agent will adapt its next response based on the
      +   * assumption that the user hasn't heard the full preceding agent message.
      +   * This should not be used in scenarios where agent responses are displayed
      +   * visually.
      +   * 
      + * + * bool barge_in_awareness = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bargeInAwareness. + */ + @java.lang.Override + public boolean getBargeInAwareness() { + return bargeInAwareness_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (disableBargeIn_ != false) { + output.writeBool(1, disableBargeIn_); + } + if (bargeInAwareness_ != false) { + output.writeBool(2, bargeInAwareness_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (disableBargeIn_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, disableBargeIn_); + } + if (bargeInAwareness_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, bargeInAwareness_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.BargeInConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.BargeInConfig other = (com.google.cloud.ces.v1.BargeInConfig) obj; + + if (getDisableBargeIn() != other.getDisableBargeIn()) return false; + if (getBargeInAwareness() != other.getBargeInAwareness()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISABLE_BARGE_IN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableBargeIn()); + hash = (37 * hash) + BARGE_IN_AWARENESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBargeInAwareness()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.BargeInConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.BargeInConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BargeInConfig parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.BargeInConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BargeInConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.BargeInConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BargeInConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.BargeInConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BargeInConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.BargeInConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BargeInConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.BargeInConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.BargeInConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Configuration for how the user barge-in activities should be handled.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.BargeInConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.BargeInConfig) + com.google.cloud.ces.v1.BargeInConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_BargeInConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_BargeInConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.BargeInConfig.class, + com.google.cloud.ces.v1.BargeInConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.BargeInConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + disableBargeIn_ = false; + bargeInAwareness_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_BargeInConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.BargeInConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1.BargeInConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.BargeInConfig build() { + com.google.cloud.ces.v1.BargeInConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.BargeInConfig buildPartial() { + com.google.cloud.ces.v1.BargeInConfig result = + new com.google.cloud.ces.v1.BargeInConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.BargeInConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.disableBargeIn_ = disableBargeIn_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.bargeInAwareness_ = bargeInAwareness_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.BargeInConfig) { + return mergeFrom((com.google.cloud.ces.v1.BargeInConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.BargeInConfig other) { + if (other == com.google.cloud.ces.v1.BargeInConfig.getDefaultInstance()) return this; + if (other.getDisableBargeIn() != false) { + setDisableBargeIn(other.getDisableBargeIn()); + } + if (other.getBargeInAwareness() != false) { + setBargeInAwareness(other.getBargeInAwareness()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + disableBargeIn_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + bargeInAwareness_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean disableBargeIn_; + + /** + * + * + *
      +     * Optional. Disables user barge-in while the agent is speaking. If true, user
      +     * input during agent response playback will be ignored.
      +     *
      +     * Deprecated: `disable_barge_in` is deprecated in favor of
      +     * [`disable_barge_in_control`][google.cloud.ces.v1.ChannelProfile.disable_barge_in_control]
      +     * in ChannelProfile.
      +     * 
      + * + * bool disable_barge_in = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.BargeInConfig.disable_barge_in is deprecated. See + * google/cloud/ces/v1/app.proto;l=333 + * @return The disableBargeIn. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean getDisableBargeIn() { + return disableBargeIn_; + } + + /** + * + * + *
      +     * Optional. Disables user barge-in while the agent is speaking. If true, user
      +     * input during agent response playback will be ignored.
      +     *
      +     * Deprecated: `disable_barge_in` is deprecated in favor of
      +     * [`disable_barge_in_control`][google.cloud.ces.v1.ChannelProfile.disable_barge_in_control]
      +     * in ChannelProfile.
      +     * 
      + * + * bool disable_barge_in = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.BargeInConfig.disable_barge_in is deprecated. See + * google/cloud/ces/v1/app.proto;l=333 + * @param value The disableBargeIn to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setDisableBargeIn(boolean value) { + + disableBargeIn_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Disables user barge-in while the agent is speaking. If true, user
      +     * input during agent response playback will be ignored.
      +     *
      +     * Deprecated: `disable_barge_in` is deprecated in favor of
      +     * [`disable_barge_in_control`][google.cloud.ces.v1.ChannelProfile.disable_barge_in_control]
      +     * in ChannelProfile.
      +     * 
      + * + * bool disable_barge_in = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.BargeInConfig.disable_barge_in is deprecated. See + * google/cloud/ces/v1/app.proto;l=333 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearDisableBargeIn() { + bitField0_ = (bitField0_ & ~0x00000001); + disableBargeIn_ = false; + onChanged(); + return this; + } + + private boolean bargeInAwareness_; + + /** + * + * + *
      +     * Optional. If enabled, the agent will adapt its next response based on the
      +     * assumption that the user hasn't heard the full preceding agent message.
      +     * This should not be used in scenarios where agent responses are displayed
      +     * visually.
      +     * 
      + * + * bool barge_in_awareness = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bargeInAwareness. + */ + @java.lang.Override + public boolean getBargeInAwareness() { + return bargeInAwareness_; + } + + /** + * + * + *
      +     * Optional. If enabled, the agent will adapt its next response based on the
      +     * assumption that the user hasn't heard the full preceding agent message.
      +     * This should not be used in scenarios where agent responses are displayed
      +     * visually.
      +     * 
      + * + * bool barge_in_awareness = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bargeInAwareness to set. + * @return This builder for chaining. + */ + public Builder setBargeInAwareness(boolean value) { + + bargeInAwareness_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. If enabled, the agent will adapt its next response based on the
      +     * assumption that the user hasn't heard the full preceding agent message.
      +     * This should not be used in scenarios where agent responses are displayed
      +     * visually.
      +     * 
      + * + * bool barge_in_awareness = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBargeInAwareness() { + bitField0_ = (bitField0_ & ~0x00000002); + bargeInAwareness_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.BargeInConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.BargeInConfig) + private static final com.google.cloud.ces.v1.BargeInConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.BargeInConfig(); + } + + public static com.google.cloud.ces.v1.BargeInConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BargeInConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.BargeInConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BargeInConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BargeInConfigOrBuilder.java new file mode 100644 index 000000000000..794d998e8917 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BargeInConfigOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface BargeInConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.BargeInConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. Disables user barge-in while the agent is speaking. If true, user
      +   * input during agent response playback will be ignored.
      +   *
      +   * Deprecated: `disable_barge_in` is deprecated in favor of
      +   * [`disable_barge_in_control`][google.cloud.ces.v1.ChannelProfile.disable_barge_in_control]
      +   * in ChannelProfile.
      +   * 
      + * + * bool disable_barge_in = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.BargeInConfig.disable_barge_in is deprecated. See + * google/cloud/ces/v1/app.proto;l=333 + * @return The disableBargeIn. + */ + @java.lang.Deprecated + boolean getDisableBargeIn(); + + /** + * + * + *
      +   * Optional. If enabled, the agent will adapt its next response based on the
      +   * assumption that the user hasn't heard the full preceding agent message.
      +   * This should not be used in scenarios where agent responses are displayed
      +   * visually.
      +   * 
      + * + * bool barge_in_awareness = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bargeInAwareness. + */ + boolean getBargeInAwareness(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BatchDeleteConversationsRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BatchDeleteConversationsRequest.java new file mode 100644 index 000000000000..c31a3802a7db --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BatchDeleteConversationsRequest.java @@ -0,0 +1,943 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.BatchDeleteConversations][google.cloud.ces.v1.AgentService.BatchDeleteConversations].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.BatchDeleteConversationsRequest} + */ +@com.google.protobuf.Generated +public final class BatchDeleteConversationsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.BatchDeleteConversationsRequest) + BatchDeleteConversationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BatchDeleteConversationsRequest"); + } + + // Use BatchDeleteConversationsRequest.newBuilder() to construct. + private BatchDeleteConversationsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BatchDeleteConversationsRequest() { + parent_ = ""; + conversations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_BatchDeleteConversationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_BatchDeleteConversationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.BatchDeleteConversationsRequest.class, + com.google.cloud.ces.v1.BatchDeleteConversationsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the app to delete conversations from.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}`
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the app to delete conversations from.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}`
      +   * 
      + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONVERSATIONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList conversations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +   * Required. The resource names of the conversations to delete.
      +   * 
      + * + * + * repeated string conversations = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the conversations. + */ + public com.google.protobuf.ProtocolStringList getConversationsList() { + return conversations_; + } + + /** + * + * + *
      +   * Required. The resource names of the conversations to delete.
      +   * 
      + * + * + * repeated string conversations = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of conversations. + */ + public int getConversationsCount() { + return conversations_.size(); + } + + /** + * + * + *
      +   * Required. The resource names of the conversations to delete.
      +   * 
      + * + * + * repeated string conversations = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The conversations at the given index. + */ + public java.lang.String getConversations(int index) { + return conversations_.get(index); + } + + /** + * + * + *
      +   * Required. The resource names of the conversations to delete.
      +   * 
      + * + * + * repeated string conversations = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the conversations at the given index. + */ + public com.google.protobuf.ByteString getConversationsBytes(int index) { + return conversations_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + for (int i = 0; i < conversations_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, conversations_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + { + int dataSize = 0; + for (int i = 0; i < conversations_.size(); i++) { + dataSize += computeStringSizeNoTag(conversations_.getRaw(i)); + } + size += dataSize; + size += 1 * getConversationsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.BatchDeleteConversationsRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.BatchDeleteConversationsRequest other = + (com.google.cloud.ces.v1.BatchDeleteConversationsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getConversationsList().equals(other.getConversationsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (getConversationsCount() > 0) { + hash = (37 * hash) + CONVERSATIONS_FIELD_NUMBER; + hash = (53 * hash) + getConversationsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.BatchDeleteConversationsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.BatchDeleteConversationsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BatchDeleteConversationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.BatchDeleteConversationsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BatchDeleteConversationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.BatchDeleteConversationsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BatchDeleteConversationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.BatchDeleteConversationsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BatchDeleteConversationsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.BatchDeleteConversationsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BatchDeleteConversationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.BatchDeleteConversationsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.BatchDeleteConversationsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.BatchDeleteConversations][google.cloud.ces.v1.AgentService.BatchDeleteConversations].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.BatchDeleteConversationsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.BatchDeleteConversationsRequest) + com.google.cloud.ces.v1.BatchDeleteConversationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_BatchDeleteConversationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_BatchDeleteConversationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.BatchDeleteConversationsRequest.class, + com.google.cloud.ces.v1.BatchDeleteConversationsRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.BatchDeleteConversationsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + conversations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_BatchDeleteConversationsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.BatchDeleteConversationsRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.BatchDeleteConversationsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.BatchDeleteConversationsRequest build() { + com.google.cloud.ces.v1.BatchDeleteConversationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.BatchDeleteConversationsRequest buildPartial() { + com.google.cloud.ces.v1.BatchDeleteConversationsRequest result = + new com.google.cloud.ces.v1.BatchDeleteConversationsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.BatchDeleteConversationsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + conversations_.makeImmutable(); + result.conversations_ = conversations_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.BatchDeleteConversationsRequest) { + return mergeFrom((com.google.cloud.ces.v1.BatchDeleteConversationsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.BatchDeleteConversationsRequest other) { + if (other == com.google.cloud.ces.v1.BatchDeleteConversationsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.conversations_.isEmpty()) { + if (conversations_.isEmpty()) { + conversations_ = other.conversations_; + bitField0_ |= 0x00000002; + } else { + ensureConversationsIsMutable(); + conversations_.addAll(other.conversations_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureConversationsIsMutable(); + conversations_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the app to delete conversations from.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}`
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to delete conversations from.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}`
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to delete conversations from.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}`
      +     * 
      + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to delete conversations from.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}`
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to delete conversations from.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}`
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList conversations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureConversationsIsMutable() { + if (!conversations_.isModifiable()) { + conversations_ = new com.google.protobuf.LazyStringArrayList(conversations_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
      +     * Required. The resource names of the conversations to delete.
      +     * 
      + * + * + * repeated string conversations = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the conversations. + */ + public com.google.protobuf.ProtocolStringList getConversationsList() { + conversations_.makeImmutable(); + return conversations_; + } + + /** + * + * + *
      +     * Required. The resource names of the conversations to delete.
      +     * 
      + * + * + * repeated string conversations = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of conversations. + */ + public int getConversationsCount() { + return conversations_.size(); + } + + /** + * + * + *
      +     * Required. The resource names of the conversations to delete.
      +     * 
      + * + * + * repeated string conversations = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The conversations at the given index. + */ + public java.lang.String getConversations(int index) { + return conversations_.get(index); + } + + /** + * + * + *
      +     * Required. The resource names of the conversations to delete.
      +     * 
      + * + * + * repeated string conversations = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the conversations at the given index. + */ + public com.google.protobuf.ByteString getConversationsBytes(int index) { + return conversations_.getByteString(index); + } + + /** + * + * + *
      +     * Required. The resource names of the conversations to delete.
      +     * 
      + * + * + * repeated string conversations = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The conversations to set. + * @return This builder for chaining. + */ + public Builder setConversations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureConversationsIsMutable(); + conversations_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource names of the conversations to delete.
      +     * 
      + * + * + * repeated string conversations = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The conversations to add. + * @return This builder for chaining. + */ + public Builder addConversations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureConversationsIsMutable(); + conversations_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource names of the conversations to delete.
      +     * 
      + * + * + * repeated string conversations = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param values The conversations to add. + * @return This builder for chaining. + */ + public Builder addAllConversations(java.lang.Iterable values) { + ensureConversationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conversations_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource names of the conversations to delete.
      +     * 
      + * + * + * repeated string conversations = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearConversations() { + conversations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource names of the conversations to delete.
      +     * 
      + * + * + * repeated string conversations = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the conversations to add. + * @return This builder for chaining. + */ + public Builder addConversationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureConversationsIsMutable(); + conversations_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.BatchDeleteConversationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.BatchDeleteConversationsRequest) + private static final com.google.cloud.ces.v1.BatchDeleteConversationsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.BatchDeleteConversationsRequest(); + } + + public static com.google.cloud.ces.v1.BatchDeleteConversationsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchDeleteConversationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.BatchDeleteConversationsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BatchDeleteConversationsRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BatchDeleteConversationsRequestOrBuilder.java new file mode 100644 index 000000000000..89f619f433df --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BatchDeleteConversationsRequestOrBuilder.java @@ -0,0 +1,124 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface BatchDeleteConversationsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.BatchDeleteConversationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the app to delete conversations from.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}`
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
      +   * Required. The resource name of the app to delete conversations from.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}`
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Required. The resource names of the conversations to delete.
      +   * 
      + * + * + * repeated string conversations = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the conversations. + */ + java.util.List getConversationsList(); + + /** + * + * + *
      +   * Required. The resource names of the conversations to delete.
      +   * 
      + * + * + * repeated string conversations = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of conversations. + */ + int getConversationsCount(); + + /** + * + * + *
      +   * Required. The resource names of the conversations to delete.
      +   * 
      + * + * + * repeated string conversations = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The conversations at the given index. + */ + java.lang.String getConversations(int index); + + /** + * + * + *
      +   * Required. The resource names of the conversations to delete.
      +   * 
      + * + * + * repeated string conversations = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the conversations at the given index. + */ + com.google.protobuf.ByteString getConversationsBytes(int index); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BatchDeleteConversationsResponse.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BatchDeleteConversationsResponse.java new file mode 100644 index 000000000000..692498ec7f83 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BatchDeleteConversationsResponse.java @@ -0,0 +1,1294 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Response message for
      + * [AgentService.BatchDeleteConversations][google.cloud.ces.v1.AgentService.BatchDeleteConversations].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.BatchDeleteConversationsResponse} + */ +@com.google.protobuf.Generated +public final class BatchDeleteConversationsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.BatchDeleteConversationsResponse) + BatchDeleteConversationsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BatchDeleteConversationsResponse"); + } + + // Use BatchDeleteConversationsResponse.newBuilder() to construct. + private BatchDeleteConversationsResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BatchDeleteConversationsResponse() { + deletedConversations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + failedConversations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + errorMessages_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_BatchDeleteConversationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_BatchDeleteConversationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.BatchDeleteConversationsResponse.class, + com.google.cloud.ces.v1.BatchDeleteConversationsResponse.Builder.class); + } + + public static final int DELETED_CONVERSATIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList deletedConversations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +   * The list of conversations that were successfully deleted.
      +   * 
      + * + * repeated string deleted_conversations = 1; + * + * @return A list containing the deletedConversations. + */ + public com.google.protobuf.ProtocolStringList getDeletedConversationsList() { + return deletedConversations_; + } + + /** + * + * + *
      +   * The list of conversations that were successfully deleted.
      +   * 
      + * + * repeated string deleted_conversations = 1; + * + * @return The count of deletedConversations. + */ + public int getDeletedConversationsCount() { + return deletedConversations_.size(); + } + + /** + * + * + *
      +   * The list of conversations that were successfully deleted.
      +   * 
      + * + * repeated string deleted_conversations = 1; + * + * @param index The index of the element to return. + * @return The deletedConversations at the given index. + */ + public java.lang.String getDeletedConversations(int index) { + return deletedConversations_.get(index); + } + + /** + * + * + *
      +   * The list of conversations that were successfully deleted.
      +   * 
      + * + * repeated string deleted_conversations = 1; + * + * @param index The index of the value to return. + * @return The bytes of the deletedConversations at the given index. + */ + public com.google.protobuf.ByteString getDeletedConversationsBytes(int index) { + return deletedConversations_.getByteString(index); + } + + public static final int FAILED_CONVERSATIONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList failedConversations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +   * The list of conversations that failed to be deleted.
      +   * 
      + * + * repeated string failed_conversations = 2; + * + * @return A list containing the failedConversations. + */ + public com.google.protobuf.ProtocolStringList getFailedConversationsList() { + return failedConversations_; + } + + /** + * + * + *
      +   * The list of conversations that failed to be deleted.
      +   * 
      + * + * repeated string failed_conversations = 2; + * + * @return The count of failedConversations. + */ + public int getFailedConversationsCount() { + return failedConversations_.size(); + } + + /** + * + * + *
      +   * The list of conversations that failed to be deleted.
      +   * 
      + * + * repeated string failed_conversations = 2; + * + * @param index The index of the element to return. + * @return The failedConversations at the given index. + */ + public java.lang.String getFailedConversations(int index) { + return failedConversations_.get(index); + } + + /** + * + * + *
      +   * The list of conversations that failed to be deleted.
      +   * 
      + * + * repeated string failed_conversations = 2; + * + * @param index The index of the value to return. + * @return The bytes of the failedConversations at the given index. + */ + public com.google.protobuf.ByteString getFailedConversationsBytes(int index) { + return failedConversations_.getByteString(index); + } + + public static final int ERROR_MESSAGES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList errorMessages_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +   * Optional. A list of error messages associated with conversations that
      +   * failed to be deleted.
      +   * 
      + * + * repeated string error_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the errorMessages. + */ + public com.google.protobuf.ProtocolStringList getErrorMessagesList() { + return errorMessages_; + } + + /** + * + * + *
      +   * Optional. A list of error messages associated with conversations that
      +   * failed to be deleted.
      +   * 
      + * + * repeated string error_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of errorMessages. + */ + public int getErrorMessagesCount() { + return errorMessages_.size(); + } + + /** + * + * + *
      +   * Optional. A list of error messages associated with conversations that
      +   * failed to be deleted.
      +   * 
      + * + * repeated string error_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The errorMessages at the given index. + */ + public java.lang.String getErrorMessages(int index) { + return errorMessages_.get(index); + } + + /** + * + * + *
      +   * Optional. A list of error messages associated with conversations that
      +   * failed to be deleted.
      +   * 
      + * + * repeated string error_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the errorMessages at the given index. + */ + public com.google.protobuf.ByteString getErrorMessagesBytes(int index) { + return errorMessages_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < deletedConversations_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, deletedConversations_.getRaw(i)); + } + for (int i = 0; i < failedConversations_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, failedConversations_.getRaw(i)); + } + for (int i = 0; i < errorMessages_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, errorMessages_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < deletedConversations_.size(); i++) { + dataSize += computeStringSizeNoTag(deletedConversations_.getRaw(i)); + } + size += dataSize; + size += 1 * getDeletedConversationsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < failedConversations_.size(); i++) { + dataSize += computeStringSizeNoTag(failedConversations_.getRaw(i)); + } + size += dataSize; + size += 1 * getFailedConversationsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < errorMessages_.size(); i++) { + dataSize += computeStringSizeNoTag(errorMessages_.getRaw(i)); + } + size += dataSize; + size += 1 * getErrorMessagesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.BatchDeleteConversationsResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.BatchDeleteConversationsResponse other = + (com.google.cloud.ces.v1.BatchDeleteConversationsResponse) obj; + + if (!getDeletedConversationsList().equals(other.getDeletedConversationsList())) return false; + if (!getFailedConversationsList().equals(other.getFailedConversationsList())) return false; + if (!getErrorMessagesList().equals(other.getErrorMessagesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDeletedConversationsCount() > 0) { + hash = (37 * hash) + DELETED_CONVERSATIONS_FIELD_NUMBER; + hash = (53 * hash) + getDeletedConversationsList().hashCode(); + } + if (getFailedConversationsCount() > 0) { + hash = (37 * hash) + FAILED_CONVERSATIONS_FIELD_NUMBER; + hash = (53 * hash) + getFailedConversationsList().hashCode(); + } + if (getErrorMessagesCount() > 0) { + hash = (37 * hash) + ERROR_MESSAGES_FIELD_NUMBER; + hash = (53 * hash) + getErrorMessagesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.BatchDeleteConversationsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.BatchDeleteConversationsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BatchDeleteConversationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.BatchDeleteConversationsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BatchDeleteConversationsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.BatchDeleteConversationsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BatchDeleteConversationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.BatchDeleteConversationsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BatchDeleteConversationsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.BatchDeleteConversationsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BatchDeleteConversationsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.BatchDeleteConversationsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.BatchDeleteConversationsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Response message for
      +   * [AgentService.BatchDeleteConversations][google.cloud.ces.v1.AgentService.BatchDeleteConversations].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.BatchDeleteConversationsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.BatchDeleteConversationsResponse) + com.google.cloud.ces.v1.BatchDeleteConversationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_BatchDeleteConversationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_BatchDeleteConversationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.BatchDeleteConversationsResponse.class, + com.google.cloud.ces.v1.BatchDeleteConversationsResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.BatchDeleteConversationsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + deletedConversations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + failedConversations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + errorMessages_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_BatchDeleteConversationsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.BatchDeleteConversationsResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1.BatchDeleteConversationsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.BatchDeleteConversationsResponse build() { + com.google.cloud.ces.v1.BatchDeleteConversationsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.BatchDeleteConversationsResponse buildPartial() { + com.google.cloud.ces.v1.BatchDeleteConversationsResponse result = + new com.google.cloud.ces.v1.BatchDeleteConversationsResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.BatchDeleteConversationsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + deletedConversations_.makeImmutable(); + result.deletedConversations_ = deletedConversations_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + failedConversations_.makeImmutable(); + result.failedConversations_ = failedConversations_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + errorMessages_.makeImmutable(); + result.errorMessages_ = errorMessages_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.BatchDeleteConversationsResponse) { + return mergeFrom((com.google.cloud.ces.v1.BatchDeleteConversationsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.BatchDeleteConversationsResponse other) { + if (other == com.google.cloud.ces.v1.BatchDeleteConversationsResponse.getDefaultInstance()) + return this; + if (!other.deletedConversations_.isEmpty()) { + if (deletedConversations_.isEmpty()) { + deletedConversations_ = other.deletedConversations_; + bitField0_ |= 0x00000001; + } else { + ensureDeletedConversationsIsMutable(); + deletedConversations_.addAll(other.deletedConversations_); + } + onChanged(); + } + if (!other.failedConversations_.isEmpty()) { + if (failedConversations_.isEmpty()) { + failedConversations_ = other.failedConversations_; + bitField0_ |= 0x00000002; + } else { + ensureFailedConversationsIsMutable(); + failedConversations_.addAll(other.failedConversations_); + } + onChanged(); + } + if (!other.errorMessages_.isEmpty()) { + if (errorMessages_.isEmpty()) { + errorMessages_ = other.errorMessages_; + bitField0_ |= 0x00000004; + } else { + ensureErrorMessagesIsMutable(); + errorMessages_.addAll(other.errorMessages_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDeletedConversationsIsMutable(); + deletedConversations_.add(s); + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureFailedConversationsIsMutable(); + failedConversations_.add(s); + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureErrorMessagesIsMutable(); + errorMessages_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList deletedConversations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureDeletedConversationsIsMutable() { + if (!deletedConversations_.isModifiable()) { + deletedConversations_ = new com.google.protobuf.LazyStringArrayList(deletedConversations_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
      +     * The list of conversations that were successfully deleted.
      +     * 
      + * + * repeated string deleted_conversations = 1; + * + * @return A list containing the deletedConversations. + */ + public com.google.protobuf.ProtocolStringList getDeletedConversationsList() { + deletedConversations_.makeImmutable(); + return deletedConversations_; + } + + /** + * + * + *
      +     * The list of conversations that were successfully deleted.
      +     * 
      + * + * repeated string deleted_conversations = 1; + * + * @return The count of deletedConversations. + */ + public int getDeletedConversationsCount() { + return deletedConversations_.size(); + } + + /** + * + * + *
      +     * The list of conversations that were successfully deleted.
      +     * 
      + * + * repeated string deleted_conversations = 1; + * + * @param index The index of the element to return. + * @return The deletedConversations at the given index. + */ + public java.lang.String getDeletedConversations(int index) { + return deletedConversations_.get(index); + } + + /** + * + * + *
      +     * The list of conversations that were successfully deleted.
      +     * 
      + * + * repeated string deleted_conversations = 1; + * + * @param index The index of the value to return. + * @return The bytes of the deletedConversations at the given index. + */ + public com.google.protobuf.ByteString getDeletedConversationsBytes(int index) { + return deletedConversations_.getByteString(index); + } + + /** + * + * + *
      +     * The list of conversations that were successfully deleted.
      +     * 
      + * + * repeated string deleted_conversations = 1; + * + * @param index The index to set the value at. + * @param value The deletedConversations to set. + * @return This builder for chaining. + */ + public Builder setDeletedConversations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeletedConversationsIsMutable(); + deletedConversations_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The list of conversations that were successfully deleted.
      +     * 
      + * + * repeated string deleted_conversations = 1; + * + * @param value The deletedConversations to add. + * @return This builder for chaining. + */ + public Builder addDeletedConversations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeletedConversationsIsMutable(); + deletedConversations_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The list of conversations that were successfully deleted.
      +     * 
      + * + * repeated string deleted_conversations = 1; + * + * @param values The deletedConversations to add. + * @return This builder for chaining. + */ + public Builder addAllDeletedConversations(java.lang.Iterable values) { + ensureDeletedConversationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deletedConversations_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The list of conversations that were successfully deleted.
      +     * 
      + * + * repeated string deleted_conversations = 1; + * + * @return This builder for chaining. + */ + public Builder clearDeletedConversations() { + deletedConversations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The list of conversations that were successfully deleted.
      +     * 
      + * + * repeated string deleted_conversations = 1; + * + * @param value The bytes of the deletedConversations to add. + * @return This builder for chaining. + */ + public Builder addDeletedConversationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDeletedConversationsIsMutable(); + deletedConversations_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList failedConversations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureFailedConversationsIsMutable() { + if (!failedConversations_.isModifiable()) { + failedConversations_ = new com.google.protobuf.LazyStringArrayList(failedConversations_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
      +     * The list of conversations that failed to be deleted.
      +     * 
      + * + * repeated string failed_conversations = 2; + * + * @return A list containing the failedConversations. + */ + public com.google.protobuf.ProtocolStringList getFailedConversationsList() { + failedConversations_.makeImmutable(); + return failedConversations_; + } + + /** + * + * + *
      +     * The list of conversations that failed to be deleted.
      +     * 
      + * + * repeated string failed_conversations = 2; + * + * @return The count of failedConversations. + */ + public int getFailedConversationsCount() { + return failedConversations_.size(); + } + + /** + * + * + *
      +     * The list of conversations that failed to be deleted.
      +     * 
      + * + * repeated string failed_conversations = 2; + * + * @param index The index of the element to return. + * @return The failedConversations at the given index. + */ + public java.lang.String getFailedConversations(int index) { + return failedConversations_.get(index); + } + + /** + * + * + *
      +     * The list of conversations that failed to be deleted.
      +     * 
      + * + * repeated string failed_conversations = 2; + * + * @param index The index of the value to return. + * @return The bytes of the failedConversations at the given index. + */ + public com.google.protobuf.ByteString getFailedConversationsBytes(int index) { + return failedConversations_.getByteString(index); + } + + /** + * + * + *
      +     * The list of conversations that failed to be deleted.
      +     * 
      + * + * repeated string failed_conversations = 2; + * + * @param index The index to set the value at. + * @param value The failedConversations to set. + * @return This builder for chaining. + */ + public Builder setFailedConversations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFailedConversationsIsMutable(); + failedConversations_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The list of conversations that failed to be deleted.
      +     * 
      + * + * repeated string failed_conversations = 2; + * + * @param value The failedConversations to add. + * @return This builder for chaining. + */ + public Builder addFailedConversations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFailedConversationsIsMutable(); + failedConversations_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The list of conversations that failed to be deleted.
      +     * 
      + * + * repeated string failed_conversations = 2; + * + * @param values The failedConversations to add. + * @return This builder for chaining. + */ + public Builder addAllFailedConversations(java.lang.Iterable values) { + ensureFailedConversationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, failedConversations_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The list of conversations that failed to be deleted.
      +     * 
      + * + * repeated string failed_conversations = 2; + * + * @return This builder for chaining. + */ + public Builder clearFailedConversations() { + failedConversations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The list of conversations that failed to be deleted.
      +     * 
      + * + * repeated string failed_conversations = 2; + * + * @param value The bytes of the failedConversations to add. + * @return This builder for chaining. + */ + public Builder addFailedConversationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureFailedConversationsIsMutable(); + failedConversations_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList errorMessages_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureErrorMessagesIsMutable() { + if (!errorMessages_.isModifiable()) { + errorMessages_ = new com.google.protobuf.LazyStringArrayList(errorMessages_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
      +     * Optional. A list of error messages associated with conversations that
      +     * failed to be deleted.
      +     * 
      + * + * repeated string error_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the errorMessages. + */ + public com.google.protobuf.ProtocolStringList getErrorMessagesList() { + errorMessages_.makeImmutable(); + return errorMessages_; + } + + /** + * + * + *
      +     * Optional. A list of error messages associated with conversations that
      +     * failed to be deleted.
      +     * 
      + * + * repeated string error_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of errorMessages. + */ + public int getErrorMessagesCount() { + return errorMessages_.size(); + } + + /** + * + * + *
      +     * Optional. A list of error messages associated with conversations that
      +     * failed to be deleted.
      +     * 
      + * + * repeated string error_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The errorMessages at the given index. + */ + public java.lang.String getErrorMessages(int index) { + return errorMessages_.get(index); + } + + /** + * + * + *
      +     * Optional. A list of error messages associated with conversations that
      +     * failed to be deleted.
      +     * 
      + * + * repeated string error_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the errorMessages at the given index. + */ + public com.google.protobuf.ByteString getErrorMessagesBytes(int index) { + return errorMessages_.getByteString(index); + } + + /** + * + * + *
      +     * Optional. A list of error messages associated with conversations that
      +     * failed to be deleted.
      +     * 
      + * + * repeated string error_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The errorMessages to set. + * @return This builder for chaining. + */ + public Builder setErrorMessages(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorMessagesIsMutable(); + errorMessages_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. A list of error messages associated with conversations that
      +     * failed to be deleted.
      +     * 
      + * + * repeated string error_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The errorMessages to add. + * @return This builder for chaining. + */ + public Builder addErrorMessages(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorMessagesIsMutable(); + errorMessages_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. A list of error messages associated with conversations that
      +     * failed to be deleted.
      +     * 
      + * + * repeated string error_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The errorMessages to add. + * @return This builder for chaining. + */ + public Builder addAllErrorMessages(java.lang.Iterable values) { + ensureErrorMessagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errorMessages_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. A list of error messages associated with conversations that
      +     * failed to be deleted.
      +     * 
      + * + * repeated string error_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearErrorMessages() { + errorMessages_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. A list of error messages associated with conversations that
      +     * failed to be deleted.
      +     * 
      + * + * repeated string error_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the errorMessages to add. + * @return This builder for chaining. + */ + public Builder addErrorMessagesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureErrorMessagesIsMutable(); + errorMessages_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.BatchDeleteConversationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.BatchDeleteConversationsResponse) + private static final com.google.cloud.ces.v1.BatchDeleteConversationsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.BatchDeleteConversationsResponse(); + } + + public static com.google.cloud.ces.v1.BatchDeleteConversationsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchDeleteConversationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.BatchDeleteConversationsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BatchDeleteConversationsResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BatchDeleteConversationsResponseOrBuilder.java new file mode 100644 index 000000000000..10d6af195932 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BatchDeleteConversationsResponseOrBuilder.java @@ -0,0 +1,194 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface BatchDeleteConversationsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.BatchDeleteConversationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The list of conversations that were successfully deleted.
      +   * 
      + * + * repeated string deleted_conversations = 1; + * + * @return A list containing the deletedConversations. + */ + java.util.List getDeletedConversationsList(); + + /** + * + * + *
      +   * The list of conversations that were successfully deleted.
      +   * 
      + * + * repeated string deleted_conversations = 1; + * + * @return The count of deletedConversations. + */ + int getDeletedConversationsCount(); + + /** + * + * + *
      +   * The list of conversations that were successfully deleted.
      +   * 
      + * + * repeated string deleted_conversations = 1; + * + * @param index The index of the element to return. + * @return The deletedConversations at the given index. + */ + java.lang.String getDeletedConversations(int index); + + /** + * + * + *
      +   * The list of conversations that were successfully deleted.
      +   * 
      + * + * repeated string deleted_conversations = 1; + * + * @param index The index of the value to return. + * @return The bytes of the deletedConversations at the given index. + */ + com.google.protobuf.ByteString getDeletedConversationsBytes(int index); + + /** + * + * + *
      +   * The list of conversations that failed to be deleted.
      +   * 
      + * + * repeated string failed_conversations = 2; + * + * @return A list containing the failedConversations. + */ + java.util.List getFailedConversationsList(); + + /** + * + * + *
      +   * The list of conversations that failed to be deleted.
      +   * 
      + * + * repeated string failed_conversations = 2; + * + * @return The count of failedConversations. + */ + int getFailedConversationsCount(); + + /** + * + * + *
      +   * The list of conversations that failed to be deleted.
      +   * 
      + * + * repeated string failed_conversations = 2; + * + * @param index The index of the element to return. + * @return The failedConversations at the given index. + */ + java.lang.String getFailedConversations(int index); + + /** + * + * + *
      +   * The list of conversations that failed to be deleted.
      +   * 
      + * + * repeated string failed_conversations = 2; + * + * @param index The index of the value to return. + * @return The bytes of the failedConversations at the given index. + */ + com.google.protobuf.ByteString getFailedConversationsBytes(int index); + + /** + * + * + *
      +   * Optional. A list of error messages associated with conversations that
      +   * failed to be deleted.
      +   * 
      + * + * repeated string error_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the errorMessages. + */ + java.util.List getErrorMessagesList(); + + /** + * + * + *
      +   * Optional. A list of error messages associated with conversations that
      +   * failed to be deleted.
      +   * 
      + * + * repeated string error_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of errorMessages. + */ + int getErrorMessagesCount(); + + /** + * + * + *
      +   * Optional. A list of error messages associated with conversations that
      +   * failed to be deleted.
      +   * 
      + * + * repeated string error_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The errorMessages at the given index. + */ + java.lang.String getErrorMessages(int index); + + /** + * + * + *
      +   * Optional. A list of error messages associated with conversations that
      +   * failed to be deleted.
      +   * 
      + * + * repeated string error_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the errorMessages at the given index. + */ + com.google.protobuf.ByteString getErrorMessagesBytes(int index); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BearerTokenConfig.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BearerTokenConfig.java new file mode 100644 index 000000000000..def154b3faf3 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BearerTokenConfig.java @@ -0,0 +1,602 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/auth.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Configurations for authentication with a bearer token.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.BearerTokenConfig} + */ +@com.google.protobuf.Generated +public final class BearerTokenConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.BearerTokenConfig) + BearerTokenConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BearerTokenConfig"); + } + + // Use BearerTokenConfig.newBuilder() to construct. + private BearerTokenConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BearerTokenConfig() { + token_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_BearerTokenConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_BearerTokenConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.BearerTokenConfig.class, + com.google.cloud.ces.v1.BearerTokenConfig.Builder.class); + } + + public static final int TOKEN_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object token_ = ""; + + /** + * + * + *
      +   * Required. The bearer token.
      +   * Must be in the format `$context.variables.<name_of_variable>`.
      +   * 
      + * + * string token = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The token. + */ + @java.lang.Override + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The bearer token.
      +   * Must be in the format `$context.variables.<name_of_variable>`.
      +   * 
      + * + * string token = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for token. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(token_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, token_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(token_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, token_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.BearerTokenConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.BearerTokenConfig other = + (com.google.cloud.ces.v1.BearerTokenConfig) obj; + + if (!getToken().equals(other.getToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.BearerTokenConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.BearerTokenConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BearerTokenConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.BearerTokenConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BearerTokenConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.BearerTokenConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BearerTokenConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.BearerTokenConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BearerTokenConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.BearerTokenConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BearerTokenConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.BearerTokenConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.BearerTokenConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Configurations for authentication with a bearer token.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.BearerTokenConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.BearerTokenConfig) + com.google.cloud.ces.v1.BearerTokenConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_BearerTokenConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_BearerTokenConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.BearerTokenConfig.class, + com.google.cloud.ces.v1.BearerTokenConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.BearerTokenConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + token_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_BearerTokenConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.BearerTokenConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1.BearerTokenConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.BearerTokenConfig build() { + com.google.cloud.ces.v1.BearerTokenConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.BearerTokenConfig buildPartial() { + com.google.cloud.ces.v1.BearerTokenConfig result = + new com.google.cloud.ces.v1.BearerTokenConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.BearerTokenConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.token_ = token_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.BearerTokenConfig) { + return mergeFrom((com.google.cloud.ces.v1.BearerTokenConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.BearerTokenConfig other) { + if (other == com.google.cloud.ces.v1.BearerTokenConfig.getDefaultInstance()) return this; + if (!other.getToken().isEmpty()) { + token_ = other.token_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + token_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object token_ = ""; + + /** + * + * + *
      +     * Required. The bearer token.
      +     * Must be in the format `$context.variables.<name_of_variable>`.
      +     * 
      + * + * string token = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The token. + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The bearer token.
      +     * Must be in the format `$context.variables.<name_of_variable>`.
      +     * 
      + * + * string token = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for token. + */ + public com.google.protobuf.ByteString getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The bearer token.
      +     * Must be in the format `$context.variables.<name_of_variable>`.
      +     * 
      + * + * string token = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The token to set. + * @return This builder for chaining. + */ + public Builder setToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + token_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The bearer token.
      +     * Must be in the format `$context.variables.<name_of_variable>`.
      +     * 
      + * + * string token = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearToken() { + token_ = getDefaultInstance().getToken(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The bearer token.
      +     * Must be in the format `$context.variables.<name_of_variable>`.
      +     * 
      + * + * string token = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for token to set. + * @return This builder for chaining. + */ + public Builder setTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + token_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.BearerTokenConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.BearerTokenConfig) + private static final com.google.cloud.ces.v1.BearerTokenConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.BearerTokenConfig(); + } + + public static com.google.cloud.ces.v1.BearerTokenConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BearerTokenConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.BearerTokenConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BearerTokenConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BearerTokenConfigOrBuilder.java new file mode 100644 index 000000000000..5f7cece6cac1 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BearerTokenConfigOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/auth.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface BearerTokenConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.BearerTokenConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The bearer token.
      +   * Must be in the format `$context.variables.<name_of_variable>`.
      +   * 
      + * + * string token = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The token. + */ + java.lang.String getToken(); + + /** + * + * + *
      +   * Required. The bearer token.
      +   * Must be in the format `$context.variables.<name_of_variable>`.
      +   * 
      + * + * string token = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for token. + */ + com.google.protobuf.ByteString getTokenBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BidiSessionClientMessage.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BidiSessionClientMessage.java new file mode 100644 index 000000000000..ebf809e2077b --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BidiSessionClientMessage.java @@ -0,0 +1,1149 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * The top-level message sent by the client for the
      + * [SessionService.BidiRunSession][google.cloud.ces.v1.SessionService.BidiRunSession]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.BidiSessionClientMessage} + */ +@com.google.protobuf.Generated +public final class BidiSessionClientMessage extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.BidiSessionClientMessage) + BidiSessionClientMessageOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BidiSessionClientMessage"); + } + + // Use BidiSessionClientMessage.newBuilder() to construct. + private BidiSessionClientMessage(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BidiSessionClientMessage() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_BidiSessionClientMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_BidiSessionClientMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.BidiSessionClientMessage.class, + com.google.cloud.ces.v1.BidiSessionClientMessage.Builder.class); + } + + private int messageTypeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object messageType_; + + public enum MessageTypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CONFIG(1), + REALTIME_INPUT(2), + MESSAGETYPE_NOT_SET(0); + private final int value; + + private MessageTypeCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MessageTypeCase valueOf(int value) { + return forNumber(value); + } + + public static MessageTypeCase forNumber(int value) { + switch (value) { + case 1: + return CONFIG; + case 2: + return REALTIME_INPUT; + case 0: + return MESSAGETYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public MessageTypeCase getMessageTypeCase() { + return MessageTypeCase.forNumber(messageTypeCase_); + } + + public static final int CONFIG_FIELD_NUMBER = 1; + + /** + * + * + *
      +   * Optional. The initial config message for the session.
      +   * 
      + * + * .google.cloud.ces.v1.SessionConfig config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the config field is set. + */ + @java.lang.Override + public boolean hasConfig() { + return messageTypeCase_ == 1; + } + + /** + * + * + *
      +   * Optional. The initial config message for the session.
      +   * 
      + * + * .google.cloud.ces.v1.SessionConfig config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The config. + */ + @java.lang.Override + public com.google.cloud.ces.v1.SessionConfig getConfig() { + if (messageTypeCase_ == 1) { + return (com.google.cloud.ces.v1.SessionConfig) messageType_; + } + return com.google.cloud.ces.v1.SessionConfig.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. The initial config message for the session.
      +   * 
      + * + * .google.cloud.ces.v1.SessionConfig config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.SessionConfigOrBuilder getConfigOrBuilder() { + if (messageTypeCase_ == 1) { + return (com.google.cloud.ces.v1.SessionConfig) messageType_; + } + return com.google.cloud.ces.v1.SessionConfig.getDefaultInstance(); + } + + public static final int REALTIME_INPUT_FIELD_NUMBER = 2; + + /** + * + * + *
      +   * Optional. Realtime input for the session.
      +   * 
      + * + * + * .google.cloud.ces.v1.SessionInput realtime_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the realtimeInput field is set. + */ + @java.lang.Override + public boolean hasRealtimeInput() { + return messageTypeCase_ == 2; + } + + /** + * + * + *
      +   * Optional. Realtime input for the session.
      +   * 
      + * + * + * .google.cloud.ces.v1.SessionInput realtime_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The realtimeInput. + */ + @java.lang.Override + public com.google.cloud.ces.v1.SessionInput getRealtimeInput() { + if (messageTypeCase_ == 2) { + return (com.google.cloud.ces.v1.SessionInput) messageType_; + } + return com.google.cloud.ces.v1.SessionInput.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Realtime input for the session.
      +   * 
      + * + * + * .google.cloud.ces.v1.SessionInput realtime_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.SessionInputOrBuilder getRealtimeInputOrBuilder() { + if (messageTypeCase_ == 2) { + return (com.google.cloud.ces.v1.SessionInput) messageType_; + } + return com.google.cloud.ces.v1.SessionInput.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (messageTypeCase_ == 1) { + output.writeMessage(1, (com.google.cloud.ces.v1.SessionConfig) messageType_); + } + if (messageTypeCase_ == 2) { + output.writeMessage(2, (com.google.cloud.ces.v1.SessionInput) messageType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (messageTypeCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.ces.v1.SessionConfig) messageType_); + } + if (messageTypeCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.ces.v1.SessionInput) messageType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.BidiSessionClientMessage)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.BidiSessionClientMessage other = + (com.google.cloud.ces.v1.BidiSessionClientMessage) obj; + + if (!getMessageTypeCase().equals(other.getMessageTypeCase())) return false; + switch (messageTypeCase_) { + case 1: + if (!getConfig().equals(other.getConfig())) return false; + break; + case 2: + if (!getRealtimeInput().equals(other.getRealtimeInput())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (messageTypeCase_) { + case 1: + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfig().hashCode(); + break; + case 2: + hash = (37 * hash) + REALTIME_INPUT_FIELD_NUMBER; + hash = (53 * hash) + getRealtimeInput().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.BidiSessionClientMessage parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.BidiSessionClientMessage parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BidiSessionClientMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.BidiSessionClientMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BidiSessionClientMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.BidiSessionClientMessage parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BidiSessionClientMessage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.BidiSessionClientMessage parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BidiSessionClientMessage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.BidiSessionClientMessage parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BidiSessionClientMessage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.BidiSessionClientMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.BidiSessionClientMessage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * The top-level message sent by the client for the
      +   * [SessionService.BidiRunSession][google.cloud.ces.v1.SessionService.BidiRunSession]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.BidiSessionClientMessage} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.BidiSessionClientMessage) + com.google.cloud.ces.v1.BidiSessionClientMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_BidiSessionClientMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_BidiSessionClientMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.BidiSessionClientMessage.class, + com.google.cloud.ces.v1.BidiSessionClientMessage.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.BidiSessionClientMessage.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (configBuilder_ != null) { + configBuilder_.clear(); + } + if (realtimeInputBuilder_ != null) { + realtimeInputBuilder_.clear(); + } + messageTypeCase_ = 0; + messageType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_BidiSessionClientMessage_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.BidiSessionClientMessage getDefaultInstanceForType() { + return com.google.cloud.ces.v1.BidiSessionClientMessage.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.BidiSessionClientMessage build() { + com.google.cloud.ces.v1.BidiSessionClientMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.BidiSessionClientMessage buildPartial() { + com.google.cloud.ces.v1.BidiSessionClientMessage result = + new com.google.cloud.ces.v1.BidiSessionClientMessage(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.BidiSessionClientMessage result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.ces.v1.BidiSessionClientMessage result) { + result.messageTypeCase_ = messageTypeCase_; + result.messageType_ = this.messageType_; + if (messageTypeCase_ == 1 && configBuilder_ != null) { + result.messageType_ = configBuilder_.build(); + } + if (messageTypeCase_ == 2 && realtimeInputBuilder_ != null) { + result.messageType_ = realtimeInputBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.BidiSessionClientMessage) { + return mergeFrom((com.google.cloud.ces.v1.BidiSessionClientMessage) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.BidiSessionClientMessage other) { + if (other == com.google.cloud.ces.v1.BidiSessionClientMessage.getDefaultInstance()) + return this; + switch (other.getMessageTypeCase()) { + case CONFIG: + { + mergeConfig(other.getConfig()); + break; + } + case REALTIME_INPUT: + { + mergeRealtimeInput(other.getRealtimeInput()); + break; + } + case MESSAGETYPE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(internalGetConfigFieldBuilder().getBuilder(), extensionRegistry); + messageTypeCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetRealtimeInputFieldBuilder().getBuilder(), extensionRegistry); + messageTypeCase_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int messageTypeCase_ = 0; + private java.lang.Object messageType_; + + public MessageTypeCase getMessageTypeCase() { + return MessageTypeCase.forNumber(messageTypeCase_); + } + + public Builder clearMessageType() { + messageTypeCase_ = 0; + messageType_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.SessionConfig, + com.google.cloud.ces.v1.SessionConfig.Builder, + com.google.cloud.ces.v1.SessionConfigOrBuilder> + configBuilder_; + + /** + * + * + *
      +     * Optional. The initial config message for the session.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionConfig config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the config field is set. + */ + @java.lang.Override + public boolean hasConfig() { + return messageTypeCase_ == 1; + } + + /** + * + * + *
      +     * Optional. The initial config message for the session.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionConfig config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The config. + */ + @java.lang.Override + public com.google.cloud.ces.v1.SessionConfig getConfig() { + if (configBuilder_ == null) { + if (messageTypeCase_ == 1) { + return (com.google.cloud.ces.v1.SessionConfig) messageType_; + } + return com.google.cloud.ces.v1.SessionConfig.getDefaultInstance(); + } else { + if (messageTypeCase_ == 1) { + return configBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.SessionConfig.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The initial config message for the session.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionConfig config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConfig(com.google.cloud.ces.v1.SessionConfig value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + messageType_ = value; + onChanged(); + } else { + configBuilder_.setMessage(value); + } + messageTypeCase_ = 1; + return this; + } + + /** + * + * + *
      +     * Optional. The initial config message for the session.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionConfig config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConfig(com.google.cloud.ces.v1.SessionConfig.Builder builderForValue) { + if (configBuilder_ == null) { + messageType_ = builderForValue.build(); + onChanged(); + } else { + configBuilder_.setMessage(builderForValue.build()); + } + messageTypeCase_ = 1; + return this; + } + + /** + * + * + *
      +     * Optional. The initial config message for the session.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionConfig config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeConfig(com.google.cloud.ces.v1.SessionConfig value) { + if (configBuilder_ == null) { + if (messageTypeCase_ == 1 + && messageType_ != com.google.cloud.ces.v1.SessionConfig.getDefaultInstance()) { + messageType_ = + com.google.cloud.ces.v1.SessionConfig.newBuilder( + (com.google.cloud.ces.v1.SessionConfig) messageType_) + .mergeFrom(value) + .buildPartial(); + } else { + messageType_ = value; + } + onChanged(); + } else { + if (messageTypeCase_ == 1) { + configBuilder_.mergeFrom(value); + } else { + configBuilder_.setMessage(value); + } + } + messageTypeCase_ = 1; + return this; + } + + /** + * + * + *
      +     * Optional. The initial config message for the session.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionConfig config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearConfig() { + if (configBuilder_ == null) { + if (messageTypeCase_ == 1) { + messageTypeCase_ = 0; + messageType_ = null; + onChanged(); + } + } else { + if (messageTypeCase_ == 1) { + messageTypeCase_ = 0; + messageType_ = null; + } + configBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The initial config message for the session.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionConfig config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.SessionConfig.Builder getConfigBuilder() { + return internalGetConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The initial config message for the session.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionConfig config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.SessionConfigOrBuilder getConfigOrBuilder() { + if ((messageTypeCase_ == 1) && (configBuilder_ != null)) { + return configBuilder_.getMessageOrBuilder(); + } else { + if (messageTypeCase_ == 1) { + return (com.google.cloud.ces.v1.SessionConfig) messageType_; + } + return com.google.cloud.ces.v1.SessionConfig.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The initial config message for the session.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionConfig config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.SessionConfig, + com.google.cloud.ces.v1.SessionConfig.Builder, + com.google.cloud.ces.v1.SessionConfigOrBuilder> + internalGetConfigFieldBuilder() { + if (configBuilder_ == null) { + if (!(messageTypeCase_ == 1)) { + messageType_ = com.google.cloud.ces.v1.SessionConfig.getDefaultInstance(); + } + configBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.SessionConfig, + com.google.cloud.ces.v1.SessionConfig.Builder, + com.google.cloud.ces.v1.SessionConfigOrBuilder>( + (com.google.cloud.ces.v1.SessionConfig) messageType_, + getParentForChildren(), + isClean()); + messageType_ = null; + } + messageTypeCase_ = 1; + onChanged(); + return configBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.SessionInput, + com.google.cloud.ces.v1.SessionInput.Builder, + com.google.cloud.ces.v1.SessionInputOrBuilder> + realtimeInputBuilder_; + + /** + * + * + *
      +     * Optional. Realtime input for the session.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionInput realtime_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the realtimeInput field is set. + */ + @java.lang.Override + public boolean hasRealtimeInput() { + return messageTypeCase_ == 2; + } + + /** + * + * + *
      +     * Optional. Realtime input for the session.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionInput realtime_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The realtimeInput. + */ + @java.lang.Override + public com.google.cloud.ces.v1.SessionInput getRealtimeInput() { + if (realtimeInputBuilder_ == null) { + if (messageTypeCase_ == 2) { + return (com.google.cloud.ces.v1.SessionInput) messageType_; + } + return com.google.cloud.ces.v1.SessionInput.getDefaultInstance(); + } else { + if (messageTypeCase_ == 2) { + return realtimeInputBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.SessionInput.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Realtime input for the session.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionInput realtime_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRealtimeInput(com.google.cloud.ces.v1.SessionInput value) { + if (realtimeInputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + messageType_ = value; + onChanged(); + } else { + realtimeInputBuilder_.setMessage(value); + } + messageTypeCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Optional. Realtime input for the session.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionInput realtime_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRealtimeInput(com.google.cloud.ces.v1.SessionInput.Builder builderForValue) { + if (realtimeInputBuilder_ == null) { + messageType_ = builderForValue.build(); + onChanged(); + } else { + realtimeInputBuilder_.setMessage(builderForValue.build()); + } + messageTypeCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Optional. Realtime input for the session.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionInput realtime_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRealtimeInput(com.google.cloud.ces.v1.SessionInput value) { + if (realtimeInputBuilder_ == null) { + if (messageTypeCase_ == 2 + && messageType_ != com.google.cloud.ces.v1.SessionInput.getDefaultInstance()) { + messageType_ = + com.google.cloud.ces.v1.SessionInput.newBuilder( + (com.google.cloud.ces.v1.SessionInput) messageType_) + .mergeFrom(value) + .buildPartial(); + } else { + messageType_ = value; + } + onChanged(); + } else { + if (messageTypeCase_ == 2) { + realtimeInputBuilder_.mergeFrom(value); + } else { + realtimeInputBuilder_.setMessage(value); + } + } + messageTypeCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Optional. Realtime input for the session.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionInput realtime_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRealtimeInput() { + if (realtimeInputBuilder_ == null) { + if (messageTypeCase_ == 2) { + messageTypeCase_ = 0; + messageType_ = null; + onChanged(); + } + } else { + if (messageTypeCase_ == 2) { + messageTypeCase_ = 0; + messageType_ = null; + } + realtimeInputBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Realtime input for the session.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionInput realtime_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.SessionInput.Builder getRealtimeInputBuilder() { + return internalGetRealtimeInputFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Realtime input for the session.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionInput realtime_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.SessionInputOrBuilder getRealtimeInputOrBuilder() { + if ((messageTypeCase_ == 2) && (realtimeInputBuilder_ != null)) { + return realtimeInputBuilder_.getMessageOrBuilder(); + } else { + if (messageTypeCase_ == 2) { + return (com.google.cloud.ces.v1.SessionInput) messageType_; + } + return com.google.cloud.ces.v1.SessionInput.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Realtime input for the session.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionInput realtime_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.SessionInput, + com.google.cloud.ces.v1.SessionInput.Builder, + com.google.cloud.ces.v1.SessionInputOrBuilder> + internalGetRealtimeInputFieldBuilder() { + if (realtimeInputBuilder_ == null) { + if (!(messageTypeCase_ == 2)) { + messageType_ = com.google.cloud.ces.v1.SessionInput.getDefaultInstance(); + } + realtimeInputBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.SessionInput, + com.google.cloud.ces.v1.SessionInput.Builder, + com.google.cloud.ces.v1.SessionInputOrBuilder>( + (com.google.cloud.ces.v1.SessionInput) messageType_, + getParentForChildren(), + isClean()); + messageType_ = null; + } + messageTypeCase_ = 2; + onChanged(); + return realtimeInputBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.BidiSessionClientMessage) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.BidiSessionClientMessage) + private static final com.google.cloud.ces.v1.BidiSessionClientMessage DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.BidiSessionClientMessage(); + } + + public static com.google.cloud.ces.v1.BidiSessionClientMessage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BidiSessionClientMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.BidiSessionClientMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BidiSessionClientMessageOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BidiSessionClientMessageOrBuilder.java new file mode 100644 index 000000000000..b15e7803e6d3 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BidiSessionClientMessageOrBuilder.java @@ -0,0 +1,113 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface BidiSessionClientMessageOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.BidiSessionClientMessage) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. The initial config message for the session.
      +   * 
      + * + * .google.cloud.ces.v1.SessionConfig config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the config field is set. + */ + boolean hasConfig(); + + /** + * + * + *
      +   * Optional. The initial config message for the session.
      +   * 
      + * + * .google.cloud.ces.v1.SessionConfig config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The config. + */ + com.google.cloud.ces.v1.SessionConfig getConfig(); + + /** + * + * + *
      +   * Optional. The initial config message for the session.
      +   * 
      + * + * .google.cloud.ces.v1.SessionConfig config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.SessionConfigOrBuilder getConfigOrBuilder(); + + /** + * + * + *
      +   * Optional. Realtime input for the session.
      +   * 
      + * + * + * .google.cloud.ces.v1.SessionInput realtime_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the realtimeInput field is set. + */ + boolean hasRealtimeInput(); + + /** + * + * + *
      +   * Optional. Realtime input for the session.
      +   * 
      + * + * + * .google.cloud.ces.v1.SessionInput realtime_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The realtimeInput. + */ + com.google.cloud.ces.v1.SessionInput getRealtimeInput(); + + /** + * + * + *
      +   * Optional. Realtime input for the session.
      +   * 
      + * + * + * .google.cloud.ces.v1.SessionInput realtime_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.SessionInputOrBuilder getRealtimeInputOrBuilder(); + + com.google.cloud.ces.v1.BidiSessionClientMessage.MessageTypeCase getMessageTypeCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BidiSessionServerMessage.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BidiSessionServerMessage.java new file mode 100644 index 000000000000..32242b252003 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BidiSessionServerMessage.java @@ -0,0 +1,2142 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * The top-level message returned from
      + * [SessionService.BidiRunSession][google.cloud.ces.v1.SessionService.BidiRunSession]
      + * method.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.BidiSessionServerMessage} + */ +@com.google.protobuf.Generated +public final class BidiSessionServerMessage extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.BidiSessionServerMessage) + BidiSessionServerMessageOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BidiSessionServerMessage"); + } + + // Use BidiSessionServerMessage.newBuilder() to construct. + private BidiSessionServerMessage(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BidiSessionServerMessage() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_BidiSessionServerMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_BidiSessionServerMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.BidiSessionServerMessage.class, + com.google.cloud.ces.v1.BidiSessionServerMessage.Builder.class); + } + + private int messageTypeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object messageType_; + + public enum MessageTypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SESSION_OUTPUT(1), + RECOGNITION_RESULT(2), + INTERRUPTION_SIGNAL(3), + END_SESSION(5), + GO_AWAY(6), + MESSAGETYPE_NOT_SET(0); + private final int value; + + private MessageTypeCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MessageTypeCase valueOf(int value) { + return forNumber(value); + } + + public static MessageTypeCase forNumber(int value) { + switch (value) { + case 1: + return SESSION_OUTPUT; + case 2: + return RECOGNITION_RESULT; + case 3: + return INTERRUPTION_SIGNAL; + case 5: + return END_SESSION; + case 6: + return GO_AWAY; + case 0: + return MESSAGETYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public MessageTypeCase getMessageTypeCase() { + return MessageTypeCase.forNumber(messageTypeCase_); + } + + public static final int SESSION_OUTPUT_FIELD_NUMBER = 1; + + /** + * + * + *
      +   * Optional. Processing result from the CES agent.
      +   * 
      + * + * + * .google.cloud.ces.v1.SessionOutput session_output = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sessionOutput field is set. + */ + @java.lang.Override + public boolean hasSessionOutput() { + return messageTypeCase_ == 1; + } + + /** + * + * + *
      +   * Optional. Processing result from the CES agent.
      +   * 
      + * + * + * .google.cloud.ces.v1.SessionOutput session_output = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sessionOutput. + */ + @java.lang.Override + public com.google.cloud.ces.v1.SessionOutput getSessionOutput() { + if (messageTypeCase_ == 1) { + return (com.google.cloud.ces.v1.SessionOutput) messageType_; + } + return com.google.cloud.ces.v1.SessionOutput.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Processing result from the CES agent.
      +   * 
      + * + * + * .google.cloud.ces.v1.SessionOutput session_output = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.SessionOutputOrBuilder getSessionOutputOrBuilder() { + if (messageTypeCase_ == 1) { + return (com.google.cloud.ces.v1.SessionOutput) messageType_; + } + return com.google.cloud.ces.v1.SessionOutput.getDefaultInstance(); + } + + public static final int RECOGNITION_RESULT_FIELD_NUMBER = 2; + + /** + * + * + *
      +   * Optional. Realtime speech recognition result for the audio input.
      +   * 
      + * + * + * .google.cloud.ces.v1.RecognitionResult recognition_result = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the recognitionResult field is set. + */ + @java.lang.Override + public boolean hasRecognitionResult() { + return messageTypeCase_ == 2; + } + + /** + * + * + *
      +   * Optional. Realtime speech recognition result for the audio input.
      +   * 
      + * + * + * .google.cloud.ces.v1.RecognitionResult recognition_result = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The recognitionResult. + */ + @java.lang.Override + public com.google.cloud.ces.v1.RecognitionResult getRecognitionResult() { + if (messageTypeCase_ == 2) { + return (com.google.cloud.ces.v1.RecognitionResult) messageType_; + } + return com.google.cloud.ces.v1.RecognitionResult.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Realtime speech recognition result for the audio input.
      +   * 
      + * + * + * .google.cloud.ces.v1.RecognitionResult recognition_result = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.RecognitionResultOrBuilder getRecognitionResultOrBuilder() { + if (messageTypeCase_ == 2) { + return (com.google.cloud.ces.v1.RecognitionResult) messageType_; + } + return com.google.cloud.ces.v1.RecognitionResult.getDefaultInstance(); + } + + public static final int INTERRUPTION_SIGNAL_FIELD_NUMBER = 3; + + /** + * + * + *
      +   * Optional. Interruption signal detected from the audio input.
      +   * 
      + * + * + * .google.cloud.ces.v1.InterruptionSignal interruption_signal = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the interruptionSignal field is set. + */ + @java.lang.Override + public boolean hasInterruptionSignal() { + return messageTypeCase_ == 3; + } + + /** + * + * + *
      +   * Optional. Interruption signal detected from the audio input.
      +   * 
      + * + * + * .google.cloud.ces.v1.InterruptionSignal interruption_signal = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The interruptionSignal. + */ + @java.lang.Override + public com.google.cloud.ces.v1.InterruptionSignal getInterruptionSignal() { + if (messageTypeCase_ == 3) { + return (com.google.cloud.ces.v1.InterruptionSignal) messageType_; + } + return com.google.cloud.ces.v1.InterruptionSignal.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Interruption signal detected from the audio input.
      +   * 
      + * + * + * .google.cloud.ces.v1.InterruptionSignal interruption_signal = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.InterruptionSignalOrBuilder getInterruptionSignalOrBuilder() { + if (messageTypeCase_ == 3) { + return (com.google.cloud.ces.v1.InterruptionSignal) messageType_; + } + return com.google.cloud.ces.v1.InterruptionSignal.getDefaultInstance(); + } + + public static final int END_SESSION_FIELD_NUMBER = 5; + + /** + * + * + *
      +   * Optional. Indicates that the session has ended.
      +   * 
      + * + * + * .google.cloud.ces.v1.EndSession end_session = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endSession field is set. + */ + @java.lang.Override + public boolean hasEndSession() { + return messageTypeCase_ == 5; + } + + /** + * + * + *
      +   * Optional. Indicates that the session has ended.
      +   * 
      + * + * + * .google.cloud.ces.v1.EndSession end_session = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endSession. + */ + @java.lang.Override + public com.google.cloud.ces.v1.EndSession getEndSession() { + if (messageTypeCase_ == 5) { + return (com.google.cloud.ces.v1.EndSession) messageType_; + } + return com.google.cloud.ces.v1.EndSession.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Indicates that the session has ended.
      +   * 
      + * + * + * .google.cloud.ces.v1.EndSession end_session = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.EndSessionOrBuilder getEndSessionOrBuilder() { + if (messageTypeCase_ == 5) { + return (com.google.cloud.ces.v1.EndSession) messageType_; + } + return com.google.cloud.ces.v1.EndSession.getDefaultInstance(); + } + + public static final int GO_AWAY_FIELD_NUMBER = 6; + + /** + * + * + *
      +   * Optional. Indicates that the server will disconnect soon and the client
      +   * should half-close and restart the connection.
      +   * 
      + * + * .google.cloud.ces.v1.GoAway go_away = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the goAway field is set. + */ + @java.lang.Override + public boolean hasGoAway() { + return messageTypeCase_ == 6; + } + + /** + * + * + *
      +   * Optional. Indicates that the server will disconnect soon and the client
      +   * should half-close and restart the connection.
      +   * 
      + * + * .google.cloud.ces.v1.GoAway go_away = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The goAway. + */ + @java.lang.Override + public com.google.cloud.ces.v1.GoAway getGoAway() { + if (messageTypeCase_ == 6) { + return (com.google.cloud.ces.v1.GoAway) messageType_; + } + return com.google.cloud.ces.v1.GoAway.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Indicates that the server will disconnect soon and the client
      +   * should half-close and restart the connection.
      +   * 
      + * + * .google.cloud.ces.v1.GoAway go_away = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.ces.v1.GoAwayOrBuilder getGoAwayOrBuilder() { + if (messageTypeCase_ == 6) { + return (com.google.cloud.ces.v1.GoAway) messageType_; + } + return com.google.cloud.ces.v1.GoAway.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (messageTypeCase_ == 1) { + output.writeMessage(1, (com.google.cloud.ces.v1.SessionOutput) messageType_); + } + if (messageTypeCase_ == 2) { + output.writeMessage(2, (com.google.cloud.ces.v1.RecognitionResult) messageType_); + } + if (messageTypeCase_ == 3) { + output.writeMessage(3, (com.google.cloud.ces.v1.InterruptionSignal) messageType_); + } + if (messageTypeCase_ == 5) { + output.writeMessage(5, (com.google.cloud.ces.v1.EndSession) messageType_); + } + if (messageTypeCase_ == 6) { + output.writeMessage(6, (com.google.cloud.ces.v1.GoAway) messageType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (messageTypeCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.ces.v1.SessionOutput) messageType_); + } + if (messageTypeCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.ces.v1.RecognitionResult) messageType_); + } + if (messageTypeCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.ces.v1.InterruptionSignal) messageType_); + } + if (messageTypeCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.ces.v1.EndSession) messageType_); + } + if (messageTypeCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.ces.v1.GoAway) messageType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.BidiSessionServerMessage)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.BidiSessionServerMessage other = + (com.google.cloud.ces.v1.BidiSessionServerMessage) obj; + + if (!getMessageTypeCase().equals(other.getMessageTypeCase())) return false; + switch (messageTypeCase_) { + case 1: + if (!getSessionOutput().equals(other.getSessionOutput())) return false; + break; + case 2: + if (!getRecognitionResult().equals(other.getRecognitionResult())) return false; + break; + case 3: + if (!getInterruptionSignal().equals(other.getInterruptionSignal())) return false; + break; + case 5: + if (!getEndSession().equals(other.getEndSession())) return false; + break; + case 6: + if (!getGoAway().equals(other.getGoAway())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (messageTypeCase_) { + case 1: + hash = (37 * hash) + SESSION_OUTPUT_FIELD_NUMBER; + hash = (53 * hash) + getSessionOutput().hashCode(); + break; + case 2: + hash = (37 * hash) + RECOGNITION_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getRecognitionResult().hashCode(); + break; + case 3: + hash = (37 * hash) + INTERRUPTION_SIGNAL_FIELD_NUMBER; + hash = (53 * hash) + getInterruptionSignal().hashCode(); + break; + case 5: + hash = (37 * hash) + END_SESSION_FIELD_NUMBER; + hash = (53 * hash) + getEndSession().hashCode(); + break; + case 6: + hash = (37 * hash) + GO_AWAY_FIELD_NUMBER; + hash = (53 * hash) + getGoAway().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.BidiSessionServerMessage parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.BidiSessionServerMessage parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BidiSessionServerMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.BidiSessionServerMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BidiSessionServerMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.BidiSessionServerMessage parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BidiSessionServerMessage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.BidiSessionServerMessage parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BidiSessionServerMessage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.BidiSessionServerMessage parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BidiSessionServerMessage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.BidiSessionServerMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.BidiSessionServerMessage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * The top-level message returned from
      +   * [SessionService.BidiRunSession][google.cloud.ces.v1.SessionService.BidiRunSession]
      +   * method.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.BidiSessionServerMessage} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.BidiSessionServerMessage) + com.google.cloud.ces.v1.BidiSessionServerMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_BidiSessionServerMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_BidiSessionServerMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.BidiSessionServerMessage.class, + com.google.cloud.ces.v1.BidiSessionServerMessage.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.BidiSessionServerMessage.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (sessionOutputBuilder_ != null) { + sessionOutputBuilder_.clear(); + } + if (recognitionResultBuilder_ != null) { + recognitionResultBuilder_.clear(); + } + if (interruptionSignalBuilder_ != null) { + interruptionSignalBuilder_.clear(); + } + if (endSessionBuilder_ != null) { + endSessionBuilder_.clear(); + } + if (goAwayBuilder_ != null) { + goAwayBuilder_.clear(); + } + messageTypeCase_ = 0; + messageType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_BidiSessionServerMessage_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.BidiSessionServerMessage getDefaultInstanceForType() { + return com.google.cloud.ces.v1.BidiSessionServerMessage.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.BidiSessionServerMessage build() { + com.google.cloud.ces.v1.BidiSessionServerMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.BidiSessionServerMessage buildPartial() { + com.google.cloud.ces.v1.BidiSessionServerMessage result = + new com.google.cloud.ces.v1.BidiSessionServerMessage(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.BidiSessionServerMessage result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.ces.v1.BidiSessionServerMessage result) { + result.messageTypeCase_ = messageTypeCase_; + result.messageType_ = this.messageType_; + if (messageTypeCase_ == 1 && sessionOutputBuilder_ != null) { + result.messageType_ = sessionOutputBuilder_.build(); + } + if (messageTypeCase_ == 2 && recognitionResultBuilder_ != null) { + result.messageType_ = recognitionResultBuilder_.build(); + } + if (messageTypeCase_ == 3 && interruptionSignalBuilder_ != null) { + result.messageType_ = interruptionSignalBuilder_.build(); + } + if (messageTypeCase_ == 5 && endSessionBuilder_ != null) { + result.messageType_ = endSessionBuilder_.build(); + } + if (messageTypeCase_ == 6 && goAwayBuilder_ != null) { + result.messageType_ = goAwayBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.BidiSessionServerMessage) { + return mergeFrom((com.google.cloud.ces.v1.BidiSessionServerMessage) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.BidiSessionServerMessage other) { + if (other == com.google.cloud.ces.v1.BidiSessionServerMessage.getDefaultInstance()) + return this; + switch (other.getMessageTypeCase()) { + case SESSION_OUTPUT: + { + mergeSessionOutput(other.getSessionOutput()); + break; + } + case RECOGNITION_RESULT: + { + mergeRecognitionResult(other.getRecognitionResult()); + break; + } + case INTERRUPTION_SIGNAL: + { + mergeInterruptionSignal(other.getInterruptionSignal()); + break; + } + case END_SESSION: + { + mergeEndSession(other.getEndSession()); + break; + } + case GO_AWAY: + { + mergeGoAway(other.getGoAway()); + break; + } + case MESSAGETYPE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetSessionOutputFieldBuilder().getBuilder(), extensionRegistry); + messageTypeCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetRecognitionResultFieldBuilder().getBuilder(), extensionRegistry); + messageTypeCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetInterruptionSignalFieldBuilder().getBuilder(), extensionRegistry); + messageTypeCase_ = 3; + break; + } // case 26 + case 42: + { + input.readMessage( + internalGetEndSessionFieldBuilder().getBuilder(), extensionRegistry); + messageTypeCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(internalGetGoAwayFieldBuilder().getBuilder(), extensionRegistry); + messageTypeCase_ = 6; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int messageTypeCase_ = 0; + private java.lang.Object messageType_; + + public MessageTypeCase getMessageTypeCase() { + return MessageTypeCase.forNumber(messageTypeCase_); + } + + public Builder clearMessageType() { + messageTypeCase_ = 0; + messageType_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.SessionOutput, + com.google.cloud.ces.v1.SessionOutput.Builder, + com.google.cloud.ces.v1.SessionOutputOrBuilder> + sessionOutputBuilder_; + + /** + * + * + *
      +     * Optional. Processing result from the CES agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionOutput session_output = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sessionOutput field is set. + */ + @java.lang.Override + public boolean hasSessionOutput() { + return messageTypeCase_ == 1; + } + + /** + * + * + *
      +     * Optional. Processing result from the CES agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionOutput session_output = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sessionOutput. + */ + @java.lang.Override + public com.google.cloud.ces.v1.SessionOutput getSessionOutput() { + if (sessionOutputBuilder_ == null) { + if (messageTypeCase_ == 1) { + return (com.google.cloud.ces.v1.SessionOutput) messageType_; + } + return com.google.cloud.ces.v1.SessionOutput.getDefaultInstance(); + } else { + if (messageTypeCase_ == 1) { + return sessionOutputBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.SessionOutput.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Processing result from the CES agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionOutput session_output = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSessionOutput(com.google.cloud.ces.v1.SessionOutput value) { + if (sessionOutputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + messageType_ = value; + onChanged(); + } else { + sessionOutputBuilder_.setMessage(value); + } + messageTypeCase_ = 1; + return this; + } + + /** + * + * + *
      +     * Optional. Processing result from the CES agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionOutput session_output = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSessionOutput(com.google.cloud.ces.v1.SessionOutput.Builder builderForValue) { + if (sessionOutputBuilder_ == null) { + messageType_ = builderForValue.build(); + onChanged(); + } else { + sessionOutputBuilder_.setMessage(builderForValue.build()); + } + messageTypeCase_ = 1; + return this; + } + + /** + * + * + *
      +     * Optional. Processing result from the CES agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionOutput session_output = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSessionOutput(com.google.cloud.ces.v1.SessionOutput value) { + if (sessionOutputBuilder_ == null) { + if (messageTypeCase_ == 1 + && messageType_ != com.google.cloud.ces.v1.SessionOutput.getDefaultInstance()) { + messageType_ = + com.google.cloud.ces.v1.SessionOutput.newBuilder( + (com.google.cloud.ces.v1.SessionOutput) messageType_) + .mergeFrom(value) + .buildPartial(); + } else { + messageType_ = value; + } + onChanged(); + } else { + if (messageTypeCase_ == 1) { + sessionOutputBuilder_.mergeFrom(value); + } else { + sessionOutputBuilder_.setMessage(value); + } + } + messageTypeCase_ = 1; + return this; + } + + /** + * + * + *
      +     * Optional. Processing result from the CES agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionOutput session_output = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSessionOutput() { + if (sessionOutputBuilder_ == null) { + if (messageTypeCase_ == 1) { + messageTypeCase_ = 0; + messageType_ = null; + onChanged(); + } + } else { + if (messageTypeCase_ == 1) { + messageTypeCase_ = 0; + messageType_ = null; + } + sessionOutputBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Processing result from the CES agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionOutput session_output = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.SessionOutput.Builder getSessionOutputBuilder() { + return internalGetSessionOutputFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Processing result from the CES agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionOutput session_output = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.SessionOutputOrBuilder getSessionOutputOrBuilder() { + if ((messageTypeCase_ == 1) && (sessionOutputBuilder_ != null)) { + return sessionOutputBuilder_.getMessageOrBuilder(); + } else { + if (messageTypeCase_ == 1) { + return (com.google.cloud.ces.v1.SessionOutput) messageType_; + } + return com.google.cloud.ces.v1.SessionOutput.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Processing result from the CES agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionOutput session_output = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.SessionOutput, + com.google.cloud.ces.v1.SessionOutput.Builder, + com.google.cloud.ces.v1.SessionOutputOrBuilder> + internalGetSessionOutputFieldBuilder() { + if (sessionOutputBuilder_ == null) { + if (!(messageTypeCase_ == 1)) { + messageType_ = com.google.cloud.ces.v1.SessionOutput.getDefaultInstance(); + } + sessionOutputBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.SessionOutput, + com.google.cloud.ces.v1.SessionOutput.Builder, + com.google.cloud.ces.v1.SessionOutputOrBuilder>( + (com.google.cloud.ces.v1.SessionOutput) messageType_, + getParentForChildren(), + isClean()); + messageType_ = null; + } + messageTypeCase_ = 1; + onChanged(); + return sessionOutputBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.RecognitionResult, + com.google.cloud.ces.v1.RecognitionResult.Builder, + com.google.cloud.ces.v1.RecognitionResultOrBuilder> + recognitionResultBuilder_; + + /** + * + * + *
      +     * Optional. Realtime speech recognition result for the audio input.
      +     * 
      + * + * + * .google.cloud.ces.v1.RecognitionResult recognition_result = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the recognitionResult field is set. + */ + @java.lang.Override + public boolean hasRecognitionResult() { + return messageTypeCase_ == 2; + } + + /** + * + * + *
      +     * Optional. Realtime speech recognition result for the audio input.
      +     * 
      + * + * + * .google.cloud.ces.v1.RecognitionResult recognition_result = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The recognitionResult. + */ + @java.lang.Override + public com.google.cloud.ces.v1.RecognitionResult getRecognitionResult() { + if (recognitionResultBuilder_ == null) { + if (messageTypeCase_ == 2) { + return (com.google.cloud.ces.v1.RecognitionResult) messageType_; + } + return com.google.cloud.ces.v1.RecognitionResult.getDefaultInstance(); + } else { + if (messageTypeCase_ == 2) { + return recognitionResultBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.RecognitionResult.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Realtime speech recognition result for the audio input.
      +     * 
      + * + * + * .google.cloud.ces.v1.RecognitionResult recognition_result = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRecognitionResult(com.google.cloud.ces.v1.RecognitionResult value) { + if (recognitionResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + messageType_ = value; + onChanged(); + } else { + recognitionResultBuilder_.setMessage(value); + } + messageTypeCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Optional. Realtime speech recognition result for the audio input.
      +     * 
      + * + * + * .google.cloud.ces.v1.RecognitionResult recognition_result = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRecognitionResult( + com.google.cloud.ces.v1.RecognitionResult.Builder builderForValue) { + if (recognitionResultBuilder_ == null) { + messageType_ = builderForValue.build(); + onChanged(); + } else { + recognitionResultBuilder_.setMessage(builderForValue.build()); + } + messageTypeCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Optional. Realtime speech recognition result for the audio input.
      +     * 
      + * + * + * .google.cloud.ces.v1.RecognitionResult recognition_result = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRecognitionResult(com.google.cloud.ces.v1.RecognitionResult value) { + if (recognitionResultBuilder_ == null) { + if (messageTypeCase_ == 2 + && messageType_ != com.google.cloud.ces.v1.RecognitionResult.getDefaultInstance()) { + messageType_ = + com.google.cloud.ces.v1.RecognitionResult.newBuilder( + (com.google.cloud.ces.v1.RecognitionResult) messageType_) + .mergeFrom(value) + .buildPartial(); + } else { + messageType_ = value; + } + onChanged(); + } else { + if (messageTypeCase_ == 2) { + recognitionResultBuilder_.mergeFrom(value); + } else { + recognitionResultBuilder_.setMessage(value); + } + } + messageTypeCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Optional. Realtime speech recognition result for the audio input.
      +     * 
      + * + * + * .google.cloud.ces.v1.RecognitionResult recognition_result = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRecognitionResult() { + if (recognitionResultBuilder_ == null) { + if (messageTypeCase_ == 2) { + messageTypeCase_ = 0; + messageType_ = null; + onChanged(); + } + } else { + if (messageTypeCase_ == 2) { + messageTypeCase_ = 0; + messageType_ = null; + } + recognitionResultBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Realtime speech recognition result for the audio input.
      +     * 
      + * + * + * .google.cloud.ces.v1.RecognitionResult recognition_result = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.RecognitionResult.Builder getRecognitionResultBuilder() { + return internalGetRecognitionResultFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Realtime speech recognition result for the audio input.
      +     * 
      + * + * + * .google.cloud.ces.v1.RecognitionResult recognition_result = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.RecognitionResultOrBuilder getRecognitionResultOrBuilder() { + if ((messageTypeCase_ == 2) && (recognitionResultBuilder_ != null)) { + return recognitionResultBuilder_.getMessageOrBuilder(); + } else { + if (messageTypeCase_ == 2) { + return (com.google.cloud.ces.v1.RecognitionResult) messageType_; + } + return com.google.cloud.ces.v1.RecognitionResult.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Realtime speech recognition result for the audio input.
      +     * 
      + * + * + * .google.cloud.ces.v1.RecognitionResult recognition_result = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.RecognitionResult, + com.google.cloud.ces.v1.RecognitionResult.Builder, + com.google.cloud.ces.v1.RecognitionResultOrBuilder> + internalGetRecognitionResultFieldBuilder() { + if (recognitionResultBuilder_ == null) { + if (!(messageTypeCase_ == 2)) { + messageType_ = com.google.cloud.ces.v1.RecognitionResult.getDefaultInstance(); + } + recognitionResultBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.RecognitionResult, + com.google.cloud.ces.v1.RecognitionResult.Builder, + com.google.cloud.ces.v1.RecognitionResultOrBuilder>( + (com.google.cloud.ces.v1.RecognitionResult) messageType_, + getParentForChildren(), + isClean()); + messageType_ = null; + } + messageTypeCase_ = 2; + onChanged(); + return recognitionResultBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.InterruptionSignal, + com.google.cloud.ces.v1.InterruptionSignal.Builder, + com.google.cloud.ces.v1.InterruptionSignalOrBuilder> + interruptionSignalBuilder_; + + /** + * + * + *
      +     * Optional. Interruption signal detected from the audio input.
      +     * 
      + * + * + * .google.cloud.ces.v1.InterruptionSignal interruption_signal = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the interruptionSignal field is set. + */ + @java.lang.Override + public boolean hasInterruptionSignal() { + return messageTypeCase_ == 3; + } + + /** + * + * + *
      +     * Optional. Interruption signal detected from the audio input.
      +     * 
      + * + * + * .google.cloud.ces.v1.InterruptionSignal interruption_signal = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The interruptionSignal. + */ + @java.lang.Override + public com.google.cloud.ces.v1.InterruptionSignal getInterruptionSignal() { + if (interruptionSignalBuilder_ == null) { + if (messageTypeCase_ == 3) { + return (com.google.cloud.ces.v1.InterruptionSignal) messageType_; + } + return com.google.cloud.ces.v1.InterruptionSignal.getDefaultInstance(); + } else { + if (messageTypeCase_ == 3) { + return interruptionSignalBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.InterruptionSignal.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Interruption signal detected from the audio input.
      +     * 
      + * + * + * .google.cloud.ces.v1.InterruptionSignal interruption_signal = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInterruptionSignal(com.google.cloud.ces.v1.InterruptionSignal value) { + if (interruptionSignalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + messageType_ = value; + onChanged(); + } else { + interruptionSignalBuilder_.setMessage(value); + } + messageTypeCase_ = 3; + return this; + } + + /** + * + * + *
      +     * Optional. Interruption signal detected from the audio input.
      +     * 
      + * + * + * .google.cloud.ces.v1.InterruptionSignal interruption_signal = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInterruptionSignal( + com.google.cloud.ces.v1.InterruptionSignal.Builder builderForValue) { + if (interruptionSignalBuilder_ == null) { + messageType_ = builderForValue.build(); + onChanged(); + } else { + interruptionSignalBuilder_.setMessage(builderForValue.build()); + } + messageTypeCase_ = 3; + return this; + } + + /** + * + * + *
      +     * Optional. Interruption signal detected from the audio input.
      +     * 
      + * + * + * .google.cloud.ces.v1.InterruptionSignal interruption_signal = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeInterruptionSignal(com.google.cloud.ces.v1.InterruptionSignal value) { + if (interruptionSignalBuilder_ == null) { + if (messageTypeCase_ == 3 + && messageType_ != com.google.cloud.ces.v1.InterruptionSignal.getDefaultInstance()) { + messageType_ = + com.google.cloud.ces.v1.InterruptionSignal.newBuilder( + (com.google.cloud.ces.v1.InterruptionSignal) messageType_) + .mergeFrom(value) + .buildPartial(); + } else { + messageType_ = value; + } + onChanged(); + } else { + if (messageTypeCase_ == 3) { + interruptionSignalBuilder_.mergeFrom(value); + } else { + interruptionSignalBuilder_.setMessage(value); + } + } + messageTypeCase_ = 3; + return this; + } + + /** + * + * + *
      +     * Optional. Interruption signal detected from the audio input.
      +     * 
      + * + * + * .google.cloud.ces.v1.InterruptionSignal interruption_signal = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearInterruptionSignal() { + if (interruptionSignalBuilder_ == null) { + if (messageTypeCase_ == 3) { + messageTypeCase_ = 0; + messageType_ = null; + onChanged(); + } + } else { + if (messageTypeCase_ == 3) { + messageTypeCase_ = 0; + messageType_ = null; + } + interruptionSignalBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Interruption signal detected from the audio input.
      +     * 
      + * + * + * .google.cloud.ces.v1.InterruptionSignal interruption_signal = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.InterruptionSignal.Builder getInterruptionSignalBuilder() { + return internalGetInterruptionSignalFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Interruption signal detected from the audio input.
      +     * 
      + * + * + * .google.cloud.ces.v1.InterruptionSignal interruption_signal = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.InterruptionSignalOrBuilder getInterruptionSignalOrBuilder() { + if ((messageTypeCase_ == 3) && (interruptionSignalBuilder_ != null)) { + return interruptionSignalBuilder_.getMessageOrBuilder(); + } else { + if (messageTypeCase_ == 3) { + return (com.google.cloud.ces.v1.InterruptionSignal) messageType_; + } + return com.google.cloud.ces.v1.InterruptionSignal.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Interruption signal detected from the audio input.
      +     * 
      + * + * + * .google.cloud.ces.v1.InterruptionSignal interruption_signal = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.InterruptionSignal, + com.google.cloud.ces.v1.InterruptionSignal.Builder, + com.google.cloud.ces.v1.InterruptionSignalOrBuilder> + internalGetInterruptionSignalFieldBuilder() { + if (interruptionSignalBuilder_ == null) { + if (!(messageTypeCase_ == 3)) { + messageType_ = com.google.cloud.ces.v1.InterruptionSignal.getDefaultInstance(); + } + interruptionSignalBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.InterruptionSignal, + com.google.cloud.ces.v1.InterruptionSignal.Builder, + com.google.cloud.ces.v1.InterruptionSignalOrBuilder>( + (com.google.cloud.ces.v1.InterruptionSignal) messageType_, + getParentForChildren(), + isClean()); + messageType_ = null; + } + messageTypeCase_ = 3; + onChanged(); + return interruptionSignalBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EndSession, + com.google.cloud.ces.v1.EndSession.Builder, + com.google.cloud.ces.v1.EndSessionOrBuilder> + endSessionBuilder_; + + /** + * + * + *
      +     * Optional. Indicates that the session has ended.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndSession end_session = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endSession field is set. + */ + @java.lang.Override + public boolean hasEndSession() { + return messageTypeCase_ == 5; + } + + /** + * + * + *
      +     * Optional. Indicates that the session has ended.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndSession end_session = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endSession. + */ + @java.lang.Override + public com.google.cloud.ces.v1.EndSession getEndSession() { + if (endSessionBuilder_ == null) { + if (messageTypeCase_ == 5) { + return (com.google.cloud.ces.v1.EndSession) messageType_; + } + return com.google.cloud.ces.v1.EndSession.getDefaultInstance(); + } else { + if (messageTypeCase_ == 5) { + return endSessionBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.EndSession.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Indicates that the session has ended.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndSession end_session = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEndSession(com.google.cloud.ces.v1.EndSession value) { + if (endSessionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + messageType_ = value; + onChanged(); + } else { + endSessionBuilder_.setMessage(value); + } + messageTypeCase_ = 5; + return this; + } + + /** + * + * + *
      +     * Optional. Indicates that the session has ended.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndSession end_session = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEndSession(com.google.cloud.ces.v1.EndSession.Builder builderForValue) { + if (endSessionBuilder_ == null) { + messageType_ = builderForValue.build(); + onChanged(); + } else { + endSessionBuilder_.setMessage(builderForValue.build()); + } + messageTypeCase_ = 5; + return this; + } + + /** + * + * + *
      +     * Optional. Indicates that the session has ended.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndSession end_session = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEndSession(com.google.cloud.ces.v1.EndSession value) { + if (endSessionBuilder_ == null) { + if (messageTypeCase_ == 5 + && messageType_ != com.google.cloud.ces.v1.EndSession.getDefaultInstance()) { + messageType_ = + com.google.cloud.ces.v1.EndSession.newBuilder( + (com.google.cloud.ces.v1.EndSession) messageType_) + .mergeFrom(value) + .buildPartial(); + } else { + messageType_ = value; + } + onChanged(); + } else { + if (messageTypeCase_ == 5) { + endSessionBuilder_.mergeFrom(value); + } else { + endSessionBuilder_.setMessage(value); + } + } + messageTypeCase_ = 5; + return this; + } + + /** + * + * + *
      +     * Optional. Indicates that the session has ended.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndSession end_session = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEndSession() { + if (endSessionBuilder_ == null) { + if (messageTypeCase_ == 5) { + messageTypeCase_ = 0; + messageType_ = null; + onChanged(); + } + } else { + if (messageTypeCase_ == 5) { + messageTypeCase_ = 0; + messageType_ = null; + } + endSessionBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Indicates that the session has ended.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndSession end_session = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.EndSession.Builder getEndSessionBuilder() { + return internalGetEndSessionFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Indicates that the session has ended.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndSession end_session = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.EndSessionOrBuilder getEndSessionOrBuilder() { + if ((messageTypeCase_ == 5) && (endSessionBuilder_ != null)) { + return endSessionBuilder_.getMessageOrBuilder(); + } else { + if (messageTypeCase_ == 5) { + return (com.google.cloud.ces.v1.EndSession) messageType_; + } + return com.google.cloud.ces.v1.EndSession.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Indicates that the session has ended.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndSession end_session = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EndSession, + com.google.cloud.ces.v1.EndSession.Builder, + com.google.cloud.ces.v1.EndSessionOrBuilder> + internalGetEndSessionFieldBuilder() { + if (endSessionBuilder_ == null) { + if (!(messageTypeCase_ == 5)) { + messageType_ = com.google.cloud.ces.v1.EndSession.getDefaultInstance(); + } + endSessionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EndSession, + com.google.cloud.ces.v1.EndSession.Builder, + com.google.cloud.ces.v1.EndSessionOrBuilder>( + (com.google.cloud.ces.v1.EndSession) messageType_, + getParentForChildren(), + isClean()); + messageType_ = null; + } + messageTypeCase_ = 5; + onChanged(); + return endSessionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.GoAway, + com.google.cloud.ces.v1.GoAway.Builder, + com.google.cloud.ces.v1.GoAwayOrBuilder> + goAwayBuilder_; + + /** + * + * + *
      +     * Optional. Indicates that the server will disconnect soon and the client
      +     * should half-close and restart the connection.
      +     * 
      + * + * .google.cloud.ces.v1.GoAway go_away = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the goAway field is set. + */ + @java.lang.Override + public boolean hasGoAway() { + return messageTypeCase_ == 6; + } + + /** + * + * + *
      +     * Optional. Indicates that the server will disconnect soon and the client
      +     * should half-close and restart the connection.
      +     * 
      + * + * .google.cloud.ces.v1.GoAway go_away = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The goAway. + */ + @java.lang.Override + public com.google.cloud.ces.v1.GoAway getGoAway() { + if (goAwayBuilder_ == null) { + if (messageTypeCase_ == 6) { + return (com.google.cloud.ces.v1.GoAway) messageType_; + } + return com.google.cloud.ces.v1.GoAway.getDefaultInstance(); + } else { + if (messageTypeCase_ == 6) { + return goAwayBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.GoAway.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Indicates that the server will disconnect soon and the client
      +     * should half-close and restart the connection.
      +     * 
      + * + * .google.cloud.ces.v1.GoAway go_away = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGoAway(com.google.cloud.ces.v1.GoAway value) { + if (goAwayBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + messageType_ = value; + onChanged(); + } else { + goAwayBuilder_.setMessage(value); + } + messageTypeCase_ = 6; + return this; + } + + /** + * + * + *
      +     * Optional. Indicates that the server will disconnect soon and the client
      +     * should half-close and restart the connection.
      +     * 
      + * + * .google.cloud.ces.v1.GoAway go_away = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGoAway(com.google.cloud.ces.v1.GoAway.Builder builderForValue) { + if (goAwayBuilder_ == null) { + messageType_ = builderForValue.build(); + onChanged(); + } else { + goAwayBuilder_.setMessage(builderForValue.build()); + } + messageTypeCase_ = 6; + return this; + } + + /** + * + * + *
      +     * Optional. Indicates that the server will disconnect soon and the client
      +     * should half-close and restart the connection.
      +     * 
      + * + * .google.cloud.ces.v1.GoAway go_away = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGoAway(com.google.cloud.ces.v1.GoAway value) { + if (goAwayBuilder_ == null) { + if (messageTypeCase_ == 6 + && messageType_ != com.google.cloud.ces.v1.GoAway.getDefaultInstance()) { + messageType_ = + com.google.cloud.ces.v1.GoAway.newBuilder( + (com.google.cloud.ces.v1.GoAway) messageType_) + .mergeFrom(value) + .buildPartial(); + } else { + messageType_ = value; + } + onChanged(); + } else { + if (messageTypeCase_ == 6) { + goAwayBuilder_.mergeFrom(value); + } else { + goAwayBuilder_.setMessage(value); + } + } + messageTypeCase_ = 6; + return this; + } + + /** + * + * + *
      +     * Optional. Indicates that the server will disconnect soon and the client
      +     * should half-close and restart the connection.
      +     * 
      + * + * .google.cloud.ces.v1.GoAway go_away = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGoAway() { + if (goAwayBuilder_ == null) { + if (messageTypeCase_ == 6) { + messageTypeCase_ = 0; + messageType_ = null; + onChanged(); + } + } else { + if (messageTypeCase_ == 6) { + messageTypeCase_ = 0; + messageType_ = null; + } + goAwayBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Indicates that the server will disconnect soon and the client
      +     * should half-close and restart the connection.
      +     * 
      + * + * .google.cloud.ces.v1.GoAway go_away = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.GoAway.Builder getGoAwayBuilder() { + return internalGetGoAwayFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Indicates that the server will disconnect soon and the client
      +     * should half-close and restart the connection.
      +     * 
      + * + * .google.cloud.ces.v1.GoAway go_away = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.GoAwayOrBuilder getGoAwayOrBuilder() { + if ((messageTypeCase_ == 6) && (goAwayBuilder_ != null)) { + return goAwayBuilder_.getMessageOrBuilder(); + } else { + if (messageTypeCase_ == 6) { + return (com.google.cloud.ces.v1.GoAway) messageType_; + } + return com.google.cloud.ces.v1.GoAway.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Indicates that the server will disconnect soon and the client
      +     * should half-close and restart the connection.
      +     * 
      + * + * .google.cloud.ces.v1.GoAway go_away = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.GoAway, + com.google.cloud.ces.v1.GoAway.Builder, + com.google.cloud.ces.v1.GoAwayOrBuilder> + internalGetGoAwayFieldBuilder() { + if (goAwayBuilder_ == null) { + if (!(messageTypeCase_ == 6)) { + messageType_ = com.google.cloud.ces.v1.GoAway.getDefaultInstance(); + } + goAwayBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.GoAway, + com.google.cloud.ces.v1.GoAway.Builder, + com.google.cloud.ces.v1.GoAwayOrBuilder>( + (com.google.cloud.ces.v1.GoAway) messageType_, getParentForChildren(), isClean()); + messageType_ = null; + } + messageTypeCase_ = 6; + onChanged(); + return goAwayBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.BidiSessionServerMessage) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.BidiSessionServerMessage) + private static final com.google.cloud.ces.v1.BidiSessionServerMessage DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.BidiSessionServerMessage(); + } + + public static com.google.cloud.ces.v1.BidiSessionServerMessage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BidiSessionServerMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.BidiSessionServerMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BidiSessionServerMessageOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BidiSessionServerMessageOrBuilder.java new file mode 100644 index 000000000000..c6a06a42c9da --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BidiSessionServerMessageOrBuilder.java @@ -0,0 +1,242 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface BidiSessionServerMessageOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.BidiSessionServerMessage) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. Processing result from the CES agent.
      +   * 
      + * + * + * .google.cloud.ces.v1.SessionOutput session_output = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sessionOutput field is set. + */ + boolean hasSessionOutput(); + + /** + * + * + *
      +   * Optional. Processing result from the CES agent.
      +   * 
      + * + * + * .google.cloud.ces.v1.SessionOutput session_output = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sessionOutput. + */ + com.google.cloud.ces.v1.SessionOutput getSessionOutput(); + + /** + * + * + *
      +   * Optional. Processing result from the CES agent.
      +   * 
      + * + * + * .google.cloud.ces.v1.SessionOutput session_output = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.SessionOutputOrBuilder getSessionOutputOrBuilder(); + + /** + * + * + *
      +   * Optional. Realtime speech recognition result for the audio input.
      +   * 
      + * + * + * .google.cloud.ces.v1.RecognitionResult recognition_result = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the recognitionResult field is set. + */ + boolean hasRecognitionResult(); + + /** + * + * + *
      +   * Optional. Realtime speech recognition result for the audio input.
      +   * 
      + * + * + * .google.cloud.ces.v1.RecognitionResult recognition_result = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The recognitionResult. + */ + com.google.cloud.ces.v1.RecognitionResult getRecognitionResult(); + + /** + * + * + *
      +   * Optional. Realtime speech recognition result for the audio input.
      +   * 
      + * + * + * .google.cloud.ces.v1.RecognitionResult recognition_result = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.RecognitionResultOrBuilder getRecognitionResultOrBuilder(); + + /** + * + * + *
      +   * Optional. Interruption signal detected from the audio input.
      +   * 
      + * + * + * .google.cloud.ces.v1.InterruptionSignal interruption_signal = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the interruptionSignal field is set. + */ + boolean hasInterruptionSignal(); + + /** + * + * + *
      +   * Optional. Interruption signal detected from the audio input.
      +   * 
      + * + * + * .google.cloud.ces.v1.InterruptionSignal interruption_signal = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The interruptionSignal. + */ + com.google.cloud.ces.v1.InterruptionSignal getInterruptionSignal(); + + /** + * + * + *
      +   * Optional. Interruption signal detected from the audio input.
      +   * 
      + * + * + * .google.cloud.ces.v1.InterruptionSignal interruption_signal = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.InterruptionSignalOrBuilder getInterruptionSignalOrBuilder(); + + /** + * + * + *
      +   * Optional. Indicates that the session has ended.
      +   * 
      + * + * + * .google.cloud.ces.v1.EndSession end_session = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endSession field is set. + */ + boolean hasEndSession(); + + /** + * + * + *
      +   * Optional. Indicates that the session has ended.
      +   * 
      + * + * + * .google.cloud.ces.v1.EndSession end_session = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endSession. + */ + com.google.cloud.ces.v1.EndSession getEndSession(); + + /** + * + * + *
      +   * Optional. Indicates that the session has ended.
      +   * 
      + * + * + * .google.cloud.ces.v1.EndSession end_session = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.EndSessionOrBuilder getEndSessionOrBuilder(); + + /** + * + * + *
      +   * Optional. Indicates that the server will disconnect soon and the client
      +   * should half-close and restart the connection.
      +   * 
      + * + * .google.cloud.ces.v1.GoAway go_away = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the goAway field is set. + */ + boolean hasGoAway(); + + /** + * + * + *
      +   * Optional. Indicates that the server will disconnect soon and the client
      +   * should half-close and restart the connection.
      +   * 
      + * + * .google.cloud.ces.v1.GoAway go_away = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The goAway. + */ + com.google.cloud.ces.v1.GoAway getGoAway(); + + /** + * + * + *
      +   * Optional. Indicates that the server will disconnect soon and the client
      +   * should half-close and restart the connection.
      +   * 
      + * + * .google.cloud.ces.v1.GoAway go_away = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.ces.v1.GoAwayOrBuilder getGoAwayOrBuilder(); + + com.google.cloud.ces.v1.BidiSessionServerMessage.MessageTypeCase getMessageTypeCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BigQueryExportProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BigQueryExportProto.java new file mode 100644 index 000000000000..23e5f835baa9 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BigQueryExportProto.java @@ -0,0 +1,90 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/bigquery_export.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class BigQueryExportProto extends com.google.protobuf.GeneratedFile { + private BigQueryExportProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BigQueryExportProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_BigQueryExportSettings_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_BigQueryExportSettings_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + ")google/cloud/ces/v1/bigquery_export.pr" + + "oto\022\023google.cloud.ces.v1\032\037google/api/field_behavior.proto\"Z\n" + + "\026BigQueryExportSettings\022\024\n" + + "\007enabled\030\001 \001(\010B\003\340A\001\022\024\n" + + "\007project\030\002 \001(\tB\003\340A\001\022\024\n" + + "\007dataset\030\003 \001(\tB\003\340A\001B[\n" + + "\027com.google.cloud.ces.v1B\023BigQueryExportProtoP\001Z" + + ")cloud.google.com/go/ces/apiv1/cespb;cespbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_BigQueryExportSettings_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_BigQueryExportSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_BigQueryExportSettings_descriptor, + new java.lang.String[] { + "Enabled", "Project", "Dataset", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BigQueryExportSettings.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BigQueryExportSettings.java new file mode 100644 index 000000000000..0e2c388a1938 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BigQueryExportSettings.java @@ -0,0 +1,909 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/bigquery_export.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Settings to describe the BigQuery export behaviors for the app.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.BigQueryExportSettings} + */ +@com.google.protobuf.Generated +public final class BigQueryExportSettings extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.BigQueryExportSettings) + BigQueryExportSettingsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BigQueryExportSettings"); + } + + // Use BigQueryExportSettings.newBuilder() to construct. + private BigQueryExportSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BigQueryExportSettings() { + project_ = ""; + dataset_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.BigQueryExportProto + .internal_static_google_cloud_ces_v1_BigQueryExportSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.BigQueryExportProto + .internal_static_google_cloud_ces_v1_BigQueryExportSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.BigQueryExportSettings.class, + com.google.cloud.ces.v1.BigQueryExportSettings.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + + /** + * + * + *
      +   * Optional. Indicates whether the BigQuery export is enabled.
      +   * 
      + * + * bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int PROJECT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
      +   * Optional. The project ID of the BigQuery dataset to export the data to.
      +   *
      +   * Note: If the BigQuery dataset is in a different project from the app,
      +   * you should grant `roles/bigquery.admin` role to the CES service agent
      +   * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +   * 
      + * + * string project = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The project ID of the BigQuery dataset to export the data to.
      +   *
      +   * Note: If the BigQuery dataset is in a different project from the app,
      +   * you should grant `roles/bigquery.admin` role to the CES service agent
      +   * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +   * 
      + * + * string project = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATASET_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataset_ = ""; + + /** + * + * + *
      +   * Optional. The BigQuery dataset to export the data to.
      +   * 
      + * + * string dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dataset. + */ + @java.lang.Override + public java.lang.String getDataset() { + java.lang.Object ref = dataset_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataset_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The BigQuery dataset to export the data to.
      +   * 
      + * + * string dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dataset. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatasetBytes() { + java.lang.Object ref = dataset_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, project_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataset_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, dataset_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, project_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataset_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, dataset_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.BigQueryExportSettings)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.BigQueryExportSettings other = + (com.google.cloud.ces.v1.BigQueryExportSettings) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (!getProject().equals(other.getProject())) return false; + if (!getDataset().equals(other.getDataset())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DATASET_FIELD_NUMBER; + hash = (53 * hash) + getDataset().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.BigQueryExportSettings parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.BigQueryExportSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BigQueryExportSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.BigQueryExportSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BigQueryExportSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.BigQueryExportSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BigQueryExportSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.BigQueryExportSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BigQueryExportSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.BigQueryExportSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.BigQueryExportSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.BigQueryExportSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.BigQueryExportSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Settings to describe the BigQuery export behaviors for the app.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.BigQueryExportSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.BigQueryExportSettings) + com.google.cloud.ces.v1.BigQueryExportSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.BigQueryExportProto + .internal_static_google_cloud_ces_v1_BigQueryExportSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.BigQueryExportProto + .internal_static_google_cloud_ces_v1_BigQueryExportSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.BigQueryExportSettings.class, + com.google.cloud.ces.v1.BigQueryExportSettings.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.BigQueryExportSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + project_ = ""; + dataset_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.BigQueryExportProto + .internal_static_google_cloud_ces_v1_BigQueryExportSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.BigQueryExportSettings getDefaultInstanceForType() { + return com.google.cloud.ces.v1.BigQueryExportSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.BigQueryExportSettings build() { + com.google.cloud.ces.v1.BigQueryExportSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.BigQueryExportSettings buildPartial() { + com.google.cloud.ces.v1.BigQueryExportSettings result = + new com.google.cloud.ces.v1.BigQueryExportSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.BigQueryExportSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.dataset_ = dataset_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.BigQueryExportSettings) { + return mergeFrom((com.google.cloud.ces.v1.BigQueryExportSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.BigQueryExportSettings other) { + if (other == com.google.cloud.ces.v1.BigQueryExportSettings.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDataset().isEmpty()) { + dataset_ = other.dataset_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + dataset_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean enabled_; + + /** + * + * + *
      +     * Optional. Indicates whether the BigQuery export is enabled.
      +     * 
      + * + * bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + /** + * + * + *
      +     * Optional. Indicates whether the BigQuery export is enabled.
      +     * 
      + * + * bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Indicates whether the BigQuery export is enabled.
      +     * 
      + * + * bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + + /** + * + * + *
      +     * Optional. The project ID of the BigQuery dataset to export the data to.
      +     *
      +     * Note: If the BigQuery dataset is in a different project from the app,
      +     * you should grant `roles/bigquery.admin` role to the CES service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +     * 
      + * + * string project = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The project ID of the BigQuery dataset to export the data to.
      +     *
      +     * Note: If the BigQuery dataset is in a different project from the app,
      +     * you should grant `roles/bigquery.admin` role to the CES service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +     * 
      + * + * string project = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The project ID of the BigQuery dataset to export the data to.
      +     *
      +     * Note: If the BigQuery dataset is in a different project from the app,
      +     * you should grant `roles/bigquery.admin` role to the CES service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +     * 
      + * + * string project = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The project ID of the BigQuery dataset to export the data to.
      +     *
      +     * Note: If the BigQuery dataset is in a different project from the app,
      +     * you should grant `roles/bigquery.admin` role to the CES service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +     * 
      + * + * string project = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The project ID of the BigQuery dataset to export the data to.
      +     *
      +     * Note: If the BigQuery dataset is in a different project from the app,
      +     * you should grant `roles/bigquery.admin` role to the CES service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +     * 
      + * + * string project = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object dataset_ = ""; + + /** + * + * + *
      +     * Optional. The BigQuery dataset to export the data to.
      +     * 
      + * + * string dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dataset. + */ + public java.lang.String getDataset() { + java.lang.Object ref = dataset_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataset_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The BigQuery dataset to export the data to.
      +     * 
      + * + * string dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dataset. + */ + public com.google.protobuf.ByteString getDatasetBytes() { + java.lang.Object ref = dataset_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The BigQuery dataset to export the data to.
      +     * 
      + * + * string dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The dataset to set. + * @return This builder for chaining. + */ + public Builder setDataset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataset_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The BigQuery dataset to export the data to.
      +     * 
      + * + * string dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDataset() { + dataset_ = getDefaultInstance().getDataset(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The BigQuery dataset to export the data to.
      +     * 
      + * + * string dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for dataset to set. + * @return This builder for chaining. + */ + public Builder setDatasetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataset_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.BigQueryExportSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.BigQueryExportSettings) + private static final com.google.cloud.ces.v1.BigQueryExportSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.BigQueryExportSettings(); + } + + public static com.google.cloud.ces.v1.BigQueryExportSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryExportSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.BigQueryExportSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BigQueryExportSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BigQueryExportSettingsOrBuilder.java new file mode 100644 index 000000000000..6fe865942f98 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BigQueryExportSettingsOrBuilder.java @@ -0,0 +1,101 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/bigquery_export.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface BigQueryExportSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.BigQueryExportSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. Indicates whether the BigQuery export is enabled.
      +   * 
      + * + * bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enabled. + */ + boolean getEnabled(); + + /** + * + * + *
      +   * Optional. The project ID of the BigQuery dataset to export the data to.
      +   *
      +   * Note: If the BigQuery dataset is in a different project from the app,
      +   * you should grant `roles/bigquery.admin` role to the CES service agent
      +   * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +   * 
      + * + * string project = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
      +   * Optional. The project ID of the BigQuery dataset to export the data to.
      +   *
      +   * Note: If the BigQuery dataset is in a different project from the app,
      +   * you should grant `roles/bigquery.admin` role to the CES service agent
      +   * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +   * 
      + * + * string project = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
      +   * Optional. The BigQuery dataset to export the data to.
      +   * 
      + * + * string dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dataset. + */ + java.lang.String getDataset(); + + /** + * + * + *
      +   * Optional. The BigQuery dataset to export the data to.
      +   * 
      + * + * string dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dataset. + */ + com.google.protobuf.ByteString getDatasetBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Blob.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Blob.java new file mode 100644 index 000000000000..1e004e32c056 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Blob.java @@ -0,0 +1,689 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/example.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Represents a blob input or output in the conversation.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Blob} + */ +@com.google.protobuf.Generated +public final class Blob extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.Blob) + BlobOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Blob"); + } + + // Use Blob.newBuilder() to construct. + private Blob(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Blob() { + mimeType_ = ""; + data_ = com.google.protobuf.ByteString.EMPTY; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ExampleProto.internal_static_google_cloud_ces_v1_Blob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_Blob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Blob.class, com.google.cloud.ces.v1.Blob.Builder.class); + } + + public static final int MIME_TYPE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; + + /** + * + * + *
      +   * Required. The IANA standard MIME type of the source data.
      +   * 
      + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The mimeType. + */ + @java.lang.Override + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The IANA standard MIME type of the source data.
      +   * 
      + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for mimeType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
      +   * Required. Raw bytes of the blob.
      +   * 
      + * + * bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The data. + */ + @java.lang.Override + public com.google.protobuf.ByteString getData() { + return data_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mimeType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, mimeType_); + } + if (!data_.isEmpty()) { + output.writeBytes(2, data_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mimeType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, mimeType_); + } + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, data_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.Blob)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.Blob other = (com.google.cloud.ces.v1.Blob) obj; + + if (!getMimeType().equals(other.getMimeType())) return false; + if (!getData().equals(other.getData())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MIME_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMimeType().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.Blob parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Blob parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Blob parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Blob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Blob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Blob parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Blob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Blob parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Blob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Blob parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Blob parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Blob parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.Blob prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Represents a blob input or output in the conversation.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Blob} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.Blob) + com.google.cloud.ces.v1.BlobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_Blob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_Blob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Blob.class, com.google.cloud.ces.v1.Blob.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.Blob.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mimeType_ = ""; + data_ = com.google.protobuf.ByteString.EMPTY; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_Blob_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Blob getDefaultInstanceForType() { + return com.google.cloud.ces.v1.Blob.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.Blob build() { + com.google.cloud.ces.v1.Blob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Blob buildPartial() { + com.google.cloud.ces.v1.Blob result = new com.google.cloud.ces.v1.Blob(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.Blob result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mimeType_ = mimeType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.data_ = data_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.Blob) { + return mergeFrom((com.google.cloud.ces.v1.Blob) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.Blob other) { + if (other == com.google.cloud.ces.v1.Blob.getDefaultInstance()) return this; + if (!other.getMimeType().isEmpty()) { + mimeType_ = other.mimeType_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getData().isEmpty()) { + setData(other.getData()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + data_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object mimeType_ = ""; + + /** + * + * + *
      +     * Required. The IANA standard MIME type of the source data.
      +     * 
      + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The mimeType. + */ + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The IANA standard MIME type of the source data.
      +     * 
      + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for mimeType. + */ + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The IANA standard MIME type of the source data.
      +     * 
      + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mimeType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The IANA standard MIME type of the source data.
      +     * 
      + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMimeType() { + mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The IANA standard MIME type of the source data.
      +     * 
      + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
      +     * Required. Raw bytes of the blob.
      +     * 
      + * + * bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The data. + */ + @java.lang.Override + public com.google.protobuf.ByteString getData() { + return data_; + } + + /** + * + * + *
      +     * Required. Raw bytes of the blob.
      +     * 
      + * + * bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The data to set. + * @return This builder for chaining. + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. Raw bytes of the blob.
      +     * 
      + * + * bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearData() { + bitField0_ = (bitField0_ & ~0x00000002); + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Blob) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.Blob) + private static final com.google.cloud.ces.v1.Blob DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.Blob(); + } + + public static com.google.cloud.ces.v1.Blob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Blob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Blob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BlobOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BlobOrBuilder.java new file mode 100644 index 000000000000..b5b62c2381a6 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/BlobOrBuilder.java @@ -0,0 +1,67 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/example.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface BlobOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.Blob) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The IANA standard MIME type of the source data.
      +   * 
      + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The mimeType. + */ + java.lang.String getMimeType(); + + /** + * + * + *
      +   * Required. The IANA standard MIME type of the source data.
      +   * 
      + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for mimeType. + */ + com.google.protobuf.ByteString getMimeTypeBytes(); + + /** + * + * + *
      +   * Required. Raw bytes of the blob.
      +   * 
      + * + * bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The data. + */ + com.google.protobuf.ByteString getData(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Callback.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Callback.java new file mode 100644 index 000000000000..e74e071c4340 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Callback.java @@ -0,0 +1,1134 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/common.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * A callback defines the custom logic to be executed at various stages of
      + * agent interaction.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Callback} + */ +@com.google.protobuf.Generated +public final class Callback extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.Callback) + CallbackOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Callback"); + } + + // Use Callback.newBuilder() to construct. + private Callback(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Callback() { + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_Callback_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_Callback_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Callback.class, com.google.cloud.ces.v1.Callback.Builder.class); + } + + private int callbackCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object callback_; + + public enum CallbackCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PYTHON_CODE(1), + CALLBACK_NOT_SET(0); + private final int value; + + private CallbackCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CallbackCase valueOf(int value) { + return forNumber(value); + } + + public static CallbackCase forNumber(int value) { + switch (value) { + case 1: + return PYTHON_CODE; + case 0: + return CALLBACK_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public CallbackCase getCallbackCase() { + return CallbackCase.forNumber(callbackCase_); + } + + public static final int PYTHON_CODE_FIELD_NUMBER = 1; + + /** + * + * + *
      +   * Required. The python code to execute for the callback.
      +   * 
      + * + * string python_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the pythonCode field is set. + */ + public boolean hasPythonCode() { + return callbackCase_ == 1; + } + + /** + * + * + *
      +   * Required. The python code to execute for the callback.
      +   * 
      + * + * string python_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pythonCode. + */ + public java.lang.String getPythonCode() { + java.lang.Object ref = ""; + if (callbackCase_ == 1) { + ref = callback_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (callbackCase_ == 1) { + callback_ = s; + } + return s; + } + } + + /** + * + * + *
      +   * Required. The python code to execute for the callback.
      +   * 
      + * + * string python_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pythonCode. + */ + public com.google.protobuf.ByteString getPythonCodeBytes() { + java.lang.Object ref = ""; + if (callbackCase_ == 1) { + ref = callback_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (callbackCase_ == 1) { + callback_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
      +   * Optional. Human-readable description of the callback.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. Human-readable description of the callback.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISABLED_FIELD_NUMBER = 2; + private boolean disabled_ = false; + + /** + * + * + *
      +   * Optional. Whether the callback is disabled. Disabled callbacks are ignored
      +   * by the agent.
      +   * 
      + * + * bool disabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + + public static final int PROACTIVE_EXECUTION_ENABLED_FIELD_NUMBER = 4; + private boolean proactiveExecutionEnabled_ = false; + + /** + * + * + *
      +   * Optional. If enabled, the callback will also be executed on intermediate
      +   * model outputs. This setting only affects after model callback.
      +   * **ENABLE WITH CAUTION**. Typically after model callback only needs to be
      +   * executed after receiving all model responses. Enabling proactive execution
      +   * may have negative implication on the execution cost and latency, and
      +   * should only be enabled in rare situations.
      +   * 
      + * + * bool proactive_execution_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The proactiveExecutionEnabled. + */ + @java.lang.Override + public boolean getProactiveExecutionEnabled() { + return proactiveExecutionEnabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (callbackCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, callback_); + } + if (disabled_ != false) { + output.writeBool(2, disabled_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + if (proactiveExecutionEnabled_ != false) { + output.writeBool(4, proactiveExecutionEnabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (callbackCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, callback_); + } + if (disabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, disabled_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + if (proactiveExecutionEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, proactiveExecutionEnabled_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.Callback)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.Callback other = (com.google.cloud.ces.v1.Callback) obj; + + if (!getDescription().equals(other.getDescription())) return false; + if (getDisabled() != other.getDisabled()) return false; + if (getProactiveExecutionEnabled() != other.getProactiveExecutionEnabled()) return false; + if (!getCallbackCase().equals(other.getCallbackCase())) return false; + switch (callbackCase_) { + case 1: + if (!getPythonCode().equals(other.getPythonCode())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); + hash = (37 * hash) + PROACTIVE_EXECUTION_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getProactiveExecutionEnabled()); + switch (callbackCase_) { + case 1: + hash = (37 * hash) + PYTHON_CODE_FIELD_NUMBER; + hash = (53 * hash) + getPythonCode().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.Callback parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Callback parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Callback parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Callback parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Callback parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Callback parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Callback parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Callback parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Callback parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Callback parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Callback parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Callback parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.Callback prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * A callback defines the custom logic to be executed at various stages of
      +   * agent interaction.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Callback} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.Callback) + com.google.cloud.ces.v1.CallbackOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_Callback_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_Callback_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Callback.class, + com.google.cloud.ces.v1.Callback.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.Callback.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + description_ = ""; + disabled_ = false; + proactiveExecutionEnabled_ = false; + callbackCase_ = 0; + callback_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_Callback_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Callback getDefaultInstanceForType() { + return com.google.cloud.ces.v1.Callback.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.Callback build() { + com.google.cloud.ces.v1.Callback result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Callback buildPartial() { + com.google.cloud.ces.v1.Callback result = new com.google.cloud.ces.v1.Callback(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.Callback result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.disabled_ = disabled_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.proactiveExecutionEnabled_ = proactiveExecutionEnabled_; + } + } + + private void buildPartialOneofs(com.google.cloud.ces.v1.Callback result) { + result.callbackCase_ = callbackCase_; + result.callback_ = this.callback_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.Callback) { + return mergeFrom((com.google.cloud.ces.v1.Callback) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.Callback other) { + if (other == com.google.cloud.ces.v1.Callback.getDefaultInstance()) return this; + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + if (other.getProactiveExecutionEnabled() != false) { + setProactiveExecutionEnabled(other.getProactiveExecutionEnabled()); + } + switch (other.getCallbackCase()) { + case PYTHON_CODE: + { + callbackCase_ = 1; + callback_ = other.callback_; + onChanged(); + break; + } + case CALLBACK_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + callbackCase_ = 1; + callback_ = s; + break; + } // case 10 + case 16: + { + disabled_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 16 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 32: + { + proactiveExecutionEnabled_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int callbackCase_ = 0; + private java.lang.Object callback_; + + public CallbackCase getCallbackCase() { + return CallbackCase.forNumber(callbackCase_); + } + + public Builder clearCallback() { + callbackCase_ = 0; + callback_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
      +     * Required. The python code to execute for the callback.
      +     * 
      + * + * string python_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the pythonCode field is set. + */ + @java.lang.Override + public boolean hasPythonCode() { + return callbackCase_ == 1; + } + + /** + * + * + *
      +     * Required. The python code to execute for the callback.
      +     * 
      + * + * string python_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pythonCode. + */ + @java.lang.Override + public java.lang.String getPythonCode() { + java.lang.Object ref = ""; + if (callbackCase_ == 1) { + ref = callback_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (callbackCase_ == 1) { + callback_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The python code to execute for the callback.
      +     * 
      + * + * string python_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pythonCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPythonCodeBytes() { + java.lang.Object ref = ""; + if (callbackCase_ == 1) { + ref = callback_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (callbackCase_ == 1) { + callback_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The python code to execute for the callback.
      +     * 
      + * + * string python_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The pythonCode to set. + * @return This builder for chaining. + */ + public Builder setPythonCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + callbackCase_ = 1; + callback_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The python code to execute for the callback.
      +     * 
      + * + * string python_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPythonCode() { + if (callbackCase_ == 1) { + callbackCase_ = 0; + callback_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Required. The python code to execute for the callback.
      +     * 
      + * + * string python_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for pythonCode to set. + * @return This builder for chaining. + */ + public Builder setPythonCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + callbackCase_ = 1; + callback_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
      +     * Optional. Human-readable description of the callback.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Human-readable description of the callback.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Human-readable description of the callback.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Human-readable description of the callback.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Human-readable description of the callback.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean disabled_; + + /** + * + * + *
      +     * Optional. Whether the callback is disabled. Disabled callbacks are ignored
      +     * by the agent.
      +     * 
      + * + * bool disabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + + /** + * + * + *
      +     * Optional. Whether the callback is disabled. Disabled callbacks are ignored
      +     * by the agent.
      +     * 
      + * + * bool disabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Whether the callback is disabled. Disabled callbacks are ignored
      +     * by the agent.
      +     * 
      + * + * bool disabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + bitField0_ = (bitField0_ & ~0x00000004); + disabled_ = false; + onChanged(); + return this; + } + + private boolean proactiveExecutionEnabled_; + + /** + * + * + *
      +     * Optional. If enabled, the callback will also be executed on intermediate
      +     * model outputs. This setting only affects after model callback.
      +     * **ENABLE WITH CAUTION**. Typically after model callback only needs to be
      +     * executed after receiving all model responses. Enabling proactive execution
      +     * may have negative implication on the execution cost and latency, and
      +     * should only be enabled in rare situations.
      +     * 
      + * + * bool proactive_execution_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The proactiveExecutionEnabled. + */ + @java.lang.Override + public boolean getProactiveExecutionEnabled() { + return proactiveExecutionEnabled_; + } + + /** + * + * + *
      +     * Optional. If enabled, the callback will also be executed on intermediate
      +     * model outputs. This setting only affects after model callback.
      +     * **ENABLE WITH CAUTION**. Typically after model callback only needs to be
      +     * executed after receiving all model responses. Enabling proactive execution
      +     * may have negative implication on the execution cost and latency, and
      +     * should only be enabled in rare situations.
      +     * 
      + * + * bool proactive_execution_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The proactiveExecutionEnabled to set. + * @return This builder for chaining. + */ + public Builder setProactiveExecutionEnabled(boolean value) { + + proactiveExecutionEnabled_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. If enabled, the callback will also be executed on intermediate
      +     * model outputs. This setting only affects after model callback.
      +     * **ENABLE WITH CAUTION**. Typically after model callback only needs to be
      +     * executed after receiving all model responses. Enabling proactive execution
      +     * may have negative implication on the execution cost and latency, and
      +     * should only be enabled in rare situations.
      +     * 
      + * + * bool proactive_execution_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearProactiveExecutionEnabled() { + bitField0_ = (bitField0_ & ~0x00000008); + proactiveExecutionEnabled_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Callback) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.Callback) + private static final com.google.cloud.ces.v1.Callback DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.Callback(); + } + + public static com.google.cloud.ces.v1.Callback getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Callback parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Callback getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CallbackOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CallbackOrBuilder.java new file mode 100644 index 000000000000..3581e9855987 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CallbackOrBuilder.java @@ -0,0 +1,127 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/common.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface CallbackOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.Callback) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The python code to execute for the callback.
      +   * 
      + * + * string python_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the pythonCode field is set. + */ + boolean hasPythonCode(); + + /** + * + * + *
      +   * Required. The python code to execute for the callback.
      +   * 
      + * + * string python_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pythonCode. + */ + java.lang.String getPythonCode(); + + /** + * + * + *
      +   * Required. The python code to execute for the callback.
      +   * 
      + * + * string python_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pythonCode. + */ + com.google.protobuf.ByteString getPythonCodeBytes(); + + /** + * + * + *
      +   * Optional. Human-readable description of the callback.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
      +   * Optional. Human-readable description of the callback.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
      +   * Optional. Whether the callback is disabled. Disabled callbacks are ignored
      +   * by the agent.
      +   * 
      + * + * bool disabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + boolean getDisabled(); + + /** + * + * + *
      +   * Optional. If enabled, the callback will also be executed on intermediate
      +   * model outputs. This setting only affects after model callback.
      +   * **ENABLE WITH CAUTION**. Typically after model callback only needs to be
      +   * executed after receiving all model responses. Enabling proactive execution
      +   * may have negative implication on the execution cost and latency, and
      +   * should only be enabled in rare situations.
      +   * 
      + * + * bool proactive_execution_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The proactiveExecutionEnabled. + */ + boolean getProactiveExecutionEnabled(); + + com.google.cloud.ces.v1.Callback.CallbackCase getCallbackCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Changelog.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Changelog.java new file mode 100644 index 000000000000..0b8ffe9c6d13 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Changelog.java @@ -0,0 +1,3322 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/changelog.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Changelogs represent a change made to the app or to an resource within the
      + * app.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Changelog} + */ +@com.google.protobuf.Generated +public final class Changelog extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.Changelog) + ChangelogOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Changelog"); + } + + // Use Changelog.newBuilder() to construct. + private Changelog(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Changelog() { + name_ = ""; + author_ = ""; + displayName_ = ""; + description_ = ""; + resource_ = ""; + resourceType_ = ""; + action_ = ""; + dependentResources_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ChangelogProto + .internal_static_google_cloud_ces_v1_Changelog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ChangelogProto + .internal_static_google_cloud_ces_v1_Changelog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Changelog.class, + com.google.cloud.ces.v1.Changelog.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Identifier. The unique identifier of the changelog.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/changelogs/{changelog}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Identifier. The unique identifier of the changelog.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/changelogs/{changelog}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTHOR_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object author_ = ""; + + /** + * + * + *
      +   * Output only. Email address of the change author.
      +   * 
      + * + * string author = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The author. + */ + @java.lang.Override + public java.lang.String getAuthor() { + java.lang.Object ref = author_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + author_ = s; + return s; + } + } + + /** + * + * + *
      +   * Output only. Email address of the change author.
      +   * 
      + * + * string author = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for author. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAuthorBytes() { + java.lang.Object ref = author_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + author_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
      +   * Output only. Display name of the change. It typically should be the display
      +   * name of the resource that was changed.
      +   * 
      + * + * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
      +   * Output only. Display name of the change. It typically should be the display
      +   * name of the resource that was changed.
      +   * 
      + * + * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
      +   * Output only. Description of the change. which typically captures the
      +   * changed fields in the resource.
      +   * 
      + * + * string description = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
      +   * Output only. Description of the change. which typically captures the
      +   * changed fields in the resource.
      +   * 
      + * + * string description = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + @java.lang.Override + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object resource_ = ""; + + /** + * + * + *
      +   * Output only. The resource that was changed.
      +   * 
      + * + * string resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } + } + + /** + * + * + *
      +   * Output only. The resource that was changed.
      +   * 
      + * + * string resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object resourceType_ = ""; + + /** + * + * + *
      +   * Output only. The type of the resource that was changed.
      +   * 
      + * + * string resource_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resourceType. + */ + @java.lang.Override + public java.lang.String getResourceType() { + java.lang.Object ref = resourceType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceType_ = s; + return s; + } + } + + /** + * + * + *
      +   * Output only. The type of the resource that was changed.
      +   * 
      + * + * string resource_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resourceType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceTypeBytes() { + java.lang.Object ref = resourceType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACTION_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object action_ = ""; + + /** + * + * + *
      +   * Output only. The action that was performed on the resource.
      +   * 
      + * + * string action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The action. + */ + @java.lang.Override + public java.lang.String getAction() { + java.lang.Object ref = action_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + action_ = s; + return s; + } + } + + /** + * + * + *
      +   * Output only. The action that was performed on the resource.
      +   * 
      + * + * string action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for action. + */ + @java.lang.Override + public com.google.protobuf.ByteString getActionBytes() { + java.lang.Object ref = action_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + action_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORIGINAL_RESOURCE_FIELD_NUMBER = 7; + private com.google.protobuf.Struct originalResource_; + + /** + * + * + *
      +   * Output only. The original resource before the change.
      +   * 
      + * + * + * .google.protobuf.Struct original_resource = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the originalResource field is set. + */ + @java.lang.Override + public boolean hasOriginalResource() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Output only. The original resource before the change.
      +   * 
      + * + * + * .google.protobuf.Struct original_resource = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The originalResource. + */ + @java.lang.Override + public com.google.protobuf.Struct getOriginalResource() { + return originalResource_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : originalResource_; + } + + /** + * + * + *
      +   * Output only. The original resource before the change.
      +   * 
      + * + * + * .google.protobuf.Struct original_resource = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getOriginalResourceOrBuilder() { + return originalResource_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : originalResource_; + } + + public static final int NEW_RESOURCE_FIELD_NUMBER = 8; + private com.google.protobuf.Struct newResource_; + + /** + * + * + *
      +   * Output only. The new resource after the change.
      +   * 
      + * + * .google.protobuf.Struct new_resource = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the newResource field is set. + */ + @java.lang.Override + public boolean hasNewResource() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Output only. The new resource after the change.
      +   * 
      + * + * .google.protobuf.Struct new_resource = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The newResource. + */ + @java.lang.Override + public com.google.protobuf.Struct getNewResource() { + return newResource_ == null ? com.google.protobuf.Struct.getDefaultInstance() : newResource_; + } + + /** + * + * + *
      +   * Output only. The new resource after the change.
      +   * 
      + * + * .google.protobuf.Struct new_resource = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getNewResourceOrBuilder() { + return newResource_ == null ? com.google.protobuf.Struct.getDefaultInstance() : newResource_; + } + + public static final int DEPENDENT_RESOURCES_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List dependentResources_; + + /** + * + * + *
      +   * Output only. The dependent resources that were changed.
      +   * 
      + * + * + * repeated .google.protobuf.Struct dependent_resources = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getDependentResourcesList() { + return dependentResources_; + } + + /** + * + * + *
      +   * Output only. The dependent resources that were changed.
      +   * 
      + * + * + * repeated .google.protobuf.Struct dependent_resources = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getDependentResourcesOrBuilderList() { + return dependentResources_; + } + + /** + * + * + *
      +   * Output only. The dependent resources that were changed.
      +   * 
      + * + * + * repeated .google.protobuf.Struct dependent_resources = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getDependentResourcesCount() { + return dependentResources_.size(); + } + + /** + * + * + *
      +   * Output only. The dependent resources that were changed.
      +   * 
      + * + * + * repeated .google.protobuf.Struct dependent_resources = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.Struct getDependentResources(int index) { + return dependentResources_.get(index); + } + + /** + * + * + *
      +   * Output only. The dependent resources that were changed.
      +   * 
      + * + * + * repeated .google.protobuf.Struct dependent_resources = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getDependentResourcesOrBuilder(int index) { + return dependentResources_.get(index); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 10; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
      +   * Output only. The time when the change was made.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * Output only. The time when the change was made.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
      +   * Output only. The time when the change was made.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int SEQUENCE_NUMBER_FIELD_NUMBER = 12; + private long sequenceNumber_ = 0L; + + /** + * + * + *
      +   * Output only. The monotonically increasing sequence number of the changelog.
      +   * 
      + * + * int64 sequence_number = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sequenceNumber. + */ + @java.lang.Override + public long getSequenceNumber() { + return sequenceNumber_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(author_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, author_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resource_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, resource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resourceType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, resourceType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(action_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, action_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getOriginalResource()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(8, getNewResource()); + } + for (int i = 0; i < dependentResources_.size(); i++) { + output.writeMessage(9, dependentResources_.get(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(10, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, description_); + } + if (sequenceNumber_ != 0L) { + output.writeInt64(12, sequenceNumber_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(author_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, author_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resource_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, resource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resourceType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, resourceType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(action_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, action_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getOriginalResource()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getNewResource()); + } + for (int i = 0; i < dependentResources_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(9, dependentResources_.get(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, description_); + } + if (sequenceNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(12, sequenceNumber_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.Changelog)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.Changelog other = (com.google.cloud.ces.v1.Changelog) obj; + + if (!getName().equals(other.getName())) return false; + if (!getAuthor().equals(other.getAuthor())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getResource().equals(other.getResource())) return false; + if (!getResourceType().equals(other.getResourceType())) return false; + if (!getAction().equals(other.getAction())) return false; + if (hasOriginalResource() != other.hasOriginalResource()) return false; + if (hasOriginalResource()) { + if (!getOriginalResource().equals(other.getOriginalResource())) return false; + } + if (hasNewResource() != other.hasNewResource()) return false; + if (hasNewResource()) { + if (!getNewResource().equals(other.getNewResource())) return false; + } + if (!getDependentResourcesList().equals(other.getDependentResourcesList())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (getSequenceNumber() != other.getSequenceNumber()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + AUTHOR_FIELD_NUMBER; + hash = (53 * hash) + getAuthor().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getResourceType().hashCode(); + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + getAction().hashCode(); + if (hasOriginalResource()) { + hash = (37 * hash) + ORIGINAL_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getOriginalResource().hashCode(); + } + if (hasNewResource()) { + hash = (37 * hash) + NEW_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getNewResource().hashCode(); + } + if (getDependentResourcesCount() > 0) { + hash = (37 * hash) + DEPENDENT_RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getDependentResourcesList().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (37 * hash) + SEQUENCE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSequenceNumber()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.Changelog parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Changelog parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Changelog parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Changelog parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Changelog parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Changelog parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Changelog parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Changelog parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Changelog parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Changelog parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Changelog parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Changelog parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.Changelog prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Changelogs represent a change made to the app or to an resource within the
      +   * app.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Changelog} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.Changelog) + com.google.cloud.ces.v1.ChangelogOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ChangelogProto + .internal_static_google_cloud_ces_v1_Changelog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ChangelogProto + .internal_static_google_cloud_ces_v1_Changelog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Changelog.class, + com.google.cloud.ces.v1.Changelog.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.Changelog.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetOriginalResourceFieldBuilder(); + internalGetNewResourceFieldBuilder(); + internalGetDependentResourcesFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + author_ = ""; + displayName_ = ""; + description_ = ""; + resource_ = ""; + resourceType_ = ""; + action_ = ""; + originalResource_ = null; + if (originalResourceBuilder_ != null) { + originalResourceBuilder_.dispose(); + originalResourceBuilder_ = null; + } + newResource_ = null; + if (newResourceBuilder_ != null) { + newResourceBuilder_.dispose(); + newResourceBuilder_ = null; + } + if (dependentResourcesBuilder_ == null) { + dependentResources_ = java.util.Collections.emptyList(); + } else { + dependentResources_ = null; + dependentResourcesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + sequenceNumber_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.ChangelogProto + .internal_static_google_cloud_ces_v1_Changelog_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Changelog getDefaultInstanceForType() { + return com.google.cloud.ces.v1.Changelog.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.Changelog build() { + com.google.cloud.ces.v1.Changelog result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Changelog buildPartial() { + com.google.cloud.ces.v1.Changelog result = new com.google.cloud.ces.v1.Changelog(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1.Changelog result) { + if (dependentResourcesBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + dependentResources_ = java.util.Collections.unmodifiableList(dependentResources_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.dependentResources_ = dependentResources_; + } else { + result.dependentResources_ = dependentResourcesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.Changelog result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.author_ = author_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.resource_ = resource_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.resourceType_ = resourceType_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.action_ = action_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000080) != 0)) { + result.originalResource_ = + originalResourceBuilder_ == null ? originalResource_ : originalResourceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.newResource_ = + newResourceBuilder_ == null ? newResource_ : newResourceBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.sequenceNumber_ = sequenceNumber_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.Changelog) { + return mergeFrom((com.google.cloud.ces.v1.Changelog) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.Changelog other) { + if (other == com.google.cloud.ces.v1.Changelog.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAuthor().isEmpty()) { + author_ = other.author_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getResourceType().isEmpty()) { + resourceType_ = other.resourceType_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getAction().isEmpty()) { + action_ = other.action_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasOriginalResource()) { + mergeOriginalResource(other.getOriginalResource()); + } + if (other.hasNewResource()) { + mergeNewResource(other.getNewResource()); + } + if (dependentResourcesBuilder_ == null) { + if (!other.dependentResources_.isEmpty()) { + if (dependentResources_.isEmpty()) { + dependentResources_ = other.dependentResources_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureDependentResourcesIsMutable(); + dependentResources_.addAll(other.dependentResources_); + } + onChanged(); + } + } else { + if (!other.dependentResources_.isEmpty()) { + if (dependentResourcesBuilder_.isEmpty()) { + dependentResourcesBuilder_.dispose(); + dependentResourcesBuilder_ = null; + dependentResources_ = other.dependentResources_; + bitField0_ = (bitField0_ & ~0x00000200); + dependentResourcesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDependentResourcesFieldBuilder() + : null; + } else { + dependentResourcesBuilder_.addAllMessages(other.dependentResources_); + } + } + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.getSequenceNumber() != 0L) { + setSequenceNumber(other.getSequenceNumber()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + author_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: + { + resourceType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 50: + { + action_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetOriginalResourceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetNewResourceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 74: + { + com.google.protobuf.Struct m = + input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (dependentResourcesBuilder_ == null) { + ensureDependentResourcesIsMutable(); + dependentResources_.add(m); + } else { + dependentResourcesBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 82 + case 90: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 90 + case 96: + { + sequenceNumber_ = input.readInt64(); + bitField0_ |= 0x00000800; + break; + } // case 96 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Identifier. The unique identifier of the changelog.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/changelogs/{changelog}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the changelog.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/changelogs/{changelog}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the changelog.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/changelogs/{changelog}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the changelog.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/changelogs/{changelog}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the changelog.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/changelogs/{changelog}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object author_ = ""; + + /** + * + * + *
      +     * Output only. Email address of the change author.
      +     * 
      + * + * string author = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The author. + */ + public java.lang.String getAuthor() { + java.lang.Object ref = author_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + author_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Output only. Email address of the change author.
      +     * 
      + * + * string author = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for author. + */ + public com.google.protobuf.ByteString getAuthorBytes() { + java.lang.Object ref = author_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + author_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Output only. Email address of the change author.
      +     * 
      + * + * string author = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The author to set. + * @return This builder for chaining. + */ + public Builder setAuthor(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + author_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Email address of the change author.
      +     * 
      + * + * string author = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAuthor() { + author_ = getDefaultInstance().getAuthor(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Email address of the change author.
      +     * 
      + * + * string author = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for author to set. + * @return This builder for chaining. + */ + public Builder setAuthorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + author_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
      +     * Output only. Display name of the change. It typically should be the display
      +     * name of the resource that was changed.
      +     * 
      + * + * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Output only. Display name of the change. It typically should be the display
      +     * name of the resource that was changed.
      +     * 
      + * + * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Output only. Display name of the change. It typically should be the display
      +     * name of the resource that was changed.
      +     * 
      + * + * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Display name of the change. It typically should be the display
      +     * name of the resource that was changed.
      +     * 
      + * + * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Display name of the change. It typically should be the display
      +     * name of the resource that was changed.
      +     * 
      + * + * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
      +     * Output only. Description of the change. which typically captures the
      +     * changed fields in the resource.
      +     * 
      + * + * string description = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Output only. Description of the change. which typically captures the
      +     * changed fields in the resource.
      +     * 
      + * + * string description = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Output only. Description of the change. which typically captures the
      +     * changed fields in the resource.
      +     * 
      + * + * string description = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Description of the change. which typically captures the
      +     * changed fields in the resource.
      +     * 
      + * + * string description = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Description of the change. which typically captures the
      +     * changed fields in the resource.
      +     * 
      + * + * string description = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object resource_ = ""; + + /** + * + * + *
      +     * Output only. The resource that was changed.
      +     * 
      + * + * string resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Output only. The resource that was changed.
      +     * 
      + * + * string resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Output only. The resource that was changed.
      +     * 
      + * + * string resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The resource that was changed.
      +     * 
      + * + * string resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + resource_ = getDefaultInstance().getResource(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The resource that was changed.
      +     * 
      + * + * string resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object resourceType_ = ""; + + /** + * + * + *
      +     * Output only. The type of the resource that was changed.
      +     * 
      + * + * string resource_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resourceType. + */ + public java.lang.String getResourceType() { + java.lang.Object ref = resourceType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Output only. The type of the resource that was changed.
      +     * 
      + * + * string resource_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resourceType. + */ + public com.google.protobuf.ByteString getResourceTypeBytes() { + java.lang.Object ref = resourceType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Output only. The type of the resource that was changed.
      +     * 
      + * + * string resource_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resourceType_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The type of the resource that was changed.
      +     * 
      + * + * string resource_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearResourceType() { + resourceType_ = getDefaultInstance().getResourceType(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The type of the resource that was changed.
      +     * 
      + * + * string resource_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceType_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object action_ = ""; + + /** + * + * + *
      +     * Output only. The action that was performed on the resource.
      +     * 
      + * + * string action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The action. + */ + public java.lang.String getAction() { + java.lang.Object ref = action_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + action_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Output only. The action that was performed on the resource.
      +     * 
      + * + * string action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for action. + */ + public com.google.protobuf.ByteString getActionBytes() { + java.lang.Object ref = action_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + action_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Output only. The action that was performed on the resource.
      +     * 
      + * + * string action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The action to set. + * @return This builder for chaining. + */ + public Builder setAction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + action_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The action that was performed on the resource.
      +     * 
      + * + * string action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAction() { + action_ = getDefaultInstance().getAction(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The action that was performed on the resource.
      +     * 
      + * + * string action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for action to set. + * @return This builder for chaining. + */ + public Builder setActionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + action_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.protobuf.Struct originalResource_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + originalResourceBuilder_; + + /** + * + * + *
      +     * Output only. The original resource before the change.
      +     * 
      + * + * + * .google.protobuf.Struct original_resource = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the originalResource field is set. + */ + public boolean hasOriginalResource() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
      +     * Output only. The original resource before the change.
      +     * 
      + * + * + * .google.protobuf.Struct original_resource = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The originalResource. + */ + public com.google.protobuf.Struct getOriginalResource() { + if (originalResourceBuilder_ == null) { + return originalResource_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : originalResource_; + } else { + return originalResourceBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. The original resource before the change.
      +     * 
      + * + * + * .google.protobuf.Struct original_resource = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setOriginalResource(com.google.protobuf.Struct value) { + if (originalResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + originalResource_ = value; + } else { + originalResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The original resource before the change.
      +     * 
      + * + * + * .google.protobuf.Struct original_resource = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setOriginalResource(com.google.protobuf.Struct.Builder builderForValue) { + if (originalResourceBuilder_ == null) { + originalResource_ = builderForValue.build(); + } else { + originalResourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The original resource before the change.
      +     * 
      + * + * + * .google.protobuf.Struct original_resource = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeOriginalResource(com.google.protobuf.Struct value) { + if (originalResourceBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && originalResource_ != null + && originalResource_ != com.google.protobuf.Struct.getDefaultInstance()) { + getOriginalResourceBuilder().mergeFrom(value); + } else { + originalResource_ = value; + } + } else { + originalResourceBuilder_.mergeFrom(value); + } + if (originalResource_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. The original resource before the change.
      +     * 
      + * + * + * .google.protobuf.Struct original_resource = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearOriginalResource() { + bitField0_ = (bitField0_ & ~0x00000080); + originalResource_ = null; + if (originalResourceBuilder_ != null) { + originalResourceBuilder_.dispose(); + originalResourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The original resource before the change.
      +     * 
      + * + * + * .google.protobuf.Struct original_resource = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Struct.Builder getOriginalResourceBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetOriginalResourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. The original resource before the change.
      +     * 
      + * + * + * .google.protobuf.Struct original_resource = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.StructOrBuilder getOriginalResourceOrBuilder() { + if (originalResourceBuilder_ != null) { + return originalResourceBuilder_.getMessageOrBuilder(); + } else { + return originalResource_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : originalResource_; + } + } + + /** + * + * + *
      +     * Output only. The original resource before the change.
      +     * 
      + * + * + * .google.protobuf.Struct original_resource = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetOriginalResourceFieldBuilder() { + if (originalResourceBuilder_ == null) { + originalResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getOriginalResource(), getParentForChildren(), isClean()); + originalResource_ = null; + } + return originalResourceBuilder_; + } + + private com.google.protobuf.Struct newResource_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + newResourceBuilder_; + + /** + * + * + *
      +     * Output only. The new resource after the change.
      +     * 
      + * + * .google.protobuf.Struct new_resource = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the newResource field is set. + */ + public boolean hasNewResource() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
      +     * Output only. The new resource after the change.
      +     * 
      + * + * .google.protobuf.Struct new_resource = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The newResource. + */ + public com.google.protobuf.Struct getNewResource() { + if (newResourceBuilder_ == null) { + return newResource_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : newResource_; + } else { + return newResourceBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. The new resource after the change.
      +     * 
      + * + * .google.protobuf.Struct new_resource = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setNewResource(com.google.protobuf.Struct value) { + if (newResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + newResource_ = value; + } else { + newResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The new resource after the change.
      +     * 
      + * + * .google.protobuf.Struct new_resource = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setNewResource(com.google.protobuf.Struct.Builder builderForValue) { + if (newResourceBuilder_ == null) { + newResource_ = builderForValue.build(); + } else { + newResourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The new resource after the change.
      +     * 
      + * + * .google.protobuf.Struct new_resource = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeNewResource(com.google.protobuf.Struct value) { + if (newResourceBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && newResource_ != null + && newResource_ != com.google.protobuf.Struct.getDefaultInstance()) { + getNewResourceBuilder().mergeFrom(value); + } else { + newResource_ = value; + } + } else { + newResourceBuilder_.mergeFrom(value); + } + if (newResource_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. The new resource after the change.
      +     * 
      + * + * .google.protobuf.Struct new_resource = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearNewResource() { + bitField0_ = (bitField0_ & ~0x00000100); + newResource_ = null; + if (newResourceBuilder_ != null) { + newResourceBuilder_.dispose(); + newResourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The new resource after the change.
      +     * 
      + * + * .google.protobuf.Struct new_resource = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Struct.Builder getNewResourceBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return internalGetNewResourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. The new resource after the change.
      +     * 
      + * + * .google.protobuf.Struct new_resource = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.StructOrBuilder getNewResourceOrBuilder() { + if (newResourceBuilder_ != null) { + return newResourceBuilder_.getMessageOrBuilder(); + } else { + return newResource_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : newResource_; + } + } + + /** + * + * + *
      +     * Output only. The new resource after the change.
      +     * 
      + * + * .google.protobuf.Struct new_resource = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetNewResourceFieldBuilder() { + if (newResourceBuilder_ == null) { + newResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getNewResource(), getParentForChildren(), isClean()); + newResource_ = null; + } + return newResourceBuilder_; + } + + private java.util.List dependentResources_ = + java.util.Collections.emptyList(); + + private void ensureDependentResourcesIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + dependentResources_ = + new java.util.ArrayList(dependentResources_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + dependentResourcesBuilder_; + + /** + * + * + *
      +     * Output only. The dependent resources that were changed.
      +     * 
      + * + * + * repeated .google.protobuf.Struct dependent_resources = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getDependentResourcesList() { + if (dependentResourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(dependentResources_); + } else { + return dependentResourcesBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Output only. The dependent resources that were changed.
      +     * 
      + * + * + * repeated .google.protobuf.Struct dependent_resources = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getDependentResourcesCount() { + if (dependentResourcesBuilder_ == null) { + return dependentResources_.size(); + } else { + return dependentResourcesBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Output only. The dependent resources that were changed.
      +     * 
      + * + * + * repeated .google.protobuf.Struct dependent_resources = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Struct getDependentResources(int index) { + if (dependentResourcesBuilder_ == null) { + return dependentResources_.get(index); + } else { + return dependentResourcesBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Output only. The dependent resources that were changed.
      +     * 
      + * + * + * repeated .google.protobuf.Struct dependent_resources = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDependentResources(int index, com.google.protobuf.Struct value) { + if (dependentResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDependentResourcesIsMutable(); + dependentResources_.set(index, value); + onChanged(); + } else { + dependentResourcesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Output only. The dependent resources that were changed.
      +     * 
      + * + * + * repeated .google.protobuf.Struct dependent_resources = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDependentResources( + int index, com.google.protobuf.Struct.Builder builderForValue) { + if (dependentResourcesBuilder_ == null) { + ensureDependentResourcesIsMutable(); + dependentResources_.set(index, builderForValue.build()); + onChanged(); + } else { + dependentResourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Output only. The dependent resources that were changed.
      +     * 
      + * + * + * repeated .google.protobuf.Struct dependent_resources = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDependentResources(com.google.protobuf.Struct value) { + if (dependentResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDependentResourcesIsMutable(); + dependentResources_.add(value); + onChanged(); + } else { + dependentResourcesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Output only. The dependent resources that were changed.
      +     * 
      + * + * + * repeated .google.protobuf.Struct dependent_resources = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDependentResources(int index, com.google.protobuf.Struct value) { + if (dependentResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDependentResourcesIsMutable(); + dependentResources_.add(index, value); + onChanged(); + } else { + dependentResourcesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Output only. The dependent resources that were changed.
      +     * 
      + * + * + * repeated .google.protobuf.Struct dependent_resources = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDependentResources(com.google.protobuf.Struct.Builder builderForValue) { + if (dependentResourcesBuilder_ == null) { + ensureDependentResourcesIsMutable(); + dependentResources_.add(builderForValue.build()); + onChanged(); + } else { + dependentResourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Output only. The dependent resources that were changed.
      +     * 
      + * + * + * repeated .google.protobuf.Struct dependent_resources = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDependentResources( + int index, com.google.protobuf.Struct.Builder builderForValue) { + if (dependentResourcesBuilder_ == null) { + ensureDependentResourcesIsMutable(); + dependentResources_.add(index, builderForValue.build()); + onChanged(); + } else { + dependentResourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Output only. The dependent resources that were changed.
      +     * 
      + * + * + * repeated .google.protobuf.Struct dependent_resources = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllDependentResources( + java.lang.Iterable values) { + if (dependentResourcesBuilder_ == null) { + ensureDependentResourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dependentResources_); + onChanged(); + } else { + dependentResourcesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Output only. The dependent resources that were changed.
      +     * 
      + * + * + * repeated .google.protobuf.Struct dependent_resources = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDependentResources() { + if (dependentResourcesBuilder_ == null) { + dependentResources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + dependentResourcesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Output only. The dependent resources that were changed.
      +     * 
      + * + * + * repeated .google.protobuf.Struct dependent_resources = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeDependentResources(int index) { + if (dependentResourcesBuilder_ == null) { + ensureDependentResourcesIsMutable(); + dependentResources_.remove(index); + onChanged(); + } else { + dependentResourcesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Output only. The dependent resources that were changed.
      +     * 
      + * + * + * repeated .google.protobuf.Struct dependent_resources = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Struct.Builder getDependentResourcesBuilder(int index) { + return internalGetDependentResourcesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Output only. The dependent resources that were changed.
      +     * 
      + * + * + * repeated .google.protobuf.Struct dependent_resources = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.StructOrBuilder getDependentResourcesOrBuilder(int index) { + if (dependentResourcesBuilder_ == null) { + return dependentResources_.get(index); + } else { + return dependentResourcesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Output only. The dependent resources that were changed.
      +     * 
      + * + * + * repeated .google.protobuf.Struct dependent_resources = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDependentResourcesOrBuilderList() { + if (dependentResourcesBuilder_ != null) { + return dependentResourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dependentResources_); + } + } + + /** + * + * + *
      +     * Output only. The dependent resources that were changed.
      +     * 
      + * + * + * repeated .google.protobuf.Struct dependent_resources = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Struct.Builder addDependentResourcesBuilder() { + return internalGetDependentResourcesFieldBuilder() + .addBuilder(com.google.protobuf.Struct.getDefaultInstance()); + } + + /** + * + * + *
      +     * Output only. The dependent resources that were changed.
      +     * 
      + * + * + * repeated .google.protobuf.Struct dependent_resources = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Struct.Builder addDependentResourcesBuilder(int index) { + return internalGetDependentResourcesFieldBuilder() + .addBuilder(index, com.google.protobuf.Struct.getDefaultInstance()); + } + + /** + * + * + *
      +     * Output only. The dependent resources that were changed.
      +     * 
      + * + * + * repeated .google.protobuf.Struct dependent_resources = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getDependentResourcesBuilderList() { + return internalGetDependentResourcesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetDependentResourcesFieldBuilder() { + if (dependentResourcesBuilder_ == null) { + dependentResourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + dependentResources_, + ((bitField0_ & 0x00000200) != 0), + getParentForChildren(), + isClean()); + dependentResources_ = null; + } + return dependentResourcesBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
      +     * Output only. The time when the change was made.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
      +     * Output only. The time when the change was made.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 10 [(.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_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. The time when the change was made.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The time when the change was made.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The time when the change was made.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. The time when the change was made.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000400); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The time when the change was made.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. The time when the change was made.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 10 [(.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_; + } + } + + /** + * + * + *
      +     * Output only. The time when the change was made.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private long sequenceNumber_; + + /** + * + * + *
      +     * Output only. The monotonically increasing sequence number of the changelog.
      +     * 
      + * + * int64 sequence_number = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sequenceNumber. + */ + @java.lang.Override + public long getSequenceNumber() { + return sequenceNumber_; + } + + /** + * + * + *
      +     * Output only. The monotonically increasing sequence number of the changelog.
      +     * 
      + * + * int64 sequence_number = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The sequenceNumber to set. + * @return This builder for chaining. + */ + public Builder setSequenceNumber(long value) { + + sequenceNumber_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The monotonically increasing sequence number of the changelog.
      +     * 
      + * + * int64 sequence_number = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSequenceNumber() { + bitField0_ = (bitField0_ & ~0x00000800); + sequenceNumber_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Changelog) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.Changelog) + private static final com.google.cloud.ces.v1.Changelog DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.Changelog(); + } + + public static com.google.cloud.ces.v1.Changelog getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Changelog parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Changelog getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChangelogName.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChangelogName.java new file mode 100644 index 000000000000..4950fe152f6d --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChangelogName.java @@ -0,0 +1,257 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ChangelogName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_APP_CHANGELOG = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/apps/{app}/changelogs/{changelog}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String app; + private final String changelog; + + @Deprecated + protected ChangelogName() { + project = null; + location = null; + app = null; + changelog = null; + } + + private ChangelogName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + app = Preconditions.checkNotNull(builder.getApp()); + changelog = Preconditions.checkNotNull(builder.getChangelog()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getApp() { + return app; + } + + public String getChangelog() { + return changelog; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ChangelogName of(String project, String location, String app, String changelog) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setApp(app) + .setChangelog(changelog) + .build(); + } + + public static String format(String project, String location, String app, String changelog) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setApp(app) + .setChangelog(changelog) + .build() + .toString(); + } + + public static ChangelogName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_APP_CHANGELOG.validatedMatch( + formattedString, "ChangelogName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("app"), + matchMap.get("changelog")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ChangelogName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_APP_CHANGELOG.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (app != null) { + fieldMapBuilder.put("app", app); + } + if (changelog != null) { + fieldMapBuilder.put("changelog", changelog); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_APP_CHANGELOG.instantiate( + "project", project, "location", location, "app", app, "changelog", changelog); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ChangelogName that = ((ChangelogName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.app, that.app) + && Objects.equals(this.changelog, that.changelog); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(app); + h *= 1000003; + h ^= Objects.hashCode(changelog); + return h; + } + + /** Builder for projects/{project}/locations/{location}/apps/{app}/changelogs/{changelog}. */ + public static class Builder { + private String project; + private String location; + private String app; + private String changelog; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getApp() { + return app; + } + + public String getChangelog() { + return changelog; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setApp(String app) { + this.app = app; + return this; + } + + public Builder setChangelog(String changelog) { + this.changelog = changelog; + return this; + } + + private Builder(ChangelogName changelogName) { + this.project = changelogName.project; + this.location = changelogName.location; + this.app = changelogName.app; + this.changelog = changelogName.changelog; + } + + public ChangelogName build() { + return new ChangelogName(this); + } + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChangelogOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChangelogOrBuilder.java new file mode 100644 index 000000000000..178693354516 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChangelogOrBuilder.java @@ -0,0 +1,420 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/changelog.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ChangelogOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.Changelog) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Identifier. The unique identifier of the changelog.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/changelogs/{changelog}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Identifier. The unique identifier of the changelog.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/changelogs/{changelog}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Output only. Email address of the change author.
      +   * 
      + * + * string author = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The author. + */ + java.lang.String getAuthor(); + + /** + * + * + *
      +   * Output only. Email address of the change author.
      +   * 
      + * + * string author = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for author. + */ + com.google.protobuf.ByteString getAuthorBytes(); + + /** + * + * + *
      +   * Output only. Display name of the change. It typically should be the display
      +   * name of the resource that was changed.
      +   * 
      + * + * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
      +   * Output only. Display name of the change. It typically should be the display
      +   * name of the resource that was changed.
      +   * 
      + * + * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
      +   * Output only. Description of the change. which typically captures the
      +   * changed fields in the resource.
      +   * 
      + * + * string description = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
      +   * Output only. Description of the change. which typically captures the
      +   * changed fields in the resource.
      +   * 
      + * + * string description = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
      +   * Output only. The resource that was changed.
      +   * 
      + * + * string resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resource. + */ + java.lang.String getResource(); + + /** + * + * + *
      +   * Output only. The resource that was changed.
      +   * 
      + * + * string resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resource. + */ + com.google.protobuf.ByteString getResourceBytes(); + + /** + * + * + *
      +   * Output only. The type of the resource that was changed.
      +   * 
      + * + * string resource_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resourceType. + */ + java.lang.String getResourceType(); + + /** + * + * + *
      +   * Output only. The type of the resource that was changed.
      +   * 
      + * + * string resource_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resourceType. + */ + com.google.protobuf.ByteString getResourceTypeBytes(); + + /** + * + * + *
      +   * Output only. The action that was performed on the resource.
      +   * 
      + * + * string action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The action. + */ + java.lang.String getAction(); + + /** + * + * + *
      +   * Output only. The action that was performed on the resource.
      +   * 
      + * + * string action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for action. + */ + com.google.protobuf.ByteString getActionBytes(); + + /** + * + * + *
      +   * Output only. The original resource before the change.
      +   * 
      + * + * + * .google.protobuf.Struct original_resource = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the originalResource field is set. + */ + boolean hasOriginalResource(); + + /** + * + * + *
      +   * Output only. The original resource before the change.
      +   * 
      + * + * + * .google.protobuf.Struct original_resource = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The originalResource. + */ + com.google.protobuf.Struct getOriginalResource(); + + /** + * + * + *
      +   * Output only. The original resource before the change.
      +   * 
      + * + * + * .google.protobuf.Struct original_resource = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.StructOrBuilder getOriginalResourceOrBuilder(); + + /** + * + * + *
      +   * Output only. The new resource after the change.
      +   * 
      + * + * .google.protobuf.Struct new_resource = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the newResource field is set. + */ + boolean hasNewResource(); + + /** + * + * + *
      +   * Output only. The new resource after the change.
      +   * 
      + * + * .google.protobuf.Struct new_resource = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The newResource. + */ + com.google.protobuf.Struct getNewResource(); + + /** + * + * + *
      +   * Output only. The new resource after the change.
      +   * 
      + * + * .google.protobuf.Struct new_resource = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.StructOrBuilder getNewResourceOrBuilder(); + + /** + * + * + *
      +   * Output only. The dependent resources that were changed.
      +   * 
      + * + * + * repeated .google.protobuf.Struct dependent_resources = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getDependentResourcesList(); + + /** + * + * + *
      +   * Output only. The dependent resources that were changed.
      +   * 
      + * + * + * repeated .google.protobuf.Struct dependent_resources = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.Struct getDependentResources(int index); + + /** + * + * + *
      +   * Output only. The dependent resources that were changed.
      +   * 
      + * + * + * repeated .google.protobuf.Struct dependent_resources = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getDependentResourcesCount(); + + /** + * + * + *
      +   * Output only. The dependent resources that were changed.
      +   * 
      + * + * + * repeated .google.protobuf.Struct dependent_resources = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getDependentResourcesOrBuilderList(); + + /** + * + * + *
      +   * Output only. The dependent resources that were changed.
      +   * 
      + * + * + * repeated .google.protobuf.Struct dependent_resources = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.StructOrBuilder getDependentResourcesOrBuilder(int index); + + /** + * + * + *
      +   * Output only. The time when the change was made.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
      +   * Output only. The time when the change was made.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
      +   * Output only. The time when the change was made.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
      +   * Output only. The monotonically increasing sequence number of the changelog.
      +   * 
      + * + * int64 sequence_number = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sequenceNumber. + */ + long getSequenceNumber(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChangelogProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChangelogProto.java new file mode 100644 index 000000000000..dab88bb450ee --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChangelogProto.java @@ -0,0 +1,124 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/changelog.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class ChangelogProto extends com.google.protobuf.GeneratedFile { + private ChangelogProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ChangelogProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Changelog_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Changelog_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "#google/cloud/ces/v1/changelog.proto\022\023g" + + "oogle.cloud.ces.v1\032\037google/api/field_beh" + + "avior.proto\032\031google/api/resource.proto\032\034" + + "google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\263\004\n" + + "\tChangelog\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\023\n" + + "\006author\030\002 \001(\tB\003\340A\003\022\031\n" + + "\014display_name\030\003 \001(\tB\003\340A\003\022\030\n" + + "\013description\030\013 \001(\tB\003\340A\003\022\025\n" + + "\010resource\030\004 \001(\tB\003\340A\003\022\032\n\r" + + "resource_type\030\005 \001(\tB\003\340A\003\022\023\n" + + "\006action\030\006 \001(\tB\003\340A\003\0227\n" + + "\021original_resource\030\007" + + " \001(\0132\027.google.protobuf.StructB\003\340A\003\0222\n" + + "\014new_resource\030\010 \001(\0132\027.google.protobuf.StructB\003\340A\003\0229\n" + + "\023dependent_resources\030\t" + + " \003(\0132\027.google.protobuf.StructB\003\340A\003\0224\n" + + "\013create_time\030\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\034\n" + + "\017sequence_number\030\014 \001(\003B\003\340A\003:\204\001\352A\200\001\n" + + "\034ces.googleapis.com/Changelog\022Iprojects/{project}/locations/" + + "{location}/apps/{app}/changelogs/{changelog}*\n" + + "changelogs2\tchangelogBV\n" + + "\027com.google.cloud.ces.v1B\016ChangelogProtoP\001Z)cloud." + + "google.com/go/ces/apiv1/cespb;cespbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_Changelog_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_Changelog_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Changelog_descriptor, + new java.lang.String[] { + "Name", + "Author", + "DisplayName", + "Description", + "Resource", + "ResourceType", + "Action", + "OriginalResource", + "NewResource", + "DependentResources", + "CreateTime", + "SequenceNumber", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfile.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfile.java new file mode 100644 index 000000000000..644facb97c1a --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfile.java @@ -0,0 +1,5784 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/common.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * A ChannelProfile configures the agent's behavior for a specific communication
      + * channel, such as web UI or telephony.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ChannelProfile} + */ +@com.google.protobuf.Generated +public final class ChannelProfile extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ChannelProfile) + ChannelProfileOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ChannelProfile"); + } + + // Use ChannelProfile.newBuilder() to construct. + private ChannelProfile(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ChannelProfile() { + profileId_ = ""; + channelType_ = 0; + noiseSuppressionLevel_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ChannelProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ChannelProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ChannelProfile.class, + com.google.cloud.ces.v1.ChannelProfile.Builder.class); + } + + /** + * + * + *
      +   * The type of the channel profile.
      +   * 
      + * + * Protobuf enum {@code google.cloud.ces.v1.ChannelProfile.ChannelType} + */ + public enum ChannelType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Unknown channel type.
      +     * 
      + * + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + * + * + *
      +     * Web UI channel.
      +     * 
      + * + * WEB_UI = 2; + */ + WEB_UI(2), + /** + * + * + *
      +     * API channel.
      +     * 
      + * + * API = 3; + */ + API(3), + /** + * + * + *
      +     * Twilio channel.
      +     * 
      + * + * TWILIO = 4; + */ + TWILIO(4), + /** + * + * + *
      +     * Google Telephony Platform channel.
      +     * 
      + * + * GOOGLE_TELEPHONY_PLATFORM = 5; + */ + GOOGLE_TELEPHONY_PLATFORM(5), + /** + * + * + *
      +     * Contact Center as a Service (CCaaS) channel.
      +     * 
      + * + * CONTACT_CENTER_AS_A_SERVICE = 6; + */ + CONTACT_CENTER_AS_A_SERVICE(6), + /** + * + * + *
      +     * Five9 channel.
      +     * 
      + * + * FIVE9 = 7; + */ + FIVE9(7), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ChannelType"); + } + + /** + * + * + *
      +     * Unknown channel type.
      +     * 
      + * + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + + /** + * + * + *
      +     * Web UI channel.
      +     * 
      + * + * WEB_UI = 2; + */ + public static final int WEB_UI_VALUE = 2; + + /** + * + * + *
      +     * API channel.
      +     * 
      + * + * API = 3; + */ + public static final int API_VALUE = 3; + + /** + * + * + *
      +     * Twilio channel.
      +     * 
      + * + * TWILIO = 4; + */ + public static final int TWILIO_VALUE = 4; + + /** + * + * + *
      +     * Google Telephony Platform channel.
      +     * 
      + * + * GOOGLE_TELEPHONY_PLATFORM = 5; + */ + public static final int GOOGLE_TELEPHONY_PLATFORM_VALUE = 5; + + /** + * + * + *
      +     * Contact Center as a Service (CCaaS) channel.
      +     * 
      + * + * CONTACT_CENTER_AS_A_SERVICE = 6; + */ + public static final int CONTACT_CENTER_AS_A_SERVICE_VALUE = 6; + + /** + * + * + *
      +     * Five9 channel.
      +     * 
      + * + * FIVE9 = 7; + */ + public static final int FIVE9_VALUE = 7; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ChannelType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ChannelType forNumber(int value) { + switch (value) { + case 0: + return UNKNOWN; + case 2: + return WEB_UI; + case 3: + return API; + case 4: + return TWILIO; + case 5: + return GOOGLE_TELEPHONY_PLATFORM; + case 6: + return CONTACT_CENTER_AS_A_SERVICE; + case 7: + return FIVE9; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ChannelType findValueByNumber(int number) { + return ChannelType.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.ChannelProfile.getDescriptor().getEnumTypes().get(0); + } + + private static final ChannelType[] VALUES = values(); + + public static ChannelType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ChannelType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.ChannelProfile.ChannelType) + } + + public interface PersonaPropertyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ChannelProfile.PersonaProperty) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Optional. The persona of the channel.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.PersonaProperty.Persona persona = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for persona. + */ + int getPersonaValue(); + + /** + * + * + *
      +     * Optional. The persona of the channel.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.PersonaProperty.Persona persona = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The persona. + */ + com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.Persona getPersona(); + } + + /** + * + * + *
      +   * Represents the persona property of a channel.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ChannelProfile.PersonaProperty} + */ + public static final class PersonaProperty extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ChannelProfile.PersonaProperty) + PersonaPropertyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PersonaProperty"); + } + + // Use PersonaProperty.newBuilder() to construct. + private PersonaProperty(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PersonaProperty() { + persona_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ChannelProfile_PersonaProperty_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ChannelProfile_PersonaProperty_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.class, + com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.Builder.class); + } + + /** + * + * + *
      +     * The persona of the channel.
      +     * 
      + * + * Protobuf enum {@code google.cloud.ces.v1.ChannelProfile.PersonaProperty.Persona} + */ + public enum Persona implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +       * UNKNOWN persona.
      +       * 
      + * + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + * + * + *
      +       * The agent keeps the responses concise and to the point
      +       * 
      + * + * CONCISE = 1; + */ + CONCISE(1), + /** + * + * + *
      +       * The agent provides additional context, explanations, and details
      +       * 
      + * + * CHATTY = 2; + */ + CHATTY(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Persona"); + } + + /** + * + * + *
      +       * UNKNOWN persona.
      +       * 
      + * + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + + /** + * + * + *
      +       * The agent keeps the responses concise and to the point
      +       * 
      + * + * CONCISE = 1; + */ + public static final int CONCISE_VALUE = 1; + + /** + * + * + *
      +       * The agent provides additional context, explanations, and details
      +       * 
      + * + * CHATTY = 2; + */ + public static final int CHATTY_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Persona valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Persona forNumber(int value) { + switch (value) { + case 0: + return UNKNOWN; + case 1: + return CONCISE; + case 2: + return CHATTY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Persona findValueByNumber(int number) { + return Persona.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Persona[] VALUES = values(); + + public static Persona valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Persona(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.ChannelProfile.PersonaProperty.Persona) + } + + public static final int PERSONA_FIELD_NUMBER = 1; + private int persona_ = 0; + + /** + * + * + *
      +     * Optional. The persona of the channel.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.PersonaProperty.Persona persona = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for persona. + */ + @java.lang.Override + public int getPersonaValue() { + return persona_; + } + + /** + * + * + *
      +     * Optional. The persona of the channel.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.PersonaProperty.Persona persona = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The persona. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.Persona getPersona() { + com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.Persona result = + com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.Persona.forNumber(persona_); + return result == null + ? com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.Persona.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (persona_ + != com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.Persona.UNKNOWN.getNumber()) { + output.writeEnum(1, persona_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (persona_ + != com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.Persona.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, persona_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ChannelProfile.PersonaProperty)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ChannelProfile.PersonaProperty other = + (com.google.cloud.ces.v1.ChannelProfile.PersonaProperty) obj; + + if (persona_ != other.persona_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PERSONA_FIELD_NUMBER; + hash = (53 * hash) + persona_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ChannelProfile.PersonaProperty parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ChannelProfile.PersonaProperty parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ChannelProfile.PersonaProperty parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ChannelProfile.PersonaProperty parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ChannelProfile.PersonaProperty parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ChannelProfile.PersonaProperty parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ChannelProfile.PersonaProperty parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ChannelProfile.PersonaProperty parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ChannelProfile.PersonaProperty parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ChannelProfile.PersonaProperty parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ChannelProfile.PersonaProperty parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ChannelProfile.PersonaProperty parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.ChannelProfile.PersonaProperty prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Represents the persona property of a channel.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ChannelProfile.PersonaProperty} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ChannelProfile.PersonaProperty) + com.google.cloud.ces.v1.ChannelProfile.PersonaPropertyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ChannelProfile_PersonaProperty_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ChannelProfile_PersonaProperty_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.class, + com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + persona_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ChannelProfile_PersonaProperty_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.PersonaProperty getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.PersonaProperty build() { + com.google.cloud.ces.v1.ChannelProfile.PersonaProperty result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.PersonaProperty buildPartial() { + com.google.cloud.ces.v1.ChannelProfile.PersonaProperty result = + new com.google.cloud.ces.v1.ChannelProfile.PersonaProperty(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ChannelProfile.PersonaProperty result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.persona_ = persona_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ChannelProfile.PersonaProperty) { + return mergeFrom((com.google.cloud.ces.v1.ChannelProfile.PersonaProperty) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ChannelProfile.PersonaProperty other) { + if (other == com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.getDefaultInstance()) + return this; + if (other.persona_ != 0) { + setPersonaValue(other.getPersonaValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + persona_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int persona_ = 0; + + /** + * + * + *
      +       * Optional. The persona of the channel.
      +       * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.PersonaProperty.Persona persona = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for persona. + */ + @java.lang.Override + public int getPersonaValue() { + return persona_; + } + + /** + * + * + *
      +       * Optional. The persona of the channel.
      +       * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.PersonaProperty.Persona persona = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for persona to set. + * @return This builder for chaining. + */ + public Builder setPersonaValue(int value) { + persona_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The persona of the channel.
      +       * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.PersonaProperty.Persona persona = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The persona. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.Persona getPersona() { + com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.Persona result = + com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.Persona.forNumber(persona_); + return result == null + ? com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.Persona.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +       * Optional. The persona of the channel.
      +       * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.PersonaProperty.Persona persona = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The persona to set. + * @return This builder for chaining. + */ + public Builder setPersona( + com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.Persona value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + persona_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The persona of the channel.
      +       * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.PersonaProperty.Persona persona = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearPersona() { + bitField0_ = (bitField0_ & ~0x00000001); + persona_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ChannelProfile.PersonaProperty) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ChannelProfile.PersonaProperty) + private static final com.google.cloud.ces.v1.ChannelProfile.PersonaProperty DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ChannelProfile.PersonaProperty(); + } + + public static com.google.cloud.ces.v1.ChannelProfile.PersonaProperty getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PersonaProperty parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.PersonaProperty getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface WebWidgetConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ChannelProfile.WebWidgetConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Optional. The modality of the web widget.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Modality modality = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for modality. + */ + int getModalityValue(); + + /** + * + * + *
      +     * Optional. The modality of the web widget.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Modality modality = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modality. + */ + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Modality getModality(); + + /** + * + * + *
      +     * Optional. The theme of the web widget.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Theme theme = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for theme. + */ + int getThemeValue(); + + /** + * + * + *
      +     * Optional. The theme of the web widget.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Theme theme = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The theme. + */ + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Theme getTheme(); + + /** + * + * + *
      +     * Optional. The title of the web widget.
      +     * 
      + * + * string web_widget_title = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The webWidgetTitle. + */ + java.lang.String getWebWidgetTitle(); + + /** + * + * + *
      +     * Optional. The title of the web widget.
      +     * 
      + * + * string web_widget_title = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for webWidgetTitle. + */ + com.google.protobuf.ByteString getWebWidgetTitleBytes(); + + /** + * + * + *
      +     * Optional. The security settings of the web widget.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings security_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the securitySettings field is set. + */ + boolean hasSecuritySettings(); + + /** + * + * + *
      +     * Optional. The security settings of the web widget.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings security_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The securitySettings. + */ + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings getSecuritySettings(); + + /** + * + * + *
      +     * Optional. The security settings of the web widget.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings security_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettingsOrBuilder + getSecuritySettingsOrBuilder(); + } + + /** + * + * + *
      +   * Message for configuration for the web widget.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ChannelProfile.WebWidgetConfig} + */ + public static final class WebWidgetConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ChannelProfile.WebWidgetConfig) + WebWidgetConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "WebWidgetConfig"); + } + + // Use WebWidgetConfig.newBuilder() to construct. + private WebWidgetConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private WebWidgetConfig() { + modality_ = 0; + theme_ = 0; + webWidgetTitle_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ChannelProfile_WebWidgetConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ChannelProfile_WebWidgetConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.class, + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Builder.class); + } + + /** + * + * + *
      +     * Modality of the web widget.
      +     * 
      + * + * Protobuf enum {@code google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Modality} + */ + public enum Modality implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +       * Unknown modality.
      +       * 
      + * + * MODALITY_UNSPECIFIED = 0; + */ + MODALITY_UNSPECIFIED(0), + /** + * + * + *
      +       * Widget supports both chat and voice input.
      +       * 
      + * + * CHAT_AND_VOICE = 1; + */ + CHAT_AND_VOICE(1), + /** + * + * + *
      +       * Widget supports only voice input.
      +       * 
      + * + * VOICE_ONLY = 2; + */ + VOICE_ONLY(2), + /** + * + * + *
      +       * Widget supports only chat input.
      +       * 
      + * + * CHAT_ONLY = 3; + */ + CHAT_ONLY(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Modality"); + } + + /** + * + * + *
      +       * Unknown modality.
      +       * 
      + * + * MODALITY_UNSPECIFIED = 0; + */ + public static final int MODALITY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +       * Widget supports both chat and voice input.
      +       * 
      + * + * CHAT_AND_VOICE = 1; + */ + public static final int CHAT_AND_VOICE_VALUE = 1; + + /** + * + * + *
      +       * Widget supports only voice input.
      +       * 
      + * + * VOICE_ONLY = 2; + */ + public static final int VOICE_ONLY_VALUE = 2; + + /** + * + * + *
      +       * Widget supports only chat input.
      +       * 
      + * + * CHAT_ONLY = 3; + */ + public static final int CHAT_ONLY_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Modality valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Modality forNumber(int value) { + switch (value) { + case 0: + return MODALITY_UNSPECIFIED; + case 1: + return CHAT_AND_VOICE; + case 2: + return VOICE_ONLY; + case 3: + return CHAT_ONLY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Modality findValueByNumber(int number) { + return Modality.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Modality[] VALUES = values(); + + public static Modality valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Modality(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Modality) + } + + /** + * + * + *
      +     * Theme of the web widget.
      +     * 
      + * + * Protobuf enum {@code google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Theme} + */ + public enum Theme implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +       * Unknown theme.
      +       * 
      + * + * THEME_UNSPECIFIED = 0; + */ + THEME_UNSPECIFIED(0), + /** + * + * + *
      +       * Light theme.
      +       * 
      + * + * LIGHT = 1; + */ + LIGHT(1), + /** + * + * + *
      +       * Dark theme.
      +       * 
      + * + * DARK = 2; + */ + DARK(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Theme"); + } + + /** + * + * + *
      +       * Unknown theme.
      +       * 
      + * + * THEME_UNSPECIFIED = 0; + */ + public static final int THEME_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +       * Light theme.
      +       * 
      + * + * LIGHT = 1; + */ + public static final int LIGHT_VALUE = 1; + + /** + * + * + *
      +       * Dark theme.
      +       * 
      + * + * DARK = 2; + */ + public static final int DARK_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Theme valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Theme forNumber(int value) { + switch (value) { + case 0: + return THEME_UNSPECIFIED; + case 1: + return LIGHT; + case 2: + return DARK; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Theme findValueByNumber(int number) { + return Theme.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final Theme[] VALUES = values(); + + public static Theme valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Theme(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Theme) + } + + public interface SecuritySettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +       * Optional. Indicates whether public access to the web widget is enabled.
      +       * If `true`, the web widget will be publicly accessible.
      +       * If `false`, the web widget must be integrated with your own
      +       * authentication and authorization system to return valid credentials for
      +       * accessing the CES agent.
      +       * 
      + * + * bool enable_public_access = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enablePublicAccess. + */ + boolean getEnablePublicAccess(); + + /** + * + * + *
      +       * Optional. Indicates whether origin check for the web widget is enabled.
      +       * If `true`, the web widget will check the origin of the website that
      +       * loads the web widget and only allow it to be loaded in the same origin
      +       * or any of the allowed origins.
      +       * 
      + * + * bool enable_origin_check = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableOriginCheck. + */ + boolean getEnableOriginCheck(); + + /** + * + * + *
      +       * Optional. The origins that are allowed to host the web widget. An
      +       * origin is defined by RFC 6454. If empty, all origins are allowed. A
      +       * maximum of 100 origins is allowed. Example: "https://example.com"
      +       * 
      + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the allowedOrigins. + */ + java.util.List getAllowedOriginsList(); + + /** + * + * + *
      +       * Optional. The origins that are allowed to host the web widget. An
      +       * origin is defined by RFC 6454. If empty, all origins are allowed. A
      +       * maximum of 100 origins is allowed. Example: "https://example.com"
      +       * 
      + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of allowedOrigins. + */ + int getAllowedOriginsCount(); + + /** + * + * + *
      +       * Optional. The origins that are allowed to host the web widget. An
      +       * origin is defined by RFC 6454. If empty, all origins are allowed. A
      +       * maximum of 100 origins is allowed. Example: "https://example.com"
      +       * 
      + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The allowedOrigins at the given index. + */ + java.lang.String getAllowedOrigins(int index); + + /** + * + * + *
      +       * Optional. The origins that are allowed to host the web widget. An
      +       * origin is defined by RFC 6454. If empty, all origins are allowed. A
      +       * maximum of 100 origins is allowed. Example: "https://example.com"
      +       * 
      + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the allowedOrigins at the given index. + */ + com.google.protobuf.ByteString getAllowedOriginsBytes(int index); + + /** + * + * + *
      +       * Optional. Indicates whether reCAPTCHA verification for the web widget
      +       * is enabled.
      +       * 
      + * + * bool enable_recaptcha = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableRecaptcha. + */ + boolean getEnableRecaptcha(); + } + + /** + * + * + *
      +     * Security settings for the web widget.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings} + */ + public static final class SecuritySettings extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings) + SecuritySettingsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SecuritySettings"); + } + + // Use SecuritySettings.newBuilder() to construct. + private SecuritySettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SecuritySettings() { + allowedOrigins_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ChannelProfile_WebWidgetConfig_SecuritySettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ChannelProfile_WebWidgetConfig_SecuritySettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings.class, + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings.Builder + .class); + } + + public static final int ENABLE_PUBLIC_ACCESS_FIELD_NUMBER = 1; + private boolean enablePublicAccess_ = false; + + /** + * + * + *
      +       * Optional. Indicates whether public access to the web widget is enabled.
      +       * If `true`, the web widget will be publicly accessible.
      +       * If `false`, the web widget must be integrated with your own
      +       * authentication and authorization system to return valid credentials for
      +       * accessing the CES agent.
      +       * 
      + * + * bool enable_public_access = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enablePublicAccess. + */ + @java.lang.Override + public boolean getEnablePublicAccess() { + return enablePublicAccess_; + } + + public static final int ENABLE_ORIGIN_CHECK_FIELD_NUMBER = 4; + private boolean enableOriginCheck_ = false; + + /** + * + * + *
      +       * Optional. Indicates whether origin check for the web widget is enabled.
      +       * If `true`, the web widget will check the origin of the website that
      +       * loads the web widget and only allow it to be loaded in the same origin
      +       * or any of the allowed origins.
      +       * 
      + * + * bool enable_origin_check = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableOriginCheck. + */ + @java.lang.Override + public boolean getEnableOriginCheck() { + return enableOriginCheck_; + } + + public static final int ALLOWED_ORIGINS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList allowedOrigins_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +       * Optional. The origins that are allowed to host the web widget. An
      +       * origin is defined by RFC 6454. If empty, all origins are allowed. A
      +       * maximum of 100 origins is allowed. Example: "https://example.com"
      +       * 
      + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the allowedOrigins. + */ + public com.google.protobuf.ProtocolStringList getAllowedOriginsList() { + return allowedOrigins_; + } + + /** + * + * + *
      +       * Optional. The origins that are allowed to host the web widget. An
      +       * origin is defined by RFC 6454. If empty, all origins are allowed. A
      +       * maximum of 100 origins is allowed. Example: "https://example.com"
      +       * 
      + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of allowedOrigins. + */ + public int getAllowedOriginsCount() { + return allowedOrigins_.size(); + } + + /** + * + * + *
      +       * Optional. The origins that are allowed to host the web widget. An
      +       * origin is defined by RFC 6454. If empty, all origins are allowed. A
      +       * maximum of 100 origins is allowed. Example: "https://example.com"
      +       * 
      + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The allowedOrigins at the given index. + */ + public java.lang.String getAllowedOrigins(int index) { + return allowedOrigins_.get(index); + } + + /** + * + * + *
      +       * Optional. The origins that are allowed to host the web widget. An
      +       * origin is defined by RFC 6454. If empty, all origins are allowed. A
      +       * maximum of 100 origins is allowed. Example: "https://example.com"
      +       * 
      + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the allowedOrigins at the given index. + */ + public com.google.protobuf.ByteString getAllowedOriginsBytes(int index) { + return allowedOrigins_.getByteString(index); + } + + public static final int ENABLE_RECAPTCHA_FIELD_NUMBER = 3; + private boolean enableRecaptcha_ = false; + + /** + * + * + *
      +       * Optional. Indicates whether reCAPTCHA verification for the web widget
      +       * is enabled.
      +       * 
      + * + * bool enable_recaptcha = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableRecaptcha. + */ + @java.lang.Override + public boolean getEnableRecaptcha() { + return enableRecaptcha_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enablePublicAccess_ != false) { + output.writeBool(1, enablePublicAccess_); + } + for (int i = 0; i < allowedOrigins_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, allowedOrigins_.getRaw(i)); + } + if (enableRecaptcha_ != false) { + output.writeBool(3, enableRecaptcha_); + } + if (enableOriginCheck_ != false) { + output.writeBool(4, enableOriginCheck_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enablePublicAccess_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enablePublicAccess_); + } + { + int dataSize = 0; + for (int i = 0; i < allowedOrigins_.size(); i++) { + dataSize += computeStringSizeNoTag(allowedOrigins_.getRaw(i)); + } + size += dataSize; + size += 1 * getAllowedOriginsList().size(); + } + if (enableRecaptcha_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableRecaptcha_); + } + if (enableOriginCheck_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, enableOriginCheck_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings other = + (com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings) obj; + + if (getEnablePublicAccess() != other.getEnablePublicAccess()) return false; + if (getEnableOriginCheck() != other.getEnableOriginCheck()) return false; + if (!getAllowedOriginsList().equals(other.getAllowedOriginsList())) return false; + if (getEnableRecaptcha() != other.getEnableRecaptcha()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLE_PUBLIC_ACCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePublicAccess()); + hash = (37 * hash) + ENABLE_ORIGIN_CHECK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableOriginCheck()); + if (getAllowedOriginsCount() > 0) { + hash = (37 * hash) + ALLOWED_ORIGINS_FIELD_NUMBER; + hash = (53 * hash) + getAllowedOriginsList().hashCode(); + } + hash = (37 * hash) + ENABLE_RECAPTCHA_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableRecaptcha()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +       * Security settings for the web widget.
      +       * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings) + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ChannelProfile_WebWidgetConfig_SecuritySettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ChannelProfile_WebWidgetConfig_SecuritySettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings.class, + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings.Builder + .class); + } + + // Construct using + // com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enablePublicAccess_ = false; + enableOriginCheck_ = false; + allowedOrigins_ = com.google.protobuf.LazyStringArrayList.emptyList(); + enableRecaptcha_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ChannelProfile_WebWidgetConfig_SecuritySettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings + getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings build() { + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings + buildPartial() { + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings result = + new com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enablePublicAccess_ = enablePublicAccess_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enableOriginCheck_ = enableOriginCheck_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + allowedOrigins_.makeImmutable(); + result.allowedOrigins_ = allowedOrigins_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.enableRecaptcha_ = enableRecaptcha_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings) { + return mergeFrom( + (com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings other) { + if (other + == com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings + .getDefaultInstance()) return this; + if (other.getEnablePublicAccess() != false) { + setEnablePublicAccess(other.getEnablePublicAccess()); + } + if (other.getEnableOriginCheck() != false) { + setEnableOriginCheck(other.getEnableOriginCheck()); + } + if (!other.allowedOrigins_.isEmpty()) { + if (allowedOrigins_.isEmpty()) { + allowedOrigins_ = other.allowedOrigins_; + bitField0_ |= 0x00000004; + } else { + ensureAllowedOriginsIsMutable(); + allowedOrigins_.addAll(other.allowedOrigins_); + } + onChanged(); + } + if (other.getEnableRecaptcha() != false) { + setEnableRecaptcha(other.getEnableRecaptcha()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enablePublicAccess_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedOriginsIsMutable(); + allowedOrigins_.add(s); + break; + } // case 18 + case 24: + { + enableRecaptcha_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 24 + case 32: + { + enableOriginCheck_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean enablePublicAccess_; + + /** + * + * + *
      +         * Optional. Indicates whether public access to the web widget is enabled.
      +         * If `true`, the web widget will be publicly accessible.
      +         * If `false`, the web widget must be integrated with your own
      +         * authentication and authorization system to return valid credentials for
      +         * accessing the CES agent.
      +         * 
      + * + * bool enable_public_access = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enablePublicAccess. + */ + @java.lang.Override + public boolean getEnablePublicAccess() { + return enablePublicAccess_; + } + + /** + * + * + *
      +         * Optional. Indicates whether public access to the web widget is enabled.
      +         * If `true`, the web widget will be publicly accessible.
      +         * If `false`, the web widget must be integrated with your own
      +         * authentication and authorization system to return valid credentials for
      +         * accessing the CES agent.
      +         * 
      + * + * bool enable_public_access = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enablePublicAccess to set. + * @return This builder for chaining. + */ + public Builder setEnablePublicAccess(boolean value) { + + enablePublicAccess_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +         * Optional. Indicates whether public access to the web widget is enabled.
      +         * If `true`, the web widget will be publicly accessible.
      +         * If `false`, the web widget must be integrated with your own
      +         * authentication and authorization system to return valid credentials for
      +         * accessing the CES agent.
      +         * 
      + * + * bool enable_public_access = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnablePublicAccess() { + bitField0_ = (bitField0_ & ~0x00000001); + enablePublicAccess_ = false; + onChanged(); + return this; + } + + private boolean enableOriginCheck_; + + /** + * + * + *
      +         * Optional. Indicates whether origin check for the web widget is enabled.
      +         * If `true`, the web widget will check the origin of the website that
      +         * loads the web widget and only allow it to be loaded in the same origin
      +         * or any of the allowed origins.
      +         * 
      + * + * bool enable_origin_check = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableOriginCheck. + */ + @java.lang.Override + public boolean getEnableOriginCheck() { + return enableOriginCheck_; + } + + /** + * + * + *
      +         * Optional. Indicates whether origin check for the web widget is enabled.
      +         * If `true`, the web widget will check the origin of the website that
      +         * loads the web widget and only allow it to be loaded in the same origin
      +         * or any of the allowed origins.
      +         * 
      + * + * bool enable_origin_check = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableOriginCheck to set. + * @return This builder for chaining. + */ + public Builder setEnableOriginCheck(boolean value) { + + enableOriginCheck_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +         * Optional. Indicates whether origin check for the web widget is enabled.
      +         * If `true`, the web widget will check the origin of the website that
      +         * loads the web widget and only allow it to be loaded in the same origin
      +         * or any of the allowed origins.
      +         * 
      + * + * bool enable_origin_check = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnableOriginCheck() { + bitField0_ = (bitField0_ & ~0x00000002); + enableOriginCheck_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList allowedOrigins_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAllowedOriginsIsMutable() { + if (!allowedOrigins_.isModifiable()) { + allowedOrigins_ = new com.google.protobuf.LazyStringArrayList(allowedOrigins_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
      +         * Optional. The origins that are allowed to host the web widget. An
      +         * origin is defined by RFC 6454. If empty, all origins are allowed. A
      +         * maximum of 100 origins is allowed. Example: "https://example.com"
      +         * 
      + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the allowedOrigins. + */ + public com.google.protobuf.ProtocolStringList getAllowedOriginsList() { + allowedOrigins_.makeImmutable(); + return allowedOrigins_; + } + + /** + * + * + *
      +         * Optional. The origins that are allowed to host the web widget. An
      +         * origin is defined by RFC 6454. If empty, all origins are allowed. A
      +         * maximum of 100 origins is allowed. Example: "https://example.com"
      +         * 
      + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of allowedOrigins. + */ + public int getAllowedOriginsCount() { + return allowedOrigins_.size(); + } + + /** + * + * + *
      +         * Optional. The origins that are allowed to host the web widget. An
      +         * origin is defined by RFC 6454. If empty, all origins are allowed. A
      +         * maximum of 100 origins is allowed. Example: "https://example.com"
      +         * 
      + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The allowedOrigins at the given index. + */ + public java.lang.String getAllowedOrigins(int index) { + return allowedOrigins_.get(index); + } + + /** + * + * + *
      +         * Optional. The origins that are allowed to host the web widget. An
      +         * origin is defined by RFC 6454. If empty, all origins are allowed. A
      +         * maximum of 100 origins is allowed. Example: "https://example.com"
      +         * 
      + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the allowedOrigins at the given index. + */ + public com.google.protobuf.ByteString getAllowedOriginsBytes(int index) { + return allowedOrigins_.getByteString(index); + } + + /** + * + * + *
      +         * Optional. The origins that are allowed to host the web widget. An
      +         * origin is defined by RFC 6454. If empty, all origins are allowed. A
      +         * maximum of 100 origins is allowed. Example: "https://example.com"
      +         * 
      + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The allowedOrigins to set. + * @return This builder for chaining. + */ + public Builder setAllowedOrigins(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedOriginsIsMutable(); + allowedOrigins_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +         * Optional. The origins that are allowed to host the web widget. An
      +         * origin is defined by RFC 6454. If empty, all origins are allowed. A
      +         * maximum of 100 origins is allowed. Example: "https://example.com"
      +         * 
      + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The allowedOrigins to add. + * @return This builder for chaining. + */ + public Builder addAllowedOrigins(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedOriginsIsMutable(); + allowedOrigins_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +         * Optional. The origins that are allowed to host the web widget. An
      +         * origin is defined by RFC 6454. If empty, all origins are allowed. A
      +         * maximum of 100 origins is allowed. Example: "https://example.com"
      +         * 
      + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The allowedOrigins to add. + * @return This builder for chaining. + */ + public Builder addAllAllowedOrigins(java.lang.Iterable values) { + ensureAllowedOriginsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedOrigins_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +         * Optional. The origins that are allowed to host the web widget. An
      +         * origin is defined by RFC 6454. If empty, all origins are allowed. A
      +         * maximum of 100 origins is allowed. Example: "https://example.com"
      +         * 
      + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAllowedOrigins() { + allowedOrigins_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +         * Optional. The origins that are allowed to host the web widget. An
      +         * origin is defined by RFC 6454. If empty, all origins are allowed. A
      +         * maximum of 100 origins is allowed. Example: "https://example.com"
      +         * 
      + * + * repeated string allowed_origins = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the allowedOrigins to add. + * @return This builder for chaining. + */ + public Builder addAllowedOriginsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAllowedOriginsIsMutable(); + allowedOrigins_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean enableRecaptcha_; + + /** + * + * + *
      +         * Optional. Indicates whether reCAPTCHA verification for the web widget
      +         * is enabled.
      +         * 
      + * + * bool enable_recaptcha = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableRecaptcha. + */ + @java.lang.Override + public boolean getEnableRecaptcha() { + return enableRecaptcha_; + } + + /** + * + * + *
      +         * Optional. Indicates whether reCAPTCHA verification for the web widget
      +         * is enabled.
      +         * 
      + * + * bool enable_recaptcha = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableRecaptcha to set. + * @return This builder for chaining. + */ + public Builder setEnableRecaptcha(boolean value) { + + enableRecaptcha_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +         * Optional. Indicates whether reCAPTCHA verification for the web widget
      +         * is enabled.
      +         * 
      + * + * bool enable_recaptcha = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnableRecaptcha() { + bitField0_ = (bitField0_ & ~0x00000008); + enableRecaptcha_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings) + private static final com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings(); + } + + public static com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecuritySettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int MODALITY_FIELD_NUMBER = 1; + private int modality_ = 0; + + /** + * + * + *
      +     * Optional. The modality of the web widget.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Modality modality = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for modality. + */ + @java.lang.Override + public int getModalityValue() { + return modality_; + } + + /** + * + * + *
      +     * Optional. The modality of the web widget.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Modality modality = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modality. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Modality getModality() { + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Modality result = + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Modality.forNumber(modality_); + return result == null + ? com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Modality.UNRECOGNIZED + : result; + } + + public static final int THEME_FIELD_NUMBER = 2; + private int theme_ = 0; + + /** + * + * + *
      +     * Optional. The theme of the web widget.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Theme theme = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for theme. + */ + @java.lang.Override + public int getThemeValue() { + return theme_; + } + + /** + * + * + *
      +     * Optional. The theme of the web widget.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Theme theme = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The theme. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Theme getTheme() { + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Theme result = + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Theme.forNumber(theme_); + return result == null + ? com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Theme.UNRECOGNIZED + : result; + } + + public static final int WEB_WIDGET_TITLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object webWidgetTitle_ = ""; + + /** + * + * + *
      +     * Optional. The title of the web widget.
      +     * 
      + * + * string web_widget_title = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The webWidgetTitle. + */ + @java.lang.Override + public java.lang.String getWebWidgetTitle() { + java.lang.Object ref = webWidgetTitle_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + webWidgetTitle_ = s; + return s; + } + } + + /** + * + * + *
      +     * Optional. The title of the web widget.
      +     * 
      + * + * string web_widget_title = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for webWidgetTitle. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWebWidgetTitleBytes() { + java.lang.Object ref = webWidgetTitle_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + webWidgetTitle_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECURITY_SETTINGS_FIELD_NUMBER = 4; + private com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings + securitySettings_; + + /** + * + * + *
      +     * Optional. The security settings of the web widget.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings security_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the securitySettings field is set. + */ + @java.lang.Override + public boolean hasSecuritySettings() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Optional. The security settings of the web widget.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings security_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The securitySettings. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings + getSecuritySettings() { + return securitySettings_ == null + ? com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings + .getDefaultInstance() + : securitySettings_; + } + + /** + * + * + *
      +     * Optional. The security settings of the web widget.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings security_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettingsOrBuilder + getSecuritySettingsOrBuilder() { + return securitySettings_ == null + ? com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings + .getDefaultInstance() + : securitySettings_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (modality_ + != com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Modality.MODALITY_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, modality_); + } + if (theme_ + != com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Theme.THEME_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, theme_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(webWidgetTitle_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, webWidgetTitle_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getSecuritySettings()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (modality_ + != com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Modality.MODALITY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, modality_); + } + if (theme_ + != com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Theme.THEME_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, theme_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(webWidgetTitle_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, webWidgetTitle_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSecuritySettings()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig other = + (com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig) obj; + + if (modality_ != other.modality_) return false; + if (theme_ != other.theme_) return false; + if (!getWebWidgetTitle().equals(other.getWebWidgetTitle())) return false; + if (hasSecuritySettings() != other.hasSecuritySettings()) return false; + if (hasSecuritySettings()) { + if (!getSecuritySettings().equals(other.getSecuritySettings())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MODALITY_FIELD_NUMBER; + hash = (53 * hash) + modality_; + hash = (37 * hash) + THEME_FIELD_NUMBER; + hash = (53 * hash) + theme_; + hash = (37 * hash) + WEB_WIDGET_TITLE_FIELD_NUMBER; + hash = (53 * hash) + getWebWidgetTitle().hashCode(); + if (hasSecuritySettings()) { + hash = (37 * hash) + SECURITY_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getSecuritySettings().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Message for configuration for the web widget.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ChannelProfile.WebWidgetConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ChannelProfile.WebWidgetConfig) + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ChannelProfile_WebWidgetConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ChannelProfile_WebWidgetConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.class, + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSecuritySettingsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + modality_ = 0; + theme_ = 0; + webWidgetTitle_ = ""; + securitySettings_ = null; + if (securitySettingsBuilder_ != null) { + securitySettingsBuilder_.dispose(); + securitySettingsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ChannelProfile_WebWidgetConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig build() { + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig buildPartial() { + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig result = + new com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modality_ = modality_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.theme_ = theme_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.webWidgetTitle_ = webWidgetTitle_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.securitySettings_ = + securitySettingsBuilder_ == null + ? securitySettings_ + : securitySettingsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig) { + return mergeFrom((com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig other) { + if (other == com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.getDefaultInstance()) + return this; + if (other.modality_ != 0) { + setModalityValue(other.getModalityValue()); + } + if (other.theme_ != 0) { + setThemeValue(other.getThemeValue()); + } + if (!other.getWebWidgetTitle().isEmpty()) { + webWidgetTitle_ = other.webWidgetTitle_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasSecuritySettings()) { + mergeSecuritySettings(other.getSecuritySettings()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + modality_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + theme_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + webWidgetTitle_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetSecuritySettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int modality_ = 0; + + /** + * + * + *
      +       * Optional. The modality of the web widget.
      +       * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Modality modality = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for modality. + */ + @java.lang.Override + public int getModalityValue() { + return modality_; + } + + /** + * + * + *
      +       * Optional. The modality of the web widget.
      +       * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Modality modality = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for modality to set. + * @return This builder for chaining. + */ + public Builder setModalityValue(int value) { + modality_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The modality of the web widget.
      +       * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Modality modality = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modality. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Modality getModality() { + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Modality result = + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Modality.forNumber(modality_); + return result == null + ? com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Modality.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +       * Optional. The modality of the web widget.
      +       * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Modality modality = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The modality to set. + * @return This builder for chaining. + */ + public Builder setModality( + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Modality value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + modality_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The modality of the web widget.
      +       * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Modality modality = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearModality() { + bitField0_ = (bitField0_ & ~0x00000001); + modality_ = 0; + onChanged(); + return this; + } + + private int theme_ = 0; + + /** + * + * + *
      +       * Optional. The theme of the web widget.
      +       * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Theme theme = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for theme. + */ + @java.lang.Override + public int getThemeValue() { + return theme_; + } + + /** + * + * + *
      +       * Optional. The theme of the web widget.
      +       * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Theme theme = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for theme to set. + * @return This builder for chaining. + */ + public Builder setThemeValue(int value) { + theme_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The theme of the web widget.
      +       * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Theme theme = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The theme. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Theme getTheme() { + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Theme result = + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Theme.forNumber(theme_); + return result == null + ? com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Theme.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +       * Optional. The theme of the web widget.
      +       * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Theme theme = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The theme to set. + * @return This builder for chaining. + */ + public Builder setTheme(com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Theme value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + theme_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The theme of the web widget.
      +       * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Theme theme = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearTheme() { + bitField0_ = (bitField0_ & ~0x00000002); + theme_ = 0; + onChanged(); + return this; + } + + private java.lang.Object webWidgetTitle_ = ""; + + /** + * + * + *
      +       * Optional. The title of the web widget.
      +       * 
      + * + * string web_widget_title = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The webWidgetTitle. + */ + public java.lang.String getWebWidgetTitle() { + java.lang.Object ref = webWidgetTitle_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + webWidgetTitle_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Optional. The title of the web widget.
      +       * 
      + * + * string web_widget_title = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for webWidgetTitle. + */ + public com.google.protobuf.ByteString getWebWidgetTitleBytes() { + java.lang.Object ref = webWidgetTitle_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + webWidgetTitle_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Optional. The title of the web widget.
      +       * 
      + * + * string web_widget_title = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The webWidgetTitle to set. + * @return This builder for chaining. + */ + public Builder setWebWidgetTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + webWidgetTitle_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The title of the web widget.
      +       * 
      + * + * string web_widget_title = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearWebWidgetTitle() { + webWidgetTitle_ = getDefaultInstance().getWebWidgetTitle(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The title of the web widget.
      +       * 
      + * + * string web_widget_title = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for webWidgetTitle to set. + * @return This builder for chaining. + */ + public Builder setWebWidgetTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + webWidgetTitle_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings + securitySettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings, + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings.Builder, + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettingsOrBuilder> + securitySettingsBuilder_; + + /** + * + * + *
      +       * Optional. The security settings of the web widget.
      +       * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings security_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the securitySettings field is set. + */ + public boolean hasSecuritySettings() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +       * Optional. The security settings of the web widget.
      +       * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings security_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The securitySettings. + */ + public com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings + getSecuritySettings() { + if (securitySettingsBuilder_ == null) { + return securitySettings_ == null + ? com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings + .getDefaultInstance() + : securitySettings_; + } else { + return securitySettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
      +       * Optional. The security settings of the web widget.
      +       * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings security_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSecuritySettings( + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings value) { + if (securitySettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + securitySettings_ = value; + } else { + securitySettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The security settings of the web widget.
      +       * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings security_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSecuritySettings( + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings.Builder + builderForValue) { + if (securitySettingsBuilder_ == null) { + securitySettings_ = builderForValue.build(); + } else { + securitySettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The security settings of the web widget.
      +       * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings security_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSecuritySettings( + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings value) { + if (securitySettingsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && securitySettings_ != null + && securitySettings_ + != com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings + .getDefaultInstance()) { + getSecuritySettingsBuilder().mergeFrom(value); + } else { + securitySettings_ = value; + } + } else { + securitySettingsBuilder_.mergeFrom(value); + } + if (securitySettings_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
      +       * Optional. The security settings of the web widget.
      +       * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings security_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSecuritySettings() { + bitField0_ = (bitField0_ & ~0x00000008); + securitySettings_ = null; + if (securitySettingsBuilder_ != null) { + securitySettingsBuilder_.dispose(); + securitySettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The security settings of the web widget.
      +       * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings security_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings.Builder + getSecuritySettingsBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetSecuritySettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Optional. The security settings of the web widget.
      +       * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings security_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettingsOrBuilder + getSecuritySettingsOrBuilder() { + if (securitySettingsBuilder_ != null) { + return securitySettingsBuilder_.getMessageOrBuilder(); + } else { + return securitySettings_ == null + ? com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings + .getDefaultInstance() + : securitySettings_; + } + } + + /** + * + * + *
      +       * Optional. The security settings of the web widget.
      +       * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings security_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings, + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings.Builder, + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettingsOrBuilder> + internalGetSecuritySettingsFieldBuilder() { + if (securitySettingsBuilder_ == null) { + securitySettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings, + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettings.Builder, + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettingsOrBuilder>( + getSecuritySettings(), getParentForChildren(), isClean()); + securitySettings_ = null; + } + return securitySettingsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ChannelProfile.WebWidgetConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ChannelProfile.WebWidgetConfig) + private static final com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig(); + } + + public static com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebWidgetConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int PROFILE_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object profileId_ = ""; + + /** + * + * + *
      +   * Optional. The unique identifier of the channel profile.
      +   * 
      + * + * string profile_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The profileId. + */ + @java.lang.Override + public java.lang.String getProfileId() { + java.lang.Object ref = profileId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + profileId_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The unique identifier of the channel profile.
      +   * 
      + * + * string profile_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for profileId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProfileIdBytes() { + java.lang.Object ref = profileId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + profileId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHANNEL_TYPE_FIELD_NUMBER = 3; + private int channelType_ = 0; + + /** + * + * + *
      +   * Optional. The type of the channel profile.
      +   * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.ChannelType channel_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for channelType. + */ + @java.lang.Override + public int getChannelTypeValue() { + return channelType_; + } + + /** + * + * + *
      +   * Optional. The type of the channel profile.
      +   * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.ChannelType channel_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The channelType. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.ChannelType getChannelType() { + com.google.cloud.ces.v1.ChannelProfile.ChannelType result = + com.google.cloud.ces.v1.ChannelProfile.ChannelType.forNumber(channelType_); + return result == null + ? com.google.cloud.ces.v1.ChannelProfile.ChannelType.UNRECOGNIZED + : result; + } + + public static final int PERSONA_PROPERTY_FIELD_NUMBER = 2; + private com.google.cloud.ces.v1.ChannelProfile.PersonaProperty personaProperty_; + + /** + * + * + *
      +   * Optional. The persona property of the channel profile.
      +   * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the personaProperty field is set. + */ + @java.lang.Override + public boolean hasPersonaProperty() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Optional. The persona property of the channel profile.
      +   * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The personaProperty. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.PersonaProperty getPersonaProperty() { + return personaProperty_ == null + ? com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.getDefaultInstance() + : personaProperty_; + } + + /** + * + * + *
      +   * Optional. The persona property of the channel profile.
      +   * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.PersonaPropertyOrBuilder + getPersonaPropertyOrBuilder() { + return personaProperty_ == null + ? com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.getDefaultInstance() + : personaProperty_; + } + + public static final int DISABLE_DTMF_FIELD_NUMBER = 4; + private boolean disableDtmf_ = false; + + /** + * + * + *
      +   * Optional. Whether to disable DTMF (dual-tone multi-frequency).
      +   * 
      + * + * bool disable_dtmf = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableDtmf. + */ + @java.lang.Override + public boolean getDisableDtmf() { + return disableDtmf_; + } + + public static final int DISABLE_BARGE_IN_CONTROL_FIELD_NUMBER = 5; + private boolean disableBargeInControl_ = false; + + /** + * + * + *
      +   * Optional. Whether to disable user barge-in control in the conversation.
      +   * - **true**: User interruptions are disabled while the agent is speaking.
      +   * - **false**: The agent retains automatic control over when the user can
      +   * interrupt.
      +   * 
      + * + * bool disable_barge_in_control = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableBargeInControl. + */ + @java.lang.Override + public boolean getDisableBargeInControl() { + return disableBargeInControl_; + } + + public static final int WEB_WIDGET_CONFIG_FIELD_NUMBER = 7; + private com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig webWidgetConfig_; + + /** + * + * + *
      +   * Optional. The configuration for the web widget.
      +   * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the webWidgetConfig field is set. + */ + @java.lang.Override + public boolean hasWebWidgetConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Optional. The configuration for the web widget.
      +   * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The webWidgetConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig getWebWidgetConfig() { + return webWidgetConfig_ == null + ? com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.getDefaultInstance() + : webWidgetConfig_; + } + + /** + * + * + *
      +   * Optional. The configuration for the web widget.
      +   * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfigOrBuilder + getWebWidgetConfigOrBuilder() { + return webWidgetConfig_ == null + ? com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.getDefaultInstance() + : webWidgetConfig_; + } + + public static final int NOISE_SUPPRESSION_LEVEL_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object noiseSuppressionLevel_ = ""; + + /** + * + * + *
      +   * Optional. The noise suppression level of the channel profile.
      +   * Available values are "low", "moderate", "high", "very_high".
      +   * 
      + * + * string noise_suppression_level = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The noiseSuppressionLevel. + */ + @java.lang.Override + public java.lang.String getNoiseSuppressionLevel() { + java.lang.Object ref = noiseSuppressionLevel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + noiseSuppressionLevel_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The noise suppression level of the channel profile.
      +   * Available values are "low", "moderate", "high", "very_high".
      +   * 
      + * + * string noise_suppression_level = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for noiseSuppressionLevel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNoiseSuppressionLevelBytes() { + java.lang.Object ref = noiseSuppressionLevel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + noiseSuppressionLevel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(profileId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, profileId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getPersonaProperty()); + } + if (channelType_ != com.google.cloud.ces.v1.ChannelProfile.ChannelType.UNKNOWN.getNumber()) { + output.writeEnum(3, channelType_); + } + if (disableDtmf_ != false) { + output.writeBool(4, disableDtmf_); + } + if (disableBargeInControl_ != false) { + output.writeBool(5, disableBargeInControl_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getWebWidgetConfig()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(noiseSuppressionLevel_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, noiseSuppressionLevel_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(profileId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, profileId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPersonaProperty()); + } + if (channelType_ != com.google.cloud.ces.v1.ChannelProfile.ChannelType.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, channelType_); + } + if (disableDtmf_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, disableDtmf_); + } + if (disableBargeInControl_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, disableBargeInControl_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getWebWidgetConfig()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(noiseSuppressionLevel_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, noiseSuppressionLevel_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ChannelProfile)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ChannelProfile other = (com.google.cloud.ces.v1.ChannelProfile) obj; + + if (!getProfileId().equals(other.getProfileId())) return false; + if (channelType_ != other.channelType_) return false; + if (hasPersonaProperty() != other.hasPersonaProperty()) return false; + if (hasPersonaProperty()) { + if (!getPersonaProperty().equals(other.getPersonaProperty())) return false; + } + if (getDisableDtmf() != other.getDisableDtmf()) return false; + if (getDisableBargeInControl() != other.getDisableBargeInControl()) return false; + if (hasWebWidgetConfig() != other.hasWebWidgetConfig()) return false; + if (hasWebWidgetConfig()) { + if (!getWebWidgetConfig().equals(other.getWebWidgetConfig())) return false; + } + if (!getNoiseSuppressionLevel().equals(other.getNoiseSuppressionLevel())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROFILE_ID_FIELD_NUMBER; + hash = (53 * hash) + getProfileId().hashCode(); + hash = (37 * hash) + CHANNEL_TYPE_FIELD_NUMBER; + hash = (53 * hash) + channelType_; + if (hasPersonaProperty()) { + hash = (37 * hash) + PERSONA_PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getPersonaProperty().hashCode(); + } + hash = (37 * hash) + DISABLE_DTMF_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableDtmf()); + hash = (37 * hash) + DISABLE_BARGE_IN_CONTROL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableBargeInControl()); + if (hasWebWidgetConfig()) { + hash = (37 * hash) + WEB_WIDGET_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getWebWidgetConfig().hashCode(); + } + hash = (37 * hash) + NOISE_SUPPRESSION_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + getNoiseSuppressionLevel().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ChannelProfile parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ChannelProfile parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ChannelProfile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ChannelProfile parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ChannelProfile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ChannelProfile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ChannelProfile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ChannelProfile parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ChannelProfile parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ChannelProfile parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ChannelProfile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ChannelProfile parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ChannelProfile prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * A ChannelProfile configures the agent's behavior for a specific communication
      +   * channel, such as web UI or telephony.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ChannelProfile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ChannelProfile) + com.google.cloud.ces.v1.ChannelProfileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ChannelProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ChannelProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ChannelProfile.class, + com.google.cloud.ces.v1.ChannelProfile.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ChannelProfile.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetPersonaPropertyFieldBuilder(); + internalGetWebWidgetConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + profileId_ = ""; + channelType_ = 0; + personaProperty_ = null; + if (personaPropertyBuilder_ != null) { + personaPropertyBuilder_.dispose(); + personaPropertyBuilder_ = null; + } + disableDtmf_ = false; + disableBargeInControl_ = false; + webWidgetConfig_ = null; + if (webWidgetConfigBuilder_ != null) { + webWidgetConfigBuilder_.dispose(); + webWidgetConfigBuilder_ = null; + } + noiseSuppressionLevel_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ChannelProfile_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ChannelProfile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile build() { + com.google.cloud.ces.v1.ChannelProfile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile buildPartial() { + com.google.cloud.ces.v1.ChannelProfile result = + new com.google.cloud.ces.v1.ChannelProfile(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ChannelProfile result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.profileId_ = profileId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.channelType_ = channelType_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.personaProperty_ = + personaPropertyBuilder_ == null ? personaProperty_ : personaPropertyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.disableDtmf_ = disableDtmf_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.disableBargeInControl_ = disableBargeInControl_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.webWidgetConfig_ = + webWidgetConfigBuilder_ == null ? webWidgetConfig_ : webWidgetConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.noiseSuppressionLevel_ = noiseSuppressionLevel_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ChannelProfile) { + return mergeFrom((com.google.cloud.ces.v1.ChannelProfile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ChannelProfile other) { + if (other == com.google.cloud.ces.v1.ChannelProfile.getDefaultInstance()) return this; + if (!other.getProfileId().isEmpty()) { + profileId_ = other.profileId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.channelType_ != 0) { + setChannelTypeValue(other.getChannelTypeValue()); + } + if (other.hasPersonaProperty()) { + mergePersonaProperty(other.getPersonaProperty()); + } + if (other.getDisableDtmf() != false) { + setDisableDtmf(other.getDisableDtmf()); + } + if (other.getDisableBargeInControl() != false) { + setDisableBargeInControl(other.getDisableBargeInControl()); + } + if (other.hasWebWidgetConfig()) { + mergeWebWidgetConfig(other.getWebWidgetConfig()); + } + if (!other.getNoiseSuppressionLevel().isEmpty()) { + noiseSuppressionLevel_ = other.noiseSuppressionLevel_; + bitField0_ |= 0x00000040; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + profileId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetPersonaPropertyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 24: + { + channelType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 32: + { + disableDtmf_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + disableBargeInControl_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 58: + { + input.readMessage( + internalGetWebWidgetConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + noiseSuppressionLevel_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object profileId_ = ""; + + /** + * + * + *
      +     * Optional. The unique identifier of the channel profile.
      +     * 
      + * + * string profile_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The profileId. + */ + public java.lang.String getProfileId() { + java.lang.Object ref = profileId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + profileId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The unique identifier of the channel profile.
      +     * 
      + * + * string profile_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for profileId. + */ + public com.google.protobuf.ByteString getProfileIdBytes() { + java.lang.Object ref = profileId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + profileId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The unique identifier of the channel profile.
      +     * 
      + * + * string profile_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The profileId to set. + * @return This builder for chaining. + */ + public Builder setProfileId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + profileId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The unique identifier of the channel profile.
      +     * 
      + * + * string profile_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearProfileId() { + profileId_ = getDefaultInstance().getProfileId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The unique identifier of the channel profile.
      +     * 
      + * + * string profile_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for profileId to set. + * @return This builder for chaining. + */ + public Builder setProfileIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + profileId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int channelType_ = 0; + + /** + * + * + *
      +     * Optional. The type of the channel profile.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.ChannelType channel_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for channelType. + */ + @java.lang.Override + public int getChannelTypeValue() { + return channelType_; + } + + /** + * + * + *
      +     * Optional. The type of the channel profile.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.ChannelType channel_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for channelType to set. + * @return This builder for chaining. + */ + public Builder setChannelTypeValue(int value) { + channelType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The type of the channel profile.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.ChannelType channel_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The channelType. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile.ChannelType getChannelType() { + com.google.cloud.ces.v1.ChannelProfile.ChannelType result = + com.google.cloud.ces.v1.ChannelProfile.ChannelType.forNumber(channelType_); + return result == null + ? com.google.cloud.ces.v1.ChannelProfile.ChannelType.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * Optional. The type of the channel profile.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.ChannelType channel_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The channelType to set. + * @return This builder for chaining. + */ + public Builder setChannelType(com.google.cloud.ces.v1.ChannelProfile.ChannelType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + channelType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The type of the channel profile.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.ChannelType channel_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearChannelType() { + bitField0_ = (bitField0_ & ~0x00000002); + channelType_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.ChannelProfile.PersonaProperty personaProperty_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ChannelProfile.PersonaProperty, + com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.Builder, + com.google.cloud.ces.v1.ChannelProfile.PersonaPropertyOrBuilder> + personaPropertyBuilder_; + + /** + * + * + *
      +     * Optional. The persona property of the channel profile.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the personaProperty field is set. + */ + public boolean hasPersonaProperty() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Optional. The persona property of the channel profile.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The personaProperty. + */ + public com.google.cloud.ces.v1.ChannelProfile.PersonaProperty getPersonaProperty() { + if (personaPropertyBuilder_ == null) { + return personaProperty_ == null + ? com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.getDefaultInstance() + : personaProperty_; + } else { + return personaPropertyBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. The persona property of the channel profile.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPersonaProperty( + com.google.cloud.ces.v1.ChannelProfile.PersonaProperty value) { + if (personaPropertyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + personaProperty_ = value; + } else { + personaPropertyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The persona property of the channel profile.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPersonaProperty( + com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.Builder builderForValue) { + if (personaPropertyBuilder_ == null) { + personaProperty_ = builderForValue.build(); + } else { + personaPropertyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The persona property of the channel profile.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePersonaProperty( + com.google.cloud.ces.v1.ChannelProfile.PersonaProperty value) { + if (personaPropertyBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && personaProperty_ != null + && personaProperty_ + != com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.getDefaultInstance()) { + getPersonaPropertyBuilder().mergeFrom(value); + } else { + personaProperty_ = value; + } + } else { + personaPropertyBuilder_.mergeFrom(value); + } + if (personaProperty_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The persona property of the channel profile.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPersonaProperty() { + bitField0_ = (bitField0_ & ~0x00000004); + personaProperty_ = null; + if (personaPropertyBuilder_ != null) { + personaPropertyBuilder_.dispose(); + personaPropertyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The persona property of the channel profile.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.Builder + getPersonaPropertyBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetPersonaPropertyFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The persona property of the channel profile.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ChannelProfile.PersonaPropertyOrBuilder + getPersonaPropertyOrBuilder() { + if (personaPropertyBuilder_ != null) { + return personaPropertyBuilder_.getMessageOrBuilder(); + } else { + return personaProperty_ == null + ? com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.getDefaultInstance() + : personaProperty_; + } + } + + /** + * + * + *
      +     * Optional. The persona property of the channel profile.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ChannelProfile.PersonaProperty, + com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.Builder, + com.google.cloud.ces.v1.ChannelProfile.PersonaPropertyOrBuilder> + internalGetPersonaPropertyFieldBuilder() { + if (personaPropertyBuilder_ == null) { + personaPropertyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ChannelProfile.PersonaProperty, + com.google.cloud.ces.v1.ChannelProfile.PersonaProperty.Builder, + com.google.cloud.ces.v1.ChannelProfile.PersonaPropertyOrBuilder>( + getPersonaProperty(), getParentForChildren(), isClean()); + personaProperty_ = null; + } + return personaPropertyBuilder_; + } + + private boolean disableDtmf_; + + /** + * + * + *
      +     * Optional. Whether to disable DTMF (dual-tone multi-frequency).
      +     * 
      + * + * bool disable_dtmf = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableDtmf. + */ + @java.lang.Override + public boolean getDisableDtmf() { + return disableDtmf_; + } + + /** + * + * + *
      +     * Optional. Whether to disable DTMF (dual-tone multi-frequency).
      +     * 
      + * + * bool disable_dtmf = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The disableDtmf to set. + * @return This builder for chaining. + */ + public Builder setDisableDtmf(boolean value) { + + disableDtmf_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Whether to disable DTMF (dual-tone multi-frequency).
      +     * 
      + * + * bool disable_dtmf = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisableDtmf() { + bitField0_ = (bitField0_ & ~0x00000008); + disableDtmf_ = false; + onChanged(); + return this; + } + + private boolean disableBargeInControl_; + + /** + * + * + *
      +     * Optional. Whether to disable user barge-in control in the conversation.
      +     * - **true**: User interruptions are disabled while the agent is speaking.
      +     * - **false**: The agent retains automatic control over when the user can
      +     * interrupt.
      +     * 
      + * + * bool disable_barge_in_control = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableBargeInControl. + */ + @java.lang.Override + public boolean getDisableBargeInControl() { + return disableBargeInControl_; + } + + /** + * + * + *
      +     * Optional. Whether to disable user barge-in control in the conversation.
      +     * - **true**: User interruptions are disabled while the agent is speaking.
      +     * - **false**: The agent retains automatic control over when the user can
      +     * interrupt.
      +     * 
      + * + * bool disable_barge_in_control = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The disableBargeInControl to set. + * @return This builder for chaining. + */ + public Builder setDisableBargeInControl(boolean value) { + + disableBargeInControl_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Whether to disable user barge-in control in the conversation.
      +     * - **true**: User interruptions are disabled while the agent is speaking.
      +     * - **false**: The agent retains automatic control over when the user can
      +     * interrupt.
      +     * 
      + * + * bool disable_barge_in_control = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisableBargeInControl() { + bitField0_ = (bitField0_ & ~0x00000010); + disableBargeInControl_ = false; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig webWidgetConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig, + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Builder, + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfigOrBuilder> + webWidgetConfigBuilder_; + + /** + * + * + *
      +     * Optional. The configuration for the web widget.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the webWidgetConfig field is set. + */ + public boolean hasWebWidgetConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +     * Optional. The configuration for the web widget.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The webWidgetConfig. + */ + public com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig getWebWidgetConfig() { + if (webWidgetConfigBuilder_ == null) { + return webWidgetConfig_ == null + ? com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.getDefaultInstance() + : webWidgetConfig_; + } else { + return webWidgetConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. The configuration for the web widget.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setWebWidgetConfig( + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig value) { + if (webWidgetConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + webWidgetConfig_ = value; + } else { + webWidgetConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The configuration for the web widget.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setWebWidgetConfig( + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Builder builderForValue) { + if (webWidgetConfigBuilder_ == null) { + webWidgetConfig_ = builderForValue.build(); + } else { + webWidgetConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The configuration for the web widget.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeWebWidgetConfig( + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig value) { + if (webWidgetConfigBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && webWidgetConfig_ != null + && webWidgetConfig_ + != com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.getDefaultInstance()) { + getWebWidgetConfigBuilder().mergeFrom(value); + } else { + webWidgetConfig_ = value; + } + } else { + webWidgetConfigBuilder_.mergeFrom(value); + } + if (webWidgetConfig_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The configuration for the web widget.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearWebWidgetConfig() { + bitField0_ = (bitField0_ & ~0x00000020); + webWidgetConfig_ = null; + if (webWidgetConfigBuilder_ != null) { + webWidgetConfigBuilder_.dispose(); + webWidgetConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The configuration for the web widget.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Builder + getWebWidgetConfigBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetWebWidgetConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The configuration for the web widget.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfigOrBuilder + getWebWidgetConfigOrBuilder() { + if (webWidgetConfigBuilder_ != null) { + return webWidgetConfigBuilder_.getMessageOrBuilder(); + } else { + return webWidgetConfig_ == null + ? com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.getDefaultInstance() + : webWidgetConfig_; + } + } + + /** + * + * + *
      +     * Optional. The configuration for the web widget.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig, + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Builder, + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfigOrBuilder> + internalGetWebWidgetConfigFieldBuilder() { + if (webWidgetConfigBuilder_ == null) { + webWidgetConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig, + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig.Builder, + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfigOrBuilder>( + getWebWidgetConfig(), getParentForChildren(), isClean()); + webWidgetConfig_ = null; + } + return webWidgetConfigBuilder_; + } + + private java.lang.Object noiseSuppressionLevel_ = ""; + + /** + * + * + *
      +     * Optional. The noise suppression level of the channel profile.
      +     * Available values are "low", "moderate", "high", "very_high".
      +     * 
      + * + * string noise_suppression_level = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The noiseSuppressionLevel. + */ + public java.lang.String getNoiseSuppressionLevel() { + java.lang.Object ref = noiseSuppressionLevel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + noiseSuppressionLevel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The noise suppression level of the channel profile.
      +     * Available values are "low", "moderate", "high", "very_high".
      +     * 
      + * + * string noise_suppression_level = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for noiseSuppressionLevel. + */ + public com.google.protobuf.ByteString getNoiseSuppressionLevelBytes() { + java.lang.Object ref = noiseSuppressionLevel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + noiseSuppressionLevel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The noise suppression level of the channel profile.
      +     * Available values are "low", "moderate", "high", "very_high".
      +     * 
      + * + * string noise_suppression_level = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The noiseSuppressionLevel to set. + * @return This builder for chaining. + */ + public Builder setNoiseSuppressionLevel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + noiseSuppressionLevel_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The noise suppression level of the channel profile.
      +     * Available values are "low", "moderate", "high", "very_high".
      +     * 
      + * + * string noise_suppression_level = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNoiseSuppressionLevel() { + noiseSuppressionLevel_ = getDefaultInstance().getNoiseSuppressionLevel(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The noise suppression level of the channel profile.
      +     * Available values are "low", "moderate", "high", "very_high".
      +     * 
      + * + * string noise_suppression_level = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for noiseSuppressionLevel to set. + * @return This builder for chaining. + */ + public Builder setNoiseSuppressionLevelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + noiseSuppressionLevel_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ChannelProfile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ChannelProfile) + private static final com.google.cloud.ces.v1.ChannelProfile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ChannelProfile(); + } + + public static com.google.cloud.ces.v1.ChannelProfile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfileOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfileOrBuilder.java new file mode 100644 index 000000000000..06791f6546d5 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfileOrBuilder.java @@ -0,0 +1,227 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/common.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ChannelProfileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ChannelProfile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. The unique identifier of the channel profile.
      +   * 
      + * + * string profile_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The profileId. + */ + java.lang.String getProfileId(); + + /** + * + * + *
      +   * Optional. The unique identifier of the channel profile.
      +   * 
      + * + * string profile_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for profileId. + */ + com.google.protobuf.ByteString getProfileIdBytes(); + + /** + * + * + *
      +   * Optional. The type of the channel profile.
      +   * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.ChannelType channel_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for channelType. + */ + int getChannelTypeValue(); + + /** + * + * + *
      +   * Optional. The type of the channel profile.
      +   * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.ChannelType channel_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The channelType. + */ + com.google.cloud.ces.v1.ChannelProfile.ChannelType getChannelType(); + + /** + * + * + *
      +   * Optional. The persona property of the channel profile.
      +   * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the personaProperty field is set. + */ + boolean hasPersonaProperty(); + + /** + * + * + *
      +   * Optional. The persona property of the channel profile.
      +   * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The personaProperty. + */ + com.google.cloud.ces.v1.ChannelProfile.PersonaProperty getPersonaProperty(); + + /** + * + * + *
      +   * Optional. The persona property of the channel profile.
      +   * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.PersonaProperty persona_property = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ChannelProfile.PersonaPropertyOrBuilder getPersonaPropertyOrBuilder(); + + /** + * + * + *
      +   * Optional. Whether to disable DTMF (dual-tone multi-frequency).
      +   * 
      + * + * bool disable_dtmf = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableDtmf. + */ + boolean getDisableDtmf(); + + /** + * + * + *
      +   * Optional. Whether to disable user barge-in control in the conversation.
      +   * - **true**: User interruptions are disabled while the agent is speaking.
      +   * - **false**: The agent retains automatic control over when the user can
      +   * interrupt.
      +   * 
      + * + * bool disable_barge_in_control = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableBargeInControl. + */ + boolean getDisableBargeInControl(); + + /** + * + * + *
      +   * Optional. The configuration for the web widget.
      +   * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the webWidgetConfig field is set. + */ + boolean hasWebWidgetConfig(); + + /** + * + * + *
      +   * Optional. The configuration for the web widget.
      +   * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The webWidgetConfig. + */ + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfig getWebWidgetConfig(); + + /** + * + * + *
      +   * Optional. The configuration for the web widget.
      +   * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile.WebWidgetConfig web_widget_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ChannelProfile.WebWidgetConfigOrBuilder getWebWidgetConfigOrBuilder(); + + /** + * + * + *
      +   * Optional. The noise suppression level of the channel profile.
      +   * Available values are "low", "moderate", "high", "very_high".
      +   * 
      + * + * string noise_suppression_level = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The noiseSuppressionLevel. + */ + java.lang.String getNoiseSuppressionLevel(); + + /** + * + * + *
      +   * Optional. The noise suppression level of the channel profile.
      +   * Available values are "low", "moderate", "high", "very_high".
      +   * 
      + * + * string noise_suppression_level = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for noiseSuppressionLevel. + */ + com.google.protobuf.ByteString getNoiseSuppressionLevelBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfileProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfileProto.java new file mode 100644 index 000000000000..8ff5e0154e33 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChannelProfileProto.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/deployment.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class ChannelProfileProto extends com.google.protobuf.GeneratedFile { + private ChannelProfileProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ChannelProfileProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Deployment_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Deployment_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "$google/cloud/ces/v1/deployment.proto\022\023" + + "google.cloud.ces.v1\032\037google/api/field_be" + + "havior.proto\032\031google/api/resource.proto\032" + + " google/cloud/ces/v1/common.proto\032\037google/protobuf/timestamp.proto\"\304\003\n\n" + + "Deployment\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + + "\014display_name\030\010 \001(\tB\003\340A\002\022:\n" + + "\013app_version\030\002 \001(\tB%\340A\002\372A\037\n" + + "\035ces.googleapis.com/AppVersion\022A\n" + + "\017channel_profile\030\003" + + " \001(\0132#.google.cloud.ces.v1.ChannelProfileB\003\340A\002\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.TimestampB\003\340A\003\022\021\n" + + "\004etag\030\007 \001(\tB\003\340A\003:\211\001\352A\205\001\n" + + "\035ces.googleapis.com/Deployment\022Kprojects/{project}/" + + "locations/{location}/apps/{app}/deployments/{deployment}*\013deployments2\n" + + "deploymentB[\n" + + "\027com.google.cloud.ces.v1B\023ChannelProfileProtoP\001Z)cloud.google.com/go/ces/api" + + "v1/cespb;cespbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.ces.v1.CommonProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_Deployment_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_Deployment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Deployment_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "AppVersion", + "ChannelProfile", + "CreateTime", + "UpdateTime", + "Etag", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.ces.v1.CommonProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Chunk.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Chunk.java new file mode 100644 index 000000000000..b4ef6f0f3fa4 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Chunk.java @@ -0,0 +1,3170 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/example.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * A chunk of content within a message.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Chunk} + */ +@com.google.protobuf.Generated +public final class Chunk extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.Chunk) + ChunkOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Chunk"); + } + + // Use Chunk.newBuilder() to construct. + private Chunk(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Chunk() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_Chunk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_Chunk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Chunk.class, com.google.cloud.ces.v1.Chunk.Builder.class); + } + + private int dataCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object data_; + + public enum DataCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TEXT(1), + TRANSCRIPT(9), + PAYLOAD(11), + IMAGE(5), + TOOL_CALL(2), + TOOL_RESPONSE(3), + AGENT_TRANSFER(4), + UPDATED_VARIABLES(8), + DEFAULT_VARIABLES(10), + DATA_NOT_SET(0); + private final int value; + + private DataCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DataCase valueOf(int value) { + return forNumber(value); + } + + public static DataCase forNumber(int value) { + switch (value) { + case 1: + return TEXT; + case 9: + return TRANSCRIPT; + case 11: + return PAYLOAD; + case 5: + return IMAGE; + case 2: + return TOOL_CALL; + case 3: + return TOOL_RESPONSE; + case 4: + return AGENT_TRANSFER; + case 8: + return UPDATED_VARIABLES; + case 10: + return DEFAULT_VARIABLES; + case 0: + return DATA_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DataCase getDataCase() { + return DataCase.forNumber(dataCase_); + } + + public static final int TEXT_FIELD_NUMBER = 1; + + /** + * + * + *
      +   * Optional. Text data.
      +   * 
      + * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the text field is set. + */ + public boolean hasText() { + return dataCase_ == 1; + } + + /** + * + * + *
      +   * Optional. Text data.
      +   * 
      + * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = ""; + if (dataCase_ == 1) { + ref = data_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (dataCase_ == 1) { + data_ = s; + } + return s; + } + } + + /** + * + * + *
      +   * Optional. Text data.
      +   * 
      + * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for text. + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = ""; + if (dataCase_ == 1) { + ref = data_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (dataCase_ == 1) { + data_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TRANSCRIPT_FIELD_NUMBER = 9; + + /** + * + * + *
      +   * Optional. Transcript associated with the audio.
      +   * 
      + * + * string transcript = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the transcript field is set. + */ + public boolean hasTranscript() { + return dataCase_ == 9; + } + + /** + * + * + *
      +   * Optional. Transcript associated with the audio.
      +   * 
      + * + * string transcript = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The transcript. + */ + public java.lang.String getTranscript() { + java.lang.Object ref = ""; + if (dataCase_ == 9) { + ref = data_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (dataCase_ == 9) { + data_ = s; + } + return s; + } + } + + /** + * + * + *
      +   * Optional. Transcript associated with the audio.
      +   * 
      + * + * string transcript = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for transcript. + */ + public com.google.protobuf.ByteString getTranscriptBytes() { + java.lang.Object ref = ""; + if (dataCase_ == 9) { + ref = data_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (dataCase_ == 9) { + data_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAYLOAD_FIELD_NUMBER = 11; + + /** + * + * + *
      +   * Optional. Custom payload data.
      +   * 
      + * + * .google.protobuf.Struct payload = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the payload field is set. + */ + @java.lang.Override + public boolean hasPayload() { + return dataCase_ == 11; + } + + /** + * + * + *
      +   * Optional. Custom payload data.
      +   * 
      + * + * .google.protobuf.Struct payload = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The payload. + */ + @java.lang.Override + public com.google.protobuf.Struct getPayload() { + if (dataCase_ == 11) { + return (com.google.protobuf.Struct) data_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Custom payload data.
      +   * 
      + * + * .google.protobuf.Struct payload = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { + if (dataCase_ == 11) { + return (com.google.protobuf.Struct) data_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + public static final int IMAGE_FIELD_NUMBER = 5; + + /** + * + * + *
      +   * Optional. Image data.
      +   * 
      + * + * .google.cloud.ces.v1.Image image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the image field is set. + */ + @java.lang.Override + public boolean hasImage() { + return dataCase_ == 5; + } + + /** + * + * + *
      +   * Optional. Image data.
      +   * 
      + * + * .google.cloud.ces.v1.Image image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The image. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Image getImage() { + if (dataCase_ == 5) { + return (com.google.cloud.ces.v1.Image) data_; + } + return com.google.cloud.ces.v1.Image.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Image data.
      +   * 
      + * + * .google.cloud.ces.v1.Image image = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.ces.v1.ImageOrBuilder getImageOrBuilder() { + if (dataCase_ == 5) { + return (com.google.cloud.ces.v1.Image) data_; + } + return com.google.cloud.ces.v1.Image.getDefaultInstance(); + } + + public static final int TOOL_CALL_FIELD_NUMBER = 2; + + /** + * + * + *
      +   * Optional. Tool execution request.
      +   * 
      + * + * .google.cloud.ces.v1.ToolCall tool_call = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolCall field is set. + */ + @java.lang.Override + public boolean hasToolCall() { + return dataCase_ == 2; + } + + /** + * + * + *
      +   * Optional. Tool execution request.
      +   * 
      + * + * .google.cloud.ces.v1.ToolCall tool_call = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolCall. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolCall getToolCall() { + if (dataCase_ == 2) { + return (com.google.cloud.ces.v1.ToolCall) data_; + } + return com.google.cloud.ces.v1.ToolCall.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Tool execution request.
      +   * 
      + * + * .google.cloud.ces.v1.ToolCall tool_call = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolCallOrBuilder getToolCallOrBuilder() { + if (dataCase_ == 2) { + return (com.google.cloud.ces.v1.ToolCall) data_; + } + return com.google.cloud.ces.v1.ToolCall.getDefaultInstance(); + } + + public static final int TOOL_RESPONSE_FIELD_NUMBER = 3; + + /** + * + * + *
      +   * Optional. Tool execution response.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolResponse tool_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolResponse field is set. + */ + @java.lang.Override + public boolean hasToolResponse() { + return dataCase_ == 3; + } + + /** + * + * + *
      +   * Optional. Tool execution response.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolResponse tool_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolResponse. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolResponse getToolResponse() { + if (dataCase_ == 3) { + return (com.google.cloud.ces.v1.ToolResponse) data_; + } + return com.google.cloud.ces.v1.ToolResponse.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Tool execution response.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolResponse tool_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolResponseOrBuilder getToolResponseOrBuilder() { + if (dataCase_ == 3) { + return (com.google.cloud.ces.v1.ToolResponse) data_; + } + return com.google.cloud.ces.v1.ToolResponse.getDefaultInstance(); + } + + public static final int AGENT_TRANSFER_FIELD_NUMBER = 4; + + /** + * + * + *
      +   * Optional. Agent transfer event.
      +   * 
      + * + * + * .google.cloud.ces.v1.AgentTransfer agent_transfer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentTransfer field is set. + */ + @java.lang.Override + public boolean hasAgentTransfer() { + return dataCase_ == 4; + } + + /** + * + * + *
      +   * Optional. Agent transfer event.
      +   * 
      + * + * + * .google.cloud.ces.v1.AgentTransfer agent_transfer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentTransfer. + */ + @java.lang.Override + public com.google.cloud.ces.v1.AgentTransfer getAgentTransfer() { + if (dataCase_ == 4) { + return (com.google.cloud.ces.v1.AgentTransfer) data_; + } + return com.google.cloud.ces.v1.AgentTransfer.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Agent transfer event.
      +   * 
      + * + * + * .google.cloud.ces.v1.AgentTransfer agent_transfer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.AgentTransferOrBuilder getAgentTransferOrBuilder() { + if (dataCase_ == 4) { + return (com.google.cloud.ces.v1.AgentTransfer) data_; + } + return com.google.cloud.ces.v1.AgentTransfer.getDefaultInstance(); + } + + public static final int UPDATED_VARIABLES_FIELD_NUMBER = 8; + + /** + * + * + *
      +   * A struct represents variables that were updated in the conversation,
      +   * keyed by variable names.
      +   * 
      + * + * .google.protobuf.Struct updated_variables = 8; + * + * @return Whether the updatedVariables field is set. + */ + @java.lang.Override + public boolean hasUpdatedVariables() { + return dataCase_ == 8; + } + + /** + * + * + *
      +   * A struct represents variables that were updated in the conversation,
      +   * keyed by variable names.
      +   * 
      + * + * .google.protobuf.Struct updated_variables = 8; + * + * @return The updatedVariables. + */ + @java.lang.Override + public com.google.protobuf.Struct getUpdatedVariables() { + if (dataCase_ == 8) { + return (com.google.protobuf.Struct) data_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + /** + * + * + *
      +   * A struct represents variables that were updated in the conversation,
      +   * keyed by variable names.
      +   * 
      + * + * .google.protobuf.Struct updated_variables = 8; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getUpdatedVariablesOrBuilder() { + if (dataCase_ == 8) { + return (com.google.protobuf.Struct) data_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + public static final int DEFAULT_VARIABLES_FIELD_NUMBER = 10; + + /** + * + * + *
      +   * A struct represents default variables at the start of the conversation,
      +   * keyed by variable names.
      +   * 
      + * + * .google.protobuf.Struct default_variables = 10; + * + * @return Whether the defaultVariables field is set. + */ + @java.lang.Override + public boolean hasDefaultVariables() { + return dataCase_ == 10; + } + + /** + * + * + *
      +   * A struct represents default variables at the start of the conversation,
      +   * keyed by variable names.
      +   * 
      + * + * .google.protobuf.Struct default_variables = 10; + * + * @return The defaultVariables. + */ + @java.lang.Override + public com.google.protobuf.Struct getDefaultVariables() { + if (dataCase_ == 10) { + return (com.google.protobuf.Struct) data_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + /** + * + * + *
      +   * A struct represents default variables at the start of the conversation,
      +   * keyed by variable names.
      +   * 
      + * + * .google.protobuf.Struct default_variables = 10; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getDefaultVariablesOrBuilder() { + if (dataCase_ == 10) { + return (com.google.protobuf.Struct) data_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (dataCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, data_); + } + if (dataCase_ == 2) { + output.writeMessage(2, (com.google.cloud.ces.v1.ToolCall) data_); + } + if (dataCase_ == 3) { + output.writeMessage(3, (com.google.cloud.ces.v1.ToolResponse) data_); + } + if (dataCase_ == 4) { + output.writeMessage(4, (com.google.cloud.ces.v1.AgentTransfer) data_); + } + if (dataCase_ == 5) { + output.writeMessage(5, (com.google.cloud.ces.v1.Image) data_); + } + if (dataCase_ == 8) { + output.writeMessage(8, (com.google.protobuf.Struct) data_); + } + if (dataCase_ == 9) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, data_); + } + if (dataCase_ == 10) { + output.writeMessage(10, (com.google.protobuf.Struct) data_); + } + if (dataCase_ == 11) { + output.writeMessage(11, (com.google.protobuf.Struct) data_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, data_); + } + if (dataCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.ces.v1.ToolCall) data_); + } + if (dataCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.ces.v1.ToolResponse) data_); + } + if (dataCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.ces.v1.AgentTransfer) data_); + } + if (dataCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.ces.v1.Image) data_); + } + if (dataCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.protobuf.Struct) data_); + } + if (dataCase_ == 9) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, data_); + } + if (dataCase_ == 10) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, (com.google.protobuf.Struct) data_); + } + if (dataCase_ == 11) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, (com.google.protobuf.Struct) data_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.Chunk)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.Chunk other = (com.google.cloud.ces.v1.Chunk) obj; + + if (!getDataCase().equals(other.getDataCase())) return false; + switch (dataCase_) { + case 1: + if (!getText().equals(other.getText())) return false; + break; + case 9: + if (!getTranscript().equals(other.getTranscript())) return false; + break; + case 11: + if (!getPayload().equals(other.getPayload())) return false; + break; + case 5: + if (!getImage().equals(other.getImage())) return false; + break; + case 2: + if (!getToolCall().equals(other.getToolCall())) return false; + break; + case 3: + if (!getToolResponse().equals(other.getToolResponse())) return false; + break; + case 4: + if (!getAgentTransfer().equals(other.getAgentTransfer())) return false; + break; + case 8: + if (!getUpdatedVariables().equals(other.getUpdatedVariables())) return false; + break; + case 10: + if (!getDefaultVariables().equals(other.getDefaultVariables())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (dataCase_) { + case 1: + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + break; + case 9: + hash = (37 * hash) + TRANSCRIPT_FIELD_NUMBER; + hash = (53 * hash) + getTranscript().hashCode(); + break; + case 11: + hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; + hash = (53 * hash) + getPayload().hashCode(); + break; + case 5: + hash = (37 * hash) + IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getImage().hashCode(); + break; + case 2: + hash = (37 * hash) + TOOL_CALL_FIELD_NUMBER; + hash = (53 * hash) + getToolCall().hashCode(); + break; + case 3: + hash = (37 * hash) + TOOL_RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getToolResponse().hashCode(); + break; + case 4: + hash = (37 * hash) + AGENT_TRANSFER_FIELD_NUMBER; + hash = (53 * hash) + getAgentTransfer().hashCode(); + break; + case 8: + hash = (37 * hash) + UPDATED_VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + getUpdatedVariables().hashCode(); + break; + case 10: + hash = (37 * hash) + DEFAULT_VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + getDefaultVariables().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.Chunk parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Chunk parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Chunk parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Chunk parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Chunk parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Chunk parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Chunk parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Chunk parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Chunk parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Chunk parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Chunk parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Chunk parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.Chunk prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * A chunk of content within a message.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Chunk} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.Chunk) + com.google.cloud.ces.v1.ChunkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_Chunk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_Chunk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Chunk.class, com.google.cloud.ces.v1.Chunk.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.Chunk.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (payloadBuilder_ != null) { + payloadBuilder_.clear(); + } + if (imageBuilder_ != null) { + imageBuilder_.clear(); + } + if (toolCallBuilder_ != null) { + toolCallBuilder_.clear(); + } + if (toolResponseBuilder_ != null) { + toolResponseBuilder_.clear(); + } + if (agentTransferBuilder_ != null) { + agentTransferBuilder_.clear(); + } + if (updatedVariablesBuilder_ != null) { + updatedVariablesBuilder_.clear(); + } + if (defaultVariablesBuilder_ != null) { + defaultVariablesBuilder_.clear(); + } + dataCase_ = 0; + data_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_Chunk_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Chunk getDefaultInstanceForType() { + return com.google.cloud.ces.v1.Chunk.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.Chunk build() { + com.google.cloud.ces.v1.Chunk result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Chunk buildPartial() { + com.google.cloud.ces.v1.Chunk result = new com.google.cloud.ces.v1.Chunk(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.Chunk result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.ces.v1.Chunk result) { + result.dataCase_ = dataCase_; + result.data_ = this.data_; + if (dataCase_ == 11 && payloadBuilder_ != null) { + result.data_ = payloadBuilder_.build(); + } + if (dataCase_ == 5 && imageBuilder_ != null) { + result.data_ = imageBuilder_.build(); + } + if (dataCase_ == 2 && toolCallBuilder_ != null) { + result.data_ = toolCallBuilder_.build(); + } + if (dataCase_ == 3 && toolResponseBuilder_ != null) { + result.data_ = toolResponseBuilder_.build(); + } + if (dataCase_ == 4 && agentTransferBuilder_ != null) { + result.data_ = agentTransferBuilder_.build(); + } + if (dataCase_ == 8 && updatedVariablesBuilder_ != null) { + result.data_ = updatedVariablesBuilder_.build(); + } + if (dataCase_ == 10 && defaultVariablesBuilder_ != null) { + result.data_ = defaultVariablesBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.Chunk) { + return mergeFrom((com.google.cloud.ces.v1.Chunk) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.Chunk other) { + if (other == com.google.cloud.ces.v1.Chunk.getDefaultInstance()) return this; + switch (other.getDataCase()) { + case TEXT: + { + dataCase_ = 1; + data_ = other.data_; + onChanged(); + break; + } + case TRANSCRIPT: + { + dataCase_ = 9; + data_ = other.data_; + onChanged(); + break; + } + case PAYLOAD: + { + mergePayload(other.getPayload()); + break; + } + case IMAGE: + { + mergeImage(other.getImage()); + break; + } + case TOOL_CALL: + { + mergeToolCall(other.getToolCall()); + break; + } + case TOOL_RESPONSE: + { + mergeToolResponse(other.getToolResponse()); + break; + } + case AGENT_TRANSFER: + { + mergeAgentTransfer(other.getAgentTransfer()); + break; + } + case UPDATED_VARIABLES: + { + mergeUpdatedVariables(other.getUpdatedVariables()); + break; + } + case DEFAULT_VARIABLES: + { + mergeDefaultVariables(other.getDefaultVariables()); + break; + } + case DATA_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + dataCase_ = 1; + data_ = s; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetToolCallFieldBuilder().getBuilder(), extensionRegistry); + dataCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetToolResponseFieldBuilder().getBuilder(), extensionRegistry); + dataCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetAgentTransferFieldBuilder().getBuilder(), extensionRegistry); + dataCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(internalGetImageFieldBuilder().getBuilder(), extensionRegistry); + dataCase_ = 5; + break; + } // case 42 + case 66: + { + input.readMessage( + internalGetUpdatedVariablesFieldBuilder().getBuilder(), extensionRegistry); + dataCase_ = 8; + break; + } // case 66 + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + dataCase_ = 9; + data_ = s; + break; + } // case 74 + case 82: + { + input.readMessage( + internalGetDefaultVariablesFieldBuilder().getBuilder(), extensionRegistry); + dataCase_ = 10; + break; + } // case 82 + case 90: + { + input.readMessage(internalGetPayloadFieldBuilder().getBuilder(), extensionRegistry); + dataCase_ = 11; + break; + } // case 90 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int dataCase_ = 0; + private java.lang.Object data_; + + public DataCase getDataCase() { + return DataCase.forNumber(dataCase_); + } + + public Builder clearData() { + dataCase_ = 0; + data_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
      +     * Optional. Text data.
      +     * 
      + * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the text field is set. + */ + @java.lang.Override + public boolean hasText() { + return dataCase_ == 1; + } + + /** + * + * + *
      +     * Optional. Text data.
      +     * 
      + * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = ""; + if (dataCase_ == 1) { + ref = data_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (dataCase_ == 1) { + data_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Text data.
      +     * 
      + * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = ""; + if (dataCase_ == 1) { + ref = data_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (dataCase_ == 1) { + data_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Text data.
      +     * 
      + * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataCase_ = 1; + data_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Text data.
      +     * 
      + * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearText() { + if (dataCase_ == 1) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Text data.
      +     * 
      + * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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(); + } + checkByteStringIsUtf8(value); + dataCase_ = 1; + data_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Transcript associated with the audio.
      +     * 
      + * + * string transcript = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the transcript field is set. + */ + @java.lang.Override + public boolean hasTranscript() { + return dataCase_ == 9; + } + + /** + * + * + *
      +     * Optional. Transcript associated with the audio.
      +     * 
      + * + * string transcript = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The transcript. + */ + @java.lang.Override + public java.lang.String getTranscript() { + java.lang.Object ref = ""; + if (dataCase_ == 9) { + ref = data_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (dataCase_ == 9) { + data_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Transcript associated with the audio.
      +     * 
      + * + * string transcript = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for transcript. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTranscriptBytes() { + java.lang.Object ref = ""; + if (dataCase_ == 9) { + ref = data_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (dataCase_ == 9) { + data_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Transcript associated with the audio.
      +     * 
      + * + * string transcript = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The transcript to set. + * @return This builder for chaining. + */ + public Builder setTranscript(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataCase_ = 9; + data_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Transcript associated with the audio.
      +     * 
      + * + * string transcript = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTranscript() { + if (dataCase_ == 9) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Transcript associated with the audio.
      +     * 
      + * + * string transcript = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for transcript to set. + * @return This builder for chaining. + */ + public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataCase_ = 9; + data_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + payloadBuilder_; + + /** + * + * + *
      +     * Optional. Custom payload data.
      +     * 
      + * + * .google.protobuf.Struct payload = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the payload field is set. + */ + @java.lang.Override + public boolean hasPayload() { + return dataCase_ == 11; + } + + /** + * + * + *
      +     * Optional. Custom payload data.
      +     * 
      + * + * .google.protobuf.Struct payload = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The payload. + */ + @java.lang.Override + public com.google.protobuf.Struct getPayload() { + if (payloadBuilder_ == null) { + if (dataCase_ == 11) { + return (com.google.protobuf.Struct) data_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } else { + if (dataCase_ == 11) { + return payloadBuilder_.getMessage(); + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Custom payload data.
      +     * 
      + * + * .google.protobuf.Struct payload = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setPayload(com.google.protobuf.Struct value) { + if (payloadBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + payloadBuilder_.setMessage(value); + } + dataCase_ = 11; + return this; + } + + /** + * + * + *
      +     * Optional. Custom payload data.
      +     * 
      + * + * .google.protobuf.Struct payload = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setPayload(com.google.protobuf.Struct.Builder builderForValue) { + if (payloadBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + payloadBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 11; + return this; + } + + /** + * + * + *
      +     * Optional. Custom payload data.
      +     * 
      + * + * .google.protobuf.Struct payload = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergePayload(com.google.protobuf.Struct value) { + if (payloadBuilder_ == null) { + if (dataCase_ == 11 && data_ != com.google.protobuf.Struct.getDefaultInstance()) { + data_ = + com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) data_) + .mergeFrom(value) + .buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 11) { + payloadBuilder_.mergeFrom(value); + } else { + payloadBuilder_.setMessage(value); + } + } + dataCase_ = 11; + return this; + } + + /** + * + * + *
      +     * Optional. Custom payload data.
      +     * 
      + * + * .google.protobuf.Struct payload = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearPayload() { + if (payloadBuilder_ == null) { + if (dataCase_ == 11) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 11) { + dataCase_ = 0; + data_ = null; + } + payloadBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Custom payload data.
      +     * 
      + * + * .google.protobuf.Struct payload = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Struct.Builder getPayloadBuilder() { + return internalGetPayloadFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Custom payload data.
      +     * 
      + * + * .google.protobuf.Struct payload = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { + if ((dataCase_ == 11) && (payloadBuilder_ != null)) { + return payloadBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 11) { + return (com.google.protobuf.Struct) data_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Custom payload data.
      +     * 
      + * + * .google.protobuf.Struct payload = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetPayloadFieldBuilder() { + if (payloadBuilder_ == null) { + if (!(dataCase_ == 11)) { + data_ = com.google.protobuf.Struct.getDefaultInstance(); + } + payloadBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + (com.google.protobuf.Struct) data_, getParentForChildren(), isClean()); + data_ = null; + } + dataCase_ = 11; + onChanged(); + return payloadBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Image, + com.google.cloud.ces.v1.Image.Builder, + com.google.cloud.ces.v1.ImageOrBuilder> + imageBuilder_; + + /** + * + * + *
      +     * Optional. Image data.
      +     * 
      + * + * .google.cloud.ces.v1.Image image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the image field is set. + */ + @java.lang.Override + public boolean hasImage() { + return dataCase_ == 5; + } + + /** + * + * + *
      +     * Optional. Image data.
      +     * 
      + * + * .google.cloud.ces.v1.Image image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The image. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Image getImage() { + if (imageBuilder_ == null) { + if (dataCase_ == 5) { + return (com.google.cloud.ces.v1.Image) data_; + } + return com.google.cloud.ces.v1.Image.getDefaultInstance(); + } else { + if (dataCase_ == 5) { + return imageBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.Image.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Image data.
      +     * 
      + * + * .google.cloud.ces.v1.Image image = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setImage(com.google.cloud.ces.v1.Image value) { + if (imageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + imageBuilder_.setMessage(value); + } + dataCase_ = 5; + return this; + } + + /** + * + * + *
      +     * Optional. Image data.
      +     * 
      + * + * .google.cloud.ces.v1.Image image = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setImage(com.google.cloud.ces.v1.Image.Builder builderForValue) { + if (imageBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + imageBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 5; + return this; + } + + /** + * + * + *
      +     * Optional. Image data.
      +     * 
      + * + * .google.cloud.ces.v1.Image image = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeImage(com.google.cloud.ces.v1.Image value) { + if (imageBuilder_ == null) { + if (dataCase_ == 5 && data_ != com.google.cloud.ces.v1.Image.getDefaultInstance()) { + data_ = + com.google.cloud.ces.v1.Image.newBuilder((com.google.cloud.ces.v1.Image) data_) + .mergeFrom(value) + .buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 5) { + imageBuilder_.mergeFrom(value); + } else { + imageBuilder_.setMessage(value); + } + } + dataCase_ = 5; + return this; + } + + /** + * + * + *
      +     * Optional. Image data.
      +     * 
      + * + * .google.cloud.ces.v1.Image image = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearImage() { + if (imageBuilder_ == null) { + if (dataCase_ == 5) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 5) { + dataCase_ = 0; + data_ = null; + } + imageBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Image data.
      +     * 
      + * + * .google.cloud.ces.v1.Image image = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.ces.v1.Image.Builder getImageBuilder() { + return internalGetImageFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Image data.
      +     * 
      + * + * .google.cloud.ces.v1.Image image = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.ces.v1.ImageOrBuilder getImageOrBuilder() { + if ((dataCase_ == 5) && (imageBuilder_ != null)) { + return imageBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 5) { + return (com.google.cloud.ces.v1.Image) data_; + } + return com.google.cloud.ces.v1.Image.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Image data.
      +     * 
      + * + * .google.cloud.ces.v1.Image image = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Image, + com.google.cloud.ces.v1.Image.Builder, + com.google.cloud.ces.v1.ImageOrBuilder> + internalGetImageFieldBuilder() { + if (imageBuilder_ == null) { + if (!(dataCase_ == 5)) { + data_ = com.google.cloud.ces.v1.Image.getDefaultInstance(); + } + imageBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Image, + com.google.cloud.ces.v1.Image.Builder, + com.google.cloud.ces.v1.ImageOrBuilder>( + (com.google.cloud.ces.v1.Image) data_, getParentForChildren(), isClean()); + data_ = null; + } + dataCase_ = 5; + onChanged(); + return imageBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolCall, + com.google.cloud.ces.v1.ToolCall.Builder, + com.google.cloud.ces.v1.ToolCallOrBuilder> + toolCallBuilder_; + + /** + * + * + *
      +     * Optional. Tool execution request.
      +     * 
      + * + * .google.cloud.ces.v1.ToolCall tool_call = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolCall field is set. + */ + @java.lang.Override + public boolean hasToolCall() { + return dataCase_ == 2; + } + + /** + * + * + *
      +     * Optional. Tool execution request.
      +     * 
      + * + * .google.cloud.ces.v1.ToolCall tool_call = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolCall. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolCall getToolCall() { + if (toolCallBuilder_ == null) { + if (dataCase_ == 2) { + return (com.google.cloud.ces.v1.ToolCall) data_; + } + return com.google.cloud.ces.v1.ToolCall.getDefaultInstance(); + } else { + if (dataCase_ == 2) { + return toolCallBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.ToolCall.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Tool execution request.
      +     * 
      + * + * .google.cloud.ces.v1.ToolCall tool_call = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolCall(com.google.cloud.ces.v1.ToolCall value) { + if (toolCallBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + toolCallBuilder_.setMessage(value); + } + dataCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Optional. Tool execution request.
      +     * 
      + * + * .google.cloud.ces.v1.ToolCall tool_call = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolCall(com.google.cloud.ces.v1.ToolCall.Builder builderForValue) { + if (toolCallBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + toolCallBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Optional. Tool execution request.
      +     * 
      + * + * .google.cloud.ces.v1.ToolCall tool_call = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeToolCall(com.google.cloud.ces.v1.ToolCall value) { + if (toolCallBuilder_ == null) { + if (dataCase_ == 2 && data_ != com.google.cloud.ces.v1.ToolCall.getDefaultInstance()) { + data_ = + com.google.cloud.ces.v1.ToolCall.newBuilder((com.google.cloud.ces.v1.ToolCall) data_) + .mergeFrom(value) + .buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 2) { + toolCallBuilder_.mergeFrom(value); + } else { + toolCallBuilder_.setMessage(value); + } + } + dataCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Optional. Tool execution request.
      +     * 
      + * + * .google.cloud.ces.v1.ToolCall tool_call = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearToolCall() { + if (toolCallBuilder_ == null) { + if (dataCase_ == 2) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 2) { + dataCase_ = 0; + data_ = null; + } + toolCallBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Tool execution request.
      +     * 
      + * + * .google.cloud.ces.v1.ToolCall tool_call = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ToolCall.Builder getToolCallBuilder() { + return internalGetToolCallFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Tool execution request.
      +     * 
      + * + * .google.cloud.ces.v1.ToolCall tool_call = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolCallOrBuilder getToolCallOrBuilder() { + if ((dataCase_ == 2) && (toolCallBuilder_ != null)) { + return toolCallBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 2) { + return (com.google.cloud.ces.v1.ToolCall) data_; + } + return com.google.cloud.ces.v1.ToolCall.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Tool execution request.
      +     * 
      + * + * .google.cloud.ces.v1.ToolCall tool_call = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolCall, + com.google.cloud.ces.v1.ToolCall.Builder, + com.google.cloud.ces.v1.ToolCallOrBuilder> + internalGetToolCallFieldBuilder() { + if (toolCallBuilder_ == null) { + if (!(dataCase_ == 2)) { + data_ = com.google.cloud.ces.v1.ToolCall.getDefaultInstance(); + } + toolCallBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolCall, + com.google.cloud.ces.v1.ToolCall.Builder, + com.google.cloud.ces.v1.ToolCallOrBuilder>( + (com.google.cloud.ces.v1.ToolCall) data_, getParentForChildren(), isClean()); + data_ = null; + } + dataCase_ = 2; + onChanged(); + return toolCallBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolResponse, + com.google.cloud.ces.v1.ToolResponse.Builder, + com.google.cloud.ces.v1.ToolResponseOrBuilder> + toolResponseBuilder_; + + /** + * + * + *
      +     * Optional. Tool execution response.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolResponse tool_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolResponse field is set. + */ + @java.lang.Override + public boolean hasToolResponse() { + return dataCase_ == 3; + } + + /** + * + * + *
      +     * Optional. Tool execution response.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolResponse tool_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolResponse. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolResponse getToolResponse() { + if (toolResponseBuilder_ == null) { + if (dataCase_ == 3) { + return (com.google.cloud.ces.v1.ToolResponse) data_; + } + return com.google.cloud.ces.v1.ToolResponse.getDefaultInstance(); + } else { + if (dataCase_ == 3) { + return toolResponseBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.ToolResponse.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Tool execution response.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolResponse tool_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolResponse(com.google.cloud.ces.v1.ToolResponse value) { + if (toolResponseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + toolResponseBuilder_.setMessage(value); + } + dataCase_ = 3; + return this; + } + + /** + * + * + *
      +     * Optional. Tool execution response.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolResponse tool_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolResponse(com.google.cloud.ces.v1.ToolResponse.Builder builderForValue) { + if (toolResponseBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + toolResponseBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 3; + return this; + } + + /** + * + * + *
      +     * Optional. Tool execution response.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolResponse tool_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeToolResponse(com.google.cloud.ces.v1.ToolResponse value) { + if (toolResponseBuilder_ == null) { + if (dataCase_ == 3 && data_ != com.google.cloud.ces.v1.ToolResponse.getDefaultInstance()) { + data_ = + com.google.cloud.ces.v1.ToolResponse.newBuilder( + (com.google.cloud.ces.v1.ToolResponse) data_) + .mergeFrom(value) + .buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 3) { + toolResponseBuilder_.mergeFrom(value); + } else { + toolResponseBuilder_.setMessage(value); + } + } + dataCase_ = 3; + return this; + } + + /** + * + * + *
      +     * Optional. Tool execution response.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolResponse tool_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearToolResponse() { + if (toolResponseBuilder_ == null) { + if (dataCase_ == 3) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 3) { + dataCase_ = 0; + data_ = null; + } + toolResponseBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Tool execution response.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolResponse tool_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ToolResponse.Builder getToolResponseBuilder() { + return internalGetToolResponseFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Tool execution response.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolResponse tool_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolResponseOrBuilder getToolResponseOrBuilder() { + if ((dataCase_ == 3) && (toolResponseBuilder_ != null)) { + return toolResponseBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 3) { + return (com.google.cloud.ces.v1.ToolResponse) data_; + } + return com.google.cloud.ces.v1.ToolResponse.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Tool execution response.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolResponse tool_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolResponse, + com.google.cloud.ces.v1.ToolResponse.Builder, + com.google.cloud.ces.v1.ToolResponseOrBuilder> + internalGetToolResponseFieldBuilder() { + if (toolResponseBuilder_ == null) { + if (!(dataCase_ == 3)) { + data_ = com.google.cloud.ces.v1.ToolResponse.getDefaultInstance(); + } + toolResponseBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolResponse, + com.google.cloud.ces.v1.ToolResponse.Builder, + com.google.cloud.ces.v1.ToolResponseOrBuilder>( + (com.google.cloud.ces.v1.ToolResponse) data_, getParentForChildren(), isClean()); + data_ = null; + } + dataCase_ = 3; + onChanged(); + return toolResponseBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.AgentTransfer, + com.google.cloud.ces.v1.AgentTransfer.Builder, + com.google.cloud.ces.v1.AgentTransferOrBuilder> + agentTransferBuilder_; + + /** + * + * + *
      +     * Optional. Agent transfer event.
      +     * 
      + * + * + * .google.cloud.ces.v1.AgentTransfer agent_transfer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentTransfer field is set. + */ + @java.lang.Override + public boolean hasAgentTransfer() { + return dataCase_ == 4; + } + + /** + * + * + *
      +     * Optional. Agent transfer event.
      +     * 
      + * + * + * .google.cloud.ces.v1.AgentTransfer agent_transfer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentTransfer. + */ + @java.lang.Override + public com.google.cloud.ces.v1.AgentTransfer getAgentTransfer() { + if (agentTransferBuilder_ == null) { + if (dataCase_ == 4) { + return (com.google.cloud.ces.v1.AgentTransfer) data_; + } + return com.google.cloud.ces.v1.AgentTransfer.getDefaultInstance(); + } else { + if (dataCase_ == 4) { + return agentTransferBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.AgentTransfer.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Agent transfer event.
      +     * 
      + * + * + * .google.cloud.ces.v1.AgentTransfer agent_transfer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgentTransfer(com.google.cloud.ces.v1.AgentTransfer value) { + if (agentTransferBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + agentTransferBuilder_.setMessage(value); + } + dataCase_ = 4; + return this; + } + + /** + * + * + *
      +     * Optional. Agent transfer event.
      +     * 
      + * + * + * .google.cloud.ces.v1.AgentTransfer agent_transfer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgentTransfer(com.google.cloud.ces.v1.AgentTransfer.Builder builderForValue) { + if (agentTransferBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + agentTransferBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 4; + return this; + } + + /** + * + * + *
      +     * Optional. Agent transfer event.
      +     * 
      + * + * + * .google.cloud.ces.v1.AgentTransfer agent_transfer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAgentTransfer(com.google.cloud.ces.v1.AgentTransfer value) { + if (agentTransferBuilder_ == null) { + if (dataCase_ == 4 && data_ != com.google.cloud.ces.v1.AgentTransfer.getDefaultInstance()) { + data_ = + com.google.cloud.ces.v1.AgentTransfer.newBuilder( + (com.google.cloud.ces.v1.AgentTransfer) data_) + .mergeFrom(value) + .buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 4) { + agentTransferBuilder_.mergeFrom(value); + } else { + agentTransferBuilder_.setMessage(value); + } + } + dataCase_ = 4; + return this; + } + + /** + * + * + *
      +     * Optional. Agent transfer event.
      +     * 
      + * + * + * .google.cloud.ces.v1.AgentTransfer agent_transfer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAgentTransfer() { + if (agentTransferBuilder_ == null) { + if (dataCase_ == 4) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 4) { + dataCase_ = 0; + data_ = null; + } + agentTransferBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Agent transfer event.
      +     * 
      + * + * + * .google.cloud.ces.v1.AgentTransfer agent_transfer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.AgentTransfer.Builder getAgentTransferBuilder() { + return internalGetAgentTransferFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Agent transfer event.
      +     * 
      + * + * + * .google.cloud.ces.v1.AgentTransfer agent_transfer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.AgentTransferOrBuilder getAgentTransferOrBuilder() { + if ((dataCase_ == 4) && (agentTransferBuilder_ != null)) { + return agentTransferBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 4) { + return (com.google.cloud.ces.v1.AgentTransfer) data_; + } + return com.google.cloud.ces.v1.AgentTransfer.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Agent transfer event.
      +     * 
      + * + * + * .google.cloud.ces.v1.AgentTransfer agent_transfer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.AgentTransfer, + com.google.cloud.ces.v1.AgentTransfer.Builder, + com.google.cloud.ces.v1.AgentTransferOrBuilder> + internalGetAgentTransferFieldBuilder() { + if (agentTransferBuilder_ == null) { + if (!(dataCase_ == 4)) { + data_ = com.google.cloud.ces.v1.AgentTransfer.getDefaultInstance(); + } + agentTransferBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.AgentTransfer, + com.google.cloud.ces.v1.AgentTransfer.Builder, + com.google.cloud.ces.v1.AgentTransferOrBuilder>( + (com.google.cloud.ces.v1.AgentTransfer) data_, getParentForChildren(), isClean()); + data_ = null; + } + dataCase_ = 4; + onChanged(); + return agentTransferBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + updatedVariablesBuilder_; + + /** + * + * + *
      +     * A struct represents variables that were updated in the conversation,
      +     * keyed by variable names.
      +     * 
      + * + * .google.protobuf.Struct updated_variables = 8; + * + * @return Whether the updatedVariables field is set. + */ + @java.lang.Override + public boolean hasUpdatedVariables() { + return dataCase_ == 8; + } + + /** + * + * + *
      +     * A struct represents variables that were updated in the conversation,
      +     * keyed by variable names.
      +     * 
      + * + * .google.protobuf.Struct updated_variables = 8; + * + * @return The updatedVariables. + */ + @java.lang.Override + public com.google.protobuf.Struct getUpdatedVariables() { + if (updatedVariablesBuilder_ == null) { + if (dataCase_ == 8) { + return (com.google.protobuf.Struct) data_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } else { + if (dataCase_ == 8) { + return updatedVariablesBuilder_.getMessage(); + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * A struct represents variables that were updated in the conversation,
      +     * keyed by variable names.
      +     * 
      + * + * .google.protobuf.Struct updated_variables = 8; + */ + public Builder setUpdatedVariables(com.google.protobuf.Struct value) { + if (updatedVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + updatedVariablesBuilder_.setMessage(value); + } + dataCase_ = 8; + return this; + } + + /** + * + * + *
      +     * A struct represents variables that were updated in the conversation,
      +     * keyed by variable names.
      +     * 
      + * + * .google.protobuf.Struct updated_variables = 8; + */ + public Builder setUpdatedVariables(com.google.protobuf.Struct.Builder builderForValue) { + if (updatedVariablesBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + updatedVariablesBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 8; + return this; + } + + /** + * + * + *
      +     * A struct represents variables that were updated in the conversation,
      +     * keyed by variable names.
      +     * 
      + * + * .google.protobuf.Struct updated_variables = 8; + */ + public Builder mergeUpdatedVariables(com.google.protobuf.Struct value) { + if (updatedVariablesBuilder_ == null) { + if (dataCase_ == 8 && data_ != com.google.protobuf.Struct.getDefaultInstance()) { + data_ = + com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) data_) + .mergeFrom(value) + .buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 8) { + updatedVariablesBuilder_.mergeFrom(value); + } else { + updatedVariablesBuilder_.setMessage(value); + } + } + dataCase_ = 8; + return this; + } + + /** + * + * + *
      +     * A struct represents variables that were updated in the conversation,
      +     * keyed by variable names.
      +     * 
      + * + * .google.protobuf.Struct updated_variables = 8; + */ + public Builder clearUpdatedVariables() { + if (updatedVariablesBuilder_ == null) { + if (dataCase_ == 8) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 8) { + dataCase_ = 0; + data_ = null; + } + updatedVariablesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * A struct represents variables that were updated in the conversation,
      +     * keyed by variable names.
      +     * 
      + * + * .google.protobuf.Struct updated_variables = 8; + */ + public com.google.protobuf.Struct.Builder getUpdatedVariablesBuilder() { + return internalGetUpdatedVariablesFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * A struct represents variables that were updated in the conversation,
      +     * keyed by variable names.
      +     * 
      + * + * .google.protobuf.Struct updated_variables = 8; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getUpdatedVariablesOrBuilder() { + if ((dataCase_ == 8) && (updatedVariablesBuilder_ != null)) { + return updatedVariablesBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 8) { + return (com.google.protobuf.Struct) data_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * A struct represents variables that were updated in the conversation,
      +     * keyed by variable names.
      +     * 
      + * + * .google.protobuf.Struct updated_variables = 8; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetUpdatedVariablesFieldBuilder() { + if (updatedVariablesBuilder_ == null) { + if (!(dataCase_ == 8)) { + data_ = com.google.protobuf.Struct.getDefaultInstance(); + } + updatedVariablesBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + (com.google.protobuf.Struct) data_, getParentForChildren(), isClean()); + data_ = null; + } + dataCase_ = 8; + onChanged(); + return updatedVariablesBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + defaultVariablesBuilder_; + + /** + * + * + *
      +     * A struct represents default variables at the start of the conversation,
      +     * keyed by variable names.
      +     * 
      + * + * .google.protobuf.Struct default_variables = 10; + * + * @return Whether the defaultVariables field is set. + */ + @java.lang.Override + public boolean hasDefaultVariables() { + return dataCase_ == 10; + } + + /** + * + * + *
      +     * A struct represents default variables at the start of the conversation,
      +     * keyed by variable names.
      +     * 
      + * + * .google.protobuf.Struct default_variables = 10; + * + * @return The defaultVariables. + */ + @java.lang.Override + public com.google.protobuf.Struct getDefaultVariables() { + if (defaultVariablesBuilder_ == null) { + if (dataCase_ == 10) { + return (com.google.protobuf.Struct) data_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } else { + if (dataCase_ == 10) { + return defaultVariablesBuilder_.getMessage(); + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * A struct represents default variables at the start of the conversation,
      +     * keyed by variable names.
      +     * 
      + * + * .google.protobuf.Struct default_variables = 10; + */ + public Builder setDefaultVariables(com.google.protobuf.Struct value) { + if (defaultVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + defaultVariablesBuilder_.setMessage(value); + } + dataCase_ = 10; + return this; + } + + /** + * + * + *
      +     * A struct represents default variables at the start of the conversation,
      +     * keyed by variable names.
      +     * 
      + * + * .google.protobuf.Struct default_variables = 10; + */ + public Builder setDefaultVariables(com.google.protobuf.Struct.Builder builderForValue) { + if (defaultVariablesBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + defaultVariablesBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 10; + return this; + } + + /** + * + * + *
      +     * A struct represents default variables at the start of the conversation,
      +     * keyed by variable names.
      +     * 
      + * + * .google.protobuf.Struct default_variables = 10; + */ + public Builder mergeDefaultVariables(com.google.protobuf.Struct value) { + if (defaultVariablesBuilder_ == null) { + if (dataCase_ == 10 && data_ != com.google.protobuf.Struct.getDefaultInstance()) { + data_ = + com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) data_) + .mergeFrom(value) + .buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 10) { + defaultVariablesBuilder_.mergeFrom(value); + } else { + defaultVariablesBuilder_.setMessage(value); + } + } + dataCase_ = 10; + return this; + } + + /** + * + * + *
      +     * A struct represents default variables at the start of the conversation,
      +     * keyed by variable names.
      +     * 
      + * + * .google.protobuf.Struct default_variables = 10; + */ + public Builder clearDefaultVariables() { + if (defaultVariablesBuilder_ == null) { + if (dataCase_ == 10) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 10) { + dataCase_ = 0; + data_ = null; + } + defaultVariablesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * A struct represents default variables at the start of the conversation,
      +     * keyed by variable names.
      +     * 
      + * + * .google.protobuf.Struct default_variables = 10; + */ + public com.google.protobuf.Struct.Builder getDefaultVariablesBuilder() { + return internalGetDefaultVariablesFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * A struct represents default variables at the start of the conversation,
      +     * keyed by variable names.
      +     * 
      + * + * .google.protobuf.Struct default_variables = 10; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getDefaultVariablesOrBuilder() { + if ((dataCase_ == 10) && (defaultVariablesBuilder_ != null)) { + return defaultVariablesBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 10) { + return (com.google.protobuf.Struct) data_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * A struct represents default variables at the start of the conversation,
      +     * keyed by variable names.
      +     * 
      + * + * .google.protobuf.Struct default_variables = 10; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetDefaultVariablesFieldBuilder() { + if (defaultVariablesBuilder_ == null) { + if (!(dataCase_ == 10)) { + data_ = com.google.protobuf.Struct.getDefaultInstance(); + } + defaultVariablesBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + (com.google.protobuf.Struct) data_, getParentForChildren(), isClean()); + data_ = null; + } + dataCase_ = 10; + onChanged(); + return defaultVariablesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Chunk) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.Chunk) + private static final com.google.cloud.ces.v1.Chunk DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.Chunk(); + } + + public static com.google.cloud.ces.v1.Chunk getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Chunk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Chunk getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChunkOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChunkOrBuilder.java new file mode 100644 index 000000000000..fd6a5ef8e5a5 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChunkOrBuilder.java @@ -0,0 +1,388 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/example.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ChunkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.Chunk) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. Text data.
      +   * 
      + * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the text field is set. + */ + boolean hasText(); + + /** + * + * + *
      +   * Optional. Text data.
      +   * 
      + * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The text. + */ + java.lang.String getText(); + + /** + * + * + *
      +   * Optional. Text data.
      +   * 
      + * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); + + /** + * + * + *
      +   * Optional. Transcript associated with the audio.
      +   * 
      + * + * string transcript = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the transcript field is set. + */ + boolean hasTranscript(); + + /** + * + * + *
      +   * Optional. Transcript associated with the audio.
      +   * 
      + * + * string transcript = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The transcript. + */ + java.lang.String getTranscript(); + + /** + * + * + *
      +   * Optional. Transcript associated with the audio.
      +   * 
      + * + * string transcript = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for transcript. + */ + com.google.protobuf.ByteString getTranscriptBytes(); + + /** + * + * + *
      +   * Optional. Custom payload data.
      +   * 
      + * + * .google.protobuf.Struct payload = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the payload field is set. + */ + boolean hasPayload(); + + /** + * + * + *
      +   * Optional. Custom payload data.
      +   * 
      + * + * .google.protobuf.Struct payload = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The payload. + */ + com.google.protobuf.Struct getPayload(); + + /** + * + * + *
      +   * Optional. Custom payload data.
      +   * 
      + * + * .google.protobuf.Struct payload = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.StructOrBuilder getPayloadOrBuilder(); + + /** + * + * + *
      +   * Optional. Image data.
      +   * 
      + * + * .google.cloud.ces.v1.Image image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the image field is set. + */ + boolean hasImage(); + + /** + * + * + *
      +   * Optional. Image data.
      +   * 
      + * + * .google.cloud.ces.v1.Image image = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The image. + */ + com.google.cloud.ces.v1.Image getImage(); + + /** + * + * + *
      +   * Optional. Image data.
      +   * 
      + * + * .google.cloud.ces.v1.Image image = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.ces.v1.ImageOrBuilder getImageOrBuilder(); + + /** + * + * + *
      +   * Optional. Tool execution request.
      +   * 
      + * + * .google.cloud.ces.v1.ToolCall tool_call = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolCall field is set. + */ + boolean hasToolCall(); + + /** + * + * + *
      +   * Optional. Tool execution request.
      +   * 
      + * + * .google.cloud.ces.v1.ToolCall tool_call = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolCall. + */ + com.google.cloud.ces.v1.ToolCall getToolCall(); + + /** + * + * + *
      +   * Optional. Tool execution request.
      +   * 
      + * + * .google.cloud.ces.v1.ToolCall tool_call = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ToolCallOrBuilder getToolCallOrBuilder(); + + /** + * + * + *
      +   * Optional. Tool execution response.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolResponse tool_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolResponse field is set. + */ + boolean hasToolResponse(); + + /** + * + * + *
      +   * Optional. Tool execution response.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolResponse tool_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolResponse. + */ + com.google.cloud.ces.v1.ToolResponse getToolResponse(); + + /** + * + * + *
      +   * Optional. Tool execution response.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolResponse tool_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ToolResponseOrBuilder getToolResponseOrBuilder(); + + /** + * + * + *
      +   * Optional. Agent transfer event.
      +   * 
      + * + * + * .google.cloud.ces.v1.AgentTransfer agent_transfer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentTransfer field is set. + */ + boolean hasAgentTransfer(); + + /** + * + * + *
      +   * Optional. Agent transfer event.
      +   * 
      + * + * + * .google.cloud.ces.v1.AgentTransfer agent_transfer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentTransfer. + */ + com.google.cloud.ces.v1.AgentTransfer getAgentTransfer(); + + /** + * + * + *
      +   * Optional. Agent transfer event.
      +   * 
      + * + * + * .google.cloud.ces.v1.AgentTransfer agent_transfer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.AgentTransferOrBuilder getAgentTransferOrBuilder(); + + /** + * + * + *
      +   * A struct represents variables that were updated in the conversation,
      +   * keyed by variable names.
      +   * 
      + * + * .google.protobuf.Struct updated_variables = 8; + * + * @return Whether the updatedVariables field is set. + */ + boolean hasUpdatedVariables(); + + /** + * + * + *
      +   * A struct represents variables that were updated in the conversation,
      +   * keyed by variable names.
      +   * 
      + * + * .google.protobuf.Struct updated_variables = 8; + * + * @return The updatedVariables. + */ + com.google.protobuf.Struct getUpdatedVariables(); + + /** + * + * + *
      +   * A struct represents variables that were updated in the conversation,
      +   * keyed by variable names.
      +   * 
      + * + * .google.protobuf.Struct updated_variables = 8; + */ + com.google.protobuf.StructOrBuilder getUpdatedVariablesOrBuilder(); + + /** + * + * + *
      +   * A struct represents default variables at the start of the conversation,
      +   * keyed by variable names.
      +   * 
      + * + * .google.protobuf.Struct default_variables = 10; + * + * @return Whether the defaultVariables field is set. + */ + boolean hasDefaultVariables(); + + /** + * + * + *
      +   * A struct represents default variables at the start of the conversation,
      +   * keyed by variable names.
      +   * 
      + * + * .google.protobuf.Struct default_variables = 10; + * + * @return The defaultVariables. + */ + com.google.protobuf.Struct getDefaultVariables(); + + /** + * + * + *
      +   * A struct represents default variables at the start of the conversation,
      +   * keyed by variable names.
      +   * 
      + * + * .google.protobuf.Struct default_variables = 10; + */ + com.google.protobuf.StructOrBuilder getDefaultVariablesOrBuilder(); + + com.google.cloud.ces.v1.Chunk.DataCase getDataCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Citations.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Citations.java new file mode 100644 index 000000000000..f76c31bbe72f --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Citations.java @@ -0,0 +1,1956 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Citations associated with the agent response.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Citations} + */ +@com.google.protobuf.Generated +public final class Citations extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.Citations) + CitationsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Citations"); + } + + // Use Citations.newBuilder() to construct. + private Citations(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Citations() { + citedChunks_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_Citations_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_Citations_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Citations.class, + com.google.cloud.ces.v1.Citations.Builder.class); + } + + public interface CitedChunkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.Citations.CitedChunk) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * URI used for citation.
      +     * 
      + * + * string uri = 1; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
      +     * URI used for citation.
      +     * 
      + * + * string uri = 1; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
      +     * Title of the cited document.
      +     * 
      + * + * string title = 2; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
      +     * Title of the cited document.
      +     * 
      + * + * string title = 2; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
      +     * Text used for citation.
      +     * 
      + * + * string text = 3; + * + * @return The text. + */ + java.lang.String getText(); + + /** + * + * + *
      +     * Text used for citation.
      +     * 
      + * + * string text = 3; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); + } + + /** + * + * + *
      +   * Piece of cited information.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Citations.CitedChunk} + */ + public static final class CitedChunk extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.Citations.CitedChunk) + CitedChunkOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CitedChunk"); + } + + // Use CitedChunk.newBuilder() to construct. + private CitedChunk(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CitedChunk() { + uri_ = ""; + title_ = ""; + text_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_Citations_CitedChunk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_Citations_CitedChunk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Citations.CitedChunk.class, + com.google.cloud.ces.v1.Citations.CitedChunk.Builder.class); + } + + public static final int URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + + /** + * + * + *
      +     * URI used for citation.
      +     * 
      + * + * string uri = 1; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + + /** + * + * + *
      +     * URI used for citation.
      +     * 
      + * + * string uri = 1; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TITLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
      +     * Title of the cited document.
      +     * 
      + * + * string title = 2; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + + /** + * + * + *
      +     * Title of the cited document.
      +     * 
      + * + * string title = 2; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEXT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object text_ = ""; + + /** + * + * + *
      +     * Text used for citation.
      +     * 
      + * + * string text = 3; + * + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } + } + + /** + * + * + *
      +     * Text used for citation.
      +     * 
      + * + * string text = 3; + * + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, title_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, text_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, title_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, text_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.Citations.CitedChunk)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.Citations.CitedChunk other = + (com.google.cloud.ces.v1.Citations.CitedChunk) obj; + + if (!getUri().equals(other.getUri())) return false; + if (!getTitle().equals(other.getTitle())) return false; + if (!getText().equals(other.getText())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.Citations.CitedChunk parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Citations.CitedChunk parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Citations.CitedChunk parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Citations.CitedChunk parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Citations.CitedChunk parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Citations.CitedChunk parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Citations.CitedChunk parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Citations.CitedChunk parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Citations.CitedChunk parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Citations.CitedChunk parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Citations.CitedChunk parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Citations.CitedChunk parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.Citations.CitedChunk prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Piece of cited information.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Citations.CitedChunk} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.Citations.CitedChunk) + com.google.cloud.ces.v1.Citations.CitedChunkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_Citations_CitedChunk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_Citations_CitedChunk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Citations.CitedChunk.class, + com.google.cloud.ces.v1.Citations.CitedChunk.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.Citations.CitedChunk.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + title_ = ""; + text_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_Citations_CitedChunk_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Citations.CitedChunk getDefaultInstanceForType() { + return com.google.cloud.ces.v1.Citations.CitedChunk.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.Citations.CitedChunk build() { + com.google.cloud.ces.v1.Citations.CitedChunk result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Citations.CitedChunk buildPartial() { + com.google.cloud.ces.v1.Citations.CitedChunk result = + new com.google.cloud.ces.v1.Citations.CitedChunk(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.Citations.CitedChunk result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.title_ = title_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.text_ = text_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.Citations.CitedChunk) { + return mergeFrom((com.google.cloud.ces.v1.Citations.CitedChunk) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.Citations.CitedChunk other) { + if (other == com.google.cloud.ces.v1.Citations.CitedChunk.getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getText().isEmpty()) { + text_ = other.text_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + text_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object uri_ = ""; + + /** + * + * + *
      +       * URI used for citation.
      +       * 
      + * + * string uri = 1; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * URI used for citation.
      +       * 
      + * + * string uri = 1; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * URI used for citation.
      +       * 
      + * + * string uri = 1; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * URI used for citation.
      +       * 
      + * + * string uri = 1; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +       * URI used for citation.
      +       * 
      + * + * string uri = 1; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + + /** + * + * + *
      +       * Title of the cited document.
      +       * 
      + * + * string title = 2; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Title of the cited document.
      +       * 
      + * + * string title = 2; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Title of the cited document.
      +       * 
      + * + * string title = 2; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Title of the cited document.
      +       * 
      + * + * string title = 2; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Title of the cited document.
      +       * 
      + * + * string title = 2; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object text_ = ""; + + /** + * + * + *
      +       * Text used for citation.
      +       * 
      + * + * string text = 3; + * + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = text_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Text used for citation.
      +       * 
      + * + * string text = 3; + * + * @return The bytes for text. + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Text used for citation.
      +       * 
      + * + * 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(); + } + text_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Text used for citation.
      +       * 
      + * + * string text = 3; + * + * @return This builder for chaining. + */ + public Builder clearText() { + text_ = getDefaultInstance().getText(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Text used for citation.
      +       * 
      + * + * 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(); + } + checkByteStringIsUtf8(value); + text_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Citations.CitedChunk) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.Citations.CitedChunk) + private static final com.google.cloud.ces.v1.Citations.CitedChunk DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.Citations.CitedChunk(); + } + + public static com.google.cloud.ces.v1.Citations.CitedChunk getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CitedChunk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Citations.CitedChunk getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int CITED_CHUNKS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List citedChunks_; + + /** + * + * + *
      +   * List of cited pieces of information.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Citations.CitedChunk cited_chunks = 1; + */ + @java.lang.Override + public java.util.List getCitedChunksList() { + return citedChunks_; + } + + /** + * + * + *
      +   * List of cited pieces of information.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Citations.CitedChunk cited_chunks = 1; + */ + @java.lang.Override + public java.util.List + getCitedChunksOrBuilderList() { + return citedChunks_; + } + + /** + * + * + *
      +   * List of cited pieces of information.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Citations.CitedChunk cited_chunks = 1; + */ + @java.lang.Override + public int getCitedChunksCount() { + return citedChunks_.size(); + } + + /** + * + * + *
      +   * List of cited pieces of information.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Citations.CitedChunk cited_chunks = 1; + */ + @java.lang.Override + public com.google.cloud.ces.v1.Citations.CitedChunk getCitedChunks(int index) { + return citedChunks_.get(index); + } + + /** + * + * + *
      +   * List of cited pieces of information.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Citations.CitedChunk cited_chunks = 1; + */ + @java.lang.Override + public com.google.cloud.ces.v1.Citations.CitedChunkOrBuilder getCitedChunksOrBuilder(int index) { + return citedChunks_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < citedChunks_.size(); i++) { + output.writeMessage(1, citedChunks_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < citedChunks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, citedChunks_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.Citations)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.Citations other = (com.google.cloud.ces.v1.Citations) obj; + + if (!getCitedChunksList().equals(other.getCitedChunksList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCitedChunksCount() > 0) { + hash = (37 * hash) + CITED_CHUNKS_FIELD_NUMBER; + hash = (53 * hash) + getCitedChunksList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.Citations parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Citations parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Citations parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Citations parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Citations parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Citations parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Citations parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Citations parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Citations parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Citations parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Citations parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Citations parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.Citations prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Citations associated with the agent response.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Citations} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.Citations) + com.google.cloud.ces.v1.CitationsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_Citations_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_Citations_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Citations.class, + com.google.cloud.ces.v1.Citations.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.Citations.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (citedChunksBuilder_ == null) { + citedChunks_ = java.util.Collections.emptyList(); + } else { + citedChunks_ = null; + citedChunksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_Citations_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Citations getDefaultInstanceForType() { + return com.google.cloud.ces.v1.Citations.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.Citations build() { + com.google.cloud.ces.v1.Citations result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Citations buildPartial() { + com.google.cloud.ces.v1.Citations result = new com.google.cloud.ces.v1.Citations(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1.Citations result) { + if (citedChunksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + citedChunks_ = java.util.Collections.unmodifiableList(citedChunks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.citedChunks_ = citedChunks_; + } else { + result.citedChunks_ = citedChunksBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.Citations result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.Citations) { + return mergeFrom((com.google.cloud.ces.v1.Citations) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.Citations other) { + if (other == com.google.cloud.ces.v1.Citations.getDefaultInstance()) return this; + if (citedChunksBuilder_ == null) { + if (!other.citedChunks_.isEmpty()) { + if (citedChunks_.isEmpty()) { + citedChunks_ = other.citedChunks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCitedChunksIsMutable(); + citedChunks_.addAll(other.citedChunks_); + } + onChanged(); + } + } else { + if (!other.citedChunks_.isEmpty()) { + if (citedChunksBuilder_.isEmpty()) { + citedChunksBuilder_.dispose(); + citedChunksBuilder_ = null; + citedChunks_ = other.citedChunks_; + bitField0_ = (bitField0_ & ~0x00000001); + citedChunksBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCitedChunksFieldBuilder() + : null; + } else { + citedChunksBuilder_.addAllMessages(other.citedChunks_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.ces.v1.Citations.CitedChunk m = + input.readMessage( + com.google.cloud.ces.v1.Citations.CitedChunk.parser(), extensionRegistry); + if (citedChunksBuilder_ == null) { + ensureCitedChunksIsMutable(); + citedChunks_.add(m); + } else { + citedChunksBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List citedChunks_ = + java.util.Collections.emptyList(); + + private void ensureCitedChunksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + citedChunks_ = + new java.util.ArrayList(citedChunks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Citations.CitedChunk, + com.google.cloud.ces.v1.Citations.CitedChunk.Builder, + com.google.cloud.ces.v1.Citations.CitedChunkOrBuilder> + citedChunksBuilder_; + + /** + * + * + *
      +     * List of cited pieces of information.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Citations.CitedChunk cited_chunks = 1; + */ + public java.util.List getCitedChunksList() { + if (citedChunksBuilder_ == null) { + return java.util.Collections.unmodifiableList(citedChunks_); + } else { + return citedChunksBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * List of cited pieces of information.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Citations.CitedChunk cited_chunks = 1; + */ + public int getCitedChunksCount() { + if (citedChunksBuilder_ == null) { + return citedChunks_.size(); + } else { + return citedChunksBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * List of cited pieces of information.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Citations.CitedChunk cited_chunks = 1; + */ + public com.google.cloud.ces.v1.Citations.CitedChunk getCitedChunks(int index) { + if (citedChunksBuilder_ == null) { + return citedChunks_.get(index); + } else { + return citedChunksBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * List of cited pieces of information.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Citations.CitedChunk cited_chunks = 1; + */ + public Builder setCitedChunks(int index, com.google.cloud.ces.v1.Citations.CitedChunk value) { + if (citedChunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCitedChunksIsMutable(); + citedChunks_.set(index, value); + onChanged(); + } else { + citedChunksBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * List of cited pieces of information.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Citations.CitedChunk cited_chunks = 1; + */ + public Builder setCitedChunks( + int index, com.google.cloud.ces.v1.Citations.CitedChunk.Builder builderForValue) { + if (citedChunksBuilder_ == null) { + ensureCitedChunksIsMutable(); + citedChunks_.set(index, builderForValue.build()); + onChanged(); + } else { + citedChunksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * List of cited pieces of information.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Citations.CitedChunk cited_chunks = 1; + */ + public Builder addCitedChunks(com.google.cloud.ces.v1.Citations.CitedChunk value) { + if (citedChunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCitedChunksIsMutable(); + citedChunks_.add(value); + onChanged(); + } else { + citedChunksBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * List of cited pieces of information.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Citations.CitedChunk cited_chunks = 1; + */ + public Builder addCitedChunks(int index, com.google.cloud.ces.v1.Citations.CitedChunk value) { + if (citedChunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCitedChunksIsMutable(); + citedChunks_.add(index, value); + onChanged(); + } else { + citedChunksBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * List of cited pieces of information.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Citations.CitedChunk cited_chunks = 1; + */ + public Builder addCitedChunks( + com.google.cloud.ces.v1.Citations.CitedChunk.Builder builderForValue) { + if (citedChunksBuilder_ == null) { + ensureCitedChunksIsMutable(); + citedChunks_.add(builderForValue.build()); + onChanged(); + } else { + citedChunksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * List of cited pieces of information.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Citations.CitedChunk cited_chunks = 1; + */ + public Builder addCitedChunks( + int index, com.google.cloud.ces.v1.Citations.CitedChunk.Builder builderForValue) { + if (citedChunksBuilder_ == null) { + ensureCitedChunksIsMutable(); + citedChunks_.add(index, builderForValue.build()); + onChanged(); + } else { + citedChunksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * List of cited pieces of information.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Citations.CitedChunk cited_chunks = 1; + */ + public Builder addAllCitedChunks( + java.lang.Iterable values) { + if (citedChunksBuilder_ == null) { + ensureCitedChunksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, citedChunks_); + onChanged(); + } else { + citedChunksBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * List of cited pieces of information.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Citations.CitedChunk cited_chunks = 1; + */ + public Builder clearCitedChunks() { + if (citedChunksBuilder_ == null) { + citedChunks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + citedChunksBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * List of cited pieces of information.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Citations.CitedChunk cited_chunks = 1; + */ + public Builder removeCitedChunks(int index) { + if (citedChunksBuilder_ == null) { + ensureCitedChunksIsMutable(); + citedChunks_.remove(index); + onChanged(); + } else { + citedChunksBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * List of cited pieces of information.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Citations.CitedChunk cited_chunks = 1; + */ + public com.google.cloud.ces.v1.Citations.CitedChunk.Builder getCitedChunksBuilder(int index) { + return internalGetCitedChunksFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * List of cited pieces of information.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Citations.CitedChunk cited_chunks = 1; + */ + public com.google.cloud.ces.v1.Citations.CitedChunkOrBuilder getCitedChunksOrBuilder( + int index) { + if (citedChunksBuilder_ == null) { + return citedChunks_.get(index); + } else { + return citedChunksBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * List of cited pieces of information.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Citations.CitedChunk cited_chunks = 1; + */ + public java.util.List + getCitedChunksOrBuilderList() { + if (citedChunksBuilder_ != null) { + return citedChunksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(citedChunks_); + } + } + + /** + * + * + *
      +     * List of cited pieces of information.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Citations.CitedChunk cited_chunks = 1; + */ + public com.google.cloud.ces.v1.Citations.CitedChunk.Builder addCitedChunksBuilder() { + return internalGetCitedChunksFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.Citations.CitedChunk.getDefaultInstance()); + } + + /** + * + * + *
      +     * List of cited pieces of information.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Citations.CitedChunk cited_chunks = 1; + */ + public com.google.cloud.ces.v1.Citations.CitedChunk.Builder addCitedChunksBuilder(int index) { + return internalGetCitedChunksFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.Citations.CitedChunk.getDefaultInstance()); + } + + /** + * + * + *
      +     * List of cited pieces of information.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Citations.CitedChunk cited_chunks = 1; + */ + public java.util.List + getCitedChunksBuilderList() { + return internalGetCitedChunksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Citations.CitedChunk, + com.google.cloud.ces.v1.Citations.CitedChunk.Builder, + com.google.cloud.ces.v1.Citations.CitedChunkOrBuilder> + internalGetCitedChunksFieldBuilder() { + if (citedChunksBuilder_ == null) { + citedChunksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Citations.CitedChunk, + com.google.cloud.ces.v1.Citations.CitedChunk.Builder, + com.google.cloud.ces.v1.Citations.CitedChunkOrBuilder>( + citedChunks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + citedChunks_ = null; + } + return citedChunksBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Citations) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.Citations) + private static final com.google.cloud.ces.v1.Citations DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.Citations(); + } + + public static com.google.cloud.ces.v1.Citations getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Citations parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Citations getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CitationsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CitationsOrBuilder.java new file mode 100644 index 000000000000..8f2fb25ff832 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CitationsOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface CitationsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.Citations) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * List of cited pieces of information.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Citations.CitedChunk cited_chunks = 1; + */ + java.util.List getCitedChunksList(); + + /** + * + * + *
      +   * List of cited pieces of information.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Citations.CitedChunk cited_chunks = 1; + */ + com.google.cloud.ces.v1.Citations.CitedChunk getCitedChunks(int index); + + /** + * + * + *
      +   * List of cited pieces of information.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Citations.CitedChunk cited_chunks = 1; + */ + int getCitedChunksCount(); + + /** + * + * + *
      +   * List of cited pieces of information.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Citations.CitedChunk cited_chunks = 1; + */ + java.util.List + getCitedChunksOrBuilderList(); + + /** + * + * + *
      +   * List of cited pieces of information.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Citations.CitedChunk cited_chunks = 1; + */ + com.google.cloud.ces.v1.Citations.CitedChunkOrBuilder getCitedChunksOrBuilder(int index); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ClientCertificateSettings.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ClientCertificateSettings.java new file mode 100644 index 000000000000..c670fa806e5e --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ClientCertificateSettings.java @@ -0,0 +1,1030 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Settings for custom client certificates.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ClientCertificateSettings} + */ +@com.google.protobuf.Generated +public final class ClientCertificateSettings extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ClientCertificateSettings) + ClientCertificateSettingsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ClientCertificateSettings"); + } + + // Use ClientCertificateSettings.newBuilder() to construct. + private ClientCertificateSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ClientCertificateSettings() { + tlsCertificate_ = ""; + privateKey_ = ""; + passphrase_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_ClientCertificateSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_ClientCertificateSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ClientCertificateSettings.class, + com.google.cloud.ces.v1.ClientCertificateSettings.Builder.class); + } + + public static final int TLS_CERTIFICATE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object tlsCertificate_ = ""; + + /** + * + * + *
      +   * Required. The TLS certificate encoded in PEM format. This string must
      +   * include the begin header and end footer lines.
      +   * 
      + * + * string tls_certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tlsCertificate. + */ + @java.lang.Override + public java.lang.String getTlsCertificate() { + java.lang.Object ref = tlsCertificate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tlsCertificate_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The TLS certificate encoded in PEM format. This string must
      +   * include the begin header and end footer lines.
      +   * 
      + * + * string tls_certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tlsCertificate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTlsCertificateBytes() { + java.lang.Object ref = tlsCertificate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tlsCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRIVATE_KEY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object privateKey_ = ""; + + /** + * + * + *
      +   * Required. The name of the SecretManager secret version resource storing the
      +   * private key encoded in PEM format.
      +   * Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +   * 
      + * + * + * string private_key = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The privateKey. + */ + @java.lang.Override + public java.lang.String getPrivateKey() { + java.lang.Object ref = privateKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateKey_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The name of the SecretManager secret version resource storing the
      +   * private key encoded in PEM format.
      +   * Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +   * 
      + * + * + * string private_key = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for privateKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrivateKeyBytes() { + java.lang.Object ref = privateKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PASSPHRASE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object passphrase_ = ""; + + /** + * + * + *
      +   * Optional. The name of the SecretManager secret version resource storing the
      +   * passphrase to decrypt the private key. Should be left unset if the private
      +   * key is not encrypted.
      +   * Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +   * 
      + * + * string passphrase = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The passphrase. + */ + @java.lang.Override + public java.lang.String getPassphrase() { + java.lang.Object ref = passphrase_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + passphrase_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The name of the SecretManager secret version resource storing the
      +   * passphrase to decrypt the private key. Should be left unset if the private
      +   * key is not encrypted.
      +   * Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +   * 
      + * + * string passphrase = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for passphrase. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPassphraseBytes() { + java.lang.Object ref = passphrase_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + passphrase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tlsCertificate_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, tlsCertificate_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(privateKey_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, privateKey_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(passphrase_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, passphrase_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tlsCertificate_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, tlsCertificate_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(privateKey_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, privateKey_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(passphrase_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, passphrase_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ClientCertificateSettings)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ClientCertificateSettings other = + (com.google.cloud.ces.v1.ClientCertificateSettings) obj; + + if (!getTlsCertificate().equals(other.getTlsCertificate())) return false; + if (!getPrivateKey().equals(other.getPrivateKey())) return false; + if (!getPassphrase().equals(other.getPassphrase())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TLS_CERTIFICATE_FIELD_NUMBER; + hash = (53 * hash) + getTlsCertificate().hashCode(); + hash = (37 * hash) + PRIVATE_KEY_FIELD_NUMBER; + hash = (53 * hash) + getPrivateKey().hashCode(); + hash = (37 * hash) + PASSPHRASE_FIELD_NUMBER; + hash = (53 * hash) + getPassphrase().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ClientCertificateSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ClientCertificateSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ClientCertificateSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ClientCertificateSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ClientCertificateSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ClientCertificateSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ClientCertificateSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ClientCertificateSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ClientCertificateSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ClientCertificateSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ClientCertificateSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ClientCertificateSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ClientCertificateSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Settings for custom client certificates.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ClientCertificateSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ClientCertificateSettings) + com.google.cloud.ces.v1.ClientCertificateSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_ClientCertificateSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_ClientCertificateSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ClientCertificateSettings.class, + com.google.cloud.ces.v1.ClientCertificateSettings.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ClientCertificateSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + tlsCertificate_ = ""; + privateKey_ = ""; + passphrase_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_ClientCertificateSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ClientCertificateSettings getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ClientCertificateSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ClientCertificateSettings build() { + com.google.cloud.ces.v1.ClientCertificateSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ClientCertificateSettings buildPartial() { + com.google.cloud.ces.v1.ClientCertificateSettings result = + new com.google.cloud.ces.v1.ClientCertificateSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ClientCertificateSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tlsCertificate_ = tlsCertificate_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.privateKey_ = privateKey_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.passphrase_ = passphrase_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ClientCertificateSettings) { + return mergeFrom((com.google.cloud.ces.v1.ClientCertificateSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ClientCertificateSettings other) { + if (other == com.google.cloud.ces.v1.ClientCertificateSettings.getDefaultInstance()) + return this; + if (!other.getTlsCertificate().isEmpty()) { + tlsCertificate_ = other.tlsCertificate_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPrivateKey().isEmpty()) { + privateKey_ = other.privateKey_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getPassphrase().isEmpty()) { + passphrase_ = other.passphrase_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + tlsCertificate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + privateKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + passphrase_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object tlsCertificate_ = ""; + + /** + * + * + *
      +     * Required. The TLS certificate encoded in PEM format. This string must
      +     * include the begin header and end footer lines.
      +     * 
      + * + * string tls_certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tlsCertificate. + */ + public java.lang.String getTlsCertificate() { + java.lang.Object ref = tlsCertificate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tlsCertificate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The TLS certificate encoded in PEM format. This string must
      +     * include the begin header and end footer lines.
      +     * 
      + * + * string tls_certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tlsCertificate. + */ + public com.google.protobuf.ByteString getTlsCertificateBytes() { + java.lang.Object ref = tlsCertificate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tlsCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The TLS certificate encoded in PEM format. This string must
      +     * include the begin header and end footer lines.
      +     * 
      + * + * string tls_certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The tlsCertificate to set. + * @return This builder for chaining. + */ + public Builder setTlsCertificate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tlsCertificate_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The TLS certificate encoded in PEM format. This string must
      +     * include the begin header and end footer lines.
      +     * 
      + * + * string tls_certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTlsCertificate() { + tlsCertificate_ = getDefaultInstance().getTlsCertificate(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The TLS certificate encoded in PEM format. This string must
      +     * include the begin header and end footer lines.
      +     * 
      + * + * string tls_certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for tlsCertificate to set. + * @return This builder for chaining. + */ + public Builder setTlsCertificateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tlsCertificate_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object privateKey_ = ""; + + /** + * + * + *
      +     * Required. The name of the SecretManager secret version resource storing the
      +     * private key encoded in PEM format.
      +     * Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +     * 
      + * + * + * string private_key = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The privateKey. + */ + public java.lang.String getPrivateKey() { + java.lang.Object ref = privateKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The name of the SecretManager secret version resource storing the
      +     * private key encoded in PEM format.
      +     * Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +     * 
      + * + * + * string private_key = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for privateKey. + */ + public com.google.protobuf.ByteString getPrivateKeyBytes() { + java.lang.Object ref = privateKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The name of the SecretManager secret version resource storing the
      +     * private key encoded in PEM format.
      +     * Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +     * 
      + * + * + * string private_key = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The privateKey to set. + * @return This builder for chaining. + */ + public Builder setPrivateKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + privateKey_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The name of the SecretManager secret version resource storing the
      +     * private key encoded in PEM format.
      +     * Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +     * 
      + * + * + * string private_key = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearPrivateKey() { + privateKey_ = getDefaultInstance().getPrivateKey(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The name of the SecretManager secret version resource storing the
      +     * private key encoded in PEM format.
      +     * Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +     * 
      + * + * + * string private_key = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for privateKey to set. + * @return This builder for chaining. + */ + public Builder setPrivateKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + privateKey_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object passphrase_ = ""; + + /** + * + * + *
      +     * Optional. The name of the SecretManager secret version resource storing the
      +     * passphrase to decrypt the private key. Should be left unset if the private
      +     * key is not encrypted.
      +     * Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +     * 
      + * + * string passphrase = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The passphrase. + */ + public java.lang.String getPassphrase() { + java.lang.Object ref = passphrase_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + passphrase_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The name of the SecretManager secret version resource storing the
      +     * passphrase to decrypt the private key. Should be left unset if the private
      +     * key is not encrypted.
      +     * Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +     * 
      + * + * string passphrase = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for passphrase. + */ + public com.google.protobuf.ByteString getPassphraseBytes() { + java.lang.Object ref = passphrase_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + passphrase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The name of the SecretManager secret version resource storing the
      +     * passphrase to decrypt the private key. Should be left unset if the private
      +     * key is not encrypted.
      +     * Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +     * 
      + * + * string passphrase = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The passphrase to set. + * @return This builder for chaining. + */ + public Builder setPassphrase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + passphrase_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The name of the SecretManager secret version resource storing the
      +     * passphrase to decrypt the private key. Should be left unset if the private
      +     * key is not encrypted.
      +     * Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +     * 
      + * + * string passphrase = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPassphrase() { + passphrase_ = getDefaultInstance().getPassphrase(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The name of the SecretManager secret version resource storing the
      +     * passphrase to decrypt the private key. Should be left unset if the private
      +     * key is not encrypted.
      +     * Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +     * 
      + * + * string passphrase = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for passphrase to set. + * @return This builder for chaining. + */ + public Builder setPassphraseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + passphrase_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ClientCertificateSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ClientCertificateSettings) + private static final com.google.cloud.ces.v1.ClientCertificateSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ClientCertificateSettings(); + } + + public static com.google.cloud.ces.v1.ClientCertificateSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientCertificateSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ClientCertificateSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ClientCertificateSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ClientCertificateSettingsOrBuilder.java new file mode 100644 index 000000000000..da8381cf64c6 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ClientCertificateSettingsOrBuilder.java @@ -0,0 +1,122 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ClientCertificateSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ClientCertificateSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The TLS certificate encoded in PEM format. This string must
      +   * include the begin header and end footer lines.
      +   * 
      + * + * string tls_certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tlsCertificate. + */ + java.lang.String getTlsCertificate(); + + /** + * + * + *
      +   * Required. The TLS certificate encoded in PEM format. This string must
      +   * include the begin header and end footer lines.
      +   * 
      + * + * string tls_certificate = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tlsCertificate. + */ + com.google.protobuf.ByteString getTlsCertificateBytes(); + + /** + * + * + *
      +   * Required. The name of the SecretManager secret version resource storing the
      +   * private key encoded in PEM format.
      +   * Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +   * 
      + * + * + * string private_key = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The privateKey. + */ + java.lang.String getPrivateKey(); + + /** + * + * + *
      +   * Required. The name of the SecretManager secret version resource storing the
      +   * private key encoded in PEM format.
      +   * Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +   * 
      + * + * + * string private_key = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for privateKey. + */ + com.google.protobuf.ByteString getPrivateKeyBytes(); + + /** + * + * + *
      +   * Optional. The name of the SecretManager secret version resource storing the
      +   * passphrase to decrypt the private key. Should be left unset if the private
      +   * key is not encrypted.
      +   * Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +   * 
      + * + * string passphrase = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The passphrase. + */ + java.lang.String getPassphrase(); + + /** + * + * + *
      +   * Optional. The name of the SecretManager secret version resource storing the
      +   * passphrase to decrypt the private key. Should be left unset if the private
      +   * key is not encrypted.
      +   * Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +   * 
      + * + * string passphrase = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for passphrase. + */ + com.google.protobuf.ByteString getPassphraseBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ClientFunction.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ClientFunction.java new file mode 100644 index 000000000000..c8d4641afaef --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ClientFunction.java @@ -0,0 +1,1376 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/client_function.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Represents a client-side function that the agent can invoke. When the
      + * tool is chosen by the agent, control is handed off to the client.
      + * The client is responsible for executing the function and returning the result
      + * as a [ToolResponse][google.cloud.ces.v1.ToolResponse] to continue the
      + * interaction with the agent.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ClientFunction} + */ +@com.google.protobuf.Generated +public final class ClientFunction extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ClientFunction) + ClientFunctionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ClientFunction"); + } + + // Use ClientFunction.newBuilder() to construct. + private ClientFunction(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ClientFunction() { + name_ = ""; + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ClientFunctionProto + .internal_static_google_cloud_ces_v1_ClientFunction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ClientFunctionProto + .internal_static_google_cloud_ces_v1_ClientFunction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ClientFunction.class, + com.google.cloud.ces.v1.ClientFunction.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. The function name.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The function name.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
      +   * Optional. The function description.
      +   * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The function description.
      +   * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARAMETERS_FIELD_NUMBER = 3; + private com.google.cloud.ces.v1.Schema parameters_; + + /** + * + * + *
      +   * Optional. The schema of the function parameters.
      +   * 
      + * + * .google.cloud.ces.v1.Schema parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the parameters field is set. + */ + @java.lang.Override + public boolean hasParameters() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Optional. The schema of the function parameters.
      +   * 
      + * + * .google.cloud.ces.v1.Schema parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The parameters. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Schema getParameters() { + return parameters_ == null ? com.google.cloud.ces.v1.Schema.getDefaultInstance() : parameters_; + } + + /** + * + * + *
      +   * Optional. The schema of the function parameters.
      +   * 
      + * + * .google.cloud.ces.v1.Schema parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.SchemaOrBuilder getParametersOrBuilder() { + return parameters_ == null ? com.google.cloud.ces.v1.Schema.getDefaultInstance() : parameters_; + } + + public static final int RESPONSE_FIELD_NUMBER = 4; + private com.google.cloud.ces.v1.Schema response_; + + /** + * + * + *
      +   * Optional. The schema of the function response.
      +   * 
      + * + * .google.cloud.ces.v1.Schema response = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the response field is set. + */ + @java.lang.Override + public boolean hasResponse() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Optional. The schema of the function response.
      +   * 
      + * + * .google.cloud.ces.v1.Schema response = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The response. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Schema getResponse() { + return response_ == null ? com.google.cloud.ces.v1.Schema.getDefaultInstance() : response_; + } + + /** + * + * + *
      +   * Optional. The schema of the function response.
      +   * 
      + * + * .google.cloud.ces.v1.Schema response = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.SchemaOrBuilder getResponseOrBuilder() { + return response_ == null ? com.google.cloud.ces.v1.Schema.getDefaultInstance() : response_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getParameters()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getResponse()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getParameters()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResponse()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ClientFunction)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ClientFunction other = (com.google.cloud.ces.v1.ClientFunction) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (hasParameters() != other.hasParameters()) return false; + if (hasParameters()) { + if (!getParameters().equals(other.getParameters())) return false; + } + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse().equals(other.getResponse())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasParameters()) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getParameters().hashCode(); + } + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ClientFunction parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ClientFunction parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ClientFunction parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ClientFunction parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ClientFunction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ClientFunction parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ClientFunction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ClientFunction parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ClientFunction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ClientFunction parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ClientFunction parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ClientFunction parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ClientFunction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Represents a client-side function that the agent can invoke. When the
      +   * tool is chosen by the agent, control is handed off to the client.
      +   * The client is responsible for executing the function and returning the result
      +   * as a [ToolResponse][google.cloud.ces.v1.ToolResponse] to continue the
      +   * interaction with the agent.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ClientFunction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ClientFunction) + com.google.cloud.ces.v1.ClientFunctionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ClientFunctionProto + .internal_static_google_cloud_ces_v1_ClientFunction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ClientFunctionProto + .internal_static_google_cloud_ces_v1_ClientFunction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ClientFunction.class, + com.google.cloud.ces.v1.ClientFunction.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ClientFunction.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetParametersFieldBuilder(); + internalGetResponseFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + description_ = ""; + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); + parametersBuilder_ = null; + } + response_ = null; + if (responseBuilder_ != null) { + responseBuilder_.dispose(); + responseBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.ClientFunctionProto + .internal_static_google_cloud_ces_v1_ClientFunction_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ClientFunction getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ClientFunction.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ClientFunction build() { + com.google.cloud.ces.v1.ClientFunction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ClientFunction buildPartial() { + com.google.cloud.ces.v1.ClientFunction result = + new com.google.cloud.ces.v1.ClientFunction(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ClientFunction result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.parameters_ = parametersBuilder_ == null ? parameters_ : parametersBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.response_ = responseBuilder_ == null ? response_ : responseBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ClientFunction) { + return mergeFrom((com.google.cloud.ces.v1.ClientFunction) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ClientFunction other) { + if (other == com.google.cloud.ces.v1.ClientFunction.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasParameters()) { + mergeParameters(other.getParameters()); + } + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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( + internalGetParametersFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetResponseFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Required. The function name.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The function name.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The function name.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The function name.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The function name.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
      +     * Optional. The function description.
      +     * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The function description.
      +     * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The function description.
      +     * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The function description.
      +     * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The function description.
      +     * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.Schema parameters_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder> + parametersBuilder_; + + /** + * + * + *
      +     * Optional. The schema of the function parameters.
      +     * 
      + * + * .google.cloud.ces.v1.Schema parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the parameters field is set. + */ + public boolean hasParameters() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Optional. The schema of the function parameters.
      +     * 
      + * + * .google.cloud.ces.v1.Schema parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The parameters. + */ + public com.google.cloud.ces.v1.Schema getParameters() { + if (parametersBuilder_ == null) { + return parameters_ == null + ? com.google.cloud.ces.v1.Schema.getDefaultInstance() + : parameters_; + } else { + return parametersBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. The schema of the function parameters.
      +     * 
      + * + * .google.cloud.ces.v1.Schema parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParameters(com.google.cloud.ces.v1.Schema value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parameters_ = value; + } else { + parametersBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The schema of the function parameters.
      +     * 
      + * + * .google.cloud.ces.v1.Schema parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParameters(com.google.cloud.ces.v1.Schema.Builder builderForValue) { + if (parametersBuilder_ == null) { + parameters_ = builderForValue.build(); + } else { + parametersBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The schema of the function parameters.
      +     * 
      + * + * .google.cloud.ces.v1.Schema parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeParameters(com.google.cloud.ces.v1.Schema value) { + if (parametersBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && parameters_ != null + && parameters_ != com.google.cloud.ces.v1.Schema.getDefaultInstance()) { + getParametersBuilder().mergeFrom(value); + } else { + parameters_ = value; + } + } else { + parametersBuilder_.mergeFrom(value); + } + if (parameters_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The schema of the function parameters.
      +     * 
      + * + * .google.cloud.ces.v1.Schema parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearParameters() { + bitField0_ = (bitField0_ & ~0x00000004); + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); + parametersBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The schema of the function parameters.
      +     * 
      + * + * .google.cloud.ces.v1.Schema parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Schema.Builder getParametersBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetParametersFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The schema of the function parameters.
      +     * 
      + * + * .google.cloud.ces.v1.Schema parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.SchemaOrBuilder getParametersOrBuilder() { + if (parametersBuilder_ != null) { + return parametersBuilder_.getMessageOrBuilder(); + } else { + return parameters_ == null + ? com.google.cloud.ces.v1.Schema.getDefaultInstance() + : parameters_; + } + } + + /** + * + * + *
      +     * Optional. The schema of the function parameters.
      +     * 
      + * + * .google.cloud.ces.v1.Schema parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder> + internalGetParametersFieldBuilder() { + if (parametersBuilder_ == null) { + parametersBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder>( + getParameters(), getParentForChildren(), isClean()); + parameters_ = null; + } + return parametersBuilder_; + } + + private com.google.cloud.ces.v1.Schema response_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder> + responseBuilder_; + + /** + * + * + *
      +     * Optional. The schema of the function response.
      +     * 
      + * + * .google.cloud.ces.v1.Schema response = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the response field is set. + */ + public boolean hasResponse() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +     * Optional. The schema of the function response.
      +     * 
      + * + * .google.cloud.ces.v1.Schema response = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The response. + */ + public com.google.cloud.ces.v1.Schema getResponse() { + if (responseBuilder_ == null) { + return response_ == null ? com.google.cloud.ces.v1.Schema.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. The schema of the function response.
      +     * 
      + * + * .google.cloud.ces.v1.Schema response = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setResponse(com.google.cloud.ces.v1.Schema value) { + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + } else { + responseBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The schema of the function response.
      +     * 
      + * + * .google.cloud.ces.v1.Schema response = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setResponse(com.google.cloud.ces.v1.Schema.Builder builderForValue) { + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The schema of the function response.
      +     * 
      + * + * .google.cloud.ces.v1.Schema response = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeResponse(com.google.cloud.ces.v1.Schema value) { + if (responseBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && response_ != null + && response_ != com.google.cloud.ces.v1.Schema.getDefaultInstance()) { + getResponseBuilder().mergeFrom(value); + } else { + response_ = value; + } + } else { + responseBuilder_.mergeFrom(value); + } + if (response_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The schema of the function response.
      +     * 
      + * + * .google.cloud.ces.v1.Schema response = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearResponse() { + bitField0_ = (bitField0_ & ~0x00000008); + response_ = null; + if (responseBuilder_ != null) { + responseBuilder_.dispose(); + responseBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The schema of the function response.
      +     * 
      + * + * .google.cloud.ces.v1.Schema response = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Schema.Builder getResponseBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetResponseFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The schema of the function response.
      +     * 
      + * + * .google.cloud.ces.v1.Schema response = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.SchemaOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? com.google.cloud.ces.v1.Schema.getDefaultInstance() : response_; + } + } + + /** + * + * + *
      +     * Optional. The schema of the function response.
      +     * 
      + * + * .google.cloud.ces.v1.Schema response = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder> + internalGetResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder>( + getResponse(), getParentForChildren(), isClean()); + response_ = null; + } + return responseBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ClientFunction) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ClientFunction) + private static final com.google.cloud.ces.v1.ClientFunction DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ClientFunction(); + } + + public static com.google.cloud.ces.v1.ClientFunction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientFunction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ClientFunction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ClientFunctionOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ClientFunctionOrBuilder.java new file mode 100644 index 000000000000..e651bd440e9f --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ClientFunctionOrBuilder.java @@ -0,0 +1,160 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/client_function.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ClientFunctionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ClientFunction) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The function name.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. The function name.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Optional. The function description.
      +   * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
      +   * Optional. The function description.
      +   * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
      +   * Optional. The schema of the function parameters.
      +   * 
      + * + * .google.cloud.ces.v1.Schema parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the parameters field is set. + */ + boolean hasParameters(); + + /** + * + * + *
      +   * Optional. The schema of the function parameters.
      +   * 
      + * + * .google.cloud.ces.v1.Schema parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The parameters. + */ + com.google.cloud.ces.v1.Schema getParameters(); + + /** + * + * + *
      +   * Optional. The schema of the function parameters.
      +   * 
      + * + * .google.cloud.ces.v1.Schema parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.SchemaOrBuilder getParametersOrBuilder(); + + /** + * + * + *
      +   * Optional. The schema of the function response.
      +   * 
      + * + * .google.cloud.ces.v1.Schema response = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the response field is set. + */ + boolean hasResponse(); + + /** + * + * + *
      +   * Optional. The schema of the function response.
      +   * 
      + * + * .google.cloud.ces.v1.Schema response = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The response. + */ + com.google.cloud.ces.v1.Schema getResponse(); + + /** + * + * + *
      +   * Optional. The schema of the function response.
      +   * 
      + * + * .google.cloud.ces.v1.Schema response = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.SchemaOrBuilder getResponseOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ClientFunctionProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ClientFunctionProto.java new file mode 100644 index 000000000000..09724dfb6a5d --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ClientFunctionProto.java @@ -0,0 +1,94 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/client_function.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class ClientFunctionProto extends com.google.protobuf.GeneratedFile { + private ClientFunctionProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ClientFunctionProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ClientFunction_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ClientFunction_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + ")google/cloud/ces/v1/client_function.pr" + + "oto\022\023google.cloud.ces.v1\032\037google/api/field_behavior.proto\032" + + " google/cloud/ces/v1/schema.proto\"\247\001\n" + + "\016ClientFunction\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\022\030\n" + + "\013description\030\002 \001(\tB\003\340A\001\0224\n\n" + + "parameters\030\003 \001(\0132\033.google.cloud.ces.v1.SchemaB\003\340A\001\0222\n" + + "\010response\030\004 \001(\0132\033.google.cloud.ces.v1.SchemaB\003\340A\001B[\n" + + "\027com.google.cloud.ces.v1B\023ClientFunctionProtoP\001Z)cloud.g" + + "oogle.com/go/ces/apiv1/cespb;cespbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.ces.v1.SchemaProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_ClientFunction_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_ClientFunction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ClientFunction_descriptor, + new java.lang.String[] { + "Name", "Description", "Parameters", "Response", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.ces.v1.SchemaProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CloudLoggingSettings.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CloudLoggingSettings.java new file mode 100644 index 000000000000..0423efac2dc9 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CloudLoggingSettings.java @@ -0,0 +1,502 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Settings to describe the Cloud Logging behaviors for the app.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.CloudLoggingSettings} + */ +@com.google.protobuf.Generated +public final class CloudLoggingSettings extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.CloudLoggingSettings) + CloudLoggingSettingsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CloudLoggingSettings"); + } + + // Use CloudLoggingSettings.newBuilder() to construct. + private CloudLoggingSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CloudLoggingSettings() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_CloudLoggingSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_CloudLoggingSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.CloudLoggingSettings.class, + com.google.cloud.ces.v1.CloudLoggingSettings.Builder.class); + } + + public static final int ENABLE_CLOUD_LOGGING_FIELD_NUMBER = 1; + private boolean enableCloudLogging_ = false; + + /** + * + * + *
      +   * Optional. Whether to enable Cloud Logging for the sessions.
      +   * 
      + * + * bool enable_cloud_logging = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableCloudLogging. + */ + @java.lang.Override + public boolean getEnableCloudLogging() { + return enableCloudLogging_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enableCloudLogging_ != false) { + output.writeBool(1, enableCloudLogging_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableCloudLogging_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableCloudLogging_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.CloudLoggingSettings)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.CloudLoggingSettings other = + (com.google.cloud.ces.v1.CloudLoggingSettings) obj; + + if (getEnableCloudLogging() != other.getEnableCloudLogging()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLE_CLOUD_LOGGING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableCloudLogging()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.CloudLoggingSettings parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.CloudLoggingSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CloudLoggingSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.CloudLoggingSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CloudLoggingSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.CloudLoggingSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CloudLoggingSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.CloudLoggingSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CloudLoggingSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.CloudLoggingSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CloudLoggingSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.CloudLoggingSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.CloudLoggingSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Settings to describe the Cloud Logging behaviors for the app.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.CloudLoggingSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.CloudLoggingSettings) + com.google.cloud.ces.v1.CloudLoggingSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_CloudLoggingSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_CloudLoggingSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.CloudLoggingSettings.class, + com.google.cloud.ces.v1.CloudLoggingSettings.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.CloudLoggingSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableCloudLogging_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_CloudLoggingSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.CloudLoggingSettings getDefaultInstanceForType() { + return com.google.cloud.ces.v1.CloudLoggingSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.CloudLoggingSettings build() { + com.google.cloud.ces.v1.CloudLoggingSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.CloudLoggingSettings buildPartial() { + com.google.cloud.ces.v1.CloudLoggingSettings result = + new com.google.cloud.ces.v1.CloudLoggingSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.CloudLoggingSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableCloudLogging_ = enableCloudLogging_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.CloudLoggingSettings) { + return mergeFrom((com.google.cloud.ces.v1.CloudLoggingSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.CloudLoggingSettings other) { + if (other == com.google.cloud.ces.v1.CloudLoggingSettings.getDefaultInstance()) return this; + if (other.getEnableCloudLogging() != false) { + setEnableCloudLogging(other.getEnableCloudLogging()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enableCloudLogging_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean enableCloudLogging_; + + /** + * + * + *
      +     * Optional. Whether to enable Cloud Logging for the sessions.
      +     * 
      + * + * bool enable_cloud_logging = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableCloudLogging. + */ + @java.lang.Override + public boolean getEnableCloudLogging() { + return enableCloudLogging_; + } + + /** + * + * + *
      +     * Optional. Whether to enable Cloud Logging for the sessions.
      +     * 
      + * + * bool enable_cloud_logging = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableCloudLogging to set. + * @return This builder for chaining. + */ + public Builder setEnableCloudLogging(boolean value) { + + enableCloudLogging_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Whether to enable Cloud Logging for the sessions.
      +     * 
      + * + * bool enable_cloud_logging = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnableCloudLogging() { + bitField0_ = (bitField0_ & ~0x00000001); + enableCloudLogging_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.CloudLoggingSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.CloudLoggingSettings) + private static final com.google.cloud.ces.v1.CloudLoggingSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.CloudLoggingSettings(); + } + + public static com.google.cloud.ces.v1.CloudLoggingSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudLoggingSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.CloudLoggingSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CloudLoggingSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CloudLoggingSettingsOrBuilder.java new file mode 100644 index 000000000000..15db2c0d81a5 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CloudLoggingSettingsOrBuilder.java @@ -0,0 +1,41 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface CloudLoggingSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.CloudLoggingSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. Whether to enable Cloud Logging for the sessions.
      +   * 
      + * + * bool enable_cloud_logging = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableCloudLogging. + */ + boolean getEnableCloudLogging(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CodeBlock.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CodeBlock.java new file mode 100644 index 000000000000..1d43e04426f8 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CodeBlock.java @@ -0,0 +1,648 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/fakes.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * A code block to be executed instead of a real tool call.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.CodeBlock} + */ +@com.google.protobuf.Generated +public final class CodeBlock extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.CodeBlock) + CodeBlockOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CodeBlock"); + } + + // Use CodeBlock.newBuilder() to construct. + private CodeBlock(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CodeBlock() { + pythonCode_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.FakesProto + .internal_static_google_cloud_ces_v1_CodeBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.FakesProto + .internal_static_google_cloud_ces_v1_CodeBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.CodeBlock.class, + com.google.cloud.ces.v1.CodeBlock.Builder.class); + } + + public static final int PYTHON_CODE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object pythonCode_ = ""; + + /** + * + * + *
      +   * Required. Python code which will be invoked in tool fake mode.
      +   * Expected Python function signature -
      +   * To catch all tool calls:
      +   * def fake_tool_call(tool: Tool, input: dict[str, Any],
      +   * callback_context: CallbackContext) -> Optional[dict[str, Any]]:
      +   * To catch a specific tool call:
      +   * def fake_{tool_id}(tool: Tool, input: dict[str, Any],
      +   * callback_context: CallbackContext) -> Optional[dict[str, Any]]:
      +   * If the function returns None, the real tool will be invoked instead.
      +   * 
      + * + * string python_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pythonCode. + */ + @java.lang.Override + public java.lang.String getPythonCode() { + java.lang.Object ref = pythonCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pythonCode_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. Python code which will be invoked in tool fake mode.
      +   * Expected Python function signature -
      +   * To catch all tool calls:
      +   * def fake_tool_call(tool: Tool, input: dict[str, Any],
      +   * callback_context: CallbackContext) -> Optional[dict[str, Any]]:
      +   * To catch a specific tool call:
      +   * def fake_{tool_id}(tool: Tool, input: dict[str, Any],
      +   * callback_context: CallbackContext) -> Optional[dict[str, Any]]:
      +   * If the function returns None, the real tool will be invoked instead.
      +   * 
      + * + * string python_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pythonCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPythonCodeBytes() { + java.lang.Object ref = pythonCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pythonCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pythonCode_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, pythonCode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pythonCode_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, pythonCode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.CodeBlock)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.CodeBlock other = (com.google.cloud.ces.v1.CodeBlock) obj; + + if (!getPythonCode().equals(other.getPythonCode())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PYTHON_CODE_FIELD_NUMBER; + hash = (53 * hash) + getPythonCode().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.CodeBlock parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.CodeBlock parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CodeBlock parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.CodeBlock parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CodeBlock parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.CodeBlock parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CodeBlock parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.CodeBlock parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CodeBlock parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.CodeBlock parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CodeBlock parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.CodeBlock parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.CodeBlock prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * A code block to be executed instead of a real tool call.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.CodeBlock} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.CodeBlock) + com.google.cloud.ces.v1.CodeBlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.FakesProto + .internal_static_google_cloud_ces_v1_CodeBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.FakesProto + .internal_static_google_cloud_ces_v1_CodeBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.CodeBlock.class, + com.google.cloud.ces.v1.CodeBlock.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.CodeBlock.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pythonCode_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.FakesProto + .internal_static_google_cloud_ces_v1_CodeBlock_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.CodeBlock getDefaultInstanceForType() { + return com.google.cloud.ces.v1.CodeBlock.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.CodeBlock build() { + com.google.cloud.ces.v1.CodeBlock result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.CodeBlock buildPartial() { + com.google.cloud.ces.v1.CodeBlock result = new com.google.cloud.ces.v1.CodeBlock(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.CodeBlock result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pythonCode_ = pythonCode_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.CodeBlock) { + return mergeFrom((com.google.cloud.ces.v1.CodeBlock) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.CodeBlock other) { + if (other == com.google.cloud.ces.v1.CodeBlock.getDefaultInstance()) return this; + if (!other.getPythonCode().isEmpty()) { + pythonCode_ = other.pythonCode_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + pythonCode_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object pythonCode_ = ""; + + /** + * + * + *
      +     * Required. Python code which will be invoked in tool fake mode.
      +     * Expected Python function signature -
      +     * To catch all tool calls:
      +     * def fake_tool_call(tool: Tool, input: dict[str, Any],
      +     * callback_context: CallbackContext) -> Optional[dict[str, Any]]:
      +     * To catch a specific tool call:
      +     * def fake_{tool_id}(tool: Tool, input: dict[str, Any],
      +     * callback_context: CallbackContext) -> Optional[dict[str, Any]]:
      +     * If the function returns None, the real tool will be invoked instead.
      +     * 
      + * + * string python_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pythonCode. + */ + public java.lang.String getPythonCode() { + java.lang.Object ref = pythonCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pythonCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. Python code which will be invoked in tool fake mode.
      +     * Expected Python function signature -
      +     * To catch all tool calls:
      +     * def fake_tool_call(tool: Tool, input: dict[str, Any],
      +     * callback_context: CallbackContext) -> Optional[dict[str, Any]]:
      +     * To catch a specific tool call:
      +     * def fake_{tool_id}(tool: Tool, input: dict[str, Any],
      +     * callback_context: CallbackContext) -> Optional[dict[str, Any]]:
      +     * If the function returns None, the real tool will be invoked instead.
      +     * 
      + * + * string python_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pythonCode. + */ + public com.google.protobuf.ByteString getPythonCodeBytes() { + java.lang.Object ref = pythonCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pythonCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. Python code which will be invoked in tool fake mode.
      +     * Expected Python function signature -
      +     * To catch all tool calls:
      +     * def fake_tool_call(tool: Tool, input: dict[str, Any],
      +     * callback_context: CallbackContext) -> Optional[dict[str, Any]]:
      +     * To catch a specific tool call:
      +     * def fake_{tool_id}(tool: Tool, input: dict[str, Any],
      +     * callback_context: CallbackContext) -> Optional[dict[str, Any]]:
      +     * If the function returns None, the real tool will be invoked instead.
      +     * 
      + * + * string python_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The pythonCode to set. + * @return This builder for chaining. + */ + public Builder setPythonCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pythonCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. Python code which will be invoked in tool fake mode.
      +     * Expected Python function signature -
      +     * To catch all tool calls:
      +     * def fake_tool_call(tool: Tool, input: dict[str, Any],
      +     * callback_context: CallbackContext) -> Optional[dict[str, Any]]:
      +     * To catch a specific tool call:
      +     * def fake_{tool_id}(tool: Tool, input: dict[str, Any],
      +     * callback_context: CallbackContext) -> Optional[dict[str, Any]]:
      +     * If the function returns None, the real tool will be invoked instead.
      +     * 
      + * + * string python_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPythonCode() { + pythonCode_ = getDefaultInstance().getPythonCode(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. Python code which will be invoked in tool fake mode.
      +     * Expected Python function signature -
      +     * To catch all tool calls:
      +     * def fake_tool_call(tool: Tool, input: dict[str, Any],
      +     * callback_context: CallbackContext) -> Optional[dict[str, Any]]:
      +     * To catch a specific tool call:
      +     * def fake_{tool_id}(tool: Tool, input: dict[str, Any],
      +     * callback_context: CallbackContext) -> Optional[dict[str, Any]]:
      +     * If the function returns None, the real tool will be invoked instead.
      +     * 
      + * + * string python_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for pythonCode to set. + * @return This builder for chaining. + */ + public Builder setPythonCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pythonCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.CodeBlock) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.CodeBlock) + private static final com.google.cloud.ces.v1.CodeBlock DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.CodeBlock(); + } + + public static com.google.cloud.ces.v1.CodeBlock getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CodeBlock parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.CodeBlock getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CodeBlockOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CodeBlockOrBuilder.java new file mode 100644 index 000000000000..89e8e5703db5 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CodeBlockOrBuilder.java @@ -0,0 +1,70 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/fakes.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface CodeBlockOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.CodeBlock) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. Python code which will be invoked in tool fake mode.
      +   * Expected Python function signature -
      +   * To catch all tool calls:
      +   * def fake_tool_call(tool: Tool, input: dict[str, Any],
      +   * callback_context: CallbackContext) -> Optional[dict[str, Any]]:
      +   * To catch a specific tool call:
      +   * def fake_{tool_id}(tool: Tool, input: dict[str, Any],
      +   * callback_context: CallbackContext) -> Optional[dict[str, Any]]:
      +   * If the function returns None, the real tool will be invoked instead.
      +   * 
      + * + * string python_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pythonCode. + */ + java.lang.String getPythonCode(); + + /** + * + * + *
      +   * Required. Python code which will be invoked in tool fake mode.
      +   * Expected Python function signature -
      +   * To catch all tool calls:
      +   * def fake_tool_call(tool: Tool, input: dict[str, Any],
      +   * callback_context: CallbackContext) -> Optional[dict[str, Any]]:
      +   * To catch a specific tool call:
      +   * def fake_{tool_id}(tool: Tool, input: dict[str, Any],
      +   * callback_context: CallbackContext) -> Optional[dict[str, Any]]:
      +   * If the function returns None, the real tool will be invoked instead.
      +   * 
      + * + * string python_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pythonCode. + */ + com.google.protobuf.ByteString getPythonCodeBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CommonProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CommonProto.java new file mode 100644 index 000000000000..83f4820021d0 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CommonProto.java @@ -0,0 +1,370 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/common.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class CommonProto extends com.google.protobuf.GeneratedFile { + private CommonProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CommonProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Callback_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Callback_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ModelSettings_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ModelSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_TriggerAction_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_TriggerAction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_TriggerAction_Response_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_TriggerAction_Response_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_TriggerAction_RespondImmediately_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_TriggerAction_RespondImmediately_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_TriggerAction_GenerativeAnswer_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_TriggerAction_GenerativeAnswer_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_TriggerAction_TransferAgent_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_TriggerAction_TransferAgent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_TlsConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_TlsConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_TlsConfig_CaCert_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_TlsConfig_CaCert_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ServiceDirectoryConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ServiceDirectoryConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ChannelProfile_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ChannelProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ChannelProfile_PersonaProperty_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ChannelProfile_PersonaProperty_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ChannelProfile_WebWidgetConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ChannelProfile_WebWidgetConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ChannelProfile_WebWidgetConfig_SecuritySettings_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ChannelProfile_WebWidgetConfig_SecuritySettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Span_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Span_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + " google/cloud/ces/v1/common.proto\022\023goog" + + "le.cloud.ces.v1\032\037google/api/field_behavi" + + "or.proto\032\031google/api/resource.proto\032\036goo" + + "gle/protobuf/duration.proto\032\034google/prot" + + "obuf/struct.proto\032\037google/protobuf/timestamp.proto\"\215\001\n" + + "\010Callback\022\032\n" + + "\013python_code\030\001 \001(\tB\003\340A\002H\000\022\030\n" + + "\013description\030\003 \001(\tB\003\340A\001\022\025\n" + + "\010disabled\030\002 \001(\010B\003\340A\001\022(\n" + + "\033proactive_execution_enabled\030\004 \001(\010B\003\340A\001B\n\n" + + "\010callback\"R\n\r" + + "ModelSettings\022\022\n" + + "\005model\030\001 \001(\tB\003\340A\001\022\035\n" + + "\013temperature\030\002 \001(\001B\003\340A\001H\000\210\001\001B\016\n" + + "\014_temperature\"\230\004\n\r" + + "TriggerAction\022Y\n" + + "\023respond_immediately\030\001" + + " \001(\01325.google.cloud.ces.v1.TriggerAction.RespondImmediatelyB\003\340A\001H\000\022O\n" + + "\016transfer_agent\030\002" + + " \001(\01320.google.cloud.ces.v1.TriggerAction.TransferAgentB\003\340A\001H\000\022U\n" + + "\021generative_answer\030\003" + + " \001(\01323.google.cloud.ces.v1.TriggerAction.GenerativeAnswerB\003\340A\001H\000\0324\n" + + "\010Response\022\021\n" + + "\004text\030\001 \001(\tB\003\340A\002\022\025\n" + + "\010disabled\030\002 \001(\010B\003\340A\001\032Y\n" + + "\022RespondImmediately\022C\n" + + "\tresponses\030\001" + + " \003(\0132+.google.cloud.ces.v1.TriggerAction.ResponseB\003\340A\002\032\'\n" + + "\020GenerativeAnswer\022\023\n" + + "\006prompt\030\001 \001(\tB\003\340A\002\032@\n\r" + + "TransferAgent\022/\n" + + "\005agent\030\001 \001(\tB \340A\002\372A\032\n" + + "\030ces.googleapis.com/AgentB\010\n" + + "\006action\"\201\001\n" + + "\tTlsConfig\022<\n" + + "\010ca_certs\030\001" + + " \003(\0132%.google.cloud.ces.v1.TlsConfig.CaCertB\003\340A\002\0326\n" + + "\006CaCert\022\031\n" + + "\014display_name\030\001 \001(\tB\003\340A\002\022\021\n" + + "\004cert\030\002 \001(\014B\003\340A\002\"Z\n" + + "\026ServiceDirectoryConfig\022@\n" + + "\007service\030\001 \001(\tB/\340A\002\372A)\n" + + "\'servicedirectory.googleapis.com/Service\"\211\n\n" + + "\016ChannelProfile\022\027\n\n" + + "profile_id\030\001 \001(\tB\003\340A\001\022J\n" + + "\014channel_type\030\003 \001(\0162/.google.clo" + + "ud.ces.v1.ChannelProfile.ChannelTypeB\003\340A\001\022R\n" + + "\020persona_property\030\002 \001(\01323.google.clo" + + "ud.ces.v1.ChannelProfile.PersonaPropertyB\003\340A\001\022\031\n" + + "\014disable_dtmf\030\004 \001(\010B\003\340A\001\022%\n" + + "\030disable_barge_in_control\030\005 \001(\010B\003\340A\001\022S\n" + + "\021web_widget_config\030\007" + + " \001(\01323.google.cloud.ces.v1.ChannelProfile.WebWidgetConfigB\003\340A\001\022$\n" + + "\027noise_suppression_level\030\010 \001(\tB\003\340A\001\032\225\001\n" + + "\017PersonaProperty\022Q\n" + + "\007persona\030\001 \001(\0162;.google" + + ".cloud.ces.v1.ChannelProfile.PersonaProperty.PersonaB\003\340A\001\"/\n" + + "\007Persona\022\013\n" + + "\007UNKNOWN\020\000\022\013\n" + + "\007CONCISE\020\001\022\n\n" + + "\006CHATTY\020\002\032\337\004\n" + + "\017WebWidgetConfig\022S\n" + + "\010modality\030\001 \001(\0162<.google.cloud." + + "ces.v1.ChannelProfile.WebWidgetConfig.ModalityB\003\340A\001\022M\n" + + "\005theme\030\002 \001(\01629.google.clou" + + "d.ces.v1.ChannelProfile.WebWidgetConfig.ThemeB\003\340A\001\022\035\n" + + "\020web_widget_title\030\003 \001(\tB\003\340A\001\022d\n" + + "\021security_settings\030\004 \001(\0132D.google.cl" + + "oud.ces.v1.ChannelProfile.WebWidgetConfig.SecuritySettingsB\003\340A\001\032\224\001\n" + + "\020SecuritySettings\022!\n" + + "\024enable_public_access\030\001 \001(\010B\003\340A\001\022 \n" + + "\023enable_origin_check\030\004 \001(\010B\003\340A\001\022\034\n" + + "\017allowed_origins\030\002 \003(\tB\003\340A\001\022\035\n" + + "\020enable_recaptcha\030\003 \001(\010B\003\340A\001\"W\n" + + "\010Modality\022\030\n" + + "\024MODALITY_UNSPECIFIED\020\000\022\022\n" + + "\016CHAT_AND_VOICE\020\001\022\016\n\n" + + "VOICE_ONLY\020\002\022\r\n" + + "\tCHAT_ONLY\020\003\"3\n" + + "\005Theme\022\025\n" + + "\021THEME_UNSPECIFIED\020\000\022\t\n" + + "\005LIGHT\020\001\022\010\n" + + "\004DARK\020\002\"\206\001\n" + + "\013ChannelType\022\013\n" + + "\007UNKNOWN\020\000\022\n\n" + + "\006WEB_UI\020\002\022\007\n" + + "\003API\020\003\022\n\n" + + "\006TWILIO\020\004\022\035\n" + + "\031GOOGLE_TELEPHONY_PLATFORM\020\005\022\037\n" + + "\033CONTACT_CENTER_AS_A_SERVICE\020\006\022\t\n" + + "\005FIVE9\020\007\"\232\002\n" + + "\004Span\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\003\0223\n\n" + + "start_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" + + "\010end_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0220\n" + + "\010duration\030\006 \001(\0132\031.google.protobuf.DurationB\003\340A\003\0220\n\n" + + "attributes\030\004 \001(\0132\027.google.protobuf.StructB\003\340A\003\0223\n" + + "\013child_spans\030\005 \003(\0132\031.google.cloud.ces.v1.SpanB\003\340A\003*R\n\r" + + "ExecutionType\022\036\n" + + "\032EXECUTION_TYPE_UNSPECIFIED\020\000\022\017\n" + + "\013SYNCHRONOUS\020\001\022\020\n" + + "\014ASYNCHRONOUS\020\002B\322\001\n" + + "\027com.google.cl" + + "oud.ces.v1B\013CommonProtoP\001Z)cloud.google.com/go/ces/apiv1/cespb;cespb\352A|\n" + + "\'servicedirectory.googleapis.com/Service\022Qprojec" + + "ts/{project}/locations/{location}/namespaces/{namespace}/services/{service}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_Callback_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_Callback_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Callback_descriptor, + new java.lang.String[] { + "PythonCode", "Description", "Disabled", "ProactiveExecutionEnabled", "Callback", + }); + internal_static_google_cloud_ces_v1_ModelSettings_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_ces_v1_ModelSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ModelSettings_descriptor, + new java.lang.String[] { + "Model", "Temperature", + }); + internal_static_google_cloud_ces_v1_TriggerAction_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_ces_v1_TriggerAction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_TriggerAction_descriptor, + new java.lang.String[] { + "RespondImmediately", "TransferAgent", "GenerativeAnswer", "Action", + }); + internal_static_google_cloud_ces_v1_TriggerAction_Response_descriptor = + internal_static_google_cloud_ces_v1_TriggerAction_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_TriggerAction_Response_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_TriggerAction_Response_descriptor, + new java.lang.String[] { + "Text", "Disabled", + }); + internal_static_google_cloud_ces_v1_TriggerAction_RespondImmediately_descriptor = + internal_static_google_cloud_ces_v1_TriggerAction_descriptor.getNestedType(1); + internal_static_google_cloud_ces_v1_TriggerAction_RespondImmediately_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_TriggerAction_RespondImmediately_descriptor, + new java.lang.String[] { + "Responses", + }); + internal_static_google_cloud_ces_v1_TriggerAction_GenerativeAnswer_descriptor = + internal_static_google_cloud_ces_v1_TriggerAction_descriptor.getNestedType(2); + internal_static_google_cloud_ces_v1_TriggerAction_GenerativeAnswer_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_TriggerAction_GenerativeAnswer_descriptor, + new java.lang.String[] { + "Prompt", + }); + internal_static_google_cloud_ces_v1_TriggerAction_TransferAgent_descriptor = + internal_static_google_cloud_ces_v1_TriggerAction_descriptor.getNestedType(3); + internal_static_google_cloud_ces_v1_TriggerAction_TransferAgent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_TriggerAction_TransferAgent_descriptor, + new java.lang.String[] { + "Agent", + }); + internal_static_google_cloud_ces_v1_TlsConfig_descriptor = getDescriptor().getMessageType(3); + internal_static_google_cloud_ces_v1_TlsConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_TlsConfig_descriptor, + new java.lang.String[] { + "CaCerts", + }); + internal_static_google_cloud_ces_v1_TlsConfig_CaCert_descriptor = + internal_static_google_cloud_ces_v1_TlsConfig_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_TlsConfig_CaCert_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_TlsConfig_CaCert_descriptor, + new java.lang.String[] { + "DisplayName", "Cert", + }); + internal_static_google_cloud_ces_v1_ServiceDirectoryConfig_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_ces_v1_ServiceDirectoryConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ServiceDirectoryConfig_descriptor, + new java.lang.String[] { + "Service", + }); + internal_static_google_cloud_ces_v1_ChannelProfile_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_ces_v1_ChannelProfile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ChannelProfile_descriptor, + new java.lang.String[] { + "ProfileId", + "ChannelType", + "PersonaProperty", + "DisableDtmf", + "DisableBargeInControl", + "WebWidgetConfig", + "NoiseSuppressionLevel", + }); + internal_static_google_cloud_ces_v1_ChannelProfile_PersonaProperty_descriptor = + internal_static_google_cloud_ces_v1_ChannelProfile_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_ChannelProfile_PersonaProperty_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ChannelProfile_PersonaProperty_descriptor, + new java.lang.String[] { + "Persona", + }); + internal_static_google_cloud_ces_v1_ChannelProfile_WebWidgetConfig_descriptor = + internal_static_google_cloud_ces_v1_ChannelProfile_descriptor.getNestedType(1); + internal_static_google_cloud_ces_v1_ChannelProfile_WebWidgetConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ChannelProfile_WebWidgetConfig_descriptor, + new java.lang.String[] { + "Modality", "Theme", "WebWidgetTitle", "SecuritySettings", + }); + internal_static_google_cloud_ces_v1_ChannelProfile_WebWidgetConfig_SecuritySettings_descriptor = + internal_static_google_cloud_ces_v1_ChannelProfile_WebWidgetConfig_descriptor.getNestedType( + 0); + internal_static_google_cloud_ces_v1_ChannelProfile_WebWidgetConfig_SecuritySettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ChannelProfile_WebWidgetConfig_SecuritySettings_descriptor, + new java.lang.String[] { + "EnablePublicAccess", "EnableOriginCheck", "AllowedOrigins", "EnableRecaptcha", + }); + internal_static_google_cloud_ces_v1_Span_descriptor = getDescriptor().getMessageType(6); + internal_static_google_cloud_ces_v1_Span_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Span_descriptor, + new java.lang.String[] { + "Name", "StartTime", "EndTime", "Duration", "Attributes", "ChildSpans", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConnectorTool.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConnectorTool.java new file mode 100644 index 000000000000..10cef5ca978d --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConnectorTool.java @@ -0,0 +1,1702 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/connector_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * A ConnectorTool allows connections to different integrations.
      + * See: https://cloud.google.com/integration-connectors/docs/overview.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ConnectorTool} + */ +@com.google.protobuf.Generated +public final class ConnectorTool extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ConnectorTool) + ConnectorToolOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ConnectorTool"); + } + + // Use ConnectorTool.newBuilder() to construct. + private ConnectorTool(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ConnectorTool() { + connection_ = ""; + name_ = ""; + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ConnectorToolProto + .internal_static_google_cloud_ces_v1_ConnectorTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ConnectorToolProto + .internal_static_google_cloud_ces_v1_ConnectorTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ConnectorTool.class, + com.google.cloud.ces.v1.ConnectorTool.Builder.class); + } + + private int bitField0_; + public static final int CONNECTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object connection_ = ""; + + /** + * + * + *
      +   * Required. The full resource name of the referenced Integration Connectors
      +   * Connection.
      +   * Format:
      +   * `projects/{project}/locations/{location}/connections/{connection}`
      +   * 
      + * + * string connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The connection. + */ + @java.lang.Override + public java.lang.String getConnection() { + java.lang.Object ref = connection_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + connection_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The full resource name of the referenced Integration Connectors
      +   * Connection.
      +   * Format:
      +   * `projects/{project}/locations/{location}/connections/{connection}`
      +   * 
      + * + * string connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for connection. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConnectionBytes() { + java.lang.Object ref = connection_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + connection_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACTION_FIELD_NUMBER = 2; + private com.google.cloud.ces.v1.Action action_; + + /** + * + * + *
      +   * Required. Action for the tool to use.
      +   * 
      + * + * .google.cloud.ces.v1.Action action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the action field is set. + */ + @java.lang.Override + public boolean hasAction() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Required. Action for the tool to use.
      +   * 
      + * + * .google.cloud.ces.v1.Action action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The action. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Action getAction() { + return action_ == null ? com.google.cloud.ces.v1.Action.getDefaultInstance() : action_; + } + + /** + * + * + *
      +   * Required. Action for the tool to use.
      +   * 
      + * + * .google.cloud.ces.v1.Action action = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.ces.v1.ActionOrBuilder getActionOrBuilder() { + return action_ == null ? com.google.cloud.ces.v1.Action.getDefaultInstance() : action_; + } + + public static final int AUTH_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.ces.v1.EndUserAuthConfig authConfig_; + + /** + * + * + *
      +   * Optional. Configures how authentication is handled in Integration
      +   * Connectors. By default, an admin authentication is passed in the
      +   * Integration Connectors API requests. You can override it with a different
      +   * end-user authentication config.
      +   * **Note**: The Connection must have authentication override enabled in
      +   * order to specify an EUC configuration here - otherwise, the ConnectorTool
      +   * creation will fail. See
      +   * https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override
      +   * for details.
      +   * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig auth_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the authConfig field is set. + */ + @java.lang.Override + public boolean hasAuthConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Optional. Configures how authentication is handled in Integration
      +   * Connectors. By default, an admin authentication is passed in the
      +   * Integration Connectors API requests. You can override it with a different
      +   * end-user authentication config.
      +   * **Note**: The Connection must have authentication override enabled in
      +   * order to specify an EUC configuration here - otherwise, the ConnectorTool
      +   * creation will fail. See
      +   * https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override
      +   * for details.
      +   * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig auth_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The authConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.EndUserAuthConfig getAuthConfig() { + return authConfig_ == null + ? com.google.cloud.ces.v1.EndUserAuthConfig.getDefaultInstance() + : authConfig_; + } + + /** + * + * + *
      +   * Optional. Configures how authentication is handled in Integration
      +   * Connectors. By default, an admin authentication is passed in the
      +   * Integration Connectors API requests. You can override it with a different
      +   * end-user authentication config.
      +   * **Note**: The Connection must have authentication override enabled in
      +   * order to specify an EUC configuration here - otherwise, the ConnectorTool
      +   * creation will fail. See
      +   * https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override
      +   * for details.
      +   * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig auth_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.EndUserAuthConfigOrBuilder getAuthConfigOrBuilder() { + return authConfig_ == null + ? com.google.cloud.ces.v1.EndUserAuthConfig.getDefaultInstance() + : authConfig_; + } + + public static final int NAME_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Optional. The name of the tool that can be used by the Agent to decide
      +   * whether to call this ConnectorTool.
      +   * 
      + * + * string name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The name of the tool that can be used by the Agent to decide
      +   * whether to call this ConnectorTool.
      +   * 
      + * + * string name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
      +   * Optional. The description of the tool that can be used by the Agent to
      +   * decide whether to call this ConnectorTool.
      +   * 
      + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The description of the tool that can be used by the Agent to
      +   * decide whether to call this ConnectorTool.
      +   * 
      + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(connection_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, connection_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getAction()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getAuthConfig()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, description_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(connection_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, connection_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAction()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAuthConfig()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, description_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ConnectorTool)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ConnectorTool other = (com.google.cloud.ces.v1.ConnectorTool) obj; + + if (!getConnection().equals(other.getConnection())) return false; + if (hasAction() != other.hasAction()) return false; + if (hasAction()) { + if (!getAction().equals(other.getAction())) return false; + } + if (hasAuthConfig() != other.hasAuthConfig()) return false; + if (hasAuthConfig()) { + if (!getAuthConfig().equals(other.getAuthConfig())) return false; + } + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONNECTION_FIELD_NUMBER; + hash = (53 * hash) + getConnection().hashCode(); + if (hasAction()) { + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + getAction().hashCode(); + } + if (hasAuthConfig()) { + hash = (37 * hash) + AUTH_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAuthConfig().hashCode(); + } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ConnectorTool parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ConnectorTool parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ConnectorTool parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ConnectorTool parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ConnectorTool parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ConnectorTool parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ConnectorTool parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ConnectorTool parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ConnectorTool parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ConnectorTool parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ConnectorTool parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ConnectorTool parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ConnectorTool prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * A ConnectorTool allows connections to different integrations.
      +   * See: https://cloud.google.com/integration-connectors/docs/overview.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ConnectorTool} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ConnectorTool) + com.google.cloud.ces.v1.ConnectorToolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ConnectorToolProto + .internal_static_google_cloud_ces_v1_ConnectorTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ConnectorToolProto + .internal_static_google_cloud_ces_v1_ConnectorTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ConnectorTool.class, + com.google.cloud.ces.v1.ConnectorTool.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ConnectorTool.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetActionFieldBuilder(); + internalGetAuthConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + connection_ = ""; + action_ = null; + if (actionBuilder_ != null) { + actionBuilder_.dispose(); + actionBuilder_ = null; + } + authConfig_ = null; + if (authConfigBuilder_ != null) { + authConfigBuilder_.dispose(); + authConfigBuilder_ = null; + } + name_ = ""; + description_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.ConnectorToolProto + .internal_static_google_cloud_ces_v1_ConnectorTool_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ConnectorTool getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ConnectorTool.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ConnectorTool build() { + com.google.cloud.ces.v1.ConnectorTool result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ConnectorTool buildPartial() { + com.google.cloud.ces.v1.ConnectorTool result = + new com.google.cloud.ces.v1.ConnectorTool(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ConnectorTool result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.connection_ = connection_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.action_ = actionBuilder_ == null ? action_ : actionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.authConfig_ = authConfigBuilder_ == null ? authConfig_ : authConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.description_ = description_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ConnectorTool) { + return mergeFrom((com.google.cloud.ces.v1.ConnectorTool) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ConnectorTool other) { + if (other == com.google.cloud.ces.v1.ConnectorTool.getDefaultInstance()) return this; + if (!other.getConnection().isEmpty()) { + connection_ = other.connection_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasAction()) { + mergeAction(other.getAction()); + } + if (other.hasAuthConfig()) { + mergeAuthConfig(other.getAuthConfig()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + connection_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetActionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetAuthConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object connection_ = ""; + + /** + * + * + *
      +     * Required. The full resource name of the referenced Integration Connectors
      +     * Connection.
      +     * Format:
      +     * `projects/{project}/locations/{location}/connections/{connection}`
      +     * 
      + * + * string connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The connection. + */ + public java.lang.String getConnection() { + java.lang.Object ref = connection_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + connection_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The full resource name of the referenced Integration Connectors
      +     * Connection.
      +     * Format:
      +     * `projects/{project}/locations/{location}/connections/{connection}`
      +     * 
      + * + * string connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for connection. + */ + public com.google.protobuf.ByteString getConnectionBytes() { + java.lang.Object ref = connection_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + connection_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The full resource name of the referenced Integration Connectors
      +     * Connection.
      +     * Format:
      +     * `projects/{project}/locations/{location}/connections/{connection}`
      +     * 
      + * + * string connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The connection to set. + * @return This builder for chaining. + */ + public Builder setConnection(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + connection_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The full resource name of the referenced Integration Connectors
      +     * Connection.
      +     * Format:
      +     * `projects/{project}/locations/{location}/connections/{connection}`
      +     * 
      + * + * string connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearConnection() { + connection_ = getDefaultInstance().getConnection(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The full resource name of the referenced Integration Connectors
      +     * Connection.
      +     * Format:
      +     * `projects/{project}/locations/{location}/connections/{connection}`
      +     * 
      + * + * string connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for connection to set. + * @return This builder for chaining. + */ + public Builder setConnectionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + connection_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.Action action_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Action, + com.google.cloud.ces.v1.Action.Builder, + com.google.cloud.ces.v1.ActionOrBuilder> + actionBuilder_; + + /** + * + * + *
      +     * Required. Action for the tool to use.
      +     * 
      + * + * .google.cloud.ces.v1.Action action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the action field is set. + */ + public boolean hasAction() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Required. Action for the tool to use.
      +     * 
      + * + * .google.cloud.ces.v1.Action action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The action. + */ + public com.google.cloud.ces.v1.Action getAction() { + if (actionBuilder_ == null) { + return action_ == null ? com.google.cloud.ces.v1.Action.getDefaultInstance() : action_; + } else { + return actionBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Required. Action for the tool to use.
      +     * 
      + * + * .google.cloud.ces.v1.Action action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAction(com.google.cloud.ces.v1.Action value) { + if (actionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + action_ = value; + } else { + actionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. Action for the tool to use.
      +     * 
      + * + * .google.cloud.ces.v1.Action action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAction(com.google.cloud.ces.v1.Action.Builder builderForValue) { + if (actionBuilder_ == null) { + action_ = builderForValue.build(); + } else { + actionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. Action for the tool to use.
      +     * 
      + * + * .google.cloud.ces.v1.Action action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAction(com.google.cloud.ces.v1.Action value) { + if (actionBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && action_ != null + && action_ != com.google.cloud.ces.v1.Action.getDefaultInstance()) { + getActionBuilder().mergeFrom(value); + } else { + action_ = value; + } + } else { + actionBuilder_.mergeFrom(value); + } + if (action_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Required. Action for the tool to use.
      +     * 
      + * + * .google.cloud.ces.v1.Action action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAction() { + bitField0_ = (bitField0_ & ~0x00000002); + action_ = null; + if (actionBuilder_ != null) { + actionBuilder_.dispose(); + actionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. Action for the tool to use.
      +     * 
      + * + * .google.cloud.ces.v1.Action action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.Action.Builder getActionBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetActionFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Required. Action for the tool to use.
      +     * 
      + * + * .google.cloud.ces.v1.Action action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.ActionOrBuilder getActionOrBuilder() { + if (actionBuilder_ != null) { + return actionBuilder_.getMessageOrBuilder(); + } else { + return action_ == null ? com.google.cloud.ces.v1.Action.getDefaultInstance() : action_; + } + } + + /** + * + * + *
      +     * Required. Action for the tool to use.
      +     * 
      + * + * .google.cloud.ces.v1.Action action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Action, + com.google.cloud.ces.v1.Action.Builder, + com.google.cloud.ces.v1.ActionOrBuilder> + internalGetActionFieldBuilder() { + if (actionBuilder_ == null) { + actionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Action, + com.google.cloud.ces.v1.Action.Builder, + com.google.cloud.ces.v1.ActionOrBuilder>( + getAction(), getParentForChildren(), isClean()); + action_ = null; + } + return actionBuilder_; + } + + private com.google.cloud.ces.v1.EndUserAuthConfig authConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EndUserAuthConfig, + com.google.cloud.ces.v1.EndUserAuthConfig.Builder, + com.google.cloud.ces.v1.EndUserAuthConfigOrBuilder> + authConfigBuilder_; + + /** + * + * + *
      +     * Optional. Configures how authentication is handled in Integration
      +     * Connectors. By default, an admin authentication is passed in the
      +     * Integration Connectors API requests. You can override it with a different
      +     * end-user authentication config.
      +     * **Note**: The Connection must have authentication override enabled in
      +     * order to specify an EUC configuration here - otherwise, the ConnectorTool
      +     * creation will fail. See
      +     * https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override
      +     * for details.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig auth_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the authConfig field is set. + */ + public boolean hasAuthConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Optional. Configures how authentication is handled in Integration
      +     * Connectors. By default, an admin authentication is passed in the
      +     * Integration Connectors API requests. You can override it with a different
      +     * end-user authentication config.
      +     * **Note**: The Connection must have authentication override enabled in
      +     * order to specify an EUC configuration here - otherwise, the ConnectorTool
      +     * creation will fail. See
      +     * https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override
      +     * for details.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig auth_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The authConfig. + */ + public com.google.cloud.ces.v1.EndUserAuthConfig getAuthConfig() { + if (authConfigBuilder_ == null) { + return authConfig_ == null + ? com.google.cloud.ces.v1.EndUserAuthConfig.getDefaultInstance() + : authConfig_; + } else { + return authConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Configures how authentication is handled in Integration
      +     * Connectors. By default, an admin authentication is passed in the
      +     * Integration Connectors API requests. You can override it with a different
      +     * end-user authentication config.
      +     * **Note**: The Connection must have authentication override enabled in
      +     * order to specify an EUC configuration here - otherwise, the ConnectorTool
      +     * creation will fail. See
      +     * https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override
      +     * for details.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig auth_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAuthConfig(com.google.cloud.ces.v1.EndUserAuthConfig value) { + if (authConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authConfig_ = value; + } else { + authConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configures how authentication is handled in Integration
      +     * Connectors. By default, an admin authentication is passed in the
      +     * Integration Connectors API requests. You can override it with a different
      +     * end-user authentication config.
      +     * **Note**: The Connection must have authentication override enabled in
      +     * order to specify an EUC configuration here - otherwise, the ConnectorTool
      +     * creation will fail. See
      +     * https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override
      +     * for details.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig auth_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAuthConfig( + com.google.cloud.ces.v1.EndUserAuthConfig.Builder builderForValue) { + if (authConfigBuilder_ == null) { + authConfig_ = builderForValue.build(); + } else { + authConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configures how authentication is handled in Integration
      +     * Connectors. By default, an admin authentication is passed in the
      +     * Integration Connectors API requests. You can override it with a different
      +     * end-user authentication config.
      +     * **Note**: The Connection must have authentication override enabled in
      +     * order to specify an EUC configuration here - otherwise, the ConnectorTool
      +     * creation will fail. See
      +     * https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override
      +     * for details.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig auth_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAuthConfig(com.google.cloud.ces.v1.EndUserAuthConfig value) { + if (authConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && authConfig_ != null + && authConfig_ != com.google.cloud.ces.v1.EndUserAuthConfig.getDefaultInstance()) { + getAuthConfigBuilder().mergeFrom(value); + } else { + authConfig_ = value; + } + } else { + authConfigBuilder_.mergeFrom(value); + } + if (authConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Configures how authentication is handled in Integration
      +     * Connectors. By default, an admin authentication is passed in the
      +     * Integration Connectors API requests. You can override it with a different
      +     * end-user authentication config.
      +     * **Note**: The Connection must have authentication override enabled in
      +     * order to specify an EUC configuration here - otherwise, the ConnectorTool
      +     * creation will fail. See
      +     * https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override
      +     * for details.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig auth_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAuthConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + authConfig_ = null; + if (authConfigBuilder_ != null) { + authConfigBuilder_.dispose(); + authConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configures how authentication is handled in Integration
      +     * Connectors. By default, an admin authentication is passed in the
      +     * Integration Connectors API requests. You can override it with a different
      +     * end-user authentication config.
      +     * **Note**: The Connection must have authentication override enabled in
      +     * order to specify an EUC configuration here - otherwise, the ConnectorTool
      +     * creation will fail. See
      +     * https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override
      +     * for details.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig auth_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.EndUserAuthConfig.Builder getAuthConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetAuthConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Configures how authentication is handled in Integration
      +     * Connectors. By default, an admin authentication is passed in the
      +     * Integration Connectors API requests. You can override it with a different
      +     * end-user authentication config.
      +     * **Note**: The Connection must have authentication override enabled in
      +     * order to specify an EUC configuration here - otherwise, the ConnectorTool
      +     * creation will fail. See
      +     * https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override
      +     * for details.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig auth_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.EndUserAuthConfigOrBuilder getAuthConfigOrBuilder() { + if (authConfigBuilder_ != null) { + return authConfigBuilder_.getMessageOrBuilder(); + } else { + return authConfig_ == null + ? com.google.cloud.ces.v1.EndUserAuthConfig.getDefaultInstance() + : authConfig_; + } + } + + /** + * + * + *
      +     * Optional. Configures how authentication is handled in Integration
      +     * Connectors. By default, an admin authentication is passed in the
      +     * Integration Connectors API requests. You can override it with a different
      +     * end-user authentication config.
      +     * **Note**: The Connection must have authentication override enabled in
      +     * order to specify an EUC configuration here - otherwise, the ConnectorTool
      +     * creation will fail. See
      +     * https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override
      +     * for details.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig auth_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EndUserAuthConfig, + com.google.cloud.ces.v1.EndUserAuthConfig.Builder, + com.google.cloud.ces.v1.EndUserAuthConfigOrBuilder> + internalGetAuthConfigFieldBuilder() { + if (authConfigBuilder_ == null) { + authConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EndUserAuthConfig, + com.google.cloud.ces.v1.EndUserAuthConfig.Builder, + com.google.cloud.ces.v1.EndUserAuthConfigOrBuilder>( + getAuthConfig(), getParentForChildren(), isClean()); + authConfig_ = null; + } + return authConfigBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Optional. The name of the tool that can be used by the Agent to decide
      +     * whether to call this ConnectorTool.
      +     * 
      + * + * string name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The name of the tool that can be used by the Agent to decide
      +     * whether to call this ConnectorTool.
      +     * 
      + * + * string name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The name of the tool that can be used by the Agent to decide
      +     * whether to call this ConnectorTool.
      +     * 
      + * + * string name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The name of the tool that can be used by the Agent to decide
      +     * whether to call this ConnectorTool.
      +     * 
      + * + * string name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The name of the tool that can be used by the Agent to decide
      +     * whether to call this ConnectorTool.
      +     * 
      + * + * string name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
      +     * Optional. The description of the tool that can be used by the Agent to
      +     * decide whether to call this ConnectorTool.
      +     * 
      + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The description of the tool that can be used by the Agent to
      +     * decide whether to call this ConnectorTool.
      +     * 
      + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The description of the tool that can be used by the Agent to
      +     * decide whether to call this ConnectorTool.
      +     * 
      + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The description of the tool that can be used by the Agent to
      +     * decide whether to call this ConnectorTool.
      +     * 
      + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The description of the tool that can be used by the Agent to
      +     * decide whether to call this ConnectorTool.
      +     * 
      + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ConnectorTool) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ConnectorTool) + private static final com.google.cloud.ces.v1.ConnectorTool DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ConnectorTool(); + } + + public static com.google.cloud.ces.v1.ConnectorTool getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectorTool parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ConnectorTool getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConnectorToolOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConnectorToolOrBuilder.java new file mode 100644 index 000000000000..a60cf87a527a --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConnectorToolOrBuilder.java @@ -0,0 +1,220 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/connector_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ConnectorToolOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ConnectorTool) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The full resource name of the referenced Integration Connectors
      +   * Connection.
      +   * Format:
      +   * `projects/{project}/locations/{location}/connections/{connection}`
      +   * 
      + * + * string connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The connection. + */ + java.lang.String getConnection(); + + /** + * + * + *
      +   * Required. The full resource name of the referenced Integration Connectors
      +   * Connection.
      +   * Format:
      +   * `projects/{project}/locations/{location}/connections/{connection}`
      +   * 
      + * + * string connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for connection. + */ + com.google.protobuf.ByteString getConnectionBytes(); + + /** + * + * + *
      +   * Required. Action for the tool to use.
      +   * 
      + * + * .google.cloud.ces.v1.Action action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the action field is set. + */ + boolean hasAction(); + + /** + * + * + *
      +   * Required. Action for the tool to use.
      +   * 
      + * + * .google.cloud.ces.v1.Action action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The action. + */ + com.google.cloud.ces.v1.Action getAction(); + + /** + * + * + *
      +   * Required. Action for the tool to use.
      +   * 
      + * + * .google.cloud.ces.v1.Action action = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.ces.v1.ActionOrBuilder getActionOrBuilder(); + + /** + * + * + *
      +   * Optional. Configures how authentication is handled in Integration
      +   * Connectors. By default, an admin authentication is passed in the
      +   * Integration Connectors API requests. You can override it with a different
      +   * end-user authentication config.
      +   * **Note**: The Connection must have authentication override enabled in
      +   * order to specify an EUC configuration here - otherwise, the ConnectorTool
      +   * creation will fail. See
      +   * https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override
      +   * for details.
      +   * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig auth_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the authConfig field is set. + */ + boolean hasAuthConfig(); + + /** + * + * + *
      +   * Optional. Configures how authentication is handled in Integration
      +   * Connectors. By default, an admin authentication is passed in the
      +   * Integration Connectors API requests. You can override it with a different
      +   * end-user authentication config.
      +   * **Note**: The Connection must have authentication override enabled in
      +   * order to specify an EUC configuration here - otherwise, the ConnectorTool
      +   * creation will fail. See
      +   * https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override
      +   * for details.
      +   * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig auth_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The authConfig. + */ + com.google.cloud.ces.v1.EndUserAuthConfig getAuthConfig(); + + /** + * + * + *
      +   * Optional. Configures how authentication is handled in Integration
      +   * Connectors. By default, an admin authentication is passed in the
      +   * Integration Connectors API requests. You can override it with a different
      +   * end-user authentication config.
      +   * **Note**: The Connection must have authentication override enabled in
      +   * order to specify an EUC configuration here - otherwise, the ConnectorTool
      +   * creation will fail. See
      +   * https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override
      +   * for details.
      +   * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig auth_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.EndUserAuthConfigOrBuilder getAuthConfigOrBuilder(); + + /** + * + * + *
      +   * Optional. The name of the tool that can be used by the Agent to decide
      +   * whether to call this ConnectorTool.
      +   * 
      + * + * string name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Optional. The name of the tool that can be used by the Agent to decide
      +   * whether to call this ConnectorTool.
      +   * 
      + * + * string name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Optional. The description of the tool that can be used by the Agent to
      +   * decide whether to call this ConnectorTool.
      +   * 
      + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
      +   * Optional. The description of the tool that can be used by the Agent to
      +   * decide whether to call this ConnectorTool.
      +   * 
      + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConnectorToolProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConnectorToolProto.java new file mode 100644 index 000000000000..44b59107c6b3 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConnectorToolProto.java @@ -0,0 +1,138 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/connector_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class ConnectorToolProto extends com.google.protobuf.GeneratedFile { + private ConnectorToolProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ConnectorToolProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Action_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Action_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Action_EntityOperation_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Action_EntityOperation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ConnectorTool_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ConnectorTool_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "(google/cloud/ces/v1/connector_tool.pro" + + "to\022\023google.cloud.ces.v1\032\037google/api/fiel" + + "d_behavior.proto\032\036google/cloud/ces/v1/auth.proto\"\236\003\n" + + "\006Action\022\036\n" + + "\024connection_action_id\030\004 \001(\tH\000\022G\n" + + "\020entity_operation\030\005 \001(\0132+." + + "google.cloud.ces.v1.Action.EntityOperationH\000\022\031\n" + + "\014input_fields\030\002 \003(\tB\003\340A\001\022\032\n\r" + + "output_fields\030\003 \003(\tB\003\340A\001\032\344\001\n" + + "\017EntityOperation\022\026\n" + + "\tentity_id\030\001 \001(\tB\003\340A\002\022Q\n" + + "\toperation\030\002 \001" + + "(\01629.google.cloud.ces.v1.Action.EntityOperation.OperationTypeB\003\340A\002\"f\n\r" + + "OperationType\022\036\n" + + "\032OPERATION_TYPE_UNSPECIFIED\020\000\022\010\n" + + "\004LIST\020\001\022\007\n" + + "\003GET\020\002\022\n\n" + + "\006CREATE\020\003\022\n\n" + + "\006UPDATE\020\004\022\n" + + "\n" + + "\006DELETE\020\005B\r\n" + + "\013action_spec\"\311\001\n\r" + + "ConnectorTool\022\027\n\n" + + "connection\030\001 \001(\tB\003\340A\002\0220\n" + + "\006action\030\002 \001(\0132\033.google.cloud.ces.v1.ActionB\003\340A\002\022@\n" + + "\013auth_config\030\003" + + " \001(\0132&.google.cloud.ces.v1.EndUserAuthConfigB\003\340A\001\022\021\n" + + "\004name\030\004 \001(\tB\003\340A\001\022\030\n" + + "\013description\030\005 \001(\tB\003\340A\001BZ\n" + + "\027com.google.cloud.ces.v1B\022ConnectorToolProtoP\001Z)" + + "cloud.google.com/go/ces/apiv1/cespb;cespbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.ces.v1.AuthProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_Action_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_Action_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Action_descriptor, + new java.lang.String[] { + "ConnectionActionId", "EntityOperation", "InputFields", "OutputFields", "ActionSpec", + }); + internal_static_google_cloud_ces_v1_Action_EntityOperation_descriptor = + internal_static_google_cloud_ces_v1_Action_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_Action_EntityOperation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Action_EntityOperation_descriptor, + new java.lang.String[] { + "EntityId", "Operation", + }); + internal_static_google_cloud_ces_v1_ConnectorTool_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_ces_v1_ConnectorTool_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ConnectorTool_descriptor, + new java.lang.String[] { + "Connection", "Action", "AuthConfig", "Name", "Description", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.ces.v1.AuthProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConnectorToolset.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConnectorToolset.java new file mode 100644 index 000000000000..3b5ca56a94bb --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConnectorToolset.java @@ -0,0 +1,1602 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/connector_toolset.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * A toolset that generates tools from an Integration Connectors Connection.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ConnectorToolset} + */ +@com.google.protobuf.Generated +public final class ConnectorToolset extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ConnectorToolset) + ConnectorToolsetOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ConnectorToolset"); + } + + // Use ConnectorToolset.newBuilder() to construct. + private ConnectorToolset(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ConnectorToolset() { + connection_ = ""; + connectorActions_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ConnectorToolsetProto + .internal_static_google_cloud_ces_v1_ConnectorToolset_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ConnectorToolsetProto + .internal_static_google_cloud_ces_v1_ConnectorToolset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ConnectorToolset.class, + com.google.cloud.ces.v1.ConnectorToolset.Builder.class); + } + + private int bitField0_; + public static final int CONNECTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object connection_ = ""; + + /** + * + * + *
      +   * Required. The full resource name of the referenced Integration Connectors
      +   * Connection.
      +   * Format:
      +   * `projects/{project}/locations/{location}/connections/{connection}`
      +   * 
      + * + * string connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The connection. + */ + @java.lang.Override + public java.lang.String getConnection() { + java.lang.Object ref = connection_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + connection_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The full resource name of the referenced Integration Connectors
      +   * Connection.
      +   * Format:
      +   * `projects/{project}/locations/{location}/connections/{connection}`
      +   * 
      + * + * string connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for connection. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConnectionBytes() { + java.lang.Object ref = connection_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + connection_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTH_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.ces.v1.EndUserAuthConfig authConfig_; + + /** + * + * + *
      +   * Optional. Configures how authentication is handled in Integration
      +   * Connectors. By default, an admin authentication is passed in the
      +   * Integration Connectors API requests. You can override it with a different
      +   * end-user authentication config.
      +   * **Note**: The Connection must have authentication override enabled in
      +   * order to specify an EUC configuration here - otherwise, the Toolset
      +   * creation will fail. See:
      +   * https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override
      +   * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig auth_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the authConfig field is set. + */ + @java.lang.Override + public boolean hasAuthConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Optional. Configures how authentication is handled in Integration
      +   * Connectors. By default, an admin authentication is passed in the
      +   * Integration Connectors API requests. You can override it with a different
      +   * end-user authentication config.
      +   * **Note**: The Connection must have authentication override enabled in
      +   * order to specify an EUC configuration here - otherwise, the Toolset
      +   * creation will fail. See:
      +   * https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override
      +   * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig auth_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The authConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.EndUserAuthConfig getAuthConfig() { + return authConfig_ == null + ? com.google.cloud.ces.v1.EndUserAuthConfig.getDefaultInstance() + : authConfig_; + } + + /** + * + * + *
      +   * Optional. Configures how authentication is handled in Integration
      +   * Connectors. By default, an admin authentication is passed in the
      +   * Integration Connectors API requests. You can override it with a different
      +   * end-user authentication config.
      +   * **Note**: The Connection must have authentication override enabled in
      +   * order to specify an EUC configuration here - otherwise, the Toolset
      +   * creation will fail. See:
      +   * https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override
      +   * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig auth_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.EndUserAuthConfigOrBuilder getAuthConfigOrBuilder() { + return authConfig_ == null + ? com.google.cloud.ces.v1.EndUserAuthConfig.getDefaultInstance() + : authConfig_; + } + + public static final int CONNECTOR_ACTIONS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List connectorActions_; + + /** + * + * + *
      +   * Required. The list of connector actions/entity operations to generate tools
      +   * for.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Action connector_actions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getConnectorActionsList() { + return connectorActions_; + } + + /** + * + * + *
      +   * Required. The list of connector actions/entity operations to generate tools
      +   * for.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Action connector_actions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getConnectorActionsOrBuilderList() { + return connectorActions_; + } + + /** + * + * + *
      +   * Required. The list of connector actions/entity operations to generate tools
      +   * for.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Action connector_actions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getConnectorActionsCount() { + return connectorActions_.size(); + } + + /** + * + * + *
      +   * Required. The list of connector actions/entity operations to generate tools
      +   * for.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Action connector_actions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Action getConnectorActions(int index) { + return connectorActions_.get(index); + } + + /** + * + * + *
      +   * Required. The list of connector actions/entity operations to generate tools
      +   * for.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Action connector_actions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ActionOrBuilder getConnectorActionsOrBuilder(int index) { + return connectorActions_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(connection_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, connection_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getAuthConfig()); + } + for (int i = 0; i < connectorActions_.size(); i++) { + output.writeMessage(3, connectorActions_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(connection_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, connection_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAuthConfig()); + } + for (int i = 0; i < connectorActions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, connectorActions_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ConnectorToolset)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ConnectorToolset other = (com.google.cloud.ces.v1.ConnectorToolset) obj; + + if (!getConnection().equals(other.getConnection())) return false; + if (hasAuthConfig() != other.hasAuthConfig()) return false; + if (hasAuthConfig()) { + if (!getAuthConfig().equals(other.getAuthConfig())) return false; + } + if (!getConnectorActionsList().equals(other.getConnectorActionsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONNECTION_FIELD_NUMBER; + hash = (53 * hash) + getConnection().hashCode(); + if (hasAuthConfig()) { + hash = (37 * hash) + AUTH_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAuthConfig().hashCode(); + } + if (getConnectorActionsCount() > 0) { + hash = (37 * hash) + CONNECTOR_ACTIONS_FIELD_NUMBER; + hash = (53 * hash) + getConnectorActionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ConnectorToolset parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ConnectorToolset parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ConnectorToolset parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ConnectorToolset parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ConnectorToolset parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ConnectorToolset parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ConnectorToolset parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ConnectorToolset parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ConnectorToolset parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ConnectorToolset parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ConnectorToolset parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ConnectorToolset parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ConnectorToolset prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * A toolset that generates tools from an Integration Connectors Connection.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ConnectorToolset} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ConnectorToolset) + com.google.cloud.ces.v1.ConnectorToolsetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ConnectorToolsetProto + .internal_static_google_cloud_ces_v1_ConnectorToolset_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ConnectorToolsetProto + .internal_static_google_cloud_ces_v1_ConnectorToolset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ConnectorToolset.class, + com.google.cloud.ces.v1.ConnectorToolset.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ConnectorToolset.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAuthConfigFieldBuilder(); + internalGetConnectorActionsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + connection_ = ""; + authConfig_ = null; + if (authConfigBuilder_ != null) { + authConfigBuilder_.dispose(); + authConfigBuilder_ = null; + } + if (connectorActionsBuilder_ == null) { + connectorActions_ = java.util.Collections.emptyList(); + } else { + connectorActions_ = null; + connectorActionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.ConnectorToolsetProto + .internal_static_google_cloud_ces_v1_ConnectorToolset_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ConnectorToolset getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ConnectorToolset.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ConnectorToolset build() { + com.google.cloud.ces.v1.ConnectorToolset result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ConnectorToolset buildPartial() { + com.google.cloud.ces.v1.ConnectorToolset result = + new com.google.cloud.ces.v1.ConnectorToolset(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1.ConnectorToolset result) { + if (connectorActionsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + connectorActions_ = java.util.Collections.unmodifiableList(connectorActions_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.connectorActions_ = connectorActions_; + } else { + result.connectorActions_ = connectorActionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.ConnectorToolset result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.connection_ = connection_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.authConfig_ = authConfigBuilder_ == null ? authConfig_ : authConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ConnectorToolset) { + return mergeFrom((com.google.cloud.ces.v1.ConnectorToolset) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ConnectorToolset other) { + if (other == com.google.cloud.ces.v1.ConnectorToolset.getDefaultInstance()) return this; + if (!other.getConnection().isEmpty()) { + connection_ = other.connection_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasAuthConfig()) { + mergeAuthConfig(other.getAuthConfig()); + } + if (connectorActionsBuilder_ == null) { + if (!other.connectorActions_.isEmpty()) { + if (connectorActions_.isEmpty()) { + connectorActions_ = other.connectorActions_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureConnectorActionsIsMutable(); + connectorActions_.addAll(other.connectorActions_); + } + onChanged(); + } + } else { + if (!other.connectorActions_.isEmpty()) { + if (connectorActionsBuilder_.isEmpty()) { + connectorActionsBuilder_.dispose(); + connectorActionsBuilder_ = null; + connectorActions_ = other.connectorActions_; + bitField0_ = (bitField0_ & ~0x00000004); + connectorActionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetConnectorActionsFieldBuilder() + : null; + } else { + connectorActionsBuilder_.addAllMessages(other.connectorActions_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + connection_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetAuthConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.ces.v1.Action m = + input.readMessage(com.google.cloud.ces.v1.Action.parser(), extensionRegistry); + if (connectorActionsBuilder_ == null) { + ensureConnectorActionsIsMutable(); + connectorActions_.add(m); + } else { + connectorActionsBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object connection_ = ""; + + /** + * + * + *
      +     * Required. The full resource name of the referenced Integration Connectors
      +     * Connection.
      +     * Format:
      +     * `projects/{project}/locations/{location}/connections/{connection}`
      +     * 
      + * + * string connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The connection. + */ + public java.lang.String getConnection() { + java.lang.Object ref = connection_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + connection_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The full resource name of the referenced Integration Connectors
      +     * Connection.
      +     * Format:
      +     * `projects/{project}/locations/{location}/connections/{connection}`
      +     * 
      + * + * string connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for connection. + */ + public com.google.protobuf.ByteString getConnectionBytes() { + java.lang.Object ref = connection_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + connection_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The full resource name of the referenced Integration Connectors
      +     * Connection.
      +     * Format:
      +     * `projects/{project}/locations/{location}/connections/{connection}`
      +     * 
      + * + * string connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The connection to set. + * @return This builder for chaining. + */ + public Builder setConnection(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + connection_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The full resource name of the referenced Integration Connectors
      +     * Connection.
      +     * Format:
      +     * `projects/{project}/locations/{location}/connections/{connection}`
      +     * 
      + * + * string connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearConnection() { + connection_ = getDefaultInstance().getConnection(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The full resource name of the referenced Integration Connectors
      +     * Connection.
      +     * Format:
      +     * `projects/{project}/locations/{location}/connections/{connection}`
      +     * 
      + * + * string connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for connection to set. + * @return This builder for chaining. + */ + public Builder setConnectionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + connection_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.EndUserAuthConfig authConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EndUserAuthConfig, + com.google.cloud.ces.v1.EndUserAuthConfig.Builder, + com.google.cloud.ces.v1.EndUserAuthConfigOrBuilder> + authConfigBuilder_; + + /** + * + * + *
      +     * Optional. Configures how authentication is handled in Integration
      +     * Connectors. By default, an admin authentication is passed in the
      +     * Integration Connectors API requests. You can override it with a different
      +     * end-user authentication config.
      +     * **Note**: The Connection must have authentication override enabled in
      +     * order to specify an EUC configuration here - otherwise, the Toolset
      +     * creation will fail. See:
      +     * https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig auth_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the authConfig field is set. + */ + public boolean hasAuthConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Optional. Configures how authentication is handled in Integration
      +     * Connectors. By default, an admin authentication is passed in the
      +     * Integration Connectors API requests. You can override it with a different
      +     * end-user authentication config.
      +     * **Note**: The Connection must have authentication override enabled in
      +     * order to specify an EUC configuration here - otherwise, the Toolset
      +     * creation will fail. See:
      +     * https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig auth_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The authConfig. + */ + public com.google.cloud.ces.v1.EndUserAuthConfig getAuthConfig() { + if (authConfigBuilder_ == null) { + return authConfig_ == null + ? com.google.cloud.ces.v1.EndUserAuthConfig.getDefaultInstance() + : authConfig_; + } else { + return authConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Configures how authentication is handled in Integration
      +     * Connectors. By default, an admin authentication is passed in the
      +     * Integration Connectors API requests. You can override it with a different
      +     * end-user authentication config.
      +     * **Note**: The Connection must have authentication override enabled in
      +     * order to specify an EUC configuration here - otherwise, the Toolset
      +     * creation will fail. See:
      +     * https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig auth_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAuthConfig(com.google.cloud.ces.v1.EndUserAuthConfig value) { + if (authConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authConfig_ = value; + } else { + authConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configures how authentication is handled in Integration
      +     * Connectors. By default, an admin authentication is passed in the
      +     * Integration Connectors API requests. You can override it with a different
      +     * end-user authentication config.
      +     * **Note**: The Connection must have authentication override enabled in
      +     * order to specify an EUC configuration here - otherwise, the Toolset
      +     * creation will fail. See:
      +     * https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig auth_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAuthConfig( + com.google.cloud.ces.v1.EndUserAuthConfig.Builder builderForValue) { + if (authConfigBuilder_ == null) { + authConfig_ = builderForValue.build(); + } else { + authConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configures how authentication is handled in Integration
      +     * Connectors. By default, an admin authentication is passed in the
      +     * Integration Connectors API requests. You can override it with a different
      +     * end-user authentication config.
      +     * **Note**: The Connection must have authentication override enabled in
      +     * order to specify an EUC configuration here - otherwise, the Toolset
      +     * creation will fail. See:
      +     * https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig auth_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAuthConfig(com.google.cloud.ces.v1.EndUserAuthConfig value) { + if (authConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && authConfig_ != null + && authConfig_ != com.google.cloud.ces.v1.EndUserAuthConfig.getDefaultInstance()) { + getAuthConfigBuilder().mergeFrom(value); + } else { + authConfig_ = value; + } + } else { + authConfigBuilder_.mergeFrom(value); + } + if (authConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Configures how authentication is handled in Integration
      +     * Connectors. By default, an admin authentication is passed in the
      +     * Integration Connectors API requests. You can override it with a different
      +     * end-user authentication config.
      +     * **Note**: The Connection must have authentication override enabled in
      +     * order to specify an EUC configuration here - otherwise, the Toolset
      +     * creation will fail. See:
      +     * https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig auth_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAuthConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + authConfig_ = null; + if (authConfigBuilder_ != null) { + authConfigBuilder_.dispose(); + authConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configures how authentication is handled in Integration
      +     * Connectors. By default, an admin authentication is passed in the
      +     * Integration Connectors API requests. You can override it with a different
      +     * end-user authentication config.
      +     * **Note**: The Connection must have authentication override enabled in
      +     * order to specify an EUC configuration here - otherwise, the Toolset
      +     * creation will fail. See:
      +     * https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig auth_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.EndUserAuthConfig.Builder getAuthConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetAuthConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Configures how authentication is handled in Integration
      +     * Connectors. By default, an admin authentication is passed in the
      +     * Integration Connectors API requests. You can override it with a different
      +     * end-user authentication config.
      +     * **Note**: The Connection must have authentication override enabled in
      +     * order to specify an EUC configuration here - otherwise, the Toolset
      +     * creation will fail. See:
      +     * https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig auth_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.EndUserAuthConfigOrBuilder getAuthConfigOrBuilder() { + if (authConfigBuilder_ != null) { + return authConfigBuilder_.getMessageOrBuilder(); + } else { + return authConfig_ == null + ? com.google.cloud.ces.v1.EndUserAuthConfig.getDefaultInstance() + : authConfig_; + } + } + + /** + * + * + *
      +     * Optional. Configures how authentication is handled in Integration
      +     * Connectors. By default, an admin authentication is passed in the
      +     * Integration Connectors API requests. You can override it with a different
      +     * end-user authentication config.
      +     * **Note**: The Connection must have authentication override enabled in
      +     * order to specify an EUC configuration here - otherwise, the Toolset
      +     * creation will fail. See:
      +     * https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig auth_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EndUserAuthConfig, + com.google.cloud.ces.v1.EndUserAuthConfig.Builder, + com.google.cloud.ces.v1.EndUserAuthConfigOrBuilder> + internalGetAuthConfigFieldBuilder() { + if (authConfigBuilder_ == null) { + authConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EndUserAuthConfig, + com.google.cloud.ces.v1.EndUserAuthConfig.Builder, + com.google.cloud.ces.v1.EndUserAuthConfigOrBuilder>( + getAuthConfig(), getParentForChildren(), isClean()); + authConfig_ = null; + } + return authConfigBuilder_; + } + + private java.util.List connectorActions_ = + java.util.Collections.emptyList(); + + private void ensureConnectorActionsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + connectorActions_ = + new java.util.ArrayList(connectorActions_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Action, + com.google.cloud.ces.v1.Action.Builder, + com.google.cloud.ces.v1.ActionOrBuilder> + connectorActionsBuilder_; + + /** + * + * + *
      +     * Required. The list of connector actions/entity operations to generate tools
      +     * for.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Action connector_actions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getConnectorActionsList() { + if (connectorActionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(connectorActions_); + } else { + return connectorActionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Required. The list of connector actions/entity operations to generate tools
      +     * for.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Action connector_actions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getConnectorActionsCount() { + if (connectorActionsBuilder_ == null) { + return connectorActions_.size(); + } else { + return connectorActionsBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Required. The list of connector actions/entity operations to generate tools
      +     * for.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Action connector_actions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.Action getConnectorActions(int index) { + if (connectorActionsBuilder_ == null) { + return connectorActions_.get(index); + } else { + return connectorActionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Required. The list of connector actions/entity operations to generate tools
      +     * for.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Action connector_actions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConnectorActions(int index, com.google.cloud.ces.v1.Action value) { + if (connectorActionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectorActionsIsMutable(); + connectorActions_.set(index, value); + onChanged(); + } else { + connectorActionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Required. The list of connector actions/entity operations to generate tools
      +     * for.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Action connector_actions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConnectorActions( + int index, com.google.cloud.ces.v1.Action.Builder builderForValue) { + if (connectorActionsBuilder_ == null) { + ensureConnectorActionsIsMutable(); + connectorActions_.set(index, builderForValue.build()); + onChanged(); + } else { + connectorActionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Required. The list of connector actions/entity operations to generate tools
      +     * for.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Action connector_actions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addConnectorActions(com.google.cloud.ces.v1.Action value) { + if (connectorActionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectorActionsIsMutable(); + connectorActions_.add(value); + onChanged(); + } else { + connectorActionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Required. The list of connector actions/entity operations to generate tools
      +     * for.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Action connector_actions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addConnectorActions(int index, com.google.cloud.ces.v1.Action value) { + if (connectorActionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectorActionsIsMutable(); + connectorActions_.add(index, value); + onChanged(); + } else { + connectorActionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Required. The list of connector actions/entity operations to generate tools
      +     * for.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Action connector_actions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addConnectorActions(com.google.cloud.ces.v1.Action.Builder builderForValue) { + if (connectorActionsBuilder_ == null) { + ensureConnectorActionsIsMutable(); + connectorActions_.add(builderForValue.build()); + onChanged(); + } else { + connectorActionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Required. The list of connector actions/entity operations to generate tools
      +     * for.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Action connector_actions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addConnectorActions( + int index, com.google.cloud.ces.v1.Action.Builder builderForValue) { + if (connectorActionsBuilder_ == null) { + ensureConnectorActionsIsMutable(); + connectorActions_.add(index, builderForValue.build()); + onChanged(); + } else { + connectorActionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Required. The list of connector actions/entity operations to generate tools
      +     * for.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Action connector_actions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllConnectorActions( + java.lang.Iterable values) { + if (connectorActionsBuilder_ == null) { + ensureConnectorActionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connectorActions_); + onChanged(); + } else { + connectorActionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Required. The list of connector actions/entity operations to generate tools
      +     * for.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Action connector_actions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearConnectorActions() { + if (connectorActionsBuilder_ == null) { + connectorActions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + connectorActionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Required. The list of connector actions/entity operations to generate tools
      +     * for.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Action connector_actions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeConnectorActions(int index) { + if (connectorActionsBuilder_ == null) { + ensureConnectorActionsIsMutable(); + connectorActions_.remove(index); + onChanged(); + } else { + connectorActionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Required. The list of connector actions/entity operations to generate tools
      +     * for.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Action connector_actions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.Action.Builder getConnectorActionsBuilder(int index) { + return internalGetConnectorActionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Required. The list of connector actions/entity operations to generate tools
      +     * for.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Action connector_actions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.ActionOrBuilder getConnectorActionsOrBuilder(int index) { + if (connectorActionsBuilder_ == null) { + return connectorActions_.get(index); + } else { + return connectorActionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Required. The list of connector actions/entity operations to generate tools
      +     * for.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Action connector_actions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getConnectorActionsOrBuilderList() { + if (connectorActionsBuilder_ != null) { + return connectorActionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(connectorActions_); + } + } + + /** + * + * + *
      +     * Required. The list of connector actions/entity operations to generate tools
      +     * for.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Action connector_actions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.Action.Builder addConnectorActionsBuilder() { + return internalGetConnectorActionsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.Action.getDefaultInstance()); + } + + /** + * + * + *
      +     * Required. The list of connector actions/entity operations to generate tools
      +     * for.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Action connector_actions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.Action.Builder addConnectorActionsBuilder(int index) { + return internalGetConnectorActionsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.Action.getDefaultInstance()); + } + + /** + * + * + *
      +     * Required. The list of connector actions/entity operations to generate tools
      +     * for.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Action connector_actions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getConnectorActionsBuilderList() { + return internalGetConnectorActionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Action, + com.google.cloud.ces.v1.Action.Builder, + com.google.cloud.ces.v1.ActionOrBuilder> + internalGetConnectorActionsFieldBuilder() { + if (connectorActionsBuilder_ == null) { + connectorActionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Action, + com.google.cloud.ces.v1.Action.Builder, + com.google.cloud.ces.v1.ActionOrBuilder>( + connectorActions_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + connectorActions_ = null; + } + return connectorActionsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ConnectorToolset) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ConnectorToolset) + private static final com.google.cloud.ces.v1.ConnectorToolset DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ConnectorToolset(); + } + + public static com.google.cloud.ces.v1.ConnectorToolset getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectorToolset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ConnectorToolset getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConnectorToolsetOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConnectorToolsetOrBuilder.java new file mode 100644 index 000000000000..9c6b62b175df --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConnectorToolsetOrBuilder.java @@ -0,0 +1,195 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/connector_toolset.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ConnectorToolsetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ConnectorToolset) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The full resource name of the referenced Integration Connectors
      +   * Connection.
      +   * Format:
      +   * `projects/{project}/locations/{location}/connections/{connection}`
      +   * 
      + * + * string connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The connection. + */ + java.lang.String getConnection(); + + /** + * + * + *
      +   * Required. The full resource name of the referenced Integration Connectors
      +   * Connection.
      +   * Format:
      +   * `projects/{project}/locations/{location}/connections/{connection}`
      +   * 
      + * + * string connection = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for connection. + */ + com.google.protobuf.ByteString getConnectionBytes(); + + /** + * + * + *
      +   * Optional. Configures how authentication is handled in Integration
      +   * Connectors. By default, an admin authentication is passed in the
      +   * Integration Connectors API requests. You can override it with a different
      +   * end-user authentication config.
      +   * **Note**: The Connection must have authentication override enabled in
      +   * order to specify an EUC configuration here - otherwise, the Toolset
      +   * creation will fail. See:
      +   * https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override
      +   * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig auth_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the authConfig field is set. + */ + boolean hasAuthConfig(); + + /** + * + * + *
      +   * Optional. Configures how authentication is handled in Integration
      +   * Connectors. By default, an admin authentication is passed in the
      +   * Integration Connectors API requests. You can override it with a different
      +   * end-user authentication config.
      +   * **Note**: The Connection must have authentication override enabled in
      +   * order to specify an EUC configuration here - otherwise, the Toolset
      +   * creation will fail. See:
      +   * https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override
      +   * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig auth_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The authConfig. + */ + com.google.cloud.ces.v1.EndUserAuthConfig getAuthConfig(); + + /** + * + * + *
      +   * Optional. Configures how authentication is handled in Integration
      +   * Connectors. By default, an admin authentication is passed in the
      +   * Integration Connectors API requests. You can override it with a different
      +   * end-user authentication config.
      +   * **Note**: The Connection must have authentication override enabled in
      +   * order to specify an EUC configuration here - otherwise, the Toolset
      +   * creation will fail. See:
      +   * https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override
      +   * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig auth_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.EndUserAuthConfigOrBuilder getAuthConfigOrBuilder(); + + /** + * + * + *
      +   * Required. The list of connector actions/entity operations to generate tools
      +   * for.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Action connector_actions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getConnectorActionsList(); + + /** + * + * + *
      +   * Required. The list of connector actions/entity operations to generate tools
      +   * for.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Action connector_actions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.Action getConnectorActions(int index); + + /** + * + * + *
      +   * Required. The list of connector actions/entity operations to generate tools
      +   * for.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Action connector_actions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getConnectorActionsCount(); + + /** + * + * + *
      +   * Required. The list of connector actions/entity operations to generate tools
      +   * for.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Action connector_actions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getConnectorActionsOrBuilderList(); + + /** + * + * + *
      +   * Required. The list of connector actions/entity operations to generate tools
      +   * for.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Action connector_actions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.ActionOrBuilder getConnectorActionsOrBuilder(int index); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConnectorToolsetProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConnectorToolsetProto.java new file mode 100644 index 000000000000..5f731cf957f0 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConnectorToolsetProto.java @@ -0,0 +1,97 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/connector_toolset.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class ConnectorToolsetProto extends com.google.protobuf.GeneratedFile { + private ConnectorToolsetProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ConnectorToolsetProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ConnectorToolset_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ConnectorToolset_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n+google/cloud/ces/v1/connector_toolset." + + "proto\022\023google.cloud.ces.v1\032\037google/api/f" + + "ield_behavior.proto\032\036google/cloud/ces/v1" + + "/auth.proto\032(google/cloud/ces/v1/connect" + + "or_tool.proto\"\252\001\n\020ConnectorToolset\022\027\n\nco" + + "nnection\030\001 \001(\tB\003\340A\002\022@\n\013auth_config\030\002 \001(\013" + + "2&.google.cloud.ces.v1.EndUserAuthConfig" + + "B\003\340A\001\022;\n\021connector_actions\030\003 \003(\0132\033.googl" + + "e.cloud.ces.v1.ActionB\003\340A\002B]\n\027com.google" + + ".cloud.ces.v1B\025ConnectorToolsetProtoP\001Z)" + + "cloud.google.com/go/ces/apiv1/cespb;cesp" + + "bb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.ces.v1.AuthProto.getDescriptor(), + com.google.cloud.ces.v1.ConnectorToolProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_ConnectorToolset_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_ConnectorToolset_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ConnectorToolset_descriptor, + new java.lang.String[] { + "Connection", "AuthConfig", "ConnectorActions", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.ces.v1.AuthProto.getDescriptor(); + com.google.cloud.ces.v1.ConnectorToolProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Conversation.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Conversation.java new file mode 100644 index 000000000000..5e4f95fd5052 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Conversation.java @@ -0,0 +1,6039 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/conversation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * A conversation represents an interaction between an end user and the CES app.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Conversation} + */ +@com.google.protobuf.Generated +public final class Conversation extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.Conversation) + ConversationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Conversation"); + } + + // Use Conversation.newBuilder() to construct. + private Conversation(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Conversation() { + name_ = ""; + turns_ = java.util.Collections.emptyList(); + channelType_ = 0; + source_ = 0; + inputTypes_ = emptyIntList(); + entryAgent_ = ""; + deployment_ = ""; + appVersion_ = ""; + languageCode_ = ""; + messages_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ConversationProto + .internal_static_google_cloud_ces_v1_Conversation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ConversationProto + .internal_static_google_cloud_ces_v1_Conversation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Conversation.class, + com.google.cloud.ces.v1.Conversation.Builder.class); + } + + /** + * + * + *
      +   * The channel type of the conversation.
      +   * 
      + * + * Protobuf enum {@code google.cloud.ces.v1.Conversation.ChannelType} + */ + public enum ChannelType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Unspecified channel type.
      +     * 
      + * + * CHANNEL_TYPE_UNSPECIFIED = 0; + */ + CHANNEL_TYPE_UNSPECIFIED(0), + /** + * + * + *
      +     * The conversation only contains text messages between the end user and the
      +     * agent.
      +     * 
      + * + * TEXT = 1; + */ + TEXT(1), + /** + * + * + *
      +     * The conversation contains audio messages between the end user and the
      +     * agent.
      +     * 
      + * + * AUDIO = 2; + */ + AUDIO(2), + /** + * + * + *
      +     * The conversation multi-modal messages (e.g. image) between the end user
      +     * and the agent.
      +     * 
      + * + * MULTIMODAL = 3; + */ + MULTIMODAL(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ChannelType"); + } + + /** + * + * + *
      +     * Unspecified channel type.
      +     * 
      + * + * CHANNEL_TYPE_UNSPECIFIED = 0; + */ + public static final int CHANNEL_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * The conversation only contains text messages between the end user and the
      +     * agent.
      +     * 
      + * + * TEXT = 1; + */ + public static final int TEXT_VALUE = 1; + + /** + * + * + *
      +     * The conversation contains audio messages between the end user and the
      +     * agent.
      +     * 
      + * + * AUDIO = 2; + */ + public static final int AUDIO_VALUE = 2; + + /** + * + * + *
      +     * The conversation multi-modal messages (e.g. image) between the end user
      +     * and the agent.
      +     * 
      + * + * MULTIMODAL = 3; + */ + public static final int MULTIMODAL_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ChannelType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ChannelType forNumber(int value) { + switch (value) { + case 0: + return CHANNEL_TYPE_UNSPECIFIED; + case 1: + return TEXT; + case 2: + return AUDIO; + case 3: + return MULTIMODAL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ChannelType findValueByNumber(int number) { + return ChannelType.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.Conversation.getDescriptor().getEnumTypes().get(0); + } + + private static final ChannelType[] VALUES = values(); + + public static ChannelType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ChannelType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.Conversation.ChannelType) + } + + /** + * + * + *
      +   * The source of the conversation.
      +   * 
      + * + * Protobuf enum {@code google.cloud.ces.v1.Conversation.Source} + */ + public enum Source implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Unspecified source.
      +     * 
      + * + * SOURCE_UNSPECIFIED = 0; + */ + SOURCE_UNSPECIFIED(0), + /** + * + * + *
      +     * The conversation is from the live end user.
      +     * 
      + * + * LIVE = 1; + */ + LIVE(1), + /** + * + * + *
      +     * The conversation is from the simulator.
      +     * 
      + * + * SIMULATOR = 2; + */ + SIMULATOR(2), + /** + * + * + *
      +     * The conversation is from the evaluation.
      +     * 
      + * + * EVAL = 3; + */ + EVAL(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Source"); + } + + /** + * + * + *
      +     * Unspecified source.
      +     * 
      + * + * SOURCE_UNSPECIFIED = 0; + */ + public static final int SOURCE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * The conversation is from the live end user.
      +     * 
      + * + * LIVE = 1; + */ + public static final int LIVE_VALUE = 1; + + /** + * + * + *
      +     * The conversation is from the simulator.
      +     * 
      + * + * SIMULATOR = 2; + */ + public static final int SIMULATOR_VALUE = 2; + + /** + * + * + *
      +     * The conversation is from the evaluation.
      +     * 
      + * + * EVAL = 3; + */ + public static final int EVAL_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Source valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Source forNumber(int value) { + switch (value) { + case 0: + return SOURCE_UNSPECIFIED; + case 1: + return LIVE; + case 2: + return SIMULATOR; + case 3: + return EVAL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Source findValueByNumber(int number) { + return Source.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.Conversation.getDescriptor().getEnumTypes().get(1); + } + + private static final Source[] VALUES = values(); + + public static Source valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Source(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.Conversation.Source) + } + + /** + * + * + *
      +   * Type of the input message.
      +   * 
      + * + * Protobuf enum {@code google.cloud.ces.v1.Conversation.InputType} + */ + public enum InputType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Unspecified input type.
      +     * 
      + * + * INPUT_TYPE_UNSPECIFIED = 0; + */ + INPUT_TYPE_UNSPECIFIED(0), + /** + * + * + *
      +     * The input message is text.
      +     * 
      + * + * INPUT_TYPE_TEXT = 1; + */ + INPUT_TYPE_TEXT(1), + /** + * + * + *
      +     * The input message is audio.
      +     * 
      + * + * INPUT_TYPE_AUDIO = 2; + */ + INPUT_TYPE_AUDIO(2), + /** + * + * + *
      +     * The input message is image.
      +     * 
      + * + * INPUT_TYPE_IMAGE = 3; + */ + INPUT_TYPE_IMAGE(3), + /** + * + * + *
      +     * The input message is blob file.
      +     * 
      + * + * INPUT_TYPE_BLOB = 4; + */ + INPUT_TYPE_BLOB(4), + /** + * + * + *
      +     * The input message is client function tool response.
      +     * 
      + * + * INPUT_TYPE_TOOL_RESPONSE = 5; + */ + INPUT_TYPE_TOOL_RESPONSE(5), + /** + * + * + *
      +     * The input message are variables.
      +     * 
      + * + * INPUT_TYPE_VARIABLES = 6; + */ + INPUT_TYPE_VARIABLES(6), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InputType"); + } + + /** + * + * + *
      +     * Unspecified input type.
      +     * 
      + * + * INPUT_TYPE_UNSPECIFIED = 0; + */ + public static final int INPUT_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * The input message is text.
      +     * 
      + * + * INPUT_TYPE_TEXT = 1; + */ + public static final int INPUT_TYPE_TEXT_VALUE = 1; + + /** + * + * + *
      +     * The input message is audio.
      +     * 
      + * + * INPUT_TYPE_AUDIO = 2; + */ + public static final int INPUT_TYPE_AUDIO_VALUE = 2; + + /** + * + * + *
      +     * The input message is image.
      +     * 
      + * + * INPUT_TYPE_IMAGE = 3; + */ + public static final int INPUT_TYPE_IMAGE_VALUE = 3; + + /** + * + * + *
      +     * The input message is blob file.
      +     * 
      + * + * INPUT_TYPE_BLOB = 4; + */ + public static final int INPUT_TYPE_BLOB_VALUE = 4; + + /** + * + * + *
      +     * The input message is client function tool response.
      +     * 
      + * + * INPUT_TYPE_TOOL_RESPONSE = 5; + */ + public static final int INPUT_TYPE_TOOL_RESPONSE_VALUE = 5; + + /** + * + * + *
      +     * The input message are variables.
      +     * 
      + * + * INPUT_TYPE_VARIABLES = 6; + */ + public static final int INPUT_TYPE_VARIABLES_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static InputType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static InputType forNumber(int value) { + switch (value) { + case 0: + return INPUT_TYPE_UNSPECIFIED; + case 1: + return INPUT_TYPE_TEXT; + case 2: + return INPUT_TYPE_AUDIO; + case 3: + return INPUT_TYPE_IMAGE; + case 4: + return INPUT_TYPE_BLOB; + case 5: + return INPUT_TYPE_TOOL_RESPONSE; + case 6: + return INPUT_TYPE_VARIABLES; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public InputType findValueByNumber(int number) { + return InputType.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.Conversation.getDescriptor().getEnumTypes().get(2); + } + + private static final InputType[] VALUES = values(); + + public static InputType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private InputType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.Conversation.InputType) + } + + public interface TurnOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.Conversation.Turn) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Optional. List of messages in the conversation turn, including user
      +     * input, agent responses and intermediate events during the processing.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getMessagesList(); + + /** + * + * + *
      +     * Optional. List of messages in the conversation turn, including user
      +     * input, agent responses and intermediate events during the processing.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.Message getMessages(int index); + + /** + * + * + *
      +     * Optional. List of messages in the conversation turn, including user
      +     * input, agent responses and intermediate events during the processing.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getMessagesCount(); + + /** + * + * + *
      +     * Optional. List of messages in the conversation turn, including user
      +     * input, agent responses and intermediate events during the processing.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getMessagesOrBuilderList(); + + /** + * + * + *
      +     * Optional. List of messages in the conversation turn, including user
      +     * input, agent responses and intermediate events during the processing.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.MessageOrBuilder getMessagesOrBuilder(int index); + + /** + * + * + *
      +     * Optional. The root span of the action processing.
      +     * 
      + * + * .google.cloud.ces.v1.Span root_span = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rootSpan field is set. + */ + boolean hasRootSpan(); + + /** + * + * + *
      +     * Optional. The root span of the action processing.
      +     * 
      + * + * .google.cloud.ces.v1.Span root_span = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rootSpan. + */ + com.google.cloud.ces.v1.Span getRootSpan(); + + /** + * + * + *
      +     * Optional. The root span of the action processing.
      +     * 
      + * + * .google.cloud.ces.v1.Span root_span = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.SpanOrBuilder getRootSpanOrBuilder(); + } + + /** + * + * + *
      +   * All information about a single turn in the conversation.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Conversation.Turn} + */ + public static final class Turn extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.Conversation.Turn) + TurnOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Turn"); + } + + // Use Turn.newBuilder() to construct. + private Turn(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Turn() { + messages_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ConversationProto + .internal_static_google_cloud_ces_v1_Conversation_Turn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ConversationProto + .internal_static_google_cloud_ces_v1_Conversation_Turn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Conversation.Turn.class, + com.google.cloud.ces.v1.Conversation.Turn.Builder.class); + } + + private int bitField0_; + public static final int MESSAGES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List messages_; + + /** + * + * + *
      +     * Optional. List of messages in the conversation turn, including user
      +     * input, agent responses and intermediate events during the processing.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getMessagesList() { + return messages_; + } + + /** + * + * + *
      +     * Optional. List of messages in the conversation turn, including user
      +     * input, agent responses and intermediate events during the processing.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getMessagesOrBuilderList() { + return messages_; + } + + /** + * + * + *
      +     * Optional. List of messages in the conversation turn, including user
      +     * input, agent responses and intermediate events during the processing.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getMessagesCount() { + return messages_.size(); + } + + /** + * + * + *
      +     * Optional. List of messages in the conversation turn, including user
      +     * input, agent responses and intermediate events during the processing.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Message getMessages(int index) { + return messages_.get(index); + } + + /** + * + * + *
      +     * Optional. List of messages in the conversation turn, including user
      +     * input, agent responses and intermediate events during the processing.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.MessageOrBuilder getMessagesOrBuilder(int index) { + return messages_.get(index); + } + + public static final int ROOT_SPAN_FIELD_NUMBER = 2; + private com.google.cloud.ces.v1.Span rootSpan_; + + /** + * + * + *
      +     * Optional. The root span of the action processing.
      +     * 
      + * + * .google.cloud.ces.v1.Span root_span = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rootSpan field is set. + */ + @java.lang.Override + public boolean hasRootSpan() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Optional. The root span of the action processing.
      +     * 
      + * + * .google.cloud.ces.v1.Span root_span = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rootSpan. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Span getRootSpan() { + return rootSpan_ == null ? com.google.cloud.ces.v1.Span.getDefaultInstance() : rootSpan_; + } + + /** + * + * + *
      +     * Optional. The root span of the action processing.
      +     * 
      + * + * .google.cloud.ces.v1.Span root_span = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.SpanOrBuilder getRootSpanOrBuilder() { + return rootSpan_ == null ? com.google.cloud.ces.v1.Span.getDefaultInstance() : rootSpan_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < messages_.size(); i++) { + output.writeMessage(1, messages_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getRootSpan()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < messages_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, messages_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRootSpan()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.Conversation.Turn)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.Conversation.Turn other = + (com.google.cloud.ces.v1.Conversation.Turn) obj; + + if (!getMessagesList().equals(other.getMessagesList())) return false; + if (hasRootSpan() != other.hasRootSpan()) return false; + if (hasRootSpan()) { + if (!getRootSpan().equals(other.getRootSpan())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getMessagesCount() > 0) { + hash = (37 * hash) + MESSAGES_FIELD_NUMBER; + hash = (53 * hash) + getMessagesList().hashCode(); + } + if (hasRootSpan()) { + hash = (37 * hash) + ROOT_SPAN_FIELD_NUMBER; + hash = (53 * hash) + getRootSpan().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.Conversation.Turn parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Conversation.Turn parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Conversation.Turn parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Conversation.Turn parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Conversation.Turn parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Conversation.Turn parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Conversation.Turn parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Conversation.Turn parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Conversation.Turn parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Conversation.Turn parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Conversation.Turn parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Conversation.Turn parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.Conversation.Turn prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * All information about a single turn in the conversation.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Conversation.Turn} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.Conversation.Turn) + com.google.cloud.ces.v1.Conversation.TurnOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ConversationProto + .internal_static_google_cloud_ces_v1_Conversation_Turn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ConversationProto + .internal_static_google_cloud_ces_v1_Conversation_Turn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Conversation.Turn.class, + com.google.cloud.ces.v1.Conversation.Turn.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.Conversation.Turn.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMessagesFieldBuilder(); + internalGetRootSpanFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (messagesBuilder_ == null) { + messages_ = java.util.Collections.emptyList(); + } else { + messages_ = null; + messagesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + rootSpan_ = null; + if (rootSpanBuilder_ != null) { + rootSpanBuilder_.dispose(); + rootSpanBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.ConversationProto + .internal_static_google_cloud_ces_v1_Conversation_Turn_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Conversation.Turn getDefaultInstanceForType() { + return com.google.cloud.ces.v1.Conversation.Turn.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.Conversation.Turn build() { + com.google.cloud.ces.v1.Conversation.Turn result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Conversation.Turn buildPartial() { + com.google.cloud.ces.v1.Conversation.Turn result = + new com.google.cloud.ces.v1.Conversation.Turn(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1.Conversation.Turn result) { + if (messagesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + messages_ = java.util.Collections.unmodifiableList(messages_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.messages_ = messages_; + } else { + result.messages_ = messagesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.Conversation.Turn result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rootSpan_ = rootSpanBuilder_ == null ? rootSpan_ : rootSpanBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.Conversation.Turn) { + return mergeFrom((com.google.cloud.ces.v1.Conversation.Turn) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.Conversation.Turn other) { + if (other == com.google.cloud.ces.v1.Conversation.Turn.getDefaultInstance()) return this; + if (messagesBuilder_ == null) { + if (!other.messages_.isEmpty()) { + if (messages_.isEmpty()) { + messages_ = other.messages_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMessagesIsMutable(); + messages_.addAll(other.messages_); + } + onChanged(); + } + } else { + if (!other.messages_.isEmpty()) { + if (messagesBuilder_.isEmpty()) { + messagesBuilder_.dispose(); + messagesBuilder_ = null; + messages_ = other.messages_; + bitField0_ = (bitField0_ & ~0x00000001); + messagesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMessagesFieldBuilder() + : null; + } else { + messagesBuilder_.addAllMessages(other.messages_); + } + } + } + if (other.hasRootSpan()) { + mergeRootSpan(other.getRootSpan()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.ces.v1.Message m = + input.readMessage( + com.google.cloud.ces.v1.Message.parser(), extensionRegistry); + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(m); + } else { + messagesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetRootSpanFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List messages_ = + java.util.Collections.emptyList(); + + private void ensureMessagesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + messages_ = new java.util.ArrayList(messages_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Message, + com.google.cloud.ces.v1.Message.Builder, + com.google.cloud.ces.v1.MessageOrBuilder> + messagesBuilder_; + + /** + * + * + *
      +       * Optional. List of messages in the conversation turn, including user
      +       * input, agent responses and intermediate events during the processing.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getMessagesList() { + if (messagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(messages_); + } else { + return messagesBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +       * Optional. List of messages in the conversation turn, including user
      +       * input, agent responses and intermediate events during the processing.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getMessagesCount() { + if (messagesBuilder_ == null) { + return messages_.size(); + } else { + return messagesBuilder_.getCount(); + } + } + + /** + * + * + *
      +       * Optional. List of messages in the conversation turn, including user
      +       * input, agent responses and intermediate events during the processing.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Message getMessages(int index) { + if (messagesBuilder_ == null) { + return messages_.get(index); + } else { + return messagesBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +       * Optional. List of messages in the conversation turn, including user
      +       * input, agent responses and intermediate events during the processing.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMessages(int index, com.google.cloud.ces.v1.Message value) { + if (messagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.set(index, value); + onChanged(); + } else { + messagesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +       * Optional. List of messages in the conversation turn, including user
      +       * input, agent responses and intermediate events during the processing.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMessages( + int index, com.google.cloud.ces.v1.Message.Builder builderForValue) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.set(index, builderForValue.build()); + onChanged(); + } else { + messagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +       * Optional. List of messages in the conversation turn, including user
      +       * input, agent responses and intermediate events during the processing.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMessages(com.google.cloud.ces.v1.Message value) { + if (messagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.add(value); + onChanged(); + } else { + messagesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +       * Optional. List of messages in the conversation turn, including user
      +       * input, agent responses and intermediate events during the processing.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMessages(int index, com.google.cloud.ces.v1.Message value) { + if (messagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.add(index, value); + onChanged(); + } else { + messagesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +       * Optional. List of messages in the conversation turn, including user
      +       * input, agent responses and intermediate events during the processing.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMessages(com.google.cloud.ces.v1.Message.Builder builderForValue) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(builderForValue.build()); + onChanged(); + } else { + messagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +       * Optional. List of messages in the conversation turn, including user
      +       * input, agent responses and intermediate events during the processing.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMessages( + int index, com.google.cloud.ces.v1.Message.Builder builderForValue) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(index, builderForValue.build()); + onChanged(); + } else { + messagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +       * Optional. List of messages in the conversation turn, including user
      +       * input, agent responses and intermediate events during the processing.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllMessages( + java.lang.Iterable values) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messages_); + onChanged(); + } else { + messagesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +       * Optional. List of messages in the conversation turn, including user
      +       * input, agent responses and intermediate events during the processing.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMessages() { + if (messagesBuilder_ == null) { + messages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + messagesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +       * Optional. List of messages in the conversation turn, including user
      +       * input, agent responses and intermediate events during the processing.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeMessages(int index) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.remove(index); + onChanged(); + } else { + messagesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +       * Optional. List of messages in the conversation turn, including user
      +       * input, agent responses and intermediate events during the processing.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Message.Builder getMessagesBuilder(int index) { + return internalGetMessagesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +       * Optional. List of messages in the conversation turn, including user
      +       * input, agent responses and intermediate events during the processing.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.MessageOrBuilder getMessagesOrBuilder(int index) { + if (messagesBuilder_ == null) { + return messages_.get(index); + } else { + return messagesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +       * Optional. List of messages in the conversation turn, including user
      +       * input, agent responses and intermediate events during the processing.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getMessagesOrBuilderList() { + if (messagesBuilder_ != null) { + return messagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(messages_); + } + } + + /** + * + * + *
      +       * Optional. List of messages in the conversation turn, including user
      +       * input, agent responses and intermediate events during the processing.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Message.Builder addMessagesBuilder() { + return internalGetMessagesFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.Message.getDefaultInstance()); + } + + /** + * + * + *
      +       * Optional. List of messages in the conversation turn, including user
      +       * input, agent responses and intermediate events during the processing.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Message.Builder addMessagesBuilder(int index) { + return internalGetMessagesFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.Message.getDefaultInstance()); + } + + /** + * + * + *
      +       * Optional. List of messages in the conversation turn, including user
      +       * input, agent responses and intermediate events during the processing.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getMessagesBuilderList() { + return internalGetMessagesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Message, + com.google.cloud.ces.v1.Message.Builder, + com.google.cloud.ces.v1.MessageOrBuilder> + internalGetMessagesFieldBuilder() { + if (messagesBuilder_ == null) { + messagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Message, + com.google.cloud.ces.v1.Message.Builder, + com.google.cloud.ces.v1.MessageOrBuilder>( + messages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + messages_ = null; + } + return messagesBuilder_; + } + + private com.google.cloud.ces.v1.Span rootSpan_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Span, + com.google.cloud.ces.v1.Span.Builder, + com.google.cloud.ces.v1.SpanOrBuilder> + rootSpanBuilder_; + + /** + * + * + *
      +       * Optional. The root span of the action processing.
      +       * 
      + * + * .google.cloud.ces.v1.Span root_span = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rootSpan field is set. + */ + public boolean hasRootSpan() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +       * Optional. The root span of the action processing.
      +       * 
      + * + * .google.cloud.ces.v1.Span root_span = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rootSpan. + */ + public com.google.cloud.ces.v1.Span getRootSpan() { + if (rootSpanBuilder_ == null) { + return rootSpan_ == null ? com.google.cloud.ces.v1.Span.getDefaultInstance() : rootSpan_; + } else { + return rootSpanBuilder_.getMessage(); + } + } + + /** + * + * + *
      +       * Optional. The root span of the action processing.
      +       * 
      + * + * .google.cloud.ces.v1.Span root_span = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRootSpan(com.google.cloud.ces.v1.Span value) { + if (rootSpanBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rootSpan_ = value; + } else { + rootSpanBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The root span of the action processing.
      +       * 
      + * + * .google.cloud.ces.v1.Span root_span = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRootSpan(com.google.cloud.ces.v1.Span.Builder builderForValue) { + if (rootSpanBuilder_ == null) { + rootSpan_ = builderForValue.build(); + } else { + rootSpanBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The root span of the action processing.
      +       * 
      + * + * .google.cloud.ces.v1.Span root_span = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRootSpan(com.google.cloud.ces.v1.Span value) { + if (rootSpanBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && rootSpan_ != null + && rootSpan_ != com.google.cloud.ces.v1.Span.getDefaultInstance()) { + getRootSpanBuilder().mergeFrom(value); + } else { + rootSpan_ = value; + } + } else { + rootSpanBuilder_.mergeFrom(value); + } + if (rootSpan_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +       * Optional. The root span of the action processing.
      +       * 
      + * + * .google.cloud.ces.v1.Span root_span = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRootSpan() { + bitField0_ = (bitField0_ & ~0x00000002); + rootSpan_ = null; + if (rootSpanBuilder_ != null) { + rootSpanBuilder_.dispose(); + rootSpanBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The root span of the action processing.
      +       * 
      + * + * .google.cloud.ces.v1.Span root_span = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Span.Builder getRootSpanBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetRootSpanFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Optional. The root span of the action processing.
      +       * 
      + * + * .google.cloud.ces.v1.Span root_span = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.SpanOrBuilder getRootSpanOrBuilder() { + if (rootSpanBuilder_ != null) { + return rootSpanBuilder_.getMessageOrBuilder(); + } else { + return rootSpan_ == null ? com.google.cloud.ces.v1.Span.getDefaultInstance() : rootSpan_; + } + } + + /** + * + * + *
      +       * Optional. The root span of the action processing.
      +       * 
      + * + * .google.cloud.ces.v1.Span root_span = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Span, + com.google.cloud.ces.v1.Span.Builder, + com.google.cloud.ces.v1.SpanOrBuilder> + internalGetRootSpanFieldBuilder() { + if (rootSpanBuilder_ == null) { + rootSpanBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Span, + com.google.cloud.ces.v1.Span.Builder, + com.google.cloud.ces.v1.SpanOrBuilder>( + getRootSpan(), getParentForChildren(), isClean()); + rootSpan_ = null; + } + return rootSpanBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Conversation.Turn) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.Conversation.Turn) + private static final com.google.cloud.ces.v1.Conversation.Turn DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.Conversation.Turn(); + } + + public static com.google.cloud.ces.v1.Conversation.Turn getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Turn parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Conversation.Turn getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Identifier. The unique identifier of the conversation.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Identifier. The unique identifier of the conversation.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int START_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp startTime_; + + /** + * + * + *
      +   * Output only. Timestamp when the conversation was created.
      +   * 
      + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Output only. Timestamp when the conversation was created.
      +   * 
      + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + /** + * + * + *
      +   * Output only. Timestamp when the conversation was created.
      +   * 
      + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp endTime_; + + /** + * + * + *
      +   * Output only. Timestamp when the conversation was completed.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Output only. Timestamp when the conversation was completed.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + /** + * + * + *
      +   * Output only. Timestamp when the conversation was completed.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int TURNS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List turns_; + + /** + * + * + *
      +   * Required. The turns in the conversation.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getTurnsList() { + return turns_; + } + + /** + * + * + *
      +   * Required. The turns in the conversation.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getTurnsOrBuilderList() { + return turns_; + } + + /** + * + * + *
      +   * Required. The turns in the conversation.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getTurnsCount() { + return turns_.size(); + } + + /** + * + * + *
      +   * Required. The turns in the conversation.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Conversation.Turn getTurns(int index) { + return turns_.get(index); + } + + /** + * + * + *
      +   * Required. The turns in the conversation.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Conversation.TurnOrBuilder getTurnsOrBuilder(int index) { + return turns_.get(index); + } + + public static final int TURN_COUNT_FIELD_NUMBER = 7; + private int turnCount_ = 0; + + /** + * + * + *
      +   * Output only. The number of turns in the conversation.
      +   * 
      + * + * int32 turn_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The turnCount. + */ + @java.lang.Override + public int getTurnCount() { + return turnCount_; + } + + public static final int CHANNEL_TYPE_FIELD_NUMBER = 8; + private int channelType_ = 0; + + /** + * + * + *
      +   * DEPRECATED. Please use
      +   * [input_types][google.cloud.ces.v1.Conversation.input_types] instead.
      +   * 
      + * + * .google.cloud.ces.v1.Conversation.ChannelType channel_type = 8 [deprecated = true]; + * + * + * @deprecated google.cloud.ces.v1.Conversation.channel_type is deprecated. See + * google/cloud/ces/v1/conversation.proto;l=126 + * @return The enum numeric value on the wire for channelType. + */ + @java.lang.Override + @java.lang.Deprecated + public int getChannelTypeValue() { + return channelType_; + } + + /** + * + * + *
      +   * DEPRECATED. Please use
      +   * [input_types][google.cloud.ces.v1.Conversation.input_types] instead.
      +   * 
      + * + * .google.cloud.ces.v1.Conversation.ChannelType channel_type = 8 [deprecated = true]; + * + * + * @deprecated google.cloud.ces.v1.Conversation.channel_type is deprecated. See + * google/cloud/ces/v1/conversation.proto;l=126 + * @return The channelType. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.ces.v1.Conversation.ChannelType getChannelType() { + com.google.cloud.ces.v1.Conversation.ChannelType result = + com.google.cloud.ces.v1.Conversation.ChannelType.forNumber(channelType_); + return result == null ? com.google.cloud.ces.v1.Conversation.ChannelType.UNRECOGNIZED : result; + } + + public static final int SOURCE_FIELD_NUMBER = 9; + private int source_ = 0; + + /** + * + * + *
      +   * Output only. Indicate the source of the conversation.
      +   * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for source. + */ + @java.lang.Override + public int getSourceValue() { + return source_; + } + + /** + * + * + *
      +   * Output only. Indicate the source of the conversation.
      +   * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The source. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Conversation.Source getSource() { + com.google.cloud.ces.v1.Conversation.Source result = + com.google.cloud.ces.v1.Conversation.Source.forNumber(source_); + return result == null ? com.google.cloud.ces.v1.Conversation.Source.UNRECOGNIZED : result; + } + + public static final int INPUT_TYPES_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList inputTypes_ = emptyIntList(); + + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.ces.v1.Conversation.InputType> + inputTypes_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.ces.v1.Conversation.InputType>() { + public com.google.cloud.ces.v1.Conversation.InputType convert(int from) { + com.google.cloud.ces.v1.Conversation.InputType result = + com.google.cloud.ces.v1.Conversation.InputType.forNumber(from); + return result == null + ? com.google.cloud.ces.v1.Conversation.InputType.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
      +   * Output only. The input types of the conversation.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.InputType input_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the inputTypes. + */ + @java.lang.Override + public java.util.List getInputTypesList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.ces.v1.Conversation.InputType>(inputTypes_, inputTypes_converter_); + } + + /** + * + * + *
      +   * Output only. The input types of the conversation.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.InputType input_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of inputTypes. + */ + @java.lang.Override + public int getInputTypesCount() { + return inputTypes_.size(); + } + + /** + * + * + *
      +   * Output only. The input types of the conversation.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.InputType input_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The inputTypes at the given index. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Conversation.InputType getInputTypes(int index) { + return inputTypes_converter_.convert(inputTypes_.getInt(index)); + } + + /** + * + * + *
      +   * Output only. The input types of the conversation.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.InputType input_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enum numeric values on the wire for inputTypes. + */ + @java.lang.Override + public java.util.List getInputTypesValueList() { + return inputTypes_; + } + + /** + * + * + *
      +   * Output only. The input types of the conversation.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.InputType input_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of inputTypes at the given index. + */ + @java.lang.Override + public int getInputTypesValue(int index) { + return inputTypes_.getInt(index); + } + + private int inputTypesMemoizedSerializedSize; + + public static final int ENTRY_AGENT_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object entryAgent_ = ""; + + /** + * + * + *
      +   * Output only. The agent that initially handles the conversation. If not
      +   * specified, the conversation is handled by the root agent. Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +   * 
      + * + * + * string entry_agent = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The entryAgent. + */ + @java.lang.Override + public java.lang.String getEntryAgent() { + java.lang.Object ref = entryAgent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entryAgent_ = s; + return s; + } + } + + /** + * + * + *
      +   * Output only. The agent that initially handles the conversation. If not
      +   * specified, the conversation is handled by the root agent. Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +   * 
      + * + * + * string entry_agent = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for entryAgent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntryAgentBytes() { + java.lang.Object ref = entryAgent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entryAgent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYMENT_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployment_ = ""; + + /** + * + * + *
      +   * Output only. The deployment of the app used for processing the
      +   * conversation. Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +   * 
      + * + * + * string deployment = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The deployment. + */ + @java.lang.Override + public java.lang.String getDeployment() { + java.lang.Object ref = deployment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deployment_ = s; + return s; + } + } + + /** + * + * + *
      +   * Output only. The deployment of the app used for processing the
      +   * conversation. Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +   * 
      + * + * + * string deployment = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for deployment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeploymentBytes() { + java.lang.Object ref = deployment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deployment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APP_VERSION_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object appVersion_ = ""; + + /** + * + * + *
      +   * Output only. The version of the app used for processing the conversation.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
      +   * 
      + * + * + * string app_version = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The appVersion. + */ + @java.lang.Override + public java.lang.String getAppVersion() { + java.lang.Object ref = appVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appVersion_ = s; + return s; + } + } + + /** + * + * + *
      +   * Output only. The version of the app used for processing the conversation.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
      +   * 
      + * + * + * string app_version = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppVersionBytes() { + java.lang.Object ref = appVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LANGUAGE_CODE_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; + + /** + * + * + *
      +   * Output only. The language code of the conversation.
      +   * 
      + * + * string language_code = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The languageCode. + */ + @java.lang.Override + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } + } + + /** + * + * + *
      +   * Output only. The language code of the conversation.
      +   * 
      + * + * string language_code = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for languageCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List messages_; + + /** + * + * + *
      +   * Deprecated. Use turns instead.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.List getMessagesList() { + return messages_; + } + + /** + * + * + *
      +   * Deprecated. Use turns instead.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.List + getMessagesOrBuilderList() { + return messages_; + } + + /** + * + * + *
      +   * Deprecated. Use turns instead.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated + public int getMessagesCount() { + return messages_.size(); + } + + /** + * + * + *
      +   * Deprecated. Use turns instead.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.ces.v1.Message getMessages(int index) { + return messages_.get(index); + } + + /** + * + * + *
      +   * Deprecated. Use turns instead.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.ces.v1.MessageOrBuilder getMessagesOrBuilder(int index) { + return messages_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + for (int i = 0; i < messages_.size(); i++) { + output.writeMessage(2, messages_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getEndTime()); + } + for (int i = 0; i < turns_.size(); i++) { + output.writeMessage(6, turns_.get(i)); + } + if (turnCount_ != 0) { + output.writeInt32(7, turnCount_); + } + if (channelType_ + != com.google.cloud.ces.v1.Conversation.ChannelType.CHANNEL_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(8, channelType_); + } + if (source_ != com.google.cloud.ces.v1.Conversation.Source.SOURCE_UNSPECIFIED.getNumber()) { + output.writeEnum(9, source_); + } + if (getInputTypesList().size() > 0) { + output.writeUInt32NoTag(82); + output.writeUInt32NoTag(inputTypesMemoizedSerializedSize); + } + for (int i = 0; i < inputTypes_.size(); i++) { + output.writeEnumNoTag(inputTypes_.getInt(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(entryAgent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, entryAgent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deployment_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, deployment_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appVersion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 13, appVersion_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(languageCode_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 14, languageCode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + for (int i = 0; i < messages_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, messages_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEndTime()); + } + for (int i = 0; i < turns_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, turns_.get(i)); + } + if (turnCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, turnCount_); + } + if (channelType_ + != com.google.cloud.ces.v1.Conversation.ChannelType.CHANNEL_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, channelType_); + } + if (source_ != com.google.cloud.ces.v1.Conversation.Source.SOURCE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, source_); + } + { + int dataSize = 0; + for (int i = 0; i < inputTypes_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(inputTypes_.getInt(i)); + } + size += dataSize; + if (!getInputTypesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + inputTypesMemoizedSerializedSize = dataSize; + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(entryAgent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, entryAgent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deployment_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(12, deployment_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appVersion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(13, appVersion_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(languageCode_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(14, languageCode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.Conversation)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.Conversation other = (com.google.cloud.ces.v1.Conversation) obj; + + if (!getName().equals(other.getName())) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTurnsList().equals(other.getTurnsList())) return false; + if (getTurnCount() != other.getTurnCount()) return false; + if (channelType_ != other.channelType_) return false; + if (source_ != other.source_) return false; + if (!inputTypes_.equals(other.inputTypes_)) return false; + if (!getEntryAgent().equals(other.getEntryAgent())) return false; + if (!getDeployment().equals(other.getDeployment())) return false; + if (!getAppVersion().equals(other.getAppVersion())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getMessagesList().equals(other.getMessagesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + if (getTurnsCount() > 0) { + hash = (37 * hash) + TURNS_FIELD_NUMBER; + hash = (53 * hash) + getTurnsList().hashCode(); + } + hash = (37 * hash) + TURN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getTurnCount(); + hash = (37 * hash) + CHANNEL_TYPE_FIELD_NUMBER; + hash = (53 * hash) + channelType_; + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + source_; + if (getInputTypesCount() > 0) { + hash = (37 * hash) + INPUT_TYPES_FIELD_NUMBER; + hash = (53 * hash) + inputTypes_.hashCode(); + } + hash = (37 * hash) + ENTRY_AGENT_FIELD_NUMBER; + hash = (53 * hash) + getEntryAgent().hashCode(); + hash = (37 * hash) + DEPLOYMENT_FIELD_NUMBER; + hash = (53 * hash) + getDeployment().hashCode(); + hash = (37 * hash) + APP_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getAppVersion().hashCode(); + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); + if (getMessagesCount() > 0) { + hash = (37 * hash) + MESSAGES_FIELD_NUMBER; + hash = (53 * hash) + getMessagesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.Conversation parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Conversation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Conversation parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Conversation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Conversation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Conversation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Conversation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Conversation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Conversation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Conversation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Conversation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Conversation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.Conversation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * A conversation represents an interaction between an end user and the CES app.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Conversation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.Conversation) + com.google.cloud.ces.v1.ConversationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ConversationProto + .internal_static_google_cloud_ces_v1_Conversation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ConversationProto + .internal_static_google_cloud_ces_v1_Conversation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Conversation.class, + com.google.cloud.ces.v1.Conversation.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.Conversation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetStartTimeFieldBuilder(); + internalGetEndTimeFieldBuilder(); + internalGetTurnsFieldBuilder(); + internalGetMessagesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + if (turnsBuilder_ == null) { + turns_ = java.util.Collections.emptyList(); + } else { + turns_ = null; + turnsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + turnCount_ = 0; + channelType_ = 0; + source_ = 0; + inputTypes_ = emptyIntList(); + entryAgent_ = ""; + deployment_ = ""; + appVersion_ = ""; + languageCode_ = ""; + if (messagesBuilder_ == null) { + messages_ = java.util.Collections.emptyList(); + } else { + messages_ = null; + messagesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00001000); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.ConversationProto + .internal_static_google_cloud_ces_v1_Conversation_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Conversation getDefaultInstanceForType() { + return com.google.cloud.ces.v1.Conversation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.Conversation build() { + com.google.cloud.ces.v1.Conversation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Conversation buildPartial() { + com.google.cloud.ces.v1.Conversation result = new com.google.cloud.ces.v1.Conversation(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1.Conversation result) { + if (turnsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + turns_ = java.util.Collections.unmodifiableList(turns_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.turns_ = turns_; + } else { + result.turns_ = turnsBuilder_.build(); + } + if (messagesBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0)) { + messages_ = java.util.Collections.unmodifiableList(messages_); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.messages_ = messages_; + } else { + result.messages_ = messagesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.Conversation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.turnCount_ = turnCount_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.channelType_ = channelType_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.source_ = source_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + inputTypes_.makeImmutable(); + result.inputTypes_ = inputTypes_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.entryAgent_ = entryAgent_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.deployment_ = deployment_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.appVersion_ = appVersion_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.languageCode_ = languageCode_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.Conversation) { + return mergeFrom((com.google.cloud.ces.v1.Conversation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.Conversation other) { + if (other == com.google.cloud.ces.v1.Conversation.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (turnsBuilder_ == null) { + if (!other.turns_.isEmpty()) { + if (turns_.isEmpty()) { + turns_ = other.turns_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureTurnsIsMutable(); + turns_.addAll(other.turns_); + } + onChanged(); + } + } else { + if (!other.turns_.isEmpty()) { + if (turnsBuilder_.isEmpty()) { + turnsBuilder_.dispose(); + turnsBuilder_ = null; + turns_ = other.turns_; + bitField0_ = (bitField0_ & ~0x00000008); + turnsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetTurnsFieldBuilder() + : null; + } else { + turnsBuilder_.addAllMessages(other.turns_); + } + } + } + if (other.getTurnCount() != 0) { + setTurnCount(other.getTurnCount()); + } + if (other.channelType_ != 0) { + setChannelTypeValue(other.getChannelTypeValue()); + } + if (other.source_ != 0) { + setSourceValue(other.getSourceValue()); + } + if (!other.inputTypes_.isEmpty()) { + if (inputTypes_.isEmpty()) { + inputTypes_ = other.inputTypes_; + inputTypes_.makeImmutable(); + bitField0_ |= 0x00000080; + } else { + ensureInputTypesIsMutable(); + inputTypes_.addAll(other.inputTypes_); + } + onChanged(); + } + if (!other.getEntryAgent().isEmpty()) { + entryAgent_ = other.entryAgent_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getDeployment().isEmpty()) { + deployment_ = other.deployment_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (!other.getAppVersion().isEmpty()) { + appVersion_ = other.appVersion_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (!other.getLanguageCode().isEmpty()) { + languageCode_ = other.languageCode_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (messagesBuilder_ == null) { + if (!other.messages_.isEmpty()) { + if (messages_.isEmpty()) { + messages_ = other.messages_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureMessagesIsMutable(); + messages_.addAll(other.messages_); + } + onChanged(); + } + } else { + if (!other.messages_.isEmpty()) { + if (messagesBuilder_.isEmpty()) { + messagesBuilder_.dispose(); + messagesBuilder_ = null; + messages_ = other.messages_; + bitField0_ = (bitField0_ & ~0x00001000); + messagesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMessagesFieldBuilder() + : null; + } else { + messagesBuilder_.addAllMessages(other.messages_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.ces.v1.Message m = + input.readMessage(com.google.cloud.ces.v1.Message.parser(), extensionRegistry); + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(m); + } else { + messagesBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: + { + input.readMessage(internalGetEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 50: + { + com.google.cloud.ces.v1.Conversation.Turn m = + input.readMessage( + com.google.cloud.ces.v1.Conversation.Turn.parser(), extensionRegistry); + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + turns_.add(m); + } else { + turnsBuilder_.addMessage(m); + } + break; + } // case 50 + case 56: + { + turnCount_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 56 + case 64: + { + channelType_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 64 + case 72: + { + source_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 72 + case 80: + { + int tmpRaw = input.readEnum(); + ensureInputTypesIsMutable(); + inputTypes_.addInt(tmpRaw); + break; + } // case 80 + case 82: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureInputTypesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + inputTypes_.addInt(input.readEnum()); + } + input.popLimit(limit); + break; + } // case 82 + case 90: + { + entryAgent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 90 + case 98: + { + deployment_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 98 + case 106: + { + appVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 106 + case 114: + { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 114 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Identifier. The unique identifier of the conversation.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the conversation.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the conversation.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the conversation.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the conversation.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + + /** + * + * + *
      +     * Output only. Timestamp when the conversation was created.
      +     * 
      + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Output only. Timestamp when the conversation was created.
      +     * 
      + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the conversation was created.
      +     * 
      + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the conversation was created.
      +     * 
      + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the conversation was created.
      +     * 
      + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the conversation was created.
      +     * 
      + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000002); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the conversation was created.
      +     * 
      + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetStartTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. Timestamp when the conversation was created.
      +     * 
      + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the conversation was created.
      +     * 
      + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + + /** + * + * + *
      +     * Output only. Timestamp when the conversation was completed.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Output only. Timestamp when the conversation was completed.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the conversation was completed.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the conversation was completed.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the conversation was completed.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the conversation was completed.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000004); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the conversation was completed.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetEndTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. Timestamp when the conversation was completed.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the conversation was completed.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private java.util.List turns_ = + java.util.Collections.emptyList(); + + private void ensureTurnsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + turns_ = new java.util.ArrayList(turns_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Conversation.Turn, + com.google.cloud.ces.v1.Conversation.Turn.Builder, + com.google.cloud.ces.v1.Conversation.TurnOrBuilder> + turnsBuilder_; + + /** + * + * + *
      +     * Required. The turns in the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getTurnsList() { + if (turnsBuilder_ == null) { + return java.util.Collections.unmodifiableList(turns_); + } else { + return turnsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Required. The turns in the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getTurnsCount() { + if (turnsBuilder_ == null) { + return turns_.size(); + } else { + return turnsBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Required. The turns in the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.Conversation.Turn getTurns(int index) { + if (turnsBuilder_ == null) { + return turns_.get(index); + } else { + return turnsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Required. The turns in the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTurns(int index, com.google.cloud.ces.v1.Conversation.Turn value) { + if (turnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTurnsIsMutable(); + turns_.set(index, value); + onChanged(); + } else { + turnsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Required. The turns in the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTurns( + int index, com.google.cloud.ces.v1.Conversation.Turn.Builder builderForValue) { + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + turns_.set(index, builderForValue.build()); + onChanged(); + } else { + turnsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Required. The turns in the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addTurns(com.google.cloud.ces.v1.Conversation.Turn value) { + if (turnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTurnsIsMutable(); + turns_.add(value); + onChanged(); + } else { + turnsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Required. The turns in the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addTurns(int index, com.google.cloud.ces.v1.Conversation.Turn value) { + if (turnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTurnsIsMutable(); + turns_.add(index, value); + onChanged(); + } else { + turnsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Required. The turns in the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addTurns(com.google.cloud.ces.v1.Conversation.Turn.Builder builderForValue) { + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + turns_.add(builderForValue.build()); + onChanged(); + } else { + turnsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Required. The turns in the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addTurns( + int index, com.google.cloud.ces.v1.Conversation.Turn.Builder builderForValue) { + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + turns_.add(index, builderForValue.build()); + onChanged(); + } else { + turnsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Required. The turns in the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllTurns( + java.lang.Iterable values) { + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, turns_); + onChanged(); + } else { + turnsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Required. The turns in the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTurns() { + if (turnsBuilder_ == null) { + turns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + turnsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Required. The turns in the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeTurns(int index) { + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + turns_.remove(index); + onChanged(); + } else { + turnsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Required. The turns in the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.Conversation.Turn.Builder getTurnsBuilder(int index) { + return internalGetTurnsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Required. The turns in the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.Conversation.TurnOrBuilder getTurnsOrBuilder(int index) { + if (turnsBuilder_ == null) { + return turns_.get(index); + } else { + return turnsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Required. The turns in the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getTurnsOrBuilderList() { + if (turnsBuilder_ != null) { + return turnsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(turns_); + } + } + + /** + * + * + *
      +     * Required. The turns in the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.Conversation.Turn.Builder addTurnsBuilder() { + return internalGetTurnsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.Conversation.Turn.getDefaultInstance()); + } + + /** + * + * + *
      +     * Required. The turns in the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.Conversation.Turn.Builder addTurnsBuilder(int index) { + return internalGetTurnsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.Conversation.Turn.getDefaultInstance()); + } + + /** + * + * + *
      +     * Required. The turns in the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getTurnsBuilderList() { + return internalGetTurnsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Conversation.Turn, + com.google.cloud.ces.v1.Conversation.Turn.Builder, + com.google.cloud.ces.v1.Conversation.TurnOrBuilder> + internalGetTurnsFieldBuilder() { + if (turnsBuilder_ == null) { + turnsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Conversation.Turn, + com.google.cloud.ces.v1.Conversation.Turn.Builder, + com.google.cloud.ces.v1.Conversation.TurnOrBuilder>( + turns_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + turns_ = null; + } + return turnsBuilder_; + } + + private int turnCount_; + + /** + * + * + *
      +     * Output only. The number of turns in the conversation.
      +     * 
      + * + * int32 turn_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The turnCount. + */ + @java.lang.Override + public int getTurnCount() { + return turnCount_; + } + + /** + * + * + *
      +     * Output only. The number of turns in the conversation.
      +     * 
      + * + * int32 turn_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The turnCount to set. + * @return This builder for chaining. + */ + public Builder setTurnCount(int value) { + + turnCount_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The number of turns in the conversation.
      +     * 
      + * + * int32 turn_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTurnCount() { + bitField0_ = (bitField0_ & ~0x00000010); + turnCount_ = 0; + onChanged(); + return this; + } + + private int channelType_ = 0; + + /** + * + * + *
      +     * DEPRECATED. Please use
      +     * [input_types][google.cloud.ces.v1.Conversation.input_types] instead.
      +     * 
      + * + * .google.cloud.ces.v1.Conversation.ChannelType channel_type = 8 [deprecated = true]; + * + * + * @deprecated google.cloud.ces.v1.Conversation.channel_type is deprecated. See + * google/cloud/ces/v1/conversation.proto;l=126 + * @return The enum numeric value on the wire for channelType. + */ + @java.lang.Override + @java.lang.Deprecated + public int getChannelTypeValue() { + return channelType_; + } + + /** + * + * + *
      +     * DEPRECATED. Please use
      +     * [input_types][google.cloud.ces.v1.Conversation.input_types] instead.
      +     * 
      + * + * .google.cloud.ces.v1.Conversation.ChannelType channel_type = 8 [deprecated = true]; + * + * + * @deprecated google.cloud.ces.v1.Conversation.channel_type is deprecated. See + * google/cloud/ces/v1/conversation.proto;l=126 + * @param value The enum numeric value on the wire for channelType to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setChannelTypeValue(int value) { + channelType_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * DEPRECATED. Please use
      +     * [input_types][google.cloud.ces.v1.Conversation.input_types] instead.
      +     * 
      + * + * .google.cloud.ces.v1.Conversation.ChannelType channel_type = 8 [deprecated = true]; + * + * + * @deprecated google.cloud.ces.v1.Conversation.channel_type is deprecated. See + * google/cloud/ces/v1/conversation.proto;l=126 + * @return The channelType. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.ces.v1.Conversation.ChannelType getChannelType() { + com.google.cloud.ces.v1.Conversation.ChannelType result = + com.google.cloud.ces.v1.Conversation.ChannelType.forNumber(channelType_); + return result == null + ? com.google.cloud.ces.v1.Conversation.ChannelType.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * DEPRECATED. Please use
      +     * [input_types][google.cloud.ces.v1.Conversation.input_types] instead.
      +     * 
      + * + * .google.cloud.ces.v1.Conversation.ChannelType channel_type = 8 [deprecated = true]; + * + * + * @deprecated google.cloud.ces.v1.Conversation.channel_type is deprecated. See + * google/cloud/ces/v1/conversation.proto;l=126 + * @param value The channelType to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setChannelType(com.google.cloud.ces.v1.Conversation.ChannelType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + channelType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * DEPRECATED. Please use
      +     * [input_types][google.cloud.ces.v1.Conversation.input_types] instead.
      +     * 
      + * + * .google.cloud.ces.v1.Conversation.ChannelType channel_type = 8 [deprecated = true]; + * + * + * @deprecated google.cloud.ces.v1.Conversation.channel_type is deprecated. See + * google/cloud/ces/v1/conversation.proto;l=126 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearChannelType() { + bitField0_ = (bitField0_ & ~0x00000020); + channelType_ = 0; + onChanged(); + return this; + } + + private int source_ = 0; + + /** + * + * + *
      +     * Output only. Indicate the source of the conversation.
      +     * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for source. + */ + @java.lang.Override + public int getSourceValue() { + return source_; + } + + /** + * + * + *
      +     * Output only. Indicate the source of the conversation.
      +     * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for source to set. + * @return This builder for chaining. + */ + public Builder setSourceValue(int value) { + source_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Indicate the source of the conversation.
      +     * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The source. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Conversation.Source getSource() { + com.google.cloud.ces.v1.Conversation.Source result = + com.google.cloud.ces.v1.Conversation.Source.forNumber(source_); + return result == null ? com.google.cloud.ces.v1.Conversation.Source.UNRECOGNIZED : result; + } + + /** + * + * + *
      +     * Output only. Indicate the source of the conversation.
      +     * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The source to set. + * @return This builder for chaining. + */ + public Builder setSource(com.google.cloud.ces.v1.Conversation.Source value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + source_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Indicate the source of the conversation.
      +     * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearSource() { + bitField0_ = (bitField0_ & ~0x00000040); + source_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList inputTypes_ = emptyIntList(); + + private void ensureInputTypesIsMutable() { + if (!inputTypes_.isModifiable()) { + inputTypes_ = makeMutableCopy(inputTypes_); + } + bitField0_ |= 0x00000080; + } + + /** + * + * + *
      +     * Output only. The input types of the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.InputType input_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the inputTypes. + */ + public java.util.List getInputTypesList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.ces.v1.Conversation.InputType>(inputTypes_, inputTypes_converter_); + } + + /** + * + * + *
      +     * Output only. The input types of the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.InputType input_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of inputTypes. + */ + public int getInputTypesCount() { + return inputTypes_.size(); + } + + /** + * + * + *
      +     * Output only. The input types of the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.InputType input_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The inputTypes at the given index. + */ + public com.google.cloud.ces.v1.Conversation.InputType getInputTypes(int index) { + return inputTypes_converter_.convert(inputTypes_.getInt(index)); + } + + /** + * + * + *
      +     * Output only. The input types of the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.InputType input_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The inputTypes to set. + * @return This builder for chaining. + */ + public Builder setInputTypes(int index, com.google.cloud.ces.v1.Conversation.InputType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputTypesIsMutable(); + inputTypes_.setInt(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The input types of the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.InputType input_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The inputTypes to add. + * @return This builder for chaining. + */ + public Builder addInputTypes(com.google.cloud.ces.v1.Conversation.InputType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputTypesIsMutable(); + inputTypes_.addInt(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The input types of the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.InputType input_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The inputTypes to add. + * @return This builder for chaining. + */ + public Builder addAllInputTypes( + java.lang.Iterable values) { + ensureInputTypesIsMutable(); + for (com.google.cloud.ces.v1.Conversation.InputType value : values) { + inputTypes_.addInt(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The input types of the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.InputType input_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearInputTypes() { + inputTypes_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The input types of the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.InputType input_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enum numeric values on the wire for inputTypes. + */ + public java.util.List getInputTypesValueList() { + inputTypes_.makeImmutable(); + return inputTypes_; + } + + /** + * + * + *
      +     * Output only. The input types of the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.InputType input_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of inputTypes at the given index. + */ + public int getInputTypesValue(int index) { + return inputTypes_.getInt(index); + } + + /** + * + * + *
      +     * Output only. The input types of the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.InputType input_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for inputTypes to set. + * @return This builder for chaining. + */ + public Builder setInputTypesValue(int index, int value) { + ensureInputTypesIsMutable(); + inputTypes_.setInt(index, value); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The input types of the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.InputType input_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for inputTypes to add. + * @return This builder for chaining. + */ + public Builder addInputTypesValue(int value) { + ensureInputTypesIsMutable(); + inputTypes_.addInt(value); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The input types of the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.InputType input_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The enum numeric values on the wire for inputTypes to add. + * @return This builder for chaining. + */ + public Builder addAllInputTypesValue(java.lang.Iterable values) { + ensureInputTypesIsMutable(); + for (int value : values) { + inputTypes_.addInt(value); + } + onChanged(); + return this; + } + + private java.lang.Object entryAgent_ = ""; + + /** + * + * + *
      +     * Output only. The agent that initially handles the conversation. If not
      +     * specified, the conversation is handled by the root agent. Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * string entry_agent = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The entryAgent. + */ + public java.lang.String getEntryAgent() { + java.lang.Object ref = entryAgent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entryAgent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Output only. The agent that initially handles the conversation. If not
      +     * specified, the conversation is handled by the root agent. Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * string entry_agent = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for entryAgent. + */ + public com.google.protobuf.ByteString getEntryAgentBytes() { + java.lang.Object ref = entryAgent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entryAgent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Output only. The agent that initially handles the conversation. If not
      +     * specified, the conversation is handled by the root agent. Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * string entry_agent = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The entryAgent to set. + * @return This builder for chaining. + */ + public Builder setEntryAgent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + entryAgent_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The agent that initially handles the conversation. If not
      +     * specified, the conversation is handled by the root agent. Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * string entry_agent = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearEntryAgent() { + entryAgent_ = getDefaultInstance().getEntryAgent(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The agent that initially handles the conversation. If not
      +     * specified, the conversation is handled by the root agent. Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * string entry_agent = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for entryAgent to set. + * @return This builder for chaining. + */ + public Builder setEntryAgentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entryAgent_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object deployment_ = ""; + + /** + * + * + *
      +     * Output only. The deployment of the app used for processing the
      +     * conversation. Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +     * 
      + * + * + * string deployment = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The deployment. + */ + public java.lang.String getDeployment() { + java.lang.Object ref = deployment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deployment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Output only. The deployment of the app used for processing the
      +     * conversation. Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +     * 
      + * + * + * string deployment = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for deployment. + */ + public com.google.protobuf.ByteString getDeploymentBytes() { + java.lang.Object ref = deployment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deployment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Output only. The deployment of the app used for processing the
      +     * conversation. Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +     * 
      + * + * + * string deployment = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The deployment to set. + * @return This builder for chaining. + */ + public Builder setDeployment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deployment_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The deployment of the app used for processing the
      +     * conversation. Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +     * 
      + * + * + * string deployment = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDeployment() { + deployment_ = getDefaultInstance().getDeployment(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The deployment of the app used for processing the
      +     * conversation. Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +     * 
      + * + * + * string deployment = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for deployment to set. + * @return This builder for chaining. + */ + public Builder setDeploymentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deployment_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object appVersion_ = ""; + + /** + * + * + *
      +     * Output only. The version of the app used for processing the conversation.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
      +     * 
      + * + * + * string app_version = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The appVersion. + */ + public java.lang.String getAppVersion() { + java.lang.Object ref = appVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Output only. The version of the app used for processing the conversation.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
      +     * 
      + * + * + * string app_version = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appVersion. + */ + public com.google.protobuf.ByteString getAppVersionBytes() { + java.lang.Object ref = appVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Output only. The version of the app used for processing the conversation.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
      +     * 
      + * + * + * string app_version = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The appVersion to set. + * @return This builder for chaining. + */ + public Builder setAppVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + appVersion_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The version of the app used for processing the conversation.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
      +     * 
      + * + * + * string app_version = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAppVersion() { + appVersion_ = getDefaultInstance().getAppVersion(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The version of the app used for processing the conversation.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
      +     * 
      + * + * + * string app_version = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for appVersion to set. + * @return This builder for chaining. + */ + public Builder setAppVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + appVersion_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private java.lang.Object languageCode_ = ""; + + /** + * + * + *
      +     * Output only. The language code of the conversation.
      +     * 
      + * + * string language_code = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The languageCode. + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Output only. The language code of the conversation.
      +     * 
      + * + * string language_code = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for languageCode. + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Output only. The language code of the conversation.
      +     * 
      + * + * string language_code = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + languageCode_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The language code of the conversation.
      +     * 
      + * + * string language_code = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearLanguageCode() { + languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The language code of the conversation.
      +     * 
      + * + * string language_code = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private java.util.List messages_ = + java.util.Collections.emptyList(); + + private void ensureMessagesIsMutable() { + if (!((bitField0_ & 0x00001000) != 0)) { + messages_ = new java.util.ArrayList(messages_); + bitField0_ |= 0x00001000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Message, + com.google.cloud.ces.v1.Message.Builder, + com.google.cloud.ces.v1.MessageOrBuilder> + messagesBuilder_; + + /** + * + * + *
      +     * Deprecated. Use turns instead.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true]; + */ + @java.lang.Deprecated + public java.util.List getMessagesList() { + if (messagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(messages_); + } else { + return messagesBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Deprecated. Use turns instead.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true]; + */ + @java.lang.Deprecated + public int getMessagesCount() { + if (messagesBuilder_ == null) { + return messages_.size(); + } else { + return messagesBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Deprecated. Use turns instead.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true]; + */ + @java.lang.Deprecated + public com.google.cloud.ces.v1.Message getMessages(int index) { + if (messagesBuilder_ == null) { + return messages_.get(index); + } else { + return messagesBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Deprecated. Use turns instead.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true]; + */ + @java.lang.Deprecated + public Builder setMessages(int index, com.google.cloud.ces.v1.Message value) { + if (messagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.set(index, value); + onChanged(); + } else { + messagesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Deprecated. Use turns instead.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true]; + */ + @java.lang.Deprecated + public Builder setMessages(int index, com.google.cloud.ces.v1.Message.Builder builderForValue) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.set(index, builderForValue.build()); + onChanged(); + } else { + messagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Deprecated. Use turns instead.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true]; + */ + @java.lang.Deprecated + public Builder addMessages(com.google.cloud.ces.v1.Message value) { + if (messagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.add(value); + onChanged(); + } else { + messagesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Deprecated. Use turns instead.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true]; + */ + @java.lang.Deprecated + public Builder addMessages(int index, com.google.cloud.ces.v1.Message value) { + if (messagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.add(index, value); + onChanged(); + } else { + messagesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Deprecated. Use turns instead.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true]; + */ + @java.lang.Deprecated + public Builder addMessages(com.google.cloud.ces.v1.Message.Builder builderForValue) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(builderForValue.build()); + onChanged(); + } else { + messagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Deprecated. Use turns instead.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true]; + */ + @java.lang.Deprecated + public Builder addMessages(int index, com.google.cloud.ces.v1.Message.Builder builderForValue) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(index, builderForValue.build()); + onChanged(); + } else { + messagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Deprecated. Use turns instead.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true]; + */ + @java.lang.Deprecated + public Builder addAllMessages( + java.lang.Iterable values) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messages_); + onChanged(); + } else { + messagesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Deprecated. Use turns instead.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true]; + */ + @java.lang.Deprecated + public Builder clearMessages() { + if (messagesBuilder_ == null) { + messages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + } else { + messagesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Deprecated. Use turns instead.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true]; + */ + @java.lang.Deprecated + public Builder removeMessages(int index) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.remove(index); + onChanged(); + } else { + messagesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Deprecated. Use turns instead.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true]; + */ + @java.lang.Deprecated + public com.google.cloud.ces.v1.Message.Builder getMessagesBuilder(int index) { + return internalGetMessagesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Deprecated. Use turns instead.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true]; + */ + @java.lang.Deprecated + public com.google.cloud.ces.v1.MessageOrBuilder getMessagesOrBuilder(int index) { + if (messagesBuilder_ == null) { + return messages_.get(index); + } else { + return messagesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Deprecated. Use turns instead.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true]; + */ + @java.lang.Deprecated + public java.util.List + getMessagesOrBuilderList() { + if (messagesBuilder_ != null) { + return messagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(messages_); + } + } + + /** + * + * + *
      +     * Deprecated. Use turns instead.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true]; + */ + @java.lang.Deprecated + public com.google.cloud.ces.v1.Message.Builder addMessagesBuilder() { + return internalGetMessagesFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.Message.getDefaultInstance()); + } + + /** + * + * + *
      +     * Deprecated. Use turns instead.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true]; + */ + @java.lang.Deprecated + public com.google.cloud.ces.v1.Message.Builder addMessagesBuilder(int index) { + return internalGetMessagesFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.Message.getDefaultInstance()); + } + + /** + * + * + *
      +     * Deprecated. Use turns instead.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true]; + */ + @java.lang.Deprecated + public java.util.List getMessagesBuilderList() { + return internalGetMessagesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Message, + com.google.cloud.ces.v1.Message.Builder, + com.google.cloud.ces.v1.MessageOrBuilder> + internalGetMessagesFieldBuilder() { + if (messagesBuilder_ == null) { + messagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Message, + com.google.cloud.ces.v1.Message.Builder, + com.google.cloud.ces.v1.MessageOrBuilder>( + messages_, ((bitField0_ & 0x00001000) != 0), getParentForChildren(), isClean()); + messages_ = null; + } + return messagesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Conversation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.Conversation) + private static final com.google.cloud.ces.v1.Conversation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.Conversation(); + } + + public static com.google.cloud.ces.v1.Conversation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Conversation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Conversation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationLoggingSettings.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationLoggingSettings.java new file mode 100644 index 000000000000..268d958d7363 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationLoggingSettings.java @@ -0,0 +1,503 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Settings to describe the conversation logging behaviors for the app.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ConversationLoggingSettings} + */ +@com.google.protobuf.Generated +public final class ConversationLoggingSettings extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ConversationLoggingSettings) + ConversationLoggingSettingsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ConversationLoggingSettings"); + } + + // Use ConversationLoggingSettings.newBuilder() to construct. + private ConversationLoggingSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ConversationLoggingSettings() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_ConversationLoggingSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_ConversationLoggingSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ConversationLoggingSettings.class, + com.google.cloud.ces.v1.ConversationLoggingSettings.Builder.class); + } + + public static final int DISABLE_CONVERSATION_LOGGING_FIELD_NUMBER = 1; + private boolean disableConversationLogging_ = false; + + /** + * + * + *
      +   * Optional. Whether to disable conversation logging for the sessions.
      +   * 
      + * + * bool disable_conversation_logging = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableConversationLogging. + */ + @java.lang.Override + public boolean getDisableConversationLogging() { + return disableConversationLogging_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (disableConversationLogging_ != false) { + output.writeBool(1, disableConversationLogging_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (disableConversationLogging_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, disableConversationLogging_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ConversationLoggingSettings)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ConversationLoggingSettings other = + (com.google.cloud.ces.v1.ConversationLoggingSettings) obj; + + if (getDisableConversationLogging() != other.getDisableConversationLogging()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISABLE_CONVERSATION_LOGGING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableConversationLogging()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ConversationLoggingSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ConversationLoggingSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ConversationLoggingSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ConversationLoggingSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ConversationLoggingSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ConversationLoggingSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ConversationLoggingSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ConversationLoggingSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ConversationLoggingSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ConversationLoggingSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ConversationLoggingSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ConversationLoggingSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ConversationLoggingSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Settings to describe the conversation logging behaviors for the app.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ConversationLoggingSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ConversationLoggingSettings) + com.google.cloud.ces.v1.ConversationLoggingSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_ConversationLoggingSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_ConversationLoggingSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ConversationLoggingSettings.class, + com.google.cloud.ces.v1.ConversationLoggingSettings.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ConversationLoggingSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + disableConversationLogging_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_ConversationLoggingSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ConversationLoggingSettings getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ConversationLoggingSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ConversationLoggingSettings build() { + com.google.cloud.ces.v1.ConversationLoggingSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ConversationLoggingSettings buildPartial() { + com.google.cloud.ces.v1.ConversationLoggingSettings result = + new com.google.cloud.ces.v1.ConversationLoggingSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ConversationLoggingSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.disableConversationLogging_ = disableConversationLogging_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ConversationLoggingSettings) { + return mergeFrom((com.google.cloud.ces.v1.ConversationLoggingSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ConversationLoggingSettings other) { + if (other == com.google.cloud.ces.v1.ConversationLoggingSettings.getDefaultInstance()) + return this; + if (other.getDisableConversationLogging() != false) { + setDisableConversationLogging(other.getDisableConversationLogging()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + disableConversationLogging_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean disableConversationLogging_; + + /** + * + * + *
      +     * Optional. Whether to disable conversation logging for the sessions.
      +     * 
      + * + * bool disable_conversation_logging = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableConversationLogging. + */ + @java.lang.Override + public boolean getDisableConversationLogging() { + return disableConversationLogging_; + } + + /** + * + * + *
      +     * Optional. Whether to disable conversation logging for the sessions.
      +     * 
      + * + * bool disable_conversation_logging = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The disableConversationLogging to set. + * @return This builder for chaining. + */ + public Builder setDisableConversationLogging(boolean value) { + + disableConversationLogging_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Whether to disable conversation logging for the sessions.
      +     * 
      + * + * bool disable_conversation_logging = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisableConversationLogging() { + bitField0_ = (bitField0_ & ~0x00000001); + disableConversationLogging_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ConversationLoggingSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ConversationLoggingSettings) + private static final com.google.cloud.ces.v1.ConversationLoggingSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ConversationLoggingSettings(); + } + + public static com.google.cloud.ces.v1.ConversationLoggingSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversationLoggingSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ConversationLoggingSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationLoggingSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationLoggingSettingsOrBuilder.java new file mode 100644 index 000000000000..b79de2f75988 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationLoggingSettingsOrBuilder.java @@ -0,0 +1,41 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ConversationLoggingSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ConversationLoggingSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. Whether to disable conversation logging for the sessions.
      +   * 
      + * + * bool disable_conversation_logging = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableConversationLogging. + */ + boolean getDisableConversationLogging(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationName.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationName.java new file mode 100644 index 000000000000..75158656a426 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationName.java @@ -0,0 +1,260 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ConversationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_APP_CONVERSATION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String app; + private final String conversation; + + @Deprecated + protected ConversationName() { + project = null; + location = null; + app = null; + conversation = null; + } + + private ConversationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + app = Preconditions.checkNotNull(builder.getApp()); + conversation = Preconditions.checkNotNull(builder.getConversation()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getApp() { + return app; + } + + public String getConversation() { + return conversation; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ConversationName of( + String project, String location, String app, String conversation) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setApp(app) + .setConversation(conversation) + .build(); + } + + public static String format(String project, String location, String app, String conversation) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setApp(app) + .setConversation(conversation) + .build() + .toString(); + } + + public static ConversationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_APP_CONVERSATION.validatedMatch( + formattedString, "ConversationName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("app"), + matchMap.get("conversation")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ConversationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_APP_CONVERSATION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (app != null) { + fieldMapBuilder.put("app", app); + } + if (conversation != null) { + fieldMapBuilder.put("conversation", conversation); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_APP_CONVERSATION.instantiate( + "project", project, "location", location, "app", app, "conversation", conversation); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ConversationName that = ((ConversationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.app, that.app) + && Objects.equals(this.conversation, that.conversation); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(app); + h *= 1000003; + h ^= Objects.hashCode(conversation); + return h; + } + + /** + * Builder for projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}. + */ + public static class Builder { + private String project; + private String location; + private String app; + private String conversation; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getApp() { + return app; + } + + public String getConversation() { + return conversation; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setApp(String app) { + this.app = app; + return this; + } + + public Builder setConversation(String conversation) { + this.conversation = conversation; + return this; + } + + private Builder(ConversationName conversationName) { + this.project = conversationName.project; + this.location = conversationName.location; + this.app = conversationName.app; + this.conversation = conversationName.conversation; + } + + public ConversationName build() { + return new ConversationName(this); + } + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationOrBuilder.java new file mode 100644 index 000000000000..999e2c4453a3 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationOrBuilder.java @@ -0,0 +1,548 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/conversation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ConversationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.Conversation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Identifier. The unique identifier of the conversation.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Identifier. The unique identifier of the conversation.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Output only. Timestamp when the conversation was created.
      +   * 
      + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the conversation was created.
      +   * 
      + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the conversation was created.
      +   * 
      + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
      +   * Output only. Timestamp when the conversation was completed.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the conversation was completed.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the conversation was completed.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
      +   * Required. The turns in the conversation.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getTurnsList(); + + /** + * + * + *
      +   * Required. The turns in the conversation.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.Conversation.Turn getTurns(int index); + + /** + * + * + *
      +   * Required. The turns in the conversation.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getTurnsCount(); + + /** + * + * + *
      +   * Required. The turns in the conversation.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getTurnsOrBuilderList(); + + /** + * + * + *
      +   * Required. The turns in the conversation.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Turn turns = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.Conversation.TurnOrBuilder getTurnsOrBuilder(int index); + + /** + * + * + *
      +   * Output only. The number of turns in the conversation.
      +   * 
      + * + * int32 turn_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The turnCount. + */ + int getTurnCount(); + + /** + * + * + *
      +   * DEPRECATED. Please use
      +   * [input_types][google.cloud.ces.v1.Conversation.input_types] instead.
      +   * 
      + * + * .google.cloud.ces.v1.Conversation.ChannelType channel_type = 8 [deprecated = true]; + * + * + * @deprecated google.cloud.ces.v1.Conversation.channel_type is deprecated. See + * google/cloud/ces/v1/conversation.proto;l=126 + * @return The enum numeric value on the wire for channelType. + */ + @java.lang.Deprecated + int getChannelTypeValue(); + + /** + * + * + *
      +   * DEPRECATED. Please use
      +   * [input_types][google.cloud.ces.v1.Conversation.input_types] instead.
      +   * 
      + * + * .google.cloud.ces.v1.Conversation.ChannelType channel_type = 8 [deprecated = true]; + * + * + * @deprecated google.cloud.ces.v1.Conversation.channel_type is deprecated. See + * google/cloud/ces/v1/conversation.proto;l=126 + * @return The channelType. + */ + @java.lang.Deprecated + com.google.cloud.ces.v1.Conversation.ChannelType getChannelType(); + + /** + * + * + *
      +   * Output only. Indicate the source of the conversation.
      +   * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for source. + */ + int getSourceValue(); + + /** + * + * + *
      +   * Output only. Indicate the source of the conversation.
      +   * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The source. + */ + com.google.cloud.ces.v1.Conversation.Source getSource(); + + /** + * + * + *
      +   * Output only. The input types of the conversation.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.InputType input_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the inputTypes. + */ + java.util.List getInputTypesList(); + + /** + * + * + *
      +   * Output only. The input types of the conversation.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.InputType input_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of inputTypes. + */ + int getInputTypesCount(); + + /** + * + * + *
      +   * Output only. The input types of the conversation.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.InputType input_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The inputTypes at the given index. + */ + com.google.cloud.ces.v1.Conversation.InputType getInputTypes(int index); + + /** + * + * + *
      +   * Output only. The input types of the conversation.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.InputType input_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enum numeric values on the wire for inputTypes. + */ + java.util.List getInputTypesValueList(); + + /** + * + * + *
      +   * Output only. The input types of the conversation.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.InputType input_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of inputTypes at the given index. + */ + int getInputTypesValue(int index); + + /** + * + * + *
      +   * Output only. The agent that initially handles the conversation. If not
      +   * specified, the conversation is handled by the root agent. Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +   * 
      + * + * + * string entry_agent = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The entryAgent. + */ + java.lang.String getEntryAgent(); + + /** + * + * + *
      +   * Output only. The agent that initially handles the conversation. If not
      +   * specified, the conversation is handled by the root agent. Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +   * 
      + * + * + * string entry_agent = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for entryAgent. + */ + com.google.protobuf.ByteString getEntryAgentBytes(); + + /** + * + * + *
      +   * Output only. The deployment of the app used for processing the
      +   * conversation. Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +   * 
      + * + * + * string deployment = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The deployment. + */ + java.lang.String getDeployment(); + + /** + * + * + *
      +   * Output only. The deployment of the app used for processing the
      +   * conversation. Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +   * 
      + * + * + * string deployment = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for deployment. + */ + com.google.protobuf.ByteString getDeploymentBytes(); + + /** + * + * + *
      +   * Output only. The version of the app used for processing the conversation.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
      +   * 
      + * + * + * string app_version = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The appVersion. + */ + java.lang.String getAppVersion(); + + /** + * + * + *
      +   * Output only. The version of the app used for processing the conversation.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
      +   * 
      + * + * + * string app_version = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appVersion. + */ + com.google.protobuf.ByteString getAppVersionBytes(); + + /** + * + * + *
      +   * Output only. The language code of the conversation.
      +   * 
      + * + * string language_code = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The languageCode. + */ + java.lang.String getLanguageCode(); + + /** + * + * + *
      +   * Output only. The language code of the conversation.
      +   * 
      + * + * string language_code = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for languageCode. + */ + com.google.protobuf.ByteString getLanguageCodeBytes(); + + /** + * + * + *
      +   * Deprecated. Use turns instead.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true]; + */ + @java.lang.Deprecated + java.util.List getMessagesList(); + + /** + * + * + *
      +   * Deprecated. Use turns instead.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true]; + */ + @java.lang.Deprecated + com.google.cloud.ces.v1.Message getMessages(int index); + + /** + * + * + *
      +   * Deprecated. Use turns instead.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true]; + */ + @java.lang.Deprecated + int getMessagesCount(); + + /** + * + * + *
      +   * Deprecated. Use turns instead.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true]; + */ + @java.lang.Deprecated + java.util.List getMessagesOrBuilderList(); + + /** + * + * + *
      +   * Deprecated. Use turns instead.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 2 [deprecated = true]; + */ + @java.lang.Deprecated + com.google.cloud.ces.v1.MessageOrBuilder getMessagesOrBuilder(int index); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationProto.java new file mode 100644 index 000000000000..ea0cdaedc58b --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationProto.java @@ -0,0 +1,155 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/conversation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class ConversationProto extends com.google.protobuf.GeneratedFile { + private ConversationProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ConversationProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Conversation_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Conversation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Conversation_Turn_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Conversation_Turn_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n&google/cloud/ces/v1/conversation.proto" + + "\022\023google.cloud.ces.v1\032\037google/api/field_" + + "behavior.proto\032\031google/api/resource.prot" + + "o\032 google/cloud/ces/v1/common.proto\032!goo" + + "gle/cloud/ces/v1/example.proto\032\037google/p" + + "rotobuf/timestamp.proto\"\200\n\n\014Conversation" + + "\022\021\n\004name\030\001 \001(\tB\003\340A\010\0223\n\nstart_time\030\003 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\0221\n\010end_" + + "time\030\004 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003\022:\n\005turns\030\006 \003(\0132&.google.cloud.ces.v1" + + ".Conversation.TurnB\003\340A\002\022\027\n\nturn_count\030\007 " + + "\001(\005B\003\340A\003\022G\n\014channel_type\030\010 \001(\0162-.google." + + "cloud.ces.v1.Conversation.ChannelTypeB\002\030" + + "\001\022=\n\006source\030\t \001(\0162(.google.cloud.ces.v1." + + "Conversation.SourceB\003\340A\003\022E\n\013input_types\030" + + "\n \003(\0162+.google.cloud.ces.v1.Conversation" + + ".InputTypeB\003\340A\003\0225\n\013entry_agent\030\013 \001(\tB \340A" + + "\003\372A\032\n\030ces.googleapis.com/Agent\0229\n\ndeploy" + + "ment\030\014 \001(\tB%\340A\003\372A\037\n\035ces.googleapis.com/D" + + "eployment\022:\n\013app_version\030\r \001(\tB%\340A\003\372A\037\n\035" + + "ces.googleapis.com/AppVersion\022\032\n\rlanguag" + + "e_code\030\016 \001(\tB\003\340A\003\0222\n\010messages\030\002 \003(\0132\034.go" + + "ogle.cloud.ces.v1.MessageB\002\030\001\032n\n\004Turn\0223\n" + + "\010messages\030\001 \003(\0132\034.google.cloud.ces.v1.Me" + + "ssageB\003\340A\001\0221\n\troot_span\030\002 \001(\0132\031.google.c" + + "loud.ces.v1.SpanB\003\340A\001\"P\n\013ChannelType\022\034\n\030" + + "CHANNEL_TYPE_UNSPECIFIED\020\000\022\010\n\004TEXT\020\001\022\t\n\005" + + "AUDIO\020\002\022\016\n\nMULTIMODAL\020\003\"C\n\006Source\022\026\n\022SOU" + + "RCE_UNSPECIFIED\020\000\022\010\n\004LIVE\020\001\022\r\n\tSIMULATOR" + + "\020\002\022\010\n\004EVAL\020\003\"\265\001\n\tInputType\022\032\n\026INPUT_TYPE" + + "_UNSPECIFIED\020\000\022\023\n\017INPUT_TYPE_TEXT\020\001\022\024\n\020I" + + "NPUT_TYPE_AUDIO\020\002\022\024\n\020INPUT_TYPE_IMAGE\020\003\022" + + "\023\n\017INPUT_TYPE_BLOB\020\004\022\034\n\030INPUT_TYPE_TOOL_" + + "RESPONSE\020\005\022\030\n\024INPUT_TYPE_VARIABLES\020\006:\223\001\352" + + "A\217\001\n\037ces.googleapis.com/Conversation\022Opr" + + "ojects/{project}/locations/{location}/ap" + + "ps/{app}/conversations/{conversation}*\rc" + + "onversations2\014conversationBY\n\027com.google" + + ".cloud.ces.v1B\021ConversationProtoP\001Z)clou" + + "d.google.com/go/ces/apiv1/cespb;cespbb\006p" + + "roto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.ces.v1.CommonProto.getDescriptor(), + com.google.cloud.ces.v1.ExampleProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_Conversation_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_Conversation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Conversation_descriptor, + new java.lang.String[] { + "Name", + "StartTime", + "EndTime", + "Turns", + "TurnCount", + "ChannelType", + "Source", + "InputTypes", + "EntryAgent", + "Deployment", + "AppVersion", + "LanguageCode", + "Messages", + }); + internal_static_google_cloud_ces_v1_Conversation_Turn_descriptor = + internal_static_google_cloud_ces_v1_Conversation_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_Conversation_Turn_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Conversation_Turn_descriptor, + new java.lang.String[] { + "Messages", "RootSpan", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.ces.v1.CommonProto.getDescriptor(); + com.google.cloud.ces.v1.ExampleProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateAgentRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateAgentRequest.java new file mode 100644 index 000000000000..e24cb398abd9 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateAgentRequest.java @@ -0,0 +1,1097 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.CreateAgent][google.cloud.ces.v1.AgentService.CreateAgent].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.CreateAgentRequest} + */ +@com.google.protobuf.Generated +public final class CreateAgentRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.CreateAgentRequest) + CreateAgentRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateAgentRequest"); + } + + // Use CreateAgentRequest.newBuilder() to construct. + private CreateAgentRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateAgentRequest() { + parent_ = ""; + agentId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateAgentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateAgentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.CreateAgentRequest.class, + com.google.cloud.ces.v1.CreateAgentRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the app to create an agent in.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the app to create an agent in.
      +   * 
      + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AGENT_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object agentId_ = ""; + + /** + * + * + *
      +   * Optional. The ID to use for the agent, which will become the final
      +   * component of the agent's resource name. If not provided, a unique ID will
      +   * be automatically assigned for the agent.
      +   * 
      + * + * string agent_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agentId. + */ + @java.lang.Override + public java.lang.String getAgentId() { + java.lang.Object ref = agentId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentId_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The ID to use for the agent, which will become the final
      +   * component of the agent's resource name. If not provided, a unique ID will
      +   * be automatically assigned for the agent.
      +   * 
      + * + * string agent_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agentId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAgentIdBytes() { + java.lang.Object ref = agentId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AGENT_FIELD_NUMBER = 3; + private com.google.cloud.ces.v1.Agent agent_; + + /** + * + * + *
      +   * Required. The agent to create.
      +   * 
      + * + * .google.cloud.ces.v1.Agent agent = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the agent field is set. + */ + @java.lang.Override + public boolean hasAgent() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Required. The agent to create.
      +   * 
      + * + * .google.cloud.ces.v1.Agent agent = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The agent. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Agent getAgent() { + return agent_ == null ? com.google.cloud.ces.v1.Agent.getDefaultInstance() : agent_; + } + + /** + * + * + *
      +   * Required. The agent to create.
      +   * 
      + * + * .google.cloud.ces.v1.Agent agent = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.ces.v1.AgentOrBuilder getAgentOrBuilder() { + return agent_ == null ? com.google.cloud.ces.v1.Agent.getDefaultInstance() : agent_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agentId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, agentId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getAgent()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agentId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, agentId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAgent()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.CreateAgentRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.CreateAgentRequest other = + (com.google.cloud.ces.v1.CreateAgentRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getAgentId().equals(other.getAgentId())) return false; + if (hasAgent() != other.hasAgent()) return false; + if (hasAgent()) { + if (!getAgent().equals(other.getAgent())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + AGENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getAgentId().hashCode(); + if (hasAgent()) { + hash = (37 * hash) + AGENT_FIELD_NUMBER; + hash = (53 * hash) + getAgent().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.CreateAgentRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.CreateAgentRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateAgentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.CreateAgentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateAgentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.CreateAgentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateAgentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.CreateAgentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateAgentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.CreateAgentRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateAgentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.CreateAgentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.CreateAgentRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.CreateAgent][google.cloud.ces.v1.AgentService.CreateAgent].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.CreateAgentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.CreateAgentRequest) + com.google.cloud.ces.v1.CreateAgentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateAgentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateAgentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.CreateAgentRequest.class, + com.google.cloud.ces.v1.CreateAgentRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.CreateAgentRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAgentFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + agentId_ = ""; + agent_ = null; + if (agentBuilder_ != null) { + agentBuilder_.dispose(); + agentBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateAgentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.CreateAgentRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.CreateAgentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.CreateAgentRequest build() { + com.google.cloud.ces.v1.CreateAgentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.CreateAgentRequest buildPartial() { + com.google.cloud.ces.v1.CreateAgentRequest result = + new com.google.cloud.ces.v1.CreateAgentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.CreateAgentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.agentId_ = agentId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.agent_ = agentBuilder_ == null ? agent_ : agentBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.CreateAgentRequest) { + return mergeFrom((com.google.cloud.ces.v1.CreateAgentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.CreateAgentRequest other) { + if (other == com.google.cloud.ces.v1.CreateAgentRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAgentId().isEmpty()) { + agentId_ = other.agentId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasAgent()) { + mergeAgent(other.getAgent()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + agentId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetAgentFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the app to create an agent in.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to create an agent in.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to create an agent in.
      +     * 
      + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to create an agent in.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to create an agent in.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object agentId_ = ""; + + /** + * + * + *
      +     * Optional. The ID to use for the agent, which will become the final
      +     * component of the agent's resource name. If not provided, a unique ID will
      +     * be automatically assigned for the agent.
      +     * 
      + * + * string agent_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agentId. + */ + public java.lang.String getAgentId() { + java.lang.Object ref = agentId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The ID to use for the agent, which will become the final
      +     * component of the agent's resource name. If not provided, a unique ID will
      +     * be automatically assigned for the agent.
      +     * 
      + * + * string agent_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agentId. + */ + public com.google.protobuf.ByteString getAgentIdBytes() { + java.lang.Object ref = agentId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The ID to use for the agent, which will become the final
      +     * component of the agent's resource name. If not provided, a unique ID will
      +     * be automatically assigned for the agent.
      +     * 
      + * + * string agent_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The agentId to set. + * @return This builder for chaining. + */ + public Builder setAgentId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + agentId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The ID to use for the agent, which will become the final
      +     * component of the agent's resource name. If not provided, a unique ID will
      +     * be automatically assigned for the agent.
      +     * 
      + * + * string agent_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAgentId() { + agentId_ = getDefaultInstance().getAgentId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The ID to use for the agent, which will become the final
      +     * component of the agent's resource name. If not provided, a unique ID will
      +     * be automatically assigned for the agent.
      +     * 
      + * + * string agent_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for agentId to set. + * @return This builder for chaining. + */ + public Builder setAgentIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + agentId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.Agent agent_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Agent, + com.google.cloud.ces.v1.Agent.Builder, + com.google.cloud.ces.v1.AgentOrBuilder> + agentBuilder_; + + /** + * + * + *
      +     * Required. The agent to create.
      +     * 
      + * + * .google.cloud.ces.v1.Agent agent = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the agent field is set. + */ + public boolean hasAgent() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Required. The agent to create.
      +     * 
      + * + * .google.cloud.ces.v1.Agent agent = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The agent. + */ + public com.google.cloud.ces.v1.Agent getAgent() { + if (agentBuilder_ == null) { + return agent_ == null ? com.google.cloud.ces.v1.Agent.getDefaultInstance() : agent_; + } else { + return agentBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Required. The agent to create.
      +     * 
      + * + * .google.cloud.ces.v1.Agent agent = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setAgent(com.google.cloud.ces.v1.Agent value) { + if (agentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agent_ = value; + } else { + agentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The agent to create.
      +     * 
      + * + * .google.cloud.ces.v1.Agent agent = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setAgent(com.google.cloud.ces.v1.Agent.Builder builderForValue) { + if (agentBuilder_ == null) { + agent_ = builderForValue.build(); + } else { + agentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The agent to create.
      +     * 
      + * + * .google.cloud.ces.v1.Agent agent = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeAgent(com.google.cloud.ces.v1.Agent value) { + if (agentBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && agent_ != null + && agent_ != com.google.cloud.ces.v1.Agent.getDefaultInstance()) { + getAgentBuilder().mergeFrom(value); + } else { + agent_ = value; + } + } else { + agentBuilder_.mergeFrom(value); + } + if (agent_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Required. The agent to create.
      +     * 
      + * + * .google.cloud.ces.v1.Agent agent = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearAgent() { + bitField0_ = (bitField0_ & ~0x00000004); + agent_ = null; + if (agentBuilder_ != null) { + agentBuilder_.dispose(); + agentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The agent to create.
      +     * 
      + * + * .google.cloud.ces.v1.Agent agent = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.ces.v1.Agent.Builder getAgentBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetAgentFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Required. The agent to create.
      +     * 
      + * + * .google.cloud.ces.v1.Agent agent = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.ces.v1.AgentOrBuilder getAgentOrBuilder() { + if (agentBuilder_ != null) { + return agentBuilder_.getMessageOrBuilder(); + } else { + return agent_ == null ? com.google.cloud.ces.v1.Agent.getDefaultInstance() : agent_; + } + } + + /** + * + * + *
      +     * Required. The agent to create.
      +     * 
      + * + * .google.cloud.ces.v1.Agent agent = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Agent, + com.google.cloud.ces.v1.Agent.Builder, + com.google.cloud.ces.v1.AgentOrBuilder> + internalGetAgentFieldBuilder() { + if (agentBuilder_ == null) { + agentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Agent, + com.google.cloud.ces.v1.Agent.Builder, + com.google.cloud.ces.v1.AgentOrBuilder>( + getAgent(), getParentForChildren(), isClean()); + agent_ = null; + } + return agentBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.CreateAgentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.CreateAgentRequest) + private static final com.google.cloud.ces.v1.CreateAgentRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.CreateAgentRequest(); + } + + public static com.google.cloud.ces.v1.CreateAgentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAgentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.CreateAgentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateAgentRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateAgentRequestOrBuilder.java new file mode 100644 index 000000000000..192ee70f8a8b --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateAgentRequestOrBuilder.java @@ -0,0 +1,125 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface CreateAgentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.CreateAgentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the app to create an agent in.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
      +   * Required. The resource name of the app to create an agent in.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Optional. The ID to use for the agent, which will become the final
      +   * component of the agent's resource name. If not provided, a unique ID will
      +   * be automatically assigned for the agent.
      +   * 
      + * + * string agent_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agentId. + */ + java.lang.String getAgentId(); + + /** + * + * + *
      +   * Optional. The ID to use for the agent, which will become the final
      +   * component of the agent's resource name. If not provided, a unique ID will
      +   * be automatically assigned for the agent.
      +   * 
      + * + * string agent_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agentId. + */ + com.google.protobuf.ByteString getAgentIdBytes(); + + /** + * + * + *
      +   * Required. The agent to create.
      +   * 
      + * + * .google.cloud.ces.v1.Agent agent = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the agent field is set. + */ + boolean hasAgent(); + + /** + * + * + *
      +   * Required. The agent to create.
      +   * 
      + * + * .google.cloud.ces.v1.Agent agent = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The agent. + */ + com.google.cloud.ces.v1.Agent getAgent(); + + /** + * + * + *
      +   * Required. The agent to create.
      +   * 
      + * + * .google.cloud.ces.v1.Agent agent = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.ces.v1.AgentOrBuilder getAgentOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateAppRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateAppRequest.java new file mode 100644 index 000000000000..e89febd3ea4a --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateAppRequest.java @@ -0,0 +1,1095 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.CreateApp][google.cloud.ces.v1.AgentService.CreateApp].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.CreateAppRequest} + */ +@com.google.protobuf.Generated +public final class CreateAppRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.CreateAppRequest) + CreateAppRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateAppRequest"); + } + + // Use CreateAppRequest.newBuilder() to construct. + private CreateAppRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateAppRequest() { + parent_ = ""; + appId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateAppRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateAppRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.CreateAppRequest.class, + com.google.cloud.ces.v1.CreateAppRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the location to create an app in.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the location to create an app in.
      +   * 
      + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APP_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object appId_ = ""; + + /** + * + * + *
      +   * Optional. The ID to use for the app, which will become the final component
      +   * of the app's resource name. If not provided, a unique ID will be
      +   * automatically assigned for the app.
      +   * 
      + * + * string app_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appId. + */ + @java.lang.Override + public java.lang.String getAppId() { + java.lang.Object ref = appId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appId_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The ID to use for the app, which will become the final component
      +   * of the app's resource name. If not provided, a unique ID will be
      +   * automatically assigned for the app.
      +   * 
      + * + * string app_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for appId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppIdBytes() { + java.lang.Object ref = appId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APP_FIELD_NUMBER = 3; + private com.google.cloud.ces.v1.App app_; + + /** + * + * + *
      +   * Required. The app to create.
      +   * 
      + * + * .google.cloud.ces.v1.App app = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the app field is set. + */ + @java.lang.Override + public boolean hasApp() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Required. The app to create.
      +   * 
      + * + * .google.cloud.ces.v1.App app = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The app. + */ + @java.lang.Override + public com.google.cloud.ces.v1.App getApp() { + return app_ == null ? com.google.cloud.ces.v1.App.getDefaultInstance() : app_; + } + + /** + * + * + *
      +   * Required. The app to create.
      +   * 
      + * + * .google.cloud.ces.v1.App app = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.ces.v1.AppOrBuilder getAppOrBuilder() { + return app_ == null ? com.google.cloud.ces.v1.App.getDefaultInstance() : app_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, appId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getApp()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, appId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getApp()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.CreateAppRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.CreateAppRequest other = (com.google.cloud.ces.v1.CreateAppRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getAppId().equals(other.getAppId())) return false; + if (hasApp() != other.hasApp()) return false; + if (hasApp()) { + if (!getApp().equals(other.getApp())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + APP_ID_FIELD_NUMBER; + hash = (53 * hash) + getAppId().hashCode(); + if (hasApp()) { + hash = (37 * hash) + APP_FIELD_NUMBER; + hash = (53 * hash) + getApp().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.CreateAppRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.CreateAppRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateAppRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.CreateAppRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateAppRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.CreateAppRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateAppRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.CreateAppRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateAppRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.CreateAppRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateAppRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.CreateAppRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.CreateAppRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.CreateApp][google.cloud.ces.v1.AgentService.CreateApp].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.CreateAppRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.CreateAppRequest) + com.google.cloud.ces.v1.CreateAppRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateAppRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateAppRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.CreateAppRequest.class, + com.google.cloud.ces.v1.CreateAppRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.CreateAppRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAppFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + appId_ = ""; + app_ = null; + if (appBuilder_ != null) { + appBuilder_.dispose(); + appBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateAppRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.CreateAppRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.CreateAppRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.CreateAppRequest build() { + com.google.cloud.ces.v1.CreateAppRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.CreateAppRequest buildPartial() { + com.google.cloud.ces.v1.CreateAppRequest result = + new com.google.cloud.ces.v1.CreateAppRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.CreateAppRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.appId_ = appId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.app_ = appBuilder_ == null ? app_ : appBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.CreateAppRequest) { + return mergeFrom((com.google.cloud.ces.v1.CreateAppRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.CreateAppRequest other) { + if (other == com.google.cloud.ces.v1.CreateAppRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAppId().isEmpty()) { + appId_ = other.appId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasApp()) { + mergeApp(other.getApp()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + appId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetAppFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the location to create an app in.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the location to create an app in.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the location to create an app in.
      +     * 
      + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the location to create an app in.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the location to create an app in.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object appId_ = ""; + + /** + * + * + *
      +     * Optional. The ID to use for the app, which will become the final component
      +     * of the app's resource name. If not provided, a unique ID will be
      +     * automatically assigned for the app.
      +     * 
      + * + * string app_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appId. + */ + public java.lang.String getAppId() { + java.lang.Object ref = appId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The ID to use for the app, which will become the final component
      +     * of the app's resource name. If not provided, a unique ID will be
      +     * automatically assigned for the app.
      +     * 
      + * + * string app_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for appId. + */ + public com.google.protobuf.ByteString getAppIdBytes() { + java.lang.Object ref = appId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The ID to use for the app, which will become the final component
      +     * of the app's resource name. If not provided, a unique ID will be
      +     * automatically assigned for the app.
      +     * 
      + * + * string app_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The appId to set. + * @return This builder for chaining. + */ + public Builder setAppId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + appId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The ID to use for the app, which will become the final component
      +     * of the app's resource name. If not provided, a unique ID will be
      +     * automatically assigned for the app.
      +     * 
      + * + * string app_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAppId() { + appId_ = getDefaultInstance().getAppId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The ID to use for the app, which will become the final component
      +     * of the app's resource name. If not provided, a unique ID will be
      +     * automatically assigned for the app.
      +     * 
      + * + * string app_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for appId to set. + * @return This builder for chaining. + */ + public Builder setAppIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + appId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.App app_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.App, + com.google.cloud.ces.v1.App.Builder, + com.google.cloud.ces.v1.AppOrBuilder> + appBuilder_; + + /** + * + * + *
      +     * Required. The app to create.
      +     * 
      + * + * .google.cloud.ces.v1.App app = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the app field is set. + */ + public boolean hasApp() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Required. The app to create.
      +     * 
      + * + * .google.cloud.ces.v1.App app = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The app. + */ + public com.google.cloud.ces.v1.App getApp() { + if (appBuilder_ == null) { + return app_ == null ? com.google.cloud.ces.v1.App.getDefaultInstance() : app_; + } else { + return appBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Required. The app to create.
      +     * 
      + * + * .google.cloud.ces.v1.App app = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setApp(com.google.cloud.ces.v1.App value) { + if (appBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + app_ = value; + } else { + appBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The app to create.
      +     * 
      + * + * .google.cloud.ces.v1.App app = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setApp(com.google.cloud.ces.v1.App.Builder builderForValue) { + if (appBuilder_ == null) { + app_ = builderForValue.build(); + } else { + appBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The app to create.
      +     * 
      + * + * .google.cloud.ces.v1.App app = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeApp(com.google.cloud.ces.v1.App value) { + if (appBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && app_ != null + && app_ != com.google.cloud.ces.v1.App.getDefaultInstance()) { + getAppBuilder().mergeFrom(value); + } else { + app_ = value; + } + } else { + appBuilder_.mergeFrom(value); + } + if (app_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Required. The app to create.
      +     * 
      + * + * .google.cloud.ces.v1.App app = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearApp() { + bitField0_ = (bitField0_ & ~0x00000004); + app_ = null; + if (appBuilder_ != null) { + appBuilder_.dispose(); + appBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The app to create.
      +     * 
      + * + * .google.cloud.ces.v1.App app = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.ces.v1.App.Builder getAppBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetAppFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Required. The app to create.
      +     * 
      + * + * .google.cloud.ces.v1.App app = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.ces.v1.AppOrBuilder getAppOrBuilder() { + if (appBuilder_ != null) { + return appBuilder_.getMessageOrBuilder(); + } else { + return app_ == null ? com.google.cloud.ces.v1.App.getDefaultInstance() : app_; + } + } + + /** + * + * + *
      +     * Required. The app to create.
      +     * 
      + * + * .google.cloud.ces.v1.App app = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.App, + com.google.cloud.ces.v1.App.Builder, + com.google.cloud.ces.v1.AppOrBuilder> + internalGetAppFieldBuilder() { + if (appBuilder_ == null) { + appBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.App, + com.google.cloud.ces.v1.App.Builder, + com.google.cloud.ces.v1.AppOrBuilder>(getApp(), getParentForChildren(), isClean()); + app_ = null; + } + return appBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.CreateAppRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.CreateAppRequest) + private static final com.google.cloud.ces.v1.CreateAppRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.CreateAppRequest(); + } + + public static com.google.cloud.ces.v1.CreateAppRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAppRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.CreateAppRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateAppRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateAppRequestOrBuilder.java new file mode 100644 index 000000000000..ed783ec3afba --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateAppRequestOrBuilder.java @@ -0,0 +1,125 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface CreateAppRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.CreateAppRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the location to create an app in.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
      +   * Required. The resource name of the location to create an app in.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Optional. The ID to use for the app, which will become the final component
      +   * of the app's resource name. If not provided, a unique ID will be
      +   * automatically assigned for the app.
      +   * 
      + * + * string app_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appId. + */ + java.lang.String getAppId(); + + /** + * + * + *
      +   * Optional. The ID to use for the app, which will become the final component
      +   * of the app's resource name. If not provided, a unique ID will be
      +   * automatically assigned for the app.
      +   * 
      + * + * string app_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for appId. + */ + com.google.protobuf.ByteString getAppIdBytes(); + + /** + * + * + *
      +   * Required. The app to create.
      +   * 
      + * + * .google.cloud.ces.v1.App app = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the app field is set. + */ + boolean hasApp(); + + /** + * + * + *
      +   * Required. The app to create.
      +   * 
      + * + * .google.cloud.ces.v1.App app = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The app. + */ + com.google.cloud.ces.v1.App getApp(); + + /** + * + * + *
      +   * Required. The app to create.
      +   * 
      + * + * .google.cloud.ces.v1.App app = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.ces.v1.AppOrBuilder getAppOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateAppVersionRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateAppVersionRequest.java new file mode 100644 index 000000000000..93927d560465 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateAppVersionRequest.java @@ -0,0 +1,1131 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.CreateAppVersion][google.cloud.ces.v1.AgentService.CreateAppVersion]
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.CreateAppVersionRequest} + */ +@com.google.protobuf.Generated +public final class CreateAppVersionRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.CreateAppVersionRequest) + CreateAppVersionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateAppVersionRequest"); + } + + // Use CreateAppVersionRequest.newBuilder() to construct. + private CreateAppVersionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateAppVersionRequest() { + parent_ = ""; + appVersionId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateAppVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateAppVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.CreateAppVersionRequest.class, + com.google.cloud.ces.v1.CreateAppVersionRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the app to create an app version in.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the app to create an app version in.
      +   * 
      + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APP_VERSION_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object appVersionId_ = ""; + + /** + * + * + *
      +   * Optional. The ID to use for the app version, which will become the final
      +   * component of the app version's resource name. If not provided, a unique ID
      +   * will be automatically assigned for the app version.
      +   * 
      + * + * string app_version_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appVersionId. + */ + @java.lang.Override + public java.lang.String getAppVersionId() { + java.lang.Object ref = appVersionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appVersionId_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The ID to use for the app version, which will become the final
      +   * component of the app version's resource name. If not provided, a unique ID
      +   * will be automatically assigned for the app version.
      +   * 
      + * + * string app_version_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for appVersionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppVersionIdBytes() { + java.lang.Object ref = appVersionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appVersionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APP_VERSION_FIELD_NUMBER = 3; + private com.google.cloud.ces.v1.AppVersion appVersion_; + + /** + * + * + *
      +   * Required. The app version to create.
      +   * 
      + * + * + * .google.cloud.ces.v1.AppVersion app_version = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the appVersion field is set. + */ + @java.lang.Override + public boolean hasAppVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Required. The app version to create.
      +   * 
      + * + * + * .google.cloud.ces.v1.AppVersion app_version = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The appVersion. + */ + @java.lang.Override + public com.google.cloud.ces.v1.AppVersion getAppVersion() { + return appVersion_ == null + ? com.google.cloud.ces.v1.AppVersion.getDefaultInstance() + : appVersion_; + } + + /** + * + * + *
      +   * Required. The app version to create.
      +   * 
      + * + * + * .google.cloud.ces.v1.AppVersion app_version = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.AppVersionOrBuilder getAppVersionOrBuilder() { + return appVersion_ == null + ? com.google.cloud.ces.v1.AppVersion.getDefaultInstance() + : appVersion_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appVersionId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, appVersionId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getAppVersion()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appVersionId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, appVersionId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAppVersion()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.CreateAppVersionRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.CreateAppVersionRequest other = + (com.google.cloud.ces.v1.CreateAppVersionRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getAppVersionId().equals(other.getAppVersionId())) return false; + if (hasAppVersion() != other.hasAppVersion()) return false; + if (hasAppVersion()) { + if (!getAppVersion().equals(other.getAppVersion())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + APP_VERSION_ID_FIELD_NUMBER; + hash = (53 * hash) + getAppVersionId().hashCode(); + if (hasAppVersion()) { + hash = (37 * hash) + APP_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getAppVersion().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.CreateAppVersionRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.CreateAppVersionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateAppVersionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.CreateAppVersionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateAppVersionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.CreateAppVersionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateAppVersionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.CreateAppVersionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateAppVersionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.CreateAppVersionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateAppVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.CreateAppVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.CreateAppVersionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.CreateAppVersion][google.cloud.ces.v1.AgentService.CreateAppVersion]
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.CreateAppVersionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.CreateAppVersionRequest) + com.google.cloud.ces.v1.CreateAppVersionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateAppVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateAppVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.CreateAppVersionRequest.class, + com.google.cloud.ces.v1.CreateAppVersionRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.CreateAppVersionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAppVersionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + appVersionId_ = ""; + appVersion_ = null; + if (appVersionBuilder_ != null) { + appVersionBuilder_.dispose(); + appVersionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateAppVersionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.CreateAppVersionRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.CreateAppVersionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.CreateAppVersionRequest build() { + com.google.cloud.ces.v1.CreateAppVersionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.CreateAppVersionRequest buildPartial() { + com.google.cloud.ces.v1.CreateAppVersionRequest result = + new com.google.cloud.ces.v1.CreateAppVersionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.CreateAppVersionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.appVersionId_ = appVersionId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.appVersion_ = appVersionBuilder_ == null ? appVersion_ : appVersionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.CreateAppVersionRequest) { + return mergeFrom((com.google.cloud.ces.v1.CreateAppVersionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.CreateAppVersionRequest other) { + if (other == com.google.cloud.ces.v1.CreateAppVersionRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAppVersionId().isEmpty()) { + appVersionId_ = other.appVersionId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasAppVersion()) { + mergeAppVersion(other.getAppVersion()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + appVersionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetAppVersionFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the app to create an app version in.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to create an app version in.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to create an app version in.
      +     * 
      + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to create an app version in.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to create an app version in.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object appVersionId_ = ""; + + /** + * + * + *
      +     * Optional. The ID to use for the app version, which will become the final
      +     * component of the app version's resource name. If not provided, a unique ID
      +     * will be automatically assigned for the app version.
      +     * 
      + * + * string app_version_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appVersionId. + */ + public java.lang.String getAppVersionId() { + java.lang.Object ref = appVersionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appVersionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The ID to use for the app version, which will become the final
      +     * component of the app version's resource name. If not provided, a unique ID
      +     * will be automatically assigned for the app version.
      +     * 
      + * + * string app_version_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for appVersionId. + */ + public com.google.protobuf.ByteString getAppVersionIdBytes() { + java.lang.Object ref = appVersionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appVersionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The ID to use for the app version, which will become the final
      +     * component of the app version's resource name. If not provided, a unique ID
      +     * will be automatically assigned for the app version.
      +     * 
      + * + * string app_version_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The appVersionId to set. + * @return This builder for chaining. + */ + public Builder setAppVersionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + appVersionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The ID to use for the app version, which will become the final
      +     * component of the app version's resource name. If not provided, a unique ID
      +     * will be automatically assigned for the app version.
      +     * 
      + * + * string app_version_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAppVersionId() { + appVersionId_ = getDefaultInstance().getAppVersionId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The ID to use for the app version, which will become the final
      +     * component of the app version's resource name. If not provided, a unique ID
      +     * will be automatically assigned for the app version.
      +     * 
      + * + * string app_version_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for appVersionId to set. + * @return This builder for chaining. + */ + public Builder setAppVersionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + appVersionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.AppVersion appVersion_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.AppVersion, + com.google.cloud.ces.v1.AppVersion.Builder, + com.google.cloud.ces.v1.AppVersionOrBuilder> + appVersionBuilder_; + + /** + * + * + *
      +     * Required. The app version to create.
      +     * 
      + * + * + * .google.cloud.ces.v1.AppVersion app_version = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the appVersion field is set. + */ + public boolean hasAppVersion() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Required. The app version to create.
      +     * 
      + * + * + * .google.cloud.ces.v1.AppVersion app_version = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The appVersion. + */ + public com.google.cloud.ces.v1.AppVersion getAppVersion() { + if (appVersionBuilder_ == null) { + return appVersion_ == null + ? com.google.cloud.ces.v1.AppVersion.getDefaultInstance() + : appVersion_; + } else { + return appVersionBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Required. The app version to create.
      +     * 
      + * + * + * .google.cloud.ces.v1.AppVersion app_version = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAppVersion(com.google.cloud.ces.v1.AppVersion value) { + if (appVersionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + appVersion_ = value; + } else { + appVersionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The app version to create.
      +     * 
      + * + * + * .google.cloud.ces.v1.AppVersion app_version = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAppVersion(com.google.cloud.ces.v1.AppVersion.Builder builderForValue) { + if (appVersionBuilder_ == null) { + appVersion_ = builderForValue.build(); + } else { + appVersionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The app version to create.
      +     * 
      + * + * + * .google.cloud.ces.v1.AppVersion app_version = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAppVersion(com.google.cloud.ces.v1.AppVersion value) { + if (appVersionBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && appVersion_ != null + && appVersion_ != com.google.cloud.ces.v1.AppVersion.getDefaultInstance()) { + getAppVersionBuilder().mergeFrom(value); + } else { + appVersion_ = value; + } + } else { + appVersionBuilder_.mergeFrom(value); + } + if (appVersion_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Required. The app version to create.
      +     * 
      + * + * + * .google.cloud.ces.v1.AppVersion app_version = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAppVersion() { + bitField0_ = (bitField0_ & ~0x00000004); + appVersion_ = null; + if (appVersionBuilder_ != null) { + appVersionBuilder_.dispose(); + appVersionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The app version to create.
      +     * 
      + * + * + * .google.cloud.ces.v1.AppVersion app_version = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.AppVersion.Builder getAppVersionBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetAppVersionFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Required. The app version to create.
      +     * 
      + * + * + * .google.cloud.ces.v1.AppVersion app_version = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.AppVersionOrBuilder getAppVersionOrBuilder() { + if (appVersionBuilder_ != null) { + return appVersionBuilder_.getMessageOrBuilder(); + } else { + return appVersion_ == null + ? com.google.cloud.ces.v1.AppVersion.getDefaultInstance() + : appVersion_; + } + } + + /** + * + * + *
      +     * Required. The app version to create.
      +     * 
      + * + * + * .google.cloud.ces.v1.AppVersion app_version = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.AppVersion, + com.google.cloud.ces.v1.AppVersion.Builder, + com.google.cloud.ces.v1.AppVersionOrBuilder> + internalGetAppVersionFieldBuilder() { + if (appVersionBuilder_ == null) { + appVersionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.AppVersion, + com.google.cloud.ces.v1.AppVersion.Builder, + com.google.cloud.ces.v1.AppVersionOrBuilder>( + getAppVersion(), getParentForChildren(), isClean()); + appVersion_ = null; + } + return appVersionBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.CreateAppVersionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.CreateAppVersionRequest) + private static final com.google.cloud.ces.v1.CreateAppVersionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.CreateAppVersionRequest(); + } + + public static com.google.cloud.ces.v1.CreateAppVersionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAppVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.CreateAppVersionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateAppVersionRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateAppVersionRequestOrBuilder.java new file mode 100644 index 000000000000..8a8c58b32653 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateAppVersionRequestOrBuilder.java @@ -0,0 +1,131 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface CreateAppVersionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.CreateAppVersionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the app to create an app version in.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
      +   * Required. The resource name of the app to create an app version in.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Optional. The ID to use for the app version, which will become the final
      +   * component of the app version's resource name. If not provided, a unique ID
      +   * will be automatically assigned for the app version.
      +   * 
      + * + * string app_version_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appVersionId. + */ + java.lang.String getAppVersionId(); + + /** + * + * + *
      +   * Optional. The ID to use for the app version, which will become the final
      +   * component of the app version's resource name. If not provided, a unique ID
      +   * will be automatically assigned for the app version.
      +   * 
      + * + * string app_version_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for appVersionId. + */ + com.google.protobuf.ByteString getAppVersionIdBytes(); + + /** + * + * + *
      +   * Required. The app version to create.
      +   * 
      + * + * + * .google.cloud.ces.v1.AppVersion app_version = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the appVersion field is set. + */ + boolean hasAppVersion(); + + /** + * + * + *
      +   * Required. The app version to create.
      +   * 
      + * + * + * .google.cloud.ces.v1.AppVersion app_version = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The appVersion. + */ + com.google.cloud.ces.v1.AppVersion getAppVersion(); + + /** + * + * + *
      +   * Required. The app version to create.
      +   * 
      + * + * + * .google.cloud.ces.v1.AppVersion app_version = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.AppVersionOrBuilder getAppVersionOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateDeploymentRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateDeploymentRequest.java new file mode 100644 index 000000000000..a1e3f225422f --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateDeploymentRequest.java @@ -0,0 +1,1142 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.CreateDeployment][google.cloud.ces.v1.AgentService.CreateDeployment].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.CreateDeploymentRequest} + */ +@com.google.protobuf.Generated +public final class CreateDeploymentRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.CreateDeploymentRequest) + CreateDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateDeploymentRequest"); + } + + // Use CreateDeploymentRequest.newBuilder() to construct. + private CreateDeploymentRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateDeploymentRequest() { + parent_ = ""; + deploymentId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.CreateDeploymentRequest.class, + com.google.cloud.ces.v1.CreateDeploymentRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
      +   * Required. The parent app.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}`
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The parent app.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}`
      +   * 
      + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYMENT_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object deploymentId_ = ""; + + /** + * + * + *
      +   * Optional. The ID to use for the deployment, which will become the final
      +   * component of the deployment's resource name. If not provided, a unique ID
      +   * will be automatically assigned for the deployment.
      +   * 
      + * + * string deployment_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deploymentId. + */ + @java.lang.Override + public java.lang.String getDeploymentId() { + java.lang.Object ref = deploymentId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentId_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The ID to use for the deployment, which will become the final
      +   * component of the deployment's resource name. If not provided, a unique ID
      +   * will be automatically assigned for the deployment.
      +   * 
      + * + * string deployment_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for deploymentId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeploymentIdBytes() { + java.lang.Object ref = deploymentId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYMENT_FIELD_NUMBER = 2; + private com.google.cloud.ces.v1.Deployment deployment_; + + /** + * + * + *
      +   * Required. The deployment to create.
      +   * 
      + * + * .google.cloud.ces.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the deployment field is set. + */ + @java.lang.Override + public boolean hasDeployment() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Required. The deployment to create.
      +   * 
      + * + * .google.cloud.ces.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deployment. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Deployment getDeployment() { + return deployment_ == null + ? com.google.cloud.ces.v1.Deployment.getDefaultInstance() + : deployment_; + } + + /** + * + * + *
      +   * Required. The deployment to create.
      +   * 
      + * + * .google.cloud.ces.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.DeploymentOrBuilder getDeploymentOrBuilder() { + return deployment_ == null + ? com.google.cloud.ces.v1.Deployment.getDefaultInstance() + : deployment_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getDeployment()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deploymentId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, deploymentId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDeployment()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deploymentId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, deploymentId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.CreateDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.CreateDeploymentRequest other = + (com.google.cloud.ces.v1.CreateDeploymentRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getDeploymentId().equals(other.getDeploymentId())) return false; + if (hasDeployment() != other.hasDeployment()) return false; + if (hasDeployment()) { + if (!getDeployment().equals(other.getDeployment())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + DEPLOYMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentId().hashCode(); + if (hasDeployment()) { + hash = (37 * hash) + DEPLOYMENT_FIELD_NUMBER; + hash = (53 * hash) + getDeployment().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.CreateDeploymentRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.CreateDeploymentRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.CreateDeploymentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateDeploymentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.CreateDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateDeploymentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.CreateDeploymentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateDeploymentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.CreateDeploymentRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.CreateDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.CreateDeploymentRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.CreateDeployment][google.cloud.ces.v1.AgentService.CreateDeployment].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.CreateDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.CreateDeploymentRequest) + com.google.cloud.ces.v1.CreateDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.CreateDeploymentRequest.class, + com.google.cloud.ces.v1.CreateDeploymentRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.CreateDeploymentRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDeploymentFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + deploymentId_ = ""; + deployment_ = null; + if (deploymentBuilder_ != null) { + deploymentBuilder_.dispose(); + deploymentBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.CreateDeploymentRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.CreateDeploymentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.CreateDeploymentRequest build() { + com.google.cloud.ces.v1.CreateDeploymentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.CreateDeploymentRequest buildPartial() { + com.google.cloud.ces.v1.CreateDeploymentRequest result = + new com.google.cloud.ces.v1.CreateDeploymentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.CreateDeploymentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deploymentId_ = deploymentId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.deployment_ = deploymentBuilder_ == null ? deployment_ : deploymentBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.CreateDeploymentRequest) { + return mergeFrom((com.google.cloud.ces.v1.CreateDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.CreateDeploymentRequest other) { + if (other == com.google.cloud.ces.v1.CreateDeploymentRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDeploymentId().isEmpty()) { + deploymentId_ = other.deploymentId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasDeployment()) { + mergeDeployment(other.getDeployment()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetDeploymentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + deploymentId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
      +     * Required. The parent app.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}`
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The parent app.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}`
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The parent app.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}`
      +     * 
      + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The parent app.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}`
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The parent app.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}`
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object deploymentId_ = ""; + + /** + * + * + *
      +     * Optional. The ID to use for the deployment, which will become the final
      +     * component of the deployment's resource name. If not provided, a unique ID
      +     * will be automatically assigned for the deployment.
      +     * 
      + * + * string deployment_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deploymentId. + */ + public java.lang.String getDeploymentId() { + java.lang.Object ref = deploymentId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The ID to use for the deployment, which will become the final
      +     * component of the deployment's resource name. If not provided, a unique ID
      +     * will be automatically assigned for the deployment.
      +     * 
      + * + * string deployment_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for deploymentId. + */ + public com.google.protobuf.ByteString getDeploymentIdBytes() { + java.lang.Object ref = deploymentId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The ID to use for the deployment, which will become the final
      +     * component of the deployment's resource name. If not provided, a unique ID
      +     * will be automatically assigned for the deployment.
      +     * 
      + * + * string deployment_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The deploymentId to set. + * @return This builder for chaining. + */ + public Builder setDeploymentId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deploymentId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The ID to use for the deployment, which will become the final
      +     * component of the deployment's resource name. If not provided, a unique ID
      +     * will be automatically assigned for the deployment.
      +     * 
      + * + * string deployment_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDeploymentId() { + deploymentId_ = getDefaultInstance().getDeploymentId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The ID to use for the deployment, which will become the final
      +     * component of the deployment's resource name. If not provided, a unique ID
      +     * will be automatically assigned for the deployment.
      +     * 
      + * + * string deployment_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for deploymentId to set. + * @return This builder for chaining. + */ + public Builder setDeploymentIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deploymentId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.Deployment deployment_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Deployment, + com.google.cloud.ces.v1.Deployment.Builder, + com.google.cloud.ces.v1.DeploymentOrBuilder> + deploymentBuilder_; + + /** + * + * + *
      +     * Required. The deployment to create.
      +     * 
      + * + * + * .google.cloud.ces.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the deployment field is set. + */ + public boolean hasDeployment() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Required. The deployment to create.
      +     * 
      + * + * + * .google.cloud.ces.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deployment. + */ + public com.google.cloud.ces.v1.Deployment getDeployment() { + if (deploymentBuilder_ == null) { + return deployment_ == null + ? com.google.cloud.ces.v1.Deployment.getDefaultInstance() + : deployment_; + } else { + return deploymentBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Required. The deployment to create.
      +     * 
      + * + * + * .google.cloud.ces.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDeployment(com.google.cloud.ces.v1.Deployment value) { + if (deploymentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deployment_ = value; + } else { + deploymentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The deployment to create.
      +     * 
      + * + * + * .google.cloud.ces.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDeployment(com.google.cloud.ces.v1.Deployment.Builder builderForValue) { + if (deploymentBuilder_ == null) { + deployment_ = builderForValue.build(); + } else { + deploymentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The deployment to create.
      +     * 
      + * + * + * .google.cloud.ces.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDeployment(com.google.cloud.ces.v1.Deployment value) { + if (deploymentBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && deployment_ != null + && deployment_ != com.google.cloud.ces.v1.Deployment.getDefaultInstance()) { + getDeploymentBuilder().mergeFrom(value); + } else { + deployment_ = value; + } + } else { + deploymentBuilder_.mergeFrom(value); + } + if (deployment_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Required. The deployment to create.
      +     * 
      + * + * + * .google.cloud.ces.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDeployment() { + bitField0_ = (bitField0_ & ~0x00000004); + deployment_ = null; + if (deploymentBuilder_ != null) { + deploymentBuilder_.dispose(); + deploymentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The deployment to create.
      +     * 
      + * + * + * .google.cloud.ces.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.Deployment.Builder getDeploymentBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetDeploymentFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Required. The deployment to create.
      +     * 
      + * + * + * .google.cloud.ces.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.DeploymentOrBuilder getDeploymentOrBuilder() { + if (deploymentBuilder_ != null) { + return deploymentBuilder_.getMessageOrBuilder(); + } else { + return deployment_ == null + ? com.google.cloud.ces.v1.Deployment.getDefaultInstance() + : deployment_; + } + } + + /** + * + * + *
      +     * Required. The deployment to create.
      +     * 
      + * + * + * .google.cloud.ces.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Deployment, + com.google.cloud.ces.v1.Deployment.Builder, + com.google.cloud.ces.v1.DeploymentOrBuilder> + internalGetDeploymentFieldBuilder() { + if (deploymentBuilder_ == null) { + deploymentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Deployment, + com.google.cloud.ces.v1.Deployment.Builder, + com.google.cloud.ces.v1.DeploymentOrBuilder>( + getDeployment(), getParentForChildren(), isClean()); + deployment_ = null; + } + return deploymentBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.CreateDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.CreateDeploymentRequest) + private static final com.google.cloud.ces.v1.CreateDeploymentRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.CreateDeploymentRequest(); + } + + public static com.google.cloud.ces.v1.CreateDeploymentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDeploymentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.CreateDeploymentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateDeploymentRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateDeploymentRequestOrBuilder.java new file mode 100644 index 000000000000..6d7e584fc20e --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateDeploymentRequestOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface CreateDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.CreateDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The parent app.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}`
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
      +   * Required. The parent app.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}`
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Optional. The ID to use for the deployment, which will become the final
      +   * component of the deployment's resource name. If not provided, a unique ID
      +   * will be automatically assigned for the deployment.
      +   * 
      + * + * string deployment_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deploymentId. + */ + java.lang.String getDeploymentId(); + + /** + * + * + *
      +   * Optional. The ID to use for the deployment, which will become the final
      +   * component of the deployment's resource name. If not provided, a unique ID
      +   * will be automatically assigned for the deployment.
      +   * 
      + * + * string deployment_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for deploymentId. + */ + com.google.protobuf.ByteString getDeploymentIdBytes(); + + /** + * + * + *
      +   * Required. The deployment to create.
      +   * 
      + * + * .google.cloud.ces.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the deployment field is set. + */ + boolean hasDeployment(); + + /** + * + * + *
      +   * Required. The deployment to create.
      +   * 
      + * + * .google.cloud.ces.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deployment. + */ + com.google.cloud.ces.v1.Deployment getDeployment(); + + /** + * + * + *
      +   * Required. The deployment to create.
      +   * 
      + * + * .google.cloud.ces.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.DeploymentOrBuilder getDeploymentOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateExampleRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateExampleRequest.java new file mode 100644 index 000000000000..5b922f48a0f1 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateExampleRequest.java @@ -0,0 +1,1109 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.CreateExample][google.cloud.ces.v1.AgentService.CreateExample].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.CreateExampleRequest} + */ +@com.google.protobuf.Generated +public final class CreateExampleRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.CreateExampleRequest) + CreateExampleRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateExampleRequest"); + } + + // Use CreateExampleRequest.newBuilder() to construct. + private CreateExampleRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateExampleRequest() { + parent_ = ""; + exampleId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateExampleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateExampleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.CreateExampleRequest.class, + com.google.cloud.ces.v1.CreateExampleRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the app to create an example in.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the app to create an example in.
      +   * 
      + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXAMPLE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object exampleId_ = ""; + + /** + * + * + *
      +   * Optional. The ID to use for the example, which will become the final
      +   * component of the example's resource name. If not provided, a unique ID will
      +   * be automatically assigned for the example.
      +   * 
      + * + * string example_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The exampleId. + */ + @java.lang.Override + public java.lang.String getExampleId() { + java.lang.Object ref = exampleId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + exampleId_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The ID to use for the example, which will become the final
      +   * component of the example's resource name. If not provided, a unique ID will
      +   * be automatically assigned for the example.
      +   * 
      + * + * string example_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for exampleId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExampleIdBytes() { + java.lang.Object ref = exampleId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + exampleId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXAMPLE_FIELD_NUMBER = 3; + private com.google.cloud.ces.v1.Example example_; + + /** + * + * + *
      +   * Required. The example to create.
      +   * 
      + * + * .google.cloud.ces.v1.Example example = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the example field is set. + */ + @java.lang.Override + public boolean hasExample() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Required. The example to create.
      +   * 
      + * + * .google.cloud.ces.v1.Example example = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The example. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Example getExample() { + return example_ == null ? com.google.cloud.ces.v1.Example.getDefaultInstance() : example_; + } + + /** + * + * + *
      +   * Required. The example to create.
      +   * 
      + * + * .google.cloud.ces.v1.Example example = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ExampleOrBuilder getExampleOrBuilder() { + return example_ == null ? com.google.cloud.ces.v1.Example.getDefaultInstance() : example_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(exampleId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, exampleId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getExample()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(exampleId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, exampleId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExample()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.CreateExampleRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.CreateExampleRequest other = + (com.google.cloud.ces.v1.CreateExampleRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getExampleId().equals(other.getExampleId())) return false; + if (hasExample() != other.hasExample()) return false; + if (hasExample()) { + if (!getExample().equals(other.getExample())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + EXAMPLE_ID_FIELD_NUMBER; + hash = (53 * hash) + getExampleId().hashCode(); + if (hasExample()) { + hash = (37 * hash) + EXAMPLE_FIELD_NUMBER; + hash = (53 * hash) + getExample().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.CreateExampleRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.CreateExampleRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateExampleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.CreateExampleRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateExampleRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.CreateExampleRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateExampleRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.CreateExampleRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateExampleRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.CreateExampleRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateExampleRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.CreateExampleRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.CreateExampleRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.CreateExample][google.cloud.ces.v1.AgentService.CreateExample].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.CreateExampleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.CreateExampleRequest) + com.google.cloud.ces.v1.CreateExampleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateExampleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateExampleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.CreateExampleRequest.class, + com.google.cloud.ces.v1.CreateExampleRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.CreateExampleRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetExampleFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + exampleId_ = ""; + example_ = null; + if (exampleBuilder_ != null) { + exampleBuilder_.dispose(); + exampleBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateExampleRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.CreateExampleRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.CreateExampleRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.CreateExampleRequest build() { + com.google.cloud.ces.v1.CreateExampleRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.CreateExampleRequest buildPartial() { + com.google.cloud.ces.v1.CreateExampleRequest result = + new com.google.cloud.ces.v1.CreateExampleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.CreateExampleRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.exampleId_ = exampleId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.example_ = exampleBuilder_ == null ? example_ : exampleBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.CreateExampleRequest) { + return mergeFrom((com.google.cloud.ces.v1.CreateExampleRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.CreateExampleRequest other) { + if (other == com.google.cloud.ces.v1.CreateExampleRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getExampleId().isEmpty()) { + exampleId_ = other.exampleId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasExample()) { + mergeExample(other.getExample()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + exampleId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetExampleFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the app to create an example in.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to create an example in.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to create an example in.
      +     * 
      + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to create an example in.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to create an example in.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object exampleId_ = ""; + + /** + * + * + *
      +     * Optional. The ID to use for the example, which will become the final
      +     * component of the example's resource name. If not provided, a unique ID will
      +     * be automatically assigned for the example.
      +     * 
      + * + * string example_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The exampleId. + */ + public java.lang.String getExampleId() { + java.lang.Object ref = exampleId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + exampleId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The ID to use for the example, which will become the final
      +     * component of the example's resource name. If not provided, a unique ID will
      +     * be automatically assigned for the example.
      +     * 
      + * + * string example_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for exampleId. + */ + public com.google.protobuf.ByteString getExampleIdBytes() { + java.lang.Object ref = exampleId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + exampleId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The ID to use for the example, which will become the final
      +     * component of the example's resource name. If not provided, a unique ID will
      +     * be automatically assigned for the example.
      +     * 
      + * + * string example_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The exampleId to set. + * @return This builder for chaining. + */ + public Builder setExampleId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + exampleId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The ID to use for the example, which will become the final
      +     * component of the example's resource name. If not provided, a unique ID will
      +     * be automatically assigned for the example.
      +     * 
      + * + * string example_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearExampleId() { + exampleId_ = getDefaultInstance().getExampleId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The ID to use for the example, which will become the final
      +     * component of the example's resource name. If not provided, a unique ID will
      +     * be automatically assigned for the example.
      +     * 
      + * + * string example_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for exampleId to set. + * @return This builder for chaining. + */ + public Builder setExampleIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + exampleId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.Example example_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Example, + com.google.cloud.ces.v1.Example.Builder, + com.google.cloud.ces.v1.ExampleOrBuilder> + exampleBuilder_; + + /** + * + * + *
      +     * Required. The example to create.
      +     * 
      + * + * .google.cloud.ces.v1.Example example = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the example field is set. + */ + public boolean hasExample() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Required. The example to create.
      +     * 
      + * + * .google.cloud.ces.v1.Example example = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The example. + */ + public com.google.cloud.ces.v1.Example getExample() { + if (exampleBuilder_ == null) { + return example_ == null ? com.google.cloud.ces.v1.Example.getDefaultInstance() : example_; + } else { + return exampleBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Required. The example to create.
      +     * 
      + * + * .google.cloud.ces.v1.Example example = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExample(com.google.cloud.ces.v1.Example value) { + if (exampleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + example_ = value; + } else { + exampleBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The example to create.
      +     * 
      + * + * .google.cloud.ces.v1.Example example = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExample(com.google.cloud.ces.v1.Example.Builder builderForValue) { + if (exampleBuilder_ == null) { + example_ = builderForValue.build(); + } else { + exampleBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The example to create.
      +     * 
      + * + * .google.cloud.ces.v1.Example example = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeExample(com.google.cloud.ces.v1.Example value) { + if (exampleBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && example_ != null + && example_ != com.google.cloud.ces.v1.Example.getDefaultInstance()) { + getExampleBuilder().mergeFrom(value); + } else { + example_ = value; + } + } else { + exampleBuilder_.mergeFrom(value); + } + if (example_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Required. The example to create.
      +     * 
      + * + * .google.cloud.ces.v1.Example example = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearExample() { + bitField0_ = (bitField0_ & ~0x00000004); + example_ = null; + if (exampleBuilder_ != null) { + exampleBuilder_.dispose(); + exampleBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The example to create.
      +     * 
      + * + * .google.cloud.ces.v1.Example example = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.Example.Builder getExampleBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetExampleFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Required. The example to create.
      +     * 
      + * + * .google.cloud.ces.v1.Example example = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.ExampleOrBuilder getExampleOrBuilder() { + if (exampleBuilder_ != null) { + return exampleBuilder_.getMessageOrBuilder(); + } else { + return example_ == null ? com.google.cloud.ces.v1.Example.getDefaultInstance() : example_; + } + } + + /** + * + * + *
      +     * Required. The example to create.
      +     * 
      + * + * .google.cloud.ces.v1.Example example = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Example, + com.google.cloud.ces.v1.Example.Builder, + com.google.cloud.ces.v1.ExampleOrBuilder> + internalGetExampleFieldBuilder() { + if (exampleBuilder_ == null) { + exampleBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Example, + com.google.cloud.ces.v1.Example.Builder, + com.google.cloud.ces.v1.ExampleOrBuilder>( + getExample(), getParentForChildren(), isClean()); + example_ = null; + } + return exampleBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.CreateExampleRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.CreateExampleRequest) + private static final com.google.cloud.ces.v1.CreateExampleRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.CreateExampleRequest(); + } + + public static com.google.cloud.ces.v1.CreateExampleRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateExampleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.CreateExampleRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateExampleRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateExampleRequestOrBuilder.java new file mode 100644 index 000000000000..54baf5e5377f --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateExampleRequestOrBuilder.java @@ -0,0 +1,128 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface CreateExampleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.CreateExampleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the app to create an example in.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
      +   * Required. The resource name of the app to create an example in.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Optional. The ID to use for the example, which will become the final
      +   * component of the example's resource name. If not provided, a unique ID will
      +   * be automatically assigned for the example.
      +   * 
      + * + * string example_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The exampleId. + */ + java.lang.String getExampleId(); + + /** + * + * + *
      +   * Optional. The ID to use for the example, which will become the final
      +   * component of the example's resource name. If not provided, a unique ID will
      +   * be automatically assigned for the example.
      +   * 
      + * + * string example_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for exampleId. + */ + com.google.protobuf.ByteString getExampleIdBytes(); + + /** + * + * + *
      +   * Required. The example to create.
      +   * 
      + * + * .google.cloud.ces.v1.Example example = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the example field is set. + */ + boolean hasExample(); + + /** + * + * + *
      +   * Required. The example to create.
      +   * 
      + * + * .google.cloud.ces.v1.Example example = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The example. + */ + com.google.cloud.ces.v1.Example getExample(); + + /** + * + * + *
      +   * Required. The example to create.
      +   * 
      + * + * .google.cloud.ces.v1.Example example = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.ExampleOrBuilder getExampleOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateGuardrailRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateGuardrailRequest.java new file mode 100644 index 000000000000..4116ccc5f5a9 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateGuardrailRequest.java @@ -0,0 +1,1114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.CreateGuardrail][google.cloud.ces.v1.AgentService.CreateGuardrail].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.CreateGuardrailRequest} + */ +@com.google.protobuf.Generated +public final class CreateGuardrailRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.CreateGuardrailRequest) + CreateGuardrailRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateGuardrailRequest"); + } + + // Use CreateGuardrailRequest.newBuilder() to construct. + private CreateGuardrailRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateGuardrailRequest() { + parent_ = ""; + guardrailId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateGuardrailRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateGuardrailRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.CreateGuardrailRequest.class, + com.google.cloud.ces.v1.CreateGuardrailRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the app to create a guardrail in.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the app to create a guardrail in.
      +   * 
      + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GUARDRAIL_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object guardrailId_ = ""; + + /** + * + * + *
      +   * Optional. The ID to use for the guardrail, which will become the final
      +   * component of the guardrail's resource name. If not provided, a unique ID
      +   * will be automatically assigned for the guardrail.
      +   * 
      + * + * string guardrail_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The guardrailId. + */ + @java.lang.Override + public java.lang.String getGuardrailId() { + java.lang.Object ref = guardrailId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + guardrailId_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The ID to use for the guardrail, which will become the final
      +   * component of the guardrail's resource name. If not provided, a unique ID
      +   * will be automatically assigned for the guardrail.
      +   * 
      + * + * string guardrail_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for guardrailId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGuardrailIdBytes() { + java.lang.Object ref = guardrailId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + guardrailId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GUARDRAIL_FIELD_NUMBER = 3; + private com.google.cloud.ces.v1.Guardrail guardrail_; + + /** + * + * + *
      +   * Required. The guardrail to create.
      +   * 
      + * + * .google.cloud.ces.v1.Guardrail guardrail = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the guardrail field is set. + */ + @java.lang.Override + public boolean hasGuardrail() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Required. The guardrail to create.
      +   * 
      + * + * .google.cloud.ces.v1.Guardrail guardrail = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The guardrail. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail getGuardrail() { + return guardrail_ == null ? com.google.cloud.ces.v1.Guardrail.getDefaultInstance() : guardrail_; + } + + /** + * + * + *
      +   * Required. The guardrail to create.
      +   * 
      + * + * .google.cloud.ces.v1.Guardrail guardrail = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.GuardrailOrBuilder getGuardrailOrBuilder() { + return guardrail_ == null ? com.google.cloud.ces.v1.Guardrail.getDefaultInstance() : guardrail_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(guardrailId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, guardrailId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getGuardrail()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(guardrailId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, guardrailId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getGuardrail()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.CreateGuardrailRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.CreateGuardrailRequest other = + (com.google.cloud.ces.v1.CreateGuardrailRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getGuardrailId().equals(other.getGuardrailId())) return false; + if (hasGuardrail() != other.hasGuardrail()) return false; + if (hasGuardrail()) { + if (!getGuardrail().equals(other.getGuardrail())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + GUARDRAIL_ID_FIELD_NUMBER; + hash = (53 * hash) + getGuardrailId().hashCode(); + if (hasGuardrail()) { + hash = (37 * hash) + GUARDRAIL_FIELD_NUMBER; + hash = (53 * hash) + getGuardrail().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.CreateGuardrailRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.CreateGuardrailRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateGuardrailRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.CreateGuardrailRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateGuardrailRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.CreateGuardrailRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateGuardrailRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.CreateGuardrailRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateGuardrailRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.CreateGuardrailRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateGuardrailRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.CreateGuardrailRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.CreateGuardrailRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.CreateGuardrail][google.cloud.ces.v1.AgentService.CreateGuardrail].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.CreateGuardrailRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.CreateGuardrailRequest) + com.google.cloud.ces.v1.CreateGuardrailRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateGuardrailRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateGuardrailRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.CreateGuardrailRequest.class, + com.google.cloud.ces.v1.CreateGuardrailRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.CreateGuardrailRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetGuardrailFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + guardrailId_ = ""; + guardrail_ = null; + if (guardrailBuilder_ != null) { + guardrailBuilder_.dispose(); + guardrailBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateGuardrailRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.CreateGuardrailRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.CreateGuardrailRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.CreateGuardrailRequest build() { + com.google.cloud.ces.v1.CreateGuardrailRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.CreateGuardrailRequest buildPartial() { + com.google.cloud.ces.v1.CreateGuardrailRequest result = + new com.google.cloud.ces.v1.CreateGuardrailRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.CreateGuardrailRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.guardrailId_ = guardrailId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.guardrail_ = guardrailBuilder_ == null ? guardrail_ : guardrailBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.CreateGuardrailRequest) { + return mergeFrom((com.google.cloud.ces.v1.CreateGuardrailRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.CreateGuardrailRequest other) { + if (other == com.google.cloud.ces.v1.CreateGuardrailRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getGuardrailId().isEmpty()) { + guardrailId_ = other.guardrailId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasGuardrail()) { + mergeGuardrail(other.getGuardrail()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + guardrailId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetGuardrailFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the app to create a guardrail in.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to create a guardrail in.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to create a guardrail in.
      +     * 
      + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to create a guardrail in.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to create a guardrail in.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object guardrailId_ = ""; + + /** + * + * + *
      +     * Optional. The ID to use for the guardrail, which will become the final
      +     * component of the guardrail's resource name. If not provided, a unique ID
      +     * will be automatically assigned for the guardrail.
      +     * 
      + * + * string guardrail_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The guardrailId. + */ + public java.lang.String getGuardrailId() { + java.lang.Object ref = guardrailId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + guardrailId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The ID to use for the guardrail, which will become the final
      +     * component of the guardrail's resource name. If not provided, a unique ID
      +     * will be automatically assigned for the guardrail.
      +     * 
      + * + * string guardrail_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for guardrailId. + */ + public com.google.protobuf.ByteString getGuardrailIdBytes() { + java.lang.Object ref = guardrailId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + guardrailId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The ID to use for the guardrail, which will become the final
      +     * component of the guardrail's resource name. If not provided, a unique ID
      +     * will be automatically assigned for the guardrail.
      +     * 
      + * + * string guardrail_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The guardrailId to set. + * @return This builder for chaining. + */ + public Builder setGuardrailId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + guardrailId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The ID to use for the guardrail, which will become the final
      +     * component of the guardrail's resource name. If not provided, a unique ID
      +     * will be automatically assigned for the guardrail.
      +     * 
      + * + * string guardrail_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGuardrailId() { + guardrailId_ = getDefaultInstance().getGuardrailId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The ID to use for the guardrail, which will become the final
      +     * component of the guardrail's resource name. If not provided, a unique ID
      +     * will be automatically assigned for the guardrail.
      +     * 
      + * + * string guardrail_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for guardrailId to set. + * @return This builder for chaining. + */ + public Builder setGuardrailIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + guardrailId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.Guardrail guardrail_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Guardrail, + com.google.cloud.ces.v1.Guardrail.Builder, + com.google.cloud.ces.v1.GuardrailOrBuilder> + guardrailBuilder_; + + /** + * + * + *
      +     * Required. The guardrail to create.
      +     * 
      + * + * .google.cloud.ces.v1.Guardrail guardrail = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the guardrail field is set. + */ + public boolean hasGuardrail() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Required. The guardrail to create.
      +     * 
      + * + * .google.cloud.ces.v1.Guardrail guardrail = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The guardrail. + */ + public com.google.cloud.ces.v1.Guardrail getGuardrail() { + if (guardrailBuilder_ == null) { + return guardrail_ == null + ? com.google.cloud.ces.v1.Guardrail.getDefaultInstance() + : guardrail_; + } else { + return guardrailBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Required. The guardrail to create.
      +     * 
      + * + * .google.cloud.ces.v1.Guardrail guardrail = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGuardrail(com.google.cloud.ces.v1.Guardrail value) { + if (guardrailBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + guardrail_ = value; + } else { + guardrailBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The guardrail to create.
      +     * 
      + * + * .google.cloud.ces.v1.Guardrail guardrail = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGuardrail(com.google.cloud.ces.v1.Guardrail.Builder builderForValue) { + if (guardrailBuilder_ == null) { + guardrail_ = builderForValue.build(); + } else { + guardrailBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The guardrail to create.
      +     * 
      + * + * .google.cloud.ces.v1.Guardrail guardrail = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeGuardrail(com.google.cloud.ces.v1.Guardrail value) { + if (guardrailBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && guardrail_ != null + && guardrail_ != com.google.cloud.ces.v1.Guardrail.getDefaultInstance()) { + getGuardrailBuilder().mergeFrom(value); + } else { + guardrail_ = value; + } + } else { + guardrailBuilder_.mergeFrom(value); + } + if (guardrail_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Required. The guardrail to create.
      +     * 
      + * + * .google.cloud.ces.v1.Guardrail guardrail = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearGuardrail() { + bitField0_ = (bitField0_ & ~0x00000004); + guardrail_ = null; + if (guardrailBuilder_ != null) { + guardrailBuilder_.dispose(); + guardrailBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The guardrail to create.
      +     * 
      + * + * .google.cloud.ces.v1.Guardrail guardrail = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.Guardrail.Builder getGuardrailBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetGuardrailFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Required. The guardrail to create.
      +     * 
      + * + * .google.cloud.ces.v1.Guardrail guardrail = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.GuardrailOrBuilder getGuardrailOrBuilder() { + if (guardrailBuilder_ != null) { + return guardrailBuilder_.getMessageOrBuilder(); + } else { + return guardrail_ == null + ? com.google.cloud.ces.v1.Guardrail.getDefaultInstance() + : guardrail_; + } + } + + /** + * + * + *
      +     * Required. The guardrail to create.
      +     * 
      + * + * .google.cloud.ces.v1.Guardrail guardrail = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Guardrail, + com.google.cloud.ces.v1.Guardrail.Builder, + com.google.cloud.ces.v1.GuardrailOrBuilder> + internalGetGuardrailFieldBuilder() { + if (guardrailBuilder_ == null) { + guardrailBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Guardrail, + com.google.cloud.ces.v1.Guardrail.Builder, + com.google.cloud.ces.v1.GuardrailOrBuilder>( + getGuardrail(), getParentForChildren(), isClean()); + guardrail_ = null; + } + return guardrailBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.CreateGuardrailRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.CreateGuardrailRequest) + private static final com.google.cloud.ces.v1.CreateGuardrailRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.CreateGuardrailRequest(); + } + + public static com.google.cloud.ces.v1.CreateGuardrailRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateGuardrailRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.CreateGuardrailRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateGuardrailRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateGuardrailRequestOrBuilder.java new file mode 100644 index 000000000000..a36357009426 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateGuardrailRequestOrBuilder.java @@ -0,0 +1,128 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface CreateGuardrailRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.CreateGuardrailRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the app to create a guardrail in.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
      +   * Required. The resource name of the app to create a guardrail in.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Optional. The ID to use for the guardrail, which will become the final
      +   * component of the guardrail's resource name. If not provided, a unique ID
      +   * will be automatically assigned for the guardrail.
      +   * 
      + * + * string guardrail_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The guardrailId. + */ + java.lang.String getGuardrailId(); + + /** + * + * + *
      +   * Optional. The ID to use for the guardrail, which will become the final
      +   * component of the guardrail's resource name. If not provided, a unique ID
      +   * will be automatically assigned for the guardrail.
      +   * 
      + * + * string guardrail_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for guardrailId. + */ + com.google.protobuf.ByteString getGuardrailIdBytes(); + + /** + * + * + *
      +   * Required. The guardrail to create.
      +   * 
      + * + * .google.cloud.ces.v1.Guardrail guardrail = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the guardrail field is set. + */ + boolean hasGuardrail(); + + /** + * + * + *
      +   * Required. The guardrail to create.
      +   * 
      + * + * .google.cloud.ces.v1.Guardrail guardrail = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The guardrail. + */ + com.google.cloud.ces.v1.Guardrail getGuardrail(); + + /** + * + * + *
      +   * Required. The guardrail to create.
      +   * 
      + * + * .google.cloud.ces.v1.Guardrail guardrail = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.GuardrailOrBuilder getGuardrailOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateToolRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateToolRequest.java new file mode 100644 index 000000000000..23f855a78cc6 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateToolRequest.java @@ -0,0 +1,1097 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.CreateTool][google.cloud.ces.v1.AgentService.CreateTool].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.CreateToolRequest} + */ +@com.google.protobuf.Generated +public final class CreateToolRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.CreateToolRequest) + CreateToolRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateToolRequest"); + } + + // Use CreateToolRequest.newBuilder() to construct. + private CreateToolRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateToolRequest() { + parent_ = ""; + toolId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateToolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateToolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.CreateToolRequest.class, + com.google.cloud.ces.v1.CreateToolRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the app to create a tool in.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the app to create a tool in.
      +   * 
      + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOL_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object toolId_ = ""; + + /** + * + * + *
      +   * Optional. The ID to use for the tool, which will become the final component
      +   * of the tool's resource name. If not provided, a unique ID will be
      +   * automatically assigned for the tool.
      +   * 
      + * + * string tool_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The toolId. + */ + @java.lang.Override + public java.lang.String getToolId() { + java.lang.Object ref = toolId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolId_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The ID to use for the tool, which will become the final component
      +   * of the tool's resource name. If not provided, a unique ID will be
      +   * automatically assigned for the tool.
      +   * 
      + * + * string tool_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for toolId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolIdBytes() { + java.lang.Object ref = toolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOL_FIELD_NUMBER = 3; + private com.google.cloud.ces.v1.Tool tool_; + + /** + * + * + *
      +   * Required. The tool to create.
      +   * 
      + * + * .google.cloud.ces.v1.Tool tool = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the tool field is set. + */ + @java.lang.Override + public boolean hasTool() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Required. The tool to create.
      +   * 
      + * + * .google.cloud.ces.v1.Tool tool = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Tool getTool() { + return tool_ == null ? com.google.cloud.ces.v1.Tool.getDefaultInstance() : tool_; + } + + /** + * + * + *
      +   * Required. The tool to create.
      +   * 
      + * + * .google.cloud.ces.v1.Tool tool = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolOrBuilder getToolOrBuilder() { + return tool_ == null ? com.google.cloud.ces.v1.Tool.getDefaultInstance() : tool_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, toolId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getTool()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, toolId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTool()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.CreateToolRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.CreateToolRequest other = + (com.google.cloud.ces.v1.CreateToolRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getToolId().equals(other.getToolId())) return false; + if (hasTool() != other.hasTool()) return false; + if (hasTool()) { + if (!getTool().equals(other.getTool())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + TOOL_ID_FIELD_NUMBER; + hash = (53 * hash) + getToolId().hashCode(); + if (hasTool()) { + hash = (37 * hash) + TOOL_FIELD_NUMBER; + hash = (53 * hash) + getTool().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.CreateToolRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.CreateToolRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateToolRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.CreateToolRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateToolRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.CreateToolRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateToolRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.CreateToolRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateToolRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.CreateToolRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateToolRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.CreateToolRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.CreateToolRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.CreateTool][google.cloud.ces.v1.AgentService.CreateTool].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.CreateToolRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.CreateToolRequest) + com.google.cloud.ces.v1.CreateToolRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateToolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateToolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.CreateToolRequest.class, + com.google.cloud.ces.v1.CreateToolRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.CreateToolRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetToolFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + toolId_ = ""; + tool_ = null; + if (toolBuilder_ != null) { + toolBuilder_.dispose(); + toolBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateToolRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.CreateToolRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.CreateToolRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.CreateToolRequest build() { + com.google.cloud.ces.v1.CreateToolRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.CreateToolRequest buildPartial() { + com.google.cloud.ces.v1.CreateToolRequest result = + new com.google.cloud.ces.v1.CreateToolRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.CreateToolRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.toolId_ = toolId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tool_ = toolBuilder_ == null ? tool_ : toolBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.CreateToolRequest) { + return mergeFrom((com.google.cloud.ces.v1.CreateToolRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.CreateToolRequest other) { + if (other == com.google.cloud.ces.v1.CreateToolRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getToolId().isEmpty()) { + toolId_ = other.toolId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasTool()) { + mergeTool(other.getTool()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + toolId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetToolFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the app to create a tool in.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to create a tool in.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to create a tool in.
      +     * 
      + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to create a tool in.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to create a tool in.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object toolId_ = ""; + + /** + * + * + *
      +     * Optional. The ID to use for the tool, which will become the final component
      +     * of the tool's resource name. If not provided, a unique ID will be
      +     * automatically assigned for the tool.
      +     * 
      + * + * string tool_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The toolId. + */ + public java.lang.String getToolId() { + java.lang.Object ref = toolId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The ID to use for the tool, which will become the final component
      +     * of the tool's resource name. If not provided, a unique ID will be
      +     * automatically assigned for the tool.
      +     * 
      + * + * string tool_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for toolId. + */ + public com.google.protobuf.ByteString getToolIdBytes() { + java.lang.Object ref = toolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The ID to use for the tool, which will become the final component
      +     * of the tool's resource name. If not provided, a unique ID will be
      +     * automatically assigned for the tool.
      +     * 
      + * + * string tool_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The toolId to set. + * @return This builder for chaining. + */ + public Builder setToolId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The ID to use for the tool, which will become the final component
      +     * of the tool's resource name. If not provided, a unique ID will be
      +     * automatically assigned for the tool.
      +     * 
      + * + * string tool_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearToolId() { + toolId_ = getDefaultInstance().getToolId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The ID to use for the tool, which will become the final component
      +     * of the tool's resource name. If not provided, a unique ID will be
      +     * automatically assigned for the tool.
      +     * 
      + * + * string tool_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for toolId to set. + * @return This builder for chaining. + */ + public Builder setToolIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.Tool tool_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Tool, + com.google.cloud.ces.v1.Tool.Builder, + com.google.cloud.ces.v1.ToolOrBuilder> + toolBuilder_; + + /** + * + * + *
      +     * Required. The tool to create.
      +     * 
      + * + * .google.cloud.ces.v1.Tool tool = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the tool field is set. + */ + public boolean hasTool() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Required. The tool to create.
      +     * 
      + * + * .google.cloud.ces.v1.Tool tool = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tool. + */ + public com.google.cloud.ces.v1.Tool getTool() { + if (toolBuilder_ == null) { + return tool_ == null ? com.google.cloud.ces.v1.Tool.getDefaultInstance() : tool_; + } else { + return toolBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Required. The tool to create.
      +     * 
      + * + * .google.cloud.ces.v1.Tool tool = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setTool(com.google.cloud.ces.v1.Tool value) { + if (toolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tool_ = value; + } else { + toolBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The tool to create.
      +     * 
      + * + * .google.cloud.ces.v1.Tool tool = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setTool(com.google.cloud.ces.v1.Tool.Builder builderForValue) { + if (toolBuilder_ == null) { + tool_ = builderForValue.build(); + } else { + toolBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The tool to create.
      +     * 
      + * + * .google.cloud.ces.v1.Tool tool = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeTool(com.google.cloud.ces.v1.Tool value) { + if (toolBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && tool_ != null + && tool_ != com.google.cloud.ces.v1.Tool.getDefaultInstance()) { + getToolBuilder().mergeFrom(value); + } else { + tool_ = value; + } + } else { + toolBuilder_.mergeFrom(value); + } + if (tool_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Required. The tool to create.
      +     * 
      + * + * .google.cloud.ces.v1.Tool tool = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearTool() { + bitField0_ = (bitField0_ & ~0x00000004); + tool_ = null; + if (toolBuilder_ != null) { + toolBuilder_.dispose(); + toolBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The tool to create.
      +     * 
      + * + * .google.cloud.ces.v1.Tool tool = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.ces.v1.Tool.Builder getToolBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetToolFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Required. The tool to create.
      +     * 
      + * + * .google.cloud.ces.v1.Tool tool = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.ces.v1.ToolOrBuilder getToolOrBuilder() { + if (toolBuilder_ != null) { + return toolBuilder_.getMessageOrBuilder(); + } else { + return tool_ == null ? com.google.cloud.ces.v1.Tool.getDefaultInstance() : tool_; + } + } + + /** + * + * + *
      +     * Required. The tool to create.
      +     * 
      + * + * .google.cloud.ces.v1.Tool tool = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Tool, + com.google.cloud.ces.v1.Tool.Builder, + com.google.cloud.ces.v1.ToolOrBuilder> + internalGetToolFieldBuilder() { + if (toolBuilder_ == null) { + toolBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Tool, + com.google.cloud.ces.v1.Tool.Builder, + com.google.cloud.ces.v1.ToolOrBuilder>( + getTool(), getParentForChildren(), isClean()); + tool_ = null; + } + return toolBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.CreateToolRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.CreateToolRequest) + private static final com.google.cloud.ces.v1.CreateToolRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.CreateToolRequest(); + } + + public static com.google.cloud.ces.v1.CreateToolRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateToolRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.CreateToolRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateToolRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateToolRequestOrBuilder.java new file mode 100644 index 000000000000..2762b98a1faa --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateToolRequestOrBuilder.java @@ -0,0 +1,125 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface CreateToolRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.CreateToolRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the app to create a tool in.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
      +   * Required. The resource name of the app to create a tool in.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Optional. The ID to use for the tool, which will become the final component
      +   * of the tool's resource name. If not provided, a unique ID will be
      +   * automatically assigned for the tool.
      +   * 
      + * + * string tool_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The toolId. + */ + java.lang.String getToolId(); + + /** + * + * + *
      +   * Optional. The ID to use for the tool, which will become the final component
      +   * of the tool's resource name. If not provided, a unique ID will be
      +   * automatically assigned for the tool.
      +   * 
      + * + * string tool_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for toolId. + */ + com.google.protobuf.ByteString getToolIdBytes(); + + /** + * + * + *
      +   * Required. The tool to create.
      +   * 
      + * + * .google.cloud.ces.v1.Tool tool = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the tool field is set. + */ + boolean hasTool(); + + /** + * + * + *
      +   * Required. The tool to create.
      +   * 
      + * + * .google.cloud.ces.v1.Tool tool = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tool. + */ + com.google.cloud.ces.v1.Tool getTool(); + + /** + * + * + *
      +   * Required. The tool to create.
      +   * 
      + * + * .google.cloud.ces.v1.Tool tool = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.ces.v1.ToolOrBuilder getToolOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateToolsetRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateToolsetRequest.java new file mode 100644 index 000000000000..99efcbed707f --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateToolsetRequest.java @@ -0,0 +1,1109 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.CreateToolset][google.cloud.ces.v1.AgentService.CreateToolset].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.CreateToolsetRequest} + */ +@com.google.protobuf.Generated +public final class CreateToolsetRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.CreateToolsetRequest) + CreateToolsetRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateToolsetRequest"); + } + + // Use CreateToolsetRequest.newBuilder() to construct. + private CreateToolsetRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateToolsetRequest() { + parent_ = ""; + toolsetId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateToolsetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateToolsetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.CreateToolsetRequest.class, + com.google.cloud.ces.v1.CreateToolsetRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the app to create a toolset in.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the app to create a toolset in.
      +   * 
      + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOLSET_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object toolsetId_ = ""; + + /** + * + * + *
      +   * Optional. The ID to use for the toolset, which will become the final
      +   * component of the toolset's resource name. If not provided, a unique ID will
      +   * be automatically assigned for the toolset.
      +   * 
      + * + * string toolset_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The toolsetId. + */ + @java.lang.Override + public java.lang.String getToolsetId() { + java.lang.Object ref = toolsetId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolsetId_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The ID to use for the toolset, which will become the final
      +   * component of the toolset's resource name. If not provided, a unique ID will
      +   * be automatically assigned for the toolset.
      +   * 
      + * + * string toolset_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for toolsetId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolsetIdBytes() { + java.lang.Object ref = toolsetId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolsetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOLSET_FIELD_NUMBER = 3; + private com.google.cloud.ces.v1.Toolset toolset_; + + /** + * + * + *
      +   * Required. The toolset to create.
      +   * 
      + * + * .google.cloud.ces.v1.Toolset toolset = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the toolset field is set. + */ + @java.lang.Override + public boolean hasToolset() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Required. The toolset to create.
      +   * 
      + * + * .google.cloud.ces.v1.Toolset toolset = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The toolset. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Toolset getToolset() { + return toolset_ == null ? com.google.cloud.ces.v1.Toolset.getDefaultInstance() : toolset_; + } + + /** + * + * + *
      +   * Required. The toolset to create.
      +   * 
      + * + * .google.cloud.ces.v1.Toolset toolset = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetOrBuilder getToolsetOrBuilder() { + return toolset_ == null ? com.google.cloud.ces.v1.Toolset.getDefaultInstance() : toolset_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolsetId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, toolsetId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getToolset()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolsetId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, toolsetId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getToolset()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.CreateToolsetRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.CreateToolsetRequest other = + (com.google.cloud.ces.v1.CreateToolsetRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getToolsetId().equals(other.getToolsetId())) return false; + if (hasToolset() != other.hasToolset()) return false; + if (hasToolset()) { + if (!getToolset().equals(other.getToolset())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + TOOLSET_ID_FIELD_NUMBER; + hash = (53 * hash) + getToolsetId().hashCode(); + if (hasToolset()) { + hash = (37 * hash) + TOOLSET_FIELD_NUMBER; + hash = (53 * hash) + getToolset().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.CreateToolsetRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.CreateToolsetRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateToolsetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.CreateToolsetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateToolsetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.CreateToolsetRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateToolsetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.CreateToolsetRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateToolsetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.CreateToolsetRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.CreateToolsetRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.CreateToolsetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.CreateToolsetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.CreateToolset][google.cloud.ces.v1.AgentService.CreateToolset].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.CreateToolsetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.CreateToolsetRequest) + com.google.cloud.ces.v1.CreateToolsetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateToolsetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateToolsetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.CreateToolsetRequest.class, + com.google.cloud.ces.v1.CreateToolsetRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.CreateToolsetRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetToolsetFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + toolsetId_ = ""; + toolset_ = null; + if (toolsetBuilder_ != null) { + toolsetBuilder_.dispose(); + toolsetBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_CreateToolsetRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.CreateToolsetRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.CreateToolsetRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.CreateToolsetRequest build() { + com.google.cloud.ces.v1.CreateToolsetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.CreateToolsetRequest buildPartial() { + com.google.cloud.ces.v1.CreateToolsetRequest result = + new com.google.cloud.ces.v1.CreateToolsetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.CreateToolsetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.toolsetId_ = toolsetId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.toolset_ = toolsetBuilder_ == null ? toolset_ : toolsetBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.CreateToolsetRequest) { + return mergeFrom((com.google.cloud.ces.v1.CreateToolsetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.CreateToolsetRequest other) { + if (other == com.google.cloud.ces.v1.CreateToolsetRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getToolsetId().isEmpty()) { + toolsetId_ = other.toolsetId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasToolset()) { + mergeToolset(other.getToolset()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + toolsetId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetToolsetFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the app to create a toolset in.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to create a toolset in.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to create a toolset in.
      +     * 
      + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to create a toolset in.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to create a toolset in.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object toolsetId_ = ""; + + /** + * + * + *
      +     * Optional. The ID to use for the toolset, which will become the final
      +     * component of the toolset's resource name. If not provided, a unique ID will
      +     * be automatically assigned for the toolset.
      +     * 
      + * + * string toolset_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The toolsetId. + */ + public java.lang.String getToolsetId() { + java.lang.Object ref = toolsetId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolsetId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The ID to use for the toolset, which will become the final
      +     * component of the toolset's resource name. If not provided, a unique ID will
      +     * be automatically assigned for the toolset.
      +     * 
      + * + * string toolset_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for toolsetId. + */ + public com.google.protobuf.ByteString getToolsetIdBytes() { + java.lang.Object ref = toolsetId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolsetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The ID to use for the toolset, which will become the final
      +     * component of the toolset's resource name. If not provided, a unique ID will
      +     * be automatically assigned for the toolset.
      +     * 
      + * + * string toolset_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The toolsetId to set. + * @return This builder for chaining. + */ + public Builder setToolsetId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolsetId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The ID to use for the toolset, which will become the final
      +     * component of the toolset's resource name. If not provided, a unique ID will
      +     * be automatically assigned for the toolset.
      +     * 
      + * + * string toolset_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearToolsetId() { + toolsetId_ = getDefaultInstance().getToolsetId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The ID to use for the toolset, which will become the final
      +     * component of the toolset's resource name. If not provided, a unique ID will
      +     * be automatically assigned for the toolset.
      +     * 
      + * + * string toolset_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for toolsetId to set. + * @return This builder for chaining. + */ + public Builder setToolsetIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolsetId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.Toolset toolset_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Toolset, + com.google.cloud.ces.v1.Toolset.Builder, + com.google.cloud.ces.v1.ToolsetOrBuilder> + toolsetBuilder_; + + /** + * + * + *
      +     * Required. The toolset to create.
      +     * 
      + * + * .google.cloud.ces.v1.Toolset toolset = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the toolset field is set. + */ + public boolean hasToolset() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Required. The toolset to create.
      +     * 
      + * + * .google.cloud.ces.v1.Toolset toolset = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The toolset. + */ + public com.google.cloud.ces.v1.Toolset getToolset() { + if (toolsetBuilder_ == null) { + return toolset_ == null ? com.google.cloud.ces.v1.Toolset.getDefaultInstance() : toolset_; + } else { + return toolsetBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Required. The toolset to create.
      +     * 
      + * + * .google.cloud.ces.v1.Toolset toolset = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setToolset(com.google.cloud.ces.v1.Toolset value) { + if (toolsetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolset_ = value; + } else { + toolsetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The toolset to create.
      +     * 
      + * + * .google.cloud.ces.v1.Toolset toolset = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setToolset(com.google.cloud.ces.v1.Toolset.Builder builderForValue) { + if (toolsetBuilder_ == null) { + toolset_ = builderForValue.build(); + } else { + toolsetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The toolset to create.
      +     * 
      + * + * .google.cloud.ces.v1.Toolset toolset = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeToolset(com.google.cloud.ces.v1.Toolset value) { + if (toolsetBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && toolset_ != null + && toolset_ != com.google.cloud.ces.v1.Toolset.getDefaultInstance()) { + getToolsetBuilder().mergeFrom(value); + } else { + toolset_ = value; + } + } else { + toolsetBuilder_.mergeFrom(value); + } + if (toolset_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Required. The toolset to create.
      +     * 
      + * + * .google.cloud.ces.v1.Toolset toolset = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearToolset() { + bitField0_ = (bitField0_ & ~0x00000004); + toolset_ = null; + if (toolsetBuilder_ != null) { + toolsetBuilder_.dispose(); + toolsetBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The toolset to create.
      +     * 
      + * + * .google.cloud.ces.v1.Toolset toolset = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.Toolset.Builder getToolsetBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetToolsetFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Required. The toolset to create.
      +     * 
      + * + * .google.cloud.ces.v1.Toolset toolset = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.ToolsetOrBuilder getToolsetOrBuilder() { + if (toolsetBuilder_ != null) { + return toolsetBuilder_.getMessageOrBuilder(); + } else { + return toolset_ == null ? com.google.cloud.ces.v1.Toolset.getDefaultInstance() : toolset_; + } + } + + /** + * + * + *
      +     * Required. The toolset to create.
      +     * 
      + * + * .google.cloud.ces.v1.Toolset toolset = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Toolset, + com.google.cloud.ces.v1.Toolset.Builder, + com.google.cloud.ces.v1.ToolsetOrBuilder> + internalGetToolsetFieldBuilder() { + if (toolsetBuilder_ == null) { + toolsetBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Toolset, + com.google.cloud.ces.v1.Toolset.Builder, + com.google.cloud.ces.v1.ToolsetOrBuilder>( + getToolset(), getParentForChildren(), isClean()); + toolset_ = null; + } + return toolsetBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.CreateToolsetRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.CreateToolsetRequest) + private static final com.google.cloud.ces.v1.CreateToolsetRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.CreateToolsetRequest(); + } + + public static com.google.cloud.ces.v1.CreateToolsetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateToolsetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.CreateToolsetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateToolsetRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateToolsetRequestOrBuilder.java new file mode 100644 index 000000000000..a22c481e67b3 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/CreateToolsetRequestOrBuilder.java @@ -0,0 +1,128 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface CreateToolsetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.CreateToolsetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the app to create a toolset in.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
      +   * Required. The resource name of the app to create a toolset in.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Optional. The ID to use for the toolset, which will become the final
      +   * component of the toolset's resource name. If not provided, a unique ID will
      +   * be automatically assigned for the toolset.
      +   * 
      + * + * string toolset_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The toolsetId. + */ + java.lang.String getToolsetId(); + + /** + * + * + *
      +   * Optional. The ID to use for the toolset, which will become the final
      +   * component of the toolset's resource name. If not provided, a unique ID will
      +   * be automatically assigned for the toolset.
      +   * 
      + * + * string toolset_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for toolsetId. + */ + com.google.protobuf.ByteString getToolsetIdBytes(); + + /** + * + * + *
      +   * Required. The toolset to create.
      +   * 
      + * + * .google.cloud.ces.v1.Toolset toolset = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the toolset field is set. + */ + boolean hasToolset(); + + /** + * + * + *
      +   * Required. The toolset to create.
      +   * 
      + * + * .google.cloud.ces.v1.Toolset toolset = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The toolset. + */ + com.google.cloud.ces.v1.Toolset getToolset(); + + /** + * + * + *
      +   * Required. The toolset to create.
      +   * 
      + * + * .google.cloud.ces.v1.Toolset toolset = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.ToolsetOrBuilder getToolsetOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DataStore.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DataStore.java new file mode 100644 index 000000000000..c8af1a7ff873 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DataStore.java @@ -0,0 +1,3218 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/data_store.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * A DataStore resource in Vertex AI Search.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DataStore} + */ +@com.google.protobuf.Generated +public final class DataStore extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.DataStore) + DataStoreOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DataStore"); + } + + // Use DataStore.newBuilder() to construct. + private DataStore(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DataStore() { + name_ = ""; + type_ = 0; + documentProcessingMode_ = 0; + displayName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStoreProto + .internal_static_google_cloud_ces_v1_DataStore_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.DataStoreProto + .internal_static_google_cloud_ces_v1_DataStore_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DataStore.class, + com.google.cloud.ces.v1.DataStore.Builder.class); + } + + /** + * + * + *
      +   * The type of the data store.
      +   * 
      + * + * Protobuf enum {@code google.cloud.ces.v1.DataStore.DataStoreType} + */ + public enum DataStoreType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Not specified. This value indicates that the data store type is not
      +     * specified, so it will not be used during search.
      +     * 
      + * + * DATA_STORE_TYPE_UNSPECIFIED = 0; + */ + DATA_STORE_TYPE_UNSPECIFIED(0), + /** + * + * + *
      +     * A data store that contains public web content.
      +     * 
      + * + * PUBLIC_WEB = 1; + */ + PUBLIC_WEB(1), + /** + * + * + *
      +     * A data store that contains unstructured private data.
      +     * 
      + * + * UNSTRUCTURED = 2; + */ + UNSTRUCTURED(2), + /** + * + * + *
      +     * A data store that contains structured data used as FAQ.
      +     * 
      + * + * FAQ = 3; + */ + FAQ(3), + /** + * + * + *
      +     * A data store that is a connector to a first-party or a third-party
      +     * service.
      +     * 
      + * + * CONNECTOR = 4; + */ + CONNECTOR(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DataStoreType"); + } + + /** + * + * + *
      +     * Not specified. This value indicates that the data store type is not
      +     * specified, so it will not be used during search.
      +     * 
      + * + * DATA_STORE_TYPE_UNSPECIFIED = 0; + */ + public static final int DATA_STORE_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * A data store that contains public web content.
      +     * 
      + * + * PUBLIC_WEB = 1; + */ + public static final int PUBLIC_WEB_VALUE = 1; + + /** + * + * + *
      +     * A data store that contains unstructured private data.
      +     * 
      + * + * UNSTRUCTURED = 2; + */ + public static final int UNSTRUCTURED_VALUE = 2; + + /** + * + * + *
      +     * A data store that contains structured data used as FAQ.
      +     * 
      + * + * FAQ = 3; + */ + public static final int FAQ_VALUE = 3; + + /** + * + * + *
      +     * A data store that is a connector to a first-party or a third-party
      +     * service.
      +     * 
      + * + * CONNECTOR = 4; + */ + public static final int CONNECTOR_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DataStoreType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DataStoreType forNumber(int value) { + switch (value) { + case 0: + return DATA_STORE_TYPE_UNSPECIFIED; + case 1: + return PUBLIC_WEB; + case 2: + return UNSTRUCTURED; + case 3: + return FAQ; + case 4: + return CONNECTOR; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DataStoreType findValueByNumber(int number) { + return DataStoreType.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStore.getDescriptor().getEnumTypes().get(0); + } + + private static final DataStoreType[] VALUES = values(); + + public static DataStoreType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DataStoreType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.DataStore.DataStoreType) + } + + /** + * + * + *
      +   * The document processing mode of the data store.
      +   * 
      + * + * Protobuf enum {@code google.cloud.ces.v1.DataStore.DocumentProcessingMode} + */ + public enum DocumentProcessingMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Not specified.
      +     * 
      + * + * DOCUMENT_PROCESSING_MODE_UNSPECIFIED = 0; + */ + DOCUMENT_PROCESSING_MODE_UNSPECIFIED(0), + /** + * + * + *
      +     * Documents are processed as documents.
      +     * 
      + * + * DOCUMENTS = 1; + */ + DOCUMENTS(1), + /** + * + * + *
      +     * Documents are converted to chunks.
      +     * 
      + * + * CHUNKS = 2; + */ + CHUNKS(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DocumentProcessingMode"); + } + + /** + * + * + *
      +     * Not specified.
      +     * 
      + * + * DOCUMENT_PROCESSING_MODE_UNSPECIFIED = 0; + */ + public static final int DOCUMENT_PROCESSING_MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * Documents are processed as documents.
      +     * 
      + * + * DOCUMENTS = 1; + */ + public static final int DOCUMENTS_VALUE = 1; + + /** + * + * + *
      +     * Documents are converted to chunks.
      +     * 
      + * + * CHUNKS = 2; + */ + public static final int CHUNKS_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DocumentProcessingMode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DocumentProcessingMode forNumber(int value) { + switch (value) { + case 0: + return DOCUMENT_PROCESSING_MODE_UNSPECIFIED; + case 1: + return DOCUMENTS; + case 2: + return CHUNKS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DocumentProcessingMode findValueByNumber(int number) { + return DocumentProcessingMode.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStore.getDescriptor().getEnumTypes().get(1); + } + + private static final DocumentProcessingMode[] VALUES = values(); + + public static DocumentProcessingMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DocumentProcessingMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.DataStore.DocumentProcessingMode) + } + + public interface ConnectorConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.DataStore.ConnectorConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Resource name of the collection the data store belongs to.
      +     * 
      + * + * string collection = 1; + * + * @return The collection. + */ + java.lang.String getCollection(); + + /** + * + * + *
      +     * Resource name of the collection the data store belongs to.
      +     * 
      + * + * string collection = 1; + * + * @return The bytes for collection. + */ + com.google.protobuf.ByteString getCollectionBytes(); + + /** + * + * + *
      +     * Display name of the collection the data store belongs to.
      +     * 
      + * + * string collection_display_name = 2; + * + * @return The collectionDisplayName. + */ + java.lang.String getCollectionDisplayName(); + + /** + * + * + *
      +     * Display name of the collection the data store belongs to.
      +     * 
      + * + * string collection_display_name = 2; + * + * @return The bytes for collectionDisplayName. + */ + com.google.protobuf.ByteString getCollectionDisplayNameBytes(); + + /** + * + * + *
      +     * The name of the data source.
      +     * Example: `salesforce`, `jira`, `confluence`, `bigquery`.
      +     * 
      + * + * string data_source = 3; + * + * @return The dataSource. + */ + java.lang.String getDataSource(); + + /** + * + * + *
      +     * The name of the data source.
      +     * Example: `salesforce`, `jira`, `confluence`, `bigquery`.
      +     * 
      + * + * string data_source = 3; + * + * @return The bytes for dataSource. + */ + com.google.protobuf.ByteString getDataSourceBytes(); + } + + /** + * + * + *
      +   * The connector config for the data store connection.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DataStore.ConnectorConfig} + */ + public static final class ConnectorConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.DataStore.ConnectorConfig) + ConnectorConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ConnectorConfig"); + } + + // Use ConnectorConfig.newBuilder() to construct. + private ConnectorConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ConnectorConfig() { + collection_ = ""; + collectionDisplayName_ = ""; + dataSource_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStoreProto + .internal_static_google_cloud_ces_v1_DataStore_ConnectorConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.DataStoreProto + .internal_static_google_cloud_ces_v1_DataStore_ConnectorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DataStore.ConnectorConfig.class, + com.google.cloud.ces.v1.DataStore.ConnectorConfig.Builder.class); + } + + public static final int COLLECTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object collection_ = ""; + + /** + * + * + *
      +     * Resource name of the collection the data store belongs to.
      +     * 
      + * + * string collection = 1; + * + * @return The collection. + */ + @java.lang.Override + public java.lang.String getCollection() { + java.lang.Object ref = collection_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + collection_ = s; + return s; + } + } + + /** + * + * + *
      +     * Resource name of the collection the data store belongs to.
      +     * 
      + * + * string collection = 1; + * + * @return The bytes for collection. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCollectionBytes() { + java.lang.Object ref = collection_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + collection_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COLLECTION_DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object collectionDisplayName_ = ""; + + /** + * + * + *
      +     * Display name of the collection the data store belongs to.
      +     * 
      + * + * string collection_display_name = 2; + * + * @return The collectionDisplayName. + */ + @java.lang.Override + public java.lang.String getCollectionDisplayName() { + java.lang.Object ref = collectionDisplayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + collectionDisplayName_ = s; + return s; + } + } + + /** + * + * + *
      +     * Display name of the collection the data store belongs to.
      +     * 
      + * + * string collection_display_name = 2; + * + * @return The bytes for collectionDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCollectionDisplayNameBytes() { + java.lang.Object ref = collectionDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + collectionDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_SOURCE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataSource_ = ""; + + /** + * + * + *
      +     * The name of the data source.
      +     * Example: `salesforce`, `jira`, `confluence`, `bigquery`.
      +     * 
      + * + * string data_source = 3; + * + * @return The dataSource. + */ + @java.lang.Override + public java.lang.String getDataSource() { + java.lang.Object ref = dataSource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataSource_ = s; + return s; + } + } + + /** + * + * + *
      +     * The name of the data source.
      +     * Example: `salesforce`, `jira`, `confluence`, `bigquery`.
      +     * 
      + * + * string data_source = 3; + * + * @return The bytes for dataSource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataSourceBytes() { + java.lang.Object ref = dataSource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataSource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(collection_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, collection_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(collectionDisplayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, collectionDisplayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataSource_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, dataSource_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(collection_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, collection_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(collectionDisplayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, collectionDisplayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataSource_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, dataSource_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.DataStore.ConnectorConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.DataStore.ConnectorConfig other = + (com.google.cloud.ces.v1.DataStore.ConnectorConfig) obj; + + if (!getCollection().equals(other.getCollection())) return false; + if (!getCollectionDisplayName().equals(other.getCollectionDisplayName())) return false; + if (!getDataSource().equals(other.getDataSource())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COLLECTION_FIELD_NUMBER; + hash = (53 * hash) + getCollection().hashCode(); + hash = (37 * hash) + COLLECTION_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCollectionDisplayName().hashCode(); + hash = (37 * hash) + DATA_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getDataSource().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.DataStore.ConnectorConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStore.ConnectorConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStore.ConnectorConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStore.ConnectorConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStore.ConnectorConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStore.ConnectorConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStore.ConnectorConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStore.ConnectorConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStore.ConnectorConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStore.ConnectorConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStore.ConnectorConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStore.ConnectorConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.DataStore.ConnectorConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * The connector config for the data store connection.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DataStore.ConnectorConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.DataStore.ConnectorConfig) + com.google.cloud.ces.v1.DataStore.ConnectorConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStoreProto + .internal_static_google_cloud_ces_v1_DataStore_ConnectorConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.DataStoreProto + .internal_static_google_cloud_ces_v1_DataStore_ConnectorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DataStore.ConnectorConfig.class, + com.google.cloud.ces.v1.DataStore.ConnectorConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.DataStore.ConnectorConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + collection_ = ""; + collectionDisplayName_ = ""; + dataSource_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.DataStoreProto + .internal_static_google_cloud_ces_v1_DataStore_ConnectorConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStore.ConnectorConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1.DataStore.ConnectorConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStore.ConnectorConfig build() { + com.google.cloud.ces.v1.DataStore.ConnectorConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStore.ConnectorConfig buildPartial() { + com.google.cloud.ces.v1.DataStore.ConnectorConfig result = + new com.google.cloud.ces.v1.DataStore.ConnectorConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.DataStore.ConnectorConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.collection_ = collection_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.collectionDisplayName_ = collectionDisplayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.dataSource_ = dataSource_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.DataStore.ConnectorConfig) { + return mergeFrom((com.google.cloud.ces.v1.DataStore.ConnectorConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.DataStore.ConnectorConfig other) { + if (other == com.google.cloud.ces.v1.DataStore.ConnectorConfig.getDefaultInstance()) + return this; + if (!other.getCollection().isEmpty()) { + collection_ = other.collection_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCollectionDisplayName().isEmpty()) { + collectionDisplayName_ = other.collectionDisplayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDataSource().isEmpty()) { + dataSource_ = other.dataSource_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + collection_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + collectionDisplayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + dataSource_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object collection_ = ""; + + /** + * + * + *
      +       * Resource name of the collection the data store belongs to.
      +       * 
      + * + * string collection = 1; + * + * @return The collection. + */ + public java.lang.String getCollection() { + java.lang.Object ref = collection_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + collection_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Resource name of the collection the data store belongs to.
      +       * 
      + * + * string collection = 1; + * + * @return The bytes for collection. + */ + public com.google.protobuf.ByteString getCollectionBytes() { + java.lang.Object ref = collection_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + collection_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Resource name of the collection the data store belongs to.
      +       * 
      + * + * string collection = 1; + * + * @param value The collection to set. + * @return This builder for chaining. + */ + public Builder setCollection(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + collection_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Resource name of the collection the data store belongs to.
      +       * 
      + * + * string collection = 1; + * + * @return This builder for chaining. + */ + public Builder clearCollection() { + collection_ = getDefaultInstance().getCollection(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Resource name of the collection the data store belongs to.
      +       * 
      + * + * string collection = 1; + * + * @param value The bytes for collection to set. + * @return This builder for chaining. + */ + public Builder setCollectionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + collection_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object collectionDisplayName_ = ""; + + /** + * + * + *
      +       * Display name of the collection the data store belongs to.
      +       * 
      + * + * string collection_display_name = 2; + * + * @return The collectionDisplayName. + */ + public java.lang.String getCollectionDisplayName() { + java.lang.Object ref = collectionDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + collectionDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Display name of the collection the data store belongs to.
      +       * 
      + * + * string collection_display_name = 2; + * + * @return The bytes for collectionDisplayName. + */ + public com.google.protobuf.ByteString getCollectionDisplayNameBytes() { + java.lang.Object ref = collectionDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + collectionDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Display name of the collection the data store belongs to.
      +       * 
      + * + * string collection_display_name = 2; + * + * @param value The collectionDisplayName to set. + * @return This builder for chaining. + */ + public Builder setCollectionDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + collectionDisplayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Display name of the collection the data store belongs to.
      +       * 
      + * + * string collection_display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearCollectionDisplayName() { + collectionDisplayName_ = getDefaultInstance().getCollectionDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Display name of the collection the data store belongs to.
      +       * 
      + * + * string collection_display_name = 2; + * + * @param value The bytes for collectionDisplayName to set. + * @return This builder for chaining. + */ + public Builder setCollectionDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + collectionDisplayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object dataSource_ = ""; + + /** + * + * + *
      +       * The name of the data source.
      +       * Example: `salesforce`, `jira`, `confluence`, `bigquery`.
      +       * 
      + * + * string data_source = 3; + * + * @return The dataSource. + */ + public java.lang.String getDataSource() { + java.lang.Object ref = dataSource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataSource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * The name of the data source.
      +       * Example: `salesforce`, `jira`, `confluence`, `bigquery`.
      +       * 
      + * + * string data_source = 3; + * + * @return The bytes for dataSource. + */ + public com.google.protobuf.ByteString getDataSourceBytes() { + java.lang.Object ref = dataSource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataSource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * The name of the data source.
      +       * Example: `salesforce`, `jira`, `confluence`, `bigquery`.
      +       * 
      + * + * string data_source = 3; + * + * @param value The dataSource to set. + * @return This builder for chaining. + */ + public Builder setDataSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataSource_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +       * The name of the data source.
      +       * Example: `salesforce`, `jira`, `confluence`, `bigquery`.
      +       * 
      + * + * string data_source = 3; + * + * @return This builder for chaining. + */ + public Builder clearDataSource() { + dataSource_ = getDefaultInstance().getDataSource(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +       * The name of the data source.
      +       * Example: `salesforce`, `jira`, `confluence`, `bigquery`.
      +       * 
      + * + * string data_source = 3; + * + * @param value The bytes for dataSource to set. + * @return This builder for chaining. + */ + public Builder setDataSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataSource_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.DataStore.ConnectorConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.DataStore.ConnectorConfig) + private static final com.google.cloud.ces.v1.DataStore.ConnectorConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.DataStore.ConnectorConfig(); + } + + public static com.google.cloud.ces.v1.DataStore.ConnectorConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectorConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStore.ConnectorConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. Full resource name of the DataStore.
      +   * Format:
      +   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. Full resource name of the DataStore.
      +   * Format:
      +   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_ = 0; + + /** + * + * + *
      +   * Output only. The type of the data store. This field is readonly and
      +   * populated by the server.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStore.DataStoreType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
      +   * Output only. The type of the data store. This field is readonly and
      +   * populated by the server.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStore.DataStoreType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStore.DataStoreType getType() { + com.google.cloud.ces.v1.DataStore.DataStoreType result = + com.google.cloud.ces.v1.DataStore.DataStoreType.forNumber(type_); + return result == null ? com.google.cloud.ces.v1.DataStore.DataStoreType.UNRECOGNIZED : result; + } + + public static final int DOCUMENT_PROCESSING_MODE_FIELD_NUMBER = 4; + private int documentProcessingMode_ = 0; + + /** + * + * + *
      +   * Output only. The document processing mode for the data store connection.
      +   * Only set for PUBLIC_WEB and UNSTRUCTURED data stores.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStore.DocumentProcessingMode document_processing_mode = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for documentProcessingMode. + */ + @java.lang.Override + public int getDocumentProcessingModeValue() { + return documentProcessingMode_; + } + + /** + * + * + *
      +   * Output only. The document processing mode for the data store connection.
      +   * Only set for PUBLIC_WEB and UNSTRUCTURED data stores.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStore.DocumentProcessingMode document_processing_mode = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The documentProcessingMode. + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStore.DocumentProcessingMode getDocumentProcessingMode() { + com.google.cloud.ces.v1.DataStore.DocumentProcessingMode result = + com.google.cloud.ces.v1.DataStore.DocumentProcessingMode.forNumber(documentProcessingMode_); + return result == null + ? com.google.cloud.ces.v1.DataStore.DocumentProcessingMode.UNRECOGNIZED + : result; + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
      +   * Output only. The display name of the data store.
      +   * 
      + * + * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
      +   * Output only. The display name of the data store.
      +   * 
      + * + * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
      +   * Output only. Timestamp when the data store was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Output only. Timestamp when the data store was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
      +   * Output only. Timestamp when the data store was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int CONNECTOR_CONFIG_FIELD_NUMBER = 7; + private com.google.cloud.ces.v1.DataStore.ConnectorConfig connectorConfig_; + + /** + * + * + *
      +   * Output only. The connector config for the data store connection.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStore.ConnectorConfig connector_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the connectorConfig field is set. + */ + @java.lang.Override + public boolean hasConnectorConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Output only. The connector config for the data store connection.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStore.ConnectorConfig connector_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectorConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStore.ConnectorConfig getConnectorConfig() { + return connectorConfig_ == null + ? com.google.cloud.ces.v1.DataStore.ConnectorConfig.getDefaultInstance() + : connectorConfig_; + } + + /** + * + * + *
      +   * Output only. The connector config for the data store connection.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStore.ConnectorConfig connector_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStore.ConnectorConfigOrBuilder getConnectorConfigOrBuilder() { + return connectorConfig_ == null + ? com.google.cloud.ces.v1.DataStore.ConnectorConfig.getDefaultInstance() + : connectorConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (type_ + != com.google.cloud.ces.v1.DataStore.DataStoreType.DATA_STORE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, type_); + } + if (documentProcessingMode_ + != com.google.cloud.ces.v1.DataStore.DocumentProcessingMode + .DOCUMENT_PROCESSING_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, documentProcessingMode_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getConnectorConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (type_ + != com.google.cloud.ces.v1.DataStore.DataStoreType.DATA_STORE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + } + if (documentProcessingMode_ + != com.google.cloud.ces.v1.DataStore.DocumentProcessingMode + .DOCUMENT_PROCESSING_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, documentProcessingMode_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getConnectorConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.DataStore)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.DataStore other = (com.google.cloud.ces.v1.DataStore) obj; + + if (!getName().equals(other.getName())) return false; + if (type_ != other.type_) return false; + if (documentProcessingMode_ != other.documentProcessingMode_) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasConnectorConfig() != other.hasConnectorConfig()) return false; + if (hasConnectorConfig()) { + if (!getConnectorConfig().equals(other.getConnectorConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + DOCUMENT_PROCESSING_MODE_FIELD_NUMBER; + hash = (53 * hash) + documentProcessingMode_; + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasConnectorConfig()) { + hash = (37 * hash) + CONNECTOR_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConnectorConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.DataStore parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStore parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStore parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStore parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStore parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStore parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStore parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStore parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStore parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStore parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStore parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStore parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.DataStore prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * A DataStore resource in Vertex AI Search.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DataStore} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.DataStore) + com.google.cloud.ces.v1.DataStoreOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStoreProto + .internal_static_google_cloud_ces_v1_DataStore_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.DataStoreProto + .internal_static_google_cloud_ces_v1_DataStore_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DataStore.class, + com.google.cloud.ces.v1.DataStore.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.DataStore.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetConnectorConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + type_ = 0; + documentProcessingMode_ = 0; + displayName_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + connectorConfig_ = null; + if (connectorConfigBuilder_ != null) { + connectorConfigBuilder_.dispose(); + connectorConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.DataStoreProto + .internal_static_google_cloud_ces_v1_DataStore_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStore getDefaultInstanceForType() { + return com.google.cloud.ces.v1.DataStore.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStore build() { + com.google.cloud.ces.v1.DataStore result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStore buildPartial() { + com.google.cloud.ces.v1.DataStore result = new com.google.cloud.ces.v1.DataStore(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.DataStore result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.documentProcessingMode_ = documentProcessingMode_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.displayName_ = displayName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.connectorConfig_ = + connectorConfigBuilder_ == null ? connectorConfig_ : connectorConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.DataStore) { + return mergeFrom((com.google.cloud.ces.v1.DataStore) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.DataStore other) { + if (other == com.google.cloud.ces.v1.DataStore.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.documentProcessingMode_ != 0) { + setDocumentProcessingModeValue(other.getDocumentProcessingModeValue()); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasConnectorConfig()) { + mergeConnectorConfig(other.getConnectorConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 32: + { + documentProcessingMode_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 42: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetConnectorConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Required. Full resource name of the DataStore.
      +     * Format:
      +     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. Full resource name of the DataStore.
      +     * Format:
      +     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. Full resource name of the DataStore.
      +     * Format:
      +     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. Full resource name of the DataStore.
      +     * Format:
      +     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. Full resource name of the DataStore.
      +     * Format:
      +     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int type_ = 0; + + /** + * + * + *
      +     * Output only. The type of the data store. This field is readonly and
      +     * populated by the server.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStore.DataStoreType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
      +     * Output only. The type of the data store. This field is readonly and
      +     * populated by the server.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStore.DataStoreType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The type of the data store. This field is readonly and
      +     * populated by the server.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStore.DataStoreType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStore.DataStoreType getType() { + com.google.cloud.ces.v1.DataStore.DataStoreType result = + com.google.cloud.ces.v1.DataStore.DataStoreType.forNumber(type_); + return result == null ? com.google.cloud.ces.v1.DataStore.DataStoreType.UNRECOGNIZED : result; + } + + /** + * + * + *
      +     * Output only. The type of the data store. This field is readonly and
      +     * populated by the server.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStore.DataStoreType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.ces.v1.DataStore.DataStoreType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The type of the data store. This field is readonly and
      +     * populated by the server.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStore.DataStoreType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000002); + type_ = 0; + onChanged(); + return this; + } + + private int documentProcessingMode_ = 0; + + /** + * + * + *
      +     * Output only. The document processing mode for the data store connection.
      +     * Only set for PUBLIC_WEB and UNSTRUCTURED data stores.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStore.DocumentProcessingMode document_processing_mode = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for documentProcessingMode. + */ + @java.lang.Override + public int getDocumentProcessingModeValue() { + return documentProcessingMode_; + } + + /** + * + * + *
      +     * Output only. The document processing mode for the data store connection.
      +     * Only set for PUBLIC_WEB and UNSTRUCTURED data stores.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStore.DocumentProcessingMode document_processing_mode = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for documentProcessingMode to set. + * @return This builder for chaining. + */ + public Builder setDocumentProcessingModeValue(int value) { + documentProcessingMode_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The document processing mode for the data store connection.
      +     * Only set for PUBLIC_WEB and UNSTRUCTURED data stores.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStore.DocumentProcessingMode document_processing_mode = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The documentProcessingMode. + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStore.DocumentProcessingMode getDocumentProcessingMode() { + com.google.cloud.ces.v1.DataStore.DocumentProcessingMode result = + com.google.cloud.ces.v1.DataStore.DocumentProcessingMode.forNumber( + documentProcessingMode_); + return result == null + ? com.google.cloud.ces.v1.DataStore.DocumentProcessingMode.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * Output only. The document processing mode for the data store connection.
      +     * Only set for PUBLIC_WEB and UNSTRUCTURED data stores.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStore.DocumentProcessingMode document_processing_mode = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The documentProcessingMode to set. + * @return This builder for chaining. + */ + public Builder setDocumentProcessingMode( + com.google.cloud.ces.v1.DataStore.DocumentProcessingMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + documentProcessingMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The document processing mode for the data store connection.
      +     * Only set for PUBLIC_WEB and UNSTRUCTURED data stores.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStore.DocumentProcessingMode document_processing_mode = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearDocumentProcessingMode() { + bitField0_ = (bitField0_ & ~0x00000004); + documentProcessingMode_ = 0; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
      +     * Output only. The display name of the data store.
      +     * 
      + * + * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Output only. The display name of the data store.
      +     * 
      + * + * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Output only. The display name of the data store.
      +     * 
      + * + * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The display name of the data store.
      +     * 
      + * + * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The display name of the data store.
      +     * 
      + * + * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
      +     * Output only. Timestamp when the data store was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +     * Output only. Timestamp when the data store was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.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_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the data store was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the data store was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the data store was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.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()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the data store was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the data store was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. Timestamp when the data store was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.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_; + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the data store was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.cloud.ces.v1.DataStore.ConnectorConfig connectorConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.DataStore.ConnectorConfig, + com.google.cloud.ces.v1.DataStore.ConnectorConfig.Builder, + com.google.cloud.ces.v1.DataStore.ConnectorConfigOrBuilder> + connectorConfigBuilder_; + + /** + * + * + *
      +     * Output only. The connector config for the data store connection.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStore.ConnectorConfig connector_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the connectorConfig field is set. + */ + public boolean hasConnectorConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +     * Output only. The connector config for the data store connection.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStore.ConnectorConfig connector_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectorConfig. + */ + public com.google.cloud.ces.v1.DataStore.ConnectorConfig getConnectorConfig() { + if (connectorConfigBuilder_ == null) { + return connectorConfig_ == null + ? com.google.cloud.ces.v1.DataStore.ConnectorConfig.getDefaultInstance() + : connectorConfig_; + } else { + return connectorConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. The connector config for the data store connection.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStore.ConnectorConfig connector_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConnectorConfig(com.google.cloud.ces.v1.DataStore.ConnectorConfig value) { + if (connectorConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connectorConfig_ = value; + } else { + connectorConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The connector config for the data store connection.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStore.ConnectorConfig connector_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConnectorConfig( + com.google.cloud.ces.v1.DataStore.ConnectorConfig.Builder builderForValue) { + if (connectorConfigBuilder_ == null) { + connectorConfig_ = builderForValue.build(); + } else { + connectorConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The connector config for the data store connection.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStore.ConnectorConfig connector_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeConnectorConfig(com.google.cloud.ces.v1.DataStore.ConnectorConfig value) { + if (connectorConfigBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && connectorConfig_ != null + && connectorConfig_ + != com.google.cloud.ces.v1.DataStore.ConnectorConfig.getDefaultInstance()) { + getConnectorConfigBuilder().mergeFrom(value); + } else { + connectorConfig_ = value; + } + } else { + connectorConfigBuilder_.mergeFrom(value); + } + if (connectorConfig_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. The connector config for the data store connection.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStore.ConnectorConfig connector_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearConnectorConfig() { + bitField0_ = (bitField0_ & ~0x00000020); + connectorConfig_ = null; + if (connectorConfigBuilder_ != null) { + connectorConfigBuilder_.dispose(); + connectorConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The connector config for the data store connection.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStore.ConnectorConfig connector_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1.DataStore.ConnectorConfig.Builder getConnectorConfigBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetConnectorConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. The connector config for the data store connection.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStore.ConnectorConfig connector_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1.DataStore.ConnectorConfigOrBuilder + getConnectorConfigOrBuilder() { + if (connectorConfigBuilder_ != null) { + return connectorConfigBuilder_.getMessageOrBuilder(); + } else { + return connectorConfig_ == null + ? com.google.cloud.ces.v1.DataStore.ConnectorConfig.getDefaultInstance() + : connectorConfig_; + } + } + + /** + * + * + *
      +     * Output only. The connector config for the data store connection.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStore.ConnectorConfig connector_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.DataStore.ConnectorConfig, + com.google.cloud.ces.v1.DataStore.ConnectorConfig.Builder, + com.google.cloud.ces.v1.DataStore.ConnectorConfigOrBuilder> + internalGetConnectorConfigFieldBuilder() { + if (connectorConfigBuilder_ == null) { + connectorConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.DataStore.ConnectorConfig, + com.google.cloud.ces.v1.DataStore.ConnectorConfig.Builder, + com.google.cloud.ces.v1.DataStore.ConnectorConfigOrBuilder>( + getConnectorConfig(), getParentForChildren(), isClean()); + connectorConfig_ = null; + } + return connectorConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.DataStore) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.DataStore) + private static final com.google.cloud.ces.v1.DataStore DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.DataStore(); + } + + public static com.google.cloud.ces.v1.DataStore getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataStore parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStore getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DataStoreOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DataStoreOrBuilder.java new file mode 100644 index 000000000000..3dcbf78cff14 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DataStoreOrBuilder.java @@ -0,0 +1,231 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/data_store.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface DataStoreOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.DataStore) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. Full resource name of the DataStore.
      +   * Format:
      +   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. Full resource name of the DataStore.
      +   * Format:
      +   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Output only. The type of the data store. This field is readonly and
      +   * populated by the server.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStore.DataStoreType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
      +   * Output only. The type of the data store. This field is readonly and
      +   * populated by the server.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStore.DataStoreType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + com.google.cloud.ces.v1.DataStore.DataStoreType getType(); + + /** + * + * + *
      +   * Output only. The document processing mode for the data store connection.
      +   * Only set for PUBLIC_WEB and UNSTRUCTURED data stores.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStore.DocumentProcessingMode document_processing_mode = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for documentProcessingMode. + */ + int getDocumentProcessingModeValue(); + + /** + * + * + *
      +   * Output only. The document processing mode for the data store connection.
      +   * Only set for PUBLIC_WEB and UNSTRUCTURED data stores.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStore.DocumentProcessingMode document_processing_mode = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The documentProcessingMode. + */ + com.google.cloud.ces.v1.DataStore.DocumentProcessingMode getDocumentProcessingMode(); + + /** + * + * + *
      +   * Output only. The display name of the data store.
      +   * 
      + * + * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
      +   * Output only. The display name of the data store.
      +   * 
      + * + * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
      +   * Output only. Timestamp when the data store was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the data store was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the data store was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
      +   * Output only. The connector config for the data store connection.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStore.ConnectorConfig connector_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the connectorConfig field is set. + */ + boolean hasConnectorConfig(); + + /** + * + * + *
      +   * Output only. The connector config for the data store connection.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStore.ConnectorConfig connector_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectorConfig. + */ + com.google.cloud.ces.v1.DataStore.ConnectorConfig getConnectorConfig(); + + /** + * + * + *
      +   * Output only. The connector config for the data store connection.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStore.ConnectorConfig connector_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.ces.v1.DataStore.ConnectorConfigOrBuilder getConnectorConfigOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DataStoreProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DataStoreProto.java new file mode 100644 index 000000000000..43895b4da71a --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DataStoreProto.java @@ -0,0 +1,121 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/data_store.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class DataStoreProto extends com.google.protobuf.GeneratedFile { + private DataStoreProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DataStoreProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_DataStore_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_DataStore_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_DataStore_ConnectorConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_DataStore_ConnectorConfig_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n$google/cloud/ces/v1/data_store.proto\022\023" + + "google.cloud.ces.v1\032\037google/api/field_be" + + "havior.proto\032\037google/protobuf/timestamp." + + "proto\"\205\005\n\tDataStore\022\021\n\004name\030\001 \001(\tB\003\340A\002\022?" + + "\n\004type\030\002 \001(\0162,.google.cloud.ces.v1.DataS" + + "tore.DataStoreTypeB\003\340A\003\022\\\n\030document_proc" + + "essing_mode\030\004 \001(\01625.google.cloud.ces.v1." + + "DataStore.DocumentProcessingModeB\003\340A\003\022\031\n" + + "\014display_name\030\005 \001(\tB\003\340A\003\0224\n\013create_time\030" + + "\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022M" + + "\n\020connector_config\030\007 \001(\0132..google.cloud." + + "ces.v1.DataStore.ConnectorConfigB\003\340A\003\032[\n" + + "\017ConnectorConfig\022\022\n\ncollection\030\001 \001(\t\022\037\n\027" + + "collection_display_name\030\002 \001(\t\022\023\n\013data_so" + + "urce\030\003 \001(\t\"j\n\rDataStoreType\022\037\n\033DATA_STOR" + + "E_TYPE_UNSPECIFIED\020\000\022\016\n\nPUBLIC_WEB\020\001\022\020\n\014" + + "UNSTRUCTURED\020\002\022\007\n\003FAQ\020\003\022\r\n\tCONNECTOR\020\004\"]" + + "\n\026DocumentProcessingMode\022(\n$DOCUMENT_PRO" + + "CESSING_MODE_UNSPECIFIED\020\000\022\r\n\tDOCUMENTS\020" + + "\001\022\n\n\006CHUNKS\020\002BV\n\027com.google.cloud.ces.v1" + + "B\016DataStoreProtoP\001Z)cloud.google.com/go/" + + "ces/apiv1/cespb;cespbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_DataStore_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_DataStore_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_DataStore_descriptor, + new java.lang.String[] { + "Name", + "Type", + "DocumentProcessingMode", + "DisplayName", + "CreateTime", + "ConnectorConfig", + }); + internal_static_google_cloud_ces_v1_DataStore_ConnectorConfig_descriptor = + internal_static_google_cloud_ces_v1_DataStore_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_DataStore_ConnectorConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_DataStore_ConnectorConfig_descriptor, + new java.lang.String[] { + "Collection", "CollectionDisplayName", "DataSource", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DataStoreSettings.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DataStoreSettings.java new file mode 100644 index 000000000000..8458c3493503 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DataStoreSettings.java @@ -0,0 +1,2003 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Data store related settings for the app.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DataStoreSettings} + */ +@com.google.protobuf.Generated +public final class DataStoreSettings extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.DataStoreSettings) + DataStoreSettingsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DataStoreSettings"); + } + + // Use DataStoreSettings.newBuilder() to construct. + private DataStoreSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DataStoreSettings() { + engines_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_DataStoreSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_DataStoreSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DataStoreSettings.class, + com.google.cloud.ces.v1.DataStoreSettings.Builder.class); + } + + public interface EngineOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.DataStoreSettings.Engine) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Output only. The resource name of the engine.
      +     * Format:
      +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +     * Output only. The resource name of the engine.
      +     * Format:
      +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +     * Output only. The type of the engine.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreSettings.Engine.Type type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
      +     * Output only. The type of the engine.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreSettings.Engine.Type type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + com.google.cloud.ces.v1.DataStoreSettings.Engine.Type getType(); + } + + /** + * + * + *
      +   * An engine to which the data stores are connected.
      +   * See Vertex AI Search:
      +   * https://cloud.google.com/generative-ai-app-builder/docs/enterprise-search-introduction.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DataStoreSettings.Engine} + */ + public static final class Engine extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.DataStoreSettings.Engine) + EngineOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Engine"); + } + + // Use Engine.newBuilder() to construct. + private Engine(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Engine() { + name_ = ""; + type_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_DataStoreSettings_Engine_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_DataStoreSettings_Engine_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DataStoreSettings.Engine.class, + com.google.cloud.ces.v1.DataStoreSettings.Engine.Builder.class); + } + + /** + * + * + *
      +     * The type of the engine.
      +     * See the documentation available at
      +     * https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1/SolutionType
      +     * and
      +     * https://cloud.google.com/generative-ai-app-builder/docs/create-datastore-ingest.
      +     * 
      + * + * Protobuf enum {@code google.cloud.ces.v1.DataStoreSettings.Engine.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +       * Unspecified engine type.
      +       * 
      + * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
      +       * The SOLUTION_TYPE_SEARCH engine for the app. All connector data stores
      +       * added to the app will be added to this engine.
      +       * 
      + * + * ENGINE_TYPE_SEARCH = 1; + */ + ENGINE_TYPE_SEARCH(1), + /** + * + * + *
      +       * Chat engine type.
      +       * The SOLUTION_TYPE_CHAT engine for the app. All connector data stores
      +       * added to the app will be added to this engine.
      +       * 
      + * + * ENGINE_TYPE_CHAT = 2; + */ + ENGINE_TYPE_CHAT(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Type"); + } + + /** + * + * + *
      +       * Unspecified engine type.
      +       * 
      + * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +       * The SOLUTION_TYPE_SEARCH engine for the app. All connector data stores
      +       * added to the app will be added to this engine.
      +       * 
      + * + * ENGINE_TYPE_SEARCH = 1; + */ + public static final int ENGINE_TYPE_SEARCH_VALUE = 1; + + /** + * + * + *
      +       * Chat engine type.
      +       * The SOLUTION_TYPE_CHAT engine for the app. All connector data stores
      +       * added to the app will be added to this engine.
      +       * 
      + * + * ENGINE_TYPE_CHAT = 2; + */ + public static final int ENGINE_TYPE_CHAT_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: + return TYPE_UNSPECIFIED; + case 1: + return ENGINE_TYPE_SEARCH; + case 2: + return ENGINE_TYPE_CHAT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + 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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStoreSettings.Engine.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Type[] VALUES = values(); + + 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."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.DataStoreSettings.Engine.Type) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Output only. The resource name of the engine.
      +     * Format:
      +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +     * Output only. The resource name of the engine.
      +     * Format:
      +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_ = 0; + + /** + * + * + *
      +     * Output only. The type of the engine.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreSettings.Engine.Type type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
      +     * Output only. The type of the engine.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreSettings.Engine.Type type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreSettings.Engine.Type getType() { + com.google.cloud.ces.v1.DataStoreSettings.Engine.Type result = + com.google.cloud.ces.v1.DataStoreSettings.Engine.Type.forNumber(type_); + return result == null + ? com.google.cloud.ces.v1.DataStoreSettings.Engine.Type.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (type_ + != com.google.cloud.ces.v1.DataStoreSettings.Engine.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, type_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (type_ + != com.google.cloud.ces.v1.DataStoreSettings.Engine.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.DataStoreSettings.Engine)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.DataStoreSettings.Engine other = + (com.google.cloud.ces.v1.DataStoreSettings.Engine) obj; + + if (!getName().equals(other.getName())) return false; + if (type_ != other.type_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.DataStoreSettings.Engine parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreSettings.Engine parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreSettings.Engine parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreSettings.Engine parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreSettings.Engine parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreSettings.Engine parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreSettings.Engine parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreSettings.Engine parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreSettings.Engine parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreSettings.Engine parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreSettings.Engine parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreSettings.Engine parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.DataStoreSettings.Engine prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * An engine to which the data stores are connected.
      +     * See Vertex AI Search:
      +     * https://cloud.google.com/generative-ai-app-builder/docs/enterprise-search-introduction.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DataStoreSettings.Engine} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.DataStoreSettings.Engine) + com.google.cloud.ces.v1.DataStoreSettings.EngineOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_DataStoreSettings_Engine_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_DataStoreSettings_Engine_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DataStoreSettings.Engine.class, + com.google.cloud.ces.v1.DataStoreSettings.Engine.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.DataStoreSettings.Engine.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + type_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_DataStoreSettings_Engine_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreSettings.Engine getDefaultInstanceForType() { + return com.google.cloud.ces.v1.DataStoreSettings.Engine.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreSettings.Engine build() { + com.google.cloud.ces.v1.DataStoreSettings.Engine result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreSettings.Engine buildPartial() { + com.google.cloud.ces.v1.DataStoreSettings.Engine result = + new com.google.cloud.ces.v1.DataStoreSettings.Engine(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.DataStoreSettings.Engine result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.DataStoreSettings.Engine) { + return mergeFrom((com.google.cloud.ces.v1.DataStoreSettings.Engine) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.DataStoreSettings.Engine other) { + if (other == com.google.cloud.ces.v1.DataStoreSettings.Engine.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + type_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +       * Output only. The resource name of the engine.
      +       * Format:
      +       * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
      +       * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Output only. The resource name of the engine.
      +       * Format:
      +       * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
      +       * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Output only. The resource name of the engine.
      +       * Format:
      +       * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
      +       * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Output only. The resource name of the engine.
      +       * Format:
      +       * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
      +       * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Output only. The resource name of the engine.
      +       * Format:
      +       * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
      +       * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int type_ = 0; + + /** + * + * + *
      +       * Output only. The type of the engine.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreSettings.Engine.Type type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
      +       * Output only. The type of the engine.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreSettings.Engine.Type type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Output only. The type of the engine.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreSettings.Engine.Type type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreSettings.Engine.Type getType() { + com.google.cloud.ces.v1.DataStoreSettings.Engine.Type result = + com.google.cloud.ces.v1.DataStoreSettings.Engine.Type.forNumber(type_); + return result == null + ? com.google.cloud.ces.v1.DataStoreSettings.Engine.Type.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +       * Output only. The type of the engine.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreSettings.Engine.Type type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.ces.v1.DataStoreSettings.Engine.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Output only. The type of the engine.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreSettings.Engine.Type type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000002); + type_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.DataStoreSettings.Engine) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.DataStoreSettings.Engine) + private static final com.google.cloud.ces.v1.DataStoreSettings.Engine DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.DataStoreSettings.Engine(); + } + + public static com.google.cloud.ces.v1.DataStoreSettings.Engine getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Engine parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreSettings.Engine getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int ENGINES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List engines_; + + /** + * + * + *
      +   * Output only. The engines for the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreSettings.Engine engines = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getEnginesList() { + return engines_; + } + + /** + * + * + *
      +   * Output only. The engines for the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreSettings.Engine engines = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getEnginesOrBuilderList() { + return engines_; + } + + /** + * + * + *
      +   * Output only. The engines for the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreSettings.Engine engines = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getEnginesCount() { + return engines_.size(); + } + + /** + * + * + *
      +   * Output only. The engines for the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreSettings.Engine engines = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreSettings.Engine getEngines(int index) { + return engines_.get(index); + } + + /** + * + * + *
      +   * Output only. The engines for the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreSettings.Engine engines = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreSettings.EngineOrBuilder getEnginesOrBuilder(int index) { + return engines_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < engines_.size(); i++) { + output.writeMessage(3, engines_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < engines_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, engines_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.DataStoreSettings)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.DataStoreSettings other = + (com.google.cloud.ces.v1.DataStoreSettings) obj; + + if (!getEnginesList().equals(other.getEnginesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEnginesCount() > 0) { + hash = (37 * hash) + ENGINES_FIELD_NUMBER; + hash = (53 * hash) + getEnginesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.DataStoreSettings parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.DataStoreSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Data store related settings for the app.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DataStoreSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.DataStoreSettings) + com.google.cloud.ces.v1.DataStoreSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_DataStoreSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_DataStoreSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DataStoreSettings.class, + com.google.cloud.ces.v1.DataStoreSettings.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.DataStoreSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (enginesBuilder_ == null) { + engines_ = java.util.Collections.emptyList(); + } else { + engines_ = null; + enginesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_DataStoreSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreSettings getDefaultInstanceForType() { + return com.google.cloud.ces.v1.DataStoreSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreSettings build() { + com.google.cloud.ces.v1.DataStoreSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreSettings buildPartial() { + com.google.cloud.ces.v1.DataStoreSettings result = + new com.google.cloud.ces.v1.DataStoreSettings(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1.DataStoreSettings result) { + if (enginesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + engines_ = java.util.Collections.unmodifiableList(engines_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.engines_ = engines_; + } else { + result.engines_ = enginesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.DataStoreSettings result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.DataStoreSettings) { + return mergeFrom((com.google.cloud.ces.v1.DataStoreSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.DataStoreSettings other) { + if (other == com.google.cloud.ces.v1.DataStoreSettings.getDefaultInstance()) return this; + if (enginesBuilder_ == null) { + if (!other.engines_.isEmpty()) { + if (engines_.isEmpty()) { + engines_ = other.engines_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEnginesIsMutable(); + engines_.addAll(other.engines_); + } + onChanged(); + } + } else { + if (!other.engines_.isEmpty()) { + if (enginesBuilder_.isEmpty()) { + enginesBuilder_.dispose(); + enginesBuilder_ = null; + engines_ = other.engines_; + bitField0_ = (bitField0_ & ~0x00000001); + enginesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetEnginesFieldBuilder() + : null; + } else { + enginesBuilder_.addAllMessages(other.engines_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 26: + { + com.google.cloud.ces.v1.DataStoreSettings.Engine m = + input.readMessage( + com.google.cloud.ces.v1.DataStoreSettings.Engine.parser(), + extensionRegistry); + if (enginesBuilder_ == null) { + ensureEnginesIsMutable(); + engines_.add(m); + } else { + enginesBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List engines_ = + java.util.Collections.emptyList(); + + private void ensureEnginesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + engines_ = + new java.util.ArrayList(engines_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.DataStoreSettings.Engine, + com.google.cloud.ces.v1.DataStoreSettings.Engine.Builder, + com.google.cloud.ces.v1.DataStoreSettings.EngineOrBuilder> + enginesBuilder_; + + /** + * + * + *
      +     * Output only. The engines for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreSettings.Engine engines = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getEnginesList() { + if (enginesBuilder_ == null) { + return java.util.Collections.unmodifiableList(engines_); + } else { + return enginesBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Output only. The engines for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreSettings.Engine engines = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getEnginesCount() { + if (enginesBuilder_ == null) { + return engines_.size(); + } else { + return enginesBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Output only. The engines for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreSettings.Engine engines = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1.DataStoreSettings.Engine getEngines(int index) { + if (enginesBuilder_ == null) { + return engines_.get(index); + } else { + return enginesBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Output only. The engines for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreSettings.Engine engines = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEngines(int index, com.google.cloud.ces.v1.DataStoreSettings.Engine value) { + if (enginesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnginesIsMutable(); + engines_.set(index, value); + onChanged(); + } else { + enginesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Output only. The engines for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreSettings.Engine engines = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEngines( + int index, com.google.cloud.ces.v1.DataStoreSettings.Engine.Builder builderForValue) { + if (enginesBuilder_ == null) { + ensureEnginesIsMutable(); + engines_.set(index, builderForValue.build()); + onChanged(); + } else { + enginesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Output only. The engines for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreSettings.Engine engines = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addEngines(com.google.cloud.ces.v1.DataStoreSettings.Engine value) { + if (enginesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnginesIsMutable(); + engines_.add(value); + onChanged(); + } else { + enginesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Output only. The engines for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreSettings.Engine engines = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addEngines(int index, com.google.cloud.ces.v1.DataStoreSettings.Engine value) { + if (enginesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnginesIsMutable(); + engines_.add(index, value); + onChanged(); + } else { + enginesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Output only. The engines for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreSettings.Engine engines = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addEngines( + com.google.cloud.ces.v1.DataStoreSettings.Engine.Builder builderForValue) { + if (enginesBuilder_ == null) { + ensureEnginesIsMutable(); + engines_.add(builderForValue.build()); + onChanged(); + } else { + enginesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Output only. The engines for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreSettings.Engine engines = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addEngines( + int index, com.google.cloud.ces.v1.DataStoreSettings.Engine.Builder builderForValue) { + if (enginesBuilder_ == null) { + ensureEnginesIsMutable(); + engines_.add(index, builderForValue.build()); + onChanged(); + } else { + enginesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Output only. The engines for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreSettings.Engine engines = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllEngines( + java.lang.Iterable values) { + if (enginesBuilder_ == null) { + ensureEnginesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, engines_); + onChanged(); + } else { + enginesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Output only. The engines for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreSettings.Engine engines = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEngines() { + if (enginesBuilder_ == null) { + engines_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + enginesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Output only. The engines for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreSettings.Engine engines = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeEngines(int index) { + if (enginesBuilder_ == null) { + ensureEnginesIsMutable(); + engines_.remove(index); + onChanged(); + } else { + enginesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Output only. The engines for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreSettings.Engine engines = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1.DataStoreSettings.Engine.Builder getEnginesBuilder(int index) { + return internalGetEnginesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Output only. The engines for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreSettings.Engine engines = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1.DataStoreSettings.EngineOrBuilder getEnginesOrBuilder( + int index) { + if (enginesBuilder_ == null) { + return engines_.get(index); + } else { + return enginesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Output only. The engines for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreSettings.Engine engines = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getEnginesOrBuilderList() { + if (enginesBuilder_ != null) { + return enginesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(engines_); + } + } + + /** + * + * + *
      +     * Output only. The engines for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreSettings.Engine engines = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1.DataStoreSettings.Engine.Builder addEnginesBuilder() { + return internalGetEnginesFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.DataStoreSettings.Engine.getDefaultInstance()); + } + + /** + * + * + *
      +     * Output only. The engines for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreSettings.Engine engines = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1.DataStoreSettings.Engine.Builder addEnginesBuilder(int index) { + return internalGetEnginesFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.DataStoreSettings.Engine.getDefaultInstance()); + } + + /** + * + * + *
      +     * Output only. The engines for the app.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreSettings.Engine engines = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getEnginesBuilderList() { + return internalGetEnginesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.DataStoreSettings.Engine, + com.google.cloud.ces.v1.DataStoreSettings.Engine.Builder, + com.google.cloud.ces.v1.DataStoreSettings.EngineOrBuilder> + internalGetEnginesFieldBuilder() { + if (enginesBuilder_ == null) { + enginesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.DataStoreSettings.Engine, + com.google.cloud.ces.v1.DataStoreSettings.Engine.Builder, + com.google.cloud.ces.v1.DataStoreSettings.EngineOrBuilder>( + engines_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + engines_ = null; + } + return enginesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.DataStoreSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.DataStoreSettings) + private static final com.google.cloud.ces.v1.DataStoreSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.DataStoreSettings(); + } + + public static com.google.cloud.ces.v1.DataStoreSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataStoreSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DataStoreSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DataStoreSettingsOrBuilder.java new file mode 100644 index 000000000000..cb2a22c3cc12 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DataStoreSettingsOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface DataStoreSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.DataStoreSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Output only. The engines for the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreSettings.Engine engines = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getEnginesList(); + + /** + * + * + *
      +   * Output only. The engines for the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreSettings.Engine engines = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.ces.v1.DataStoreSettings.Engine getEngines(int index); + + /** + * + * + *
      +   * Output only. The engines for the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreSettings.Engine engines = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getEnginesCount(); + + /** + * + * + *
      +   * Output only. The engines for the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreSettings.Engine engines = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getEnginesOrBuilderList(); + + /** + * + * + *
      +   * Output only. The engines for the app.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreSettings.Engine engines = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.ces.v1.DataStoreSettings.EngineOrBuilder getEnginesOrBuilder(int index); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DataStoreTool.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DataStoreTool.java new file mode 100644 index 000000000000..150390a25e15 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DataStoreTool.java @@ -0,0 +1,17130 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/data_store_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Tool to retrieve from Vertex AI Search datastore or engine for grounding.
      + * Accepts either a datastore or an engine, but not both.
      + * See Vertex AI Search:
      + * https://cloud.google.com/generative-ai-app-builder/docs/enterprise-search-introduction.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DataStoreTool} + */ +@com.google.protobuf.Generated +public final class DataStoreTool extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.DataStoreTool) + DataStoreToolOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DataStoreTool"); + } + + // Use DataStoreTool.newBuilder() to construct. + private DataStoreTool(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DataStoreTool() { + name_ = ""; + description_ = ""; + boostSpecs_ = java.util.Collections.emptyList(); + modalityConfigs_ = java.util.Collections.emptyList(); + filterParameterBehavior_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DataStoreTool.class, + com.google.cloud.ces.v1.DataStoreTool.Builder.class); + } + + /** + * + * + *
      +   * Filter parameter behavior.
      +   * 
      + * + * Protobuf enum {@code google.cloud.ces.v1.DataStoreTool.FilterParameterBehavior} + */ + public enum FilterParameterBehavior implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Default filter behavior.
      +     * Include filter parameter for connector datastores.
      +     * For the rest of the datastore types, the filter input parameter is
      +     * omitted.
      +     * 
      + * + * FILTER_PARAMETER_BEHAVIOR_UNSPECIFIED = 0; + */ + FILTER_PARAMETER_BEHAVIOR_UNSPECIFIED(0), + /** + * + * + *
      +     * Always include filter parameter for all datastore types.
      +     * 
      + * + * ALWAYS_INCLUDE = 2; + */ + ALWAYS_INCLUDE(2), + /** + * + * + *
      +     * The filter parameter is never included in the list of tool parameters,
      +     * regardless of the datastore type.
      +     * 
      + * + * NEVER_INCLUDE = 3; + */ + NEVER_INCLUDE(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FilterParameterBehavior"); + } + + /** + * + * + *
      +     * Default filter behavior.
      +     * Include filter parameter for connector datastores.
      +     * For the rest of the datastore types, the filter input parameter is
      +     * omitted.
      +     * 
      + * + * FILTER_PARAMETER_BEHAVIOR_UNSPECIFIED = 0; + */ + public static final int FILTER_PARAMETER_BEHAVIOR_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * Always include filter parameter for all datastore types.
      +     * 
      + * + * ALWAYS_INCLUDE = 2; + */ + public static final int ALWAYS_INCLUDE_VALUE = 2; + + /** + * + * + *
      +     * The filter parameter is never included in the list of tool parameters,
      +     * regardless of the datastore type.
      +     * 
      + * + * NEVER_INCLUDE = 3; + */ + public static final int NEVER_INCLUDE_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FilterParameterBehavior valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static FilterParameterBehavior forNumber(int value) { + switch (value) { + case 0: + return FILTER_PARAMETER_BEHAVIOR_UNSPECIFIED; + case 2: + return ALWAYS_INCLUDE; + case 3: + return NEVER_INCLUDE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FilterParameterBehavior findValueByNumber(int number) { + return FilterParameterBehavior.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStoreTool.getDescriptor().getEnumTypes().get(0); + } + + private static final FilterParameterBehavior[] VALUES = values(); + + public static FilterParameterBehavior valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private FilterParameterBehavior(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.DataStoreTool.FilterParameterBehavior) + } + + public interface RewriterConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.DataStoreTool.RewriterConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Required. Configurations for the LLM model.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the modelSettings field is set. + */ + boolean hasModelSettings(); + + /** + * + * + *
      +     * Required. Configurations for the LLM model.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The modelSettings. + */ + com.google.cloud.ces.v1.ModelSettings getModelSettings(); + + /** + * + * + *
      +     * Required. Configurations for the LLM model.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.ModelSettingsOrBuilder getModelSettingsOrBuilder(); + + /** + * + * + *
      +     * Optional. The prompt definition. If not set, default prompt will be used.
      +     * 
      + * + * string prompt = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The prompt. + */ + java.lang.String getPrompt(); + + /** + * + * + *
      +     * Optional. The prompt definition. If not set, default prompt will be used.
      +     * 
      + * + * string prompt = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for prompt. + */ + com.google.protobuf.ByteString getPromptBytes(); + + /** + * + * + *
      +     * Optional. Whether the rewriter is disabled.
      +     * 
      + * + * bool disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + boolean getDisabled(); + } + + /** + * + * + *
      +   * Rewriter configuration.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DataStoreTool.RewriterConfig} + */ + public static final class RewriterConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.DataStoreTool.RewriterConfig) + RewriterConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RewriterConfig"); + } + + // Use RewriterConfig.newBuilder() to construct. + private RewriterConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RewriterConfig() { + prompt_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_RewriterConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_RewriterConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DataStoreTool.RewriterConfig.class, + com.google.cloud.ces.v1.DataStoreTool.RewriterConfig.Builder.class); + } + + private int bitField0_; + public static final int MODEL_SETTINGS_FIELD_NUMBER = 1; + private com.google.cloud.ces.v1.ModelSettings modelSettings_; + + /** + * + * + *
      +     * Required. Configurations for the LLM model.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the modelSettings field is set. + */ + @java.lang.Override + public boolean hasModelSettings() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Required. Configurations for the LLM model.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The modelSettings. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ModelSettings getModelSettings() { + return modelSettings_ == null + ? com.google.cloud.ces.v1.ModelSettings.getDefaultInstance() + : modelSettings_; + } + + /** + * + * + *
      +     * Required. Configurations for the LLM model.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ModelSettingsOrBuilder getModelSettingsOrBuilder() { + return modelSettings_ == null + ? com.google.cloud.ces.v1.ModelSettings.getDefaultInstance() + : modelSettings_; + } + + public static final int PROMPT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object prompt_ = ""; + + /** + * + * + *
      +     * Optional. The prompt definition. If not set, default prompt will be used.
      +     * 
      + * + * string prompt = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The prompt. + */ + @java.lang.Override + public java.lang.String getPrompt() { + java.lang.Object ref = prompt_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prompt_ = s; + return s; + } + } + + /** + * + * + *
      +     * Optional. The prompt definition. If not set, default prompt will be used.
      +     * 
      + * + * string prompt = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for prompt. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPromptBytes() { + java.lang.Object ref = prompt_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + prompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISABLED_FIELD_NUMBER = 3; + private boolean disabled_ = false; + + /** + * + * + *
      +     * Optional. Whether the rewriter is disabled.
      +     * 
      + * + * bool disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getModelSettings()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(prompt_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, prompt_); + } + if (disabled_ != false) { + output.writeBool(3, disabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getModelSettings()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(prompt_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, prompt_); + } + if (disabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, disabled_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.DataStoreTool.RewriterConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.DataStoreTool.RewriterConfig other = + (com.google.cloud.ces.v1.DataStoreTool.RewriterConfig) obj; + + if (hasModelSettings() != other.hasModelSettings()) return false; + if (hasModelSettings()) { + if (!getModelSettings().equals(other.getModelSettings())) return false; + } + if (!getPrompt().equals(other.getPrompt())) return false; + if (getDisabled() != other.getDisabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasModelSettings()) { + hash = (37 * hash) + MODEL_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getModelSettings().hashCode(); + } + hash = (37 * hash) + PROMPT_FIELD_NUMBER; + hash = (53 * hash) + getPrompt().hashCode(); + hash = (37 * hash) + DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.DataStoreTool.RewriterConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool.RewriterConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.RewriterConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool.RewriterConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.RewriterConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool.RewriterConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.RewriterConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool.RewriterConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.RewriterConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool.RewriterConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.RewriterConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool.RewriterConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.DataStoreTool.RewriterConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Rewriter configuration.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DataStoreTool.RewriterConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.DataStoreTool.RewriterConfig) + com.google.cloud.ces.v1.DataStoreTool.RewriterConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_RewriterConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_RewriterConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DataStoreTool.RewriterConfig.class, + com.google.cloud.ces.v1.DataStoreTool.RewriterConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.DataStoreTool.RewriterConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetModelSettingsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + modelSettings_ = null; + if (modelSettingsBuilder_ != null) { + modelSettingsBuilder_.dispose(); + modelSettingsBuilder_ = null; + } + prompt_ = ""; + disabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_RewriterConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.RewriterConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1.DataStoreTool.RewriterConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.RewriterConfig build() { + com.google.cloud.ces.v1.DataStoreTool.RewriterConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.RewriterConfig buildPartial() { + com.google.cloud.ces.v1.DataStoreTool.RewriterConfig result = + new com.google.cloud.ces.v1.DataStoreTool.RewriterConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.DataStoreTool.RewriterConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelSettings_ = + modelSettingsBuilder_ == null ? modelSettings_ : modelSettingsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.prompt_ = prompt_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.disabled_ = disabled_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.DataStoreTool.RewriterConfig) { + return mergeFrom((com.google.cloud.ces.v1.DataStoreTool.RewriterConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.DataStoreTool.RewriterConfig other) { + if (other == com.google.cloud.ces.v1.DataStoreTool.RewriterConfig.getDefaultInstance()) + return this; + if (other.hasModelSettings()) { + mergeModelSettings(other.getModelSettings()); + } + if (!other.getPrompt().isEmpty()) { + prompt_ = other.prompt_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetModelSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + prompt_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + disabled_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.ces.v1.ModelSettings modelSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ModelSettings, + com.google.cloud.ces.v1.ModelSettings.Builder, + com.google.cloud.ces.v1.ModelSettingsOrBuilder> + modelSettingsBuilder_; + + /** + * + * + *
      +       * Required. Configurations for the LLM model.
      +       * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the modelSettings field is set. + */ + public boolean hasModelSettings() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +       * Required. Configurations for the LLM model.
      +       * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The modelSettings. + */ + public com.google.cloud.ces.v1.ModelSettings getModelSettings() { + if (modelSettingsBuilder_ == null) { + return modelSettings_ == null + ? com.google.cloud.ces.v1.ModelSettings.getDefaultInstance() + : modelSettings_; + } else { + return modelSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
      +       * Required. Configurations for the LLM model.
      +       * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setModelSettings(com.google.cloud.ces.v1.ModelSettings value) { + if (modelSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modelSettings_ = value; + } else { + modelSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. Configurations for the LLM model.
      +       * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setModelSettings( + com.google.cloud.ces.v1.ModelSettings.Builder builderForValue) { + if (modelSettingsBuilder_ == null) { + modelSettings_ = builderForValue.build(); + } else { + modelSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. Configurations for the LLM model.
      +       * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeModelSettings(com.google.cloud.ces.v1.ModelSettings value) { + if (modelSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && modelSettings_ != null + && modelSettings_ != com.google.cloud.ces.v1.ModelSettings.getDefaultInstance()) { + getModelSettingsBuilder().mergeFrom(value); + } else { + modelSettings_ = value; + } + } else { + modelSettingsBuilder_.mergeFrom(value); + } + if (modelSettings_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +       * Required. Configurations for the LLM model.
      +       * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearModelSettings() { + bitField0_ = (bitField0_ & ~0x00000001); + modelSettings_ = null; + if (modelSettingsBuilder_ != null) { + modelSettingsBuilder_.dispose(); + modelSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. Configurations for the LLM model.
      +       * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.ModelSettings.Builder getModelSettingsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetModelSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Required. Configurations for the LLM model.
      +       * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.ModelSettingsOrBuilder getModelSettingsOrBuilder() { + if (modelSettingsBuilder_ != null) { + return modelSettingsBuilder_.getMessageOrBuilder(); + } else { + return modelSettings_ == null + ? com.google.cloud.ces.v1.ModelSettings.getDefaultInstance() + : modelSettings_; + } + } + + /** + * + * + *
      +       * Required. Configurations for the LLM model.
      +       * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ModelSettings, + com.google.cloud.ces.v1.ModelSettings.Builder, + com.google.cloud.ces.v1.ModelSettingsOrBuilder> + internalGetModelSettingsFieldBuilder() { + if (modelSettingsBuilder_ == null) { + modelSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ModelSettings, + com.google.cloud.ces.v1.ModelSettings.Builder, + com.google.cloud.ces.v1.ModelSettingsOrBuilder>( + getModelSettings(), getParentForChildren(), isClean()); + modelSettings_ = null; + } + return modelSettingsBuilder_; + } + + private java.lang.Object prompt_ = ""; + + /** + * + * + *
      +       * Optional. The prompt definition. If not set, default prompt will be used.
      +       * 
      + * + * string prompt = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The prompt. + */ + public java.lang.String getPrompt() { + java.lang.Object ref = prompt_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prompt_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Optional. The prompt definition. If not set, default prompt will be used.
      +       * 
      + * + * string prompt = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for prompt. + */ + public com.google.protobuf.ByteString getPromptBytes() { + java.lang.Object ref = prompt_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + prompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Optional. The prompt definition. If not set, default prompt will be used.
      +       * 
      + * + * string prompt = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The prompt to set. + * @return This builder for chaining. + */ + public Builder setPrompt(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + prompt_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The prompt definition. If not set, default prompt will be used.
      +       * 
      + * + * string prompt = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPrompt() { + prompt_ = getDefaultInstance().getPrompt(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The prompt definition. If not set, default prompt will be used.
      +       * 
      + * + * string prompt = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for prompt to set. + * @return This builder for chaining. + */ + public Builder setPromptBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + prompt_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean disabled_; + + /** + * + * + *
      +       * Optional. Whether the rewriter is disabled.
      +       * 
      + * + * bool disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + + /** + * + * + *
      +       * Optional. Whether the rewriter is disabled.
      +       * 
      + * + * bool disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. Whether the rewriter is disabled.
      +       * 
      + * + * bool disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + bitField0_ = (bitField0_ & ~0x00000004); + disabled_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.DataStoreTool.RewriterConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.DataStoreTool.RewriterConfig) + private static final com.google.cloud.ces.v1.DataStoreTool.RewriterConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.DataStoreTool.RewriterConfig(); + } + + public static com.google.cloud.ces.v1.DataStoreTool.RewriterConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RewriterConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.RewriterConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SummarizationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.DataStoreTool.SummarizationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Optional. Configurations for the LLM model.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelSettings field is set. + */ + boolean hasModelSettings(); + + /** + * + * + *
      +     * Optional. Configurations for the LLM model.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelSettings. + */ + com.google.cloud.ces.v1.ModelSettings getModelSettings(); + + /** + * + * + *
      +     * Optional. Configurations for the LLM model.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ModelSettingsOrBuilder getModelSettingsOrBuilder(); + + /** + * + * + *
      +     * Optional. The prompt definition. If not set, default prompt will be used.
      +     * 
      + * + * string prompt = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The prompt. + */ + java.lang.String getPrompt(); + + /** + * + * + *
      +     * Optional. The prompt definition. If not set, default prompt will be used.
      +     * 
      + * + * string prompt = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for prompt. + */ + com.google.protobuf.ByteString getPromptBytes(); + + /** + * + * + *
      +     * Optional. Whether summarization is disabled.
      +     * 
      + * + * bool disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + boolean getDisabled(); + } + + /** + * + * + *
      +   * Summarization configuration.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DataStoreTool.SummarizationConfig} + */ + public static final class SummarizationConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.DataStoreTool.SummarizationConfig) + SummarizationConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SummarizationConfig"); + } + + // Use SummarizationConfig.newBuilder() to construct. + private SummarizationConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SummarizationConfig() { + prompt_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_SummarizationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_SummarizationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig.class, + com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig.Builder.class); + } + + private int bitField0_; + public static final int MODEL_SETTINGS_FIELD_NUMBER = 1; + private com.google.cloud.ces.v1.ModelSettings modelSettings_; + + /** + * + * + *
      +     * Optional. Configurations for the LLM model.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelSettings field is set. + */ + @java.lang.Override + public boolean hasModelSettings() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Optional. Configurations for the LLM model.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelSettings. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ModelSettings getModelSettings() { + return modelSettings_ == null + ? com.google.cloud.ces.v1.ModelSettings.getDefaultInstance() + : modelSettings_; + } + + /** + * + * + *
      +     * Optional. Configurations for the LLM model.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ModelSettingsOrBuilder getModelSettingsOrBuilder() { + return modelSettings_ == null + ? com.google.cloud.ces.v1.ModelSettings.getDefaultInstance() + : modelSettings_; + } + + public static final int PROMPT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object prompt_ = ""; + + /** + * + * + *
      +     * Optional. The prompt definition. If not set, default prompt will be used.
      +     * 
      + * + * string prompt = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The prompt. + */ + @java.lang.Override + public java.lang.String getPrompt() { + java.lang.Object ref = prompt_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prompt_ = s; + return s; + } + } + + /** + * + * + *
      +     * Optional. The prompt definition. If not set, default prompt will be used.
      +     * 
      + * + * string prompt = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for prompt. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPromptBytes() { + java.lang.Object ref = prompt_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + prompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISABLED_FIELD_NUMBER = 3; + private boolean disabled_ = false; + + /** + * + * + *
      +     * Optional. Whether summarization is disabled.
      +     * 
      + * + * bool disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getModelSettings()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(prompt_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, prompt_); + } + if (disabled_ != false) { + output.writeBool(3, disabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getModelSettings()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(prompt_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, prompt_); + } + if (disabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, disabled_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig other = + (com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig) obj; + + if (hasModelSettings() != other.hasModelSettings()) return false; + if (hasModelSettings()) { + if (!getModelSettings().equals(other.getModelSettings())) return false; + } + if (!getPrompt().equals(other.getPrompt())) return false; + if (getDisabled() != other.getDisabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasModelSettings()) { + hash = (37 * hash) + MODEL_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getModelSettings().hashCode(); + } + hash = (37 * hash) + PROMPT_FIELD_NUMBER; + hash = (53 * hash) + getPrompt().hashCode(); + hash = (37 * hash) + DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Summarization configuration.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DataStoreTool.SummarizationConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.DataStoreTool.SummarizationConfig) + com.google.cloud.ces.v1.DataStoreTool.SummarizationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_SummarizationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_SummarizationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig.class, + com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetModelSettingsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + modelSettings_ = null; + if (modelSettingsBuilder_ != null) { + modelSettingsBuilder_.dispose(); + modelSettingsBuilder_ = null; + } + prompt_ = ""; + disabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_SummarizationConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig build() { + com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig buildPartial() { + com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig result = + new com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelSettings_ = + modelSettingsBuilder_ == null ? modelSettings_ : modelSettingsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.prompt_ = prompt_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.disabled_ = disabled_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig) { + return mergeFrom((com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig other) { + if (other == com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig.getDefaultInstance()) + return this; + if (other.hasModelSettings()) { + mergeModelSettings(other.getModelSettings()); + } + if (!other.getPrompt().isEmpty()) { + prompt_ = other.prompt_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetModelSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + prompt_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + disabled_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.ces.v1.ModelSettings modelSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ModelSettings, + com.google.cloud.ces.v1.ModelSettings.Builder, + com.google.cloud.ces.v1.ModelSettingsOrBuilder> + modelSettingsBuilder_; + + /** + * + * + *
      +       * Optional. Configurations for the LLM model.
      +       * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelSettings field is set. + */ + public boolean hasModelSettings() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +       * Optional. Configurations for the LLM model.
      +       * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelSettings. + */ + public com.google.cloud.ces.v1.ModelSettings getModelSettings() { + if (modelSettingsBuilder_ == null) { + return modelSettings_ == null + ? com.google.cloud.ces.v1.ModelSettings.getDefaultInstance() + : modelSettings_; + } else { + return modelSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
      +       * Optional. Configurations for the LLM model.
      +       * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setModelSettings(com.google.cloud.ces.v1.ModelSettings value) { + if (modelSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modelSettings_ = value; + } else { + modelSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. Configurations for the LLM model.
      +       * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setModelSettings( + com.google.cloud.ces.v1.ModelSettings.Builder builderForValue) { + if (modelSettingsBuilder_ == null) { + modelSettings_ = builderForValue.build(); + } else { + modelSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. Configurations for the LLM model.
      +       * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeModelSettings(com.google.cloud.ces.v1.ModelSettings value) { + if (modelSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && modelSettings_ != null + && modelSettings_ != com.google.cloud.ces.v1.ModelSettings.getDefaultInstance()) { + getModelSettingsBuilder().mergeFrom(value); + } else { + modelSettings_ = value; + } + } else { + modelSettingsBuilder_.mergeFrom(value); + } + if (modelSettings_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +       * Optional. Configurations for the LLM model.
      +       * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearModelSettings() { + bitField0_ = (bitField0_ & ~0x00000001); + modelSettings_ = null; + if (modelSettingsBuilder_ != null) { + modelSettingsBuilder_.dispose(); + modelSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. Configurations for the LLM model.
      +       * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ModelSettings.Builder getModelSettingsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetModelSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Optional. Configurations for the LLM model.
      +       * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ModelSettingsOrBuilder getModelSettingsOrBuilder() { + if (modelSettingsBuilder_ != null) { + return modelSettingsBuilder_.getMessageOrBuilder(); + } else { + return modelSettings_ == null + ? com.google.cloud.ces.v1.ModelSettings.getDefaultInstance() + : modelSettings_; + } + } + + /** + * + * + *
      +       * Optional. Configurations for the LLM model.
      +       * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ModelSettings, + com.google.cloud.ces.v1.ModelSettings.Builder, + com.google.cloud.ces.v1.ModelSettingsOrBuilder> + internalGetModelSettingsFieldBuilder() { + if (modelSettingsBuilder_ == null) { + modelSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ModelSettings, + com.google.cloud.ces.v1.ModelSettings.Builder, + com.google.cloud.ces.v1.ModelSettingsOrBuilder>( + getModelSettings(), getParentForChildren(), isClean()); + modelSettings_ = null; + } + return modelSettingsBuilder_; + } + + private java.lang.Object prompt_ = ""; + + /** + * + * + *
      +       * Optional. The prompt definition. If not set, default prompt will be used.
      +       * 
      + * + * string prompt = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The prompt. + */ + public java.lang.String getPrompt() { + java.lang.Object ref = prompt_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prompt_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Optional. The prompt definition. If not set, default prompt will be used.
      +       * 
      + * + * string prompt = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for prompt. + */ + public com.google.protobuf.ByteString getPromptBytes() { + java.lang.Object ref = prompt_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + prompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Optional. The prompt definition. If not set, default prompt will be used.
      +       * 
      + * + * string prompt = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The prompt to set. + * @return This builder for chaining. + */ + public Builder setPrompt(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + prompt_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The prompt definition. If not set, default prompt will be used.
      +       * 
      + * + * string prompt = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPrompt() { + prompt_ = getDefaultInstance().getPrompt(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The prompt definition. If not set, default prompt will be used.
      +       * 
      + * + * string prompt = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for prompt to set. + * @return This builder for chaining. + */ + public Builder setPromptBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + prompt_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean disabled_; + + /** + * + * + *
      +       * Optional. Whether summarization is disabled.
      +       * 
      + * + * bool disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + + /** + * + * + *
      +       * Optional. Whether summarization is disabled.
      +       * 
      + * + * bool disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. Whether summarization is disabled.
      +       * 
      + * + * bool disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + bitField0_ = (bitField0_ & ~0x00000004); + disabled_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.DataStoreTool.SummarizationConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.DataStoreTool.SummarizationConfig) + private static final com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig(); + } + + public static com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SummarizationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface GroundingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.DataStoreTool.GroundingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Optional. The groundedness threshold of the answer based on the retrieved
      +     * sources. The value has a configurable range of [1, 5]. The level is used
      +     * to threshold the groundedness of the answer, meaning that all responses
      +     * with a groundedness score below the threshold will fall back to returning
      +     * relevant snippets only.
      +     *
      +     * For example, a level of 3 means that the groundedness score must be
      +     * 3 or higher for the response to be returned.
      +     * 
      + * + * float grounding_level = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The groundingLevel. + */ + float getGroundingLevel(); + + /** + * + * + *
      +     * Optional. Whether grounding is disabled.
      +     * 
      + * + * bool disabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + boolean getDisabled(); + } + + /** + * + * + *
      +   * Grounding configuration.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DataStoreTool.GroundingConfig} + */ + public static final class GroundingConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.DataStoreTool.GroundingConfig) + GroundingConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GroundingConfig"); + } + + // Use GroundingConfig.newBuilder() to construct. + private GroundingConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GroundingConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_GroundingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_GroundingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DataStoreTool.GroundingConfig.class, + com.google.cloud.ces.v1.DataStoreTool.GroundingConfig.Builder.class); + } + + public static final int GROUNDING_LEVEL_FIELD_NUMBER = 1; + private float groundingLevel_ = 0F; + + /** + * + * + *
      +     * Optional. The groundedness threshold of the answer based on the retrieved
      +     * sources. The value has a configurable range of [1, 5]. The level is used
      +     * to threshold the groundedness of the answer, meaning that all responses
      +     * with a groundedness score below the threshold will fall back to returning
      +     * relevant snippets only.
      +     *
      +     * For example, a level of 3 means that the groundedness score must be
      +     * 3 or higher for the response to be returned.
      +     * 
      + * + * float grounding_level = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The groundingLevel. + */ + @java.lang.Override + public float getGroundingLevel() { + return groundingLevel_; + } + + public static final int DISABLED_FIELD_NUMBER = 2; + private boolean disabled_ = false; + + /** + * + * + *
      +     * Optional. Whether grounding is disabled.
      +     * 
      + * + * bool disabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (java.lang.Float.floatToRawIntBits(groundingLevel_) != 0) { + output.writeFloat(1, groundingLevel_); + } + if (disabled_ != false) { + output.writeBool(2, disabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (java.lang.Float.floatToRawIntBits(groundingLevel_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, groundingLevel_); + } + if (disabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, disabled_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.DataStoreTool.GroundingConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.DataStoreTool.GroundingConfig other = + (com.google.cloud.ces.v1.DataStoreTool.GroundingConfig) obj; + + if (java.lang.Float.floatToIntBits(getGroundingLevel()) + != java.lang.Float.floatToIntBits(other.getGroundingLevel())) return false; + if (getDisabled() != other.getDisabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + GROUNDING_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getGroundingLevel()); + hash = (37 * hash) + DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.DataStoreTool.GroundingConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool.GroundingConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.GroundingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool.GroundingConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.GroundingConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool.GroundingConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.GroundingConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool.GroundingConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.GroundingConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool.GroundingConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.GroundingConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool.GroundingConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.DataStoreTool.GroundingConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Grounding configuration.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DataStoreTool.GroundingConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.DataStoreTool.GroundingConfig) + com.google.cloud.ces.v1.DataStoreTool.GroundingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_GroundingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_GroundingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DataStoreTool.GroundingConfig.class, + com.google.cloud.ces.v1.DataStoreTool.GroundingConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.DataStoreTool.GroundingConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + groundingLevel_ = 0F; + disabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_GroundingConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.GroundingConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1.DataStoreTool.GroundingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.GroundingConfig build() { + com.google.cloud.ces.v1.DataStoreTool.GroundingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.GroundingConfig buildPartial() { + com.google.cloud.ces.v1.DataStoreTool.GroundingConfig result = + new com.google.cloud.ces.v1.DataStoreTool.GroundingConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.DataStoreTool.GroundingConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.groundingLevel_ = groundingLevel_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.disabled_ = disabled_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.DataStoreTool.GroundingConfig) { + return mergeFrom((com.google.cloud.ces.v1.DataStoreTool.GroundingConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.DataStoreTool.GroundingConfig other) { + if (other == com.google.cloud.ces.v1.DataStoreTool.GroundingConfig.getDefaultInstance()) + return this; + if (java.lang.Float.floatToRawIntBits(other.getGroundingLevel()) != 0) { + setGroundingLevel(other.getGroundingLevel()); + } + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 13: + { + groundingLevel_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + case 16: + { + disabled_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private float groundingLevel_; + + /** + * + * + *
      +       * Optional. The groundedness threshold of the answer based on the retrieved
      +       * sources. The value has a configurable range of [1, 5]. The level is used
      +       * to threshold the groundedness of the answer, meaning that all responses
      +       * with a groundedness score below the threshold will fall back to returning
      +       * relevant snippets only.
      +       *
      +       * For example, a level of 3 means that the groundedness score must be
      +       * 3 or higher for the response to be returned.
      +       * 
      + * + * float grounding_level = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The groundingLevel. + */ + @java.lang.Override + public float getGroundingLevel() { + return groundingLevel_; + } + + /** + * + * + *
      +       * Optional. The groundedness threshold of the answer based on the retrieved
      +       * sources. The value has a configurable range of [1, 5]. The level is used
      +       * to threshold the groundedness of the answer, meaning that all responses
      +       * with a groundedness score below the threshold will fall back to returning
      +       * relevant snippets only.
      +       *
      +       * For example, a level of 3 means that the groundedness score must be
      +       * 3 or higher for the response to be returned.
      +       * 
      + * + * float grounding_level = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The groundingLevel to set. + * @return This builder for chaining. + */ + public Builder setGroundingLevel(float value) { + + groundingLevel_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The groundedness threshold of the answer based on the retrieved
      +       * sources. The value has a configurable range of [1, 5]. The level is used
      +       * to threshold the groundedness of the answer, meaning that all responses
      +       * with a groundedness score below the threshold will fall back to returning
      +       * relevant snippets only.
      +       *
      +       * For example, a level of 3 means that the groundedness score must be
      +       * 3 or higher for the response to be returned.
      +       * 
      + * + * float grounding_level = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGroundingLevel() { + bitField0_ = (bitField0_ & ~0x00000001); + groundingLevel_ = 0F; + onChanged(); + return this; + } + + private boolean disabled_; + + /** + * + * + *
      +       * Optional. Whether grounding is disabled.
      +       * 
      + * + * bool disabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + + /** + * + * + *
      +       * Optional. Whether grounding is disabled.
      +       * 
      + * + * bool disabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. Whether grounding is disabled.
      +       * 
      + * + * bool disabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + bitField0_ = (bitField0_ & ~0x00000002); + disabled_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.DataStoreTool.GroundingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.DataStoreTool.GroundingConfig) + private static final com.google.cloud.ces.v1.DataStoreTool.GroundingConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.DataStoreTool.GroundingConfig(); + } + + public static com.google.cloud.ces.v1.DataStoreTool.GroundingConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroundingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.GroundingConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DataStoreSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.DataStoreTool.DataStoreSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Optional. Filter specification for the DataStore.
      +     * See:
      +     * https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata
      +     * 
      + * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
      +     * Optional. Filter specification for the DataStore.
      +     * See:
      +     * https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata
      +     * 
      + * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
      +     * Optional. The data store.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStore data_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataStore field is set. + */ + boolean hasDataStore(); + + /** + * + * + *
      +     * Optional. The data store.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStore data_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataStore. + */ + com.google.cloud.ces.v1.DataStore getDataStore(); + + /** + * + * + *
      +     * Optional. The data store.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStore data_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.DataStoreOrBuilder getDataStoreOrBuilder(); + } + + /** + * + * + *
      +   * Configuration for searching within a specific DataStore.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DataStoreTool.DataStoreSource} + */ + public static final class DataStoreSource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.DataStoreTool.DataStoreSource) + DataStoreSourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DataStoreSource"); + } + + // Use DataStoreSource.newBuilder() to construct. + private DataStoreSource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DataStoreSource() { + filter_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_DataStoreSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_DataStoreSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DataStoreTool.DataStoreSource.class, + com.google.cloud.ces.v1.DataStoreTool.DataStoreSource.Builder.class); + } + + private int bitField0_; + public static final int FILTER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
      +     * Optional. Filter specification for the DataStore.
      +     * See:
      +     * https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata
      +     * 
      + * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
      +     * Optional. Filter specification for the DataStore.
      +     * See:
      +     * https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata
      +     * 
      + * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_STORE_FIELD_NUMBER = 4; + private com.google.cloud.ces.v1.DataStore dataStore_; + + /** + * + * + *
      +     * Optional. The data store.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStore data_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataStore field is set. + */ + @java.lang.Override + public boolean hasDataStore() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Optional. The data store.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStore data_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataStore. + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStore getDataStore() { + return dataStore_ == null + ? com.google.cloud.ces.v1.DataStore.getDefaultInstance() + : dataStore_; + } + + /** + * + * + *
      +     * Optional. The data store.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStore data_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreOrBuilder getDataStoreOrBuilder() { + return dataStore_ == null + ? com.google.cloud.ces.v1.DataStore.getDefaultInstance() + : dataStore_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, filter_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getDataStore()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, filter_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDataStore()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.DataStoreTool.DataStoreSource)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.DataStoreTool.DataStoreSource other = + (com.google.cloud.ces.v1.DataStoreTool.DataStoreSource) obj; + + if (!getFilter().equals(other.getFilter())) return false; + if (hasDataStore() != other.hasDataStore()) return false; + if (hasDataStore()) { + if (!getDataStore().equals(other.getDataStore())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + if (hasDataStore()) { + hash = (37 * hash) + DATA_STORE_FIELD_NUMBER; + hash = (53 * hash) + getDataStore().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.DataStoreTool.DataStoreSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool.DataStoreSource parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.DataStoreSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool.DataStoreSource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.DataStoreSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool.DataStoreSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.DataStoreSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool.DataStoreSource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.DataStoreSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool.DataStoreSource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.DataStoreSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool.DataStoreSource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.DataStoreTool.DataStoreSource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Configuration for searching within a specific DataStore.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DataStoreTool.DataStoreSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.DataStoreTool.DataStoreSource) + com.google.cloud.ces.v1.DataStoreTool.DataStoreSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_DataStoreSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_DataStoreSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DataStoreTool.DataStoreSource.class, + com.google.cloud.ces.v1.DataStoreTool.DataStoreSource.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.DataStoreTool.DataStoreSource.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDataStoreFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + filter_ = ""; + dataStore_ = null; + if (dataStoreBuilder_ != null) { + dataStoreBuilder_.dispose(); + dataStoreBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_DataStoreSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.DataStoreSource getDefaultInstanceForType() { + return com.google.cloud.ces.v1.DataStoreTool.DataStoreSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.DataStoreSource build() { + com.google.cloud.ces.v1.DataStoreTool.DataStoreSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.DataStoreSource buildPartial() { + com.google.cloud.ces.v1.DataStoreTool.DataStoreSource result = + new com.google.cloud.ces.v1.DataStoreTool.DataStoreSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.DataStoreTool.DataStoreSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.filter_ = filter_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dataStore_ = dataStoreBuilder_ == null ? dataStore_ : dataStoreBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.DataStoreTool.DataStoreSource) { + return mergeFrom((com.google.cloud.ces.v1.DataStoreTool.DataStoreSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.DataStoreTool.DataStoreSource other) { + if (other == com.google.cloud.ces.v1.DataStoreTool.DataStoreSource.getDefaultInstance()) + return this; + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDataStore()) { + mergeDataStore(other.getDataStore()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 34: + { + input.readMessage( + internalGetDataStoreFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object filter_ = ""; + + /** + * + * + *
      +       * Optional. Filter specification for the DataStore.
      +       * See:
      +       * https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata
      +       * 
      + * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Optional. Filter specification for the DataStore.
      +       * See:
      +       * https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata
      +       * 
      + * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Optional. Filter specification for the DataStore.
      +       * See:
      +       * https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata
      +       * 
      + * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. Filter specification for the DataStore.
      +       * See:
      +       * https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata
      +       * 
      + * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. Filter specification for the DataStore.
      +       * See:
      +       * https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata
      +       * 
      + * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.DataStore dataStore_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.DataStore, + com.google.cloud.ces.v1.DataStore.Builder, + com.google.cloud.ces.v1.DataStoreOrBuilder> + dataStoreBuilder_; + + /** + * + * + *
      +       * Optional. The data store.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStore data_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataStore field is set. + */ + public boolean hasDataStore() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +       * Optional. The data store.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStore data_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataStore. + */ + public com.google.cloud.ces.v1.DataStore getDataStore() { + if (dataStoreBuilder_ == null) { + return dataStore_ == null + ? com.google.cloud.ces.v1.DataStore.getDefaultInstance() + : dataStore_; + } else { + return dataStoreBuilder_.getMessage(); + } + } + + /** + * + * + *
      +       * Optional. The data store.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStore data_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataStore(com.google.cloud.ces.v1.DataStore value) { + if (dataStoreBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataStore_ = value; + } else { + dataStoreBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The data store.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStore data_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataStore(com.google.cloud.ces.v1.DataStore.Builder builderForValue) { + if (dataStoreBuilder_ == null) { + dataStore_ = builderForValue.build(); + } else { + dataStoreBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The data store.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStore data_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDataStore(com.google.cloud.ces.v1.DataStore value) { + if (dataStoreBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && dataStore_ != null + && dataStore_ != com.google.cloud.ces.v1.DataStore.getDefaultInstance()) { + getDataStoreBuilder().mergeFrom(value); + } else { + dataStore_ = value; + } + } else { + dataStoreBuilder_.mergeFrom(value); + } + if (dataStore_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +       * Optional. The data store.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStore data_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDataStore() { + bitField0_ = (bitField0_ & ~0x00000002); + dataStore_ = null; + if (dataStoreBuilder_ != null) { + dataStoreBuilder_.dispose(); + dataStoreBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The data store.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStore data_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStore.Builder getDataStoreBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetDataStoreFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Optional. The data store.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStore data_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStoreOrBuilder getDataStoreOrBuilder() { + if (dataStoreBuilder_ != null) { + return dataStoreBuilder_.getMessageOrBuilder(); + } else { + return dataStore_ == null + ? com.google.cloud.ces.v1.DataStore.getDefaultInstance() + : dataStore_; + } + } + + /** + * + * + *
      +       * Optional. The data store.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStore data_store = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.DataStore, + com.google.cloud.ces.v1.DataStore.Builder, + com.google.cloud.ces.v1.DataStoreOrBuilder> + internalGetDataStoreFieldBuilder() { + if (dataStoreBuilder_ == null) { + dataStoreBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.DataStore, + com.google.cloud.ces.v1.DataStore.Builder, + com.google.cloud.ces.v1.DataStoreOrBuilder>( + getDataStore(), getParentForChildren(), isClean()); + dataStore_ = null; + } + return dataStoreBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.DataStoreTool.DataStoreSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.DataStoreTool.DataStoreSource) + private static final com.google.cloud.ces.v1.DataStoreTool.DataStoreSource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.DataStoreTool.DataStoreSource(); + } + + public static com.google.cloud.ces.v1.DataStoreTool.DataStoreSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataStoreSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.DataStoreSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface EngineSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.DataStoreTool.EngineSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Required. Full resource name of the Engine.
      +     * Format:
      +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
      +     * 
      + * + * string engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The engine. + */ + java.lang.String getEngine(); + + /** + * + * + *
      +     * Required. Full resource name of the Engine.
      +     * Format:
      +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
      +     * 
      + * + * string engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for engine. + */ + com.google.protobuf.ByteString getEngineBytes(); + + /** + * + * + *
      +     * Optional. Use to target specific DataStores within the Engine.
      +     * If empty, the search applies to all DataStores associated with the
      +     * Engine.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getDataStoreSourcesList(); + + /** + * + * + *
      +     * Optional. Use to target specific DataStores within the Engine.
      +     * If empty, the search applies to all DataStores associated with the
      +     * Engine.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.DataStoreTool.DataStoreSource getDataStoreSources(int index); + + /** + * + * + *
      +     * Optional. Use to target specific DataStores within the Engine.
      +     * If empty, the search applies to all DataStores associated with the
      +     * Engine.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getDataStoreSourcesCount(); + + /** + * + * + *
      +     * Optional. Use to target specific DataStores within the Engine.
      +     * If empty, the search applies to all DataStores associated with the
      +     * Engine.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getDataStoreSourcesOrBuilderList(); + + /** + * + * + *
      +     * Optional. Use to target specific DataStores within the Engine.
      +     * If empty, the search applies to all DataStores associated with the
      +     * Engine.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.DataStoreTool.DataStoreSourceOrBuilder getDataStoreSourcesOrBuilder( + int index); + + /** + * + * + *
      +     * Optional. A filter applied to the search across the Engine. Not relevant
      +     * and not used if 'data_store_sources' is provided. See:
      +     * https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata
      +     * 
      + * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
      +     * Optional. A filter applied to the search across the Engine. Not relevant
      +     * and not used if 'data_store_sources' is provided. See:
      +     * https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata
      +     * 
      + * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + } + + /** + * + * + *
      +   * Configuration for searching within an Engine, potentially targeting
      +   * specific DataStores.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DataStoreTool.EngineSource} + */ + public static final class EngineSource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.DataStoreTool.EngineSource) + EngineSourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EngineSource"); + } + + // Use EngineSource.newBuilder() to construct. + private EngineSource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private EngineSource() { + engine_ = ""; + dataStoreSources_ = java.util.Collections.emptyList(); + filter_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_EngineSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_EngineSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DataStoreTool.EngineSource.class, + com.google.cloud.ces.v1.DataStoreTool.EngineSource.Builder.class); + } + + public static final int ENGINE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object engine_ = ""; + + /** + * + * + *
      +     * Required. Full resource name of the Engine.
      +     * Format:
      +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
      +     * 
      + * + * string engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The engine. + */ + @java.lang.Override + public java.lang.String getEngine() { + java.lang.Object ref = engine_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + engine_ = s; + return s; + } + } + + /** + * + * + *
      +     * Required. Full resource name of the Engine.
      +     * Format:
      +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
      +     * 
      + * + * string engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for engine. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEngineBytes() { + java.lang.Object ref = engine_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + engine_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_STORE_SOURCES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List dataStoreSources_; + + /** + * + * + *
      +     * Optional. Use to target specific DataStores within the Engine.
      +     * If empty, the search applies to all DataStores associated with the
      +     * Engine.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getDataStoreSourcesList() { + return dataStoreSources_; + } + + /** + * + * + *
      +     * Optional. Use to target specific DataStores within the Engine.
      +     * If empty, the search applies to all DataStores associated with the
      +     * Engine.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getDataStoreSourcesOrBuilderList() { + return dataStoreSources_; + } + + /** + * + * + *
      +     * Optional. Use to target specific DataStores within the Engine.
      +     * If empty, the search applies to all DataStores associated with the
      +     * Engine.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getDataStoreSourcesCount() { + return dataStoreSources_.size(); + } + + /** + * + * + *
      +     * Optional. Use to target specific DataStores within the Engine.
      +     * If empty, the search applies to all DataStores associated with the
      +     * Engine.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.DataStoreSource getDataStoreSources(int index) { + return dataStoreSources_.get(index); + } + + /** + * + * + *
      +     * Optional. Use to target specific DataStores within the Engine.
      +     * If empty, the search applies to all DataStores associated with the
      +     * Engine.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.DataStoreSourceOrBuilder + getDataStoreSourcesOrBuilder(int index) { + return dataStoreSources_.get(index); + } + + public static final int FILTER_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
      +     * Optional. A filter applied to the search across the Engine. Not relevant
      +     * and not used if 'data_store_sources' is provided. See:
      +     * https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata
      +     * 
      + * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
      +     * Optional. A filter applied to the search across the Engine. Not relevant
      +     * and not used if 'data_store_sources' is provided. See:
      +     * https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata
      +     * 
      + * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(engine_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, engine_); + } + for (int i = 0; i < dataStoreSources_.size(); i++) { + output.writeMessage(2, dataStoreSources_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(engine_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, engine_); + } + for (int i = 0; i < dataStoreSources_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, dataStoreSources_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, filter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.DataStoreTool.EngineSource)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.DataStoreTool.EngineSource other = + (com.google.cloud.ces.v1.DataStoreTool.EngineSource) obj; + + if (!getEngine().equals(other.getEngine())) return false; + if (!getDataStoreSourcesList().equals(other.getDataStoreSourcesList())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENGINE_FIELD_NUMBER; + hash = (53 * hash) + getEngine().hashCode(); + if (getDataStoreSourcesCount() > 0) { + hash = (37 * hash) + DATA_STORE_SOURCES_FIELD_NUMBER; + hash = (53 * hash) + getDataStoreSourcesList().hashCode(); + } + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.DataStoreTool.EngineSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool.EngineSource parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.EngineSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool.EngineSource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.EngineSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool.EngineSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.EngineSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool.EngineSource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.EngineSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool.EngineSource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.EngineSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool.EngineSource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.DataStoreTool.EngineSource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Configuration for searching within an Engine, potentially targeting
      +     * specific DataStores.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DataStoreTool.EngineSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.DataStoreTool.EngineSource) + com.google.cloud.ces.v1.DataStoreTool.EngineSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_EngineSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_EngineSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DataStoreTool.EngineSource.class, + com.google.cloud.ces.v1.DataStoreTool.EngineSource.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.DataStoreTool.EngineSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + engine_ = ""; + if (dataStoreSourcesBuilder_ == null) { + dataStoreSources_ = java.util.Collections.emptyList(); + } else { + dataStoreSources_ = null; + dataStoreSourcesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_EngineSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.EngineSource getDefaultInstanceForType() { + return com.google.cloud.ces.v1.DataStoreTool.EngineSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.EngineSource build() { + com.google.cloud.ces.v1.DataStoreTool.EngineSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.EngineSource buildPartial() { + com.google.cloud.ces.v1.DataStoreTool.EngineSource result = + new com.google.cloud.ces.v1.DataStoreTool.EngineSource(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.ces.v1.DataStoreTool.EngineSource result) { + if (dataStoreSourcesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + dataStoreSources_ = java.util.Collections.unmodifiableList(dataStoreSources_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.dataStoreSources_ = dataStoreSources_; + } else { + result.dataStoreSources_ = dataStoreSourcesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.DataStoreTool.EngineSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.engine_ = engine_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.filter_ = filter_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.DataStoreTool.EngineSource) { + return mergeFrom((com.google.cloud.ces.v1.DataStoreTool.EngineSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.DataStoreTool.EngineSource other) { + if (other == com.google.cloud.ces.v1.DataStoreTool.EngineSource.getDefaultInstance()) + return this; + if (!other.getEngine().isEmpty()) { + engine_ = other.engine_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (dataStoreSourcesBuilder_ == null) { + if (!other.dataStoreSources_.isEmpty()) { + if (dataStoreSources_.isEmpty()) { + dataStoreSources_ = other.dataStoreSources_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureDataStoreSourcesIsMutable(); + dataStoreSources_.addAll(other.dataStoreSources_); + } + onChanged(); + } + } else { + if (!other.dataStoreSources_.isEmpty()) { + if (dataStoreSourcesBuilder_.isEmpty()) { + dataStoreSourcesBuilder_.dispose(); + dataStoreSourcesBuilder_ = null; + dataStoreSources_ = other.dataStoreSources_; + bitField0_ = (bitField0_ & ~0x00000002); + dataStoreSourcesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDataStoreSourcesFieldBuilder() + : null; + } else { + dataStoreSourcesBuilder_.addAllMessages(other.dataStoreSources_); + } + } + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + engine_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.ces.v1.DataStoreTool.DataStoreSource m = + input.readMessage( + com.google.cloud.ces.v1.DataStoreTool.DataStoreSource.parser(), + extensionRegistry); + if (dataStoreSourcesBuilder_ == null) { + ensureDataStoreSourcesIsMutable(); + dataStoreSources_.add(m); + } else { + dataStoreSourcesBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + filter_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object engine_ = ""; + + /** + * + * + *
      +       * Required. Full resource name of the Engine.
      +       * Format:
      +       * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
      +       * 
      + * + * string engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The engine. + */ + public java.lang.String getEngine() { + java.lang.Object ref = engine_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + engine_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Required. Full resource name of the Engine.
      +       * Format:
      +       * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
      +       * 
      + * + * string engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for engine. + */ + public com.google.protobuf.ByteString getEngineBytes() { + java.lang.Object ref = engine_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + engine_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Required. Full resource name of the Engine.
      +       * Format:
      +       * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
      +       * 
      + * + * string engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The engine to set. + * @return This builder for chaining. + */ + public Builder setEngine(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + engine_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. Full resource name of the Engine.
      +       * Format:
      +       * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
      +       * 
      + * + * string engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearEngine() { + engine_ = getDefaultInstance().getEngine(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. Full resource name of the Engine.
      +       * Format:
      +       * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
      +       * 
      + * + * string engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for engine to set. + * @return This builder for chaining. + */ + public Builder setEngineBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + engine_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List + dataStoreSources_ = java.util.Collections.emptyList(); + + private void ensureDataStoreSourcesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + dataStoreSources_ = + new java.util.ArrayList( + dataStoreSources_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.DataStoreSource, + com.google.cloud.ces.v1.DataStoreTool.DataStoreSource.Builder, + com.google.cloud.ces.v1.DataStoreTool.DataStoreSourceOrBuilder> + dataStoreSourcesBuilder_; + + /** + * + * + *
      +       * Optional. Use to target specific DataStores within the Engine.
      +       * If empty, the search applies to all DataStores associated with the
      +       * Engine.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getDataStoreSourcesList() { + if (dataStoreSourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(dataStoreSources_); + } else { + return dataStoreSourcesBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +       * Optional. Use to target specific DataStores within the Engine.
      +       * If empty, the search applies to all DataStores associated with the
      +       * Engine.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getDataStoreSourcesCount() { + if (dataStoreSourcesBuilder_ == null) { + return dataStoreSources_.size(); + } else { + return dataStoreSourcesBuilder_.getCount(); + } + } + + /** + * + * + *
      +       * Optional. Use to target specific DataStores within the Engine.
      +       * If empty, the search applies to all DataStores associated with the
      +       * Engine.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.DataStoreSource getDataStoreSources(int index) { + if (dataStoreSourcesBuilder_ == null) { + return dataStoreSources_.get(index); + } else { + return dataStoreSourcesBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +       * Optional. Use to target specific DataStores within the Engine.
      +       * If empty, the search applies to all DataStores associated with the
      +       * Engine.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataStoreSources( + int index, com.google.cloud.ces.v1.DataStoreTool.DataStoreSource value) { + if (dataStoreSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStoreSourcesIsMutable(); + dataStoreSources_.set(index, value); + onChanged(); + } else { + dataStoreSourcesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +       * Optional. Use to target specific DataStores within the Engine.
      +       * If empty, the search applies to all DataStores associated with the
      +       * Engine.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataStoreSources( + int index, + com.google.cloud.ces.v1.DataStoreTool.DataStoreSource.Builder builderForValue) { + if (dataStoreSourcesBuilder_ == null) { + ensureDataStoreSourcesIsMutable(); + dataStoreSources_.set(index, builderForValue.build()); + onChanged(); + } else { + dataStoreSourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +       * Optional. Use to target specific DataStores within the Engine.
      +       * If empty, the search applies to all DataStores associated with the
      +       * Engine.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDataStoreSources( + com.google.cloud.ces.v1.DataStoreTool.DataStoreSource value) { + if (dataStoreSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStoreSourcesIsMutable(); + dataStoreSources_.add(value); + onChanged(); + } else { + dataStoreSourcesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +       * Optional. Use to target specific DataStores within the Engine.
      +       * If empty, the search applies to all DataStores associated with the
      +       * Engine.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDataStoreSources( + int index, com.google.cloud.ces.v1.DataStoreTool.DataStoreSource value) { + if (dataStoreSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStoreSourcesIsMutable(); + dataStoreSources_.add(index, value); + onChanged(); + } else { + dataStoreSourcesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +       * Optional. Use to target specific DataStores within the Engine.
      +       * If empty, the search applies to all DataStores associated with the
      +       * Engine.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDataStoreSources( + com.google.cloud.ces.v1.DataStoreTool.DataStoreSource.Builder builderForValue) { + if (dataStoreSourcesBuilder_ == null) { + ensureDataStoreSourcesIsMutable(); + dataStoreSources_.add(builderForValue.build()); + onChanged(); + } else { + dataStoreSourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +       * Optional. Use to target specific DataStores within the Engine.
      +       * If empty, the search applies to all DataStores associated with the
      +       * Engine.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDataStoreSources( + int index, + com.google.cloud.ces.v1.DataStoreTool.DataStoreSource.Builder builderForValue) { + if (dataStoreSourcesBuilder_ == null) { + ensureDataStoreSourcesIsMutable(); + dataStoreSources_.add(index, builderForValue.build()); + onChanged(); + } else { + dataStoreSourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +       * Optional. Use to target specific DataStores within the Engine.
      +       * If empty, the search applies to all DataStores associated with the
      +       * Engine.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllDataStoreSources( + java.lang.Iterable + values) { + if (dataStoreSourcesBuilder_ == null) { + ensureDataStoreSourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataStoreSources_); + onChanged(); + } else { + dataStoreSourcesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +       * Optional. Use to target specific DataStores within the Engine.
      +       * If empty, the search applies to all DataStores associated with the
      +       * Engine.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDataStoreSources() { + if (dataStoreSourcesBuilder_ == null) { + dataStoreSources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + dataStoreSourcesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +       * Optional. Use to target specific DataStores within the Engine.
      +       * If empty, the search applies to all DataStores associated with the
      +       * Engine.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeDataStoreSources(int index) { + if (dataStoreSourcesBuilder_ == null) { + ensureDataStoreSourcesIsMutable(); + dataStoreSources_.remove(index); + onChanged(); + } else { + dataStoreSourcesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +       * Optional. Use to target specific DataStores within the Engine.
      +       * If empty, the search applies to all DataStores associated with the
      +       * Engine.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.DataStoreSource.Builder + getDataStoreSourcesBuilder(int index) { + return internalGetDataStoreSourcesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +       * Optional. Use to target specific DataStores within the Engine.
      +       * If empty, the search applies to all DataStores associated with the
      +       * Engine.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.DataStoreSourceOrBuilder + getDataStoreSourcesOrBuilder(int index) { + if (dataStoreSourcesBuilder_ == null) { + return dataStoreSources_.get(index); + } else { + return dataStoreSourcesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +       * Optional. Use to target specific DataStores within the Engine.
      +       * If empty, the search applies to all DataStores associated with the
      +       * Engine.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.ces.v1.DataStoreTool.DataStoreSourceOrBuilder> + getDataStoreSourcesOrBuilderList() { + if (dataStoreSourcesBuilder_ != null) { + return dataStoreSourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dataStoreSources_); + } + } + + /** + * + * + *
      +       * Optional. Use to target specific DataStores within the Engine.
      +       * If empty, the search applies to all DataStores associated with the
      +       * Engine.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.DataStoreSource.Builder + addDataStoreSourcesBuilder() { + return internalGetDataStoreSourcesFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.DataStoreTool.DataStoreSource.getDefaultInstance()); + } + + /** + * + * + *
      +       * Optional. Use to target specific DataStores within the Engine.
      +       * If empty, the search applies to all DataStores associated with the
      +       * Engine.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.DataStoreSource.Builder + addDataStoreSourcesBuilder(int index) { + return internalGetDataStoreSourcesFieldBuilder() + .addBuilder( + index, com.google.cloud.ces.v1.DataStoreTool.DataStoreSource.getDefaultInstance()); + } + + /** + * + * + *
      +       * Optional. Use to target specific DataStores within the Engine.
      +       * If empty, the search applies to all DataStores associated with the
      +       * Engine.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getDataStoreSourcesBuilderList() { + return internalGetDataStoreSourcesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.DataStoreSource, + com.google.cloud.ces.v1.DataStoreTool.DataStoreSource.Builder, + com.google.cloud.ces.v1.DataStoreTool.DataStoreSourceOrBuilder> + internalGetDataStoreSourcesFieldBuilder() { + if (dataStoreSourcesBuilder_ == null) { + dataStoreSourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.DataStoreSource, + com.google.cloud.ces.v1.DataStoreTool.DataStoreSource.Builder, + com.google.cloud.ces.v1.DataStoreTool.DataStoreSourceOrBuilder>( + dataStoreSources_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + dataStoreSources_ = null; + } + return dataStoreSourcesBuilder_; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
      +       * Optional. A filter applied to the search across the Engine. Not relevant
      +       * and not used if 'data_store_sources' is provided. See:
      +       * https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata
      +       * 
      + * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Optional. A filter applied to the search across the Engine. Not relevant
      +       * and not used if 'data_store_sources' is provided. See:
      +       * https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata
      +       * 
      + * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Optional. A filter applied to the search across the Engine. Not relevant
      +       * and not used if 'data_store_sources' is provided. See:
      +       * https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata
      +       * 
      + * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. A filter applied to the search across the Engine. Not relevant
      +       * and not used if 'data_store_sources' is provided. See:
      +       * https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata
      +       * 
      + * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. A filter applied to the search across the Engine. Not relevant
      +       * and not used if 'data_store_sources' is provided. See:
      +       * https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata
      +       * 
      + * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.DataStoreTool.EngineSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.DataStoreTool.EngineSource) + private static final com.google.cloud.ces.v1.DataStoreTool.EngineSource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.DataStoreTool.EngineSource(); + } + + public static com.google.cloud.ces.v1.DataStoreTool.EngineSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EngineSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.EngineSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface BoostSpecsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.DataStoreTool.BoostSpecs) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Required. The Data Store where the boosting configuration is applied.
      +     * Full resource name of DataStore, such as
      +     * projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}.
      +     * 
      + * + * repeated string data_stores = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the dataStores. + */ + java.util.List getDataStoresList(); + + /** + * + * + *
      +     * Required. The Data Store where the boosting configuration is applied.
      +     * Full resource name of DataStore, such as
      +     * projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}.
      +     * 
      + * + * repeated string data_stores = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of dataStores. + */ + int getDataStoresCount(); + + /** + * + * + *
      +     * Required. The Data Store where the boosting configuration is applied.
      +     * Full resource name of DataStore, such as
      +     * projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}.
      +     * 
      + * + * repeated string data_stores = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The dataStores at the given index. + */ + java.lang.String getDataStores(int index); + + /** + * + * + *
      +     * Required. The Data Store where the boosting configuration is applied.
      +     * Full resource name of DataStore, such as
      +     * projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}.
      +     * 
      + * + * repeated string data_stores = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the dataStores at the given index. + */ + com.google.protobuf.ByteString getDataStoresBytes(int index); + + /** + * + * + *
      +     * Required. A list of boosting specifications.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getSpecList(); + + /** + * + * + *
      +     * Required. A list of boosting specifications.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.DataStoreTool.BoostSpec getSpec(int index); + + /** + * + * + *
      +     * Required. A list of boosting specifications.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getSpecCount(); + + /** + * + * + *
      +     * Required. A list of boosting specifications.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getSpecOrBuilderList(); + + /** + * + * + *
      +     * Required. A list of boosting specifications.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.DataStoreTool.BoostSpecOrBuilder getSpecOrBuilder(int index); + } + + /** + * + * + *
      +   * Boost specifications to boost certain documents.
      +   * For more information, please refer to
      +   * https://cloud.google.com/generative-ai-app-builder/docs/boosting.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DataStoreTool.BoostSpecs} + */ + public static final class BoostSpecs extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.DataStoreTool.BoostSpecs) + BoostSpecsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BoostSpecs"); + } + + // Use BoostSpecs.newBuilder() to construct. + private BoostSpecs(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BoostSpecs() { + dataStores_ = com.google.protobuf.LazyStringArrayList.emptyList(); + spec_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpecs_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpecs_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DataStoreTool.BoostSpecs.class, + com.google.cloud.ces.v1.DataStoreTool.BoostSpecs.Builder.class); + } + + public static final int DATA_STORES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList dataStores_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +     * Required. The Data Store where the boosting configuration is applied.
      +     * Full resource name of DataStore, such as
      +     * projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}.
      +     * 
      + * + * repeated string data_stores = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the dataStores. + */ + public com.google.protobuf.ProtocolStringList getDataStoresList() { + return dataStores_; + } + + /** + * + * + *
      +     * Required. The Data Store where the boosting configuration is applied.
      +     * Full resource name of DataStore, such as
      +     * projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}.
      +     * 
      + * + * repeated string data_stores = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of dataStores. + */ + public int getDataStoresCount() { + return dataStores_.size(); + } + + /** + * + * + *
      +     * Required. The Data Store where the boosting configuration is applied.
      +     * Full resource name of DataStore, such as
      +     * projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}.
      +     * 
      + * + * repeated string data_stores = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The dataStores at the given index. + */ + public java.lang.String getDataStores(int index) { + return dataStores_.get(index); + } + + /** + * + * + *
      +     * Required. The Data Store where the boosting configuration is applied.
      +     * Full resource name of DataStore, such as
      +     * projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}.
      +     * 
      + * + * repeated string data_stores = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the dataStores at the given index. + */ + public com.google.protobuf.ByteString getDataStoresBytes(int index) { + return dataStores_.getByteString(index); + } + + public static final int SPEC_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List spec_; + + /** + * + * + *
      +     * Required. A list of boosting specifications.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getSpecList() { + return spec_; + } + + /** + * + * + *
      +     * Required. A list of boosting specifications.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getSpecOrBuilderList() { + return spec_; + } + + /** + * + * + *
      +     * Required. A list of boosting specifications.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getSpecCount() { + return spec_.size(); + } + + /** + * + * + *
      +     * Required. A list of boosting specifications.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec getSpec(int index) { + return spec_.get(index); + } + + /** + * + * + *
      +     * Required. A list of boosting specifications.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.BoostSpecOrBuilder getSpecOrBuilder(int index) { + return spec_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < dataStores_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, dataStores_.getRaw(i)); + } + for (int i = 0; i < spec_.size(); i++) { + output.writeMessage(2, spec_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < dataStores_.size(); i++) { + dataSize += computeStringSizeNoTag(dataStores_.getRaw(i)); + } + size += dataSize; + size += 1 * getDataStoresList().size(); + } + for (int i = 0; i < spec_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, spec_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.DataStoreTool.BoostSpecs)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.DataStoreTool.BoostSpecs other = + (com.google.cloud.ces.v1.DataStoreTool.BoostSpecs) obj; + + if (!getDataStoresList().equals(other.getDataStoresList())) return false; + if (!getSpecList().equals(other.getSpecList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDataStoresCount() > 0) { + hash = (37 * hash) + DATA_STORES_FIELD_NUMBER; + hash = (53 * hash) + getDataStoresList().hashCode(); + } + if (getSpecCount() > 0) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpecList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpecs parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpecs parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpecs parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpecs parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpecs parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpecs parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpecs parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpecs parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpecs parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpecs parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpecs parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpecs parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.DataStoreTool.BoostSpecs prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Boost specifications to boost certain documents.
      +     * For more information, please refer to
      +     * https://cloud.google.com/generative-ai-app-builder/docs/boosting.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DataStoreTool.BoostSpecs} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.DataStoreTool.BoostSpecs) + com.google.cloud.ces.v1.DataStoreTool.BoostSpecsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpecs_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpecs_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DataStoreTool.BoostSpecs.class, + com.google.cloud.ces.v1.DataStoreTool.BoostSpecs.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.DataStoreTool.BoostSpecs.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dataStores_ = com.google.protobuf.LazyStringArrayList.emptyList(); + if (specBuilder_ == null) { + spec_ = java.util.Collections.emptyList(); + } else { + spec_ = null; + specBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpecs_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.BoostSpecs getDefaultInstanceForType() { + return com.google.cloud.ces.v1.DataStoreTool.BoostSpecs.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.BoostSpecs build() { + com.google.cloud.ces.v1.DataStoreTool.BoostSpecs result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.BoostSpecs buildPartial() { + com.google.cloud.ces.v1.DataStoreTool.BoostSpecs result = + new com.google.cloud.ces.v1.DataStoreTool.BoostSpecs(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.ces.v1.DataStoreTool.BoostSpecs result) { + if (specBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + spec_ = java.util.Collections.unmodifiableList(spec_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.DataStoreTool.BoostSpecs result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + dataStores_.makeImmutable(); + result.dataStores_ = dataStores_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.DataStoreTool.BoostSpecs) { + return mergeFrom((com.google.cloud.ces.v1.DataStoreTool.BoostSpecs) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.DataStoreTool.BoostSpecs other) { + if (other == com.google.cloud.ces.v1.DataStoreTool.BoostSpecs.getDefaultInstance()) + return this; + if (!other.dataStores_.isEmpty()) { + if (dataStores_.isEmpty()) { + dataStores_ = other.dataStores_; + bitField0_ |= 0x00000001; + } else { + ensureDataStoresIsMutable(); + dataStores_.addAll(other.dataStores_); + } + onChanged(); + } + if (specBuilder_ == null) { + if (!other.spec_.isEmpty()) { + if (spec_.isEmpty()) { + spec_ = other.spec_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSpecIsMutable(); + spec_.addAll(other.spec_); + } + onChanged(); + } + } else { + if (!other.spec_.isEmpty()) { + if (specBuilder_.isEmpty()) { + specBuilder_.dispose(); + specBuilder_ = null; + spec_ = other.spec_; + bitField0_ = (bitField0_ & ~0x00000002); + specBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSpecFieldBuilder() + : null; + } else { + specBuilder_.addAllMessages(other.spec_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDataStoresIsMutable(); + dataStores_.add(s); + break; + } // case 10 + case 18: + { + com.google.cloud.ces.v1.DataStoreTool.BoostSpec m = + input.readMessage( + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.parser(), + extensionRegistry); + if (specBuilder_ == null) { + ensureSpecIsMutable(); + spec_.add(m); + } else { + specBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList dataStores_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureDataStoresIsMutable() { + if (!dataStores_.isModifiable()) { + dataStores_ = new com.google.protobuf.LazyStringArrayList(dataStores_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
      +       * Required. The Data Store where the boosting configuration is applied.
      +       * Full resource name of DataStore, such as
      +       * projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}.
      +       * 
      + * + * repeated string data_stores = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the dataStores. + */ + public com.google.protobuf.ProtocolStringList getDataStoresList() { + dataStores_.makeImmutable(); + return dataStores_; + } + + /** + * + * + *
      +       * Required. The Data Store where the boosting configuration is applied.
      +       * Full resource name of DataStore, such as
      +       * projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}.
      +       * 
      + * + * repeated string data_stores = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of dataStores. + */ + public int getDataStoresCount() { + return dataStores_.size(); + } + + /** + * + * + *
      +       * Required. The Data Store where the boosting configuration is applied.
      +       * Full resource name of DataStore, such as
      +       * projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}.
      +       * 
      + * + * repeated string data_stores = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The dataStores at the given index. + */ + public java.lang.String getDataStores(int index) { + return dataStores_.get(index); + } + + /** + * + * + *
      +       * Required. The Data Store where the boosting configuration is applied.
      +       * Full resource name of DataStore, such as
      +       * projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}.
      +       * 
      + * + * repeated string data_stores = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the dataStores at the given index. + */ + public com.google.protobuf.ByteString getDataStoresBytes(int index) { + return dataStores_.getByteString(index); + } + + /** + * + * + *
      +       * Required. The Data Store where the boosting configuration is applied.
      +       * Full resource name of DataStore, such as
      +       * projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}.
      +       * 
      + * + * repeated string data_stores = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The dataStores to set. + * @return This builder for chaining. + */ + public Builder setDataStores(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStoresIsMutable(); + dataStores_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. The Data Store where the boosting configuration is applied.
      +       * Full resource name of DataStore, such as
      +       * projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}.
      +       * 
      + * + * repeated string data_stores = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The dataStores to add. + * @return This builder for chaining. + */ + public Builder addDataStores(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStoresIsMutable(); + dataStores_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. The Data Store where the boosting configuration is applied.
      +       * Full resource name of DataStore, such as
      +       * projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}.
      +       * 
      + * + * repeated string data_stores = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The dataStores to add. + * @return This builder for chaining. + */ + public Builder addAllDataStores(java.lang.Iterable values) { + ensureDataStoresIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataStores_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. The Data Store where the boosting configuration is applied.
      +       * Full resource name of DataStore, such as
      +       * projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}.
      +       * 
      + * + * repeated string data_stores = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDataStores() { + dataStores_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. The Data Store where the boosting configuration is applied.
      +       * Full resource name of DataStore, such as
      +       * projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}.
      +       * 
      + * + * repeated string data_stores = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the dataStores to add. + * @return This builder for chaining. + */ + public Builder addDataStoresBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDataStoresIsMutable(); + dataStores_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List spec_ = + java.util.Collections.emptyList(); + + private void ensureSpecIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + spec_ = new java.util.ArrayList(spec_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.BoostSpec, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.Builder, + com.google.cloud.ces.v1.DataStoreTool.BoostSpecOrBuilder> + specBuilder_; + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getSpecList() { + if (specBuilder_ == null) { + return java.util.Collections.unmodifiableList(spec_); + } else { + return specBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getSpecCount() { + if (specBuilder_ == null) { + return spec_.size(); + } else { + return specBuilder_.getCount(); + } + } + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec getSpec(int index) { + if (specBuilder_ == null) { + return spec_.get(index); + } else { + return specBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSpec(int index, com.google.cloud.ces.v1.DataStoreTool.BoostSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpecIsMutable(); + spec_.set(index, value); + onChanged(); + } else { + specBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSpec( + int index, com.google.cloud.ces.v1.DataStoreTool.BoostSpec.Builder builderForValue) { + if (specBuilder_ == null) { + ensureSpecIsMutable(); + spec_.set(index, builderForValue.build()); + onChanged(); + } else { + specBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSpec(com.google.cloud.ces.v1.DataStoreTool.BoostSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpecIsMutable(); + spec_.add(value); + onChanged(); + } else { + specBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSpec(int index, com.google.cloud.ces.v1.DataStoreTool.BoostSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpecIsMutable(); + spec_.add(index, value); + onChanged(); + } else { + specBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSpec( + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.Builder builderForValue) { + if (specBuilder_ == null) { + ensureSpecIsMutable(); + spec_.add(builderForValue.build()); + onChanged(); + } else { + specBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSpec( + int index, com.google.cloud.ces.v1.DataStoreTool.BoostSpec.Builder builderForValue) { + if (specBuilder_ == null) { + ensureSpecIsMutable(); + spec_.add(index, builderForValue.build()); + onChanged(); + } else { + specBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllSpec( + java.lang.Iterable values) { + if (specBuilder_ == null) { + ensureSpecIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, spec_); + onChanged(); + } else { + specBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + specBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeSpec(int index) { + if (specBuilder_ == null) { + ensureSpecIsMutable(); + spec_.remove(index); + onChanged(); + } else { + specBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.Builder getSpecBuilder(int index) { + return internalGetSpecFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.BoostSpecOrBuilder getSpecOrBuilder(int index) { + if (specBuilder_ == null) { + return spec_.get(index); + } else { + return specBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getSpecOrBuilderList() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(spec_); + } + } + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.Builder addSpecBuilder() { + return internalGetSpecFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.DataStoreTool.BoostSpec.getDefaultInstance()); + } + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.Builder addSpecBuilder(int index) { + return internalGetSpecFieldBuilder() + .addBuilder( + index, com.google.cloud.ces.v1.DataStoreTool.BoostSpec.getDefaultInstance()); + } + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getSpecBuilderList() { + return internalGetSpecFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.BoostSpec, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.Builder, + com.google.cloud.ces.v1.DataStoreTool.BoostSpecOrBuilder> + internalGetSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.BoostSpec, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.Builder, + com.google.cloud.ces.v1.DataStoreTool.BoostSpecOrBuilder>( + spec_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + spec_ = null; + } + return specBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.DataStoreTool.BoostSpecs) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.DataStoreTool.BoostSpecs) + private static final com.google.cloud.ces.v1.DataStoreTool.BoostSpecs DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.DataStoreTool.BoostSpecs(); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpecs getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BoostSpecs parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.BoostSpecs getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface BoostSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.DataStoreTool.BoostSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Required. A list of boosting specifications.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getConditionBoostSpecsList(); + + /** + * + * + *
      +     * Required. A list of boosting specifications.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec getConditionBoostSpecs( + int index); + + /** + * + * + *
      +     * Required. A list of boosting specifications.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getConditionBoostSpecsCount(); + + /** + * + * + *
      +     * Required. A list of boosting specifications.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List< + ? extends com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpecOrBuilder> + getConditionBoostSpecsOrBuilderList(); + + /** + * + * + *
      +     * Required. A list of boosting specifications.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpecOrBuilder + getConditionBoostSpecsOrBuilder(int index); + } + + /** + * + * + *
      +   * Boost specification to boost certain documents.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DataStoreTool.BoostSpec} + */ + public static final class BoostSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.DataStoreTool.BoostSpec) + BoostSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BoostSpec"); + } + + // Use BoostSpec.newBuilder() to construct. + private BoostSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BoostSpec() { + conditionBoostSpecs_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.class, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.Builder.class); + } + + public interface ConditionBoostSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +       * Required. An expression which specifies a boost condition. The syntax
      +       * is the same as filter expression syntax. Currently, the only supported
      +       * condition is a list of BCP-47 lang codes. Example: To boost suggestions
      +       * in languages en or fr: (lang_code: ANY("en", "fr"))
      +       * 
      + * + * string condition = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The condition. + */ + java.lang.String getCondition(); + + /** + * + * + *
      +       * Required. An expression which specifies a boost condition. The syntax
      +       * is the same as filter expression syntax. Currently, the only supported
      +       * condition is a list of BCP-47 lang codes. Example: To boost suggestions
      +       * in languages en or fr: (lang_code: ANY("en", "fr"))
      +       * 
      + * + * string condition = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for condition. + */ + com.google.protobuf.ByteString getConditionBytes(); + + /** + * + * + *
      +       * Optional. Strength of the boost, which should be in [-1, 1]. Negative
      +       * boost means demotion. Default is 0.0.
      +       *
      +       * Setting to 1.0 gives the suggestions a big promotion. However, it does
      +       * not necessarily mean that the top result will be a boosted suggestion.
      +       *
      +       * Setting to -1.0 gives the suggestions a big demotion. However, other
      +       * suggestions that are relevant might still be shown.
      +       *
      +       * Setting to 0.0 means no boost applied. The boosting condition is
      +       * ignored.
      +       * 
      + * + * float boost = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The boost. + */ + float getBoost(); + + /** + * + * + *
      +       * Optional. Complex specification for custom ranking based on customer
      +       * defined attribute value.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the boostControlSpec field is set. + */ + boolean hasBoostControlSpec(); + + /** + * + * + *
      +       * Optional. Complex specification for custom ranking based on customer
      +       * defined attribute value.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The boostControlSpec. + */ + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + getBoostControlSpec(); + + /** + * + * + *
      +       * Optional. Complex specification for custom ranking based on customer
      +       * defined attribute value.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilder + getBoostControlSpecOrBuilder(); + } + + /** + * + * + *
      +     * Boost specification for a condition.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec} + */ + public static final class ConditionBoostSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec) + ConditionBoostSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ConditionBoostSpec"); + } + + // Use ConditionBoostSpec.newBuilder() to construct. + private ConditionBoostSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ConditionBoostSpec() { + condition_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_ConditionBoostSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_ConditionBoostSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.class, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.Builder.class); + } + + public interface BoostControlSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +         * Optional. The name of the field whose value will be used to determine
      +         * the boost amount.
      +         * 
      + * + * string field_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fieldName. + */ + java.lang.String getFieldName(); + + /** + * + * + *
      +         * Optional. The name of the field whose value will be used to determine
      +         * the boost amount.
      +         * 
      + * + * string field_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fieldName. + */ + com.google.protobuf.ByteString getFieldNameBytes(); + + /** + * + * + *
      +         * Optional. The attribute type to be used to determine the boost
      +         * amount. The attribute value can be derived from the field value of
      +         * the specified field_name. In the case of numerical it is
      +         * straightforward i.e. attribute_value = numerical_field_value. In the
      +         * case of freshness however, attribute_value = (time.now() -
      +         * datetime_field_value).
      +         * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType attribute_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for attributeType. + */ + int getAttributeTypeValue(); + + /** + * + * + *
      +         * Optional. The attribute type to be used to determine the boost
      +         * amount. The attribute value can be derived from the field value of
      +         * the specified field_name. In the case of numerical it is
      +         * straightforward i.e. attribute_value = numerical_field_value. In the
      +         * case of freshness however, attribute_value = (time.now() -
      +         * datetime_field_value).
      +         * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType attribute_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The attributeType. + */ + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .AttributeType + getAttributeType(); + + /** + * + * + *
      +         * Optional. The interpolation type to be applied to connect the control
      +         * points listed below.
      +         * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType interpolation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for interpolationType. + */ + int getInterpolationTypeValue(); + + /** + * + * + *
      +         * Optional. The interpolation type to be applied to connect the control
      +         * points listed below.
      +         * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType interpolation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The interpolationType. + */ + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .InterpolationType + getInterpolationType(); + + /** + * + * + *
      +         * Optional. The control points used to define the curve. The monotonic
      +         * function (defined through the interpolation_type above) passes
      +         * through the control points listed here.
      +         * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .ControlPoint> + getControlPointsList(); + + /** + * + * + *
      +         * Optional. The control points used to define the curve. The monotonic
      +         * function (defined through the interpolation_type above) passes
      +         * through the control points listed here.
      +         * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .ControlPoint + getControlPoints(int index); + + /** + * + * + *
      +         * Optional. The control points used to define the curve. The monotonic
      +         * function (defined through the interpolation_type above) passes
      +         * through the control points listed here.
      +         * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getControlPointsCount(); + + /** + * + * + *
      +         * Optional. The control points used to define the curve. The monotonic
      +         * function (defined through the interpolation_type above) passes
      +         * through the control points listed here.
      +         * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPointOrBuilder> + getControlPointsOrBuilderList(); + + /** + * + * + *
      +         * Optional. The control points used to define the curve. The monotonic
      +         * function (defined through the interpolation_type above) passes
      +         * through the control points listed here.
      +         * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .ControlPointOrBuilder + getControlPointsOrBuilder(int index); + } + + /** + * + * + *
      +       * Specification for custom ranking based on customer specified attribute
      +       * value. It provides more controls for customized ranking than the simple
      +       * (condition, boost) combination above.
      +       * 
      + * + * Protobuf type {@code + * google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec} + */ + public static final class BoostControlSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec) + BoostControlSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BoostControlSpec"); + } + + // Use BoostControlSpec.newBuilder() to construct. + private BoostControlSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BoostControlSpec() { + fieldName_ = ""; + attributeType_ = 0; + interpolationType_ = 0; + controlPoints_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_ConditionBoostSpec_BoostControlSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_ConditionBoostSpec_BoostControlSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.class, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.Builder.class); + } + + /** + * + * + *
      +         * The attribute(or function) for which the custom ranking is to be
      +         * applied.
      +         * 
      + * + * Protobuf enum {@code + * google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType} + */ + public enum AttributeType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +           * Unspecified AttributeType.
      +           * 
      + * + * ATTRIBUTE_TYPE_UNSPECIFIED = 0; + */ + ATTRIBUTE_TYPE_UNSPECIFIED(0), + /** + * + * + *
      +           * The value of the numerical field will be used to dynamically update
      +           * the boost amount. In this case, the attribute_value (the x value)
      +           * of the control point will be the actual value of the numerical
      +           * field for which the boost_amount is specified.
      +           * 
      + * + * NUMERICAL = 1; + */ + NUMERICAL(1), + /** + * + * + *
      +           * For the freshness use case the attribute value will be the duration
      +           * between the current time and the date in the datetime field
      +           * specified. The value must be formatted as an XSD `dayTimeDuration`
      +           * value (a restricted subset of an ISO 8601 duration value). The
      +           * pattern for this is: `[nD][T[nH][nM][nS]]`.
      +           * E.g. `5D`, `3DT12H30M`, `T24H`.
      +           * 
      + * + * FRESHNESS = 2; + */ + FRESHNESS(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AttributeType"); + } + + /** + * + * + *
      +           * Unspecified AttributeType.
      +           * 
      + * + * ATTRIBUTE_TYPE_UNSPECIFIED = 0; + */ + public static final int ATTRIBUTE_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +           * The value of the numerical field will be used to dynamically update
      +           * the boost amount. In this case, the attribute_value (the x value)
      +           * of the control point will be the actual value of the numerical
      +           * field for which the boost_amount is specified.
      +           * 
      + * + * NUMERICAL = 1; + */ + public static final int NUMERICAL_VALUE = 1; + + /** + * + * + *
      +           * For the freshness use case the attribute value will be the duration
      +           * between the current time and the date in the datetime field
      +           * specified. The value must be formatted as an XSD `dayTimeDuration`
      +           * value (a restricted subset of an ISO 8601 duration value). The
      +           * pattern for this is: `[nD][T[nH][nM][nS]]`.
      +           * E.g. `5D`, `3DT12H30M`, `T24H`.
      +           * 
      + * + * FRESHNESS = 2; + */ + public static final int FRESHNESS_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AttributeType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static AttributeType forNumber(int value) { + switch (value) { + case 0: + return ATTRIBUTE_TYPE_UNSPECIFIED; + case 1: + return NUMERICAL; + case 2: + return FRESHNESS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AttributeType findValueByNumber(int number) { + return AttributeType.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final AttributeType[] VALUES = values(); + + public static AttributeType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private AttributeType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType) + } + + /** + * + * + *
      +         * The interpolation type to be applied. Default will be linear
      +         * (Piecewise Linear).
      +         * 
      + * + * Protobuf enum {@code + * google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType} + */ + public enum InterpolationType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +           * Interpolation type is unspecified. In this case, it defaults to
      +           * Linear.
      +           * 
      + * + * INTERPOLATION_TYPE_UNSPECIFIED = 0; + */ + INTERPOLATION_TYPE_UNSPECIFIED(0), + /** + * + * + *
      +           * Piecewise linear interpolation will be applied.
      +           * 
      + * + * LINEAR = 1; + */ + LINEAR(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InterpolationType"); + } + + /** + * + * + *
      +           * Interpolation type is unspecified. In this case, it defaults to
      +           * Linear.
      +           * 
      + * + * INTERPOLATION_TYPE_UNSPECIFIED = 0; + */ + public static final int INTERPOLATION_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +           * Piecewise linear interpolation will be applied.
      +           * 
      + * + * LINEAR = 1; + */ + public static final int LINEAR_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static InterpolationType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static InterpolationType forNumber(int value) { + switch (value) { + case 0: + return INTERPOLATION_TYPE_UNSPECIFIED; + case 1: + return LINEAR; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public InterpolationType findValueByNumber(int number) { + return InterpolationType.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final InterpolationType[] VALUES = values(); + + public static InterpolationType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private InterpolationType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType) + } + + public interface ControlPointOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +           * Optional. Can be one of:
      +           * 1. The numerical field value.
      +           * 2. The duration spec for freshness:
      +           * The value must be formatted as an XSD `dayTimeDuration` value (a
      +           * restricted subset of an ISO 8601 duration value). The pattern for
      +           * this is: `[nD][T[nH][nM][nS]]`.
      +           * 
      + * + * string attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The attributeValue. + */ + java.lang.String getAttributeValue(); + + /** + * + * + *
      +           * Optional. Can be one of:
      +           * 1. The numerical field value.
      +           * 2. The duration spec for freshness:
      +           * The value must be formatted as an XSD `dayTimeDuration` value (a
      +           * restricted subset of an ISO 8601 duration value). The pattern for
      +           * this is: `[nD][T[nH][nM][nS]]`.
      +           * 
      + * + * string attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for attributeValue. + */ + com.google.protobuf.ByteString getAttributeValueBytes(); + + /** + * + * + *
      +           * Optional. The value between -1 to 1 by which to boost the score if
      +           * the attribute_value evaluates to the value specified above.
      +           * 
      + * + * float boost_amount = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The boostAmount. + */ + float getBoostAmount(); + } + + /** + * + * + *
      +         * The control points used to define the curve. The curve defined
      +         * through these control points can only be monotonically increasing
      +         * or decreasing(constant values are acceptable).
      +         * 
      + * + * Protobuf type {@code + * google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint} + */ + public static final class ControlPoint extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint) + ControlPointOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ControlPoint"); + } + + // Use ControlPoint.newBuilder() to construct. + private ControlPoint(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ControlPoint() { + attributeValue_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_ConditionBoostSpec_BoostControlSpec_ControlPoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_ConditionBoostSpec_BoostControlSpec_ControlPoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint.class, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint.Builder.class); + } + + public static final int ATTRIBUTE_VALUE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object attributeValue_ = ""; + + /** + * + * + *
      +           * Optional. Can be one of:
      +           * 1. The numerical field value.
      +           * 2. The duration spec for freshness:
      +           * The value must be formatted as an XSD `dayTimeDuration` value (a
      +           * restricted subset of an ISO 8601 duration value). The pattern for
      +           * this is: `[nD][T[nH][nM][nS]]`.
      +           * 
      + * + * string attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The attributeValue. + */ + @java.lang.Override + public java.lang.String getAttributeValue() { + java.lang.Object ref = attributeValue_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attributeValue_ = s; + return s; + } + } + + /** + * + * + *
      +           * Optional. Can be one of:
      +           * 1. The numerical field value.
      +           * 2. The duration spec for freshness:
      +           * The value must be formatted as an XSD `dayTimeDuration` value (a
      +           * restricted subset of an ISO 8601 duration value). The pattern for
      +           * this is: `[nD][T[nH][nM][nS]]`.
      +           * 
      + * + * string attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for attributeValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAttributeValueBytes() { + java.lang.Object ref = attributeValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + attributeValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BOOST_AMOUNT_FIELD_NUMBER = 2; + private float boostAmount_ = 0F; + + /** + * + * + *
      +           * Optional. The value between -1 to 1 by which to boost the score if
      +           * the attribute_value evaluates to the value specified above.
      +           * 
      + * + * float boost_amount = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The boostAmount. + */ + @java.lang.Override + public float getBoostAmount() { + return boostAmount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(attributeValue_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, attributeValue_); + } + if (java.lang.Float.floatToRawIntBits(boostAmount_) != 0) { + output.writeFloat(2, boostAmount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(attributeValue_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, attributeValue_); + } + if (java.lang.Float.floatToRawIntBits(boostAmount_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, boostAmount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .ControlPoint)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .ControlPoint + other = + (com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint) + obj; + + if (!getAttributeValue().equals(other.getAttributeValue())) return false; + if (java.lang.Float.floatToIntBits(getBoostAmount()) + != java.lang.Float.floatToIntBits(other.getBoostAmount())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ATTRIBUTE_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getAttributeValue().hashCode(); + hash = (37 * hash) + BOOST_AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoostAmount()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .ControlPoint + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +           * The control points used to define the curve. The curve defined
      +           * through these control points can only be monotonically increasing
      +           * or decreasing(constant values are acceptable).
      +           * 
      + * + * Protobuf type {@code + * google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint) + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .ControlPointOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_ConditionBoostSpec_BoostControlSpec_ControlPoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_ConditionBoostSpec_BoostControlSpec_ControlPoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint.class, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint.Builder.class); + } + + // Construct using + // com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + attributeValue_ = ""; + boostAmount_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_ConditionBoostSpec_BoostControlSpec_ControlPoint_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + getDefaultInstanceForType() { + return com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + build() { + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .ControlPoint + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + buildPartial() { + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .ControlPoint + result = + new com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .ControlPoint + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.attributeValue_ = attributeValue_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.boostAmount_ = boostAmount_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint) { + return mergeFrom( + (com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .ControlPoint + other) { + if (other + == com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint.getDefaultInstance()) return this; + if (!other.getAttributeValue().isEmpty()) { + attributeValue_ = other.attributeValue_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (java.lang.Float.floatToRawIntBits(other.getBoostAmount()) != 0) { + setBoostAmount(other.getBoostAmount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + attributeValue_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: + { + boostAmount_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object attributeValue_ = ""; + + /** + * + * + *
      +             * Optional. Can be one of:
      +             * 1. The numerical field value.
      +             * 2. The duration spec for freshness:
      +             * The value must be formatted as an XSD `dayTimeDuration` value (a
      +             * restricted subset of an ISO 8601 duration value). The pattern for
      +             * this is: `[nD][T[nH][nM][nS]]`.
      +             * 
      + * + * string attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The attributeValue. + */ + public java.lang.String getAttributeValue() { + java.lang.Object ref = attributeValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attributeValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +             * Optional. Can be one of:
      +             * 1. The numerical field value.
      +             * 2. The duration spec for freshness:
      +             * The value must be formatted as an XSD `dayTimeDuration` value (a
      +             * restricted subset of an ISO 8601 duration value). The pattern for
      +             * this is: `[nD][T[nH][nM][nS]]`.
      +             * 
      + * + * string attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for attributeValue. + */ + public com.google.protobuf.ByteString getAttributeValueBytes() { + java.lang.Object ref = attributeValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + attributeValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +             * Optional. Can be one of:
      +             * 1. The numerical field value.
      +             * 2. The duration spec for freshness:
      +             * The value must be formatted as an XSD `dayTimeDuration` value (a
      +             * restricted subset of an ISO 8601 duration value). The pattern for
      +             * this is: `[nD][T[nH][nM][nS]]`.
      +             * 
      + * + * string attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The attributeValue to set. + * @return This builder for chaining. + */ + public Builder setAttributeValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + attributeValue_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +             * Optional. Can be one of:
      +             * 1. The numerical field value.
      +             * 2. The duration spec for freshness:
      +             * The value must be formatted as an XSD `dayTimeDuration` value (a
      +             * restricted subset of an ISO 8601 duration value). The pattern for
      +             * this is: `[nD][T[nH][nM][nS]]`.
      +             * 
      + * + * string attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAttributeValue() { + attributeValue_ = getDefaultInstance().getAttributeValue(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +             * Optional. Can be one of:
      +             * 1. The numerical field value.
      +             * 2. The duration spec for freshness:
      +             * The value must be formatted as an XSD `dayTimeDuration` value (a
      +             * restricted subset of an ISO 8601 duration value). The pattern for
      +             * this is: `[nD][T[nH][nM][nS]]`.
      +             * 
      + * + * string attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for attributeValue to set. + * @return This builder for chaining. + */ + public Builder setAttributeValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + attributeValue_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private float boostAmount_; + + /** + * + * + *
      +             * Optional. The value between -1 to 1 by which to boost the score if
      +             * the attribute_value evaluates to the value specified above.
      +             * 
      + * + * float boost_amount = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The boostAmount. + */ + @java.lang.Override + public float getBoostAmount() { + return boostAmount_; + } + + /** + * + * + *
      +             * Optional. The value between -1 to 1 by which to boost the score if
      +             * the attribute_value evaluates to the value specified above.
      +             * 
      + * + * float boost_amount = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The boostAmount to set. + * @return This builder for chaining. + */ + public Builder setBoostAmount(float value) { + + boostAmount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +             * Optional. The value between -1 to 1 by which to boost the score if
      +             * the attribute_value evaluates to the value specified above.
      +             * 
      + * + * float boost_amount = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBoostAmount() { + bitField0_ = (bitField0_ & ~0x00000002); + boostAmount_ = 0F; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint) + private static final com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint(); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ControlPoint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .ControlPoint + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int FIELD_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object fieldName_ = ""; + + /** + * + * + *
      +         * Optional. The name of the field whose value will be used to determine
      +         * the boost amount.
      +         * 
      + * + * string field_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fieldName. + */ + @java.lang.Override + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldName_ = s; + return s; + } + } + + /** + * + * + *
      +         * Optional. The name of the field whose value will be used to determine
      +         * the boost amount.
      +         * 
      + * + * string field_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fieldName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ATTRIBUTE_TYPE_FIELD_NUMBER = 2; + private int attributeType_ = 0; + + /** + * + * + *
      +         * Optional. The attribute type to be used to determine the boost
      +         * amount. The attribute value can be derived from the field value of
      +         * the specified field_name. In the case of numerical it is
      +         * straightforward i.e. attribute_value = numerical_field_value. In the
      +         * case of freshness however, attribute_value = (time.now() -
      +         * datetime_field_value).
      +         * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType attribute_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for attributeType. + */ + @java.lang.Override + public int getAttributeTypeValue() { + return attributeType_; + } + + /** + * + * + *
      +         * Optional. The attribute type to be used to determine the boost
      +         * amount. The attribute value can be derived from the field value of
      +         * the specified field_name. In the case of numerical it is
      +         * straightforward i.e. attribute_value = numerical_field_value. In the
      +         * case of freshness however, attribute_value = (time.now() -
      +         * datetime_field_value).
      +         * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType attribute_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The attributeType. + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .AttributeType + getAttributeType() { + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .AttributeType + result = + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.AttributeType.forNumber(attributeType_); + return result == null + ? com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .AttributeType.UNRECOGNIZED + : result; + } + + public static final int INTERPOLATION_TYPE_FIELD_NUMBER = 3; + private int interpolationType_ = 0; + + /** + * + * + *
      +         * Optional. The interpolation type to be applied to connect the control
      +         * points listed below.
      +         * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType interpolation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for interpolationType. + */ + @java.lang.Override + public int getInterpolationTypeValue() { + return interpolationType_; + } + + /** + * + * + *
      +         * Optional. The interpolation type to be applied to connect the control
      +         * points listed below.
      +         * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType interpolation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The interpolationType. + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .InterpolationType + getInterpolationType() { + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .InterpolationType + result = + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.InterpolationType.forNumber(interpolationType_); + return result == null + ? com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .InterpolationType.UNRECOGNIZED + : result; + } + + public static final int CONTROL_POINTS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .ControlPoint> + controlPoints_; + + /** + * + * + *
      +         * Optional. The control points used to define the curve. The monotonic
      +         * function (defined through the interpolation_type above) passes
      +         * through the control points listed here.
      +         * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .ControlPoint> + getControlPointsList() { + return controlPoints_; + } + + /** + * + * + *
      +         * Optional. The control points used to define the curve. The monotonic
      +         * function (defined through the interpolation_type above) passes
      +         * through the control points listed here.
      +         * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPointOrBuilder> + getControlPointsOrBuilderList() { + return controlPoints_; + } + + /** + * + * + *
      +         * Optional. The control points used to define the curve. The monotonic
      +         * function (defined through the interpolation_type above) passes
      +         * through the control points listed here.
      +         * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getControlPointsCount() { + return controlPoints_.size(); + } + + /** + * + * + *
      +         * Optional. The control points used to define the curve. The monotonic
      +         * function (defined through the interpolation_type above) passes
      +         * through the control points listed here.
      +         * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .ControlPoint + getControlPoints(int index) { + return controlPoints_.get(index); + } + + /** + * + * + *
      +         * Optional. The control points used to define the curve. The monotonic
      +         * function (defined through the interpolation_type above) passes
      +         * through the control points listed here.
      +         * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .ControlPointOrBuilder + getControlPointsOrBuilder(int index) { + return controlPoints_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fieldName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, fieldName_); + } + if (attributeType_ + != com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .AttributeType.ATTRIBUTE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, attributeType_); + } + if (interpolationType_ + != com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .InterpolationType.INTERPOLATION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, interpolationType_); + } + for (int i = 0; i < controlPoints_.size(); i++) { + output.writeMessage(4, controlPoints_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fieldName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, fieldName_); + } + if (attributeType_ + != com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .AttributeType.ATTRIBUTE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, attributeType_); + } + if (interpolationType_ + != com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .InterpolationType.INTERPOLATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, interpolationType_); + } + for (int i = 0; i < controlPoints_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, controlPoints_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + other = + (com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec) + obj; + + if (!getFieldName().equals(other.getFieldName())) return false; + if (attributeType_ != other.attributeType_) return false; + if (interpolationType_ != other.interpolationType_) return false; + if (!getControlPointsList().equals(other.getControlPointsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FIELD_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFieldName().hashCode(); + hash = (37 * hash) + ATTRIBUTE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + attributeType_; + hash = (37 * hash) + INTERPOLATION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + interpolationType_; + if (getControlPointsCount() > 0) { + hash = (37 * hash) + CONTROL_POINTS_FIELD_NUMBER; + hash = (53 * hash) + getControlPointsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +         * Specification for custom ranking based on customer specified attribute
      +         * value. It provides more controls for customized ranking than the simple
      +         * (condition, boost) combination above.
      +         * 
      + * + * Protobuf type {@code + * google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec) + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_ConditionBoostSpec_BoostControlSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_ConditionBoostSpec_BoostControlSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.class, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.Builder.class); + } + + // Construct using + // com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fieldName_ = ""; + attributeType_ = 0; + interpolationType_ = 0; + if (controlPointsBuilder_ == null) { + controlPoints_ = java.util.Collections.emptyList(); + } else { + controlPoints_ = null; + controlPointsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_ConditionBoostSpec_BoostControlSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + getDefaultInstanceForType() { + return com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + build() { + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + buildPartial() { + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + result = + new com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + result) { + if (controlPointsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + controlPoints_ = java.util.Collections.unmodifiableList(controlPoints_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.controlPoints_ = controlPoints_; + } else { + result.controlPoints_ = controlPointsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fieldName_ = fieldName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.attributeType_ = attributeType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.interpolationType_ = interpolationType_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec) { + return mergeFrom( + (com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + other) { + if (other + == com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.getDefaultInstance()) return this; + if (!other.getFieldName().isEmpty()) { + fieldName_ = other.fieldName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.attributeType_ != 0) { + setAttributeTypeValue(other.getAttributeTypeValue()); + } + if (other.interpolationType_ != 0) { + setInterpolationTypeValue(other.getInterpolationTypeValue()); + } + if (controlPointsBuilder_ == null) { + if (!other.controlPoints_.isEmpty()) { + if (controlPoints_.isEmpty()) { + controlPoints_ = other.controlPoints_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureControlPointsIsMutable(); + controlPoints_.addAll(other.controlPoints_); + } + onChanged(); + } + } else { + if (!other.controlPoints_.isEmpty()) { + if (controlPointsBuilder_.isEmpty()) { + controlPointsBuilder_.dispose(); + controlPointsBuilder_ = null; + controlPoints_ = other.controlPoints_; + bitField0_ = (bitField0_ & ~0x00000008); + controlPointsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetControlPointsFieldBuilder() + : null; + } else { + controlPointsBuilder_.addAllMessages(other.controlPoints_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + fieldName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + attributeType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + interpolationType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint + m = + input.readMessage( + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint.parser(), + extensionRegistry); + if (controlPointsBuilder_ == null) { + ensureControlPointsIsMutable(); + controlPoints_.add(m); + } else { + controlPointsBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object fieldName_ = ""; + + /** + * + * + *
      +           * Optional. The name of the field whose value will be used to determine
      +           * the boost amount.
      +           * 
      + * + * string field_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fieldName. + */ + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +           * Optional. The name of the field whose value will be used to determine
      +           * the boost amount.
      +           * 
      + * + * string field_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fieldName. + */ + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +           * Optional. The name of the field whose value will be used to determine
      +           * the boost amount.
      +           * 
      + * + * string field_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fieldName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +           * Optional. The name of the field whose value will be used to determine
      +           * the boost amount.
      +           * 
      + * + * string field_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFieldName() { + fieldName_ = getDefaultInstance().getFieldName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +           * Optional. The name of the field whose value will be used to determine
      +           * the boost amount.
      +           * 
      + * + * string field_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fieldName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int attributeType_ = 0; + + /** + * + * + *
      +           * Optional. The attribute type to be used to determine the boost
      +           * amount. The attribute value can be derived from the field value of
      +           * the specified field_name. In the case of numerical it is
      +           * straightforward i.e. attribute_value = numerical_field_value. In the
      +           * case of freshness however, attribute_value = (time.now() -
      +           * datetime_field_value).
      +           * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType attribute_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for attributeType. + */ + @java.lang.Override + public int getAttributeTypeValue() { + return attributeType_; + } + + /** + * + * + *
      +           * Optional. The attribute type to be used to determine the boost
      +           * amount. The attribute value can be derived from the field value of
      +           * the specified field_name. In the case of numerical it is
      +           * straightforward i.e. attribute_value = numerical_field_value. In the
      +           * case of freshness however, attribute_value = (time.now() -
      +           * datetime_field_value).
      +           * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType attribute_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for attributeType to set. + * @return This builder for chaining. + */ + public Builder setAttributeTypeValue(int value) { + attributeType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +           * Optional. The attribute type to be used to determine the boost
      +           * amount. The attribute value can be derived from the field value of
      +           * the specified field_name. In the case of numerical it is
      +           * straightforward i.e. attribute_value = numerical_field_value. In the
      +           * case of freshness however, attribute_value = (time.now() -
      +           * datetime_field_value).
      +           * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType attribute_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The attributeType. + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .AttributeType + getAttributeType() { + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .AttributeType + result = + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.AttributeType.forNumber(attributeType_); + return result == null + ? com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.AttributeType.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +           * Optional. The attribute type to be used to determine the boost
      +           * amount. The attribute value can be derived from the field value of
      +           * the specified field_name. In the case of numerical it is
      +           * straightforward i.e. attribute_value = numerical_field_value. In the
      +           * case of freshness however, attribute_value = (time.now() -
      +           * datetime_field_value).
      +           * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType attribute_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The attributeType to set. + * @return This builder for chaining. + */ + public Builder setAttributeType( + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .AttributeType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + attributeType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +           * Optional. The attribute type to be used to determine the boost
      +           * amount. The attribute value can be derived from the field value of
      +           * the specified field_name. In the case of numerical it is
      +           * straightforward i.e. attribute_value = numerical_field_value. In the
      +           * case of freshness however, attribute_value = (time.now() -
      +           * datetime_field_value).
      +           * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType attribute_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAttributeType() { + bitField0_ = (bitField0_ & ~0x00000002); + attributeType_ = 0; + onChanged(); + return this; + } + + private int interpolationType_ = 0; + + /** + * + * + *
      +           * Optional. The interpolation type to be applied to connect the control
      +           * points listed below.
      +           * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType interpolation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for interpolationType. + */ + @java.lang.Override + public int getInterpolationTypeValue() { + return interpolationType_; + } + + /** + * + * + *
      +           * Optional. The interpolation type to be applied to connect the control
      +           * points listed below.
      +           * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType interpolation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for interpolationType to set. + * @return This builder for chaining. + */ + public Builder setInterpolationTypeValue(int value) { + interpolationType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +           * Optional. The interpolation type to be applied to connect the control
      +           * points listed below.
      +           * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType interpolation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The interpolationType. + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .InterpolationType + getInterpolationType() { + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .InterpolationType + result = + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.InterpolationType.forNumber(interpolationType_); + return result == null + ? com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.InterpolationType.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +           * Optional. The interpolation type to be applied to connect the control
      +           * points listed below.
      +           * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType interpolation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The interpolationType to set. + * @return This builder for chaining. + */ + public Builder setInterpolationType( + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .InterpolationType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + interpolationType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +           * Optional. The interpolation type to be applied to connect the control
      +           * points listed below.
      +           * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType interpolation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearInterpolationType() { + bitField0_ = (bitField0_ & ~0x00000004); + interpolationType_ = 0; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint> + controlPoints_ = java.util.Collections.emptyList(); + + private void ensureControlPointsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + controlPoints_ = + new java.util.ArrayList< + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint>(controlPoints_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint.Builder, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPointOrBuilder> + controlPointsBuilder_; + + /** + * + * + *
      +           * Optional. The control points used to define the curve. The monotonic
      +           * function (defined through the interpolation_type above) passes
      +           * through the control points listed here.
      +           * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint> + getControlPointsList() { + if (controlPointsBuilder_ == null) { + return java.util.Collections.unmodifiableList(controlPoints_); + } else { + return controlPointsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +           * Optional. The control points used to define the curve. The monotonic
      +           * function (defined through the interpolation_type above) passes
      +           * through the control points listed here.
      +           * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getControlPointsCount() { + if (controlPointsBuilder_ == null) { + return controlPoints_.size(); + } else { + return controlPointsBuilder_.getCount(); + } + } + + /** + * + * + *
      +           * Optional. The control points used to define the curve. The monotonic
      +           * function (defined through the interpolation_type above) passes
      +           * through the control points listed here.
      +           * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .ControlPoint + getControlPoints(int index) { + if (controlPointsBuilder_ == null) { + return controlPoints_.get(index); + } else { + return controlPointsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +           * Optional. The control points used to define the curve. The monotonic
      +           * function (defined through the interpolation_type above) passes
      +           * through the control points listed here.
      +           * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setControlPoints( + int index, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .ControlPoint + value) { + if (controlPointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureControlPointsIsMutable(); + controlPoints_.set(index, value); + onChanged(); + } else { + controlPointsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +           * Optional. The control points used to define the curve. The monotonic
      +           * function (defined through the interpolation_type above) passes
      +           * through the control points listed here.
      +           * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setControlPoints( + int index, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .ControlPoint.Builder + builderForValue) { + if (controlPointsBuilder_ == null) { + ensureControlPointsIsMutable(); + controlPoints_.set(index, builderForValue.build()); + onChanged(); + } else { + controlPointsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +           * Optional. The control points used to define the curve. The monotonic
      +           * function (defined through the interpolation_type above) passes
      +           * through the control points listed here.
      +           * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addControlPoints( + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .ControlPoint + value) { + if (controlPointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureControlPointsIsMutable(); + controlPoints_.add(value); + onChanged(); + } else { + controlPointsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +           * Optional. The control points used to define the curve. The monotonic
      +           * function (defined through the interpolation_type above) passes
      +           * through the control points listed here.
      +           * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addControlPoints( + int index, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .ControlPoint + value) { + if (controlPointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureControlPointsIsMutable(); + controlPoints_.add(index, value); + onChanged(); + } else { + controlPointsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +           * Optional. The control points used to define the curve. The monotonic
      +           * function (defined through the interpolation_type above) passes
      +           * through the control points listed here.
      +           * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addControlPoints( + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .ControlPoint.Builder + builderForValue) { + if (controlPointsBuilder_ == null) { + ensureControlPointsIsMutable(); + controlPoints_.add(builderForValue.build()); + onChanged(); + } else { + controlPointsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +           * Optional. The control points used to define the curve. The monotonic
      +           * function (defined through the interpolation_type above) passes
      +           * through the control points listed here.
      +           * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addControlPoints( + int index, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .ControlPoint.Builder + builderForValue) { + if (controlPointsBuilder_ == null) { + ensureControlPointsIsMutable(); + controlPoints_.add(index, builderForValue.build()); + onChanged(); + } else { + controlPointsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +           * Optional. The control points used to define the curve. The monotonic
      +           * function (defined through the interpolation_type above) passes
      +           * through the control points listed here.
      +           * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllControlPoints( + java.lang.Iterable< + ? extends + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint> + values) { + if (controlPointsBuilder_ == null) { + ensureControlPointsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, controlPoints_); + onChanged(); + } else { + controlPointsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +           * Optional. The control points used to define the curve. The monotonic
      +           * function (defined through the interpolation_type above) passes
      +           * through the control points listed here.
      +           * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearControlPoints() { + if (controlPointsBuilder_ == null) { + controlPoints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + controlPointsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +           * Optional. The control points used to define the curve. The monotonic
      +           * function (defined through the interpolation_type above) passes
      +           * through the control points listed here.
      +           * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeControlPoints(int index) { + if (controlPointsBuilder_ == null) { + ensureControlPointsIsMutable(); + controlPoints_.remove(index); + onChanged(); + } else { + controlPointsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +           * Optional. The control points used to define the curve. The monotonic
      +           * function (defined through the interpolation_type above) passes
      +           * through the control points listed here.
      +           * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .ControlPoint.Builder + getControlPointsBuilder(int index) { + return internalGetControlPointsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +           * Optional. The control points used to define the curve. The monotonic
      +           * function (defined through the interpolation_type above) passes
      +           * through the control points listed here.
      +           * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .ControlPointOrBuilder + getControlPointsOrBuilder(int index) { + if (controlPointsBuilder_ == null) { + return controlPoints_.get(index); + } else { + return controlPointsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +           * Optional. The control points used to define the curve. The monotonic
      +           * function (defined through the interpolation_type above) passes
      +           * through the control points listed here.
      +           * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPointOrBuilder> + getControlPointsOrBuilderList() { + if (controlPointsBuilder_ != null) { + return controlPointsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(controlPoints_); + } + } + + /** + * + * + *
      +           * Optional. The control points used to define the curve. The monotonic
      +           * function (defined through the interpolation_type above) passes
      +           * through the control points listed here.
      +           * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .ControlPoint.Builder + addControlPointsBuilder() { + return internalGetControlPointsFieldBuilder() + .addBuilder( + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint.getDefaultInstance()); + } + + /** + * + * + *
      +           * Optional. The control points used to define the curve. The monotonic
      +           * function (defined through the interpolation_type above) passes
      +           * through the control points listed here.
      +           * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .ControlPoint.Builder + addControlPointsBuilder(int index) { + return internalGetControlPointsFieldBuilder() + .addBuilder( + index, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint.getDefaultInstance()); + } + + /** + * + * + *
      +           * Optional. The control points used to define the curve. The monotonic
      +           * function (defined through the interpolation_type above) passes
      +           * through the control points listed here.
      +           * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint.Builder> + getControlPointsBuilderList() { + return internalGetControlPointsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint.Builder, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPointOrBuilder> + internalGetControlPointsFieldBuilder() { + if (controlPointsBuilder_ == null) { + controlPointsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPoint.Builder, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.ControlPointOrBuilder>( + controlPoints_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + controlPoints_ = null; + } + return controlPointsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec) + private static final com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec(); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BoostControlSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int CONDITION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object condition_ = ""; + + /** + * + * + *
      +       * Required. An expression which specifies a boost condition. The syntax
      +       * is the same as filter expression syntax. Currently, the only supported
      +       * condition is a list of BCP-47 lang codes. Example: To boost suggestions
      +       * in languages en or fr: (lang_code: ANY("en", "fr"))
      +       * 
      + * + * string condition = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The condition. + */ + @java.lang.Override + public java.lang.String getCondition() { + java.lang.Object ref = condition_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + condition_ = s; + return s; + } + } + + /** + * + * + *
      +       * Required. An expression which specifies a boost condition. The syntax
      +       * is the same as filter expression syntax. Currently, the only supported
      +       * condition is a list of BCP-47 lang codes. Example: To boost suggestions
      +       * in languages en or fr: (lang_code: ANY("en", "fr"))
      +       * 
      + * + * string condition = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for condition. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConditionBytes() { + java.lang.Object ref = condition_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + condition_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BOOST_FIELD_NUMBER = 2; + private float boost_ = 0F; + + /** + * + * + *
      +       * Optional. Strength of the boost, which should be in [-1, 1]. Negative
      +       * boost means demotion. Default is 0.0.
      +       *
      +       * Setting to 1.0 gives the suggestions a big promotion. However, it does
      +       * not necessarily mean that the top result will be a boosted suggestion.
      +       *
      +       * Setting to -1.0 gives the suggestions a big demotion. However, other
      +       * suggestions that are relevant might still be shown.
      +       *
      +       * Setting to 0.0 means no boost applied. The boosting condition is
      +       * ignored.
      +       * 
      + * + * float boost = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The boost. + */ + @java.lang.Override + public float getBoost() { + return boost_; + } + + public static final int BOOST_CONTROL_SPEC_FIELD_NUMBER = 4; + private com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + boostControlSpec_; + + /** + * + * + *
      +       * Optional. Complex specification for custom ranking based on customer
      +       * defined attribute value.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the boostControlSpec field is set. + */ + @java.lang.Override + public boolean hasBoostControlSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +       * Optional. Complex specification for custom ranking based on customer
      +       * defined attribute value.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The boostControlSpec. + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + getBoostControlSpec() { + return boostControlSpec_ == null + ? com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .getDefaultInstance() + : boostControlSpec_; + } + + /** + * + * + *
      +       * Optional. Complex specification for custom ranking based on customer
      +       * defined attribute value.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpecOrBuilder + getBoostControlSpecOrBuilder() { + return boostControlSpec_ == null + ? com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .getDefaultInstance() + : boostControlSpec_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(condition_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, condition_); + } + if (java.lang.Float.floatToRawIntBits(boost_) != 0) { + output.writeFloat(2, boost_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getBoostControlSpec()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(condition_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, condition_); + } + if (java.lang.Float.floatToRawIntBits(boost_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, boost_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getBoostControlSpec()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec other = + (com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec) obj; + + if (!getCondition().equals(other.getCondition())) return false; + if (java.lang.Float.floatToIntBits(getBoost()) + != java.lang.Float.floatToIntBits(other.getBoost())) return false; + if (hasBoostControlSpec() != other.hasBoostControlSpec()) return false; + if (hasBoostControlSpec()) { + if (!getBoostControlSpec().equals(other.getBoostControlSpec())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONDITION_FIELD_NUMBER; + hash = (53 * hash) + getCondition().hashCode(); + hash = (37 * hash) + BOOST_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); + if (hasBoostControlSpec()) { + hash = (37 * hash) + BOOST_CONTROL_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getBoostControlSpec().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +       * Boost specification for a condition.
      +       * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec) + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_ConditionBoostSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_ConditionBoostSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.class, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.Builder.class); + } + + // Construct using + // com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetBoostControlSpecFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + condition_ = ""; + boost_ = 0F; + boostControlSpec_ = null; + if (boostControlSpecBuilder_ != null) { + boostControlSpecBuilder_.dispose(); + boostControlSpecBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_ConditionBoostSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + getDefaultInstanceForType() { + return com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec build() { + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec buildPartial() { + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec result = + new com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.condition_ = condition_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.boost_ = boost_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.boostControlSpec_ = + boostControlSpecBuilder_ == null + ? boostControlSpec_ + : boostControlSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec) { + return mergeFrom( + (com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec other) { + if (other + == com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .getDefaultInstance()) return this; + if (!other.getCondition().isEmpty()) { + condition_ = other.condition_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (java.lang.Float.floatToRawIntBits(other.getBoost()) != 0) { + setBoost(other.getBoost()); + } + if (other.hasBoostControlSpec()) { + mergeBoostControlSpec(other.getBoostControlSpec()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + condition_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: + { + boost_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + case 34: + { + input.readMessage( + internalGetBoostControlSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object condition_ = ""; + + /** + * + * + *
      +         * Required. An expression which specifies a boost condition. The syntax
      +         * is the same as filter expression syntax. Currently, the only supported
      +         * condition is a list of BCP-47 lang codes. Example: To boost suggestions
      +         * in languages en or fr: (lang_code: ANY("en", "fr"))
      +         * 
      + * + * string condition = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The condition. + */ + public java.lang.String getCondition() { + java.lang.Object ref = condition_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + condition_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +         * Required. An expression which specifies a boost condition. The syntax
      +         * is the same as filter expression syntax. Currently, the only supported
      +         * condition is a list of BCP-47 lang codes. Example: To boost suggestions
      +         * in languages en or fr: (lang_code: ANY("en", "fr"))
      +         * 
      + * + * string condition = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for condition. + */ + public com.google.protobuf.ByteString getConditionBytes() { + java.lang.Object ref = condition_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + condition_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +         * Required. An expression which specifies a boost condition. The syntax
      +         * is the same as filter expression syntax. Currently, the only supported
      +         * condition is a list of BCP-47 lang codes. Example: To boost suggestions
      +         * in languages en or fr: (lang_code: ANY("en", "fr"))
      +         * 
      + * + * string condition = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The condition to set. + * @return This builder for chaining. + */ + public Builder setCondition(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + condition_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +         * Required. An expression which specifies a boost condition. The syntax
      +         * is the same as filter expression syntax. Currently, the only supported
      +         * condition is a list of BCP-47 lang codes. Example: To boost suggestions
      +         * in languages en or fr: (lang_code: ANY("en", "fr"))
      +         * 
      + * + * string condition = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearCondition() { + condition_ = getDefaultInstance().getCondition(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +         * Required. An expression which specifies a boost condition. The syntax
      +         * is the same as filter expression syntax. Currently, the only supported
      +         * condition is a list of BCP-47 lang codes. Example: To boost suggestions
      +         * in languages en or fr: (lang_code: ANY("en", "fr"))
      +         * 
      + * + * string condition = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for condition to set. + * @return This builder for chaining. + */ + public Builder setConditionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + condition_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private float boost_; + + /** + * + * + *
      +         * Optional. Strength of the boost, which should be in [-1, 1]. Negative
      +         * boost means demotion. Default is 0.0.
      +         *
      +         * Setting to 1.0 gives the suggestions a big promotion. However, it does
      +         * not necessarily mean that the top result will be a boosted suggestion.
      +         *
      +         * Setting to -1.0 gives the suggestions a big demotion. However, other
      +         * suggestions that are relevant might still be shown.
      +         *
      +         * Setting to 0.0 means no boost applied. The boosting condition is
      +         * ignored.
      +         * 
      + * + * float boost = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The boost. + */ + @java.lang.Override + public float getBoost() { + return boost_; + } + + /** + * + * + *
      +         * Optional. Strength of the boost, which should be in [-1, 1]. Negative
      +         * boost means demotion. Default is 0.0.
      +         *
      +         * Setting to 1.0 gives the suggestions a big promotion. However, it does
      +         * not necessarily mean that the top result will be a boosted suggestion.
      +         *
      +         * Setting to -1.0 gives the suggestions a big demotion. However, other
      +         * suggestions that are relevant might still be shown.
      +         *
      +         * Setting to 0.0 means no boost applied. The boosting condition is
      +         * ignored.
      +         * 
      + * + * float boost = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The boost to set. + * @return This builder for chaining. + */ + public Builder setBoost(float value) { + + boost_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +         * Optional. Strength of the boost, which should be in [-1, 1]. Negative
      +         * boost means demotion. Default is 0.0.
      +         *
      +         * Setting to 1.0 gives the suggestions a big promotion. However, it does
      +         * not necessarily mean that the top result will be a boosted suggestion.
      +         *
      +         * Setting to -1.0 gives the suggestions a big demotion. However, other
      +         * suggestions that are relevant might still be shown.
      +         *
      +         * Setting to 0.0 means no boost applied. The boosting condition is
      +         * ignored.
      +         * 
      + * + * float boost = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBoost() { + bitField0_ = (bitField0_ & ~0x00000002); + boost_ = 0F; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + boostControlSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .Builder, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpecOrBuilder> + boostControlSpecBuilder_; + + /** + * + * + *
      +         * Optional. Complex specification for custom ranking based on customer
      +         * defined attribute value.
      +         * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the boostControlSpec field is set. + */ + public boolean hasBoostControlSpec() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +         * Optional. Complex specification for custom ranking based on customer
      +         * defined attribute value.
      +         * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The boostControlSpec. + */ + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + getBoostControlSpec() { + if (boostControlSpecBuilder_ == null) { + return boostControlSpec_ == null + ? com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.getDefaultInstance() + : boostControlSpec_; + } else { + return boostControlSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
      +         * Optional. Complex specification for custom ranking based on customer
      +         * defined attribute value.
      +         * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBoostControlSpec( + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + value) { + if (boostControlSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + boostControlSpec_ = value; + } else { + boostControlSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +         * Optional. Complex specification for custom ranking based on customer
      +         * defined attribute value.
      +         * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBoostControlSpec( + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .Builder + builderForValue) { + if (boostControlSpecBuilder_ == null) { + boostControlSpec_ = builderForValue.build(); + } else { + boostControlSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +         * Optional. Complex specification for custom ranking based on customer
      +         * defined attribute value.
      +         * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeBoostControlSpec( + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + value) { + if (boostControlSpecBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && boostControlSpec_ != null + && boostControlSpec_ + != com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.getDefaultInstance()) { + getBoostControlSpecBuilder().mergeFrom(value); + } else { + boostControlSpec_ = value; + } + } else { + boostControlSpecBuilder_.mergeFrom(value); + } + if (boostControlSpec_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
      +         * Optional. Complex specification for custom ranking based on customer
      +         * defined attribute value.
      +         * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearBoostControlSpec() { + bitField0_ = (bitField0_ & ~0x00000004); + boostControlSpec_ = null; + if (boostControlSpecBuilder_ != null) { + boostControlSpecBuilder_.dispose(); + boostControlSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +         * Optional. Complex specification for custom ranking based on customer
      +         * defined attribute value.
      +         * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .Builder + getBoostControlSpecBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetBoostControlSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +         * Optional. Complex specification for custom ranking based on customer
      +         * defined attribute value.
      +         * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpecOrBuilder + getBoostControlSpecOrBuilder() { + if (boostControlSpecBuilder_ != null) { + return boostControlSpecBuilder_.getMessageOrBuilder(); + } else { + return boostControlSpec_ == null + ? com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.getDefaultInstance() + : boostControlSpec_; + } + } + + /** + * + * + *
      +         * Optional. Complex specification for custom ranking based on customer
      +         * defined attribute value.
      +         * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpec + .Builder, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpecOrBuilder> + internalGetBoostControlSpecFieldBuilder() { + if (boostControlSpecBuilder_ == null) { + boostControlSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpec.Builder, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .BoostControlSpecOrBuilder>( + getBoostControlSpec(), getParentForChildren(), isClean()); + boostControlSpec_ = null; + } + return boostControlSpecBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec) + private static final com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec(); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConditionBoostSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int CONDITION_BOOST_SPECS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + conditionBoostSpecs_; + + /** + * + * + *
      +     * Required. A list of boosting specifications.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getConditionBoostSpecsList() { + return conditionBoostSpecs_; + } + + /** + * + * + *
      +     * Required. A list of boosting specifications.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpecOrBuilder> + getConditionBoostSpecsOrBuilderList() { + return conditionBoostSpecs_; + } + + /** + * + * + *
      +     * Required. A list of boosting specifications.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getConditionBoostSpecsCount() { + return conditionBoostSpecs_.size(); + } + + /** + * + * + *
      +     * Required. A list of boosting specifications.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + getConditionBoostSpecs(int index) { + return conditionBoostSpecs_.get(index); + } + + /** + * + * + *
      +     * Required. A list of boosting specifications.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpecOrBuilder + getConditionBoostSpecsOrBuilder(int index) { + return conditionBoostSpecs_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < conditionBoostSpecs_.size(); i++) { + output.writeMessage(1, conditionBoostSpecs_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < conditionBoostSpecs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, conditionBoostSpecs_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.DataStoreTool.BoostSpec)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.DataStoreTool.BoostSpec other = + (com.google.cloud.ces.v1.DataStoreTool.BoostSpec) obj; + + if (!getConditionBoostSpecsList().equals(other.getConditionBoostSpecsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getConditionBoostSpecsCount() > 0) { + hash = (37 * hash) + CONDITION_BOOST_SPECS_FIELD_NUMBER; + hash = (53 * hash) + getConditionBoostSpecsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.DataStoreTool.BoostSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Boost specification to boost certain documents.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DataStoreTool.BoostSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.DataStoreTool.BoostSpec) + com.google.cloud.ces.v1.DataStoreTool.BoostSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.class, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.DataStoreTool.BoostSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (conditionBoostSpecsBuilder_ == null) { + conditionBoostSpecs_ = java.util.Collections.emptyList(); + } else { + conditionBoostSpecs_ = null; + conditionBoostSpecsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec getDefaultInstanceForType() { + return com.google.cloud.ces.v1.DataStoreTool.BoostSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec build() { + com.google.cloud.ces.v1.DataStoreTool.BoostSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec buildPartial() { + com.google.cloud.ces.v1.DataStoreTool.BoostSpec result = + new com.google.cloud.ces.v1.DataStoreTool.BoostSpec(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.ces.v1.DataStoreTool.BoostSpec result) { + if (conditionBoostSpecsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + conditionBoostSpecs_ = java.util.Collections.unmodifiableList(conditionBoostSpecs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.conditionBoostSpecs_ = conditionBoostSpecs_; + } else { + result.conditionBoostSpecs_ = conditionBoostSpecsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.DataStoreTool.BoostSpec result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.DataStoreTool.BoostSpec) { + return mergeFrom((com.google.cloud.ces.v1.DataStoreTool.BoostSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.DataStoreTool.BoostSpec other) { + if (other == com.google.cloud.ces.v1.DataStoreTool.BoostSpec.getDefaultInstance()) + return this; + if (conditionBoostSpecsBuilder_ == null) { + if (!other.conditionBoostSpecs_.isEmpty()) { + if (conditionBoostSpecs_.isEmpty()) { + conditionBoostSpecs_ = other.conditionBoostSpecs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureConditionBoostSpecsIsMutable(); + conditionBoostSpecs_.addAll(other.conditionBoostSpecs_); + } + onChanged(); + } + } else { + if (!other.conditionBoostSpecs_.isEmpty()) { + if (conditionBoostSpecsBuilder_.isEmpty()) { + conditionBoostSpecsBuilder_.dispose(); + conditionBoostSpecsBuilder_ = null; + conditionBoostSpecs_ = other.conditionBoostSpecs_; + bitField0_ = (bitField0_ & ~0x00000001); + conditionBoostSpecsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetConditionBoostSpecsFieldBuilder() + : null; + } else { + conditionBoostSpecsBuilder_.addAllMessages(other.conditionBoostSpecs_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec m = + input.readMessage( + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .parser(), + extensionRegistry); + if (conditionBoostSpecsBuilder_ == null) { + ensureConditionBoostSpecsIsMutable(); + conditionBoostSpecs_.add(m); + } else { + conditionBoostSpecsBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + conditionBoostSpecs_ = java.util.Collections.emptyList(); + + private void ensureConditionBoostSpecsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + conditionBoostSpecs_ = + new java.util.ArrayList< + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec>( + conditionBoostSpecs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.Builder, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpecOrBuilder> + conditionBoostSpecsBuilder_; + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getConditionBoostSpecsList() { + if (conditionBoostSpecsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conditionBoostSpecs_); + } else { + return conditionBoostSpecsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getConditionBoostSpecsCount() { + if (conditionBoostSpecsBuilder_ == null) { + return conditionBoostSpecs_.size(); + } else { + return conditionBoostSpecsBuilder_.getCount(); + } + } + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + getConditionBoostSpecs(int index) { + if (conditionBoostSpecsBuilder_ == null) { + return conditionBoostSpecs_.get(index); + } else { + return conditionBoostSpecsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConditionBoostSpecs( + int index, com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec value) { + if (conditionBoostSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionBoostSpecsIsMutable(); + conditionBoostSpecs_.set(index, value); + onChanged(); + } else { + conditionBoostSpecsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConditionBoostSpecs( + int index, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.Builder + builderForValue) { + if (conditionBoostSpecsBuilder_ == null) { + ensureConditionBoostSpecsIsMutable(); + conditionBoostSpecs_.set(index, builderForValue.build()); + onChanged(); + } else { + conditionBoostSpecsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addConditionBoostSpecs( + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec value) { + if (conditionBoostSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionBoostSpecsIsMutable(); + conditionBoostSpecs_.add(value); + onChanged(); + } else { + conditionBoostSpecsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addConditionBoostSpecs( + int index, com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec value) { + if (conditionBoostSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionBoostSpecsIsMutable(); + conditionBoostSpecs_.add(index, value); + onChanged(); + } else { + conditionBoostSpecsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addConditionBoostSpecs( + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.Builder + builderForValue) { + if (conditionBoostSpecsBuilder_ == null) { + ensureConditionBoostSpecsIsMutable(); + conditionBoostSpecs_.add(builderForValue.build()); + onChanged(); + } else { + conditionBoostSpecsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addConditionBoostSpecs( + int index, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.Builder + builderForValue) { + if (conditionBoostSpecsBuilder_ == null) { + ensureConditionBoostSpecsIsMutable(); + conditionBoostSpecs_.add(index, builderForValue.build()); + onChanged(); + } else { + conditionBoostSpecsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllConditionBoostSpecs( + java.lang.Iterable< + ? extends com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec> + values) { + if (conditionBoostSpecsBuilder_ == null) { + ensureConditionBoostSpecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditionBoostSpecs_); + onChanged(); + } else { + conditionBoostSpecsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearConditionBoostSpecs() { + if (conditionBoostSpecsBuilder_ == null) { + conditionBoostSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + conditionBoostSpecsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeConditionBoostSpecs(int index) { + if (conditionBoostSpecsBuilder_ == null) { + ensureConditionBoostSpecsIsMutable(); + conditionBoostSpecs_.remove(index); + onChanged(); + } else { + conditionBoostSpecsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.Builder + getConditionBoostSpecsBuilder(int index) { + return internalGetConditionBoostSpecsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpecOrBuilder + getConditionBoostSpecsOrBuilder(int index) { + if (conditionBoostSpecsBuilder_ == null) { + return conditionBoostSpecs_.get(index); + } else { + return conditionBoostSpecsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpecOrBuilder> + getConditionBoostSpecsOrBuilderList() { + if (conditionBoostSpecsBuilder_ != null) { + return conditionBoostSpecsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conditionBoostSpecs_); + } + } + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.Builder + addConditionBoostSpecsBuilder() { + return internalGetConditionBoostSpecsFieldBuilder() + .addBuilder( + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .getDefaultInstance()); + } + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.Builder + addConditionBoostSpecsBuilder(int index) { + return internalGetConditionBoostSpecsFieldBuilder() + .addBuilder( + index, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec + .getDefaultInstance()); + } + + /** + * + * + *
      +       * Required. A list of boosting specifications.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.Builder> + getConditionBoostSpecsBuilderList() { + return internalGetConditionBoostSpecsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.Builder, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpecOrBuilder> + internalGetConditionBoostSpecsFieldBuilder() { + if (conditionBoostSpecsBuilder_ == null) { + conditionBoostSpecsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpec.Builder, + com.google.cloud.ces.v1.DataStoreTool.BoostSpec.ConditionBoostSpecOrBuilder>( + conditionBoostSpecs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + conditionBoostSpecs_ = null; + } + return conditionBoostSpecsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.DataStoreTool.BoostSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.DataStoreTool.BoostSpec) + private static final com.google.cloud.ces.v1.DataStoreTool.BoostSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.DataStoreTool.BoostSpec(); + } + + public static com.google.cloud.ces.v1.DataStoreTool.BoostSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BoostSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.BoostSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ModalityConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.DataStoreTool.ModalityConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Required. The modality type.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.ModalityConfig.ModalityType modality_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for modalityType. + */ + int getModalityTypeValue(); + + /** + * + * + *
      +     * Required. The modality type.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.ModalityConfig.ModalityType modality_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The modalityType. + */ + com.google.cloud.ces.v1.DataStoreTool.ModalityConfig.ModalityType getModalityType(); + + /** + * + * + *
      +     * Optional. The rewriter config.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.RewriterConfig rewriter_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rewriterConfig field is set. + */ + boolean hasRewriterConfig(); + + /** + * + * + *
      +     * Optional. The rewriter config.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.RewriterConfig rewriter_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rewriterConfig. + */ + com.google.cloud.ces.v1.DataStoreTool.RewriterConfig getRewriterConfig(); + + /** + * + * + *
      +     * Optional. The rewriter config.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.RewriterConfig rewriter_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.DataStoreTool.RewriterConfigOrBuilder getRewriterConfigOrBuilder(); + + /** + * + * + *
      +     * Optional. The summarization config.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.SummarizationConfig summarization_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the summarizationConfig field is set. + */ + boolean hasSummarizationConfig(); + + /** + * + * + *
      +     * Optional. The summarization config.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.SummarizationConfig summarization_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The summarizationConfig. + */ + com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig getSummarizationConfig(); + + /** + * + * + *
      +     * Optional. The summarization config.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.SummarizationConfig summarization_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.DataStoreTool.SummarizationConfigOrBuilder + getSummarizationConfigOrBuilder(); + + /** + * + * + *
      +     * Optional. The grounding configuration.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.GroundingConfig grounding_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the groundingConfig field is set. + */ + boolean hasGroundingConfig(); + + /** + * + * + *
      +     * Optional. The grounding configuration.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.GroundingConfig grounding_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The groundingConfig. + */ + com.google.cloud.ces.v1.DataStoreTool.GroundingConfig getGroundingConfig(); + + /** + * + * + *
      +     * Optional. The grounding configuration.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.GroundingConfig grounding_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.DataStoreTool.GroundingConfigOrBuilder getGroundingConfigOrBuilder(); + } + + /** + * + * + *
      +   * If specified, will apply the given configuration for the specified
      +   * modality.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DataStoreTool.ModalityConfig} + */ + public static final class ModalityConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.DataStoreTool.ModalityConfig) + ModalityConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ModalityConfig"); + } + + // Use ModalityConfig.newBuilder() to construct. + private ModalityConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ModalityConfig() { + modalityType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_ModalityConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_ModalityConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DataStoreTool.ModalityConfig.class, + com.google.cloud.ces.v1.DataStoreTool.ModalityConfig.Builder.class); + } + + /** + * + * + *
      +     * The modality type.
      +     * 
      + * + * Protobuf enum {@code google.cloud.ces.v1.DataStoreTool.ModalityConfig.ModalityType} + */ + public enum ModalityType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +       * Unspecified modality type.
      +       * 
      + * + * MODALITY_TYPE_UNSPECIFIED = 0; + */ + MODALITY_TYPE_UNSPECIFIED(0), + /** + * + * + *
      +       * Text modality.
      +       * 
      + * + * TEXT = 1; + */ + TEXT(1), + /** + * + * + *
      +       * Audio modality.
      +       * 
      + * + * AUDIO = 2; + */ + AUDIO(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ModalityType"); + } + + /** + * + * + *
      +       * Unspecified modality type.
      +       * 
      + * + * MODALITY_TYPE_UNSPECIFIED = 0; + */ + public static final int MODALITY_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +       * Text modality.
      +       * 
      + * + * TEXT = 1; + */ + public static final int TEXT_VALUE = 1; + + /** + * + * + *
      +       * Audio modality.
      +       * 
      + * + * AUDIO = 2; + */ + public static final int AUDIO_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ModalityType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ModalityType forNumber(int value) { + switch (value) { + case 0: + return MODALITY_TYPE_UNSPECIFIED; + case 1: + return TEXT; + case 2: + return AUDIO; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ModalityType findValueByNumber(int number) { + return ModalityType.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStoreTool.ModalityConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ModalityType[] VALUES = values(); + + public static ModalityType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ModalityType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.DataStoreTool.ModalityConfig.ModalityType) + } + + private int bitField0_; + public static final int MODALITY_TYPE_FIELD_NUMBER = 1; + private int modalityType_ = 0; + + /** + * + * + *
      +     * Required. The modality type.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.ModalityConfig.ModalityType modality_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for modalityType. + */ + @java.lang.Override + public int getModalityTypeValue() { + return modalityType_; + } + + /** + * + * + *
      +     * Required. The modality type.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.ModalityConfig.ModalityType modality_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The modalityType. + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.ModalityConfig.ModalityType getModalityType() { + com.google.cloud.ces.v1.DataStoreTool.ModalityConfig.ModalityType result = + com.google.cloud.ces.v1.DataStoreTool.ModalityConfig.ModalityType.forNumber( + modalityType_); + return result == null + ? com.google.cloud.ces.v1.DataStoreTool.ModalityConfig.ModalityType.UNRECOGNIZED + : result; + } + + public static final int REWRITER_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.ces.v1.DataStoreTool.RewriterConfig rewriterConfig_; + + /** + * + * + *
      +     * Optional. The rewriter config.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.RewriterConfig rewriter_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rewriterConfig field is set. + */ + @java.lang.Override + public boolean hasRewriterConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Optional. The rewriter config.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.RewriterConfig rewriter_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rewriterConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.RewriterConfig getRewriterConfig() { + return rewriterConfig_ == null + ? com.google.cloud.ces.v1.DataStoreTool.RewriterConfig.getDefaultInstance() + : rewriterConfig_; + } + + /** + * + * + *
      +     * Optional. The rewriter config.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.RewriterConfig rewriter_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.RewriterConfigOrBuilder + getRewriterConfigOrBuilder() { + return rewriterConfig_ == null + ? com.google.cloud.ces.v1.DataStoreTool.RewriterConfig.getDefaultInstance() + : rewriterConfig_; + } + + public static final int SUMMARIZATION_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig summarizationConfig_; + + /** + * + * + *
      +     * Optional. The summarization config.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.SummarizationConfig summarization_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the summarizationConfig field is set. + */ + @java.lang.Override + public boolean hasSummarizationConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Optional. The summarization config.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.SummarizationConfig summarization_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The summarizationConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig getSummarizationConfig() { + return summarizationConfig_ == null + ? com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig.getDefaultInstance() + : summarizationConfig_; + } + + /** + * + * + *
      +     * Optional. The summarization config.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.SummarizationConfig summarization_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.SummarizationConfigOrBuilder + getSummarizationConfigOrBuilder() { + return summarizationConfig_ == null + ? com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig.getDefaultInstance() + : summarizationConfig_; + } + + public static final int GROUNDING_CONFIG_FIELD_NUMBER = 4; + private com.google.cloud.ces.v1.DataStoreTool.GroundingConfig groundingConfig_; + + /** + * + * + *
      +     * Optional. The grounding configuration.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.GroundingConfig grounding_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the groundingConfig field is set. + */ + @java.lang.Override + public boolean hasGroundingConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Optional. The grounding configuration.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.GroundingConfig grounding_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The groundingConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.GroundingConfig getGroundingConfig() { + return groundingConfig_ == null + ? com.google.cloud.ces.v1.DataStoreTool.GroundingConfig.getDefaultInstance() + : groundingConfig_; + } + + /** + * + * + *
      +     * Optional. The grounding configuration.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.GroundingConfig grounding_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.GroundingConfigOrBuilder + getGroundingConfigOrBuilder() { + return groundingConfig_ == null + ? com.google.cloud.ces.v1.DataStoreTool.GroundingConfig.getDefaultInstance() + : groundingConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (modalityType_ + != com.google.cloud.ces.v1.DataStoreTool.ModalityConfig.ModalityType + .MODALITY_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, modalityType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getRewriterConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getSummarizationConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getGroundingConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (modalityType_ + != com.google.cloud.ces.v1.DataStoreTool.ModalityConfig.ModalityType + .MODALITY_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, modalityType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRewriterConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSummarizationConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getGroundingConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.DataStoreTool.ModalityConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.DataStoreTool.ModalityConfig other = + (com.google.cloud.ces.v1.DataStoreTool.ModalityConfig) obj; + + if (modalityType_ != other.modalityType_) return false; + if (hasRewriterConfig() != other.hasRewriterConfig()) return false; + if (hasRewriterConfig()) { + if (!getRewriterConfig().equals(other.getRewriterConfig())) return false; + } + if (hasSummarizationConfig() != other.hasSummarizationConfig()) return false; + if (hasSummarizationConfig()) { + if (!getSummarizationConfig().equals(other.getSummarizationConfig())) return false; + } + if (hasGroundingConfig() != other.hasGroundingConfig()) return false; + if (hasGroundingConfig()) { + if (!getGroundingConfig().equals(other.getGroundingConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MODALITY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + modalityType_; + if (hasRewriterConfig()) { + hash = (37 * hash) + REWRITER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRewriterConfig().hashCode(); + } + if (hasSummarizationConfig()) { + hash = (37 * hash) + SUMMARIZATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSummarizationConfig().hashCode(); + } + if (hasGroundingConfig()) { + hash = (37 * hash) + GROUNDING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGroundingConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.DataStoreTool.ModalityConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool.ModalityConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.ModalityConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool.ModalityConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.ModalityConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool.ModalityConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.ModalityConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool.ModalityConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.ModalityConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool.ModalityConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool.ModalityConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool.ModalityConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.DataStoreTool.ModalityConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * If specified, will apply the given configuration for the specified
      +     * modality.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DataStoreTool.ModalityConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.DataStoreTool.ModalityConfig) + com.google.cloud.ces.v1.DataStoreTool.ModalityConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_ModalityConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_ModalityConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DataStoreTool.ModalityConfig.class, + com.google.cloud.ces.v1.DataStoreTool.ModalityConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.DataStoreTool.ModalityConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRewriterConfigFieldBuilder(); + internalGetSummarizationConfigFieldBuilder(); + internalGetGroundingConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + modalityType_ = 0; + rewriterConfig_ = null; + if (rewriterConfigBuilder_ != null) { + rewriterConfigBuilder_.dispose(); + rewriterConfigBuilder_ = null; + } + summarizationConfig_ = null; + if (summarizationConfigBuilder_ != null) { + summarizationConfigBuilder_.dispose(); + summarizationConfigBuilder_ = null; + } + groundingConfig_ = null; + if (groundingConfigBuilder_ != null) { + groundingConfigBuilder_.dispose(); + groundingConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_ModalityConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.ModalityConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1.DataStoreTool.ModalityConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.ModalityConfig build() { + com.google.cloud.ces.v1.DataStoreTool.ModalityConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.ModalityConfig buildPartial() { + com.google.cloud.ces.v1.DataStoreTool.ModalityConfig result = + new com.google.cloud.ces.v1.DataStoreTool.ModalityConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.DataStoreTool.ModalityConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modalityType_ = modalityType_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rewriterConfig_ = + rewriterConfigBuilder_ == null ? rewriterConfig_ : rewriterConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.summarizationConfig_ = + summarizationConfigBuilder_ == null + ? summarizationConfig_ + : summarizationConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.groundingConfig_ = + groundingConfigBuilder_ == null ? groundingConfig_ : groundingConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.DataStoreTool.ModalityConfig) { + return mergeFrom((com.google.cloud.ces.v1.DataStoreTool.ModalityConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.DataStoreTool.ModalityConfig other) { + if (other == com.google.cloud.ces.v1.DataStoreTool.ModalityConfig.getDefaultInstance()) + return this; + if (other.modalityType_ != 0) { + setModalityTypeValue(other.getModalityTypeValue()); + } + if (other.hasRewriterConfig()) { + mergeRewriterConfig(other.getRewriterConfig()); + } + if (other.hasSummarizationConfig()) { + mergeSummarizationConfig(other.getSummarizationConfig()); + } + if (other.hasGroundingConfig()) { + mergeGroundingConfig(other.getGroundingConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + modalityType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + internalGetRewriterConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetSummarizationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetGroundingConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int modalityType_ = 0; + + /** + * + * + *
      +       * Required. The modality type.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.ModalityConfig.ModalityType modality_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for modalityType. + */ + @java.lang.Override + public int getModalityTypeValue() { + return modalityType_; + } + + /** + * + * + *
      +       * Required. The modality type.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.ModalityConfig.ModalityType modality_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for modalityType to set. + * @return This builder for chaining. + */ + public Builder setModalityTypeValue(int value) { + modalityType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. The modality type.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.ModalityConfig.ModalityType modality_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The modalityType. + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.ModalityConfig.ModalityType getModalityType() { + com.google.cloud.ces.v1.DataStoreTool.ModalityConfig.ModalityType result = + com.google.cloud.ces.v1.DataStoreTool.ModalityConfig.ModalityType.forNumber( + modalityType_); + return result == null + ? com.google.cloud.ces.v1.DataStoreTool.ModalityConfig.ModalityType.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +       * Required. The modality type.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.ModalityConfig.ModalityType modality_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The modalityType to set. + * @return This builder for chaining. + */ + public Builder setModalityType( + com.google.cloud.ces.v1.DataStoreTool.ModalityConfig.ModalityType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + modalityType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. The modality type.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.ModalityConfig.ModalityType modality_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearModalityType() { + bitField0_ = (bitField0_ & ~0x00000001); + modalityType_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.DataStoreTool.RewriterConfig rewriterConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.RewriterConfig, + com.google.cloud.ces.v1.DataStoreTool.RewriterConfig.Builder, + com.google.cloud.ces.v1.DataStoreTool.RewriterConfigOrBuilder> + rewriterConfigBuilder_; + + /** + * + * + *
      +       * Optional. The rewriter config.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.RewriterConfig rewriter_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rewriterConfig field is set. + */ + public boolean hasRewriterConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +       * Optional. The rewriter config.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.RewriterConfig rewriter_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rewriterConfig. + */ + public com.google.cloud.ces.v1.DataStoreTool.RewriterConfig getRewriterConfig() { + if (rewriterConfigBuilder_ == null) { + return rewriterConfig_ == null + ? com.google.cloud.ces.v1.DataStoreTool.RewriterConfig.getDefaultInstance() + : rewriterConfig_; + } else { + return rewriterConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
      +       * Optional. The rewriter config.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.RewriterConfig rewriter_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRewriterConfig(com.google.cloud.ces.v1.DataStoreTool.RewriterConfig value) { + if (rewriterConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rewriterConfig_ = value; + } else { + rewriterConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The rewriter config.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.RewriterConfig rewriter_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRewriterConfig( + com.google.cloud.ces.v1.DataStoreTool.RewriterConfig.Builder builderForValue) { + if (rewriterConfigBuilder_ == null) { + rewriterConfig_ = builderForValue.build(); + } else { + rewriterConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The rewriter config.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.RewriterConfig rewriter_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRewriterConfig( + com.google.cloud.ces.v1.DataStoreTool.RewriterConfig value) { + if (rewriterConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && rewriterConfig_ != null + && rewriterConfig_ + != com.google.cloud.ces.v1.DataStoreTool.RewriterConfig.getDefaultInstance()) { + getRewriterConfigBuilder().mergeFrom(value); + } else { + rewriterConfig_ = value; + } + } else { + rewriterConfigBuilder_.mergeFrom(value); + } + if (rewriterConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +       * Optional. The rewriter config.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.RewriterConfig rewriter_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRewriterConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + rewriterConfig_ = null; + if (rewriterConfigBuilder_ != null) { + rewriterConfigBuilder_.dispose(); + rewriterConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The rewriter config.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.RewriterConfig rewriter_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.RewriterConfig.Builder + getRewriterConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetRewriterConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Optional. The rewriter config.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.RewriterConfig rewriter_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.RewriterConfigOrBuilder + getRewriterConfigOrBuilder() { + if (rewriterConfigBuilder_ != null) { + return rewriterConfigBuilder_.getMessageOrBuilder(); + } else { + return rewriterConfig_ == null + ? com.google.cloud.ces.v1.DataStoreTool.RewriterConfig.getDefaultInstance() + : rewriterConfig_; + } + } + + /** + * + * + *
      +       * Optional. The rewriter config.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.RewriterConfig rewriter_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.RewriterConfig, + com.google.cloud.ces.v1.DataStoreTool.RewriterConfig.Builder, + com.google.cloud.ces.v1.DataStoreTool.RewriterConfigOrBuilder> + internalGetRewriterConfigFieldBuilder() { + if (rewriterConfigBuilder_ == null) { + rewriterConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.RewriterConfig, + com.google.cloud.ces.v1.DataStoreTool.RewriterConfig.Builder, + com.google.cloud.ces.v1.DataStoreTool.RewriterConfigOrBuilder>( + getRewriterConfig(), getParentForChildren(), isClean()); + rewriterConfig_ = null; + } + return rewriterConfigBuilder_; + } + + private com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig summarizationConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig, + com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig.Builder, + com.google.cloud.ces.v1.DataStoreTool.SummarizationConfigOrBuilder> + summarizationConfigBuilder_; + + /** + * + * + *
      +       * Optional. The summarization config.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.SummarizationConfig summarization_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the summarizationConfig field is set. + */ + public boolean hasSummarizationConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +       * Optional. The summarization config.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.SummarizationConfig summarization_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The summarizationConfig. + */ + public com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig getSummarizationConfig() { + if (summarizationConfigBuilder_ == null) { + return summarizationConfig_ == null + ? com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig.getDefaultInstance() + : summarizationConfig_; + } else { + return summarizationConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
      +       * Optional. The summarization config.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.SummarizationConfig summarization_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSummarizationConfig( + com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig value) { + if (summarizationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + summarizationConfig_ = value; + } else { + summarizationConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The summarization config.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.SummarizationConfig summarization_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSummarizationConfig( + com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig.Builder builderForValue) { + if (summarizationConfigBuilder_ == null) { + summarizationConfig_ = builderForValue.build(); + } else { + summarizationConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The summarization config.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.SummarizationConfig summarization_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSummarizationConfig( + com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig value) { + if (summarizationConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && summarizationConfig_ != null + && summarizationConfig_ + != com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig + .getDefaultInstance()) { + getSummarizationConfigBuilder().mergeFrom(value); + } else { + summarizationConfig_ = value; + } + } else { + summarizationConfigBuilder_.mergeFrom(value); + } + if (summarizationConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
      +       * Optional. The summarization config.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.SummarizationConfig summarization_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSummarizationConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + summarizationConfig_ = null; + if (summarizationConfigBuilder_ != null) { + summarizationConfigBuilder_.dispose(); + summarizationConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The summarization config.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.SummarizationConfig summarization_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig.Builder + getSummarizationConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetSummarizationConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Optional. The summarization config.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.SummarizationConfig summarization_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.SummarizationConfigOrBuilder + getSummarizationConfigOrBuilder() { + if (summarizationConfigBuilder_ != null) { + return summarizationConfigBuilder_.getMessageOrBuilder(); + } else { + return summarizationConfig_ == null + ? com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig.getDefaultInstance() + : summarizationConfig_; + } + } + + /** + * + * + *
      +       * Optional. The summarization config.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.SummarizationConfig summarization_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig, + com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig.Builder, + com.google.cloud.ces.v1.DataStoreTool.SummarizationConfigOrBuilder> + internalGetSummarizationConfigFieldBuilder() { + if (summarizationConfigBuilder_ == null) { + summarizationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig, + com.google.cloud.ces.v1.DataStoreTool.SummarizationConfig.Builder, + com.google.cloud.ces.v1.DataStoreTool.SummarizationConfigOrBuilder>( + getSummarizationConfig(), getParentForChildren(), isClean()); + summarizationConfig_ = null; + } + return summarizationConfigBuilder_; + } + + private com.google.cloud.ces.v1.DataStoreTool.GroundingConfig groundingConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.GroundingConfig, + com.google.cloud.ces.v1.DataStoreTool.GroundingConfig.Builder, + com.google.cloud.ces.v1.DataStoreTool.GroundingConfigOrBuilder> + groundingConfigBuilder_; + + /** + * + * + *
      +       * Optional. The grounding configuration.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.GroundingConfig grounding_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the groundingConfig field is set. + */ + public boolean hasGroundingConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +       * Optional. The grounding configuration.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.GroundingConfig grounding_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The groundingConfig. + */ + public com.google.cloud.ces.v1.DataStoreTool.GroundingConfig getGroundingConfig() { + if (groundingConfigBuilder_ == null) { + return groundingConfig_ == null + ? com.google.cloud.ces.v1.DataStoreTool.GroundingConfig.getDefaultInstance() + : groundingConfig_; + } else { + return groundingConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
      +       * Optional. The grounding configuration.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.GroundingConfig grounding_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGroundingConfig( + com.google.cloud.ces.v1.DataStoreTool.GroundingConfig value) { + if (groundingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + groundingConfig_ = value; + } else { + groundingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The grounding configuration.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.GroundingConfig grounding_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGroundingConfig( + com.google.cloud.ces.v1.DataStoreTool.GroundingConfig.Builder builderForValue) { + if (groundingConfigBuilder_ == null) { + groundingConfig_ = builderForValue.build(); + } else { + groundingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The grounding configuration.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.GroundingConfig grounding_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGroundingConfig( + com.google.cloud.ces.v1.DataStoreTool.GroundingConfig value) { + if (groundingConfigBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && groundingConfig_ != null + && groundingConfig_ + != com.google.cloud.ces.v1.DataStoreTool.GroundingConfig.getDefaultInstance()) { + getGroundingConfigBuilder().mergeFrom(value); + } else { + groundingConfig_ = value; + } + } else { + groundingConfigBuilder_.mergeFrom(value); + } + if (groundingConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
      +       * Optional. The grounding configuration.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.GroundingConfig grounding_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGroundingConfig() { + bitField0_ = (bitField0_ & ~0x00000008); + groundingConfig_ = null; + if (groundingConfigBuilder_ != null) { + groundingConfigBuilder_.dispose(); + groundingConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The grounding configuration.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.GroundingConfig grounding_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.GroundingConfig.Builder + getGroundingConfigBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetGroundingConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Optional. The grounding configuration.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.GroundingConfig grounding_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.GroundingConfigOrBuilder + getGroundingConfigOrBuilder() { + if (groundingConfigBuilder_ != null) { + return groundingConfigBuilder_.getMessageOrBuilder(); + } else { + return groundingConfig_ == null + ? com.google.cloud.ces.v1.DataStoreTool.GroundingConfig.getDefaultInstance() + : groundingConfig_; + } + } + + /** + * + * + *
      +       * Optional. The grounding configuration.
      +       * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.GroundingConfig grounding_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.GroundingConfig, + com.google.cloud.ces.v1.DataStoreTool.GroundingConfig.Builder, + com.google.cloud.ces.v1.DataStoreTool.GroundingConfigOrBuilder> + internalGetGroundingConfigFieldBuilder() { + if (groundingConfigBuilder_ == null) { + groundingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.GroundingConfig, + com.google.cloud.ces.v1.DataStoreTool.GroundingConfig.Builder, + com.google.cloud.ces.v1.DataStoreTool.GroundingConfigOrBuilder>( + getGroundingConfig(), getParentForChildren(), isClean()); + groundingConfig_ = null; + } + return groundingConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.DataStoreTool.ModalityConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.DataStoreTool.ModalityConfig) + private static final com.google.cloud.ces.v1.DataStoreTool.ModalityConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.DataStoreTool.ModalityConfig(); + } + + public static com.google.cloud.ces.v1.DataStoreTool.ModalityConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModalityConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.ModalityConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int searchSourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object searchSource_; + + public enum SearchSourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DATA_STORE_SOURCE(3), + ENGINE_SOURCE(4), + SEARCHSOURCE_NOT_SET(0); + private final int value; + + private SearchSourceCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SearchSourceCase valueOf(int value) { + return forNumber(value); + } + + public static SearchSourceCase forNumber(int value) { + switch (value) { + case 3: + return DATA_STORE_SOURCE; + case 4: + return ENGINE_SOURCE; + case 0: + return SEARCHSOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SearchSourceCase getSearchSourceCase() { + return SearchSourceCase.forNumber(searchSourceCase_); + } + + public static final int DATA_STORE_SOURCE_FIELD_NUMBER = 3; + + /** + * + * + *
      +   * Optional. Search within a single specific DataStore.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataStoreSource field is set. + */ + @java.lang.Override + public boolean hasDataStoreSource() { + return searchSourceCase_ == 3; + } + + /** + * + * + *
      +   * Optional. Search within a single specific DataStore.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataStoreSource. + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.DataStoreSource getDataStoreSource() { + if (searchSourceCase_ == 3) { + return (com.google.cloud.ces.v1.DataStoreTool.DataStoreSource) searchSource_; + } + return com.google.cloud.ces.v1.DataStoreTool.DataStoreSource.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Search within a single specific DataStore.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.DataStoreSourceOrBuilder + getDataStoreSourceOrBuilder() { + if (searchSourceCase_ == 3) { + return (com.google.cloud.ces.v1.DataStoreTool.DataStoreSource) searchSource_; + } + return com.google.cloud.ces.v1.DataStoreTool.DataStoreSource.getDefaultInstance(); + } + + public static final int ENGINE_SOURCE_FIELD_NUMBER = 4; + + /** + * + * + *
      +   * Optional. Search within an Engine (potentially across multiple
      +   * DataStores).
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.EngineSource engine_source = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the engineSource field is set. + */ + @java.lang.Override + public boolean hasEngineSource() { + return searchSourceCase_ == 4; + } + + /** + * + * + *
      +   * Optional. Search within an Engine (potentially across multiple
      +   * DataStores).
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.EngineSource engine_source = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The engineSource. + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.EngineSource getEngineSource() { + if (searchSourceCase_ == 4) { + return (com.google.cloud.ces.v1.DataStoreTool.EngineSource) searchSource_; + } + return com.google.cloud.ces.v1.DataStoreTool.EngineSource.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Search within an Engine (potentially across multiple
      +   * DataStores).
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.EngineSource engine_source = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.EngineSourceOrBuilder getEngineSourceOrBuilder() { + if (searchSourceCase_ == 4) { + return (com.google.cloud.ces.v1.DataStoreTool.EngineSource) searchSource_; + } + return com.google.cloud.ces.v1.DataStoreTool.EngineSource.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. The data store tool name.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The data store tool name.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
      +   * Optional. The tool description.
      +   * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The tool description.
      +   * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BOOST_SPECS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List boostSpecs_; + + /** + * + * + *
      +   * Optional. Boost specification to boost certain documents.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpecs boost_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getBoostSpecsList() { + return boostSpecs_; + } + + /** + * + * + *
      +   * Optional. Boost specification to boost certain documents.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpecs boost_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getBoostSpecsOrBuilderList() { + return boostSpecs_; + } + + /** + * + * + *
      +   * Optional. Boost specification to boost certain documents.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpecs boost_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getBoostSpecsCount() { + return boostSpecs_.size(); + } + + /** + * + * + *
      +   * Optional. Boost specification to boost certain documents.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpecs boost_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.BoostSpecs getBoostSpecs(int index) { + return boostSpecs_.get(index); + } + + /** + * + * + *
      +   * Optional. Boost specification to boost certain documents.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpecs boost_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.BoostSpecsOrBuilder getBoostSpecsOrBuilder( + int index) { + return boostSpecs_.get(index); + } + + public static final int MODALITY_CONFIGS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List modalityConfigs_; + + /** + * + * + *
      +   * Optional. The modality configs for the data store.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.ModalityConfig modality_configs = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getModalityConfigsList() { + return modalityConfigs_; + } + + /** + * + * + *
      +   * Optional. The modality configs for the data store.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.ModalityConfig modality_configs = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getModalityConfigsOrBuilderList() { + return modalityConfigs_; + } + + /** + * + * + *
      +   * Optional. The modality configs for the data store.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.ModalityConfig modality_configs = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getModalityConfigsCount() { + return modalityConfigs_.size(); + } + + /** + * + * + *
      +   * Optional. The modality configs for the data store.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.ModalityConfig modality_configs = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.ModalityConfig getModalityConfigs(int index) { + return modalityConfigs_.get(index); + } + + /** + * + * + *
      +   * Optional. The modality configs for the data store.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.ModalityConfig modality_configs = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.ModalityConfigOrBuilder getModalityConfigsOrBuilder( + int index) { + return modalityConfigs_.get(index); + } + + public static final int FILTER_PARAMETER_BEHAVIOR_FIELD_NUMBER = 10; + private int filterParameterBehavior_ = 0; + + /** + * + * + *
      +   * Optional. The filter parameter behavior.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.FilterParameterBehavior filter_parameter_behavior = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for filterParameterBehavior. + */ + @java.lang.Override + public int getFilterParameterBehaviorValue() { + return filterParameterBehavior_; + } + + /** + * + * + *
      +   * Optional. The filter parameter behavior.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.FilterParameterBehavior filter_parameter_behavior = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The filterParameterBehavior. + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.FilterParameterBehavior + getFilterParameterBehavior() { + com.google.cloud.ces.v1.DataStoreTool.FilterParameterBehavior result = + com.google.cloud.ces.v1.DataStoreTool.FilterParameterBehavior.forNumber( + filterParameterBehavior_); + return result == null + ? com.google.cloud.ces.v1.DataStoreTool.FilterParameterBehavior.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); + } + if (searchSourceCase_ == 3) { + output.writeMessage(3, (com.google.cloud.ces.v1.DataStoreTool.DataStoreSource) searchSource_); + } + if (searchSourceCase_ == 4) { + output.writeMessage(4, (com.google.cloud.ces.v1.DataStoreTool.EngineSource) searchSource_); + } + for (int i = 0; i < boostSpecs_.size(); i++) { + output.writeMessage(8, boostSpecs_.get(i)); + } + for (int i = 0; i < modalityConfigs_.size(); i++) { + output.writeMessage(9, modalityConfigs_.get(i)); + } + if (filterParameterBehavior_ + != com.google.cloud.ces.v1.DataStoreTool.FilterParameterBehavior + .FILTER_PARAMETER_BEHAVIOR_UNSPECIFIED + .getNumber()) { + output.writeEnum(10, filterParameterBehavior_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); + } + if (searchSourceCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.ces.v1.DataStoreTool.DataStoreSource) searchSource_); + } + if (searchSourceCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.ces.v1.DataStoreTool.EngineSource) searchSource_); + } + for (int i = 0; i < boostSpecs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, boostSpecs_.get(i)); + } + for (int i = 0; i < modalityConfigs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, modalityConfigs_.get(i)); + } + if (filterParameterBehavior_ + != com.google.cloud.ces.v1.DataStoreTool.FilterParameterBehavior + .FILTER_PARAMETER_BEHAVIOR_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, filterParameterBehavior_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.DataStoreTool)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.DataStoreTool other = (com.google.cloud.ces.v1.DataStoreTool) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getBoostSpecsList().equals(other.getBoostSpecsList())) return false; + if (!getModalityConfigsList().equals(other.getModalityConfigsList())) return false; + if (filterParameterBehavior_ != other.filterParameterBehavior_) return false; + if (!getSearchSourceCase().equals(other.getSearchSourceCase())) return false; + switch (searchSourceCase_) { + case 3: + if (!getDataStoreSource().equals(other.getDataStoreSource())) return false; + break; + case 4: + if (!getEngineSource().equals(other.getEngineSource())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (getBoostSpecsCount() > 0) { + hash = (37 * hash) + BOOST_SPECS_FIELD_NUMBER; + hash = (53 * hash) + getBoostSpecsList().hashCode(); + } + if (getModalityConfigsCount() > 0) { + hash = (37 * hash) + MODALITY_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getModalityConfigsList().hashCode(); + } + hash = (37 * hash) + FILTER_PARAMETER_BEHAVIOR_FIELD_NUMBER; + hash = (53 * hash) + filterParameterBehavior_; + switch (searchSourceCase_) { + case 3: + hash = (37 * hash) + DATA_STORE_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getDataStoreSource().hashCode(); + break; + case 4: + hash = (37 * hash) + ENGINE_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getEngineSource().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.DataStoreTool parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DataStoreTool parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DataStoreTool parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DataStoreTool parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.DataStoreTool prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Tool to retrieve from Vertex AI Search datastore or engine for grounding.
      +   * Accepts either a datastore or an engine, but not both.
      +   * See Vertex AI Search:
      +   * https://cloud.google.com/generative-ai-app-builder/docs/enterprise-search-introduction.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DataStoreTool} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.DataStoreTool) + com.google.cloud.ces.v1.DataStoreToolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DataStoreTool.class, + com.google.cloud.ces.v1.DataStoreTool.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.DataStoreTool.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dataStoreSourceBuilder_ != null) { + dataStoreSourceBuilder_.clear(); + } + if (engineSourceBuilder_ != null) { + engineSourceBuilder_.clear(); + } + name_ = ""; + description_ = ""; + if (boostSpecsBuilder_ == null) { + boostSpecs_ = java.util.Collections.emptyList(); + } else { + boostSpecs_ = null; + boostSpecsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (modalityConfigsBuilder_ == null) { + modalityConfigs_ = java.util.Collections.emptyList(); + } else { + modalityConfigs_ = null; + modalityConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + filterParameterBehavior_ = 0; + searchSourceCase_ = 0; + searchSource_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.DataStoreToolProto + .internal_static_google_cloud_ces_v1_DataStoreTool_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool getDefaultInstanceForType() { + return com.google.cloud.ces.v1.DataStoreTool.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool build() { + com.google.cloud.ces.v1.DataStoreTool result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool buildPartial() { + com.google.cloud.ces.v1.DataStoreTool result = + new com.google.cloud.ces.v1.DataStoreTool(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1.DataStoreTool result) { + if (boostSpecsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + boostSpecs_ = java.util.Collections.unmodifiableList(boostSpecs_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.boostSpecs_ = boostSpecs_; + } else { + result.boostSpecs_ = boostSpecsBuilder_.build(); + } + if (modalityConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + modalityConfigs_ = java.util.Collections.unmodifiableList(modalityConfigs_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.modalityConfigs_ = modalityConfigs_; + } else { + result.modalityConfigs_ = modalityConfigsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.DataStoreTool result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.filterParameterBehavior_ = filterParameterBehavior_; + } + } + + private void buildPartialOneofs(com.google.cloud.ces.v1.DataStoreTool result) { + result.searchSourceCase_ = searchSourceCase_; + result.searchSource_ = this.searchSource_; + if (searchSourceCase_ == 3 && dataStoreSourceBuilder_ != null) { + result.searchSource_ = dataStoreSourceBuilder_.build(); + } + if (searchSourceCase_ == 4 && engineSourceBuilder_ != null) { + result.searchSource_ = engineSourceBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.DataStoreTool) { + return mergeFrom((com.google.cloud.ces.v1.DataStoreTool) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.DataStoreTool other) { + if (other == com.google.cloud.ces.v1.DataStoreTool.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (boostSpecsBuilder_ == null) { + if (!other.boostSpecs_.isEmpty()) { + if (boostSpecs_.isEmpty()) { + boostSpecs_ = other.boostSpecs_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureBoostSpecsIsMutable(); + boostSpecs_.addAll(other.boostSpecs_); + } + onChanged(); + } + } else { + if (!other.boostSpecs_.isEmpty()) { + if (boostSpecsBuilder_.isEmpty()) { + boostSpecsBuilder_.dispose(); + boostSpecsBuilder_ = null; + boostSpecs_ = other.boostSpecs_; + bitField0_ = (bitField0_ & ~0x00000010); + boostSpecsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetBoostSpecsFieldBuilder() + : null; + } else { + boostSpecsBuilder_.addAllMessages(other.boostSpecs_); + } + } + } + if (modalityConfigsBuilder_ == null) { + if (!other.modalityConfigs_.isEmpty()) { + if (modalityConfigs_.isEmpty()) { + modalityConfigs_ = other.modalityConfigs_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureModalityConfigsIsMutable(); + modalityConfigs_.addAll(other.modalityConfigs_); + } + onChanged(); + } + } else { + if (!other.modalityConfigs_.isEmpty()) { + if (modalityConfigsBuilder_.isEmpty()) { + modalityConfigsBuilder_.dispose(); + modalityConfigsBuilder_ = null; + modalityConfigs_ = other.modalityConfigs_; + bitField0_ = (bitField0_ & ~0x00000020); + modalityConfigsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetModalityConfigsFieldBuilder() + : null; + } else { + modalityConfigsBuilder_.addAllMessages(other.modalityConfigs_); + } + } + } + if (other.filterParameterBehavior_ != 0) { + setFilterParameterBehaviorValue(other.getFilterParameterBehaviorValue()); + } + switch (other.getSearchSourceCase()) { + case DATA_STORE_SOURCE: + { + mergeDataStoreSource(other.getDataStoreSource()); + break; + } + case ENGINE_SOURCE: + { + mergeEngineSource(other.getEngineSource()); + break; + } + case SEARCHSOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetDataStoreSourceFieldBuilder().getBuilder(), extensionRegistry); + searchSourceCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetEngineSourceFieldBuilder().getBuilder(), extensionRegistry); + searchSourceCase_ = 4; + break; + } // case 34 + case 66: + { + com.google.cloud.ces.v1.DataStoreTool.BoostSpecs m = + input.readMessage( + com.google.cloud.ces.v1.DataStoreTool.BoostSpecs.parser(), + extensionRegistry); + if (boostSpecsBuilder_ == null) { + ensureBoostSpecsIsMutable(); + boostSpecs_.add(m); + } else { + boostSpecsBuilder_.addMessage(m); + } + break; + } // case 66 + case 74: + { + com.google.cloud.ces.v1.DataStoreTool.ModalityConfig m = + input.readMessage( + com.google.cloud.ces.v1.DataStoreTool.ModalityConfig.parser(), + extensionRegistry); + if (modalityConfigsBuilder_ == null) { + ensureModalityConfigsIsMutable(); + modalityConfigs_.add(m); + } else { + modalityConfigsBuilder_.addMessage(m); + } + break; + } // case 74 + case 80: + { + filterParameterBehavior_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 80 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int searchSourceCase_ = 0; + private java.lang.Object searchSource_; + + public SearchSourceCase getSearchSourceCase() { + return SearchSourceCase.forNumber(searchSourceCase_); + } + + public Builder clearSearchSource() { + searchSourceCase_ = 0; + searchSource_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.DataStoreSource, + com.google.cloud.ces.v1.DataStoreTool.DataStoreSource.Builder, + com.google.cloud.ces.v1.DataStoreTool.DataStoreSourceOrBuilder> + dataStoreSourceBuilder_; + + /** + * + * + *
      +     * Optional. Search within a single specific DataStore.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataStoreSource field is set. + */ + @java.lang.Override + public boolean hasDataStoreSource() { + return searchSourceCase_ == 3; + } + + /** + * + * + *
      +     * Optional. Search within a single specific DataStore.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataStoreSource. + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.DataStoreSource getDataStoreSource() { + if (dataStoreSourceBuilder_ == null) { + if (searchSourceCase_ == 3) { + return (com.google.cloud.ces.v1.DataStoreTool.DataStoreSource) searchSource_; + } + return com.google.cloud.ces.v1.DataStoreTool.DataStoreSource.getDefaultInstance(); + } else { + if (searchSourceCase_ == 3) { + return dataStoreSourceBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.DataStoreTool.DataStoreSource.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Search within a single specific DataStore.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataStoreSource(com.google.cloud.ces.v1.DataStoreTool.DataStoreSource value) { + if (dataStoreSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + searchSource_ = value; + onChanged(); + } else { + dataStoreSourceBuilder_.setMessage(value); + } + searchSourceCase_ = 3; + return this; + } + + /** + * + * + *
      +     * Optional. Search within a single specific DataStore.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataStoreSource( + com.google.cloud.ces.v1.DataStoreTool.DataStoreSource.Builder builderForValue) { + if (dataStoreSourceBuilder_ == null) { + searchSource_ = builderForValue.build(); + onChanged(); + } else { + dataStoreSourceBuilder_.setMessage(builderForValue.build()); + } + searchSourceCase_ = 3; + return this; + } + + /** + * + * + *
      +     * Optional. Search within a single specific DataStore.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDataStoreSource( + com.google.cloud.ces.v1.DataStoreTool.DataStoreSource value) { + if (dataStoreSourceBuilder_ == null) { + if (searchSourceCase_ == 3 + && searchSource_ + != com.google.cloud.ces.v1.DataStoreTool.DataStoreSource.getDefaultInstance()) { + searchSource_ = + com.google.cloud.ces.v1.DataStoreTool.DataStoreSource.newBuilder( + (com.google.cloud.ces.v1.DataStoreTool.DataStoreSource) searchSource_) + .mergeFrom(value) + .buildPartial(); + } else { + searchSource_ = value; + } + onChanged(); + } else { + if (searchSourceCase_ == 3) { + dataStoreSourceBuilder_.mergeFrom(value); + } else { + dataStoreSourceBuilder_.setMessage(value); + } + } + searchSourceCase_ = 3; + return this; + } + + /** + * + * + *
      +     * Optional. Search within a single specific DataStore.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDataStoreSource() { + if (dataStoreSourceBuilder_ == null) { + if (searchSourceCase_ == 3) { + searchSourceCase_ = 0; + searchSource_ = null; + onChanged(); + } + } else { + if (searchSourceCase_ == 3) { + searchSourceCase_ = 0; + searchSource_ = null; + } + dataStoreSourceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Search within a single specific DataStore.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.DataStoreSource.Builder + getDataStoreSourceBuilder() { + return internalGetDataStoreSourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Search within a single specific DataStore.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.DataStoreSourceOrBuilder + getDataStoreSourceOrBuilder() { + if ((searchSourceCase_ == 3) && (dataStoreSourceBuilder_ != null)) { + return dataStoreSourceBuilder_.getMessageOrBuilder(); + } else { + if (searchSourceCase_ == 3) { + return (com.google.cloud.ces.v1.DataStoreTool.DataStoreSource) searchSource_; + } + return com.google.cloud.ces.v1.DataStoreTool.DataStoreSource.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Search within a single specific DataStore.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.DataStoreSource, + com.google.cloud.ces.v1.DataStoreTool.DataStoreSource.Builder, + com.google.cloud.ces.v1.DataStoreTool.DataStoreSourceOrBuilder> + internalGetDataStoreSourceFieldBuilder() { + if (dataStoreSourceBuilder_ == null) { + if (!(searchSourceCase_ == 3)) { + searchSource_ = + com.google.cloud.ces.v1.DataStoreTool.DataStoreSource.getDefaultInstance(); + } + dataStoreSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.DataStoreSource, + com.google.cloud.ces.v1.DataStoreTool.DataStoreSource.Builder, + com.google.cloud.ces.v1.DataStoreTool.DataStoreSourceOrBuilder>( + (com.google.cloud.ces.v1.DataStoreTool.DataStoreSource) searchSource_, + getParentForChildren(), + isClean()); + searchSource_ = null; + } + searchSourceCase_ = 3; + onChanged(); + return dataStoreSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.EngineSource, + com.google.cloud.ces.v1.DataStoreTool.EngineSource.Builder, + com.google.cloud.ces.v1.DataStoreTool.EngineSourceOrBuilder> + engineSourceBuilder_; + + /** + * + * + *
      +     * Optional. Search within an Engine (potentially across multiple
      +     * DataStores).
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.EngineSource engine_source = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the engineSource field is set. + */ + @java.lang.Override + public boolean hasEngineSource() { + return searchSourceCase_ == 4; + } + + /** + * + * + *
      +     * Optional. Search within an Engine (potentially across multiple
      +     * DataStores).
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.EngineSource engine_source = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The engineSource. + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.EngineSource getEngineSource() { + if (engineSourceBuilder_ == null) { + if (searchSourceCase_ == 4) { + return (com.google.cloud.ces.v1.DataStoreTool.EngineSource) searchSource_; + } + return com.google.cloud.ces.v1.DataStoreTool.EngineSource.getDefaultInstance(); + } else { + if (searchSourceCase_ == 4) { + return engineSourceBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.DataStoreTool.EngineSource.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Search within an Engine (potentially across multiple
      +     * DataStores).
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.EngineSource engine_source = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEngineSource(com.google.cloud.ces.v1.DataStoreTool.EngineSource value) { + if (engineSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + searchSource_ = value; + onChanged(); + } else { + engineSourceBuilder_.setMessage(value); + } + searchSourceCase_ = 4; + return this; + } + + /** + * + * + *
      +     * Optional. Search within an Engine (potentially across multiple
      +     * DataStores).
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.EngineSource engine_source = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEngineSource( + com.google.cloud.ces.v1.DataStoreTool.EngineSource.Builder builderForValue) { + if (engineSourceBuilder_ == null) { + searchSource_ = builderForValue.build(); + onChanged(); + } else { + engineSourceBuilder_.setMessage(builderForValue.build()); + } + searchSourceCase_ = 4; + return this; + } + + /** + * + * + *
      +     * Optional. Search within an Engine (potentially across multiple
      +     * DataStores).
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.EngineSource engine_source = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEngineSource(com.google.cloud.ces.v1.DataStoreTool.EngineSource value) { + if (engineSourceBuilder_ == null) { + if (searchSourceCase_ == 4 + && searchSource_ + != com.google.cloud.ces.v1.DataStoreTool.EngineSource.getDefaultInstance()) { + searchSource_ = + com.google.cloud.ces.v1.DataStoreTool.EngineSource.newBuilder( + (com.google.cloud.ces.v1.DataStoreTool.EngineSource) searchSource_) + .mergeFrom(value) + .buildPartial(); + } else { + searchSource_ = value; + } + onChanged(); + } else { + if (searchSourceCase_ == 4) { + engineSourceBuilder_.mergeFrom(value); + } else { + engineSourceBuilder_.setMessage(value); + } + } + searchSourceCase_ = 4; + return this; + } + + /** + * + * + *
      +     * Optional. Search within an Engine (potentially across multiple
      +     * DataStores).
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.EngineSource engine_source = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEngineSource() { + if (engineSourceBuilder_ == null) { + if (searchSourceCase_ == 4) { + searchSourceCase_ = 0; + searchSource_ = null; + onChanged(); + } + } else { + if (searchSourceCase_ == 4) { + searchSourceCase_ = 0; + searchSource_ = null; + } + engineSourceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Search within an Engine (potentially across multiple
      +     * DataStores).
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.EngineSource engine_source = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.EngineSource.Builder getEngineSourceBuilder() { + return internalGetEngineSourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Search within an Engine (potentially across multiple
      +     * DataStores).
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.EngineSource engine_source = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.EngineSourceOrBuilder getEngineSourceOrBuilder() { + if ((searchSourceCase_ == 4) && (engineSourceBuilder_ != null)) { + return engineSourceBuilder_.getMessageOrBuilder(); + } else { + if (searchSourceCase_ == 4) { + return (com.google.cloud.ces.v1.DataStoreTool.EngineSource) searchSource_; + } + return com.google.cloud.ces.v1.DataStoreTool.EngineSource.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Search within an Engine (potentially across multiple
      +     * DataStores).
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.EngineSource engine_source = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.EngineSource, + com.google.cloud.ces.v1.DataStoreTool.EngineSource.Builder, + com.google.cloud.ces.v1.DataStoreTool.EngineSourceOrBuilder> + internalGetEngineSourceFieldBuilder() { + if (engineSourceBuilder_ == null) { + if (!(searchSourceCase_ == 4)) { + searchSource_ = com.google.cloud.ces.v1.DataStoreTool.EngineSource.getDefaultInstance(); + } + engineSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.EngineSource, + com.google.cloud.ces.v1.DataStoreTool.EngineSource.Builder, + com.google.cloud.ces.v1.DataStoreTool.EngineSourceOrBuilder>( + (com.google.cloud.ces.v1.DataStoreTool.EngineSource) searchSource_, + getParentForChildren(), + isClean()); + searchSource_ = null; + } + searchSourceCase_ = 4; + onChanged(); + return engineSourceBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Required. The data store tool name.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The data store tool name.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The data store tool name.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The data store tool name.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The data store tool name.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
      +     * Optional. The tool description.
      +     * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The tool description.
      +     * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The tool description.
      +     * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The tool description.
      +     * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The tool description.
      +     * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.util.List boostSpecs_ = + java.util.Collections.emptyList(); + + private void ensureBoostSpecsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + boostSpecs_ = + new java.util.ArrayList(boostSpecs_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.BoostSpecs, + com.google.cloud.ces.v1.DataStoreTool.BoostSpecs.Builder, + com.google.cloud.ces.v1.DataStoreTool.BoostSpecsOrBuilder> + boostSpecsBuilder_; + + /** + * + * + *
      +     * Optional. Boost specification to boost certain documents.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpecs boost_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getBoostSpecsList() { + if (boostSpecsBuilder_ == null) { + return java.util.Collections.unmodifiableList(boostSpecs_); + } else { + return boostSpecsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Optional. Boost specification to boost certain documents.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpecs boost_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getBoostSpecsCount() { + if (boostSpecsBuilder_ == null) { + return boostSpecs_.size(); + } else { + return boostSpecsBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Optional. Boost specification to boost certain documents.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpecs boost_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.BoostSpecs getBoostSpecs(int index) { + if (boostSpecsBuilder_ == null) { + return boostSpecs_.get(index); + } else { + return boostSpecsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Optional. Boost specification to boost certain documents.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpecs boost_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBoostSpecs( + int index, com.google.cloud.ces.v1.DataStoreTool.BoostSpecs value) { + if (boostSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBoostSpecsIsMutable(); + boostSpecs_.set(index, value); + onChanged(); + } else { + boostSpecsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. Boost specification to boost certain documents.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpecs boost_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBoostSpecs( + int index, com.google.cloud.ces.v1.DataStoreTool.BoostSpecs.Builder builderForValue) { + if (boostSpecsBuilder_ == null) { + ensureBoostSpecsIsMutable(); + boostSpecs_.set(index, builderForValue.build()); + onChanged(); + } else { + boostSpecsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. Boost specification to boost certain documents.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpecs boost_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addBoostSpecs(com.google.cloud.ces.v1.DataStoreTool.BoostSpecs value) { + if (boostSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBoostSpecsIsMutable(); + boostSpecs_.add(value); + onChanged(); + } else { + boostSpecsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Optional. Boost specification to boost certain documents.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpecs boost_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addBoostSpecs( + int index, com.google.cloud.ces.v1.DataStoreTool.BoostSpecs value) { + if (boostSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBoostSpecsIsMutable(); + boostSpecs_.add(index, value); + onChanged(); + } else { + boostSpecsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. Boost specification to boost certain documents.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpecs boost_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addBoostSpecs( + com.google.cloud.ces.v1.DataStoreTool.BoostSpecs.Builder builderForValue) { + if (boostSpecsBuilder_ == null) { + ensureBoostSpecsIsMutable(); + boostSpecs_.add(builderForValue.build()); + onChanged(); + } else { + boostSpecsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. Boost specification to boost certain documents.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpecs boost_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addBoostSpecs( + int index, com.google.cloud.ces.v1.DataStoreTool.BoostSpecs.Builder builderForValue) { + if (boostSpecsBuilder_ == null) { + ensureBoostSpecsIsMutable(); + boostSpecs_.add(index, builderForValue.build()); + onChanged(); + } else { + boostSpecsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. Boost specification to boost certain documents.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpecs boost_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllBoostSpecs( + java.lang.Iterable values) { + if (boostSpecsBuilder_ == null) { + ensureBoostSpecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, boostSpecs_); + onChanged(); + } else { + boostSpecsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Optional. Boost specification to boost certain documents.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpecs boost_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearBoostSpecs() { + if (boostSpecsBuilder_ == null) { + boostSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + boostSpecsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Boost specification to boost certain documents.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpecs boost_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeBoostSpecs(int index) { + if (boostSpecsBuilder_ == null) { + ensureBoostSpecsIsMutable(); + boostSpecs_.remove(index); + onChanged(); + } else { + boostSpecsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Optional. Boost specification to boost certain documents.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpecs boost_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.BoostSpecs.Builder getBoostSpecsBuilder( + int index) { + return internalGetBoostSpecsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Optional. Boost specification to boost certain documents.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpecs boost_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.BoostSpecsOrBuilder getBoostSpecsOrBuilder( + int index) { + if (boostSpecsBuilder_ == null) { + return boostSpecs_.get(index); + } else { + return boostSpecsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Optional. Boost specification to boost certain documents.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpecs boost_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getBoostSpecsOrBuilderList() { + if (boostSpecsBuilder_ != null) { + return boostSpecsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(boostSpecs_); + } + } + + /** + * + * + *
      +     * Optional. Boost specification to boost certain documents.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpecs boost_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.BoostSpecs.Builder addBoostSpecsBuilder() { + return internalGetBoostSpecsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.DataStoreTool.BoostSpecs.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. Boost specification to boost certain documents.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpecs boost_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.BoostSpecs.Builder addBoostSpecsBuilder( + int index) { + return internalGetBoostSpecsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.DataStoreTool.BoostSpecs.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. Boost specification to boost certain documents.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpecs boost_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getBoostSpecsBuilderList() { + return internalGetBoostSpecsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.BoostSpecs, + com.google.cloud.ces.v1.DataStoreTool.BoostSpecs.Builder, + com.google.cloud.ces.v1.DataStoreTool.BoostSpecsOrBuilder> + internalGetBoostSpecsFieldBuilder() { + if (boostSpecsBuilder_ == null) { + boostSpecsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.BoostSpecs, + com.google.cloud.ces.v1.DataStoreTool.BoostSpecs.Builder, + com.google.cloud.ces.v1.DataStoreTool.BoostSpecsOrBuilder>( + boostSpecs_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + boostSpecs_ = null; + } + return boostSpecsBuilder_; + } + + private java.util.List modalityConfigs_ = + java.util.Collections.emptyList(); + + private void ensureModalityConfigsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + modalityConfigs_ = + new java.util.ArrayList( + modalityConfigs_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.ModalityConfig, + com.google.cloud.ces.v1.DataStoreTool.ModalityConfig.Builder, + com.google.cloud.ces.v1.DataStoreTool.ModalityConfigOrBuilder> + modalityConfigsBuilder_; + + /** + * + * + *
      +     * Optional. The modality configs for the data store.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.ModalityConfig modality_configs = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getModalityConfigsList() { + if (modalityConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(modalityConfigs_); + } else { + return modalityConfigsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Optional. The modality configs for the data store.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.ModalityConfig modality_configs = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getModalityConfigsCount() { + if (modalityConfigsBuilder_ == null) { + return modalityConfigs_.size(); + } else { + return modalityConfigsBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Optional. The modality configs for the data store.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.ModalityConfig modality_configs = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.ModalityConfig getModalityConfigs(int index) { + if (modalityConfigsBuilder_ == null) { + return modalityConfigs_.get(index); + } else { + return modalityConfigsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Optional. The modality configs for the data store.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.ModalityConfig modality_configs = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setModalityConfigs( + int index, com.google.cloud.ces.v1.DataStoreTool.ModalityConfig value) { + if (modalityConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureModalityConfigsIsMutable(); + modalityConfigs_.set(index, value); + onChanged(); + } else { + modalityConfigsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The modality configs for the data store.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.ModalityConfig modality_configs = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setModalityConfigs( + int index, com.google.cloud.ces.v1.DataStoreTool.ModalityConfig.Builder builderForValue) { + if (modalityConfigsBuilder_ == null) { + ensureModalityConfigsIsMutable(); + modalityConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + modalityConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The modality configs for the data store.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.ModalityConfig modality_configs = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addModalityConfigs(com.google.cloud.ces.v1.DataStoreTool.ModalityConfig value) { + if (modalityConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureModalityConfigsIsMutable(); + modalityConfigs_.add(value); + onChanged(); + } else { + modalityConfigsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The modality configs for the data store.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.ModalityConfig modality_configs = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addModalityConfigs( + int index, com.google.cloud.ces.v1.DataStoreTool.ModalityConfig value) { + if (modalityConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureModalityConfigsIsMutable(); + modalityConfigs_.add(index, value); + onChanged(); + } else { + modalityConfigsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The modality configs for the data store.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.ModalityConfig modality_configs = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addModalityConfigs( + com.google.cloud.ces.v1.DataStoreTool.ModalityConfig.Builder builderForValue) { + if (modalityConfigsBuilder_ == null) { + ensureModalityConfigsIsMutable(); + modalityConfigs_.add(builderForValue.build()); + onChanged(); + } else { + modalityConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The modality configs for the data store.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.ModalityConfig modality_configs = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addModalityConfigs( + int index, com.google.cloud.ces.v1.DataStoreTool.ModalityConfig.Builder builderForValue) { + if (modalityConfigsBuilder_ == null) { + ensureModalityConfigsIsMutable(); + modalityConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + modalityConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The modality configs for the data store.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.ModalityConfig modality_configs = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllModalityConfigs( + java.lang.Iterable values) { + if (modalityConfigsBuilder_ == null) { + ensureModalityConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, modalityConfigs_); + onChanged(); + } else { + modalityConfigsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Optional. The modality configs for the data store.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.ModalityConfig modality_configs = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearModalityConfigs() { + if (modalityConfigsBuilder_ == null) { + modalityConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + modalityConfigsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The modality configs for the data store.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.ModalityConfig modality_configs = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeModalityConfigs(int index) { + if (modalityConfigsBuilder_ == null) { + ensureModalityConfigsIsMutable(); + modalityConfigs_.remove(index); + onChanged(); + } else { + modalityConfigsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Optional. The modality configs for the data store.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.ModalityConfig modality_configs = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.ModalityConfig.Builder getModalityConfigsBuilder( + int index) { + return internalGetModalityConfigsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Optional. The modality configs for the data store.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.ModalityConfig modality_configs = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.ModalityConfigOrBuilder + getModalityConfigsOrBuilder(int index) { + if (modalityConfigsBuilder_ == null) { + return modalityConfigs_.get(index); + } else { + return modalityConfigsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Optional. The modality configs for the data store.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.ModalityConfig modality_configs = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getModalityConfigsOrBuilderList() { + if (modalityConfigsBuilder_ != null) { + return modalityConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(modalityConfigs_); + } + } + + /** + * + * + *
      +     * Optional. The modality configs for the data store.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.ModalityConfig modality_configs = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.ModalityConfig.Builder + addModalityConfigsBuilder() { + return internalGetModalityConfigsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.DataStoreTool.ModalityConfig.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. The modality configs for the data store.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.ModalityConfig modality_configs = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.ModalityConfig.Builder addModalityConfigsBuilder( + int index) { + return internalGetModalityConfigsFieldBuilder() + .addBuilder( + index, com.google.cloud.ces.v1.DataStoreTool.ModalityConfig.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. The modality configs for the data store.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.ModalityConfig modality_configs = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getModalityConfigsBuilderList() { + return internalGetModalityConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.ModalityConfig, + com.google.cloud.ces.v1.DataStoreTool.ModalityConfig.Builder, + com.google.cloud.ces.v1.DataStoreTool.ModalityConfigOrBuilder> + internalGetModalityConfigsFieldBuilder() { + if (modalityConfigsBuilder_ == null) { + modalityConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool.ModalityConfig, + com.google.cloud.ces.v1.DataStoreTool.ModalityConfig.Builder, + com.google.cloud.ces.v1.DataStoreTool.ModalityConfigOrBuilder>( + modalityConfigs_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + modalityConfigs_ = null; + } + return modalityConfigsBuilder_; + } + + private int filterParameterBehavior_ = 0; + + /** + * + * + *
      +     * Optional. The filter parameter behavior.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.FilterParameterBehavior filter_parameter_behavior = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for filterParameterBehavior. + */ + @java.lang.Override + public int getFilterParameterBehaviorValue() { + return filterParameterBehavior_; + } + + /** + * + * + *
      +     * Optional. The filter parameter behavior.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.FilterParameterBehavior filter_parameter_behavior = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for filterParameterBehavior to set. + * @return This builder for chaining. + */ + public Builder setFilterParameterBehaviorValue(int value) { + filterParameterBehavior_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The filter parameter behavior.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.FilterParameterBehavior filter_parameter_behavior = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The filterParameterBehavior. + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool.FilterParameterBehavior + getFilterParameterBehavior() { + com.google.cloud.ces.v1.DataStoreTool.FilterParameterBehavior result = + com.google.cloud.ces.v1.DataStoreTool.FilterParameterBehavior.forNumber( + filterParameterBehavior_); + return result == null + ? com.google.cloud.ces.v1.DataStoreTool.FilterParameterBehavior.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * Optional. The filter parameter behavior.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.FilterParameterBehavior filter_parameter_behavior = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The filterParameterBehavior to set. + * @return This builder for chaining. + */ + public Builder setFilterParameterBehavior( + com.google.cloud.ces.v1.DataStoreTool.FilterParameterBehavior value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + filterParameterBehavior_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The filter parameter behavior.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.FilterParameterBehavior filter_parameter_behavior = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearFilterParameterBehavior() { + bitField0_ = (bitField0_ & ~0x00000040); + filterParameterBehavior_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.DataStoreTool) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.DataStoreTool) + private static final com.google.cloud.ces.v1.DataStoreTool DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.DataStoreTool(); + } + + public static com.google.cloud.ces.v1.DataStoreTool getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataStoreTool parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DataStoreToolOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DataStoreToolOrBuilder.java new file mode 100644 index 000000000000..84da28d08f01 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DataStoreToolOrBuilder.java @@ -0,0 +1,334 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/data_store_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface DataStoreToolOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.DataStoreTool) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. Search within a single specific DataStore.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataStoreSource field is set. + */ + boolean hasDataStoreSource(); + + /** + * + * + *
      +   * Optional. Search within a single specific DataStore.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataStoreSource. + */ + com.google.cloud.ces.v1.DataStoreTool.DataStoreSource getDataStoreSource(); + + /** + * + * + *
      +   * Optional. Search within a single specific DataStore.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.DataStoreTool.DataStoreSourceOrBuilder getDataStoreSourceOrBuilder(); + + /** + * + * + *
      +   * Optional. Search within an Engine (potentially across multiple
      +   * DataStores).
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.EngineSource engine_source = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the engineSource field is set. + */ + boolean hasEngineSource(); + + /** + * + * + *
      +   * Optional. Search within an Engine (potentially across multiple
      +   * DataStores).
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.EngineSource engine_source = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The engineSource. + */ + com.google.cloud.ces.v1.DataStoreTool.EngineSource getEngineSource(); + + /** + * + * + *
      +   * Optional. Search within an Engine (potentially across multiple
      +   * DataStores).
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.EngineSource engine_source = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.DataStoreTool.EngineSourceOrBuilder getEngineSourceOrBuilder(); + + /** + * + * + *
      +   * Required. The data store tool name.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. The data store tool name.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Optional. The tool description.
      +   * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
      +   * Optional. The tool description.
      +   * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
      +   * Optional. Boost specification to boost certain documents.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpecs boost_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getBoostSpecsList(); + + /** + * + * + *
      +   * Optional. Boost specification to boost certain documents.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpecs boost_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.DataStoreTool.BoostSpecs getBoostSpecs(int index); + + /** + * + * + *
      +   * Optional. Boost specification to boost certain documents.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpecs boost_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getBoostSpecsCount(); + + /** + * + * + *
      +   * Optional. Boost specification to boost certain documents.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpecs boost_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getBoostSpecsOrBuilderList(); + + /** + * + * + *
      +   * Optional. Boost specification to boost certain documents.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.BoostSpecs boost_specs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.DataStoreTool.BoostSpecsOrBuilder getBoostSpecsOrBuilder(int index); + + /** + * + * + *
      +   * Optional. The modality configs for the data store.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.ModalityConfig modality_configs = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getModalityConfigsList(); + + /** + * + * + *
      +   * Optional. The modality configs for the data store.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.ModalityConfig modality_configs = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.DataStoreTool.ModalityConfig getModalityConfigs(int index); + + /** + * + * + *
      +   * Optional. The modality configs for the data store.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.ModalityConfig modality_configs = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getModalityConfigsCount(); + + /** + * + * + *
      +   * Optional. The modality configs for the data store.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.ModalityConfig modality_configs = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getModalityConfigsOrBuilderList(); + + /** + * + * + *
      +   * Optional. The modality configs for the data store.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.DataStoreTool.ModalityConfig modality_configs = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.DataStoreTool.ModalityConfigOrBuilder getModalityConfigsOrBuilder( + int index); + + /** + * + * + *
      +   * Optional. The filter parameter behavior.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.FilterParameterBehavior filter_parameter_behavior = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for filterParameterBehavior. + */ + int getFilterParameterBehaviorValue(); + + /** + * + * + *
      +   * Optional. The filter parameter behavior.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool.FilterParameterBehavior filter_parameter_behavior = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The filterParameterBehavior. + */ + com.google.cloud.ces.v1.DataStoreTool.FilterParameterBehavior getFilterParameterBehavior(); + + com.google.cloud.ces.v1.DataStoreTool.SearchSourceCase getSearchSourceCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DataStoreToolProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DataStoreToolProto.java new file mode 100644 index 000000000000..93d9571f34f2 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DataStoreToolProto.java @@ -0,0 +1,319 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/data_store_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class DataStoreToolProto extends com.google.protobuf.GeneratedFile { + private DataStoreToolProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DataStoreToolProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_DataStoreTool_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_DataStoreTool_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_DataStoreTool_RewriterConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_DataStoreTool_RewriterConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_DataStoreTool_SummarizationConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_DataStoreTool_SummarizationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_DataStoreTool_GroundingConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_DataStoreTool_GroundingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_DataStoreTool_DataStoreSource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_DataStoreTool_DataStoreSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_DataStoreTool_EngineSource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_DataStoreTool_EngineSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpecs_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpecs_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_ConditionBoostSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_ConditionBoostSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_ConditionBoostSpec_BoostControlSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_ConditionBoostSpec_BoostControlSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_ConditionBoostSpec_BoostControlSpec_ControlPoint_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_ConditionBoostSpec_BoostControlSpec_ControlPoint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_DataStoreTool_ModalityConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_DataStoreTool_ModalityConfig_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + ")google/cloud/ces/v1/data_store_tool.pr" + + "oto\022\023google.cloud.ces.v1\032\037google/api/field_behavior.proto\032" + + " google/cloud/ces/v1/c" + + "ommon.proto\032$google/cloud/ces/v1/data_store.proto\"\351\024\n\r" + + "DataStoreTool\022T\n" + + "\021data_store_source\030\003" + + " \001(\01322.google.cloud.ces.v1.DataStoreTool.DataStoreSourceB\003\340A\001H\000\022M\n\r" + + "engine_source\030\004" + + " \001(\0132/.google.cloud.ces.v1.DataStoreTool.EngineSourceB\003\340A\001H\000\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\022\030\n" + + "\013description\030\002 \001(\tB\003\340A\001\022G\n" + + "\013boost_specs\030\010" + + " \003(\0132-.google.cloud.ces.v1.DataStoreTool.BoostSpecsB\003\340A\001\022P\n" + + "\020modality_configs\030\t" + + " \003(\01321.google.cloud.ces.v1.DataStoreTool.ModalityConfigB\003\340A\001\022b\n" + + "\031filter_parameter_behavior\030\n" + + " \001(\0162:.google.clo" + + "ud.ces.v1.DataStoreTool.FilterParameterBehaviorB\003\340A\001\032}\n" + + "\016RewriterConfig\022?\n" + + "\016model_settings\030\001" + + " \001(\0132\".google.cloud.ces.v1.ModelSettingsB\003\340A\002\022\023\n" + + "\006prompt\030\002 \001(\tB\003\340A\001\022\025\n" + + "\010disabled\030\003 \001(\010B\003\340A\001\032\202\001\n" + + "\023SummarizationConfig\022?\n" + + "\016model_settings\030\001" + + " \001(\0132\".google.cloud.ces.v1.ModelSettingsB\003\340A\001\022\023\n" + + "\006prompt\030\002 \001(\tB\003\340A\001\022\025\n" + + "\010disabled\030\003 \001(\010B\003\340A\001\032F\n" + + "\017GroundingConfig\022\034\n" + + "\017grounding_level\030\001 \001(\002B\003\340A\001\022\025\n" + + "\010disabled\030\002 \001(\010B\003\340A\001\032_\n" + + "\017DataStoreSource\022\023\n" + + "\006filter\030\002 \001(\tB\003\340A\001\0227\n\n" + + "data_store\030\004" + + " \001(\0132\036.google.cloud.ces.v1.DataStoreB\003\340A\001\032\215\001\n" + + "\014EngineSource\022\023\n" + + "\006engine\030\001 \001(\tB\003\340A\002\022S\n" + + "\022data_store_sources\030\002 \003(\01322.google.clo" + + "ud.ces.v1.DataStoreTool.DataStoreSourceB\003\340A\001\022\023\n" + + "\006filter\030\003 \001(\tB\003\340A\001\032g\n\n" + + "BoostSpecs\022\030\n" + + "\013data_stores\030\001 \003(\tB\003\340A\002\022?\n" + + "\004spec\030\002 \003(\0132" + + ",.google.cloud.ces.v1.DataStoreTool.BoostSpecB\003\340A\002\032\260\007\n" + + "\tBoostSpec\022c\n" + + "\025condition_boost_specs\030\001 \003(\0132?.google.cloud.ces.v1.Da" + + "taStoreTool.BoostSpec.ConditionBoostSpecB\003\340A\002\032\275\006\n" + + "\022ConditionBoostSpec\022\026\n" + + "\tcondition\030\001 \001(\tB\003\340A\002\022\022\n" + + "\005boost\030\002 \001(\002B\003\340A\001\022q\n" + + "\022boost_control_spec\030\004 \001(\0132P.google.cloud.ces." + + "v1.DataStoreTool.BoostSpec.ConditionBoostSpec.BoostControlSpecB\003\340A\001\032\207\005\n" + + "\020BoostControlSpec\022\027\n\n" + + "field_name\030\001 \001(\tB\003\340A\001\022{\n" + + "\016attribute_type\030\002 \001(\0162^.google.cloud.ces.v1." + + "DataStoreTool.BoostSpec.ConditionBoostSp" + + "ec.BoostControlSpec.AttributeTypeB\003\340A\001\022\203\001\n" + + "\022interpolation_type\030\003 \001(\0162b.google.clo" + + "ud.ces.v1.DataStoreTool.BoostSpec.Condit" + + "ionBoostSpec.BoostControlSpec.InterpolationTypeB\003\340A\001\022z\n" + + "\016control_points\030\004 \003(\0132].google.cloud.ces.v1.DataStoreTool.BoostSp" + + "ec.ConditionBoostSpec.BoostControlSpec.ControlPointB\003\340A\001\032G\n" + + "\014ControlPoint\022\034\n" + + "\017attribute_value\030\001 \001(\tB\003\340A\001\022\031\n" + + "\014boost_amount\030\002 \001(\002B\003\340A\001\"M\n\r" + + "AttributeType\022\036\n" + + "\032ATTRIBUTE_TYPE_UNSPECIFIED\020\000\022\r\n" + + "\tNUMERICAL\020\001\022\r\n" + + "\tFRESHNESS\020\002\"C\n" + + "\021InterpolationType\022\"\n" + + "\036INTERPOLATION_TYPE_UNSPECIFIED\020\000\022\n\n" + + "\006LINEAR\020\001\032\257\003\n" + + "\016ModalityConfig\022Z\n\r" + + "modality_type\030\001 \001(\0162" + + ">.google.cloud.ces.v1.DataStoreTool.ModalityConfig.ModalityTypeB\003\340A\002\022O\n" + + "\017rewriter_config\030\002" + + " \001(\01321.google.cloud.ces.v1.DataStoreTool.RewriterConfigB\003\340A\001\022Y\n" + + "\024summarization_config\030\003 \001(\01326.google.cloud.ces.v" + + "1.DataStoreTool.SummarizationConfigB\003\340A\001\022Q\n" + + "\020grounding_config\030\004 \001(\01322.google.clou" + + "d.ces.v1.DataStoreTool.GroundingConfigB\003\340A\001\"B\n" + + "\014ModalityType\022\035\n" + + "\031MODALITY_TYPE_UNSPECIFIED\020\000\022\010\n" + + "\004TEXT\020\001\022\t\n" + + "\005AUDIO\020\002\"k\n" + + "\027FilterParameterBehavior\022)\n" + + "%FILTER_PARAMETER_BEHAVIOR_UNSPECIFIED\020\000\022\022\n" + + "\016ALWAYS_INCLUDE\020\002\022\021\n\r" + + "NEVER_INCLUDE\020\003B\017\n\r" + + "search_sourceBZ\n" + + "\027com.google.cloud.ces.v1B\022DataStoreToolP" + + "rotoP\001Z)cloud.google.com/go/ces/apiv1/cespb;cespbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.ces.v1.CommonProto.getDescriptor(), + com.google.cloud.ces.v1.DataStoreProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_DataStoreTool_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_DataStoreTool_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_DataStoreTool_descriptor, + new java.lang.String[] { + "DataStoreSource", + "EngineSource", + "Name", + "Description", + "BoostSpecs", + "ModalityConfigs", + "FilterParameterBehavior", + "SearchSource", + }); + internal_static_google_cloud_ces_v1_DataStoreTool_RewriterConfig_descriptor = + internal_static_google_cloud_ces_v1_DataStoreTool_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_DataStoreTool_RewriterConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_DataStoreTool_RewriterConfig_descriptor, + new java.lang.String[] { + "ModelSettings", "Prompt", "Disabled", + }); + internal_static_google_cloud_ces_v1_DataStoreTool_SummarizationConfig_descriptor = + internal_static_google_cloud_ces_v1_DataStoreTool_descriptor.getNestedType(1); + internal_static_google_cloud_ces_v1_DataStoreTool_SummarizationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_DataStoreTool_SummarizationConfig_descriptor, + new java.lang.String[] { + "ModelSettings", "Prompt", "Disabled", + }); + internal_static_google_cloud_ces_v1_DataStoreTool_GroundingConfig_descriptor = + internal_static_google_cloud_ces_v1_DataStoreTool_descriptor.getNestedType(2); + internal_static_google_cloud_ces_v1_DataStoreTool_GroundingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_DataStoreTool_GroundingConfig_descriptor, + new java.lang.String[] { + "GroundingLevel", "Disabled", + }); + internal_static_google_cloud_ces_v1_DataStoreTool_DataStoreSource_descriptor = + internal_static_google_cloud_ces_v1_DataStoreTool_descriptor.getNestedType(3); + internal_static_google_cloud_ces_v1_DataStoreTool_DataStoreSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_DataStoreTool_DataStoreSource_descriptor, + new java.lang.String[] { + "Filter", "DataStore", + }); + internal_static_google_cloud_ces_v1_DataStoreTool_EngineSource_descriptor = + internal_static_google_cloud_ces_v1_DataStoreTool_descriptor.getNestedType(4); + internal_static_google_cloud_ces_v1_DataStoreTool_EngineSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_DataStoreTool_EngineSource_descriptor, + new java.lang.String[] { + "Engine", "DataStoreSources", "Filter", + }); + internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpecs_descriptor = + internal_static_google_cloud_ces_v1_DataStoreTool_descriptor.getNestedType(5); + internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpecs_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpecs_descriptor, + new java.lang.String[] { + "DataStores", "Spec", + }); + internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_descriptor = + internal_static_google_cloud_ces_v1_DataStoreTool_descriptor.getNestedType(6); + internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_descriptor, + new java.lang.String[] { + "ConditionBoostSpecs", + }); + internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_ConditionBoostSpec_descriptor = + internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_ConditionBoostSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_ConditionBoostSpec_descriptor, + new java.lang.String[] { + "Condition", "Boost", "BoostControlSpec", + }); + internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_ConditionBoostSpec_BoostControlSpec_descriptor = + internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_ConditionBoostSpec_descriptor + .getNestedType(0); + internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_ConditionBoostSpec_BoostControlSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_ConditionBoostSpec_BoostControlSpec_descriptor, + new java.lang.String[] { + "FieldName", "AttributeType", "InterpolationType", "ControlPoints", + }); + internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_ConditionBoostSpec_BoostControlSpec_ControlPoint_descriptor = + internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_ConditionBoostSpec_BoostControlSpec_descriptor + .getNestedType(0); + internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_ConditionBoostSpec_BoostControlSpec_ControlPoint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_DataStoreTool_BoostSpec_ConditionBoostSpec_BoostControlSpec_ControlPoint_descriptor, + new java.lang.String[] { + "AttributeValue", "BoostAmount", + }); + internal_static_google_cloud_ces_v1_DataStoreTool_ModalityConfig_descriptor = + internal_static_google_cloud_ces_v1_DataStoreTool_descriptor.getNestedType(7); + internal_static_google_cloud_ces_v1_DataStoreTool_ModalityConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_DataStoreTool_ModalityConfig_descriptor, + new java.lang.String[] { + "ModalityType", "RewriterConfig", "SummarizationConfig", "GroundingConfig", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.ces.v1.CommonProto.getDescriptor(); + com.google.cloud.ces.v1.DataStoreProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteAgentRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteAgentRequest.java new file mode 100644 index 000000000000..055eb77da1e6 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteAgentRequest.java @@ -0,0 +1,942 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.DeleteAgent][google.cloud.ces.v1.AgentService.DeleteAgent].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DeleteAgentRequest} + */ +@com.google.protobuf.Generated +public final class DeleteAgentRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.DeleteAgentRequest) + DeleteAgentRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteAgentRequest"); + } + + // Use DeleteAgentRequest.newBuilder() to construct. + private DeleteAgentRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteAgentRequest() { + name_ = ""; + etag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteAgentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteAgentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DeleteAgentRequest.class, + com.google.cloud.ces.v1.DeleteAgentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the agent to delete.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the agent to delete.
      +   * 
      + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORCE_FIELD_NUMBER = 2; + private boolean force_ = false; + + /** + * + * + *
      +   * Optional. Indicates whether to forcefully delete the agent, even if it is
      +   * still referenced by other app/agents/examples.
      +   *
      +   * *  If `force = false`, the deletion fails if other agents/examples
      +   * reference it.
      +   * *  If `force = true`, delete the agent and remove it from all referencing
      +   * apps/agents/examples.
      +   * 
      + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + public static final int ETAG_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
      +   * Optional. The current etag of the agent. If an etag is not provided, the
      +   * deletion will overwrite any concurrent changes. If an etag is provided and
      +   * does not match the current etag of the agent, deletion will be blocked and
      +   * an ABORTED error will be returned.
      +   * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The current etag of the agent. If an etag is not provided, the
      +   * deletion will overwrite any concurrent changes. If an etag is provided and
      +   * does not match the current etag of the agent, deletion will be blocked and
      +   * an ABORTED error will be returned.
      +   * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (force_ != false) { + output.writeBool(2, force_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, etag_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.DeleteAgentRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.DeleteAgentRequest other = + (com.google.cloud.ces.v1.DeleteAgentRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getForce() != other.getForce()) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.DeleteAgentRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DeleteAgentRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteAgentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DeleteAgentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteAgentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DeleteAgentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteAgentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DeleteAgentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteAgentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DeleteAgentRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteAgentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DeleteAgentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.DeleteAgentRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.DeleteAgent][google.cloud.ces.v1.AgentService.DeleteAgent].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DeleteAgentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.DeleteAgentRequest) + com.google.cloud.ces.v1.DeleteAgentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteAgentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteAgentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DeleteAgentRequest.class, + com.google.cloud.ces.v1.DeleteAgentRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.DeleteAgentRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + force_ = false; + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteAgentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteAgentRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.DeleteAgentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteAgentRequest build() { + com.google.cloud.ces.v1.DeleteAgentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteAgentRequest buildPartial() { + com.google.cloud.ces.v1.DeleteAgentRequest result = + new com.google.cloud.ces.v1.DeleteAgentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.DeleteAgentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.etag_ = etag_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.DeleteAgentRequest) { + return mergeFrom((com.google.cloud.ces.v1.DeleteAgentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.DeleteAgentRequest other) { + if (other == com.google.cloud.ces.v1.DeleteAgentRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + force_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + etag_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the agent to delete.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the agent to delete.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the agent to delete.
      +     * 
      + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the agent to delete.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the agent to delete.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean force_; + + /** + * + * + *
      +     * Optional. Indicates whether to forcefully delete the agent, even if it is
      +     * still referenced by other app/agents/examples.
      +     *
      +     * *  If `force = false`, the deletion fails if other agents/examples
      +     * reference it.
      +     * *  If `force = true`, delete the agent and remove it from all referencing
      +     * apps/agents/examples.
      +     * 
      + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + /** + * + * + *
      +     * Optional. Indicates whether to forcefully delete the agent, even if it is
      +     * still referenced by other app/agents/examples.
      +     *
      +     * *  If `force = false`, the deletion fails if other agents/examples
      +     * reference it.
      +     * *  If `force = true`, delete the agent and remove it from all referencing
      +     * apps/agents/examples.
      +     * 
      + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Indicates whether to forcefully delete the agent, even if it is
      +     * still referenced by other app/agents/examples.
      +     *
      +     * *  If `force = false`, the deletion fails if other agents/examples
      +     * reference it.
      +     * *  If `force = true`, delete the agent and remove it from all referencing
      +     * apps/agents/examples.
      +     * 
      + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000002); + force_ = false; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
      +     * Optional. The current etag of the agent. If an etag is not provided, the
      +     * deletion will overwrite any concurrent changes. If an etag is provided and
      +     * does not match the current etag of the agent, deletion will be blocked and
      +     * an ABORTED error will be returned.
      +     * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The current etag of the agent. If an etag is not provided, the
      +     * deletion will overwrite any concurrent changes. If an etag is provided and
      +     * does not match the current etag of the agent, deletion will be blocked and
      +     * an ABORTED error will be returned.
      +     * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The current etag of the agent. If an etag is not provided, the
      +     * deletion will overwrite any concurrent changes. If an etag is provided and
      +     * does not match the current etag of the agent, deletion will be blocked and
      +     * an ABORTED error will be returned.
      +     * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The current etag of the agent. If an etag is not provided, the
      +     * deletion will overwrite any concurrent changes. If an etag is provided and
      +     * does not match the current etag of the agent, deletion will be blocked and
      +     * an ABORTED error will be returned.
      +     * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The current etag of the agent. If an etag is not provided, the
      +     * deletion will overwrite any concurrent changes. If an etag is provided and
      +     * does not match the current etag of the agent, deletion will be blocked and
      +     * an ABORTED error will be returned.
      +     * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.DeleteAgentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.DeleteAgentRequest) + private static final com.google.cloud.ces.v1.DeleteAgentRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.DeleteAgentRequest(); + } + + public static com.google.cloud.ces.v1.DeleteAgentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAgentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteAgentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteAgentRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteAgentRequestOrBuilder.java new file mode 100644 index 000000000000..a397b9def00b --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteAgentRequestOrBuilder.java @@ -0,0 +1,109 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface DeleteAgentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.DeleteAgentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the agent to delete.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. The resource name of the agent to delete.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Optional. Indicates whether to forcefully delete the agent, even if it is
      +   * still referenced by other app/agents/examples.
      +   *
      +   * *  If `force = false`, the deletion fails if other agents/examples
      +   * reference it.
      +   * *  If `force = true`, delete the agent and remove it from all referencing
      +   * apps/agents/examples.
      +   * 
      + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); + + /** + * + * + *
      +   * Optional. The current etag of the agent. If an etag is not provided, the
      +   * deletion will overwrite any concurrent changes. If an etag is provided and
      +   * does not match the current etag of the agent, deletion will be blocked and
      +   * an ABORTED error will be returned.
      +   * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
      +   * Optional. The current etag of the agent. If an etag is not provided, the
      +   * deletion will overwrite any concurrent changes. If an etag is provided and
      +   * does not match the current etag of the agent, deletion will be blocked and
      +   * an ABORTED error will be returned.
      +   * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteAppRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteAppRequest.java new file mode 100644 index 000000000000..766514d64b42 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteAppRequest.java @@ -0,0 +1,820 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.DeleteApp][google.cloud.ces.v1.AgentService.DeleteApp].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DeleteAppRequest} + */ +@com.google.protobuf.Generated +public final class DeleteAppRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.DeleteAppRequest) + DeleteAppRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteAppRequest"); + } + + // Use DeleteAppRequest.newBuilder() to construct. + private DeleteAppRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteAppRequest() { + name_ = ""; + etag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteAppRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteAppRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DeleteAppRequest.class, + com.google.cloud.ces.v1.DeleteAppRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the app to delete.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the app to delete.
      +   * 
      + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
      +   * Optional. The current etag of the app. If an etag is not provided, the
      +   * deletion will overwrite any concurrent changes. If an etag is provided and
      +   * does not match the current etag of the app, deletion will be blocked and an
      +   * ABORTED error will be returned.
      +   * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The current etag of the app. If an etag is not provided, the
      +   * deletion will overwrite any concurrent changes. If an etag is provided and
      +   * does not match the current etag of the app, deletion will be blocked and an
      +   * ABORTED error will be returned.
      +   * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, etag_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.DeleteAppRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.DeleteAppRequest other = (com.google.cloud.ces.v1.DeleteAppRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.DeleteAppRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DeleteAppRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteAppRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DeleteAppRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteAppRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DeleteAppRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteAppRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DeleteAppRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteAppRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DeleteAppRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteAppRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DeleteAppRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.DeleteAppRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.DeleteApp][google.cloud.ces.v1.AgentService.DeleteApp].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DeleteAppRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.DeleteAppRequest) + com.google.cloud.ces.v1.DeleteAppRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteAppRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteAppRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DeleteAppRequest.class, + com.google.cloud.ces.v1.DeleteAppRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.DeleteAppRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteAppRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteAppRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.DeleteAppRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteAppRequest build() { + com.google.cloud.ces.v1.DeleteAppRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteAppRequest buildPartial() { + com.google.cloud.ces.v1.DeleteAppRequest result = + new com.google.cloud.ces.v1.DeleteAppRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.DeleteAppRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.etag_ = etag_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.DeleteAppRequest) { + return mergeFrom((com.google.cloud.ces.v1.DeleteAppRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.DeleteAppRequest other) { + if (other == com.google.cloud.ces.v1.DeleteAppRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the app to delete.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to delete.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to delete.
      +     * 
      + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to delete.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to delete.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
      +     * Optional. The current etag of the app. If an etag is not provided, the
      +     * deletion will overwrite any concurrent changes. If an etag is provided and
      +     * does not match the current etag of the app, deletion will be blocked and an
      +     * ABORTED error will be returned.
      +     * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The current etag of the app. If an etag is not provided, the
      +     * deletion will overwrite any concurrent changes. If an etag is provided and
      +     * does not match the current etag of the app, deletion will be blocked and an
      +     * ABORTED error will be returned.
      +     * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The current etag of the app. If an etag is not provided, the
      +     * deletion will overwrite any concurrent changes. If an etag is provided and
      +     * does not match the current etag of the app, deletion will be blocked and an
      +     * ABORTED error will be returned.
      +     * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The current etag of the app. If an etag is not provided, the
      +     * deletion will overwrite any concurrent changes. If an etag is provided and
      +     * does not match the current etag of the app, deletion will be blocked and an
      +     * ABORTED error will be returned.
      +     * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The current etag of the app. If an etag is not provided, the
      +     * deletion will overwrite any concurrent changes. If an etag is provided and
      +     * does not match the current etag of the app, deletion will be blocked and an
      +     * ABORTED error will be returned.
      +     * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.DeleteAppRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.DeleteAppRequest) + private static final com.google.cloud.ces.v1.DeleteAppRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.DeleteAppRequest(); + } + + public static com.google.cloud.ces.v1.DeleteAppRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAppRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteAppRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteAppRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteAppRequestOrBuilder.java new file mode 100644 index 000000000000..0eb83e608df6 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteAppRequestOrBuilder.java @@ -0,0 +1,90 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface DeleteAppRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.DeleteAppRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the app to delete.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. The resource name of the app to delete.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Optional. The current etag of the app. If an etag is not provided, the
      +   * deletion will overwrite any concurrent changes. If an etag is provided and
      +   * does not match the current etag of the app, deletion will be blocked and an
      +   * ABORTED error will be returned.
      +   * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
      +   * Optional. The current etag of the app. If an etag is not provided, the
      +   * deletion will overwrite any concurrent changes. If an etag is provided and
      +   * does not match the current etag of the app, deletion will be blocked and an
      +   * ABORTED error will be returned.
      +   * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteAppVersionRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteAppVersionRequest.java new file mode 100644 index 000000000000..e7a0f1d3daa5 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteAppVersionRequest.java @@ -0,0 +1,822 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.DeleteAppVersion][google.cloud.ces.v1.AgentService.DeleteAppVersion].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DeleteAppVersionRequest} + */ +@com.google.protobuf.Generated +public final class DeleteAppVersionRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.DeleteAppVersionRequest) + DeleteAppVersionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteAppVersionRequest"); + } + + // Use DeleteAppVersionRequest.newBuilder() to construct. + private DeleteAppVersionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteAppVersionRequest() { + name_ = ""; + etag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteAppVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteAppVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DeleteAppVersionRequest.class, + com.google.cloud.ces.v1.DeleteAppVersionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the app version to delete.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the app version to delete.
      +   * 
      + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
      +   * Optional. The current etag of the app version. If an etag is not provided,
      +   * the deletion will overwrite any concurrent changes. If an etag is provided
      +   * and does not match the current etag of the app version, deletion will be
      +   * blocked and an ABORTED error will be returned.
      +   * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The current etag of the app version. If an etag is not provided,
      +   * the deletion will overwrite any concurrent changes. If an etag is provided
      +   * and does not match the current etag of the app version, deletion will be
      +   * blocked and an ABORTED error will be returned.
      +   * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, etag_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.DeleteAppVersionRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.DeleteAppVersionRequest other = + (com.google.cloud.ces.v1.DeleteAppVersionRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.DeleteAppVersionRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DeleteAppVersionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteAppVersionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DeleteAppVersionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteAppVersionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DeleteAppVersionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteAppVersionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DeleteAppVersionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteAppVersionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DeleteAppVersionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteAppVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DeleteAppVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.DeleteAppVersionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.DeleteAppVersion][google.cloud.ces.v1.AgentService.DeleteAppVersion].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DeleteAppVersionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.DeleteAppVersionRequest) + com.google.cloud.ces.v1.DeleteAppVersionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteAppVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteAppVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DeleteAppVersionRequest.class, + com.google.cloud.ces.v1.DeleteAppVersionRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.DeleteAppVersionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteAppVersionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteAppVersionRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.DeleteAppVersionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteAppVersionRequest build() { + com.google.cloud.ces.v1.DeleteAppVersionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteAppVersionRequest buildPartial() { + com.google.cloud.ces.v1.DeleteAppVersionRequest result = + new com.google.cloud.ces.v1.DeleteAppVersionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.DeleteAppVersionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.etag_ = etag_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.DeleteAppVersionRequest) { + return mergeFrom((com.google.cloud.ces.v1.DeleteAppVersionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.DeleteAppVersionRequest other) { + if (other == com.google.cloud.ces.v1.DeleteAppVersionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the app version to delete.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app version to delete.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app version to delete.
      +     * 
      + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app version to delete.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app version to delete.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
      +     * Optional. The current etag of the app version. If an etag is not provided,
      +     * the deletion will overwrite any concurrent changes. If an etag is provided
      +     * and does not match the current etag of the app version, deletion will be
      +     * blocked and an ABORTED error will be returned.
      +     * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The current etag of the app version. If an etag is not provided,
      +     * the deletion will overwrite any concurrent changes. If an etag is provided
      +     * and does not match the current etag of the app version, deletion will be
      +     * blocked and an ABORTED error will be returned.
      +     * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The current etag of the app version. If an etag is not provided,
      +     * the deletion will overwrite any concurrent changes. If an etag is provided
      +     * and does not match the current etag of the app version, deletion will be
      +     * blocked and an ABORTED error will be returned.
      +     * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The current etag of the app version. If an etag is not provided,
      +     * the deletion will overwrite any concurrent changes. If an etag is provided
      +     * and does not match the current etag of the app version, deletion will be
      +     * blocked and an ABORTED error will be returned.
      +     * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The current etag of the app version. If an etag is not provided,
      +     * the deletion will overwrite any concurrent changes. If an etag is provided
      +     * and does not match the current etag of the app version, deletion will be
      +     * blocked and an ABORTED error will be returned.
      +     * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.DeleteAppVersionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.DeleteAppVersionRequest) + private static final com.google.cloud.ces.v1.DeleteAppVersionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.DeleteAppVersionRequest(); + } + + public static com.google.cloud.ces.v1.DeleteAppVersionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAppVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteAppVersionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteAppVersionRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteAppVersionRequestOrBuilder.java new file mode 100644 index 000000000000..226e932b1804 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteAppVersionRequestOrBuilder.java @@ -0,0 +1,90 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface DeleteAppVersionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.DeleteAppVersionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the app version to delete.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. The resource name of the app version to delete.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Optional. The current etag of the app version. If an etag is not provided,
      +   * the deletion will overwrite any concurrent changes. If an etag is provided
      +   * and does not match the current etag of the app version, deletion will be
      +   * blocked and an ABORTED error will be returned.
      +   * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
      +   * Optional. The current etag of the app version. If an etag is not provided,
      +   * the deletion will overwrite any concurrent changes. If an etag is provided
      +   * and does not match the current etag of the app version, deletion will be
      +   * blocked and an ABORTED error will be returned.
      +   * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteConversationRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteConversationRequest.java new file mode 100644 index 000000000000..d61fcc0b1bb5 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteConversationRequest.java @@ -0,0 +1,809 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.DeleteConversation][google.cloud.ces.v1.AgentService.DeleteConversation].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DeleteConversationRequest} + */ +@com.google.protobuf.Generated +public final class DeleteConversationRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.DeleteConversationRequest) + DeleteConversationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteConversationRequest"); + } + + // Use DeleteConversationRequest.newBuilder() to construct. + private DeleteConversationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteConversationRequest() { + name_ = ""; + source_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteConversationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteConversationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DeleteConversationRequest.class, + com.google.cloud.ces.v1.DeleteConversationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the conversation to delete.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the conversation to delete.
      +   * 
      + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_FIELD_NUMBER = 2; + private int source_ = 0; + + /** + * + * + *
      +   * Optional. Indicate the source of the conversation. If not set, Source.Live
      +   * will be applied by default.
      +   * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.DeleteConversationRequest.source is deprecated. See + * google/cloud/ces/v1/agent_service.proto;l=1158 + * @return The enum numeric value on the wire for source. + */ + @java.lang.Override + @java.lang.Deprecated + public int getSourceValue() { + return source_; + } + + /** + * + * + *
      +   * Optional. Indicate the source of the conversation. If not set, Source.Live
      +   * will be applied by default.
      +   * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.DeleteConversationRequest.source is deprecated. See + * google/cloud/ces/v1/agent_service.proto;l=1158 + * @return The source. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.ces.v1.Conversation.Source getSource() { + com.google.cloud.ces.v1.Conversation.Source result = + com.google.cloud.ces.v1.Conversation.Source.forNumber(source_); + return result == null ? com.google.cloud.ces.v1.Conversation.Source.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (source_ != com.google.cloud.ces.v1.Conversation.Source.SOURCE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, source_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (source_ != com.google.cloud.ces.v1.Conversation.Source.SOURCE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, source_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.DeleteConversationRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.DeleteConversationRequest other = + (com.google.cloud.ces.v1.DeleteConversationRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (source_ != other.source_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + source_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.DeleteConversationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DeleteConversationRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteConversationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DeleteConversationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteConversationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DeleteConversationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteConversationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DeleteConversationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteConversationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DeleteConversationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteConversationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DeleteConversationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.DeleteConversationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.DeleteConversation][google.cloud.ces.v1.AgentService.DeleteConversation].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DeleteConversationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.DeleteConversationRequest) + com.google.cloud.ces.v1.DeleteConversationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteConversationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteConversationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DeleteConversationRequest.class, + com.google.cloud.ces.v1.DeleteConversationRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.DeleteConversationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + source_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteConversationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteConversationRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.DeleteConversationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteConversationRequest build() { + com.google.cloud.ces.v1.DeleteConversationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteConversationRequest buildPartial() { + com.google.cloud.ces.v1.DeleteConversationRequest result = + new com.google.cloud.ces.v1.DeleteConversationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.DeleteConversationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.source_ = source_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.DeleteConversationRequest) { + return mergeFrom((com.google.cloud.ces.v1.DeleteConversationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.DeleteConversationRequest other) { + if (other == com.google.cloud.ces.v1.DeleteConversationRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.source_ != 0) { + setSourceValue(other.getSourceValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + source_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the conversation to delete.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the conversation to delete.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the conversation to delete.
      +     * 
      + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the conversation to delete.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the conversation to delete.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int source_ = 0; + + /** + * + * + *
      +     * Optional. Indicate the source of the conversation. If not set, Source.Live
      +     * will be applied by default.
      +     * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.DeleteConversationRequest.source is deprecated. See + * google/cloud/ces/v1/agent_service.proto;l=1158 + * @return The enum numeric value on the wire for source. + */ + @java.lang.Override + @java.lang.Deprecated + public int getSourceValue() { + return source_; + } + + /** + * + * + *
      +     * Optional. Indicate the source of the conversation. If not set, Source.Live
      +     * will be applied by default.
      +     * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.DeleteConversationRequest.source is deprecated. See + * google/cloud/ces/v1/agent_service.proto;l=1158 + * @param value The enum numeric value on the wire for source to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setSourceValue(int value) { + source_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Indicate the source of the conversation. If not set, Source.Live
      +     * will be applied by default.
      +     * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.DeleteConversationRequest.source is deprecated. See + * google/cloud/ces/v1/agent_service.proto;l=1158 + * @return The source. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.ces.v1.Conversation.Source getSource() { + com.google.cloud.ces.v1.Conversation.Source result = + com.google.cloud.ces.v1.Conversation.Source.forNumber(source_); + return result == null ? com.google.cloud.ces.v1.Conversation.Source.UNRECOGNIZED : result; + } + + /** + * + * + *
      +     * Optional. Indicate the source of the conversation. If not set, Source.Live
      +     * will be applied by default.
      +     * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.DeleteConversationRequest.source is deprecated. See + * google/cloud/ces/v1/agent_service.proto;l=1158 + * @param value The source to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setSource(com.google.cloud.ces.v1.Conversation.Source value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + source_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Indicate the source of the conversation. If not set, Source.Live
      +     * will be applied by default.
      +     * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.DeleteConversationRequest.source is deprecated. See + * google/cloud/ces/v1/agent_service.proto;l=1158 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearSource() { + bitField0_ = (bitField0_ & ~0x00000002); + source_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.DeleteConversationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.DeleteConversationRequest) + private static final com.google.cloud.ces.v1.DeleteConversationRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.DeleteConversationRequest(); + } + + public static com.google.cloud.ces.v1.DeleteConversationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteConversationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteConversationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteConversationRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteConversationRequestOrBuilder.java new file mode 100644 index 000000000000..7efd6324132b --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteConversationRequestOrBuilder.java @@ -0,0 +1,96 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface DeleteConversationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.DeleteConversationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the conversation to delete.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. The resource name of the conversation to delete.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Optional. Indicate the source of the conversation. If not set, Source.Live
      +   * will be applied by default.
      +   * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.DeleteConversationRequest.source is deprecated. See + * google/cloud/ces/v1/agent_service.proto;l=1158 + * @return The enum numeric value on the wire for source. + */ + @java.lang.Deprecated + int getSourceValue(); + + /** + * + * + *
      +   * Optional. Indicate the source of the conversation. If not set, Source.Live
      +   * will be applied by default.
      +   * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.DeleteConversationRequest.source is deprecated. See + * google/cloud/ces/v1/agent_service.proto;l=1158 + * @return The source. + */ + @java.lang.Deprecated + com.google.cloud.ces.v1.Conversation.Source getSource(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteDeploymentRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteDeploymentRequest.java new file mode 100644 index 000000000000..0e9d6855cfd0 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteDeploymentRequest.java @@ -0,0 +1,829 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.DeleteDeployment][google.cloud.ces.v1.AgentService.DeleteDeployment].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DeleteDeploymentRequest} + */ +@com.google.protobuf.Generated +public final class DeleteDeploymentRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.DeleteDeploymentRequest) + DeleteDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteDeploymentRequest"); + } + + // Use DeleteDeploymentRequest.newBuilder() to construct. + private DeleteDeploymentRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteDeploymentRequest() { + name_ = ""; + etag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DeleteDeploymentRequest.class, + com.google.cloud.ces.v1.DeleteDeploymentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. The name of the deployment to delete.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The name of the deployment to delete.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +   * 
      + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
      +   * Optional. The etag of the deployment.
      +   * If an etag is provided and does not match the current etag of the
      +   * deployment, deletion will be blocked and an ABORTED error will be returned.
      +   * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The etag of the deployment.
      +   * If an etag is provided and does not match the current etag of the
      +   * deployment, deletion will be blocked and an ABORTED error will be returned.
      +   * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, etag_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.DeleteDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.DeleteDeploymentRequest other = + (com.google.cloud.ces.v1.DeleteDeploymentRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.DeleteDeploymentRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DeleteDeploymentRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DeleteDeploymentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteDeploymentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DeleteDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteDeploymentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DeleteDeploymentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteDeploymentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DeleteDeploymentRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DeleteDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.DeleteDeploymentRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.DeleteDeployment][google.cloud.ces.v1.AgentService.DeleteDeployment].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DeleteDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.DeleteDeploymentRequest) + com.google.cloud.ces.v1.DeleteDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DeleteDeploymentRequest.class, + com.google.cloud.ces.v1.DeleteDeploymentRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.DeleteDeploymentRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteDeploymentRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.DeleteDeploymentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteDeploymentRequest build() { + com.google.cloud.ces.v1.DeleteDeploymentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteDeploymentRequest buildPartial() { + com.google.cloud.ces.v1.DeleteDeploymentRequest result = + new com.google.cloud.ces.v1.DeleteDeploymentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.DeleteDeploymentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.etag_ = etag_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.DeleteDeploymentRequest) { + return mergeFrom((com.google.cloud.ces.v1.DeleteDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.DeleteDeploymentRequest other) { + if (other == com.google.cloud.ces.v1.DeleteDeploymentRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Required. The name of the deployment to delete.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The name of the deployment to delete.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The name of the deployment to delete.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +     * 
      + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The name of the deployment to delete.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The name of the deployment to delete.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
      +     * Optional. The etag of the deployment.
      +     * If an etag is provided and does not match the current etag of the
      +     * deployment, deletion will be blocked and an ABORTED error will be returned.
      +     * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The etag of the deployment.
      +     * If an etag is provided and does not match the current etag of the
      +     * deployment, deletion will be blocked and an ABORTED error will be returned.
      +     * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The etag of the deployment.
      +     * If an etag is provided and does not match the current etag of the
      +     * deployment, deletion will be blocked and an ABORTED error will be returned.
      +     * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The etag of the deployment.
      +     * If an etag is provided and does not match the current etag of the
      +     * deployment, deletion will be blocked and an ABORTED error will be returned.
      +     * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The etag of the deployment.
      +     * If an etag is provided and does not match the current etag of the
      +     * deployment, deletion will be blocked and an ABORTED error will be returned.
      +     * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.DeleteDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.DeleteDeploymentRequest) + private static final com.google.cloud.ces.v1.DeleteDeploymentRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.DeleteDeploymentRequest(); + } + + public static com.google.cloud.ces.v1.DeleteDeploymentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDeploymentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteDeploymentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteDeploymentRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteDeploymentRequestOrBuilder.java new file mode 100644 index 000000000000..f64510a68668 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteDeploymentRequestOrBuilder.java @@ -0,0 +1,92 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface DeleteDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.DeleteDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The name of the deployment to delete.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. The name of the deployment to delete.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Optional. The etag of the deployment.
      +   * If an etag is provided and does not match the current etag of the
      +   * deployment, deletion will be blocked and an ABORTED error will be returned.
      +   * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
      +   * Optional. The etag of the deployment.
      +   * If an etag is provided and does not match the current etag of the
      +   * deployment, deletion will be blocked and an ABORTED error will be returned.
      +   * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteExampleRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteExampleRequest.java new file mode 100644 index 000000000000..c0e0552ead0c --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteExampleRequest.java @@ -0,0 +1,821 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.DeleteExample][google.cloud.ces.v1.AgentService.DeleteExample].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DeleteExampleRequest} + */ +@com.google.protobuf.Generated +public final class DeleteExampleRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.DeleteExampleRequest) + DeleteExampleRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteExampleRequest"); + } + + // Use DeleteExampleRequest.newBuilder() to construct. + private DeleteExampleRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteExampleRequest() { + name_ = ""; + etag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteExampleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteExampleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DeleteExampleRequest.class, + com.google.cloud.ces.v1.DeleteExampleRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the example to delete.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the example to delete.
      +   * 
      + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
      +   * Optional. The current etag of the example. If an etag is not provided, the
      +   * deletion will overwrite any concurrent changes. If an etag is provided and
      +   * does not match the current etag of the example, deletion will be blocked
      +   * and an ABORTED error will be returned.
      +   * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The current etag of the example. If an etag is not provided, the
      +   * deletion will overwrite any concurrent changes. If an etag is provided and
      +   * does not match the current etag of the example, deletion will be blocked
      +   * and an ABORTED error will be returned.
      +   * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, etag_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.DeleteExampleRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.DeleteExampleRequest other = + (com.google.cloud.ces.v1.DeleteExampleRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.DeleteExampleRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DeleteExampleRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteExampleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DeleteExampleRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteExampleRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DeleteExampleRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteExampleRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DeleteExampleRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteExampleRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DeleteExampleRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteExampleRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DeleteExampleRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.DeleteExampleRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.DeleteExample][google.cloud.ces.v1.AgentService.DeleteExample].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DeleteExampleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.DeleteExampleRequest) + com.google.cloud.ces.v1.DeleteExampleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteExampleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteExampleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DeleteExampleRequest.class, + com.google.cloud.ces.v1.DeleteExampleRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.DeleteExampleRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteExampleRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteExampleRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.DeleteExampleRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteExampleRequest build() { + com.google.cloud.ces.v1.DeleteExampleRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteExampleRequest buildPartial() { + com.google.cloud.ces.v1.DeleteExampleRequest result = + new com.google.cloud.ces.v1.DeleteExampleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.DeleteExampleRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.etag_ = etag_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.DeleteExampleRequest) { + return mergeFrom((com.google.cloud.ces.v1.DeleteExampleRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.DeleteExampleRequest other) { + if (other == com.google.cloud.ces.v1.DeleteExampleRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the example to delete.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the example to delete.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the example to delete.
      +     * 
      + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the example to delete.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the example to delete.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
      +     * Optional. The current etag of the example. If an etag is not provided, the
      +     * deletion will overwrite any concurrent changes. If an etag is provided and
      +     * does not match the current etag of the example, deletion will be blocked
      +     * and an ABORTED error will be returned.
      +     * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The current etag of the example. If an etag is not provided, the
      +     * deletion will overwrite any concurrent changes. If an etag is provided and
      +     * does not match the current etag of the example, deletion will be blocked
      +     * and an ABORTED error will be returned.
      +     * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The current etag of the example. If an etag is not provided, the
      +     * deletion will overwrite any concurrent changes. If an etag is provided and
      +     * does not match the current etag of the example, deletion will be blocked
      +     * and an ABORTED error will be returned.
      +     * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The current etag of the example. If an etag is not provided, the
      +     * deletion will overwrite any concurrent changes. If an etag is provided and
      +     * does not match the current etag of the example, deletion will be blocked
      +     * and an ABORTED error will be returned.
      +     * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The current etag of the example. If an etag is not provided, the
      +     * deletion will overwrite any concurrent changes. If an etag is provided and
      +     * does not match the current etag of the example, deletion will be blocked
      +     * and an ABORTED error will be returned.
      +     * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.DeleteExampleRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.DeleteExampleRequest) + private static final com.google.cloud.ces.v1.DeleteExampleRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.DeleteExampleRequest(); + } + + public static com.google.cloud.ces.v1.DeleteExampleRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteExampleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteExampleRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteExampleRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteExampleRequestOrBuilder.java new file mode 100644 index 000000000000..c291e8439aa1 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteExampleRequestOrBuilder.java @@ -0,0 +1,90 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface DeleteExampleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.DeleteExampleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the example to delete.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. The resource name of the example to delete.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Optional. The current etag of the example. If an etag is not provided, the
      +   * deletion will overwrite any concurrent changes. If an etag is provided and
      +   * does not match the current etag of the example, deletion will be blocked
      +   * and an ABORTED error will be returned.
      +   * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
      +   * Optional. The current etag of the example. If an etag is not provided, the
      +   * deletion will overwrite any concurrent changes. If an etag is provided and
      +   * does not match the current etag of the example, deletion will be blocked
      +   * and an ABORTED error will be returned.
      +   * 
      + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteGuardrailRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteGuardrailRequest.java new file mode 100644 index 000000000000..a85bdb99d289 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteGuardrailRequest.java @@ -0,0 +1,942 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.DeleteGuardrail][google.cloud.ces.v1.AgentService.DeleteGuardrail].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DeleteGuardrailRequest} + */ +@com.google.protobuf.Generated +public final class DeleteGuardrailRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.DeleteGuardrailRequest) + DeleteGuardrailRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteGuardrailRequest"); + } + + // Use DeleteGuardrailRequest.newBuilder() to construct. + private DeleteGuardrailRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteGuardrailRequest() { + name_ = ""; + etag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteGuardrailRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteGuardrailRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DeleteGuardrailRequest.class, + com.google.cloud.ces.v1.DeleteGuardrailRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the guardrail to delete.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the guardrail to delete.
      +   * 
      + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORCE_FIELD_NUMBER = 2; + private boolean force_ = false; + + /** + * + * + *
      +   * Optional. Indicates whether to forcefully delete the guardrail, even if it
      +   * is still referenced by app/agents.
      +   *
      +   * *  If `force = false`, the deletion fails if any apps/agents still
      +   * reference the guardrail.
      +   * *  If `force = true`, all existing references from apps/agents will be
      +   * removed and the guardrail will be deleted.
      +   * 
      + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + public static final int ETAG_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
      +   * Optional. The current etag of the guardrail. If an etag is not provided,
      +   * the deletion will overwrite any concurrent changes. If an etag is provided
      +   * and does not match the current etag of the guardrail, deletion will be
      +   * blocked and an ABORTED error will be returned.
      +   * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The current etag of the guardrail. If an etag is not provided,
      +   * the deletion will overwrite any concurrent changes. If an etag is provided
      +   * and does not match the current etag of the guardrail, deletion will be
      +   * blocked and an ABORTED error will be returned.
      +   * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (force_ != false) { + output.writeBool(2, force_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, etag_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.DeleteGuardrailRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.DeleteGuardrailRequest other = + (com.google.cloud.ces.v1.DeleteGuardrailRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getForce() != other.getForce()) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.DeleteGuardrailRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DeleteGuardrailRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteGuardrailRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DeleteGuardrailRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteGuardrailRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DeleteGuardrailRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteGuardrailRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DeleteGuardrailRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteGuardrailRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DeleteGuardrailRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteGuardrailRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DeleteGuardrailRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.DeleteGuardrailRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.DeleteGuardrail][google.cloud.ces.v1.AgentService.DeleteGuardrail].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DeleteGuardrailRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.DeleteGuardrailRequest) + com.google.cloud.ces.v1.DeleteGuardrailRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteGuardrailRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteGuardrailRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DeleteGuardrailRequest.class, + com.google.cloud.ces.v1.DeleteGuardrailRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.DeleteGuardrailRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + force_ = false; + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteGuardrailRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteGuardrailRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.DeleteGuardrailRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteGuardrailRequest build() { + com.google.cloud.ces.v1.DeleteGuardrailRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteGuardrailRequest buildPartial() { + com.google.cloud.ces.v1.DeleteGuardrailRequest result = + new com.google.cloud.ces.v1.DeleteGuardrailRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.DeleteGuardrailRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.etag_ = etag_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.DeleteGuardrailRequest) { + return mergeFrom((com.google.cloud.ces.v1.DeleteGuardrailRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.DeleteGuardrailRequest other) { + if (other == com.google.cloud.ces.v1.DeleteGuardrailRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + force_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + etag_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the guardrail to delete.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the guardrail to delete.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the guardrail to delete.
      +     * 
      + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the guardrail to delete.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the guardrail to delete.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean force_; + + /** + * + * + *
      +     * Optional. Indicates whether to forcefully delete the guardrail, even if it
      +     * is still referenced by app/agents.
      +     *
      +     * *  If `force = false`, the deletion fails if any apps/agents still
      +     * reference the guardrail.
      +     * *  If `force = true`, all existing references from apps/agents will be
      +     * removed and the guardrail will be deleted.
      +     * 
      + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + /** + * + * + *
      +     * Optional. Indicates whether to forcefully delete the guardrail, even if it
      +     * is still referenced by app/agents.
      +     *
      +     * *  If `force = false`, the deletion fails if any apps/agents still
      +     * reference the guardrail.
      +     * *  If `force = true`, all existing references from apps/agents will be
      +     * removed and the guardrail will be deleted.
      +     * 
      + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Indicates whether to forcefully delete the guardrail, even if it
      +     * is still referenced by app/agents.
      +     *
      +     * *  If `force = false`, the deletion fails if any apps/agents still
      +     * reference the guardrail.
      +     * *  If `force = true`, all existing references from apps/agents will be
      +     * removed and the guardrail will be deleted.
      +     * 
      + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000002); + force_ = false; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
      +     * Optional. The current etag of the guardrail. If an etag is not provided,
      +     * the deletion will overwrite any concurrent changes. If an etag is provided
      +     * and does not match the current etag of the guardrail, deletion will be
      +     * blocked and an ABORTED error will be returned.
      +     * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The current etag of the guardrail. If an etag is not provided,
      +     * the deletion will overwrite any concurrent changes. If an etag is provided
      +     * and does not match the current etag of the guardrail, deletion will be
      +     * blocked and an ABORTED error will be returned.
      +     * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The current etag of the guardrail. If an etag is not provided,
      +     * the deletion will overwrite any concurrent changes. If an etag is provided
      +     * and does not match the current etag of the guardrail, deletion will be
      +     * blocked and an ABORTED error will be returned.
      +     * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The current etag of the guardrail. If an etag is not provided,
      +     * the deletion will overwrite any concurrent changes. If an etag is provided
      +     * and does not match the current etag of the guardrail, deletion will be
      +     * blocked and an ABORTED error will be returned.
      +     * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The current etag of the guardrail. If an etag is not provided,
      +     * the deletion will overwrite any concurrent changes. If an etag is provided
      +     * and does not match the current etag of the guardrail, deletion will be
      +     * blocked and an ABORTED error will be returned.
      +     * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.DeleteGuardrailRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.DeleteGuardrailRequest) + private static final com.google.cloud.ces.v1.DeleteGuardrailRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.DeleteGuardrailRequest(); + } + + public static com.google.cloud.ces.v1.DeleteGuardrailRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteGuardrailRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteGuardrailRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteGuardrailRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteGuardrailRequestOrBuilder.java new file mode 100644 index 000000000000..869abfcf8984 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteGuardrailRequestOrBuilder.java @@ -0,0 +1,109 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface DeleteGuardrailRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.DeleteGuardrailRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the guardrail to delete.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. The resource name of the guardrail to delete.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Optional. Indicates whether to forcefully delete the guardrail, even if it
      +   * is still referenced by app/agents.
      +   *
      +   * *  If `force = false`, the deletion fails if any apps/agents still
      +   * reference the guardrail.
      +   * *  If `force = true`, all existing references from apps/agents will be
      +   * removed and the guardrail will be deleted.
      +   * 
      + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); + + /** + * + * + *
      +   * Optional. The current etag of the guardrail. If an etag is not provided,
      +   * the deletion will overwrite any concurrent changes. If an etag is provided
      +   * and does not match the current etag of the guardrail, deletion will be
      +   * blocked and an ABORTED error will be returned.
      +   * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
      +   * Optional. The current etag of the guardrail. If an etag is not provided,
      +   * the deletion will overwrite any concurrent changes. If an etag is provided
      +   * and does not match the current etag of the guardrail, deletion will be
      +   * blocked and an ABORTED error will be returned.
      +   * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteToolRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteToolRequest.java new file mode 100644 index 000000000000..bfc597f1091e --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteToolRequest.java @@ -0,0 +1,942 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.DeleteTool][google.cloud.ces.v1.AgentService.DeleteTool].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DeleteToolRequest} + */ +@com.google.protobuf.Generated +public final class DeleteToolRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.DeleteToolRequest) + DeleteToolRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteToolRequest"); + } + + // Use DeleteToolRequest.newBuilder() to construct. + private DeleteToolRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteToolRequest() { + name_ = ""; + etag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteToolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteToolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DeleteToolRequest.class, + com.google.cloud.ces.v1.DeleteToolRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the tool to delete.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the tool to delete.
      +   * 
      + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORCE_FIELD_NUMBER = 2; + private boolean force_ = false; + + /** + * + * + *
      +   * Optional. Indicates whether to forcefully delete the tool, even if it is
      +   * still referenced by agents/examples.
      +   *
      +   * *  If `force = false`, the deletion will fail if any agents still
      +   * reference the tool.
      +   * *  If `force = true`, all existing references from agents will be removed
      +   * and the tool will be deleted.
      +   * 
      + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + public static final int ETAG_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
      +   * Optional. The current etag of the tool. If an etag is not provided, the
      +   * deletion will overwrite any concurrent changes. If an etag is provided and
      +   * does not match the current etag of the tool, deletion will be blocked and
      +   * an ABORTED error will be returned.
      +   * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The current etag of the tool. If an etag is not provided, the
      +   * deletion will overwrite any concurrent changes. If an etag is provided and
      +   * does not match the current etag of the tool, deletion will be blocked and
      +   * an ABORTED error will be returned.
      +   * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (force_ != false) { + output.writeBool(2, force_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, etag_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.DeleteToolRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.DeleteToolRequest other = + (com.google.cloud.ces.v1.DeleteToolRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getForce() != other.getForce()) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.DeleteToolRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DeleteToolRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteToolRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DeleteToolRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteToolRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DeleteToolRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteToolRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DeleteToolRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteToolRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DeleteToolRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteToolRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DeleteToolRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.DeleteToolRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.DeleteTool][google.cloud.ces.v1.AgentService.DeleteTool].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DeleteToolRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.DeleteToolRequest) + com.google.cloud.ces.v1.DeleteToolRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteToolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteToolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DeleteToolRequest.class, + com.google.cloud.ces.v1.DeleteToolRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.DeleteToolRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + force_ = false; + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteToolRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteToolRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.DeleteToolRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteToolRequest build() { + com.google.cloud.ces.v1.DeleteToolRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteToolRequest buildPartial() { + com.google.cloud.ces.v1.DeleteToolRequest result = + new com.google.cloud.ces.v1.DeleteToolRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.DeleteToolRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.etag_ = etag_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.DeleteToolRequest) { + return mergeFrom((com.google.cloud.ces.v1.DeleteToolRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.DeleteToolRequest other) { + if (other == com.google.cloud.ces.v1.DeleteToolRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + force_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + etag_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the tool to delete.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the tool to delete.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the tool to delete.
      +     * 
      + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the tool to delete.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the tool to delete.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean force_; + + /** + * + * + *
      +     * Optional. Indicates whether to forcefully delete the tool, even if it is
      +     * still referenced by agents/examples.
      +     *
      +     * *  If `force = false`, the deletion will fail if any agents still
      +     * reference the tool.
      +     * *  If `force = true`, all existing references from agents will be removed
      +     * and the tool will be deleted.
      +     * 
      + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + /** + * + * + *
      +     * Optional. Indicates whether to forcefully delete the tool, even if it is
      +     * still referenced by agents/examples.
      +     *
      +     * *  If `force = false`, the deletion will fail if any agents still
      +     * reference the tool.
      +     * *  If `force = true`, all existing references from agents will be removed
      +     * and the tool will be deleted.
      +     * 
      + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Indicates whether to forcefully delete the tool, even if it is
      +     * still referenced by agents/examples.
      +     *
      +     * *  If `force = false`, the deletion will fail if any agents still
      +     * reference the tool.
      +     * *  If `force = true`, all existing references from agents will be removed
      +     * and the tool will be deleted.
      +     * 
      + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000002); + force_ = false; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
      +     * Optional. The current etag of the tool. If an etag is not provided, the
      +     * deletion will overwrite any concurrent changes. If an etag is provided and
      +     * does not match the current etag of the tool, deletion will be blocked and
      +     * an ABORTED error will be returned.
      +     * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The current etag of the tool. If an etag is not provided, the
      +     * deletion will overwrite any concurrent changes. If an etag is provided and
      +     * does not match the current etag of the tool, deletion will be blocked and
      +     * an ABORTED error will be returned.
      +     * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The current etag of the tool. If an etag is not provided, the
      +     * deletion will overwrite any concurrent changes. If an etag is provided and
      +     * does not match the current etag of the tool, deletion will be blocked and
      +     * an ABORTED error will be returned.
      +     * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The current etag of the tool. If an etag is not provided, the
      +     * deletion will overwrite any concurrent changes. If an etag is provided and
      +     * does not match the current etag of the tool, deletion will be blocked and
      +     * an ABORTED error will be returned.
      +     * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The current etag of the tool. If an etag is not provided, the
      +     * deletion will overwrite any concurrent changes. If an etag is provided and
      +     * does not match the current etag of the tool, deletion will be blocked and
      +     * an ABORTED error will be returned.
      +     * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.DeleteToolRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.DeleteToolRequest) + private static final com.google.cloud.ces.v1.DeleteToolRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.DeleteToolRequest(); + } + + public static com.google.cloud.ces.v1.DeleteToolRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteToolRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteToolRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteToolRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteToolRequestOrBuilder.java new file mode 100644 index 000000000000..123d4113188c --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteToolRequestOrBuilder.java @@ -0,0 +1,109 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface DeleteToolRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.DeleteToolRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the tool to delete.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. The resource name of the tool to delete.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Optional. Indicates whether to forcefully delete the tool, even if it is
      +   * still referenced by agents/examples.
      +   *
      +   * *  If `force = false`, the deletion will fail if any agents still
      +   * reference the tool.
      +   * *  If `force = true`, all existing references from agents will be removed
      +   * and the tool will be deleted.
      +   * 
      + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); + + /** + * + * + *
      +   * Optional. The current etag of the tool. If an etag is not provided, the
      +   * deletion will overwrite any concurrent changes. If an etag is provided and
      +   * does not match the current etag of the tool, deletion will be blocked and
      +   * an ABORTED error will be returned.
      +   * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
      +   * Optional. The current etag of the tool. If an etag is not provided, the
      +   * deletion will overwrite any concurrent changes. If an etag is provided and
      +   * does not match the current etag of the tool, deletion will be blocked and
      +   * an ABORTED error will be returned.
      +   * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteToolsetRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteToolsetRequest.java new file mode 100644 index 000000000000..0e9dd149bee7 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteToolsetRequest.java @@ -0,0 +1,942 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.DeleteToolset][google.cloud.ces.v1.AgentService.DeleteToolset].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DeleteToolsetRequest} + */ +@com.google.protobuf.Generated +public final class DeleteToolsetRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.DeleteToolsetRequest) + DeleteToolsetRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteToolsetRequest"); + } + + // Use DeleteToolsetRequest.newBuilder() to construct. + private DeleteToolsetRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteToolsetRequest() { + name_ = ""; + etag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteToolsetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteToolsetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DeleteToolsetRequest.class, + com.google.cloud.ces.v1.DeleteToolsetRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the toolset to delete.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the toolset to delete.
      +   * 
      + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORCE_FIELD_NUMBER = 2; + private boolean force_ = false; + + /** + * + * + *
      +   * Optional. Indicates whether to forcefully delete the toolset, even if it is
      +   * still referenced by app/agents.
      +   *
      +   * *  If `force = false`, the deletion fails if any agents still
      +   * reference the toolset.
      +   * *  If `force = true`, all existing references from agents will be
      +   * removed and the toolset will be deleted.
      +   * 
      + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + public static final int ETAG_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
      +   * Optional. The current etag of the toolset. If an etag is not provided, the
      +   * deletion will overwrite any concurrent changes. If an etag is provided and
      +   * does not match the current etag of the toolset, deletion will be blocked
      +   * and an ABORTED error will be returned.
      +   * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The current etag of the toolset. If an etag is not provided, the
      +   * deletion will overwrite any concurrent changes. If an etag is provided and
      +   * does not match the current etag of the toolset, deletion will be blocked
      +   * and an ABORTED error will be returned.
      +   * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (force_ != false) { + output.writeBool(2, force_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, etag_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.DeleteToolsetRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.DeleteToolsetRequest other = + (com.google.cloud.ces.v1.DeleteToolsetRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getForce() != other.getForce()) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.DeleteToolsetRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DeleteToolsetRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteToolsetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DeleteToolsetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteToolsetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.DeleteToolsetRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteToolsetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DeleteToolsetRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteToolsetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DeleteToolsetRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.DeleteToolsetRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.DeleteToolsetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.DeleteToolsetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.DeleteToolset][google.cloud.ces.v1.AgentService.DeleteToolset].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.DeleteToolsetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.DeleteToolsetRequest) + com.google.cloud.ces.v1.DeleteToolsetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteToolsetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteToolsetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.DeleteToolsetRequest.class, + com.google.cloud.ces.v1.DeleteToolsetRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.DeleteToolsetRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + force_ = false; + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_DeleteToolsetRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteToolsetRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.DeleteToolsetRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteToolsetRequest build() { + com.google.cloud.ces.v1.DeleteToolsetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteToolsetRequest buildPartial() { + com.google.cloud.ces.v1.DeleteToolsetRequest result = + new com.google.cloud.ces.v1.DeleteToolsetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.DeleteToolsetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.etag_ = etag_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.DeleteToolsetRequest) { + return mergeFrom((com.google.cloud.ces.v1.DeleteToolsetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.DeleteToolsetRequest other) { + if (other == com.google.cloud.ces.v1.DeleteToolsetRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + force_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + etag_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the toolset to delete.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the toolset to delete.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the toolset to delete.
      +     * 
      + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the toolset to delete.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the toolset to delete.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean force_; + + /** + * + * + *
      +     * Optional. Indicates whether to forcefully delete the toolset, even if it is
      +     * still referenced by app/agents.
      +     *
      +     * *  If `force = false`, the deletion fails if any agents still
      +     * reference the toolset.
      +     * *  If `force = true`, all existing references from agents will be
      +     * removed and the toolset will be deleted.
      +     * 
      + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + /** + * + * + *
      +     * Optional. Indicates whether to forcefully delete the toolset, even if it is
      +     * still referenced by app/agents.
      +     *
      +     * *  If `force = false`, the deletion fails if any agents still
      +     * reference the toolset.
      +     * *  If `force = true`, all existing references from agents will be
      +     * removed and the toolset will be deleted.
      +     * 
      + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Indicates whether to forcefully delete the toolset, even if it is
      +     * still referenced by app/agents.
      +     *
      +     * *  If `force = false`, the deletion fails if any agents still
      +     * reference the toolset.
      +     * *  If `force = true`, all existing references from agents will be
      +     * removed and the toolset will be deleted.
      +     * 
      + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000002); + force_ = false; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
      +     * Optional. The current etag of the toolset. If an etag is not provided, the
      +     * deletion will overwrite any concurrent changes. If an etag is provided and
      +     * does not match the current etag of the toolset, deletion will be blocked
      +     * and an ABORTED error will be returned.
      +     * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The current etag of the toolset. If an etag is not provided, the
      +     * deletion will overwrite any concurrent changes. If an etag is provided and
      +     * does not match the current etag of the toolset, deletion will be blocked
      +     * and an ABORTED error will be returned.
      +     * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The current etag of the toolset. If an etag is not provided, the
      +     * deletion will overwrite any concurrent changes. If an etag is provided and
      +     * does not match the current etag of the toolset, deletion will be blocked
      +     * and an ABORTED error will be returned.
      +     * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The current etag of the toolset. If an etag is not provided, the
      +     * deletion will overwrite any concurrent changes. If an etag is provided and
      +     * does not match the current etag of the toolset, deletion will be blocked
      +     * and an ABORTED error will be returned.
      +     * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The current etag of the toolset. If an etag is not provided, the
      +     * deletion will overwrite any concurrent changes. If an etag is provided and
      +     * does not match the current etag of the toolset, deletion will be blocked
      +     * and an ABORTED error will be returned.
      +     * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.DeleteToolsetRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.DeleteToolsetRequest) + private static final com.google.cloud.ces.v1.DeleteToolsetRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.DeleteToolsetRequest(); + } + + public static com.google.cloud.ces.v1.DeleteToolsetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteToolsetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.DeleteToolsetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteToolsetRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteToolsetRequestOrBuilder.java new file mode 100644 index 000000000000..f00c707206d7 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeleteToolsetRequestOrBuilder.java @@ -0,0 +1,109 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface DeleteToolsetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.DeleteToolsetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the toolset to delete.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. The resource name of the toolset to delete.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Optional. Indicates whether to forcefully delete the toolset, even if it is
      +   * still referenced by app/agents.
      +   *
      +   * *  If `force = false`, the deletion fails if any agents still
      +   * reference the toolset.
      +   * *  If `force = true`, all existing references from agents will be
      +   * removed and the toolset will be deleted.
      +   * 
      + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); + + /** + * + * + *
      +   * Optional. The current etag of the toolset. If an etag is not provided, the
      +   * deletion will overwrite any concurrent changes. If an etag is provided and
      +   * does not match the current etag of the toolset, deletion will be blocked
      +   * and an ABORTED error will be returned.
      +   * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
      +   * Optional. The current etag of the toolset. If an etag is not provided, the
      +   * deletion will overwrite any concurrent changes. If an etag is provided and
      +   * does not match the current etag of the toolset, deletion will be blocked
      +   * and an ABORTED error will be returned.
      +   * 
      + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Deployment.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Deployment.java new file mode 100644 index 000000000000..bc33b1718d76 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Deployment.java @@ -0,0 +1,2131 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/deployment.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * A deployment represents an immutable, queryable version of the app.
      + * It is used to deploy an app version with a specific channel profile.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Deployment} + */ +@com.google.protobuf.Generated +public final class Deployment extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.Deployment) + DeploymentOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Deployment"); + } + + // Use Deployment.newBuilder() to construct. + private Deployment(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Deployment() { + name_ = ""; + displayName_ = ""; + appVersion_ = ""; + etag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ChannelProfileProto + .internal_static_google_cloud_ces_v1_Deployment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ChannelProfileProto + .internal_static_google_cloud_ces_v1_Deployment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Deployment.class, + com.google.cloud.ces.v1.Deployment.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Identifier. The resource name of the deployment.
      +   * Format:
      +   * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Identifier. The resource name of the deployment.
      +   * Format:
      +   * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
      +   * Required. Display name of the deployment.
      +   * 
      + * + * string display_name = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. Display name of the deployment.
      +   * 
      + * + * string display_name = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APP_VERSION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object appVersion_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the app version to deploy.
      +   * Format:
      +   * projects/{project}/locations/{location}/apps/{app}/versions/{version}
      +   * 
      + * + * + * string app_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The appVersion. + */ + @java.lang.Override + public java.lang.String getAppVersion() { + java.lang.Object ref = appVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appVersion_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the app version to deploy.
      +   * Format:
      +   * projects/{project}/locations/{location}/apps/{app}/versions/{version}
      +   * 
      + * + * + * string app_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppVersionBytes() { + java.lang.Object ref = appVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHANNEL_PROFILE_FIELD_NUMBER = 3; + private com.google.cloud.ces.v1.ChannelProfile channelProfile_; + + /** + * + * + *
      +   * Required. The channel profile used in the deployment.
      +   * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile channel_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the channelProfile field is set. + */ + @java.lang.Override + public boolean hasChannelProfile() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Required. The channel profile used in the deployment.
      +   * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile channel_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The channelProfile. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfile getChannelProfile() { + return channelProfile_ == null + ? com.google.cloud.ces.v1.ChannelProfile.getDefaultInstance() + : channelProfile_; + } + + /** + * + * + *
      +   * Required. The channel profile used in the deployment.
      +   * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile channel_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ChannelProfileOrBuilder getChannelProfileOrBuilder() { + return channelProfile_ == null + ? com.google.cloud.ces.v1.ChannelProfile.getDefaultInstance() + : channelProfile_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
      +   * Output only. Timestamp when this deployment was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Output only. Timestamp when this deployment was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
      +   * Output only. Timestamp when this deployment was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
      +   * Output only. Timestamp when this deployment was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * Output only. Timestamp when this deployment was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
      +   * Output only. Timestamp when this deployment was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int ETAG_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
      +   * Output only. Etag used to ensure the object hasn't changed during a
      +   * read-modify-write operation. If the etag is empty, the update will
      +   * overwrite any concurrent changes.
      +   * 
      + * + * string etag = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + + /** + * + * + *
      +   * Output only. Etag used to ensure the object hasn't changed during a
      +   * read-modify-write operation. If the etag is empty, the update will
      +   * overwrite any concurrent changes.
      +   * 
      + * + * string etag = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appVersion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, appVersion_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getChannelProfile()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, etag_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, displayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appVersion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, appVersion_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getChannelProfile()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, etag_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, displayName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.Deployment)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.Deployment other = (com.google.cloud.ces.v1.Deployment) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getAppVersion().equals(other.getAppVersion())) return false; + if (hasChannelProfile() != other.hasChannelProfile()) return false; + if (hasChannelProfile()) { + if (!getChannelProfile().equals(other.getChannelProfile())) return false; + } + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getEtag().equals(other.getEtag())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + APP_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getAppVersion().hashCode(); + if (hasChannelProfile()) { + hash = (37 * hash) + CHANNEL_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getChannelProfile().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.Deployment parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Deployment parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Deployment parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Deployment parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Deployment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Deployment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Deployment parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Deployment parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Deployment parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Deployment parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Deployment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Deployment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.Deployment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * A deployment represents an immutable, queryable version of the app.
      +   * It is used to deploy an app version with a specific channel profile.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Deployment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.Deployment) + com.google.cloud.ces.v1.DeploymentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ChannelProfileProto + .internal_static_google_cloud_ces_v1_Deployment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ChannelProfileProto + .internal_static_google_cloud_ces_v1_Deployment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Deployment.class, + com.google.cloud.ces.v1.Deployment.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.Deployment.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetChannelProfileFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + appVersion_ = ""; + channelProfile_ = null; + if (channelProfileBuilder_ != null) { + channelProfileBuilder_.dispose(); + channelProfileBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.ChannelProfileProto + .internal_static_google_cloud_ces_v1_Deployment_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Deployment getDefaultInstanceForType() { + return com.google.cloud.ces.v1.Deployment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.Deployment build() { + com.google.cloud.ces.v1.Deployment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Deployment buildPartial() { + com.google.cloud.ces.v1.Deployment result = new com.google.cloud.ces.v1.Deployment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.Deployment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.appVersion_ = appVersion_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.channelProfile_ = + channelProfileBuilder_ == null ? channelProfile_ : channelProfileBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.etag_ = etag_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.Deployment) { + return mergeFrom((com.google.cloud.ces.v1.Deployment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.Deployment other) { + if (other == com.google.cloud.ces.v1.Deployment.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getAppVersion().isEmpty()) { + appVersion_ = other.appVersion_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasChannelProfile()) { + mergeChannelProfile(other.getChannelProfile()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000040; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + appVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetChannelProfileFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 58: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Identifier. The resource name of the deployment.
      +     * Format:
      +     * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Identifier. The resource name of the deployment.
      +     * Format:
      +     * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Identifier. The resource name of the deployment.
      +     * Format:
      +     * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Identifier. The resource name of the deployment.
      +     * Format:
      +     * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Identifier. The resource name of the deployment.
      +     * Format:
      +     * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
      +     * Required. Display name of the deployment.
      +     * 
      + * + * string display_name = 8 [(.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; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. Display name of the deployment.
      +     * 
      + * + * string display_name = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. Display name of the deployment.
      +     * 
      + * + * string display_name = 8 [(.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(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. Display name of the deployment.
      +     * 
      + * + * string display_name = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. Display name of the deployment.
      +     * 
      + * + * string display_name = 8 [(.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(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object appVersion_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the app version to deploy.
      +     * Format:
      +     * projects/{project}/locations/{location}/apps/{app}/versions/{version}
      +     * 
      + * + * + * string app_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The appVersion. + */ + public java.lang.String getAppVersion() { + java.lang.Object ref = appVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app version to deploy.
      +     * Format:
      +     * projects/{project}/locations/{location}/apps/{app}/versions/{version}
      +     * 
      + * + * + * string app_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appVersion. + */ + public com.google.protobuf.ByteString getAppVersionBytes() { + java.lang.Object ref = appVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app version to deploy.
      +     * Format:
      +     * projects/{project}/locations/{location}/apps/{app}/versions/{version}
      +     * 
      + * + * + * string app_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The appVersion to set. + * @return This builder for chaining. + */ + public Builder setAppVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + appVersion_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app version to deploy.
      +     * Format:
      +     * projects/{project}/locations/{location}/apps/{app}/versions/{version}
      +     * 
      + * + * + * string app_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAppVersion() { + appVersion_ = getDefaultInstance().getAppVersion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app version to deploy.
      +     * Format:
      +     * projects/{project}/locations/{location}/apps/{app}/versions/{version}
      +     * 
      + * + * + * string app_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for appVersion to set. + * @return This builder for chaining. + */ + public Builder setAppVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + appVersion_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.ChannelProfile channelProfile_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ChannelProfile, + com.google.cloud.ces.v1.ChannelProfile.Builder, + com.google.cloud.ces.v1.ChannelProfileOrBuilder> + channelProfileBuilder_; + + /** + * + * + *
      +     * Required. The channel profile used in the deployment.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile channel_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the channelProfile field is set. + */ + public boolean hasChannelProfile() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +     * Required. The channel profile used in the deployment.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile channel_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The channelProfile. + */ + public com.google.cloud.ces.v1.ChannelProfile getChannelProfile() { + if (channelProfileBuilder_ == null) { + return channelProfile_ == null + ? com.google.cloud.ces.v1.ChannelProfile.getDefaultInstance() + : channelProfile_; + } else { + return channelProfileBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Required. The channel profile used in the deployment.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile channel_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setChannelProfile(com.google.cloud.ces.v1.ChannelProfile value) { + if (channelProfileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + channelProfile_ = value; + } else { + channelProfileBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The channel profile used in the deployment.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile channel_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setChannelProfile( + com.google.cloud.ces.v1.ChannelProfile.Builder builderForValue) { + if (channelProfileBuilder_ == null) { + channelProfile_ = builderForValue.build(); + } else { + channelProfileBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The channel profile used in the deployment.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile channel_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeChannelProfile(com.google.cloud.ces.v1.ChannelProfile value) { + if (channelProfileBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && channelProfile_ != null + && channelProfile_ != com.google.cloud.ces.v1.ChannelProfile.getDefaultInstance()) { + getChannelProfileBuilder().mergeFrom(value); + } else { + channelProfile_ = value; + } + } else { + channelProfileBuilder_.mergeFrom(value); + } + if (channelProfile_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Required. The channel profile used in the deployment.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile channel_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearChannelProfile() { + bitField0_ = (bitField0_ & ~0x00000008); + channelProfile_ = null; + if (channelProfileBuilder_ != null) { + channelProfileBuilder_.dispose(); + channelProfileBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The channel profile used in the deployment.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile channel_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.ChannelProfile.Builder getChannelProfileBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetChannelProfileFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Required. The channel profile used in the deployment.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile channel_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.ChannelProfileOrBuilder getChannelProfileOrBuilder() { + if (channelProfileBuilder_ != null) { + return channelProfileBuilder_.getMessageOrBuilder(); + } else { + return channelProfile_ == null + ? com.google.cloud.ces.v1.ChannelProfile.getDefaultInstance() + : channelProfile_; + } + } + + /** + * + * + *
      +     * Required. The channel profile used in the deployment.
      +     * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile channel_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ChannelProfile, + com.google.cloud.ces.v1.ChannelProfile.Builder, + com.google.cloud.ces.v1.ChannelProfileOrBuilder> + internalGetChannelProfileFieldBuilder() { + if (channelProfileBuilder_ == null) { + channelProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ChannelProfile, + com.google.cloud.ces.v1.ChannelProfile.Builder, + com.google.cloud.ces.v1.ChannelProfileOrBuilder>( + getChannelProfile(), getParentForChildren(), isClean()); + channelProfile_ = null; + } + return channelProfileBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
      +     * Output only. Timestamp when this deployment was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +     * Output only. Timestamp when this deployment was created.
      +     * 
      + * + * + * .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_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. Timestamp when this deployment was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when this deployment was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when this deployment was created.
      +     * 
      + * + * + * .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_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when this deployment was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when this deployment was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. Timestamp when this deployment was created.
      +     * 
      + * + * + * .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_; + } + } + + /** + * + * + *
      +     * Output only. Timestamp when this deployment was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
      +     * Output only. Timestamp when this deployment was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +     * Output only. Timestamp when this deployment was last updated.
      +     * 
      + * + * + * .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_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. Timestamp when this deployment was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when this deployment was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when this deployment was last updated.
      +     * 
      + * + * + * .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_ & 0x00000020) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when this deployment was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when this deployment was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. Timestamp when this deployment was last updated.
      +     * 
      + * + * + * .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_; + } + } + + /** + * + * + *
      +     * Output only. Timestamp when this deployment was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
      +     * Output only. Etag used to ensure the object hasn't changed during a
      +     * read-modify-write operation. If the etag is empty, the update will
      +     * overwrite any concurrent changes.
      +     * 
      + * + * string etag = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Output only. Etag used to ensure the object hasn't changed during a
      +     * read-modify-write operation. If the etag is empty, the update will
      +     * overwrite any concurrent changes.
      +     * 
      + * + * string etag = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Output only. Etag used to ensure the object hasn't changed during a
      +     * read-modify-write operation. If the etag is empty, the update will
      +     * overwrite any concurrent changes.
      +     * 
      + * + * string etag = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Etag used to ensure the object hasn't changed during a
      +     * read-modify-write operation. If the etag is empty, the update will
      +     * overwrite any concurrent changes.
      +     * 
      + * + * string etag = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Etag used to ensure the object hasn't changed during a
      +     * read-modify-write operation. If the etag is empty, the update will
      +     * overwrite any concurrent changes.
      +     * 
      + * + * string etag = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Deployment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.Deployment) + private static final com.google.cloud.ces.v1.Deployment DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.Deployment(); + } + + public static com.google.cloud.ces.v1.Deployment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Deployment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Deployment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeploymentName.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeploymentName.java new file mode 100644 index 000000000000..d7782951dd68 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeploymentName.java @@ -0,0 +1,257 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class DeploymentName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_APP_DEPLOYMENT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String app; + private final String deployment; + + @Deprecated + protected DeploymentName() { + project = null; + location = null; + app = null; + deployment = null; + } + + private DeploymentName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + app = Preconditions.checkNotNull(builder.getApp()); + deployment = Preconditions.checkNotNull(builder.getDeployment()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getApp() { + return app; + } + + public String getDeployment() { + return deployment; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DeploymentName of(String project, String location, String app, String deployment) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setApp(app) + .setDeployment(deployment) + .build(); + } + + public static String format(String project, String location, String app, String deployment) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setApp(app) + .setDeployment(deployment) + .build() + .toString(); + } + + public static DeploymentName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_APP_DEPLOYMENT.validatedMatch( + formattedString, "DeploymentName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("app"), + matchMap.get("deployment")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (DeploymentName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_APP_DEPLOYMENT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (app != null) { + fieldMapBuilder.put("app", app); + } + if (deployment != null) { + fieldMapBuilder.put("deployment", deployment); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_APP_DEPLOYMENT.instantiate( + "project", project, "location", location, "app", app, "deployment", deployment); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + DeploymentName that = ((DeploymentName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.app, that.app) + && Objects.equals(this.deployment, that.deployment); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(app); + h *= 1000003; + h ^= Objects.hashCode(deployment); + return h; + } + + /** Builder for projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}. */ + public static class Builder { + private String project; + private String location; + private String app; + private String deployment; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getApp() { + return app; + } + + public String getDeployment() { + return deployment; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setApp(String app) { + this.app = app; + return this; + } + + public Builder setDeployment(String deployment) { + this.deployment = deployment; + return this; + } + + private Builder(DeploymentName deploymentName) { + this.project = deploymentName.project; + this.location = deploymentName.location; + this.app = deploymentName.app; + this.deployment = deploymentName.deployment; + } + + public DeploymentName build() { + return new DeploymentName(this); + } + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeploymentOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeploymentOrBuilder.java new file mode 100644 index 000000000000..f261fb983b8e --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeploymentOrBuilder.java @@ -0,0 +1,271 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/deployment.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface DeploymentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.Deployment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Identifier. The resource name of the deployment.
      +   * Format:
      +   * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Identifier. The resource name of the deployment.
      +   * Format:
      +   * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Required. Display name of the deployment.
      +   * 
      + * + * string display_name = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
      +   * Required. Display name of the deployment.
      +   * 
      + * + * string display_name = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
      +   * Required. The resource name of the app version to deploy.
      +   * Format:
      +   * projects/{project}/locations/{location}/apps/{app}/versions/{version}
      +   * 
      + * + * + * string app_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The appVersion. + */ + java.lang.String getAppVersion(); + + /** + * + * + *
      +   * Required. The resource name of the app version to deploy.
      +   * Format:
      +   * projects/{project}/locations/{location}/apps/{app}/versions/{version}
      +   * 
      + * + * + * string app_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appVersion. + */ + com.google.protobuf.ByteString getAppVersionBytes(); + + /** + * + * + *
      +   * Required. The channel profile used in the deployment.
      +   * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile channel_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the channelProfile field is set. + */ + boolean hasChannelProfile(); + + /** + * + * + *
      +   * Required. The channel profile used in the deployment.
      +   * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile channel_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The channelProfile. + */ + com.google.cloud.ces.v1.ChannelProfile getChannelProfile(); + + /** + * + * + *
      +   * Required. The channel profile used in the deployment.
      +   * 
      + * + * + * .google.cloud.ces.v1.ChannelProfile channel_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.ChannelProfileOrBuilder getChannelProfileOrBuilder(); + + /** + * + * + *
      +   * Output only. Timestamp when this deployment was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when this deployment was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when this deployment was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
      +   * Output only. Timestamp when this deployment was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when this deployment was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when this deployment was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
      +   * Output only. Etag used to ensure the object hasn't changed during a
      +   * read-modify-write operation. If the etag is empty, the update will
      +   * overwrite any concurrent changes.
      +   * 
      + * + * string etag = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
      +   * Output only. Etag used to ensure the object hasn't changed during a
      +   * read-modify-write operation. If the etag is empty, the update will
      +   * overwrite any concurrent changes.
      +   * 
      + * + * string etag = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EndSession.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EndSession.java new file mode 100644 index 000000000000..09d4f905dd7f --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EndSession.java @@ -0,0 +1,708 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Indicates the session has terminated, due to either successful completion
      + * (e.g. user says "Good bye!" ) or an agent escalation.
      + *
      + * The agent will not process any further inputs after session is terminated and
      + * the client should half-close and disconnect after receiving all remaining
      + * responses from the agent.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.EndSession} + */ +@com.google.protobuf.Generated +public final class EndSession extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.EndSession) + EndSessionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EndSession"); + } + + // Use EndSession.newBuilder() to construct. + private EndSession(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private EndSession() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_EndSession_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_EndSession_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.EndSession.class, + com.google.cloud.ces.v1.EndSession.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private com.google.protobuf.Struct metadata_; + + /** + * + * + *
      +   * Optional. Provides additional information about the end session signal,
      +   * such as the reason for ending the session.
      +   * 
      + * + * .google.protobuf.Struct metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Optional. Provides additional information about the end session signal,
      +   * such as the reason for ending the session.
      +   * 
      + * + * .google.protobuf.Struct metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The metadata. + */ + @java.lang.Override + public com.google.protobuf.Struct getMetadata() { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } + + /** + * + * + *
      +   * Optional. Provides additional information about the end session signal,
      +   * such as the reason for ending the session.
      +   * 
      + * + * .google.protobuf.Struct metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetadata()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.EndSession)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.EndSession other = (com.google.cloud.ces.v1.EndSession) obj; + + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata().equals(other.getMetadata())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.EndSession parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.EndSession parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EndSession parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.EndSession parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EndSession parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.EndSession parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EndSession parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.EndSession parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EndSession parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.EndSession parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EndSession parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.EndSession parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.EndSession prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Indicates the session has terminated, due to either successful completion
      +   * (e.g. user says "Good bye!" ) or an agent escalation.
      +   *
      +   * The agent will not process any further inputs after session is terminated and
      +   * the client should half-close and disconnect after receiving all remaining
      +   * responses from the agent.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.EndSession} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.EndSession) + com.google.cloud.ces.v1.EndSessionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_EndSession_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_EndSession_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.EndSession.class, + com.google.cloud.ces.v1.EndSession.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.EndSession.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_EndSession_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.EndSession getDefaultInstanceForType() { + return com.google.cloud.ces.v1.EndSession.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.EndSession build() { + com.google.cloud.ces.v1.EndSession result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.EndSession buildPartial() { + com.google.cloud.ces.v1.EndSession result = new com.google.cloud.ces.v1.EndSession(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.EndSession result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.EndSession) { + return mergeFrom((com.google.cloud.ces.v1.EndSession) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.EndSession other) { + if (other == com.google.cloud.ces.v1.EndSession.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetMetadataFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Struct metadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + metadataBuilder_; + + /** + * + * + *
      +     * Optional. Provides additional information about the end session signal,
      +     * such as the reason for ending the session.
      +     * 
      + * + * .google.protobuf.Struct metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Optional. Provides additional information about the end session signal,
      +     * such as the reason for ending the session.
      +     * 
      + * + * .google.protobuf.Struct metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The metadata. + */ + public com.google.protobuf.Struct getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Provides additional information about the end session signal,
      +     * such as the reason for ending the session.
      +     * 
      + * + * .google.protobuf.Struct metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setMetadata(com.google.protobuf.Struct value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Provides additional information about the end session signal,
      +     * such as the reason for ending the session.
      +     * 
      + * + * .google.protobuf.Struct metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Provides additional information about the end session signal,
      +     * such as the reason for ending the session.
      +     * 
      + * + * .google.protobuf.Struct metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeMetadata(com.google.protobuf.Struct value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && metadata_ != null + && metadata_ != com.google.protobuf.Struct.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); + } else { + metadata_ = value; + } + } else { + metadataBuilder_.mergeFrom(value); + } + if (metadata_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Provides additional information about the end session signal,
      +     * such as the reason for ending the session.
      +     * 
      + * + * .google.protobuf.Struct metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Provides additional information about the end session signal,
      +     * such as the reason for ending the session.
      +     * 
      + * + * .google.protobuf.Struct metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Struct.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Provides additional information about the end session signal,
      +     * such as the reason for ending the session.
      +     * 
      + * + * .google.protobuf.Struct metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } + } + + /** + * + * + *
      +     * Optional. Provides additional information about the end session signal,
      +     * such as the reason for ending the session.
      +     * 
      + * + * .google.protobuf.Struct metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.EndSession) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.EndSession) + private static final com.google.cloud.ces.v1.EndSession DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.EndSession(); + } + + public static com.google.cloud.ces.v1.EndSession getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EndSession parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.EndSession getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EndSessionOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EndSessionOrBuilder.java new file mode 100644 index 000000000000..81d61a216825 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EndSessionOrBuilder.java @@ -0,0 +1,68 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface EndSessionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.EndSession) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. Provides additional information about the end session signal,
      +   * such as the reason for ending the session.
      +   * 
      + * + * .google.protobuf.Struct metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + + /** + * + * + *
      +   * Optional. Provides additional information about the end session signal,
      +   * such as the reason for ending the session.
      +   * 
      + * + * .google.protobuf.Struct metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The metadata. + */ + com.google.protobuf.Struct getMetadata(); + + /** + * + * + *
      +   * Optional. Provides additional information about the end session signal,
      +   * such as the reason for ending the session.
      +   * 
      + * + * .google.protobuf.Struct metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.StructOrBuilder getMetadataOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EndUserAuthConfig.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EndUserAuthConfig.java new file mode 100644 index 000000000000..a6ef22bd0edd --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EndUserAuthConfig.java @@ -0,0 +1,2870 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/auth.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * End-user authentication configuration used for Connection calls.
      + * The field values must be the names of context variables in the format
      + * `$context.variables.<name_of_variable>`.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.EndUserAuthConfig} + */ +@com.google.protobuf.Generated +public final class EndUserAuthConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.EndUserAuthConfig) + EndUserAuthConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EndUserAuthConfig"); + } + + // Use EndUserAuthConfig.newBuilder() to construct. + private EndUserAuthConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private EndUserAuthConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_EndUserAuthConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_EndUserAuthConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.EndUserAuthConfig.class, + com.google.cloud.ces.v1.EndUserAuthConfig.Builder.class); + } + + public interface Oauth2AuthCodeConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Required. Oauth token parameter name to pass through.
      +     * Must be in the format `$context.variables.<name_of_variable>`.
      +     * 
      + * + * string oauth_token = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The oauthToken. + */ + java.lang.String getOauthToken(); + + /** + * + * + *
      +     * Required. Oauth token parameter name to pass through.
      +     * Must be in the format `$context.variables.<name_of_variable>`.
      +     * 
      + * + * string oauth_token = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for oauthToken. + */ + com.google.protobuf.ByteString getOauthTokenBytes(); + } + + /** + * + * + *
      +   * Oauth 2.0 Authorization Code authentication configuration.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig} + */ + public static final class Oauth2AuthCodeConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig) + Oauth2AuthCodeConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Oauth2AuthCodeConfig"); + } + + // Use Oauth2AuthCodeConfig.newBuilder() to construct. + private Oauth2AuthCodeConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Oauth2AuthCodeConfig() { + oauthToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_EndUserAuthConfig_Oauth2AuthCodeConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_EndUserAuthConfig_Oauth2AuthCodeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig.class, + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig.Builder.class); + } + + public static final int OAUTH_TOKEN_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object oauthToken_ = ""; + + /** + * + * + *
      +     * Required. Oauth token parameter name to pass through.
      +     * Must be in the format `$context.variables.<name_of_variable>`.
      +     * 
      + * + * string oauth_token = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The oauthToken. + */ + @java.lang.Override + public java.lang.String getOauthToken() { + java.lang.Object ref = oauthToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + oauthToken_ = s; + return s; + } + } + + /** + * + * + *
      +     * Required. Oauth token parameter name to pass through.
      +     * Must be in the format `$context.variables.<name_of_variable>`.
      +     * 
      + * + * string oauth_token = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for oauthToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOauthTokenBytes() { + java.lang.Object ref = oauthToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + oauthToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(oauthToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, oauthToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(oauthToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, oauthToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig other = + (com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig) obj; + + if (!getOauthToken().equals(other.getOauthToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OAUTH_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getOauthToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Oauth 2.0 Authorization Code authentication configuration.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig) + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_EndUserAuthConfig_Oauth2AuthCodeConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_EndUserAuthConfig_Oauth2AuthCodeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig.class, + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + oauthToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_EndUserAuthConfig_Oauth2AuthCodeConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig + getDefaultInstanceForType() { + return com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig build() { + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig buildPartial() { + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig result = + new com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.oauthToken_ = oauthToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig) { + return mergeFrom((com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig other) { + if (other + == com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig.getDefaultInstance()) + return this; + if (!other.getOauthToken().isEmpty()) { + oauthToken_ = other.oauthToken_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + oauthToken_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object oauthToken_ = ""; + + /** + * + * + *
      +       * Required. Oauth token parameter name to pass through.
      +       * Must be in the format `$context.variables.<name_of_variable>`.
      +       * 
      + * + * string oauth_token = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The oauthToken. + */ + public java.lang.String getOauthToken() { + java.lang.Object ref = oauthToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + oauthToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Required. Oauth token parameter name to pass through.
      +       * Must be in the format `$context.variables.<name_of_variable>`.
      +       * 
      + * + * string oauth_token = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for oauthToken. + */ + public com.google.protobuf.ByteString getOauthTokenBytes() { + java.lang.Object ref = oauthToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + oauthToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Required. Oauth token parameter name to pass through.
      +       * Must be in the format `$context.variables.<name_of_variable>`.
      +       * 
      + * + * string oauth_token = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The oauthToken to set. + * @return This builder for chaining. + */ + public Builder setOauthToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + oauthToken_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. Oauth token parameter name to pass through.
      +       * Must be in the format `$context.variables.<name_of_variable>`.
      +       * 
      + * + * string oauth_token = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearOauthToken() { + oauthToken_ = getDefaultInstance().getOauthToken(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. Oauth token parameter name to pass through.
      +       * Must be in the format `$context.variables.<name_of_variable>`.
      +       * 
      + * + * string oauth_token = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for oauthToken to set. + * @return This builder for chaining. + */ + public Builder setOauthTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + oauthToken_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig) + private static final com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig(); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Oauth2AuthCodeConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface Oauth2JwtBearerConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Required. Issuer parameter name to pass through.
      +     * Must be in the format `$context.variables.<name_of_variable>`.
      +     * 
      + * + * string issuer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The issuer. + */ + java.lang.String getIssuer(); + + /** + * + * + *
      +     * Required. Issuer parameter name to pass through.
      +     * Must be in the format `$context.variables.<name_of_variable>`.
      +     * 
      + * + * string issuer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for issuer. + */ + com.google.protobuf.ByteString getIssuerBytes(); + + /** + * + * + *
      +     * Required. Subject parameter name to pass through.
      +     * Must be in the format `$context.variables.<name_of_variable>`.
      +     * 
      + * + * string subject = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The subject. + */ + java.lang.String getSubject(); + + /** + * + * + *
      +     * Required. Subject parameter name to pass through.
      +     * Must be in the format `$context.variables.<name_of_variable>`.
      +     * 
      + * + * string subject = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for subject. + */ + com.google.protobuf.ByteString getSubjectBytes(); + + /** + * + * + *
      +     * Required. Client parameter name to pass through.
      +     * Must be in the format `$context.variables.<name_of_variable>`.
      +     * 
      + * + * string client_key = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clientKey. + */ + java.lang.String getClientKey(); + + /** + * + * + *
      +     * Required. Client parameter name to pass through.
      +     * Must be in the format `$context.variables.<name_of_variable>`.
      +     * 
      + * + * string client_key = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clientKey. + */ + com.google.protobuf.ByteString getClientKeyBytes(); + } + + /** + * + * + *
      +   * JWT Profile Oauth 2.0 Authorization Grant authentication configuration.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig} + */ + public static final class Oauth2JwtBearerConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig) + Oauth2JwtBearerConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Oauth2JwtBearerConfig"); + } + + // Use Oauth2JwtBearerConfig.newBuilder() to construct. + private Oauth2JwtBearerConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Oauth2JwtBearerConfig() { + issuer_ = ""; + subject_ = ""; + clientKey_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_EndUserAuthConfig_Oauth2JwtBearerConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_EndUserAuthConfig_Oauth2JwtBearerConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig.class, + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig.Builder.class); + } + + public static final int ISSUER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object issuer_ = ""; + + /** + * + * + *
      +     * Required. Issuer parameter name to pass through.
      +     * Must be in the format `$context.variables.<name_of_variable>`.
      +     * 
      + * + * string issuer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The issuer. + */ + @java.lang.Override + public java.lang.String getIssuer() { + java.lang.Object ref = issuer_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + issuer_ = s; + return s; + } + } + + /** + * + * + *
      +     * Required. Issuer parameter name to pass through.
      +     * Must be in the format `$context.variables.<name_of_variable>`.
      +     * 
      + * + * string issuer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for issuer. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIssuerBytes() { + java.lang.Object ref = issuer_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + issuer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBJECT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object subject_ = ""; + + /** + * + * + *
      +     * Required. Subject parameter name to pass through.
      +     * Must be in the format `$context.variables.<name_of_variable>`.
      +     * 
      + * + * string subject = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The subject. + */ + @java.lang.Override + public java.lang.String getSubject() { + java.lang.Object ref = subject_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subject_ = s; + return s; + } + } + + /** + * + * + *
      +     * Required. Subject parameter name to pass through.
      +     * Must be in the format `$context.variables.<name_of_variable>`.
      +     * 
      + * + * string subject = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for subject. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubjectBytes() { + java.lang.Object ref = subject_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_KEY_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object clientKey_ = ""; + + /** + * + * + *
      +     * Required. Client parameter name to pass through.
      +     * Must be in the format `$context.variables.<name_of_variable>`.
      +     * 
      + * + * string client_key = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clientKey. + */ + @java.lang.Override + public java.lang.String getClientKey() { + java.lang.Object ref = clientKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientKey_ = s; + return s; + } + } + + /** + * + * + *
      +     * Required. Client parameter name to pass through.
      +     * Must be in the format `$context.variables.<name_of_variable>`.
      +     * 
      + * + * string client_key = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clientKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientKeyBytes() { + java.lang.Object ref = clientKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(issuer_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, issuer_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subject_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, subject_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientKey_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, clientKey_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(issuer_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, issuer_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subject_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, subject_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientKey_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, clientKey_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig other = + (com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig) obj; + + if (!getIssuer().equals(other.getIssuer())) return false; + if (!getSubject().equals(other.getSubject())) return false; + if (!getClientKey().equals(other.getClientKey())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ISSUER_FIELD_NUMBER; + hash = (53 * hash) + getIssuer().hashCode(); + hash = (37 * hash) + SUBJECT_FIELD_NUMBER; + hash = (53 * hash) + getSubject().hashCode(); + hash = (37 * hash) + CLIENT_KEY_FIELD_NUMBER; + hash = (53 * hash) + getClientKey().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * JWT Profile Oauth 2.0 Authorization Grant authentication configuration.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig) + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_EndUserAuthConfig_Oauth2JwtBearerConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_EndUserAuthConfig_Oauth2JwtBearerConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig.class, + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig.Builder.class); + } + + // Construct using + // com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + issuer_ = ""; + subject_ = ""; + clientKey_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_EndUserAuthConfig_Oauth2JwtBearerConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig + getDefaultInstanceForType() { + return com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig build() { + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig buildPartial() { + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig result = + new com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.issuer_ = issuer_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.subject_ = subject_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clientKey_ = clientKey_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig) { + return mergeFrom((com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig other) { + if (other + == com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig.getDefaultInstance()) + return this; + if (!other.getIssuer().isEmpty()) { + issuer_ = other.issuer_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSubject().isEmpty()) { + subject_ = other.subject_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClientKey().isEmpty()) { + clientKey_ = other.clientKey_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + issuer_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + subject_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + clientKey_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object issuer_ = ""; + + /** + * + * + *
      +       * Required. Issuer parameter name to pass through.
      +       * Must be in the format `$context.variables.<name_of_variable>`.
      +       * 
      + * + * string issuer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The issuer. + */ + public java.lang.String getIssuer() { + java.lang.Object ref = issuer_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + issuer_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Required. Issuer parameter name to pass through.
      +       * Must be in the format `$context.variables.<name_of_variable>`.
      +       * 
      + * + * string issuer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for issuer. + */ + public com.google.protobuf.ByteString getIssuerBytes() { + java.lang.Object ref = issuer_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + issuer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Required. Issuer parameter name to pass through.
      +       * Must be in the format `$context.variables.<name_of_variable>`.
      +       * 
      + * + * string issuer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The issuer to set. + * @return This builder for chaining. + */ + public Builder setIssuer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + issuer_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. Issuer parameter name to pass through.
      +       * Must be in the format `$context.variables.<name_of_variable>`.
      +       * 
      + * + * string issuer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearIssuer() { + issuer_ = getDefaultInstance().getIssuer(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. Issuer parameter name to pass through.
      +       * Must be in the format `$context.variables.<name_of_variable>`.
      +       * 
      + * + * string issuer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for issuer to set. + * @return This builder for chaining. + */ + public Builder setIssuerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + issuer_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object subject_ = ""; + + /** + * + * + *
      +       * Required. Subject parameter name to pass through.
      +       * Must be in the format `$context.variables.<name_of_variable>`.
      +       * 
      + * + * string subject = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The subject. + */ + public java.lang.String getSubject() { + java.lang.Object ref = subject_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subject_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Required. Subject parameter name to pass through.
      +       * Must be in the format `$context.variables.<name_of_variable>`.
      +       * 
      + * + * string subject = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for subject. + */ + public com.google.protobuf.ByteString getSubjectBytes() { + java.lang.Object ref = subject_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Required. Subject parameter name to pass through.
      +       * Must be in the format `$context.variables.<name_of_variable>`.
      +       * 
      + * + * string subject = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The subject to set. + * @return This builder for chaining. + */ + public Builder setSubject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + subject_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. Subject parameter name to pass through.
      +       * Must be in the format `$context.variables.<name_of_variable>`.
      +       * 
      + * + * string subject = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSubject() { + subject_ = getDefaultInstance().getSubject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. Subject parameter name to pass through.
      +       * Must be in the format `$context.variables.<name_of_variable>`.
      +       * 
      + * + * string subject = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for subject to set. + * @return This builder for chaining. + */ + public Builder setSubjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subject_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clientKey_ = ""; + + /** + * + * + *
      +       * Required. Client parameter name to pass through.
      +       * Must be in the format `$context.variables.<name_of_variable>`.
      +       * 
      + * + * string client_key = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clientKey. + */ + public java.lang.String getClientKey() { + java.lang.Object ref = clientKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Required. Client parameter name to pass through.
      +       * Must be in the format `$context.variables.<name_of_variable>`.
      +       * 
      + * + * string client_key = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clientKey. + */ + public com.google.protobuf.ByteString getClientKeyBytes() { + java.lang.Object ref = clientKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Required. Client parameter name to pass through.
      +       * Must be in the format `$context.variables.<name_of_variable>`.
      +       * 
      + * + * string client_key = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The clientKey to set. + * @return This builder for chaining. + */ + public Builder setClientKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clientKey_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. Client parameter name to pass through.
      +       * Must be in the format `$context.variables.<name_of_variable>`.
      +       * 
      + * + * string client_key = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearClientKey() { + clientKey_ = getDefaultInstance().getClientKey(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. Client parameter name to pass through.
      +       * Must be in the format `$context.variables.<name_of_variable>`.
      +       * 
      + * + * string client_key = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for clientKey to set. + * @return This builder for chaining. + */ + public Builder setClientKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientKey_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig) + private static final com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig(); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Oauth2JwtBearerConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int authConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object authConfig_; + + public enum AuthConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + OAUTH2_AUTH_CODE_CONFIG(2), + OAUTH2_JWT_BEARER_CONFIG(3), + AUTHCONFIG_NOT_SET(0); + private final int value; + + private AuthConfigCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AuthConfigCase valueOf(int value) { + return forNumber(value); + } + + public static AuthConfigCase forNumber(int value) { + switch (value) { + case 2: + return OAUTH2_AUTH_CODE_CONFIG; + case 3: + return OAUTH2_JWT_BEARER_CONFIG; + case 0: + return AUTHCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public AuthConfigCase getAuthConfigCase() { + return AuthConfigCase.forNumber(authConfigCase_); + } + + public static final int OAUTH2_AUTH_CODE_CONFIG_FIELD_NUMBER = 2; + + /** + * + * + *
      +   * Oauth 2.0 Authorization Code authentication.
      +   * 
      + * + * .google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig oauth2_auth_code_config = 2; + * + * + * @return Whether the oauth2AuthCodeConfig field is set. + */ + @java.lang.Override + public boolean hasOauth2AuthCodeConfig() { + return authConfigCase_ == 2; + } + + /** + * + * + *
      +   * Oauth 2.0 Authorization Code authentication.
      +   * 
      + * + * .google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig oauth2_auth_code_config = 2; + * + * + * @return The oauth2AuthCodeConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig getOauth2AuthCodeConfig() { + if (authConfigCase_ == 2) { + return (com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig) authConfig_; + } + return com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig.getDefaultInstance(); + } + + /** + * + * + *
      +   * Oauth 2.0 Authorization Code authentication.
      +   * 
      + * + * .google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig oauth2_auth_code_config = 2; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfigOrBuilder + getOauth2AuthCodeConfigOrBuilder() { + if (authConfigCase_ == 2) { + return (com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig) authConfig_; + } + return com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig.getDefaultInstance(); + } + + public static final int OAUTH2_JWT_BEARER_CONFIG_FIELD_NUMBER = 3; + + /** + * + * + *
      +   * JWT Profile Oauth 2.0 Authorization Grant authentication.
      +   * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig oauth2_jwt_bearer_config = 3; + * + * + * @return Whether the oauth2JwtBearerConfig field is set. + */ + @java.lang.Override + public boolean hasOauth2JwtBearerConfig() { + return authConfigCase_ == 3; + } + + /** + * + * + *
      +   * JWT Profile Oauth 2.0 Authorization Grant authentication.
      +   * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig oauth2_jwt_bearer_config = 3; + * + * + * @return The oauth2JwtBearerConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig + getOauth2JwtBearerConfig() { + if (authConfigCase_ == 3) { + return (com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig) authConfig_; + } + return com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig.getDefaultInstance(); + } + + /** + * + * + *
      +   * JWT Profile Oauth 2.0 Authorization Grant authentication.
      +   * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig oauth2_jwt_bearer_config = 3; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfigOrBuilder + getOauth2JwtBearerConfigOrBuilder() { + if (authConfigCase_ == 3) { + return (com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig) authConfig_; + } + return com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (authConfigCase_ == 2) { + output.writeMessage( + 2, (com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig) authConfig_); + } + if (authConfigCase_ == 3) { + output.writeMessage( + 3, (com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig) authConfig_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (authConfigCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig) authConfig_); + } + if (authConfigCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig) authConfig_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.EndUserAuthConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.EndUserAuthConfig other = + (com.google.cloud.ces.v1.EndUserAuthConfig) obj; + + if (!getAuthConfigCase().equals(other.getAuthConfigCase())) return false; + switch (authConfigCase_) { + case 2: + if (!getOauth2AuthCodeConfig().equals(other.getOauth2AuthCodeConfig())) return false; + break; + case 3: + if (!getOauth2JwtBearerConfig().equals(other.getOauth2JwtBearerConfig())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (authConfigCase_) { + case 2: + hash = (37 * hash) + OAUTH2_AUTH_CODE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getOauth2AuthCodeConfig().hashCode(); + break; + case 3: + hash = (37 * hash) + OAUTH2_JWT_BEARER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getOauth2JwtBearerConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.EndUserAuthConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * End-user authentication configuration used for Connection calls.
      +   * The field values must be the names of context variables in the format
      +   * `$context.variables.<name_of_variable>`.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.EndUserAuthConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.EndUserAuthConfig) + com.google.cloud.ces.v1.EndUserAuthConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_EndUserAuthConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_EndUserAuthConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.EndUserAuthConfig.class, + com.google.cloud.ces.v1.EndUserAuthConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.EndUserAuthConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (oauth2AuthCodeConfigBuilder_ != null) { + oauth2AuthCodeConfigBuilder_.clear(); + } + if (oauth2JwtBearerConfigBuilder_ != null) { + oauth2JwtBearerConfigBuilder_.clear(); + } + authConfigCase_ = 0; + authConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_EndUserAuthConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.EndUserAuthConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1.EndUserAuthConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.EndUserAuthConfig build() { + com.google.cloud.ces.v1.EndUserAuthConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.EndUserAuthConfig buildPartial() { + com.google.cloud.ces.v1.EndUserAuthConfig result = + new com.google.cloud.ces.v1.EndUserAuthConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.EndUserAuthConfig result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.ces.v1.EndUserAuthConfig result) { + result.authConfigCase_ = authConfigCase_; + result.authConfig_ = this.authConfig_; + if (authConfigCase_ == 2 && oauth2AuthCodeConfigBuilder_ != null) { + result.authConfig_ = oauth2AuthCodeConfigBuilder_.build(); + } + if (authConfigCase_ == 3 && oauth2JwtBearerConfigBuilder_ != null) { + result.authConfig_ = oauth2JwtBearerConfigBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.EndUserAuthConfig) { + return mergeFrom((com.google.cloud.ces.v1.EndUserAuthConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.EndUserAuthConfig other) { + if (other == com.google.cloud.ces.v1.EndUserAuthConfig.getDefaultInstance()) return this; + switch (other.getAuthConfigCase()) { + case OAUTH2_AUTH_CODE_CONFIG: + { + mergeOauth2AuthCodeConfig(other.getOauth2AuthCodeConfig()); + break; + } + case OAUTH2_JWT_BEARER_CONFIG: + { + mergeOauth2JwtBearerConfig(other.getOauth2JwtBearerConfig()); + break; + } + case AUTHCONFIG_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + input.readMessage( + internalGetOauth2AuthCodeConfigFieldBuilder().getBuilder(), extensionRegistry); + authConfigCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetOauth2JwtBearerConfigFieldBuilder().getBuilder(), extensionRegistry); + authConfigCase_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int authConfigCase_ = 0; + private java.lang.Object authConfig_; + + public AuthConfigCase getAuthConfigCase() { + return AuthConfigCase.forNumber(authConfigCase_); + } + + public Builder clearAuthConfig() { + authConfigCase_ = 0; + authConfig_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig, + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig.Builder, + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfigOrBuilder> + oauth2AuthCodeConfigBuilder_; + + /** + * + * + *
      +     * Oauth 2.0 Authorization Code authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig oauth2_auth_code_config = 2; + * + * + * @return Whether the oauth2AuthCodeConfig field is set. + */ + @java.lang.Override + public boolean hasOauth2AuthCodeConfig() { + return authConfigCase_ == 2; + } + + /** + * + * + *
      +     * Oauth 2.0 Authorization Code authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig oauth2_auth_code_config = 2; + * + * + * @return The oauth2AuthCodeConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig + getOauth2AuthCodeConfig() { + if (oauth2AuthCodeConfigBuilder_ == null) { + if (authConfigCase_ == 2) { + return (com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig) authConfig_; + } + return com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig.getDefaultInstance(); + } else { + if (authConfigCase_ == 2) { + return oauth2AuthCodeConfigBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Oauth 2.0 Authorization Code authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig oauth2_auth_code_config = 2; + * + */ + public Builder setOauth2AuthCodeConfig( + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig value) { + if (oauth2AuthCodeConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authConfig_ = value; + onChanged(); + } else { + oauth2AuthCodeConfigBuilder_.setMessage(value); + } + authConfigCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Oauth 2.0 Authorization Code authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig oauth2_auth_code_config = 2; + * + */ + public Builder setOauth2AuthCodeConfig( + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig.Builder builderForValue) { + if (oauth2AuthCodeConfigBuilder_ == null) { + authConfig_ = builderForValue.build(); + onChanged(); + } else { + oauth2AuthCodeConfigBuilder_.setMessage(builderForValue.build()); + } + authConfigCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Oauth 2.0 Authorization Code authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig oauth2_auth_code_config = 2; + * + */ + public Builder mergeOauth2AuthCodeConfig( + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig value) { + if (oauth2AuthCodeConfigBuilder_ == null) { + if (authConfigCase_ == 2 + && authConfig_ + != com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig + .getDefaultInstance()) { + authConfig_ = + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig.newBuilder( + (com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig) authConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + authConfig_ = value; + } + onChanged(); + } else { + if (authConfigCase_ == 2) { + oauth2AuthCodeConfigBuilder_.mergeFrom(value); + } else { + oauth2AuthCodeConfigBuilder_.setMessage(value); + } + } + authConfigCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Oauth 2.0 Authorization Code authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig oauth2_auth_code_config = 2; + * + */ + public Builder clearOauth2AuthCodeConfig() { + if (oauth2AuthCodeConfigBuilder_ == null) { + if (authConfigCase_ == 2) { + authConfigCase_ = 0; + authConfig_ = null; + onChanged(); + } + } else { + if (authConfigCase_ == 2) { + authConfigCase_ = 0; + authConfig_ = null; + } + oauth2AuthCodeConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Oauth 2.0 Authorization Code authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig oauth2_auth_code_config = 2; + * + */ + public com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig.Builder + getOauth2AuthCodeConfigBuilder() { + return internalGetOauth2AuthCodeConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Oauth 2.0 Authorization Code authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig oauth2_auth_code_config = 2; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfigOrBuilder + getOauth2AuthCodeConfigOrBuilder() { + if ((authConfigCase_ == 2) && (oauth2AuthCodeConfigBuilder_ != null)) { + return oauth2AuthCodeConfigBuilder_.getMessageOrBuilder(); + } else { + if (authConfigCase_ == 2) { + return (com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig) authConfig_; + } + return com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Oauth 2.0 Authorization Code authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig oauth2_auth_code_config = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig, + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig.Builder, + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfigOrBuilder> + internalGetOauth2AuthCodeConfigFieldBuilder() { + if (oauth2AuthCodeConfigBuilder_ == null) { + if (!(authConfigCase_ == 2)) { + authConfig_ = + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig.getDefaultInstance(); + } + oauth2AuthCodeConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig, + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig.Builder, + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfigOrBuilder>( + (com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig) authConfig_, + getParentForChildren(), + isClean()); + authConfig_ = null; + } + authConfigCase_ = 2; + onChanged(); + return oauth2AuthCodeConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig, + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig.Builder, + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfigOrBuilder> + oauth2JwtBearerConfigBuilder_; + + /** + * + * + *
      +     * JWT Profile Oauth 2.0 Authorization Grant authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig oauth2_jwt_bearer_config = 3; + * + * + * @return Whether the oauth2JwtBearerConfig field is set. + */ + @java.lang.Override + public boolean hasOauth2JwtBearerConfig() { + return authConfigCase_ == 3; + } + + /** + * + * + *
      +     * JWT Profile Oauth 2.0 Authorization Grant authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig oauth2_jwt_bearer_config = 3; + * + * + * @return The oauth2JwtBearerConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig + getOauth2JwtBearerConfig() { + if (oauth2JwtBearerConfigBuilder_ == null) { + if (authConfigCase_ == 3) { + return (com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig) authConfig_; + } + return com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig.getDefaultInstance(); + } else { + if (authConfigCase_ == 3) { + return oauth2JwtBearerConfigBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * JWT Profile Oauth 2.0 Authorization Grant authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig oauth2_jwt_bearer_config = 3; + * + */ + public Builder setOauth2JwtBearerConfig( + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig value) { + if (oauth2JwtBearerConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authConfig_ = value; + onChanged(); + } else { + oauth2JwtBearerConfigBuilder_.setMessage(value); + } + authConfigCase_ = 3; + return this; + } + + /** + * + * + *
      +     * JWT Profile Oauth 2.0 Authorization Grant authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig oauth2_jwt_bearer_config = 3; + * + */ + public Builder setOauth2JwtBearerConfig( + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig.Builder builderForValue) { + if (oauth2JwtBearerConfigBuilder_ == null) { + authConfig_ = builderForValue.build(); + onChanged(); + } else { + oauth2JwtBearerConfigBuilder_.setMessage(builderForValue.build()); + } + authConfigCase_ = 3; + return this; + } + + /** + * + * + *
      +     * JWT Profile Oauth 2.0 Authorization Grant authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig oauth2_jwt_bearer_config = 3; + * + */ + public Builder mergeOauth2JwtBearerConfig( + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig value) { + if (oauth2JwtBearerConfigBuilder_ == null) { + if (authConfigCase_ == 3 + && authConfig_ + != com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig + .getDefaultInstance()) { + authConfig_ = + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig.newBuilder( + (com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig) authConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + authConfig_ = value; + } + onChanged(); + } else { + if (authConfigCase_ == 3) { + oauth2JwtBearerConfigBuilder_.mergeFrom(value); + } else { + oauth2JwtBearerConfigBuilder_.setMessage(value); + } + } + authConfigCase_ = 3; + return this; + } + + /** + * + * + *
      +     * JWT Profile Oauth 2.0 Authorization Grant authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig oauth2_jwt_bearer_config = 3; + * + */ + public Builder clearOauth2JwtBearerConfig() { + if (oauth2JwtBearerConfigBuilder_ == null) { + if (authConfigCase_ == 3) { + authConfigCase_ = 0; + authConfig_ = null; + onChanged(); + } + } else { + if (authConfigCase_ == 3) { + authConfigCase_ = 0; + authConfig_ = null; + } + oauth2JwtBearerConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * JWT Profile Oauth 2.0 Authorization Grant authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig oauth2_jwt_bearer_config = 3; + * + */ + public com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig.Builder + getOauth2JwtBearerConfigBuilder() { + return internalGetOauth2JwtBearerConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * JWT Profile Oauth 2.0 Authorization Grant authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig oauth2_jwt_bearer_config = 3; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfigOrBuilder + getOauth2JwtBearerConfigOrBuilder() { + if ((authConfigCase_ == 3) && (oauth2JwtBearerConfigBuilder_ != null)) { + return oauth2JwtBearerConfigBuilder_.getMessageOrBuilder(); + } else { + if (authConfigCase_ == 3) { + return (com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig) authConfig_; + } + return com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * JWT Profile Oauth 2.0 Authorization Grant authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig oauth2_jwt_bearer_config = 3; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig, + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig.Builder, + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfigOrBuilder> + internalGetOauth2JwtBearerConfigFieldBuilder() { + if (oauth2JwtBearerConfigBuilder_ == null) { + if (!(authConfigCase_ == 3)) { + authConfig_ = + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig.getDefaultInstance(); + } + oauth2JwtBearerConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig, + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig.Builder, + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfigOrBuilder>( + (com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig) authConfig_, + getParentForChildren(), + isClean()); + authConfig_ = null; + } + authConfigCase_ = 3; + onChanged(); + return oauth2JwtBearerConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.EndUserAuthConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.EndUserAuthConfig) + private static final com.google.cloud.ces.v1.EndUserAuthConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.EndUserAuthConfig(); + } + + public static com.google.cloud.ces.v1.EndUserAuthConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EndUserAuthConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.EndUserAuthConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EndUserAuthConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EndUserAuthConfigOrBuilder.java new file mode 100644 index 000000000000..41756cf1f029 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EndUserAuthConfigOrBuilder.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/auth.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface EndUserAuthConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.EndUserAuthConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Oauth 2.0 Authorization Code authentication.
      +   * 
      + * + * .google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig oauth2_auth_code_config = 2; + * + * + * @return Whether the oauth2AuthCodeConfig field is set. + */ + boolean hasOauth2AuthCodeConfig(); + + /** + * + * + *
      +   * Oauth 2.0 Authorization Code authentication.
      +   * 
      + * + * .google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig oauth2_auth_code_config = 2; + * + * + * @return The oauth2AuthCodeConfig. + */ + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig getOauth2AuthCodeConfig(); + + /** + * + * + *
      +   * Oauth 2.0 Authorization Code authentication.
      +   * 
      + * + * .google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfig oauth2_auth_code_config = 2; + * + */ + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2AuthCodeConfigOrBuilder + getOauth2AuthCodeConfigOrBuilder(); + + /** + * + * + *
      +   * JWT Profile Oauth 2.0 Authorization Grant authentication.
      +   * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig oauth2_jwt_bearer_config = 3; + * + * + * @return Whether the oauth2JwtBearerConfig field is set. + */ + boolean hasOauth2JwtBearerConfig(); + + /** + * + * + *
      +   * JWT Profile Oauth 2.0 Authorization Grant authentication.
      +   * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig oauth2_jwt_bearer_config = 3; + * + * + * @return The oauth2JwtBearerConfig. + */ + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig getOauth2JwtBearerConfig(); + + /** + * + * + *
      +   * JWT Profile Oauth 2.0 Authorization Grant authentication.
      +   * 
      + * + * + * .google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfig oauth2_jwt_bearer_config = 3; + * + */ + com.google.cloud.ces.v1.EndUserAuthConfig.Oauth2JwtBearerConfigOrBuilder + getOauth2JwtBearerConfigOrBuilder(); + + com.google.cloud.ces.v1.EndUserAuthConfig.AuthConfigCase getAuthConfigCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EvaluationMetricsThresholds.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EvaluationMetricsThresholds.java new file mode 100644 index 000000000000..3830c9df095c --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EvaluationMetricsThresholds.java @@ -0,0 +1,5953 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Threshold settings for metrics in an Evaluation.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.EvaluationMetricsThresholds} + */ +@com.google.protobuf.Generated +public final class EvaluationMetricsThresholds extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.EvaluationMetricsThresholds) + EvaluationMetricsThresholdsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EvaluationMetricsThresholds"); + } + + // Use EvaluationMetricsThresholds.newBuilder() to construct. + private EvaluationMetricsThresholds(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private EvaluationMetricsThresholds() { + hallucinationMetricBehavior_ = 0; + goldenHallucinationMetricBehavior_ = 0; + scenarioHallucinationMetricBehavior_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.class, + com.google.cloud.ces.v1.EvaluationMetricsThresholds.Builder.class); + } + + /** + * + * + *
      +   * The hallucination metric behavior. Regardless of the behavior, the metric
      +   * will always be calculated. The difference is that when disabled, the
      +   * metric is not used to calculate the overall evaluation score.
      +   * 
      + * + * Protobuf enum {@code + * google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior} + */ + public enum HallucinationMetricBehavior implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Unspecified hallucination metric behavior.
      +     * 
      + * + * HALLUCINATION_METRIC_BEHAVIOR_UNSPECIFIED = 0; + */ + HALLUCINATION_METRIC_BEHAVIOR_UNSPECIFIED(0), + /** + * + * + *
      +     * Disable hallucination metric.
      +     * 
      + * + * DISABLED = 1; + */ + DISABLED(1), + /** + * + * + *
      +     * Enable hallucination metric.
      +     * 
      + * + * ENABLED = 2; + */ + ENABLED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "HallucinationMetricBehavior"); + } + + /** + * + * + *
      +     * Unspecified hallucination metric behavior.
      +     * 
      + * + * HALLUCINATION_METRIC_BEHAVIOR_UNSPECIFIED = 0; + */ + public static final int HALLUCINATION_METRIC_BEHAVIOR_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * Disable hallucination metric.
      +     * 
      + * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + + /** + * + * + *
      +     * Enable hallucination metric.
      +     * 
      + * + * ENABLED = 2; + */ + public static final int ENABLED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static HallucinationMetricBehavior valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static HallucinationMetricBehavior forNumber(int value) { + switch (value) { + case 0: + return HALLUCINATION_METRIC_BEHAVIOR_UNSPECIFIED; + case 1: + return DISABLED; + case 2: + return ENABLED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HallucinationMetricBehavior findValueByNumber(int number) { + return HallucinationMetricBehavior.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.EvaluationMetricsThresholds.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final HallucinationMetricBehavior[] VALUES = values(); + + public static HallucinationMetricBehavior valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private HallucinationMetricBehavior(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior) + } + + public interface GoldenEvaluationMetricsThresholdsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Optional. The turn level metrics thresholds.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds turn_level_metrics_thresholds = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the turnLevelMetricsThresholds field is set. + */ + boolean hasTurnLevelMetricsThresholds(); + + /** + * + * + *
      +     * Optional. The turn level metrics thresholds.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds turn_level_metrics_thresholds = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The turnLevelMetricsThresholds. + */ + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds + getTurnLevelMetricsThresholds(); + + /** + * + * + *
      +     * Optional. The turn level metrics thresholds.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds turn_level_metrics_thresholds = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholdsOrBuilder + getTurnLevelMetricsThresholdsOrBuilder(); + + /** + * + * + *
      +     * Optional. The expectation level metrics thresholds.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds expectation_level_metrics_thresholds = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the expectationLevelMetricsThresholds field is set. + */ + boolean hasExpectationLevelMetricsThresholds(); + + /** + * + * + *
      +     * Optional. The expectation level metrics thresholds.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds expectation_level_metrics_thresholds = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The expectationLevelMetricsThresholds. + */ + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .ExpectationLevelMetricsThresholds + getExpectationLevelMetricsThresholds(); + + /** + * + * + *
      +     * Optional. The expectation level metrics thresholds.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds expectation_level_metrics_thresholds = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .ExpectationLevelMetricsThresholdsOrBuilder + getExpectationLevelMetricsThresholdsOrBuilder(); + + /** + * + * + *
      +     * Optional. The tool matching settings. An
      +     * extra tool call is a tool call that is present in the execution but does
      +     * not match any tool call in the golden expectation.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings tool_matching_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolMatchingSettings field is set. + */ + boolean hasToolMatchingSettings(); + + /** + * + * + *
      +     * Optional. The tool matching settings. An
      +     * extra tool call is a tool call that is present in the execution but does
      +     * not match any tool call in the golden expectation.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings tool_matching_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolMatchingSettings. + */ + com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + getToolMatchingSettings(); + + /** + * + * + *
      +     * Optional. The tool matching settings. An
      +     * extra tool call is a tool call that is present in the execution but does
      +     * not match any tool call in the golden expectation.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings tool_matching_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettingsOrBuilder + getToolMatchingSettingsOrBuilder(); + } + + /** + * + * + *
      +   * Settings for golden evaluations.
      +   * 
      + * + * Protobuf type {@code + * google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds} + */ + public static final class GoldenEvaluationMetricsThresholds + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds) + GoldenEvaluationMetricsThresholdsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GoldenEvaluationMetricsThresholds"); + } + + // Use GoldenEvaluationMetricsThresholds.newBuilder() to construct. + private GoldenEvaluationMetricsThresholds( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GoldenEvaluationMetricsThresholds() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_GoldenEvaluationMetricsThresholds_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_GoldenEvaluationMetricsThresholds_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .class, + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .Builder.class); + } + + public interface TurnLevelMetricsThresholdsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +       * Optional. The success threshold for semantic similarity. Must be an
      +       * integer between 0 and 4. Default is >= 3.
      +       * 
      + * + * + * optional int32 semantic_similarity_success_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the semanticSimilaritySuccessThreshold field is set. + */ + boolean hasSemanticSimilaritySuccessThreshold(); + + /** + * + * + *
      +       * Optional. The success threshold for semantic similarity. Must be an
      +       * integer between 0 and 4. Default is >= 3.
      +       * 
      + * + * + * optional int32 semantic_similarity_success_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The semanticSimilaritySuccessThreshold. + */ + int getSemanticSimilaritySuccessThreshold(); + + /** + * + * + *
      +       * Optional. The success threshold for overall tool invocation
      +       * correctness. Must be a float between 0 and 1. Default is 1.0.
      +       * 
      + * + * + * optional float overall_tool_invocation_correctness_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the overallToolInvocationCorrectnessThreshold field is set. + */ + boolean hasOverallToolInvocationCorrectnessThreshold(); + + /** + * + * + *
      +       * Optional. The success threshold for overall tool invocation
      +       * correctness. Must be a float between 0 and 1. Default is 1.0.
      +       * 
      + * + * + * optional float overall_tool_invocation_correctness_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The overallToolInvocationCorrectnessThreshold. + */ + float getOverallToolInvocationCorrectnessThreshold(); + + /** + * + * + *
      +       * Optional. The semantic similarity channel to use for evaluation.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds.SemanticSimilarityChannel semantic_similarity_channel = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for semanticSimilarityChannel. + */ + int getSemanticSimilarityChannelValue(); + + /** + * + * + *
      +       * Optional. The semantic similarity channel to use for evaluation.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds.SemanticSimilarityChannel semantic_similarity_channel = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The semanticSimilarityChannel. + */ + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds.SemanticSimilarityChannel + getSemanticSimilarityChannel(); + } + + /** + * + * + *
      +     * Turn level metrics thresholds.
      +     * 
      + * + * Protobuf type {@code + * google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds} + */ + public static final class TurnLevelMetricsThresholds + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds) + TurnLevelMetricsThresholdsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TurnLevelMetricsThresholds"); + } + + // Use TurnLevelMetricsThresholds.newBuilder() to construct. + private TurnLevelMetricsThresholds(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TurnLevelMetricsThresholds() { + semanticSimilarityChannel_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_GoldenEvaluationMetricsThresholds_TurnLevelMetricsThresholds_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_GoldenEvaluationMetricsThresholds_TurnLevelMetricsThresholds_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds.class, + com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds.Builder.class); + } + + /** + * + * + *
      +       * Semantic similarity channel to use.
      +       * 
      + * + * Protobuf enum {@code + * google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds.SemanticSimilarityChannel} + */ + public enum SemanticSimilarityChannel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +         * Metric unspecified. Defaults to TEXT.
      +         * 
      + * + * SEMANTIC_SIMILARITY_CHANNEL_UNSPECIFIED = 0; + */ + SEMANTIC_SIMILARITY_CHANNEL_UNSPECIFIED(0), + /** + * + * + *
      +         * Use text semantic similarity.
      +         * 
      + * + * TEXT = 1; + */ + TEXT(1), + /** + * + * + *
      +         * Use audio semantic similarity.
      +         * 
      + * + * AUDIO = 2; + */ + AUDIO(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SemanticSimilarityChannel"); + } + + /** + * + * + *
      +         * Metric unspecified. Defaults to TEXT.
      +         * 
      + * + * SEMANTIC_SIMILARITY_CHANNEL_UNSPECIFIED = 0; + */ + public static final int SEMANTIC_SIMILARITY_CHANNEL_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +         * Use text semantic similarity.
      +         * 
      + * + * TEXT = 1; + */ + public static final int TEXT_VALUE = 1; + + /** + * + * + *
      +         * Use audio semantic similarity.
      +         * 
      + * + * AUDIO = 2; + */ + public static final int AUDIO_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SemanticSimilarityChannel valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SemanticSimilarityChannel forNumber(int value) { + switch (value) { + case 0: + return SEMANTIC_SIMILARITY_CHANNEL_UNSPECIFIED; + case 1: + return TEXT; + case 2: + return AUDIO; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SemanticSimilarityChannel findValueByNumber(int number) { + return SemanticSimilarityChannel.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final SemanticSimilarityChannel[] VALUES = values(); + + public static SemanticSimilarityChannel valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SemanticSimilarityChannel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds.SemanticSimilarityChannel) + } + + private int bitField0_; + public static final int SEMANTIC_SIMILARITY_SUCCESS_THRESHOLD_FIELD_NUMBER = 1; + private int semanticSimilaritySuccessThreshold_ = 0; + + /** + * + * + *
      +       * Optional. The success threshold for semantic similarity. Must be an
      +       * integer between 0 and 4. Default is >= 3.
      +       * 
      + * + * + * optional int32 semantic_similarity_success_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the semanticSimilaritySuccessThreshold field is set. + */ + @java.lang.Override + public boolean hasSemanticSimilaritySuccessThreshold() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +       * Optional. The success threshold for semantic similarity. Must be an
      +       * integer between 0 and 4. Default is >= 3.
      +       * 
      + * + * + * optional int32 semantic_similarity_success_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The semanticSimilaritySuccessThreshold. + */ + @java.lang.Override + public int getSemanticSimilaritySuccessThreshold() { + return semanticSimilaritySuccessThreshold_; + } + + public static final int OVERALL_TOOL_INVOCATION_CORRECTNESS_THRESHOLD_FIELD_NUMBER = 2; + private float overallToolInvocationCorrectnessThreshold_ = 0F; + + /** + * + * + *
      +       * Optional. The success threshold for overall tool invocation
      +       * correctness. Must be a float between 0 and 1. Default is 1.0.
      +       * 
      + * + * + * optional float overall_tool_invocation_correctness_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the overallToolInvocationCorrectnessThreshold field is set. + */ + @java.lang.Override + public boolean hasOverallToolInvocationCorrectnessThreshold() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +       * Optional. The success threshold for overall tool invocation
      +       * correctness. Must be a float between 0 and 1. Default is 1.0.
      +       * 
      + * + * + * optional float overall_tool_invocation_correctness_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The overallToolInvocationCorrectnessThreshold. + */ + @java.lang.Override + public float getOverallToolInvocationCorrectnessThreshold() { + return overallToolInvocationCorrectnessThreshold_; + } + + public static final int SEMANTIC_SIMILARITY_CHANNEL_FIELD_NUMBER = 3; + private int semanticSimilarityChannel_ = 0; + + /** + * + * + *
      +       * Optional. The semantic similarity channel to use for evaluation.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds.SemanticSimilarityChannel semantic_similarity_channel = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for semanticSimilarityChannel. + */ + @java.lang.Override + public int getSemanticSimilarityChannelValue() { + return semanticSimilarityChannel_; + } + + /** + * + * + *
      +       * Optional. The semantic similarity channel to use for evaluation.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds.SemanticSimilarityChannel semantic_similarity_channel = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The semanticSimilarityChannel. + */ + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds.SemanticSimilarityChannel + getSemanticSimilarityChannel() { + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds.SemanticSimilarityChannel + result = + com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds + .SemanticSimilarityChannel.forNumber(semanticSimilarityChannel_); + return result == null + ? com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds.SemanticSimilarityChannel.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(1, semanticSimilaritySuccessThreshold_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeFloat(2, overallToolInvocationCorrectnessThreshold_); + } + if (semanticSimilarityChannel_ + != com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds.SemanticSimilarityChannel + .SEMANTIC_SIMILARITY_CHANNEL_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, semanticSimilarityChannel_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 1, semanticSimilaritySuccessThreshold_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeFloatSize( + 2, overallToolInvocationCorrectnessThreshold_); + } + if (semanticSimilarityChannel_ + != com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds.SemanticSimilarityChannel + .SEMANTIC_SIMILARITY_CHANNEL_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(3, semanticSimilarityChannel_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds + other = + (com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds) + obj; + + if (hasSemanticSimilaritySuccessThreshold() + != other.hasSemanticSimilaritySuccessThreshold()) return false; + if (hasSemanticSimilaritySuccessThreshold()) { + if (getSemanticSimilaritySuccessThreshold() + != other.getSemanticSimilaritySuccessThreshold()) return false; + } + if (hasOverallToolInvocationCorrectnessThreshold() + != other.hasOverallToolInvocationCorrectnessThreshold()) return false; + if (hasOverallToolInvocationCorrectnessThreshold()) { + if (java.lang.Float.floatToIntBits(getOverallToolInvocationCorrectnessThreshold()) + != java.lang.Float.floatToIntBits( + other.getOverallToolInvocationCorrectnessThreshold())) return false; + } + if (semanticSimilarityChannel_ != other.semanticSimilarityChannel_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSemanticSimilaritySuccessThreshold()) { + hash = (37 * hash) + SEMANTIC_SIMILARITY_SUCCESS_THRESHOLD_FIELD_NUMBER; + hash = (53 * hash) + getSemanticSimilaritySuccessThreshold(); + } + if (hasOverallToolInvocationCorrectnessThreshold()) { + hash = (37 * hash) + OVERALL_TOOL_INVOCATION_CORRECTNESS_THRESHOLD_FIELD_NUMBER; + hash = + (53 * hash) + + java.lang.Float.floatToIntBits(getOverallToolInvocationCorrectnessThreshold()); + } + hash = (37 * hash) + SEMANTIC_SIMILARITY_CHANNEL_FIELD_NUMBER; + hash = (53 * hash) + semanticSimilarityChannel_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +       * Turn level metrics thresholds.
      +       * 
      + * + * Protobuf type {@code + * google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds) + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholdsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_GoldenEvaluationMetricsThresholds_TurnLevelMetricsThresholds_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_GoldenEvaluationMetricsThresholds_TurnLevelMetricsThresholds_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds.class, + com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds.Builder.class); + } + + // Construct using + // com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + semanticSimilaritySuccessThreshold_ = 0; + overallToolInvocationCorrectnessThreshold_ = 0F; + semanticSimilarityChannel_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_GoldenEvaluationMetricsThresholds_TurnLevelMetricsThresholds_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds + getDefaultInstanceForType() { + return com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds + build() { + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds + buildPartial() { + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds + result = + new com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.semanticSimilaritySuccessThreshold_ = semanticSimilaritySuccessThreshold_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.overallToolInvocationCorrectnessThreshold_ = + overallToolInvocationCorrectnessThreshold_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.semanticSimilarityChannel_ = semanticSimilarityChannel_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds) { + return mergeFrom( + (com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds + other) { + if (other + == com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds + .getDefaultInstance()) return this; + if (other.hasSemanticSimilaritySuccessThreshold()) { + setSemanticSimilaritySuccessThreshold(other.getSemanticSimilaritySuccessThreshold()); + } + if (other.hasOverallToolInvocationCorrectnessThreshold()) { + setOverallToolInvocationCorrectnessThreshold( + other.getOverallToolInvocationCorrectnessThreshold()); + } + if (other.semanticSimilarityChannel_ != 0) { + setSemanticSimilarityChannelValue(other.getSemanticSimilarityChannelValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + semanticSimilaritySuccessThreshold_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 21: + { + overallToolInvocationCorrectnessThreshold_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + case 24: + { + semanticSimilarityChannel_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int semanticSimilaritySuccessThreshold_; + + /** + * + * + *
      +         * Optional. The success threshold for semantic similarity. Must be an
      +         * integer between 0 and 4. Default is >= 3.
      +         * 
      + * + * + * optional int32 semantic_similarity_success_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the semanticSimilaritySuccessThreshold field is set. + */ + @java.lang.Override + public boolean hasSemanticSimilaritySuccessThreshold() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +         * Optional. The success threshold for semantic similarity. Must be an
      +         * integer between 0 and 4. Default is >= 3.
      +         * 
      + * + * + * optional int32 semantic_similarity_success_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The semanticSimilaritySuccessThreshold. + */ + @java.lang.Override + public int getSemanticSimilaritySuccessThreshold() { + return semanticSimilaritySuccessThreshold_; + } + + /** + * + * + *
      +         * Optional. The success threshold for semantic similarity. Must be an
      +         * integer between 0 and 4. Default is >= 3.
      +         * 
      + * + * + * optional int32 semantic_similarity_success_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The semanticSimilaritySuccessThreshold to set. + * @return This builder for chaining. + */ + public Builder setSemanticSimilaritySuccessThreshold(int value) { + + semanticSimilaritySuccessThreshold_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +         * Optional. The success threshold for semantic similarity. Must be an
      +         * integer between 0 and 4. Default is >= 3.
      +         * 
      + * + * + * optional int32 semantic_similarity_success_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSemanticSimilaritySuccessThreshold() { + bitField0_ = (bitField0_ & ~0x00000001); + semanticSimilaritySuccessThreshold_ = 0; + onChanged(); + return this; + } + + private float overallToolInvocationCorrectnessThreshold_; + + /** + * + * + *
      +         * Optional. The success threshold for overall tool invocation
      +         * correctness. Must be a float between 0 and 1. Default is 1.0.
      +         * 
      + * + * + * optional float overall_tool_invocation_correctness_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the overallToolInvocationCorrectnessThreshold field is set. + */ + @java.lang.Override + public boolean hasOverallToolInvocationCorrectnessThreshold() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +         * Optional. The success threshold for overall tool invocation
      +         * correctness. Must be a float between 0 and 1. Default is 1.0.
      +         * 
      + * + * + * optional float overall_tool_invocation_correctness_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The overallToolInvocationCorrectnessThreshold. + */ + @java.lang.Override + public float getOverallToolInvocationCorrectnessThreshold() { + return overallToolInvocationCorrectnessThreshold_; + } + + /** + * + * + *
      +         * Optional. The success threshold for overall tool invocation
      +         * correctness. Must be a float between 0 and 1. Default is 1.0.
      +         * 
      + * + * + * optional float overall_tool_invocation_correctness_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The overallToolInvocationCorrectnessThreshold to set. + * @return This builder for chaining. + */ + public Builder setOverallToolInvocationCorrectnessThreshold(float value) { + + overallToolInvocationCorrectnessThreshold_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +         * Optional. The success threshold for overall tool invocation
      +         * correctness. Must be a float between 0 and 1. Default is 1.0.
      +         * 
      + * + * + * optional float overall_tool_invocation_correctness_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearOverallToolInvocationCorrectnessThreshold() { + bitField0_ = (bitField0_ & ~0x00000002); + overallToolInvocationCorrectnessThreshold_ = 0F; + onChanged(); + return this; + } + + private int semanticSimilarityChannel_ = 0; + + /** + * + * + *
      +         * Optional. The semantic similarity channel to use for evaluation.
      +         * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds.SemanticSimilarityChannel semantic_similarity_channel = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for semanticSimilarityChannel. + */ + @java.lang.Override + public int getSemanticSimilarityChannelValue() { + return semanticSimilarityChannel_; + } + + /** + * + * + *
      +         * Optional. The semantic similarity channel to use for evaluation.
      +         * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds.SemanticSimilarityChannel semantic_similarity_channel = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for semanticSimilarityChannel to set. + * @return This builder for chaining. + */ + public Builder setSemanticSimilarityChannelValue(int value) { + semanticSimilarityChannel_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +         * Optional. The semantic similarity channel to use for evaluation.
      +         * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds.SemanticSimilarityChannel semantic_similarity_channel = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The semanticSimilarityChannel. + */ + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds.SemanticSimilarityChannel + getSemanticSimilarityChannel() { + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds.SemanticSimilarityChannel + result = + com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds + .SemanticSimilarityChannel.forNumber(semanticSimilarityChannel_); + return result == null + ? com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds + .SemanticSimilarityChannel.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +         * Optional. The semantic similarity channel to use for evaluation.
      +         * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds.SemanticSimilarityChannel semantic_similarity_channel = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The semanticSimilarityChannel to set. + * @return This builder for chaining. + */ + public Builder setSemanticSimilarityChannel( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds.SemanticSimilarityChannel + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + semanticSimilarityChannel_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +         * Optional. The semantic similarity channel to use for evaluation.
      +         * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds.SemanticSimilarityChannel semantic_similarity_channel = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSemanticSimilarityChannel() { + bitField0_ = (bitField0_ & ~0x00000004); + semanticSimilarityChannel_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds) + private static final com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds(); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TurnLevelMetricsThresholds parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ExpectationLevelMetricsThresholdsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +       * Optional. The success threshold for individual tool invocation
      +       * parameter correctness. Must be a float between 0 and 1. Default is 1.0.
      +       * 
      + * + * + * optional float tool_invocation_parameter_correctness_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolInvocationParameterCorrectnessThreshold field is set. + */ + boolean hasToolInvocationParameterCorrectnessThreshold(); + + /** + * + * + *
      +       * Optional. The success threshold for individual tool invocation
      +       * parameter correctness. Must be a float between 0 and 1. Default is 1.0.
      +       * 
      + * + * + * optional float tool_invocation_parameter_correctness_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolInvocationParameterCorrectnessThreshold. + */ + float getToolInvocationParameterCorrectnessThreshold(); + } + + /** + * + * + *
      +     * Expectation level metrics thresholds.
      +     * 
      + * + * Protobuf type {@code + * google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds} + */ + public static final class ExpectationLevelMetricsThresholds + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds) + ExpectationLevelMetricsThresholdsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExpectationLevelMetricsThresholds"); + } + + // Use ExpectationLevelMetricsThresholds.newBuilder() to construct. + private ExpectationLevelMetricsThresholds( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExpectationLevelMetricsThresholds() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_GoldenEvaluationMetricsThresholds_ExpectationLevelMetricsThresholds_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_GoldenEvaluationMetricsThresholds_ExpectationLevelMetricsThresholds_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds.class, + com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds.Builder + .class); + } + + private int bitField0_; + public static final int TOOL_INVOCATION_PARAMETER_CORRECTNESS_THRESHOLD_FIELD_NUMBER = 1; + private float toolInvocationParameterCorrectnessThreshold_ = 0F; + + /** + * + * + *
      +       * Optional. The success threshold for individual tool invocation
      +       * parameter correctness. Must be a float between 0 and 1. Default is 1.0.
      +       * 
      + * + * + * optional float tool_invocation_parameter_correctness_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolInvocationParameterCorrectnessThreshold field is set. + */ + @java.lang.Override + public boolean hasToolInvocationParameterCorrectnessThreshold() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +       * Optional. The success threshold for individual tool invocation
      +       * parameter correctness. Must be a float between 0 and 1. Default is 1.0.
      +       * 
      + * + * + * optional float tool_invocation_parameter_correctness_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolInvocationParameterCorrectnessThreshold. + */ + @java.lang.Override + public float getToolInvocationParameterCorrectnessThreshold() { + return toolInvocationParameterCorrectnessThreshold_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeFloat(1, toolInvocationParameterCorrectnessThreshold_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeFloatSize( + 1, toolInvocationParameterCorrectnessThreshold_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .ExpectationLevelMetricsThresholds)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .ExpectationLevelMetricsThresholds + other = + (com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds) + obj; + + if (hasToolInvocationParameterCorrectnessThreshold() + != other.hasToolInvocationParameterCorrectnessThreshold()) return false; + if (hasToolInvocationParameterCorrectnessThreshold()) { + if (java.lang.Float.floatToIntBits(getToolInvocationParameterCorrectnessThreshold()) + != java.lang.Float.floatToIntBits( + other.getToolInvocationParameterCorrectnessThreshold())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasToolInvocationParameterCorrectnessThreshold()) { + hash = (37 * hash) + TOOL_INVOCATION_PARAMETER_CORRECTNESS_THRESHOLD_FIELD_NUMBER; + hash = + (53 * hash) + + java.lang.Float.floatToIntBits( + getToolInvocationParameterCorrectnessThreshold()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .ExpectationLevelMetricsThresholds + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +       * Expectation level metrics thresholds.
      +       * 
      + * + * Protobuf type {@code + * google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds) + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .ExpectationLevelMetricsThresholdsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_GoldenEvaluationMetricsThresholds_ExpectationLevelMetricsThresholds_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_GoldenEvaluationMetricsThresholds_ExpectationLevelMetricsThresholds_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds.class, + com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds.Builder + .class); + } + + // Construct using + // com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + toolInvocationParameterCorrectnessThreshold_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_GoldenEvaluationMetricsThresholds_ExpectationLevelMetricsThresholds_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .ExpectationLevelMetricsThresholds + getDefaultInstanceForType() { + return com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .ExpectationLevelMetricsThresholds + build() { + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .ExpectationLevelMetricsThresholds + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .ExpectationLevelMetricsThresholds + buildPartial() { + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .ExpectationLevelMetricsThresholds + result = + new com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .ExpectationLevelMetricsThresholds + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.toolInvocationParameterCorrectnessThreshold_ = + toolInvocationParameterCorrectnessThreshold_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .ExpectationLevelMetricsThresholds) { + return mergeFrom( + (com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .ExpectationLevelMetricsThresholds + other) { + if (other + == com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds + .getDefaultInstance()) return this; + if (other.hasToolInvocationParameterCorrectnessThreshold()) { + setToolInvocationParameterCorrectnessThreshold( + other.getToolInvocationParameterCorrectnessThreshold()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 13: + { + toolInvocationParameterCorrectnessThreshold_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private float toolInvocationParameterCorrectnessThreshold_; + + /** + * + * + *
      +         * Optional. The success threshold for individual tool invocation
      +         * parameter correctness. Must be a float between 0 and 1. Default is 1.0.
      +         * 
      + * + * + * optional float tool_invocation_parameter_correctness_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolInvocationParameterCorrectnessThreshold field is set. + */ + @java.lang.Override + public boolean hasToolInvocationParameterCorrectnessThreshold() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +         * Optional. The success threshold for individual tool invocation
      +         * parameter correctness. Must be a float between 0 and 1. Default is 1.0.
      +         * 
      + * + * + * optional float tool_invocation_parameter_correctness_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolInvocationParameterCorrectnessThreshold. + */ + @java.lang.Override + public float getToolInvocationParameterCorrectnessThreshold() { + return toolInvocationParameterCorrectnessThreshold_; + } + + /** + * + * + *
      +         * Optional. The success threshold for individual tool invocation
      +         * parameter correctness. Must be a float between 0 and 1. Default is 1.0.
      +         * 
      + * + * + * optional float tool_invocation_parameter_correctness_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The toolInvocationParameterCorrectnessThreshold to set. + * @return This builder for chaining. + */ + public Builder setToolInvocationParameterCorrectnessThreshold(float value) { + + toolInvocationParameterCorrectnessThreshold_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +         * Optional. The success threshold for individual tool invocation
      +         * parameter correctness. Must be a float between 0 and 1. Default is 1.0.
      +         * 
      + * + * + * optional float tool_invocation_parameter_correctness_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearToolInvocationParameterCorrectnessThreshold() { + bitField0_ = (bitField0_ & ~0x00000001); + toolInvocationParameterCorrectnessThreshold_ = 0F; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds) + private static final com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds(); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExpectationLevelMetricsThresholds parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .ExpectationLevelMetricsThresholds + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int TURN_LEVEL_METRICS_THRESHOLDS_FIELD_NUMBER = 1; + private com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds + turnLevelMetricsThresholds_; + + /** + * + * + *
      +     * Optional. The turn level metrics thresholds.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds turn_level_metrics_thresholds = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the turnLevelMetricsThresholds field is set. + */ + @java.lang.Override + public boolean hasTurnLevelMetricsThresholds() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Optional. The turn level metrics thresholds.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds turn_level_metrics_thresholds = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The turnLevelMetricsThresholds. + */ + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds + getTurnLevelMetricsThresholds() { + return turnLevelMetricsThresholds_ == null + ? com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds.getDefaultInstance() + : turnLevelMetricsThresholds_; + } + + /** + * + * + *
      +     * Optional. The turn level metrics thresholds.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds turn_level_metrics_thresholds = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholdsOrBuilder + getTurnLevelMetricsThresholdsOrBuilder() { + return turnLevelMetricsThresholds_ == null + ? com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds.getDefaultInstance() + : turnLevelMetricsThresholds_; + } + + public static final int EXPECTATION_LEVEL_METRICS_THRESHOLDS_FIELD_NUMBER = 2; + private com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .ExpectationLevelMetricsThresholds + expectationLevelMetricsThresholds_; + + /** + * + * + *
      +     * Optional. The expectation level metrics thresholds.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds expectation_level_metrics_thresholds = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the expectationLevelMetricsThresholds field is set. + */ + @java.lang.Override + public boolean hasExpectationLevelMetricsThresholds() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Optional. The expectation level metrics thresholds.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds expectation_level_metrics_thresholds = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The expectationLevelMetricsThresholds. + */ + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .ExpectationLevelMetricsThresholds + getExpectationLevelMetricsThresholds() { + return expectationLevelMetricsThresholds_ == null + ? com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .ExpectationLevelMetricsThresholds.getDefaultInstance() + : expectationLevelMetricsThresholds_; + } + + /** + * + * + *
      +     * Optional. The expectation level metrics thresholds.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds expectation_level_metrics_thresholds = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .ExpectationLevelMetricsThresholdsOrBuilder + getExpectationLevelMetricsThresholdsOrBuilder() { + return expectationLevelMetricsThresholds_ == null + ? com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .ExpectationLevelMetricsThresholds.getDefaultInstance() + : expectationLevelMetricsThresholds_; + } + + public static final int TOOL_MATCHING_SETTINGS_FIELD_NUMBER = 3; + private com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + toolMatchingSettings_; + + /** + * + * + *
      +     * Optional. The tool matching settings. An
      +     * extra tool call is a tool call that is present in the execution but does
      +     * not match any tool call in the golden expectation.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings tool_matching_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolMatchingSettings field is set. + */ + @java.lang.Override + public boolean hasToolMatchingSettings() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Optional. The tool matching settings. An
      +     * extra tool call is a tool call that is present in the execution but does
      +     * not match any tool call in the golden expectation.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings tool_matching_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolMatchingSettings. + */ + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + getToolMatchingSettings() { + return toolMatchingSettings_ == null + ? com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + .getDefaultInstance() + : toolMatchingSettings_; + } + + /** + * + * + *
      +     * Optional. The tool matching settings. An
      +     * extra tool call is a tool call that is present in the execution but does
      +     * not match any tool call in the golden expectation.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings tool_matching_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettingsOrBuilder + getToolMatchingSettingsOrBuilder() { + return toolMatchingSettings_ == null + ? com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + .getDefaultInstance() + : toolMatchingSettings_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getTurnLevelMetricsThresholds()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getExpectationLevelMetricsThresholds()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getToolMatchingSettings()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, getTurnLevelMetricsThresholds()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getExpectationLevelMetricsThresholds()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getToolMatchingSettings()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds other = + (com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds) + obj; + + if (hasTurnLevelMetricsThresholds() != other.hasTurnLevelMetricsThresholds()) return false; + if (hasTurnLevelMetricsThresholds()) { + if (!getTurnLevelMetricsThresholds().equals(other.getTurnLevelMetricsThresholds())) + return false; + } + if (hasExpectationLevelMetricsThresholds() != other.hasExpectationLevelMetricsThresholds()) + return false; + if (hasExpectationLevelMetricsThresholds()) { + if (!getExpectationLevelMetricsThresholds() + .equals(other.getExpectationLevelMetricsThresholds())) return false; + } + if (hasToolMatchingSettings() != other.hasToolMatchingSettings()) return false; + if (hasToolMatchingSettings()) { + if (!getToolMatchingSettings().equals(other.getToolMatchingSettings())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTurnLevelMetricsThresholds()) { + hash = (37 * hash) + TURN_LEVEL_METRICS_THRESHOLDS_FIELD_NUMBER; + hash = (53 * hash) + getTurnLevelMetricsThresholds().hashCode(); + } + if (hasExpectationLevelMetricsThresholds()) { + hash = (37 * hash) + EXPECTATION_LEVEL_METRICS_THRESHOLDS_FIELD_NUMBER; + hash = (53 * hash) + getExpectationLevelMetricsThresholds().hashCode(); + } + if (hasToolMatchingSettings()) { + hash = (37 * hash) + TOOL_MATCHING_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getToolMatchingSettings().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Settings for golden evaluations.
      +     * 
      + * + * Protobuf type {@code + * google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds) + com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholdsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_GoldenEvaluationMetricsThresholds_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_GoldenEvaluationMetricsThresholds_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.class, + com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.Builder.class); + } + + // Construct using + // com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetTurnLevelMetricsThresholdsFieldBuilder(); + internalGetExpectationLevelMetricsThresholdsFieldBuilder(); + internalGetToolMatchingSettingsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + turnLevelMetricsThresholds_ = null; + if (turnLevelMetricsThresholdsBuilder_ != null) { + turnLevelMetricsThresholdsBuilder_.dispose(); + turnLevelMetricsThresholdsBuilder_ = null; + } + expectationLevelMetricsThresholds_ = null; + if (expectationLevelMetricsThresholdsBuilder_ != null) { + expectationLevelMetricsThresholdsBuilder_.dispose(); + expectationLevelMetricsThresholdsBuilder_ = null; + } + toolMatchingSettings_ = null; + if (toolMatchingSettingsBuilder_ != null) { + toolMatchingSettingsBuilder_.dispose(); + toolMatchingSettingsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_GoldenEvaluationMetricsThresholds_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + getDefaultInstanceForType() { + return com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + build() { + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + buildPartial() { + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + result = + new com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.turnLevelMetricsThresholds_ = + turnLevelMetricsThresholdsBuilder_ == null + ? turnLevelMetricsThresholds_ + : turnLevelMetricsThresholdsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.expectationLevelMetricsThresholds_ = + expectationLevelMetricsThresholdsBuilder_ == null + ? expectationLevelMetricsThresholds_ + : expectationLevelMetricsThresholdsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.toolMatchingSettings_ = + toolMatchingSettingsBuilder_ == null + ? toolMatchingSettings_ + : toolMatchingSettingsBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds) { + return mergeFrom( + (com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + other) { + if (other + == com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .getDefaultInstance()) return this; + if (other.hasTurnLevelMetricsThresholds()) { + mergeTurnLevelMetricsThresholds(other.getTurnLevelMetricsThresholds()); + } + if (other.hasExpectationLevelMetricsThresholds()) { + mergeExpectationLevelMetricsThresholds(other.getExpectationLevelMetricsThresholds()); + } + if (other.hasToolMatchingSettings()) { + mergeToolMatchingSettings(other.getToolMatchingSettings()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetTurnLevelMetricsThresholdsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetExpectationLevelMetricsThresholdsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetToolMatchingSettingsFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds + turnLevelMetricsThresholds_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds, + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds.Builder, + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholdsOrBuilder> + turnLevelMetricsThresholdsBuilder_; + + /** + * + * + *
      +       * Optional. The turn level metrics thresholds.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds turn_level_metrics_thresholds = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the turnLevelMetricsThresholds field is set. + */ + public boolean hasTurnLevelMetricsThresholds() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +       * Optional. The turn level metrics thresholds.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds turn_level_metrics_thresholds = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The turnLevelMetricsThresholds. + */ + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds + getTurnLevelMetricsThresholds() { + if (turnLevelMetricsThresholdsBuilder_ == null) { + return turnLevelMetricsThresholds_ == null + ? com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds.getDefaultInstance() + : turnLevelMetricsThresholds_; + } else { + return turnLevelMetricsThresholdsBuilder_.getMessage(); + } + } + + /** + * + * + *
      +       * Optional. The turn level metrics thresholds.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds turn_level_metrics_thresholds = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTurnLevelMetricsThresholds( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds + value) { + if (turnLevelMetricsThresholdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + turnLevelMetricsThresholds_ = value; + } else { + turnLevelMetricsThresholdsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The turn level metrics thresholds.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds turn_level_metrics_thresholds = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTurnLevelMetricsThresholds( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds.Builder + builderForValue) { + if (turnLevelMetricsThresholdsBuilder_ == null) { + turnLevelMetricsThresholds_ = builderForValue.build(); + } else { + turnLevelMetricsThresholdsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The turn level metrics thresholds.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds turn_level_metrics_thresholds = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeTurnLevelMetricsThresholds( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds + value) { + if (turnLevelMetricsThresholdsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && turnLevelMetricsThresholds_ != null + && turnLevelMetricsThresholds_ + != com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds + .getDefaultInstance()) { + getTurnLevelMetricsThresholdsBuilder().mergeFrom(value); + } else { + turnLevelMetricsThresholds_ = value; + } + } else { + turnLevelMetricsThresholdsBuilder_.mergeFrom(value); + } + if (turnLevelMetricsThresholds_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +       * Optional. The turn level metrics thresholds.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds turn_level_metrics_thresholds = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTurnLevelMetricsThresholds() { + bitField0_ = (bitField0_ & ~0x00000001); + turnLevelMetricsThresholds_ = null; + if (turnLevelMetricsThresholdsBuilder_ != null) { + turnLevelMetricsThresholdsBuilder_.dispose(); + turnLevelMetricsThresholdsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The turn level metrics thresholds.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds turn_level_metrics_thresholds = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds.Builder + getTurnLevelMetricsThresholdsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetTurnLevelMetricsThresholdsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Optional. The turn level metrics thresholds.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds turn_level_metrics_thresholds = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholdsOrBuilder + getTurnLevelMetricsThresholdsOrBuilder() { + if (turnLevelMetricsThresholdsBuilder_ != null) { + return turnLevelMetricsThresholdsBuilder_.getMessageOrBuilder(); + } else { + return turnLevelMetricsThresholds_ == null + ? com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds.getDefaultInstance() + : turnLevelMetricsThresholds_; + } + } + + /** + * + * + *
      +       * Optional. The turn level metrics thresholds.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds turn_level_metrics_thresholds = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds, + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholds.Builder, + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .TurnLevelMetricsThresholdsOrBuilder> + internalGetTurnLevelMetricsThresholdsFieldBuilder() { + if (turnLevelMetricsThresholdsBuilder_ == null) { + turnLevelMetricsThresholdsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds, + com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds.Builder, + com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholdsOrBuilder>( + getTurnLevelMetricsThresholds(), getParentForChildren(), isClean()); + turnLevelMetricsThresholds_ = null; + } + return turnLevelMetricsThresholdsBuilder_; + } + + private com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .ExpectationLevelMetricsThresholds + expectationLevelMetricsThresholds_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .ExpectationLevelMetricsThresholds, + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .ExpectationLevelMetricsThresholds.Builder, + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .ExpectationLevelMetricsThresholdsOrBuilder> + expectationLevelMetricsThresholdsBuilder_; + + /** + * + * + *
      +       * Optional. The expectation level metrics thresholds.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds expectation_level_metrics_thresholds = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the expectationLevelMetricsThresholds field is set. + */ + public boolean hasExpectationLevelMetricsThresholds() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +       * Optional. The expectation level metrics thresholds.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds expectation_level_metrics_thresholds = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The expectationLevelMetricsThresholds. + */ + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .ExpectationLevelMetricsThresholds + getExpectationLevelMetricsThresholds() { + if (expectationLevelMetricsThresholdsBuilder_ == null) { + return expectationLevelMetricsThresholds_ == null + ? com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds + .getDefaultInstance() + : expectationLevelMetricsThresholds_; + } else { + return expectationLevelMetricsThresholdsBuilder_.getMessage(); + } + } + + /** + * + * + *
      +       * Optional. The expectation level metrics thresholds.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds expectation_level_metrics_thresholds = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExpectationLevelMetricsThresholds( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .ExpectationLevelMetricsThresholds + value) { + if (expectationLevelMetricsThresholdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expectationLevelMetricsThresholds_ = value; + } else { + expectationLevelMetricsThresholdsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The expectation level metrics thresholds.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds expectation_level_metrics_thresholds = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExpectationLevelMetricsThresholds( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .ExpectationLevelMetricsThresholds.Builder + builderForValue) { + if (expectationLevelMetricsThresholdsBuilder_ == null) { + expectationLevelMetricsThresholds_ = builderForValue.build(); + } else { + expectationLevelMetricsThresholdsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The expectation level metrics thresholds.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds expectation_level_metrics_thresholds = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeExpectationLevelMetricsThresholds( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .ExpectationLevelMetricsThresholds + value) { + if (expectationLevelMetricsThresholdsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && expectationLevelMetricsThresholds_ != null + && expectationLevelMetricsThresholds_ + != com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds + .getDefaultInstance()) { + getExpectationLevelMetricsThresholdsBuilder().mergeFrom(value); + } else { + expectationLevelMetricsThresholds_ = value; + } + } else { + expectationLevelMetricsThresholdsBuilder_.mergeFrom(value); + } + if (expectationLevelMetricsThresholds_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +       * Optional. The expectation level metrics thresholds.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds expectation_level_metrics_thresholds = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearExpectationLevelMetricsThresholds() { + bitField0_ = (bitField0_ & ~0x00000002); + expectationLevelMetricsThresholds_ = null; + if (expectationLevelMetricsThresholdsBuilder_ != null) { + expectationLevelMetricsThresholdsBuilder_.dispose(); + expectationLevelMetricsThresholdsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The expectation level metrics thresholds.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds expectation_level_metrics_thresholds = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .ExpectationLevelMetricsThresholds.Builder + getExpectationLevelMetricsThresholdsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetExpectationLevelMetricsThresholdsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Optional. The expectation level metrics thresholds.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds expectation_level_metrics_thresholds = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .ExpectationLevelMetricsThresholdsOrBuilder + getExpectationLevelMetricsThresholdsOrBuilder() { + if (expectationLevelMetricsThresholdsBuilder_ != null) { + return expectationLevelMetricsThresholdsBuilder_.getMessageOrBuilder(); + } else { + return expectationLevelMetricsThresholds_ == null + ? com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds + .getDefaultInstance() + : expectationLevelMetricsThresholds_; + } + } + + /** + * + * + *
      +       * Optional. The expectation level metrics thresholds.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds expectation_level_metrics_thresholds = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .ExpectationLevelMetricsThresholds, + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .ExpectationLevelMetricsThresholds.Builder, + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .ExpectationLevelMetricsThresholdsOrBuilder> + internalGetExpectationLevelMetricsThresholdsFieldBuilder() { + if (expectationLevelMetricsThresholdsBuilder_ == null) { + expectationLevelMetricsThresholdsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds, + com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholds.Builder, + com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds + .ExpectationLevelMetricsThresholdsOrBuilder>( + getExpectationLevelMetricsThresholds(), getParentForChildren(), isClean()); + expectationLevelMetricsThresholds_ = null; + } + return expectationLevelMetricsThresholdsBuilder_; + } + + private com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + toolMatchingSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings, + com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings.Builder, + com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettingsOrBuilder> + toolMatchingSettingsBuilder_; + + /** + * + * + *
      +       * Optional. The tool matching settings. An
      +       * extra tool call is a tool call that is present in the execution but does
      +       * not match any tool call in the golden expectation.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings tool_matching_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolMatchingSettings field is set. + */ + public boolean hasToolMatchingSettings() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +       * Optional. The tool matching settings. An
      +       * extra tool call is a tool call that is present in the execution but does
      +       * not match any tool call in the golden expectation.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings tool_matching_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolMatchingSettings. + */ + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + getToolMatchingSettings() { + if (toolMatchingSettingsBuilder_ == null) { + return toolMatchingSettings_ == null + ? com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + .getDefaultInstance() + : toolMatchingSettings_; + } else { + return toolMatchingSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
      +       * Optional. The tool matching settings. An
      +       * extra tool call is a tool call that is present in the execution but does
      +       * not match any tool call in the golden expectation.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings tool_matching_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolMatchingSettings( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings value) { + if (toolMatchingSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolMatchingSettings_ = value; + } else { + toolMatchingSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The tool matching settings. An
      +       * extra tool call is a tool call that is present in the execution but does
      +       * not match any tool call in the golden expectation.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings tool_matching_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolMatchingSettings( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings.Builder + builderForValue) { + if (toolMatchingSettingsBuilder_ == null) { + toolMatchingSettings_ = builderForValue.build(); + } else { + toolMatchingSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The tool matching settings. An
      +       * extra tool call is a tool call that is present in the execution but does
      +       * not match any tool call in the golden expectation.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings tool_matching_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeToolMatchingSettings( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings value) { + if (toolMatchingSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && toolMatchingSettings_ != null + && toolMatchingSettings_ + != com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + .getDefaultInstance()) { + getToolMatchingSettingsBuilder().mergeFrom(value); + } else { + toolMatchingSettings_ = value; + } + } else { + toolMatchingSettingsBuilder_.mergeFrom(value); + } + if (toolMatchingSettings_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
      +       * Optional. The tool matching settings. An
      +       * extra tool call is a tool call that is present in the execution but does
      +       * not match any tool call in the golden expectation.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings tool_matching_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearToolMatchingSettings() { + bitField0_ = (bitField0_ & ~0x00000004); + toolMatchingSettings_ = null; + if (toolMatchingSettingsBuilder_ != null) { + toolMatchingSettingsBuilder_.dispose(); + toolMatchingSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The tool matching settings. An
      +       * extra tool call is a tool call that is present in the execution but does
      +       * not match any tool call in the golden expectation.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings tool_matching_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings.Builder + getToolMatchingSettingsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetToolMatchingSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Optional. The tool matching settings. An
      +       * extra tool call is a tool call that is present in the execution but does
      +       * not match any tool call in the golden expectation.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings tool_matching_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettingsOrBuilder + getToolMatchingSettingsOrBuilder() { + if (toolMatchingSettingsBuilder_ != null) { + return toolMatchingSettingsBuilder_.getMessageOrBuilder(); + } else { + return toolMatchingSettings_ == null + ? com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + .getDefaultInstance() + : toolMatchingSettings_; + } + } + + /** + * + * + *
      +       * Optional. The tool matching settings. An
      +       * extra tool call is a tool call that is present in the execution but does
      +       * not match any tool call in the golden expectation.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings tool_matching_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings, + com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings.Builder, + com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettingsOrBuilder> + internalGetToolMatchingSettingsFieldBuilder() { + if (toolMatchingSettingsBuilder_ == null) { + toolMatchingSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings, + com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings.Builder, + com.google.cloud.ces.v1.EvaluationMetricsThresholds + .ToolMatchingSettingsOrBuilder>( + getToolMatchingSettings(), getParentForChildren(), isClean()); + toolMatchingSettings_ = null; + } + return toolMatchingSettingsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds) + private static final com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds(); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GoldenEvaluationMetricsThresholds parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ToolMatchingSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Optional. Behavior for extra tool calls.
      +     * Defaults to FAIL.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehavior extra_tool_call_behavior = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for extraToolCallBehavior. + */ + int getExtraToolCallBehaviorValue(); + + /** + * + * + *
      +     * Optional. Behavior for extra tool calls.
      +     * Defaults to FAIL.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehavior extra_tool_call_behavior = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The extraToolCallBehavior. + */ + com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehavior + getExtraToolCallBehavior(); + } + + /** + * + * + *
      +   * Settings for matching tool calls.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings} + */ + public static final class ToolMatchingSettings extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings) + ToolMatchingSettingsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ToolMatchingSettings"); + } + + // Use ToolMatchingSettings.newBuilder() to construct. + private ToolMatchingSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ToolMatchingSettings() { + extraToolCallBehavior_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_ToolMatchingSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_ToolMatchingSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings.class, + com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings.Builder + .class); + } + + /** + * + * + *
      +     * Defines the behavior when an extra tool call is encountered. An extra
      +     * tool call is a tool call that is present in the execution but does not
      +     * match any tool call in the golden expectation.
      +     * 
      + * + * Protobuf enum {@code + * google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehavior} + */ + public enum ExtraToolCallBehavior implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +       * Unspecified behavior. Defaults to FAIL.
      +       * 
      + * + * EXTRA_TOOL_CALL_BEHAVIOR_UNSPECIFIED = 0; + */ + EXTRA_TOOL_CALL_BEHAVIOR_UNSPECIFIED(0), + /** + * + * + *
      +       * Fail the evaluation if an extra tool call is encountered.
      +       * 
      + * + * FAIL = 1; + */ + FAIL(1), + /** + * + * + *
      +       * Allow the extra tool call.
      +       * 
      + * + * ALLOW = 2; + */ + ALLOW(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExtraToolCallBehavior"); + } + + /** + * + * + *
      +       * Unspecified behavior. Defaults to FAIL.
      +       * 
      + * + * EXTRA_TOOL_CALL_BEHAVIOR_UNSPECIFIED = 0; + */ + public static final int EXTRA_TOOL_CALL_BEHAVIOR_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +       * Fail the evaluation if an extra tool call is encountered.
      +       * 
      + * + * FAIL = 1; + */ + public static final int FAIL_VALUE = 1; + + /** + * + * + *
      +       * Allow the extra tool call.
      +       * 
      + * + * ALLOW = 2; + */ + public static final int ALLOW_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ExtraToolCallBehavior valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ExtraToolCallBehavior forNumber(int value) { + switch (value) { + case 0: + return EXTRA_TOOL_CALL_BEHAVIOR_UNSPECIFIED; + case 1: + return FAIL; + case 2: + return ALLOW; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExtraToolCallBehavior findValueByNumber(int number) { + return ExtraToolCallBehavior.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ExtraToolCallBehavior[] VALUES = values(); + + public static ExtraToolCallBehavior valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ExtraToolCallBehavior(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehavior) + } + + public static final int EXTRA_TOOL_CALL_BEHAVIOR_FIELD_NUMBER = 1; + private int extraToolCallBehavior_ = 0; + + /** + * + * + *
      +     * Optional. Behavior for extra tool calls.
      +     * Defaults to FAIL.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehavior extra_tool_call_behavior = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for extraToolCallBehavior. + */ + @java.lang.Override + public int getExtraToolCallBehaviorValue() { + return extraToolCallBehavior_; + } + + /** + * + * + *
      +     * Optional. Behavior for extra tool calls.
      +     * Defaults to FAIL.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehavior extra_tool_call_behavior = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The extraToolCallBehavior. + */ + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + .ExtraToolCallBehavior + getExtraToolCallBehavior() { + com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehavior + result = + com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + .ExtraToolCallBehavior.forNumber(extraToolCallBehavior_); + return result == null + ? com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + .ExtraToolCallBehavior.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (extraToolCallBehavior_ + != com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + .ExtraToolCallBehavior.EXTRA_TOOL_CALL_BEHAVIOR_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, extraToolCallBehavior_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (extraToolCallBehavior_ + != com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + .ExtraToolCallBehavior.EXTRA_TOOL_CALL_BEHAVIOR_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, extraToolCallBehavior_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings other = + (com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings) obj; + + if (extraToolCallBehavior_ != other.extraToolCallBehavior_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + EXTRA_TOOL_CALL_BEHAVIOR_FIELD_NUMBER; + hash = (53 * hash) + extraToolCallBehavior_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Settings for matching tool calls.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings) + com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_ToolMatchingSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_ToolMatchingSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings.class, + com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings.Builder + .class); + } + + // Construct using + // com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + extraToolCallBehavior_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_ToolMatchingSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + getDefaultInstanceForType() { + return com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings build() { + com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + buildPartial() { + com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings result = + new com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.extraToolCallBehavior_ = extraToolCallBehavior_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings) { + return mergeFrom( + (com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings other) { + if (other + == com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + .getDefaultInstance()) return this; + if (other.extraToolCallBehavior_ != 0) { + setExtraToolCallBehaviorValue(other.getExtraToolCallBehaviorValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + extraToolCallBehavior_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int extraToolCallBehavior_ = 0; + + /** + * + * + *
      +       * Optional. Behavior for extra tool calls.
      +       * Defaults to FAIL.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehavior extra_tool_call_behavior = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for extraToolCallBehavior. + */ + @java.lang.Override + public int getExtraToolCallBehaviorValue() { + return extraToolCallBehavior_; + } + + /** + * + * + *
      +       * Optional. Behavior for extra tool calls.
      +       * Defaults to FAIL.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehavior extra_tool_call_behavior = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for extraToolCallBehavior to set. + * @return This builder for chaining. + */ + public Builder setExtraToolCallBehaviorValue(int value) { + extraToolCallBehavior_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. Behavior for extra tool calls.
      +       * Defaults to FAIL.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehavior extra_tool_call_behavior = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The extraToolCallBehavior. + */ + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + .ExtraToolCallBehavior + getExtraToolCallBehavior() { + com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + .ExtraToolCallBehavior + result = + com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + .ExtraToolCallBehavior.forNumber(extraToolCallBehavior_); + return result == null + ? com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + .ExtraToolCallBehavior.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +       * Optional. Behavior for extra tool calls.
      +       * Defaults to FAIL.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehavior extra_tool_call_behavior = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The extraToolCallBehavior to set. + * @return This builder for chaining. + */ + public Builder setExtraToolCallBehavior( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + .ExtraToolCallBehavior + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + extraToolCallBehavior_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. Behavior for extra tool calls.
      +       * Defaults to FAIL.
      +       * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehavior extra_tool_call_behavior = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearExtraToolCallBehavior() { + bitField0_ = (bitField0_ & ~0x00000001); + extraToolCallBehavior_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings) + private static final com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings(); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToolMatchingSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.ToolMatchingSettings + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int GOLDEN_EVALUATION_METRICS_THRESHOLDS_FIELD_NUMBER = 1; + private com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + goldenEvaluationMetricsThresholds_; + + /** + * + * + *
      +   * Optional. The golden evaluation metrics thresholds.
      +   * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds golden_evaluation_metrics_thresholds = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the goldenEvaluationMetricsThresholds field is set. + */ + @java.lang.Override + public boolean hasGoldenEvaluationMetricsThresholds() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Optional. The golden evaluation metrics thresholds.
      +   * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds golden_evaluation_metrics_thresholds = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The goldenEvaluationMetricsThresholds. + */ + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + getGoldenEvaluationMetricsThresholds() { + return goldenEvaluationMetricsThresholds_ == null + ? com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .getDefaultInstance() + : goldenEvaluationMetricsThresholds_; + } + + /** + * + * + *
      +   * Optional. The golden evaluation metrics thresholds.
      +   * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds golden_evaluation_metrics_thresholds = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholdsOrBuilder + getGoldenEvaluationMetricsThresholdsOrBuilder() { + return goldenEvaluationMetricsThresholds_ == null + ? com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .getDefaultInstance() + : goldenEvaluationMetricsThresholds_; + } + + public static final int HALLUCINATION_METRIC_BEHAVIOR_FIELD_NUMBER = 3; + private int hallucinationMetricBehavior_ = 0; + + /** + * + * + *
      +   * Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead.
      +   * The hallucination metric behavior is currently used for golden evaluations.
      +   * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior hallucination_metric_behavior = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is + * deprecated. See google/cloud/ces/v1/app.proto;l=502 + * @return The enum numeric value on the wire for hallucinationMetricBehavior. + */ + @java.lang.Override + @java.lang.Deprecated + public int getHallucinationMetricBehaviorValue() { + return hallucinationMetricBehavior_; + } + + /** + * + * + *
      +   * Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead.
      +   * The hallucination metric behavior is currently used for golden evaluations.
      +   * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior hallucination_metric_behavior = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is + * deprecated. See google/cloud/ces/v1/app.proto;l=502 + * @return The hallucinationMetricBehavior. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior + getHallucinationMetricBehavior() { + com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior result = + com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior.forNumber( + hallucinationMetricBehavior_); + return result == null + ? com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior + .UNRECOGNIZED + : result; + } + + public static final int GOLDEN_HALLUCINATION_METRIC_BEHAVIOR_FIELD_NUMBER = 5; + private int goldenHallucinationMetricBehavior_ = 0; + + /** + * + * + *
      +   * Optional. The hallucination metric behavior for golden evaluations.
      +   * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior golden_hallucination_metric_behavior = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for goldenHallucinationMetricBehavior. + */ + @java.lang.Override + public int getGoldenHallucinationMetricBehaviorValue() { + return goldenHallucinationMetricBehavior_; + } + + /** + * + * + *
      +   * Optional. The hallucination metric behavior for golden evaluations.
      +   * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior golden_hallucination_metric_behavior = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The goldenHallucinationMetricBehavior. + */ + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior + getGoldenHallucinationMetricBehavior() { + com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior result = + com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior.forNumber( + goldenHallucinationMetricBehavior_); + return result == null + ? com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior + .UNRECOGNIZED + : result; + } + + public static final int SCENARIO_HALLUCINATION_METRIC_BEHAVIOR_FIELD_NUMBER = 4; + private int scenarioHallucinationMetricBehavior_ = 0; + + /** + * + * + *
      +   * Optional. The hallucination metric behavior for scenario evaluations.
      +   * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior scenario_hallucination_metric_behavior = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for scenarioHallucinationMetricBehavior. + */ + @java.lang.Override + public int getScenarioHallucinationMetricBehaviorValue() { + return scenarioHallucinationMetricBehavior_; + } + + /** + * + * + *
      +   * Optional. The hallucination metric behavior for scenario evaluations.
      +   * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior scenario_hallucination_metric_behavior = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scenarioHallucinationMetricBehavior. + */ + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior + getScenarioHallucinationMetricBehavior() { + com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior result = + com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior.forNumber( + scenarioHallucinationMetricBehavior_); + return result == null + ? com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior + .UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getGoldenEvaluationMetricsThresholds()); + } + if (hallucinationMetricBehavior_ + != com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior + .HALLUCINATION_METRIC_BEHAVIOR_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, hallucinationMetricBehavior_); + } + if (scenarioHallucinationMetricBehavior_ + != com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior + .HALLUCINATION_METRIC_BEHAVIOR_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, scenarioHallucinationMetricBehavior_); + } + if (goldenHallucinationMetricBehavior_ + != com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior + .HALLUCINATION_METRIC_BEHAVIOR_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, goldenHallucinationMetricBehavior_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, getGoldenEvaluationMetricsThresholds()); + } + if (hallucinationMetricBehavior_ + != com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior + .HALLUCINATION_METRIC_BEHAVIOR_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(3, hallucinationMetricBehavior_); + } + if (scenarioHallucinationMetricBehavior_ + != com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior + .HALLUCINATION_METRIC_BEHAVIOR_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 4, scenarioHallucinationMetricBehavior_); + } + if (goldenHallucinationMetricBehavior_ + != com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior + .HALLUCINATION_METRIC_BEHAVIOR_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 5, goldenHallucinationMetricBehavior_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.EvaluationMetricsThresholds)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.EvaluationMetricsThresholds other = + (com.google.cloud.ces.v1.EvaluationMetricsThresholds) obj; + + if (hasGoldenEvaluationMetricsThresholds() != other.hasGoldenEvaluationMetricsThresholds()) + return false; + if (hasGoldenEvaluationMetricsThresholds()) { + if (!getGoldenEvaluationMetricsThresholds() + .equals(other.getGoldenEvaluationMetricsThresholds())) return false; + } + if (hallucinationMetricBehavior_ != other.hallucinationMetricBehavior_) return false; + if (goldenHallucinationMetricBehavior_ != other.goldenHallucinationMetricBehavior_) + return false; + if (scenarioHallucinationMetricBehavior_ != other.scenarioHallucinationMetricBehavior_) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGoldenEvaluationMetricsThresholds()) { + hash = (37 * hash) + GOLDEN_EVALUATION_METRICS_THRESHOLDS_FIELD_NUMBER; + hash = (53 * hash) + getGoldenEvaluationMetricsThresholds().hashCode(); + } + hash = (37 * hash) + HALLUCINATION_METRIC_BEHAVIOR_FIELD_NUMBER; + hash = (53 * hash) + hallucinationMetricBehavior_; + hash = (37 * hash) + GOLDEN_HALLUCINATION_METRIC_BEHAVIOR_FIELD_NUMBER; + hash = (53 * hash) + goldenHallucinationMetricBehavior_; + hash = (37 * hash) + SCENARIO_HALLUCINATION_METRIC_BEHAVIOR_FIELD_NUMBER; + hash = (53 * hash) + scenarioHallucinationMetricBehavior_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.EvaluationMetricsThresholds prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Threshold settings for metrics in an Evaluation.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.EvaluationMetricsThresholds} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.EvaluationMetricsThresholds) + com.google.cloud.ces.v1.EvaluationMetricsThresholdsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.class, + com.google.cloud.ces.v1.EvaluationMetricsThresholds.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.EvaluationMetricsThresholds.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetGoldenEvaluationMetricsThresholdsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + goldenEvaluationMetricsThresholds_ = null; + if (goldenEvaluationMetricsThresholdsBuilder_ != null) { + goldenEvaluationMetricsThresholdsBuilder_.dispose(); + goldenEvaluationMetricsThresholdsBuilder_ = null; + } + hallucinationMetricBehavior_ = 0; + goldenHallucinationMetricBehavior_ = 0; + scenarioHallucinationMetricBehavior_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_EvaluationMetricsThresholds_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds getDefaultInstanceForType() { + return com.google.cloud.ces.v1.EvaluationMetricsThresholds.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds build() { + com.google.cloud.ces.v1.EvaluationMetricsThresholds result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds buildPartial() { + com.google.cloud.ces.v1.EvaluationMetricsThresholds result = + new com.google.cloud.ces.v1.EvaluationMetricsThresholds(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.EvaluationMetricsThresholds result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.goldenEvaluationMetricsThresholds_ = + goldenEvaluationMetricsThresholdsBuilder_ == null + ? goldenEvaluationMetricsThresholds_ + : goldenEvaluationMetricsThresholdsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.hallucinationMetricBehavior_ = hallucinationMetricBehavior_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.goldenHallucinationMetricBehavior_ = goldenHallucinationMetricBehavior_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.scenarioHallucinationMetricBehavior_ = scenarioHallucinationMetricBehavior_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.EvaluationMetricsThresholds) { + return mergeFrom((com.google.cloud.ces.v1.EvaluationMetricsThresholds) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.EvaluationMetricsThresholds other) { + if (other == com.google.cloud.ces.v1.EvaluationMetricsThresholds.getDefaultInstance()) + return this; + if (other.hasGoldenEvaluationMetricsThresholds()) { + mergeGoldenEvaluationMetricsThresholds(other.getGoldenEvaluationMetricsThresholds()); + } + if (other.hallucinationMetricBehavior_ != 0) { + setHallucinationMetricBehaviorValue(other.getHallucinationMetricBehaviorValue()); + } + if (other.goldenHallucinationMetricBehavior_ != 0) { + setGoldenHallucinationMetricBehaviorValue( + other.getGoldenHallucinationMetricBehaviorValue()); + } + if (other.scenarioHallucinationMetricBehavior_ != 0) { + setScenarioHallucinationMetricBehaviorValue( + other.getScenarioHallucinationMetricBehaviorValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetGoldenEvaluationMetricsThresholdsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 24: + { + hallucinationMetricBehavior_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 32: + { + scenarioHallucinationMetricBehavior_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + goldenHallucinationMetricBehavior_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + goldenEvaluationMetricsThresholds_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds, + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .Builder, + com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholdsOrBuilder> + goldenEvaluationMetricsThresholdsBuilder_; + + /** + * + * + *
      +     * Optional. The golden evaluation metrics thresholds.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds golden_evaluation_metrics_thresholds = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the goldenEvaluationMetricsThresholds field is set. + */ + public boolean hasGoldenEvaluationMetricsThresholds() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Optional. The golden evaluation metrics thresholds.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds golden_evaluation_metrics_thresholds = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The goldenEvaluationMetricsThresholds. + */ + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + getGoldenEvaluationMetricsThresholds() { + if (goldenEvaluationMetricsThresholdsBuilder_ == null) { + return goldenEvaluationMetricsThresholds_ == null + ? com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .getDefaultInstance() + : goldenEvaluationMetricsThresholds_; + } else { + return goldenEvaluationMetricsThresholdsBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. The golden evaluation metrics thresholds.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds golden_evaluation_metrics_thresholds = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGoldenEvaluationMetricsThresholds( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + value) { + if (goldenEvaluationMetricsThresholdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + goldenEvaluationMetricsThresholds_ = value; + } else { + goldenEvaluationMetricsThresholdsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The golden evaluation metrics thresholds.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds golden_evaluation_metrics_thresholds = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGoldenEvaluationMetricsThresholds( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .Builder + builderForValue) { + if (goldenEvaluationMetricsThresholdsBuilder_ == null) { + goldenEvaluationMetricsThresholds_ = builderForValue.build(); + } else { + goldenEvaluationMetricsThresholdsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The golden evaluation metrics thresholds.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds golden_evaluation_metrics_thresholds = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGoldenEvaluationMetricsThresholds( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + value) { + if (goldenEvaluationMetricsThresholdsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && goldenEvaluationMetricsThresholds_ != null + && goldenEvaluationMetricsThresholds_ + != com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.getDefaultInstance()) { + getGoldenEvaluationMetricsThresholdsBuilder().mergeFrom(value); + } else { + goldenEvaluationMetricsThresholds_ = value; + } + } else { + goldenEvaluationMetricsThresholdsBuilder_.mergeFrom(value); + } + if (goldenEvaluationMetricsThresholds_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The golden evaluation metrics thresholds.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds golden_evaluation_metrics_thresholds = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGoldenEvaluationMetricsThresholds() { + bitField0_ = (bitField0_ & ~0x00000001); + goldenEvaluationMetricsThresholds_ = null; + if (goldenEvaluationMetricsThresholdsBuilder_ != null) { + goldenEvaluationMetricsThresholdsBuilder_.dispose(); + goldenEvaluationMetricsThresholdsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The golden evaluation metrics thresholds.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds golden_evaluation_metrics_thresholds = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .Builder + getGoldenEvaluationMetricsThresholdsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetGoldenEvaluationMetricsThresholdsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The golden evaluation metrics thresholds.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds golden_evaluation_metrics_thresholds = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholdsOrBuilder + getGoldenEvaluationMetricsThresholdsOrBuilder() { + if (goldenEvaluationMetricsThresholdsBuilder_ != null) { + return goldenEvaluationMetricsThresholdsBuilder_.getMessageOrBuilder(); + } else { + return goldenEvaluationMetricsThresholds_ == null + ? com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .getDefaultInstance() + : goldenEvaluationMetricsThresholds_; + } + } + + /** + * + * + *
      +     * Optional. The golden evaluation metrics thresholds.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds golden_evaluation_metrics_thresholds = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds, + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + .Builder, + com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholdsOrBuilder> + internalGetGoldenEvaluationMetricsThresholdsFieldBuilder() { + if (goldenEvaluationMetricsThresholdsBuilder_ == null) { + goldenEvaluationMetricsThresholdsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds, + com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholds.Builder, + com.google.cloud.ces.v1.EvaluationMetricsThresholds + .GoldenEvaluationMetricsThresholdsOrBuilder>( + getGoldenEvaluationMetricsThresholds(), getParentForChildren(), isClean()); + goldenEvaluationMetricsThresholds_ = null; + } + return goldenEvaluationMetricsThresholdsBuilder_; + } + + private int hallucinationMetricBehavior_ = 0; + + /** + * + * + *
      +     * Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead.
      +     * The hallucination metric behavior is currently used for golden evaluations.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior hallucination_metric_behavior = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is + * deprecated. See google/cloud/ces/v1/app.proto;l=502 + * @return The enum numeric value on the wire for hallucinationMetricBehavior. + */ + @java.lang.Override + @java.lang.Deprecated + public int getHallucinationMetricBehaviorValue() { + return hallucinationMetricBehavior_; + } + + /** + * + * + *
      +     * Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead.
      +     * The hallucination metric behavior is currently used for golden evaluations.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior hallucination_metric_behavior = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is + * deprecated. See google/cloud/ces/v1/app.proto;l=502 + * @param value The enum numeric value on the wire for hallucinationMetricBehavior to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setHallucinationMetricBehaviorValue(int value) { + hallucinationMetricBehavior_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead.
      +     * The hallucination metric behavior is currently used for golden evaluations.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior hallucination_metric_behavior = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is + * deprecated. See google/cloud/ces/v1/app.proto;l=502 + * @return The hallucinationMetricBehavior. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior + getHallucinationMetricBehavior() { + com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior result = + com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior.forNumber( + hallucinationMetricBehavior_); + return result == null + ? com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior + .UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead.
      +     * The hallucination metric behavior is currently used for golden evaluations.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior hallucination_metric_behavior = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is + * deprecated. See google/cloud/ces/v1/app.proto;l=502 + * @param value The hallucinationMetricBehavior to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setHallucinationMetricBehavior( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + hallucinationMetricBehavior_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead.
      +     * The hallucination metric behavior is currently used for golden evaluations.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior hallucination_metric_behavior = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is + * deprecated. See google/cloud/ces/v1/app.proto;l=502 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearHallucinationMetricBehavior() { + bitField0_ = (bitField0_ & ~0x00000002); + hallucinationMetricBehavior_ = 0; + onChanged(); + return this; + } + + private int goldenHallucinationMetricBehavior_ = 0; + + /** + * + * + *
      +     * Optional. The hallucination metric behavior for golden evaluations.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior golden_hallucination_metric_behavior = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for goldenHallucinationMetricBehavior. + */ + @java.lang.Override + public int getGoldenHallucinationMetricBehaviorValue() { + return goldenHallucinationMetricBehavior_; + } + + /** + * + * + *
      +     * Optional. The hallucination metric behavior for golden evaluations.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior golden_hallucination_metric_behavior = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for goldenHallucinationMetricBehavior to set. + * @return This builder for chaining. + */ + public Builder setGoldenHallucinationMetricBehaviorValue(int value) { + goldenHallucinationMetricBehavior_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The hallucination metric behavior for golden evaluations.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior golden_hallucination_metric_behavior = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The goldenHallucinationMetricBehavior. + */ + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior + getGoldenHallucinationMetricBehavior() { + com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior result = + com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior.forNumber( + goldenHallucinationMetricBehavior_); + return result == null + ? com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior + .UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * Optional. The hallucination metric behavior for golden evaluations.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior golden_hallucination_metric_behavior = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The goldenHallucinationMetricBehavior to set. + * @return This builder for chaining. + */ + public Builder setGoldenHallucinationMetricBehavior( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + goldenHallucinationMetricBehavior_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The hallucination metric behavior for golden evaluations.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior golden_hallucination_metric_behavior = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearGoldenHallucinationMetricBehavior() { + bitField0_ = (bitField0_ & ~0x00000004); + goldenHallucinationMetricBehavior_ = 0; + onChanged(); + return this; + } + + private int scenarioHallucinationMetricBehavior_ = 0; + + /** + * + * + *
      +     * Optional. The hallucination metric behavior for scenario evaluations.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior scenario_hallucination_metric_behavior = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for scenarioHallucinationMetricBehavior. + */ + @java.lang.Override + public int getScenarioHallucinationMetricBehaviorValue() { + return scenarioHallucinationMetricBehavior_; + } + + /** + * + * + *
      +     * Optional. The hallucination metric behavior for scenario evaluations.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior scenario_hallucination_metric_behavior = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for scenarioHallucinationMetricBehavior to + * set. + * @return This builder for chaining. + */ + public Builder setScenarioHallucinationMetricBehaviorValue(int value) { + scenarioHallucinationMetricBehavior_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The hallucination metric behavior for scenario evaluations.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior scenario_hallucination_metric_behavior = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scenarioHallucinationMetricBehavior. + */ + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior + getScenarioHallucinationMetricBehavior() { + com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior result = + com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior.forNumber( + scenarioHallucinationMetricBehavior_); + return result == null + ? com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior + .UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * Optional. The hallucination metric behavior for scenario evaluations.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior scenario_hallucination_metric_behavior = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The scenarioHallucinationMetricBehavior to set. + * @return This builder for chaining. + */ + public Builder setScenarioHallucinationMetricBehavior( + com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + scenarioHallucinationMetricBehavior_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The hallucination metric behavior for scenario evaluations.
      +     * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior scenario_hallucination_metric_behavior = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearScenarioHallucinationMetricBehavior() { + bitField0_ = (bitField0_ & ~0x00000008); + scenarioHallucinationMetricBehavior_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.EvaluationMetricsThresholds) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.EvaluationMetricsThresholds) + private static final com.google.cloud.ces.v1.EvaluationMetricsThresholds DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.EvaluationMetricsThresholds(); + } + + public static com.google.cloud.ces.v1.EvaluationMetricsThresholds getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvaluationMetricsThresholds parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.EvaluationMetricsThresholds getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EvaluationMetricsThresholdsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EvaluationMetricsThresholdsOrBuilder.java new file mode 100644 index 000000000000..045eab77f914 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EvaluationMetricsThresholdsOrBuilder.java @@ -0,0 +1,174 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface EvaluationMetricsThresholdsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.EvaluationMetricsThresholds) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. The golden evaluation metrics thresholds.
      +   * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds golden_evaluation_metrics_thresholds = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the goldenEvaluationMetricsThresholds field is set. + */ + boolean hasGoldenEvaluationMetricsThresholds(); + + /** + * + * + *
      +   * Optional. The golden evaluation metrics thresholds.
      +   * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds golden_evaluation_metrics_thresholds = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The goldenEvaluationMetricsThresholds. + */ + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds + getGoldenEvaluationMetricsThresholds(); + + /** + * + * + *
      +   * Optional. The golden evaluation metrics thresholds.
      +   * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds golden_evaluation_metrics_thresholds = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholdsOrBuilder + getGoldenEvaluationMetricsThresholdsOrBuilder(); + + /** + * + * + *
      +   * Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead.
      +   * The hallucination metric behavior is currently used for golden evaluations.
      +   * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior hallucination_metric_behavior = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is + * deprecated. See google/cloud/ces/v1/app.proto;l=502 + * @return The enum numeric value on the wire for hallucinationMetricBehavior. + */ + @java.lang.Deprecated + int getHallucinationMetricBehaviorValue(); + + /** + * + * + *
      +   * Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead.
      +   * The hallucination metric behavior is currently used for golden evaluations.
      +   * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior hallucination_metric_behavior = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.EvaluationMetricsThresholds.hallucination_metric_behavior is + * deprecated. See google/cloud/ces/v1/app.proto;l=502 + * @return The hallucinationMetricBehavior. + */ + @java.lang.Deprecated + com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior + getHallucinationMetricBehavior(); + + /** + * + * + *
      +   * Optional. The hallucination metric behavior for golden evaluations.
      +   * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior golden_hallucination_metric_behavior = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for goldenHallucinationMetricBehavior. + */ + int getGoldenHallucinationMetricBehaviorValue(); + + /** + * + * + *
      +   * Optional. The hallucination metric behavior for golden evaluations.
      +   * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior golden_hallucination_metric_behavior = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The goldenHallucinationMetricBehavior. + */ + com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior + getGoldenHallucinationMetricBehavior(); + + /** + * + * + *
      +   * Optional. The hallucination metric behavior for scenario evaluations.
      +   * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior scenario_hallucination_metric_behavior = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for scenarioHallucinationMetricBehavior. + */ + int getScenarioHallucinationMetricBehaviorValue(); + + /** + * + * + *
      +   * Optional. The hallucination metric behavior for scenario evaluations.
      +   * 
      + * + * + * .google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior scenario_hallucination_metric_behavior = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scenarioHallucinationMetricBehavior. + */ + com.google.cloud.ces.v1.EvaluationMetricsThresholds.HallucinationMetricBehavior + getScenarioHallucinationMetricBehavior(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Event.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Event.java new file mode 100644 index 000000000000..230ec646fdf7 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Event.java @@ -0,0 +1,590 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Event input.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Event} + */ +@com.google.protobuf.Generated +public final class Event extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.Event) + EventOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Event"); + } + + // Use Event.newBuilder() to construct. + private Event(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Event() { + event_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_Event_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_Event_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Event.class, com.google.cloud.ces.v1.Event.Builder.class); + } + + public static final int EVENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object event_ = ""; + + /** + * + * + *
      +   * Required. The name of the event.
      +   * 
      + * + * string event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The event. + */ + @java.lang.Override + public java.lang.String getEvent() { + java.lang.Object ref = event_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + event_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The name of the event.
      +   * 
      + * + * string event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for event. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEventBytes() { + java.lang.Object ref = event_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + event_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(event_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, event_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(event_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, event_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.Event)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.Event other = (com.google.cloud.ces.v1.Event) obj; + + if (!getEvent().equals(other.getEvent())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + EVENT_FIELD_NUMBER; + hash = (53 * hash) + getEvent().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.Event parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Event parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Event parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Event parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Event parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Event parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Event parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Event parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Event parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Event parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Event parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Event parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.Event prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Event input.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Event} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.Event) + com.google.cloud.ces.v1.EventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_Event_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_Event_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Event.class, com.google.cloud.ces.v1.Event.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.Event.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + event_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_Event_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Event getDefaultInstanceForType() { + return com.google.cloud.ces.v1.Event.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.Event build() { + com.google.cloud.ces.v1.Event result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Event buildPartial() { + com.google.cloud.ces.v1.Event result = new com.google.cloud.ces.v1.Event(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.Event result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.event_ = event_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.Event) { + return mergeFrom((com.google.cloud.ces.v1.Event) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.Event other) { + if (other == com.google.cloud.ces.v1.Event.getDefaultInstance()) return this; + if (!other.getEvent().isEmpty()) { + event_ = other.event_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + event_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object event_ = ""; + + /** + * + * + *
      +     * Required. The name of the event.
      +     * 
      + * + * string event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The event. + */ + public java.lang.String getEvent() { + java.lang.Object ref = event_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + event_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The name of the event.
      +     * 
      + * + * string event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for event. + */ + public com.google.protobuf.ByteString getEventBytes() { + java.lang.Object ref = event_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + event_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The name of the event.
      +     * 
      + * + * string event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The event to set. + * @return This builder for chaining. + */ + public Builder setEvent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + event_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The name of the event.
      +     * 
      + * + * string event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearEvent() { + event_ = getDefaultInstance().getEvent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The name of the event.
      +     * 
      + * + * string event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for event to set. + * @return This builder for chaining. + */ + public Builder setEventBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + event_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Event) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.Event) + private static final com.google.cloud.ces.v1.Event DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.Event(); + } + + public static com.google.cloud.ces.v1.Event getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Event parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Event getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EventOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EventOrBuilder.java new file mode 100644 index 000000000000..31a8ab20c3d6 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/EventOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface EventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.Event) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The name of the event.
      +   * 
      + * + * string event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The event. + */ + java.lang.String getEvent(); + + /** + * + * + *
      +   * Required. The name of the event.
      +   * 
      + * + * string event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for event. + */ + com.google.protobuf.ByteString getEventBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Example.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Example.java new file mode 100644 index 000000000000..95244fdb6bd5 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Example.java @@ -0,0 +1,2676 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/example.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * An example represents a sample conversation between the user and the
      + * agent(s).
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Example} + */ +@com.google.protobuf.Generated +public final class Example extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.Example) + ExampleOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Example"); + } + + // Use Example.newBuilder() to construct. + private Example(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Example() { + name_ = ""; + displayName_ = ""; + description_ = ""; + entryAgent_ = ""; + messages_ = java.util.Collections.emptyList(); + etag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_Example_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_Example_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Example.class, com.google.cloud.ces.v1.Example.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Identifier. The unique identifier of the example.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/examples/{example}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Identifier. The unique identifier of the example.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/examples/{example}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
      +   * Required. Display name of the example.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. Display name of the example.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
      +   * Optional. Human-readable description of the example.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. Human-readable description of the example.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENTRY_AGENT_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object entryAgent_ = ""; + + /** + * + * + *
      +   * Optional. The agent that initially handles the conversation. If not
      +   * specified, the example represents a conversation that is handled by the
      +   * root agent. Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +   * 
      + * + * + * string entry_agent = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The entryAgent. + */ + @java.lang.Override + public java.lang.String getEntryAgent() { + java.lang.Object ref = entryAgent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entryAgent_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The agent that initially handles the conversation. If not
      +   * specified, the example represents a conversation that is handled by the
      +   * root agent. Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +   * 
      + * + * + * string entry_agent = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for entryAgent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntryAgentBytes() { + java.lang.Object ref = entryAgent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entryAgent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List messages_; + + /** + * + * + *
      +   * Optional. The collection of messages that make up the conversation.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getMessagesList() { + return messages_; + } + + /** + * + * + *
      +   * Optional. The collection of messages that make up the conversation.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getMessagesOrBuilderList() { + return messages_; + } + + /** + * + * + *
      +   * Optional. The collection of messages that make up the conversation.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getMessagesCount() { + return messages_.size(); + } + + /** + * + * + *
      +   * Optional. The collection of messages that make up the conversation.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Message getMessages(int index) { + return messages_.get(index); + } + + /** + * + * + *
      +   * Optional. The collection of messages that make up the conversation.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.MessageOrBuilder getMessagesOrBuilder(int index) { + return messages_.get(index); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
      +   * Output only. Timestamp when the example was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Output only. Timestamp when the example was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
      +   * Output only. Timestamp when the example was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
      +   * Output only. Timestamp when the example was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Output only. Timestamp when the example was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
      +   * Output only. Timestamp when the example was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int INVALID_FIELD_NUMBER = 8; + private boolean invalid_ = false; + + /** + * + * + *
      +   * Output only. The example may become invalid if referencing resources are
      +   * deleted. Invalid examples will not be used as few-shot examples.
      +   * 
      + * + * bool invalid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The invalid. + */ + @java.lang.Override + public boolean getInvalid() { + return invalid_; + } + + public static final int ETAG_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
      +   * Etag used to ensure the object hasn't changed during a read-modify-write
      +   * operation. If the etag is empty, the update will overwrite any concurrent
      +   * changes.
      +   * 
      + * + * string etag = 9; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + + /** + * + * + *
      +   * Etag used to ensure the object hasn't changed during a read-modify-write
      +   * operation. If the etag is empty, the update will overwrite any concurrent
      +   * changes.
      +   * 
      + * + * string etag = 9; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(entryAgent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, entryAgent_); + } + for (int i = 0; i < messages_.size(); i++) { + output.writeMessage(5, messages_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getUpdateTime()); + } + if (invalid_ != false) { + output.writeBool(8, invalid_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(entryAgent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, entryAgent_); + } + for (int i = 0; i < messages_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, messages_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + } + if (invalid_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, invalid_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, etag_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.Example)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.Example other = (com.google.cloud.ces.v1.Example) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getEntryAgent().equals(other.getEntryAgent())) return false; + if (!getMessagesList().equals(other.getMessagesList())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (getInvalid() != other.getInvalid()) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + ENTRY_AGENT_FIELD_NUMBER; + hash = (53 * hash) + getEntryAgent().hashCode(); + if (getMessagesCount() > 0) { + hash = (37 * hash) + MESSAGES_FIELD_NUMBER; + hash = (53 * hash) + getMessagesList().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + INVALID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInvalid()); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.Example parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Example parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Example parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Example parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Example parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Example parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Example parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Example parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Example parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Example parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Example parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Example parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.Example prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * An example represents a sample conversation between the user and the
      +   * agent(s).
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Example} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.Example) + com.google.cloud.ces.v1.ExampleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_Example_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_Example_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Example.class, com.google.cloud.ces.v1.Example.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.Example.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMessagesFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + description_ = ""; + entryAgent_ = ""; + if (messagesBuilder_ == null) { + messages_ = java.util.Collections.emptyList(); + } else { + messages_ = null; + messagesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + invalid_ = false; + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_Example_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Example getDefaultInstanceForType() { + return com.google.cloud.ces.v1.Example.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.Example build() { + com.google.cloud.ces.v1.Example result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Example buildPartial() { + com.google.cloud.ces.v1.Example result = new com.google.cloud.ces.v1.Example(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1.Example result) { + if (messagesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + messages_ = java.util.Collections.unmodifiableList(messages_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.messages_ = messages_; + } else { + result.messages_ = messagesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.Example result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.entryAgent_ = entryAgent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.invalid_ = invalid_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.etag_ = etag_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.Example) { + return mergeFrom((com.google.cloud.ces.v1.Example) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.Example other) { + if (other == com.google.cloud.ces.v1.Example.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getEntryAgent().isEmpty()) { + entryAgent_ = other.entryAgent_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (messagesBuilder_ == null) { + if (!other.messages_.isEmpty()) { + if (messages_.isEmpty()) { + messages_ = other.messages_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureMessagesIsMutable(); + messages_.addAll(other.messages_); + } + onChanged(); + } + } else { + if (!other.messages_.isEmpty()) { + if (messagesBuilder_.isEmpty()) { + messagesBuilder_.dispose(); + messagesBuilder_ = null; + messages_ = other.messages_; + bitField0_ = (bitField0_ & ~0x00000010); + messagesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMessagesFieldBuilder() + : null; + } else { + messagesBuilder_.addAllMessages(other.messages_); + } + } + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.getInvalid() != false) { + setInvalid(other.getInvalid()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000100; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + { + entryAgent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.cloud.ces.v1.Message m = + input.readMessage(com.google.cloud.ces.v1.Message.parser(), extensionRegistry); + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(m); + } else { + messagesBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: + { + invalid_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Identifier. The unique identifier of the example.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/examples/{example}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the example.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/examples/{example}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the example.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/examples/{example}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the example.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/examples/{example}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the example.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/examples/{example}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
      +     * Required. Display name of the example.
      +     * 
      + * + * 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; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. Display name of the example.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. Display name of the example.
      +     * 
      + * + * 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(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. Display name of the example.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. Display name of the example.
      +     * 
      + * + * 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(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
      +     * Optional. Human-readable description of the example.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Human-readable description of the example.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Human-readable description of the example.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Human-readable description of the example.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Human-readable description of the example.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object entryAgent_ = ""; + + /** + * + * + *
      +     * Optional. The agent that initially handles the conversation. If not
      +     * specified, the example represents a conversation that is handled by the
      +     * root agent. Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * string entry_agent = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The entryAgent. + */ + public java.lang.String getEntryAgent() { + java.lang.Object ref = entryAgent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entryAgent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The agent that initially handles the conversation. If not
      +     * specified, the example represents a conversation that is handled by the
      +     * root agent. Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * string entry_agent = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for entryAgent. + */ + public com.google.protobuf.ByteString getEntryAgentBytes() { + java.lang.Object ref = entryAgent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entryAgent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The agent that initially handles the conversation. If not
      +     * specified, the example represents a conversation that is handled by the
      +     * root agent. Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * string entry_agent = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The entryAgent to set. + * @return This builder for chaining. + */ + public Builder setEntryAgent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + entryAgent_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The agent that initially handles the conversation. If not
      +     * specified, the example represents a conversation that is handled by the
      +     * root agent. Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * string entry_agent = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearEntryAgent() { + entryAgent_ = getDefaultInstance().getEntryAgent(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The agent that initially handles the conversation. If not
      +     * specified, the example represents a conversation that is handled by the
      +     * root agent. Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * string entry_agent = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for entryAgent to set. + * @return This builder for chaining. + */ + public Builder setEntryAgentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entryAgent_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.util.List messages_ = + java.util.Collections.emptyList(); + + private void ensureMessagesIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + messages_ = new java.util.ArrayList(messages_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Message, + com.google.cloud.ces.v1.Message.Builder, + com.google.cloud.ces.v1.MessageOrBuilder> + messagesBuilder_; + + /** + * + * + *
      +     * Optional. The collection of messages that make up the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getMessagesList() { + if (messagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(messages_); + } else { + return messagesBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Optional. The collection of messages that make up the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getMessagesCount() { + if (messagesBuilder_ == null) { + return messages_.size(); + } else { + return messagesBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Optional. The collection of messages that make up the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Message getMessages(int index) { + if (messagesBuilder_ == null) { + return messages_.get(index); + } else { + return messagesBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Optional. The collection of messages that make up the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMessages(int index, com.google.cloud.ces.v1.Message value) { + if (messagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.set(index, value); + onChanged(); + } else { + messagesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The collection of messages that make up the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMessages(int index, com.google.cloud.ces.v1.Message.Builder builderForValue) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.set(index, builderForValue.build()); + onChanged(); + } else { + messagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The collection of messages that make up the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMessages(com.google.cloud.ces.v1.Message value) { + if (messagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.add(value); + onChanged(); + } else { + messagesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The collection of messages that make up the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMessages(int index, com.google.cloud.ces.v1.Message value) { + if (messagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.add(index, value); + onChanged(); + } else { + messagesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The collection of messages that make up the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMessages(com.google.cloud.ces.v1.Message.Builder builderForValue) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(builderForValue.build()); + onChanged(); + } else { + messagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The collection of messages that make up the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMessages(int index, com.google.cloud.ces.v1.Message.Builder builderForValue) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(index, builderForValue.build()); + onChanged(); + } else { + messagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The collection of messages that make up the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllMessages( + java.lang.Iterable values) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messages_); + onChanged(); + } else { + messagesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Optional. The collection of messages that make up the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMessages() { + if (messagesBuilder_ == null) { + messages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + messagesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The collection of messages that make up the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeMessages(int index) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.remove(index); + onChanged(); + } else { + messagesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Optional. The collection of messages that make up the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Message.Builder getMessagesBuilder(int index) { + return internalGetMessagesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Optional. The collection of messages that make up the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.MessageOrBuilder getMessagesOrBuilder(int index) { + if (messagesBuilder_ == null) { + return messages_.get(index); + } else { + return messagesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Optional. The collection of messages that make up the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getMessagesOrBuilderList() { + if (messagesBuilder_ != null) { + return messagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(messages_); + } + } + + /** + * + * + *
      +     * Optional. The collection of messages that make up the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Message.Builder addMessagesBuilder() { + return internalGetMessagesFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.Message.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. The collection of messages that make up the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Message.Builder addMessagesBuilder(int index) { + return internalGetMessagesFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.Message.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. The collection of messages that make up the conversation.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getMessagesBuilderList() { + return internalGetMessagesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Message, + com.google.cloud.ces.v1.Message.Builder, + com.google.cloud.ces.v1.MessageOrBuilder> + internalGetMessagesFieldBuilder() { + if (messagesBuilder_ == null) { + messagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Message, + com.google.cloud.ces.v1.Message.Builder, + com.google.cloud.ces.v1.MessageOrBuilder>( + messages_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + messages_ = null; + } + return messagesBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
      +     * Output only. Timestamp when the example was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +     * Output only. Timestamp when the example was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.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_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the example was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the example was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the example was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the example was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the example was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. Timestamp when the example was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.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_; + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the example was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
      +     * Output only. Timestamp when the example was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
      +     * Output only. Timestamp when the example was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 7 [(.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_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the example was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the example was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the example was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the example was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000040); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the example was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. Timestamp when the example was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 7 [(.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_; + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the example was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private boolean invalid_; + + /** + * + * + *
      +     * Output only. The example may become invalid if referencing resources are
      +     * deleted. Invalid examples will not be used as few-shot examples.
      +     * 
      + * + * bool invalid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The invalid. + */ + @java.lang.Override + public boolean getInvalid() { + return invalid_; + } + + /** + * + * + *
      +     * Output only. The example may become invalid if referencing resources are
      +     * deleted. Invalid examples will not be used as few-shot examples.
      +     * 
      + * + * bool invalid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The invalid to set. + * @return This builder for chaining. + */ + public Builder setInvalid(boolean value) { + + invalid_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The example may become invalid if referencing resources are
      +     * deleted. Invalid examples will not be used as few-shot examples.
      +     * 
      + * + * bool invalid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearInvalid() { + bitField0_ = (bitField0_ & ~0x00000080); + invalid_ = false; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
      +     * Etag used to ensure the object hasn't changed during a read-modify-write
      +     * operation. If the etag is empty, the update will overwrite any concurrent
      +     * changes.
      +     * 
      + * + * string etag = 9; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Etag used to ensure the object hasn't changed during a read-modify-write
      +     * operation. If the etag is empty, the update will overwrite any concurrent
      +     * changes.
      +     * 
      + * + * string etag = 9; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Etag used to ensure the object hasn't changed during a read-modify-write
      +     * operation. If the etag is empty, the update will overwrite any concurrent
      +     * changes.
      +     * 
      + * + * string etag = 9; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Etag used to ensure the object hasn't changed during a read-modify-write
      +     * operation. If the etag is empty, the update will overwrite any concurrent
      +     * changes.
      +     * 
      + * + * string etag = 9; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Etag used to ensure the object hasn't changed during a read-modify-write
      +     * operation. If the etag is empty, the update will overwrite any concurrent
      +     * changes.
      +     * 
      + * + * string etag = 9; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Example) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.Example) + private static final com.google.cloud.ces.v1.Example DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.Example(); + } + + public static com.google.cloud.ces.v1.Example getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Example parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Example getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExampleName.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExampleName.java new file mode 100644 index 000000000000..3063b7bb3032 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExampleName.java @@ -0,0 +1,257 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ExampleName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_APP_EXAMPLE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/apps/{app}/examples/{example}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String app; + private final String example; + + @Deprecated + protected ExampleName() { + project = null; + location = null; + app = null; + example = null; + } + + private ExampleName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + app = Preconditions.checkNotNull(builder.getApp()); + example = Preconditions.checkNotNull(builder.getExample()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getApp() { + return app; + } + + public String getExample() { + return example; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ExampleName of(String project, String location, String app, String example) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setApp(app) + .setExample(example) + .build(); + } + + public static String format(String project, String location, String app, String example) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setApp(app) + .setExample(example) + .build() + .toString(); + } + + public static ExampleName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_APP_EXAMPLE.validatedMatch( + formattedString, "ExampleName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("app"), + matchMap.get("example")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ExampleName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_APP_EXAMPLE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (app != null) { + fieldMapBuilder.put("app", app); + } + if (example != null) { + fieldMapBuilder.put("example", example); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_APP_EXAMPLE.instantiate( + "project", project, "location", location, "app", app, "example", example); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ExampleName that = ((ExampleName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.app, that.app) + && Objects.equals(this.example, that.example); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(app); + h *= 1000003; + h ^= Objects.hashCode(example); + return h; + } + + /** Builder for projects/{project}/locations/{location}/apps/{app}/examples/{example}. */ + public static class Builder { + private String project; + private String location; + private String app; + private String example; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getApp() { + return app; + } + + public String getExample() { + return example; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setApp(String app) { + this.app = app; + return this; + } + + public Builder setExample(String example) { + this.example = example; + return this; + } + + private Builder(ExampleName exampleName) { + this.project = exampleName.project; + this.location = exampleName.location; + this.app = exampleName.app; + this.example = exampleName.example; + } + + public ExampleName build() { + return new ExampleName(this); + } + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExampleOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExampleOrBuilder.java new file mode 100644 index 000000000000..417ef5a66b2e --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExampleOrBuilder.java @@ -0,0 +1,335 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/example.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ExampleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.Example) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Identifier. The unique identifier of the example.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/examples/{example}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Identifier. The unique identifier of the example.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/examples/{example}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Required. Display name of the example.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
      +   * Required. Display name of the example.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
      +   * Optional. Human-readable description of the example.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
      +   * Optional. Human-readable description of the example.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
      +   * Optional. The agent that initially handles the conversation. If not
      +   * specified, the example represents a conversation that is handled by the
      +   * root agent. Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +   * 
      + * + * + * string entry_agent = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The entryAgent. + */ + java.lang.String getEntryAgent(); + + /** + * + * + *
      +   * Optional. The agent that initially handles the conversation. If not
      +   * specified, the example represents a conversation that is handled by the
      +   * root agent. Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +   * 
      + * + * + * string entry_agent = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for entryAgent. + */ + com.google.protobuf.ByteString getEntryAgentBytes(); + + /** + * + * + *
      +   * Optional. The collection of messages that make up the conversation.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getMessagesList(); + + /** + * + * + *
      +   * Optional. The collection of messages that make up the conversation.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.Message getMessages(int index); + + /** + * + * + *
      +   * Optional. The collection of messages that make up the conversation.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getMessagesCount(); + + /** + * + * + *
      +   * Optional. The collection of messages that make up the conversation.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getMessagesOrBuilderList(); + + /** + * + * + *
      +   * Optional. The collection of messages that make up the conversation.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Message messages = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.MessageOrBuilder getMessagesOrBuilder(int index); + + /** + * + * + *
      +   * Output only. Timestamp when the example was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the example was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the example was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
      +   * Output only. Timestamp when the example was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the example was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the example was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
      +   * Output only. The example may become invalid if referencing resources are
      +   * deleted. Invalid examples will not be used as few-shot examples.
      +   * 
      + * + * bool invalid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The invalid. + */ + boolean getInvalid(); + + /** + * + * + *
      +   * Etag used to ensure the object hasn't changed during a read-modify-write
      +   * operation. If the etag is empty, the update will overwrite any concurrent
      +   * changes.
      +   * 
      + * + * string etag = 9; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
      +   * Etag used to ensure the object hasn't changed during a read-modify-write
      +   * operation. If the etag is empty, the update will overwrite any concurrent
      +   * changes.
      +   * 
      + * + * string etag = 9; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExampleProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExampleProto.java new file mode 100644 index 000000000000..7c166305ebdf --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExampleProto.java @@ -0,0 +1,254 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/example.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class ExampleProto extends com.google.protobuf.GeneratedFile { + private ExampleProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExampleProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Example_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Example_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Message_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Message_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Chunk_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Chunk_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Blob_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Blob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Image_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Image_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ToolCall_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ToolCall_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ToolResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ToolResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_AgentTransfer_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_AgentTransfer_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "!google/cloud/ces/v1/example.proto\022\023goo" + + "gle.cloud.ces.v1\032\037google/api/field_behav" + + "ior.proto\032\031google/api/resource.proto\032&go" + + "ogle/cloud/ces/v1/toolset_tool.proto\032\034go" + + "ogle/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\310\003\n" + + "\007Example\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\002\022\030\n" + + "\013description\030\003 \001(\tB\003\340A\001\0225\n" + + "\013entry_agent\030\004 \001(\tB \340A\001\372A\032\n" + + "\030ces.googleapis.com/Agent\0223\n" + + "\010messages\030\005 \003(\0132\034.google.cloud.ces.v1.MessageB\003\340A\001\0224\n" + + "\013create_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\007" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\024\n" + + "\007invalid\030\010 \001(\010B\003\340A\003\022\014\n" + + "\004etag\030\t \001(\t:y\352Av\n" + + "\032ces.googleapis.com/Example\022Eprojects/{project}/locations/{location}/apps/{app}" + + "/examples/{example}*\010examples2\007example\"\202\001\n" + + "\007Message\022\021\n" + + "\004role\030\001 \001(\tB\003\340A\001\022/\n" + + "\006chunks\030\002 \003(\0132\032.google.cloud.ces.v1.ChunkB\003\340A\001\0223\n\n" + + "event_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\"\313\003\n" + + "\005Chunk\022\023\n" + + "\004text\030\001 \001(\tB\003\340A\001H\000\022\031\n\n" + + "transcript\030\t \001(\tB\003\340A\001H\000\022/\n" + + "\007payload\030\013 \001(\0132\027.google.protobuf.StructB\003\340A\001H\000\0220\n" + + "\005image\030\005 \001(\0132\032.google.cloud.ces.v1.ImageB\003\340A\001H\000\0227\n" + + "\ttool_call\030\002" + + " \001(\0132\035.google.cloud.ces.v1.ToolCallB\003\340A\001H\000\022?\n\r" + + "tool_response\030\003" + + " \001(\0132!.google.cloud.ces.v1.ToolResponseB\003\340A\001H\000\022A\n" + + "\016agent_transfer\030\004" + + " \001(\0132\".google.cloud.ces.v1.AgentTransferB\003\340A\001H\000\0224\n" + + "\021updated_variables\030\010 \001(\0132\027.google.protobuf.StructH\000\0224\n" + + "\021default_variables\030\n" + + " \001(\0132\027.google.protobuf.StructH\000B\006\n" + + "\004data\"1\n" + + "\004Blob\022\026\n" + + "\tmime_type\030\001 \001(\tB\003\340A\002\022\021\n" + + "\004data\030\002 \001(\014B\003\340A\002\"2\n" + + "\005Image\022\026\n" + + "\tmime_type\030\001 \001(\tB\003\340A\002\022\021\n" + + "\004data\030\002 \001(\014B\003\340A\002\"\345\001\n" + + "\010ToolCall\022/\n" + + "\004tool\030\002 \001(\tB\037\340A\001\372A\031\n" + + "\027ces.googleapis.com/ToolH\000\022=\n" + + "\014toolset_tool\030\005 \001(\0132" + + " .google.cloud.ces.v1.ToolsetToolB\003\340A\001H\000\022\017\n" + + "\002id\030\001 \001(\tB\003\340A\001\022\031\n" + + "\014display_name\030\004 \001(\tB\003\340A\003\022*\n" + + "\004args\030\003 \001(\0132\027.google.protobuf.StructB\003\340A\001B\021\n" + + "\017tool_identifier\"\355\001\n" + + "\014ToolResponse\022/\n" + + "\004tool\030\002 \001(\tB\037\340A\001\372A\031\n" + + "\027ces.googleapis.com/ToolH\000\022=\n" + + "\014toolset_tool\030\005 \001(\0132" + + " .google.cloud.ces.v1.ToolsetToolB\003\340A\001H\000\022\017\n" + + "\002id\030\001 \001(\tB\003\340A\001\022\031\n" + + "\014display_name\030\004 \001(\tB\003\340A\003\022.\n" + + "\010response\030\003 \001(\0132\027.google.protobuf.StructB\003\340A\002B\021\n" + + "\017tool_identifier\"b\n\r" + + "AgentTransfer\0226\n" + + "\014target_agent\030\001 \001(\tB \340A\002\372A\032\n" + + "\030ces.googleapis.com/Agent\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\003BT\n" + + "\027com.google.cloud.ces.v1B\014ExampleProtoP\001Z)cloud.g" + + "oogle.com/go/ces/apiv1/cespb;cespbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.ces.v1.ToolsetToolProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_Example_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_Example_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Example_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Description", + "EntryAgent", + "Messages", + "CreateTime", + "UpdateTime", + "Invalid", + "Etag", + }); + internal_static_google_cloud_ces_v1_Message_descriptor = getDescriptor().getMessageType(1); + internal_static_google_cloud_ces_v1_Message_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Message_descriptor, + new java.lang.String[] { + "Role", "Chunks", "EventTime", + }); + internal_static_google_cloud_ces_v1_Chunk_descriptor = getDescriptor().getMessageType(2); + internal_static_google_cloud_ces_v1_Chunk_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Chunk_descriptor, + new java.lang.String[] { + "Text", + "Transcript", + "Payload", + "Image", + "ToolCall", + "ToolResponse", + "AgentTransfer", + "UpdatedVariables", + "DefaultVariables", + "Data", + }); + internal_static_google_cloud_ces_v1_Blob_descriptor = getDescriptor().getMessageType(3); + internal_static_google_cloud_ces_v1_Blob_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Blob_descriptor, + new java.lang.String[] { + "MimeType", "Data", + }); + internal_static_google_cloud_ces_v1_Image_descriptor = getDescriptor().getMessageType(4); + internal_static_google_cloud_ces_v1_Image_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Image_descriptor, + new java.lang.String[] { + "MimeType", "Data", + }); + internal_static_google_cloud_ces_v1_ToolCall_descriptor = getDescriptor().getMessageType(5); + internal_static_google_cloud_ces_v1_ToolCall_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ToolCall_descriptor, + new java.lang.String[] { + "Tool", "ToolsetTool", "Id", "DisplayName", "Args", "ToolIdentifier", + }); + internal_static_google_cloud_ces_v1_ToolResponse_descriptor = getDescriptor().getMessageType(6); + internal_static_google_cloud_ces_v1_ToolResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ToolResponse_descriptor, + new java.lang.String[] { + "Tool", "ToolsetTool", "Id", "DisplayName", "Response", "ToolIdentifier", + }); + internal_static_google_cloud_ces_v1_AgentTransfer_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_ces_v1_AgentTransfer_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_AgentTransfer_descriptor, + new java.lang.String[] { + "TargetAgent", "DisplayName", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.ces.v1.ToolsetToolProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolRequest.java new file mode 100644 index 000000000000..2f08f2002492 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolRequest.java @@ -0,0 +1,1614 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/tool_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [ToolService.ExecuteTool][google.cloud.ces.v1.ToolService.ExecuteTool].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ExecuteToolRequest} + */ +@com.google.protobuf.Generated +public final class ExecuteToolRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ExecuteToolRequest) + ExecuteToolRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExecuteToolRequest"); + } + + // Use ExecuteToolRequest.newBuilder() to construct. + private ExecuteToolRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExecuteToolRequest() { + parent_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ToolServiceProto + .internal_static_google_cloud_ces_v1_ExecuteToolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ToolServiceProto + .internal_static_google_cloud_ces_v1_ExecuteToolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ExecuteToolRequest.class, + com.google.cloud.ces.v1.ExecuteToolRequest.Builder.class); + } + + private int bitField0_; + private int toolIdentifierCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object toolIdentifier_; + + public enum ToolIdentifierCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TOOL(1), + TOOLSET_TOOL(3), + TOOLIDENTIFIER_NOT_SET(0); + private final int value; + + private ToolIdentifierCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ToolIdentifierCase valueOf(int value) { + return forNumber(value); + } + + public static ToolIdentifierCase forNumber(int value) { + switch (value) { + case 1: + return TOOL; + case 3: + return TOOLSET_TOOL; + case 0: + return TOOLIDENTIFIER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ToolIdentifierCase getToolIdentifierCase() { + return ToolIdentifierCase.forNumber(toolIdentifierCase_); + } + + public static final int TOOL_FIELD_NUMBER = 1; + + /** + * + * + *
      +   * Optional. The name of the tool to execute.
      +   * Format:
      +   * projects/{project}/locations/{location}/apps/{app}/tools/{tool}
      +   * 
      + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the tool field is set. + */ + public boolean hasTool() { + return toolIdentifierCase_ == 1; + } + + /** + * + * + *
      +   * Optional. The name of the tool to execute.
      +   * Format:
      +   * projects/{project}/locations/{location}/apps/{app}/tools/{tool}
      +   * 
      + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The tool. + */ + public java.lang.String getTool() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 1) { + ref = toolIdentifier_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (toolIdentifierCase_ == 1) { + toolIdentifier_ = s; + } + return s; + } + } + + /** + * + * + *
      +   * Optional. The name of the tool to execute.
      +   * Format:
      +   * projects/{project}/locations/{location}/apps/{app}/tools/{tool}
      +   * 
      + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tool. + */ + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 1) { + ref = toolIdentifier_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (toolIdentifierCase_ == 1) { + toolIdentifier_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOLSET_TOOL_FIELD_NUMBER = 3; + + /** + * + * + *
      +   * Optional. The toolset tool to execute. Only one tool should match the
      +   * predicate from the toolset. Otherwise, an error will be returned.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolsetTool field is set. + */ + @java.lang.Override + public boolean hasToolsetTool() { + return toolIdentifierCase_ == 3; + } + + /** + * + * + *
      +   * Optional. The toolset tool to execute. Only one tool should match the
      +   * predicate from the toolset. Otherwise, an error will be returned.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolsetTool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetTool getToolsetTool() { + if (toolIdentifierCase_ == 3) { + return (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. The toolset tool to execute. Only one tool should match the
      +   * predicate from the toolset. Otherwise, an error will be returned.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetToolOrBuilder() { + if (toolIdentifierCase_ == 3) { + return (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + + public static final int PARENT_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the app which the tool/toolset belongs to.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}`
      +   * 
      + * + * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the app which the tool/toolset belongs to.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}`
      +   * 
      + * + * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ARGS_FIELD_NUMBER = 2; + private com.google.protobuf.Struct args_; + + /** + * + * + *
      +   * Optional. The input parameters and values for the tool in JSON object
      +   * format.
      +   * 
      + * + * .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the args field is set. + */ + @java.lang.Override + public boolean hasArgs() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Optional. The input parameters and values for the tool in JSON object
      +   * format.
      +   * 
      + * + * .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The args. + */ + @java.lang.Override + public com.google.protobuf.Struct getArgs() { + return args_ == null ? com.google.protobuf.Struct.getDefaultInstance() : args_; + } + + /** + * + * + *
      +   * Optional. The input parameters and values for the tool in JSON object
      +   * format.
      +   * 
      + * + * .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getArgsOrBuilder() { + return args_ == null ? com.google.protobuf.Struct.getDefaultInstance() : args_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (toolIdentifierCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, toolIdentifier_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getArgs()); + } + if (toolIdentifierCase_ == 3) { + output.writeMessage(3, (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, parent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (toolIdentifierCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, toolIdentifier_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getArgs()); + } + if (toolIdentifierCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, parent_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ExecuteToolRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ExecuteToolRequest other = + (com.google.cloud.ces.v1.ExecuteToolRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasArgs() != other.hasArgs()) return false; + if (hasArgs()) { + if (!getArgs().equals(other.getArgs())) return false; + } + if (!getToolIdentifierCase().equals(other.getToolIdentifierCase())) return false; + switch (toolIdentifierCase_) { + case 1: + if (!getTool().equals(other.getTool())) return false; + break; + case 3: + if (!getToolsetTool().equals(other.getToolsetTool())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasArgs()) { + hash = (37 * hash) + ARGS_FIELD_NUMBER; + hash = (53 * hash) + getArgs().hashCode(); + } + switch (toolIdentifierCase_) { + case 1: + hash = (37 * hash) + TOOL_FIELD_NUMBER; + hash = (53 * hash) + getTool().hashCode(); + break; + case 3: + hash = (37 * hash) + TOOLSET_TOOL_FIELD_NUMBER; + hash = (53 * hash) + getToolsetTool().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ExecuteToolRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ExecuteToolRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ExecuteToolRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ExecuteToolRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ExecuteToolRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ExecuteToolRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ExecuteToolRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ExecuteToolRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ExecuteToolRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ExecuteToolRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ExecuteToolRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ExecuteToolRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ExecuteToolRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [ToolService.ExecuteTool][google.cloud.ces.v1.ToolService.ExecuteTool].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ExecuteToolRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ExecuteToolRequest) + com.google.cloud.ces.v1.ExecuteToolRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ToolServiceProto + .internal_static_google_cloud_ces_v1_ExecuteToolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ToolServiceProto + .internal_static_google_cloud_ces_v1_ExecuteToolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ExecuteToolRequest.class, + com.google.cloud.ces.v1.ExecuteToolRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ExecuteToolRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetArgsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolsetToolBuilder_ != null) { + toolsetToolBuilder_.clear(); + } + parent_ = ""; + args_ = null; + if (argsBuilder_ != null) { + argsBuilder_.dispose(); + argsBuilder_ = null; + } + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.ToolServiceProto + .internal_static_google_cloud_ces_v1_ExecuteToolRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ExecuteToolRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ExecuteToolRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ExecuteToolRequest build() { + com.google.cloud.ces.v1.ExecuteToolRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ExecuteToolRequest buildPartial() { + com.google.cloud.ces.v1.ExecuteToolRequest result = + new com.google.cloud.ces.v1.ExecuteToolRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ExecuteToolRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.args_ = argsBuilder_ == null ? args_ : argsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.ces.v1.ExecuteToolRequest result) { + result.toolIdentifierCase_ = toolIdentifierCase_; + result.toolIdentifier_ = this.toolIdentifier_; + if (toolIdentifierCase_ == 3 && toolsetToolBuilder_ != null) { + result.toolIdentifier_ = toolsetToolBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ExecuteToolRequest) { + return mergeFrom((com.google.cloud.ces.v1.ExecuteToolRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ExecuteToolRequest other) { + if (other == com.google.cloud.ces.v1.ExecuteToolRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasArgs()) { + mergeArgs(other.getArgs()); + } + switch (other.getToolIdentifierCase()) { + case TOOL: + { + toolIdentifierCase_ = 1; + toolIdentifier_ = other.toolIdentifier_; + onChanged(); + break; + } + case TOOLSET_TOOL: + { + mergeToolsetTool(other.getToolsetTool()); + break; + } + case TOOLIDENTIFIER_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + toolIdentifierCase_ = 1; + toolIdentifier_ = s; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetArgsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetToolsetToolFieldBuilder().getBuilder(), extensionRegistry); + toolIdentifierCase_ = 3; + break; + } // case 26 + case 34: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int toolIdentifierCase_ = 0; + private java.lang.Object toolIdentifier_; + + public ToolIdentifierCase getToolIdentifierCase() { + return ToolIdentifierCase.forNumber(toolIdentifierCase_); + } + + public Builder clearToolIdentifier() { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
      +     * Optional. The name of the tool to execute.
      +     * Format:
      +     * projects/{project}/locations/{location}/apps/{app}/tools/{tool}
      +     * 
      + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the tool field is set. + */ + @java.lang.Override + public boolean hasTool() { + return toolIdentifierCase_ == 1; + } + + /** + * + * + *
      +     * Optional. The name of the tool to execute.
      +     * Format:
      +     * projects/{project}/locations/{location}/apps/{app}/tools/{tool}
      +     * 
      + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The tool. + */ + @java.lang.Override + public java.lang.String getTool() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 1) { + ref = toolIdentifier_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (toolIdentifierCase_ == 1) { + toolIdentifier_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The name of the tool to execute.
      +     * Format:
      +     * projects/{project}/locations/{location}/apps/{app}/tools/{tool}
      +     * 
      + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 1) { + ref = toolIdentifier_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (toolIdentifierCase_ == 1) { + toolIdentifier_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The name of the tool to execute.
      +     * Format:
      +     * projects/{project}/locations/{location}/apps/{app}/tools/{tool}
      +     * 
      + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The tool to set. + * @return This builder for chaining. + */ + public Builder setTool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolIdentifierCase_ = 1; + toolIdentifier_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The name of the tool to execute.
      +     * Format:
      +     * projects/{project}/locations/{location}/apps/{app}/tools/{tool}
      +     * 
      + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTool() { + if (toolIdentifierCase_ == 1) { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The name of the tool to execute.
      +     * Format:
      +     * projects/{project}/locations/{location}/apps/{app}/tools/{tool}
      +     * 
      + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for tool to set. + * @return This builder for chaining. + */ + public Builder setToolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolIdentifierCase_ = 1; + toolIdentifier_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolsetTool, + com.google.cloud.ces.v1.ToolsetTool.Builder, + com.google.cloud.ces.v1.ToolsetToolOrBuilder> + toolsetToolBuilder_; + + /** + * + * + *
      +     * Optional. The toolset tool to execute. Only one tool should match the
      +     * predicate from the toolset. Otherwise, an error will be returned.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolsetTool field is set. + */ + @java.lang.Override + public boolean hasToolsetTool() { + return toolIdentifierCase_ == 3; + } + + /** + * + * + *
      +     * Optional. The toolset tool to execute. Only one tool should match the
      +     * predicate from the toolset. Otherwise, an error will be returned.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolsetTool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetTool getToolsetTool() { + if (toolsetToolBuilder_ == null) { + if (toolIdentifierCase_ == 3) { + return (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } else { + if (toolIdentifierCase_ == 3) { + return toolsetToolBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The toolset tool to execute. Only one tool should match the
      +     * predicate from the toolset. Otherwise, an error will be returned.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolsetTool(com.google.cloud.ces.v1.ToolsetTool value) { + if (toolsetToolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolIdentifier_ = value; + onChanged(); + } else { + toolsetToolBuilder_.setMessage(value); + } + toolIdentifierCase_ = 3; + return this; + } + + /** + * + * + *
      +     * Optional. The toolset tool to execute. Only one tool should match the
      +     * predicate from the toolset. Otherwise, an error will be returned.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolsetTool(com.google.cloud.ces.v1.ToolsetTool.Builder builderForValue) { + if (toolsetToolBuilder_ == null) { + toolIdentifier_ = builderForValue.build(); + onChanged(); + } else { + toolsetToolBuilder_.setMessage(builderForValue.build()); + } + toolIdentifierCase_ = 3; + return this; + } + + /** + * + * + *
      +     * Optional. The toolset tool to execute. Only one tool should match the
      +     * predicate from the toolset. Otherwise, an error will be returned.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeToolsetTool(com.google.cloud.ces.v1.ToolsetTool value) { + if (toolsetToolBuilder_ == null) { + if (toolIdentifierCase_ == 3 + && toolIdentifier_ != com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance()) { + toolIdentifier_ = + com.google.cloud.ces.v1.ToolsetTool.newBuilder( + (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_) + .mergeFrom(value) + .buildPartial(); + } else { + toolIdentifier_ = value; + } + onChanged(); + } else { + if (toolIdentifierCase_ == 3) { + toolsetToolBuilder_.mergeFrom(value); + } else { + toolsetToolBuilder_.setMessage(value); + } + } + toolIdentifierCase_ = 3; + return this; + } + + /** + * + * + *
      +     * Optional. The toolset tool to execute. Only one tool should match the
      +     * predicate from the toolset. Otherwise, an error will be returned.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearToolsetTool() { + if (toolsetToolBuilder_ == null) { + if (toolIdentifierCase_ == 3) { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + onChanged(); + } + } else { + if (toolIdentifierCase_ == 3) { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + } + toolsetToolBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The toolset tool to execute. Only one tool should match the
      +     * predicate from the toolset. Otherwise, an error will be returned.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ToolsetTool.Builder getToolsetToolBuilder() { + return internalGetToolsetToolFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The toolset tool to execute. Only one tool should match the
      +     * predicate from the toolset. Otherwise, an error will be returned.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetToolOrBuilder() { + if ((toolIdentifierCase_ == 3) && (toolsetToolBuilder_ != null)) { + return toolsetToolBuilder_.getMessageOrBuilder(); + } else { + if (toolIdentifierCase_ == 3) { + return (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The toolset tool to execute. Only one tool should match the
      +     * predicate from the toolset. Otherwise, an error will be returned.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolsetTool, + com.google.cloud.ces.v1.ToolsetTool.Builder, + com.google.cloud.ces.v1.ToolsetToolOrBuilder> + internalGetToolsetToolFieldBuilder() { + if (toolsetToolBuilder_ == null) { + if (!(toolIdentifierCase_ == 3)) { + toolIdentifier_ = com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + toolsetToolBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolsetTool, + com.google.cloud.ces.v1.ToolsetTool.Builder, + com.google.cloud.ces.v1.ToolsetToolOrBuilder>( + (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_, + getParentForChildren(), + isClean()); + toolIdentifier_ = null; + } + toolIdentifierCase_ = 3; + onChanged(); + return toolsetToolBuilder_; + } + + private java.lang.Object parent_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the app which the tool/toolset belongs to.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}`
      +     * 
      + * + * + * string parent = 4 [(.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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app which the tool/toolset belongs to.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}`
      +     * 
      + * + * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app which the tool/toolset belongs to.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}`
      +     * 
      + * + * + * string parent = 4 [(.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(); + } + parent_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app which the tool/toolset belongs to.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}`
      +     * 
      + * + * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app which the tool/toolset belongs to.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}`
      +     * 
      + * + * + * string parent = 4 [(.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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Struct args_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + argsBuilder_; + + /** + * + * + *
      +     * Optional. The input parameters and values for the tool in JSON object
      +     * format.
      +     * 
      + * + * .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the args field is set. + */ + public boolean hasArgs() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +     * Optional. The input parameters and values for the tool in JSON object
      +     * format.
      +     * 
      + * + * .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The args. + */ + public com.google.protobuf.Struct getArgs() { + if (argsBuilder_ == null) { + return args_ == null ? com.google.protobuf.Struct.getDefaultInstance() : args_; + } else { + return argsBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. The input parameters and values for the tool in JSON object
      +     * format.
      +     * 
      + * + * .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setArgs(com.google.protobuf.Struct value) { + if (argsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + args_ = value; + } else { + argsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The input parameters and values for the tool in JSON object
      +     * format.
      +     * 
      + * + * .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setArgs(com.google.protobuf.Struct.Builder builderForValue) { + if (argsBuilder_ == null) { + args_ = builderForValue.build(); + } else { + argsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The input parameters and values for the tool in JSON object
      +     * format.
      +     * 
      + * + * .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeArgs(com.google.protobuf.Struct value) { + if (argsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && args_ != null + && args_ != com.google.protobuf.Struct.getDefaultInstance()) { + getArgsBuilder().mergeFrom(value); + } else { + args_ = value; + } + } else { + argsBuilder_.mergeFrom(value); + } + if (args_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The input parameters and values for the tool in JSON object
      +     * format.
      +     * 
      + * + * .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearArgs() { + bitField0_ = (bitField0_ & ~0x00000008); + args_ = null; + if (argsBuilder_ != null) { + argsBuilder_.dispose(); + argsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The input parameters and values for the tool in JSON object
      +     * format.
      +     * 
      + * + * .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Struct.Builder getArgsBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetArgsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The input parameters and values for the tool in JSON object
      +     * format.
      +     * 
      + * + * .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.StructOrBuilder getArgsOrBuilder() { + if (argsBuilder_ != null) { + return argsBuilder_.getMessageOrBuilder(); + } else { + return args_ == null ? com.google.protobuf.Struct.getDefaultInstance() : args_; + } + } + + /** + * + * + *
      +     * Optional. The input parameters and values for the tool in JSON object
      +     * format.
      +     * 
      + * + * .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetArgsFieldBuilder() { + if (argsBuilder_ == null) { + argsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>(getArgs(), getParentForChildren(), isClean()); + args_ = null; + } + return argsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ExecuteToolRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ExecuteToolRequest) + private static final com.google.cloud.ces.v1.ExecuteToolRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ExecuteToolRequest(); + } + + public static com.google.cloud.ces.v1.ExecuteToolRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecuteToolRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ExecuteToolRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolRequestOrBuilder.java new file mode 100644 index 000000000000..a55a4a9313da --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolRequestOrBuilder.java @@ -0,0 +1,199 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/tool_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ExecuteToolRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ExecuteToolRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. The name of the tool to execute.
      +   * Format:
      +   * projects/{project}/locations/{location}/apps/{app}/tools/{tool}
      +   * 
      + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the tool field is set. + */ + boolean hasTool(); + + /** + * + * + *
      +   * Optional. The name of the tool to execute.
      +   * Format:
      +   * projects/{project}/locations/{location}/apps/{app}/tools/{tool}
      +   * 
      + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The tool. + */ + java.lang.String getTool(); + + /** + * + * + *
      +   * Optional. The name of the tool to execute.
      +   * Format:
      +   * projects/{project}/locations/{location}/apps/{app}/tools/{tool}
      +   * 
      + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tool. + */ + com.google.protobuf.ByteString getToolBytes(); + + /** + * + * + *
      +   * Optional. The toolset tool to execute. Only one tool should match the
      +   * predicate from the toolset. Otherwise, an error will be returned.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolsetTool field is set. + */ + boolean hasToolsetTool(); + + /** + * + * + *
      +   * Optional. The toolset tool to execute. Only one tool should match the
      +   * predicate from the toolset. Otherwise, an error will be returned.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolsetTool. + */ + com.google.cloud.ces.v1.ToolsetTool getToolsetTool(); + + /** + * + * + *
      +   * Optional. The toolset tool to execute. Only one tool should match the
      +   * predicate from the toolset. Otherwise, an error will be returned.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetToolOrBuilder(); + + /** + * + * + *
      +   * Required. The resource name of the app which the tool/toolset belongs to.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}`
      +   * 
      + * + * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
      +   * Required. The resource name of the app which the tool/toolset belongs to.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}`
      +   * 
      + * + * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Optional. The input parameters and values for the tool in JSON object
      +   * format.
      +   * 
      + * + * .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the args field is set. + */ + boolean hasArgs(); + + /** + * + * + *
      +   * Optional. The input parameters and values for the tool in JSON object
      +   * format.
      +   * 
      + * + * .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The args. + */ + com.google.protobuf.Struct getArgs(); + + /** + * + * + *
      +   * Optional. The input parameters and values for the tool in JSON object
      +   * format.
      +   * 
      + * + * .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.StructOrBuilder getArgsOrBuilder(); + + com.google.cloud.ces.v1.ExecuteToolRequest.ToolIdentifierCase getToolIdentifierCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolResponse.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolResponse.java new file mode 100644 index 000000000000..6c5816cb96f5 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolResponse.java @@ -0,0 +1,1366 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/tool_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Response message for
      + * [ToolService.ExecuteTool][google.cloud.ces.v1.ToolService.ExecuteTool].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ExecuteToolResponse} + */ +@com.google.protobuf.Generated +public final class ExecuteToolResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ExecuteToolResponse) + ExecuteToolResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExecuteToolResponse"); + } + + // Use ExecuteToolResponse.newBuilder() to construct. + private ExecuteToolResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExecuteToolResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ToolServiceProto + .internal_static_google_cloud_ces_v1_ExecuteToolResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ToolServiceProto + .internal_static_google_cloud_ces_v1_ExecuteToolResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ExecuteToolResponse.class, + com.google.cloud.ces.v1.ExecuteToolResponse.Builder.class); + } + + private int bitField0_; + private int toolIdentifierCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object toolIdentifier_; + + public enum ToolIdentifierCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TOOL(1), + TOOLSET_TOOL(3), + TOOLIDENTIFIER_NOT_SET(0); + private final int value; + + private ToolIdentifierCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ToolIdentifierCase valueOf(int value) { + return forNumber(value); + } + + public static ToolIdentifierCase forNumber(int value) { + switch (value) { + case 1: + return TOOL; + case 3: + return TOOLSET_TOOL; + case 0: + return TOOLIDENTIFIER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ToolIdentifierCase getToolIdentifierCase() { + return ToolIdentifierCase.forNumber(toolIdentifierCase_); + } + + public static final int TOOL_FIELD_NUMBER = 1; + + /** + * + * + *
      +   * The name of the tool that got executed.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +   * 
      + * + * string tool = 1 [(.google.api.resource_reference) = { ... } + * + * @return Whether the tool field is set. + */ + public boolean hasTool() { + return toolIdentifierCase_ == 1; + } + + /** + * + * + *
      +   * The name of the tool that got executed.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +   * 
      + * + * string tool = 1 [(.google.api.resource_reference) = { ... } + * + * @return The tool. + */ + public java.lang.String getTool() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 1) { + ref = toolIdentifier_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (toolIdentifierCase_ == 1) { + toolIdentifier_ = s; + } + return s; + } + } + + /** + * + * + *
      +   * The name of the tool that got executed.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +   * 
      + * + * string tool = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for tool. + */ + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 1) { + ref = toolIdentifier_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (toolIdentifierCase_ == 1) { + toolIdentifier_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOLSET_TOOL_FIELD_NUMBER = 3; + + /** + * + * + *
      +   * The toolset tool that got executed.
      +   * 
      + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 3; + * + * @return Whether the toolsetTool field is set. + */ + @java.lang.Override + public boolean hasToolsetTool() { + return toolIdentifierCase_ == 3; + } + + /** + * + * + *
      +   * The toolset tool that got executed.
      +   * 
      + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 3; + * + * @return The toolsetTool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetTool getToolsetTool() { + if (toolIdentifierCase_ == 3) { + return (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + + /** + * + * + *
      +   * The toolset tool that got executed.
      +   * 
      + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 3; + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetToolOrBuilder() { + if (toolIdentifierCase_ == 3) { + return (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + + public static final int RESPONSE_FIELD_NUMBER = 2; + private com.google.protobuf.Struct response_; + + /** + * + * + *
      +   * Required. The tool execution result in JSON object format.
      +   * Use "output" key to specify tool response and "error" key to specify
      +   * error details (if any). If "output" and "error" keys are not specified,
      +   * then whole "response" is treated as tool execution result.
      +   * 
      + * + * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the response field is set. + */ + @java.lang.Override + public boolean hasResponse() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Required. The tool execution result in JSON object format.
      +   * Use "output" key to specify tool response and "error" key to specify
      +   * error details (if any). If "output" and "error" keys are not specified,
      +   * then whole "response" is treated as tool execution result.
      +   * 
      + * + * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The response. + */ + @java.lang.Override + public com.google.protobuf.Struct getResponse() { + return response_ == null ? com.google.protobuf.Struct.getDefaultInstance() : response_; + } + + /** + * + * + *
      +   * Required. The tool execution result in JSON object format.
      +   * Use "output" key to specify tool response and "error" key to specify
      +   * error details (if any). If "output" and "error" keys are not specified,
      +   * then whole "response" is treated as tool execution result.
      +   * 
      + * + * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getResponseOrBuilder() { + return response_ == null ? com.google.protobuf.Struct.getDefaultInstance() : response_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (toolIdentifierCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, toolIdentifier_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getResponse()); + } + if (toolIdentifierCase_ == 3) { + output.writeMessage(3, (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (toolIdentifierCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, toolIdentifier_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getResponse()); + } + if (toolIdentifierCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ExecuteToolResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ExecuteToolResponse other = + (com.google.cloud.ces.v1.ExecuteToolResponse) obj; + + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse().equals(other.getResponse())) return false; + } + if (!getToolIdentifierCase().equals(other.getToolIdentifierCase())) return false; + switch (toolIdentifierCase_) { + case 1: + if (!getTool().equals(other.getTool())) return false; + break; + case 3: + if (!getToolsetTool().equals(other.getToolsetTool())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + switch (toolIdentifierCase_) { + case 1: + hash = (37 * hash) + TOOL_FIELD_NUMBER; + hash = (53 * hash) + getTool().hashCode(); + break; + case 3: + hash = (37 * hash) + TOOLSET_TOOL_FIELD_NUMBER; + hash = (53 * hash) + getToolsetTool().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ExecuteToolResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ExecuteToolResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ExecuteToolResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ExecuteToolResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ExecuteToolResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ExecuteToolResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ExecuteToolResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ExecuteToolResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ExecuteToolResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ExecuteToolResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ExecuteToolResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ExecuteToolResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ExecuteToolResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Response message for
      +   * [ToolService.ExecuteTool][google.cloud.ces.v1.ToolService.ExecuteTool].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ExecuteToolResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ExecuteToolResponse) + com.google.cloud.ces.v1.ExecuteToolResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ToolServiceProto + .internal_static_google_cloud_ces_v1_ExecuteToolResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ToolServiceProto + .internal_static_google_cloud_ces_v1_ExecuteToolResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ExecuteToolResponse.class, + com.google.cloud.ces.v1.ExecuteToolResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ExecuteToolResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetResponseFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolsetToolBuilder_ != null) { + toolsetToolBuilder_.clear(); + } + response_ = null; + if (responseBuilder_ != null) { + responseBuilder_.dispose(); + responseBuilder_ = null; + } + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.ToolServiceProto + .internal_static_google_cloud_ces_v1_ExecuteToolResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ExecuteToolResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ExecuteToolResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ExecuteToolResponse build() { + com.google.cloud.ces.v1.ExecuteToolResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ExecuteToolResponse buildPartial() { + com.google.cloud.ces.v1.ExecuteToolResponse result = + new com.google.cloud.ces.v1.ExecuteToolResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ExecuteToolResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.response_ = responseBuilder_ == null ? response_ : responseBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.ces.v1.ExecuteToolResponse result) { + result.toolIdentifierCase_ = toolIdentifierCase_; + result.toolIdentifier_ = this.toolIdentifier_; + if (toolIdentifierCase_ == 3 && toolsetToolBuilder_ != null) { + result.toolIdentifier_ = toolsetToolBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ExecuteToolResponse) { + return mergeFrom((com.google.cloud.ces.v1.ExecuteToolResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ExecuteToolResponse other) { + if (other == com.google.cloud.ces.v1.ExecuteToolResponse.getDefaultInstance()) return this; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + switch (other.getToolIdentifierCase()) { + case TOOL: + { + toolIdentifierCase_ = 1; + toolIdentifier_ = other.toolIdentifier_; + onChanged(); + break; + } + case TOOLSET_TOOL: + { + mergeToolsetTool(other.getToolsetTool()); + break; + } + case TOOLIDENTIFIER_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + toolIdentifierCase_ = 1; + toolIdentifier_ = s; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetResponseFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetToolsetToolFieldBuilder().getBuilder(), extensionRegistry); + toolIdentifierCase_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int toolIdentifierCase_ = 0; + private java.lang.Object toolIdentifier_; + + public ToolIdentifierCase getToolIdentifierCase() { + return ToolIdentifierCase.forNumber(toolIdentifierCase_); + } + + public Builder clearToolIdentifier() { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
      +     * The name of the tool that got executed.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +     * 
      + * + * string tool = 1 [(.google.api.resource_reference) = { ... } + * + * @return Whether the tool field is set. + */ + @java.lang.Override + public boolean hasTool() { + return toolIdentifierCase_ == 1; + } + + /** + * + * + *
      +     * The name of the tool that got executed.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +     * 
      + * + * string tool = 1 [(.google.api.resource_reference) = { ... } + * + * @return The tool. + */ + @java.lang.Override + public java.lang.String getTool() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 1) { + ref = toolIdentifier_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (toolIdentifierCase_ == 1) { + toolIdentifier_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * The name of the tool that got executed.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +     * 
      + * + * string tool = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for tool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 1) { + ref = toolIdentifier_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (toolIdentifierCase_ == 1) { + toolIdentifier_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * The name of the tool that got executed.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +     * 
      + * + * string tool = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The tool to set. + * @return This builder for chaining. + */ + public Builder setTool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolIdentifierCase_ = 1; + toolIdentifier_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The name of the tool that got executed.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +     * 
      + * + * string tool = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearTool() { + if (toolIdentifierCase_ == 1) { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * The name of the tool that got executed.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +     * 
      + * + * string tool = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for tool to set. + * @return This builder for chaining. + */ + public Builder setToolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolIdentifierCase_ = 1; + toolIdentifier_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolsetTool, + com.google.cloud.ces.v1.ToolsetTool.Builder, + com.google.cloud.ces.v1.ToolsetToolOrBuilder> + toolsetToolBuilder_; + + /** + * + * + *
      +     * The toolset tool that got executed.
      +     * 
      + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 3; + * + * @return Whether the toolsetTool field is set. + */ + @java.lang.Override + public boolean hasToolsetTool() { + return toolIdentifierCase_ == 3; + } + + /** + * + * + *
      +     * The toolset tool that got executed.
      +     * 
      + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 3; + * + * @return The toolsetTool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetTool getToolsetTool() { + if (toolsetToolBuilder_ == null) { + if (toolIdentifierCase_ == 3) { + return (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } else { + if (toolIdentifierCase_ == 3) { + return toolsetToolBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * The toolset tool that got executed.
      +     * 
      + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 3; + */ + public Builder setToolsetTool(com.google.cloud.ces.v1.ToolsetTool value) { + if (toolsetToolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolIdentifier_ = value; + onChanged(); + } else { + toolsetToolBuilder_.setMessage(value); + } + toolIdentifierCase_ = 3; + return this; + } + + /** + * + * + *
      +     * The toolset tool that got executed.
      +     * 
      + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 3; + */ + public Builder setToolsetTool(com.google.cloud.ces.v1.ToolsetTool.Builder builderForValue) { + if (toolsetToolBuilder_ == null) { + toolIdentifier_ = builderForValue.build(); + onChanged(); + } else { + toolsetToolBuilder_.setMessage(builderForValue.build()); + } + toolIdentifierCase_ = 3; + return this; + } + + /** + * + * + *
      +     * The toolset tool that got executed.
      +     * 
      + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 3; + */ + public Builder mergeToolsetTool(com.google.cloud.ces.v1.ToolsetTool value) { + if (toolsetToolBuilder_ == null) { + if (toolIdentifierCase_ == 3 + && toolIdentifier_ != com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance()) { + toolIdentifier_ = + com.google.cloud.ces.v1.ToolsetTool.newBuilder( + (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_) + .mergeFrom(value) + .buildPartial(); + } else { + toolIdentifier_ = value; + } + onChanged(); + } else { + if (toolIdentifierCase_ == 3) { + toolsetToolBuilder_.mergeFrom(value); + } else { + toolsetToolBuilder_.setMessage(value); + } + } + toolIdentifierCase_ = 3; + return this; + } + + /** + * + * + *
      +     * The toolset tool that got executed.
      +     * 
      + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 3; + */ + public Builder clearToolsetTool() { + if (toolsetToolBuilder_ == null) { + if (toolIdentifierCase_ == 3) { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + onChanged(); + } + } else { + if (toolIdentifierCase_ == 3) { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + } + toolsetToolBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * The toolset tool that got executed.
      +     * 
      + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 3; + */ + public com.google.cloud.ces.v1.ToolsetTool.Builder getToolsetToolBuilder() { + return internalGetToolsetToolFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * The toolset tool that got executed.
      +     * 
      + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 3; + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetToolOrBuilder() { + if ((toolIdentifierCase_ == 3) && (toolsetToolBuilder_ != null)) { + return toolsetToolBuilder_.getMessageOrBuilder(); + } else { + if (toolIdentifierCase_ == 3) { + return (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * The toolset tool that got executed.
      +     * 
      + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolsetTool, + com.google.cloud.ces.v1.ToolsetTool.Builder, + com.google.cloud.ces.v1.ToolsetToolOrBuilder> + internalGetToolsetToolFieldBuilder() { + if (toolsetToolBuilder_ == null) { + if (!(toolIdentifierCase_ == 3)) { + toolIdentifier_ = com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + toolsetToolBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolsetTool, + com.google.cloud.ces.v1.ToolsetTool.Builder, + com.google.cloud.ces.v1.ToolsetToolOrBuilder>( + (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_, + getParentForChildren(), + isClean()); + toolIdentifier_ = null; + } + toolIdentifierCase_ = 3; + onChanged(); + return toolsetToolBuilder_; + } + + private com.google.protobuf.Struct response_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + responseBuilder_; + + /** + * + * + *
      +     * Required. The tool execution result in JSON object format.
      +     * Use "output" key to specify tool response and "error" key to specify
      +     * error details (if any). If "output" and "error" keys are not specified,
      +     * then whole "response" is treated as tool execution result.
      +     * 
      + * + * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the response field is set. + */ + public boolean hasResponse() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Required. The tool execution result in JSON object format.
      +     * Use "output" key to specify tool response and "error" key to specify
      +     * error details (if any). If "output" and "error" keys are not specified,
      +     * then whole "response" is treated as tool execution result.
      +     * 
      + * + * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The response. + */ + public com.google.protobuf.Struct getResponse() { + if (responseBuilder_ == null) { + return response_ == null ? com.google.protobuf.Struct.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Required. The tool execution result in JSON object format.
      +     * Use "output" key to specify tool response and "error" key to specify
      +     * error details (if any). If "output" and "error" keys are not specified,
      +     * then whole "response" is treated as tool execution result.
      +     * 
      + * + * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setResponse(com.google.protobuf.Struct value) { + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + } else { + responseBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The tool execution result in JSON object format.
      +     * Use "output" key to specify tool response and "error" key to specify
      +     * error details (if any). If "output" and "error" keys are not specified,
      +     * then whole "response" is treated as tool execution result.
      +     * 
      + * + * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setResponse(com.google.protobuf.Struct.Builder builderForValue) { + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The tool execution result in JSON object format.
      +     * Use "output" key to specify tool response and "error" key to specify
      +     * error details (if any). If "output" and "error" keys are not specified,
      +     * then whole "response" is treated as tool execution result.
      +     * 
      + * + * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeResponse(com.google.protobuf.Struct value) { + if (responseBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && response_ != null + && response_ != com.google.protobuf.Struct.getDefaultInstance()) { + getResponseBuilder().mergeFrom(value); + } else { + response_ = value; + } + } else { + responseBuilder_.mergeFrom(value); + } + if (response_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Required. The tool execution result in JSON object format.
      +     * Use "output" key to specify tool response and "error" key to specify
      +     * error details (if any). If "output" and "error" keys are not specified,
      +     * then whole "response" is treated as tool execution result.
      +     * 
      + * + * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearResponse() { + bitField0_ = (bitField0_ & ~0x00000004); + response_ = null; + if (responseBuilder_ != null) { + responseBuilder_.dispose(); + responseBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The tool execution result in JSON object format.
      +     * Use "output" key to specify tool response and "error" key to specify
      +     * error details (if any). If "output" and "error" keys are not specified,
      +     * then whole "response" is treated as tool execution result.
      +     * 
      + * + * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.protobuf.Struct.Builder getResponseBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetResponseFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Required. The tool execution result in JSON object format.
      +     * Use "output" key to specify tool response and "error" key to specify
      +     * error details (if any). If "output" and "error" keys are not specified,
      +     * then whole "response" is treated as tool execution result.
      +     * 
      + * + * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.protobuf.StructOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? com.google.protobuf.Struct.getDefaultInstance() : response_; + } + } + + /** + * + * + *
      +     * Required. The tool execution result in JSON object format.
      +     * Use "output" key to specify tool response and "error" key to specify
      +     * error details (if any). If "output" and "error" keys are not specified,
      +     * then whole "response" is treated as tool execution result.
      +     * 
      + * + * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getResponse(), getParentForChildren(), isClean()); + response_ = null; + } + return responseBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ExecuteToolResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ExecuteToolResponse) + private static final com.google.cloud.ces.v1.ExecuteToolResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ExecuteToolResponse(); + } + + public static com.google.cloud.ces.v1.ExecuteToolResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecuteToolResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ExecuteToolResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolResponseOrBuilder.java new file mode 100644 index 000000000000..5d2f81877f1d --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecuteToolResponseOrBuilder.java @@ -0,0 +1,155 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/tool_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ExecuteToolResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ExecuteToolResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The name of the tool that got executed.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +   * 
      + * + * string tool = 1 [(.google.api.resource_reference) = { ... } + * + * @return Whether the tool field is set. + */ + boolean hasTool(); + + /** + * + * + *
      +   * The name of the tool that got executed.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +   * 
      + * + * string tool = 1 [(.google.api.resource_reference) = { ... } + * + * @return The tool. + */ + java.lang.String getTool(); + + /** + * + * + *
      +   * The name of the tool that got executed.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +   * 
      + * + * string tool = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for tool. + */ + com.google.protobuf.ByteString getToolBytes(); + + /** + * + * + *
      +   * The toolset tool that got executed.
      +   * 
      + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 3; + * + * @return Whether the toolsetTool field is set. + */ + boolean hasToolsetTool(); + + /** + * + * + *
      +   * The toolset tool that got executed.
      +   * 
      + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 3; + * + * @return The toolsetTool. + */ + com.google.cloud.ces.v1.ToolsetTool getToolsetTool(); + + /** + * + * + *
      +   * The toolset tool that got executed.
      +   * 
      + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 3; + */ + com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetToolOrBuilder(); + + /** + * + * + *
      +   * Required. The tool execution result in JSON object format.
      +   * Use "output" key to specify tool response and "error" key to specify
      +   * error details (if any). If "output" and "error" keys are not specified,
      +   * then whole "response" is treated as tool execution result.
      +   * 
      + * + * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the response field is set. + */ + boolean hasResponse(); + + /** + * + * + *
      +   * Required. The tool execution result in JSON object format.
      +   * Use "output" key to specify tool response and "error" key to specify
      +   * error details (if any). If "output" and "error" keys are not specified,
      +   * then whole "response" is treated as tool execution result.
      +   * 
      + * + * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The response. + */ + com.google.protobuf.Struct getResponse(); + + /** + * + * + *
      +   * Required. The tool execution result in JSON object format.
      +   * Use "output" key to specify tool response and "error" key to specify
      +   * error details (if any). If "output" and "error" keys are not specified,
      +   * then whole "response" is treated as tool execution result.
      +   * 
      + * + * .google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.protobuf.StructOrBuilder getResponseOrBuilder(); + + com.google.cloud.ces.v1.ExecuteToolResponse.ToolIdentifierCase getToolIdentifierCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecutionType.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecutionType.java new file mode 100644 index 000000000000..209c2b3303d4 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExecutionType.java @@ -0,0 +1,197 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/common.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * The execution type of the tool or toolset.
      + * 
      + * + * Protobuf enum {@code google.cloud.ces.v1.ExecutionType} + */ +@com.google.protobuf.Generated +public enum ExecutionType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +   * The execution type is unspecified. Defaults to `SYNCHRONOUS` if
      +   * unspecified.
      +   * 
      + * + * EXECUTION_TYPE_UNSPECIFIED = 0; + */ + EXECUTION_TYPE_UNSPECIFIED(0), + /** + * + * + *
      +   * The tool is executed synchronously. The session is blocked
      +   * until the tool returns.
      +   * 
      + * + * SYNCHRONOUS = 1; + */ + SYNCHRONOUS(1), + /** + * + * + *
      +   * The tool is executed asynchronously. The session will
      +   * continue while the tool is executing.
      +   * 
      + * + * ASYNCHRONOUS = 2; + */ + ASYNCHRONOUS(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExecutionType"); + } + + /** + * + * + *
      +   * The execution type is unspecified. Defaults to `SYNCHRONOUS` if
      +   * unspecified.
      +   * 
      + * + * EXECUTION_TYPE_UNSPECIFIED = 0; + */ + public static final int EXECUTION_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +   * The tool is executed synchronously. The session is blocked
      +   * until the tool returns.
      +   * 
      + * + * SYNCHRONOUS = 1; + */ + public static final int SYNCHRONOUS_VALUE = 1; + + /** + * + * + *
      +   * The tool is executed asynchronously. The session will
      +   * continue while the tool is executing.
      +   * 
      + * + * ASYNCHRONOUS = 2; + */ + public static final int ASYNCHRONOUS_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ExecutionType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ExecutionType forNumber(int value) { + switch (value) { + case 0: + return EXECUTION_TYPE_UNSPECIFIED; + case 1: + return SYNCHRONOUS; + case 2: + return ASYNCHRONOUS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExecutionType findValueByNumber(int number) { + return ExecutionType.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto.getDescriptor().getEnumTypes().get(0); + } + + private static final ExecutionType[] VALUES = values(); + + public static ExecutionType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ExecutionType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.ExecutionType) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExportAppRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExportAppRequest.java new file mode 100644 index 000000000000..1c3fc4ce260e --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExportAppRequest.java @@ -0,0 +1,1166 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.ExportApp][google.cloud.ces.v1.AgentService.ExportApp].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ExportAppRequest} + */ +@com.google.protobuf.Generated +public final class ExportAppRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ExportAppRequest) + ExportAppRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExportAppRequest"); + } + + // Use ExportAppRequest.newBuilder() to construct. + private ExportAppRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExportAppRequest() { + name_ = ""; + exportFormat_ = 0; + gcsUri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ExportAppRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ExportAppRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ExportAppRequest.class, + com.google.cloud.ces.v1.ExportAppRequest.Builder.class); + } + + /** + * + * + *
      +   * Export format for the app.
      +   * 
      + * + * Protobuf enum {@code google.cloud.ces.v1.ExportAppRequest.ExportFormat} + */ + public enum ExportFormat implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * The export format is unspecified.
      +     * 
      + * + * EXPORT_FORMAT_UNSPECIFIED = 0; + */ + EXPORT_FORMAT_UNSPECIFIED(0), + /** + * + * + *
      +     * The export format is JSON.
      +     * 
      + * + * JSON = 1; + */ + JSON(1), + /** + * + * + *
      +     * The export format is YAML.
      +     * 
      + * + * YAML = 2; + */ + YAML(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExportFormat"); + } + + /** + * + * + *
      +     * The export format is unspecified.
      +     * 
      + * + * EXPORT_FORMAT_UNSPECIFIED = 0; + */ + public static final int EXPORT_FORMAT_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * The export format is JSON.
      +     * 
      + * + * JSON = 1; + */ + public static final int JSON_VALUE = 1; + + /** + * + * + *
      +     * The export format is YAML.
      +     * 
      + * + * YAML = 2; + */ + public static final int YAML_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ExportFormat valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ExportFormat forNumber(int value) { + switch (value) { + case 0: + return EXPORT_FORMAT_UNSPECIFIED; + case 1: + return JSON; + case 2: + return YAML; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExportFormat findValueByNumber(int number) { + return ExportFormat.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.ExportAppRequest.getDescriptor().getEnumTypes().get(0); + } + + private static final ExportFormat[] VALUES = values(); + + public static ExportFormat valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ExportFormat(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.ExportAppRequest.ExportFormat) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the app to export.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the app to export.
      +   * 
      + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPORT_FORMAT_FIELD_NUMBER = 2; + private int exportFormat_ = 0; + + /** + * + * + *
      +   * Required. The format to export the app in.
      +   * 
      + * + * + * .google.cloud.ces.v1.ExportAppRequest.ExportFormat export_format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for exportFormat. + */ + @java.lang.Override + public int getExportFormatValue() { + return exportFormat_; + } + + /** + * + * + *
      +   * Required. The format to export the app in.
      +   * 
      + * + * + * .google.cloud.ces.v1.ExportAppRequest.ExportFormat export_format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The exportFormat. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ExportAppRequest.ExportFormat getExportFormat() { + com.google.cloud.ces.v1.ExportAppRequest.ExportFormat result = + com.google.cloud.ces.v1.ExportAppRequest.ExportFormat.forNumber(exportFormat_); + return result == null + ? com.google.cloud.ces.v1.ExportAppRequest.ExportFormat.UNRECOGNIZED + : result; + } + + public static final int GCS_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcsUri_ = ""; + + /** + * + * + *
      +   * Optional. The [Google Cloud
      +   * Storage](https://cloud.google.com/storage/docs/) URI to which to export the
      +   * app. The format of this URI must be `gs://<bucket-name>/<object-name>`. The
      +   * exported app archive will be written directly to the specified GCS object.
      +   * 
      + * + * string gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcsUri. + */ + @java.lang.Override + public java.lang.String getGcsUri() { + java.lang.Object ref = gcsUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsUri_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The [Google Cloud
      +   * Storage](https://cloud.google.com/storage/docs/) URI to which to export the
      +   * app. The format of this URI must be `gs://<bucket-name>/<object-name>`. The
      +   * exported app archive will be written directly to the specified GCS object.
      +   * 
      + * + * string gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = gcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (exportFormat_ + != com.google.cloud.ces.v1.ExportAppRequest.ExportFormat.EXPORT_FORMAT_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, exportFormat_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcsUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, gcsUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (exportFormat_ + != com.google.cloud.ces.v1.ExportAppRequest.ExportFormat.EXPORT_FORMAT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, exportFormat_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcsUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, gcsUri_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ExportAppRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ExportAppRequest other = (com.google.cloud.ces.v1.ExportAppRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (exportFormat_ != other.exportFormat_) return false; + if (!getGcsUri().equals(other.getGcsUri())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + EXPORT_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + exportFormat_; + hash = (37 * hash) + GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getGcsUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ExportAppRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ExportAppRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ExportAppRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ExportAppRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ExportAppRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ExportAppRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ExportAppRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ExportAppRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ExportAppRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ExportAppRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ExportAppRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ExportAppRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ExportAppRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.ExportApp][google.cloud.ces.v1.AgentService.ExportApp].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ExportAppRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ExportAppRequest) + com.google.cloud.ces.v1.ExportAppRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ExportAppRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ExportAppRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ExportAppRequest.class, + com.google.cloud.ces.v1.ExportAppRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ExportAppRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + exportFormat_ = 0; + gcsUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ExportAppRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ExportAppRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ExportAppRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ExportAppRequest build() { + com.google.cloud.ces.v1.ExportAppRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ExportAppRequest buildPartial() { + com.google.cloud.ces.v1.ExportAppRequest result = + new com.google.cloud.ces.v1.ExportAppRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ExportAppRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.exportFormat_ = exportFormat_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.gcsUri_ = gcsUri_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ExportAppRequest) { + return mergeFrom((com.google.cloud.ces.v1.ExportAppRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ExportAppRequest other) { + if (other == com.google.cloud.ces.v1.ExportAppRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.exportFormat_ != 0) { + setExportFormatValue(other.getExportFormatValue()); + } + if (!other.getGcsUri().isEmpty()) { + gcsUri_ = other.gcsUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + exportFormat_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + gcsUri_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the app to export.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to export.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to export.
      +     * 
      + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to export.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to export.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int exportFormat_ = 0; + + /** + * + * + *
      +     * Required. The format to export the app in.
      +     * 
      + * + * + * .google.cloud.ces.v1.ExportAppRequest.ExportFormat export_format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for exportFormat. + */ + @java.lang.Override + public int getExportFormatValue() { + return exportFormat_; + } + + /** + * + * + *
      +     * Required. The format to export the app in.
      +     * 
      + * + * + * .google.cloud.ces.v1.ExportAppRequest.ExportFormat export_format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for exportFormat to set. + * @return This builder for chaining. + */ + public Builder setExportFormatValue(int value) { + exportFormat_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The format to export the app in.
      +     * 
      + * + * + * .google.cloud.ces.v1.ExportAppRequest.ExportFormat export_format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The exportFormat. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ExportAppRequest.ExportFormat getExportFormat() { + com.google.cloud.ces.v1.ExportAppRequest.ExportFormat result = + com.google.cloud.ces.v1.ExportAppRequest.ExportFormat.forNumber(exportFormat_); + return result == null + ? com.google.cloud.ces.v1.ExportAppRequest.ExportFormat.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * Required. The format to export the app in.
      +     * 
      + * + * + * .google.cloud.ces.v1.ExportAppRequest.ExportFormat export_format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The exportFormat to set. + * @return This builder for chaining. + */ + public Builder setExportFormat(com.google.cloud.ces.v1.ExportAppRequest.ExportFormat value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + exportFormat_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The format to export the app in.
      +     * 
      + * + * + * .google.cloud.ces.v1.ExportAppRequest.ExportFormat export_format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearExportFormat() { + bitField0_ = (bitField0_ & ~0x00000002); + exportFormat_ = 0; + onChanged(); + return this; + } + + private java.lang.Object gcsUri_ = ""; + + /** + * + * + *
      +     * Optional. The [Google Cloud
      +     * Storage](https://cloud.google.com/storage/docs/) URI to which to export the
      +     * app. The format of this URI must be `gs://<bucket-name>/<object-name>`. The
      +     * exported app archive will be written directly to the specified GCS object.
      +     * 
      + * + * string gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcsUri. + */ + public java.lang.String getGcsUri() { + java.lang.Object ref = gcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The [Google Cloud
      +     * Storage](https://cloud.google.com/storage/docs/) URI to which to export the
      +     * app. The format of this URI must be `gs://<bucket-name>/<object-name>`. The
      +     * exported app archive will be written directly to the specified GCS object.
      +     * 
      + * + * string gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcsUri. + */ + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = gcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The [Google Cloud
      +     * Storage](https://cloud.google.com/storage/docs/) URI to which to export the
      +     * app. The format of this URI must be `gs://<bucket-name>/<object-name>`. The
      +     * exported app archive will be written directly to the specified GCS object.
      +     * 
      + * + * string gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The gcsUri to set. + * @return This builder for chaining. + */ + public Builder setGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcsUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The [Google Cloud
      +     * Storage](https://cloud.google.com/storage/docs/) URI to which to export the
      +     * app. The format of this URI must be `gs://<bucket-name>/<object-name>`. The
      +     * exported app archive will be written directly to the specified GCS object.
      +     * 
      + * + * string gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGcsUri() { + gcsUri_ = getDefaultInstance().getGcsUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The [Google Cloud
      +     * Storage](https://cloud.google.com/storage/docs/) URI to which to export the
      +     * app. The format of this URI must be `gs://<bucket-name>/<object-name>`. The
      +     * exported app archive will be written directly to the specified GCS object.
      +     * 
      + * + * string gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for gcsUri to set. + * @return This builder for chaining. + */ + public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ExportAppRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ExportAppRequest) + private static final com.google.cloud.ces.v1.ExportAppRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ExportAppRequest(); + } + + public static com.google.cloud.ces.v1.ExportAppRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportAppRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ExportAppRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExportAppRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExportAppRequestOrBuilder.java new file mode 100644 index 000000000000..b771d020aee7 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExportAppRequestOrBuilder.java @@ -0,0 +1,120 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ExportAppRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ExportAppRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the app to export.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. The resource name of the app to export.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Required. The format to export the app in.
      +   * 
      + * + * + * .google.cloud.ces.v1.ExportAppRequest.ExportFormat export_format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for exportFormat. + */ + int getExportFormatValue(); + + /** + * + * + *
      +   * Required. The format to export the app in.
      +   * 
      + * + * + * .google.cloud.ces.v1.ExportAppRequest.ExportFormat export_format = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The exportFormat. + */ + com.google.cloud.ces.v1.ExportAppRequest.ExportFormat getExportFormat(); + + /** + * + * + *
      +   * Optional. The [Google Cloud
      +   * Storage](https://cloud.google.com/storage/docs/) URI to which to export the
      +   * app. The format of this URI must be `gs://<bucket-name>/<object-name>`. The
      +   * exported app archive will be written directly to the specified GCS object.
      +   * 
      + * + * string gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcsUri. + */ + java.lang.String getGcsUri(); + + /** + * + * + *
      +   * Optional. The [Google Cloud
      +   * Storage](https://cloud.google.com/storage/docs/) URI to which to export the
      +   * app. The format of this URI must be `gs://<bucket-name>/<object-name>`. The
      +   * exported app archive will be written directly to the specified GCS object.
      +   * 
      + * + * string gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcsUri. + */ + com.google.protobuf.ByteString getGcsUriBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExportAppResponse.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExportAppResponse.java new file mode 100644 index 000000000000..9a646c0c2b36 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExportAppResponse.java @@ -0,0 +1,880 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Response message for
      + * [AgentService.ExportApp][google.cloud.ces.v1.AgentService.ExportApp].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ExportAppResponse} + */ +@com.google.protobuf.Generated +public final class ExportAppResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ExportAppResponse) + ExportAppResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExportAppResponse"); + } + + // Use ExportAppResponse.newBuilder() to construct. + private ExportAppResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExportAppResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ExportAppResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ExportAppResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ExportAppResponse.class, + com.google.cloud.ces.v1.ExportAppResponse.Builder.class); + } + + private int appCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object app_; + + public enum AppCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + APP_CONTENT(1), + APP_URI(2), + APP_NOT_SET(0); + private final int value; + + private AppCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AppCase valueOf(int value) { + return forNumber(value); + } + + public static AppCase forNumber(int value) { + switch (value) { + case 1: + return APP_CONTENT; + case 2: + return APP_URI; + case 0: + return APP_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public AppCase getAppCase() { + return AppCase.forNumber(appCase_); + } + + public static final int APP_CONTENT_FIELD_NUMBER = 1; + + /** + * + * + *
      +   * App folder compressed as a zip file.
      +   * 
      + * + * bytes app_content = 1; + * + * @return Whether the appContent field is set. + */ + @java.lang.Override + public boolean hasAppContent() { + return appCase_ == 1; + } + + /** + * + * + *
      +   * App folder compressed as a zip file.
      +   * 
      + * + * bytes app_content = 1; + * + * @return The appContent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppContent() { + if (appCase_ == 1) { + return (com.google.protobuf.ByteString) app_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + public static final int APP_URI_FIELD_NUMBER = 2; + + /** + * + * + *
      +   * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
      +   * to which the app was exported.
      +   * 
      + * + * string app_uri = 2; + * + * @return Whether the appUri field is set. + */ + public boolean hasAppUri() { + return appCase_ == 2; + } + + /** + * + * + *
      +   * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
      +   * to which the app was exported.
      +   * 
      + * + * string app_uri = 2; + * + * @return The appUri. + */ + public java.lang.String getAppUri() { + java.lang.Object ref = ""; + if (appCase_ == 2) { + ref = app_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (appCase_ == 2) { + app_ = s; + } + return s; + } + } + + /** + * + * + *
      +   * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
      +   * to which the app was exported.
      +   * 
      + * + * string app_uri = 2; + * + * @return The bytes for appUri. + */ + public com.google.protobuf.ByteString getAppUriBytes() { + java.lang.Object ref = ""; + if (appCase_ == 2) { + ref = app_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (appCase_ == 2) { + app_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (appCase_ == 1) { + output.writeBytes(1, (com.google.protobuf.ByteString) app_); + } + if (appCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, app_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (appCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 1, (com.google.protobuf.ByteString) app_); + } + if (appCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, app_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ExportAppResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ExportAppResponse other = + (com.google.cloud.ces.v1.ExportAppResponse) obj; + + if (!getAppCase().equals(other.getAppCase())) return false; + switch (appCase_) { + case 1: + if (!getAppContent().equals(other.getAppContent())) return false; + break; + case 2: + if (!getAppUri().equals(other.getAppUri())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (appCase_) { + case 1: + hash = (37 * hash) + APP_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getAppContent().hashCode(); + break; + case 2: + hash = (37 * hash) + APP_URI_FIELD_NUMBER; + hash = (53 * hash) + getAppUri().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ExportAppResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ExportAppResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ExportAppResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ExportAppResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ExportAppResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ExportAppResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ExportAppResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ExportAppResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ExportAppResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ExportAppResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ExportAppResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ExportAppResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ExportAppResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Response message for
      +   * [AgentService.ExportApp][google.cloud.ces.v1.AgentService.ExportApp].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ExportAppResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ExportAppResponse) + com.google.cloud.ces.v1.ExportAppResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ExportAppResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ExportAppResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ExportAppResponse.class, + com.google.cloud.ces.v1.ExportAppResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ExportAppResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + appCase_ = 0; + app_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ExportAppResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ExportAppResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ExportAppResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ExportAppResponse build() { + com.google.cloud.ces.v1.ExportAppResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ExportAppResponse buildPartial() { + com.google.cloud.ces.v1.ExportAppResponse result = + new com.google.cloud.ces.v1.ExportAppResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ExportAppResponse result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.ces.v1.ExportAppResponse result) { + result.appCase_ = appCase_; + result.app_ = this.app_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ExportAppResponse) { + return mergeFrom((com.google.cloud.ces.v1.ExportAppResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ExportAppResponse other) { + if (other == com.google.cloud.ces.v1.ExportAppResponse.getDefaultInstance()) return this; + switch (other.getAppCase()) { + case APP_CONTENT: + { + setAppContent(other.getAppContent()); + break; + } + case APP_URI: + { + appCase_ = 2; + app_ = other.app_; + onChanged(); + break; + } + case APP_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + app_ = input.readBytes(); + appCase_ = 1; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + appCase_ = 2; + app_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int appCase_ = 0; + private java.lang.Object app_; + + public AppCase getAppCase() { + return AppCase.forNumber(appCase_); + } + + public Builder clearApp() { + appCase_ = 0; + app_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
      +     * App folder compressed as a zip file.
      +     * 
      + * + * bytes app_content = 1; + * + * @return Whether the appContent field is set. + */ + public boolean hasAppContent() { + return appCase_ == 1; + } + + /** + * + * + *
      +     * App folder compressed as a zip file.
      +     * 
      + * + * bytes app_content = 1; + * + * @return The appContent. + */ + public com.google.protobuf.ByteString getAppContent() { + if (appCase_ == 1) { + return (com.google.protobuf.ByteString) app_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + /** + * + * + *
      +     * App folder compressed as a zip file.
      +     * 
      + * + * bytes app_content = 1; + * + * @param value The appContent to set. + * @return This builder for chaining. + */ + public Builder setAppContent(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + appCase_ = 1; + app_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * App folder compressed as a zip file.
      +     * 
      + * + * bytes app_content = 1; + * + * @return This builder for chaining. + */ + public Builder clearAppContent() { + if (appCase_ == 1) { + appCase_ = 0; + app_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
      +     * to which the app was exported.
      +     * 
      + * + * string app_uri = 2; + * + * @return Whether the appUri field is set. + */ + @java.lang.Override + public boolean hasAppUri() { + return appCase_ == 2; + } + + /** + * + * + *
      +     * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
      +     * to which the app was exported.
      +     * 
      + * + * string app_uri = 2; + * + * @return The appUri. + */ + @java.lang.Override + public java.lang.String getAppUri() { + java.lang.Object ref = ""; + if (appCase_ == 2) { + ref = app_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (appCase_ == 2) { + app_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
      +     * to which the app was exported.
      +     * 
      + * + * string app_uri = 2; + * + * @return The bytes for appUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppUriBytes() { + java.lang.Object ref = ""; + if (appCase_ == 2) { + ref = app_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (appCase_ == 2) { + app_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
      +     * to which the app was exported.
      +     * 
      + * + * string app_uri = 2; + * + * @param value The appUri to set. + * @return This builder for chaining. + */ + public Builder setAppUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + appCase_ = 2; + app_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
      +     * to which the app was exported.
      +     * 
      + * + * string app_uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearAppUri() { + if (appCase_ == 2) { + appCase_ = 0; + app_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
      +     * to which the app was exported.
      +     * 
      + * + * string app_uri = 2; + * + * @param value The bytes for appUri to set. + * @return This builder for chaining. + */ + public Builder setAppUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + appCase_ = 2; + app_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ExportAppResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ExportAppResponse) + private static final com.google.cloud.ces.v1.ExportAppResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ExportAppResponse(); + } + + public static com.google.cloud.ces.v1.ExportAppResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportAppResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ExportAppResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExportAppResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExportAppResponseOrBuilder.java new file mode 100644 index 000000000000..2d6d89b03b14 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExportAppResponseOrBuilder.java @@ -0,0 +1,98 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ExportAppResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ExportAppResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * App folder compressed as a zip file.
      +   * 
      + * + * bytes app_content = 1; + * + * @return Whether the appContent field is set. + */ + boolean hasAppContent(); + + /** + * + * + *
      +   * App folder compressed as a zip file.
      +   * 
      + * + * bytes app_content = 1; + * + * @return The appContent. + */ + com.google.protobuf.ByteString getAppContent(); + + /** + * + * + *
      +   * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
      +   * to which the app was exported.
      +   * 
      + * + * string app_uri = 2; + * + * @return Whether the appUri field is set. + */ + boolean hasAppUri(); + + /** + * + * + *
      +   * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
      +   * to which the app was exported.
      +   * 
      + * + * string app_uri = 2; + * + * @return The appUri. + */ + java.lang.String getAppUri(); + + /** + * + * + *
      +   * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
      +   * to which the app was exported.
      +   * 
      + * + * string app_uri = 2; + * + * @return The bytes for appUri. + */ + com.google.protobuf.ByteString getAppUriBytes(); + + com.google.cloud.ces.v1.ExportAppResponse.AppCase getAppCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExpressionCondition.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExpressionCondition.java new file mode 100644 index 000000000000..e4adfd9df5ff --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExpressionCondition.java @@ -0,0 +1,595 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_transfers.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Expression condition based on session state.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ExpressionCondition} + */ +@com.google.protobuf.Generated +public final class ExpressionCondition extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ExpressionCondition) + ExpressionConditionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExpressionCondition"); + } + + // Use ExpressionCondition.newBuilder() to construct. + private ExpressionCondition(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExpressionCondition() { + expression_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentTransfersProto + .internal_static_google_cloud_ces_v1_ExpressionCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentTransfersProto + .internal_static_google_cloud_ces_v1_ExpressionCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ExpressionCondition.class, + com.google.cloud.ces.v1.ExpressionCondition.Builder.class); + } + + public static final int EXPRESSION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object expression_ = ""; + + /** + * + * + *
      +   * Required. The string representation of cloud.api.Expression condition.
      +   * 
      + * + * string expression = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The expression. + */ + @java.lang.Override + public java.lang.String getExpression() { + java.lang.Object ref = expression_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expression_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The string representation of cloud.api.Expression condition.
      +   * 
      + * + * string expression = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for expression. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExpressionBytes() { + java.lang.Object ref = expression_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + expression_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(expression_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, expression_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(expression_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, expression_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ExpressionCondition)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ExpressionCondition other = + (com.google.cloud.ces.v1.ExpressionCondition) obj; + + if (!getExpression().equals(other.getExpression())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getExpression().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ExpressionCondition parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ExpressionCondition parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ExpressionCondition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ExpressionCondition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ExpressionCondition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ExpressionCondition parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ExpressionCondition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ExpressionCondition parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ExpressionCondition parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ExpressionCondition parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ExpressionCondition parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ExpressionCondition parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ExpressionCondition prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Expression condition based on session state.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ExpressionCondition} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ExpressionCondition) + com.google.cloud.ces.v1.ExpressionConditionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentTransfersProto + .internal_static_google_cloud_ces_v1_ExpressionCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentTransfersProto + .internal_static_google_cloud_ces_v1_ExpressionCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ExpressionCondition.class, + com.google.cloud.ces.v1.ExpressionCondition.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ExpressionCondition.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + expression_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentTransfersProto + .internal_static_google_cloud_ces_v1_ExpressionCondition_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ExpressionCondition getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ExpressionCondition.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ExpressionCondition build() { + com.google.cloud.ces.v1.ExpressionCondition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ExpressionCondition buildPartial() { + com.google.cloud.ces.v1.ExpressionCondition result = + new com.google.cloud.ces.v1.ExpressionCondition(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ExpressionCondition result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.expression_ = expression_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ExpressionCondition) { + return mergeFrom((com.google.cloud.ces.v1.ExpressionCondition) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ExpressionCondition other) { + if (other == com.google.cloud.ces.v1.ExpressionCondition.getDefaultInstance()) return this; + if (!other.getExpression().isEmpty()) { + expression_ = other.expression_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + expression_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object expression_ = ""; + + /** + * + * + *
      +     * Required. The string representation of cloud.api.Expression condition.
      +     * 
      + * + * string expression = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The expression. + */ + public java.lang.String getExpression() { + java.lang.Object ref = expression_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expression_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The string representation of cloud.api.Expression condition.
      +     * 
      + * + * string expression = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for expression. + */ + public com.google.protobuf.ByteString getExpressionBytes() { + java.lang.Object ref = expression_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + expression_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The string representation of cloud.api.Expression condition.
      +     * 
      + * + * string expression = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The expression to set. + * @return This builder for chaining. + */ + public Builder setExpression(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + expression_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The string representation of cloud.api.Expression condition.
      +     * 
      + * + * string expression = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearExpression() { + expression_ = getDefaultInstance().getExpression(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The string representation of cloud.api.Expression condition.
      +     * 
      + * + * string expression = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for expression to set. + * @return This builder for chaining. + */ + public Builder setExpressionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + expression_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ExpressionCondition) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ExpressionCondition) + private static final com.google.cloud.ces.v1.ExpressionCondition DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ExpressionCondition(); + } + + public static com.google.cloud.ces.v1.ExpressionCondition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExpressionCondition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ExpressionCondition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExpressionConditionOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExpressionConditionOrBuilder.java new file mode 100644 index 000000000000..6ec783db6ae5 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExpressionConditionOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_transfers.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ExpressionConditionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ExpressionCondition) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The string representation of cloud.api.Expression condition.
      +   * 
      + * + * string expression = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The expression. + */ + java.lang.String getExpression(); + + /** + * + * + *
      +   * Required. The string representation of cloud.api.Expression condition.
      +   * 
      + * + * string expression = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for expression. + */ + com.google.protobuf.ByteString getExpressionBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/FakesProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/FakesProto.java new file mode 100644 index 000000000000..4a417d945285 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/FakesProto.java @@ -0,0 +1,101 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/fakes.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class FakesProto extends com.google.protobuf.GeneratedFile { + private FakesProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FakesProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_CodeBlock_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_CodeBlock_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ToolFakeConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ToolFakeConfig_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\037google/cloud/ces/v1/fakes.proto\022\023googl" + + "e.cloud.ces.v1\032\037google/api/field_behavio" + + "r.proto\"%\n\tCodeBlock\022\030\n\013python_code\030\001 \001(" + + "\tB\003\340A\002\"{\n\016ToolFakeConfig\0229\n\ncode_block\030\001" + + " \001(\0132\036.google.cloud.ces.v1.CodeBlockB\003\340A" + + "\001H\000\022\035\n\020enable_fake_mode\030\002 \001(\010B\003\340A\001B\017\n\rto" + + "ol_responseBR\n\027com.google.cloud.ces.v1B\n" + + "FakesProtoP\001Z)cloud.google.com/go/ces/ap" + + "iv1/cespb;cespbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_CodeBlock_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_CodeBlock_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_CodeBlock_descriptor, + new java.lang.String[] { + "PythonCode", + }); + internal_static_google_cloud_ces_v1_ToolFakeConfig_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_ces_v1_ToolFakeConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ToolFakeConfig_descriptor, + new java.lang.String[] { + "CodeBlock", "EnableFakeMode", "ToolResponse", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/FileSearchTool.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/FileSearchTool.java new file mode 100644 index 000000000000..a7381ba52418 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/FileSearchTool.java @@ -0,0 +1,1332 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/file_search_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * The file search tool allows the agent to search across the files uploaded by
      + * the app/agent developer. It has presets to give relatively good quality
      + * search over the uploaded files and summarization of the retrieved results.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.FileSearchTool} + */ +@com.google.protobuf.Generated +public final class FileSearchTool extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.FileSearchTool) + FileSearchToolOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FileSearchTool"); + } + + // Use FileSearchTool.newBuilder() to construct. + private FileSearchTool(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FileSearchTool() { + corpusType_ = 0; + name_ = ""; + description_ = ""; + fileCorpus_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.FileSearchToolProto + .internal_static_google_cloud_ces_v1_FileSearchTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.FileSearchToolProto + .internal_static_google_cloud_ces_v1_FileSearchTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.FileSearchTool.class, + com.google.cloud.ces.v1.FileSearchTool.Builder.class); + } + + /** + * + * + *
      +   * The type of the Vertex RAG corpus.
      +   * 
      + * + * Protobuf enum {@code google.cloud.ces.v1.FileSearchTool.CorpusType} + */ + public enum CorpusType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Unspecified corpus type.
      +     * 
      + * + * CORPUS_TYPE_UNSPECIFIED = 0; + */ + CORPUS_TYPE_UNSPECIFIED(0), + /** + * + * + *
      +     * The corpus is created and owned by the user.
      +     * 
      + * + * USER_OWNED = 1; + */ + USER_OWNED(1), + /** + * + * + *
      +     * The corpus is created by the agent.
      +     * 
      + * + * FULLY_MANAGED = 2; + */ + FULLY_MANAGED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CorpusType"); + } + + /** + * + * + *
      +     * Unspecified corpus type.
      +     * 
      + * + * CORPUS_TYPE_UNSPECIFIED = 0; + */ + public static final int CORPUS_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * The corpus is created and owned by the user.
      +     * 
      + * + * USER_OWNED = 1; + */ + public static final int USER_OWNED_VALUE = 1; + + /** + * + * + *
      +     * The corpus is created by the agent.
      +     * 
      + * + * FULLY_MANAGED = 2; + */ + public static final int FULLY_MANAGED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CorpusType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static CorpusType forNumber(int value) { + switch (value) { + case 0: + return CORPUS_TYPE_UNSPECIFIED; + case 1: + return USER_OWNED; + case 2: + return FULLY_MANAGED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CorpusType findValueByNumber(int number) { + return CorpusType.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.FileSearchTool.getDescriptor().getEnumTypes().get(0); + } + + private static final CorpusType[] VALUES = values(); + + public static CorpusType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CorpusType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.FileSearchTool.CorpusType) + } + + public static final int CORPUS_TYPE_FIELD_NUMBER = 3; + private int corpusType_ = 0; + + /** + * + * + *
      +   * Optional. The type of the corpus. Default is FULLY_MANAGED.
      +   * 
      + * + * + * .google.cloud.ces.v1.FileSearchTool.CorpusType corpus_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for corpusType. + */ + @java.lang.Override + public int getCorpusTypeValue() { + return corpusType_; + } + + /** + * + * + *
      +   * Optional. The type of the corpus. Default is FULLY_MANAGED.
      +   * 
      + * + * + * .google.cloud.ces.v1.FileSearchTool.CorpusType corpus_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The corpusType. + */ + @java.lang.Override + public com.google.cloud.ces.v1.FileSearchTool.CorpusType getCorpusType() { + com.google.cloud.ces.v1.FileSearchTool.CorpusType result = + com.google.cloud.ces.v1.FileSearchTool.CorpusType.forNumber(corpusType_); + return result == null ? com.google.cloud.ces.v1.FileSearchTool.CorpusType.UNRECOGNIZED : result; + } + + public static final int NAME_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. The tool name.
      +   * 
      + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The tool name.
      +   * 
      + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
      +   * Optional. The tool description.
      +   * 
      + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The tool description.
      +   * 
      + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILE_CORPUS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object fileCorpus_ = ""; + + /** + * + * + *
      +   * Optional. The corpus where files are stored.
      +   * Format:
      +   * projects/{project}/locations/{location}/ragCorpora/{rag_corpus}
      +   * 
      + * + * string file_corpus = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fileCorpus. + */ + @java.lang.Override + public java.lang.String getFileCorpus() { + java.lang.Object ref = fileCorpus_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fileCorpus_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The corpus where files are stored.
      +   * Format:
      +   * projects/{project}/locations/{location}/ragCorpora/{rag_corpus}
      +   * 
      + * + * string file_corpus = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fileCorpus. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFileCorpusBytes() { + java.lang.Object ref = fileCorpus_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fileCorpus_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (corpusType_ + != com.google.cloud.ces.v1.FileSearchTool.CorpusType.CORPUS_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, corpusType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fileCorpus_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, fileCorpus_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (corpusType_ + != com.google.cloud.ces.v1.FileSearchTool.CorpusType.CORPUS_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, corpusType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fileCorpus_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, fileCorpus_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.FileSearchTool)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.FileSearchTool other = (com.google.cloud.ces.v1.FileSearchTool) obj; + + if (corpusType_ != other.corpusType_) return false; + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getFileCorpus().equals(other.getFileCorpus())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CORPUS_TYPE_FIELD_NUMBER; + hash = (53 * hash) + corpusType_; + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + FILE_CORPUS_FIELD_NUMBER; + hash = (53 * hash) + getFileCorpus().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.FileSearchTool parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.FileSearchTool parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.FileSearchTool parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.FileSearchTool parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.FileSearchTool parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.FileSearchTool parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.FileSearchTool parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.FileSearchTool parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.FileSearchTool parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.FileSearchTool parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.FileSearchTool parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.FileSearchTool parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.FileSearchTool prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * The file search tool allows the agent to search across the files uploaded by
      +   * the app/agent developer. It has presets to give relatively good quality
      +   * search over the uploaded files and summarization of the retrieved results.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.FileSearchTool} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.FileSearchTool) + com.google.cloud.ces.v1.FileSearchToolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.FileSearchToolProto + .internal_static_google_cloud_ces_v1_FileSearchTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.FileSearchToolProto + .internal_static_google_cloud_ces_v1_FileSearchTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.FileSearchTool.class, + com.google.cloud.ces.v1.FileSearchTool.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.FileSearchTool.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + corpusType_ = 0; + name_ = ""; + description_ = ""; + fileCorpus_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.FileSearchToolProto + .internal_static_google_cloud_ces_v1_FileSearchTool_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.FileSearchTool getDefaultInstanceForType() { + return com.google.cloud.ces.v1.FileSearchTool.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.FileSearchTool build() { + com.google.cloud.ces.v1.FileSearchTool result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.FileSearchTool buildPartial() { + com.google.cloud.ces.v1.FileSearchTool result = + new com.google.cloud.ces.v1.FileSearchTool(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.FileSearchTool result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.corpusType_ = corpusType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.fileCorpus_ = fileCorpus_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.FileSearchTool) { + return mergeFrom((com.google.cloud.ces.v1.FileSearchTool) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.FileSearchTool other) { + if (other == com.google.cloud.ces.v1.FileSearchTool.getDefaultInstance()) return this; + if (other.corpusType_ != 0) { + setCorpusTypeValue(other.getCorpusTypeValue()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFileCorpus().isEmpty()) { + fileCorpus_ = other.fileCorpus_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 24: + { + corpusType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 24 + case 34: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 + case 42: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 42 + case 50: + { + fileCorpus_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int corpusType_ = 0; + + /** + * + * + *
      +     * Optional. The type of the corpus. Default is FULLY_MANAGED.
      +     * 
      + * + * + * .google.cloud.ces.v1.FileSearchTool.CorpusType corpus_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for corpusType. + */ + @java.lang.Override + public int getCorpusTypeValue() { + return corpusType_; + } + + /** + * + * + *
      +     * Optional. The type of the corpus. Default is FULLY_MANAGED.
      +     * 
      + * + * + * .google.cloud.ces.v1.FileSearchTool.CorpusType corpus_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for corpusType to set. + * @return This builder for chaining. + */ + public Builder setCorpusTypeValue(int value) { + corpusType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The type of the corpus. Default is FULLY_MANAGED.
      +     * 
      + * + * + * .google.cloud.ces.v1.FileSearchTool.CorpusType corpus_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The corpusType. + */ + @java.lang.Override + public com.google.cloud.ces.v1.FileSearchTool.CorpusType getCorpusType() { + com.google.cloud.ces.v1.FileSearchTool.CorpusType result = + com.google.cloud.ces.v1.FileSearchTool.CorpusType.forNumber(corpusType_); + return result == null + ? com.google.cloud.ces.v1.FileSearchTool.CorpusType.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * Optional. The type of the corpus. Default is FULLY_MANAGED.
      +     * 
      + * + * + * .google.cloud.ces.v1.FileSearchTool.CorpusType corpus_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The corpusType to set. + * @return This builder for chaining. + */ + public Builder setCorpusType(com.google.cloud.ces.v1.FileSearchTool.CorpusType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + corpusType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The type of the corpus. Default is FULLY_MANAGED.
      +     * 
      + * + * + * .google.cloud.ces.v1.FileSearchTool.CorpusType corpus_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearCorpusType() { + bitField0_ = (bitField0_ & ~0x00000001); + corpusType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Required. The tool name.
      +     * 
      + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The tool name.
      +     * 
      + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The tool name.
      +     * 
      + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The tool name.
      +     * 
      + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The tool name.
      +     * 
      + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
      +     * Optional. The tool description.
      +     * 
      + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The tool description.
      +     * 
      + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The tool description.
      +     * 
      + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The tool description.
      +     * 
      + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The tool description.
      +     * 
      + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object fileCorpus_ = ""; + + /** + * + * + *
      +     * Optional. The corpus where files are stored.
      +     * Format:
      +     * projects/{project}/locations/{location}/ragCorpora/{rag_corpus}
      +     * 
      + * + * string file_corpus = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fileCorpus. + */ + public java.lang.String getFileCorpus() { + java.lang.Object ref = fileCorpus_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fileCorpus_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The corpus where files are stored.
      +     * Format:
      +     * projects/{project}/locations/{location}/ragCorpora/{rag_corpus}
      +     * 
      + * + * string file_corpus = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fileCorpus. + */ + public com.google.protobuf.ByteString getFileCorpusBytes() { + java.lang.Object ref = fileCorpus_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fileCorpus_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The corpus where files are stored.
      +     * Format:
      +     * projects/{project}/locations/{location}/ragCorpora/{rag_corpus}
      +     * 
      + * + * string file_corpus = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The fileCorpus to set. + * @return This builder for chaining. + */ + public Builder setFileCorpus(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fileCorpus_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The corpus where files are stored.
      +     * Format:
      +     * projects/{project}/locations/{location}/ragCorpora/{rag_corpus}
      +     * 
      + * + * string file_corpus = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFileCorpus() { + fileCorpus_ = getDefaultInstance().getFileCorpus(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The corpus where files are stored.
      +     * Format:
      +     * projects/{project}/locations/{location}/ragCorpora/{rag_corpus}
      +     * 
      + * + * string file_corpus = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for fileCorpus to set. + * @return This builder for chaining. + */ + public Builder setFileCorpusBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fileCorpus_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.FileSearchTool) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.FileSearchTool) + private static final com.google.cloud.ces.v1.FileSearchTool DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.FileSearchTool(); + } + + public static com.google.cloud.ces.v1.FileSearchTool getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileSearchTool parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.FileSearchTool getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/FileSearchToolOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/FileSearchToolOrBuilder.java new file mode 100644 index 000000000000..64deedc2909b --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/FileSearchToolOrBuilder.java @@ -0,0 +1,140 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/file_search_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface FileSearchToolOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.FileSearchTool) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. The type of the corpus. Default is FULLY_MANAGED.
      +   * 
      + * + * + * .google.cloud.ces.v1.FileSearchTool.CorpusType corpus_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for corpusType. + */ + int getCorpusTypeValue(); + + /** + * + * + *
      +   * Optional. The type of the corpus. Default is FULLY_MANAGED.
      +   * 
      + * + * + * .google.cloud.ces.v1.FileSearchTool.CorpusType corpus_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The corpusType. + */ + com.google.cloud.ces.v1.FileSearchTool.CorpusType getCorpusType(); + + /** + * + * + *
      +   * Required. The tool name.
      +   * 
      + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. The tool name.
      +   * 
      + * + * string name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Optional. The tool description.
      +   * 
      + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
      +   * Optional. The tool description.
      +   * 
      + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
      +   * Optional. The corpus where files are stored.
      +   * Format:
      +   * projects/{project}/locations/{location}/ragCorpora/{rag_corpus}
      +   * 
      + * + * string file_corpus = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fileCorpus. + */ + java.lang.String getFileCorpus(); + + /** + * + * + *
      +   * Optional. The corpus where files are stored.
      +   * Format:
      +   * projects/{project}/locations/{location}/ragCorpora/{rag_corpus}
      +   * 
      + * + * string file_corpus = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fileCorpus. + */ + com.google.protobuf.ByteString getFileCorpusBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/FileSearchToolProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/FileSearchToolProto.java new file mode 100644 index 000000000000..12c52cf4c824 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/FileSearchToolProto.java @@ -0,0 +1,96 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/file_search_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class FileSearchToolProto extends com.google.protobuf.GeneratedFile { + private FileSearchToolProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FileSearchToolProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_FileSearchTool_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_FileSearchTool_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "*google/cloud/ces/v1/file_search_tool.p" + + "roto\022\023google.cloud.ces.v1\032\037google/api/field_behavior.proto\"\357\001\n" + + "\016FileSearchTool\022H\n" + + "\013corpus_type\030\003" + + " \001(\0162..google.cloud.ces.v1.FileSearchTool.CorpusTypeB\003\340A\001\022\021\n" + + "\004name\030\004 \001(\tB\003\340A\002\022\030\n" + + "\013description\030\005 \001(\tB\003\340A\001\022\030\n" + + "\013file_corpus\030\006 \001(\tB\003\340A\001\"L\n\n" + + "CorpusType\022\033\n" + + "\027CORPUS_TYPE_UNSPECIFIED\020\000\022\016\n\n" + + "USER_OWNED\020\001\022\021\n\r" + + "FULLY_MANAGED\020\002B[\n" + + "\027com.google.cloud.ces.v1B\023FileSearchToolProtoP\001Z)cloud.go" + + "ogle.com/go/ces/apiv1/cespb;cespbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_FileSearchTool_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_FileSearchTool_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_FileSearchTool_descriptor, + new java.lang.String[] { + "CorpusType", "Name", "Description", "FileCorpus", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GenerateChatTokenRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GenerateChatTokenRequest.java new file mode 100644 index 000000000000..f568a91089d7 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GenerateChatTokenRequest.java @@ -0,0 +1,1032 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/widget_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [WidgetService.GenerateChatToken][google.cloud.ces.v1.WidgetService.GenerateChatToken].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.GenerateChatTokenRequest} + */ +@com.google.protobuf.Generated +public final class GenerateChatTokenRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.GenerateChatTokenRequest) + GenerateChatTokenRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GenerateChatTokenRequest"); + } + + // Use GenerateChatTokenRequest.newBuilder() to construct. + private GenerateChatTokenRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerateChatTokenRequest() { + name_ = ""; + deployment_ = ""; + recaptchaToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.WidgetServiceProto + .internal_static_google_cloud_ces_v1_GenerateChatTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.WidgetServiceProto + .internal_static_google_cloud_ces_v1_GenerateChatTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.GenerateChatTokenRequest.class, + com.google.cloud.ces.v1.GenerateChatTokenRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. The session name to generate the chat token for.
      +   * Format:
      +   * projects/{project}/locations/{location}/apps/{app}/sessions/{session}
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The session name to generate the chat token for.
      +   * Format:
      +   * projects/{project}/locations/{location}/apps/{app}/sessions/{session}
      +   * 
      + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYMENT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployment_ = ""; + + /** + * + * + *
      +   * Required. The deployment of the app to use for the session.
      +   * Format:
      +   * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
      +   * 
      + * + * + * string deployment = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The deployment. + */ + @java.lang.Override + public java.lang.String getDeployment() { + java.lang.Object ref = deployment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deployment_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The deployment of the app to use for the session.
      +   * Format:
      +   * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
      +   * 
      + * + * + * string deployment = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for deployment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeploymentBytes() { + java.lang.Object ref = deployment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deployment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RECAPTCHA_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object recaptchaToken_ = ""; + + /** + * + * + *
      +   * Optional. The reCAPTCHA token generated by the client-side chat widget.
      +   * 
      + * + * string recaptcha_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The recaptchaToken. + */ + @java.lang.Override + public java.lang.String getRecaptchaToken() { + java.lang.Object ref = recaptchaToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + recaptchaToken_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The reCAPTCHA token generated by the client-side chat widget.
      +   * 
      + * + * string recaptcha_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for recaptchaToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRecaptchaTokenBytes() { + java.lang.Object ref = recaptchaToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + recaptchaToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deployment_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, deployment_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(recaptchaToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, recaptchaToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deployment_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, deployment_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(recaptchaToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, recaptchaToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.GenerateChatTokenRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.GenerateChatTokenRequest other = + (com.google.cloud.ces.v1.GenerateChatTokenRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDeployment().equals(other.getDeployment())) return false; + if (!getRecaptchaToken().equals(other.getRecaptchaToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DEPLOYMENT_FIELD_NUMBER; + hash = (53 * hash) + getDeployment().hashCode(); + hash = (37 * hash) + RECAPTCHA_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getRecaptchaToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.GenerateChatTokenRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GenerateChatTokenRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GenerateChatTokenRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GenerateChatTokenRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GenerateChatTokenRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GenerateChatTokenRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GenerateChatTokenRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GenerateChatTokenRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GenerateChatTokenRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GenerateChatTokenRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GenerateChatTokenRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GenerateChatTokenRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.GenerateChatTokenRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [WidgetService.GenerateChatToken][google.cloud.ces.v1.WidgetService.GenerateChatToken].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.GenerateChatTokenRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.GenerateChatTokenRequest) + com.google.cloud.ces.v1.GenerateChatTokenRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.WidgetServiceProto + .internal_static_google_cloud_ces_v1_GenerateChatTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.WidgetServiceProto + .internal_static_google_cloud_ces_v1_GenerateChatTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.GenerateChatTokenRequest.class, + com.google.cloud.ces.v1.GenerateChatTokenRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.GenerateChatTokenRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + deployment_ = ""; + recaptchaToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.WidgetServiceProto + .internal_static_google_cloud_ces_v1_GenerateChatTokenRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GenerateChatTokenRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.GenerateChatTokenRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.GenerateChatTokenRequest build() { + com.google.cloud.ces.v1.GenerateChatTokenRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GenerateChatTokenRequest buildPartial() { + com.google.cloud.ces.v1.GenerateChatTokenRequest result = + new com.google.cloud.ces.v1.GenerateChatTokenRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.GenerateChatTokenRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployment_ = deployment_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.recaptchaToken_ = recaptchaToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.GenerateChatTokenRequest) { + return mergeFrom((com.google.cloud.ces.v1.GenerateChatTokenRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.GenerateChatTokenRequest other) { + if (other == com.google.cloud.ces.v1.GenerateChatTokenRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDeployment().isEmpty()) { + deployment_ = other.deployment_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRecaptchaToken().isEmpty()) { + recaptchaToken_ = other.recaptchaToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + deployment_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + recaptchaToken_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Required. The session name to generate the chat token for.
      +     * Format:
      +     * projects/{project}/locations/{location}/apps/{app}/sessions/{session}
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The session name to generate the chat token for.
      +     * Format:
      +     * projects/{project}/locations/{location}/apps/{app}/sessions/{session}
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The session name to generate the chat token for.
      +     * Format:
      +     * projects/{project}/locations/{location}/apps/{app}/sessions/{session}
      +     * 
      + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The session name to generate the chat token for.
      +     * Format:
      +     * projects/{project}/locations/{location}/apps/{app}/sessions/{session}
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The session name to generate the chat token for.
      +     * Format:
      +     * projects/{project}/locations/{location}/apps/{app}/sessions/{session}
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object deployment_ = ""; + + /** + * + * + *
      +     * Required. The deployment of the app to use for the session.
      +     * Format:
      +     * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
      +     * 
      + * + * + * string deployment = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The deployment. + */ + public java.lang.String getDeployment() { + java.lang.Object ref = deployment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deployment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The deployment of the app to use for the session.
      +     * Format:
      +     * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
      +     * 
      + * + * + * string deployment = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for deployment. + */ + public com.google.protobuf.ByteString getDeploymentBytes() { + java.lang.Object ref = deployment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deployment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The deployment of the app to use for the session.
      +     * Format:
      +     * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
      +     * 
      + * + * + * string deployment = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The deployment to set. + * @return This builder for chaining. + */ + public Builder setDeployment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deployment_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The deployment of the app to use for the session.
      +     * Format:
      +     * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
      +     * 
      + * + * + * string deployment = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDeployment() { + deployment_ = getDefaultInstance().getDeployment(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The deployment of the app to use for the session.
      +     * Format:
      +     * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
      +     * 
      + * + * + * string deployment = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for deployment to set. + * @return This builder for chaining. + */ + public Builder setDeploymentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deployment_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object recaptchaToken_ = ""; + + /** + * + * + *
      +     * Optional. The reCAPTCHA token generated by the client-side chat widget.
      +     * 
      + * + * string recaptcha_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The recaptchaToken. + */ + public java.lang.String getRecaptchaToken() { + java.lang.Object ref = recaptchaToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + recaptchaToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The reCAPTCHA token generated by the client-side chat widget.
      +     * 
      + * + * string recaptcha_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for recaptchaToken. + */ + public com.google.protobuf.ByteString getRecaptchaTokenBytes() { + java.lang.Object ref = recaptchaToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + recaptchaToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The reCAPTCHA token generated by the client-side chat widget.
      +     * 
      + * + * string recaptcha_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The recaptchaToken to set. + * @return This builder for chaining. + */ + public Builder setRecaptchaToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + recaptchaToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The reCAPTCHA token generated by the client-side chat widget.
      +     * 
      + * + * string recaptcha_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRecaptchaToken() { + recaptchaToken_ = getDefaultInstance().getRecaptchaToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The reCAPTCHA token generated by the client-side chat widget.
      +     * 
      + * + * string recaptcha_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for recaptchaToken to set. + * @return This builder for chaining. + */ + public Builder setRecaptchaTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + recaptchaToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.GenerateChatTokenRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.GenerateChatTokenRequest) + private static final com.google.cloud.ces.v1.GenerateChatTokenRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.GenerateChatTokenRequest(); + } + + public static com.google.cloud.ces.v1.GenerateChatTokenRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateChatTokenRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GenerateChatTokenRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GenerateChatTokenRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GenerateChatTokenRequestOrBuilder.java new file mode 100644 index 000000000000..61f2208bd1a1 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GenerateChatTokenRequestOrBuilder.java @@ -0,0 +1,122 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/widget_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface GenerateChatTokenRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.GenerateChatTokenRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The session name to generate the chat token for.
      +   * Format:
      +   * projects/{project}/locations/{location}/apps/{app}/sessions/{session}
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. The session name to generate the chat token for.
      +   * Format:
      +   * projects/{project}/locations/{location}/apps/{app}/sessions/{session}
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Required. The deployment of the app to use for the session.
      +   * Format:
      +   * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
      +   * 
      + * + * + * string deployment = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The deployment. + */ + java.lang.String getDeployment(); + + /** + * + * + *
      +   * Required. The deployment of the app to use for the session.
      +   * Format:
      +   * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
      +   * 
      + * + * + * string deployment = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for deployment. + */ + com.google.protobuf.ByteString getDeploymentBytes(); + + /** + * + * + *
      +   * Optional. The reCAPTCHA token generated by the client-side chat widget.
      +   * 
      + * + * string recaptcha_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The recaptchaToken. + */ + java.lang.String getRecaptchaToken(); + + /** + * + * + *
      +   * Optional. The reCAPTCHA token generated by the client-side chat widget.
      +   * 
      + * + * string recaptcha_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for recaptchaToken. + */ + com.google.protobuf.ByteString getRecaptchaTokenBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GenerateChatTokenResponse.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GenerateChatTokenResponse.java new file mode 100644 index 000000000000..6a106d9f52a5 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GenerateChatTokenResponse.java @@ -0,0 +1,886 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/widget_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Response message for
      + * [WidgetService.GenerateChatToken][google.cloud.ces.v1.WidgetService.GenerateChatToken].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.GenerateChatTokenResponse} + */ +@com.google.protobuf.Generated +public final class GenerateChatTokenResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.GenerateChatTokenResponse) + GenerateChatTokenResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GenerateChatTokenResponse"); + } + + // Use GenerateChatTokenResponse.newBuilder() to construct. + private GenerateChatTokenResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerateChatTokenResponse() { + chatToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.WidgetServiceProto + .internal_static_google_cloud_ces_v1_GenerateChatTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.WidgetServiceProto + .internal_static_google_cloud_ces_v1_GenerateChatTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.GenerateChatTokenResponse.class, + com.google.cloud.ces.v1.GenerateChatTokenResponse.Builder.class); + } + + private int bitField0_; + public static final int CHAT_TOKEN_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object chatToken_ = ""; + + /** + * + * + *
      +   * The session scoped token for chat widget to authenticate with Session APIs.
      +   * 
      + * + * string chat_token = 1; + * + * @return The chatToken. + */ + @java.lang.Override + public java.lang.String getChatToken() { + java.lang.Object ref = chatToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + chatToken_ = s; + return s; + } + } + + /** + * + * + *
      +   * The session scoped token for chat widget to authenticate with Session APIs.
      +   * 
      + * + * string chat_token = 1; + * + * @return The bytes for chatToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getChatTokenBytes() { + java.lang.Object ref = chatToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + chatToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPIRE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp expireTime_; + + /** + * + * + *
      +   * The time at which the chat token expires.
      +   * 
      + * + * .google.protobuf.Timestamp expire_time = 2; + * + * @return Whether the expireTime field is set. + */ + @java.lang.Override + public boolean hasExpireTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * The time at which the chat token expires.
      +   * 
      + * + * .google.protobuf.Timestamp expire_time = 2; + * + * @return The expireTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExpireTime() { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } + + /** + * + * + *
      +   * The time at which the chat token expires.
      +   * 
      + * + * .google.protobuf.Timestamp expire_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(chatToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, chatToken_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getExpireTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(chatToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, chatToken_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpireTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.GenerateChatTokenResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.GenerateChatTokenResponse other = + (com.google.cloud.ces.v1.GenerateChatTokenResponse) obj; + + if (!getChatToken().equals(other.getChatToken())) return false; + if (hasExpireTime() != other.hasExpireTime()) return false; + if (hasExpireTime()) { + if (!getExpireTime().equals(other.getExpireTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CHAT_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getChatToken().hashCode(); + if (hasExpireTime()) { + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.GenerateChatTokenResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GenerateChatTokenResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GenerateChatTokenResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GenerateChatTokenResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GenerateChatTokenResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GenerateChatTokenResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GenerateChatTokenResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GenerateChatTokenResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GenerateChatTokenResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GenerateChatTokenResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GenerateChatTokenResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GenerateChatTokenResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.GenerateChatTokenResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Response message for
      +   * [WidgetService.GenerateChatToken][google.cloud.ces.v1.WidgetService.GenerateChatToken].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.GenerateChatTokenResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.GenerateChatTokenResponse) + com.google.cloud.ces.v1.GenerateChatTokenResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.WidgetServiceProto + .internal_static_google_cloud_ces_v1_GenerateChatTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.WidgetServiceProto + .internal_static_google_cloud_ces_v1_GenerateChatTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.GenerateChatTokenResponse.class, + com.google.cloud.ces.v1.GenerateChatTokenResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.GenerateChatTokenResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetExpireTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + chatToken_ = ""; + expireTime_ = null; + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.dispose(); + expireTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.WidgetServiceProto + .internal_static_google_cloud_ces_v1_GenerateChatTokenResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GenerateChatTokenResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1.GenerateChatTokenResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.GenerateChatTokenResponse build() { + com.google.cloud.ces.v1.GenerateChatTokenResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GenerateChatTokenResponse buildPartial() { + com.google.cloud.ces.v1.GenerateChatTokenResponse result = + new com.google.cloud.ces.v1.GenerateChatTokenResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.GenerateChatTokenResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.chatToken_ = chatToken_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.GenerateChatTokenResponse) { + return mergeFrom((com.google.cloud.ces.v1.GenerateChatTokenResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.GenerateChatTokenResponse other) { + if (other == com.google.cloud.ces.v1.GenerateChatTokenResponse.getDefaultInstance()) + return this; + if (!other.getChatToken().isEmpty()) { + chatToken_ = other.chatToken_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasExpireTime()) { + mergeExpireTime(other.getExpireTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + chatToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetExpireTimeFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object chatToken_ = ""; + + /** + * + * + *
      +     * The session scoped token for chat widget to authenticate with Session APIs.
      +     * 
      + * + * string chat_token = 1; + * + * @return The chatToken. + */ + public java.lang.String getChatToken() { + java.lang.Object ref = chatToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + chatToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * The session scoped token for chat widget to authenticate with Session APIs.
      +     * 
      + * + * string chat_token = 1; + * + * @return The bytes for chatToken. + */ + public com.google.protobuf.ByteString getChatTokenBytes() { + java.lang.Object ref = chatToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + chatToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * The session scoped token for chat widget to authenticate with Session APIs.
      +     * 
      + * + * string chat_token = 1; + * + * @param value The chatToken to set. + * @return This builder for chaining. + */ + public Builder setChatToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + chatToken_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The session scoped token for chat widget to authenticate with Session APIs.
      +     * 
      + * + * string chat_token = 1; + * + * @return This builder for chaining. + */ + public Builder clearChatToken() { + chatToken_ = getDefaultInstance().getChatToken(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * The session scoped token for chat widget to authenticate with Session APIs.
      +     * 
      + * + * string chat_token = 1; + * + * @param value The bytes for chatToken to set. + * @return This builder for chaining. + */ + public Builder setChatTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + chatToken_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp expireTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; + + /** + * + * + *
      +     * The time at which the chat token expires.
      +     * 
      + * + * .google.protobuf.Timestamp expire_time = 2; + * + * @return Whether the expireTime field is set. + */ + public boolean hasExpireTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * The time at which the chat token expires.
      +     * 
      + * + * .google.protobuf.Timestamp expire_time = 2; + * + * @return The expireTime. + */ + public com.google.protobuf.Timestamp getExpireTime() { + if (expireTimeBuilder_ == null) { + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; + } else { + return expireTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * The time at which the chat token expires.
      +     * 
      + * + * .google.protobuf.Timestamp expire_time = 2; + */ + public Builder setExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expireTime_ = value; + } else { + expireTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The time at which the chat token expires.
      +     * 
      + * + * .google.protobuf.Timestamp expire_time = 2; + */ + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (expireTimeBuilder_ == null) { + expireTime_ = builderForValue.build(); + } else { + expireTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The time at which the chat token expires.
      +     * 
      + * + * .google.protobuf.Timestamp expire_time = 2; + */ + public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && expireTime_ != null + && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getExpireTimeBuilder().mergeFrom(value); + } else { + expireTime_ = value; + } + } else { + expireTimeBuilder_.mergeFrom(value); + } + if (expireTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * The time at which the chat token expires.
      +     * 
      + * + * .google.protobuf.Timestamp expire_time = 2; + */ + public Builder clearExpireTime() { + bitField0_ = (bitField0_ & ~0x00000002); + expireTime_ = null; + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.dispose(); + expireTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * The time at which the chat token expires.
      +     * 
      + * + * .google.protobuf.Timestamp expire_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetExpireTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * The time at which the chat token expires.
      +     * 
      + * + * .google.protobuf.Timestamp expire_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + if (expireTimeBuilder_ != null) { + return expireTimeBuilder_.getMessageOrBuilder(); + } else { + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; + } + } + + /** + * + * + *
      +     * The time at which the chat token expires.
      +     * 
      + * + * .google.protobuf.Timestamp expire_time = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetExpireTimeFieldBuilder() { + if (expireTimeBuilder_ == null) { + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); + expireTime_ = null; + } + return expireTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.GenerateChatTokenResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.GenerateChatTokenResponse) + private static final com.google.cloud.ces.v1.GenerateChatTokenResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.GenerateChatTokenResponse(); + } + + public static com.google.cloud.ces.v1.GenerateChatTokenResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateChatTokenResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GenerateChatTokenResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GenerateChatTokenResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GenerateChatTokenResponseOrBuilder.java new file mode 100644 index 000000000000..174f8852a172 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GenerateChatTokenResponseOrBuilder.java @@ -0,0 +1,91 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/widget_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface GenerateChatTokenResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.GenerateChatTokenResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The session scoped token for chat widget to authenticate with Session APIs.
      +   * 
      + * + * string chat_token = 1; + * + * @return The chatToken. + */ + java.lang.String getChatToken(); + + /** + * + * + *
      +   * The session scoped token for chat widget to authenticate with Session APIs.
      +   * 
      + * + * string chat_token = 1; + * + * @return The bytes for chatToken. + */ + com.google.protobuf.ByteString getChatTokenBytes(); + + /** + * + * + *
      +   * The time at which the chat token expires.
      +   * 
      + * + * .google.protobuf.Timestamp expire_time = 2; + * + * @return Whether the expireTime field is set. + */ + boolean hasExpireTime(); + + /** + * + * + *
      +   * The time at which the chat token expires.
      +   * 
      + * + * .google.protobuf.Timestamp expire_time = 2; + * + * @return The expireTime. + */ + com.google.protobuf.Timestamp getExpireTime(); + + /** + * + * + *
      +   * The time at which the chat token expires.
      +   * 
      + * + * .google.protobuf.Timestamp expire_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetAgentRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetAgentRequest.java new file mode 100644 index 000000000000..4f5532e14173 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetAgentRequest.java @@ -0,0 +1,610 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.GetAgent][google.cloud.ces.v1.AgentService.GetAgent].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.GetAgentRequest} + */ +@com.google.protobuf.Generated +public final class GetAgentRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.GetAgentRequest) + GetAgentRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetAgentRequest"); + } + + // Use GetAgentRequest.newBuilder() to construct. + private GetAgentRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAgentRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetAgentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetAgentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.GetAgentRequest.class, + com.google.cloud.ces.v1.GetAgentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the agent to retrieve.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the agent to retrieve.
      +   * 
      + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.GetAgentRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.GetAgentRequest other = (com.google.cloud.ces.v1.GetAgentRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.GetAgentRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GetAgentRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetAgentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GetAgentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetAgentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GetAgentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetAgentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GetAgentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetAgentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GetAgentRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetAgentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GetAgentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.GetAgentRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.GetAgent][google.cloud.ces.v1.AgentService.GetAgent].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.GetAgentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.GetAgentRequest) + com.google.cloud.ces.v1.GetAgentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetAgentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetAgentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.GetAgentRequest.class, + com.google.cloud.ces.v1.GetAgentRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.GetAgentRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetAgentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetAgentRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.GetAgentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetAgentRequest build() { + com.google.cloud.ces.v1.GetAgentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetAgentRequest buildPartial() { + com.google.cloud.ces.v1.GetAgentRequest result = + new com.google.cloud.ces.v1.GetAgentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.GetAgentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.GetAgentRequest) { + return mergeFrom((com.google.cloud.ces.v1.GetAgentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.GetAgentRequest other) { + if (other == com.google.cloud.ces.v1.GetAgentRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the agent to retrieve.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the agent to retrieve.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the agent to retrieve.
      +     * 
      + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the agent to retrieve.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the agent to retrieve.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.GetAgentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.GetAgentRequest) + private static final com.google.cloud.ces.v1.GetAgentRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.GetAgentRequest(); + } + + public static com.google.cloud.ces.v1.GetAgentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAgentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetAgentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetAgentRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetAgentRequestOrBuilder.java new file mode 100644 index 000000000000..f37a140af5f1 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetAgentRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface GetAgentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.GetAgentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the agent to retrieve.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. The resource name of the agent to retrieve.
      +   * 
      + * + * + * 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-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetAppRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetAppRequest.java new file mode 100644 index 000000000000..740c6cd63c6d --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetAppRequest.java @@ -0,0 +1,609 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.GetApp][google.cloud.ces.v1.AgentService.GetApp].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.GetAppRequest} + */ +@com.google.protobuf.Generated +public final class GetAppRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.GetAppRequest) + GetAppRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetAppRequest"); + } + + // Use GetAppRequest.newBuilder() to construct. + private GetAppRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAppRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetAppRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetAppRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.GetAppRequest.class, + com.google.cloud.ces.v1.GetAppRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the app to retrieve.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the app to retrieve.
      +   * 
      + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.GetAppRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.GetAppRequest other = (com.google.cloud.ces.v1.GetAppRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.GetAppRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GetAppRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetAppRequest parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GetAppRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetAppRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GetAppRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetAppRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GetAppRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetAppRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GetAppRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetAppRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GetAppRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.GetAppRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.GetApp][google.cloud.ces.v1.AgentService.GetApp].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.GetAppRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.GetAppRequest) + com.google.cloud.ces.v1.GetAppRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetAppRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetAppRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.GetAppRequest.class, + com.google.cloud.ces.v1.GetAppRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.GetAppRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetAppRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetAppRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.GetAppRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetAppRequest build() { + com.google.cloud.ces.v1.GetAppRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetAppRequest buildPartial() { + com.google.cloud.ces.v1.GetAppRequest result = + new com.google.cloud.ces.v1.GetAppRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.GetAppRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.GetAppRequest) { + return mergeFrom((com.google.cloud.ces.v1.GetAppRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.GetAppRequest other) { + if (other == com.google.cloud.ces.v1.GetAppRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the app to retrieve.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to retrieve.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to retrieve.
      +     * 
      + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to retrieve.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to retrieve.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.GetAppRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.GetAppRequest) + private static final com.google.cloud.ces.v1.GetAppRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.GetAppRequest(); + } + + public static com.google.cloud.ces.v1.GetAppRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAppRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetAppRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetAppRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetAppRequestOrBuilder.java new file mode 100644 index 000000000000..fae7d336e074 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetAppRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface GetAppRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.GetAppRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the app to retrieve.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. The resource name of the app to retrieve.
      +   * 
      + * + * + * 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-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetAppVersionRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetAppVersionRequest.java new file mode 100644 index 000000000000..5273bcc503eb --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetAppVersionRequest.java @@ -0,0 +1,611 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.GetAppVersion][google.cloud.ces.v1.AgentService.GetAppVersion].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.GetAppVersionRequest} + */ +@com.google.protobuf.Generated +public final class GetAppVersionRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.GetAppVersionRequest) + GetAppVersionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetAppVersionRequest"); + } + + // Use GetAppVersionRequest.newBuilder() to construct. + private GetAppVersionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAppVersionRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetAppVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetAppVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.GetAppVersionRequest.class, + com.google.cloud.ces.v1.GetAppVersionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the app version to retrieve.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the app version to retrieve.
      +   * 
      + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.GetAppVersionRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.GetAppVersionRequest other = + (com.google.cloud.ces.v1.GetAppVersionRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.GetAppVersionRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GetAppVersionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetAppVersionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GetAppVersionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetAppVersionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GetAppVersionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetAppVersionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GetAppVersionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetAppVersionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GetAppVersionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetAppVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GetAppVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.GetAppVersionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.GetAppVersion][google.cloud.ces.v1.AgentService.GetAppVersion].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.GetAppVersionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.GetAppVersionRequest) + com.google.cloud.ces.v1.GetAppVersionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetAppVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetAppVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.GetAppVersionRequest.class, + com.google.cloud.ces.v1.GetAppVersionRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.GetAppVersionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetAppVersionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetAppVersionRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.GetAppVersionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetAppVersionRequest build() { + com.google.cloud.ces.v1.GetAppVersionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetAppVersionRequest buildPartial() { + com.google.cloud.ces.v1.GetAppVersionRequest result = + new com.google.cloud.ces.v1.GetAppVersionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.GetAppVersionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.GetAppVersionRequest) { + return mergeFrom((com.google.cloud.ces.v1.GetAppVersionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.GetAppVersionRequest other) { + if (other == com.google.cloud.ces.v1.GetAppVersionRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the app version to retrieve.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app version to retrieve.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app version to retrieve.
      +     * 
      + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app version to retrieve.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app version to retrieve.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.GetAppVersionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.GetAppVersionRequest) + private static final com.google.cloud.ces.v1.GetAppVersionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.GetAppVersionRequest(); + } + + public static com.google.cloud.ces.v1.GetAppVersionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAppVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetAppVersionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetAppVersionRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetAppVersionRequestOrBuilder.java new file mode 100644 index 000000000000..7bbd25078f16 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetAppVersionRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface GetAppVersionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.GetAppVersionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the app version to retrieve.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. The resource name of the app version to retrieve.
      +   * 
      + * + * + * 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-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetChangelogRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetChangelogRequest.java new file mode 100644 index 000000000000..eb1388af7405 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetChangelogRequest.java @@ -0,0 +1,611 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.GetChangelog][google.cloud.ces.v1.AgentService.GetChangelog].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.GetChangelogRequest} + */ +@com.google.protobuf.Generated +public final class GetChangelogRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.GetChangelogRequest) + GetChangelogRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetChangelogRequest"); + } + + // Use GetChangelogRequest.newBuilder() to construct. + private GetChangelogRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetChangelogRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetChangelogRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetChangelogRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.GetChangelogRequest.class, + com.google.cloud.ces.v1.GetChangelogRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the changelog to retrieve.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the changelog to retrieve.
      +   * 
      + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.GetChangelogRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.GetChangelogRequest other = + (com.google.cloud.ces.v1.GetChangelogRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.GetChangelogRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GetChangelogRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetChangelogRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GetChangelogRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetChangelogRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GetChangelogRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetChangelogRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GetChangelogRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetChangelogRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GetChangelogRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetChangelogRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GetChangelogRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.GetChangelogRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.GetChangelog][google.cloud.ces.v1.AgentService.GetChangelog].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.GetChangelogRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.GetChangelogRequest) + com.google.cloud.ces.v1.GetChangelogRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetChangelogRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetChangelogRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.GetChangelogRequest.class, + com.google.cloud.ces.v1.GetChangelogRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.GetChangelogRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetChangelogRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetChangelogRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.GetChangelogRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetChangelogRequest build() { + com.google.cloud.ces.v1.GetChangelogRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetChangelogRequest buildPartial() { + com.google.cloud.ces.v1.GetChangelogRequest result = + new com.google.cloud.ces.v1.GetChangelogRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.GetChangelogRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.GetChangelogRequest) { + return mergeFrom((com.google.cloud.ces.v1.GetChangelogRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.GetChangelogRequest other) { + if (other == com.google.cloud.ces.v1.GetChangelogRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the changelog to retrieve.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the changelog to retrieve.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the changelog to retrieve.
      +     * 
      + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the changelog to retrieve.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the changelog to retrieve.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.GetChangelogRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.GetChangelogRequest) + private static final com.google.cloud.ces.v1.GetChangelogRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.GetChangelogRequest(); + } + + public static com.google.cloud.ces.v1.GetChangelogRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetChangelogRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetChangelogRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetChangelogRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetChangelogRequestOrBuilder.java new file mode 100644 index 000000000000..8a4f14d7fb1a --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetChangelogRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface GetChangelogRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.GetChangelogRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the changelog to retrieve.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. The resource name of the changelog to retrieve.
      +   * 
      + * + * + * 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-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetConversationRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetConversationRequest.java new file mode 100644 index 000000000000..5bf4f86418b7 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetConversationRequest.java @@ -0,0 +1,808 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.GetConversation][google.cloud.ces.v1.AgentService.GetConversation].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.GetConversationRequest} + */ +@com.google.protobuf.Generated +public final class GetConversationRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.GetConversationRequest) + GetConversationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetConversationRequest"); + } + + // Use GetConversationRequest.newBuilder() to construct. + private GetConversationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetConversationRequest() { + name_ = ""; + source_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetConversationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetConversationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.GetConversationRequest.class, + com.google.cloud.ces.v1.GetConversationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the conversation to retrieve.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the conversation to retrieve.
      +   * 
      + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_FIELD_NUMBER = 2; + private int source_ = 0; + + /** + * + * + *
      +   * Optional. Indicate the source of the conversation. If not set, all source
      +   * will be searched.
      +   * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.GetConversationRequest.source is deprecated. See + * google/cloud/ces/v1/agent_service.proto;l=1141 + * @return The enum numeric value on the wire for source. + */ + @java.lang.Override + @java.lang.Deprecated + public int getSourceValue() { + return source_; + } + + /** + * + * + *
      +   * Optional. Indicate the source of the conversation. If not set, all source
      +   * will be searched.
      +   * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.GetConversationRequest.source is deprecated. See + * google/cloud/ces/v1/agent_service.proto;l=1141 + * @return The source. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.ces.v1.Conversation.Source getSource() { + com.google.cloud.ces.v1.Conversation.Source result = + com.google.cloud.ces.v1.Conversation.Source.forNumber(source_); + return result == null ? com.google.cloud.ces.v1.Conversation.Source.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (source_ != com.google.cloud.ces.v1.Conversation.Source.SOURCE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, source_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (source_ != com.google.cloud.ces.v1.Conversation.Source.SOURCE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, source_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.GetConversationRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.GetConversationRequest other = + (com.google.cloud.ces.v1.GetConversationRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (source_ != other.source_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + source_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.GetConversationRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GetConversationRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetConversationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GetConversationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetConversationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GetConversationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetConversationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GetConversationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetConversationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GetConversationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetConversationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GetConversationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.GetConversationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.GetConversation][google.cloud.ces.v1.AgentService.GetConversation].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.GetConversationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.GetConversationRequest) + com.google.cloud.ces.v1.GetConversationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetConversationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetConversationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.GetConversationRequest.class, + com.google.cloud.ces.v1.GetConversationRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.GetConversationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + source_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetConversationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetConversationRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.GetConversationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetConversationRequest build() { + com.google.cloud.ces.v1.GetConversationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetConversationRequest buildPartial() { + com.google.cloud.ces.v1.GetConversationRequest result = + new com.google.cloud.ces.v1.GetConversationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.GetConversationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.source_ = source_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.GetConversationRequest) { + return mergeFrom((com.google.cloud.ces.v1.GetConversationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.GetConversationRequest other) { + if (other == com.google.cloud.ces.v1.GetConversationRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.source_ != 0) { + setSourceValue(other.getSourceValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + source_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the conversation to retrieve.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the conversation to retrieve.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the conversation to retrieve.
      +     * 
      + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the conversation to retrieve.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the conversation to retrieve.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int source_ = 0; + + /** + * + * + *
      +     * Optional. Indicate the source of the conversation. If not set, all source
      +     * will be searched.
      +     * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.GetConversationRequest.source is deprecated. See + * google/cloud/ces/v1/agent_service.proto;l=1141 + * @return The enum numeric value on the wire for source. + */ + @java.lang.Override + @java.lang.Deprecated + public int getSourceValue() { + return source_; + } + + /** + * + * + *
      +     * Optional. Indicate the source of the conversation. If not set, all source
      +     * will be searched.
      +     * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.GetConversationRequest.source is deprecated. See + * google/cloud/ces/v1/agent_service.proto;l=1141 + * @param value The enum numeric value on the wire for source to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setSourceValue(int value) { + source_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Indicate the source of the conversation. If not set, all source
      +     * will be searched.
      +     * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.GetConversationRequest.source is deprecated. See + * google/cloud/ces/v1/agent_service.proto;l=1141 + * @return The source. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.ces.v1.Conversation.Source getSource() { + com.google.cloud.ces.v1.Conversation.Source result = + com.google.cloud.ces.v1.Conversation.Source.forNumber(source_); + return result == null ? com.google.cloud.ces.v1.Conversation.Source.UNRECOGNIZED : result; + } + + /** + * + * + *
      +     * Optional. Indicate the source of the conversation. If not set, all source
      +     * will be searched.
      +     * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.GetConversationRequest.source is deprecated. See + * google/cloud/ces/v1/agent_service.proto;l=1141 + * @param value The source to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setSource(com.google.cloud.ces.v1.Conversation.Source value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + source_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Indicate the source of the conversation. If not set, all source
      +     * will be searched.
      +     * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.GetConversationRequest.source is deprecated. See + * google/cloud/ces/v1/agent_service.proto;l=1141 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearSource() { + bitField0_ = (bitField0_ & ~0x00000002); + source_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.GetConversationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.GetConversationRequest) + private static final com.google.cloud.ces.v1.GetConversationRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.GetConversationRequest(); + } + + public static com.google.cloud.ces.v1.GetConversationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConversationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetConversationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetConversationRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetConversationRequestOrBuilder.java new file mode 100644 index 000000000000..ca56322d747c --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetConversationRequestOrBuilder.java @@ -0,0 +1,96 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface GetConversationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.GetConversationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the conversation to retrieve.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. The resource name of the conversation to retrieve.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Optional. Indicate the source of the conversation. If not set, all source
      +   * will be searched.
      +   * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.GetConversationRequest.source is deprecated. See + * google/cloud/ces/v1/agent_service.proto;l=1141 + * @return The enum numeric value on the wire for source. + */ + @java.lang.Deprecated + int getSourceValue(); + + /** + * + * + *
      +   * Optional. Indicate the source of the conversation. If not set, all source
      +   * will be searched.
      +   * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.ces.v1.GetConversationRequest.source is deprecated. See + * google/cloud/ces/v1/agent_service.proto;l=1141 + * @return The source. + */ + @java.lang.Deprecated + com.google.cloud.ces.v1.Conversation.Source getSource(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetDeploymentRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetDeploymentRequest.java new file mode 100644 index 000000000000..9435eb0eb6eb --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetDeploymentRequest.java @@ -0,0 +1,625 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.GetDeployment][google.cloud.ces.v1.AgentService.GetDeployment].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.GetDeploymentRequest} + */ +@com.google.protobuf.Generated +public final class GetDeploymentRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.GetDeploymentRequest) + GetDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetDeploymentRequest"); + } + + // Use GetDeploymentRequest.newBuilder() to construct. + private GetDeploymentRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetDeploymentRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.GetDeploymentRequest.class, + com.google.cloud.ces.v1.GetDeploymentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. The name of the deployment.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The name of the deployment.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +   * 
      + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.GetDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.GetDeploymentRequest other = + (com.google.cloud.ces.v1.GetDeploymentRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.GetDeploymentRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GetDeploymentRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GetDeploymentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetDeploymentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GetDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetDeploymentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GetDeploymentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetDeploymentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GetDeploymentRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GetDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.GetDeploymentRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.GetDeployment][google.cloud.ces.v1.AgentService.GetDeployment].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.GetDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.GetDeploymentRequest) + com.google.cloud.ces.v1.GetDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.GetDeploymentRequest.class, + com.google.cloud.ces.v1.GetDeploymentRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.GetDeploymentRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetDeploymentRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.GetDeploymentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetDeploymentRequest build() { + com.google.cloud.ces.v1.GetDeploymentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetDeploymentRequest buildPartial() { + com.google.cloud.ces.v1.GetDeploymentRequest result = + new com.google.cloud.ces.v1.GetDeploymentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.GetDeploymentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.GetDeploymentRequest) { + return mergeFrom((com.google.cloud.ces.v1.GetDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.GetDeploymentRequest other) { + if (other == com.google.cloud.ces.v1.GetDeploymentRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Required. The name of the deployment.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The name of the deployment.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The name of the deployment.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +     * 
      + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The name of the deployment.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The name of the deployment.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.GetDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.GetDeploymentRequest) + private static final com.google.cloud.ces.v1.GetDeploymentRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.GetDeploymentRequest(); + } + + public static com.google.cloud.ces.v1.GetDeploymentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDeploymentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetDeploymentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetDeploymentRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetDeploymentRequestOrBuilder.java new file mode 100644 index 000000000000..e4697054be7c --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetDeploymentRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface GetDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.GetDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The name of the deployment.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. The name of the deployment.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +   * 
      + * + * + * 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-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetExampleRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetExampleRequest.java new file mode 100644 index 000000000000..29b180225ab0 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetExampleRequest.java @@ -0,0 +1,611 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.GetExample][google.cloud.ces.v1.AgentService.GetExample].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.GetExampleRequest} + */ +@com.google.protobuf.Generated +public final class GetExampleRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.GetExampleRequest) + GetExampleRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetExampleRequest"); + } + + // Use GetExampleRequest.newBuilder() to construct. + private GetExampleRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetExampleRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetExampleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetExampleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.GetExampleRequest.class, + com.google.cloud.ces.v1.GetExampleRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the example to retrieve.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the example to retrieve.
      +   * 
      + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.GetExampleRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.GetExampleRequest other = + (com.google.cloud.ces.v1.GetExampleRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.GetExampleRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GetExampleRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetExampleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GetExampleRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetExampleRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GetExampleRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetExampleRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GetExampleRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetExampleRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GetExampleRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetExampleRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GetExampleRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.GetExampleRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.GetExample][google.cloud.ces.v1.AgentService.GetExample].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.GetExampleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.GetExampleRequest) + com.google.cloud.ces.v1.GetExampleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetExampleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetExampleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.GetExampleRequest.class, + com.google.cloud.ces.v1.GetExampleRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.GetExampleRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetExampleRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetExampleRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.GetExampleRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetExampleRequest build() { + com.google.cloud.ces.v1.GetExampleRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetExampleRequest buildPartial() { + com.google.cloud.ces.v1.GetExampleRequest result = + new com.google.cloud.ces.v1.GetExampleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.GetExampleRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.GetExampleRequest) { + return mergeFrom((com.google.cloud.ces.v1.GetExampleRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.GetExampleRequest other) { + if (other == com.google.cloud.ces.v1.GetExampleRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the example to retrieve.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the example to retrieve.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the example to retrieve.
      +     * 
      + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the example to retrieve.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the example to retrieve.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.GetExampleRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.GetExampleRequest) + private static final com.google.cloud.ces.v1.GetExampleRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.GetExampleRequest(); + } + + public static com.google.cloud.ces.v1.GetExampleRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetExampleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetExampleRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetExampleRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetExampleRequestOrBuilder.java new file mode 100644 index 000000000000..3918471bb285 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetExampleRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface GetExampleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.GetExampleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the example to retrieve.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. The resource name of the example to retrieve.
      +   * 
      + * + * + * 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-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetGuardrailRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetGuardrailRequest.java new file mode 100644 index 000000000000..8c4af06de475 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetGuardrailRequest.java @@ -0,0 +1,611 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.GetGuardrail][google.cloud.ces.v1.AgentService.GetGuardrail].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.GetGuardrailRequest} + */ +@com.google.protobuf.Generated +public final class GetGuardrailRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.GetGuardrailRequest) + GetGuardrailRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetGuardrailRequest"); + } + + // Use GetGuardrailRequest.newBuilder() to construct. + private GetGuardrailRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetGuardrailRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetGuardrailRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetGuardrailRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.GetGuardrailRequest.class, + com.google.cloud.ces.v1.GetGuardrailRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the guardrail to retrieve.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the guardrail to retrieve.
      +   * 
      + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.GetGuardrailRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.GetGuardrailRequest other = + (com.google.cloud.ces.v1.GetGuardrailRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.GetGuardrailRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GetGuardrailRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetGuardrailRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GetGuardrailRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetGuardrailRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GetGuardrailRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetGuardrailRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GetGuardrailRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetGuardrailRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GetGuardrailRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetGuardrailRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GetGuardrailRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.GetGuardrailRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.GetGuardrail][google.cloud.ces.v1.AgentService.GetGuardrail].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.GetGuardrailRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.GetGuardrailRequest) + com.google.cloud.ces.v1.GetGuardrailRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetGuardrailRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetGuardrailRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.GetGuardrailRequest.class, + com.google.cloud.ces.v1.GetGuardrailRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.GetGuardrailRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetGuardrailRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetGuardrailRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.GetGuardrailRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetGuardrailRequest build() { + com.google.cloud.ces.v1.GetGuardrailRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetGuardrailRequest buildPartial() { + com.google.cloud.ces.v1.GetGuardrailRequest result = + new com.google.cloud.ces.v1.GetGuardrailRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.GetGuardrailRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.GetGuardrailRequest) { + return mergeFrom((com.google.cloud.ces.v1.GetGuardrailRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.GetGuardrailRequest other) { + if (other == com.google.cloud.ces.v1.GetGuardrailRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the guardrail to retrieve.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the guardrail to retrieve.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the guardrail to retrieve.
      +     * 
      + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the guardrail to retrieve.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the guardrail to retrieve.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.GetGuardrailRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.GetGuardrailRequest) + private static final com.google.cloud.ces.v1.GetGuardrailRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.GetGuardrailRequest(); + } + + public static com.google.cloud.ces.v1.GetGuardrailRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetGuardrailRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetGuardrailRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetGuardrailRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetGuardrailRequestOrBuilder.java new file mode 100644 index 000000000000..5af8dec11ec2 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetGuardrailRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface GetGuardrailRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.GetGuardrailRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the guardrail to retrieve.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. The resource name of the guardrail to retrieve.
      +   * 
      + * + * + * 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-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetToolRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetToolRequest.java new file mode 100644 index 000000000000..198f5435380a --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetToolRequest.java @@ -0,0 +1,610 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.GetTool][google.cloud.ces.v1.AgentService.GetTool].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.GetToolRequest} + */ +@com.google.protobuf.Generated +public final class GetToolRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.GetToolRequest) + GetToolRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetToolRequest"); + } + + // Use GetToolRequest.newBuilder() to construct. + private GetToolRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetToolRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetToolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetToolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.GetToolRequest.class, + com.google.cloud.ces.v1.GetToolRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the tool to retrieve.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the tool to retrieve.
      +   * 
      + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.GetToolRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.GetToolRequest other = (com.google.cloud.ces.v1.GetToolRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.GetToolRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GetToolRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetToolRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GetToolRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetToolRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GetToolRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetToolRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GetToolRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetToolRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GetToolRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetToolRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GetToolRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.GetToolRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.GetTool][google.cloud.ces.v1.AgentService.GetTool].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.GetToolRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.GetToolRequest) + com.google.cloud.ces.v1.GetToolRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetToolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetToolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.GetToolRequest.class, + com.google.cloud.ces.v1.GetToolRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.GetToolRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetToolRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetToolRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.GetToolRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetToolRequest build() { + com.google.cloud.ces.v1.GetToolRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetToolRequest buildPartial() { + com.google.cloud.ces.v1.GetToolRequest result = + new com.google.cloud.ces.v1.GetToolRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.GetToolRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.GetToolRequest) { + return mergeFrom((com.google.cloud.ces.v1.GetToolRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.GetToolRequest other) { + if (other == com.google.cloud.ces.v1.GetToolRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the tool to retrieve.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the tool to retrieve.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the tool to retrieve.
      +     * 
      + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the tool to retrieve.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the tool to retrieve.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.GetToolRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.GetToolRequest) + private static final com.google.cloud.ces.v1.GetToolRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.GetToolRequest(); + } + + public static com.google.cloud.ces.v1.GetToolRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetToolRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetToolRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetToolRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetToolRequestOrBuilder.java new file mode 100644 index 000000000000..4efd1581de42 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetToolRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface GetToolRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.GetToolRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the tool to retrieve.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. The resource name of the tool to retrieve.
      +   * 
      + * + * + * 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-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetToolsetRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetToolsetRequest.java new file mode 100644 index 000000000000..05bfcc4df8e7 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetToolsetRequest.java @@ -0,0 +1,611 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.GetToolset][google.cloud.ces.v1.AgentService.GetToolset].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.GetToolsetRequest} + */ +@com.google.protobuf.Generated +public final class GetToolsetRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.GetToolsetRequest) + GetToolsetRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetToolsetRequest"); + } + + // Use GetToolsetRequest.newBuilder() to construct. + private GetToolsetRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetToolsetRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetToolsetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetToolsetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.GetToolsetRequest.class, + com.google.cloud.ces.v1.GetToolsetRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the toolset to retrieve.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the toolset to retrieve.
      +   * 
      + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.GetToolsetRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.GetToolsetRequest other = + (com.google.cloud.ces.v1.GetToolsetRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.GetToolsetRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GetToolsetRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetToolsetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GetToolsetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetToolsetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GetToolsetRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetToolsetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GetToolsetRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetToolsetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GetToolsetRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GetToolsetRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GetToolsetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.GetToolsetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.GetToolset][google.cloud.ces.v1.AgentService.GetToolset].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.GetToolsetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.GetToolsetRequest) + com.google.cloud.ces.v1.GetToolsetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetToolsetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetToolsetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.GetToolsetRequest.class, + com.google.cloud.ces.v1.GetToolsetRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.GetToolsetRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_GetToolsetRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetToolsetRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.GetToolsetRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetToolsetRequest build() { + com.google.cloud.ces.v1.GetToolsetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetToolsetRequest buildPartial() { + com.google.cloud.ces.v1.GetToolsetRequest result = + new com.google.cloud.ces.v1.GetToolsetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.GetToolsetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.GetToolsetRequest) { + return mergeFrom((com.google.cloud.ces.v1.GetToolsetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.GetToolsetRequest other) { + if (other == com.google.cloud.ces.v1.GetToolsetRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the toolset to retrieve.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the toolset to retrieve.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the toolset to retrieve.
      +     * 
      + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the toolset to retrieve.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the toolset to retrieve.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.GetToolsetRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.GetToolsetRequest) + private static final com.google.cloud.ces.v1.GetToolsetRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.GetToolsetRequest(); + } + + public static com.google.cloud.ces.v1.GetToolsetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetToolsetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GetToolsetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetToolsetRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetToolsetRequestOrBuilder.java new file mode 100644 index 000000000000..a8d1581c07a7 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GetToolsetRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface GetToolsetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.GetToolsetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the toolset to retrieve.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. The resource name of the toolset to retrieve.
      +   * 
      + * + * + * 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-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GoAway.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GoAway.java new file mode 100644 index 000000000000..6eda39259ed7 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GoAway.java @@ -0,0 +1,392 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Indicates that the server will disconnect soon and the client should
      + * half-close and restart the connection.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.GoAway} + */ +@com.google.protobuf.Generated +public final class GoAway extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.GoAway) + GoAwayOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GoAway"); + } + + // Use GoAway.newBuilder() to construct. + private GoAway(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GoAway() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_GoAway_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_GoAway_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.GoAway.class, com.google.cloud.ces.v1.GoAway.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.GoAway)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.GoAway other = (com.google.cloud.ces.v1.GoAway) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.GoAway parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GoAway parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GoAway parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GoAway parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GoAway parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GoAway parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GoAway parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GoAway parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GoAway parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GoAway parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GoAway parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GoAway parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.GoAway prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Indicates that the server will disconnect soon and the client should
      +   * half-close and restart the connection.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.GoAway} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.GoAway) + com.google.cloud.ces.v1.GoAwayOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_GoAway_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_GoAway_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.GoAway.class, com.google.cloud.ces.v1.GoAway.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.GoAway.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_GoAway_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GoAway getDefaultInstanceForType() { + return com.google.cloud.ces.v1.GoAway.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.GoAway build() { + com.google.cloud.ces.v1.GoAway result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GoAway buildPartial() { + com.google.cloud.ces.v1.GoAway result = new com.google.cloud.ces.v1.GoAway(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.GoAway) { + return mergeFrom((com.google.cloud.ces.v1.GoAway) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.GoAway other) { + if (other == com.google.cloud.ces.v1.GoAway.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.GoAway) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.GoAway) + private static final com.google.cloud.ces.v1.GoAway DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.GoAway(); + } + + public static com.google.cloud.ces.v1.GoAway getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GoAway parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GoAway getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GoAwayOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GoAwayOrBuilder.java new file mode 100644 index 000000000000..c83c346992c6 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GoAwayOrBuilder.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface GoAwayOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.GoAway) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GoogleSearchSuggestions.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GoogleSearchSuggestions.java new file mode 100644 index 000000000000..b98502649a9b --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GoogleSearchSuggestions.java @@ -0,0 +1,1281 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/search_suggestions.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Search suggestions from [Google Search
      + * Tool][google.cloud.ces.v1.GoogleSearchTool].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.GoogleSearchSuggestions} + */ +@com.google.protobuf.Generated +public final class GoogleSearchSuggestions extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.GoogleSearchSuggestions) + GoogleSearchSuggestionsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GoogleSearchSuggestions"); + } + + // Use GoogleSearchSuggestions.newBuilder() to construct. + private GoogleSearchSuggestions(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GoogleSearchSuggestions() { + htmls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + webSearchQueries_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SearchSuggestionsProto + .internal_static_google_cloud_ces_v1_GoogleSearchSuggestions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SearchSuggestionsProto + .internal_static_google_cloud_ces_v1_GoogleSearchSuggestions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.GoogleSearchSuggestions.class, + com.google.cloud.ces.v1.GoogleSearchSuggestions.Builder.class); + } + + public static final int HTMLS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList htmls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +   * Compliant HTML and CSS styling for search suggestions.
      +   * The provided HTML and CSS automatically adapts to your device settings,
      +   * displaying in either light or dark mode indicated by
      +   * `@media(prefers-color-scheme)`.
      +   * 
      + * + * repeated string htmls = 1; + * + * @return A list containing the htmls. + */ + public com.google.protobuf.ProtocolStringList getHtmlsList() { + return htmls_; + } + + /** + * + * + *
      +   * Compliant HTML and CSS styling for search suggestions.
      +   * The provided HTML and CSS automatically adapts to your device settings,
      +   * displaying in either light or dark mode indicated by
      +   * `@media(prefers-color-scheme)`.
      +   * 
      + * + * repeated string htmls = 1; + * + * @return The count of htmls. + */ + public int getHtmlsCount() { + return htmls_.size(); + } + + /** + * + * + *
      +   * Compliant HTML and CSS styling for search suggestions.
      +   * The provided HTML and CSS automatically adapts to your device settings,
      +   * displaying in either light or dark mode indicated by
      +   * `@media(prefers-color-scheme)`.
      +   * 
      + * + * repeated string htmls = 1; + * + * @param index The index of the element to return. + * @return The htmls at the given index. + */ + public java.lang.String getHtmls(int index) { + return htmls_.get(index); + } + + /** + * + * + *
      +   * Compliant HTML and CSS styling for search suggestions.
      +   * The provided HTML and CSS automatically adapts to your device settings,
      +   * displaying in either light or dark mode indicated by
      +   * `@media(prefers-color-scheme)`.
      +   * 
      + * + * repeated string htmls = 1; + * + * @param index The index of the value to return. + * @return The bytes of the htmls at the given index. + */ + public com.google.protobuf.ByteString getHtmlsBytes(int index) { + return htmls_.getByteString(index); + } + + public static final int WEB_SEARCH_QUERIES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List webSearchQueries_; + + /** + * + * + *
      +   * List of queries used to perform the google search along with the search
      +   * result URIs forming the search suggestions.
      +   * 
      + * + * repeated .google.cloud.ces.v1.WebSearchQuery web_search_queries = 2; + */ + @java.lang.Override + public java.util.List getWebSearchQueriesList() { + return webSearchQueries_; + } + + /** + * + * + *
      +   * List of queries used to perform the google search along with the search
      +   * result URIs forming the search suggestions.
      +   * 
      + * + * repeated .google.cloud.ces.v1.WebSearchQuery web_search_queries = 2; + */ + @java.lang.Override + public java.util.List + getWebSearchQueriesOrBuilderList() { + return webSearchQueries_; + } + + /** + * + * + *
      +   * List of queries used to perform the google search along with the search
      +   * result URIs forming the search suggestions.
      +   * 
      + * + * repeated .google.cloud.ces.v1.WebSearchQuery web_search_queries = 2; + */ + @java.lang.Override + public int getWebSearchQueriesCount() { + return webSearchQueries_.size(); + } + + /** + * + * + *
      +   * List of queries used to perform the google search along with the search
      +   * result URIs forming the search suggestions.
      +   * 
      + * + * repeated .google.cloud.ces.v1.WebSearchQuery web_search_queries = 2; + */ + @java.lang.Override + public com.google.cloud.ces.v1.WebSearchQuery getWebSearchQueries(int index) { + return webSearchQueries_.get(index); + } + + /** + * + * + *
      +   * List of queries used to perform the google search along with the search
      +   * result URIs forming the search suggestions.
      +   * 
      + * + * repeated .google.cloud.ces.v1.WebSearchQuery web_search_queries = 2; + */ + @java.lang.Override + public com.google.cloud.ces.v1.WebSearchQueryOrBuilder getWebSearchQueriesOrBuilder(int index) { + return webSearchQueries_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < htmls_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, htmls_.getRaw(i)); + } + for (int i = 0; i < webSearchQueries_.size(); i++) { + output.writeMessage(2, webSearchQueries_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < htmls_.size(); i++) { + dataSize += computeStringSizeNoTag(htmls_.getRaw(i)); + } + size += dataSize; + size += 1 * getHtmlsList().size(); + } + for (int i = 0; i < webSearchQueries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, webSearchQueries_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.GoogleSearchSuggestions)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.GoogleSearchSuggestions other = + (com.google.cloud.ces.v1.GoogleSearchSuggestions) obj; + + if (!getHtmlsList().equals(other.getHtmlsList())) return false; + if (!getWebSearchQueriesList().equals(other.getWebSearchQueriesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getHtmlsCount() > 0) { + hash = (37 * hash) + HTMLS_FIELD_NUMBER; + hash = (53 * hash) + getHtmlsList().hashCode(); + } + if (getWebSearchQueriesCount() > 0) { + hash = (37 * hash) + WEB_SEARCH_QUERIES_FIELD_NUMBER; + hash = (53 * hash) + getWebSearchQueriesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.GoogleSearchSuggestions parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GoogleSearchSuggestions parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GoogleSearchSuggestions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GoogleSearchSuggestions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GoogleSearchSuggestions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GoogleSearchSuggestions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GoogleSearchSuggestions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GoogleSearchSuggestions parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GoogleSearchSuggestions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GoogleSearchSuggestions parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GoogleSearchSuggestions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GoogleSearchSuggestions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.GoogleSearchSuggestions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Search suggestions from [Google Search
      +   * Tool][google.cloud.ces.v1.GoogleSearchTool].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.GoogleSearchSuggestions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.GoogleSearchSuggestions) + com.google.cloud.ces.v1.GoogleSearchSuggestionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SearchSuggestionsProto + .internal_static_google_cloud_ces_v1_GoogleSearchSuggestions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SearchSuggestionsProto + .internal_static_google_cloud_ces_v1_GoogleSearchSuggestions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.GoogleSearchSuggestions.class, + com.google.cloud.ces.v1.GoogleSearchSuggestions.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.GoogleSearchSuggestions.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + htmls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + if (webSearchQueriesBuilder_ == null) { + webSearchQueries_ = java.util.Collections.emptyList(); + } else { + webSearchQueries_ = null; + webSearchQueriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.SearchSuggestionsProto + .internal_static_google_cloud_ces_v1_GoogleSearchSuggestions_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GoogleSearchSuggestions getDefaultInstanceForType() { + return com.google.cloud.ces.v1.GoogleSearchSuggestions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.GoogleSearchSuggestions build() { + com.google.cloud.ces.v1.GoogleSearchSuggestions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GoogleSearchSuggestions buildPartial() { + com.google.cloud.ces.v1.GoogleSearchSuggestions result = + new com.google.cloud.ces.v1.GoogleSearchSuggestions(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.ces.v1.GoogleSearchSuggestions result) { + if (webSearchQueriesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + webSearchQueries_ = java.util.Collections.unmodifiableList(webSearchQueries_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.webSearchQueries_ = webSearchQueries_; + } else { + result.webSearchQueries_ = webSearchQueriesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.GoogleSearchSuggestions result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + htmls_.makeImmutable(); + result.htmls_ = htmls_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.GoogleSearchSuggestions) { + return mergeFrom((com.google.cloud.ces.v1.GoogleSearchSuggestions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.GoogleSearchSuggestions other) { + if (other == com.google.cloud.ces.v1.GoogleSearchSuggestions.getDefaultInstance()) + return this; + if (!other.htmls_.isEmpty()) { + if (htmls_.isEmpty()) { + htmls_ = other.htmls_; + bitField0_ |= 0x00000001; + } else { + ensureHtmlsIsMutable(); + htmls_.addAll(other.htmls_); + } + onChanged(); + } + if (webSearchQueriesBuilder_ == null) { + if (!other.webSearchQueries_.isEmpty()) { + if (webSearchQueries_.isEmpty()) { + webSearchQueries_ = other.webSearchQueries_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureWebSearchQueriesIsMutable(); + webSearchQueries_.addAll(other.webSearchQueries_); + } + onChanged(); + } + } else { + if (!other.webSearchQueries_.isEmpty()) { + if (webSearchQueriesBuilder_.isEmpty()) { + webSearchQueriesBuilder_.dispose(); + webSearchQueriesBuilder_ = null; + webSearchQueries_ = other.webSearchQueries_; + bitField0_ = (bitField0_ & ~0x00000002); + webSearchQueriesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetWebSearchQueriesFieldBuilder() + : null; + } else { + webSearchQueriesBuilder_.addAllMessages(other.webSearchQueries_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureHtmlsIsMutable(); + htmls_.add(s); + break; + } // case 10 + case 18: + { + com.google.cloud.ces.v1.WebSearchQuery m = + input.readMessage( + com.google.cloud.ces.v1.WebSearchQuery.parser(), extensionRegistry); + if (webSearchQueriesBuilder_ == null) { + ensureWebSearchQueriesIsMutable(); + webSearchQueries_.add(m); + } else { + webSearchQueriesBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList htmls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureHtmlsIsMutable() { + if (!htmls_.isModifiable()) { + htmls_ = new com.google.protobuf.LazyStringArrayList(htmls_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
      +     * Compliant HTML and CSS styling for search suggestions.
      +     * The provided HTML and CSS automatically adapts to your device settings,
      +     * displaying in either light or dark mode indicated by
      +     * `@media(prefers-color-scheme)`.
      +     * 
      + * + * repeated string htmls = 1; + * + * @return A list containing the htmls. + */ + public com.google.protobuf.ProtocolStringList getHtmlsList() { + htmls_.makeImmutable(); + return htmls_; + } + + /** + * + * + *
      +     * Compliant HTML and CSS styling for search suggestions.
      +     * The provided HTML and CSS automatically adapts to your device settings,
      +     * displaying in either light or dark mode indicated by
      +     * `@media(prefers-color-scheme)`.
      +     * 
      + * + * repeated string htmls = 1; + * + * @return The count of htmls. + */ + public int getHtmlsCount() { + return htmls_.size(); + } + + /** + * + * + *
      +     * Compliant HTML and CSS styling for search suggestions.
      +     * The provided HTML and CSS automatically adapts to your device settings,
      +     * displaying in either light or dark mode indicated by
      +     * `@media(prefers-color-scheme)`.
      +     * 
      + * + * repeated string htmls = 1; + * + * @param index The index of the element to return. + * @return The htmls at the given index. + */ + public java.lang.String getHtmls(int index) { + return htmls_.get(index); + } + + /** + * + * + *
      +     * Compliant HTML and CSS styling for search suggestions.
      +     * The provided HTML and CSS automatically adapts to your device settings,
      +     * displaying in either light or dark mode indicated by
      +     * `@media(prefers-color-scheme)`.
      +     * 
      + * + * repeated string htmls = 1; + * + * @param index The index of the value to return. + * @return The bytes of the htmls at the given index. + */ + public com.google.protobuf.ByteString getHtmlsBytes(int index) { + return htmls_.getByteString(index); + } + + /** + * + * + *
      +     * Compliant HTML and CSS styling for search suggestions.
      +     * The provided HTML and CSS automatically adapts to your device settings,
      +     * displaying in either light or dark mode indicated by
      +     * `@media(prefers-color-scheme)`.
      +     * 
      + * + * repeated string htmls = 1; + * + * @param index The index to set the value at. + * @param value The htmls to set. + * @return This builder for chaining. + */ + public Builder setHtmls(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureHtmlsIsMutable(); + htmls_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Compliant HTML and CSS styling for search suggestions.
      +     * The provided HTML and CSS automatically adapts to your device settings,
      +     * displaying in either light or dark mode indicated by
      +     * `@media(prefers-color-scheme)`.
      +     * 
      + * + * repeated string htmls = 1; + * + * @param value The htmls to add. + * @return This builder for chaining. + */ + public Builder addHtmls(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureHtmlsIsMutable(); + htmls_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Compliant HTML and CSS styling for search suggestions.
      +     * The provided HTML and CSS automatically adapts to your device settings,
      +     * displaying in either light or dark mode indicated by
      +     * `@media(prefers-color-scheme)`.
      +     * 
      + * + * repeated string htmls = 1; + * + * @param values The htmls to add. + * @return This builder for chaining. + */ + public Builder addAllHtmls(java.lang.Iterable values) { + ensureHtmlsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, htmls_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Compliant HTML and CSS styling for search suggestions.
      +     * The provided HTML and CSS automatically adapts to your device settings,
      +     * displaying in either light or dark mode indicated by
      +     * `@media(prefers-color-scheme)`.
      +     * 
      + * + * repeated string htmls = 1; + * + * @return This builder for chaining. + */ + public Builder clearHtmls() { + htmls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Compliant HTML and CSS styling for search suggestions.
      +     * The provided HTML and CSS automatically adapts to your device settings,
      +     * displaying in either light or dark mode indicated by
      +     * `@media(prefers-color-scheme)`.
      +     * 
      + * + * repeated string htmls = 1; + * + * @param value The bytes of the htmls to add. + * @return This builder for chaining. + */ + public Builder addHtmlsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureHtmlsIsMutable(); + htmls_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List webSearchQueries_ = + java.util.Collections.emptyList(); + + private void ensureWebSearchQueriesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + webSearchQueries_ = + new java.util.ArrayList(webSearchQueries_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.WebSearchQuery, + com.google.cloud.ces.v1.WebSearchQuery.Builder, + com.google.cloud.ces.v1.WebSearchQueryOrBuilder> + webSearchQueriesBuilder_; + + /** + * + * + *
      +     * List of queries used to perform the google search along with the search
      +     * result URIs forming the search suggestions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.WebSearchQuery web_search_queries = 2; + */ + public java.util.List getWebSearchQueriesList() { + if (webSearchQueriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(webSearchQueries_); + } else { + return webSearchQueriesBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * List of queries used to perform the google search along with the search
      +     * result URIs forming the search suggestions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.WebSearchQuery web_search_queries = 2; + */ + public int getWebSearchQueriesCount() { + if (webSearchQueriesBuilder_ == null) { + return webSearchQueries_.size(); + } else { + return webSearchQueriesBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * List of queries used to perform the google search along with the search
      +     * result URIs forming the search suggestions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.WebSearchQuery web_search_queries = 2; + */ + public com.google.cloud.ces.v1.WebSearchQuery getWebSearchQueries(int index) { + if (webSearchQueriesBuilder_ == null) { + return webSearchQueries_.get(index); + } else { + return webSearchQueriesBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * List of queries used to perform the google search along with the search
      +     * result URIs forming the search suggestions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.WebSearchQuery web_search_queries = 2; + */ + public Builder setWebSearchQueries(int index, com.google.cloud.ces.v1.WebSearchQuery value) { + if (webSearchQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWebSearchQueriesIsMutable(); + webSearchQueries_.set(index, value); + onChanged(); + } else { + webSearchQueriesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * List of queries used to perform the google search along with the search
      +     * result URIs forming the search suggestions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.WebSearchQuery web_search_queries = 2; + */ + public Builder setWebSearchQueries( + int index, com.google.cloud.ces.v1.WebSearchQuery.Builder builderForValue) { + if (webSearchQueriesBuilder_ == null) { + ensureWebSearchQueriesIsMutable(); + webSearchQueries_.set(index, builderForValue.build()); + onChanged(); + } else { + webSearchQueriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * List of queries used to perform the google search along with the search
      +     * result URIs forming the search suggestions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.WebSearchQuery web_search_queries = 2; + */ + public Builder addWebSearchQueries(com.google.cloud.ces.v1.WebSearchQuery value) { + if (webSearchQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWebSearchQueriesIsMutable(); + webSearchQueries_.add(value); + onChanged(); + } else { + webSearchQueriesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * List of queries used to perform the google search along with the search
      +     * result URIs forming the search suggestions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.WebSearchQuery web_search_queries = 2; + */ + public Builder addWebSearchQueries(int index, com.google.cloud.ces.v1.WebSearchQuery value) { + if (webSearchQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWebSearchQueriesIsMutable(); + webSearchQueries_.add(index, value); + onChanged(); + } else { + webSearchQueriesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * List of queries used to perform the google search along with the search
      +     * result URIs forming the search suggestions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.WebSearchQuery web_search_queries = 2; + */ + public Builder addWebSearchQueries( + com.google.cloud.ces.v1.WebSearchQuery.Builder builderForValue) { + if (webSearchQueriesBuilder_ == null) { + ensureWebSearchQueriesIsMutable(); + webSearchQueries_.add(builderForValue.build()); + onChanged(); + } else { + webSearchQueriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * List of queries used to perform the google search along with the search
      +     * result URIs forming the search suggestions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.WebSearchQuery web_search_queries = 2; + */ + public Builder addWebSearchQueries( + int index, com.google.cloud.ces.v1.WebSearchQuery.Builder builderForValue) { + if (webSearchQueriesBuilder_ == null) { + ensureWebSearchQueriesIsMutable(); + webSearchQueries_.add(index, builderForValue.build()); + onChanged(); + } else { + webSearchQueriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * List of queries used to perform the google search along with the search
      +     * result URIs forming the search suggestions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.WebSearchQuery web_search_queries = 2; + */ + public Builder addAllWebSearchQueries( + java.lang.Iterable values) { + if (webSearchQueriesBuilder_ == null) { + ensureWebSearchQueriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, webSearchQueries_); + onChanged(); + } else { + webSearchQueriesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * List of queries used to perform the google search along with the search
      +     * result URIs forming the search suggestions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.WebSearchQuery web_search_queries = 2; + */ + public Builder clearWebSearchQueries() { + if (webSearchQueriesBuilder_ == null) { + webSearchQueries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + webSearchQueriesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * List of queries used to perform the google search along with the search
      +     * result URIs forming the search suggestions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.WebSearchQuery web_search_queries = 2; + */ + public Builder removeWebSearchQueries(int index) { + if (webSearchQueriesBuilder_ == null) { + ensureWebSearchQueriesIsMutable(); + webSearchQueries_.remove(index); + onChanged(); + } else { + webSearchQueriesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * List of queries used to perform the google search along with the search
      +     * result URIs forming the search suggestions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.WebSearchQuery web_search_queries = 2; + */ + public com.google.cloud.ces.v1.WebSearchQuery.Builder getWebSearchQueriesBuilder(int index) { + return internalGetWebSearchQueriesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * List of queries used to perform the google search along with the search
      +     * result URIs forming the search suggestions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.WebSearchQuery web_search_queries = 2; + */ + public com.google.cloud.ces.v1.WebSearchQueryOrBuilder getWebSearchQueriesOrBuilder(int index) { + if (webSearchQueriesBuilder_ == null) { + return webSearchQueries_.get(index); + } else { + return webSearchQueriesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * List of queries used to perform the google search along with the search
      +     * result URIs forming the search suggestions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.WebSearchQuery web_search_queries = 2; + */ + public java.util.List + getWebSearchQueriesOrBuilderList() { + if (webSearchQueriesBuilder_ != null) { + return webSearchQueriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(webSearchQueries_); + } + } + + /** + * + * + *
      +     * List of queries used to perform the google search along with the search
      +     * result URIs forming the search suggestions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.WebSearchQuery web_search_queries = 2; + */ + public com.google.cloud.ces.v1.WebSearchQuery.Builder addWebSearchQueriesBuilder() { + return internalGetWebSearchQueriesFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.WebSearchQuery.getDefaultInstance()); + } + + /** + * + * + *
      +     * List of queries used to perform the google search along with the search
      +     * result URIs forming the search suggestions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.WebSearchQuery web_search_queries = 2; + */ + public com.google.cloud.ces.v1.WebSearchQuery.Builder addWebSearchQueriesBuilder(int index) { + return internalGetWebSearchQueriesFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.WebSearchQuery.getDefaultInstance()); + } + + /** + * + * + *
      +     * List of queries used to perform the google search along with the search
      +     * result URIs forming the search suggestions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.WebSearchQuery web_search_queries = 2; + */ + public java.util.List + getWebSearchQueriesBuilderList() { + return internalGetWebSearchQueriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.WebSearchQuery, + com.google.cloud.ces.v1.WebSearchQuery.Builder, + com.google.cloud.ces.v1.WebSearchQueryOrBuilder> + internalGetWebSearchQueriesFieldBuilder() { + if (webSearchQueriesBuilder_ == null) { + webSearchQueriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.WebSearchQuery, + com.google.cloud.ces.v1.WebSearchQuery.Builder, + com.google.cloud.ces.v1.WebSearchQueryOrBuilder>( + webSearchQueries_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + webSearchQueries_ = null; + } + return webSearchQueriesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.GoogleSearchSuggestions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.GoogleSearchSuggestions) + private static final com.google.cloud.ces.v1.GoogleSearchSuggestions DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.GoogleSearchSuggestions(); + } + + public static com.google.cloud.ces.v1.GoogleSearchSuggestions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GoogleSearchSuggestions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GoogleSearchSuggestions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GoogleSearchSuggestionsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GoogleSearchSuggestionsOrBuilder.java new file mode 100644 index 000000000000..1602d83ee6f5 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GoogleSearchSuggestionsOrBuilder.java @@ -0,0 +1,155 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/search_suggestions.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface GoogleSearchSuggestionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.GoogleSearchSuggestions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Compliant HTML and CSS styling for search suggestions.
      +   * The provided HTML and CSS automatically adapts to your device settings,
      +   * displaying in either light or dark mode indicated by
      +   * `@media(prefers-color-scheme)`.
      +   * 
      + * + * repeated string htmls = 1; + * + * @return A list containing the htmls. + */ + java.util.List getHtmlsList(); + + /** + * + * + *
      +   * Compliant HTML and CSS styling for search suggestions.
      +   * The provided HTML and CSS automatically adapts to your device settings,
      +   * displaying in either light or dark mode indicated by
      +   * `@media(prefers-color-scheme)`.
      +   * 
      + * + * repeated string htmls = 1; + * + * @return The count of htmls. + */ + int getHtmlsCount(); + + /** + * + * + *
      +   * Compliant HTML and CSS styling for search suggestions.
      +   * The provided HTML and CSS automatically adapts to your device settings,
      +   * displaying in either light or dark mode indicated by
      +   * `@media(prefers-color-scheme)`.
      +   * 
      + * + * repeated string htmls = 1; + * + * @param index The index of the element to return. + * @return The htmls at the given index. + */ + java.lang.String getHtmls(int index); + + /** + * + * + *
      +   * Compliant HTML and CSS styling for search suggestions.
      +   * The provided HTML and CSS automatically adapts to your device settings,
      +   * displaying in either light or dark mode indicated by
      +   * `@media(prefers-color-scheme)`.
      +   * 
      + * + * repeated string htmls = 1; + * + * @param index The index of the value to return. + * @return The bytes of the htmls at the given index. + */ + com.google.protobuf.ByteString getHtmlsBytes(int index); + + /** + * + * + *
      +   * List of queries used to perform the google search along with the search
      +   * result URIs forming the search suggestions.
      +   * 
      + * + * repeated .google.cloud.ces.v1.WebSearchQuery web_search_queries = 2; + */ + java.util.List getWebSearchQueriesList(); + + /** + * + * + *
      +   * List of queries used to perform the google search along with the search
      +   * result URIs forming the search suggestions.
      +   * 
      + * + * repeated .google.cloud.ces.v1.WebSearchQuery web_search_queries = 2; + */ + com.google.cloud.ces.v1.WebSearchQuery getWebSearchQueries(int index); + + /** + * + * + *
      +   * List of queries used to perform the google search along with the search
      +   * result URIs forming the search suggestions.
      +   * 
      + * + * repeated .google.cloud.ces.v1.WebSearchQuery web_search_queries = 2; + */ + int getWebSearchQueriesCount(); + + /** + * + * + *
      +   * List of queries used to perform the google search along with the search
      +   * result URIs forming the search suggestions.
      +   * 
      + * + * repeated .google.cloud.ces.v1.WebSearchQuery web_search_queries = 2; + */ + java.util.List + getWebSearchQueriesOrBuilderList(); + + /** + * + * + *
      +   * List of queries used to perform the google search along with the search
      +   * result URIs forming the search suggestions.
      +   * 
      + * + * repeated .google.cloud.ces.v1.WebSearchQuery web_search_queries = 2; + */ + com.google.cloud.ces.v1.WebSearchQueryOrBuilder getWebSearchQueriesOrBuilder(int index); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GoogleSearchTool.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GoogleSearchTool.java new file mode 100644 index 000000000000..58d4d7a6fdd0 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GoogleSearchTool.java @@ -0,0 +1,2928 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/google_search_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Represents a tool to perform Google web searches for grounding.
      + * See
      + * https://cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool#google-search.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.GoogleSearchTool} + */ +@com.google.protobuf.Generated +public final class GoogleSearchTool extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.GoogleSearchTool) + GoogleSearchToolOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GoogleSearchTool"); + } + + // Use GoogleSearchTool.newBuilder() to construct. + private GoogleSearchTool(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GoogleSearchTool() { + name_ = ""; + description_ = ""; + contextUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + preferredDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludeDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.GoogleSearchToolProto + .internal_static_google_cloud_ces_v1_GoogleSearchTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.GoogleSearchToolProto + .internal_static_google_cloud_ces_v1_GoogleSearchTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.GoogleSearchTool.class, + com.google.cloud.ces.v1.GoogleSearchTool.Builder.class); + } + + public interface PromptConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.GoogleSearchTool.PromptConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Optional. Defines the prompt used for the system instructions when
      +     * interacting with the agent in chat conversations. If not set, default
      +     * prompt will be used.
      +     * 
      + * + * string text_prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The textPrompt. + */ + java.lang.String getTextPrompt(); + + /** + * + * + *
      +     * Optional. Defines the prompt used for the system instructions when
      +     * interacting with the agent in chat conversations. If not set, default
      +     * prompt will be used.
      +     * 
      + * + * string text_prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for textPrompt. + */ + com.google.protobuf.ByteString getTextPromptBytes(); + + /** + * + * + *
      +     * Optional. Defines the prompt used for the system instructions when
      +     * interacting with the agent in voice conversations. If not set, default
      +     * prompt will be used.
      +     * 
      + * + * string voice_prompt = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The voicePrompt. + */ + java.lang.String getVoicePrompt(); + + /** + * + * + *
      +     * Optional. Defines the prompt used for the system instructions when
      +     * interacting with the agent in voice conversations. If not set, default
      +     * prompt will be used.
      +     * 
      + * + * string voice_prompt = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for voicePrompt. + */ + com.google.protobuf.ByteString getVoicePromptBytes(); + } + + /** + * + * + *
      +   * Prompt settings used by the model when processing or summarizing the
      +   * google search results.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.GoogleSearchTool.PromptConfig} + */ + public static final class PromptConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.GoogleSearchTool.PromptConfig) + PromptConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PromptConfig"); + } + + // Use PromptConfig.newBuilder() to construct. + private PromptConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PromptConfig() { + textPrompt_ = ""; + voicePrompt_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.GoogleSearchToolProto + .internal_static_google_cloud_ces_v1_GoogleSearchTool_PromptConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.GoogleSearchToolProto + .internal_static_google_cloud_ces_v1_GoogleSearchTool_PromptConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig.class, + com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig.Builder.class); + } + + public static final int TEXT_PROMPT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object textPrompt_ = ""; + + /** + * + * + *
      +     * Optional. Defines the prompt used for the system instructions when
      +     * interacting with the agent in chat conversations. If not set, default
      +     * prompt will be used.
      +     * 
      + * + * string text_prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The textPrompt. + */ + @java.lang.Override + public java.lang.String getTextPrompt() { + java.lang.Object ref = textPrompt_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + textPrompt_ = s; + return s; + } + } + + /** + * + * + *
      +     * Optional. Defines the prompt used for the system instructions when
      +     * interacting with the agent in chat conversations. If not set, default
      +     * prompt will be used.
      +     * 
      + * + * string text_prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for textPrompt. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextPromptBytes() { + java.lang.Object ref = textPrompt_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + textPrompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VOICE_PROMPT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object voicePrompt_ = ""; + + /** + * + * + *
      +     * Optional. Defines the prompt used for the system instructions when
      +     * interacting with the agent in voice conversations. If not set, default
      +     * prompt will be used.
      +     * 
      + * + * string voice_prompt = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The voicePrompt. + */ + @java.lang.Override + public java.lang.String getVoicePrompt() { + java.lang.Object ref = voicePrompt_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + voicePrompt_ = s; + return s; + } + } + + /** + * + * + *
      +     * Optional. Defines the prompt used for the system instructions when
      +     * interacting with the agent in voice conversations. If not set, default
      +     * prompt will be used.
      +     * 
      + * + * string voice_prompt = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for voicePrompt. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVoicePromptBytes() { + java.lang.Object ref = voicePrompt_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + voicePrompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(textPrompt_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, textPrompt_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(voicePrompt_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, voicePrompt_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(textPrompt_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, textPrompt_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(voicePrompt_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, voicePrompt_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig other = + (com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig) obj; + + if (!getTextPrompt().equals(other.getTextPrompt())) return false; + if (!getVoicePrompt().equals(other.getVoicePrompt())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TEXT_PROMPT_FIELD_NUMBER; + hash = (53 * hash) + getTextPrompt().hashCode(); + hash = (37 * hash) + VOICE_PROMPT_FIELD_NUMBER; + hash = (53 * hash) + getVoicePrompt().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Prompt settings used by the model when processing or summarizing the
      +     * google search results.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.GoogleSearchTool.PromptConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.GoogleSearchTool.PromptConfig) + com.google.cloud.ces.v1.GoogleSearchTool.PromptConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.GoogleSearchToolProto + .internal_static_google_cloud_ces_v1_GoogleSearchTool_PromptConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.GoogleSearchToolProto + .internal_static_google_cloud_ces_v1_GoogleSearchTool_PromptConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig.class, + com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + textPrompt_ = ""; + voicePrompt_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.GoogleSearchToolProto + .internal_static_google_cloud_ces_v1_GoogleSearchTool_PromptConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig build() { + com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig buildPartial() { + com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig result = + new com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.textPrompt_ = textPrompt_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.voicePrompt_ = voicePrompt_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig) { + return mergeFrom((com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig other) { + if (other == com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig.getDefaultInstance()) + return this; + if (!other.getTextPrompt().isEmpty()) { + textPrompt_ = other.textPrompt_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getVoicePrompt().isEmpty()) { + voicePrompt_ = other.voicePrompt_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + textPrompt_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + voicePrompt_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object textPrompt_ = ""; + + /** + * + * + *
      +       * Optional. Defines the prompt used for the system instructions when
      +       * interacting with the agent in chat conversations. If not set, default
      +       * prompt will be used.
      +       * 
      + * + * string text_prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The textPrompt. + */ + public java.lang.String getTextPrompt() { + java.lang.Object ref = textPrompt_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + textPrompt_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Optional. Defines the prompt used for the system instructions when
      +       * interacting with the agent in chat conversations. If not set, default
      +       * prompt will be used.
      +       * 
      + * + * string text_prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for textPrompt. + */ + public com.google.protobuf.ByteString getTextPromptBytes() { + java.lang.Object ref = textPrompt_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + textPrompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Optional. Defines the prompt used for the system instructions when
      +       * interacting with the agent in chat conversations. If not set, default
      +       * prompt will be used.
      +       * 
      + * + * string text_prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The textPrompt to set. + * @return This builder for chaining. + */ + public Builder setTextPrompt(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + textPrompt_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. Defines the prompt used for the system instructions when
      +       * interacting with the agent in chat conversations. If not set, default
      +       * prompt will be used.
      +       * 
      + * + * string text_prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTextPrompt() { + textPrompt_ = getDefaultInstance().getTextPrompt(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. Defines the prompt used for the system instructions when
      +       * interacting with the agent in chat conversations. If not set, default
      +       * prompt will be used.
      +       * 
      + * + * string text_prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for textPrompt to set. + * @return This builder for chaining. + */ + public Builder setTextPromptBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + textPrompt_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object voicePrompt_ = ""; + + /** + * + * + *
      +       * Optional. Defines the prompt used for the system instructions when
      +       * interacting with the agent in voice conversations. If not set, default
      +       * prompt will be used.
      +       * 
      + * + * string voice_prompt = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The voicePrompt. + */ + public java.lang.String getVoicePrompt() { + java.lang.Object ref = voicePrompt_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + voicePrompt_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Optional. Defines the prompt used for the system instructions when
      +       * interacting with the agent in voice conversations. If not set, default
      +       * prompt will be used.
      +       * 
      + * + * string voice_prompt = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for voicePrompt. + */ + public com.google.protobuf.ByteString getVoicePromptBytes() { + java.lang.Object ref = voicePrompt_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + voicePrompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Optional. Defines the prompt used for the system instructions when
      +       * interacting with the agent in voice conversations. If not set, default
      +       * prompt will be used.
      +       * 
      + * + * string voice_prompt = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The voicePrompt to set. + * @return This builder for chaining. + */ + public Builder setVoicePrompt(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + voicePrompt_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. Defines the prompt used for the system instructions when
      +       * interacting with the agent in voice conversations. If not set, default
      +       * prompt will be used.
      +       * 
      + * + * string voice_prompt = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearVoicePrompt() { + voicePrompt_ = getDefaultInstance().getVoicePrompt(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. Defines the prompt used for the system instructions when
      +       * interacting with the agent in voice conversations. If not set, default
      +       * prompt will be used.
      +       * 
      + * + * string voice_prompt = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for voicePrompt to set. + * @return This builder for chaining. + */ + public Builder setVoicePromptBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + voicePrompt_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.GoogleSearchTool.PromptConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.GoogleSearchTool.PromptConfig) + private static final com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig(); + } + + public static com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PromptConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. The name of the tool.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The name of the tool.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
      +   * Optional. Description of the tool's purpose.
      +   * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. Description of the tool's purpose.
      +   * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTEXT_URLS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList contextUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +   * Optional. Content will be fetched directly from these URLs for context and
      +   * grounding. Example: "https://example.com/path.html". A maximum of 20 URLs
      +   * are allowed.
      +   * 
      + * + * repeated string context_urls = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the contextUrls. + */ + public com.google.protobuf.ProtocolStringList getContextUrlsList() { + return contextUrls_; + } + + /** + * + * + *
      +   * Optional. Content will be fetched directly from these URLs for context and
      +   * grounding. Example: "https://example.com/path.html". A maximum of 20 URLs
      +   * are allowed.
      +   * 
      + * + * repeated string context_urls = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of contextUrls. + */ + public int getContextUrlsCount() { + return contextUrls_.size(); + } + + /** + * + * + *
      +   * Optional. Content will be fetched directly from these URLs for context and
      +   * grounding. Example: "https://example.com/path.html". A maximum of 20 URLs
      +   * are allowed.
      +   * 
      + * + * repeated string context_urls = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The contextUrls at the given index. + */ + public java.lang.String getContextUrls(int index) { + return contextUrls_.get(index); + } + + /** + * + * + *
      +   * Optional. Content will be fetched directly from these URLs for context and
      +   * grounding. Example: "https://example.com/path.html". A maximum of 20 URLs
      +   * are allowed.
      +   * 
      + * + * repeated string context_urls = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the contextUrls at the given index. + */ + public com.google.protobuf.ByteString getContextUrlsBytes(int index) { + return contextUrls_.getByteString(index); + } + + public static final int PREFERRED_DOMAINS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList preferredDomains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +   * Optional. Specifies domains to restrict search results to.
      +   * Example: "example.com", "another.site". A maximum of 20 domains can be
      +   * specified.
      +   * 
      + * + * repeated string preferred_domains = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the preferredDomains. + */ + public com.google.protobuf.ProtocolStringList getPreferredDomainsList() { + return preferredDomains_; + } + + /** + * + * + *
      +   * Optional. Specifies domains to restrict search results to.
      +   * Example: "example.com", "another.site". A maximum of 20 domains can be
      +   * specified.
      +   * 
      + * + * repeated string preferred_domains = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of preferredDomains. + */ + public int getPreferredDomainsCount() { + return preferredDomains_.size(); + } + + /** + * + * + *
      +   * Optional. Specifies domains to restrict search results to.
      +   * Example: "example.com", "another.site". A maximum of 20 domains can be
      +   * specified.
      +   * 
      + * + * repeated string preferred_domains = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The preferredDomains at the given index. + */ + public java.lang.String getPreferredDomains(int index) { + return preferredDomains_.get(index); + } + + /** + * + * + *
      +   * Optional. Specifies domains to restrict search results to.
      +   * Example: "example.com", "another.site". A maximum of 20 domains can be
      +   * specified.
      +   * 
      + * + * repeated string preferred_domains = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the preferredDomains at the given index. + */ + public com.google.protobuf.ByteString getPreferredDomainsBytes(int index) { + return preferredDomains_.getByteString(index); + } + + public static final int EXCLUDE_DOMAINS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludeDomains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +   * Optional. List of domains to be excluded from the search results.
      +   * Example: "example.com".
      +   * A maximum of 2000 domains can be excluded.
      +   * 
      + * + * repeated string exclude_domains = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the excludeDomains. + */ + public com.google.protobuf.ProtocolStringList getExcludeDomainsList() { + return excludeDomains_; + } + + /** + * + * + *
      +   * Optional. List of domains to be excluded from the search results.
      +   * Example: "example.com".
      +   * A maximum of 2000 domains can be excluded.
      +   * 
      + * + * repeated string exclude_domains = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of excludeDomains. + */ + public int getExcludeDomainsCount() { + return excludeDomains_.size(); + } + + /** + * + * + *
      +   * Optional. List of domains to be excluded from the search results.
      +   * Example: "example.com".
      +   * A maximum of 2000 domains can be excluded.
      +   * 
      + * + * repeated string exclude_domains = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The excludeDomains at the given index. + */ + public java.lang.String getExcludeDomains(int index) { + return excludeDomains_.get(index); + } + + /** + * + * + *
      +   * Optional. List of domains to be excluded from the search results.
      +   * Example: "example.com".
      +   * A maximum of 2000 domains can be excluded.
      +   * 
      + * + * repeated string exclude_domains = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the excludeDomains at the given index. + */ + public com.google.protobuf.ByteString getExcludeDomainsBytes(int index) { + return excludeDomains_.getByteString(index); + } + + public static final int PROMPT_CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig promptConfig_; + + /** + * + * + *
      +   * Optional. Prompt instructions passed to planner on how the search results
      +   * should be processed for text and voice.
      +   * 
      + * + * + * .google.cloud.ces.v1.GoogleSearchTool.PromptConfig prompt_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the promptConfig field is set. + */ + @java.lang.Override + public boolean hasPromptConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Optional. Prompt instructions passed to planner on how the search results
      +   * should be processed for text and voice.
      +   * 
      + * + * + * .google.cloud.ces.v1.GoogleSearchTool.PromptConfig prompt_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The promptConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig getPromptConfig() { + return promptConfig_ == null + ? com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig.getDefaultInstance() + : promptConfig_; + } + + /** + * + * + *
      +   * Optional. Prompt instructions passed to planner on how the search results
      +   * should be processed for text and voice.
      +   * 
      + * + * + * .google.cloud.ces.v1.GoogleSearchTool.PromptConfig prompt_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.GoogleSearchTool.PromptConfigOrBuilder getPromptConfigOrBuilder() { + return promptConfig_ == null + ? com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig.getDefaultInstance() + : promptConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); + } + for (int i = 0; i < contextUrls_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, contextUrls_.getRaw(i)); + } + for (int i = 0; i < excludeDomains_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, excludeDomains_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getPromptConfig()); + } + for (int i = 0; i < preferredDomains_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, preferredDomains_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); + } + { + int dataSize = 0; + for (int i = 0; i < contextUrls_.size(); i++) { + dataSize += computeStringSizeNoTag(contextUrls_.getRaw(i)); + } + size += dataSize; + size += 1 * getContextUrlsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < excludeDomains_.size(); i++) { + dataSize += computeStringSizeNoTag(excludeDomains_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludeDomainsList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getPromptConfig()); + } + { + int dataSize = 0; + for (int i = 0; i < preferredDomains_.size(); i++) { + dataSize += computeStringSizeNoTag(preferredDomains_.getRaw(i)); + } + size += dataSize; + size += 1 * getPreferredDomainsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.GoogleSearchTool)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.GoogleSearchTool other = (com.google.cloud.ces.v1.GoogleSearchTool) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getContextUrlsList().equals(other.getContextUrlsList())) return false; + if (!getPreferredDomainsList().equals(other.getPreferredDomainsList())) return false; + if (!getExcludeDomainsList().equals(other.getExcludeDomainsList())) return false; + if (hasPromptConfig() != other.hasPromptConfig()) return false; + if (hasPromptConfig()) { + if (!getPromptConfig().equals(other.getPromptConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (getContextUrlsCount() > 0) { + hash = (37 * hash) + CONTEXT_URLS_FIELD_NUMBER; + hash = (53 * hash) + getContextUrlsList().hashCode(); + } + if (getPreferredDomainsCount() > 0) { + hash = (37 * hash) + PREFERRED_DOMAINS_FIELD_NUMBER; + hash = (53 * hash) + getPreferredDomainsList().hashCode(); + } + if (getExcludeDomainsCount() > 0) { + hash = (37 * hash) + EXCLUDE_DOMAINS_FIELD_NUMBER; + hash = (53 * hash) + getExcludeDomainsList().hashCode(); + } + if (hasPromptConfig()) { + hash = (37 * hash) + PROMPT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPromptConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.GoogleSearchTool parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GoogleSearchTool parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GoogleSearchTool parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GoogleSearchTool parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GoogleSearchTool parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.GoogleSearchTool parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GoogleSearchTool parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GoogleSearchTool parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GoogleSearchTool parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GoogleSearchTool parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.GoogleSearchTool parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.GoogleSearchTool parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.GoogleSearchTool prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Represents a tool to perform Google web searches for grounding.
      +   * See
      +   * https://cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool#google-search.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.GoogleSearchTool} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.GoogleSearchTool) + com.google.cloud.ces.v1.GoogleSearchToolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.GoogleSearchToolProto + .internal_static_google_cloud_ces_v1_GoogleSearchTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.GoogleSearchToolProto + .internal_static_google_cloud_ces_v1_GoogleSearchTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.GoogleSearchTool.class, + com.google.cloud.ces.v1.GoogleSearchTool.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.GoogleSearchTool.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetPromptConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + description_ = ""; + contextUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + preferredDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludeDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + promptConfig_ = null; + if (promptConfigBuilder_ != null) { + promptConfigBuilder_.dispose(); + promptConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.GoogleSearchToolProto + .internal_static_google_cloud_ces_v1_GoogleSearchTool_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GoogleSearchTool getDefaultInstanceForType() { + return com.google.cloud.ces.v1.GoogleSearchTool.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.GoogleSearchTool build() { + com.google.cloud.ces.v1.GoogleSearchTool result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GoogleSearchTool buildPartial() { + com.google.cloud.ces.v1.GoogleSearchTool result = + new com.google.cloud.ces.v1.GoogleSearchTool(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.GoogleSearchTool result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + contextUrls_.makeImmutable(); + result.contextUrls_ = contextUrls_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + preferredDomains_.makeImmutable(); + result.preferredDomains_ = preferredDomains_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + excludeDomains_.makeImmutable(); + result.excludeDomains_ = excludeDomains_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.promptConfig_ = + promptConfigBuilder_ == null ? promptConfig_ : promptConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.GoogleSearchTool) { + return mergeFrom((com.google.cloud.ces.v1.GoogleSearchTool) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.GoogleSearchTool other) { + if (other == com.google.cloud.ces.v1.GoogleSearchTool.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.contextUrls_.isEmpty()) { + if (contextUrls_.isEmpty()) { + contextUrls_ = other.contextUrls_; + bitField0_ |= 0x00000004; + } else { + ensureContextUrlsIsMutable(); + contextUrls_.addAll(other.contextUrls_); + } + onChanged(); + } + if (!other.preferredDomains_.isEmpty()) { + if (preferredDomains_.isEmpty()) { + preferredDomains_ = other.preferredDomains_; + bitField0_ |= 0x00000008; + } else { + ensurePreferredDomainsIsMutable(); + preferredDomains_.addAll(other.preferredDomains_); + } + onChanged(); + } + if (!other.excludeDomains_.isEmpty()) { + if (excludeDomains_.isEmpty()) { + excludeDomains_ = other.excludeDomains_; + bitField0_ |= 0x00000010; + } else { + ensureExcludeDomainsIsMutable(); + excludeDomains_.addAll(other.excludeDomains_); + } + onChanged(); + } + if (other.hasPromptConfig()) { + mergePromptConfig(other.getPromptConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureContextUrlsIsMutable(); + contextUrls_.add(s); + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludeDomainsIsMutable(); + excludeDomains_.add(s); + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetPromptConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePreferredDomainsIsMutable(); + preferredDomains_.add(s); + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Required. The name of the tool.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The name of the tool.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The name of the tool.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The name of the tool.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The name of the tool.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
      +     * Optional. Description of the tool's purpose.
      +     * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Description of the tool's purpose.
      +     * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Description of the tool's purpose.
      +     * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Description of the tool's purpose.
      +     * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Description of the tool's purpose.
      +     * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList contextUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureContextUrlsIsMutable() { + if (!contextUrls_.isModifiable()) { + contextUrls_ = new com.google.protobuf.LazyStringArrayList(contextUrls_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
      +     * Optional. Content will be fetched directly from these URLs for context and
      +     * grounding. Example: "https://example.com/path.html". A maximum of 20 URLs
      +     * are allowed.
      +     * 
      + * + * repeated string context_urls = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the contextUrls. + */ + public com.google.protobuf.ProtocolStringList getContextUrlsList() { + contextUrls_.makeImmutable(); + return contextUrls_; + } + + /** + * + * + *
      +     * Optional. Content will be fetched directly from these URLs for context and
      +     * grounding. Example: "https://example.com/path.html". A maximum of 20 URLs
      +     * are allowed.
      +     * 
      + * + * repeated string context_urls = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of contextUrls. + */ + public int getContextUrlsCount() { + return contextUrls_.size(); + } + + /** + * + * + *
      +     * Optional. Content will be fetched directly from these URLs for context and
      +     * grounding. Example: "https://example.com/path.html". A maximum of 20 URLs
      +     * are allowed.
      +     * 
      + * + * repeated string context_urls = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The contextUrls at the given index. + */ + public java.lang.String getContextUrls(int index) { + return contextUrls_.get(index); + } + + /** + * + * + *
      +     * Optional. Content will be fetched directly from these URLs for context and
      +     * grounding. Example: "https://example.com/path.html". A maximum of 20 URLs
      +     * are allowed.
      +     * 
      + * + * repeated string context_urls = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the contextUrls at the given index. + */ + public com.google.protobuf.ByteString getContextUrlsBytes(int index) { + return contextUrls_.getByteString(index); + } + + /** + * + * + *
      +     * Optional. Content will be fetched directly from these URLs for context and
      +     * grounding. Example: "https://example.com/path.html". A maximum of 20 URLs
      +     * are allowed.
      +     * 
      + * + * repeated string context_urls = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The contextUrls to set. + * @return This builder for chaining. + */ + public Builder setContextUrls(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureContextUrlsIsMutable(); + contextUrls_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Content will be fetched directly from these URLs for context and
      +     * grounding. Example: "https://example.com/path.html". A maximum of 20 URLs
      +     * are allowed.
      +     * 
      + * + * repeated string context_urls = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The contextUrls to add. + * @return This builder for chaining. + */ + public Builder addContextUrls(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureContextUrlsIsMutable(); + contextUrls_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Content will be fetched directly from these URLs for context and
      +     * grounding. Example: "https://example.com/path.html". A maximum of 20 URLs
      +     * are allowed.
      +     * 
      + * + * repeated string context_urls = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The contextUrls to add. + * @return This builder for chaining. + */ + public Builder addAllContextUrls(java.lang.Iterable values) { + ensureContextUrlsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contextUrls_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Content will be fetched directly from these URLs for context and
      +     * grounding. Example: "https://example.com/path.html". A maximum of 20 URLs
      +     * are allowed.
      +     * 
      + * + * repeated string context_urls = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearContextUrls() { + contextUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Content will be fetched directly from these URLs for context and
      +     * grounding. Example: "https://example.com/path.html". A maximum of 20 URLs
      +     * are allowed.
      +     * 
      + * + * repeated string context_urls = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the contextUrls to add. + * @return This builder for chaining. + */ + public Builder addContextUrlsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureContextUrlsIsMutable(); + contextUrls_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList preferredDomains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePreferredDomainsIsMutable() { + if (!preferredDomains_.isModifiable()) { + preferredDomains_ = new com.google.protobuf.LazyStringArrayList(preferredDomains_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
      +     * Optional. Specifies domains to restrict search results to.
      +     * Example: "example.com", "another.site". A maximum of 20 domains can be
      +     * specified.
      +     * 
      + * + * repeated string preferred_domains = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the preferredDomains. + */ + public com.google.protobuf.ProtocolStringList getPreferredDomainsList() { + preferredDomains_.makeImmutable(); + return preferredDomains_; + } + + /** + * + * + *
      +     * Optional. Specifies domains to restrict search results to.
      +     * Example: "example.com", "another.site". A maximum of 20 domains can be
      +     * specified.
      +     * 
      + * + * repeated string preferred_domains = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of preferredDomains. + */ + public int getPreferredDomainsCount() { + return preferredDomains_.size(); + } + + /** + * + * + *
      +     * Optional. Specifies domains to restrict search results to.
      +     * Example: "example.com", "another.site". A maximum of 20 domains can be
      +     * specified.
      +     * 
      + * + * repeated string preferred_domains = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The preferredDomains at the given index. + */ + public java.lang.String getPreferredDomains(int index) { + return preferredDomains_.get(index); + } + + /** + * + * + *
      +     * Optional. Specifies domains to restrict search results to.
      +     * Example: "example.com", "another.site". A maximum of 20 domains can be
      +     * specified.
      +     * 
      + * + * repeated string preferred_domains = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the preferredDomains at the given index. + */ + public com.google.protobuf.ByteString getPreferredDomainsBytes(int index) { + return preferredDomains_.getByteString(index); + } + + /** + * + * + *
      +     * Optional. Specifies domains to restrict search results to.
      +     * Example: "example.com", "another.site". A maximum of 20 domains can be
      +     * specified.
      +     * 
      + * + * repeated string preferred_domains = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The preferredDomains to set. + * @return This builder for chaining. + */ + public Builder setPreferredDomains(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePreferredDomainsIsMutable(); + preferredDomains_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Specifies domains to restrict search results to.
      +     * Example: "example.com", "another.site". A maximum of 20 domains can be
      +     * specified.
      +     * 
      + * + * repeated string preferred_domains = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The preferredDomains to add. + * @return This builder for chaining. + */ + public Builder addPreferredDomains(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePreferredDomainsIsMutable(); + preferredDomains_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Specifies domains to restrict search results to.
      +     * Example: "example.com", "another.site". A maximum of 20 domains can be
      +     * specified.
      +     * 
      + * + * repeated string preferred_domains = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The preferredDomains to add. + * @return This builder for chaining. + */ + public Builder addAllPreferredDomains(java.lang.Iterable values) { + ensurePreferredDomainsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, preferredDomains_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Specifies domains to restrict search results to.
      +     * Example: "example.com", "another.site". A maximum of 20 domains can be
      +     * specified.
      +     * 
      + * + * repeated string preferred_domains = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPreferredDomains() { + preferredDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Specifies domains to restrict search results to.
      +     * Example: "example.com", "another.site". A maximum of 20 domains can be
      +     * specified.
      +     * 
      + * + * repeated string preferred_domains = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the preferredDomains to add. + * @return This builder for chaining. + */ + public Builder addPreferredDomainsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePreferredDomainsIsMutable(); + preferredDomains_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList excludeDomains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludeDomainsIsMutable() { + if (!excludeDomains_.isModifiable()) { + excludeDomains_ = new com.google.protobuf.LazyStringArrayList(excludeDomains_); + } + bitField0_ |= 0x00000010; + } + + /** + * + * + *
      +     * Optional. List of domains to be excluded from the search results.
      +     * Example: "example.com".
      +     * A maximum of 2000 domains can be excluded.
      +     * 
      + * + * repeated string exclude_domains = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the excludeDomains. + */ + public com.google.protobuf.ProtocolStringList getExcludeDomainsList() { + excludeDomains_.makeImmutable(); + return excludeDomains_; + } + + /** + * + * + *
      +     * Optional. List of domains to be excluded from the search results.
      +     * Example: "example.com".
      +     * A maximum of 2000 domains can be excluded.
      +     * 
      + * + * repeated string exclude_domains = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of excludeDomains. + */ + public int getExcludeDomainsCount() { + return excludeDomains_.size(); + } + + /** + * + * + *
      +     * Optional. List of domains to be excluded from the search results.
      +     * Example: "example.com".
      +     * A maximum of 2000 domains can be excluded.
      +     * 
      + * + * repeated string exclude_domains = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The excludeDomains at the given index. + */ + public java.lang.String getExcludeDomains(int index) { + return excludeDomains_.get(index); + } + + /** + * + * + *
      +     * Optional. List of domains to be excluded from the search results.
      +     * Example: "example.com".
      +     * A maximum of 2000 domains can be excluded.
      +     * 
      + * + * repeated string exclude_domains = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the excludeDomains at the given index. + */ + public com.google.protobuf.ByteString getExcludeDomainsBytes(int index) { + return excludeDomains_.getByteString(index); + } + + /** + * + * + *
      +     * Optional. List of domains to be excluded from the search results.
      +     * Example: "example.com".
      +     * A maximum of 2000 domains can be excluded.
      +     * 
      + * + * repeated string exclude_domains = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The excludeDomains to set. + * @return This builder for chaining. + */ + public Builder setExcludeDomains(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludeDomainsIsMutable(); + excludeDomains_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. List of domains to be excluded from the search results.
      +     * Example: "example.com".
      +     * A maximum of 2000 domains can be excluded.
      +     * 
      + * + * repeated string exclude_domains = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The excludeDomains to add. + * @return This builder for chaining. + */ + public Builder addExcludeDomains(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludeDomainsIsMutable(); + excludeDomains_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. List of domains to be excluded from the search results.
      +     * Example: "example.com".
      +     * A maximum of 2000 domains can be excluded.
      +     * 
      + * + * repeated string exclude_domains = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The excludeDomains to add. + * @return This builder for chaining. + */ + public Builder addAllExcludeDomains(java.lang.Iterable values) { + ensureExcludeDomainsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludeDomains_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. List of domains to be excluded from the search results.
      +     * Example: "example.com".
      +     * A maximum of 2000 domains can be excluded.
      +     * 
      + * + * repeated string exclude_domains = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearExcludeDomains() { + excludeDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. List of domains to be excluded from the search results.
      +     * Example: "example.com".
      +     * A maximum of 2000 domains can be excluded.
      +     * 
      + * + * repeated string exclude_domains = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the excludeDomains to add. + * @return This builder for chaining. + */ + public Builder addExcludeDomainsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludeDomainsIsMutable(); + excludeDomains_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig promptConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig, + com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig.Builder, + com.google.cloud.ces.v1.GoogleSearchTool.PromptConfigOrBuilder> + promptConfigBuilder_; + + /** + * + * + *
      +     * Optional. Prompt instructions passed to planner on how the search results
      +     * should be processed for text and voice.
      +     * 
      + * + * + * .google.cloud.ces.v1.GoogleSearchTool.PromptConfig prompt_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the promptConfig field is set. + */ + public boolean hasPromptConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +     * Optional. Prompt instructions passed to planner on how the search results
      +     * should be processed for text and voice.
      +     * 
      + * + * + * .google.cloud.ces.v1.GoogleSearchTool.PromptConfig prompt_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The promptConfig. + */ + public com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig getPromptConfig() { + if (promptConfigBuilder_ == null) { + return promptConfig_ == null + ? com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig.getDefaultInstance() + : promptConfig_; + } else { + return promptConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Prompt instructions passed to planner on how the search results
      +     * should be processed for text and voice.
      +     * 
      + * + * + * .google.cloud.ces.v1.GoogleSearchTool.PromptConfig prompt_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPromptConfig(com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig value) { + if (promptConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + promptConfig_ = value; + } else { + promptConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Prompt instructions passed to planner on how the search results
      +     * should be processed for text and voice.
      +     * 
      + * + * + * .google.cloud.ces.v1.GoogleSearchTool.PromptConfig prompt_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPromptConfig( + com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig.Builder builderForValue) { + if (promptConfigBuilder_ == null) { + promptConfig_ = builderForValue.build(); + } else { + promptConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Prompt instructions passed to planner on how the search results
      +     * should be processed for text and voice.
      +     * 
      + * + * + * .google.cloud.ces.v1.GoogleSearchTool.PromptConfig prompt_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePromptConfig(com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig value) { + if (promptConfigBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && promptConfig_ != null + && promptConfig_ + != com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig.getDefaultInstance()) { + getPromptConfigBuilder().mergeFrom(value); + } else { + promptConfig_ = value; + } + } else { + promptConfigBuilder_.mergeFrom(value); + } + if (promptConfig_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Prompt instructions passed to planner on how the search results
      +     * should be processed for text and voice.
      +     * 
      + * + * + * .google.cloud.ces.v1.GoogleSearchTool.PromptConfig prompt_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPromptConfig() { + bitField0_ = (bitField0_ & ~0x00000020); + promptConfig_ = null; + if (promptConfigBuilder_ != null) { + promptConfigBuilder_.dispose(); + promptConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Prompt instructions passed to planner on how the search results
      +     * should be processed for text and voice.
      +     * 
      + * + * + * .google.cloud.ces.v1.GoogleSearchTool.PromptConfig prompt_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig.Builder getPromptConfigBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetPromptConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Prompt instructions passed to planner on how the search results
      +     * should be processed for text and voice.
      +     * 
      + * + * + * .google.cloud.ces.v1.GoogleSearchTool.PromptConfig prompt_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.GoogleSearchTool.PromptConfigOrBuilder + getPromptConfigOrBuilder() { + if (promptConfigBuilder_ != null) { + return promptConfigBuilder_.getMessageOrBuilder(); + } else { + return promptConfig_ == null + ? com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig.getDefaultInstance() + : promptConfig_; + } + } + + /** + * + * + *
      +     * Optional. Prompt instructions passed to planner on how the search results
      +     * should be processed for text and voice.
      +     * 
      + * + * + * .google.cloud.ces.v1.GoogleSearchTool.PromptConfig prompt_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig, + com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig.Builder, + com.google.cloud.ces.v1.GoogleSearchTool.PromptConfigOrBuilder> + internalGetPromptConfigFieldBuilder() { + if (promptConfigBuilder_ == null) { + promptConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig, + com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig.Builder, + com.google.cloud.ces.v1.GoogleSearchTool.PromptConfigOrBuilder>( + getPromptConfig(), getParentForChildren(), isClean()); + promptConfig_ = null; + } + return promptConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.GoogleSearchTool) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.GoogleSearchTool) + private static final com.google.cloud.ces.v1.GoogleSearchTool DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.GoogleSearchTool(); + } + + public static com.google.cloud.ces.v1.GoogleSearchTool getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GoogleSearchTool parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.GoogleSearchTool getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GoogleSearchToolOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GoogleSearchToolOrBuilder.java new file mode 100644 index 000000000000..47847e022dc8 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GoogleSearchToolOrBuilder.java @@ -0,0 +1,312 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/google_search_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface GoogleSearchToolOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.GoogleSearchTool) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The name of the tool.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. The name of the tool.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Optional. Description of the tool's purpose.
      +   * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
      +   * Optional. Description of the tool's purpose.
      +   * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
      +   * Optional. Content will be fetched directly from these URLs for context and
      +   * grounding. Example: "https://example.com/path.html". A maximum of 20 URLs
      +   * are allowed.
      +   * 
      + * + * repeated string context_urls = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the contextUrls. + */ + java.util.List getContextUrlsList(); + + /** + * + * + *
      +   * Optional. Content will be fetched directly from these URLs for context and
      +   * grounding. Example: "https://example.com/path.html". A maximum of 20 URLs
      +   * are allowed.
      +   * 
      + * + * repeated string context_urls = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of contextUrls. + */ + int getContextUrlsCount(); + + /** + * + * + *
      +   * Optional. Content will be fetched directly from these URLs for context and
      +   * grounding. Example: "https://example.com/path.html". A maximum of 20 URLs
      +   * are allowed.
      +   * 
      + * + * repeated string context_urls = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The contextUrls at the given index. + */ + java.lang.String getContextUrls(int index); + + /** + * + * + *
      +   * Optional. Content will be fetched directly from these URLs for context and
      +   * grounding. Example: "https://example.com/path.html". A maximum of 20 URLs
      +   * are allowed.
      +   * 
      + * + * repeated string context_urls = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the contextUrls at the given index. + */ + com.google.protobuf.ByteString getContextUrlsBytes(int index); + + /** + * + * + *
      +   * Optional. Specifies domains to restrict search results to.
      +   * Example: "example.com", "another.site". A maximum of 20 domains can be
      +   * specified.
      +   * 
      + * + * repeated string preferred_domains = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the preferredDomains. + */ + java.util.List getPreferredDomainsList(); + + /** + * + * + *
      +   * Optional. Specifies domains to restrict search results to.
      +   * Example: "example.com", "another.site". A maximum of 20 domains can be
      +   * specified.
      +   * 
      + * + * repeated string preferred_domains = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of preferredDomains. + */ + int getPreferredDomainsCount(); + + /** + * + * + *
      +   * Optional. Specifies domains to restrict search results to.
      +   * Example: "example.com", "another.site". A maximum of 20 domains can be
      +   * specified.
      +   * 
      + * + * repeated string preferred_domains = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The preferredDomains at the given index. + */ + java.lang.String getPreferredDomains(int index); + + /** + * + * + *
      +   * Optional. Specifies domains to restrict search results to.
      +   * Example: "example.com", "another.site". A maximum of 20 domains can be
      +   * specified.
      +   * 
      + * + * repeated string preferred_domains = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the preferredDomains at the given index. + */ + com.google.protobuf.ByteString getPreferredDomainsBytes(int index); + + /** + * + * + *
      +   * Optional. List of domains to be excluded from the search results.
      +   * Example: "example.com".
      +   * A maximum of 2000 domains can be excluded.
      +   * 
      + * + * repeated string exclude_domains = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the excludeDomains. + */ + java.util.List getExcludeDomainsList(); + + /** + * + * + *
      +   * Optional. List of domains to be excluded from the search results.
      +   * Example: "example.com".
      +   * A maximum of 2000 domains can be excluded.
      +   * 
      + * + * repeated string exclude_domains = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of excludeDomains. + */ + int getExcludeDomainsCount(); + + /** + * + * + *
      +   * Optional. List of domains to be excluded from the search results.
      +   * Example: "example.com".
      +   * A maximum of 2000 domains can be excluded.
      +   * 
      + * + * repeated string exclude_domains = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The excludeDomains at the given index. + */ + java.lang.String getExcludeDomains(int index); + + /** + * + * + *
      +   * Optional. List of domains to be excluded from the search results.
      +   * Example: "example.com".
      +   * A maximum of 2000 domains can be excluded.
      +   * 
      + * + * repeated string exclude_domains = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the excludeDomains at the given index. + */ + com.google.protobuf.ByteString getExcludeDomainsBytes(int index); + + /** + * + * + *
      +   * Optional. Prompt instructions passed to planner on how the search results
      +   * should be processed for text and voice.
      +   * 
      + * + * + * .google.cloud.ces.v1.GoogleSearchTool.PromptConfig prompt_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the promptConfig field is set. + */ + boolean hasPromptConfig(); + + /** + * + * + *
      +   * Optional. Prompt instructions passed to planner on how the search results
      +   * should be processed for text and voice.
      +   * 
      + * + * + * .google.cloud.ces.v1.GoogleSearchTool.PromptConfig prompt_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The promptConfig. + */ + com.google.cloud.ces.v1.GoogleSearchTool.PromptConfig getPromptConfig(); + + /** + * + * + *
      +   * Optional. Prompt instructions passed to planner on how the search results
      +   * should be processed for text and voice.
      +   * 
      + * + * + * .google.cloud.ces.v1.GoogleSearchTool.PromptConfig prompt_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.GoogleSearchTool.PromptConfigOrBuilder getPromptConfigOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GoogleSearchToolProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GoogleSearchToolProto.java new file mode 100644 index 000000000000..dfc6c06568fe --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GoogleSearchToolProto.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/google_search_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class GoogleSearchToolProto extends com.google.protobuf.GeneratedFile { + private GoogleSearchToolProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GoogleSearchToolProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_GoogleSearchTool_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_GoogleSearchTool_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_GoogleSearchTool_PromptConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_GoogleSearchTool_PromptConfig_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + ",google/cloud/ces/v1/google_search_tool" + + ".proto\022\023google.cloud.ces.v1\032\037google/api/field_behavior.proto\"\255\002\n" + + "\020GoogleSearchTool\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\022\030\n" + + "\013description\030\002 \001(\tB\003\340A\001\022\031\n" + + "\014context_urls\030\003 \003(\tB\003\340A\001\022\036\n" + + "\021preferred_domains\030\006 \003(\tB\003\340A\001\022\034\n" + + "\017exclude_domains\030\004 \003(\tB\003\340A\001\022N\n\r" + + "prompt_config\030\005 \001(\01322" + + ".google.cloud.ces.v1.GoogleSearchTool.PromptConfigB\003\340A\001\032C\n" + + "\014PromptConfig\022\030\n" + + "\013text_prompt\030\001 \001(\tB\003\340A\001\022\031\n" + + "\014voice_prompt\030\002 \001(\tB\003\340A\001B]\n" + + "\027com.google.cloud.ces.v1B\025GoogleSearchToolProtoP\001Z)cloud.google.com/go/ce" + + "s/apiv1/cespb;cespbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_GoogleSearchTool_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_GoogleSearchTool_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_GoogleSearchTool_descriptor, + new java.lang.String[] { + "Name", + "Description", + "ContextUrls", + "PreferredDomains", + "ExcludeDomains", + "PromptConfig", + }); + internal_static_google_cloud_ces_v1_GoogleSearchTool_PromptConfig_descriptor = + internal_static_google_cloud_ces_v1_GoogleSearchTool_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_GoogleSearchTool_PromptConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_GoogleSearchTool_PromptConfig_descriptor, + new java.lang.String[] { + "TextPrompt", "VoicePrompt", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Guardrail.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Guardrail.java new file mode 100644 index 000000000000..cca2287d73d1 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Guardrail.java @@ -0,0 +1,14387 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/guardrail.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Guardrail contains a list of checks and balances to keep the agents safe and
      + * secure.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Guardrail} + */ +@com.google.protobuf.Generated +public final class Guardrail extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.Guardrail) + GuardrailOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Guardrail"); + } + + // Use Guardrail.newBuilder() to construct. + private Guardrail(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Guardrail() { + name_ = ""; + displayName_ = ""; + description_ = ""; + etag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Guardrail.class, + com.google.cloud.ces.v1.Guardrail.Builder.class); + } + + public interface ContentFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.Guardrail.ContentFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Optional. List of banned phrases. Applies to both user inputs and agent
      +     * responses.
      +     * 
      + * + * repeated string banned_contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the bannedContents. + */ + java.util.List getBannedContentsList(); + + /** + * + * + *
      +     * Optional. List of banned phrases. Applies to both user inputs and agent
      +     * responses.
      +     * 
      + * + * repeated string banned_contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of bannedContents. + */ + int getBannedContentsCount(); + + /** + * + * + *
      +     * Optional. List of banned phrases. Applies to both user inputs and agent
      +     * responses.
      +     * 
      + * + * repeated string banned_contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The bannedContents at the given index. + */ + java.lang.String getBannedContents(int index); + + /** + * + * + *
      +     * Optional. List of banned phrases. Applies to both user inputs and agent
      +     * responses.
      +     * 
      + * + * repeated string banned_contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the bannedContents at the given index. + */ + com.google.protobuf.ByteString getBannedContentsBytes(int index); + + /** + * + * + *
      +     * Optional. List of banned phrases. Applies only to user inputs.
      +     * 
      + * + * + * repeated string banned_contents_in_user_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the bannedContentsInUserInput. + */ + java.util.List getBannedContentsInUserInputList(); + + /** + * + * + *
      +     * Optional. List of banned phrases. Applies only to user inputs.
      +     * 
      + * + * + * repeated string banned_contents_in_user_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of bannedContentsInUserInput. + */ + int getBannedContentsInUserInputCount(); + + /** + * + * + *
      +     * Optional. List of banned phrases. Applies only to user inputs.
      +     * 
      + * + * + * repeated string banned_contents_in_user_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The bannedContentsInUserInput at the given index. + */ + java.lang.String getBannedContentsInUserInput(int index); + + /** + * + * + *
      +     * Optional. List of banned phrases. Applies only to user inputs.
      +     * 
      + * + * + * repeated string banned_contents_in_user_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the bannedContentsInUserInput at the given index. + */ + com.google.protobuf.ByteString getBannedContentsInUserInputBytes(int index); + + /** + * + * + *
      +     * Optional. List of banned phrases. Applies only to agent responses.
      +     * 
      + * + * + * repeated string banned_contents_in_agent_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the bannedContentsInAgentResponse. + */ + java.util.List getBannedContentsInAgentResponseList(); + + /** + * + * + *
      +     * Optional. List of banned phrases. Applies only to agent responses.
      +     * 
      + * + * + * repeated string banned_contents_in_agent_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of bannedContentsInAgentResponse. + */ + int getBannedContentsInAgentResponseCount(); + + /** + * + * + *
      +     * Optional. List of banned phrases. Applies only to agent responses.
      +     * 
      + * + * + * repeated string banned_contents_in_agent_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The bannedContentsInAgentResponse at the given index. + */ + java.lang.String getBannedContentsInAgentResponse(int index); + + /** + * + * + *
      +     * Optional. List of banned phrases. Applies only to agent responses.
      +     * 
      + * + * + * repeated string banned_contents_in_agent_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the bannedContentsInAgentResponse at the given index. + */ + com.google.protobuf.ByteString getBannedContentsInAgentResponseBytes(int index); + + /** + * + * + *
      +     * Required. Match type for the content filter.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ContentFilter.MatchType match_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for matchType. + */ + int getMatchTypeValue(); + + /** + * + * + *
      +     * Required. Match type for the content filter.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ContentFilter.MatchType match_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The matchType. + */ + com.google.cloud.ces.v1.Guardrail.ContentFilter.MatchType getMatchType(); + + /** + * + * + *
      +     * Optional. If true, diacritics are ignored during matching.
      +     * 
      + * + * bool disregard_diacritics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disregardDiacritics. + */ + boolean getDisregardDiacritics(); + } + + /** + * + * + *
      +   * Guardrail that bans certain content from being used in the conversation.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Guardrail.ContentFilter} + */ + public static final class ContentFilter extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.Guardrail.ContentFilter) + ContentFilterOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ContentFilter"); + } + + // Use ContentFilter.newBuilder() to construct. + private ContentFilter(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ContentFilter() { + bannedContents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bannedContentsInUserInput_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bannedContentsInAgentResponse_ = com.google.protobuf.LazyStringArrayList.emptyList(); + matchType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_ContentFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_ContentFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Guardrail.ContentFilter.class, + com.google.cloud.ces.v1.Guardrail.ContentFilter.Builder.class); + } + + /** + * + * + *
      +     * Match type for the content filter.
      +     * 
      + * + * Protobuf enum {@code google.cloud.ces.v1.Guardrail.ContentFilter.MatchType} + */ + public enum MatchType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +       * Match type is not specified.
      +       * 
      + * + * MATCH_TYPE_UNSPECIFIED = 0; + */ + MATCH_TYPE_UNSPECIFIED(0), + /** + * + * + *
      +       * Content is matched for substrings character by character.
      +       * 
      + * + * SIMPLE_STRING_MATCH = 1; + */ + SIMPLE_STRING_MATCH(1), + /** + * + * + *
      +       * Content only matches if the pattern found in the text is
      +       * surrounded by word delimiters. Banned phrases can also contain word
      +       * delimiters.
      +       * 
      + * + * WORD_BOUNDARY_STRING_MATCH = 2; + */ + WORD_BOUNDARY_STRING_MATCH(2), + /** + * + * + *
      +       * Content is matched using regular expression syntax.
      +       * 
      + * + * REGEXP_MATCH = 3; + */ + REGEXP_MATCH(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MatchType"); + } + + /** + * + * + *
      +       * Match type is not specified.
      +       * 
      + * + * MATCH_TYPE_UNSPECIFIED = 0; + */ + public static final int MATCH_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +       * Content is matched for substrings character by character.
      +       * 
      + * + * SIMPLE_STRING_MATCH = 1; + */ + public static final int SIMPLE_STRING_MATCH_VALUE = 1; + + /** + * + * + *
      +       * Content only matches if the pattern found in the text is
      +       * surrounded by word delimiters. Banned phrases can also contain word
      +       * delimiters.
      +       * 
      + * + * WORD_BOUNDARY_STRING_MATCH = 2; + */ + public static final int WORD_BOUNDARY_STRING_MATCH_VALUE = 2; + + /** + * + * + *
      +       * Content is matched using regular expression syntax.
      +       * 
      + * + * REGEXP_MATCH = 3; + */ + public static final int REGEXP_MATCH_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MatchType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static MatchType forNumber(int value) { + switch (value) { + case 0: + return MATCH_TYPE_UNSPECIFIED; + case 1: + return SIMPLE_STRING_MATCH; + case 2: + return WORD_BOUNDARY_STRING_MATCH; + case 3: + return REGEXP_MATCH; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MatchType findValueByNumber(int number) { + return MatchType.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.Guardrail.ContentFilter.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final MatchType[] VALUES = values(); + + public static MatchType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MatchType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.Guardrail.ContentFilter.MatchType) + } + + public static final int BANNED_CONTENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList bannedContents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +     * Optional. List of banned phrases. Applies to both user inputs and agent
      +     * responses.
      +     * 
      + * + * repeated string banned_contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the bannedContents. + */ + public com.google.protobuf.ProtocolStringList getBannedContentsList() { + return bannedContents_; + } + + /** + * + * + *
      +     * Optional. List of banned phrases. Applies to both user inputs and agent
      +     * responses.
      +     * 
      + * + * repeated string banned_contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of bannedContents. + */ + public int getBannedContentsCount() { + return bannedContents_.size(); + } + + /** + * + * + *
      +     * Optional. List of banned phrases. Applies to both user inputs and agent
      +     * responses.
      +     * 
      + * + * repeated string banned_contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The bannedContents at the given index. + */ + public java.lang.String getBannedContents(int index) { + return bannedContents_.get(index); + } + + /** + * + * + *
      +     * Optional. List of banned phrases. Applies to both user inputs and agent
      +     * responses.
      +     * 
      + * + * repeated string banned_contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the bannedContents at the given index. + */ + public com.google.protobuf.ByteString getBannedContentsBytes(int index) { + return bannedContents_.getByteString(index); + } + + public static final int BANNED_CONTENTS_IN_USER_INPUT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList bannedContentsInUserInput_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +     * Optional. List of banned phrases. Applies only to user inputs.
      +     * 
      + * + * + * repeated string banned_contents_in_user_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the bannedContentsInUserInput. + */ + public com.google.protobuf.ProtocolStringList getBannedContentsInUserInputList() { + return bannedContentsInUserInput_; + } + + /** + * + * + *
      +     * Optional. List of banned phrases. Applies only to user inputs.
      +     * 
      + * + * + * repeated string banned_contents_in_user_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of bannedContentsInUserInput. + */ + public int getBannedContentsInUserInputCount() { + return bannedContentsInUserInput_.size(); + } + + /** + * + * + *
      +     * Optional. List of banned phrases. Applies only to user inputs.
      +     * 
      + * + * + * repeated string banned_contents_in_user_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The bannedContentsInUserInput at the given index. + */ + public java.lang.String getBannedContentsInUserInput(int index) { + return bannedContentsInUserInput_.get(index); + } + + /** + * + * + *
      +     * Optional. List of banned phrases. Applies only to user inputs.
      +     * 
      + * + * + * repeated string banned_contents_in_user_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the bannedContentsInUserInput at the given index. + */ + public com.google.protobuf.ByteString getBannedContentsInUserInputBytes(int index) { + return bannedContentsInUserInput_.getByteString(index); + } + + public static final int BANNED_CONTENTS_IN_AGENT_RESPONSE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList bannedContentsInAgentResponse_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +     * Optional. List of banned phrases. Applies only to agent responses.
      +     * 
      + * + * + * repeated string banned_contents_in_agent_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the bannedContentsInAgentResponse. + */ + public com.google.protobuf.ProtocolStringList getBannedContentsInAgentResponseList() { + return bannedContentsInAgentResponse_; + } + + /** + * + * + *
      +     * Optional. List of banned phrases. Applies only to agent responses.
      +     * 
      + * + * + * repeated string banned_contents_in_agent_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of bannedContentsInAgentResponse. + */ + public int getBannedContentsInAgentResponseCount() { + return bannedContentsInAgentResponse_.size(); + } + + /** + * + * + *
      +     * Optional. List of banned phrases. Applies only to agent responses.
      +     * 
      + * + * + * repeated string banned_contents_in_agent_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The bannedContentsInAgentResponse at the given index. + */ + public java.lang.String getBannedContentsInAgentResponse(int index) { + return bannedContentsInAgentResponse_.get(index); + } + + /** + * + * + *
      +     * Optional. List of banned phrases. Applies only to agent responses.
      +     * 
      + * + * + * repeated string banned_contents_in_agent_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the bannedContentsInAgentResponse at the given index. + */ + public com.google.protobuf.ByteString getBannedContentsInAgentResponseBytes(int index) { + return bannedContentsInAgentResponse_.getByteString(index); + } + + public static final int MATCH_TYPE_FIELD_NUMBER = 4; + private int matchType_ = 0; + + /** + * + * + *
      +     * Required. Match type for the content filter.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ContentFilter.MatchType match_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for matchType. + */ + @java.lang.Override + public int getMatchTypeValue() { + return matchType_; + } + + /** + * + * + *
      +     * Required. Match type for the content filter.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ContentFilter.MatchType match_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The matchType. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.ContentFilter.MatchType getMatchType() { + com.google.cloud.ces.v1.Guardrail.ContentFilter.MatchType result = + com.google.cloud.ces.v1.Guardrail.ContentFilter.MatchType.forNumber(matchType_); + return result == null + ? com.google.cloud.ces.v1.Guardrail.ContentFilter.MatchType.UNRECOGNIZED + : result; + } + + public static final int DISREGARD_DIACRITICS_FIELD_NUMBER = 5; + private boolean disregardDiacritics_ = false; + + /** + * + * + *
      +     * Optional. If true, diacritics are ignored during matching.
      +     * 
      + * + * bool disregard_diacritics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disregardDiacritics. + */ + @java.lang.Override + public boolean getDisregardDiacritics() { + return disregardDiacritics_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < bannedContents_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, bannedContents_.getRaw(i)); + } + for (int i = 0; i < bannedContentsInUserInput_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 2, bannedContentsInUserInput_.getRaw(i)); + } + for (int i = 0; i < bannedContentsInAgentResponse_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 3, bannedContentsInAgentResponse_.getRaw(i)); + } + if (matchType_ + != com.google.cloud.ces.v1.Guardrail.ContentFilter.MatchType.MATCH_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, matchType_); + } + if (disregardDiacritics_ != false) { + output.writeBool(5, disregardDiacritics_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < bannedContents_.size(); i++) { + dataSize += computeStringSizeNoTag(bannedContents_.getRaw(i)); + } + size += dataSize; + size += 1 * getBannedContentsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < bannedContentsInUserInput_.size(); i++) { + dataSize += computeStringSizeNoTag(bannedContentsInUserInput_.getRaw(i)); + } + size += dataSize; + size += 1 * getBannedContentsInUserInputList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < bannedContentsInAgentResponse_.size(); i++) { + dataSize += computeStringSizeNoTag(bannedContentsInAgentResponse_.getRaw(i)); + } + size += dataSize; + size += 1 * getBannedContentsInAgentResponseList().size(); + } + if (matchType_ + != com.google.cloud.ces.v1.Guardrail.ContentFilter.MatchType.MATCH_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, matchType_); + } + if (disregardDiacritics_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, disregardDiacritics_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.Guardrail.ContentFilter)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.Guardrail.ContentFilter other = + (com.google.cloud.ces.v1.Guardrail.ContentFilter) obj; + + if (!getBannedContentsList().equals(other.getBannedContentsList())) return false; + if (!getBannedContentsInUserInputList().equals(other.getBannedContentsInUserInputList())) + return false; + if (!getBannedContentsInAgentResponseList() + .equals(other.getBannedContentsInAgentResponseList())) return false; + if (matchType_ != other.matchType_) return false; + if (getDisregardDiacritics() != other.getDisregardDiacritics()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getBannedContentsCount() > 0) { + hash = (37 * hash) + BANNED_CONTENTS_FIELD_NUMBER; + hash = (53 * hash) + getBannedContentsList().hashCode(); + } + if (getBannedContentsInUserInputCount() > 0) { + hash = (37 * hash) + BANNED_CONTENTS_IN_USER_INPUT_FIELD_NUMBER; + hash = (53 * hash) + getBannedContentsInUserInputList().hashCode(); + } + if (getBannedContentsInAgentResponseCount() > 0) { + hash = (37 * hash) + BANNED_CONTENTS_IN_AGENT_RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getBannedContentsInAgentResponseList().hashCode(); + } + hash = (37 * hash) + MATCH_TYPE_FIELD_NUMBER; + hash = (53 * hash) + matchType_; + hash = (37 * hash) + DISREGARD_DIACRITICS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisregardDiacritics()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.Guardrail.ContentFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Guardrail.ContentFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.ContentFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Guardrail.ContentFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.ContentFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Guardrail.ContentFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.ContentFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Guardrail.ContentFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.ContentFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Guardrail.ContentFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.ContentFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Guardrail.ContentFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.Guardrail.ContentFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Guardrail that bans certain content from being used in the conversation.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Guardrail.ContentFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.Guardrail.ContentFilter) + com.google.cloud.ces.v1.Guardrail.ContentFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_ContentFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_ContentFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Guardrail.ContentFilter.class, + com.google.cloud.ces.v1.Guardrail.ContentFilter.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.Guardrail.ContentFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bannedContents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bannedContentsInUserInput_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bannedContentsInAgentResponse_ = com.google.protobuf.LazyStringArrayList.emptyList(); + matchType_ = 0; + disregardDiacritics_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_ContentFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.ContentFilter getDefaultInstanceForType() { + return com.google.cloud.ces.v1.Guardrail.ContentFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.ContentFilter build() { + com.google.cloud.ces.v1.Guardrail.ContentFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.ContentFilter buildPartial() { + com.google.cloud.ces.v1.Guardrail.ContentFilter result = + new com.google.cloud.ces.v1.Guardrail.ContentFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.Guardrail.ContentFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + bannedContents_.makeImmutable(); + result.bannedContents_ = bannedContents_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + bannedContentsInUserInput_.makeImmutable(); + result.bannedContentsInUserInput_ = bannedContentsInUserInput_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + bannedContentsInAgentResponse_.makeImmutable(); + result.bannedContentsInAgentResponse_ = bannedContentsInAgentResponse_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.matchType_ = matchType_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.disregardDiacritics_ = disregardDiacritics_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.Guardrail.ContentFilter) { + return mergeFrom((com.google.cloud.ces.v1.Guardrail.ContentFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.Guardrail.ContentFilter other) { + if (other == com.google.cloud.ces.v1.Guardrail.ContentFilter.getDefaultInstance()) + return this; + if (!other.bannedContents_.isEmpty()) { + if (bannedContents_.isEmpty()) { + bannedContents_ = other.bannedContents_; + bitField0_ |= 0x00000001; + } else { + ensureBannedContentsIsMutable(); + bannedContents_.addAll(other.bannedContents_); + } + onChanged(); + } + if (!other.bannedContentsInUserInput_.isEmpty()) { + if (bannedContentsInUserInput_.isEmpty()) { + bannedContentsInUserInput_ = other.bannedContentsInUserInput_; + bitField0_ |= 0x00000002; + } else { + ensureBannedContentsInUserInputIsMutable(); + bannedContentsInUserInput_.addAll(other.bannedContentsInUserInput_); + } + onChanged(); + } + if (!other.bannedContentsInAgentResponse_.isEmpty()) { + if (bannedContentsInAgentResponse_.isEmpty()) { + bannedContentsInAgentResponse_ = other.bannedContentsInAgentResponse_; + bitField0_ |= 0x00000004; + } else { + ensureBannedContentsInAgentResponseIsMutable(); + bannedContentsInAgentResponse_.addAll(other.bannedContentsInAgentResponse_); + } + onChanged(); + } + if (other.matchType_ != 0) { + setMatchTypeValue(other.getMatchTypeValue()); + } + if (other.getDisregardDiacritics() != false) { + setDisregardDiacritics(other.getDisregardDiacritics()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureBannedContentsIsMutable(); + bannedContents_.add(s); + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureBannedContentsInUserInputIsMutable(); + bannedContentsInUserInput_.add(s); + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureBannedContentsInAgentResponseIsMutable(); + bannedContentsInAgentResponse_.add(s); + break; + } // case 26 + case 32: + { + matchType_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + disregardDiacritics_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList bannedContents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureBannedContentsIsMutable() { + if (!bannedContents_.isModifiable()) { + bannedContents_ = new com.google.protobuf.LazyStringArrayList(bannedContents_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
      +       * Optional. List of banned phrases. Applies to both user inputs and agent
      +       * responses.
      +       * 
      + * + * repeated string banned_contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the bannedContents. + */ + public com.google.protobuf.ProtocolStringList getBannedContentsList() { + bannedContents_.makeImmutable(); + return bannedContents_; + } + + /** + * + * + *
      +       * Optional. List of banned phrases. Applies to both user inputs and agent
      +       * responses.
      +       * 
      + * + * repeated string banned_contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of bannedContents. + */ + public int getBannedContentsCount() { + return bannedContents_.size(); + } + + /** + * + * + *
      +       * Optional. List of banned phrases. Applies to both user inputs and agent
      +       * responses.
      +       * 
      + * + * repeated string banned_contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The bannedContents at the given index. + */ + public java.lang.String getBannedContents(int index) { + return bannedContents_.get(index); + } + + /** + * + * + *
      +       * Optional. List of banned phrases. Applies to both user inputs and agent
      +       * responses.
      +       * 
      + * + * repeated string banned_contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the bannedContents at the given index. + */ + public com.google.protobuf.ByteString getBannedContentsBytes(int index) { + return bannedContents_.getByteString(index); + } + + /** + * + * + *
      +       * Optional. List of banned phrases. Applies to both user inputs and agent
      +       * responses.
      +       * 
      + * + * repeated string banned_contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The bannedContents to set. + * @return This builder for chaining. + */ + public Builder setBannedContents(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBannedContentsIsMutable(); + bannedContents_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. List of banned phrases. Applies to both user inputs and agent
      +       * responses.
      +       * 
      + * + * repeated string banned_contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bannedContents to add. + * @return This builder for chaining. + */ + public Builder addBannedContents(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBannedContentsIsMutable(); + bannedContents_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. List of banned phrases. Applies to both user inputs and agent
      +       * responses.
      +       * 
      + * + * repeated string banned_contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The bannedContents to add. + * @return This builder for chaining. + */ + public Builder addAllBannedContents(java.lang.Iterable values) { + ensureBannedContentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bannedContents_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. List of banned phrases. Applies to both user inputs and agent
      +       * responses.
      +       * 
      + * + * repeated string banned_contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBannedContents() { + bannedContents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. List of banned phrases. Applies to both user inputs and agent
      +       * responses.
      +       * 
      + * + * repeated string banned_contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the bannedContents to add. + * @return This builder for chaining. + */ + public Builder addBannedContentsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureBannedContentsIsMutable(); + bannedContents_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList bannedContentsInUserInput_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureBannedContentsInUserInputIsMutable() { + if (!bannedContentsInUserInput_.isModifiable()) { + bannedContentsInUserInput_ = + new com.google.protobuf.LazyStringArrayList(bannedContentsInUserInput_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
      +       * Optional. List of banned phrases. Applies only to user inputs.
      +       * 
      + * + * + * repeated string banned_contents_in_user_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the bannedContentsInUserInput. + */ + public com.google.protobuf.ProtocolStringList getBannedContentsInUserInputList() { + bannedContentsInUserInput_.makeImmutable(); + return bannedContentsInUserInput_; + } + + /** + * + * + *
      +       * Optional. List of banned phrases. Applies only to user inputs.
      +       * 
      + * + * + * repeated string banned_contents_in_user_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of bannedContentsInUserInput. + */ + public int getBannedContentsInUserInputCount() { + return bannedContentsInUserInput_.size(); + } + + /** + * + * + *
      +       * Optional. List of banned phrases. Applies only to user inputs.
      +       * 
      + * + * + * repeated string banned_contents_in_user_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The bannedContentsInUserInput at the given index. + */ + public java.lang.String getBannedContentsInUserInput(int index) { + return bannedContentsInUserInput_.get(index); + } + + /** + * + * + *
      +       * Optional. List of banned phrases. Applies only to user inputs.
      +       * 
      + * + * + * repeated string banned_contents_in_user_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the bannedContentsInUserInput at the given index. + */ + public com.google.protobuf.ByteString getBannedContentsInUserInputBytes(int index) { + return bannedContentsInUserInput_.getByteString(index); + } + + /** + * + * + *
      +       * Optional. List of banned phrases. Applies only to user inputs.
      +       * 
      + * + * + * repeated string banned_contents_in_user_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The bannedContentsInUserInput to set. + * @return This builder for chaining. + */ + public Builder setBannedContentsInUserInput(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBannedContentsInUserInputIsMutable(); + bannedContentsInUserInput_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. List of banned phrases. Applies only to user inputs.
      +       * 
      + * + * + * repeated string banned_contents_in_user_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bannedContentsInUserInput to add. + * @return This builder for chaining. + */ + public Builder addBannedContentsInUserInput(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBannedContentsInUserInputIsMutable(); + bannedContentsInUserInput_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. List of banned phrases. Applies only to user inputs.
      +       * 
      + * + * + * repeated string banned_contents_in_user_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The bannedContentsInUserInput to add. + * @return This builder for chaining. + */ + public Builder addAllBannedContentsInUserInput(java.lang.Iterable values) { + ensureBannedContentsInUserInputIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bannedContentsInUserInput_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. List of banned phrases. Applies only to user inputs.
      +       * 
      + * + * + * repeated string banned_contents_in_user_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearBannedContentsInUserInput() { + bannedContentsInUserInput_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. List of banned phrases. Applies only to user inputs.
      +       * 
      + * + * + * repeated string banned_contents_in_user_input = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the bannedContentsInUserInput to add. + * @return This builder for chaining. + */ + public Builder addBannedContentsInUserInputBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureBannedContentsInUserInputIsMutable(); + bannedContentsInUserInput_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList bannedContentsInAgentResponse_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureBannedContentsInAgentResponseIsMutable() { + if (!bannedContentsInAgentResponse_.isModifiable()) { + bannedContentsInAgentResponse_ = + new com.google.protobuf.LazyStringArrayList(bannedContentsInAgentResponse_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
      +       * Optional. List of banned phrases. Applies only to agent responses.
      +       * 
      + * + * + * repeated string banned_contents_in_agent_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the bannedContentsInAgentResponse. + */ + public com.google.protobuf.ProtocolStringList getBannedContentsInAgentResponseList() { + bannedContentsInAgentResponse_.makeImmutable(); + return bannedContentsInAgentResponse_; + } + + /** + * + * + *
      +       * Optional. List of banned phrases. Applies only to agent responses.
      +       * 
      + * + * + * repeated string banned_contents_in_agent_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of bannedContentsInAgentResponse. + */ + public int getBannedContentsInAgentResponseCount() { + return bannedContentsInAgentResponse_.size(); + } + + /** + * + * + *
      +       * Optional. List of banned phrases. Applies only to agent responses.
      +       * 
      + * + * + * repeated string banned_contents_in_agent_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The bannedContentsInAgentResponse at the given index. + */ + public java.lang.String getBannedContentsInAgentResponse(int index) { + return bannedContentsInAgentResponse_.get(index); + } + + /** + * + * + *
      +       * Optional. List of banned phrases. Applies only to agent responses.
      +       * 
      + * + * + * repeated string banned_contents_in_agent_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the bannedContentsInAgentResponse at the given index. + */ + public com.google.protobuf.ByteString getBannedContentsInAgentResponseBytes(int index) { + return bannedContentsInAgentResponse_.getByteString(index); + } + + /** + * + * + *
      +       * Optional. List of banned phrases. Applies only to agent responses.
      +       * 
      + * + * + * repeated string banned_contents_in_agent_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The bannedContentsInAgentResponse to set. + * @return This builder for chaining. + */ + public Builder setBannedContentsInAgentResponse(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBannedContentsInAgentResponseIsMutable(); + bannedContentsInAgentResponse_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. List of banned phrases. Applies only to agent responses.
      +       * 
      + * + * + * repeated string banned_contents_in_agent_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bannedContentsInAgentResponse to add. + * @return This builder for chaining. + */ + public Builder addBannedContentsInAgentResponse(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBannedContentsInAgentResponseIsMutable(); + bannedContentsInAgentResponse_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. List of banned phrases. Applies only to agent responses.
      +       * 
      + * + * + * repeated string banned_contents_in_agent_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The bannedContentsInAgentResponse to add. + * @return This builder for chaining. + */ + public Builder addAllBannedContentsInAgentResponse( + java.lang.Iterable values) { + ensureBannedContentsInAgentResponseIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, bannedContentsInAgentResponse_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. List of banned phrases. Applies only to agent responses.
      +       * 
      + * + * + * repeated string banned_contents_in_agent_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearBannedContentsInAgentResponse() { + bannedContentsInAgentResponse_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. List of banned phrases. Applies only to agent responses.
      +       * 
      + * + * + * repeated string banned_contents_in_agent_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the bannedContentsInAgentResponse to add. + * @return This builder for chaining. + */ + public Builder addBannedContentsInAgentResponseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureBannedContentsInAgentResponseIsMutable(); + bannedContentsInAgentResponse_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int matchType_ = 0; + + /** + * + * + *
      +       * Required. Match type for the content filter.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ContentFilter.MatchType match_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for matchType. + */ + @java.lang.Override + public int getMatchTypeValue() { + return matchType_; + } + + /** + * + * + *
      +       * Required. Match type for the content filter.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ContentFilter.MatchType match_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for matchType to set. + * @return This builder for chaining. + */ + public Builder setMatchTypeValue(int value) { + matchType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. Match type for the content filter.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ContentFilter.MatchType match_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The matchType. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.ContentFilter.MatchType getMatchType() { + com.google.cloud.ces.v1.Guardrail.ContentFilter.MatchType result = + com.google.cloud.ces.v1.Guardrail.ContentFilter.MatchType.forNumber(matchType_); + return result == null + ? com.google.cloud.ces.v1.Guardrail.ContentFilter.MatchType.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +       * Required. Match type for the content filter.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ContentFilter.MatchType match_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The matchType to set. + * @return This builder for chaining. + */ + public Builder setMatchType(com.google.cloud.ces.v1.Guardrail.ContentFilter.MatchType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + matchType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. Match type for the content filter.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ContentFilter.MatchType match_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearMatchType() { + bitField0_ = (bitField0_ & ~0x00000008); + matchType_ = 0; + onChanged(); + return this; + } + + private boolean disregardDiacritics_; + + /** + * + * + *
      +       * Optional. If true, diacritics are ignored during matching.
      +       * 
      + * + * bool disregard_diacritics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disregardDiacritics. + */ + @java.lang.Override + public boolean getDisregardDiacritics() { + return disregardDiacritics_; + } + + /** + * + * + *
      +       * Optional. If true, diacritics are ignored during matching.
      +       * 
      + * + * bool disregard_diacritics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The disregardDiacritics to set. + * @return This builder for chaining. + */ + public Builder setDisregardDiacritics(boolean value) { + + disregardDiacritics_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. If true, diacritics are ignored during matching.
      +       * 
      + * + * bool disregard_diacritics = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisregardDiacritics() { + bitField0_ = (bitField0_ & ~0x00000010); + disregardDiacritics_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Guardrail.ContentFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.Guardrail.ContentFilter) + private static final com.google.cloud.ces.v1.Guardrail.ContentFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.Guardrail.ContentFilter(); + } + + public static com.google.cloud.ces.v1.Guardrail.ContentFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContentFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.ContentFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface LlmPromptSecurityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.Guardrail.LlmPromptSecurity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Optional. Use the system's predefined default security settings.
      +     * To select this mode, include an empty 'default_settings' message
      +     * in the request. The 'default_prompt_template' field within
      +     * will be populated by the server in the response.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings default_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultSettings field is set. + */ + boolean hasDefaultSettings(); + + /** + * + * + *
      +     * Optional. Use the system's predefined default security settings.
      +     * To select this mode, include an empty 'default_settings' message
      +     * in the request. The 'default_prompt_template' field within
      +     * will be populated by the server in the response.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings default_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultSettings. + */ + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings + getDefaultSettings(); + + /** + * + * + *
      +     * Optional. Use the system's predefined default security settings.
      +     * To select this mode, include an empty 'default_settings' message
      +     * in the request. The 'default_prompt_template' field within
      +     * will be populated by the server in the response.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings default_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettingsOrBuilder + getDefaultSettingsOrBuilder(); + + /** + * + * + *
      +     * Optional. Use a user-defined LlmPolicy to configure the security
      +     * guardrail.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy custom_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customPolicy field is set. + */ + boolean hasCustomPolicy(); + + /** + * + * + *
      +     * Optional. Use a user-defined LlmPolicy to configure the security
      +     * guardrail.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy custom_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customPolicy. + */ + com.google.cloud.ces.v1.Guardrail.LlmPolicy getCustomPolicy(); + + /** + * + * + *
      +     * Optional. Use a user-defined LlmPolicy to configure the security
      +     * guardrail.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy custom_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.Guardrail.LlmPolicyOrBuilder getCustomPolicyOrBuilder(); + + /** + * + * + *
      +     * Optional. Determines the behavior when the guardrail encounters an LLM
      +     * error.
      +     * - If true: the guardrail is bypassed.
      +     * - If false (default): the guardrail triggers/blocks.
      +     *
      +     * Note: If a custom policy is provided, this field is ignored in favor
      +     * of the policy's 'fail_open' configuration.
      +     * 
      + * + * bool fail_open = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The failOpen. + */ + boolean getFailOpen(); + + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.SecurityConfigCase getSecurityConfigCase(); + } + + /** + * + * + *
      +   * Guardrail that blocks the conversation if the input is considered unsafe
      +   * based on the LLM classification.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Guardrail.LlmPromptSecurity} + */ + public static final class LlmPromptSecurity extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.Guardrail.LlmPromptSecurity) + LlmPromptSecurityOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "LlmPromptSecurity"); + } + + // Use LlmPromptSecurity.newBuilder() to construct. + private LlmPromptSecurity(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private LlmPromptSecurity() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_LlmPromptSecurity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_LlmPromptSecurity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.class, + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.Builder.class); + } + + public interface DefaultSecuritySettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +       * Output only. The default prompt template used by the system.
      +       * This field is for display purposes to show the user what prompt
      +       * the system uses by default. It is OUTPUT_ONLY.
      +       * 
      + * + * string default_prompt_template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The defaultPromptTemplate. + */ + java.lang.String getDefaultPromptTemplate(); + + /** + * + * + *
      +       * Output only. The default prompt template used by the system.
      +       * This field is for display purposes to show the user what prompt
      +       * the system uses by default. It is OUTPUT_ONLY.
      +       * 
      + * + * string default_prompt_template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for defaultPromptTemplate. + */ + com.google.protobuf.ByteString getDefaultPromptTemplateBytes(); + } + + /** + * + * + *
      +     * Configuration for default system security settings.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings} + */ + public static final class DefaultSecuritySettings extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings) + DefaultSecuritySettingsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DefaultSecuritySettings"); + } + + // Use DefaultSecuritySettings.newBuilder() to construct. + private DefaultSecuritySettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DefaultSecuritySettings() { + defaultPromptTemplate_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_LlmPromptSecurity_DefaultSecuritySettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_LlmPromptSecurity_DefaultSecuritySettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings.class, + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings.Builder + .class); + } + + public static final int DEFAULT_PROMPT_TEMPLATE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultPromptTemplate_ = ""; + + /** + * + * + *
      +       * Output only. The default prompt template used by the system.
      +       * This field is for display purposes to show the user what prompt
      +       * the system uses by default. It is OUTPUT_ONLY.
      +       * 
      + * + * string default_prompt_template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The defaultPromptTemplate. + */ + @java.lang.Override + public java.lang.String getDefaultPromptTemplate() { + java.lang.Object ref = defaultPromptTemplate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultPromptTemplate_ = s; + return s; + } + } + + /** + * + * + *
      +       * Output only. The default prompt template used by the system.
      +       * This field is for display purposes to show the user what prompt
      +       * the system uses by default. It is OUTPUT_ONLY.
      +       * 
      + * + * string default_prompt_template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for defaultPromptTemplate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultPromptTemplateBytes() { + java.lang.Object ref = defaultPromptTemplate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultPromptTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultPromptTemplate_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, defaultPromptTemplate_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultPromptTemplate_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, defaultPromptTemplate_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings other = + (com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings) obj; + + if (!getDefaultPromptTemplate().equals(other.getDefaultPromptTemplate())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DEFAULT_PROMPT_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultPromptTemplate().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +       * Configuration for default system security settings.
      +       * 
      + * + * Protobuf type {@code + * google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings) + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_LlmPromptSecurity_DefaultSecuritySettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_LlmPromptSecurity_DefaultSecuritySettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings.class, + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings + .Builder.class); + } + + // Construct using + // com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + defaultPromptTemplate_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_LlmPromptSecurity_DefaultSecuritySettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings + getDefaultInstanceForType() { + return com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings build() { + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings + buildPartial() { + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings result = + new com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.defaultPromptTemplate_ = defaultPromptTemplate_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings) { + return mergeFrom( + (com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings other) { + if (other + == com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings + .getDefaultInstance()) return this; + if (!other.getDefaultPromptTemplate().isEmpty()) { + defaultPromptTemplate_ = other.defaultPromptTemplate_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + defaultPromptTemplate_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object defaultPromptTemplate_ = ""; + + /** + * + * + *
      +         * Output only. The default prompt template used by the system.
      +         * This field is for display purposes to show the user what prompt
      +         * the system uses by default. It is OUTPUT_ONLY.
      +         * 
      + * + * string default_prompt_template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The defaultPromptTemplate. + */ + public java.lang.String getDefaultPromptTemplate() { + java.lang.Object ref = defaultPromptTemplate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultPromptTemplate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +         * Output only. The default prompt template used by the system.
      +         * This field is for display purposes to show the user what prompt
      +         * the system uses by default. It is OUTPUT_ONLY.
      +         * 
      + * + * string default_prompt_template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for defaultPromptTemplate. + */ + public com.google.protobuf.ByteString getDefaultPromptTemplateBytes() { + java.lang.Object ref = defaultPromptTemplate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultPromptTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +         * Output only. The default prompt template used by the system.
      +         * This field is for display purposes to show the user what prompt
      +         * the system uses by default. It is OUTPUT_ONLY.
      +         * 
      + * + * string default_prompt_template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The defaultPromptTemplate to set. + * @return This builder for chaining. + */ + public Builder setDefaultPromptTemplate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultPromptTemplate_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +         * Output only. The default prompt template used by the system.
      +         * This field is for display purposes to show the user what prompt
      +         * the system uses by default. It is OUTPUT_ONLY.
      +         * 
      + * + * string default_prompt_template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearDefaultPromptTemplate() { + defaultPromptTemplate_ = getDefaultInstance().getDefaultPromptTemplate(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +         * Output only. The default prompt template used by the system.
      +         * This field is for display purposes to show the user what prompt
      +         * the system uses by default. It is OUTPUT_ONLY.
      +         * 
      + * + * string default_prompt_template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for defaultPromptTemplate to set. + * @return This builder for chaining. + */ + public Builder setDefaultPromptTemplateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultPromptTemplate_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings) + private static final com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity + .DefaultSecuritySettings + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings(); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DefaultSecuritySettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int securityConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object securityConfig_; + + public enum SecurityConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DEFAULT_SETTINGS(1), + CUSTOM_POLICY(2), + SECURITYCONFIG_NOT_SET(0); + private final int value; + + private SecurityConfigCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SecurityConfigCase valueOf(int value) { + return forNumber(value); + } + + public static SecurityConfigCase forNumber(int value) { + switch (value) { + case 1: + return DEFAULT_SETTINGS; + case 2: + return CUSTOM_POLICY; + case 0: + return SECURITYCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SecurityConfigCase getSecurityConfigCase() { + return SecurityConfigCase.forNumber(securityConfigCase_); + } + + public static final int DEFAULT_SETTINGS_FIELD_NUMBER = 1; + + /** + * + * + *
      +     * Optional. Use the system's predefined default security settings.
      +     * To select this mode, include an empty 'default_settings' message
      +     * in the request. The 'default_prompt_template' field within
      +     * will be populated by the server in the response.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings default_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultSettings field is set. + */ + @java.lang.Override + public boolean hasDefaultSettings() { + return securityConfigCase_ == 1; + } + + /** + * + * + *
      +     * Optional. Use the system's predefined default security settings.
      +     * To select this mode, include an empty 'default_settings' message
      +     * in the request. The 'default_prompt_template' field within
      +     * will be populated by the server in the response.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings default_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultSettings. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings + getDefaultSettings() { + if (securityConfigCase_ == 1) { + return (com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings) + securityConfig_; + } + return com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings + .getDefaultInstance(); + } + + /** + * + * + *
      +     * Optional. Use the system's predefined default security settings.
      +     * To select this mode, include an empty 'default_settings' message
      +     * in the request. The 'default_prompt_template' field within
      +     * will be populated by the server in the response.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings default_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettingsOrBuilder + getDefaultSettingsOrBuilder() { + if (securityConfigCase_ == 1) { + return (com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings) + securityConfig_; + } + return com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings + .getDefaultInstance(); + } + + public static final int CUSTOM_POLICY_FIELD_NUMBER = 2; + + /** + * + * + *
      +     * Optional. Use a user-defined LlmPolicy to configure the security
      +     * guardrail.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy custom_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customPolicy field is set. + */ + @java.lang.Override + public boolean hasCustomPolicy() { + return securityConfigCase_ == 2; + } + + /** + * + * + *
      +     * Optional. Use a user-defined LlmPolicy to configure the security
      +     * guardrail.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy custom_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customPolicy. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.LlmPolicy getCustomPolicy() { + if (securityConfigCase_ == 2) { + return (com.google.cloud.ces.v1.Guardrail.LlmPolicy) securityConfig_; + } + return com.google.cloud.ces.v1.Guardrail.LlmPolicy.getDefaultInstance(); + } + + /** + * + * + *
      +     * Optional. Use a user-defined LlmPolicy to configure the security
      +     * guardrail.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy custom_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.LlmPolicyOrBuilder getCustomPolicyOrBuilder() { + if (securityConfigCase_ == 2) { + return (com.google.cloud.ces.v1.Guardrail.LlmPolicy) securityConfig_; + } + return com.google.cloud.ces.v1.Guardrail.LlmPolicy.getDefaultInstance(); + } + + public static final int FAIL_OPEN_FIELD_NUMBER = 3; + private boolean failOpen_ = false; + + /** + * + * + *
      +     * Optional. Determines the behavior when the guardrail encounters an LLM
      +     * error.
      +     * - If true: the guardrail is bypassed.
      +     * - If false (default): the guardrail triggers/blocks.
      +     *
      +     * Note: If a custom policy is provided, this field is ignored in favor
      +     * of the policy's 'fail_open' configuration.
      +     * 
      + * + * bool fail_open = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The failOpen. + */ + @java.lang.Override + public boolean getFailOpen() { + return failOpen_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (securityConfigCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings) + securityConfig_); + } + if (securityConfigCase_ == 2) { + output.writeMessage(2, (com.google.cloud.ces.v1.Guardrail.LlmPolicy) securityConfig_); + } + if (failOpen_ != false) { + output.writeBool(3, failOpen_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (securityConfigCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings) + securityConfig_); + } + if (securityConfigCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.ces.v1.Guardrail.LlmPolicy) securityConfig_); + } + if (failOpen_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, failOpen_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity other = + (com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity) obj; + + if (getFailOpen() != other.getFailOpen()) return false; + if (!getSecurityConfigCase().equals(other.getSecurityConfigCase())) return false; + switch (securityConfigCase_) { + case 1: + if (!getDefaultSettings().equals(other.getDefaultSettings())) return false; + break; + case 2: + if (!getCustomPolicy().equals(other.getCustomPolicy())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FAIL_OPEN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFailOpen()); + switch (securityConfigCase_) { + case 1: + hash = (37 * hash) + DEFAULT_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getDefaultSettings().hashCode(); + break; + case 2: + hash = (37 * hash) + CUSTOM_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getCustomPolicy().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Guardrail that blocks the conversation if the input is considered unsafe
      +     * based on the LLM classification.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Guardrail.LlmPromptSecurity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.Guardrail.LlmPromptSecurity) + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_LlmPromptSecurity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_LlmPromptSecurity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.class, + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (defaultSettingsBuilder_ != null) { + defaultSettingsBuilder_.clear(); + } + if (customPolicyBuilder_ != null) { + customPolicyBuilder_.clear(); + } + failOpen_ = false; + securityConfigCase_ = 0; + securityConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_LlmPromptSecurity_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity getDefaultInstanceForType() { + return com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity build() { + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity buildPartial() { + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity result = + new com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.failOpen_ = failOpen_; + } + } + + private void buildPartialOneofs(com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity result) { + result.securityConfigCase_ = securityConfigCase_; + result.securityConfig_ = this.securityConfig_; + if (securityConfigCase_ == 1 && defaultSettingsBuilder_ != null) { + result.securityConfig_ = defaultSettingsBuilder_.build(); + } + if (securityConfigCase_ == 2 && customPolicyBuilder_ != null) { + result.securityConfig_ = customPolicyBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity) { + return mergeFrom((com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity other) { + if (other == com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.getDefaultInstance()) + return this; + if (other.getFailOpen() != false) { + setFailOpen(other.getFailOpen()); + } + switch (other.getSecurityConfigCase()) { + case DEFAULT_SETTINGS: + { + mergeDefaultSettings(other.getDefaultSettings()); + break; + } + case CUSTOM_POLICY: + { + mergeCustomPolicy(other.getCustomPolicy()); + break; + } + case SECURITYCONFIG_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetDefaultSettingsFieldBuilder().getBuilder(), extensionRegistry); + securityConfigCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetCustomPolicyFieldBuilder().getBuilder(), extensionRegistry); + securityConfigCase_ = 2; + break; + } // case 18 + case 24: + { + failOpen_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int securityConfigCase_ = 0; + private java.lang.Object securityConfig_; + + public SecurityConfigCase getSecurityConfigCase() { + return SecurityConfigCase.forNumber(securityConfigCase_); + } + + public Builder clearSecurityConfig() { + securityConfigCase_ = 0; + securityConfig_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings, + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings.Builder, + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettingsOrBuilder> + defaultSettingsBuilder_; + + /** + * + * + *
      +       * Optional. Use the system's predefined default security settings.
      +       * To select this mode, include an empty 'default_settings' message
      +       * in the request. The 'default_prompt_template' field within
      +       * will be populated by the server in the response.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings default_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultSettings field is set. + */ + @java.lang.Override + public boolean hasDefaultSettings() { + return securityConfigCase_ == 1; + } + + /** + * + * + *
      +       * Optional. Use the system's predefined default security settings.
      +       * To select this mode, include an empty 'default_settings' message
      +       * in the request. The 'default_prompt_template' field within
      +       * will be populated by the server in the response.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings default_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultSettings. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings + getDefaultSettings() { + if (defaultSettingsBuilder_ == null) { + if (securityConfigCase_ == 1) { + return (com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings) + securityConfig_; + } + return com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings + .getDefaultInstance(); + } else { + if (securityConfigCase_ == 1) { + return defaultSettingsBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings + .getDefaultInstance(); + } + } + + /** + * + * + *
      +       * Optional. Use the system's predefined default security settings.
      +       * To select this mode, include an empty 'default_settings' message
      +       * in the request. The 'default_prompt_template' field within
      +       * will be populated by the server in the response.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings default_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDefaultSettings( + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings value) { + if (defaultSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + securityConfig_ = value; + onChanged(); + } else { + defaultSettingsBuilder_.setMessage(value); + } + securityConfigCase_ = 1; + return this; + } + + /** + * + * + *
      +       * Optional. Use the system's predefined default security settings.
      +       * To select this mode, include an empty 'default_settings' message
      +       * in the request. The 'default_prompt_template' field within
      +       * will be populated by the server in the response.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings default_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDefaultSettings( + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings.Builder + builderForValue) { + if (defaultSettingsBuilder_ == null) { + securityConfig_ = builderForValue.build(); + onChanged(); + } else { + defaultSettingsBuilder_.setMessage(builderForValue.build()); + } + securityConfigCase_ = 1; + return this; + } + + /** + * + * + *
      +       * Optional. Use the system's predefined default security settings.
      +       * To select this mode, include an empty 'default_settings' message
      +       * in the request. The 'default_prompt_template' field within
      +       * will be populated by the server in the response.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings default_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDefaultSettings( + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings value) { + if (defaultSettingsBuilder_ == null) { + if (securityConfigCase_ == 1 + && securityConfig_ + != com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings + .getDefaultInstance()) { + securityConfig_ = + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings + .newBuilder( + (com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity + .DefaultSecuritySettings) + securityConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + securityConfig_ = value; + } + onChanged(); + } else { + if (securityConfigCase_ == 1) { + defaultSettingsBuilder_.mergeFrom(value); + } else { + defaultSettingsBuilder_.setMessage(value); + } + } + securityConfigCase_ = 1; + return this; + } + + /** + * + * + *
      +       * Optional. Use the system's predefined default security settings.
      +       * To select this mode, include an empty 'default_settings' message
      +       * in the request. The 'default_prompt_template' field within
      +       * will be populated by the server in the response.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings default_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDefaultSettings() { + if (defaultSettingsBuilder_ == null) { + if (securityConfigCase_ == 1) { + securityConfigCase_ = 0; + securityConfig_ = null; + onChanged(); + } + } else { + if (securityConfigCase_ == 1) { + securityConfigCase_ = 0; + securityConfig_ = null; + } + defaultSettingsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +       * Optional. Use the system's predefined default security settings.
      +       * To select this mode, include an empty 'default_settings' message
      +       * in the request. The 'default_prompt_template' field within
      +       * will be populated by the server in the response.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings default_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings.Builder + getDefaultSettingsBuilder() { + return internalGetDefaultSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Optional. Use the system's predefined default security settings.
      +       * To select this mode, include an empty 'default_settings' message
      +       * in the request. The 'default_prompt_template' field within
      +       * will be populated by the server in the response.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings default_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettingsOrBuilder + getDefaultSettingsOrBuilder() { + if ((securityConfigCase_ == 1) && (defaultSettingsBuilder_ != null)) { + return defaultSettingsBuilder_.getMessageOrBuilder(); + } else { + if (securityConfigCase_ == 1) { + return (com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings) + securityConfig_; + } + return com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings + .getDefaultInstance(); + } + } + + /** + * + * + *
      +       * Optional. Use the system's predefined default security settings.
      +       * To select this mode, include an empty 'default_settings' message
      +       * in the request. The 'default_prompt_template' field within
      +       * will be populated by the server in the response.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings default_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings, + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings.Builder, + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettingsOrBuilder> + internalGetDefaultSettingsFieldBuilder() { + if (defaultSettingsBuilder_ == null) { + if (!(securityConfigCase_ == 1)) { + securityConfig_ = + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings + .getDefaultInstance(); + } + defaultSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings, + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings + .Builder, + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity + .DefaultSecuritySettingsOrBuilder>( + (com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettings) + securityConfig_, + getParentForChildren(), + isClean()); + securityConfig_ = null; + } + securityConfigCase_ = 1; + onChanged(); + return defaultSettingsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Guardrail.LlmPolicy, + com.google.cloud.ces.v1.Guardrail.LlmPolicy.Builder, + com.google.cloud.ces.v1.Guardrail.LlmPolicyOrBuilder> + customPolicyBuilder_; + + /** + * + * + *
      +       * Optional. Use a user-defined LlmPolicy to configure the security
      +       * guardrail.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy custom_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customPolicy field is set. + */ + @java.lang.Override + public boolean hasCustomPolicy() { + return securityConfigCase_ == 2; + } + + /** + * + * + *
      +       * Optional. Use a user-defined LlmPolicy to configure the security
      +       * guardrail.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy custom_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customPolicy. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.LlmPolicy getCustomPolicy() { + if (customPolicyBuilder_ == null) { + if (securityConfigCase_ == 2) { + return (com.google.cloud.ces.v1.Guardrail.LlmPolicy) securityConfig_; + } + return com.google.cloud.ces.v1.Guardrail.LlmPolicy.getDefaultInstance(); + } else { + if (securityConfigCase_ == 2) { + return customPolicyBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.Guardrail.LlmPolicy.getDefaultInstance(); + } + } + + /** + * + * + *
      +       * Optional. Use a user-defined LlmPolicy to configure the security
      +       * guardrail.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy custom_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomPolicy(com.google.cloud.ces.v1.Guardrail.LlmPolicy value) { + if (customPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + securityConfig_ = value; + onChanged(); + } else { + customPolicyBuilder_.setMessage(value); + } + securityConfigCase_ = 2; + return this; + } + + /** + * + * + *
      +       * Optional. Use a user-defined LlmPolicy to configure the security
      +       * guardrail.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy custom_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomPolicy( + com.google.cloud.ces.v1.Guardrail.LlmPolicy.Builder builderForValue) { + if (customPolicyBuilder_ == null) { + securityConfig_ = builderForValue.build(); + onChanged(); + } else { + customPolicyBuilder_.setMessage(builderForValue.build()); + } + securityConfigCase_ = 2; + return this; + } + + /** + * + * + *
      +       * Optional. Use a user-defined LlmPolicy to configure the security
      +       * guardrail.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy custom_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCustomPolicy(com.google.cloud.ces.v1.Guardrail.LlmPolicy value) { + if (customPolicyBuilder_ == null) { + if (securityConfigCase_ == 2 + && securityConfig_ + != com.google.cloud.ces.v1.Guardrail.LlmPolicy.getDefaultInstance()) { + securityConfig_ = + com.google.cloud.ces.v1.Guardrail.LlmPolicy.newBuilder( + (com.google.cloud.ces.v1.Guardrail.LlmPolicy) securityConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + securityConfig_ = value; + } + onChanged(); + } else { + if (securityConfigCase_ == 2) { + customPolicyBuilder_.mergeFrom(value); + } else { + customPolicyBuilder_.setMessage(value); + } + } + securityConfigCase_ = 2; + return this; + } + + /** + * + * + *
      +       * Optional. Use a user-defined LlmPolicy to configure the security
      +       * guardrail.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy custom_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCustomPolicy() { + if (customPolicyBuilder_ == null) { + if (securityConfigCase_ == 2) { + securityConfigCase_ = 0; + securityConfig_ = null; + onChanged(); + } + } else { + if (securityConfigCase_ == 2) { + securityConfigCase_ = 0; + securityConfig_ = null; + } + customPolicyBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +       * Optional. Use a user-defined LlmPolicy to configure the security
      +       * guardrail.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy custom_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Guardrail.LlmPolicy.Builder getCustomPolicyBuilder() { + return internalGetCustomPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Optional. Use a user-defined LlmPolicy to configure the security
      +       * guardrail.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy custom_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.LlmPolicyOrBuilder getCustomPolicyOrBuilder() { + if ((securityConfigCase_ == 2) && (customPolicyBuilder_ != null)) { + return customPolicyBuilder_.getMessageOrBuilder(); + } else { + if (securityConfigCase_ == 2) { + return (com.google.cloud.ces.v1.Guardrail.LlmPolicy) securityConfig_; + } + return com.google.cloud.ces.v1.Guardrail.LlmPolicy.getDefaultInstance(); + } + } + + /** + * + * + *
      +       * Optional. Use a user-defined LlmPolicy to configure the security
      +       * guardrail.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy custom_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Guardrail.LlmPolicy, + com.google.cloud.ces.v1.Guardrail.LlmPolicy.Builder, + com.google.cloud.ces.v1.Guardrail.LlmPolicyOrBuilder> + internalGetCustomPolicyFieldBuilder() { + if (customPolicyBuilder_ == null) { + if (!(securityConfigCase_ == 2)) { + securityConfig_ = com.google.cloud.ces.v1.Guardrail.LlmPolicy.getDefaultInstance(); + } + customPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Guardrail.LlmPolicy, + com.google.cloud.ces.v1.Guardrail.LlmPolicy.Builder, + com.google.cloud.ces.v1.Guardrail.LlmPolicyOrBuilder>( + (com.google.cloud.ces.v1.Guardrail.LlmPolicy) securityConfig_, + getParentForChildren(), + isClean()); + securityConfig_ = null; + } + securityConfigCase_ = 2; + onChanged(); + return customPolicyBuilder_; + } + + private boolean failOpen_; + + /** + * + * + *
      +       * Optional. Determines the behavior when the guardrail encounters an LLM
      +       * error.
      +       * - If true: the guardrail is bypassed.
      +       * - If false (default): the guardrail triggers/blocks.
      +       *
      +       * Note: If a custom policy is provided, this field is ignored in favor
      +       * of the policy's 'fail_open' configuration.
      +       * 
      + * + * bool fail_open = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The failOpen. + */ + @java.lang.Override + public boolean getFailOpen() { + return failOpen_; + } + + /** + * + * + *
      +       * Optional. Determines the behavior when the guardrail encounters an LLM
      +       * error.
      +       * - If true: the guardrail is bypassed.
      +       * - If false (default): the guardrail triggers/blocks.
      +       *
      +       * Note: If a custom policy is provided, this field is ignored in favor
      +       * of the policy's 'fail_open' configuration.
      +       * 
      + * + * bool fail_open = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The failOpen to set. + * @return This builder for chaining. + */ + public Builder setFailOpen(boolean value) { + + failOpen_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. Determines the behavior when the guardrail encounters an LLM
      +       * error.
      +       * - If true: the guardrail is bypassed.
      +       * - If false (default): the guardrail triggers/blocks.
      +       *
      +       * Note: If a custom policy is provided, this field is ignored in favor
      +       * of the policy's 'fail_open' configuration.
      +       * 
      + * + * bool fail_open = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFailOpen() { + bitField0_ = (bitField0_ & ~0x00000004); + failOpen_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Guardrail.LlmPromptSecurity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.Guardrail.LlmPromptSecurity) + private static final com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity(); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LlmPromptSecurity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface LlmPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.Guardrail.LlmPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Optional. When checking this policy, consider the last 'n' messages in
      +     * the conversation. When not set a default value of 10 will be used.
      +     * 
      + * + * int32 max_conversation_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxConversationMessages. + */ + int getMaxConversationMessages(); + + /** + * + * + *
      +     * Optional. Model settings.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelSettings field is set. + */ + boolean hasModelSettings(); + + /** + * + * + *
      +     * Optional. Model settings.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelSettings. + */ + com.google.cloud.ces.v1.ModelSettings getModelSettings(); + + /** + * + * + *
      +     * Optional. Model settings.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ModelSettingsOrBuilder getModelSettingsOrBuilder(); + + /** + * + * + *
      +     * Required. Policy prompt.
      +     * 
      + * + * string prompt = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The prompt. + */ + java.lang.String getPrompt(); + + /** + * + * + *
      +     * Required. Policy prompt.
      +     * 
      + * + * string prompt = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for prompt. + */ + com.google.protobuf.ByteString getPromptBytes(); + + /** + * + * + *
      +     * Required. Defines when to apply the policy check during the conversation.
      +     * If set to `POLICY_SCOPE_UNSPECIFIED`, the policy will be applied to the
      +     * user input. When applying the policy to the agent response, additional
      +     * latency will be introduced before the agent can respond.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy.PolicyScope policy_scope = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for policyScope. + */ + int getPolicyScopeValue(); + + /** + * + * + *
      +     * Required. Defines when to apply the policy check during the conversation.
      +     * If set to `POLICY_SCOPE_UNSPECIFIED`, the policy will be applied to the
      +     * user input. When applying the policy to the agent response, additional
      +     * latency will be introduced before the agent can respond.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy.PolicyScope policy_scope = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The policyScope. + */ + com.google.cloud.ces.v1.Guardrail.LlmPolicy.PolicyScope getPolicyScope(); + + /** + * + * + *
      +     * Optional. If an error occurs during the policy check, fail open and do
      +     * not trigger the guardrail.
      +     * 
      + * + * bool fail_open = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The failOpen. + */ + boolean getFailOpen(); + + /** + * + * + *
      +     * Optional. By default, the LLM policy check is bypassed for short
      +     * utterances. Enabling this setting applies the policy check to all
      +     * utterances, including those that would normally be skipped.
      +     * 
      + * + * bool allow_short_utterance = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowShortUtterance. + */ + boolean getAllowShortUtterance(); + } + + /** + * + * + *
      +   * Guardrail that blocks the conversation if the LLM response is considered
      +   * violating the policy based on the LLM classification.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Guardrail.LlmPolicy} + */ + public static final class LlmPolicy extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.Guardrail.LlmPolicy) + LlmPolicyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "LlmPolicy"); + } + + // Use LlmPolicy.newBuilder() to construct. + private LlmPolicy(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private LlmPolicy() { + prompt_ = ""; + policyScope_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_LlmPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_LlmPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Guardrail.LlmPolicy.class, + com.google.cloud.ces.v1.Guardrail.LlmPolicy.Builder.class); + } + + /** + * + * + *
      +     * Defines when to apply the policy check during the conversation.
      +     * 
      + * + * Protobuf enum {@code google.cloud.ces.v1.Guardrail.LlmPolicy.PolicyScope} + */ + public enum PolicyScope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +       * Policy scope is not specified.
      +       * 
      + * + * POLICY_SCOPE_UNSPECIFIED = 0; + */ + POLICY_SCOPE_UNSPECIFIED(0), + /** + * + * + *
      +       * Policy check is triggered on user input.
      +       * 
      + * + * USER_QUERY = 1; + */ + USER_QUERY(1), + /** + * + * + *
      +       * Policy check is triggered on agent response. Applying this policy
      +       * scope will introduce additional latency before the agent can respond.
      +       * 
      + * + * AGENT_RESPONSE = 2; + */ + AGENT_RESPONSE(2), + /** + * + * + *
      +       * Policy check is triggered on both user input and agent response.
      +       * Applying this policy scope will introduce additional latency before
      +       * the agent can respond.
      +       * 
      + * + * USER_QUERY_AND_AGENT_RESPONSE = 3; + */ + USER_QUERY_AND_AGENT_RESPONSE(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PolicyScope"); + } + + /** + * + * + *
      +       * Policy scope is not specified.
      +       * 
      + * + * POLICY_SCOPE_UNSPECIFIED = 0; + */ + public static final int POLICY_SCOPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +       * Policy check is triggered on user input.
      +       * 
      + * + * USER_QUERY = 1; + */ + public static final int USER_QUERY_VALUE = 1; + + /** + * + * + *
      +       * Policy check is triggered on agent response. Applying this policy
      +       * scope will introduce additional latency before the agent can respond.
      +       * 
      + * + * AGENT_RESPONSE = 2; + */ + public static final int AGENT_RESPONSE_VALUE = 2; + + /** + * + * + *
      +       * Policy check is triggered on both user input and agent response.
      +       * Applying this policy scope will introduce additional latency before
      +       * the agent can respond.
      +       * 
      + * + * USER_QUERY_AND_AGENT_RESPONSE = 3; + */ + public static final int USER_QUERY_AND_AGENT_RESPONSE_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PolicyScope valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static PolicyScope forNumber(int value) { + switch (value) { + case 0: + return POLICY_SCOPE_UNSPECIFIED; + case 1: + return USER_QUERY; + case 2: + return AGENT_RESPONSE; + case 3: + return USER_QUERY_AND_AGENT_RESPONSE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PolicyScope findValueByNumber(int number) { + return PolicyScope.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.Guardrail.LlmPolicy.getDescriptor().getEnumTypes().get(0); + } + + private static final PolicyScope[] VALUES = values(); + + public static PolicyScope valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private PolicyScope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.Guardrail.LlmPolicy.PolicyScope) + } + + private int bitField0_; + public static final int MAX_CONVERSATION_MESSAGES_FIELD_NUMBER = 1; + private int maxConversationMessages_ = 0; + + /** + * + * + *
      +     * Optional. When checking this policy, consider the last 'n' messages in
      +     * the conversation. When not set a default value of 10 will be used.
      +     * 
      + * + * int32 max_conversation_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxConversationMessages. + */ + @java.lang.Override + public int getMaxConversationMessages() { + return maxConversationMessages_; + } + + public static final int MODEL_SETTINGS_FIELD_NUMBER = 2; + private com.google.cloud.ces.v1.ModelSettings modelSettings_; + + /** + * + * + *
      +     * Optional. Model settings.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelSettings field is set. + */ + @java.lang.Override + public boolean hasModelSettings() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Optional. Model settings.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelSettings. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ModelSettings getModelSettings() { + return modelSettings_ == null + ? com.google.cloud.ces.v1.ModelSettings.getDefaultInstance() + : modelSettings_; + } + + /** + * + * + *
      +     * Optional. Model settings.
      +     * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ModelSettingsOrBuilder getModelSettingsOrBuilder() { + return modelSettings_ == null + ? com.google.cloud.ces.v1.ModelSettings.getDefaultInstance() + : modelSettings_; + } + + public static final int PROMPT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object prompt_ = ""; + + /** + * + * + *
      +     * Required. Policy prompt.
      +     * 
      + * + * string prompt = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The prompt. + */ + @java.lang.Override + public java.lang.String getPrompt() { + java.lang.Object ref = prompt_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prompt_ = s; + return s; + } + } + + /** + * + * + *
      +     * Required. Policy prompt.
      +     * 
      + * + * string prompt = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for prompt. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPromptBytes() { + java.lang.Object ref = prompt_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + prompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POLICY_SCOPE_FIELD_NUMBER = 4; + private int policyScope_ = 0; + + /** + * + * + *
      +     * Required. Defines when to apply the policy check during the conversation.
      +     * If set to `POLICY_SCOPE_UNSPECIFIED`, the policy will be applied to the
      +     * user input. When applying the policy to the agent response, additional
      +     * latency will be introduced before the agent can respond.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy.PolicyScope policy_scope = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for policyScope. + */ + @java.lang.Override + public int getPolicyScopeValue() { + return policyScope_; + } + + /** + * + * + *
      +     * Required. Defines when to apply the policy check during the conversation.
      +     * If set to `POLICY_SCOPE_UNSPECIFIED`, the policy will be applied to the
      +     * user input. When applying the policy to the agent response, additional
      +     * latency will be introduced before the agent can respond.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy.PolicyScope policy_scope = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The policyScope. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.LlmPolicy.PolicyScope getPolicyScope() { + com.google.cloud.ces.v1.Guardrail.LlmPolicy.PolicyScope result = + com.google.cloud.ces.v1.Guardrail.LlmPolicy.PolicyScope.forNumber(policyScope_); + return result == null + ? com.google.cloud.ces.v1.Guardrail.LlmPolicy.PolicyScope.UNRECOGNIZED + : result; + } + + public static final int FAIL_OPEN_FIELD_NUMBER = 5; + private boolean failOpen_ = false; + + /** + * + * + *
      +     * Optional. If an error occurs during the policy check, fail open and do
      +     * not trigger the guardrail.
      +     * 
      + * + * bool fail_open = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The failOpen. + */ + @java.lang.Override + public boolean getFailOpen() { + return failOpen_; + } + + public static final int ALLOW_SHORT_UTTERANCE_FIELD_NUMBER = 6; + private boolean allowShortUtterance_ = false; + + /** + * + * + *
      +     * Optional. By default, the LLM policy check is bypassed for short
      +     * utterances. Enabling this setting applies the policy check to all
      +     * utterances, including those that would normally be skipped.
      +     * 
      + * + * bool allow_short_utterance = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowShortUtterance. + */ + @java.lang.Override + public boolean getAllowShortUtterance() { + return allowShortUtterance_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (maxConversationMessages_ != 0) { + output.writeInt32(1, maxConversationMessages_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getModelSettings()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(prompt_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, prompt_); + } + if (policyScope_ + != com.google.cloud.ces.v1.Guardrail.LlmPolicy.PolicyScope.POLICY_SCOPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, policyScope_); + } + if (failOpen_ != false) { + output.writeBool(5, failOpen_); + } + if (allowShortUtterance_ != false) { + output.writeBool(6, allowShortUtterance_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maxConversationMessages_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, maxConversationMessages_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getModelSettings()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(prompt_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, prompt_); + } + if (policyScope_ + != com.google.cloud.ces.v1.Guardrail.LlmPolicy.PolicyScope.POLICY_SCOPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, policyScope_); + } + if (failOpen_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, failOpen_); + } + if (allowShortUtterance_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, allowShortUtterance_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.Guardrail.LlmPolicy)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.Guardrail.LlmPolicy other = + (com.google.cloud.ces.v1.Guardrail.LlmPolicy) obj; + + if (getMaxConversationMessages() != other.getMaxConversationMessages()) return false; + if (hasModelSettings() != other.hasModelSettings()) return false; + if (hasModelSettings()) { + if (!getModelSettings().equals(other.getModelSettings())) return false; + } + if (!getPrompt().equals(other.getPrompt())) return false; + if (policyScope_ != other.policyScope_) return false; + if (getFailOpen() != other.getFailOpen()) return false; + if (getAllowShortUtterance() != other.getAllowShortUtterance()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MAX_CONVERSATION_MESSAGES_FIELD_NUMBER; + hash = (53 * hash) + getMaxConversationMessages(); + if (hasModelSettings()) { + hash = (37 * hash) + MODEL_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getModelSettings().hashCode(); + } + hash = (37 * hash) + PROMPT_FIELD_NUMBER; + hash = (53 * hash) + getPrompt().hashCode(); + hash = (37 * hash) + POLICY_SCOPE_FIELD_NUMBER; + hash = (53 * hash) + policyScope_; + hash = (37 * hash) + FAIL_OPEN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFailOpen()); + hash = (37 * hash) + ALLOW_SHORT_UTTERANCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowShortUtterance()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPolicy parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPolicy parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPolicy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.Guardrail.LlmPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Guardrail that blocks the conversation if the LLM response is considered
      +     * violating the policy based on the LLM classification.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Guardrail.LlmPolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.Guardrail.LlmPolicy) + com.google.cloud.ces.v1.Guardrail.LlmPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_LlmPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_LlmPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Guardrail.LlmPolicy.class, + com.google.cloud.ces.v1.Guardrail.LlmPolicy.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.Guardrail.LlmPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetModelSettingsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + maxConversationMessages_ = 0; + modelSettings_ = null; + if (modelSettingsBuilder_ != null) { + modelSettingsBuilder_.dispose(); + modelSettingsBuilder_ = null; + } + prompt_ = ""; + policyScope_ = 0; + failOpen_ = false; + allowShortUtterance_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_LlmPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.LlmPolicy getDefaultInstanceForType() { + return com.google.cloud.ces.v1.Guardrail.LlmPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.LlmPolicy build() { + com.google.cloud.ces.v1.Guardrail.LlmPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.LlmPolicy buildPartial() { + com.google.cloud.ces.v1.Guardrail.LlmPolicy result = + new com.google.cloud.ces.v1.Guardrail.LlmPolicy(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.Guardrail.LlmPolicy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.maxConversationMessages_ = maxConversationMessages_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.modelSettings_ = + modelSettingsBuilder_ == null ? modelSettings_ : modelSettingsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.prompt_ = prompt_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.policyScope_ = policyScope_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.failOpen_ = failOpen_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.allowShortUtterance_ = allowShortUtterance_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.Guardrail.LlmPolicy) { + return mergeFrom((com.google.cloud.ces.v1.Guardrail.LlmPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.Guardrail.LlmPolicy other) { + if (other == com.google.cloud.ces.v1.Guardrail.LlmPolicy.getDefaultInstance()) return this; + if (other.getMaxConversationMessages() != 0) { + setMaxConversationMessages(other.getMaxConversationMessages()); + } + if (other.hasModelSettings()) { + mergeModelSettings(other.getModelSettings()); + } + if (!other.getPrompt().isEmpty()) { + prompt_ = other.prompt_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.policyScope_ != 0) { + setPolicyScopeValue(other.getPolicyScopeValue()); + } + if (other.getFailOpen() != false) { + setFailOpen(other.getFailOpen()); + } + if (other.getAllowShortUtterance() != false) { + setAllowShortUtterance(other.getAllowShortUtterance()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + maxConversationMessages_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + internalGetModelSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + prompt_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + policyScope_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + failOpen_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + allowShortUtterance_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int maxConversationMessages_; + + /** + * + * + *
      +       * Optional. When checking this policy, consider the last 'n' messages in
      +       * the conversation. When not set a default value of 10 will be used.
      +       * 
      + * + * int32 max_conversation_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxConversationMessages. + */ + @java.lang.Override + public int getMaxConversationMessages() { + return maxConversationMessages_; + } + + /** + * + * + *
      +       * Optional. When checking this policy, consider the last 'n' messages in
      +       * the conversation. When not set a default value of 10 will be used.
      +       * 
      + * + * int32 max_conversation_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The maxConversationMessages to set. + * @return This builder for chaining. + */ + public Builder setMaxConversationMessages(int value) { + + maxConversationMessages_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. When checking this policy, consider the last 'n' messages in
      +       * the conversation. When not set a default value of 10 will be used.
      +       * 
      + * + * int32 max_conversation_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMaxConversationMessages() { + bitField0_ = (bitField0_ & ~0x00000001); + maxConversationMessages_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.ModelSettings modelSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ModelSettings, + com.google.cloud.ces.v1.ModelSettings.Builder, + com.google.cloud.ces.v1.ModelSettingsOrBuilder> + modelSettingsBuilder_; + + /** + * + * + *
      +       * Optional. Model settings.
      +       * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelSettings field is set. + */ + public boolean hasModelSettings() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +       * Optional. Model settings.
      +       * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelSettings. + */ + public com.google.cloud.ces.v1.ModelSettings getModelSettings() { + if (modelSettingsBuilder_ == null) { + return modelSettings_ == null + ? com.google.cloud.ces.v1.ModelSettings.getDefaultInstance() + : modelSettings_; + } else { + return modelSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
      +       * Optional. Model settings.
      +       * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setModelSettings(com.google.cloud.ces.v1.ModelSettings value) { + if (modelSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modelSettings_ = value; + } else { + modelSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. Model settings.
      +       * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setModelSettings( + com.google.cloud.ces.v1.ModelSettings.Builder builderForValue) { + if (modelSettingsBuilder_ == null) { + modelSettings_ = builderForValue.build(); + } else { + modelSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. Model settings.
      +       * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeModelSettings(com.google.cloud.ces.v1.ModelSettings value) { + if (modelSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && modelSettings_ != null + && modelSettings_ != com.google.cloud.ces.v1.ModelSettings.getDefaultInstance()) { + getModelSettingsBuilder().mergeFrom(value); + } else { + modelSettings_ = value; + } + } else { + modelSettingsBuilder_.mergeFrom(value); + } + if (modelSettings_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +       * Optional. Model settings.
      +       * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearModelSettings() { + bitField0_ = (bitField0_ & ~0x00000002); + modelSettings_ = null; + if (modelSettingsBuilder_ != null) { + modelSettingsBuilder_.dispose(); + modelSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. Model settings.
      +       * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ModelSettings.Builder getModelSettingsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetModelSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Optional. Model settings.
      +       * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ModelSettingsOrBuilder getModelSettingsOrBuilder() { + if (modelSettingsBuilder_ != null) { + return modelSettingsBuilder_.getMessageOrBuilder(); + } else { + return modelSettings_ == null + ? com.google.cloud.ces.v1.ModelSettings.getDefaultInstance() + : modelSettings_; + } + } + + /** + * + * + *
      +       * Optional. Model settings.
      +       * 
      + * + * + * .google.cloud.ces.v1.ModelSettings model_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ModelSettings, + com.google.cloud.ces.v1.ModelSettings.Builder, + com.google.cloud.ces.v1.ModelSettingsOrBuilder> + internalGetModelSettingsFieldBuilder() { + if (modelSettingsBuilder_ == null) { + modelSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ModelSettings, + com.google.cloud.ces.v1.ModelSettings.Builder, + com.google.cloud.ces.v1.ModelSettingsOrBuilder>( + getModelSettings(), getParentForChildren(), isClean()); + modelSettings_ = null; + } + return modelSettingsBuilder_; + } + + private java.lang.Object prompt_ = ""; + + /** + * + * + *
      +       * Required. Policy prompt.
      +       * 
      + * + * string prompt = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The prompt. + */ + public java.lang.String getPrompt() { + java.lang.Object ref = prompt_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prompt_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Required. Policy prompt.
      +       * 
      + * + * string prompt = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for prompt. + */ + public com.google.protobuf.ByteString getPromptBytes() { + java.lang.Object ref = prompt_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + prompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Required. Policy prompt.
      +       * 
      + * + * string prompt = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The prompt to set. + * @return This builder for chaining. + */ + public Builder setPrompt(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + prompt_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. Policy prompt.
      +       * 
      + * + * string prompt = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPrompt() { + prompt_ = getDefaultInstance().getPrompt(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. Policy prompt.
      +       * 
      + * + * string prompt = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for prompt to set. + * @return This builder for chaining. + */ + public Builder setPromptBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + prompt_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int policyScope_ = 0; + + /** + * + * + *
      +       * Required. Defines when to apply the policy check during the conversation.
      +       * If set to `POLICY_SCOPE_UNSPECIFIED`, the policy will be applied to the
      +       * user input. When applying the policy to the agent response, additional
      +       * latency will be introduced before the agent can respond.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy.PolicyScope policy_scope = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for policyScope. + */ + @java.lang.Override + public int getPolicyScopeValue() { + return policyScope_; + } + + /** + * + * + *
      +       * Required. Defines when to apply the policy check during the conversation.
      +       * If set to `POLICY_SCOPE_UNSPECIFIED`, the policy will be applied to the
      +       * user input. When applying the policy to the agent response, additional
      +       * latency will be introduced before the agent can respond.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy.PolicyScope policy_scope = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for policyScope to set. + * @return This builder for chaining. + */ + public Builder setPolicyScopeValue(int value) { + policyScope_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. Defines when to apply the policy check during the conversation.
      +       * If set to `POLICY_SCOPE_UNSPECIFIED`, the policy will be applied to the
      +       * user input. When applying the policy to the agent response, additional
      +       * latency will be introduced before the agent can respond.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy.PolicyScope policy_scope = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The policyScope. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.LlmPolicy.PolicyScope getPolicyScope() { + com.google.cloud.ces.v1.Guardrail.LlmPolicy.PolicyScope result = + com.google.cloud.ces.v1.Guardrail.LlmPolicy.PolicyScope.forNumber(policyScope_); + return result == null + ? com.google.cloud.ces.v1.Guardrail.LlmPolicy.PolicyScope.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +       * Required. Defines when to apply the policy check during the conversation.
      +       * If set to `POLICY_SCOPE_UNSPECIFIED`, the policy will be applied to the
      +       * user input. When applying the policy to the agent response, additional
      +       * latency will be introduced before the agent can respond.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy.PolicyScope policy_scope = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The policyScope to set. + * @return This builder for chaining. + */ + public Builder setPolicyScope(com.google.cloud.ces.v1.Guardrail.LlmPolicy.PolicyScope value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + policyScope_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. Defines when to apply the policy check during the conversation.
      +       * If set to `POLICY_SCOPE_UNSPECIFIED`, the policy will be applied to the
      +       * user input. When applying the policy to the agent response, additional
      +       * latency will be introduced before the agent can respond.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy.PolicyScope policy_scope = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearPolicyScope() { + bitField0_ = (bitField0_ & ~0x00000008); + policyScope_ = 0; + onChanged(); + return this; + } + + private boolean failOpen_; + + /** + * + * + *
      +       * Optional. If an error occurs during the policy check, fail open and do
      +       * not trigger the guardrail.
      +       * 
      + * + * bool fail_open = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The failOpen. + */ + @java.lang.Override + public boolean getFailOpen() { + return failOpen_; + } + + /** + * + * + *
      +       * Optional. If an error occurs during the policy check, fail open and do
      +       * not trigger the guardrail.
      +       * 
      + * + * bool fail_open = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The failOpen to set. + * @return This builder for chaining. + */ + public Builder setFailOpen(boolean value) { + + failOpen_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. If an error occurs during the policy check, fail open and do
      +       * not trigger the guardrail.
      +       * 
      + * + * bool fail_open = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFailOpen() { + bitField0_ = (bitField0_ & ~0x00000010); + failOpen_ = false; + onChanged(); + return this; + } + + private boolean allowShortUtterance_; + + /** + * + * + *
      +       * Optional. By default, the LLM policy check is bypassed for short
      +       * utterances. Enabling this setting applies the policy check to all
      +       * utterances, including those that would normally be skipped.
      +       * 
      + * + * bool allow_short_utterance = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowShortUtterance. + */ + @java.lang.Override + public boolean getAllowShortUtterance() { + return allowShortUtterance_; + } + + /** + * + * + *
      +       * Optional. By default, the LLM policy check is bypassed for short
      +       * utterances. Enabling this setting applies the policy check to all
      +       * utterances, including those that would normally be skipped.
      +       * 
      + * + * bool allow_short_utterance = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The allowShortUtterance to set. + * @return This builder for chaining. + */ + public Builder setAllowShortUtterance(boolean value) { + + allowShortUtterance_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. By default, the LLM policy check is bypassed for short
      +       * utterances. Enabling this setting applies the policy check to all
      +       * utterances, including those that would normally be skipped.
      +       * 
      + * + * bool allow_short_utterance = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAllowShortUtterance() { + bitField0_ = (bitField0_ & ~0x00000020); + allowShortUtterance_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Guardrail.LlmPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.Guardrail.LlmPolicy) + private static final com.google.cloud.ces.v1.Guardrail.LlmPolicy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.Guardrail.LlmPolicy(); + } + + public static com.google.cloud.ces.v1.Guardrail.LlmPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LlmPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.LlmPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ModelSafetyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.Guardrail.ModelSafety) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Required. List of safety settings.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting safety_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getSafetySettingsList(); + + /** + * + * + *
      +     * Required. List of safety settings.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting safety_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting getSafetySettings(int index); + + /** + * + * + *
      +     * Required. List of safety settings.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting safety_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getSafetySettingsCount(); + + /** + * + * + *
      +     * Required. List of safety settings.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting safety_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getSafetySettingsOrBuilderList(); + + /** + * + * + *
      +     * Required. List of safety settings.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting safety_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySettingOrBuilder getSafetySettingsOrBuilder( + int index); + } + + /** + * + * + *
      +   * Model safety settings overrides. When this is set, it will override the
      +   * default settings and trigger the guardrail if the response is considered
      +   * unsafe.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Guardrail.ModelSafety} + */ + public static final class ModelSafety extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.Guardrail.ModelSafety) + ModelSafetyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ModelSafety"); + } + + // Use ModelSafety.newBuilder() to construct. + private ModelSafety(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ModelSafety() { + safetySettings_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_ModelSafety_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_ModelSafety_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Guardrail.ModelSafety.class, + com.google.cloud.ces.v1.Guardrail.ModelSafety.Builder.class); + } + + /** + * + * + *
      +     * Harm category.
      +     * 
      + * + * Protobuf enum {@code google.cloud.ces.v1.Guardrail.ModelSafety.HarmCategory} + */ + public enum HarmCategory implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +       * The harm category is unspecified.
      +       * 
      + * + * HARM_CATEGORY_UNSPECIFIED = 0; + */ + HARM_CATEGORY_UNSPECIFIED(0), + /** + * + * + *
      +       * The harm category is hate speech.
      +       * 
      + * + * HARM_CATEGORY_HATE_SPEECH = 1; + */ + HARM_CATEGORY_HATE_SPEECH(1), + /** + * + * + *
      +       * The harm category is dangerous content.
      +       * 
      + * + * HARM_CATEGORY_DANGEROUS_CONTENT = 2; + */ + HARM_CATEGORY_DANGEROUS_CONTENT(2), + /** + * + * + *
      +       * The harm category is harassment.
      +       * 
      + * + * HARM_CATEGORY_HARASSMENT = 3; + */ + HARM_CATEGORY_HARASSMENT(3), + /** + * + * + *
      +       * The harm category is sexually explicit content.
      +       * 
      + * + * HARM_CATEGORY_SEXUALLY_EXPLICIT = 4; + */ + HARM_CATEGORY_SEXUALLY_EXPLICIT(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "HarmCategory"); + } + + /** + * + * + *
      +       * The harm category is unspecified.
      +       * 
      + * + * HARM_CATEGORY_UNSPECIFIED = 0; + */ + public static final int HARM_CATEGORY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +       * The harm category is hate speech.
      +       * 
      + * + * HARM_CATEGORY_HATE_SPEECH = 1; + */ + public static final int HARM_CATEGORY_HATE_SPEECH_VALUE = 1; + + /** + * + * + *
      +       * The harm category is dangerous content.
      +       * 
      + * + * HARM_CATEGORY_DANGEROUS_CONTENT = 2; + */ + public static final int HARM_CATEGORY_DANGEROUS_CONTENT_VALUE = 2; + + /** + * + * + *
      +       * The harm category is harassment.
      +       * 
      + * + * HARM_CATEGORY_HARASSMENT = 3; + */ + public static final int HARM_CATEGORY_HARASSMENT_VALUE = 3; + + /** + * + * + *
      +       * The harm category is sexually explicit content.
      +       * 
      + * + * HARM_CATEGORY_SEXUALLY_EXPLICIT = 4; + */ + public static final int HARM_CATEGORY_SEXUALLY_EXPLICIT_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static HarmCategory valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static HarmCategory forNumber(int value) { + switch (value) { + case 0: + return HARM_CATEGORY_UNSPECIFIED; + case 1: + return HARM_CATEGORY_HATE_SPEECH; + case 2: + return HARM_CATEGORY_DANGEROUS_CONTENT; + case 3: + return HARM_CATEGORY_HARASSMENT; + case 4: + return HARM_CATEGORY_SEXUALLY_EXPLICIT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HarmCategory findValueByNumber(int number) { + return HarmCategory.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.Guardrail.ModelSafety.getDescriptor().getEnumTypes().get(0); + } + + private static final HarmCategory[] VALUES = values(); + + public static HarmCategory valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private HarmCategory(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.Guardrail.ModelSafety.HarmCategory) + } + + /** + * + * + *
      +     * Probability based thresholds levels for blocking.
      +     * 
      + * + * Protobuf enum {@code google.cloud.ces.v1.Guardrail.ModelSafety.HarmBlockThreshold} + */ + public enum HarmBlockThreshold implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +       * Unspecified harm block threshold.
      +       * 
      + * + * HARM_BLOCK_THRESHOLD_UNSPECIFIED = 0; + */ + HARM_BLOCK_THRESHOLD_UNSPECIFIED(0), + /** + * + * + *
      +       * Block low threshold and above (i.e. block more).
      +       * 
      + * + * BLOCK_LOW_AND_ABOVE = 1; + */ + BLOCK_LOW_AND_ABOVE(1), + /** + * + * + *
      +       * Block medium threshold and above.
      +       * 
      + * + * BLOCK_MEDIUM_AND_ABOVE = 2; + */ + BLOCK_MEDIUM_AND_ABOVE(2), + /** + * + * + *
      +       * Block only high threshold (i.e. block less).
      +       * 
      + * + * BLOCK_ONLY_HIGH = 3; + */ + BLOCK_ONLY_HIGH(3), + /** + * + * + *
      +       * Block none.
      +       * 
      + * + * BLOCK_NONE = 4; + */ + BLOCK_NONE(4), + /** + * + * + *
      +       * Turn off the safety filter.
      +       * 
      + * + * OFF = 5; + */ + OFF(5), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "HarmBlockThreshold"); + } + + /** + * + * + *
      +       * Unspecified harm block threshold.
      +       * 
      + * + * HARM_BLOCK_THRESHOLD_UNSPECIFIED = 0; + */ + public static final int HARM_BLOCK_THRESHOLD_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +       * Block low threshold and above (i.e. block more).
      +       * 
      + * + * BLOCK_LOW_AND_ABOVE = 1; + */ + public static final int BLOCK_LOW_AND_ABOVE_VALUE = 1; + + /** + * + * + *
      +       * Block medium threshold and above.
      +       * 
      + * + * BLOCK_MEDIUM_AND_ABOVE = 2; + */ + public static final int BLOCK_MEDIUM_AND_ABOVE_VALUE = 2; + + /** + * + * + *
      +       * Block only high threshold (i.e. block less).
      +       * 
      + * + * BLOCK_ONLY_HIGH = 3; + */ + public static final int BLOCK_ONLY_HIGH_VALUE = 3; + + /** + * + * + *
      +       * Block none.
      +       * 
      + * + * BLOCK_NONE = 4; + */ + public static final int BLOCK_NONE_VALUE = 4; + + /** + * + * + *
      +       * Turn off the safety filter.
      +       * 
      + * + * OFF = 5; + */ + public static final int OFF_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static HarmBlockThreshold valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static HarmBlockThreshold forNumber(int value) { + switch (value) { + case 0: + return HARM_BLOCK_THRESHOLD_UNSPECIFIED; + case 1: + return BLOCK_LOW_AND_ABOVE; + case 2: + return BLOCK_MEDIUM_AND_ABOVE; + case 3: + return BLOCK_ONLY_HIGH; + case 4: + return BLOCK_NONE; + case 5: + return OFF; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HarmBlockThreshold findValueByNumber(int number) { + return HarmBlockThreshold.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.Guardrail.ModelSafety.getDescriptor().getEnumTypes().get(1); + } + + private static final HarmBlockThreshold[] VALUES = values(); + + public static HarmBlockThreshold valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private HarmBlockThreshold(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.Guardrail.ModelSafety.HarmBlockThreshold) + } + + public interface SafetySettingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +       * Required. The harm category.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ModelSafety.HarmCategory category = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for category. + */ + int getCategoryValue(); + + /** + * + * + *
      +       * Required. The harm category.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ModelSafety.HarmCategory category = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The category. + */ + com.google.cloud.ces.v1.Guardrail.ModelSafety.HarmCategory getCategory(); + + /** + * + * + *
      +       * Required. The harm block threshold.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ModelSafety.HarmBlockThreshold threshold = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for threshold. + */ + int getThresholdValue(); + + /** + * + * + *
      +       * Required. The harm block threshold.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ModelSafety.HarmBlockThreshold threshold = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The threshold. + */ + com.google.cloud.ces.v1.Guardrail.ModelSafety.HarmBlockThreshold getThreshold(); + } + + /** + * + * + *
      +     * Safety setting.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting} + */ + public static final class SafetySetting extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting) + SafetySettingOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SafetySetting"); + } + + // Use SafetySetting.newBuilder() to construct. + private SafetySetting(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SafetySetting() { + category_ = 0; + threshold_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_ModelSafety_SafetySetting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_ModelSafety_SafetySetting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting.class, + com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting.Builder.class); + } + + public static final int CATEGORY_FIELD_NUMBER = 1; + private int category_ = 0; + + /** + * + * + *
      +       * Required. The harm category.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ModelSafety.HarmCategory category = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for category. + */ + @java.lang.Override + public int getCategoryValue() { + return category_; + } + + /** + * + * + *
      +       * Required. The harm category.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ModelSafety.HarmCategory category = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The category. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.ModelSafety.HarmCategory getCategory() { + com.google.cloud.ces.v1.Guardrail.ModelSafety.HarmCategory result = + com.google.cloud.ces.v1.Guardrail.ModelSafety.HarmCategory.forNumber(category_); + return result == null + ? com.google.cloud.ces.v1.Guardrail.ModelSafety.HarmCategory.UNRECOGNIZED + : result; + } + + public static final int THRESHOLD_FIELD_NUMBER = 2; + private int threshold_ = 0; + + /** + * + * + *
      +       * Required. The harm block threshold.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ModelSafety.HarmBlockThreshold threshold = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for threshold. + */ + @java.lang.Override + public int getThresholdValue() { + return threshold_; + } + + /** + * + * + *
      +       * Required. The harm block threshold.
      +       * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ModelSafety.HarmBlockThreshold threshold = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The threshold. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.ModelSafety.HarmBlockThreshold getThreshold() { + com.google.cloud.ces.v1.Guardrail.ModelSafety.HarmBlockThreshold result = + com.google.cloud.ces.v1.Guardrail.ModelSafety.HarmBlockThreshold.forNumber(threshold_); + return result == null + ? com.google.cloud.ces.v1.Guardrail.ModelSafety.HarmBlockThreshold.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (category_ + != com.google.cloud.ces.v1.Guardrail.ModelSafety.HarmCategory.HARM_CATEGORY_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, category_); + } + if (threshold_ + != com.google.cloud.ces.v1.Guardrail.ModelSafety.HarmBlockThreshold + .HARM_BLOCK_THRESHOLD_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, threshold_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (category_ + != com.google.cloud.ces.v1.Guardrail.ModelSafety.HarmCategory.HARM_CATEGORY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, category_); + } + if (threshold_ + != com.google.cloud.ces.v1.Guardrail.ModelSafety.HarmBlockThreshold + .HARM_BLOCK_THRESHOLD_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, threshold_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting other = + (com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting) obj; + + if (category_ != other.category_) return false; + if (threshold_ != other.threshold_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + category_; + hash = (37 * hash) + THRESHOLD_FIELD_NUMBER; + hash = (53 * hash) + threshold_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +       * Safety setting.
      +       * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting) + com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySettingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_ModelSafety_SafetySetting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_ModelSafety_SafetySetting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting.class, + com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + category_ = 0; + threshold_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_ModelSafety_SafetySetting_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting + getDefaultInstanceForType() { + return com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting build() { + com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting buildPartial() { + com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting result = + new com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.category_ = category_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.threshold_ = threshold_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting) { + return mergeFrom((com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting other) { + if (other + == com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting.getDefaultInstance()) + return this; + if (other.category_ != 0) { + setCategoryValue(other.getCategoryValue()); + } + if (other.threshold_ != 0) { + setThresholdValue(other.getThresholdValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + category_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + threshold_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int category_ = 0; + + /** + * + * + *
      +         * Required. The harm category.
      +         * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ModelSafety.HarmCategory category = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for category. + */ + @java.lang.Override + public int getCategoryValue() { + return category_; + } + + /** + * + * + *
      +         * Required. The harm category.
      +         * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ModelSafety.HarmCategory category = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for category to set. + * @return This builder for chaining. + */ + public Builder setCategoryValue(int value) { + category_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +         * Required. The harm category.
      +         * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ModelSafety.HarmCategory category = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The category. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.ModelSafety.HarmCategory getCategory() { + com.google.cloud.ces.v1.Guardrail.ModelSafety.HarmCategory result = + com.google.cloud.ces.v1.Guardrail.ModelSafety.HarmCategory.forNumber(category_); + return result == null + ? com.google.cloud.ces.v1.Guardrail.ModelSafety.HarmCategory.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +         * Required. The harm category.
      +         * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ModelSafety.HarmCategory category = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The category to set. + * @return This builder for chaining. + */ + public Builder setCategory( + com.google.cloud.ces.v1.Guardrail.ModelSafety.HarmCategory value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + category_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +         * Required. The harm category.
      +         * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ModelSafety.HarmCategory category = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearCategory() { + bitField0_ = (bitField0_ & ~0x00000001); + category_ = 0; + onChanged(); + return this; + } + + private int threshold_ = 0; + + /** + * + * + *
      +         * Required. The harm block threshold.
      +         * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ModelSafety.HarmBlockThreshold threshold = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for threshold. + */ + @java.lang.Override + public int getThresholdValue() { + return threshold_; + } + + /** + * + * + *
      +         * Required. The harm block threshold.
      +         * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ModelSafety.HarmBlockThreshold threshold = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for threshold to set. + * @return This builder for chaining. + */ + public Builder setThresholdValue(int value) { + threshold_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +         * Required. The harm block threshold.
      +         * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ModelSafety.HarmBlockThreshold threshold = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The threshold. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.ModelSafety.HarmBlockThreshold getThreshold() { + com.google.cloud.ces.v1.Guardrail.ModelSafety.HarmBlockThreshold result = + com.google.cloud.ces.v1.Guardrail.ModelSafety.HarmBlockThreshold.forNumber( + threshold_); + return result == null + ? com.google.cloud.ces.v1.Guardrail.ModelSafety.HarmBlockThreshold.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +         * Required. The harm block threshold.
      +         * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ModelSafety.HarmBlockThreshold threshold = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The threshold to set. + * @return This builder for chaining. + */ + public Builder setThreshold( + com.google.cloud.ces.v1.Guardrail.ModelSafety.HarmBlockThreshold value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + threshold_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +         * Required. The harm block threshold.
      +         * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ModelSafety.HarmBlockThreshold threshold = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearThreshold() { + bitField0_ = (bitField0_ & ~0x00000002); + threshold_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting) + private static final com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting(); + } + + public static com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SafetySetting parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int SAFETY_SETTINGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + safetySettings_; + + /** + * + * + *
      +     * Required. List of safety settings.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting safety_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getSafetySettingsList() { + return safetySettings_; + } + + /** + * + * + *
      +     * Required. List of safety settings.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting safety_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySettingOrBuilder> + getSafetySettingsOrBuilderList() { + return safetySettings_; + } + + /** + * + * + *
      +     * Required. List of safety settings.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting safety_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getSafetySettingsCount() { + return safetySettings_.size(); + } + + /** + * + * + *
      +     * Required. List of safety settings.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting safety_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting getSafetySettings( + int index) { + return safetySettings_.get(index); + } + + /** + * + * + *
      +     * Required. List of safety settings.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting safety_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySettingOrBuilder + getSafetySettingsOrBuilder(int index) { + return safetySettings_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < safetySettings_.size(); i++) { + output.writeMessage(1, safetySettings_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < safetySettings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, safetySettings_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.Guardrail.ModelSafety)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.Guardrail.ModelSafety other = + (com.google.cloud.ces.v1.Guardrail.ModelSafety) obj; + + if (!getSafetySettingsList().equals(other.getSafetySettingsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSafetySettingsCount() > 0) { + hash = (37 * hash) + SAFETY_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getSafetySettingsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.Guardrail.ModelSafety parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Guardrail.ModelSafety parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.ModelSafety parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Guardrail.ModelSafety parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.ModelSafety parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Guardrail.ModelSafety parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.ModelSafety parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Guardrail.ModelSafety parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.ModelSafety parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Guardrail.ModelSafety parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.ModelSafety parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Guardrail.ModelSafety parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.Guardrail.ModelSafety prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Model safety settings overrides. When this is set, it will override the
      +     * default settings and trigger the guardrail if the response is considered
      +     * unsafe.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Guardrail.ModelSafety} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.Guardrail.ModelSafety) + com.google.cloud.ces.v1.Guardrail.ModelSafetyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_ModelSafety_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_ModelSafety_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Guardrail.ModelSafety.class, + com.google.cloud.ces.v1.Guardrail.ModelSafety.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.Guardrail.ModelSafety.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (safetySettingsBuilder_ == null) { + safetySettings_ = java.util.Collections.emptyList(); + } else { + safetySettings_ = null; + safetySettingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_ModelSafety_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.ModelSafety getDefaultInstanceForType() { + return com.google.cloud.ces.v1.Guardrail.ModelSafety.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.ModelSafety build() { + com.google.cloud.ces.v1.Guardrail.ModelSafety result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.ModelSafety buildPartial() { + com.google.cloud.ces.v1.Guardrail.ModelSafety result = + new com.google.cloud.ces.v1.Guardrail.ModelSafety(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.ces.v1.Guardrail.ModelSafety result) { + if (safetySettingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + safetySettings_ = java.util.Collections.unmodifiableList(safetySettings_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.safetySettings_ = safetySettings_; + } else { + result.safetySettings_ = safetySettingsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.Guardrail.ModelSafety result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.Guardrail.ModelSafety) { + return mergeFrom((com.google.cloud.ces.v1.Guardrail.ModelSafety) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.Guardrail.ModelSafety other) { + if (other == com.google.cloud.ces.v1.Guardrail.ModelSafety.getDefaultInstance()) + return this; + if (safetySettingsBuilder_ == null) { + if (!other.safetySettings_.isEmpty()) { + if (safetySettings_.isEmpty()) { + safetySettings_ = other.safetySettings_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSafetySettingsIsMutable(); + safetySettings_.addAll(other.safetySettings_); + } + onChanged(); + } + } else { + if (!other.safetySettings_.isEmpty()) { + if (safetySettingsBuilder_.isEmpty()) { + safetySettingsBuilder_.dispose(); + safetySettingsBuilder_ = null; + safetySettings_ = other.safetySettings_; + bitField0_ = (bitField0_ & ~0x00000001); + safetySettingsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSafetySettingsFieldBuilder() + : null; + } else { + safetySettingsBuilder_.addAllMessages(other.safetySettings_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting m = + input.readMessage( + com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting.parser(), + extensionRegistry); + if (safetySettingsBuilder_ == null) { + ensureSafetySettingsIsMutable(); + safetySettings_.add(m); + } else { + safetySettingsBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + safetySettings_ = java.util.Collections.emptyList(); + + private void ensureSafetySettingsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + safetySettings_ = + new java.util.ArrayList( + safetySettings_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting, + com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting.Builder, + com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySettingOrBuilder> + safetySettingsBuilder_; + + /** + * + * + *
      +       * Required. List of safety settings.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting safety_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getSafetySettingsList() { + if (safetySettingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(safetySettings_); + } else { + return safetySettingsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +       * Required. List of safety settings.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting safety_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getSafetySettingsCount() { + if (safetySettingsBuilder_ == null) { + return safetySettings_.size(); + } else { + return safetySettingsBuilder_.getCount(); + } + } + + /** + * + * + *
      +       * Required. List of safety settings.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting safety_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting getSafetySettings( + int index) { + if (safetySettingsBuilder_ == null) { + return safetySettings_.get(index); + } else { + return safetySettingsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +       * Required. List of safety settings.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting safety_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSafetySettings( + int index, com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting value) { + if (safetySettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSafetySettingsIsMutable(); + safetySettings_.set(index, value); + onChanged(); + } else { + safetySettingsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +       * Required. List of safety settings.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting safety_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSafetySettings( + int index, + com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting.Builder builderForValue) { + if (safetySettingsBuilder_ == null) { + ensureSafetySettingsIsMutable(); + safetySettings_.set(index, builderForValue.build()); + onChanged(); + } else { + safetySettingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +       * Required. List of safety settings.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting safety_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSafetySettings( + com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting value) { + if (safetySettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSafetySettingsIsMutable(); + safetySettings_.add(value); + onChanged(); + } else { + safetySettingsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +       * Required. List of safety settings.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting safety_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSafetySettings( + int index, com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting value) { + if (safetySettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSafetySettingsIsMutable(); + safetySettings_.add(index, value); + onChanged(); + } else { + safetySettingsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +       * Required. List of safety settings.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting safety_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSafetySettings( + com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting.Builder builderForValue) { + if (safetySettingsBuilder_ == null) { + ensureSafetySettingsIsMutable(); + safetySettings_.add(builderForValue.build()); + onChanged(); + } else { + safetySettingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +       * Required. List of safety settings.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting safety_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSafetySettings( + int index, + com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting.Builder builderForValue) { + if (safetySettingsBuilder_ == null) { + ensureSafetySettingsIsMutable(); + safetySettings_.add(index, builderForValue.build()); + onChanged(); + } else { + safetySettingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +       * Required. List of safety settings.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting safety_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllSafetySettings( + java.lang.Iterable + values) { + if (safetySettingsBuilder_ == null) { + ensureSafetySettingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, safetySettings_); + onChanged(); + } else { + safetySettingsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +       * Required. List of safety settings.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting safety_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSafetySettings() { + if (safetySettingsBuilder_ == null) { + safetySettings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + safetySettingsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +       * Required. List of safety settings.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting safety_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeSafetySettings(int index) { + if (safetySettingsBuilder_ == null) { + ensureSafetySettingsIsMutable(); + safetySettings_.remove(index); + onChanged(); + } else { + safetySettingsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +       * Required. List of safety settings.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting safety_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting.Builder + getSafetySettingsBuilder(int index) { + return internalGetSafetySettingsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +       * Required. List of safety settings.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting safety_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySettingOrBuilder + getSafetySettingsOrBuilder(int index) { + if (safetySettingsBuilder_ == null) { + return safetySettings_.get(index); + } else { + return safetySettingsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +       * Required. List of safety settings.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting safety_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySettingOrBuilder> + getSafetySettingsOrBuilderList() { + if (safetySettingsBuilder_ != null) { + return safetySettingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(safetySettings_); + } + } + + /** + * + * + *
      +       * Required. List of safety settings.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting safety_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting.Builder + addSafetySettingsBuilder() { + return internalGetSafetySettingsFieldBuilder() + .addBuilder( + com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting.getDefaultInstance()); + } + + /** + * + * + *
      +       * Required. List of safety settings.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting safety_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting.Builder + addSafetySettingsBuilder(int index) { + return internalGetSafetySettingsFieldBuilder() + .addBuilder( + index, + com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting.getDefaultInstance()); + } + + /** + * + * + *
      +       * Required. List of safety settings.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting safety_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getSafetySettingsBuilderList() { + return internalGetSafetySettingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting, + com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting.Builder, + com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySettingOrBuilder> + internalGetSafetySettingsFieldBuilder() { + if (safetySettingsBuilder_ == null) { + safetySettingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting, + com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySetting.Builder, + com.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySettingOrBuilder>( + safetySettings_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + safetySettings_ = null; + } + return safetySettingsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Guardrail.ModelSafety) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.Guardrail.ModelSafety) + private static final com.google.cloud.ces.v1.Guardrail.ModelSafety DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.Guardrail.ModelSafety(); + } + + public static com.google.cloud.ces.v1.Guardrail.ModelSafety getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelSafety parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.ModelSafety getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface CodeCallbackOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.Guardrail.CodeCallback) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Optional. The callback to execute before the agent is called.
      +     * Each callback function is expected to return a structure (e.g., a dict or
      +     * object) containing at least:
      +     * - 'decision': Either 'OK' or 'TRIGGER'.
      +     * - 'reason': A string explaining the decision.
      +     * A 'TRIGGER' decision may halt further processing.
      +     * 
      + * + * + * .google.cloud.ces.v1.Callback before_agent_callback = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the beforeAgentCallback field is set. + */ + boolean hasBeforeAgentCallback(); + + /** + * + * + *
      +     * Optional. The callback to execute before the agent is called.
      +     * Each callback function is expected to return a structure (e.g., a dict or
      +     * object) containing at least:
      +     * - 'decision': Either 'OK' or 'TRIGGER'.
      +     * - 'reason': A string explaining the decision.
      +     * A 'TRIGGER' decision may halt further processing.
      +     * 
      + * + * + * .google.cloud.ces.v1.Callback before_agent_callback = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The beforeAgentCallback. + */ + com.google.cloud.ces.v1.Callback getBeforeAgentCallback(); + + /** + * + * + *
      +     * Optional. The callback to execute before the agent is called.
      +     * Each callback function is expected to return a structure (e.g., a dict or
      +     * object) containing at least:
      +     * - 'decision': Either 'OK' or 'TRIGGER'.
      +     * - 'reason': A string explaining the decision.
      +     * A 'TRIGGER' decision may halt further processing.
      +     * 
      + * + * + * .google.cloud.ces.v1.Callback before_agent_callback = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.CallbackOrBuilder getBeforeAgentCallbackOrBuilder(); + + /** + * + * + *
      +     * Optional. The callback to execute after the agent is called.
      +     * Each callback function is expected to return a structure (e.g., a dict or
      +     * object) containing at least:
      +     * - 'decision': Either 'OK' or 'TRIGGER'.
      +     * - 'reason': A string explaining the decision.
      +     * A 'TRIGGER' decision may halt further processing.
      +     * 
      + * + * + * .google.cloud.ces.v1.Callback after_agent_callback = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the afterAgentCallback field is set. + */ + boolean hasAfterAgentCallback(); + + /** + * + * + *
      +     * Optional. The callback to execute after the agent is called.
      +     * Each callback function is expected to return a structure (e.g., a dict or
      +     * object) containing at least:
      +     * - 'decision': Either 'OK' or 'TRIGGER'.
      +     * - 'reason': A string explaining the decision.
      +     * A 'TRIGGER' decision may halt further processing.
      +     * 
      + * + * + * .google.cloud.ces.v1.Callback after_agent_callback = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The afterAgentCallback. + */ + com.google.cloud.ces.v1.Callback getAfterAgentCallback(); + + /** + * + * + *
      +     * Optional. The callback to execute after the agent is called.
      +     * Each callback function is expected to return a structure (e.g., a dict or
      +     * object) containing at least:
      +     * - 'decision': Either 'OK' or 'TRIGGER'.
      +     * - 'reason': A string explaining the decision.
      +     * A 'TRIGGER' decision may halt further processing.
      +     * 
      + * + * + * .google.cloud.ces.v1.Callback after_agent_callback = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.CallbackOrBuilder getAfterAgentCallbackOrBuilder(); + + /** + * + * + *
      +     * Optional. The callback to execute before the model is called. If there
      +     * are multiple calls to the model, the callback will be executed multiple
      +     * times. Each callback function is expected to return a structure (e.g., a
      +     * dict or object) containing at least:
      +     * - 'decision': Either 'OK' or 'TRIGGER'.
      +     * - 'reason': A string explaining the decision.
      +     * A 'TRIGGER' decision may halt further processing.
      +     * 
      + * + * + * .google.cloud.ces.v1.Callback before_model_callback = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the beforeModelCallback field is set. + */ + boolean hasBeforeModelCallback(); + + /** + * + * + *
      +     * Optional. The callback to execute before the model is called. If there
      +     * are multiple calls to the model, the callback will be executed multiple
      +     * times. Each callback function is expected to return a structure (e.g., a
      +     * dict or object) containing at least:
      +     * - 'decision': Either 'OK' or 'TRIGGER'.
      +     * - 'reason': A string explaining the decision.
      +     * A 'TRIGGER' decision may halt further processing.
      +     * 
      + * + * + * .google.cloud.ces.v1.Callback before_model_callback = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The beforeModelCallback. + */ + com.google.cloud.ces.v1.Callback getBeforeModelCallback(); + + /** + * + * + *
      +     * Optional. The callback to execute before the model is called. If there
      +     * are multiple calls to the model, the callback will be executed multiple
      +     * times. Each callback function is expected to return a structure (e.g., a
      +     * dict or object) containing at least:
      +     * - 'decision': Either 'OK' or 'TRIGGER'.
      +     * - 'reason': A string explaining the decision.
      +     * A 'TRIGGER' decision may halt further processing.
      +     * 
      + * + * + * .google.cloud.ces.v1.Callback before_model_callback = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.CallbackOrBuilder getBeforeModelCallbackOrBuilder(); + + /** + * + * + *
      +     * Optional. The callback to execute after the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple
      +     * times. Each callback function is expected to return a structure (e.g., a
      +     * dict or object) containing at least:
      +     * - 'decision': Either 'OK' or 'TRIGGER'.
      +     * - 'reason': A string explaining the decision.
      +     * A 'TRIGGER' decision may halt further processing.
      +     * 
      + * + * + * .google.cloud.ces.v1.Callback after_model_callback = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the afterModelCallback field is set. + */ + boolean hasAfterModelCallback(); + + /** + * + * + *
      +     * Optional. The callback to execute after the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple
      +     * times. Each callback function is expected to return a structure (e.g., a
      +     * dict or object) containing at least:
      +     * - 'decision': Either 'OK' or 'TRIGGER'.
      +     * - 'reason': A string explaining the decision.
      +     * A 'TRIGGER' decision may halt further processing.
      +     * 
      + * + * + * .google.cloud.ces.v1.Callback after_model_callback = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The afterModelCallback. + */ + com.google.cloud.ces.v1.Callback getAfterModelCallback(); + + /** + * + * + *
      +     * Optional. The callback to execute after the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple
      +     * times. Each callback function is expected to return a structure (e.g., a
      +     * dict or object) containing at least:
      +     * - 'decision': Either 'OK' or 'TRIGGER'.
      +     * - 'reason': A string explaining the decision.
      +     * A 'TRIGGER' decision may halt further processing.
      +     * 
      + * + * + * .google.cloud.ces.v1.Callback after_model_callback = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.CallbackOrBuilder getAfterModelCallbackOrBuilder(); + } + + /** + * + * + *
      +   * Guardrail that blocks the conversation based on the code callbacks
      +   * provided.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Guardrail.CodeCallback} + */ + public static final class CodeCallback extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.Guardrail.CodeCallback) + CodeCallbackOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CodeCallback"); + } + + // Use CodeCallback.newBuilder() to construct. + private CodeCallback(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CodeCallback() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_CodeCallback_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_CodeCallback_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Guardrail.CodeCallback.class, + com.google.cloud.ces.v1.Guardrail.CodeCallback.Builder.class); + } + + private int bitField0_; + public static final int BEFORE_AGENT_CALLBACK_FIELD_NUMBER = 1; + private com.google.cloud.ces.v1.Callback beforeAgentCallback_; + + /** + * + * + *
      +     * Optional. The callback to execute before the agent is called.
      +     * Each callback function is expected to return a structure (e.g., a dict or
      +     * object) containing at least:
      +     * - 'decision': Either 'OK' or 'TRIGGER'.
      +     * - 'reason': A string explaining the decision.
      +     * A 'TRIGGER' decision may halt further processing.
      +     * 
      + * + * + * .google.cloud.ces.v1.Callback before_agent_callback = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the beforeAgentCallback field is set. + */ + @java.lang.Override + public boolean hasBeforeAgentCallback() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Optional. The callback to execute before the agent is called.
      +     * Each callback function is expected to return a structure (e.g., a dict or
      +     * object) containing at least:
      +     * - 'decision': Either 'OK' or 'TRIGGER'.
      +     * - 'reason': A string explaining the decision.
      +     * A 'TRIGGER' decision may halt further processing.
      +     * 
      + * + * + * .google.cloud.ces.v1.Callback before_agent_callback = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The beforeAgentCallback. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Callback getBeforeAgentCallback() { + return beforeAgentCallback_ == null + ? com.google.cloud.ces.v1.Callback.getDefaultInstance() + : beforeAgentCallback_; + } + + /** + * + * + *
      +     * Optional. The callback to execute before the agent is called.
      +     * Each callback function is expected to return a structure (e.g., a dict or
      +     * object) containing at least:
      +     * - 'decision': Either 'OK' or 'TRIGGER'.
      +     * - 'reason': A string explaining the decision.
      +     * A 'TRIGGER' decision may halt further processing.
      +     * 
      + * + * + * .google.cloud.ces.v1.Callback before_agent_callback = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.CallbackOrBuilder getBeforeAgentCallbackOrBuilder() { + return beforeAgentCallback_ == null + ? com.google.cloud.ces.v1.Callback.getDefaultInstance() + : beforeAgentCallback_; + } + + public static final int AFTER_AGENT_CALLBACK_FIELD_NUMBER = 2; + private com.google.cloud.ces.v1.Callback afterAgentCallback_; + + /** + * + * + *
      +     * Optional. The callback to execute after the agent is called.
      +     * Each callback function is expected to return a structure (e.g., a dict or
      +     * object) containing at least:
      +     * - 'decision': Either 'OK' or 'TRIGGER'.
      +     * - 'reason': A string explaining the decision.
      +     * A 'TRIGGER' decision may halt further processing.
      +     * 
      + * + * + * .google.cloud.ces.v1.Callback after_agent_callback = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the afterAgentCallback field is set. + */ + @java.lang.Override + public boolean hasAfterAgentCallback() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Optional. The callback to execute after the agent is called.
      +     * Each callback function is expected to return a structure (e.g., a dict or
      +     * object) containing at least:
      +     * - 'decision': Either 'OK' or 'TRIGGER'.
      +     * - 'reason': A string explaining the decision.
      +     * A 'TRIGGER' decision may halt further processing.
      +     * 
      + * + * + * .google.cloud.ces.v1.Callback after_agent_callback = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The afterAgentCallback. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Callback getAfterAgentCallback() { + return afterAgentCallback_ == null + ? com.google.cloud.ces.v1.Callback.getDefaultInstance() + : afterAgentCallback_; + } + + /** + * + * + *
      +     * Optional. The callback to execute after the agent is called.
      +     * Each callback function is expected to return a structure (e.g., a dict or
      +     * object) containing at least:
      +     * - 'decision': Either 'OK' or 'TRIGGER'.
      +     * - 'reason': A string explaining the decision.
      +     * A 'TRIGGER' decision may halt further processing.
      +     * 
      + * + * + * .google.cloud.ces.v1.Callback after_agent_callback = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.CallbackOrBuilder getAfterAgentCallbackOrBuilder() { + return afterAgentCallback_ == null + ? com.google.cloud.ces.v1.Callback.getDefaultInstance() + : afterAgentCallback_; + } + + public static final int BEFORE_MODEL_CALLBACK_FIELD_NUMBER = 3; + private com.google.cloud.ces.v1.Callback beforeModelCallback_; + + /** + * + * + *
      +     * Optional. The callback to execute before the model is called. If there
      +     * are multiple calls to the model, the callback will be executed multiple
      +     * times. Each callback function is expected to return a structure (e.g., a
      +     * dict or object) containing at least:
      +     * - 'decision': Either 'OK' or 'TRIGGER'.
      +     * - 'reason': A string explaining the decision.
      +     * A 'TRIGGER' decision may halt further processing.
      +     * 
      + * + * + * .google.cloud.ces.v1.Callback before_model_callback = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the beforeModelCallback field is set. + */ + @java.lang.Override + public boolean hasBeforeModelCallback() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Optional. The callback to execute before the model is called. If there
      +     * are multiple calls to the model, the callback will be executed multiple
      +     * times. Each callback function is expected to return a structure (e.g., a
      +     * dict or object) containing at least:
      +     * - 'decision': Either 'OK' or 'TRIGGER'.
      +     * - 'reason': A string explaining the decision.
      +     * A 'TRIGGER' decision may halt further processing.
      +     * 
      + * + * + * .google.cloud.ces.v1.Callback before_model_callback = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The beforeModelCallback. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Callback getBeforeModelCallback() { + return beforeModelCallback_ == null + ? com.google.cloud.ces.v1.Callback.getDefaultInstance() + : beforeModelCallback_; + } + + /** + * + * + *
      +     * Optional. The callback to execute before the model is called. If there
      +     * are multiple calls to the model, the callback will be executed multiple
      +     * times. Each callback function is expected to return a structure (e.g., a
      +     * dict or object) containing at least:
      +     * - 'decision': Either 'OK' or 'TRIGGER'.
      +     * - 'reason': A string explaining the decision.
      +     * A 'TRIGGER' decision may halt further processing.
      +     * 
      + * + * + * .google.cloud.ces.v1.Callback before_model_callback = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.CallbackOrBuilder getBeforeModelCallbackOrBuilder() { + return beforeModelCallback_ == null + ? com.google.cloud.ces.v1.Callback.getDefaultInstance() + : beforeModelCallback_; + } + + public static final int AFTER_MODEL_CALLBACK_FIELD_NUMBER = 4; + private com.google.cloud.ces.v1.Callback afterModelCallback_; + + /** + * + * + *
      +     * Optional. The callback to execute after the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple
      +     * times. Each callback function is expected to return a structure (e.g., a
      +     * dict or object) containing at least:
      +     * - 'decision': Either 'OK' or 'TRIGGER'.
      +     * - 'reason': A string explaining the decision.
      +     * A 'TRIGGER' decision may halt further processing.
      +     * 
      + * + * + * .google.cloud.ces.v1.Callback after_model_callback = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the afterModelCallback field is set. + */ + @java.lang.Override + public boolean hasAfterModelCallback() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +     * Optional. The callback to execute after the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple
      +     * times. Each callback function is expected to return a structure (e.g., a
      +     * dict or object) containing at least:
      +     * - 'decision': Either 'OK' or 'TRIGGER'.
      +     * - 'reason': A string explaining the decision.
      +     * A 'TRIGGER' decision may halt further processing.
      +     * 
      + * + * + * .google.cloud.ces.v1.Callback after_model_callback = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The afterModelCallback. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Callback getAfterModelCallback() { + return afterModelCallback_ == null + ? com.google.cloud.ces.v1.Callback.getDefaultInstance() + : afterModelCallback_; + } + + /** + * + * + *
      +     * Optional. The callback to execute after the model is called. If there are
      +     * multiple calls to the model, the callback will be executed multiple
      +     * times. Each callback function is expected to return a structure (e.g., a
      +     * dict or object) containing at least:
      +     * - 'decision': Either 'OK' or 'TRIGGER'.
      +     * - 'reason': A string explaining the decision.
      +     * A 'TRIGGER' decision may halt further processing.
      +     * 
      + * + * + * .google.cloud.ces.v1.Callback after_model_callback = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.CallbackOrBuilder getAfterModelCallbackOrBuilder() { + return afterModelCallback_ == null + ? com.google.cloud.ces.v1.Callback.getDefaultInstance() + : afterModelCallback_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getBeforeAgentCallback()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getAfterAgentCallback()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getBeforeModelCallback()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getAfterModelCallback()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBeforeAgentCallback()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAfterAgentCallback()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBeforeModelCallback()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAfterModelCallback()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.Guardrail.CodeCallback)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.Guardrail.CodeCallback other = + (com.google.cloud.ces.v1.Guardrail.CodeCallback) obj; + + if (hasBeforeAgentCallback() != other.hasBeforeAgentCallback()) return false; + if (hasBeforeAgentCallback()) { + if (!getBeforeAgentCallback().equals(other.getBeforeAgentCallback())) return false; + } + if (hasAfterAgentCallback() != other.hasAfterAgentCallback()) return false; + if (hasAfterAgentCallback()) { + if (!getAfterAgentCallback().equals(other.getAfterAgentCallback())) return false; + } + if (hasBeforeModelCallback() != other.hasBeforeModelCallback()) return false; + if (hasBeforeModelCallback()) { + if (!getBeforeModelCallback().equals(other.getBeforeModelCallback())) return false; + } + if (hasAfterModelCallback() != other.hasAfterModelCallback()) return false; + if (hasAfterModelCallback()) { + if (!getAfterModelCallback().equals(other.getAfterModelCallback())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasBeforeAgentCallback()) { + hash = (37 * hash) + BEFORE_AGENT_CALLBACK_FIELD_NUMBER; + hash = (53 * hash) + getBeforeAgentCallback().hashCode(); + } + if (hasAfterAgentCallback()) { + hash = (37 * hash) + AFTER_AGENT_CALLBACK_FIELD_NUMBER; + hash = (53 * hash) + getAfterAgentCallback().hashCode(); + } + if (hasBeforeModelCallback()) { + hash = (37 * hash) + BEFORE_MODEL_CALLBACK_FIELD_NUMBER; + hash = (53 * hash) + getBeforeModelCallback().hashCode(); + } + if (hasAfterModelCallback()) { + hash = (37 * hash) + AFTER_MODEL_CALLBACK_FIELD_NUMBER; + hash = (53 * hash) + getAfterModelCallback().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.Guardrail.CodeCallback parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Guardrail.CodeCallback parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.CodeCallback parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Guardrail.CodeCallback parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.CodeCallback parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Guardrail.CodeCallback parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.CodeCallback parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Guardrail.CodeCallback parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.CodeCallback parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Guardrail.CodeCallback parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail.CodeCallback parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Guardrail.CodeCallback parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.Guardrail.CodeCallback prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Guardrail that blocks the conversation based on the code callbacks
      +     * provided.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Guardrail.CodeCallback} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.Guardrail.CodeCallback) + com.google.cloud.ces.v1.Guardrail.CodeCallbackOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_CodeCallback_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_CodeCallback_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Guardrail.CodeCallback.class, + com.google.cloud.ces.v1.Guardrail.CodeCallback.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.Guardrail.CodeCallback.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetBeforeAgentCallbackFieldBuilder(); + internalGetAfterAgentCallbackFieldBuilder(); + internalGetBeforeModelCallbackFieldBuilder(); + internalGetAfterModelCallbackFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + beforeAgentCallback_ = null; + if (beforeAgentCallbackBuilder_ != null) { + beforeAgentCallbackBuilder_.dispose(); + beforeAgentCallbackBuilder_ = null; + } + afterAgentCallback_ = null; + if (afterAgentCallbackBuilder_ != null) { + afterAgentCallbackBuilder_.dispose(); + afterAgentCallbackBuilder_ = null; + } + beforeModelCallback_ = null; + if (beforeModelCallbackBuilder_ != null) { + beforeModelCallbackBuilder_.dispose(); + beforeModelCallbackBuilder_ = null; + } + afterModelCallback_ = null; + if (afterModelCallbackBuilder_ != null) { + afterModelCallbackBuilder_.dispose(); + afterModelCallbackBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_CodeCallback_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.CodeCallback getDefaultInstanceForType() { + return com.google.cloud.ces.v1.Guardrail.CodeCallback.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.CodeCallback build() { + com.google.cloud.ces.v1.Guardrail.CodeCallback result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.CodeCallback buildPartial() { + com.google.cloud.ces.v1.Guardrail.CodeCallback result = + new com.google.cloud.ces.v1.Guardrail.CodeCallback(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.Guardrail.CodeCallback result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.beforeAgentCallback_ = + beforeAgentCallbackBuilder_ == null + ? beforeAgentCallback_ + : beforeAgentCallbackBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.afterAgentCallback_ = + afterAgentCallbackBuilder_ == null + ? afterAgentCallback_ + : afterAgentCallbackBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.beforeModelCallback_ = + beforeModelCallbackBuilder_ == null + ? beforeModelCallback_ + : beforeModelCallbackBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.afterModelCallback_ = + afterModelCallbackBuilder_ == null + ? afterModelCallback_ + : afterModelCallbackBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.Guardrail.CodeCallback) { + return mergeFrom((com.google.cloud.ces.v1.Guardrail.CodeCallback) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.Guardrail.CodeCallback other) { + if (other == com.google.cloud.ces.v1.Guardrail.CodeCallback.getDefaultInstance()) + return this; + if (other.hasBeforeAgentCallback()) { + mergeBeforeAgentCallback(other.getBeforeAgentCallback()); + } + if (other.hasAfterAgentCallback()) { + mergeAfterAgentCallback(other.getAfterAgentCallback()); + } + if (other.hasBeforeModelCallback()) { + mergeBeforeModelCallback(other.getBeforeModelCallback()); + } + if (other.hasAfterModelCallback()) { + mergeAfterModelCallback(other.getAfterModelCallback()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetBeforeAgentCallbackFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetAfterAgentCallbackFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetBeforeModelCallbackFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetAfterModelCallbackFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.ces.v1.Callback beforeAgentCallback_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Callback, + com.google.cloud.ces.v1.Callback.Builder, + com.google.cloud.ces.v1.CallbackOrBuilder> + beforeAgentCallbackBuilder_; + + /** + * + * + *
      +       * Optional. The callback to execute before the agent is called.
      +       * Each callback function is expected to return a structure (e.g., a dict or
      +       * object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback before_agent_callback = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the beforeAgentCallback field is set. + */ + public boolean hasBeforeAgentCallback() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +       * Optional. The callback to execute before the agent is called.
      +       * Each callback function is expected to return a structure (e.g., a dict or
      +       * object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback before_agent_callback = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The beforeAgentCallback. + */ + public com.google.cloud.ces.v1.Callback getBeforeAgentCallback() { + if (beforeAgentCallbackBuilder_ == null) { + return beforeAgentCallback_ == null + ? com.google.cloud.ces.v1.Callback.getDefaultInstance() + : beforeAgentCallback_; + } else { + return beforeAgentCallbackBuilder_.getMessage(); + } + } + + /** + * + * + *
      +       * Optional. The callback to execute before the agent is called.
      +       * Each callback function is expected to return a structure (e.g., a dict or
      +       * object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback before_agent_callback = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBeforeAgentCallback(com.google.cloud.ces.v1.Callback value) { + if (beforeAgentCallbackBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + beforeAgentCallback_ = value; + } else { + beforeAgentCallbackBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The callback to execute before the agent is called.
      +       * Each callback function is expected to return a structure (e.g., a dict or
      +       * object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback before_agent_callback = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBeforeAgentCallback( + com.google.cloud.ces.v1.Callback.Builder builderForValue) { + if (beforeAgentCallbackBuilder_ == null) { + beforeAgentCallback_ = builderForValue.build(); + } else { + beforeAgentCallbackBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The callback to execute before the agent is called.
      +       * Each callback function is expected to return a structure (e.g., a dict or
      +       * object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback before_agent_callback = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeBeforeAgentCallback(com.google.cloud.ces.v1.Callback value) { + if (beforeAgentCallbackBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && beforeAgentCallback_ != null + && beforeAgentCallback_ != com.google.cloud.ces.v1.Callback.getDefaultInstance()) { + getBeforeAgentCallbackBuilder().mergeFrom(value); + } else { + beforeAgentCallback_ = value; + } + } else { + beforeAgentCallbackBuilder_.mergeFrom(value); + } + if (beforeAgentCallback_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +       * Optional. The callback to execute before the agent is called.
      +       * Each callback function is expected to return a structure (e.g., a dict or
      +       * object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback before_agent_callback = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearBeforeAgentCallback() { + bitField0_ = (bitField0_ & ~0x00000001); + beforeAgentCallback_ = null; + if (beforeAgentCallbackBuilder_ != null) { + beforeAgentCallbackBuilder_.dispose(); + beforeAgentCallbackBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The callback to execute before the agent is called.
      +       * Each callback function is expected to return a structure (e.g., a dict or
      +       * object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback before_agent_callback = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Callback.Builder getBeforeAgentCallbackBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetBeforeAgentCallbackFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Optional. The callback to execute before the agent is called.
      +       * Each callback function is expected to return a structure (e.g., a dict or
      +       * object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback before_agent_callback = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.CallbackOrBuilder getBeforeAgentCallbackOrBuilder() { + if (beforeAgentCallbackBuilder_ != null) { + return beforeAgentCallbackBuilder_.getMessageOrBuilder(); + } else { + return beforeAgentCallback_ == null + ? com.google.cloud.ces.v1.Callback.getDefaultInstance() + : beforeAgentCallback_; + } + } + + /** + * + * + *
      +       * Optional. The callback to execute before the agent is called.
      +       * Each callback function is expected to return a structure (e.g., a dict or
      +       * object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback before_agent_callback = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Callback, + com.google.cloud.ces.v1.Callback.Builder, + com.google.cloud.ces.v1.CallbackOrBuilder> + internalGetBeforeAgentCallbackFieldBuilder() { + if (beforeAgentCallbackBuilder_ == null) { + beforeAgentCallbackBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Callback, + com.google.cloud.ces.v1.Callback.Builder, + com.google.cloud.ces.v1.CallbackOrBuilder>( + getBeforeAgentCallback(), getParentForChildren(), isClean()); + beforeAgentCallback_ = null; + } + return beforeAgentCallbackBuilder_; + } + + private com.google.cloud.ces.v1.Callback afterAgentCallback_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Callback, + com.google.cloud.ces.v1.Callback.Builder, + com.google.cloud.ces.v1.CallbackOrBuilder> + afterAgentCallbackBuilder_; + + /** + * + * + *
      +       * Optional. The callback to execute after the agent is called.
      +       * Each callback function is expected to return a structure (e.g., a dict or
      +       * object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback after_agent_callback = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the afterAgentCallback field is set. + */ + public boolean hasAfterAgentCallback() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +       * Optional. The callback to execute after the agent is called.
      +       * Each callback function is expected to return a structure (e.g., a dict or
      +       * object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback after_agent_callback = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The afterAgentCallback. + */ + public com.google.cloud.ces.v1.Callback getAfterAgentCallback() { + if (afterAgentCallbackBuilder_ == null) { + return afterAgentCallback_ == null + ? com.google.cloud.ces.v1.Callback.getDefaultInstance() + : afterAgentCallback_; + } else { + return afterAgentCallbackBuilder_.getMessage(); + } + } + + /** + * + * + *
      +       * Optional. The callback to execute after the agent is called.
      +       * Each callback function is expected to return a structure (e.g., a dict or
      +       * object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback after_agent_callback = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAfterAgentCallback(com.google.cloud.ces.v1.Callback value) { + if (afterAgentCallbackBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + afterAgentCallback_ = value; + } else { + afterAgentCallbackBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The callback to execute after the agent is called.
      +       * Each callback function is expected to return a structure (e.g., a dict or
      +       * object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback after_agent_callback = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAfterAgentCallback( + com.google.cloud.ces.v1.Callback.Builder builderForValue) { + if (afterAgentCallbackBuilder_ == null) { + afterAgentCallback_ = builderForValue.build(); + } else { + afterAgentCallbackBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The callback to execute after the agent is called.
      +       * Each callback function is expected to return a structure (e.g., a dict or
      +       * object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback after_agent_callback = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAfterAgentCallback(com.google.cloud.ces.v1.Callback value) { + if (afterAgentCallbackBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && afterAgentCallback_ != null + && afterAgentCallback_ != com.google.cloud.ces.v1.Callback.getDefaultInstance()) { + getAfterAgentCallbackBuilder().mergeFrom(value); + } else { + afterAgentCallback_ = value; + } + } else { + afterAgentCallbackBuilder_.mergeFrom(value); + } + if (afterAgentCallback_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +       * Optional. The callback to execute after the agent is called.
      +       * Each callback function is expected to return a structure (e.g., a dict or
      +       * object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback after_agent_callback = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAfterAgentCallback() { + bitField0_ = (bitField0_ & ~0x00000002); + afterAgentCallback_ = null; + if (afterAgentCallbackBuilder_ != null) { + afterAgentCallbackBuilder_.dispose(); + afterAgentCallbackBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The callback to execute after the agent is called.
      +       * Each callback function is expected to return a structure (e.g., a dict or
      +       * object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback after_agent_callback = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Callback.Builder getAfterAgentCallbackBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetAfterAgentCallbackFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Optional. The callback to execute after the agent is called.
      +       * Each callback function is expected to return a structure (e.g., a dict or
      +       * object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback after_agent_callback = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.CallbackOrBuilder getAfterAgentCallbackOrBuilder() { + if (afterAgentCallbackBuilder_ != null) { + return afterAgentCallbackBuilder_.getMessageOrBuilder(); + } else { + return afterAgentCallback_ == null + ? com.google.cloud.ces.v1.Callback.getDefaultInstance() + : afterAgentCallback_; + } + } + + /** + * + * + *
      +       * Optional. The callback to execute after the agent is called.
      +       * Each callback function is expected to return a structure (e.g., a dict or
      +       * object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback after_agent_callback = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Callback, + com.google.cloud.ces.v1.Callback.Builder, + com.google.cloud.ces.v1.CallbackOrBuilder> + internalGetAfterAgentCallbackFieldBuilder() { + if (afterAgentCallbackBuilder_ == null) { + afterAgentCallbackBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Callback, + com.google.cloud.ces.v1.Callback.Builder, + com.google.cloud.ces.v1.CallbackOrBuilder>( + getAfterAgentCallback(), getParentForChildren(), isClean()); + afterAgentCallback_ = null; + } + return afterAgentCallbackBuilder_; + } + + private com.google.cloud.ces.v1.Callback beforeModelCallback_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Callback, + com.google.cloud.ces.v1.Callback.Builder, + com.google.cloud.ces.v1.CallbackOrBuilder> + beforeModelCallbackBuilder_; + + /** + * + * + *
      +       * Optional. The callback to execute before the model is called. If there
      +       * are multiple calls to the model, the callback will be executed multiple
      +       * times. Each callback function is expected to return a structure (e.g., a
      +       * dict or object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback before_model_callback = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the beforeModelCallback field is set. + */ + public boolean hasBeforeModelCallback() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +       * Optional. The callback to execute before the model is called. If there
      +       * are multiple calls to the model, the callback will be executed multiple
      +       * times. Each callback function is expected to return a structure (e.g., a
      +       * dict or object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback before_model_callback = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The beforeModelCallback. + */ + public com.google.cloud.ces.v1.Callback getBeforeModelCallback() { + if (beforeModelCallbackBuilder_ == null) { + return beforeModelCallback_ == null + ? com.google.cloud.ces.v1.Callback.getDefaultInstance() + : beforeModelCallback_; + } else { + return beforeModelCallbackBuilder_.getMessage(); + } + } + + /** + * + * + *
      +       * Optional. The callback to execute before the model is called. If there
      +       * are multiple calls to the model, the callback will be executed multiple
      +       * times. Each callback function is expected to return a structure (e.g., a
      +       * dict or object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback before_model_callback = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBeforeModelCallback(com.google.cloud.ces.v1.Callback value) { + if (beforeModelCallbackBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + beforeModelCallback_ = value; + } else { + beforeModelCallbackBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The callback to execute before the model is called. If there
      +       * are multiple calls to the model, the callback will be executed multiple
      +       * times. Each callback function is expected to return a structure (e.g., a
      +       * dict or object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback before_model_callback = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBeforeModelCallback( + com.google.cloud.ces.v1.Callback.Builder builderForValue) { + if (beforeModelCallbackBuilder_ == null) { + beforeModelCallback_ = builderForValue.build(); + } else { + beforeModelCallbackBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The callback to execute before the model is called. If there
      +       * are multiple calls to the model, the callback will be executed multiple
      +       * times. Each callback function is expected to return a structure (e.g., a
      +       * dict or object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback before_model_callback = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeBeforeModelCallback(com.google.cloud.ces.v1.Callback value) { + if (beforeModelCallbackBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && beforeModelCallback_ != null + && beforeModelCallback_ != com.google.cloud.ces.v1.Callback.getDefaultInstance()) { + getBeforeModelCallbackBuilder().mergeFrom(value); + } else { + beforeModelCallback_ = value; + } + } else { + beforeModelCallbackBuilder_.mergeFrom(value); + } + if (beforeModelCallback_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
      +       * Optional. The callback to execute before the model is called. If there
      +       * are multiple calls to the model, the callback will be executed multiple
      +       * times. Each callback function is expected to return a structure (e.g., a
      +       * dict or object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback before_model_callback = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearBeforeModelCallback() { + bitField0_ = (bitField0_ & ~0x00000004); + beforeModelCallback_ = null; + if (beforeModelCallbackBuilder_ != null) { + beforeModelCallbackBuilder_.dispose(); + beforeModelCallbackBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The callback to execute before the model is called. If there
      +       * are multiple calls to the model, the callback will be executed multiple
      +       * times. Each callback function is expected to return a structure (e.g., a
      +       * dict or object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback before_model_callback = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Callback.Builder getBeforeModelCallbackBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetBeforeModelCallbackFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Optional. The callback to execute before the model is called. If there
      +       * are multiple calls to the model, the callback will be executed multiple
      +       * times. Each callback function is expected to return a structure (e.g., a
      +       * dict or object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback before_model_callback = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.CallbackOrBuilder getBeforeModelCallbackOrBuilder() { + if (beforeModelCallbackBuilder_ != null) { + return beforeModelCallbackBuilder_.getMessageOrBuilder(); + } else { + return beforeModelCallback_ == null + ? com.google.cloud.ces.v1.Callback.getDefaultInstance() + : beforeModelCallback_; + } + } + + /** + * + * + *
      +       * Optional. The callback to execute before the model is called. If there
      +       * are multiple calls to the model, the callback will be executed multiple
      +       * times. Each callback function is expected to return a structure (e.g., a
      +       * dict or object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback before_model_callback = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Callback, + com.google.cloud.ces.v1.Callback.Builder, + com.google.cloud.ces.v1.CallbackOrBuilder> + internalGetBeforeModelCallbackFieldBuilder() { + if (beforeModelCallbackBuilder_ == null) { + beforeModelCallbackBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Callback, + com.google.cloud.ces.v1.Callback.Builder, + com.google.cloud.ces.v1.CallbackOrBuilder>( + getBeforeModelCallback(), getParentForChildren(), isClean()); + beforeModelCallback_ = null; + } + return beforeModelCallbackBuilder_; + } + + private com.google.cloud.ces.v1.Callback afterModelCallback_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Callback, + com.google.cloud.ces.v1.Callback.Builder, + com.google.cloud.ces.v1.CallbackOrBuilder> + afterModelCallbackBuilder_; + + /** + * + * + *
      +       * Optional. The callback to execute after the model is called. If there are
      +       * multiple calls to the model, the callback will be executed multiple
      +       * times. Each callback function is expected to return a structure (e.g., a
      +       * dict or object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback after_model_callback = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the afterModelCallback field is set. + */ + public boolean hasAfterModelCallback() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +       * Optional. The callback to execute after the model is called. If there are
      +       * multiple calls to the model, the callback will be executed multiple
      +       * times. Each callback function is expected to return a structure (e.g., a
      +       * dict or object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback after_model_callback = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The afterModelCallback. + */ + public com.google.cloud.ces.v1.Callback getAfterModelCallback() { + if (afterModelCallbackBuilder_ == null) { + return afterModelCallback_ == null + ? com.google.cloud.ces.v1.Callback.getDefaultInstance() + : afterModelCallback_; + } else { + return afterModelCallbackBuilder_.getMessage(); + } + } + + /** + * + * + *
      +       * Optional. The callback to execute after the model is called. If there are
      +       * multiple calls to the model, the callback will be executed multiple
      +       * times. Each callback function is expected to return a structure (e.g., a
      +       * dict or object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback after_model_callback = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAfterModelCallback(com.google.cloud.ces.v1.Callback value) { + if (afterModelCallbackBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + afterModelCallback_ = value; + } else { + afterModelCallbackBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The callback to execute after the model is called. If there are
      +       * multiple calls to the model, the callback will be executed multiple
      +       * times. Each callback function is expected to return a structure (e.g., a
      +       * dict or object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback after_model_callback = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAfterModelCallback( + com.google.cloud.ces.v1.Callback.Builder builderForValue) { + if (afterModelCallbackBuilder_ == null) { + afterModelCallback_ = builderForValue.build(); + } else { + afterModelCallbackBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The callback to execute after the model is called. If there are
      +       * multiple calls to the model, the callback will be executed multiple
      +       * times. Each callback function is expected to return a structure (e.g., a
      +       * dict or object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback after_model_callback = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAfterModelCallback(com.google.cloud.ces.v1.Callback value) { + if (afterModelCallbackBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && afterModelCallback_ != null + && afterModelCallback_ != com.google.cloud.ces.v1.Callback.getDefaultInstance()) { + getAfterModelCallbackBuilder().mergeFrom(value); + } else { + afterModelCallback_ = value; + } + } else { + afterModelCallbackBuilder_.mergeFrom(value); + } + if (afterModelCallback_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
      +       * Optional. The callback to execute after the model is called. If there are
      +       * multiple calls to the model, the callback will be executed multiple
      +       * times. Each callback function is expected to return a structure (e.g., a
      +       * dict or object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback after_model_callback = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAfterModelCallback() { + bitField0_ = (bitField0_ & ~0x00000008); + afterModelCallback_ = null; + if (afterModelCallbackBuilder_ != null) { + afterModelCallbackBuilder_.dispose(); + afterModelCallbackBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The callback to execute after the model is called. If there are
      +       * multiple calls to the model, the callback will be executed multiple
      +       * times. Each callback function is expected to return a structure (e.g., a
      +       * dict or object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback after_model_callback = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Callback.Builder getAfterModelCallbackBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetAfterModelCallbackFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Optional. The callback to execute after the model is called. If there are
      +       * multiple calls to the model, the callback will be executed multiple
      +       * times. Each callback function is expected to return a structure (e.g., a
      +       * dict or object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback after_model_callback = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.CallbackOrBuilder getAfterModelCallbackOrBuilder() { + if (afterModelCallbackBuilder_ != null) { + return afterModelCallbackBuilder_.getMessageOrBuilder(); + } else { + return afterModelCallback_ == null + ? com.google.cloud.ces.v1.Callback.getDefaultInstance() + : afterModelCallback_; + } + } + + /** + * + * + *
      +       * Optional. The callback to execute after the model is called. If there are
      +       * multiple calls to the model, the callback will be executed multiple
      +       * times. Each callback function is expected to return a structure (e.g., a
      +       * dict or object) containing at least:
      +       * - 'decision': Either 'OK' or 'TRIGGER'.
      +       * - 'reason': A string explaining the decision.
      +       * A 'TRIGGER' decision may halt further processing.
      +       * 
      + * + * + * .google.cloud.ces.v1.Callback after_model_callback = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Callback, + com.google.cloud.ces.v1.Callback.Builder, + com.google.cloud.ces.v1.CallbackOrBuilder> + internalGetAfterModelCallbackFieldBuilder() { + if (afterModelCallbackBuilder_ == null) { + afterModelCallbackBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Callback, + com.google.cloud.ces.v1.Callback.Builder, + com.google.cloud.ces.v1.CallbackOrBuilder>( + getAfterModelCallback(), getParentForChildren(), isClean()); + afterModelCallback_ = null; + } + return afterModelCallbackBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Guardrail.CodeCallback) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.Guardrail.CodeCallback) + private static final com.google.cloud.ces.v1.Guardrail.CodeCallback DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.Guardrail.CodeCallback(); + } + + public static com.google.cloud.ces.v1.Guardrail.CodeCallback getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CodeCallback parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.CodeCallback getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int guardrailTypeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object guardrailType_; + + public enum GuardrailTypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CONTENT_FILTER(8), + LLM_PROMPT_SECURITY(9), + LLM_POLICY(10), + MODEL_SAFETY(13), + CODE_CALLBACK(14), + GUARDRAILTYPE_NOT_SET(0); + private final int value; + + private GuardrailTypeCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static GuardrailTypeCase valueOf(int value) { + return forNumber(value); + } + + public static GuardrailTypeCase forNumber(int value) { + switch (value) { + case 8: + return CONTENT_FILTER; + case 9: + return LLM_PROMPT_SECURITY; + case 10: + return LLM_POLICY; + case 13: + return MODEL_SAFETY; + case 14: + return CODE_CALLBACK; + case 0: + return GUARDRAILTYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public GuardrailTypeCase getGuardrailTypeCase() { + return GuardrailTypeCase.forNumber(guardrailTypeCase_); + } + + public static final int CONTENT_FILTER_FIELD_NUMBER = 8; + + /** + * + * + *
      +   * Optional. Guardrail that bans certain content from being used in the
      +   * conversation.
      +   * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ContentFilter content_filter = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the contentFilter field is set. + */ + @java.lang.Override + public boolean hasContentFilter() { + return guardrailTypeCase_ == 8; + } + + /** + * + * + *
      +   * Optional. Guardrail that bans certain content from being used in the
      +   * conversation.
      +   * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ContentFilter content_filter = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The contentFilter. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.ContentFilter getContentFilter() { + if (guardrailTypeCase_ == 8) { + return (com.google.cloud.ces.v1.Guardrail.ContentFilter) guardrailType_; + } + return com.google.cloud.ces.v1.Guardrail.ContentFilter.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Guardrail that bans certain content from being used in the
      +   * conversation.
      +   * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ContentFilter content_filter = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.ContentFilterOrBuilder getContentFilterOrBuilder() { + if (guardrailTypeCase_ == 8) { + return (com.google.cloud.ces.v1.Guardrail.ContentFilter) guardrailType_; + } + return com.google.cloud.ces.v1.Guardrail.ContentFilter.getDefaultInstance(); + } + + public static final int LLM_PROMPT_SECURITY_FIELD_NUMBER = 9; + + /** + * + * + *
      +   * Optional. Guardrail that blocks the conversation if the prompt is
      +   * considered unsafe based on the LLM classification.
      +   * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPromptSecurity llm_prompt_security = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the llmPromptSecurity field is set. + */ + @java.lang.Override + public boolean hasLlmPromptSecurity() { + return guardrailTypeCase_ == 9; + } + + /** + * + * + *
      +   * Optional. Guardrail that blocks the conversation if the prompt is
      +   * considered unsafe based on the LLM classification.
      +   * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPromptSecurity llm_prompt_security = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The llmPromptSecurity. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity getLlmPromptSecurity() { + if (guardrailTypeCase_ == 9) { + return (com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity) guardrailType_; + } + return com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Guardrail that blocks the conversation if the prompt is
      +   * considered unsafe based on the LLM classification.
      +   * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPromptSecurity llm_prompt_security = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.LlmPromptSecurityOrBuilder + getLlmPromptSecurityOrBuilder() { + if (guardrailTypeCase_ == 9) { + return (com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity) guardrailType_; + } + return com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.getDefaultInstance(); + } + + public static final int LLM_POLICY_FIELD_NUMBER = 10; + + /** + * + * + *
      +   * Optional. Guardrail that blocks the conversation if the LLM response is
      +   * considered violating the policy based on the LLM classification.
      +   * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy llm_policy = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the llmPolicy field is set. + */ + @java.lang.Override + public boolean hasLlmPolicy() { + return guardrailTypeCase_ == 10; + } + + /** + * + * + *
      +   * Optional. Guardrail that blocks the conversation if the LLM response is
      +   * considered violating the policy based on the LLM classification.
      +   * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy llm_policy = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The llmPolicy. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.LlmPolicy getLlmPolicy() { + if (guardrailTypeCase_ == 10) { + return (com.google.cloud.ces.v1.Guardrail.LlmPolicy) guardrailType_; + } + return com.google.cloud.ces.v1.Guardrail.LlmPolicy.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Guardrail that blocks the conversation if the LLM response is
      +   * considered violating the policy based on the LLM classification.
      +   * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy llm_policy = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.LlmPolicyOrBuilder getLlmPolicyOrBuilder() { + if (guardrailTypeCase_ == 10) { + return (com.google.cloud.ces.v1.Guardrail.LlmPolicy) guardrailType_; + } + return com.google.cloud.ces.v1.Guardrail.LlmPolicy.getDefaultInstance(); + } + + public static final int MODEL_SAFETY_FIELD_NUMBER = 13; + + /** + * + * + *
      +   * Optional. Guardrail that blocks the conversation if the LLM response is
      +   * considered unsafe based on the model safety settings.
      +   * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ModelSafety model_safety = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelSafety field is set. + */ + @java.lang.Override + public boolean hasModelSafety() { + return guardrailTypeCase_ == 13; + } + + /** + * + * + *
      +   * Optional. Guardrail that blocks the conversation if the LLM response is
      +   * considered unsafe based on the model safety settings.
      +   * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ModelSafety model_safety = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelSafety. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.ModelSafety getModelSafety() { + if (guardrailTypeCase_ == 13) { + return (com.google.cloud.ces.v1.Guardrail.ModelSafety) guardrailType_; + } + return com.google.cloud.ces.v1.Guardrail.ModelSafety.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Guardrail that blocks the conversation if the LLM response is
      +   * considered unsafe based on the model safety settings.
      +   * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ModelSafety model_safety = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.ModelSafetyOrBuilder getModelSafetyOrBuilder() { + if (guardrailTypeCase_ == 13) { + return (com.google.cloud.ces.v1.Guardrail.ModelSafety) guardrailType_; + } + return com.google.cloud.ces.v1.Guardrail.ModelSafety.getDefaultInstance(); + } + + public static final int CODE_CALLBACK_FIELD_NUMBER = 14; + + /** + * + * + *
      +   * Optional. Guardrail that potentially blocks the conversation based on the
      +   * result of the callback execution.
      +   * 
      + * + * + * .google.cloud.ces.v1.Guardrail.CodeCallback code_callback = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the codeCallback field is set. + */ + @java.lang.Override + public boolean hasCodeCallback() { + return guardrailTypeCase_ == 14; + } + + /** + * + * + *
      +   * Optional. Guardrail that potentially blocks the conversation based on the
      +   * result of the callback execution.
      +   * 
      + * + * + * .google.cloud.ces.v1.Guardrail.CodeCallback code_callback = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The codeCallback. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.CodeCallback getCodeCallback() { + if (guardrailTypeCase_ == 14) { + return (com.google.cloud.ces.v1.Guardrail.CodeCallback) guardrailType_; + } + return com.google.cloud.ces.v1.Guardrail.CodeCallback.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Guardrail that potentially blocks the conversation based on the
      +   * result of the callback execution.
      +   * 
      + * + * + * .google.cloud.ces.v1.Guardrail.CodeCallback code_callback = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.CodeCallbackOrBuilder getCodeCallbackOrBuilder() { + if (guardrailTypeCase_ == 14) { + return (com.google.cloud.ces.v1.Guardrail.CodeCallback) guardrailType_; + } + return com.google.cloud.ces.v1.Guardrail.CodeCallback.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Identifier. The unique identifier of the guardrail.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Identifier. The unique identifier of the guardrail.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
      +   * Required. Display name of the guardrail.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. Display name of the guardrail.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
      +   * Optional. Description of the guardrail.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. Description of the guardrail.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENABLED_FIELD_NUMBER = 4; + private boolean enabled_ = false; + + /** + * + * + *
      +   * Optional. Whether the guardrail is enabled.
      +   * 
      + * + * bool enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int ACTION_FIELD_NUMBER = 5; + private com.google.cloud.ces.v1.TriggerAction action_; + + /** + * + * + *
      +   * Optional. Action to take when the guardrail is triggered.
      +   * 
      + * + * .google.cloud.ces.v1.TriggerAction action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the action field is set. + */ + @java.lang.Override + public boolean hasAction() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Optional. Action to take when the guardrail is triggered.
      +   * 
      + * + * .google.cloud.ces.v1.TriggerAction action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The action. + */ + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction getAction() { + return action_ == null ? com.google.cloud.ces.v1.TriggerAction.getDefaultInstance() : action_; + } + + /** + * + * + *
      +   * Optional. Action to take when the guardrail is triggered.
      +   * 
      + * + * .google.cloud.ces.v1.TriggerAction action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.TriggerActionOrBuilder getActionOrBuilder() { + return action_ == null ? com.google.cloud.ces.v1.TriggerAction.getDefaultInstance() : action_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
      +   * Output only. Timestamp when the guardrail was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Output only. Timestamp when the guardrail was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
      +   * Output only. Timestamp when the guardrail was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
      +   * Output only. Timestamp when the guardrail was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * Output only. Timestamp when the guardrail was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
      +   * Output only. Timestamp when the guardrail was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int ETAG_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
      +   * Etag used to ensure the object hasn't changed during a read-modify-write
      +   * operation. If the etag is empty, the update will overwrite any concurrent
      +   * changes.
      +   * 
      + * + * string etag = 11; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + + /** + * + * + *
      +   * Etag used to ensure the object hasn't changed during a read-modify-write
      +   * operation. If the etag is empty, the update will overwrite any concurrent
      +   * changes.
      +   * 
      + * + * string etag = 11; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + if (enabled_ != false) { + output.writeBool(4, enabled_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getAction()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(7, getUpdateTime()); + } + if (guardrailTypeCase_ == 8) { + output.writeMessage(8, (com.google.cloud.ces.v1.Guardrail.ContentFilter) guardrailType_); + } + if (guardrailTypeCase_ == 9) { + output.writeMessage(9, (com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity) guardrailType_); + } + if (guardrailTypeCase_ == 10) { + output.writeMessage(10, (com.google.cloud.ces.v1.Guardrail.LlmPolicy) guardrailType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, etag_); + } + if (guardrailTypeCase_ == 13) { + output.writeMessage(13, (com.google.cloud.ces.v1.Guardrail.ModelSafety) guardrailType_); + } + if (guardrailTypeCase_ == 14) { + output.writeMessage(14, (com.google.cloud.ces.v1.Guardrail.CodeCallback) guardrailType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, enabled_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAction()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + } + if (guardrailTypeCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.ces.v1.Guardrail.ContentFilter) guardrailType_); + } + if (guardrailTypeCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity) guardrailType_); + } + if (guardrailTypeCase_ == 10) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, (com.google.cloud.ces.v1.Guardrail.LlmPolicy) guardrailType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, etag_); + } + if (guardrailTypeCase_ == 13) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, (com.google.cloud.ces.v1.Guardrail.ModelSafety) guardrailType_); + } + if (guardrailTypeCase_ == 14) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, (com.google.cloud.ces.v1.Guardrail.CodeCallback) guardrailType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.Guardrail)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.Guardrail other = (com.google.cloud.ces.v1.Guardrail) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (getEnabled() != other.getEnabled()) return false; + if (hasAction() != other.hasAction()) return false; + if (hasAction()) { + if (!getAction().equals(other.getAction())) return false; + } + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getEtag().equals(other.getEtag())) return false; + if (!getGuardrailTypeCase().equals(other.getGuardrailTypeCase())) return false; + switch (guardrailTypeCase_) { + case 8: + if (!getContentFilter().equals(other.getContentFilter())) return false; + break; + case 9: + if (!getLlmPromptSecurity().equals(other.getLlmPromptSecurity())) return false; + break; + case 10: + if (!getLlmPolicy().equals(other.getLlmPolicy())) return false; + break; + case 13: + if (!getModelSafety().equals(other.getModelSafety())) return false; + break; + case 14: + if (!getCodeCallback().equals(other.getCodeCallback())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + if (hasAction()) { + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + getAction().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + switch (guardrailTypeCase_) { + case 8: + hash = (37 * hash) + CONTENT_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getContentFilter().hashCode(); + break; + case 9: + hash = (37 * hash) + LLM_PROMPT_SECURITY_FIELD_NUMBER; + hash = (53 * hash) + getLlmPromptSecurity().hashCode(); + break; + case 10: + hash = (37 * hash) + LLM_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getLlmPolicy().hashCode(); + break; + case 13: + hash = (37 * hash) + MODEL_SAFETY_FIELD_NUMBER; + hash = (53 * hash) + getModelSafety().hashCode(); + break; + case 14: + hash = (37 * hash) + CODE_CALLBACK_FIELD_NUMBER; + hash = (53 * hash) + getCodeCallback().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.Guardrail parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Guardrail parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Guardrail parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Guardrail parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Guardrail parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Guardrail parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Guardrail parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Guardrail parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.Guardrail prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Guardrail contains a list of checks and balances to keep the agents safe and
      +   * secure.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Guardrail} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.Guardrail) + com.google.cloud.ces.v1.GuardrailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Guardrail.class, + com.google.cloud.ces.v1.Guardrail.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.Guardrail.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetActionFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (contentFilterBuilder_ != null) { + contentFilterBuilder_.clear(); + } + if (llmPromptSecurityBuilder_ != null) { + llmPromptSecurityBuilder_.clear(); + } + if (llmPolicyBuilder_ != null) { + llmPolicyBuilder_.clear(); + } + if (modelSafetyBuilder_ != null) { + modelSafetyBuilder_.clear(); + } + if (codeCallbackBuilder_ != null) { + codeCallbackBuilder_.clear(); + } + name_ = ""; + displayName_ = ""; + description_ = ""; + enabled_ = false; + action_ = null; + if (actionBuilder_ != null) { + actionBuilder_.dispose(); + actionBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + etag_ = ""; + guardrailTypeCase_ = 0; + guardrailType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.GuardrailProto + .internal_static_google_cloud_ces_v1_Guardrail_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail getDefaultInstanceForType() { + return com.google.cloud.ces.v1.Guardrail.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail build() { + com.google.cloud.ces.v1.Guardrail result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail buildPartial() { + com.google.cloud.ces.v1.Guardrail result = new com.google.cloud.ces.v1.Guardrail(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.Guardrail result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.enabled_ = enabled_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000200) != 0)) { + result.action_ = actionBuilder_ == null ? action_ : actionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.etag_ = etag_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.ces.v1.Guardrail result) { + result.guardrailTypeCase_ = guardrailTypeCase_; + result.guardrailType_ = this.guardrailType_; + if (guardrailTypeCase_ == 8 && contentFilterBuilder_ != null) { + result.guardrailType_ = contentFilterBuilder_.build(); + } + if (guardrailTypeCase_ == 9 && llmPromptSecurityBuilder_ != null) { + result.guardrailType_ = llmPromptSecurityBuilder_.build(); + } + if (guardrailTypeCase_ == 10 && llmPolicyBuilder_ != null) { + result.guardrailType_ = llmPolicyBuilder_.build(); + } + if (guardrailTypeCase_ == 13 && modelSafetyBuilder_ != null) { + result.guardrailType_ = modelSafetyBuilder_.build(); + } + if (guardrailTypeCase_ == 14 && codeCallbackBuilder_ != null) { + result.guardrailType_ = codeCallbackBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.Guardrail) { + return mergeFrom((com.google.cloud.ces.v1.Guardrail) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.Guardrail other) { + if (other == com.google.cloud.ces.v1.Guardrail.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (other.hasAction()) { + mergeAction(other.getAction()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00001000; + onChanged(); + } + switch (other.getGuardrailTypeCase()) { + case CONTENT_FILTER: + { + mergeContentFilter(other.getContentFilter()); + break; + } + case LLM_PROMPT_SECURITY: + { + mergeLlmPromptSecurity(other.getLlmPromptSecurity()); + break; + } + case LLM_POLICY: + { + mergeLlmPolicy(other.getLlmPolicy()); + break; + } + case MODEL_SAFETY: + { + mergeModelSafety(other.getModelSafety()); + break; + } + case CODE_CALLBACK: + { + mergeCodeCallback(other.getCodeCallback()); + break; + } + case GUARDRAILTYPE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 26 + case 32: + { + enabled_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 32 + case 42: + { + input.readMessage(internalGetActionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetContentFilterFieldBuilder().getBuilder(), extensionRegistry); + guardrailTypeCase_ = 8; + break; + } // case 66 + case 74: + { + input.readMessage( + internalGetLlmPromptSecurityFieldBuilder().getBuilder(), extensionRegistry); + guardrailTypeCase_ = 9; + break; + } // case 74 + case 82: + { + input.readMessage( + internalGetLlmPolicyFieldBuilder().getBuilder(), extensionRegistry); + guardrailTypeCase_ = 10; + break; + } // case 82 + case 90: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 90 + case 106: + { + input.readMessage( + internalGetModelSafetyFieldBuilder().getBuilder(), extensionRegistry); + guardrailTypeCase_ = 13; + break; + } // case 106 + case 114: + { + input.readMessage( + internalGetCodeCallbackFieldBuilder().getBuilder(), extensionRegistry); + guardrailTypeCase_ = 14; + break; + } // case 114 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int guardrailTypeCase_ = 0; + private java.lang.Object guardrailType_; + + public GuardrailTypeCase getGuardrailTypeCase() { + return GuardrailTypeCase.forNumber(guardrailTypeCase_); + } + + public Builder clearGuardrailType() { + guardrailTypeCase_ = 0; + guardrailType_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Guardrail.ContentFilter, + com.google.cloud.ces.v1.Guardrail.ContentFilter.Builder, + com.google.cloud.ces.v1.Guardrail.ContentFilterOrBuilder> + contentFilterBuilder_; + + /** + * + * + *
      +     * Optional. Guardrail that bans certain content from being used in the
      +     * conversation.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ContentFilter content_filter = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the contentFilter field is set. + */ + @java.lang.Override + public boolean hasContentFilter() { + return guardrailTypeCase_ == 8; + } + + /** + * + * + *
      +     * Optional. Guardrail that bans certain content from being used in the
      +     * conversation.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ContentFilter content_filter = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The contentFilter. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.ContentFilter getContentFilter() { + if (contentFilterBuilder_ == null) { + if (guardrailTypeCase_ == 8) { + return (com.google.cloud.ces.v1.Guardrail.ContentFilter) guardrailType_; + } + return com.google.cloud.ces.v1.Guardrail.ContentFilter.getDefaultInstance(); + } else { + if (guardrailTypeCase_ == 8) { + return contentFilterBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.Guardrail.ContentFilter.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Guardrail that bans certain content from being used in the
      +     * conversation.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ContentFilter content_filter = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setContentFilter(com.google.cloud.ces.v1.Guardrail.ContentFilter value) { + if (contentFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + guardrailType_ = value; + onChanged(); + } else { + contentFilterBuilder_.setMessage(value); + } + guardrailTypeCase_ = 8; + return this; + } + + /** + * + * + *
      +     * Optional. Guardrail that bans certain content from being used in the
      +     * conversation.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ContentFilter content_filter = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setContentFilter( + com.google.cloud.ces.v1.Guardrail.ContentFilter.Builder builderForValue) { + if (contentFilterBuilder_ == null) { + guardrailType_ = builderForValue.build(); + onChanged(); + } else { + contentFilterBuilder_.setMessage(builderForValue.build()); + } + guardrailTypeCase_ = 8; + return this; + } + + /** + * + * + *
      +     * Optional. Guardrail that bans certain content from being used in the
      +     * conversation.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ContentFilter content_filter = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeContentFilter(com.google.cloud.ces.v1.Guardrail.ContentFilter value) { + if (contentFilterBuilder_ == null) { + if (guardrailTypeCase_ == 8 + && guardrailType_ + != com.google.cloud.ces.v1.Guardrail.ContentFilter.getDefaultInstance()) { + guardrailType_ = + com.google.cloud.ces.v1.Guardrail.ContentFilter.newBuilder( + (com.google.cloud.ces.v1.Guardrail.ContentFilter) guardrailType_) + .mergeFrom(value) + .buildPartial(); + } else { + guardrailType_ = value; + } + onChanged(); + } else { + if (guardrailTypeCase_ == 8) { + contentFilterBuilder_.mergeFrom(value); + } else { + contentFilterBuilder_.setMessage(value); + } + } + guardrailTypeCase_ = 8; + return this; + } + + /** + * + * + *
      +     * Optional. Guardrail that bans certain content from being used in the
      +     * conversation.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ContentFilter content_filter = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearContentFilter() { + if (contentFilterBuilder_ == null) { + if (guardrailTypeCase_ == 8) { + guardrailTypeCase_ = 0; + guardrailType_ = null; + onChanged(); + } + } else { + if (guardrailTypeCase_ == 8) { + guardrailTypeCase_ = 0; + guardrailType_ = null; + } + contentFilterBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Guardrail that bans certain content from being used in the
      +     * conversation.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ContentFilter content_filter = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Guardrail.ContentFilter.Builder getContentFilterBuilder() { + return internalGetContentFilterFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Guardrail that bans certain content from being used in the
      +     * conversation.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ContentFilter content_filter = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.ContentFilterOrBuilder getContentFilterOrBuilder() { + if ((guardrailTypeCase_ == 8) && (contentFilterBuilder_ != null)) { + return contentFilterBuilder_.getMessageOrBuilder(); + } else { + if (guardrailTypeCase_ == 8) { + return (com.google.cloud.ces.v1.Guardrail.ContentFilter) guardrailType_; + } + return com.google.cloud.ces.v1.Guardrail.ContentFilter.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Guardrail that bans certain content from being used in the
      +     * conversation.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ContentFilter content_filter = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Guardrail.ContentFilter, + com.google.cloud.ces.v1.Guardrail.ContentFilter.Builder, + com.google.cloud.ces.v1.Guardrail.ContentFilterOrBuilder> + internalGetContentFilterFieldBuilder() { + if (contentFilterBuilder_ == null) { + if (!(guardrailTypeCase_ == 8)) { + guardrailType_ = com.google.cloud.ces.v1.Guardrail.ContentFilter.getDefaultInstance(); + } + contentFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Guardrail.ContentFilter, + com.google.cloud.ces.v1.Guardrail.ContentFilter.Builder, + com.google.cloud.ces.v1.Guardrail.ContentFilterOrBuilder>( + (com.google.cloud.ces.v1.Guardrail.ContentFilter) guardrailType_, + getParentForChildren(), + isClean()); + guardrailType_ = null; + } + guardrailTypeCase_ = 8; + onChanged(); + return contentFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity, + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.Builder, + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurityOrBuilder> + llmPromptSecurityBuilder_; + + /** + * + * + *
      +     * Optional. Guardrail that blocks the conversation if the prompt is
      +     * considered unsafe based on the LLM classification.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPromptSecurity llm_prompt_security = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the llmPromptSecurity field is set. + */ + @java.lang.Override + public boolean hasLlmPromptSecurity() { + return guardrailTypeCase_ == 9; + } + + /** + * + * + *
      +     * Optional. Guardrail that blocks the conversation if the prompt is
      +     * considered unsafe based on the LLM classification.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPromptSecurity llm_prompt_security = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The llmPromptSecurity. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity getLlmPromptSecurity() { + if (llmPromptSecurityBuilder_ == null) { + if (guardrailTypeCase_ == 9) { + return (com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity) guardrailType_; + } + return com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.getDefaultInstance(); + } else { + if (guardrailTypeCase_ == 9) { + return llmPromptSecurityBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Guardrail that blocks the conversation if the prompt is
      +     * considered unsafe based on the LLM classification.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPromptSecurity llm_prompt_security = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLlmPromptSecurity(com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity value) { + if (llmPromptSecurityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + guardrailType_ = value; + onChanged(); + } else { + llmPromptSecurityBuilder_.setMessage(value); + } + guardrailTypeCase_ = 9; + return this; + } + + /** + * + * + *
      +     * Optional. Guardrail that blocks the conversation if the prompt is
      +     * considered unsafe based on the LLM classification.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPromptSecurity llm_prompt_security = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLlmPromptSecurity( + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.Builder builderForValue) { + if (llmPromptSecurityBuilder_ == null) { + guardrailType_ = builderForValue.build(); + onChanged(); + } else { + llmPromptSecurityBuilder_.setMessage(builderForValue.build()); + } + guardrailTypeCase_ = 9; + return this; + } + + /** + * + * + *
      +     * Optional. Guardrail that blocks the conversation if the prompt is
      +     * considered unsafe based on the LLM classification.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPromptSecurity llm_prompt_security = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeLlmPromptSecurity( + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity value) { + if (llmPromptSecurityBuilder_ == null) { + if (guardrailTypeCase_ == 9 + && guardrailType_ + != com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.getDefaultInstance()) { + guardrailType_ = + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.newBuilder( + (com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity) guardrailType_) + .mergeFrom(value) + .buildPartial(); + } else { + guardrailType_ = value; + } + onChanged(); + } else { + if (guardrailTypeCase_ == 9) { + llmPromptSecurityBuilder_.mergeFrom(value); + } else { + llmPromptSecurityBuilder_.setMessage(value); + } + } + guardrailTypeCase_ = 9; + return this; + } + + /** + * + * + *
      +     * Optional. Guardrail that blocks the conversation if the prompt is
      +     * considered unsafe based on the LLM classification.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPromptSecurity llm_prompt_security = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearLlmPromptSecurity() { + if (llmPromptSecurityBuilder_ == null) { + if (guardrailTypeCase_ == 9) { + guardrailTypeCase_ = 0; + guardrailType_ = null; + onChanged(); + } + } else { + if (guardrailTypeCase_ == 9) { + guardrailTypeCase_ = 0; + guardrailType_ = null; + } + llmPromptSecurityBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Guardrail that blocks the conversation if the prompt is
      +     * considered unsafe based on the LLM classification.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPromptSecurity llm_prompt_security = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.Builder + getLlmPromptSecurityBuilder() { + return internalGetLlmPromptSecurityFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Guardrail that blocks the conversation if the prompt is
      +     * considered unsafe based on the LLM classification.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPromptSecurity llm_prompt_security = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.LlmPromptSecurityOrBuilder + getLlmPromptSecurityOrBuilder() { + if ((guardrailTypeCase_ == 9) && (llmPromptSecurityBuilder_ != null)) { + return llmPromptSecurityBuilder_.getMessageOrBuilder(); + } else { + if (guardrailTypeCase_ == 9) { + return (com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity) guardrailType_; + } + return com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Guardrail that blocks the conversation if the prompt is
      +     * considered unsafe based on the LLM classification.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPromptSecurity llm_prompt_security = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity, + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.Builder, + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurityOrBuilder> + internalGetLlmPromptSecurityFieldBuilder() { + if (llmPromptSecurityBuilder_ == null) { + if (!(guardrailTypeCase_ == 9)) { + guardrailType_ = com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.getDefaultInstance(); + } + llmPromptSecurityBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity, + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity.Builder, + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurityOrBuilder>( + (com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity) guardrailType_, + getParentForChildren(), + isClean()); + guardrailType_ = null; + } + guardrailTypeCase_ = 9; + onChanged(); + return llmPromptSecurityBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Guardrail.LlmPolicy, + com.google.cloud.ces.v1.Guardrail.LlmPolicy.Builder, + com.google.cloud.ces.v1.Guardrail.LlmPolicyOrBuilder> + llmPolicyBuilder_; + + /** + * + * + *
      +     * Optional. Guardrail that blocks the conversation if the LLM response is
      +     * considered violating the policy based on the LLM classification.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy llm_policy = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the llmPolicy field is set. + */ + @java.lang.Override + public boolean hasLlmPolicy() { + return guardrailTypeCase_ == 10; + } + + /** + * + * + *
      +     * Optional. Guardrail that blocks the conversation if the LLM response is
      +     * considered violating the policy based on the LLM classification.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy llm_policy = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The llmPolicy. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.LlmPolicy getLlmPolicy() { + if (llmPolicyBuilder_ == null) { + if (guardrailTypeCase_ == 10) { + return (com.google.cloud.ces.v1.Guardrail.LlmPolicy) guardrailType_; + } + return com.google.cloud.ces.v1.Guardrail.LlmPolicy.getDefaultInstance(); + } else { + if (guardrailTypeCase_ == 10) { + return llmPolicyBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.Guardrail.LlmPolicy.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Guardrail that blocks the conversation if the LLM response is
      +     * considered violating the policy based on the LLM classification.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy llm_policy = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLlmPolicy(com.google.cloud.ces.v1.Guardrail.LlmPolicy value) { + if (llmPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + guardrailType_ = value; + onChanged(); + } else { + llmPolicyBuilder_.setMessage(value); + } + guardrailTypeCase_ = 10; + return this; + } + + /** + * + * + *
      +     * Optional. Guardrail that blocks the conversation if the LLM response is
      +     * considered violating the policy based on the LLM classification.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy llm_policy = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLlmPolicy( + com.google.cloud.ces.v1.Guardrail.LlmPolicy.Builder builderForValue) { + if (llmPolicyBuilder_ == null) { + guardrailType_ = builderForValue.build(); + onChanged(); + } else { + llmPolicyBuilder_.setMessage(builderForValue.build()); + } + guardrailTypeCase_ = 10; + return this; + } + + /** + * + * + *
      +     * Optional. Guardrail that blocks the conversation if the LLM response is
      +     * considered violating the policy based on the LLM classification.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy llm_policy = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeLlmPolicy(com.google.cloud.ces.v1.Guardrail.LlmPolicy value) { + if (llmPolicyBuilder_ == null) { + if (guardrailTypeCase_ == 10 + && guardrailType_ != com.google.cloud.ces.v1.Guardrail.LlmPolicy.getDefaultInstance()) { + guardrailType_ = + com.google.cloud.ces.v1.Guardrail.LlmPolicy.newBuilder( + (com.google.cloud.ces.v1.Guardrail.LlmPolicy) guardrailType_) + .mergeFrom(value) + .buildPartial(); + } else { + guardrailType_ = value; + } + onChanged(); + } else { + if (guardrailTypeCase_ == 10) { + llmPolicyBuilder_.mergeFrom(value); + } else { + llmPolicyBuilder_.setMessage(value); + } + } + guardrailTypeCase_ = 10; + return this; + } + + /** + * + * + *
      +     * Optional. Guardrail that blocks the conversation if the LLM response is
      +     * considered violating the policy based on the LLM classification.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy llm_policy = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearLlmPolicy() { + if (llmPolicyBuilder_ == null) { + if (guardrailTypeCase_ == 10) { + guardrailTypeCase_ = 0; + guardrailType_ = null; + onChanged(); + } + } else { + if (guardrailTypeCase_ == 10) { + guardrailTypeCase_ = 0; + guardrailType_ = null; + } + llmPolicyBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Guardrail that blocks the conversation if the LLM response is
      +     * considered violating the policy based on the LLM classification.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy llm_policy = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Guardrail.LlmPolicy.Builder getLlmPolicyBuilder() { + return internalGetLlmPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Guardrail that blocks the conversation if the LLM response is
      +     * considered violating the policy based on the LLM classification.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy llm_policy = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.LlmPolicyOrBuilder getLlmPolicyOrBuilder() { + if ((guardrailTypeCase_ == 10) && (llmPolicyBuilder_ != null)) { + return llmPolicyBuilder_.getMessageOrBuilder(); + } else { + if (guardrailTypeCase_ == 10) { + return (com.google.cloud.ces.v1.Guardrail.LlmPolicy) guardrailType_; + } + return com.google.cloud.ces.v1.Guardrail.LlmPolicy.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Guardrail that blocks the conversation if the LLM response is
      +     * considered violating the policy based on the LLM classification.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy llm_policy = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Guardrail.LlmPolicy, + com.google.cloud.ces.v1.Guardrail.LlmPolicy.Builder, + com.google.cloud.ces.v1.Guardrail.LlmPolicyOrBuilder> + internalGetLlmPolicyFieldBuilder() { + if (llmPolicyBuilder_ == null) { + if (!(guardrailTypeCase_ == 10)) { + guardrailType_ = com.google.cloud.ces.v1.Guardrail.LlmPolicy.getDefaultInstance(); + } + llmPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Guardrail.LlmPolicy, + com.google.cloud.ces.v1.Guardrail.LlmPolicy.Builder, + com.google.cloud.ces.v1.Guardrail.LlmPolicyOrBuilder>( + (com.google.cloud.ces.v1.Guardrail.LlmPolicy) guardrailType_, + getParentForChildren(), + isClean()); + guardrailType_ = null; + } + guardrailTypeCase_ = 10; + onChanged(); + return llmPolicyBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Guardrail.ModelSafety, + com.google.cloud.ces.v1.Guardrail.ModelSafety.Builder, + com.google.cloud.ces.v1.Guardrail.ModelSafetyOrBuilder> + modelSafetyBuilder_; + + /** + * + * + *
      +     * Optional. Guardrail that blocks the conversation if the LLM response is
      +     * considered unsafe based on the model safety settings.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ModelSafety model_safety = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelSafety field is set. + */ + @java.lang.Override + public boolean hasModelSafety() { + return guardrailTypeCase_ == 13; + } + + /** + * + * + *
      +     * Optional. Guardrail that blocks the conversation if the LLM response is
      +     * considered unsafe based on the model safety settings.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ModelSafety model_safety = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelSafety. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.ModelSafety getModelSafety() { + if (modelSafetyBuilder_ == null) { + if (guardrailTypeCase_ == 13) { + return (com.google.cloud.ces.v1.Guardrail.ModelSafety) guardrailType_; + } + return com.google.cloud.ces.v1.Guardrail.ModelSafety.getDefaultInstance(); + } else { + if (guardrailTypeCase_ == 13) { + return modelSafetyBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.Guardrail.ModelSafety.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Guardrail that blocks the conversation if the LLM response is
      +     * considered unsafe based on the model safety settings.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ModelSafety model_safety = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setModelSafety(com.google.cloud.ces.v1.Guardrail.ModelSafety value) { + if (modelSafetyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + guardrailType_ = value; + onChanged(); + } else { + modelSafetyBuilder_.setMessage(value); + } + guardrailTypeCase_ = 13; + return this; + } + + /** + * + * + *
      +     * Optional. Guardrail that blocks the conversation if the LLM response is
      +     * considered unsafe based on the model safety settings.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ModelSafety model_safety = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setModelSafety( + com.google.cloud.ces.v1.Guardrail.ModelSafety.Builder builderForValue) { + if (modelSafetyBuilder_ == null) { + guardrailType_ = builderForValue.build(); + onChanged(); + } else { + modelSafetyBuilder_.setMessage(builderForValue.build()); + } + guardrailTypeCase_ = 13; + return this; + } + + /** + * + * + *
      +     * Optional. Guardrail that blocks the conversation if the LLM response is
      +     * considered unsafe based on the model safety settings.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ModelSafety model_safety = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeModelSafety(com.google.cloud.ces.v1.Guardrail.ModelSafety value) { + if (modelSafetyBuilder_ == null) { + if (guardrailTypeCase_ == 13 + && guardrailType_ + != com.google.cloud.ces.v1.Guardrail.ModelSafety.getDefaultInstance()) { + guardrailType_ = + com.google.cloud.ces.v1.Guardrail.ModelSafety.newBuilder( + (com.google.cloud.ces.v1.Guardrail.ModelSafety) guardrailType_) + .mergeFrom(value) + .buildPartial(); + } else { + guardrailType_ = value; + } + onChanged(); + } else { + if (guardrailTypeCase_ == 13) { + modelSafetyBuilder_.mergeFrom(value); + } else { + modelSafetyBuilder_.setMessage(value); + } + } + guardrailTypeCase_ = 13; + return this; + } + + /** + * + * + *
      +     * Optional. Guardrail that blocks the conversation if the LLM response is
      +     * considered unsafe based on the model safety settings.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ModelSafety model_safety = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearModelSafety() { + if (modelSafetyBuilder_ == null) { + if (guardrailTypeCase_ == 13) { + guardrailTypeCase_ = 0; + guardrailType_ = null; + onChanged(); + } + } else { + if (guardrailTypeCase_ == 13) { + guardrailTypeCase_ = 0; + guardrailType_ = null; + } + modelSafetyBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Guardrail that blocks the conversation if the LLM response is
      +     * considered unsafe based on the model safety settings.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ModelSafety model_safety = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Guardrail.ModelSafety.Builder getModelSafetyBuilder() { + return internalGetModelSafetyFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Guardrail that blocks the conversation if the LLM response is
      +     * considered unsafe based on the model safety settings.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ModelSafety model_safety = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.ModelSafetyOrBuilder getModelSafetyOrBuilder() { + if ((guardrailTypeCase_ == 13) && (modelSafetyBuilder_ != null)) { + return modelSafetyBuilder_.getMessageOrBuilder(); + } else { + if (guardrailTypeCase_ == 13) { + return (com.google.cloud.ces.v1.Guardrail.ModelSafety) guardrailType_; + } + return com.google.cloud.ces.v1.Guardrail.ModelSafety.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Guardrail that blocks the conversation if the LLM response is
      +     * considered unsafe based on the model safety settings.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ModelSafety model_safety = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Guardrail.ModelSafety, + com.google.cloud.ces.v1.Guardrail.ModelSafety.Builder, + com.google.cloud.ces.v1.Guardrail.ModelSafetyOrBuilder> + internalGetModelSafetyFieldBuilder() { + if (modelSafetyBuilder_ == null) { + if (!(guardrailTypeCase_ == 13)) { + guardrailType_ = com.google.cloud.ces.v1.Guardrail.ModelSafety.getDefaultInstance(); + } + modelSafetyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Guardrail.ModelSafety, + com.google.cloud.ces.v1.Guardrail.ModelSafety.Builder, + com.google.cloud.ces.v1.Guardrail.ModelSafetyOrBuilder>( + (com.google.cloud.ces.v1.Guardrail.ModelSafety) guardrailType_, + getParentForChildren(), + isClean()); + guardrailType_ = null; + } + guardrailTypeCase_ = 13; + onChanged(); + return modelSafetyBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Guardrail.CodeCallback, + com.google.cloud.ces.v1.Guardrail.CodeCallback.Builder, + com.google.cloud.ces.v1.Guardrail.CodeCallbackOrBuilder> + codeCallbackBuilder_; + + /** + * + * + *
      +     * Optional. Guardrail that potentially blocks the conversation based on the
      +     * result of the callback execution.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.CodeCallback code_callback = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the codeCallback field is set. + */ + @java.lang.Override + public boolean hasCodeCallback() { + return guardrailTypeCase_ == 14; + } + + /** + * + * + *
      +     * Optional. Guardrail that potentially blocks the conversation based on the
      +     * result of the callback execution.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.CodeCallback code_callback = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The codeCallback. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.CodeCallback getCodeCallback() { + if (codeCallbackBuilder_ == null) { + if (guardrailTypeCase_ == 14) { + return (com.google.cloud.ces.v1.Guardrail.CodeCallback) guardrailType_; + } + return com.google.cloud.ces.v1.Guardrail.CodeCallback.getDefaultInstance(); + } else { + if (guardrailTypeCase_ == 14) { + return codeCallbackBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.Guardrail.CodeCallback.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Guardrail that potentially blocks the conversation based on the
      +     * result of the callback execution.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.CodeCallback code_callback = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCodeCallback(com.google.cloud.ces.v1.Guardrail.CodeCallback value) { + if (codeCallbackBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + guardrailType_ = value; + onChanged(); + } else { + codeCallbackBuilder_.setMessage(value); + } + guardrailTypeCase_ = 14; + return this; + } + + /** + * + * + *
      +     * Optional. Guardrail that potentially blocks the conversation based on the
      +     * result of the callback execution.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.CodeCallback code_callback = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCodeCallback( + com.google.cloud.ces.v1.Guardrail.CodeCallback.Builder builderForValue) { + if (codeCallbackBuilder_ == null) { + guardrailType_ = builderForValue.build(); + onChanged(); + } else { + codeCallbackBuilder_.setMessage(builderForValue.build()); + } + guardrailTypeCase_ = 14; + return this; + } + + /** + * + * + *
      +     * Optional. Guardrail that potentially blocks the conversation based on the
      +     * result of the callback execution.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.CodeCallback code_callback = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCodeCallback(com.google.cloud.ces.v1.Guardrail.CodeCallback value) { + if (codeCallbackBuilder_ == null) { + if (guardrailTypeCase_ == 14 + && guardrailType_ + != com.google.cloud.ces.v1.Guardrail.CodeCallback.getDefaultInstance()) { + guardrailType_ = + com.google.cloud.ces.v1.Guardrail.CodeCallback.newBuilder( + (com.google.cloud.ces.v1.Guardrail.CodeCallback) guardrailType_) + .mergeFrom(value) + .buildPartial(); + } else { + guardrailType_ = value; + } + onChanged(); + } else { + if (guardrailTypeCase_ == 14) { + codeCallbackBuilder_.mergeFrom(value); + } else { + codeCallbackBuilder_.setMessage(value); + } + } + guardrailTypeCase_ = 14; + return this; + } + + /** + * + * + *
      +     * Optional. Guardrail that potentially blocks the conversation based on the
      +     * result of the callback execution.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.CodeCallback code_callback = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCodeCallback() { + if (codeCallbackBuilder_ == null) { + if (guardrailTypeCase_ == 14) { + guardrailTypeCase_ = 0; + guardrailType_ = null; + onChanged(); + } + } else { + if (guardrailTypeCase_ == 14) { + guardrailTypeCase_ = 0; + guardrailType_ = null; + } + codeCallbackBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Guardrail that potentially blocks the conversation based on the
      +     * result of the callback execution.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.CodeCallback code_callback = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Guardrail.CodeCallback.Builder getCodeCallbackBuilder() { + return internalGetCodeCallbackFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Guardrail that potentially blocks the conversation based on the
      +     * result of the callback execution.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.CodeCallback code_callback = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail.CodeCallbackOrBuilder getCodeCallbackOrBuilder() { + if ((guardrailTypeCase_ == 14) && (codeCallbackBuilder_ != null)) { + return codeCallbackBuilder_.getMessageOrBuilder(); + } else { + if (guardrailTypeCase_ == 14) { + return (com.google.cloud.ces.v1.Guardrail.CodeCallback) guardrailType_; + } + return com.google.cloud.ces.v1.Guardrail.CodeCallback.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Guardrail that potentially blocks the conversation based on the
      +     * result of the callback execution.
      +     * 
      + * + * + * .google.cloud.ces.v1.Guardrail.CodeCallback code_callback = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Guardrail.CodeCallback, + com.google.cloud.ces.v1.Guardrail.CodeCallback.Builder, + com.google.cloud.ces.v1.Guardrail.CodeCallbackOrBuilder> + internalGetCodeCallbackFieldBuilder() { + if (codeCallbackBuilder_ == null) { + if (!(guardrailTypeCase_ == 14)) { + guardrailType_ = com.google.cloud.ces.v1.Guardrail.CodeCallback.getDefaultInstance(); + } + codeCallbackBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Guardrail.CodeCallback, + com.google.cloud.ces.v1.Guardrail.CodeCallback.Builder, + com.google.cloud.ces.v1.Guardrail.CodeCallbackOrBuilder>( + (com.google.cloud.ces.v1.Guardrail.CodeCallback) guardrailType_, + getParentForChildren(), + isClean()); + guardrailType_ = null; + } + guardrailTypeCase_ = 14; + onChanged(); + return codeCallbackBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Identifier. The unique identifier of the guardrail.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the guardrail.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the guardrail.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the guardrail.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the guardrail.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
      +     * Required. Display name of the guardrail.
      +     * 
      + * + * 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; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. Display name of the guardrail.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. Display name of the guardrail.
      +     * 
      + * + * 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(); + } + displayName_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. Display name of the guardrail.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. Display name of the guardrail.
      +     * 
      + * + * 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(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
      +     * Optional. Description of the guardrail.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Description of the guardrail.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Description of the guardrail.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Description of the guardrail.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Description of the guardrail.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private boolean enabled_; + + /** + * + * + *
      +     * Optional. Whether the guardrail is enabled.
      +     * 
      + * + * bool enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + /** + * + * + *
      +     * Optional. Whether the guardrail is enabled.
      +     * 
      + * + * bool enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Whether the guardrail is enabled.
      +     * 
      + * + * bool enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000100); + enabled_ = false; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.TriggerAction action_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.TriggerAction, + com.google.cloud.ces.v1.TriggerAction.Builder, + com.google.cloud.ces.v1.TriggerActionOrBuilder> + actionBuilder_; + + /** + * + * + *
      +     * Optional. Action to take when the guardrail is triggered.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the action field is set. + */ + public boolean hasAction() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
      +     * Optional. Action to take when the guardrail is triggered.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The action. + */ + public com.google.cloud.ces.v1.TriggerAction getAction() { + if (actionBuilder_ == null) { + return action_ == null + ? com.google.cloud.ces.v1.TriggerAction.getDefaultInstance() + : action_; + } else { + return actionBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Action to take when the guardrail is triggered.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAction(com.google.cloud.ces.v1.TriggerAction value) { + if (actionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + action_ = value; + } else { + actionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Action to take when the guardrail is triggered.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAction(com.google.cloud.ces.v1.TriggerAction.Builder builderForValue) { + if (actionBuilder_ == null) { + action_ = builderForValue.build(); + } else { + actionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Action to take when the guardrail is triggered.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAction(com.google.cloud.ces.v1.TriggerAction value) { + if (actionBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && action_ != null + && action_ != com.google.cloud.ces.v1.TriggerAction.getDefaultInstance()) { + getActionBuilder().mergeFrom(value); + } else { + action_ = value; + } + } else { + actionBuilder_.mergeFrom(value); + } + if (action_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Action to take when the guardrail is triggered.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAction() { + bitField0_ = (bitField0_ & ~0x00000200); + action_ = null; + if (actionBuilder_ != null) { + actionBuilder_.dispose(); + actionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Action to take when the guardrail is triggered.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.TriggerAction.Builder getActionBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetActionFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Action to take when the guardrail is triggered.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.TriggerActionOrBuilder getActionOrBuilder() { + if (actionBuilder_ != null) { + return actionBuilder_.getMessageOrBuilder(); + } else { + return action_ == null + ? com.google.cloud.ces.v1.TriggerAction.getDefaultInstance() + : action_; + } + } + + /** + * + * + *
      +     * Optional. Action to take when the guardrail is triggered.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.TriggerAction, + com.google.cloud.ces.v1.TriggerAction.Builder, + com.google.cloud.ces.v1.TriggerActionOrBuilder> + internalGetActionFieldBuilder() { + if (actionBuilder_ == null) { + actionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.TriggerAction, + com.google.cloud.ces.v1.TriggerAction.Builder, + com.google.cloud.ces.v1.TriggerActionOrBuilder>( + getAction(), getParentForChildren(), isClean()); + action_ = null; + } + return actionBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
      +     * Output only. Timestamp when the guardrail was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
      +     * Output only. Timestamp when the guardrail was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.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_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the guardrail was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the guardrail was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the guardrail was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the guardrail was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000400); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the guardrail was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. Timestamp when the guardrail was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.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_; + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the guardrail was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
      +     * Output only. Timestamp when the guardrail was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
      +     * Output only. Timestamp when the guardrail was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 7 [(.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_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the guardrail was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the guardrail was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the guardrail was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the guardrail was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000800); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the guardrail was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. Timestamp when the guardrail was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 7 [(.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_; + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the guardrail was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
      +     * Etag used to ensure the object hasn't changed during a read-modify-write
      +     * operation. If the etag is empty, the update will overwrite any concurrent
      +     * changes.
      +     * 
      + * + * string etag = 11; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Etag used to ensure the object hasn't changed during a read-modify-write
      +     * operation. If the etag is empty, the update will overwrite any concurrent
      +     * changes.
      +     * 
      + * + * string etag = 11; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Etag used to ensure the object hasn't changed during a read-modify-write
      +     * operation. If the etag is empty, the update will overwrite any concurrent
      +     * changes.
      +     * 
      + * + * string etag = 11; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Etag used to ensure the object hasn't changed during a read-modify-write
      +     * operation. If the etag is empty, the update will overwrite any concurrent
      +     * changes.
      +     * 
      + * + * string etag = 11; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Etag used to ensure the object hasn't changed during a read-modify-write
      +     * operation. If the etag is empty, the update will overwrite any concurrent
      +     * changes.
      +     * 
      + * + * string etag = 11; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Guardrail) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.Guardrail) + private static final com.google.cloud.ces.v1.Guardrail DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.Guardrail(); + } + + public static com.google.cloud.ces.v1.Guardrail getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Guardrail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GuardrailName.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GuardrailName.java new file mode 100644 index 000000000000..fb1bbab7149c --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GuardrailName.java @@ -0,0 +1,257 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class GuardrailName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_APP_GUARDRAIL = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String app; + private final String guardrail; + + @Deprecated + protected GuardrailName() { + project = null; + location = null; + app = null; + guardrail = null; + } + + private GuardrailName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + app = Preconditions.checkNotNull(builder.getApp()); + guardrail = Preconditions.checkNotNull(builder.getGuardrail()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getApp() { + return app; + } + + public String getGuardrail() { + return guardrail; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static GuardrailName of(String project, String location, String app, String guardrail) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setApp(app) + .setGuardrail(guardrail) + .build(); + } + + public static String format(String project, String location, String app, String guardrail) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setApp(app) + .setGuardrail(guardrail) + .build() + .toString(); + } + + public static GuardrailName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_APP_GUARDRAIL.validatedMatch( + formattedString, "GuardrailName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("app"), + matchMap.get("guardrail")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (GuardrailName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_APP_GUARDRAIL.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (app != null) { + fieldMapBuilder.put("app", app); + } + if (guardrail != null) { + fieldMapBuilder.put("guardrail", guardrail); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_APP_GUARDRAIL.instantiate( + "project", project, "location", location, "app", app, "guardrail", guardrail); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + GuardrailName that = ((GuardrailName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.app, that.app) + && Objects.equals(this.guardrail, that.guardrail); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(app); + h *= 1000003; + h ^= Objects.hashCode(guardrail); + return h; + } + + /** Builder for projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}. */ + public static class Builder { + private String project; + private String location; + private String app; + private String guardrail; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getApp() { + return app; + } + + public String getGuardrail() { + return guardrail; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setApp(String app) { + this.app = app; + return this; + } + + public Builder setGuardrail(String guardrail) { + this.guardrail = guardrail; + return this; + } + + private Builder(GuardrailName guardrailName) { + this.project = guardrailName.project; + this.location = guardrailName.location; + this.app = guardrailName.app; + this.guardrail = guardrailName.guardrail; + } + + public GuardrailName build() { + return new GuardrailName(this); + } + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GuardrailOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GuardrailOrBuilder.java new file mode 100644 index 000000000000..94b14535ed9d --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GuardrailOrBuilder.java @@ -0,0 +1,505 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/guardrail.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface GuardrailOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.Guardrail) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. Guardrail that bans certain content from being used in the
      +   * conversation.
      +   * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ContentFilter content_filter = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the contentFilter field is set. + */ + boolean hasContentFilter(); + + /** + * + * + *
      +   * Optional. Guardrail that bans certain content from being used in the
      +   * conversation.
      +   * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ContentFilter content_filter = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The contentFilter. + */ + com.google.cloud.ces.v1.Guardrail.ContentFilter getContentFilter(); + + /** + * + * + *
      +   * Optional. Guardrail that bans certain content from being used in the
      +   * conversation.
      +   * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ContentFilter content_filter = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.Guardrail.ContentFilterOrBuilder getContentFilterOrBuilder(); + + /** + * + * + *
      +   * Optional. Guardrail that blocks the conversation if the prompt is
      +   * considered unsafe based on the LLM classification.
      +   * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPromptSecurity llm_prompt_security = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the llmPromptSecurity field is set. + */ + boolean hasLlmPromptSecurity(); + + /** + * + * + *
      +   * Optional. Guardrail that blocks the conversation if the prompt is
      +   * considered unsafe based on the LLM classification.
      +   * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPromptSecurity llm_prompt_security = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The llmPromptSecurity. + */ + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurity getLlmPromptSecurity(); + + /** + * + * + *
      +   * Optional. Guardrail that blocks the conversation if the prompt is
      +   * considered unsafe based on the LLM classification.
      +   * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPromptSecurity llm_prompt_security = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.Guardrail.LlmPromptSecurityOrBuilder getLlmPromptSecurityOrBuilder(); + + /** + * + * + *
      +   * Optional. Guardrail that blocks the conversation if the LLM response is
      +   * considered violating the policy based on the LLM classification.
      +   * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy llm_policy = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the llmPolicy field is set. + */ + boolean hasLlmPolicy(); + + /** + * + * + *
      +   * Optional. Guardrail that blocks the conversation if the LLM response is
      +   * considered violating the policy based on the LLM classification.
      +   * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy llm_policy = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The llmPolicy. + */ + com.google.cloud.ces.v1.Guardrail.LlmPolicy getLlmPolicy(); + + /** + * + * + *
      +   * Optional. Guardrail that blocks the conversation if the LLM response is
      +   * considered violating the policy based on the LLM classification.
      +   * 
      + * + * + * .google.cloud.ces.v1.Guardrail.LlmPolicy llm_policy = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.Guardrail.LlmPolicyOrBuilder getLlmPolicyOrBuilder(); + + /** + * + * + *
      +   * Optional. Guardrail that blocks the conversation if the LLM response is
      +   * considered unsafe based on the model safety settings.
      +   * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ModelSafety model_safety = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelSafety field is set. + */ + boolean hasModelSafety(); + + /** + * + * + *
      +   * Optional. Guardrail that blocks the conversation if the LLM response is
      +   * considered unsafe based on the model safety settings.
      +   * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ModelSafety model_safety = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelSafety. + */ + com.google.cloud.ces.v1.Guardrail.ModelSafety getModelSafety(); + + /** + * + * + *
      +   * Optional. Guardrail that blocks the conversation if the LLM response is
      +   * considered unsafe based on the model safety settings.
      +   * 
      + * + * + * .google.cloud.ces.v1.Guardrail.ModelSafety model_safety = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.Guardrail.ModelSafetyOrBuilder getModelSafetyOrBuilder(); + + /** + * + * + *
      +   * Optional. Guardrail that potentially blocks the conversation based on the
      +   * result of the callback execution.
      +   * 
      + * + * + * .google.cloud.ces.v1.Guardrail.CodeCallback code_callback = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the codeCallback field is set. + */ + boolean hasCodeCallback(); + + /** + * + * + *
      +   * Optional. Guardrail that potentially blocks the conversation based on the
      +   * result of the callback execution.
      +   * 
      + * + * + * .google.cloud.ces.v1.Guardrail.CodeCallback code_callback = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The codeCallback. + */ + com.google.cloud.ces.v1.Guardrail.CodeCallback getCodeCallback(); + + /** + * + * + *
      +   * Optional. Guardrail that potentially blocks the conversation based on the
      +   * result of the callback execution.
      +   * 
      + * + * + * .google.cloud.ces.v1.Guardrail.CodeCallback code_callback = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.Guardrail.CodeCallbackOrBuilder getCodeCallbackOrBuilder(); + + /** + * + * + *
      +   * Identifier. The unique identifier of the guardrail.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Identifier. The unique identifier of the guardrail.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Required. Display name of the guardrail.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
      +   * Required. Display name of the guardrail.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
      +   * Optional. Description of the guardrail.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
      +   * Optional. Description of the guardrail.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
      +   * Optional. Whether the guardrail is enabled.
      +   * 
      + * + * bool enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enabled. + */ + boolean getEnabled(); + + /** + * + * + *
      +   * Optional. Action to take when the guardrail is triggered.
      +   * 
      + * + * .google.cloud.ces.v1.TriggerAction action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the action field is set. + */ + boolean hasAction(); + + /** + * + * + *
      +   * Optional. Action to take when the guardrail is triggered.
      +   * 
      + * + * .google.cloud.ces.v1.TriggerAction action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The action. + */ + com.google.cloud.ces.v1.TriggerAction getAction(); + + /** + * + * + *
      +   * Optional. Action to take when the guardrail is triggered.
      +   * 
      + * + * .google.cloud.ces.v1.TriggerAction action = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.TriggerActionOrBuilder getActionOrBuilder(); + + /** + * + * + *
      +   * Output only. Timestamp when the guardrail was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the guardrail was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the guardrail was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
      +   * Output only. Timestamp when the guardrail was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the guardrail was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the guardrail was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
      +   * Etag used to ensure the object hasn't changed during a read-modify-write
      +   * operation. If the etag is empty, the update will overwrite any concurrent
      +   * changes.
      +   * 
      + * + * string etag = 11; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
      +   * Etag used to ensure the object hasn't changed during a read-modify-write
      +   * operation. If the etag is empty, the update will overwrite any concurrent
      +   * changes.
      +   * 
      + * + * string etag = 11; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + com.google.cloud.ces.v1.Guardrail.GuardrailTypeCase getGuardrailTypeCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GuardrailProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GuardrailProto.java new file mode 100644 index 000000000000..a59ccf65e153 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GuardrailProto.java @@ -0,0 +1,291 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/guardrail.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class GuardrailProto extends com.google.protobuf.GeneratedFile { + private GuardrailProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GuardrailProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Guardrail_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Guardrail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Guardrail_ContentFilter_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Guardrail_ContentFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Guardrail_LlmPromptSecurity_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Guardrail_LlmPromptSecurity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Guardrail_LlmPromptSecurity_DefaultSecuritySettings_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Guardrail_LlmPromptSecurity_DefaultSecuritySettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Guardrail_LlmPolicy_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Guardrail_LlmPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Guardrail_ModelSafety_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Guardrail_ModelSafety_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Guardrail_ModelSafety_SafetySetting_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Guardrail_ModelSafety_SafetySetting_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Guardrail_CodeCallback_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Guardrail_CodeCallback_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "#google/cloud/ces/v1/guardrail.proto\022\023g" + + "oogle.cloud.ces.v1\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\032" + + " google/cloud/ces/v1/common.proto\032\037google/protobuf/timestamp.proto\"\372\025\n" + + "\tGuardrail\022K\n" + + "\016content_filter\030\010" + + " \001(\0132,.google.cloud.ces.v1.Guardrail.ContentFilterB\003\340A\001H\000\022T\n" + + "\023llm_prompt_security\030\t \001(\01320.google.cloud" + + ".ces.v1.Guardrail.LlmPromptSecurityB\003\340A\001H\000\022C\n\n" + + "llm_policy\030\n" + + " \001(\0132(.google.cloud.ces.v1.Guardrail.LlmPolicyB\003\340A\001H\000\022G\n" + + "\014model_safety\030\r" + + " \001(\0132*.google.cloud.ces.v1.Guardrail.ModelSafetyB\003\340A\001H\000\022I\n\r" + + "code_callback\030\016" + + " \001(\0132+.google.cloud.ces.v1.Guardrail.CodeCallbackB\003\340A\001H\000\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\002\022\030\n" + + "\013description\030\003 \001(\tB\003\340A\001\022\024\n" + + "\007enabled\030\004 \001(\010B\003\340A\001\0227\n" + + "\006action\030\005 \001(\0132\".google.cloud.ces.v1.TriggerActionB\003\340A\001\0224\n" + + "\013create_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\007" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\014\n" + + "\004etag\030\013 \001(\t\032\361\002\n\r" + + "ContentFilter\022\034\n" + + "\017banned_contents\030\001 \003(\tB\003\340A\001\022*\n" + + "\035banned_contents_in_user_input\030\002 \003(\tB\003\340A\001\022.\n" + + "!banned_contents_in_agent_response\030\003 \003(\tB\003\340A\001\022O\n\n" + + "match_type\030\004" + + " \001(\01626.google.cloud.ces.v1.Guardrail.ContentFilter.MatchTypeB\003\340A\002\022!\n" + + "\024disregard_diacritics\030\005 \001(\010B\003\340A\001\"r\n" + + "\tMatchType\022\032\n" + + "\026MATCH_TYPE_UNSPECIFIED\020\000\022\027\n" + + "\023SIMPLE_STRING_MATCH\020\001\022\036\n" + + "\032WORD_BOUNDARY_STRING_MATCH\020\002\022\020\n" + + "\014REGEXP_MATCH\020\003\032\262\002\n" + + "\021LlmPromptSecurity\022i\n" + + "\020default_settings\030\001 \001(\0132H.googl" + + "e.cloud.ces.v1.Guardrail.LlmPromptSecurity.DefaultSecuritySettingsB\003\340A\001H\000\022F\n\r" + + "custom_policy\030\002" + + " \001(\0132(.google.cloud.ces.v1.Guardrail.LlmPolicyB\003\340A\001H\000\022\026\n" + + "\tfail_open\030\003 \001(\010B\003\340A\001\032?\n" + + "\027DefaultSecuritySettings\022$\n" + + "\027default_prompt_template\030\001 \001(\tB\003\340A\003B\021\n" + + "\017security_config\032\212\003\n" + + "\tLlmPolicy\022&\n" + + "\031max_conversation_messages\030\001 \001(\005B\003\340A\001\022?\n" + + "\016model_settings\030\002" + + " \001(\0132\".google.cloud.ces.v1.ModelSettingsB\003\340A\001\022\023\n" + + "\006prompt\030\003 \001(\tB\003\340A\002\022O\n" + + "\014policy_scope\030\004" + + " \001(\01624.google.cloud.ces.v1.Guardrail.LlmPolicy.PolicyScopeB\003\340A\002\022\026\n" + + "\tfail_open\030\005 \001(\010B\003\340A\001\022\"\n" + + "\025allow_short_utterance\030\006 \001(\010B\003\340A\001\"r\n" + + "\013PolicyScope\022\034\n" + + "\030POLICY_SCOPE_UNSPECIFIED\020\000\022\016\n\n" + + "USER_QUERY\020\001\022\022\n" + + "\016AGENT_RESPONSE\020\002\022!\n" + + "\035USER_QUERY_AND_AGENT_RESPONSE\020\003\032\365\004\n" + + "\013ModelSafety\022V\n" + + "\017safety_settings\030\001" + + " \003(\01328.google.cloud.ces.v1.Guardrail.ModelSafety.SafetySettingB\003\340A\002\032\266\001\n\r" + + "SafetySetting\022N\n" + + "\010category\030\001 \001(\01627.google." + + "cloud.ces.v1.Guardrail.ModelSafety.HarmCategoryB\003\340A\002\022U\n" + + "\tthreshold\030\002 \001(\0162=.google" + + ".cloud.ces.v1.Guardrail.ModelSafety.HarmBlockThresholdB\003\340A\002\"\264\001\n" + + "\014HarmCategory\022\035\n" + + "\031HARM_CATEGORY_UNSPECIFIED\020\000\022\035\n" + + "\031HARM_CATEGORY_HATE_SPEECH\020\001\022#\n" + + "\037HARM_CATEGORY_DANGEROUS_CONTENT\020\002\022\034\n" + + "\030HARM_CATEGORY_HARASSMENT\020\003\022#\n" + + "\037HARM_CATEGORY_SEXUALLY_EXPLICIT\020\004\"\235\001\n" + + "\022HarmBlockThreshold\022$\n" + + " HARM_BLOCK_THRESHOLD_UNSPECIFIED\020\000\022\027\n" + + "\023BLOCK_LOW_AND_ABOVE\020\001\022\032\n" + + "\026BLOCK_MEDIUM_AND_ABOVE\020\002\022\023\n" + + "\017BLOCK_ONLY_HIGH\020\003\022\016\n\n" + + "BLOCK_NONE\020\004\022\007\n" + + "\003OFF\020\005\032\230\002\n" + + "\014CodeCallback\022A\n" + + "\025before_agent_callback\030\001" + + " \001(\0132\035.google.cloud.ces.v1.CallbackB\003\340A\001\022@\n" + + "\024after_agent_callback\030\002" + + " \001(\0132\035.google.cloud.ces.v1.CallbackB\003\340A\001\022A\n" + + "\025before_model_callback\030\003" + + " \001(\0132\035.google.cloud.ces.v1.CallbackB\003\340A\001\022@\n" + + "\024after_model_callback\030\004" + + " \001(\0132\035.google.cloud.ces.v1.CallbackB\003\340A\001:\204\001\352A\200\001\n" + + "\034ces.googleapis.com/Guardra" + + "il\022Iprojects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}*\n" + + "guardrails2\tguardrailB\020\n" + + "\016guardrail_typeBV\n" + + "\027com.google.cloud.ces.v1B\016GuardrailProt" + + "oP\001Z)cloud.google.com/go/ces/apiv1/cespb;cespbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.ces.v1.CommonProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_Guardrail_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_Guardrail_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Guardrail_descriptor, + new java.lang.String[] { + "ContentFilter", + "LlmPromptSecurity", + "LlmPolicy", + "ModelSafety", + "CodeCallback", + "Name", + "DisplayName", + "Description", + "Enabled", + "Action", + "CreateTime", + "UpdateTime", + "Etag", + "GuardrailType", + }); + internal_static_google_cloud_ces_v1_Guardrail_ContentFilter_descriptor = + internal_static_google_cloud_ces_v1_Guardrail_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_Guardrail_ContentFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Guardrail_ContentFilter_descriptor, + new java.lang.String[] { + "BannedContents", + "BannedContentsInUserInput", + "BannedContentsInAgentResponse", + "MatchType", + "DisregardDiacritics", + }); + internal_static_google_cloud_ces_v1_Guardrail_LlmPromptSecurity_descriptor = + internal_static_google_cloud_ces_v1_Guardrail_descriptor.getNestedType(1); + internal_static_google_cloud_ces_v1_Guardrail_LlmPromptSecurity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Guardrail_LlmPromptSecurity_descriptor, + new java.lang.String[] { + "DefaultSettings", "CustomPolicy", "FailOpen", "SecurityConfig", + }); + internal_static_google_cloud_ces_v1_Guardrail_LlmPromptSecurity_DefaultSecuritySettings_descriptor = + internal_static_google_cloud_ces_v1_Guardrail_LlmPromptSecurity_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_Guardrail_LlmPromptSecurity_DefaultSecuritySettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Guardrail_LlmPromptSecurity_DefaultSecuritySettings_descriptor, + new java.lang.String[] { + "DefaultPromptTemplate", + }); + internal_static_google_cloud_ces_v1_Guardrail_LlmPolicy_descriptor = + internal_static_google_cloud_ces_v1_Guardrail_descriptor.getNestedType(2); + internal_static_google_cloud_ces_v1_Guardrail_LlmPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Guardrail_LlmPolicy_descriptor, + new java.lang.String[] { + "MaxConversationMessages", + "ModelSettings", + "Prompt", + "PolicyScope", + "FailOpen", + "AllowShortUtterance", + }); + internal_static_google_cloud_ces_v1_Guardrail_ModelSafety_descriptor = + internal_static_google_cloud_ces_v1_Guardrail_descriptor.getNestedType(3); + internal_static_google_cloud_ces_v1_Guardrail_ModelSafety_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Guardrail_ModelSafety_descriptor, + new java.lang.String[] { + "SafetySettings", + }); + internal_static_google_cloud_ces_v1_Guardrail_ModelSafety_SafetySetting_descriptor = + internal_static_google_cloud_ces_v1_Guardrail_ModelSafety_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_Guardrail_ModelSafety_SafetySetting_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Guardrail_ModelSafety_SafetySetting_descriptor, + new java.lang.String[] { + "Category", "Threshold", + }); + internal_static_google_cloud_ces_v1_Guardrail_CodeCallback_descriptor = + internal_static_google_cloud_ces_v1_Guardrail_descriptor.getNestedType(4); + internal_static_google_cloud_ces_v1_Guardrail_CodeCallback_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Guardrail_CodeCallback_descriptor, + new java.lang.String[] { + "BeforeAgentCallback", + "AfterAgentCallback", + "BeforeModelCallback", + "AfterModelCallback", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.ces.v1.CommonProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Image.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Image.java new file mode 100644 index 000000000000..2c5eeb0e5691 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Image.java @@ -0,0 +1,718 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/example.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Represents an image input or output in the conversation.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Image} + */ +@com.google.protobuf.Generated +public final class Image extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.Image) + ImageOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Image"); + } + + // Use Image.newBuilder() to construct. + private Image(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Image() { + mimeType_ = ""; + data_ = com.google.protobuf.ByteString.EMPTY; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_Image_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_Image_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Image.class, com.google.cloud.ces.v1.Image.Builder.class); + } + + public static final int MIME_TYPE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; + + /** + * + * + *
      +   * Required. The IANA standard MIME type of the source data.
      +   * Supported image types includes:
      +   * * image/png
      +   * * image/jpeg
      +   * * image/webp
      +   * 
      + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The mimeType. + */ + @java.lang.Override + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The IANA standard MIME type of the source data.
      +   * Supported image types includes:
      +   * * image/png
      +   * * image/jpeg
      +   * * image/webp
      +   * 
      + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for mimeType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
      +   * Required. Raw bytes of the image.
      +   * 
      + * + * bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The data. + */ + @java.lang.Override + public com.google.protobuf.ByteString getData() { + return data_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mimeType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, mimeType_); + } + if (!data_.isEmpty()) { + output.writeBytes(2, data_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mimeType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, mimeType_); + } + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, data_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.Image)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.Image other = (com.google.cloud.ces.v1.Image) obj; + + if (!getMimeType().equals(other.getMimeType())) return false; + if (!getData().equals(other.getData())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MIME_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMimeType().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.Image parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Image parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Image parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Image parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Image parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Image parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Image parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Image parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Image parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Image parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Image parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Image parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.Image prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Represents an image input or output in the conversation.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Image} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.Image) + com.google.cloud.ces.v1.ImageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_Image_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_Image_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Image.class, com.google.cloud.ces.v1.Image.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.Image.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mimeType_ = ""; + data_ = com.google.protobuf.ByteString.EMPTY; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_Image_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Image getDefaultInstanceForType() { + return com.google.cloud.ces.v1.Image.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.Image build() { + com.google.cloud.ces.v1.Image result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Image buildPartial() { + com.google.cloud.ces.v1.Image result = new com.google.cloud.ces.v1.Image(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.Image result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mimeType_ = mimeType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.data_ = data_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.Image) { + return mergeFrom((com.google.cloud.ces.v1.Image) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.Image other) { + if (other == com.google.cloud.ces.v1.Image.getDefaultInstance()) return this; + if (!other.getMimeType().isEmpty()) { + mimeType_ = other.mimeType_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getData().isEmpty()) { + setData(other.getData()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + data_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object mimeType_ = ""; + + /** + * + * + *
      +     * Required. The IANA standard MIME type of the source data.
      +     * Supported image types includes:
      +     * * image/png
      +     * * image/jpeg
      +     * * image/webp
      +     * 
      + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The mimeType. + */ + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The IANA standard MIME type of the source data.
      +     * Supported image types includes:
      +     * * image/png
      +     * * image/jpeg
      +     * * image/webp
      +     * 
      + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for mimeType. + */ + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The IANA standard MIME type of the source data.
      +     * Supported image types includes:
      +     * * image/png
      +     * * image/jpeg
      +     * * image/webp
      +     * 
      + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mimeType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The IANA standard MIME type of the source data.
      +     * Supported image types includes:
      +     * * image/png
      +     * * image/jpeg
      +     * * image/webp
      +     * 
      + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMimeType() { + mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The IANA standard MIME type of the source data.
      +     * Supported image types includes:
      +     * * image/png
      +     * * image/jpeg
      +     * * image/webp
      +     * 
      + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
      +     * Required. Raw bytes of the image.
      +     * 
      + * + * bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The data. + */ + @java.lang.Override + public com.google.protobuf.ByteString getData() { + return data_; + } + + /** + * + * + *
      +     * Required. Raw bytes of the image.
      +     * 
      + * + * bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The data to set. + * @return This builder for chaining. + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. Raw bytes of the image.
      +     * 
      + * + * bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearData() { + bitField0_ = (bitField0_ & ~0x00000002); + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Image) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.Image) + private static final com.google.cloud.ces.v1.Image DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.Image(); + } + + public static com.google.cloud.ces.v1.Image getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Image parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Image getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ImageOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ImageOrBuilder.java new file mode 100644 index 000000000000..db511df8c760 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ImageOrBuilder.java @@ -0,0 +1,75 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/example.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ImageOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.Image) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The IANA standard MIME type of the source data.
      +   * Supported image types includes:
      +   * * image/png
      +   * * image/jpeg
      +   * * image/webp
      +   * 
      + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The mimeType. + */ + java.lang.String getMimeType(); + + /** + * + * + *
      +   * Required. The IANA standard MIME type of the source data.
      +   * Supported image types includes:
      +   * * image/png
      +   * * image/jpeg
      +   * * image/webp
      +   * 
      + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for mimeType. + */ + com.google.protobuf.ByteString getMimeTypeBytes(); + + /** + * + * + *
      +   * Required. Raw bytes of the image.
      +   * 
      + * + * bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The data. + */ + com.google.protobuf.ByteString getData(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ImportAppRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ImportAppRequest.java new file mode 100644 index 000000000000..4b519b1df1ca --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ImportAppRequest.java @@ -0,0 +1,2802 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.ImportApp][google.cloud.ces.v1.AgentService.ImportApp].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ImportAppRequest} + */ +@com.google.protobuf.Generated +public final class ImportAppRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ImportAppRequest) + ImportAppRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ImportAppRequest"); + } + + // Use ImportAppRequest.newBuilder() to construct. + private ImportAppRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ImportAppRequest() { + parent_ = ""; + displayName_ = ""; + appId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ImportAppRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ImportAppRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ImportAppRequest.class, + com.google.cloud.ces.v1.ImportAppRequest.Builder.class); + } + + public interface ImportOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ImportAppRequest.ImportOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Optional. The strategy to use when resolving conflicts during import.
      +     * 
      + * + * + * .google.cloud.ces.v1.ImportAppRequest.ImportOptions.ConflictResolutionStrategy conflict_resolution_strategy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for conflictResolutionStrategy. + */ + int getConflictResolutionStrategyValue(); + + /** + * + * + *
      +     * Optional. The strategy to use when resolving conflicts during import.
      +     * 
      + * + * + * .google.cloud.ces.v1.ImportAppRequest.ImportOptions.ConflictResolutionStrategy conflict_resolution_strategy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The conflictResolutionStrategy. + */ + com.google.cloud.ces.v1.ImportAppRequest.ImportOptions.ConflictResolutionStrategy + getConflictResolutionStrategy(); + } + + /** + * + * + *
      +   * Configuration options for the app import process.
      +   * These options control how the import behaves, particularly when
      +   * conflicts arise with existing app data.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ImportAppRequest.ImportOptions} + */ + public static final class ImportOptions extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ImportAppRequest.ImportOptions) + ImportOptionsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ImportOptions"); + } + + // Use ImportOptions.newBuilder() to construct. + private ImportOptions(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ImportOptions() { + conflictResolutionStrategy_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ImportAppRequest_ImportOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ImportAppRequest_ImportOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ImportAppRequest.ImportOptions.class, + com.google.cloud.ces.v1.ImportAppRequest.ImportOptions.Builder.class); + } + + /** + * + * + *
      +     * Defines the strategy for handling conflicts when an app with the same ID
      +     * already exists, or when imported resources (like Agents, Tools, etc.)
      +     * have the same display names as existing resources within that app.
      +     * 
      + * + * Protobuf enum {@code + * google.cloud.ces.v1.ImportAppRequest.ImportOptions.ConflictResolutionStrategy} + */ + public enum ConflictResolutionStrategy implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +       * The conflict resolution strategy is unspecified.
      +       * 
      + * + * CONFLICT_RESOLUTION_STRATEGY_UNSPECIFIED = 0; + */ + CONFLICT_RESOLUTION_STRATEGY_UNSPECIFIED(0), + /** + * + * + *
      +       * Replace existing data with imported data.
      +       * If an app with the same `app_id` already exists, its content will be
      +       * updated based on the imported app.
      +       * - Resources (App, Agents, Tools, Examples, Guardrails, Toolsets) in the
      +       * imported app that have the same display name as existing resources
      +       * will overwrite the existing ones.
      +       * - Imported resources with new display names will be created.
      +       * - Existing resources that do not have a matching display name in the
      +       * imported app will remain untouched.
      +       * 
      + * + * REPLACE = 1; + */ + REPLACE(1), + /** + * + * + *
      +       * Overwrite existing data with imported data.
      +       * If an app with the same `app_id` already exists, its content will be
      +       * overwritten with the imported app.
      +       * - Existing resources (Agents, Tools, Examples, Guardrails, Toolsets) in
      +       * the app will be deleted.
      +       * - Imported resources will be created as new resources.
      +       * 
      + * + * OVERWRITE = 2; + */ + OVERWRITE(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ConflictResolutionStrategy"); + } + + /** + * + * + *
      +       * The conflict resolution strategy is unspecified.
      +       * 
      + * + * CONFLICT_RESOLUTION_STRATEGY_UNSPECIFIED = 0; + */ + public static final int CONFLICT_RESOLUTION_STRATEGY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +       * Replace existing data with imported data.
      +       * If an app with the same `app_id` already exists, its content will be
      +       * updated based on the imported app.
      +       * - Resources (App, Agents, Tools, Examples, Guardrails, Toolsets) in the
      +       * imported app that have the same display name as existing resources
      +       * will overwrite the existing ones.
      +       * - Imported resources with new display names will be created.
      +       * - Existing resources that do not have a matching display name in the
      +       * imported app will remain untouched.
      +       * 
      + * + * REPLACE = 1; + */ + public static final int REPLACE_VALUE = 1; + + /** + * + * + *
      +       * Overwrite existing data with imported data.
      +       * If an app with the same `app_id` already exists, its content will be
      +       * overwritten with the imported app.
      +       * - Existing resources (Agents, Tools, Examples, Guardrails, Toolsets) in
      +       * the app will be deleted.
      +       * - Imported resources will be created as new resources.
      +       * 
      + * + * OVERWRITE = 2; + */ + public static final int OVERWRITE_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ConflictResolutionStrategy valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ConflictResolutionStrategy forNumber(int value) { + switch (value) { + case 0: + return CONFLICT_RESOLUTION_STRATEGY_UNSPECIFIED; + case 1: + return REPLACE; + case 2: + return OVERWRITE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ConflictResolutionStrategy findValueByNumber(int number) { + return ConflictResolutionStrategy.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.ImportAppRequest.ImportOptions.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ConflictResolutionStrategy[] VALUES = values(); + + public static ConflictResolutionStrategy valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ConflictResolutionStrategy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.ImportAppRequest.ImportOptions.ConflictResolutionStrategy) + } + + public static final int CONFLICT_RESOLUTION_STRATEGY_FIELD_NUMBER = 1; + private int conflictResolutionStrategy_ = 0; + + /** + * + * + *
      +     * Optional. The strategy to use when resolving conflicts during import.
      +     * 
      + * + * + * .google.cloud.ces.v1.ImportAppRequest.ImportOptions.ConflictResolutionStrategy conflict_resolution_strategy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for conflictResolutionStrategy. + */ + @java.lang.Override + public int getConflictResolutionStrategyValue() { + return conflictResolutionStrategy_; + } + + /** + * + * + *
      +     * Optional. The strategy to use when resolving conflicts during import.
      +     * 
      + * + * + * .google.cloud.ces.v1.ImportAppRequest.ImportOptions.ConflictResolutionStrategy conflict_resolution_strategy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The conflictResolutionStrategy. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ImportAppRequest.ImportOptions.ConflictResolutionStrategy + getConflictResolutionStrategy() { + com.google.cloud.ces.v1.ImportAppRequest.ImportOptions.ConflictResolutionStrategy result = + com.google.cloud.ces.v1.ImportAppRequest.ImportOptions.ConflictResolutionStrategy + .forNumber(conflictResolutionStrategy_); + return result == null + ? com.google.cloud.ces.v1.ImportAppRequest.ImportOptions.ConflictResolutionStrategy + .UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (conflictResolutionStrategy_ + != com.google.cloud.ces.v1.ImportAppRequest.ImportOptions.ConflictResolutionStrategy + .CONFLICT_RESOLUTION_STRATEGY_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, conflictResolutionStrategy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (conflictResolutionStrategy_ + != com.google.cloud.ces.v1.ImportAppRequest.ImportOptions.ConflictResolutionStrategy + .CONFLICT_RESOLUTION_STRATEGY_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(1, conflictResolutionStrategy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ImportAppRequest.ImportOptions)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ImportAppRequest.ImportOptions other = + (com.google.cloud.ces.v1.ImportAppRequest.ImportOptions) obj; + + if (conflictResolutionStrategy_ != other.conflictResolutionStrategy_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONFLICT_RESOLUTION_STRATEGY_FIELD_NUMBER; + hash = (53 * hash) + conflictResolutionStrategy_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ImportAppRequest.ImportOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ImportAppRequest.ImportOptions parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ImportAppRequest.ImportOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ImportAppRequest.ImportOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ImportAppRequest.ImportOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ImportAppRequest.ImportOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ImportAppRequest.ImportOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ImportAppRequest.ImportOptions parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ImportAppRequest.ImportOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ImportAppRequest.ImportOptions parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ImportAppRequest.ImportOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ImportAppRequest.ImportOptions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.ImportAppRequest.ImportOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Configuration options for the app import process.
      +     * These options control how the import behaves, particularly when
      +     * conflicts arise with existing app data.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ImportAppRequest.ImportOptions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ImportAppRequest.ImportOptions) + com.google.cloud.ces.v1.ImportAppRequest.ImportOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ImportAppRequest_ImportOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ImportAppRequest_ImportOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ImportAppRequest.ImportOptions.class, + com.google.cloud.ces.v1.ImportAppRequest.ImportOptions.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ImportAppRequest.ImportOptions.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + conflictResolutionStrategy_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ImportAppRequest_ImportOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ImportAppRequest.ImportOptions getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ImportAppRequest.ImportOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ImportAppRequest.ImportOptions build() { + com.google.cloud.ces.v1.ImportAppRequest.ImportOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ImportAppRequest.ImportOptions buildPartial() { + com.google.cloud.ces.v1.ImportAppRequest.ImportOptions result = + new com.google.cloud.ces.v1.ImportAppRequest.ImportOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ImportAppRequest.ImportOptions result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.conflictResolutionStrategy_ = conflictResolutionStrategy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ImportAppRequest.ImportOptions) { + return mergeFrom((com.google.cloud.ces.v1.ImportAppRequest.ImportOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ImportAppRequest.ImportOptions other) { + if (other == com.google.cloud.ces.v1.ImportAppRequest.ImportOptions.getDefaultInstance()) + return this; + if (other.conflictResolutionStrategy_ != 0) { + setConflictResolutionStrategyValue(other.getConflictResolutionStrategyValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + conflictResolutionStrategy_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int conflictResolutionStrategy_ = 0; + + /** + * + * + *
      +       * Optional. The strategy to use when resolving conflicts during import.
      +       * 
      + * + * + * .google.cloud.ces.v1.ImportAppRequest.ImportOptions.ConflictResolutionStrategy conflict_resolution_strategy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for conflictResolutionStrategy. + */ + @java.lang.Override + public int getConflictResolutionStrategyValue() { + return conflictResolutionStrategy_; + } + + /** + * + * + *
      +       * Optional. The strategy to use when resolving conflicts during import.
      +       * 
      + * + * + * .google.cloud.ces.v1.ImportAppRequest.ImportOptions.ConflictResolutionStrategy conflict_resolution_strategy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for conflictResolutionStrategy to set. + * @return This builder for chaining. + */ + public Builder setConflictResolutionStrategyValue(int value) { + conflictResolutionStrategy_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The strategy to use when resolving conflicts during import.
      +       * 
      + * + * + * .google.cloud.ces.v1.ImportAppRequest.ImportOptions.ConflictResolutionStrategy conflict_resolution_strategy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The conflictResolutionStrategy. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ImportAppRequest.ImportOptions.ConflictResolutionStrategy + getConflictResolutionStrategy() { + com.google.cloud.ces.v1.ImportAppRequest.ImportOptions.ConflictResolutionStrategy result = + com.google.cloud.ces.v1.ImportAppRequest.ImportOptions.ConflictResolutionStrategy + .forNumber(conflictResolutionStrategy_); + return result == null + ? com.google.cloud.ces.v1.ImportAppRequest.ImportOptions.ConflictResolutionStrategy + .UNRECOGNIZED + : result; + } + + /** + * + * + *
      +       * Optional. The strategy to use when resolving conflicts during import.
      +       * 
      + * + * + * .google.cloud.ces.v1.ImportAppRequest.ImportOptions.ConflictResolutionStrategy conflict_resolution_strategy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The conflictResolutionStrategy to set. + * @return This builder for chaining. + */ + public Builder setConflictResolutionStrategy( + com.google.cloud.ces.v1.ImportAppRequest.ImportOptions.ConflictResolutionStrategy value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + conflictResolutionStrategy_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The strategy to use when resolving conflicts during import.
      +       * 
      + * + * + * .google.cloud.ces.v1.ImportAppRequest.ImportOptions.ConflictResolutionStrategy conflict_resolution_strategy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearConflictResolutionStrategy() { + bitField0_ = (bitField0_ & ~0x00000001); + conflictResolutionStrategy_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ImportAppRequest.ImportOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ImportAppRequest.ImportOptions) + private static final com.google.cloud.ces.v1.ImportAppRequest.ImportOptions DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ImportAppRequest.ImportOptions(); + } + + public static com.google.cloud.ces.v1.ImportAppRequest.ImportOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ImportAppRequest.ImportOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int appCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object app_; + + public enum AppCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GCS_URI(4), + APP_CONTENT(5), + APP_NOT_SET(0); + private final int value; + + private AppCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AppCase valueOf(int value) { + return forNumber(value); + } + + public static AppCase forNumber(int value) { + switch (value) { + case 4: + return GCS_URI; + case 5: + return APP_CONTENT; + case 0: + return APP_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public AppCase getAppCase() { + return AppCase.forNumber(appCase_); + } + + public static final int GCS_URI_FIELD_NUMBER = 4; + + /** + * + * + *
      +   * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
      +   * from which to import app. The format of this URI must be
      +   * `gs://<bucket-name>/<object-name>`.
      +   * 
      + * + * string gcs_uri = 4; + * + * @return Whether the gcsUri field is set. + */ + public boolean hasGcsUri() { + return appCase_ == 4; + } + + /** + * + * + *
      +   * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
      +   * from which to import app. The format of this URI must be
      +   * `gs://<bucket-name>/<object-name>`.
      +   * 
      + * + * string gcs_uri = 4; + * + * @return The gcsUri. + */ + public java.lang.String getGcsUri() { + java.lang.Object ref = ""; + if (appCase_ == 4) { + ref = app_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (appCase_ == 4) { + app_ = s; + } + return s; + } + } + + /** + * + * + *
      +   * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
      +   * from which to import app. The format of this URI must be
      +   * `gs://<bucket-name>/<object-name>`.
      +   * 
      + * + * string gcs_uri = 4; + * + * @return The bytes for gcsUri. + */ + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = ""; + if (appCase_ == 4) { + ref = app_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (appCase_ == 4) { + app_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APP_CONTENT_FIELD_NUMBER = 5; + + /** + * + * + *
      +   * Raw bytes representing the compressed zip file with the app folder
      +   * structure.
      +   * 
      + * + * bytes app_content = 5; + * + * @return Whether the appContent field is set. + */ + @java.lang.Override + public boolean hasAppContent() { + return appCase_ == 5; + } + + /** + * + * + *
      +   * Raw bytes representing the compressed zip file with the app folder
      +   * structure.
      +   * 
      + * + * bytes app_content = 5; + * + * @return The appContent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppContent() { + if (appCase_ == 5) { + return (com.google.protobuf.ByteString) app_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
      +   * Required. The parent resource name with the location of the app to import.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The parent resource name with the location of the app to import.
      +   * 
      + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
      +   * Optional. The display name of the app to import.
      +   * * If the app is created on import, and the display name is specified,
      +   * the imported app will use this display name. If a conflict is detected
      +   * with an existing app, a timestamp will be appended to the display name
      +   * to make it unique.
      +   * * If the app is a reimport, this field should not be set. Providing a
      +   * display name during reimport will result in an INVALID_ARGUMENT error.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The display name of the app to import.
      +   * * If the app is created on import, and the display name is specified,
      +   * the imported app will use this display name. If a conflict is detected
      +   * with an existing app, a timestamp will be appended to the display name
      +   * to make it unique.
      +   * * If the app is a reimport, this field should not be set. Providing a
      +   * display name during reimport will result in an INVALID_ARGUMENT error.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APP_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object appId_ = ""; + + /** + * + * + *
      +   * Optional. The ID to use for the imported app.
      +   * *  If not specified, a unique ID will be automatically assigned for
      +   * the app.
      +   * *  Otherwise, the imported app will use this ID as the final component of
      +   * its resource name. If an app with the same ID already exists at the
      +   * specified location in the project, the content of the existing app will be
      +   * replaced.
      +   * 
      + * + * string app_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appId. + */ + @java.lang.Override + public java.lang.String getAppId() { + java.lang.Object ref = appId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appId_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The ID to use for the imported app.
      +   * *  If not specified, a unique ID will be automatically assigned for
      +   * the app.
      +   * *  Otherwise, the imported app will use this ID as the final component of
      +   * its resource name. If an app with the same ID already exists at the
      +   * specified location in the project, the content of the existing app will be
      +   * replaced.
      +   * 
      + * + * string app_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for appId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppIdBytes() { + java.lang.Object ref = appId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IMPORT_OPTIONS_FIELD_NUMBER = 6; + private com.google.cloud.ces.v1.ImportAppRequest.ImportOptions importOptions_; + + /** + * + * + *
      +   * Optional. Options governing the import process for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.ImportAppRequest.ImportOptions import_options = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the importOptions field is set. + */ + @java.lang.Override + public boolean hasImportOptions() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Optional. Options governing the import process for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.ImportAppRequest.ImportOptions import_options = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The importOptions. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ImportAppRequest.ImportOptions getImportOptions() { + return importOptions_ == null + ? com.google.cloud.ces.v1.ImportAppRequest.ImportOptions.getDefaultInstance() + : importOptions_; + } + + /** + * + * + *
      +   * Optional. Options governing the import process for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.ImportAppRequest.ImportOptions import_options = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ImportAppRequest.ImportOptionsOrBuilder + getImportOptionsOrBuilder() { + return importOptions_ == null + ? com.google.cloud.ces.v1.ImportAppRequest.ImportOptions.getDefaultInstance() + : importOptions_; + } + + public static final int IGNORE_APP_LOCK_FIELD_NUMBER = 7; + private boolean ignoreAppLock_ = false; + + /** + * + * + *
      +   * Optional. Flag for overriding the app lock during import.
      +   * If set to true, the import process will ignore the app lock.
      +   * 
      + * + * bool ignore_app_lock = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ignoreAppLock. + */ + @java.lang.Override + public boolean getIgnoreAppLock() { + return ignoreAppLock_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, appId_); + } + if (appCase_ == 4) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, app_); + } + if (appCase_ == 5) { + output.writeBytes(5, (com.google.protobuf.ByteString) app_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getImportOptions()); + } + if (ignoreAppLock_ != false) { + output.writeBool(7, ignoreAppLock_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, appId_); + } + if (appCase_ == 4) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, app_); + } + if (appCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 5, (com.google.protobuf.ByteString) app_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getImportOptions()); + } + if (ignoreAppLock_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, ignoreAppLock_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ImportAppRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ImportAppRequest other = (com.google.cloud.ces.v1.ImportAppRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getAppId().equals(other.getAppId())) return false; + if (hasImportOptions() != other.hasImportOptions()) return false; + if (hasImportOptions()) { + if (!getImportOptions().equals(other.getImportOptions())) return false; + } + if (getIgnoreAppLock() != other.getIgnoreAppLock()) return false; + if (!getAppCase().equals(other.getAppCase())) return false; + switch (appCase_) { + case 4: + if (!getGcsUri().equals(other.getGcsUri())) return false; + break; + case 5: + if (!getAppContent().equals(other.getAppContent())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + APP_ID_FIELD_NUMBER; + hash = (53 * hash) + getAppId().hashCode(); + if (hasImportOptions()) { + hash = (37 * hash) + IMPORT_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getImportOptions().hashCode(); + } + hash = (37 * hash) + IGNORE_APP_LOCK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreAppLock()); + switch (appCase_) { + case 4: + hash = (37 * hash) + GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getGcsUri().hashCode(); + break; + case 5: + hash = (37 * hash) + APP_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getAppContent().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ImportAppRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ImportAppRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ImportAppRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ImportAppRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ImportAppRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ImportAppRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ImportAppRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ImportAppRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ImportAppRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ImportAppRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ImportAppRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ImportAppRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ImportAppRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.ImportApp][google.cloud.ces.v1.AgentService.ImportApp].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ImportAppRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ImportAppRequest) + com.google.cloud.ces.v1.ImportAppRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ImportAppRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ImportAppRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ImportAppRequest.class, + com.google.cloud.ces.v1.ImportAppRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ImportAppRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetImportOptionsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + displayName_ = ""; + appId_ = ""; + importOptions_ = null; + if (importOptionsBuilder_ != null) { + importOptionsBuilder_.dispose(); + importOptionsBuilder_ = null; + } + ignoreAppLock_ = false; + appCase_ = 0; + app_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ImportAppRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ImportAppRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ImportAppRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ImportAppRequest build() { + com.google.cloud.ces.v1.ImportAppRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ImportAppRequest buildPartial() { + com.google.cloud.ces.v1.ImportAppRequest result = + new com.google.cloud.ces.v1.ImportAppRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ImportAppRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.appId_ = appId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.importOptions_ = + importOptionsBuilder_ == null ? importOptions_ : importOptionsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.ignoreAppLock_ = ignoreAppLock_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.ces.v1.ImportAppRequest result) { + result.appCase_ = appCase_; + result.app_ = this.app_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ImportAppRequest) { + return mergeFrom((com.google.cloud.ces.v1.ImportAppRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ImportAppRequest other) { + if (other == com.google.cloud.ces.v1.ImportAppRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getAppId().isEmpty()) { + appId_ = other.appId_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasImportOptions()) { + mergeImportOptions(other.getImportOptions()); + } + if (other.getIgnoreAppLock() != false) { + setIgnoreAppLock(other.getIgnoreAppLock()); + } + switch (other.getAppCase()) { + case GCS_URI: + { + appCase_ = 4; + app_ = other.app_; + onChanged(); + break; + } + case APP_CONTENT: + { + setAppContent(other.getAppContent()); + break; + } + case APP_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: + { + appId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + appCase_ = 4; + app_ = s; + break; + } // case 34 + case 42: + { + app_ = input.readBytes(); + appCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetImportOptionsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + ignoreAppLock_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int appCase_ = 0; + private java.lang.Object app_; + + public AppCase getAppCase() { + return AppCase.forNumber(appCase_); + } + + public Builder clearApp() { + appCase_ = 0; + app_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
      +     * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
      +     * from which to import app. The format of this URI must be
      +     * `gs://<bucket-name>/<object-name>`.
      +     * 
      + * + * string gcs_uri = 4; + * + * @return Whether the gcsUri field is set. + */ + @java.lang.Override + public boolean hasGcsUri() { + return appCase_ == 4; + } + + /** + * + * + *
      +     * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
      +     * from which to import app. The format of this URI must be
      +     * `gs://<bucket-name>/<object-name>`.
      +     * 
      + * + * string gcs_uri = 4; + * + * @return The gcsUri. + */ + @java.lang.Override + public java.lang.String getGcsUri() { + java.lang.Object ref = ""; + if (appCase_ == 4) { + ref = app_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (appCase_ == 4) { + app_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
      +     * from which to import app. The format of this URI must be
      +     * `gs://<bucket-name>/<object-name>`.
      +     * 
      + * + * string gcs_uri = 4; + * + * @return The bytes for gcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = ""; + if (appCase_ == 4) { + ref = app_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (appCase_ == 4) { + app_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
      +     * from which to import app. The format of this URI must be
      +     * `gs://<bucket-name>/<object-name>`.
      +     * 
      + * + * string gcs_uri = 4; + * + * @param value The gcsUri to set. + * @return This builder for chaining. + */ + public Builder setGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + appCase_ = 4; + app_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
      +     * from which to import app. The format of this URI must be
      +     * `gs://<bucket-name>/<object-name>`.
      +     * 
      + * + * string gcs_uri = 4; + * + * @return This builder for chaining. + */ + public Builder clearGcsUri() { + if (appCase_ == 4) { + appCase_ = 0; + app_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
      +     * from which to import app. The format of this URI must be
      +     * `gs://<bucket-name>/<object-name>`.
      +     * 
      + * + * string gcs_uri = 4; + * + * @param value The bytes for gcsUri to set. + * @return This builder for chaining. + */ + public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + appCase_ = 4; + app_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Raw bytes representing the compressed zip file with the app folder
      +     * structure.
      +     * 
      + * + * bytes app_content = 5; + * + * @return Whether the appContent field is set. + */ + public boolean hasAppContent() { + return appCase_ == 5; + } + + /** + * + * + *
      +     * Raw bytes representing the compressed zip file with the app folder
      +     * structure.
      +     * 
      + * + * bytes app_content = 5; + * + * @return The appContent. + */ + public com.google.protobuf.ByteString getAppContent() { + if (appCase_ == 5) { + return (com.google.protobuf.ByteString) app_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + /** + * + * + *
      +     * Raw bytes representing the compressed zip file with the app folder
      +     * structure.
      +     * 
      + * + * bytes app_content = 5; + * + * @param value The appContent to set. + * @return This builder for chaining. + */ + public Builder setAppContent(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + appCase_ = 5; + app_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Raw bytes representing the compressed zip file with the app folder
      +     * structure.
      +     * 
      + * + * bytes app_content = 5; + * + * @return This builder for chaining. + */ + public Builder clearAppContent() { + if (appCase_ == 5) { + appCase_ = 0; + app_ = null; + onChanged(); + } + return this; + } + + private java.lang.Object parent_ = ""; + + /** + * + * + *
      +     * Required. The parent resource name with the location of the app to import.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The parent resource name with the location of the app to import.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The parent resource name with the location of the app to import.
      +     * 
      + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The parent resource name with the location of the app to import.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The parent resource name with the location of the app to import.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
      +     * Optional. The display name of the app to import.
      +     * * If the app is created on import, and the display name is specified,
      +     * the imported app will use this display name. If a conflict is detected
      +     * with an existing app, a timestamp will be appended to the display name
      +     * to make it unique.
      +     * * If the app is a reimport, this field should not be set. Providing a
      +     * display name during reimport will result in an INVALID_ARGUMENT error.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The display name of the app to import.
      +     * * If the app is created on import, and the display name is specified,
      +     * the imported app will use this display name. If a conflict is detected
      +     * with an existing app, a timestamp will be appended to the display name
      +     * to make it unique.
      +     * * If the app is a reimport, this field should not be set. Providing a
      +     * display name during reimport will result in an INVALID_ARGUMENT error.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The display name of the app to import.
      +     * * If the app is created on import, and the display name is specified,
      +     * the imported app will use this display name. If a conflict is detected
      +     * with an existing app, a timestamp will be appended to the display name
      +     * to make it unique.
      +     * * If the app is a reimport, this field should not be set. Providing a
      +     * display name during reimport will result in an INVALID_ARGUMENT error.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The display name of the app to import.
      +     * * If the app is created on import, and the display name is specified,
      +     * the imported app will use this display name. If a conflict is detected
      +     * with an existing app, a timestamp will be appended to the display name
      +     * to make it unique.
      +     * * If the app is a reimport, this field should not be set. Providing a
      +     * display name during reimport will result in an INVALID_ARGUMENT error.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The display name of the app to import.
      +     * * If the app is created on import, and the display name is specified,
      +     * the imported app will use this display name. If a conflict is detected
      +     * with an existing app, a timestamp will be appended to the display name
      +     * to make it unique.
      +     * * If the app is a reimport, this field should not be set. Providing a
      +     * display name during reimport will result in an INVALID_ARGUMENT error.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object appId_ = ""; + + /** + * + * + *
      +     * Optional. The ID to use for the imported app.
      +     * *  If not specified, a unique ID will be automatically assigned for
      +     * the app.
      +     * *  Otherwise, the imported app will use this ID as the final component of
      +     * its resource name. If an app with the same ID already exists at the
      +     * specified location in the project, the content of the existing app will be
      +     * replaced.
      +     * 
      + * + * string app_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appId. + */ + public java.lang.String getAppId() { + java.lang.Object ref = appId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The ID to use for the imported app.
      +     * *  If not specified, a unique ID will be automatically assigned for
      +     * the app.
      +     * *  Otherwise, the imported app will use this ID as the final component of
      +     * its resource name. If an app with the same ID already exists at the
      +     * specified location in the project, the content of the existing app will be
      +     * replaced.
      +     * 
      + * + * string app_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for appId. + */ + public com.google.protobuf.ByteString getAppIdBytes() { + java.lang.Object ref = appId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The ID to use for the imported app.
      +     * *  If not specified, a unique ID will be automatically assigned for
      +     * the app.
      +     * *  Otherwise, the imported app will use this ID as the final component of
      +     * its resource name. If an app with the same ID already exists at the
      +     * specified location in the project, the content of the existing app will be
      +     * replaced.
      +     * 
      + * + * string app_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The appId to set. + * @return This builder for chaining. + */ + public Builder setAppId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + appId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The ID to use for the imported app.
      +     * *  If not specified, a unique ID will be automatically assigned for
      +     * the app.
      +     * *  Otherwise, the imported app will use this ID as the final component of
      +     * its resource name. If an app with the same ID already exists at the
      +     * specified location in the project, the content of the existing app will be
      +     * replaced.
      +     * 
      + * + * string app_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAppId() { + appId_ = getDefaultInstance().getAppId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The ID to use for the imported app.
      +     * *  If not specified, a unique ID will be automatically assigned for
      +     * the app.
      +     * *  Otherwise, the imported app will use this ID as the final component of
      +     * its resource name. If an app with the same ID already exists at the
      +     * specified location in the project, the content of the existing app will be
      +     * replaced.
      +     * 
      + * + * string app_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for appId to set. + * @return This builder for chaining. + */ + public Builder setAppIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + appId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.ImportAppRequest.ImportOptions importOptions_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ImportAppRequest.ImportOptions, + com.google.cloud.ces.v1.ImportAppRequest.ImportOptions.Builder, + com.google.cloud.ces.v1.ImportAppRequest.ImportOptionsOrBuilder> + importOptionsBuilder_; + + /** + * + * + *
      +     * Optional. Options governing the import process for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ImportAppRequest.ImportOptions import_options = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the importOptions field is set. + */ + public boolean hasImportOptions() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +     * Optional. Options governing the import process for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ImportAppRequest.ImportOptions import_options = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The importOptions. + */ + public com.google.cloud.ces.v1.ImportAppRequest.ImportOptions getImportOptions() { + if (importOptionsBuilder_ == null) { + return importOptions_ == null + ? com.google.cloud.ces.v1.ImportAppRequest.ImportOptions.getDefaultInstance() + : importOptions_; + } else { + return importOptionsBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Options governing the import process for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ImportAppRequest.ImportOptions import_options = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setImportOptions(com.google.cloud.ces.v1.ImportAppRequest.ImportOptions value) { + if (importOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + importOptions_ = value; + } else { + importOptionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Options governing the import process for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ImportAppRequest.ImportOptions import_options = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setImportOptions( + com.google.cloud.ces.v1.ImportAppRequest.ImportOptions.Builder builderForValue) { + if (importOptionsBuilder_ == null) { + importOptions_ = builderForValue.build(); + } else { + importOptionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Options governing the import process for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ImportAppRequest.ImportOptions import_options = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeImportOptions( + com.google.cloud.ces.v1.ImportAppRequest.ImportOptions value) { + if (importOptionsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && importOptions_ != null + && importOptions_ + != com.google.cloud.ces.v1.ImportAppRequest.ImportOptions.getDefaultInstance()) { + getImportOptionsBuilder().mergeFrom(value); + } else { + importOptions_ = value; + } + } else { + importOptionsBuilder_.mergeFrom(value); + } + if (importOptions_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Options governing the import process for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ImportAppRequest.ImportOptions import_options = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearImportOptions() { + bitField0_ = (bitField0_ & ~0x00000020); + importOptions_ = null; + if (importOptionsBuilder_ != null) { + importOptionsBuilder_.dispose(); + importOptionsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Options governing the import process for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ImportAppRequest.ImportOptions import_options = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ImportAppRequest.ImportOptions.Builder + getImportOptionsBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetImportOptionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Options governing the import process for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ImportAppRequest.ImportOptions import_options = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ImportAppRequest.ImportOptionsOrBuilder + getImportOptionsOrBuilder() { + if (importOptionsBuilder_ != null) { + return importOptionsBuilder_.getMessageOrBuilder(); + } else { + return importOptions_ == null + ? com.google.cloud.ces.v1.ImportAppRequest.ImportOptions.getDefaultInstance() + : importOptions_; + } + } + + /** + * + * + *
      +     * Optional. Options governing the import process for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ImportAppRequest.ImportOptions import_options = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ImportAppRequest.ImportOptions, + com.google.cloud.ces.v1.ImportAppRequest.ImportOptions.Builder, + com.google.cloud.ces.v1.ImportAppRequest.ImportOptionsOrBuilder> + internalGetImportOptionsFieldBuilder() { + if (importOptionsBuilder_ == null) { + importOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ImportAppRequest.ImportOptions, + com.google.cloud.ces.v1.ImportAppRequest.ImportOptions.Builder, + com.google.cloud.ces.v1.ImportAppRequest.ImportOptionsOrBuilder>( + getImportOptions(), getParentForChildren(), isClean()); + importOptions_ = null; + } + return importOptionsBuilder_; + } + + private boolean ignoreAppLock_; + + /** + * + * + *
      +     * Optional. Flag for overriding the app lock during import.
      +     * If set to true, the import process will ignore the app lock.
      +     * 
      + * + * bool ignore_app_lock = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ignoreAppLock. + */ + @java.lang.Override + public boolean getIgnoreAppLock() { + return ignoreAppLock_; + } + + /** + * + * + *
      +     * Optional. Flag for overriding the app lock during import.
      +     * If set to true, the import process will ignore the app lock.
      +     * 
      + * + * bool ignore_app_lock = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The ignoreAppLock to set. + * @return This builder for chaining. + */ + public Builder setIgnoreAppLock(boolean value) { + + ignoreAppLock_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Flag for overriding the app lock during import.
      +     * If set to true, the import process will ignore the app lock.
      +     * 
      + * + * bool ignore_app_lock = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIgnoreAppLock() { + bitField0_ = (bitField0_ & ~0x00000040); + ignoreAppLock_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ImportAppRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ImportAppRequest) + private static final com.google.cloud.ces.v1.ImportAppRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ImportAppRequest(); + } + + public static com.google.cloud.ces.v1.ImportAppRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportAppRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ImportAppRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ImportAppRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ImportAppRequestOrBuilder.java new file mode 100644 index 000000000000..6330aca8eb4b --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ImportAppRequestOrBuilder.java @@ -0,0 +1,266 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ImportAppRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ImportAppRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
      +   * from which to import app. The format of this URI must be
      +   * `gs://<bucket-name>/<object-name>`.
      +   * 
      + * + * string gcs_uri = 4; + * + * @return Whether the gcsUri field is set. + */ + boolean hasGcsUri(); + + /** + * + * + *
      +   * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
      +   * from which to import app. The format of this URI must be
      +   * `gs://<bucket-name>/<object-name>`.
      +   * 
      + * + * string gcs_uri = 4; + * + * @return The gcsUri. + */ + java.lang.String getGcsUri(); + + /** + * + * + *
      +   * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
      +   * from which to import app. The format of this URI must be
      +   * `gs://<bucket-name>/<object-name>`.
      +   * 
      + * + * string gcs_uri = 4; + * + * @return The bytes for gcsUri. + */ + com.google.protobuf.ByteString getGcsUriBytes(); + + /** + * + * + *
      +   * Raw bytes representing the compressed zip file with the app folder
      +   * structure.
      +   * 
      + * + * bytes app_content = 5; + * + * @return Whether the appContent field is set. + */ + boolean hasAppContent(); + + /** + * + * + *
      +   * Raw bytes representing the compressed zip file with the app folder
      +   * structure.
      +   * 
      + * + * bytes app_content = 5; + * + * @return The appContent. + */ + com.google.protobuf.ByteString getAppContent(); + + /** + * + * + *
      +   * Required. The parent resource name with the location of the app to import.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
      +   * Required. The parent resource name with the location of the app to import.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Optional. The display name of the app to import.
      +   * * If the app is created on import, and the display name is specified,
      +   * the imported app will use this display name. If a conflict is detected
      +   * with an existing app, a timestamp will be appended to the display name
      +   * to make it unique.
      +   * * If the app is a reimport, this field should not be set. Providing a
      +   * display name during reimport will result in an INVALID_ARGUMENT error.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
      +   * Optional. The display name of the app to import.
      +   * * If the app is created on import, and the display name is specified,
      +   * the imported app will use this display name. If a conflict is detected
      +   * with an existing app, a timestamp will be appended to the display name
      +   * to make it unique.
      +   * * If the app is a reimport, this field should not be set. Providing a
      +   * display name during reimport will result in an INVALID_ARGUMENT error.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
      +   * Optional. The ID to use for the imported app.
      +   * *  If not specified, a unique ID will be automatically assigned for
      +   * the app.
      +   * *  Otherwise, the imported app will use this ID as the final component of
      +   * its resource name. If an app with the same ID already exists at the
      +   * specified location in the project, the content of the existing app will be
      +   * replaced.
      +   * 
      + * + * string app_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appId. + */ + java.lang.String getAppId(); + + /** + * + * + *
      +   * Optional. The ID to use for the imported app.
      +   * *  If not specified, a unique ID will be automatically assigned for
      +   * the app.
      +   * *  Otherwise, the imported app will use this ID as the final component of
      +   * its resource name. If an app with the same ID already exists at the
      +   * specified location in the project, the content of the existing app will be
      +   * replaced.
      +   * 
      + * + * string app_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for appId. + */ + com.google.protobuf.ByteString getAppIdBytes(); + + /** + * + * + *
      +   * Optional. Options governing the import process for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.ImportAppRequest.ImportOptions import_options = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the importOptions field is set. + */ + boolean hasImportOptions(); + + /** + * + * + *
      +   * Optional. Options governing the import process for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.ImportAppRequest.ImportOptions import_options = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The importOptions. + */ + com.google.cloud.ces.v1.ImportAppRequest.ImportOptions getImportOptions(); + + /** + * + * + *
      +   * Optional. Options governing the import process for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.ImportAppRequest.ImportOptions import_options = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ImportAppRequest.ImportOptionsOrBuilder getImportOptionsOrBuilder(); + + /** + * + * + *
      +   * Optional. Flag for overriding the app lock during import.
      +   * If set to true, the import process will ignore the app lock.
      +   * 
      + * + * bool ignore_app_lock = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ignoreAppLock. + */ + boolean getIgnoreAppLock(); + + com.google.cloud.ces.v1.ImportAppRequest.AppCase getAppCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ImportAppResponse.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ImportAppResponse.java new file mode 100644 index 000000000000..ac890ea51aa0 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ImportAppResponse.java @@ -0,0 +1,913 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Response message for
      + * [AgentService.ImportApp][google.cloud.ces.v1.AgentService.ImportApp].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ImportAppResponse} + */ +@com.google.protobuf.Generated +public final class ImportAppResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ImportAppResponse) + ImportAppResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ImportAppResponse"); + } + + // Use ImportAppResponse.newBuilder() to construct. + private ImportAppResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ImportAppResponse() { + name_ = ""; + warnings_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ImportAppResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ImportAppResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ImportAppResponse.class, + com.google.cloud.ces.v1.ImportAppResponse.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * The resource name of the app that was imported.
      +   * 
      + * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * The resource name of the app that was imported.
      +   * 
      + * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WARNINGS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList warnings_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +   * Warning messages generated during the import process.
      +   * If errors occur for specific resources, they will not be included in the
      +   * imported app and the error will be mentioned here.
      +   * 
      + * + * repeated string warnings = 2; + * + * @return A list containing the warnings. + */ + public com.google.protobuf.ProtocolStringList getWarningsList() { + return warnings_; + } + + /** + * + * + *
      +   * Warning messages generated during the import process.
      +   * If errors occur for specific resources, they will not be included in the
      +   * imported app and the error will be mentioned here.
      +   * 
      + * + * repeated string warnings = 2; + * + * @return The count of warnings. + */ + public int getWarningsCount() { + return warnings_.size(); + } + + /** + * + * + *
      +   * Warning messages generated during the import process.
      +   * If errors occur for specific resources, they will not be included in the
      +   * imported app and the error will be mentioned here.
      +   * 
      + * + * repeated string warnings = 2; + * + * @param index The index of the element to return. + * @return The warnings at the given index. + */ + public java.lang.String getWarnings(int index) { + return warnings_.get(index); + } + + /** + * + * + *
      +   * Warning messages generated during the import process.
      +   * If errors occur for specific resources, they will not be included in the
      +   * imported app and the error will be mentioned here.
      +   * 
      + * + * repeated string warnings = 2; + * + * @param index The index of the value to return. + * @return The bytes of the warnings at the given index. + */ + public com.google.protobuf.ByteString getWarningsBytes(int index) { + return warnings_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + for (int i = 0; i < warnings_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, warnings_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + { + int dataSize = 0; + for (int i = 0; i < warnings_.size(); i++) { + dataSize += computeStringSizeNoTag(warnings_.getRaw(i)); + } + size += dataSize; + size += 1 * getWarningsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ImportAppResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ImportAppResponse other = + (com.google.cloud.ces.v1.ImportAppResponse) obj; + + if (!getName().equals(other.getName())) return false; + if (!getWarningsList().equals(other.getWarningsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getWarningsCount() > 0) { + hash = (37 * hash) + WARNINGS_FIELD_NUMBER; + hash = (53 * hash) + getWarningsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ImportAppResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ImportAppResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ImportAppResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ImportAppResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ImportAppResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ImportAppResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ImportAppResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ImportAppResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ImportAppResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ImportAppResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ImportAppResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ImportAppResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ImportAppResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Response message for
      +   * [AgentService.ImportApp][google.cloud.ces.v1.AgentService.ImportApp].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ImportAppResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ImportAppResponse) + com.google.cloud.ces.v1.ImportAppResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ImportAppResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ImportAppResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ImportAppResponse.class, + com.google.cloud.ces.v1.ImportAppResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ImportAppResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + warnings_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ImportAppResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ImportAppResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ImportAppResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ImportAppResponse build() { + com.google.cloud.ces.v1.ImportAppResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ImportAppResponse buildPartial() { + com.google.cloud.ces.v1.ImportAppResponse result = + new com.google.cloud.ces.v1.ImportAppResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ImportAppResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + warnings_.makeImmutable(); + result.warnings_ = warnings_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ImportAppResponse) { + return mergeFrom((com.google.cloud.ces.v1.ImportAppResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ImportAppResponse other) { + if (other == com.google.cloud.ces.v1.ImportAppResponse.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.warnings_.isEmpty()) { + if (warnings_.isEmpty()) { + warnings_ = other.warnings_; + bitField0_ |= 0x00000002; + } else { + ensureWarningsIsMutable(); + warnings_.addAll(other.warnings_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureWarningsIsMutable(); + warnings_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * The resource name of the app that was imported.
      +     * 
      + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * The resource name of the app that was imported.
      +     * 
      + * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * The resource name of the app that was imported.
      +     * 
      + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The resource name of the app that was imported.
      +     * 
      + * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * The resource name of the app that was imported.
      +     * 
      + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList warnings_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureWarningsIsMutable() { + if (!warnings_.isModifiable()) { + warnings_ = new com.google.protobuf.LazyStringArrayList(warnings_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
      +     * Warning messages generated during the import process.
      +     * If errors occur for specific resources, they will not be included in the
      +     * imported app and the error will be mentioned here.
      +     * 
      + * + * repeated string warnings = 2; + * + * @return A list containing the warnings. + */ + public com.google.protobuf.ProtocolStringList getWarningsList() { + warnings_.makeImmutable(); + return warnings_; + } + + /** + * + * + *
      +     * Warning messages generated during the import process.
      +     * If errors occur for specific resources, they will not be included in the
      +     * imported app and the error will be mentioned here.
      +     * 
      + * + * repeated string warnings = 2; + * + * @return The count of warnings. + */ + public int getWarningsCount() { + return warnings_.size(); + } + + /** + * + * + *
      +     * Warning messages generated during the import process.
      +     * If errors occur for specific resources, they will not be included in the
      +     * imported app and the error will be mentioned here.
      +     * 
      + * + * repeated string warnings = 2; + * + * @param index The index of the element to return. + * @return The warnings at the given index. + */ + public java.lang.String getWarnings(int index) { + return warnings_.get(index); + } + + /** + * + * + *
      +     * Warning messages generated during the import process.
      +     * If errors occur for specific resources, they will not be included in the
      +     * imported app and the error will be mentioned here.
      +     * 
      + * + * repeated string warnings = 2; + * + * @param index The index of the value to return. + * @return The bytes of the warnings at the given index. + */ + public com.google.protobuf.ByteString getWarningsBytes(int index) { + return warnings_.getByteString(index); + } + + /** + * + * + *
      +     * Warning messages generated during the import process.
      +     * If errors occur for specific resources, they will not be included in the
      +     * imported app and the error will be mentioned here.
      +     * 
      + * + * repeated string warnings = 2; + * + * @param index The index to set the value at. + * @param value The warnings to set. + * @return This builder for chaining. + */ + public Builder setWarnings(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureWarningsIsMutable(); + warnings_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Warning messages generated during the import process.
      +     * If errors occur for specific resources, they will not be included in the
      +     * imported app and the error will be mentioned here.
      +     * 
      + * + * repeated string warnings = 2; + * + * @param value The warnings to add. + * @return This builder for chaining. + */ + public Builder addWarnings(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureWarningsIsMutable(); + warnings_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Warning messages generated during the import process.
      +     * If errors occur for specific resources, they will not be included in the
      +     * imported app and the error will be mentioned here.
      +     * 
      + * + * repeated string warnings = 2; + * + * @param values The warnings to add. + * @return This builder for chaining. + */ + public Builder addAllWarnings(java.lang.Iterable values) { + ensureWarningsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warnings_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Warning messages generated during the import process.
      +     * If errors occur for specific resources, they will not be included in the
      +     * imported app and the error will be mentioned here.
      +     * 
      + * + * repeated string warnings = 2; + * + * @return This builder for chaining. + */ + public Builder clearWarnings() { + warnings_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Warning messages generated during the import process.
      +     * If errors occur for specific resources, they will not be included in the
      +     * imported app and the error will be mentioned here.
      +     * 
      + * + * repeated string warnings = 2; + * + * @param value The bytes of the warnings to add. + * @return This builder for chaining. + */ + public Builder addWarningsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureWarningsIsMutable(); + warnings_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ImportAppResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ImportAppResponse) + private static final com.google.cloud.ces.v1.ImportAppResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ImportAppResponse(); + } + + public static com.google.cloud.ces.v1.ImportAppResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportAppResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ImportAppResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ImportAppResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ImportAppResponseOrBuilder.java new file mode 100644 index 000000000000..9a50fb65df5a --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ImportAppResponseOrBuilder.java @@ -0,0 +1,116 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ImportAppResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ImportAppResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The resource name of the app that was imported.
      +   * 
      + * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * The resource name of the app that was imported.
      +   * 
      + * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Warning messages generated during the import process.
      +   * If errors occur for specific resources, they will not be included in the
      +   * imported app and the error will be mentioned here.
      +   * 
      + * + * repeated string warnings = 2; + * + * @return A list containing the warnings. + */ + java.util.List getWarningsList(); + + /** + * + * + *
      +   * Warning messages generated during the import process.
      +   * If errors occur for specific resources, they will not be included in the
      +   * imported app and the error will be mentioned here.
      +   * 
      + * + * repeated string warnings = 2; + * + * @return The count of warnings. + */ + int getWarningsCount(); + + /** + * + * + *
      +   * Warning messages generated during the import process.
      +   * If errors occur for specific resources, they will not be included in the
      +   * imported app and the error will be mentioned here.
      +   * 
      + * + * repeated string warnings = 2; + * + * @param index The index of the element to return. + * @return The warnings at the given index. + */ + java.lang.String getWarnings(int index); + + /** + * + * + *
      +   * Warning messages generated during the import process.
      +   * If errors occur for specific resources, they will not be included in the
      +   * imported app and the error will be mentioned here.
      +   * 
      + * + * repeated string warnings = 2; + * + * @param index The index of the value to return. + * @return The bytes of the warnings at the given index. + */ + com.google.protobuf.ByteString getWarningsBytes(int index); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/InputAudioConfig.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/InputAudioConfig.java new file mode 100644 index 000000000000..4b8e3ac9d40b --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/InputAudioConfig.java @@ -0,0 +1,871 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * InputAudioConfig configures how the CES agent should interpret the incoming
      + * audio data.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.InputAudioConfig} + */ +@com.google.protobuf.Generated +public final class InputAudioConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.InputAudioConfig) + InputAudioConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InputAudioConfig"); + } + + // Use InputAudioConfig.newBuilder() to construct. + private InputAudioConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InputAudioConfig() { + audioEncoding_ = 0; + noiseSuppressionLevel_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_InputAudioConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_InputAudioConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.InputAudioConfig.class, + com.google.cloud.ces.v1.InputAudioConfig.Builder.class); + } + + public static final int AUDIO_ENCODING_FIELD_NUMBER = 1; + private int audioEncoding_ = 0; + + /** + * + * + *
      +   * Required. The encoding of the input audio data.
      +   * 
      + * + * + * .google.cloud.ces.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for audioEncoding. + */ + @java.lang.Override + public int getAudioEncodingValue() { + return audioEncoding_; + } + + /** + * + * + *
      +   * Required. The encoding of the input audio data.
      +   * 
      + * + * + * .google.cloud.ces.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The audioEncoding. + */ + @java.lang.Override + public com.google.cloud.ces.v1.AudioEncoding getAudioEncoding() { + com.google.cloud.ces.v1.AudioEncoding result = + com.google.cloud.ces.v1.AudioEncoding.forNumber(audioEncoding_); + return result == null ? com.google.cloud.ces.v1.AudioEncoding.UNRECOGNIZED : result; + } + + public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER = 2; + private int sampleRateHertz_ = 0; + + /** + * + * + *
      +   * Required. The sample rate (in Hertz) of the input audio data.
      +   * 
      + * + * int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sampleRateHertz. + */ + @java.lang.Override + public int getSampleRateHertz() { + return sampleRateHertz_; + } + + public static final int NOISE_SUPPRESSION_LEVEL_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object noiseSuppressionLevel_ = ""; + + /** + * + * + *
      +   * Optional. Whether to enable noise suppression on the input audio.
      +   * Available values are "low", "moderate", "high", "very_high".
      +   * 
      + * + * string noise_suppression_level = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The noiseSuppressionLevel. + */ + @java.lang.Override + public java.lang.String getNoiseSuppressionLevel() { + java.lang.Object ref = noiseSuppressionLevel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + noiseSuppressionLevel_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. Whether to enable noise suppression on the input audio.
      +   * Available values are "low", "moderate", "high", "very_high".
      +   * 
      + * + * string noise_suppression_level = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for noiseSuppressionLevel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNoiseSuppressionLevelBytes() { + java.lang.Object ref = noiseSuppressionLevel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + noiseSuppressionLevel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (audioEncoding_ + != com.google.cloud.ces.v1.AudioEncoding.AUDIO_ENCODING_UNSPECIFIED.getNumber()) { + output.writeEnum(1, audioEncoding_); + } + if (sampleRateHertz_ != 0) { + output.writeInt32(2, sampleRateHertz_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(noiseSuppressionLevel_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, noiseSuppressionLevel_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (audioEncoding_ + != com.google.cloud.ces.v1.AudioEncoding.AUDIO_ENCODING_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, audioEncoding_); + } + if (sampleRateHertz_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, sampleRateHertz_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(noiseSuppressionLevel_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, noiseSuppressionLevel_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.InputAudioConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.InputAudioConfig other = (com.google.cloud.ces.v1.InputAudioConfig) obj; + + if (audioEncoding_ != other.audioEncoding_) return false; + if (getSampleRateHertz() != other.getSampleRateHertz()) return false; + if (!getNoiseSuppressionLevel().equals(other.getNoiseSuppressionLevel())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + AUDIO_ENCODING_FIELD_NUMBER; + hash = (53 * hash) + audioEncoding_; + hash = (37 * hash) + SAMPLE_RATE_HERTZ_FIELD_NUMBER; + hash = (53 * hash) + getSampleRateHertz(); + hash = (37 * hash) + NOISE_SUPPRESSION_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + getNoiseSuppressionLevel().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.InputAudioConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.InputAudioConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.InputAudioConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.InputAudioConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.InputAudioConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.InputAudioConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.InputAudioConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.InputAudioConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.InputAudioConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.InputAudioConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.InputAudioConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.InputAudioConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.InputAudioConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * InputAudioConfig configures how the CES agent should interpret the incoming
      +   * audio data.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.InputAudioConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.InputAudioConfig) + com.google.cloud.ces.v1.InputAudioConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_InputAudioConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_InputAudioConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.InputAudioConfig.class, + com.google.cloud.ces.v1.InputAudioConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.InputAudioConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + audioEncoding_ = 0; + sampleRateHertz_ = 0; + noiseSuppressionLevel_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_InputAudioConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.InputAudioConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1.InputAudioConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.InputAudioConfig build() { + com.google.cloud.ces.v1.InputAudioConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.InputAudioConfig buildPartial() { + com.google.cloud.ces.v1.InputAudioConfig result = + new com.google.cloud.ces.v1.InputAudioConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.InputAudioConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.audioEncoding_ = audioEncoding_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sampleRateHertz_ = sampleRateHertz_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.noiseSuppressionLevel_ = noiseSuppressionLevel_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.InputAudioConfig) { + return mergeFrom((com.google.cloud.ces.v1.InputAudioConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.InputAudioConfig other) { + if (other == com.google.cloud.ces.v1.InputAudioConfig.getDefaultInstance()) return this; + if (other.audioEncoding_ != 0) { + setAudioEncodingValue(other.getAudioEncodingValue()); + } + if (other.getSampleRateHertz() != 0) { + setSampleRateHertz(other.getSampleRateHertz()); + } + if (!other.getNoiseSuppressionLevel().isEmpty()) { + noiseSuppressionLevel_ = other.noiseSuppressionLevel_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + audioEncoding_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + sampleRateHertz_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 50: + { + noiseSuppressionLevel_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int audioEncoding_ = 0; + + /** + * + * + *
      +     * Required. The encoding of the input audio data.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for audioEncoding. + */ + @java.lang.Override + public int getAudioEncodingValue() { + return audioEncoding_; + } + + /** + * + * + *
      +     * Required. The encoding of the input audio data.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for audioEncoding to set. + * @return This builder for chaining. + */ + public Builder setAudioEncodingValue(int value) { + audioEncoding_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The encoding of the input audio data.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The audioEncoding. + */ + @java.lang.Override + public com.google.cloud.ces.v1.AudioEncoding getAudioEncoding() { + com.google.cloud.ces.v1.AudioEncoding result = + com.google.cloud.ces.v1.AudioEncoding.forNumber(audioEncoding_); + return result == null ? com.google.cloud.ces.v1.AudioEncoding.UNRECOGNIZED : result; + } + + /** + * + * + *
      +     * Required. The encoding of the input audio data.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The audioEncoding to set. + * @return This builder for chaining. + */ + public Builder setAudioEncoding(com.google.cloud.ces.v1.AudioEncoding value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + audioEncoding_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The encoding of the input audio data.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearAudioEncoding() { + bitField0_ = (bitField0_ & ~0x00000001); + audioEncoding_ = 0; + onChanged(); + return this; + } + + private int sampleRateHertz_; + + /** + * + * + *
      +     * Required. The sample rate (in Hertz) of the input audio data.
      +     * 
      + * + * int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sampleRateHertz. + */ + @java.lang.Override + public int getSampleRateHertz() { + return sampleRateHertz_; + } + + /** + * + * + *
      +     * Required. The sample rate (in Hertz) of the input audio data.
      +     * 
      + * + * int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The sampleRateHertz to set. + * @return This builder for chaining. + */ + public Builder setSampleRateHertz(int value) { + + sampleRateHertz_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The sample rate (in Hertz) of the input audio data.
      +     * 
      + * + * int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSampleRateHertz() { + bitField0_ = (bitField0_ & ~0x00000002); + sampleRateHertz_ = 0; + onChanged(); + return this; + } + + private java.lang.Object noiseSuppressionLevel_ = ""; + + /** + * + * + *
      +     * Optional. Whether to enable noise suppression on the input audio.
      +     * Available values are "low", "moderate", "high", "very_high".
      +     * 
      + * + * string noise_suppression_level = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The noiseSuppressionLevel. + */ + public java.lang.String getNoiseSuppressionLevel() { + java.lang.Object ref = noiseSuppressionLevel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + noiseSuppressionLevel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Whether to enable noise suppression on the input audio.
      +     * Available values are "low", "moderate", "high", "very_high".
      +     * 
      + * + * string noise_suppression_level = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for noiseSuppressionLevel. + */ + public com.google.protobuf.ByteString getNoiseSuppressionLevelBytes() { + java.lang.Object ref = noiseSuppressionLevel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + noiseSuppressionLevel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Whether to enable noise suppression on the input audio.
      +     * Available values are "low", "moderate", "high", "very_high".
      +     * 
      + * + * string noise_suppression_level = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The noiseSuppressionLevel to set. + * @return This builder for chaining. + */ + public Builder setNoiseSuppressionLevel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + noiseSuppressionLevel_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Whether to enable noise suppression on the input audio.
      +     * Available values are "low", "moderate", "high", "very_high".
      +     * 
      + * + * string noise_suppression_level = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNoiseSuppressionLevel() { + noiseSuppressionLevel_ = getDefaultInstance().getNoiseSuppressionLevel(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Whether to enable noise suppression on the input audio.
      +     * Available values are "low", "moderate", "high", "very_high".
      +     * 
      + * + * string noise_suppression_level = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for noiseSuppressionLevel to set. + * @return This builder for chaining. + */ + public Builder setNoiseSuppressionLevelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + noiseSuppressionLevel_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.InputAudioConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.InputAudioConfig) + private static final com.google.cloud.ces.v1.InputAudioConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.InputAudioConfig(); + } + + public static com.google.cloud.ces.v1.InputAudioConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InputAudioConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.InputAudioConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/InputAudioConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/InputAudioConfigOrBuilder.java new file mode 100644 index 000000000000..8271d28b2447 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/InputAudioConfigOrBuilder.java @@ -0,0 +1,99 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface InputAudioConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.InputAudioConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The encoding of the input audio data.
      +   * 
      + * + * + * .google.cloud.ces.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for audioEncoding. + */ + int getAudioEncodingValue(); + + /** + * + * + *
      +   * Required. The encoding of the input audio data.
      +   * 
      + * + * + * .google.cloud.ces.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The audioEncoding. + */ + com.google.cloud.ces.v1.AudioEncoding getAudioEncoding(); + + /** + * + * + *
      +   * Required. The sample rate (in Hertz) of the input audio data.
      +   * 
      + * + * int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sampleRateHertz. + */ + int getSampleRateHertz(); + + /** + * + * + *
      +   * Optional. Whether to enable noise suppression on the input audio.
      +   * Available values are "low", "moderate", "high", "very_high".
      +   * 
      + * + * string noise_suppression_level = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The noiseSuppressionLevel. + */ + java.lang.String getNoiseSuppressionLevel(); + + /** + * + * + *
      +   * Optional. Whether to enable noise suppression on the input audio.
      +   * Available values are "low", "moderate", "high", "very_high".
      +   * 
      + * + * string noise_suppression_level = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for noiseSuppressionLevel. + */ + com.google.protobuf.ByteString getNoiseSuppressionLevelBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/InterruptionSignal.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/InterruptionSignal.java new file mode 100644 index 000000000000..e29ae5b55844 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/InterruptionSignal.java @@ -0,0 +1,506 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Indicates the agent's audio response has been interrupted. The client should
      + * immediately stop any current audio playback (e.g., due to user barge-in or
      + * a new agent response being generated).
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.InterruptionSignal} + */ +@com.google.protobuf.Generated +public final class InterruptionSignal extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.InterruptionSignal) + InterruptionSignalOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InterruptionSignal"); + } + + // Use InterruptionSignal.newBuilder() to construct. + private InterruptionSignal(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InterruptionSignal() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_InterruptionSignal_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_InterruptionSignal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.InterruptionSignal.class, + com.google.cloud.ces.v1.InterruptionSignal.Builder.class); + } + + public static final int BARGE_IN_FIELD_NUMBER = 1; + private boolean bargeIn_ = false; + + /** + * + * + *
      +   * Whether the interruption is caused by a user barge-in event.
      +   * 
      + * + * bool barge_in = 1; + * + * @return The bargeIn. + */ + @java.lang.Override + public boolean getBargeIn() { + return bargeIn_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (bargeIn_ != false) { + output.writeBool(1, bargeIn_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (bargeIn_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, bargeIn_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.InterruptionSignal)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.InterruptionSignal other = + (com.google.cloud.ces.v1.InterruptionSignal) obj; + + if (getBargeIn() != other.getBargeIn()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BARGE_IN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBargeIn()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.InterruptionSignal parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.InterruptionSignal parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.InterruptionSignal parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.InterruptionSignal parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.InterruptionSignal parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.InterruptionSignal parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.InterruptionSignal parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.InterruptionSignal parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.InterruptionSignal parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.InterruptionSignal parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.InterruptionSignal parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.InterruptionSignal parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.InterruptionSignal prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Indicates the agent's audio response has been interrupted. The client should
      +   * immediately stop any current audio playback (e.g., due to user barge-in or
      +   * a new agent response being generated).
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.InterruptionSignal} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.InterruptionSignal) + com.google.cloud.ces.v1.InterruptionSignalOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_InterruptionSignal_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_InterruptionSignal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.InterruptionSignal.class, + com.google.cloud.ces.v1.InterruptionSignal.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.InterruptionSignal.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bargeIn_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_InterruptionSignal_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.InterruptionSignal getDefaultInstanceForType() { + return com.google.cloud.ces.v1.InterruptionSignal.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.InterruptionSignal build() { + com.google.cloud.ces.v1.InterruptionSignal result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.InterruptionSignal buildPartial() { + com.google.cloud.ces.v1.InterruptionSignal result = + new com.google.cloud.ces.v1.InterruptionSignal(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.InterruptionSignal result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.bargeIn_ = bargeIn_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.InterruptionSignal) { + return mergeFrom((com.google.cloud.ces.v1.InterruptionSignal) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.InterruptionSignal other) { + if (other == com.google.cloud.ces.v1.InterruptionSignal.getDefaultInstance()) return this; + if (other.getBargeIn() != false) { + setBargeIn(other.getBargeIn()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + bargeIn_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean bargeIn_; + + /** + * + * + *
      +     * Whether the interruption is caused by a user barge-in event.
      +     * 
      + * + * bool barge_in = 1; + * + * @return The bargeIn. + */ + @java.lang.Override + public boolean getBargeIn() { + return bargeIn_; + } + + /** + * + * + *
      +     * Whether the interruption is caused by a user barge-in event.
      +     * 
      + * + * bool barge_in = 1; + * + * @param value The bargeIn to set. + * @return This builder for chaining. + */ + public Builder setBargeIn(boolean value) { + + bargeIn_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Whether the interruption is caused by a user barge-in event.
      +     * 
      + * + * bool barge_in = 1; + * + * @return This builder for chaining. + */ + public Builder clearBargeIn() { + bitField0_ = (bitField0_ & ~0x00000001); + bargeIn_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.InterruptionSignal) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.InterruptionSignal) + private static final com.google.cloud.ces.v1.InterruptionSignal DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.InterruptionSignal(); + } + + public static com.google.cloud.ces.v1.InterruptionSignal getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InterruptionSignal parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.InterruptionSignal getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/InterruptionSignalOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/InterruptionSignalOrBuilder.java new file mode 100644 index 000000000000..e29e42a75b03 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/InterruptionSignalOrBuilder.java @@ -0,0 +1,41 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface InterruptionSignalOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.InterruptionSignal) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Whether the interruption is caused by a user barge-in event.
      +   * 
      + * + * bool barge_in = 1; + * + * @return The bargeIn. + */ + boolean getBargeIn(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LanguageSettings.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LanguageSettings.java new file mode 100644 index 000000000000..1cb0bf940bc5 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LanguageSettings.java @@ -0,0 +1,1266 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Language settings of the app.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.LanguageSettings} + */ +@com.google.protobuf.Generated +public final class LanguageSettings extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.LanguageSettings) + LanguageSettingsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "LanguageSettings"); + } + + // Use LanguageSettings.newBuilder() to construct. + private LanguageSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private LanguageSettings() { + defaultLanguageCode_ = ""; + supportedLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + fallbackAction_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_LanguageSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_LanguageSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.LanguageSettings.class, + com.google.cloud.ces.v1.LanguageSettings.Builder.class); + } + + public static final int DEFAULT_LANGUAGE_CODE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultLanguageCode_ = ""; + + /** + * + * + *
      +   * Optional. The default language code of the app.
      +   * 
      + * + * string default_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultLanguageCode. + */ + @java.lang.Override + public java.lang.String getDefaultLanguageCode() { + java.lang.Object ref = defaultLanguageCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultLanguageCode_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The default language code of the app.
      +   * 
      + * + * string default_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultLanguageCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultLanguageCodeBytes() { + java.lang.Object ref = defaultLanguageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultLanguageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUPPORTED_LANGUAGE_CODES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList supportedLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +   * Optional. List of languages codes supported by the app, in addition to the
      +   * `default_language_code`.
      +   * 
      + * + * repeated string supported_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the supportedLanguageCodes. + */ + public com.google.protobuf.ProtocolStringList getSupportedLanguageCodesList() { + return supportedLanguageCodes_; + } + + /** + * + * + *
      +   * Optional. List of languages codes supported by the app, in addition to the
      +   * `default_language_code`.
      +   * 
      + * + * repeated string supported_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of supportedLanguageCodes. + */ + public int getSupportedLanguageCodesCount() { + return supportedLanguageCodes_.size(); + } + + /** + * + * + *
      +   * Optional. List of languages codes supported by the app, in addition to the
      +   * `default_language_code`.
      +   * 
      + * + * repeated string supported_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The supportedLanguageCodes at the given index. + */ + public java.lang.String getSupportedLanguageCodes(int index) { + return supportedLanguageCodes_.get(index); + } + + /** + * + * + *
      +   * Optional. List of languages codes supported by the app, in addition to the
      +   * `default_language_code`.
      +   * 
      + * + * repeated string supported_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the supportedLanguageCodes at the given index. + */ + public com.google.protobuf.ByteString getSupportedLanguageCodesBytes(int index) { + return supportedLanguageCodes_.getByteString(index); + } + + public static final int ENABLE_MULTILINGUAL_SUPPORT_FIELD_NUMBER = 3; + private boolean enableMultilingualSupport_ = false; + + /** + * + * + *
      +   * Optional. Enables multilingual support. If true, agents in the app will use
      +   * pre-built instructions to improve handling of multilingual input.
      +   * 
      + * + * bool enable_multilingual_support = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableMultilingualSupport. + */ + @java.lang.Override + public boolean getEnableMultilingualSupport() { + return enableMultilingualSupport_; + } + + public static final int FALLBACK_ACTION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object fallbackAction_ = ""; + + /** + * + * + *
      +   * Optional. The action to perform when an agent receives input in an
      +   * unsupported language.
      +   *
      +   * This can be a predefined action or a custom tool call.
      +   * Valid values are:
      +   * - A tool's full resource name, which triggers a specific tool execution.
      +   * - A predefined system action, such as "escalate" or "exit", which triggers
      +   * an [EndSession][google.cloud.ces.v1.EndSession] signal with corresponding
      +   * [metadata][google.cloud.ces.v1.EndSession.metadata] to terminate the
      +   * conversation.
      +   * 
      + * + * string fallback_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fallbackAction. + */ + @java.lang.Override + public java.lang.String getFallbackAction() { + java.lang.Object ref = fallbackAction_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fallbackAction_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The action to perform when an agent receives input in an
      +   * unsupported language.
      +   *
      +   * This can be a predefined action or a custom tool call.
      +   * Valid values are:
      +   * - A tool's full resource name, which triggers a specific tool execution.
      +   * - A predefined system action, such as "escalate" or "exit", which triggers
      +   * an [EndSession][google.cloud.ces.v1.EndSession] signal with corresponding
      +   * [metadata][google.cloud.ces.v1.EndSession.metadata] to terminate the
      +   * conversation.
      +   * 
      + * + * string fallback_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fallbackAction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFallbackActionBytes() { + java.lang.Object ref = fallbackAction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fallbackAction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultLanguageCode_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, defaultLanguageCode_); + } + for (int i = 0; i < supportedLanguageCodes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 2, supportedLanguageCodes_.getRaw(i)); + } + if (enableMultilingualSupport_ != false) { + output.writeBool(3, enableMultilingualSupport_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fallbackAction_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, fallbackAction_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultLanguageCode_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, defaultLanguageCode_); + } + { + int dataSize = 0; + for (int i = 0; i < supportedLanguageCodes_.size(); i++) { + dataSize += computeStringSizeNoTag(supportedLanguageCodes_.getRaw(i)); + } + size += dataSize; + size += 1 * getSupportedLanguageCodesList().size(); + } + if (enableMultilingualSupport_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableMultilingualSupport_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fallbackAction_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, fallbackAction_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.LanguageSettings)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.LanguageSettings other = (com.google.cloud.ces.v1.LanguageSettings) obj; + + if (!getDefaultLanguageCode().equals(other.getDefaultLanguageCode())) return false; + if (!getSupportedLanguageCodesList().equals(other.getSupportedLanguageCodesList())) + return false; + if (getEnableMultilingualSupport() != other.getEnableMultilingualSupport()) return false; + if (!getFallbackAction().equals(other.getFallbackAction())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DEFAULT_LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultLanguageCode().hashCode(); + if (getSupportedLanguageCodesCount() > 0) { + hash = (37 * hash) + SUPPORTED_LANGUAGE_CODES_FIELD_NUMBER; + hash = (53 * hash) + getSupportedLanguageCodesList().hashCode(); + } + hash = (37 * hash) + ENABLE_MULTILINGUAL_SUPPORT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableMultilingualSupport()); + hash = (37 * hash) + FALLBACK_ACTION_FIELD_NUMBER; + hash = (53 * hash) + getFallbackAction().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.LanguageSettings parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.LanguageSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.LanguageSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.LanguageSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.LanguageSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.LanguageSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.LanguageSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.LanguageSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.LanguageSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.LanguageSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.LanguageSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.LanguageSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.LanguageSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Language settings of the app.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.LanguageSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.LanguageSettings) + com.google.cloud.ces.v1.LanguageSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_LanguageSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_LanguageSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.LanguageSettings.class, + com.google.cloud.ces.v1.LanguageSettings.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.LanguageSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + defaultLanguageCode_ = ""; + supportedLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + enableMultilingualSupport_ = false; + fallbackAction_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_LanguageSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.LanguageSettings getDefaultInstanceForType() { + return com.google.cloud.ces.v1.LanguageSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.LanguageSettings build() { + com.google.cloud.ces.v1.LanguageSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.LanguageSettings buildPartial() { + com.google.cloud.ces.v1.LanguageSettings result = + new com.google.cloud.ces.v1.LanguageSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.LanguageSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.defaultLanguageCode_ = defaultLanguageCode_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + supportedLanguageCodes_.makeImmutable(); + result.supportedLanguageCodes_ = supportedLanguageCodes_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enableMultilingualSupport_ = enableMultilingualSupport_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.fallbackAction_ = fallbackAction_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.LanguageSettings) { + return mergeFrom((com.google.cloud.ces.v1.LanguageSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.LanguageSettings other) { + if (other == com.google.cloud.ces.v1.LanguageSettings.getDefaultInstance()) return this; + if (!other.getDefaultLanguageCode().isEmpty()) { + defaultLanguageCode_ = other.defaultLanguageCode_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.supportedLanguageCodes_.isEmpty()) { + if (supportedLanguageCodes_.isEmpty()) { + supportedLanguageCodes_ = other.supportedLanguageCodes_; + bitField0_ |= 0x00000002; + } else { + ensureSupportedLanguageCodesIsMutable(); + supportedLanguageCodes_.addAll(other.supportedLanguageCodes_); + } + onChanged(); + } + if (other.getEnableMultilingualSupport() != false) { + setEnableMultilingualSupport(other.getEnableMultilingualSupport()); + } + if (!other.getFallbackAction().isEmpty()) { + fallbackAction_ = other.fallbackAction_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + defaultLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSupportedLanguageCodesIsMutable(); + supportedLanguageCodes_.add(s); + break; + } // case 18 + case 24: + { + enableMultilingualSupport_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + fallbackAction_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object defaultLanguageCode_ = ""; + + /** + * + * + *
      +     * Optional. The default language code of the app.
      +     * 
      + * + * string default_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultLanguageCode. + */ + public java.lang.String getDefaultLanguageCode() { + java.lang.Object ref = defaultLanguageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultLanguageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The default language code of the app.
      +     * 
      + * + * string default_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultLanguageCode. + */ + public com.google.protobuf.ByteString getDefaultLanguageCodeBytes() { + java.lang.Object ref = defaultLanguageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultLanguageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The default language code of the app.
      +     * 
      + * + * string default_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The defaultLanguageCode to set. + * @return This builder for chaining. + */ + public Builder setDefaultLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultLanguageCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The default language code of the app.
      +     * 
      + * + * string default_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDefaultLanguageCode() { + defaultLanguageCode_ = getDefaultInstance().getDefaultLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The default language code of the app.
      +     * 
      + * + * string default_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for defaultLanguageCode to set. + * @return This builder for chaining. + */ + public Builder setDefaultLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultLanguageCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList supportedLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureSupportedLanguageCodesIsMutable() { + if (!supportedLanguageCodes_.isModifiable()) { + supportedLanguageCodes_ = + new com.google.protobuf.LazyStringArrayList(supportedLanguageCodes_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
      +     * Optional. List of languages codes supported by the app, in addition to the
      +     * `default_language_code`.
      +     * 
      + * + * repeated string supported_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the supportedLanguageCodes. + */ + public com.google.protobuf.ProtocolStringList getSupportedLanguageCodesList() { + supportedLanguageCodes_.makeImmutable(); + return supportedLanguageCodes_; + } + + /** + * + * + *
      +     * Optional. List of languages codes supported by the app, in addition to the
      +     * `default_language_code`.
      +     * 
      + * + * repeated string supported_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of supportedLanguageCodes. + */ + public int getSupportedLanguageCodesCount() { + return supportedLanguageCodes_.size(); + } + + /** + * + * + *
      +     * Optional. List of languages codes supported by the app, in addition to the
      +     * `default_language_code`.
      +     * 
      + * + * repeated string supported_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The supportedLanguageCodes at the given index. + */ + public java.lang.String getSupportedLanguageCodes(int index) { + return supportedLanguageCodes_.get(index); + } + + /** + * + * + *
      +     * Optional. List of languages codes supported by the app, in addition to the
      +     * `default_language_code`.
      +     * 
      + * + * repeated string supported_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the supportedLanguageCodes at the given index. + */ + public com.google.protobuf.ByteString getSupportedLanguageCodesBytes(int index) { + return supportedLanguageCodes_.getByteString(index); + } + + /** + * + * + *
      +     * Optional. List of languages codes supported by the app, in addition to the
      +     * `default_language_code`.
      +     * 
      + * + * repeated string supported_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The supportedLanguageCodes to set. + * @return This builder for chaining. + */ + public Builder setSupportedLanguageCodes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSupportedLanguageCodesIsMutable(); + supportedLanguageCodes_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. List of languages codes supported by the app, in addition to the
      +     * `default_language_code`.
      +     * 
      + * + * repeated string supported_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The supportedLanguageCodes to add. + * @return This builder for chaining. + */ + public Builder addSupportedLanguageCodes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSupportedLanguageCodesIsMutable(); + supportedLanguageCodes_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. List of languages codes supported by the app, in addition to the
      +     * `default_language_code`.
      +     * 
      + * + * repeated string supported_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The supportedLanguageCodes to add. + * @return This builder for chaining. + */ + public Builder addAllSupportedLanguageCodes(java.lang.Iterable values) { + ensureSupportedLanguageCodesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, supportedLanguageCodes_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. List of languages codes supported by the app, in addition to the
      +     * `default_language_code`.
      +     * 
      + * + * repeated string supported_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSupportedLanguageCodes() { + supportedLanguageCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. List of languages codes supported by the app, in addition to the
      +     * `default_language_code`.
      +     * 
      + * + * repeated string supported_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the supportedLanguageCodes to add. + * @return This builder for chaining. + */ + public Builder addSupportedLanguageCodesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSupportedLanguageCodesIsMutable(); + supportedLanguageCodes_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean enableMultilingualSupport_; + + /** + * + * + *
      +     * Optional. Enables multilingual support. If true, agents in the app will use
      +     * pre-built instructions to improve handling of multilingual input.
      +     * 
      + * + * bool enable_multilingual_support = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableMultilingualSupport. + */ + @java.lang.Override + public boolean getEnableMultilingualSupport() { + return enableMultilingualSupport_; + } + + /** + * + * + *
      +     * Optional. Enables multilingual support. If true, agents in the app will use
      +     * pre-built instructions to improve handling of multilingual input.
      +     * 
      + * + * bool enable_multilingual_support = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableMultilingualSupport to set. + * @return This builder for chaining. + */ + public Builder setEnableMultilingualSupport(boolean value) { + + enableMultilingualSupport_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Enables multilingual support. If true, agents in the app will use
      +     * pre-built instructions to improve handling of multilingual input.
      +     * 
      + * + * bool enable_multilingual_support = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnableMultilingualSupport() { + bitField0_ = (bitField0_ & ~0x00000004); + enableMultilingualSupport_ = false; + onChanged(); + return this; + } + + private java.lang.Object fallbackAction_ = ""; + + /** + * + * + *
      +     * Optional. The action to perform when an agent receives input in an
      +     * unsupported language.
      +     *
      +     * This can be a predefined action or a custom tool call.
      +     * Valid values are:
      +     * - A tool's full resource name, which triggers a specific tool execution.
      +     * - A predefined system action, such as "escalate" or "exit", which triggers
      +     * an [EndSession][google.cloud.ces.v1.EndSession] signal with corresponding
      +     * [metadata][google.cloud.ces.v1.EndSession.metadata] to terminate the
      +     * conversation.
      +     * 
      + * + * string fallback_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fallbackAction. + */ + public java.lang.String getFallbackAction() { + java.lang.Object ref = fallbackAction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fallbackAction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The action to perform when an agent receives input in an
      +     * unsupported language.
      +     *
      +     * This can be a predefined action or a custom tool call.
      +     * Valid values are:
      +     * - A tool's full resource name, which triggers a specific tool execution.
      +     * - A predefined system action, such as "escalate" or "exit", which triggers
      +     * an [EndSession][google.cloud.ces.v1.EndSession] signal with corresponding
      +     * [metadata][google.cloud.ces.v1.EndSession.metadata] to terminate the
      +     * conversation.
      +     * 
      + * + * string fallback_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fallbackAction. + */ + public com.google.protobuf.ByteString getFallbackActionBytes() { + java.lang.Object ref = fallbackAction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fallbackAction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The action to perform when an agent receives input in an
      +     * unsupported language.
      +     *
      +     * This can be a predefined action or a custom tool call.
      +     * Valid values are:
      +     * - A tool's full resource name, which triggers a specific tool execution.
      +     * - A predefined system action, such as "escalate" or "exit", which triggers
      +     * an [EndSession][google.cloud.ces.v1.EndSession] signal with corresponding
      +     * [metadata][google.cloud.ces.v1.EndSession.metadata] to terminate the
      +     * conversation.
      +     * 
      + * + * string fallback_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The fallbackAction to set. + * @return This builder for chaining. + */ + public Builder setFallbackAction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fallbackAction_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The action to perform when an agent receives input in an
      +     * unsupported language.
      +     *
      +     * This can be a predefined action or a custom tool call.
      +     * Valid values are:
      +     * - A tool's full resource name, which triggers a specific tool execution.
      +     * - A predefined system action, such as "escalate" or "exit", which triggers
      +     * an [EndSession][google.cloud.ces.v1.EndSession] signal with corresponding
      +     * [metadata][google.cloud.ces.v1.EndSession.metadata] to terminate the
      +     * conversation.
      +     * 
      + * + * string fallback_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFallbackAction() { + fallbackAction_ = getDefaultInstance().getFallbackAction(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The action to perform when an agent receives input in an
      +     * unsupported language.
      +     *
      +     * This can be a predefined action or a custom tool call.
      +     * Valid values are:
      +     * - A tool's full resource name, which triggers a specific tool execution.
      +     * - A predefined system action, such as "escalate" or "exit", which triggers
      +     * an [EndSession][google.cloud.ces.v1.EndSession] signal with corresponding
      +     * [metadata][google.cloud.ces.v1.EndSession.metadata] to terminate the
      +     * conversation.
      +     * 
      + * + * string fallback_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for fallbackAction to set. + * @return This builder for chaining. + */ + public Builder setFallbackActionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fallbackAction_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.LanguageSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.LanguageSettings) + private static final com.google.cloud.ces.v1.LanguageSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.LanguageSettings(); + } + + public static com.google.cloud.ces.v1.LanguageSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LanguageSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.LanguageSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LanguageSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LanguageSettingsOrBuilder.java new file mode 100644 index 000000000000..6a1731f88dee --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LanguageSettingsOrBuilder.java @@ -0,0 +1,174 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface LanguageSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.LanguageSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. The default language code of the app.
      +   * 
      + * + * string default_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultLanguageCode. + */ + java.lang.String getDefaultLanguageCode(); + + /** + * + * + *
      +   * Optional. The default language code of the app.
      +   * 
      + * + * string default_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultLanguageCode. + */ + com.google.protobuf.ByteString getDefaultLanguageCodeBytes(); + + /** + * + * + *
      +   * Optional. List of languages codes supported by the app, in addition to the
      +   * `default_language_code`.
      +   * 
      + * + * repeated string supported_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the supportedLanguageCodes. + */ + java.util.List getSupportedLanguageCodesList(); + + /** + * + * + *
      +   * Optional. List of languages codes supported by the app, in addition to the
      +   * `default_language_code`.
      +   * 
      + * + * repeated string supported_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of supportedLanguageCodes. + */ + int getSupportedLanguageCodesCount(); + + /** + * + * + *
      +   * Optional. List of languages codes supported by the app, in addition to the
      +   * `default_language_code`.
      +   * 
      + * + * repeated string supported_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The supportedLanguageCodes at the given index. + */ + java.lang.String getSupportedLanguageCodes(int index); + + /** + * + * + *
      +   * Optional. List of languages codes supported by the app, in addition to the
      +   * `default_language_code`.
      +   * 
      + * + * repeated string supported_language_codes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the supportedLanguageCodes at the given index. + */ + com.google.protobuf.ByteString getSupportedLanguageCodesBytes(int index); + + /** + * + * + *
      +   * Optional. Enables multilingual support. If true, agents in the app will use
      +   * pre-built instructions to improve handling of multilingual input.
      +   * 
      + * + * bool enable_multilingual_support = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableMultilingualSupport. + */ + boolean getEnableMultilingualSupport(); + + /** + * + * + *
      +   * Optional. The action to perform when an agent receives input in an
      +   * unsupported language.
      +   *
      +   * This can be a predefined action or a custom tool call.
      +   * Valid values are:
      +   * - A tool's full resource name, which triggers a specific tool execution.
      +   * - A predefined system action, such as "escalate" or "exit", which triggers
      +   * an [EndSession][google.cloud.ces.v1.EndSession] signal with corresponding
      +   * [metadata][google.cloud.ces.v1.EndSession.metadata] to terminate the
      +   * conversation.
      +   * 
      + * + * string fallback_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fallbackAction. + */ + java.lang.String getFallbackAction(); + + /** + * + * + *
      +   * Optional. The action to perform when an agent receives input in an
      +   * unsupported language.
      +   *
      +   * This can be a predefined action or a custom tool call.
      +   * Valid values are:
      +   * - A tool's full resource name, which triggers a specific tool execution.
      +   * - A predefined system action, such as "escalate" or "exit", which triggers
      +   * an [EndSession][google.cloud.ces.v1.EndSession] signal with corresponding
      +   * [metadata][google.cloud.ces.v1.EndSession.metadata] to terminate the
      +   * conversation.
      +   * 
      + * + * string fallback_action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fallbackAction. + */ + com.google.protobuf.ByteString getFallbackActionBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAgentsRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAgentsRequest.java new file mode 100644 index 000000000000..0aca0b329a2a --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAgentsRequest.java @@ -0,0 +1,1321 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.ListAgents][google.cloud.ces.v1.AgentService.ListAgents].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListAgentsRequest} + */ +@com.google.protobuf.Generated +public final class ListAgentsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ListAgentsRequest) + ListAgentsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListAgentsRequest"); + } + + // Use ListAgentsRequest.newBuilder() to construct. + private ListAgentsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAgentsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListAgentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListAgentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListAgentsRequest.class, + com.google.cloud.ces.v1.ListAgentsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the app to list agents from.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the app to list agents from.
      +   * 
      + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
      +   * Optional. Requested page size. Server may return fewer items than
      +   * requested. If unspecified, server will pick an appropriate default.
      +   * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListAgentsResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListAgents][google.cloud.ces.v1.AgentService.ListAgents]
      +   * call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListAgentsResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListAgents][google.cloud.ces.v1.AgentService.ListAgents]
      +   * call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the agents.
      +   * See https://google.aip.dev/160 for more details.
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the agents.
      +   * See https://google.aip.dev/160 for more details.
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ListAgentsRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ListAgentsRequest other = + (com.google.cloud.ces.v1.ListAgentsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ListAgentsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListAgentsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListAgentsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListAgentsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListAgentsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListAgentsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListAgentsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListAgentsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListAgentsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListAgentsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListAgentsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListAgentsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ListAgentsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.ListAgents][google.cloud.ces.v1.AgentService.ListAgents].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListAgentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ListAgentsRequest) + com.google.cloud.ces.v1.ListAgentsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListAgentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListAgentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListAgentsRequest.class, + com.google.cloud.ces.v1.ListAgentsRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ListAgentsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListAgentsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListAgentsRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ListAgentsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListAgentsRequest build() { + com.google.cloud.ces.v1.ListAgentsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListAgentsRequest buildPartial() { + com.google.cloud.ces.v1.ListAgentsRequest result = + new com.google.cloud.ces.v1.ListAgentsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ListAgentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ListAgentsRequest) { + return mergeFrom((com.google.cloud.ces.v1.ListAgentsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ListAgentsRequest other) { + if (other == com.google.cloud.ces.v1.ListAgentsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the app to list agents from.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to list agents from.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to list agents from.
      +     * 
      + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to list agents from.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to list agents from.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
      +     * Optional. Requested page size. Server may return fewer items than
      +     * requested. If unspecified, server will pick an appropriate default.
      +     * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
      +     * Optional. Requested page size. Server may return fewer items than
      +     * requested. If unspecified, server will pick an appropriate default.
      +     * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Requested page size. Server may return fewer items than
      +     * requested. If unspecified, server will pick an appropriate default.
      +     * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListAgentsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListAgents][google.cloud.ces.v1.AgentService.ListAgents]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListAgentsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListAgents][google.cloud.ces.v1.AgentService.ListAgents]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListAgentsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListAgents][google.cloud.ces.v1.AgentService.ListAgents]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListAgentsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListAgents][google.cloud.ces.v1.AgentService.ListAgents]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListAgentsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListAgents][google.cloud.ces.v1.AgentService.ListAgents]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the agents.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the agents.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the agents.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the agents.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the agents.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ListAgentsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ListAgentsRequest) + private static final com.google.cloud.ces.v1.ListAgentsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ListAgentsRequest(); + } + + public static com.google.cloud.ces.v1.ListAgentsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAgentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListAgentsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAgentsRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAgentsRequestOrBuilder.java new file mode 100644 index 000000000000..c114ef86b81e --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAgentsRequestOrBuilder.java @@ -0,0 +1,162 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ListAgentsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ListAgentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the app to list agents from.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
      +   * Required. The resource name of the app to list agents from.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Optional. Requested page size. Server may return fewer items than
      +   * requested. If unspecified, server will pick an appropriate default.
      +   * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListAgentsResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListAgents][google.cloud.ces.v1.AgentService.ListAgents]
      +   * call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListAgentsResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListAgents][google.cloud.ces.v1.AgentService.ListAgents]
      +   * call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the agents.
      +   * See https://google.aip.dev/160 for more details.
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the agents.
      +   * See https://google.aip.dev/160 for more details.
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAgentsResponse.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAgentsResponse.java new file mode 100644 index 000000000000..1ebda68faeb5 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAgentsResponse.java @@ -0,0 +1,1127 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Response message for
      + * [AgentService.ListAgents][google.cloud.ces.v1.AgentService.ListAgents].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListAgentsResponse} + */ +@com.google.protobuf.Generated +public final class ListAgentsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ListAgentsResponse) + ListAgentsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListAgentsResponse"); + } + + // Use ListAgentsResponse.newBuilder() to construct. + private ListAgentsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAgentsResponse() { + agents_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListAgentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListAgentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListAgentsResponse.class, + com.google.cloud.ces.v1.ListAgentsResponse.Builder.class); + } + + public static final int AGENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List agents_; + + /** + * + * + *
      +   * The list of agents.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 1; + */ + @java.lang.Override + public java.util.List getAgentsList() { + return agents_; + } + + /** + * + * + *
      +   * The list of agents.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 1; + */ + @java.lang.Override + public java.util.List getAgentsOrBuilderList() { + return agents_; + } + + /** + * + * + *
      +   * The list of agents.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 1; + */ + @java.lang.Override + public int getAgentsCount() { + return agents_.size(); + } + + /** + * + * + *
      +   * The list of agents.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 1; + */ + @java.lang.Override + public com.google.cloud.ces.v1.Agent getAgents(int index) { + return agents_.get(index); + } + + /** + * + * + *
      +   * The list of agents.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 1; + */ + @java.lang.Override + public com.google.cloud.ces.v1.AgentOrBuilder getAgentsOrBuilder(int index) { + return agents_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListAgentsRequest.page_token][google.cloud.ces.v1.ListAgentsRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListAgentsRequest.page_token][google.cloud.ces.v1.ListAgentsRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < agents_.size(); i++) { + output.writeMessage(1, agents_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < agents_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, agents_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ListAgentsResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ListAgentsResponse other = + (com.google.cloud.ces.v1.ListAgentsResponse) obj; + + if (!getAgentsList().equals(other.getAgentsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAgentsCount() > 0) { + hash = (37 * hash) + AGENTS_FIELD_NUMBER; + hash = (53 * hash) + getAgentsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ListAgentsResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListAgentsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListAgentsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListAgentsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListAgentsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListAgentsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListAgentsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListAgentsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListAgentsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListAgentsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListAgentsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListAgentsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ListAgentsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Response message for
      +   * [AgentService.ListAgents][google.cloud.ces.v1.AgentService.ListAgents].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListAgentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ListAgentsResponse) + com.google.cloud.ces.v1.ListAgentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListAgentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListAgentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListAgentsResponse.class, + com.google.cloud.ces.v1.ListAgentsResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ListAgentsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (agentsBuilder_ == null) { + agents_ = java.util.Collections.emptyList(); + } else { + agents_ = null; + agentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListAgentsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListAgentsResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ListAgentsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListAgentsResponse build() { + com.google.cloud.ces.v1.ListAgentsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListAgentsResponse buildPartial() { + com.google.cloud.ces.v1.ListAgentsResponse result = + new com.google.cloud.ces.v1.ListAgentsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1.ListAgentsResponse result) { + if (agentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + agents_ = java.util.Collections.unmodifiableList(agents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.agents_ = agents_; + } else { + result.agents_ = agentsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.ListAgentsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ListAgentsResponse) { + return mergeFrom((com.google.cloud.ces.v1.ListAgentsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ListAgentsResponse other) { + if (other == com.google.cloud.ces.v1.ListAgentsResponse.getDefaultInstance()) return this; + if (agentsBuilder_ == null) { + if (!other.agents_.isEmpty()) { + if (agents_.isEmpty()) { + agents_ = other.agents_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAgentsIsMutable(); + agents_.addAll(other.agents_); + } + onChanged(); + } + } else { + if (!other.agents_.isEmpty()) { + if (agentsBuilder_.isEmpty()) { + agentsBuilder_.dispose(); + agentsBuilder_ = null; + agents_ = other.agents_; + bitField0_ = (bitField0_ & ~0x00000001); + agentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAgentsFieldBuilder() + : null; + } else { + agentsBuilder_.addAllMessages(other.agents_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.ces.v1.Agent m = + input.readMessage(com.google.cloud.ces.v1.Agent.parser(), extensionRegistry); + if (agentsBuilder_ == null) { + ensureAgentsIsMutable(); + agents_.add(m); + } else { + agentsBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List agents_ = + java.util.Collections.emptyList(); + + private void ensureAgentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + agents_ = new java.util.ArrayList(agents_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Agent, + com.google.cloud.ces.v1.Agent.Builder, + com.google.cloud.ces.v1.AgentOrBuilder> + agentsBuilder_; + + /** + * + * + *
      +     * The list of agents.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 1; + */ + public java.util.List getAgentsList() { + if (agentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(agents_); + } else { + return agentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * The list of agents.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 1; + */ + public int getAgentsCount() { + if (agentsBuilder_ == null) { + return agents_.size(); + } else { + return agentsBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * The list of agents.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 1; + */ + public com.google.cloud.ces.v1.Agent getAgents(int index) { + if (agentsBuilder_ == null) { + return agents_.get(index); + } else { + return agentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * The list of agents.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 1; + */ + public Builder setAgents(int index, com.google.cloud.ces.v1.Agent value) { + if (agentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAgentsIsMutable(); + agents_.set(index, value); + onChanged(); + } else { + agentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * The list of agents.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 1; + */ + public Builder setAgents(int index, com.google.cloud.ces.v1.Agent.Builder builderForValue) { + if (agentsBuilder_ == null) { + ensureAgentsIsMutable(); + agents_.set(index, builderForValue.build()); + onChanged(); + } else { + agentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * The list of agents.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 1; + */ + public Builder addAgents(com.google.cloud.ces.v1.Agent value) { + if (agentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAgentsIsMutable(); + agents_.add(value); + onChanged(); + } else { + agentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * The list of agents.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 1; + */ + public Builder addAgents(int index, com.google.cloud.ces.v1.Agent value) { + if (agentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAgentsIsMutable(); + agents_.add(index, value); + onChanged(); + } else { + agentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * The list of agents.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 1; + */ + public Builder addAgents(com.google.cloud.ces.v1.Agent.Builder builderForValue) { + if (agentsBuilder_ == null) { + ensureAgentsIsMutable(); + agents_.add(builderForValue.build()); + onChanged(); + } else { + agentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * The list of agents.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 1; + */ + public Builder addAgents(int index, com.google.cloud.ces.v1.Agent.Builder builderForValue) { + if (agentsBuilder_ == null) { + ensureAgentsIsMutable(); + agents_.add(index, builderForValue.build()); + onChanged(); + } else { + agentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * The list of agents.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 1; + */ + public Builder addAllAgents( + java.lang.Iterable values) { + if (agentsBuilder_ == null) { + ensureAgentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, agents_); + onChanged(); + } else { + agentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * The list of agents.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 1; + */ + public Builder clearAgents() { + if (agentsBuilder_ == null) { + agents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + agentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * The list of agents.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 1; + */ + public Builder removeAgents(int index) { + if (agentsBuilder_ == null) { + ensureAgentsIsMutable(); + agents_.remove(index); + onChanged(); + } else { + agentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * The list of agents.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 1; + */ + public com.google.cloud.ces.v1.Agent.Builder getAgentsBuilder(int index) { + return internalGetAgentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * The list of agents.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 1; + */ + public com.google.cloud.ces.v1.AgentOrBuilder getAgentsOrBuilder(int index) { + if (agentsBuilder_ == null) { + return agents_.get(index); + } else { + return agentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * The list of agents.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 1; + */ + public java.util.List + getAgentsOrBuilderList() { + if (agentsBuilder_ != null) { + return agentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(agents_); + } + } + + /** + * + * + *
      +     * The list of agents.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 1; + */ + public com.google.cloud.ces.v1.Agent.Builder addAgentsBuilder() { + return internalGetAgentsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.Agent.getDefaultInstance()); + } + + /** + * + * + *
      +     * The list of agents.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 1; + */ + public com.google.cloud.ces.v1.Agent.Builder addAgentsBuilder(int index) { + return internalGetAgentsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.Agent.getDefaultInstance()); + } + + /** + * + * + *
      +     * The list of agents.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 1; + */ + public java.util.List getAgentsBuilderList() { + return internalGetAgentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Agent, + com.google.cloud.ces.v1.Agent.Builder, + com.google.cloud.ces.v1.AgentOrBuilder> + internalGetAgentsFieldBuilder() { + if (agentsBuilder_ == null) { + agentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Agent, + com.google.cloud.ces.v1.Agent.Builder, + com.google.cloud.ces.v1.AgentOrBuilder>( + agents_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + agents_ = null; + } + return agentsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListAgentsRequest.page_token][google.cloud.ces.v1.ListAgentsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListAgentsRequest.page_token][google.cloud.ces.v1.ListAgentsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListAgentsRequest.page_token][google.cloud.ces.v1.ListAgentsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListAgentsRequest.page_token][google.cloud.ces.v1.ListAgentsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListAgentsRequest.page_token][google.cloud.ces.v1.ListAgentsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ListAgentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ListAgentsResponse) + private static final com.google.cloud.ces.v1.ListAgentsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ListAgentsResponse(); + } + + public static com.google.cloud.ces.v1.ListAgentsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAgentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListAgentsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAgentsResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAgentsResponseOrBuilder.java new file mode 100644 index 000000000000..938b12cb77f5 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAgentsResponseOrBuilder.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ListAgentsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ListAgentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The list of agents.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 1; + */ + java.util.List getAgentsList(); + + /** + * + * + *
      +   * The list of agents.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 1; + */ + com.google.cloud.ces.v1.Agent getAgents(int index); + + /** + * + * + *
      +   * The list of agents.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 1; + */ + int getAgentsCount(); + + /** + * + * + *
      +   * The list of agents.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 1; + */ + java.util.List getAgentsOrBuilderList(); + + /** + * + * + *
      +   * The list of agents.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Agent agents = 1; + */ + com.google.cloud.ces.v1.AgentOrBuilder getAgentsOrBuilder(int index); + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListAgentsRequest.page_token][google.cloud.ces.v1.ListAgentsRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListAgentsRequest.page_token][google.cloud.ces.v1.ListAgentsRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAppVersionsRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAppVersionsRequest.java new file mode 100644 index 000000000000..20902f5d762c --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAppVersionsRequest.java @@ -0,0 +1,1321 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.ListAppVersions][google.cloud.ces.v1.AgentService.ListAppVersions].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListAppVersionsRequest} + */ +@com.google.protobuf.Generated +public final class ListAppVersionsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ListAppVersionsRequest) + ListAppVersionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListAppVersionsRequest"); + } + + // Use ListAppVersionsRequest.newBuilder() to construct. + private ListAppVersionsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAppVersionsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListAppVersionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListAppVersionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListAppVersionsRequest.class, + com.google.cloud.ces.v1.ListAppVersionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the app to list app versions from.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the app to list app versions from.
      +   * 
      + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
      +   * Optional. Requested page size. Server may return fewer items than
      +   * requested. If unspecified, server will pick an appropriate default.
      +   * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListAppVersionsResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListAppVersions][google.cloud.ces.v1.AgentService.ListAppVersions]
      +   * call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListAppVersionsResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListAppVersions][google.cloud.ces.v1.AgentService.ListAppVersions]
      +   * call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the app versions.
      +   * See https://google.aip.dev/160 for more details.
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the app versions.
      +   * See https://google.aip.dev/160 for more details.
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ListAppVersionsRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ListAppVersionsRequest other = + (com.google.cloud.ces.v1.ListAppVersionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ListAppVersionsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListAppVersionsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListAppVersionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListAppVersionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListAppVersionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListAppVersionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListAppVersionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListAppVersionsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListAppVersionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListAppVersionsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListAppVersionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListAppVersionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ListAppVersionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.ListAppVersions][google.cloud.ces.v1.AgentService.ListAppVersions].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListAppVersionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ListAppVersionsRequest) + com.google.cloud.ces.v1.ListAppVersionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListAppVersionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListAppVersionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListAppVersionsRequest.class, + com.google.cloud.ces.v1.ListAppVersionsRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ListAppVersionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListAppVersionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListAppVersionsRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ListAppVersionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListAppVersionsRequest build() { + com.google.cloud.ces.v1.ListAppVersionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListAppVersionsRequest buildPartial() { + com.google.cloud.ces.v1.ListAppVersionsRequest result = + new com.google.cloud.ces.v1.ListAppVersionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ListAppVersionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ListAppVersionsRequest) { + return mergeFrom((com.google.cloud.ces.v1.ListAppVersionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ListAppVersionsRequest other) { + if (other == com.google.cloud.ces.v1.ListAppVersionsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the app to list app versions from.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to list app versions from.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to list app versions from.
      +     * 
      + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to list app versions from.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to list app versions from.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
      +     * Optional. Requested page size. Server may return fewer items than
      +     * requested. If unspecified, server will pick an appropriate default.
      +     * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
      +     * Optional. Requested page size. Server may return fewer items than
      +     * requested. If unspecified, server will pick an appropriate default.
      +     * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Requested page size. Server may return fewer items than
      +     * requested. If unspecified, server will pick an appropriate default.
      +     * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListAppVersionsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListAppVersions][google.cloud.ces.v1.AgentService.ListAppVersions]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListAppVersionsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListAppVersions][google.cloud.ces.v1.AgentService.ListAppVersions]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListAppVersionsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListAppVersions][google.cloud.ces.v1.AgentService.ListAppVersions]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListAppVersionsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListAppVersions][google.cloud.ces.v1.AgentService.ListAppVersions]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListAppVersionsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListAppVersions][google.cloud.ces.v1.AgentService.ListAppVersions]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the app versions.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the app versions.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the app versions.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the app versions.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the app versions.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ListAppVersionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ListAppVersionsRequest) + private static final com.google.cloud.ces.v1.ListAppVersionsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ListAppVersionsRequest(); + } + + public static com.google.cloud.ces.v1.ListAppVersionsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAppVersionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListAppVersionsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAppVersionsRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAppVersionsRequestOrBuilder.java new file mode 100644 index 000000000000..be2952466ae9 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAppVersionsRequestOrBuilder.java @@ -0,0 +1,162 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ListAppVersionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ListAppVersionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the app to list app versions from.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
      +   * Required. The resource name of the app to list app versions from.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Optional. Requested page size. Server may return fewer items than
      +   * requested. If unspecified, server will pick an appropriate default.
      +   * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListAppVersionsResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListAppVersions][google.cloud.ces.v1.AgentService.ListAppVersions]
      +   * call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListAppVersionsResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListAppVersions][google.cloud.ces.v1.AgentService.ListAppVersions]
      +   * call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the app versions.
      +   * See https://google.aip.dev/160 for more details.
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the app versions.
      +   * See https://google.aip.dev/160 for more details.
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAppVersionsResponse.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAppVersionsResponse.java new file mode 100644 index 000000000000..59c9cccc4a79 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAppVersionsResponse.java @@ -0,0 +1,1133 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Response message for
      + * [AgentService.ListAppVersions][google.cloud.ces.v1.AgentService.ListAppVersions].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListAppVersionsResponse} + */ +@com.google.protobuf.Generated +public final class ListAppVersionsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ListAppVersionsResponse) + ListAppVersionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListAppVersionsResponse"); + } + + // Use ListAppVersionsResponse.newBuilder() to construct. + private ListAppVersionsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAppVersionsResponse() { + appVersions_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListAppVersionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListAppVersionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListAppVersionsResponse.class, + com.google.cloud.ces.v1.ListAppVersionsResponse.Builder.class); + } + + public static final int APP_VERSIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List appVersions_; + + /** + * + * + *
      +   * The list of app versions.
      +   * 
      + * + * repeated .google.cloud.ces.v1.AppVersion app_versions = 1; + */ + @java.lang.Override + public java.util.List getAppVersionsList() { + return appVersions_; + } + + /** + * + * + *
      +   * The list of app versions.
      +   * 
      + * + * repeated .google.cloud.ces.v1.AppVersion app_versions = 1; + */ + @java.lang.Override + public java.util.List + getAppVersionsOrBuilderList() { + return appVersions_; + } + + /** + * + * + *
      +   * The list of app versions.
      +   * 
      + * + * repeated .google.cloud.ces.v1.AppVersion app_versions = 1; + */ + @java.lang.Override + public int getAppVersionsCount() { + return appVersions_.size(); + } + + /** + * + * + *
      +   * The list of app versions.
      +   * 
      + * + * repeated .google.cloud.ces.v1.AppVersion app_versions = 1; + */ + @java.lang.Override + public com.google.cloud.ces.v1.AppVersion getAppVersions(int index) { + return appVersions_.get(index); + } + + /** + * + * + *
      +   * The list of app versions.
      +   * 
      + * + * repeated .google.cloud.ces.v1.AppVersion app_versions = 1; + */ + @java.lang.Override + public com.google.cloud.ces.v1.AppVersionOrBuilder getAppVersionsOrBuilder(int index) { + return appVersions_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListAppVersionsRequest.page_token][google.cloud.ces.v1.ListAppVersionsRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListAppVersionsRequest.page_token][google.cloud.ces.v1.ListAppVersionsRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < appVersions_.size(); i++) { + output.writeMessage(1, appVersions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < appVersions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, appVersions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ListAppVersionsResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ListAppVersionsResponse other = + (com.google.cloud.ces.v1.ListAppVersionsResponse) obj; + + if (!getAppVersionsList().equals(other.getAppVersionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAppVersionsCount() > 0) { + hash = (37 * hash) + APP_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getAppVersionsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ListAppVersionsResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListAppVersionsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListAppVersionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListAppVersionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListAppVersionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListAppVersionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListAppVersionsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListAppVersionsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListAppVersionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListAppVersionsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListAppVersionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListAppVersionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ListAppVersionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Response message for
      +   * [AgentService.ListAppVersions][google.cloud.ces.v1.AgentService.ListAppVersions].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListAppVersionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ListAppVersionsResponse) + com.google.cloud.ces.v1.ListAppVersionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListAppVersionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListAppVersionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListAppVersionsResponse.class, + com.google.cloud.ces.v1.ListAppVersionsResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ListAppVersionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (appVersionsBuilder_ == null) { + appVersions_ = java.util.Collections.emptyList(); + } else { + appVersions_ = null; + appVersionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListAppVersionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListAppVersionsResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ListAppVersionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListAppVersionsResponse build() { + com.google.cloud.ces.v1.ListAppVersionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListAppVersionsResponse buildPartial() { + com.google.cloud.ces.v1.ListAppVersionsResponse result = + new com.google.cloud.ces.v1.ListAppVersionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.ces.v1.ListAppVersionsResponse result) { + if (appVersionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + appVersions_ = java.util.Collections.unmodifiableList(appVersions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.appVersions_ = appVersions_; + } else { + result.appVersions_ = appVersionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.ListAppVersionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ListAppVersionsResponse) { + return mergeFrom((com.google.cloud.ces.v1.ListAppVersionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ListAppVersionsResponse other) { + if (other == com.google.cloud.ces.v1.ListAppVersionsResponse.getDefaultInstance()) + return this; + if (appVersionsBuilder_ == null) { + if (!other.appVersions_.isEmpty()) { + if (appVersions_.isEmpty()) { + appVersions_ = other.appVersions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAppVersionsIsMutable(); + appVersions_.addAll(other.appVersions_); + } + onChanged(); + } + } else { + if (!other.appVersions_.isEmpty()) { + if (appVersionsBuilder_.isEmpty()) { + appVersionsBuilder_.dispose(); + appVersionsBuilder_ = null; + appVersions_ = other.appVersions_; + bitField0_ = (bitField0_ & ~0x00000001); + appVersionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAppVersionsFieldBuilder() + : null; + } else { + appVersionsBuilder_.addAllMessages(other.appVersions_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.ces.v1.AppVersion m = + input.readMessage( + com.google.cloud.ces.v1.AppVersion.parser(), extensionRegistry); + if (appVersionsBuilder_ == null) { + ensureAppVersionsIsMutable(); + appVersions_.add(m); + } else { + appVersionsBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List appVersions_ = + java.util.Collections.emptyList(); + + private void ensureAppVersionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + appVersions_ = new java.util.ArrayList(appVersions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.AppVersion, + com.google.cloud.ces.v1.AppVersion.Builder, + com.google.cloud.ces.v1.AppVersionOrBuilder> + appVersionsBuilder_; + + /** + * + * + *
      +     * The list of app versions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.AppVersion app_versions = 1; + */ + public java.util.List getAppVersionsList() { + if (appVersionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(appVersions_); + } else { + return appVersionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * The list of app versions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.AppVersion app_versions = 1; + */ + public int getAppVersionsCount() { + if (appVersionsBuilder_ == null) { + return appVersions_.size(); + } else { + return appVersionsBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * The list of app versions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.AppVersion app_versions = 1; + */ + public com.google.cloud.ces.v1.AppVersion getAppVersions(int index) { + if (appVersionsBuilder_ == null) { + return appVersions_.get(index); + } else { + return appVersionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * The list of app versions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.AppVersion app_versions = 1; + */ + public Builder setAppVersions(int index, com.google.cloud.ces.v1.AppVersion value) { + if (appVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAppVersionsIsMutable(); + appVersions_.set(index, value); + onChanged(); + } else { + appVersionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * The list of app versions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.AppVersion app_versions = 1; + */ + public Builder setAppVersions( + int index, com.google.cloud.ces.v1.AppVersion.Builder builderForValue) { + if (appVersionsBuilder_ == null) { + ensureAppVersionsIsMutable(); + appVersions_.set(index, builderForValue.build()); + onChanged(); + } else { + appVersionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * The list of app versions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.AppVersion app_versions = 1; + */ + public Builder addAppVersions(com.google.cloud.ces.v1.AppVersion value) { + if (appVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAppVersionsIsMutable(); + appVersions_.add(value); + onChanged(); + } else { + appVersionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * The list of app versions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.AppVersion app_versions = 1; + */ + public Builder addAppVersions(int index, com.google.cloud.ces.v1.AppVersion value) { + if (appVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAppVersionsIsMutable(); + appVersions_.add(index, value); + onChanged(); + } else { + appVersionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * The list of app versions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.AppVersion app_versions = 1; + */ + public Builder addAppVersions(com.google.cloud.ces.v1.AppVersion.Builder builderForValue) { + if (appVersionsBuilder_ == null) { + ensureAppVersionsIsMutable(); + appVersions_.add(builderForValue.build()); + onChanged(); + } else { + appVersionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * The list of app versions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.AppVersion app_versions = 1; + */ + public Builder addAppVersions( + int index, com.google.cloud.ces.v1.AppVersion.Builder builderForValue) { + if (appVersionsBuilder_ == null) { + ensureAppVersionsIsMutable(); + appVersions_.add(index, builderForValue.build()); + onChanged(); + } else { + appVersionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * The list of app versions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.AppVersion app_versions = 1; + */ + public Builder addAllAppVersions( + java.lang.Iterable values) { + if (appVersionsBuilder_ == null) { + ensureAppVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, appVersions_); + onChanged(); + } else { + appVersionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * The list of app versions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.AppVersion app_versions = 1; + */ + public Builder clearAppVersions() { + if (appVersionsBuilder_ == null) { + appVersions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + appVersionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * The list of app versions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.AppVersion app_versions = 1; + */ + public Builder removeAppVersions(int index) { + if (appVersionsBuilder_ == null) { + ensureAppVersionsIsMutable(); + appVersions_.remove(index); + onChanged(); + } else { + appVersionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * The list of app versions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.AppVersion app_versions = 1; + */ + public com.google.cloud.ces.v1.AppVersion.Builder getAppVersionsBuilder(int index) { + return internalGetAppVersionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * The list of app versions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.AppVersion app_versions = 1; + */ + public com.google.cloud.ces.v1.AppVersionOrBuilder getAppVersionsOrBuilder(int index) { + if (appVersionsBuilder_ == null) { + return appVersions_.get(index); + } else { + return appVersionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * The list of app versions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.AppVersion app_versions = 1; + */ + public java.util.List + getAppVersionsOrBuilderList() { + if (appVersionsBuilder_ != null) { + return appVersionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(appVersions_); + } + } + + /** + * + * + *
      +     * The list of app versions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.AppVersion app_versions = 1; + */ + public com.google.cloud.ces.v1.AppVersion.Builder addAppVersionsBuilder() { + return internalGetAppVersionsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.AppVersion.getDefaultInstance()); + } + + /** + * + * + *
      +     * The list of app versions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.AppVersion app_versions = 1; + */ + public com.google.cloud.ces.v1.AppVersion.Builder addAppVersionsBuilder(int index) { + return internalGetAppVersionsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.AppVersion.getDefaultInstance()); + } + + /** + * + * + *
      +     * The list of app versions.
      +     * 
      + * + * repeated .google.cloud.ces.v1.AppVersion app_versions = 1; + */ + public java.util.List getAppVersionsBuilderList() { + return internalGetAppVersionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.AppVersion, + com.google.cloud.ces.v1.AppVersion.Builder, + com.google.cloud.ces.v1.AppVersionOrBuilder> + internalGetAppVersionsFieldBuilder() { + if (appVersionsBuilder_ == null) { + appVersionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.AppVersion, + com.google.cloud.ces.v1.AppVersion.Builder, + com.google.cloud.ces.v1.AppVersionOrBuilder>( + appVersions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + appVersions_ = null; + } + return appVersionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListAppVersionsRequest.page_token][google.cloud.ces.v1.ListAppVersionsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListAppVersionsRequest.page_token][google.cloud.ces.v1.ListAppVersionsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListAppVersionsRequest.page_token][google.cloud.ces.v1.ListAppVersionsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListAppVersionsRequest.page_token][google.cloud.ces.v1.ListAppVersionsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListAppVersionsRequest.page_token][google.cloud.ces.v1.ListAppVersionsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ListAppVersionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ListAppVersionsResponse) + private static final com.google.cloud.ces.v1.ListAppVersionsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ListAppVersionsResponse(); + } + + public static com.google.cloud.ces.v1.ListAppVersionsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAppVersionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListAppVersionsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAppVersionsResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAppVersionsResponseOrBuilder.java new file mode 100644 index 000000000000..a909495d09d4 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAppVersionsResponseOrBuilder.java @@ -0,0 +1,116 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ListAppVersionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ListAppVersionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The list of app versions.
      +   * 
      + * + * repeated .google.cloud.ces.v1.AppVersion app_versions = 1; + */ + java.util.List getAppVersionsList(); + + /** + * + * + *
      +   * The list of app versions.
      +   * 
      + * + * repeated .google.cloud.ces.v1.AppVersion app_versions = 1; + */ + com.google.cloud.ces.v1.AppVersion getAppVersions(int index); + + /** + * + * + *
      +   * The list of app versions.
      +   * 
      + * + * repeated .google.cloud.ces.v1.AppVersion app_versions = 1; + */ + int getAppVersionsCount(); + + /** + * + * + *
      +   * The list of app versions.
      +   * 
      + * + * repeated .google.cloud.ces.v1.AppVersion app_versions = 1; + */ + java.util.List + getAppVersionsOrBuilderList(); + + /** + * + * + *
      +   * The list of app versions.
      +   * 
      + * + * repeated .google.cloud.ces.v1.AppVersion app_versions = 1; + */ + com.google.cloud.ces.v1.AppVersionOrBuilder getAppVersionsOrBuilder(int index); + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListAppVersionsRequest.page_token][google.cloud.ces.v1.ListAppVersionsRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListAppVersionsRequest.page_token][google.cloud.ces.v1.ListAppVersionsRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAppsRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAppsRequest.java new file mode 100644 index 000000000000..867b4d754f28 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAppsRequest.java @@ -0,0 +1,1313 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.ListApps][google.cloud.ces.v1.AgentService.ListApps].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListAppsRequest} + */ +@com.google.protobuf.Generated +public final class ListAppsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ListAppsRequest) + ListAppsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListAppsRequest"); + } + + // Use ListAppsRequest.newBuilder() to construct. + private ListAppsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAppsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListAppsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListAppsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListAppsRequest.class, + com.google.cloud.ces.v1.ListAppsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the location to list apps from.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the location to list apps from.
      +   * 
      + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
      +   * Optional. Requested page size. Server may return fewer items than
      +   * requested. If unspecified, server will pick an appropriate default.
      +   * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListAppsResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListApps][google.cloud.ces.v1.AgentService.ListApps] call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListAppsResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListApps][google.cloud.ces.v1.AgentService.ListApps] call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the apps.
      +   * See https://google.aip.dev/160 for more details.
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the apps.
      +   * See https://google.aip.dev/160 for more details.
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ListAppsRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ListAppsRequest other = (com.google.cloud.ces.v1.ListAppsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ListAppsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListAppsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListAppsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListAppsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListAppsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListAppsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListAppsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListAppsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListAppsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListAppsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListAppsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListAppsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ListAppsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.ListApps][google.cloud.ces.v1.AgentService.ListApps].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListAppsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ListAppsRequest) + com.google.cloud.ces.v1.ListAppsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListAppsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListAppsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListAppsRequest.class, + com.google.cloud.ces.v1.ListAppsRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ListAppsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListAppsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListAppsRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ListAppsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListAppsRequest build() { + com.google.cloud.ces.v1.ListAppsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListAppsRequest buildPartial() { + com.google.cloud.ces.v1.ListAppsRequest result = + new com.google.cloud.ces.v1.ListAppsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ListAppsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ListAppsRequest) { + return mergeFrom((com.google.cloud.ces.v1.ListAppsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ListAppsRequest other) { + if (other == com.google.cloud.ces.v1.ListAppsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the location to list apps from.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the location to list apps from.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the location to list apps from.
      +     * 
      + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the location to list apps from.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the location to list apps from.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
      +     * Optional. Requested page size. Server may return fewer items than
      +     * requested. If unspecified, server will pick an appropriate default.
      +     * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
      +     * Optional. Requested page size. Server may return fewer items than
      +     * requested. If unspecified, server will pick an appropriate default.
      +     * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Requested page size. Server may return fewer items than
      +     * requested. If unspecified, server will pick an appropriate default.
      +     * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListAppsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListApps][google.cloud.ces.v1.AgentService.ListApps] call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListAppsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListApps][google.cloud.ces.v1.AgentService.ListApps] call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListAppsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListApps][google.cloud.ces.v1.AgentService.ListApps] call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListAppsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListApps][google.cloud.ces.v1.AgentService.ListApps] call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListAppsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListApps][google.cloud.ces.v1.AgentService.ListApps] call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the apps.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the apps.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the apps.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the apps.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the apps.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ListAppsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ListAppsRequest) + private static final com.google.cloud.ces.v1.ListAppsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ListAppsRequest(); + } + + public static com.google.cloud.ces.v1.ListAppsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAppsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListAppsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAppsRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAppsRequestOrBuilder.java new file mode 100644 index 000000000000..b59b5cf1447a --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAppsRequestOrBuilder.java @@ -0,0 +1,160 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ListAppsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ListAppsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the location to list apps from.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
      +   * Required. The resource name of the location to list apps from.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Optional. Requested page size. Server may return fewer items than
      +   * requested. If unspecified, server will pick an appropriate default.
      +   * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListAppsResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListApps][google.cloud.ces.v1.AgentService.ListApps] call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListAppsResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListApps][google.cloud.ces.v1.AgentService.ListApps] call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the apps.
      +   * See https://google.aip.dev/160 for more details.
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the apps.
      +   * See https://google.aip.dev/160 for more details.
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAppsResponse.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAppsResponse.java new file mode 100644 index 000000000000..13a089346292 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAppsResponse.java @@ -0,0 +1,1413 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Response message for
      + * [AgentService.ListApps][google.cloud.ces.v1.AgentService.ListApps].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListAppsResponse} + */ +@com.google.protobuf.Generated +public final class ListAppsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ListAppsResponse) + ListAppsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListAppsResponse"); + } + + // Use ListAppsResponse.newBuilder() to construct. + private ListAppsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAppsResponse() { + apps_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListAppsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListAppsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListAppsResponse.class, + com.google.cloud.ces.v1.ListAppsResponse.Builder.class); + } + + public static final int APPS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List apps_; + + /** + * + * + *
      +   * The list of apps.
      +   * 
      + * + * repeated .google.cloud.ces.v1.App apps = 1; + */ + @java.lang.Override + public java.util.List getAppsList() { + return apps_; + } + + /** + * + * + *
      +   * The list of apps.
      +   * 
      + * + * repeated .google.cloud.ces.v1.App apps = 1; + */ + @java.lang.Override + public java.util.List getAppsOrBuilderList() { + return apps_; + } + + /** + * + * + *
      +   * The list of apps.
      +   * 
      + * + * repeated .google.cloud.ces.v1.App apps = 1; + */ + @java.lang.Override + public int getAppsCount() { + return apps_.size(); + } + + /** + * + * + *
      +   * The list of apps.
      +   * 
      + * + * repeated .google.cloud.ces.v1.App apps = 1; + */ + @java.lang.Override + public com.google.cloud.ces.v1.App getApps(int index) { + return apps_.get(index); + } + + /** + * + * + *
      +   * The list of apps.
      +   * 
      + * + * repeated .google.cloud.ces.v1.App apps = 1; + */ + @java.lang.Override + public com.google.cloud.ces.v1.AppOrBuilder getAppsOrBuilder(int index) { + return apps_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListAppsRequest.page_token][google.cloud.ces.v1.ListAppsRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListAppsRequest.page_token][google.cloud.ces.v1.ListAppsRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +   * Unordered list. Locations that could not be reached.
      +   * 
      + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
      +   * Unordered list. Locations that could not be reached.
      +   * 
      + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
      +   * Unordered list. Locations that could not be reached.
      +   * 
      + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
      +   * Unordered list. Locations that could not be reached.
      +   * 
      + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < apps_.size(); i++) { + output.writeMessage(1, apps_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < apps_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, apps_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ListAppsResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ListAppsResponse other = (com.google.cloud.ces.v1.ListAppsResponse) obj; + + if (!getAppsList().equals(other.getAppsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAppsCount() > 0) { + hash = (37 * hash) + APPS_FIELD_NUMBER; + hash = (53 * hash) + getAppsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ListAppsResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListAppsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListAppsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListAppsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListAppsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListAppsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListAppsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListAppsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListAppsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListAppsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListAppsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListAppsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ListAppsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Response message for
      +   * [AgentService.ListApps][google.cloud.ces.v1.AgentService.ListApps].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListAppsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ListAppsResponse) + com.google.cloud.ces.v1.ListAppsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListAppsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListAppsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListAppsResponse.class, + com.google.cloud.ces.v1.ListAppsResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ListAppsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (appsBuilder_ == null) { + apps_ = java.util.Collections.emptyList(); + } else { + apps_ = null; + appsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListAppsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListAppsResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ListAppsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListAppsResponse build() { + com.google.cloud.ces.v1.ListAppsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListAppsResponse buildPartial() { + com.google.cloud.ces.v1.ListAppsResponse result = + new com.google.cloud.ces.v1.ListAppsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1.ListAppsResponse result) { + if (appsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + apps_ = java.util.Collections.unmodifiableList(apps_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.apps_ = apps_; + } else { + result.apps_ = appsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.ListAppsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ListAppsResponse) { + return mergeFrom((com.google.cloud.ces.v1.ListAppsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ListAppsResponse other) { + if (other == com.google.cloud.ces.v1.ListAppsResponse.getDefaultInstance()) return this; + if (appsBuilder_ == null) { + if (!other.apps_.isEmpty()) { + if (apps_.isEmpty()) { + apps_ = other.apps_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAppsIsMutable(); + apps_.addAll(other.apps_); + } + onChanged(); + } + } else { + if (!other.apps_.isEmpty()) { + if (appsBuilder_.isEmpty()) { + appsBuilder_.dispose(); + appsBuilder_ = null; + apps_ = other.apps_; + bitField0_ = (bitField0_ & ~0x00000001); + appsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAppsFieldBuilder() + : null; + } else { + appsBuilder_.addAllMessages(other.apps_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.ces.v1.App m = + input.readMessage(com.google.cloud.ces.v1.App.parser(), extensionRegistry); + if (appsBuilder_ == null) { + ensureAppsIsMutable(); + apps_.add(m); + } else { + appsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List apps_ = java.util.Collections.emptyList(); + + private void ensureAppsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + apps_ = new java.util.ArrayList(apps_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.App, + com.google.cloud.ces.v1.App.Builder, + com.google.cloud.ces.v1.AppOrBuilder> + appsBuilder_; + + /** + * + * + *
      +     * The list of apps.
      +     * 
      + * + * repeated .google.cloud.ces.v1.App apps = 1; + */ + public java.util.List getAppsList() { + if (appsBuilder_ == null) { + return java.util.Collections.unmodifiableList(apps_); + } else { + return appsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * The list of apps.
      +     * 
      + * + * repeated .google.cloud.ces.v1.App apps = 1; + */ + public int getAppsCount() { + if (appsBuilder_ == null) { + return apps_.size(); + } else { + return appsBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * The list of apps.
      +     * 
      + * + * repeated .google.cloud.ces.v1.App apps = 1; + */ + public com.google.cloud.ces.v1.App getApps(int index) { + if (appsBuilder_ == null) { + return apps_.get(index); + } else { + return appsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * The list of apps.
      +     * 
      + * + * repeated .google.cloud.ces.v1.App apps = 1; + */ + public Builder setApps(int index, com.google.cloud.ces.v1.App value) { + if (appsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAppsIsMutable(); + apps_.set(index, value); + onChanged(); + } else { + appsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * The list of apps.
      +     * 
      + * + * repeated .google.cloud.ces.v1.App apps = 1; + */ + public Builder setApps(int index, com.google.cloud.ces.v1.App.Builder builderForValue) { + if (appsBuilder_ == null) { + ensureAppsIsMutable(); + apps_.set(index, builderForValue.build()); + onChanged(); + } else { + appsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * The list of apps.
      +     * 
      + * + * repeated .google.cloud.ces.v1.App apps = 1; + */ + public Builder addApps(com.google.cloud.ces.v1.App value) { + if (appsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAppsIsMutable(); + apps_.add(value); + onChanged(); + } else { + appsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * The list of apps.
      +     * 
      + * + * repeated .google.cloud.ces.v1.App apps = 1; + */ + public Builder addApps(int index, com.google.cloud.ces.v1.App value) { + if (appsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAppsIsMutable(); + apps_.add(index, value); + onChanged(); + } else { + appsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * The list of apps.
      +     * 
      + * + * repeated .google.cloud.ces.v1.App apps = 1; + */ + public Builder addApps(com.google.cloud.ces.v1.App.Builder builderForValue) { + if (appsBuilder_ == null) { + ensureAppsIsMutable(); + apps_.add(builderForValue.build()); + onChanged(); + } else { + appsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * The list of apps.
      +     * 
      + * + * repeated .google.cloud.ces.v1.App apps = 1; + */ + public Builder addApps(int index, com.google.cloud.ces.v1.App.Builder builderForValue) { + if (appsBuilder_ == null) { + ensureAppsIsMutable(); + apps_.add(index, builderForValue.build()); + onChanged(); + } else { + appsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * The list of apps.
      +     * 
      + * + * repeated .google.cloud.ces.v1.App apps = 1; + */ + public Builder addAllApps(java.lang.Iterable values) { + if (appsBuilder_ == null) { + ensureAppsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, apps_); + onChanged(); + } else { + appsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * The list of apps.
      +     * 
      + * + * repeated .google.cloud.ces.v1.App apps = 1; + */ + public Builder clearApps() { + if (appsBuilder_ == null) { + apps_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + appsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * The list of apps.
      +     * 
      + * + * repeated .google.cloud.ces.v1.App apps = 1; + */ + public Builder removeApps(int index) { + if (appsBuilder_ == null) { + ensureAppsIsMutable(); + apps_.remove(index); + onChanged(); + } else { + appsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * The list of apps.
      +     * 
      + * + * repeated .google.cloud.ces.v1.App apps = 1; + */ + public com.google.cloud.ces.v1.App.Builder getAppsBuilder(int index) { + return internalGetAppsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * The list of apps.
      +     * 
      + * + * repeated .google.cloud.ces.v1.App apps = 1; + */ + public com.google.cloud.ces.v1.AppOrBuilder getAppsOrBuilder(int index) { + if (appsBuilder_ == null) { + return apps_.get(index); + } else { + return appsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * The list of apps.
      +     * 
      + * + * repeated .google.cloud.ces.v1.App apps = 1; + */ + public java.util.List getAppsOrBuilderList() { + if (appsBuilder_ != null) { + return appsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(apps_); + } + } + + /** + * + * + *
      +     * The list of apps.
      +     * 
      + * + * repeated .google.cloud.ces.v1.App apps = 1; + */ + public com.google.cloud.ces.v1.App.Builder addAppsBuilder() { + return internalGetAppsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.App.getDefaultInstance()); + } + + /** + * + * + *
      +     * The list of apps.
      +     * 
      + * + * repeated .google.cloud.ces.v1.App apps = 1; + */ + public com.google.cloud.ces.v1.App.Builder addAppsBuilder(int index) { + return internalGetAppsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.App.getDefaultInstance()); + } + + /** + * + * + *
      +     * The list of apps.
      +     * 
      + * + * repeated .google.cloud.ces.v1.App apps = 1; + */ + public java.util.List getAppsBuilderList() { + return internalGetAppsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.App, + com.google.cloud.ces.v1.App.Builder, + com.google.cloud.ces.v1.AppOrBuilder> + internalGetAppsFieldBuilder() { + if (appsBuilder_ == null) { + appsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.App, + com.google.cloud.ces.v1.App.Builder, + com.google.cloud.ces.v1.AppOrBuilder>( + apps_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + apps_ = null; + } + return appsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListAppsRequest.page_token][google.cloud.ces.v1.ListAppsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListAppsRequest.page_token][google.cloud.ces.v1.ListAppsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListAppsRequest.page_token][google.cloud.ces.v1.ListAppsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListAppsRequest.page_token][google.cloud.ces.v1.ListAppsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListAppsRequest.page_token][google.cloud.ces.v1.ListAppsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
      +     * Unordered list. Locations that could not be reached.
      +     * 
      + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
      +     * Unordered list. Locations that could not be reached.
      +     * 
      + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
      +     * Unordered list. Locations that could not be reached.
      +     * 
      + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
      +     * Unordered list. Locations that could not be reached.
      +     * 
      + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
      +     * Unordered list. Locations that could not be reached.
      +     * 
      + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Unordered list. Locations that could not be reached.
      +     * 
      + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Unordered list. Locations that could not be reached.
      +     * 
      + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Unordered list. Locations that could not be reached.
      +     * 
      + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Unordered list. Locations that could not be reached.
      +     * 
      + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ListAppsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ListAppsResponse) + private static final com.google.cloud.ces.v1.ListAppsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ListAppsResponse(); + } + + public static com.google.cloud.ces.v1.ListAppsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAppsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListAppsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAppsResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAppsResponseOrBuilder.java new file mode 100644 index 000000000000..29d64e06c908 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListAppsResponseOrBuilder.java @@ -0,0 +1,169 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ListAppsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ListAppsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The list of apps.
      +   * 
      + * + * repeated .google.cloud.ces.v1.App apps = 1; + */ + java.util.List getAppsList(); + + /** + * + * + *
      +   * The list of apps.
      +   * 
      + * + * repeated .google.cloud.ces.v1.App apps = 1; + */ + com.google.cloud.ces.v1.App getApps(int index); + + /** + * + * + *
      +   * The list of apps.
      +   * 
      + * + * repeated .google.cloud.ces.v1.App apps = 1; + */ + int getAppsCount(); + + /** + * + * + *
      +   * The list of apps.
      +   * 
      + * + * repeated .google.cloud.ces.v1.App apps = 1; + */ + java.util.List getAppsOrBuilderList(); + + /** + * + * + *
      +   * The list of apps.
      +   * 
      + * + * repeated .google.cloud.ces.v1.App apps = 1; + */ + com.google.cloud.ces.v1.AppOrBuilder getAppsOrBuilder(int index); + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListAppsRequest.page_token][google.cloud.ces.v1.ListAppsRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListAppsRequest.page_token][google.cloud.ces.v1.ListAppsRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
      +   * Unordered list. Locations that could not be reached.
      +   * 
      + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
      +   * Unordered list. Locations that could not be reached.
      +   * 
      + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
      +   * Unordered list. Locations that could not be reached.
      +   * 
      + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
      +   * Unordered list. Locations that could not be reached.
      +   * 
      + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListChangelogsRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListChangelogsRequest.java new file mode 100644 index 000000000000..93be5411889a --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListChangelogsRequest.java @@ -0,0 +1,1419 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.ListChangelogs][google.cloud.ces.v1.AgentService.ListChangelogs].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListChangelogsRequest} + */ +@com.google.protobuf.Generated +public final class ListChangelogsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ListChangelogsRequest) + ListChangelogsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListChangelogsRequest"); + } + + // Use ListChangelogsRequest.newBuilder() to construct. + private ListChangelogsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListChangelogsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListChangelogsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListChangelogsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListChangelogsRequest.class, + com.google.cloud.ces.v1.ListChangelogsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the app to list changelogs from.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the app to list changelogs from.
      +   * 
      + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
      +   * Optional. Requested page size. Server may return fewer items than
      +   * requested. If unspecified, server will pick an appropriate default.
      +   * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListChangelogsResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListChangelogs][google.cloud.ces.v1.AgentService.ListChangelogs]
      +   * call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListChangelogsResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListChangelogs][google.cloud.ces.v1.AgentService.ListChangelogs]
      +   * call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the changelogs.
      +   * See https://google.aip.dev/160 for more details.
      +   *
      +   * The filter string can be used to filter by `action`, `resource_type`,
      +   * `resource_name`, `author`, and `create_time`.
      +   * The `:` comparator can be used for case-insensitive partial matching on
      +   * string fields, while `=` performs an exact case-sensitive match.
      +   *
      +   * Examples:
      +   * * `action:update` (case-insensitive partial match)
      +   * * `action="Create"` (case-sensitive exact match)
      +   * * `resource_type:agent`
      +   * * `resource_name:my-agent`
      +   * * `author:me@example.com`
      +   * * `create_time > "2025-01-01T00:00:00Z"`
      +   * * `create_time <= "2025-01-01T00:00:00Z" AND resource_type:tool`
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the changelogs.
      +   * See https://google.aip.dev/160 for more details.
      +   *
      +   * The filter string can be used to filter by `action`, `resource_type`,
      +   * `resource_name`, `author`, and `create_time`.
      +   * The `:` comparator can be used for case-insensitive partial matching on
      +   * string fields, while `=` performs an exact case-sensitive match.
      +   *
      +   * Examples:
      +   * * `action:update` (case-insensitive partial match)
      +   * * `action="Create"` (case-sensitive exact match)
      +   * * `resource_type:agent`
      +   * * `resource_name:my-agent`
      +   * * `author:me@example.com`
      +   * * `create_time > "2025-01-01T00:00:00Z"`
      +   * * `create_time <= "2025-01-01T00:00:00Z" AND resource_type:tool`
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ListChangelogsRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ListChangelogsRequest other = + (com.google.cloud.ces.v1.ListChangelogsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ListChangelogsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListChangelogsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListChangelogsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListChangelogsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListChangelogsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListChangelogsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListChangelogsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListChangelogsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListChangelogsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListChangelogsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListChangelogsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListChangelogsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ListChangelogsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.ListChangelogs][google.cloud.ces.v1.AgentService.ListChangelogs].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListChangelogsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ListChangelogsRequest) + com.google.cloud.ces.v1.ListChangelogsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListChangelogsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListChangelogsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListChangelogsRequest.class, + com.google.cloud.ces.v1.ListChangelogsRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ListChangelogsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListChangelogsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListChangelogsRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ListChangelogsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListChangelogsRequest build() { + com.google.cloud.ces.v1.ListChangelogsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListChangelogsRequest buildPartial() { + com.google.cloud.ces.v1.ListChangelogsRequest result = + new com.google.cloud.ces.v1.ListChangelogsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ListChangelogsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ListChangelogsRequest) { + return mergeFrom((com.google.cloud.ces.v1.ListChangelogsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ListChangelogsRequest other) { + if (other == com.google.cloud.ces.v1.ListChangelogsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the app to list changelogs from.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to list changelogs from.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to list changelogs from.
      +     * 
      + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to list changelogs from.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to list changelogs from.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
      +     * Optional. Requested page size. Server may return fewer items than
      +     * requested. If unspecified, server will pick an appropriate default.
      +     * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
      +     * Optional. Requested page size. Server may return fewer items than
      +     * requested. If unspecified, server will pick an appropriate default.
      +     * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Requested page size. Server may return fewer items than
      +     * requested. If unspecified, server will pick an appropriate default.
      +     * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListChangelogsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListChangelogs][google.cloud.ces.v1.AgentService.ListChangelogs]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListChangelogsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListChangelogs][google.cloud.ces.v1.AgentService.ListChangelogs]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListChangelogsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListChangelogs][google.cloud.ces.v1.AgentService.ListChangelogs]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListChangelogsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListChangelogs][google.cloud.ces.v1.AgentService.ListChangelogs]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListChangelogsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListChangelogs][google.cloud.ces.v1.AgentService.ListChangelogs]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the changelogs.
      +     * See https://google.aip.dev/160 for more details.
      +     *
      +     * The filter string can be used to filter by `action`, `resource_type`,
      +     * `resource_name`, `author`, and `create_time`.
      +     * The `:` comparator can be used for case-insensitive partial matching on
      +     * string fields, while `=` performs an exact case-sensitive match.
      +     *
      +     * Examples:
      +     * * `action:update` (case-insensitive partial match)
      +     * * `action="Create"` (case-sensitive exact match)
      +     * * `resource_type:agent`
      +     * * `resource_name:my-agent`
      +     * * `author:me@example.com`
      +     * * `create_time > "2025-01-01T00:00:00Z"`
      +     * * `create_time <= "2025-01-01T00:00:00Z" AND resource_type:tool`
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the changelogs.
      +     * See https://google.aip.dev/160 for more details.
      +     *
      +     * The filter string can be used to filter by `action`, `resource_type`,
      +     * `resource_name`, `author`, and `create_time`.
      +     * The `:` comparator can be used for case-insensitive partial matching on
      +     * string fields, while `=` performs an exact case-sensitive match.
      +     *
      +     * Examples:
      +     * * `action:update` (case-insensitive partial match)
      +     * * `action="Create"` (case-sensitive exact match)
      +     * * `resource_type:agent`
      +     * * `resource_name:my-agent`
      +     * * `author:me@example.com`
      +     * * `create_time > "2025-01-01T00:00:00Z"`
      +     * * `create_time <= "2025-01-01T00:00:00Z" AND resource_type:tool`
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the changelogs.
      +     * See https://google.aip.dev/160 for more details.
      +     *
      +     * The filter string can be used to filter by `action`, `resource_type`,
      +     * `resource_name`, `author`, and `create_time`.
      +     * The `:` comparator can be used for case-insensitive partial matching on
      +     * string fields, while `=` performs an exact case-sensitive match.
      +     *
      +     * Examples:
      +     * * `action:update` (case-insensitive partial match)
      +     * * `action="Create"` (case-sensitive exact match)
      +     * * `resource_type:agent`
      +     * * `resource_name:my-agent`
      +     * * `author:me@example.com`
      +     * * `create_time > "2025-01-01T00:00:00Z"`
      +     * * `create_time <= "2025-01-01T00:00:00Z" AND resource_type:tool`
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the changelogs.
      +     * See https://google.aip.dev/160 for more details.
      +     *
      +     * The filter string can be used to filter by `action`, `resource_type`,
      +     * `resource_name`, `author`, and `create_time`.
      +     * The `:` comparator can be used for case-insensitive partial matching on
      +     * string fields, while `=` performs an exact case-sensitive match.
      +     *
      +     * Examples:
      +     * * `action:update` (case-insensitive partial match)
      +     * * `action="Create"` (case-sensitive exact match)
      +     * * `resource_type:agent`
      +     * * `resource_name:my-agent`
      +     * * `author:me@example.com`
      +     * * `create_time > "2025-01-01T00:00:00Z"`
      +     * * `create_time <= "2025-01-01T00:00:00Z" AND resource_type:tool`
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the changelogs.
      +     * See https://google.aip.dev/160 for more details.
      +     *
      +     * The filter string can be used to filter by `action`, `resource_type`,
      +     * `resource_name`, `author`, and `create_time`.
      +     * The `:` comparator can be used for case-insensitive partial matching on
      +     * string fields, while `=` performs an exact case-sensitive match.
      +     *
      +     * Examples:
      +     * * `action:update` (case-insensitive partial match)
      +     * * `action="Create"` (case-sensitive exact match)
      +     * * `resource_type:agent`
      +     * * `resource_name:my-agent`
      +     * * `author:me@example.com`
      +     * * `create_time > "2025-01-01T00:00:00Z"`
      +     * * `create_time <= "2025-01-01T00:00:00Z" AND resource_type:tool`
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ListChangelogsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ListChangelogsRequest) + private static final com.google.cloud.ces.v1.ListChangelogsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ListChangelogsRequest(); + } + + public static com.google.cloud.ces.v1.ListChangelogsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListChangelogsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListChangelogsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListChangelogsRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListChangelogsRequestOrBuilder.java new file mode 100644 index 000000000000..574d39d879e1 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListChangelogsRequestOrBuilder.java @@ -0,0 +1,190 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ListChangelogsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ListChangelogsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the app to list changelogs from.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
      +   * Required. The resource name of the app to list changelogs from.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Optional. Requested page size. Server may return fewer items than
      +   * requested. If unspecified, server will pick an appropriate default.
      +   * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListChangelogsResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListChangelogs][google.cloud.ces.v1.AgentService.ListChangelogs]
      +   * call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListChangelogsResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListChangelogs][google.cloud.ces.v1.AgentService.ListChangelogs]
      +   * call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the changelogs.
      +   * See https://google.aip.dev/160 for more details.
      +   *
      +   * The filter string can be used to filter by `action`, `resource_type`,
      +   * `resource_name`, `author`, and `create_time`.
      +   * The `:` comparator can be used for case-insensitive partial matching on
      +   * string fields, while `=` performs an exact case-sensitive match.
      +   *
      +   * Examples:
      +   * * `action:update` (case-insensitive partial match)
      +   * * `action="Create"` (case-sensitive exact match)
      +   * * `resource_type:agent`
      +   * * `resource_name:my-agent`
      +   * * `author:me@example.com`
      +   * * `create_time > "2025-01-01T00:00:00Z"`
      +   * * `create_time <= "2025-01-01T00:00:00Z" AND resource_type:tool`
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the changelogs.
      +   * See https://google.aip.dev/160 for more details.
      +   *
      +   * The filter string can be used to filter by `action`, `resource_type`,
      +   * `resource_name`, `author`, and `create_time`.
      +   * The `:` comparator can be used for case-insensitive partial matching on
      +   * string fields, while `=` performs an exact case-sensitive match.
      +   *
      +   * Examples:
      +   * * `action:update` (case-insensitive partial match)
      +   * * `action="Create"` (case-sensitive exact match)
      +   * * `resource_type:agent`
      +   * * `resource_name:my-agent`
      +   * * `author:me@example.com`
      +   * * `create_time > "2025-01-01T00:00:00Z"`
      +   * * `create_time <= "2025-01-01T00:00:00Z" AND resource_type:tool`
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListChangelogsResponse.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListChangelogsResponse.java new file mode 100644 index 000000000000..7c03f7f834eb --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListChangelogsResponse.java @@ -0,0 +1,1131 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Response message for
      + * [AgentService.ListChangelogs][google.cloud.ces.v1.AgentService.ListChangelogs].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListChangelogsResponse} + */ +@com.google.protobuf.Generated +public final class ListChangelogsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ListChangelogsResponse) + ListChangelogsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListChangelogsResponse"); + } + + // Use ListChangelogsResponse.newBuilder() to construct. + private ListChangelogsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListChangelogsResponse() { + changelogs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListChangelogsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListChangelogsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListChangelogsResponse.class, + com.google.cloud.ces.v1.ListChangelogsResponse.Builder.class); + } + + public static final int CHANGELOGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List changelogs_; + + /** + * + * + *
      +   * The list of changelogs.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Changelog changelogs = 1; + */ + @java.lang.Override + public java.util.List getChangelogsList() { + return changelogs_; + } + + /** + * + * + *
      +   * The list of changelogs.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Changelog changelogs = 1; + */ + @java.lang.Override + public java.util.List + getChangelogsOrBuilderList() { + return changelogs_; + } + + /** + * + * + *
      +   * The list of changelogs.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Changelog changelogs = 1; + */ + @java.lang.Override + public int getChangelogsCount() { + return changelogs_.size(); + } + + /** + * + * + *
      +   * The list of changelogs.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Changelog changelogs = 1; + */ + @java.lang.Override + public com.google.cloud.ces.v1.Changelog getChangelogs(int index) { + return changelogs_.get(index); + } + + /** + * + * + *
      +   * The list of changelogs.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Changelog changelogs = 1; + */ + @java.lang.Override + public com.google.cloud.ces.v1.ChangelogOrBuilder getChangelogsOrBuilder(int index) { + return changelogs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListChangelogsRequest.page_token][google.cloud.ces.v1.ListChangelogsRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListChangelogsRequest.page_token][google.cloud.ces.v1.ListChangelogsRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < changelogs_.size(); i++) { + output.writeMessage(1, changelogs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < changelogs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, changelogs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ListChangelogsResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ListChangelogsResponse other = + (com.google.cloud.ces.v1.ListChangelogsResponse) obj; + + if (!getChangelogsList().equals(other.getChangelogsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getChangelogsCount() > 0) { + hash = (37 * hash) + CHANGELOGS_FIELD_NUMBER; + hash = (53 * hash) + getChangelogsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ListChangelogsResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListChangelogsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListChangelogsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListChangelogsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListChangelogsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListChangelogsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListChangelogsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListChangelogsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListChangelogsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListChangelogsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListChangelogsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListChangelogsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ListChangelogsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Response message for
      +   * [AgentService.ListChangelogs][google.cloud.ces.v1.AgentService.ListChangelogs].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListChangelogsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ListChangelogsResponse) + com.google.cloud.ces.v1.ListChangelogsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListChangelogsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListChangelogsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListChangelogsResponse.class, + com.google.cloud.ces.v1.ListChangelogsResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ListChangelogsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (changelogsBuilder_ == null) { + changelogs_ = java.util.Collections.emptyList(); + } else { + changelogs_ = null; + changelogsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListChangelogsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListChangelogsResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ListChangelogsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListChangelogsResponse build() { + com.google.cloud.ces.v1.ListChangelogsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListChangelogsResponse buildPartial() { + com.google.cloud.ces.v1.ListChangelogsResponse result = + new com.google.cloud.ces.v1.ListChangelogsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1.ListChangelogsResponse result) { + if (changelogsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + changelogs_ = java.util.Collections.unmodifiableList(changelogs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.changelogs_ = changelogs_; + } else { + result.changelogs_ = changelogsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.ListChangelogsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ListChangelogsResponse) { + return mergeFrom((com.google.cloud.ces.v1.ListChangelogsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ListChangelogsResponse other) { + if (other == com.google.cloud.ces.v1.ListChangelogsResponse.getDefaultInstance()) return this; + if (changelogsBuilder_ == null) { + if (!other.changelogs_.isEmpty()) { + if (changelogs_.isEmpty()) { + changelogs_ = other.changelogs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureChangelogsIsMutable(); + changelogs_.addAll(other.changelogs_); + } + onChanged(); + } + } else { + if (!other.changelogs_.isEmpty()) { + if (changelogsBuilder_.isEmpty()) { + changelogsBuilder_.dispose(); + changelogsBuilder_ = null; + changelogs_ = other.changelogs_; + bitField0_ = (bitField0_ & ~0x00000001); + changelogsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetChangelogsFieldBuilder() + : null; + } else { + changelogsBuilder_.addAllMessages(other.changelogs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.ces.v1.Changelog m = + input.readMessage( + com.google.cloud.ces.v1.Changelog.parser(), extensionRegistry); + if (changelogsBuilder_ == null) { + ensureChangelogsIsMutable(); + changelogs_.add(m); + } else { + changelogsBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List changelogs_ = + java.util.Collections.emptyList(); + + private void ensureChangelogsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + changelogs_ = new java.util.ArrayList(changelogs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Changelog, + com.google.cloud.ces.v1.Changelog.Builder, + com.google.cloud.ces.v1.ChangelogOrBuilder> + changelogsBuilder_; + + /** + * + * + *
      +     * The list of changelogs.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Changelog changelogs = 1; + */ + public java.util.List getChangelogsList() { + if (changelogsBuilder_ == null) { + return java.util.Collections.unmodifiableList(changelogs_); + } else { + return changelogsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * The list of changelogs.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Changelog changelogs = 1; + */ + public int getChangelogsCount() { + if (changelogsBuilder_ == null) { + return changelogs_.size(); + } else { + return changelogsBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * The list of changelogs.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Changelog changelogs = 1; + */ + public com.google.cloud.ces.v1.Changelog getChangelogs(int index) { + if (changelogsBuilder_ == null) { + return changelogs_.get(index); + } else { + return changelogsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * The list of changelogs.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Changelog changelogs = 1; + */ + public Builder setChangelogs(int index, com.google.cloud.ces.v1.Changelog value) { + if (changelogsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangelogsIsMutable(); + changelogs_.set(index, value); + onChanged(); + } else { + changelogsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * The list of changelogs.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Changelog changelogs = 1; + */ + public Builder setChangelogs( + int index, com.google.cloud.ces.v1.Changelog.Builder builderForValue) { + if (changelogsBuilder_ == null) { + ensureChangelogsIsMutable(); + changelogs_.set(index, builderForValue.build()); + onChanged(); + } else { + changelogsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * The list of changelogs.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Changelog changelogs = 1; + */ + public Builder addChangelogs(com.google.cloud.ces.v1.Changelog value) { + if (changelogsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangelogsIsMutable(); + changelogs_.add(value); + onChanged(); + } else { + changelogsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * The list of changelogs.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Changelog changelogs = 1; + */ + public Builder addChangelogs(int index, com.google.cloud.ces.v1.Changelog value) { + if (changelogsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangelogsIsMutable(); + changelogs_.add(index, value); + onChanged(); + } else { + changelogsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * The list of changelogs.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Changelog changelogs = 1; + */ + public Builder addChangelogs(com.google.cloud.ces.v1.Changelog.Builder builderForValue) { + if (changelogsBuilder_ == null) { + ensureChangelogsIsMutable(); + changelogs_.add(builderForValue.build()); + onChanged(); + } else { + changelogsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * The list of changelogs.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Changelog changelogs = 1; + */ + public Builder addChangelogs( + int index, com.google.cloud.ces.v1.Changelog.Builder builderForValue) { + if (changelogsBuilder_ == null) { + ensureChangelogsIsMutable(); + changelogs_.add(index, builderForValue.build()); + onChanged(); + } else { + changelogsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * The list of changelogs.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Changelog changelogs = 1; + */ + public Builder addAllChangelogs( + java.lang.Iterable values) { + if (changelogsBuilder_ == null) { + ensureChangelogsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, changelogs_); + onChanged(); + } else { + changelogsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * The list of changelogs.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Changelog changelogs = 1; + */ + public Builder clearChangelogs() { + if (changelogsBuilder_ == null) { + changelogs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + changelogsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * The list of changelogs.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Changelog changelogs = 1; + */ + public Builder removeChangelogs(int index) { + if (changelogsBuilder_ == null) { + ensureChangelogsIsMutable(); + changelogs_.remove(index); + onChanged(); + } else { + changelogsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * The list of changelogs.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Changelog changelogs = 1; + */ + public com.google.cloud.ces.v1.Changelog.Builder getChangelogsBuilder(int index) { + return internalGetChangelogsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * The list of changelogs.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Changelog changelogs = 1; + */ + public com.google.cloud.ces.v1.ChangelogOrBuilder getChangelogsOrBuilder(int index) { + if (changelogsBuilder_ == null) { + return changelogs_.get(index); + } else { + return changelogsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * The list of changelogs.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Changelog changelogs = 1; + */ + public java.util.List + getChangelogsOrBuilderList() { + if (changelogsBuilder_ != null) { + return changelogsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(changelogs_); + } + } + + /** + * + * + *
      +     * The list of changelogs.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Changelog changelogs = 1; + */ + public com.google.cloud.ces.v1.Changelog.Builder addChangelogsBuilder() { + return internalGetChangelogsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.Changelog.getDefaultInstance()); + } + + /** + * + * + *
      +     * The list of changelogs.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Changelog changelogs = 1; + */ + public com.google.cloud.ces.v1.Changelog.Builder addChangelogsBuilder(int index) { + return internalGetChangelogsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.Changelog.getDefaultInstance()); + } + + /** + * + * + *
      +     * The list of changelogs.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Changelog changelogs = 1; + */ + public java.util.List getChangelogsBuilderList() { + return internalGetChangelogsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Changelog, + com.google.cloud.ces.v1.Changelog.Builder, + com.google.cloud.ces.v1.ChangelogOrBuilder> + internalGetChangelogsFieldBuilder() { + if (changelogsBuilder_ == null) { + changelogsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Changelog, + com.google.cloud.ces.v1.Changelog.Builder, + com.google.cloud.ces.v1.ChangelogOrBuilder>( + changelogs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + changelogs_ = null; + } + return changelogsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListChangelogsRequest.page_token][google.cloud.ces.v1.ListChangelogsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListChangelogsRequest.page_token][google.cloud.ces.v1.ListChangelogsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListChangelogsRequest.page_token][google.cloud.ces.v1.ListChangelogsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListChangelogsRequest.page_token][google.cloud.ces.v1.ListChangelogsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListChangelogsRequest.page_token][google.cloud.ces.v1.ListChangelogsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ListChangelogsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ListChangelogsResponse) + private static final com.google.cloud.ces.v1.ListChangelogsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ListChangelogsResponse(); + } + + public static com.google.cloud.ces.v1.ListChangelogsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListChangelogsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListChangelogsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListChangelogsResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListChangelogsResponseOrBuilder.java new file mode 100644 index 000000000000..9127c708fe15 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListChangelogsResponseOrBuilder.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ListChangelogsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ListChangelogsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The list of changelogs.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Changelog changelogs = 1; + */ + java.util.List getChangelogsList(); + + /** + * + * + *
      +   * The list of changelogs.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Changelog changelogs = 1; + */ + com.google.cloud.ces.v1.Changelog getChangelogs(int index); + + /** + * + * + *
      +   * The list of changelogs.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Changelog changelogs = 1; + */ + int getChangelogsCount(); + + /** + * + * + *
      +   * The list of changelogs.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Changelog changelogs = 1; + */ + java.util.List getChangelogsOrBuilderList(); + + /** + * + * + *
      +   * The list of changelogs.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Changelog changelogs = 1; + */ + com.google.cloud.ces.v1.ChangelogOrBuilder getChangelogsOrBuilder(int index); + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListChangelogsRequest.page_token][google.cloud.ces.v1.ListChangelogsRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListChangelogsRequest.page_token][google.cloud.ces.v1.ListChangelogsRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListConversationsRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListConversationsRequest.java new file mode 100644 index 000000000000..6161e4942982 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListConversationsRequest.java @@ -0,0 +1,1750 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.ListConversations][google.cloud.ces.v1.AgentService.ListConversations].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListConversationsRequest} + */ +@com.google.protobuf.Generated +public final class ListConversationsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ListConversationsRequest) + ListConversationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListConversationsRequest"); + } + + // Use ListConversationsRequest.newBuilder() to construct. + private ListConversationsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListConversationsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + source_ = 0; + sources_ = emptyIntList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListConversationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListConversationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListConversationsRequest.class, + com.google.cloud.ces.v1.ListConversationsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the app to list conversations from.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the app to list conversations from.
      +   * 
      + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
      +   * Optional. Requested page size. Server may return fewer items than
      +   * requested. If unspecified, server will pick an appropriate default.
      +   * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListConversationsResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListConversations][google.cloud.ces.v1.AgentService.ListConversations]
      +   * call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListConversationsResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListConversations][google.cloud.ces.v1.AgentService.ListConversations]
      +   * call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the conversations.
      +   * See https://google.aip.dev/160 for more details.
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the conversations.
      +   * See https://google.aip.dev/160 for more details.
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_FIELD_NUMBER = 5; + private int source_ = 0; + + /** + * + * + *
      +   * Optional. Indicate the source of the conversation. If not set, Source.Live
      +   * will be applied by default. Will be deprecated in favor of `sources` field.
      +   * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for source. + */ + @java.lang.Override + public int getSourceValue() { + return source_; + } + + /** + * + * + *
      +   * Optional. Indicate the source of the conversation. If not set, Source.Live
      +   * will be applied by default. Will be deprecated in favor of `sources` field.
      +   * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The source. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Conversation.Source getSource() { + com.google.cloud.ces.v1.Conversation.Source result = + com.google.cloud.ces.v1.Conversation.Source.forNumber(source_); + return result == null ? com.google.cloud.ces.v1.Conversation.Source.UNRECOGNIZED : result; + } + + public static final int SOURCES_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList sources_ = emptyIntList(); + + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.ces.v1.Conversation.Source> + sources_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.ces.v1.Conversation.Source>() { + public com.google.cloud.ces.v1.Conversation.Source convert(int from) { + com.google.cloud.ces.v1.Conversation.Source result = + com.google.cloud.ces.v1.Conversation.Source.forNumber(from); + return result == null + ? com.google.cloud.ces.v1.Conversation.Source.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
      +   * Optional. Indicate the sources of the conversations. If not set, all
      +   * available sources will be applied by default.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Source sources = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the sources. + */ + @java.lang.Override + public java.util.List getSourcesList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.ces.v1.Conversation.Source>(sources_, sources_converter_); + } + + /** + * + * + *
      +   * Optional. Indicate the sources of the conversations. If not set, all
      +   * available sources will be applied by default.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Source sources = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of sources. + */ + @java.lang.Override + public int getSourcesCount() { + return sources_.size(); + } + + /** + * + * + *
      +   * Optional. Indicate the sources of the conversations. If not set, all
      +   * available sources will be applied by default.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Source sources = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The sources at the given index. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Conversation.Source getSources(int index) { + return sources_converter_.convert(sources_.getInt(index)); + } + + /** + * + * + *
      +   * Optional. Indicate the sources of the conversations. If not set, all
      +   * available sources will be applied by default.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Source sources = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for sources. + */ + @java.lang.Override + public java.util.List getSourcesValueList() { + return sources_; + } + + /** + * + * + *
      +   * Optional. Indicate the sources of the conversations. If not set, all
      +   * available sources will be applied by default.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Source sources = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of sources at the given index. + */ + @java.lang.Override + public int getSourcesValue(int index) { + return sources_.getInt(index); + } + + private int sourcesMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (source_ != com.google.cloud.ces.v1.Conversation.Source.SOURCE_UNSPECIFIED.getNumber()) { + output.writeEnum(5, source_); + } + if (getSourcesList().size() > 0) { + output.writeUInt32NoTag(50); + output.writeUInt32NoTag(sourcesMemoizedSerializedSize); + } + for (int i = 0; i < sources_.size(); i++) { + output.writeEnumNoTag(sources_.getInt(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (source_ != com.google.cloud.ces.v1.Conversation.Source.SOURCE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, source_); + } + { + int dataSize = 0; + for (int i = 0; i < sources_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(sources_.getInt(i)); + } + size += dataSize; + if (!getSourcesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + sourcesMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ListConversationsRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ListConversationsRequest other = + (com.google.cloud.ces.v1.ListConversationsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (source_ != other.source_) return false; + if (!sources_.equals(other.sources_)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + source_; + if (getSourcesCount() > 0) { + hash = (37 * hash) + SOURCES_FIELD_NUMBER; + hash = (53 * hash) + sources_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ListConversationsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListConversationsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListConversationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListConversationsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListConversationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListConversationsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListConversationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListConversationsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListConversationsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListConversationsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListConversationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListConversationsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ListConversationsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.ListConversations][google.cloud.ces.v1.AgentService.ListConversations].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListConversationsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ListConversationsRequest) + com.google.cloud.ces.v1.ListConversationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListConversationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListConversationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListConversationsRequest.class, + com.google.cloud.ces.v1.ListConversationsRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ListConversationsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + source_ = 0; + sources_ = emptyIntList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListConversationsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListConversationsRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ListConversationsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListConversationsRequest build() { + com.google.cloud.ces.v1.ListConversationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListConversationsRequest buildPartial() { + com.google.cloud.ces.v1.ListConversationsRequest result = + new com.google.cloud.ces.v1.ListConversationsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ListConversationsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.source_ = source_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + sources_.makeImmutable(); + result.sources_ = sources_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ListConversationsRequest) { + return mergeFrom((com.google.cloud.ces.v1.ListConversationsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ListConversationsRequest other) { + if (other == com.google.cloud.ces.v1.ListConversationsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.source_ != 0) { + setSourceValue(other.getSourceValue()); + } + if (!other.sources_.isEmpty()) { + if (sources_.isEmpty()) { + sources_ = other.sources_; + sources_.makeImmutable(); + bitField0_ |= 0x00000020; + } else { + ensureSourcesIsMutable(); + sources_.addAll(other.sources_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + source_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + int tmpRaw = input.readEnum(); + ensureSourcesIsMutable(); + sources_.addInt(tmpRaw); + break; + } // case 48 + case 50: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureSourcesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + sources_.addInt(input.readEnum()); + } + input.popLimit(limit); + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the app to list conversations from.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to list conversations from.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to list conversations from.
      +     * 
      + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to list conversations from.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to list conversations from.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
      +     * Optional. Requested page size. Server may return fewer items than
      +     * requested. If unspecified, server will pick an appropriate default.
      +     * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
      +     * Optional. Requested page size. Server may return fewer items than
      +     * requested. If unspecified, server will pick an appropriate default.
      +     * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Requested page size. Server may return fewer items than
      +     * requested. If unspecified, server will pick an appropriate default.
      +     * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListConversationsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListConversations][google.cloud.ces.v1.AgentService.ListConversations]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListConversationsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListConversations][google.cloud.ces.v1.AgentService.ListConversations]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListConversationsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListConversations][google.cloud.ces.v1.AgentService.ListConversations]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListConversationsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListConversations][google.cloud.ces.v1.AgentService.ListConversations]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListConversationsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListConversations][google.cloud.ces.v1.AgentService.ListConversations]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the conversations.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the conversations.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the conversations.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the conversations.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the conversations.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int source_ = 0; + + /** + * + * + *
      +     * Optional. Indicate the source of the conversation. If not set, Source.Live
      +     * will be applied by default. Will be deprecated in favor of `sources` field.
      +     * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for source. + */ + @java.lang.Override + public int getSourceValue() { + return source_; + } + + /** + * + * + *
      +     * Optional. Indicate the source of the conversation. If not set, Source.Live
      +     * will be applied by default. Will be deprecated in favor of `sources` field.
      +     * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for source to set. + * @return This builder for chaining. + */ + public Builder setSourceValue(int value) { + source_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Indicate the source of the conversation. If not set, Source.Live
      +     * will be applied by default. Will be deprecated in favor of `sources` field.
      +     * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The source. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Conversation.Source getSource() { + com.google.cloud.ces.v1.Conversation.Source result = + com.google.cloud.ces.v1.Conversation.Source.forNumber(source_); + return result == null ? com.google.cloud.ces.v1.Conversation.Source.UNRECOGNIZED : result; + } + + /** + * + * + *
      +     * Optional. Indicate the source of the conversation. If not set, Source.Live
      +     * will be applied by default. Will be deprecated in favor of `sources` field.
      +     * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The source to set. + * @return This builder for chaining. + */ + public Builder setSource(com.google.cloud.ces.v1.Conversation.Source value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + source_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Indicate the source of the conversation. If not set, Source.Live
      +     * will be applied by default. Will be deprecated in favor of `sources` field.
      +     * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSource() { + bitField0_ = (bitField0_ & ~0x00000010); + source_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList sources_ = emptyIntList(); + + private void ensureSourcesIsMutable() { + if (!sources_.isModifiable()) { + sources_ = makeMutableCopy(sources_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
      +     * Optional. Indicate the sources of the conversations. If not set, all
      +     * available sources will be applied by default.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Source sources = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the sources. + */ + public java.util.List getSourcesList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.ces.v1.Conversation.Source>(sources_, sources_converter_); + } + + /** + * + * + *
      +     * Optional. Indicate the sources of the conversations. If not set, all
      +     * available sources will be applied by default.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Source sources = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of sources. + */ + public int getSourcesCount() { + return sources_.size(); + } + + /** + * + * + *
      +     * Optional. Indicate the sources of the conversations. If not set, all
      +     * available sources will be applied by default.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Source sources = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The sources at the given index. + */ + public com.google.cloud.ces.v1.Conversation.Source getSources(int index) { + return sources_converter_.convert(sources_.getInt(index)); + } + + /** + * + * + *
      +     * Optional. Indicate the sources of the conversations. If not set, all
      +     * available sources will be applied by default.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Source sources = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The sources to set. + * @return This builder for chaining. + */ + public Builder setSources(int index, com.google.cloud.ces.v1.Conversation.Source value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourcesIsMutable(); + sources_.setInt(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Indicate the sources of the conversations. If not set, all
      +     * available sources will be applied by default.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Source sources = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The sources to add. + * @return This builder for chaining. + */ + public Builder addSources(com.google.cloud.ces.v1.Conversation.Source value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourcesIsMutable(); + sources_.addInt(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Indicate the sources of the conversations. If not set, all
      +     * available sources will be applied by default.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Source sources = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The sources to add. + * @return This builder for chaining. + */ + public Builder addAllSources( + java.lang.Iterable values) { + ensureSourcesIsMutable(); + for (com.google.cloud.ces.v1.Conversation.Source value : values) { + sources_.addInt(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Indicate the sources of the conversations. If not set, all
      +     * available sources will be applied by default.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Source sources = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSources() { + sources_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Indicate the sources of the conversations. If not set, all
      +     * available sources will be applied by default.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Source sources = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for sources. + */ + public java.util.List getSourcesValueList() { + sources_.makeImmutable(); + return sources_; + } + + /** + * + * + *
      +     * Optional. Indicate the sources of the conversations. If not set, all
      +     * available sources will be applied by default.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Source sources = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of sources at the given index. + */ + public int getSourcesValue(int index) { + return sources_.getInt(index); + } + + /** + * + * + *
      +     * Optional. Indicate the sources of the conversations. If not set, all
      +     * available sources will be applied by default.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Source sources = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for sources to set. + * @return This builder for chaining. + */ + public Builder setSourcesValue(int index, int value) { + ensureSourcesIsMutable(); + sources_.setInt(index, value); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Indicate the sources of the conversations. If not set, all
      +     * available sources will be applied by default.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Source sources = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for sources to add. + * @return This builder for chaining. + */ + public Builder addSourcesValue(int value) { + ensureSourcesIsMutable(); + sources_.addInt(value); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Indicate the sources of the conversations. If not set, all
      +     * available sources will be applied by default.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Source sources = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The enum numeric values on the wire for sources to add. + * @return This builder for chaining. + */ + public Builder addAllSourcesValue(java.lang.Iterable values) { + ensureSourcesIsMutable(); + for (int value : values) { + sources_.addInt(value); + } + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ListConversationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ListConversationsRequest) + private static final com.google.cloud.ces.v1.ListConversationsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ListConversationsRequest(); + } + + public static com.google.cloud.ces.v1.ListConversationsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConversationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListConversationsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListConversationsRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListConversationsRequestOrBuilder.java new file mode 100644 index 000000000000..0b3e19eb97d4 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListConversationsRequestOrBuilder.java @@ -0,0 +1,248 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ListConversationsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ListConversationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the app to list conversations from.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
      +   * Required. The resource name of the app to list conversations from.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Optional. Requested page size. Server may return fewer items than
      +   * requested. If unspecified, server will pick an appropriate default.
      +   * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListConversationsResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListConversations][google.cloud.ces.v1.AgentService.ListConversations]
      +   * call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListConversationsResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListConversations][google.cloud.ces.v1.AgentService.ListConversations]
      +   * call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the conversations.
      +   * See https://google.aip.dev/160 for more details.
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the conversations.
      +   * See https://google.aip.dev/160 for more details.
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
      +   * Optional. Indicate the source of the conversation. If not set, Source.Live
      +   * will be applied by default. Will be deprecated in favor of `sources` field.
      +   * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for source. + */ + int getSourceValue(); + + /** + * + * + *
      +   * Optional. Indicate the source of the conversation. If not set, Source.Live
      +   * will be applied by default. Will be deprecated in favor of `sources` field.
      +   * 
      + * + * + * .google.cloud.ces.v1.Conversation.Source source = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The source. + */ + com.google.cloud.ces.v1.Conversation.Source getSource(); + + /** + * + * + *
      +   * Optional. Indicate the sources of the conversations. If not set, all
      +   * available sources will be applied by default.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Source sources = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the sources. + */ + java.util.List getSourcesList(); + + /** + * + * + *
      +   * Optional. Indicate the sources of the conversations. If not set, all
      +   * available sources will be applied by default.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Source sources = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of sources. + */ + int getSourcesCount(); + + /** + * + * + *
      +   * Optional. Indicate the sources of the conversations. If not set, all
      +   * available sources will be applied by default.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Source sources = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The sources at the given index. + */ + com.google.cloud.ces.v1.Conversation.Source getSources(int index); + + /** + * + * + *
      +   * Optional. Indicate the sources of the conversations. If not set, all
      +   * available sources will be applied by default.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Source sources = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for sources. + */ + java.util.List getSourcesValueList(); + + /** + * + * + *
      +   * Optional. Indicate the sources of the conversations. If not set, all
      +   * available sources will be applied by default.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Conversation.Source sources = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of sources at the given index. + */ + int getSourcesValue(int index); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListConversationsResponse.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListConversationsResponse.java new file mode 100644 index 000000000000..c156911aca0d --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListConversationsResponse.java @@ -0,0 +1,1138 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Response message for
      + * [AgentService.ListConversations][google.cloud.ces.v1.AgentService.ListConversations].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListConversationsResponse} + */ +@com.google.protobuf.Generated +public final class ListConversationsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ListConversationsResponse) + ListConversationsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListConversationsResponse"); + } + + // Use ListConversationsResponse.newBuilder() to construct. + private ListConversationsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListConversationsResponse() { + conversations_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListConversationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListConversationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListConversationsResponse.class, + com.google.cloud.ces.v1.ListConversationsResponse.Builder.class); + } + + public static final int CONVERSATIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List conversations_; + + /** + * + * + *
      +   * The list of conversations.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Conversation conversations = 1; + */ + @java.lang.Override + public java.util.List getConversationsList() { + return conversations_; + } + + /** + * + * + *
      +   * The list of conversations.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Conversation conversations = 1; + */ + @java.lang.Override + public java.util.List + getConversationsOrBuilderList() { + return conversations_; + } + + /** + * + * + *
      +   * The list of conversations.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Conversation conversations = 1; + */ + @java.lang.Override + public int getConversationsCount() { + return conversations_.size(); + } + + /** + * + * + *
      +   * The list of conversations.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Conversation conversations = 1; + */ + @java.lang.Override + public com.google.cloud.ces.v1.Conversation getConversations(int index) { + return conversations_.get(index); + } + + /** + * + * + *
      +   * The list of conversations.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Conversation conversations = 1; + */ + @java.lang.Override + public com.google.cloud.ces.v1.ConversationOrBuilder getConversationsOrBuilder(int index) { + return conversations_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListConversationsRequest.page_token][google.cloud.ces.v1.ListConversationsRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListConversationsRequest.page_token][google.cloud.ces.v1.ListConversationsRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < conversations_.size(); i++) { + output.writeMessage(1, conversations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < conversations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, conversations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ListConversationsResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ListConversationsResponse other = + (com.google.cloud.ces.v1.ListConversationsResponse) obj; + + if (!getConversationsList().equals(other.getConversationsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getConversationsCount() > 0) { + hash = (37 * hash) + CONVERSATIONS_FIELD_NUMBER; + hash = (53 * hash) + getConversationsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ListConversationsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListConversationsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListConversationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListConversationsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListConversationsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListConversationsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListConversationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListConversationsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListConversationsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListConversationsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListConversationsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListConversationsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ListConversationsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Response message for
      +   * [AgentService.ListConversations][google.cloud.ces.v1.AgentService.ListConversations].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListConversationsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ListConversationsResponse) + com.google.cloud.ces.v1.ListConversationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListConversationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListConversationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListConversationsResponse.class, + com.google.cloud.ces.v1.ListConversationsResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ListConversationsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (conversationsBuilder_ == null) { + conversations_ = java.util.Collections.emptyList(); + } else { + conversations_ = null; + conversationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListConversationsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListConversationsResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ListConversationsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListConversationsResponse build() { + com.google.cloud.ces.v1.ListConversationsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListConversationsResponse buildPartial() { + com.google.cloud.ces.v1.ListConversationsResponse result = + new com.google.cloud.ces.v1.ListConversationsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.ces.v1.ListConversationsResponse result) { + if (conversationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + conversations_ = java.util.Collections.unmodifiableList(conversations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.conversations_ = conversations_; + } else { + result.conversations_ = conversationsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.ListConversationsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ListConversationsResponse) { + return mergeFrom((com.google.cloud.ces.v1.ListConversationsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ListConversationsResponse other) { + if (other == com.google.cloud.ces.v1.ListConversationsResponse.getDefaultInstance()) + return this; + if (conversationsBuilder_ == null) { + if (!other.conversations_.isEmpty()) { + if (conversations_.isEmpty()) { + conversations_ = other.conversations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureConversationsIsMutable(); + conversations_.addAll(other.conversations_); + } + onChanged(); + } + } else { + if (!other.conversations_.isEmpty()) { + if (conversationsBuilder_.isEmpty()) { + conversationsBuilder_.dispose(); + conversationsBuilder_ = null; + conversations_ = other.conversations_; + bitField0_ = (bitField0_ & ~0x00000001); + conversationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetConversationsFieldBuilder() + : null; + } else { + conversationsBuilder_.addAllMessages(other.conversations_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.ces.v1.Conversation m = + input.readMessage( + com.google.cloud.ces.v1.Conversation.parser(), extensionRegistry); + if (conversationsBuilder_ == null) { + ensureConversationsIsMutable(); + conversations_.add(m); + } else { + conversationsBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List conversations_ = + java.util.Collections.emptyList(); + + private void ensureConversationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + conversations_ = + new java.util.ArrayList(conversations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Conversation, + com.google.cloud.ces.v1.Conversation.Builder, + com.google.cloud.ces.v1.ConversationOrBuilder> + conversationsBuilder_; + + /** + * + * + *
      +     * The list of conversations.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Conversation conversations = 1; + */ + public java.util.List getConversationsList() { + if (conversationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conversations_); + } else { + return conversationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * The list of conversations.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Conversation conversations = 1; + */ + public int getConversationsCount() { + if (conversationsBuilder_ == null) { + return conversations_.size(); + } else { + return conversationsBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * The list of conversations.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Conversation conversations = 1; + */ + public com.google.cloud.ces.v1.Conversation getConversations(int index) { + if (conversationsBuilder_ == null) { + return conversations_.get(index); + } else { + return conversationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * The list of conversations.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Conversation conversations = 1; + */ + public Builder setConversations(int index, com.google.cloud.ces.v1.Conversation value) { + if (conversationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConversationsIsMutable(); + conversations_.set(index, value); + onChanged(); + } else { + conversationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * The list of conversations.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Conversation conversations = 1; + */ + public Builder setConversations( + int index, com.google.cloud.ces.v1.Conversation.Builder builderForValue) { + if (conversationsBuilder_ == null) { + ensureConversationsIsMutable(); + conversations_.set(index, builderForValue.build()); + onChanged(); + } else { + conversationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * The list of conversations.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Conversation conversations = 1; + */ + public Builder addConversations(com.google.cloud.ces.v1.Conversation value) { + if (conversationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConversationsIsMutable(); + conversations_.add(value); + onChanged(); + } else { + conversationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * The list of conversations.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Conversation conversations = 1; + */ + public Builder addConversations(int index, com.google.cloud.ces.v1.Conversation value) { + if (conversationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConversationsIsMutable(); + conversations_.add(index, value); + onChanged(); + } else { + conversationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * The list of conversations.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Conversation conversations = 1; + */ + public Builder addConversations(com.google.cloud.ces.v1.Conversation.Builder builderForValue) { + if (conversationsBuilder_ == null) { + ensureConversationsIsMutable(); + conversations_.add(builderForValue.build()); + onChanged(); + } else { + conversationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * The list of conversations.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Conversation conversations = 1; + */ + public Builder addConversations( + int index, com.google.cloud.ces.v1.Conversation.Builder builderForValue) { + if (conversationsBuilder_ == null) { + ensureConversationsIsMutable(); + conversations_.add(index, builderForValue.build()); + onChanged(); + } else { + conversationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * The list of conversations.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Conversation conversations = 1; + */ + public Builder addAllConversations( + java.lang.Iterable values) { + if (conversationsBuilder_ == null) { + ensureConversationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conversations_); + onChanged(); + } else { + conversationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * The list of conversations.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Conversation conversations = 1; + */ + public Builder clearConversations() { + if (conversationsBuilder_ == null) { + conversations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + conversationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * The list of conversations.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Conversation conversations = 1; + */ + public Builder removeConversations(int index) { + if (conversationsBuilder_ == null) { + ensureConversationsIsMutable(); + conversations_.remove(index); + onChanged(); + } else { + conversationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * The list of conversations.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Conversation conversations = 1; + */ + public com.google.cloud.ces.v1.Conversation.Builder getConversationsBuilder(int index) { + return internalGetConversationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * The list of conversations.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Conversation conversations = 1; + */ + public com.google.cloud.ces.v1.ConversationOrBuilder getConversationsOrBuilder(int index) { + if (conversationsBuilder_ == null) { + return conversations_.get(index); + } else { + return conversationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * The list of conversations.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Conversation conversations = 1; + */ + public java.util.List + getConversationsOrBuilderList() { + if (conversationsBuilder_ != null) { + return conversationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conversations_); + } + } + + /** + * + * + *
      +     * The list of conversations.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Conversation conversations = 1; + */ + public com.google.cloud.ces.v1.Conversation.Builder addConversationsBuilder() { + return internalGetConversationsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.Conversation.getDefaultInstance()); + } + + /** + * + * + *
      +     * The list of conversations.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Conversation conversations = 1; + */ + public com.google.cloud.ces.v1.Conversation.Builder addConversationsBuilder(int index) { + return internalGetConversationsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.Conversation.getDefaultInstance()); + } + + /** + * + * + *
      +     * The list of conversations.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Conversation conversations = 1; + */ + public java.util.List + getConversationsBuilderList() { + return internalGetConversationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Conversation, + com.google.cloud.ces.v1.Conversation.Builder, + com.google.cloud.ces.v1.ConversationOrBuilder> + internalGetConversationsFieldBuilder() { + if (conversationsBuilder_ == null) { + conversationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Conversation, + com.google.cloud.ces.v1.Conversation.Builder, + com.google.cloud.ces.v1.ConversationOrBuilder>( + conversations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + conversations_ = null; + } + return conversationsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListConversationsRequest.page_token][google.cloud.ces.v1.ListConversationsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListConversationsRequest.page_token][google.cloud.ces.v1.ListConversationsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListConversationsRequest.page_token][google.cloud.ces.v1.ListConversationsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListConversationsRequest.page_token][google.cloud.ces.v1.ListConversationsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListConversationsRequest.page_token][google.cloud.ces.v1.ListConversationsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ListConversationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ListConversationsResponse) + private static final com.google.cloud.ces.v1.ListConversationsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ListConversationsResponse(); + } + + public static com.google.cloud.ces.v1.ListConversationsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConversationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListConversationsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListConversationsResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListConversationsResponseOrBuilder.java new file mode 100644 index 000000000000..962cb1b6b93d --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListConversationsResponseOrBuilder.java @@ -0,0 +1,116 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ListConversationsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ListConversationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The list of conversations.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Conversation conversations = 1; + */ + java.util.List getConversationsList(); + + /** + * + * + *
      +   * The list of conversations.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Conversation conversations = 1; + */ + com.google.cloud.ces.v1.Conversation getConversations(int index); + + /** + * + * + *
      +   * The list of conversations.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Conversation conversations = 1; + */ + int getConversationsCount(); + + /** + * + * + *
      +   * The list of conversations.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Conversation conversations = 1; + */ + java.util.List + getConversationsOrBuilderList(); + + /** + * + * + *
      +   * The list of conversations.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Conversation conversations = 1; + */ + com.google.cloud.ces.v1.ConversationOrBuilder getConversationsOrBuilder(int index); + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListConversationsRequest.page_token][google.cloud.ces.v1.ListConversationsRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListConversationsRequest.page_token][google.cloud.ces.v1.ListConversationsRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListDeploymentsRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListDeploymentsRequest.java new file mode 100644 index 000000000000..5b2616e44db6 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListDeploymentsRequest.java @@ -0,0 +1,1147 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.ListDeployments][google.cloud.ces.v1.AgentService.ListDeployments].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListDeploymentsRequest} + */ +@com.google.protobuf.Generated +public final class ListDeploymentsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ListDeploymentsRequest) + ListDeploymentsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListDeploymentsRequest"); + } + + // Use ListDeploymentsRequest.newBuilder() to construct. + private ListDeploymentsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListDeploymentsRequest() { + parent_ = ""; + pageToken_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListDeploymentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListDeploymentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListDeploymentsRequest.class, + com.google.cloud.ces.v1.ListDeploymentsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
      +   * Required. The parent app.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}`
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The parent app.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}`
      +   * 
      + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
      +   * Optional. The maximum number of deployments to return. The service may
      +   * return fewer than this value. If unspecified, at most 50 deployments will
      +   * be returned. The maximum value is 1000; values above 1000 will be coerced
      +   * to 1000.
      +   * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
      +   * Optional. A page token, received from a previous `ListDeployments` call.
      +   * Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to `ListDeployments` must
      +   * match the call that provided the page token.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. A page token, received from a previous `ListDeployments` call.
      +   * Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to `ListDeployments` must
      +   * match the call that provided the page token.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ListDeploymentsRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ListDeploymentsRequest other = + (com.google.cloud.ces.v1.ListDeploymentsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ListDeploymentsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListDeploymentsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListDeploymentsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListDeploymentsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListDeploymentsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListDeploymentsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListDeploymentsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListDeploymentsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListDeploymentsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListDeploymentsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListDeploymentsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListDeploymentsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ListDeploymentsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.ListDeployments][google.cloud.ces.v1.AgentService.ListDeployments].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListDeploymentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ListDeploymentsRequest) + com.google.cloud.ces.v1.ListDeploymentsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListDeploymentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListDeploymentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListDeploymentsRequest.class, + com.google.cloud.ces.v1.ListDeploymentsRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ListDeploymentsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListDeploymentsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListDeploymentsRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ListDeploymentsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListDeploymentsRequest build() { + com.google.cloud.ces.v1.ListDeploymentsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListDeploymentsRequest buildPartial() { + com.google.cloud.ces.v1.ListDeploymentsRequest result = + new com.google.cloud.ces.v1.ListDeploymentsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ListDeploymentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ListDeploymentsRequest) { + return mergeFrom((com.google.cloud.ces.v1.ListDeploymentsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ListDeploymentsRequest other) { + if (other == com.google.cloud.ces.v1.ListDeploymentsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + orderBy_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
      +     * Required. The parent app.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}`
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The parent app.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}`
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The parent app.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}`
      +     * 
      + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The parent app.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}`
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The parent app.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}`
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
      +     * Optional. The maximum number of deployments to return. The service may
      +     * return fewer than this value. If unspecified, at most 50 deployments will
      +     * be returned. The maximum value is 1000; values above 1000 will be coerced
      +     * to 1000.
      +     * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
      +     * Optional. The maximum number of deployments to return. The service may
      +     * return fewer than this value. If unspecified, at most 50 deployments will
      +     * be returned. The maximum value is 1000; values above 1000 will be coerced
      +     * to 1000.
      +     * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The maximum number of deployments to return. The service may
      +     * return fewer than this value. If unspecified, at most 50 deployments will
      +     * be returned. The maximum value is 1000; values above 1000 will be coerced
      +     * to 1000.
      +     * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
      +     * Optional. A page token, received from a previous `ListDeployments` call.
      +     * Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to `ListDeployments` must
      +     * match the call that provided the page token.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. A page token, received from a previous `ListDeployments` call.
      +     * Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to `ListDeployments` must
      +     * match the call that provided the page token.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. A page token, received from a previous `ListDeployments` call.
      +     * Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to `ListDeployments` must
      +     * match the call that provided the page token.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. A page token, received from a previous `ListDeployments` call.
      +     * Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to `ListDeployments` must
      +     * match the call that provided the page token.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. A page token, received from a previous `ListDeployments` call.
      +     * Provide this to retrieve the subsequent page.
      +     *
      +     * When paginating, all other parameters provided to `ListDeployments` must
      +     * match the call that provided the page token.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ListDeploymentsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ListDeploymentsRequest) + private static final com.google.cloud.ces.v1.ListDeploymentsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ListDeploymentsRequest(); + } + + public static com.google.cloud.ces.v1.ListDeploymentsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDeploymentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListDeploymentsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListDeploymentsRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListDeploymentsRequestOrBuilder.java new file mode 100644 index 000000000000..27d2552daa73 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListDeploymentsRequestOrBuilder.java @@ -0,0 +1,140 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ListDeploymentsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ListDeploymentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The parent app.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}`
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
      +   * Required. The parent app.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}`
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Optional. The maximum number of deployments to return. The service may
      +   * return fewer than this value. If unspecified, at most 50 deployments will
      +   * be returned. The maximum value is 1000; values above 1000 will be coerced
      +   * to 1000.
      +   * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
      +   * Optional. A page token, received from a previous `ListDeployments` call.
      +   * Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to `ListDeployments` must
      +   * match the call that provided the page token.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
      +   * Optional. A page token, received from a previous `ListDeployments` call.
      +   * Provide this to retrieve the subsequent page.
      +   *
      +   * When paginating, all other parameters provided to `ListDeployments` must
      +   * match the call that provided the page token.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListDeploymentsResponse.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListDeploymentsResponse.java new file mode 100644 index 000000000000..ad4667e97258 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListDeploymentsResponse.java @@ -0,0 +1,1119 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Response message for
      + * [AgentService.ListDeployments][google.cloud.ces.v1.AgentService.ListDeployments].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListDeploymentsResponse} + */ +@com.google.protobuf.Generated +public final class ListDeploymentsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ListDeploymentsResponse) + ListDeploymentsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListDeploymentsResponse"); + } + + // Use ListDeploymentsResponse.newBuilder() to construct. + private ListDeploymentsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListDeploymentsResponse() { + deployments_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListDeploymentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListDeploymentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListDeploymentsResponse.class, + com.google.cloud.ces.v1.ListDeploymentsResponse.Builder.class); + } + + public static final int DEPLOYMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List deployments_; + + /** + * + * + *
      +   * The list of deployments.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Deployment deployments = 1; + */ + @java.lang.Override + public java.util.List getDeploymentsList() { + return deployments_; + } + + /** + * + * + *
      +   * The list of deployments.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Deployment deployments = 1; + */ + @java.lang.Override + public java.util.List + getDeploymentsOrBuilderList() { + return deployments_; + } + + /** + * + * + *
      +   * The list of deployments.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Deployment deployments = 1; + */ + @java.lang.Override + public int getDeploymentsCount() { + return deployments_.size(); + } + + /** + * + * + *
      +   * The list of deployments.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Deployment deployments = 1; + */ + @java.lang.Override + public com.google.cloud.ces.v1.Deployment getDeployments(int index) { + return deployments_.get(index); + } + + /** + * + * + *
      +   * The list of deployments.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Deployment deployments = 1; + */ + @java.lang.Override + public com.google.cloud.ces.v1.DeploymentOrBuilder getDeploymentsOrBuilder(int index) { + return deployments_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
      +   * A token, which can be sent as `page_token` to retrieve the next page.
      +   * If this field is omitted, there are no subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
      +   * A token, which can be sent as `page_token` to retrieve the next page.
      +   * If this field is omitted, there are no subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < deployments_.size(); i++) { + output.writeMessage(1, deployments_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < deployments_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, deployments_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ListDeploymentsResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ListDeploymentsResponse other = + (com.google.cloud.ces.v1.ListDeploymentsResponse) obj; + + if (!getDeploymentsList().equals(other.getDeploymentsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDeploymentsCount() > 0) { + hash = (37 * hash) + DEPLOYMENTS_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ListDeploymentsResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListDeploymentsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListDeploymentsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListDeploymentsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListDeploymentsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListDeploymentsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListDeploymentsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListDeploymentsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListDeploymentsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListDeploymentsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListDeploymentsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListDeploymentsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ListDeploymentsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Response message for
      +   * [AgentService.ListDeployments][google.cloud.ces.v1.AgentService.ListDeployments].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListDeploymentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ListDeploymentsResponse) + com.google.cloud.ces.v1.ListDeploymentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListDeploymentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListDeploymentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListDeploymentsResponse.class, + com.google.cloud.ces.v1.ListDeploymentsResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ListDeploymentsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (deploymentsBuilder_ == null) { + deployments_ = java.util.Collections.emptyList(); + } else { + deployments_ = null; + deploymentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListDeploymentsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListDeploymentsResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ListDeploymentsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListDeploymentsResponse build() { + com.google.cloud.ces.v1.ListDeploymentsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListDeploymentsResponse buildPartial() { + com.google.cloud.ces.v1.ListDeploymentsResponse result = + new com.google.cloud.ces.v1.ListDeploymentsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.ces.v1.ListDeploymentsResponse result) { + if (deploymentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + deployments_ = java.util.Collections.unmodifiableList(deployments_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.deployments_ = deployments_; + } else { + result.deployments_ = deploymentsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.ListDeploymentsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ListDeploymentsResponse) { + return mergeFrom((com.google.cloud.ces.v1.ListDeploymentsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ListDeploymentsResponse other) { + if (other == com.google.cloud.ces.v1.ListDeploymentsResponse.getDefaultInstance()) + return this; + if (deploymentsBuilder_ == null) { + if (!other.deployments_.isEmpty()) { + if (deployments_.isEmpty()) { + deployments_ = other.deployments_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDeploymentsIsMutable(); + deployments_.addAll(other.deployments_); + } + onChanged(); + } + } else { + if (!other.deployments_.isEmpty()) { + if (deploymentsBuilder_.isEmpty()) { + deploymentsBuilder_.dispose(); + deploymentsBuilder_ = null; + deployments_ = other.deployments_; + bitField0_ = (bitField0_ & ~0x00000001); + deploymentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDeploymentsFieldBuilder() + : null; + } else { + deploymentsBuilder_.addAllMessages(other.deployments_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.ces.v1.Deployment m = + input.readMessage( + com.google.cloud.ces.v1.Deployment.parser(), extensionRegistry); + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.add(m); + } else { + deploymentsBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List deployments_ = + java.util.Collections.emptyList(); + + private void ensureDeploymentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + deployments_ = new java.util.ArrayList(deployments_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Deployment, + com.google.cloud.ces.v1.Deployment.Builder, + com.google.cloud.ces.v1.DeploymentOrBuilder> + deploymentsBuilder_; + + /** + * + * + *
      +     * The list of deployments.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Deployment deployments = 1; + */ + public java.util.List getDeploymentsList() { + if (deploymentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(deployments_); + } else { + return deploymentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * The list of deployments.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Deployment deployments = 1; + */ + public int getDeploymentsCount() { + if (deploymentsBuilder_ == null) { + return deployments_.size(); + } else { + return deploymentsBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * The list of deployments.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Deployment deployments = 1; + */ + public com.google.cloud.ces.v1.Deployment getDeployments(int index) { + if (deploymentsBuilder_ == null) { + return deployments_.get(index); + } else { + return deploymentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * The list of deployments.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Deployment deployments = 1; + */ + public Builder setDeployments(int index, com.google.cloud.ces.v1.Deployment value) { + if (deploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentsIsMutable(); + deployments_.set(index, value); + onChanged(); + } else { + deploymentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * The list of deployments.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Deployment deployments = 1; + */ + public Builder setDeployments( + int index, com.google.cloud.ces.v1.Deployment.Builder builderForValue) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.set(index, builderForValue.build()); + onChanged(); + } else { + deploymentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * The list of deployments.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Deployment deployments = 1; + */ + public Builder addDeployments(com.google.cloud.ces.v1.Deployment value) { + if (deploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentsIsMutable(); + deployments_.add(value); + onChanged(); + } else { + deploymentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * The list of deployments.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Deployment deployments = 1; + */ + public Builder addDeployments(int index, com.google.cloud.ces.v1.Deployment value) { + if (deploymentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentsIsMutable(); + deployments_.add(index, value); + onChanged(); + } else { + deploymentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * The list of deployments.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Deployment deployments = 1; + */ + public Builder addDeployments(com.google.cloud.ces.v1.Deployment.Builder builderForValue) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.add(builderForValue.build()); + onChanged(); + } else { + deploymentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * The list of deployments.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Deployment deployments = 1; + */ + public Builder addDeployments( + int index, com.google.cloud.ces.v1.Deployment.Builder builderForValue) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.add(index, builderForValue.build()); + onChanged(); + } else { + deploymentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * The list of deployments.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Deployment deployments = 1; + */ + public Builder addAllDeployments( + java.lang.Iterable values) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deployments_); + onChanged(); + } else { + deploymentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * The list of deployments.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Deployment deployments = 1; + */ + public Builder clearDeployments() { + if (deploymentsBuilder_ == null) { + deployments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + deploymentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * The list of deployments.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Deployment deployments = 1; + */ + public Builder removeDeployments(int index) { + if (deploymentsBuilder_ == null) { + ensureDeploymentsIsMutable(); + deployments_.remove(index); + onChanged(); + } else { + deploymentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * The list of deployments.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Deployment deployments = 1; + */ + public com.google.cloud.ces.v1.Deployment.Builder getDeploymentsBuilder(int index) { + return internalGetDeploymentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * The list of deployments.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Deployment deployments = 1; + */ + public com.google.cloud.ces.v1.DeploymentOrBuilder getDeploymentsOrBuilder(int index) { + if (deploymentsBuilder_ == null) { + return deployments_.get(index); + } else { + return deploymentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * The list of deployments.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Deployment deployments = 1; + */ + public java.util.List + getDeploymentsOrBuilderList() { + if (deploymentsBuilder_ != null) { + return deploymentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(deployments_); + } + } + + /** + * + * + *
      +     * The list of deployments.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Deployment deployments = 1; + */ + public com.google.cloud.ces.v1.Deployment.Builder addDeploymentsBuilder() { + return internalGetDeploymentsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.Deployment.getDefaultInstance()); + } + + /** + * + * + *
      +     * The list of deployments.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Deployment deployments = 1; + */ + public com.google.cloud.ces.v1.Deployment.Builder addDeploymentsBuilder(int index) { + return internalGetDeploymentsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.Deployment.getDefaultInstance()); + } + + /** + * + * + *
      +     * The list of deployments.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Deployment deployments = 1; + */ + public java.util.List getDeploymentsBuilderList() { + return internalGetDeploymentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Deployment, + com.google.cloud.ces.v1.Deployment.Builder, + com.google.cloud.ces.v1.DeploymentOrBuilder> + internalGetDeploymentsFieldBuilder() { + if (deploymentsBuilder_ == null) { + deploymentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Deployment, + com.google.cloud.ces.v1.Deployment.Builder, + com.google.cloud.ces.v1.DeploymentOrBuilder>( + deployments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + deployments_ = null; + } + return deploymentsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
      +     * A token, which can be sent as `page_token` to retrieve the next page.
      +     * If this field is omitted, there are no subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * A token, which can be sent as `page_token` to retrieve the next page.
      +     * If this field is omitted, there are no subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * A token, which can be sent as `page_token` to retrieve the next page.
      +     * If this field is omitted, there are no subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * A token, which can be sent as `page_token` to retrieve the next page.
      +     * If this field is omitted, there are no subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * A token, which can be sent as `page_token` to retrieve the next page.
      +     * If this field is omitted, there are no subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ListDeploymentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ListDeploymentsResponse) + private static final com.google.cloud.ces.v1.ListDeploymentsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ListDeploymentsResponse(); + } + + public static com.google.cloud.ces.v1.ListDeploymentsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDeploymentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListDeploymentsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListDeploymentsResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListDeploymentsResponseOrBuilder.java new file mode 100644 index 000000000000..340aede7db10 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListDeploymentsResponseOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ListDeploymentsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ListDeploymentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The list of deployments.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Deployment deployments = 1; + */ + java.util.List getDeploymentsList(); + + /** + * + * + *
      +   * The list of deployments.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Deployment deployments = 1; + */ + com.google.cloud.ces.v1.Deployment getDeployments(int index); + + /** + * + * + *
      +   * The list of deployments.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Deployment deployments = 1; + */ + int getDeploymentsCount(); + + /** + * + * + *
      +   * The list of deployments.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Deployment deployments = 1; + */ + java.util.List + getDeploymentsOrBuilderList(); + + /** + * + * + *
      +   * The list of deployments.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Deployment deployments = 1; + */ + com.google.cloud.ces.v1.DeploymentOrBuilder getDeploymentsOrBuilder(int index); + + /** + * + * + *
      +   * A token, which can be sent as `page_token` to retrieve the next page.
      +   * If this field is omitted, there are no subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
      +   * A token, which can be sent as `page_token` to retrieve the next page.
      +   * If this field is omitted, there are no subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListExamplesRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListExamplesRequest.java new file mode 100644 index 000000000000..b460d5fb4d0d --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListExamplesRequest.java @@ -0,0 +1,1321 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.ListExamples][google.cloud.ces.v1.AgentService.ListExamples].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListExamplesRequest} + */ +@com.google.protobuf.Generated +public final class ListExamplesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ListExamplesRequest) + ListExamplesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListExamplesRequest"); + } + + // Use ListExamplesRequest.newBuilder() to construct. + private ListExamplesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListExamplesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListExamplesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListExamplesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListExamplesRequest.class, + com.google.cloud.ces.v1.ListExamplesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the app to list examples from.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the app to list examples from.
      +   * 
      + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
      +   * Optional. Requested page size. Server may return fewer items than
      +   * requested. If unspecified, server will pick an appropriate default.
      +   * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListExamplesResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListExamples][google.cloud.ces.v1.AgentService.ListExamples]
      +   * call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListExamplesResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListExamples][google.cloud.ces.v1.AgentService.ListExamples]
      +   * call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the examples.
      +   * See https://google.aip.dev/160 for more details.
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the examples.
      +   * See https://google.aip.dev/160 for more details.
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ListExamplesRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ListExamplesRequest other = + (com.google.cloud.ces.v1.ListExamplesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ListExamplesRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListExamplesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListExamplesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListExamplesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListExamplesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListExamplesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListExamplesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListExamplesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListExamplesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListExamplesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListExamplesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListExamplesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ListExamplesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.ListExamples][google.cloud.ces.v1.AgentService.ListExamples].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListExamplesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ListExamplesRequest) + com.google.cloud.ces.v1.ListExamplesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListExamplesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListExamplesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListExamplesRequest.class, + com.google.cloud.ces.v1.ListExamplesRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ListExamplesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListExamplesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListExamplesRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ListExamplesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListExamplesRequest build() { + com.google.cloud.ces.v1.ListExamplesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListExamplesRequest buildPartial() { + com.google.cloud.ces.v1.ListExamplesRequest result = + new com.google.cloud.ces.v1.ListExamplesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ListExamplesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ListExamplesRequest) { + return mergeFrom((com.google.cloud.ces.v1.ListExamplesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ListExamplesRequest other) { + if (other == com.google.cloud.ces.v1.ListExamplesRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the app to list examples from.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to list examples from.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to list examples from.
      +     * 
      + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to list examples from.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to list examples from.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
      +     * Optional. Requested page size. Server may return fewer items than
      +     * requested. If unspecified, server will pick an appropriate default.
      +     * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
      +     * Optional. Requested page size. Server may return fewer items than
      +     * requested. If unspecified, server will pick an appropriate default.
      +     * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Requested page size. Server may return fewer items than
      +     * requested. If unspecified, server will pick an appropriate default.
      +     * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListExamplesResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListExamples][google.cloud.ces.v1.AgentService.ListExamples]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListExamplesResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListExamples][google.cloud.ces.v1.AgentService.ListExamples]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListExamplesResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListExamples][google.cloud.ces.v1.AgentService.ListExamples]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListExamplesResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListExamples][google.cloud.ces.v1.AgentService.ListExamples]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListExamplesResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListExamples][google.cloud.ces.v1.AgentService.ListExamples]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the examples.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the examples.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the examples.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the examples.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the examples.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ListExamplesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ListExamplesRequest) + private static final com.google.cloud.ces.v1.ListExamplesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ListExamplesRequest(); + } + + public static com.google.cloud.ces.v1.ListExamplesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExamplesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListExamplesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListExamplesRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListExamplesRequestOrBuilder.java new file mode 100644 index 000000000000..f8ab925ddc20 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListExamplesRequestOrBuilder.java @@ -0,0 +1,162 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ListExamplesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ListExamplesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the app to list examples from.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
      +   * Required. The resource name of the app to list examples from.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Optional. Requested page size. Server may return fewer items than
      +   * requested. If unspecified, server will pick an appropriate default.
      +   * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListExamplesResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListExamples][google.cloud.ces.v1.AgentService.ListExamples]
      +   * call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListExamplesResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListExamples][google.cloud.ces.v1.AgentService.ListExamples]
      +   * call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the examples.
      +   * See https://google.aip.dev/160 for more details.
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the examples.
      +   * See https://google.aip.dev/160 for more details.
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListExamplesResponse.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListExamplesResponse.java new file mode 100644 index 000000000000..776e293a7eb8 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListExamplesResponse.java @@ -0,0 +1,1128 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Response message for
      + * [AgentService.ListExamples][google.cloud.ces.v1.AgentService.ListExamples].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListExamplesResponse} + */ +@com.google.protobuf.Generated +public final class ListExamplesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ListExamplesResponse) + ListExamplesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListExamplesResponse"); + } + + // Use ListExamplesResponse.newBuilder() to construct. + private ListExamplesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListExamplesResponse() { + examples_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListExamplesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListExamplesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListExamplesResponse.class, + com.google.cloud.ces.v1.ListExamplesResponse.Builder.class); + } + + public static final int EXAMPLES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List examples_; + + /** + * + * + *
      +   * The list of examples.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Example examples = 1; + */ + @java.lang.Override + public java.util.List getExamplesList() { + return examples_; + } + + /** + * + * + *
      +   * The list of examples.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Example examples = 1; + */ + @java.lang.Override + public java.util.List + getExamplesOrBuilderList() { + return examples_; + } + + /** + * + * + *
      +   * The list of examples.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Example examples = 1; + */ + @java.lang.Override + public int getExamplesCount() { + return examples_.size(); + } + + /** + * + * + *
      +   * The list of examples.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Example examples = 1; + */ + @java.lang.Override + public com.google.cloud.ces.v1.Example getExamples(int index) { + return examples_.get(index); + } + + /** + * + * + *
      +   * The list of examples.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Example examples = 1; + */ + @java.lang.Override + public com.google.cloud.ces.v1.ExampleOrBuilder getExamplesOrBuilder(int index) { + return examples_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListExamplesRequest.page_token][google.cloud.ces.v1.ListExamplesRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListExamplesRequest.page_token][google.cloud.ces.v1.ListExamplesRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < examples_.size(); i++) { + output.writeMessage(1, examples_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < examples_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, examples_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ListExamplesResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ListExamplesResponse other = + (com.google.cloud.ces.v1.ListExamplesResponse) obj; + + if (!getExamplesList().equals(other.getExamplesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getExamplesCount() > 0) { + hash = (37 * hash) + EXAMPLES_FIELD_NUMBER; + hash = (53 * hash) + getExamplesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ListExamplesResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListExamplesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListExamplesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListExamplesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListExamplesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListExamplesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListExamplesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListExamplesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListExamplesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListExamplesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListExamplesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListExamplesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ListExamplesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Response message for
      +   * [AgentService.ListExamples][google.cloud.ces.v1.AgentService.ListExamples].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListExamplesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ListExamplesResponse) + com.google.cloud.ces.v1.ListExamplesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListExamplesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListExamplesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListExamplesResponse.class, + com.google.cloud.ces.v1.ListExamplesResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ListExamplesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (examplesBuilder_ == null) { + examples_ = java.util.Collections.emptyList(); + } else { + examples_ = null; + examplesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListExamplesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListExamplesResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ListExamplesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListExamplesResponse build() { + com.google.cloud.ces.v1.ListExamplesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListExamplesResponse buildPartial() { + com.google.cloud.ces.v1.ListExamplesResponse result = + new com.google.cloud.ces.v1.ListExamplesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1.ListExamplesResponse result) { + if (examplesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + examples_ = java.util.Collections.unmodifiableList(examples_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.examples_ = examples_; + } else { + result.examples_ = examplesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.ListExamplesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ListExamplesResponse) { + return mergeFrom((com.google.cloud.ces.v1.ListExamplesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ListExamplesResponse other) { + if (other == com.google.cloud.ces.v1.ListExamplesResponse.getDefaultInstance()) return this; + if (examplesBuilder_ == null) { + if (!other.examples_.isEmpty()) { + if (examples_.isEmpty()) { + examples_ = other.examples_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureExamplesIsMutable(); + examples_.addAll(other.examples_); + } + onChanged(); + } + } else { + if (!other.examples_.isEmpty()) { + if (examplesBuilder_.isEmpty()) { + examplesBuilder_.dispose(); + examplesBuilder_ = null; + examples_ = other.examples_; + bitField0_ = (bitField0_ & ~0x00000001); + examplesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetExamplesFieldBuilder() + : null; + } else { + examplesBuilder_.addAllMessages(other.examples_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.ces.v1.Example m = + input.readMessage(com.google.cloud.ces.v1.Example.parser(), extensionRegistry); + if (examplesBuilder_ == null) { + ensureExamplesIsMutable(); + examples_.add(m); + } else { + examplesBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List examples_ = + java.util.Collections.emptyList(); + + private void ensureExamplesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + examples_ = new java.util.ArrayList(examples_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Example, + com.google.cloud.ces.v1.Example.Builder, + com.google.cloud.ces.v1.ExampleOrBuilder> + examplesBuilder_; + + /** + * + * + *
      +     * The list of examples.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Example examples = 1; + */ + public java.util.List getExamplesList() { + if (examplesBuilder_ == null) { + return java.util.Collections.unmodifiableList(examples_); + } else { + return examplesBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * The list of examples.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Example examples = 1; + */ + public int getExamplesCount() { + if (examplesBuilder_ == null) { + return examples_.size(); + } else { + return examplesBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * The list of examples.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Example examples = 1; + */ + public com.google.cloud.ces.v1.Example getExamples(int index) { + if (examplesBuilder_ == null) { + return examples_.get(index); + } else { + return examplesBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * The list of examples.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Example examples = 1; + */ + public Builder setExamples(int index, com.google.cloud.ces.v1.Example value) { + if (examplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExamplesIsMutable(); + examples_.set(index, value); + onChanged(); + } else { + examplesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * The list of examples.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Example examples = 1; + */ + public Builder setExamples(int index, com.google.cloud.ces.v1.Example.Builder builderForValue) { + if (examplesBuilder_ == null) { + ensureExamplesIsMutable(); + examples_.set(index, builderForValue.build()); + onChanged(); + } else { + examplesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * The list of examples.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Example examples = 1; + */ + public Builder addExamples(com.google.cloud.ces.v1.Example value) { + if (examplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExamplesIsMutable(); + examples_.add(value); + onChanged(); + } else { + examplesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * The list of examples.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Example examples = 1; + */ + public Builder addExamples(int index, com.google.cloud.ces.v1.Example value) { + if (examplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExamplesIsMutable(); + examples_.add(index, value); + onChanged(); + } else { + examplesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * The list of examples.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Example examples = 1; + */ + public Builder addExamples(com.google.cloud.ces.v1.Example.Builder builderForValue) { + if (examplesBuilder_ == null) { + ensureExamplesIsMutable(); + examples_.add(builderForValue.build()); + onChanged(); + } else { + examplesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * The list of examples.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Example examples = 1; + */ + public Builder addExamples(int index, com.google.cloud.ces.v1.Example.Builder builderForValue) { + if (examplesBuilder_ == null) { + ensureExamplesIsMutable(); + examples_.add(index, builderForValue.build()); + onChanged(); + } else { + examplesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * The list of examples.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Example examples = 1; + */ + public Builder addAllExamples( + java.lang.Iterable values) { + if (examplesBuilder_ == null) { + ensureExamplesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, examples_); + onChanged(); + } else { + examplesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * The list of examples.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Example examples = 1; + */ + public Builder clearExamples() { + if (examplesBuilder_ == null) { + examples_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + examplesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * The list of examples.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Example examples = 1; + */ + public Builder removeExamples(int index) { + if (examplesBuilder_ == null) { + ensureExamplesIsMutable(); + examples_.remove(index); + onChanged(); + } else { + examplesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * The list of examples.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Example examples = 1; + */ + public com.google.cloud.ces.v1.Example.Builder getExamplesBuilder(int index) { + return internalGetExamplesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * The list of examples.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Example examples = 1; + */ + public com.google.cloud.ces.v1.ExampleOrBuilder getExamplesOrBuilder(int index) { + if (examplesBuilder_ == null) { + return examples_.get(index); + } else { + return examplesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * The list of examples.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Example examples = 1; + */ + public java.util.List + getExamplesOrBuilderList() { + if (examplesBuilder_ != null) { + return examplesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(examples_); + } + } + + /** + * + * + *
      +     * The list of examples.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Example examples = 1; + */ + public com.google.cloud.ces.v1.Example.Builder addExamplesBuilder() { + return internalGetExamplesFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.Example.getDefaultInstance()); + } + + /** + * + * + *
      +     * The list of examples.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Example examples = 1; + */ + public com.google.cloud.ces.v1.Example.Builder addExamplesBuilder(int index) { + return internalGetExamplesFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.Example.getDefaultInstance()); + } + + /** + * + * + *
      +     * The list of examples.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Example examples = 1; + */ + public java.util.List getExamplesBuilderList() { + return internalGetExamplesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Example, + com.google.cloud.ces.v1.Example.Builder, + com.google.cloud.ces.v1.ExampleOrBuilder> + internalGetExamplesFieldBuilder() { + if (examplesBuilder_ == null) { + examplesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Example, + com.google.cloud.ces.v1.Example.Builder, + com.google.cloud.ces.v1.ExampleOrBuilder>( + examples_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + examples_ = null; + } + return examplesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListExamplesRequest.page_token][google.cloud.ces.v1.ListExamplesRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListExamplesRequest.page_token][google.cloud.ces.v1.ListExamplesRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListExamplesRequest.page_token][google.cloud.ces.v1.ListExamplesRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListExamplesRequest.page_token][google.cloud.ces.v1.ListExamplesRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListExamplesRequest.page_token][google.cloud.ces.v1.ListExamplesRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ListExamplesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ListExamplesResponse) + private static final com.google.cloud.ces.v1.ListExamplesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ListExamplesResponse(); + } + + public static com.google.cloud.ces.v1.ListExamplesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExamplesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListExamplesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListExamplesResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListExamplesResponseOrBuilder.java new file mode 100644 index 000000000000..533676ddaf6e --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListExamplesResponseOrBuilder.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ListExamplesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ListExamplesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The list of examples.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Example examples = 1; + */ + java.util.List getExamplesList(); + + /** + * + * + *
      +   * The list of examples.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Example examples = 1; + */ + com.google.cloud.ces.v1.Example getExamples(int index); + + /** + * + * + *
      +   * The list of examples.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Example examples = 1; + */ + int getExamplesCount(); + + /** + * + * + *
      +   * The list of examples.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Example examples = 1; + */ + java.util.List getExamplesOrBuilderList(); + + /** + * + * + *
      +   * The list of examples.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Example examples = 1; + */ + com.google.cloud.ces.v1.ExampleOrBuilder getExamplesOrBuilder(int index); + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListExamplesRequest.page_token][google.cloud.ces.v1.ListExamplesRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListExamplesRequest.page_token][google.cloud.ces.v1.ListExamplesRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListGuardrailsRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListGuardrailsRequest.java new file mode 100644 index 000000000000..4a43d5290a67 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListGuardrailsRequest.java @@ -0,0 +1,1321 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.ListGuardrails][google.cloud.ces.v1.AgentService.ListGuardrails].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListGuardrailsRequest} + */ +@com.google.protobuf.Generated +public final class ListGuardrailsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ListGuardrailsRequest) + ListGuardrailsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListGuardrailsRequest"); + } + + // Use ListGuardrailsRequest.newBuilder() to construct. + private ListGuardrailsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListGuardrailsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListGuardrailsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListGuardrailsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListGuardrailsRequest.class, + com.google.cloud.ces.v1.ListGuardrailsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the app to list guardrails from.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the app to list guardrails from.
      +   * 
      + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
      +   * Optional. Requested page size. Server may return fewer items than
      +   * requested. If unspecified, server will pick an appropriate default.
      +   * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListGuardrailsResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListGuardrails][google.cloud.ces.v1.AgentService.ListGuardrails]
      +   * call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListGuardrailsResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListGuardrails][google.cloud.ces.v1.AgentService.ListGuardrails]
      +   * call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the guardrails.
      +   * See https://google.aip.dev/160 for more details.
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the guardrails.
      +   * See https://google.aip.dev/160 for more details.
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ListGuardrailsRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ListGuardrailsRequest other = + (com.google.cloud.ces.v1.ListGuardrailsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ListGuardrailsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListGuardrailsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListGuardrailsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListGuardrailsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListGuardrailsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListGuardrailsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListGuardrailsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListGuardrailsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListGuardrailsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListGuardrailsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListGuardrailsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListGuardrailsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ListGuardrailsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.ListGuardrails][google.cloud.ces.v1.AgentService.ListGuardrails].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListGuardrailsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ListGuardrailsRequest) + com.google.cloud.ces.v1.ListGuardrailsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListGuardrailsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListGuardrailsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListGuardrailsRequest.class, + com.google.cloud.ces.v1.ListGuardrailsRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ListGuardrailsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListGuardrailsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListGuardrailsRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ListGuardrailsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListGuardrailsRequest build() { + com.google.cloud.ces.v1.ListGuardrailsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListGuardrailsRequest buildPartial() { + com.google.cloud.ces.v1.ListGuardrailsRequest result = + new com.google.cloud.ces.v1.ListGuardrailsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ListGuardrailsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ListGuardrailsRequest) { + return mergeFrom((com.google.cloud.ces.v1.ListGuardrailsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ListGuardrailsRequest other) { + if (other == com.google.cloud.ces.v1.ListGuardrailsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the app to list guardrails from.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to list guardrails from.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to list guardrails from.
      +     * 
      + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to list guardrails from.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to list guardrails from.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
      +     * Optional. Requested page size. Server may return fewer items than
      +     * requested. If unspecified, server will pick an appropriate default.
      +     * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
      +     * Optional. Requested page size. Server may return fewer items than
      +     * requested. If unspecified, server will pick an appropriate default.
      +     * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Requested page size. Server may return fewer items than
      +     * requested. If unspecified, server will pick an appropriate default.
      +     * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListGuardrailsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListGuardrails][google.cloud.ces.v1.AgentService.ListGuardrails]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListGuardrailsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListGuardrails][google.cloud.ces.v1.AgentService.ListGuardrails]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListGuardrailsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListGuardrails][google.cloud.ces.v1.AgentService.ListGuardrails]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListGuardrailsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListGuardrails][google.cloud.ces.v1.AgentService.ListGuardrails]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListGuardrailsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListGuardrails][google.cloud.ces.v1.AgentService.ListGuardrails]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the guardrails.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the guardrails.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the guardrails.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the guardrails.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the guardrails.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ListGuardrailsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ListGuardrailsRequest) + private static final com.google.cloud.ces.v1.ListGuardrailsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ListGuardrailsRequest(); + } + + public static com.google.cloud.ces.v1.ListGuardrailsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGuardrailsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListGuardrailsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListGuardrailsRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListGuardrailsRequestOrBuilder.java new file mode 100644 index 000000000000..4837ec45a53b --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListGuardrailsRequestOrBuilder.java @@ -0,0 +1,162 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ListGuardrailsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ListGuardrailsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the app to list guardrails from.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
      +   * Required. The resource name of the app to list guardrails from.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Optional. Requested page size. Server may return fewer items than
      +   * requested. If unspecified, server will pick an appropriate default.
      +   * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListGuardrailsResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListGuardrails][google.cloud.ces.v1.AgentService.ListGuardrails]
      +   * call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListGuardrailsResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListGuardrails][google.cloud.ces.v1.AgentService.ListGuardrails]
      +   * call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the guardrails.
      +   * See https://google.aip.dev/160 for more details.
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the guardrails.
      +   * See https://google.aip.dev/160 for more details.
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListGuardrailsResponse.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListGuardrailsResponse.java new file mode 100644 index 000000000000..da3a0be1f603 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListGuardrailsResponse.java @@ -0,0 +1,1131 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Response message for
      + * [AgentService.ListGuardrails][google.cloud.ces.v1.AgentService.ListGuardrails].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListGuardrailsResponse} + */ +@com.google.protobuf.Generated +public final class ListGuardrailsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ListGuardrailsResponse) + ListGuardrailsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListGuardrailsResponse"); + } + + // Use ListGuardrailsResponse.newBuilder() to construct. + private ListGuardrailsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListGuardrailsResponse() { + guardrails_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListGuardrailsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListGuardrailsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListGuardrailsResponse.class, + com.google.cloud.ces.v1.ListGuardrailsResponse.Builder.class); + } + + public static final int GUARDRAILS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List guardrails_; + + /** + * + * + *
      +   * The list of guardrails.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 1; + */ + @java.lang.Override + public java.util.List getGuardrailsList() { + return guardrails_; + } + + /** + * + * + *
      +   * The list of guardrails.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 1; + */ + @java.lang.Override + public java.util.List + getGuardrailsOrBuilderList() { + return guardrails_; + } + + /** + * + * + *
      +   * The list of guardrails.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 1; + */ + @java.lang.Override + public int getGuardrailsCount() { + return guardrails_.size(); + } + + /** + * + * + *
      +   * The list of guardrails.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 1; + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail getGuardrails(int index) { + return guardrails_.get(index); + } + + /** + * + * + *
      +   * The list of guardrails.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 1; + */ + @java.lang.Override + public com.google.cloud.ces.v1.GuardrailOrBuilder getGuardrailsOrBuilder(int index) { + return guardrails_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListGuardrailsRequest.page_token][google.cloud.ces.v1.ListGuardrailsRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListGuardrailsRequest.page_token][google.cloud.ces.v1.ListGuardrailsRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < guardrails_.size(); i++) { + output.writeMessage(1, guardrails_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < guardrails_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, guardrails_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ListGuardrailsResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ListGuardrailsResponse other = + (com.google.cloud.ces.v1.ListGuardrailsResponse) obj; + + if (!getGuardrailsList().equals(other.getGuardrailsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getGuardrailsCount() > 0) { + hash = (37 * hash) + GUARDRAILS_FIELD_NUMBER; + hash = (53 * hash) + getGuardrailsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ListGuardrailsResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListGuardrailsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListGuardrailsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListGuardrailsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListGuardrailsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListGuardrailsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListGuardrailsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListGuardrailsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListGuardrailsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListGuardrailsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListGuardrailsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListGuardrailsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ListGuardrailsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Response message for
      +   * [AgentService.ListGuardrails][google.cloud.ces.v1.AgentService.ListGuardrails].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListGuardrailsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ListGuardrailsResponse) + com.google.cloud.ces.v1.ListGuardrailsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListGuardrailsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListGuardrailsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListGuardrailsResponse.class, + com.google.cloud.ces.v1.ListGuardrailsResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ListGuardrailsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (guardrailsBuilder_ == null) { + guardrails_ = java.util.Collections.emptyList(); + } else { + guardrails_ = null; + guardrailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListGuardrailsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListGuardrailsResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ListGuardrailsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListGuardrailsResponse build() { + com.google.cloud.ces.v1.ListGuardrailsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListGuardrailsResponse buildPartial() { + com.google.cloud.ces.v1.ListGuardrailsResponse result = + new com.google.cloud.ces.v1.ListGuardrailsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1.ListGuardrailsResponse result) { + if (guardrailsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + guardrails_ = java.util.Collections.unmodifiableList(guardrails_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.guardrails_ = guardrails_; + } else { + result.guardrails_ = guardrailsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.ListGuardrailsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ListGuardrailsResponse) { + return mergeFrom((com.google.cloud.ces.v1.ListGuardrailsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ListGuardrailsResponse other) { + if (other == com.google.cloud.ces.v1.ListGuardrailsResponse.getDefaultInstance()) return this; + if (guardrailsBuilder_ == null) { + if (!other.guardrails_.isEmpty()) { + if (guardrails_.isEmpty()) { + guardrails_ = other.guardrails_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureGuardrailsIsMutable(); + guardrails_.addAll(other.guardrails_); + } + onChanged(); + } + } else { + if (!other.guardrails_.isEmpty()) { + if (guardrailsBuilder_.isEmpty()) { + guardrailsBuilder_.dispose(); + guardrailsBuilder_ = null; + guardrails_ = other.guardrails_; + bitField0_ = (bitField0_ & ~0x00000001); + guardrailsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetGuardrailsFieldBuilder() + : null; + } else { + guardrailsBuilder_.addAllMessages(other.guardrails_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.ces.v1.Guardrail m = + input.readMessage( + com.google.cloud.ces.v1.Guardrail.parser(), extensionRegistry); + if (guardrailsBuilder_ == null) { + ensureGuardrailsIsMutable(); + guardrails_.add(m); + } else { + guardrailsBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List guardrails_ = + java.util.Collections.emptyList(); + + private void ensureGuardrailsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + guardrails_ = new java.util.ArrayList(guardrails_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Guardrail, + com.google.cloud.ces.v1.Guardrail.Builder, + com.google.cloud.ces.v1.GuardrailOrBuilder> + guardrailsBuilder_; + + /** + * + * + *
      +     * The list of guardrails.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 1; + */ + public java.util.List getGuardrailsList() { + if (guardrailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(guardrails_); + } else { + return guardrailsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * The list of guardrails.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 1; + */ + public int getGuardrailsCount() { + if (guardrailsBuilder_ == null) { + return guardrails_.size(); + } else { + return guardrailsBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * The list of guardrails.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 1; + */ + public com.google.cloud.ces.v1.Guardrail getGuardrails(int index) { + if (guardrailsBuilder_ == null) { + return guardrails_.get(index); + } else { + return guardrailsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * The list of guardrails.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 1; + */ + public Builder setGuardrails(int index, com.google.cloud.ces.v1.Guardrail value) { + if (guardrailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGuardrailsIsMutable(); + guardrails_.set(index, value); + onChanged(); + } else { + guardrailsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * The list of guardrails.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 1; + */ + public Builder setGuardrails( + int index, com.google.cloud.ces.v1.Guardrail.Builder builderForValue) { + if (guardrailsBuilder_ == null) { + ensureGuardrailsIsMutable(); + guardrails_.set(index, builderForValue.build()); + onChanged(); + } else { + guardrailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * The list of guardrails.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 1; + */ + public Builder addGuardrails(com.google.cloud.ces.v1.Guardrail value) { + if (guardrailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGuardrailsIsMutable(); + guardrails_.add(value); + onChanged(); + } else { + guardrailsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * The list of guardrails.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 1; + */ + public Builder addGuardrails(int index, com.google.cloud.ces.v1.Guardrail value) { + if (guardrailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGuardrailsIsMutable(); + guardrails_.add(index, value); + onChanged(); + } else { + guardrailsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * The list of guardrails.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 1; + */ + public Builder addGuardrails(com.google.cloud.ces.v1.Guardrail.Builder builderForValue) { + if (guardrailsBuilder_ == null) { + ensureGuardrailsIsMutable(); + guardrails_.add(builderForValue.build()); + onChanged(); + } else { + guardrailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * The list of guardrails.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 1; + */ + public Builder addGuardrails( + int index, com.google.cloud.ces.v1.Guardrail.Builder builderForValue) { + if (guardrailsBuilder_ == null) { + ensureGuardrailsIsMutable(); + guardrails_.add(index, builderForValue.build()); + onChanged(); + } else { + guardrailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * The list of guardrails.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 1; + */ + public Builder addAllGuardrails( + java.lang.Iterable values) { + if (guardrailsBuilder_ == null) { + ensureGuardrailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, guardrails_); + onChanged(); + } else { + guardrailsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * The list of guardrails.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 1; + */ + public Builder clearGuardrails() { + if (guardrailsBuilder_ == null) { + guardrails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + guardrailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * The list of guardrails.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 1; + */ + public Builder removeGuardrails(int index) { + if (guardrailsBuilder_ == null) { + ensureGuardrailsIsMutable(); + guardrails_.remove(index); + onChanged(); + } else { + guardrailsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * The list of guardrails.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 1; + */ + public com.google.cloud.ces.v1.Guardrail.Builder getGuardrailsBuilder(int index) { + return internalGetGuardrailsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * The list of guardrails.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 1; + */ + public com.google.cloud.ces.v1.GuardrailOrBuilder getGuardrailsOrBuilder(int index) { + if (guardrailsBuilder_ == null) { + return guardrails_.get(index); + } else { + return guardrailsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * The list of guardrails.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 1; + */ + public java.util.List + getGuardrailsOrBuilderList() { + if (guardrailsBuilder_ != null) { + return guardrailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(guardrails_); + } + } + + /** + * + * + *
      +     * The list of guardrails.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 1; + */ + public com.google.cloud.ces.v1.Guardrail.Builder addGuardrailsBuilder() { + return internalGetGuardrailsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.Guardrail.getDefaultInstance()); + } + + /** + * + * + *
      +     * The list of guardrails.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 1; + */ + public com.google.cloud.ces.v1.Guardrail.Builder addGuardrailsBuilder(int index) { + return internalGetGuardrailsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.Guardrail.getDefaultInstance()); + } + + /** + * + * + *
      +     * The list of guardrails.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 1; + */ + public java.util.List getGuardrailsBuilderList() { + return internalGetGuardrailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Guardrail, + com.google.cloud.ces.v1.Guardrail.Builder, + com.google.cloud.ces.v1.GuardrailOrBuilder> + internalGetGuardrailsFieldBuilder() { + if (guardrailsBuilder_ == null) { + guardrailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Guardrail, + com.google.cloud.ces.v1.Guardrail.Builder, + com.google.cloud.ces.v1.GuardrailOrBuilder>( + guardrails_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + guardrails_ = null; + } + return guardrailsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListGuardrailsRequest.page_token][google.cloud.ces.v1.ListGuardrailsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListGuardrailsRequest.page_token][google.cloud.ces.v1.ListGuardrailsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListGuardrailsRequest.page_token][google.cloud.ces.v1.ListGuardrailsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListGuardrailsRequest.page_token][google.cloud.ces.v1.ListGuardrailsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListGuardrailsRequest.page_token][google.cloud.ces.v1.ListGuardrailsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ListGuardrailsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ListGuardrailsResponse) + private static final com.google.cloud.ces.v1.ListGuardrailsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ListGuardrailsResponse(); + } + + public static com.google.cloud.ces.v1.ListGuardrailsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGuardrailsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListGuardrailsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListGuardrailsResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListGuardrailsResponseOrBuilder.java new file mode 100644 index 000000000000..d798c3d08bb0 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListGuardrailsResponseOrBuilder.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ListGuardrailsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ListGuardrailsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The list of guardrails.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 1; + */ + java.util.List getGuardrailsList(); + + /** + * + * + *
      +   * The list of guardrails.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 1; + */ + com.google.cloud.ces.v1.Guardrail getGuardrails(int index); + + /** + * + * + *
      +   * The list of guardrails.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 1; + */ + int getGuardrailsCount(); + + /** + * + * + *
      +   * The list of guardrails.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 1; + */ + java.util.List getGuardrailsOrBuilderList(); + + /** + * + * + *
      +   * The list of guardrails.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Guardrail guardrails = 1; + */ + com.google.cloud.ces.v1.GuardrailOrBuilder getGuardrailsOrBuilder(int index); + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListGuardrailsRequest.page_token][google.cloud.ces.v1.ListGuardrailsRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListGuardrailsRequest.page_token][google.cloud.ces.v1.ListGuardrailsRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListToolsRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListToolsRequest.java new file mode 100644 index 000000000000..fc64e87b525d --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListToolsRequest.java @@ -0,0 +1,1320 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.ListTools][google.cloud.ces.v1.AgentService.ListTools].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListToolsRequest} + */ +@com.google.protobuf.Generated +public final class ListToolsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ListToolsRequest) + ListToolsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListToolsRequest"); + } + + // Use ListToolsRequest.newBuilder() to construct. + private ListToolsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListToolsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListToolsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListToolsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListToolsRequest.class, + com.google.cloud.ces.v1.ListToolsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the app to list tools from.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the app to list tools from.
      +   * 
      + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
      +   * Optional. Requested page size. Server may return fewer items than
      +   * requested. If unspecified, server will pick an appropriate default.
      +   * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListToolsResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListTools][google.cloud.ces.v1.AgentService.ListTools] call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListToolsResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListTools][google.cloud.ces.v1.AgentService.ListTools] call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the tools. Use
      +   * "include_system_tools=true" to include system tools in the response. See
      +   * https://google.aip.dev/160 for more details.
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the tools. Use
      +   * "include_system_tools=true" to include system tools in the response. See
      +   * https://google.aip.dev/160 for more details.
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ListToolsRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ListToolsRequest other = (com.google.cloud.ces.v1.ListToolsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ListToolsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListToolsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListToolsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListToolsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListToolsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListToolsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListToolsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListToolsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListToolsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListToolsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListToolsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListToolsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ListToolsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.ListTools][google.cloud.ces.v1.AgentService.ListTools].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListToolsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ListToolsRequest) + com.google.cloud.ces.v1.ListToolsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListToolsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListToolsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListToolsRequest.class, + com.google.cloud.ces.v1.ListToolsRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ListToolsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListToolsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListToolsRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ListToolsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListToolsRequest build() { + com.google.cloud.ces.v1.ListToolsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListToolsRequest buildPartial() { + com.google.cloud.ces.v1.ListToolsRequest result = + new com.google.cloud.ces.v1.ListToolsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ListToolsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ListToolsRequest) { + return mergeFrom((com.google.cloud.ces.v1.ListToolsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ListToolsRequest other) { + if (other == com.google.cloud.ces.v1.ListToolsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the app to list tools from.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to list tools from.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to list tools from.
      +     * 
      + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to list tools from.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to list tools from.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
      +     * Optional. Requested page size. Server may return fewer items than
      +     * requested. If unspecified, server will pick an appropriate default.
      +     * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
      +     * Optional. Requested page size. Server may return fewer items than
      +     * requested. If unspecified, server will pick an appropriate default.
      +     * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Requested page size. Server may return fewer items than
      +     * requested. If unspecified, server will pick an appropriate default.
      +     * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListToolsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListTools][google.cloud.ces.v1.AgentService.ListTools] call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListToolsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListTools][google.cloud.ces.v1.AgentService.ListTools] call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListToolsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListTools][google.cloud.ces.v1.AgentService.ListTools] call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListToolsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListTools][google.cloud.ces.v1.AgentService.ListTools] call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListToolsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListTools][google.cloud.ces.v1.AgentService.ListTools] call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the tools. Use
      +     * "include_system_tools=true" to include system tools in the response. See
      +     * https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the tools. Use
      +     * "include_system_tools=true" to include system tools in the response. See
      +     * https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the tools. Use
      +     * "include_system_tools=true" to include system tools in the response. See
      +     * https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the tools. Use
      +     * "include_system_tools=true" to include system tools in the response. See
      +     * https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the tools. Use
      +     * "include_system_tools=true" to include system tools in the response. See
      +     * https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ListToolsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ListToolsRequest) + private static final com.google.cloud.ces.v1.ListToolsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ListToolsRequest(); + } + + public static com.google.cloud.ces.v1.ListToolsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListToolsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListToolsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListToolsRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListToolsRequestOrBuilder.java new file mode 100644 index 000000000000..6f0a5235ccc1 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListToolsRequestOrBuilder.java @@ -0,0 +1,162 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ListToolsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ListToolsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the app to list tools from.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
      +   * Required. The resource name of the app to list tools from.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Optional. Requested page size. Server may return fewer items than
      +   * requested. If unspecified, server will pick an appropriate default.
      +   * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListToolsResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListTools][google.cloud.ces.v1.AgentService.ListTools] call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListToolsResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListTools][google.cloud.ces.v1.AgentService.ListTools] call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the tools. Use
      +   * "include_system_tools=true" to include system tools in the response. See
      +   * https://google.aip.dev/160 for more details.
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the tools. Use
      +   * "include_system_tools=true" to include system tools in the response. See
      +   * https://google.aip.dev/160 for more details.
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListToolsResponse.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListToolsResponse.java new file mode 100644 index 000000000000..57e85f31d98f --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListToolsResponse.java @@ -0,0 +1,1124 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Response message for
      + * [AgentService.ListTools][google.cloud.ces.v1.AgentService.ListTools].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListToolsResponse} + */ +@com.google.protobuf.Generated +public final class ListToolsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ListToolsResponse) + ListToolsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListToolsResponse"); + } + + // Use ListToolsResponse.newBuilder() to construct. + private ListToolsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListToolsResponse() { + tools_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListToolsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListToolsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListToolsResponse.class, + com.google.cloud.ces.v1.ListToolsResponse.Builder.class); + } + + public static final int TOOLS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List tools_; + + /** + * + * + *
      +   * The list of tools.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1; + */ + @java.lang.Override + public java.util.List getToolsList() { + return tools_; + } + + /** + * + * + *
      +   * The list of tools.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1; + */ + @java.lang.Override + public java.util.List getToolsOrBuilderList() { + return tools_; + } + + /** + * + * + *
      +   * The list of tools.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1; + */ + @java.lang.Override + public int getToolsCount() { + return tools_.size(); + } + + /** + * + * + *
      +   * The list of tools.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1; + */ + @java.lang.Override + public com.google.cloud.ces.v1.Tool getTools(int index) { + return tools_.get(index); + } + + /** + * + * + *
      +   * The list of tools.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1; + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolOrBuilder getToolsOrBuilder(int index) { + return tools_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListToolsRequest.page_token][google.cloud.ces.v1.ListToolsRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListToolsRequest.page_token][google.cloud.ces.v1.ListToolsRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < tools_.size(); i++) { + output.writeMessage(1, tools_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < tools_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tools_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ListToolsResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ListToolsResponse other = + (com.google.cloud.ces.v1.ListToolsResponse) obj; + + if (!getToolsList().equals(other.getToolsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getToolsCount() > 0) { + hash = (37 * hash) + TOOLS_FIELD_NUMBER; + hash = (53 * hash) + getToolsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ListToolsResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListToolsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListToolsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListToolsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListToolsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListToolsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListToolsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListToolsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListToolsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListToolsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListToolsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListToolsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ListToolsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Response message for
      +   * [AgentService.ListTools][google.cloud.ces.v1.AgentService.ListTools].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListToolsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ListToolsResponse) + com.google.cloud.ces.v1.ListToolsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListToolsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListToolsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListToolsResponse.class, + com.google.cloud.ces.v1.ListToolsResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ListToolsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolsBuilder_ == null) { + tools_ = java.util.Collections.emptyList(); + } else { + tools_ = null; + toolsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListToolsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListToolsResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ListToolsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListToolsResponse build() { + com.google.cloud.ces.v1.ListToolsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListToolsResponse buildPartial() { + com.google.cloud.ces.v1.ListToolsResponse result = + new com.google.cloud.ces.v1.ListToolsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1.ListToolsResponse result) { + if (toolsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tools_ = java.util.Collections.unmodifiableList(tools_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tools_ = tools_; + } else { + result.tools_ = toolsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.ListToolsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ListToolsResponse) { + return mergeFrom((com.google.cloud.ces.v1.ListToolsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ListToolsResponse other) { + if (other == com.google.cloud.ces.v1.ListToolsResponse.getDefaultInstance()) return this; + if (toolsBuilder_ == null) { + if (!other.tools_.isEmpty()) { + if (tools_.isEmpty()) { + tools_ = other.tools_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureToolsIsMutable(); + tools_.addAll(other.tools_); + } + onChanged(); + } + } else { + if (!other.tools_.isEmpty()) { + if (toolsBuilder_.isEmpty()) { + toolsBuilder_.dispose(); + toolsBuilder_ = null; + tools_ = other.tools_; + bitField0_ = (bitField0_ & ~0x00000001); + toolsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetToolsFieldBuilder() + : null; + } else { + toolsBuilder_.addAllMessages(other.tools_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.ces.v1.Tool m = + input.readMessage(com.google.cloud.ces.v1.Tool.parser(), extensionRegistry); + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(m); + } else { + toolsBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List tools_ = java.util.Collections.emptyList(); + + private void ensureToolsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tools_ = new java.util.ArrayList(tools_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Tool, + com.google.cloud.ces.v1.Tool.Builder, + com.google.cloud.ces.v1.ToolOrBuilder> + toolsBuilder_; + + /** + * + * + *
      +     * The list of tools.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1; + */ + public java.util.List getToolsList() { + if (toolsBuilder_ == null) { + return java.util.Collections.unmodifiableList(tools_); + } else { + return toolsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * The list of tools.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1; + */ + public int getToolsCount() { + if (toolsBuilder_ == null) { + return tools_.size(); + } else { + return toolsBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * The list of tools.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1; + */ + public com.google.cloud.ces.v1.Tool getTools(int index) { + if (toolsBuilder_ == null) { + return tools_.get(index); + } else { + return toolsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * The list of tools.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1; + */ + public Builder setTools(int index, com.google.cloud.ces.v1.Tool value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.set(index, value); + onChanged(); + } else { + toolsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * The list of tools.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1; + */ + public Builder setTools(int index, com.google.cloud.ces.v1.Tool.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.set(index, builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * The list of tools.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1; + */ + public Builder addTools(com.google.cloud.ces.v1.Tool value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.add(value); + onChanged(); + } else { + toolsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * The list of tools.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1; + */ + public Builder addTools(int index, com.google.cloud.ces.v1.Tool value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.add(index, value); + onChanged(); + } else { + toolsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * The list of tools.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1; + */ + public Builder addTools(com.google.cloud.ces.v1.Tool.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * The list of tools.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1; + */ + public Builder addTools(int index, com.google.cloud.ces.v1.Tool.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(index, builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * The list of tools.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1; + */ + public Builder addAllTools(java.lang.Iterable values) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tools_); + onChanged(); + } else { + toolsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * The list of tools.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1; + */ + public Builder clearTools() { + if (toolsBuilder_ == null) { + tools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + toolsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * The list of tools.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1; + */ + public Builder removeTools(int index) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.remove(index); + onChanged(); + } else { + toolsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * The list of tools.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1; + */ + public com.google.cloud.ces.v1.Tool.Builder getToolsBuilder(int index) { + return internalGetToolsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * The list of tools.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1; + */ + public com.google.cloud.ces.v1.ToolOrBuilder getToolsOrBuilder(int index) { + if (toolsBuilder_ == null) { + return tools_.get(index); + } else { + return toolsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * The list of tools.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1; + */ + public java.util.List getToolsOrBuilderList() { + if (toolsBuilder_ != null) { + return toolsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tools_); + } + } + + /** + * + * + *
      +     * The list of tools.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1; + */ + public com.google.cloud.ces.v1.Tool.Builder addToolsBuilder() { + return internalGetToolsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.Tool.getDefaultInstance()); + } + + /** + * + * + *
      +     * The list of tools.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1; + */ + public com.google.cloud.ces.v1.Tool.Builder addToolsBuilder(int index) { + return internalGetToolsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.Tool.getDefaultInstance()); + } + + /** + * + * + *
      +     * The list of tools.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1; + */ + public java.util.List getToolsBuilderList() { + return internalGetToolsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Tool, + com.google.cloud.ces.v1.Tool.Builder, + com.google.cloud.ces.v1.ToolOrBuilder> + internalGetToolsFieldBuilder() { + if (toolsBuilder_ == null) { + toolsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Tool, + com.google.cloud.ces.v1.Tool.Builder, + com.google.cloud.ces.v1.ToolOrBuilder>( + tools_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + tools_ = null; + } + return toolsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListToolsRequest.page_token][google.cloud.ces.v1.ListToolsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListToolsRequest.page_token][google.cloud.ces.v1.ListToolsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListToolsRequest.page_token][google.cloud.ces.v1.ListToolsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListToolsRequest.page_token][google.cloud.ces.v1.ListToolsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListToolsRequest.page_token][google.cloud.ces.v1.ListToolsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ListToolsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ListToolsResponse) + private static final com.google.cloud.ces.v1.ListToolsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ListToolsResponse(); + } + + public static com.google.cloud.ces.v1.ListToolsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListToolsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListToolsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListToolsResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListToolsResponseOrBuilder.java new file mode 100644 index 000000000000..e087ec0f8fd2 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListToolsResponseOrBuilder.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ListToolsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ListToolsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The list of tools.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1; + */ + java.util.List getToolsList(); + + /** + * + * + *
      +   * The list of tools.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1; + */ + com.google.cloud.ces.v1.Tool getTools(int index); + + /** + * + * + *
      +   * The list of tools.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1; + */ + int getToolsCount(); + + /** + * + * + *
      +   * The list of tools.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1; + */ + java.util.List getToolsOrBuilderList(); + + /** + * + * + *
      +   * The list of tools.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1; + */ + com.google.cloud.ces.v1.ToolOrBuilder getToolsOrBuilder(int index); + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListToolsRequest.page_token][google.cloud.ces.v1.ListToolsRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListToolsRequest.page_token][google.cloud.ces.v1.ListToolsRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListToolsetsRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListToolsetsRequest.java new file mode 100644 index 000000000000..c0c31762df93 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListToolsetsRequest.java @@ -0,0 +1,1321 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.ListToolsets][google.cloud.ces.v1.AgentService.ListToolsets].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListToolsetsRequest} + */ +@com.google.protobuf.Generated +public final class ListToolsetsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ListToolsetsRequest) + ListToolsetsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListToolsetsRequest"); + } + + // Use ListToolsetsRequest.newBuilder() to construct. + private ListToolsetsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListToolsetsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListToolsetsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListToolsetsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListToolsetsRequest.class, + com.google.cloud.ces.v1.ListToolsetsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the app to list toolsets from.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the app to list toolsets from.
      +   * 
      + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
      +   * Optional. Requested page size. Server may return fewer items than
      +   * requested. If unspecified, server will pick an appropriate default.
      +   * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListToolsetsResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListToolsets][google.cloud.ces.v1.AgentService.ListToolsets]
      +   * call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListToolsetsResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListToolsets][google.cloud.ces.v1.AgentService.ListToolsets]
      +   * call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the toolsets.
      +   * See https://google.aip.dev/160 for more details.
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the toolsets.
      +   * See https://google.aip.dev/160 for more details.
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ListToolsetsRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ListToolsetsRequest other = + (com.google.cloud.ces.v1.ListToolsetsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ListToolsetsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListToolsetsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListToolsetsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListToolsetsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListToolsetsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListToolsetsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListToolsetsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListToolsetsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListToolsetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListToolsetsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListToolsetsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListToolsetsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ListToolsetsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.ListToolsets][google.cloud.ces.v1.AgentService.ListToolsets].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListToolsetsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ListToolsetsRequest) + com.google.cloud.ces.v1.ListToolsetsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListToolsetsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListToolsetsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListToolsetsRequest.class, + com.google.cloud.ces.v1.ListToolsetsRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ListToolsetsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListToolsetsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListToolsetsRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ListToolsetsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListToolsetsRequest build() { + com.google.cloud.ces.v1.ListToolsetsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListToolsetsRequest buildPartial() { + com.google.cloud.ces.v1.ListToolsetsRequest result = + new com.google.cloud.ces.v1.ListToolsetsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ListToolsetsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ListToolsetsRequest) { + return mergeFrom((com.google.cloud.ces.v1.ListToolsetsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ListToolsetsRequest other) { + if (other == com.google.cloud.ces.v1.ListToolsetsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the app to list toolsets from.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to list toolsets from.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app to list toolsets from.
      +     * 
      + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to list toolsets from.
      +     * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app to list toolsets from.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
      +     * Optional. Requested page size. Server may return fewer items than
      +     * requested. If unspecified, server will pick an appropriate default.
      +     * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
      +     * Optional. Requested page size. Server may return fewer items than
      +     * requested. If unspecified, server will pick an appropriate default.
      +     * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Requested page size. Server may return fewer items than
      +     * requested. If unspecified, server will pick an appropriate default.
      +     * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListToolsetsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListToolsets][google.cloud.ces.v1.AgentService.ListToolsets]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListToolsetsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListToolsets][google.cloud.ces.v1.AgentService.ListToolsets]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListToolsetsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListToolsets][google.cloud.ces.v1.AgentService.ListToolsets]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListToolsetsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListToolsets][google.cloud.ces.v1.AgentService.ListToolsets]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The
      +     * [next_page_token][google.cloud.ces.v1.ListToolsetsResponse.next_page_token]
      +     * value returned from a previous list
      +     * [AgentService.ListToolsets][google.cloud.ces.v1.AgentService.ListToolsets]
      +     * call.
      +     * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the toolsets.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the toolsets.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the toolsets.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the toolsets.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Filter to be applied when listing the toolsets.
      +     * See https://google.aip.dev/160 for more details.
      +     * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +     * See https://google.aip.dev/132#ordering for more details.
      +     * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ListToolsetsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ListToolsetsRequest) + private static final com.google.cloud.ces.v1.ListToolsetsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ListToolsetsRequest(); + } + + public static com.google.cloud.ces.v1.ListToolsetsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListToolsetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListToolsetsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListToolsetsRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListToolsetsRequestOrBuilder.java new file mode 100644 index 000000000000..0b17976fd833 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListToolsetsRequestOrBuilder.java @@ -0,0 +1,162 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ListToolsetsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ListToolsetsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the app to list toolsets from.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
      +   * Required. The resource name of the app to list toolsets from.
      +   * 
      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
      +   * Optional. Requested page size. Server may return fewer items than
      +   * requested. If unspecified, server will pick an appropriate default.
      +   * 
      + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListToolsetsResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListToolsets][google.cloud.ces.v1.AgentService.ListToolsets]
      +   * call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
      +   * Optional. The
      +   * [next_page_token][google.cloud.ces.v1.ListToolsetsResponse.next_page_token]
      +   * value returned from a previous list
      +   * [AgentService.ListToolsets][google.cloud.ces.v1.AgentService.ListToolsets]
      +   * call.
      +   * 
      + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the toolsets.
      +   * See https://google.aip.dev/160 for more details.
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
      +   * Optional. Filter to be applied when listing the toolsets.
      +   * See https://google.aip.dev/160 for more details.
      +   * 
      + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
      +   * Optional. Field to sort by. Only "name" and "create_time" is supported.
      +   * See https://google.aip.dev/132#ordering for more details.
      +   * 
      + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListToolsetsResponse.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListToolsetsResponse.java new file mode 100644 index 000000000000..e98eb1af3a6e --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListToolsetsResponse.java @@ -0,0 +1,1128 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Response message for
      + * [AgentService.ListToolsets][google.cloud.ces.v1.AgentService.ListToolsets].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListToolsetsResponse} + */ +@com.google.protobuf.Generated +public final class ListToolsetsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ListToolsetsResponse) + ListToolsetsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListToolsetsResponse"); + } + + // Use ListToolsetsResponse.newBuilder() to construct. + private ListToolsetsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListToolsetsResponse() { + toolsets_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListToolsetsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListToolsetsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListToolsetsResponse.class, + com.google.cloud.ces.v1.ListToolsetsResponse.Builder.class); + } + + public static final int TOOLSETS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List toolsets_; + + /** + * + * + *
      +   * The list of toolsets.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 1; + */ + @java.lang.Override + public java.util.List getToolsetsList() { + return toolsets_; + } + + /** + * + * + *
      +   * The list of toolsets.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 1; + */ + @java.lang.Override + public java.util.List + getToolsetsOrBuilderList() { + return toolsets_; + } + + /** + * + * + *
      +   * The list of toolsets.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 1; + */ + @java.lang.Override + public int getToolsetsCount() { + return toolsets_.size(); + } + + /** + * + * + *
      +   * The list of toolsets.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 1; + */ + @java.lang.Override + public com.google.cloud.ces.v1.Toolset getToolsets(int index) { + return toolsets_.get(index); + } + + /** + * + * + *
      +   * The list of toolsets.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 1; + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetOrBuilder getToolsetsOrBuilder(int index) { + return toolsets_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListToolsetsRequest.page_token][google.cloud.ces.v1.ListToolsetsRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListToolsetsRequest.page_token][google.cloud.ces.v1.ListToolsetsRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < toolsets_.size(); i++) { + output.writeMessage(1, toolsets_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < toolsets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, toolsets_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ListToolsetsResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ListToolsetsResponse other = + (com.google.cloud.ces.v1.ListToolsetsResponse) obj; + + if (!getToolsetsList().equals(other.getToolsetsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getToolsetsCount() > 0) { + hash = (37 * hash) + TOOLSETS_FIELD_NUMBER; + hash = (53 * hash) + getToolsetsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ListToolsetsResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListToolsetsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListToolsetsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListToolsetsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListToolsetsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ListToolsetsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListToolsetsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListToolsetsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListToolsetsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListToolsetsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ListToolsetsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ListToolsetsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ListToolsetsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Response message for
      +   * [AgentService.ListToolsets][google.cloud.ces.v1.AgentService.ListToolsets].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ListToolsetsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ListToolsetsResponse) + com.google.cloud.ces.v1.ListToolsetsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListToolsetsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListToolsetsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ListToolsetsResponse.class, + com.google.cloud.ces.v1.ListToolsetsResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ListToolsetsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolsetsBuilder_ == null) { + toolsets_ = java.util.Collections.emptyList(); + } else { + toolsets_ = null; + toolsetsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_ListToolsetsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListToolsetsResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ListToolsetsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListToolsetsResponse build() { + com.google.cloud.ces.v1.ListToolsetsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListToolsetsResponse buildPartial() { + com.google.cloud.ces.v1.ListToolsetsResponse result = + new com.google.cloud.ces.v1.ListToolsetsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1.ListToolsetsResponse result) { + if (toolsetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + toolsets_ = java.util.Collections.unmodifiableList(toolsets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.toolsets_ = toolsets_; + } else { + result.toolsets_ = toolsetsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.ListToolsetsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ListToolsetsResponse) { + return mergeFrom((com.google.cloud.ces.v1.ListToolsetsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ListToolsetsResponse other) { + if (other == com.google.cloud.ces.v1.ListToolsetsResponse.getDefaultInstance()) return this; + if (toolsetsBuilder_ == null) { + if (!other.toolsets_.isEmpty()) { + if (toolsets_.isEmpty()) { + toolsets_ = other.toolsets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureToolsetsIsMutable(); + toolsets_.addAll(other.toolsets_); + } + onChanged(); + } + } else { + if (!other.toolsets_.isEmpty()) { + if (toolsetsBuilder_.isEmpty()) { + toolsetsBuilder_.dispose(); + toolsetsBuilder_ = null; + toolsets_ = other.toolsets_; + bitField0_ = (bitField0_ & ~0x00000001); + toolsetsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetToolsetsFieldBuilder() + : null; + } else { + toolsetsBuilder_.addAllMessages(other.toolsets_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.ces.v1.Toolset m = + input.readMessage(com.google.cloud.ces.v1.Toolset.parser(), extensionRegistry); + if (toolsetsBuilder_ == null) { + ensureToolsetsIsMutable(); + toolsets_.add(m); + } else { + toolsetsBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List toolsets_ = + java.util.Collections.emptyList(); + + private void ensureToolsetsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + toolsets_ = new java.util.ArrayList(toolsets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Toolset, + com.google.cloud.ces.v1.Toolset.Builder, + com.google.cloud.ces.v1.ToolsetOrBuilder> + toolsetsBuilder_; + + /** + * + * + *
      +     * The list of toolsets.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 1; + */ + public java.util.List getToolsetsList() { + if (toolsetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(toolsets_); + } else { + return toolsetsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * The list of toolsets.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 1; + */ + public int getToolsetsCount() { + if (toolsetsBuilder_ == null) { + return toolsets_.size(); + } else { + return toolsetsBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * The list of toolsets.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 1; + */ + public com.google.cloud.ces.v1.Toolset getToolsets(int index) { + if (toolsetsBuilder_ == null) { + return toolsets_.get(index); + } else { + return toolsetsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * The list of toolsets.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 1; + */ + public Builder setToolsets(int index, com.google.cloud.ces.v1.Toolset value) { + if (toolsetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsetsIsMutable(); + toolsets_.set(index, value); + onChanged(); + } else { + toolsetsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * The list of toolsets.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 1; + */ + public Builder setToolsets(int index, com.google.cloud.ces.v1.Toolset.Builder builderForValue) { + if (toolsetsBuilder_ == null) { + ensureToolsetsIsMutable(); + toolsets_.set(index, builderForValue.build()); + onChanged(); + } else { + toolsetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * The list of toolsets.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 1; + */ + public Builder addToolsets(com.google.cloud.ces.v1.Toolset value) { + if (toolsetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsetsIsMutable(); + toolsets_.add(value); + onChanged(); + } else { + toolsetsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * The list of toolsets.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 1; + */ + public Builder addToolsets(int index, com.google.cloud.ces.v1.Toolset value) { + if (toolsetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsetsIsMutable(); + toolsets_.add(index, value); + onChanged(); + } else { + toolsetsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * The list of toolsets.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 1; + */ + public Builder addToolsets(com.google.cloud.ces.v1.Toolset.Builder builderForValue) { + if (toolsetsBuilder_ == null) { + ensureToolsetsIsMutable(); + toolsets_.add(builderForValue.build()); + onChanged(); + } else { + toolsetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * The list of toolsets.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 1; + */ + public Builder addToolsets(int index, com.google.cloud.ces.v1.Toolset.Builder builderForValue) { + if (toolsetsBuilder_ == null) { + ensureToolsetsIsMutable(); + toolsets_.add(index, builderForValue.build()); + onChanged(); + } else { + toolsetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * The list of toolsets.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 1; + */ + public Builder addAllToolsets( + java.lang.Iterable values) { + if (toolsetsBuilder_ == null) { + ensureToolsetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, toolsets_); + onChanged(); + } else { + toolsetsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * The list of toolsets.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 1; + */ + public Builder clearToolsets() { + if (toolsetsBuilder_ == null) { + toolsets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + toolsetsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * The list of toolsets.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 1; + */ + public Builder removeToolsets(int index) { + if (toolsetsBuilder_ == null) { + ensureToolsetsIsMutable(); + toolsets_.remove(index); + onChanged(); + } else { + toolsetsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * The list of toolsets.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 1; + */ + public com.google.cloud.ces.v1.Toolset.Builder getToolsetsBuilder(int index) { + return internalGetToolsetsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * The list of toolsets.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 1; + */ + public com.google.cloud.ces.v1.ToolsetOrBuilder getToolsetsOrBuilder(int index) { + if (toolsetsBuilder_ == null) { + return toolsets_.get(index); + } else { + return toolsetsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * The list of toolsets.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 1; + */ + public java.util.List + getToolsetsOrBuilderList() { + if (toolsetsBuilder_ != null) { + return toolsetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(toolsets_); + } + } + + /** + * + * + *
      +     * The list of toolsets.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 1; + */ + public com.google.cloud.ces.v1.Toolset.Builder addToolsetsBuilder() { + return internalGetToolsetsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.Toolset.getDefaultInstance()); + } + + /** + * + * + *
      +     * The list of toolsets.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 1; + */ + public com.google.cloud.ces.v1.Toolset.Builder addToolsetsBuilder(int index) { + return internalGetToolsetsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.Toolset.getDefaultInstance()); + } + + /** + * + * + *
      +     * The list of toolsets.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 1; + */ + public java.util.List getToolsetsBuilderList() { + return internalGetToolsetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Toolset, + com.google.cloud.ces.v1.Toolset.Builder, + com.google.cloud.ces.v1.ToolsetOrBuilder> + internalGetToolsetsFieldBuilder() { + if (toolsetsBuilder_ == null) { + toolsetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Toolset, + com.google.cloud.ces.v1.Toolset.Builder, + com.google.cloud.ces.v1.ToolsetOrBuilder>( + toolsets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + toolsets_ = null; + } + return toolsetsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListToolsetsRequest.page_token][google.cloud.ces.v1.ListToolsetsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListToolsetsRequest.page_token][google.cloud.ces.v1.ListToolsetsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListToolsetsRequest.page_token][google.cloud.ces.v1.ListToolsetsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListToolsetsRequest.page_token][google.cloud.ces.v1.ListToolsetsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * A token that can be sent as
      +     * [ListToolsetsRequest.page_token][google.cloud.ces.v1.ListToolsetsRequest.page_token]
      +     * to retrieve the next page. Absence of this field indicates there are no
      +     * subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ListToolsetsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ListToolsetsResponse) + private static final com.google.cloud.ces.v1.ListToolsetsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ListToolsetsResponse(); + } + + public static com.google.cloud.ces.v1.ListToolsetsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListToolsetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ListToolsetsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListToolsetsResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListToolsetsResponseOrBuilder.java new file mode 100644 index 000000000000..35a9381dd770 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ListToolsetsResponseOrBuilder.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ListToolsetsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ListToolsetsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The list of toolsets.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 1; + */ + java.util.List getToolsetsList(); + + /** + * + * + *
      +   * The list of toolsets.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 1; + */ + com.google.cloud.ces.v1.Toolset getToolsets(int index); + + /** + * + * + *
      +   * The list of toolsets.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 1; + */ + int getToolsetsCount(); + + /** + * + * + *
      +   * The list of toolsets.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 1; + */ + java.util.List getToolsetsOrBuilderList(); + + /** + * + * + *
      +   * The list of toolsets.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Toolset toolsets = 1; + */ + com.google.cloud.ces.v1.ToolsetOrBuilder getToolsetsOrBuilder(int index); + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListToolsetsRequest.page_token][google.cloud.ces.v1.ListToolsetsRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
      +   * A token that can be sent as
      +   * [ListToolsetsRequest.page_token][google.cloud.ces.v1.ListToolsetsRequest.page_token]
      +   * to retrieve the next page. Absence of this field indicates there are no
      +   * subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LocationName.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LocationName.java new file mode 100644 index 000000000000..95d3992314c1 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LocationName.java @@ -0,0 +1,192 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class LocationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + + @Deprecated + protected LocationName() { + project = null; + location = null; + } + + private LocationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static LocationName of(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build(); + } + + public static String format(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build().toString(); + } + + public static LocationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION.validatedMatch( + formattedString, "LocationName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (LocationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION.instantiate("project", project, "location", location); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + LocationName that = ((LocationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + return h; + } + + /** Builder for projects/{project}/locations/{location}. */ + public static class Builder { + private String project; + private String location; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + private Builder(LocationName locationName) { + this.project = locationName.project; + this.location = locationName.location; + } + + public LocationName build() { + return new LocationName(this); + } + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LoggingSettings.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LoggingSettings.java new file mode 100644 index 000000000000..29060065f12e --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LoggingSettings.java @@ -0,0 +1,2677 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Settings to describe the logging behaviors for the app.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.LoggingSettings} + */ +@com.google.protobuf.Generated +public final class LoggingSettings extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.LoggingSettings) + LoggingSettingsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "LoggingSettings"); + } + + // Use LoggingSettings.newBuilder() to construct. + private LoggingSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private LoggingSettings() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_LoggingSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_LoggingSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.LoggingSettings.class, + com.google.cloud.ces.v1.LoggingSettings.Builder.class); + } + + private int bitField0_; + public static final int REDACTION_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.ces.v1.RedactionConfig redactionConfig_; + + /** + * + * + *
      +   * Optional. Configuration for how sensitive data should be redacted.
      +   * 
      + * + * + * .google.cloud.ces.v1.RedactionConfig redaction_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the redactionConfig field is set. + */ + @java.lang.Override + public boolean hasRedactionConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Optional. Configuration for how sensitive data should be redacted.
      +   * 
      + * + * + * .google.cloud.ces.v1.RedactionConfig redaction_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The redactionConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.RedactionConfig getRedactionConfig() { + return redactionConfig_ == null + ? com.google.cloud.ces.v1.RedactionConfig.getDefaultInstance() + : redactionConfig_; + } + + /** + * + * + *
      +   * Optional. Configuration for how sensitive data should be redacted.
      +   * 
      + * + * + * .google.cloud.ces.v1.RedactionConfig redaction_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.RedactionConfigOrBuilder getRedactionConfigOrBuilder() { + return redactionConfig_ == null + ? com.google.cloud.ces.v1.RedactionConfig.getDefaultInstance() + : redactionConfig_; + } + + public static final int AUDIO_RECORDING_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.ces.v1.AudioRecordingConfig audioRecordingConfig_; + + /** + * + * + *
      +   * Optional. Configuration for how audio interactions should be recorded.
      +   * 
      + * + * + * .google.cloud.ces.v1.AudioRecordingConfig audio_recording_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the audioRecordingConfig field is set. + */ + @java.lang.Override + public boolean hasAudioRecordingConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Optional. Configuration for how audio interactions should be recorded.
      +   * 
      + * + * + * .google.cloud.ces.v1.AudioRecordingConfig audio_recording_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The audioRecordingConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.AudioRecordingConfig getAudioRecordingConfig() { + return audioRecordingConfig_ == null + ? com.google.cloud.ces.v1.AudioRecordingConfig.getDefaultInstance() + : audioRecordingConfig_; + } + + /** + * + * + *
      +   * Optional. Configuration for how audio interactions should be recorded.
      +   * 
      + * + * + * .google.cloud.ces.v1.AudioRecordingConfig audio_recording_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.AudioRecordingConfigOrBuilder getAudioRecordingConfigOrBuilder() { + return audioRecordingConfig_ == null + ? com.google.cloud.ces.v1.AudioRecordingConfig.getDefaultInstance() + : audioRecordingConfig_; + } + + public static final int BIGQUERY_EXPORT_SETTINGS_FIELD_NUMBER = 3; + private com.google.cloud.ces.v1.BigQueryExportSettings bigqueryExportSettings_; + + /** + * + * + *
      +   * Optional. Settings to describe the BigQuery export behaviors for the app.
      +   * The conversation data will be exported to BigQuery tables if it is enabled.
      +   * 
      + * + * + * .google.cloud.ces.v1.BigQueryExportSettings bigquery_export_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bigqueryExportSettings field is set. + */ + @java.lang.Override + public boolean hasBigqueryExportSettings() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * Optional. Settings to describe the BigQuery export behaviors for the app.
      +   * The conversation data will be exported to BigQuery tables if it is enabled.
      +   * 
      + * + * + * .google.cloud.ces.v1.BigQueryExportSettings bigquery_export_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bigqueryExportSettings. + */ + @java.lang.Override + public com.google.cloud.ces.v1.BigQueryExportSettings getBigqueryExportSettings() { + return bigqueryExportSettings_ == null + ? com.google.cloud.ces.v1.BigQueryExportSettings.getDefaultInstance() + : bigqueryExportSettings_; + } + + /** + * + * + *
      +   * Optional. Settings to describe the BigQuery export behaviors for the app.
      +   * The conversation data will be exported to BigQuery tables if it is enabled.
      +   * 
      + * + * + * .google.cloud.ces.v1.BigQueryExportSettings bigquery_export_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.BigQueryExportSettingsOrBuilder + getBigqueryExportSettingsOrBuilder() { + return bigqueryExportSettings_ == null + ? com.google.cloud.ces.v1.BigQueryExportSettings.getDefaultInstance() + : bigqueryExportSettings_; + } + + public static final int CLOUD_LOGGING_SETTINGS_FIELD_NUMBER = 4; + private com.google.cloud.ces.v1.CloudLoggingSettings cloudLoggingSettings_; + + /** + * + * + *
      +   * Optional. Settings to describe the Cloud Logging behaviors for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.CloudLoggingSettings cloud_logging_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cloudLoggingSettings field is set. + */ + @java.lang.Override + public boolean hasCloudLoggingSettings() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +   * Optional. Settings to describe the Cloud Logging behaviors for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.CloudLoggingSettings cloud_logging_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cloudLoggingSettings. + */ + @java.lang.Override + public com.google.cloud.ces.v1.CloudLoggingSettings getCloudLoggingSettings() { + return cloudLoggingSettings_ == null + ? com.google.cloud.ces.v1.CloudLoggingSettings.getDefaultInstance() + : cloudLoggingSettings_; + } + + /** + * + * + *
      +   * Optional. Settings to describe the Cloud Logging behaviors for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.CloudLoggingSettings cloud_logging_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.CloudLoggingSettingsOrBuilder getCloudLoggingSettingsOrBuilder() { + return cloudLoggingSettings_ == null + ? com.google.cloud.ces.v1.CloudLoggingSettings.getDefaultInstance() + : cloudLoggingSettings_; + } + + public static final int CONVERSATION_LOGGING_SETTINGS_FIELD_NUMBER = 5; + private com.google.cloud.ces.v1.ConversationLoggingSettings conversationLoggingSettings_; + + /** + * + * + *
      +   * Optional. Settings to describe the conversation logging behaviors for the
      +   * app.
      +   * 
      + * + * + * .google.cloud.ces.v1.ConversationLoggingSettings conversation_logging_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the conversationLoggingSettings field is set. + */ + @java.lang.Override + public boolean hasConversationLoggingSettings() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +   * Optional. Settings to describe the conversation logging behaviors for the
      +   * app.
      +   * 
      + * + * + * .google.cloud.ces.v1.ConversationLoggingSettings conversation_logging_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The conversationLoggingSettings. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ConversationLoggingSettings getConversationLoggingSettings() { + return conversationLoggingSettings_ == null + ? com.google.cloud.ces.v1.ConversationLoggingSettings.getDefaultInstance() + : conversationLoggingSettings_; + } + + /** + * + * + *
      +   * Optional. Settings to describe the conversation logging behaviors for the
      +   * app.
      +   * 
      + * + * + * .google.cloud.ces.v1.ConversationLoggingSettings conversation_logging_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ConversationLoggingSettingsOrBuilder + getConversationLoggingSettingsOrBuilder() { + return conversationLoggingSettings_ == null + ? com.google.cloud.ces.v1.ConversationLoggingSettings.getDefaultInstance() + : conversationLoggingSettings_; + } + + public static final int EVALUATION_AUDIO_RECORDING_CONFIG_FIELD_NUMBER = 6; + private com.google.cloud.ces.v1.AudioRecordingConfig evaluationAudioRecordingConfig_; + + /** + * + * + *
      +   * Optional. Configuration for how audio interactions should be recorded for
      +   * the evaluation. By default, audio recording is not enabled for evaluation
      +   * sessions.
      +   * 
      + * + * + * .google.cloud.ces.v1.AudioRecordingConfig evaluation_audio_recording_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the evaluationAudioRecordingConfig field is set. + */ + @java.lang.Override + public boolean hasEvaluationAudioRecordingConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +   * Optional. Configuration for how audio interactions should be recorded for
      +   * the evaluation. By default, audio recording is not enabled for evaluation
      +   * sessions.
      +   * 
      + * + * + * .google.cloud.ces.v1.AudioRecordingConfig evaluation_audio_recording_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The evaluationAudioRecordingConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.AudioRecordingConfig getEvaluationAudioRecordingConfig() { + return evaluationAudioRecordingConfig_ == null + ? com.google.cloud.ces.v1.AudioRecordingConfig.getDefaultInstance() + : evaluationAudioRecordingConfig_; + } + + /** + * + * + *
      +   * Optional. Configuration for how audio interactions should be recorded for
      +   * the evaluation. By default, audio recording is not enabled for evaluation
      +   * sessions.
      +   * 
      + * + * + * .google.cloud.ces.v1.AudioRecordingConfig evaluation_audio_recording_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.AudioRecordingConfigOrBuilder + getEvaluationAudioRecordingConfigOrBuilder() { + return evaluationAudioRecordingConfig_ == null + ? com.google.cloud.ces.v1.AudioRecordingConfig.getDefaultInstance() + : evaluationAudioRecordingConfig_; + } + + public static final int METRIC_ANALYSIS_SETTINGS_FIELD_NUMBER = 7; + private com.google.cloud.ces.v1.MetricAnalysisSettings metricAnalysisSettings_; + + /** + * + * + *
      +   * Optional. Settings to describe the conversation data collection behaviors
      +   * for the LLM analysis pipeline for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.MetricAnalysisSettings metric_analysis_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metricAnalysisSettings field is set. + */ + @java.lang.Override + public boolean hasMetricAnalysisSettings() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
      +   * Optional. Settings to describe the conversation data collection behaviors
      +   * for the LLM analysis pipeline for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.MetricAnalysisSettings metric_analysis_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metricAnalysisSettings. + */ + @java.lang.Override + public com.google.cloud.ces.v1.MetricAnalysisSettings getMetricAnalysisSettings() { + return metricAnalysisSettings_ == null + ? com.google.cloud.ces.v1.MetricAnalysisSettings.getDefaultInstance() + : metricAnalysisSettings_; + } + + /** + * + * + *
      +   * Optional. Settings to describe the conversation data collection behaviors
      +   * for the LLM analysis pipeline for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.MetricAnalysisSettings metric_analysis_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.MetricAnalysisSettingsOrBuilder + getMetricAnalysisSettingsOrBuilder() { + return metricAnalysisSettings_ == null + ? com.google.cloud.ces.v1.MetricAnalysisSettings.getDefaultInstance() + : metricAnalysisSettings_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getRedactionConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getAudioRecordingConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getBigqueryExportSettings()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getCloudLoggingSettings()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(5, getConversationLoggingSettings()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(6, getEvaluationAudioRecordingConfig()); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(7, getMetricAnalysisSettings()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRedactionConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAudioRecordingConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBigqueryExportSettings()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCloudLoggingSettings()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, getConversationLoggingSettings()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, getEvaluationAudioRecordingConfig()); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(7, getMetricAnalysisSettings()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.LoggingSettings)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.LoggingSettings other = (com.google.cloud.ces.v1.LoggingSettings) obj; + + if (hasRedactionConfig() != other.hasRedactionConfig()) return false; + if (hasRedactionConfig()) { + if (!getRedactionConfig().equals(other.getRedactionConfig())) return false; + } + if (hasAudioRecordingConfig() != other.hasAudioRecordingConfig()) return false; + if (hasAudioRecordingConfig()) { + if (!getAudioRecordingConfig().equals(other.getAudioRecordingConfig())) return false; + } + if (hasBigqueryExportSettings() != other.hasBigqueryExportSettings()) return false; + if (hasBigqueryExportSettings()) { + if (!getBigqueryExportSettings().equals(other.getBigqueryExportSettings())) return false; + } + if (hasCloudLoggingSettings() != other.hasCloudLoggingSettings()) return false; + if (hasCloudLoggingSettings()) { + if (!getCloudLoggingSettings().equals(other.getCloudLoggingSettings())) return false; + } + if (hasConversationLoggingSettings() != other.hasConversationLoggingSettings()) return false; + if (hasConversationLoggingSettings()) { + if (!getConversationLoggingSettings().equals(other.getConversationLoggingSettings())) + return false; + } + if (hasEvaluationAudioRecordingConfig() != other.hasEvaluationAudioRecordingConfig()) + return false; + if (hasEvaluationAudioRecordingConfig()) { + if (!getEvaluationAudioRecordingConfig().equals(other.getEvaluationAudioRecordingConfig())) + return false; + } + if (hasMetricAnalysisSettings() != other.hasMetricAnalysisSettings()) return false; + if (hasMetricAnalysisSettings()) { + if (!getMetricAnalysisSettings().equals(other.getMetricAnalysisSettings())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRedactionConfig()) { + hash = (37 * hash) + REDACTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRedactionConfig().hashCode(); + } + if (hasAudioRecordingConfig()) { + hash = (37 * hash) + AUDIO_RECORDING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAudioRecordingConfig().hashCode(); + } + if (hasBigqueryExportSettings()) { + hash = (37 * hash) + BIGQUERY_EXPORT_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getBigqueryExportSettings().hashCode(); + } + if (hasCloudLoggingSettings()) { + hash = (37 * hash) + CLOUD_LOGGING_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getCloudLoggingSettings().hashCode(); + } + if (hasConversationLoggingSettings()) { + hash = (37 * hash) + CONVERSATION_LOGGING_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getConversationLoggingSettings().hashCode(); + } + if (hasEvaluationAudioRecordingConfig()) { + hash = (37 * hash) + EVALUATION_AUDIO_RECORDING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationAudioRecordingConfig().hashCode(); + } + if (hasMetricAnalysisSettings()) { + hash = (37 * hash) + METRIC_ANALYSIS_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getMetricAnalysisSettings().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.LoggingSettings parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.LoggingSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.LoggingSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.LoggingSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.LoggingSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.LoggingSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.LoggingSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.LoggingSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.LoggingSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.LoggingSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.LoggingSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.LoggingSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.LoggingSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Settings to describe the logging behaviors for the app.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.LoggingSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.LoggingSettings) + com.google.cloud.ces.v1.LoggingSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_LoggingSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_LoggingSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.LoggingSettings.class, + com.google.cloud.ces.v1.LoggingSettings.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.LoggingSettings.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRedactionConfigFieldBuilder(); + internalGetAudioRecordingConfigFieldBuilder(); + internalGetBigqueryExportSettingsFieldBuilder(); + internalGetCloudLoggingSettingsFieldBuilder(); + internalGetConversationLoggingSettingsFieldBuilder(); + internalGetEvaluationAudioRecordingConfigFieldBuilder(); + internalGetMetricAnalysisSettingsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + redactionConfig_ = null; + if (redactionConfigBuilder_ != null) { + redactionConfigBuilder_.dispose(); + redactionConfigBuilder_ = null; + } + audioRecordingConfig_ = null; + if (audioRecordingConfigBuilder_ != null) { + audioRecordingConfigBuilder_.dispose(); + audioRecordingConfigBuilder_ = null; + } + bigqueryExportSettings_ = null; + if (bigqueryExportSettingsBuilder_ != null) { + bigqueryExportSettingsBuilder_.dispose(); + bigqueryExportSettingsBuilder_ = null; + } + cloudLoggingSettings_ = null; + if (cloudLoggingSettingsBuilder_ != null) { + cloudLoggingSettingsBuilder_.dispose(); + cloudLoggingSettingsBuilder_ = null; + } + conversationLoggingSettings_ = null; + if (conversationLoggingSettingsBuilder_ != null) { + conversationLoggingSettingsBuilder_.dispose(); + conversationLoggingSettingsBuilder_ = null; + } + evaluationAudioRecordingConfig_ = null; + if (evaluationAudioRecordingConfigBuilder_ != null) { + evaluationAudioRecordingConfigBuilder_.dispose(); + evaluationAudioRecordingConfigBuilder_ = null; + } + metricAnalysisSettings_ = null; + if (metricAnalysisSettingsBuilder_ != null) { + metricAnalysisSettingsBuilder_.dispose(); + metricAnalysisSettingsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_LoggingSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.LoggingSettings getDefaultInstanceForType() { + return com.google.cloud.ces.v1.LoggingSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.LoggingSettings build() { + com.google.cloud.ces.v1.LoggingSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.LoggingSettings buildPartial() { + com.google.cloud.ces.v1.LoggingSettings result = + new com.google.cloud.ces.v1.LoggingSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.LoggingSettings result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.redactionConfig_ = + redactionConfigBuilder_ == null ? redactionConfig_ : redactionConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.audioRecordingConfig_ = + audioRecordingConfigBuilder_ == null + ? audioRecordingConfig_ + : audioRecordingConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.bigqueryExportSettings_ = + bigqueryExportSettingsBuilder_ == null + ? bigqueryExportSettings_ + : bigqueryExportSettingsBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.cloudLoggingSettings_ = + cloudLoggingSettingsBuilder_ == null + ? cloudLoggingSettings_ + : cloudLoggingSettingsBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.conversationLoggingSettings_ = + conversationLoggingSettingsBuilder_ == null + ? conversationLoggingSettings_ + : conversationLoggingSettingsBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.evaluationAudioRecordingConfig_ = + evaluationAudioRecordingConfigBuilder_ == null + ? evaluationAudioRecordingConfig_ + : evaluationAudioRecordingConfigBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.metricAnalysisSettings_ = + metricAnalysisSettingsBuilder_ == null + ? metricAnalysisSettings_ + : metricAnalysisSettingsBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.LoggingSettings) { + return mergeFrom((com.google.cloud.ces.v1.LoggingSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.LoggingSettings other) { + if (other == com.google.cloud.ces.v1.LoggingSettings.getDefaultInstance()) return this; + if (other.hasRedactionConfig()) { + mergeRedactionConfig(other.getRedactionConfig()); + } + if (other.hasAudioRecordingConfig()) { + mergeAudioRecordingConfig(other.getAudioRecordingConfig()); + } + if (other.hasBigqueryExportSettings()) { + mergeBigqueryExportSettings(other.getBigqueryExportSettings()); + } + if (other.hasCloudLoggingSettings()) { + mergeCloudLoggingSettings(other.getCloudLoggingSettings()); + } + if (other.hasConversationLoggingSettings()) { + mergeConversationLoggingSettings(other.getConversationLoggingSettings()); + } + if (other.hasEvaluationAudioRecordingConfig()) { + mergeEvaluationAudioRecordingConfig(other.getEvaluationAudioRecordingConfig()); + } + if (other.hasMetricAnalysisSettings()) { + mergeMetricAnalysisSettings(other.getMetricAnalysisSettings()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetRedactionConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetAudioRecordingConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetBigqueryExportSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetCloudLoggingSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetConversationLoggingSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetEvaluationAudioRecordingConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetMetricAnalysisSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.ces.v1.RedactionConfig redactionConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.RedactionConfig, + com.google.cloud.ces.v1.RedactionConfig.Builder, + com.google.cloud.ces.v1.RedactionConfigOrBuilder> + redactionConfigBuilder_; + + /** + * + * + *
      +     * Optional. Configuration for how sensitive data should be redacted.
      +     * 
      + * + * + * .google.cloud.ces.v1.RedactionConfig redaction_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the redactionConfig field is set. + */ + public boolean hasRedactionConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Optional. Configuration for how sensitive data should be redacted.
      +     * 
      + * + * + * .google.cloud.ces.v1.RedactionConfig redaction_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The redactionConfig. + */ + public com.google.cloud.ces.v1.RedactionConfig getRedactionConfig() { + if (redactionConfigBuilder_ == null) { + return redactionConfig_ == null + ? com.google.cloud.ces.v1.RedactionConfig.getDefaultInstance() + : redactionConfig_; + } else { + return redactionConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Configuration for how sensitive data should be redacted.
      +     * 
      + * + * + * .google.cloud.ces.v1.RedactionConfig redaction_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRedactionConfig(com.google.cloud.ces.v1.RedactionConfig value) { + if (redactionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + redactionConfig_ = value; + } else { + redactionConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for how sensitive data should be redacted.
      +     * 
      + * + * + * .google.cloud.ces.v1.RedactionConfig redaction_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRedactionConfig( + com.google.cloud.ces.v1.RedactionConfig.Builder builderForValue) { + if (redactionConfigBuilder_ == null) { + redactionConfig_ = builderForValue.build(); + } else { + redactionConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for how sensitive data should be redacted.
      +     * 
      + * + * + * .google.cloud.ces.v1.RedactionConfig redaction_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRedactionConfig(com.google.cloud.ces.v1.RedactionConfig value) { + if (redactionConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && redactionConfig_ != null + && redactionConfig_ != com.google.cloud.ces.v1.RedactionConfig.getDefaultInstance()) { + getRedactionConfigBuilder().mergeFrom(value); + } else { + redactionConfig_ = value; + } + } else { + redactionConfigBuilder_.mergeFrom(value); + } + if (redactionConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for how sensitive data should be redacted.
      +     * 
      + * + * + * .google.cloud.ces.v1.RedactionConfig redaction_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRedactionConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + redactionConfig_ = null; + if (redactionConfigBuilder_ != null) { + redactionConfigBuilder_.dispose(); + redactionConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for how sensitive data should be redacted.
      +     * 
      + * + * + * .google.cloud.ces.v1.RedactionConfig redaction_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.RedactionConfig.Builder getRedactionConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetRedactionConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Configuration for how sensitive data should be redacted.
      +     * 
      + * + * + * .google.cloud.ces.v1.RedactionConfig redaction_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.RedactionConfigOrBuilder getRedactionConfigOrBuilder() { + if (redactionConfigBuilder_ != null) { + return redactionConfigBuilder_.getMessageOrBuilder(); + } else { + return redactionConfig_ == null + ? com.google.cloud.ces.v1.RedactionConfig.getDefaultInstance() + : redactionConfig_; + } + } + + /** + * + * + *
      +     * Optional. Configuration for how sensitive data should be redacted.
      +     * 
      + * + * + * .google.cloud.ces.v1.RedactionConfig redaction_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.RedactionConfig, + com.google.cloud.ces.v1.RedactionConfig.Builder, + com.google.cloud.ces.v1.RedactionConfigOrBuilder> + internalGetRedactionConfigFieldBuilder() { + if (redactionConfigBuilder_ == null) { + redactionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.RedactionConfig, + com.google.cloud.ces.v1.RedactionConfig.Builder, + com.google.cloud.ces.v1.RedactionConfigOrBuilder>( + getRedactionConfig(), getParentForChildren(), isClean()); + redactionConfig_ = null; + } + return redactionConfigBuilder_; + } + + private com.google.cloud.ces.v1.AudioRecordingConfig audioRecordingConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.AudioRecordingConfig, + com.google.cloud.ces.v1.AudioRecordingConfig.Builder, + com.google.cloud.ces.v1.AudioRecordingConfigOrBuilder> + audioRecordingConfigBuilder_; + + /** + * + * + *
      +     * Optional. Configuration for how audio interactions should be recorded.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioRecordingConfig audio_recording_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the audioRecordingConfig field is set. + */ + public boolean hasAudioRecordingConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Optional. Configuration for how audio interactions should be recorded.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioRecordingConfig audio_recording_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The audioRecordingConfig. + */ + public com.google.cloud.ces.v1.AudioRecordingConfig getAudioRecordingConfig() { + if (audioRecordingConfigBuilder_ == null) { + return audioRecordingConfig_ == null + ? com.google.cloud.ces.v1.AudioRecordingConfig.getDefaultInstance() + : audioRecordingConfig_; + } else { + return audioRecordingConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Configuration for how audio interactions should be recorded.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioRecordingConfig audio_recording_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAudioRecordingConfig(com.google.cloud.ces.v1.AudioRecordingConfig value) { + if (audioRecordingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + audioRecordingConfig_ = value; + } else { + audioRecordingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for how audio interactions should be recorded.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioRecordingConfig audio_recording_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAudioRecordingConfig( + com.google.cloud.ces.v1.AudioRecordingConfig.Builder builderForValue) { + if (audioRecordingConfigBuilder_ == null) { + audioRecordingConfig_ = builderForValue.build(); + } else { + audioRecordingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for how audio interactions should be recorded.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioRecordingConfig audio_recording_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAudioRecordingConfig(com.google.cloud.ces.v1.AudioRecordingConfig value) { + if (audioRecordingConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && audioRecordingConfig_ != null + && audioRecordingConfig_ + != com.google.cloud.ces.v1.AudioRecordingConfig.getDefaultInstance()) { + getAudioRecordingConfigBuilder().mergeFrom(value); + } else { + audioRecordingConfig_ = value; + } + } else { + audioRecordingConfigBuilder_.mergeFrom(value); + } + if (audioRecordingConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for how audio interactions should be recorded.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioRecordingConfig audio_recording_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAudioRecordingConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + audioRecordingConfig_ = null; + if (audioRecordingConfigBuilder_ != null) { + audioRecordingConfigBuilder_.dispose(); + audioRecordingConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for how audio interactions should be recorded.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioRecordingConfig audio_recording_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.AudioRecordingConfig.Builder getAudioRecordingConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetAudioRecordingConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Configuration for how audio interactions should be recorded.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioRecordingConfig audio_recording_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.AudioRecordingConfigOrBuilder + getAudioRecordingConfigOrBuilder() { + if (audioRecordingConfigBuilder_ != null) { + return audioRecordingConfigBuilder_.getMessageOrBuilder(); + } else { + return audioRecordingConfig_ == null + ? com.google.cloud.ces.v1.AudioRecordingConfig.getDefaultInstance() + : audioRecordingConfig_; + } + } + + /** + * + * + *
      +     * Optional. Configuration for how audio interactions should be recorded.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioRecordingConfig audio_recording_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.AudioRecordingConfig, + com.google.cloud.ces.v1.AudioRecordingConfig.Builder, + com.google.cloud.ces.v1.AudioRecordingConfigOrBuilder> + internalGetAudioRecordingConfigFieldBuilder() { + if (audioRecordingConfigBuilder_ == null) { + audioRecordingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.AudioRecordingConfig, + com.google.cloud.ces.v1.AudioRecordingConfig.Builder, + com.google.cloud.ces.v1.AudioRecordingConfigOrBuilder>( + getAudioRecordingConfig(), getParentForChildren(), isClean()); + audioRecordingConfig_ = null; + } + return audioRecordingConfigBuilder_; + } + + private com.google.cloud.ces.v1.BigQueryExportSettings bigqueryExportSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.BigQueryExportSettings, + com.google.cloud.ces.v1.BigQueryExportSettings.Builder, + com.google.cloud.ces.v1.BigQueryExportSettingsOrBuilder> + bigqueryExportSettingsBuilder_; + + /** + * + * + *
      +     * Optional. Settings to describe the BigQuery export behaviors for the app.
      +     * The conversation data will be exported to BigQuery tables if it is enabled.
      +     * 
      + * + * + * .google.cloud.ces.v1.BigQueryExportSettings bigquery_export_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bigqueryExportSettings field is set. + */ + public boolean hasBigqueryExportSettings() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Optional. Settings to describe the BigQuery export behaviors for the app.
      +     * The conversation data will be exported to BigQuery tables if it is enabled.
      +     * 
      + * + * + * .google.cloud.ces.v1.BigQueryExportSettings bigquery_export_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bigqueryExportSettings. + */ + public com.google.cloud.ces.v1.BigQueryExportSettings getBigqueryExportSettings() { + if (bigqueryExportSettingsBuilder_ == null) { + return bigqueryExportSettings_ == null + ? com.google.cloud.ces.v1.BigQueryExportSettings.getDefaultInstance() + : bigqueryExportSettings_; + } else { + return bigqueryExportSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Settings to describe the BigQuery export behaviors for the app.
      +     * The conversation data will be exported to BigQuery tables if it is enabled.
      +     * 
      + * + * + * .google.cloud.ces.v1.BigQueryExportSettings bigquery_export_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBigqueryExportSettings(com.google.cloud.ces.v1.BigQueryExportSettings value) { + if (bigqueryExportSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + bigqueryExportSettings_ = value; + } else { + bigqueryExportSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Settings to describe the BigQuery export behaviors for the app.
      +     * The conversation data will be exported to BigQuery tables if it is enabled.
      +     * 
      + * + * + * .google.cloud.ces.v1.BigQueryExportSettings bigquery_export_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBigqueryExportSettings( + com.google.cloud.ces.v1.BigQueryExportSettings.Builder builderForValue) { + if (bigqueryExportSettingsBuilder_ == null) { + bigqueryExportSettings_ = builderForValue.build(); + } else { + bigqueryExportSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Settings to describe the BigQuery export behaviors for the app.
      +     * The conversation data will be exported to BigQuery tables if it is enabled.
      +     * 
      + * + * + * .google.cloud.ces.v1.BigQueryExportSettings bigquery_export_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeBigqueryExportSettings( + com.google.cloud.ces.v1.BigQueryExportSettings value) { + if (bigqueryExportSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && bigqueryExportSettings_ != null + && bigqueryExportSettings_ + != com.google.cloud.ces.v1.BigQueryExportSettings.getDefaultInstance()) { + getBigqueryExportSettingsBuilder().mergeFrom(value); + } else { + bigqueryExportSettings_ = value; + } + } else { + bigqueryExportSettingsBuilder_.mergeFrom(value); + } + if (bigqueryExportSettings_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Settings to describe the BigQuery export behaviors for the app.
      +     * The conversation data will be exported to BigQuery tables if it is enabled.
      +     * 
      + * + * + * .google.cloud.ces.v1.BigQueryExportSettings bigquery_export_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearBigqueryExportSettings() { + bitField0_ = (bitField0_ & ~0x00000004); + bigqueryExportSettings_ = null; + if (bigqueryExportSettingsBuilder_ != null) { + bigqueryExportSettingsBuilder_.dispose(); + bigqueryExportSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Settings to describe the BigQuery export behaviors for the app.
      +     * The conversation data will be exported to BigQuery tables if it is enabled.
      +     * 
      + * + * + * .google.cloud.ces.v1.BigQueryExportSettings bigquery_export_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.BigQueryExportSettings.Builder + getBigqueryExportSettingsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetBigqueryExportSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Settings to describe the BigQuery export behaviors for the app.
      +     * The conversation data will be exported to BigQuery tables if it is enabled.
      +     * 
      + * + * + * .google.cloud.ces.v1.BigQueryExportSettings bigquery_export_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.BigQueryExportSettingsOrBuilder + getBigqueryExportSettingsOrBuilder() { + if (bigqueryExportSettingsBuilder_ != null) { + return bigqueryExportSettingsBuilder_.getMessageOrBuilder(); + } else { + return bigqueryExportSettings_ == null + ? com.google.cloud.ces.v1.BigQueryExportSettings.getDefaultInstance() + : bigqueryExportSettings_; + } + } + + /** + * + * + *
      +     * Optional. Settings to describe the BigQuery export behaviors for the app.
      +     * The conversation data will be exported to BigQuery tables if it is enabled.
      +     * 
      + * + * + * .google.cloud.ces.v1.BigQueryExportSettings bigquery_export_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.BigQueryExportSettings, + com.google.cloud.ces.v1.BigQueryExportSettings.Builder, + com.google.cloud.ces.v1.BigQueryExportSettingsOrBuilder> + internalGetBigqueryExportSettingsFieldBuilder() { + if (bigqueryExportSettingsBuilder_ == null) { + bigqueryExportSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.BigQueryExportSettings, + com.google.cloud.ces.v1.BigQueryExportSettings.Builder, + com.google.cloud.ces.v1.BigQueryExportSettingsOrBuilder>( + getBigqueryExportSettings(), getParentForChildren(), isClean()); + bigqueryExportSettings_ = null; + } + return bigqueryExportSettingsBuilder_; + } + + private com.google.cloud.ces.v1.CloudLoggingSettings cloudLoggingSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.CloudLoggingSettings, + com.google.cloud.ces.v1.CloudLoggingSettings.Builder, + com.google.cloud.ces.v1.CloudLoggingSettingsOrBuilder> + cloudLoggingSettingsBuilder_; + + /** + * + * + *
      +     * Optional. Settings to describe the Cloud Logging behaviors for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.CloudLoggingSettings cloud_logging_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cloudLoggingSettings field is set. + */ + public boolean hasCloudLoggingSettings() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +     * Optional. Settings to describe the Cloud Logging behaviors for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.CloudLoggingSettings cloud_logging_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cloudLoggingSettings. + */ + public com.google.cloud.ces.v1.CloudLoggingSettings getCloudLoggingSettings() { + if (cloudLoggingSettingsBuilder_ == null) { + return cloudLoggingSettings_ == null + ? com.google.cloud.ces.v1.CloudLoggingSettings.getDefaultInstance() + : cloudLoggingSettings_; + } else { + return cloudLoggingSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Settings to describe the Cloud Logging behaviors for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.CloudLoggingSettings cloud_logging_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCloudLoggingSettings(com.google.cloud.ces.v1.CloudLoggingSettings value) { + if (cloudLoggingSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cloudLoggingSettings_ = value; + } else { + cloudLoggingSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Settings to describe the Cloud Logging behaviors for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.CloudLoggingSettings cloud_logging_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCloudLoggingSettings( + com.google.cloud.ces.v1.CloudLoggingSettings.Builder builderForValue) { + if (cloudLoggingSettingsBuilder_ == null) { + cloudLoggingSettings_ = builderForValue.build(); + } else { + cloudLoggingSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Settings to describe the Cloud Logging behaviors for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.CloudLoggingSettings cloud_logging_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCloudLoggingSettings(com.google.cloud.ces.v1.CloudLoggingSettings value) { + if (cloudLoggingSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && cloudLoggingSettings_ != null + && cloudLoggingSettings_ + != com.google.cloud.ces.v1.CloudLoggingSettings.getDefaultInstance()) { + getCloudLoggingSettingsBuilder().mergeFrom(value); + } else { + cloudLoggingSettings_ = value; + } + } else { + cloudLoggingSettingsBuilder_.mergeFrom(value); + } + if (cloudLoggingSettings_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Settings to describe the Cloud Logging behaviors for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.CloudLoggingSettings cloud_logging_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCloudLoggingSettings() { + bitField0_ = (bitField0_ & ~0x00000008); + cloudLoggingSettings_ = null; + if (cloudLoggingSettingsBuilder_ != null) { + cloudLoggingSettingsBuilder_.dispose(); + cloudLoggingSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Settings to describe the Cloud Logging behaviors for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.CloudLoggingSettings cloud_logging_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.CloudLoggingSettings.Builder getCloudLoggingSettingsBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetCloudLoggingSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Settings to describe the Cloud Logging behaviors for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.CloudLoggingSettings cloud_logging_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.CloudLoggingSettingsOrBuilder + getCloudLoggingSettingsOrBuilder() { + if (cloudLoggingSettingsBuilder_ != null) { + return cloudLoggingSettingsBuilder_.getMessageOrBuilder(); + } else { + return cloudLoggingSettings_ == null + ? com.google.cloud.ces.v1.CloudLoggingSettings.getDefaultInstance() + : cloudLoggingSettings_; + } + } + + /** + * + * + *
      +     * Optional. Settings to describe the Cloud Logging behaviors for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.CloudLoggingSettings cloud_logging_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.CloudLoggingSettings, + com.google.cloud.ces.v1.CloudLoggingSettings.Builder, + com.google.cloud.ces.v1.CloudLoggingSettingsOrBuilder> + internalGetCloudLoggingSettingsFieldBuilder() { + if (cloudLoggingSettingsBuilder_ == null) { + cloudLoggingSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.CloudLoggingSettings, + com.google.cloud.ces.v1.CloudLoggingSettings.Builder, + com.google.cloud.ces.v1.CloudLoggingSettingsOrBuilder>( + getCloudLoggingSettings(), getParentForChildren(), isClean()); + cloudLoggingSettings_ = null; + } + return cloudLoggingSettingsBuilder_; + } + + private com.google.cloud.ces.v1.ConversationLoggingSettings conversationLoggingSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ConversationLoggingSettings, + com.google.cloud.ces.v1.ConversationLoggingSettings.Builder, + com.google.cloud.ces.v1.ConversationLoggingSettingsOrBuilder> + conversationLoggingSettingsBuilder_; + + /** + * + * + *
      +     * Optional. Settings to describe the conversation logging behaviors for the
      +     * app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ConversationLoggingSettings conversation_logging_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the conversationLoggingSettings field is set. + */ + public boolean hasConversationLoggingSettings() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +     * Optional. Settings to describe the conversation logging behaviors for the
      +     * app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ConversationLoggingSettings conversation_logging_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The conversationLoggingSettings. + */ + public com.google.cloud.ces.v1.ConversationLoggingSettings getConversationLoggingSettings() { + if (conversationLoggingSettingsBuilder_ == null) { + return conversationLoggingSettings_ == null + ? com.google.cloud.ces.v1.ConversationLoggingSettings.getDefaultInstance() + : conversationLoggingSettings_; + } else { + return conversationLoggingSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Settings to describe the conversation logging behaviors for the
      +     * app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ConversationLoggingSettings conversation_logging_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConversationLoggingSettings( + com.google.cloud.ces.v1.ConversationLoggingSettings value) { + if (conversationLoggingSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conversationLoggingSettings_ = value; + } else { + conversationLoggingSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Settings to describe the conversation logging behaviors for the
      +     * app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ConversationLoggingSettings conversation_logging_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConversationLoggingSettings( + com.google.cloud.ces.v1.ConversationLoggingSettings.Builder builderForValue) { + if (conversationLoggingSettingsBuilder_ == null) { + conversationLoggingSettings_ = builderForValue.build(); + } else { + conversationLoggingSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Settings to describe the conversation logging behaviors for the
      +     * app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ConversationLoggingSettings conversation_logging_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeConversationLoggingSettings( + com.google.cloud.ces.v1.ConversationLoggingSettings value) { + if (conversationLoggingSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && conversationLoggingSettings_ != null + && conversationLoggingSettings_ + != com.google.cloud.ces.v1.ConversationLoggingSettings.getDefaultInstance()) { + getConversationLoggingSettingsBuilder().mergeFrom(value); + } else { + conversationLoggingSettings_ = value; + } + } else { + conversationLoggingSettingsBuilder_.mergeFrom(value); + } + if (conversationLoggingSettings_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Settings to describe the conversation logging behaviors for the
      +     * app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ConversationLoggingSettings conversation_logging_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearConversationLoggingSettings() { + bitField0_ = (bitField0_ & ~0x00000010); + conversationLoggingSettings_ = null; + if (conversationLoggingSettingsBuilder_ != null) { + conversationLoggingSettingsBuilder_.dispose(); + conversationLoggingSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Settings to describe the conversation logging behaviors for the
      +     * app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ConversationLoggingSettings conversation_logging_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ConversationLoggingSettings.Builder + getConversationLoggingSettingsBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetConversationLoggingSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Settings to describe the conversation logging behaviors for the
      +     * app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ConversationLoggingSettings conversation_logging_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ConversationLoggingSettingsOrBuilder + getConversationLoggingSettingsOrBuilder() { + if (conversationLoggingSettingsBuilder_ != null) { + return conversationLoggingSettingsBuilder_.getMessageOrBuilder(); + } else { + return conversationLoggingSettings_ == null + ? com.google.cloud.ces.v1.ConversationLoggingSettings.getDefaultInstance() + : conversationLoggingSettings_; + } + } + + /** + * + * + *
      +     * Optional. Settings to describe the conversation logging behaviors for the
      +     * app.
      +     * 
      + * + * + * .google.cloud.ces.v1.ConversationLoggingSettings conversation_logging_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ConversationLoggingSettings, + com.google.cloud.ces.v1.ConversationLoggingSettings.Builder, + com.google.cloud.ces.v1.ConversationLoggingSettingsOrBuilder> + internalGetConversationLoggingSettingsFieldBuilder() { + if (conversationLoggingSettingsBuilder_ == null) { + conversationLoggingSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ConversationLoggingSettings, + com.google.cloud.ces.v1.ConversationLoggingSettings.Builder, + com.google.cloud.ces.v1.ConversationLoggingSettingsOrBuilder>( + getConversationLoggingSettings(), getParentForChildren(), isClean()); + conversationLoggingSettings_ = null; + } + return conversationLoggingSettingsBuilder_; + } + + private com.google.cloud.ces.v1.AudioRecordingConfig evaluationAudioRecordingConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.AudioRecordingConfig, + com.google.cloud.ces.v1.AudioRecordingConfig.Builder, + com.google.cloud.ces.v1.AudioRecordingConfigOrBuilder> + evaluationAudioRecordingConfigBuilder_; + + /** + * + * + *
      +     * Optional. Configuration for how audio interactions should be recorded for
      +     * the evaluation. By default, audio recording is not enabled for evaluation
      +     * sessions.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioRecordingConfig evaluation_audio_recording_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the evaluationAudioRecordingConfig field is set. + */ + public boolean hasEvaluationAudioRecordingConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +     * Optional. Configuration for how audio interactions should be recorded for
      +     * the evaluation. By default, audio recording is not enabled for evaluation
      +     * sessions.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioRecordingConfig evaluation_audio_recording_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The evaluationAudioRecordingConfig. + */ + public com.google.cloud.ces.v1.AudioRecordingConfig getEvaluationAudioRecordingConfig() { + if (evaluationAudioRecordingConfigBuilder_ == null) { + return evaluationAudioRecordingConfig_ == null + ? com.google.cloud.ces.v1.AudioRecordingConfig.getDefaultInstance() + : evaluationAudioRecordingConfig_; + } else { + return evaluationAudioRecordingConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Configuration for how audio interactions should be recorded for
      +     * the evaluation. By default, audio recording is not enabled for evaluation
      +     * sessions.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioRecordingConfig evaluation_audio_recording_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEvaluationAudioRecordingConfig( + com.google.cloud.ces.v1.AudioRecordingConfig value) { + if (evaluationAudioRecordingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evaluationAudioRecordingConfig_ = value; + } else { + evaluationAudioRecordingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for how audio interactions should be recorded for
      +     * the evaluation. By default, audio recording is not enabled for evaluation
      +     * sessions.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioRecordingConfig evaluation_audio_recording_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEvaluationAudioRecordingConfig( + com.google.cloud.ces.v1.AudioRecordingConfig.Builder builderForValue) { + if (evaluationAudioRecordingConfigBuilder_ == null) { + evaluationAudioRecordingConfig_ = builderForValue.build(); + } else { + evaluationAudioRecordingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for how audio interactions should be recorded for
      +     * the evaluation. By default, audio recording is not enabled for evaluation
      +     * sessions.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioRecordingConfig evaluation_audio_recording_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEvaluationAudioRecordingConfig( + com.google.cloud.ces.v1.AudioRecordingConfig value) { + if (evaluationAudioRecordingConfigBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && evaluationAudioRecordingConfig_ != null + && evaluationAudioRecordingConfig_ + != com.google.cloud.ces.v1.AudioRecordingConfig.getDefaultInstance()) { + getEvaluationAudioRecordingConfigBuilder().mergeFrom(value); + } else { + evaluationAudioRecordingConfig_ = value; + } + } else { + evaluationAudioRecordingConfigBuilder_.mergeFrom(value); + } + if (evaluationAudioRecordingConfig_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for how audio interactions should be recorded for
      +     * the evaluation. By default, audio recording is not enabled for evaluation
      +     * sessions.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioRecordingConfig evaluation_audio_recording_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEvaluationAudioRecordingConfig() { + bitField0_ = (bitField0_ & ~0x00000020); + evaluationAudioRecordingConfig_ = null; + if (evaluationAudioRecordingConfigBuilder_ != null) { + evaluationAudioRecordingConfigBuilder_.dispose(); + evaluationAudioRecordingConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for how audio interactions should be recorded for
      +     * the evaluation. By default, audio recording is not enabled for evaluation
      +     * sessions.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioRecordingConfig evaluation_audio_recording_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.AudioRecordingConfig.Builder + getEvaluationAudioRecordingConfigBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetEvaluationAudioRecordingConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Configuration for how audio interactions should be recorded for
      +     * the evaluation. By default, audio recording is not enabled for evaluation
      +     * sessions.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioRecordingConfig evaluation_audio_recording_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.AudioRecordingConfigOrBuilder + getEvaluationAudioRecordingConfigOrBuilder() { + if (evaluationAudioRecordingConfigBuilder_ != null) { + return evaluationAudioRecordingConfigBuilder_.getMessageOrBuilder(); + } else { + return evaluationAudioRecordingConfig_ == null + ? com.google.cloud.ces.v1.AudioRecordingConfig.getDefaultInstance() + : evaluationAudioRecordingConfig_; + } + } + + /** + * + * + *
      +     * Optional. Configuration for how audio interactions should be recorded for
      +     * the evaluation. By default, audio recording is not enabled for evaluation
      +     * sessions.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioRecordingConfig evaluation_audio_recording_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.AudioRecordingConfig, + com.google.cloud.ces.v1.AudioRecordingConfig.Builder, + com.google.cloud.ces.v1.AudioRecordingConfigOrBuilder> + internalGetEvaluationAudioRecordingConfigFieldBuilder() { + if (evaluationAudioRecordingConfigBuilder_ == null) { + evaluationAudioRecordingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.AudioRecordingConfig, + com.google.cloud.ces.v1.AudioRecordingConfig.Builder, + com.google.cloud.ces.v1.AudioRecordingConfigOrBuilder>( + getEvaluationAudioRecordingConfig(), getParentForChildren(), isClean()); + evaluationAudioRecordingConfig_ = null; + } + return evaluationAudioRecordingConfigBuilder_; + } + + private com.google.cloud.ces.v1.MetricAnalysisSettings metricAnalysisSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.MetricAnalysisSettings, + com.google.cloud.ces.v1.MetricAnalysisSettings.Builder, + com.google.cloud.ces.v1.MetricAnalysisSettingsOrBuilder> + metricAnalysisSettingsBuilder_; + + /** + * + * + *
      +     * Optional. Settings to describe the conversation data collection behaviors
      +     * for the LLM analysis pipeline for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.MetricAnalysisSettings metric_analysis_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metricAnalysisSettings field is set. + */ + public boolean hasMetricAnalysisSettings() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
      +     * Optional. Settings to describe the conversation data collection behaviors
      +     * for the LLM analysis pipeline for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.MetricAnalysisSettings metric_analysis_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metricAnalysisSettings. + */ + public com.google.cloud.ces.v1.MetricAnalysisSettings getMetricAnalysisSettings() { + if (metricAnalysisSettingsBuilder_ == null) { + return metricAnalysisSettings_ == null + ? com.google.cloud.ces.v1.MetricAnalysisSettings.getDefaultInstance() + : metricAnalysisSettings_; + } else { + return metricAnalysisSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Settings to describe the conversation data collection behaviors
      +     * for the LLM analysis pipeline for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.MetricAnalysisSettings metric_analysis_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMetricAnalysisSettings(com.google.cloud.ces.v1.MetricAnalysisSettings value) { + if (metricAnalysisSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricAnalysisSettings_ = value; + } else { + metricAnalysisSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Settings to describe the conversation data collection behaviors
      +     * for the LLM analysis pipeline for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.MetricAnalysisSettings metric_analysis_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMetricAnalysisSettings( + com.google.cloud.ces.v1.MetricAnalysisSettings.Builder builderForValue) { + if (metricAnalysisSettingsBuilder_ == null) { + metricAnalysisSettings_ = builderForValue.build(); + } else { + metricAnalysisSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Settings to describe the conversation data collection behaviors
      +     * for the LLM analysis pipeline for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.MetricAnalysisSettings metric_analysis_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMetricAnalysisSettings( + com.google.cloud.ces.v1.MetricAnalysisSettings value) { + if (metricAnalysisSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && metricAnalysisSettings_ != null + && metricAnalysisSettings_ + != com.google.cloud.ces.v1.MetricAnalysisSettings.getDefaultInstance()) { + getMetricAnalysisSettingsBuilder().mergeFrom(value); + } else { + metricAnalysisSettings_ = value; + } + } else { + metricAnalysisSettingsBuilder_.mergeFrom(value); + } + if (metricAnalysisSettings_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Settings to describe the conversation data collection behaviors
      +     * for the LLM analysis pipeline for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.MetricAnalysisSettings metric_analysis_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMetricAnalysisSettings() { + bitField0_ = (bitField0_ & ~0x00000040); + metricAnalysisSettings_ = null; + if (metricAnalysisSettingsBuilder_ != null) { + metricAnalysisSettingsBuilder_.dispose(); + metricAnalysisSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Settings to describe the conversation data collection behaviors
      +     * for the LLM analysis pipeline for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.MetricAnalysisSettings metric_analysis_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.MetricAnalysisSettings.Builder + getMetricAnalysisSettingsBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetMetricAnalysisSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Settings to describe the conversation data collection behaviors
      +     * for the LLM analysis pipeline for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.MetricAnalysisSettings metric_analysis_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.MetricAnalysisSettingsOrBuilder + getMetricAnalysisSettingsOrBuilder() { + if (metricAnalysisSettingsBuilder_ != null) { + return metricAnalysisSettingsBuilder_.getMessageOrBuilder(); + } else { + return metricAnalysisSettings_ == null + ? com.google.cloud.ces.v1.MetricAnalysisSettings.getDefaultInstance() + : metricAnalysisSettings_; + } + } + + /** + * + * + *
      +     * Optional. Settings to describe the conversation data collection behaviors
      +     * for the LLM analysis pipeline for the app.
      +     * 
      + * + * + * .google.cloud.ces.v1.MetricAnalysisSettings metric_analysis_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.MetricAnalysisSettings, + com.google.cloud.ces.v1.MetricAnalysisSettings.Builder, + com.google.cloud.ces.v1.MetricAnalysisSettingsOrBuilder> + internalGetMetricAnalysisSettingsFieldBuilder() { + if (metricAnalysisSettingsBuilder_ == null) { + metricAnalysisSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.MetricAnalysisSettings, + com.google.cloud.ces.v1.MetricAnalysisSettings.Builder, + com.google.cloud.ces.v1.MetricAnalysisSettingsOrBuilder>( + getMetricAnalysisSettings(), getParentForChildren(), isClean()); + metricAnalysisSettings_ = null; + } + return metricAnalysisSettingsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.LoggingSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.LoggingSettings) + private static final com.google.cloud.ces.v1.LoggingSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.LoggingSettings(); + } + + public static com.google.cloud.ces.v1.LoggingSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LoggingSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.LoggingSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LoggingSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LoggingSettingsOrBuilder.java new file mode 100644 index 000000000000..4656f23663ea --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LoggingSettingsOrBuilder.java @@ -0,0 +1,346 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface LoggingSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.LoggingSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. Configuration for how sensitive data should be redacted.
      +   * 
      + * + * + * .google.cloud.ces.v1.RedactionConfig redaction_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the redactionConfig field is set. + */ + boolean hasRedactionConfig(); + + /** + * + * + *
      +   * Optional. Configuration for how sensitive data should be redacted.
      +   * 
      + * + * + * .google.cloud.ces.v1.RedactionConfig redaction_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The redactionConfig. + */ + com.google.cloud.ces.v1.RedactionConfig getRedactionConfig(); + + /** + * + * + *
      +   * Optional. Configuration for how sensitive data should be redacted.
      +   * 
      + * + * + * .google.cloud.ces.v1.RedactionConfig redaction_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.RedactionConfigOrBuilder getRedactionConfigOrBuilder(); + + /** + * + * + *
      +   * Optional. Configuration for how audio interactions should be recorded.
      +   * 
      + * + * + * .google.cloud.ces.v1.AudioRecordingConfig audio_recording_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the audioRecordingConfig field is set. + */ + boolean hasAudioRecordingConfig(); + + /** + * + * + *
      +   * Optional. Configuration for how audio interactions should be recorded.
      +   * 
      + * + * + * .google.cloud.ces.v1.AudioRecordingConfig audio_recording_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The audioRecordingConfig. + */ + com.google.cloud.ces.v1.AudioRecordingConfig getAudioRecordingConfig(); + + /** + * + * + *
      +   * Optional. Configuration for how audio interactions should be recorded.
      +   * 
      + * + * + * .google.cloud.ces.v1.AudioRecordingConfig audio_recording_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.AudioRecordingConfigOrBuilder getAudioRecordingConfigOrBuilder(); + + /** + * + * + *
      +   * Optional. Settings to describe the BigQuery export behaviors for the app.
      +   * The conversation data will be exported to BigQuery tables if it is enabled.
      +   * 
      + * + * + * .google.cloud.ces.v1.BigQueryExportSettings bigquery_export_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bigqueryExportSettings field is set. + */ + boolean hasBigqueryExportSettings(); + + /** + * + * + *
      +   * Optional. Settings to describe the BigQuery export behaviors for the app.
      +   * The conversation data will be exported to BigQuery tables if it is enabled.
      +   * 
      + * + * + * .google.cloud.ces.v1.BigQueryExportSettings bigquery_export_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bigqueryExportSettings. + */ + com.google.cloud.ces.v1.BigQueryExportSettings getBigqueryExportSettings(); + + /** + * + * + *
      +   * Optional. Settings to describe the BigQuery export behaviors for the app.
      +   * The conversation data will be exported to BigQuery tables if it is enabled.
      +   * 
      + * + * + * .google.cloud.ces.v1.BigQueryExportSettings bigquery_export_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.BigQueryExportSettingsOrBuilder getBigqueryExportSettingsOrBuilder(); + + /** + * + * + *
      +   * Optional. Settings to describe the Cloud Logging behaviors for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.CloudLoggingSettings cloud_logging_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cloudLoggingSettings field is set. + */ + boolean hasCloudLoggingSettings(); + + /** + * + * + *
      +   * Optional. Settings to describe the Cloud Logging behaviors for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.CloudLoggingSettings cloud_logging_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cloudLoggingSettings. + */ + com.google.cloud.ces.v1.CloudLoggingSettings getCloudLoggingSettings(); + + /** + * + * + *
      +   * Optional. Settings to describe the Cloud Logging behaviors for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.CloudLoggingSettings cloud_logging_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.CloudLoggingSettingsOrBuilder getCloudLoggingSettingsOrBuilder(); + + /** + * + * + *
      +   * Optional. Settings to describe the conversation logging behaviors for the
      +   * app.
      +   * 
      + * + * + * .google.cloud.ces.v1.ConversationLoggingSettings conversation_logging_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the conversationLoggingSettings field is set. + */ + boolean hasConversationLoggingSettings(); + + /** + * + * + *
      +   * Optional. Settings to describe the conversation logging behaviors for the
      +   * app.
      +   * 
      + * + * + * .google.cloud.ces.v1.ConversationLoggingSettings conversation_logging_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The conversationLoggingSettings. + */ + com.google.cloud.ces.v1.ConversationLoggingSettings getConversationLoggingSettings(); + + /** + * + * + *
      +   * Optional. Settings to describe the conversation logging behaviors for the
      +   * app.
      +   * 
      + * + * + * .google.cloud.ces.v1.ConversationLoggingSettings conversation_logging_settings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ConversationLoggingSettingsOrBuilder + getConversationLoggingSettingsOrBuilder(); + + /** + * + * + *
      +   * Optional. Configuration for how audio interactions should be recorded for
      +   * the evaluation. By default, audio recording is not enabled for evaluation
      +   * sessions.
      +   * 
      + * + * + * .google.cloud.ces.v1.AudioRecordingConfig evaluation_audio_recording_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the evaluationAudioRecordingConfig field is set. + */ + boolean hasEvaluationAudioRecordingConfig(); + + /** + * + * + *
      +   * Optional. Configuration for how audio interactions should be recorded for
      +   * the evaluation. By default, audio recording is not enabled for evaluation
      +   * sessions.
      +   * 
      + * + * + * .google.cloud.ces.v1.AudioRecordingConfig evaluation_audio_recording_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The evaluationAudioRecordingConfig. + */ + com.google.cloud.ces.v1.AudioRecordingConfig getEvaluationAudioRecordingConfig(); + + /** + * + * + *
      +   * Optional. Configuration for how audio interactions should be recorded for
      +   * the evaluation. By default, audio recording is not enabled for evaluation
      +   * sessions.
      +   * 
      + * + * + * .google.cloud.ces.v1.AudioRecordingConfig evaluation_audio_recording_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.AudioRecordingConfigOrBuilder + getEvaluationAudioRecordingConfigOrBuilder(); + + /** + * + * + *
      +   * Optional. Settings to describe the conversation data collection behaviors
      +   * for the LLM analysis pipeline for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.MetricAnalysisSettings metric_analysis_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metricAnalysisSettings field is set. + */ + boolean hasMetricAnalysisSettings(); + + /** + * + * + *
      +   * Optional. Settings to describe the conversation data collection behaviors
      +   * for the LLM analysis pipeline for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.MetricAnalysisSettings metric_analysis_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metricAnalysisSettings. + */ + com.google.cloud.ces.v1.MetricAnalysisSettings getMetricAnalysisSettings(); + + /** + * + * + *
      +   * Optional. Settings to describe the conversation data collection behaviors
      +   * for the LLM analysis pipeline for the app.
      +   * 
      + * + * + * .google.cloud.ces.v1.MetricAnalysisSettings metric_analysis_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.MetricAnalysisSettingsOrBuilder getMetricAnalysisSettingsOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpTool.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpTool.java new file mode 100644 index 000000000000..3a2e0fef2770 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpTool.java @@ -0,0 +1,2606 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/mcp_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * An MCP tool.
      + * See https://modelcontextprotocol.io/specification/2025-06-18/server/tools for
      + * more details.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.McpTool} + */ +@com.google.protobuf.Generated +public final class McpTool extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.McpTool) + McpToolOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "McpTool"); + } + + // Use McpTool.newBuilder() to construct. + private McpTool(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private McpTool() { + name_ = ""; + description_ = ""; + serverAddress_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.McpToolProto + .internal_static_google_cloud_ces_v1_McpTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.McpToolProto + .internal_static_google_cloud_ces_v1_McpTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.McpTool.class, com.google.cloud.ces.v1.McpTool.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. The name of the MCP tool.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The name of the MCP tool.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
      +   * Optional. The description of the MCP tool.
      +   * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The description of the MCP tool.
      +   * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INPUT_SCHEMA_FIELD_NUMBER = 3; + private com.google.cloud.ces.v1.Schema inputSchema_; + + /** + * + * + *
      +   * Optional. The schema of the input arguments of the MCP tool.
      +   * 
      + * + * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the inputSchema field is set. + */ + @java.lang.Override + public boolean hasInputSchema() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Optional. The schema of the input arguments of the MCP tool.
      +   * 
      + * + * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inputSchema. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Schema getInputSchema() { + return inputSchema_ == null + ? com.google.cloud.ces.v1.Schema.getDefaultInstance() + : inputSchema_; + } + + /** + * + * + *
      +   * Optional. The schema of the input arguments of the MCP tool.
      +   * 
      + * + * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.SchemaOrBuilder getInputSchemaOrBuilder() { + return inputSchema_ == null + ? com.google.cloud.ces.v1.Schema.getDefaultInstance() + : inputSchema_; + } + + public static final int OUTPUT_SCHEMA_FIELD_NUMBER = 4; + private com.google.cloud.ces.v1.Schema outputSchema_; + + /** + * + * + *
      +   * Optional. The schema of the output arguments of the MCP tool.
      +   * 
      + * + * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the outputSchema field is set. + */ + @java.lang.Override + public boolean hasOutputSchema() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Optional. The schema of the output arguments of the MCP tool.
      +   * 
      + * + * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The outputSchema. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Schema getOutputSchema() { + return outputSchema_ == null + ? com.google.cloud.ces.v1.Schema.getDefaultInstance() + : outputSchema_; + } + + /** + * + * + *
      +   * Optional. The schema of the output arguments of the MCP tool.
      +   * 
      + * + * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.SchemaOrBuilder getOutputSchemaOrBuilder() { + return outputSchema_ == null + ? com.google.cloud.ces.v1.Schema.getDefaultInstance() + : outputSchema_; + } + + public static final int SERVER_ADDRESS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object serverAddress_ = ""; + + /** + * + * + *
      +   * Required. The server address of the MCP server, e.g.,
      +   * "https://example.com/mcp/". If the server is built with the MCP SDK, the
      +   * url should be suffixed with
      +   * "/mcp/". Only Streamable HTTP transport based servers are supported. This
      +   * is the same as the server_address in the McpToolset. See
      +   * https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http
      +   * for more details.
      +   * 
      + * + * string server_address = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The serverAddress. + */ + @java.lang.Override + public java.lang.String getServerAddress() { + java.lang.Object ref = serverAddress_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serverAddress_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The server address of the MCP server, e.g.,
      +   * "https://example.com/mcp/". If the server is built with the MCP SDK, the
      +   * url should be suffixed with
      +   * "/mcp/". Only Streamable HTTP transport based servers are supported. This
      +   * is the same as the server_address in the McpToolset. See
      +   * https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http
      +   * for more details.
      +   * 
      + * + * string server_address = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for serverAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServerAddressBytes() { + java.lang.Object ref = serverAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serverAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int API_AUTHENTICATION_FIELD_NUMBER = 6; + private com.google.cloud.ces.v1.ApiAuthentication apiAuthentication_; + + /** + * + * + *
      +   * Optional. Authentication information required to execute the tool against
      +   * the MCP server. For bearer token authentication, the token applies only to
      +   * tool execution, not to listing tools. This requires that tools can be
      +   * listed without authentication.
      +   * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiAuthentication field is set. + */ + @java.lang.Override + public boolean hasApiAuthentication() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * Optional. Authentication information required to execute the tool against
      +   * the MCP server. For bearer token authentication, the token applies only to
      +   * tool execution, not to listing tools. This requires that tools can be
      +   * listed without authentication.
      +   * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiAuthentication. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ApiAuthentication getApiAuthentication() { + return apiAuthentication_ == null + ? com.google.cloud.ces.v1.ApiAuthentication.getDefaultInstance() + : apiAuthentication_; + } + + /** + * + * + *
      +   * Optional. Authentication information required to execute the tool against
      +   * the MCP server. For bearer token authentication, the token applies only to
      +   * tool execution, not to listing tools. This requires that tools can be
      +   * listed without authentication.
      +   * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ApiAuthenticationOrBuilder getApiAuthenticationOrBuilder() { + return apiAuthentication_ == null + ? com.google.cloud.ces.v1.ApiAuthentication.getDefaultInstance() + : apiAuthentication_; + } + + public static final int TLS_CONFIG_FIELD_NUMBER = 7; + private com.google.cloud.ces.v1.TlsConfig tlsConfig_; + + /** + * + * + *
      +   * Optional. The TLS configuration. Includes the custom server certificates
      +   * that the client should trust.
      +   * 
      + * + * .google.cloud.ces.v1.TlsConfig tls_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tlsConfig field is set. + */ + @java.lang.Override + public boolean hasTlsConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +   * Optional. The TLS configuration. Includes the custom server certificates
      +   * that the client should trust.
      +   * 
      + * + * .google.cloud.ces.v1.TlsConfig tls_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tlsConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.TlsConfig getTlsConfig() { + return tlsConfig_ == null ? com.google.cloud.ces.v1.TlsConfig.getDefaultInstance() : tlsConfig_; + } + + /** + * + * + *
      +   * Optional. The TLS configuration. Includes the custom server certificates
      +   * that the client should trust.
      +   * 
      + * + * .google.cloud.ces.v1.TlsConfig tls_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.TlsConfigOrBuilder getTlsConfigOrBuilder() { + return tlsConfig_ == null ? com.google.cloud.ces.v1.TlsConfig.getDefaultInstance() : tlsConfig_; + } + + public static final int SERVICE_DIRECTORY_CONFIG_FIELD_NUMBER = 8; + private com.google.cloud.ces.v1.ServiceDirectoryConfig serviceDirectoryConfig_; + + /** + * + * + *
      +   * Optional. Service Directory configuration for VPC-SC, used to resolve
      +   * service names within a perimeter.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceDirectoryConfig field is set. + */ + @java.lang.Override + public boolean hasServiceDirectoryConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +   * Optional. Service Directory configuration for VPC-SC, used to resolve
      +   * service names within a perimeter.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceDirectoryConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ServiceDirectoryConfig getServiceDirectoryConfig() { + return serviceDirectoryConfig_ == null + ? com.google.cloud.ces.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } + + /** + * + * + *
      +   * Optional. Service Directory configuration for VPC-SC, used to resolve
      +   * service names within a perimeter.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ServiceDirectoryConfigOrBuilder + getServiceDirectoryConfigOrBuilder() { + return serviceDirectoryConfig_ == null + ? com.google.cloud.ces.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getInputSchema()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getOutputSchema()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serverAddress_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, serverAddress_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getApiAuthentication()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(7, getTlsConfig()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(8, getServiceDirectoryConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInputSchema()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getOutputSchema()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serverAddress_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, serverAddress_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getApiAuthentication()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getTlsConfig()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, getServiceDirectoryConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.McpTool)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.McpTool other = (com.google.cloud.ces.v1.McpTool) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (hasInputSchema() != other.hasInputSchema()) return false; + if (hasInputSchema()) { + if (!getInputSchema().equals(other.getInputSchema())) return false; + } + if (hasOutputSchema() != other.hasOutputSchema()) return false; + if (hasOutputSchema()) { + if (!getOutputSchema().equals(other.getOutputSchema())) return false; + } + if (!getServerAddress().equals(other.getServerAddress())) return false; + if (hasApiAuthentication() != other.hasApiAuthentication()) return false; + if (hasApiAuthentication()) { + if (!getApiAuthentication().equals(other.getApiAuthentication())) return false; + } + if (hasTlsConfig() != other.hasTlsConfig()) return false; + if (hasTlsConfig()) { + if (!getTlsConfig().equals(other.getTlsConfig())) return false; + } + if (hasServiceDirectoryConfig() != other.hasServiceDirectoryConfig()) return false; + if (hasServiceDirectoryConfig()) { + if (!getServiceDirectoryConfig().equals(other.getServiceDirectoryConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasInputSchema()) { + hash = (37 * hash) + INPUT_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getInputSchema().hashCode(); + } + if (hasOutputSchema()) { + hash = (37 * hash) + OUTPUT_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getOutputSchema().hashCode(); + } + hash = (37 * hash) + SERVER_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getServerAddress().hashCode(); + if (hasApiAuthentication()) { + hash = (37 * hash) + API_AUTHENTICATION_FIELD_NUMBER; + hash = (53 * hash) + getApiAuthentication().hashCode(); + } + if (hasTlsConfig()) { + hash = (37 * hash) + TLS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getTlsConfig().hashCode(); + } + if (hasServiceDirectoryConfig()) { + hash = (37 * hash) + SERVICE_DIRECTORY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getServiceDirectoryConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.McpTool parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.McpTool parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.McpTool parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.McpTool parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.McpTool parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.McpTool parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.McpTool parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.McpTool parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.McpTool parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.McpTool parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.McpTool parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.McpTool parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.McpTool prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * An MCP tool.
      +   * See https://modelcontextprotocol.io/specification/2025-06-18/server/tools for
      +   * more details.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.McpTool} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.McpTool) + com.google.cloud.ces.v1.McpToolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.McpToolProto + .internal_static_google_cloud_ces_v1_McpTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.McpToolProto + .internal_static_google_cloud_ces_v1_McpTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.McpTool.class, com.google.cloud.ces.v1.McpTool.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.McpTool.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetInputSchemaFieldBuilder(); + internalGetOutputSchemaFieldBuilder(); + internalGetApiAuthenticationFieldBuilder(); + internalGetTlsConfigFieldBuilder(); + internalGetServiceDirectoryConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + description_ = ""; + inputSchema_ = null; + if (inputSchemaBuilder_ != null) { + inputSchemaBuilder_.dispose(); + inputSchemaBuilder_ = null; + } + outputSchema_ = null; + if (outputSchemaBuilder_ != null) { + outputSchemaBuilder_.dispose(); + outputSchemaBuilder_ = null; + } + serverAddress_ = ""; + apiAuthentication_ = null; + if (apiAuthenticationBuilder_ != null) { + apiAuthenticationBuilder_.dispose(); + apiAuthenticationBuilder_ = null; + } + tlsConfig_ = null; + if (tlsConfigBuilder_ != null) { + tlsConfigBuilder_.dispose(); + tlsConfigBuilder_ = null; + } + serviceDirectoryConfig_ = null; + if (serviceDirectoryConfigBuilder_ != null) { + serviceDirectoryConfigBuilder_.dispose(); + serviceDirectoryConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.McpToolProto + .internal_static_google_cloud_ces_v1_McpTool_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.McpTool getDefaultInstanceForType() { + return com.google.cloud.ces.v1.McpTool.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.McpTool build() { + com.google.cloud.ces.v1.McpTool result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.McpTool buildPartial() { + com.google.cloud.ces.v1.McpTool result = new com.google.cloud.ces.v1.McpTool(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.McpTool result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.inputSchema_ = + inputSchemaBuilder_ == null ? inputSchema_ : inputSchemaBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.outputSchema_ = + outputSchemaBuilder_ == null ? outputSchema_ : outputSchemaBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.serverAddress_ = serverAddress_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.apiAuthentication_ = + apiAuthenticationBuilder_ == null + ? apiAuthentication_ + : apiAuthenticationBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.tlsConfig_ = tlsConfigBuilder_ == null ? tlsConfig_ : tlsConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.serviceDirectoryConfig_ = + serviceDirectoryConfigBuilder_ == null + ? serviceDirectoryConfig_ + : serviceDirectoryConfigBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.McpTool) { + return mergeFrom((com.google.cloud.ces.v1.McpTool) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.McpTool other) { + if (other == com.google.cloud.ces.v1.McpTool.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasInputSchema()) { + mergeInputSchema(other.getInputSchema()); + } + if (other.hasOutputSchema()) { + mergeOutputSchema(other.getOutputSchema()); + } + if (!other.getServerAddress().isEmpty()) { + serverAddress_ = other.serverAddress_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasApiAuthentication()) { + mergeApiAuthentication(other.getApiAuthentication()); + } + if (other.hasTlsConfig()) { + mergeTlsConfig(other.getTlsConfig()); + } + if (other.hasServiceDirectoryConfig()) { + mergeServiceDirectoryConfig(other.getServiceDirectoryConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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( + internalGetInputSchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetOutputSchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + serverAddress_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetApiAuthenticationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetTlsConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetServiceDirectoryConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Required. The name of the MCP tool.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The name of the MCP tool.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The name of the MCP tool.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The name of the MCP tool.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The name of the MCP tool.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
      +     * Optional. The description of the MCP tool.
      +     * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The description of the MCP tool.
      +     * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The description of the MCP tool.
      +     * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The description of the MCP tool.
      +     * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The description of the MCP tool.
      +     * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.Schema inputSchema_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder> + inputSchemaBuilder_; + + /** + * + * + *
      +     * Optional. The schema of the input arguments of the MCP tool.
      +     * 
      + * + * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the inputSchema field is set. + */ + public boolean hasInputSchema() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Optional. The schema of the input arguments of the MCP tool.
      +     * 
      + * + * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inputSchema. + */ + public com.google.cloud.ces.v1.Schema getInputSchema() { + if (inputSchemaBuilder_ == null) { + return inputSchema_ == null + ? com.google.cloud.ces.v1.Schema.getDefaultInstance() + : inputSchema_; + } else { + return inputSchemaBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. The schema of the input arguments of the MCP tool.
      +     * 
      + * + * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInputSchema(com.google.cloud.ces.v1.Schema value) { + if (inputSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputSchema_ = value; + } else { + inputSchemaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The schema of the input arguments of the MCP tool.
      +     * 
      + * + * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInputSchema(com.google.cloud.ces.v1.Schema.Builder builderForValue) { + if (inputSchemaBuilder_ == null) { + inputSchema_ = builderForValue.build(); + } else { + inputSchemaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The schema of the input arguments of the MCP tool.
      +     * 
      + * + * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeInputSchema(com.google.cloud.ces.v1.Schema value) { + if (inputSchemaBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && inputSchema_ != null + && inputSchema_ != com.google.cloud.ces.v1.Schema.getDefaultInstance()) { + getInputSchemaBuilder().mergeFrom(value); + } else { + inputSchema_ = value; + } + } else { + inputSchemaBuilder_.mergeFrom(value); + } + if (inputSchema_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The schema of the input arguments of the MCP tool.
      +     * 
      + * + * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearInputSchema() { + bitField0_ = (bitField0_ & ~0x00000004); + inputSchema_ = null; + if (inputSchemaBuilder_ != null) { + inputSchemaBuilder_.dispose(); + inputSchemaBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The schema of the input arguments of the MCP tool.
      +     * 
      + * + * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Schema.Builder getInputSchemaBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetInputSchemaFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The schema of the input arguments of the MCP tool.
      +     * 
      + * + * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.SchemaOrBuilder getInputSchemaOrBuilder() { + if (inputSchemaBuilder_ != null) { + return inputSchemaBuilder_.getMessageOrBuilder(); + } else { + return inputSchema_ == null + ? com.google.cloud.ces.v1.Schema.getDefaultInstance() + : inputSchema_; + } + } + + /** + * + * + *
      +     * Optional. The schema of the input arguments of the MCP tool.
      +     * 
      + * + * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder> + internalGetInputSchemaFieldBuilder() { + if (inputSchemaBuilder_ == null) { + inputSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder>( + getInputSchema(), getParentForChildren(), isClean()); + inputSchema_ = null; + } + return inputSchemaBuilder_; + } + + private com.google.cloud.ces.v1.Schema outputSchema_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder> + outputSchemaBuilder_; + + /** + * + * + *
      +     * Optional. The schema of the output arguments of the MCP tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the outputSchema field is set. + */ + public boolean hasOutputSchema() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +     * Optional. The schema of the output arguments of the MCP tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The outputSchema. + */ + public com.google.cloud.ces.v1.Schema getOutputSchema() { + if (outputSchemaBuilder_ == null) { + return outputSchema_ == null + ? com.google.cloud.ces.v1.Schema.getDefaultInstance() + : outputSchema_; + } else { + return outputSchemaBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. The schema of the output arguments of the MCP tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOutputSchema(com.google.cloud.ces.v1.Schema value) { + if (outputSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputSchema_ = value; + } else { + outputSchemaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The schema of the output arguments of the MCP tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOutputSchema(com.google.cloud.ces.v1.Schema.Builder builderForValue) { + if (outputSchemaBuilder_ == null) { + outputSchema_ = builderForValue.build(); + } else { + outputSchemaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The schema of the output arguments of the MCP tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeOutputSchema(com.google.cloud.ces.v1.Schema value) { + if (outputSchemaBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && outputSchema_ != null + && outputSchema_ != com.google.cloud.ces.v1.Schema.getDefaultInstance()) { + getOutputSchemaBuilder().mergeFrom(value); + } else { + outputSchema_ = value; + } + } else { + outputSchemaBuilder_.mergeFrom(value); + } + if (outputSchema_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The schema of the output arguments of the MCP tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOutputSchema() { + bitField0_ = (bitField0_ & ~0x00000008); + outputSchema_ = null; + if (outputSchemaBuilder_ != null) { + outputSchemaBuilder_.dispose(); + outputSchemaBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The schema of the output arguments of the MCP tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Schema.Builder getOutputSchemaBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetOutputSchemaFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The schema of the output arguments of the MCP tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.SchemaOrBuilder getOutputSchemaOrBuilder() { + if (outputSchemaBuilder_ != null) { + return outputSchemaBuilder_.getMessageOrBuilder(); + } else { + return outputSchema_ == null + ? com.google.cloud.ces.v1.Schema.getDefaultInstance() + : outputSchema_; + } + } + + /** + * + * + *
      +     * Optional. The schema of the output arguments of the MCP tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder> + internalGetOutputSchemaFieldBuilder() { + if (outputSchemaBuilder_ == null) { + outputSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder>( + getOutputSchema(), getParentForChildren(), isClean()); + outputSchema_ = null; + } + return outputSchemaBuilder_; + } + + private java.lang.Object serverAddress_ = ""; + + /** + * + * + *
      +     * Required. The server address of the MCP server, e.g.,
      +     * "https://example.com/mcp/". If the server is built with the MCP SDK, the
      +     * url should be suffixed with
      +     * "/mcp/". Only Streamable HTTP transport based servers are supported. This
      +     * is the same as the server_address in the McpToolset. See
      +     * https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http
      +     * for more details.
      +     * 
      + * + * string server_address = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The serverAddress. + */ + public java.lang.String getServerAddress() { + java.lang.Object ref = serverAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serverAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The server address of the MCP server, e.g.,
      +     * "https://example.com/mcp/". If the server is built with the MCP SDK, the
      +     * url should be suffixed with
      +     * "/mcp/". Only Streamable HTTP transport based servers are supported. This
      +     * is the same as the server_address in the McpToolset. See
      +     * https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http
      +     * for more details.
      +     * 
      + * + * string server_address = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for serverAddress. + */ + public com.google.protobuf.ByteString getServerAddressBytes() { + java.lang.Object ref = serverAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serverAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The server address of the MCP server, e.g.,
      +     * "https://example.com/mcp/". If the server is built with the MCP SDK, the
      +     * url should be suffixed with
      +     * "/mcp/". Only Streamable HTTP transport based servers are supported. This
      +     * is the same as the server_address in the McpToolset. See
      +     * https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http
      +     * for more details.
      +     * 
      + * + * string server_address = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The serverAddress to set. + * @return This builder for chaining. + */ + public Builder setServerAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serverAddress_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The server address of the MCP server, e.g.,
      +     * "https://example.com/mcp/". If the server is built with the MCP SDK, the
      +     * url should be suffixed with
      +     * "/mcp/". Only Streamable HTTP transport based servers are supported. This
      +     * is the same as the server_address in the McpToolset. See
      +     * https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http
      +     * for more details.
      +     * 
      + * + * string server_address = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearServerAddress() { + serverAddress_ = getDefaultInstance().getServerAddress(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The server address of the MCP server, e.g.,
      +     * "https://example.com/mcp/". If the server is built with the MCP SDK, the
      +     * url should be suffixed with
      +     * "/mcp/". Only Streamable HTTP transport based servers are supported. This
      +     * is the same as the server_address in the McpToolset. See
      +     * https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http
      +     * for more details.
      +     * 
      + * + * string server_address = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for serverAddress to set. + * @return This builder for chaining. + */ + public Builder setServerAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serverAddress_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.ApiAuthentication apiAuthentication_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ApiAuthentication, + com.google.cloud.ces.v1.ApiAuthentication.Builder, + com.google.cloud.ces.v1.ApiAuthenticationOrBuilder> + apiAuthenticationBuilder_; + + /** + * + * + *
      +     * Optional. Authentication information required to execute the tool against
      +     * the MCP server. For bearer token authentication, the token applies only to
      +     * tool execution, not to listing tools. This requires that tools can be
      +     * listed without authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiAuthentication field is set. + */ + public boolean hasApiAuthentication() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +     * Optional. Authentication information required to execute the tool against
      +     * the MCP server. For bearer token authentication, the token applies only to
      +     * tool execution, not to listing tools. This requires that tools can be
      +     * listed without authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiAuthentication. + */ + public com.google.cloud.ces.v1.ApiAuthentication getApiAuthentication() { + if (apiAuthenticationBuilder_ == null) { + return apiAuthentication_ == null + ? com.google.cloud.ces.v1.ApiAuthentication.getDefaultInstance() + : apiAuthentication_; + } else { + return apiAuthenticationBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Authentication information required to execute the tool against
      +     * the MCP server. For bearer token authentication, the token applies only to
      +     * tool execution, not to listing tools. This requires that tools can be
      +     * listed without authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiAuthentication(com.google.cloud.ces.v1.ApiAuthentication value) { + if (apiAuthenticationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + apiAuthentication_ = value; + } else { + apiAuthenticationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Authentication information required to execute the tool against
      +     * the MCP server. For bearer token authentication, the token applies only to
      +     * tool execution, not to listing tools. This requires that tools can be
      +     * listed without authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiAuthentication( + com.google.cloud.ces.v1.ApiAuthentication.Builder builderForValue) { + if (apiAuthenticationBuilder_ == null) { + apiAuthentication_ = builderForValue.build(); + } else { + apiAuthenticationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Authentication information required to execute the tool against
      +     * the MCP server. For bearer token authentication, the token applies only to
      +     * tool execution, not to listing tools. This requires that tools can be
      +     * listed without authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeApiAuthentication(com.google.cloud.ces.v1.ApiAuthentication value) { + if (apiAuthenticationBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && apiAuthentication_ != null + && apiAuthentication_ + != com.google.cloud.ces.v1.ApiAuthentication.getDefaultInstance()) { + getApiAuthenticationBuilder().mergeFrom(value); + } else { + apiAuthentication_ = value; + } + } else { + apiAuthenticationBuilder_.mergeFrom(value); + } + if (apiAuthentication_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Authentication information required to execute the tool against
      +     * the MCP server. For bearer token authentication, the token applies only to
      +     * tool execution, not to listing tools. This requires that tools can be
      +     * listed without authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApiAuthentication() { + bitField0_ = (bitField0_ & ~0x00000020); + apiAuthentication_ = null; + if (apiAuthenticationBuilder_ != null) { + apiAuthenticationBuilder_.dispose(); + apiAuthenticationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Authentication information required to execute the tool against
      +     * the MCP server. For bearer token authentication, the token applies only to
      +     * tool execution, not to listing tools. This requires that tools can be
      +     * listed without authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ApiAuthentication.Builder getApiAuthenticationBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetApiAuthenticationFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Authentication information required to execute the tool against
      +     * the MCP server. For bearer token authentication, the token applies only to
      +     * tool execution, not to listing tools. This requires that tools can be
      +     * listed without authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ApiAuthenticationOrBuilder getApiAuthenticationOrBuilder() { + if (apiAuthenticationBuilder_ != null) { + return apiAuthenticationBuilder_.getMessageOrBuilder(); + } else { + return apiAuthentication_ == null + ? com.google.cloud.ces.v1.ApiAuthentication.getDefaultInstance() + : apiAuthentication_; + } + } + + /** + * + * + *
      +     * Optional. Authentication information required to execute the tool against
      +     * the MCP server. For bearer token authentication, the token applies only to
      +     * tool execution, not to listing tools. This requires that tools can be
      +     * listed without authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ApiAuthentication, + com.google.cloud.ces.v1.ApiAuthentication.Builder, + com.google.cloud.ces.v1.ApiAuthenticationOrBuilder> + internalGetApiAuthenticationFieldBuilder() { + if (apiAuthenticationBuilder_ == null) { + apiAuthenticationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ApiAuthentication, + com.google.cloud.ces.v1.ApiAuthentication.Builder, + com.google.cloud.ces.v1.ApiAuthenticationOrBuilder>( + getApiAuthentication(), getParentForChildren(), isClean()); + apiAuthentication_ = null; + } + return apiAuthenticationBuilder_; + } + + private com.google.cloud.ces.v1.TlsConfig tlsConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.TlsConfig, + com.google.cloud.ces.v1.TlsConfig.Builder, + com.google.cloud.ces.v1.TlsConfigOrBuilder> + tlsConfigBuilder_; + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * that the client should trust.
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tlsConfig field is set. + */ + public boolean hasTlsConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * that the client should trust.
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tlsConfig. + */ + public com.google.cloud.ces.v1.TlsConfig getTlsConfig() { + if (tlsConfigBuilder_ == null) { + return tlsConfig_ == null + ? com.google.cloud.ces.v1.TlsConfig.getDefaultInstance() + : tlsConfig_; + } else { + return tlsConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * that the client should trust.
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTlsConfig(com.google.cloud.ces.v1.TlsConfig value) { + if (tlsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tlsConfig_ = value; + } else { + tlsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * that the client should trust.
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTlsConfig(com.google.cloud.ces.v1.TlsConfig.Builder builderForValue) { + if (tlsConfigBuilder_ == null) { + tlsConfig_ = builderForValue.build(); + } else { + tlsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * that the client should trust.
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeTlsConfig(com.google.cloud.ces.v1.TlsConfig value) { + if (tlsConfigBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && tlsConfig_ != null + && tlsConfig_ != com.google.cloud.ces.v1.TlsConfig.getDefaultInstance()) { + getTlsConfigBuilder().mergeFrom(value); + } else { + tlsConfig_ = value; + } + } else { + tlsConfigBuilder_.mergeFrom(value); + } + if (tlsConfig_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * that the client should trust.
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTlsConfig() { + bitField0_ = (bitField0_ & ~0x00000040); + tlsConfig_ = null; + if (tlsConfigBuilder_ != null) { + tlsConfigBuilder_.dispose(); + tlsConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * that the client should trust.
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.TlsConfig.Builder getTlsConfigBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetTlsConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * that the client should trust.
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.TlsConfigOrBuilder getTlsConfigOrBuilder() { + if (tlsConfigBuilder_ != null) { + return tlsConfigBuilder_.getMessageOrBuilder(); + } else { + return tlsConfig_ == null + ? com.google.cloud.ces.v1.TlsConfig.getDefaultInstance() + : tlsConfig_; + } + } + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * that the client should trust.
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.TlsConfig, + com.google.cloud.ces.v1.TlsConfig.Builder, + com.google.cloud.ces.v1.TlsConfigOrBuilder> + internalGetTlsConfigFieldBuilder() { + if (tlsConfigBuilder_ == null) { + tlsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.TlsConfig, + com.google.cloud.ces.v1.TlsConfig.Builder, + com.google.cloud.ces.v1.TlsConfigOrBuilder>( + getTlsConfig(), getParentForChildren(), isClean()); + tlsConfig_ = null; + } + return tlsConfigBuilder_; + } + + private com.google.cloud.ces.v1.ServiceDirectoryConfig serviceDirectoryConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ServiceDirectoryConfig, + com.google.cloud.ces.v1.ServiceDirectoryConfig.Builder, + com.google.cloud.ces.v1.ServiceDirectoryConfigOrBuilder> + serviceDirectoryConfigBuilder_; + + /** + * + * + *
      +     * Optional. Service Directory configuration for VPC-SC, used to resolve
      +     * service names within a perimeter.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceDirectoryConfig field is set. + */ + public boolean hasServiceDirectoryConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
      +     * Optional. Service Directory configuration for VPC-SC, used to resolve
      +     * service names within a perimeter.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceDirectoryConfig. + */ + public com.google.cloud.ces.v1.ServiceDirectoryConfig getServiceDirectoryConfig() { + if (serviceDirectoryConfigBuilder_ == null) { + return serviceDirectoryConfig_ == null + ? com.google.cloud.ces.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } else { + return serviceDirectoryConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Service Directory configuration for VPC-SC, used to resolve
      +     * service names within a perimeter.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setServiceDirectoryConfig(com.google.cloud.ces.v1.ServiceDirectoryConfig value) { + if (serviceDirectoryConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serviceDirectoryConfig_ = value; + } else { + serviceDirectoryConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Service Directory configuration for VPC-SC, used to resolve
      +     * service names within a perimeter.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setServiceDirectoryConfig( + com.google.cloud.ces.v1.ServiceDirectoryConfig.Builder builderForValue) { + if (serviceDirectoryConfigBuilder_ == null) { + serviceDirectoryConfig_ = builderForValue.build(); + } else { + serviceDirectoryConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Service Directory configuration for VPC-SC, used to resolve
      +     * service names within a perimeter.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeServiceDirectoryConfig( + com.google.cloud.ces.v1.ServiceDirectoryConfig value) { + if (serviceDirectoryConfigBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && serviceDirectoryConfig_ != null + && serviceDirectoryConfig_ + != com.google.cloud.ces.v1.ServiceDirectoryConfig.getDefaultInstance()) { + getServiceDirectoryConfigBuilder().mergeFrom(value); + } else { + serviceDirectoryConfig_ = value; + } + } else { + serviceDirectoryConfigBuilder_.mergeFrom(value); + } + if (serviceDirectoryConfig_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Service Directory configuration for VPC-SC, used to resolve
      +     * service names within a perimeter.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearServiceDirectoryConfig() { + bitField0_ = (bitField0_ & ~0x00000080); + serviceDirectoryConfig_ = null; + if (serviceDirectoryConfigBuilder_ != null) { + serviceDirectoryConfigBuilder_.dispose(); + serviceDirectoryConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Service Directory configuration for VPC-SC, used to resolve
      +     * service names within a perimeter.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ServiceDirectoryConfig.Builder + getServiceDirectoryConfigBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetServiceDirectoryConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Service Directory configuration for VPC-SC, used to resolve
      +     * service names within a perimeter.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ServiceDirectoryConfigOrBuilder + getServiceDirectoryConfigOrBuilder() { + if (serviceDirectoryConfigBuilder_ != null) { + return serviceDirectoryConfigBuilder_.getMessageOrBuilder(); + } else { + return serviceDirectoryConfig_ == null + ? com.google.cloud.ces.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } + } + + /** + * + * + *
      +     * Optional. Service Directory configuration for VPC-SC, used to resolve
      +     * service names within a perimeter.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ServiceDirectoryConfig, + com.google.cloud.ces.v1.ServiceDirectoryConfig.Builder, + com.google.cloud.ces.v1.ServiceDirectoryConfigOrBuilder> + internalGetServiceDirectoryConfigFieldBuilder() { + if (serviceDirectoryConfigBuilder_ == null) { + serviceDirectoryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ServiceDirectoryConfig, + com.google.cloud.ces.v1.ServiceDirectoryConfig.Builder, + com.google.cloud.ces.v1.ServiceDirectoryConfigOrBuilder>( + getServiceDirectoryConfig(), getParentForChildren(), isClean()); + serviceDirectoryConfig_ = null; + } + return serviceDirectoryConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.McpTool) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.McpTool) + private static final com.google.cloud.ces.v1.McpTool DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.McpTool(); + } + + public static com.google.cloud.ces.v1.McpTool getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public McpTool parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.McpTool getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolOrBuilder.java new file mode 100644 index 000000000000..4af83056c35d --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolOrBuilder.java @@ -0,0 +1,339 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/mcp_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface McpToolOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.McpTool) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The name of the MCP tool.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. The name of the MCP tool.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Optional. The description of the MCP tool.
      +   * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
      +   * Optional. The description of the MCP tool.
      +   * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
      +   * Optional. The schema of the input arguments of the MCP tool.
      +   * 
      + * + * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the inputSchema field is set. + */ + boolean hasInputSchema(); + + /** + * + * + *
      +   * Optional. The schema of the input arguments of the MCP tool.
      +   * 
      + * + * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inputSchema. + */ + com.google.cloud.ces.v1.Schema getInputSchema(); + + /** + * + * + *
      +   * Optional. The schema of the input arguments of the MCP tool.
      +   * 
      + * + * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.SchemaOrBuilder getInputSchemaOrBuilder(); + + /** + * + * + *
      +   * Optional. The schema of the output arguments of the MCP tool.
      +   * 
      + * + * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the outputSchema field is set. + */ + boolean hasOutputSchema(); + + /** + * + * + *
      +   * Optional. The schema of the output arguments of the MCP tool.
      +   * 
      + * + * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The outputSchema. + */ + com.google.cloud.ces.v1.Schema getOutputSchema(); + + /** + * + * + *
      +   * Optional. The schema of the output arguments of the MCP tool.
      +   * 
      + * + * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.SchemaOrBuilder getOutputSchemaOrBuilder(); + + /** + * + * + *
      +   * Required. The server address of the MCP server, e.g.,
      +   * "https://example.com/mcp/". If the server is built with the MCP SDK, the
      +   * url should be suffixed with
      +   * "/mcp/". Only Streamable HTTP transport based servers are supported. This
      +   * is the same as the server_address in the McpToolset. See
      +   * https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http
      +   * for more details.
      +   * 
      + * + * string server_address = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The serverAddress. + */ + java.lang.String getServerAddress(); + + /** + * + * + *
      +   * Required. The server address of the MCP server, e.g.,
      +   * "https://example.com/mcp/". If the server is built with the MCP SDK, the
      +   * url should be suffixed with
      +   * "/mcp/". Only Streamable HTTP transport based servers are supported. This
      +   * is the same as the server_address in the McpToolset. See
      +   * https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http
      +   * for more details.
      +   * 
      + * + * string server_address = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for serverAddress. + */ + com.google.protobuf.ByteString getServerAddressBytes(); + + /** + * + * + *
      +   * Optional. Authentication information required to execute the tool against
      +   * the MCP server. For bearer token authentication, the token applies only to
      +   * tool execution, not to listing tools. This requires that tools can be
      +   * listed without authentication.
      +   * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiAuthentication field is set. + */ + boolean hasApiAuthentication(); + + /** + * + * + *
      +   * Optional. Authentication information required to execute the tool against
      +   * the MCP server. For bearer token authentication, the token applies only to
      +   * tool execution, not to listing tools. This requires that tools can be
      +   * listed without authentication.
      +   * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiAuthentication. + */ + com.google.cloud.ces.v1.ApiAuthentication getApiAuthentication(); + + /** + * + * + *
      +   * Optional. Authentication information required to execute the tool against
      +   * the MCP server. For bearer token authentication, the token applies only to
      +   * tool execution, not to listing tools. This requires that tools can be
      +   * listed without authentication.
      +   * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ApiAuthenticationOrBuilder getApiAuthenticationOrBuilder(); + + /** + * + * + *
      +   * Optional. The TLS configuration. Includes the custom server certificates
      +   * that the client should trust.
      +   * 
      + * + * .google.cloud.ces.v1.TlsConfig tls_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tlsConfig field is set. + */ + boolean hasTlsConfig(); + + /** + * + * + *
      +   * Optional. The TLS configuration. Includes the custom server certificates
      +   * that the client should trust.
      +   * 
      + * + * .google.cloud.ces.v1.TlsConfig tls_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tlsConfig. + */ + com.google.cloud.ces.v1.TlsConfig getTlsConfig(); + + /** + * + * + *
      +   * Optional. The TLS configuration. Includes the custom server certificates
      +   * that the client should trust.
      +   * 
      + * + * .google.cloud.ces.v1.TlsConfig tls_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.TlsConfigOrBuilder getTlsConfigOrBuilder(); + + /** + * + * + *
      +   * Optional. Service Directory configuration for VPC-SC, used to resolve
      +   * service names within a perimeter.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceDirectoryConfig field is set. + */ + boolean hasServiceDirectoryConfig(); + + /** + * + * + *
      +   * Optional. Service Directory configuration for VPC-SC, used to resolve
      +   * service names within a perimeter.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceDirectoryConfig. + */ + com.google.cloud.ces.v1.ServiceDirectoryConfig getServiceDirectoryConfig(); + + /** + * + * + *
      +   * Optional. Service Directory configuration for VPC-SC, used to resolve
      +   * service names within a perimeter.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ServiceDirectoryConfigOrBuilder getServiceDirectoryConfigOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolProto.java new file mode 100644 index 000000000000..5288becd8d77 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolProto.java @@ -0,0 +1,113 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/mcp_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class McpToolProto extends com.google.protobuf.GeneratedFile { + private McpToolProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "McpToolProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_McpTool_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_McpTool_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "\"google/cloud/ces/v1/mcp_tool.proto\022\023go" + + "ogle.cloud.ces.v1\032\037google/api/field_beha" + + "vior.proto\032\036google/cloud/ces/v1/auth.proto\032" + + " google/cloud/ces/v1/common.proto\032 google/cloud/ces/v1/schema.proto\"\232\003\n" + + "\007McpTool\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\022\030\n" + + "\013description\030\002 \001(\tB\003\340A\001\0226\n" + + "\014input_schema\030\003" + + " \001(\0132\033.google.cloud.ces.v1.SchemaB\003\340A\001\0227\n\r" + + "output_schema\030\004" + + " \001(\0132\033.google.cloud.ces.v1.SchemaB\003\340A\001\022\033\n" + + "\016server_address\030\005 \001(\tB\003\340A\002\022G\n" + + "\022api_authentication\030\006" + + " \001(\0132&.google.cloud.ces.v1.ApiAuthenticationB\003\340A\001\0227\n\n" + + "tls_config\030\007 \001(\0132\036.google.cloud.ces.v1.TlsConfigB\003\340A\001\022R\n" + + "\030service_directory_config\030\010 \001(\0132+.goog" + + "le.cloud.ces.v1.ServiceDirectoryConfigB\003\340A\001BT\n" + + "\027com.google.cloud.ces.v1B\014McpToolProtoP\001Z)cloud.google.com/go/ces/apiv1/ce" + + "spb;cespbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.ces.v1.AuthProto.getDescriptor(), + com.google.cloud.ces.v1.CommonProto.getDescriptor(), + com.google.cloud.ces.v1.SchemaProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_McpTool_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_McpTool_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_McpTool_descriptor, + new java.lang.String[] { + "Name", + "Description", + "InputSchema", + "OutputSchema", + "ServerAddress", + "ApiAuthentication", + "TlsConfig", + "ServiceDirectoryConfig", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.ces.v1.AuthProto.getDescriptor(); + com.google.cloud.ces.v1.CommonProto.getDescriptor(); + com.google.cloud.ces.v1.SchemaProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolset.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolset.java new file mode 100644 index 000000000000..4062c419a957 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolset.java @@ -0,0 +1,1624 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/mcp_toolset.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * A toolset that contains a list of tools that are offered by the MCP
      + * server.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.McpToolset} + */ +@com.google.protobuf.Generated +public final class McpToolset extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.McpToolset) + McpToolsetOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "McpToolset"); + } + + // Use McpToolset.newBuilder() to construct. + private McpToolset(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private McpToolset() { + serverAddress_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.McpToolsetProto + .internal_static_google_cloud_ces_v1_McpToolset_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.McpToolsetProto + .internal_static_google_cloud_ces_v1_McpToolset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.McpToolset.class, + com.google.cloud.ces.v1.McpToolset.Builder.class); + } + + private int bitField0_; + public static final int SERVER_ADDRESS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object serverAddress_ = ""; + + /** + * + * + *
      +   * Required. The address of the MCP server, for example,
      +   * "https://example.com/mcp/". If the server is built with the MCP SDK, the
      +   * url should be suffixed with
      +   * "/mcp/". Only Streamable HTTP transport based servers are supported. See
      +   * https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http
      +   * for more details.
      +   * 
      + * + * string server_address = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The serverAddress. + */ + @java.lang.Override + public java.lang.String getServerAddress() { + java.lang.Object ref = serverAddress_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serverAddress_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The address of the MCP server, for example,
      +   * "https://example.com/mcp/". If the server is built with the MCP SDK, the
      +   * url should be suffixed with
      +   * "/mcp/". Only Streamable HTTP transport based servers are supported. See
      +   * https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http
      +   * for more details.
      +   * 
      + * + * string server_address = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for serverAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServerAddressBytes() { + java.lang.Object ref = serverAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serverAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int API_AUTHENTICATION_FIELD_NUMBER = 2; + private com.google.cloud.ces.v1.ApiAuthentication apiAuthentication_; + + /** + * + * + *
      +   * Optional. Authentication information required to access tools and execute a
      +   * tool against the MCP server. For bearer token authentication, the token
      +   * applies only to tool execution, not to listing tools. This requires that
      +   * tools can be listed without authentication.
      +   * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiAuthentication field is set. + */ + @java.lang.Override + public boolean hasApiAuthentication() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Optional. Authentication information required to access tools and execute a
      +   * tool against the MCP server. For bearer token authentication, the token
      +   * applies only to tool execution, not to listing tools. This requires that
      +   * tools can be listed without authentication.
      +   * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiAuthentication. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ApiAuthentication getApiAuthentication() { + return apiAuthentication_ == null + ? com.google.cloud.ces.v1.ApiAuthentication.getDefaultInstance() + : apiAuthentication_; + } + + /** + * + * + *
      +   * Optional. Authentication information required to access tools and execute a
      +   * tool against the MCP server. For bearer token authentication, the token
      +   * applies only to tool execution, not to listing tools. This requires that
      +   * tools can be listed without authentication.
      +   * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ApiAuthenticationOrBuilder getApiAuthenticationOrBuilder() { + return apiAuthentication_ == null + ? com.google.cloud.ces.v1.ApiAuthentication.getDefaultInstance() + : apiAuthentication_; + } + + public static final int SERVICE_DIRECTORY_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.ces.v1.ServiceDirectoryConfig serviceDirectoryConfig_; + + /** + * + * + *
      +   * Optional. Service Directory configuration for VPC-SC, used to resolve
      +   * service names within a perimeter.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceDirectoryConfig field is set. + */ + @java.lang.Override + public boolean hasServiceDirectoryConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Optional. Service Directory configuration for VPC-SC, used to resolve
      +   * service names within a perimeter.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceDirectoryConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ServiceDirectoryConfig getServiceDirectoryConfig() { + return serviceDirectoryConfig_ == null + ? com.google.cloud.ces.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } + + /** + * + * + *
      +   * Optional. Service Directory configuration for VPC-SC, used to resolve
      +   * service names within a perimeter.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ServiceDirectoryConfigOrBuilder + getServiceDirectoryConfigOrBuilder() { + return serviceDirectoryConfig_ == null + ? com.google.cloud.ces.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } + + public static final int TLS_CONFIG_FIELD_NUMBER = 4; + private com.google.cloud.ces.v1.TlsConfig tlsConfig_; + + /** + * + * + *
      +   * Optional. The TLS configuration. Includes the custom server certificates
      +   * that the client should trust.
      +   * 
      + * + * .google.cloud.ces.v1.TlsConfig tls_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tlsConfig field is set. + */ + @java.lang.Override + public boolean hasTlsConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * Optional. The TLS configuration. Includes the custom server certificates
      +   * that the client should trust.
      +   * 
      + * + * .google.cloud.ces.v1.TlsConfig tls_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tlsConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.TlsConfig getTlsConfig() { + return tlsConfig_ == null ? com.google.cloud.ces.v1.TlsConfig.getDefaultInstance() : tlsConfig_; + } + + /** + * + * + *
      +   * Optional. The TLS configuration. Includes the custom server certificates
      +   * that the client should trust.
      +   * 
      + * + * .google.cloud.ces.v1.TlsConfig tls_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.TlsConfigOrBuilder getTlsConfigOrBuilder() { + return tlsConfig_ == null ? com.google.cloud.ces.v1.TlsConfig.getDefaultInstance() : tlsConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serverAddress_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, serverAddress_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getApiAuthentication()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getServiceDirectoryConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getTlsConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serverAddress_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, serverAddress_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getApiAuthentication()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getServiceDirectoryConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTlsConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.McpToolset)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.McpToolset other = (com.google.cloud.ces.v1.McpToolset) obj; + + if (!getServerAddress().equals(other.getServerAddress())) return false; + if (hasApiAuthentication() != other.hasApiAuthentication()) return false; + if (hasApiAuthentication()) { + if (!getApiAuthentication().equals(other.getApiAuthentication())) return false; + } + if (hasServiceDirectoryConfig() != other.hasServiceDirectoryConfig()) return false; + if (hasServiceDirectoryConfig()) { + if (!getServiceDirectoryConfig().equals(other.getServiceDirectoryConfig())) return false; + } + if (hasTlsConfig() != other.hasTlsConfig()) return false; + if (hasTlsConfig()) { + if (!getTlsConfig().equals(other.getTlsConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SERVER_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getServerAddress().hashCode(); + if (hasApiAuthentication()) { + hash = (37 * hash) + API_AUTHENTICATION_FIELD_NUMBER; + hash = (53 * hash) + getApiAuthentication().hashCode(); + } + if (hasServiceDirectoryConfig()) { + hash = (37 * hash) + SERVICE_DIRECTORY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getServiceDirectoryConfig().hashCode(); + } + if (hasTlsConfig()) { + hash = (37 * hash) + TLS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getTlsConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.McpToolset parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.McpToolset parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.McpToolset parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.McpToolset parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.McpToolset parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.McpToolset parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.McpToolset parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.McpToolset parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.McpToolset parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.McpToolset parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.McpToolset parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.McpToolset parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.McpToolset prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * A toolset that contains a list of tools that are offered by the MCP
      +   * server.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.McpToolset} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.McpToolset) + com.google.cloud.ces.v1.McpToolsetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.McpToolsetProto + .internal_static_google_cloud_ces_v1_McpToolset_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.McpToolsetProto + .internal_static_google_cloud_ces_v1_McpToolset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.McpToolset.class, + com.google.cloud.ces.v1.McpToolset.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.McpToolset.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetApiAuthenticationFieldBuilder(); + internalGetServiceDirectoryConfigFieldBuilder(); + internalGetTlsConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + serverAddress_ = ""; + apiAuthentication_ = null; + if (apiAuthenticationBuilder_ != null) { + apiAuthenticationBuilder_.dispose(); + apiAuthenticationBuilder_ = null; + } + serviceDirectoryConfig_ = null; + if (serviceDirectoryConfigBuilder_ != null) { + serviceDirectoryConfigBuilder_.dispose(); + serviceDirectoryConfigBuilder_ = null; + } + tlsConfig_ = null; + if (tlsConfigBuilder_ != null) { + tlsConfigBuilder_.dispose(); + tlsConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.McpToolsetProto + .internal_static_google_cloud_ces_v1_McpToolset_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.McpToolset getDefaultInstanceForType() { + return com.google.cloud.ces.v1.McpToolset.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.McpToolset build() { + com.google.cloud.ces.v1.McpToolset result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.McpToolset buildPartial() { + com.google.cloud.ces.v1.McpToolset result = new com.google.cloud.ces.v1.McpToolset(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.McpToolset result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.serverAddress_ = serverAddress_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.apiAuthentication_ = + apiAuthenticationBuilder_ == null + ? apiAuthentication_ + : apiAuthenticationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.serviceDirectoryConfig_ = + serviceDirectoryConfigBuilder_ == null + ? serviceDirectoryConfig_ + : serviceDirectoryConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.tlsConfig_ = tlsConfigBuilder_ == null ? tlsConfig_ : tlsConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.McpToolset) { + return mergeFrom((com.google.cloud.ces.v1.McpToolset) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.McpToolset other) { + if (other == com.google.cloud.ces.v1.McpToolset.getDefaultInstance()) return this; + if (!other.getServerAddress().isEmpty()) { + serverAddress_ = other.serverAddress_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasApiAuthentication()) { + mergeApiAuthentication(other.getApiAuthentication()); + } + if (other.hasServiceDirectoryConfig()) { + mergeServiceDirectoryConfig(other.getServiceDirectoryConfig()); + } + if (other.hasTlsConfig()) { + mergeTlsConfig(other.getTlsConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + serverAddress_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetApiAuthenticationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetServiceDirectoryConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetTlsConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object serverAddress_ = ""; + + /** + * + * + *
      +     * Required. The address of the MCP server, for example,
      +     * "https://example.com/mcp/". If the server is built with the MCP SDK, the
      +     * url should be suffixed with
      +     * "/mcp/". Only Streamable HTTP transport based servers are supported. See
      +     * https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http
      +     * for more details.
      +     * 
      + * + * string server_address = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The serverAddress. + */ + public java.lang.String getServerAddress() { + java.lang.Object ref = serverAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serverAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The address of the MCP server, for example,
      +     * "https://example.com/mcp/". If the server is built with the MCP SDK, the
      +     * url should be suffixed with
      +     * "/mcp/". Only Streamable HTTP transport based servers are supported. See
      +     * https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http
      +     * for more details.
      +     * 
      + * + * string server_address = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for serverAddress. + */ + public com.google.protobuf.ByteString getServerAddressBytes() { + java.lang.Object ref = serverAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serverAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The address of the MCP server, for example,
      +     * "https://example.com/mcp/". If the server is built with the MCP SDK, the
      +     * url should be suffixed with
      +     * "/mcp/". Only Streamable HTTP transport based servers are supported. See
      +     * https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http
      +     * for more details.
      +     * 
      + * + * string server_address = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The serverAddress to set. + * @return This builder for chaining. + */ + public Builder setServerAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serverAddress_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The address of the MCP server, for example,
      +     * "https://example.com/mcp/". If the server is built with the MCP SDK, the
      +     * url should be suffixed with
      +     * "/mcp/". Only Streamable HTTP transport based servers are supported. See
      +     * https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http
      +     * for more details.
      +     * 
      + * + * string server_address = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearServerAddress() { + serverAddress_ = getDefaultInstance().getServerAddress(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The address of the MCP server, for example,
      +     * "https://example.com/mcp/". If the server is built with the MCP SDK, the
      +     * url should be suffixed with
      +     * "/mcp/". Only Streamable HTTP transport based servers are supported. See
      +     * https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http
      +     * for more details.
      +     * 
      + * + * string server_address = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for serverAddress to set. + * @return This builder for chaining. + */ + public Builder setServerAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serverAddress_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.ApiAuthentication apiAuthentication_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ApiAuthentication, + com.google.cloud.ces.v1.ApiAuthentication.Builder, + com.google.cloud.ces.v1.ApiAuthenticationOrBuilder> + apiAuthenticationBuilder_; + + /** + * + * + *
      +     * Optional. Authentication information required to access tools and execute a
      +     * tool against the MCP server. For bearer token authentication, the token
      +     * applies only to tool execution, not to listing tools. This requires that
      +     * tools can be listed without authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiAuthentication field is set. + */ + public boolean hasApiAuthentication() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Optional. Authentication information required to access tools and execute a
      +     * tool against the MCP server. For bearer token authentication, the token
      +     * applies only to tool execution, not to listing tools. This requires that
      +     * tools can be listed without authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiAuthentication. + */ + public com.google.cloud.ces.v1.ApiAuthentication getApiAuthentication() { + if (apiAuthenticationBuilder_ == null) { + return apiAuthentication_ == null + ? com.google.cloud.ces.v1.ApiAuthentication.getDefaultInstance() + : apiAuthentication_; + } else { + return apiAuthenticationBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Authentication information required to access tools and execute a
      +     * tool against the MCP server. For bearer token authentication, the token
      +     * applies only to tool execution, not to listing tools. This requires that
      +     * tools can be listed without authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiAuthentication(com.google.cloud.ces.v1.ApiAuthentication value) { + if (apiAuthenticationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + apiAuthentication_ = value; + } else { + apiAuthenticationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Authentication information required to access tools and execute a
      +     * tool against the MCP server. For bearer token authentication, the token
      +     * applies only to tool execution, not to listing tools. This requires that
      +     * tools can be listed without authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiAuthentication( + com.google.cloud.ces.v1.ApiAuthentication.Builder builderForValue) { + if (apiAuthenticationBuilder_ == null) { + apiAuthentication_ = builderForValue.build(); + } else { + apiAuthenticationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Authentication information required to access tools and execute a
      +     * tool against the MCP server. For bearer token authentication, the token
      +     * applies only to tool execution, not to listing tools. This requires that
      +     * tools can be listed without authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeApiAuthentication(com.google.cloud.ces.v1.ApiAuthentication value) { + if (apiAuthenticationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && apiAuthentication_ != null + && apiAuthentication_ + != com.google.cloud.ces.v1.ApiAuthentication.getDefaultInstance()) { + getApiAuthenticationBuilder().mergeFrom(value); + } else { + apiAuthentication_ = value; + } + } else { + apiAuthenticationBuilder_.mergeFrom(value); + } + if (apiAuthentication_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Authentication information required to access tools and execute a
      +     * tool against the MCP server. For bearer token authentication, the token
      +     * applies only to tool execution, not to listing tools. This requires that
      +     * tools can be listed without authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApiAuthentication() { + bitField0_ = (bitField0_ & ~0x00000002); + apiAuthentication_ = null; + if (apiAuthenticationBuilder_ != null) { + apiAuthenticationBuilder_.dispose(); + apiAuthenticationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Authentication information required to access tools and execute a
      +     * tool against the MCP server. For bearer token authentication, the token
      +     * applies only to tool execution, not to listing tools. This requires that
      +     * tools can be listed without authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ApiAuthentication.Builder getApiAuthenticationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetApiAuthenticationFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Authentication information required to access tools and execute a
      +     * tool against the MCP server. For bearer token authentication, the token
      +     * applies only to tool execution, not to listing tools. This requires that
      +     * tools can be listed without authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ApiAuthenticationOrBuilder getApiAuthenticationOrBuilder() { + if (apiAuthenticationBuilder_ != null) { + return apiAuthenticationBuilder_.getMessageOrBuilder(); + } else { + return apiAuthentication_ == null + ? com.google.cloud.ces.v1.ApiAuthentication.getDefaultInstance() + : apiAuthentication_; + } + } + + /** + * + * + *
      +     * Optional. Authentication information required to access tools and execute a
      +     * tool against the MCP server. For bearer token authentication, the token
      +     * applies only to tool execution, not to listing tools. This requires that
      +     * tools can be listed without authentication.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ApiAuthentication, + com.google.cloud.ces.v1.ApiAuthentication.Builder, + com.google.cloud.ces.v1.ApiAuthenticationOrBuilder> + internalGetApiAuthenticationFieldBuilder() { + if (apiAuthenticationBuilder_ == null) { + apiAuthenticationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ApiAuthentication, + com.google.cloud.ces.v1.ApiAuthentication.Builder, + com.google.cloud.ces.v1.ApiAuthenticationOrBuilder>( + getApiAuthentication(), getParentForChildren(), isClean()); + apiAuthentication_ = null; + } + return apiAuthenticationBuilder_; + } + + private com.google.cloud.ces.v1.ServiceDirectoryConfig serviceDirectoryConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ServiceDirectoryConfig, + com.google.cloud.ces.v1.ServiceDirectoryConfig.Builder, + com.google.cloud.ces.v1.ServiceDirectoryConfigOrBuilder> + serviceDirectoryConfigBuilder_; + + /** + * + * + *
      +     * Optional. Service Directory configuration for VPC-SC, used to resolve
      +     * service names within a perimeter.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceDirectoryConfig field is set. + */ + public boolean hasServiceDirectoryConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Optional. Service Directory configuration for VPC-SC, used to resolve
      +     * service names within a perimeter.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceDirectoryConfig. + */ + public com.google.cloud.ces.v1.ServiceDirectoryConfig getServiceDirectoryConfig() { + if (serviceDirectoryConfigBuilder_ == null) { + return serviceDirectoryConfig_ == null + ? com.google.cloud.ces.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } else { + return serviceDirectoryConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Service Directory configuration for VPC-SC, used to resolve
      +     * service names within a perimeter.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setServiceDirectoryConfig(com.google.cloud.ces.v1.ServiceDirectoryConfig value) { + if (serviceDirectoryConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serviceDirectoryConfig_ = value; + } else { + serviceDirectoryConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Service Directory configuration for VPC-SC, used to resolve
      +     * service names within a perimeter.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setServiceDirectoryConfig( + com.google.cloud.ces.v1.ServiceDirectoryConfig.Builder builderForValue) { + if (serviceDirectoryConfigBuilder_ == null) { + serviceDirectoryConfig_ = builderForValue.build(); + } else { + serviceDirectoryConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Service Directory configuration for VPC-SC, used to resolve
      +     * service names within a perimeter.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeServiceDirectoryConfig( + com.google.cloud.ces.v1.ServiceDirectoryConfig value) { + if (serviceDirectoryConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && serviceDirectoryConfig_ != null + && serviceDirectoryConfig_ + != com.google.cloud.ces.v1.ServiceDirectoryConfig.getDefaultInstance()) { + getServiceDirectoryConfigBuilder().mergeFrom(value); + } else { + serviceDirectoryConfig_ = value; + } + } else { + serviceDirectoryConfigBuilder_.mergeFrom(value); + } + if (serviceDirectoryConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Service Directory configuration for VPC-SC, used to resolve
      +     * service names within a perimeter.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearServiceDirectoryConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + serviceDirectoryConfig_ = null; + if (serviceDirectoryConfigBuilder_ != null) { + serviceDirectoryConfigBuilder_.dispose(); + serviceDirectoryConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Service Directory configuration for VPC-SC, used to resolve
      +     * service names within a perimeter.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ServiceDirectoryConfig.Builder + getServiceDirectoryConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetServiceDirectoryConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Service Directory configuration for VPC-SC, used to resolve
      +     * service names within a perimeter.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ServiceDirectoryConfigOrBuilder + getServiceDirectoryConfigOrBuilder() { + if (serviceDirectoryConfigBuilder_ != null) { + return serviceDirectoryConfigBuilder_.getMessageOrBuilder(); + } else { + return serviceDirectoryConfig_ == null + ? com.google.cloud.ces.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } + } + + /** + * + * + *
      +     * Optional. Service Directory configuration for VPC-SC, used to resolve
      +     * service names within a perimeter.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ServiceDirectoryConfig, + com.google.cloud.ces.v1.ServiceDirectoryConfig.Builder, + com.google.cloud.ces.v1.ServiceDirectoryConfigOrBuilder> + internalGetServiceDirectoryConfigFieldBuilder() { + if (serviceDirectoryConfigBuilder_ == null) { + serviceDirectoryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ServiceDirectoryConfig, + com.google.cloud.ces.v1.ServiceDirectoryConfig.Builder, + com.google.cloud.ces.v1.ServiceDirectoryConfigOrBuilder>( + getServiceDirectoryConfig(), getParentForChildren(), isClean()); + serviceDirectoryConfig_ = null; + } + return serviceDirectoryConfigBuilder_; + } + + private com.google.cloud.ces.v1.TlsConfig tlsConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.TlsConfig, + com.google.cloud.ces.v1.TlsConfig.Builder, + com.google.cloud.ces.v1.TlsConfigOrBuilder> + tlsConfigBuilder_; + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * that the client should trust.
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tlsConfig field is set. + */ + public boolean hasTlsConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * that the client should trust.
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tlsConfig. + */ + public com.google.cloud.ces.v1.TlsConfig getTlsConfig() { + if (tlsConfigBuilder_ == null) { + return tlsConfig_ == null + ? com.google.cloud.ces.v1.TlsConfig.getDefaultInstance() + : tlsConfig_; + } else { + return tlsConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * that the client should trust.
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTlsConfig(com.google.cloud.ces.v1.TlsConfig value) { + if (tlsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tlsConfig_ = value; + } else { + tlsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * that the client should trust.
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTlsConfig(com.google.cloud.ces.v1.TlsConfig.Builder builderForValue) { + if (tlsConfigBuilder_ == null) { + tlsConfig_ = builderForValue.build(); + } else { + tlsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * that the client should trust.
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeTlsConfig(com.google.cloud.ces.v1.TlsConfig value) { + if (tlsConfigBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && tlsConfig_ != null + && tlsConfig_ != com.google.cloud.ces.v1.TlsConfig.getDefaultInstance()) { + getTlsConfigBuilder().mergeFrom(value); + } else { + tlsConfig_ = value; + } + } else { + tlsConfigBuilder_.mergeFrom(value); + } + if (tlsConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * that the client should trust.
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTlsConfig() { + bitField0_ = (bitField0_ & ~0x00000008); + tlsConfig_ = null; + if (tlsConfigBuilder_ != null) { + tlsConfigBuilder_.dispose(); + tlsConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * that the client should trust.
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.TlsConfig.Builder getTlsConfigBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetTlsConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * that the client should trust.
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.TlsConfigOrBuilder getTlsConfigOrBuilder() { + if (tlsConfigBuilder_ != null) { + return tlsConfigBuilder_.getMessageOrBuilder(); + } else { + return tlsConfig_ == null + ? com.google.cloud.ces.v1.TlsConfig.getDefaultInstance() + : tlsConfig_; + } + } + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * that the client should trust.
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.TlsConfig, + com.google.cloud.ces.v1.TlsConfig.Builder, + com.google.cloud.ces.v1.TlsConfigOrBuilder> + internalGetTlsConfigFieldBuilder() { + if (tlsConfigBuilder_ == null) { + tlsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.TlsConfig, + com.google.cloud.ces.v1.TlsConfig.Builder, + com.google.cloud.ces.v1.TlsConfigOrBuilder>( + getTlsConfig(), getParentForChildren(), isClean()); + tlsConfig_ = null; + } + return tlsConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.McpToolset) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.McpToolset) + private static final com.google.cloud.ces.v1.McpToolset DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.McpToolset(); + } + + public static com.google.cloud.ces.v1.McpToolset getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public McpToolset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.McpToolset getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolsetOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolsetOrBuilder.java new file mode 100644 index 000000000000..29a4e311548f --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolsetOrBuilder.java @@ -0,0 +1,205 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/mcp_toolset.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface McpToolsetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.McpToolset) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The address of the MCP server, for example,
      +   * "https://example.com/mcp/". If the server is built with the MCP SDK, the
      +   * url should be suffixed with
      +   * "/mcp/". Only Streamable HTTP transport based servers are supported. See
      +   * https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http
      +   * for more details.
      +   * 
      + * + * string server_address = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The serverAddress. + */ + java.lang.String getServerAddress(); + + /** + * + * + *
      +   * Required. The address of the MCP server, for example,
      +   * "https://example.com/mcp/". If the server is built with the MCP SDK, the
      +   * url should be suffixed with
      +   * "/mcp/". Only Streamable HTTP transport based servers are supported. See
      +   * https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http
      +   * for more details.
      +   * 
      + * + * string server_address = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for serverAddress. + */ + com.google.protobuf.ByteString getServerAddressBytes(); + + /** + * + * + *
      +   * Optional. Authentication information required to access tools and execute a
      +   * tool against the MCP server. For bearer token authentication, the token
      +   * applies only to tool execution, not to listing tools. This requires that
      +   * tools can be listed without authentication.
      +   * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiAuthentication field is set. + */ + boolean hasApiAuthentication(); + + /** + * + * + *
      +   * Optional. Authentication information required to access tools and execute a
      +   * tool against the MCP server. For bearer token authentication, the token
      +   * applies only to tool execution, not to listing tools. This requires that
      +   * tools can be listed without authentication.
      +   * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiAuthentication. + */ + com.google.cloud.ces.v1.ApiAuthentication getApiAuthentication(); + + /** + * + * + *
      +   * Optional. Authentication information required to access tools and execute a
      +   * tool against the MCP server. For bearer token authentication, the token
      +   * applies only to tool execution, not to listing tools. This requires that
      +   * tools can be listed without authentication.
      +   * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ApiAuthenticationOrBuilder getApiAuthenticationOrBuilder(); + + /** + * + * + *
      +   * Optional. Service Directory configuration for VPC-SC, used to resolve
      +   * service names within a perimeter.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceDirectoryConfig field is set. + */ + boolean hasServiceDirectoryConfig(); + + /** + * + * + *
      +   * Optional. Service Directory configuration for VPC-SC, used to resolve
      +   * service names within a perimeter.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceDirectoryConfig. + */ + com.google.cloud.ces.v1.ServiceDirectoryConfig getServiceDirectoryConfig(); + + /** + * + * + *
      +   * Optional. Service Directory configuration for VPC-SC, used to resolve
      +   * service names within a perimeter.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ServiceDirectoryConfigOrBuilder getServiceDirectoryConfigOrBuilder(); + + /** + * + * + *
      +   * Optional. The TLS configuration. Includes the custom server certificates
      +   * that the client should trust.
      +   * 
      + * + * .google.cloud.ces.v1.TlsConfig tls_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tlsConfig field is set. + */ + boolean hasTlsConfig(); + + /** + * + * + *
      +   * Optional. The TLS configuration. Includes the custom server certificates
      +   * that the client should trust.
      +   * 
      + * + * .google.cloud.ces.v1.TlsConfig tls_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tlsConfig. + */ + com.google.cloud.ces.v1.TlsConfig getTlsConfig(); + + /** + * + * + *
      +   * Optional. The TLS configuration. Includes the custom server certificates
      +   * that the client should trust.
      +   * 
      + * + * .google.cloud.ces.v1.TlsConfig tls_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.TlsConfigOrBuilder getTlsConfigOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolsetProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolsetProto.java new file mode 100644 index 000000000000..8a30cb88bd69 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/McpToolsetProto.java @@ -0,0 +1,97 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/mcp_toolset.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class McpToolsetProto extends com.google.protobuf.GeneratedFile { + private McpToolsetProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "McpToolsetProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_McpToolset_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_McpToolset_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n%google/cloud/ces/v1/mcp_toolset.proto\022" + + "\023google.cloud.ces.v1\032\037google/api/field_b" + + "ehavior.proto\032\036google/cloud/ces/v1/auth." + + "proto\032 google/cloud/ces/v1/common.proto\"" + + "\377\001\n\nMcpToolset\022\033\n\016server_address\030\001 \001(\tB\003" + + "\340A\002\022G\n\022api_authentication\030\002 \001(\0132&.google" + + ".cloud.ces.v1.ApiAuthenticationB\003\340A\001\022R\n\030" + + "service_directory_config\030\003 \001(\0132+.google." + + "cloud.ces.v1.ServiceDirectoryConfigB\003\340A\001" + + "\0227\n\ntls_config\030\004 \001(\0132\036.google.cloud.ces." + + "v1.TlsConfigB\003\340A\001BW\n\027com.google.cloud.ce" + + "s.v1B\017McpToolsetProtoP\001Z)cloud.google.co" + + "m/go/ces/apiv1/cespb;cespbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.ces.v1.AuthProto.getDescriptor(), + com.google.cloud.ces.v1.CommonProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_McpToolset_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_McpToolset_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_McpToolset_descriptor, + new java.lang.String[] { + "ServerAddress", "ApiAuthentication", "ServiceDirectoryConfig", "TlsConfig", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.ces.v1.AuthProto.getDescriptor(); + com.google.cloud.ces.v1.CommonProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Message.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Message.java new file mode 100644 index 000000000000..5a4470f61533 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Message.java @@ -0,0 +1,1449 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/example.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * A message within a conversation.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Message} + */ +@com.google.protobuf.Generated +public final class Message extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.Message) + MessageOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Message"); + } + + // Use Message.newBuilder() to construct. + private Message(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Message() { + role_ = ""; + chunks_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_Message_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_Message_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Message.class, com.google.cloud.ces.v1.Message.Builder.class); + } + + private int bitField0_; + public static final int ROLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object role_ = ""; + + /** + * + * + *
      +   * Optional. The role within the conversation, e.g., user, agent.
      +   * 
      + * + * string role = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The role. + */ + @java.lang.Override + public java.lang.String getRole() { + java.lang.Object ref = role_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + role_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The role within the conversation, e.g., user, agent.
      +   * 
      + * + * string role = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for role. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRoleBytes() { + java.lang.Object ref = role_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + role_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHUNKS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List chunks_; + + /** + * + * + *
      +   * Optional. Content of the message as a series of chunks.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Chunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getChunksList() { + return chunks_; + } + + /** + * + * + *
      +   * Optional. Content of the message as a series of chunks.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Chunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getChunksOrBuilderList() { + return chunks_; + } + + /** + * + * + *
      +   * Optional. Content of the message as a series of chunks.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Chunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getChunksCount() { + return chunks_.size(); + } + + /** + * + * + *
      +   * Optional. Content of the message as a series of chunks.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Chunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Chunk getChunks(int index) { + return chunks_.get(index); + } + + /** + * + * + *
      +   * Optional. Content of the message as a series of chunks.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Chunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ChunkOrBuilder getChunksOrBuilder(int index) { + return chunks_.get(index); + } + + public static final int EVENT_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp eventTime_; + + /** + * + * + *
      +   * Optional. Timestamp when the message was sent or received. Should not be
      +   * used if the message is part of an [example][google.cloud.ces.v1.Example].
      +   * 
      + * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the eventTime field is set. + */ + @java.lang.Override + public boolean hasEventTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Optional. Timestamp when the message was sent or received. Should not be
      +   * used if the message is part of an [example][google.cloud.ces.v1.Example].
      +   * 
      + * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The eventTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEventTime() { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + + /** + * + * + *
      +   * Optional. Timestamp when the message was sent or received. Should not be
      +   * used if the message is part of an [example][google.cloud.ces.v1.Example].
      +   * 
      + * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(role_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, role_); + } + for (int i = 0; i < chunks_.size(); i++) { + output.writeMessage(2, chunks_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getEventTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(role_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, role_); + } + for (int i = 0; i < chunks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, chunks_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEventTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.Message)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.Message other = (com.google.cloud.ces.v1.Message) obj; + + if (!getRole().equals(other.getRole())) return false; + if (!getChunksList().equals(other.getChunksList())) return false; + if (hasEventTime() != other.hasEventTime()) return false; + if (hasEventTime()) { + if (!getEventTime().equals(other.getEventTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ROLE_FIELD_NUMBER; + hash = (53 * hash) + getRole().hashCode(); + if (getChunksCount() > 0) { + hash = (37 * hash) + CHUNKS_FIELD_NUMBER; + hash = (53 * hash) + getChunksList().hashCode(); + } + if (hasEventTime()) { + hash = (37 * hash) + EVENT_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEventTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.Message parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Message parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Message parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Message parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Message parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Message parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Message parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Message parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Message parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Message parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Message parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Message parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.Message prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * A message within a conversation.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Message} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.Message) + com.google.cloud.ces.v1.MessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_Message_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_Message_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Message.class, com.google.cloud.ces.v1.Message.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.Message.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetChunksFieldBuilder(); + internalGetEventTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + role_ = ""; + if (chunksBuilder_ == null) { + chunks_ = java.util.Collections.emptyList(); + } else { + chunks_ = null; + chunksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + eventTime_ = null; + if (eventTimeBuilder_ != null) { + eventTimeBuilder_.dispose(); + eventTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_Message_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Message getDefaultInstanceForType() { + return com.google.cloud.ces.v1.Message.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.Message build() { + com.google.cloud.ces.v1.Message result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Message buildPartial() { + com.google.cloud.ces.v1.Message result = new com.google.cloud.ces.v1.Message(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1.Message result) { + if (chunksBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + chunks_ = java.util.Collections.unmodifiableList(chunks_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.chunks_ = chunks_; + } else { + result.chunks_ = chunksBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.Message result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.role_ = role_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.eventTime_ = eventTimeBuilder_ == null ? eventTime_ : eventTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.Message) { + return mergeFrom((com.google.cloud.ces.v1.Message) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.Message other) { + if (other == com.google.cloud.ces.v1.Message.getDefaultInstance()) return this; + if (!other.getRole().isEmpty()) { + role_ = other.role_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (chunksBuilder_ == null) { + if (!other.chunks_.isEmpty()) { + if (chunks_.isEmpty()) { + chunks_ = other.chunks_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureChunksIsMutable(); + chunks_.addAll(other.chunks_); + } + onChanged(); + } + } else { + if (!other.chunks_.isEmpty()) { + if (chunksBuilder_.isEmpty()) { + chunksBuilder_.dispose(); + chunksBuilder_ = null; + chunks_ = other.chunks_; + bitField0_ = (bitField0_ & ~0x00000002); + chunksBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetChunksFieldBuilder() + : null; + } else { + chunksBuilder_.addAllMessages(other.chunks_); + } + } + } + if (other.hasEventTime()) { + mergeEventTime(other.getEventTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + role_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.ces.v1.Chunk m = + input.readMessage(com.google.cloud.ces.v1.Chunk.parser(), extensionRegistry); + if (chunksBuilder_ == null) { + ensureChunksIsMutable(); + chunks_.add(m); + } else { + chunksBuilder_.addMessage(m); + } + break; + } // case 18 + case 34: + { + input.readMessage( + internalGetEventTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object role_ = ""; + + /** + * + * + *
      +     * Optional. The role within the conversation, e.g., user, agent.
      +     * 
      + * + * string role = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The role. + */ + public java.lang.String getRole() { + java.lang.Object ref = role_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + role_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The role within the conversation, e.g., user, agent.
      +     * 
      + * + * string role = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for role. + */ + public com.google.protobuf.ByteString getRoleBytes() { + java.lang.Object ref = role_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + role_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The role within the conversation, e.g., user, agent.
      +     * 
      + * + * string role = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The role to set. + * @return This builder for chaining. + */ + public Builder setRole(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + role_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The role within the conversation, e.g., user, agent.
      +     * 
      + * + * string role = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRole() { + role_ = getDefaultInstance().getRole(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The role within the conversation, e.g., user, agent.
      +     * 
      + * + * string role = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for role to set. + * @return This builder for chaining. + */ + public Builder setRoleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + role_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List chunks_ = + java.util.Collections.emptyList(); + + private void ensureChunksIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + chunks_ = new java.util.ArrayList(chunks_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Chunk, + com.google.cloud.ces.v1.Chunk.Builder, + com.google.cloud.ces.v1.ChunkOrBuilder> + chunksBuilder_; + + /** + * + * + *
      +     * Optional. Content of the message as a series of chunks.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Chunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getChunksList() { + if (chunksBuilder_ == null) { + return java.util.Collections.unmodifiableList(chunks_); + } else { + return chunksBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Optional. Content of the message as a series of chunks.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Chunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getChunksCount() { + if (chunksBuilder_ == null) { + return chunks_.size(); + } else { + return chunksBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Optional. Content of the message as a series of chunks.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Chunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Chunk getChunks(int index) { + if (chunksBuilder_ == null) { + return chunks_.get(index); + } else { + return chunksBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Optional. Content of the message as a series of chunks.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Chunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setChunks(int index, com.google.cloud.ces.v1.Chunk value) { + if (chunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChunksIsMutable(); + chunks_.set(index, value); + onChanged(); + } else { + chunksBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. Content of the message as a series of chunks.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Chunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setChunks(int index, com.google.cloud.ces.v1.Chunk.Builder builderForValue) { + if (chunksBuilder_ == null) { + ensureChunksIsMutable(); + chunks_.set(index, builderForValue.build()); + onChanged(); + } else { + chunksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. Content of the message as a series of chunks.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Chunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addChunks(com.google.cloud.ces.v1.Chunk value) { + if (chunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChunksIsMutable(); + chunks_.add(value); + onChanged(); + } else { + chunksBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Optional. Content of the message as a series of chunks.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Chunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addChunks(int index, com.google.cloud.ces.v1.Chunk value) { + if (chunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChunksIsMutable(); + chunks_.add(index, value); + onChanged(); + } else { + chunksBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. Content of the message as a series of chunks.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Chunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addChunks(com.google.cloud.ces.v1.Chunk.Builder builderForValue) { + if (chunksBuilder_ == null) { + ensureChunksIsMutable(); + chunks_.add(builderForValue.build()); + onChanged(); + } else { + chunksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. Content of the message as a series of chunks.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Chunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addChunks(int index, com.google.cloud.ces.v1.Chunk.Builder builderForValue) { + if (chunksBuilder_ == null) { + ensureChunksIsMutable(); + chunks_.add(index, builderForValue.build()); + onChanged(); + } else { + chunksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. Content of the message as a series of chunks.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Chunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllChunks( + java.lang.Iterable values) { + if (chunksBuilder_ == null) { + ensureChunksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, chunks_); + onChanged(); + } else { + chunksBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Optional. Content of the message as a series of chunks.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Chunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearChunks() { + if (chunksBuilder_ == null) { + chunks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + chunksBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Content of the message as a series of chunks.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Chunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeChunks(int index) { + if (chunksBuilder_ == null) { + ensureChunksIsMutable(); + chunks_.remove(index); + onChanged(); + } else { + chunksBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Optional. Content of the message as a series of chunks.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Chunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Chunk.Builder getChunksBuilder(int index) { + return internalGetChunksFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Optional. Content of the message as a series of chunks.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Chunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ChunkOrBuilder getChunksOrBuilder(int index) { + if (chunksBuilder_ == null) { + return chunks_.get(index); + } else { + return chunksBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Optional. Content of the message as a series of chunks.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Chunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getChunksOrBuilderList() { + if (chunksBuilder_ != null) { + return chunksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(chunks_); + } + } + + /** + * + * + *
      +     * Optional. Content of the message as a series of chunks.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Chunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Chunk.Builder addChunksBuilder() { + return internalGetChunksFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.Chunk.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. Content of the message as a series of chunks.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Chunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Chunk.Builder addChunksBuilder(int index) { + return internalGetChunksFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.Chunk.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. Content of the message as a series of chunks.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Chunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getChunksBuilderList() { + return internalGetChunksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Chunk, + com.google.cloud.ces.v1.Chunk.Builder, + com.google.cloud.ces.v1.ChunkOrBuilder> + internalGetChunksFieldBuilder() { + if (chunksBuilder_ == null) { + chunksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Chunk, + com.google.cloud.ces.v1.Chunk.Builder, + com.google.cloud.ces.v1.ChunkOrBuilder>( + chunks_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + chunks_ = null; + } + return chunksBuilder_; + } + + private com.google.protobuf.Timestamp eventTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + eventTimeBuilder_; + + /** + * + * + *
      +     * Optional. Timestamp when the message was sent or received. Should not be
      +     * used if the message is part of an [example][google.cloud.ces.v1.Example].
      +     * 
      + * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the eventTime field is set. + */ + public boolean hasEventTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Optional. Timestamp when the message was sent or received. Should not be
      +     * used if the message is part of an [example][google.cloud.ces.v1.Example].
      +     * 
      + * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The eventTime. + */ + public com.google.protobuf.Timestamp getEventTime() { + if (eventTimeBuilder_ == null) { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } else { + return eventTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Timestamp when the message was sent or received. Should not be
      +     * used if the message is part of an [example][google.cloud.ces.v1.Example].
      +     * 
      + * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEventTime(com.google.protobuf.Timestamp value) { + if (eventTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eventTime_ = value; + } else { + eventTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Timestamp when the message was sent or received. Should not be
      +     * used if the message is part of an [example][google.cloud.ces.v1.Example].
      +     * 
      + * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (eventTimeBuilder_ == null) { + eventTime_ = builderForValue.build(); + } else { + eventTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Timestamp when the message was sent or received. Should not be
      +     * used if the message is part of an [example][google.cloud.ces.v1.Example].
      +     * 
      + * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEventTime(com.google.protobuf.Timestamp value) { + if (eventTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && eventTime_ != null + && eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEventTimeBuilder().mergeFrom(value); + } else { + eventTime_ = value; + } + } else { + eventTimeBuilder_.mergeFrom(value); + } + if (eventTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Timestamp when the message was sent or received. Should not be
      +     * used if the message is part of an [example][google.cloud.ces.v1.Example].
      +     * 
      + * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEventTime() { + bitField0_ = (bitField0_ & ~0x00000004); + eventTime_ = null; + if (eventTimeBuilder_ != null) { + eventTimeBuilder_.dispose(); + eventTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Timestamp when the message was sent or received. Should not be
      +     * used if the message is part of an [example][google.cloud.ces.v1.Example].
      +     * 
      + * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetEventTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Timestamp when the message was sent or received. Should not be
      +     * used if the message is part of an [example][google.cloud.ces.v1.Example].
      +     * 
      + * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { + if (eventTimeBuilder_ != null) { + return eventTimeBuilder_.getMessageOrBuilder(); + } else { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + } + + /** + * + * + *
      +     * Optional. Timestamp when the message was sent or received. Should not be
      +     * used if the message is part of an [example][google.cloud.ces.v1.Example].
      +     * 
      + * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetEventTimeFieldBuilder() { + if (eventTimeBuilder_ == null) { + eventTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEventTime(), getParentForChildren(), isClean()); + eventTime_ = null; + } + return eventTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Message) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.Message) + private static final com.google.cloud.ces.v1.Message DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.Message(); + } + + public static com.google.cloud.ces.v1.Message getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Message parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Message getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/MessageOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/MessageOrBuilder.java new file mode 100644 index 000000000000..83b16c97a269 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/MessageOrBuilder.java @@ -0,0 +1,157 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/example.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface MessageOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.Message) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. The role within the conversation, e.g., user, agent.
      +   * 
      + * + * string role = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The role. + */ + java.lang.String getRole(); + + /** + * + * + *
      +   * Optional. The role within the conversation, e.g., user, agent.
      +   * 
      + * + * string role = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for role. + */ + com.google.protobuf.ByteString getRoleBytes(); + + /** + * + * + *
      +   * Optional. Content of the message as a series of chunks.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Chunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getChunksList(); + + /** + * + * + *
      +   * Optional. Content of the message as a series of chunks.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Chunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.Chunk getChunks(int index); + + /** + * + * + *
      +   * Optional. Content of the message as a series of chunks.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Chunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getChunksCount(); + + /** + * + * + *
      +   * Optional. Content of the message as a series of chunks.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Chunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getChunksOrBuilderList(); + + /** + * + * + *
      +   * Optional. Content of the message as a series of chunks.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Chunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ChunkOrBuilder getChunksOrBuilder(int index); + + /** + * + * + *
      +   * Optional. Timestamp when the message was sent or received. Should not be
      +   * used if the message is part of an [example][google.cloud.ces.v1.Example].
      +   * 
      + * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the eventTime field is set. + */ + boolean hasEventTime(); + + /** + * + * + *
      +   * Optional. Timestamp when the message was sent or received. Should not be
      +   * used if the message is part of an [example][google.cloud.ces.v1.Example].
      +   * 
      + * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The eventTime. + */ + com.google.protobuf.Timestamp getEventTime(); + + /** + * + * + *
      +   * Optional. Timestamp when the message was sent or received. Should not be
      +   * used if the message is part of an [example][google.cloud.ces.v1.Example].
      +   * 
      + * + * .google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/MetricAnalysisSettings.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/MetricAnalysisSettings.java new file mode 100644 index 000000000000..875475151d00 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/MetricAnalysisSettings.java @@ -0,0 +1,512 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Settings to describe the conversation data collection behaviors for LLM
      + * analysis metrics pipeline.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.MetricAnalysisSettings} + */ +@com.google.protobuf.Generated +public final class MetricAnalysisSettings extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.MetricAnalysisSettings) + MetricAnalysisSettingsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MetricAnalysisSettings"); + } + + // Use MetricAnalysisSettings.newBuilder() to construct. + private MetricAnalysisSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MetricAnalysisSettings() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_MetricAnalysisSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_MetricAnalysisSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.MetricAnalysisSettings.class, + com.google.cloud.ces.v1.MetricAnalysisSettings.Builder.class); + } + + public static final int LLM_METRICS_OPTED_OUT_FIELD_NUMBER = 1; + private boolean llmMetricsOptedOut_ = false; + + /** + * + * + *
      +   * Optional. Whether to collect conversation data for llm analysis metrics. If
      +   * true, conversation data will not be collected for llm analysis metrics;
      +   * otherwise, conversation data will be collected.
      +   * 
      + * + * bool llm_metrics_opted_out = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The llmMetricsOptedOut. + */ + @java.lang.Override + public boolean getLlmMetricsOptedOut() { + return llmMetricsOptedOut_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (llmMetricsOptedOut_ != false) { + output.writeBool(1, llmMetricsOptedOut_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (llmMetricsOptedOut_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, llmMetricsOptedOut_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.MetricAnalysisSettings)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.MetricAnalysisSettings other = + (com.google.cloud.ces.v1.MetricAnalysisSettings) obj; + + if (getLlmMetricsOptedOut() != other.getLlmMetricsOptedOut()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LLM_METRICS_OPTED_OUT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLlmMetricsOptedOut()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.MetricAnalysisSettings parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.MetricAnalysisSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.MetricAnalysisSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.MetricAnalysisSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.MetricAnalysisSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.MetricAnalysisSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.MetricAnalysisSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.MetricAnalysisSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.MetricAnalysisSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.MetricAnalysisSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.MetricAnalysisSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.MetricAnalysisSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.MetricAnalysisSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Settings to describe the conversation data collection behaviors for LLM
      +   * analysis metrics pipeline.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.MetricAnalysisSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.MetricAnalysisSettings) + com.google.cloud.ces.v1.MetricAnalysisSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_MetricAnalysisSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_MetricAnalysisSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.MetricAnalysisSettings.class, + com.google.cloud.ces.v1.MetricAnalysisSettings.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.MetricAnalysisSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + llmMetricsOptedOut_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_MetricAnalysisSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.MetricAnalysisSettings getDefaultInstanceForType() { + return com.google.cloud.ces.v1.MetricAnalysisSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.MetricAnalysisSettings build() { + com.google.cloud.ces.v1.MetricAnalysisSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.MetricAnalysisSettings buildPartial() { + com.google.cloud.ces.v1.MetricAnalysisSettings result = + new com.google.cloud.ces.v1.MetricAnalysisSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.MetricAnalysisSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.llmMetricsOptedOut_ = llmMetricsOptedOut_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.MetricAnalysisSettings) { + return mergeFrom((com.google.cloud.ces.v1.MetricAnalysisSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.MetricAnalysisSettings other) { + if (other == com.google.cloud.ces.v1.MetricAnalysisSettings.getDefaultInstance()) return this; + if (other.getLlmMetricsOptedOut() != false) { + setLlmMetricsOptedOut(other.getLlmMetricsOptedOut()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + llmMetricsOptedOut_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean llmMetricsOptedOut_; + + /** + * + * + *
      +     * Optional. Whether to collect conversation data for llm analysis metrics. If
      +     * true, conversation data will not be collected for llm analysis metrics;
      +     * otherwise, conversation data will be collected.
      +     * 
      + * + * bool llm_metrics_opted_out = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The llmMetricsOptedOut. + */ + @java.lang.Override + public boolean getLlmMetricsOptedOut() { + return llmMetricsOptedOut_; + } + + /** + * + * + *
      +     * Optional. Whether to collect conversation data for llm analysis metrics. If
      +     * true, conversation data will not be collected for llm analysis metrics;
      +     * otherwise, conversation data will be collected.
      +     * 
      + * + * bool llm_metrics_opted_out = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The llmMetricsOptedOut to set. + * @return This builder for chaining. + */ + public Builder setLlmMetricsOptedOut(boolean value) { + + llmMetricsOptedOut_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Whether to collect conversation data for llm analysis metrics. If
      +     * true, conversation data will not be collected for llm analysis metrics;
      +     * otherwise, conversation data will be collected.
      +     * 
      + * + * bool llm_metrics_opted_out = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLlmMetricsOptedOut() { + bitField0_ = (bitField0_ & ~0x00000001); + llmMetricsOptedOut_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.MetricAnalysisSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.MetricAnalysisSettings) + private static final com.google.cloud.ces.v1.MetricAnalysisSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.MetricAnalysisSettings(); + } + + public static com.google.cloud.ces.v1.MetricAnalysisSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetricAnalysisSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.MetricAnalysisSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/MetricAnalysisSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/MetricAnalysisSettingsOrBuilder.java new file mode 100644 index 000000000000..7c514cfdb6ce --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/MetricAnalysisSettingsOrBuilder.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface MetricAnalysisSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.MetricAnalysisSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. Whether to collect conversation data for llm analysis metrics. If
      +   * true, conversation data will not be collected for llm analysis metrics;
      +   * otherwise, conversation data will be collected.
      +   * 
      + * + * bool llm_metrics_opted_out = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The llmMetricsOptedOut. + */ + boolean getLlmMetricsOptedOut(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ModelSettings.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ModelSettings.java new file mode 100644 index 000000000000..1727c9896210 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ModelSettings.java @@ -0,0 +1,760 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/common.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Model settings contains various configurations for the LLM model.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ModelSettings} + */ +@com.google.protobuf.Generated +public final class ModelSettings extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ModelSettings) + ModelSettingsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ModelSettings"); + } + + // Use ModelSettings.newBuilder() to construct. + private ModelSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ModelSettings() { + model_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ModelSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ModelSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ModelSettings.class, + com.google.cloud.ces.v1.ModelSettings.Builder.class); + } + + private int bitField0_; + public static final int MODEL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; + + /** + * + * + *
      +   * Optional. The LLM model that the agent should use.
      +   * If not set, the agent will inherit the model from its parent agent.
      +   * 
      + * + * string model = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The model. + */ + @java.lang.Override + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The LLM model that the agent should use.
      +   * If not set, the agent will inherit the model from its parent agent.
      +   * 
      + * + * string model = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for model. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEMPERATURE_FIELD_NUMBER = 2; + private double temperature_ = 0D; + + /** + * + * + *
      +   * Optional. If set, this temperature will be used for the LLM model.
      +   * Temperature controls the randomness of the model's responses. Lower
      +   * temperatures produce responses that are more predictable. Higher
      +   * temperatures produce responses that are more creative.
      +   * 
      + * + * optional double temperature = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the temperature field is set. + */ + @java.lang.Override + public boolean hasTemperature() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Optional. If set, this temperature will be used for the LLM model.
      +   * Temperature controls the randomness of the model's responses. Lower
      +   * temperatures produce responses that are more predictable. Higher
      +   * temperatures produce responses that are more creative.
      +   * 
      + * + * optional double temperature = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The temperature. + */ + @java.lang.Override + public double getTemperature() { + return temperature_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(model_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, model_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeDouble(2, temperature_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(model_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, model_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, temperature_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ModelSettings)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ModelSettings other = (com.google.cloud.ces.v1.ModelSettings) obj; + + if (!getModel().equals(other.getModel())) return false; + if (hasTemperature() != other.hasTemperature()) return false; + if (hasTemperature()) { + if (java.lang.Double.doubleToLongBits(getTemperature()) + != java.lang.Double.doubleToLongBits(other.getTemperature())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MODEL_FIELD_NUMBER; + hash = (53 * hash) + getModel().hashCode(); + if (hasTemperature()) { + hash = (37 * hash) + TEMPERATURE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getTemperature())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ModelSettings parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ModelSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ModelSettings parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ModelSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ModelSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ModelSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ModelSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ModelSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ModelSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ModelSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ModelSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ModelSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ModelSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Model settings contains various configurations for the LLM model.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ModelSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ModelSettings) + com.google.cloud.ces.v1.ModelSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ModelSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ModelSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ModelSettings.class, + com.google.cloud.ces.v1.ModelSettings.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ModelSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + model_ = ""; + temperature_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ModelSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ModelSettings getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ModelSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ModelSettings build() { + com.google.cloud.ces.v1.ModelSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ModelSettings buildPartial() { + com.google.cloud.ces.v1.ModelSettings result = + new com.google.cloud.ces.v1.ModelSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ModelSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.model_ = model_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.temperature_ = temperature_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ModelSettings) { + return mergeFrom((com.google.cloud.ces.v1.ModelSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ModelSettings other) { + if (other == com.google.cloud.ces.v1.ModelSettings.getDefaultInstance()) return this; + if (!other.getModel().isEmpty()) { + model_ = other.model_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasTemperature()) { + setTemperature(other.getTemperature()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 17: + { + temperature_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object model_ = ""; + + /** + * + * + *
      +     * Optional. The LLM model that the agent should use.
      +     * If not set, the agent will inherit the model from its parent agent.
      +     * 
      + * + * string model = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The model. + */ + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The LLM model that the agent should use.
      +     * If not set, the agent will inherit the model from its parent agent.
      +     * 
      + * + * string model = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for model. + */ + public com.google.protobuf.ByteString getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The LLM model that the agent should use.
      +     * If not set, the agent will inherit the model from its parent agent.
      +     * 
      + * + * string model = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The model to set. + * @return This builder for chaining. + */ + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + model_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The LLM model that the agent should use.
      +     * If not set, the agent will inherit the model from its parent agent.
      +     * 
      + * + * string model = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearModel() { + model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The LLM model that the agent should use.
      +     * If not set, the agent will inherit the model from its parent agent.
      +     * 
      + * + * string model = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for model to set. + * @return This builder for chaining. + */ + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private double temperature_; + + /** + * + * + *
      +     * Optional. If set, this temperature will be used for the LLM model.
      +     * Temperature controls the randomness of the model's responses. Lower
      +     * temperatures produce responses that are more predictable. Higher
      +     * temperatures produce responses that are more creative.
      +     * 
      + * + * optional double temperature = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the temperature field is set. + */ + @java.lang.Override + public boolean hasTemperature() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Optional. If set, this temperature will be used for the LLM model.
      +     * Temperature controls the randomness of the model's responses. Lower
      +     * temperatures produce responses that are more predictable. Higher
      +     * temperatures produce responses that are more creative.
      +     * 
      + * + * optional double temperature = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The temperature. + */ + @java.lang.Override + public double getTemperature() { + return temperature_; + } + + /** + * + * + *
      +     * Optional. If set, this temperature will be used for the LLM model.
      +     * Temperature controls the randomness of the model's responses. Lower
      +     * temperatures produce responses that are more predictable. Higher
      +     * temperatures produce responses that are more creative.
      +     * 
      + * + * optional double temperature = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The temperature to set. + * @return This builder for chaining. + */ + public Builder setTemperature(double value) { + + temperature_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. If set, this temperature will be used for the LLM model.
      +     * Temperature controls the randomness of the model's responses. Lower
      +     * temperatures produce responses that are more predictable. Higher
      +     * temperatures produce responses that are more creative.
      +     * 
      + * + * optional double temperature = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTemperature() { + bitField0_ = (bitField0_ & ~0x00000002); + temperature_ = 0D; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ModelSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ModelSettings) + private static final com.google.cloud.ces.v1.ModelSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ModelSettings(); + } + + public static com.google.cloud.ces.v1.ModelSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ModelSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ModelSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ModelSettingsOrBuilder.java new file mode 100644 index 000000000000..694e58f8212a --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ModelSettingsOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/common.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ModelSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ModelSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. The LLM model that the agent should use.
      +   * If not set, the agent will inherit the model from its parent agent.
      +   * 
      + * + * string model = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The model. + */ + java.lang.String getModel(); + + /** + * + * + *
      +   * Optional. The LLM model that the agent should use.
      +   * If not set, the agent will inherit the model from its parent agent.
      +   * 
      + * + * string model = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for model. + */ + com.google.protobuf.ByteString getModelBytes(); + + /** + * + * + *
      +   * Optional. If set, this temperature will be used for the LLM model.
      +   * Temperature controls the randomness of the model's responses. Lower
      +   * temperatures produce responses that are more predictable. Higher
      +   * temperatures produce responses that are more creative.
      +   * 
      + * + * optional double temperature = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the temperature field is set. + */ + boolean hasTemperature(); + + /** + * + * + *
      +   * Optional. If set, this temperature will be used for the LLM model.
      +   * Temperature controls the randomness of the model's responses. Lower
      +   * temperatures produce responses that are more predictable. Higher
      +   * temperatures produce responses that are more creative.
      +   * 
      + * + * optional double temperature = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The temperature. + */ + double getTemperature(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OAuthConfig.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OAuthConfig.java new file mode 100644 index 000000000000..de13a6358195 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OAuthConfig.java @@ -0,0 +1,1649 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/auth.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Configurations for authentication with OAuth.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.OAuthConfig} + */ +@com.google.protobuf.Generated +public final class OAuthConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.OAuthConfig) + OAuthConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OAuthConfig"); + } + + // Use OAuthConfig.newBuilder() to construct. + private OAuthConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OAuthConfig() { + oauthGrantType_ = 0; + clientId_ = ""; + clientSecretVersion_ = ""; + tokenEndpoint_ = ""; + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_OAuthConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_OAuthConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.OAuthConfig.class, + com.google.cloud.ces.v1.OAuthConfig.Builder.class); + } + + /** + * + * + *
      +   * OAuth grant types. Only [client credential
      +   * grant](https://oauth.net/2/grant-types/client-credentials) is supported.
      +   * 
      + * + * Protobuf enum {@code google.cloud.ces.v1.OAuthConfig.OauthGrantType} + */ + public enum OauthGrantType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Unspecified. Defaults to CLIENT_CREDENTIAL.
      +     * 
      + * + * OAUTH_GRANT_TYPE_UNSPECIFIED = 0; + */ + OAUTH_GRANT_TYPE_UNSPECIFIED(0), + /** + * + * + *
      +     * Represents the [client credential
      +     * flow](https://oauth.net/2/grant-types/client-credentials).
      +     * 
      + * + * CLIENT_CREDENTIAL = 1; + */ + CLIENT_CREDENTIAL(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OauthGrantType"); + } + + /** + * + * + *
      +     * Unspecified. Defaults to CLIENT_CREDENTIAL.
      +     * 
      + * + * OAUTH_GRANT_TYPE_UNSPECIFIED = 0; + */ + public static final int OAUTH_GRANT_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * Represents the [client credential
      +     * flow](https://oauth.net/2/grant-types/client-credentials).
      +     * 
      + * + * CLIENT_CREDENTIAL = 1; + */ + public static final int CLIENT_CREDENTIAL_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OauthGrantType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static OauthGrantType forNumber(int value) { + switch (value) { + case 0: + return OAUTH_GRANT_TYPE_UNSPECIFIED; + case 1: + return CLIENT_CREDENTIAL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public OauthGrantType findValueByNumber(int number) { + return OauthGrantType.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.OAuthConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final OauthGrantType[] VALUES = values(); + + public static OauthGrantType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private OauthGrantType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.OAuthConfig.OauthGrantType) + } + + public static final int OAUTH_GRANT_TYPE_FIELD_NUMBER = 1; + private int oauthGrantType_ = 0; + + /** + * + * + *
      +   * Required. OAuth grant types.
      +   * 
      + * + * + * .google.cloud.ces.v1.OAuthConfig.OauthGrantType oauth_grant_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for oauthGrantType. + */ + @java.lang.Override + public int getOauthGrantTypeValue() { + return oauthGrantType_; + } + + /** + * + * + *
      +   * Required. OAuth grant types.
      +   * 
      + * + * + * .google.cloud.ces.v1.OAuthConfig.OauthGrantType oauth_grant_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The oauthGrantType. + */ + @java.lang.Override + public com.google.cloud.ces.v1.OAuthConfig.OauthGrantType getOauthGrantType() { + com.google.cloud.ces.v1.OAuthConfig.OauthGrantType result = + com.google.cloud.ces.v1.OAuthConfig.OauthGrantType.forNumber(oauthGrantType_); + return result == null + ? com.google.cloud.ces.v1.OAuthConfig.OauthGrantType.UNRECOGNIZED + : result; + } + + public static final int CLIENT_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object clientId_ = ""; + + /** + * + * + *
      +   * Required. The client ID from the OAuth provider.
      +   * 
      + * + * string client_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clientId. + */ + @java.lang.Override + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The client ID from the OAuth provider.
      +   * 
      + * + * string client_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clientId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_SECRET_VERSION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object clientSecretVersion_ = ""; + + /** + * + * + *
      +   * Required. The name of the SecretManager secret version resource storing the
      +   * client secret.
      +   * Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +   *
      +   * Note: You should grant `roles/secretmanager.secretAccessor` role to the CES
      +   * service agent
      +   * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +   * 
      + * + * + * string client_secret_version = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The clientSecretVersion. + */ + @java.lang.Override + public java.lang.String getClientSecretVersion() { + java.lang.Object ref = clientSecretVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientSecretVersion_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The name of the SecretManager secret version resource storing the
      +   * client secret.
      +   * Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +   *
      +   * Note: You should grant `roles/secretmanager.secretAccessor` role to the CES
      +   * service agent
      +   * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +   * 
      + * + * + * string client_secret_version = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for clientSecretVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientSecretVersionBytes() { + java.lang.Object ref = clientSecretVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientSecretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOKEN_ENDPOINT_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object tokenEndpoint_ = ""; + + /** + * + * + *
      +   * Required. The token endpoint in the OAuth provider to exchange for an
      +   * access token.
      +   * 
      + * + * string token_endpoint = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tokenEndpoint. + */ + @java.lang.Override + public java.lang.String getTokenEndpoint() { + java.lang.Object ref = tokenEndpoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tokenEndpoint_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The token endpoint in the OAuth provider to exchange for an
      +   * access token.
      +   * 
      + * + * string token_endpoint = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tokenEndpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTokenEndpointBytes() { + java.lang.Object ref = tokenEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tokenEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCOPES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +   * Optional. The OAuth scopes to grant.
      +   * 
      + * + * repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList getScopesList() { + return scopes_; + } + + /** + * + * + *
      +   * Optional. The OAuth scopes to grant.
      +   * 
      + * + * repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + + /** + * + * + *
      +   * Optional. The OAuth scopes to grant.
      +   * 
      + * + * repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + public java.lang.String getScopes(int index) { + return scopes_.get(index); + } + + /** + * + * + *
      +   * Optional. The OAuth scopes to grant.
      +   * 
      + * + * repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + public com.google.protobuf.ByteString getScopesBytes(int index) { + return scopes_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (oauthGrantType_ + != com.google.cloud.ces.v1.OAuthConfig.OauthGrantType.OAUTH_GRANT_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, oauthGrantType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, clientId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientSecretVersion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, clientSecretVersion_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tokenEndpoint_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, tokenEndpoint_); + } + for (int i = 0; i < scopes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, scopes_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (oauthGrantType_ + != com.google.cloud.ces.v1.OAuthConfig.OauthGrantType.OAUTH_GRANT_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, oauthGrantType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, clientId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientSecretVersion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, clientSecretVersion_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tokenEndpoint_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, tokenEndpoint_); + } + { + int dataSize = 0; + for (int i = 0; i < scopes_.size(); i++) { + dataSize += computeStringSizeNoTag(scopes_.getRaw(i)); + } + size += dataSize; + size += 1 * getScopesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.OAuthConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.OAuthConfig other = (com.google.cloud.ces.v1.OAuthConfig) obj; + + if (oauthGrantType_ != other.oauthGrantType_) return false; + if (!getClientId().equals(other.getClientId())) return false; + if (!getClientSecretVersion().equals(other.getClientSecretVersion())) return false; + if (!getTokenEndpoint().equals(other.getTokenEndpoint())) return false; + if (!getScopesList().equals(other.getScopesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OAUTH_GRANT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + oauthGrantType_; + hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getClientId().hashCode(); + hash = (37 * hash) + CLIENT_SECRET_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getClientSecretVersion().hashCode(); + hash = (37 * hash) + TOKEN_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getTokenEndpoint().hashCode(); + if (getScopesCount() > 0) { + hash = (37 * hash) + SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getScopesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.OAuthConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OAuthConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OAuthConfig parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OAuthConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OAuthConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OAuthConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OAuthConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OAuthConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OAuthConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OAuthConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OAuthConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OAuthConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.OAuthConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Configurations for authentication with OAuth.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.OAuthConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.OAuthConfig) + com.google.cloud.ces.v1.OAuthConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_OAuthConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_OAuthConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.OAuthConfig.class, + com.google.cloud.ces.v1.OAuthConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.OAuthConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + oauthGrantType_ = 0; + clientId_ = ""; + clientSecretVersion_ = ""; + tokenEndpoint_ = ""; + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_OAuthConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OAuthConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1.OAuthConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.OAuthConfig build() { + com.google.cloud.ces.v1.OAuthConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OAuthConfig buildPartial() { + com.google.cloud.ces.v1.OAuthConfig result = new com.google.cloud.ces.v1.OAuthConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.OAuthConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.oauthGrantType_ = oauthGrantType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.clientId_ = clientId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clientSecretVersion_ = clientSecretVersion_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.tokenEndpoint_ = tokenEndpoint_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + scopes_.makeImmutable(); + result.scopes_ = scopes_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.OAuthConfig) { + return mergeFrom((com.google.cloud.ces.v1.OAuthConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.OAuthConfig other) { + if (other == com.google.cloud.ces.v1.OAuthConfig.getDefaultInstance()) return this; + if (other.oauthGrantType_ != 0) { + setOauthGrantTypeValue(other.getOauthGrantTypeValue()); + } + if (!other.getClientId().isEmpty()) { + clientId_ = other.clientId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClientSecretVersion().isEmpty()) { + clientSecretVersion_ = other.clientSecretVersion_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getTokenEndpoint().isEmpty()) { + tokenEndpoint_ = other.tokenEndpoint_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.scopes_.isEmpty()) { + if (scopes_.isEmpty()) { + scopes_ = other.scopes_; + bitField0_ |= 0x00000010; + } else { + ensureScopesIsMutable(); + scopes_.addAll(other.scopes_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + oauthGrantType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + clientId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + clientSecretVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + tokenEndpoint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureScopesIsMutable(); + scopes_.add(s); + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int oauthGrantType_ = 0; + + /** + * + * + *
      +     * Required. OAuth grant types.
      +     * 
      + * + * + * .google.cloud.ces.v1.OAuthConfig.OauthGrantType oauth_grant_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for oauthGrantType. + */ + @java.lang.Override + public int getOauthGrantTypeValue() { + return oauthGrantType_; + } + + /** + * + * + *
      +     * Required. OAuth grant types.
      +     * 
      + * + * + * .google.cloud.ces.v1.OAuthConfig.OauthGrantType oauth_grant_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for oauthGrantType to set. + * @return This builder for chaining. + */ + public Builder setOauthGrantTypeValue(int value) { + oauthGrantType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. OAuth grant types.
      +     * 
      + * + * + * .google.cloud.ces.v1.OAuthConfig.OauthGrantType oauth_grant_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The oauthGrantType. + */ + @java.lang.Override + public com.google.cloud.ces.v1.OAuthConfig.OauthGrantType getOauthGrantType() { + com.google.cloud.ces.v1.OAuthConfig.OauthGrantType result = + com.google.cloud.ces.v1.OAuthConfig.OauthGrantType.forNumber(oauthGrantType_); + return result == null + ? com.google.cloud.ces.v1.OAuthConfig.OauthGrantType.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * Required. OAuth grant types.
      +     * 
      + * + * + * .google.cloud.ces.v1.OAuthConfig.OauthGrantType oauth_grant_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The oauthGrantType to set. + * @return This builder for chaining. + */ + public Builder setOauthGrantType(com.google.cloud.ces.v1.OAuthConfig.OauthGrantType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + oauthGrantType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. OAuth grant types.
      +     * 
      + * + * + * .google.cloud.ces.v1.OAuthConfig.OauthGrantType oauth_grant_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearOauthGrantType() { + bitField0_ = (bitField0_ & ~0x00000001); + oauthGrantType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object clientId_ = ""; + + /** + * + * + *
      +     * Required. The client ID from the OAuth provider.
      +     * 
      + * + * string client_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clientId. + */ + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The client ID from the OAuth provider.
      +     * 
      + * + * string client_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clientId. + */ + public com.google.protobuf.ByteString getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The client ID from the OAuth provider.
      +     * 
      + * + * string client_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The clientId to set. + * @return This builder for chaining. + */ + public Builder setClientId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clientId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The client ID from the OAuth provider.
      +     * 
      + * + * string client_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearClientId() { + clientId_ = getDefaultInstance().getClientId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The client ID from the OAuth provider.
      +     * 
      + * + * string client_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for clientId to set. + * @return This builder for chaining. + */ + public Builder setClientIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clientSecretVersion_ = ""; + + /** + * + * + *
      +     * Required. The name of the SecretManager secret version resource storing the
      +     * client secret.
      +     * Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +     *
      +     * Note: You should grant `roles/secretmanager.secretAccessor` role to the CES
      +     * service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +     * 
      + * + * + * string client_secret_version = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The clientSecretVersion. + */ + public java.lang.String getClientSecretVersion() { + java.lang.Object ref = clientSecretVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientSecretVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The name of the SecretManager secret version resource storing the
      +     * client secret.
      +     * Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +     *
      +     * Note: You should grant `roles/secretmanager.secretAccessor` role to the CES
      +     * service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +     * 
      + * + * + * string client_secret_version = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for clientSecretVersion. + */ + public com.google.protobuf.ByteString getClientSecretVersionBytes() { + java.lang.Object ref = clientSecretVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientSecretVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The name of the SecretManager secret version resource storing the
      +     * client secret.
      +     * Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +     *
      +     * Note: You should grant `roles/secretmanager.secretAccessor` role to the CES
      +     * service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +     * 
      + * + * + * string client_secret_version = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The clientSecretVersion to set. + * @return This builder for chaining. + */ + public Builder setClientSecretVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clientSecretVersion_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The name of the SecretManager secret version resource storing the
      +     * client secret.
      +     * Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +     *
      +     * Note: You should grant `roles/secretmanager.secretAccessor` role to the CES
      +     * service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +     * 
      + * + * + * string client_secret_version = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearClientSecretVersion() { + clientSecretVersion_ = getDefaultInstance().getClientSecretVersion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The name of the SecretManager secret version resource storing the
      +     * client secret.
      +     * Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +     *
      +     * Note: You should grant `roles/secretmanager.secretAccessor` role to the CES
      +     * service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +     * 
      + * + * + * string client_secret_version = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for clientSecretVersion to set. + * @return This builder for chaining. + */ + public Builder setClientSecretVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientSecretVersion_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object tokenEndpoint_ = ""; + + /** + * + * + *
      +     * Required. The token endpoint in the OAuth provider to exchange for an
      +     * access token.
      +     * 
      + * + * string token_endpoint = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tokenEndpoint. + */ + public java.lang.String getTokenEndpoint() { + java.lang.Object ref = tokenEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tokenEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The token endpoint in the OAuth provider to exchange for an
      +     * access token.
      +     * 
      + * + * string token_endpoint = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tokenEndpoint. + */ + public com.google.protobuf.ByteString getTokenEndpointBytes() { + java.lang.Object ref = tokenEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tokenEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The token endpoint in the OAuth provider to exchange for an
      +     * access token.
      +     * 
      + * + * string token_endpoint = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The tokenEndpoint to set. + * @return This builder for chaining. + */ + public Builder setTokenEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tokenEndpoint_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The token endpoint in the OAuth provider to exchange for an
      +     * access token.
      +     * 
      + * + * string token_endpoint = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTokenEndpoint() { + tokenEndpoint_ = getDefaultInstance().getTokenEndpoint(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The token endpoint in the OAuth provider to exchange for an
      +     * access token.
      +     * 
      + * + * string token_endpoint = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for tokenEndpoint to set. + * @return This builder for chaining. + */ + public Builder setTokenEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tokenEndpoint_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureScopesIsMutable() { + if (!scopes_.isModifiable()) { + scopes_ = new com.google.protobuf.LazyStringArrayList(scopes_); + } + bitField0_ |= 0x00000010; + } + + /** + * + * + *
      +     * Optional. The OAuth scopes to grant.
      +     * 
      + * + * repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList getScopesList() { + scopes_.makeImmutable(); + return scopes_; + } + + /** + * + * + *
      +     * Optional. The OAuth scopes to grant.
      +     * 
      + * + * repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + + /** + * + * + *
      +     * Optional. The OAuth scopes to grant.
      +     * 
      + * + * repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + public java.lang.String getScopes(int index) { + return scopes_.get(index); + } + + /** + * + * + *
      +     * Optional. The OAuth scopes to grant.
      +     * 
      + * + * repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + public com.google.protobuf.ByteString getScopesBytes(int index) { + return scopes_.getByteString(index); + } + + /** + * + * + *
      +     * Optional. The OAuth scopes to grant.
      +     * 
      + * + * repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The scopes to set. + * @return This builder for chaining. + */ + public Builder setScopes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesIsMutable(); + scopes_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The OAuth scopes to grant.
      +     * 
      + * + * repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The scopes to add. + * @return This builder for chaining. + */ + public Builder addScopes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesIsMutable(); + scopes_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The OAuth scopes to grant.
      +     * 
      + * + * repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The scopes to add. + * @return This builder for chaining. + */ + public Builder addAllScopes(java.lang.Iterable values) { + ensureScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scopes_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The OAuth scopes to grant.
      +     * 
      + * + * repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearScopes() { + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The OAuth scopes to grant.
      +     * 
      + * + * repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the scopes to add. + * @return This builder for chaining. + */ + public Builder addScopesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureScopesIsMutable(); + scopes_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.OAuthConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.OAuthConfig) + private static final com.google.cloud.ces.v1.OAuthConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.OAuthConfig(); + } + + public static com.google.cloud.ces.v1.OAuthConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OAuthConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OAuthConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OAuthConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OAuthConfigOrBuilder.java new file mode 100644 index 000000000000..7a305a422194 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OAuthConfigOrBuilder.java @@ -0,0 +1,208 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/auth.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface OAuthConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.OAuthConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. OAuth grant types.
      +   * 
      + * + * + * .google.cloud.ces.v1.OAuthConfig.OauthGrantType oauth_grant_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for oauthGrantType. + */ + int getOauthGrantTypeValue(); + + /** + * + * + *
      +   * Required. OAuth grant types.
      +   * 
      + * + * + * .google.cloud.ces.v1.OAuthConfig.OauthGrantType oauth_grant_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The oauthGrantType. + */ + com.google.cloud.ces.v1.OAuthConfig.OauthGrantType getOauthGrantType(); + + /** + * + * + *
      +   * Required. The client ID from the OAuth provider.
      +   * 
      + * + * string client_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clientId. + */ + java.lang.String getClientId(); + + /** + * + * + *
      +   * Required. The client ID from the OAuth provider.
      +   * 
      + * + * string client_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clientId. + */ + com.google.protobuf.ByteString getClientIdBytes(); + + /** + * + * + *
      +   * Required. The name of the SecretManager secret version resource storing the
      +   * client secret.
      +   * Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +   *
      +   * Note: You should grant `roles/secretmanager.secretAccessor` role to the CES
      +   * service agent
      +   * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +   * 
      + * + * + * string client_secret_version = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The clientSecretVersion. + */ + java.lang.String getClientSecretVersion(); + + /** + * + * + *
      +   * Required. The name of the SecretManager secret version resource storing the
      +   * client secret.
      +   * Format: `projects/{project}/secrets/{secret}/versions/{version}`
      +   *
      +   * Note: You should grant `roles/secretmanager.secretAccessor` role to the CES
      +   * service agent
      +   * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +   * 
      + * + * + * string client_secret_version = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for clientSecretVersion. + */ + com.google.protobuf.ByteString getClientSecretVersionBytes(); + + /** + * + * + *
      +   * Required. The token endpoint in the OAuth provider to exchange for an
      +   * access token.
      +   * 
      + * + * string token_endpoint = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tokenEndpoint. + */ + java.lang.String getTokenEndpoint(); + + /** + * + * + *
      +   * Required. The token endpoint in the OAuth provider to exchange for an
      +   * access token.
      +   * 
      + * + * string token_endpoint = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tokenEndpoint. + */ + com.google.protobuf.ByteString getTokenEndpointBytes(); + + /** + * + * + *
      +   * Optional. The OAuth scopes to grant.
      +   * 
      + * + * repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the scopes. + */ + java.util.List getScopesList(); + + /** + * + * + *
      +   * Optional. The OAuth scopes to grant.
      +   * 
      + * + * repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of scopes. + */ + int getScopesCount(); + + /** + * + * + *
      +   * Optional. The OAuth scopes to grant.
      +   * 
      + * + * repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + java.lang.String getScopes(int index); + + /** + * + * + *
      +   * Optional. The OAuth scopes to grant.
      +   * 
      + * + * repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + com.google.protobuf.ByteString getScopesBytes(int index); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Omnichannel.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Omnichannel.java new file mode 100644 index 000000000000..96634efbfd19 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Omnichannel.java @@ -0,0 +1,2102 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/omnichannel.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Represents an Omnichannel resource.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Omnichannel} + */ +@com.google.protobuf.Generated +public final class Omnichannel extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.Omnichannel) + OmnichannelOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Omnichannel"); + } + + // Use Omnichannel.newBuilder() to construct. + private Omnichannel(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Omnichannel() { + name_ = ""; + displayName_ = ""; + description_ = ""; + etag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_Omnichannel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_Omnichannel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Omnichannel.class, + com.google.cloud.ces.v1.Omnichannel.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Identifier. The unique identifier of the omnichannel resource.
      +   * Format:
      +   * `projects/{project}/locations/{location}/omnichannels/{omnichannel}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Identifier. The unique identifier of the omnichannel resource.
      +   * Format:
      +   * `projects/{project}/locations/{location}/omnichannels/{omnichannel}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
      +   * Required. Display name of the omnichannel resource.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. Display name of the omnichannel resource.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
      +   * Optional. Human-readable description of the omnichannel resource.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. Human-readable description of the omnichannel resource.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
      +   * Output only. Timestamp when the omnichannel resource was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Output only. Timestamp when the omnichannel resource was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
      +   * Output only. Timestamp when the omnichannel resource was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
      +   * Output only. Timestamp when the omnichannel resource was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Output only. Timestamp when the omnichannel resource was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
      +   * Output only. Timestamp when the omnichannel resource was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int ETAG_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
      +   * Output only. Etag used to ensure the object hasn't changed during a
      +   * read-modify-write operation.
      +   * 
      + * + * string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + + /** + * + * + *
      +   * Output only. Etag used to ensure the object hasn't changed during a
      +   * read-modify-write operation.
      +   * 
      + * + * string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INTEGRATION_CONFIG_FIELD_NUMBER = 7; + private com.google.cloud.ces.v1.OmnichannelIntegrationConfig integrationConfig_; + + /** + * + * + *
      +   * Optional. The integration config for the omnichannel resource.
      +   * 
      + * + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig integration_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the integrationConfig field is set. + */ + @java.lang.Override + public boolean hasIntegrationConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * Optional. The integration config for the omnichannel resource.
      +   * 
      + * + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig integration_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The integrationConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig getIntegrationConfig() { + return integrationConfig_ == null + ? com.google.cloud.ces.v1.OmnichannelIntegrationConfig.getDefaultInstance() + : integrationConfig_; + } + + /** + * + * + *
      +   * Optional. The integration config for the omnichannel resource.
      +   * 
      + * + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig integration_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfigOrBuilder + getIntegrationConfigOrBuilder() { + return integrationConfig_ == null + ? com.google.cloud.ces.v1.OmnichannelIntegrationConfig.getDefaultInstance() + : integrationConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, etag_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(7, getIntegrationConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, etag_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getIntegrationConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.Omnichannel)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.Omnichannel other = (com.google.cloud.ces.v1.Omnichannel) obj; + + 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 (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getEtag().equals(other.getEtag())) return false; + if (hasIntegrationConfig() != other.hasIntegrationConfig()) return false; + if (hasIntegrationConfig()) { + if (!getIntegrationConfig().equals(other.getIntegrationConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + if (hasIntegrationConfig()) { + hash = (37 * hash) + INTEGRATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getIntegrationConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.Omnichannel parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Omnichannel parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Omnichannel parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Omnichannel parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Omnichannel parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Omnichannel parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Omnichannel parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Omnichannel parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Omnichannel parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Omnichannel parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Omnichannel parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Omnichannel parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.Omnichannel prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Represents an Omnichannel resource.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Omnichannel} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.Omnichannel) + com.google.cloud.ces.v1.OmnichannelOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_Omnichannel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_Omnichannel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Omnichannel.class, + com.google.cloud.ces.v1.Omnichannel.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.Omnichannel.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetIntegrationConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + description_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + etag_ = ""; + integrationConfig_ = null; + if (integrationConfigBuilder_ != null) { + integrationConfigBuilder_.dispose(); + integrationConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_Omnichannel_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Omnichannel getDefaultInstanceForType() { + return com.google.cloud.ces.v1.Omnichannel.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.Omnichannel build() { + com.google.cloud.ces.v1.Omnichannel result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Omnichannel buildPartial() { + com.google.cloud.ces.v1.Omnichannel result = new com.google.cloud.ces.v1.Omnichannel(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.Omnichannel result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.integrationConfig_ = + integrationConfigBuilder_ == null + ? integrationConfig_ + : integrationConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.Omnichannel) { + return mergeFrom((com.google.cloud.ces.v1.Omnichannel) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.Omnichannel other) { + if (other == com.google.cloud.ces.v1.Omnichannel.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasIntegrationConfig()) { + mergeIntegrationConfig(other.getIntegrationConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetIntegrationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Identifier. The unique identifier of the omnichannel resource.
      +     * Format:
      +     * `projects/{project}/locations/{location}/omnichannels/{omnichannel}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the omnichannel resource.
      +     * Format:
      +     * `projects/{project}/locations/{location}/omnichannels/{omnichannel}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the omnichannel resource.
      +     * Format:
      +     * `projects/{project}/locations/{location}/omnichannels/{omnichannel}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the omnichannel resource.
      +     * Format:
      +     * `projects/{project}/locations/{location}/omnichannels/{omnichannel}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the omnichannel resource.
      +     * Format:
      +     * `projects/{project}/locations/{location}/omnichannels/{omnichannel}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
      +     * Required. Display name of the omnichannel resource.
      +     * 
      + * + * 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; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. Display name of the omnichannel resource.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. Display name of the omnichannel resource.
      +     * 
      + * + * 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(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. Display name of the omnichannel resource.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. Display name of the omnichannel resource.
      +     * 
      + * + * 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(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
      +     * Optional. Human-readable description of the omnichannel resource.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Human-readable description of the omnichannel resource.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Human-readable description of the omnichannel resource.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Human-readable description of the omnichannel resource.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Human-readable description of the omnichannel resource.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
      +     * Output only. Timestamp when the omnichannel resource was created.
      +     * 
      + * + * + * .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); + } + + /** + * + * + *
      +     * Output only. Timestamp when the omnichannel resource was created.
      +     * 
      + * + * + * .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_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the omnichannel resource was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the omnichannel resource was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the omnichannel resource was created.
      +     * 
      + * + * + * .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()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the omnichannel resource was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the omnichannel resource was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. Timestamp when the omnichannel resource was created.
      +     * 
      + * + * + * .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_; + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the omnichannel resource was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
      +     * Output only. Timestamp when the omnichannel resource was last updated.
      +     * 
      + * + * + * .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); + } + + /** + * + * + *
      +     * Output only. Timestamp when the omnichannel resource was last updated.
      +     * 
      + * + * + * .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_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the omnichannel resource was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the omnichannel resource was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the omnichannel resource was last updated.
      +     * 
      + * + * + * .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()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the omnichannel resource was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the omnichannel resource was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. Timestamp when the omnichannel resource was last updated.
      +     * 
      + * + * + * .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_; + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the omnichannel resource was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
      +     * Output only. Etag used to ensure the object hasn't changed during a
      +     * read-modify-write operation.
      +     * 
      + * + * string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Output only. Etag used to ensure the object hasn't changed during a
      +     * read-modify-write operation.
      +     * 
      + * + * string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Output only. Etag used to ensure the object hasn't changed during a
      +     * read-modify-write operation.
      +     * 
      + * + * string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Etag used to ensure the object hasn't changed during a
      +     * read-modify-write operation.
      +     * 
      + * + * string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Etag used to ensure the object hasn't changed during a
      +     * read-modify-write operation.
      +     * 
      + * + * string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.OmnichannelIntegrationConfig integrationConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.OmnichannelIntegrationConfig, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.Builder, + com.google.cloud.ces.v1.OmnichannelIntegrationConfigOrBuilder> + integrationConfigBuilder_; + + /** + * + * + *
      +     * Optional. The integration config for the omnichannel resource.
      +     * 
      + * + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig integration_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the integrationConfig field is set. + */ + public boolean hasIntegrationConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
      +     * Optional. The integration config for the omnichannel resource.
      +     * 
      + * + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig integration_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The integrationConfig. + */ + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig getIntegrationConfig() { + if (integrationConfigBuilder_ == null) { + return integrationConfig_ == null + ? com.google.cloud.ces.v1.OmnichannelIntegrationConfig.getDefaultInstance() + : integrationConfig_; + } else { + return integrationConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. The integration config for the omnichannel resource.
      +     * 
      + * + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig integration_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIntegrationConfig( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig value) { + if (integrationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + integrationConfig_ = value; + } else { + integrationConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The integration config for the omnichannel resource.
      +     * 
      + * + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig integration_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIntegrationConfig( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.Builder builderForValue) { + if (integrationConfigBuilder_ == null) { + integrationConfig_ = builderForValue.build(); + } else { + integrationConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The integration config for the omnichannel resource.
      +     * 
      + * + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig integration_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeIntegrationConfig( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig value) { + if (integrationConfigBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && integrationConfig_ != null + && integrationConfig_ + != com.google.cloud.ces.v1.OmnichannelIntegrationConfig.getDefaultInstance()) { + getIntegrationConfigBuilder().mergeFrom(value); + } else { + integrationConfig_ = value; + } + } else { + integrationConfigBuilder_.mergeFrom(value); + } + if (integrationConfig_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The integration config for the omnichannel resource.
      +     * 
      + * + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig integration_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIntegrationConfig() { + bitField0_ = (bitField0_ & ~0x00000040); + integrationConfig_ = null; + if (integrationConfigBuilder_ != null) { + integrationConfigBuilder_.dispose(); + integrationConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The integration config for the omnichannel resource.
      +     * 
      + * + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig integration_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.Builder + getIntegrationConfigBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetIntegrationConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The integration config for the omnichannel resource.
      +     * 
      + * + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig integration_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.OmnichannelIntegrationConfigOrBuilder + getIntegrationConfigOrBuilder() { + if (integrationConfigBuilder_ != null) { + return integrationConfigBuilder_.getMessageOrBuilder(); + } else { + return integrationConfig_ == null + ? com.google.cloud.ces.v1.OmnichannelIntegrationConfig.getDefaultInstance() + : integrationConfig_; + } + } + + /** + * + * + *
      +     * Optional. The integration config for the omnichannel resource.
      +     * 
      + * + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig integration_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.OmnichannelIntegrationConfig, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.Builder, + com.google.cloud.ces.v1.OmnichannelIntegrationConfigOrBuilder> + internalGetIntegrationConfigFieldBuilder() { + if (integrationConfigBuilder_ == null) { + integrationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.OmnichannelIntegrationConfig, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.Builder, + com.google.cloud.ces.v1.OmnichannelIntegrationConfigOrBuilder>( + getIntegrationConfig(), getParentForChildren(), isClean()); + integrationConfig_ = null; + } + return integrationConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Omnichannel) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.Omnichannel) + private static final com.google.cloud.ces.v1.Omnichannel DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.Omnichannel(); + } + + public static com.google.cloud.ces.v1.Omnichannel getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Omnichannel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Omnichannel getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OmnichannelIntegrationConfig.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OmnichannelIntegrationConfig.java new file mode 100644 index 000000000000..212ad975db9c --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OmnichannelIntegrationConfig.java @@ -0,0 +1,6572 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/omnichannel.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * OmnichannelIntegrationConfig contains all App integration configs.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.OmnichannelIntegrationConfig} + */ +@com.google.protobuf.Generated +public final class OmnichannelIntegrationConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.OmnichannelIntegrationConfig) + OmnichannelIntegrationConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OmnichannelIntegrationConfig"); + } + + // Use OmnichannelIntegrationConfig.newBuilder() to construct. + private OmnichannelIntegrationConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OmnichannelIntegrationConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetChannelConfigs(); + case 2: + return internalGetSubscriberConfigs(); + case 3: + return internalGetRoutingConfigs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.class, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.Builder.class); + } + + public interface ChannelConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * WhatsApp config.
      +     * 
      + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig whatsapp_config = 1; + * + * + * @return Whether the whatsappConfig field is set. + */ + boolean hasWhatsappConfig(); + + /** + * + * + *
      +     * WhatsApp config.
      +     * 
      + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig whatsapp_config = 1; + * + * + * @return The whatsappConfig. + */ + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig getWhatsappConfig(); + + /** + * + * + *
      +     * WhatsApp config.
      +     * 
      + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig whatsapp_config = 1; + * + */ + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfigOrBuilder + getWhatsappConfigOrBuilder(); + + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig.ChannelConfigCase + getChannelConfigCase(); + } + + /** + * + * + *
      +   * ChannelConfig contains config for various of app integration.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig} + */ + public static final class ChannelConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig) + ChannelConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ChannelConfig"); + } + + // Use ChannelConfig.newBuilder() to construct. + private ChannelConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ChannelConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_ChannelConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_ChannelConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig.class, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig.Builder.class); + } + + private int channelConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object channelConfig_; + + public enum ChannelConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + WHATSAPP_CONFIG(1), + CHANNELCONFIG_NOT_SET(0); + private final int value; + + private ChannelConfigCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ChannelConfigCase valueOf(int value) { + return forNumber(value); + } + + public static ChannelConfigCase forNumber(int value) { + switch (value) { + case 1: + return WHATSAPP_CONFIG; + case 0: + return CHANNELCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ChannelConfigCase getChannelConfigCase() { + return ChannelConfigCase.forNumber(channelConfigCase_); + } + + public static final int WHATSAPP_CONFIG_FIELD_NUMBER = 1; + + /** + * + * + *
      +     * WhatsApp config.
      +     * 
      + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig whatsapp_config = 1; + * + * + * @return Whether the whatsappConfig field is set. + */ + @java.lang.Override + public boolean hasWhatsappConfig() { + return channelConfigCase_ == 1; + } + + /** + * + * + *
      +     * WhatsApp config.
      +     * 
      + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig whatsapp_config = 1; + * + * + * @return The whatsappConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig getWhatsappConfig() { + if (channelConfigCase_ == 1) { + return (com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig) channelConfig_; + } + return com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig + .getDefaultInstance(); + } + + /** + * + * + *
      +     * WhatsApp config.
      +     * 
      + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig whatsapp_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfigOrBuilder + getWhatsappConfigOrBuilder() { + if (channelConfigCase_ == 1) { + return (com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig) channelConfig_; + } + return com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig + .getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (channelConfigCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig) channelConfig_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (channelConfigCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig) + channelConfig_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig other = + (com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig) obj; + + if (!getChannelConfigCase().equals(other.getChannelConfigCase())) return false; + switch (channelConfigCase_) { + case 1: + if (!getWhatsappConfig().equals(other.getWhatsappConfig())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (channelConfigCase_) { + case 1: + hash = (37 * hash) + WHATSAPP_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getWhatsappConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * ChannelConfig contains config for various of app integration.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig) + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_ChannelConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_ChannelConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig.class, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig.Builder.class); + } + + // Construct using + // com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (whatsappConfigBuilder_ != null) { + whatsappConfigBuilder_.clear(); + } + channelConfigCase_ = 0; + channelConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_ChannelConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig + getDefaultInstanceForType() { + return com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig build() { + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig buildPartial() { + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig result = + new com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig result) { + result.channelConfigCase_ = channelConfigCase_; + result.channelConfig_ = this.channelConfig_; + if (channelConfigCase_ == 1 && whatsappConfigBuilder_ != null) { + result.channelConfig_ = whatsappConfigBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig) { + return mergeFrom( + (com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig other) { + if (other + == com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig + .getDefaultInstance()) return this; + switch (other.getChannelConfigCase()) { + case WHATSAPP_CONFIG: + { + mergeWhatsappConfig(other.getWhatsappConfig()); + break; + } + case CHANNELCONFIG_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetWhatsappConfigFieldBuilder().getBuilder(), extensionRegistry); + channelConfigCase_ = 1; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int channelConfigCase_ = 0; + private java.lang.Object channelConfig_; + + public ChannelConfigCase getChannelConfigCase() { + return ChannelConfigCase.forNumber(channelConfigCase_); + } + + public Builder clearChannelConfig() { + channelConfigCase_ = 0; + channelConfig_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig.Builder, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfigOrBuilder> + whatsappConfigBuilder_; + + /** + * + * + *
      +       * WhatsApp config.
      +       * 
      + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig whatsapp_config = 1; + * + * + * @return Whether the whatsappConfig field is set. + */ + @java.lang.Override + public boolean hasWhatsappConfig() { + return channelConfigCase_ == 1; + } + + /** + * + * + *
      +       * WhatsApp config.
      +       * 
      + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig whatsapp_config = 1; + * + * + * @return The whatsappConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig + getWhatsappConfig() { + if (whatsappConfigBuilder_ == null) { + if (channelConfigCase_ == 1) { + return (com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig) + channelConfig_; + } + return com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig + .getDefaultInstance(); + } else { + if (channelConfigCase_ == 1) { + return whatsappConfigBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig + .getDefaultInstance(); + } + } + + /** + * + * + *
      +       * WhatsApp config.
      +       * 
      + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig whatsapp_config = 1; + * + */ + public Builder setWhatsappConfig( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig value) { + if (whatsappConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + channelConfig_ = value; + onChanged(); + } else { + whatsappConfigBuilder_.setMessage(value); + } + channelConfigCase_ = 1; + return this; + } + + /** + * + * + *
      +       * WhatsApp config.
      +       * 
      + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig whatsapp_config = 1; + * + */ + public Builder setWhatsappConfig( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig.Builder + builderForValue) { + if (whatsappConfigBuilder_ == null) { + channelConfig_ = builderForValue.build(); + onChanged(); + } else { + whatsappConfigBuilder_.setMessage(builderForValue.build()); + } + channelConfigCase_ = 1; + return this; + } + + /** + * + * + *
      +       * WhatsApp config.
      +       * 
      + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig whatsapp_config = 1; + * + */ + public Builder mergeWhatsappConfig( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig value) { + if (whatsappConfigBuilder_ == null) { + if (channelConfigCase_ == 1 + && channelConfig_ + != com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig + .getDefaultInstance()) { + channelConfig_ = + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig.newBuilder( + (com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig) + channelConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + channelConfig_ = value; + } + onChanged(); + } else { + if (channelConfigCase_ == 1) { + whatsappConfigBuilder_.mergeFrom(value); + } else { + whatsappConfigBuilder_.setMessage(value); + } + } + channelConfigCase_ = 1; + return this; + } + + /** + * + * + *
      +       * WhatsApp config.
      +       * 
      + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig whatsapp_config = 1; + * + */ + public Builder clearWhatsappConfig() { + if (whatsappConfigBuilder_ == null) { + if (channelConfigCase_ == 1) { + channelConfigCase_ = 0; + channelConfig_ = null; + onChanged(); + } + } else { + if (channelConfigCase_ == 1) { + channelConfigCase_ = 0; + channelConfig_ = null; + } + whatsappConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +       * WhatsApp config.
      +       * 
      + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig whatsapp_config = 1; + * + */ + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig.Builder + getWhatsappConfigBuilder() { + return internalGetWhatsappConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * WhatsApp config.
      +       * 
      + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig whatsapp_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfigOrBuilder + getWhatsappConfigOrBuilder() { + if ((channelConfigCase_ == 1) && (whatsappConfigBuilder_ != null)) { + return whatsappConfigBuilder_.getMessageOrBuilder(); + } else { + if (channelConfigCase_ == 1) { + return (com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig) + channelConfig_; + } + return com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig + .getDefaultInstance(); + } + } + + /** + * + * + *
      +       * WhatsApp config.
      +       * 
      + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig whatsapp_config = 1; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig.Builder, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfigOrBuilder> + internalGetWhatsappConfigFieldBuilder() { + if (whatsappConfigBuilder_ == null) { + if (!(channelConfigCase_ == 1)) { + channelConfig_ = + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig + .getDefaultInstance(); + } + whatsappConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig.Builder, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfigOrBuilder>( + (com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig) + channelConfig_, + getParentForChildren(), + isClean()); + channelConfig_ = null; + } + channelConfigCase_ = 1; + onChanged(); + return whatsappConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig) + private static final com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig(); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface WhatsappConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * The Phone Number ID associated with the WhatsApp Business Account.
      +     * 
      + * + * string phone_number_id = 1; + * + * @return The phoneNumberId. + */ + java.lang.String getPhoneNumberId(); + + /** + * + * + *
      +     * The Phone Number ID associated with the WhatsApp Business Account.
      +     * 
      + * + * string phone_number_id = 1; + * + * @return The bytes for phoneNumberId. + */ + com.google.protobuf.ByteString getPhoneNumberIdBytes(); + + /** + * + * + *
      +     * The phone number used for sending/receiving messages.
      +     * 
      + * + * string phone_number = 2; + * + * @return The phoneNumber. + */ + java.lang.String getPhoneNumber(); + + /** + * + * + *
      +     * The phone number used for sending/receiving messages.
      +     * 
      + * + * string phone_number = 2; + * + * @return The bytes for phoneNumber. + */ + com.google.protobuf.ByteString getPhoneNumberBytes(); + + /** + * + * + *
      +     * The customer's WhatsApp Business Account (WABA) ID.
      +     * 
      + * + * string whatsapp_business_account_id = 3; + * + * @return The whatsappBusinessAccountId. + */ + java.lang.String getWhatsappBusinessAccountId(); + + /** + * + * + *
      +     * The customer's WhatsApp Business Account (WABA) ID.
      +     * 
      + * + * string whatsapp_business_account_id = 3; + * + * @return The bytes for whatsappBusinessAccountId. + */ + com.google.protobuf.ByteString getWhatsappBusinessAccountIdBytes(); + + /** + * + * + *
      +     * The verify token configured in the Meta App Dashboard for webhook
      +     * verification.
      +     * 
      + * + * string webhook_verify_token = 4; + * + * @return The webhookVerifyToken. + */ + java.lang.String getWebhookVerifyToken(); + + /** + * + * + *
      +     * The verify token configured in the Meta App Dashboard for webhook
      +     * verification.
      +     * 
      + * + * string webhook_verify_token = 4; + * + * @return The bytes for webhookVerifyToken. + */ + com.google.protobuf.ByteString getWebhookVerifyTokenBytes(); + + /** + * + * + *
      +     * The access token for authenticating API calls to the WhatsApp Cloud API.
      +     * https://developers.facebook.com/docs/whatsapp/business-management-api/get-started/#business-integration-system-user-access-tokens
      +     * 
      + * + * string whatsapp_business_token = 5; + * + * @return The whatsappBusinessToken. + */ + java.lang.String getWhatsappBusinessToken(); + + /** + * + * + *
      +     * The access token for authenticating API calls to the WhatsApp Cloud API.
      +     * https://developers.facebook.com/docs/whatsapp/business-management-api/get-started/#business-integration-system-user-access-tokens
      +     * 
      + * + * string whatsapp_business_token = 5; + * + * @return The bytes for whatsappBusinessToken. + */ + com.google.protobuf.ByteString getWhatsappBusinessTokenBytes(); + + /** + * + * + *
      +     * The Meta Business Portfolio (MBP) ID.
      +     * https://www.facebook.com/business/help/1710077379203657
      +     * 
      + * + * string meta_business_portfolio_id = 6; + * + * @return The metaBusinessPortfolioId. + */ + java.lang.String getMetaBusinessPortfolioId(); + + /** + * + * + *
      +     * The Meta Business Portfolio (MBP) ID.
      +     * https://www.facebook.com/business/help/1710077379203657
      +     * 
      + * + * string meta_business_portfolio_id = 6; + * + * @return The bytes for metaBusinessPortfolioId. + */ + com.google.protobuf.ByteString getMetaBusinessPortfolioIdBytes(); + } + + /** + * + * + *
      +   * How Omnichannel should receive/reply events from WhatsApp.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig} + */ + public static final class WhatsappConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig) + WhatsappConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "WhatsappConfig"); + } + + // Use WhatsappConfig.newBuilder() to construct. + private WhatsappConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private WhatsappConfig() { + phoneNumberId_ = ""; + phoneNumber_ = ""; + whatsappBusinessAccountId_ = ""; + webhookVerifyToken_ = ""; + whatsappBusinessToken_ = ""; + metaBusinessPortfolioId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_WhatsappConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_WhatsappConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig.class, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig.Builder.class); + } + + public static final int PHONE_NUMBER_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object phoneNumberId_ = ""; + + /** + * + * + *
      +     * The Phone Number ID associated with the WhatsApp Business Account.
      +     * 
      + * + * string phone_number_id = 1; + * + * @return The phoneNumberId. + */ + @java.lang.Override + public java.lang.String getPhoneNumberId() { + java.lang.Object ref = phoneNumberId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phoneNumberId_ = s; + return s; + } + } + + /** + * + * + *
      +     * The Phone Number ID associated with the WhatsApp Business Account.
      +     * 
      + * + * string phone_number_id = 1; + * + * @return The bytes for phoneNumberId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPhoneNumberIdBytes() { + java.lang.Object ref = phoneNumberId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + phoneNumberId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PHONE_NUMBER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object phoneNumber_ = ""; + + /** + * + * + *
      +     * The phone number used for sending/receiving messages.
      +     * 
      + * + * string phone_number = 2; + * + * @return The phoneNumber. + */ + @java.lang.Override + public java.lang.String getPhoneNumber() { + java.lang.Object ref = phoneNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phoneNumber_ = s; + return s; + } + } + + /** + * + * + *
      +     * The phone number used for sending/receiving messages.
      +     * 
      + * + * string phone_number = 2; + * + * @return The bytes for phoneNumber. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPhoneNumberBytes() { + java.lang.Object ref = phoneNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + phoneNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WHATSAPP_BUSINESS_ACCOUNT_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object whatsappBusinessAccountId_ = ""; + + /** + * + * + *
      +     * The customer's WhatsApp Business Account (WABA) ID.
      +     * 
      + * + * string whatsapp_business_account_id = 3; + * + * @return The whatsappBusinessAccountId. + */ + @java.lang.Override + public java.lang.String getWhatsappBusinessAccountId() { + java.lang.Object ref = whatsappBusinessAccountId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + whatsappBusinessAccountId_ = s; + return s; + } + } + + /** + * + * + *
      +     * The customer's WhatsApp Business Account (WABA) ID.
      +     * 
      + * + * string whatsapp_business_account_id = 3; + * + * @return The bytes for whatsappBusinessAccountId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWhatsappBusinessAccountIdBytes() { + java.lang.Object ref = whatsappBusinessAccountId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + whatsappBusinessAccountId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WEBHOOK_VERIFY_TOKEN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object webhookVerifyToken_ = ""; + + /** + * + * + *
      +     * The verify token configured in the Meta App Dashboard for webhook
      +     * verification.
      +     * 
      + * + * string webhook_verify_token = 4; + * + * @return The webhookVerifyToken. + */ + @java.lang.Override + public java.lang.String getWebhookVerifyToken() { + java.lang.Object ref = webhookVerifyToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + webhookVerifyToken_ = s; + return s; + } + } + + /** + * + * + *
      +     * The verify token configured in the Meta App Dashboard for webhook
      +     * verification.
      +     * 
      + * + * string webhook_verify_token = 4; + * + * @return The bytes for webhookVerifyToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWebhookVerifyTokenBytes() { + java.lang.Object ref = webhookVerifyToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + webhookVerifyToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WHATSAPP_BUSINESS_TOKEN_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object whatsappBusinessToken_ = ""; + + /** + * + * + *
      +     * The access token for authenticating API calls to the WhatsApp Cloud API.
      +     * https://developers.facebook.com/docs/whatsapp/business-management-api/get-started/#business-integration-system-user-access-tokens
      +     * 
      + * + * string whatsapp_business_token = 5; + * + * @return The whatsappBusinessToken. + */ + @java.lang.Override + public java.lang.String getWhatsappBusinessToken() { + java.lang.Object ref = whatsappBusinessToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + whatsappBusinessToken_ = s; + return s; + } + } + + /** + * + * + *
      +     * The access token for authenticating API calls to the WhatsApp Cloud API.
      +     * https://developers.facebook.com/docs/whatsapp/business-management-api/get-started/#business-integration-system-user-access-tokens
      +     * 
      + * + * string whatsapp_business_token = 5; + * + * @return The bytes for whatsappBusinessToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWhatsappBusinessTokenBytes() { + java.lang.Object ref = whatsappBusinessToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + whatsappBusinessToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int META_BUSINESS_PORTFOLIO_ID_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object metaBusinessPortfolioId_ = ""; + + /** + * + * + *
      +     * The Meta Business Portfolio (MBP) ID.
      +     * https://www.facebook.com/business/help/1710077379203657
      +     * 
      + * + * string meta_business_portfolio_id = 6; + * + * @return The metaBusinessPortfolioId. + */ + @java.lang.Override + public java.lang.String getMetaBusinessPortfolioId() { + java.lang.Object ref = metaBusinessPortfolioId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metaBusinessPortfolioId_ = s; + return s; + } + } + + /** + * + * + *
      +     * The Meta Business Portfolio (MBP) ID.
      +     * https://www.facebook.com/business/help/1710077379203657
      +     * 
      + * + * string meta_business_portfolio_id = 6; + * + * @return The bytes for metaBusinessPortfolioId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetaBusinessPortfolioIdBytes() { + java.lang.Object ref = metaBusinessPortfolioId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metaBusinessPortfolioId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(phoneNumberId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, phoneNumberId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(phoneNumber_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, phoneNumber_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(whatsappBusinessAccountId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, whatsappBusinessAccountId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(webhookVerifyToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, webhookVerifyToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(whatsappBusinessToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, whatsappBusinessToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(metaBusinessPortfolioId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, metaBusinessPortfolioId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(phoneNumberId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, phoneNumberId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(phoneNumber_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, phoneNumber_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(whatsappBusinessAccountId_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(3, whatsappBusinessAccountId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(webhookVerifyToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, webhookVerifyToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(whatsappBusinessToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, whatsappBusinessToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(metaBusinessPortfolioId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, metaBusinessPortfolioId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig other = + (com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig) obj; + + if (!getPhoneNumberId().equals(other.getPhoneNumberId())) return false; + if (!getPhoneNumber().equals(other.getPhoneNumber())) return false; + if (!getWhatsappBusinessAccountId().equals(other.getWhatsappBusinessAccountId())) + return false; + if (!getWebhookVerifyToken().equals(other.getWebhookVerifyToken())) return false; + if (!getWhatsappBusinessToken().equals(other.getWhatsappBusinessToken())) return false; + if (!getMetaBusinessPortfolioId().equals(other.getMetaBusinessPortfolioId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PHONE_NUMBER_ID_FIELD_NUMBER; + hash = (53 * hash) + getPhoneNumberId().hashCode(); + hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getPhoneNumber().hashCode(); + hash = (37 * hash) + WHATSAPP_BUSINESS_ACCOUNT_ID_FIELD_NUMBER; + hash = (53 * hash) + getWhatsappBusinessAccountId().hashCode(); + hash = (37 * hash) + WEBHOOK_VERIFY_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getWebhookVerifyToken().hashCode(); + hash = (37 * hash) + WHATSAPP_BUSINESS_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getWhatsappBusinessToken().hashCode(); + hash = (37 * hash) + META_BUSINESS_PORTFOLIO_ID_FIELD_NUMBER; + hash = (53 * hash) + getMetaBusinessPortfolioId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * How Omnichannel should receive/reply events from WhatsApp.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig) + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_WhatsappConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_WhatsappConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig.class, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig.Builder.class); + } + + // Construct using + // com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + phoneNumberId_ = ""; + phoneNumber_ = ""; + whatsappBusinessAccountId_ = ""; + webhookVerifyToken_ = ""; + whatsappBusinessToken_ = ""; + metaBusinessPortfolioId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_WhatsappConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig + getDefaultInstanceForType() { + return com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig build() { + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig buildPartial() { + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig result = + new com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.phoneNumberId_ = phoneNumberId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.phoneNumber_ = phoneNumber_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.whatsappBusinessAccountId_ = whatsappBusinessAccountId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.webhookVerifyToken_ = webhookVerifyToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.whatsappBusinessToken_ = whatsappBusinessToken_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.metaBusinessPortfolioId_ = metaBusinessPortfolioId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig) { + return mergeFrom( + (com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig other) { + if (other + == com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig + .getDefaultInstance()) return this; + if (!other.getPhoneNumberId().isEmpty()) { + phoneNumberId_ = other.phoneNumberId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPhoneNumber().isEmpty()) { + phoneNumber_ = other.phoneNumber_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getWhatsappBusinessAccountId().isEmpty()) { + whatsappBusinessAccountId_ = other.whatsappBusinessAccountId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getWebhookVerifyToken().isEmpty()) { + webhookVerifyToken_ = other.webhookVerifyToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getWhatsappBusinessToken().isEmpty()) { + whatsappBusinessToken_ = other.whatsappBusinessToken_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getMetaBusinessPortfolioId().isEmpty()) { + metaBusinessPortfolioId_ = other.metaBusinessPortfolioId_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + phoneNumberId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + phoneNumber_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + whatsappBusinessAccountId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + webhookVerifyToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + whatsappBusinessToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + metaBusinessPortfolioId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object phoneNumberId_ = ""; + + /** + * + * + *
      +       * The Phone Number ID associated with the WhatsApp Business Account.
      +       * 
      + * + * string phone_number_id = 1; + * + * @return The phoneNumberId. + */ + public java.lang.String getPhoneNumberId() { + java.lang.Object ref = phoneNumberId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phoneNumberId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * The Phone Number ID associated with the WhatsApp Business Account.
      +       * 
      + * + * string phone_number_id = 1; + * + * @return The bytes for phoneNumberId. + */ + public com.google.protobuf.ByteString getPhoneNumberIdBytes() { + java.lang.Object ref = phoneNumberId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + phoneNumberId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * The Phone Number ID associated with the WhatsApp Business Account.
      +       * 
      + * + * string phone_number_id = 1; + * + * @param value The phoneNumberId to set. + * @return This builder for chaining. + */ + public Builder setPhoneNumberId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + phoneNumberId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * The Phone Number ID associated with the WhatsApp Business Account.
      +       * 
      + * + * string phone_number_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearPhoneNumberId() { + phoneNumberId_ = getDefaultInstance().getPhoneNumberId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +       * The Phone Number ID associated with the WhatsApp Business Account.
      +       * 
      + * + * string phone_number_id = 1; + * + * @param value The bytes for phoneNumberId to set. + * @return This builder for chaining. + */ + public Builder setPhoneNumberIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + phoneNumberId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object phoneNumber_ = ""; + + /** + * + * + *
      +       * The phone number used for sending/receiving messages.
      +       * 
      + * + * string phone_number = 2; + * + * @return The phoneNumber. + */ + public java.lang.String getPhoneNumber() { + java.lang.Object ref = phoneNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phoneNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * The phone number used for sending/receiving messages.
      +       * 
      + * + * string phone_number = 2; + * + * @return The bytes for phoneNumber. + */ + public com.google.protobuf.ByteString getPhoneNumberBytes() { + java.lang.Object ref = phoneNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + phoneNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * The phone number used for sending/receiving messages.
      +       * 
      + * + * string phone_number = 2; + * + * @param value The phoneNumber to set. + * @return This builder for chaining. + */ + public Builder setPhoneNumber(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + phoneNumber_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * The phone number used for sending/receiving messages.
      +       * 
      + * + * string phone_number = 2; + * + * @return This builder for chaining. + */ + public Builder clearPhoneNumber() { + phoneNumber_ = getDefaultInstance().getPhoneNumber(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +       * The phone number used for sending/receiving messages.
      +       * 
      + * + * string phone_number = 2; + * + * @param value The bytes for phoneNumber to set. + * @return This builder for chaining. + */ + public Builder setPhoneNumberBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + phoneNumber_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object whatsappBusinessAccountId_ = ""; + + /** + * + * + *
      +       * The customer's WhatsApp Business Account (WABA) ID.
      +       * 
      + * + * string whatsapp_business_account_id = 3; + * + * @return The whatsappBusinessAccountId. + */ + public java.lang.String getWhatsappBusinessAccountId() { + java.lang.Object ref = whatsappBusinessAccountId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + whatsappBusinessAccountId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * The customer's WhatsApp Business Account (WABA) ID.
      +       * 
      + * + * string whatsapp_business_account_id = 3; + * + * @return The bytes for whatsappBusinessAccountId. + */ + public com.google.protobuf.ByteString getWhatsappBusinessAccountIdBytes() { + java.lang.Object ref = whatsappBusinessAccountId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + whatsappBusinessAccountId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * The customer's WhatsApp Business Account (WABA) ID.
      +       * 
      + * + * string whatsapp_business_account_id = 3; + * + * @param value The whatsappBusinessAccountId to set. + * @return This builder for chaining. + */ + public Builder setWhatsappBusinessAccountId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + whatsappBusinessAccountId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +       * The customer's WhatsApp Business Account (WABA) ID.
      +       * 
      + * + * string whatsapp_business_account_id = 3; + * + * @return This builder for chaining. + */ + public Builder clearWhatsappBusinessAccountId() { + whatsappBusinessAccountId_ = getDefaultInstance().getWhatsappBusinessAccountId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +       * The customer's WhatsApp Business Account (WABA) ID.
      +       * 
      + * + * string whatsapp_business_account_id = 3; + * + * @param value The bytes for whatsappBusinessAccountId to set. + * @return This builder for chaining. + */ + public Builder setWhatsappBusinessAccountIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + whatsappBusinessAccountId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object webhookVerifyToken_ = ""; + + /** + * + * + *
      +       * The verify token configured in the Meta App Dashboard for webhook
      +       * verification.
      +       * 
      + * + * string webhook_verify_token = 4; + * + * @return The webhookVerifyToken. + */ + public java.lang.String getWebhookVerifyToken() { + java.lang.Object ref = webhookVerifyToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + webhookVerifyToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * The verify token configured in the Meta App Dashboard for webhook
      +       * verification.
      +       * 
      + * + * string webhook_verify_token = 4; + * + * @return The bytes for webhookVerifyToken. + */ + public com.google.protobuf.ByteString getWebhookVerifyTokenBytes() { + java.lang.Object ref = webhookVerifyToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + webhookVerifyToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * The verify token configured in the Meta App Dashboard for webhook
      +       * verification.
      +       * 
      + * + * string webhook_verify_token = 4; + * + * @param value The webhookVerifyToken to set. + * @return This builder for chaining. + */ + public Builder setWebhookVerifyToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + webhookVerifyToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +       * The verify token configured in the Meta App Dashboard for webhook
      +       * verification.
      +       * 
      + * + * string webhook_verify_token = 4; + * + * @return This builder for chaining. + */ + public Builder clearWebhookVerifyToken() { + webhookVerifyToken_ = getDefaultInstance().getWebhookVerifyToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +       * The verify token configured in the Meta App Dashboard for webhook
      +       * verification.
      +       * 
      + * + * string webhook_verify_token = 4; + * + * @param value The bytes for webhookVerifyToken to set. + * @return This builder for chaining. + */ + public Builder setWebhookVerifyTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + webhookVerifyToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object whatsappBusinessToken_ = ""; + + /** + * + * + *
      +       * The access token for authenticating API calls to the WhatsApp Cloud API.
      +       * https://developers.facebook.com/docs/whatsapp/business-management-api/get-started/#business-integration-system-user-access-tokens
      +       * 
      + * + * string whatsapp_business_token = 5; + * + * @return The whatsappBusinessToken. + */ + public java.lang.String getWhatsappBusinessToken() { + java.lang.Object ref = whatsappBusinessToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + whatsappBusinessToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * The access token for authenticating API calls to the WhatsApp Cloud API.
      +       * https://developers.facebook.com/docs/whatsapp/business-management-api/get-started/#business-integration-system-user-access-tokens
      +       * 
      + * + * string whatsapp_business_token = 5; + * + * @return The bytes for whatsappBusinessToken. + */ + public com.google.protobuf.ByteString getWhatsappBusinessTokenBytes() { + java.lang.Object ref = whatsappBusinessToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + whatsappBusinessToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * The access token for authenticating API calls to the WhatsApp Cloud API.
      +       * https://developers.facebook.com/docs/whatsapp/business-management-api/get-started/#business-integration-system-user-access-tokens
      +       * 
      + * + * string whatsapp_business_token = 5; + * + * @param value The whatsappBusinessToken to set. + * @return This builder for chaining. + */ + public Builder setWhatsappBusinessToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + whatsappBusinessToken_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +       * The access token for authenticating API calls to the WhatsApp Cloud API.
      +       * https://developers.facebook.com/docs/whatsapp/business-management-api/get-started/#business-integration-system-user-access-tokens
      +       * 
      + * + * string whatsapp_business_token = 5; + * + * @return This builder for chaining. + */ + public Builder clearWhatsappBusinessToken() { + whatsappBusinessToken_ = getDefaultInstance().getWhatsappBusinessToken(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
      +       * The access token for authenticating API calls to the WhatsApp Cloud API.
      +       * https://developers.facebook.com/docs/whatsapp/business-management-api/get-started/#business-integration-system-user-access-tokens
      +       * 
      + * + * string whatsapp_business_token = 5; + * + * @param value The bytes for whatsappBusinessToken to set. + * @return This builder for chaining. + */ + public Builder setWhatsappBusinessTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + whatsappBusinessToken_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object metaBusinessPortfolioId_ = ""; + + /** + * + * + *
      +       * The Meta Business Portfolio (MBP) ID.
      +       * https://www.facebook.com/business/help/1710077379203657
      +       * 
      + * + * string meta_business_portfolio_id = 6; + * + * @return The metaBusinessPortfolioId. + */ + public java.lang.String getMetaBusinessPortfolioId() { + java.lang.Object ref = metaBusinessPortfolioId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metaBusinessPortfolioId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * The Meta Business Portfolio (MBP) ID.
      +       * https://www.facebook.com/business/help/1710077379203657
      +       * 
      + * + * string meta_business_portfolio_id = 6; + * + * @return The bytes for metaBusinessPortfolioId. + */ + public com.google.protobuf.ByteString getMetaBusinessPortfolioIdBytes() { + java.lang.Object ref = metaBusinessPortfolioId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metaBusinessPortfolioId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * The Meta Business Portfolio (MBP) ID.
      +       * https://www.facebook.com/business/help/1710077379203657
      +       * 
      + * + * string meta_business_portfolio_id = 6; + * + * @param value The metaBusinessPortfolioId to set. + * @return This builder for chaining. + */ + public Builder setMetaBusinessPortfolioId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + metaBusinessPortfolioId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +       * The Meta Business Portfolio (MBP) ID.
      +       * https://www.facebook.com/business/help/1710077379203657
      +       * 
      + * + * string meta_business_portfolio_id = 6; + * + * @return This builder for chaining. + */ + public Builder clearMetaBusinessPortfolioId() { + metaBusinessPortfolioId_ = getDefaultInstance().getMetaBusinessPortfolioId(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
      +       * The Meta Business Portfolio (MBP) ID.
      +       * https://www.facebook.com/business/help/1710077379203657
      +       * 
      + * + * string meta_business_portfolio_id = 6; + * + * @param value The bytes for metaBusinessPortfolioId to set. + * @return This builder for chaining. + */ + public Builder setMetaBusinessPortfolioIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + metaBusinessPortfolioId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig) + private static final com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig(); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WhatsappConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.WhatsappConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SubscriberConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Ces app config.
      +     * 
      + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig ces_app_config = 1; + * + * + * @return Whether the cesAppConfig field is set. + */ + boolean hasCesAppConfig(); + + /** + * + * + *
      +     * Ces app config.
      +     * 
      + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig ces_app_config = 1; + * + * + * @return The cesAppConfig. + */ + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig getCesAppConfig(); + + /** + * + * + *
      +     * Ces app config.
      +     * 
      + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig ces_app_config = 1; + * + */ + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfigOrBuilder + getCesAppConfigOrBuilder(); + + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig.SubscriberConfigCase + getSubscriberConfigCase(); + } + + /** + * + * + *
      +   * Configs of subscribers.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig} + */ + public static final class SubscriberConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig) + SubscriberConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SubscriberConfig"); + } + + // Use SubscriberConfig.newBuilder() to construct. + private SubscriberConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SubscriberConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_SubscriberConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_SubscriberConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig.class, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig.Builder.class); + } + + private int subscriberConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object subscriberConfig_; + + public enum SubscriberConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CES_APP_CONFIG(1), + SUBSCRIBERCONFIG_NOT_SET(0); + private final int value; + + private SubscriberConfigCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SubscriberConfigCase valueOf(int value) { + return forNumber(value); + } + + public static SubscriberConfigCase forNumber(int value) { + switch (value) { + case 1: + return CES_APP_CONFIG; + case 0: + return SUBSCRIBERCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SubscriberConfigCase getSubscriberConfigCase() { + return SubscriberConfigCase.forNumber(subscriberConfigCase_); + } + + public static final int CES_APP_CONFIG_FIELD_NUMBER = 1; + + /** + * + * + *
      +     * Ces app config.
      +     * 
      + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig ces_app_config = 1; + * + * + * @return Whether the cesAppConfig field is set. + */ + @java.lang.Override + public boolean hasCesAppConfig() { + return subscriberConfigCase_ == 1; + } + + /** + * + * + *
      +     * Ces app config.
      +     * 
      + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig ces_app_config = 1; + * + * + * @return The cesAppConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig getCesAppConfig() { + if (subscriberConfigCase_ == 1) { + return (com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig) + subscriberConfig_; + } + return com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig.getDefaultInstance(); + } + + /** + * + * + *
      +     * Ces app config.
      +     * 
      + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig ces_app_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfigOrBuilder + getCesAppConfigOrBuilder() { + if (subscriberConfigCase_ == 1) { + return (com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig) + subscriberConfig_; + } + return com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (subscriberConfigCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig) subscriberConfig_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (subscriberConfigCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig) + subscriberConfig_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig other = + (com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig) obj; + + if (!getSubscriberConfigCase().equals(other.getSubscriberConfigCase())) return false; + switch (subscriberConfigCase_) { + case 1: + if (!getCesAppConfig().equals(other.getCesAppConfig())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (subscriberConfigCase_) { + case 1: + hash = (37 * hash) + CES_APP_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCesAppConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Configs of subscribers.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig) + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_SubscriberConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_SubscriberConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig.class, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (cesAppConfigBuilder_ != null) { + cesAppConfigBuilder_.clear(); + } + subscriberConfigCase_ = 0; + subscriberConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_SubscriberConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig + getDefaultInstanceForType() { + return com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig build() { + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig buildPartial() { + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig result = + new com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig result) { + result.subscriberConfigCase_ = subscriberConfigCase_; + result.subscriberConfig_ = this.subscriberConfig_; + if (subscriberConfigCase_ == 1 && cesAppConfigBuilder_ != null) { + result.subscriberConfig_ = cesAppConfigBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig) { + return mergeFrom( + (com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig other) { + if (other + == com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig + .getDefaultInstance()) return this; + switch (other.getSubscriberConfigCase()) { + case CES_APP_CONFIG: + { + mergeCesAppConfig(other.getCesAppConfig()); + break; + } + case SUBSCRIBERCONFIG_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetCesAppConfigFieldBuilder().getBuilder(), extensionRegistry); + subscriberConfigCase_ = 1; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int subscriberConfigCase_ = 0; + private java.lang.Object subscriberConfig_; + + public SubscriberConfigCase getSubscriberConfigCase() { + return SubscriberConfigCase.forNumber(subscriberConfigCase_); + } + + public Builder clearSubscriberConfig() { + subscriberConfigCase_ = 0; + subscriberConfig_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig.Builder, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfigOrBuilder> + cesAppConfigBuilder_; + + /** + * + * + *
      +       * Ces app config.
      +       * 
      + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig ces_app_config = 1; + * + * + * @return Whether the cesAppConfig field is set. + */ + @java.lang.Override + public boolean hasCesAppConfig() { + return subscriberConfigCase_ == 1; + } + + /** + * + * + *
      +       * Ces app config.
      +       * 
      + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig ces_app_config = 1; + * + * + * @return The cesAppConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig getCesAppConfig() { + if (cesAppConfigBuilder_ == null) { + if (subscriberConfigCase_ == 1) { + return (com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig) + subscriberConfig_; + } + return com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig + .getDefaultInstance(); + } else { + if (subscriberConfigCase_ == 1) { + return cesAppConfigBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig + .getDefaultInstance(); + } + } + + /** + * + * + *
      +       * Ces app config.
      +       * 
      + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig ces_app_config = 1; + * + */ + public Builder setCesAppConfig( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig value) { + if (cesAppConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + subscriberConfig_ = value; + onChanged(); + } else { + cesAppConfigBuilder_.setMessage(value); + } + subscriberConfigCase_ = 1; + return this; + } + + /** + * + * + *
      +       * Ces app config.
      +       * 
      + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig ces_app_config = 1; + * + */ + public Builder setCesAppConfig( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig.Builder + builderForValue) { + if (cesAppConfigBuilder_ == null) { + subscriberConfig_ = builderForValue.build(); + onChanged(); + } else { + cesAppConfigBuilder_.setMessage(builderForValue.build()); + } + subscriberConfigCase_ = 1; + return this; + } + + /** + * + * + *
      +       * Ces app config.
      +       * 
      + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig ces_app_config = 1; + * + */ + public Builder mergeCesAppConfig( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig value) { + if (cesAppConfigBuilder_ == null) { + if (subscriberConfigCase_ == 1 + && subscriberConfig_ + != com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig + .getDefaultInstance()) { + subscriberConfig_ = + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig.newBuilder( + (com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig) + subscriberConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + subscriberConfig_ = value; + } + onChanged(); + } else { + if (subscriberConfigCase_ == 1) { + cesAppConfigBuilder_.mergeFrom(value); + } else { + cesAppConfigBuilder_.setMessage(value); + } + } + subscriberConfigCase_ = 1; + return this; + } + + /** + * + * + *
      +       * Ces app config.
      +       * 
      + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig ces_app_config = 1; + * + */ + public Builder clearCesAppConfig() { + if (cesAppConfigBuilder_ == null) { + if (subscriberConfigCase_ == 1) { + subscriberConfigCase_ = 0; + subscriberConfig_ = null; + onChanged(); + } + } else { + if (subscriberConfigCase_ == 1) { + subscriberConfigCase_ = 0; + subscriberConfig_ = null; + } + cesAppConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +       * Ces app config.
      +       * 
      + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig ces_app_config = 1; + * + */ + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig.Builder + getCesAppConfigBuilder() { + return internalGetCesAppConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Ces app config.
      +       * 
      + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig ces_app_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfigOrBuilder + getCesAppConfigOrBuilder() { + if ((subscriberConfigCase_ == 1) && (cesAppConfigBuilder_ != null)) { + return cesAppConfigBuilder_.getMessageOrBuilder(); + } else { + if (subscriberConfigCase_ == 1) { + return (com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig) + subscriberConfig_; + } + return com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig + .getDefaultInstance(); + } + } + + /** + * + * + *
      +       * Ces app config.
      +       * 
      + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig ces_app_config = 1; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig.Builder, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfigOrBuilder> + internalGetCesAppConfigFieldBuilder() { + if (cesAppConfigBuilder_ == null) { + if (!(subscriberConfigCase_ == 1)) { + subscriberConfig_ = + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig + .getDefaultInstance(); + } + cesAppConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig.Builder, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfigOrBuilder>( + (com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig) + subscriberConfig_, + getParentForChildren(), + isClean()); + subscriberConfig_ = null; + } + subscriberConfigCase_ = 1; + onChanged(); + return cesAppConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig) + private static final com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig(); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubscriberConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface CesAppConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * The unique identifier of the CES app.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}`
      +     * 
      + * + * string app = 1 [(.google.api.resource_reference) = { ... } + * + * @return The app. + */ + java.lang.String getApp(); + + /** + * + * + *
      +     * The unique identifier of the CES app.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}`
      +     * 
      + * + * string app = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for app. + */ + com.google.protobuf.ByteString getAppBytes(); + } + + /** + * + * + *
      +   * Configs for CES app.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig} + */ + public static final class CesAppConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig) + CesAppConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CesAppConfig"); + } + + // Use CesAppConfig.newBuilder() to construct. + private CesAppConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CesAppConfig() { + app_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_CesAppConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_CesAppConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig.class, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig.Builder.class); + } + + public static final int APP_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object app_ = ""; + + /** + * + * + *
      +     * The unique identifier of the CES app.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}`
      +     * 
      + * + * string app = 1 [(.google.api.resource_reference) = { ... } + * + * @return The app. + */ + @java.lang.Override + public java.lang.String getApp() { + java.lang.Object ref = app_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + app_ = s; + return s; + } + } + + /** + * + * + *
      +     * The unique identifier of the CES app.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}`
      +     * 
      + * + * string app = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for app. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppBytes() { + java.lang.Object ref = app_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + app_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(app_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, app_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(app_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, app_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig other = + (com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig) obj; + + if (!getApp().equals(other.getApp())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + APP_FIELD_NUMBER; + hash = (53 * hash) + getApp().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Configs for CES app.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig) + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_CesAppConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_CesAppConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig.class, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig.Builder.class); + } + + // Construct using + // com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + app_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_CesAppConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig + getDefaultInstanceForType() { + return com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig build() { + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig buildPartial() { + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig result = + new com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.app_ = app_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig) { + return mergeFrom( + (com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig other) { + if (other + == com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig + .getDefaultInstance()) return this; + if (!other.getApp().isEmpty()) { + app_ = other.app_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + app_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object app_ = ""; + + /** + * + * + *
      +       * The unique identifier of the CES app.
      +       * Format: `projects/{project}/locations/{location}/apps/{app}`
      +       * 
      + * + * string app = 1 [(.google.api.resource_reference) = { ... } + * + * @return The app. + */ + public java.lang.String getApp() { + java.lang.Object ref = app_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + app_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * The unique identifier of the CES app.
      +       * Format: `projects/{project}/locations/{location}/apps/{app}`
      +       * 
      + * + * string app = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for app. + */ + public com.google.protobuf.ByteString getAppBytes() { + java.lang.Object ref = app_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + app_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * The unique identifier of the CES app.
      +       * Format: `projects/{project}/locations/{location}/apps/{app}`
      +       * 
      + * + * string app = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The app to set. + * @return This builder for chaining. + */ + public Builder setApp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + app_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * The unique identifier of the CES app.
      +       * Format: `projects/{project}/locations/{location}/apps/{app}`
      +       * 
      + * + * string app = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearApp() { + app_ = getDefaultInstance().getApp(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +       * The unique identifier of the CES app.
      +       * Format: `projects/{project}/locations/{location}/apps/{app}`
      +       * 
      + * + * string app = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for app to set. + * @return This builder for chaining. + */ + public Builder setAppBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + app_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig) + private static final com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig(); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CesAppConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.CesAppConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface RoutingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * The key of the subscriber.
      +     * 
      + * + * string subscriber_key = 1; + * + * @return The subscriberKey. + */ + java.lang.String getSubscriberKey(); + + /** + * + * + *
      +     * The key of the subscriber.
      +     * 
      + * + * string subscriber_key = 1; + * + * @return The bytes for subscriberKey. + */ + com.google.protobuf.ByteString getSubscriberKeyBytes(); + } + + /** + * + * + *
      +   * Routing config specify how/who to route app events to a subscriber.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig} + */ + public static final class RoutingConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig) + RoutingConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RoutingConfig"); + } + + // Use RoutingConfig.newBuilder() to construct. + private RoutingConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RoutingConfig() { + subscriberKey_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_RoutingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_RoutingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig.class, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig.Builder.class); + } + + public static final int SUBSCRIBER_KEY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object subscriberKey_ = ""; + + /** + * + * + *
      +     * The key of the subscriber.
      +     * 
      + * + * string subscriber_key = 1; + * + * @return The subscriberKey. + */ + @java.lang.Override + public java.lang.String getSubscriberKey() { + java.lang.Object ref = subscriberKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subscriberKey_ = s; + return s; + } + } + + /** + * + * + *
      +     * The key of the subscriber.
      +     * 
      + * + * string subscriber_key = 1; + * + * @return The bytes for subscriberKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubscriberKeyBytes() { + java.lang.Object ref = subscriberKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subscriberKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subscriberKey_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, subscriberKey_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subscriberKey_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, subscriberKey_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig other = + (com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig) obj; + + if (!getSubscriberKey().equals(other.getSubscriberKey())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SUBSCRIBER_KEY_FIELD_NUMBER; + hash = (53 * hash) + getSubscriberKey().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Routing config specify how/who to route app events to a subscriber.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig) + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_RoutingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_RoutingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig.class, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig.Builder.class); + } + + // Construct using + // com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + subscriberKey_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_RoutingConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig + getDefaultInstanceForType() { + return com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig build() { + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig buildPartial() { + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig result = + new com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.subscriberKey_ = subscriberKey_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig) { + return mergeFrom( + (com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig other) { + if (other + == com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig + .getDefaultInstance()) return this; + if (!other.getSubscriberKey().isEmpty()) { + subscriberKey_ = other.subscriberKey_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + subscriberKey_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object subscriberKey_ = ""; + + /** + * + * + *
      +       * The key of the subscriber.
      +       * 
      + * + * string subscriber_key = 1; + * + * @return The subscriberKey. + */ + public java.lang.String getSubscriberKey() { + java.lang.Object ref = subscriberKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subscriberKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * The key of the subscriber.
      +       * 
      + * + * string subscriber_key = 1; + * + * @return The bytes for subscriberKey. + */ + public com.google.protobuf.ByteString getSubscriberKeyBytes() { + java.lang.Object ref = subscriberKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subscriberKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * The key of the subscriber.
      +       * 
      + * + * string subscriber_key = 1; + * + * @param value The subscriberKey to set. + * @return This builder for chaining. + */ + public Builder setSubscriberKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + subscriberKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * The key of the subscriber.
      +       * 
      + * + * string subscriber_key = 1; + * + * @return This builder for chaining. + */ + public Builder clearSubscriberKey() { + subscriberKey_ = getDefaultInstance().getSubscriberKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +       * The key of the subscriber.
      +       * 
      + * + * string subscriber_key = 1; + * + * @param value The bytes for subscriberKey to set. + * @return This builder for chaining. + */ + public Builder setSubscriberKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscriberKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig) + private static final com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig(); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RoutingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int CHANNEL_CONFIGS_FIELD_NUMBER = 1; + + private static final class ChannelConfigsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_ChannelConfigsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig + .getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> + channelConfigs_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> + internalGetChannelConfigs() { + if (channelConfigs_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ChannelConfigsDefaultEntryHolder.defaultEntry); + } + return channelConfigs_; + } + + public int getChannelConfigsCount() { + return internalGetChannelConfigs().getMap().size(); + } + + /** + * + * + *
      +   * Optional. Various of configuration for handling App events.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> channel_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsChannelConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetChannelConfigs().getMap().containsKey(key); + } + + /** Use {@link #getChannelConfigsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> + getChannelConfigs() { + return getChannelConfigsMap(); + } + + /** + * + * + *
      +   * Optional. Various of configuration for handling App events.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> channel_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> + getChannelConfigsMap() { + return internalGetChannelConfigs().getMap(); + } + + /** + * + * + *
      +   * Optional. Various of configuration for handling App events.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> channel_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig + getChannelConfigsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> + map = internalGetChannelConfigs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
      +   * Optional. Various of configuration for handling App events.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> channel_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig + getChannelConfigsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> + map = internalGetChannelConfigs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int SUBSCRIBER_CONFIGS_FIELD_NUMBER = 2; + + private static final class SubscriberConfigsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_SubscriberConfigsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig + .getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> + subscriberConfigs_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> + internalGetSubscriberConfigs() { + if (subscriberConfigs_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SubscriberConfigsDefaultEntryHolder.defaultEntry); + } + return subscriberConfigs_; + } + + public int getSubscriberConfigsCount() { + return internalGetSubscriberConfigs().getMap().size(); + } + + /** + * + * + *
      +   * Optional. Various of subscribers configs.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> subscriber_configs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsSubscriberConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetSubscriberConfigs().getMap().containsKey(key); + } + + /** Use {@link #getSubscriberConfigsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> + getSubscriberConfigs() { + return getSubscriberConfigsMap(); + } + + /** + * + * + *
      +   * Optional. Various of subscribers configs.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> subscriber_configs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> + getSubscriberConfigsMap() { + return internalGetSubscriberConfigs().getMap(); + } + + /** + * + * + *
      +   * Optional. Various of subscribers configs.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> subscriber_configs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig + getSubscriberConfigsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> + map = internalGetSubscriberConfigs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
      +   * Optional. Various of subscribers configs.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> subscriber_configs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig + getSubscriberConfigsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> + map = internalGetSubscriberConfigs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int ROUTING_CONFIGS_FIELD_NUMBER = 3; + + private static final class RoutingConfigsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_RoutingConfigsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig + .getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> + routingConfigs_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> + internalGetRoutingConfigs() { + if (routingConfigs_ == null) { + return com.google.protobuf.MapField.emptyMapField( + RoutingConfigsDefaultEntryHolder.defaultEntry); + } + return routingConfigs_; + } + + public int getRoutingConfigsCount() { + return internalGetRoutingConfigs().getMap().size(); + } + + /** + * + * + *
      +   * Optional. The key of routing_configs is a key of `app_configs`, value is a
      +   * `RoutingConfig`, which contains subscriber's key.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> routing_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsRoutingConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetRoutingConfigs().getMap().containsKey(key); + } + + /** Use {@link #getRoutingConfigsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> + getRoutingConfigs() { + return getRoutingConfigsMap(); + } + + /** + * + * + *
      +   * Optional. The key of routing_configs is a key of `app_configs`, value is a
      +   * `RoutingConfig`, which contains subscriber's key.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> routing_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> + getRoutingConfigsMap() { + return internalGetRoutingConfigs().getMap(); + } + + /** + * + * + *
      +   * Optional. The key of routing_configs is a key of `app_configs`, value is a
      +   * `RoutingConfig`, which contains subscriber's key.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> routing_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig + getRoutingConfigsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> + map = internalGetRoutingConfigs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
      +   * Optional. The key of routing_configs is a key of `app_configs`, value is a
      +   * `RoutingConfig`, which contains subscriber's key.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> routing_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig + getRoutingConfigsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> + map = internalGetRoutingConfigs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetChannelConfigs(), ChannelConfigsDefaultEntryHolder.defaultEntry, 1); + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, + internalGetSubscriberConfigs(), + SubscriberConfigsDefaultEntryHolder.defaultEntry, + 2); + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetRoutingConfigs(), RoutingConfigsDefaultEntryHolder.defaultEntry, 3); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> + entry : internalGetChannelConfigs().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> + channelConfigs__ = + ChannelConfigsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, channelConfigs__); + } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> + entry : internalGetSubscriberConfigs().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> + subscriberConfigs__ = + SubscriberConfigsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, subscriberConfigs__); + } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> + entry : internalGetRoutingConfigs().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> + routingConfigs__ = + RoutingConfigsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, routingConfigs__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.OmnichannelIntegrationConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.OmnichannelIntegrationConfig other = + (com.google.cloud.ces.v1.OmnichannelIntegrationConfig) obj; + + if (!internalGetChannelConfigs().equals(other.internalGetChannelConfigs())) return false; + if (!internalGetSubscriberConfigs().equals(other.internalGetSubscriberConfigs())) return false; + if (!internalGetRoutingConfigs().equals(other.internalGetRoutingConfigs())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetChannelConfigs().getMap().isEmpty()) { + hash = (37 * hash) + CHANNEL_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetChannelConfigs().hashCode(); + } + if (!internalGetSubscriberConfigs().getMap().isEmpty()) { + hash = (37 * hash) + SUBSCRIBER_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetSubscriberConfigs().hashCode(); + } + if (!internalGetRoutingConfigs().getMap().isEmpty()) { + hash = (37 * hash) + ROUTING_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetRoutingConfigs().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.OmnichannelIntegrationConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * OmnichannelIntegrationConfig contains all App integration configs.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.OmnichannelIntegrationConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.OmnichannelIntegrationConfig) + com.google.cloud.ces.v1.OmnichannelIntegrationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetChannelConfigs(); + case 2: + return internalGetSubscriberConfigs(); + case 3: + return internalGetRoutingConfigs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetMutableChannelConfigs(); + case 2: + return internalGetMutableSubscriberConfigs(); + case 3: + return internalGetMutableRoutingConfigs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.class, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.OmnichannelIntegrationConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableChannelConfigs().clear(); + internalGetMutableSubscriberConfigs().clear(); + internalGetMutableRoutingConfigs().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.OmnichannelProto + .internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1.OmnichannelIntegrationConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig build() { + com.google.cloud.ces.v1.OmnichannelIntegrationConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig buildPartial() { + com.google.cloud.ces.v1.OmnichannelIntegrationConfig result = + new com.google.cloud.ces.v1.OmnichannelIntegrationConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.OmnichannelIntegrationConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.channelConfigs_ = + internalGetChannelConfigs().build(ChannelConfigsDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.subscriberConfigs_ = + internalGetSubscriberConfigs().build(SubscriberConfigsDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.routingConfigs_ = + internalGetRoutingConfigs().build(RoutingConfigsDefaultEntryHolder.defaultEntry); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.OmnichannelIntegrationConfig) { + return mergeFrom((com.google.cloud.ces.v1.OmnichannelIntegrationConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.OmnichannelIntegrationConfig other) { + if (other == com.google.cloud.ces.v1.OmnichannelIntegrationConfig.getDefaultInstance()) + return this; + internalGetMutableChannelConfigs().mergeFrom(other.internalGetChannelConfigs()); + bitField0_ |= 0x00000001; + internalGetMutableSubscriberConfigs().mergeFrom(other.internalGetSubscriberConfigs()); + bitField0_ |= 0x00000002; + internalGetMutableRoutingConfigs().mergeFrom(other.internalGetRoutingConfigs()); + bitField0_ |= 0x00000004; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> + channelConfigs__ = + input.readMessage( + ChannelConfigsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableChannelConfigs() + .ensureBuilderMap() + .put(channelConfigs__.getKey(), channelConfigs__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> + subscriberConfigs__ = + input.readMessage( + SubscriberConfigsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableSubscriberConfigs() + .ensureBuilderMap() + .put(subscriberConfigs__.getKey(), subscriberConfigs__.getValue()); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> + routingConfigs__ = + input.readMessage( + RoutingConfigsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableRoutingConfigs() + .ensureBuilderMap() + .put(routingConfigs__.getKey(), routingConfigs__.getValue()); + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private static final class ChannelConfigsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfigOrBuilder, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> { + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig build( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfigOrBuilder val) { + if (val instanceof com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig) { + return (com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig) val; + } + return ((com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig.Builder) val) + .build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> + defaultEntry() { + return ChannelConfigsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final ChannelConfigsConverter channelConfigsConverter = + new ChannelConfigsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfigOrBuilder, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig.Builder> + channelConfigs_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfigOrBuilder, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig.Builder> + internalGetChannelConfigs() { + if (channelConfigs_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(channelConfigsConverter); + } + return channelConfigs_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfigOrBuilder, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig.Builder> + internalGetMutableChannelConfigs() { + if (channelConfigs_ == null) { + channelConfigs_ = new com.google.protobuf.MapFieldBuilder<>(channelConfigsConverter); + } + bitField0_ |= 0x00000001; + onChanged(); + return channelConfigs_; + } + + public int getChannelConfigsCount() { + return internalGetChannelConfigs().ensureBuilderMap().size(); + } + + /** + * + * + *
      +     * Optional. Various of configuration for handling App events.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> channel_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsChannelConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetChannelConfigs().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getChannelConfigsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> + getChannelConfigs() { + return getChannelConfigsMap(); + } + + /** + * + * + *
      +     * Optional. Various of configuration for handling App events.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> channel_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> + getChannelConfigsMap() { + return internalGetChannelConfigs().getImmutableMap(); + } + + /** + * + * + *
      +     * Optional. Various of configuration for handling App events.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> channel_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig + getChannelConfigsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfigOrBuilder> + map = internalGetMutableChannelConfigs().ensureBuilderMap(); + return map.containsKey(key) ? channelConfigsConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
      +     * Optional. Various of configuration for handling App events.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> channel_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig + getChannelConfigsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfigOrBuilder> + map = internalGetMutableChannelConfigs().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return channelConfigsConverter.build(map.get(key)); + } + + public Builder clearChannelConfigs() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableChannelConfigs().clear(); + return this; + } + + /** + * + * + *
      +     * Optional. Various of configuration for handling App events.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> channel_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeChannelConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableChannelConfigs().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> + getMutableChannelConfigs() { + bitField0_ |= 0x00000001; + return internalGetMutableChannelConfigs().ensureMessageMap(); + } + + /** + * + * + *
      +     * Optional. Various of configuration for handling App events.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> channel_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putChannelConfigs( + java.lang.String key, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableChannelConfigs().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000001; + return this; + } + + /** + * + * + *
      +     * Optional. Various of configuration for handling App events.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> channel_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllChannelConfigs( + java.util.Map< + java.lang.String, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> + values) { + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableChannelConfigs().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000001; + return this; + } + + /** + * + * + *
      +     * Optional. Various of configuration for handling App events.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> channel_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig.Builder + putChannelConfigsBuilderIfAbsent(java.lang.String key) { + java.util.Map< + java.lang.String, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfigOrBuilder> + builderMap = internalGetMutableChannelConfigs().ensureBuilderMap(); + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfigOrBuilder entry = + builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig) { + entry = + ((com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig) entry) + .toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig.Builder) entry; + } + + private static final class SubscriberConfigsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfigOrBuilder, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> { + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig build( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfigOrBuilder val) { + if (val instanceof com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig) { + return (com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig) val; + } + return ((com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig.Builder) val) + .build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> + defaultEntry() { + return SubscriberConfigsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final SubscriberConfigsConverter subscriberConfigsConverter = + new SubscriberConfigsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfigOrBuilder, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig.Builder> + subscriberConfigs_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfigOrBuilder, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig.Builder> + internalGetSubscriberConfigs() { + if (subscriberConfigs_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(subscriberConfigsConverter); + } + return subscriberConfigs_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfigOrBuilder, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig.Builder> + internalGetMutableSubscriberConfigs() { + if (subscriberConfigs_ == null) { + subscriberConfigs_ = new com.google.protobuf.MapFieldBuilder<>(subscriberConfigsConverter); + } + bitField0_ |= 0x00000002; + onChanged(); + return subscriberConfigs_; + } + + public int getSubscriberConfigsCount() { + return internalGetSubscriberConfigs().ensureBuilderMap().size(); + } + + /** + * + * + *
      +     * Optional. Various of subscribers configs.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> subscriber_configs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsSubscriberConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetSubscriberConfigs().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getSubscriberConfigsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> + getSubscriberConfigs() { + return getSubscriberConfigsMap(); + } + + /** + * + * + *
      +     * Optional. Various of subscribers configs.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> subscriber_configs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> + getSubscriberConfigsMap() { + return internalGetSubscriberConfigs().getImmutableMap(); + } + + /** + * + * + *
      +     * Optional. Various of subscribers configs.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> subscriber_configs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig + getSubscriberConfigsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfigOrBuilder> + map = internalGetMutableSubscriberConfigs().ensureBuilderMap(); + return map.containsKey(key) ? subscriberConfigsConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
      +     * Optional. Various of subscribers configs.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> subscriber_configs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig + getSubscriberConfigsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfigOrBuilder> + map = internalGetMutableSubscriberConfigs().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return subscriberConfigsConverter.build(map.get(key)); + } + + public Builder clearSubscriberConfigs() { + bitField0_ = (bitField0_ & ~0x00000002); + internalGetMutableSubscriberConfigs().clear(); + return this; + } + + /** + * + * + *
      +     * Optional. Various of subscribers configs.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> subscriber_configs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeSubscriberConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableSubscriberConfigs().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> + getMutableSubscriberConfigs() { + bitField0_ |= 0x00000002; + return internalGetMutableSubscriberConfigs().ensureMessageMap(); + } + + /** + * + * + *
      +     * Optional. Various of subscribers configs.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> subscriber_configs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putSubscriberConfigs( + java.lang.String key, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableSubscriberConfigs().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000002; + return this; + } + + /** + * + * + *
      +     * Optional. Various of subscribers configs.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> subscriber_configs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllSubscriberConfigs( + java.util.Map< + java.lang.String, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> + values) { + for (java.util.Map.Entry< + java.lang.String, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableSubscriberConfigs().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000002; + return this; + } + + /** + * + * + *
      +     * Optional. Various of subscribers configs.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> subscriber_configs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig.Builder + putSubscriberConfigsBuilderIfAbsent(java.lang.String key) { + java.util.Map< + java.lang.String, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfigOrBuilder> + builderMap = internalGetMutableSubscriberConfigs().ensureBuilderMap(); + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfigOrBuilder entry = + builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig) { + entry = + ((com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig) entry) + .toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig.Builder) entry; + } + + private static final class RoutingConfigsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfigOrBuilder, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> { + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig build( + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfigOrBuilder val) { + if (val instanceof com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig) { + return (com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig) val; + } + return ((com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig.Builder) val) + .build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> + defaultEntry() { + return RoutingConfigsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final RoutingConfigsConverter routingConfigsConverter = + new RoutingConfigsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfigOrBuilder, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig.Builder> + routingConfigs_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfigOrBuilder, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig.Builder> + internalGetRoutingConfigs() { + if (routingConfigs_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(routingConfigsConverter); + } + return routingConfigs_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfigOrBuilder, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig.Builder> + internalGetMutableRoutingConfigs() { + if (routingConfigs_ == null) { + routingConfigs_ = new com.google.protobuf.MapFieldBuilder<>(routingConfigsConverter); + } + bitField0_ |= 0x00000004; + onChanged(); + return routingConfigs_; + } + + public int getRoutingConfigsCount() { + return internalGetRoutingConfigs().ensureBuilderMap().size(); + } + + /** + * + * + *
      +     * Optional. The key of routing_configs is a key of `app_configs`, value is a
      +     * `RoutingConfig`, which contains subscriber's key.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> routing_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsRoutingConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetRoutingConfigs().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getRoutingConfigsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> + getRoutingConfigs() { + return getRoutingConfigsMap(); + } + + /** + * + * + *
      +     * Optional. The key of routing_configs is a key of `app_configs`, value is a
      +     * `RoutingConfig`, which contains subscriber's key.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> routing_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> + getRoutingConfigsMap() { + return internalGetRoutingConfigs().getImmutableMap(); + } + + /** + * + * + *
      +     * Optional. The key of routing_configs is a key of `app_configs`, value is a
      +     * `RoutingConfig`, which contains subscriber's key.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> routing_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig + getRoutingConfigsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfigOrBuilder> + map = internalGetMutableRoutingConfigs().ensureBuilderMap(); + return map.containsKey(key) ? routingConfigsConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
      +     * Optional. The key of routing_configs is a key of `app_configs`, value is a
      +     * `RoutingConfig`, which contains subscriber's key.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> routing_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig + getRoutingConfigsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfigOrBuilder> + map = internalGetMutableRoutingConfigs().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return routingConfigsConverter.build(map.get(key)); + } + + public Builder clearRoutingConfigs() { + bitField0_ = (bitField0_ & ~0x00000004); + internalGetMutableRoutingConfigs().clear(); + return this; + } + + /** + * + * + *
      +     * Optional. The key of routing_configs is a key of `app_configs`, value is a
      +     * `RoutingConfig`, which contains subscriber's key.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> routing_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeRoutingConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableRoutingConfigs().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> + getMutableRoutingConfigs() { + bitField0_ |= 0x00000004; + return internalGetMutableRoutingConfigs().ensureMessageMap(); + } + + /** + * + * + *
      +     * Optional. The key of routing_configs is a key of `app_configs`, value is a
      +     * `RoutingConfig`, which contains subscriber's key.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> routing_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putRoutingConfigs( + java.lang.String key, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableRoutingConfigs().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000004; + return this; + } + + /** + * + * + *
      +     * Optional. The key of routing_configs is a key of `app_configs`, value is a
      +     * `RoutingConfig`, which contains subscriber's key.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> routing_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllRoutingConfigs( + java.util.Map< + java.lang.String, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> + values) { + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableRoutingConfigs().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000004; + return this; + } + + /** + * + * + *
      +     * Optional. The key of routing_configs is a key of `app_configs`, value is a
      +     * `RoutingConfig`, which contains subscriber's key.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> routing_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig.Builder + putRoutingConfigsBuilderIfAbsent(java.lang.String key) { + java.util.Map< + java.lang.String, + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfigOrBuilder> + builderMap = internalGetMutableRoutingConfigs().ensureBuilderMap(); + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfigOrBuilder entry = + builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig) { + entry = + ((com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig) entry) + .toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig.Builder) entry; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.OmnichannelIntegrationConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.OmnichannelIntegrationConfig) + private static final com.google.cloud.ces.v1.OmnichannelIntegrationConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.OmnichannelIntegrationConfig(); + } + + public static com.google.cloud.ces.v1.OmnichannelIntegrationConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OmnichannelIntegrationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelIntegrationConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OmnichannelIntegrationConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OmnichannelIntegrationConfigOrBuilder.java new file mode 100644 index 000000000000..ca6c7c283598 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OmnichannelIntegrationConfigOrBuilder.java @@ -0,0 +1,268 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/omnichannel.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface OmnichannelIntegrationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.OmnichannelIntegrationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. Various of configuration for handling App events.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> channel_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getChannelConfigsCount(); + + /** + * + * + *
      +   * Optional. Various of configuration for handling App events.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> channel_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsChannelConfigs(java.lang.String key); + + /** Use {@link #getChannelConfigsMap()} instead. */ + @java.lang.Deprecated + java.util.Map< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> + getChannelConfigs(); + + /** + * + * + *
      +   * Optional. Various of configuration for handling App events.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> channel_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> + getChannelConfigsMap(); + + /** + * + * + *
      +   * Optional. Various of configuration for handling App events.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> channel_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig getChannelConfigsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig defaultValue); + + /** + * + * + *
      +   * Optional. Various of configuration for handling App events.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig> channel_configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.ChannelConfig getChannelConfigsOrThrow( + java.lang.String key); + + /** + * + * + *
      +   * Optional. Various of subscribers configs.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> subscriber_configs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getSubscriberConfigsCount(); + + /** + * + * + *
      +   * Optional. Various of subscribers configs.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> subscriber_configs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsSubscriberConfigs(java.lang.String key); + + /** Use {@link #getSubscriberConfigsMap()} instead. */ + @java.lang.Deprecated + java.util.Map< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> + getSubscriberConfigs(); + + /** + * + * + *
      +   * Optional. Various of subscribers configs.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> subscriber_configs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> + getSubscriberConfigsMap(); + + /** + * + * + *
      +   * Optional. Various of subscribers configs.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> subscriber_configs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig + getSubscriberConfigsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig defaultValue); + + /** + * + * + *
      +   * Optional. Various of subscribers configs.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig> subscriber_configs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.SubscriberConfig getSubscriberConfigsOrThrow( + java.lang.String key); + + /** + * + * + *
      +   * Optional. The key of routing_configs is a key of `app_configs`, value is a
      +   * `RoutingConfig`, which contains subscriber's key.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> routing_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getRoutingConfigsCount(); + + /** + * + * + *
      +   * Optional. The key of routing_configs is a key of `app_configs`, value is a
      +   * `RoutingConfig`, which contains subscriber's key.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> routing_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsRoutingConfigs(java.lang.String key); + + /** Use {@link #getRoutingConfigsMap()} instead. */ + @java.lang.Deprecated + java.util.Map< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> + getRoutingConfigs(); + + /** + * + * + *
      +   * Optional. The key of routing_configs is a key of `app_configs`, value is a
      +   * `RoutingConfig`, which contains subscriber's key.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> routing_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map< + java.lang.String, com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> + getRoutingConfigsMap(); + + /** + * + * + *
      +   * Optional. The key of routing_configs is a key of `app_configs`, value is a
      +   * `RoutingConfig`, which contains subscriber's key.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> routing_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig getRoutingConfigsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig defaultValue); + + /** + * + * + *
      +   * Optional. The key of routing_configs is a key of `app_configs`, value is a
      +   * `RoutingConfig`, which contains subscriber's key.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig> routing_configs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.OmnichannelIntegrationConfig.RoutingConfig getRoutingConfigsOrThrow( + java.lang.String key); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OmnichannelOperationMetadata.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OmnichannelOperationMetadata.java new file mode 100644 index 000000000000..a810f55cc796 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OmnichannelOperationMetadata.java @@ -0,0 +1,1290 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/omnichannel_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Represents the metadata of the long-running operation.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.OmnichannelOperationMetadata} + */ +@com.google.protobuf.Generated +public final class OmnichannelOperationMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.OmnichannelOperationMetadata) + OmnichannelOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OmnichannelOperationMetadata"); + } + + // Use OmnichannelOperationMetadata.newBuilder() to construct. + private OmnichannelOperationMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OmnichannelOperationMetadata() { + statusMessage_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.OmnichannelServiceProto + .internal_static_google_cloud_ces_v1_OmnichannelOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.OmnichannelServiceProto + .internal_static_google_cloud_ces_v1_OmnichannelOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.OmnichannelOperationMetadata.class, + com.google.cloud.ces.v1.OmnichannelOperationMetadata.Builder.class); + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
      +   * Output only. The time the operation was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Output only. The time the operation was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
      +   * Output only. The time the operation was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + + /** + * + * + *
      +   * Output only. The time the operation finished running.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Output only. The time the operation finished running.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + /** + * + * + *
      +   * Output only. The time the operation finished running.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object statusMessage_ = ""; + + /** + * + * + *
      +   * Output only. Human-readable status of the operation, if any.
      +   * 
      + * + * string status_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The statusMessage. + */ + @java.lang.Override + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } + } + + /** + * + * + *
      +   * Output only. Human-readable status of the operation, if any.
      +   * 
      + * + * string status_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for statusMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 4; + private boolean requestedCancellation_ = false; + + /** + * + * + *
      +   * Output only. Identifies whether the user has requested cancellation of the
      +   * operation.
      +   * 
      + * + * bool requested_cancellation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + @java.lang.Override + public boolean getRequestedCancellation() { + return requestedCancellation_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(statusMessage_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, statusMessage_); + } + if (requestedCancellation_ != false) { + output.writeBool(4, requestedCancellation_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(statusMessage_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, statusMessage_); + } + if (requestedCancellation_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, requestedCancellation_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.OmnichannelOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.OmnichannelOperationMetadata other = + (com.google.cloud.ces.v1.OmnichannelOperationMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() != other.getRequestedCancellation()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getStatusMessage().hashCode(); + hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.OmnichannelOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OmnichannelOperationMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OmnichannelOperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OmnichannelOperationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OmnichannelOperationMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OmnichannelOperationMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OmnichannelOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OmnichannelOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.OmnichannelOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Represents the metadata of the long-running operation.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.OmnichannelOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.OmnichannelOperationMetadata) + com.google.cloud.ces.v1.OmnichannelOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.OmnichannelServiceProto + .internal_static_google_cloud_ces_v1_OmnichannelOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.OmnichannelServiceProto + .internal_static_google_cloud_ces_v1_OmnichannelOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.OmnichannelOperationMetadata.class, + com.google.cloud.ces.v1.OmnichannelOperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.OmnichannelOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + statusMessage_ = ""; + requestedCancellation_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.OmnichannelServiceProto + .internal_static_google_cloud_ces_v1_OmnichannelOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelOperationMetadata getDefaultInstanceForType() { + return com.google.cloud.ces.v1.OmnichannelOperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelOperationMetadata build() { + com.google.cloud.ces.v1.OmnichannelOperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelOperationMetadata buildPartial() { + com.google.cloud.ces.v1.OmnichannelOperationMetadata result = + new com.google.cloud.ces.v1.OmnichannelOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.OmnichannelOperationMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.statusMessage_ = statusMessage_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestedCancellation_ = requestedCancellation_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.OmnichannelOperationMetadata) { + return mergeFrom((com.google.cloud.ces.v1.OmnichannelOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.OmnichannelOperationMetadata other) { + if (other == com.google.cloud.ces.v1.OmnichannelOperationMetadata.getDefaultInstance()) + return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getRequestedCancellation() != false) { + setRequestedCancellation(other.getRequestedCancellation()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
      +     * Output only. The time the operation was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Output only. The time the operation was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 1 [(.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_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. The time the operation was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The time the operation was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The time the operation was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. The time the operation was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The time the operation was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. The time the operation was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 1 [(.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_; + } + } + + /** + * + * + *
      +     * Output only. The time the operation was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + + /** + * + * + *
      +     * Output only. The time the operation finished running.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Output only. The time the operation finished running.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. The time the operation finished running.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The time the operation finished running.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The time the operation finished running.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. The time the operation finished running.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The time the operation finished running.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetEndTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. The time the operation finished running.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + + /** + * + * + *
      +     * Output only. The time the operation finished running.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private java.lang.Object statusMessage_ = ""; + + /** + * + * + *
      +     * Output only. Human-readable status of the operation, if any.
      +     * 
      + * + * string status_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The statusMessage. + */ + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Output only. Human-readable status of the operation, if any.
      +     * 
      + * + * string status_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for statusMessage. + */ + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Output only. Human-readable status of the operation, if any.
      +     * 
      + * + * string status_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The statusMessage to set. + * @return This builder for chaining. + */ + public Builder setStatusMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + statusMessage_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Human-readable status of the operation, if any.
      +     * 
      + * + * string status_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearStatusMessage() { + statusMessage_ = getDefaultInstance().getStatusMessage(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Human-readable status of the operation, if any.
      +     * 
      + * + * string status_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for statusMessage to set. + * @return This builder for chaining. + */ + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean requestedCancellation_; + + /** + * + * + *
      +     * Output only. Identifies whether the user has requested cancellation of the
      +     * operation.
      +     * 
      + * + * bool requested_cancellation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + @java.lang.Override + public boolean getRequestedCancellation() { + return requestedCancellation_; + } + + /** + * + * + *
      +     * Output only. Identifies whether the user has requested cancellation of the
      +     * operation.
      +     * 
      + * + * bool requested_cancellation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The requestedCancellation to set. + * @return This builder for chaining. + */ + public Builder setRequestedCancellation(boolean value) { + + requestedCancellation_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Identifies whether the user has requested cancellation of the
      +     * operation.
      +     * 
      + * + * bool requested_cancellation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRequestedCancellation() { + bitField0_ = (bitField0_ & ~0x00000008); + requestedCancellation_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.OmnichannelOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.OmnichannelOperationMetadata) + private static final com.google.cloud.ces.v1.OmnichannelOperationMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.OmnichannelOperationMetadata(); + } + + public static com.google.cloud.ces.v1.OmnichannelOperationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OmnichannelOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OmnichannelOperationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OmnichannelOperationMetadataOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OmnichannelOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..77c9a3f50230 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OmnichannelOperationMetadataOrBuilder.java @@ -0,0 +1,148 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/omnichannel_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface OmnichannelOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.OmnichannelOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Output only. The time the operation was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
      +   * Output only. The time the operation was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
      +   * Output only. The time the operation was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
      +   * Output only. The time the operation finished running.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + + /** + * + * + *
      +   * Output only. The time the operation finished running.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + + /** + * + * + *
      +   * Output only. The time the operation finished running.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
      +   * Output only. Human-readable status of the operation, if any.
      +   * 
      + * + * string status_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The statusMessage. + */ + java.lang.String getStatusMessage(); + + /** + * + * + *
      +   * Output only. Human-readable status of the operation, if any.
      +   * 
      + * + * string status_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for statusMessage. + */ + com.google.protobuf.ByteString getStatusMessageBytes(); + + /** + * + * + *
      +   * Output only. Identifies whether the user has requested cancellation of the
      +   * operation.
      +   * 
      + * + * bool requested_cancellation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + boolean getRequestedCancellation(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OmnichannelOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OmnichannelOrBuilder.java new file mode 100644 index 000000000000..80a2ed78e613 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OmnichannelOrBuilder.java @@ -0,0 +1,261 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/omnichannel.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface OmnichannelOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.Omnichannel) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Identifier. The unique identifier of the omnichannel resource.
      +   * Format:
      +   * `projects/{project}/locations/{location}/omnichannels/{omnichannel}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Identifier. The unique identifier of the omnichannel resource.
      +   * Format:
      +   * `projects/{project}/locations/{location}/omnichannels/{omnichannel}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Required. Display name of the omnichannel resource.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
      +   * Required. Display name of the omnichannel resource.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
      +   * Optional. Human-readable description of the omnichannel resource.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
      +   * Optional. Human-readable description of the omnichannel resource.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
      +   * Output only. Timestamp when the omnichannel resource was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the omnichannel resource was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the omnichannel resource was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
      +   * Output only. Timestamp when the omnichannel resource was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the omnichannel resource was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the omnichannel resource was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
      +   * Output only. Etag used to ensure the object hasn't changed during a
      +   * read-modify-write operation.
      +   * 
      + * + * string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
      +   * Output only. Etag used to ensure the object hasn't changed during a
      +   * read-modify-write operation.
      +   * 
      + * + * string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
      +   * Optional. The integration config for the omnichannel resource.
      +   * 
      + * + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig integration_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the integrationConfig field is set. + */ + boolean hasIntegrationConfig(); + + /** + * + * + *
      +   * Optional. The integration config for the omnichannel resource.
      +   * 
      + * + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig integration_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The integrationConfig. + */ + com.google.cloud.ces.v1.OmnichannelIntegrationConfig getIntegrationConfig(); + + /** + * + * + *
      +   * Optional. The integration config for the omnichannel resource.
      +   * 
      + * + * + * .google.cloud.ces.v1.OmnichannelIntegrationConfig integration_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.OmnichannelIntegrationConfigOrBuilder getIntegrationConfigOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OmnichannelProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OmnichannelProto.java new file mode 100644 index 000000000000..966a6fad4fdb --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OmnichannelProto.java @@ -0,0 +1,262 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/omnichannel.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class OmnichannelProto extends com.google.protobuf.GeneratedFile { + private OmnichannelProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OmnichannelProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Omnichannel_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Omnichannel_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_ChannelConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_ChannelConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_WhatsappConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_WhatsappConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_SubscriberConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_SubscriberConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_CesAppConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_CesAppConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_RoutingConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_RoutingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_ChannelConfigsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_ChannelConfigsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_SubscriberConfigsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_SubscriberConfigsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_RoutingConfigsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_RoutingConfigsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n%google/cloud/ces/v1/omnichannel.proto\022" + + "\023google.cloud.ces.v1\032\037google/api/field_b" + + "ehavior.proto\032\031google/api/resource.proto" + + "\032\037google/protobuf/timestamp.proto\"\255\003\n\013Om" + + "nichannel\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\031\n\014display_" + + "name\030\002 \001(\tB\003\340A\002\022\030\n\013description\030\003 \001(\tB\003\340A" + + "\001\0224\n\013create_time\030\004 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\022\021\n\004etag\030\006 " + + "\001(\tB\003\340A\003\022R\n\022integration_config\030\007 \001(\01321.g" + + "oogle.cloud.ces.v1.OmnichannelIntegratio" + + "nConfigB\003\340A\001:\202\001\352A\177\n\036ces.googleapis.com/O" + + "mnichannel\022Bprojects/{project}/locations" + + "/{location}/omnichannels/{omnichannel}*\014" + + "omnichannels2\013omnichannel\"\363\t\n\034Omnichanne" + + "lIntegrationConfig\022c\n\017channel_configs\030\001 " + + "\003(\0132E.google.cloud.ces.v1.OmnichannelInt" + + "egrationConfig.ChannelConfigsEntryB\003\340A\001\022" + + "i\n\022subscriber_configs\030\002 \003(\0132H.google.clo" + + "ud.ces.v1.OmnichannelIntegrationConfig.S" + + "ubscriberConfigsEntryB\003\340A\001\022c\n\017routing_co" + + "nfigs\030\003 \003(\0132E.google.cloud.ces.v1.Omnich" + + "annelIntegrationConfig.RoutingConfigsEnt" + + "ryB\003\340A\001\032~\n\rChannelConfig\022[\n\017whatsapp_con" + + "fig\030\001 \001(\0132@.google.cloud.ces.v1.Omnichan" + + "nelIntegrationConfig.WhatsappConfigH\000B\020\n" + + "\016channel_config\032\310\001\n\016WhatsappConfig\022\027\n\017ph" + + "one_number_id\030\001 \001(\t\022\024\n\014phone_number\030\002 \001(" + + "\t\022$\n\034whatsapp_business_account_id\030\003 \001(\t\022" + + "\034\n\024webhook_verify_token\030\004 \001(\t\022\037\n\027whatsap" + + "p_business_token\030\005 \001(\t\022\"\n\032meta_business_" + + "portfolio_id\030\006 \001(\t\032\201\001\n\020SubscriberConfig\022" + + "X\n\016ces_app_config\030\001 \001(\0132>.google.cloud.c" + + "es.v1.OmnichannelIntegrationConfig.CesAp" + + "pConfigH\000B\023\n\021subscriber_config\0328\n\014CesApp" + + "Config\022(\n\003app\030\001 \001(\tB\033\372A\030\n\026ces.googleapis" + + ".com/App\032\'\n\rRoutingConfig\022\026\n\016subscriber_" + + "key\030\001 \001(\t\032v\n\023ChannelConfigsEntry\022\013\n\003key\030" + + "\001 \001(\t\022N\n\005value\030\002 \001(\0132?.google.cloud.ces." + + "v1.OmnichannelIntegrationConfig.ChannelC" + + "onfig:\0028\001\032|\n\026SubscriberConfigsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022Q\n\005value\030\002 \001(\0132B.google.cloud.c" + + "es.v1.OmnichannelIntegrationConfig.Subsc" + + "riberConfig:\0028\001\032v\n\023RoutingConfigsEntry\022\013" + + "\n\003key\030\001 \001(\t\022N\n\005value\030\002 \001(\0132?.google.clou" + + "d.ces.v1.OmnichannelIntegrationConfig.Ro" + + "utingConfig:\0028\001BX\n\027com.google.cloud.ces." + + "v1B\020OmnichannelProtoP\001Z)cloud.google.com" + + "/go/ces/apiv1/cespb;cespbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_Omnichannel_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_Omnichannel_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Omnichannel_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Description", + "CreateTime", + "UpdateTime", + "Etag", + "IntegrationConfig", + }); + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_descriptor, + new java.lang.String[] { + "ChannelConfigs", "SubscriberConfigs", "RoutingConfigs", + }); + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_ChannelConfig_descriptor = + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_descriptor.getNestedType( + 0); + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_ChannelConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_ChannelConfig_descriptor, + new java.lang.String[] { + "WhatsappConfig", "ChannelConfig", + }); + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_WhatsappConfig_descriptor = + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_descriptor.getNestedType( + 1); + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_WhatsappConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_WhatsappConfig_descriptor, + new java.lang.String[] { + "PhoneNumberId", + "PhoneNumber", + "WhatsappBusinessAccountId", + "WebhookVerifyToken", + "WhatsappBusinessToken", + "MetaBusinessPortfolioId", + }); + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_SubscriberConfig_descriptor = + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_descriptor.getNestedType( + 2); + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_SubscriberConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_SubscriberConfig_descriptor, + new java.lang.String[] { + "CesAppConfig", "SubscriberConfig", + }); + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_CesAppConfig_descriptor = + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_descriptor.getNestedType( + 3); + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_CesAppConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_CesAppConfig_descriptor, + new java.lang.String[] { + "App", + }); + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_RoutingConfig_descriptor = + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_descriptor.getNestedType( + 4); + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_RoutingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_RoutingConfig_descriptor, + new java.lang.String[] { + "SubscriberKey", + }); + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_ChannelConfigsEntry_descriptor = + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_descriptor.getNestedType( + 5); + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_ChannelConfigsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_ChannelConfigsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_SubscriberConfigsEntry_descriptor = + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_descriptor.getNestedType( + 6); + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_SubscriberConfigsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_SubscriberConfigsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_RoutingConfigsEntry_descriptor = + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_descriptor.getNestedType( + 7); + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_RoutingConfigsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_OmnichannelIntegrationConfig_RoutingConfigsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OmnichannelServiceProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OmnichannelServiceProto.java new file mode 100644 index 000000000000..be66a3c9c30e --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OmnichannelServiceProto.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/omnichannel_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class OmnichannelServiceProto extends com.google.protobuf.GeneratedFile { + private OmnichannelServiceProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OmnichannelServiceProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_OmnichannelOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_OmnichannelOperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n-google/cloud/ces/v1/omnichannel_servic" + + "e.proto\022\023google.cloud.ces.v1\032\034google/api" + + "/annotations.proto\032\027google/api/client.pr" + + "oto\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\032\037google/protobuf" + + "/timestamp.proto\"\311\001\n\034OmnichannelOperatio" + + "nMetadata\0224\n\013create_time\030\001 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\022\033\n\016st" + + "atus_message\030\003 \001(\tB\003\340A\003\022#\n\026requested_can" + + "cellation\030\004 \001(\010B\003\340A\003B_\n\027com.google.cloud" + + ".ces.v1B\027OmnichannelServiceProtoP\001Z)clou" + + "d.google.com/go/ces/apiv1/cespb;cespbb\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(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_OmnichannelOperationMetadata_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_OmnichannelOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_OmnichannelOperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", "EndTime", "StatusMessage", "RequestedCancellation", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OpenApiTool.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OpenApiTool.java new file mode 100644 index 000000000000..b90897ba4369 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OpenApiTool.java @@ -0,0 +1,2263 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/open_api_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * A remote API tool defined by an OpenAPI schema.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.OpenApiTool} + */ +@com.google.protobuf.Generated +public final class OpenApiTool extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.OpenApiTool) + OpenApiToolOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OpenApiTool"); + } + + // Use OpenApiTool.newBuilder() to construct. + private OpenApiTool(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OpenApiTool() { + openApiSchema_ = ""; + name_ = ""; + description_ = ""; + url_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.OpenApiToolProto + .internal_static_google_cloud_ces_v1_OpenApiTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.OpenApiToolProto + .internal_static_google_cloud_ces_v1_OpenApiTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.OpenApiTool.class, + com.google.cloud.ces.v1.OpenApiTool.Builder.class); + } + + private int bitField0_; + public static final int OPEN_API_SCHEMA_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object openApiSchema_ = ""; + + /** + * + * + *
      +   * Required. The OpenAPI schema in JSON or YAML format.
      +   * 
      + * + * string open_api_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The openApiSchema. + */ + @java.lang.Override + public java.lang.String getOpenApiSchema() { + java.lang.Object ref = openApiSchema_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + openApiSchema_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The OpenAPI schema in JSON or YAML format.
      +   * 
      + * + * string open_api_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for openApiSchema. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOpenApiSchemaBytes() { + java.lang.Object ref = openApiSchema_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + openApiSchema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Optional. The name of the tool. If not provided, the name of the tool will
      +   * be derived from the OpenAPI schema, from `operation.operationId`.
      +   * 
      + * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The name of the tool. If not provided, the name of the tool will
      +   * be derived from the OpenAPI schema, from `operation.operationId`.
      +   * 
      + * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
      +   * Optional. The description of the tool. If not provided, the description of
      +   * the tool will be derived from the OpenAPI schema, from
      +   * `operation.description` or `operation.summary`.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The description of the tool. If not provided, the description of
      +   * the tool will be derived from the OpenAPI schema, from
      +   * `operation.description` or `operation.summary`.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int API_AUTHENTICATION_FIELD_NUMBER = 4; + private com.google.cloud.ces.v1.ApiAuthentication apiAuthentication_; + + /** + * + * + *
      +   * Optional. Authentication information required by the API.
      +   * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiAuthentication field is set. + */ + @java.lang.Override + public boolean hasApiAuthentication() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Optional. Authentication information required by the API.
      +   * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiAuthentication. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ApiAuthentication getApiAuthentication() { + return apiAuthentication_ == null + ? com.google.cloud.ces.v1.ApiAuthentication.getDefaultInstance() + : apiAuthentication_; + } + + /** + * + * + *
      +   * Optional. Authentication information required by the API.
      +   * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ApiAuthenticationOrBuilder getApiAuthenticationOrBuilder() { + return apiAuthentication_ == null + ? com.google.cloud.ces.v1.ApiAuthentication.getDefaultInstance() + : apiAuthentication_; + } + + public static final int TLS_CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.ces.v1.TlsConfig tlsConfig_; + + /** + * + * + *
      +   * Optional. The TLS configuration. Includes the custom server certificates
      +   * that the client will trust.
      +   * 
      + * + * .google.cloud.ces.v1.TlsConfig tls_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tlsConfig field is set. + */ + @java.lang.Override + public boolean hasTlsConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Optional. The TLS configuration. Includes the custom server certificates
      +   * that the client will trust.
      +   * 
      + * + * .google.cloud.ces.v1.TlsConfig tls_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tlsConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.TlsConfig getTlsConfig() { + return tlsConfig_ == null ? com.google.cloud.ces.v1.TlsConfig.getDefaultInstance() : tlsConfig_; + } + + /** + * + * + *
      +   * Optional. The TLS configuration. Includes the custom server certificates
      +   * that the client will trust.
      +   * 
      + * + * .google.cloud.ces.v1.TlsConfig tls_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.TlsConfigOrBuilder getTlsConfigOrBuilder() { + return tlsConfig_ == null ? com.google.cloud.ces.v1.TlsConfig.getDefaultInstance() : tlsConfig_; + } + + public static final int SERVICE_DIRECTORY_CONFIG_FIELD_NUMBER = 6; + private com.google.cloud.ces.v1.ServiceDirectoryConfig serviceDirectoryConfig_; + + /** + * + * + *
      +   * Optional. Service Directory configuration.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceDirectoryConfig field is set. + */ + @java.lang.Override + public boolean hasServiceDirectoryConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * Optional. Service Directory configuration.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceDirectoryConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ServiceDirectoryConfig getServiceDirectoryConfig() { + return serviceDirectoryConfig_ == null + ? com.google.cloud.ces.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } + + /** + * + * + *
      +   * Optional. Service Directory configuration.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ServiceDirectoryConfigOrBuilder + getServiceDirectoryConfigOrBuilder() { + return serviceDirectoryConfig_ == null + ? com.google.cloud.ces.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } + + public static final int IGNORE_UNKNOWN_FIELDS_FIELD_NUMBER = 7; + private boolean ignoreUnknownFields_ = false; + + /** + * + * + *
      +   * Optional. If true, the agent will ignore unknown fields in the API
      +   * response.
      +   * 
      + * + * bool ignore_unknown_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ignoreUnknownFields. + */ + @java.lang.Override + public boolean getIgnoreUnknownFields() { + return ignoreUnknownFields_; + } + + public static final int URL_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object url_ = ""; + + /** + * + * + *
      +   * Optional. The server URL of the Open API schema.
      +   * This field is only set in tools in the environment dependencies during the
      +   * export process if the schema contains a server url. During the import
      +   * process, if this url is present in the environment dependencies and the
      +   * schema has the $env_var placeholder, it will replace the placeholder in the
      +   * schema.
      +   * 
      + * + * string url = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The url. + */ + @java.lang.Override + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The server URL of the Open API schema.
      +   * This field is only set in tools in the environment dependencies during the
      +   * export process if the schema contains a server url. During the import
      +   * process, if this url is present in the environment dependencies and the
      +   * schema has the $env_var placeholder, it will replace the placeholder in the
      +   * schema.
      +   * 
      + * + * string url = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for url. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(openApiSchema_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, openApiSchema_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getApiAuthentication()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getTlsConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getServiceDirectoryConfig()); + } + if (ignoreUnknownFields_ != false) { + output.writeBool(7, ignoreUnknownFields_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, url_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(openApiSchema_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, openApiSchema_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getApiAuthentication()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTlsConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, getServiceDirectoryConfig()); + } + if (ignoreUnknownFields_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, ignoreUnknownFields_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, url_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.OpenApiTool)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.OpenApiTool other = (com.google.cloud.ces.v1.OpenApiTool) obj; + + if (!getOpenApiSchema().equals(other.getOpenApiSchema())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (hasApiAuthentication() != other.hasApiAuthentication()) return false; + if (hasApiAuthentication()) { + if (!getApiAuthentication().equals(other.getApiAuthentication())) return false; + } + if (hasTlsConfig() != other.hasTlsConfig()) return false; + if (hasTlsConfig()) { + if (!getTlsConfig().equals(other.getTlsConfig())) return false; + } + if (hasServiceDirectoryConfig() != other.hasServiceDirectoryConfig()) return false; + if (hasServiceDirectoryConfig()) { + if (!getServiceDirectoryConfig().equals(other.getServiceDirectoryConfig())) return false; + } + if (getIgnoreUnknownFields() != other.getIgnoreUnknownFields()) return false; + if (!getUrl().equals(other.getUrl())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OPEN_API_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getOpenApiSchema().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasApiAuthentication()) { + hash = (37 * hash) + API_AUTHENTICATION_FIELD_NUMBER; + hash = (53 * hash) + getApiAuthentication().hashCode(); + } + if (hasTlsConfig()) { + hash = (37 * hash) + TLS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getTlsConfig().hashCode(); + } + if (hasServiceDirectoryConfig()) { + hash = (37 * hash) + SERVICE_DIRECTORY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getServiceDirectoryConfig().hashCode(); + } + hash = (37 * hash) + IGNORE_UNKNOWN_FIELDS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreUnknownFields()); + hash = (37 * hash) + URL_FIELD_NUMBER; + hash = (53 * hash) + getUrl().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.OpenApiTool parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OpenApiTool parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OpenApiTool parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OpenApiTool parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OpenApiTool parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OpenApiTool parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OpenApiTool parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OpenApiTool parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OpenApiTool parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OpenApiTool parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OpenApiTool parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OpenApiTool parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.OpenApiTool prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * A remote API tool defined by an OpenAPI schema.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.OpenApiTool} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.OpenApiTool) + com.google.cloud.ces.v1.OpenApiToolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.OpenApiToolProto + .internal_static_google_cloud_ces_v1_OpenApiTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.OpenApiToolProto + .internal_static_google_cloud_ces_v1_OpenApiTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.OpenApiTool.class, + com.google.cloud.ces.v1.OpenApiTool.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.OpenApiTool.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetApiAuthenticationFieldBuilder(); + internalGetTlsConfigFieldBuilder(); + internalGetServiceDirectoryConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + openApiSchema_ = ""; + name_ = ""; + description_ = ""; + apiAuthentication_ = null; + if (apiAuthenticationBuilder_ != null) { + apiAuthenticationBuilder_.dispose(); + apiAuthenticationBuilder_ = null; + } + tlsConfig_ = null; + if (tlsConfigBuilder_ != null) { + tlsConfigBuilder_.dispose(); + tlsConfigBuilder_ = null; + } + serviceDirectoryConfig_ = null; + if (serviceDirectoryConfigBuilder_ != null) { + serviceDirectoryConfigBuilder_.dispose(); + serviceDirectoryConfigBuilder_ = null; + } + ignoreUnknownFields_ = false; + url_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.OpenApiToolProto + .internal_static_google_cloud_ces_v1_OpenApiTool_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OpenApiTool getDefaultInstanceForType() { + return com.google.cloud.ces.v1.OpenApiTool.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.OpenApiTool build() { + com.google.cloud.ces.v1.OpenApiTool result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OpenApiTool buildPartial() { + com.google.cloud.ces.v1.OpenApiTool result = new com.google.cloud.ces.v1.OpenApiTool(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.OpenApiTool result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.openApiSchema_ = openApiSchema_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.apiAuthentication_ = + apiAuthenticationBuilder_ == null + ? apiAuthentication_ + : apiAuthenticationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.tlsConfig_ = tlsConfigBuilder_ == null ? tlsConfig_ : tlsConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.serviceDirectoryConfig_ = + serviceDirectoryConfigBuilder_ == null + ? serviceDirectoryConfig_ + : serviceDirectoryConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.ignoreUnknownFields_ = ignoreUnknownFields_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.url_ = url_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.OpenApiTool) { + return mergeFrom((com.google.cloud.ces.v1.OpenApiTool) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.OpenApiTool other) { + if (other == com.google.cloud.ces.v1.OpenApiTool.getDefaultInstance()) return this; + if (!other.getOpenApiSchema().isEmpty()) { + openApiSchema_ = other.openApiSchema_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasApiAuthentication()) { + mergeApiAuthentication(other.getApiAuthentication()); + } + if (other.hasTlsConfig()) { + mergeTlsConfig(other.getTlsConfig()); + } + if (other.hasServiceDirectoryConfig()) { + mergeServiceDirectoryConfig(other.getServiceDirectoryConfig()); + } + if (other.getIgnoreUnknownFields() != false) { + setIgnoreUnknownFields(other.getIgnoreUnknownFields()); + } + if (!other.getUrl().isEmpty()) { + url_ = other.url_; + bitField0_ |= 0x00000080; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + openApiSchema_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetApiAuthenticationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetTlsConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetServiceDirectoryConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + ignoreUnknownFields_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 66: + { + url_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object openApiSchema_ = ""; + + /** + * + * + *
      +     * Required. The OpenAPI schema in JSON or YAML format.
      +     * 
      + * + * string open_api_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The openApiSchema. + */ + public java.lang.String getOpenApiSchema() { + java.lang.Object ref = openApiSchema_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + openApiSchema_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The OpenAPI schema in JSON or YAML format.
      +     * 
      + * + * string open_api_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for openApiSchema. + */ + public com.google.protobuf.ByteString getOpenApiSchemaBytes() { + java.lang.Object ref = openApiSchema_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + openApiSchema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The OpenAPI schema in JSON or YAML format.
      +     * 
      + * + * string open_api_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The openApiSchema to set. + * @return This builder for chaining. + */ + public Builder setOpenApiSchema(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + openApiSchema_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The OpenAPI schema in JSON or YAML format.
      +     * 
      + * + * string open_api_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearOpenApiSchema() { + openApiSchema_ = getDefaultInstance().getOpenApiSchema(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The OpenAPI schema in JSON or YAML format.
      +     * 
      + * + * string open_api_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for openApiSchema to set. + * @return This builder for chaining. + */ + public Builder setOpenApiSchemaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + openApiSchema_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Optional. The name of the tool. If not provided, the name of the tool will
      +     * be derived from the OpenAPI schema, from `operation.operationId`.
      +     * 
      + * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The name of the tool. If not provided, the name of the tool will
      +     * be derived from the OpenAPI schema, from `operation.operationId`.
      +     * 
      + * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The name of the tool. If not provided, the name of the tool will
      +     * be derived from the OpenAPI schema, from `operation.operationId`.
      +     * 
      + * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The name of the tool. If not provided, the name of the tool will
      +     * be derived from the OpenAPI schema, from `operation.operationId`.
      +     * 
      + * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The name of the tool. If not provided, the name of the tool will
      +     * be derived from the OpenAPI schema, from `operation.operationId`.
      +     * 
      + * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
      +     * Optional. The description of the tool. If not provided, the description of
      +     * the tool will be derived from the OpenAPI schema, from
      +     * `operation.description` or `operation.summary`.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The description of the tool. If not provided, the description of
      +     * the tool will be derived from the OpenAPI schema, from
      +     * `operation.description` or `operation.summary`.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The description of the tool. If not provided, the description of
      +     * the tool will be derived from the OpenAPI schema, from
      +     * `operation.description` or `operation.summary`.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The description of the tool. If not provided, the description of
      +     * the tool will be derived from the OpenAPI schema, from
      +     * `operation.description` or `operation.summary`.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The description of the tool. If not provided, the description of
      +     * the tool will be derived from the OpenAPI schema, from
      +     * `operation.description` or `operation.summary`.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.ApiAuthentication apiAuthentication_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ApiAuthentication, + com.google.cloud.ces.v1.ApiAuthentication.Builder, + com.google.cloud.ces.v1.ApiAuthenticationOrBuilder> + apiAuthenticationBuilder_; + + /** + * + * + *
      +     * Optional. Authentication information required by the API.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiAuthentication field is set. + */ + public boolean hasApiAuthentication() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +     * Optional. Authentication information required by the API.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiAuthentication. + */ + public com.google.cloud.ces.v1.ApiAuthentication getApiAuthentication() { + if (apiAuthenticationBuilder_ == null) { + return apiAuthentication_ == null + ? com.google.cloud.ces.v1.ApiAuthentication.getDefaultInstance() + : apiAuthentication_; + } else { + return apiAuthenticationBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Authentication information required by the API.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiAuthentication(com.google.cloud.ces.v1.ApiAuthentication value) { + if (apiAuthenticationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + apiAuthentication_ = value; + } else { + apiAuthenticationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Authentication information required by the API.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiAuthentication( + com.google.cloud.ces.v1.ApiAuthentication.Builder builderForValue) { + if (apiAuthenticationBuilder_ == null) { + apiAuthentication_ = builderForValue.build(); + } else { + apiAuthenticationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Authentication information required by the API.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeApiAuthentication(com.google.cloud.ces.v1.ApiAuthentication value) { + if (apiAuthenticationBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && apiAuthentication_ != null + && apiAuthentication_ + != com.google.cloud.ces.v1.ApiAuthentication.getDefaultInstance()) { + getApiAuthenticationBuilder().mergeFrom(value); + } else { + apiAuthentication_ = value; + } + } else { + apiAuthenticationBuilder_.mergeFrom(value); + } + if (apiAuthentication_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Authentication information required by the API.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApiAuthentication() { + bitField0_ = (bitField0_ & ~0x00000008); + apiAuthentication_ = null; + if (apiAuthenticationBuilder_ != null) { + apiAuthenticationBuilder_.dispose(); + apiAuthenticationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Authentication information required by the API.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ApiAuthentication.Builder getApiAuthenticationBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetApiAuthenticationFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Authentication information required by the API.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ApiAuthenticationOrBuilder getApiAuthenticationOrBuilder() { + if (apiAuthenticationBuilder_ != null) { + return apiAuthenticationBuilder_.getMessageOrBuilder(); + } else { + return apiAuthentication_ == null + ? com.google.cloud.ces.v1.ApiAuthentication.getDefaultInstance() + : apiAuthentication_; + } + } + + /** + * + * + *
      +     * Optional. Authentication information required by the API.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ApiAuthentication, + com.google.cloud.ces.v1.ApiAuthentication.Builder, + com.google.cloud.ces.v1.ApiAuthenticationOrBuilder> + internalGetApiAuthenticationFieldBuilder() { + if (apiAuthenticationBuilder_ == null) { + apiAuthenticationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ApiAuthentication, + com.google.cloud.ces.v1.ApiAuthentication.Builder, + com.google.cloud.ces.v1.ApiAuthenticationOrBuilder>( + getApiAuthentication(), getParentForChildren(), isClean()); + apiAuthentication_ = null; + } + return apiAuthenticationBuilder_; + } + + private com.google.cloud.ces.v1.TlsConfig tlsConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.TlsConfig, + com.google.cloud.ces.v1.TlsConfig.Builder, + com.google.cloud.ces.v1.TlsConfigOrBuilder> + tlsConfigBuilder_; + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * that the client will trust.
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tlsConfig field is set. + */ + public boolean hasTlsConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * that the client will trust.
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tlsConfig. + */ + public com.google.cloud.ces.v1.TlsConfig getTlsConfig() { + if (tlsConfigBuilder_ == null) { + return tlsConfig_ == null + ? com.google.cloud.ces.v1.TlsConfig.getDefaultInstance() + : tlsConfig_; + } else { + return tlsConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * that the client will trust.
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTlsConfig(com.google.cloud.ces.v1.TlsConfig value) { + if (tlsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tlsConfig_ = value; + } else { + tlsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * that the client will trust.
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTlsConfig(com.google.cloud.ces.v1.TlsConfig.Builder builderForValue) { + if (tlsConfigBuilder_ == null) { + tlsConfig_ = builderForValue.build(); + } else { + tlsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * that the client will trust.
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeTlsConfig(com.google.cloud.ces.v1.TlsConfig value) { + if (tlsConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && tlsConfig_ != null + && tlsConfig_ != com.google.cloud.ces.v1.TlsConfig.getDefaultInstance()) { + getTlsConfigBuilder().mergeFrom(value); + } else { + tlsConfig_ = value; + } + } else { + tlsConfigBuilder_.mergeFrom(value); + } + if (tlsConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * that the client will trust.
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTlsConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + tlsConfig_ = null; + if (tlsConfigBuilder_ != null) { + tlsConfigBuilder_.dispose(); + tlsConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * that the client will trust.
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.TlsConfig.Builder getTlsConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetTlsConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * that the client will trust.
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.TlsConfigOrBuilder getTlsConfigOrBuilder() { + if (tlsConfigBuilder_ != null) { + return tlsConfigBuilder_.getMessageOrBuilder(); + } else { + return tlsConfig_ == null + ? com.google.cloud.ces.v1.TlsConfig.getDefaultInstance() + : tlsConfig_; + } + } + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * that the client will trust.
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.TlsConfig, + com.google.cloud.ces.v1.TlsConfig.Builder, + com.google.cloud.ces.v1.TlsConfigOrBuilder> + internalGetTlsConfigFieldBuilder() { + if (tlsConfigBuilder_ == null) { + tlsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.TlsConfig, + com.google.cloud.ces.v1.TlsConfig.Builder, + com.google.cloud.ces.v1.TlsConfigOrBuilder>( + getTlsConfig(), getParentForChildren(), isClean()); + tlsConfig_ = null; + } + return tlsConfigBuilder_; + } + + private com.google.cloud.ces.v1.ServiceDirectoryConfig serviceDirectoryConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ServiceDirectoryConfig, + com.google.cloud.ces.v1.ServiceDirectoryConfig.Builder, + com.google.cloud.ces.v1.ServiceDirectoryConfigOrBuilder> + serviceDirectoryConfigBuilder_; + + /** + * + * + *
      +     * Optional. Service Directory configuration.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceDirectoryConfig field is set. + */ + public boolean hasServiceDirectoryConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +     * Optional. Service Directory configuration.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceDirectoryConfig. + */ + public com.google.cloud.ces.v1.ServiceDirectoryConfig getServiceDirectoryConfig() { + if (serviceDirectoryConfigBuilder_ == null) { + return serviceDirectoryConfig_ == null + ? com.google.cloud.ces.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } else { + return serviceDirectoryConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Service Directory configuration.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setServiceDirectoryConfig(com.google.cloud.ces.v1.ServiceDirectoryConfig value) { + if (serviceDirectoryConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serviceDirectoryConfig_ = value; + } else { + serviceDirectoryConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Service Directory configuration.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setServiceDirectoryConfig( + com.google.cloud.ces.v1.ServiceDirectoryConfig.Builder builderForValue) { + if (serviceDirectoryConfigBuilder_ == null) { + serviceDirectoryConfig_ = builderForValue.build(); + } else { + serviceDirectoryConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Service Directory configuration.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeServiceDirectoryConfig( + com.google.cloud.ces.v1.ServiceDirectoryConfig value) { + if (serviceDirectoryConfigBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && serviceDirectoryConfig_ != null + && serviceDirectoryConfig_ + != com.google.cloud.ces.v1.ServiceDirectoryConfig.getDefaultInstance()) { + getServiceDirectoryConfigBuilder().mergeFrom(value); + } else { + serviceDirectoryConfig_ = value; + } + } else { + serviceDirectoryConfigBuilder_.mergeFrom(value); + } + if (serviceDirectoryConfig_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Service Directory configuration.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearServiceDirectoryConfig() { + bitField0_ = (bitField0_ & ~0x00000020); + serviceDirectoryConfig_ = null; + if (serviceDirectoryConfigBuilder_ != null) { + serviceDirectoryConfigBuilder_.dispose(); + serviceDirectoryConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Service Directory configuration.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ServiceDirectoryConfig.Builder + getServiceDirectoryConfigBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetServiceDirectoryConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Service Directory configuration.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ServiceDirectoryConfigOrBuilder + getServiceDirectoryConfigOrBuilder() { + if (serviceDirectoryConfigBuilder_ != null) { + return serviceDirectoryConfigBuilder_.getMessageOrBuilder(); + } else { + return serviceDirectoryConfig_ == null + ? com.google.cloud.ces.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } + } + + /** + * + * + *
      +     * Optional. Service Directory configuration.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ServiceDirectoryConfig, + com.google.cloud.ces.v1.ServiceDirectoryConfig.Builder, + com.google.cloud.ces.v1.ServiceDirectoryConfigOrBuilder> + internalGetServiceDirectoryConfigFieldBuilder() { + if (serviceDirectoryConfigBuilder_ == null) { + serviceDirectoryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ServiceDirectoryConfig, + com.google.cloud.ces.v1.ServiceDirectoryConfig.Builder, + com.google.cloud.ces.v1.ServiceDirectoryConfigOrBuilder>( + getServiceDirectoryConfig(), getParentForChildren(), isClean()); + serviceDirectoryConfig_ = null; + } + return serviceDirectoryConfigBuilder_; + } + + private boolean ignoreUnknownFields_; + + /** + * + * + *
      +     * Optional. If true, the agent will ignore unknown fields in the API
      +     * response.
      +     * 
      + * + * bool ignore_unknown_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ignoreUnknownFields. + */ + @java.lang.Override + public boolean getIgnoreUnknownFields() { + return ignoreUnknownFields_; + } + + /** + * + * + *
      +     * Optional. If true, the agent will ignore unknown fields in the API
      +     * response.
      +     * 
      + * + * bool ignore_unknown_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The ignoreUnknownFields to set. + * @return This builder for chaining. + */ + public Builder setIgnoreUnknownFields(boolean value) { + + ignoreUnknownFields_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. If true, the agent will ignore unknown fields in the API
      +     * response.
      +     * 
      + * + * bool ignore_unknown_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIgnoreUnknownFields() { + bitField0_ = (bitField0_ & ~0x00000040); + ignoreUnknownFields_ = false; + onChanged(); + return this; + } + + private java.lang.Object url_ = ""; + + /** + * + * + *
      +     * Optional. The server URL of the Open API schema.
      +     * This field is only set in tools in the environment dependencies during the
      +     * export process if the schema contains a server url. During the import
      +     * process, if this url is present in the environment dependencies and the
      +     * schema has the $env_var placeholder, it will replace the placeholder in the
      +     * schema.
      +     * 
      + * + * string url = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The url. + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The server URL of the Open API schema.
      +     * This field is only set in tools in the environment dependencies during the
      +     * export process if the schema contains a server url. During the import
      +     * process, if this url is present in the environment dependencies and the
      +     * schema has the $env_var placeholder, it will replace the placeholder in the
      +     * schema.
      +     * 
      + * + * string url = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for url. + */ + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The server URL of the Open API schema.
      +     * This field is only set in tools in the environment dependencies during the
      +     * export process if the schema contains a server url. During the import
      +     * process, if this url is present in the environment dependencies and the
      +     * schema has the $env_var placeholder, it will replace the placeholder in the
      +     * schema.
      +     * 
      + * + * string url = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The url to set. + * @return This builder for chaining. + */ + public Builder setUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + url_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The server URL of the Open API schema.
      +     * This field is only set in tools in the environment dependencies during the
      +     * export process if the schema contains a server url. During the import
      +     * process, if this url is present in the environment dependencies and the
      +     * schema has the $env_var placeholder, it will replace the placeholder in the
      +     * schema.
      +     * 
      + * + * string url = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUrl() { + url_ = getDefaultInstance().getUrl(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The server URL of the Open API schema.
      +     * This field is only set in tools in the environment dependencies during the
      +     * export process if the schema contains a server url. During the import
      +     * process, if this url is present in the environment dependencies and the
      +     * schema has the $env_var placeholder, it will replace the placeholder in the
      +     * schema.
      +     * 
      + * + * string url = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for url to set. + * @return This builder for chaining. + */ + public Builder setUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.OpenApiTool) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.OpenApiTool) + private static final com.google.cloud.ces.v1.OpenApiTool DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.OpenApiTool(); + } + + public static com.google.cloud.ces.v1.OpenApiTool getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OpenApiTool parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OpenApiTool getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OpenApiToolOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OpenApiToolOrBuilder.java new file mode 100644 index 000000000000..ddb7a2b5bb5e --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OpenApiToolOrBuilder.java @@ -0,0 +1,291 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/open_api_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface OpenApiToolOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.OpenApiTool) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The OpenAPI schema in JSON or YAML format.
      +   * 
      + * + * string open_api_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The openApiSchema. + */ + java.lang.String getOpenApiSchema(); + + /** + * + * + *
      +   * Required. The OpenAPI schema in JSON or YAML format.
      +   * 
      + * + * string open_api_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for openApiSchema. + */ + com.google.protobuf.ByteString getOpenApiSchemaBytes(); + + /** + * + * + *
      +   * Optional. The name of the tool. If not provided, the name of the tool will
      +   * be derived from the OpenAPI schema, from `operation.operationId`.
      +   * 
      + * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Optional. The name of the tool. If not provided, the name of the tool will
      +   * be derived from the OpenAPI schema, from `operation.operationId`.
      +   * 
      + * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Optional. The description of the tool. If not provided, the description of
      +   * the tool will be derived from the OpenAPI schema, from
      +   * `operation.description` or `operation.summary`.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
      +   * Optional. The description of the tool. If not provided, the description of
      +   * the tool will be derived from the OpenAPI schema, from
      +   * `operation.description` or `operation.summary`.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
      +   * Optional. Authentication information required by the API.
      +   * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiAuthentication field is set. + */ + boolean hasApiAuthentication(); + + /** + * + * + *
      +   * Optional. Authentication information required by the API.
      +   * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiAuthentication. + */ + com.google.cloud.ces.v1.ApiAuthentication getApiAuthentication(); + + /** + * + * + *
      +   * Optional. Authentication information required by the API.
      +   * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ApiAuthenticationOrBuilder getApiAuthenticationOrBuilder(); + + /** + * + * + *
      +   * Optional. The TLS configuration. Includes the custom server certificates
      +   * that the client will trust.
      +   * 
      + * + * .google.cloud.ces.v1.TlsConfig tls_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tlsConfig field is set. + */ + boolean hasTlsConfig(); + + /** + * + * + *
      +   * Optional. The TLS configuration. Includes the custom server certificates
      +   * that the client will trust.
      +   * 
      + * + * .google.cloud.ces.v1.TlsConfig tls_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tlsConfig. + */ + com.google.cloud.ces.v1.TlsConfig getTlsConfig(); + + /** + * + * + *
      +   * Optional. The TLS configuration. Includes the custom server certificates
      +   * that the client will trust.
      +   * 
      + * + * .google.cloud.ces.v1.TlsConfig tls_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.TlsConfigOrBuilder getTlsConfigOrBuilder(); + + /** + * + * + *
      +   * Optional. Service Directory configuration.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceDirectoryConfig field is set. + */ + boolean hasServiceDirectoryConfig(); + + /** + * + * + *
      +   * Optional. Service Directory configuration.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceDirectoryConfig. + */ + com.google.cloud.ces.v1.ServiceDirectoryConfig getServiceDirectoryConfig(); + + /** + * + * + *
      +   * Optional. Service Directory configuration.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ServiceDirectoryConfigOrBuilder getServiceDirectoryConfigOrBuilder(); + + /** + * + * + *
      +   * Optional. If true, the agent will ignore unknown fields in the API
      +   * response.
      +   * 
      + * + * bool ignore_unknown_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ignoreUnknownFields. + */ + boolean getIgnoreUnknownFields(); + + /** + * + * + *
      +   * Optional. The server URL of the Open API schema.
      +   * This field is only set in tools in the environment dependencies during the
      +   * export process if the schema contains a server url. During the import
      +   * process, if this url is present in the environment dependencies and the
      +   * schema has the $env_var placeholder, it will replace the placeholder in the
      +   * schema.
      +   * 
      + * + * string url = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The url. + */ + java.lang.String getUrl(); + + /** + * + * + *
      +   * Optional. The server URL of the Open API schema.
      +   * This field is only set in tools in the environment dependencies during the
      +   * export process if the schema contains a server url. During the import
      +   * process, if this url is present in the environment dependencies and the
      +   * schema has the $env_var placeholder, it will replace the placeholder in the
      +   * schema.
      +   * 
      + * + * string url = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for url. + */ + com.google.protobuf.ByteString getUrlBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OpenApiToolProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OpenApiToolProto.java new file mode 100644 index 000000000000..64326bd4308f --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OpenApiToolProto.java @@ -0,0 +1,109 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/open_api_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class OpenApiToolProto extends com.google.protobuf.GeneratedFile { + private OpenApiToolProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OpenApiToolProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_OpenApiTool_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_OpenApiTool_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "\'google/cloud/ces/v1/open_api_tool.prot" + + "o\022\023google.cloud.ces.v1\032\037google/api/field" + + "_behavior.proto\032\036google/cloud/ces/v1/auth.proto\032" + + " google/cloud/ces/v1/common.proto\"\344\002\n" + + "\013OpenApiTool\022\034\n" + + "\017open_api_schema\030\001 \001(\tB\003\340A\002\022\021\n" + + "\004name\030\002 \001(\tB\003\340A\001\022\030\n" + + "\013description\030\003 \001(\tB\003\340A\001\022G\n" + + "\022api_authentication\030\004 \001(\013" + + "2&.google.cloud.ces.v1.ApiAuthenticationB\003\340A\001\0227\n\n" + + "tls_config\030\005 \001(\0132\036.google.cloud.ces.v1.TlsConfigB\003\340A\001\022R\n" + + "\030service_directory_config\030\006" + + " \001(\0132+.google.cloud.ces.v1.ServiceDirectoryConfigB\003\340A\001\022\"\n" + + "\025ignore_unknown_fields\030\007 \001(\010B\003\340A\001\022\020\n" + + "\003url\030\010 \001(\tB\003\340A\001BX\n" + + "\027com.google.cloud.ces.v1B\020OpenApiToolProtoP\001Z)cloud.google.com/go/ces/apiv1/c" + + "espb;cespbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.ces.v1.AuthProto.getDescriptor(), + com.google.cloud.ces.v1.CommonProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_OpenApiTool_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_OpenApiTool_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_OpenApiTool_descriptor, + new java.lang.String[] { + "OpenApiSchema", + "Name", + "Description", + "ApiAuthentication", + "TlsConfig", + "ServiceDirectoryConfig", + "IgnoreUnknownFields", + "Url", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.ces.v1.AuthProto.getDescriptor(); + com.google.cloud.ces.v1.CommonProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OpenApiToolset.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OpenApiToolset.java new file mode 100644 index 000000000000..076675dce23c --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OpenApiToolset.java @@ -0,0 +1,1856 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/open_api_toolset.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * A toolset that contains a list of tools that are defined by an OpenAPI
      + * schema.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.OpenApiToolset} + */ +@com.google.protobuf.Generated +public final class OpenApiToolset extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.OpenApiToolset) + OpenApiToolsetOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OpenApiToolset"); + } + + // Use OpenApiToolset.newBuilder() to construct. + private OpenApiToolset(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OpenApiToolset() { + openApiSchema_ = ""; + url_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.OpenApiToolsetProto + .internal_static_google_cloud_ces_v1_OpenApiToolset_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.OpenApiToolsetProto + .internal_static_google_cloud_ces_v1_OpenApiToolset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.OpenApiToolset.class, + com.google.cloud.ces.v1.OpenApiToolset.Builder.class); + } + + private int bitField0_; + public static final int OPEN_API_SCHEMA_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object openApiSchema_ = ""; + + /** + * + * + *
      +   * Required. The OpenAPI schema of the toolset.
      +   * 
      + * + * string open_api_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The openApiSchema. + */ + @java.lang.Override + public java.lang.String getOpenApiSchema() { + java.lang.Object ref = openApiSchema_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + openApiSchema_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The OpenAPI schema of the toolset.
      +   * 
      + * + * string open_api_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for openApiSchema. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOpenApiSchemaBytes() { + java.lang.Object ref = openApiSchema_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + openApiSchema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int API_AUTHENTICATION_FIELD_NUMBER = 2; + private com.google.cloud.ces.v1.ApiAuthentication apiAuthentication_; + + /** + * + * + *
      +   * Optional. Authentication information required by the API.
      +   * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiAuthentication field is set. + */ + @java.lang.Override + public boolean hasApiAuthentication() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Optional. Authentication information required by the API.
      +   * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiAuthentication. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ApiAuthentication getApiAuthentication() { + return apiAuthentication_ == null + ? com.google.cloud.ces.v1.ApiAuthentication.getDefaultInstance() + : apiAuthentication_; + } + + /** + * + * + *
      +   * Optional. Authentication information required by the API.
      +   * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ApiAuthenticationOrBuilder getApiAuthenticationOrBuilder() { + return apiAuthentication_ == null + ? com.google.cloud.ces.v1.ApiAuthentication.getDefaultInstance() + : apiAuthentication_; + } + + public static final int TLS_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.ces.v1.TlsConfig tlsConfig_; + + /** + * + * + *
      +   * Optional. The TLS configuration. Includes the custom server certificates
      +   * 
      + * + * .google.cloud.ces.v1.TlsConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tlsConfig field is set. + */ + @java.lang.Override + public boolean hasTlsConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Optional. The TLS configuration. Includes the custom server certificates
      +   * 
      + * + * .google.cloud.ces.v1.TlsConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tlsConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.TlsConfig getTlsConfig() { + return tlsConfig_ == null ? com.google.cloud.ces.v1.TlsConfig.getDefaultInstance() : tlsConfig_; + } + + /** + * + * + *
      +   * Optional. The TLS configuration. Includes the custom server certificates
      +   * 
      + * + * .google.cloud.ces.v1.TlsConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.TlsConfigOrBuilder getTlsConfigOrBuilder() { + return tlsConfig_ == null ? com.google.cloud.ces.v1.TlsConfig.getDefaultInstance() : tlsConfig_; + } + + public static final int SERVICE_DIRECTORY_CONFIG_FIELD_NUMBER = 4; + private com.google.cloud.ces.v1.ServiceDirectoryConfig serviceDirectoryConfig_; + + /** + * + * + *
      +   * Optional. Service Directory configuration.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceDirectoryConfig field is set. + */ + @java.lang.Override + public boolean hasServiceDirectoryConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * Optional. Service Directory configuration.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceDirectoryConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ServiceDirectoryConfig getServiceDirectoryConfig() { + return serviceDirectoryConfig_ == null + ? com.google.cloud.ces.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } + + /** + * + * + *
      +   * Optional. Service Directory configuration.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ServiceDirectoryConfigOrBuilder + getServiceDirectoryConfigOrBuilder() { + return serviceDirectoryConfig_ == null + ? com.google.cloud.ces.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } + + public static final int IGNORE_UNKNOWN_FIELDS_FIELD_NUMBER = 5; + private boolean ignoreUnknownFields_ = false; + + /** + * + * + *
      +   * Optional. If true, the agent will ignore unknown fields in the API response
      +   * for all operations defined in the OpenAPI schema.
      +   * 
      + * + * bool ignore_unknown_fields = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ignoreUnknownFields. + */ + @java.lang.Override + public boolean getIgnoreUnknownFields() { + return ignoreUnknownFields_; + } + + public static final int URL_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object url_ = ""; + + /** + * + * + *
      +   * Optional. The server URL of the Open API schema.
      +   * This field is only set in toolsets in the environment dependencies during
      +   * the export process if the schema contains a server url. During the import
      +   * process, if this url is present in the environment dependencies and the
      +   * schema has the $env_var placeholder, it will replace the placeholder in the
      +   * schema.
      +   * 
      + * + * string url = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The url. + */ + @java.lang.Override + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The server URL of the Open API schema.
      +   * This field is only set in toolsets in the environment dependencies during
      +   * the export process if the schema contains a server url. During the import
      +   * process, if this url is present in the environment dependencies and the
      +   * schema has the $env_var placeholder, it will replace the placeholder in the
      +   * schema.
      +   * 
      + * + * string url = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for url. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(openApiSchema_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, openApiSchema_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getApiAuthentication()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getTlsConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getServiceDirectoryConfig()); + } + if (ignoreUnknownFields_ != false) { + output.writeBool(5, ignoreUnknownFields_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, url_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(openApiSchema_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, openApiSchema_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getApiAuthentication()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTlsConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getServiceDirectoryConfig()); + } + if (ignoreUnknownFields_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, ignoreUnknownFields_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, url_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.OpenApiToolset)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.OpenApiToolset other = (com.google.cloud.ces.v1.OpenApiToolset) obj; + + if (!getOpenApiSchema().equals(other.getOpenApiSchema())) return false; + if (hasApiAuthentication() != other.hasApiAuthentication()) return false; + if (hasApiAuthentication()) { + if (!getApiAuthentication().equals(other.getApiAuthentication())) return false; + } + if (hasTlsConfig() != other.hasTlsConfig()) return false; + if (hasTlsConfig()) { + if (!getTlsConfig().equals(other.getTlsConfig())) return false; + } + if (hasServiceDirectoryConfig() != other.hasServiceDirectoryConfig()) return false; + if (hasServiceDirectoryConfig()) { + if (!getServiceDirectoryConfig().equals(other.getServiceDirectoryConfig())) return false; + } + if (getIgnoreUnknownFields() != other.getIgnoreUnknownFields()) return false; + if (!getUrl().equals(other.getUrl())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OPEN_API_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getOpenApiSchema().hashCode(); + if (hasApiAuthentication()) { + hash = (37 * hash) + API_AUTHENTICATION_FIELD_NUMBER; + hash = (53 * hash) + getApiAuthentication().hashCode(); + } + if (hasTlsConfig()) { + hash = (37 * hash) + TLS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getTlsConfig().hashCode(); + } + if (hasServiceDirectoryConfig()) { + hash = (37 * hash) + SERVICE_DIRECTORY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getServiceDirectoryConfig().hashCode(); + } + hash = (37 * hash) + IGNORE_UNKNOWN_FIELDS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreUnknownFields()); + hash = (37 * hash) + URL_FIELD_NUMBER; + hash = (53 * hash) + getUrl().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.OpenApiToolset parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OpenApiToolset parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OpenApiToolset parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OpenApiToolset parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OpenApiToolset parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OpenApiToolset parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OpenApiToolset parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OpenApiToolset parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OpenApiToolset parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OpenApiToolset parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OpenApiToolset parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OpenApiToolset parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.OpenApiToolset prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * A toolset that contains a list of tools that are defined by an OpenAPI
      +   * schema.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.OpenApiToolset} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.OpenApiToolset) + com.google.cloud.ces.v1.OpenApiToolsetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.OpenApiToolsetProto + .internal_static_google_cloud_ces_v1_OpenApiToolset_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.OpenApiToolsetProto + .internal_static_google_cloud_ces_v1_OpenApiToolset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.OpenApiToolset.class, + com.google.cloud.ces.v1.OpenApiToolset.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.OpenApiToolset.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetApiAuthenticationFieldBuilder(); + internalGetTlsConfigFieldBuilder(); + internalGetServiceDirectoryConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + openApiSchema_ = ""; + apiAuthentication_ = null; + if (apiAuthenticationBuilder_ != null) { + apiAuthenticationBuilder_.dispose(); + apiAuthenticationBuilder_ = null; + } + tlsConfig_ = null; + if (tlsConfigBuilder_ != null) { + tlsConfigBuilder_.dispose(); + tlsConfigBuilder_ = null; + } + serviceDirectoryConfig_ = null; + if (serviceDirectoryConfigBuilder_ != null) { + serviceDirectoryConfigBuilder_.dispose(); + serviceDirectoryConfigBuilder_ = null; + } + ignoreUnknownFields_ = false; + url_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.OpenApiToolsetProto + .internal_static_google_cloud_ces_v1_OpenApiToolset_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OpenApiToolset getDefaultInstanceForType() { + return com.google.cloud.ces.v1.OpenApiToolset.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.OpenApiToolset build() { + com.google.cloud.ces.v1.OpenApiToolset result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OpenApiToolset buildPartial() { + com.google.cloud.ces.v1.OpenApiToolset result = + new com.google.cloud.ces.v1.OpenApiToolset(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.OpenApiToolset result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.openApiSchema_ = openApiSchema_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.apiAuthentication_ = + apiAuthenticationBuilder_ == null + ? apiAuthentication_ + : apiAuthenticationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tlsConfig_ = tlsConfigBuilder_ == null ? tlsConfig_ : tlsConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.serviceDirectoryConfig_ = + serviceDirectoryConfigBuilder_ == null + ? serviceDirectoryConfig_ + : serviceDirectoryConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.ignoreUnknownFields_ = ignoreUnknownFields_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.url_ = url_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.OpenApiToolset) { + return mergeFrom((com.google.cloud.ces.v1.OpenApiToolset) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.OpenApiToolset other) { + if (other == com.google.cloud.ces.v1.OpenApiToolset.getDefaultInstance()) return this; + if (!other.getOpenApiSchema().isEmpty()) { + openApiSchema_ = other.openApiSchema_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasApiAuthentication()) { + mergeApiAuthentication(other.getApiAuthentication()); + } + if (other.hasTlsConfig()) { + mergeTlsConfig(other.getTlsConfig()); + } + if (other.hasServiceDirectoryConfig()) { + mergeServiceDirectoryConfig(other.getServiceDirectoryConfig()); + } + if (other.getIgnoreUnknownFields() != false) { + setIgnoreUnknownFields(other.getIgnoreUnknownFields()); + } + if (!other.getUrl().isEmpty()) { + url_ = other.url_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + openApiSchema_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetApiAuthenticationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetTlsConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetServiceDirectoryConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + ignoreUnknownFields_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + url_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object openApiSchema_ = ""; + + /** + * + * + *
      +     * Required. The OpenAPI schema of the toolset.
      +     * 
      + * + * string open_api_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The openApiSchema. + */ + public java.lang.String getOpenApiSchema() { + java.lang.Object ref = openApiSchema_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + openApiSchema_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The OpenAPI schema of the toolset.
      +     * 
      + * + * string open_api_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for openApiSchema. + */ + public com.google.protobuf.ByteString getOpenApiSchemaBytes() { + java.lang.Object ref = openApiSchema_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + openApiSchema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The OpenAPI schema of the toolset.
      +     * 
      + * + * string open_api_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The openApiSchema to set. + * @return This builder for chaining. + */ + public Builder setOpenApiSchema(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + openApiSchema_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The OpenAPI schema of the toolset.
      +     * 
      + * + * string open_api_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearOpenApiSchema() { + openApiSchema_ = getDefaultInstance().getOpenApiSchema(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The OpenAPI schema of the toolset.
      +     * 
      + * + * string open_api_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for openApiSchema to set. + * @return This builder for chaining. + */ + public Builder setOpenApiSchemaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + openApiSchema_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.ApiAuthentication apiAuthentication_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ApiAuthentication, + com.google.cloud.ces.v1.ApiAuthentication.Builder, + com.google.cloud.ces.v1.ApiAuthenticationOrBuilder> + apiAuthenticationBuilder_; + + /** + * + * + *
      +     * Optional. Authentication information required by the API.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiAuthentication field is set. + */ + public boolean hasApiAuthentication() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Optional. Authentication information required by the API.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiAuthentication. + */ + public com.google.cloud.ces.v1.ApiAuthentication getApiAuthentication() { + if (apiAuthenticationBuilder_ == null) { + return apiAuthentication_ == null + ? com.google.cloud.ces.v1.ApiAuthentication.getDefaultInstance() + : apiAuthentication_; + } else { + return apiAuthenticationBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Authentication information required by the API.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiAuthentication(com.google.cloud.ces.v1.ApiAuthentication value) { + if (apiAuthenticationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + apiAuthentication_ = value; + } else { + apiAuthenticationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Authentication information required by the API.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiAuthentication( + com.google.cloud.ces.v1.ApiAuthentication.Builder builderForValue) { + if (apiAuthenticationBuilder_ == null) { + apiAuthentication_ = builderForValue.build(); + } else { + apiAuthenticationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Authentication information required by the API.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeApiAuthentication(com.google.cloud.ces.v1.ApiAuthentication value) { + if (apiAuthenticationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && apiAuthentication_ != null + && apiAuthentication_ + != com.google.cloud.ces.v1.ApiAuthentication.getDefaultInstance()) { + getApiAuthenticationBuilder().mergeFrom(value); + } else { + apiAuthentication_ = value; + } + } else { + apiAuthenticationBuilder_.mergeFrom(value); + } + if (apiAuthentication_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Authentication information required by the API.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApiAuthentication() { + bitField0_ = (bitField0_ & ~0x00000002); + apiAuthentication_ = null; + if (apiAuthenticationBuilder_ != null) { + apiAuthenticationBuilder_.dispose(); + apiAuthenticationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Authentication information required by the API.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ApiAuthentication.Builder getApiAuthenticationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetApiAuthenticationFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Authentication information required by the API.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ApiAuthenticationOrBuilder getApiAuthenticationOrBuilder() { + if (apiAuthenticationBuilder_ != null) { + return apiAuthenticationBuilder_.getMessageOrBuilder(); + } else { + return apiAuthentication_ == null + ? com.google.cloud.ces.v1.ApiAuthentication.getDefaultInstance() + : apiAuthentication_; + } + } + + /** + * + * + *
      +     * Optional. Authentication information required by the API.
      +     * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ApiAuthentication, + com.google.cloud.ces.v1.ApiAuthentication.Builder, + com.google.cloud.ces.v1.ApiAuthenticationOrBuilder> + internalGetApiAuthenticationFieldBuilder() { + if (apiAuthenticationBuilder_ == null) { + apiAuthenticationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ApiAuthentication, + com.google.cloud.ces.v1.ApiAuthentication.Builder, + com.google.cloud.ces.v1.ApiAuthenticationOrBuilder>( + getApiAuthentication(), getParentForChildren(), isClean()); + apiAuthentication_ = null; + } + return apiAuthenticationBuilder_; + } + + private com.google.cloud.ces.v1.TlsConfig tlsConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.TlsConfig, + com.google.cloud.ces.v1.TlsConfig.Builder, + com.google.cloud.ces.v1.TlsConfigOrBuilder> + tlsConfigBuilder_; + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tlsConfig field is set. + */ + public boolean hasTlsConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tlsConfig. + */ + public com.google.cloud.ces.v1.TlsConfig getTlsConfig() { + if (tlsConfigBuilder_ == null) { + return tlsConfig_ == null + ? com.google.cloud.ces.v1.TlsConfig.getDefaultInstance() + : tlsConfig_; + } else { + return tlsConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTlsConfig(com.google.cloud.ces.v1.TlsConfig value) { + if (tlsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tlsConfig_ = value; + } else { + tlsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTlsConfig(com.google.cloud.ces.v1.TlsConfig.Builder builderForValue) { + if (tlsConfigBuilder_ == null) { + tlsConfig_ = builderForValue.build(); + } else { + tlsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeTlsConfig(com.google.cloud.ces.v1.TlsConfig value) { + if (tlsConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && tlsConfig_ != null + && tlsConfig_ != com.google.cloud.ces.v1.TlsConfig.getDefaultInstance()) { + getTlsConfigBuilder().mergeFrom(value); + } else { + tlsConfig_ = value; + } + } else { + tlsConfigBuilder_.mergeFrom(value); + } + if (tlsConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTlsConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + tlsConfig_ = null; + if (tlsConfigBuilder_ != null) { + tlsConfigBuilder_.dispose(); + tlsConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.TlsConfig.Builder getTlsConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetTlsConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.TlsConfigOrBuilder getTlsConfigOrBuilder() { + if (tlsConfigBuilder_ != null) { + return tlsConfigBuilder_.getMessageOrBuilder(); + } else { + return tlsConfig_ == null + ? com.google.cloud.ces.v1.TlsConfig.getDefaultInstance() + : tlsConfig_; + } + } + + /** + * + * + *
      +     * Optional. The TLS configuration. Includes the custom server certificates
      +     * 
      + * + * + * .google.cloud.ces.v1.TlsConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.TlsConfig, + com.google.cloud.ces.v1.TlsConfig.Builder, + com.google.cloud.ces.v1.TlsConfigOrBuilder> + internalGetTlsConfigFieldBuilder() { + if (tlsConfigBuilder_ == null) { + tlsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.TlsConfig, + com.google.cloud.ces.v1.TlsConfig.Builder, + com.google.cloud.ces.v1.TlsConfigOrBuilder>( + getTlsConfig(), getParentForChildren(), isClean()); + tlsConfig_ = null; + } + return tlsConfigBuilder_; + } + + private com.google.cloud.ces.v1.ServiceDirectoryConfig serviceDirectoryConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ServiceDirectoryConfig, + com.google.cloud.ces.v1.ServiceDirectoryConfig.Builder, + com.google.cloud.ces.v1.ServiceDirectoryConfigOrBuilder> + serviceDirectoryConfigBuilder_; + + /** + * + * + *
      +     * Optional. Service Directory configuration.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceDirectoryConfig field is set. + */ + public boolean hasServiceDirectoryConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +     * Optional. Service Directory configuration.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceDirectoryConfig. + */ + public com.google.cloud.ces.v1.ServiceDirectoryConfig getServiceDirectoryConfig() { + if (serviceDirectoryConfigBuilder_ == null) { + return serviceDirectoryConfig_ == null + ? com.google.cloud.ces.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } else { + return serviceDirectoryConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Service Directory configuration.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setServiceDirectoryConfig(com.google.cloud.ces.v1.ServiceDirectoryConfig value) { + if (serviceDirectoryConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serviceDirectoryConfig_ = value; + } else { + serviceDirectoryConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Service Directory configuration.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setServiceDirectoryConfig( + com.google.cloud.ces.v1.ServiceDirectoryConfig.Builder builderForValue) { + if (serviceDirectoryConfigBuilder_ == null) { + serviceDirectoryConfig_ = builderForValue.build(); + } else { + serviceDirectoryConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Service Directory configuration.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeServiceDirectoryConfig( + com.google.cloud.ces.v1.ServiceDirectoryConfig value) { + if (serviceDirectoryConfigBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && serviceDirectoryConfig_ != null + && serviceDirectoryConfig_ + != com.google.cloud.ces.v1.ServiceDirectoryConfig.getDefaultInstance()) { + getServiceDirectoryConfigBuilder().mergeFrom(value); + } else { + serviceDirectoryConfig_ = value; + } + } else { + serviceDirectoryConfigBuilder_.mergeFrom(value); + } + if (serviceDirectoryConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Service Directory configuration.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearServiceDirectoryConfig() { + bitField0_ = (bitField0_ & ~0x00000008); + serviceDirectoryConfig_ = null; + if (serviceDirectoryConfigBuilder_ != null) { + serviceDirectoryConfigBuilder_.dispose(); + serviceDirectoryConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Service Directory configuration.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ServiceDirectoryConfig.Builder + getServiceDirectoryConfigBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetServiceDirectoryConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Service Directory configuration.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ServiceDirectoryConfigOrBuilder + getServiceDirectoryConfigOrBuilder() { + if (serviceDirectoryConfigBuilder_ != null) { + return serviceDirectoryConfigBuilder_.getMessageOrBuilder(); + } else { + return serviceDirectoryConfig_ == null + ? com.google.cloud.ces.v1.ServiceDirectoryConfig.getDefaultInstance() + : serviceDirectoryConfig_; + } + } + + /** + * + * + *
      +     * Optional. Service Directory configuration.
      +     * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ServiceDirectoryConfig, + com.google.cloud.ces.v1.ServiceDirectoryConfig.Builder, + com.google.cloud.ces.v1.ServiceDirectoryConfigOrBuilder> + internalGetServiceDirectoryConfigFieldBuilder() { + if (serviceDirectoryConfigBuilder_ == null) { + serviceDirectoryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ServiceDirectoryConfig, + com.google.cloud.ces.v1.ServiceDirectoryConfig.Builder, + com.google.cloud.ces.v1.ServiceDirectoryConfigOrBuilder>( + getServiceDirectoryConfig(), getParentForChildren(), isClean()); + serviceDirectoryConfig_ = null; + } + return serviceDirectoryConfigBuilder_; + } + + private boolean ignoreUnknownFields_; + + /** + * + * + *
      +     * Optional. If true, the agent will ignore unknown fields in the API response
      +     * for all operations defined in the OpenAPI schema.
      +     * 
      + * + * bool ignore_unknown_fields = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ignoreUnknownFields. + */ + @java.lang.Override + public boolean getIgnoreUnknownFields() { + return ignoreUnknownFields_; + } + + /** + * + * + *
      +     * Optional. If true, the agent will ignore unknown fields in the API response
      +     * for all operations defined in the OpenAPI schema.
      +     * 
      + * + * bool ignore_unknown_fields = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The ignoreUnknownFields to set. + * @return This builder for chaining. + */ + public Builder setIgnoreUnknownFields(boolean value) { + + ignoreUnknownFields_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. If true, the agent will ignore unknown fields in the API response
      +     * for all operations defined in the OpenAPI schema.
      +     * 
      + * + * bool ignore_unknown_fields = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIgnoreUnknownFields() { + bitField0_ = (bitField0_ & ~0x00000010); + ignoreUnknownFields_ = false; + onChanged(); + return this; + } + + private java.lang.Object url_ = ""; + + /** + * + * + *
      +     * Optional. The server URL of the Open API schema.
      +     * This field is only set in toolsets in the environment dependencies during
      +     * the export process if the schema contains a server url. During the import
      +     * process, if this url is present in the environment dependencies and the
      +     * schema has the $env_var placeholder, it will replace the placeholder in the
      +     * schema.
      +     * 
      + * + * string url = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The url. + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The server URL of the Open API schema.
      +     * This field is only set in toolsets in the environment dependencies during
      +     * the export process if the schema contains a server url. During the import
      +     * process, if this url is present in the environment dependencies and the
      +     * schema has the $env_var placeholder, it will replace the placeholder in the
      +     * schema.
      +     * 
      + * + * string url = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for url. + */ + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The server URL of the Open API schema.
      +     * This field is only set in toolsets in the environment dependencies during
      +     * the export process if the schema contains a server url. During the import
      +     * process, if this url is present in the environment dependencies and the
      +     * schema has the $env_var placeholder, it will replace the placeholder in the
      +     * schema.
      +     * 
      + * + * string url = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The url to set. + * @return This builder for chaining. + */ + public Builder setUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + url_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The server URL of the Open API schema.
      +     * This field is only set in toolsets in the environment dependencies during
      +     * the export process if the schema contains a server url. During the import
      +     * process, if this url is present in the environment dependencies and the
      +     * schema has the $env_var placeholder, it will replace the placeholder in the
      +     * schema.
      +     * 
      + * + * string url = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUrl() { + url_ = getDefaultInstance().getUrl(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The server URL of the Open API schema.
      +     * This field is only set in toolsets in the environment dependencies during
      +     * the export process if the schema contains a server url. During the import
      +     * process, if this url is present in the environment dependencies and the
      +     * schema has the $env_var placeholder, it will replace the placeholder in the
      +     * schema.
      +     * 
      + * + * string url = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for url to set. + * @return This builder for chaining. + */ + public Builder setUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.OpenApiToolset) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.OpenApiToolset) + private static final com.google.cloud.ces.v1.OpenApiToolset DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.OpenApiToolset(); + } + + public static com.google.cloud.ces.v1.OpenApiToolset getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OpenApiToolset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OpenApiToolset getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OpenApiToolsetOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OpenApiToolsetOrBuilder.java new file mode 100644 index 000000000000..7727627f7651 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OpenApiToolsetOrBuilder.java @@ -0,0 +1,230 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/open_api_toolset.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface OpenApiToolsetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.OpenApiToolset) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The OpenAPI schema of the toolset.
      +   * 
      + * + * string open_api_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The openApiSchema. + */ + java.lang.String getOpenApiSchema(); + + /** + * + * + *
      +   * Required. The OpenAPI schema of the toolset.
      +   * 
      + * + * string open_api_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for openApiSchema. + */ + com.google.protobuf.ByteString getOpenApiSchemaBytes(); + + /** + * + * + *
      +   * Optional. Authentication information required by the API.
      +   * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiAuthentication field is set. + */ + boolean hasApiAuthentication(); + + /** + * + * + *
      +   * Optional. Authentication information required by the API.
      +   * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiAuthentication. + */ + com.google.cloud.ces.v1.ApiAuthentication getApiAuthentication(); + + /** + * + * + *
      +   * Optional. Authentication information required by the API.
      +   * 
      + * + * + * .google.cloud.ces.v1.ApiAuthentication api_authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ApiAuthenticationOrBuilder getApiAuthenticationOrBuilder(); + + /** + * + * + *
      +   * Optional. The TLS configuration. Includes the custom server certificates
      +   * 
      + * + * .google.cloud.ces.v1.TlsConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tlsConfig field is set. + */ + boolean hasTlsConfig(); + + /** + * + * + *
      +   * Optional. The TLS configuration. Includes the custom server certificates
      +   * 
      + * + * .google.cloud.ces.v1.TlsConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tlsConfig. + */ + com.google.cloud.ces.v1.TlsConfig getTlsConfig(); + + /** + * + * + *
      +   * Optional. The TLS configuration. Includes the custom server certificates
      +   * 
      + * + * .google.cloud.ces.v1.TlsConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.TlsConfigOrBuilder getTlsConfigOrBuilder(); + + /** + * + * + *
      +   * Optional. Service Directory configuration.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceDirectoryConfig field is set. + */ + boolean hasServiceDirectoryConfig(); + + /** + * + * + *
      +   * Optional. Service Directory configuration.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceDirectoryConfig. + */ + com.google.cloud.ces.v1.ServiceDirectoryConfig getServiceDirectoryConfig(); + + /** + * + * + *
      +   * Optional. Service Directory configuration.
      +   * 
      + * + * + * .google.cloud.ces.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ServiceDirectoryConfigOrBuilder getServiceDirectoryConfigOrBuilder(); + + /** + * + * + *
      +   * Optional. If true, the agent will ignore unknown fields in the API response
      +   * for all operations defined in the OpenAPI schema.
      +   * 
      + * + * bool ignore_unknown_fields = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ignoreUnknownFields. + */ + boolean getIgnoreUnknownFields(); + + /** + * + * + *
      +   * Optional. The server URL of the Open API schema.
      +   * This field is only set in toolsets in the environment dependencies during
      +   * the export process if the schema contains a server url. During the import
      +   * process, if this url is present in the environment dependencies and the
      +   * schema has the $env_var placeholder, it will replace the placeholder in the
      +   * schema.
      +   * 
      + * + * string url = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The url. + */ + java.lang.String getUrl(); + + /** + * + * + *
      +   * Optional. The server URL of the Open API schema.
      +   * This field is only set in toolsets in the environment dependencies during
      +   * the export process if the schema contains a server url. During the import
      +   * process, if this url is present in the environment dependencies and the
      +   * schema has the $env_var placeholder, it will replace the placeholder in the
      +   * schema.
      +   * 
      + * + * string url = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for url. + */ + com.google.protobuf.ByteString getUrlBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OpenApiToolsetProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OpenApiToolsetProto.java new file mode 100644 index 000000000000..9f175b564432 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OpenApiToolsetProto.java @@ -0,0 +1,106 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/open_api_toolset.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class OpenApiToolsetProto extends com.google.protobuf.GeneratedFile { + private OpenApiToolsetProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OpenApiToolsetProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_OpenApiToolset_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_OpenApiToolset_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "*google/cloud/ces/v1/open_api_toolset.p" + + "roto\022\023google.cloud.ces.v1\032\037google/api/fi" + + "eld_behavior.proto\032\036google/cloud/ces/v1/auth.proto\032" + + " google/cloud/ces/v1/common.proto\"\272\002\n" + + "\016OpenApiToolset\022\034\n" + + "\017open_api_schema\030\001 \001(\tB\003\340A\002\022G\n" + + "\022api_authentication\030\002 \001(" + + "\0132&.google.cloud.ces.v1.ApiAuthenticationB\003\340A\001\0227\n\n" + + "tls_config\030\003 \001(\0132\036.google.cloud.ces.v1.TlsConfigB\003\340A\001\022R\n" + + "\030service_directory_config\030\004" + + " \001(\0132+.google.cloud.ces.v1.ServiceDirectoryConfigB\003\340A\001\022\"\n" + + "\025ignore_unknown_fields\030\005 \001(\010B\003\340A\001\022\020\n" + + "\003url\030\006 \001(\tB\003\340A\001B[\n" + + "\027com.google.cloud.ces.v1B\023OpenApiToolsetProtoP\001Z)cloud.google.com/go/ces/api" + + "v1/cespb;cespbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.ces.v1.AuthProto.getDescriptor(), + com.google.cloud.ces.v1.CommonProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_OpenApiToolset_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_OpenApiToolset_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_OpenApiToolset_descriptor, + new java.lang.String[] { + "OpenApiSchema", + "ApiAuthentication", + "TlsConfig", + "ServiceDirectoryConfig", + "IgnoreUnknownFields", + "Url", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.ces.v1.AuthProto.getDescriptor(); + com.google.cloud.ces.v1.CommonProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OperationMetadata.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OperationMetadata.java new file mode 100644 index 000000000000..ff75f605415d --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OperationMetadata.java @@ -0,0 +1,1301 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Represents the metadata of the long-running operation.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.OperationMetadata} + */ +@com.google.protobuf.Generated +public final class OperationMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.OperationMetadata) + OperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OperationMetadata"); + } + + // Use OperationMetadata.newBuilder() to construct. + private OperationMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OperationMetadata() { + statusMessage_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_OperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.OperationMetadata.class, + com.google.cloud.ces.v1.OperationMetadata.Builder.class); + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
      +   * Output only. The time the operation was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Output only. The time the operation was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
      +   * Output only. The time the operation was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + + /** + * + * + *
      +   * Output only. The time the operation finished running.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Output only. The time the operation finished running.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + /** + * + * + *
      +   * Output only. The time the operation finished running.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object statusMessage_ = ""; + + /** + * + * + *
      +   * Output only. Human-readable status of the operation, if any.
      +   * 
      + * + * string status_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The statusMessage. + */ + @java.lang.Override + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } + } + + /** + * + * + *
      +   * Output only. Human-readable status of the operation, if any.
      +   * 
      + * + * string status_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for statusMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 4; + private boolean requestedCancellation_ = false; + + /** + * + * + *
      +   * Output only. Identifies whether the user has requested cancellation of the
      +   * operation. Operations that have been cancelled successfully have
      +   * [google.longrunning.Operation.error][google.longrunning.Operation.error]
      +   * value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`,
      +   * corresponding to `Code.CANCELLED`.
      +   * 
      + * + * bool requested_cancellation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + @java.lang.Override + public boolean getRequestedCancellation() { + return requestedCancellation_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(statusMessage_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, statusMessage_); + } + if (requestedCancellation_ != false) { + output.writeBool(4, requestedCancellation_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(statusMessage_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, statusMessage_); + } + if (requestedCancellation_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, requestedCancellation_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.OperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.OperationMetadata other = + (com.google.cloud.ces.v1.OperationMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() != other.getRequestedCancellation()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getStatusMessage().hashCode(); + hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.OperationMetadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OperationMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OperationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OperationMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.OperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Represents the metadata of the long-running operation.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.OperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.OperationMetadata) + com.google.cloud.ces.v1.OperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_OperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.OperationMetadata.class, + com.google.cloud.ces.v1.OperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.OperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + statusMessage_ = ""; + requestedCancellation_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OperationMetadata getDefaultInstanceForType() { + return com.google.cloud.ces.v1.OperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.OperationMetadata build() { + com.google.cloud.ces.v1.OperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OperationMetadata buildPartial() { + com.google.cloud.ces.v1.OperationMetadata result = + new com.google.cloud.ces.v1.OperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.OperationMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.statusMessage_ = statusMessage_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestedCancellation_ = requestedCancellation_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.OperationMetadata) { + return mergeFrom((com.google.cloud.ces.v1.OperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.OperationMetadata other) { + if (other == com.google.cloud.ces.v1.OperationMetadata.getDefaultInstance()) return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getRequestedCancellation() != false) { + setRequestedCancellation(other.getRequestedCancellation()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
      +     * Output only. The time the operation was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Output only. The time the operation was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 1 [(.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_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. The time the operation was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The time the operation was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The time the operation was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. The time the operation was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The time the operation was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. The time the operation was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 1 [(.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_; + } + } + + /** + * + * + *
      +     * Output only. The time the operation was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + + /** + * + * + *
      +     * Output only. The time the operation finished running.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Output only. The time the operation finished running.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. The time the operation finished running.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The time the operation finished running.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The time the operation finished running.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. The time the operation finished running.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The time the operation finished running.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetEndTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. The time the operation finished running.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + + /** + * + * + *
      +     * Output only. The time the operation finished running.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private java.lang.Object statusMessage_ = ""; + + /** + * + * + *
      +     * Output only. Human-readable status of the operation, if any.
      +     * 
      + * + * string status_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The statusMessage. + */ + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Output only. Human-readable status of the operation, if any.
      +     * 
      + * + * string status_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for statusMessage. + */ + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Output only. Human-readable status of the operation, if any.
      +     * 
      + * + * string status_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The statusMessage to set. + * @return This builder for chaining. + */ + public Builder setStatusMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + statusMessage_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Human-readable status of the operation, if any.
      +     * 
      + * + * string status_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearStatusMessage() { + statusMessage_ = getDefaultInstance().getStatusMessage(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Human-readable status of the operation, if any.
      +     * 
      + * + * string status_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for statusMessage to set. + * @return This builder for chaining. + */ + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean requestedCancellation_; + + /** + * + * + *
      +     * Output only. Identifies whether the user has requested cancellation of the
      +     * operation. Operations that have been cancelled successfully have
      +     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
      +     * value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`,
      +     * corresponding to `Code.CANCELLED`.
      +     * 
      + * + * bool requested_cancellation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + @java.lang.Override + public boolean getRequestedCancellation() { + return requestedCancellation_; + } + + /** + * + * + *
      +     * Output only. Identifies whether the user has requested cancellation of the
      +     * operation. Operations that have been cancelled successfully have
      +     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
      +     * value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`,
      +     * corresponding to `Code.CANCELLED`.
      +     * 
      + * + * bool requested_cancellation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The requestedCancellation to set. + * @return This builder for chaining. + */ + public Builder setRequestedCancellation(boolean value) { + + requestedCancellation_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Identifies whether the user has requested cancellation of the
      +     * operation. Operations that have been cancelled successfully have
      +     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
      +     * value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`,
      +     * corresponding to `Code.CANCELLED`.
      +     * 
      + * + * bool requested_cancellation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRequestedCancellation() { + bitField0_ = (bitField0_ & ~0x00000008); + requestedCancellation_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.OperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.OperationMetadata) + private static final com.google.cloud.ces.v1.OperationMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.OperationMetadata(); + } + + public static com.google.cloud.ces.v1.OperationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OperationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OperationMetadataOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OperationMetadataOrBuilder.java new file mode 100644 index 000000000000..e96ddfd594ee --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OperationMetadataOrBuilder.java @@ -0,0 +1,151 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface OperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.OperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Output only. The time the operation was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
      +   * Output only. The time the operation was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
      +   * Output only. The time the operation was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
      +   * Output only. The time the operation finished running.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + + /** + * + * + *
      +   * Output only. The time the operation finished running.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + + /** + * + * + *
      +   * Output only. The time the operation finished running.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
      +   * Output only. Human-readable status of the operation, if any.
      +   * 
      + * + * string status_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The statusMessage. + */ + java.lang.String getStatusMessage(); + + /** + * + * + *
      +   * Output only. Human-readable status of the operation, if any.
      +   * 
      + * + * string status_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for statusMessage. + */ + com.google.protobuf.ByteString getStatusMessageBytes(); + + /** + * + * + *
      +   * Output only. Identifies whether the user has requested cancellation of the
      +   * operation. Operations that have been cancelled successfully have
      +   * [google.longrunning.Operation.error][google.longrunning.Operation.error]
      +   * value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`,
      +   * corresponding to `Code.CANCELLED`.
      +   * 
      + * + * bool requested_cancellation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + boolean getRequestedCancellation(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OutputAudioConfig.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OutputAudioConfig.java new file mode 100644 index 000000000000..8175377ec31b --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OutputAudioConfig.java @@ -0,0 +1,676 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * OutputAudioConfig configures how the CES agent should synthesize outgoing
      + * audio responses.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.OutputAudioConfig} + */ +@com.google.protobuf.Generated +public final class OutputAudioConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.OutputAudioConfig) + OutputAudioConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OutputAudioConfig"); + } + + // Use OutputAudioConfig.newBuilder() to construct. + private OutputAudioConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OutputAudioConfig() { + audioEncoding_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_OutputAudioConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_OutputAudioConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.OutputAudioConfig.class, + com.google.cloud.ces.v1.OutputAudioConfig.Builder.class); + } + + public static final int AUDIO_ENCODING_FIELD_NUMBER = 1; + private int audioEncoding_ = 0; + + /** + * + * + *
      +   * Required. The encoding of the output audio data.
      +   * 
      + * + * + * .google.cloud.ces.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for audioEncoding. + */ + @java.lang.Override + public int getAudioEncodingValue() { + return audioEncoding_; + } + + /** + * + * + *
      +   * Required. The encoding of the output audio data.
      +   * 
      + * + * + * .google.cloud.ces.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The audioEncoding. + */ + @java.lang.Override + public com.google.cloud.ces.v1.AudioEncoding getAudioEncoding() { + com.google.cloud.ces.v1.AudioEncoding result = + com.google.cloud.ces.v1.AudioEncoding.forNumber(audioEncoding_); + return result == null ? com.google.cloud.ces.v1.AudioEncoding.UNRECOGNIZED : result; + } + + public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER = 2; + private int sampleRateHertz_ = 0; + + /** + * + * + *
      +   * Required. The sample rate (in Hertz) of the output audio data.
      +   * 
      + * + * int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sampleRateHertz. + */ + @java.lang.Override + public int getSampleRateHertz() { + return sampleRateHertz_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (audioEncoding_ + != com.google.cloud.ces.v1.AudioEncoding.AUDIO_ENCODING_UNSPECIFIED.getNumber()) { + output.writeEnum(1, audioEncoding_); + } + if (sampleRateHertz_ != 0) { + output.writeInt32(2, sampleRateHertz_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (audioEncoding_ + != com.google.cloud.ces.v1.AudioEncoding.AUDIO_ENCODING_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, audioEncoding_); + } + if (sampleRateHertz_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, sampleRateHertz_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.OutputAudioConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.OutputAudioConfig other = + (com.google.cloud.ces.v1.OutputAudioConfig) obj; + + if (audioEncoding_ != other.audioEncoding_) return false; + if (getSampleRateHertz() != other.getSampleRateHertz()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + AUDIO_ENCODING_FIELD_NUMBER; + hash = (53 * hash) + audioEncoding_; + hash = (37 * hash) + SAMPLE_RATE_HERTZ_FIELD_NUMBER; + hash = (53 * hash) + getSampleRateHertz(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.OutputAudioConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OutputAudioConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OutputAudioConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OutputAudioConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OutputAudioConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.OutputAudioConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OutputAudioConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OutputAudioConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OutputAudioConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OutputAudioConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.OutputAudioConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.OutputAudioConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.OutputAudioConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * OutputAudioConfig configures how the CES agent should synthesize outgoing
      +   * audio responses.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.OutputAudioConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.OutputAudioConfig) + com.google.cloud.ces.v1.OutputAudioConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_OutputAudioConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_OutputAudioConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.OutputAudioConfig.class, + com.google.cloud.ces.v1.OutputAudioConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.OutputAudioConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + audioEncoding_ = 0; + sampleRateHertz_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_OutputAudioConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OutputAudioConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1.OutputAudioConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.OutputAudioConfig build() { + com.google.cloud.ces.v1.OutputAudioConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OutputAudioConfig buildPartial() { + com.google.cloud.ces.v1.OutputAudioConfig result = + new com.google.cloud.ces.v1.OutputAudioConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.OutputAudioConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.audioEncoding_ = audioEncoding_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sampleRateHertz_ = sampleRateHertz_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.OutputAudioConfig) { + return mergeFrom((com.google.cloud.ces.v1.OutputAudioConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.OutputAudioConfig other) { + if (other == com.google.cloud.ces.v1.OutputAudioConfig.getDefaultInstance()) return this; + if (other.audioEncoding_ != 0) { + setAudioEncodingValue(other.getAudioEncodingValue()); + } + if (other.getSampleRateHertz() != 0) { + setSampleRateHertz(other.getSampleRateHertz()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + audioEncoding_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + sampleRateHertz_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int audioEncoding_ = 0; + + /** + * + * + *
      +     * Required. The encoding of the output audio data.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for audioEncoding. + */ + @java.lang.Override + public int getAudioEncodingValue() { + return audioEncoding_; + } + + /** + * + * + *
      +     * Required. The encoding of the output audio data.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for audioEncoding to set. + * @return This builder for chaining. + */ + public Builder setAudioEncodingValue(int value) { + audioEncoding_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The encoding of the output audio data.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The audioEncoding. + */ + @java.lang.Override + public com.google.cloud.ces.v1.AudioEncoding getAudioEncoding() { + com.google.cloud.ces.v1.AudioEncoding result = + com.google.cloud.ces.v1.AudioEncoding.forNumber(audioEncoding_); + return result == null ? com.google.cloud.ces.v1.AudioEncoding.UNRECOGNIZED : result; + } + + /** + * + * + *
      +     * Required. The encoding of the output audio data.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The audioEncoding to set. + * @return This builder for chaining. + */ + public Builder setAudioEncoding(com.google.cloud.ces.v1.AudioEncoding value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + audioEncoding_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The encoding of the output audio data.
      +     * 
      + * + * + * .google.cloud.ces.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearAudioEncoding() { + bitField0_ = (bitField0_ & ~0x00000001); + audioEncoding_ = 0; + onChanged(); + return this; + } + + private int sampleRateHertz_; + + /** + * + * + *
      +     * Required. The sample rate (in Hertz) of the output audio data.
      +     * 
      + * + * int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sampleRateHertz. + */ + @java.lang.Override + public int getSampleRateHertz() { + return sampleRateHertz_; + } + + /** + * + * + *
      +     * Required. The sample rate (in Hertz) of the output audio data.
      +     * 
      + * + * int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The sampleRateHertz to set. + * @return This builder for chaining. + */ + public Builder setSampleRateHertz(int value) { + + sampleRateHertz_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The sample rate (in Hertz) of the output audio data.
      +     * 
      + * + * int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSampleRateHertz() { + bitField0_ = (bitField0_ & ~0x00000002); + sampleRateHertz_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.OutputAudioConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.OutputAudioConfig) + private static final com.google.cloud.ces.v1.OutputAudioConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.OutputAudioConfig(); + } + + public static com.google.cloud.ces.v1.OutputAudioConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputAudioConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.OutputAudioConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OutputAudioConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OutputAudioConfigOrBuilder.java new file mode 100644 index 000000000000..338cf7ca68ae --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/OutputAudioConfigOrBuilder.java @@ -0,0 +1,71 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface OutputAudioConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.OutputAudioConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The encoding of the output audio data.
      +   * 
      + * + * + * .google.cloud.ces.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for audioEncoding. + */ + int getAudioEncodingValue(); + + /** + * + * + *
      +   * Required. The encoding of the output audio data.
      +   * 
      + * + * + * .google.cloud.ces.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The audioEncoding. + */ + com.google.cloud.ces.v1.AudioEncoding getAudioEncoding(); + + /** + * + * + *
      +   * Required. The sample rate (in Hertz) of the output audio data.
      +   * 
      + * + * int32 sample_rate_hertz = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sampleRateHertz. + */ + int getSampleRateHertz(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/PythonCodeCondition.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/PythonCodeCondition.java new file mode 100644 index 000000000000..e9659cf90c10 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/PythonCodeCondition.java @@ -0,0 +1,595 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_transfers.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Python code block to evaluate the condition.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.PythonCodeCondition} + */ +@com.google.protobuf.Generated +public final class PythonCodeCondition extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.PythonCodeCondition) + PythonCodeConditionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PythonCodeCondition"); + } + + // Use PythonCodeCondition.newBuilder() to construct. + private PythonCodeCondition(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PythonCodeCondition() { + pythonCode_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentTransfersProto + .internal_static_google_cloud_ces_v1_PythonCodeCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentTransfersProto + .internal_static_google_cloud_ces_v1_PythonCodeCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.PythonCodeCondition.class, + com.google.cloud.ces.v1.PythonCodeCondition.Builder.class); + } + + public static final int PYTHON_CODE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object pythonCode_ = ""; + + /** + * + * + *
      +   * Required. The python code to execute.
      +   * 
      + * + * string python_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pythonCode. + */ + @java.lang.Override + public java.lang.String getPythonCode() { + java.lang.Object ref = pythonCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pythonCode_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The python code to execute.
      +   * 
      + * + * string python_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pythonCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPythonCodeBytes() { + java.lang.Object ref = pythonCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pythonCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pythonCode_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, pythonCode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pythonCode_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, pythonCode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.PythonCodeCondition)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.PythonCodeCondition other = + (com.google.cloud.ces.v1.PythonCodeCondition) obj; + + if (!getPythonCode().equals(other.getPythonCode())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PYTHON_CODE_FIELD_NUMBER; + hash = (53 * hash) + getPythonCode().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.PythonCodeCondition parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.PythonCodeCondition parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.PythonCodeCondition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.PythonCodeCondition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.PythonCodeCondition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.PythonCodeCondition parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.PythonCodeCondition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.PythonCodeCondition parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.PythonCodeCondition parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.PythonCodeCondition parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.PythonCodeCondition parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.PythonCodeCondition parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.PythonCodeCondition prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Python code block to evaluate the condition.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.PythonCodeCondition} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.PythonCodeCondition) + com.google.cloud.ces.v1.PythonCodeConditionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentTransfersProto + .internal_static_google_cloud_ces_v1_PythonCodeCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentTransfersProto + .internal_static_google_cloud_ces_v1_PythonCodeCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.PythonCodeCondition.class, + com.google.cloud.ces.v1.PythonCodeCondition.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.PythonCodeCondition.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pythonCode_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentTransfersProto + .internal_static_google_cloud_ces_v1_PythonCodeCondition_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.PythonCodeCondition getDefaultInstanceForType() { + return com.google.cloud.ces.v1.PythonCodeCondition.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.PythonCodeCondition build() { + com.google.cloud.ces.v1.PythonCodeCondition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.PythonCodeCondition buildPartial() { + com.google.cloud.ces.v1.PythonCodeCondition result = + new com.google.cloud.ces.v1.PythonCodeCondition(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.PythonCodeCondition result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pythonCode_ = pythonCode_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.PythonCodeCondition) { + return mergeFrom((com.google.cloud.ces.v1.PythonCodeCondition) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.PythonCodeCondition other) { + if (other == com.google.cloud.ces.v1.PythonCodeCondition.getDefaultInstance()) return this; + if (!other.getPythonCode().isEmpty()) { + pythonCode_ = other.pythonCode_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + pythonCode_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object pythonCode_ = ""; + + /** + * + * + *
      +     * Required. The python code to execute.
      +     * 
      + * + * string python_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pythonCode. + */ + public java.lang.String getPythonCode() { + java.lang.Object ref = pythonCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pythonCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The python code to execute.
      +     * 
      + * + * string python_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pythonCode. + */ + public com.google.protobuf.ByteString getPythonCodeBytes() { + java.lang.Object ref = pythonCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pythonCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The python code to execute.
      +     * 
      + * + * string python_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The pythonCode to set. + * @return This builder for chaining. + */ + public Builder setPythonCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pythonCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The python code to execute.
      +     * 
      + * + * string python_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPythonCode() { + pythonCode_ = getDefaultInstance().getPythonCode(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The python code to execute.
      +     * 
      + * + * string python_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for pythonCode to set. + * @return This builder for chaining. + */ + public Builder setPythonCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pythonCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.PythonCodeCondition) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.PythonCodeCondition) + private static final com.google.cloud.ces.v1.PythonCodeCondition DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.PythonCodeCondition(); + } + + public static com.google.cloud.ces.v1.PythonCodeCondition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PythonCodeCondition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.PythonCodeCondition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/PythonCodeConditionOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/PythonCodeConditionOrBuilder.java new file mode 100644 index 000000000000..a1f1d6bba3a6 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/PythonCodeConditionOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_transfers.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface PythonCodeConditionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.PythonCodeCondition) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The python code to execute.
      +   * 
      + * + * string python_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pythonCode. + */ + java.lang.String getPythonCode(); + + /** + * + * + *
      +   * Required. The python code to execute.
      +   * 
      + * + * string python_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pythonCode. + */ + com.google.protobuf.ByteString getPythonCodeBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/PythonFunction.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/PythonFunction.java new file mode 100644 index 000000000000..b90605ab11e2 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/PythonFunction.java @@ -0,0 +1,993 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/python_function.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * A Python function tool.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.PythonFunction} + */ +@com.google.protobuf.Generated +public final class PythonFunction extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.PythonFunction) + PythonFunctionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PythonFunction"); + } + + // Use PythonFunction.newBuilder() to construct. + private PythonFunction(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PythonFunction() { + name_ = ""; + pythonCode_ = ""; + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.PythonFunctionProto + .internal_static_google_cloud_ces_v1_PythonFunction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.PythonFunctionProto + .internal_static_google_cloud_ces_v1_PythonFunction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.PythonFunction.class, + com.google.cloud.ces.v1.PythonFunction.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Optional. The name of the Python function to execute. Must match a Python
      +   * function name defined in the python code. Case sensitive. If the name is
      +   * not provided, the first function defined in the python code will be used.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The name of the Python function to execute. Must match a Python
      +   * function name defined in the python code. Case sensitive. If the name is
      +   * not provided, the first function defined in the python code will be used.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PYTHON_CODE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object pythonCode_ = ""; + + /** + * + * + *
      +   * Optional. The Python code to execute for the tool.
      +   * 
      + * + * string python_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pythonCode. + */ + @java.lang.Override + public java.lang.String getPythonCode() { + java.lang.Object ref = pythonCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pythonCode_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The Python code to execute for the tool.
      +   * 
      + * + * string python_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pythonCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPythonCodeBytes() { + java.lang.Object ref = pythonCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pythonCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
      +   * Output only. The description of the Python function, parsed from the python
      +   * code's docstring.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
      +   * Output only. The description of the Python function, parsed from the python
      +   * code's docstring.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + @java.lang.Override + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pythonCode_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, pythonCode_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pythonCode_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, pythonCode_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.PythonFunction)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.PythonFunction other = (com.google.cloud.ces.v1.PythonFunction) obj; + + if (!getName().equals(other.getName())) return false; + if (!getPythonCode().equals(other.getPythonCode())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PYTHON_CODE_FIELD_NUMBER; + hash = (53 * hash) + getPythonCode().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.PythonFunction parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.PythonFunction parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.PythonFunction parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.PythonFunction parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.PythonFunction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.PythonFunction parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.PythonFunction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.PythonFunction parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.PythonFunction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.PythonFunction parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.PythonFunction parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.PythonFunction parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.PythonFunction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * A Python function tool.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.PythonFunction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.PythonFunction) + com.google.cloud.ces.v1.PythonFunctionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.PythonFunctionProto + .internal_static_google_cloud_ces_v1_PythonFunction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.PythonFunctionProto + .internal_static_google_cloud_ces_v1_PythonFunction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.PythonFunction.class, + com.google.cloud.ces.v1.PythonFunction.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.PythonFunction.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + pythonCode_ = ""; + description_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.PythonFunctionProto + .internal_static_google_cloud_ces_v1_PythonFunction_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.PythonFunction getDefaultInstanceForType() { + return com.google.cloud.ces.v1.PythonFunction.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.PythonFunction build() { + com.google.cloud.ces.v1.PythonFunction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.PythonFunction buildPartial() { + com.google.cloud.ces.v1.PythonFunction result = + new com.google.cloud.ces.v1.PythonFunction(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.PythonFunction result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pythonCode_ = pythonCode_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.PythonFunction) { + return mergeFrom((com.google.cloud.ces.v1.PythonFunction) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.PythonFunction other) { + if (other == com.google.cloud.ces.v1.PythonFunction.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPythonCode().isEmpty()) { + pythonCode_ = other.pythonCode_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + pythonCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Optional. The name of the Python function to execute. Must match a Python
      +     * function name defined in the python code. Case sensitive. If the name is
      +     * not provided, the first function defined in the python code will be used.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The name of the Python function to execute. Must match a Python
      +     * function name defined in the python code. Case sensitive. If the name is
      +     * not provided, the first function defined in the python code will be used.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The name of the Python function to execute. Must match a Python
      +     * function name defined in the python code. Case sensitive. If the name is
      +     * not provided, the first function defined in the python code will be used.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The name of the Python function to execute. Must match a Python
      +     * function name defined in the python code. Case sensitive. If the name is
      +     * not provided, the first function defined in the python code will be used.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The name of the Python function to execute. Must match a Python
      +     * function name defined in the python code. Case sensitive. If the name is
      +     * not provided, the first function defined in the python code will be used.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object pythonCode_ = ""; + + /** + * + * + *
      +     * Optional. The Python code to execute for the tool.
      +     * 
      + * + * string python_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pythonCode. + */ + public java.lang.String getPythonCode() { + java.lang.Object ref = pythonCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pythonCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The Python code to execute for the tool.
      +     * 
      + * + * string python_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pythonCode. + */ + public com.google.protobuf.ByteString getPythonCodeBytes() { + java.lang.Object ref = pythonCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pythonCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The Python code to execute for the tool.
      +     * 
      + * + * string python_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pythonCode to set. + * @return This builder for chaining. + */ + public Builder setPythonCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pythonCode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The Python code to execute for the tool.
      +     * 
      + * + * string python_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPythonCode() { + pythonCode_ = getDefaultInstance().getPythonCode(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The Python code to execute for the tool.
      +     * 
      + * + * string python_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pythonCode to set. + * @return This builder for chaining. + */ + public Builder setPythonCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pythonCode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
      +     * Output only. The description of the Python function, parsed from the python
      +     * code's docstring.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Output only. The description of the Python function, parsed from the python
      +     * code's docstring.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Output only. The description of the Python function, parsed from the python
      +     * code's docstring.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The description of the Python function, parsed from the python
      +     * code's docstring.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The description of the Python function, parsed from the python
      +     * code's docstring.
      +     * 
      + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.PythonFunction) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.PythonFunction) + private static final com.google.cloud.ces.v1.PythonFunction DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.PythonFunction(); + } + + public static com.google.cloud.ces.v1.PythonFunction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PythonFunction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.PythonFunction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/PythonFunctionOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/PythonFunctionOrBuilder.java new file mode 100644 index 000000000000..b1abd608fa01 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/PythonFunctionOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/python_function.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface PythonFunctionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.PythonFunction) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. The name of the Python function to execute. Must match a Python
      +   * function name defined in the python code. Case sensitive. If the name is
      +   * not provided, the first function defined in the python code will be used.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Optional. The name of the Python function to execute. Must match a Python
      +   * function name defined in the python code. Case sensitive. If the name is
      +   * not provided, the first function defined in the python code will be used.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Optional. The Python code to execute for the tool.
      +   * 
      + * + * string python_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pythonCode. + */ + java.lang.String getPythonCode(); + + /** + * + * + *
      +   * Optional. The Python code to execute for the tool.
      +   * 
      + * + * string python_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pythonCode. + */ + com.google.protobuf.ByteString getPythonCodeBytes(); + + /** + * + * + *
      +   * Output only. The description of the Python function, parsed from the python
      +   * code's docstring.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
      +   * Output only. The description of the Python function, parsed from the python
      +   * code's docstring.
      +   * 
      + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/PythonFunctionProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/PythonFunctionProto.java new file mode 100644 index 000000000000..d0f33d640cee --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/PythonFunctionProto.java @@ -0,0 +1,90 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/python_function.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class PythonFunctionProto extends com.google.protobuf.GeneratedFile { + private PythonFunctionProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PythonFunctionProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_PythonFunction_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_PythonFunction_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + ")google/cloud/ces/v1/python_function.pr" + + "oto\022\023google.cloud.ces.v1\032\037google/api/field_behavior.proto\"W\n" + + "\016PythonFunction\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\001\022\030\n" + + "\013python_code\030\002 \001(\tB\003\340A\001\022\030\n" + + "\013description\030\003 \001(\tB\003\340A\003B[\n" + + "\027com.google.cloud.ces.v1B\023PythonFunctionProtoP\001Z)cl" + + "oud.google.com/go/ces/apiv1/cespb;cespbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_PythonFunction_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_PythonFunction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_PythonFunction_descriptor, + new java.lang.String[] { + "Name", "PythonCode", "Description", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RecognitionResult.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RecognitionResult.java new file mode 100644 index 000000000000..7252958b3a36 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RecognitionResult.java @@ -0,0 +1,602 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Speech recognition result for the audio input.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.RecognitionResult} + */ +@com.google.protobuf.Generated +public final class RecognitionResult extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.RecognitionResult) + RecognitionResultOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RecognitionResult"); + } + + // Use RecognitionResult.newBuilder() to construct. + private RecognitionResult(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RecognitionResult() { + transcript_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_RecognitionResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_RecognitionResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.RecognitionResult.class, + com.google.cloud.ces.v1.RecognitionResult.Builder.class); + } + + public static final int TRANSCRIPT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object transcript_ = ""; + + /** + * + * + *
      +   * Optional. Concatenated user speech segments captured during the current
      +   * turn.
      +   * 
      + * + * string transcript = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The transcript. + */ + @java.lang.Override + public java.lang.String getTranscript() { + java.lang.Object ref = transcript_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + transcript_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. Concatenated user speech segments captured during the current
      +   * turn.
      +   * 
      + * + * string transcript = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for transcript. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTranscriptBytes() { + java.lang.Object ref = transcript_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + transcript_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(transcript_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, transcript_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(transcript_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, transcript_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.RecognitionResult)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.RecognitionResult other = + (com.google.cloud.ces.v1.RecognitionResult) obj; + + if (!getTranscript().equals(other.getTranscript())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TRANSCRIPT_FIELD_NUMBER; + hash = (53 * hash) + getTranscript().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.RecognitionResult parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.RecognitionResult parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RecognitionResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.RecognitionResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RecognitionResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.RecognitionResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RecognitionResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.RecognitionResult parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RecognitionResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.RecognitionResult parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RecognitionResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.RecognitionResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.RecognitionResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Speech recognition result for the audio input.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.RecognitionResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.RecognitionResult) + com.google.cloud.ces.v1.RecognitionResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_RecognitionResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_RecognitionResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.RecognitionResult.class, + com.google.cloud.ces.v1.RecognitionResult.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.RecognitionResult.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + transcript_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_RecognitionResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.RecognitionResult getDefaultInstanceForType() { + return com.google.cloud.ces.v1.RecognitionResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.RecognitionResult build() { + com.google.cloud.ces.v1.RecognitionResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.RecognitionResult buildPartial() { + com.google.cloud.ces.v1.RecognitionResult result = + new com.google.cloud.ces.v1.RecognitionResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.RecognitionResult result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.transcript_ = transcript_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.RecognitionResult) { + return mergeFrom((com.google.cloud.ces.v1.RecognitionResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.RecognitionResult other) { + if (other == com.google.cloud.ces.v1.RecognitionResult.getDefaultInstance()) return this; + if (!other.getTranscript().isEmpty()) { + transcript_ = other.transcript_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + transcript_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object transcript_ = ""; + + /** + * + * + *
      +     * Optional. Concatenated user speech segments captured during the current
      +     * turn.
      +     * 
      + * + * string transcript = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The transcript. + */ + public java.lang.String getTranscript() { + java.lang.Object ref = transcript_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + transcript_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Concatenated user speech segments captured during the current
      +     * turn.
      +     * 
      + * + * string transcript = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for transcript. + */ + public com.google.protobuf.ByteString getTranscriptBytes() { + java.lang.Object ref = transcript_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + transcript_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Concatenated user speech segments captured during the current
      +     * turn.
      +     * 
      + * + * string transcript = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The transcript to set. + * @return This builder for chaining. + */ + public Builder setTranscript(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + transcript_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Concatenated user speech segments captured during the current
      +     * turn.
      +     * 
      + * + * string transcript = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTranscript() { + transcript_ = getDefaultInstance().getTranscript(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Concatenated user speech segments captured during the current
      +     * turn.
      +     * 
      + * + * string transcript = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for transcript to set. + * @return This builder for chaining. + */ + public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + transcript_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.RecognitionResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.RecognitionResult) + private static final com.google.cloud.ces.v1.RecognitionResult DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.RecognitionResult(); + } + + public static com.google.cloud.ces.v1.RecognitionResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.RecognitionResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RecognitionResultOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RecognitionResultOrBuilder.java new file mode 100644 index 000000000000..868048af0978 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RecognitionResultOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface RecognitionResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.RecognitionResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. Concatenated user speech segments captured during the current
      +   * turn.
      +   * 
      + * + * string transcript = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The transcript. + */ + java.lang.String getTranscript(); + + /** + * + * + *
      +   * Optional. Concatenated user speech segments captured during the current
      +   * turn.
      +   * 
      + * + * string transcript = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for transcript. + */ + com.google.protobuf.ByteString getTranscriptBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RedactionConfig.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RedactionConfig.java new file mode 100644 index 000000000000..98c35e5b4b16 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RedactionConfig.java @@ -0,0 +1,968 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Configuration to instruct how sensitive data should be handled.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.RedactionConfig} + */ +@com.google.protobuf.Generated +public final class RedactionConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.RedactionConfig) + RedactionConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RedactionConfig"); + } + + // Use RedactionConfig.newBuilder() to construct. + private RedactionConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RedactionConfig() { + inspectTemplate_ = ""; + deidentifyTemplate_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_RedactionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_RedactionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.RedactionConfig.class, + com.google.cloud.ces.v1.RedactionConfig.Builder.class); + } + + public static final int ENABLE_REDACTION_FIELD_NUMBER = 1; + private boolean enableRedaction_ = false; + + /** + * + * + *
      +   * Optional. If true, redaction will be applied in various logging scenarios,
      +   * including conversation history, Cloud Logging and audio recording.
      +   * 
      + * + * bool enable_redaction = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableRedaction. + */ + @java.lang.Override + public boolean getEnableRedaction() { + return enableRedaction_; + } + + public static final int INSPECT_TEMPLATE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object inspectTemplate_ = ""; + + /** + * + * + *
      +   * Optional. [DLP](https://cloud.google.com/dlp/docs) inspect template name to
      +   * configure detection of sensitive data types.
      +   *
      +   * Format:
      +   * `projects/{project}/locations/{location}/inspectTemplates/{inspect_template}`
      +   * 
      + * + * + * string inspect_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The inspectTemplate. + */ + @java.lang.Override + public java.lang.String getInspectTemplate() { + java.lang.Object ref = inspectTemplate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inspectTemplate_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. [DLP](https://cloud.google.com/dlp/docs) inspect template name to
      +   * configure detection of sensitive data types.
      +   *
      +   * Format:
      +   * `projects/{project}/locations/{location}/inspectTemplates/{inspect_template}`
      +   * 
      + * + * + * string inspect_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for inspectTemplate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInspectTemplateBytes() { + java.lang.Object ref = inspectTemplate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inspectTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEIDENTIFY_TEMPLATE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object deidentifyTemplate_ = ""; + + /** + * + * + *
      +   * Optional. [DLP](https://cloud.google.com/dlp/docs) deidentify template name
      +   * to instruct on how to de-identify content.
      +   *
      +   * Format:
      +   * `projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}`
      +   * 
      + * + * + * string deidentify_template = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The deidentifyTemplate. + */ + @java.lang.Override + public java.lang.String getDeidentifyTemplate() { + java.lang.Object ref = deidentifyTemplate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deidentifyTemplate_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. [DLP](https://cloud.google.com/dlp/docs) deidentify template name
      +   * to instruct on how to de-identify content.
      +   *
      +   * Format:
      +   * `projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}`
      +   * 
      + * + * + * string deidentify_template = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for deidentifyTemplate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeidentifyTemplateBytes() { + java.lang.Object ref = deidentifyTemplate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deidentifyTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enableRedaction_ != false) { + output.writeBool(1, enableRedaction_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(inspectTemplate_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, inspectTemplate_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deidentifyTemplate_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, deidentifyTemplate_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableRedaction_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableRedaction_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(inspectTemplate_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, inspectTemplate_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deidentifyTemplate_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, deidentifyTemplate_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.RedactionConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.RedactionConfig other = (com.google.cloud.ces.v1.RedactionConfig) obj; + + if (getEnableRedaction() != other.getEnableRedaction()) return false; + if (!getInspectTemplate().equals(other.getInspectTemplate())) return false; + if (!getDeidentifyTemplate().equals(other.getDeidentifyTemplate())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLE_REDACTION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableRedaction()); + hash = (37 * hash) + INSPECT_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getInspectTemplate().hashCode(); + hash = (37 * hash) + DEIDENTIFY_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getDeidentifyTemplate().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.RedactionConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.RedactionConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RedactionConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.RedactionConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RedactionConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.RedactionConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RedactionConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.RedactionConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RedactionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.RedactionConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RedactionConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.RedactionConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.RedactionConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Configuration to instruct how sensitive data should be handled.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.RedactionConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.RedactionConfig) + com.google.cloud.ces.v1.RedactionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_RedactionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_RedactionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.RedactionConfig.class, + com.google.cloud.ces.v1.RedactionConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.RedactionConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableRedaction_ = false; + inspectTemplate_ = ""; + deidentifyTemplate_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_RedactionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.RedactionConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1.RedactionConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.RedactionConfig build() { + com.google.cloud.ces.v1.RedactionConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.RedactionConfig buildPartial() { + com.google.cloud.ces.v1.RedactionConfig result = + new com.google.cloud.ces.v1.RedactionConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.RedactionConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableRedaction_ = enableRedaction_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.inspectTemplate_ = inspectTemplate_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.deidentifyTemplate_ = deidentifyTemplate_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.RedactionConfig) { + return mergeFrom((com.google.cloud.ces.v1.RedactionConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.RedactionConfig other) { + if (other == com.google.cloud.ces.v1.RedactionConfig.getDefaultInstance()) return this; + if (other.getEnableRedaction() != false) { + setEnableRedaction(other.getEnableRedaction()); + } + if (!other.getInspectTemplate().isEmpty()) { + inspectTemplate_ = other.inspectTemplate_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDeidentifyTemplate().isEmpty()) { + deidentifyTemplate_ = other.deidentifyTemplate_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enableRedaction_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + inspectTemplate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + deidentifyTemplate_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean enableRedaction_; + + /** + * + * + *
      +     * Optional. If true, redaction will be applied in various logging scenarios,
      +     * including conversation history, Cloud Logging and audio recording.
      +     * 
      + * + * bool enable_redaction = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableRedaction. + */ + @java.lang.Override + public boolean getEnableRedaction() { + return enableRedaction_; + } + + /** + * + * + *
      +     * Optional. If true, redaction will be applied in various logging scenarios,
      +     * including conversation history, Cloud Logging and audio recording.
      +     * 
      + * + * bool enable_redaction = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableRedaction to set. + * @return This builder for chaining. + */ + public Builder setEnableRedaction(boolean value) { + + enableRedaction_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. If true, redaction will be applied in various logging scenarios,
      +     * including conversation history, Cloud Logging and audio recording.
      +     * 
      + * + * bool enable_redaction = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnableRedaction() { + bitField0_ = (bitField0_ & ~0x00000001); + enableRedaction_ = false; + onChanged(); + return this; + } + + private java.lang.Object inspectTemplate_ = ""; + + /** + * + * + *
      +     * Optional. [DLP](https://cloud.google.com/dlp/docs) inspect template name to
      +     * configure detection of sensitive data types.
      +     *
      +     * Format:
      +     * `projects/{project}/locations/{location}/inspectTemplates/{inspect_template}`
      +     * 
      + * + * + * string inspect_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The inspectTemplate. + */ + public java.lang.String getInspectTemplate() { + java.lang.Object ref = inspectTemplate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inspectTemplate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. [DLP](https://cloud.google.com/dlp/docs) inspect template name to
      +     * configure detection of sensitive data types.
      +     *
      +     * Format:
      +     * `projects/{project}/locations/{location}/inspectTemplates/{inspect_template}`
      +     * 
      + * + * + * string inspect_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for inspectTemplate. + */ + public com.google.protobuf.ByteString getInspectTemplateBytes() { + java.lang.Object ref = inspectTemplate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inspectTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. [DLP](https://cloud.google.com/dlp/docs) inspect template name to
      +     * configure detection of sensitive data types.
      +     *
      +     * Format:
      +     * `projects/{project}/locations/{location}/inspectTemplates/{inspect_template}`
      +     * 
      + * + * + * string inspect_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The inspectTemplate to set. + * @return This builder for chaining. + */ + public Builder setInspectTemplate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + inspectTemplate_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. [DLP](https://cloud.google.com/dlp/docs) inspect template name to
      +     * configure detection of sensitive data types.
      +     *
      +     * Format:
      +     * `projects/{project}/locations/{location}/inspectTemplates/{inspect_template}`
      +     * 
      + * + * + * string inspect_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearInspectTemplate() { + inspectTemplate_ = getDefaultInstance().getInspectTemplate(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. [DLP](https://cloud.google.com/dlp/docs) inspect template name to
      +     * configure detection of sensitive data types.
      +     *
      +     * Format:
      +     * `projects/{project}/locations/{location}/inspectTemplates/{inspect_template}`
      +     * 
      + * + * + * string inspect_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for inspectTemplate to set. + * @return This builder for chaining. + */ + public Builder setInspectTemplateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + inspectTemplate_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object deidentifyTemplate_ = ""; + + /** + * + * + *
      +     * Optional. [DLP](https://cloud.google.com/dlp/docs) deidentify template name
      +     * to instruct on how to de-identify content.
      +     *
      +     * Format:
      +     * `projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}`
      +     * 
      + * + * + * string deidentify_template = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The deidentifyTemplate. + */ + public java.lang.String getDeidentifyTemplate() { + java.lang.Object ref = deidentifyTemplate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deidentifyTemplate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. [DLP](https://cloud.google.com/dlp/docs) deidentify template name
      +     * to instruct on how to de-identify content.
      +     *
      +     * Format:
      +     * `projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}`
      +     * 
      + * + * + * string deidentify_template = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for deidentifyTemplate. + */ + public com.google.protobuf.ByteString getDeidentifyTemplateBytes() { + java.lang.Object ref = deidentifyTemplate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deidentifyTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. [DLP](https://cloud.google.com/dlp/docs) deidentify template name
      +     * to instruct on how to de-identify content.
      +     *
      +     * Format:
      +     * `projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}`
      +     * 
      + * + * + * string deidentify_template = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The deidentifyTemplate to set. + * @return This builder for chaining. + */ + public Builder setDeidentifyTemplate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deidentifyTemplate_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. [DLP](https://cloud.google.com/dlp/docs) deidentify template name
      +     * to instruct on how to de-identify content.
      +     *
      +     * Format:
      +     * `projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}`
      +     * 
      + * + * + * string deidentify_template = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDeidentifyTemplate() { + deidentifyTemplate_ = getDefaultInstance().getDeidentifyTemplate(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. [DLP](https://cloud.google.com/dlp/docs) deidentify template name
      +     * to instruct on how to de-identify content.
      +     *
      +     * Format:
      +     * `projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}`
      +     * 
      + * + * + * string deidentify_template = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for deidentifyTemplate to set. + * @return This builder for chaining. + */ + public Builder setDeidentifyTemplateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deidentifyTemplate_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.RedactionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.RedactionConfig) + private static final com.google.cloud.ces.v1.RedactionConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.RedactionConfig(); + } + + public static com.google.cloud.ces.v1.RedactionConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RedactionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.RedactionConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RedactionConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RedactionConfigOrBuilder.java new file mode 100644 index 000000000000..dc3ebf2b6139 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RedactionConfigOrBuilder.java @@ -0,0 +1,118 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface RedactionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.RedactionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. If true, redaction will be applied in various logging scenarios,
      +   * including conversation history, Cloud Logging and audio recording.
      +   * 
      + * + * bool enable_redaction = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableRedaction. + */ + boolean getEnableRedaction(); + + /** + * + * + *
      +   * Optional. [DLP](https://cloud.google.com/dlp/docs) inspect template name to
      +   * configure detection of sensitive data types.
      +   *
      +   * Format:
      +   * `projects/{project}/locations/{location}/inspectTemplates/{inspect_template}`
      +   * 
      + * + * + * string inspect_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The inspectTemplate. + */ + java.lang.String getInspectTemplate(); + + /** + * + * + *
      +   * Optional. [DLP](https://cloud.google.com/dlp/docs) inspect template name to
      +   * configure detection of sensitive data types.
      +   *
      +   * Format:
      +   * `projects/{project}/locations/{location}/inspectTemplates/{inspect_template}`
      +   * 
      + * + * + * string inspect_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for inspectTemplate. + */ + com.google.protobuf.ByteString getInspectTemplateBytes(); + + /** + * + * + *
      +   * Optional. [DLP](https://cloud.google.com/dlp/docs) deidentify template name
      +   * to instruct on how to de-identify content.
      +   *
      +   * Format:
      +   * `projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}`
      +   * 
      + * + * + * string deidentify_template = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The deidentifyTemplate. + */ + java.lang.String getDeidentifyTemplate(); + + /** + * + * + *
      +   * Optional. [DLP](https://cloud.google.com/dlp/docs) deidentify template name
      +   * to instruct on how to de-identify content.
      +   *
      +   * Format:
      +   * `projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}`
      +   * 
      + * + * + * string deidentify_template = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for deidentifyTemplate. + */ + com.google.protobuf.ByteString getDeidentifyTemplateBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RestoreAppVersionRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RestoreAppVersionRequest.java new file mode 100644 index 000000000000..88c1de823068 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RestoreAppVersionRequest.java @@ -0,0 +1,612 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.RestoreAppVersion][google.cloud.ces.v1.AgentService.RestoreAppVersion]
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.RestoreAppVersionRequest} + */ +@com.google.protobuf.Generated +public final class RestoreAppVersionRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.RestoreAppVersionRequest) + RestoreAppVersionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RestoreAppVersionRequest"); + } + + // Use RestoreAppVersionRequest.newBuilder() to construct. + private RestoreAppVersionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RestoreAppVersionRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_RestoreAppVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_RestoreAppVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.RestoreAppVersionRequest.class, + com.google.cloud.ces.v1.RestoreAppVersionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the app version to restore.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the app version to restore.
      +   * 
      + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.RestoreAppVersionRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.RestoreAppVersionRequest other = + (com.google.cloud.ces.v1.RestoreAppVersionRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.RestoreAppVersionRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.RestoreAppVersionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RestoreAppVersionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.RestoreAppVersionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RestoreAppVersionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.RestoreAppVersionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RestoreAppVersionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.RestoreAppVersionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RestoreAppVersionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.RestoreAppVersionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RestoreAppVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.RestoreAppVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.RestoreAppVersionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.RestoreAppVersion][google.cloud.ces.v1.AgentService.RestoreAppVersion]
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.RestoreAppVersionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.RestoreAppVersionRequest) + com.google.cloud.ces.v1.RestoreAppVersionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_RestoreAppVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_RestoreAppVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.RestoreAppVersionRequest.class, + com.google.cloud.ces.v1.RestoreAppVersionRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.RestoreAppVersionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_RestoreAppVersionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.RestoreAppVersionRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.RestoreAppVersionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.RestoreAppVersionRequest build() { + com.google.cloud.ces.v1.RestoreAppVersionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.RestoreAppVersionRequest buildPartial() { + com.google.cloud.ces.v1.RestoreAppVersionRequest result = + new com.google.cloud.ces.v1.RestoreAppVersionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.RestoreAppVersionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.RestoreAppVersionRequest) { + return mergeFrom((com.google.cloud.ces.v1.RestoreAppVersionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.RestoreAppVersionRequest other) { + if (other == com.google.cloud.ces.v1.RestoreAppVersionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the app version to restore.
      +     * 
      + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app version to restore.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app version to restore.
      +     * 
      + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app version to restore.
      +     * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app version to restore.
      +     * 
      + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.RestoreAppVersionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.RestoreAppVersionRequest) + private static final com.google.cloud.ces.v1.RestoreAppVersionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.RestoreAppVersionRequest(); + } + + public static com.google.cloud.ces.v1.RestoreAppVersionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RestoreAppVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.RestoreAppVersionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RestoreAppVersionRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RestoreAppVersionRequestOrBuilder.java new file mode 100644 index 000000000000..624312321fa0 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RestoreAppVersionRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface RestoreAppVersionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.RestoreAppVersionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the app version to restore.
      +   * 
      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. The resource name of the app version to restore.
      +   * 
      + * + * + * 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-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RestoreAppVersionResponse.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RestoreAppVersionResponse.java new file mode 100644 index 000000000000..84d266185576 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RestoreAppVersionResponse.java @@ -0,0 +1,398 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Response message for
      + * [AgentService.RestoreAppVersion][google.cloud.ces.v1.AgentService.RestoreAppVersion]
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.RestoreAppVersionResponse} + */ +@com.google.protobuf.Generated +public final class RestoreAppVersionResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.RestoreAppVersionResponse) + RestoreAppVersionResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RestoreAppVersionResponse"); + } + + // Use RestoreAppVersionResponse.newBuilder() to construct. + private RestoreAppVersionResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RestoreAppVersionResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_RestoreAppVersionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_RestoreAppVersionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.RestoreAppVersionResponse.class, + com.google.cloud.ces.v1.RestoreAppVersionResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.RestoreAppVersionResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.RestoreAppVersionResponse other = + (com.google.cloud.ces.v1.RestoreAppVersionResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.RestoreAppVersionResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.RestoreAppVersionResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RestoreAppVersionResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.RestoreAppVersionResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RestoreAppVersionResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.RestoreAppVersionResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RestoreAppVersionResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.RestoreAppVersionResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RestoreAppVersionResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.RestoreAppVersionResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RestoreAppVersionResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.RestoreAppVersionResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.RestoreAppVersionResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Response message for
      +   * [AgentService.RestoreAppVersion][google.cloud.ces.v1.AgentService.RestoreAppVersion]
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.RestoreAppVersionResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.RestoreAppVersionResponse) + com.google.cloud.ces.v1.RestoreAppVersionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_RestoreAppVersionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_RestoreAppVersionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.RestoreAppVersionResponse.class, + com.google.cloud.ces.v1.RestoreAppVersionResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.RestoreAppVersionResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_RestoreAppVersionResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.RestoreAppVersionResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1.RestoreAppVersionResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.RestoreAppVersionResponse build() { + com.google.cloud.ces.v1.RestoreAppVersionResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.RestoreAppVersionResponse buildPartial() { + com.google.cloud.ces.v1.RestoreAppVersionResponse result = + new com.google.cloud.ces.v1.RestoreAppVersionResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.RestoreAppVersionResponse) { + return mergeFrom((com.google.cloud.ces.v1.RestoreAppVersionResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.RestoreAppVersionResponse other) { + if (other == com.google.cloud.ces.v1.RestoreAppVersionResponse.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.RestoreAppVersionResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.RestoreAppVersionResponse) + private static final com.google.cloud.ces.v1.RestoreAppVersionResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.RestoreAppVersionResponse(); + } + + public static com.google.cloud.ces.v1.RestoreAppVersionResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RestoreAppVersionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.RestoreAppVersionResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RestoreAppVersionResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RestoreAppVersionResponseOrBuilder.java new file mode 100644 index 000000000000..97ba421e67a0 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RestoreAppVersionResponseOrBuilder.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface RestoreAppVersionResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.RestoreAppVersionResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolSchemaRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolSchemaRequest.java new file mode 100644 index 000000000000..8415e953d639 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolSchemaRequest.java @@ -0,0 +1,1333 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/tool_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [ToolService.RetrieveToolSchema][google.cloud.ces.v1.ToolService.RetrieveToolSchema].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.RetrieveToolSchemaRequest} + */ +@com.google.protobuf.Generated +public final class RetrieveToolSchemaRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.RetrieveToolSchemaRequest) + RetrieveToolSchemaRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RetrieveToolSchemaRequest"); + } + + // Use RetrieveToolSchemaRequest.newBuilder() to construct. + private RetrieveToolSchemaRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RetrieveToolSchemaRequest() { + parent_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ToolServiceProto + .internal_static_google_cloud_ces_v1_RetrieveToolSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ToolServiceProto + .internal_static_google_cloud_ces_v1_RetrieveToolSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.RetrieveToolSchemaRequest.class, + com.google.cloud.ces.v1.RetrieveToolSchemaRequest.Builder.class); + } + + private int toolIdentifierCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object toolIdentifier_; + + public enum ToolIdentifierCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TOOL(1), + TOOLSET_TOOL(2), + TOOLIDENTIFIER_NOT_SET(0); + private final int value; + + private ToolIdentifierCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ToolIdentifierCase valueOf(int value) { + return forNumber(value); + } + + public static ToolIdentifierCase forNumber(int value) { + switch (value) { + case 1: + return TOOL; + case 2: + return TOOLSET_TOOL; + case 0: + return TOOLIDENTIFIER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ToolIdentifierCase getToolIdentifierCase() { + return ToolIdentifierCase.forNumber(toolIdentifierCase_); + } + + public static final int TOOL_FIELD_NUMBER = 1; + + /** + * + * + *
      +   * Optional. The name of the tool to retrieve the schema for.
      +   * Format:
      +   * projects/{project}/locations/{location}/apps/{app}/tools/{tool}
      +   * 
      + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the tool field is set. + */ + public boolean hasTool() { + return toolIdentifierCase_ == 1; + } + + /** + * + * + *
      +   * Optional. The name of the tool to retrieve the schema for.
      +   * Format:
      +   * projects/{project}/locations/{location}/apps/{app}/tools/{tool}
      +   * 
      + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The tool. + */ + public java.lang.String getTool() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 1) { + ref = toolIdentifier_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (toolIdentifierCase_ == 1) { + toolIdentifier_ = s; + } + return s; + } + } + + /** + * + * + *
      +   * Optional. The name of the tool to retrieve the schema for.
      +   * Format:
      +   * projects/{project}/locations/{location}/apps/{app}/tools/{tool}
      +   * 
      + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tool. + */ + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 1) { + ref = toolIdentifier_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (toolIdentifierCase_ == 1) { + toolIdentifier_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOLSET_TOOL_FIELD_NUMBER = 2; + + /** + * + * + *
      +   * Optional. The toolset tool to retrieve the schema for. Only one tool
      +   * should match the predicate from the toolset. Otherwise, an error will be
      +   * returned.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolsetTool field is set. + */ + @java.lang.Override + public boolean hasToolsetTool() { + return toolIdentifierCase_ == 2; + } + + /** + * + * + *
      +   * Optional. The toolset tool to retrieve the schema for. Only one tool
      +   * should match the predicate from the toolset. Otherwise, an error will be
      +   * returned.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolsetTool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetTool getToolsetTool() { + if (toolIdentifierCase_ == 2) { + return (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. The toolset tool to retrieve the schema for. Only one tool
      +   * should match the predicate from the toolset. Otherwise, an error will be
      +   * returned.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetToolOrBuilder() { + if (toolIdentifierCase_ == 2) { + return (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + + public static final int PARENT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the app which the tool/toolset belongs to.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}`
      +   * 
      + * + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the app which the tool/toolset belongs to.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}`
      +   * 
      + * + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (toolIdentifierCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, toolIdentifier_); + } + if (toolIdentifierCase_ == 2) { + output.writeMessage(2, (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, parent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (toolIdentifierCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, toolIdentifier_); + } + if (toolIdentifierCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, parent_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.RetrieveToolSchemaRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.RetrieveToolSchemaRequest other = + (com.google.cloud.ces.v1.RetrieveToolSchemaRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getToolIdentifierCase().equals(other.getToolIdentifierCase())) return false; + switch (toolIdentifierCase_) { + case 1: + if (!getTool().equals(other.getTool())) return false; + break; + case 2: + if (!getToolsetTool().equals(other.getToolsetTool())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + switch (toolIdentifierCase_) { + case 1: + hash = (37 * hash) + TOOL_FIELD_NUMBER; + hash = (53 * hash) + getTool().hashCode(); + break; + case 2: + hash = (37 * hash) + TOOLSET_TOOL_FIELD_NUMBER; + hash = (53 * hash) + getToolsetTool().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.RetrieveToolSchemaRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.RetrieveToolSchemaRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RetrieveToolSchemaRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.RetrieveToolSchemaRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RetrieveToolSchemaRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.RetrieveToolSchemaRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RetrieveToolSchemaRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.RetrieveToolSchemaRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RetrieveToolSchemaRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.RetrieveToolSchemaRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RetrieveToolSchemaRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.RetrieveToolSchemaRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.RetrieveToolSchemaRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [ToolService.RetrieveToolSchema][google.cloud.ces.v1.ToolService.RetrieveToolSchema].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.RetrieveToolSchemaRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.RetrieveToolSchemaRequest) + com.google.cloud.ces.v1.RetrieveToolSchemaRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ToolServiceProto + .internal_static_google_cloud_ces_v1_RetrieveToolSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ToolServiceProto + .internal_static_google_cloud_ces_v1_RetrieveToolSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.RetrieveToolSchemaRequest.class, + com.google.cloud.ces.v1.RetrieveToolSchemaRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.RetrieveToolSchemaRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolsetToolBuilder_ != null) { + toolsetToolBuilder_.clear(); + } + parent_ = ""; + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.ToolServiceProto + .internal_static_google_cloud_ces_v1_RetrieveToolSchemaRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.RetrieveToolSchemaRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.RetrieveToolSchemaRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.RetrieveToolSchemaRequest build() { + com.google.cloud.ces.v1.RetrieveToolSchemaRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.RetrieveToolSchemaRequest buildPartial() { + com.google.cloud.ces.v1.RetrieveToolSchemaRequest result = + new com.google.cloud.ces.v1.RetrieveToolSchemaRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.RetrieveToolSchemaRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.parent_ = parent_; + } + } + + private void buildPartialOneofs(com.google.cloud.ces.v1.RetrieveToolSchemaRequest result) { + result.toolIdentifierCase_ = toolIdentifierCase_; + result.toolIdentifier_ = this.toolIdentifier_; + if (toolIdentifierCase_ == 2 && toolsetToolBuilder_ != null) { + result.toolIdentifier_ = toolsetToolBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.RetrieveToolSchemaRequest) { + return mergeFrom((com.google.cloud.ces.v1.RetrieveToolSchemaRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.RetrieveToolSchemaRequest other) { + if (other == com.google.cloud.ces.v1.RetrieveToolSchemaRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000004; + onChanged(); + } + switch (other.getToolIdentifierCase()) { + case TOOL: + { + toolIdentifierCase_ = 1; + toolIdentifier_ = other.toolIdentifier_; + onChanged(); + break; + } + case TOOLSET_TOOL: + { + mergeToolsetTool(other.getToolsetTool()); + break; + } + case TOOLIDENTIFIER_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + toolIdentifierCase_ = 1; + toolIdentifier_ = s; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetToolsetToolFieldBuilder().getBuilder(), extensionRegistry); + toolIdentifierCase_ = 2; + break; + } // case 18 + case 26: + { + parent_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int toolIdentifierCase_ = 0; + private java.lang.Object toolIdentifier_; + + public ToolIdentifierCase getToolIdentifierCase() { + return ToolIdentifierCase.forNumber(toolIdentifierCase_); + } + + public Builder clearToolIdentifier() { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
      +     * Optional. The name of the tool to retrieve the schema for.
      +     * Format:
      +     * projects/{project}/locations/{location}/apps/{app}/tools/{tool}
      +     * 
      + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the tool field is set. + */ + @java.lang.Override + public boolean hasTool() { + return toolIdentifierCase_ == 1; + } + + /** + * + * + *
      +     * Optional. The name of the tool to retrieve the schema for.
      +     * Format:
      +     * projects/{project}/locations/{location}/apps/{app}/tools/{tool}
      +     * 
      + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The tool. + */ + @java.lang.Override + public java.lang.String getTool() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 1) { + ref = toolIdentifier_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (toolIdentifierCase_ == 1) { + toolIdentifier_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The name of the tool to retrieve the schema for.
      +     * Format:
      +     * projects/{project}/locations/{location}/apps/{app}/tools/{tool}
      +     * 
      + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 1) { + ref = toolIdentifier_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (toolIdentifierCase_ == 1) { + toolIdentifier_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The name of the tool to retrieve the schema for.
      +     * Format:
      +     * projects/{project}/locations/{location}/apps/{app}/tools/{tool}
      +     * 
      + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The tool to set. + * @return This builder for chaining. + */ + public Builder setTool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolIdentifierCase_ = 1; + toolIdentifier_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The name of the tool to retrieve the schema for.
      +     * Format:
      +     * projects/{project}/locations/{location}/apps/{app}/tools/{tool}
      +     * 
      + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTool() { + if (toolIdentifierCase_ == 1) { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The name of the tool to retrieve the schema for.
      +     * Format:
      +     * projects/{project}/locations/{location}/apps/{app}/tools/{tool}
      +     * 
      + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for tool to set. + * @return This builder for chaining. + */ + public Builder setToolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolIdentifierCase_ = 1; + toolIdentifier_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolsetTool, + com.google.cloud.ces.v1.ToolsetTool.Builder, + com.google.cloud.ces.v1.ToolsetToolOrBuilder> + toolsetToolBuilder_; + + /** + * + * + *
      +     * Optional. The toolset tool to retrieve the schema for. Only one tool
      +     * should match the predicate from the toolset. Otherwise, an error will be
      +     * returned.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolsetTool field is set. + */ + @java.lang.Override + public boolean hasToolsetTool() { + return toolIdentifierCase_ == 2; + } + + /** + * + * + *
      +     * Optional. The toolset tool to retrieve the schema for. Only one tool
      +     * should match the predicate from the toolset. Otherwise, an error will be
      +     * returned.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolsetTool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetTool getToolsetTool() { + if (toolsetToolBuilder_ == null) { + if (toolIdentifierCase_ == 2) { + return (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } else { + if (toolIdentifierCase_ == 2) { + return toolsetToolBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The toolset tool to retrieve the schema for. Only one tool
      +     * should match the predicate from the toolset. Otherwise, an error will be
      +     * returned.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolsetTool(com.google.cloud.ces.v1.ToolsetTool value) { + if (toolsetToolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolIdentifier_ = value; + onChanged(); + } else { + toolsetToolBuilder_.setMessage(value); + } + toolIdentifierCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Optional. The toolset tool to retrieve the schema for. Only one tool
      +     * should match the predicate from the toolset. Otherwise, an error will be
      +     * returned.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolsetTool(com.google.cloud.ces.v1.ToolsetTool.Builder builderForValue) { + if (toolsetToolBuilder_ == null) { + toolIdentifier_ = builderForValue.build(); + onChanged(); + } else { + toolsetToolBuilder_.setMessage(builderForValue.build()); + } + toolIdentifierCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Optional. The toolset tool to retrieve the schema for. Only one tool
      +     * should match the predicate from the toolset. Otherwise, an error will be
      +     * returned.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeToolsetTool(com.google.cloud.ces.v1.ToolsetTool value) { + if (toolsetToolBuilder_ == null) { + if (toolIdentifierCase_ == 2 + && toolIdentifier_ != com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance()) { + toolIdentifier_ = + com.google.cloud.ces.v1.ToolsetTool.newBuilder( + (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_) + .mergeFrom(value) + .buildPartial(); + } else { + toolIdentifier_ = value; + } + onChanged(); + } else { + if (toolIdentifierCase_ == 2) { + toolsetToolBuilder_.mergeFrom(value); + } else { + toolsetToolBuilder_.setMessage(value); + } + } + toolIdentifierCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Optional. The toolset tool to retrieve the schema for. Only one tool
      +     * should match the predicate from the toolset. Otherwise, an error will be
      +     * returned.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearToolsetTool() { + if (toolsetToolBuilder_ == null) { + if (toolIdentifierCase_ == 2) { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + onChanged(); + } + } else { + if (toolIdentifierCase_ == 2) { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + } + toolsetToolBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The toolset tool to retrieve the schema for. Only one tool
      +     * should match the predicate from the toolset. Otherwise, an error will be
      +     * returned.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ToolsetTool.Builder getToolsetToolBuilder() { + return internalGetToolsetToolFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The toolset tool to retrieve the schema for. Only one tool
      +     * should match the predicate from the toolset. Otherwise, an error will be
      +     * returned.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetToolOrBuilder() { + if ((toolIdentifierCase_ == 2) && (toolsetToolBuilder_ != null)) { + return toolsetToolBuilder_.getMessageOrBuilder(); + } else { + if (toolIdentifierCase_ == 2) { + return (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The toolset tool to retrieve the schema for. Only one tool
      +     * should match the predicate from the toolset. Otherwise, an error will be
      +     * returned.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolsetTool, + com.google.cloud.ces.v1.ToolsetTool.Builder, + com.google.cloud.ces.v1.ToolsetToolOrBuilder> + internalGetToolsetToolFieldBuilder() { + if (toolsetToolBuilder_ == null) { + if (!(toolIdentifierCase_ == 2)) { + toolIdentifier_ = com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + toolsetToolBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolsetTool, + com.google.cloud.ces.v1.ToolsetTool.Builder, + com.google.cloud.ces.v1.ToolsetToolOrBuilder>( + (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_, + getParentForChildren(), + isClean()); + toolIdentifier_ = null; + } + toolIdentifierCase_ = 2; + onChanged(); + return toolsetToolBuilder_; + } + + private java.lang.Object parent_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the app which the tool/toolset belongs to.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}`
      +     * 
      + * + * + * string parent = 3 [(.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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app which the tool/toolset belongs to.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}`
      +     * 
      + * + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the app which the tool/toolset belongs to.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}`
      +     * 
      + * + * + * string parent = 3 [(.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(); + } + parent_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app which the tool/toolset belongs to.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}`
      +     * 
      + * + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the app which the tool/toolset belongs to.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}`
      +     * 
      + * + * + * string parent = 3 [(.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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.RetrieveToolSchemaRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.RetrieveToolSchemaRequest) + private static final com.google.cloud.ces.v1.RetrieveToolSchemaRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.RetrieveToolSchemaRequest(); + } + + public static com.google.cloud.ces.v1.RetrieveToolSchemaRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetrieveToolSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.RetrieveToolSchemaRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolSchemaRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolSchemaRequestOrBuilder.java new file mode 100644 index 000000000000..e7f74ca6addf --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolSchemaRequestOrBuilder.java @@ -0,0 +1,162 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/tool_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface RetrieveToolSchemaRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.RetrieveToolSchemaRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. The name of the tool to retrieve the schema for.
      +   * Format:
      +   * projects/{project}/locations/{location}/apps/{app}/tools/{tool}
      +   * 
      + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the tool field is set. + */ + boolean hasTool(); + + /** + * + * + *
      +   * Optional. The name of the tool to retrieve the schema for.
      +   * Format:
      +   * projects/{project}/locations/{location}/apps/{app}/tools/{tool}
      +   * 
      + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The tool. + */ + java.lang.String getTool(); + + /** + * + * + *
      +   * Optional. The name of the tool to retrieve the schema for.
      +   * Format:
      +   * projects/{project}/locations/{location}/apps/{app}/tools/{tool}
      +   * 
      + * + * + * string tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tool. + */ + com.google.protobuf.ByteString getToolBytes(); + + /** + * + * + *
      +   * Optional. The toolset tool to retrieve the schema for. Only one tool
      +   * should match the predicate from the toolset. Otherwise, an error will be
      +   * returned.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolsetTool field is set. + */ + boolean hasToolsetTool(); + + /** + * + * + *
      +   * Optional. The toolset tool to retrieve the schema for. Only one tool
      +   * should match the predicate from the toolset. Otherwise, an error will be
      +   * returned.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolsetTool. + */ + com.google.cloud.ces.v1.ToolsetTool getToolsetTool(); + + /** + * + * + *
      +   * Optional. The toolset tool to retrieve the schema for. Only one tool
      +   * should match the predicate from the toolset. Otherwise, an error will be
      +   * returned.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetToolOrBuilder(); + + /** + * + * + *
      +   * Required. The resource name of the app which the tool/toolset belongs to.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}`
      +   * 
      + * + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
      +   * Required. The resource name of the app which the tool/toolset belongs to.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}`
      +   * 
      + * + * + * string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + com.google.cloud.ces.v1.RetrieveToolSchemaRequest.ToolIdentifierCase getToolIdentifierCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolSchemaResponse.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolSchemaResponse.java new file mode 100644 index 000000000000..2730c970e430 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolSchemaResponse.java @@ -0,0 +1,1655 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/tool_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Response message for
      + * [ToolService.RetrieveToolSchema][google.cloud.ces.v1.ToolService.RetrieveToolSchema].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.RetrieveToolSchemaResponse} + */ +@com.google.protobuf.Generated +public final class RetrieveToolSchemaResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.RetrieveToolSchemaResponse) + RetrieveToolSchemaResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RetrieveToolSchemaResponse"); + } + + // Use RetrieveToolSchemaResponse.newBuilder() to construct. + private RetrieveToolSchemaResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RetrieveToolSchemaResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ToolServiceProto + .internal_static_google_cloud_ces_v1_RetrieveToolSchemaResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ToolServiceProto + .internal_static_google_cloud_ces_v1_RetrieveToolSchemaResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.RetrieveToolSchemaResponse.class, + com.google.cloud.ces.v1.RetrieveToolSchemaResponse.Builder.class); + } + + private int bitField0_; + private int toolIdentifierCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object toolIdentifier_; + + public enum ToolIdentifierCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TOOL(1), + TOOLSET_TOOL(2), + TOOLIDENTIFIER_NOT_SET(0); + private final int value; + + private ToolIdentifierCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ToolIdentifierCase valueOf(int value) { + return forNumber(value); + } + + public static ToolIdentifierCase forNumber(int value) { + switch (value) { + case 1: + return TOOL; + case 2: + return TOOLSET_TOOL; + case 0: + return TOOLIDENTIFIER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ToolIdentifierCase getToolIdentifierCase() { + return ToolIdentifierCase.forNumber(toolIdentifierCase_); + } + + public static final int TOOL_FIELD_NUMBER = 1; + + /** + * + * + *
      +   * The name of the tool that the schema is for.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +   * 
      + * + * string tool = 1 [(.google.api.resource_reference) = { ... } + * + * @return Whether the tool field is set. + */ + public boolean hasTool() { + return toolIdentifierCase_ == 1; + } + + /** + * + * + *
      +   * The name of the tool that the schema is for.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +   * 
      + * + * string tool = 1 [(.google.api.resource_reference) = { ... } + * + * @return The tool. + */ + public java.lang.String getTool() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 1) { + ref = toolIdentifier_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (toolIdentifierCase_ == 1) { + toolIdentifier_ = s; + } + return s; + } + } + + /** + * + * + *
      +   * The name of the tool that the schema is for.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +   * 
      + * + * string tool = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for tool. + */ + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 1) { + ref = toolIdentifier_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (toolIdentifierCase_ == 1) { + toolIdentifier_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOLSET_TOOL_FIELD_NUMBER = 2; + + /** + * + * + *
      +   * The toolset tool that the schema is for.
      +   * 
      + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 2; + * + * @return Whether the toolsetTool field is set. + */ + @java.lang.Override + public boolean hasToolsetTool() { + return toolIdentifierCase_ == 2; + } + + /** + * + * + *
      +   * The toolset tool that the schema is for.
      +   * 
      + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 2; + * + * @return The toolsetTool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetTool getToolsetTool() { + if (toolIdentifierCase_ == 2) { + return (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + + /** + * + * + *
      +   * The toolset tool that the schema is for.
      +   * 
      + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 2; + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetToolOrBuilder() { + if (toolIdentifierCase_ == 2) { + return (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + + public static final int INPUT_SCHEMA_FIELD_NUMBER = 3; + private com.google.cloud.ces.v1.Schema inputSchema_; + + /** + * + * + *
      +   * Required. The schema of the tool input parameters.
      +   * 
      + * + * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the inputSchema field is set. + */ + @java.lang.Override + public boolean hasInputSchema() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Required. The schema of the tool input parameters.
      +   * 
      + * + * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The inputSchema. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Schema getInputSchema() { + return inputSchema_ == null + ? com.google.cloud.ces.v1.Schema.getDefaultInstance() + : inputSchema_; + } + + /** + * + * + *
      +   * Required. The schema of the tool input parameters.
      +   * 
      + * + * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.SchemaOrBuilder getInputSchemaOrBuilder() { + return inputSchema_ == null + ? com.google.cloud.ces.v1.Schema.getDefaultInstance() + : inputSchema_; + } + + public static final int OUTPUT_SCHEMA_FIELD_NUMBER = 4; + private com.google.cloud.ces.v1.Schema outputSchema_; + + /** + * + * + *
      +   * Required. The schema of the tool output parameters.
      +   * 
      + * + * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the outputSchema field is set. + */ + @java.lang.Override + public boolean hasOutputSchema() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Required. The schema of the tool output parameters.
      +   * 
      + * + * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The outputSchema. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Schema getOutputSchema() { + return outputSchema_ == null + ? com.google.cloud.ces.v1.Schema.getDefaultInstance() + : outputSchema_; + } + + /** + * + * + *
      +   * Required. The schema of the tool output parameters.
      +   * 
      + * + * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.SchemaOrBuilder getOutputSchemaOrBuilder() { + return outputSchema_ == null + ? com.google.cloud.ces.v1.Schema.getDefaultInstance() + : outputSchema_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (toolIdentifierCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, toolIdentifier_); + } + if (toolIdentifierCase_ == 2) { + output.writeMessage(2, (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getInputSchema()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getOutputSchema()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (toolIdentifierCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, toolIdentifier_); + } + if (toolIdentifierCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInputSchema()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getOutputSchema()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.RetrieveToolSchemaResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.RetrieveToolSchemaResponse other = + (com.google.cloud.ces.v1.RetrieveToolSchemaResponse) obj; + + if (hasInputSchema() != other.hasInputSchema()) return false; + if (hasInputSchema()) { + if (!getInputSchema().equals(other.getInputSchema())) return false; + } + if (hasOutputSchema() != other.hasOutputSchema()) return false; + if (hasOutputSchema()) { + if (!getOutputSchema().equals(other.getOutputSchema())) return false; + } + if (!getToolIdentifierCase().equals(other.getToolIdentifierCase())) return false; + switch (toolIdentifierCase_) { + case 1: + if (!getTool().equals(other.getTool())) return false; + break; + case 2: + if (!getToolsetTool().equals(other.getToolsetTool())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasInputSchema()) { + hash = (37 * hash) + INPUT_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getInputSchema().hashCode(); + } + if (hasOutputSchema()) { + hash = (37 * hash) + OUTPUT_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getOutputSchema().hashCode(); + } + switch (toolIdentifierCase_) { + case 1: + hash = (37 * hash) + TOOL_FIELD_NUMBER; + hash = (53 * hash) + getTool().hashCode(); + break; + case 2: + hash = (37 * hash) + TOOLSET_TOOL_FIELD_NUMBER; + hash = (53 * hash) + getToolsetTool().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.RetrieveToolSchemaResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.RetrieveToolSchemaResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RetrieveToolSchemaResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.RetrieveToolSchemaResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RetrieveToolSchemaResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.RetrieveToolSchemaResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RetrieveToolSchemaResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.RetrieveToolSchemaResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RetrieveToolSchemaResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.RetrieveToolSchemaResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RetrieveToolSchemaResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.RetrieveToolSchemaResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.RetrieveToolSchemaResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Response message for
      +   * [ToolService.RetrieveToolSchema][google.cloud.ces.v1.ToolService.RetrieveToolSchema].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.RetrieveToolSchemaResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.RetrieveToolSchemaResponse) + com.google.cloud.ces.v1.RetrieveToolSchemaResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ToolServiceProto + .internal_static_google_cloud_ces_v1_RetrieveToolSchemaResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ToolServiceProto + .internal_static_google_cloud_ces_v1_RetrieveToolSchemaResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.RetrieveToolSchemaResponse.class, + com.google.cloud.ces.v1.RetrieveToolSchemaResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.RetrieveToolSchemaResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetInputSchemaFieldBuilder(); + internalGetOutputSchemaFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolsetToolBuilder_ != null) { + toolsetToolBuilder_.clear(); + } + inputSchema_ = null; + if (inputSchemaBuilder_ != null) { + inputSchemaBuilder_.dispose(); + inputSchemaBuilder_ = null; + } + outputSchema_ = null; + if (outputSchemaBuilder_ != null) { + outputSchemaBuilder_.dispose(); + outputSchemaBuilder_ = null; + } + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.ToolServiceProto + .internal_static_google_cloud_ces_v1_RetrieveToolSchemaResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.RetrieveToolSchemaResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1.RetrieveToolSchemaResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.RetrieveToolSchemaResponse build() { + com.google.cloud.ces.v1.RetrieveToolSchemaResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.RetrieveToolSchemaResponse buildPartial() { + com.google.cloud.ces.v1.RetrieveToolSchemaResponse result = + new com.google.cloud.ces.v1.RetrieveToolSchemaResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.RetrieveToolSchemaResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.inputSchema_ = + inputSchemaBuilder_ == null ? inputSchema_ : inputSchemaBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.outputSchema_ = + outputSchemaBuilder_ == null ? outputSchema_ : outputSchemaBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.ces.v1.RetrieveToolSchemaResponse result) { + result.toolIdentifierCase_ = toolIdentifierCase_; + result.toolIdentifier_ = this.toolIdentifier_; + if (toolIdentifierCase_ == 2 && toolsetToolBuilder_ != null) { + result.toolIdentifier_ = toolsetToolBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.RetrieveToolSchemaResponse) { + return mergeFrom((com.google.cloud.ces.v1.RetrieveToolSchemaResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.RetrieveToolSchemaResponse other) { + if (other == com.google.cloud.ces.v1.RetrieveToolSchemaResponse.getDefaultInstance()) + return this; + if (other.hasInputSchema()) { + mergeInputSchema(other.getInputSchema()); + } + if (other.hasOutputSchema()) { + mergeOutputSchema(other.getOutputSchema()); + } + switch (other.getToolIdentifierCase()) { + case TOOL: + { + toolIdentifierCase_ = 1; + toolIdentifier_ = other.toolIdentifier_; + onChanged(); + break; + } + case TOOLSET_TOOL: + { + mergeToolsetTool(other.getToolsetTool()); + break; + } + case TOOLIDENTIFIER_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + toolIdentifierCase_ = 1; + toolIdentifier_ = s; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetToolsetToolFieldBuilder().getBuilder(), extensionRegistry); + toolIdentifierCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetInputSchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetOutputSchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int toolIdentifierCase_ = 0; + private java.lang.Object toolIdentifier_; + + public ToolIdentifierCase getToolIdentifierCase() { + return ToolIdentifierCase.forNumber(toolIdentifierCase_); + } + + public Builder clearToolIdentifier() { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
      +     * The name of the tool that the schema is for.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +     * 
      + * + * string tool = 1 [(.google.api.resource_reference) = { ... } + * + * @return Whether the tool field is set. + */ + @java.lang.Override + public boolean hasTool() { + return toolIdentifierCase_ == 1; + } + + /** + * + * + *
      +     * The name of the tool that the schema is for.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +     * 
      + * + * string tool = 1 [(.google.api.resource_reference) = { ... } + * + * @return The tool. + */ + @java.lang.Override + public java.lang.String getTool() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 1) { + ref = toolIdentifier_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (toolIdentifierCase_ == 1) { + toolIdentifier_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * The name of the tool that the schema is for.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +     * 
      + * + * string tool = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for tool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 1) { + ref = toolIdentifier_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (toolIdentifierCase_ == 1) { + toolIdentifier_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * The name of the tool that the schema is for.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +     * 
      + * + * string tool = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The tool to set. + * @return This builder for chaining. + */ + public Builder setTool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolIdentifierCase_ = 1; + toolIdentifier_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The name of the tool that the schema is for.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +     * 
      + * + * string tool = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearTool() { + if (toolIdentifierCase_ == 1) { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * The name of the tool that the schema is for.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +     * 
      + * + * string tool = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for tool to set. + * @return This builder for chaining. + */ + public Builder setToolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolIdentifierCase_ = 1; + toolIdentifier_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolsetTool, + com.google.cloud.ces.v1.ToolsetTool.Builder, + com.google.cloud.ces.v1.ToolsetToolOrBuilder> + toolsetToolBuilder_; + + /** + * + * + *
      +     * The toolset tool that the schema is for.
      +     * 
      + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 2; + * + * @return Whether the toolsetTool field is set. + */ + @java.lang.Override + public boolean hasToolsetTool() { + return toolIdentifierCase_ == 2; + } + + /** + * + * + *
      +     * The toolset tool that the schema is for.
      +     * 
      + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 2; + * + * @return The toolsetTool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetTool getToolsetTool() { + if (toolsetToolBuilder_ == null) { + if (toolIdentifierCase_ == 2) { + return (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } else { + if (toolIdentifierCase_ == 2) { + return toolsetToolBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * The toolset tool that the schema is for.
      +     * 
      + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 2; + */ + public Builder setToolsetTool(com.google.cloud.ces.v1.ToolsetTool value) { + if (toolsetToolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolIdentifier_ = value; + onChanged(); + } else { + toolsetToolBuilder_.setMessage(value); + } + toolIdentifierCase_ = 2; + return this; + } + + /** + * + * + *
      +     * The toolset tool that the schema is for.
      +     * 
      + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 2; + */ + public Builder setToolsetTool(com.google.cloud.ces.v1.ToolsetTool.Builder builderForValue) { + if (toolsetToolBuilder_ == null) { + toolIdentifier_ = builderForValue.build(); + onChanged(); + } else { + toolsetToolBuilder_.setMessage(builderForValue.build()); + } + toolIdentifierCase_ = 2; + return this; + } + + /** + * + * + *
      +     * The toolset tool that the schema is for.
      +     * 
      + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 2; + */ + public Builder mergeToolsetTool(com.google.cloud.ces.v1.ToolsetTool value) { + if (toolsetToolBuilder_ == null) { + if (toolIdentifierCase_ == 2 + && toolIdentifier_ != com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance()) { + toolIdentifier_ = + com.google.cloud.ces.v1.ToolsetTool.newBuilder( + (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_) + .mergeFrom(value) + .buildPartial(); + } else { + toolIdentifier_ = value; + } + onChanged(); + } else { + if (toolIdentifierCase_ == 2) { + toolsetToolBuilder_.mergeFrom(value); + } else { + toolsetToolBuilder_.setMessage(value); + } + } + toolIdentifierCase_ = 2; + return this; + } + + /** + * + * + *
      +     * The toolset tool that the schema is for.
      +     * 
      + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 2; + */ + public Builder clearToolsetTool() { + if (toolsetToolBuilder_ == null) { + if (toolIdentifierCase_ == 2) { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + onChanged(); + } + } else { + if (toolIdentifierCase_ == 2) { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + } + toolsetToolBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * The toolset tool that the schema is for.
      +     * 
      + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 2; + */ + public com.google.cloud.ces.v1.ToolsetTool.Builder getToolsetToolBuilder() { + return internalGetToolsetToolFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * The toolset tool that the schema is for.
      +     * 
      + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 2; + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetToolOrBuilder() { + if ((toolIdentifierCase_ == 2) && (toolsetToolBuilder_ != null)) { + return toolsetToolBuilder_.getMessageOrBuilder(); + } else { + if (toolIdentifierCase_ == 2) { + return (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * The toolset tool that the schema is for.
      +     * 
      + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolsetTool, + com.google.cloud.ces.v1.ToolsetTool.Builder, + com.google.cloud.ces.v1.ToolsetToolOrBuilder> + internalGetToolsetToolFieldBuilder() { + if (toolsetToolBuilder_ == null) { + if (!(toolIdentifierCase_ == 2)) { + toolIdentifier_ = com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + toolsetToolBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolsetTool, + com.google.cloud.ces.v1.ToolsetTool.Builder, + com.google.cloud.ces.v1.ToolsetToolOrBuilder>( + (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_, + getParentForChildren(), + isClean()); + toolIdentifier_ = null; + } + toolIdentifierCase_ = 2; + onChanged(); + return toolsetToolBuilder_; + } + + private com.google.cloud.ces.v1.Schema inputSchema_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder> + inputSchemaBuilder_; + + /** + * + * + *
      +     * Required. The schema of the tool input parameters.
      +     * 
      + * + * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the inputSchema field is set. + */ + public boolean hasInputSchema() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Required. The schema of the tool input parameters.
      +     * 
      + * + * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The inputSchema. + */ + public com.google.cloud.ces.v1.Schema getInputSchema() { + if (inputSchemaBuilder_ == null) { + return inputSchema_ == null + ? com.google.cloud.ces.v1.Schema.getDefaultInstance() + : inputSchema_; + } else { + return inputSchemaBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Required. The schema of the tool input parameters.
      +     * 
      + * + * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInputSchema(com.google.cloud.ces.v1.Schema value) { + if (inputSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputSchema_ = value; + } else { + inputSchemaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The schema of the tool input parameters.
      +     * 
      + * + * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInputSchema(com.google.cloud.ces.v1.Schema.Builder builderForValue) { + if (inputSchemaBuilder_ == null) { + inputSchema_ = builderForValue.build(); + } else { + inputSchemaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The schema of the tool input parameters.
      +     * 
      + * + * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeInputSchema(com.google.cloud.ces.v1.Schema value) { + if (inputSchemaBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && inputSchema_ != null + && inputSchema_ != com.google.cloud.ces.v1.Schema.getDefaultInstance()) { + getInputSchemaBuilder().mergeFrom(value); + } else { + inputSchema_ = value; + } + } else { + inputSchemaBuilder_.mergeFrom(value); + } + if (inputSchema_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Required. The schema of the tool input parameters.
      +     * 
      + * + * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInputSchema() { + bitField0_ = (bitField0_ & ~0x00000004); + inputSchema_ = null; + if (inputSchemaBuilder_ != null) { + inputSchemaBuilder_.dispose(); + inputSchemaBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The schema of the tool input parameters.
      +     * 
      + * + * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.Schema.Builder getInputSchemaBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetInputSchemaFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Required. The schema of the tool input parameters.
      +     * 
      + * + * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.SchemaOrBuilder getInputSchemaOrBuilder() { + if (inputSchemaBuilder_ != null) { + return inputSchemaBuilder_.getMessageOrBuilder(); + } else { + return inputSchema_ == null + ? com.google.cloud.ces.v1.Schema.getDefaultInstance() + : inputSchema_; + } + } + + /** + * + * + *
      +     * Required. The schema of the tool input parameters.
      +     * 
      + * + * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder> + internalGetInputSchemaFieldBuilder() { + if (inputSchemaBuilder_ == null) { + inputSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder>( + getInputSchema(), getParentForChildren(), isClean()); + inputSchema_ = null; + } + return inputSchemaBuilder_; + } + + private com.google.cloud.ces.v1.Schema outputSchema_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder> + outputSchemaBuilder_; + + /** + * + * + *
      +     * Required. The schema of the tool output parameters.
      +     * 
      + * + * + * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the outputSchema field is set. + */ + public boolean hasOutputSchema() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +     * Required. The schema of the tool output parameters.
      +     * 
      + * + * + * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The outputSchema. + */ + public com.google.cloud.ces.v1.Schema getOutputSchema() { + if (outputSchemaBuilder_ == null) { + return outputSchema_ == null + ? com.google.cloud.ces.v1.Schema.getDefaultInstance() + : outputSchema_; + } else { + return outputSchemaBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Required. The schema of the tool output parameters.
      +     * 
      + * + * + * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOutputSchema(com.google.cloud.ces.v1.Schema value) { + if (outputSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputSchema_ = value; + } else { + outputSchemaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The schema of the tool output parameters.
      +     * 
      + * + * + * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOutputSchema(com.google.cloud.ces.v1.Schema.Builder builderForValue) { + if (outputSchemaBuilder_ == null) { + outputSchema_ = builderForValue.build(); + } else { + outputSchemaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The schema of the tool output parameters.
      +     * 
      + * + * + * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeOutputSchema(com.google.cloud.ces.v1.Schema value) { + if (outputSchemaBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && outputSchema_ != null + && outputSchema_ != com.google.cloud.ces.v1.Schema.getDefaultInstance()) { + getOutputSchemaBuilder().mergeFrom(value); + } else { + outputSchema_ = value; + } + } else { + outputSchemaBuilder_.mergeFrom(value); + } + if (outputSchema_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Required. The schema of the tool output parameters.
      +     * 
      + * + * + * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearOutputSchema() { + bitField0_ = (bitField0_ & ~0x00000008); + outputSchema_ = null; + if (outputSchemaBuilder_ != null) { + outputSchemaBuilder_.dispose(); + outputSchemaBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The schema of the tool output parameters.
      +     * 
      + * + * + * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.Schema.Builder getOutputSchemaBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetOutputSchemaFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Required. The schema of the tool output parameters.
      +     * 
      + * + * + * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.SchemaOrBuilder getOutputSchemaOrBuilder() { + if (outputSchemaBuilder_ != null) { + return outputSchemaBuilder_.getMessageOrBuilder(); + } else { + return outputSchema_ == null + ? com.google.cloud.ces.v1.Schema.getDefaultInstance() + : outputSchema_; + } + } + + /** + * + * + *
      +     * Required. The schema of the tool output parameters.
      +     * 
      + * + * + * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder> + internalGetOutputSchemaFieldBuilder() { + if (outputSchemaBuilder_ == null) { + outputSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder>( + getOutputSchema(), getParentForChildren(), isClean()); + outputSchema_ = null; + } + return outputSchemaBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.RetrieveToolSchemaResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.RetrieveToolSchemaResponse) + private static final com.google.cloud.ces.v1.RetrieveToolSchemaResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.RetrieveToolSchemaResponse(); + } + + public static com.google.cloud.ces.v1.RetrieveToolSchemaResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetrieveToolSchemaResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.RetrieveToolSchemaResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolSchemaResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolSchemaResponseOrBuilder.java new file mode 100644 index 000000000000..04dd255917ac --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolSchemaResponseOrBuilder.java @@ -0,0 +1,189 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/tool_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface RetrieveToolSchemaResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.RetrieveToolSchemaResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The name of the tool that the schema is for.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +   * 
      + * + * string tool = 1 [(.google.api.resource_reference) = { ... } + * + * @return Whether the tool field is set. + */ + boolean hasTool(); + + /** + * + * + *
      +   * The name of the tool that the schema is for.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +   * 
      + * + * string tool = 1 [(.google.api.resource_reference) = { ... } + * + * @return The tool. + */ + java.lang.String getTool(); + + /** + * + * + *
      +   * The name of the tool that the schema is for.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +   * 
      + * + * string tool = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for tool. + */ + com.google.protobuf.ByteString getToolBytes(); + + /** + * + * + *
      +   * The toolset tool that the schema is for.
      +   * 
      + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 2; + * + * @return Whether the toolsetTool field is set. + */ + boolean hasToolsetTool(); + + /** + * + * + *
      +   * The toolset tool that the schema is for.
      +   * 
      + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 2; + * + * @return The toolsetTool. + */ + com.google.cloud.ces.v1.ToolsetTool getToolsetTool(); + + /** + * + * + *
      +   * The toolset tool that the schema is for.
      +   * 
      + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 2; + */ + com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetToolOrBuilder(); + + /** + * + * + *
      +   * Required. The schema of the tool input parameters.
      +   * 
      + * + * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the inputSchema field is set. + */ + boolean hasInputSchema(); + + /** + * + * + *
      +   * Required. The schema of the tool input parameters.
      +   * 
      + * + * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The inputSchema. + */ + com.google.cloud.ces.v1.Schema getInputSchema(); + + /** + * + * + *
      +   * Required. The schema of the tool input parameters.
      +   * 
      + * + * .google.cloud.ces.v1.Schema input_schema = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.SchemaOrBuilder getInputSchemaOrBuilder(); + + /** + * + * + *
      +   * Required. The schema of the tool output parameters.
      +   * 
      + * + * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the outputSchema field is set. + */ + boolean hasOutputSchema(); + + /** + * + * + *
      +   * Required. The schema of the tool output parameters.
      +   * 
      + * + * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The outputSchema. + */ + com.google.cloud.ces.v1.Schema getOutputSchema(); + + /** + * + * + *
      +   * Required. The schema of the tool output parameters.
      +   * 
      + * + * .google.cloud.ces.v1.Schema output_schema = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.SchemaOrBuilder getOutputSchemaOrBuilder(); + + com.google.cloud.ces.v1.RetrieveToolSchemaResponse.ToolIdentifierCase getToolIdentifierCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsRequest.java new file mode 100644 index 000000000000..9249c8b9dc15 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsRequest.java @@ -0,0 +1,928 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/tool_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [ToolService.RetrieveTools][google.cloud.ces.v1.ToolService.RetrieveTools].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.RetrieveToolsRequest} + */ +@com.google.protobuf.Generated +public final class RetrieveToolsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.RetrieveToolsRequest) + RetrieveToolsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RetrieveToolsRequest"); + } + + // Use RetrieveToolsRequest.newBuilder() to construct. + private RetrieveToolsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RetrieveToolsRequest() { + toolset_ = ""; + toolIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ToolServiceProto + .internal_static_google_cloud_ces_v1_RetrieveToolsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ToolServiceProto + .internal_static_google_cloud_ces_v1_RetrieveToolsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.RetrieveToolsRequest.class, + com.google.cloud.ces.v1.RetrieveToolsRequest.Builder.class); + } + + public static final int TOOLSET_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object toolset_ = ""; + + /** + * + * + *
      +   * Required. The name of the toolset to retrieve the tools for.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +   * 
      + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The toolset. + */ + @java.lang.Override + public java.lang.String getToolset() { + java.lang.Object ref = toolset_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolset_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The name of the toolset to retrieve the tools for.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +   * 
      + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolset. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolsetBytes() { + java.lang.Object ref = toolset_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOL_IDS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList toolIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +   * Optional. The identifiers of the tools to retrieve from the toolset.
      +   * If empty, all tools in the toolset will be returned.
      +   * 
      + * + * repeated string tool_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the toolIds. + */ + public com.google.protobuf.ProtocolStringList getToolIdsList() { + return toolIds_; + } + + /** + * + * + *
      +   * Optional. The identifiers of the tools to retrieve from the toolset.
      +   * If empty, all tools in the toolset will be returned.
      +   * 
      + * + * repeated string tool_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of toolIds. + */ + public int getToolIdsCount() { + return toolIds_.size(); + } + + /** + * + * + *
      +   * Optional. The identifiers of the tools to retrieve from the toolset.
      +   * If empty, all tools in the toolset will be returned.
      +   * 
      + * + * repeated string tool_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The toolIds at the given index. + */ + public java.lang.String getToolIds(int index) { + return toolIds_.get(index); + } + + /** + * + * + *
      +   * Optional. The identifiers of the tools to retrieve from the toolset.
      +   * If empty, all tools in the toolset will be returned.
      +   * 
      + * + * repeated string tool_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the toolIds at the given index. + */ + public com.google.protobuf.ByteString getToolIdsBytes(int index) { + return toolIds_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolset_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, toolset_); + } + for (int i = 0; i < toolIds_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, toolIds_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolset_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, toolset_); + } + { + int dataSize = 0; + for (int i = 0; i < toolIds_.size(); i++) { + dataSize += computeStringSizeNoTag(toolIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getToolIdsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.RetrieveToolsRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.RetrieveToolsRequest other = + (com.google.cloud.ces.v1.RetrieveToolsRequest) obj; + + if (!getToolset().equals(other.getToolset())) return false; + if (!getToolIdsList().equals(other.getToolIdsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOOLSET_FIELD_NUMBER; + hash = (53 * hash) + getToolset().hashCode(); + if (getToolIdsCount() > 0) { + hash = (37 * hash) + TOOL_IDS_FIELD_NUMBER; + hash = (53 * hash) + getToolIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.RetrieveToolsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.RetrieveToolsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RetrieveToolsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.RetrieveToolsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RetrieveToolsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.RetrieveToolsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RetrieveToolsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.RetrieveToolsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RetrieveToolsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.RetrieveToolsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RetrieveToolsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.RetrieveToolsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.RetrieveToolsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [ToolService.RetrieveTools][google.cloud.ces.v1.ToolService.RetrieveTools].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.RetrieveToolsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.RetrieveToolsRequest) + com.google.cloud.ces.v1.RetrieveToolsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ToolServiceProto + .internal_static_google_cloud_ces_v1_RetrieveToolsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ToolServiceProto + .internal_static_google_cloud_ces_v1_RetrieveToolsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.RetrieveToolsRequest.class, + com.google.cloud.ces.v1.RetrieveToolsRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.RetrieveToolsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + toolset_ = ""; + toolIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.ToolServiceProto + .internal_static_google_cloud_ces_v1_RetrieveToolsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.RetrieveToolsRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.RetrieveToolsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.RetrieveToolsRequest build() { + com.google.cloud.ces.v1.RetrieveToolsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.RetrieveToolsRequest buildPartial() { + com.google.cloud.ces.v1.RetrieveToolsRequest result = + new com.google.cloud.ces.v1.RetrieveToolsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.RetrieveToolsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.toolset_ = toolset_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + toolIds_.makeImmutable(); + result.toolIds_ = toolIds_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.RetrieveToolsRequest) { + return mergeFrom((com.google.cloud.ces.v1.RetrieveToolsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.RetrieveToolsRequest other) { + if (other == com.google.cloud.ces.v1.RetrieveToolsRequest.getDefaultInstance()) return this; + if (!other.getToolset().isEmpty()) { + toolset_ = other.toolset_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.toolIds_.isEmpty()) { + if (toolIds_.isEmpty()) { + toolIds_ = other.toolIds_; + bitField0_ |= 0x00000002; + } else { + ensureToolIdsIsMutable(); + toolIds_.addAll(other.toolIds_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + toolset_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureToolIdsIsMutable(); + toolIds_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object toolset_ = ""; + + /** + * + * + *
      +     * Required. The name of the toolset to retrieve the tools for.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +     * 
      + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The toolset. + */ + public java.lang.String getToolset() { + java.lang.Object ref = toolset_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolset_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The name of the toolset to retrieve the tools for.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +     * 
      + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolset. + */ + public com.google.protobuf.ByteString getToolsetBytes() { + java.lang.Object ref = toolset_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The name of the toolset to retrieve the tools for.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +     * 
      + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The toolset to set. + * @return This builder for chaining. + */ + public Builder setToolset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolset_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The name of the toolset to retrieve the tools for.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +     * 
      + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearToolset() { + toolset_ = getDefaultInstance().getToolset(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The name of the toolset to retrieve the tools for.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +     * 
      + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for toolset to set. + * @return This builder for chaining. + */ + public Builder setToolsetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolset_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList toolIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureToolIdsIsMutable() { + if (!toolIds_.isModifiable()) { + toolIds_ = new com.google.protobuf.LazyStringArrayList(toolIds_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
      +     * Optional. The identifiers of the tools to retrieve from the toolset.
      +     * If empty, all tools in the toolset will be returned.
      +     * 
      + * + * repeated string tool_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the toolIds. + */ + public com.google.protobuf.ProtocolStringList getToolIdsList() { + toolIds_.makeImmutable(); + return toolIds_; + } + + /** + * + * + *
      +     * Optional. The identifiers of the tools to retrieve from the toolset.
      +     * If empty, all tools in the toolset will be returned.
      +     * 
      + * + * repeated string tool_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of toolIds. + */ + public int getToolIdsCount() { + return toolIds_.size(); + } + + /** + * + * + *
      +     * Optional. The identifiers of the tools to retrieve from the toolset.
      +     * If empty, all tools in the toolset will be returned.
      +     * 
      + * + * repeated string tool_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The toolIds at the given index. + */ + public java.lang.String getToolIds(int index) { + return toolIds_.get(index); + } + + /** + * + * + *
      +     * Optional. The identifiers of the tools to retrieve from the toolset.
      +     * If empty, all tools in the toolset will be returned.
      +     * 
      + * + * repeated string tool_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the toolIds at the given index. + */ + public com.google.protobuf.ByteString getToolIdsBytes(int index) { + return toolIds_.getByteString(index); + } + + /** + * + * + *
      +     * Optional. The identifiers of the tools to retrieve from the toolset.
      +     * If empty, all tools in the toolset will be returned.
      +     * 
      + * + * repeated string tool_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The toolIds to set. + * @return This builder for chaining. + */ + public Builder setToolIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolIdsIsMutable(); + toolIds_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The identifiers of the tools to retrieve from the toolset.
      +     * If empty, all tools in the toolset will be returned.
      +     * 
      + * + * repeated string tool_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The toolIds to add. + * @return This builder for chaining. + */ + public Builder addToolIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolIdsIsMutable(); + toolIds_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The identifiers of the tools to retrieve from the toolset.
      +     * If empty, all tools in the toolset will be returned.
      +     * 
      + * + * repeated string tool_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The toolIds to add. + * @return This builder for chaining. + */ + public Builder addAllToolIds(java.lang.Iterable values) { + ensureToolIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, toolIds_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The identifiers of the tools to retrieve from the toolset.
      +     * If empty, all tools in the toolset will be returned.
      +     * 
      + * + * repeated string tool_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearToolIds() { + toolIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The identifiers of the tools to retrieve from the toolset.
      +     * If empty, all tools in the toolset will be returned.
      +     * 
      + * + * repeated string tool_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the toolIds to add. + * @return This builder for chaining. + */ + public Builder addToolIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureToolIdsIsMutable(); + toolIds_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.RetrieveToolsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.RetrieveToolsRequest) + private static final com.google.cloud.ces.v1.RetrieveToolsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.RetrieveToolsRequest(); + } + + public static com.google.cloud.ces.v1.RetrieveToolsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetrieveToolsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.RetrieveToolsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsRequestOrBuilder.java new file mode 100644 index 000000000000..80a206be5ff8 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsRequestOrBuilder.java @@ -0,0 +1,120 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/tool_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface RetrieveToolsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.RetrieveToolsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The name of the toolset to retrieve the tools for.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +   * 
      + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The toolset. + */ + java.lang.String getToolset(); + + /** + * + * + *
      +   * Required. The name of the toolset to retrieve the tools for.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +   * 
      + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolset. + */ + com.google.protobuf.ByteString getToolsetBytes(); + + /** + * + * + *
      +   * Optional. The identifiers of the tools to retrieve from the toolset.
      +   * If empty, all tools in the toolset will be returned.
      +   * 
      + * + * repeated string tool_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the toolIds. + */ + java.util.List getToolIdsList(); + + /** + * + * + *
      +   * Optional. The identifiers of the tools to retrieve from the toolset.
      +   * If empty, all tools in the toolset will be returned.
      +   * 
      + * + * repeated string tool_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of toolIds. + */ + int getToolIdsCount(); + + /** + * + * + *
      +   * Optional. The identifiers of the tools to retrieve from the toolset.
      +   * If empty, all tools in the toolset will be returned.
      +   * 
      + * + * repeated string tool_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The toolIds at the given index. + */ + java.lang.String getToolIds(int index); + + /** + * + * + *
      +   * Optional. The identifiers of the tools to retrieve from the toolset.
      +   * If empty, all tools in the toolset will be returned.
      +   * 
      + * + * repeated string tool_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the toolIds at the given index. + */ + com.google.protobuf.ByteString getToolIdsBytes(int index); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsResponse.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsResponse.java new file mode 100644 index 000000000000..3a88143fbc08 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsResponse.java @@ -0,0 +1,937 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/tool_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Response message for
      + * [ToolService.RetrieveTools][google.cloud.ces.v1.ToolService.RetrieveTools].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.RetrieveToolsResponse} + */ +@com.google.protobuf.Generated +public final class RetrieveToolsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.RetrieveToolsResponse) + RetrieveToolsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RetrieveToolsResponse"); + } + + // Use RetrieveToolsResponse.newBuilder() to construct. + private RetrieveToolsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RetrieveToolsResponse() { + tools_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ToolServiceProto + .internal_static_google_cloud_ces_v1_RetrieveToolsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ToolServiceProto + .internal_static_google_cloud_ces_v1_RetrieveToolsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.RetrieveToolsResponse.class, + com.google.cloud.ces.v1.RetrieveToolsResponse.Builder.class); + } + + public static final int TOOLS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List tools_; + + /** + * + * + *
      +   * Required. The list of tools that are included in the specified toolset.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getToolsList() { + return tools_; + } + + /** + * + * + *
      +   * Required. The list of tools that are included in the specified toolset.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getToolsOrBuilderList() { + return tools_; + } + + /** + * + * + *
      +   * Required. The list of tools that are included in the specified toolset.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getToolsCount() { + return tools_.size(); + } + + /** + * + * + *
      +   * Required. The list of tools that are included in the specified toolset.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Tool getTools(int index) { + return tools_.get(index); + } + + /** + * + * + *
      +   * Required. The list of tools that are included in the specified toolset.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolOrBuilder getToolsOrBuilder(int index) { + return tools_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < tools_.size(); i++) { + output.writeMessage(1, tools_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < tools_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tools_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.RetrieveToolsResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.RetrieveToolsResponse other = + (com.google.cloud.ces.v1.RetrieveToolsResponse) obj; + + if (!getToolsList().equals(other.getToolsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getToolsCount() > 0) { + hash = (37 * hash) + TOOLS_FIELD_NUMBER; + hash = (53 * hash) + getToolsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.RetrieveToolsResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.RetrieveToolsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RetrieveToolsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.RetrieveToolsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RetrieveToolsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.RetrieveToolsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RetrieveToolsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.RetrieveToolsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RetrieveToolsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.RetrieveToolsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RetrieveToolsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.RetrieveToolsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.RetrieveToolsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Response message for
      +   * [ToolService.RetrieveTools][google.cloud.ces.v1.ToolService.RetrieveTools].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.RetrieveToolsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.RetrieveToolsResponse) + com.google.cloud.ces.v1.RetrieveToolsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ToolServiceProto + .internal_static_google_cloud_ces_v1_RetrieveToolsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ToolServiceProto + .internal_static_google_cloud_ces_v1_RetrieveToolsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.RetrieveToolsResponse.class, + com.google.cloud.ces.v1.RetrieveToolsResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.RetrieveToolsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolsBuilder_ == null) { + tools_ = java.util.Collections.emptyList(); + } else { + tools_ = null; + toolsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.ToolServiceProto + .internal_static_google_cloud_ces_v1_RetrieveToolsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.RetrieveToolsResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1.RetrieveToolsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.RetrieveToolsResponse build() { + com.google.cloud.ces.v1.RetrieveToolsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.RetrieveToolsResponse buildPartial() { + com.google.cloud.ces.v1.RetrieveToolsResponse result = + new com.google.cloud.ces.v1.RetrieveToolsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1.RetrieveToolsResponse result) { + if (toolsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tools_ = java.util.Collections.unmodifiableList(tools_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tools_ = tools_; + } else { + result.tools_ = toolsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.RetrieveToolsResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.RetrieveToolsResponse) { + return mergeFrom((com.google.cloud.ces.v1.RetrieveToolsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.RetrieveToolsResponse other) { + if (other == com.google.cloud.ces.v1.RetrieveToolsResponse.getDefaultInstance()) return this; + if (toolsBuilder_ == null) { + if (!other.tools_.isEmpty()) { + if (tools_.isEmpty()) { + tools_ = other.tools_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureToolsIsMutable(); + tools_.addAll(other.tools_); + } + onChanged(); + } + } else { + if (!other.tools_.isEmpty()) { + if (toolsBuilder_.isEmpty()) { + toolsBuilder_.dispose(); + toolsBuilder_ = null; + tools_ = other.tools_; + bitField0_ = (bitField0_ & ~0x00000001); + toolsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetToolsFieldBuilder() + : null; + } else { + toolsBuilder_.addAllMessages(other.tools_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.ces.v1.Tool m = + input.readMessage(com.google.cloud.ces.v1.Tool.parser(), extensionRegistry); + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(m); + } else { + toolsBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List tools_ = java.util.Collections.emptyList(); + + private void ensureToolsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tools_ = new java.util.ArrayList(tools_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Tool, + com.google.cloud.ces.v1.Tool.Builder, + com.google.cloud.ces.v1.ToolOrBuilder> + toolsBuilder_; + + /** + * + * + *
      +     * Required. The list of tools that are included in the specified toolset.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getToolsList() { + if (toolsBuilder_ == null) { + return java.util.Collections.unmodifiableList(tools_); + } else { + return toolsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Required. The list of tools that are included in the specified toolset.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getToolsCount() { + if (toolsBuilder_ == null) { + return tools_.size(); + } else { + return toolsBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Required. The list of tools that are included in the specified toolset.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.Tool getTools(int index) { + if (toolsBuilder_ == null) { + return tools_.get(index); + } else { + return toolsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Required. The list of tools that are included in the specified toolset.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTools(int index, com.google.cloud.ces.v1.Tool value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.set(index, value); + onChanged(); + } else { + toolsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Required. The list of tools that are included in the specified toolset.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTools(int index, com.google.cloud.ces.v1.Tool.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.set(index, builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Required. The list of tools that are included in the specified toolset.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addTools(com.google.cloud.ces.v1.Tool value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.add(value); + onChanged(); + } else { + toolsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Required. The list of tools that are included in the specified toolset.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addTools(int index, com.google.cloud.ces.v1.Tool value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.add(index, value); + onChanged(); + } else { + toolsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Required. The list of tools that are included in the specified toolset.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addTools(com.google.cloud.ces.v1.Tool.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Required. The list of tools that are included in the specified toolset.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addTools(int index, com.google.cloud.ces.v1.Tool.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(index, builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Required. The list of tools that are included in the specified toolset.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllTools(java.lang.Iterable values) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tools_); + onChanged(); + } else { + toolsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Required. The list of tools that are included in the specified toolset.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTools() { + if (toolsBuilder_ == null) { + tools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + toolsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Required. The list of tools that are included in the specified toolset.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeTools(int index) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.remove(index); + onChanged(); + } else { + toolsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Required. The list of tools that are included in the specified toolset.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.Tool.Builder getToolsBuilder(int index) { + return internalGetToolsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Required. The list of tools that are included in the specified toolset.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.ToolOrBuilder getToolsOrBuilder(int index) { + if (toolsBuilder_ == null) { + return tools_.get(index); + } else { + return toolsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Required. The list of tools that are included in the specified toolset.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getToolsOrBuilderList() { + if (toolsBuilder_ != null) { + return toolsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tools_); + } + } + + /** + * + * + *
      +     * Required. The list of tools that are included in the specified toolset.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.Tool.Builder addToolsBuilder() { + return internalGetToolsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.Tool.getDefaultInstance()); + } + + /** + * + * + *
      +     * Required. The list of tools that are included in the specified toolset.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.Tool.Builder addToolsBuilder(int index) { + return internalGetToolsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.Tool.getDefaultInstance()); + } + + /** + * + * + *
      +     * Required. The list of tools that are included in the specified toolset.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getToolsBuilderList() { + return internalGetToolsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Tool, + com.google.cloud.ces.v1.Tool.Builder, + com.google.cloud.ces.v1.ToolOrBuilder> + internalGetToolsFieldBuilder() { + if (toolsBuilder_ == null) { + toolsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Tool, + com.google.cloud.ces.v1.Tool.Builder, + com.google.cloud.ces.v1.ToolOrBuilder>( + tools_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + tools_ = null; + } + return toolsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.RetrieveToolsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.RetrieveToolsResponse) + private static final com.google.cloud.ces.v1.RetrieveToolsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.RetrieveToolsResponse(); + } + + public static com.google.cloud.ces.v1.RetrieveToolsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetrieveToolsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.RetrieveToolsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsResponseOrBuilder.java new file mode 100644 index 000000000000..498a2b8b5827 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RetrieveToolsResponseOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/tool_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface RetrieveToolsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.RetrieveToolsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The list of tools that are included in the specified toolset.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getToolsList(); + + /** + * + * + *
      +   * Required. The list of tools that are included in the specified toolset.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.Tool getTools(int index); + + /** + * + * + *
      +   * Required. The list of tools that are included in the specified toolset.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getToolsCount(); + + /** + * + * + *
      +   * Required. The list of tools that are included in the specified toolset.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getToolsOrBuilderList(); + + /** + * + * + *
      +   * Required. The list of tools that are included in the specified toolset.
      +   * 
      + * + * repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.ToolOrBuilder getToolsOrBuilder(int index); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RunSessionRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RunSessionRequest.java new file mode 100644 index 000000000000..c8c13270873c --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RunSessionRequest.java @@ -0,0 +1,1276 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [SessionService.RunSession][google.cloud.ces.v1.SessionService.RunSession].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.RunSessionRequest} + */ +@com.google.protobuf.Generated +public final class RunSessionRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.RunSessionRequest) + RunSessionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RunSessionRequest"); + } + + // Use RunSessionRequest.newBuilder() to construct. + private RunSessionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RunSessionRequest() { + inputs_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_RunSessionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_RunSessionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.RunSessionRequest.class, + com.google.cloud.ces.v1.RunSessionRequest.Builder.class); + } + + private int bitField0_; + public static final int CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.ces.v1.SessionConfig config_; + + /** + * + * + *
      +   * Required. The configuration for the session.
      +   * 
      + * + * .google.cloud.ces.v1.SessionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the config field is set. + */ + @java.lang.Override + public boolean hasConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Required. The configuration for the session.
      +   * 
      + * + * .google.cloud.ces.v1.SessionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The config. + */ + @java.lang.Override + public com.google.cloud.ces.v1.SessionConfig getConfig() { + return config_ == null ? com.google.cloud.ces.v1.SessionConfig.getDefaultInstance() : config_; + } + + /** + * + * + *
      +   * Required. The configuration for the session.
      +   * 
      + * + * .google.cloud.ces.v1.SessionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.SessionConfigOrBuilder getConfigOrBuilder() { + return config_ == null ? com.google.cloud.ces.v1.SessionConfig.getDefaultInstance() : config_; + } + + public static final int INPUTS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List inputs_; + + /** + * + * + *
      +   * Required. Inputs for the session.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.SessionInput inputs = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getInputsList() { + return inputs_; + } + + /** + * + * + *
      +   * Required. Inputs for the session.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.SessionInput inputs = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getInputsOrBuilderList() { + return inputs_; + } + + /** + * + * + *
      +   * Required. Inputs for the session.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.SessionInput inputs = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getInputsCount() { + return inputs_.size(); + } + + /** + * + * + *
      +   * Required. Inputs for the session.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.SessionInput inputs = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.SessionInput getInputs(int index) { + return inputs_.get(index); + } + + /** + * + * + *
      +   * Required. Inputs for the session.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.SessionInput inputs = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.SessionInputOrBuilder getInputsOrBuilder(int index) { + return inputs_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getConfig()); + } + for (int i = 0; i < inputs_.size(); i++) { + output.writeMessage(3, inputs_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig()); + } + for (int i = 0; i < inputs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, inputs_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.RunSessionRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.RunSessionRequest other = + (com.google.cloud.ces.v1.RunSessionRequest) obj; + + if (hasConfig() != other.hasConfig()) return false; + if (hasConfig()) { + if (!getConfig().equals(other.getConfig())) return false; + } + if (!getInputsList().equals(other.getInputsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasConfig()) { + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfig().hashCode(); + } + if (getInputsCount() > 0) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.RunSessionRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.RunSessionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RunSessionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.RunSessionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RunSessionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.RunSessionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RunSessionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.RunSessionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RunSessionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.RunSessionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RunSessionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.RunSessionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.RunSessionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [SessionService.RunSession][google.cloud.ces.v1.SessionService.RunSession].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.RunSessionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.RunSessionRequest) + com.google.cloud.ces.v1.RunSessionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_RunSessionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_RunSessionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.RunSessionRequest.class, + com.google.cloud.ces.v1.RunSessionRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.RunSessionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetConfigFieldBuilder(); + internalGetInputsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + if (inputsBuilder_ == null) { + inputs_ = java.util.Collections.emptyList(); + } else { + inputs_ = null; + inputsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_RunSessionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.RunSessionRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.RunSessionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.RunSessionRequest build() { + com.google.cloud.ces.v1.RunSessionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.RunSessionRequest buildPartial() { + com.google.cloud.ces.v1.RunSessionRequest result = + new com.google.cloud.ces.v1.RunSessionRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1.RunSessionRequest result) { + if (inputsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + inputs_ = java.util.Collections.unmodifiableList(inputs_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.RunSessionRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.RunSessionRequest) { + return mergeFrom((com.google.cloud.ces.v1.RunSessionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.RunSessionRequest other) { + if (other == com.google.cloud.ces.v1.RunSessionRequest.getDefaultInstance()) return this; + if (other.hasConfig()) { + mergeConfig(other.getConfig()); + } + if (inputsBuilder_ == null) { + if (!other.inputs_.isEmpty()) { + if (inputs_.isEmpty()) { + inputs_ = other.inputs_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureInputsIsMutable(); + inputs_.addAll(other.inputs_); + } + onChanged(); + } + } else { + if (!other.inputs_.isEmpty()) { + if (inputsBuilder_.isEmpty()) { + inputsBuilder_.dispose(); + inputsBuilder_ = null; + inputs_ = other.inputs_; + bitField0_ = (bitField0_ & ~0x00000002); + inputsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetInputsFieldBuilder() + : null; + } else { + inputsBuilder_.addAllMessages(other.inputs_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(internalGetConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + com.google.cloud.ces.v1.SessionInput m = + input.readMessage( + com.google.cloud.ces.v1.SessionInput.parser(), extensionRegistry); + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.add(m); + } else { + inputsBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.ces.v1.SessionConfig config_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.SessionConfig, + com.google.cloud.ces.v1.SessionConfig.Builder, + com.google.cloud.ces.v1.SessionConfigOrBuilder> + configBuilder_; + + /** + * + * + *
      +     * Required. The configuration for the session.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the config field is set. + */ + public boolean hasConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Required. The configuration for the session.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The config. + */ + public com.google.cloud.ces.v1.SessionConfig getConfig() { + if (configBuilder_ == null) { + return config_ == null + ? com.google.cloud.ces.v1.SessionConfig.getDefaultInstance() + : config_; + } else { + return configBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Required. The configuration for the session.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConfig(com.google.cloud.ces.v1.SessionConfig value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + } else { + configBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The configuration for the session.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConfig(com.google.cloud.ces.v1.SessionConfig.Builder builderForValue) { + if (configBuilder_ == null) { + config_ = builderForValue.build(); + } else { + configBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The configuration for the session.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeConfig(com.google.cloud.ces.v1.SessionConfig value) { + if (configBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && config_ != null + && config_ != com.google.cloud.ces.v1.SessionConfig.getDefaultInstance()) { + getConfigBuilder().mergeFrom(value); + } else { + config_ = value; + } + } else { + configBuilder_.mergeFrom(value); + } + if (config_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Required. The configuration for the session.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The configuration for the session.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.SessionConfig.Builder getConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Required. The configuration for the session.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.SessionConfigOrBuilder getConfigOrBuilder() { + if (configBuilder_ != null) { + return configBuilder_.getMessageOrBuilder(); + } else { + return config_ == null + ? com.google.cloud.ces.v1.SessionConfig.getDefaultInstance() + : config_; + } + } + + /** + * + * + *
      +     * Required. The configuration for the session.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.SessionConfig, + com.google.cloud.ces.v1.SessionConfig.Builder, + com.google.cloud.ces.v1.SessionConfigOrBuilder> + internalGetConfigFieldBuilder() { + if (configBuilder_ == null) { + configBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.SessionConfig, + com.google.cloud.ces.v1.SessionConfig.Builder, + com.google.cloud.ces.v1.SessionConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); + config_ = null; + } + return configBuilder_; + } + + private java.util.List inputs_ = + java.util.Collections.emptyList(); + + private void ensureInputsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + inputs_ = new java.util.ArrayList(inputs_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.SessionInput, + com.google.cloud.ces.v1.SessionInput.Builder, + com.google.cloud.ces.v1.SessionInputOrBuilder> + inputsBuilder_; + + /** + * + * + *
      +     * Required. Inputs for the session.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.SessionInput inputs = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getInputsList() { + if (inputsBuilder_ == null) { + return java.util.Collections.unmodifiableList(inputs_); + } else { + return inputsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Required. Inputs for the session.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.SessionInput inputs = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getInputsCount() { + if (inputsBuilder_ == null) { + return inputs_.size(); + } else { + return inputsBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Required. Inputs for the session.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.SessionInput inputs = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.SessionInput getInputs(int index) { + if (inputsBuilder_ == null) { + return inputs_.get(index); + } else { + return inputsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Required. Inputs for the session.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.SessionInput inputs = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInputs(int index, com.google.cloud.ces.v1.SessionInput value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputsIsMutable(); + inputs_.set(index, value); + onChanged(); + } else { + inputsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Required. Inputs for the session.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.SessionInput inputs = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInputs( + int index, com.google.cloud.ces.v1.SessionInput.Builder builderForValue) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.set(index, builderForValue.build()); + onChanged(); + } else { + inputsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Required. Inputs for the session.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.SessionInput inputs = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInputs(com.google.cloud.ces.v1.SessionInput value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputsIsMutable(); + inputs_.add(value); + onChanged(); + } else { + inputsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Required. Inputs for the session.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.SessionInput inputs = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInputs(int index, com.google.cloud.ces.v1.SessionInput value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputsIsMutable(); + inputs_.add(index, value); + onChanged(); + } else { + inputsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Required. Inputs for the session.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.SessionInput inputs = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInputs(com.google.cloud.ces.v1.SessionInput.Builder builderForValue) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.add(builderForValue.build()); + onChanged(); + } else { + inputsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Required. Inputs for the session.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.SessionInput inputs = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInputs( + int index, com.google.cloud.ces.v1.SessionInput.Builder builderForValue) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.add(index, builderForValue.build()); + onChanged(); + } else { + inputsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Required. Inputs for the session.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.SessionInput inputs = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllInputs( + java.lang.Iterable values) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputs_); + onChanged(); + } else { + inputsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Required. Inputs for the session.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.SessionInput inputs = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + inputsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Required. Inputs for the session.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.SessionInput inputs = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeInputs(int index) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.remove(index); + onChanged(); + } else { + inputsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Required. Inputs for the session.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.SessionInput inputs = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.SessionInput.Builder getInputsBuilder(int index) { + return internalGetInputsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Required. Inputs for the session.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.SessionInput inputs = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.SessionInputOrBuilder getInputsOrBuilder(int index) { + if (inputsBuilder_ == null) { + return inputs_.get(index); + } else { + return inputsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Required. Inputs for the session.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.SessionInput inputs = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getInputsOrBuilderList() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(inputs_); + } + } + + /** + * + * + *
      +     * Required. Inputs for the session.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.SessionInput inputs = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.SessionInput.Builder addInputsBuilder() { + return internalGetInputsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.SessionInput.getDefaultInstance()); + } + + /** + * + * + *
      +     * Required. Inputs for the session.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.SessionInput inputs = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.SessionInput.Builder addInputsBuilder(int index) { + return internalGetInputsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.SessionInput.getDefaultInstance()); + } + + /** + * + * + *
      +     * Required. Inputs for the session.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.SessionInput inputs = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getInputsBuilderList() { + return internalGetInputsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.SessionInput, + com.google.cloud.ces.v1.SessionInput.Builder, + com.google.cloud.ces.v1.SessionInputOrBuilder> + internalGetInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.SessionInput, + com.google.cloud.ces.v1.SessionInput.Builder, + com.google.cloud.ces.v1.SessionInputOrBuilder>( + inputs_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.RunSessionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.RunSessionRequest) + private static final com.google.cloud.ces.v1.RunSessionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.RunSessionRequest(); + } + + public static com.google.cloud.ces.v1.RunSessionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunSessionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.RunSessionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RunSessionRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RunSessionRequestOrBuilder.java new file mode 100644 index 000000000000..4096684a26ca --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RunSessionRequestOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface RunSessionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.RunSessionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The configuration for the session.
      +   * 
      + * + * .google.cloud.ces.v1.SessionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the config field is set. + */ + boolean hasConfig(); + + /** + * + * + *
      +   * Required. The configuration for the session.
      +   * 
      + * + * .google.cloud.ces.v1.SessionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The config. + */ + com.google.cloud.ces.v1.SessionConfig getConfig(); + + /** + * + * + *
      +   * Required. The configuration for the session.
      +   * 
      + * + * .google.cloud.ces.v1.SessionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.SessionConfigOrBuilder getConfigOrBuilder(); + + /** + * + * + *
      +   * Required. Inputs for the session.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.SessionInput inputs = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getInputsList(); + + /** + * + * + *
      +   * Required. Inputs for the session.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.SessionInput inputs = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.SessionInput getInputs(int index); + + /** + * + * + *
      +   * Required. Inputs for the session.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.SessionInput inputs = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getInputsCount(); + + /** + * + * + *
      +   * Required. Inputs for the session.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.SessionInput inputs = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getInputsOrBuilderList(); + + /** + * + * + *
      +   * Required. Inputs for the session.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.SessionInput inputs = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.SessionInputOrBuilder getInputsOrBuilder(int index); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RunSessionResponse.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RunSessionResponse.java new file mode 100644 index 000000000000..d911b6b525b0 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RunSessionResponse.java @@ -0,0 +1,921 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Response message for
      + * [SessionService.RunSession][google.cloud.ces.v1.SessionService.RunSession].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.RunSessionResponse} + */ +@com.google.protobuf.Generated +public final class RunSessionResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.RunSessionResponse) + RunSessionResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RunSessionResponse"); + } + + // Use RunSessionResponse.newBuilder() to construct. + private RunSessionResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RunSessionResponse() { + outputs_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_RunSessionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_RunSessionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.RunSessionResponse.class, + com.google.cloud.ces.v1.RunSessionResponse.Builder.class); + } + + public static final int OUTPUTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List outputs_; + + /** + * + * + *
      +   * Outputs for the session.
      +   * 
      + * + * repeated .google.cloud.ces.v1.SessionOutput outputs = 1; + */ + @java.lang.Override + public java.util.List getOutputsList() { + return outputs_; + } + + /** + * + * + *
      +   * Outputs for the session.
      +   * 
      + * + * repeated .google.cloud.ces.v1.SessionOutput outputs = 1; + */ + @java.lang.Override + public java.util.List + getOutputsOrBuilderList() { + return outputs_; + } + + /** + * + * + *
      +   * Outputs for the session.
      +   * 
      + * + * repeated .google.cloud.ces.v1.SessionOutput outputs = 1; + */ + @java.lang.Override + public int getOutputsCount() { + return outputs_.size(); + } + + /** + * + * + *
      +   * Outputs for the session.
      +   * 
      + * + * repeated .google.cloud.ces.v1.SessionOutput outputs = 1; + */ + @java.lang.Override + public com.google.cloud.ces.v1.SessionOutput getOutputs(int index) { + return outputs_.get(index); + } + + /** + * + * + *
      +   * Outputs for the session.
      +   * 
      + * + * repeated .google.cloud.ces.v1.SessionOutput outputs = 1; + */ + @java.lang.Override + public com.google.cloud.ces.v1.SessionOutputOrBuilder getOutputsOrBuilder(int index) { + return outputs_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < outputs_.size(); i++) { + output.writeMessage(1, outputs_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < outputs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, outputs_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.RunSessionResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.RunSessionResponse other = + (com.google.cloud.ces.v1.RunSessionResponse) obj; + + if (!getOutputsList().equals(other.getOutputsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getOutputsCount() > 0) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.RunSessionResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.RunSessionResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RunSessionResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.RunSessionResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RunSessionResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.RunSessionResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RunSessionResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.RunSessionResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RunSessionResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.RunSessionResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.RunSessionResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.RunSessionResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.RunSessionResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Response message for
      +   * [SessionService.RunSession][google.cloud.ces.v1.SessionService.RunSession].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.RunSessionResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.RunSessionResponse) + com.google.cloud.ces.v1.RunSessionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_RunSessionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_RunSessionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.RunSessionResponse.class, + com.google.cloud.ces.v1.RunSessionResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.RunSessionResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (outputsBuilder_ == null) { + outputs_ = java.util.Collections.emptyList(); + } else { + outputs_ = null; + outputsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_RunSessionResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.RunSessionResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1.RunSessionResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.RunSessionResponse build() { + com.google.cloud.ces.v1.RunSessionResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.RunSessionResponse buildPartial() { + com.google.cloud.ces.v1.RunSessionResponse result = + new com.google.cloud.ces.v1.RunSessionResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1.RunSessionResponse result) { + if (outputsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + outputs_ = java.util.Collections.unmodifiableList(outputs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.outputs_ = outputs_; + } else { + result.outputs_ = outputsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.RunSessionResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.RunSessionResponse) { + return mergeFrom((com.google.cloud.ces.v1.RunSessionResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.RunSessionResponse other) { + if (other == com.google.cloud.ces.v1.RunSessionResponse.getDefaultInstance()) return this; + if (outputsBuilder_ == null) { + if (!other.outputs_.isEmpty()) { + if (outputs_.isEmpty()) { + outputs_ = other.outputs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOutputsIsMutable(); + outputs_.addAll(other.outputs_); + } + onChanged(); + } + } else { + if (!other.outputs_.isEmpty()) { + if (outputsBuilder_.isEmpty()) { + outputsBuilder_.dispose(); + outputsBuilder_ = null; + outputs_ = other.outputs_; + bitField0_ = (bitField0_ & ~0x00000001); + outputsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetOutputsFieldBuilder() + : null; + } else { + outputsBuilder_.addAllMessages(other.outputs_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.ces.v1.SessionOutput m = + input.readMessage( + com.google.cloud.ces.v1.SessionOutput.parser(), extensionRegistry); + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(m); + } else { + outputsBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List outputs_ = + java.util.Collections.emptyList(); + + private void ensureOutputsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + outputs_ = new java.util.ArrayList(outputs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.SessionOutput, + com.google.cloud.ces.v1.SessionOutput.Builder, + com.google.cloud.ces.v1.SessionOutputOrBuilder> + outputsBuilder_; + + /** + * + * + *
      +     * Outputs for the session.
      +     * 
      + * + * repeated .google.cloud.ces.v1.SessionOutput outputs = 1; + */ + public java.util.List getOutputsList() { + if (outputsBuilder_ == null) { + return java.util.Collections.unmodifiableList(outputs_); + } else { + return outputsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Outputs for the session.
      +     * 
      + * + * repeated .google.cloud.ces.v1.SessionOutput outputs = 1; + */ + public int getOutputsCount() { + if (outputsBuilder_ == null) { + return outputs_.size(); + } else { + return outputsBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Outputs for the session.
      +     * 
      + * + * repeated .google.cloud.ces.v1.SessionOutput outputs = 1; + */ + public com.google.cloud.ces.v1.SessionOutput getOutputs(int index) { + if (outputsBuilder_ == null) { + return outputs_.get(index); + } else { + return outputsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Outputs for the session.
      +     * 
      + * + * repeated .google.cloud.ces.v1.SessionOutput outputs = 1; + */ + public Builder setOutputs(int index, com.google.cloud.ces.v1.SessionOutput value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.set(index, value); + onChanged(); + } else { + outputsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Outputs for the session.
      +     * 
      + * + * repeated .google.cloud.ces.v1.SessionOutput outputs = 1; + */ + public Builder setOutputs( + int index, com.google.cloud.ces.v1.SessionOutput.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.set(index, builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Outputs for the session.
      +     * 
      + * + * repeated .google.cloud.ces.v1.SessionOutput outputs = 1; + */ + public Builder addOutputs(com.google.cloud.ces.v1.SessionOutput value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.add(value); + onChanged(); + } else { + outputsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Outputs for the session.
      +     * 
      + * + * repeated .google.cloud.ces.v1.SessionOutput outputs = 1; + */ + public Builder addOutputs(int index, com.google.cloud.ces.v1.SessionOutput value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.add(index, value); + onChanged(); + } else { + outputsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Outputs for the session.
      +     * 
      + * + * repeated .google.cloud.ces.v1.SessionOutput outputs = 1; + */ + public Builder addOutputs(com.google.cloud.ces.v1.SessionOutput.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Outputs for the session.
      +     * 
      + * + * repeated .google.cloud.ces.v1.SessionOutput outputs = 1; + */ + public Builder addOutputs( + int index, com.google.cloud.ces.v1.SessionOutput.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(index, builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Outputs for the session.
      +     * 
      + * + * repeated .google.cloud.ces.v1.SessionOutput outputs = 1; + */ + public Builder addAllOutputs( + java.lang.Iterable values) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, outputs_); + onChanged(); + } else { + outputsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Outputs for the session.
      +     * 
      + * + * repeated .google.cloud.ces.v1.SessionOutput outputs = 1; + */ + public Builder clearOutputs() { + if (outputsBuilder_ == null) { + outputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + outputsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Outputs for the session.
      +     * 
      + * + * repeated .google.cloud.ces.v1.SessionOutput outputs = 1; + */ + public Builder removeOutputs(int index) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.remove(index); + onChanged(); + } else { + outputsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Outputs for the session.
      +     * 
      + * + * repeated .google.cloud.ces.v1.SessionOutput outputs = 1; + */ + public com.google.cloud.ces.v1.SessionOutput.Builder getOutputsBuilder(int index) { + return internalGetOutputsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Outputs for the session.
      +     * 
      + * + * repeated .google.cloud.ces.v1.SessionOutput outputs = 1; + */ + public com.google.cloud.ces.v1.SessionOutputOrBuilder getOutputsOrBuilder(int index) { + if (outputsBuilder_ == null) { + return outputs_.get(index); + } else { + return outputsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Outputs for the session.
      +     * 
      + * + * repeated .google.cloud.ces.v1.SessionOutput outputs = 1; + */ + public java.util.List + getOutputsOrBuilderList() { + if (outputsBuilder_ != null) { + return outputsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(outputs_); + } + } + + /** + * + * + *
      +     * Outputs for the session.
      +     * 
      + * + * repeated .google.cloud.ces.v1.SessionOutput outputs = 1; + */ + public com.google.cloud.ces.v1.SessionOutput.Builder addOutputsBuilder() { + return internalGetOutputsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.SessionOutput.getDefaultInstance()); + } + + /** + * + * + *
      +     * Outputs for the session.
      +     * 
      + * + * repeated .google.cloud.ces.v1.SessionOutput outputs = 1; + */ + public com.google.cloud.ces.v1.SessionOutput.Builder addOutputsBuilder(int index) { + return internalGetOutputsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.SessionOutput.getDefaultInstance()); + } + + /** + * + * + *
      +     * Outputs for the session.
      +     * 
      + * + * repeated .google.cloud.ces.v1.SessionOutput outputs = 1; + */ + public java.util.List getOutputsBuilderList() { + return internalGetOutputsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.SessionOutput, + com.google.cloud.ces.v1.SessionOutput.Builder, + com.google.cloud.ces.v1.SessionOutputOrBuilder> + internalGetOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + outputsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.SessionOutput, + com.google.cloud.ces.v1.SessionOutput.Builder, + com.google.cloud.ces.v1.SessionOutputOrBuilder>( + outputs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + outputs_ = null; + } + return outputsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.RunSessionResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.RunSessionResponse) + private static final com.google.cloud.ces.v1.RunSessionResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.RunSessionResponse(); + } + + public static com.google.cloud.ces.v1.RunSessionResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunSessionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.RunSessionResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RunSessionResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RunSessionResponseOrBuilder.java new file mode 100644 index 000000000000..8a140ee276a3 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/RunSessionResponseOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface RunSessionResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.RunSessionResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Outputs for the session.
      +   * 
      + * + * repeated .google.cloud.ces.v1.SessionOutput outputs = 1; + */ + java.util.List getOutputsList(); + + /** + * + * + *
      +   * Outputs for the session.
      +   * 
      + * + * repeated .google.cloud.ces.v1.SessionOutput outputs = 1; + */ + com.google.cloud.ces.v1.SessionOutput getOutputs(int index); + + /** + * + * + *
      +   * Outputs for the session.
      +   * 
      + * + * repeated .google.cloud.ces.v1.SessionOutput outputs = 1; + */ + int getOutputsCount(); + + /** + * + * + *
      +   * Outputs for the session.
      +   * 
      + * + * repeated .google.cloud.ces.v1.SessionOutput outputs = 1; + */ + java.util.List + getOutputsOrBuilderList(); + + /** + * + * + *
      +   * Outputs for the session.
      +   * 
      + * + * repeated .google.cloud.ces.v1.SessionOutput outputs = 1; + */ + com.google.cloud.ces.v1.SessionOutputOrBuilder getOutputsOrBuilder(int index); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Schema.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Schema.java new file mode 100644 index 000000000000..dcac6782e5b2 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Schema.java @@ -0,0 +1,5745 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/schema.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Represents a select subset of an OpenAPI 3.0 schema object.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Schema} + */ +@com.google.protobuf.Generated +public final class Schema extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.Schema) + SchemaOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Schema"); + } + + // Use Schema.newBuilder() to construct. + private Schema(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Schema() { + type_ = 0; + required_ = com.google.protobuf.LazyStringArrayList.emptyList(); + description_ = ""; + prefixItems_ = java.util.Collections.emptyList(); + anyOf_ = java.util.Collections.emptyList(); + enum_ = com.google.protobuf.LazyStringArrayList.emptyList(); + ref_ = ""; + title_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SchemaProto + .internal_static_google_cloud_ces_v1_Schema_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetProperties(); + case 14: + return internalGetDefs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SchemaProto + .internal_static_google_cloud_ces_v1_Schema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Schema.class, com.google.cloud.ces.v1.Schema.Builder.class); + } + + /** + * + * + *
      +   * OpenAPI data types.
      +   * 
      + * + * Protobuf enum {@code google.cloud.ces.v1.Schema.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Type unspecified.
      +     * 
      + * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
      +     * String type.
      +     * 
      + * + * STRING = 1; + */ + STRING(1), + /** + * + * + *
      +     * Integer type.
      +     * 
      + * + * INTEGER = 2; + */ + INTEGER(2), + /** + * + * + *
      +     * Number type.
      +     * 
      + * + * NUMBER = 3; + */ + NUMBER(3), + /** + * + * + *
      +     * Boolean type.
      +     * 
      + * + * BOOLEAN = 4; + */ + BOOLEAN(4), + /** + * + * + *
      +     * Object type.
      +     * 
      + * + * OBJECT = 5; + */ + OBJECT(5), + /** + * + * + *
      +     * Array type.
      +     * 
      + * + * ARRAY = 6; + */ + ARRAY(6), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Type"); + } + + /** + * + * + *
      +     * Type unspecified.
      +     * 
      + * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * String type.
      +     * 
      + * + * STRING = 1; + */ + public static final int STRING_VALUE = 1; + + /** + * + * + *
      +     * Integer type.
      +     * 
      + * + * INTEGER = 2; + */ + public static final int INTEGER_VALUE = 2; + + /** + * + * + *
      +     * Number type.
      +     * 
      + * + * NUMBER = 3; + */ + public static final int NUMBER_VALUE = 3; + + /** + * + * + *
      +     * Boolean type.
      +     * 
      + * + * BOOLEAN = 4; + */ + public static final int BOOLEAN_VALUE = 4; + + /** + * + * + *
      +     * Object type.
      +     * 
      + * + * OBJECT = 5; + */ + public static final int OBJECT_VALUE = 5; + + /** + * + * + *
      +     * Array type.
      +     * 
      + * + * ARRAY = 6; + */ + public static final int ARRAY_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: + return TYPE_UNSPECIFIED; + case 1: + return STRING; + case 2: + return INTEGER; + case 3: + return NUMBER; + case 4: + return BOOLEAN; + case 5: + return OBJECT; + case 6: + return ARRAY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + 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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.Schema.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + 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."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.Schema.Type) + } + + private int bitField0_; + public static final int TYPE_FIELD_NUMBER = 1; + private int type_ = 0; + + /** + * + * + *
      +   * Required. The type of the data.
      +   * 
      + * + * .google.cloud.ces.v1.Schema.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
      +   * Required. The type of the data.
      +   * 
      + * + * .google.cloud.ces.v1.Schema.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Schema.Type getType() { + com.google.cloud.ces.v1.Schema.Type result = + com.google.cloud.ces.v1.Schema.Type.forNumber(type_); + return result == null ? com.google.cloud.ces.v1.Schema.Type.UNRECOGNIZED : result; + } + + public static final int PROPERTIES_FIELD_NUMBER = 2; + + private static final class PropertiesDefaultEntryHolder { + static final com.google.protobuf.MapEntry + defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.ces.v1.SchemaProto + .internal_static_google_cloud_ces_v1_Schema_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.ces.v1.Schema.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField + properties_; + + private com.google.protobuf.MapField + internalGetProperties() { + if (properties_ == null) { + return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); + } + return properties_; + } + + public int getPropertiesCount() { + return internalGetProperties().getMap().size(); + } + + /** + * + * + *
      +   * Optional. Properties of Type.OBJECT.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.Schema> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetProperties().getMap().containsKey(key); + } + + /** Use {@link #getPropertiesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getProperties() { + return getPropertiesMap(); + } + + /** + * + * + *
      +   * Optional. Properties of Type.OBJECT.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.Schema> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getPropertiesMap() { + return internalGetProperties().getMap(); + } + + /** + * + * + *
      +   * Optional. Properties of Type.OBJECT.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.Schema> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.ces.v1.Schema getPropertiesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.ces.v1.Schema defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetProperties().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
      +   * Optional. Properties of Type.OBJECT.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.Schema> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Schema getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetProperties().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int REQUIRED_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList required_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +   * Optional. Required properties of Type.OBJECT.
      +   * 
      + * + * repeated string required = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the required. + */ + public com.google.protobuf.ProtocolStringList getRequiredList() { + return required_; + } + + /** + * + * + *
      +   * Optional. Required properties of Type.OBJECT.
      +   * 
      + * + * repeated string required = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of required. + */ + public int getRequiredCount() { + return required_.size(); + } + + /** + * + * + *
      +   * Optional. Required properties of Type.OBJECT.
      +   * 
      + * + * repeated string required = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The required at the given index. + */ + public java.lang.String getRequired(int index) { + return required_.get(index); + } + + /** + * + * + *
      +   * Optional. Required properties of Type.OBJECT.
      +   * 
      + * + * repeated string required = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the required at the given index. + */ + public com.google.protobuf.ByteString getRequiredBytes(int index) { + return required_.getByteString(index); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
      +   * Optional. The description of the data.
      +   * 
      + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The description of the data.
      +   * 
      + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ITEMS_FIELD_NUMBER = 5; + private com.google.cloud.ces.v1.Schema items_; + + /** + * + * + *
      +   * Optional. Schema of the elements of Type.ARRAY.
      +   * 
      + * + * .google.cloud.ces.v1.Schema items = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the items field is set. + */ + @java.lang.Override + public boolean hasItems() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Optional. Schema of the elements of Type.ARRAY.
      +   * 
      + * + * .google.cloud.ces.v1.Schema items = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The items. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Schema getItems() { + return items_ == null ? com.google.cloud.ces.v1.Schema.getDefaultInstance() : items_; + } + + /** + * + * + *
      +   * Optional. Schema of the elements of Type.ARRAY.
      +   * 
      + * + * .google.cloud.ces.v1.Schema items = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.ces.v1.SchemaOrBuilder getItemsOrBuilder() { + return items_ == null ? com.google.cloud.ces.v1.Schema.getDefaultInstance() : items_; + } + + public static final int NULLABLE_FIELD_NUMBER = 6; + private boolean nullable_ = false; + + /** + * + * + *
      +   * Optional. Indicates if the value may be null.
      +   * 
      + * + * bool nullable = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nullable. + */ + @java.lang.Override + public boolean getNullable() { + return nullable_; + } + + public static final int UNIQUE_ITEMS_FIELD_NUMBER = 7; + private boolean uniqueItems_ = false; + + /** + * + * + *
      +   * Optional. Indicate the items in the array must be unique. Only applies to
      +   * TYPE.ARRAY.
      +   * 
      + * + * bool unique_items = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The uniqueItems. + */ + @java.lang.Override + public boolean getUniqueItems() { + return uniqueItems_; + } + + public static final int PREFIX_ITEMS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List prefixItems_; + + /** + * + * + *
      +   * Optional. Schemas of initial elements of Type.ARRAY.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getPrefixItemsList() { + return prefixItems_; + } + + /** + * + * + *
      +   * Optional. Schemas of initial elements of Type.ARRAY.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getPrefixItemsOrBuilderList() { + return prefixItems_; + } + + /** + * + * + *
      +   * Optional. Schemas of initial elements of Type.ARRAY.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getPrefixItemsCount() { + return prefixItems_.size(); + } + + /** + * + * + *
      +   * Optional. Schemas of initial elements of Type.ARRAY.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Schema getPrefixItems(int index) { + return prefixItems_.get(index); + } + + /** + * + * + *
      +   * Optional. Schemas of initial elements of Type.ARRAY.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.SchemaOrBuilder getPrefixItemsOrBuilder(int index) { + return prefixItems_.get(index); + } + + public static final int ADDITIONAL_PROPERTIES_FIELD_NUMBER = 9; + private com.google.cloud.ces.v1.Schema additionalProperties_; + + /** + * + * + *
      +   * Optional. Can either be a boolean or an object, controls the presence of
      +   * additional properties.
      +   * 
      + * + * + * .google.cloud.ces.v1.Schema additional_properties = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the additionalProperties field is set. + */ + @java.lang.Override + public boolean hasAdditionalProperties() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Optional. Can either be a boolean or an object, controls the presence of
      +   * additional properties.
      +   * 
      + * + * + * .google.cloud.ces.v1.Schema additional_properties = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The additionalProperties. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Schema getAdditionalProperties() { + return additionalProperties_ == null + ? com.google.cloud.ces.v1.Schema.getDefaultInstance() + : additionalProperties_; + } + + /** + * + * + *
      +   * Optional. Can either be a boolean or an object, controls the presence of
      +   * additional properties.
      +   * 
      + * + * + * .google.cloud.ces.v1.Schema additional_properties = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.SchemaOrBuilder getAdditionalPropertiesOrBuilder() { + return additionalProperties_ == null + ? com.google.cloud.ces.v1.Schema.getDefaultInstance() + : additionalProperties_; + } + + public static final int ANY_OF_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List anyOf_; + + /** + * + * + *
      +   * Optional. The value should be validated against any (one or more) of the
      +   * subschemas in the list.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getAnyOfList() { + return anyOf_; + } + + /** + * + * + *
      +   * Optional. The value should be validated against any (one or more) of the
      +   * subschemas in the list.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getAnyOfOrBuilderList() { + return anyOf_; + } + + /** + * + * + *
      +   * Optional. The value should be validated against any (one or more) of the
      +   * subschemas in the list.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getAnyOfCount() { + return anyOf_.size(); + } + + /** + * + * + *
      +   * Optional. The value should be validated against any (one or more) of the
      +   * subschemas in the list.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Schema getAnyOf(int index) { + return anyOf_.get(index); + } + + /** + * + * + *
      +   * Optional. The value should be validated against any (one or more) of the
      +   * subschemas in the list.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.SchemaOrBuilder getAnyOfOrBuilder(int index) { + return anyOf_.get(index); + } + + public static final int ENUM_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList enum_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +   * Optional. Possible values of the element of primitive type with enum
      +   * format. Examples:
      +   * 1. We can define direction as :
      +   * {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]}
      +   * 2. We can define apartment number as :
      +   * {type:INTEGER, format:enum, enum:["101", "201", "301"]}
      +   * 
      + * + * repeated string enum = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the enum. + */ + public com.google.protobuf.ProtocolStringList getEnumList() { + return enum_; + } + + /** + * + * + *
      +   * Optional. Possible values of the element of primitive type with enum
      +   * format. Examples:
      +   * 1. We can define direction as :
      +   * {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]}
      +   * 2. We can define apartment number as :
      +   * {type:INTEGER, format:enum, enum:["101", "201", "301"]}
      +   * 
      + * + * repeated string enum = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of enum. + */ + public int getEnumCount() { + return enum_.size(); + } + + /** + * + * + *
      +   * Optional. Possible values of the element of primitive type with enum
      +   * format. Examples:
      +   * 1. We can define direction as :
      +   * {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]}
      +   * 2. We can define apartment number as :
      +   * {type:INTEGER, format:enum, enum:["101", "201", "301"]}
      +   * 
      + * + * repeated string enum = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The enum at the given index. + */ + public java.lang.String getEnum(int index) { + return enum_.get(index); + } + + /** + * + * + *
      +   * Optional. Possible values of the element of primitive type with enum
      +   * format. Examples:
      +   * 1. We can define direction as :
      +   * {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]}
      +   * 2. We can define apartment number as :
      +   * {type:INTEGER, format:enum, enum:["101", "201", "301"]}
      +   * 
      + * + * repeated string enum = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the enum at the given index. + */ + public com.google.protobuf.ByteString getEnumBytes(int index) { + return enum_.getByteString(index); + } + + public static final int DEFAULT_FIELD_NUMBER = 12; + private com.google.protobuf.Value default_; + + /** + * + * + *
      +   * Optional. Default value of the data.
      +   * 
      + * + * .google.protobuf.Value default = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the default field is set. + */ + @java.lang.Override + public boolean hasDefault() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * Optional. Default value of the data.
      +   * 
      + * + * .google.protobuf.Value default = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The default. + */ + @java.lang.Override + public com.google.protobuf.Value getDefault() { + return default_ == null ? com.google.protobuf.Value.getDefaultInstance() : default_; + } + + /** + * + * + *
      +   * Optional. Default value of the data.
      +   * 
      + * + * .google.protobuf.Value default = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getDefaultOrBuilder() { + return default_ == null ? com.google.protobuf.Value.getDefaultInstance() : default_; + } + + public static final int REF_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object ref_ = ""; + + /** + * + * + *
      +   * Optional. Allows indirect references between schema nodes. The value should
      +   * be a valid reference to a child of the root `defs`.
      +   *
      +   * For example, the following schema defines a reference to a schema node
      +   * named "Pet":
      +   *
      +   * ```
      +   * type: object
      +   * properties:
      +   * pet:
      +   * ref: #/defs/Pet
      +   * defs:
      +   * Pet:
      +   * type: object
      +   * properties:
      +   * name:
      +   * type: string
      +   * ```
      +   *
      +   * The value of the "pet" property is a reference to the schema node
      +   * named "Pet".
      +   * See details in
      +   * https://json-schema.org/understanding-json-schema/structuring.
      +   * 
      + * + * string ref = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ref. + */ + @java.lang.Override + public java.lang.String getRef() { + java.lang.Object ref = ref_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ref_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. Allows indirect references between schema nodes. The value should
      +   * be a valid reference to a child of the root `defs`.
      +   *
      +   * For example, the following schema defines a reference to a schema node
      +   * named "Pet":
      +   *
      +   * ```
      +   * type: object
      +   * properties:
      +   * pet:
      +   * ref: #/defs/Pet
      +   * defs:
      +   * Pet:
      +   * type: object
      +   * properties:
      +   * name:
      +   * type: string
      +   * ```
      +   *
      +   * The value of the "pet" property is a reference to the schema node
      +   * named "Pet".
      +   * See details in
      +   * https://json-schema.org/understanding-json-schema/structuring.
      +   * 
      + * + * string ref = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for ref. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRefBytes() { + java.lang.Object ref = ref_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ref_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEFS_FIELD_NUMBER = 14; + + private static final class DefsDefaultEntryHolder { + static final com.google.protobuf.MapEntry + defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.ces.v1.SchemaProto + .internal_static_google_cloud_ces_v1_Schema_DefsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.ces.v1.Schema.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField defs_; + + private com.google.protobuf.MapField + internalGetDefs() { + if (defs_ == null) { + return com.google.protobuf.MapField.emptyMapField(DefsDefaultEntryHolder.defaultEntry); + } + return defs_; + } + + public int getDefsCount() { + return internalGetDefs().getMap().size(); + } + + /** + * + * + *
      +   * Optional. A map of definitions for use by `ref`. Only allowed at the root
      +   * of the schema.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.Schema> defs = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsDefs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetDefs().getMap().containsKey(key); + } + + /** Use {@link #getDefsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDefs() { + return getDefsMap(); + } + + /** + * + * + *
      +   * Optional. A map of definitions for use by `ref`. Only allowed at the root
      +   * of the schema.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.Schema> defs = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getDefsMap() { + return internalGetDefs().getMap(); + } + + /** + * + * + *
      +   * Optional. A map of definitions for use by `ref`. Only allowed at the root
      +   * of the schema.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.Schema> defs = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.ces.v1.Schema getDefsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.ces.v1.Schema defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetDefs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
      +   * Optional. A map of definitions for use by `ref`. Only allowed at the root
      +   * of the schema.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.Schema> defs = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Schema getDefsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetDefs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int TITLE_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
      +   * Optional. The title of the schema.
      +   * 
      + * + * string title = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The title of the schema.
      +   * 
      + * + * string title = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MIN_ITEMS_FIELD_NUMBER = 16; + private long minItems_ = 0L; + + /** + * + * + *
      +   * Optional. Minimum number of the elements for Type.ARRAY.
      +   * 
      + * + * int64 min_items = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minItems. + */ + @java.lang.Override + public long getMinItems() { + return minItems_; + } + + public static final int MAX_ITEMS_FIELD_NUMBER = 17; + private long maxItems_ = 0L; + + /** + * + * + *
      +   * Optional. Maximum number of the elements for Type.ARRAY.
      +   * 
      + * + * int64 max_items = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxItems. + */ + @java.lang.Override + public long getMaxItems() { + return maxItems_; + } + + public static final int MINIMUM_FIELD_NUMBER = 18; + private double minimum_ = 0D; + + /** + * + * + *
      +   * Optional. Minimum value for Type.INTEGER and Type.NUMBER.
      +   * 
      + * + * optional double minimum = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the minimum field is set. + */ + @java.lang.Override + public boolean hasMinimum() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +   * Optional. Minimum value for Type.INTEGER and Type.NUMBER.
      +   * 
      + * + * optional double minimum = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minimum. + */ + @java.lang.Override + public double getMinimum() { + return minimum_; + } + + public static final int MAXIMUM_FIELD_NUMBER = 19; + private double maximum_ = 0D; + + /** + * + * + *
      +   * Optional. Maximum value for Type.INTEGER and Type.NUMBER.
      +   * 
      + * + * optional double maximum = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the maximum field is set. + */ + @java.lang.Override + public boolean hasMaximum() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +   * Optional. Maximum value for Type.INTEGER and Type.NUMBER.
      +   * 
      + * + * optional double maximum = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maximum. + */ + @java.lang.Override + public double getMaximum() { + return maximum_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (type_ != com.google.cloud.ces.v1.Schema.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, type_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 2); + for (int i = 0; i < required_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, required_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getItems()); + } + if (nullable_ != false) { + output.writeBool(6, nullable_); + } + if (uniqueItems_ != false) { + output.writeBool(7, uniqueItems_); + } + for (int i = 0; i < prefixItems_.size(); i++) { + output.writeMessage(8, prefixItems_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(9, getAdditionalProperties()); + } + for (int i = 0; i < anyOf_.size(); i++) { + output.writeMessage(10, anyOf_.get(i)); + } + for (int i = 0; i < enum_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, enum_.getRaw(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(12, getDefault()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ref_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 13, ref_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetDefs(), DefsDefaultEntryHolder.defaultEntry, 14); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 15, title_); + } + if (minItems_ != 0L) { + output.writeInt64(16, minItems_); + } + if (maxItems_ != 0L) { + output.writeInt64(17, maxItems_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeDouble(18, minimum_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeDouble(19, maximum_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != com.google.cloud.ces.v1.Schema.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + } + for (java.util.Map.Entry entry : + internalGetProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry properties__ = + PropertiesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, properties__); + } + { + int dataSize = 0; + for (int i = 0; i < required_.size(); i++) { + dataSize += computeStringSizeNoTag(required_.getRaw(i)); + } + size += dataSize; + size += 1 * getRequiredList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getItems()); + } + if (nullable_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, nullable_); + } + if (uniqueItems_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, uniqueItems_); + } + for (int i = 0; i < prefixItems_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, prefixItems_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(9, getAdditionalProperties()); + } + for (int i = 0; i < anyOf_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, anyOf_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < enum_.size(); i++) { + dataSize += computeStringSizeNoTag(enum_.getRaw(i)); + } + size += dataSize; + size += 1 * getEnumList().size(); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getDefault()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ref_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(13, ref_); + } + for (java.util.Map.Entry entry : + internalGetDefs().getMap().entrySet()) { + com.google.protobuf.MapEntry defs__ = + DefsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, defs__); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(15, title_); + } + if (minItems_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(16, minItems_); + } + if (maxItems_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(17, maxItems_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(18, minimum_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(19, maximum_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.Schema)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.Schema other = (com.google.cloud.ces.v1.Schema) obj; + + if (type_ != other.type_) return false; + if (!internalGetProperties().equals(other.internalGetProperties())) return false; + if (!getRequiredList().equals(other.getRequiredList())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (hasItems() != other.hasItems()) return false; + if (hasItems()) { + if (!getItems().equals(other.getItems())) return false; + } + if (getNullable() != other.getNullable()) return false; + if (getUniqueItems() != other.getUniqueItems()) return false; + if (!getPrefixItemsList().equals(other.getPrefixItemsList())) return false; + if (hasAdditionalProperties() != other.hasAdditionalProperties()) return false; + if (hasAdditionalProperties()) { + if (!getAdditionalProperties().equals(other.getAdditionalProperties())) return false; + } + if (!getAnyOfList().equals(other.getAnyOfList())) return false; + if (!getEnumList().equals(other.getEnumList())) return false; + if (hasDefault() != other.hasDefault()) return false; + if (hasDefault()) { + if (!getDefault().equals(other.getDefault())) return false; + } + if (!getRef().equals(other.getRef())) return false; + if (!internalGetDefs().equals(other.internalGetDefs())) return false; + if (!getTitle().equals(other.getTitle())) return false; + if (getMinItems() != other.getMinItems()) return false; + if (getMaxItems() != other.getMaxItems()) return false; + if (hasMinimum() != other.hasMinimum()) return false; + if (hasMinimum()) { + if (java.lang.Double.doubleToLongBits(getMinimum()) + != java.lang.Double.doubleToLongBits(other.getMinimum())) return false; + } + if (hasMaximum() != other.hasMaximum()) return false; + if (hasMaximum()) { + if (java.lang.Double.doubleToLongBits(getMaximum()) + != java.lang.Double.doubleToLongBits(other.getMaximum())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + if (!internalGetProperties().getMap().isEmpty()) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + internalGetProperties().hashCode(); + } + if (getRequiredCount() > 0) { + hash = (37 * hash) + REQUIRED_FIELD_NUMBER; + hash = (53 * hash) + getRequiredList().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasItems()) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItems().hashCode(); + } + hash = (37 * hash) + NULLABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNullable()); + hash = (37 * hash) + UNIQUE_ITEMS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUniqueItems()); + if (getPrefixItemsCount() > 0) { + hash = (37 * hash) + PREFIX_ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getPrefixItemsList().hashCode(); + } + if (hasAdditionalProperties()) { + hash = (37 * hash) + ADDITIONAL_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalProperties().hashCode(); + } + if (getAnyOfCount() > 0) { + hash = (37 * hash) + ANY_OF_FIELD_NUMBER; + hash = (53 * hash) + getAnyOfList().hashCode(); + } + if (getEnumCount() > 0) { + hash = (37 * hash) + ENUM_FIELD_NUMBER; + hash = (53 * hash) + getEnumList().hashCode(); + } + if (hasDefault()) { + hash = (37 * hash) + DEFAULT_FIELD_NUMBER; + hash = (53 * hash) + getDefault().hashCode(); + } + hash = (37 * hash) + REF_FIELD_NUMBER; + hash = (53 * hash) + getRef().hashCode(); + if (!internalGetDefs().getMap().isEmpty()) { + hash = (37 * hash) + DEFS_FIELD_NUMBER; + hash = (53 * hash) + internalGetDefs().hashCode(); + } + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + MIN_ITEMS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMinItems()); + hash = (37 * hash) + MAX_ITEMS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxItems()); + if (hasMinimum()) { + hash = (37 * hash) + MINIMUM_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMinimum())); + } + if (hasMaximum()) { + hash = (37 * hash) + MAXIMUM_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMaximum())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.Schema parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Schema parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Schema parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Schema parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Schema parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Schema parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Schema parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Schema parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Schema parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Schema parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Schema parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Schema parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.Schema prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Represents a select subset of an OpenAPI 3.0 schema object.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Schema} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.Schema) + com.google.cloud.ces.v1.SchemaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SchemaProto + .internal_static_google_cloud_ces_v1_Schema_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetProperties(); + case 14: + return internalGetDefs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetMutableProperties(); + case 14: + return internalGetMutableDefs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SchemaProto + .internal_static_google_cloud_ces_v1_Schema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Schema.class, com.google.cloud.ces.v1.Schema.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.Schema.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetItemsFieldBuilder(); + internalGetPrefixItemsFieldBuilder(); + internalGetAdditionalPropertiesFieldBuilder(); + internalGetAnyOfFieldBuilder(); + internalGetDefaultFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = 0; + internalGetMutableProperties().clear(); + required_ = com.google.protobuf.LazyStringArrayList.emptyList(); + description_ = ""; + items_ = null; + if (itemsBuilder_ != null) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + } + nullable_ = false; + uniqueItems_ = false; + if (prefixItemsBuilder_ == null) { + prefixItems_ = java.util.Collections.emptyList(); + } else { + prefixItems_ = null; + prefixItemsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + additionalProperties_ = null; + if (additionalPropertiesBuilder_ != null) { + additionalPropertiesBuilder_.dispose(); + additionalPropertiesBuilder_ = null; + } + if (anyOfBuilder_ == null) { + anyOf_ = java.util.Collections.emptyList(); + } else { + anyOf_ = null; + anyOfBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); + enum_ = com.google.protobuf.LazyStringArrayList.emptyList(); + default_ = null; + if (defaultBuilder_ != null) { + defaultBuilder_.dispose(); + defaultBuilder_ = null; + } + ref_ = ""; + internalGetMutableDefs().clear(); + title_ = ""; + minItems_ = 0L; + maxItems_ = 0L; + minimum_ = 0D; + maximum_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.SchemaProto + .internal_static_google_cloud_ces_v1_Schema_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Schema getDefaultInstanceForType() { + return com.google.cloud.ces.v1.Schema.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.Schema build() { + com.google.cloud.ces.v1.Schema result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Schema buildPartial() { + com.google.cloud.ces.v1.Schema result = new com.google.cloud.ces.v1.Schema(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1.Schema result) { + if (prefixItemsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + prefixItems_ = java.util.Collections.unmodifiableList(prefixItems_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.prefixItems_ = prefixItems_; + } else { + result.prefixItems_ = prefixItemsBuilder_.build(); + } + if (anyOfBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + anyOf_ = java.util.Collections.unmodifiableList(anyOf_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.anyOf_ = anyOf_; + } else { + result.anyOf_ = anyOfBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.Schema result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.properties_ = + internalGetProperties().build(PropertiesDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + required_.makeImmutable(); + result.required_ = required_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.description_ = description_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.items_ = itemsBuilder_ == null ? items_ : itemsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.nullable_ = nullable_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.uniqueItems_ = uniqueItems_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.additionalProperties_ = + additionalPropertiesBuilder_ == null + ? additionalProperties_ + : additionalPropertiesBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + enum_.makeImmutable(); + result.enum_ = enum_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.default_ = defaultBuilder_ == null ? default_ : defaultBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.ref_ = ref_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.defs_ = internalGetDefs().build(DefsDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.title_ = title_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.minItems_ = minItems_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.maxItems_ = maxItems_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.minimum_ = minimum_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.maximum_ = maximum_; + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.Schema) { + return mergeFrom((com.google.cloud.ces.v1.Schema) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.Schema other) { + if (other == com.google.cloud.ces.v1.Schema.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + internalGetMutableProperties().mergeFrom(other.internalGetProperties()); + bitField0_ |= 0x00000002; + if (!other.required_.isEmpty()) { + if (required_.isEmpty()) { + required_ = other.required_; + bitField0_ |= 0x00000004; + } else { + ensureRequiredIsMutable(); + required_.addAll(other.required_); + } + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasItems()) { + mergeItems(other.getItems()); + } + if (other.getNullable() != false) { + setNullable(other.getNullable()); + } + if (other.getUniqueItems() != false) { + setUniqueItems(other.getUniqueItems()); + } + if (prefixItemsBuilder_ == null) { + if (!other.prefixItems_.isEmpty()) { + if (prefixItems_.isEmpty()) { + prefixItems_ = other.prefixItems_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensurePrefixItemsIsMutable(); + prefixItems_.addAll(other.prefixItems_); + } + onChanged(); + } + } else { + if (!other.prefixItems_.isEmpty()) { + if (prefixItemsBuilder_.isEmpty()) { + prefixItemsBuilder_.dispose(); + prefixItemsBuilder_ = null; + prefixItems_ = other.prefixItems_; + bitField0_ = (bitField0_ & ~0x00000080); + prefixItemsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetPrefixItemsFieldBuilder() + : null; + } else { + prefixItemsBuilder_.addAllMessages(other.prefixItems_); + } + } + } + if (other.hasAdditionalProperties()) { + mergeAdditionalProperties(other.getAdditionalProperties()); + } + if (anyOfBuilder_ == null) { + if (!other.anyOf_.isEmpty()) { + if (anyOf_.isEmpty()) { + anyOf_ = other.anyOf_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureAnyOfIsMutable(); + anyOf_.addAll(other.anyOf_); + } + onChanged(); + } + } else { + if (!other.anyOf_.isEmpty()) { + if (anyOfBuilder_.isEmpty()) { + anyOfBuilder_.dispose(); + anyOfBuilder_ = null; + anyOf_ = other.anyOf_; + bitField0_ = (bitField0_ & ~0x00000200); + anyOfBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAnyOfFieldBuilder() + : null; + } else { + anyOfBuilder_.addAllMessages(other.anyOf_); + } + } + } + if (!other.enum_.isEmpty()) { + if (enum_.isEmpty()) { + enum_ = other.enum_; + bitField0_ |= 0x00000400; + } else { + ensureEnumIsMutable(); + enum_.addAll(other.enum_); + } + onChanged(); + } + if (other.hasDefault()) { + mergeDefault(other.getDefault()); + } + if (!other.getRef().isEmpty()) { + ref_ = other.ref_; + bitField0_ |= 0x00001000; + onChanged(); + } + internalGetMutableDefs().mergeFrom(other.internalGetDefs()); + bitField0_ |= 0x00002000; + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00004000; + onChanged(); + } + if (other.getMinItems() != 0L) { + setMinItems(other.getMinItems()); + } + if (other.getMaxItems() != 0L) { + setMaxItems(other.getMaxItems()); + } + if (other.hasMinimum()) { + setMinimum(other.getMinimum()); + } + if (other.hasMaximum()) { + setMaximum(other.getMaximum()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + com.google.protobuf.MapEntry + properties__ = + input.readMessage( + PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableProperties() + .ensureBuilderMap() + .put(properties__.getKey(), properties__.getValue()); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRequiredIsMutable(); + required_.add(s); + break; + } // case 26 + case 34: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(internalGetItemsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + nullable_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + uniqueItems_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 66: + { + com.google.cloud.ces.v1.Schema m = + input.readMessage(com.google.cloud.ces.v1.Schema.parser(), extensionRegistry); + if (prefixItemsBuilder_ == null) { + ensurePrefixItemsIsMutable(); + prefixItems_.add(m); + } else { + prefixItemsBuilder_.addMessage(m); + } + break; + } // case 66 + case 74: + { + input.readMessage( + internalGetAdditionalPropertiesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + com.google.cloud.ces.v1.Schema m = + input.readMessage(com.google.cloud.ces.v1.Schema.parser(), extensionRegistry); + if (anyOfBuilder_ == null) { + ensureAnyOfIsMutable(); + anyOf_.add(m); + } else { + anyOfBuilder_.addMessage(m); + } + break; + } // case 82 + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureEnumIsMutable(); + enum_.add(s); + break; + } // case 90 + case 98: + { + input.readMessage(internalGetDefaultFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: + { + ref_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 114: + { + com.google.protobuf.MapEntry + defs__ = + input.readMessage( + DefsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableDefs().ensureBuilderMap().put(defs__.getKey(), defs__.getValue()); + bitField0_ |= 0x00002000; + break; + } // case 114 + case 122: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00004000; + break; + } // case 122 + case 128: + { + minItems_ = input.readInt64(); + bitField0_ |= 0x00008000; + break; + } // case 128 + case 136: + { + maxItems_ = input.readInt64(); + bitField0_ |= 0x00010000; + break; + } // case 136 + case 145: + { + minimum_ = input.readDouble(); + bitField0_ |= 0x00020000; + break; + } // case 145 + case 153: + { + maximum_ = input.readDouble(); + bitField0_ |= 0x00040000; + break; + } // case 153 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int type_ = 0; + + /** + * + * + *
      +     * Required. The type of the data.
      +     * 
      + * + * .google.cloud.ces.v1.Schema.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
      +     * Required. The type of the data.
      +     * 
      + * + * .google.cloud.ces.v1.Schema.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The type of the data.
      +     * 
      + * + * .google.cloud.ces.v1.Schema.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Schema.Type getType() { + com.google.cloud.ces.v1.Schema.Type result = + com.google.cloud.ces.v1.Schema.Type.forNumber(type_); + return result == null ? com.google.cloud.ces.v1.Schema.Type.UNRECOGNIZED : result; + } + + /** + * + * + *
      +     * Required. The type of the data.
      +     * 
      + * + * .google.cloud.ces.v1.Schema.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.ces.v1.Schema.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The type of the data.
      +     * 
      + * + * .google.cloud.ces.v1.Schema.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = 0; + onChanged(); + return this; + } + + private static final class PropertiesConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.ces.v1.SchemaOrBuilder, + com.google.cloud.ces.v1.Schema> { + @java.lang.Override + public com.google.cloud.ces.v1.Schema build(com.google.cloud.ces.v1.SchemaOrBuilder val) { + if (val instanceof com.google.cloud.ces.v1.Schema) { + return (com.google.cloud.ces.v1.Schema) val; + } + return ((com.google.cloud.ces.v1.Schema.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry + defaultEntry() { + return PropertiesDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final PropertiesConverter propertiesConverter = new PropertiesConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.ces.v1.SchemaOrBuilder, + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder> + properties_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.ces.v1.SchemaOrBuilder, + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder> + internalGetProperties() { + if (properties_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(propertiesConverter); + } + return properties_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.ces.v1.SchemaOrBuilder, + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder> + internalGetMutableProperties() { + if (properties_ == null) { + properties_ = new com.google.protobuf.MapFieldBuilder<>(propertiesConverter); + } + bitField0_ |= 0x00000002; + onChanged(); + return properties_; + } + + public int getPropertiesCount() { + return internalGetProperties().ensureBuilderMap().size(); + } + + /** + * + * + *
      +     * Optional. Properties of Type.OBJECT.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.Schema> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetProperties().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getPropertiesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getProperties() { + return getPropertiesMap(); + } + + /** + * + * + *
      +     * Optional. Properties of Type.OBJECT.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.Schema> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getPropertiesMap() { + return internalGetProperties().getImmutableMap(); + } + + /** + * + * + *
      +     * Optional. Properties of Type.OBJECT.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.Schema> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.ces.v1.Schema getPropertiesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.ces.v1.Schema defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMutableProperties().ensureBuilderMap(); + return map.containsKey(key) ? propertiesConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
      +     * Optional. Properties of Type.OBJECT.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.Schema> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Schema getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMutableProperties().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return propertiesConverter.build(map.get(key)); + } + + public Builder clearProperties() { + bitField0_ = (bitField0_ & ~0x00000002); + internalGetMutableProperties().clear(); + return this; + } + + /** + * + * + *
      +     * Optional. Properties of Type.OBJECT.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.Schema> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableProperties().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableProperties() { + bitField0_ |= 0x00000002; + return internalGetMutableProperties().ensureMessageMap(); + } + + /** + * + * + *
      +     * Optional. Properties of Type.OBJECT.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.Schema> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putProperties(java.lang.String key, com.google.cloud.ces.v1.Schema value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableProperties().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000002; + return this; + } + + /** + * + * + *
      +     * Optional. Properties of Type.OBJECT.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.Schema> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllProperties( + java.util.Map values) { + for (java.util.Map.Entry e : + values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableProperties().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000002; + return this; + } + + /** + * + * + *
      +     * Optional. Properties of Type.OBJECT.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.Schema> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Schema.Builder putPropertiesBuilderIfAbsent( + java.lang.String key) { + java.util.Map builderMap = + internalGetMutableProperties().ensureBuilderMap(); + com.google.cloud.ces.v1.SchemaOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.ces.v1.Schema.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.ces.v1.Schema) { + entry = ((com.google.cloud.ces.v1.Schema) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.ces.v1.Schema.Builder) entry; + } + + private com.google.protobuf.LazyStringArrayList required_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureRequiredIsMutable() { + if (!required_.isModifiable()) { + required_ = new com.google.protobuf.LazyStringArrayList(required_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
      +     * Optional. Required properties of Type.OBJECT.
      +     * 
      + * + * repeated string required = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the required. + */ + public com.google.protobuf.ProtocolStringList getRequiredList() { + required_.makeImmutable(); + return required_; + } + + /** + * + * + *
      +     * Optional. Required properties of Type.OBJECT.
      +     * 
      + * + * repeated string required = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of required. + */ + public int getRequiredCount() { + return required_.size(); + } + + /** + * + * + *
      +     * Optional. Required properties of Type.OBJECT.
      +     * 
      + * + * repeated string required = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The required at the given index. + */ + public java.lang.String getRequired(int index) { + return required_.get(index); + } + + /** + * + * + *
      +     * Optional. Required properties of Type.OBJECT.
      +     * 
      + * + * repeated string required = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the required at the given index. + */ + public com.google.protobuf.ByteString getRequiredBytes(int index) { + return required_.getByteString(index); + } + + /** + * + * + *
      +     * Optional. Required properties of Type.OBJECT.
      +     * 
      + * + * repeated string required = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The required to set. + * @return This builder for chaining. + */ + public Builder setRequired(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequiredIsMutable(); + required_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Required properties of Type.OBJECT.
      +     * 
      + * + * repeated string required = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The required to add. + * @return This builder for chaining. + */ + public Builder addRequired(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequiredIsMutable(); + required_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Required properties of Type.OBJECT.
      +     * 
      + * + * repeated string required = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The required to add. + * @return This builder for chaining. + */ + public Builder addAllRequired(java.lang.Iterable values) { + ensureRequiredIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, required_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Required properties of Type.OBJECT.
      +     * 
      + * + * repeated string required = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequired() { + required_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Required properties of Type.OBJECT.
      +     * 
      + * + * repeated string required = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the required to add. + * @return This builder for chaining. + */ + public Builder addRequiredBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRequiredIsMutable(); + required_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
      +     * Optional. The description of the data.
      +     * 
      + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The description of the data.
      +     * 
      + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The description of the data.
      +     * 
      + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The description of the data.
      +     * 
      + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The description of the data.
      +     * 
      + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.Schema items_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder> + itemsBuilder_; + + /** + * + * + *
      +     * Optional. Schema of the elements of Type.ARRAY.
      +     * 
      + * + * .google.cloud.ces.v1.Schema items = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the items field is set. + */ + public boolean hasItems() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +     * Optional. Schema of the elements of Type.ARRAY.
      +     * 
      + * + * .google.cloud.ces.v1.Schema items = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The items. + */ + public com.google.cloud.ces.v1.Schema getItems() { + if (itemsBuilder_ == null) { + return items_ == null ? com.google.cloud.ces.v1.Schema.getDefaultInstance() : items_; + } else { + return itemsBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Schema of the elements of Type.ARRAY.
      +     * 
      + * + * .google.cloud.ces.v1.Schema items = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setItems(com.google.cloud.ces.v1.Schema value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + items_ = value; + } else { + itemsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Schema of the elements of Type.ARRAY.
      +     * 
      + * + * .google.cloud.ces.v1.Schema items = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setItems(com.google.cloud.ces.v1.Schema.Builder builderForValue) { + if (itemsBuilder_ == null) { + items_ = builderForValue.build(); + } else { + itemsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Schema of the elements of Type.ARRAY.
      +     * 
      + * + * .google.cloud.ces.v1.Schema items = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeItems(com.google.cloud.ces.v1.Schema value) { + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && items_ != null + && items_ != com.google.cloud.ces.v1.Schema.getDefaultInstance()) { + getItemsBuilder().mergeFrom(value); + } else { + items_ = value; + } + } else { + itemsBuilder_.mergeFrom(value); + } + if (items_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Schema of the elements of Type.ARRAY.
      +     * 
      + * + * .google.cloud.ces.v1.Schema items = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearItems() { + bitField0_ = (bitField0_ & ~0x00000010); + items_ = null; + if (itemsBuilder_ != null) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Schema of the elements of Type.ARRAY.
      +     * 
      + * + * .google.cloud.ces.v1.Schema items = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.ces.v1.Schema.Builder getItemsBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetItemsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Schema of the elements of Type.ARRAY.
      +     * 
      + * + * .google.cloud.ces.v1.Schema items = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.ces.v1.SchemaOrBuilder getItemsOrBuilder() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilder(); + } else { + return items_ == null ? com.google.cloud.ces.v1.Schema.getDefaultInstance() : items_; + } + } + + /** + * + * + *
      +     * Optional. Schema of the elements of Type.ARRAY.
      +     * 
      + * + * .google.cloud.ces.v1.Schema items = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder> + internalGetItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder>( + getItems(), getParentForChildren(), isClean()); + items_ = null; + } + return itemsBuilder_; + } + + private boolean nullable_; + + /** + * + * + *
      +     * Optional. Indicates if the value may be null.
      +     * 
      + * + * bool nullable = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nullable. + */ + @java.lang.Override + public boolean getNullable() { + return nullable_; + } + + /** + * + * + *
      +     * Optional. Indicates if the value may be null.
      +     * 
      + * + * bool nullable = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The nullable to set. + * @return This builder for chaining. + */ + public Builder setNullable(boolean value) { + + nullable_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Indicates if the value may be null.
      +     * 
      + * + * bool nullable = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNullable() { + bitField0_ = (bitField0_ & ~0x00000020); + nullable_ = false; + onChanged(); + return this; + } + + private boolean uniqueItems_; + + /** + * + * + *
      +     * Optional. Indicate the items in the array must be unique. Only applies to
      +     * TYPE.ARRAY.
      +     * 
      + * + * bool unique_items = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The uniqueItems. + */ + @java.lang.Override + public boolean getUniqueItems() { + return uniqueItems_; + } + + /** + * + * + *
      +     * Optional. Indicate the items in the array must be unique. Only applies to
      +     * TYPE.ARRAY.
      +     * 
      + * + * bool unique_items = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The uniqueItems to set. + * @return This builder for chaining. + */ + public Builder setUniqueItems(boolean value) { + + uniqueItems_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Indicate the items in the array must be unique. Only applies to
      +     * TYPE.ARRAY.
      +     * 
      + * + * bool unique_items = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUniqueItems() { + bitField0_ = (bitField0_ & ~0x00000040); + uniqueItems_ = false; + onChanged(); + return this; + } + + private java.util.List prefixItems_ = + java.util.Collections.emptyList(); + + private void ensurePrefixItemsIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + prefixItems_ = new java.util.ArrayList(prefixItems_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder> + prefixItemsBuilder_; + + /** + * + * + *
      +     * Optional. Schemas of initial elements of Type.ARRAY.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getPrefixItemsList() { + if (prefixItemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(prefixItems_); + } else { + return prefixItemsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Optional. Schemas of initial elements of Type.ARRAY.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getPrefixItemsCount() { + if (prefixItemsBuilder_ == null) { + return prefixItems_.size(); + } else { + return prefixItemsBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Optional. Schemas of initial elements of Type.ARRAY.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Schema getPrefixItems(int index) { + if (prefixItemsBuilder_ == null) { + return prefixItems_.get(index); + } else { + return prefixItemsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Optional. Schemas of initial elements of Type.ARRAY.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPrefixItems(int index, com.google.cloud.ces.v1.Schema value) { + if (prefixItemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrefixItemsIsMutable(); + prefixItems_.set(index, value); + onChanged(); + } else { + prefixItemsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. Schemas of initial elements of Type.ARRAY.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPrefixItems( + int index, com.google.cloud.ces.v1.Schema.Builder builderForValue) { + if (prefixItemsBuilder_ == null) { + ensurePrefixItemsIsMutable(); + prefixItems_.set(index, builderForValue.build()); + onChanged(); + } else { + prefixItemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. Schemas of initial elements of Type.ARRAY.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPrefixItems(com.google.cloud.ces.v1.Schema value) { + if (prefixItemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrefixItemsIsMutable(); + prefixItems_.add(value); + onChanged(); + } else { + prefixItemsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Optional. Schemas of initial elements of Type.ARRAY.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPrefixItems(int index, com.google.cloud.ces.v1.Schema value) { + if (prefixItemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrefixItemsIsMutable(); + prefixItems_.add(index, value); + onChanged(); + } else { + prefixItemsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. Schemas of initial elements of Type.ARRAY.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPrefixItems(com.google.cloud.ces.v1.Schema.Builder builderForValue) { + if (prefixItemsBuilder_ == null) { + ensurePrefixItemsIsMutable(); + prefixItems_.add(builderForValue.build()); + onChanged(); + } else { + prefixItemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. Schemas of initial elements of Type.ARRAY.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPrefixItems( + int index, com.google.cloud.ces.v1.Schema.Builder builderForValue) { + if (prefixItemsBuilder_ == null) { + ensurePrefixItemsIsMutable(); + prefixItems_.add(index, builderForValue.build()); + onChanged(); + } else { + prefixItemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. Schemas of initial elements of Type.ARRAY.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllPrefixItems( + java.lang.Iterable values) { + if (prefixItemsBuilder_ == null) { + ensurePrefixItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, prefixItems_); + onChanged(); + } else { + prefixItemsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Optional. Schemas of initial elements of Type.ARRAY.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPrefixItems() { + if (prefixItemsBuilder_ == null) { + prefixItems_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + prefixItemsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Schemas of initial elements of Type.ARRAY.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removePrefixItems(int index) { + if (prefixItemsBuilder_ == null) { + ensurePrefixItemsIsMutable(); + prefixItems_.remove(index); + onChanged(); + } else { + prefixItemsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Optional. Schemas of initial elements of Type.ARRAY.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Schema.Builder getPrefixItemsBuilder(int index) { + return internalGetPrefixItemsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Optional. Schemas of initial elements of Type.ARRAY.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.SchemaOrBuilder getPrefixItemsOrBuilder(int index) { + if (prefixItemsBuilder_ == null) { + return prefixItems_.get(index); + } else { + return prefixItemsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Optional. Schemas of initial elements of Type.ARRAY.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getPrefixItemsOrBuilderList() { + if (prefixItemsBuilder_ != null) { + return prefixItemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(prefixItems_); + } + } + + /** + * + * + *
      +     * Optional. Schemas of initial elements of Type.ARRAY.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Schema.Builder addPrefixItemsBuilder() { + return internalGetPrefixItemsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.Schema.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. Schemas of initial elements of Type.ARRAY.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Schema.Builder addPrefixItemsBuilder(int index) { + return internalGetPrefixItemsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.Schema.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. Schemas of initial elements of Type.ARRAY.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getPrefixItemsBuilderList() { + return internalGetPrefixItemsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder> + internalGetPrefixItemsFieldBuilder() { + if (prefixItemsBuilder_ == null) { + prefixItemsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder>( + prefixItems_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); + prefixItems_ = null; + } + return prefixItemsBuilder_; + } + + private com.google.cloud.ces.v1.Schema additionalProperties_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder> + additionalPropertiesBuilder_; + + /** + * + * + *
      +     * Optional. Can either be a boolean or an object, controls the presence of
      +     * additional properties.
      +     * 
      + * + * + * .google.cloud.ces.v1.Schema additional_properties = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the additionalProperties field is set. + */ + public boolean hasAdditionalProperties() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
      +     * Optional. Can either be a boolean or an object, controls the presence of
      +     * additional properties.
      +     * 
      + * + * + * .google.cloud.ces.v1.Schema additional_properties = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The additionalProperties. + */ + public com.google.cloud.ces.v1.Schema getAdditionalProperties() { + if (additionalPropertiesBuilder_ == null) { + return additionalProperties_ == null + ? com.google.cloud.ces.v1.Schema.getDefaultInstance() + : additionalProperties_; + } else { + return additionalPropertiesBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Can either be a boolean or an object, controls the presence of
      +     * additional properties.
      +     * 
      + * + * + * .google.cloud.ces.v1.Schema additional_properties = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAdditionalProperties(com.google.cloud.ces.v1.Schema value) { + if (additionalPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + additionalProperties_ = value; + } else { + additionalPropertiesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Can either be a boolean or an object, controls the presence of
      +     * additional properties.
      +     * 
      + * + * + * .google.cloud.ces.v1.Schema additional_properties = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAdditionalProperties(com.google.cloud.ces.v1.Schema.Builder builderForValue) { + if (additionalPropertiesBuilder_ == null) { + additionalProperties_ = builderForValue.build(); + } else { + additionalPropertiesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Can either be a boolean or an object, controls the presence of
      +     * additional properties.
      +     * 
      + * + * + * .google.cloud.ces.v1.Schema additional_properties = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAdditionalProperties(com.google.cloud.ces.v1.Schema value) { + if (additionalPropertiesBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && additionalProperties_ != null + && additionalProperties_ != com.google.cloud.ces.v1.Schema.getDefaultInstance()) { + getAdditionalPropertiesBuilder().mergeFrom(value); + } else { + additionalProperties_ = value; + } + } else { + additionalPropertiesBuilder_.mergeFrom(value); + } + if (additionalProperties_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Can either be a boolean or an object, controls the presence of
      +     * additional properties.
      +     * 
      + * + * + * .google.cloud.ces.v1.Schema additional_properties = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAdditionalProperties() { + bitField0_ = (bitField0_ & ~0x00000100); + additionalProperties_ = null; + if (additionalPropertiesBuilder_ != null) { + additionalPropertiesBuilder_.dispose(); + additionalPropertiesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Can either be a boolean or an object, controls the presence of
      +     * additional properties.
      +     * 
      + * + * + * .google.cloud.ces.v1.Schema additional_properties = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Schema.Builder getAdditionalPropertiesBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return internalGetAdditionalPropertiesFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Can either be a boolean or an object, controls the presence of
      +     * additional properties.
      +     * 
      + * + * + * .google.cloud.ces.v1.Schema additional_properties = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.SchemaOrBuilder getAdditionalPropertiesOrBuilder() { + if (additionalPropertiesBuilder_ != null) { + return additionalPropertiesBuilder_.getMessageOrBuilder(); + } else { + return additionalProperties_ == null + ? com.google.cloud.ces.v1.Schema.getDefaultInstance() + : additionalProperties_; + } + } + + /** + * + * + *
      +     * Optional. Can either be a boolean or an object, controls the presence of
      +     * additional properties.
      +     * 
      + * + * + * .google.cloud.ces.v1.Schema additional_properties = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder> + internalGetAdditionalPropertiesFieldBuilder() { + if (additionalPropertiesBuilder_ == null) { + additionalPropertiesBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder>( + getAdditionalProperties(), getParentForChildren(), isClean()); + additionalProperties_ = null; + } + return additionalPropertiesBuilder_; + } + + private java.util.List anyOf_ = + java.util.Collections.emptyList(); + + private void ensureAnyOfIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + anyOf_ = new java.util.ArrayList(anyOf_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder> + anyOfBuilder_; + + /** + * + * + *
      +     * Optional. The value should be validated against any (one or more) of the
      +     * subschemas in the list.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getAnyOfList() { + if (anyOfBuilder_ == null) { + return java.util.Collections.unmodifiableList(anyOf_); + } else { + return anyOfBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Optional. The value should be validated against any (one or more) of the
      +     * subschemas in the list.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getAnyOfCount() { + if (anyOfBuilder_ == null) { + return anyOf_.size(); + } else { + return anyOfBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Optional. The value should be validated against any (one or more) of the
      +     * subschemas in the list.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Schema getAnyOf(int index) { + if (anyOfBuilder_ == null) { + return anyOf_.get(index); + } else { + return anyOfBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Optional. The value should be validated against any (one or more) of the
      +     * subschemas in the list.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAnyOf(int index, com.google.cloud.ces.v1.Schema value) { + if (anyOfBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnyOfIsMutable(); + anyOf_.set(index, value); + onChanged(); + } else { + anyOfBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The value should be validated against any (one or more) of the
      +     * subschemas in the list.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAnyOf(int index, com.google.cloud.ces.v1.Schema.Builder builderForValue) { + if (anyOfBuilder_ == null) { + ensureAnyOfIsMutable(); + anyOf_.set(index, builderForValue.build()); + onChanged(); + } else { + anyOfBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The value should be validated against any (one or more) of the
      +     * subschemas in the list.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAnyOf(com.google.cloud.ces.v1.Schema value) { + if (anyOfBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnyOfIsMutable(); + anyOf_.add(value); + onChanged(); + } else { + anyOfBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The value should be validated against any (one or more) of the
      +     * subschemas in the list.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAnyOf(int index, com.google.cloud.ces.v1.Schema value) { + if (anyOfBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnyOfIsMutable(); + anyOf_.add(index, value); + onChanged(); + } else { + anyOfBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The value should be validated against any (one or more) of the
      +     * subschemas in the list.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAnyOf(com.google.cloud.ces.v1.Schema.Builder builderForValue) { + if (anyOfBuilder_ == null) { + ensureAnyOfIsMutable(); + anyOf_.add(builderForValue.build()); + onChanged(); + } else { + anyOfBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The value should be validated against any (one or more) of the
      +     * subschemas in the list.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAnyOf(int index, com.google.cloud.ces.v1.Schema.Builder builderForValue) { + if (anyOfBuilder_ == null) { + ensureAnyOfIsMutable(); + anyOf_.add(index, builderForValue.build()); + onChanged(); + } else { + anyOfBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The value should be validated against any (one or more) of the
      +     * subschemas in the list.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllAnyOf( + java.lang.Iterable values) { + if (anyOfBuilder_ == null) { + ensureAnyOfIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, anyOf_); + onChanged(); + } else { + anyOfBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Optional. The value should be validated against any (one or more) of the
      +     * subschemas in the list.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAnyOf() { + if (anyOfBuilder_ == null) { + anyOf_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + anyOfBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The value should be validated against any (one or more) of the
      +     * subschemas in the list.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAnyOf(int index) { + if (anyOfBuilder_ == null) { + ensureAnyOfIsMutable(); + anyOf_.remove(index); + onChanged(); + } else { + anyOfBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Optional. The value should be validated against any (one or more) of the
      +     * subschemas in the list.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Schema.Builder getAnyOfBuilder(int index) { + return internalGetAnyOfFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Optional. The value should be validated against any (one or more) of the
      +     * subschemas in the list.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.SchemaOrBuilder getAnyOfOrBuilder(int index) { + if (anyOfBuilder_ == null) { + return anyOf_.get(index); + } else { + return anyOfBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Optional. The value should be validated against any (one or more) of the
      +     * subschemas in the list.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAnyOfOrBuilderList() { + if (anyOfBuilder_ != null) { + return anyOfBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(anyOf_); + } + } + + /** + * + * + *
      +     * Optional. The value should be validated against any (one or more) of the
      +     * subschemas in the list.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Schema.Builder addAnyOfBuilder() { + return internalGetAnyOfFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.Schema.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. The value should be validated against any (one or more) of the
      +     * subschemas in the list.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Schema.Builder addAnyOfBuilder(int index) { + return internalGetAnyOfFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.Schema.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. The value should be validated against any (one or more) of the
      +     * subschemas in the list.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getAnyOfBuilderList() { + return internalGetAnyOfFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder> + internalGetAnyOfFieldBuilder() { + if (anyOfBuilder_ == null) { + anyOfBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder>( + anyOf_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); + anyOf_ = null; + } + return anyOfBuilder_; + } + + private com.google.protobuf.LazyStringArrayList enum_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureEnumIsMutable() { + if (!enum_.isModifiable()) { + enum_ = new com.google.protobuf.LazyStringArrayList(enum_); + } + bitField0_ |= 0x00000400; + } + + /** + * + * + *
      +     * Optional. Possible values of the element of primitive type with enum
      +     * format. Examples:
      +     * 1. We can define direction as :
      +     * {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]}
      +     * 2. We can define apartment number as :
      +     * {type:INTEGER, format:enum, enum:["101", "201", "301"]}
      +     * 
      + * + * repeated string enum = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the enum. + */ + public com.google.protobuf.ProtocolStringList getEnumList() { + enum_.makeImmutable(); + return enum_; + } + + /** + * + * + *
      +     * Optional. Possible values of the element of primitive type with enum
      +     * format. Examples:
      +     * 1. We can define direction as :
      +     * {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]}
      +     * 2. We can define apartment number as :
      +     * {type:INTEGER, format:enum, enum:["101", "201", "301"]}
      +     * 
      + * + * repeated string enum = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of enum. + */ + public int getEnumCount() { + return enum_.size(); + } + + /** + * + * + *
      +     * Optional. Possible values of the element of primitive type with enum
      +     * format. Examples:
      +     * 1. We can define direction as :
      +     * {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]}
      +     * 2. We can define apartment number as :
      +     * {type:INTEGER, format:enum, enum:["101", "201", "301"]}
      +     * 
      + * + * repeated string enum = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The enum at the given index. + */ + public java.lang.String getEnum(int index) { + return enum_.get(index); + } + + /** + * + * + *
      +     * Optional. Possible values of the element of primitive type with enum
      +     * format. Examples:
      +     * 1. We can define direction as :
      +     * {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]}
      +     * 2. We can define apartment number as :
      +     * {type:INTEGER, format:enum, enum:["101", "201", "301"]}
      +     * 
      + * + * repeated string enum = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the enum at the given index. + */ + public com.google.protobuf.ByteString getEnumBytes(int index) { + return enum_.getByteString(index); + } + + /** + * + * + *
      +     * Optional. Possible values of the element of primitive type with enum
      +     * format. Examples:
      +     * 1. We can define direction as :
      +     * {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]}
      +     * 2. We can define apartment number as :
      +     * {type:INTEGER, format:enum, enum:["101", "201", "301"]}
      +     * 
      + * + * repeated string enum = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The enum to set. + * @return This builder for chaining. + */ + public Builder setEnum(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnumIsMutable(); + enum_.set(index, value); + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Possible values of the element of primitive type with enum
      +     * format. Examples:
      +     * 1. We can define direction as :
      +     * {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]}
      +     * 2. We can define apartment number as :
      +     * {type:INTEGER, format:enum, enum:["101", "201", "301"]}
      +     * 
      + * + * repeated string enum = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enum to add. + * @return This builder for chaining. + */ + public Builder addEnum(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnumIsMutable(); + enum_.add(value); + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Possible values of the element of primitive type with enum
      +     * format. Examples:
      +     * 1. We can define direction as :
      +     * {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]}
      +     * 2. We can define apartment number as :
      +     * {type:INTEGER, format:enum, enum:["101", "201", "301"]}
      +     * 
      + * + * repeated string enum = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The enum to add. + * @return This builder for chaining. + */ + public Builder addAllEnum(java.lang.Iterable values) { + ensureEnumIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, enum_); + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Possible values of the element of primitive type with enum
      +     * format. Examples:
      +     * 1. We can define direction as :
      +     * {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]}
      +     * 2. We can define apartment number as :
      +     * {type:INTEGER, format:enum, enum:["101", "201", "301"]}
      +     * 
      + * + * repeated string enum = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnum() { + enum_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Possible values of the element of primitive type with enum
      +     * format. Examples:
      +     * 1. We can define direction as :
      +     * {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]}
      +     * 2. We can define apartment number as :
      +     * {type:INTEGER, format:enum, enum:["101", "201", "301"]}
      +     * 
      + * + * repeated string enum = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the enum to add. + * @return This builder for chaining. + */ + public Builder addEnumBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureEnumIsMutable(); + enum_.add(value); + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private com.google.protobuf.Value default_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + defaultBuilder_; + + /** + * + * + *
      +     * Optional. Default value of the data.
      +     * 
      + * + * .google.protobuf.Value default = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the default field is set. + */ + public boolean hasDefault() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
      +     * Optional. Default value of the data.
      +     * 
      + * + * .google.protobuf.Value default = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The default. + */ + public com.google.protobuf.Value getDefault() { + if (defaultBuilder_ == null) { + return default_ == null ? com.google.protobuf.Value.getDefaultInstance() : default_; + } else { + return defaultBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Default value of the data.
      +     * 
      + * + * .google.protobuf.Value default = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setDefault(com.google.protobuf.Value value) { + if (defaultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + default_ = value; + } else { + defaultBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Default value of the data.
      +     * 
      + * + * .google.protobuf.Value default = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setDefault(com.google.protobuf.Value.Builder builderForValue) { + if (defaultBuilder_ == null) { + default_ = builderForValue.build(); + } else { + defaultBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Default value of the data.
      +     * 
      + * + * .google.protobuf.Value default = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeDefault(com.google.protobuf.Value value) { + if (defaultBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && default_ != null + && default_ != com.google.protobuf.Value.getDefaultInstance()) { + getDefaultBuilder().mergeFrom(value); + } else { + default_ = value; + } + } else { + defaultBuilder_.mergeFrom(value); + } + if (default_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Default value of the data.
      +     * 
      + * + * .google.protobuf.Value default = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearDefault() { + bitField0_ = (bitField0_ & ~0x00000800); + default_ = null; + if (defaultBuilder_ != null) { + defaultBuilder_.dispose(); + defaultBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Default value of the data.
      +     * 
      + * + * .google.protobuf.Value default = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Value.Builder getDefaultBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return internalGetDefaultFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Default value of the data.
      +     * 
      + * + * .google.protobuf.Value default = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.ValueOrBuilder getDefaultOrBuilder() { + if (defaultBuilder_ != null) { + return defaultBuilder_.getMessageOrBuilder(); + } else { + return default_ == null ? com.google.protobuf.Value.getDefaultInstance() : default_; + } + } + + /** + * + * + *
      +     * Optional. Default value of the data.
      +     * 
      + * + * .google.protobuf.Value default = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + internalGetDefaultFieldBuilder() { + if (defaultBuilder_ == null) { + defaultBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>( + getDefault(), getParentForChildren(), isClean()); + default_ = null; + } + return defaultBuilder_; + } + + private java.lang.Object ref_ = ""; + + /** + * + * + *
      +     * Optional. Allows indirect references between schema nodes. The value should
      +     * be a valid reference to a child of the root `defs`.
      +     *
      +     * For example, the following schema defines a reference to a schema node
      +     * named "Pet":
      +     *
      +     * ```
      +     * type: object
      +     * properties:
      +     * pet:
      +     * ref: #/defs/Pet
      +     * defs:
      +     * Pet:
      +     * type: object
      +     * properties:
      +     * name:
      +     * type: string
      +     * ```
      +     *
      +     * The value of the "pet" property is a reference to the schema node
      +     * named "Pet".
      +     * See details in
      +     * https://json-schema.org/understanding-json-schema/structuring.
      +     * 
      + * + * string ref = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ref. + */ + public java.lang.String getRef() { + java.lang.Object ref = ref_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ref_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Allows indirect references between schema nodes. The value should
      +     * be a valid reference to a child of the root `defs`.
      +     *
      +     * For example, the following schema defines a reference to a schema node
      +     * named "Pet":
      +     *
      +     * ```
      +     * type: object
      +     * properties:
      +     * pet:
      +     * ref: #/defs/Pet
      +     * defs:
      +     * Pet:
      +     * type: object
      +     * properties:
      +     * name:
      +     * type: string
      +     * ```
      +     *
      +     * The value of the "pet" property is a reference to the schema node
      +     * named "Pet".
      +     * See details in
      +     * https://json-schema.org/understanding-json-schema/structuring.
      +     * 
      + * + * string ref = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for ref. + */ + public com.google.protobuf.ByteString getRefBytes() { + java.lang.Object ref = ref_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ref_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Allows indirect references between schema nodes. The value should
      +     * be a valid reference to a child of the root `defs`.
      +     *
      +     * For example, the following schema defines a reference to a schema node
      +     * named "Pet":
      +     *
      +     * ```
      +     * type: object
      +     * properties:
      +     * pet:
      +     * ref: #/defs/Pet
      +     * defs:
      +     * Pet:
      +     * type: object
      +     * properties:
      +     * name:
      +     * type: string
      +     * ```
      +     *
      +     * The value of the "pet" property is a reference to the schema node
      +     * named "Pet".
      +     * See details in
      +     * https://json-schema.org/understanding-json-schema/structuring.
      +     * 
      + * + * string ref = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The ref to set. + * @return This builder for chaining. + */ + public Builder setRef(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ref_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Allows indirect references between schema nodes. The value should
      +     * be a valid reference to a child of the root `defs`.
      +     *
      +     * For example, the following schema defines a reference to a schema node
      +     * named "Pet":
      +     *
      +     * ```
      +     * type: object
      +     * properties:
      +     * pet:
      +     * ref: #/defs/Pet
      +     * defs:
      +     * Pet:
      +     * type: object
      +     * properties:
      +     * name:
      +     * type: string
      +     * ```
      +     *
      +     * The value of the "pet" property is a reference to the schema node
      +     * named "Pet".
      +     * See details in
      +     * https://json-schema.org/understanding-json-schema/structuring.
      +     * 
      + * + * string ref = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRef() { + ref_ = getDefaultInstance().getRef(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Allows indirect references between schema nodes. The value should
      +     * be a valid reference to a child of the root `defs`.
      +     *
      +     * For example, the following schema defines a reference to a schema node
      +     * named "Pet":
      +     *
      +     * ```
      +     * type: object
      +     * properties:
      +     * pet:
      +     * ref: #/defs/Pet
      +     * defs:
      +     * Pet:
      +     * type: object
      +     * properties:
      +     * name:
      +     * type: string
      +     * ```
      +     *
      +     * The value of the "pet" property is a reference to the schema node
      +     * named "Pet".
      +     * See details in
      +     * https://json-schema.org/understanding-json-schema/structuring.
      +     * 
      + * + * string ref = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for ref to set. + * @return This builder for chaining. + */ + public Builder setRefBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ref_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + private static final class DefsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.ces.v1.SchemaOrBuilder, + com.google.cloud.ces.v1.Schema> { + @java.lang.Override + public com.google.cloud.ces.v1.Schema build(com.google.cloud.ces.v1.SchemaOrBuilder val) { + if (val instanceof com.google.cloud.ces.v1.Schema) { + return (com.google.cloud.ces.v1.Schema) val; + } + return ((com.google.cloud.ces.v1.Schema.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry + defaultEntry() { + return DefsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final DefsConverter defsConverter = new DefsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.ces.v1.SchemaOrBuilder, + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder> + defs_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.ces.v1.SchemaOrBuilder, + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder> + internalGetDefs() { + if (defs_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(defsConverter); + } + return defs_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.ces.v1.SchemaOrBuilder, + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder> + internalGetMutableDefs() { + if (defs_ == null) { + defs_ = new com.google.protobuf.MapFieldBuilder<>(defsConverter); + } + bitField0_ |= 0x00002000; + onChanged(); + return defs_; + } + + public int getDefsCount() { + return internalGetDefs().ensureBuilderMap().size(); + } + + /** + * + * + *
      +     * Optional. A map of definitions for use by `ref`. Only allowed at the root
      +     * of the schema.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.Schema> defs = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsDefs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetDefs().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getDefsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDefs() { + return getDefsMap(); + } + + /** + * + * + *
      +     * Optional. A map of definitions for use by `ref`. Only allowed at the root
      +     * of the schema.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.Schema> defs = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getDefsMap() { + return internalGetDefs().getImmutableMap(); + } + + /** + * + * + *
      +     * Optional. A map of definitions for use by `ref`. Only allowed at the root
      +     * of the schema.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.Schema> defs = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.ces.v1.Schema getDefsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.ces.v1.Schema defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMutableDefs().ensureBuilderMap(); + return map.containsKey(key) ? defsConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
      +     * Optional. A map of definitions for use by `ref`. Only allowed at the root
      +     * of the schema.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.Schema> defs = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Schema getDefsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMutableDefs().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return defsConverter.build(map.get(key)); + } + + public Builder clearDefs() { + bitField0_ = (bitField0_ & ~0x00002000); + internalGetMutableDefs().clear(); + return this; + } + + /** + * + * + *
      +     * Optional. A map of definitions for use by `ref`. Only allowed at the root
      +     * of the schema.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.Schema> defs = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeDefs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableDefs().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableDefs() { + bitField0_ |= 0x00002000; + return internalGetMutableDefs().ensureMessageMap(); + } + + /** + * + * + *
      +     * Optional. A map of definitions for use by `ref`. Only allowed at the root
      +     * of the schema.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.Schema> defs = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putDefs(java.lang.String key, com.google.cloud.ces.v1.Schema value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableDefs().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00002000; + return this; + } + + /** + * + * + *
      +     * Optional. A map of definitions for use by `ref`. Only allowed at the root
      +     * of the schema.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.Schema> defs = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllDefs( + java.util.Map values) { + for (java.util.Map.Entry e : + values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableDefs().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00002000; + return this; + } + + /** + * + * + *
      +     * Optional. A map of definitions for use by `ref`. Only allowed at the root
      +     * of the schema.
      +     * 
      + * + * + * map<string, .google.cloud.ces.v1.Schema> defs = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Schema.Builder putDefsBuilderIfAbsent(java.lang.String key) { + java.util.Map builderMap = + internalGetMutableDefs().ensureBuilderMap(); + com.google.cloud.ces.v1.SchemaOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.ces.v1.Schema.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.ces.v1.Schema) { + entry = ((com.google.cloud.ces.v1.Schema) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.ces.v1.Schema.Builder) entry; + } + + private java.lang.Object title_ = ""; + + /** + * + * + *
      +     * Optional. The title of the schema.
      +     * 
      + * + * string title = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The title of the schema.
      +     * 
      + * + * string title = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The title of the schema.
      +     * 
      + * + * string title = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The title of the schema.
      +     * 
      + * + * string title = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The title of the schema.
      +     * 
      + * + * string title = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + private long minItems_; + + /** + * + * + *
      +     * Optional. Minimum number of the elements for Type.ARRAY.
      +     * 
      + * + * int64 min_items = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minItems. + */ + @java.lang.Override + public long getMinItems() { + return minItems_; + } + + /** + * + * + *
      +     * Optional. Minimum number of the elements for Type.ARRAY.
      +     * 
      + * + * int64 min_items = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The minItems to set. + * @return This builder for chaining. + */ + public Builder setMinItems(long value) { + + minItems_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Minimum number of the elements for Type.ARRAY.
      +     * 
      + * + * int64 min_items = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMinItems() { + bitField0_ = (bitField0_ & ~0x00008000); + minItems_ = 0L; + onChanged(); + return this; + } + + private long maxItems_; + + /** + * + * + *
      +     * Optional. Maximum number of the elements for Type.ARRAY.
      +     * 
      + * + * int64 max_items = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxItems. + */ + @java.lang.Override + public long getMaxItems() { + return maxItems_; + } + + /** + * + * + *
      +     * Optional. Maximum number of the elements for Type.ARRAY.
      +     * 
      + * + * int64 max_items = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The maxItems to set. + * @return This builder for chaining. + */ + public Builder setMaxItems(long value) { + + maxItems_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Maximum number of the elements for Type.ARRAY.
      +     * 
      + * + * int64 max_items = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMaxItems() { + bitField0_ = (bitField0_ & ~0x00010000); + maxItems_ = 0L; + onChanged(); + return this; + } + + private double minimum_; + + /** + * + * + *
      +     * Optional. Minimum value for Type.INTEGER and Type.NUMBER.
      +     * 
      + * + * optional double minimum = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the minimum field is set. + */ + @java.lang.Override + public boolean hasMinimum() { + return ((bitField0_ & 0x00020000) != 0); + } + + /** + * + * + *
      +     * Optional. Minimum value for Type.INTEGER and Type.NUMBER.
      +     * 
      + * + * optional double minimum = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minimum. + */ + @java.lang.Override + public double getMinimum() { + return minimum_; + } + + /** + * + * + *
      +     * Optional. Minimum value for Type.INTEGER and Type.NUMBER.
      +     * 
      + * + * optional double minimum = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The minimum to set. + * @return This builder for chaining. + */ + public Builder setMinimum(double value) { + + minimum_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Minimum value for Type.INTEGER and Type.NUMBER.
      +     * 
      + * + * optional double minimum = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMinimum() { + bitField0_ = (bitField0_ & ~0x00020000); + minimum_ = 0D; + onChanged(); + return this; + } + + private double maximum_; + + /** + * + * + *
      +     * Optional. Maximum value for Type.INTEGER and Type.NUMBER.
      +     * 
      + * + * optional double maximum = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the maximum field is set. + */ + @java.lang.Override + public boolean hasMaximum() { + return ((bitField0_ & 0x00040000) != 0); + } + + /** + * + * + *
      +     * Optional. Maximum value for Type.INTEGER and Type.NUMBER.
      +     * 
      + * + * optional double maximum = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maximum. + */ + @java.lang.Override + public double getMaximum() { + return maximum_; + } + + /** + * + * + *
      +     * Optional. Maximum value for Type.INTEGER and Type.NUMBER.
      +     * 
      + * + * optional double maximum = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The maximum to set. + * @return This builder for chaining. + */ + public Builder setMaximum(double value) { + + maximum_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Maximum value for Type.INTEGER and Type.NUMBER.
      +     * 
      + * + * optional double maximum = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMaximum() { + bitField0_ = (bitField0_ & ~0x00040000); + maximum_ = 0D; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Schema) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.Schema) + private static final com.google.cloud.ces.v1.Schema DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.Schema(); + } + + public static com.google.cloud.ces.v1.Schema getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Schema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Schema getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SchemaOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SchemaOrBuilder.java new file mode 100644 index 000000000000..7e6eb4b18140 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SchemaOrBuilder.java @@ -0,0 +1,817 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/schema.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface SchemaOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.Schema) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The type of the data.
      +   * 
      + * + * .google.cloud.ces.v1.Schema.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
      +   * Required. The type of the data.
      +   * 
      + * + * .google.cloud.ces.v1.Schema.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + com.google.cloud.ces.v1.Schema.Type getType(); + + /** + * + * + *
      +   * Optional. Properties of Type.OBJECT.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.Schema> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getPropertiesCount(); + + /** + * + * + *
      +   * Optional. Properties of Type.OBJECT.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.Schema> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsProperties(java.lang.String key); + + /** Use {@link #getPropertiesMap()} instead. */ + @java.lang.Deprecated + java.util.Map getProperties(); + + /** + * + * + *
      +   * Optional. Properties of Type.OBJECT.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.Schema> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getPropertiesMap(); + + /** + * + * + *
      +   * Optional. Properties of Type.OBJECT.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.Schema> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + com.google.cloud.ces.v1.Schema getPropertiesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.ces.v1.Schema defaultValue); + + /** + * + * + *
      +   * Optional. Properties of Type.OBJECT.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.Schema> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.Schema getPropertiesOrThrow(java.lang.String key); + + /** + * + * + *
      +   * Optional. Required properties of Type.OBJECT.
      +   * 
      + * + * repeated string required = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the required. + */ + java.util.List getRequiredList(); + + /** + * + * + *
      +   * Optional. Required properties of Type.OBJECT.
      +   * 
      + * + * repeated string required = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of required. + */ + int getRequiredCount(); + + /** + * + * + *
      +   * Optional. Required properties of Type.OBJECT.
      +   * 
      + * + * repeated string required = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The required at the given index. + */ + java.lang.String getRequired(int index); + + /** + * + * + *
      +   * Optional. Required properties of Type.OBJECT.
      +   * 
      + * + * repeated string required = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the required at the given index. + */ + com.google.protobuf.ByteString getRequiredBytes(int index); + + /** + * + * + *
      +   * Optional. The description of the data.
      +   * 
      + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
      +   * Optional. The description of the data.
      +   * 
      + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
      +   * Optional. Schema of the elements of Type.ARRAY.
      +   * 
      + * + * .google.cloud.ces.v1.Schema items = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the items field is set. + */ + boolean hasItems(); + + /** + * + * + *
      +   * Optional. Schema of the elements of Type.ARRAY.
      +   * 
      + * + * .google.cloud.ces.v1.Schema items = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The items. + */ + com.google.cloud.ces.v1.Schema getItems(); + + /** + * + * + *
      +   * Optional. Schema of the elements of Type.ARRAY.
      +   * 
      + * + * .google.cloud.ces.v1.Schema items = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.ces.v1.SchemaOrBuilder getItemsOrBuilder(); + + /** + * + * + *
      +   * Optional. Indicates if the value may be null.
      +   * 
      + * + * bool nullable = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nullable. + */ + boolean getNullable(); + + /** + * + * + *
      +   * Optional. Indicate the items in the array must be unique. Only applies to
      +   * TYPE.ARRAY.
      +   * 
      + * + * bool unique_items = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The uniqueItems. + */ + boolean getUniqueItems(); + + /** + * + * + *
      +   * Optional. Schemas of initial elements of Type.ARRAY.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getPrefixItemsList(); + + /** + * + * + *
      +   * Optional. Schemas of initial elements of Type.ARRAY.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.Schema getPrefixItems(int index); + + /** + * + * + *
      +   * Optional. Schemas of initial elements of Type.ARRAY.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getPrefixItemsCount(); + + /** + * + * + *
      +   * Optional. Schemas of initial elements of Type.ARRAY.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getPrefixItemsOrBuilderList(); + + /** + * + * + *
      +   * Optional. Schemas of initial elements of Type.ARRAY.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.SchemaOrBuilder getPrefixItemsOrBuilder(int index); + + /** + * + * + *
      +   * Optional. Can either be a boolean or an object, controls the presence of
      +   * additional properties.
      +   * 
      + * + * + * .google.cloud.ces.v1.Schema additional_properties = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the additionalProperties field is set. + */ + boolean hasAdditionalProperties(); + + /** + * + * + *
      +   * Optional. Can either be a boolean or an object, controls the presence of
      +   * additional properties.
      +   * 
      + * + * + * .google.cloud.ces.v1.Schema additional_properties = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The additionalProperties. + */ + com.google.cloud.ces.v1.Schema getAdditionalProperties(); + + /** + * + * + *
      +   * Optional. Can either be a boolean or an object, controls the presence of
      +   * additional properties.
      +   * 
      + * + * + * .google.cloud.ces.v1.Schema additional_properties = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.SchemaOrBuilder getAdditionalPropertiesOrBuilder(); + + /** + * + * + *
      +   * Optional. The value should be validated against any (one or more) of the
      +   * subschemas in the list.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getAnyOfList(); + + /** + * + * + *
      +   * Optional. The value should be validated against any (one or more) of the
      +   * subschemas in the list.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.Schema getAnyOf(int index); + + /** + * + * + *
      +   * Optional. The value should be validated against any (one or more) of the
      +   * subschemas in the list.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAnyOfCount(); + + /** + * + * + *
      +   * Optional. The value should be validated against any (one or more) of the
      +   * subschemas in the list.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getAnyOfOrBuilderList(); + + /** + * + * + *
      +   * Optional. The value should be validated against any (one or more) of the
      +   * subschemas in the list.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.SchemaOrBuilder getAnyOfOrBuilder(int index); + + /** + * + * + *
      +   * Optional. Possible values of the element of primitive type with enum
      +   * format. Examples:
      +   * 1. We can define direction as :
      +   * {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]}
      +   * 2. We can define apartment number as :
      +   * {type:INTEGER, format:enum, enum:["101", "201", "301"]}
      +   * 
      + * + * repeated string enum = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the enum. + */ + java.util.List getEnumList(); + + /** + * + * + *
      +   * Optional. Possible values of the element of primitive type with enum
      +   * format. Examples:
      +   * 1. We can define direction as :
      +   * {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]}
      +   * 2. We can define apartment number as :
      +   * {type:INTEGER, format:enum, enum:["101", "201", "301"]}
      +   * 
      + * + * repeated string enum = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of enum. + */ + int getEnumCount(); + + /** + * + * + *
      +   * Optional. Possible values of the element of primitive type with enum
      +   * format. Examples:
      +   * 1. We can define direction as :
      +   * {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]}
      +   * 2. We can define apartment number as :
      +   * {type:INTEGER, format:enum, enum:["101", "201", "301"]}
      +   * 
      + * + * repeated string enum = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The enum at the given index. + */ + java.lang.String getEnum(int index); + + /** + * + * + *
      +   * Optional. Possible values of the element of primitive type with enum
      +   * format. Examples:
      +   * 1. We can define direction as :
      +   * {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]}
      +   * 2. We can define apartment number as :
      +   * {type:INTEGER, format:enum, enum:["101", "201", "301"]}
      +   * 
      + * + * repeated string enum = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the enum at the given index. + */ + com.google.protobuf.ByteString getEnumBytes(int index); + + /** + * + * + *
      +   * Optional. Default value of the data.
      +   * 
      + * + * .google.protobuf.Value default = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the default field is set. + */ + boolean hasDefault(); + + /** + * + * + *
      +   * Optional. Default value of the data.
      +   * 
      + * + * .google.protobuf.Value default = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The default. + */ + com.google.protobuf.Value getDefault(); + + /** + * + * + *
      +   * Optional. Default value of the data.
      +   * 
      + * + * .google.protobuf.Value default = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.ValueOrBuilder getDefaultOrBuilder(); + + /** + * + * + *
      +   * Optional. Allows indirect references between schema nodes. The value should
      +   * be a valid reference to a child of the root `defs`.
      +   *
      +   * For example, the following schema defines a reference to a schema node
      +   * named "Pet":
      +   *
      +   * ```
      +   * type: object
      +   * properties:
      +   * pet:
      +   * ref: #/defs/Pet
      +   * defs:
      +   * Pet:
      +   * type: object
      +   * properties:
      +   * name:
      +   * type: string
      +   * ```
      +   *
      +   * The value of the "pet" property is a reference to the schema node
      +   * named "Pet".
      +   * See details in
      +   * https://json-schema.org/understanding-json-schema/structuring.
      +   * 
      + * + * string ref = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ref. + */ + java.lang.String getRef(); + + /** + * + * + *
      +   * Optional. Allows indirect references between schema nodes. The value should
      +   * be a valid reference to a child of the root `defs`.
      +   *
      +   * For example, the following schema defines a reference to a schema node
      +   * named "Pet":
      +   *
      +   * ```
      +   * type: object
      +   * properties:
      +   * pet:
      +   * ref: #/defs/Pet
      +   * defs:
      +   * Pet:
      +   * type: object
      +   * properties:
      +   * name:
      +   * type: string
      +   * ```
      +   *
      +   * The value of the "pet" property is a reference to the schema node
      +   * named "Pet".
      +   * See details in
      +   * https://json-schema.org/understanding-json-schema/structuring.
      +   * 
      + * + * string ref = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for ref. + */ + com.google.protobuf.ByteString getRefBytes(); + + /** + * + * + *
      +   * Optional. A map of definitions for use by `ref`. Only allowed at the root
      +   * of the schema.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.Schema> defs = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getDefsCount(); + + /** + * + * + *
      +   * Optional. A map of definitions for use by `ref`. Only allowed at the root
      +   * of the schema.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.Schema> defs = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsDefs(java.lang.String key); + + /** Use {@link #getDefsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getDefs(); + + /** + * + * + *
      +   * Optional. A map of definitions for use by `ref`. Only allowed at the root
      +   * of the schema.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.Schema> defs = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getDefsMap(); + + /** + * + * + *
      +   * Optional. A map of definitions for use by `ref`. Only allowed at the root
      +   * of the schema.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.Schema> defs = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + com.google.cloud.ces.v1.Schema getDefsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.ces.v1.Schema defaultValue); + + /** + * + * + *
      +   * Optional. A map of definitions for use by `ref`. Only allowed at the root
      +   * of the schema.
      +   * 
      + * + * + * map<string, .google.cloud.ces.v1.Schema> defs = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.Schema getDefsOrThrow(java.lang.String key); + + /** + * + * + *
      +   * Optional. The title of the schema.
      +   * 
      + * + * string title = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
      +   * Optional. The title of the schema.
      +   * 
      + * + * string title = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
      +   * Optional. Minimum number of the elements for Type.ARRAY.
      +   * 
      + * + * int64 min_items = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minItems. + */ + long getMinItems(); + + /** + * + * + *
      +   * Optional. Maximum number of the elements for Type.ARRAY.
      +   * 
      + * + * int64 max_items = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxItems. + */ + long getMaxItems(); + + /** + * + * + *
      +   * Optional. Minimum value for Type.INTEGER and Type.NUMBER.
      +   * 
      + * + * optional double minimum = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the minimum field is set. + */ + boolean hasMinimum(); + + /** + * + * + *
      +   * Optional. Minimum value for Type.INTEGER and Type.NUMBER.
      +   * 
      + * + * optional double minimum = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minimum. + */ + double getMinimum(); + + /** + * + * + *
      +   * Optional. Maximum value for Type.INTEGER and Type.NUMBER.
      +   * 
      + * + * optional double maximum = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the maximum field is set. + */ + boolean hasMaximum(); + + /** + * + * + *
      +   * Optional. Maximum value for Type.INTEGER and Type.NUMBER.
      +   * 
      + * + * optional double maximum = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maximum. + */ + double getMaximum(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SchemaProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SchemaProto.java new file mode 100644 index 000000000000..dde0c287692c --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SchemaProto.java @@ -0,0 +1,172 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/schema.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class SchemaProto extends com.google.protobuf.GeneratedFile { + private SchemaProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SchemaProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Schema_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Schema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Schema_PropertiesEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Schema_PropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Schema_DefsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Schema_DefsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + " google/cloud/ces/v1/schema.proto\022\023goog" + + "le.cloud.ces.v1\032\037google/api/field_behavi" + + "or.proto\032\034google/protobuf/struct.proto\"\342\007\n" + + "\006Schema\0223\n" + + "\004type\030\001 \001(\0162 .google.cloud.ces.v1.Schema.TypeB\003\340A\002\022D\n\n" + + "properties\030\002 \003" + + "(\0132+.google.cloud.ces.v1.Schema.PropertiesEntryB\003\340A\001\022\025\n" + + "\010required\030\003 \003(\tB\003\340A\001\022\030\n" + + "\013description\030\004 \001(\tB\003\340A\001\022/\n" + + "\005items\030\005 \001(\0132\033.google.cloud.ces.v1.SchemaB\003\340A\001\022\025\n" + + "\010nullable\030\006 \001(\010B\003\340A\001\022\031\n" + + "\014unique_items\030\007 \001(\010B\003\340A\001\0226\n" + + "\014prefix_items\030\010" + + " \003(\0132\033.google.cloud.ces.v1.SchemaB\003\340A\001\022?\n" + + "\025additional_properties\030\t" + + " \001(\0132\033.google.cloud.ces.v1.SchemaB\003\340A\001\0220\n" + + "\006any_of\030\n" + + " \003(\0132\033.google.cloud.ces.v1.SchemaB\003\340A\001\022\021\n" + + "\004enum\030\013 \003(\tB\003\340A\001\022,\n" + + "\007default\030\014 \001(\0132\026.google.protobuf.ValueB\003\340A\001\022\020\n" + + "\003ref\030\r" + + " \001(\tB\003\340A\001\0228\n" + + "\004defs\030\016" + + " \003(\0132%.google.cloud.ces.v1.Schema.DefsEntryB\003\340A\001\022\022\n" + + "\005title\030\017 \001(\tB\003\340A\001\022\026\n" + + "\tmin_items\030\020 \001(\003B\003\340A\001\022\026\n" + + "\tmax_items\030\021 \001(\003B\003\340A\001\022\031\n" + + "\007minimum\030\022 \001(\001B\003\340A\001H\000\210\001\001\022\031\n" + + "\007maximum\030\023 \001(\001B\003\340A\001H\001\210\001\001\032N\n" + + "\017PropertiesEntry\022\013\n" + + "\003key\030\001 \001(\t\022*\n" + + "\005value\030\002 \001(\0132\033.google.cloud.ces.v1.Schema:\0028\001\032H\n" + + "\tDefsEntry\022\013\n" + + "\003key\030\001 \001(\t\022*\n" + + "\005value\030\002 \001(\0132\033.google.cloud.ces.v1.Schema:\0028\001\"e\n" + + "\004Type\022\024\n" + + "\020TYPE_UNSPECIFIED\020\000\022\n\n" + + "\006STRING\020\001\022\013\n" + + "\007INTEGER\020\002\022\n\n" + + "\006NUMBER\020\003\022\013\n" + + "\007BOOLEAN\020\004\022\n\n" + + "\006OBJECT\020\005\022\t\n" + + "\005ARRAY\020\006B\n\n" + + "\010_minimumB\n\n" + + "\010_maximumBS\n" + + "\027com.google.cloud.ces.v1B\013SchemaProtoP\001Z)c" + + "loud.google.com/go/ces/apiv1/cespb;cespbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_Schema_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_Schema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Schema_descriptor, + new java.lang.String[] { + "Type", + "Properties", + "Required", + "Description", + "Items", + "Nullable", + "UniqueItems", + "PrefixItems", + "AdditionalProperties", + "AnyOf", + "Enum", + "Default", + "Ref", + "Defs", + "Title", + "MinItems", + "MaxItems", + "Minimum", + "Maximum", + }); + internal_static_google_cloud_ces_v1_Schema_PropertiesEntry_descriptor = + internal_static_google_cloud_ces_v1_Schema_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_Schema_PropertiesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Schema_PropertiesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_ces_v1_Schema_DefsEntry_descriptor = + internal_static_google_cloud_ces_v1_Schema_descriptor.getNestedType(1); + internal_static_google_cloud_ces_v1_Schema_DefsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Schema_DefsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SearchSuggestionsProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SearchSuggestionsProto.java new file mode 100644 index 000000000000..64c420a348f4 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SearchSuggestionsProto.java @@ -0,0 +1,93 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/search_suggestions.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class SearchSuggestionsProto extends com.google.protobuf.GeneratedFile { + private SearchSuggestionsProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchSuggestionsProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_GoogleSearchSuggestions_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_GoogleSearchSuggestions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_WebSearchQuery_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_WebSearchQuery_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/ces/v1/search_suggestions" + + ".proto\022\023google.cloud.ces.v1\"i\n\027GoogleSea" + + "rchSuggestions\022\r\n\005htmls\030\001 \003(\t\022?\n\022web_sea" + + "rch_queries\030\002 \003(\0132#.google.cloud.ces.v1." + + "WebSearchQuery\",\n\016WebSearchQuery\022\r\n\005quer" + + "y\030\001 \001(\t\022\013\n\003uri\030\002 \001(\tB^\n\027com.google.cloud" + + ".ces.v1B\026SearchSuggestionsProtoP\001Z)cloud" + + ".google.com/go/ces/apiv1/cespb;cespbb\006pr" + + "oto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_ces_v1_GoogleSearchSuggestions_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_GoogleSearchSuggestions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_GoogleSearchSuggestions_descriptor, + new java.lang.String[] { + "Htmls", "WebSearchQueries", + }); + internal_static_google_cloud_ces_v1_WebSearchQuery_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_ces_v1_WebSearchQuery_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_WebSearchQuery_descriptor, + new java.lang.String[] { + "Query", "Uri", + }); + descriptor.resolveAllFeaturesImmutable(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ServiceAccountAuthConfig.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ServiceAccountAuthConfig.java new file mode 100644 index 000000000000..00032df4bd81 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ServiceAccountAuthConfig.java @@ -0,0 +1,948 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/auth.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Configurations for authentication using a custom service account.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ServiceAccountAuthConfig} + */ +@com.google.protobuf.Generated +public final class ServiceAccountAuthConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ServiceAccountAuthConfig) + ServiceAccountAuthConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ServiceAccountAuthConfig"); + } + + // Use ServiceAccountAuthConfig.newBuilder() to construct. + private ServiceAccountAuthConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ServiceAccountAuthConfig() { + serviceAccount_ = ""; + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_ServiceAccountAuthConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_ServiceAccountAuthConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ServiceAccountAuthConfig.class, + com.google.cloud.ces.v1.ServiceAccountAuthConfig.Builder.class); + } + + public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccount_ = ""; + + /** + * + * + *
      +   * Required. The email address of the service account used for authentication.
      +   * CES uses this service account to exchange an access token and the access
      +   * token is then sent in the `Authorization` header of the request.
      +   *
      +   * The service account must have the
      +   * `roles/iam.serviceAccountTokenCreator` role granted to the
      +   * CES service agent
      +   * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +   * 
      + * + * string service_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The serviceAccount. + */ + @java.lang.Override + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The email address of the service account used for authentication.
      +   * CES uses this service account to exchange an access token and the access
      +   * token is then sent in the `Authorization` header of the request.
      +   *
      +   * The service account must have the
      +   * `roles/iam.serviceAccountTokenCreator` role granted to the
      +   * CES service agent
      +   * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +   * 
      + * + * string service_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for serviceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCOPES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
      +   * Optional. The OAuth scopes to grant. If not specified, the default scope
      +   * `https://www.googleapis.com/auth/cloud-platform` is used.
      +   * 
      + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList getScopesList() { + return scopes_; + } + + /** + * + * + *
      +   * Optional. The OAuth scopes to grant. If not specified, the default scope
      +   * `https://www.googleapis.com/auth/cloud-platform` is used.
      +   * 
      + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + + /** + * + * + *
      +   * Optional. The OAuth scopes to grant. If not specified, the default scope
      +   * `https://www.googleapis.com/auth/cloud-platform` is used.
      +   * 
      + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + public java.lang.String getScopes(int index) { + return scopes_.get(index); + } + + /** + * + * + *
      +   * Optional. The OAuth scopes to grant. If not specified, the default scope
      +   * `https://www.googleapis.com/auth/cloud-platform` is used.
      +   * 
      + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + public com.google.protobuf.ByteString getScopesBytes(int index) { + return scopes_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccount_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, serviceAccount_); + } + for (int i = 0; i < scopes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, scopes_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccount_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, serviceAccount_); + } + { + int dataSize = 0; + for (int i = 0; i < scopes_.size(); i++) { + dataSize += computeStringSizeNoTag(scopes_.getRaw(i)); + } + size += dataSize; + size += 1 * getScopesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ServiceAccountAuthConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ServiceAccountAuthConfig other = + (com.google.cloud.ces.v1.ServiceAccountAuthConfig) obj; + + if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (!getScopesList().equals(other.getScopesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccount().hashCode(); + if (getScopesCount() > 0) { + hash = (37 * hash) + SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getScopesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ServiceAccountAuthConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ServiceAccountAuthConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ServiceAccountAuthConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ServiceAccountAuthConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ServiceAccountAuthConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ServiceAccountAuthConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ServiceAccountAuthConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ServiceAccountAuthConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ServiceAccountAuthConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ServiceAccountAuthConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ServiceAccountAuthConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ServiceAccountAuthConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ServiceAccountAuthConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Configurations for authentication using a custom service account.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ServiceAccountAuthConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ServiceAccountAuthConfig) + com.google.cloud.ces.v1.ServiceAccountAuthConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_ServiceAccountAuthConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_ServiceAccountAuthConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ServiceAccountAuthConfig.class, + com.google.cloud.ces.v1.ServiceAccountAuthConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ServiceAccountAuthConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + serviceAccount_ = ""; + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_ServiceAccountAuthConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ServiceAccountAuthConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ServiceAccountAuthConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ServiceAccountAuthConfig build() { + com.google.cloud.ces.v1.ServiceAccountAuthConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ServiceAccountAuthConfig buildPartial() { + com.google.cloud.ces.v1.ServiceAccountAuthConfig result = + new com.google.cloud.ces.v1.ServiceAccountAuthConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ServiceAccountAuthConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.serviceAccount_ = serviceAccount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + scopes_.makeImmutable(); + result.scopes_ = scopes_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ServiceAccountAuthConfig) { + return mergeFrom((com.google.cloud.ces.v1.ServiceAccountAuthConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ServiceAccountAuthConfig other) { + if (other == com.google.cloud.ces.v1.ServiceAccountAuthConfig.getDefaultInstance()) + return this; + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.scopes_.isEmpty()) { + if (scopes_.isEmpty()) { + scopes_ = other.scopes_; + bitField0_ |= 0x00000002; + } else { + ensureScopesIsMutable(); + scopes_.addAll(other.scopes_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + serviceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureScopesIsMutable(); + scopes_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object serviceAccount_ = ""; + + /** + * + * + *
      +     * Required. The email address of the service account used for authentication.
      +     * CES uses this service account to exchange an access token and the access
      +     * token is then sent in the `Authorization` header of the request.
      +     *
      +     * The service account must have the
      +     * `roles/iam.serviceAccountTokenCreator` role granted to the
      +     * CES service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +     * 
      + * + * string service_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The serviceAccount. + */ + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The email address of the service account used for authentication.
      +     * CES uses this service account to exchange an access token and the access
      +     * token is then sent in the `Authorization` header of the request.
      +     *
      +     * The service account must have the
      +     * `roles/iam.serviceAccountTokenCreator` role granted to the
      +     * CES service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +     * 
      + * + * string service_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for serviceAccount. + */ + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The email address of the service account used for authentication.
      +     * CES uses this service account to exchange an access token and the access
      +     * token is then sent in the `Authorization` header of the request.
      +     *
      +     * The service account must have the
      +     * `roles/iam.serviceAccountTokenCreator` role granted to the
      +     * CES service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +     * 
      + * + * string service_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceAccount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The email address of the service account used for authentication.
      +     * CES uses this service account to exchange an access token and the access
      +     * token is then sent in the `Authorization` header of the request.
      +     *
      +     * The service account must have the
      +     * `roles/iam.serviceAccountTokenCreator` role granted to the
      +     * CES service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +     * 
      + * + * string service_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccount() { + serviceAccount_ = getDefaultInstance().getServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The email address of the service account used for authentication.
      +     * CES uses this service account to exchange an access token and the access
      +     * token is then sent in the `Authorization` header of the request.
      +     *
      +     * The service account must have the
      +     * `roles/iam.serviceAccountTokenCreator` role granted to the
      +     * CES service agent
      +     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +     * 
      + * + * string service_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureScopesIsMutable() { + if (!scopes_.isModifiable()) { + scopes_ = new com.google.protobuf.LazyStringArrayList(scopes_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
      +     * Optional. The OAuth scopes to grant. If not specified, the default scope
      +     * `https://www.googleapis.com/auth/cloud-platform` is used.
      +     * 
      + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList getScopesList() { + scopes_.makeImmutable(); + return scopes_; + } + + /** + * + * + *
      +     * Optional. The OAuth scopes to grant. If not specified, the default scope
      +     * `https://www.googleapis.com/auth/cloud-platform` is used.
      +     * 
      + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + + /** + * + * + *
      +     * Optional. The OAuth scopes to grant. If not specified, the default scope
      +     * `https://www.googleapis.com/auth/cloud-platform` is used.
      +     * 
      + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + public java.lang.String getScopes(int index) { + return scopes_.get(index); + } + + /** + * + * + *
      +     * Optional. The OAuth scopes to grant. If not specified, the default scope
      +     * `https://www.googleapis.com/auth/cloud-platform` is used.
      +     * 
      + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + public com.google.protobuf.ByteString getScopesBytes(int index) { + return scopes_.getByteString(index); + } + + /** + * + * + *
      +     * Optional. The OAuth scopes to grant. If not specified, the default scope
      +     * `https://www.googleapis.com/auth/cloud-platform` is used.
      +     * 
      + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The scopes to set. + * @return This builder for chaining. + */ + public Builder setScopes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesIsMutable(); + scopes_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The OAuth scopes to grant. If not specified, the default scope
      +     * `https://www.googleapis.com/auth/cloud-platform` is used.
      +     * 
      + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The scopes to add. + * @return This builder for chaining. + */ + public Builder addScopes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesIsMutable(); + scopes_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The OAuth scopes to grant. If not specified, the default scope
      +     * `https://www.googleapis.com/auth/cloud-platform` is used.
      +     * 
      + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The scopes to add. + * @return This builder for chaining. + */ + public Builder addAllScopes(java.lang.Iterable values) { + ensureScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scopes_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The OAuth scopes to grant. If not specified, the default scope
      +     * `https://www.googleapis.com/auth/cloud-platform` is used.
      +     * 
      + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearScopes() { + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The OAuth scopes to grant. If not specified, the default scope
      +     * `https://www.googleapis.com/auth/cloud-platform` is used.
      +     * 
      + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the scopes to add. + * @return This builder for chaining. + */ + public Builder addScopesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureScopesIsMutable(); + scopes_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ServiceAccountAuthConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ServiceAccountAuthConfig) + private static final com.google.cloud.ces.v1.ServiceAccountAuthConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ServiceAccountAuthConfig(); + } + + public static com.google.cloud.ces.v1.ServiceAccountAuthConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceAccountAuthConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ServiceAccountAuthConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ServiceAccountAuthConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ServiceAccountAuthConfigOrBuilder.java new file mode 100644 index 000000000000..9d40b1625a73 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ServiceAccountAuthConfigOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/auth.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ServiceAccountAuthConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ServiceAccountAuthConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The email address of the service account used for authentication.
      +   * CES uses this service account to exchange an access token and the access
      +   * token is then sent in the `Authorization` header of the request.
      +   *
      +   * The service account must have the
      +   * `roles/iam.serviceAccountTokenCreator` role granted to the
      +   * CES service agent
      +   * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +   * 
      + * + * string service_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The serviceAccount. + */ + java.lang.String getServiceAccount(); + + /** + * + * + *
      +   * Required. The email address of the service account used for authentication.
      +   * CES uses this service account to exchange an access token and the access
      +   * token is then sent in the `Authorization` header of the request.
      +   *
      +   * The service account must have the
      +   * `roles/iam.serviceAccountTokenCreator` role granted to the
      +   * CES service agent
      +   * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      +   * 
      + * + * string service_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for serviceAccount. + */ + com.google.protobuf.ByteString getServiceAccountBytes(); + + /** + * + * + *
      +   * Optional. The OAuth scopes to grant. If not specified, the default scope
      +   * `https://www.googleapis.com/auth/cloud-platform` is used.
      +   * 
      + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the scopes. + */ + java.util.List getScopesList(); + + /** + * + * + *
      +   * Optional. The OAuth scopes to grant. If not specified, the default scope
      +   * `https://www.googleapis.com/auth/cloud-platform` is used.
      +   * 
      + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of scopes. + */ + int getScopesCount(); + + /** + * + * + *
      +   * Optional. The OAuth scopes to grant. If not specified, the default scope
      +   * `https://www.googleapis.com/auth/cloud-platform` is used.
      +   * 
      + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + java.lang.String getScopes(int index); + + /** + * + * + *
      +   * Optional. The OAuth scopes to grant. If not specified, the default scope
      +   * `https://www.googleapis.com/auth/cloud-platform` is used.
      +   * 
      + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + com.google.protobuf.ByteString getScopesBytes(int index); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ServiceAgentIdTokenAuthConfig.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ServiceAgentIdTokenAuthConfig.java new file mode 100644 index 000000000000..44a4c9b70fa6 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ServiceAgentIdTokenAuthConfig.java @@ -0,0 +1,401 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/auth.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Configurations for authentication with [ID
      + * token](https://cloud.google.com/docs/authentication/token-types#id) generated
      + * from service agent.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig} + */ +@com.google.protobuf.Generated +public final class ServiceAgentIdTokenAuthConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig) + ServiceAgentIdTokenAuthConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ServiceAgentIdTokenAuthConfig"); + } + + // Use ServiceAgentIdTokenAuthConfig.newBuilder() to construct. + private ServiceAgentIdTokenAuthConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ServiceAgentIdTokenAuthConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_ServiceAgentIdTokenAuthConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_ServiceAgentIdTokenAuthConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig.class, + com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig other = + (com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Configurations for authentication with [ID
      +   * token](https://cloud.google.com/docs/authentication/token-types#id) generated
      +   * from service agent.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig) + com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_ServiceAgentIdTokenAuthConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_ServiceAgentIdTokenAuthConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig.class, + com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AuthProto + .internal_static_google_cloud_ces_v1_ServiceAgentIdTokenAuthConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig build() { + com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig buildPartial() { + com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig result = + new com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig) { + return mergeFrom((com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig other) { + if (other == com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig) + private static final com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig(); + } + + public static com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceAgentIdTokenAuthConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ServiceAgentIdTokenAuthConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ServiceAgentIdTokenAuthConfigOrBuilder.java new file mode 100644 index 000000000000..341868c2ec18 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ServiceAgentIdTokenAuthConfigOrBuilder.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/auth.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ServiceAgentIdTokenAuthConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ServiceAgentIdTokenAuthConfig) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ServiceDirectoryConfig.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ServiceDirectoryConfig.java new file mode 100644 index 000000000000..17751fd0f95f --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ServiceDirectoryConfig.java @@ -0,0 +1,644 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/common.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Configuration for tools using Service Directory.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ServiceDirectoryConfig} + */ +@com.google.protobuf.Generated +public final class ServiceDirectoryConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ServiceDirectoryConfig) + ServiceDirectoryConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ServiceDirectoryConfig"); + } + + // Use ServiceDirectoryConfig.newBuilder() to construct. + private ServiceDirectoryConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ServiceDirectoryConfig() { + service_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ServiceDirectoryConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ServiceDirectoryConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ServiceDirectoryConfig.class, + com.google.cloud.ces.v1.ServiceDirectoryConfig.Builder.class); + } + + public static final int SERVICE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object service_ = ""; + + /** + * + * + *
      +   * Required. The name of [Service
      +   * Directory](https://cloud.google.com/service-directory) service.
      +   * Format:
      +   * `projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}`.
      +   * Location of the service directory must be the same as the location of the
      +   * app.
      +   * 
      + * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The service. + */ + @java.lang.Override + public java.lang.String getService() { + java.lang.Object ref = service_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + service_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The name of [Service
      +   * Directory](https://cloud.google.com/service-directory) service.
      +   * Format:
      +   * `projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}`.
      +   * Location of the service directory must be the same as the location of the
      +   * app.
      +   * 
      + * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for service. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceBytes() { + java.lang.Object ref = service_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + service_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(service_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, service_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(service_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, service_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ServiceDirectoryConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ServiceDirectoryConfig other = + (com.google.cloud.ces.v1.ServiceDirectoryConfig) obj; + + if (!getService().equals(other.getService())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getService().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ServiceDirectoryConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ServiceDirectoryConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ServiceDirectoryConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ServiceDirectoryConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ServiceDirectoryConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ServiceDirectoryConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ServiceDirectoryConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ServiceDirectoryConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ServiceDirectoryConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ServiceDirectoryConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ServiceDirectoryConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ServiceDirectoryConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ServiceDirectoryConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Configuration for tools using Service Directory.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ServiceDirectoryConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ServiceDirectoryConfig) + com.google.cloud.ces.v1.ServiceDirectoryConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ServiceDirectoryConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ServiceDirectoryConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ServiceDirectoryConfig.class, + com.google.cloud.ces.v1.ServiceDirectoryConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ServiceDirectoryConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + service_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_ServiceDirectoryConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ServiceDirectoryConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ServiceDirectoryConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ServiceDirectoryConfig build() { + com.google.cloud.ces.v1.ServiceDirectoryConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ServiceDirectoryConfig buildPartial() { + com.google.cloud.ces.v1.ServiceDirectoryConfig result = + new com.google.cloud.ces.v1.ServiceDirectoryConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ServiceDirectoryConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.service_ = service_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ServiceDirectoryConfig) { + return mergeFrom((com.google.cloud.ces.v1.ServiceDirectoryConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ServiceDirectoryConfig other) { + if (other == com.google.cloud.ces.v1.ServiceDirectoryConfig.getDefaultInstance()) return this; + if (!other.getService().isEmpty()) { + service_ = other.service_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + service_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object service_ = ""; + + /** + * + * + *
      +     * Required. The name of [Service
      +     * Directory](https://cloud.google.com/service-directory) service.
      +     * Format:
      +     * `projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}`.
      +     * Location of the service directory must be the same as the location of the
      +     * app.
      +     * 
      + * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The service. + */ + public java.lang.String getService() { + java.lang.Object ref = service_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + service_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The name of [Service
      +     * Directory](https://cloud.google.com/service-directory) service.
      +     * Format:
      +     * `projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}`.
      +     * Location of the service directory must be the same as the location of the
      +     * app.
      +     * 
      + * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for service. + */ + public com.google.protobuf.ByteString getServiceBytes() { + java.lang.Object ref = service_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + service_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The name of [Service
      +     * Directory](https://cloud.google.com/service-directory) service.
      +     * Format:
      +     * `projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}`.
      +     * Location of the service directory must be the same as the location of the
      +     * app.
      +     * 
      + * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The service to set. + * @return This builder for chaining. + */ + public Builder setService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + service_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The name of [Service
      +     * Directory](https://cloud.google.com/service-directory) service.
      +     * Format:
      +     * `projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}`.
      +     * Location of the service directory must be the same as the location of the
      +     * app.
      +     * 
      + * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearService() { + service_ = getDefaultInstance().getService(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The name of [Service
      +     * Directory](https://cloud.google.com/service-directory) service.
      +     * Format:
      +     * `projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}`.
      +     * Location of the service directory must be the same as the location of the
      +     * app.
      +     * 
      + * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for service to set. + * @return This builder for chaining. + */ + public Builder setServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + service_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ServiceDirectoryConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ServiceDirectoryConfig) + private static final com.google.cloud.ces.v1.ServiceDirectoryConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ServiceDirectoryConfig(); + } + + public static com.google.cloud.ces.v1.ServiceDirectoryConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceDirectoryConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ServiceDirectoryConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ServiceDirectoryConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ServiceDirectoryConfigOrBuilder.java new file mode 100644 index 000000000000..81ea536c0e92 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ServiceDirectoryConfigOrBuilder.java @@ -0,0 +1,68 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/common.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ServiceDirectoryConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ServiceDirectoryConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The name of [Service
      +   * Directory](https://cloud.google.com/service-directory) service.
      +   * Format:
      +   * `projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}`.
      +   * Location of the service directory must be the same as the location of the
      +   * app.
      +   * 
      + * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The service. + */ + java.lang.String getService(); + + /** + * + * + *
      +   * Required. The name of [Service
      +   * Directory](https://cloud.google.com/service-directory) service.
      +   * Format:
      +   * `projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}`.
      +   * Location of the service directory must be the same as the location of the
      +   * app.
      +   * 
      + * + * + * string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for service. + */ + com.google.protobuf.ByteString getServiceBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionConfig.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionConfig.java new file mode 100644 index 000000000000..ab1a08f23e5c --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionConfig.java @@ -0,0 +1,4518 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * The configuration for the session.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.SessionConfig} + */ +@com.google.protobuf.Generated +public final class SessionConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.SessionConfig) + SessionConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SessionConfig"); + } + + // Use SessionConfig.newBuilder() to construct. + private SessionConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SessionConfig() { + session_ = ""; + historicalContexts_ = java.util.Collections.emptyList(); + entryAgent_ = ""; + deployment_ = ""; + timeZone_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_SessionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_SessionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.SessionConfig.class, + com.google.cloud.ces.v1.SessionConfig.Builder.class); + } + + public interface RemoteDialogflowQueryParametersOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Optional. The HTTP headers to be sent as webhook_headers in
      +     * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +     * 
      + * + * + * map<string, string> webhook_headers = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getWebhookHeadersCount(); + + /** + * + * + *
      +     * Optional. The HTTP headers to be sent as webhook_headers in
      +     * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +     * 
      + * + * + * map<string, string> webhook_headers = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsWebhookHeaders(java.lang.String key); + + /** Use {@link #getWebhookHeadersMap()} instead. */ + @java.lang.Deprecated + java.util.Map getWebhookHeaders(); + + /** + * + * + *
      +     * Optional. The HTTP headers to be sent as webhook_headers in
      +     * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +     * 
      + * + * + * map<string, string> webhook_headers = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getWebhookHeadersMap(); + + /** + * + * + *
      +     * Optional. The HTTP headers to be sent as webhook_headers in
      +     * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +     * 
      + * + * + * map<string, string> webhook_headers = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getWebhookHeadersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
      +     * Optional. The HTTP headers to be sent as webhook_headers in
      +     * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +     * 
      + * + * + * map<string, string> webhook_headers = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getWebhookHeadersOrThrow(java.lang.String key); + + /** + * + * + *
      +     * Optional. The payload to be sent in
      +     * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +     * 
      + * + * .google.protobuf.Struct payload = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the payload field is set. + */ + boolean hasPayload(); + + /** + * + * + *
      +     * Optional. The payload to be sent in
      +     * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +     * 
      + * + * .google.protobuf.Struct payload = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The payload. + */ + com.google.protobuf.Struct getPayload(); + + /** + * + * + *
      +     * Optional. The payload to be sent in
      +     * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +     * 
      + * + * .google.protobuf.Struct payload = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.StructOrBuilder getPayloadOrBuilder(); + + /** + * + * + *
      +     * Optional. The end user metadata to be sent in
      +     * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +     * 
      + * + * + * .google.protobuf.Struct end_user_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endUserMetadata field is set. + */ + boolean hasEndUserMetadata(); + + /** + * + * + *
      +     * Optional. The end user metadata to be sent in
      +     * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +     * 
      + * + * + * .google.protobuf.Struct end_user_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endUserMetadata. + */ + com.google.protobuf.Struct getEndUserMetadata(); + + /** + * + * + *
      +     * Optional. The end user metadata to be sent in
      +     * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +     * 
      + * + * + * .google.protobuf.Struct end_user_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getEndUserMetadataOrBuilder(); + } + + /** + * + * + *
      +   * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters)
      +   * to send to the remote
      +   * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
      +   * agent when the session control is transferred to the remote agent.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters} + */ + public static final class RemoteDialogflowQueryParameters + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters) + RemoteDialogflowQueryParametersOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RemoteDialogflowQueryParameters"); + } + + // Use RemoteDialogflowQueryParameters.newBuilder() to construct. + private RemoteDialogflowQueryParameters( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RemoteDialogflowQueryParameters() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_SessionConfig_RemoteDialogflowQueryParameters_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetWebhookHeaders(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_SessionConfig_RemoteDialogflowQueryParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters.class, + com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters.Builder.class); + } + + private int bitField0_; + public static final int WEBHOOK_HEADERS_FIELD_NUMBER = 1; + + private static final class WebhookHeadersDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_SessionConfig_RemoteDialogflowQueryParameters_WebhookHeadersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField webhookHeaders_; + + private com.google.protobuf.MapField + internalGetWebhookHeaders() { + if (webhookHeaders_ == null) { + return com.google.protobuf.MapField.emptyMapField( + WebhookHeadersDefaultEntryHolder.defaultEntry); + } + return webhookHeaders_; + } + + public int getWebhookHeadersCount() { + return internalGetWebhookHeaders().getMap().size(); + } + + /** + * + * + *
      +     * Optional. The HTTP headers to be sent as webhook_headers in
      +     * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +     * 
      + * + * + * map<string, string> webhook_headers = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsWebhookHeaders(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetWebhookHeaders().getMap().containsKey(key); + } + + /** Use {@link #getWebhookHeadersMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getWebhookHeaders() { + return getWebhookHeadersMap(); + } + + /** + * + * + *
      +     * Optional. The HTTP headers to be sent as webhook_headers in
      +     * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +     * 
      + * + * + * map<string, string> webhook_headers = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getWebhookHeadersMap() { + return internalGetWebhookHeaders().getMap(); + } + + /** + * + * + *
      +     * Optional. The HTTP headers to be sent as webhook_headers in
      +     * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +     * 
      + * + * + * map<string, string> webhook_headers = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getWebhookHeadersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetWebhookHeaders().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
      +     * Optional. The HTTP headers to be sent as webhook_headers in
      +     * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +     * 
      + * + * + * map<string, string> webhook_headers = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getWebhookHeadersOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetWebhookHeaders().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int PAYLOAD_FIELD_NUMBER = 2; + private com.google.protobuf.Struct payload_; + + /** + * + * + *
      +     * Optional. The payload to be sent in
      +     * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +     * 
      + * + * .google.protobuf.Struct payload = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the payload field is set. + */ + @java.lang.Override + public boolean hasPayload() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Optional. The payload to be sent in
      +     * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +     * 
      + * + * .google.protobuf.Struct payload = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The payload. + */ + @java.lang.Override + public com.google.protobuf.Struct getPayload() { + return payload_ == null ? com.google.protobuf.Struct.getDefaultInstance() : payload_; + } + + /** + * + * + *
      +     * Optional. The payload to be sent in
      +     * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +     * 
      + * + * .google.protobuf.Struct payload = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { + return payload_ == null ? com.google.protobuf.Struct.getDefaultInstance() : payload_; + } + + public static final int END_USER_METADATA_FIELD_NUMBER = 3; + private com.google.protobuf.Struct endUserMetadata_; + + /** + * + * + *
      +     * Optional. The end user metadata to be sent in
      +     * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +     * 
      + * + * + * .google.protobuf.Struct end_user_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endUserMetadata field is set. + */ + @java.lang.Override + public boolean hasEndUserMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Optional. The end user metadata to be sent in
      +     * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +     * 
      + * + * + * .google.protobuf.Struct end_user_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endUserMetadata. + */ + @java.lang.Override + public com.google.protobuf.Struct getEndUserMetadata() { + return endUserMetadata_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : endUserMetadata_; + } + + /** + * + * + *
      +     * Optional. The end user metadata to be sent in
      +     * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +     * 
      + * + * + * .google.protobuf.Struct end_user_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getEndUserMetadataOrBuilder() { + return endUserMetadata_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : endUserMetadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetWebhookHeaders(), WebhookHeadersDefaultEntryHolder.defaultEntry, 1); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getPayload()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getEndUserMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry : + internalGetWebhookHeaders().getMap().entrySet()) { + com.google.protobuf.MapEntry webhookHeaders__ = + WebhookHeadersDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, webhookHeaders__); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPayload()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndUserMetadata()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters other = + (com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters) obj; + + if (!internalGetWebhookHeaders().equals(other.internalGetWebhookHeaders())) return false; + if (hasPayload() != other.hasPayload()) return false; + if (hasPayload()) { + if (!getPayload().equals(other.getPayload())) return false; + } + if (hasEndUserMetadata() != other.hasEndUserMetadata()) return false; + if (hasEndUserMetadata()) { + if (!getEndUserMetadata().equals(other.getEndUserMetadata())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetWebhookHeaders().getMap().isEmpty()) { + hash = (37 * hash) + WEBHOOK_HEADERS_FIELD_NUMBER; + hash = (53 * hash) + internalGetWebhookHeaders().hashCode(); + } + if (hasPayload()) { + hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; + hash = (53 * hash) + getPayload().hashCode(); + } + if (hasEndUserMetadata()) { + hash = (37 * hash) + END_USER_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getEndUserMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters)
      +     * to send to the remote
      +     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
      +     * agent when the session control is transferred to the remote agent.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters) + com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParametersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_SessionConfig_RemoteDialogflowQueryParameters_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetWebhookHeaders(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetMutableWebhookHeaders(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_SessionConfig_RemoteDialogflowQueryParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters.class, + com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters.Builder + .class); + } + + // Construct using + // com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetPayloadFieldBuilder(); + internalGetEndUserMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableWebhookHeaders().clear(); + payload_ = null; + if (payloadBuilder_ != null) { + payloadBuilder_.dispose(); + payloadBuilder_ = null; + } + endUserMetadata_ = null; + if (endUserMetadataBuilder_ != null) { + endUserMetadataBuilder_.dispose(); + endUserMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_SessionConfig_RemoteDialogflowQueryParameters_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters + getDefaultInstanceForType() { + return com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters build() { + com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters buildPartial() { + com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters result = + new com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.webhookHeaders_ = internalGetWebhookHeaders(); + result.webhookHeaders_.makeImmutable(); + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.payload_ = payloadBuilder_ == null ? payload_ : payloadBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.endUserMetadata_ = + endUserMetadataBuilder_ == null ? endUserMetadata_ : endUserMetadataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters) { + return mergeFrom( + (com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters other) { + if (other + == com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters + .getDefaultInstance()) return this; + internalGetMutableWebhookHeaders().mergeFrom(other.internalGetWebhookHeaders()); + bitField0_ |= 0x00000001; + if (other.hasPayload()) { + mergePayload(other.getPayload()); + } + if (other.hasEndUserMetadata()) { + mergeEndUserMetadata(other.getEndUserMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.MapEntry + webhookHeaders__ = + input.readMessage( + WebhookHeadersDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableWebhookHeaders() + .getMutableMap() + .put(webhookHeaders__.getKey(), webhookHeaders__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetPayloadFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetEndUserMetadataFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.MapField webhookHeaders_; + + private com.google.protobuf.MapField + internalGetWebhookHeaders() { + if (webhookHeaders_ == null) { + return com.google.protobuf.MapField.emptyMapField( + WebhookHeadersDefaultEntryHolder.defaultEntry); + } + return webhookHeaders_; + } + + private com.google.protobuf.MapField + internalGetMutableWebhookHeaders() { + if (webhookHeaders_ == null) { + webhookHeaders_ = + com.google.protobuf.MapField.newMapField( + WebhookHeadersDefaultEntryHolder.defaultEntry); + } + if (!webhookHeaders_.isMutable()) { + webhookHeaders_ = webhookHeaders_.copy(); + } + bitField0_ |= 0x00000001; + onChanged(); + return webhookHeaders_; + } + + public int getWebhookHeadersCount() { + return internalGetWebhookHeaders().getMap().size(); + } + + /** + * + * + *
      +       * Optional. The HTTP headers to be sent as webhook_headers in
      +       * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +       * 
      + * + * + * map<string, string> webhook_headers = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsWebhookHeaders(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetWebhookHeaders().getMap().containsKey(key); + } + + /** Use {@link #getWebhookHeadersMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getWebhookHeaders() { + return getWebhookHeadersMap(); + } + + /** + * + * + *
      +       * Optional. The HTTP headers to be sent as webhook_headers in
      +       * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +       * 
      + * + * + * map<string, string> webhook_headers = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getWebhookHeadersMap() { + return internalGetWebhookHeaders().getMap(); + } + + /** + * + * + *
      +       * Optional. The HTTP headers to be sent as webhook_headers in
      +       * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +       * 
      + * + * + * map<string, string> webhook_headers = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getWebhookHeadersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetWebhookHeaders().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
      +       * Optional. The HTTP headers to be sent as webhook_headers in
      +       * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +       * 
      + * + * + * map<string, string> webhook_headers = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getWebhookHeadersOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetWebhookHeaders().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearWebhookHeaders() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableWebhookHeaders().getMutableMap().clear(); + return this; + } + + /** + * + * + *
      +       * Optional. The HTTP headers to be sent as webhook_headers in
      +       * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +       * 
      + * + * + * map<string, string> webhook_headers = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeWebhookHeaders(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableWebhookHeaders().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableWebhookHeaders() { + bitField0_ |= 0x00000001; + return internalGetMutableWebhookHeaders().getMutableMap(); + } + + /** + * + * + *
      +       * Optional. The HTTP headers to be sent as webhook_headers in
      +       * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +       * 
      + * + * + * map<string, string> webhook_headers = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putWebhookHeaders(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableWebhookHeaders().getMutableMap().put(key, value); + bitField0_ |= 0x00000001; + return this; + } + + /** + * + * + *
      +       * Optional. The HTTP headers to be sent as webhook_headers in
      +       * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +       * 
      + * + * + * map<string, string> webhook_headers = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllWebhookHeaders( + java.util.Map values) { + internalGetMutableWebhookHeaders().getMutableMap().putAll(values); + bitField0_ |= 0x00000001; + return this; + } + + private com.google.protobuf.Struct payload_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + payloadBuilder_; + + /** + * + * + *
      +       * Optional. The payload to be sent in
      +       * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +       * 
      + * + * .google.protobuf.Struct payload = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the payload field is set. + */ + public boolean hasPayload() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +       * Optional. The payload to be sent in
      +       * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +       * 
      + * + * .google.protobuf.Struct payload = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The payload. + */ + public com.google.protobuf.Struct getPayload() { + if (payloadBuilder_ == null) { + return payload_ == null ? com.google.protobuf.Struct.getDefaultInstance() : payload_; + } else { + return payloadBuilder_.getMessage(); + } + } + + /** + * + * + *
      +       * Optional. The payload to be sent in
      +       * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +       * 
      + * + * .google.protobuf.Struct payload = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setPayload(com.google.protobuf.Struct value) { + if (payloadBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + } else { + payloadBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The payload to be sent in
      +       * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +       * 
      + * + * .google.protobuf.Struct payload = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setPayload(com.google.protobuf.Struct.Builder builderForValue) { + if (payloadBuilder_ == null) { + payload_ = builderForValue.build(); + } else { + payloadBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The payload to be sent in
      +       * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +       * 
      + * + * .google.protobuf.Struct payload = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergePayload(com.google.protobuf.Struct value) { + if (payloadBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && payload_ != null + && payload_ != com.google.protobuf.Struct.getDefaultInstance()) { + getPayloadBuilder().mergeFrom(value); + } else { + payload_ = value; + } + } else { + payloadBuilder_.mergeFrom(value); + } + if (payload_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +       * Optional. The payload to be sent in
      +       * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +       * 
      + * + * .google.protobuf.Struct payload = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearPayload() { + bitField0_ = (bitField0_ & ~0x00000002); + payload_ = null; + if (payloadBuilder_ != null) { + payloadBuilder_.dispose(); + payloadBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The payload to be sent in
      +       * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +       * 
      + * + * .google.protobuf.Struct payload = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Struct.Builder getPayloadBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetPayloadFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Optional. The payload to be sent in
      +       * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +       * 
      + * + * .google.protobuf.Struct payload = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { + if (payloadBuilder_ != null) { + return payloadBuilder_.getMessageOrBuilder(); + } else { + return payload_ == null ? com.google.protobuf.Struct.getDefaultInstance() : payload_; + } + } + + /** + * + * + *
      +       * Optional. The payload to be sent in
      +       * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +       * 
      + * + * .google.protobuf.Struct payload = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetPayloadFieldBuilder() { + if (payloadBuilder_ == null) { + payloadBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getPayload(), getParentForChildren(), isClean()); + payload_ = null; + } + return payloadBuilder_; + } + + private com.google.protobuf.Struct endUserMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + endUserMetadataBuilder_; + + /** + * + * + *
      +       * Optional. The end user metadata to be sent in
      +       * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +       * 
      + * + * + * .google.protobuf.Struct end_user_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endUserMetadata field is set. + */ + public boolean hasEndUserMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +       * Optional. The end user metadata to be sent in
      +       * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +       * 
      + * + * + * .google.protobuf.Struct end_user_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endUserMetadata. + */ + public com.google.protobuf.Struct getEndUserMetadata() { + if (endUserMetadataBuilder_ == null) { + return endUserMetadata_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : endUserMetadata_; + } else { + return endUserMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
      +       * Optional. The end user metadata to be sent in
      +       * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +       * 
      + * + * + * .google.protobuf.Struct end_user_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEndUserMetadata(com.google.protobuf.Struct value) { + if (endUserMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endUserMetadata_ = value; + } else { + endUserMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The end user metadata to be sent in
      +       * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +       * 
      + * + * + * .google.protobuf.Struct end_user_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEndUserMetadata(com.google.protobuf.Struct.Builder builderForValue) { + if (endUserMetadataBuilder_ == null) { + endUserMetadata_ = builderForValue.build(); + } else { + endUserMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The end user metadata to be sent in
      +       * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +       * 
      + * + * + * .google.protobuf.Struct end_user_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEndUserMetadata(com.google.protobuf.Struct value) { + if (endUserMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && endUserMetadata_ != null + && endUserMetadata_ != com.google.protobuf.Struct.getDefaultInstance()) { + getEndUserMetadataBuilder().mergeFrom(value); + } else { + endUserMetadata_ = value; + } + } else { + endUserMetadataBuilder_.mergeFrom(value); + } + if (endUserMetadata_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
      +       * Optional. The end user metadata to be sent in
      +       * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +       * 
      + * + * + * .google.protobuf.Struct end_user_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEndUserMetadata() { + bitField0_ = (bitField0_ & ~0x00000004); + endUserMetadata_ = null; + if (endUserMetadataBuilder_ != null) { + endUserMetadataBuilder_.dispose(); + endUserMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The end user metadata to be sent in
      +       * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +       * 
      + * + * + * .google.protobuf.Struct end_user_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getEndUserMetadataBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetEndUserMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Optional. The end user metadata to be sent in
      +       * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +       * 
      + * + * + * .google.protobuf.Struct end_user_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getEndUserMetadataOrBuilder() { + if (endUserMetadataBuilder_ != null) { + return endUserMetadataBuilder_.getMessageOrBuilder(); + } else { + return endUserMetadata_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : endUserMetadata_; + } + } + + /** + * + * + *
      +       * Optional. The end user metadata to be sent in
      +       * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters).
      +       * 
      + * + * + * .google.protobuf.Struct end_user_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetEndUserMetadataFieldBuilder() { + if (endUserMetadataBuilder_ == null) { + endUserMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getEndUserMetadata(), getParentForChildren(), isClean()); + endUserMetadata_ = null; + } + return endUserMetadataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters) + private static final com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters(); + } + + public static com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemoteDialogflowQueryParameters parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int SESSION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object session_ = ""; + + /** + * + * + *
      +   * Required. The unique identifier of the session.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/sessions/{session}`
      +   * 
      + * + * + * string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The session. + */ + @java.lang.Override + public java.lang.String getSession() { + java.lang.Object ref = session_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + session_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The unique identifier of the session.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/sessions/{session}`
      +   * 
      + * + * + * string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for session. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSessionBytes() { + java.lang.Object ref = session_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + session_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INPUT_AUDIO_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.ces.v1.InputAudioConfig inputAudioConfig_; + + /** + * + * + *
      +   * Optional. Configuration for processing the input audio.
      +   * 
      + * + * + * .google.cloud.ces.v1.InputAudioConfig input_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the inputAudioConfig field is set. + */ + @java.lang.Override + public boolean hasInputAudioConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Optional. Configuration for processing the input audio.
      +   * 
      + * + * + * .google.cloud.ces.v1.InputAudioConfig input_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inputAudioConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.InputAudioConfig getInputAudioConfig() { + return inputAudioConfig_ == null + ? com.google.cloud.ces.v1.InputAudioConfig.getDefaultInstance() + : inputAudioConfig_; + } + + /** + * + * + *
      +   * Optional. Configuration for processing the input audio.
      +   * 
      + * + * + * .google.cloud.ces.v1.InputAudioConfig input_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.InputAudioConfigOrBuilder getInputAudioConfigOrBuilder() { + return inputAudioConfig_ == null + ? com.google.cloud.ces.v1.InputAudioConfig.getDefaultInstance() + : inputAudioConfig_; + } + + public static final int OUTPUT_AUDIO_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.ces.v1.OutputAudioConfig outputAudioConfig_; + + /** + * + * + *
      +   * Optional. Configuration for generating the output audio.
      +   * 
      + * + * + * .google.cloud.ces.v1.OutputAudioConfig output_audio_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the outputAudioConfig field is set. + */ + @java.lang.Override + public boolean hasOutputAudioConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Optional. Configuration for generating the output audio.
      +   * 
      + * + * + * .google.cloud.ces.v1.OutputAudioConfig output_audio_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The outputAudioConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.OutputAudioConfig getOutputAudioConfig() { + return outputAudioConfig_ == null + ? com.google.cloud.ces.v1.OutputAudioConfig.getDefaultInstance() + : outputAudioConfig_; + } + + /** + * + * + *
      +   * Optional. Configuration for generating the output audio.
      +   * 
      + * + * + * .google.cloud.ces.v1.OutputAudioConfig output_audio_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder() { + return outputAudioConfig_ == null + ? com.google.cloud.ces.v1.OutputAudioConfig.getDefaultInstance() + : outputAudioConfig_; + } + + public static final int HISTORICAL_CONTEXTS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List historicalContexts_; + + /** + * + * + *
      +   * Optional. The historical context of the session, including user inputs,
      +   * agent responses, and other messages. Typically, CES agent would manage
      +   * session automatically so client doesn't need to explicitly populate this
      +   * field. However, client can optionally override the historical contexts to
      +   * force the session start from certain state.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Message historical_contexts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getHistoricalContextsList() { + return historicalContexts_; + } + + /** + * + * + *
      +   * Optional. The historical context of the session, including user inputs,
      +   * agent responses, and other messages. Typically, CES agent would manage
      +   * session automatically so client doesn't need to explicitly populate this
      +   * field. However, client can optionally override the historical contexts to
      +   * force the session start from certain state.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Message historical_contexts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getHistoricalContextsOrBuilderList() { + return historicalContexts_; + } + + /** + * + * + *
      +   * Optional. The historical context of the session, including user inputs,
      +   * agent responses, and other messages. Typically, CES agent would manage
      +   * session automatically so client doesn't need to explicitly populate this
      +   * field. However, client can optionally override the historical contexts to
      +   * force the session start from certain state.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Message historical_contexts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getHistoricalContextsCount() { + return historicalContexts_.size(); + } + + /** + * + * + *
      +   * Optional. The historical context of the session, including user inputs,
      +   * agent responses, and other messages. Typically, CES agent would manage
      +   * session automatically so client doesn't need to explicitly populate this
      +   * field. However, client can optionally override the historical contexts to
      +   * force the session start from certain state.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Message historical_contexts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Message getHistoricalContexts(int index) { + return historicalContexts_.get(index); + } + + /** + * + * + *
      +   * Optional. The historical context of the session, including user inputs,
      +   * agent responses, and other messages. Typically, CES agent would manage
      +   * session automatically so client doesn't need to explicitly populate this
      +   * field. However, client can optionally override the historical contexts to
      +   * force the session start from certain state.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Message historical_contexts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.MessageOrBuilder getHistoricalContextsOrBuilder(int index) { + return historicalContexts_.get(index); + } + + public static final int ENTRY_AGENT_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object entryAgent_ = ""; + + /** + * + * + *
      +   * Optional. The entry agent to handle the session. If not specified, the
      +   * session will be handled by the [root
      +   * agent][google.cloud.ces.v1.App.root_agent] of the app. Format:
      +   * `projects/{project}/locations/{location}/agents/{agent}`
      +   * 
      + * + * + * string entry_agent = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The entryAgent. + */ + @java.lang.Override + public java.lang.String getEntryAgent() { + java.lang.Object ref = entryAgent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entryAgent_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The entry agent to handle the session. If not specified, the
      +   * session will be handled by the [root
      +   * agent][google.cloud.ces.v1.App.root_agent] of the app. Format:
      +   * `projects/{project}/locations/{location}/agents/{agent}`
      +   * 
      + * + * + * string entry_agent = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for entryAgent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntryAgentBytes() { + java.lang.Object ref = entryAgent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entryAgent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYMENT_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployment_ = ""; + + /** + * + * + *
      +   * Optional. The deployment of the app to use for the session.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +   * 
      + * + * string deployment = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deployment. + */ + @java.lang.Override + public java.lang.String getDeployment() { + java.lang.Object ref = deployment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deployment_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The deployment of the app to use for the session.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +   * 
      + * + * string deployment = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for deployment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeploymentBytes() { + java.lang.Object ref = deployment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deployment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIME_ZONE_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeZone_ = ""; + + /** + * + * + *
      +   * Optional. The time zone of the user. If provided, the agent will use the
      +   * time zone for date and time related variables. Otherwise, the agent will
      +   * use the time zone specified in the App.time_zone_settings.
      +   *
      +   * The format is the IANA Time Zone Database time zone, e.g.
      +   * "America/Los_Angeles".
      +   * 
      + * + * string time_zone = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The timeZone. + */ + @java.lang.Override + public java.lang.String getTimeZone() { + java.lang.Object ref = timeZone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeZone_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The time zone of the user. If provided, the agent will use the
      +   * time zone for date and time related variables. Otherwise, the agent will
      +   * use the time zone specified in the App.time_zone_settings.
      +   *
      +   * The format is the IANA Time Zone Database time zone, e.g.
      +   * "America/Los_Angeles".
      +   * 
      + * + * string time_zone = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for timeZone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTimeZoneBytes() { + java.lang.Object ref = timeZone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + timeZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REMOTE_DIALOGFLOW_QUERY_PARAMETERS_FIELD_NUMBER = 15; + private com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters + remoteDialogflowQueryParameters_; + + /** + * + * + *
      +   * Optional.
      +   * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters)
      +   * to send to the remote
      +   * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
      +   * agent when the session control is transferred to the remote agent.
      +   * 
      + * + * + * .google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters remote_dialogflow_query_parameters = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the remoteDialogflowQueryParameters field is set. + */ + @java.lang.Override + public boolean hasRemoteDialogflowQueryParameters() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * Optional.
      +   * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters)
      +   * to send to the remote
      +   * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
      +   * agent when the session control is transferred to the remote agent.
      +   * 
      + * + * + * .google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters remote_dialogflow_query_parameters = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The remoteDialogflowQueryParameters. + */ + @java.lang.Override + public com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters + getRemoteDialogflowQueryParameters() { + return remoteDialogflowQueryParameters_ == null + ? com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters.getDefaultInstance() + : remoteDialogflowQueryParameters_; + } + + /** + * + * + *
      +   * Optional.
      +   * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters)
      +   * to send to the remote
      +   * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
      +   * agent when the session control is transferred to the remote agent.
      +   * 
      + * + * + * .google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters remote_dialogflow_query_parameters = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParametersOrBuilder + getRemoteDialogflowQueryParametersOrBuilder() { + return remoteDialogflowQueryParameters_ == null + ? com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters.getDefaultInstance() + : remoteDialogflowQueryParameters_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(session_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, session_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getInputAudioConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getOutputAudioConfig()); + } + for (int i = 0; i < historicalContexts_.size(); i++) { + output.writeMessage(5, historicalContexts_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deployment_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, deployment_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(timeZone_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, timeZone_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(entryAgent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, entryAgent_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(15, getRemoteDialogflowQueryParameters()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(session_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, session_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInputAudioConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputAudioConfig()); + } + for (int i = 0; i < historicalContexts_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, historicalContexts_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deployment_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, deployment_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(timeZone_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, timeZone_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(entryAgent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(12, entryAgent_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, getRemoteDialogflowQueryParameters()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.SessionConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.SessionConfig other = (com.google.cloud.ces.v1.SessionConfig) obj; + + if (!getSession().equals(other.getSession())) return false; + if (hasInputAudioConfig() != other.hasInputAudioConfig()) return false; + if (hasInputAudioConfig()) { + if (!getInputAudioConfig().equals(other.getInputAudioConfig())) return false; + } + if (hasOutputAudioConfig() != other.hasOutputAudioConfig()) return false; + if (hasOutputAudioConfig()) { + if (!getOutputAudioConfig().equals(other.getOutputAudioConfig())) return false; + } + if (!getHistoricalContextsList().equals(other.getHistoricalContextsList())) return false; + if (!getEntryAgent().equals(other.getEntryAgent())) return false; + if (!getDeployment().equals(other.getDeployment())) return false; + if (!getTimeZone().equals(other.getTimeZone())) return false; + if (hasRemoteDialogflowQueryParameters() != other.hasRemoteDialogflowQueryParameters()) + return false; + if (hasRemoteDialogflowQueryParameters()) { + if (!getRemoteDialogflowQueryParameters().equals(other.getRemoteDialogflowQueryParameters())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SESSION_FIELD_NUMBER; + hash = (53 * hash) + getSession().hashCode(); + if (hasInputAudioConfig()) { + hash = (37 * hash) + INPUT_AUDIO_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getInputAudioConfig().hashCode(); + } + if (hasOutputAudioConfig()) { + hash = (37 * hash) + OUTPUT_AUDIO_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getOutputAudioConfig().hashCode(); + } + if (getHistoricalContextsCount() > 0) { + hash = (37 * hash) + HISTORICAL_CONTEXTS_FIELD_NUMBER; + hash = (53 * hash) + getHistoricalContextsList().hashCode(); + } + hash = (37 * hash) + ENTRY_AGENT_FIELD_NUMBER; + hash = (53 * hash) + getEntryAgent().hashCode(); + hash = (37 * hash) + DEPLOYMENT_FIELD_NUMBER; + hash = (53 * hash) + getDeployment().hashCode(); + hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getTimeZone().hashCode(); + if (hasRemoteDialogflowQueryParameters()) { + hash = (37 * hash) + REMOTE_DIALOGFLOW_QUERY_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getRemoteDialogflowQueryParameters().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.SessionConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.SessionConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SessionConfig parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.SessionConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SessionConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.SessionConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SessionConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.SessionConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SessionConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.SessionConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SessionConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.SessionConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.SessionConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * The configuration for the session.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.SessionConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.SessionConfig) + com.google.cloud.ces.v1.SessionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_SessionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_SessionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.SessionConfig.class, + com.google.cloud.ces.v1.SessionConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.SessionConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetInputAudioConfigFieldBuilder(); + internalGetOutputAudioConfigFieldBuilder(); + internalGetHistoricalContextsFieldBuilder(); + internalGetRemoteDialogflowQueryParametersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + session_ = ""; + inputAudioConfig_ = null; + if (inputAudioConfigBuilder_ != null) { + inputAudioConfigBuilder_.dispose(); + inputAudioConfigBuilder_ = null; + } + outputAudioConfig_ = null; + if (outputAudioConfigBuilder_ != null) { + outputAudioConfigBuilder_.dispose(); + outputAudioConfigBuilder_ = null; + } + if (historicalContextsBuilder_ == null) { + historicalContexts_ = java.util.Collections.emptyList(); + } else { + historicalContexts_ = null; + historicalContextsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + entryAgent_ = ""; + deployment_ = ""; + timeZone_ = ""; + remoteDialogflowQueryParameters_ = null; + if (remoteDialogflowQueryParametersBuilder_ != null) { + remoteDialogflowQueryParametersBuilder_.dispose(); + remoteDialogflowQueryParametersBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_SessionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.SessionConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1.SessionConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.SessionConfig build() { + com.google.cloud.ces.v1.SessionConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.SessionConfig buildPartial() { + com.google.cloud.ces.v1.SessionConfig result = + new com.google.cloud.ces.v1.SessionConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1.SessionConfig result) { + if (historicalContextsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + historicalContexts_ = java.util.Collections.unmodifiableList(historicalContexts_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.historicalContexts_ = historicalContexts_; + } else { + result.historicalContexts_ = historicalContextsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.SessionConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.session_ = session_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.inputAudioConfig_ = + inputAudioConfigBuilder_ == null ? inputAudioConfig_ : inputAudioConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.outputAudioConfig_ = + outputAudioConfigBuilder_ == null + ? outputAudioConfig_ + : outputAudioConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.entryAgent_ = entryAgent_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.deployment_ = deployment_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.timeZone_ = timeZone_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.remoteDialogflowQueryParameters_ = + remoteDialogflowQueryParametersBuilder_ == null + ? remoteDialogflowQueryParameters_ + : remoteDialogflowQueryParametersBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.SessionConfig) { + return mergeFrom((com.google.cloud.ces.v1.SessionConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.SessionConfig other) { + if (other == com.google.cloud.ces.v1.SessionConfig.getDefaultInstance()) return this; + if (!other.getSession().isEmpty()) { + session_ = other.session_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasInputAudioConfig()) { + mergeInputAudioConfig(other.getInputAudioConfig()); + } + if (other.hasOutputAudioConfig()) { + mergeOutputAudioConfig(other.getOutputAudioConfig()); + } + if (historicalContextsBuilder_ == null) { + if (!other.historicalContexts_.isEmpty()) { + if (historicalContexts_.isEmpty()) { + historicalContexts_ = other.historicalContexts_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureHistoricalContextsIsMutable(); + historicalContexts_.addAll(other.historicalContexts_); + } + onChanged(); + } + } else { + if (!other.historicalContexts_.isEmpty()) { + if (historicalContextsBuilder_.isEmpty()) { + historicalContextsBuilder_.dispose(); + historicalContextsBuilder_ = null; + historicalContexts_ = other.historicalContexts_; + bitField0_ = (bitField0_ & ~0x00000008); + historicalContextsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetHistoricalContextsFieldBuilder() + : null; + } else { + historicalContextsBuilder_.addAllMessages(other.historicalContexts_); + } + } + } + if (!other.getEntryAgent().isEmpty()) { + entryAgent_ = other.entryAgent_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getDeployment().isEmpty()) { + deployment_ = other.deployment_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getTimeZone().isEmpty()) { + timeZone_ = other.timeZone_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasRemoteDialogflowQueryParameters()) { + mergeRemoteDialogflowQueryParameters(other.getRemoteDialogflowQueryParameters()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + session_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetInputAudioConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetOutputAudioConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: + { + com.google.cloud.ces.v1.Message m = + input.readMessage(com.google.cloud.ces.v1.Message.parser(), extensionRegistry); + if (historicalContextsBuilder_ == null) { + ensureHistoricalContextsIsMutable(); + historicalContexts_.add(m); + } else { + historicalContextsBuilder_.addMessage(m); + } + break; + } // case 42 + case 66: + { + deployment_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 66 + case 90: + { + timeZone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 90 + case 98: + { + entryAgent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 98 + case 122: + { + input.readMessage( + internalGetRemoteDialogflowQueryParametersFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 122 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object session_ = ""; + + /** + * + * + *
      +     * Required. The unique identifier of the session.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/sessions/{session}`
      +     * 
      + * + * + * string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The session. + */ + public java.lang.String getSession() { + java.lang.Object ref = session_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + session_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The unique identifier of the session.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/sessions/{session}`
      +     * 
      + * + * + * string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for session. + */ + public com.google.protobuf.ByteString getSessionBytes() { + java.lang.Object ref = session_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + session_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The unique identifier of the session.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/sessions/{session}`
      +     * 
      + * + * + * string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The session to set. + * @return This builder for chaining. + */ + public Builder setSession(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + session_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The unique identifier of the session.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/sessions/{session}`
      +     * 
      + * + * + * string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearSession() { + session_ = getDefaultInstance().getSession(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The unique identifier of the session.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/sessions/{session}`
      +     * 
      + * + * + * string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for session to set. + * @return This builder for chaining. + */ + public Builder setSessionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + session_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.InputAudioConfig inputAudioConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.InputAudioConfig, + com.google.cloud.ces.v1.InputAudioConfig.Builder, + com.google.cloud.ces.v1.InputAudioConfigOrBuilder> + inputAudioConfigBuilder_; + + /** + * + * + *
      +     * Optional. Configuration for processing the input audio.
      +     * 
      + * + * + * .google.cloud.ces.v1.InputAudioConfig input_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the inputAudioConfig field is set. + */ + public boolean hasInputAudioConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Optional. Configuration for processing the input audio.
      +     * 
      + * + * + * .google.cloud.ces.v1.InputAudioConfig input_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inputAudioConfig. + */ + public com.google.cloud.ces.v1.InputAudioConfig getInputAudioConfig() { + if (inputAudioConfigBuilder_ == null) { + return inputAudioConfig_ == null + ? com.google.cloud.ces.v1.InputAudioConfig.getDefaultInstance() + : inputAudioConfig_; + } else { + return inputAudioConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Configuration for processing the input audio.
      +     * 
      + * + * + * .google.cloud.ces.v1.InputAudioConfig input_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInputAudioConfig(com.google.cloud.ces.v1.InputAudioConfig value) { + if (inputAudioConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputAudioConfig_ = value; + } else { + inputAudioConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for processing the input audio.
      +     * 
      + * + * + * .google.cloud.ces.v1.InputAudioConfig input_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInputAudioConfig( + com.google.cloud.ces.v1.InputAudioConfig.Builder builderForValue) { + if (inputAudioConfigBuilder_ == null) { + inputAudioConfig_ = builderForValue.build(); + } else { + inputAudioConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for processing the input audio.
      +     * 
      + * + * + * .google.cloud.ces.v1.InputAudioConfig input_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeInputAudioConfig(com.google.cloud.ces.v1.InputAudioConfig value) { + if (inputAudioConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && inputAudioConfig_ != null + && inputAudioConfig_ != com.google.cloud.ces.v1.InputAudioConfig.getDefaultInstance()) { + getInputAudioConfigBuilder().mergeFrom(value); + } else { + inputAudioConfig_ = value; + } + } else { + inputAudioConfigBuilder_.mergeFrom(value); + } + if (inputAudioConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for processing the input audio.
      +     * 
      + * + * + * .google.cloud.ces.v1.InputAudioConfig input_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearInputAudioConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + inputAudioConfig_ = null; + if (inputAudioConfigBuilder_ != null) { + inputAudioConfigBuilder_.dispose(); + inputAudioConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for processing the input audio.
      +     * 
      + * + * + * .google.cloud.ces.v1.InputAudioConfig input_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.InputAudioConfig.Builder getInputAudioConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetInputAudioConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Configuration for processing the input audio.
      +     * 
      + * + * + * .google.cloud.ces.v1.InputAudioConfig input_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.InputAudioConfigOrBuilder getInputAudioConfigOrBuilder() { + if (inputAudioConfigBuilder_ != null) { + return inputAudioConfigBuilder_.getMessageOrBuilder(); + } else { + return inputAudioConfig_ == null + ? com.google.cloud.ces.v1.InputAudioConfig.getDefaultInstance() + : inputAudioConfig_; + } + } + + /** + * + * + *
      +     * Optional. Configuration for processing the input audio.
      +     * 
      + * + * + * .google.cloud.ces.v1.InputAudioConfig input_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.InputAudioConfig, + com.google.cloud.ces.v1.InputAudioConfig.Builder, + com.google.cloud.ces.v1.InputAudioConfigOrBuilder> + internalGetInputAudioConfigFieldBuilder() { + if (inputAudioConfigBuilder_ == null) { + inputAudioConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.InputAudioConfig, + com.google.cloud.ces.v1.InputAudioConfig.Builder, + com.google.cloud.ces.v1.InputAudioConfigOrBuilder>( + getInputAudioConfig(), getParentForChildren(), isClean()); + inputAudioConfig_ = null; + } + return inputAudioConfigBuilder_; + } + + private com.google.cloud.ces.v1.OutputAudioConfig outputAudioConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.OutputAudioConfig, + com.google.cloud.ces.v1.OutputAudioConfig.Builder, + com.google.cloud.ces.v1.OutputAudioConfigOrBuilder> + outputAudioConfigBuilder_; + + /** + * + * + *
      +     * Optional. Configuration for generating the output audio.
      +     * 
      + * + * + * .google.cloud.ces.v1.OutputAudioConfig output_audio_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the outputAudioConfig field is set. + */ + public boolean hasOutputAudioConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Optional. Configuration for generating the output audio.
      +     * 
      + * + * + * .google.cloud.ces.v1.OutputAudioConfig output_audio_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The outputAudioConfig. + */ + public com.google.cloud.ces.v1.OutputAudioConfig getOutputAudioConfig() { + if (outputAudioConfigBuilder_ == null) { + return outputAudioConfig_ == null + ? com.google.cloud.ces.v1.OutputAudioConfig.getDefaultInstance() + : outputAudioConfig_; + } else { + return outputAudioConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Configuration for generating the output audio.
      +     * 
      + * + * + * .google.cloud.ces.v1.OutputAudioConfig output_audio_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOutputAudioConfig(com.google.cloud.ces.v1.OutputAudioConfig value) { + if (outputAudioConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputAudioConfig_ = value; + } else { + outputAudioConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for generating the output audio.
      +     * 
      + * + * + * .google.cloud.ces.v1.OutputAudioConfig output_audio_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOutputAudioConfig( + com.google.cloud.ces.v1.OutputAudioConfig.Builder builderForValue) { + if (outputAudioConfigBuilder_ == null) { + outputAudioConfig_ = builderForValue.build(); + } else { + outputAudioConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for generating the output audio.
      +     * 
      + * + * + * .google.cloud.ces.v1.OutputAudioConfig output_audio_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeOutputAudioConfig(com.google.cloud.ces.v1.OutputAudioConfig value) { + if (outputAudioConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && outputAudioConfig_ != null + && outputAudioConfig_ + != com.google.cloud.ces.v1.OutputAudioConfig.getDefaultInstance()) { + getOutputAudioConfigBuilder().mergeFrom(value); + } else { + outputAudioConfig_ = value; + } + } else { + outputAudioConfigBuilder_.mergeFrom(value); + } + if (outputAudioConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for generating the output audio.
      +     * 
      + * + * + * .google.cloud.ces.v1.OutputAudioConfig output_audio_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOutputAudioConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + outputAudioConfig_ = null; + if (outputAudioConfigBuilder_ != null) { + outputAudioConfigBuilder_.dispose(); + outputAudioConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for generating the output audio.
      +     * 
      + * + * + * .google.cloud.ces.v1.OutputAudioConfig output_audio_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.OutputAudioConfig.Builder getOutputAudioConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetOutputAudioConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Configuration for generating the output audio.
      +     * 
      + * + * + * .google.cloud.ces.v1.OutputAudioConfig output_audio_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder() { + if (outputAudioConfigBuilder_ != null) { + return outputAudioConfigBuilder_.getMessageOrBuilder(); + } else { + return outputAudioConfig_ == null + ? com.google.cloud.ces.v1.OutputAudioConfig.getDefaultInstance() + : outputAudioConfig_; + } + } + + /** + * + * + *
      +     * Optional. Configuration for generating the output audio.
      +     * 
      + * + * + * .google.cloud.ces.v1.OutputAudioConfig output_audio_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.OutputAudioConfig, + com.google.cloud.ces.v1.OutputAudioConfig.Builder, + com.google.cloud.ces.v1.OutputAudioConfigOrBuilder> + internalGetOutputAudioConfigFieldBuilder() { + if (outputAudioConfigBuilder_ == null) { + outputAudioConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.OutputAudioConfig, + com.google.cloud.ces.v1.OutputAudioConfig.Builder, + com.google.cloud.ces.v1.OutputAudioConfigOrBuilder>( + getOutputAudioConfig(), getParentForChildren(), isClean()); + outputAudioConfig_ = null; + } + return outputAudioConfigBuilder_; + } + + private java.util.List historicalContexts_ = + java.util.Collections.emptyList(); + + private void ensureHistoricalContextsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + historicalContexts_ = + new java.util.ArrayList(historicalContexts_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Message, + com.google.cloud.ces.v1.Message.Builder, + com.google.cloud.ces.v1.MessageOrBuilder> + historicalContextsBuilder_; + + /** + * + * + *
      +     * Optional. The historical context of the session, including user inputs,
      +     * agent responses, and other messages. Typically, CES agent would manage
      +     * session automatically so client doesn't need to explicitly populate this
      +     * field. However, client can optionally override the historical contexts to
      +     * force the session start from certain state.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message historical_contexts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getHistoricalContextsList() { + if (historicalContextsBuilder_ == null) { + return java.util.Collections.unmodifiableList(historicalContexts_); + } else { + return historicalContextsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Optional. The historical context of the session, including user inputs,
      +     * agent responses, and other messages. Typically, CES agent would manage
      +     * session automatically so client doesn't need to explicitly populate this
      +     * field. However, client can optionally override the historical contexts to
      +     * force the session start from certain state.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message historical_contexts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getHistoricalContextsCount() { + if (historicalContextsBuilder_ == null) { + return historicalContexts_.size(); + } else { + return historicalContextsBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Optional. The historical context of the session, including user inputs,
      +     * agent responses, and other messages. Typically, CES agent would manage
      +     * session automatically so client doesn't need to explicitly populate this
      +     * field. However, client can optionally override the historical contexts to
      +     * force the session start from certain state.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message historical_contexts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Message getHistoricalContexts(int index) { + if (historicalContextsBuilder_ == null) { + return historicalContexts_.get(index); + } else { + return historicalContextsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Optional. The historical context of the session, including user inputs,
      +     * agent responses, and other messages. Typically, CES agent would manage
      +     * session automatically so client doesn't need to explicitly populate this
      +     * field. However, client can optionally override the historical contexts to
      +     * force the session start from certain state.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message historical_contexts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setHistoricalContexts(int index, com.google.cloud.ces.v1.Message value) { + if (historicalContextsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistoricalContextsIsMutable(); + historicalContexts_.set(index, value); + onChanged(); + } else { + historicalContextsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The historical context of the session, including user inputs,
      +     * agent responses, and other messages. Typically, CES agent would manage
      +     * session automatically so client doesn't need to explicitly populate this
      +     * field. However, client can optionally override the historical contexts to
      +     * force the session start from certain state.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message historical_contexts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setHistoricalContexts( + int index, com.google.cloud.ces.v1.Message.Builder builderForValue) { + if (historicalContextsBuilder_ == null) { + ensureHistoricalContextsIsMutable(); + historicalContexts_.set(index, builderForValue.build()); + onChanged(); + } else { + historicalContextsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The historical context of the session, including user inputs,
      +     * agent responses, and other messages. Typically, CES agent would manage
      +     * session automatically so client doesn't need to explicitly populate this
      +     * field. However, client can optionally override the historical contexts to
      +     * force the session start from certain state.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message historical_contexts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addHistoricalContexts(com.google.cloud.ces.v1.Message value) { + if (historicalContextsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistoricalContextsIsMutable(); + historicalContexts_.add(value); + onChanged(); + } else { + historicalContextsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The historical context of the session, including user inputs,
      +     * agent responses, and other messages. Typically, CES agent would manage
      +     * session automatically so client doesn't need to explicitly populate this
      +     * field. However, client can optionally override the historical contexts to
      +     * force the session start from certain state.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message historical_contexts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addHistoricalContexts(int index, com.google.cloud.ces.v1.Message value) { + if (historicalContextsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistoricalContextsIsMutable(); + historicalContexts_.add(index, value); + onChanged(); + } else { + historicalContextsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The historical context of the session, including user inputs,
      +     * agent responses, and other messages. Typically, CES agent would manage
      +     * session automatically so client doesn't need to explicitly populate this
      +     * field. However, client can optionally override the historical contexts to
      +     * force the session start from certain state.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message historical_contexts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addHistoricalContexts(com.google.cloud.ces.v1.Message.Builder builderForValue) { + if (historicalContextsBuilder_ == null) { + ensureHistoricalContextsIsMutable(); + historicalContexts_.add(builderForValue.build()); + onChanged(); + } else { + historicalContextsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The historical context of the session, including user inputs,
      +     * agent responses, and other messages. Typically, CES agent would manage
      +     * session automatically so client doesn't need to explicitly populate this
      +     * field. However, client can optionally override the historical contexts to
      +     * force the session start from certain state.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message historical_contexts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addHistoricalContexts( + int index, com.google.cloud.ces.v1.Message.Builder builderForValue) { + if (historicalContextsBuilder_ == null) { + ensureHistoricalContextsIsMutable(); + historicalContexts_.add(index, builderForValue.build()); + onChanged(); + } else { + historicalContextsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The historical context of the session, including user inputs,
      +     * agent responses, and other messages. Typically, CES agent would manage
      +     * session automatically so client doesn't need to explicitly populate this
      +     * field. However, client can optionally override the historical contexts to
      +     * force the session start from certain state.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message historical_contexts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllHistoricalContexts( + java.lang.Iterable values) { + if (historicalContextsBuilder_ == null) { + ensureHistoricalContextsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, historicalContexts_); + onChanged(); + } else { + historicalContextsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Optional. The historical context of the session, including user inputs,
      +     * agent responses, and other messages. Typically, CES agent would manage
      +     * session automatically so client doesn't need to explicitly populate this
      +     * field. However, client can optionally override the historical contexts to
      +     * force the session start from certain state.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message historical_contexts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearHistoricalContexts() { + if (historicalContextsBuilder_ == null) { + historicalContexts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + historicalContextsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The historical context of the session, including user inputs,
      +     * agent responses, and other messages. Typically, CES agent would manage
      +     * session automatically so client doesn't need to explicitly populate this
      +     * field. However, client can optionally override the historical contexts to
      +     * force the session start from certain state.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message historical_contexts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeHistoricalContexts(int index) { + if (historicalContextsBuilder_ == null) { + ensureHistoricalContextsIsMutable(); + historicalContexts_.remove(index); + onChanged(); + } else { + historicalContextsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Optional. The historical context of the session, including user inputs,
      +     * agent responses, and other messages. Typically, CES agent would manage
      +     * session automatically so client doesn't need to explicitly populate this
      +     * field. However, client can optionally override the historical contexts to
      +     * force the session start from certain state.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message historical_contexts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Message.Builder getHistoricalContextsBuilder(int index) { + return internalGetHistoricalContextsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Optional. The historical context of the session, including user inputs,
      +     * agent responses, and other messages. Typically, CES agent would manage
      +     * session automatically so client doesn't need to explicitly populate this
      +     * field. However, client can optionally override the historical contexts to
      +     * force the session start from certain state.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message historical_contexts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.MessageOrBuilder getHistoricalContextsOrBuilder(int index) { + if (historicalContextsBuilder_ == null) { + return historicalContexts_.get(index); + } else { + return historicalContextsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Optional. The historical context of the session, including user inputs,
      +     * agent responses, and other messages. Typically, CES agent would manage
      +     * session automatically so client doesn't need to explicitly populate this
      +     * field. However, client can optionally override the historical contexts to
      +     * force the session start from certain state.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message historical_contexts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getHistoricalContextsOrBuilderList() { + if (historicalContextsBuilder_ != null) { + return historicalContextsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(historicalContexts_); + } + } + + /** + * + * + *
      +     * Optional. The historical context of the session, including user inputs,
      +     * agent responses, and other messages. Typically, CES agent would manage
      +     * session automatically so client doesn't need to explicitly populate this
      +     * field. However, client can optionally override the historical contexts to
      +     * force the session start from certain state.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message historical_contexts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Message.Builder addHistoricalContextsBuilder() { + return internalGetHistoricalContextsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.Message.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. The historical context of the session, including user inputs,
      +     * agent responses, and other messages. Typically, CES agent would manage
      +     * session automatically so client doesn't need to explicitly populate this
      +     * field. However, client can optionally override the historical contexts to
      +     * force the session start from certain state.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message historical_contexts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Message.Builder addHistoricalContextsBuilder(int index) { + return internalGetHistoricalContextsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.Message.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. The historical context of the session, including user inputs,
      +     * agent responses, and other messages. Typically, CES agent would manage
      +     * session automatically so client doesn't need to explicitly populate this
      +     * field. However, client can optionally override the historical contexts to
      +     * force the session start from certain state.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Message historical_contexts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getHistoricalContextsBuilderList() { + return internalGetHistoricalContextsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Message, + com.google.cloud.ces.v1.Message.Builder, + com.google.cloud.ces.v1.MessageOrBuilder> + internalGetHistoricalContextsFieldBuilder() { + if (historicalContextsBuilder_ == null) { + historicalContextsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Message, + com.google.cloud.ces.v1.Message.Builder, + com.google.cloud.ces.v1.MessageOrBuilder>( + historicalContexts_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + historicalContexts_ = null; + } + return historicalContextsBuilder_; + } + + private java.lang.Object entryAgent_ = ""; + + /** + * + * + *
      +     * Optional. The entry agent to handle the session. If not specified, the
      +     * session will be handled by the [root
      +     * agent][google.cloud.ces.v1.App.root_agent] of the app. Format:
      +     * `projects/{project}/locations/{location}/agents/{agent}`
      +     * 
      + * + * + * string entry_agent = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The entryAgent. + */ + public java.lang.String getEntryAgent() { + java.lang.Object ref = entryAgent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entryAgent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The entry agent to handle the session. If not specified, the
      +     * session will be handled by the [root
      +     * agent][google.cloud.ces.v1.App.root_agent] of the app. Format:
      +     * `projects/{project}/locations/{location}/agents/{agent}`
      +     * 
      + * + * + * string entry_agent = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for entryAgent. + */ + public com.google.protobuf.ByteString getEntryAgentBytes() { + java.lang.Object ref = entryAgent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entryAgent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The entry agent to handle the session. If not specified, the
      +     * session will be handled by the [root
      +     * agent][google.cloud.ces.v1.App.root_agent] of the app. Format:
      +     * `projects/{project}/locations/{location}/agents/{agent}`
      +     * 
      + * + * + * string entry_agent = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The entryAgent to set. + * @return This builder for chaining. + */ + public Builder setEntryAgent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + entryAgent_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The entry agent to handle the session. If not specified, the
      +     * session will be handled by the [root
      +     * agent][google.cloud.ces.v1.App.root_agent] of the app. Format:
      +     * `projects/{project}/locations/{location}/agents/{agent}`
      +     * 
      + * + * + * string entry_agent = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearEntryAgent() { + entryAgent_ = getDefaultInstance().getEntryAgent(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The entry agent to handle the session. If not specified, the
      +     * session will be handled by the [root
      +     * agent][google.cloud.ces.v1.App.root_agent] of the app. Format:
      +     * `projects/{project}/locations/{location}/agents/{agent}`
      +     * 
      + * + * + * string entry_agent = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for entryAgent to set. + * @return This builder for chaining. + */ + public Builder setEntryAgentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entryAgent_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object deployment_ = ""; + + /** + * + * + *
      +     * Optional. The deployment of the app to use for the session.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +     * 
      + * + * string deployment = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deployment. + */ + public java.lang.String getDeployment() { + java.lang.Object ref = deployment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deployment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The deployment of the app to use for the session.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +     * 
      + * + * string deployment = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for deployment. + */ + public com.google.protobuf.ByteString getDeploymentBytes() { + java.lang.Object ref = deployment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deployment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The deployment of the app to use for the session.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +     * 
      + * + * string deployment = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The deployment to set. + * @return This builder for chaining. + */ + public Builder setDeployment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deployment_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The deployment of the app to use for the session.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +     * 
      + * + * string deployment = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDeployment() { + deployment_ = getDefaultInstance().getDeployment(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The deployment of the app to use for the session.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +     * 
      + * + * string deployment = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for deployment to set. + * @return This builder for chaining. + */ + public Builder setDeploymentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deployment_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object timeZone_ = ""; + + /** + * + * + *
      +     * Optional. The time zone of the user. If provided, the agent will use the
      +     * time zone for date and time related variables. Otherwise, the agent will
      +     * use the time zone specified in the App.time_zone_settings.
      +     *
      +     * The format is the IANA Time Zone Database time zone, e.g.
      +     * "America/Los_Angeles".
      +     * 
      + * + * string time_zone = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The timeZone. + */ + public java.lang.String getTimeZone() { + java.lang.Object ref = timeZone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeZone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The time zone of the user. If provided, the agent will use the
      +     * time zone for date and time related variables. Otherwise, the agent will
      +     * use the time zone specified in the App.time_zone_settings.
      +     *
      +     * The format is the IANA Time Zone Database time zone, e.g.
      +     * "America/Los_Angeles".
      +     * 
      + * + * string time_zone = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for timeZone. + */ + public com.google.protobuf.ByteString getTimeZoneBytes() { + java.lang.Object ref = timeZone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + timeZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The time zone of the user. If provided, the agent will use the
      +     * time zone for date and time related variables. Otherwise, the agent will
      +     * use the time zone specified in the App.time_zone_settings.
      +     *
      +     * The format is the IANA Time Zone Database time zone, e.g.
      +     * "America/Los_Angeles".
      +     * 
      + * + * string time_zone = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The timeZone to set. + * @return This builder for chaining. + */ + public Builder setTimeZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + timeZone_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The time zone of the user. If provided, the agent will use the
      +     * time zone for date and time related variables. Otherwise, the agent will
      +     * use the time zone specified in the App.time_zone_settings.
      +     *
      +     * The format is the IANA Time Zone Database time zone, e.g.
      +     * "America/Los_Angeles".
      +     * 
      + * + * string time_zone = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTimeZone() { + timeZone_ = getDefaultInstance().getTimeZone(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The time zone of the user. If provided, the agent will use the
      +     * time zone for date and time related variables. Otherwise, the agent will
      +     * use the time zone specified in the App.time_zone_settings.
      +     *
      +     * The format is the IANA Time Zone Database time zone, e.g.
      +     * "America/Los_Angeles".
      +     * 
      + * + * string time_zone = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for timeZone to set. + * @return This builder for chaining. + */ + public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + timeZone_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters + remoteDialogflowQueryParameters_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters, + com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters.Builder, + com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParametersOrBuilder> + remoteDialogflowQueryParametersBuilder_; + + /** + * + * + *
      +     * Optional.
      +     * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters)
      +     * to send to the remote
      +     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
      +     * agent when the session control is transferred to the remote agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters remote_dialogflow_query_parameters = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the remoteDialogflowQueryParameters field is set. + */ + public boolean hasRemoteDialogflowQueryParameters() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
      +     * Optional.
      +     * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters)
      +     * to send to the remote
      +     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
      +     * agent when the session control is transferred to the remote agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters remote_dialogflow_query_parameters = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The remoteDialogflowQueryParameters. + */ + public com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters + getRemoteDialogflowQueryParameters() { + if (remoteDialogflowQueryParametersBuilder_ == null) { + return remoteDialogflowQueryParameters_ == null + ? com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters + .getDefaultInstance() + : remoteDialogflowQueryParameters_; + } else { + return remoteDialogflowQueryParametersBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional.
      +     * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters)
      +     * to send to the remote
      +     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
      +     * agent when the session control is transferred to the remote agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters remote_dialogflow_query_parameters = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRemoteDialogflowQueryParameters( + com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters value) { + if (remoteDialogflowQueryParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + remoteDialogflowQueryParameters_ = value; + } else { + remoteDialogflowQueryParametersBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional.
      +     * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters)
      +     * to send to the remote
      +     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
      +     * agent when the session control is transferred to the remote agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters remote_dialogflow_query_parameters = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRemoteDialogflowQueryParameters( + com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters.Builder + builderForValue) { + if (remoteDialogflowQueryParametersBuilder_ == null) { + remoteDialogflowQueryParameters_ = builderForValue.build(); + } else { + remoteDialogflowQueryParametersBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional.
      +     * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters)
      +     * to send to the remote
      +     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
      +     * agent when the session control is transferred to the remote agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters remote_dialogflow_query_parameters = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRemoteDialogflowQueryParameters( + com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters value) { + if (remoteDialogflowQueryParametersBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && remoteDialogflowQueryParameters_ != null + && remoteDialogflowQueryParameters_ + != com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters + .getDefaultInstance()) { + getRemoteDialogflowQueryParametersBuilder().mergeFrom(value); + } else { + remoteDialogflowQueryParameters_ = value; + } + } else { + remoteDialogflowQueryParametersBuilder_.mergeFrom(value); + } + if (remoteDialogflowQueryParameters_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional.
      +     * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters)
      +     * to send to the remote
      +     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
      +     * agent when the session control is transferred to the remote agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters remote_dialogflow_query_parameters = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRemoteDialogflowQueryParameters() { + bitField0_ = (bitField0_ & ~0x00000080); + remoteDialogflowQueryParameters_ = null; + if (remoteDialogflowQueryParametersBuilder_ != null) { + remoteDialogflowQueryParametersBuilder_.dispose(); + remoteDialogflowQueryParametersBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional.
      +     * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters)
      +     * to send to the remote
      +     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
      +     * agent when the session control is transferred to the remote agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters remote_dialogflow_query_parameters = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters.Builder + getRemoteDialogflowQueryParametersBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetRemoteDialogflowQueryParametersFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional.
      +     * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters)
      +     * to send to the remote
      +     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
      +     * agent when the session control is transferred to the remote agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters remote_dialogflow_query_parameters = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParametersOrBuilder + getRemoteDialogflowQueryParametersOrBuilder() { + if (remoteDialogflowQueryParametersBuilder_ != null) { + return remoteDialogflowQueryParametersBuilder_.getMessageOrBuilder(); + } else { + return remoteDialogflowQueryParameters_ == null + ? com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters + .getDefaultInstance() + : remoteDialogflowQueryParameters_; + } + } + + /** + * + * + *
      +     * Optional.
      +     * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters)
      +     * to send to the remote
      +     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
      +     * agent when the session control is transferred to the remote agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters remote_dialogflow_query_parameters = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters, + com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters.Builder, + com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParametersOrBuilder> + internalGetRemoteDialogflowQueryParametersFieldBuilder() { + if (remoteDialogflowQueryParametersBuilder_ == null) { + remoteDialogflowQueryParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters, + com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters.Builder, + com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParametersOrBuilder>( + getRemoteDialogflowQueryParameters(), getParentForChildren(), isClean()); + remoteDialogflowQueryParameters_ = null; + } + return remoteDialogflowQueryParametersBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.SessionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.SessionConfig) + private static final com.google.cloud.ces.v1.SessionConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.SessionConfig(); + } + + public static com.google.cloud.ces.v1.SessionConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SessionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.SessionConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionConfigOrBuilder.java new file mode 100644 index 000000000000..af56698547db --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionConfigOrBuilder.java @@ -0,0 +1,393 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface SessionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.SessionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The unique identifier of the session.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/sessions/{session}`
      +   * 
      + * + * + * string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The session. + */ + java.lang.String getSession(); + + /** + * + * + *
      +   * Required. The unique identifier of the session.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/sessions/{session}`
      +   * 
      + * + * + * string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for session. + */ + com.google.protobuf.ByteString getSessionBytes(); + + /** + * + * + *
      +   * Optional. Configuration for processing the input audio.
      +   * 
      + * + * + * .google.cloud.ces.v1.InputAudioConfig input_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the inputAudioConfig field is set. + */ + boolean hasInputAudioConfig(); + + /** + * + * + *
      +   * Optional. Configuration for processing the input audio.
      +   * 
      + * + * + * .google.cloud.ces.v1.InputAudioConfig input_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inputAudioConfig. + */ + com.google.cloud.ces.v1.InputAudioConfig getInputAudioConfig(); + + /** + * + * + *
      +   * Optional. Configuration for processing the input audio.
      +   * 
      + * + * + * .google.cloud.ces.v1.InputAudioConfig input_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.InputAudioConfigOrBuilder getInputAudioConfigOrBuilder(); + + /** + * + * + *
      +   * Optional. Configuration for generating the output audio.
      +   * 
      + * + * + * .google.cloud.ces.v1.OutputAudioConfig output_audio_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the outputAudioConfig field is set. + */ + boolean hasOutputAudioConfig(); + + /** + * + * + *
      +   * Optional. Configuration for generating the output audio.
      +   * 
      + * + * + * .google.cloud.ces.v1.OutputAudioConfig output_audio_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The outputAudioConfig. + */ + com.google.cloud.ces.v1.OutputAudioConfig getOutputAudioConfig(); + + /** + * + * + *
      +   * Optional. Configuration for generating the output audio.
      +   * 
      + * + * + * .google.cloud.ces.v1.OutputAudioConfig output_audio_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder(); + + /** + * + * + *
      +   * Optional. The historical context of the session, including user inputs,
      +   * agent responses, and other messages. Typically, CES agent would manage
      +   * session automatically so client doesn't need to explicitly populate this
      +   * field. However, client can optionally override the historical contexts to
      +   * force the session start from certain state.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Message historical_contexts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getHistoricalContextsList(); + + /** + * + * + *
      +   * Optional. The historical context of the session, including user inputs,
      +   * agent responses, and other messages. Typically, CES agent would manage
      +   * session automatically so client doesn't need to explicitly populate this
      +   * field. However, client can optionally override the historical contexts to
      +   * force the session start from certain state.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Message historical_contexts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.Message getHistoricalContexts(int index); + + /** + * + * + *
      +   * Optional. The historical context of the session, including user inputs,
      +   * agent responses, and other messages. Typically, CES agent would manage
      +   * session automatically so client doesn't need to explicitly populate this
      +   * field. However, client can optionally override the historical contexts to
      +   * force the session start from certain state.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Message historical_contexts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getHistoricalContextsCount(); + + /** + * + * + *
      +   * Optional. The historical context of the session, including user inputs,
      +   * agent responses, and other messages. Typically, CES agent would manage
      +   * session automatically so client doesn't need to explicitly populate this
      +   * field. However, client can optionally override the historical contexts to
      +   * force the session start from certain state.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Message historical_contexts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getHistoricalContextsOrBuilderList(); + + /** + * + * + *
      +   * Optional. The historical context of the session, including user inputs,
      +   * agent responses, and other messages. Typically, CES agent would manage
      +   * session automatically so client doesn't need to explicitly populate this
      +   * field. However, client can optionally override the historical contexts to
      +   * force the session start from certain state.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Message historical_contexts = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.MessageOrBuilder getHistoricalContextsOrBuilder(int index); + + /** + * + * + *
      +   * Optional. The entry agent to handle the session. If not specified, the
      +   * session will be handled by the [root
      +   * agent][google.cloud.ces.v1.App.root_agent] of the app. Format:
      +   * `projects/{project}/locations/{location}/agents/{agent}`
      +   * 
      + * + * + * string entry_agent = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The entryAgent. + */ + java.lang.String getEntryAgent(); + + /** + * + * + *
      +   * Optional. The entry agent to handle the session. If not specified, the
      +   * session will be handled by the [root
      +   * agent][google.cloud.ces.v1.App.root_agent] of the app. Format:
      +   * `projects/{project}/locations/{location}/agents/{agent}`
      +   * 
      + * + * + * string entry_agent = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for entryAgent. + */ + com.google.protobuf.ByteString getEntryAgentBytes(); + + /** + * + * + *
      +   * Optional. The deployment of the app to use for the session.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +   * 
      + * + * string deployment = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deployment. + */ + java.lang.String getDeployment(); + + /** + * + * + *
      +   * Optional. The deployment of the app to use for the session.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
      +   * 
      + * + * string deployment = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for deployment. + */ + com.google.protobuf.ByteString getDeploymentBytes(); + + /** + * + * + *
      +   * Optional. The time zone of the user. If provided, the agent will use the
      +   * time zone for date and time related variables. Otherwise, the agent will
      +   * use the time zone specified in the App.time_zone_settings.
      +   *
      +   * The format is the IANA Time Zone Database time zone, e.g.
      +   * "America/Los_Angeles".
      +   * 
      + * + * string time_zone = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The timeZone. + */ + java.lang.String getTimeZone(); + + /** + * + * + *
      +   * Optional. The time zone of the user. If provided, the agent will use the
      +   * time zone for date and time related variables. Otherwise, the agent will
      +   * use the time zone specified in the App.time_zone_settings.
      +   *
      +   * The format is the IANA Time Zone Database time zone, e.g.
      +   * "America/Los_Angeles".
      +   * 
      + * + * string time_zone = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for timeZone. + */ + com.google.protobuf.ByteString getTimeZoneBytes(); + + /** + * + * + *
      +   * Optional.
      +   * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters)
      +   * to send to the remote
      +   * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
      +   * agent when the session control is transferred to the remote agent.
      +   * 
      + * + * + * .google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters remote_dialogflow_query_parameters = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the remoteDialogflowQueryParameters field is set. + */ + boolean hasRemoteDialogflowQueryParameters(); + + /** + * + * + *
      +   * Optional.
      +   * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters)
      +   * to send to the remote
      +   * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
      +   * agent when the session control is transferred to the remote agent.
      +   * 
      + * + * + * .google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters remote_dialogflow_query_parameters = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The remoteDialogflowQueryParameters. + */ + com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters + getRemoteDialogflowQueryParameters(); + + /** + * + * + *
      +   * Optional.
      +   * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters)
      +   * to send to the remote
      +   * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
      +   * agent when the session control is transferred to the remote agent.
      +   * 
      + * + * + * .google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParameters remote_dialogflow_query_parameters = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.SessionConfig.RemoteDialogflowQueryParametersOrBuilder + getRemoteDialogflowQueryParametersOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionInput.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionInput.java new file mode 100644 index 000000000000..ca68163e178e --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionInput.java @@ -0,0 +1,2820 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Input for the session.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.SessionInput} + */ +@com.google.protobuf.Generated +public final class SessionInput extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.SessionInput) + SessionInputOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SessionInput"); + } + + // Use SessionInput.newBuilder() to construct. + private SessionInput(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SessionInput() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_SessionInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_SessionInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.SessionInput.class, + com.google.cloud.ces.v1.SessionInput.Builder.class); + } + + private int inputTypeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object inputType_; + + public enum InputTypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TEXT(1), + DTMF(6), + AUDIO(2), + TOOL_RESPONSES(3), + IMAGE(4), + BLOB(7), + VARIABLES(5), + EVENT(9), + INPUTTYPE_NOT_SET(0); + private final int value; + + private InputTypeCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static InputTypeCase valueOf(int value) { + return forNumber(value); + } + + public static InputTypeCase forNumber(int value) { + switch (value) { + case 1: + return TEXT; + case 6: + return DTMF; + case 2: + return AUDIO; + case 3: + return TOOL_RESPONSES; + case 4: + return IMAGE; + case 7: + return BLOB; + case 5: + return VARIABLES; + case 9: + return EVENT; + case 0: + return INPUTTYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public InputTypeCase getInputTypeCase() { + return InputTypeCase.forNumber(inputTypeCase_); + } + + public static final int TEXT_FIELD_NUMBER = 1; + + /** + * + * + *
      +   * Optional. Text data from the end user.
      +   * 
      + * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the text field is set. + */ + public boolean hasText() { + return inputTypeCase_ == 1; + } + + /** + * + * + *
      +   * Optional. Text data from the end user.
      +   * 
      + * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = ""; + if (inputTypeCase_ == 1) { + ref = inputType_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (inputTypeCase_ == 1) { + inputType_ = s; + } + return s; + } + } + + /** + * + * + *
      +   * Optional. Text data from the end user.
      +   * 
      + * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for text. + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = ""; + if (inputTypeCase_ == 1) { + ref = inputType_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (inputTypeCase_ == 1) { + inputType_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DTMF_FIELD_NUMBER = 6; + + /** + * + * + *
      +   * Optional. DTMF digits from the end user.
      +   * 
      + * + * string dtmf = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the dtmf field is set. + */ + public boolean hasDtmf() { + return inputTypeCase_ == 6; + } + + /** + * + * + *
      +   * Optional. DTMF digits from the end user.
      +   * 
      + * + * string dtmf = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dtmf. + */ + public java.lang.String getDtmf() { + java.lang.Object ref = ""; + if (inputTypeCase_ == 6) { + ref = inputType_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (inputTypeCase_ == 6) { + inputType_ = s; + } + return s; + } + } + + /** + * + * + *
      +   * Optional. DTMF digits from the end user.
      +   * 
      + * + * string dtmf = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dtmf. + */ + public com.google.protobuf.ByteString getDtmfBytes() { + java.lang.Object ref = ""; + if (inputTypeCase_ == 6) { + ref = inputType_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (inputTypeCase_ == 6) { + inputType_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUDIO_FIELD_NUMBER = 2; + + /** + * + * + *
      +   * Optional. Audio data from the end user.
      +   * 
      + * + * bytes audio = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the audio field is set. + */ + @java.lang.Override + public boolean hasAudio() { + return inputTypeCase_ == 2; + } + + /** + * + * + *
      +   * Optional. Audio data from the end user.
      +   * 
      + * + * bytes audio = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The audio. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAudio() { + if (inputTypeCase_ == 2) { + return (com.google.protobuf.ByteString) inputType_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + public static final int TOOL_RESPONSES_FIELD_NUMBER = 3; + + /** + * + * + *
      +   * Optional. Execution results for the tool calls from the client.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolResponses tool_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolResponses field is set. + */ + @java.lang.Override + public boolean hasToolResponses() { + return inputTypeCase_ == 3; + } + + /** + * + * + *
      +   * Optional. Execution results for the tool calls from the client.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolResponses tool_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolResponses. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolResponses getToolResponses() { + if (inputTypeCase_ == 3) { + return (com.google.cloud.ces.v1.ToolResponses) inputType_; + } + return com.google.cloud.ces.v1.ToolResponses.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Execution results for the tool calls from the client.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolResponses tool_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolResponsesOrBuilder getToolResponsesOrBuilder() { + if (inputTypeCase_ == 3) { + return (com.google.cloud.ces.v1.ToolResponses) inputType_; + } + return com.google.cloud.ces.v1.ToolResponses.getDefaultInstance(); + } + + public static final int IMAGE_FIELD_NUMBER = 4; + + /** + * + * + *
      +   * Optional. Image data from the end user.
      +   * 
      + * + * .google.cloud.ces.v1.Image image = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the image field is set. + */ + @java.lang.Override + public boolean hasImage() { + return inputTypeCase_ == 4; + } + + /** + * + * + *
      +   * Optional. Image data from the end user.
      +   * 
      + * + * .google.cloud.ces.v1.Image image = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The image. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Image getImage() { + if (inputTypeCase_ == 4) { + return (com.google.cloud.ces.v1.Image) inputType_; + } + return com.google.cloud.ces.v1.Image.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Image data from the end user.
      +   * 
      + * + * .google.cloud.ces.v1.Image image = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.ces.v1.ImageOrBuilder getImageOrBuilder() { + if (inputTypeCase_ == 4) { + return (com.google.cloud.ces.v1.Image) inputType_; + } + return com.google.cloud.ces.v1.Image.getDefaultInstance(); + } + + public static final int BLOB_FIELD_NUMBER = 7; + + /** + * + * + *
      +   * Optional. Blob data from the end user.
      +   * 
      + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the blob field is set. + */ + @java.lang.Override + public boolean hasBlob() { + return inputTypeCase_ == 7; + } + + /** + * + * + *
      +   * Optional. Blob data from the end user.
      +   * 
      + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The blob. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Blob getBlob() { + if (inputTypeCase_ == 7) { + return (com.google.cloud.ces.v1.Blob) inputType_; + } + return com.google.cloud.ces.v1.Blob.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Blob data from the end user.
      +   * 
      + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.ces.v1.BlobOrBuilder getBlobOrBuilder() { + if (inputTypeCase_ == 7) { + return (com.google.cloud.ces.v1.Blob) inputType_; + } + return com.google.cloud.ces.v1.Blob.getDefaultInstance(); + } + + public static final int VARIABLES_FIELD_NUMBER = 5; + + /** + * + * + *
      +   * Optional. Contextual variables for the session, keyed by name. Only
      +   * variables declared in the app will be used by the CES agent.
      +   *
      +   * Unrecognized variables will still be sent to the [Dialogflow
      +   * agent][Agent.RemoteDialogflowAgent] as additional session parameters.
      +   * 
      + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the variables field is set. + */ + @java.lang.Override + public boolean hasVariables() { + return inputTypeCase_ == 5; + } + + /** + * + * + *
      +   * Optional. Contextual variables for the session, keyed by name. Only
      +   * variables declared in the app will be used by the CES agent.
      +   *
      +   * Unrecognized variables will still be sent to the [Dialogflow
      +   * agent][Agent.RemoteDialogflowAgent] as additional session parameters.
      +   * 
      + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The variables. + */ + @java.lang.Override + public com.google.protobuf.Struct getVariables() { + if (inputTypeCase_ == 5) { + return (com.google.protobuf.Struct) inputType_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Contextual variables for the session, keyed by name. Only
      +   * variables declared in the app will be used by the CES agent.
      +   *
      +   * Unrecognized variables will still be sent to the [Dialogflow
      +   * agent][Agent.RemoteDialogflowAgent] as additional session parameters.
      +   * 
      + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getVariablesOrBuilder() { + if (inputTypeCase_ == 5) { + return (com.google.protobuf.Struct) inputType_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + public static final int EVENT_FIELD_NUMBER = 9; + + /** + * + * + *
      +   * Optional. Event input.
      +   * 
      + * + * .google.cloud.ces.v1.Event event = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the event field is set. + */ + @java.lang.Override + public boolean hasEvent() { + return inputTypeCase_ == 9; + } + + /** + * + * + *
      +   * Optional. Event input.
      +   * 
      + * + * .google.cloud.ces.v1.Event event = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The event. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Event getEvent() { + if (inputTypeCase_ == 9) { + return (com.google.cloud.ces.v1.Event) inputType_; + } + return com.google.cloud.ces.v1.Event.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Event input.
      +   * 
      + * + * .google.cloud.ces.v1.Event event = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.ces.v1.EventOrBuilder getEventOrBuilder() { + if (inputTypeCase_ == 9) { + return (com.google.cloud.ces.v1.Event) inputType_; + } + return com.google.cloud.ces.v1.Event.getDefaultInstance(); + } + + public static final int WILL_CONTINUE_FIELD_NUMBER = 8; + private boolean willContinue_ = false; + + /** + * + * + *
      +   * Optional. A flag to indicate if the current message is a fragment of a
      +   * larger input in the bidi streaming session. When `true`, the agent will
      +   * defer processing until a subsequent message with `will_continue` set to
      +   * `false` is received.
      +   *
      +   * Note: This flag has no effect on audio and DTMF inputs, which are always
      +   * processed in real-time.
      +   * 
      + * + * bool will_continue = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The willContinue. + */ + @java.lang.Override + public boolean getWillContinue() { + return willContinue_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (inputTypeCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, inputType_); + } + if (inputTypeCase_ == 2) { + output.writeBytes(2, (com.google.protobuf.ByteString) inputType_); + } + if (inputTypeCase_ == 3) { + output.writeMessage(3, (com.google.cloud.ces.v1.ToolResponses) inputType_); + } + if (inputTypeCase_ == 4) { + output.writeMessage(4, (com.google.cloud.ces.v1.Image) inputType_); + } + if (inputTypeCase_ == 5) { + output.writeMessage(5, (com.google.protobuf.Struct) inputType_); + } + if (inputTypeCase_ == 6) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, inputType_); + } + if (inputTypeCase_ == 7) { + output.writeMessage(7, (com.google.cloud.ces.v1.Blob) inputType_); + } + if (willContinue_ != false) { + output.writeBool(8, willContinue_); + } + if (inputTypeCase_ == 9) { + output.writeMessage(9, (com.google.cloud.ces.v1.Event) inputType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (inputTypeCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, inputType_); + } + if (inputTypeCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 2, (com.google.protobuf.ByteString) inputType_); + } + if (inputTypeCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.ces.v1.ToolResponses) inputType_); + } + if (inputTypeCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.ces.v1.Image) inputType_); + } + if (inputTypeCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.protobuf.Struct) inputType_); + } + if (inputTypeCase_ == 6) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, inputType_); + } + if (inputTypeCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.ces.v1.Blob) inputType_); + } + if (willContinue_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, willContinue_); + } + if (inputTypeCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.ces.v1.Event) inputType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.SessionInput)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.SessionInput other = (com.google.cloud.ces.v1.SessionInput) obj; + + if (getWillContinue() != other.getWillContinue()) return false; + if (!getInputTypeCase().equals(other.getInputTypeCase())) return false; + switch (inputTypeCase_) { + case 1: + if (!getText().equals(other.getText())) return false; + break; + case 6: + if (!getDtmf().equals(other.getDtmf())) return false; + break; + case 2: + if (!getAudio().equals(other.getAudio())) return false; + break; + case 3: + if (!getToolResponses().equals(other.getToolResponses())) return false; + break; + case 4: + if (!getImage().equals(other.getImage())) return false; + break; + case 7: + if (!getBlob().equals(other.getBlob())) return false; + break; + case 5: + if (!getVariables().equals(other.getVariables())) return false; + break; + case 9: + if (!getEvent().equals(other.getEvent())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WILL_CONTINUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getWillContinue()); + switch (inputTypeCase_) { + case 1: + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + break; + case 6: + hash = (37 * hash) + DTMF_FIELD_NUMBER; + hash = (53 * hash) + getDtmf().hashCode(); + break; + case 2: + hash = (37 * hash) + AUDIO_FIELD_NUMBER; + hash = (53 * hash) + getAudio().hashCode(); + break; + case 3: + hash = (37 * hash) + TOOL_RESPONSES_FIELD_NUMBER; + hash = (53 * hash) + getToolResponses().hashCode(); + break; + case 4: + hash = (37 * hash) + IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getImage().hashCode(); + break; + case 7: + hash = (37 * hash) + BLOB_FIELD_NUMBER; + hash = (53 * hash) + getBlob().hashCode(); + break; + case 5: + hash = (37 * hash) + VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + getVariables().hashCode(); + break; + case 9: + hash = (37 * hash) + EVENT_FIELD_NUMBER; + hash = (53 * hash) + getEvent().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.SessionInput parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.SessionInput parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SessionInput parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.SessionInput parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SessionInput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.SessionInput parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SessionInput parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.SessionInput parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SessionInput parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.SessionInput parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SessionInput parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.SessionInput parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.SessionInput prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Input for the session.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.SessionInput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.SessionInput) + com.google.cloud.ces.v1.SessionInputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_SessionInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_SessionInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.SessionInput.class, + com.google.cloud.ces.v1.SessionInput.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.SessionInput.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolResponsesBuilder_ != null) { + toolResponsesBuilder_.clear(); + } + if (imageBuilder_ != null) { + imageBuilder_.clear(); + } + if (blobBuilder_ != null) { + blobBuilder_.clear(); + } + if (variablesBuilder_ != null) { + variablesBuilder_.clear(); + } + if (eventBuilder_ != null) { + eventBuilder_.clear(); + } + willContinue_ = false; + inputTypeCase_ = 0; + inputType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_SessionInput_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.SessionInput getDefaultInstanceForType() { + return com.google.cloud.ces.v1.SessionInput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.SessionInput build() { + com.google.cloud.ces.v1.SessionInput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.SessionInput buildPartial() { + com.google.cloud.ces.v1.SessionInput result = new com.google.cloud.ces.v1.SessionInput(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.SessionInput result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000100) != 0)) { + result.willContinue_ = willContinue_; + } + } + + private void buildPartialOneofs(com.google.cloud.ces.v1.SessionInput result) { + result.inputTypeCase_ = inputTypeCase_; + result.inputType_ = this.inputType_; + if (inputTypeCase_ == 3 && toolResponsesBuilder_ != null) { + result.inputType_ = toolResponsesBuilder_.build(); + } + if (inputTypeCase_ == 4 && imageBuilder_ != null) { + result.inputType_ = imageBuilder_.build(); + } + if (inputTypeCase_ == 7 && blobBuilder_ != null) { + result.inputType_ = blobBuilder_.build(); + } + if (inputTypeCase_ == 5 && variablesBuilder_ != null) { + result.inputType_ = variablesBuilder_.build(); + } + if (inputTypeCase_ == 9 && eventBuilder_ != null) { + result.inputType_ = eventBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.SessionInput) { + return mergeFrom((com.google.cloud.ces.v1.SessionInput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.SessionInput other) { + if (other == com.google.cloud.ces.v1.SessionInput.getDefaultInstance()) return this; + if (other.getWillContinue() != false) { + setWillContinue(other.getWillContinue()); + } + switch (other.getInputTypeCase()) { + case TEXT: + { + inputTypeCase_ = 1; + inputType_ = other.inputType_; + onChanged(); + break; + } + case DTMF: + { + inputTypeCase_ = 6; + inputType_ = other.inputType_; + onChanged(); + break; + } + case AUDIO: + { + setAudio(other.getAudio()); + break; + } + case TOOL_RESPONSES: + { + mergeToolResponses(other.getToolResponses()); + break; + } + case IMAGE: + { + mergeImage(other.getImage()); + break; + } + case BLOB: + { + mergeBlob(other.getBlob()); + break; + } + case VARIABLES: + { + mergeVariables(other.getVariables()); + break; + } + case EVENT: + { + mergeEvent(other.getEvent()); + break; + } + case INPUTTYPE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + inputTypeCase_ = 1; + inputType_ = s; + break; + } // case 10 + case 18: + { + inputType_ = input.readBytes(); + inputTypeCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetToolResponsesFieldBuilder().getBuilder(), extensionRegistry); + inputTypeCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(internalGetImageFieldBuilder().getBuilder(), extensionRegistry); + inputTypeCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetVariablesFieldBuilder().getBuilder(), extensionRegistry); + inputTypeCase_ = 5; + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + inputTypeCase_ = 6; + inputType_ = s; + break; + } // case 50 + case 58: + { + input.readMessage(internalGetBlobFieldBuilder().getBuilder(), extensionRegistry); + inputTypeCase_ = 7; + break; + } // case 58 + case 64: + { + willContinue_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 64 + case 74: + { + input.readMessage(internalGetEventFieldBuilder().getBuilder(), extensionRegistry); + inputTypeCase_ = 9; + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int inputTypeCase_ = 0; + private java.lang.Object inputType_; + + public InputTypeCase getInputTypeCase() { + return InputTypeCase.forNumber(inputTypeCase_); + } + + public Builder clearInputType() { + inputTypeCase_ = 0; + inputType_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
      +     * Optional. Text data from the end user.
      +     * 
      + * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the text field is set. + */ + @java.lang.Override + public boolean hasText() { + return inputTypeCase_ == 1; + } + + /** + * + * + *
      +     * Optional. Text data from the end user.
      +     * 
      + * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = ""; + if (inputTypeCase_ == 1) { + ref = inputType_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (inputTypeCase_ == 1) { + inputType_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. Text data from the end user.
      +     * 
      + * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = ""; + if (inputTypeCase_ == 1) { + ref = inputType_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (inputTypeCase_ == 1) { + inputType_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. Text data from the end user.
      +     * 
      + * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + inputTypeCase_ = 1; + inputType_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Text data from the end user.
      +     * 
      + * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearText() { + if (inputTypeCase_ == 1) { + inputTypeCase_ = 0; + inputType_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Text data from the end user.
      +     * 
      + * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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(); + } + checkByteStringIsUtf8(value); + inputTypeCase_ = 1; + inputType_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. DTMF digits from the end user.
      +     * 
      + * + * string dtmf = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the dtmf field is set. + */ + @java.lang.Override + public boolean hasDtmf() { + return inputTypeCase_ == 6; + } + + /** + * + * + *
      +     * Optional. DTMF digits from the end user.
      +     * 
      + * + * string dtmf = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dtmf. + */ + @java.lang.Override + public java.lang.String getDtmf() { + java.lang.Object ref = ""; + if (inputTypeCase_ == 6) { + ref = inputType_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (inputTypeCase_ == 6) { + inputType_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. DTMF digits from the end user.
      +     * 
      + * + * string dtmf = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dtmf. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDtmfBytes() { + java.lang.Object ref = ""; + if (inputTypeCase_ == 6) { + ref = inputType_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (inputTypeCase_ == 6) { + inputType_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. DTMF digits from the end user.
      +     * 
      + * + * string dtmf = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The dtmf to set. + * @return This builder for chaining. + */ + public Builder setDtmf(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + inputTypeCase_ = 6; + inputType_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. DTMF digits from the end user.
      +     * 
      + * + * string dtmf = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDtmf() { + if (inputTypeCase_ == 6) { + inputTypeCase_ = 0; + inputType_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. DTMF digits from the end user.
      +     * 
      + * + * string dtmf = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for dtmf to set. + * @return This builder for chaining. + */ + public Builder setDtmfBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + inputTypeCase_ = 6; + inputType_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Audio data from the end user.
      +     * 
      + * + * bytes audio = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the audio field is set. + */ + public boolean hasAudio() { + return inputTypeCase_ == 2; + } + + /** + * + * + *
      +     * Optional. Audio data from the end user.
      +     * 
      + * + * bytes audio = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The audio. + */ + public com.google.protobuf.ByteString getAudio() { + if (inputTypeCase_ == 2) { + return (com.google.protobuf.ByteString) inputType_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + /** + * + * + *
      +     * Optional. Audio data from the end user.
      +     * 
      + * + * bytes audio = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The audio to set. + * @return This builder for chaining. + */ + public Builder setAudio(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + inputTypeCase_ = 2; + inputType_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Audio data from the end user.
      +     * 
      + * + * bytes audio = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAudio() { + if (inputTypeCase_ == 2) { + inputTypeCase_ = 0; + inputType_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolResponses, + com.google.cloud.ces.v1.ToolResponses.Builder, + com.google.cloud.ces.v1.ToolResponsesOrBuilder> + toolResponsesBuilder_; + + /** + * + * + *
      +     * Optional. Execution results for the tool calls from the client.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolResponses tool_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolResponses field is set. + */ + @java.lang.Override + public boolean hasToolResponses() { + return inputTypeCase_ == 3; + } + + /** + * + * + *
      +     * Optional. Execution results for the tool calls from the client.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolResponses tool_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolResponses. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolResponses getToolResponses() { + if (toolResponsesBuilder_ == null) { + if (inputTypeCase_ == 3) { + return (com.google.cloud.ces.v1.ToolResponses) inputType_; + } + return com.google.cloud.ces.v1.ToolResponses.getDefaultInstance(); + } else { + if (inputTypeCase_ == 3) { + return toolResponsesBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.ToolResponses.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Execution results for the tool calls from the client.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolResponses tool_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolResponses(com.google.cloud.ces.v1.ToolResponses value) { + if (toolResponsesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputType_ = value; + onChanged(); + } else { + toolResponsesBuilder_.setMessage(value); + } + inputTypeCase_ = 3; + return this; + } + + /** + * + * + *
      +     * Optional. Execution results for the tool calls from the client.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolResponses tool_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolResponses(com.google.cloud.ces.v1.ToolResponses.Builder builderForValue) { + if (toolResponsesBuilder_ == null) { + inputType_ = builderForValue.build(); + onChanged(); + } else { + toolResponsesBuilder_.setMessage(builderForValue.build()); + } + inputTypeCase_ = 3; + return this; + } + + /** + * + * + *
      +     * Optional. Execution results for the tool calls from the client.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolResponses tool_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeToolResponses(com.google.cloud.ces.v1.ToolResponses value) { + if (toolResponsesBuilder_ == null) { + if (inputTypeCase_ == 3 + && inputType_ != com.google.cloud.ces.v1.ToolResponses.getDefaultInstance()) { + inputType_ = + com.google.cloud.ces.v1.ToolResponses.newBuilder( + (com.google.cloud.ces.v1.ToolResponses) inputType_) + .mergeFrom(value) + .buildPartial(); + } else { + inputType_ = value; + } + onChanged(); + } else { + if (inputTypeCase_ == 3) { + toolResponsesBuilder_.mergeFrom(value); + } else { + toolResponsesBuilder_.setMessage(value); + } + } + inputTypeCase_ = 3; + return this; + } + + /** + * + * + *
      +     * Optional. Execution results for the tool calls from the client.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolResponses tool_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearToolResponses() { + if (toolResponsesBuilder_ == null) { + if (inputTypeCase_ == 3) { + inputTypeCase_ = 0; + inputType_ = null; + onChanged(); + } + } else { + if (inputTypeCase_ == 3) { + inputTypeCase_ = 0; + inputType_ = null; + } + toolResponsesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Execution results for the tool calls from the client.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolResponses tool_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ToolResponses.Builder getToolResponsesBuilder() { + return internalGetToolResponsesFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Execution results for the tool calls from the client.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolResponses tool_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolResponsesOrBuilder getToolResponsesOrBuilder() { + if ((inputTypeCase_ == 3) && (toolResponsesBuilder_ != null)) { + return toolResponsesBuilder_.getMessageOrBuilder(); + } else { + if (inputTypeCase_ == 3) { + return (com.google.cloud.ces.v1.ToolResponses) inputType_; + } + return com.google.cloud.ces.v1.ToolResponses.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Execution results for the tool calls from the client.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolResponses tool_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolResponses, + com.google.cloud.ces.v1.ToolResponses.Builder, + com.google.cloud.ces.v1.ToolResponsesOrBuilder> + internalGetToolResponsesFieldBuilder() { + if (toolResponsesBuilder_ == null) { + if (!(inputTypeCase_ == 3)) { + inputType_ = com.google.cloud.ces.v1.ToolResponses.getDefaultInstance(); + } + toolResponsesBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolResponses, + com.google.cloud.ces.v1.ToolResponses.Builder, + com.google.cloud.ces.v1.ToolResponsesOrBuilder>( + (com.google.cloud.ces.v1.ToolResponses) inputType_, + getParentForChildren(), + isClean()); + inputType_ = null; + } + inputTypeCase_ = 3; + onChanged(); + return toolResponsesBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Image, + com.google.cloud.ces.v1.Image.Builder, + com.google.cloud.ces.v1.ImageOrBuilder> + imageBuilder_; + + /** + * + * + *
      +     * Optional. Image data from the end user.
      +     * 
      + * + * .google.cloud.ces.v1.Image image = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the image field is set. + */ + @java.lang.Override + public boolean hasImage() { + return inputTypeCase_ == 4; + } + + /** + * + * + *
      +     * Optional. Image data from the end user.
      +     * 
      + * + * .google.cloud.ces.v1.Image image = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The image. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Image getImage() { + if (imageBuilder_ == null) { + if (inputTypeCase_ == 4) { + return (com.google.cloud.ces.v1.Image) inputType_; + } + return com.google.cloud.ces.v1.Image.getDefaultInstance(); + } else { + if (inputTypeCase_ == 4) { + return imageBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.Image.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Image data from the end user.
      +     * 
      + * + * .google.cloud.ces.v1.Image image = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setImage(com.google.cloud.ces.v1.Image value) { + if (imageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputType_ = value; + onChanged(); + } else { + imageBuilder_.setMessage(value); + } + inputTypeCase_ = 4; + return this; + } + + /** + * + * + *
      +     * Optional. Image data from the end user.
      +     * 
      + * + * .google.cloud.ces.v1.Image image = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setImage(com.google.cloud.ces.v1.Image.Builder builderForValue) { + if (imageBuilder_ == null) { + inputType_ = builderForValue.build(); + onChanged(); + } else { + imageBuilder_.setMessage(builderForValue.build()); + } + inputTypeCase_ = 4; + return this; + } + + /** + * + * + *
      +     * Optional. Image data from the end user.
      +     * 
      + * + * .google.cloud.ces.v1.Image image = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeImage(com.google.cloud.ces.v1.Image value) { + if (imageBuilder_ == null) { + if (inputTypeCase_ == 4 + && inputType_ != com.google.cloud.ces.v1.Image.getDefaultInstance()) { + inputType_ = + com.google.cloud.ces.v1.Image.newBuilder((com.google.cloud.ces.v1.Image) inputType_) + .mergeFrom(value) + .buildPartial(); + } else { + inputType_ = value; + } + onChanged(); + } else { + if (inputTypeCase_ == 4) { + imageBuilder_.mergeFrom(value); + } else { + imageBuilder_.setMessage(value); + } + } + inputTypeCase_ = 4; + return this; + } + + /** + * + * + *
      +     * Optional. Image data from the end user.
      +     * 
      + * + * .google.cloud.ces.v1.Image image = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearImage() { + if (imageBuilder_ == null) { + if (inputTypeCase_ == 4) { + inputTypeCase_ = 0; + inputType_ = null; + onChanged(); + } + } else { + if (inputTypeCase_ == 4) { + inputTypeCase_ = 0; + inputType_ = null; + } + imageBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Image data from the end user.
      +     * 
      + * + * .google.cloud.ces.v1.Image image = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.ces.v1.Image.Builder getImageBuilder() { + return internalGetImageFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Image data from the end user.
      +     * 
      + * + * .google.cloud.ces.v1.Image image = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.ces.v1.ImageOrBuilder getImageOrBuilder() { + if ((inputTypeCase_ == 4) && (imageBuilder_ != null)) { + return imageBuilder_.getMessageOrBuilder(); + } else { + if (inputTypeCase_ == 4) { + return (com.google.cloud.ces.v1.Image) inputType_; + } + return com.google.cloud.ces.v1.Image.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Image data from the end user.
      +     * 
      + * + * .google.cloud.ces.v1.Image image = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Image, + com.google.cloud.ces.v1.Image.Builder, + com.google.cloud.ces.v1.ImageOrBuilder> + internalGetImageFieldBuilder() { + if (imageBuilder_ == null) { + if (!(inputTypeCase_ == 4)) { + inputType_ = com.google.cloud.ces.v1.Image.getDefaultInstance(); + } + imageBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Image, + com.google.cloud.ces.v1.Image.Builder, + com.google.cloud.ces.v1.ImageOrBuilder>( + (com.google.cloud.ces.v1.Image) inputType_, getParentForChildren(), isClean()); + inputType_ = null; + } + inputTypeCase_ = 4; + onChanged(); + return imageBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Blob, + com.google.cloud.ces.v1.Blob.Builder, + com.google.cloud.ces.v1.BlobOrBuilder> + blobBuilder_; + + /** + * + * + *
      +     * Optional. Blob data from the end user.
      +     * 
      + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the blob field is set. + */ + @java.lang.Override + public boolean hasBlob() { + return inputTypeCase_ == 7; + } + + /** + * + * + *
      +     * Optional. Blob data from the end user.
      +     * 
      + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The blob. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Blob getBlob() { + if (blobBuilder_ == null) { + if (inputTypeCase_ == 7) { + return (com.google.cloud.ces.v1.Blob) inputType_; + } + return com.google.cloud.ces.v1.Blob.getDefaultInstance(); + } else { + if (inputTypeCase_ == 7) { + return blobBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.Blob.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Blob data from the end user.
      +     * 
      + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setBlob(com.google.cloud.ces.v1.Blob value) { + if (blobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputType_ = value; + onChanged(); + } else { + blobBuilder_.setMessage(value); + } + inputTypeCase_ = 7; + return this; + } + + /** + * + * + *
      +     * Optional. Blob data from the end user.
      +     * 
      + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setBlob(com.google.cloud.ces.v1.Blob.Builder builderForValue) { + if (blobBuilder_ == null) { + inputType_ = builderForValue.build(); + onChanged(); + } else { + blobBuilder_.setMessage(builderForValue.build()); + } + inputTypeCase_ = 7; + return this; + } + + /** + * + * + *
      +     * Optional. Blob data from the end user.
      +     * 
      + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeBlob(com.google.cloud.ces.v1.Blob value) { + if (blobBuilder_ == null) { + if (inputTypeCase_ == 7 + && inputType_ != com.google.cloud.ces.v1.Blob.getDefaultInstance()) { + inputType_ = + com.google.cloud.ces.v1.Blob.newBuilder((com.google.cloud.ces.v1.Blob) inputType_) + .mergeFrom(value) + .buildPartial(); + } else { + inputType_ = value; + } + onChanged(); + } else { + if (inputTypeCase_ == 7) { + blobBuilder_.mergeFrom(value); + } else { + blobBuilder_.setMessage(value); + } + } + inputTypeCase_ = 7; + return this; + } + + /** + * + * + *
      +     * Optional. Blob data from the end user.
      +     * 
      + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearBlob() { + if (blobBuilder_ == null) { + if (inputTypeCase_ == 7) { + inputTypeCase_ = 0; + inputType_ = null; + onChanged(); + } + } else { + if (inputTypeCase_ == 7) { + inputTypeCase_ = 0; + inputType_ = null; + } + blobBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Blob data from the end user.
      +     * 
      + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.ces.v1.Blob.Builder getBlobBuilder() { + return internalGetBlobFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Blob data from the end user.
      +     * 
      + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.ces.v1.BlobOrBuilder getBlobOrBuilder() { + if ((inputTypeCase_ == 7) && (blobBuilder_ != null)) { + return blobBuilder_.getMessageOrBuilder(); + } else { + if (inputTypeCase_ == 7) { + return (com.google.cloud.ces.v1.Blob) inputType_; + } + return com.google.cloud.ces.v1.Blob.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Blob data from the end user.
      +     * 
      + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Blob, + com.google.cloud.ces.v1.Blob.Builder, + com.google.cloud.ces.v1.BlobOrBuilder> + internalGetBlobFieldBuilder() { + if (blobBuilder_ == null) { + if (!(inputTypeCase_ == 7)) { + inputType_ = com.google.cloud.ces.v1.Blob.getDefaultInstance(); + } + blobBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Blob, + com.google.cloud.ces.v1.Blob.Builder, + com.google.cloud.ces.v1.BlobOrBuilder>( + (com.google.cloud.ces.v1.Blob) inputType_, getParentForChildren(), isClean()); + inputType_ = null; + } + inputTypeCase_ = 7; + onChanged(); + return blobBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + variablesBuilder_; + + /** + * + * + *
      +     * Optional. Contextual variables for the session, keyed by name. Only
      +     * variables declared in the app will be used by the CES agent.
      +     *
      +     * Unrecognized variables will still be sent to the [Dialogflow
      +     * agent][Agent.RemoteDialogflowAgent] as additional session parameters.
      +     * 
      + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the variables field is set. + */ + @java.lang.Override + public boolean hasVariables() { + return inputTypeCase_ == 5; + } + + /** + * + * + *
      +     * Optional. Contextual variables for the session, keyed by name. Only
      +     * variables declared in the app will be used by the CES agent.
      +     *
      +     * Unrecognized variables will still be sent to the [Dialogflow
      +     * agent][Agent.RemoteDialogflowAgent] as additional session parameters.
      +     * 
      + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The variables. + */ + @java.lang.Override + public com.google.protobuf.Struct getVariables() { + if (variablesBuilder_ == null) { + if (inputTypeCase_ == 5) { + return (com.google.protobuf.Struct) inputType_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } else { + if (inputTypeCase_ == 5) { + return variablesBuilder_.getMessage(); + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Contextual variables for the session, keyed by name. Only
      +     * variables declared in the app will be used by the CES agent.
      +     *
      +     * Unrecognized variables will still be sent to the [Dialogflow
      +     * agent][Agent.RemoteDialogflowAgent] as additional session parameters.
      +     * 
      + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setVariables(com.google.protobuf.Struct value) { + if (variablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputType_ = value; + onChanged(); + } else { + variablesBuilder_.setMessage(value); + } + inputTypeCase_ = 5; + return this; + } + + /** + * + * + *
      +     * Optional. Contextual variables for the session, keyed by name. Only
      +     * variables declared in the app will be used by the CES agent.
      +     *
      +     * Unrecognized variables will still be sent to the [Dialogflow
      +     * agent][Agent.RemoteDialogflowAgent] as additional session parameters.
      +     * 
      + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setVariables(com.google.protobuf.Struct.Builder builderForValue) { + if (variablesBuilder_ == null) { + inputType_ = builderForValue.build(); + onChanged(); + } else { + variablesBuilder_.setMessage(builderForValue.build()); + } + inputTypeCase_ = 5; + return this; + } + + /** + * + * + *
      +     * Optional. Contextual variables for the session, keyed by name. Only
      +     * variables declared in the app will be used by the CES agent.
      +     *
      +     * Unrecognized variables will still be sent to the [Dialogflow
      +     * agent][Agent.RemoteDialogflowAgent] as additional session parameters.
      +     * 
      + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeVariables(com.google.protobuf.Struct value) { + if (variablesBuilder_ == null) { + if (inputTypeCase_ == 5 && inputType_ != com.google.protobuf.Struct.getDefaultInstance()) { + inputType_ = + com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) inputType_) + .mergeFrom(value) + .buildPartial(); + } else { + inputType_ = value; + } + onChanged(); + } else { + if (inputTypeCase_ == 5) { + variablesBuilder_.mergeFrom(value); + } else { + variablesBuilder_.setMessage(value); + } + } + inputTypeCase_ = 5; + return this; + } + + /** + * + * + *
      +     * Optional. Contextual variables for the session, keyed by name. Only
      +     * variables declared in the app will be used by the CES agent.
      +     *
      +     * Unrecognized variables will still be sent to the [Dialogflow
      +     * agent][Agent.RemoteDialogflowAgent] as additional session parameters.
      +     * 
      + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearVariables() { + if (variablesBuilder_ == null) { + if (inputTypeCase_ == 5) { + inputTypeCase_ = 0; + inputType_ = null; + onChanged(); + } + } else { + if (inputTypeCase_ == 5) { + inputTypeCase_ = 0; + inputType_ = null; + } + variablesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Contextual variables for the session, keyed by name. Only
      +     * variables declared in the app will be used by the CES agent.
      +     *
      +     * Unrecognized variables will still be sent to the [Dialogflow
      +     * agent][Agent.RemoteDialogflowAgent] as additional session parameters.
      +     * 
      + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Struct.Builder getVariablesBuilder() { + return internalGetVariablesFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Contextual variables for the session, keyed by name. Only
      +     * variables declared in the app will be used by the CES agent.
      +     *
      +     * Unrecognized variables will still be sent to the [Dialogflow
      +     * agent][Agent.RemoteDialogflowAgent] as additional session parameters.
      +     * 
      + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getVariablesOrBuilder() { + if ((inputTypeCase_ == 5) && (variablesBuilder_ != null)) { + return variablesBuilder_.getMessageOrBuilder(); + } else { + if (inputTypeCase_ == 5) { + return (com.google.protobuf.Struct) inputType_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Contextual variables for the session, keyed by name. Only
      +     * variables declared in the app will be used by the CES agent.
      +     *
      +     * Unrecognized variables will still be sent to the [Dialogflow
      +     * agent][Agent.RemoteDialogflowAgent] as additional session parameters.
      +     * 
      + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetVariablesFieldBuilder() { + if (variablesBuilder_ == null) { + if (!(inputTypeCase_ == 5)) { + inputType_ = com.google.protobuf.Struct.getDefaultInstance(); + } + variablesBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + (com.google.protobuf.Struct) inputType_, getParentForChildren(), isClean()); + inputType_ = null; + } + inputTypeCase_ = 5; + onChanged(); + return variablesBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Event, + com.google.cloud.ces.v1.Event.Builder, + com.google.cloud.ces.v1.EventOrBuilder> + eventBuilder_; + + /** + * + * + *
      +     * Optional. Event input.
      +     * 
      + * + * .google.cloud.ces.v1.Event event = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the event field is set. + */ + @java.lang.Override + public boolean hasEvent() { + return inputTypeCase_ == 9; + } + + /** + * + * + *
      +     * Optional. Event input.
      +     * 
      + * + * .google.cloud.ces.v1.Event event = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The event. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Event getEvent() { + if (eventBuilder_ == null) { + if (inputTypeCase_ == 9) { + return (com.google.cloud.ces.v1.Event) inputType_; + } + return com.google.cloud.ces.v1.Event.getDefaultInstance(); + } else { + if (inputTypeCase_ == 9) { + return eventBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.Event.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Event input.
      +     * 
      + * + * .google.cloud.ces.v1.Event event = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setEvent(com.google.cloud.ces.v1.Event value) { + if (eventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputType_ = value; + onChanged(); + } else { + eventBuilder_.setMessage(value); + } + inputTypeCase_ = 9; + return this; + } + + /** + * + * + *
      +     * Optional. Event input.
      +     * 
      + * + * .google.cloud.ces.v1.Event event = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setEvent(com.google.cloud.ces.v1.Event.Builder builderForValue) { + if (eventBuilder_ == null) { + inputType_ = builderForValue.build(); + onChanged(); + } else { + eventBuilder_.setMessage(builderForValue.build()); + } + inputTypeCase_ = 9; + return this; + } + + /** + * + * + *
      +     * Optional. Event input.
      +     * 
      + * + * .google.cloud.ces.v1.Event event = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeEvent(com.google.cloud.ces.v1.Event value) { + if (eventBuilder_ == null) { + if (inputTypeCase_ == 9 + && inputType_ != com.google.cloud.ces.v1.Event.getDefaultInstance()) { + inputType_ = + com.google.cloud.ces.v1.Event.newBuilder((com.google.cloud.ces.v1.Event) inputType_) + .mergeFrom(value) + .buildPartial(); + } else { + inputType_ = value; + } + onChanged(); + } else { + if (inputTypeCase_ == 9) { + eventBuilder_.mergeFrom(value); + } else { + eventBuilder_.setMessage(value); + } + } + inputTypeCase_ = 9; + return this; + } + + /** + * + * + *
      +     * Optional. Event input.
      +     * 
      + * + * .google.cloud.ces.v1.Event event = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearEvent() { + if (eventBuilder_ == null) { + if (inputTypeCase_ == 9) { + inputTypeCase_ = 0; + inputType_ = null; + onChanged(); + } + } else { + if (inputTypeCase_ == 9) { + inputTypeCase_ = 0; + inputType_ = null; + } + eventBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Event input.
      +     * 
      + * + * .google.cloud.ces.v1.Event event = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.ces.v1.Event.Builder getEventBuilder() { + return internalGetEventFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Event input.
      +     * 
      + * + * .google.cloud.ces.v1.Event event = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.ces.v1.EventOrBuilder getEventOrBuilder() { + if ((inputTypeCase_ == 9) && (eventBuilder_ != null)) { + return eventBuilder_.getMessageOrBuilder(); + } else { + if (inputTypeCase_ == 9) { + return (com.google.cloud.ces.v1.Event) inputType_; + } + return com.google.cloud.ces.v1.Event.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Event input.
      +     * 
      + * + * .google.cloud.ces.v1.Event event = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Event, + com.google.cloud.ces.v1.Event.Builder, + com.google.cloud.ces.v1.EventOrBuilder> + internalGetEventFieldBuilder() { + if (eventBuilder_ == null) { + if (!(inputTypeCase_ == 9)) { + inputType_ = com.google.cloud.ces.v1.Event.getDefaultInstance(); + } + eventBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Event, + com.google.cloud.ces.v1.Event.Builder, + com.google.cloud.ces.v1.EventOrBuilder>( + (com.google.cloud.ces.v1.Event) inputType_, getParentForChildren(), isClean()); + inputType_ = null; + } + inputTypeCase_ = 9; + onChanged(); + return eventBuilder_; + } + + private boolean willContinue_; + + /** + * + * + *
      +     * Optional. A flag to indicate if the current message is a fragment of a
      +     * larger input in the bidi streaming session. When `true`, the agent will
      +     * defer processing until a subsequent message with `will_continue` set to
      +     * `false` is received.
      +     *
      +     * Note: This flag has no effect on audio and DTMF inputs, which are always
      +     * processed in real-time.
      +     * 
      + * + * bool will_continue = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The willContinue. + */ + @java.lang.Override + public boolean getWillContinue() { + return willContinue_; + } + + /** + * + * + *
      +     * Optional. A flag to indicate if the current message is a fragment of a
      +     * larger input in the bidi streaming session. When `true`, the agent will
      +     * defer processing until a subsequent message with `will_continue` set to
      +     * `false` is received.
      +     *
      +     * Note: This flag has no effect on audio and DTMF inputs, which are always
      +     * processed in real-time.
      +     * 
      + * + * bool will_continue = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The willContinue to set. + * @return This builder for chaining. + */ + public Builder setWillContinue(boolean value) { + + willContinue_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. A flag to indicate if the current message is a fragment of a
      +     * larger input in the bidi streaming session. When `true`, the agent will
      +     * defer processing until a subsequent message with `will_continue` set to
      +     * `false` is received.
      +     *
      +     * Note: This flag has no effect on audio and DTMF inputs, which are always
      +     * processed in real-time.
      +     * 
      + * + * bool will_continue = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearWillContinue() { + bitField0_ = (bitField0_ & ~0x00000100); + willContinue_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.SessionInput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.SessionInput) + private static final com.google.cloud.ces.v1.SessionInput DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.SessionInput(); + } + + public static com.google.cloud.ces.v1.SessionInput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SessionInput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.SessionInput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionInputOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionInputOrBuilder.java new file mode 100644 index 000000000000..fc8113f2f89a --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionInputOrBuilder.java @@ -0,0 +1,356 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface SessionInputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.SessionInput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. Text data from the end user.
      +   * 
      + * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the text field is set. + */ + boolean hasText(); + + /** + * + * + *
      +   * Optional. Text data from the end user.
      +   * 
      + * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The text. + */ + java.lang.String getText(); + + /** + * + * + *
      +   * Optional. Text data from the end user.
      +   * 
      + * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); + + /** + * + * + *
      +   * Optional. DTMF digits from the end user.
      +   * 
      + * + * string dtmf = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the dtmf field is set. + */ + boolean hasDtmf(); + + /** + * + * + *
      +   * Optional. DTMF digits from the end user.
      +   * 
      + * + * string dtmf = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dtmf. + */ + java.lang.String getDtmf(); + + /** + * + * + *
      +   * Optional. DTMF digits from the end user.
      +   * 
      + * + * string dtmf = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dtmf. + */ + com.google.protobuf.ByteString getDtmfBytes(); + + /** + * + * + *
      +   * Optional. Audio data from the end user.
      +   * 
      + * + * bytes audio = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the audio field is set. + */ + boolean hasAudio(); + + /** + * + * + *
      +   * Optional. Audio data from the end user.
      +   * 
      + * + * bytes audio = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The audio. + */ + com.google.protobuf.ByteString getAudio(); + + /** + * + * + *
      +   * Optional. Execution results for the tool calls from the client.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolResponses tool_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolResponses field is set. + */ + boolean hasToolResponses(); + + /** + * + * + *
      +   * Optional. Execution results for the tool calls from the client.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolResponses tool_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolResponses. + */ + com.google.cloud.ces.v1.ToolResponses getToolResponses(); + + /** + * + * + *
      +   * Optional. Execution results for the tool calls from the client.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolResponses tool_responses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ToolResponsesOrBuilder getToolResponsesOrBuilder(); + + /** + * + * + *
      +   * Optional. Image data from the end user.
      +   * 
      + * + * .google.cloud.ces.v1.Image image = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the image field is set. + */ + boolean hasImage(); + + /** + * + * + *
      +   * Optional. Image data from the end user.
      +   * 
      + * + * .google.cloud.ces.v1.Image image = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The image. + */ + com.google.cloud.ces.v1.Image getImage(); + + /** + * + * + *
      +   * Optional. Image data from the end user.
      +   * 
      + * + * .google.cloud.ces.v1.Image image = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.ces.v1.ImageOrBuilder getImageOrBuilder(); + + /** + * + * + *
      +   * Optional. Blob data from the end user.
      +   * 
      + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the blob field is set. + */ + boolean hasBlob(); + + /** + * + * + *
      +   * Optional. Blob data from the end user.
      +   * 
      + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The blob. + */ + com.google.cloud.ces.v1.Blob getBlob(); + + /** + * + * + *
      +   * Optional. Blob data from the end user.
      +   * 
      + * + * .google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.ces.v1.BlobOrBuilder getBlobOrBuilder(); + + /** + * + * + *
      +   * Optional. Contextual variables for the session, keyed by name. Only
      +   * variables declared in the app will be used by the CES agent.
      +   *
      +   * Unrecognized variables will still be sent to the [Dialogflow
      +   * agent][Agent.RemoteDialogflowAgent] as additional session parameters.
      +   * 
      + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the variables field is set. + */ + boolean hasVariables(); + + /** + * + * + *
      +   * Optional. Contextual variables for the session, keyed by name. Only
      +   * variables declared in the app will be used by the CES agent.
      +   *
      +   * Unrecognized variables will still be sent to the [Dialogflow
      +   * agent][Agent.RemoteDialogflowAgent] as additional session parameters.
      +   * 
      + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The variables. + */ + com.google.protobuf.Struct getVariables(); + + /** + * + * + *
      +   * Optional. Contextual variables for the session, keyed by name. Only
      +   * variables declared in the app will be used by the CES agent.
      +   *
      +   * Unrecognized variables will still be sent to the [Dialogflow
      +   * agent][Agent.RemoteDialogflowAgent] as additional session parameters.
      +   * 
      + * + * .google.protobuf.Struct variables = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.StructOrBuilder getVariablesOrBuilder(); + + /** + * + * + *
      +   * Optional. Event input.
      +   * 
      + * + * .google.cloud.ces.v1.Event event = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the event field is set. + */ + boolean hasEvent(); + + /** + * + * + *
      +   * Optional. Event input.
      +   * 
      + * + * .google.cloud.ces.v1.Event event = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The event. + */ + com.google.cloud.ces.v1.Event getEvent(); + + /** + * + * + *
      +   * Optional. Event input.
      +   * 
      + * + * .google.cloud.ces.v1.Event event = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.ces.v1.EventOrBuilder getEventOrBuilder(); + + /** + * + * + *
      +   * Optional. A flag to indicate if the current message is a fragment of a
      +   * larger input in the bidi streaming session. When `true`, the agent will
      +   * defer processing until a subsequent message with `will_continue` set to
      +   * `false` is received.
      +   *
      +   * Note: This flag has no effect on audio and DTMF inputs, which are always
      +   * processed in real-time.
      +   * 
      + * + * bool will_continue = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The willContinue. + */ + boolean getWillContinue(); + + com.google.cloud.ces.v1.SessionInput.InputTypeCase getInputTypeCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionName.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionName.java new file mode 100644 index 000000000000..a78827b56d3f --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionName.java @@ -0,0 +1,257 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class SessionName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_APP_SESSION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/apps/{app}/sessions/{session}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String app; + private final String session; + + @Deprecated + protected SessionName() { + project = null; + location = null; + app = null; + session = null; + } + + private SessionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + app = Preconditions.checkNotNull(builder.getApp()); + session = Preconditions.checkNotNull(builder.getSession()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getApp() { + return app; + } + + public String getSession() { + return session; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SessionName of(String project, String location, String app, String session) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setApp(app) + .setSession(session) + .build(); + } + + public static String format(String project, String location, String app, String session) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setApp(app) + .setSession(session) + .build() + .toString(); + } + + public static SessionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_APP_SESSION.validatedMatch( + formattedString, "SessionName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("app"), + matchMap.get("session")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (SessionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_APP_SESSION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (app != null) { + fieldMapBuilder.put("app", app); + } + if (session != null) { + fieldMapBuilder.put("session", session); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_APP_SESSION.instantiate( + "project", project, "location", location, "app", app, "session", session); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + SessionName that = ((SessionName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.app, that.app) + && Objects.equals(this.session, that.session); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(app); + h *= 1000003; + h ^= Objects.hashCode(session); + return h; + } + + /** Builder for projects/{project}/locations/{location}/apps/{app}/sessions/{session}. */ + public static class Builder { + private String project; + private String location; + private String app; + private String session; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getApp() { + return app; + } + + public String getSession() { + return session; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setApp(String app) { + this.app = app; + return this; + } + + public Builder setSession(String session) { + this.session = session; + return this; + } + + private Builder(SessionName sessionName) { + this.project = sessionName.project; + this.location = sessionName.location; + this.app = sessionName.app; + this.session = sessionName.session; + } + + public SessionName build() { + return new SessionName(this); + } + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionOutput.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionOutput.java new file mode 100644 index 000000000000..1270aa5867a8 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionOutput.java @@ -0,0 +1,4272 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Output for the session.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.SessionOutput} + */ +@com.google.protobuf.Generated +public final class SessionOutput extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.SessionOutput) + SessionOutputOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SessionOutput"); + } + + // Use SessionOutput.newBuilder() to construct. + private SessionOutput(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SessionOutput() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_SessionOutput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_SessionOutput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.SessionOutput.class, + com.google.cloud.ces.v1.SessionOutput.Builder.class); + } + + public interface DiagnosticInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.SessionOutput.DiagnosticInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * List of the messages that happened during the processing.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 1; + */ + java.util.List getMessagesList(); + + /** + * + * + *
      +     * List of the messages that happened during the processing.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 1; + */ + com.google.cloud.ces.v1.Message getMessages(int index); + + /** + * + * + *
      +     * List of the messages that happened during the processing.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 1; + */ + int getMessagesCount(); + + /** + * + * + *
      +     * List of the messages that happened during the processing.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 1; + */ + java.util.List getMessagesOrBuilderList(); + + /** + * + * + *
      +     * List of the messages that happened during the processing.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 1; + */ + com.google.cloud.ces.v1.MessageOrBuilder getMessagesOrBuilder(int index); + + /** + * + * + *
      +     * A trace of the entire request processing, represented as a root span.
      +     * This span can contain nested child spans for specific operations.
      +     * 
      + * + * .google.cloud.ces.v1.Span root_span = 3; + * + * @return Whether the rootSpan field is set. + */ + boolean hasRootSpan(); + + /** + * + * + *
      +     * A trace of the entire request processing, represented as a root span.
      +     * This span can contain nested child spans for specific operations.
      +     * 
      + * + * .google.cloud.ces.v1.Span root_span = 3; + * + * @return The rootSpan. + */ + com.google.cloud.ces.v1.Span getRootSpan(); + + /** + * + * + *
      +     * A trace of the entire request processing, represented as a root span.
      +     * This span can contain nested child spans for specific operations.
      +     * 
      + * + * .google.cloud.ces.v1.Span root_span = 3; + */ + com.google.cloud.ces.v1.SpanOrBuilder getRootSpanOrBuilder(); + } + + /** + * + * + *
      +   * Contains execution details during the processing.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.SessionOutput.DiagnosticInfo} + */ + public static final class DiagnosticInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.SessionOutput.DiagnosticInfo) + DiagnosticInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DiagnosticInfo"); + } + + // Use DiagnosticInfo.newBuilder() to construct. + private DiagnosticInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DiagnosticInfo() { + messages_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_SessionOutput_DiagnosticInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_SessionOutput_DiagnosticInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo.class, + com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo.Builder.class); + } + + private int bitField0_; + public static final int MESSAGES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List messages_; + + /** + * + * + *
      +     * List of the messages that happened during the processing.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 1; + */ + @java.lang.Override + public java.util.List getMessagesList() { + return messages_; + } + + /** + * + * + *
      +     * List of the messages that happened during the processing.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 1; + */ + @java.lang.Override + public java.util.List + getMessagesOrBuilderList() { + return messages_; + } + + /** + * + * + *
      +     * List of the messages that happened during the processing.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 1; + */ + @java.lang.Override + public int getMessagesCount() { + return messages_.size(); + } + + /** + * + * + *
      +     * List of the messages that happened during the processing.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 1; + */ + @java.lang.Override + public com.google.cloud.ces.v1.Message getMessages(int index) { + return messages_.get(index); + } + + /** + * + * + *
      +     * List of the messages that happened during the processing.
      +     * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 1; + */ + @java.lang.Override + public com.google.cloud.ces.v1.MessageOrBuilder getMessagesOrBuilder(int index) { + return messages_.get(index); + } + + public static final int ROOT_SPAN_FIELD_NUMBER = 3; + private com.google.cloud.ces.v1.Span rootSpan_; + + /** + * + * + *
      +     * A trace of the entire request processing, represented as a root span.
      +     * This span can contain nested child spans for specific operations.
      +     * 
      + * + * .google.cloud.ces.v1.Span root_span = 3; + * + * @return Whether the rootSpan field is set. + */ + @java.lang.Override + public boolean hasRootSpan() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * A trace of the entire request processing, represented as a root span.
      +     * This span can contain nested child spans for specific operations.
      +     * 
      + * + * .google.cloud.ces.v1.Span root_span = 3; + * + * @return The rootSpan. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Span getRootSpan() { + return rootSpan_ == null ? com.google.cloud.ces.v1.Span.getDefaultInstance() : rootSpan_; + } + + /** + * + * + *
      +     * A trace of the entire request processing, represented as a root span.
      +     * This span can contain nested child spans for specific operations.
      +     * 
      + * + * .google.cloud.ces.v1.Span root_span = 3; + */ + @java.lang.Override + public com.google.cloud.ces.v1.SpanOrBuilder getRootSpanOrBuilder() { + return rootSpan_ == null ? com.google.cloud.ces.v1.Span.getDefaultInstance() : rootSpan_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < messages_.size(); i++) { + output.writeMessage(1, messages_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getRootSpan()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < messages_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, messages_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRootSpan()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo other = + (com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo) obj; + + if (!getMessagesList().equals(other.getMessagesList())) return false; + if (hasRootSpan() != other.hasRootSpan()) return false; + if (hasRootSpan()) { + if (!getRootSpan().equals(other.getRootSpan())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getMessagesCount() > 0) { + hash = (37 * hash) + MESSAGES_FIELD_NUMBER; + hash = (53 * hash) + getMessagesList().hashCode(); + } + if (hasRootSpan()) { + hash = (37 * hash) + ROOT_SPAN_FIELD_NUMBER; + hash = (53 * hash) + getRootSpan().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Contains execution details during the processing.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.SessionOutput.DiagnosticInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.SessionOutput.DiagnosticInfo) + com.google.cloud.ces.v1.SessionOutput.DiagnosticInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_SessionOutput_DiagnosticInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_SessionOutput_DiagnosticInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo.class, + com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMessagesFieldBuilder(); + internalGetRootSpanFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (messagesBuilder_ == null) { + messages_ = java.util.Collections.emptyList(); + } else { + messages_ = null; + messagesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + rootSpan_ = null; + if (rootSpanBuilder_ != null) { + rootSpanBuilder_.dispose(); + rootSpanBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_SessionOutput_DiagnosticInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo getDefaultInstanceForType() { + return com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo build() { + com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo buildPartial() { + com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo result = + new com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo result) { + if (messagesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + messages_ = java.util.Collections.unmodifiableList(messages_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.messages_ = messages_; + } else { + result.messages_ = messagesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rootSpan_ = rootSpanBuilder_ == null ? rootSpan_ : rootSpanBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo) { + return mergeFrom((com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo other) { + if (other == com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo.getDefaultInstance()) + return this; + if (messagesBuilder_ == null) { + if (!other.messages_.isEmpty()) { + if (messages_.isEmpty()) { + messages_ = other.messages_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMessagesIsMutable(); + messages_.addAll(other.messages_); + } + onChanged(); + } + } else { + if (!other.messages_.isEmpty()) { + if (messagesBuilder_.isEmpty()) { + messagesBuilder_.dispose(); + messagesBuilder_ = null; + messages_ = other.messages_; + bitField0_ = (bitField0_ & ~0x00000001); + messagesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMessagesFieldBuilder() + : null; + } else { + messagesBuilder_.addAllMessages(other.messages_); + } + } + } + if (other.hasRootSpan()) { + mergeRootSpan(other.getRootSpan()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.ces.v1.Message m = + input.readMessage( + com.google.cloud.ces.v1.Message.parser(), extensionRegistry); + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(m); + } else { + messagesBuilder_.addMessage(m); + } + break; + } // case 10 + case 26: + { + input.readMessage( + internalGetRootSpanFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List messages_ = + java.util.Collections.emptyList(); + + private void ensureMessagesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + messages_ = new java.util.ArrayList(messages_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Message, + com.google.cloud.ces.v1.Message.Builder, + com.google.cloud.ces.v1.MessageOrBuilder> + messagesBuilder_; + + /** + * + * + *
      +       * List of the messages that happened during the processing.
      +       * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 1; + */ + public java.util.List getMessagesList() { + if (messagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(messages_); + } else { + return messagesBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +       * List of the messages that happened during the processing.
      +       * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 1; + */ + public int getMessagesCount() { + if (messagesBuilder_ == null) { + return messages_.size(); + } else { + return messagesBuilder_.getCount(); + } + } + + /** + * + * + *
      +       * List of the messages that happened during the processing.
      +       * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 1; + */ + public com.google.cloud.ces.v1.Message getMessages(int index) { + if (messagesBuilder_ == null) { + return messages_.get(index); + } else { + return messagesBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +       * List of the messages that happened during the processing.
      +       * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 1; + */ + public Builder setMessages(int index, com.google.cloud.ces.v1.Message value) { + if (messagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.set(index, value); + onChanged(); + } else { + messagesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +       * List of the messages that happened during the processing.
      +       * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 1; + */ + public Builder setMessages( + int index, com.google.cloud.ces.v1.Message.Builder builderForValue) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.set(index, builderForValue.build()); + onChanged(); + } else { + messagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +       * List of the messages that happened during the processing.
      +       * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 1; + */ + public Builder addMessages(com.google.cloud.ces.v1.Message value) { + if (messagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.add(value); + onChanged(); + } else { + messagesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +       * List of the messages that happened during the processing.
      +       * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 1; + */ + public Builder addMessages(int index, com.google.cloud.ces.v1.Message value) { + if (messagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.add(index, value); + onChanged(); + } else { + messagesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +       * List of the messages that happened during the processing.
      +       * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 1; + */ + public Builder addMessages(com.google.cloud.ces.v1.Message.Builder builderForValue) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(builderForValue.build()); + onChanged(); + } else { + messagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +       * List of the messages that happened during the processing.
      +       * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 1; + */ + public Builder addMessages( + int index, com.google.cloud.ces.v1.Message.Builder builderForValue) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(index, builderForValue.build()); + onChanged(); + } else { + messagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +       * List of the messages that happened during the processing.
      +       * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 1; + */ + public Builder addAllMessages( + java.lang.Iterable values) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messages_); + onChanged(); + } else { + messagesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +       * List of the messages that happened during the processing.
      +       * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 1; + */ + public Builder clearMessages() { + if (messagesBuilder_ == null) { + messages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + messagesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +       * List of the messages that happened during the processing.
      +       * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 1; + */ + public Builder removeMessages(int index) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.remove(index); + onChanged(); + } else { + messagesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +       * List of the messages that happened during the processing.
      +       * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 1; + */ + public com.google.cloud.ces.v1.Message.Builder getMessagesBuilder(int index) { + return internalGetMessagesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +       * List of the messages that happened during the processing.
      +       * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 1; + */ + public com.google.cloud.ces.v1.MessageOrBuilder getMessagesOrBuilder(int index) { + if (messagesBuilder_ == null) { + return messages_.get(index); + } else { + return messagesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +       * List of the messages that happened during the processing.
      +       * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 1; + */ + public java.util.List + getMessagesOrBuilderList() { + if (messagesBuilder_ != null) { + return messagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(messages_); + } + } + + /** + * + * + *
      +       * List of the messages that happened during the processing.
      +       * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 1; + */ + public com.google.cloud.ces.v1.Message.Builder addMessagesBuilder() { + return internalGetMessagesFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.Message.getDefaultInstance()); + } + + /** + * + * + *
      +       * List of the messages that happened during the processing.
      +       * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 1; + */ + public com.google.cloud.ces.v1.Message.Builder addMessagesBuilder(int index) { + return internalGetMessagesFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.Message.getDefaultInstance()); + } + + /** + * + * + *
      +       * List of the messages that happened during the processing.
      +       * 
      + * + * repeated .google.cloud.ces.v1.Message messages = 1; + */ + public java.util.List getMessagesBuilderList() { + return internalGetMessagesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Message, + com.google.cloud.ces.v1.Message.Builder, + com.google.cloud.ces.v1.MessageOrBuilder> + internalGetMessagesFieldBuilder() { + if (messagesBuilder_ == null) { + messagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Message, + com.google.cloud.ces.v1.Message.Builder, + com.google.cloud.ces.v1.MessageOrBuilder>( + messages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + messages_ = null; + } + return messagesBuilder_; + } + + private com.google.cloud.ces.v1.Span rootSpan_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Span, + com.google.cloud.ces.v1.Span.Builder, + com.google.cloud.ces.v1.SpanOrBuilder> + rootSpanBuilder_; + + /** + * + * + *
      +       * A trace of the entire request processing, represented as a root span.
      +       * This span can contain nested child spans for specific operations.
      +       * 
      + * + * .google.cloud.ces.v1.Span root_span = 3; + * + * @return Whether the rootSpan field is set. + */ + public boolean hasRootSpan() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +       * A trace of the entire request processing, represented as a root span.
      +       * This span can contain nested child spans for specific operations.
      +       * 
      + * + * .google.cloud.ces.v1.Span root_span = 3; + * + * @return The rootSpan. + */ + public com.google.cloud.ces.v1.Span getRootSpan() { + if (rootSpanBuilder_ == null) { + return rootSpan_ == null ? com.google.cloud.ces.v1.Span.getDefaultInstance() : rootSpan_; + } else { + return rootSpanBuilder_.getMessage(); + } + } + + /** + * + * + *
      +       * A trace of the entire request processing, represented as a root span.
      +       * This span can contain nested child spans for specific operations.
      +       * 
      + * + * .google.cloud.ces.v1.Span root_span = 3; + */ + public Builder setRootSpan(com.google.cloud.ces.v1.Span value) { + if (rootSpanBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rootSpan_ = value; + } else { + rootSpanBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * A trace of the entire request processing, represented as a root span.
      +       * This span can contain nested child spans for specific operations.
      +       * 
      + * + * .google.cloud.ces.v1.Span root_span = 3; + */ + public Builder setRootSpan(com.google.cloud.ces.v1.Span.Builder builderForValue) { + if (rootSpanBuilder_ == null) { + rootSpan_ = builderForValue.build(); + } else { + rootSpanBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * A trace of the entire request processing, represented as a root span.
      +       * This span can contain nested child spans for specific operations.
      +       * 
      + * + * .google.cloud.ces.v1.Span root_span = 3; + */ + public Builder mergeRootSpan(com.google.cloud.ces.v1.Span value) { + if (rootSpanBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && rootSpan_ != null + && rootSpan_ != com.google.cloud.ces.v1.Span.getDefaultInstance()) { + getRootSpanBuilder().mergeFrom(value); + } else { + rootSpan_ = value; + } + } else { + rootSpanBuilder_.mergeFrom(value); + } + if (rootSpan_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +       * A trace of the entire request processing, represented as a root span.
      +       * This span can contain nested child spans for specific operations.
      +       * 
      + * + * .google.cloud.ces.v1.Span root_span = 3; + */ + public Builder clearRootSpan() { + bitField0_ = (bitField0_ & ~0x00000002); + rootSpan_ = null; + if (rootSpanBuilder_ != null) { + rootSpanBuilder_.dispose(); + rootSpanBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +       * A trace of the entire request processing, represented as a root span.
      +       * This span can contain nested child spans for specific operations.
      +       * 
      + * + * .google.cloud.ces.v1.Span root_span = 3; + */ + public com.google.cloud.ces.v1.Span.Builder getRootSpanBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetRootSpanFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * A trace of the entire request processing, represented as a root span.
      +       * This span can contain nested child spans for specific operations.
      +       * 
      + * + * .google.cloud.ces.v1.Span root_span = 3; + */ + public com.google.cloud.ces.v1.SpanOrBuilder getRootSpanOrBuilder() { + if (rootSpanBuilder_ != null) { + return rootSpanBuilder_.getMessageOrBuilder(); + } else { + return rootSpan_ == null ? com.google.cloud.ces.v1.Span.getDefaultInstance() : rootSpan_; + } + } + + /** + * + * + *
      +       * A trace of the entire request processing, represented as a root span.
      +       * This span can contain nested child spans for specific operations.
      +       * 
      + * + * .google.cloud.ces.v1.Span root_span = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Span, + com.google.cloud.ces.v1.Span.Builder, + com.google.cloud.ces.v1.SpanOrBuilder> + internalGetRootSpanFieldBuilder() { + if (rootSpanBuilder_ == null) { + rootSpanBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Span, + com.google.cloud.ces.v1.Span.Builder, + com.google.cloud.ces.v1.SpanOrBuilder>( + getRootSpan(), getParentForChildren(), isClean()); + rootSpan_ = null; + } + return rootSpanBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.SessionOutput.DiagnosticInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.SessionOutput.DiagnosticInfo) + private static final com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo(); + } + + public static com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiagnosticInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int outputTypeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object outputType_; + + public enum OutputTypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TEXT(1), + AUDIO(2), + TOOL_CALLS(3), + CITATIONS(8), + GOOGLE_SEARCH_SUGGESTIONS(10), + END_SESSION(9), + PAYLOAD(11), + OUTPUTTYPE_NOT_SET(0); + private final int value; + + private OutputTypeCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OutputTypeCase valueOf(int value) { + return forNumber(value); + } + + public static OutputTypeCase forNumber(int value) { + switch (value) { + case 1: + return TEXT; + case 2: + return AUDIO; + case 3: + return TOOL_CALLS; + case 8: + return CITATIONS; + case 10: + return GOOGLE_SEARCH_SUGGESTIONS; + case 9: + return END_SESSION; + case 11: + return PAYLOAD; + case 0: + return OUTPUTTYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OutputTypeCase getOutputTypeCase() { + return OutputTypeCase.forNumber(outputTypeCase_); + } + + public static final int TEXT_FIELD_NUMBER = 1; + + /** + * + * + *
      +   * Output text from the CES agent.
      +   * 
      + * + * string text = 1; + * + * @return Whether the text field is set. + */ + public boolean hasText() { + return outputTypeCase_ == 1; + } + + /** + * + * + *
      +   * Output text from the CES agent.
      +   * 
      + * + * string text = 1; + * + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = ""; + if (outputTypeCase_ == 1) { + ref = outputType_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputTypeCase_ == 1) { + outputType_ = s; + } + return s; + } + } + + /** + * + * + *
      +   * Output text from the CES agent.
      +   * 
      + * + * string text = 1; + * + * @return The bytes for text. + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = ""; + if (outputTypeCase_ == 1) { + ref = outputType_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (outputTypeCase_ == 1) { + outputType_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUDIO_FIELD_NUMBER = 2; + + /** + * + * + *
      +   * Output audio from the CES agent.
      +   * 
      + * + * bytes audio = 2; + * + * @return Whether the audio field is set. + */ + @java.lang.Override + public boolean hasAudio() { + return outputTypeCase_ == 2; + } + + /** + * + * + *
      +   * Output audio from the CES agent.
      +   * 
      + * + * bytes audio = 2; + * + * @return The audio. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAudio() { + if (outputTypeCase_ == 2) { + return (com.google.protobuf.ByteString) outputType_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + public static final int TOOL_CALLS_FIELD_NUMBER = 3; + + /** + * + * + *
      +   * Request for the client to execute the tools.
      +   * 
      + * + * .google.cloud.ces.v1.ToolCalls tool_calls = 3; + * + * @return Whether the toolCalls field is set. + */ + @java.lang.Override + public boolean hasToolCalls() { + return outputTypeCase_ == 3; + } + + /** + * + * + *
      +   * Request for the client to execute the tools.
      +   * 
      + * + * .google.cloud.ces.v1.ToolCalls tool_calls = 3; + * + * @return The toolCalls. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolCalls getToolCalls() { + if (outputTypeCase_ == 3) { + return (com.google.cloud.ces.v1.ToolCalls) outputType_; + } + return com.google.cloud.ces.v1.ToolCalls.getDefaultInstance(); + } + + /** + * + * + *
      +   * Request for the client to execute the tools.
      +   * 
      + * + * .google.cloud.ces.v1.ToolCalls tool_calls = 3; + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolCallsOrBuilder getToolCallsOrBuilder() { + if (outputTypeCase_ == 3) { + return (com.google.cloud.ces.v1.ToolCalls) outputType_; + } + return com.google.cloud.ces.v1.ToolCalls.getDefaultInstance(); + } + + public static final int CITATIONS_FIELD_NUMBER = 8; + + /** + * + * + *
      +   * Citations that provide the source information for the agent's generated
      +   * text.
      +   * 
      + * + * .google.cloud.ces.v1.Citations citations = 8; + * + * @return Whether the citations field is set. + */ + @java.lang.Override + public boolean hasCitations() { + return outputTypeCase_ == 8; + } + + /** + * + * + *
      +   * Citations that provide the source information for the agent's generated
      +   * text.
      +   * 
      + * + * .google.cloud.ces.v1.Citations citations = 8; + * + * @return The citations. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Citations getCitations() { + if (outputTypeCase_ == 8) { + return (com.google.cloud.ces.v1.Citations) outputType_; + } + return com.google.cloud.ces.v1.Citations.getDefaultInstance(); + } + + /** + * + * + *
      +   * Citations that provide the source information for the agent's generated
      +   * text.
      +   * 
      + * + * .google.cloud.ces.v1.Citations citations = 8; + */ + @java.lang.Override + public com.google.cloud.ces.v1.CitationsOrBuilder getCitationsOrBuilder() { + if (outputTypeCase_ == 8) { + return (com.google.cloud.ces.v1.Citations) outputType_; + } + return com.google.cloud.ces.v1.Citations.getDefaultInstance(); + } + + public static final int GOOGLE_SEARCH_SUGGESTIONS_FIELD_NUMBER = 10; + + /** + * + * + *
      +   * The suggestions returned from Google Search as a result of invoking the
      +   * [GoogleSearchTool][google.cloud.ces.v1.GoogleSearchTool].
      +   * 
      + * + * .google.cloud.ces.v1.GoogleSearchSuggestions google_search_suggestions = 10; + * + * @return Whether the googleSearchSuggestions field is set. + */ + @java.lang.Override + public boolean hasGoogleSearchSuggestions() { + return outputTypeCase_ == 10; + } + + /** + * + * + *
      +   * The suggestions returned from Google Search as a result of invoking the
      +   * [GoogleSearchTool][google.cloud.ces.v1.GoogleSearchTool].
      +   * 
      + * + * .google.cloud.ces.v1.GoogleSearchSuggestions google_search_suggestions = 10; + * + * @return The googleSearchSuggestions. + */ + @java.lang.Override + public com.google.cloud.ces.v1.GoogleSearchSuggestions getGoogleSearchSuggestions() { + if (outputTypeCase_ == 10) { + return (com.google.cloud.ces.v1.GoogleSearchSuggestions) outputType_; + } + return com.google.cloud.ces.v1.GoogleSearchSuggestions.getDefaultInstance(); + } + + /** + * + * + *
      +   * The suggestions returned from Google Search as a result of invoking the
      +   * [GoogleSearchTool][google.cloud.ces.v1.GoogleSearchTool].
      +   * 
      + * + * .google.cloud.ces.v1.GoogleSearchSuggestions google_search_suggestions = 10; + */ + @java.lang.Override + public com.google.cloud.ces.v1.GoogleSearchSuggestionsOrBuilder + getGoogleSearchSuggestionsOrBuilder() { + if (outputTypeCase_ == 10) { + return (com.google.cloud.ces.v1.GoogleSearchSuggestions) outputType_; + } + return com.google.cloud.ces.v1.GoogleSearchSuggestions.getDefaultInstance(); + } + + public static final int END_SESSION_FIELD_NUMBER = 9; + + /** + * + * + *
      +   * Indicates the session has ended.
      +   * 
      + * + * .google.cloud.ces.v1.EndSession end_session = 9; + * + * @return Whether the endSession field is set. + */ + @java.lang.Override + public boolean hasEndSession() { + return outputTypeCase_ == 9; + } + + /** + * + * + *
      +   * Indicates the session has ended.
      +   * 
      + * + * .google.cloud.ces.v1.EndSession end_session = 9; + * + * @return The endSession. + */ + @java.lang.Override + public com.google.cloud.ces.v1.EndSession getEndSession() { + if (outputTypeCase_ == 9) { + return (com.google.cloud.ces.v1.EndSession) outputType_; + } + return com.google.cloud.ces.v1.EndSession.getDefaultInstance(); + } + + /** + * + * + *
      +   * Indicates the session has ended.
      +   * 
      + * + * .google.cloud.ces.v1.EndSession end_session = 9; + */ + @java.lang.Override + public com.google.cloud.ces.v1.EndSessionOrBuilder getEndSessionOrBuilder() { + if (outputTypeCase_ == 9) { + return (com.google.cloud.ces.v1.EndSession) outputType_; + } + return com.google.cloud.ces.v1.EndSession.getDefaultInstance(); + } + + public static final int PAYLOAD_FIELD_NUMBER = 11; + + /** + * + * + *
      +   * Custom payload with structured output from the CES agent.
      +   * 
      + * + * .google.protobuf.Struct payload = 11; + * + * @return Whether the payload field is set. + */ + @java.lang.Override + public boolean hasPayload() { + return outputTypeCase_ == 11; + } + + /** + * + * + *
      +   * Custom payload with structured output from the CES agent.
      +   * 
      + * + * .google.protobuf.Struct payload = 11; + * + * @return The payload. + */ + @java.lang.Override + public com.google.protobuf.Struct getPayload() { + if (outputTypeCase_ == 11) { + return (com.google.protobuf.Struct) outputType_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + /** + * + * + *
      +   * Custom payload with structured output from the CES agent.
      +   * 
      + * + * .google.protobuf.Struct payload = 11; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { + if (outputTypeCase_ == 11) { + return (com.google.protobuf.Struct) outputType_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + public static final int TURN_INDEX_FIELD_NUMBER = 6; + private int turnIndex_ = 0; + + /** + * + * + *
      +   * Indicates the sequential order of conversation turn to which this output
      +   * belongs to, starting from 1.
      +   * 
      + * + * int32 turn_index = 6; + * + * @return The turnIndex. + */ + @java.lang.Override + public int getTurnIndex() { + return turnIndex_; + } + + public static final int TURN_COMPLETED_FIELD_NUMBER = 4; + private boolean turnCompleted_ = false; + + /** + * + * + *
      +   * If true, the CES agent has detected the end of the current conversation
      +   * turn and will provide no further output for this turn.
      +   * 
      + * + * bool turn_completed = 4; + * + * @return The turnCompleted. + */ + @java.lang.Override + public boolean getTurnCompleted() { + return turnCompleted_; + } + + public static final int DIAGNOSTIC_INFO_FIELD_NUMBER = 7; + private com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo diagnosticInfo_; + + /** + * + * + *
      +   * Optional. Diagnostic information contains execution details during the
      +   * processing of the input. Only populated in the last SessionOutput (with
      +   * `turn_completed=true`) for each turn.
      +   * 
      + * + * + * .google.cloud.ces.v1.SessionOutput.DiagnosticInfo diagnostic_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the diagnosticInfo field is set. + */ + @java.lang.Override + public boolean hasDiagnosticInfo() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Optional. Diagnostic information contains execution details during the
      +   * processing of the input. Only populated in the last SessionOutput (with
      +   * `turn_completed=true`) for each turn.
      +   * 
      + * + * + * .google.cloud.ces.v1.SessionOutput.DiagnosticInfo diagnostic_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The diagnosticInfo. + */ + @java.lang.Override + public com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo getDiagnosticInfo() { + return diagnosticInfo_ == null + ? com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo.getDefaultInstance() + : diagnosticInfo_; + } + + /** + * + * + *
      +   * Optional. Diagnostic information contains execution details during the
      +   * processing of the input. Only populated in the last SessionOutput (with
      +   * `turn_completed=true`) for each turn.
      +   * 
      + * + * + * .google.cloud.ces.v1.SessionOutput.DiagnosticInfo diagnostic_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.SessionOutput.DiagnosticInfoOrBuilder + getDiagnosticInfoOrBuilder() { + return diagnosticInfo_ == null + ? com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo.getDefaultInstance() + : diagnosticInfo_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (outputTypeCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, outputType_); + } + if (outputTypeCase_ == 2) { + output.writeBytes(2, (com.google.protobuf.ByteString) outputType_); + } + if (outputTypeCase_ == 3) { + output.writeMessage(3, (com.google.cloud.ces.v1.ToolCalls) outputType_); + } + if (turnCompleted_ != false) { + output.writeBool(4, turnCompleted_); + } + if (turnIndex_ != 0) { + output.writeInt32(6, turnIndex_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getDiagnosticInfo()); + } + if (outputTypeCase_ == 8) { + output.writeMessage(8, (com.google.cloud.ces.v1.Citations) outputType_); + } + if (outputTypeCase_ == 9) { + output.writeMessage(9, (com.google.cloud.ces.v1.EndSession) outputType_); + } + if (outputTypeCase_ == 10) { + output.writeMessage(10, (com.google.cloud.ces.v1.GoogleSearchSuggestions) outputType_); + } + if (outputTypeCase_ == 11) { + output.writeMessage(11, (com.google.protobuf.Struct) outputType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (outputTypeCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, outputType_); + } + if (outputTypeCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 2, (com.google.protobuf.ByteString) outputType_); + } + if (outputTypeCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.ces.v1.ToolCalls) outputType_); + } + if (turnCompleted_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, turnCompleted_); + } + if (turnIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, turnIndex_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDiagnosticInfo()); + } + if (outputTypeCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.ces.v1.Citations) outputType_); + } + if (outputTypeCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.ces.v1.EndSession) outputType_); + } + if (outputTypeCase_ == 10) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, (com.google.cloud.ces.v1.GoogleSearchSuggestions) outputType_); + } + if (outputTypeCase_ == 11) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, (com.google.protobuf.Struct) outputType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.SessionOutput)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.SessionOutput other = (com.google.cloud.ces.v1.SessionOutput) obj; + + if (getTurnIndex() != other.getTurnIndex()) return false; + if (getTurnCompleted() != other.getTurnCompleted()) return false; + if (hasDiagnosticInfo() != other.hasDiagnosticInfo()) return false; + if (hasDiagnosticInfo()) { + if (!getDiagnosticInfo().equals(other.getDiagnosticInfo())) return false; + } + if (!getOutputTypeCase().equals(other.getOutputTypeCase())) return false; + switch (outputTypeCase_) { + case 1: + if (!getText().equals(other.getText())) return false; + break; + case 2: + if (!getAudio().equals(other.getAudio())) return false; + break; + case 3: + if (!getToolCalls().equals(other.getToolCalls())) return false; + break; + case 8: + if (!getCitations().equals(other.getCitations())) return false; + break; + case 10: + if (!getGoogleSearchSuggestions().equals(other.getGoogleSearchSuggestions())) return false; + break; + case 9: + if (!getEndSession().equals(other.getEndSession())) return false; + break; + case 11: + if (!getPayload().equals(other.getPayload())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TURN_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getTurnIndex(); + hash = (37 * hash) + TURN_COMPLETED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTurnCompleted()); + if (hasDiagnosticInfo()) { + hash = (37 * hash) + DIAGNOSTIC_INFO_FIELD_NUMBER; + hash = (53 * hash) + getDiagnosticInfo().hashCode(); + } + switch (outputTypeCase_) { + case 1: + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + break; + case 2: + hash = (37 * hash) + AUDIO_FIELD_NUMBER; + hash = (53 * hash) + getAudio().hashCode(); + break; + case 3: + hash = (37 * hash) + TOOL_CALLS_FIELD_NUMBER; + hash = (53 * hash) + getToolCalls().hashCode(); + break; + case 8: + hash = (37 * hash) + CITATIONS_FIELD_NUMBER; + hash = (53 * hash) + getCitations().hashCode(); + break; + case 10: + hash = (37 * hash) + GOOGLE_SEARCH_SUGGESTIONS_FIELD_NUMBER; + hash = (53 * hash) + getGoogleSearchSuggestions().hashCode(); + break; + case 9: + hash = (37 * hash) + END_SESSION_FIELD_NUMBER; + hash = (53 * hash) + getEndSession().hashCode(); + break; + case 11: + hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; + hash = (53 * hash) + getPayload().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.SessionOutput parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.SessionOutput parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SessionOutput parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.SessionOutput parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SessionOutput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.SessionOutput parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SessionOutput parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.SessionOutput parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SessionOutput parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.SessionOutput parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SessionOutput parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.SessionOutput parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.SessionOutput prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Output for the session.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.SessionOutput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.SessionOutput) + com.google.cloud.ces.v1.SessionOutputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_SessionOutput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_SessionOutput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.SessionOutput.class, + com.google.cloud.ces.v1.SessionOutput.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.SessionOutput.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDiagnosticInfoFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolCallsBuilder_ != null) { + toolCallsBuilder_.clear(); + } + if (citationsBuilder_ != null) { + citationsBuilder_.clear(); + } + if (googleSearchSuggestionsBuilder_ != null) { + googleSearchSuggestionsBuilder_.clear(); + } + if (endSessionBuilder_ != null) { + endSessionBuilder_.clear(); + } + if (payloadBuilder_ != null) { + payloadBuilder_.clear(); + } + turnIndex_ = 0; + turnCompleted_ = false; + diagnosticInfo_ = null; + if (diagnosticInfoBuilder_ != null) { + diagnosticInfoBuilder_.dispose(); + diagnosticInfoBuilder_ = null; + } + outputTypeCase_ = 0; + outputType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_SessionOutput_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.SessionOutput getDefaultInstanceForType() { + return com.google.cloud.ces.v1.SessionOutput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.SessionOutput build() { + com.google.cloud.ces.v1.SessionOutput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.SessionOutput buildPartial() { + com.google.cloud.ces.v1.SessionOutput result = + new com.google.cloud.ces.v1.SessionOutput(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.SessionOutput result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000080) != 0)) { + result.turnIndex_ = turnIndex_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.turnCompleted_ = turnCompleted_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000200) != 0)) { + result.diagnosticInfo_ = + diagnosticInfoBuilder_ == null ? diagnosticInfo_ : diagnosticInfoBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.ces.v1.SessionOutput result) { + result.outputTypeCase_ = outputTypeCase_; + result.outputType_ = this.outputType_; + if (outputTypeCase_ == 3 && toolCallsBuilder_ != null) { + result.outputType_ = toolCallsBuilder_.build(); + } + if (outputTypeCase_ == 8 && citationsBuilder_ != null) { + result.outputType_ = citationsBuilder_.build(); + } + if (outputTypeCase_ == 10 && googleSearchSuggestionsBuilder_ != null) { + result.outputType_ = googleSearchSuggestionsBuilder_.build(); + } + if (outputTypeCase_ == 9 && endSessionBuilder_ != null) { + result.outputType_ = endSessionBuilder_.build(); + } + if (outputTypeCase_ == 11 && payloadBuilder_ != null) { + result.outputType_ = payloadBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.SessionOutput) { + return mergeFrom((com.google.cloud.ces.v1.SessionOutput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.SessionOutput other) { + if (other == com.google.cloud.ces.v1.SessionOutput.getDefaultInstance()) return this; + if (other.getTurnIndex() != 0) { + setTurnIndex(other.getTurnIndex()); + } + if (other.getTurnCompleted() != false) { + setTurnCompleted(other.getTurnCompleted()); + } + if (other.hasDiagnosticInfo()) { + mergeDiagnosticInfo(other.getDiagnosticInfo()); + } + switch (other.getOutputTypeCase()) { + case TEXT: + { + outputTypeCase_ = 1; + outputType_ = other.outputType_; + onChanged(); + break; + } + case AUDIO: + { + setAudio(other.getAudio()); + break; + } + case TOOL_CALLS: + { + mergeToolCalls(other.getToolCalls()); + break; + } + case CITATIONS: + { + mergeCitations(other.getCitations()); + break; + } + case GOOGLE_SEARCH_SUGGESTIONS: + { + mergeGoogleSearchSuggestions(other.getGoogleSearchSuggestions()); + break; + } + case END_SESSION: + { + mergeEndSession(other.getEndSession()); + break; + } + case PAYLOAD: + { + mergePayload(other.getPayload()); + break; + } + case OUTPUTTYPE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + outputTypeCase_ = 1; + outputType_ = s; + break; + } // case 10 + case 18: + { + outputType_ = input.readBytes(); + outputTypeCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetToolCallsFieldBuilder().getBuilder(), extensionRegistry); + outputTypeCase_ = 3; + break; + } // case 26 + case 32: + { + turnCompleted_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 32 + case 48: + { + turnIndex_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 48 + case 58: + { + input.readMessage( + internalGetDiagnosticInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetCitationsFieldBuilder().getBuilder(), extensionRegistry); + outputTypeCase_ = 8; + break; + } // case 66 + case 74: + { + input.readMessage( + internalGetEndSessionFieldBuilder().getBuilder(), extensionRegistry); + outputTypeCase_ = 9; + break; + } // case 74 + case 82: + { + input.readMessage( + internalGetGoogleSearchSuggestionsFieldBuilder().getBuilder(), + extensionRegistry); + outputTypeCase_ = 10; + break; + } // case 82 + case 90: + { + input.readMessage(internalGetPayloadFieldBuilder().getBuilder(), extensionRegistry); + outputTypeCase_ = 11; + break; + } // case 90 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int outputTypeCase_ = 0; + private java.lang.Object outputType_; + + public OutputTypeCase getOutputTypeCase() { + return OutputTypeCase.forNumber(outputTypeCase_); + } + + public Builder clearOutputType() { + outputTypeCase_ = 0; + outputType_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
      +     * Output text from the CES agent.
      +     * 
      + * + * string text = 1; + * + * @return Whether the text field is set. + */ + @java.lang.Override + public boolean hasText() { + return outputTypeCase_ == 1; + } + + /** + * + * + *
      +     * Output text from the CES agent.
      +     * 
      + * + * string text = 1; + * + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = ""; + if (outputTypeCase_ == 1) { + ref = outputType_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputTypeCase_ == 1) { + outputType_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Output text from the CES agent.
      +     * 
      + * + * string text = 1; + * + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = ""; + if (outputTypeCase_ == 1) { + ref = outputType_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (outputTypeCase_ == 1) { + outputType_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Output text from the CES agent.
      +     * 
      + * + * string text = 1; + * + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputTypeCase_ = 1; + outputType_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output text from the CES agent.
      +     * 
      + * + * string text = 1; + * + * @return This builder for chaining. + */ + public Builder clearText() { + if (outputTypeCase_ == 1) { + outputTypeCase_ = 0; + outputType_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output text from the CES agent.
      +     * 
      + * + * string text = 1; + * + * @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(); + } + checkByteStringIsUtf8(value); + outputTypeCase_ = 1; + outputType_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output audio from the CES agent.
      +     * 
      + * + * bytes audio = 2; + * + * @return Whether the audio field is set. + */ + public boolean hasAudio() { + return outputTypeCase_ == 2; + } + + /** + * + * + *
      +     * Output audio from the CES agent.
      +     * 
      + * + * bytes audio = 2; + * + * @return The audio. + */ + public com.google.protobuf.ByteString getAudio() { + if (outputTypeCase_ == 2) { + return (com.google.protobuf.ByteString) outputType_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + /** + * + * + *
      +     * Output audio from the CES agent.
      +     * 
      + * + * bytes audio = 2; + * + * @param value The audio to set. + * @return This builder for chaining. + */ + public Builder setAudio(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + outputTypeCase_ = 2; + outputType_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output audio from the CES agent.
      +     * 
      + * + * bytes audio = 2; + * + * @return This builder for chaining. + */ + public Builder clearAudio() { + if (outputTypeCase_ == 2) { + outputTypeCase_ = 0; + outputType_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolCalls, + com.google.cloud.ces.v1.ToolCalls.Builder, + com.google.cloud.ces.v1.ToolCallsOrBuilder> + toolCallsBuilder_; + + /** + * + * + *
      +     * Request for the client to execute the tools.
      +     * 
      + * + * .google.cloud.ces.v1.ToolCalls tool_calls = 3; + * + * @return Whether the toolCalls field is set. + */ + @java.lang.Override + public boolean hasToolCalls() { + return outputTypeCase_ == 3; + } + + /** + * + * + *
      +     * Request for the client to execute the tools.
      +     * 
      + * + * .google.cloud.ces.v1.ToolCalls tool_calls = 3; + * + * @return The toolCalls. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolCalls getToolCalls() { + if (toolCallsBuilder_ == null) { + if (outputTypeCase_ == 3) { + return (com.google.cloud.ces.v1.ToolCalls) outputType_; + } + return com.google.cloud.ces.v1.ToolCalls.getDefaultInstance(); + } else { + if (outputTypeCase_ == 3) { + return toolCallsBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.ToolCalls.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Request for the client to execute the tools.
      +     * 
      + * + * .google.cloud.ces.v1.ToolCalls tool_calls = 3; + */ + public Builder setToolCalls(com.google.cloud.ces.v1.ToolCalls value) { + if (toolCallsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputType_ = value; + onChanged(); + } else { + toolCallsBuilder_.setMessage(value); + } + outputTypeCase_ = 3; + return this; + } + + /** + * + * + *
      +     * Request for the client to execute the tools.
      +     * 
      + * + * .google.cloud.ces.v1.ToolCalls tool_calls = 3; + */ + public Builder setToolCalls(com.google.cloud.ces.v1.ToolCalls.Builder builderForValue) { + if (toolCallsBuilder_ == null) { + outputType_ = builderForValue.build(); + onChanged(); + } else { + toolCallsBuilder_.setMessage(builderForValue.build()); + } + outputTypeCase_ = 3; + return this; + } + + /** + * + * + *
      +     * Request for the client to execute the tools.
      +     * 
      + * + * .google.cloud.ces.v1.ToolCalls tool_calls = 3; + */ + public Builder mergeToolCalls(com.google.cloud.ces.v1.ToolCalls value) { + if (toolCallsBuilder_ == null) { + if (outputTypeCase_ == 3 + && outputType_ != com.google.cloud.ces.v1.ToolCalls.getDefaultInstance()) { + outputType_ = + com.google.cloud.ces.v1.ToolCalls.newBuilder( + (com.google.cloud.ces.v1.ToolCalls) outputType_) + .mergeFrom(value) + .buildPartial(); + } else { + outputType_ = value; + } + onChanged(); + } else { + if (outputTypeCase_ == 3) { + toolCallsBuilder_.mergeFrom(value); + } else { + toolCallsBuilder_.setMessage(value); + } + } + outputTypeCase_ = 3; + return this; + } + + /** + * + * + *
      +     * Request for the client to execute the tools.
      +     * 
      + * + * .google.cloud.ces.v1.ToolCalls tool_calls = 3; + */ + public Builder clearToolCalls() { + if (toolCallsBuilder_ == null) { + if (outputTypeCase_ == 3) { + outputTypeCase_ = 0; + outputType_ = null; + onChanged(); + } + } else { + if (outputTypeCase_ == 3) { + outputTypeCase_ = 0; + outputType_ = null; + } + toolCallsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Request for the client to execute the tools.
      +     * 
      + * + * .google.cloud.ces.v1.ToolCalls tool_calls = 3; + */ + public com.google.cloud.ces.v1.ToolCalls.Builder getToolCallsBuilder() { + return internalGetToolCallsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Request for the client to execute the tools.
      +     * 
      + * + * .google.cloud.ces.v1.ToolCalls tool_calls = 3; + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolCallsOrBuilder getToolCallsOrBuilder() { + if ((outputTypeCase_ == 3) && (toolCallsBuilder_ != null)) { + return toolCallsBuilder_.getMessageOrBuilder(); + } else { + if (outputTypeCase_ == 3) { + return (com.google.cloud.ces.v1.ToolCalls) outputType_; + } + return com.google.cloud.ces.v1.ToolCalls.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Request for the client to execute the tools.
      +     * 
      + * + * .google.cloud.ces.v1.ToolCalls tool_calls = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolCalls, + com.google.cloud.ces.v1.ToolCalls.Builder, + com.google.cloud.ces.v1.ToolCallsOrBuilder> + internalGetToolCallsFieldBuilder() { + if (toolCallsBuilder_ == null) { + if (!(outputTypeCase_ == 3)) { + outputType_ = com.google.cloud.ces.v1.ToolCalls.getDefaultInstance(); + } + toolCallsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolCalls, + com.google.cloud.ces.v1.ToolCalls.Builder, + com.google.cloud.ces.v1.ToolCallsOrBuilder>( + (com.google.cloud.ces.v1.ToolCalls) outputType_, getParentForChildren(), isClean()); + outputType_ = null; + } + outputTypeCase_ = 3; + onChanged(); + return toolCallsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Citations, + com.google.cloud.ces.v1.Citations.Builder, + com.google.cloud.ces.v1.CitationsOrBuilder> + citationsBuilder_; + + /** + * + * + *
      +     * Citations that provide the source information for the agent's generated
      +     * text.
      +     * 
      + * + * .google.cloud.ces.v1.Citations citations = 8; + * + * @return Whether the citations field is set. + */ + @java.lang.Override + public boolean hasCitations() { + return outputTypeCase_ == 8; + } + + /** + * + * + *
      +     * Citations that provide the source information for the agent's generated
      +     * text.
      +     * 
      + * + * .google.cloud.ces.v1.Citations citations = 8; + * + * @return The citations. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Citations getCitations() { + if (citationsBuilder_ == null) { + if (outputTypeCase_ == 8) { + return (com.google.cloud.ces.v1.Citations) outputType_; + } + return com.google.cloud.ces.v1.Citations.getDefaultInstance(); + } else { + if (outputTypeCase_ == 8) { + return citationsBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.Citations.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Citations that provide the source information for the agent's generated
      +     * text.
      +     * 
      + * + * .google.cloud.ces.v1.Citations citations = 8; + */ + public Builder setCitations(com.google.cloud.ces.v1.Citations value) { + if (citationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputType_ = value; + onChanged(); + } else { + citationsBuilder_.setMessage(value); + } + outputTypeCase_ = 8; + return this; + } + + /** + * + * + *
      +     * Citations that provide the source information for the agent's generated
      +     * text.
      +     * 
      + * + * .google.cloud.ces.v1.Citations citations = 8; + */ + public Builder setCitations(com.google.cloud.ces.v1.Citations.Builder builderForValue) { + if (citationsBuilder_ == null) { + outputType_ = builderForValue.build(); + onChanged(); + } else { + citationsBuilder_.setMessage(builderForValue.build()); + } + outputTypeCase_ = 8; + return this; + } + + /** + * + * + *
      +     * Citations that provide the source information for the agent's generated
      +     * text.
      +     * 
      + * + * .google.cloud.ces.v1.Citations citations = 8; + */ + public Builder mergeCitations(com.google.cloud.ces.v1.Citations value) { + if (citationsBuilder_ == null) { + if (outputTypeCase_ == 8 + && outputType_ != com.google.cloud.ces.v1.Citations.getDefaultInstance()) { + outputType_ = + com.google.cloud.ces.v1.Citations.newBuilder( + (com.google.cloud.ces.v1.Citations) outputType_) + .mergeFrom(value) + .buildPartial(); + } else { + outputType_ = value; + } + onChanged(); + } else { + if (outputTypeCase_ == 8) { + citationsBuilder_.mergeFrom(value); + } else { + citationsBuilder_.setMessage(value); + } + } + outputTypeCase_ = 8; + return this; + } + + /** + * + * + *
      +     * Citations that provide the source information for the agent's generated
      +     * text.
      +     * 
      + * + * .google.cloud.ces.v1.Citations citations = 8; + */ + public Builder clearCitations() { + if (citationsBuilder_ == null) { + if (outputTypeCase_ == 8) { + outputTypeCase_ = 0; + outputType_ = null; + onChanged(); + } + } else { + if (outputTypeCase_ == 8) { + outputTypeCase_ = 0; + outputType_ = null; + } + citationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Citations that provide the source information for the agent's generated
      +     * text.
      +     * 
      + * + * .google.cloud.ces.v1.Citations citations = 8; + */ + public com.google.cloud.ces.v1.Citations.Builder getCitationsBuilder() { + return internalGetCitationsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Citations that provide the source information for the agent's generated
      +     * text.
      +     * 
      + * + * .google.cloud.ces.v1.Citations citations = 8; + */ + @java.lang.Override + public com.google.cloud.ces.v1.CitationsOrBuilder getCitationsOrBuilder() { + if ((outputTypeCase_ == 8) && (citationsBuilder_ != null)) { + return citationsBuilder_.getMessageOrBuilder(); + } else { + if (outputTypeCase_ == 8) { + return (com.google.cloud.ces.v1.Citations) outputType_; + } + return com.google.cloud.ces.v1.Citations.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Citations that provide the source information for the agent's generated
      +     * text.
      +     * 
      + * + * .google.cloud.ces.v1.Citations citations = 8; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Citations, + com.google.cloud.ces.v1.Citations.Builder, + com.google.cloud.ces.v1.CitationsOrBuilder> + internalGetCitationsFieldBuilder() { + if (citationsBuilder_ == null) { + if (!(outputTypeCase_ == 8)) { + outputType_ = com.google.cloud.ces.v1.Citations.getDefaultInstance(); + } + citationsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Citations, + com.google.cloud.ces.v1.Citations.Builder, + com.google.cloud.ces.v1.CitationsOrBuilder>( + (com.google.cloud.ces.v1.Citations) outputType_, getParentForChildren(), isClean()); + outputType_ = null; + } + outputTypeCase_ = 8; + onChanged(); + return citationsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.GoogleSearchSuggestions, + com.google.cloud.ces.v1.GoogleSearchSuggestions.Builder, + com.google.cloud.ces.v1.GoogleSearchSuggestionsOrBuilder> + googleSearchSuggestionsBuilder_; + + /** + * + * + *
      +     * The suggestions returned from Google Search as a result of invoking the
      +     * [GoogleSearchTool][google.cloud.ces.v1.GoogleSearchTool].
      +     * 
      + * + * .google.cloud.ces.v1.GoogleSearchSuggestions google_search_suggestions = 10; + * + * @return Whether the googleSearchSuggestions field is set. + */ + @java.lang.Override + public boolean hasGoogleSearchSuggestions() { + return outputTypeCase_ == 10; + } + + /** + * + * + *
      +     * The suggestions returned from Google Search as a result of invoking the
      +     * [GoogleSearchTool][google.cloud.ces.v1.GoogleSearchTool].
      +     * 
      + * + * .google.cloud.ces.v1.GoogleSearchSuggestions google_search_suggestions = 10; + * + * @return The googleSearchSuggestions. + */ + @java.lang.Override + public com.google.cloud.ces.v1.GoogleSearchSuggestions getGoogleSearchSuggestions() { + if (googleSearchSuggestionsBuilder_ == null) { + if (outputTypeCase_ == 10) { + return (com.google.cloud.ces.v1.GoogleSearchSuggestions) outputType_; + } + return com.google.cloud.ces.v1.GoogleSearchSuggestions.getDefaultInstance(); + } else { + if (outputTypeCase_ == 10) { + return googleSearchSuggestionsBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.GoogleSearchSuggestions.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * The suggestions returned from Google Search as a result of invoking the
      +     * [GoogleSearchTool][google.cloud.ces.v1.GoogleSearchTool].
      +     * 
      + * + * .google.cloud.ces.v1.GoogleSearchSuggestions google_search_suggestions = 10; + */ + public Builder setGoogleSearchSuggestions( + com.google.cloud.ces.v1.GoogleSearchSuggestions value) { + if (googleSearchSuggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputType_ = value; + onChanged(); + } else { + googleSearchSuggestionsBuilder_.setMessage(value); + } + outputTypeCase_ = 10; + return this; + } + + /** + * + * + *
      +     * The suggestions returned from Google Search as a result of invoking the
      +     * [GoogleSearchTool][google.cloud.ces.v1.GoogleSearchTool].
      +     * 
      + * + * .google.cloud.ces.v1.GoogleSearchSuggestions google_search_suggestions = 10; + */ + public Builder setGoogleSearchSuggestions( + com.google.cloud.ces.v1.GoogleSearchSuggestions.Builder builderForValue) { + if (googleSearchSuggestionsBuilder_ == null) { + outputType_ = builderForValue.build(); + onChanged(); + } else { + googleSearchSuggestionsBuilder_.setMessage(builderForValue.build()); + } + outputTypeCase_ = 10; + return this; + } + + /** + * + * + *
      +     * The suggestions returned from Google Search as a result of invoking the
      +     * [GoogleSearchTool][google.cloud.ces.v1.GoogleSearchTool].
      +     * 
      + * + * .google.cloud.ces.v1.GoogleSearchSuggestions google_search_suggestions = 10; + */ + public Builder mergeGoogleSearchSuggestions( + com.google.cloud.ces.v1.GoogleSearchSuggestions value) { + if (googleSearchSuggestionsBuilder_ == null) { + if (outputTypeCase_ == 10 + && outputType_ + != com.google.cloud.ces.v1.GoogleSearchSuggestions.getDefaultInstance()) { + outputType_ = + com.google.cloud.ces.v1.GoogleSearchSuggestions.newBuilder( + (com.google.cloud.ces.v1.GoogleSearchSuggestions) outputType_) + .mergeFrom(value) + .buildPartial(); + } else { + outputType_ = value; + } + onChanged(); + } else { + if (outputTypeCase_ == 10) { + googleSearchSuggestionsBuilder_.mergeFrom(value); + } else { + googleSearchSuggestionsBuilder_.setMessage(value); + } + } + outputTypeCase_ = 10; + return this; + } + + /** + * + * + *
      +     * The suggestions returned from Google Search as a result of invoking the
      +     * [GoogleSearchTool][google.cloud.ces.v1.GoogleSearchTool].
      +     * 
      + * + * .google.cloud.ces.v1.GoogleSearchSuggestions google_search_suggestions = 10; + */ + public Builder clearGoogleSearchSuggestions() { + if (googleSearchSuggestionsBuilder_ == null) { + if (outputTypeCase_ == 10) { + outputTypeCase_ = 0; + outputType_ = null; + onChanged(); + } + } else { + if (outputTypeCase_ == 10) { + outputTypeCase_ = 0; + outputType_ = null; + } + googleSearchSuggestionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * The suggestions returned from Google Search as a result of invoking the
      +     * [GoogleSearchTool][google.cloud.ces.v1.GoogleSearchTool].
      +     * 
      + * + * .google.cloud.ces.v1.GoogleSearchSuggestions google_search_suggestions = 10; + */ + public com.google.cloud.ces.v1.GoogleSearchSuggestions.Builder + getGoogleSearchSuggestionsBuilder() { + return internalGetGoogleSearchSuggestionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * The suggestions returned from Google Search as a result of invoking the
      +     * [GoogleSearchTool][google.cloud.ces.v1.GoogleSearchTool].
      +     * 
      + * + * .google.cloud.ces.v1.GoogleSearchSuggestions google_search_suggestions = 10; + */ + @java.lang.Override + public com.google.cloud.ces.v1.GoogleSearchSuggestionsOrBuilder + getGoogleSearchSuggestionsOrBuilder() { + if ((outputTypeCase_ == 10) && (googleSearchSuggestionsBuilder_ != null)) { + return googleSearchSuggestionsBuilder_.getMessageOrBuilder(); + } else { + if (outputTypeCase_ == 10) { + return (com.google.cloud.ces.v1.GoogleSearchSuggestions) outputType_; + } + return com.google.cloud.ces.v1.GoogleSearchSuggestions.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * The suggestions returned from Google Search as a result of invoking the
      +     * [GoogleSearchTool][google.cloud.ces.v1.GoogleSearchTool].
      +     * 
      + * + * .google.cloud.ces.v1.GoogleSearchSuggestions google_search_suggestions = 10; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.GoogleSearchSuggestions, + com.google.cloud.ces.v1.GoogleSearchSuggestions.Builder, + com.google.cloud.ces.v1.GoogleSearchSuggestionsOrBuilder> + internalGetGoogleSearchSuggestionsFieldBuilder() { + if (googleSearchSuggestionsBuilder_ == null) { + if (!(outputTypeCase_ == 10)) { + outputType_ = com.google.cloud.ces.v1.GoogleSearchSuggestions.getDefaultInstance(); + } + googleSearchSuggestionsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.GoogleSearchSuggestions, + com.google.cloud.ces.v1.GoogleSearchSuggestions.Builder, + com.google.cloud.ces.v1.GoogleSearchSuggestionsOrBuilder>( + (com.google.cloud.ces.v1.GoogleSearchSuggestions) outputType_, + getParentForChildren(), + isClean()); + outputType_ = null; + } + outputTypeCase_ = 10; + onChanged(); + return googleSearchSuggestionsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EndSession, + com.google.cloud.ces.v1.EndSession.Builder, + com.google.cloud.ces.v1.EndSessionOrBuilder> + endSessionBuilder_; + + /** + * + * + *
      +     * Indicates the session has ended.
      +     * 
      + * + * .google.cloud.ces.v1.EndSession end_session = 9; + * + * @return Whether the endSession field is set. + */ + @java.lang.Override + public boolean hasEndSession() { + return outputTypeCase_ == 9; + } + + /** + * + * + *
      +     * Indicates the session has ended.
      +     * 
      + * + * .google.cloud.ces.v1.EndSession end_session = 9; + * + * @return The endSession. + */ + @java.lang.Override + public com.google.cloud.ces.v1.EndSession getEndSession() { + if (endSessionBuilder_ == null) { + if (outputTypeCase_ == 9) { + return (com.google.cloud.ces.v1.EndSession) outputType_; + } + return com.google.cloud.ces.v1.EndSession.getDefaultInstance(); + } else { + if (outputTypeCase_ == 9) { + return endSessionBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.EndSession.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Indicates the session has ended.
      +     * 
      + * + * .google.cloud.ces.v1.EndSession end_session = 9; + */ + public Builder setEndSession(com.google.cloud.ces.v1.EndSession value) { + if (endSessionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputType_ = value; + onChanged(); + } else { + endSessionBuilder_.setMessage(value); + } + outputTypeCase_ = 9; + return this; + } + + /** + * + * + *
      +     * Indicates the session has ended.
      +     * 
      + * + * .google.cloud.ces.v1.EndSession end_session = 9; + */ + public Builder setEndSession(com.google.cloud.ces.v1.EndSession.Builder builderForValue) { + if (endSessionBuilder_ == null) { + outputType_ = builderForValue.build(); + onChanged(); + } else { + endSessionBuilder_.setMessage(builderForValue.build()); + } + outputTypeCase_ = 9; + return this; + } + + /** + * + * + *
      +     * Indicates the session has ended.
      +     * 
      + * + * .google.cloud.ces.v1.EndSession end_session = 9; + */ + public Builder mergeEndSession(com.google.cloud.ces.v1.EndSession value) { + if (endSessionBuilder_ == null) { + if (outputTypeCase_ == 9 + && outputType_ != com.google.cloud.ces.v1.EndSession.getDefaultInstance()) { + outputType_ = + com.google.cloud.ces.v1.EndSession.newBuilder( + (com.google.cloud.ces.v1.EndSession) outputType_) + .mergeFrom(value) + .buildPartial(); + } else { + outputType_ = value; + } + onChanged(); + } else { + if (outputTypeCase_ == 9) { + endSessionBuilder_.mergeFrom(value); + } else { + endSessionBuilder_.setMessage(value); + } + } + outputTypeCase_ = 9; + return this; + } + + /** + * + * + *
      +     * Indicates the session has ended.
      +     * 
      + * + * .google.cloud.ces.v1.EndSession end_session = 9; + */ + public Builder clearEndSession() { + if (endSessionBuilder_ == null) { + if (outputTypeCase_ == 9) { + outputTypeCase_ = 0; + outputType_ = null; + onChanged(); + } + } else { + if (outputTypeCase_ == 9) { + outputTypeCase_ = 0; + outputType_ = null; + } + endSessionBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Indicates the session has ended.
      +     * 
      + * + * .google.cloud.ces.v1.EndSession end_session = 9; + */ + public com.google.cloud.ces.v1.EndSession.Builder getEndSessionBuilder() { + return internalGetEndSessionFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Indicates the session has ended.
      +     * 
      + * + * .google.cloud.ces.v1.EndSession end_session = 9; + */ + @java.lang.Override + public com.google.cloud.ces.v1.EndSessionOrBuilder getEndSessionOrBuilder() { + if ((outputTypeCase_ == 9) && (endSessionBuilder_ != null)) { + return endSessionBuilder_.getMessageOrBuilder(); + } else { + if (outputTypeCase_ == 9) { + return (com.google.cloud.ces.v1.EndSession) outputType_; + } + return com.google.cloud.ces.v1.EndSession.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Indicates the session has ended.
      +     * 
      + * + * .google.cloud.ces.v1.EndSession end_session = 9; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EndSession, + com.google.cloud.ces.v1.EndSession.Builder, + com.google.cloud.ces.v1.EndSessionOrBuilder> + internalGetEndSessionFieldBuilder() { + if (endSessionBuilder_ == null) { + if (!(outputTypeCase_ == 9)) { + outputType_ = com.google.cloud.ces.v1.EndSession.getDefaultInstance(); + } + endSessionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.EndSession, + com.google.cloud.ces.v1.EndSession.Builder, + com.google.cloud.ces.v1.EndSessionOrBuilder>( + (com.google.cloud.ces.v1.EndSession) outputType_, + getParentForChildren(), + isClean()); + outputType_ = null; + } + outputTypeCase_ = 9; + onChanged(); + return endSessionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + payloadBuilder_; + + /** + * + * + *
      +     * Custom payload with structured output from the CES agent.
      +     * 
      + * + * .google.protobuf.Struct payload = 11; + * + * @return Whether the payload field is set. + */ + @java.lang.Override + public boolean hasPayload() { + return outputTypeCase_ == 11; + } + + /** + * + * + *
      +     * Custom payload with structured output from the CES agent.
      +     * 
      + * + * .google.protobuf.Struct payload = 11; + * + * @return The payload. + */ + @java.lang.Override + public com.google.protobuf.Struct getPayload() { + if (payloadBuilder_ == null) { + if (outputTypeCase_ == 11) { + return (com.google.protobuf.Struct) outputType_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } else { + if (outputTypeCase_ == 11) { + return payloadBuilder_.getMessage(); + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Custom payload with structured output from the CES agent.
      +     * 
      + * + * .google.protobuf.Struct payload = 11; + */ + public Builder setPayload(com.google.protobuf.Struct value) { + if (payloadBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputType_ = value; + onChanged(); + } else { + payloadBuilder_.setMessage(value); + } + outputTypeCase_ = 11; + return this; + } + + /** + * + * + *
      +     * Custom payload with structured output from the CES agent.
      +     * 
      + * + * .google.protobuf.Struct payload = 11; + */ + public Builder setPayload(com.google.protobuf.Struct.Builder builderForValue) { + if (payloadBuilder_ == null) { + outputType_ = builderForValue.build(); + onChanged(); + } else { + payloadBuilder_.setMessage(builderForValue.build()); + } + outputTypeCase_ = 11; + return this; + } + + /** + * + * + *
      +     * Custom payload with structured output from the CES agent.
      +     * 
      + * + * .google.protobuf.Struct payload = 11; + */ + public Builder mergePayload(com.google.protobuf.Struct value) { + if (payloadBuilder_ == null) { + if (outputTypeCase_ == 11 + && outputType_ != com.google.protobuf.Struct.getDefaultInstance()) { + outputType_ = + com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) outputType_) + .mergeFrom(value) + .buildPartial(); + } else { + outputType_ = value; + } + onChanged(); + } else { + if (outputTypeCase_ == 11) { + payloadBuilder_.mergeFrom(value); + } else { + payloadBuilder_.setMessage(value); + } + } + outputTypeCase_ = 11; + return this; + } + + /** + * + * + *
      +     * Custom payload with structured output from the CES agent.
      +     * 
      + * + * .google.protobuf.Struct payload = 11; + */ + public Builder clearPayload() { + if (payloadBuilder_ == null) { + if (outputTypeCase_ == 11) { + outputTypeCase_ = 0; + outputType_ = null; + onChanged(); + } + } else { + if (outputTypeCase_ == 11) { + outputTypeCase_ = 0; + outputType_ = null; + } + payloadBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Custom payload with structured output from the CES agent.
      +     * 
      + * + * .google.protobuf.Struct payload = 11; + */ + public com.google.protobuf.Struct.Builder getPayloadBuilder() { + return internalGetPayloadFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Custom payload with structured output from the CES agent.
      +     * 
      + * + * .google.protobuf.Struct payload = 11; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { + if ((outputTypeCase_ == 11) && (payloadBuilder_ != null)) { + return payloadBuilder_.getMessageOrBuilder(); + } else { + if (outputTypeCase_ == 11) { + return (com.google.protobuf.Struct) outputType_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Custom payload with structured output from the CES agent.
      +     * 
      + * + * .google.protobuf.Struct payload = 11; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetPayloadFieldBuilder() { + if (payloadBuilder_ == null) { + if (!(outputTypeCase_ == 11)) { + outputType_ = com.google.protobuf.Struct.getDefaultInstance(); + } + payloadBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + (com.google.protobuf.Struct) outputType_, getParentForChildren(), isClean()); + outputType_ = null; + } + outputTypeCase_ = 11; + onChanged(); + return payloadBuilder_; + } + + private int turnIndex_; + + /** + * + * + *
      +     * Indicates the sequential order of conversation turn to which this output
      +     * belongs to, starting from 1.
      +     * 
      + * + * int32 turn_index = 6; + * + * @return The turnIndex. + */ + @java.lang.Override + public int getTurnIndex() { + return turnIndex_; + } + + /** + * + * + *
      +     * Indicates the sequential order of conversation turn to which this output
      +     * belongs to, starting from 1.
      +     * 
      + * + * int32 turn_index = 6; + * + * @param value The turnIndex to set. + * @return This builder for chaining. + */ + public Builder setTurnIndex(int value) { + + turnIndex_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Indicates the sequential order of conversation turn to which this output
      +     * belongs to, starting from 1.
      +     * 
      + * + * int32 turn_index = 6; + * + * @return This builder for chaining. + */ + public Builder clearTurnIndex() { + bitField0_ = (bitField0_ & ~0x00000080); + turnIndex_ = 0; + onChanged(); + return this; + } + + private boolean turnCompleted_; + + /** + * + * + *
      +     * If true, the CES agent has detected the end of the current conversation
      +     * turn and will provide no further output for this turn.
      +     * 
      + * + * bool turn_completed = 4; + * + * @return The turnCompleted. + */ + @java.lang.Override + public boolean getTurnCompleted() { + return turnCompleted_; + } + + /** + * + * + *
      +     * If true, the CES agent has detected the end of the current conversation
      +     * turn and will provide no further output for this turn.
      +     * 
      + * + * bool turn_completed = 4; + * + * @param value The turnCompleted to set. + * @return This builder for chaining. + */ + public Builder setTurnCompleted(boolean value) { + + turnCompleted_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
      +     * If true, the CES agent has detected the end of the current conversation
      +     * turn and will provide no further output for this turn.
      +     * 
      + * + * bool turn_completed = 4; + * + * @return This builder for chaining. + */ + public Builder clearTurnCompleted() { + bitField0_ = (bitField0_ & ~0x00000100); + turnCompleted_ = false; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo diagnosticInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo, + com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo.Builder, + com.google.cloud.ces.v1.SessionOutput.DiagnosticInfoOrBuilder> + diagnosticInfoBuilder_; + + /** + * + * + *
      +     * Optional. Diagnostic information contains execution details during the
      +     * processing of the input. Only populated in the last SessionOutput (with
      +     * `turn_completed=true`) for each turn.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionOutput.DiagnosticInfo diagnostic_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the diagnosticInfo field is set. + */ + public boolean hasDiagnosticInfo() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
      +     * Optional. Diagnostic information contains execution details during the
      +     * processing of the input. Only populated in the last SessionOutput (with
      +     * `turn_completed=true`) for each turn.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionOutput.DiagnosticInfo diagnostic_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The diagnosticInfo. + */ + public com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo getDiagnosticInfo() { + if (diagnosticInfoBuilder_ == null) { + return diagnosticInfo_ == null + ? com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo.getDefaultInstance() + : diagnosticInfo_; + } else { + return diagnosticInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Diagnostic information contains execution details during the
      +     * processing of the input. Only populated in the last SessionOutput (with
      +     * `turn_completed=true`) for each turn.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionOutput.DiagnosticInfo diagnostic_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDiagnosticInfo(com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo value) { + if (diagnosticInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + diagnosticInfo_ = value; + } else { + diagnosticInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Diagnostic information contains execution details during the
      +     * processing of the input. Only populated in the last SessionOutput (with
      +     * `turn_completed=true`) for each turn.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionOutput.DiagnosticInfo diagnostic_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDiagnosticInfo( + com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo.Builder builderForValue) { + if (diagnosticInfoBuilder_ == null) { + diagnosticInfo_ = builderForValue.build(); + } else { + diagnosticInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Diagnostic information contains execution details during the
      +     * processing of the input. Only populated in the last SessionOutput (with
      +     * `turn_completed=true`) for each turn.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionOutput.DiagnosticInfo diagnostic_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDiagnosticInfo(com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo value) { + if (diagnosticInfoBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && diagnosticInfo_ != null + && diagnosticInfo_ + != com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo.getDefaultInstance()) { + getDiagnosticInfoBuilder().mergeFrom(value); + } else { + diagnosticInfo_ = value; + } + } else { + diagnosticInfoBuilder_.mergeFrom(value); + } + if (diagnosticInfo_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Diagnostic information contains execution details during the
      +     * processing of the input. Only populated in the last SessionOutput (with
      +     * `turn_completed=true`) for each turn.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionOutput.DiagnosticInfo diagnostic_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDiagnosticInfo() { + bitField0_ = (bitField0_ & ~0x00000200); + diagnosticInfo_ = null; + if (diagnosticInfoBuilder_ != null) { + diagnosticInfoBuilder_.dispose(); + diagnosticInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Diagnostic information contains execution details during the
      +     * processing of the input. Only populated in the last SessionOutput (with
      +     * `turn_completed=true`) for each turn.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionOutput.DiagnosticInfo diagnostic_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo.Builder getDiagnosticInfoBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetDiagnosticInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Diagnostic information contains execution details during the
      +     * processing of the input. Only populated in the last SessionOutput (with
      +     * `turn_completed=true`) for each turn.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionOutput.DiagnosticInfo diagnostic_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.SessionOutput.DiagnosticInfoOrBuilder + getDiagnosticInfoOrBuilder() { + if (diagnosticInfoBuilder_ != null) { + return diagnosticInfoBuilder_.getMessageOrBuilder(); + } else { + return diagnosticInfo_ == null + ? com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo.getDefaultInstance() + : diagnosticInfo_; + } + } + + /** + * + * + *
      +     * Optional. Diagnostic information contains execution details during the
      +     * processing of the input. Only populated in the last SessionOutput (with
      +     * `turn_completed=true`) for each turn.
      +     * 
      + * + * + * .google.cloud.ces.v1.SessionOutput.DiagnosticInfo diagnostic_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo, + com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo.Builder, + com.google.cloud.ces.v1.SessionOutput.DiagnosticInfoOrBuilder> + internalGetDiagnosticInfoFieldBuilder() { + if (diagnosticInfoBuilder_ == null) { + diagnosticInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo, + com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo.Builder, + com.google.cloud.ces.v1.SessionOutput.DiagnosticInfoOrBuilder>( + getDiagnosticInfo(), getParentForChildren(), isClean()); + diagnosticInfo_ = null; + } + return diagnosticInfoBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.SessionOutput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.SessionOutput) + private static final com.google.cloud.ces.v1.SessionOutput DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.SessionOutput(); + } + + public static com.google.cloud.ces.v1.SessionOutput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SessionOutput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.SessionOutput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionOutputOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionOutputOrBuilder.java new file mode 100644 index 000000000000..20cca68d70c1 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionOutputOrBuilder.java @@ -0,0 +1,363 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface SessionOutputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.SessionOutput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Output text from the CES agent.
      +   * 
      + * + * string text = 1; + * + * @return Whether the text field is set. + */ + boolean hasText(); + + /** + * + * + *
      +   * Output text from the CES agent.
      +   * 
      + * + * string text = 1; + * + * @return The text. + */ + java.lang.String getText(); + + /** + * + * + *
      +   * Output text from the CES agent.
      +   * 
      + * + * string text = 1; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); + + /** + * + * + *
      +   * Output audio from the CES agent.
      +   * 
      + * + * bytes audio = 2; + * + * @return Whether the audio field is set. + */ + boolean hasAudio(); + + /** + * + * + *
      +   * Output audio from the CES agent.
      +   * 
      + * + * bytes audio = 2; + * + * @return The audio. + */ + com.google.protobuf.ByteString getAudio(); + + /** + * + * + *
      +   * Request for the client to execute the tools.
      +   * 
      + * + * .google.cloud.ces.v1.ToolCalls tool_calls = 3; + * + * @return Whether the toolCalls field is set. + */ + boolean hasToolCalls(); + + /** + * + * + *
      +   * Request for the client to execute the tools.
      +   * 
      + * + * .google.cloud.ces.v1.ToolCalls tool_calls = 3; + * + * @return The toolCalls. + */ + com.google.cloud.ces.v1.ToolCalls getToolCalls(); + + /** + * + * + *
      +   * Request for the client to execute the tools.
      +   * 
      + * + * .google.cloud.ces.v1.ToolCalls tool_calls = 3; + */ + com.google.cloud.ces.v1.ToolCallsOrBuilder getToolCallsOrBuilder(); + + /** + * + * + *
      +   * Citations that provide the source information for the agent's generated
      +   * text.
      +   * 
      + * + * .google.cloud.ces.v1.Citations citations = 8; + * + * @return Whether the citations field is set. + */ + boolean hasCitations(); + + /** + * + * + *
      +   * Citations that provide the source information for the agent's generated
      +   * text.
      +   * 
      + * + * .google.cloud.ces.v1.Citations citations = 8; + * + * @return The citations. + */ + com.google.cloud.ces.v1.Citations getCitations(); + + /** + * + * + *
      +   * Citations that provide the source information for the agent's generated
      +   * text.
      +   * 
      + * + * .google.cloud.ces.v1.Citations citations = 8; + */ + com.google.cloud.ces.v1.CitationsOrBuilder getCitationsOrBuilder(); + + /** + * + * + *
      +   * The suggestions returned from Google Search as a result of invoking the
      +   * [GoogleSearchTool][google.cloud.ces.v1.GoogleSearchTool].
      +   * 
      + * + * .google.cloud.ces.v1.GoogleSearchSuggestions google_search_suggestions = 10; + * + * @return Whether the googleSearchSuggestions field is set. + */ + boolean hasGoogleSearchSuggestions(); + + /** + * + * + *
      +   * The suggestions returned from Google Search as a result of invoking the
      +   * [GoogleSearchTool][google.cloud.ces.v1.GoogleSearchTool].
      +   * 
      + * + * .google.cloud.ces.v1.GoogleSearchSuggestions google_search_suggestions = 10; + * + * @return The googleSearchSuggestions. + */ + com.google.cloud.ces.v1.GoogleSearchSuggestions getGoogleSearchSuggestions(); + + /** + * + * + *
      +   * The suggestions returned from Google Search as a result of invoking the
      +   * [GoogleSearchTool][google.cloud.ces.v1.GoogleSearchTool].
      +   * 
      + * + * .google.cloud.ces.v1.GoogleSearchSuggestions google_search_suggestions = 10; + */ + com.google.cloud.ces.v1.GoogleSearchSuggestionsOrBuilder getGoogleSearchSuggestionsOrBuilder(); + + /** + * + * + *
      +   * Indicates the session has ended.
      +   * 
      + * + * .google.cloud.ces.v1.EndSession end_session = 9; + * + * @return Whether the endSession field is set. + */ + boolean hasEndSession(); + + /** + * + * + *
      +   * Indicates the session has ended.
      +   * 
      + * + * .google.cloud.ces.v1.EndSession end_session = 9; + * + * @return The endSession. + */ + com.google.cloud.ces.v1.EndSession getEndSession(); + + /** + * + * + *
      +   * Indicates the session has ended.
      +   * 
      + * + * .google.cloud.ces.v1.EndSession end_session = 9; + */ + com.google.cloud.ces.v1.EndSessionOrBuilder getEndSessionOrBuilder(); + + /** + * + * + *
      +   * Custom payload with structured output from the CES agent.
      +   * 
      + * + * .google.protobuf.Struct payload = 11; + * + * @return Whether the payload field is set. + */ + boolean hasPayload(); + + /** + * + * + *
      +   * Custom payload with structured output from the CES agent.
      +   * 
      + * + * .google.protobuf.Struct payload = 11; + * + * @return The payload. + */ + com.google.protobuf.Struct getPayload(); + + /** + * + * + *
      +   * Custom payload with structured output from the CES agent.
      +   * 
      + * + * .google.protobuf.Struct payload = 11; + */ + com.google.protobuf.StructOrBuilder getPayloadOrBuilder(); + + /** + * + * + *
      +   * Indicates the sequential order of conversation turn to which this output
      +   * belongs to, starting from 1.
      +   * 
      + * + * int32 turn_index = 6; + * + * @return The turnIndex. + */ + int getTurnIndex(); + + /** + * + * + *
      +   * If true, the CES agent has detected the end of the current conversation
      +   * turn and will provide no further output for this turn.
      +   * 
      + * + * bool turn_completed = 4; + * + * @return The turnCompleted. + */ + boolean getTurnCompleted(); + + /** + * + * + *
      +   * Optional. Diagnostic information contains execution details during the
      +   * processing of the input. Only populated in the last SessionOutput (with
      +   * `turn_completed=true`) for each turn.
      +   * 
      + * + * + * .google.cloud.ces.v1.SessionOutput.DiagnosticInfo diagnostic_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the diagnosticInfo field is set. + */ + boolean hasDiagnosticInfo(); + + /** + * + * + *
      +   * Optional. Diagnostic information contains execution details during the
      +   * processing of the input. Only populated in the last SessionOutput (with
      +   * `turn_completed=true`) for each turn.
      +   * 
      + * + * + * .google.cloud.ces.v1.SessionOutput.DiagnosticInfo diagnostic_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The diagnosticInfo. + */ + com.google.cloud.ces.v1.SessionOutput.DiagnosticInfo getDiagnosticInfo(); + + /** + * + * + *
      +   * Optional. Diagnostic information contains execution details during the
      +   * processing of the input. Only populated in the last SessionOutput (with
      +   * `turn_completed=true`) for each turn.
      +   * 
      + * + * + * .google.cloud.ces.v1.SessionOutput.DiagnosticInfo diagnostic_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.SessionOutput.DiagnosticInfoOrBuilder getDiagnosticInfoOrBuilder(); + + com.google.cloud.ces.v1.SessionOutput.OutputTypeCase getOutputTypeCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionServiceProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionServiceProto.java new file mode 100644 index 000000000000..c9da874c93a5 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionServiceProto.java @@ -0,0 +1,496 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class SessionServiceProto extends com.google.protobuf.GeneratedFile { + private SessionServiceProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SessionServiceProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_InputAudioConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_InputAudioConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_OutputAudioConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_OutputAudioConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_SessionConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_SessionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_SessionConfig_RemoteDialogflowQueryParameters_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_SessionConfig_RemoteDialogflowQueryParameters_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_SessionConfig_RemoteDialogflowQueryParameters_WebhookHeadersEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_SessionConfig_RemoteDialogflowQueryParameters_WebhookHeadersEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ToolCalls_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ToolCalls_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ToolResponses_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ToolResponses_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Citations_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Citations_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Citations_CitedChunk_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Citations_CitedChunk_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Event_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Event_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_SessionInput_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_SessionInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_SessionOutput_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_SessionOutput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_SessionOutput_DiagnosticInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_SessionOutput_DiagnosticInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_RecognitionResult_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_RecognitionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_InterruptionSignal_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_InterruptionSignal_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_EndSession_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_EndSession_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_GoAway_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_GoAway_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_RunSessionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_RunSessionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_RunSessionResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_RunSessionResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_BidiSessionClientMessage_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_BidiSessionClientMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_BidiSessionServerMessage_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_BidiSessionServerMessage_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + ")google/cloud/ces/v1/session_service.pr" + + "oto\022\023google.cloud.ces.v1\032\034google/api/ann" + + "otations.proto\032\027google/api/client.proto\032" + + "\037google/api/field_behavior.proto\032\031google/api/resource.proto\032" + + " google/cloud/ces/v1/common.proto\032!google/cloud/ces/v1/examp" + + "le.proto\032,google/cloud/ces/v1/search_sug" + + "gestions.proto\032\034google/protobuf/struct.proto\"\231\001\n" + + "\020InputAudioConfig\022?\n" + + "\016audio_encoding\030\001" + + " \001(\0162\".google.cloud.ces.v1.AudioEncodingB\003\340A\002\022\036\n" + + "\021sample_rate_hertz\030\002 \001(\005B\003\340A\002\022$\n" + + "\027noise_suppression_level\030\006 \001(\tB\003\340A\001\"t\n" + + "\021OutputAudioConfig\022?\n" + + "\016audio_encoding\030\001" + + " \001(\0162\".google.cloud.ces.v1.AudioEncodingB\003\340A\002\022\036\n" + + "\021sample_rate_hertz\030\002 \001(\005B\003\340A\002\"\254\006\n\r" + + "SessionConfig\0223\n" + + "\007session\030\001 \001(\tB\"\340A\002\372A\034\n" + + "\032ces.googleapis.com/Session\022F\n" + + "\022input_audio_config\030\002" + + " \001(\0132%.google.cloud.ces.v1.InputAudioConfigB\003\340A\001\022H\n" + + "\023output_audio_config\030\003" + + " \001(\0132&.google.cloud.ces.v1.OutputAudioConfigB\003\340A\001\022>\n" + + "\023historical_contexts\030\005" + + " \003(\0132\034.google.cloud.ces.v1.MessageB\003\340A\001\0225\n" + + "\013entry_agent\030\014 \001(\tB \340A\001\372A\032\n" + + "\030ces.googleapis.com/Agent\022\027\n\n" + + "deployment\030\010 \001(\tB\003\340A\001\022\026\n" + + "\ttime_zone\030\013 \001(\tB\003\340A\001\022s\n" + + "\"remote_dialogflow_query_parameters\030\017 \001(\0132B.google.clo" + + "ud.ces.v1.SessionConfig.RemoteDialogflowQueryParametersB\003\340A\001\032\266\002\n" + + "\037RemoteDialogflowQueryParameters\022t\n" + + "\017webhook_headers\030\001 \003(\0132V.google.cloud.ces.v1.SessionConfig.Re" + + "moteDialogflowQueryParameters.WebhookHeadersEntryB\003\340A\001\022-\n" + + "\007payload\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\001\0227\n" + + "\021end_user_metadata\030\003" + + " \001(\0132\027.google.protobuf.StructB\003\340A\001\0325\n" + + "\023WebhookHeadersEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"C\n" + + "\tToolCalls\0226\n\n" + + "tool_calls\030\001 \003(\0132\035.google.cloud.ces.v1.ToolCallB\003\340A\001\"O\n\r" + + "ToolResponses\022>\n" + + "\016tool_responses\030\001 " + + "\003(\0132!.google.cloud.ces.v1.ToolResponseB\003\340A\001\"\204\001\n" + + "\tCitations\022?\n" + + "\014cited_chunks\030\001 \003(\0132).google.cloud.ces.v1.Citations.CitedChunk\0326\n\n" + + "CitedChunk\022\013\n" + + "\003uri\030\001 \001(\t\022\r\n" + + "\005title\030\002 \001(\t\022\014\n" + + "\004text\030\003 \001(\t\"\033\n" + + "\005Event\022\022\n" + + "\005event\030\001 \001(\tB\003\340A\002\"\202\003\n" + + "\014SessionInput\022\023\n" + + "\004text\030\001 \001(\tB\003\340A\001H\000\022\023\n" + + "\004dtmf\030\006 \001(\tB\003\340A\001H\000\022\024\n" + + "\005audio\030\002 \001(\014B\003\340A\001H\000\022A\n" + + "\016tool_responses\030\003" + + " \001(\0132\".google.cloud.ces.v1.ToolResponsesB\003\340A\001H\000\0220\n" + + "\005image\030\004 \001(\0132\032.google.cloud.ces.v1.ImageB\003\340A\001H\000\022.\n" + + "\004blob\030\007 \001(\0132\031.google.cloud.ces.v1.BlobB\003\340A\001H\000\0221\n" + + "\tvariables\030\005 \001(\0132\027.google.protobuf.StructB\003\340A\001H\000\0220\n" + + "\005event\030\t" + + " \001(\0132\032.google.cloud.ces.v1.EventB\003\340A\001H\000\022\032\n\r" + + "will_continue\030\010 \001(\010B\003\340A\001B\014\n\n" + + "input_type\"\316\004\n" + + "\r" + + "SessionOutput\022\016\n" + + "\004text\030\001 \001(\tH\000\022\017\n" + + "\005audio\030\002 \001(\014H\000\0224\n\n" + + "tool_calls\030\003 \001(\0132\036.google.cloud.ces.v1.ToolCallsH\000\0223\n" + + "\tcitations\030\010 \001(\0132\036.google.cloud.ces.v1.CitationsH\000\022Q\n" + + "\031google_search_suggestions\030\n" + + " \001(\0132,.google.cloud.ces.v1.GoogleSearchSuggestionsH\000\0226\n" + + "\013end_session\030\t \001(\0132\037.google.cloud.ces.v1.EndSessionH\000\022*\n" + + "\007payload\030\013 \001(\0132\027.google.protobuf.StructH\000\022\022\n\n" + + "turn_index\030\006 \001(\005\022\026\n" + + "\016turn_completed\030\004 \001(\010\022O\n" + + "\017diagnostic_info\030\007" + + " \001(\01321.google.cloud.ces.v1.SessionOutput.DiagnosticInfoB\003\340A\001\032n\n" + + "\016DiagnosticInfo\022.\n" + + "\010messages\030\001 \003(\0132\034.google.cloud.ces.v1.Message\022,\n" + + "\troot_span\030\003 \001(\0132\031.google.cloud.ces.v1.SpanB\r\n" + + "\013output_type\",\n" + + "\021RecognitionResult\022\027\n\n" + + "transcript\030\001 \001(\tB\003\340A\001\"&\n" + + "\022InterruptionSignal\022\020\n" + + "\010barge_in\030\001 \001(\010\"<\n\n" + + "EndSession\022.\n" + + "\010metadata\030\001 \001(\0132\027.google.protobuf.StructB\003\340A\001\"\010\n" + + "\006GoAway\"\204\001\n" + + "\021RunSessionRequest\0227\n" + + "\006config\030\001 \001(\0132\".google.cloud.ces.v1.SessionConfigB\003\340A\002\0226\n" + + "\006inputs\030\003 \003(\0132!.google.cloud.ces.v1.SessionInputB\003\340A\002\"I\n" + + "\022RunSessionResponse\0223\n" + + "\007outputs\030\001 \003(\0132\".google.cloud.ces.v1.SessionOutput\"\247\001\n" + + "\030BidiSessionClientMessage\0229\n" + + "\006config\030\001 \001" + + "(\0132\".google.cloud.ces.v1.SessionConfigB\003\340A\001H\000\022@\n" + + "\016realtime_input\030\002" + + " \001(\0132!.google.cloud.ces.v1.SessionInputB\003\340A\001H\000B\016\n" + + "\014message_type\"\367\002\n" + + "\030BidiSessionServerMessage\022A\n" + + "\016session_output\030\001" + + " \001(\0132\".google.cloud.ces.v1.SessionOutputB\003\340A\001H\000\022I\n" + + "\022recognition_result\030\002" + + " \001(\0132&.google.cloud.ces.v1.RecognitionResultB\003\340A\001H\000\022K\n" + + "\023interruption_signal\030\003" + + " \001(\0132\'.google.cloud.ces.v1.InterruptionSignalB\003\340A\001H\000\022;\n" + + "\013end_session\030\005" + + " \001(\0132\037.google.cloud.ces.v1.EndSessionB\003\340A\001H\000\0223\n" + + "\007go_away\030\006" + + " \001(\0132\033.google.cloud.ces.v1.GoAwayB\003\340A\001H\000B\016\n" + + "\014message_type*R\n\r" + + "AudioEncoding\022\036\n" + + "\032AUDIO_ENCODING_UNSPECIFIED\020\000\022\014\n" + + "\010LINEAR16\020\001\022\t\n" + + "\005MULAW\020\002\022\010\n" + + "\004ALAW\020\0032\247\003\n" + + "\016SessionService\022\262\001\n\n" + + "RunSession\022&.google.cloud.ces.v1.RunSessionRequest\032\'.google.cloud.c" + + "es.v1.RunSessionResponse\"S\202\323\344\223\002M\"H/v1/{c" + + "onfig.session=projects/*/locations/*/apps/*/sessions/*}:runSession:\001*\022t\n" + + "\016BidiRunSession\022-.google.cloud.ces.v1.BidiSessio" + + "nClientMessage\032-.google.cloud.ces.v1.Bid" + + "iSessionServerMessage\"\000(\0010\001\032j\312A\022ces.goog" + + "leapis.com\322ARhttps://www.googleapis.com/" + + "auth/ces,https://www.googleapis.com/auth/cloud-platformB\301\001\n" + + "\027com.google.cloud.ces" + + ".v1B\023SessionServiceProtoP\001Z)cloud.google.com/go/ces/apiv1/cespb;cespb\352Ac\n" + + "\032ces.googleapis.com/Session\022Eprojects/{project}" + + "/locations/{location}/apps/{app}/sessions/{session}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.ces.v1.CommonProto.getDescriptor(), + com.google.cloud.ces.v1.ExampleProto.getDescriptor(), + com.google.cloud.ces.v1.SearchSuggestionsProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_InputAudioConfig_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_InputAudioConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_InputAudioConfig_descriptor, + new java.lang.String[] { + "AudioEncoding", "SampleRateHertz", "NoiseSuppressionLevel", + }); + internal_static_google_cloud_ces_v1_OutputAudioConfig_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_ces_v1_OutputAudioConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_OutputAudioConfig_descriptor, + new java.lang.String[] { + "AudioEncoding", "SampleRateHertz", + }); + internal_static_google_cloud_ces_v1_SessionConfig_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_ces_v1_SessionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_SessionConfig_descriptor, + new java.lang.String[] { + "Session", + "InputAudioConfig", + "OutputAudioConfig", + "HistoricalContexts", + "EntryAgent", + "Deployment", + "TimeZone", + "RemoteDialogflowQueryParameters", + }); + internal_static_google_cloud_ces_v1_SessionConfig_RemoteDialogflowQueryParameters_descriptor = + internal_static_google_cloud_ces_v1_SessionConfig_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_SessionConfig_RemoteDialogflowQueryParameters_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_SessionConfig_RemoteDialogflowQueryParameters_descriptor, + new java.lang.String[] { + "WebhookHeaders", "Payload", "EndUserMetadata", + }); + internal_static_google_cloud_ces_v1_SessionConfig_RemoteDialogflowQueryParameters_WebhookHeadersEntry_descriptor = + internal_static_google_cloud_ces_v1_SessionConfig_RemoteDialogflowQueryParameters_descriptor + .getNestedType(0); + internal_static_google_cloud_ces_v1_SessionConfig_RemoteDialogflowQueryParameters_WebhookHeadersEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_SessionConfig_RemoteDialogflowQueryParameters_WebhookHeadersEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_ces_v1_ToolCalls_descriptor = getDescriptor().getMessageType(3); + internal_static_google_cloud_ces_v1_ToolCalls_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ToolCalls_descriptor, + new java.lang.String[] { + "ToolCalls", + }); + internal_static_google_cloud_ces_v1_ToolResponses_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_ces_v1_ToolResponses_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ToolResponses_descriptor, + new java.lang.String[] { + "ToolResponses", + }); + internal_static_google_cloud_ces_v1_Citations_descriptor = getDescriptor().getMessageType(5); + internal_static_google_cloud_ces_v1_Citations_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Citations_descriptor, + new java.lang.String[] { + "CitedChunks", + }); + internal_static_google_cloud_ces_v1_Citations_CitedChunk_descriptor = + internal_static_google_cloud_ces_v1_Citations_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_Citations_CitedChunk_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Citations_CitedChunk_descriptor, + new java.lang.String[] { + "Uri", "Title", "Text", + }); + internal_static_google_cloud_ces_v1_Event_descriptor = getDescriptor().getMessageType(6); + internal_static_google_cloud_ces_v1_Event_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Event_descriptor, + new java.lang.String[] { + "Event", + }); + internal_static_google_cloud_ces_v1_SessionInput_descriptor = getDescriptor().getMessageType(7); + internal_static_google_cloud_ces_v1_SessionInput_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_SessionInput_descriptor, + new java.lang.String[] { + "Text", + "Dtmf", + "Audio", + "ToolResponses", + "Image", + "Blob", + "Variables", + "Event", + "WillContinue", + "InputType", + }); + internal_static_google_cloud_ces_v1_SessionOutput_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_ces_v1_SessionOutput_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_SessionOutput_descriptor, + new java.lang.String[] { + "Text", + "Audio", + "ToolCalls", + "Citations", + "GoogleSearchSuggestions", + "EndSession", + "Payload", + "TurnIndex", + "TurnCompleted", + "DiagnosticInfo", + "OutputType", + }); + internal_static_google_cloud_ces_v1_SessionOutput_DiagnosticInfo_descriptor = + internal_static_google_cloud_ces_v1_SessionOutput_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1_SessionOutput_DiagnosticInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_SessionOutput_DiagnosticInfo_descriptor, + new java.lang.String[] { + "Messages", "RootSpan", + }); + internal_static_google_cloud_ces_v1_RecognitionResult_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_ces_v1_RecognitionResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_RecognitionResult_descriptor, + new java.lang.String[] { + "Transcript", + }); + internal_static_google_cloud_ces_v1_InterruptionSignal_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_cloud_ces_v1_InterruptionSignal_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_InterruptionSignal_descriptor, + new java.lang.String[] { + "BargeIn", + }); + internal_static_google_cloud_ces_v1_EndSession_descriptor = getDescriptor().getMessageType(11); + internal_static_google_cloud_ces_v1_EndSession_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_EndSession_descriptor, + new java.lang.String[] { + "Metadata", + }); + internal_static_google_cloud_ces_v1_GoAway_descriptor = getDescriptor().getMessageType(12); + internal_static_google_cloud_ces_v1_GoAway_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_GoAway_descriptor, new java.lang.String[] {}); + internal_static_google_cloud_ces_v1_RunSessionRequest_descriptor = + getDescriptor().getMessageType(13); + internal_static_google_cloud_ces_v1_RunSessionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_RunSessionRequest_descriptor, + new java.lang.String[] { + "Config", "Inputs", + }); + internal_static_google_cloud_ces_v1_RunSessionResponse_descriptor = + getDescriptor().getMessageType(14); + internal_static_google_cloud_ces_v1_RunSessionResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_RunSessionResponse_descriptor, + new java.lang.String[] { + "Outputs", + }); + internal_static_google_cloud_ces_v1_BidiSessionClientMessage_descriptor = + getDescriptor().getMessageType(15); + internal_static_google_cloud_ces_v1_BidiSessionClientMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_BidiSessionClientMessage_descriptor, + new java.lang.String[] { + "Config", "RealtimeInput", "MessageType", + }); + internal_static_google_cloud_ces_v1_BidiSessionServerMessage_descriptor = + getDescriptor().getMessageType(16); + internal_static_google_cloud_ces_v1_BidiSessionServerMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_BidiSessionServerMessage_descriptor, + new java.lang.String[] { + "SessionOutput", + "RecognitionResult", + "InterruptionSignal", + "EndSession", + "GoAway", + "MessageType", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.ces.v1.CommonProto.getDescriptor(); + com.google.cloud.ces.v1.ExampleProto.getDescriptor(); + com.google.cloud.ces.v1.SearchSuggestionsProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Span.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Span.java new file mode 100644 index 000000000000..cc01084ea7b2 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Span.java @@ -0,0 +1,2296 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/common.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * A span is a unit of work or a single operation during the request processing.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Span} + */ +@com.google.protobuf.Generated +public final class Span extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.Span) + SpanOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Span"); + } + + // Use Span.newBuilder() to construct. + private Span(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Span() { + name_ = ""; + childSpans_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto.internal_static_google_cloud_ces_v1_Span_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_Span_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Span.class, com.google.cloud.ces.v1.Span.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Output only. The name of the span.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Output only. The name of the span.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int START_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp startTime_; + + /** + * + * + *
      +   * Output only. The start time of the span.
      +   * 
      + * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Output only. The start time of the span.
      +   * 
      + * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + /** + * + * + *
      +   * Output only. The start time of the span.
      +   * 
      + * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp endTime_; + + /** + * + * + *
      +   * Output only. The end time of the span.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Output only. The end time of the span.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + /** + * + * + *
      +   * Output only. The end time of the span.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int DURATION_FIELD_NUMBER = 6; + private com.google.protobuf.Duration duration_; + + /** + * + * + *
      +   * Output only. The duration of the span.
      +   * 
      + * + * .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the duration field is set. + */ + @java.lang.Override + public boolean hasDuration() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * Output only. The duration of the span.
      +   * 
      + * + * .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The duration. + */ + @java.lang.Override + public com.google.protobuf.Duration getDuration() { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + + /** + * + * + *
      +   * Output only. The duration of the span.
      +   * 
      + * + * .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 4; + private com.google.protobuf.Struct attributes_; + + /** + * + * + *
      +   * Output only. Key-value attributes associated with the span.
      +   * 
      + * + * .google.protobuf.Struct attributes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the attributes field is set. + */ + @java.lang.Override + public boolean hasAttributes() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +   * Output only. Key-value attributes associated with the span.
      +   * 
      + * + * .google.protobuf.Struct attributes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The attributes. + */ + @java.lang.Override + public com.google.protobuf.Struct getAttributes() { + return attributes_ == null ? com.google.protobuf.Struct.getDefaultInstance() : attributes_; + } + + /** + * + * + *
      +   * Output only. Key-value attributes associated with the span.
      +   * 
      + * + * .google.protobuf.Struct attributes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getAttributesOrBuilder() { + return attributes_ == null ? com.google.protobuf.Struct.getDefaultInstance() : attributes_; + } + + public static final int CHILD_SPANS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List childSpans_; + + /** + * + * + *
      +   * Output only. The child spans that are nested under this span.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getChildSpansList() { + return childSpans_; + } + + /** + * + * + *
      +   * Output only. The child spans that are nested under this span.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getChildSpansOrBuilderList() { + return childSpans_; + } + + /** + * + * + *
      +   * Output only. The child spans that are nested under this span.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getChildSpansCount() { + return childSpans_.size(); + } + + /** + * + * + *
      +   * Output only. The child spans that are nested under this span.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.Span getChildSpans(int index) { + return childSpans_.get(index); + } + + /** + * + * + *
      +   * Output only. The child spans that are nested under this span.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.SpanOrBuilder getChildSpansOrBuilder(int index) { + return childSpans_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getEndTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getAttributes()); + } + for (int i = 0; i < childSpans_.size(); i++) { + output.writeMessage(5, childSpans_.get(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getDuration()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAttributes()); + } + for (int i = 0; i < childSpans_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, childSpans_.get(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDuration()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.Span)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.Span other = (com.google.cloud.ces.v1.Span) obj; + + if (!getName().equals(other.getName())) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (hasDuration() != other.hasDuration()) return false; + if (hasDuration()) { + if (!getDuration().equals(other.getDuration())) return false; + } + if (hasAttributes() != other.hasAttributes()) return false; + if (hasAttributes()) { + if (!getAttributes().equals(other.getAttributes())) return false; + } + if (!getChildSpansList().equals(other.getChildSpansList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + if (hasDuration()) { + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().hashCode(); + } + if (hasAttributes()) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getAttributes().hashCode(); + } + if (getChildSpansCount() > 0) { + hash = (37 * hash) + CHILD_SPANS_FIELD_NUMBER; + hash = (53 * hash) + getChildSpansList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.Span parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Span parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Span parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Span parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Span parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Span parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Span parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Span parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Span parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Span parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Span parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Span parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.Span prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * A span is a unit of work or a single operation during the request processing.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Span} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.Span) + com.google.cloud.ces.v1.SpanOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_Span_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_Span_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Span.class, com.google.cloud.ces.v1.Span.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.Span.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetStartTimeFieldBuilder(); + internalGetEndTimeFieldBuilder(); + internalGetDurationFieldBuilder(); + internalGetAttributesFieldBuilder(); + internalGetChildSpansFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + duration_ = null; + if (durationBuilder_ != null) { + durationBuilder_.dispose(); + durationBuilder_ = null; + } + attributes_ = null; + if (attributesBuilder_ != null) { + attributesBuilder_.dispose(); + attributesBuilder_ = null; + } + if (childSpansBuilder_ == null) { + childSpans_ = java.util.Collections.emptyList(); + } else { + childSpans_ = null; + childSpansBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_Span_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Span getDefaultInstanceForType() { + return com.google.cloud.ces.v1.Span.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.Span build() { + com.google.cloud.ces.v1.Span result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Span buildPartial() { + com.google.cloud.ces.v1.Span result = new com.google.cloud.ces.v1.Span(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1.Span result) { + if (childSpansBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + childSpans_ = java.util.Collections.unmodifiableList(childSpans_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.childSpans_ = childSpans_; + } else { + result.childSpans_ = childSpansBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.Span result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.attributes_ = attributesBuilder_ == null ? attributes_ : attributesBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.Span) { + return mergeFrom((com.google.cloud.ces.v1.Span) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.Span other) { + if (other == com.google.cloud.ces.v1.Span.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (other.hasDuration()) { + mergeDuration(other.getDuration()); + } + if (other.hasAttributes()) { + mergeAttributes(other.getAttributes()); + } + if (childSpansBuilder_ == null) { + if (!other.childSpans_.isEmpty()) { + if (childSpans_.isEmpty()) { + childSpans_ = other.childSpans_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureChildSpansIsMutable(); + childSpans_.addAll(other.childSpans_); + } + onChanged(); + } + } else { + if (!other.childSpans_.isEmpty()) { + if (childSpansBuilder_.isEmpty()) { + childSpansBuilder_.dispose(); + childSpansBuilder_ = null; + childSpans_ = other.childSpans_; + bitField0_ = (bitField0_ & ~0x00000020); + childSpansBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetChildSpansFieldBuilder() + : null; + } else { + childSpansBuilder_.addAllMessages(other.childSpans_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetAttributesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: + { + com.google.cloud.ces.v1.Span m = + input.readMessage(com.google.cloud.ces.v1.Span.parser(), extensionRegistry); + if (childSpansBuilder_ == null) { + ensureChildSpansIsMutable(); + childSpans_.add(m); + } else { + childSpansBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Output only. The name of the span.
      +     * 
      + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Output only. The name of the span.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Output only. The name of the span.
      +     * 
      + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The name of the span.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The name of the span.
      +     * 
      + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + + /** + * + * + *
      +     * Output only. The start time of the span.
      +     * 
      + * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Output only. The start time of the span.
      +     * 
      + * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. The start time of the span.
      +     * 
      + * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The start time of the span.
      +     * 
      + * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The start time of the span.
      +     * 
      + * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. The start time of the span.
      +     * 
      + * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000002); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The start time of the span.
      +     * 
      + * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetStartTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. The start time of the span.
      +     * 
      + * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + + /** + * + * + *
      +     * Output only. The start time of the span.
      +     * 
      + * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + + /** + * + * + *
      +     * Output only. The end time of the span.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +     * Output only. The end time of the span.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. The end time of the span.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The end time of the span.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The end time of the span.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. The end time of the span.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000004); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The end time of the span.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetEndTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. The end time of the span.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + + /** + * + * + *
      +     * Output only. The end time of the span.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private com.google.protobuf.Duration duration_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + durationBuilder_; + + /** + * + * + *
      +     * Output only. The duration of the span.
      +     * 
      + * + * .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the duration field is set. + */ + public boolean hasDuration() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +     * Output only. The duration of the span.
      +     * 
      + * + * .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The duration. + */ + public com.google.protobuf.Duration getDuration() { + if (durationBuilder_ == null) { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } else { + return durationBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. The duration of the span.
      +     * 
      + * + * .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + duration_ = value; + } else { + durationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The duration of the span.
      +     * 
      + * + * .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { + if (durationBuilder_ == null) { + duration_ = builderForValue.build(); + } else { + durationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The duration of the span.
      +     * 
      + * + * .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && duration_ != null + && duration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getDurationBuilder().mergeFrom(value); + } else { + duration_ = value; + } + } else { + durationBuilder_.mergeFrom(value); + } + if (duration_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. The duration of the span.
      +     * 
      + * + * .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDuration() { + bitField0_ = (bitField0_ & ~0x00000008); + duration_ = null; + if (durationBuilder_ != null) { + durationBuilder_.dispose(); + durationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The duration of the span.
      +     * 
      + * + * .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Duration.Builder getDurationBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetDurationFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. The duration of the span.
      +     * 
      + * + * .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + if (durationBuilder_ != null) { + return durationBuilder_.getMessageOrBuilder(); + } else { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + } + + /** + * + * + *
      +     * Output only. The duration of the span.
      +     * 
      + * + * .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetDurationFieldBuilder() { + if (durationBuilder_ == null) { + durationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getDuration(), getParentForChildren(), isClean()); + duration_ = null; + } + return durationBuilder_; + } + + private com.google.protobuf.Struct attributes_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + attributesBuilder_; + + /** + * + * + *
      +     * Output only. Key-value attributes associated with the span.
      +     * 
      + * + * .google.protobuf.Struct attributes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the attributes field is set. + */ + public boolean hasAttributes() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +     * Output only. Key-value attributes associated with the span.
      +     * 
      + * + * .google.protobuf.Struct attributes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The attributes. + */ + public com.google.protobuf.Struct getAttributes() { + if (attributesBuilder_ == null) { + return attributes_ == null ? com.google.protobuf.Struct.getDefaultInstance() : attributes_; + } else { + return attributesBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. Key-value attributes associated with the span.
      +     * 
      + * + * .google.protobuf.Struct attributes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAttributes(com.google.protobuf.Struct value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attributes_ = value; + } else { + attributesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Key-value attributes associated with the span.
      +     * 
      + * + * .google.protobuf.Struct attributes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAttributes(com.google.protobuf.Struct.Builder builderForValue) { + if (attributesBuilder_ == null) { + attributes_ = builderForValue.build(); + } else { + attributesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Key-value attributes associated with the span.
      +     * 
      + * + * .google.protobuf.Struct attributes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeAttributes(com.google.protobuf.Struct value) { + if (attributesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && attributes_ != null + && attributes_ != com.google.protobuf.Struct.getDefaultInstance()) { + getAttributesBuilder().mergeFrom(value); + } else { + attributes_ = value; + } + } else { + attributesBuilder_.mergeFrom(value); + } + if (attributes_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. Key-value attributes associated with the span.
      +     * 
      + * + * .google.protobuf.Struct attributes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAttributes() { + bitField0_ = (bitField0_ & ~0x00000010); + attributes_ = null; + if (attributesBuilder_ != null) { + attributesBuilder_.dispose(); + attributesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Key-value attributes associated with the span.
      +     * 
      + * + * .google.protobuf.Struct attributes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Struct.Builder getAttributesBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetAttributesFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. Key-value attributes associated with the span.
      +     * 
      + * + * .google.protobuf.Struct attributes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.StructOrBuilder getAttributesOrBuilder() { + if (attributesBuilder_ != null) { + return attributesBuilder_.getMessageOrBuilder(); + } else { + return attributes_ == null ? com.google.protobuf.Struct.getDefaultInstance() : attributes_; + } + } + + /** + * + * + *
      +     * Output only. Key-value attributes associated with the span.
      +     * 
      + * + * .google.protobuf.Struct attributes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetAttributesFieldBuilder() { + if (attributesBuilder_ == null) { + attributesBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getAttributes(), getParentForChildren(), isClean()); + attributes_ = null; + } + return attributesBuilder_; + } + + private java.util.List childSpans_ = + java.util.Collections.emptyList(); + + private void ensureChildSpansIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + childSpans_ = new java.util.ArrayList(childSpans_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Span, + com.google.cloud.ces.v1.Span.Builder, + com.google.cloud.ces.v1.SpanOrBuilder> + childSpansBuilder_; + + /** + * + * + *
      +     * Output only. The child spans that are nested under this span.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getChildSpansList() { + if (childSpansBuilder_ == null) { + return java.util.Collections.unmodifiableList(childSpans_); + } else { + return childSpansBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Output only. The child spans that are nested under this span.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getChildSpansCount() { + if (childSpansBuilder_ == null) { + return childSpans_.size(); + } else { + return childSpansBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Output only. The child spans that are nested under this span.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1.Span getChildSpans(int index) { + if (childSpansBuilder_ == null) { + return childSpans_.get(index); + } else { + return childSpansBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Output only. The child spans that are nested under this span.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setChildSpans(int index, com.google.cloud.ces.v1.Span value) { + if (childSpansBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChildSpansIsMutable(); + childSpans_.set(index, value); + onChanged(); + } else { + childSpansBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Output only. The child spans that are nested under this span.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setChildSpans(int index, com.google.cloud.ces.v1.Span.Builder builderForValue) { + if (childSpansBuilder_ == null) { + ensureChildSpansIsMutable(); + childSpans_.set(index, builderForValue.build()); + onChanged(); + } else { + childSpansBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Output only. The child spans that are nested under this span.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addChildSpans(com.google.cloud.ces.v1.Span value) { + if (childSpansBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChildSpansIsMutable(); + childSpans_.add(value); + onChanged(); + } else { + childSpansBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Output only. The child spans that are nested under this span.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addChildSpans(int index, com.google.cloud.ces.v1.Span value) { + if (childSpansBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChildSpansIsMutable(); + childSpans_.add(index, value); + onChanged(); + } else { + childSpansBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Output only. The child spans that are nested under this span.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addChildSpans(com.google.cloud.ces.v1.Span.Builder builderForValue) { + if (childSpansBuilder_ == null) { + ensureChildSpansIsMutable(); + childSpans_.add(builderForValue.build()); + onChanged(); + } else { + childSpansBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Output only. The child spans that are nested under this span.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addChildSpans(int index, com.google.cloud.ces.v1.Span.Builder builderForValue) { + if (childSpansBuilder_ == null) { + ensureChildSpansIsMutable(); + childSpans_.add(index, builderForValue.build()); + onChanged(); + } else { + childSpansBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Output only. The child spans that are nested under this span.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllChildSpans( + java.lang.Iterable values) { + if (childSpansBuilder_ == null) { + ensureChildSpansIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, childSpans_); + onChanged(); + } else { + childSpansBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Output only. The child spans that are nested under this span.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearChildSpans() { + if (childSpansBuilder_ == null) { + childSpans_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + childSpansBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Output only. The child spans that are nested under this span.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeChildSpans(int index) { + if (childSpansBuilder_ == null) { + ensureChildSpansIsMutable(); + childSpans_.remove(index); + onChanged(); + } else { + childSpansBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Output only. The child spans that are nested under this span.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1.Span.Builder getChildSpansBuilder(int index) { + return internalGetChildSpansFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Output only. The child spans that are nested under this span.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1.SpanOrBuilder getChildSpansOrBuilder(int index) { + if (childSpansBuilder_ == null) { + return childSpans_.get(index); + } else { + return childSpansBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Output only. The child spans that are nested under this span.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getChildSpansOrBuilderList() { + if (childSpansBuilder_ != null) { + return childSpansBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(childSpans_); + } + } + + /** + * + * + *
      +     * Output only. The child spans that are nested under this span.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1.Span.Builder addChildSpansBuilder() { + return internalGetChildSpansFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.Span.getDefaultInstance()); + } + + /** + * + * + *
      +     * Output only. The child spans that are nested under this span.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1.Span.Builder addChildSpansBuilder(int index) { + return internalGetChildSpansFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.Span.getDefaultInstance()); + } + + /** + * + * + *
      +     * Output only. The child spans that are nested under this span.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getChildSpansBuilderList() { + return internalGetChildSpansFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Span, + com.google.cloud.ces.v1.Span.Builder, + com.google.cloud.ces.v1.SpanOrBuilder> + internalGetChildSpansFieldBuilder() { + if (childSpansBuilder_ == null) { + childSpansBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.Span, + com.google.cloud.ces.v1.Span.Builder, + com.google.cloud.ces.v1.SpanOrBuilder>( + childSpans_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); + childSpans_ = null; + } + return childSpansBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Span) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.Span) + private static final com.google.cloud.ces.v1.Span DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.Span(); + } + + public static com.google.cloud.ces.v1.Span getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Span parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Span getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SpanOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SpanOrBuilder.java new file mode 100644 index 000000000000..7909ec515a93 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SpanOrBuilder.java @@ -0,0 +1,279 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/common.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface SpanOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.Span) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Output only. The name of the span.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Output only. The name of the span.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Output only. The start time of the span.
      +   * 
      + * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + + /** + * + * + *
      +   * Output only. The start time of the span.
      +   * 
      + * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + + /** + * + * + *
      +   * Output only. The start time of the span.
      +   * 
      + * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
      +   * Output only. The end time of the span.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + + /** + * + * + *
      +   * Output only. The end time of the span.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + + /** + * + * + *
      +   * Output only. The end time of the span.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
      +   * Output only. The duration of the span.
      +   * 
      + * + * .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the duration field is set. + */ + boolean hasDuration(); + + /** + * + * + *
      +   * Output only. The duration of the span.
      +   * 
      + * + * .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The duration. + */ + com.google.protobuf.Duration getDuration(); + + /** + * + * + *
      +   * Output only. The duration of the span.
      +   * 
      + * + * .google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); + + /** + * + * + *
      +   * Output only. Key-value attributes associated with the span.
      +   * 
      + * + * .google.protobuf.Struct attributes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the attributes field is set. + */ + boolean hasAttributes(); + + /** + * + * + *
      +   * Output only. Key-value attributes associated with the span.
      +   * 
      + * + * .google.protobuf.Struct attributes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The attributes. + */ + com.google.protobuf.Struct getAttributes(); + + /** + * + * + *
      +   * Output only. Key-value attributes associated with the span.
      +   * 
      + * + * .google.protobuf.Struct attributes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.StructOrBuilder getAttributesOrBuilder(); + + /** + * + * + *
      +   * Output only. The child spans that are nested under this span.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getChildSpansList(); + + /** + * + * + *
      +   * Output only. The child spans that are nested under this span.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.ces.v1.Span getChildSpans(int index); + + /** + * + * + *
      +   * Output only. The child spans that are nested under this span.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getChildSpansCount(); + + /** + * + * + *
      +   * Output only. The child spans that are nested under this span.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getChildSpansOrBuilderList(); + + /** + * + * + *
      +   * Output only. The child spans that are nested under this span.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.ces.v1.SpanOrBuilder getChildSpansOrBuilder(int index); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SynthesizeSpeechConfig.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SynthesizeSpeechConfig.java new file mode 100644 index 000000000000..6747b502e65f --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SynthesizeSpeechConfig.java @@ -0,0 +1,743 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Configuration for how the agent response should be synthesized.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.SynthesizeSpeechConfig} + */ +@com.google.protobuf.Generated +public final class SynthesizeSpeechConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.SynthesizeSpeechConfig) + SynthesizeSpeechConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SynthesizeSpeechConfig"); + } + + // Use SynthesizeSpeechConfig.newBuilder() to construct. + private SynthesizeSpeechConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SynthesizeSpeechConfig() { + voice_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_SynthesizeSpeechConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_SynthesizeSpeechConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.SynthesizeSpeechConfig.class, + com.google.cloud.ces.v1.SynthesizeSpeechConfig.Builder.class); + } + + public static final int VOICE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object voice_ = ""; + + /** + * + * + *
      +   * Optional. The name of the voice. If not set, the service will choose a
      +   * voice based on the other parameters such as language_code.
      +   *
      +   * For the list of available voices, please refer to [Supported voices and
      +   * languages](https://cloud.google.com/text-to-speech/docs/voices) from Cloud
      +   * Text-to-Speech.
      +   * 
      + * + * string voice = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The voice. + */ + @java.lang.Override + public java.lang.String getVoice() { + java.lang.Object ref = voice_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + voice_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The name of the voice. If not set, the service will choose a
      +   * voice based on the other parameters such as language_code.
      +   *
      +   * For the list of available voices, please refer to [Supported voices and
      +   * languages](https://cloud.google.com/text-to-speech/docs/voices) from Cloud
      +   * Text-to-Speech.
      +   * 
      + * + * string voice = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for voice. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVoiceBytes() { + java.lang.Object ref = voice_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + voice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SPEAKING_RATE_FIELD_NUMBER = 2; + private double speakingRate_ = 0D; + + /** + * + * + *
      +   * Optional. The speaking rate/speed in the range [0.25, 2.0]. 1.0 is the
      +   * normal native speed supported by the specific voice. 2.0 is twice as fast,
      +   * and 0.5 is half as fast. Values outside of the range [0.25, 2.0] will
      +   * return an error.
      +   * 
      + * + * double speaking_rate = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The speakingRate. + */ + @java.lang.Override + public double getSpeakingRate() { + return speakingRate_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(voice_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, voice_); + } + if (java.lang.Double.doubleToRawLongBits(speakingRate_) != 0) { + output.writeDouble(2, speakingRate_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(voice_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, voice_); + } + if (java.lang.Double.doubleToRawLongBits(speakingRate_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, speakingRate_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.SynthesizeSpeechConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.SynthesizeSpeechConfig other = + (com.google.cloud.ces.v1.SynthesizeSpeechConfig) obj; + + if (!getVoice().equals(other.getVoice())) return false; + if (java.lang.Double.doubleToLongBits(getSpeakingRate()) + != java.lang.Double.doubleToLongBits(other.getSpeakingRate())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VOICE_FIELD_NUMBER; + hash = (53 * hash) + getVoice().hashCode(); + hash = (37 * hash) + SPEAKING_RATE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getSpeakingRate())); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.SynthesizeSpeechConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.SynthesizeSpeechConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SynthesizeSpeechConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.SynthesizeSpeechConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SynthesizeSpeechConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.SynthesizeSpeechConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SynthesizeSpeechConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.SynthesizeSpeechConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SynthesizeSpeechConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.SynthesizeSpeechConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SynthesizeSpeechConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.SynthesizeSpeechConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.SynthesizeSpeechConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Configuration for how the agent response should be synthesized.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.SynthesizeSpeechConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.SynthesizeSpeechConfig) + com.google.cloud.ces.v1.SynthesizeSpeechConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_SynthesizeSpeechConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_SynthesizeSpeechConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.SynthesizeSpeechConfig.class, + com.google.cloud.ces.v1.SynthesizeSpeechConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.SynthesizeSpeechConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + voice_ = ""; + speakingRate_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_SynthesizeSpeechConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.SynthesizeSpeechConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1.SynthesizeSpeechConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.SynthesizeSpeechConfig build() { + com.google.cloud.ces.v1.SynthesizeSpeechConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.SynthesizeSpeechConfig buildPartial() { + com.google.cloud.ces.v1.SynthesizeSpeechConfig result = + new com.google.cloud.ces.v1.SynthesizeSpeechConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.SynthesizeSpeechConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.voice_ = voice_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.speakingRate_ = speakingRate_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.SynthesizeSpeechConfig) { + return mergeFrom((com.google.cloud.ces.v1.SynthesizeSpeechConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.SynthesizeSpeechConfig other) { + if (other == com.google.cloud.ces.v1.SynthesizeSpeechConfig.getDefaultInstance()) return this; + if (!other.getVoice().isEmpty()) { + voice_ = other.voice_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (java.lang.Double.doubleToRawLongBits(other.getSpeakingRate()) != 0) { + setSpeakingRate(other.getSpeakingRate()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + voice_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 17: + { + speakingRate_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object voice_ = ""; + + /** + * + * + *
      +     * Optional. The name of the voice. If not set, the service will choose a
      +     * voice based on the other parameters such as language_code.
      +     *
      +     * For the list of available voices, please refer to [Supported voices and
      +     * languages](https://cloud.google.com/text-to-speech/docs/voices) from Cloud
      +     * Text-to-Speech.
      +     * 
      + * + * string voice = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The voice. + */ + public java.lang.String getVoice() { + java.lang.Object ref = voice_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + voice_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The name of the voice. If not set, the service will choose a
      +     * voice based on the other parameters such as language_code.
      +     *
      +     * For the list of available voices, please refer to [Supported voices and
      +     * languages](https://cloud.google.com/text-to-speech/docs/voices) from Cloud
      +     * Text-to-Speech.
      +     * 
      + * + * string voice = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for voice. + */ + public com.google.protobuf.ByteString getVoiceBytes() { + java.lang.Object ref = voice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + voice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The name of the voice. If not set, the service will choose a
      +     * voice based on the other parameters such as language_code.
      +     *
      +     * For the list of available voices, please refer to [Supported voices and
      +     * languages](https://cloud.google.com/text-to-speech/docs/voices) from Cloud
      +     * Text-to-Speech.
      +     * 
      + * + * string voice = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The voice to set. + * @return This builder for chaining. + */ + public Builder setVoice(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + voice_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The name of the voice. If not set, the service will choose a
      +     * voice based on the other parameters such as language_code.
      +     *
      +     * For the list of available voices, please refer to [Supported voices and
      +     * languages](https://cloud.google.com/text-to-speech/docs/voices) from Cloud
      +     * Text-to-Speech.
      +     * 
      + * + * string voice = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearVoice() { + voice_ = getDefaultInstance().getVoice(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The name of the voice. If not set, the service will choose a
      +     * voice based on the other parameters such as language_code.
      +     *
      +     * For the list of available voices, please refer to [Supported voices and
      +     * languages](https://cloud.google.com/text-to-speech/docs/voices) from Cloud
      +     * Text-to-Speech.
      +     * 
      + * + * string voice = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for voice to set. + * @return This builder for chaining. + */ + public Builder setVoiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + voice_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private double speakingRate_; + + /** + * + * + *
      +     * Optional. The speaking rate/speed in the range [0.25, 2.0]. 1.0 is the
      +     * normal native speed supported by the specific voice. 2.0 is twice as fast,
      +     * and 0.5 is half as fast. Values outside of the range [0.25, 2.0] will
      +     * return an error.
      +     * 
      + * + * double speaking_rate = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The speakingRate. + */ + @java.lang.Override + public double getSpeakingRate() { + return speakingRate_; + } + + /** + * + * + *
      +     * Optional. The speaking rate/speed in the range [0.25, 2.0]. 1.0 is the
      +     * normal native speed supported by the specific voice. 2.0 is twice as fast,
      +     * and 0.5 is half as fast. Values outside of the range [0.25, 2.0] will
      +     * return an error.
      +     * 
      + * + * double speaking_rate = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The speakingRate to set. + * @return This builder for chaining. + */ + public Builder setSpeakingRate(double value) { + + speakingRate_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The speaking rate/speed in the range [0.25, 2.0]. 1.0 is the
      +     * normal native speed supported by the specific voice. 2.0 is twice as fast,
      +     * and 0.5 is half as fast. Values outside of the range [0.25, 2.0] will
      +     * return an error.
      +     * 
      + * + * double speaking_rate = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSpeakingRate() { + bitField0_ = (bitField0_ & ~0x00000002); + speakingRate_ = 0D; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.SynthesizeSpeechConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.SynthesizeSpeechConfig) + private static final com.google.cloud.ces.v1.SynthesizeSpeechConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.SynthesizeSpeechConfig(); + } + + public static com.google.cloud.ces.v1.SynthesizeSpeechConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SynthesizeSpeechConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.SynthesizeSpeechConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SynthesizeSpeechConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SynthesizeSpeechConfigOrBuilder.java new file mode 100644 index 000000000000..dd77a507fc66 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SynthesizeSpeechConfigOrBuilder.java @@ -0,0 +1,80 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface SynthesizeSpeechConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.SynthesizeSpeechConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. The name of the voice. If not set, the service will choose a
      +   * voice based on the other parameters such as language_code.
      +   *
      +   * For the list of available voices, please refer to [Supported voices and
      +   * languages](https://cloud.google.com/text-to-speech/docs/voices) from Cloud
      +   * Text-to-Speech.
      +   * 
      + * + * string voice = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The voice. + */ + java.lang.String getVoice(); + + /** + * + * + *
      +   * Optional. The name of the voice. If not set, the service will choose a
      +   * voice based on the other parameters such as language_code.
      +   *
      +   * For the list of available voices, please refer to [Supported voices and
      +   * languages](https://cloud.google.com/text-to-speech/docs/voices) from Cloud
      +   * Text-to-Speech.
      +   * 
      + * + * string voice = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for voice. + */ + com.google.protobuf.ByteString getVoiceBytes(); + + /** + * + * + *
      +   * Optional. The speaking rate/speed in the range [0.25, 2.0]. 1.0 is the
      +   * normal native speed supported by the specific voice. 2.0 is twice as fast,
      +   * and 0.5 is half as fast. Values outside of the range [0.25, 2.0] will
      +   * return an error.
      +   * 
      + * + * double speaking_rate = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The speakingRate. + */ + double getSpeakingRate(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SystemTool.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SystemTool.java new file mode 100644 index 000000000000..f72f7071dd75 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SystemTool.java @@ -0,0 +1,781 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/system_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Pre-defined system tool.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.SystemTool} + */ +@com.google.protobuf.Generated +public final class SystemTool extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.SystemTool) + SystemToolOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SystemTool"); + } + + // Use SystemTool.newBuilder() to construct. + private SystemTool(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SystemTool() { + name_ = ""; + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SystemToolProto + .internal_static_google_cloud_ces_v1_SystemTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SystemToolProto + .internal_static_google_cloud_ces_v1_SystemTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.SystemTool.class, + com.google.cloud.ces.v1.SystemTool.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. The name of the system tool.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The name of the system tool.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
      +   * Output only. The description of the system tool.
      +   * 
      + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
      +   * Output only. The description of the system tool.
      +   * 
      + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + @java.lang.Override + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.SystemTool)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.SystemTool other = (com.google.cloud.ces.v1.SystemTool) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.SystemTool parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.SystemTool parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SystemTool parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.SystemTool parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SystemTool parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.SystemTool parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SystemTool parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.SystemTool parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SystemTool parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.SystemTool parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.SystemTool parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.SystemTool parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.SystemTool prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Pre-defined system tool.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.SystemTool} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.SystemTool) + com.google.cloud.ces.v1.SystemToolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SystemToolProto + .internal_static_google_cloud_ces_v1_SystemTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SystemToolProto + .internal_static_google_cloud_ces_v1_SystemTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.SystemTool.class, + com.google.cloud.ces.v1.SystemTool.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.SystemTool.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + description_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.SystemToolProto + .internal_static_google_cloud_ces_v1_SystemTool_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.SystemTool getDefaultInstanceForType() { + return com.google.cloud.ces.v1.SystemTool.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.SystemTool build() { + com.google.cloud.ces.v1.SystemTool result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.SystemTool buildPartial() { + com.google.cloud.ces.v1.SystemTool result = new com.google.cloud.ces.v1.SystemTool(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.SystemTool result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.SystemTool) { + return mergeFrom((com.google.cloud.ces.v1.SystemTool) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.SystemTool other) { + if (other == com.google.cloud.ces.v1.SystemTool.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Required. The name of the system tool.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The name of the system tool.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The name of the system tool.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The name of the system tool.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The name of the system tool.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
      +     * Output only. The description of the system tool.
      +     * 
      + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Output only. The description of the system tool.
      +     * 
      + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Output only. The description of the system tool.
      +     * 
      + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The description of the system tool.
      +     * 
      + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The description of the system tool.
      +     * 
      + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.SystemTool) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.SystemTool) + private static final com.google.cloud.ces.v1.SystemTool DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.SystemTool(); + } + + public static com.google.cloud.ces.v1.SystemTool getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SystemTool parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.SystemTool getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SystemToolOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SystemToolOrBuilder.java new file mode 100644 index 000000000000..1b3480cae09d --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SystemToolOrBuilder.java @@ -0,0 +1,80 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/system_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface SystemToolOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.SystemTool) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The name of the system tool.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. The name of the system tool.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Output only. The description of the system tool.
      +   * 
      + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
      +   * Output only. The description of the system tool.
      +   * 
      + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SystemToolProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SystemToolProto.java new file mode 100644 index 000000000000..2aed8c39521a --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SystemToolProto.java @@ -0,0 +1,87 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/system_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class SystemToolProto extends com.google.protobuf.GeneratedFile { + private SystemToolProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SystemToolProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_SystemTool_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_SystemTool_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n%google/cloud/ces/v1/system_tool.proto\022" + + "\023google.cloud.ces.v1\032\037google/api/field_b" + + "ehavior.proto\"9\n\nSystemTool\022\021\n\004name\030\001 \001(" + + "\tB\003\340A\002\022\030\n\013description\030\002 \001(\tB\003\340A\003BW\n\027com." + + "google.cloud.ces.v1B\017SystemToolProtoP\001Z)" + + "cloud.google.com/go/ces/apiv1/cespb;cesp" + + "bb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_SystemTool_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_SystemTool_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_SystemTool_descriptor, + new java.lang.String[] { + "Name", "Description", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/TimeZoneSettings.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/TimeZoneSettings.java new file mode 100644 index 000000000000..d75f1b41d785 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/TimeZoneSettings.java @@ -0,0 +1,608 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * TimeZone settings of the app.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.TimeZoneSettings} + */ +@com.google.protobuf.Generated +public final class TimeZoneSettings extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.TimeZoneSettings) + TimeZoneSettingsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TimeZoneSettings"); + } + + // Use TimeZoneSettings.newBuilder() to construct. + private TimeZoneSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TimeZoneSettings() { + timeZone_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_TimeZoneSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_TimeZoneSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.TimeZoneSettings.class, + com.google.cloud.ces.v1.TimeZoneSettings.Builder.class); + } + + public static final int TIME_ZONE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeZone_ = ""; + + /** + * + * + *
      +   * Optional. The time zone of the app from the [time zone
      +   * database](https://www.iana.org/time-zones), e.g., America/Los_Angeles,
      +   * Europe/Paris.
      +   * 
      + * + * string time_zone = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The timeZone. + */ + @java.lang.Override + public java.lang.String getTimeZone() { + java.lang.Object ref = timeZone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeZone_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The time zone of the app from the [time zone
      +   * database](https://www.iana.org/time-zones), e.g., America/Los_Angeles,
      +   * Europe/Paris.
      +   * 
      + * + * string time_zone = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for timeZone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTimeZoneBytes() { + java.lang.Object ref = timeZone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + timeZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(timeZone_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, timeZone_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(timeZone_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, timeZone_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.TimeZoneSettings)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.TimeZoneSettings other = (com.google.cloud.ces.v1.TimeZoneSettings) obj; + + if (!getTimeZone().equals(other.getTimeZone())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getTimeZone().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.TimeZoneSettings parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.TimeZoneSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TimeZoneSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.TimeZoneSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TimeZoneSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.TimeZoneSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TimeZoneSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.TimeZoneSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TimeZoneSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.TimeZoneSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TimeZoneSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.TimeZoneSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.TimeZoneSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * TimeZone settings of the app.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.TimeZoneSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.TimeZoneSettings) + com.google.cloud.ces.v1.TimeZoneSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_TimeZoneSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_TimeZoneSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.TimeZoneSettings.class, + com.google.cloud.ces.v1.TimeZoneSettings.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.TimeZoneSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + timeZone_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AppProto + .internal_static_google_cloud_ces_v1_TimeZoneSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.TimeZoneSettings getDefaultInstanceForType() { + return com.google.cloud.ces.v1.TimeZoneSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.TimeZoneSettings build() { + com.google.cloud.ces.v1.TimeZoneSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.TimeZoneSettings buildPartial() { + com.google.cloud.ces.v1.TimeZoneSettings result = + new com.google.cloud.ces.v1.TimeZoneSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.TimeZoneSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.timeZone_ = timeZone_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.TimeZoneSettings) { + return mergeFrom((com.google.cloud.ces.v1.TimeZoneSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.TimeZoneSettings other) { + if (other == com.google.cloud.ces.v1.TimeZoneSettings.getDefaultInstance()) return this; + if (!other.getTimeZone().isEmpty()) { + timeZone_ = other.timeZone_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + timeZone_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object timeZone_ = ""; + + /** + * + * + *
      +     * Optional. The time zone of the app from the [time zone
      +     * database](https://www.iana.org/time-zones), e.g., America/Los_Angeles,
      +     * Europe/Paris.
      +     * 
      + * + * string time_zone = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The timeZone. + */ + public java.lang.String getTimeZone() { + java.lang.Object ref = timeZone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeZone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The time zone of the app from the [time zone
      +     * database](https://www.iana.org/time-zones), e.g., America/Los_Angeles,
      +     * Europe/Paris.
      +     * 
      + * + * string time_zone = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for timeZone. + */ + public com.google.protobuf.ByteString getTimeZoneBytes() { + java.lang.Object ref = timeZone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + timeZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The time zone of the app from the [time zone
      +     * database](https://www.iana.org/time-zones), e.g., America/Los_Angeles,
      +     * Europe/Paris.
      +     * 
      + * + * string time_zone = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The timeZone to set. + * @return This builder for chaining. + */ + public Builder setTimeZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + timeZone_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The time zone of the app from the [time zone
      +     * database](https://www.iana.org/time-zones), e.g., America/Los_Angeles,
      +     * Europe/Paris.
      +     * 
      + * + * string time_zone = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTimeZone() { + timeZone_ = getDefaultInstance().getTimeZone(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The time zone of the app from the [time zone
      +     * database](https://www.iana.org/time-zones), e.g., America/Los_Angeles,
      +     * Europe/Paris.
      +     * 
      + * + * string time_zone = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for timeZone to set. + * @return This builder for chaining. + */ + public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + timeZone_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.TimeZoneSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.TimeZoneSettings) + private static final com.google.cloud.ces.v1.TimeZoneSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.TimeZoneSettings(); + } + + public static com.google.cloud.ces.v1.TimeZoneSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeZoneSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.TimeZoneSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/TimeZoneSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/TimeZoneSettingsOrBuilder.java new file mode 100644 index 000000000000..64adea50a011 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/TimeZoneSettingsOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/app.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface TimeZoneSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.TimeZoneSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. The time zone of the app from the [time zone
      +   * database](https://www.iana.org/time-zones), e.g., America/Los_Angeles,
      +   * Europe/Paris.
      +   * 
      + * + * string time_zone = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The timeZone. + */ + java.lang.String getTimeZone(); + + /** + * + * + *
      +   * Optional. The time zone of the app from the [time zone
      +   * database](https://www.iana.org/time-zones), e.g., America/Los_Angeles,
      +   * Europe/Paris.
      +   * 
      + * + * string time_zone = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for timeZone. + */ + com.google.protobuf.ByteString getTimeZoneBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/TlsConfig.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/TlsConfig.java new file mode 100644 index 000000000000..32dc335a87a2 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/TlsConfig.java @@ -0,0 +1,1759 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/common.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * The TLS configuration.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.TlsConfig} + */ +@com.google.protobuf.Generated +public final class TlsConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.TlsConfig) + TlsConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TlsConfig"); + } + + // Use TlsConfig.newBuilder() to construct. + private TlsConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TlsConfig() { + caCerts_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TlsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TlsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.TlsConfig.class, + com.google.cloud.ces.v1.TlsConfig.Builder.class); + } + + public interface CaCertOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.TlsConfig.CaCert) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Required. The name of the allowed custom CA certificates. This
      +     * can be used to disambiguate the custom CA certificates.
      +     * 
      + * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
      +     * Required. The name of the allowed custom CA certificates. This
      +     * can be used to disambiguate the custom CA certificates.
      +     * 
      + * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
      +     * Required. The allowed custom CA certificates (in DER format) for
      +     * HTTPS verification. This overrides the default SSL trust store. If this
      +     * is empty or unspecified, CES will use Google's default trust
      +     * store to verify certificates. N.B. Make sure the HTTPS server
      +     * certificates are signed with "subject alt name". For instance a
      +     * certificate can be self-signed using the following command,
      +     * openssl x509 -req -days 200 -in example.com.csr \
      +     * -signkey example.com.key \
      +     * -out example.com.crt \
      +     * -extfile <(printf "\nsubjectAltName='DNS:www.example.com'")
      +     * 
      + * + * bytes cert = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The cert. + */ + com.google.protobuf.ByteString getCert(); + } + + /** + * + * + *
      +   * The CA certificate.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.TlsConfig.CaCert} + */ + public static final class CaCert extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.TlsConfig.CaCert) + CaCertOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CaCert"); + } + + // Use CaCert.newBuilder() to construct. + private CaCert(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CaCert() { + displayName_ = ""; + cert_ = com.google.protobuf.ByteString.EMPTY; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TlsConfig_CaCert_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TlsConfig_CaCert_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.TlsConfig.CaCert.class, + com.google.cloud.ces.v1.TlsConfig.CaCert.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
      +     * Required. The name of the allowed custom CA certificates. This
      +     * can be used to disambiguate the custom CA certificates.
      +     * 
      + * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
      +     * Required. The name of the allowed custom CA certificates. This
      +     * can be used to disambiguate the custom CA certificates.
      +     * 
      + * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CERT_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString cert_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
      +     * Required. The allowed custom CA certificates (in DER format) for
      +     * HTTPS verification. This overrides the default SSL trust store. If this
      +     * is empty or unspecified, CES will use Google's default trust
      +     * store to verify certificates. N.B. Make sure the HTTPS server
      +     * certificates are signed with "subject alt name". For instance a
      +     * certificate can be self-signed using the following command,
      +     * openssl x509 -req -days 200 -in example.com.csr \
      +     * -signkey example.com.key \
      +     * -out example.com.crt \
      +     * -extfile <(printf "\nsubjectAltName='DNS:www.example.com'")
      +     * 
      + * + * bytes cert = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The cert. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCert() { + return cert_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, displayName_); + } + if (!cert_.isEmpty()) { + output.writeBytes(2, cert_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, displayName_); + } + if (!cert_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, cert_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.TlsConfig.CaCert)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.TlsConfig.CaCert other = + (com.google.cloud.ces.v1.TlsConfig.CaCert) obj; + + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getCert().equals(other.getCert())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + CERT_FIELD_NUMBER; + hash = (53 * hash) + getCert().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.TlsConfig.CaCert parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.TlsConfig.CaCert parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TlsConfig.CaCert parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.TlsConfig.CaCert parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TlsConfig.CaCert parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.TlsConfig.CaCert parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TlsConfig.CaCert parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.TlsConfig.CaCert parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TlsConfig.CaCert parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.TlsConfig.CaCert parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TlsConfig.CaCert parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.TlsConfig.CaCert parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.TlsConfig.CaCert prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * The CA certificate.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.TlsConfig.CaCert} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.TlsConfig.CaCert) + com.google.cloud.ces.v1.TlsConfig.CaCertOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TlsConfig_CaCert_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TlsConfig_CaCert_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.TlsConfig.CaCert.class, + com.google.cloud.ces.v1.TlsConfig.CaCert.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.TlsConfig.CaCert.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + displayName_ = ""; + cert_ = com.google.protobuf.ByteString.EMPTY; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TlsConfig_CaCert_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.TlsConfig.CaCert getDefaultInstanceForType() { + return com.google.cloud.ces.v1.TlsConfig.CaCert.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.TlsConfig.CaCert build() { + com.google.cloud.ces.v1.TlsConfig.CaCert result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.TlsConfig.CaCert buildPartial() { + com.google.cloud.ces.v1.TlsConfig.CaCert result = + new com.google.cloud.ces.v1.TlsConfig.CaCert(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.TlsConfig.CaCert result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.cert_ = cert_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.TlsConfig.CaCert) { + return mergeFrom((com.google.cloud.ces.v1.TlsConfig.CaCert) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.TlsConfig.CaCert other) { + if (other == com.google.cloud.ces.v1.TlsConfig.CaCert.getDefaultInstance()) return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCert().isEmpty()) { + setCert(other.getCert()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + cert_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
      +       * Required. The name of the allowed custom CA certificates. This
      +       * can be used to disambiguate the custom CA certificates.
      +       * 
      + * + * string display_name = 1 [(.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; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Required. The name of the allowed custom CA certificates. This
      +       * can be used to disambiguate the custom CA certificates.
      +       * 
      + * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Required. The name of the allowed custom CA certificates. This
      +       * can be used to disambiguate the custom CA certificates.
      +       * 
      + * + * string display_name = 1 [(.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(); + } + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. The name of the allowed custom CA certificates. This
      +       * can be used to disambiguate the custom CA certificates.
      +       * 
      + * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. The name of the allowed custom CA certificates. This
      +       * can be used to disambiguate the custom CA certificates.
      +       * 
      + * + * string display_name = 1 [(.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(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString cert_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
      +       * Required. The allowed custom CA certificates (in DER format) for
      +       * HTTPS verification. This overrides the default SSL trust store. If this
      +       * is empty or unspecified, CES will use Google's default trust
      +       * store to verify certificates. N.B. Make sure the HTTPS server
      +       * certificates are signed with "subject alt name". For instance a
      +       * certificate can be self-signed using the following command,
      +       * openssl x509 -req -days 200 -in example.com.csr \
      +       * -signkey example.com.key \
      +       * -out example.com.crt \
      +       * -extfile <(printf "\nsubjectAltName='DNS:www.example.com'")
      +       * 
      + * + * bytes cert = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The cert. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCert() { + return cert_; + } + + /** + * + * + *
      +       * Required. The allowed custom CA certificates (in DER format) for
      +       * HTTPS verification. This overrides the default SSL trust store. If this
      +       * is empty or unspecified, CES will use Google's default trust
      +       * store to verify certificates. N.B. Make sure the HTTPS server
      +       * certificates are signed with "subject alt name". For instance a
      +       * certificate can be self-signed using the following command,
      +       * openssl x509 -req -days 200 -in example.com.csr \
      +       * -signkey example.com.key \
      +       * -out example.com.crt \
      +       * -extfile <(printf "\nsubjectAltName='DNS:www.example.com'")
      +       * 
      + * + * bytes cert = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The cert to set. + * @return This builder for chaining. + */ + public Builder setCert(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + cert_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. The allowed custom CA certificates (in DER format) for
      +       * HTTPS verification. This overrides the default SSL trust store. If this
      +       * is empty or unspecified, CES will use Google's default trust
      +       * store to verify certificates. N.B. Make sure the HTTPS server
      +       * certificates are signed with "subject alt name". For instance a
      +       * certificate can be self-signed using the following command,
      +       * openssl x509 -req -days 200 -in example.com.csr \
      +       * -signkey example.com.key \
      +       * -out example.com.crt \
      +       * -extfile <(printf "\nsubjectAltName='DNS:www.example.com'")
      +       * 
      + * + * bytes cert = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearCert() { + bitField0_ = (bitField0_ & ~0x00000002); + cert_ = getDefaultInstance().getCert(); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.TlsConfig.CaCert) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.TlsConfig.CaCert) + private static final com.google.cloud.ces.v1.TlsConfig.CaCert DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.TlsConfig.CaCert(); + } + + public static com.google.cloud.ces.v1.TlsConfig.CaCert getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CaCert parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.TlsConfig.CaCert getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int CA_CERTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List caCerts_; + + /** + * + * + *
      +   * Required. Specifies a list of allowed custom CA certificates for HTTPS
      +   * verification.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.TlsConfig.CaCert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getCaCertsList() { + return caCerts_; + } + + /** + * + * + *
      +   * Required. Specifies a list of allowed custom CA certificates for HTTPS
      +   * verification.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.TlsConfig.CaCert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getCaCertsOrBuilderList() { + return caCerts_; + } + + /** + * + * + *
      +   * Required. Specifies a list of allowed custom CA certificates for HTTPS
      +   * verification.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.TlsConfig.CaCert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getCaCertsCount() { + return caCerts_.size(); + } + + /** + * + * + *
      +   * Required. Specifies a list of allowed custom CA certificates for HTTPS
      +   * verification.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.TlsConfig.CaCert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.TlsConfig.CaCert getCaCerts(int index) { + return caCerts_.get(index); + } + + /** + * + * + *
      +   * Required. Specifies a list of allowed custom CA certificates for HTTPS
      +   * verification.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.TlsConfig.CaCert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.TlsConfig.CaCertOrBuilder getCaCertsOrBuilder(int index) { + return caCerts_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < caCerts_.size(); i++) { + output.writeMessage(1, caCerts_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < caCerts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, caCerts_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.TlsConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.TlsConfig other = (com.google.cloud.ces.v1.TlsConfig) obj; + + if (!getCaCertsList().equals(other.getCaCertsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCaCertsCount() > 0) { + hash = (37 * hash) + CA_CERTS_FIELD_NUMBER; + hash = (53 * hash) + getCaCertsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.TlsConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.TlsConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TlsConfig parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.TlsConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TlsConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.TlsConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TlsConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.TlsConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TlsConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.TlsConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TlsConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.TlsConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.TlsConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * The TLS configuration.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.TlsConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.TlsConfig) + com.google.cloud.ces.v1.TlsConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TlsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TlsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.TlsConfig.class, + com.google.cloud.ces.v1.TlsConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.TlsConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (caCertsBuilder_ == null) { + caCerts_ = java.util.Collections.emptyList(); + } else { + caCerts_ = null; + caCertsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TlsConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.TlsConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1.TlsConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.TlsConfig build() { + com.google.cloud.ces.v1.TlsConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.TlsConfig buildPartial() { + com.google.cloud.ces.v1.TlsConfig result = new com.google.cloud.ces.v1.TlsConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1.TlsConfig result) { + if (caCertsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + caCerts_ = java.util.Collections.unmodifiableList(caCerts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.caCerts_ = caCerts_; + } else { + result.caCerts_ = caCertsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.TlsConfig result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.TlsConfig) { + return mergeFrom((com.google.cloud.ces.v1.TlsConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.TlsConfig other) { + if (other == com.google.cloud.ces.v1.TlsConfig.getDefaultInstance()) return this; + if (caCertsBuilder_ == null) { + if (!other.caCerts_.isEmpty()) { + if (caCerts_.isEmpty()) { + caCerts_ = other.caCerts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCaCertsIsMutable(); + caCerts_.addAll(other.caCerts_); + } + onChanged(); + } + } else { + if (!other.caCerts_.isEmpty()) { + if (caCertsBuilder_.isEmpty()) { + caCertsBuilder_.dispose(); + caCertsBuilder_ = null; + caCerts_ = other.caCerts_; + bitField0_ = (bitField0_ & ~0x00000001); + caCertsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCaCertsFieldBuilder() + : null; + } else { + caCertsBuilder_.addAllMessages(other.caCerts_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.ces.v1.TlsConfig.CaCert m = + input.readMessage( + com.google.cloud.ces.v1.TlsConfig.CaCert.parser(), extensionRegistry); + if (caCertsBuilder_ == null) { + ensureCaCertsIsMutable(); + caCerts_.add(m); + } else { + caCertsBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List caCerts_ = + java.util.Collections.emptyList(); + + private void ensureCaCertsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + caCerts_ = new java.util.ArrayList(caCerts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.TlsConfig.CaCert, + com.google.cloud.ces.v1.TlsConfig.CaCert.Builder, + com.google.cloud.ces.v1.TlsConfig.CaCertOrBuilder> + caCertsBuilder_; + + /** + * + * + *
      +     * Required. Specifies a list of allowed custom CA certificates for HTTPS
      +     * verification.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TlsConfig.CaCert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getCaCertsList() { + if (caCertsBuilder_ == null) { + return java.util.Collections.unmodifiableList(caCerts_); + } else { + return caCertsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Required. Specifies a list of allowed custom CA certificates for HTTPS
      +     * verification.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TlsConfig.CaCert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getCaCertsCount() { + if (caCertsBuilder_ == null) { + return caCerts_.size(); + } else { + return caCertsBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Required. Specifies a list of allowed custom CA certificates for HTTPS
      +     * verification.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TlsConfig.CaCert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.TlsConfig.CaCert getCaCerts(int index) { + if (caCertsBuilder_ == null) { + return caCerts_.get(index); + } else { + return caCertsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Required. Specifies a list of allowed custom CA certificates for HTTPS
      +     * verification.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TlsConfig.CaCert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCaCerts(int index, com.google.cloud.ces.v1.TlsConfig.CaCert value) { + if (caCertsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCaCertsIsMutable(); + caCerts_.set(index, value); + onChanged(); + } else { + caCertsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Required. Specifies a list of allowed custom CA certificates for HTTPS
      +     * verification.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TlsConfig.CaCert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCaCerts( + int index, com.google.cloud.ces.v1.TlsConfig.CaCert.Builder builderForValue) { + if (caCertsBuilder_ == null) { + ensureCaCertsIsMutable(); + caCerts_.set(index, builderForValue.build()); + onChanged(); + } else { + caCertsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Required. Specifies a list of allowed custom CA certificates for HTTPS
      +     * verification.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TlsConfig.CaCert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addCaCerts(com.google.cloud.ces.v1.TlsConfig.CaCert value) { + if (caCertsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCaCertsIsMutable(); + caCerts_.add(value); + onChanged(); + } else { + caCertsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Required. Specifies a list of allowed custom CA certificates for HTTPS
      +     * verification.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TlsConfig.CaCert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addCaCerts(int index, com.google.cloud.ces.v1.TlsConfig.CaCert value) { + if (caCertsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCaCertsIsMutable(); + caCerts_.add(index, value); + onChanged(); + } else { + caCertsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Required. Specifies a list of allowed custom CA certificates for HTTPS
      +     * verification.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TlsConfig.CaCert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addCaCerts(com.google.cloud.ces.v1.TlsConfig.CaCert.Builder builderForValue) { + if (caCertsBuilder_ == null) { + ensureCaCertsIsMutable(); + caCerts_.add(builderForValue.build()); + onChanged(); + } else { + caCertsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Required. Specifies a list of allowed custom CA certificates for HTTPS
      +     * verification.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TlsConfig.CaCert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addCaCerts( + int index, com.google.cloud.ces.v1.TlsConfig.CaCert.Builder builderForValue) { + if (caCertsBuilder_ == null) { + ensureCaCertsIsMutable(); + caCerts_.add(index, builderForValue.build()); + onChanged(); + } else { + caCertsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Required. Specifies a list of allowed custom CA certificates for HTTPS
      +     * verification.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TlsConfig.CaCert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllCaCerts( + java.lang.Iterable values) { + if (caCertsBuilder_ == null) { + ensureCaCertsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, caCerts_); + onChanged(); + } else { + caCertsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Required. Specifies a list of allowed custom CA certificates for HTTPS
      +     * verification.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TlsConfig.CaCert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCaCerts() { + if (caCertsBuilder_ == null) { + caCerts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + caCertsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Required. Specifies a list of allowed custom CA certificates for HTTPS
      +     * verification.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TlsConfig.CaCert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeCaCerts(int index) { + if (caCertsBuilder_ == null) { + ensureCaCertsIsMutable(); + caCerts_.remove(index); + onChanged(); + } else { + caCertsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Required. Specifies a list of allowed custom CA certificates for HTTPS
      +     * verification.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TlsConfig.CaCert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.TlsConfig.CaCert.Builder getCaCertsBuilder(int index) { + return internalGetCaCertsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Required. Specifies a list of allowed custom CA certificates for HTTPS
      +     * verification.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TlsConfig.CaCert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.TlsConfig.CaCertOrBuilder getCaCertsOrBuilder(int index) { + if (caCertsBuilder_ == null) { + return caCerts_.get(index); + } else { + return caCertsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Required. Specifies a list of allowed custom CA certificates for HTTPS
      +     * verification.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TlsConfig.CaCert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getCaCertsOrBuilderList() { + if (caCertsBuilder_ != null) { + return caCertsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(caCerts_); + } + } + + /** + * + * + *
      +     * Required. Specifies a list of allowed custom CA certificates for HTTPS
      +     * verification.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TlsConfig.CaCert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.TlsConfig.CaCert.Builder addCaCertsBuilder() { + return internalGetCaCertsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.TlsConfig.CaCert.getDefaultInstance()); + } + + /** + * + * + *
      +     * Required. Specifies a list of allowed custom CA certificates for HTTPS
      +     * verification.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TlsConfig.CaCert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.TlsConfig.CaCert.Builder addCaCertsBuilder(int index) { + return internalGetCaCertsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.TlsConfig.CaCert.getDefaultInstance()); + } + + /** + * + * + *
      +     * Required. Specifies a list of allowed custom CA certificates for HTTPS
      +     * verification.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TlsConfig.CaCert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getCaCertsBuilderList() { + return internalGetCaCertsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.TlsConfig.CaCert, + com.google.cloud.ces.v1.TlsConfig.CaCert.Builder, + com.google.cloud.ces.v1.TlsConfig.CaCertOrBuilder> + internalGetCaCertsFieldBuilder() { + if (caCertsBuilder_ == null) { + caCertsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.TlsConfig.CaCert, + com.google.cloud.ces.v1.TlsConfig.CaCert.Builder, + com.google.cloud.ces.v1.TlsConfig.CaCertOrBuilder>( + caCerts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + caCerts_ = null; + } + return caCertsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.TlsConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.TlsConfig) + private static final com.google.cloud.ces.v1.TlsConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.TlsConfig(); + } + + public static com.google.cloud.ces.v1.TlsConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TlsConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.TlsConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/TlsConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/TlsConfigOrBuilder.java new file mode 100644 index 000000000000..340da4273655 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/TlsConfigOrBuilder.java @@ -0,0 +1,99 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/common.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface TlsConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.TlsConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. Specifies a list of allowed custom CA certificates for HTTPS
      +   * verification.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.TlsConfig.CaCert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getCaCertsList(); + + /** + * + * + *
      +   * Required. Specifies a list of allowed custom CA certificates for HTTPS
      +   * verification.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.TlsConfig.CaCert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.TlsConfig.CaCert getCaCerts(int index); + + /** + * + * + *
      +   * Required. Specifies a list of allowed custom CA certificates for HTTPS
      +   * verification.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.TlsConfig.CaCert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getCaCertsCount(); + + /** + * + * + *
      +   * Required. Specifies a list of allowed custom CA certificates for HTTPS
      +   * verification.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.TlsConfig.CaCert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getCaCertsOrBuilderList(); + + /** + * + * + *
      +   * Required. Specifies a list of allowed custom CA certificates for HTTPS
      +   * verification.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.TlsConfig.CaCert ca_certs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.TlsConfig.CaCertOrBuilder getCaCertsOrBuilder(int index); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Tool.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Tool.java new file mode 100644 index 000000000000..857b1a1ab353 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Tool.java @@ -0,0 +1,5711 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * A tool represents an action that the CES agent can take to achieve certain
      + * goals.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Tool} + */ +@com.google.protobuf.Generated +public final class Tool extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.Tool) + ToolOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Tool"); + } + + // Use Tool.newBuilder() to construct. + private Tool(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Tool() { + name_ = ""; + displayName_ = ""; + executionType_ = 0; + etag_ = ""; + generatedSummary_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ToolProto.internal_static_google_cloud_ces_v1_Tool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ToolProto + .internal_static_google_cloud_ces_v1_Tool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Tool.class, com.google.cloud.ces.v1.Tool.Builder.class); + } + + private int bitField0_; + private int toolTypeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object toolType_; + + public enum ToolTypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CLIENT_FUNCTION(2), + OPEN_API_TOOL(3), + GOOGLE_SEARCH_TOOL(5), + CONNECTOR_TOOL(8), + DATA_STORE_TOOL(10), + PYTHON_FUNCTION(11), + MCP_TOOL(16), + FILE_SEARCH_TOOL(17), + SYSTEM_TOOL(18), + WIDGET_TOOL(24), + TOOLTYPE_NOT_SET(0); + private final int value; + + private ToolTypeCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ToolTypeCase valueOf(int value) { + return forNumber(value); + } + + public static ToolTypeCase forNumber(int value) { + switch (value) { + case 2: + return CLIENT_FUNCTION; + case 3: + return OPEN_API_TOOL; + case 5: + return GOOGLE_SEARCH_TOOL; + case 8: + return CONNECTOR_TOOL; + case 10: + return DATA_STORE_TOOL; + case 11: + return PYTHON_FUNCTION; + case 16: + return MCP_TOOL; + case 17: + return FILE_SEARCH_TOOL; + case 18: + return SYSTEM_TOOL; + case 24: + return WIDGET_TOOL; + case 0: + return TOOLTYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ToolTypeCase getToolTypeCase() { + return ToolTypeCase.forNumber(toolTypeCase_); + } + + public static final int CLIENT_FUNCTION_FIELD_NUMBER = 2; + + /** + * + * + *
      +   * Optional. The client function.
      +   * 
      + * + * + * .google.cloud.ces.v1.ClientFunction client_function = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the clientFunction field is set. + */ + @java.lang.Override + public boolean hasClientFunction() { + return toolTypeCase_ == 2; + } + + /** + * + * + *
      +   * Optional. The client function.
      +   * 
      + * + * + * .google.cloud.ces.v1.ClientFunction client_function = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clientFunction. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ClientFunction getClientFunction() { + if (toolTypeCase_ == 2) { + return (com.google.cloud.ces.v1.ClientFunction) toolType_; + } + return com.google.cloud.ces.v1.ClientFunction.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. The client function.
      +   * 
      + * + * + * .google.cloud.ces.v1.ClientFunction client_function = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ClientFunctionOrBuilder getClientFunctionOrBuilder() { + if (toolTypeCase_ == 2) { + return (com.google.cloud.ces.v1.ClientFunction) toolType_; + } + return com.google.cloud.ces.v1.ClientFunction.getDefaultInstance(); + } + + public static final int OPEN_API_TOOL_FIELD_NUMBER = 3; + + /** + * + * + *
      +   * Optional. The open API tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.OpenApiTool open_api_tool = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the openApiTool field is set. + */ + @java.lang.Override + public boolean hasOpenApiTool() { + return toolTypeCase_ == 3; + } + + /** + * + * + *
      +   * Optional. The open API tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.OpenApiTool open_api_tool = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The openApiTool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.OpenApiTool getOpenApiTool() { + if (toolTypeCase_ == 3) { + return (com.google.cloud.ces.v1.OpenApiTool) toolType_; + } + return com.google.cloud.ces.v1.OpenApiTool.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. The open API tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.OpenApiTool open_api_tool = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.OpenApiToolOrBuilder getOpenApiToolOrBuilder() { + if (toolTypeCase_ == 3) { + return (com.google.cloud.ces.v1.OpenApiTool) toolType_; + } + return com.google.cloud.ces.v1.OpenApiTool.getDefaultInstance(); + } + + public static final int GOOGLE_SEARCH_TOOL_FIELD_NUMBER = 5; + + /** + * + * + *
      +   * Optional. The google search tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.GoogleSearchTool google_search_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the googleSearchTool field is set. + */ + @java.lang.Override + public boolean hasGoogleSearchTool() { + return toolTypeCase_ == 5; + } + + /** + * + * + *
      +   * Optional. The google search tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.GoogleSearchTool google_search_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The googleSearchTool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.GoogleSearchTool getGoogleSearchTool() { + if (toolTypeCase_ == 5) { + return (com.google.cloud.ces.v1.GoogleSearchTool) toolType_; + } + return com.google.cloud.ces.v1.GoogleSearchTool.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. The google search tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.GoogleSearchTool google_search_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.GoogleSearchToolOrBuilder getGoogleSearchToolOrBuilder() { + if (toolTypeCase_ == 5) { + return (com.google.cloud.ces.v1.GoogleSearchTool) toolType_; + } + return com.google.cloud.ces.v1.GoogleSearchTool.getDefaultInstance(); + } + + public static final int CONNECTOR_TOOL_FIELD_NUMBER = 8; + + /** + * + * + *
      +   * Optional. The Integration Connector tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.ConnectorTool connector_tool = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the connectorTool field is set. + */ + @java.lang.Override + public boolean hasConnectorTool() { + return toolTypeCase_ == 8; + } + + /** + * + * + *
      +   * Optional. The Integration Connector tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.ConnectorTool connector_tool = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The connectorTool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ConnectorTool getConnectorTool() { + if (toolTypeCase_ == 8) { + return (com.google.cloud.ces.v1.ConnectorTool) toolType_; + } + return com.google.cloud.ces.v1.ConnectorTool.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. The Integration Connector tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.ConnectorTool connector_tool = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ConnectorToolOrBuilder getConnectorToolOrBuilder() { + if (toolTypeCase_ == 8) { + return (com.google.cloud.ces.v1.ConnectorTool) toolType_; + } + return com.google.cloud.ces.v1.ConnectorTool.getDefaultInstance(); + } + + public static final int DATA_STORE_TOOL_FIELD_NUMBER = 10; + + /** + * + * + *
      +   * Optional. The data store tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool data_store_tool = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataStoreTool field is set. + */ + @java.lang.Override + public boolean hasDataStoreTool() { + return toolTypeCase_ == 10; + } + + /** + * + * + *
      +   * Optional. The data store tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool data_store_tool = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataStoreTool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool getDataStoreTool() { + if (toolTypeCase_ == 10) { + return (com.google.cloud.ces.v1.DataStoreTool) toolType_; + } + return com.google.cloud.ces.v1.DataStoreTool.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. The data store tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool data_store_tool = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreToolOrBuilder getDataStoreToolOrBuilder() { + if (toolTypeCase_ == 10) { + return (com.google.cloud.ces.v1.DataStoreTool) toolType_; + } + return com.google.cloud.ces.v1.DataStoreTool.getDefaultInstance(); + } + + public static final int PYTHON_FUNCTION_FIELD_NUMBER = 11; + + /** + * + * + *
      +   * Optional. The python function tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pythonFunction field is set. + */ + @java.lang.Override + public boolean hasPythonFunction() { + return toolTypeCase_ == 11; + } + + /** + * + * + *
      +   * Optional. The python function tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pythonFunction. + */ + @java.lang.Override + public com.google.cloud.ces.v1.PythonFunction getPythonFunction() { + if (toolTypeCase_ == 11) { + return (com.google.cloud.ces.v1.PythonFunction) toolType_; + } + return com.google.cloud.ces.v1.PythonFunction.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. The python function tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.PythonFunctionOrBuilder getPythonFunctionOrBuilder() { + if (toolTypeCase_ == 11) { + return (com.google.cloud.ces.v1.PythonFunction) toolType_; + } + return com.google.cloud.ces.v1.PythonFunction.getDefaultInstance(); + } + + public static final int MCP_TOOL_FIELD_NUMBER = 16; + + /** + * + * + *
      +   * Optional. The MCP tool. An MCP tool cannot be created or updated directly
      +   * and is managed by the MCP toolset.
      +   * 
      + * + * .google.cloud.ces.v1.McpTool mcp_tool = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mcpTool field is set. + */ + @java.lang.Override + public boolean hasMcpTool() { + return toolTypeCase_ == 16; + } + + /** + * + * + *
      +   * Optional. The MCP tool. An MCP tool cannot be created or updated directly
      +   * and is managed by the MCP toolset.
      +   * 
      + * + * .google.cloud.ces.v1.McpTool mcp_tool = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mcpTool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.McpTool getMcpTool() { + if (toolTypeCase_ == 16) { + return (com.google.cloud.ces.v1.McpTool) toolType_; + } + return com.google.cloud.ces.v1.McpTool.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. The MCP tool. An MCP tool cannot be created or updated directly
      +   * and is managed by the MCP toolset.
      +   * 
      + * + * .google.cloud.ces.v1.McpTool mcp_tool = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.McpToolOrBuilder getMcpToolOrBuilder() { + if (toolTypeCase_ == 16) { + return (com.google.cloud.ces.v1.McpTool) toolType_; + } + return com.google.cloud.ces.v1.McpTool.getDefaultInstance(); + } + + public static final int FILE_SEARCH_TOOL_FIELD_NUMBER = 17; + + /** + * + * + *
      +   * Optional. The file search tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.FileSearchTool file_search_tool = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fileSearchTool field is set. + */ + @java.lang.Override + public boolean hasFileSearchTool() { + return toolTypeCase_ == 17; + } + + /** + * + * + *
      +   * Optional. The file search tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.FileSearchTool file_search_tool = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fileSearchTool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.FileSearchTool getFileSearchTool() { + if (toolTypeCase_ == 17) { + return (com.google.cloud.ces.v1.FileSearchTool) toolType_; + } + return com.google.cloud.ces.v1.FileSearchTool.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. The file search tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.FileSearchTool file_search_tool = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.FileSearchToolOrBuilder getFileSearchToolOrBuilder() { + if (toolTypeCase_ == 17) { + return (com.google.cloud.ces.v1.FileSearchTool) toolType_; + } + return com.google.cloud.ces.v1.FileSearchTool.getDefaultInstance(); + } + + public static final int SYSTEM_TOOL_FIELD_NUMBER = 18; + + /** + * + * + *
      +   * Optional. The system tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.SystemTool system_tool = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the systemTool field is set. + */ + @java.lang.Override + public boolean hasSystemTool() { + return toolTypeCase_ == 18; + } + + /** + * + * + *
      +   * Optional. The system tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.SystemTool system_tool = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The systemTool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.SystemTool getSystemTool() { + if (toolTypeCase_ == 18) { + return (com.google.cloud.ces.v1.SystemTool) toolType_; + } + return com.google.cloud.ces.v1.SystemTool.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. The system tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.SystemTool system_tool = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.SystemToolOrBuilder getSystemToolOrBuilder() { + if (toolTypeCase_ == 18) { + return (com.google.cloud.ces.v1.SystemTool) toolType_; + } + return com.google.cloud.ces.v1.SystemTool.getDefaultInstance(); + } + + public static final int WIDGET_TOOL_FIELD_NUMBER = 24; + + /** + * + * + *
      +   * Optional. The widget tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.WidgetTool widget_tool = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the widgetTool field is set. + */ + @java.lang.Override + public boolean hasWidgetTool() { + return toolTypeCase_ == 24; + } + + /** + * + * + *
      +   * Optional. The widget tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.WidgetTool widget_tool = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The widgetTool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.WidgetTool getWidgetTool() { + if (toolTypeCase_ == 24) { + return (com.google.cloud.ces.v1.WidgetTool) toolType_; + } + return com.google.cloud.ces.v1.WidgetTool.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. The widget tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.WidgetTool widget_tool = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.WidgetToolOrBuilder getWidgetToolOrBuilder() { + if (toolTypeCase_ == 24) { + return (com.google.cloud.ces.v1.WidgetTool) toolType_; + } + return com.google.cloud.ces.v1.WidgetTool.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Identifier. The unique identifier of the tool.
      +   * Format:
      +   * - `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for
      +   * ## standalone tools.
      +   *
      +   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
      +   * for tools retrieved from a toolset. These tools are dynamic and
      +   * output-only, they cannot be referenced directly where a tool is expected.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Identifier. The unique identifier of the tool.
      +   * Format:
      +   * - `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for
      +   * ## standalone tools.
      +   *
      +   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
      +   * for tools retrieved from a toolset. These tools are dynamic and
      +   * output-only, they cannot be referenced directly where a tool is expected.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
      +   * Output only. The display name of the tool, derived based on the tool's
      +   * type. For example, display name of a [ClientFunction][Tool.ClientFunction]
      +   * is derived from its `name` property.
      +   * 
      + * + * string display_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
      +   * Output only. The display name of the tool, derived based on the tool's
      +   * type. For example, display name of a [ClientFunction][Tool.ClientFunction]
      +   * is derived from its `name` property.
      +   * 
      + * + * string display_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXECUTION_TYPE_FIELD_NUMBER = 12; + private int executionType_ = 0; + + /** + * + * + *
      +   * Optional. The execution type of the tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.ExecutionType execution_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for executionType. + */ + @java.lang.Override + public int getExecutionTypeValue() { + return executionType_; + } + + /** + * + * + *
      +   * Optional. The execution type of the tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.ExecutionType execution_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The executionType. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ExecutionType getExecutionType() { + com.google.cloud.ces.v1.ExecutionType result = + com.google.cloud.ces.v1.ExecutionType.forNumber(executionType_); + return result == null ? com.google.cloud.ces.v1.ExecutionType.UNRECOGNIZED : result; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
      +   * Output only. Timestamp when the tool was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Output only. Timestamp when the tool was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
      +   * Output only. Timestamp when the tool was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
      +   * Output only. Timestamp when the tool was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Output only. Timestamp when the tool was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
      +   * Output only. Timestamp when the tool was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int ETAG_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
      +   * Etag used to ensure the object hasn't changed during a read-modify-write
      +   * operation. If the etag is empty, the update will overwrite any concurrent
      +   * changes.
      +   * 
      + * + * string etag = 14; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + + /** + * + * + *
      +   * Etag used to ensure the object hasn't changed during a read-modify-write
      +   * operation. If the etag is empty, the update will overwrite any concurrent
      +   * changes.
      +   * 
      + * + * string etag = 14; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GENERATED_SUMMARY_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") + private volatile java.lang.Object generatedSummary_ = ""; + + /** + * + * + *
      +   * Output only. If the tool is generated by the LLM assistant, this field
      +   * contains a descriptive summary of the generation.
      +   * 
      + * + * string generated_summary = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The generatedSummary. + */ + @java.lang.Override + public java.lang.String getGeneratedSummary() { + java.lang.Object ref = generatedSummary_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + generatedSummary_ = s; + return s; + } + } + + /** + * + * + *
      +   * Output only. If the tool is generated by the LLM assistant, this field
      +   * contains a descriptive summary of the generation.
      +   * 
      + * + * string generated_summary = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for generatedSummary. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGeneratedSummaryBytes() { + java.lang.Object ref = generatedSummary_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + generatedSummary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOL_FAKE_CONFIG_FIELD_NUMBER = 20; + private com.google.cloud.ces.v1.ToolFakeConfig toolFakeConfig_; + + /** + * + * + *
      +   * Optional. Configuration for tool behavior in fake mode.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolFakeConfig tool_fake_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolFakeConfig field is set. + */ + @java.lang.Override + public boolean hasToolFakeConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * Optional. Configuration for tool behavior in fake mode.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolFakeConfig tool_fake_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolFakeConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolFakeConfig getToolFakeConfig() { + return toolFakeConfig_ == null + ? com.google.cloud.ces.v1.ToolFakeConfig.getDefaultInstance() + : toolFakeConfig_; + } + + /** + * + * + *
      +   * Optional. Configuration for tool behavior in fake mode.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolFakeConfig tool_fake_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolFakeConfigOrBuilder getToolFakeConfigOrBuilder() { + return toolFakeConfig_ == null + ? com.google.cloud.ces.v1.ToolFakeConfig.getDefaultInstance() + : toolFakeConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (toolTypeCase_ == 2) { + output.writeMessage(2, (com.google.cloud.ces.v1.ClientFunction) toolType_); + } + if (toolTypeCase_ == 3) { + output.writeMessage(3, (com.google.cloud.ces.v1.OpenApiTool) toolType_); + } + if (toolTypeCase_ == 5) { + output.writeMessage(5, (com.google.cloud.ces.v1.GoogleSearchTool) toolType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getUpdateTime()); + } + if (toolTypeCase_ == 8) { + output.writeMessage(8, (com.google.cloud.ces.v1.ConnectorTool) toolType_); + } + if (toolTypeCase_ == 10) { + output.writeMessage(10, (com.google.cloud.ces.v1.DataStoreTool) toolType_); + } + if (toolTypeCase_ == 11) { + output.writeMessage(11, (com.google.cloud.ces.v1.PythonFunction) toolType_); + } + if (executionType_ + != com.google.cloud.ces.v1.ExecutionType.EXECUTION_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(12, executionType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 13, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 14, etag_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(generatedSummary_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 15, generatedSummary_); + } + if (toolTypeCase_ == 16) { + output.writeMessage(16, (com.google.cloud.ces.v1.McpTool) toolType_); + } + if (toolTypeCase_ == 17) { + output.writeMessage(17, (com.google.cloud.ces.v1.FileSearchTool) toolType_); + } + if (toolTypeCase_ == 18) { + output.writeMessage(18, (com.google.cloud.ces.v1.SystemTool) toolType_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(20, getToolFakeConfig()); + } + if (toolTypeCase_ == 24) { + output.writeMessage(24, (com.google.cloud.ces.v1.WidgetTool) toolType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (toolTypeCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.ces.v1.ClientFunction) toolType_); + } + if (toolTypeCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.ces.v1.OpenApiTool) toolType_); + } + if (toolTypeCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.ces.v1.GoogleSearchTool) toolType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + } + if (toolTypeCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.ces.v1.ConnectorTool) toolType_); + } + if (toolTypeCase_ == 10) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, (com.google.cloud.ces.v1.DataStoreTool) toolType_); + } + if (toolTypeCase_ == 11) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, (com.google.cloud.ces.v1.PythonFunction) toolType_); + } + if (executionType_ + != com.google.cloud.ces.v1.ExecutionType.EXECUTION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, executionType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(13, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(14, etag_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(generatedSummary_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(15, generatedSummary_); + } + if (toolTypeCase_ == 16) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 16, (com.google.cloud.ces.v1.McpTool) toolType_); + } + if (toolTypeCase_ == 17) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 17, (com.google.cloud.ces.v1.FileSearchTool) toolType_); + } + if (toolTypeCase_ == 18) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 18, (com.google.cloud.ces.v1.SystemTool) toolType_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getToolFakeConfig()); + } + if (toolTypeCase_ == 24) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 24, (com.google.cloud.ces.v1.WidgetTool) toolType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.Tool)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.Tool other = (com.google.cloud.ces.v1.Tool) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (executionType_ != other.executionType_) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getEtag().equals(other.getEtag())) return false; + if (!getGeneratedSummary().equals(other.getGeneratedSummary())) return false; + if (hasToolFakeConfig() != other.hasToolFakeConfig()) return false; + if (hasToolFakeConfig()) { + if (!getToolFakeConfig().equals(other.getToolFakeConfig())) return false; + } + if (!getToolTypeCase().equals(other.getToolTypeCase())) return false; + switch (toolTypeCase_) { + case 2: + if (!getClientFunction().equals(other.getClientFunction())) return false; + break; + case 3: + if (!getOpenApiTool().equals(other.getOpenApiTool())) return false; + break; + case 5: + if (!getGoogleSearchTool().equals(other.getGoogleSearchTool())) return false; + break; + case 8: + if (!getConnectorTool().equals(other.getConnectorTool())) return false; + break; + case 10: + if (!getDataStoreTool().equals(other.getDataStoreTool())) return false; + break; + case 11: + if (!getPythonFunction().equals(other.getPythonFunction())) return false; + break; + case 16: + if (!getMcpTool().equals(other.getMcpTool())) return false; + break; + case 17: + if (!getFileSearchTool().equals(other.getFileSearchTool())) return false; + break; + case 18: + if (!getSystemTool().equals(other.getSystemTool())) return false; + break; + case 24: + if (!getWidgetTool().equals(other.getWidgetTool())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + EXECUTION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + executionType_; + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + GENERATED_SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getGeneratedSummary().hashCode(); + if (hasToolFakeConfig()) { + hash = (37 * hash) + TOOL_FAKE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getToolFakeConfig().hashCode(); + } + switch (toolTypeCase_) { + case 2: + hash = (37 * hash) + CLIENT_FUNCTION_FIELD_NUMBER; + hash = (53 * hash) + getClientFunction().hashCode(); + break; + case 3: + hash = (37 * hash) + OPEN_API_TOOL_FIELD_NUMBER; + hash = (53 * hash) + getOpenApiTool().hashCode(); + break; + case 5: + hash = (37 * hash) + GOOGLE_SEARCH_TOOL_FIELD_NUMBER; + hash = (53 * hash) + getGoogleSearchTool().hashCode(); + break; + case 8: + hash = (37 * hash) + CONNECTOR_TOOL_FIELD_NUMBER; + hash = (53 * hash) + getConnectorTool().hashCode(); + break; + case 10: + hash = (37 * hash) + DATA_STORE_TOOL_FIELD_NUMBER; + hash = (53 * hash) + getDataStoreTool().hashCode(); + break; + case 11: + hash = (37 * hash) + PYTHON_FUNCTION_FIELD_NUMBER; + hash = (53 * hash) + getPythonFunction().hashCode(); + break; + case 16: + hash = (37 * hash) + MCP_TOOL_FIELD_NUMBER; + hash = (53 * hash) + getMcpTool().hashCode(); + break; + case 17: + hash = (37 * hash) + FILE_SEARCH_TOOL_FIELD_NUMBER; + hash = (53 * hash) + getFileSearchTool().hashCode(); + break; + case 18: + hash = (37 * hash) + SYSTEM_TOOL_FIELD_NUMBER; + hash = (53 * hash) + getSystemTool().hashCode(); + break; + case 24: + hash = (37 * hash) + WIDGET_TOOL_FIELD_NUMBER; + hash = (53 * hash) + getWidgetTool().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.Tool parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Tool parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Tool parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Tool parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Tool parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Tool parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Tool parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Tool parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Tool parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Tool parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Tool parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Tool parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.Tool prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * A tool represents an action that the CES agent can take to achieve certain
      +   * goals.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Tool} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.Tool) + com.google.cloud.ces.v1.ToolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ToolProto.internal_static_google_cloud_ces_v1_Tool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ToolProto + .internal_static_google_cloud_ces_v1_Tool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Tool.class, com.google.cloud.ces.v1.Tool.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.Tool.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetToolFakeConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (clientFunctionBuilder_ != null) { + clientFunctionBuilder_.clear(); + } + if (openApiToolBuilder_ != null) { + openApiToolBuilder_.clear(); + } + if (googleSearchToolBuilder_ != null) { + googleSearchToolBuilder_.clear(); + } + if (connectorToolBuilder_ != null) { + connectorToolBuilder_.clear(); + } + if (dataStoreToolBuilder_ != null) { + dataStoreToolBuilder_.clear(); + } + if (pythonFunctionBuilder_ != null) { + pythonFunctionBuilder_.clear(); + } + if (mcpToolBuilder_ != null) { + mcpToolBuilder_.clear(); + } + if (fileSearchToolBuilder_ != null) { + fileSearchToolBuilder_.clear(); + } + if (systemToolBuilder_ != null) { + systemToolBuilder_.clear(); + } + if (widgetToolBuilder_ != null) { + widgetToolBuilder_.clear(); + } + name_ = ""; + displayName_ = ""; + executionType_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + etag_ = ""; + generatedSummary_ = ""; + toolFakeConfig_ = null; + if (toolFakeConfigBuilder_ != null) { + toolFakeConfigBuilder_.dispose(); + toolFakeConfigBuilder_ = null; + } + toolTypeCase_ = 0; + toolType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.ToolProto.internal_static_google_cloud_ces_v1_Tool_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Tool getDefaultInstanceForType() { + return com.google.cloud.ces.v1.Tool.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.Tool build() { + com.google.cloud.ces.v1.Tool result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Tool buildPartial() { + com.google.cloud.ces.v1.Tool result = new com.google.cloud.ces.v1.Tool(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.Tool result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000400) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.executionType_ = executionType_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00002000) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.generatedSummary_ = generatedSummary_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.toolFakeConfig_ = + toolFakeConfigBuilder_ == null ? toolFakeConfig_ : toolFakeConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.ces.v1.Tool result) { + result.toolTypeCase_ = toolTypeCase_; + result.toolType_ = this.toolType_; + if (toolTypeCase_ == 2 && clientFunctionBuilder_ != null) { + result.toolType_ = clientFunctionBuilder_.build(); + } + if (toolTypeCase_ == 3 && openApiToolBuilder_ != null) { + result.toolType_ = openApiToolBuilder_.build(); + } + if (toolTypeCase_ == 5 && googleSearchToolBuilder_ != null) { + result.toolType_ = googleSearchToolBuilder_.build(); + } + if (toolTypeCase_ == 8 && connectorToolBuilder_ != null) { + result.toolType_ = connectorToolBuilder_.build(); + } + if (toolTypeCase_ == 10 && dataStoreToolBuilder_ != null) { + result.toolType_ = dataStoreToolBuilder_.build(); + } + if (toolTypeCase_ == 11 && pythonFunctionBuilder_ != null) { + result.toolType_ = pythonFunctionBuilder_.build(); + } + if (toolTypeCase_ == 16 && mcpToolBuilder_ != null) { + result.toolType_ = mcpToolBuilder_.build(); + } + if (toolTypeCase_ == 17 && fileSearchToolBuilder_ != null) { + result.toolType_ = fileSearchToolBuilder_.build(); + } + if (toolTypeCase_ == 18 && systemToolBuilder_ != null) { + result.toolType_ = systemToolBuilder_.build(); + } + if (toolTypeCase_ == 24 && widgetToolBuilder_ != null) { + result.toolType_ = widgetToolBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.Tool) { + return mergeFrom((com.google.cloud.ces.v1.Tool) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.Tool other) { + if (other == com.google.cloud.ces.v1.Tool.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (other.executionType_ != 0) { + setExecutionTypeValue(other.getExecutionTypeValue()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00008000; + onChanged(); + } + if (!other.getGeneratedSummary().isEmpty()) { + generatedSummary_ = other.generatedSummary_; + bitField0_ |= 0x00010000; + onChanged(); + } + if (other.hasToolFakeConfig()) { + mergeToolFakeConfig(other.getToolFakeConfig()); + } + switch (other.getToolTypeCase()) { + case CLIENT_FUNCTION: + { + mergeClientFunction(other.getClientFunction()); + break; + } + case OPEN_API_TOOL: + { + mergeOpenApiTool(other.getOpenApiTool()); + break; + } + case GOOGLE_SEARCH_TOOL: + { + mergeGoogleSearchTool(other.getGoogleSearchTool()); + break; + } + case CONNECTOR_TOOL: + { + mergeConnectorTool(other.getConnectorTool()); + break; + } + case DATA_STORE_TOOL: + { + mergeDataStoreTool(other.getDataStoreTool()); + break; + } + case PYTHON_FUNCTION: + { + mergePythonFunction(other.getPythonFunction()); + break; + } + case MCP_TOOL: + { + mergeMcpTool(other.getMcpTool()); + break; + } + case FILE_SEARCH_TOOL: + { + mergeFileSearchTool(other.getFileSearchTool()); + break; + } + case SYSTEM_TOOL: + { + mergeSystemTool(other.getSystemTool()); + break; + } + case WIDGET_TOOL: + { + mergeWidgetTool(other.getWidgetTool()); + break; + } + case TOOLTYPE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetClientFunctionFieldBuilder().getBuilder(), extensionRegistry); + toolTypeCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetOpenApiToolFieldBuilder().getBuilder(), extensionRegistry); + toolTypeCase_ = 3; + break; + } // case 26 + case 42: + { + input.readMessage( + internalGetGoogleSearchToolFieldBuilder().getBuilder(), extensionRegistry); + toolTypeCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetConnectorToolFieldBuilder().getBuilder(), extensionRegistry); + toolTypeCase_ = 8; + break; + } // case 66 + case 82: + { + input.readMessage( + internalGetDataStoreToolFieldBuilder().getBuilder(), extensionRegistry); + toolTypeCase_ = 10; + break; + } // case 82 + case 90: + { + input.readMessage( + internalGetPythonFunctionFieldBuilder().getBuilder(), extensionRegistry); + toolTypeCase_ = 11; + break; + } // case 90 + case 96: + { + executionType_ = input.readEnum(); + bitField0_ |= 0x00001000; + break; + } // case 96 + case 106: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 106 + case 114: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00008000; + break; + } // case 114 + case 122: + { + generatedSummary_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00010000; + break; + } // case 122 + case 130: + { + input.readMessage(internalGetMcpToolFieldBuilder().getBuilder(), extensionRegistry); + toolTypeCase_ = 16; + break; + } // case 130 + case 138: + { + input.readMessage( + internalGetFileSearchToolFieldBuilder().getBuilder(), extensionRegistry); + toolTypeCase_ = 17; + break; + } // case 138 + case 146: + { + input.readMessage( + internalGetSystemToolFieldBuilder().getBuilder(), extensionRegistry); + toolTypeCase_ = 18; + break; + } // case 146 + case 162: + { + input.readMessage( + internalGetToolFakeConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 162 + case 194: + { + input.readMessage( + internalGetWidgetToolFieldBuilder().getBuilder(), extensionRegistry); + toolTypeCase_ = 24; + break; + } // case 194 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int toolTypeCase_ = 0; + private java.lang.Object toolType_; + + public ToolTypeCase getToolTypeCase() { + return ToolTypeCase.forNumber(toolTypeCase_); + } + + public Builder clearToolType() { + toolTypeCase_ = 0; + toolType_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ClientFunction, + com.google.cloud.ces.v1.ClientFunction.Builder, + com.google.cloud.ces.v1.ClientFunctionOrBuilder> + clientFunctionBuilder_; + + /** + * + * + *
      +     * Optional. The client function.
      +     * 
      + * + * + * .google.cloud.ces.v1.ClientFunction client_function = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the clientFunction field is set. + */ + @java.lang.Override + public boolean hasClientFunction() { + return toolTypeCase_ == 2; + } + + /** + * + * + *
      +     * Optional. The client function.
      +     * 
      + * + * + * .google.cloud.ces.v1.ClientFunction client_function = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clientFunction. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ClientFunction getClientFunction() { + if (clientFunctionBuilder_ == null) { + if (toolTypeCase_ == 2) { + return (com.google.cloud.ces.v1.ClientFunction) toolType_; + } + return com.google.cloud.ces.v1.ClientFunction.getDefaultInstance(); + } else { + if (toolTypeCase_ == 2) { + return clientFunctionBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.ClientFunction.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The client function.
      +     * 
      + * + * + * .google.cloud.ces.v1.ClientFunction client_function = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setClientFunction(com.google.cloud.ces.v1.ClientFunction value) { + if (clientFunctionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolType_ = value; + onChanged(); + } else { + clientFunctionBuilder_.setMessage(value); + } + toolTypeCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Optional. The client function.
      +     * 
      + * + * + * .google.cloud.ces.v1.ClientFunction client_function = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setClientFunction( + com.google.cloud.ces.v1.ClientFunction.Builder builderForValue) { + if (clientFunctionBuilder_ == null) { + toolType_ = builderForValue.build(); + onChanged(); + } else { + clientFunctionBuilder_.setMessage(builderForValue.build()); + } + toolTypeCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Optional. The client function.
      +     * 
      + * + * + * .google.cloud.ces.v1.ClientFunction client_function = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeClientFunction(com.google.cloud.ces.v1.ClientFunction value) { + if (clientFunctionBuilder_ == null) { + if (toolTypeCase_ == 2 + && toolType_ != com.google.cloud.ces.v1.ClientFunction.getDefaultInstance()) { + toolType_ = + com.google.cloud.ces.v1.ClientFunction.newBuilder( + (com.google.cloud.ces.v1.ClientFunction) toolType_) + .mergeFrom(value) + .buildPartial(); + } else { + toolType_ = value; + } + onChanged(); + } else { + if (toolTypeCase_ == 2) { + clientFunctionBuilder_.mergeFrom(value); + } else { + clientFunctionBuilder_.setMessage(value); + } + } + toolTypeCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Optional. The client function.
      +     * 
      + * + * + * .google.cloud.ces.v1.ClientFunction client_function = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearClientFunction() { + if (clientFunctionBuilder_ == null) { + if (toolTypeCase_ == 2) { + toolTypeCase_ = 0; + toolType_ = null; + onChanged(); + } + } else { + if (toolTypeCase_ == 2) { + toolTypeCase_ = 0; + toolType_ = null; + } + clientFunctionBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The client function.
      +     * 
      + * + * + * .google.cloud.ces.v1.ClientFunction client_function = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ClientFunction.Builder getClientFunctionBuilder() { + return internalGetClientFunctionFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The client function.
      +     * 
      + * + * + * .google.cloud.ces.v1.ClientFunction client_function = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ClientFunctionOrBuilder getClientFunctionOrBuilder() { + if ((toolTypeCase_ == 2) && (clientFunctionBuilder_ != null)) { + return clientFunctionBuilder_.getMessageOrBuilder(); + } else { + if (toolTypeCase_ == 2) { + return (com.google.cloud.ces.v1.ClientFunction) toolType_; + } + return com.google.cloud.ces.v1.ClientFunction.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The client function.
      +     * 
      + * + * + * .google.cloud.ces.v1.ClientFunction client_function = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ClientFunction, + com.google.cloud.ces.v1.ClientFunction.Builder, + com.google.cloud.ces.v1.ClientFunctionOrBuilder> + internalGetClientFunctionFieldBuilder() { + if (clientFunctionBuilder_ == null) { + if (!(toolTypeCase_ == 2)) { + toolType_ = com.google.cloud.ces.v1.ClientFunction.getDefaultInstance(); + } + clientFunctionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ClientFunction, + com.google.cloud.ces.v1.ClientFunction.Builder, + com.google.cloud.ces.v1.ClientFunctionOrBuilder>( + (com.google.cloud.ces.v1.ClientFunction) toolType_, + getParentForChildren(), + isClean()); + toolType_ = null; + } + toolTypeCase_ = 2; + onChanged(); + return clientFunctionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.OpenApiTool, + com.google.cloud.ces.v1.OpenApiTool.Builder, + com.google.cloud.ces.v1.OpenApiToolOrBuilder> + openApiToolBuilder_; + + /** + * + * + *
      +     * Optional. The open API tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.OpenApiTool open_api_tool = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the openApiTool field is set. + */ + @java.lang.Override + public boolean hasOpenApiTool() { + return toolTypeCase_ == 3; + } + + /** + * + * + *
      +     * Optional. The open API tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.OpenApiTool open_api_tool = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The openApiTool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.OpenApiTool getOpenApiTool() { + if (openApiToolBuilder_ == null) { + if (toolTypeCase_ == 3) { + return (com.google.cloud.ces.v1.OpenApiTool) toolType_; + } + return com.google.cloud.ces.v1.OpenApiTool.getDefaultInstance(); + } else { + if (toolTypeCase_ == 3) { + return openApiToolBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.OpenApiTool.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The open API tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.OpenApiTool open_api_tool = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOpenApiTool(com.google.cloud.ces.v1.OpenApiTool value) { + if (openApiToolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolType_ = value; + onChanged(); + } else { + openApiToolBuilder_.setMessage(value); + } + toolTypeCase_ = 3; + return this; + } + + /** + * + * + *
      +     * Optional. The open API tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.OpenApiTool open_api_tool = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOpenApiTool(com.google.cloud.ces.v1.OpenApiTool.Builder builderForValue) { + if (openApiToolBuilder_ == null) { + toolType_ = builderForValue.build(); + onChanged(); + } else { + openApiToolBuilder_.setMessage(builderForValue.build()); + } + toolTypeCase_ = 3; + return this; + } + + /** + * + * + *
      +     * Optional. The open API tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.OpenApiTool open_api_tool = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeOpenApiTool(com.google.cloud.ces.v1.OpenApiTool value) { + if (openApiToolBuilder_ == null) { + if (toolTypeCase_ == 3 + && toolType_ != com.google.cloud.ces.v1.OpenApiTool.getDefaultInstance()) { + toolType_ = + com.google.cloud.ces.v1.OpenApiTool.newBuilder( + (com.google.cloud.ces.v1.OpenApiTool) toolType_) + .mergeFrom(value) + .buildPartial(); + } else { + toolType_ = value; + } + onChanged(); + } else { + if (toolTypeCase_ == 3) { + openApiToolBuilder_.mergeFrom(value); + } else { + openApiToolBuilder_.setMessage(value); + } + } + toolTypeCase_ = 3; + return this; + } + + /** + * + * + *
      +     * Optional. The open API tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.OpenApiTool open_api_tool = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOpenApiTool() { + if (openApiToolBuilder_ == null) { + if (toolTypeCase_ == 3) { + toolTypeCase_ = 0; + toolType_ = null; + onChanged(); + } + } else { + if (toolTypeCase_ == 3) { + toolTypeCase_ = 0; + toolType_ = null; + } + openApiToolBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The open API tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.OpenApiTool open_api_tool = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.OpenApiTool.Builder getOpenApiToolBuilder() { + return internalGetOpenApiToolFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The open API tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.OpenApiTool open_api_tool = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.OpenApiToolOrBuilder getOpenApiToolOrBuilder() { + if ((toolTypeCase_ == 3) && (openApiToolBuilder_ != null)) { + return openApiToolBuilder_.getMessageOrBuilder(); + } else { + if (toolTypeCase_ == 3) { + return (com.google.cloud.ces.v1.OpenApiTool) toolType_; + } + return com.google.cloud.ces.v1.OpenApiTool.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The open API tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.OpenApiTool open_api_tool = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.OpenApiTool, + com.google.cloud.ces.v1.OpenApiTool.Builder, + com.google.cloud.ces.v1.OpenApiToolOrBuilder> + internalGetOpenApiToolFieldBuilder() { + if (openApiToolBuilder_ == null) { + if (!(toolTypeCase_ == 3)) { + toolType_ = com.google.cloud.ces.v1.OpenApiTool.getDefaultInstance(); + } + openApiToolBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.OpenApiTool, + com.google.cloud.ces.v1.OpenApiTool.Builder, + com.google.cloud.ces.v1.OpenApiToolOrBuilder>( + (com.google.cloud.ces.v1.OpenApiTool) toolType_, getParentForChildren(), isClean()); + toolType_ = null; + } + toolTypeCase_ = 3; + onChanged(); + return openApiToolBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.GoogleSearchTool, + com.google.cloud.ces.v1.GoogleSearchTool.Builder, + com.google.cloud.ces.v1.GoogleSearchToolOrBuilder> + googleSearchToolBuilder_; + + /** + * + * + *
      +     * Optional. The google search tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.GoogleSearchTool google_search_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the googleSearchTool field is set. + */ + @java.lang.Override + public boolean hasGoogleSearchTool() { + return toolTypeCase_ == 5; + } + + /** + * + * + *
      +     * Optional. The google search tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.GoogleSearchTool google_search_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The googleSearchTool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.GoogleSearchTool getGoogleSearchTool() { + if (googleSearchToolBuilder_ == null) { + if (toolTypeCase_ == 5) { + return (com.google.cloud.ces.v1.GoogleSearchTool) toolType_; + } + return com.google.cloud.ces.v1.GoogleSearchTool.getDefaultInstance(); + } else { + if (toolTypeCase_ == 5) { + return googleSearchToolBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.GoogleSearchTool.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The google search tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.GoogleSearchTool google_search_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGoogleSearchTool(com.google.cloud.ces.v1.GoogleSearchTool value) { + if (googleSearchToolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolType_ = value; + onChanged(); + } else { + googleSearchToolBuilder_.setMessage(value); + } + toolTypeCase_ = 5; + return this; + } + + /** + * + * + *
      +     * Optional. The google search tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.GoogleSearchTool google_search_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGoogleSearchTool( + com.google.cloud.ces.v1.GoogleSearchTool.Builder builderForValue) { + if (googleSearchToolBuilder_ == null) { + toolType_ = builderForValue.build(); + onChanged(); + } else { + googleSearchToolBuilder_.setMessage(builderForValue.build()); + } + toolTypeCase_ = 5; + return this; + } + + /** + * + * + *
      +     * Optional. The google search tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.GoogleSearchTool google_search_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGoogleSearchTool(com.google.cloud.ces.v1.GoogleSearchTool value) { + if (googleSearchToolBuilder_ == null) { + if (toolTypeCase_ == 5 + && toolType_ != com.google.cloud.ces.v1.GoogleSearchTool.getDefaultInstance()) { + toolType_ = + com.google.cloud.ces.v1.GoogleSearchTool.newBuilder( + (com.google.cloud.ces.v1.GoogleSearchTool) toolType_) + .mergeFrom(value) + .buildPartial(); + } else { + toolType_ = value; + } + onChanged(); + } else { + if (toolTypeCase_ == 5) { + googleSearchToolBuilder_.mergeFrom(value); + } else { + googleSearchToolBuilder_.setMessage(value); + } + } + toolTypeCase_ = 5; + return this; + } + + /** + * + * + *
      +     * Optional. The google search tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.GoogleSearchTool google_search_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGoogleSearchTool() { + if (googleSearchToolBuilder_ == null) { + if (toolTypeCase_ == 5) { + toolTypeCase_ = 0; + toolType_ = null; + onChanged(); + } + } else { + if (toolTypeCase_ == 5) { + toolTypeCase_ = 0; + toolType_ = null; + } + googleSearchToolBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The google search tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.GoogleSearchTool google_search_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.GoogleSearchTool.Builder getGoogleSearchToolBuilder() { + return internalGetGoogleSearchToolFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The google search tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.GoogleSearchTool google_search_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.GoogleSearchToolOrBuilder getGoogleSearchToolOrBuilder() { + if ((toolTypeCase_ == 5) && (googleSearchToolBuilder_ != null)) { + return googleSearchToolBuilder_.getMessageOrBuilder(); + } else { + if (toolTypeCase_ == 5) { + return (com.google.cloud.ces.v1.GoogleSearchTool) toolType_; + } + return com.google.cloud.ces.v1.GoogleSearchTool.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The google search tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.GoogleSearchTool google_search_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.GoogleSearchTool, + com.google.cloud.ces.v1.GoogleSearchTool.Builder, + com.google.cloud.ces.v1.GoogleSearchToolOrBuilder> + internalGetGoogleSearchToolFieldBuilder() { + if (googleSearchToolBuilder_ == null) { + if (!(toolTypeCase_ == 5)) { + toolType_ = com.google.cloud.ces.v1.GoogleSearchTool.getDefaultInstance(); + } + googleSearchToolBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.GoogleSearchTool, + com.google.cloud.ces.v1.GoogleSearchTool.Builder, + com.google.cloud.ces.v1.GoogleSearchToolOrBuilder>( + (com.google.cloud.ces.v1.GoogleSearchTool) toolType_, + getParentForChildren(), + isClean()); + toolType_ = null; + } + toolTypeCase_ = 5; + onChanged(); + return googleSearchToolBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ConnectorTool, + com.google.cloud.ces.v1.ConnectorTool.Builder, + com.google.cloud.ces.v1.ConnectorToolOrBuilder> + connectorToolBuilder_; + + /** + * + * + *
      +     * Optional. The Integration Connector tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.ConnectorTool connector_tool = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the connectorTool field is set. + */ + @java.lang.Override + public boolean hasConnectorTool() { + return toolTypeCase_ == 8; + } + + /** + * + * + *
      +     * Optional. The Integration Connector tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.ConnectorTool connector_tool = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The connectorTool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ConnectorTool getConnectorTool() { + if (connectorToolBuilder_ == null) { + if (toolTypeCase_ == 8) { + return (com.google.cloud.ces.v1.ConnectorTool) toolType_; + } + return com.google.cloud.ces.v1.ConnectorTool.getDefaultInstance(); + } else { + if (toolTypeCase_ == 8) { + return connectorToolBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.ConnectorTool.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The Integration Connector tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.ConnectorTool connector_tool = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConnectorTool(com.google.cloud.ces.v1.ConnectorTool value) { + if (connectorToolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolType_ = value; + onChanged(); + } else { + connectorToolBuilder_.setMessage(value); + } + toolTypeCase_ = 8; + return this; + } + + /** + * + * + *
      +     * Optional. The Integration Connector tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.ConnectorTool connector_tool = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConnectorTool(com.google.cloud.ces.v1.ConnectorTool.Builder builderForValue) { + if (connectorToolBuilder_ == null) { + toolType_ = builderForValue.build(); + onChanged(); + } else { + connectorToolBuilder_.setMessage(builderForValue.build()); + } + toolTypeCase_ = 8; + return this; + } + + /** + * + * + *
      +     * Optional. The Integration Connector tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.ConnectorTool connector_tool = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeConnectorTool(com.google.cloud.ces.v1.ConnectorTool value) { + if (connectorToolBuilder_ == null) { + if (toolTypeCase_ == 8 + && toolType_ != com.google.cloud.ces.v1.ConnectorTool.getDefaultInstance()) { + toolType_ = + com.google.cloud.ces.v1.ConnectorTool.newBuilder( + (com.google.cloud.ces.v1.ConnectorTool) toolType_) + .mergeFrom(value) + .buildPartial(); + } else { + toolType_ = value; + } + onChanged(); + } else { + if (toolTypeCase_ == 8) { + connectorToolBuilder_.mergeFrom(value); + } else { + connectorToolBuilder_.setMessage(value); + } + } + toolTypeCase_ = 8; + return this; + } + + /** + * + * + *
      +     * Optional. The Integration Connector tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.ConnectorTool connector_tool = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearConnectorTool() { + if (connectorToolBuilder_ == null) { + if (toolTypeCase_ == 8) { + toolTypeCase_ = 0; + toolType_ = null; + onChanged(); + } + } else { + if (toolTypeCase_ == 8) { + toolTypeCase_ = 0; + toolType_ = null; + } + connectorToolBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The Integration Connector tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.ConnectorTool connector_tool = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ConnectorTool.Builder getConnectorToolBuilder() { + return internalGetConnectorToolFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The Integration Connector tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.ConnectorTool connector_tool = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ConnectorToolOrBuilder getConnectorToolOrBuilder() { + if ((toolTypeCase_ == 8) && (connectorToolBuilder_ != null)) { + return connectorToolBuilder_.getMessageOrBuilder(); + } else { + if (toolTypeCase_ == 8) { + return (com.google.cloud.ces.v1.ConnectorTool) toolType_; + } + return com.google.cloud.ces.v1.ConnectorTool.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The Integration Connector tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.ConnectorTool connector_tool = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ConnectorTool, + com.google.cloud.ces.v1.ConnectorTool.Builder, + com.google.cloud.ces.v1.ConnectorToolOrBuilder> + internalGetConnectorToolFieldBuilder() { + if (connectorToolBuilder_ == null) { + if (!(toolTypeCase_ == 8)) { + toolType_ = com.google.cloud.ces.v1.ConnectorTool.getDefaultInstance(); + } + connectorToolBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ConnectorTool, + com.google.cloud.ces.v1.ConnectorTool.Builder, + com.google.cloud.ces.v1.ConnectorToolOrBuilder>( + (com.google.cloud.ces.v1.ConnectorTool) toolType_, + getParentForChildren(), + isClean()); + toolType_ = null; + } + toolTypeCase_ = 8; + onChanged(); + return connectorToolBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool, + com.google.cloud.ces.v1.DataStoreTool.Builder, + com.google.cloud.ces.v1.DataStoreToolOrBuilder> + dataStoreToolBuilder_; + + /** + * + * + *
      +     * Optional. The data store tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool data_store_tool = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataStoreTool field is set. + */ + @java.lang.Override + public boolean hasDataStoreTool() { + return toolTypeCase_ == 10; + } + + /** + * + * + *
      +     * Optional. The data store tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool data_store_tool = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataStoreTool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreTool getDataStoreTool() { + if (dataStoreToolBuilder_ == null) { + if (toolTypeCase_ == 10) { + return (com.google.cloud.ces.v1.DataStoreTool) toolType_; + } + return com.google.cloud.ces.v1.DataStoreTool.getDefaultInstance(); + } else { + if (toolTypeCase_ == 10) { + return dataStoreToolBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.DataStoreTool.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The data store tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool data_store_tool = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataStoreTool(com.google.cloud.ces.v1.DataStoreTool value) { + if (dataStoreToolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolType_ = value; + onChanged(); + } else { + dataStoreToolBuilder_.setMessage(value); + } + toolTypeCase_ = 10; + return this; + } + + /** + * + * + *
      +     * Optional. The data store tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool data_store_tool = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataStoreTool(com.google.cloud.ces.v1.DataStoreTool.Builder builderForValue) { + if (dataStoreToolBuilder_ == null) { + toolType_ = builderForValue.build(); + onChanged(); + } else { + dataStoreToolBuilder_.setMessage(builderForValue.build()); + } + toolTypeCase_ = 10; + return this; + } + + /** + * + * + *
      +     * Optional. The data store tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool data_store_tool = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDataStoreTool(com.google.cloud.ces.v1.DataStoreTool value) { + if (dataStoreToolBuilder_ == null) { + if (toolTypeCase_ == 10 + && toolType_ != com.google.cloud.ces.v1.DataStoreTool.getDefaultInstance()) { + toolType_ = + com.google.cloud.ces.v1.DataStoreTool.newBuilder( + (com.google.cloud.ces.v1.DataStoreTool) toolType_) + .mergeFrom(value) + .buildPartial(); + } else { + toolType_ = value; + } + onChanged(); + } else { + if (toolTypeCase_ == 10) { + dataStoreToolBuilder_.mergeFrom(value); + } else { + dataStoreToolBuilder_.setMessage(value); + } + } + toolTypeCase_ = 10; + return this; + } + + /** + * + * + *
      +     * Optional. The data store tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool data_store_tool = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDataStoreTool() { + if (dataStoreToolBuilder_ == null) { + if (toolTypeCase_ == 10) { + toolTypeCase_ = 0; + toolType_ = null; + onChanged(); + } + } else { + if (toolTypeCase_ == 10) { + toolTypeCase_ = 0; + toolType_ = null; + } + dataStoreToolBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The data store tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool data_store_tool = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.DataStoreTool.Builder getDataStoreToolBuilder() { + return internalGetDataStoreToolFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The data store tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool data_store_tool = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.DataStoreToolOrBuilder getDataStoreToolOrBuilder() { + if ((toolTypeCase_ == 10) && (dataStoreToolBuilder_ != null)) { + return dataStoreToolBuilder_.getMessageOrBuilder(); + } else { + if (toolTypeCase_ == 10) { + return (com.google.cloud.ces.v1.DataStoreTool) toolType_; + } + return com.google.cloud.ces.v1.DataStoreTool.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The data store tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool data_store_tool = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool, + com.google.cloud.ces.v1.DataStoreTool.Builder, + com.google.cloud.ces.v1.DataStoreToolOrBuilder> + internalGetDataStoreToolFieldBuilder() { + if (dataStoreToolBuilder_ == null) { + if (!(toolTypeCase_ == 10)) { + toolType_ = com.google.cloud.ces.v1.DataStoreTool.getDefaultInstance(); + } + dataStoreToolBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.DataStoreTool, + com.google.cloud.ces.v1.DataStoreTool.Builder, + com.google.cloud.ces.v1.DataStoreToolOrBuilder>( + (com.google.cloud.ces.v1.DataStoreTool) toolType_, + getParentForChildren(), + isClean()); + toolType_ = null; + } + toolTypeCase_ = 10; + onChanged(); + return dataStoreToolBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.PythonFunction, + com.google.cloud.ces.v1.PythonFunction.Builder, + com.google.cloud.ces.v1.PythonFunctionOrBuilder> + pythonFunctionBuilder_; + + /** + * + * + *
      +     * Optional. The python function tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pythonFunction field is set. + */ + @java.lang.Override + public boolean hasPythonFunction() { + return toolTypeCase_ == 11; + } + + /** + * + * + *
      +     * Optional. The python function tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pythonFunction. + */ + @java.lang.Override + public com.google.cloud.ces.v1.PythonFunction getPythonFunction() { + if (pythonFunctionBuilder_ == null) { + if (toolTypeCase_ == 11) { + return (com.google.cloud.ces.v1.PythonFunction) toolType_; + } + return com.google.cloud.ces.v1.PythonFunction.getDefaultInstance(); + } else { + if (toolTypeCase_ == 11) { + return pythonFunctionBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.PythonFunction.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The python function tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPythonFunction(com.google.cloud.ces.v1.PythonFunction value) { + if (pythonFunctionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolType_ = value; + onChanged(); + } else { + pythonFunctionBuilder_.setMessage(value); + } + toolTypeCase_ = 11; + return this; + } + + /** + * + * + *
      +     * Optional. The python function tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPythonFunction( + com.google.cloud.ces.v1.PythonFunction.Builder builderForValue) { + if (pythonFunctionBuilder_ == null) { + toolType_ = builderForValue.build(); + onChanged(); + } else { + pythonFunctionBuilder_.setMessage(builderForValue.build()); + } + toolTypeCase_ = 11; + return this; + } + + /** + * + * + *
      +     * Optional. The python function tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePythonFunction(com.google.cloud.ces.v1.PythonFunction value) { + if (pythonFunctionBuilder_ == null) { + if (toolTypeCase_ == 11 + && toolType_ != com.google.cloud.ces.v1.PythonFunction.getDefaultInstance()) { + toolType_ = + com.google.cloud.ces.v1.PythonFunction.newBuilder( + (com.google.cloud.ces.v1.PythonFunction) toolType_) + .mergeFrom(value) + .buildPartial(); + } else { + toolType_ = value; + } + onChanged(); + } else { + if (toolTypeCase_ == 11) { + pythonFunctionBuilder_.mergeFrom(value); + } else { + pythonFunctionBuilder_.setMessage(value); + } + } + toolTypeCase_ = 11; + return this; + } + + /** + * + * + *
      +     * Optional. The python function tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPythonFunction() { + if (pythonFunctionBuilder_ == null) { + if (toolTypeCase_ == 11) { + toolTypeCase_ = 0; + toolType_ = null; + onChanged(); + } + } else { + if (toolTypeCase_ == 11) { + toolTypeCase_ = 0; + toolType_ = null; + } + pythonFunctionBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The python function tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.PythonFunction.Builder getPythonFunctionBuilder() { + return internalGetPythonFunctionFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The python function tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.PythonFunctionOrBuilder getPythonFunctionOrBuilder() { + if ((toolTypeCase_ == 11) && (pythonFunctionBuilder_ != null)) { + return pythonFunctionBuilder_.getMessageOrBuilder(); + } else { + if (toolTypeCase_ == 11) { + return (com.google.cloud.ces.v1.PythonFunction) toolType_; + } + return com.google.cloud.ces.v1.PythonFunction.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The python function tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.PythonFunction, + com.google.cloud.ces.v1.PythonFunction.Builder, + com.google.cloud.ces.v1.PythonFunctionOrBuilder> + internalGetPythonFunctionFieldBuilder() { + if (pythonFunctionBuilder_ == null) { + if (!(toolTypeCase_ == 11)) { + toolType_ = com.google.cloud.ces.v1.PythonFunction.getDefaultInstance(); + } + pythonFunctionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.PythonFunction, + com.google.cloud.ces.v1.PythonFunction.Builder, + com.google.cloud.ces.v1.PythonFunctionOrBuilder>( + (com.google.cloud.ces.v1.PythonFunction) toolType_, + getParentForChildren(), + isClean()); + toolType_ = null; + } + toolTypeCase_ = 11; + onChanged(); + return pythonFunctionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.McpTool, + com.google.cloud.ces.v1.McpTool.Builder, + com.google.cloud.ces.v1.McpToolOrBuilder> + mcpToolBuilder_; + + /** + * + * + *
      +     * Optional. The MCP tool. An MCP tool cannot be created or updated directly
      +     * and is managed by the MCP toolset.
      +     * 
      + * + * .google.cloud.ces.v1.McpTool mcp_tool = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mcpTool field is set. + */ + @java.lang.Override + public boolean hasMcpTool() { + return toolTypeCase_ == 16; + } + + /** + * + * + *
      +     * Optional. The MCP tool. An MCP tool cannot be created or updated directly
      +     * and is managed by the MCP toolset.
      +     * 
      + * + * .google.cloud.ces.v1.McpTool mcp_tool = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mcpTool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.McpTool getMcpTool() { + if (mcpToolBuilder_ == null) { + if (toolTypeCase_ == 16) { + return (com.google.cloud.ces.v1.McpTool) toolType_; + } + return com.google.cloud.ces.v1.McpTool.getDefaultInstance(); + } else { + if (toolTypeCase_ == 16) { + return mcpToolBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.McpTool.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The MCP tool. An MCP tool cannot be created or updated directly
      +     * and is managed by the MCP toolset.
      +     * 
      + * + * .google.cloud.ces.v1.McpTool mcp_tool = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMcpTool(com.google.cloud.ces.v1.McpTool value) { + if (mcpToolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolType_ = value; + onChanged(); + } else { + mcpToolBuilder_.setMessage(value); + } + toolTypeCase_ = 16; + return this; + } + + /** + * + * + *
      +     * Optional. The MCP tool. An MCP tool cannot be created or updated directly
      +     * and is managed by the MCP toolset.
      +     * 
      + * + * .google.cloud.ces.v1.McpTool mcp_tool = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMcpTool(com.google.cloud.ces.v1.McpTool.Builder builderForValue) { + if (mcpToolBuilder_ == null) { + toolType_ = builderForValue.build(); + onChanged(); + } else { + mcpToolBuilder_.setMessage(builderForValue.build()); + } + toolTypeCase_ = 16; + return this; + } + + /** + * + * + *
      +     * Optional. The MCP tool. An MCP tool cannot be created or updated directly
      +     * and is managed by the MCP toolset.
      +     * 
      + * + * .google.cloud.ces.v1.McpTool mcp_tool = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMcpTool(com.google.cloud.ces.v1.McpTool value) { + if (mcpToolBuilder_ == null) { + if (toolTypeCase_ == 16 + && toolType_ != com.google.cloud.ces.v1.McpTool.getDefaultInstance()) { + toolType_ = + com.google.cloud.ces.v1.McpTool.newBuilder( + (com.google.cloud.ces.v1.McpTool) toolType_) + .mergeFrom(value) + .buildPartial(); + } else { + toolType_ = value; + } + onChanged(); + } else { + if (toolTypeCase_ == 16) { + mcpToolBuilder_.mergeFrom(value); + } else { + mcpToolBuilder_.setMessage(value); + } + } + toolTypeCase_ = 16; + return this; + } + + /** + * + * + *
      +     * Optional. The MCP tool. An MCP tool cannot be created or updated directly
      +     * and is managed by the MCP toolset.
      +     * 
      + * + * .google.cloud.ces.v1.McpTool mcp_tool = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMcpTool() { + if (mcpToolBuilder_ == null) { + if (toolTypeCase_ == 16) { + toolTypeCase_ = 0; + toolType_ = null; + onChanged(); + } + } else { + if (toolTypeCase_ == 16) { + toolTypeCase_ = 0; + toolType_ = null; + } + mcpToolBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The MCP tool. An MCP tool cannot be created or updated directly
      +     * and is managed by the MCP toolset.
      +     * 
      + * + * .google.cloud.ces.v1.McpTool mcp_tool = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.McpTool.Builder getMcpToolBuilder() { + return internalGetMcpToolFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The MCP tool. An MCP tool cannot be created or updated directly
      +     * and is managed by the MCP toolset.
      +     * 
      + * + * .google.cloud.ces.v1.McpTool mcp_tool = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.McpToolOrBuilder getMcpToolOrBuilder() { + if ((toolTypeCase_ == 16) && (mcpToolBuilder_ != null)) { + return mcpToolBuilder_.getMessageOrBuilder(); + } else { + if (toolTypeCase_ == 16) { + return (com.google.cloud.ces.v1.McpTool) toolType_; + } + return com.google.cloud.ces.v1.McpTool.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The MCP tool. An MCP tool cannot be created or updated directly
      +     * and is managed by the MCP toolset.
      +     * 
      + * + * .google.cloud.ces.v1.McpTool mcp_tool = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.McpTool, + com.google.cloud.ces.v1.McpTool.Builder, + com.google.cloud.ces.v1.McpToolOrBuilder> + internalGetMcpToolFieldBuilder() { + if (mcpToolBuilder_ == null) { + if (!(toolTypeCase_ == 16)) { + toolType_ = com.google.cloud.ces.v1.McpTool.getDefaultInstance(); + } + mcpToolBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.McpTool, + com.google.cloud.ces.v1.McpTool.Builder, + com.google.cloud.ces.v1.McpToolOrBuilder>( + (com.google.cloud.ces.v1.McpTool) toolType_, getParentForChildren(), isClean()); + toolType_ = null; + } + toolTypeCase_ = 16; + onChanged(); + return mcpToolBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.FileSearchTool, + com.google.cloud.ces.v1.FileSearchTool.Builder, + com.google.cloud.ces.v1.FileSearchToolOrBuilder> + fileSearchToolBuilder_; + + /** + * + * + *
      +     * Optional. The file search tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.FileSearchTool file_search_tool = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fileSearchTool field is set. + */ + @java.lang.Override + public boolean hasFileSearchTool() { + return toolTypeCase_ == 17; + } + + /** + * + * + *
      +     * Optional. The file search tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.FileSearchTool file_search_tool = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fileSearchTool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.FileSearchTool getFileSearchTool() { + if (fileSearchToolBuilder_ == null) { + if (toolTypeCase_ == 17) { + return (com.google.cloud.ces.v1.FileSearchTool) toolType_; + } + return com.google.cloud.ces.v1.FileSearchTool.getDefaultInstance(); + } else { + if (toolTypeCase_ == 17) { + return fileSearchToolBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.FileSearchTool.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The file search tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.FileSearchTool file_search_tool = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFileSearchTool(com.google.cloud.ces.v1.FileSearchTool value) { + if (fileSearchToolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolType_ = value; + onChanged(); + } else { + fileSearchToolBuilder_.setMessage(value); + } + toolTypeCase_ = 17; + return this; + } + + /** + * + * + *
      +     * Optional. The file search tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.FileSearchTool file_search_tool = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFileSearchTool( + com.google.cloud.ces.v1.FileSearchTool.Builder builderForValue) { + if (fileSearchToolBuilder_ == null) { + toolType_ = builderForValue.build(); + onChanged(); + } else { + fileSearchToolBuilder_.setMessage(builderForValue.build()); + } + toolTypeCase_ = 17; + return this; + } + + /** + * + * + *
      +     * Optional. The file search tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.FileSearchTool file_search_tool = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeFileSearchTool(com.google.cloud.ces.v1.FileSearchTool value) { + if (fileSearchToolBuilder_ == null) { + if (toolTypeCase_ == 17 + && toolType_ != com.google.cloud.ces.v1.FileSearchTool.getDefaultInstance()) { + toolType_ = + com.google.cloud.ces.v1.FileSearchTool.newBuilder( + (com.google.cloud.ces.v1.FileSearchTool) toolType_) + .mergeFrom(value) + .buildPartial(); + } else { + toolType_ = value; + } + onChanged(); + } else { + if (toolTypeCase_ == 17) { + fileSearchToolBuilder_.mergeFrom(value); + } else { + fileSearchToolBuilder_.setMessage(value); + } + } + toolTypeCase_ = 17; + return this; + } + + /** + * + * + *
      +     * Optional. The file search tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.FileSearchTool file_search_tool = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFileSearchTool() { + if (fileSearchToolBuilder_ == null) { + if (toolTypeCase_ == 17) { + toolTypeCase_ = 0; + toolType_ = null; + onChanged(); + } + } else { + if (toolTypeCase_ == 17) { + toolTypeCase_ = 0; + toolType_ = null; + } + fileSearchToolBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The file search tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.FileSearchTool file_search_tool = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.FileSearchTool.Builder getFileSearchToolBuilder() { + return internalGetFileSearchToolFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The file search tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.FileSearchTool file_search_tool = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.FileSearchToolOrBuilder getFileSearchToolOrBuilder() { + if ((toolTypeCase_ == 17) && (fileSearchToolBuilder_ != null)) { + return fileSearchToolBuilder_.getMessageOrBuilder(); + } else { + if (toolTypeCase_ == 17) { + return (com.google.cloud.ces.v1.FileSearchTool) toolType_; + } + return com.google.cloud.ces.v1.FileSearchTool.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The file search tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.FileSearchTool file_search_tool = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.FileSearchTool, + com.google.cloud.ces.v1.FileSearchTool.Builder, + com.google.cloud.ces.v1.FileSearchToolOrBuilder> + internalGetFileSearchToolFieldBuilder() { + if (fileSearchToolBuilder_ == null) { + if (!(toolTypeCase_ == 17)) { + toolType_ = com.google.cloud.ces.v1.FileSearchTool.getDefaultInstance(); + } + fileSearchToolBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.FileSearchTool, + com.google.cloud.ces.v1.FileSearchTool.Builder, + com.google.cloud.ces.v1.FileSearchToolOrBuilder>( + (com.google.cloud.ces.v1.FileSearchTool) toolType_, + getParentForChildren(), + isClean()); + toolType_ = null; + } + toolTypeCase_ = 17; + onChanged(); + return fileSearchToolBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.SystemTool, + com.google.cloud.ces.v1.SystemTool.Builder, + com.google.cloud.ces.v1.SystemToolOrBuilder> + systemToolBuilder_; + + /** + * + * + *
      +     * Optional. The system tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.SystemTool system_tool = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the systemTool field is set. + */ + @java.lang.Override + public boolean hasSystemTool() { + return toolTypeCase_ == 18; + } + + /** + * + * + *
      +     * Optional. The system tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.SystemTool system_tool = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The systemTool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.SystemTool getSystemTool() { + if (systemToolBuilder_ == null) { + if (toolTypeCase_ == 18) { + return (com.google.cloud.ces.v1.SystemTool) toolType_; + } + return com.google.cloud.ces.v1.SystemTool.getDefaultInstance(); + } else { + if (toolTypeCase_ == 18) { + return systemToolBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.SystemTool.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The system tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.SystemTool system_tool = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSystemTool(com.google.cloud.ces.v1.SystemTool value) { + if (systemToolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolType_ = value; + onChanged(); + } else { + systemToolBuilder_.setMessage(value); + } + toolTypeCase_ = 18; + return this; + } + + /** + * + * + *
      +     * Optional. The system tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.SystemTool system_tool = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSystemTool(com.google.cloud.ces.v1.SystemTool.Builder builderForValue) { + if (systemToolBuilder_ == null) { + toolType_ = builderForValue.build(); + onChanged(); + } else { + systemToolBuilder_.setMessage(builderForValue.build()); + } + toolTypeCase_ = 18; + return this; + } + + /** + * + * + *
      +     * Optional. The system tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.SystemTool system_tool = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSystemTool(com.google.cloud.ces.v1.SystemTool value) { + if (systemToolBuilder_ == null) { + if (toolTypeCase_ == 18 + && toolType_ != com.google.cloud.ces.v1.SystemTool.getDefaultInstance()) { + toolType_ = + com.google.cloud.ces.v1.SystemTool.newBuilder( + (com.google.cloud.ces.v1.SystemTool) toolType_) + .mergeFrom(value) + .buildPartial(); + } else { + toolType_ = value; + } + onChanged(); + } else { + if (toolTypeCase_ == 18) { + systemToolBuilder_.mergeFrom(value); + } else { + systemToolBuilder_.setMessage(value); + } + } + toolTypeCase_ = 18; + return this; + } + + /** + * + * + *
      +     * Optional. The system tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.SystemTool system_tool = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSystemTool() { + if (systemToolBuilder_ == null) { + if (toolTypeCase_ == 18) { + toolTypeCase_ = 0; + toolType_ = null; + onChanged(); + } + } else { + if (toolTypeCase_ == 18) { + toolTypeCase_ = 0; + toolType_ = null; + } + systemToolBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The system tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.SystemTool system_tool = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.SystemTool.Builder getSystemToolBuilder() { + return internalGetSystemToolFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The system tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.SystemTool system_tool = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.SystemToolOrBuilder getSystemToolOrBuilder() { + if ((toolTypeCase_ == 18) && (systemToolBuilder_ != null)) { + return systemToolBuilder_.getMessageOrBuilder(); + } else { + if (toolTypeCase_ == 18) { + return (com.google.cloud.ces.v1.SystemTool) toolType_; + } + return com.google.cloud.ces.v1.SystemTool.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The system tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.SystemTool system_tool = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.SystemTool, + com.google.cloud.ces.v1.SystemTool.Builder, + com.google.cloud.ces.v1.SystemToolOrBuilder> + internalGetSystemToolFieldBuilder() { + if (systemToolBuilder_ == null) { + if (!(toolTypeCase_ == 18)) { + toolType_ = com.google.cloud.ces.v1.SystemTool.getDefaultInstance(); + } + systemToolBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.SystemTool, + com.google.cloud.ces.v1.SystemTool.Builder, + com.google.cloud.ces.v1.SystemToolOrBuilder>( + (com.google.cloud.ces.v1.SystemTool) toolType_, getParentForChildren(), isClean()); + toolType_ = null; + } + toolTypeCase_ = 18; + onChanged(); + return systemToolBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.WidgetTool, + com.google.cloud.ces.v1.WidgetTool.Builder, + com.google.cloud.ces.v1.WidgetToolOrBuilder> + widgetToolBuilder_; + + /** + * + * + *
      +     * Optional. The widget tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.WidgetTool widget_tool = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the widgetTool field is set. + */ + @java.lang.Override + public boolean hasWidgetTool() { + return toolTypeCase_ == 24; + } + + /** + * + * + *
      +     * Optional. The widget tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.WidgetTool widget_tool = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The widgetTool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.WidgetTool getWidgetTool() { + if (widgetToolBuilder_ == null) { + if (toolTypeCase_ == 24) { + return (com.google.cloud.ces.v1.WidgetTool) toolType_; + } + return com.google.cloud.ces.v1.WidgetTool.getDefaultInstance(); + } else { + if (toolTypeCase_ == 24) { + return widgetToolBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.WidgetTool.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The widget tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.WidgetTool widget_tool = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setWidgetTool(com.google.cloud.ces.v1.WidgetTool value) { + if (widgetToolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolType_ = value; + onChanged(); + } else { + widgetToolBuilder_.setMessage(value); + } + toolTypeCase_ = 24; + return this; + } + + /** + * + * + *
      +     * Optional. The widget tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.WidgetTool widget_tool = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setWidgetTool(com.google.cloud.ces.v1.WidgetTool.Builder builderForValue) { + if (widgetToolBuilder_ == null) { + toolType_ = builderForValue.build(); + onChanged(); + } else { + widgetToolBuilder_.setMessage(builderForValue.build()); + } + toolTypeCase_ = 24; + return this; + } + + /** + * + * + *
      +     * Optional. The widget tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.WidgetTool widget_tool = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeWidgetTool(com.google.cloud.ces.v1.WidgetTool value) { + if (widgetToolBuilder_ == null) { + if (toolTypeCase_ == 24 + && toolType_ != com.google.cloud.ces.v1.WidgetTool.getDefaultInstance()) { + toolType_ = + com.google.cloud.ces.v1.WidgetTool.newBuilder( + (com.google.cloud.ces.v1.WidgetTool) toolType_) + .mergeFrom(value) + .buildPartial(); + } else { + toolType_ = value; + } + onChanged(); + } else { + if (toolTypeCase_ == 24) { + widgetToolBuilder_.mergeFrom(value); + } else { + widgetToolBuilder_.setMessage(value); + } + } + toolTypeCase_ = 24; + return this; + } + + /** + * + * + *
      +     * Optional. The widget tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.WidgetTool widget_tool = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearWidgetTool() { + if (widgetToolBuilder_ == null) { + if (toolTypeCase_ == 24) { + toolTypeCase_ = 0; + toolType_ = null; + onChanged(); + } + } else { + if (toolTypeCase_ == 24) { + toolTypeCase_ = 0; + toolType_ = null; + } + widgetToolBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The widget tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.WidgetTool widget_tool = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.WidgetTool.Builder getWidgetToolBuilder() { + return internalGetWidgetToolFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The widget tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.WidgetTool widget_tool = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.WidgetToolOrBuilder getWidgetToolOrBuilder() { + if ((toolTypeCase_ == 24) && (widgetToolBuilder_ != null)) { + return widgetToolBuilder_.getMessageOrBuilder(); + } else { + if (toolTypeCase_ == 24) { + return (com.google.cloud.ces.v1.WidgetTool) toolType_; + } + return com.google.cloud.ces.v1.WidgetTool.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The widget tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.WidgetTool widget_tool = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.WidgetTool, + com.google.cloud.ces.v1.WidgetTool.Builder, + com.google.cloud.ces.v1.WidgetToolOrBuilder> + internalGetWidgetToolFieldBuilder() { + if (widgetToolBuilder_ == null) { + if (!(toolTypeCase_ == 24)) { + toolType_ = com.google.cloud.ces.v1.WidgetTool.getDefaultInstance(); + } + widgetToolBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.WidgetTool, + com.google.cloud.ces.v1.WidgetTool.Builder, + com.google.cloud.ces.v1.WidgetToolOrBuilder>( + (com.google.cloud.ces.v1.WidgetTool) toolType_, getParentForChildren(), isClean()); + toolType_ = null; + } + toolTypeCase_ = 24; + onChanged(); + return widgetToolBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Identifier. The unique identifier of the tool.
      +     * Format:
      +     * - `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for
      +     * ## standalone tools.
      +     *
      +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
      +     * for tools retrieved from a toolset. These tools are dynamic and
      +     * output-only, they cannot be referenced directly where a tool is expected.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the tool.
      +     * Format:
      +     * - `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for
      +     * ## standalone tools.
      +     *
      +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
      +     * for tools retrieved from a toolset. These tools are dynamic and
      +     * output-only, they cannot be referenced directly where a tool is expected.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the tool.
      +     * Format:
      +     * - `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for
      +     * ## standalone tools.
      +     *
      +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
      +     * for tools retrieved from a toolset. These tools are dynamic and
      +     * output-only, they cannot be referenced directly where a tool is expected.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the tool.
      +     * Format:
      +     * - `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for
      +     * ## standalone tools.
      +     *
      +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
      +     * for tools retrieved from a toolset. These tools are dynamic and
      +     * output-only, they cannot be referenced directly where a tool is expected.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the tool.
      +     * Format:
      +     * - `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for
      +     * ## standalone tools.
      +     *
      +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
      +     * for tools retrieved from a toolset. These tools are dynamic and
      +     * output-only, they cannot be referenced directly where a tool is expected.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
      +     * Output only. The display name of the tool, derived based on the tool's
      +     * type. For example, display name of a [ClientFunction][Tool.ClientFunction]
      +     * is derived from its `name` property.
      +     * 
      + * + * string display_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Output only. The display name of the tool, derived based on the tool's
      +     * type. For example, display name of a [ClientFunction][Tool.ClientFunction]
      +     * is derived from its `name` property.
      +     * 
      + * + * string display_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Output only. The display name of the tool, derived based on the tool's
      +     * type. For example, display name of a [ClientFunction][Tool.ClientFunction]
      +     * is derived from its `name` property.
      +     * 
      + * + * string display_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The display name of the tool, derived based on the tool's
      +     * type. For example, display name of a [ClientFunction][Tool.ClientFunction]
      +     * is derived from its `name` property.
      +     * 
      + * + * string display_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The display name of the tool, derived based on the tool's
      +     * type. For example, display name of a [ClientFunction][Tool.ClientFunction]
      +     * is derived from its `name` property.
      +     * 
      + * + * string display_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private int executionType_ = 0; + + /** + * + * + *
      +     * Optional. The execution type of the tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.ExecutionType execution_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for executionType. + */ + @java.lang.Override + public int getExecutionTypeValue() { + return executionType_; + } + + /** + * + * + *
      +     * Optional. The execution type of the tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.ExecutionType execution_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for executionType to set. + * @return This builder for chaining. + */ + public Builder setExecutionTypeValue(int value) { + executionType_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The execution type of the tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.ExecutionType execution_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The executionType. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ExecutionType getExecutionType() { + com.google.cloud.ces.v1.ExecutionType result = + com.google.cloud.ces.v1.ExecutionType.forNumber(executionType_); + return result == null ? com.google.cloud.ces.v1.ExecutionType.UNRECOGNIZED : result; + } + + /** + * + * + *
      +     * Optional. The execution type of the tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.ExecutionType execution_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The executionType to set. + * @return This builder for chaining. + */ + public Builder setExecutionType(com.google.cloud.ces.v1.ExecutionType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; + executionType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The execution type of the tool.
      +     * 
      + * + * + * .google.cloud.ces.v1.ExecutionType execution_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearExecutionType() { + bitField0_ = (bitField0_ & ~0x00001000); + executionType_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
      +     * Output only. Timestamp when the tool was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
      +     * Output only. Timestamp when the tool was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.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_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the tool was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the tool was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the tool was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the tool was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00002000); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the tool was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. Timestamp when the tool was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.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_; + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the tool was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
      +     * Output only. Timestamp when the tool was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
      +     * Output only. Timestamp when the tool was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 7 [(.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_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the tool was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the tool was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the tool was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the tool was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00004000); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the tool was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. Timestamp when the tool was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 7 [(.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_; + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the tool was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
      +     * Etag used to ensure the object hasn't changed during a read-modify-write
      +     * operation. If the etag is empty, the update will overwrite any concurrent
      +     * changes.
      +     * 
      + * + * string etag = 14; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Etag used to ensure the object hasn't changed during a read-modify-write
      +     * operation. If the etag is empty, the update will overwrite any concurrent
      +     * changes.
      +     * 
      + * + * string etag = 14; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Etag used to ensure the object hasn't changed during a read-modify-write
      +     * operation. If the etag is empty, the update will overwrite any concurrent
      +     * changes.
      +     * 
      + * + * string etag = 14; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Etag used to ensure the object hasn't changed during a read-modify-write
      +     * operation. If the etag is empty, the update will overwrite any concurrent
      +     * changes.
      +     * 
      + * + * string etag = 14; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00008000); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Etag used to ensure the object hasn't changed during a read-modify-write
      +     * operation. If the etag is empty, the update will overwrite any concurrent
      +     * changes.
      +     * 
      + * + * string etag = 14; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + private java.lang.Object generatedSummary_ = ""; + + /** + * + * + *
      +     * Output only. If the tool is generated by the LLM assistant, this field
      +     * contains a descriptive summary of the generation.
      +     * 
      + * + * string generated_summary = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The generatedSummary. + */ + public java.lang.String getGeneratedSummary() { + java.lang.Object ref = generatedSummary_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + generatedSummary_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Output only. If the tool is generated by the LLM assistant, this field
      +     * contains a descriptive summary of the generation.
      +     * 
      + * + * string generated_summary = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for generatedSummary. + */ + public com.google.protobuf.ByteString getGeneratedSummaryBytes() { + java.lang.Object ref = generatedSummary_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + generatedSummary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Output only. If the tool is generated by the LLM assistant, this field
      +     * contains a descriptive summary of the generation.
      +     * 
      + * + * string generated_summary = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The generatedSummary to set. + * @return This builder for chaining. + */ + public Builder setGeneratedSummary(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + generatedSummary_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. If the tool is generated by the LLM assistant, this field
      +     * contains a descriptive summary of the generation.
      +     * 
      + * + * string generated_summary = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearGeneratedSummary() { + generatedSummary_ = getDefaultInstance().getGeneratedSummary(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. If the tool is generated by the LLM assistant, this field
      +     * contains a descriptive summary of the generation.
      +     * 
      + * + * string generated_summary = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for generatedSummary to set. + * @return This builder for chaining. + */ + public Builder setGeneratedSummaryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + generatedSummary_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.ToolFakeConfig toolFakeConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolFakeConfig, + com.google.cloud.ces.v1.ToolFakeConfig.Builder, + com.google.cloud.ces.v1.ToolFakeConfigOrBuilder> + toolFakeConfigBuilder_; + + /** + * + * + *
      +     * Optional. Configuration for tool behavior in fake mode.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolFakeConfig tool_fake_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolFakeConfig field is set. + */ + public boolean hasToolFakeConfig() { + return ((bitField0_ & 0x00020000) != 0); + } + + /** + * + * + *
      +     * Optional. Configuration for tool behavior in fake mode.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolFakeConfig tool_fake_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolFakeConfig. + */ + public com.google.cloud.ces.v1.ToolFakeConfig getToolFakeConfig() { + if (toolFakeConfigBuilder_ == null) { + return toolFakeConfig_ == null + ? com.google.cloud.ces.v1.ToolFakeConfig.getDefaultInstance() + : toolFakeConfig_; + } else { + return toolFakeConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Configuration for tool behavior in fake mode.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolFakeConfig tool_fake_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolFakeConfig(com.google.cloud.ces.v1.ToolFakeConfig value) { + if (toolFakeConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolFakeConfig_ = value; + } else { + toolFakeConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for tool behavior in fake mode.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolFakeConfig tool_fake_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolFakeConfig( + com.google.cloud.ces.v1.ToolFakeConfig.Builder builderForValue) { + if (toolFakeConfigBuilder_ == null) { + toolFakeConfig_ = builderForValue.build(); + } else { + toolFakeConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for tool behavior in fake mode.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolFakeConfig tool_fake_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeToolFakeConfig(com.google.cloud.ces.v1.ToolFakeConfig value) { + if (toolFakeConfigBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) + && toolFakeConfig_ != null + && toolFakeConfig_ != com.google.cloud.ces.v1.ToolFakeConfig.getDefaultInstance()) { + getToolFakeConfigBuilder().mergeFrom(value); + } else { + toolFakeConfig_ = value; + } + } else { + toolFakeConfigBuilder_.mergeFrom(value); + } + if (toolFakeConfig_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for tool behavior in fake mode.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolFakeConfig tool_fake_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearToolFakeConfig() { + bitField0_ = (bitField0_ & ~0x00020000); + toolFakeConfig_ = null; + if (toolFakeConfigBuilder_ != null) { + toolFakeConfigBuilder_.dispose(); + toolFakeConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for tool behavior in fake mode.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolFakeConfig tool_fake_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ToolFakeConfig.Builder getToolFakeConfigBuilder() { + bitField0_ |= 0x00020000; + onChanged(); + return internalGetToolFakeConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Configuration for tool behavior in fake mode.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolFakeConfig tool_fake_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ToolFakeConfigOrBuilder getToolFakeConfigOrBuilder() { + if (toolFakeConfigBuilder_ != null) { + return toolFakeConfigBuilder_.getMessageOrBuilder(); + } else { + return toolFakeConfig_ == null + ? com.google.cloud.ces.v1.ToolFakeConfig.getDefaultInstance() + : toolFakeConfig_; + } + } + + /** + * + * + *
      +     * Optional. Configuration for tool behavior in fake mode.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolFakeConfig tool_fake_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolFakeConfig, + com.google.cloud.ces.v1.ToolFakeConfig.Builder, + com.google.cloud.ces.v1.ToolFakeConfigOrBuilder> + internalGetToolFakeConfigFieldBuilder() { + if (toolFakeConfigBuilder_ == null) { + toolFakeConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolFakeConfig, + com.google.cloud.ces.v1.ToolFakeConfig.Builder, + com.google.cloud.ces.v1.ToolFakeConfigOrBuilder>( + getToolFakeConfig(), getParentForChildren(), isClean()); + toolFakeConfig_ = null; + } + return toolFakeConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Tool) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.Tool) + private static final com.google.cloud.ces.v1.Tool DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.Tool(); + } + + public static com.google.cloud.ces.v1.Tool getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Tool parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Tool getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolCall.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolCall.java new file mode 100644 index 000000000000..f65496fb0cf6 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolCall.java @@ -0,0 +1,1769 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/example.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request for the client or the agent to execute the specified tool.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ToolCall} + */ +@com.google.protobuf.Generated +public final class ToolCall extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ToolCall) + ToolCallOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ToolCall"); + } + + // Use ToolCall.newBuilder() to construct. + private ToolCall(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ToolCall() { + id_ = ""; + displayName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_ToolCall_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_ToolCall_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ToolCall.class, com.google.cloud.ces.v1.ToolCall.Builder.class); + } + + private int bitField0_; + private int toolIdentifierCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object toolIdentifier_; + + public enum ToolIdentifierCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TOOL(2), + TOOLSET_TOOL(5), + TOOLIDENTIFIER_NOT_SET(0); + private final int value; + + private ToolIdentifierCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ToolIdentifierCase valueOf(int value) { + return forNumber(value); + } + + public static ToolIdentifierCase forNumber(int value) { + switch (value) { + case 2: + return TOOL; + case 5: + return TOOLSET_TOOL; + case 0: + return TOOLIDENTIFIER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ToolIdentifierCase getToolIdentifierCase() { + return ToolIdentifierCase.forNumber(toolIdentifierCase_); + } + + public static final int TOOL_FIELD_NUMBER = 2; + + /** + * + * + *
      +   * Optional. The name of the tool to execute.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +   * 
      + * + * + * string tool = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the tool field is set. + */ + public boolean hasTool() { + return toolIdentifierCase_ == 2; + } + + /** + * + * + *
      +   * Optional. The name of the tool to execute.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +   * 
      + * + * + * string tool = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The tool. + */ + public java.lang.String getTool() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 2) { + ref = toolIdentifier_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (toolIdentifierCase_ == 2) { + toolIdentifier_ = s; + } + return s; + } + } + + /** + * + * + *
      +   * Optional. The name of the tool to execute.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +   * 
      + * + * + * string tool = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tool. + */ + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 2) { + ref = toolIdentifier_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (toolIdentifierCase_ == 2) { + toolIdentifier_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOLSET_TOOL_FIELD_NUMBER = 5; + + /** + * + * + *
      +   * Optional. The toolset tool to execute.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolsetTool field is set. + */ + @java.lang.Override + public boolean hasToolsetTool() { + return toolIdentifierCase_ == 5; + } + + /** + * + * + *
      +   * Optional. The toolset tool to execute.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolsetTool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetTool getToolsetTool() { + if (toolIdentifierCase_ == 5) { + return (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. The toolset tool to execute.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetToolOrBuilder() { + if (toolIdentifierCase_ == 5) { + return (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + + public static final int ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
      +   * Optional. The unique identifier of the tool call. If populated, the client
      +   * should return the execution result with the matching ID in
      +   * [ToolResponse][google.cloud.ces.v1.ToolResponse.id].
      +   * 
      + * + * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The unique identifier of the tool call. If populated, the client
      +   * should return the execution result with the matching ID in
      +   * [ToolResponse][google.cloud.ces.v1.ToolResponse.id].
      +   * 
      + * + * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
      +   * Output only. Display name of the tool.
      +   * 
      + * + * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
      +   * Output only. Display name of the tool.
      +   * 
      + * + * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ARGS_FIELD_NUMBER = 3; + private com.google.protobuf.Struct args_; + + /** + * + * + *
      +   * Optional. The input parameters and values for the tool in JSON object
      +   * format.
      +   * 
      + * + * .google.protobuf.Struct args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the args field is set. + */ + @java.lang.Override + public boolean hasArgs() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Optional. The input parameters and values for the tool in JSON object
      +   * format.
      +   * 
      + * + * .google.protobuf.Struct args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The args. + */ + @java.lang.Override + public com.google.protobuf.Struct getArgs() { + return args_ == null ? com.google.protobuf.Struct.getDefaultInstance() : args_; + } + + /** + * + * + *
      +   * Optional. The input parameters and values for the tool in JSON object
      +   * format.
      +   * 
      + * + * .google.protobuf.Struct args = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getArgsOrBuilder() { + return args_ == null ? com.google.protobuf.Struct.getDefaultInstance() : args_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (toolIdentifierCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, toolIdentifier_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getArgs()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, displayName_); + } + if (toolIdentifierCase_ == 5) { + output.writeMessage(5, (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (toolIdentifierCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, toolIdentifier_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getArgs()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, displayName_); + } + if (toolIdentifierCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ToolCall)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ToolCall other = (com.google.cloud.ces.v1.ToolCall) obj; + + if (!getId().equals(other.getId())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasArgs() != other.hasArgs()) return false; + if (hasArgs()) { + if (!getArgs().equals(other.getArgs())) return false; + } + if (!getToolIdentifierCase().equals(other.getToolIdentifierCase())) return false; + switch (toolIdentifierCase_) { + case 2: + if (!getTool().equals(other.getTool())) return false; + break; + case 5: + if (!getToolsetTool().equals(other.getToolsetTool())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasArgs()) { + hash = (37 * hash) + ARGS_FIELD_NUMBER; + hash = (53 * hash) + getArgs().hashCode(); + } + switch (toolIdentifierCase_) { + case 2: + hash = (37 * hash) + TOOL_FIELD_NUMBER; + hash = (53 * hash) + getTool().hashCode(); + break; + case 5: + hash = (37 * hash) + TOOLSET_TOOL_FIELD_NUMBER; + hash = (53 * hash) + getToolsetTool().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ToolCall parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ToolCall parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ToolCall parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ToolCall parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ToolCall parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ToolCall parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ToolCall parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ToolCall parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ToolCall parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ToolCall parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ToolCall parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ToolCall parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ToolCall prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request for the client or the agent to execute the specified tool.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ToolCall} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ToolCall) + com.google.cloud.ces.v1.ToolCallOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_ToolCall_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_ToolCall_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ToolCall.class, + com.google.cloud.ces.v1.ToolCall.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ToolCall.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetArgsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolsetToolBuilder_ != null) { + toolsetToolBuilder_.clear(); + } + id_ = ""; + displayName_ = ""; + args_ = null; + if (argsBuilder_ != null) { + argsBuilder_.dispose(); + argsBuilder_ = null; + } + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_ToolCall_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ToolCall getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ToolCall.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ToolCall build() { + com.google.cloud.ces.v1.ToolCall result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ToolCall buildPartial() { + com.google.cloud.ces.v1.ToolCall result = new com.google.cloud.ces.v1.ToolCall(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ToolCall result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.displayName_ = displayName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.args_ = argsBuilder_ == null ? args_ : argsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.ces.v1.ToolCall result) { + result.toolIdentifierCase_ = toolIdentifierCase_; + result.toolIdentifier_ = this.toolIdentifier_; + if (toolIdentifierCase_ == 5 && toolsetToolBuilder_ != null) { + result.toolIdentifier_ = toolsetToolBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ToolCall) { + return mergeFrom((com.google.cloud.ces.v1.ToolCall) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ToolCall other) { + if (other == com.google.cloud.ces.v1.ToolCall.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasArgs()) { + mergeArgs(other.getArgs()); + } + switch (other.getToolIdentifierCase()) { + case TOOL: + { + toolIdentifierCase_ = 2; + toolIdentifier_ = other.toolIdentifier_; + onChanged(); + break; + } + case TOOLSET_TOOL: + { + mergeToolsetTool(other.getToolsetTool()); + break; + } + case TOOLIDENTIFIER_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + toolIdentifierCase_ = 2; + toolIdentifier_ = s; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetArgsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 34: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetToolsetToolFieldBuilder().getBuilder(), extensionRegistry); + toolIdentifierCase_ = 5; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int toolIdentifierCase_ = 0; + private java.lang.Object toolIdentifier_; + + public ToolIdentifierCase getToolIdentifierCase() { + return ToolIdentifierCase.forNumber(toolIdentifierCase_); + } + + public Builder clearToolIdentifier() { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
      +     * Optional. The name of the tool to execute.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +     * 
      + * + * + * string tool = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the tool field is set. + */ + @java.lang.Override + public boolean hasTool() { + return toolIdentifierCase_ == 2; + } + + /** + * + * + *
      +     * Optional. The name of the tool to execute.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +     * 
      + * + * + * string tool = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The tool. + */ + @java.lang.Override + public java.lang.String getTool() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 2) { + ref = toolIdentifier_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (toolIdentifierCase_ == 2) { + toolIdentifier_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The name of the tool to execute.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +     * 
      + * + * + * string tool = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 2) { + ref = toolIdentifier_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (toolIdentifierCase_ == 2) { + toolIdentifier_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The name of the tool to execute.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +     * 
      + * + * + * string tool = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The tool to set. + * @return This builder for chaining. + */ + public Builder setTool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolIdentifierCase_ = 2; + toolIdentifier_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The name of the tool to execute.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +     * 
      + * + * + * string tool = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTool() { + if (toolIdentifierCase_ == 2) { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The name of the tool to execute.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +     * 
      + * + * + * string tool = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for tool to set. + * @return This builder for chaining. + */ + public Builder setToolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolIdentifierCase_ = 2; + toolIdentifier_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolsetTool, + com.google.cloud.ces.v1.ToolsetTool.Builder, + com.google.cloud.ces.v1.ToolsetToolOrBuilder> + toolsetToolBuilder_; + + /** + * + * + *
      +     * Optional. The toolset tool to execute.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolsetTool field is set. + */ + @java.lang.Override + public boolean hasToolsetTool() { + return toolIdentifierCase_ == 5; + } + + /** + * + * + *
      +     * Optional. The toolset tool to execute.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolsetTool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetTool getToolsetTool() { + if (toolsetToolBuilder_ == null) { + if (toolIdentifierCase_ == 5) { + return (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } else { + if (toolIdentifierCase_ == 5) { + return toolsetToolBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The toolset tool to execute.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolsetTool(com.google.cloud.ces.v1.ToolsetTool value) { + if (toolsetToolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolIdentifier_ = value; + onChanged(); + } else { + toolsetToolBuilder_.setMessage(value); + } + toolIdentifierCase_ = 5; + return this; + } + + /** + * + * + *
      +     * Optional. The toolset tool to execute.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolsetTool(com.google.cloud.ces.v1.ToolsetTool.Builder builderForValue) { + if (toolsetToolBuilder_ == null) { + toolIdentifier_ = builderForValue.build(); + onChanged(); + } else { + toolsetToolBuilder_.setMessage(builderForValue.build()); + } + toolIdentifierCase_ = 5; + return this; + } + + /** + * + * + *
      +     * Optional. The toolset tool to execute.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeToolsetTool(com.google.cloud.ces.v1.ToolsetTool value) { + if (toolsetToolBuilder_ == null) { + if (toolIdentifierCase_ == 5 + && toolIdentifier_ != com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance()) { + toolIdentifier_ = + com.google.cloud.ces.v1.ToolsetTool.newBuilder( + (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_) + .mergeFrom(value) + .buildPartial(); + } else { + toolIdentifier_ = value; + } + onChanged(); + } else { + if (toolIdentifierCase_ == 5) { + toolsetToolBuilder_.mergeFrom(value); + } else { + toolsetToolBuilder_.setMessage(value); + } + } + toolIdentifierCase_ = 5; + return this; + } + + /** + * + * + *
      +     * Optional. The toolset tool to execute.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearToolsetTool() { + if (toolsetToolBuilder_ == null) { + if (toolIdentifierCase_ == 5) { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + onChanged(); + } + } else { + if (toolIdentifierCase_ == 5) { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + } + toolsetToolBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The toolset tool to execute.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ToolsetTool.Builder getToolsetToolBuilder() { + return internalGetToolsetToolFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The toolset tool to execute.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetToolOrBuilder() { + if ((toolIdentifierCase_ == 5) && (toolsetToolBuilder_ != null)) { + return toolsetToolBuilder_.getMessageOrBuilder(); + } else { + if (toolIdentifierCase_ == 5) { + return (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The toolset tool to execute.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolsetTool, + com.google.cloud.ces.v1.ToolsetTool.Builder, + com.google.cloud.ces.v1.ToolsetToolOrBuilder> + internalGetToolsetToolFieldBuilder() { + if (toolsetToolBuilder_ == null) { + if (!(toolIdentifierCase_ == 5)) { + toolIdentifier_ = com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + toolsetToolBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolsetTool, + com.google.cloud.ces.v1.ToolsetTool.Builder, + com.google.cloud.ces.v1.ToolsetToolOrBuilder>( + (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_, + getParentForChildren(), + isClean()); + toolIdentifier_ = null; + } + toolIdentifierCase_ = 5; + onChanged(); + return toolsetToolBuilder_; + } + + private java.lang.Object id_ = ""; + + /** + * + * + *
      +     * Optional. The unique identifier of the tool call. If populated, the client
      +     * should return the execution result with the matching ID in
      +     * [ToolResponse][google.cloud.ces.v1.ToolResponse.id].
      +     * 
      + * + * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The unique identifier of the tool call. If populated, the client
      +     * should return the execution result with the matching ID in
      +     * [ToolResponse][google.cloud.ces.v1.ToolResponse.id].
      +     * 
      + * + * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The unique identifier of the tool call. If populated, the client
      +     * should return the execution result with the matching ID in
      +     * [ToolResponse][google.cloud.ces.v1.ToolResponse.id].
      +     * 
      + * + * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The unique identifier of the tool call. If populated, the client
      +     * should return the execution result with the matching ID in
      +     * [ToolResponse][google.cloud.ces.v1.ToolResponse.id].
      +     * 
      + * + * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The unique identifier of the tool call. If populated, the client
      +     * should return the execution result with the matching ID in
      +     * [ToolResponse][google.cloud.ces.v1.ToolResponse.id].
      +     * 
      + * + * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
      +     * Output only. Display name of the tool.
      +     * 
      + * + * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Output only. Display name of the tool.
      +     * 
      + * + * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Output only. Display name of the tool.
      +     * 
      + * + * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Display name of the tool.
      +     * 
      + * + * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Display name of the tool.
      +     * 
      + * + * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.Struct args_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + argsBuilder_; + + /** + * + * + *
      +     * Optional. The input parameters and values for the tool in JSON object
      +     * format.
      +     * 
      + * + * .google.protobuf.Struct args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the args field is set. + */ + public boolean hasArgs() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +     * Optional. The input parameters and values for the tool in JSON object
      +     * format.
      +     * 
      + * + * .google.protobuf.Struct args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The args. + */ + public com.google.protobuf.Struct getArgs() { + if (argsBuilder_ == null) { + return args_ == null ? com.google.protobuf.Struct.getDefaultInstance() : args_; + } else { + return argsBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. The input parameters and values for the tool in JSON object
      +     * format.
      +     * 
      + * + * .google.protobuf.Struct args = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setArgs(com.google.protobuf.Struct value) { + if (argsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + args_ = value; + } else { + argsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The input parameters and values for the tool in JSON object
      +     * format.
      +     * 
      + * + * .google.protobuf.Struct args = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setArgs(com.google.protobuf.Struct.Builder builderForValue) { + if (argsBuilder_ == null) { + args_ = builderForValue.build(); + } else { + argsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The input parameters and values for the tool in JSON object
      +     * format.
      +     * 
      + * + * .google.protobuf.Struct args = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeArgs(com.google.protobuf.Struct value) { + if (argsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && args_ != null + && args_ != com.google.protobuf.Struct.getDefaultInstance()) { + getArgsBuilder().mergeFrom(value); + } else { + args_ = value; + } + } else { + argsBuilder_.mergeFrom(value); + } + if (args_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The input parameters and values for the tool in JSON object
      +     * format.
      +     * 
      + * + * .google.protobuf.Struct args = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearArgs() { + bitField0_ = (bitField0_ & ~0x00000010); + args_ = null; + if (argsBuilder_ != null) { + argsBuilder_.dispose(); + argsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The input parameters and values for the tool in JSON object
      +     * format.
      +     * 
      + * + * .google.protobuf.Struct args = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Struct.Builder getArgsBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetArgsFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The input parameters and values for the tool in JSON object
      +     * format.
      +     * 
      + * + * .google.protobuf.Struct args = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.StructOrBuilder getArgsOrBuilder() { + if (argsBuilder_ != null) { + return argsBuilder_.getMessageOrBuilder(); + } else { + return args_ == null ? com.google.protobuf.Struct.getDefaultInstance() : args_; + } + } + + /** + * + * + *
      +     * Optional. The input parameters and values for the tool in JSON object
      +     * format.
      +     * 
      + * + * .google.protobuf.Struct args = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetArgsFieldBuilder() { + if (argsBuilder_ == null) { + argsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>(getArgs(), getParentForChildren(), isClean()); + args_ = null; + } + return argsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ToolCall) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ToolCall) + private static final com.google.cloud.ces.v1.ToolCall DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ToolCall(); + } + + public static com.google.cloud.ces.v1.ToolCall getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToolCall parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ToolCall getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolCallOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolCallOrBuilder.java new file mode 100644 index 000000000000..7efc2e8211be --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolCallOrBuilder.java @@ -0,0 +1,217 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/example.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ToolCallOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ToolCall) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. The name of the tool to execute.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +   * 
      + * + * + * string tool = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the tool field is set. + */ + boolean hasTool(); + + /** + * + * + *
      +   * Optional. The name of the tool to execute.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +   * 
      + * + * + * string tool = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The tool. + */ + java.lang.String getTool(); + + /** + * + * + *
      +   * Optional. The name of the tool to execute.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +   * 
      + * + * + * string tool = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tool. + */ + com.google.protobuf.ByteString getToolBytes(); + + /** + * + * + *
      +   * Optional. The toolset tool to execute.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolsetTool field is set. + */ + boolean hasToolsetTool(); + + /** + * + * + *
      +   * Optional. The toolset tool to execute.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolsetTool. + */ + com.google.cloud.ces.v1.ToolsetTool getToolsetTool(); + + /** + * + * + *
      +   * Optional. The toolset tool to execute.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetToolOrBuilder(); + + /** + * + * + *
      +   * Optional. The unique identifier of the tool call. If populated, the client
      +   * should return the execution result with the matching ID in
      +   * [ToolResponse][google.cloud.ces.v1.ToolResponse.id].
      +   * 
      + * + * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
      +   * Optional. The unique identifier of the tool call. If populated, the client
      +   * should return the execution result with the matching ID in
      +   * [ToolResponse][google.cloud.ces.v1.ToolResponse.id].
      +   * 
      + * + * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
      +   * Output only. Display name of the tool.
      +   * 
      + * + * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
      +   * Output only. Display name of the tool.
      +   * 
      + * + * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
      +   * Optional. The input parameters and values for the tool in JSON object
      +   * format.
      +   * 
      + * + * .google.protobuf.Struct args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the args field is set. + */ + boolean hasArgs(); + + /** + * + * + *
      +   * Optional. The input parameters and values for the tool in JSON object
      +   * format.
      +   * 
      + * + * .google.protobuf.Struct args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The args. + */ + com.google.protobuf.Struct getArgs(); + + /** + * + * + *
      +   * Optional. The input parameters and values for the tool in JSON object
      +   * format.
      +   * 
      + * + * .google.protobuf.Struct args = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.StructOrBuilder getArgsOrBuilder(); + + com.google.cloud.ces.v1.ToolCall.ToolIdentifierCase getToolIdentifierCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolCalls.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolCalls.java new file mode 100644 index 000000000000..1d37eb9457d1 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolCalls.java @@ -0,0 +1,963 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request for the client to execute the tools and return the execution results
      + * before continuing the session.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ToolCalls} + */ +@com.google.protobuf.Generated +public final class ToolCalls extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ToolCalls) + ToolCallsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ToolCalls"); + } + + // Use ToolCalls.newBuilder() to construct. + private ToolCalls(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ToolCalls() { + toolCalls_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_ToolCalls_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_ToolCalls_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ToolCalls.class, + com.google.cloud.ces.v1.ToolCalls.Builder.class); + } + + public static final int TOOL_CALLS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List toolCalls_; + + /** + * + * + *
      +   * Optional. The list of tool calls to execute.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getToolCallsList() { + return toolCalls_; + } + + /** + * + * + *
      +   * Optional. The list of tool calls to execute.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getToolCallsOrBuilderList() { + return toolCalls_; + } + + /** + * + * + *
      +   * Optional. The list of tool calls to execute.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getToolCallsCount() { + return toolCalls_.size(); + } + + /** + * + * + *
      +   * Optional. The list of tool calls to execute.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolCall getToolCalls(int index) { + return toolCalls_.get(index); + } + + /** + * + * + *
      +   * Optional. The list of tool calls to execute.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolCallOrBuilder getToolCallsOrBuilder(int index) { + return toolCalls_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < toolCalls_.size(); i++) { + output.writeMessage(1, toolCalls_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < toolCalls_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, toolCalls_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ToolCalls)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ToolCalls other = (com.google.cloud.ces.v1.ToolCalls) obj; + + if (!getToolCallsList().equals(other.getToolCallsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getToolCallsCount() > 0) { + hash = (37 * hash) + TOOL_CALLS_FIELD_NUMBER; + hash = (53 * hash) + getToolCallsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ToolCalls parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ToolCalls parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ToolCalls parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ToolCalls parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ToolCalls parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ToolCalls parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ToolCalls parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ToolCalls parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ToolCalls parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ToolCalls parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ToolCalls parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ToolCalls parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ToolCalls prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request for the client to execute the tools and return the execution results
      +   * before continuing the session.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ToolCalls} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ToolCalls) + com.google.cloud.ces.v1.ToolCallsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_ToolCalls_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_ToolCalls_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ToolCalls.class, + com.google.cloud.ces.v1.ToolCalls.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ToolCalls.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolCallsBuilder_ == null) { + toolCalls_ = java.util.Collections.emptyList(); + } else { + toolCalls_ = null; + toolCallsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_ToolCalls_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ToolCalls getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ToolCalls.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ToolCalls build() { + com.google.cloud.ces.v1.ToolCalls result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ToolCalls buildPartial() { + com.google.cloud.ces.v1.ToolCalls result = new com.google.cloud.ces.v1.ToolCalls(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1.ToolCalls result) { + if (toolCallsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + toolCalls_ = java.util.Collections.unmodifiableList(toolCalls_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.toolCalls_ = toolCalls_; + } else { + result.toolCalls_ = toolCallsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.ToolCalls result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ToolCalls) { + return mergeFrom((com.google.cloud.ces.v1.ToolCalls) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ToolCalls other) { + if (other == com.google.cloud.ces.v1.ToolCalls.getDefaultInstance()) return this; + if (toolCallsBuilder_ == null) { + if (!other.toolCalls_.isEmpty()) { + if (toolCalls_.isEmpty()) { + toolCalls_ = other.toolCalls_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureToolCallsIsMutable(); + toolCalls_.addAll(other.toolCalls_); + } + onChanged(); + } + } else { + if (!other.toolCalls_.isEmpty()) { + if (toolCallsBuilder_.isEmpty()) { + toolCallsBuilder_.dispose(); + toolCallsBuilder_ = null; + toolCalls_ = other.toolCalls_; + bitField0_ = (bitField0_ & ~0x00000001); + toolCallsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetToolCallsFieldBuilder() + : null; + } else { + toolCallsBuilder_.addAllMessages(other.toolCalls_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.ces.v1.ToolCall m = + input.readMessage(com.google.cloud.ces.v1.ToolCall.parser(), extensionRegistry); + if (toolCallsBuilder_ == null) { + ensureToolCallsIsMutable(); + toolCalls_.add(m); + } else { + toolCallsBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List toolCalls_ = + java.util.Collections.emptyList(); + + private void ensureToolCallsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + toolCalls_ = new java.util.ArrayList(toolCalls_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.ToolCall, + com.google.cloud.ces.v1.ToolCall.Builder, + com.google.cloud.ces.v1.ToolCallOrBuilder> + toolCallsBuilder_; + + /** + * + * + *
      +     * Optional. The list of tool calls to execute.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getToolCallsList() { + if (toolCallsBuilder_ == null) { + return java.util.Collections.unmodifiableList(toolCalls_); + } else { + return toolCallsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Optional. The list of tool calls to execute.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getToolCallsCount() { + if (toolCallsBuilder_ == null) { + return toolCalls_.size(); + } else { + return toolCallsBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Optional. The list of tool calls to execute.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ToolCall getToolCalls(int index) { + if (toolCallsBuilder_ == null) { + return toolCalls_.get(index); + } else { + return toolCallsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Optional. The list of tool calls to execute.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolCalls(int index, com.google.cloud.ces.v1.ToolCall value) { + if (toolCallsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolCallsIsMutable(); + toolCalls_.set(index, value); + onChanged(); + } else { + toolCallsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The list of tool calls to execute.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolCalls( + int index, com.google.cloud.ces.v1.ToolCall.Builder builderForValue) { + if (toolCallsBuilder_ == null) { + ensureToolCallsIsMutable(); + toolCalls_.set(index, builderForValue.build()); + onChanged(); + } else { + toolCallsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The list of tool calls to execute.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolCalls(com.google.cloud.ces.v1.ToolCall value) { + if (toolCallsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolCallsIsMutable(); + toolCalls_.add(value); + onChanged(); + } else { + toolCallsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The list of tool calls to execute.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolCalls(int index, com.google.cloud.ces.v1.ToolCall value) { + if (toolCallsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolCallsIsMutable(); + toolCalls_.add(index, value); + onChanged(); + } else { + toolCallsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The list of tool calls to execute.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolCalls(com.google.cloud.ces.v1.ToolCall.Builder builderForValue) { + if (toolCallsBuilder_ == null) { + ensureToolCallsIsMutable(); + toolCalls_.add(builderForValue.build()); + onChanged(); + } else { + toolCallsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The list of tool calls to execute.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolCalls( + int index, com.google.cloud.ces.v1.ToolCall.Builder builderForValue) { + if (toolCallsBuilder_ == null) { + ensureToolCallsIsMutable(); + toolCalls_.add(index, builderForValue.build()); + onChanged(); + } else { + toolCallsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The list of tool calls to execute.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllToolCalls( + java.lang.Iterable values) { + if (toolCallsBuilder_ == null) { + ensureToolCallsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, toolCalls_); + onChanged(); + } else { + toolCallsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Optional. The list of tool calls to execute.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearToolCalls() { + if (toolCallsBuilder_ == null) { + toolCalls_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + toolCallsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The list of tool calls to execute.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeToolCalls(int index) { + if (toolCallsBuilder_ == null) { + ensureToolCallsIsMutable(); + toolCalls_.remove(index); + onChanged(); + } else { + toolCallsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Optional. The list of tool calls to execute.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ToolCall.Builder getToolCallsBuilder(int index) { + return internalGetToolCallsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Optional. The list of tool calls to execute.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ToolCallOrBuilder getToolCallsOrBuilder(int index) { + if (toolCallsBuilder_ == null) { + return toolCalls_.get(index); + } else { + return toolCallsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Optional. The list of tool calls to execute.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getToolCallsOrBuilderList() { + if (toolCallsBuilder_ != null) { + return toolCallsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(toolCalls_); + } + } + + /** + * + * + *
      +     * Optional. The list of tool calls to execute.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ToolCall.Builder addToolCallsBuilder() { + return internalGetToolCallsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.ToolCall.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. The list of tool calls to execute.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ToolCall.Builder addToolCallsBuilder(int index) { + return internalGetToolCallsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.ToolCall.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. The list of tool calls to execute.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getToolCallsBuilderList() { + return internalGetToolCallsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.ToolCall, + com.google.cloud.ces.v1.ToolCall.Builder, + com.google.cloud.ces.v1.ToolCallOrBuilder> + internalGetToolCallsFieldBuilder() { + if (toolCallsBuilder_ == null) { + toolCallsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.ToolCall, + com.google.cloud.ces.v1.ToolCall.Builder, + com.google.cloud.ces.v1.ToolCallOrBuilder>( + toolCalls_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + toolCalls_ = null; + } + return toolCallsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ToolCalls) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ToolCalls) + private static final com.google.cloud.ces.v1.ToolCalls DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ToolCalls(); + } + + public static com.google.cloud.ces.v1.ToolCalls getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToolCalls parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ToolCalls getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolCallsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolCallsOrBuilder.java new file mode 100644 index 000000000000..3bc3dbad5dcb --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolCallsOrBuilder.java @@ -0,0 +1,93 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ToolCallsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ToolCalls) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. The list of tool calls to execute.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getToolCallsList(); + + /** + * + * + *
      +   * Optional. The list of tool calls to execute.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ToolCall getToolCalls(int index); + + /** + * + * + *
      +   * Optional. The list of tool calls to execute.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getToolCallsCount(); + + /** + * + * + *
      +   * Optional. The list of tool calls to execute.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getToolCallsOrBuilderList(); + + /** + * + * + *
      +   * Optional. The list of tool calls to execute.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.ToolCall tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ToolCallOrBuilder getToolCallsOrBuilder(int index); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolFakeConfig.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolFakeConfig.java new file mode 100644 index 000000000000..85acd3e16d81 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolFakeConfig.java @@ -0,0 +1,910 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/fakes.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Configuration for tool behavior in fake mode.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ToolFakeConfig} + */ +@com.google.protobuf.Generated +public final class ToolFakeConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ToolFakeConfig) + ToolFakeConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ToolFakeConfig"); + } + + // Use ToolFakeConfig.newBuilder() to construct. + private ToolFakeConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ToolFakeConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.FakesProto + .internal_static_google_cloud_ces_v1_ToolFakeConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.FakesProto + .internal_static_google_cloud_ces_v1_ToolFakeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ToolFakeConfig.class, + com.google.cloud.ces.v1.ToolFakeConfig.Builder.class); + } + + private int toolResponseCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object toolResponse_; + + public enum ToolResponseCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CODE_BLOCK(1), + TOOLRESPONSE_NOT_SET(0); + private final int value; + + private ToolResponseCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ToolResponseCase valueOf(int value) { + return forNumber(value); + } + + public static ToolResponseCase forNumber(int value) { + switch (value) { + case 1: + return CODE_BLOCK; + case 0: + return TOOLRESPONSE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ToolResponseCase getToolResponseCase() { + return ToolResponseCase.forNumber(toolResponseCase_); + } + + public static final int CODE_BLOCK_FIELD_NUMBER = 1; + + /** + * + * + *
      +   * Optional. Code block which will be executed instead of a real tool call.
      +   * 
      + * + * .google.cloud.ces.v1.CodeBlock code_block = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the codeBlock field is set. + */ + @java.lang.Override + public boolean hasCodeBlock() { + return toolResponseCase_ == 1; + } + + /** + * + * + *
      +   * Optional. Code block which will be executed instead of a real tool call.
      +   * 
      + * + * .google.cloud.ces.v1.CodeBlock code_block = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The codeBlock. + */ + @java.lang.Override + public com.google.cloud.ces.v1.CodeBlock getCodeBlock() { + if (toolResponseCase_ == 1) { + return (com.google.cloud.ces.v1.CodeBlock) toolResponse_; + } + return com.google.cloud.ces.v1.CodeBlock.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Code block which will be executed instead of a real tool call.
      +   * 
      + * + * .google.cloud.ces.v1.CodeBlock code_block = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.CodeBlockOrBuilder getCodeBlockOrBuilder() { + if (toolResponseCase_ == 1) { + return (com.google.cloud.ces.v1.CodeBlock) toolResponse_; + } + return com.google.cloud.ces.v1.CodeBlock.getDefaultInstance(); + } + + public static final int ENABLE_FAKE_MODE_FIELD_NUMBER = 2; + private boolean enableFakeMode_ = false; + + /** + * + * + *
      +   * Optional. Whether the tool is using fake mode.
      +   * 
      + * + * bool enable_fake_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableFakeMode. + */ + @java.lang.Override + public boolean getEnableFakeMode() { + return enableFakeMode_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (toolResponseCase_ == 1) { + output.writeMessage(1, (com.google.cloud.ces.v1.CodeBlock) toolResponse_); + } + if (enableFakeMode_ != false) { + output.writeBool(2, enableFakeMode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (toolResponseCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.ces.v1.CodeBlock) toolResponse_); + } + if (enableFakeMode_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableFakeMode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ToolFakeConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ToolFakeConfig other = (com.google.cloud.ces.v1.ToolFakeConfig) obj; + + if (getEnableFakeMode() != other.getEnableFakeMode()) return false; + if (!getToolResponseCase().equals(other.getToolResponseCase())) return false; + switch (toolResponseCase_) { + case 1: + if (!getCodeBlock().equals(other.getCodeBlock())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLE_FAKE_MODE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableFakeMode()); + switch (toolResponseCase_) { + case 1: + hash = (37 * hash) + CODE_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getCodeBlock().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ToolFakeConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ToolFakeConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ToolFakeConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ToolFakeConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ToolFakeConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ToolFakeConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ToolFakeConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ToolFakeConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ToolFakeConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ToolFakeConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ToolFakeConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ToolFakeConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ToolFakeConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Configuration for tool behavior in fake mode.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ToolFakeConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ToolFakeConfig) + com.google.cloud.ces.v1.ToolFakeConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.FakesProto + .internal_static_google_cloud_ces_v1_ToolFakeConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.FakesProto + .internal_static_google_cloud_ces_v1_ToolFakeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ToolFakeConfig.class, + com.google.cloud.ces.v1.ToolFakeConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ToolFakeConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (codeBlockBuilder_ != null) { + codeBlockBuilder_.clear(); + } + enableFakeMode_ = false; + toolResponseCase_ = 0; + toolResponse_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.FakesProto + .internal_static_google_cloud_ces_v1_ToolFakeConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ToolFakeConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ToolFakeConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ToolFakeConfig build() { + com.google.cloud.ces.v1.ToolFakeConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ToolFakeConfig buildPartial() { + com.google.cloud.ces.v1.ToolFakeConfig result = + new com.google.cloud.ces.v1.ToolFakeConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ToolFakeConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enableFakeMode_ = enableFakeMode_; + } + } + + private void buildPartialOneofs(com.google.cloud.ces.v1.ToolFakeConfig result) { + result.toolResponseCase_ = toolResponseCase_; + result.toolResponse_ = this.toolResponse_; + if (toolResponseCase_ == 1 && codeBlockBuilder_ != null) { + result.toolResponse_ = codeBlockBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ToolFakeConfig) { + return mergeFrom((com.google.cloud.ces.v1.ToolFakeConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ToolFakeConfig other) { + if (other == com.google.cloud.ces.v1.ToolFakeConfig.getDefaultInstance()) return this; + if (other.getEnableFakeMode() != false) { + setEnableFakeMode(other.getEnableFakeMode()); + } + switch (other.getToolResponseCase()) { + case CODE_BLOCK: + { + mergeCodeBlock(other.getCodeBlock()); + break; + } + case TOOLRESPONSE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetCodeBlockFieldBuilder().getBuilder(), extensionRegistry); + toolResponseCase_ = 1; + break; + } // case 10 + case 16: + { + enableFakeMode_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int toolResponseCase_ = 0; + private java.lang.Object toolResponse_; + + public ToolResponseCase getToolResponseCase() { + return ToolResponseCase.forNumber(toolResponseCase_); + } + + public Builder clearToolResponse() { + toolResponseCase_ = 0; + toolResponse_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.CodeBlock, + com.google.cloud.ces.v1.CodeBlock.Builder, + com.google.cloud.ces.v1.CodeBlockOrBuilder> + codeBlockBuilder_; + + /** + * + * + *
      +     * Optional. Code block which will be executed instead of a real tool call.
      +     * 
      + * + * + * .google.cloud.ces.v1.CodeBlock code_block = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the codeBlock field is set. + */ + @java.lang.Override + public boolean hasCodeBlock() { + return toolResponseCase_ == 1; + } + + /** + * + * + *
      +     * Optional. Code block which will be executed instead of a real tool call.
      +     * 
      + * + * + * .google.cloud.ces.v1.CodeBlock code_block = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The codeBlock. + */ + @java.lang.Override + public com.google.cloud.ces.v1.CodeBlock getCodeBlock() { + if (codeBlockBuilder_ == null) { + if (toolResponseCase_ == 1) { + return (com.google.cloud.ces.v1.CodeBlock) toolResponse_; + } + return com.google.cloud.ces.v1.CodeBlock.getDefaultInstance(); + } else { + if (toolResponseCase_ == 1) { + return codeBlockBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.CodeBlock.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Code block which will be executed instead of a real tool call.
      +     * 
      + * + * + * .google.cloud.ces.v1.CodeBlock code_block = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCodeBlock(com.google.cloud.ces.v1.CodeBlock value) { + if (codeBlockBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolResponse_ = value; + onChanged(); + } else { + codeBlockBuilder_.setMessage(value); + } + toolResponseCase_ = 1; + return this; + } + + /** + * + * + *
      +     * Optional. Code block which will be executed instead of a real tool call.
      +     * 
      + * + * + * .google.cloud.ces.v1.CodeBlock code_block = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCodeBlock(com.google.cloud.ces.v1.CodeBlock.Builder builderForValue) { + if (codeBlockBuilder_ == null) { + toolResponse_ = builderForValue.build(); + onChanged(); + } else { + codeBlockBuilder_.setMessage(builderForValue.build()); + } + toolResponseCase_ = 1; + return this; + } + + /** + * + * + *
      +     * Optional. Code block which will be executed instead of a real tool call.
      +     * 
      + * + * + * .google.cloud.ces.v1.CodeBlock code_block = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCodeBlock(com.google.cloud.ces.v1.CodeBlock value) { + if (codeBlockBuilder_ == null) { + if (toolResponseCase_ == 1 + && toolResponse_ != com.google.cloud.ces.v1.CodeBlock.getDefaultInstance()) { + toolResponse_ = + com.google.cloud.ces.v1.CodeBlock.newBuilder( + (com.google.cloud.ces.v1.CodeBlock) toolResponse_) + .mergeFrom(value) + .buildPartial(); + } else { + toolResponse_ = value; + } + onChanged(); + } else { + if (toolResponseCase_ == 1) { + codeBlockBuilder_.mergeFrom(value); + } else { + codeBlockBuilder_.setMessage(value); + } + } + toolResponseCase_ = 1; + return this; + } + + /** + * + * + *
      +     * Optional. Code block which will be executed instead of a real tool call.
      +     * 
      + * + * + * .google.cloud.ces.v1.CodeBlock code_block = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCodeBlock() { + if (codeBlockBuilder_ == null) { + if (toolResponseCase_ == 1) { + toolResponseCase_ = 0; + toolResponse_ = null; + onChanged(); + } + } else { + if (toolResponseCase_ == 1) { + toolResponseCase_ = 0; + toolResponse_ = null; + } + codeBlockBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Code block which will be executed instead of a real tool call.
      +     * 
      + * + * + * .google.cloud.ces.v1.CodeBlock code_block = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.CodeBlock.Builder getCodeBlockBuilder() { + return internalGetCodeBlockFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Code block which will be executed instead of a real tool call.
      +     * 
      + * + * + * .google.cloud.ces.v1.CodeBlock code_block = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.CodeBlockOrBuilder getCodeBlockOrBuilder() { + if ((toolResponseCase_ == 1) && (codeBlockBuilder_ != null)) { + return codeBlockBuilder_.getMessageOrBuilder(); + } else { + if (toolResponseCase_ == 1) { + return (com.google.cloud.ces.v1.CodeBlock) toolResponse_; + } + return com.google.cloud.ces.v1.CodeBlock.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Code block which will be executed instead of a real tool call.
      +     * 
      + * + * + * .google.cloud.ces.v1.CodeBlock code_block = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.CodeBlock, + com.google.cloud.ces.v1.CodeBlock.Builder, + com.google.cloud.ces.v1.CodeBlockOrBuilder> + internalGetCodeBlockFieldBuilder() { + if (codeBlockBuilder_ == null) { + if (!(toolResponseCase_ == 1)) { + toolResponse_ = com.google.cloud.ces.v1.CodeBlock.getDefaultInstance(); + } + codeBlockBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.CodeBlock, + com.google.cloud.ces.v1.CodeBlock.Builder, + com.google.cloud.ces.v1.CodeBlockOrBuilder>( + (com.google.cloud.ces.v1.CodeBlock) toolResponse_, + getParentForChildren(), + isClean()); + toolResponse_ = null; + } + toolResponseCase_ = 1; + onChanged(); + return codeBlockBuilder_; + } + + private boolean enableFakeMode_; + + /** + * + * + *
      +     * Optional. Whether the tool is using fake mode.
      +     * 
      + * + * bool enable_fake_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableFakeMode. + */ + @java.lang.Override + public boolean getEnableFakeMode() { + return enableFakeMode_; + } + + /** + * + * + *
      +     * Optional. Whether the tool is using fake mode.
      +     * 
      + * + * bool enable_fake_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableFakeMode to set. + * @return This builder for chaining. + */ + public Builder setEnableFakeMode(boolean value) { + + enableFakeMode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Whether the tool is using fake mode.
      +     * 
      + * + * bool enable_fake_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnableFakeMode() { + bitField0_ = (bitField0_ & ~0x00000002); + enableFakeMode_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ToolFakeConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ToolFakeConfig) + private static final com.google.cloud.ces.v1.ToolFakeConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ToolFakeConfig(); + } + + public static com.google.cloud.ces.v1.ToolFakeConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToolFakeConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ToolFakeConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolFakeConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolFakeConfigOrBuilder.java new file mode 100644 index 000000000000..b7bfbde85b23 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolFakeConfigOrBuilder.java @@ -0,0 +1,83 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/fakes.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ToolFakeConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ToolFakeConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. Code block which will be executed instead of a real tool call.
      +   * 
      + * + * .google.cloud.ces.v1.CodeBlock code_block = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the codeBlock field is set. + */ + boolean hasCodeBlock(); + + /** + * + * + *
      +   * Optional. Code block which will be executed instead of a real tool call.
      +   * 
      + * + * .google.cloud.ces.v1.CodeBlock code_block = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The codeBlock. + */ + com.google.cloud.ces.v1.CodeBlock getCodeBlock(); + + /** + * + * + *
      +   * Optional. Code block which will be executed instead of a real tool call.
      +   * 
      + * + * .google.cloud.ces.v1.CodeBlock code_block = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.CodeBlockOrBuilder getCodeBlockOrBuilder(); + + /** + * + * + *
      +   * Optional. Whether the tool is using fake mode.
      +   * 
      + * + * bool enable_fake_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableFakeMode. + */ + boolean getEnableFakeMode(); + + com.google.cloud.ces.v1.ToolFakeConfig.ToolResponseCase getToolResponseCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolName.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolName.java new file mode 100644 index 000000000000..c21ac805ba95 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolName.java @@ -0,0 +1,252 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ToolName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_APP_TOOL = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/apps/{app}/tools/{tool}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String app; + private final String tool; + + @Deprecated + protected ToolName() { + project = null; + location = null; + app = null; + tool = null; + } + + private ToolName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + app = Preconditions.checkNotNull(builder.getApp()); + tool = Preconditions.checkNotNull(builder.getTool()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getApp() { + return app; + } + + public String getTool() { + return tool; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ToolName of(String project, String location, String app, String tool) { + return newBuilder().setProject(project).setLocation(location).setApp(app).setTool(tool).build(); + } + + public static String format(String project, String location, String app, String tool) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setApp(app) + .setTool(tool) + .build() + .toString(); + } + + public static ToolName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_APP_TOOL.validatedMatch( + formattedString, "ToolName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("app"), + matchMap.get("tool")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ToolName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_APP_TOOL.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (app != null) { + fieldMapBuilder.put("app", app); + } + if (tool != null) { + fieldMapBuilder.put("tool", tool); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_APP_TOOL.instantiate( + "project", project, "location", location, "app", app, "tool", tool); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ToolName that = ((ToolName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.app, that.app) + && Objects.equals(this.tool, that.tool); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(app); + h *= 1000003; + h ^= Objects.hashCode(tool); + return h; + } + + /** Builder for projects/{project}/locations/{location}/apps/{app}/tools/{tool}. */ + public static class Builder { + private String project; + private String location; + private String app; + private String tool; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getApp() { + return app; + } + + public String getTool() { + return tool; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setApp(String app) { + this.app = app; + return this; + } + + public Builder setTool(String tool) { + this.tool = tool; + return this; + } + + private Builder(ToolName toolName) { + this.project = toolName.project; + this.location = toolName.location; + this.app = toolName.app; + this.tool = toolName.tool; + } + + public ToolName build() { + return new ToolName(this); + } + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolOrBuilder.java new file mode 100644 index 000000000000..7a4df3054f00 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolOrBuilder.java @@ -0,0 +1,741 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ToolOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.Tool) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. The client function.
      +   * 
      + * + * + * .google.cloud.ces.v1.ClientFunction client_function = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the clientFunction field is set. + */ + boolean hasClientFunction(); + + /** + * + * + *
      +   * Optional. The client function.
      +   * 
      + * + * + * .google.cloud.ces.v1.ClientFunction client_function = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clientFunction. + */ + com.google.cloud.ces.v1.ClientFunction getClientFunction(); + + /** + * + * + *
      +   * Optional. The client function.
      +   * 
      + * + * + * .google.cloud.ces.v1.ClientFunction client_function = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ClientFunctionOrBuilder getClientFunctionOrBuilder(); + + /** + * + * + *
      +   * Optional. The open API tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.OpenApiTool open_api_tool = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the openApiTool field is set. + */ + boolean hasOpenApiTool(); + + /** + * + * + *
      +   * Optional. The open API tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.OpenApiTool open_api_tool = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The openApiTool. + */ + com.google.cloud.ces.v1.OpenApiTool getOpenApiTool(); + + /** + * + * + *
      +   * Optional. The open API tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.OpenApiTool open_api_tool = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.OpenApiToolOrBuilder getOpenApiToolOrBuilder(); + + /** + * + * + *
      +   * Optional. The google search tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.GoogleSearchTool google_search_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the googleSearchTool field is set. + */ + boolean hasGoogleSearchTool(); + + /** + * + * + *
      +   * Optional. The google search tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.GoogleSearchTool google_search_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The googleSearchTool. + */ + com.google.cloud.ces.v1.GoogleSearchTool getGoogleSearchTool(); + + /** + * + * + *
      +   * Optional. The google search tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.GoogleSearchTool google_search_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.GoogleSearchToolOrBuilder getGoogleSearchToolOrBuilder(); + + /** + * + * + *
      +   * Optional. The Integration Connector tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.ConnectorTool connector_tool = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the connectorTool field is set. + */ + boolean hasConnectorTool(); + + /** + * + * + *
      +   * Optional. The Integration Connector tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.ConnectorTool connector_tool = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The connectorTool. + */ + com.google.cloud.ces.v1.ConnectorTool getConnectorTool(); + + /** + * + * + *
      +   * Optional. The Integration Connector tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.ConnectorTool connector_tool = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ConnectorToolOrBuilder getConnectorToolOrBuilder(); + + /** + * + * + *
      +   * Optional. The data store tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool data_store_tool = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataStoreTool field is set. + */ + boolean hasDataStoreTool(); + + /** + * + * + *
      +   * Optional. The data store tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool data_store_tool = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataStoreTool. + */ + com.google.cloud.ces.v1.DataStoreTool getDataStoreTool(); + + /** + * + * + *
      +   * Optional. The data store tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.DataStoreTool data_store_tool = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.DataStoreToolOrBuilder getDataStoreToolOrBuilder(); + + /** + * + * + *
      +   * Optional. The python function tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pythonFunction field is set. + */ + boolean hasPythonFunction(); + + /** + * + * + *
      +   * Optional. The python function tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pythonFunction. + */ + com.google.cloud.ces.v1.PythonFunction getPythonFunction(); + + /** + * + * + *
      +   * Optional. The python function tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.PythonFunction python_function = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.PythonFunctionOrBuilder getPythonFunctionOrBuilder(); + + /** + * + * + *
      +   * Optional. The MCP tool. An MCP tool cannot be created or updated directly
      +   * and is managed by the MCP toolset.
      +   * 
      + * + * .google.cloud.ces.v1.McpTool mcp_tool = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mcpTool field is set. + */ + boolean hasMcpTool(); + + /** + * + * + *
      +   * Optional. The MCP tool. An MCP tool cannot be created or updated directly
      +   * and is managed by the MCP toolset.
      +   * 
      + * + * .google.cloud.ces.v1.McpTool mcp_tool = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mcpTool. + */ + com.google.cloud.ces.v1.McpTool getMcpTool(); + + /** + * + * + *
      +   * Optional. The MCP tool. An MCP tool cannot be created or updated directly
      +   * and is managed by the MCP toolset.
      +   * 
      + * + * .google.cloud.ces.v1.McpTool mcp_tool = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.McpToolOrBuilder getMcpToolOrBuilder(); + + /** + * + * + *
      +   * Optional. The file search tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.FileSearchTool file_search_tool = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fileSearchTool field is set. + */ + boolean hasFileSearchTool(); + + /** + * + * + *
      +   * Optional. The file search tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.FileSearchTool file_search_tool = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fileSearchTool. + */ + com.google.cloud.ces.v1.FileSearchTool getFileSearchTool(); + + /** + * + * + *
      +   * Optional. The file search tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.FileSearchTool file_search_tool = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.FileSearchToolOrBuilder getFileSearchToolOrBuilder(); + + /** + * + * + *
      +   * Optional. The system tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.SystemTool system_tool = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the systemTool field is set. + */ + boolean hasSystemTool(); + + /** + * + * + *
      +   * Optional. The system tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.SystemTool system_tool = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The systemTool. + */ + com.google.cloud.ces.v1.SystemTool getSystemTool(); + + /** + * + * + *
      +   * Optional. The system tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.SystemTool system_tool = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.SystemToolOrBuilder getSystemToolOrBuilder(); + + /** + * + * + *
      +   * Optional. The widget tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.WidgetTool widget_tool = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the widgetTool field is set. + */ + boolean hasWidgetTool(); + + /** + * + * + *
      +   * Optional. The widget tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.WidgetTool widget_tool = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The widgetTool. + */ + com.google.cloud.ces.v1.WidgetTool getWidgetTool(); + + /** + * + * + *
      +   * Optional. The widget tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.WidgetTool widget_tool = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.WidgetToolOrBuilder getWidgetToolOrBuilder(); + + /** + * + * + *
      +   * Identifier. The unique identifier of the tool.
      +   * Format:
      +   * - `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for
      +   * ## standalone tools.
      +   *
      +   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
      +   * for tools retrieved from a toolset. These tools are dynamic and
      +   * output-only, they cannot be referenced directly where a tool is expected.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Identifier. The unique identifier of the tool.
      +   * Format:
      +   * - `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for
      +   * ## standalone tools.
      +   *
      +   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}`
      +   * for tools retrieved from a toolset. These tools are dynamic and
      +   * output-only, they cannot be referenced directly where a tool is expected.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Output only. The display name of the tool, derived based on the tool's
      +   * type. For example, display name of a [ClientFunction][Tool.ClientFunction]
      +   * is derived from its `name` property.
      +   * 
      + * + * string display_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
      +   * Output only. The display name of the tool, derived based on the tool's
      +   * type. For example, display name of a [ClientFunction][Tool.ClientFunction]
      +   * is derived from its `name` property.
      +   * 
      + * + * string display_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
      +   * Optional. The execution type of the tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.ExecutionType execution_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for executionType. + */ + int getExecutionTypeValue(); + + /** + * + * + *
      +   * Optional. The execution type of the tool.
      +   * 
      + * + * + * .google.cloud.ces.v1.ExecutionType execution_type = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The executionType. + */ + com.google.cloud.ces.v1.ExecutionType getExecutionType(); + + /** + * + * + *
      +   * Output only. Timestamp when the tool was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the tool was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the tool was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
      +   * Output only. Timestamp when the tool was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the tool was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the tool was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
      +   * Etag used to ensure the object hasn't changed during a read-modify-write
      +   * operation. If the etag is empty, the update will overwrite any concurrent
      +   * changes.
      +   * 
      + * + * string etag = 14; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
      +   * Etag used to ensure the object hasn't changed during a read-modify-write
      +   * operation. If the etag is empty, the update will overwrite any concurrent
      +   * changes.
      +   * 
      + * + * string etag = 14; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
      +   * Output only. If the tool is generated by the LLM assistant, this field
      +   * contains a descriptive summary of the generation.
      +   * 
      + * + * string generated_summary = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The generatedSummary. + */ + java.lang.String getGeneratedSummary(); + + /** + * + * + *
      +   * Output only. If the tool is generated by the LLM assistant, this field
      +   * contains a descriptive summary of the generation.
      +   * 
      + * + * string generated_summary = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for generatedSummary. + */ + com.google.protobuf.ByteString getGeneratedSummaryBytes(); + + /** + * + * + *
      +   * Optional. Configuration for tool behavior in fake mode.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolFakeConfig tool_fake_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolFakeConfig field is set. + */ + boolean hasToolFakeConfig(); + + /** + * + * + *
      +   * Optional. Configuration for tool behavior in fake mode.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolFakeConfig tool_fake_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolFakeConfig. + */ + com.google.cloud.ces.v1.ToolFakeConfig getToolFakeConfig(); + + /** + * + * + *
      +   * Optional. Configuration for tool behavior in fake mode.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolFakeConfig tool_fake_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ToolFakeConfigOrBuilder getToolFakeConfigOrBuilder(); + + com.google.cloud.ces.v1.Tool.ToolTypeCase getToolTypeCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolProto.java new file mode 100644 index 000000000000..8a214a6056e2 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolProto.java @@ -0,0 +1,178 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class ToolProto extends com.google.protobuf.GeneratedFile { + private ToolProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ToolProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Tool_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Tool_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" + + "\036google/cloud/ces/v1/tool.proto\022\023google" + + ".cloud.ces.v1\032\037google/api/field_behavior" + + ".proto\032\031google/api/resource.proto\032)google/cloud/ces/v1/client_function.proto\032" + + " google/cloud/ces/v1/common.proto\032(google/c" + + "loud/ces/v1/connector_tool.proto\032)google" + + "/cloud/ces/v1/data_store_tool.proto\032\037goo" + + "gle/cloud/ces/v1/fakes.proto\032*google/cloud/ces/v1/file_search_tool.proto\032,google" + + "/cloud/ces/v1/google_search_tool.proto\032\"" + + "google/cloud/ces/v1/mcp_tool.proto\032\'goog" + + "le/cloud/ces/v1/open_api_tool.proto\032)google/cloud/ces/v1/python_function.proto\032%" + + "google/cloud/ces/v1/system_tool.proto\032%g" + + "oogle/cloud/ces/v1/widget_tool.proto\032\037google/protobuf/timestamp.proto\"\336\010\n" + + "\004Tool\022C\n" + + "\017client_function\030\002" + + " \001(\0132#.google.cloud.ces.v1.ClientFunctionB\003\340A\001H\000\022>\n\r" + + "open_api_tool\030\003 \001(\0132" + + " .google.cloud.ces.v1.OpenApiToolB\003\340A\001H\000\022H\n" + + "\022google_search_tool\030\005 \001(\0132" + + "%.google.cloud.ces.v1.GoogleSearchToolB\003\340A\001H\000\022A\n" + + "\016connector_tool\030\010" + + " \001(\0132\".google.cloud.ces.v1.ConnectorToolB\003\340A\001H\000\022B\n" + + "\017data_store_tool\030\n" + + " \001(\0132\".google.cloud.ces.v1.DataStoreToolB\003\340A\001H\000\022C\n" + + "\017python_function\030\013" + + " \001(\0132#.google.cloud.ces.v1.PythonFunctionB\003\340A\001H\000\0225\n" + + "\010mcp_tool\030\020" + + " \001(\0132\034.google.cloud.ces.v1.McpToolB\003\340A\001H\000\022D\n" + + "\020file_search_tool\030\021" + + " \001(\0132#.google.cloud.ces.v1.FileSearchToolB\003\340A\001H\000\022;\n" + + "\013system_tool\030\022" + + " \001(\0132\037.google.cloud.ces.v1.SystemToolB\003\340A\001H\000\022;\n" + + "\013widget_tool\030\030" + + " \001(\0132\037.google.cloud.ces.v1.WidgetToolB\003\340A\001H\000\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + + "\014display_name\030\r" + + " \001(\tB\003\340A\003\022?\n" + + "\016execution_type\030\014" + + " \001(\0162\".google.cloud.ces.v1.ExecutionTypeB\003\340A\001\0224\n" + + "\013create_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\007" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\014\n" + + "\004etag\030\016 \001(\t\022\036\n" + + "\021generated_summary\030\017 \001(\tB\003\340A\003\022B\n" + + "\020tool_fake_config\030\024" + + " \001(\0132#.google.cloud.ces.v1.ToolFakeConfigB\003\340A\001:j\352Ag\n" + + "\027ces.googleapis.com/Tool\022?projects/{project}/" + + "locations/{location}/apps/{app}/tools/{tool}*\005tools2\004toolB\013\n" + + "\ttool_typeBQ\n" + + "\027com.google.cloud.ces.v1B\tToolProtoP\001Z)cloud.go" + + "ogle.com/go/ces/apiv1/cespb;cespbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.ces.v1.ClientFunctionProto.getDescriptor(), + com.google.cloud.ces.v1.CommonProto.getDescriptor(), + com.google.cloud.ces.v1.ConnectorToolProto.getDescriptor(), + com.google.cloud.ces.v1.DataStoreToolProto.getDescriptor(), + com.google.cloud.ces.v1.FakesProto.getDescriptor(), + com.google.cloud.ces.v1.FileSearchToolProto.getDescriptor(), + com.google.cloud.ces.v1.GoogleSearchToolProto.getDescriptor(), + com.google.cloud.ces.v1.McpToolProto.getDescriptor(), + com.google.cloud.ces.v1.OpenApiToolProto.getDescriptor(), + com.google.cloud.ces.v1.PythonFunctionProto.getDescriptor(), + com.google.cloud.ces.v1.SystemToolProto.getDescriptor(), + com.google.cloud.ces.v1.WidgetToolProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_Tool_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_Tool_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Tool_descriptor, + new java.lang.String[] { + "ClientFunction", + "OpenApiTool", + "GoogleSearchTool", + "ConnectorTool", + "DataStoreTool", + "PythonFunction", + "McpTool", + "FileSearchTool", + "SystemTool", + "WidgetTool", + "Name", + "DisplayName", + "ExecutionType", + "CreateTime", + "UpdateTime", + "Etag", + "GeneratedSummary", + "ToolFakeConfig", + "ToolType", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.ces.v1.ClientFunctionProto.getDescriptor(); + com.google.cloud.ces.v1.CommonProto.getDescriptor(); + com.google.cloud.ces.v1.ConnectorToolProto.getDescriptor(); + com.google.cloud.ces.v1.DataStoreToolProto.getDescriptor(); + com.google.cloud.ces.v1.FakesProto.getDescriptor(); + com.google.cloud.ces.v1.FileSearchToolProto.getDescriptor(); + com.google.cloud.ces.v1.GoogleSearchToolProto.getDescriptor(); + com.google.cloud.ces.v1.McpToolProto.getDescriptor(); + com.google.cloud.ces.v1.OpenApiToolProto.getDescriptor(); + com.google.cloud.ces.v1.PythonFunctionProto.getDescriptor(); + com.google.cloud.ces.v1.SystemToolProto.getDescriptor(); + com.google.cloud.ces.v1.WidgetToolProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolResponse.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolResponse.java new file mode 100644 index 000000000000..d2faa68b0f28 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolResponse.java @@ -0,0 +1,1789 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/example.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * The execution result of a specific tool from the client or the agent.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ToolResponse} + */ +@com.google.protobuf.Generated +public final class ToolResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ToolResponse) + ToolResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ToolResponse"); + } + + // Use ToolResponse.newBuilder() to construct. + private ToolResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ToolResponse() { + id_ = ""; + displayName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_ToolResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_ToolResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ToolResponse.class, + com.google.cloud.ces.v1.ToolResponse.Builder.class); + } + + private int bitField0_; + private int toolIdentifierCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object toolIdentifier_; + + public enum ToolIdentifierCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TOOL(2), + TOOLSET_TOOL(5), + TOOLIDENTIFIER_NOT_SET(0); + private final int value; + + private ToolIdentifierCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ToolIdentifierCase valueOf(int value) { + return forNumber(value); + } + + public static ToolIdentifierCase forNumber(int value) { + switch (value) { + case 2: + return TOOL; + case 5: + return TOOLSET_TOOL; + case 0: + return TOOLIDENTIFIER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ToolIdentifierCase getToolIdentifierCase() { + return ToolIdentifierCase.forNumber(toolIdentifierCase_); + } + + public static final int TOOL_FIELD_NUMBER = 2; + + /** + * + * + *
      +   * Optional. The name of the tool to execute.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +   * 
      + * + * + * string tool = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the tool field is set. + */ + public boolean hasTool() { + return toolIdentifierCase_ == 2; + } + + /** + * + * + *
      +   * Optional. The name of the tool to execute.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +   * 
      + * + * + * string tool = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The tool. + */ + public java.lang.String getTool() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 2) { + ref = toolIdentifier_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (toolIdentifierCase_ == 2) { + toolIdentifier_ = s; + } + return s; + } + } + + /** + * + * + *
      +   * Optional. The name of the tool to execute.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +   * 
      + * + * + * string tool = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tool. + */ + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 2) { + ref = toolIdentifier_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (toolIdentifierCase_ == 2) { + toolIdentifier_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOLSET_TOOL_FIELD_NUMBER = 5; + + /** + * + * + *
      +   * Optional. The toolset tool that got executed.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolsetTool field is set. + */ + @java.lang.Override + public boolean hasToolsetTool() { + return toolIdentifierCase_ == 5; + } + + /** + * + * + *
      +   * Optional. The toolset tool that got executed.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolsetTool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetTool getToolsetTool() { + if (toolIdentifierCase_ == 5) { + return (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. The toolset tool that got executed.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetToolOrBuilder() { + if (toolIdentifierCase_ == 5) { + return (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + + public static final int ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
      +   * Optional. The matching ID of the [tool call][google.cloud.ces.v1.ToolCall]
      +   * the response is for.
      +   * 
      + * + * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The matching ID of the [tool call][google.cloud.ces.v1.ToolCall]
      +   * the response is for.
      +   * 
      + * + * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
      +   * Output only. Display name of the tool.
      +   * 
      + * + * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
      +   * Output only. Display name of the tool.
      +   * 
      + * + * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESPONSE_FIELD_NUMBER = 3; + private com.google.protobuf.Struct response_; + + /** + * + * + *
      +   * Required. The tool execution result in JSON object format.
      +   * Use "output" key to specify tool response and "error" key to specify
      +   * error details (if any). If "output" and "error" keys are not specified,
      +   * then whole "response" is treated as tool execution result.
      +   * 
      + * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the response field is set. + */ + @java.lang.Override + public boolean hasResponse() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Required. The tool execution result in JSON object format.
      +   * Use "output" key to specify tool response and "error" key to specify
      +   * error details (if any). If "output" and "error" keys are not specified,
      +   * then whole "response" is treated as tool execution result.
      +   * 
      + * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The response. + */ + @java.lang.Override + public com.google.protobuf.Struct getResponse() { + return response_ == null ? com.google.protobuf.Struct.getDefaultInstance() : response_; + } + + /** + * + * + *
      +   * Required. The tool execution result in JSON object format.
      +   * Use "output" key to specify tool response and "error" key to specify
      +   * error details (if any). If "output" and "error" keys are not specified,
      +   * then whole "response" is treated as tool execution result.
      +   * 
      + * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getResponseOrBuilder() { + return response_ == null ? com.google.protobuf.Struct.getDefaultInstance() : response_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (toolIdentifierCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, toolIdentifier_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getResponse()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, displayName_); + } + if (toolIdentifierCase_ == 5) { + output.writeMessage(5, (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (toolIdentifierCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, toolIdentifier_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResponse()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, displayName_); + } + if (toolIdentifierCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ToolResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ToolResponse other = (com.google.cloud.ces.v1.ToolResponse) obj; + + if (!getId().equals(other.getId())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse().equals(other.getResponse())) return false; + } + if (!getToolIdentifierCase().equals(other.getToolIdentifierCase())) return false; + switch (toolIdentifierCase_) { + case 2: + if (!getTool().equals(other.getTool())) return false; + break; + case 5: + if (!getToolsetTool().equals(other.getToolsetTool())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + switch (toolIdentifierCase_) { + case 2: + hash = (37 * hash) + TOOL_FIELD_NUMBER; + hash = (53 * hash) + getTool().hashCode(); + break; + case 5: + hash = (37 * hash) + TOOLSET_TOOL_FIELD_NUMBER; + hash = (53 * hash) + getToolsetTool().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ToolResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ToolResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ToolResponse parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ToolResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ToolResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ToolResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ToolResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ToolResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ToolResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ToolResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ToolResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ToolResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ToolResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * The execution result of a specific tool from the client or the agent.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ToolResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ToolResponse) + com.google.cloud.ces.v1.ToolResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_ToolResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_ToolResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ToolResponse.class, + com.google.cloud.ces.v1.ToolResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ToolResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetResponseFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolsetToolBuilder_ != null) { + toolsetToolBuilder_.clear(); + } + id_ = ""; + displayName_ = ""; + response_ = null; + if (responseBuilder_ != null) { + responseBuilder_.dispose(); + responseBuilder_ = null; + } + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.ExampleProto + .internal_static_google_cloud_ces_v1_ToolResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ToolResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ToolResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ToolResponse build() { + com.google.cloud.ces.v1.ToolResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ToolResponse buildPartial() { + com.google.cloud.ces.v1.ToolResponse result = new com.google.cloud.ces.v1.ToolResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ToolResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.displayName_ = displayName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.response_ = responseBuilder_ == null ? response_ : responseBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.ces.v1.ToolResponse result) { + result.toolIdentifierCase_ = toolIdentifierCase_; + result.toolIdentifier_ = this.toolIdentifier_; + if (toolIdentifierCase_ == 5 && toolsetToolBuilder_ != null) { + result.toolIdentifier_ = toolsetToolBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ToolResponse) { + return mergeFrom((com.google.cloud.ces.v1.ToolResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ToolResponse other) { + if (other == com.google.cloud.ces.v1.ToolResponse.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + switch (other.getToolIdentifierCase()) { + case TOOL: + { + toolIdentifierCase_ = 2; + toolIdentifier_ = other.toolIdentifier_; + onChanged(); + break; + } + case TOOLSET_TOOL: + { + mergeToolsetTool(other.getToolsetTool()); + break; + } + case TOOLIDENTIFIER_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + toolIdentifierCase_ = 2; + toolIdentifier_ = s; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetResponseFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 34: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetToolsetToolFieldBuilder().getBuilder(), extensionRegistry); + toolIdentifierCase_ = 5; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int toolIdentifierCase_ = 0; + private java.lang.Object toolIdentifier_; + + public ToolIdentifierCase getToolIdentifierCase() { + return ToolIdentifierCase.forNumber(toolIdentifierCase_); + } + + public Builder clearToolIdentifier() { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
      +     * Optional. The name of the tool to execute.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +     * 
      + * + * + * string tool = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the tool field is set. + */ + @java.lang.Override + public boolean hasTool() { + return toolIdentifierCase_ == 2; + } + + /** + * + * + *
      +     * Optional. The name of the tool to execute.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +     * 
      + * + * + * string tool = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The tool. + */ + @java.lang.Override + public java.lang.String getTool() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 2) { + ref = toolIdentifier_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (toolIdentifierCase_ == 2) { + toolIdentifier_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The name of the tool to execute.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +     * 
      + * + * + * string tool = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 2) { + ref = toolIdentifier_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (toolIdentifierCase_ == 2) { + toolIdentifier_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The name of the tool to execute.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +     * 
      + * + * + * string tool = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The tool to set. + * @return This builder for chaining. + */ + public Builder setTool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolIdentifierCase_ = 2; + toolIdentifier_ = value; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The name of the tool to execute.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +     * 
      + * + * + * string tool = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTool() { + if (toolIdentifierCase_ == 2) { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The name of the tool to execute.
      +     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +     * 
      + * + * + * string tool = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for tool to set. + * @return This builder for chaining. + */ + public Builder setToolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolIdentifierCase_ = 2; + toolIdentifier_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolsetTool, + com.google.cloud.ces.v1.ToolsetTool.Builder, + com.google.cloud.ces.v1.ToolsetToolOrBuilder> + toolsetToolBuilder_; + + /** + * + * + *
      +     * Optional. The toolset tool that got executed.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolsetTool field is set. + */ + @java.lang.Override + public boolean hasToolsetTool() { + return toolIdentifierCase_ == 5; + } + + /** + * + * + *
      +     * Optional. The toolset tool that got executed.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolsetTool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetTool getToolsetTool() { + if (toolsetToolBuilder_ == null) { + if (toolIdentifierCase_ == 5) { + return (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } else { + if (toolIdentifierCase_ == 5) { + return toolsetToolBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The toolset tool that got executed.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolsetTool(com.google.cloud.ces.v1.ToolsetTool value) { + if (toolsetToolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolIdentifier_ = value; + onChanged(); + } else { + toolsetToolBuilder_.setMessage(value); + } + toolIdentifierCase_ = 5; + return this; + } + + /** + * + * + *
      +     * Optional. The toolset tool that got executed.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolsetTool(com.google.cloud.ces.v1.ToolsetTool.Builder builderForValue) { + if (toolsetToolBuilder_ == null) { + toolIdentifier_ = builderForValue.build(); + onChanged(); + } else { + toolsetToolBuilder_.setMessage(builderForValue.build()); + } + toolIdentifierCase_ = 5; + return this; + } + + /** + * + * + *
      +     * Optional. The toolset tool that got executed.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeToolsetTool(com.google.cloud.ces.v1.ToolsetTool value) { + if (toolsetToolBuilder_ == null) { + if (toolIdentifierCase_ == 5 + && toolIdentifier_ != com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance()) { + toolIdentifier_ = + com.google.cloud.ces.v1.ToolsetTool.newBuilder( + (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_) + .mergeFrom(value) + .buildPartial(); + } else { + toolIdentifier_ = value; + } + onChanged(); + } else { + if (toolIdentifierCase_ == 5) { + toolsetToolBuilder_.mergeFrom(value); + } else { + toolsetToolBuilder_.setMessage(value); + } + } + toolIdentifierCase_ = 5; + return this; + } + + /** + * + * + *
      +     * Optional. The toolset tool that got executed.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearToolsetTool() { + if (toolsetToolBuilder_ == null) { + if (toolIdentifierCase_ == 5) { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + onChanged(); + } + } else { + if (toolIdentifierCase_ == 5) { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + } + toolsetToolBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The toolset tool that got executed.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ToolsetTool.Builder getToolsetToolBuilder() { + return internalGetToolsetToolFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The toolset tool that got executed.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetToolOrBuilder() { + if ((toolIdentifierCase_ == 5) && (toolsetToolBuilder_ != null)) { + return toolsetToolBuilder_.getMessageOrBuilder(); + } else { + if (toolIdentifierCase_ == 5) { + return (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The toolset tool that got executed.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolsetTool, + com.google.cloud.ces.v1.ToolsetTool.Builder, + com.google.cloud.ces.v1.ToolsetToolOrBuilder> + internalGetToolsetToolFieldBuilder() { + if (toolsetToolBuilder_ == null) { + if (!(toolIdentifierCase_ == 5)) { + toolIdentifier_ = com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + toolsetToolBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolsetTool, + com.google.cloud.ces.v1.ToolsetTool.Builder, + com.google.cloud.ces.v1.ToolsetToolOrBuilder>( + (com.google.cloud.ces.v1.ToolsetTool) toolIdentifier_, + getParentForChildren(), + isClean()); + toolIdentifier_ = null; + } + toolIdentifierCase_ = 5; + onChanged(); + return toolsetToolBuilder_; + } + + private java.lang.Object id_ = ""; + + /** + * + * + *
      +     * Optional. The matching ID of the [tool call][google.cloud.ces.v1.ToolCall]
      +     * the response is for.
      +     * 
      + * + * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The matching ID of the [tool call][google.cloud.ces.v1.ToolCall]
      +     * the response is for.
      +     * 
      + * + * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The matching ID of the [tool call][google.cloud.ces.v1.ToolCall]
      +     * the response is for.
      +     * 
      + * + * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The matching ID of the [tool call][google.cloud.ces.v1.ToolCall]
      +     * the response is for.
      +     * 
      + * + * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The matching ID of the [tool call][google.cloud.ces.v1.ToolCall]
      +     * the response is for.
      +     * 
      + * + * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
      +     * Output only. Display name of the tool.
      +     * 
      + * + * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Output only. Display name of the tool.
      +     * 
      + * + * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Output only. Display name of the tool.
      +     * 
      + * + * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Display name of the tool.
      +     * 
      + * + * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Display name of the tool.
      +     * 
      + * + * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.Struct response_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + responseBuilder_; + + /** + * + * + *
      +     * Required. The tool execution result in JSON object format.
      +     * Use "output" key to specify tool response and "error" key to specify
      +     * error details (if any). If "output" and "error" keys are not specified,
      +     * then whole "response" is treated as tool execution result.
      +     * 
      + * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the response field is set. + */ + public boolean hasResponse() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +     * Required. The tool execution result in JSON object format.
      +     * Use "output" key to specify tool response and "error" key to specify
      +     * error details (if any). If "output" and "error" keys are not specified,
      +     * then whole "response" is treated as tool execution result.
      +     * 
      + * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The response. + */ + public com.google.protobuf.Struct getResponse() { + if (responseBuilder_ == null) { + return response_ == null ? com.google.protobuf.Struct.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Required. The tool execution result in JSON object format.
      +     * Use "output" key to specify tool response and "error" key to specify
      +     * error details (if any). If "output" and "error" keys are not specified,
      +     * then whole "response" is treated as tool execution result.
      +     * 
      + * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setResponse(com.google.protobuf.Struct value) { + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + } else { + responseBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The tool execution result in JSON object format.
      +     * Use "output" key to specify tool response and "error" key to specify
      +     * error details (if any). If "output" and "error" keys are not specified,
      +     * then whole "response" is treated as tool execution result.
      +     * 
      + * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setResponse(com.google.protobuf.Struct.Builder builderForValue) { + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The tool execution result in JSON object format.
      +     * Use "output" key to specify tool response and "error" key to specify
      +     * error details (if any). If "output" and "error" keys are not specified,
      +     * then whole "response" is treated as tool execution result.
      +     * 
      + * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeResponse(com.google.protobuf.Struct value) { + if (responseBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && response_ != null + && response_ != com.google.protobuf.Struct.getDefaultInstance()) { + getResponseBuilder().mergeFrom(value); + } else { + response_ = value; + } + } else { + responseBuilder_.mergeFrom(value); + } + if (response_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Required. The tool execution result in JSON object format.
      +     * Use "output" key to specify tool response and "error" key to specify
      +     * error details (if any). If "output" and "error" keys are not specified,
      +     * then whole "response" is treated as tool execution result.
      +     * 
      + * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearResponse() { + bitField0_ = (bitField0_ & ~0x00000010); + response_ = null; + if (responseBuilder_ != null) { + responseBuilder_.dispose(); + responseBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The tool execution result in JSON object format.
      +     * Use "output" key to specify tool response and "error" key to specify
      +     * error details (if any). If "output" and "error" keys are not specified,
      +     * then whole "response" is treated as tool execution result.
      +     * 
      + * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.protobuf.Struct.Builder getResponseBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetResponseFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Required. The tool execution result in JSON object format.
      +     * Use "output" key to specify tool response and "error" key to specify
      +     * error details (if any). If "output" and "error" keys are not specified,
      +     * then whole "response" is treated as tool execution result.
      +     * 
      + * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.protobuf.StructOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? com.google.protobuf.Struct.getDefaultInstance() : response_; + } + } + + /** + * + * + *
      +     * Required. The tool execution result in JSON object format.
      +     * Use "output" key to specify tool response and "error" key to specify
      +     * error details (if any). If "output" and "error" keys are not specified,
      +     * then whole "response" is treated as tool execution result.
      +     * 
      + * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getResponse(), getParentForChildren(), isClean()); + response_ = null; + } + return responseBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ToolResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ToolResponse) + private static final com.google.cloud.ces.v1.ToolResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ToolResponse(); + } + + public static com.google.cloud.ces.v1.ToolResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToolResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ToolResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolResponseOrBuilder.java new file mode 100644 index 000000000000..f94943152d12 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolResponseOrBuilder.java @@ -0,0 +1,221 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/example.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ToolResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ToolResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. The name of the tool to execute.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +   * 
      + * + * + * string tool = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the tool field is set. + */ + boolean hasTool(); + + /** + * + * + *
      +   * Optional. The name of the tool to execute.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +   * 
      + * + * + * string tool = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The tool. + */ + java.lang.String getTool(); + + /** + * + * + *
      +   * Optional. The name of the tool to execute.
      +   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
      +   * 
      + * + * + * string tool = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tool. + */ + com.google.protobuf.ByteString getToolBytes(); + + /** + * + * + *
      +   * Optional. The toolset tool that got executed.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolsetTool field is set. + */ + boolean hasToolsetTool(); + + /** + * + * + *
      +   * Optional. The toolset tool that got executed.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolsetTool. + */ + com.google.cloud.ces.v1.ToolsetTool getToolsetTool(); + + /** + * + * + *
      +   * Optional. The toolset tool that got executed.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolsetTool toolset_tool = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ToolsetToolOrBuilder getToolsetToolOrBuilder(); + + /** + * + * + *
      +   * Optional. The matching ID of the [tool call][google.cloud.ces.v1.ToolCall]
      +   * the response is for.
      +   * 
      + * + * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
      +   * Optional. The matching ID of the [tool call][google.cloud.ces.v1.ToolCall]
      +   * the response is for.
      +   * 
      + * + * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
      +   * Output only. Display name of the tool.
      +   * 
      + * + * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
      +   * Output only. Display name of the tool.
      +   * 
      + * + * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
      +   * Required. The tool execution result in JSON object format.
      +   * Use "output" key to specify tool response and "error" key to specify
      +   * error details (if any). If "output" and "error" keys are not specified,
      +   * then whole "response" is treated as tool execution result.
      +   * 
      + * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the response field is set. + */ + boolean hasResponse(); + + /** + * + * + *
      +   * Required. The tool execution result in JSON object format.
      +   * Use "output" key to specify tool response and "error" key to specify
      +   * error details (if any). If "output" and "error" keys are not specified,
      +   * then whole "response" is treated as tool execution result.
      +   * 
      + * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The response. + */ + com.google.protobuf.Struct getResponse(); + + /** + * + * + *
      +   * Required. The tool execution result in JSON object format.
      +   * Use "output" key to specify tool response and "error" key to specify
      +   * error details (if any). If "output" and "error" keys are not specified,
      +   * then whole "response" is treated as tool execution result.
      +   * 
      + * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.protobuf.StructOrBuilder getResponseOrBuilder(); + + com.google.cloud.ces.v1.ToolResponse.ToolIdentifierCase getToolIdentifierCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolResponses.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolResponses.java new file mode 100644 index 000000000000..e9189d9140bb --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolResponses.java @@ -0,0 +1,968 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Execution results for the requested tool calls from the client.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ToolResponses} + */ +@com.google.protobuf.Generated +public final class ToolResponses extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ToolResponses) + ToolResponsesOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ToolResponses"); + } + + // Use ToolResponses.newBuilder() to construct. + private ToolResponses(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ToolResponses() { + toolResponses_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_ToolResponses_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_ToolResponses_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ToolResponses.class, + com.google.cloud.ces.v1.ToolResponses.Builder.class); + } + + public static final int TOOL_RESPONSES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List toolResponses_; + + /** + * + * + *
      +   * Optional. The list of tool execution results.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getToolResponsesList() { + return toolResponses_; + } + + /** + * + * + *
      +   * Optional. The list of tool execution results.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getToolResponsesOrBuilderList() { + return toolResponses_; + } + + /** + * + * + *
      +   * Optional. The list of tool execution results.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getToolResponsesCount() { + return toolResponses_.size(); + } + + /** + * + * + *
      +   * Optional. The list of tool execution results.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolResponse getToolResponses(int index) { + return toolResponses_.get(index); + } + + /** + * + * + *
      +   * Optional. The list of tool execution results.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolResponseOrBuilder getToolResponsesOrBuilder(int index) { + return toolResponses_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < toolResponses_.size(); i++) { + output.writeMessage(1, toolResponses_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < toolResponses_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, toolResponses_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ToolResponses)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ToolResponses other = (com.google.cloud.ces.v1.ToolResponses) obj; + + if (!getToolResponsesList().equals(other.getToolResponsesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getToolResponsesCount() > 0) { + hash = (37 * hash) + TOOL_RESPONSES_FIELD_NUMBER; + hash = (53 * hash) + getToolResponsesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ToolResponses parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ToolResponses parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ToolResponses parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ToolResponses parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ToolResponses parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ToolResponses parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ToolResponses parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ToolResponses parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ToolResponses parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ToolResponses parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ToolResponses parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ToolResponses parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ToolResponses prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Execution results for the requested tool calls from the client.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ToolResponses} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ToolResponses) + com.google.cloud.ces.v1.ToolResponsesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_ToolResponses_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_ToolResponses_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ToolResponses.class, + com.google.cloud.ces.v1.ToolResponses.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ToolResponses.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolResponsesBuilder_ == null) { + toolResponses_ = java.util.Collections.emptyList(); + } else { + toolResponses_ = null; + toolResponsesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.SessionServiceProto + .internal_static_google_cloud_ces_v1_ToolResponses_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ToolResponses getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ToolResponses.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ToolResponses build() { + com.google.cloud.ces.v1.ToolResponses result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ToolResponses buildPartial() { + com.google.cloud.ces.v1.ToolResponses result = + new com.google.cloud.ces.v1.ToolResponses(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1.ToolResponses result) { + if (toolResponsesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + toolResponses_ = java.util.Collections.unmodifiableList(toolResponses_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.toolResponses_ = toolResponses_; + } else { + result.toolResponses_ = toolResponsesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.ToolResponses result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ToolResponses) { + return mergeFrom((com.google.cloud.ces.v1.ToolResponses) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ToolResponses other) { + if (other == com.google.cloud.ces.v1.ToolResponses.getDefaultInstance()) return this; + if (toolResponsesBuilder_ == null) { + if (!other.toolResponses_.isEmpty()) { + if (toolResponses_.isEmpty()) { + toolResponses_ = other.toolResponses_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureToolResponsesIsMutable(); + toolResponses_.addAll(other.toolResponses_); + } + onChanged(); + } + } else { + if (!other.toolResponses_.isEmpty()) { + if (toolResponsesBuilder_.isEmpty()) { + toolResponsesBuilder_.dispose(); + toolResponsesBuilder_ = null; + toolResponses_ = other.toolResponses_; + bitField0_ = (bitField0_ & ~0x00000001); + toolResponsesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetToolResponsesFieldBuilder() + : null; + } else { + toolResponsesBuilder_.addAllMessages(other.toolResponses_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.ces.v1.ToolResponse m = + input.readMessage( + com.google.cloud.ces.v1.ToolResponse.parser(), extensionRegistry); + if (toolResponsesBuilder_ == null) { + ensureToolResponsesIsMutable(); + toolResponses_.add(m); + } else { + toolResponsesBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List toolResponses_ = + java.util.Collections.emptyList(); + + private void ensureToolResponsesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + toolResponses_ = + new java.util.ArrayList(toolResponses_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.ToolResponse, + com.google.cloud.ces.v1.ToolResponse.Builder, + com.google.cloud.ces.v1.ToolResponseOrBuilder> + toolResponsesBuilder_; + + /** + * + * + *
      +     * Optional. The list of tool execution results.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getToolResponsesList() { + if (toolResponsesBuilder_ == null) { + return java.util.Collections.unmodifiableList(toolResponses_); + } else { + return toolResponsesBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Optional. The list of tool execution results.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getToolResponsesCount() { + if (toolResponsesBuilder_ == null) { + return toolResponses_.size(); + } else { + return toolResponsesBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Optional. The list of tool execution results.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ToolResponse getToolResponses(int index) { + if (toolResponsesBuilder_ == null) { + return toolResponses_.get(index); + } else { + return toolResponsesBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Optional. The list of tool execution results.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolResponses(int index, com.google.cloud.ces.v1.ToolResponse value) { + if (toolResponsesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolResponsesIsMutable(); + toolResponses_.set(index, value); + onChanged(); + } else { + toolResponsesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The list of tool execution results.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolResponses( + int index, com.google.cloud.ces.v1.ToolResponse.Builder builderForValue) { + if (toolResponsesBuilder_ == null) { + ensureToolResponsesIsMutable(); + toolResponses_.set(index, builderForValue.build()); + onChanged(); + } else { + toolResponsesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The list of tool execution results.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolResponses(com.google.cloud.ces.v1.ToolResponse value) { + if (toolResponsesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolResponsesIsMutable(); + toolResponses_.add(value); + onChanged(); + } else { + toolResponsesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The list of tool execution results.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolResponses(int index, com.google.cloud.ces.v1.ToolResponse value) { + if (toolResponsesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolResponsesIsMutable(); + toolResponses_.add(index, value); + onChanged(); + } else { + toolResponsesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Optional. The list of tool execution results.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolResponses(com.google.cloud.ces.v1.ToolResponse.Builder builderForValue) { + if (toolResponsesBuilder_ == null) { + ensureToolResponsesIsMutable(); + toolResponses_.add(builderForValue.build()); + onChanged(); + } else { + toolResponsesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The list of tool execution results.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolResponses( + int index, com.google.cloud.ces.v1.ToolResponse.Builder builderForValue) { + if (toolResponsesBuilder_ == null) { + ensureToolResponsesIsMutable(); + toolResponses_.add(index, builderForValue.build()); + onChanged(); + } else { + toolResponsesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Optional. The list of tool execution results.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllToolResponses( + java.lang.Iterable values) { + if (toolResponsesBuilder_ == null) { + ensureToolResponsesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, toolResponses_); + onChanged(); + } else { + toolResponsesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Optional. The list of tool execution results.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearToolResponses() { + if (toolResponsesBuilder_ == null) { + toolResponses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + toolResponsesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The list of tool execution results.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeToolResponses(int index) { + if (toolResponsesBuilder_ == null) { + ensureToolResponsesIsMutable(); + toolResponses_.remove(index); + onChanged(); + } else { + toolResponsesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Optional. The list of tool execution results.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ToolResponse.Builder getToolResponsesBuilder(int index) { + return internalGetToolResponsesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Optional. The list of tool execution results.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ToolResponseOrBuilder getToolResponsesOrBuilder(int index) { + if (toolResponsesBuilder_ == null) { + return toolResponses_.get(index); + } else { + return toolResponsesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Optional. The list of tool execution results.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getToolResponsesOrBuilderList() { + if (toolResponsesBuilder_ != null) { + return toolResponsesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(toolResponses_); + } + } + + /** + * + * + *
      +     * Optional. The list of tool execution results.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ToolResponse.Builder addToolResponsesBuilder() { + return internalGetToolResponsesFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.ToolResponse.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. The list of tool execution results.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ToolResponse.Builder addToolResponsesBuilder(int index) { + return internalGetToolResponsesFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.ToolResponse.getDefaultInstance()); + } + + /** + * + * + *
      +     * Optional. The list of tool execution results.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getToolResponsesBuilderList() { + return internalGetToolResponsesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.ToolResponse, + com.google.cloud.ces.v1.ToolResponse.Builder, + com.google.cloud.ces.v1.ToolResponseOrBuilder> + internalGetToolResponsesFieldBuilder() { + if (toolResponsesBuilder_ == null) { + toolResponsesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.ToolResponse, + com.google.cloud.ces.v1.ToolResponse.Builder, + com.google.cloud.ces.v1.ToolResponseOrBuilder>( + toolResponses_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + toolResponses_ = null; + } + return toolResponsesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ToolResponses) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ToolResponses) + private static final com.google.cloud.ces.v1.ToolResponses DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ToolResponses(); + } + + public static com.google.cloud.ces.v1.ToolResponses getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToolResponses parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ToolResponses getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolResponsesOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolResponsesOrBuilder.java new file mode 100644 index 000000000000..fff2ab015515 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolResponsesOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ToolResponsesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ToolResponses) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. The list of tool execution results.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getToolResponsesList(); + + /** + * + * + *
      +   * Optional. The list of tool execution results.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ToolResponse getToolResponses(int index); + + /** + * + * + *
      +   * Optional. The list of tool execution results.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getToolResponsesCount(); + + /** + * + * + *
      +   * Optional. The list of tool execution results.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getToolResponsesOrBuilderList(); + + /** + * + * + *
      +   * Optional. The list of tool execution results.
      +   * 
      + * + * + * repeated .google.cloud.ces.v1.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ToolResponseOrBuilder getToolResponsesOrBuilder(int index); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolServiceProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolServiceProto.java new file mode 100644 index 000000000000..c0db1460e5bb --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolServiceProto.java @@ -0,0 +1,219 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/tool_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class ToolServiceProto extends com.google.protobuf.GeneratedFile { + private ToolServiceProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ToolServiceProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ExecuteToolRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ExecuteToolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ExecuteToolResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ExecuteToolResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_RetrieveToolSchemaRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_RetrieveToolSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_RetrieveToolSchemaResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_RetrieveToolSchemaResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_RetrieveToolsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_RetrieveToolsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_RetrieveToolsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_RetrieveToolsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "&google/cloud/ces/v1/tool_service.proto" + + "\022\023google.cloud.ces.v1\032\034google/api/annota" + + "tions.proto\032\027google/api/client.proto\032\037go" + + "ogle/api/field_behavior.proto\032\031google/api/resource.proto\032" + + " google/cloud/ces/v1/schema.proto\032\036google/cloud/ces/v1/tool.pro" + + "to\032&google/cloud/ces/v1/toolset_tool.proto\032\034google/protobuf/struct.proto\"\363\001\n" + + "\022ExecuteToolRequest\022/\n" + + "\004tool\030\001 \001(\tB\037\340A\001\372A\031\n" + + "\027ces.googleapis.com/ToolH\000\022=\n" + + "\014toolset_tool\030\003 \001(\0132" + + " .google.cloud.ces.v1.ToolsetToolB\003\340A\001H\000\022.\n" + + "\006parent\030\004 \001(\tB\036\340A\002\372A\030\n" + + "\026ces.googleapis.com/App\022*\n" + + "\004args\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\001B\021\n" + + "\017tool_identifier\"\300\001\n" + + "\023ExecuteToolResponse\022,\n" + + "\004tool\030\001 \001(\tB\034\372A\031\n" + + "\027ces.googleapis.com/ToolH\000\0228\n" + + "\014toolset_tool\030\003 \001(\0132 .google.cloud.ces.v1.ToolsetToolH\000\022.\n" + + "\010response\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\002B\021\n" + + "\017tool_identifier\"\316\001\n" + + "\031RetrieveToolSchemaRequest\022/\n" + + "\004tool\030\001 \001(\tB\037\340A\001\372A\031\n" + + "\027ces.googleapis.com/ToolH\000\022=\n" + + "\014toolset_tool\030\002 \001(\0132" + + " .google.cloud.ces.v1.ToolsetToolB\003\340A\001H\000\022.\n" + + "\006parent\030\003 \001(\tB\036\340A\002\372A\030\n" + + "\026ces.googleapis.com/AppB\021\n" + + "\017tool_identifier\"\210\002\n" + + "\032RetrieveToolSchemaResponse\022,\n" + + "\004tool\030\001 \001(\tB\034\372A\031\n" + + "\027ces.googleapis.com/ToolH\000\0228\n" + + "\014toolset_tool\030\002 \001(\0132 .google.cloud.ces.v1.ToolsetToolH\000\0226\n" + + "\014input_schema\030\003" + + " \001(\0132\033.google.cloud.ces.v1.SchemaB\003\340A\002\0227\n\r" + + "output_schema\030\004 \001(\0132\033.google.cloud.ces.v1.SchemaB\003\340A\002B\021\n" + + "\017tool_identifier\"b\n" + + "\024RetrieveToolsRequest\0223\n" + + "\007toolset\030\001 \001(\tB\"\340A\002\372A\034\n" + + "\032ces.googleapis.com/Toolset\022\025\n" + + "\010tool_ids\030\003 \003(\tB\003\340A\001\"F\n" + + "\025RetrieveToolsResponse\022-\n" + + "\005tools\030\001 \003(\0132\031.google.cloud.ces.v1.ToolB\003\340A\0022\233\005\n" + + "\013ToolService\022\243\001\n" + + "\013ExecuteTool\022\'.google.cloud.ces.v1.ExecuteToolRequest\032(.goo" + + "gle.cloud.ces.v1.ExecuteToolResponse\"A\202\323" + + "\344\223\002;\"6/v1/{parent=projects/*/locations/*/apps/*}:executeTool:\001*\022\277\001\n" + + "\022RetrieveToolSchema\022..google.cloud.ces.v1.RetrieveToo" + + "lSchemaRequest\032/.google.cloud.ces.v1.Ret" + + "rieveToolSchemaResponse\"H\202\323\344\223\002B\"=/v1/{pa" + + "rent=projects/*/locations/*/apps/*}:retrieveToolSchema:\001*\022\267\001\n\r" + + "RetrieveTools\022).google.cloud.ces.v1.RetrieveToolsRequest\032*" + + ".google.cloud.ces.v1.RetrieveToolsRespon" + + "se\"O\202\323\344\223\002I\"D/v1/{toolset=projects/*/loca" + + "tions/*/apps/*/toolsets/*}:retrieveTools" + + ":\001*\032j\312A\022ces.googleapis.com\322ARhttps://www" + + ".googleapis.com/auth/ces,https://www.googleapis.com/auth/cloud-platformBX\n" + + "\027com.google.cloud.ces.v1B\020ToolServiceProtoP\001Z)" + + "cloud.google.com/go/ces/apiv1/cespb;cespbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.ces.v1.SchemaProto.getDescriptor(), + com.google.cloud.ces.v1.ToolProto.getDescriptor(), + com.google.cloud.ces.v1.ToolsetToolProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_ExecuteToolRequest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_ExecuteToolRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ExecuteToolRequest_descriptor, + new java.lang.String[] { + "Tool", "ToolsetTool", "Parent", "Args", "ToolIdentifier", + }); + internal_static_google_cloud_ces_v1_ExecuteToolResponse_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_ces_v1_ExecuteToolResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ExecuteToolResponse_descriptor, + new java.lang.String[] { + "Tool", "ToolsetTool", "Response", "ToolIdentifier", + }); + internal_static_google_cloud_ces_v1_RetrieveToolSchemaRequest_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_ces_v1_RetrieveToolSchemaRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_RetrieveToolSchemaRequest_descriptor, + new java.lang.String[] { + "Tool", "ToolsetTool", "Parent", "ToolIdentifier", + }); + internal_static_google_cloud_ces_v1_RetrieveToolSchemaResponse_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_ces_v1_RetrieveToolSchemaResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_RetrieveToolSchemaResponse_descriptor, + new java.lang.String[] { + "Tool", "ToolsetTool", "InputSchema", "OutputSchema", "ToolIdentifier", + }); + internal_static_google_cloud_ces_v1_RetrieveToolsRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_ces_v1_RetrieveToolsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_RetrieveToolsRequest_descriptor, + new java.lang.String[] { + "Toolset", "ToolIds", + }); + internal_static_google_cloud_ces_v1_RetrieveToolsResponse_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_ces_v1_RetrieveToolsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_RetrieveToolsResponse_descriptor, + new java.lang.String[] { + "Tools", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.ces.v1.SchemaProto.getDescriptor(); + com.google.cloud.ces.v1.ToolProto.getDescriptor(); + com.google.cloud.ces.v1.ToolsetToolProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Toolset.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Toolset.java new file mode 100644 index 000000000000..471beae03a66 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/Toolset.java @@ -0,0 +1,3391 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/toolset.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * A toolset represents a group of dynamically managed tools that can be used
      + * by the agent.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Toolset} + */ +@com.google.protobuf.Generated +public final class Toolset extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.Toolset) + ToolsetOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Toolset"); + } + + // Use Toolset.newBuilder() to construct. + private Toolset(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Toolset() { + name_ = ""; + displayName_ = ""; + description_ = ""; + etag_ = ""; + executionType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ToolsetProto + .internal_static_google_cloud_ces_v1_Toolset_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ToolsetProto + .internal_static_google_cloud_ces_v1_Toolset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Toolset.class, com.google.cloud.ces.v1.Toolset.Builder.class); + } + + private int bitField0_; + private int toolsetTypeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object toolsetType_; + + public enum ToolsetTypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MCP_TOOLSET(6), + OPEN_API_TOOLSET(7), + CONNECTOR_TOOLSET(8), + TOOLSETTYPE_NOT_SET(0); + private final int value; + + private ToolsetTypeCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ToolsetTypeCase valueOf(int value) { + return forNumber(value); + } + + public static ToolsetTypeCase forNumber(int value) { + switch (value) { + case 6: + return MCP_TOOLSET; + case 7: + return OPEN_API_TOOLSET; + case 8: + return CONNECTOR_TOOLSET; + case 0: + return TOOLSETTYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ToolsetTypeCase getToolsetTypeCase() { + return ToolsetTypeCase.forNumber(toolsetTypeCase_); + } + + public static final int MCP_TOOLSET_FIELD_NUMBER = 6; + + /** + * + * + *
      +   * Optional. A toolset that contains a list of tools that are offered by the
      +   * MCP server.
      +   * 
      + * + * + * .google.cloud.ces.v1.McpToolset mcp_toolset = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mcpToolset field is set. + */ + @java.lang.Override + public boolean hasMcpToolset() { + return toolsetTypeCase_ == 6; + } + + /** + * + * + *
      +   * Optional. A toolset that contains a list of tools that are offered by the
      +   * MCP server.
      +   * 
      + * + * + * .google.cloud.ces.v1.McpToolset mcp_toolset = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mcpToolset. + */ + @java.lang.Override + public com.google.cloud.ces.v1.McpToolset getMcpToolset() { + if (toolsetTypeCase_ == 6) { + return (com.google.cloud.ces.v1.McpToolset) toolsetType_; + } + return com.google.cloud.ces.v1.McpToolset.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. A toolset that contains a list of tools that are offered by the
      +   * MCP server.
      +   * 
      + * + * + * .google.cloud.ces.v1.McpToolset mcp_toolset = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.McpToolsetOrBuilder getMcpToolsetOrBuilder() { + if (toolsetTypeCase_ == 6) { + return (com.google.cloud.ces.v1.McpToolset) toolsetType_; + } + return com.google.cloud.ces.v1.McpToolset.getDefaultInstance(); + } + + public static final int OPEN_API_TOOLSET_FIELD_NUMBER = 7; + + /** + * + * + *
      +   * Optional. A toolset that contains a list of tools that are defined by an
      +   * OpenAPI schema.
      +   * 
      + * + * + * .google.cloud.ces.v1.OpenApiToolset open_api_toolset = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the openApiToolset field is set. + */ + @java.lang.Override + public boolean hasOpenApiToolset() { + return toolsetTypeCase_ == 7; + } + + /** + * + * + *
      +   * Optional. A toolset that contains a list of tools that are defined by an
      +   * OpenAPI schema.
      +   * 
      + * + * + * .google.cloud.ces.v1.OpenApiToolset open_api_toolset = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The openApiToolset. + */ + @java.lang.Override + public com.google.cloud.ces.v1.OpenApiToolset getOpenApiToolset() { + if (toolsetTypeCase_ == 7) { + return (com.google.cloud.ces.v1.OpenApiToolset) toolsetType_; + } + return com.google.cloud.ces.v1.OpenApiToolset.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. A toolset that contains a list of tools that are defined by an
      +   * OpenAPI schema.
      +   * 
      + * + * + * .google.cloud.ces.v1.OpenApiToolset open_api_toolset = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.OpenApiToolsetOrBuilder getOpenApiToolsetOrBuilder() { + if (toolsetTypeCase_ == 7) { + return (com.google.cloud.ces.v1.OpenApiToolset) toolsetType_; + } + return com.google.cloud.ces.v1.OpenApiToolset.getDefaultInstance(); + } + + public static final int CONNECTOR_TOOLSET_FIELD_NUMBER = 8; + + /** + * + * + *
      +   * Optional. A toolset that generates tools from an Integration Connectors
      +   * Connection.
      +   * 
      + * + * + * .google.cloud.ces.v1.ConnectorToolset connector_toolset = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the connectorToolset field is set. + */ + @java.lang.Override + public boolean hasConnectorToolset() { + return toolsetTypeCase_ == 8; + } + + /** + * + * + *
      +   * Optional. A toolset that generates tools from an Integration Connectors
      +   * Connection.
      +   * 
      + * + * + * .google.cloud.ces.v1.ConnectorToolset connector_toolset = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The connectorToolset. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ConnectorToolset getConnectorToolset() { + if (toolsetTypeCase_ == 8) { + return (com.google.cloud.ces.v1.ConnectorToolset) toolsetType_; + } + return com.google.cloud.ces.v1.ConnectorToolset.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. A toolset that generates tools from an Integration Connectors
      +   * Connection.
      +   * 
      + * + * + * .google.cloud.ces.v1.ConnectorToolset connector_toolset = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ConnectorToolsetOrBuilder getConnectorToolsetOrBuilder() { + if (toolsetTypeCase_ == 8) { + return (com.google.cloud.ces.v1.ConnectorToolset) toolsetType_; + } + return com.google.cloud.ces.v1.ConnectorToolset.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Identifier. The unique identifier of the toolset.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Identifier. The unique identifier of the toolset.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
      +   * Optional. The display name of the toolset. Must be unique within the same
      +   * app.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The display name of the toolset. Must be unique within the same
      +   * app.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
      +   * Optional. The description of the toolset.
      +   * 
      + * + * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The description of the toolset.
      +   * 
      + * + * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
      +   * Output only. Timestamp when the toolset was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Output only. Timestamp when the toolset was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
      +   * Output only. Timestamp when the toolset was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
      +   * Output only. Timestamp when the toolset was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Output only. Timestamp when the toolset was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
      +   * Output only. Timestamp when the toolset was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int ETAG_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
      +   * ETag used to ensure the object hasn't changed during a read-modify-write
      +   * operation. If the etag is empty, the update will overwrite any concurrent
      +   * changes.
      +   * 
      + * + * string etag = 5; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + + /** + * + * + *
      +   * ETag used to ensure the object hasn't changed during a read-modify-write
      +   * operation. If the etag is empty, the update will overwrite any concurrent
      +   * changes.
      +   * 
      + * + * string etag = 5; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXECUTION_TYPE_FIELD_NUMBER = 9; + private int executionType_ = 0; + + /** + * + * + *
      +   * Optional. The execution type of the tools in the toolset.
      +   * 
      + * + * + * .google.cloud.ces.v1.ExecutionType execution_type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for executionType. + */ + @java.lang.Override + public int getExecutionTypeValue() { + return executionType_; + } + + /** + * + * + *
      +   * Optional. The execution type of the tools in the toolset.
      +   * 
      + * + * + * .google.cloud.ces.v1.ExecutionType execution_type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The executionType. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ExecutionType getExecutionType() { + com.google.cloud.ces.v1.ExecutionType result = + com.google.cloud.ces.v1.ExecutionType.forNumber(executionType_); + return result == null ? com.google.cloud.ces.v1.ExecutionType.UNRECOGNIZED : result; + } + + public static final int TOOL_FAKE_CONFIG_FIELD_NUMBER = 11; + private com.google.cloud.ces.v1.ToolFakeConfig toolFakeConfig_; + + /** + * + * + *
      +   * Optional. Configuration for tools behavior in fake mode.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolFakeConfig tool_fake_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolFakeConfig field is set. + */ + @java.lang.Override + public boolean hasToolFakeConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * Optional. Configuration for tools behavior in fake mode.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolFakeConfig tool_fake_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolFakeConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolFakeConfig getToolFakeConfig() { + return toolFakeConfig_ == null + ? com.google.cloud.ces.v1.ToolFakeConfig.getDefaultInstance() + : toolFakeConfig_; + } + + /** + * + * + *
      +   * Optional. Configuration for tools behavior in fake mode.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolFakeConfig tool_fake_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolFakeConfigOrBuilder getToolFakeConfigOrBuilder() { + return toolFakeConfig_ == null + ? com.google.cloud.ces.v1.ToolFakeConfig.getDefaultInstance() + : toolFakeConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, etag_); + } + if (toolsetTypeCase_ == 6) { + output.writeMessage(6, (com.google.cloud.ces.v1.McpToolset) toolsetType_); + } + if (toolsetTypeCase_ == 7) { + output.writeMessage(7, (com.google.cloud.ces.v1.OpenApiToolset) toolsetType_); + } + if (toolsetTypeCase_ == 8) { + output.writeMessage(8, (com.google.cloud.ces.v1.ConnectorToolset) toolsetType_); + } + if (executionType_ + != com.google.cloud.ces.v1.ExecutionType.EXECUTION_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(9, executionType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, description_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(11, getToolFakeConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, etag_); + } + if (toolsetTypeCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.ces.v1.McpToolset) toolsetType_); + } + if (toolsetTypeCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.ces.v1.OpenApiToolset) toolsetType_); + } + if (toolsetTypeCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.ces.v1.ConnectorToolset) toolsetType_); + } + if (executionType_ + != com.google.cloud.ces.v1.ExecutionType.EXECUTION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, executionType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, description_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getToolFakeConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.Toolset)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.Toolset other = (com.google.cloud.ces.v1.Toolset) obj; + + 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 (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getEtag().equals(other.getEtag())) return false; + if (executionType_ != other.executionType_) return false; + if (hasToolFakeConfig() != other.hasToolFakeConfig()) return false; + if (hasToolFakeConfig()) { + if (!getToolFakeConfig().equals(other.getToolFakeConfig())) return false; + } + if (!getToolsetTypeCase().equals(other.getToolsetTypeCase())) return false; + switch (toolsetTypeCase_) { + case 6: + if (!getMcpToolset().equals(other.getMcpToolset())) return false; + break; + case 7: + if (!getOpenApiToolset().equals(other.getOpenApiToolset())) return false; + break; + case 8: + if (!getConnectorToolset().equals(other.getConnectorToolset())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + EXECUTION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + executionType_; + if (hasToolFakeConfig()) { + hash = (37 * hash) + TOOL_FAKE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getToolFakeConfig().hashCode(); + } + switch (toolsetTypeCase_) { + case 6: + hash = (37 * hash) + MCP_TOOLSET_FIELD_NUMBER; + hash = (53 * hash) + getMcpToolset().hashCode(); + break; + case 7: + hash = (37 * hash) + OPEN_API_TOOLSET_FIELD_NUMBER; + hash = (53 * hash) + getOpenApiToolset().hashCode(); + break; + case 8: + hash = (37 * hash) + CONNECTOR_TOOLSET_FIELD_NUMBER; + hash = (53 * hash) + getConnectorToolset().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.Toolset parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Toolset parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Toolset parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Toolset parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Toolset parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.Toolset parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Toolset parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Toolset parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Toolset parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Toolset parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.Toolset parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.Toolset parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.Toolset prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * A toolset represents a group of dynamically managed tools that can be used
      +   * by the agent.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.Toolset} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.Toolset) + com.google.cloud.ces.v1.ToolsetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ToolsetProto + .internal_static_google_cloud_ces_v1_Toolset_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ToolsetProto + .internal_static_google_cloud_ces_v1_Toolset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.Toolset.class, com.google.cloud.ces.v1.Toolset.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.Toolset.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetToolFakeConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (mcpToolsetBuilder_ != null) { + mcpToolsetBuilder_.clear(); + } + if (openApiToolsetBuilder_ != null) { + openApiToolsetBuilder_.clear(); + } + if (connectorToolsetBuilder_ != null) { + connectorToolsetBuilder_.clear(); + } + name_ = ""; + displayName_ = ""; + description_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + etag_ = ""; + executionType_ = 0; + toolFakeConfig_ = null; + if (toolFakeConfigBuilder_ != null) { + toolFakeConfigBuilder_.dispose(); + toolFakeConfigBuilder_ = null; + } + toolsetTypeCase_ = 0; + toolsetType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.ToolsetProto + .internal_static_google_cloud_ces_v1_Toolset_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Toolset getDefaultInstanceForType() { + return com.google.cloud.ces.v1.Toolset.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.Toolset build() { + com.google.cloud.ces.v1.Toolset result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Toolset buildPartial() { + com.google.cloud.ces.v1.Toolset result = new com.google.cloud.ces.v1.Toolset(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.Toolset result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.description_ = description_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.executionType_ = executionType_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.toolFakeConfig_ = + toolFakeConfigBuilder_ == null ? toolFakeConfig_ : toolFakeConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.ces.v1.Toolset result) { + result.toolsetTypeCase_ = toolsetTypeCase_; + result.toolsetType_ = this.toolsetType_; + if (toolsetTypeCase_ == 6 && mcpToolsetBuilder_ != null) { + result.toolsetType_ = mcpToolsetBuilder_.build(); + } + if (toolsetTypeCase_ == 7 && openApiToolsetBuilder_ != null) { + result.toolsetType_ = openApiToolsetBuilder_.build(); + } + if (toolsetTypeCase_ == 8 && connectorToolsetBuilder_ != null) { + result.toolsetType_ = connectorToolsetBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.Toolset) { + return mergeFrom((com.google.cloud.ces.v1.Toolset) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.Toolset other) { + if (other == com.google.cloud.ces.v1.Toolset.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.executionType_ != 0) { + setExecutionTypeValue(other.getExecutionTypeValue()); + } + if (other.hasToolFakeConfig()) { + mergeToolFakeConfig(other.getToolFakeConfig()); + } + switch (other.getToolsetTypeCase()) { + case MCP_TOOLSET: + { + mergeMcpToolset(other.getMcpToolset()); + break; + } + case OPEN_API_TOOLSET: + { + mergeOpenApiToolset(other.getOpenApiToolset()); + break; + } + case CONNECTOR_TOOLSET: + { + mergeConnectorToolset(other.getConnectorToolset()); + break; + } + case TOOLSETTYPE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 34 + case 42: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetMcpToolsetFieldBuilder().getBuilder(), extensionRegistry); + toolsetTypeCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetOpenApiToolsetFieldBuilder().getBuilder(), extensionRegistry); + toolsetTypeCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetConnectorToolsetFieldBuilder().getBuilder(), extensionRegistry); + toolsetTypeCase_ = 8; + break; + } // case 66 + case 72: + { + executionType_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 72 + case 82: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 82 + case 90: + { + input.readMessage( + internalGetToolFakeConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 90 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int toolsetTypeCase_ = 0; + private java.lang.Object toolsetType_; + + public ToolsetTypeCase getToolsetTypeCase() { + return ToolsetTypeCase.forNumber(toolsetTypeCase_); + } + + public Builder clearToolsetType() { + toolsetTypeCase_ = 0; + toolsetType_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.McpToolset, + com.google.cloud.ces.v1.McpToolset.Builder, + com.google.cloud.ces.v1.McpToolsetOrBuilder> + mcpToolsetBuilder_; + + /** + * + * + *
      +     * Optional. A toolset that contains a list of tools that are offered by the
      +     * MCP server.
      +     * 
      + * + * + * .google.cloud.ces.v1.McpToolset mcp_toolset = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mcpToolset field is set. + */ + @java.lang.Override + public boolean hasMcpToolset() { + return toolsetTypeCase_ == 6; + } + + /** + * + * + *
      +     * Optional. A toolset that contains a list of tools that are offered by the
      +     * MCP server.
      +     * 
      + * + * + * .google.cloud.ces.v1.McpToolset mcp_toolset = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mcpToolset. + */ + @java.lang.Override + public com.google.cloud.ces.v1.McpToolset getMcpToolset() { + if (mcpToolsetBuilder_ == null) { + if (toolsetTypeCase_ == 6) { + return (com.google.cloud.ces.v1.McpToolset) toolsetType_; + } + return com.google.cloud.ces.v1.McpToolset.getDefaultInstance(); + } else { + if (toolsetTypeCase_ == 6) { + return mcpToolsetBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.McpToolset.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. A toolset that contains a list of tools that are offered by the
      +     * MCP server.
      +     * 
      + * + * + * .google.cloud.ces.v1.McpToolset mcp_toolset = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMcpToolset(com.google.cloud.ces.v1.McpToolset value) { + if (mcpToolsetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolsetType_ = value; + onChanged(); + } else { + mcpToolsetBuilder_.setMessage(value); + } + toolsetTypeCase_ = 6; + return this; + } + + /** + * + * + *
      +     * Optional. A toolset that contains a list of tools that are offered by the
      +     * MCP server.
      +     * 
      + * + * + * .google.cloud.ces.v1.McpToolset mcp_toolset = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMcpToolset(com.google.cloud.ces.v1.McpToolset.Builder builderForValue) { + if (mcpToolsetBuilder_ == null) { + toolsetType_ = builderForValue.build(); + onChanged(); + } else { + mcpToolsetBuilder_.setMessage(builderForValue.build()); + } + toolsetTypeCase_ = 6; + return this; + } + + /** + * + * + *
      +     * Optional. A toolset that contains a list of tools that are offered by the
      +     * MCP server.
      +     * 
      + * + * + * .google.cloud.ces.v1.McpToolset mcp_toolset = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMcpToolset(com.google.cloud.ces.v1.McpToolset value) { + if (mcpToolsetBuilder_ == null) { + if (toolsetTypeCase_ == 6 + && toolsetType_ != com.google.cloud.ces.v1.McpToolset.getDefaultInstance()) { + toolsetType_ = + com.google.cloud.ces.v1.McpToolset.newBuilder( + (com.google.cloud.ces.v1.McpToolset) toolsetType_) + .mergeFrom(value) + .buildPartial(); + } else { + toolsetType_ = value; + } + onChanged(); + } else { + if (toolsetTypeCase_ == 6) { + mcpToolsetBuilder_.mergeFrom(value); + } else { + mcpToolsetBuilder_.setMessage(value); + } + } + toolsetTypeCase_ = 6; + return this; + } + + /** + * + * + *
      +     * Optional. A toolset that contains a list of tools that are offered by the
      +     * MCP server.
      +     * 
      + * + * + * .google.cloud.ces.v1.McpToolset mcp_toolset = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMcpToolset() { + if (mcpToolsetBuilder_ == null) { + if (toolsetTypeCase_ == 6) { + toolsetTypeCase_ = 0; + toolsetType_ = null; + onChanged(); + } + } else { + if (toolsetTypeCase_ == 6) { + toolsetTypeCase_ = 0; + toolsetType_ = null; + } + mcpToolsetBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. A toolset that contains a list of tools that are offered by the
      +     * MCP server.
      +     * 
      + * + * + * .google.cloud.ces.v1.McpToolset mcp_toolset = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.McpToolset.Builder getMcpToolsetBuilder() { + return internalGetMcpToolsetFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. A toolset that contains a list of tools that are offered by the
      +     * MCP server.
      +     * 
      + * + * + * .google.cloud.ces.v1.McpToolset mcp_toolset = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.McpToolsetOrBuilder getMcpToolsetOrBuilder() { + if ((toolsetTypeCase_ == 6) && (mcpToolsetBuilder_ != null)) { + return mcpToolsetBuilder_.getMessageOrBuilder(); + } else { + if (toolsetTypeCase_ == 6) { + return (com.google.cloud.ces.v1.McpToolset) toolsetType_; + } + return com.google.cloud.ces.v1.McpToolset.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. A toolset that contains a list of tools that are offered by the
      +     * MCP server.
      +     * 
      + * + * + * .google.cloud.ces.v1.McpToolset mcp_toolset = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.McpToolset, + com.google.cloud.ces.v1.McpToolset.Builder, + com.google.cloud.ces.v1.McpToolsetOrBuilder> + internalGetMcpToolsetFieldBuilder() { + if (mcpToolsetBuilder_ == null) { + if (!(toolsetTypeCase_ == 6)) { + toolsetType_ = com.google.cloud.ces.v1.McpToolset.getDefaultInstance(); + } + mcpToolsetBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.McpToolset, + com.google.cloud.ces.v1.McpToolset.Builder, + com.google.cloud.ces.v1.McpToolsetOrBuilder>( + (com.google.cloud.ces.v1.McpToolset) toolsetType_, + getParentForChildren(), + isClean()); + toolsetType_ = null; + } + toolsetTypeCase_ = 6; + onChanged(); + return mcpToolsetBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.OpenApiToolset, + com.google.cloud.ces.v1.OpenApiToolset.Builder, + com.google.cloud.ces.v1.OpenApiToolsetOrBuilder> + openApiToolsetBuilder_; + + /** + * + * + *
      +     * Optional. A toolset that contains a list of tools that are defined by an
      +     * OpenAPI schema.
      +     * 
      + * + * + * .google.cloud.ces.v1.OpenApiToolset open_api_toolset = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the openApiToolset field is set. + */ + @java.lang.Override + public boolean hasOpenApiToolset() { + return toolsetTypeCase_ == 7; + } + + /** + * + * + *
      +     * Optional. A toolset that contains a list of tools that are defined by an
      +     * OpenAPI schema.
      +     * 
      + * + * + * .google.cloud.ces.v1.OpenApiToolset open_api_toolset = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The openApiToolset. + */ + @java.lang.Override + public com.google.cloud.ces.v1.OpenApiToolset getOpenApiToolset() { + if (openApiToolsetBuilder_ == null) { + if (toolsetTypeCase_ == 7) { + return (com.google.cloud.ces.v1.OpenApiToolset) toolsetType_; + } + return com.google.cloud.ces.v1.OpenApiToolset.getDefaultInstance(); + } else { + if (toolsetTypeCase_ == 7) { + return openApiToolsetBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.OpenApiToolset.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. A toolset that contains a list of tools that are defined by an
      +     * OpenAPI schema.
      +     * 
      + * + * + * .google.cloud.ces.v1.OpenApiToolset open_api_toolset = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOpenApiToolset(com.google.cloud.ces.v1.OpenApiToolset value) { + if (openApiToolsetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolsetType_ = value; + onChanged(); + } else { + openApiToolsetBuilder_.setMessage(value); + } + toolsetTypeCase_ = 7; + return this; + } + + /** + * + * + *
      +     * Optional. A toolset that contains a list of tools that are defined by an
      +     * OpenAPI schema.
      +     * 
      + * + * + * .google.cloud.ces.v1.OpenApiToolset open_api_toolset = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOpenApiToolset( + com.google.cloud.ces.v1.OpenApiToolset.Builder builderForValue) { + if (openApiToolsetBuilder_ == null) { + toolsetType_ = builderForValue.build(); + onChanged(); + } else { + openApiToolsetBuilder_.setMessage(builderForValue.build()); + } + toolsetTypeCase_ = 7; + return this; + } + + /** + * + * + *
      +     * Optional. A toolset that contains a list of tools that are defined by an
      +     * OpenAPI schema.
      +     * 
      + * + * + * .google.cloud.ces.v1.OpenApiToolset open_api_toolset = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeOpenApiToolset(com.google.cloud.ces.v1.OpenApiToolset value) { + if (openApiToolsetBuilder_ == null) { + if (toolsetTypeCase_ == 7 + && toolsetType_ != com.google.cloud.ces.v1.OpenApiToolset.getDefaultInstance()) { + toolsetType_ = + com.google.cloud.ces.v1.OpenApiToolset.newBuilder( + (com.google.cloud.ces.v1.OpenApiToolset) toolsetType_) + .mergeFrom(value) + .buildPartial(); + } else { + toolsetType_ = value; + } + onChanged(); + } else { + if (toolsetTypeCase_ == 7) { + openApiToolsetBuilder_.mergeFrom(value); + } else { + openApiToolsetBuilder_.setMessage(value); + } + } + toolsetTypeCase_ = 7; + return this; + } + + /** + * + * + *
      +     * Optional. A toolset that contains a list of tools that are defined by an
      +     * OpenAPI schema.
      +     * 
      + * + * + * .google.cloud.ces.v1.OpenApiToolset open_api_toolset = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOpenApiToolset() { + if (openApiToolsetBuilder_ == null) { + if (toolsetTypeCase_ == 7) { + toolsetTypeCase_ = 0; + toolsetType_ = null; + onChanged(); + } + } else { + if (toolsetTypeCase_ == 7) { + toolsetTypeCase_ = 0; + toolsetType_ = null; + } + openApiToolsetBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. A toolset that contains a list of tools that are defined by an
      +     * OpenAPI schema.
      +     * 
      + * + * + * .google.cloud.ces.v1.OpenApiToolset open_api_toolset = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.OpenApiToolset.Builder getOpenApiToolsetBuilder() { + return internalGetOpenApiToolsetFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. A toolset that contains a list of tools that are defined by an
      +     * OpenAPI schema.
      +     * 
      + * + * + * .google.cloud.ces.v1.OpenApiToolset open_api_toolset = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.OpenApiToolsetOrBuilder getOpenApiToolsetOrBuilder() { + if ((toolsetTypeCase_ == 7) && (openApiToolsetBuilder_ != null)) { + return openApiToolsetBuilder_.getMessageOrBuilder(); + } else { + if (toolsetTypeCase_ == 7) { + return (com.google.cloud.ces.v1.OpenApiToolset) toolsetType_; + } + return com.google.cloud.ces.v1.OpenApiToolset.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. A toolset that contains a list of tools that are defined by an
      +     * OpenAPI schema.
      +     * 
      + * + * + * .google.cloud.ces.v1.OpenApiToolset open_api_toolset = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.OpenApiToolset, + com.google.cloud.ces.v1.OpenApiToolset.Builder, + com.google.cloud.ces.v1.OpenApiToolsetOrBuilder> + internalGetOpenApiToolsetFieldBuilder() { + if (openApiToolsetBuilder_ == null) { + if (!(toolsetTypeCase_ == 7)) { + toolsetType_ = com.google.cloud.ces.v1.OpenApiToolset.getDefaultInstance(); + } + openApiToolsetBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.OpenApiToolset, + com.google.cloud.ces.v1.OpenApiToolset.Builder, + com.google.cloud.ces.v1.OpenApiToolsetOrBuilder>( + (com.google.cloud.ces.v1.OpenApiToolset) toolsetType_, + getParentForChildren(), + isClean()); + toolsetType_ = null; + } + toolsetTypeCase_ = 7; + onChanged(); + return openApiToolsetBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ConnectorToolset, + com.google.cloud.ces.v1.ConnectorToolset.Builder, + com.google.cloud.ces.v1.ConnectorToolsetOrBuilder> + connectorToolsetBuilder_; + + /** + * + * + *
      +     * Optional. A toolset that generates tools from an Integration Connectors
      +     * Connection.
      +     * 
      + * + * + * .google.cloud.ces.v1.ConnectorToolset connector_toolset = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the connectorToolset field is set. + */ + @java.lang.Override + public boolean hasConnectorToolset() { + return toolsetTypeCase_ == 8; + } + + /** + * + * + *
      +     * Optional. A toolset that generates tools from an Integration Connectors
      +     * Connection.
      +     * 
      + * + * + * .google.cloud.ces.v1.ConnectorToolset connector_toolset = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The connectorToolset. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ConnectorToolset getConnectorToolset() { + if (connectorToolsetBuilder_ == null) { + if (toolsetTypeCase_ == 8) { + return (com.google.cloud.ces.v1.ConnectorToolset) toolsetType_; + } + return com.google.cloud.ces.v1.ConnectorToolset.getDefaultInstance(); + } else { + if (toolsetTypeCase_ == 8) { + return connectorToolsetBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.ConnectorToolset.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. A toolset that generates tools from an Integration Connectors
      +     * Connection.
      +     * 
      + * + * + * .google.cloud.ces.v1.ConnectorToolset connector_toolset = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConnectorToolset(com.google.cloud.ces.v1.ConnectorToolset value) { + if (connectorToolsetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolsetType_ = value; + onChanged(); + } else { + connectorToolsetBuilder_.setMessage(value); + } + toolsetTypeCase_ = 8; + return this; + } + + /** + * + * + *
      +     * Optional. A toolset that generates tools from an Integration Connectors
      +     * Connection.
      +     * 
      + * + * + * .google.cloud.ces.v1.ConnectorToolset connector_toolset = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConnectorToolset( + com.google.cloud.ces.v1.ConnectorToolset.Builder builderForValue) { + if (connectorToolsetBuilder_ == null) { + toolsetType_ = builderForValue.build(); + onChanged(); + } else { + connectorToolsetBuilder_.setMessage(builderForValue.build()); + } + toolsetTypeCase_ = 8; + return this; + } + + /** + * + * + *
      +     * Optional. A toolset that generates tools from an Integration Connectors
      +     * Connection.
      +     * 
      + * + * + * .google.cloud.ces.v1.ConnectorToolset connector_toolset = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeConnectorToolset(com.google.cloud.ces.v1.ConnectorToolset value) { + if (connectorToolsetBuilder_ == null) { + if (toolsetTypeCase_ == 8 + && toolsetType_ != com.google.cloud.ces.v1.ConnectorToolset.getDefaultInstance()) { + toolsetType_ = + com.google.cloud.ces.v1.ConnectorToolset.newBuilder( + (com.google.cloud.ces.v1.ConnectorToolset) toolsetType_) + .mergeFrom(value) + .buildPartial(); + } else { + toolsetType_ = value; + } + onChanged(); + } else { + if (toolsetTypeCase_ == 8) { + connectorToolsetBuilder_.mergeFrom(value); + } else { + connectorToolsetBuilder_.setMessage(value); + } + } + toolsetTypeCase_ = 8; + return this; + } + + /** + * + * + *
      +     * Optional. A toolset that generates tools from an Integration Connectors
      +     * Connection.
      +     * 
      + * + * + * .google.cloud.ces.v1.ConnectorToolset connector_toolset = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearConnectorToolset() { + if (connectorToolsetBuilder_ == null) { + if (toolsetTypeCase_ == 8) { + toolsetTypeCase_ = 0; + toolsetType_ = null; + onChanged(); + } + } else { + if (toolsetTypeCase_ == 8) { + toolsetTypeCase_ = 0; + toolsetType_ = null; + } + connectorToolsetBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. A toolset that generates tools from an Integration Connectors
      +     * Connection.
      +     * 
      + * + * + * .google.cloud.ces.v1.ConnectorToolset connector_toolset = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ConnectorToolset.Builder getConnectorToolsetBuilder() { + return internalGetConnectorToolsetFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. A toolset that generates tools from an Integration Connectors
      +     * Connection.
      +     * 
      + * + * + * .google.cloud.ces.v1.ConnectorToolset connector_toolset = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ConnectorToolsetOrBuilder getConnectorToolsetOrBuilder() { + if ((toolsetTypeCase_ == 8) && (connectorToolsetBuilder_ != null)) { + return connectorToolsetBuilder_.getMessageOrBuilder(); + } else { + if (toolsetTypeCase_ == 8) { + return (com.google.cloud.ces.v1.ConnectorToolset) toolsetType_; + } + return com.google.cloud.ces.v1.ConnectorToolset.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. A toolset that generates tools from an Integration Connectors
      +     * Connection.
      +     * 
      + * + * + * .google.cloud.ces.v1.ConnectorToolset connector_toolset = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ConnectorToolset, + com.google.cloud.ces.v1.ConnectorToolset.Builder, + com.google.cloud.ces.v1.ConnectorToolsetOrBuilder> + internalGetConnectorToolsetFieldBuilder() { + if (connectorToolsetBuilder_ == null) { + if (!(toolsetTypeCase_ == 8)) { + toolsetType_ = com.google.cloud.ces.v1.ConnectorToolset.getDefaultInstance(); + } + connectorToolsetBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ConnectorToolset, + com.google.cloud.ces.v1.ConnectorToolset.Builder, + com.google.cloud.ces.v1.ConnectorToolsetOrBuilder>( + (com.google.cloud.ces.v1.ConnectorToolset) toolsetType_, + getParentForChildren(), + isClean()); + toolsetType_ = null; + } + toolsetTypeCase_ = 8; + onChanged(); + return connectorToolsetBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Identifier. The unique identifier of the toolset.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the toolset.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the toolset.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the toolset.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Identifier. The unique identifier of the toolset.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
      +     * Optional. The display name of the toolset. Must be unique within the same
      +     * app.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The display name of the toolset. Must be unique within the same
      +     * app.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The display name of the toolset. Must be unique within the same
      +     * app.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The display name of the toolset. Must be unique within the same
      +     * app.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The display name of the toolset. Must be unique within the same
      +     * app.
      +     * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
      +     * Optional. The description of the toolset.
      +     * 
      + * + * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The description of the toolset.
      +     * 
      + * + * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The description of the toolset.
      +     * 
      + * + * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The description of the toolset.
      +     * 
      + * + * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The description of the toolset.
      +     * 
      + * + * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
      +     * Output only. Timestamp when the toolset was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
      +     * Output only. Timestamp when the toolset was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the toolset was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the toolset was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the toolset was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the toolset was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000040); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the toolset was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. Timestamp when the toolset was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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_; + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the toolset was created.
      +     * 
      + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
      +     * Output only. Timestamp when the toolset was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
      +     * Output only. Timestamp when the toolset was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 4 [(.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_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the toolset was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the toolset was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the toolset was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the toolset was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000080); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Timestamp when the toolset was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. Timestamp when the toolset was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 4 [(.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_; + } + } + + /** + * + * + *
      +     * Output only. Timestamp when the toolset was last updated.
      +     * 
      + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
      +     * ETag used to ensure the object hasn't changed during a read-modify-write
      +     * operation. If the etag is empty, the update will overwrite any concurrent
      +     * changes.
      +     * 
      + * + * string etag = 5; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * ETag used to ensure the object hasn't changed during a read-modify-write
      +     * operation. If the etag is empty, the update will overwrite any concurrent
      +     * changes.
      +     * 
      + * + * string etag = 5; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * ETag used to ensure the object hasn't changed during a read-modify-write
      +     * operation. If the etag is empty, the update will overwrite any concurrent
      +     * changes.
      +     * 
      + * + * string etag = 5; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
      +     * ETag used to ensure the object hasn't changed during a read-modify-write
      +     * operation. If the etag is empty, the update will overwrite any concurrent
      +     * changes.
      +     * 
      + * + * string etag = 5; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
      +     * ETag used to ensure the object hasn't changed during a read-modify-write
      +     * operation. If the etag is empty, the update will overwrite any concurrent
      +     * changes.
      +     * 
      + * + * string etag = 5; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private int executionType_ = 0; + + /** + * + * + *
      +     * Optional. The execution type of the tools in the toolset.
      +     * 
      + * + * + * .google.cloud.ces.v1.ExecutionType execution_type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for executionType. + */ + @java.lang.Override + public int getExecutionTypeValue() { + return executionType_; + } + + /** + * + * + *
      +     * Optional. The execution type of the tools in the toolset.
      +     * 
      + * + * + * .google.cloud.ces.v1.ExecutionType execution_type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for executionType to set. + * @return This builder for chaining. + */ + public Builder setExecutionTypeValue(int value) { + executionType_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The execution type of the tools in the toolset.
      +     * 
      + * + * + * .google.cloud.ces.v1.ExecutionType execution_type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The executionType. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ExecutionType getExecutionType() { + com.google.cloud.ces.v1.ExecutionType result = + com.google.cloud.ces.v1.ExecutionType.forNumber(executionType_); + return result == null ? com.google.cloud.ces.v1.ExecutionType.UNRECOGNIZED : result; + } + + /** + * + * + *
      +     * Optional. The execution type of the tools in the toolset.
      +     * 
      + * + * + * .google.cloud.ces.v1.ExecutionType execution_type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The executionType to set. + * @return This builder for chaining. + */ + public Builder setExecutionType(com.google.cloud.ces.v1.ExecutionType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + executionType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The execution type of the tools in the toolset.
      +     * 
      + * + * + * .google.cloud.ces.v1.ExecutionType execution_type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearExecutionType() { + bitField0_ = (bitField0_ & ~0x00000200); + executionType_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1.ToolFakeConfig toolFakeConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolFakeConfig, + com.google.cloud.ces.v1.ToolFakeConfig.Builder, + com.google.cloud.ces.v1.ToolFakeConfigOrBuilder> + toolFakeConfigBuilder_; + + /** + * + * + *
      +     * Optional. Configuration for tools behavior in fake mode.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolFakeConfig tool_fake_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolFakeConfig field is set. + */ + public boolean hasToolFakeConfig() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
      +     * Optional. Configuration for tools behavior in fake mode.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolFakeConfig tool_fake_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolFakeConfig. + */ + public com.google.cloud.ces.v1.ToolFakeConfig getToolFakeConfig() { + if (toolFakeConfigBuilder_ == null) { + return toolFakeConfig_ == null + ? com.google.cloud.ces.v1.ToolFakeConfig.getDefaultInstance() + : toolFakeConfig_; + } else { + return toolFakeConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Configuration for tools behavior in fake mode.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolFakeConfig tool_fake_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolFakeConfig(com.google.cloud.ces.v1.ToolFakeConfig value) { + if (toolFakeConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolFakeConfig_ = value; + } else { + toolFakeConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for tools behavior in fake mode.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolFakeConfig tool_fake_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolFakeConfig( + com.google.cloud.ces.v1.ToolFakeConfig.Builder builderForValue) { + if (toolFakeConfigBuilder_ == null) { + toolFakeConfig_ = builderForValue.build(); + } else { + toolFakeConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for tools behavior in fake mode.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolFakeConfig tool_fake_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeToolFakeConfig(com.google.cloud.ces.v1.ToolFakeConfig value) { + if (toolFakeConfigBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && toolFakeConfig_ != null + && toolFakeConfig_ != com.google.cloud.ces.v1.ToolFakeConfig.getDefaultInstance()) { + getToolFakeConfigBuilder().mergeFrom(value); + } else { + toolFakeConfig_ = value; + } + } else { + toolFakeConfigBuilder_.mergeFrom(value); + } + if (toolFakeConfig_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for tools behavior in fake mode.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolFakeConfig tool_fake_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearToolFakeConfig() { + bitField0_ = (bitField0_ & ~0x00000400); + toolFakeConfig_ = null; + if (toolFakeConfigBuilder_ != null) { + toolFakeConfigBuilder_.dispose(); + toolFakeConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Configuration for tools behavior in fake mode.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolFakeConfig tool_fake_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ToolFakeConfig.Builder getToolFakeConfigBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return internalGetToolFakeConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Configuration for tools behavior in fake mode.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolFakeConfig tool_fake_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ToolFakeConfigOrBuilder getToolFakeConfigOrBuilder() { + if (toolFakeConfigBuilder_ != null) { + return toolFakeConfigBuilder_.getMessageOrBuilder(); + } else { + return toolFakeConfig_ == null + ? com.google.cloud.ces.v1.ToolFakeConfig.getDefaultInstance() + : toolFakeConfig_; + } + } + + /** + * + * + *
      +     * Optional. Configuration for tools behavior in fake mode.
      +     * 
      + * + * + * .google.cloud.ces.v1.ToolFakeConfig tool_fake_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolFakeConfig, + com.google.cloud.ces.v1.ToolFakeConfig.Builder, + com.google.cloud.ces.v1.ToolFakeConfigOrBuilder> + internalGetToolFakeConfigFieldBuilder() { + if (toolFakeConfigBuilder_ == null) { + toolFakeConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ToolFakeConfig, + com.google.cloud.ces.v1.ToolFakeConfig.Builder, + com.google.cloud.ces.v1.ToolFakeConfigOrBuilder>( + getToolFakeConfig(), getParentForChildren(), isClean()); + toolFakeConfig_ = null; + } + return toolFakeConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.Toolset) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.Toolset) + private static final com.google.cloud.ces.v1.Toolset DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.Toolset(); + } + + public static com.google.cloud.ces.v1.Toolset getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Toolset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.Toolset getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolsetName.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolsetName.java new file mode 100644 index 000000000000..c2e5ed790237 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolsetName.java @@ -0,0 +1,257 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ToolsetName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_APP_TOOLSET = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String app; + private final String toolset; + + @Deprecated + protected ToolsetName() { + project = null; + location = null; + app = null; + toolset = null; + } + + private ToolsetName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + app = Preconditions.checkNotNull(builder.getApp()); + toolset = Preconditions.checkNotNull(builder.getToolset()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getApp() { + return app; + } + + public String getToolset() { + return toolset; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ToolsetName of(String project, String location, String app, String toolset) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setApp(app) + .setToolset(toolset) + .build(); + } + + public static String format(String project, String location, String app, String toolset) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setApp(app) + .setToolset(toolset) + .build() + .toString(); + } + + public static ToolsetName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_APP_TOOLSET.validatedMatch( + formattedString, "ToolsetName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("app"), + matchMap.get("toolset")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ToolsetName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_APP_TOOLSET.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (app != null) { + fieldMapBuilder.put("app", app); + } + if (toolset != null) { + fieldMapBuilder.put("toolset", toolset); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_APP_TOOLSET.instantiate( + "project", project, "location", location, "app", app, "toolset", toolset); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ToolsetName that = ((ToolsetName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.app, that.app) + && Objects.equals(this.toolset, that.toolset); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(app); + h *= 1000003; + h ^= Objects.hashCode(toolset); + return h; + } + + /** Builder for projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}. */ + public static class Builder { + private String project; + private String location; + private String app; + private String toolset; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getApp() { + return app; + } + + public String getToolset() { + return toolset; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setApp(String app) { + this.app = app; + return this; + } + + public Builder setToolset(String toolset) { + this.toolset = toolset; + return this; + } + + private Builder(ToolsetName toolsetName) { + this.project = toolsetName.project; + this.location = toolsetName.location; + this.app = toolsetName.app; + this.toolset = toolsetName.toolset; + } + + public ToolsetName build() { + return new ToolsetName(this); + } + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolsetOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolsetOrBuilder.java new file mode 100644 index 000000000000..e93ad4f1249d --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolsetOrBuilder.java @@ -0,0 +1,435 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/toolset.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ToolsetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.Toolset) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. A toolset that contains a list of tools that are offered by the
      +   * MCP server.
      +   * 
      + * + * + * .google.cloud.ces.v1.McpToolset mcp_toolset = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mcpToolset field is set. + */ + boolean hasMcpToolset(); + + /** + * + * + *
      +   * Optional. A toolset that contains a list of tools that are offered by the
      +   * MCP server.
      +   * 
      + * + * + * .google.cloud.ces.v1.McpToolset mcp_toolset = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mcpToolset. + */ + com.google.cloud.ces.v1.McpToolset getMcpToolset(); + + /** + * + * + *
      +   * Optional. A toolset that contains a list of tools that are offered by the
      +   * MCP server.
      +   * 
      + * + * + * .google.cloud.ces.v1.McpToolset mcp_toolset = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.McpToolsetOrBuilder getMcpToolsetOrBuilder(); + + /** + * + * + *
      +   * Optional. A toolset that contains a list of tools that are defined by an
      +   * OpenAPI schema.
      +   * 
      + * + * + * .google.cloud.ces.v1.OpenApiToolset open_api_toolset = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the openApiToolset field is set. + */ + boolean hasOpenApiToolset(); + + /** + * + * + *
      +   * Optional. A toolset that contains a list of tools that are defined by an
      +   * OpenAPI schema.
      +   * 
      + * + * + * .google.cloud.ces.v1.OpenApiToolset open_api_toolset = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The openApiToolset. + */ + com.google.cloud.ces.v1.OpenApiToolset getOpenApiToolset(); + + /** + * + * + *
      +   * Optional. A toolset that contains a list of tools that are defined by an
      +   * OpenAPI schema.
      +   * 
      + * + * + * .google.cloud.ces.v1.OpenApiToolset open_api_toolset = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.OpenApiToolsetOrBuilder getOpenApiToolsetOrBuilder(); + + /** + * + * + *
      +   * Optional. A toolset that generates tools from an Integration Connectors
      +   * Connection.
      +   * 
      + * + * + * .google.cloud.ces.v1.ConnectorToolset connector_toolset = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the connectorToolset field is set. + */ + boolean hasConnectorToolset(); + + /** + * + * + *
      +   * Optional. A toolset that generates tools from an Integration Connectors
      +   * Connection.
      +   * 
      + * + * + * .google.cloud.ces.v1.ConnectorToolset connector_toolset = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The connectorToolset. + */ + com.google.cloud.ces.v1.ConnectorToolset getConnectorToolset(); + + /** + * + * + *
      +   * Optional. A toolset that generates tools from an Integration Connectors
      +   * Connection.
      +   * 
      + * + * + * .google.cloud.ces.v1.ConnectorToolset connector_toolset = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ConnectorToolsetOrBuilder getConnectorToolsetOrBuilder(); + + /** + * + * + *
      +   * Identifier. The unique identifier of the toolset.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Identifier. The unique identifier of the toolset.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Optional. The display name of the toolset. Must be unique within the same
      +   * app.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
      +   * Optional. The display name of the toolset. Must be unique within the same
      +   * app.
      +   * 
      + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
      +   * Optional. The description of the toolset.
      +   * 
      + * + * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
      +   * Optional. The description of the toolset.
      +   * 
      + * + * string description = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
      +   * Output only. Timestamp when the toolset was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the toolset was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the toolset was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
      +   * Output only. Timestamp when the toolset was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the toolset was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
      +   * Output only. Timestamp when the toolset was last updated.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
      +   * ETag used to ensure the object hasn't changed during a read-modify-write
      +   * operation. If the etag is empty, the update will overwrite any concurrent
      +   * changes.
      +   * 
      + * + * string etag = 5; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
      +   * ETag used to ensure the object hasn't changed during a read-modify-write
      +   * operation. If the etag is empty, the update will overwrite any concurrent
      +   * changes.
      +   * 
      + * + * string etag = 5; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
      +   * Optional. The execution type of the tools in the toolset.
      +   * 
      + * + * + * .google.cloud.ces.v1.ExecutionType execution_type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for executionType. + */ + int getExecutionTypeValue(); + + /** + * + * + *
      +   * Optional. The execution type of the tools in the toolset.
      +   * 
      + * + * + * .google.cloud.ces.v1.ExecutionType execution_type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The executionType. + */ + com.google.cloud.ces.v1.ExecutionType getExecutionType(); + + /** + * + * + *
      +   * Optional. Configuration for tools behavior in fake mode.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolFakeConfig tool_fake_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolFakeConfig field is set. + */ + boolean hasToolFakeConfig(); + + /** + * + * + *
      +   * Optional. Configuration for tools behavior in fake mode.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolFakeConfig tool_fake_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolFakeConfig. + */ + com.google.cloud.ces.v1.ToolFakeConfig getToolFakeConfig(); + + /** + * + * + *
      +   * Optional. Configuration for tools behavior in fake mode.
      +   * 
      + * + * + * .google.cloud.ces.v1.ToolFakeConfig tool_fake_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ToolFakeConfigOrBuilder getToolFakeConfigOrBuilder(); + + com.google.cloud.ces.v1.Toolset.ToolsetTypeCase getToolsetTypeCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolsetProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolsetProto.java new file mode 100644 index 000000000000..f0e13ee426d2 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolsetProto.java @@ -0,0 +1,137 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/toolset.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class ToolsetProto extends com.google.protobuf.GeneratedFile { + private ToolsetProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ToolsetProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_Toolset_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_Toolset_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "!google/cloud/ces/v1/toolset.proto\022\023goo" + + "gle.cloud.ces.v1\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\032" + + " google/cloud/ces/v1/common.proto\032+google/c" + + "loud/ces/v1/connector_toolset.proto\032\037goo" + + "gle/cloud/ces/v1/fakes.proto\032%google/cloud/ces/v1/mcp_toolset.proto\032*google/clou" + + "d/ces/v1/open_api_toolset.proto\032\037google/protobuf/timestamp.proto\"\247\005\n" + + "\007Toolset\022;\n" + + "\013mcp_toolset\030\006" + + " \001(\0132\037.google.cloud.ces.v1.McpToolsetB\003\340A\001H\000\022D\n" + + "\020open_api_toolset\030\007 " + + "\001(\0132#.google.cloud.ces.v1.OpenApiToolsetB\003\340A\001H\000\022G\n" + + "\021connector_toolset\030\010 \001(\0132%.goo" + + "gle.cloud.ces.v1.ConnectorToolsetB\003\340A\001H\000\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\001\022\030\n" + + "\013description\030\n" + + " \001(\tB\003\340A\001\0224\n" + + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\014\n" + + "\004etag\030\005 \001(\t\022?\n" + + "\016execution_type\030\t" + + " \001(\0162\".google.cloud.ces.v1.ExecutionTypeB\003\340A\001\022B\n" + + "\020tool_fake_config\030\013" + + " \001(\0132#.google.cloud.ces.v1.ToolFakeConfigB\003\340A\001:y\352Av\n" + + "\032ces.googleapis.com/Toolset\022Eprojects/{project}/locations/{location" + + "}/apps/{app}/toolsets/{toolset}*\010toolsets2\007toolsetB\016\n" + + "\014toolset_typeBT\n" + + "\027com.google.cloud.ces.v1B\014ToolsetProtoP\001Z)cloud.goo" + + "gle.com/go/ces/apiv1/cespb;cespbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.ces.v1.CommonProto.getDescriptor(), + com.google.cloud.ces.v1.ConnectorToolsetProto.getDescriptor(), + com.google.cloud.ces.v1.FakesProto.getDescriptor(), + com.google.cloud.ces.v1.McpToolsetProto.getDescriptor(), + com.google.cloud.ces.v1.OpenApiToolsetProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_Toolset_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_Toolset_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_Toolset_descriptor, + new java.lang.String[] { + "McpToolset", + "OpenApiToolset", + "ConnectorToolset", + "Name", + "DisplayName", + "Description", + "CreateTime", + "UpdateTime", + "Etag", + "ExecutionType", + "ToolFakeConfig", + "ToolsetType", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.ces.v1.CommonProto.getDescriptor(); + com.google.cloud.ces.v1.ConnectorToolsetProto.getDescriptor(); + com.google.cloud.ces.v1.FakesProto.getDescriptor(); + com.google.cloud.ces.v1.McpToolsetProto.getDescriptor(); + com.google.cloud.ces.v1.OpenApiToolsetProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolsetTool.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolsetTool.java new file mode 100644 index 000000000000..ffec347b65ff --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolsetTool.java @@ -0,0 +1,809 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/toolset_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * A tool that is created from a toolset.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ToolsetTool} + */ +@com.google.protobuf.Generated +public final class ToolsetTool extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.ToolsetTool) + ToolsetToolOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ToolsetTool"); + } + + // Use ToolsetTool.newBuilder() to construct. + private ToolsetTool(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ToolsetTool() { + toolset_ = ""; + toolId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ToolsetToolProto + .internal_static_google_cloud_ces_v1_ToolsetTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ToolsetToolProto + .internal_static_google_cloud_ces_v1_ToolsetTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ToolsetTool.class, + com.google.cloud.ces.v1.ToolsetTool.Builder.class); + } + + public static final int TOOLSET_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object toolset_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the Toolset from which this tool is derived.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +   * 
      + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The toolset. + */ + @java.lang.Override + public java.lang.String getToolset() { + java.lang.Object ref = toolset_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolset_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the Toolset from which this tool is derived.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +   * 
      + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolset. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolsetBytes() { + java.lang.Object ref = toolset_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOL_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object toolId_ = ""; + + /** + * + * + *
      +   * Optional. The tool ID to filter the tools to retrieve the schema for.
      +   * 
      + * + * string tool_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The toolId. + */ + @java.lang.Override + public java.lang.String getToolId() { + java.lang.Object ref = toolId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolId_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The tool ID to filter the tools to retrieve the schema for.
      +   * 
      + * + * string tool_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for toolId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolIdBytes() { + java.lang.Object ref = toolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolset_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, toolset_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, toolId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolset_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, toolset_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, toolId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.ToolsetTool)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.ToolsetTool other = (com.google.cloud.ces.v1.ToolsetTool) obj; + + if (!getToolset().equals(other.getToolset())) return false; + if (!getToolId().equals(other.getToolId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOOLSET_FIELD_NUMBER; + hash = (53 * hash) + getToolset().hashCode(); + hash = (37 * hash) + TOOL_ID_FIELD_NUMBER; + hash = (53 * hash) + getToolId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.ToolsetTool parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ToolsetTool parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ToolsetTool parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ToolsetTool parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ToolsetTool parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.ToolsetTool parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ToolsetTool parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ToolsetTool parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ToolsetTool parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ToolsetTool parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.ToolsetTool parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.ToolsetTool parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.ToolsetTool prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * A tool that is created from a toolset.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.ToolsetTool} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.ToolsetTool) + com.google.cloud.ces.v1.ToolsetToolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.ToolsetToolProto + .internal_static_google_cloud_ces_v1_ToolsetTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.ToolsetToolProto + .internal_static_google_cloud_ces_v1_ToolsetTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.ToolsetTool.class, + com.google.cloud.ces.v1.ToolsetTool.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.ToolsetTool.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + toolset_ = ""; + toolId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.ToolsetToolProto + .internal_static_google_cloud_ces_v1_ToolsetTool_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetTool getDefaultInstanceForType() { + return com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetTool build() { + com.google.cloud.ces.v1.ToolsetTool result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetTool buildPartial() { + com.google.cloud.ces.v1.ToolsetTool result = new com.google.cloud.ces.v1.ToolsetTool(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.ToolsetTool result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.toolset_ = toolset_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.toolId_ = toolId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.ToolsetTool) { + return mergeFrom((com.google.cloud.ces.v1.ToolsetTool) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.ToolsetTool other) { + if (other == com.google.cloud.ces.v1.ToolsetTool.getDefaultInstance()) return this; + if (!other.getToolset().isEmpty()) { + toolset_ = other.toolset_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getToolId().isEmpty()) { + toolId_ = other.toolId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + toolset_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + toolId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object toolset_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the Toolset from which this tool is derived.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +     * 
      + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The toolset. + */ + public java.lang.String getToolset() { + java.lang.Object ref = toolset_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolset_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the Toolset from which this tool is derived.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +     * 
      + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolset. + */ + public com.google.protobuf.ByteString getToolsetBytes() { + java.lang.Object ref = toolset_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the Toolset from which this tool is derived.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +     * 
      + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The toolset to set. + * @return This builder for chaining. + */ + public Builder setToolset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolset_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the Toolset from which this tool is derived.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +     * 
      + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearToolset() { + toolset_ = getDefaultInstance().getToolset(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the Toolset from which this tool is derived.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +     * 
      + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for toolset to set. + * @return This builder for chaining. + */ + public Builder setToolsetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolset_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object toolId_ = ""; + + /** + * + * + *
      +     * Optional. The tool ID to filter the tools to retrieve the schema for.
      +     * 
      + * + * string tool_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The toolId. + */ + public java.lang.String getToolId() { + java.lang.Object ref = toolId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The tool ID to filter the tools to retrieve the schema for.
      +     * 
      + * + * string tool_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for toolId. + */ + public com.google.protobuf.ByteString getToolIdBytes() { + java.lang.Object ref = toolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The tool ID to filter the tools to retrieve the schema for.
      +     * 
      + * + * string tool_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The toolId to set. + * @return This builder for chaining. + */ + public Builder setToolId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The tool ID to filter the tools to retrieve the schema for.
      +     * 
      + * + * string tool_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearToolId() { + toolId_ = getDefaultInstance().getToolId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The tool ID to filter the tools to retrieve the schema for.
      +     * 
      + * + * string tool_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for toolId to set. + * @return This builder for chaining. + */ + public Builder setToolIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.ToolsetTool) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.ToolsetTool) + private static final com.google.cloud.ces.v1.ToolsetTool DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.ToolsetTool(); + } + + public static com.google.cloud.ces.v1.ToolsetTool getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToolsetTool parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetTool getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolsetToolOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolsetToolOrBuilder.java new file mode 100644 index 000000000000..bc1d2265194d --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolsetToolOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/toolset_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface ToolsetToolOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.ToolsetTool) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The resource name of the Toolset from which this tool is derived.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +   * 
      + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The toolset. + */ + java.lang.String getToolset(); + + /** + * + * + *
      +   * Required. The resource name of the Toolset from which this tool is derived.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
      +   * 
      + * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolset. + */ + com.google.protobuf.ByteString getToolsetBytes(); + + /** + * + * + *
      +   * Optional. The tool ID to filter the tools to retrieve the schema for.
      +   * 
      + * + * string tool_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The toolId. + */ + java.lang.String getToolId(); + + /** + * + * + *
      +   * Optional. The tool ID to filter the tools to retrieve the schema for.
      +   * 
      + * + * string tool_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for toolId. + */ + com.google.protobuf.ByteString getToolIdBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolsetToolProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolsetToolProto.java new file mode 100644 index 000000000000..bb21b0798f5b --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolsetToolProto.java @@ -0,0 +1,91 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/toolset_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class ToolsetToolProto extends com.google.protobuf.GeneratedFile { + private ToolsetToolProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ToolsetToolProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_ToolsetTool_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_ToolsetTool_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n&google/cloud/ces/v1/toolset_tool.proto" + + "\022\023google.cloud.ces.v1\032\037google/api/field_" + + "behavior.proto\032\031google/api/resource.prot" + + "o\"X\n\013ToolsetTool\0223\n\007toolset\030\001 \001(\tB\"\340A\002\372A" + + "\034\n\032ces.googleapis.com/Toolset\022\024\n\007tool_id" + + "\030\003 \001(\tB\003\340A\001BX\n\027com.google.cloud.ces.v1B\020" + + "ToolsetToolProtoP\001Z)cloud.google.com/go/" + + "ces/apiv1/cespb;cespbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_ToolsetTool_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_ToolsetTool_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_ToolsetTool_descriptor, + new java.lang.String[] { + "Toolset", "ToolId", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/TransferRule.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/TransferRule.java new file mode 100644 index 000000000000..5bccde4b17eb --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/TransferRule.java @@ -0,0 +1,3792 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_transfers.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Rule for transferring to a specific agent.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.TransferRule} + */ +@com.google.protobuf.Generated +public final class TransferRule extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.TransferRule) + TransferRuleOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TransferRule"); + } + + // Use TransferRule.newBuilder() to construct. + private TransferRule(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TransferRule() { + childAgent_ = ""; + direction_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentTransfersProto + .internal_static_google_cloud_ces_v1_TransferRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentTransfersProto + .internal_static_google_cloud_ces_v1_TransferRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.TransferRule.class, + com.google.cloud.ces.v1.TransferRule.Builder.class); + } + + /** + * + * + *
      +   * The direction of the transfer.
      +   * 
      + * + * Protobuf enum {@code google.cloud.ces.v1.TransferRule.Direction} + */ + public enum Direction implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Unspecified direction.
      +     * 
      + * + * DIRECTION_UNSPECIFIED = 0; + */ + DIRECTION_UNSPECIFIED(0), + /** + * + * + *
      +     * Transfer from the parent agent to the child agent.
      +     * 
      + * + * PARENT_TO_CHILD = 1; + */ + PARENT_TO_CHILD(1), + /** + * + * + *
      +     * Transfer from the child agent to the parent agent.
      +     * 
      + * + * CHILD_TO_PARENT = 2; + */ + CHILD_TO_PARENT(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Direction"); + } + + /** + * + * + *
      +     * Unspecified direction.
      +     * 
      + * + * DIRECTION_UNSPECIFIED = 0; + */ + public static final int DIRECTION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * Transfer from the parent agent to the child agent.
      +     * 
      + * + * PARENT_TO_CHILD = 1; + */ + public static final int PARENT_TO_CHILD_VALUE = 1; + + /** + * + * + *
      +     * Transfer from the child agent to the parent agent.
      +     * 
      + * + * CHILD_TO_PARENT = 2; + */ + public static final int CHILD_TO_PARENT_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Direction valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Direction forNumber(int value) { + switch (value) { + case 0: + return DIRECTION_UNSPECIFIED; + case 1: + return PARENT_TO_CHILD; + case 2: + return CHILD_TO_PARENT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Direction findValueByNumber(int number) { + return Direction.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.TransferRule.getDescriptor().getEnumTypes().get(0); + } + + private static final Direction[] VALUES = values(); + + public static Direction valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Direction(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.TransferRule.Direction) + } + + public interface DeterministicTransferOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.TransferRule.DeterministicTransfer) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Optional. A rule that evaluates a session state condition.
      +     * If the condition evaluates to true, the transfer occurs.
      +     * 
      + * + * + * .google.cloud.ces.v1.ExpressionCondition expression_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the expressionCondition field is set. + */ + boolean hasExpressionCondition(); + + /** + * + * + *
      +     * Optional. A rule that evaluates a session state condition.
      +     * If the condition evaluates to true, the transfer occurs.
      +     * 
      + * + * + * .google.cloud.ces.v1.ExpressionCondition expression_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The expressionCondition. + */ + com.google.cloud.ces.v1.ExpressionCondition getExpressionCondition(); + + /** + * + * + *
      +     * Optional. A rule that evaluates a session state condition.
      +     * If the condition evaluates to true, the transfer occurs.
      +     * 
      + * + * + * .google.cloud.ces.v1.ExpressionCondition expression_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.ExpressionConditionOrBuilder getExpressionConditionOrBuilder(); + + /** + * + * + *
      +     * Optional. A rule that uses Python code block to evaluate the
      +     * conditions. If the condition evaluates to true, the transfer occurs.
      +     * 
      + * + * + * .google.cloud.ces.v1.PythonCodeCondition python_code_condition = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pythonCodeCondition field is set. + */ + boolean hasPythonCodeCondition(); + + /** + * + * + *
      +     * Optional. A rule that uses Python code block to evaluate the
      +     * conditions. If the condition evaluates to true, the transfer occurs.
      +     * 
      + * + * + * .google.cloud.ces.v1.PythonCodeCondition python_code_condition = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pythonCodeCondition. + */ + com.google.cloud.ces.v1.PythonCodeCondition getPythonCodeCondition(); + + /** + * + * + *
      +     * Optional. A rule that uses Python code block to evaluate the
      +     * conditions. If the condition evaluates to true, the transfer occurs.
      +     * 
      + * + * + * .google.cloud.ces.v1.PythonCodeCondition python_code_condition = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.PythonCodeConditionOrBuilder getPythonCodeConditionOrBuilder(); + + com.google.cloud.ces.v1.TransferRule.DeterministicTransfer.ConditionTypeCase + getConditionTypeCase(); + } + + /** + * + * + *
      +   * Deterministic transfer rule. When the condition evaluates to true, the
      +   * transfer occurs.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.TransferRule.DeterministicTransfer} + */ + public static final class DeterministicTransfer extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.TransferRule.DeterministicTransfer) + DeterministicTransferOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeterministicTransfer"); + } + + // Use DeterministicTransfer.newBuilder() to construct. + private DeterministicTransfer(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeterministicTransfer() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentTransfersProto + .internal_static_google_cloud_ces_v1_TransferRule_DeterministicTransfer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentTransfersProto + .internal_static_google_cloud_ces_v1_TransferRule_DeterministicTransfer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.TransferRule.DeterministicTransfer.class, + com.google.cloud.ces.v1.TransferRule.DeterministicTransfer.Builder.class); + } + + private int conditionTypeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object conditionType_; + + public enum ConditionTypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + EXPRESSION_CONDITION(1), + PYTHON_CODE_CONDITION(2), + CONDITIONTYPE_NOT_SET(0); + private final int value; + + private ConditionTypeCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ConditionTypeCase valueOf(int value) { + return forNumber(value); + } + + public static ConditionTypeCase forNumber(int value) { + switch (value) { + case 1: + return EXPRESSION_CONDITION; + case 2: + return PYTHON_CODE_CONDITION; + case 0: + return CONDITIONTYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ConditionTypeCase getConditionTypeCase() { + return ConditionTypeCase.forNumber(conditionTypeCase_); + } + + public static final int EXPRESSION_CONDITION_FIELD_NUMBER = 1; + + /** + * + * + *
      +     * Optional. A rule that evaluates a session state condition.
      +     * If the condition evaluates to true, the transfer occurs.
      +     * 
      + * + * + * .google.cloud.ces.v1.ExpressionCondition expression_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the expressionCondition field is set. + */ + @java.lang.Override + public boolean hasExpressionCondition() { + return conditionTypeCase_ == 1; + } + + /** + * + * + *
      +     * Optional. A rule that evaluates a session state condition.
      +     * If the condition evaluates to true, the transfer occurs.
      +     * 
      + * + * + * .google.cloud.ces.v1.ExpressionCondition expression_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The expressionCondition. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ExpressionCondition getExpressionCondition() { + if (conditionTypeCase_ == 1) { + return (com.google.cloud.ces.v1.ExpressionCondition) conditionType_; + } + return com.google.cloud.ces.v1.ExpressionCondition.getDefaultInstance(); + } + + /** + * + * + *
      +     * Optional. A rule that evaluates a session state condition.
      +     * If the condition evaluates to true, the transfer occurs.
      +     * 
      + * + * + * .google.cloud.ces.v1.ExpressionCondition expression_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ExpressionConditionOrBuilder getExpressionConditionOrBuilder() { + if (conditionTypeCase_ == 1) { + return (com.google.cloud.ces.v1.ExpressionCondition) conditionType_; + } + return com.google.cloud.ces.v1.ExpressionCondition.getDefaultInstance(); + } + + public static final int PYTHON_CODE_CONDITION_FIELD_NUMBER = 2; + + /** + * + * + *
      +     * Optional. A rule that uses Python code block to evaluate the
      +     * conditions. If the condition evaluates to true, the transfer occurs.
      +     * 
      + * + * + * .google.cloud.ces.v1.PythonCodeCondition python_code_condition = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pythonCodeCondition field is set. + */ + @java.lang.Override + public boolean hasPythonCodeCondition() { + return conditionTypeCase_ == 2; + } + + /** + * + * + *
      +     * Optional. A rule that uses Python code block to evaluate the
      +     * conditions. If the condition evaluates to true, the transfer occurs.
      +     * 
      + * + * + * .google.cloud.ces.v1.PythonCodeCondition python_code_condition = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pythonCodeCondition. + */ + @java.lang.Override + public com.google.cloud.ces.v1.PythonCodeCondition getPythonCodeCondition() { + if (conditionTypeCase_ == 2) { + return (com.google.cloud.ces.v1.PythonCodeCondition) conditionType_; + } + return com.google.cloud.ces.v1.PythonCodeCondition.getDefaultInstance(); + } + + /** + * + * + *
      +     * Optional. A rule that uses Python code block to evaluate the
      +     * conditions. If the condition evaluates to true, the transfer occurs.
      +     * 
      + * + * + * .google.cloud.ces.v1.PythonCodeCondition python_code_condition = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.PythonCodeConditionOrBuilder getPythonCodeConditionOrBuilder() { + if (conditionTypeCase_ == 2) { + return (com.google.cloud.ces.v1.PythonCodeCondition) conditionType_; + } + return com.google.cloud.ces.v1.PythonCodeCondition.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (conditionTypeCase_ == 1) { + output.writeMessage(1, (com.google.cloud.ces.v1.ExpressionCondition) conditionType_); + } + if (conditionTypeCase_ == 2) { + output.writeMessage(2, (com.google.cloud.ces.v1.PythonCodeCondition) conditionType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (conditionTypeCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.ces.v1.ExpressionCondition) conditionType_); + } + if (conditionTypeCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.ces.v1.PythonCodeCondition) conditionType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.TransferRule.DeterministicTransfer)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.TransferRule.DeterministicTransfer other = + (com.google.cloud.ces.v1.TransferRule.DeterministicTransfer) obj; + + if (!getConditionTypeCase().equals(other.getConditionTypeCase())) return false; + switch (conditionTypeCase_) { + case 1: + if (!getExpressionCondition().equals(other.getExpressionCondition())) return false; + break; + case 2: + if (!getPythonCodeCondition().equals(other.getPythonCodeCondition())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (conditionTypeCase_) { + case 1: + hash = (37 * hash) + EXPRESSION_CONDITION_FIELD_NUMBER; + hash = (53 * hash) + getExpressionCondition().hashCode(); + break; + case 2: + hash = (37 * hash) + PYTHON_CODE_CONDITION_FIELD_NUMBER; + hash = (53 * hash) + getPythonCodeCondition().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.TransferRule.DeterministicTransfer parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.TransferRule.DeterministicTransfer parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TransferRule.DeterministicTransfer parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.TransferRule.DeterministicTransfer parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TransferRule.DeterministicTransfer parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.TransferRule.DeterministicTransfer parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TransferRule.DeterministicTransfer parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.TransferRule.DeterministicTransfer parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TransferRule.DeterministicTransfer parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.TransferRule.DeterministicTransfer parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TransferRule.DeterministicTransfer parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.TransferRule.DeterministicTransfer parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.TransferRule.DeterministicTransfer prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Deterministic transfer rule. When the condition evaluates to true, the
      +     * transfer occurs.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.TransferRule.DeterministicTransfer} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.TransferRule.DeterministicTransfer) + com.google.cloud.ces.v1.TransferRule.DeterministicTransferOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentTransfersProto + .internal_static_google_cloud_ces_v1_TransferRule_DeterministicTransfer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentTransfersProto + .internal_static_google_cloud_ces_v1_TransferRule_DeterministicTransfer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.TransferRule.DeterministicTransfer.class, + com.google.cloud.ces.v1.TransferRule.DeterministicTransfer.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.TransferRule.DeterministicTransfer.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (expressionConditionBuilder_ != null) { + expressionConditionBuilder_.clear(); + } + if (pythonCodeConditionBuilder_ != null) { + pythonCodeConditionBuilder_.clear(); + } + conditionTypeCase_ = 0; + conditionType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentTransfersProto + .internal_static_google_cloud_ces_v1_TransferRule_DeterministicTransfer_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.TransferRule.DeterministicTransfer + getDefaultInstanceForType() { + return com.google.cloud.ces.v1.TransferRule.DeterministicTransfer.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.TransferRule.DeterministicTransfer build() { + com.google.cloud.ces.v1.TransferRule.DeterministicTransfer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.TransferRule.DeterministicTransfer buildPartial() { + com.google.cloud.ces.v1.TransferRule.DeterministicTransfer result = + new com.google.cloud.ces.v1.TransferRule.DeterministicTransfer(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.ces.v1.TransferRule.DeterministicTransfer result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.ces.v1.TransferRule.DeterministicTransfer result) { + result.conditionTypeCase_ = conditionTypeCase_; + result.conditionType_ = this.conditionType_; + if (conditionTypeCase_ == 1 && expressionConditionBuilder_ != null) { + result.conditionType_ = expressionConditionBuilder_.build(); + } + if (conditionTypeCase_ == 2 && pythonCodeConditionBuilder_ != null) { + result.conditionType_ = pythonCodeConditionBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.TransferRule.DeterministicTransfer) { + return mergeFrom((com.google.cloud.ces.v1.TransferRule.DeterministicTransfer) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.TransferRule.DeterministicTransfer other) { + if (other + == com.google.cloud.ces.v1.TransferRule.DeterministicTransfer.getDefaultInstance()) + return this; + switch (other.getConditionTypeCase()) { + case EXPRESSION_CONDITION: + { + mergeExpressionCondition(other.getExpressionCondition()); + break; + } + case PYTHON_CODE_CONDITION: + { + mergePythonCodeCondition(other.getPythonCodeCondition()); + break; + } + case CONDITIONTYPE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetExpressionConditionFieldBuilder().getBuilder(), extensionRegistry); + conditionTypeCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetPythonCodeConditionFieldBuilder().getBuilder(), extensionRegistry); + conditionTypeCase_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int conditionTypeCase_ = 0; + private java.lang.Object conditionType_; + + public ConditionTypeCase getConditionTypeCase() { + return ConditionTypeCase.forNumber(conditionTypeCase_); + } + + public Builder clearConditionType() { + conditionTypeCase_ = 0; + conditionType_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ExpressionCondition, + com.google.cloud.ces.v1.ExpressionCondition.Builder, + com.google.cloud.ces.v1.ExpressionConditionOrBuilder> + expressionConditionBuilder_; + + /** + * + * + *
      +       * Optional. A rule that evaluates a session state condition.
      +       * If the condition evaluates to true, the transfer occurs.
      +       * 
      + * + * + * .google.cloud.ces.v1.ExpressionCondition expression_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the expressionCondition field is set. + */ + @java.lang.Override + public boolean hasExpressionCondition() { + return conditionTypeCase_ == 1; + } + + /** + * + * + *
      +       * Optional. A rule that evaluates a session state condition.
      +       * If the condition evaluates to true, the transfer occurs.
      +       * 
      + * + * + * .google.cloud.ces.v1.ExpressionCondition expression_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The expressionCondition. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ExpressionCondition getExpressionCondition() { + if (expressionConditionBuilder_ == null) { + if (conditionTypeCase_ == 1) { + return (com.google.cloud.ces.v1.ExpressionCondition) conditionType_; + } + return com.google.cloud.ces.v1.ExpressionCondition.getDefaultInstance(); + } else { + if (conditionTypeCase_ == 1) { + return expressionConditionBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.ExpressionCondition.getDefaultInstance(); + } + } + + /** + * + * + *
      +       * Optional. A rule that evaluates a session state condition.
      +       * If the condition evaluates to true, the transfer occurs.
      +       * 
      + * + * + * .google.cloud.ces.v1.ExpressionCondition expression_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExpressionCondition(com.google.cloud.ces.v1.ExpressionCondition value) { + if (expressionConditionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conditionType_ = value; + onChanged(); + } else { + expressionConditionBuilder_.setMessage(value); + } + conditionTypeCase_ = 1; + return this; + } + + /** + * + * + *
      +       * Optional. A rule that evaluates a session state condition.
      +       * If the condition evaluates to true, the transfer occurs.
      +       * 
      + * + * + * .google.cloud.ces.v1.ExpressionCondition expression_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExpressionCondition( + com.google.cloud.ces.v1.ExpressionCondition.Builder builderForValue) { + if (expressionConditionBuilder_ == null) { + conditionType_ = builderForValue.build(); + onChanged(); + } else { + expressionConditionBuilder_.setMessage(builderForValue.build()); + } + conditionTypeCase_ = 1; + return this; + } + + /** + * + * + *
      +       * Optional. A rule that evaluates a session state condition.
      +       * If the condition evaluates to true, the transfer occurs.
      +       * 
      + * + * + * .google.cloud.ces.v1.ExpressionCondition expression_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeExpressionCondition(com.google.cloud.ces.v1.ExpressionCondition value) { + if (expressionConditionBuilder_ == null) { + if (conditionTypeCase_ == 1 + && conditionType_ + != com.google.cloud.ces.v1.ExpressionCondition.getDefaultInstance()) { + conditionType_ = + com.google.cloud.ces.v1.ExpressionCondition.newBuilder( + (com.google.cloud.ces.v1.ExpressionCondition) conditionType_) + .mergeFrom(value) + .buildPartial(); + } else { + conditionType_ = value; + } + onChanged(); + } else { + if (conditionTypeCase_ == 1) { + expressionConditionBuilder_.mergeFrom(value); + } else { + expressionConditionBuilder_.setMessage(value); + } + } + conditionTypeCase_ = 1; + return this; + } + + /** + * + * + *
      +       * Optional. A rule that evaluates a session state condition.
      +       * If the condition evaluates to true, the transfer occurs.
      +       * 
      + * + * + * .google.cloud.ces.v1.ExpressionCondition expression_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearExpressionCondition() { + if (expressionConditionBuilder_ == null) { + if (conditionTypeCase_ == 1) { + conditionTypeCase_ = 0; + conditionType_ = null; + onChanged(); + } + } else { + if (conditionTypeCase_ == 1) { + conditionTypeCase_ = 0; + conditionType_ = null; + } + expressionConditionBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +       * Optional. A rule that evaluates a session state condition.
      +       * If the condition evaluates to true, the transfer occurs.
      +       * 
      + * + * + * .google.cloud.ces.v1.ExpressionCondition expression_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.ExpressionCondition.Builder getExpressionConditionBuilder() { + return internalGetExpressionConditionFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Optional. A rule that evaluates a session state condition.
      +       * If the condition evaluates to true, the transfer occurs.
      +       * 
      + * + * + * .google.cloud.ces.v1.ExpressionCondition expression_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ExpressionConditionOrBuilder + getExpressionConditionOrBuilder() { + if ((conditionTypeCase_ == 1) && (expressionConditionBuilder_ != null)) { + return expressionConditionBuilder_.getMessageOrBuilder(); + } else { + if (conditionTypeCase_ == 1) { + return (com.google.cloud.ces.v1.ExpressionCondition) conditionType_; + } + return com.google.cloud.ces.v1.ExpressionCondition.getDefaultInstance(); + } + } + + /** + * + * + *
      +       * Optional. A rule that evaluates a session state condition.
      +       * If the condition evaluates to true, the transfer occurs.
      +       * 
      + * + * + * .google.cloud.ces.v1.ExpressionCondition expression_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ExpressionCondition, + com.google.cloud.ces.v1.ExpressionCondition.Builder, + com.google.cloud.ces.v1.ExpressionConditionOrBuilder> + internalGetExpressionConditionFieldBuilder() { + if (expressionConditionBuilder_ == null) { + if (!(conditionTypeCase_ == 1)) { + conditionType_ = com.google.cloud.ces.v1.ExpressionCondition.getDefaultInstance(); + } + expressionConditionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ExpressionCondition, + com.google.cloud.ces.v1.ExpressionCondition.Builder, + com.google.cloud.ces.v1.ExpressionConditionOrBuilder>( + (com.google.cloud.ces.v1.ExpressionCondition) conditionType_, + getParentForChildren(), + isClean()); + conditionType_ = null; + } + conditionTypeCase_ = 1; + onChanged(); + return expressionConditionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.PythonCodeCondition, + com.google.cloud.ces.v1.PythonCodeCondition.Builder, + com.google.cloud.ces.v1.PythonCodeConditionOrBuilder> + pythonCodeConditionBuilder_; + + /** + * + * + *
      +       * Optional. A rule that uses Python code block to evaluate the
      +       * conditions. If the condition evaluates to true, the transfer occurs.
      +       * 
      + * + * + * .google.cloud.ces.v1.PythonCodeCondition python_code_condition = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pythonCodeCondition field is set. + */ + @java.lang.Override + public boolean hasPythonCodeCondition() { + return conditionTypeCase_ == 2; + } + + /** + * + * + *
      +       * Optional. A rule that uses Python code block to evaluate the
      +       * conditions. If the condition evaluates to true, the transfer occurs.
      +       * 
      + * + * + * .google.cloud.ces.v1.PythonCodeCondition python_code_condition = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pythonCodeCondition. + */ + @java.lang.Override + public com.google.cloud.ces.v1.PythonCodeCondition getPythonCodeCondition() { + if (pythonCodeConditionBuilder_ == null) { + if (conditionTypeCase_ == 2) { + return (com.google.cloud.ces.v1.PythonCodeCondition) conditionType_; + } + return com.google.cloud.ces.v1.PythonCodeCondition.getDefaultInstance(); + } else { + if (conditionTypeCase_ == 2) { + return pythonCodeConditionBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.PythonCodeCondition.getDefaultInstance(); + } + } + + /** + * + * + *
      +       * Optional. A rule that uses Python code block to evaluate the
      +       * conditions. If the condition evaluates to true, the transfer occurs.
      +       * 
      + * + * + * .google.cloud.ces.v1.PythonCodeCondition python_code_condition = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPythonCodeCondition(com.google.cloud.ces.v1.PythonCodeCondition value) { + if (pythonCodeConditionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conditionType_ = value; + onChanged(); + } else { + pythonCodeConditionBuilder_.setMessage(value); + } + conditionTypeCase_ = 2; + return this; + } + + /** + * + * + *
      +       * Optional. A rule that uses Python code block to evaluate the
      +       * conditions. If the condition evaluates to true, the transfer occurs.
      +       * 
      + * + * + * .google.cloud.ces.v1.PythonCodeCondition python_code_condition = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPythonCodeCondition( + com.google.cloud.ces.v1.PythonCodeCondition.Builder builderForValue) { + if (pythonCodeConditionBuilder_ == null) { + conditionType_ = builderForValue.build(); + onChanged(); + } else { + pythonCodeConditionBuilder_.setMessage(builderForValue.build()); + } + conditionTypeCase_ = 2; + return this; + } + + /** + * + * + *
      +       * Optional. A rule that uses Python code block to evaluate the
      +       * conditions. If the condition evaluates to true, the transfer occurs.
      +       * 
      + * + * + * .google.cloud.ces.v1.PythonCodeCondition python_code_condition = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePythonCodeCondition(com.google.cloud.ces.v1.PythonCodeCondition value) { + if (pythonCodeConditionBuilder_ == null) { + if (conditionTypeCase_ == 2 + && conditionType_ + != com.google.cloud.ces.v1.PythonCodeCondition.getDefaultInstance()) { + conditionType_ = + com.google.cloud.ces.v1.PythonCodeCondition.newBuilder( + (com.google.cloud.ces.v1.PythonCodeCondition) conditionType_) + .mergeFrom(value) + .buildPartial(); + } else { + conditionType_ = value; + } + onChanged(); + } else { + if (conditionTypeCase_ == 2) { + pythonCodeConditionBuilder_.mergeFrom(value); + } else { + pythonCodeConditionBuilder_.setMessage(value); + } + } + conditionTypeCase_ = 2; + return this; + } + + /** + * + * + *
      +       * Optional. A rule that uses Python code block to evaluate the
      +       * conditions. If the condition evaluates to true, the transfer occurs.
      +       * 
      + * + * + * .google.cloud.ces.v1.PythonCodeCondition python_code_condition = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPythonCodeCondition() { + if (pythonCodeConditionBuilder_ == null) { + if (conditionTypeCase_ == 2) { + conditionTypeCase_ = 0; + conditionType_ = null; + onChanged(); + } + } else { + if (conditionTypeCase_ == 2) { + conditionTypeCase_ = 0; + conditionType_ = null; + } + pythonCodeConditionBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +       * Optional. A rule that uses Python code block to evaluate the
      +       * conditions. If the condition evaluates to true, the transfer occurs.
      +       * 
      + * + * + * .google.cloud.ces.v1.PythonCodeCondition python_code_condition = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.PythonCodeCondition.Builder getPythonCodeConditionBuilder() { + return internalGetPythonCodeConditionFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Optional. A rule that uses Python code block to evaluate the
      +       * conditions. If the condition evaluates to true, the transfer occurs.
      +       * 
      + * + * + * .google.cloud.ces.v1.PythonCodeCondition python_code_condition = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.PythonCodeConditionOrBuilder + getPythonCodeConditionOrBuilder() { + if ((conditionTypeCase_ == 2) && (pythonCodeConditionBuilder_ != null)) { + return pythonCodeConditionBuilder_.getMessageOrBuilder(); + } else { + if (conditionTypeCase_ == 2) { + return (com.google.cloud.ces.v1.PythonCodeCondition) conditionType_; + } + return com.google.cloud.ces.v1.PythonCodeCondition.getDefaultInstance(); + } + } + + /** + * + * + *
      +       * Optional. A rule that uses Python code block to evaluate the
      +       * conditions. If the condition evaluates to true, the transfer occurs.
      +       * 
      + * + * + * .google.cloud.ces.v1.PythonCodeCondition python_code_condition = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.PythonCodeCondition, + com.google.cloud.ces.v1.PythonCodeCondition.Builder, + com.google.cloud.ces.v1.PythonCodeConditionOrBuilder> + internalGetPythonCodeConditionFieldBuilder() { + if (pythonCodeConditionBuilder_ == null) { + if (!(conditionTypeCase_ == 2)) { + conditionType_ = com.google.cloud.ces.v1.PythonCodeCondition.getDefaultInstance(); + } + pythonCodeConditionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.PythonCodeCondition, + com.google.cloud.ces.v1.PythonCodeCondition.Builder, + com.google.cloud.ces.v1.PythonCodeConditionOrBuilder>( + (com.google.cloud.ces.v1.PythonCodeCondition) conditionType_, + getParentForChildren(), + isClean()); + conditionType_ = null; + } + conditionTypeCase_ = 2; + onChanged(); + return pythonCodeConditionBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.TransferRule.DeterministicTransfer) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.TransferRule.DeterministicTransfer) + private static final com.google.cloud.ces.v1.TransferRule.DeterministicTransfer + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.TransferRule.DeterministicTransfer(); + } + + public static com.google.cloud.ces.v1.TransferRule.DeterministicTransfer getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeterministicTransfer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.TransferRule.DeterministicTransfer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DisablePlannerTransferOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.TransferRule.DisablePlannerTransfer) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Required. If the condition evaluates to true, planner will not be allowed
      +     * to transfer to the target agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.ExpressionCondition expression_condition = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the expressionCondition field is set. + */ + boolean hasExpressionCondition(); + + /** + * + * + *
      +     * Required. If the condition evaluates to true, planner will not be allowed
      +     * to transfer to the target agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.ExpressionCondition expression_condition = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The expressionCondition. + */ + com.google.cloud.ces.v1.ExpressionCondition getExpressionCondition(); + + /** + * + * + *
      +     * Required. If the condition evaluates to true, planner will not be allowed
      +     * to transfer to the target agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.ExpressionCondition expression_condition = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.ExpressionConditionOrBuilder getExpressionConditionOrBuilder(); + } + + /** + * + * + *
      +   * A rule that prevents the planner from transferring to the target agent.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.TransferRule.DisablePlannerTransfer} + */ + public static final class DisablePlannerTransfer extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.TransferRule.DisablePlannerTransfer) + DisablePlannerTransferOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DisablePlannerTransfer"); + } + + // Use DisablePlannerTransfer.newBuilder() to construct. + private DisablePlannerTransfer(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DisablePlannerTransfer() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentTransfersProto + .internal_static_google_cloud_ces_v1_TransferRule_DisablePlannerTransfer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentTransfersProto + .internal_static_google_cloud_ces_v1_TransferRule_DisablePlannerTransfer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer.class, + com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer.Builder.class); + } + + private int bitField0_; + public static final int EXPRESSION_CONDITION_FIELD_NUMBER = 1; + private com.google.cloud.ces.v1.ExpressionCondition expressionCondition_; + + /** + * + * + *
      +     * Required. If the condition evaluates to true, planner will not be allowed
      +     * to transfer to the target agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.ExpressionCondition expression_condition = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the expressionCondition field is set. + */ + @java.lang.Override + public boolean hasExpressionCondition() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Required. If the condition evaluates to true, planner will not be allowed
      +     * to transfer to the target agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.ExpressionCondition expression_condition = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The expressionCondition. + */ + @java.lang.Override + public com.google.cloud.ces.v1.ExpressionCondition getExpressionCondition() { + return expressionCondition_ == null + ? com.google.cloud.ces.v1.ExpressionCondition.getDefaultInstance() + : expressionCondition_; + } + + /** + * + * + *
      +     * Required. If the condition evaluates to true, planner will not be allowed
      +     * to transfer to the target agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.ExpressionCondition expression_condition = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ExpressionConditionOrBuilder getExpressionConditionOrBuilder() { + return expressionCondition_ == null + ? com.google.cloud.ces.v1.ExpressionCondition.getDefaultInstance() + : expressionCondition_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getExpressionCondition()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getExpressionCondition()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer other = + (com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer) obj; + + if (hasExpressionCondition() != other.hasExpressionCondition()) return false; + if (hasExpressionCondition()) { + if (!getExpressionCondition().equals(other.getExpressionCondition())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasExpressionCondition()) { + hash = (37 * hash) + EXPRESSION_CONDITION_FIELD_NUMBER; + hash = (53 * hash) + getExpressionCondition().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * A rule that prevents the planner from transferring to the target agent.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.TransferRule.DisablePlannerTransfer} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.TransferRule.DisablePlannerTransfer) + com.google.cloud.ces.v1.TransferRule.DisablePlannerTransferOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentTransfersProto + .internal_static_google_cloud_ces_v1_TransferRule_DisablePlannerTransfer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentTransfersProto + .internal_static_google_cloud_ces_v1_TransferRule_DisablePlannerTransfer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer.class, + com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetExpressionConditionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + expressionCondition_ = null; + if (expressionConditionBuilder_ != null) { + expressionConditionBuilder_.dispose(); + expressionConditionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentTransfersProto + .internal_static_google_cloud_ces_v1_TransferRule_DisablePlannerTransfer_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer + getDefaultInstanceForType() { + return com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer build() { + com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer buildPartial() { + com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer result = + new com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.expressionCondition_ = + expressionConditionBuilder_ == null + ? expressionCondition_ + : expressionConditionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer) { + return mergeFrom((com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer other) { + if (other + == com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer.getDefaultInstance()) + return this; + if (other.hasExpressionCondition()) { + mergeExpressionCondition(other.getExpressionCondition()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetExpressionConditionFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.ces.v1.ExpressionCondition expressionCondition_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ExpressionCondition, + com.google.cloud.ces.v1.ExpressionCondition.Builder, + com.google.cloud.ces.v1.ExpressionConditionOrBuilder> + expressionConditionBuilder_; + + /** + * + * + *
      +       * Required. If the condition evaluates to true, planner will not be allowed
      +       * to transfer to the target agent.
      +       * 
      + * + * + * .google.cloud.ces.v1.ExpressionCondition expression_condition = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the expressionCondition field is set. + */ + public boolean hasExpressionCondition() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +       * Required. If the condition evaluates to true, planner will not be allowed
      +       * to transfer to the target agent.
      +       * 
      + * + * + * .google.cloud.ces.v1.ExpressionCondition expression_condition = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The expressionCondition. + */ + public com.google.cloud.ces.v1.ExpressionCondition getExpressionCondition() { + if (expressionConditionBuilder_ == null) { + return expressionCondition_ == null + ? com.google.cloud.ces.v1.ExpressionCondition.getDefaultInstance() + : expressionCondition_; + } else { + return expressionConditionBuilder_.getMessage(); + } + } + + /** + * + * + *
      +       * Required. If the condition evaluates to true, planner will not be allowed
      +       * to transfer to the target agent.
      +       * 
      + * + * + * .google.cloud.ces.v1.ExpressionCondition expression_condition = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExpressionCondition(com.google.cloud.ces.v1.ExpressionCondition value) { + if (expressionConditionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expressionCondition_ = value; + } else { + expressionConditionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. If the condition evaluates to true, planner will not be allowed
      +       * to transfer to the target agent.
      +       * 
      + * + * + * .google.cloud.ces.v1.ExpressionCondition expression_condition = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExpressionCondition( + com.google.cloud.ces.v1.ExpressionCondition.Builder builderForValue) { + if (expressionConditionBuilder_ == null) { + expressionCondition_ = builderForValue.build(); + } else { + expressionConditionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. If the condition evaluates to true, planner will not be allowed
      +       * to transfer to the target agent.
      +       * 
      + * + * + * .google.cloud.ces.v1.ExpressionCondition expression_condition = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeExpressionCondition(com.google.cloud.ces.v1.ExpressionCondition value) { + if (expressionConditionBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && expressionCondition_ != null + && expressionCondition_ + != com.google.cloud.ces.v1.ExpressionCondition.getDefaultInstance()) { + getExpressionConditionBuilder().mergeFrom(value); + } else { + expressionCondition_ = value; + } + } else { + expressionConditionBuilder_.mergeFrom(value); + } + if (expressionCondition_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +       * Required. If the condition evaluates to true, planner will not be allowed
      +       * to transfer to the target agent.
      +       * 
      + * + * + * .google.cloud.ces.v1.ExpressionCondition expression_condition = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearExpressionCondition() { + bitField0_ = (bitField0_ & ~0x00000001); + expressionCondition_ = null; + if (expressionConditionBuilder_ != null) { + expressionConditionBuilder_.dispose(); + expressionConditionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. If the condition evaluates to true, planner will not be allowed
      +       * to transfer to the target agent.
      +       * 
      + * + * + * .google.cloud.ces.v1.ExpressionCondition expression_condition = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.ExpressionCondition.Builder getExpressionConditionBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetExpressionConditionFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Required. If the condition evaluates to true, planner will not be allowed
      +       * to transfer to the target agent.
      +       * 
      + * + * + * .google.cloud.ces.v1.ExpressionCondition expression_condition = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.ExpressionConditionOrBuilder + getExpressionConditionOrBuilder() { + if (expressionConditionBuilder_ != null) { + return expressionConditionBuilder_.getMessageOrBuilder(); + } else { + return expressionCondition_ == null + ? com.google.cloud.ces.v1.ExpressionCondition.getDefaultInstance() + : expressionCondition_; + } + } + + /** + * + * + *
      +       * Required. If the condition evaluates to true, planner will not be allowed
      +       * to transfer to the target agent.
      +       * 
      + * + * + * .google.cloud.ces.v1.ExpressionCondition expression_condition = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ExpressionCondition, + com.google.cloud.ces.v1.ExpressionCondition.Builder, + com.google.cloud.ces.v1.ExpressionConditionOrBuilder> + internalGetExpressionConditionFieldBuilder() { + if (expressionConditionBuilder_ == null) { + expressionConditionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.ExpressionCondition, + com.google.cloud.ces.v1.ExpressionCondition.Builder, + com.google.cloud.ces.v1.ExpressionConditionOrBuilder>( + getExpressionCondition(), getParentForChildren(), isClean()); + expressionCondition_ = null; + } + return expressionConditionBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.TransferRule.DisablePlannerTransfer) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.TransferRule.DisablePlannerTransfer) + private static final com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer(); + } + + public static com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DisablePlannerTransfer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int ruleTypeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object ruleType_; + + public enum RuleTypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DETERMINISTIC_TRANSFER(3), + DISABLE_PLANNER_TRANSFER(4), + RULETYPE_NOT_SET(0); + private final int value; + + private RuleTypeCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RuleTypeCase valueOf(int value) { + return forNumber(value); + } + + public static RuleTypeCase forNumber(int value) { + switch (value) { + case 3: + return DETERMINISTIC_TRANSFER; + case 4: + return DISABLE_PLANNER_TRANSFER; + case 0: + return RULETYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public RuleTypeCase getRuleTypeCase() { + return RuleTypeCase.forNumber(ruleTypeCase_); + } + + public static final int DETERMINISTIC_TRANSFER_FIELD_NUMBER = 3; + + /** + * + * + *
      +   * Optional. A rule that immediately transfers to the target agent when the
      +   * condition is met.
      +   * 
      + * + * + * .google.cloud.ces.v1.TransferRule.DeterministicTransfer deterministic_transfer = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deterministicTransfer field is set. + */ + @java.lang.Override + public boolean hasDeterministicTransfer() { + return ruleTypeCase_ == 3; + } + + /** + * + * + *
      +   * Optional. A rule that immediately transfers to the target agent when the
      +   * condition is met.
      +   * 
      + * + * + * .google.cloud.ces.v1.TransferRule.DeterministicTransfer deterministic_transfer = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deterministicTransfer. + */ + @java.lang.Override + public com.google.cloud.ces.v1.TransferRule.DeterministicTransfer getDeterministicTransfer() { + if (ruleTypeCase_ == 3) { + return (com.google.cloud.ces.v1.TransferRule.DeterministicTransfer) ruleType_; + } + return com.google.cloud.ces.v1.TransferRule.DeterministicTransfer.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. A rule that immediately transfers to the target agent when the
      +   * condition is met.
      +   * 
      + * + * + * .google.cloud.ces.v1.TransferRule.DeterministicTransfer deterministic_transfer = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.TransferRule.DeterministicTransferOrBuilder + getDeterministicTransferOrBuilder() { + if (ruleTypeCase_ == 3) { + return (com.google.cloud.ces.v1.TransferRule.DeterministicTransfer) ruleType_; + } + return com.google.cloud.ces.v1.TransferRule.DeterministicTransfer.getDefaultInstance(); + } + + public static final int DISABLE_PLANNER_TRANSFER_FIELD_NUMBER = 4; + + /** + * + * + *
      +   * Optional. Rule that prevents the planner from transferring to the target
      +   * agent.
      +   * 
      + * + * + * .google.cloud.ces.v1.TransferRule.DisablePlannerTransfer disable_planner_transfer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the disablePlannerTransfer field is set. + */ + @java.lang.Override + public boolean hasDisablePlannerTransfer() { + return ruleTypeCase_ == 4; + } + + /** + * + * + *
      +   * Optional. Rule that prevents the planner from transferring to the target
      +   * agent.
      +   * 
      + * + * + * .google.cloud.ces.v1.TransferRule.DisablePlannerTransfer disable_planner_transfer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The disablePlannerTransfer. + */ + @java.lang.Override + public com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer getDisablePlannerTransfer() { + if (ruleTypeCase_ == 4) { + return (com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer) ruleType_; + } + return com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Rule that prevents the planner from transferring to the target
      +   * agent.
      +   * 
      + * + * + * .google.cloud.ces.v1.TransferRule.DisablePlannerTransfer disable_planner_transfer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.TransferRule.DisablePlannerTransferOrBuilder + getDisablePlannerTransferOrBuilder() { + if (ruleTypeCase_ == 4) { + return (com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer) ruleType_; + } + return com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer.getDefaultInstance(); + } + + public static final int CHILD_AGENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object childAgent_ = ""; + + /** + * + * + *
      +   * Required. The resource name of the child agent the rule applies to.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +   * 
      + * + * + * string child_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The childAgent. + */ + @java.lang.Override + public java.lang.String getChildAgent() { + java.lang.Object ref = childAgent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + childAgent_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The resource name of the child agent the rule applies to.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +   * 
      + * + * + * string child_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for childAgent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getChildAgentBytes() { + java.lang.Object ref = childAgent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + childAgent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIRECTION_FIELD_NUMBER = 2; + private int direction_ = 0; + + /** + * + * + *
      +   * Required. The direction of the transfer.
      +   * 
      + * + * + * .google.cloud.ces.v1.TransferRule.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for direction. + */ + @java.lang.Override + public int getDirectionValue() { + return direction_; + } + + /** + * + * + *
      +   * Required. The direction of the transfer.
      +   * 
      + * + * + * .google.cloud.ces.v1.TransferRule.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The direction. + */ + @java.lang.Override + public com.google.cloud.ces.v1.TransferRule.Direction getDirection() { + com.google.cloud.ces.v1.TransferRule.Direction result = + com.google.cloud.ces.v1.TransferRule.Direction.forNumber(direction_); + return result == null ? com.google.cloud.ces.v1.TransferRule.Direction.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(childAgent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, childAgent_); + } + if (direction_ + != com.google.cloud.ces.v1.TransferRule.Direction.DIRECTION_UNSPECIFIED.getNumber()) { + output.writeEnum(2, direction_); + } + if (ruleTypeCase_ == 3) { + output.writeMessage( + 3, (com.google.cloud.ces.v1.TransferRule.DeterministicTransfer) ruleType_); + } + if (ruleTypeCase_ == 4) { + output.writeMessage( + 4, (com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer) ruleType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(childAgent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, childAgent_); + } + if (direction_ + != com.google.cloud.ces.v1.TransferRule.Direction.DIRECTION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, direction_); + } + if (ruleTypeCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.ces.v1.TransferRule.DeterministicTransfer) ruleType_); + } + if (ruleTypeCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer) ruleType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.TransferRule)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.TransferRule other = (com.google.cloud.ces.v1.TransferRule) obj; + + if (!getChildAgent().equals(other.getChildAgent())) return false; + if (direction_ != other.direction_) return false; + if (!getRuleTypeCase().equals(other.getRuleTypeCase())) return false; + switch (ruleTypeCase_) { + case 3: + if (!getDeterministicTransfer().equals(other.getDeterministicTransfer())) return false; + break; + case 4: + if (!getDisablePlannerTransfer().equals(other.getDisablePlannerTransfer())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CHILD_AGENT_FIELD_NUMBER; + hash = (53 * hash) + getChildAgent().hashCode(); + hash = (37 * hash) + DIRECTION_FIELD_NUMBER; + hash = (53 * hash) + direction_; + switch (ruleTypeCase_) { + case 3: + hash = (37 * hash) + DETERMINISTIC_TRANSFER_FIELD_NUMBER; + hash = (53 * hash) + getDeterministicTransfer().hashCode(); + break; + case 4: + hash = (37 * hash) + DISABLE_PLANNER_TRANSFER_FIELD_NUMBER; + hash = (53 * hash) + getDisablePlannerTransfer().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.TransferRule parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.TransferRule parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TransferRule parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.TransferRule parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TransferRule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.TransferRule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TransferRule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.TransferRule parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TransferRule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.TransferRule parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TransferRule parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.TransferRule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.TransferRule prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Rule for transferring to a specific agent.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.TransferRule} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.TransferRule) + com.google.cloud.ces.v1.TransferRuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentTransfersProto + .internal_static_google_cloud_ces_v1_TransferRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentTransfersProto + .internal_static_google_cloud_ces_v1_TransferRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.TransferRule.class, + com.google.cloud.ces.v1.TransferRule.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.TransferRule.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (deterministicTransferBuilder_ != null) { + deterministicTransferBuilder_.clear(); + } + if (disablePlannerTransferBuilder_ != null) { + disablePlannerTransferBuilder_.clear(); + } + childAgent_ = ""; + direction_ = 0; + ruleTypeCase_ = 0; + ruleType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentTransfersProto + .internal_static_google_cloud_ces_v1_TransferRule_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.TransferRule getDefaultInstanceForType() { + return com.google.cloud.ces.v1.TransferRule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.TransferRule build() { + com.google.cloud.ces.v1.TransferRule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.TransferRule buildPartial() { + com.google.cloud.ces.v1.TransferRule result = new com.google.cloud.ces.v1.TransferRule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.TransferRule result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.childAgent_ = childAgent_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.direction_ = direction_; + } + } + + private void buildPartialOneofs(com.google.cloud.ces.v1.TransferRule result) { + result.ruleTypeCase_ = ruleTypeCase_; + result.ruleType_ = this.ruleType_; + if (ruleTypeCase_ == 3 && deterministicTransferBuilder_ != null) { + result.ruleType_ = deterministicTransferBuilder_.build(); + } + if (ruleTypeCase_ == 4 && disablePlannerTransferBuilder_ != null) { + result.ruleType_ = disablePlannerTransferBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.TransferRule) { + return mergeFrom((com.google.cloud.ces.v1.TransferRule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.TransferRule other) { + if (other == com.google.cloud.ces.v1.TransferRule.getDefaultInstance()) return this; + if (!other.getChildAgent().isEmpty()) { + childAgent_ = other.childAgent_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.direction_ != 0) { + setDirectionValue(other.getDirectionValue()); + } + switch (other.getRuleTypeCase()) { + case DETERMINISTIC_TRANSFER: + { + mergeDeterministicTransfer(other.getDeterministicTransfer()); + break; + } + case DISABLE_PLANNER_TRANSFER: + { + mergeDisablePlannerTransfer(other.getDisablePlannerTransfer()); + break; + } + case RULETYPE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + childAgent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 16: + { + direction_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 16 + case 26: + { + input.readMessage( + internalGetDeterministicTransferFieldBuilder().getBuilder(), extensionRegistry); + ruleTypeCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetDisablePlannerTransferFieldBuilder().getBuilder(), + extensionRegistry); + ruleTypeCase_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int ruleTypeCase_ = 0; + private java.lang.Object ruleType_; + + public RuleTypeCase getRuleTypeCase() { + return RuleTypeCase.forNumber(ruleTypeCase_); + } + + public Builder clearRuleType() { + ruleTypeCase_ = 0; + ruleType_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.TransferRule.DeterministicTransfer, + com.google.cloud.ces.v1.TransferRule.DeterministicTransfer.Builder, + com.google.cloud.ces.v1.TransferRule.DeterministicTransferOrBuilder> + deterministicTransferBuilder_; + + /** + * + * + *
      +     * Optional. A rule that immediately transfers to the target agent when the
      +     * condition is met.
      +     * 
      + * + * + * .google.cloud.ces.v1.TransferRule.DeterministicTransfer deterministic_transfer = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deterministicTransfer field is set. + */ + @java.lang.Override + public boolean hasDeterministicTransfer() { + return ruleTypeCase_ == 3; + } + + /** + * + * + *
      +     * Optional. A rule that immediately transfers to the target agent when the
      +     * condition is met.
      +     * 
      + * + * + * .google.cloud.ces.v1.TransferRule.DeterministicTransfer deterministic_transfer = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deterministicTransfer. + */ + @java.lang.Override + public com.google.cloud.ces.v1.TransferRule.DeterministicTransfer getDeterministicTransfer() { + if (deterministicTransferBuilder_ == null) { + if (ruleTypeCase_ == 3) { + return (com.google.cloud.ces.v1.TransferRule.DeterministicTransfer) ruleType_; + } + return com.google.cloud.ces.v1.TransferRule.DeterministicTransfer.getDefaultInstance(); + } else { + if (ruleTypeCase_ == 3) { + return deterministicTransferBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.TransferRule.DeterministicTransfer.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. A rule that immediately transfers to the target agent when the
      +     * condition is met.
      +     * 
      + * + * + * .google.cloud.ces.v1.TransferRule.DeterministicTransfer deterministic_transfer = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDeterministicTransfer( + com.google.cloud.ces.v1.TransferRule.DeterministicTransfer value) { + if (deterministicTransferBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ruleType_ = value; + onChanged(); + } else { + deterministicTransferBuilder_.setMessage(value); + } + ruleTypeCase_ = 3; + return this; + } + + /** + * + * + *
      +     * Optional. A rule that immediately transfers to the target agent when the
      +     * condition is met.
      +     * 
      + * + * + * .google.cloud.ces.v1.TransferRule.DeterministicTransfer deterministic_transfer = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDeterministicTransfer( + com.google.cloud.ces.v1.TransferRule.DeterministicTransfer.Builder builderForValue) { + if (deterministicTransferBuilder_ == null) { + ruleType_ = builderForValue.build(); + onChanged(); + } else { + deterministicTransferBuilder_.setMessage(builderForValue.build()); + } + ruleTypeCase_ = 3; + return this; + } + + /** + * + * + *
      +     * Optional. A rule that immediately transfers to the target agent when the
      +     * condition is met.
      +     * 
      + * + * + * .google.cloud.ces.v1.TransferRule.DeterministicTransfer deterministic_transfer = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDeterministicTransfer( + com.google.cloud.ces.v1.TransferRule.DeterministicTransfer value) { + if (deterministicTransferBuilder_ == null) { + if (ruleTypeCase_ == 3 + && ruleType_ + != com.google.cloud.ces.v1.TransferRule.DeterministicTransfer + .getDefaultInstance()) { + ruleType_ = + com.google.cloud.ces.v1.TransferRule.DeterministicTransfer.newBuilder( + (com.google.cloud.ces.v1.TransferRule.DeterministicTransfer) ruleType_) + .mergeFrom(value) + .buildPartial(); + } else { + ruleType_ = value; + } + onChanged(); + } else { + if (ruleTypeCase_ == 3) { + deterministicTransferBuilder_.mergeFrom(value); + } else { + deterministicTransferBuilder_.setMessage(value); + } + } + ruleTypeCase_ = 3; + return this; + } + + /** + * + * + *
      +     * Optional. A rule that immediately transfers to the target agent when the
      +     * condition is met.
      +     * 
      + * + * + * .google.cloud.ces.v1.TransferRule.DeterministicTransfer deterministic_transfer = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDeterministicTransfer() { + if (deterministicTransferBuilder_ == null) { + if (ruleTypeCase_ == 3) { + ruleTypeCase_ = 0; + ruleType_ = null; + onChanged(); + } + } else { + if (ruleTypeCase_ == 3) { + ruleTypeCase_ = 0; + ruleType_ = null; + } + deterministicTransferBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. A rule that immediately transfers to the target agent when the
      +     * condition is met.
      +     * 
      + * + * + * .google.cloud.ces.v1.TransferRule.DeterministicTransfer deterministic_transfer = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.TransferRule.DeterministicTransfer.Builder + getDeterministicTransferBuilder() { + return internalGetDeterministicTransferFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. A rule that immediately transfers to the target agent when the
      +     * condition is met.
      +     * 
      + * + * + * .google.cloud.ces.v1.TransferRule.DeterministicTransfer deterministic_transfer = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.TransferRule.DeterministicTransferOrBuilder + getDeterministicTransferOrBuilder() { + if ((ruleTypeCase_ == 3) && (deterministicTransferBuilder_ != null)) { + return deterministicTransferBuilder_.getMessageOrBuilder(); + } else { + if (ruleTypeCase_ == 3) { + return (com.google.cloud.ces.v1.TransferRule.DeterministicTransfer) ruleType_; + } + return com.google.cloud.ces.v1.TransferRule.DeterministicTransfer.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. A rule that immediately transfers to the target agent when the
      +     * condition is met.
      +     * 
      + * + * + * .google.cloud.ces.v1.TransferRule.DeterministicTransfer deterministic_transfer = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.TransferRule.DeterministicTransfer, + com.google.cloud.ces.v1.TransferRule.DeterministicTransfer.Builder, + com.google.cloud.ces.v1.TransferRule.DeterministicTransferOrBuilder> + internalGetDeterministicTransferFieldBuilder() { + if (deterministicTransferBuilder_ == null) { + if (!(ruleTypeCase_ == 3)) { + ruleType_ = + com.google.cloud.ces.v1.TransferRule.DeterministicTransfer.getDefaultInstance(); + } + deterministicTransferBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.TransferRule.DeterministicTransfer, + com.google.cloud.ces.v1.TransferRule.DeterministicTransfer.Builder, + com.google.cloud.ces.v1.TransferRule.DeterministicTransferOrBuilder>( + (com.google.cloud.ces.v1.TransferRule.DeterministicTransfer) ruleType_, + getParentForChildren(), + isClean()); + ruleType_ = null; + } + ruleTypeCase_ = 3; + onChanged(); + return deterministicTransferBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer, + com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer.Builder, + com.google.cloud.ces.v1.TransferRule.DisablePlannerTransferOrBuilder> + disablePlannerTransferBuilder_; + + /** + * + * + *
      +     * Optional. Rule that prevents the planner from transferring to the target
      +     * agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.TransferRule.DisablePlannerTransfer disable_planner_transfer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the disablePlannerTransfer field is set. + */ + @java.lang.Override + public boolean hasDisablePlannerTransfer() { + return ruleTypeCase_ == 4; + } + + /** + * + * + *
      +     * Optional. Rule that prevents the planner from transferring to the target
      +     * agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.TransferRule.DisablePlannerTransfer disable_planner_transfer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The disablePlannerTransfer. + */ + @java.lang.Override + public com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer getDisablePlannerTransfer() { + if (disablePlannerTransferBuilder_ == null) { + if (ruleTypeCase_ == 4) { + return (com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer) ruleType_; + } + return com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer.getDefaultInstance(); + } else { + if (ruleTypeCase_ == 4) { + return disablePlannerTransferBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Rule that prevents the planner from transferring to the target
      +     * agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.TransferRule.DisablePlannerTransfer disable_planner_transfer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDisablePlannerTransfer( + com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer value) { + if (disablePlannerTransferBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ruleType_ = value; + onChanged(); + } else { + disablePlannerTransferBuilder_.setMessage(value); + } + ruleTypeCase_ = 4; + return this; + } + + /** + * + * + *
      +     * Optional. Rule that prevents the planner from transferring to the target
      +     * agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.TransferRule.DisablePlannerTransfer disable_planner_transfer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDisablePlannerTransfer( + com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer.Builder builderForValue) { + if (disablePlannerTransferBuilder_ == null) { + ruleType_ = builderForValue.build(); + onChanged(); + } else { + disablePlannerTransferBuilder_.setMessage(builderForValue.build()); + } + ruleTypeCase_ = 4; + return this; + } + + /** + * + * + *
      +     * Optional. Rule that prevents the planner from transferring to the target
      +     * agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.TransferRule.DisablePlannerTransfer disable_planner_transfer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDisablePlannerTransfer( + com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer value) { + if (disablePlannerTransferBuilder_ == null) { + if (ruleTypeCase_ == 4 + && ruleType_ + != com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer + .getDefaultInstance()) { + ruleType_ = + com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer.newBuilder( + (com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer) ruleType_) + .mergeFrom(value) + .buildPartial(); + } else { + ruleType_ = value; + } + onChanged(); + } else { + if (ruleTypeCase_ == 4) { + disablePlannerTransferBuilder_.mergeFrom(value); + } else { + disablePlannerTransferBuilder_.setMessage(value); + } + } + ruleTypeCase_ = 4; + return this; + } + + /** + * + * + *
      +     * Optional. Rule that prevents the planner from transferring to the target
      +     * agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.TransferRule.DisablePlannerTransfer disable_planner_transfer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDisablePlannerTransfer() { + if (disablePlannerTransferBuilder_ == null) { + if (ruleTypeCase_ == 4) { + ruleTypeCase_ = 0; + ruleType_ = null; + onChanged(); + } + } else { + if (ruleTypeCase_ == 4) { + ruleTypeCase_ = 0; + ruleType_ = null; + } + disablePlannerTransferBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Rule that prevents the planner from transferring to the target
      +     * agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.TransferRule.DisablePlannerTransfer disable_planner_transfer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer.Builder + getDisablePlannerTransferBuilder() { + return internalGetDisablePlannerTransferFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Rule that prevents the planner from transferring to the target
      +     * agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.TransferRule.DisablePlannerTransfer disable_planner_transfer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.TransferRule.DisablePlannerTransferOrBuilder + getDisablePlannerTransferOrBuilder() { + if ((ruleTypeCase_ == 4) && (disablePlannerTransferBuilder_ != null)) { + return disablePlannerTransferBuilder_.getMessageOrBuilder(); + } else { + if (ruleTypeCase_ == 4) { + return (com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer) ruleType_; + } + return com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Rule that prevents the planner from transferring to the target
      +     * agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.TransferRule.DisablePlannerTransfer disable_planner_transfer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer, + com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer.Builder, + com.google.cloud.ces.v1.TransferRule.DisablePlannerTransferOrBuilder> + internalGetDisablePlannerTransferFieldBuilder() { + if (disablePlannerTransferBuilder_ == null) { + if (!(ruleTypeCase_ == 4)) { + ruleType_ = + com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer.getDefaultInstance(); + } + disablePlannerTransferBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer, + com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer.Builder, + com.google.cloud.ces.v1.TransferRule.DisablePlannerTransferOrBuilder>( + (com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer) ruleType_, + getParentForChildren(), + isClean()); + ruleType_ = null; + } + ruleTypeCase_ = 4; + onChanged(); + return disablePlannerTransferBuilder_; + } + + private java.lang.Object childAgent_ = ""; + + /** + * + * + *
      +     * Required. The resource name of the child agent the rule applies to.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * string child_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The childAgent. + */ + public java.lang.String getChildAgent() { + java.lang.Object ref = childAgent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + childAgent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the child agent the rule applies to.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * string child_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for childAgent. + */ + public com.google.protobuf.ByteString getChildAgentBytes() { + java.lang.Object ref = childAgent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + childAgent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The resource name of the child agent the rule applies to.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * string child_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The childAgent to set. + * @return This builder for chaining. + */ + public Builder setChildAgent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + childAgent_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the child agent the rule applies to.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * string child_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearChildAgent() { + childAgent_ = getDefaultInstance().getChildAgent(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The resource name of the child agent the rule applies to.
      +     * Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * string child_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for childAgent to set. + * @return This builder for chaining. + */ + public Builder setChildAgentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + childAgent_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int direction_ = 0; + + /** + * + * + *
      +     * Required. The direction of the transfer.
      +     * 
      + * + * + * .google.cloud.ces.v1.TransferRule.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for direction. + */ + @java.lang.Override + public int getDirectionValue() { + return direction_; + } + + /** + * + * + *
      +     * Required. The direction of the transfer.
      +     * 
      + * + * + * .google.cloud.ces.v1.TransferRule.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for direction to set. + * @return This builder for chaining. + */ + public Builder setDirectionValue(int value) { + direction_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The direction of the transfer.
      +     * 
      + * + * + * .google.cloud.ces.v1.TransferRule.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The direction. + */ + @java.lang.Override + public com.google.cloud.ces.v1.TransferRule.Direction getDirection() { + com.google.cloud.ces.v1.TransferRule.Direction result = + com.google.cloud.ces.v1.TransferRule.Direction.forNumber(direction_); + return result == null ? com.google.cloud.ces.v1.TransferRule.Direction.UNRECOGNIZED : result; + } + + /** + * + * + *
      +     * Required. The direction of the transfer.
      +     * 
      + * + * + * .google.cloud.ces.v1.TransferRule.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The direction to set. + * @return This builder for chaining. + */ + public Builder setDirection(com.google.cloud.ces.v1.TransferRule.Direction value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + direction_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The direction of the transfer.
      +     * 
      + * + * + * .google.cloud.ces.v1.TransferRule.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearDirection() { + bitField0_ = (bitField0_ & ~0x00000008); + direction_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.TransferRule) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.TransferRule) + private static final com.google.cloud.ces.v1.TransferRule DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.TransferRule(); + } + + public static com.google.cloud.ces.v1.TransferRule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TransferRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.TransferRule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/TransferRuleOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/TransferRuleOrBuilder.java new file mode 100644 index 000000000000..2e7fb3503a34 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/TransferRuleOrBuilder.java @@ -0,0 +1,188 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_transfers.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface TransferRuleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.TransferRule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. A rule that immediately transfers to the target agent when the
      +   * condition is met.
      +   * 
      + * + * + * .google.cloud.ces.v1.TransferRule.DeterministicTransfer deterministic_transfer = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deterministicTransfer field is set. + */ + boolean hasDeterministicTransfer(); + + /** + * + * + *
      +   * Optional. A rule that immediately transfers to the target agent when the
      +   * condition is met.
      +   * 
      + * + * + * .google.cloud.ces.v1.TransferRule.DeterministicTransfer deterministic_transfer = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deterministicTransfer. + */ + com.google.cloud.ces.v1.TransferRule.DeterministicTransfer getDeterministicTransfer(); + + /** + * + * + *
      +   * Optional. A rule that immediately transfers to the target agent when the
      +   * condition is met.
      +   * 
      + * + * + * .google.cloud.ces.v1.TransferRule.DeterministicTransfer deterministic_transfer = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.TransferRule.DeterministicTransferOrBuilder + getDeterministicTransferOrBuilder(); + + /** + * + * + *
      +   * Optional. Rule that prevents the planner from transferring to the target
      +   * agent.
      +   * 
      + * + * + * .google.cloud.ces.v1.TransferRule.DisablePlannerTransfer disable_planner_transfer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the disablePlannerTransfer field is set. + */ + boolean hasDisablePlannerTransfer(); + + /** + * + * + *
      +   * Optional. Rule that prevents the planner from transferring to the target
      +   * agent.
      +   * 
      + * + * + * .google.cloud.ces.v1.TransferRule.DisablePlannerTransfer disable_planner_transfer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The disablePlannerTransfer. + */ + com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer getDisablePlannerTransfer(); + + /** + * + * + *
      +   * Optional. Rule that prevents the planner from transferring to the target
      +   * agent.
      +   * 
      + * + * + * .google.cloud.ces.v1.TransferRule.DisablePlannerTransfer disable_planner_transfer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.TransferRule.DisablePlannerTransferOrBuilder + getDisablePlannerTransferOrBuilder(); + + /** + * + * + *
      +   * Required. The resource name of the child agent the rule applies to.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +   * 
      + * + * + * string child_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The childAgent. + */ + java.lang.String getChildAgent(); + + /** + * + * + *
      +   * Required. The resource name of the child agent the rule applies to.
      +   * Format:
      +   * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +   * 
      + * + * + * string child_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for childAgent. + */ + com.google.protobuf.ByteString getChildAgentBytes(); + + /** + * + * + *
      +   * Required. The direction of the transfer.
      +   * 
      + * + * + * .google.cloud.ces.v1.TransferRule.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for direction. + */ + int getDirectionValue(); + + /** + * + * + *
      +   * Required. The direction of the transfer.
      +   * 
      + * + * + * .google.cloud.ces.v1.TransferRule.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The direction. + */ + com.google.cloud.ces.v1.TransferRule.Direction getDirection(); + + com.google.cloud.ces.v1.TransferRule.RuleTypeCase getRuleTypeCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/TriggerAction.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/TriggerAction.java new file mode 100644 index 000000000000..b9d57d364ff2 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/TriggerAction.java @@ -0,0 +1,4521 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/common.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Action that is taken when a certain precondition is met.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.TriggerAction} + */ +@com.google.protobuf.Generated +public final class TriggerAction extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.TriggerAction) + TriggerActionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TriggerAction"); + } + + // Use TriggerAction.newBuilder() to construct. + private TriggerAction(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TriggerAction() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TriggerAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TriggerAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.TriggerAction.class, + com.google.cloud.ces.v1.TriggerAction.Builder.class); + } + + public interface ResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.TriggerAction.Response) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Required. Text for the agent to respond with.
      +     * 
      + * + * string text = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The text. + */ + java.lang.String getText(); + + /** + * + * + *
      +     * Required. Text for the agent to respond with.
      +     * 
      + * + * string text = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); + + /** + * + * + *
      +     * Optional. Whether the response is disabled. Disabled responses are not
      +     * used by the agent.
      +     * 
      + * + * bool disabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + boolean getDisabled(); + } + + /** + * + * + *
      +   * Represents a response from the agent.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.TriggerAction.Response} + */ + public static final class Response extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.TriggerAction.Response) + ResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Response"); + } + + // Use Response.newBuilder() to construct. + private Response(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Response() { + text_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TriggerAction_Response_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TriggerAction_Response_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.TriggerAction.Response.class, + com.google.cloud.ces.v1.TriggerAction.Response.Builder.class); + } + + public static final int TEXT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object text_ = ""; + + /** + * + * + *
      +     * Required. Text for the agent to respond with.
      +     * 
      + * + * string text = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } + } + + /** + * + * + *
      +     * Required. Text for the agent to respond with.
      +     * 
      + * + * string text = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISABLED_FIELD_NUMBER = 2; + private boolean disabled_ = false; + + /** + * + * + *
      +     * Optional. Whether the response is disabled. Disabled responses are not
      +     * used by the agent.
      +     * 
      + * + * bool disabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, text_); + } + if (disabled_ != false) { + output.writeBool(2, disabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, text_); + } + if (disabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, disabled_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.TriggerAction.Response)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.TriggerAction.Response other = + (com.google.cloud.ces.v1.TriggerAction.Response) obj; + + if (!getText().equals(other.getText())) return false; + if (getDisabled() != other.getDisabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + hash = (37 * hash) + DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.TriggerAction.Response parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.TriggerAction.Response parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TriggerAction.Response parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.TriggerAction.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.cloud.ces.v1.TriggerAction.Response parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.TriggerAction.Response parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TriggerAction.Response parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.TriggerAction.Response parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TriggerAction.Response parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.TriggerAction.Response parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TriggerAction.Response parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.TriggerAction.Response parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.TriggerAction.Response prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Represents a response from the agent.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.TriggerAction.Response} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.TriggerAction.Response) + com.google.cloud.ces.v1.TriggerAction.ResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TriggerAction_Response_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TriggerAction_Response_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.TriggerAction.Response.class, + com.google.cloud.ces.v1.TriggerAction.Response.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.TriggerAction.Response.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + text_ = ""; + disabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TriggerAction_Response_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction.Response getDefaultInstanceForType() { + return com.google.cloud.ces.v1.TriggerAction.Response.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction.Response build() { + com.google.cloud.ces.v1.TriggerAction.Response result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction.Response buildPartial() { + com.google.cloud.ces.v1.TriggerAction.Response result = + new com.google.cloud.ces.v1.TriggerAction.Response(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.TriggerAction.Response result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.text_ = text_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.disabled_ = disabled_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.TriggerAction.Response) { + return mergeFrom((com.google.cloud.ces.v1.TriggerAction.Response) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.TriggerAction.Response other) { + if (other == com.google.cloud.ces.v1.TriggerAction.Response.getDefaultInstance()) + return this; + if (!other.getText().isEmpty()) { + text_ = other.text_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + text_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + disabled_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object text_ = ""; + + /** + * + * + *
      +       * Required. Text for the agent to respond with.
      +       * 
      + * + * string text = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = text_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Required. Text for the agent to respond with.
      +       * 
      + * + * string text = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for text. + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Required. Text for the agent to respond with.
      +       * 
      + * + * string text = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + text_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. Text for the agent to respond with.
      +       * 
      + * + * string text = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearText() { + text_ = getDefaultInstance().getText(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. Text for the agent to respond with.
      +       * 
      + * + * string text = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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(); + } + checkByteStringIsUtf8(value); + text_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean disabled_; + + /** + * + * + *
      +       * Optional. Whether the response is disabled. Disabled responses are not
      +       * used by the agent.
      +       * 
      + * + * bool disabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + + /** + * + * + *
      +       * Optional. Whether the response is disabled. Disabled responses are not
      +       * used by the agent.
      +       * 
      + * + * bool disabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. Whether the response is disabled. Disabled responses are not
      +       * used by the agent.
      +       * 
      + * + * bool disabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + bitField0_ = (bitField0_ & ~0x00000002); + disabled_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.TriggerAction.Response) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.TriggerAction.Response) + private static final com.google.cloud.ces.v1.TriggerAction.Response DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.TriggerAction.Response(); + } + + public static com.google.cloud.ces.v1.TriggerAction.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(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction.Response getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface RespondImmediatelyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.TriggerAction.RespondImmediately) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Required. The canned responses for the agent to choose from. The response
      +     * is chosen randomly.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TriggerAction.Response responses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getResponsesList(); + + /** + * + * + *
      +     * Required. The canned responses for the agent to choose from. The response
      +     * is chosen randomly.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TriggerAction.Response responses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.TriggerAction.Response getResponses(int index); + + /** + * + * + *
      +     * Required. The canned responses for the agent to choose from. The response
      +     * is chosen randomly.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TriggerAction.Response responses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getResponsesCount(); + + /** + * + * + *
      +     * Required. The canned responses for the agent to choose from. The response
      +     * is chosen randomly.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TriggerAction.Response responses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getResponsesOrBuilderList(); + + /** + * + * + *
      +     * Required. The canned responses for the agent to choose from. The response
      +     * is chosen randomly.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TriggerAction.Response responses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.TriggerAction.ResponseOrBuilder getResponsesOrBuilder(int index); + } + + /** + * + * + *
      +   * The agent will immediately respond with a preconfigured response.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.TriggerAction.RespondImmediately} + */ + public static final class RespondImmediately extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.TriggerAction.RespondImmediately) + RespondImmediatelyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RespondImmediately"); + } + + // Use RespondImmediately.newBuilder() to construct. + private RespondImmediately(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RespondImmediately() { + responses_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TriggerAction_RespondImmediately_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TriggerAction_RespondImmediately_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.TriggerAction.RespondImmediately.class, + com.google.cloud.ces.v1.TriggerAction.RespondImmediately.Builder.class); + } + + public static final int RESPONSES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List responses_; + + /** + * + * + *
      +     * Required. The canned responses for the agent to choose from. The response
      +     * is chosen randomly.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TriggerAction.Response responses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getResponsesList() { + return responses_; + } + + /** + * + * + *
      +     * Required. The canned responses for the agent to choose from. The response
      +     * is chosen randomly.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TriggerAction.Response responses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getResponsesOrBuilderList() { + return responses_; + } + + /** + * + * + *
      +     * Required. The canned responses for the agent to choose from. The response
      +     * is chosen randomly.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TriggerAction.Response responses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getResponsesCount() { + return responses_.size(); + } + + /** + * + * + *
      +     * Required. The canned responses for the agent to choose from. The response
      +     * is chosen randomly.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TriggerAction.Response responses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction.Response getResponses(int index) { + return responses_.get(index); + } + + /** + * + * + *
      +     * Required. The canned responses for the agent to choose from. The response
      +     * is chosen randomly.
      +     * 
      + * + * + * repeated .google.cloud.ces.v1.TriggerAction.Response responses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction.ResponseOrBuilder getResponsesOrBuilder( + int index) { + return responses_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < responses_.size(); i++) { + output.writeMessage(1, responses_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < responses_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, responses_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.TriggerAction.RespondImmediately)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.TriggerAction.RespondImmediately other = + (com.google.cloud.ces.v1.TriggerAction.RespondImmediately) obj; + + if (!getResponsesList().equals(other.getResponsesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getResponsesCount() > 0) { + hash = (37 * hash) + RESPONSES_FIELD_NUMBER; + hash = (53 * hash) + getResponsesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.TriggerAction.RespondImmediately parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.TriggerAction.RespondImmediately parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TriggerAction.RespondImmediately parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.TriggerAction.RespondImmediately parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TriggerAction.RespondImmediately parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.TriggerAction.RespondImmediately parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TriggerAction.RespondImmediately parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.TriggerAction.RespondImmediately parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TriggerAction.RespondImmediately parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.TriggerAction.RespondImmediately parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TriggerAction.RespondImmediately parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.TriggerAction.RespondImmediately parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.TriggerAction.RespondImmediately prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * The agent will immediately respond with a preconfigured response.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.TriggerAction.RespondImmediately} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.TriggerAction.RespondImmediately) + com.google.cloud.ces.v1.TriggerAction.RespondImmediatelyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TriggerAction_RespondImmediately_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TriggerAction_RespondImmediately_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.TriggerAction.RespondImmediately.class, + com.google.cloud.ces.v1.TriggerAction.RespondImmediately.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.TriggerAction.RespondImmediately.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (responsesBuilder_ == null) { + responses_ = java.util.Collections.emptyList(); + } else { + responses_ = null; + responsesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TriggerAction_RespondImmediately_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction.RespondImmediately getDefaultInstanceForType() { + return com.google.cloud.ces.v1.TriggerAction.RespondImmediately.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction.RespondImmediately build() { + com.google.cloud.ces.v1.TriggerAction.RespondImmediately result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction.RespondImmediately buildPartial() { + com.google.cloud.ces.v1.TriggerAction.RespondImmediately result = + new com.google.cloud.ces.v1.TriggerAction.RespondImmediately(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.ces.v1.TriggerAction.RespondImmediately result) { + if (responsesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + responses_ = java.util.Collections.unmodifiableList(responses_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.responses_ = responses_; + } else { + result.responses_ = responsesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1.TriggerAction.RespondImmediately result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.TriggerAction.RespondImmediately) { + return mergeFrom((com.google.cloud.ces.v1.TriggerAction.RespondImmediately) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.TriggerAction.RespondImmediately other) { + if (other == com.google.cloud.ces.v1.TriggerAction.RespondImmediately.getDefaultInstance()) + return this; + if (responsesBuilder_ == null) { + if (!other.responses_.isEmpty()) { + if (responses_.isEmpty()) { + responses_ = other.responses_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResponsesIsMutable(); + responses_.addAll(other.responses_); + } + onChanged(); + } + } else { + if (!other.responses_.isEmpty()) { + if (responsesBuilder_.isEmpty()) { + responsesBuilder_.dispose(); + responsesBuilder_ = null; + responses_ = other.responses_; + bitField0_ = (bitField0_ & ~0x00000001); + responsesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetResponsesFieldBuilder() + : null; + } else { + responsesBuilder_.addAllMessages(other.responses_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.ces.v1.TriggerAction.Response m = + input.readMessage( + com.google.cloud.ces.v1.TriggerAction.Response.parser(), + extensionRegistry); + if (responsesBuilder_ == null) { + ensureResponsesIsMutable(); + responses_.add(m); + } else { + responsesBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List responses_ = + java.util.Collections.emptyList(); + + private void ensureResponsesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + responses_ = + new java.util.ArrayList(responses_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.TriggerAction.Response, + com.google.cloud.ces.v1.TriggerAction.Response.Builder, + com.google.cloud.ces.v1.TriggerAction.ResponseOrBuilder> + responsesBuilder_; + + /** + * + * + *
      +       * Required. The canned responses for the agent to choose from. The response
      +       * is chosen randomly.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.TriggerAction.Response responses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getResponsesList() { + if (responsesBuilder_ == null) { + return java.util.Collections.unmodifiableList(responses_); + } else { + return responsesBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +       * Required. The canned responses for the agent to choose from. The response
      +       * is chosen randomly.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.TriggerAction.Response responses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getResponsesCount() { + if (responsesBuilder_ == null) { + return responses_.size(); + } else { + return responsesBuilder_.getCount(); + } + } + + /** + * + * + *
      +       * Required. The canned responses for the agent to choose from. The response
      +       * is chosen randomly.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.TriggerAction.Response responses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.TriggerAction.Response getResponses(int index) { + if (responsesBuilder_ == null) { + return responses_.get(index); + } else { + return responsesBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +       * Required. The canned responses for the agent to choose from. The response
      +       * is chosen randomly.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.TriggerAction.Response responses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setResponses(int index, com.google.cloud.ces.v1.TriggerAction.Response value) { + if (responsesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponsesIsMutable(); + responses_.set(index, value); + onChanged(); + } else { + responsesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +       * Required. The canned responses for the agent to choose from. The response
      +       * is chosen randomly.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.TriggerAction.Response responses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setResponses( + int index, com.google.cloud.ces.v1.TriggerAction.Response.Builder builderForValue) { + if (responsesBuilder_ == null) { + ensureResponsesIsMutable(); + responses_.set(index, builderForValue.build()); + onChanged(); + } else { + responsesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +       * Required. The canned responses for the agent to choose from. The response
      +       * is chosen randomly.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.TriggerAction.Response responses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addResponses(com.google.cloud.ces.v1.TriggerAction.Response value) { + if (responsesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponsesIsMutable(); + responses_.add(value); + onChanged(); + } else { + responsesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +       * Required. The canned responses for the agent to choose from. The response
      +       * is chosen randomly.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.TriggerAction.Response responses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addResponses(int index, com.google.cloud.ces.v1.TriggerAction.Response value) { + if (responsesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponsesIsMutable(); + responses_.add(index, value); + onChanged(); + } else { + responsesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +       * Required. The canned responses for the agent to choose from. The response
      +       * is chosen randomly.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.TriggerAction.Response responses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addResponses( + com.google.cloud.ces.v1.TriggerAction.Response.Builder builderForValue) { + if (responsesBuilder_ == null) { + ensureResponsesIsMutable(); + responses_.add(builderForValue.build()); + onChanged(); + } else { + responsesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +       * Required. The canned responses for the agent to choose from. The response
      +       * is chosen randomly.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.TriggerAction.Response responses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addResponses( + int index, com.google.cloud.ces.v1.TriggerAction.Response.Builder builderForValue) { + if (responsesBuilder_ == null) { + ensureResponsesIsMutable(); + responses_.add(index, builderForValue.build()); + onChanged(); + } else { + responsesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +       * Required. The canned responses for the agent to choose from. The response
      +       * is chosen randomly.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.TriggerAction.Response responses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllResponses( + java.lang.Iterable values) { + if (responsesBuilder_ == null) { + ensureResponsesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_); + onChanged(); + } else { + responsesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +       * Required. The canned responses for the agent to choose from. The response
      +       * is chosen randomly.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.TriggerAction.Response responses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearResponses() { + if (responsesBuilder_ == null) { + responses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + responsesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +       * Required. The canned responses for the agent to choose from. The response
      +       * is chosen randomly.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.TriggerAction.Response responses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeResponses(int index) { + if (responsesBuilder_ == null) { + ensureResponsesIsMutable(); + responses_.remove(index); + onChanged(); + } else { + responsesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +       * Required. The canned responses for the agent to choose from. The response
      +       * is chosen randomly.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.TriggerAction.Response responses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.TriggerAction.Response.Builder getResponsesBuilder(int index) { + return internalGetResponsesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +       * Required. The canned responses for the agent to choose from. The response
      +       * is chosen randomly.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.TriggerAction.Response responses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.TriggerAction.ResponseOrBuilder getResponsesOrBuilder( + int index) { + if (responsesBuilder_ == null) { + return responses_.get(index); + } else { + return responsesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +       * Required. The canned responses for the agent to choose from. The response
      +       * is chosen randomly.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.TriggerAction.Response responses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getResponsesOrBuilderList() { + if (responsesBuilder_ != null) { + return responsesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(responses_); + } + } + + /** + * + * + *
      +       * Required. The canned responses for the agent to choose from. The response
      +       * is chosen randomly.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.TriggerAction.Response responses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.TriggerAction.Response.Builder addResponsesBuilder() { + return internalGetResponsesFieldBuilder() + .addBuilder(com.google.cloud.ces.v1.TriggerAction.Response.getDefaultInstance()); + } + + /** + * + * + *
      +       * Required. The canned responses for the agent to choose from. The response
      +       * is chosen randomly.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.TriggerAction.Response responses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.TriggerAction.Response.Builder addResponsesBuilder(int index) { + return internalGetResponsesFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1.TriggerAction.Response.getDefaultInstance()); + } + + /** + * + * + *
      +       * Required. The canned responses for the agent to choose from. The response
      +       * is chosen randomly.
      +       * 
      + * + * + * repeated .google.cloud.ces.v1.TriggerAction.Response responses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getResponsesBuilderList() { + return internalGetResponsesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.TriggerAction.Response, + com.google.cloud.ces.v1.TriggerAction.Response.Builder, + com.google.cloud.ces.v1.TriggerAction.ResponseOrBuilder> + internalGetResponsesFieldBuilder() { + if (responsesBuilder_ == null) { + responsesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1.TriggerAction.Response, + com.google.cloud.ces.v1.TriggerAction.Response.Builder, + com.google.cloud.ces.v1.TriggerAction.ResponseOrBuilder>( + responses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + responses_ = null; + } + return responsesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.TriggerAction.RespondImmediately) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.TriggerAction.RespondImmediately) + private static final com.google.cloud.ces.v1.TriggerAction.RespondImmediately DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.TriggerAction.RespondImmediately(); + } + + public static com.google.cloud.ces.v1.TriggerAction.RespondImmediately getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RespondImmediately parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction.RespondImmediately getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface GenerativeAnswerOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.TriggerAction.GenerativeAnswer) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Required. The prompt to use for the generative answer.
      +     * 
      + * + * string prompt = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The prompt. + */ + java.lang.String getPrompt(); + + /** + * + * + *
      +     * Required. The prompt to use for the generative answer.
      +     * 
      + * + * string prompt = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for prompt. + */ + com.google.protobuf.ByteString getPromptBytes(); + } + + /** + * + * + *
      +   * The agent will immediately respond with a generative answer.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.TriggerAction.GenerativeAnswer} + */ + public static final class GenerativeAnswer extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.TriggerAction.GenerativeAnswer) + GenerativeAnswerOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GenerativeAnswer"); + } + + // Use GenerativeAnswer.newBuilder() to construct. + private GenerativeAnswer(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerativeAnswer() { + prompt_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TriggerAction_GenerativeAnswer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TriggerAction_GenerativeAnswer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer.class, + com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer.Builder.class); + } + + public static final int PROMPT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object prompt_ = ""; + + /** + * + * + *
      +     * Required. The prompt to use for the generative answer.
      +     * 
      + * + * string prompt = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The prompt. + */ + @java.lang.Override + public java.lang.String getPrompt() { + java.lang.Object ref = prompt_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prompt_ = s; + return s; + } + } + + /** + * + * + *
      +     * Required. The prompt to use for the generative answer.
      +     * 
      + * + * string prompt = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for prompt. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPromptBytes() { + java.lang.Object ref = prompt_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + prompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(prompt_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, prompt_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(prompt_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, prompt_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer other = + (com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer) obj; + + if (!getPrompt().equals(other.getPrompt())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROMPT_FIELD_NUMBER; + hash = (53 * hash) + getPrompt().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * The agent will immediately respond with a generative answer.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.TriggerAction.GenerativeAnswer} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.TriggerAction.GenerativeAnswer) + com.google.cloud.ces.v1.TriggerAction.GenerativeAnswerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TriggerAction_GenerativeAnswer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TriggerAction_GenerativeAnswer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer.class, + com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + prompt_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TriggerAction_GenerativeAnswer_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer getDefaultInstanceForType() { + return com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer build() { + com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer buildPartial() { + com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer result = + new com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.prompt_ = prompt_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer) { + return mergeFrom((com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer other) { + if (other == com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer.getDefaultInstance()) + return this; + if (!other.getPrompt().isEmpty()) { + prompt_ = other.prompt_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + prompt_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object prompt_ = ""; + + /** + * + * + *
      +       * Required. The prompt to use for the generative answer.
      +       * 
      + * + * string prompt = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The prompt. + */ + public java.lang.String getPrompt() { + java.lang.Object ref = prompt_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prompt_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Required. The prompt to use for the generative answer.
      +       * 
      + * + * string prompt = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for prompt. + */ + public com.google.protobuf.ByteString getPromptBytes() { + java.lang.Object ref = prompt_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + prompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Required. The prompt to use for the generative answer.
      +       * 
      + * + * string prompt = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The prompt to set. + * @return This builder for chaining. + */ + public Builder setPrompt(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + prompt_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. The prompt to use for the generative answer.
      +       * 
      + * + * string prompt = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPrompt() { + prompt_ = getDefaultInstance().getPrompt(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. The prompt to use for the generative answer.
      +       * 
      + * + * string prompt = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for prompt to set. + * @return This builder for chaining. + */ + public Builder setPromptBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + prompt_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.TriggerAction.GenerativeAnswer) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.TriggerAction.GenerativeAnswer) + private static final com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer(); + } + + public static com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerativeAnswer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface TransferAgentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.TriggerAction.TransferAgent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Required. The name of the agent to transfer the conversation to. The
      +     * agent must be in the same app as the current agent. Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The agent. + */ + java.lang.String getAgent(); + + /** + * + * + *
      +     * Required. The name of the agent to transfer the conversation to. The
      +     * agent must be in the same app as the current agent. Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for agent. + */ + com.google.protobuf.ByteString getAgentBytes(); + } + + /** + * + * + *
      +   * The agent will transfer the conversation to a different agent.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.TriggerAction.TransferAgent} + */ + public static final class TransferAgent extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.TriggerAction.TransferAgent) + TransferAgentOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TransferAgent"); + } + + // Use TransferAgent.newBuilder() to construct. + private TransferAgent(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TransferAgent() { + agent_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TriggerAction_TransferAgent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TriggerAction_TransferAgent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.TriggerAction.TransferAgent.class, + com.google.cloud.ces.v1.TriggerAction.TransferAgent.Builder.class); + } + + public static final int AGENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object agent_ = ""; + + /** + * + * + *
      +     * Required. The name of the agent to transfer the conversation to. The
      +     * agent must be in the same app as the current agent. Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The agent. + */ + @java.lang.Override + public java.lang.String getAgent() { + java.lang.Object ref = agent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agent_ = s; + return s; + } + } + + /** + * + * + *
      +     * Required. The name of the agent to transfer the conversation to. The
      +     * agent must be in the same app as the current agent. Format:
      +     * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +     * 
      + * + * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for agent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAgentBytes() { + java.lang.Object ref = agent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, agent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, agent_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.TriggerAction.TransferAgent)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.TriggerAction.TransferAgent other = + (com.google.cloud.ces.v1.TriggerAction.TransferAgent) obj; + + if (!getAgent().equals(other.getAgent())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + AGENT_FIELD_NUMBER; + hash = (53 * hash) + getAgent().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.TriggerAction.TransferAgent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.TriggerAction.TransferAgent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TriggerAction.TransferAgent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.TriggerAction.TransferAgent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TriggerAction.TransferAgent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.TriggerAction.TransferAgent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TriggerAction.TransferAgent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.TriggerAction.TransferAgent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TriggerAction.TransferAgent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.TriggerAction.TransferAgent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TriggerAction.TransferAgent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.TriggerAction.TransferAgent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1.TriggerAction.TransferAgent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * The agent will transfer the conversation to a different agent.
      +     * 
      + * + * Protobuf type {@code google.cloud.ces.v1.TriggerAction.TransferAgent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.TriggerAction.TransferAgent) + com.google.cloud.ces.v1.TriggerAction.TransferAgentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TriggerAction_TransferAgent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TriggerAction_TransferAgent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.TriggerAction.TransferAgent.class, + com.google.cloud.ces.v1.TriggerAction.TransferAgent.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.TriggerAction.TransferAgent.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + agent_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TriggerAction_TransferAgent_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction.TransferAgent getDefaultInstanceForType() { + return com.google.cloud.ces.v1.TriggerAction.TransferAgent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction.TransferAgent build() { + com.google.cloud.ces.v1.TriggerAction.TransferAgent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction.TransferAgent buildPartial() { + com.google.cloud.ces.v1.TriggerAction.TransferAgent result = + new com.google.cloud.ces.v1.TriggerAction.TransferAgent(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.TriggerAction.TransferAgent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.agent_ = agent_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.TriggerAction.TransferAgent) { + return mergeFrom((com.google.cloud.ces.v1.TriggerAction.TransferAgent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.TriggerAction.TransferAgent other) { + if (other == com.google.cloud.ces.v1.TriggerAction.TransferAgent.getDefaultInstance()) + return this; + if (!other.getAgent().isEmpty()) { + agent_ = other.agent_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + agent_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object agent_ = ""; + + /** + * + * + *
      +       * Required. The name of the agent to transfer the conversation to. The
      +       * agent must be in the same app as the current agent. Format:
      +       * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +       * 
      + * + * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The agent. + */ + public java.lang.String getAgent() { + java.lang.Object ref = agent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Required. The name of the agent to transfer the conversation to. The
      +       * agent must be in the same app as the current agent. Format:
      +       * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +       * 
      + * + * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for agent. + */ + public com.google.protobuf.ByteString getAgentBytes() { + java.lang.Object ref = agent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Required. The name of the agent to transfer the conversation to. The
      +       * agent must be in the same app as the current agent. Format:
      +       * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +       * 
      + * + * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The agent to set. + * @return This builder for chaining. + */ + public Builder setAgent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + agent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. The name of the agent to transfer the conversation to. The
      +       * agent must be in the same app as the current agent. Format:
      +       * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +       * 
      + * + * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAgent() { + agent_ = getDefaultInstance().getAgent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Required. The name of the agent to transfer the conversation to. The
      +       * agent must be in the same app as the current agent. Format:
      +       * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      +       * 
      + * + * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for agent to set. + * @return This builder for chaining. + */ + public Builder setAgentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + agent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.TriggerAction.TransferAgent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.TriggerAction.TransferAgent) + private static final com.google.cloud.ces.v1.TriggerAction.TransferAgent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.TriggerAction.TransferAgent(); + } + + public static com.google.cloud.ces.v1.TriggerAction.TransferAgent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TransferAgent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction.TransferAgent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int actionCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object action_; + + public enum ActionCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + RESPOND_IMMEDIATELY(1), + TRANSFER_AGENT(2), + GENERATIVE_ANSWER(3), + ACTION_NOT_SET(0); + private final int value; + + private ActionCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ActionCase valueOf(int value) { + return forNumber(value); + } + + public static ActionCase forNumber(int value) { + switch (value) { + case 1: + return RESPOND_IMMEDIATELY; + case 2: + return TRANSFER_AGENT; + case 3: + return GENERATIVE_ANSWER; + case 0: + return ACTION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ActionCase getActionCase() { + return ActionCase.forNumber(actionCase_); + } + + public static final int RESPOND_IMMEDIATELY_FIELD_NUMBER = 1; + + /** + * + * + *
      +   * Optional. Immediately respond with a preconfigured response.
      +   * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.RespondImmediately respond_immediately = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the respondImmediately field is set. + */ + @java.lang.Override + public boolean hasRespondImmediately() { + return actionCase_ == 1; + } + + /** + * + * + *
      +   * Optional. Immediately respond with a preconfigured response.
      +   * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.RespondImmediately respond_immediately = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The respondImmediately. + */ + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction.RespondImmediately getRespondImmediately() { + if (actionCase_ == 1) { + return (com.google.cloud.ces.v1.TriggerAction.RespondImmediately) action_; + } + return com.google.cloud.ces.v1.TriggerAction.RespondImmediately.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Immediately respond with a preconfigured response.
      +   * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.RespondImmediately respond_immediately = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction.RespondImmediatelyOrBuilder + getRespondImmediatelyOrBuilder() { + if (actionCase_ == 1) { + return (com.google.cloud.ces.v1.TriggerAction.RespondImmediately) action_; + } + return com.google.cloud.ces.v1.TriggerAction.RespondImmediately.getDefaultInstance(); + } + + public static final int TRANSFER_AGENT_FIELD_NUMBER = 2; + + /** + * + * + *
      +   * Optional. Transfer the conversation to a different agent.
      +   * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.TransferAgent transfer_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the transferAgent field is set. + */ + @java.lang.Override + public boolean hasTransferAgent() { + return actionCase_ == 2; + } + + /** + * + * + *
      +   * Optional. Transfer the conversation to a different agent.
      +   * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.TransferAgent transfer_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The transferAgent. + */ + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction.TransferAgent getTransferAgent() { + if (actionCase_ == 2) { + return (com.google.cloud.ces.v1.TriggerAction.TransferAgent) action_; + } + return com.google.cloud.ces.v1.TriggerAction.TransferAgent.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Transfer the conversation to a different agent.
      +   * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.TransferAgent transfer_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction.TransferAgentOrBuilder getTransferAgentOrBuilder() { + if (actionCase_ == 2) { + return (com.google.cloud.ces.v1.TriggerAction.TransferAgent) action_; + } + return com.google.cloud.ces.v1.TriggerAction.TransferAgent.getDefaultInstance(); + } + + public static final int GENERATIVE_ANSWER_FIELD_NUMBER = 3; + + /** + * + * + *
      +   * Optional. Respond with a generative answer.
      +   * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.GenerativeAnswer generative_answer = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the generativeAnswer field is set. + */ + @java.lang.Override + public boolean hasGenerativeAnswer() { + return actionCase_ == 3; + } + + /** + * + * + *
      +   * Optional. Respond with a generative answer.
      +   * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.GenerativeAnswer generative_answer = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The generativeAnswer. + */ + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer getGenerativeAnswer() { + if (actionCase_ == 3) { + return (com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer) action_; + } + return com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Respond with a generative answer.
      +   * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.GenerativeAnswer generative_answer = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction.GenerativeAnswerOrBuilder + getGenerativeAnswerOrBuilder() { + if (actionCase_ == 3) { + return (com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer) action_; + } + return com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (actionCase_ == 1) { + output.writeMessage(1, (com.google.cloud.ces.v1.TriggerAction.RespondImmediately) action_); + } + if (actionCase_ == 2) { + output.writeMessage(2, (com.google.cloud.ces.v1.TriggerAction.TransferAgent) action_); + } + if (actionCase_ == 3) { + output.writeMessage(3, (com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer) action_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (actionCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.ces.v1.TriggerAction.RespondImmediately) action_); + } + if (actionCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.ces.v1.TriggerAction.TransferAgent) action_); + } + if (actionCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer) action_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.TriggerAction)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.TriggerAction other = (com.google.cloud.ces.v1.TriggerAction) obj; + + if (!getActionCase().equals(other.getActionCase())) return false; + switch (actionCase_) { + case 1: + if (!getRespondImmediately().equals(other.getRespondImmediately())) return false; + break; + case 2: + if (!getTransferAgent().equals(other.getTransferAgent())) return false; + break; + case 3: + if (!getGenerativeAnswer().equals(other.getGenerativeAnswer())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (actionCase_) { + case 1: + hash = (37 * hash) + RESPOND_IMMEDIATELY_FIELD_NUMBER; + hash = (53 * hash) + getRespondImmediately().hashCode(); + break; + case 2: + hash = (37 * hash) + TRANSFER_AGENT_FIELD_NUMBER; + hash = (53 * hash) + getTransferAgent().hashCode(); + break; + case 3: + hash = (37 * hash) + GENERATIVE_ANSWER_FIELD_NUMBER; + hash = (53 * hash) + getGenerativeAnswer().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.TriggerAction parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.TriggerAction parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TriggerAction parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.TriggerAction parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TriggerAction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.TriggerAction parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TriggerAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.TriggerAction parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TriggerAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.TriggerAction parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.TriggerAction parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.TriggerAction parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.TriggerAction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Action that is taken when a certain precondition is met.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.TriggerAction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.TriggerAction) + com.google.cloud.ces.v1.TriggerActionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TriggerAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TriggerAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.TriggerAction.class, + com.google.cloud.ces.v1.TriggerAction.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.TriggerAction.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (respondImmediatelyBuilder_ != null) { + respondImmediatelyBuilder_.clear(); + } + if (transferAgentBuilder_ != null) { + transferAgentBuilder_.clear(); + } + if (generativeAnswerBuilder_ != null) { + generativeAnswerBuilder_.clear(); + } + actionCase_ = 0; + action_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.CommonProto + .internal_static_google_cloud_ces_v1_TriggerAction_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction getDefaultInstanceForType() { + return com.google.cloud.ces.v1.TriggerAction.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction build() { + com.google.cloud.ces.v1.TriggerAction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction buildPartial() { + com.google.cloud.ces.v1.TriggerAction result = + new com.google.cloud.ces.v1.TriggerAction(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.TriggerAction result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.ces.v1.TriggerAction result) { + result.actionCase_ = actionCase_; + result.action_ = this.action_; + if (actionCase_ == 1 && respondImmediatelyBuilder_ != null) { + result.action_ = respondImmediatelyBuilder_.build(); + } + if (actionCase_ == 2 && transferAgentBuilder_ != null) { + result.action_ = transferAgentBuilder_.build(); + } + if (actionCase_ == 3 && generativeAnswerBuilder_ != null) { + result.action_ = generativeAnswerBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.TriggerAction) { + return mergeFrom((com.google.cloud.ces.v1.TriggerAction) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.TriggerAction other) { + if (other == com.google.cloud.ces.v1.TriggerAction.getDefaultInstance()) return this; + switch (other.getActionCase()) { + case RESPOND_IMMEDIATELY: + { + mergeRespondImmediately(other.getRespondImmediately()); + break; + } + case TRANSFER_AGENT: + { + mergeTransferAgent(other.getTransferAgent()); + break; + } + case GENERATIVE_ANSWER: + { + mergeGenerativeAnswer(other.getGenerativeAnswer()); + break; + } + case ACTION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetRespondImmediatelyFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetTransferAgentFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetGenerativeAnswerFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int actionCase_ = 0; + private java.lang.Object action_; + + public ActionCase getActionCase() { + return ActionCase.forNumber(actionCase_); + } + + public Builder clearAction() { + actionCase_ = 0; + action_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.TriggerAction.RespondImmediately, + com.google.cloud.ces.v1.TriggerAction.RespondImmediately.Builder, + com.google.cloud.ces.v1.TriggerAction.RespondImmediatelyOrBuilder> + respondImmediatelyBuilder_; + + /** + * + * + *
      +     * Optional. Immediately respond with a preconfigured response.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.RespondImmediately respond_immediately = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the respondImmediately field is set. + */ + @java.lang.Override + public boolean hasRespondImmediately() { + return actionCase_ == 1; + } + + /** + * + * + *
      +     * Optional. Immediately respond with a preconfigured response.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.RespondImmediately respond_immediately = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The respondImmediately. + */ + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction.RespondImmediately getRespondImmediately() { + if (respondImmediatelyBuilder_ == null) { + if (actionCase_ == 1) { + return (com.google.cloud.ces.v1.TriggerAction.RespondImmediately) action_; + } + return com.google.cloud.ces.v1.TriggerAction.RespondImmediately.getDefaultInstance(); + } else { + if (actionCase_ == 1) { + return respondImmediatelyBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.TriggerAction.RespondImmediately.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Immediately respond with a preconfigured response.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.RespondImmediately respond_immediately = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRespondImmediately( + com.google.cloud.ces.v1.TriggerAction.RespondImmediately value) { + if (respondImmediatelyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + action_ = value; + onChanged(); + } else { + respondImmediatelyBuilder_.setMessage(value); + } + actionCase_ = 1; + return this; + } + + /** + * + * + *
      +     * Optional. Immediately respond with a preconfigured response.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.RespondImmediately respond_immediately = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRespondImmediately( + com.google.cloud.ces.v1.TriggerAction.RespondImmediately.Builder builderForValue) { + if (respondImmediatelyBuilder_ == null) { + action_ = builderForValue.build(); + onChanged(); + } else { + respondImmediatelyBuilder_.setMessage(builderForValue.build()); + } + actionCase_ = 1; + return this; + } + + /** + * + * + *
      +     * Optional. Immediately respond with a preconfigured response.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.RespondImmediately respond_immediately = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRespondImmediately( + com.google.cloud.ces.v1.TriggerAction.RespondImmediately value) { + if (respondImmediatelyBuilder_ == null) { + if (actionCase_ == 1 + && action_ + != com.google.cloud.ces.v1.TriggerAction.RespondImmediately.getDefaultInstance()) { + action_ = + com.google.cloud.ces.v1.TriggerAction.RespondImmediately.newBuilder( + (com.google.cloud.ces.v1.TriggerAction.RespondImmediately) action_) + .mergeFrom(value) + .buildPartial(); + } else { + action_ = value; + } + onChanged(); + } else { + if (actionCase_ == 1) { + respondImmediatelyBuilder_.mergeFrom(value); + } else { + respondImmediatelyBuilder_.setMessage(value); + } + } + actionCase_ = 1; + return this; + } + + /** + * + * + *
      +     * Optional. Immediately respond with a preconfigured response.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.RespondImmediately respond_immediately = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRespondImmediately() { + if (respondImmediatelyBuilder_ == null) { + if (actionCase_ == 1) { + actionCase_ = 0; + action_ = null; + onChanged(); + } + } else { + if (actionCase_ == 1) { + actionCase_ = 0; + action_ = null; + } + respondImmediatelyBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Immediately respond with a preconfigured response.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.RespondImmediately respond_immediately = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.TriggerAction.RespondImmediately.Builder + getRespondImmediatelyBuilder() { + return internalGetRespondImmediatelyFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Immediately respond with a preconfigured response.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.RespondImmediately respond_immediately = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction.RespondImmediatelyOrBuilder + getRespondImmediatelyOrBuilder() { + if ((actionCase_ == 1) && (respondImmediatelyBuilder_ != null)) { + return respondImmediatelyBuilder_.getMessageOrBuilder(); + } else { + if (actionCase_ == 1) { + return (com.google.cloud.ces.v1.TriggerAction.RespondImmediately) action_; + } + return com.google.cloud.ces.v1.TriggerAction.RespondImmediately.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Immediately respond with a preconfigured response.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.RespondImmediately respond_immediately = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.TriggerAction.RespondImmediately, + com.google.cloud.ces.v1.TriggerAction.RespondImmediately.Builder, + com.google.cloud.ces.v1.TriggerAction.RespondImmediatelyOrBuilder> + internalGetRespondImmediatelyFieldBuilder() { + if (respondImmediatelyBuilder_ == null) { + if (!(actionCase_ == 1)) { + action_ = com.google.cloud.ces.v1.TriggerAction.RespondImmediately.getDefaultInstance(); + } + respondImmediatelyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.TriggerAction.RespondImmediately, + com.google.cloud.ces.v1.TriggerAction.RespondImmediately.Builder, + com.google.cloud.ces.v1.TriggerAction.RespondImmediatelyOrBuilder>( + (com.google.cloud.ces.v1.TriggerAction.RespondImmediately) action_, + getParentForChildren(), + isClean()); + action_ = null; + } + actionCase_ = 1; + onChanged(); + return respondImmediatelyBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.TriggerAction.TransferAgent, + com.google.cloud.ces.v1.TriggerAction.TransferAgent.Builder, + com.google.cloud.ces.v1.TriggerAction.TransferAgentOrBuilder> + transferAgentBuilder_; + + /** + * + * + *
      +     * Optional. Transfer the conversation to a different agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.TransferAgent transfer_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the transferAgent field is set. + */ + @java.lang.Override + public boolean hasTransferAgent() { + return actionCase_ == 2; + } + + /** + * + * + *
      +     * Optional. Transfer the conversation to a different agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.TransferAgent transfer_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The transferAgent. + */ + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction.TransferAgent getTransferAgent() { + if (transferAgentBuilder_ == null) { + if (actionCase_ == 2) { + return (com.google.cloud.ces.v1.TriggerAction.TransferAgent) action_; + } + return com.google.cloud.ces.v1.TriggerAction.TransferAgent.getDefaultInstance(); + } else { + if (actionCase_ == 2) { + return transferAgentBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.TriggerAction.TransferAgent.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Transfer the conversation to a different agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.TransferAgent transfer_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTransferAgent(com.google.cloud.ces.v1.TriggerAction.TransferAgent value) { + if (transferAgentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + action_ = value; + onChanged(); + } else { + transferAgentBuilder_.setMessage(value); + } + actionCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Optional. Transfer the conversation to a different agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.TransferAgent transfer_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTransferAgent( + com.google.cloud.ces.v1.TriggerAction.TransferAgent.Builder builderForValue) { + if (transferAgentBuilder_ == null) { + action_ = builderForValue.build(); + onChanged(); + } else { + transferAgentBuilder_.setMessage(builderForValue.build()); + } + actionCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Optional. Transfer the conversation to a different agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.TransferAgent transfer_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeTransferAgent(com.google.cloud.ces.v1.TriggerAction.TransferAgent value) { + if (transferAgentBuilder_ == null) { + if (actionCase_ == 2 + && action_ + != com.google.cloud.ces.v1.TriggerAction.TransferAgent.getDefaultInstance()) { + action_ = + com.google.cloud.ces.v1.TriggerAction.TransferAgent.newBuilder( + (com.google.cloud.ces.v1.TriggerAction.TransferAgent) action_) + .mergeFrom(value) + .buildPartial(); + } else { + action_ = value; + } + onChanged(); + } else { + if (actionCase_ == 2) { + transferAgentBuilder_.mergeFrom(value); + } else { + transferAgentBuilder_.setMessage(value); + } + } + actionCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Optional. Transfer the conversation to a different agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.TransferAgent transfer_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTransferAgent() { + if (transferAgentBuilder_ == null) { + if (actionCase_ == 2) { + actionCase_ = 0; + action_ = null; + onChanged(); + } + } else { + if (actionCase_ == 2) { + actionCase_ = 0; + action_ = null; + } + transferAgentBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Transfer the conversation to a different agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.TransferAgent transfer_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.TriggerAction.TransferAgent.Builder getTransferAgentBuilder() { + return internalGetTransferAgentFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Transfer the conversation to a different agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.TransferAgent transfer_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction.TransferAgentOrBuilder + getTransferAgentOrBuilder() { + if ((actionCase_ == 2) && (transferAgentBuilder_ != null)) { + return transferAgentBuilder_.getMessageOrBuilder(); + } else { + if (actionCase_ == 2) { + return (com.google.cloud.ces.v1.TriggerAction.TransferAgent) action_; + } + return com.google.cloud.ces.v1.TriggerAction.TransferAgent.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Transfer the conversation to a different agent.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.TransferAgent transfer_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.TriggerAction.TransferAgent, + com.google.cloud.ces.v1.TriggerAction.TransferAgent.Builder, + com.google.cloud.ces.v1.TriggerAction.TransferAgentOrBuilder> + internalGetTransferAgentFieldBuilder() { + if (transferAgentBuilder_ == null) { + if (!(actionCase_ == 2)) { + action_ = com.google.cloud.ces.v1.TriggerAction.TransferAgent.getDefaultInstance(); + } + transferAgentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.TriggerAction.TransferAgent, + com.google.cloud.ces.v1.TriggerAction.TransferAgent.Builder, + com.google.cloud.ces.v1.TriggerAction.TransferAgentOrBuilder>( + (com.google.cloud.ces.v1.TriggerAction.TransferAgent) action_, + getParentForChildren(), + isClean()); + action_ = null; + } + actionCase_ = 2; + onChanged(); + return transferAgentBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer, + com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer.Builder, + com.google.cloud.ces.v1.TriggerAction.GenerativeAnswerOrBuilder> + generativeAnswerBuilder_; + + /** + * + * + *
      +     * Optional. Respond with a generative answer.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.GenerativeAnswer generative_answer = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the generativeAnswer field is set. + */ + @java.lang.Override + public boolean hasGenerativeAnswer() { + return actionCase_ == 3; + } + + /** + * + * + *
      +     * Optional. Respond with a generative answer.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.GenerativeAnswer generative_answer = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The generativeAnswer. + */ + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer getGenerativeAnswer() { + if (generativeAnswerBuilder_ == null) { + if (actionCase_ == 3) { + return (com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer) action_; + } + return com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer.getDefaultInstance(); + } else { + if (actionCase_ == 3) { + return generativeAnswerBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Respond with a generative answer.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.GenerativeAnswer generative_answer = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGenerativeAnswer( + com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer value) { + if (generativeAnswerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + action_ = value; + onChanged(); + } else { + generativeAnswerBuilder_.setMessage(value); + } + actionCase_ = 3; + return this; + } + + /** + * + * + *
      +     * Optional. Respond with a generative answer.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.GenerativeAnswer generative_answer = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGenerativeAnswer( + com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer.Builder builderForValue) { + if (generativeAnswerBuilder_ == null) { + action_ = builderForValue.build(); + onChanged(); + } else { + generativeAnswerBuilder_.setMessage(builderForValue.build()); + } + actionCase_ = 3; + return this; + } + + /** + * + * + *
      +     * Optional. Respond with a generative answer.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.GenerativeAnswer generative_answer = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGenerativeAnswer( + com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer value) { + if (generativeAnswerBuilder_ == null) { + if (actionCase_ == 3 + && action_ + != com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer.getDefaultInstance()) { + action_ = + com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer.newBuilder( + (com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer) action_) + .mergeFrom(value) + .buildPartial(); + } else { + action_ = value; + } + onChanged(); + } else { + if (actionCase_ == 3) { + generativeAnswerBuilder_.mergeFrom(value); + } else { + generativeAnswerBuilder_.setMessage(value); + } + } + actionCase_ = 3; + return this; + } + + /** + * + * + *
      +     * Optional. Respond with a generative answer.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.GenerativeAnswer generative_answer = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGenerativeAnswer() { + if (generativeAnswerBuilder_ == null) { + if (actionCase_ == 3) { + actionCase_ = 0; + action_ = null; + onChanged(); + } + } else { + if (actionCase_ == 3) { + actionCase_ = 0; + action_ = null; + } + generativeAnswerBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Respond with a generative answer.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.GenerativeAnswer generative_answer = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer.Builder + getGenerativeAnswerBuilder() { + return internalGetGenerativeAnswerFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Respond with a generative answer.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.GenerativeAnswer generative_answer = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction.GenerativeAnswerOrBuilder + getGenerativeAnswerOrBuilder() { + if ((actionCase_ == 3) && (generativeAnswerBuilder_ != null)) { + return generativeAnswerBuilder_.getMessageOrBuilder(); + } else { + if (actionCase_ == 3) { + return (com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer) action_; + } + return com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Respond with a generative answer.
      +     * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.GenerativeAnswer generative_answer = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer, + com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer.Builder, + com.google.cloud.ces.v1.TriggerAction.GenerativeAnswerOrBuilder> + internalGetGenerativeAnswerFieldBuilder() { + if (generativeAnswerBuilder_ == null) { + if (!(actionCase_ == 3)) { + action_ = com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer.getDefaultInstance(); + } + generativeAnswerBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer, + com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer.Builder, + com.google.cloud.ces.v1.TriggerAction.GenerativeAnswerOrBuilder>( + (com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer) action_, + getParentForChildren(), + isClean()); + action_ = null; + } + actionCase_ = 3; + onChanged(); + return generativeAnswerBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.TriggerAction) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.TriggerAction) + private static final com.google.cloud.ces.v1.TriggerAction DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.TriggerAction(); + } + + public static com.google.cloud.ces.v1.TriggerAction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TriggerAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.TriggerAction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/TriggerActionOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/TriggerActionOrBuilder.java new file mode 100644 index 000000000000..7f76f2072647 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/TriggerActionOrBuilder.java @@ -0,0 +1,160 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/common.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface TriggerActionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.TriggerAction) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. Immediately respond with a preconfigured response.
      +   * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.RespondImmediately respond_immediately = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the respondImmediately field is set. + */ + boolean hasRespondImmediately(); + + /** + * + * + *
      +   * Optional. Immediately respond with a preconfigured response.
      +   * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.RespondImmediately respond_immediately = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The respondImmediately. + */ + com.google.cloud.ces.v1.TriggerAction.RespondImmediately getRespondImmediately(); + + /** + * + * + *
      +   * Optional. Immediately respond with a preconfigured response.
      +   * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.RespondImmediately respond_immediately = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.TriggerAction.RespondImmediatelyOrBuilder + getRespondImmediatelyOrBuilder(); + + /** + * + * + *
      +   * Optional. Transfer the conversation to a different agent.
      +   * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.TransferAgent transfer_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the transferAgent field is set. + */ + boolean hasTransferAgent(); + + /** + * + * + *
      +   * Optional. Transfer the conversation to a different agent.
      +   * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.TransferAgent transfer_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The transferAgent. + */ + com.google.cloud.ces.v1.TriggerAction.TransferAgent getTransferAgent(); + + /** + * + * + *
      +   * Optional. Transfer the conversation to a different agent.
      +   * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.TransferAgent transfer_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.TriggerAction.TransferAgentOrBuilder getTransferAgentOrBuilder(); + + /** + * + * + *
      +   * Optional. Respond with a generative answer.
      +   * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.GenerativeAnswer generative_answer = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the generativeAnswer field is set. + */ + boolean hasGenerativeAnswer(); + + /** + * + * + *
      +   * Optional. Respond with a generative answer.
      +   * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.GenerativeAnswer generative_answer = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The generativeAnswer. + */ + com.google.cloud.ces.v1.TriggerAction.GenerativeAnswer getGenerativeAnswer(); + + /** + * + * + *
      +   * Optional. Respond with a generative answer.
      +   * 
      + * + * + * .google.cloud.ces.v1.TriggerAction.GenerativeAnswer generative_answer = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.TriggerAction.GenerativeAnswerOrBuilder getGenerativeAnswerOrBuilder(); + + com.google.cloud.ces.v1.TriggerAction.ActionCase getActionCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateAgentRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateAgentRequest.java new file mode 100644 index 000000000000..a1e926857a0a --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateAgentRequest.java @@ -0,0 +1,991 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.UpdateAgent][google.cloud.ces.v1.AgentService.UpdateAgent].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.UpdateAgentRequest} + */ +@com.google.protobuf.Generated +public final class UpdateAgentRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.UpdateAgentRequest) + UpdateAgentRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateAgentRequest"); + } + + // Use UpdateAgentRequest.newBuilder() to construct. + private UpdateAgentRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateAgentRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateAgentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateAgentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.UpdateAgentRequest.class, + com.google.cloud.ces.v1.UpdateAgentRequest.Builder.class); + } + + private int bitField0_; + public static final int AGENT_FIELD_NUMBER = 1; + private com.google.cloud.ces.v1.Agent agent_; + + /** + * + * + *
      +   * Required. The agent to update.
      +   * 
      + * + * .google.cloud.ces.v1.Agent agent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the agent field is set. + */ + @java.lang.Override + public boolean hasAgent() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Required. The agent to update.
      +   * 
      + * + * .google.cloud.ces.v1.Agent agent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The agent. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Agent getAgent() { + return agent_ == null ? com.google.cloud.ces.v1.Agent.getDefaultInstance() : agent_; + } + + /** + * + * + *
      +   * Required. The agent to update.
      +   * 
      + * + * .google.cloud.ces.v1.Agent agent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.ces.v1.AgentOrBuilder getAgentOrBuilder() { + return agent_ == null ? com.google.cloud.ces.v1.Agent.getDefaultInstance() : agent_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getAgent()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAgent()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.UpdateAgentRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.UpdateAgentRequest other = + (com.google.cloud.ces.v1.UpdateAgentRequest) obj; + + if (hasAgent() != other.hasAgent()) return false; + if (hasAgent()) { + if (!getAgent().equals(other.getAgent())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAgent()) { + hash = (37 * hash) + AGENT_FIELD_NUMBER; + hash = (53 * hash) + getAgent().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.UpdateAgentRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.UpdateAgentRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateAgentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.UpdateAgentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateAgentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.UpdateAgentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateAgentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.UpdateAgentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateAgentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.UpdateAgentRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateAgentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.UpdateAgentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.UpdateAgentRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.UpdateAgent][google.cloud.ces.v1.AgentService.UpdateAgent].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.UpdateAgentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.UpdateAgentRequest) + com.google.cloud.ces.v1.UpdateAgentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateAgentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateAgentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.UpdateAgentRequest.class, + com.google.cloud.ces.v1.UpdateAgentRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.UpdateAgentRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAgentFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + agent_ = null; + if (agentBuilder_ != null) { + agentBuilder_.dispose(); + agentBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateAgentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.UpdateAgentRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.UpdateAgentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.UpdateAgentRequest build() { + com.google.cloud.ces.v1.UpdateAgentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.UpdateAgentRequest buildPartial() { + com.google.cloud.ces.v1.UpdateAgentRequest result = + new com.google.cloud.ces.v1.UpdateAgentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.UpdateAgentRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.agent_ = agentBuilder_ == null ? agent_ : agentBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.UpdateAgentRequest) { + return mergeFrom((com.google.cloud.ces.v1.UpdateAgentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.UpdateAgentRequest other) { + if (other == com.google.cloud.ces.v1.UpdateAgentRequest.getDefaultInstance()) return this; + if (other.hasAgent()) { + mergeAgent(other.getAgent()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(internalGetAgentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.ces.v1.Agent agent_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Agent, + com.google.cloud.ces.v1.Agent.Builder, + com.google.cloud.ces.v1.AgentOrBuilder> + agentBuilder_; + + /** + * + * + *
      +     * Required. The agent to update.
      +     * 
      + * + * .google.cloud.ces.v1.Agent agent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the agent field is set. + */ + public boolean hasAgent() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Required. The agent to update.
      +     * 
      + * + * .google.cloud.ces.v1.Agent agent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The agent. + */ + public com.google.cloud.ces.v1.Agent getAgent() { + if (agentBuilder_ == null) { + return agent_ == null ? com.google.cloud.ces.v1.Agent.getDefaultInstance() : agent_; + } else { + return agentBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Required. The agent to update.
      +     * 
      + * + * .google.cloud.ces.v1.Agent agent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setAgent(com.google.cloud.ces.v1.Agent value) { + if (agentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agent_ = value; + } else { + agentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The agent to update.
      +     * 
      + * + * .google.cloud.ces.v1.Agent agent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setAgent(com.google.cloud.ces.v1.Agent.Builder builderForValue) { + if (agentBuilder_ == null) { + agent_ = builderForValue.build(); + } else { + agentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The agent to update.
      +     * 
      + * + * .google.cloud.ces.v1.Agent agent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeAgent(com.google.cloud.ces.v1.Agent value) { + if (agentBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && agent_ != null + && agent_ != com.google.cloud.ces.v1.Agent.getDefaultInstance()) { + getAgentBuilder().mergeFrom(value); + } else { + agent_ = value; + } + } else { + agentBuilder_.mergeFrom(value); + } + if (agent_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Required. The agent to update.
      +     * 
      + * + * .google.cloud.ces.v1.Agent agent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearAgent() { + bitField0_ = (bitField0_ & ~0x00000001); + agent_ = null; + if (agentBuilder_ != null) { + agentBuilder_.dispose(); + agentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The agent to update.
      +     * 
      + * + * .google.cloud.ces.v1.Agent agent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.ces.v1.Agent.Builder getAgentBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetAgentFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Required. The agent to update.
      +     * 
      + * + * .google.cloud.ces.v1.Agent agent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.ces.v1.AgentOrBuilder getAgentOrBuilder() { + if (agentBuilder_ != null) { + return agentBuilder_.getMessageOrBuilder(); + } else { + return agent_ == null ? com.google.cloud.ces.v1.Agent.getDefaultInstance() : agent_; + } + } + + /** + * + * + *
      +     * Required. The agent to update.
      +     * 
      + * + * .google.cloud.ces.v1.Agent agent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Agent, + com.google.cloud.ces.v1.Agent.Builder, + com.google.cloud.ces.v1.AgentOrBuilder> + internalGetAgentFieldBuilder() { + if (agentBuilder_ == null) { + agentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Agent, + com.google.cloud.ces.v1.Agent.Builder, + com.google.cloud.ces.v1.AgentOrBuilder>( + getAgent(), getParentForChildren(), isClean()); + agent_ = null; + } + return agentBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.UpdateAgentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.UpdateAgentRequest) + private static final com.google.cloud.ces.v1.UpdateAgentRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.UpdateAgentRequest(); + } + + public static com.google.cloud.ces.v1.UpdateAgentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAgentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.UpdateAgentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateAgentRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateAgentRequestOrBuilder.java new file mode 100644 index 000000000000..20c748a5d33d --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateAgentRequestOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface UpdateAgentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.UpdateAgentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The agent to update.
      +   * 
      + * + * .google.cloud.ces.v1.Agent agent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the agent field is set. + */ + boolean hasAgent(); + + /** + * + * + *
      +   * Required. The agent to update.
      +   * 
      + * + * .google.cloud.ces.v1.Agent agent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The agent. + */ + com.google.cloud.ces.v1.Agent getAgent(); + + /** + * + * + *
      +   * Required. The agent to update.
      +   * 
      + * + * .google.cloud.ces.v1.Agent agent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.ces.v1.AgentOrBuilder getAgentOrBuilder(); + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateAppRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateAppRequest.java new file mode 100644 index 000000000000..ae0606f73114 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateAppRequest.java @@ -0,0 +1,989 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.UpdateApp][google.cloud.ces.v1.AgentService.UpdateApp].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.UpdateAppRequest} + */ +@com.google.protobuf.Generated +public final class UpdateAppRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.UpdateAppRequest) + UpdateAppRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateAppRequest"); + } + + // Use UpdateAppRequest.newBuilder() to construct. + private UpdateAppRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateAppRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateAppRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateAppRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.UpdateAppRequest.class, + com.google.cloud.ces.v1.UpdateAppRequest.Builder.class); + } + + private int bitField0_; + public static final int APP_FIELD_NUMBER = 1; + private com.google.cloud.ces.v1.App app_; + + /** + * + * + *
      +   * Required. The app to update.
      +   * 
      + * + * .google.cloud.ces.v1.App app = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the app field is set. + */ + @java.lang.Override + public boolean hasApp() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Required. The app to update.
      +   * 
      + * + * .google.cloud.ces.v1.App app = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The app. + */ + @java.lang.Override + public com.google.cloud.ces.v1.App getApp() { + return app_ == null ? com.google.cloud.ces.v1.App.getDefaultInstance() : app_; + } + + /** + * + * + *
      +   * Required. The app to update.
      +   * 
      + * + * .google.cloud.ces.v1.App app = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.ces.v1.AppOrBuilder getAppOrBuilder() { + return app_ == null ? com.google.cloud.ces.v1.App.getDefaultInstance() : app_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getApp()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getApp()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.UpdateAppRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.UpdateAppRequest other = (com.google.cloud.ces.v1.UpdateAppRequest) obj; + + if (hasApp() != other.hasApp()) return false; + if (hasApp()) { + if (!getApp().equals(other.getApp())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasApp()) { + hash = (37 * hash) + APP_FIELD_NUMBER; + hash = (53 * hash) + getApp().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.UpdateAppRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.UpdateAppRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateAppRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.UpdateAppRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateAppRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.UpdateAppRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateAppRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.UpdateAppRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateAppRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.UpdateAppRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateAppRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.UpdateAppRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.UpdateAppRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.UpdateApp][google.cloud.ces.v1.AgentService.UpdateApp].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.UpdateAppRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.UpdateAppRequest) + com.google.cloud.ces.v1.UpdateAppRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateAppRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateAppRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.UpdateAppRequest.class, + com.google.cloud.ces.v1.UpdateAppRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.UpdateAppRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAppFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + app_ = null; + if (appBuilder_ != null) { + appBuilder_.dispose(); + appBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateAppRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.UpdateAppRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.UpdateAppRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.UpdateAppRequest build() { + com.google.cloud.ces.v1.UpdateAppRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.UpdateAppRequest buildPartial() { + com.google.cloud.ces.v1.UpdateAppRequest result = + new com.google.cloud.ces.v1.UpdateAppRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.UpdateAppRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.app_ = appBuilder_ == null ? app_ : appBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.UpdateAppRequest) { + return mergeFrom((com.google.cloud.ces.v1.UpdateAppRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.UpdateAppRequest other) { + if (other == com.google.cloud.ces.v1.UpdateAppRequest.getDefaultInstance()) return this; + if (other.hasApp()) { + mergeApp(other.getApp()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(internalGetAppFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.ces.v1.App app_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.App, + com.google.cloud.ces.v1.App.Builder, + com.google.cloud.ces.v1.AppOrBuilder> + appBuilder_; + + /** + * + * + *
      +     * Required. The app to update.
      +     * 
      + * + * .google.cloud.ces.v1.App app = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the app field is set. + */ + public boolean hasApp() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Required. The app to update.
      +     * 
      + * + * .google.cloud.ces.v1.App app = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The app. + */ + public com.google.cloud.ces.v1.App getApp() { + if (appBuilder_ == null) { + return app_ == null ? com.google.cloud.ces.v1.App.getDefaultInstance() : app_; + } else { + return appBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Required. The app to update.
      +     * 
      + * + * .google.cloud.ces.v1.App app = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setApp(com.google.cloud.ces.v1.App value) { + if (appBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + app_ = value; + } else { + appBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The app to update.
      +     * 
      + * + * .google.cloud.ces.v1.App app = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setApp(com.google.cloud.ces.v1.App.Builder builderForValue) { + if (appBuilder_ == null) { + app_ = builderForValue.build(); + } else { + appBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The app to update.
      +     * 
      + * + * .google.cloud.ces.v1.App app = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeApp(com.google.cloud.ces.v1.App value) { + if (appBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && app_ != null + && app_ != com.google.cloud.ces.v1.App.getDefaultInstance()) { + getAppBuilder().mergeFrom(value); + } else { + app_ = value; + } + } else { + appBuilder_.mergeFrom(value); + } + if (app_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Required. The app to update.
      +     * 
      + * + * .google.cloud.ces.v1.App app = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearApp() { + bitField0_ = (bitField0_ & ~0x00000001); + app_ = null; + if (appBuilder_ != null) { + appBuilder_.dispose(); + appBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The app to update.
      +     * 
      + * + * .google.cloud.ces.v1.App app = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.ces.v1.App.Builder getAppBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetAppFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Required. The app to update.
      +     * 
      + * + * .google.cloud.ces.v1.App app = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.ces.v1.AppOrBuilder getAppOrBuilder() { + if (appBuilder_ != null) { + return appBuilder_.getMessageOrBuilder(); + } else { + return app_ == null ? com.google.cloud.ces.v1.App.getDefaultInstance() : app_; + } + } + + /** + * + * + *
      +     * Required. The app to update.
      +     * 
      + * + * .google.cloud.ces.v1.App app = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.App, + com.google.cloud.ces.v1.App.Builder, + com.google.cloud.ces.v1.AppOrBuilder> + internalGetAppFieldBuilder() { + if (appBuilder_ == null) { + appBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.App, + com.google.cloud.ces.v1.App.Builder, + com.google.cloud.ces.v1.AppOrBuilder>(getApp(), getParentForChildren(), isClean()); + app_ = null; + } + return appBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.UpdateAppRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.UpdateAppRequest) + private static final com.google.cloud.ces.v1.UpdateAppRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.UpdateAppRequest(); + } + + public static com.google.cloud.ces.v1.UpdateAppRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAppRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.UpdateAppRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateAppRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateAppRequestOrBuilder.java new file mode 100644 index 000000000000..d0ae5016a174 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateAppRequestOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface UpdateAppRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.UpdateAppRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The app to update.
      +   * 
      + * + * .google.cloud.ces.v1.App app = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the app field is set. + */ + boolean hasApp(); + + /** + * + * + *
      +   * Required. The app to update.
      +   * 
      + * + * .google.cloud.ces.v1.App app = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The app. + */ + com.google.cloud.ces.v1.App getApp(); + + /** + * + * + *
      +   * Required. The app to update.
      +   * 
      + * + * .google.cloud.ces.v1.App app = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.ces.v1.AppOrBuilder getAppOrBuilder(); + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateDeploymentRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateDeploymentRequest.java new file mode 100644 index 000000000000..30bda9b03028 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateDeploymentRequest.java @@ -0,0 +1,1010 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.UpdateDeployment][google.cloud.ces.v1.AgentService.UpdateDeployment].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.UpdateDeploymentRequest} + */ +@com.google.protobuf.Generated +public final class UpdateDeploymentRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.UpdateDeploymentRequest) + UpdateDeploymentRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateDeploymentRequest"); + } + + // Use UpdateDeploymentRequest.newBuilder() to construct. + private UpdateDeploymentRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateDeploymentRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.UpdateDeploymentRequest.class, + com.google.cloud.ces.v1.UpdateDeploymentRequest.Builder.class); + } + + private int bitField0_; + public static final int DEPLOYMENT_FIELD_NUMBER = 1; + private com.google.cloud.ces.v1.Deployment deployment_; + + /** + * + * + *
      +   * Required. The deployment to update.
      +   * 
      + * + * .google.cloud.ces.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the deployment field is set. + */ + @java.lang.Override + public boolean hasDeployment() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Required. The deployment to update.
      +   * 
      + * + * .google.cloud.ces.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deployment. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Deployment getDeployment() { + return deployment_ == null + ? com.google.cloud.ces.v1.Deployment.getDefaultInstance() + : deployment_; + } + + /** + * + * + *
      +   * Required. The deployment to update.
      +   * 
      + * + * .google.cloud.ces.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.DeploymentOrBuilder getDeploymentOrBuilder() { + return deployment_ == null + ? com.google.cloud.ces.v1.Deployment.getDefaultInstance() + : deployment_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
      +   * Optional. The list of fields to update.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Optional. The list of fields to update.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
      +   * Optional. The list of fields to update.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getDeployment()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDeployment()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.UpdateDeploymentRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.UpdateDeploymentRequest other = + (com.google.cloud.ces.v1.UpdateDeploymentRequest) obj; + + if (hasDeployment() != other.hasDeployment()) return false; + if (hasDeployment()) { + if (!getDeployment().equals(other.getDeployment())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDeployment()) { + hash = (37 * hash) + DEPLOYMENT_FIELD_NUMBER; + hash = (53 * hash) + getDeployment().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.UpdateDeploymentRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.UpdateDeploymentRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateDeploymentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.UpdateDeploymentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateDeploymentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.UpdateDeploymentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateDeploymentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.UpdateDeploymentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateDeploymentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.UpdateDeploymentRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.UpdateDeploymentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.UpdateDeploymentRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.UpdateDeployment][google.cloud.ces.v1.AgentService.UpdateDeployment].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.UpdateDeploymentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.UpdateDeploymentRequest) + com.google.cloud.ces.v1.UpdateDeploymentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateDeploymentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateDeploymentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.UpdateDeploymentRequest.class, + com.google.cloud.ces.v1.UpdateDeploymentRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.UpdateDeploymentRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDeploymentFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + deployment_ = null; + if (deploymentBuilder_ != null) { + deploymentBuilder_.dispose(); + deploymentBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateDeploymentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.UpdateDeploymentRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.UpdateDeploymentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.UpdateDeploymentRequest build() { + com.google.cloud.ces.v1.UpdateDeploymentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.UpdateDeploymentRequest buildPartial() { + com.google.cloud.ces.v1.UpdateDeploymentRequest result = + new com.google.cloud.ces.v1.UpdateDeploymentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.UpdateDeploymentRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.deployment_ = deploymentBuilder_ == null ? deployment_ : deploymentBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.UpdateDeploymentRequest) { + return mergeFrom((com.google.cloud.ces.v1.UpdateDeploymentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.UpdateDeploymentRequest other) { + if (other == com.google.cloud.ces.v1.UpdateDeploymentRequest.getDefaultInstance()) + return this; + if (other.hasDeployment()) { + mergeDeployment(other.getDeployment()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetDeploymentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.ces.v1.Deployment deployment_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Deployment, + com.google.cloud.ces.v1.Deployment.Builder, + com.google.cloud.ces.v1.DeploymentOrBuilder> + deploymentBuilder_; + + /** + * + * + *
      +     * Required. The deployment to update.
      +     * 
      + * + * + * .google.cloud.ces.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the deployment field is set. + */ + public boolean hasDeployment() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Required. The deployment to update.
      +     * 
      + * + * + * .google.cloud.ces.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deployment. + */ + public com.google.cloud.ces.v1.Deployment getDeployment() { + if (deploymentBuilder_ == null) { + return deployment_ == null + ? com.google.cloud.ces.v1.Deployment.getDefaultInstance() + : deployment_; + } else { + return deploymentBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Required. The deployment to update.
      +     * 
      + * + * + * .google.cloud.ces.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDeployment(com.google.cloud.ces.v1.Deployment value) { + if (deploymentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deployment_ = value; + } else { + deploymentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The deployment to update.
      +     * 
      + * + * + * .google.cloud.ces.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDeployment(com.google.cloud.ces.v1.Deployment.Builder builderForValue) { + if (deploymentBuilder_ == null) { + deployment_ = builderForValue.build(); + } else { + deploymentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The deployment to update.
      +     * 
      + * + * + * .google.cloud.ces.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDeployment(com.google.cloud.ces.v1.Deployment value) { + if (deploymentBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && deployment_ != null + && deployment_ != com.google.cloud.ces.v1.Deployment.getDefaultInstance()) { + getDeploymentBuilder().mergeFrom(value); + } else { + deployment_ = value; + } + } else { + deploymentBuilder_.mergeFrom(value); + } + if (deployment_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Required. The deployment to update.
      +     * 
      + * + * + * .google.cloud.ces.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDeployment() { + bitField0_ = (bitField0_ & ~0x00000001); + deployment_ = null; + if (deploymentBuilder_ != null) { + deploymentBuilder_.dispose(); + deploymentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The deployment to update.
      +     * 
      + * + * + * .google.cloud.ces.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.Deployment.Builder getDeploymentBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetDeploymentFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Required. The deployment to update.
      +     * 
      + * + * + * .google.cloud.ces.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.DeploymentOrBuilder getDeploymentOrBuilder() { + if (deploymentBuilder_ != null) { + return deploymentBuilder_.getMessageOrBuilder(); + } else { + return deployment_ == null + ? com.google.cloud.ces.v1.Deployment.getDefaultInstance() + : deployment_; + } + } + + /** + * + * + *
      +     * Required. The deployment to update.
      +     * 
      + * + * + * .google.cloud.ces.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Deployment, + com.google.cloud.ces.v1.Deployment.Builder, + com.google.cloud.ces.v1.DeploymentOrBuilder> + internalGetDeploymentFieldBuilder() { + if (deploymentBuilder_ == null) { + deploymentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Deployment, + com.google.cloud.ces.v1.Deployment.Builder, + com.google.cloud.ces.v1.DeploymentOrBuilder>( + getDeployment(), getParentForChildren(), isClean()); + deployment_ = null; + } + return deploymentBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
      +     * Optional. The list of fields to update.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Optional. The list of fields to update.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. The list of fields to update.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The list of fields to update.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The list of fields to update.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The list of fields to update.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The list of fields to update.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The list of fields to update.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
      +     * Optional. The list of fields to update.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.UpdateDeploymentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.UpdateDeploymentRequest) + private static final com.google.cloud.ces.v1.UpdateDeploymentRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.UpdateDeploymentRequest(); + } + + public static com.google.cloud.ces.v1.UpdateDeploymentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDeploymentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.UpdateDeploymentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateDeploymentRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateDeploymentRequestOrBuilder.java new file mode 100644 index 000000000000..3e7a0f79569c --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateDeploymentRequestOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface UpdateDeploymentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.UpdateDeploymentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The deployment to update.
      +   * 
      + * + * .google.cloud.ces.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the deployment field is set. + */ + boolean hasDeployment(); + + /** + * + * + *
      +   * Required. The deployment to update.
      +   * 
      + * + * .google.cloud.ces.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deployment. + */ + com.google.cloud.ces.v1.Deployment getDeployment(); + + /** + * + * + *
      +   * Required. The deployment to update.
      +   * 
      + * + * .google.cloud.ces.v1.Deployment deployment = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.DeploymentOrBuilder getDeploymentOrBuilder(); + + /** + * + * + *
      +   * Optional. The list of fields to update.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
      +   * Optional. The list of fields to update.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
      +   * Optional. The list of fields to update.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateExampleRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateExampleRequest.java new file mode 100644 index 000000000000..d810d4a0026e --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateExampleRequest.java @@ -0,0 +1,1003 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.UpdateExample][google.cloud.ces.v1.AgentService.UpdateExample].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.UpdateExampleRequest} + */ +@com.google.protobuf.Generated +public final class UpdateExampleRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.UpdateExampleRequest) + UpdateExampleRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateExampleRequest"); + } + + // Use UpdateExampleRequest.newBuilder() to construct. + private UpdateExampleRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateExampleRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateExampleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateExampleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.UpdateExampleRequest.class, + com.google.cloud.ces.v1.UpdateExampleRequest.Builder.class); + } + + private int bitField0_; + public static final int EXAMPLE_FIELD_NUMBER = 1; + private com.google.cloud.ces.v1.Example example_; + + /** + * + * + *
      +   * Required. The example to update.
      +   * 
      + * + * .google.cloud.ces.v1.Example example = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the example field is set. + */ + @java.lang.Override + public boolean hasExample() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Required. The example to update.
      +   * 
      + * + * .google.cloud.ces.v1.Example example = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The example. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Example getExample() { + return example_ == null ? com.google.cloud.ces.v1.Example.getDefaultInstance() : example_; + } + + /** + * + * + *
      +   * Required. The example to update.
      +   * 
      + * + * .google.cloud.ces.v1.Example example = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ExampleOrBuilder getExampleOrBuilder() { + return example_ == null ? com.google.cloud.ces.v1.Example.getDefaultInstance() : example_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getExample()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getExample()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.UpdateExampleRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.UpdateExampleRequest other = + (com.google.cloud.ces.v1.UpdateExampleRequest) obj; + + if (hasExample() != other.hasExample()) return false; + if (hasExample()) { + if (!getExample().equals(other.getExample())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasExample()) { + hash = (37 * hash) + EXAMPLE_FIELD_NUMBER; + hash = (53 * hash) + getExample().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.UpdateExampleRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.UpdateExampleRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateExampleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.UpdateExampleRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateExampleRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.UpdateExampleRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateExampleRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.UpdateExampleRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateExampleRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.UpdateExampleRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateExampleRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.UpdateExampleRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.UpdateExampleRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.UpdateExample][google.cloud.ces.v1.AgentService.UpdateExample].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.UpdateExampleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.UpdateExampleRequest) + com.google.cloud.ces.v1.UpdateExampleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateExampleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateExampleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.UpdateExampleRequest.class, + com.google.cloud.ces.v1.UpdateExampleRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.UpdateExampleRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetExampleFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + example_ = null; + if (exampleBuilder_ != null) { + exampleBuilder_.dispose(); + exampleBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateExampleRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.UpdateExampleRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.UpdateExampleRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.UpdateExampleRequest build() { + com.google.cloud.ces.v1.UpdateExampleRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.UpdateExampleRequest buildPartial() { + com.google.cloud.ces.v1.UpdateExampleRequest result = + new com.google.cloud.ces.v1.UpdateExampleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.UpdateExampleRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.example_ = exampleBuilder_ == null ? example_ : exampleBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.UpdateExampleRequest) { + return mergeFrom((com.google.cloud.ces.v1.UpdateExampleRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.UpdateExampleRequest other) { + if (other == com.google.cloud.ces.v1.UpdateExampleRequest.getDefaultInstance()) return this; + if (other.hasExample()) { + mergeExample(other.getExample()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(internalGetExampleFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.ces.v1.Example example_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Example, + com.google.cloud.ces.v1.Example.Builder, + com.google.cloud.ces.v1.ExampleOrBuilder> + exampleBuilder_; + + /** + * + * + *
      +     * Required. The example to update.
      +     * 
      + * + * .google.cloud.ces.v1.Example example = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the example field is set. + */ + public boolean hasExample() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Required. The example to update.
      +     * 
      + * + * .google.cloud.ces.v1.Example example = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The example. + */ + public com.google.cloud.ces.v1.Example getExample() { + if (exampleBuilder_ == null) { + return example_ == null ? com.google.cloud.ces.v1.Example.getDefaultInstance() : example_; + } else { + return exampleBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Required. The example to update.
      +     * 
      + * + * .google.cloud.ces.v1.Example example = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExample(com.google.cloud.ces.v1.Example value) { + if (exampleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + example_ = value; + } else { + exampleBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The example to update.
      +     * 
      + * + * .google.cloud.ces.v1.Example example = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExample(com.google.cloud.ces.v1.Example.Builder builderForValue) { + if (exampleBuilder_ == null) { + example_ = builderForValue.build(); + } else { + exampleBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The example to update.
      +     * 
      + * + * .google.cloud.ces.v1.Example example = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeExample(com.google.cloud.ces.v1.Example value) { + if (exampleBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && example_ != null + && example_ != com.google.cloud.ces.v1.Example.getDefaultInstance()) { + getExampleBuilder().mergeFrom(value); + } else { + example_ = value; + } + } else { + exampleBuilder_.mergeFrom(value); + } + if (example_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Required. The example to update.
      +     * 
      + * + * .google.cloud.ces.v1.Example example = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearExample() { + bitField0_ = (bitField0_ & ~0x00000001); + example_ = null; + if (exampleBuilder_ != null) { + exampleBuilder_.dispose(); + exampleBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The example to update.
      +     * 
      + * + * .google.cloud.ces.v1.Example example = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.Example.Builder getExampleBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetExampleFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Required. The example to update.
      +     * 
      + * + * .google.cloud.ces.v1.Example example = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.ExampleOrBuilder getExampleOrBuilder() { + if (exampleBuilder_ != null) { + return exampleBuilder_.getMessageOrBuilder(); + } else { + return example_ == null ? com.google.cloud.ces.v1.Example.getDefaultInstance() : example_; + } + } + + /** + * + * + *
      +     * Required. The example to update.
      +     * 
      + * + * .google.cloud.ces.v1.Example example = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Example, + com.google.cloud.ces.v1.Example.Builder, + com.google.cloud.ces.v1.ExampleOrBuilder> + internalGetExampleFieldBuilder() { + if (exampleBuilder_ == null) { + exampleBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Example, + com.google.cloud.ces.v1.Example.Builder, + com.google.cloud.ces.v1.ExampleOrBuilder>( + getExample(), getParentForChildren(), isClean()); + example_ = null; + } + return exampleBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.UpdateExampleRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.UpdateExampleRequest) + private static final com.google.cloud.ces.v1.UpdateExampleRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.UpdateExampleRequest(); + } + + public static com.google.cloud.ces.v1.UpdateExampleRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateExampleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.UpdateExampleRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateExampleRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateExampleRequestOrBuilder.java new file mode 100644 index 000000000000..623b7db632b7 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateExampleRequestOrBuilder.java @@ -0,0 +1,111 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface UpdateExampleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.UpdateExampleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The example to update.
      +   * 
      + * + * .google.cloud.ces.v1.Example example = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the example field is set. + */ + boolean hasExample(); + + /** + * + * + *
      +   * Required. The example to update.
      +   * 
      + * + * .google.cloud.ces.v1.Example example = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The example. + */ + com.google.cloud.ces.v1.Example getExample(); + + /** + * + * + *
      +   * Required. The example to update.
      +   * 
      + * + * .google.cloud.ces.v1.Example example = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.ExampleOrBuilder getExampleOrBuilder(); + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateGuardrailRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateGuardrailRequest.java new file mode 100644 index 000000000000..0f6c99f4584d --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateGuardrailRequest.java @@ -0,0 +1,1008 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.UpdateGuardrail][google.cloud.ces.v1.AgentService.UpdateGuardrail].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.UpdateGuardrailRequest} + */ +@com.google.protobuf.Generated +public final class UpdateGuardrailRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.UpdateGuardrailRequest) + UpdateGuardrailRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateGuardrailRequest"); + } + + // Use UpdateGuardrailRequest.newBuilder() to construct. + private UpdateGuardrailRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateGuardrailRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateGuardrailRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateGuardrailRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.UpdateGuardrailRequest.class, + com.google.cloud.ces.v1.UpdateGuardrailRequest.Builder.class); + } + + private int bitField0_; + public static final int GUARDRAIL_FIELD_NUMBER = 1; + private com.google.cloud.ces.v1.Guardrail guardrail_; + + /** + * + * + *
      +   * Required. The guardrail to update.
      +   * 
      + * + * .google.cloud.ces.v1.Guardrail guardrail = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the guardrail field is set. + */ + @java.lang.Override + public boolean hasGuardrail() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Required. The guardrail to update.
      +   * 
      + * + * .google.cloud.ces.v1.Guardrail guardrail = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The guardrail. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Guardrail getGuardrail() { + return guardrail_ == null ? com.google.cloud.ces.v1.Guardrail.getDefaultInstance() : guardrail_; + } + + /** + * + * + *
      +   * Required. The guardrail to update.
      +   * 
      + * + * .google.cloud.ces.v1.Guardrail guardrail = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.GuardrailOrBuilder getGuardrailOrBuilder() { + return guardrail_ == null ? com.google.cloud.ces.v1.Guardrail.getDefaultInstance() : guardrail_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getGuardrail()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGuardrail()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.UpdateGuardrailRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.UpdateGuardrailRequest other = + (com.google.cloud.ces.v1.UpdateGuardrailRequest) obj; + + if (hasGuardrail() != other.hasGuardrail()) return false; + if (hasGuardrail()) { + if (!getGuardrail().equals(other.getGuardrail())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGuardrail()) { + hash = (37 * hash) + GUARDRAIL_FIELD_NUMBER; + hash = (53 * hash) + getGuardrail().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.UpdateGuardrailRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.UpdateGuardrailRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateGuardrailRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.UpdateGuardrailRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateGuardrailRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.UpdateGuardrailRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateGuardrailRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.UpdateGuardrailRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateGuardrailRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.UpdateGuardrailRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateGuardrailRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.UpdateGuardrailRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.UpdateGuardrailRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.UpdateGuardrail][google.cloud.ces.v1.AgentService.UpdateGuardrail].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.UpdateGuardrailRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.UpdateGuardrailRequest) + com.google.cloud.ces.v1.UpdateGuardrailRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateGuardrailRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateGuardrailRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.UpdateGuardrailRequest.class, + com.google.cloud.ces.v1.UpdateGuardrailRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.UpdateGuardrailRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetGuardrailFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + guardrail_ = null; + if (guardrailBuilder_ != null) { + guardrailBuilder_.dispose(); + guardrailBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateGuardrailRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.UpdateGuardrailRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.UpdateGuardrailRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.UpdateGuardrailRequest build() { + com.google.cloud.ces.v1.UpdateGuardrailRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.UpdateGuardrailRequest buildPartial() { + com.google.cloud.ces.v1.UpdateGuardrailRequest result = + new com.google.cloud.ces.v1.UpdateGuardrailRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.UpdateGuardrailRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.guardrail_ = guardrailBuilder_ == null ? guardrail_ : guardrailBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.UpdateGuardrailRequest) { + return mergeFrom((com.google.cloud.ces.v1.UpdateGuardrailRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.UpdateGuardrailRequest other) { + if (other == com.google.cloud.ces.v1.UpdateGuardrailRequest.getDefaultInstance()) return this; + if (other.hasGuardrail()) { + mergeGuardrail(other.getGuardrail()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetGuardrailFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.ces.v1.Guardrail guardrail_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Guardrail, + com.google.cloud.ces.v1.Guardrail.Builder, + com.google.cloud.ces.v1.GuardrailOrBuilder> + guardrailBuilder_; + + /** + * + * + *
      +     * Required. The guardrail to update.
      +     * 
      + * + * .google.cloud.ces.v1.Guardrail guardrail = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the guardrail field is set. + */ + public boolean hasGuardrail() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Required. The guardrail to update.
      +     * 
      + * + * .google.cloud.ces.v1.Guardrail guardrail = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The guardrail. + */ + public com.google.cloud.ces.v1.Guardrail getGuardrail() { + if (guardrailBuilder_ == null) { + return guardrail_ == null + ? com.google.cloud.ces.v1.Guardrail.getDefaultInstance() + : guardrail_; + } else { + return guardrailBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Required. The guardrail to update.
      +     * 
      + * + * .google.cloud.ces.v1.Guardrail guardrail = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGuardrail(com.google.cloud.ces.v1.Guardrail value) { + if (guardrailBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + guardrail_ = value; + } else { + guardrailBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The guardrail to update.
      +     * 
      + * + * .google.cloud.ces.v1.Guardrail guardrail = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGuardrail(com.google.cloud.ces.v1.Guardrail.Builder builderForValue) { + if (guardrailBuilder_ == null) { + guardrail_ = builderForValue.build(); + } else { + guardrailBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The guardrail to update.
      +     * 
      + * + * .google.cloud.ces.v1.Guardrail guardrail = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeGuardrail(com.google.cloud.ces.v1.Guardrail value) { + if (guardrailBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && guardrail_ != null + && guardrail_ != com.google.cloud.ces.v1.Guardrail.getDefaultInstance()) { + getGuardrailBuilder().mergeFrom(value); + } else { + guardrail_ = value; + } + } else { + guardrailBuilder_.mergeFrom(value); + } + if (guardrail_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Required. The guardrail to update.
      +     * 
      + * + * .google.cloud.ces.v1.Guardrail guardrail = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearGuardrail() { + bitField0_ = (bitField0_ & ~0x00000001); + guardrail_ = null; + if (guardrailBuilder_ != null) { + guardrailBuilder_.dispose(); + guardrailBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The guardrail to update.
      +     * 
      + * + * .google.cloud.ces.v1.Guardrail guardrail = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.Guardrail.Builder getGuardrailBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetGuardrailFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Required. The guardrail to update.
      +     * 
      + * + * .google.cloud.ces.v1.Guardrail guardrail = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.GuardrailOrBuilder getGuardrailOrBuilder() { + if (guardrailBuilder_ != null) { + return guardrailBuilder_.getMessageOrBuilder(); + } else { + return guardrail_ == null + ? com.google.cloud.ces.v1.Guardrail.getDefaultInstance() + : guardrail_; + } + } + + /** + * + * + *
      +     * Required. The guardrail to update.
      +     * 
      + * + * .google.cloud.ces.v1.Guardrail guardrail = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Guardrail, + com.google.cloud.ces.v1.Guardrail.Builder, + com.google.cloud.ces.v1.GuardrailOrBuilder> + internalGetGuardrailFieldBuilder() { + if (guardrailBuilder_ == null) { + guardrailBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Guardrail, + com.google.cloud.ces.v1.Guardrail.Builder, + com.google.cloud.ces.v1.GuardrailOrBuilder>( + getGuardrail(), getParentForChildren(), isClean()); + guardrail_ = null; + } + return guardrailBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.UpdateGuardrailRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.UpdateGuardrailRequest) + private static final com.google.cloud.ces.v1.UpdateGuardrailRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.UpdateGuardrailRequest(); + } + + public static com.google.cloud.ces.v1.UpdateGuardrailRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateGuardrailRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.UpdateGuardrailRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateGuardrailRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateGuardrailRequestOrBuilder.java new file mode 100644 index 000000000000..3577a2025b6f --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateGuardrailRequestOrBuilder.java @@ -0,0 +1,111 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface UpdateGuardrailRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.UpdateGuardrailRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The guardrail to update.
      +   * 
      + * + * .google.cloud.ces.v1.Guardrail guardrail = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the guardrail field is set. + */ + boolean hasGuardrail(); + + /** + * + * + *
      +   * Required. The guardrail to update.
      +   * 
      + * + * .google.cloud.ces.v1.Guardrail guardrail = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The guardrail. + */ + com.google.cloud.ces.v1.Guardrail getGuardrail(); + + /** + * + * + *
      +   * Required. The guardrail to update.
      +   * 
      + * + * .google.cloud.ces.v1.Guardrail guardrail = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.GuardrailOrBuilder getGuardrailOrBuilder(); + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateToolRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateToolRequest.java new file mode 100644 index 000000000000..984cdb400d5f --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateToolRequest.java @@ -0,0 +1,991 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.UpdateTool][google.cloud.ces.v1.AgentService.UpdateTool].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.UpdateToolRequest} + */ +@com.google.protobuf.Generated +public final class UpdateToolRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.UpdateToolRequest) + UpdateToolRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateToolRequest"); + } + + // Use UpdateToolRequest.newBuilder() to construct. + private UpdateToolRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateToolRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateToolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateToolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.UpdateToolRequest.class, + com.google.cloud.ces.v1.UpdateToolRequest.Builder.class); + } + + private int bitField0_; + public static final int TOOL_FIELD_NUMBER = 1; + private com.google.cloud.ces.v1.Tool tool_; + + /** + * + * + *
      +   * Required. The tool to update.
      +   * 
      + * + * .google.cloud.ces.v1.Tool tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the tool field is set. + */ + @java.lang.Override + public boolean hasTool() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Required. The tool to update.
      +   * 
      + * + * .google.cloud.ces.v1.Tool tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tool. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Tool getTool() { + return tool_ == null ? com.google.cloud.ces.v1.Tool.getDefaultInstance() : tool_; + } + + /** + * + * + *
      +   * Required. The tool to update.
      +   * 
      + * + * .google.cloud.ces.v1.Tool tool = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolOrBuilder getToolOrBuilder() { + return tool_ == null ? com.google.cloud.ces.v1.Tool.getDefaultInstance() : tool_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getTool()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTool()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.UpdateToolRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.UpdateToolRequest other = + (com.google.cloud.ces.v1.UpdateToolRequest) obj; + + if (hasTool() != other.hasTool()) return false; + if (hasTool()) { + if (!getTool().equals(other.getTool())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTool()) { + hash = (37 * hash) + TOOL_FIELD_NUMBER; + hash = (53 * hash) + getTool().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.UpdateToolRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.UpdateToolRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateToolRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.UpdateToolRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateToolRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.UpdateToolRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateToolRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.UpdateToolRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateToolRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.UpdateToolRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateToolRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.UpdateToolRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.UpdateToolRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.UpdateTool][google.cloud.ces.v1.AgentService.UpdateTool].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.UpdateToolRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.UpdateToolRequest) + com.google.cloud.ces.v1.UpdateToolRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateToolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateToolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.UpdateToolRequest.class, + com.google.cloud.ces.v1.UpdateToolRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.UpdateToolRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetToolFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + tool_ = null; + if (toolBuilder_ != null) { + toolBuilder_.dispose(); + toolBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateToolRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.UpdateToolRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.UpdateToolRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.UpdateToolRequest build() { + com.google.cloud.ces.v1.UpdateToolRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.UpdateToolRequest buildPartial() { + com.google.cloud.ces.v1.UpdateToolRequest result = + new com.google.cloud.ces.v1.UpdateToolRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.UpdateToolRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tool_ = toolBuilder_ == null ? tool_ : toolBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.UpdateToolRequest) { + return mergeFrom((com.google.cloud.ces.v1.UpdateToolRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.UpdateToolRequest other) { + if (other == com.google.cloud.ces.v1.UpdateToolRequest.getDefaultInstance()) return this; + if (other.hasTool()) { + mergeTool(other.getTool()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(internalGetToolFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.ces.v1.Tool tool_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Tool, + com.google.cloud.ces.v1.Tool.Builder, + com.google.cloud.ces.v1.ToolOrBuilder> + toolBuilder_; + + /** + * + * + *
      +     * Required. The tool to update.
      +     * 
      + * + * .google.cloud.ces.v1.Tool tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the tool field is set. + */ + public boolean hasTool() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Required. The tool to update.
      +     * 
      + * + * .google.cloud.ces.v1.Tool tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tool. + */ + public com.google.cloud.ces.v1.Tool getTool() { + if (toolBuilder_ == null) { + return tool_ == null ? com.google.cloud.ces.v1.Tool.getDefaultInstance() : tool_; + } else { + return toolBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Required. The tool to update.
      +     * 
      + * + * .google.cloud.ces.v1.Tool tool = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setTool(com.google.cloud.ces.v1.Tool value) { + if (toolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tool_ = value; + } else { + toolBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The tool to update.
      +     * 
      + * + * .google.cloud.ces.v1.Tool tool = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setTool(com.google.cloud.ces.v1.Tool.Builder builderForValue) { + if (toolBuilder_ == null) { + tool_ = builderForValue.build(); + } else { + toolBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The tool to update.
      +     * 
      + * + * .google.cloud.ces.v1.Tool tool = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeTool(com.google.cloud.ces.v1.Tool value) { + if (toolBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && tool_ != null + && tool_ != com.google.cloud.ces.v1.Tool.getDefaultInstance()) { + getToolBuilder().mergeFrom(value); + } else { + tool_ = value; + } + } else { + toolBuilder_.mergeFrom(value); + } + if (tool_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Required. The tool to update.
      +     * 
      + * + * .google.cloud.ces.v1.Tool tool = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearTool() { + bitField0_ = (bitField0_ & ~0x00000001); + tool_ = null; + if (toolBuilder_ != null) { + toolBuilder_.dispose(); + toolBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The tool to update.
      +     * 
      + * + * .google.cloud.ces.v1.Tool tool = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.ces.v1.Tool.Builder getToolBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetToolFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Required. The tool to update.
      +     * 
      + * + * .google.cloud.ces.v1.Tool tool = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.ces.v1.ToolOrBuilder getToolOrBuilder() { + if (toolBuilder_ != null) { + return toolBuilder_.getMessageOrBuilder(); + } else { + return tool_ == null ? com.google.cloud.ces.v1.Tool.getDefaultInstance() : tool_; + } + } + + /** + * + * + *
      +     * Required. The tool to update.
      +     * 
      + * + * .google.cloud.ces.v1.Tool tool = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Tool, + com.google.cloud.ces.v1.Tool.Builder, + com.google.cloud.ces.v1.ToolOrBuilder> + internalGetToolFieldBuilder() { + if (toolBuilder_ == null) { + toolBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Tool, + com.google.cloud.ces.v1.Tool.Builder, + com.google.cloud.ces.v1.ToolOrBuilder>( + getTool(), getParentForChildren(), isClean()); + tool_ = null; + } + return toolBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.UpdateToolRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.UpdateToolRequest) + private static final com.google.cloud.ces.v1.UpdateToolRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.UpdateToolRequest(); + } + + public static com.google.cloud.ces.v1.UpdateToolRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateToolRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.UpdateToolRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateToolRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateToolRequestOrBuilder.java new file mode 100644 index 000000000000..2cdefed46262 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateToolRequestOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface UpdateToolRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.UpdateToolRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The tool to update.
      +   * 
      + * + * .google.cloud.ces.v1.Tool tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the tool field is set. + */ + boolean hasTool(); + + /** + * + * + *
      +   * Required. The tool to update.
      +   * 
      + * + * .google.cloud.ces.v1.Tool tool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tool. + */ + com.google.cloud.ces.v1.Tool getTool(); + + /** + * + * + *
      +   * Required. The tool to update.
      +   * 
      + * + * .google.cloud.ces.v1.Tool tool = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.ces.v1.ToolOrBuilder getToolOrBuilder(); + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateToolsetRequest.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateToolsetRequest.java new file mode 100644 index 000000000000..ebabe00dfd85 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateToolsetRequest.java @@ -0,0 +1,1003 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Request message for
      + * [AgentService.UpdateToolset][google.cloud.ces.v1.AgentService.UpdateToolset].
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.UpdateToolsetRequest} + */ +@com.google.protobuf.Generated +public final class UpdateToolsetRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.UpdateToolsetRequest) + UpdateToolsetRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateToolsetRequest"); + } + + // Use UpdateToolsetRequest.newBuilder() to construct. + private UpdateToolsetRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateToolsetRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateToolsetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateToolsetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.UpdateToolsetRequest.class, + com.google.cloud.ces.v1.UpdateToolsetRequest.Builder.class); + } + + private int bitField0_; + public static final int TOOLSET_FIELD_NUMBER = 1; + private com.google.cloud.ces.v1.Toolset toolset_; + + /** + * + * + *
      +   * Required. The toolset to update.
      +   * 
      + * + * .google.cloud.ces.v1.Toolset toolset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the toolset field is set. + */ + @java.lang.Override + public boolean hasToolset() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +   * Required. The toolset to update.
      +   * 
      + * + * .google.cloud.ces.v1.Toolset toolset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The toolset. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Toolset getToolset() { + return toolset_ == null ? com.google.cloud.ces.v1.Toolset.getDefaultInstance() : toolset_; + } + + /** + * + * + *
      +   * Required. The toolset to update.
      +   * 
      + * + * .google.cloud.ces.v1.Toolset toolset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.ToolsetOrBuilder getToolsetOrBuilder() { + return toolset_ == null ? com.google.cloud.ces.v1.Toolset.getDefaultInstance() : toolset_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getToolset()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getToolset()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.UpdateToolsetRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.UpdateToolsetRequest other = + (com.google.cloud.ces.v1.UpdateToolsetRequest) obj; + + if (hasToolset() != other.hasToolset()) return false; + if (hasToolset()) { + if (!getToolset().equals(other.getToolset())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasToolset()) { + hash = (37 * hash) + TOOLSET_FIELD_NUMBER; + hash = (53 * hash) + getToolset().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.UpdateToolsetRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.UpdateToolsetRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateToolsetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.UpdateToolsetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateToolsetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.UpdateToolsetRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateToolsetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.UpdateToolsetRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateToolsetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.UpdateToolsetRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.UpdateToolsetRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.UpdateToolsetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.UpdateToolsetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Request message for
      +   * [AgentService.UpdateToolset][google.cloud.ces.v1.AgentService.UpdateToolset].
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.UpdateToolsetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.UpdateToolsetRequest) + com.google.cloud.ces.v1.UpdateToolsetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateToolsetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateToolsetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.UpdateToolsetRequest.class, + com.google.cloud.ces.v1.UpdateToolsetRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.UpdateToolsetRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetToolsetFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + toolset_ = null; + if (toolsetBuilder_ != null) { + toolsetBuilder_.dispose(); + toolsetBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.AgentServiceProto + .internal_static_google_cloud_ces_v1_UpdateToolsetRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.UpdateToolsetRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1.UpdateToolsetRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.UpdateToolsetRequest build() { + com.google.cloud.ces.v1.UpdateToolsetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.UpdateToolsetRequest buildPartial() { + com.google.cloud.ces.v1.UpdateToolsetRequest result = + new com.google.cloud.ces.v1.UpdateToolsetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.UpdateToolsetRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.toolset_ = toolsetBuilder_ == null ? toolset_ : toolsetBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.UpdateToolsetRequest) { + return mergeFrom((com.google.cloud.ces.v1.UpdateToolsetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.UpdateToolsetRequest other) { + if (other == com.google.cloud.ces.v1.UpdateToolsetRequest.getDefaultInstance()) return this; + if (other.hasToolset()) { + mergeToolset(other.getToolset()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(internalGetToolsetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.ces.v1.Toolset toolset_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Toolset, + com.google.cloud.ces.v1.Toolset.Builder, + com.google.cloud.ces.v1.ToolsetOrBuilder> + toolsetBuilder_; + + /** + * + * + *
      +     * Required. The toolset to update.
      +     * 
      + * + * .google.cloud.ces.v1.Toolset toolset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the toolset field is set. + */ + public boolean hasToolset() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Required. The toolset to update.
      +     * 
      + * + * .google.cloud.ces.v1.Toolset toolset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The toolset. + */ + public com.google.cloud.ces.v1.Toolset getToolset() { + if (toolsetBuilder_ == null) { + return toolset_ == null ? com.google.cloud.ces.v1.Toolset.getDefaultInstance() : toolset_; + } else { + return toolsetBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Required. The toolset to update.
      +     * 
      + * + * .google.cloud.ces.v1.Toolset toolset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setToolset(com.google.cloud.ces.v1.Toolset value) { + if (toolsetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolset_ = value; + } else { + toolsetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The toolset to update.
      +     * 
      + * + * .google.cloud.ces.v1.Toolset toolset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setToolset(com.google.cloud.ces.v1.Toolset.Builder builderForValue) { + if (toolsetBuilder_ == null) { + toolset_ = builderForValue.build(); + } else { + toolsetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The toolset to update.
      +     * 
      + * + * .google.cloud.ces.v1.Toolset toolset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeToolset(com.google.cloud.ces.v1.Toolset value) { + if (toolsetBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && toolset_ != null + && toolset_ != com.google.cloud.ces.v1.Toolset.getDefaultInstance()) { + getToolsetBuilder().mergeFrom(value); + } else { + toolset_ = value; + } + } else { + toolsetBuilder_.mergeFrom(value); + } + if (toolset_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Required. The toolset to update.
      +     * 
      + * + * .google.cloud.ces.v1.Toolset toolset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearToolset() { + bitField0_ = (bitField0_ & ~0x00000001); + toolset_ = null; + if (toolsetBuilder_ != null) { + toolsetBuilder_.dispose(); + toolsetBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The toolset to update.
      +     * 
      + * + * .google.cloud.ces.v1.Toolset toolset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.Toolset.Builder getToolsetBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetToolsetFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Required. The toolset to update.
      +     * 
      + * + * .google.cloud.ces.v1.Toolset toolset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1.ToolsetOrBuilder getToolsetOrBuilder() { + if (toolsetBuilder_ != null) { + return toolsetBuilder_.getMessageOrBuilder(); + } else { + return toolset_ == null ? com.google.cloud.ces.v1.Toolset.getDefaultInstance() : toolset_; + } + } + + /** + * + * + *
      +     * Required. The toolset to update.
      +     * 
      + * + * .google.cloud.ces.v1.Toolset toolset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Toolset, + com.google.cloud.ces.v1.Toolset.Builder, + com.google.cloud.ces.v1.ToolsetOrBuilder> + internalGetToolsetFieldBuilder() { + if (toolsetBuilder_ == null) { + toolsetBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Toolset, + com.google.cloud.ces.v1.Toolset.Builder, + com.google.cloud.ces.v1.ToolsetOrBuilder>( + getToolset(), getParentForChildren(), isClean()); + toolset_ = null; + } + return toolsetBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
      +     * Optional. Field mask is used to control which fields get updated. If the
      +     * mask is not present, all fields will be updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.UpdateToolsetRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.UpdateToolsetRequest) + private static final com.google.cloud.ces.v1.UpdateToolsetRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.UpdateToolsetRequest(); + } + + public static com.google.cloud.ces.v1.UpdateToolsetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateToolsetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.UpdateToolsetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateToolsetRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateToolsetRequestOrBuilder.java new file mode 100644 index 000000000000..2096b948b912 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/UpdateToolsetRequestOrBuilder.java @@ -0,0 +1,111 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/agent_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface UpdateToolsetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.UpdateToolsetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. The toolset to update.
      +   * 
      + * + * .google.cloud.ces.v1.Toolset toolset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the toolset field is set. + */ + boolean hasToolset(); + + /** + * + * + *
      +   * Required. The toolset to update.
      +   * 
      + * + * .google.cloud.ces.v1.Toolset toolset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The toolset. + */ + com.google.cloud.ces.v1.Toolset getToolset(); + + /** + * + * + *
      +   * Required. The toolset to update.
      +   * 
      + * + * .google.cloud.ces.v1.Toolset toolset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1.ToolsetOrBuilder getToolsetOrBuilder(); + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
      +   * Optional. Field mask is used to control which fields get updated. If the
      +   * mask is not present, all fields will be updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WebSearchQuery.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WebSearchQuery.java new file mode 100644 index 000000000000..9240602506a0 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WebSearchQuery.java @@ -0,0 +1,783 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/search_suggestions.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Represents a single web search query and its associated search uri.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.WebSearchQuery} + */ +@com.google.protobuf.Generated +public final class WebSearchQuery extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.WebSearchQuery) + WebSearchQueryOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "WebSearchQuery"); + } + + // Use WebSearchQuery.newBuilder() to construct. + private WebSearchQuery(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private WebSearchQuery() { + query_ = ""; + uri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SearchSuggestionsProto + .internal_static_google_cloud_ces_v1_WebSearchQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SearchSuggestionsProto + .internal_static_google_cloud_ces_v1_WebSearchQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.WebSearchQuery.class, + com.google.cloud.ces.v1.WebSearchQuery.Builder.class); + } + + public static final int QUERY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object query_ = ""; + + /** + * + * + *
      +   * The search query text.
      +   * 
      + * + * string query = 1; + * + * @return The query. + */ + @java.lang.Override + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } + } + + /** + * + * + *
      +   * The search query text.
      +   * 
      + * + * string query = 1; + * + * @return The bytes for query. + */ + @java.lang.Override + 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); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + + /** + * + * + *
      +   * The URI to the Google Search results page for the query.
      +   * 
      + * + * string uri = 2; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + + /** + * + * + *
      +   * The URI to the Google Search results page for the query.
      +   * 
      + * + * string uri = 2; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(query_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, query_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, uri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(query_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, query_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uri_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.WebSearchQuery)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.WebSearchQuery other = (com.google.cloud.ces.v1.WebSearchQuery) obj; + + if (!getQuery().equals(other.getQuery())) return false; + if (!getUri().equals(other.getUri())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.WebSearchQuery parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.WebSearchQuery parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.WebSearchQuery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.WebSearchQuery parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.WebSearchQuery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.WebSearchQuery parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.WebSearchQuery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.WebSearchQuery parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.WebSearchQuery parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.WebSearchQuery parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.WebSearchQuery parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.WebSearchQuery parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.WebSearchQuery prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Represents a single web search query and its associated search uri.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.WebSearchQuery} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.WebSearchQuery) + com.google.cloud.ces.v1.WebSearchQueryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.SearchSuggestionsProto + .internal_static_google_cloud_ces_v1_WebSearchQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.SearchSuggestionsProto + .internal_static_google_cloud_ces_v1_WebSearchQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.WebSearchQuery.class, + com.google.cloud.ces.v1.WebSearchQuery.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.WebSearchQuery.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + query_ = ""; + uri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.SearchSuggestionsProto + .internal_static_google_cloud_ces_v1_WebSearchQuery_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.WebSearchQuery getDefaultInstanceForType() { + return com.google.cloud.ces.v1.WebSearchQuery.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.WebSearchQuery build() { + com.google.cloud.ces.v1.WebSearchQuery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.WebSearchQuery buildPartial() { + com.google.cloud.ces.v1.WebSearchQuery result = + new com.google.cloud.ces.v1.WebSearchQuery(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.WebSearchQuery result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.query_ = query_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uri_ = uri_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.WebSearchQuery) { + return mergeFrom((com.google.cloud.ces.v1.WebSearchQuery) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.WebSearchQuery other) { + if (other == com.google.cloud.ces.v1.WebSearchQuery.getDefaultInstance()) return this; + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + query_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + uri_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object query_ = ""; + + /** + * + * + *
      +     * The search query text.
      +     * 
      + * + * string query = 1; + * + * @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; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * The search query text.
      +     * 
      + * + * string query = 1; + * + * @return The bytes for query. + */ + 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); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * The search query text.
      +     * 
      + * + * string query = 1; + * + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + query_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The search query text.
      +     * 
      + * + * string query = 1; + * + * @return This builder for chaining. + */ + public Builder clearQuery() { + query_ = getDefaultInstance().getQuery(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * The search query text.
      +     * 
      + * + * string query = 1; + * + * @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(); + } + checkByteStringIsUtf8(value); + query_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object uri_ = ""; + + /** + * + * + *
      +     * The URI to the Google Search results page for the query.
      +     * 
      + * + * string uri = 2; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * The URI to the Google Search results page for the query.
      +     * 
      + * + * string uri = 2; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * The URI to the Google Search results page for the query.
      +     * 
      + * + * string uri = 2; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * The URI to the Google Search results page for the query.
      +     * 
      + * + * string uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * The URI to the Google Search results page for the query.
      +     * 
      + * + * string uri = 2; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.WebSearchQuery) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.WebSearchQuery) + private static final com.google.cloud.ces.v1.WebSearchQuery DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.WebSearchQuery(); + } + + public static com.google.cloud.ces.v1.WebSearchQuery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebSearchQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.WebSearchQuery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WebSearchQueryOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WebSearchQueryOrBuilder.java new file mode 100644 index 000000000000..dd88f754cc6a --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WebSearchQueryOrBuilder.java @@ -0,0 +1,80 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/search_suggestions.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface WebSearchQueryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.WebSearchQuery) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * The search query text.
      +   * 
      + * + * string query = 1; + * + * @return The query. + */ + java.lang.String getQuery(); + + /** + * + * + *
      +   * The search query text.
      +   * 
      + * + * string query = 1; + * + * @return The bytes for query. + */ + com.google.protobuf.ByteString getQueryBytes(); + + /** + * + * + *
      +   * The URI to the Google Search results page for the query.
      +   * 
      + * + * string uri = 2; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
      +   * The URI to the Google Search results page for the query.
      +   * 
      + * + * string uri = 2; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetServiceProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetServiceProto.java new file mode 100644 index 000000000000..23ae2c9aaa33 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetServiceProto.java @@ -0,0 +1,128 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/widget_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class WidgetServiceProto extends com.google.protobuf.GeneratedFile { + private WidgetServiceProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "WidgetServiceProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_GenerateChatTokenRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_GenerateChatTokenRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_GenerateChatTokenResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_GenerateChatTokenResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n(google/cloud/ces/v1/widget_service.pro" + + "to\022\023google.cloud.ces.v1\032\034google/api/anno" + + "tations.proto\032\027google/api/client.proto\032\037" + + "google/api/field_behavior.proto\032\031google/" + + "api/resource.proto\032\037google/protobuf/time" + + "stamp.proto\"\245\001\n\030GenerateChatTokenRequest" + + "\0220\n\004name\030\001 \001(\tB\"\340A\002\372A\034\n\032ces.googleapis.c" + + "om/Session\0229\n\ndeployment\030\002 \001(\tB%\340A\002\372A\037\n\035" + + "ces.googleapis.com/Deployment\022\034\n\017recaptc" + + "ha_token\030\003 \001(\tB\003\340A\001\"`\n\031GenerateChatToken" + + "Response\022\022\n\nchat_token\030\001 \001(\t\022/\n\013expire_t" + + "ime\030\002 \001(\0132\032.google.protobuf.Timestamp2\302\002" + + "\n\rWidgetService\022\304\001\n\021GenerateChatToken\022-." + + "google.cloud.ces.v1.GenerateChatTokenReq" + + "uest\032..google.cloud.ces.v1.GenerateChatT" + + "okenResponse\"P\202\323\344\223\002J\"E/v1/{name=projects" + + "/*/locations/*/apps/*/sessions/*}:genera" + + "teChatToken:\001*\032j\312A\022ces.googleapis.com\322AR" + + "https://www.googleapis.com/auth/ces,http" + + "s://www.googleapis.com/auth/cloud-platfo" + + "rmBZ\n\027com.google.cloud.ces.v1B\022WidgetSer" + + "viceProtoP\001Z)cloud.google.com/go/ces/api" + + "v1/cespb;cespbb\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.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_GenerateChatTokenRequest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_GenerateChatTokenRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_GenerateChatTokenRequest_descriptor, + new java.lang.String[] { + "Name", "Deployment", "RecaptchaToken", + }); + internal_static_google_cloud_ces_v1_GenerateChatTokenResponse_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_ces_v1_GenerateChatTokenResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_GenerateChatTokenResponse_descriptor, + new java.lang.String[] { + "ChatToken", "ExpireTime", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetTool.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetTool.java new file mode 100644 index 000000000000..72e57048d7e5 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetTool.java @@ -0,0 +1,1715 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/widget_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +/** + * + * + *
      + * Represents a widget tool that the agent can invoke. When the tool is chosen
      + * by the agent, agent will return the widget to the client. The client is
      + * responsible for processing the widget and generating the next user query to
      + * continue the interaction with the agent.
      + * 
      + * + * Protobuf type {@code google.cloud.ces.v1.WidgetTool} + */ +@com.google.protobuf.Generated +public final class WidgetTool extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1.WidgetTool) + WidgetToolOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "WidgetTool"); + } + + // Use WidgetTool.newBuilder() to construct. + private WidgetTool(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private WidgetTool() { + name_ = ""; + description_ = ""; + widgetType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.WidgetToolProto + .internal_static_google_cloud_ces_v1_WidgetTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.WidgetToolProto + .internal_static_google_cloud_ces_v1_WidgetTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.WidgetTool.class, + com.google.cloud.ces.v1.WidgetTool.Builder.class); + } + + /** + * + * + *
      +   * All available widget types.
      +   * New values may be added to this enum in the future.
      +   * 
      + * + * Protobuf enum {@code google.cloud.ces.v1.WidgetTool.WidgetType} + */ + public enum WidgetType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Unspecified widget type.
      +     * 
      + * + * WIDGET_TYPE_UNSPECIFIED = 0; + */ + WIDGET_TYPE_UNSPECIFIED(0), + /** + * + * + *
      +     * Custom widget type.
      +     * 
      + * + * CUSTOM = 1; + */ + CUSTOM(1), + /** + * + * + *
      +     * Product carousel widget.
      +     * 
      + * + * PRODUCT_CAROUSEL = 2; + */ + PRODUCT_CAROUSEL(2), + /** + * + * + *
      +     * Product details widget.
      +     * 
      + * + * PRODUCT_DETAILS = 3; + */ + PRODUCT_DETAILS(3), + /** + * + * + *
      +     * Quick actions widget.
      +     * 
      + * + * QUICK_ACTIONS = 4; + */ + QUICK_ACTIONS(4), + /** + * + * + *
      +     * Product comparison widget.
      +     * 
      + * + * PRODUCT_COMPARISON = 5; + */ + PRODUCT_COMPARISON(5), + /** + * + * + *
      +     * Advanced product details widget.
      +     * 
      + * + * ADVANCED_PRODUCT_DETAILS = 6; + */ + ADVANCED_PRODUCT_DETAILS(6), + /** + * + * + *
      +     * Short form widget.
      +     * 
      + * + * SHORT_FORM = 7; + */ + SHORT_FORM(7), + /** + * + * + *
      +     * Overall satisfaction widget.
      +     * 
      + * + * OVERALL_SATISFACTION = 8; + */ + OVERALL_SATISFACTION(8), + /** + * + * + *
      +     * Order summary widget.
      +     * 
      + * + * ORDER_SUMMARY = 9; + */ + ORDER_SUMMARY(9), + /** + * + * + *
      +     * Appointment details widget.
      +     * 
      + * + * APPOINTMENT_DETAILS = 10; + */ + APPOINTMENT_DETAILS(10), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "WidgetType"); + } + + /** + * + * + *
      +     * Unspecified widget type.
      +     * 
      + * + * WIDGET_TYPE_UNSPECIFIED = 0; + */ + public static final int WIDGET_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * Custom widget type.
      +     * 
      + * + * CUSTOM = 1; + */ + public static final int CUSTOM_VALUE = 1; + + /** + * + * + *
      +     * Product carousel widget.
      +     * 
      + * + * PRODUCT_CAROUSEL = 2; + */ + public static final int PRODUCT_CAROUSEL_VALUE = 2; + + /** + * + * + *
      +     * Product details widget.
      +     * 
      + * + * PRODUCT_DETAILS = 3; + */ + public static final int PRODUCT_DETAILS_VALUE = 3; + + /** + * + * + *
      +     * Quick actions widget.
      +     * 
      + * + * QUICK_ACTIONS = 4; + */ + public static final int QUICK_ACTIONS_VALUE = 4; + + /** + * + * + *
      +     * Product comparison widget.
      +     * 
      + * + * PRODUCT_COMPARISON = 5; + */ + public static final int PRODUCT_COMPARISON_VALUE = 5; + + /** + * + * + *
      +     * Advanced product details widget.
      +     * 
      + * + * ADVANCED_PRODUCT_DETAILS = 6; + */ + public static final int ADVANCED_PRODUCT_DETAILS_VALUE = 6; + + /** + * + * + *
      +     * Short form widget.
      +     * 
      + * + * SHORT_FORM = 7; + */ + public static final int SHORT_FORM_VALUE = 7; + + /** + * + * + *
      +     * Overall satisfaction widget.
      +     * 
      + * + * OVERALL_SATISFACTION = 8; + */ + public static final int OVERALL_SATISFACTION_VALUE = 8; + + /** + * + * + *
      +     * Order summary widget.
      +     * 
      + * + * ORDER_SUMMARY = 9; + */ + public static final int ORDER_SUMMARY_VALUE = 9; + + /** + * + * + *
      +     * Appointment details widget.
      +     * 
      + * + * APPOINTMENT_DETAILS = 10; + */ + public static final int APPOINTMENT_DETAILS_VALUE = 10; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static WidgetType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static WidgetType forNumber(int value) { + switch (value) { + case 0: + return WIDGET_TYPE_UNSPECIFIED; + case 1: + return CUSTOM; + case 2: + return PRODUCT_CAROUSEL; + case 3: + return PRODUCT_DETAILS; + case 4: + return QUICK_ACTIONS; + case 5: + return PRODUCT_COMPARISON; + case 6: + return ADVANCED_PRODUCT_DETAILS; + case 7: + return SHORT_FORM; + case 8: + return OVERALL_SATISFACTION; + case 9: + return ORDER_SUMMARY; + case 10: + return APPOINTMENT_DETAILS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public WidgetType findValueByNumber(int number) { + return WidgetType.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1.WidgetTool.getDescriptor().getEnumTypes().get(0); + } + + private static final WidgetType[] VALUES = values(); + + public static WidgetType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private WidgetType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1.WidgetTool.WidgetType) + } + + private int inputCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object input_; + + public enum InputCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PARAMETERS(4), + INPUT_NOT_SET(0); + private final int value; + + private InputCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static InputCase valueOf(int value) { + return forNumber(value); + } + + public static InputCase forNumber(int value) { + switch (value) { + case 4: + return PARAMETERS; + case 0: + return INPUT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public InputCase getInputCase() { + return InputCase.forNumber(inputCase_); + } + + public static final int PARAMETERS_FIELD_NUMBER = 4; + + /** + * + * + *
      +   * Optional. The input parameters of the widget tool.
      +   * 
      + * + * .google.cloud.ces.v1.Schema parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the parameters field is set. + */ + @java.lang.Override + public boolean hasParameters() { + return inputCase_ == 4; + } + + /** + * + * + *
      +   * Optional. The input parameters of the widget tool.
      +   * 
      + * + * .google.cloud.ces.v1.Schema parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The parameters. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Schema getParameters() { + if (inputCase_ == 4) { + return (com.google.cloud.ces.v1.Schema) input_; + } + return com.google.cloud.ces.v1.Schema.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. The input parameters of the widget tool.
      +   * 
      + * + * .google.cloud.ces.v1.Schema parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.SchemaOrBuilder getParametersOrBuilder() { + if (inputCase_ == 4) { + return (com.google.cloud.ces.v1.Schema) input_; + } + return com.google.cloud.ces.v1.Schema.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
      +   * Required. The display name of the widget tool.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. The display name of the widget tool.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
      +   * Optional. The description of the widget tool.
      +   * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The description of the widget tool.
      +   * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WIDGET_TYPE_FIELD_NUMBER = 3; + private int widgetType_ = 0; + + /** + * + * + *
      +   * Optional. The type of the widget tool. If not specified, the default type
      +   * will be CUSTOMIZED.
      +   * 
      + * + * + * .google.cloud.ces.v1.WidgetTool.WidgetType widget_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for widgetType. + */ + @java.lang.Override + public int getWidgetTypeValue() { + return widgetType_; + } + + /** + * + * + *
      +   * Optional. The type of the widget tool. If not specified, the default type
      +   * will be CUSTOMIZED.
      +   * 
      + * + * + * .google.cloud.ces.v1.WidgetTool.WidgetType widget_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The widgetType. + */ + @java.lang.Override + public com.google.cloud.ces.v1.WidgetTool.WidgetType getWidgetType() { + com.google.cloud.ces.v1.WidgetTool.WidgetType result = + com.google.cloud.ces.v1.WidgetTool.WidgetType.forNumber(widgetType_); + return result == null ? com.google.cloud.ces.v1.WidgetTool.WidgetType.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); + } + if (widgetType_ + != com.google.cloud.ces.v1.WidgetTool.WidgetType.WIDGET_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, widgetType_); + } + if (inputCase_ == 4) { + output.writeMessage(4, (com.google.cloud.ces.v1.Schema) input_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); + } + if (widgetType_ + != com.google.cloud.ces.v1.WidgetTool.WidgetType.WIDGET_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, widgetType_); + } + if (inputCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.ces.v1.Schema) input_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.ces.v1.WidgetTool)) { + return super.equals(obj); + } + com.google.cloud.ces.v1.WidgetTool other = (com.google.cloud.ces.v1.WidgetTool) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (widgetType_ != other.widgetType_) return false; + if (!getInputCase().equals(other.getInputCase())) return false; + switch (inputCase_) { + case 4: + if (!getParameters().equals(other.getParameters())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + WIDGET_TYPE_FIELD_NUMBER; + hash = (53 * hash) + widgetType_; + switch (inputCase_) { + case 4: + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getParameters().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1.WidgetTool parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.WidgetTool parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.WidgetTool parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.WidgetTool parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.WidgetTool parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1.WidgetTool parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1.WidgetTool parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.WidgetTool parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.WidgetTool parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.WidgetTool parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1.WidgetTool parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1.WidgetTool parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1.WidgetTool prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Represents a widget tool that the agent can invoke. When the tool is chosen
      +   * by the agent, agent will return the widget to the client. The client is
      +   * responsible for processing the widget and generating the next user query to
      +   * continue the interaction with the agent.
      +   * 
      + * + * Protobuf type {@code google.cloud.ces.v1.WidgetTool} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1.WidgetTool) + com.google.cloud.ces.v1.WidgetToolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1.WidgetToolProto + .internal_static_google_cloud_ces_v1_WidgetTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1.WidgetToolProto + .internal_static_google_cloud_ces_v1_WidgetTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1.WidgetTool.class, + com.google.cloud.ces.v1.WidgetTool.Builder.class); + } + + // Construct using com.google.cloud.ces.v1.WidgetTool.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (parametersBuilder_ != null) { + parametersBuilder_.clear(); + } + name_ = ""; + description_ = ""; + widgetType_ = 0; + inputCase_ = 0; + input_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1.WidgetToolProto + .internal_static_google_cloud_ces_v1_WidgetTool_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1.WidgetTool getDefaultInstanceForType() { + return com.google.cloud.ces.v1.WidgetTool.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1.WidgetTool build() { + com.google.cloud.ces.v1.WidgetTool result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1.WidgetTool buildPartial() { + com.google.cloud.ces.v1.WidgetTool result = new com.google.cloud.ces.v1.WidgetTool(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1.WidgetTool result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.widgetType_ = widgetType_; + } + } + + private void buildPartialOneofs(com.google.cloud.ces.v1.WidgetTool result) { + result.inputCase_ = inputCase_; + result.input_ = this.input_; + if (inputCase_ == 4 && parametersBuilder_ != null) { + result.input_ = parametersBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1.WidgetTool) { + return mergeFrom((com.google.cloud.ces.v1.WidgetTool) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1.WidgetTool other) { + if (other == com.google.cloud.ces.v1.WidgetTool.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.widgetType_ != 0) { + setWidgetTypeValue(other.getWidgetTypeValue()); + } + switch (other.getInputCase()) { + case PARAMETERS: + { + mergeParameters(other.getParameters()); + break; + } + case INPUT_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 24: + { + widgetType_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 24 + case 34: + { + input.readMessage( + internalGetParametersFieldBuilder().getBuilder(), extensionRegistry); + inputCase_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int inputCase_ = 0; + private java.lang.Object input_; + + public InputCase getInputCase() { + return InputCase.forNumber(inputCase_); + } + + public Builder clearInput() { + inputCase_ = 0; + input_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder> + parametersBuilder_; + + /** + * + * + *
      +     * Optional. The input parameters of the widget tool.
      +     * 
      + * + * .google.cloud.ces.v1.Schema parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the parameters field is set. + */ + @java.lang.Override + public boolean hasParameters() { + return inputCase_ == 4; + } + + /** + * + * + *
      +     * Optional. The input parameters of the widget tool.
      +     * 
      + * + * .google.cloud.ces.v1.Schema parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The parameters. + */ + @java.lang.Override + public com.google.cloud.ces.v1.Schema getParameters() { + if (parametersBuilder_ == null) { + if (inputCase_ == 4) { + return (com.google.cloud.ces.v1.Schema) input_; + } + return com.google.cloud.ces.v1.Schema.getDefaultInstance(); + } else { + if (inputCase_ == 4) { + return parametersBuilder_.getMessage(); + } + return com.google.cloud.ces.v1.Schema.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The input parameters of the widget tool.
      +     * 
      + * + * .google.cloud.ces.v1.Schema parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParameters(com.google.cloud.ces.v1.Schema value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + input_ = value; + onChanged(); + } else { + parametersBuilder_.setMessage(value); + } + inputCase_ = 4; + return this; + } + + /** + * + * + *
      +     * Optional. The input parameters of the widget tool.
      +     * 
      + * + * .google.cloud.ces.v1.Schema parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParameters(com.google.cloud.ces.v1.Schema.Builder builderForValue) { + if (parametersBuilder_ == null) { + input_ = builderForValue.build(); + onChanged(); + } else { + parametersBuilder_.setMessage(builderForValue.build()); + } + inputCase_ = 4; + return this; + } + + /** + * + * + *
      +     * Optional. The input parameters of the widget tool.
      +     * 
      + * + * .google.cloud.ces.v1.Schema parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeParameters(com.google.cloud.ces.v1.Schema value) { + if (parametersBuilder_ == null) { + if (inputCase_ == 4 && input_ != com.google.cloud.ces.v1.Schema.getDefaultInstance()) { + input_ = + com.google.cloud.ces.v1.Schema.newBuilder((com.google.cloud.ces.v1.Schema) input_) + .mergeFrom(value) + .buildPartial(); + } else { + input_ = value; + } + onChanged(); + } else { + if (inputCase_ == 4) { + parametersBuilder_.mergeFrom(value); + } else { + parametersBuilder_.setMessage(value); + } + } + inputCase_ = 4; + return this; + } + + /** + * + * + *
      +     * Optional. The input parameters of the widget tool.
      +     * 
      + * + * .google.cloud.ces.v1.Schema parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearParameters() { + if (parametersBuilder_ == null) { + if (inputCase_ == 4) { + inputCase_ = 0; + input_ = null; + onChanged(); + } + } else { + if (inputCase_ == 4) { + inputCase_ = 0; + input_ = null; + } + parametersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. The input parameters of the widget tool.
      +     * 
      + * + * .google.cloud.ces.v1.Schema parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1.Schema.Builder getParametersBuilder() { + return internalGetParametersFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. The input parameters of the widget tool.
      +     * 
      + * + * .google.cloud.ces.v1.Schema parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1.SchemaOrBuilder getParametersOrBuilder() { + if ((inputCase_ == 4) && (parametersBuilder_ != null)) { + return parametersBuilder_.getMessageOrBuilder(); + } else { + if (inputCase_ == 4) { + return (com.google.cloud.ces.v1.Schema) input_; + } + return com.google.cloud.ces.v1.Schema.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. The input parameters of the widget tool.
      +     * 
      + * + * .google.cloud.ces.v1.Schema parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder> + internalGetParametersFieldBuilder() { + if (parametersBuilder_ == null) { + if (!(inputCase_ == 4)) { + input_ = com.google.cloud.ces.v1.Schema.getDefaultInstance(); + } + parametersBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1.Schema, + com.google.cloud.ces.v1.Schema.Builder, + com.google.cloud.ces.v1.SchemaOrBuilder>( + (com.google.cloud.ces.v1.Schema) input_, getParentForChildren(), isClean()); + input_ = null; + } + inputCase_ = 4; + onChanged(); + return parametersBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
      +     * Required. The display name of the widget tool.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. The display name of the widget tool.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. The display name of the widget tool.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The display name of the widget tool.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. The display name of the widget tool.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
      +     * Optional. The description of the widget tool.
      +     * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The description of the widget tool.
      +     * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The description of the widget tool.
      +     * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The description of the widget tool.
      +     * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The description of the widget tool.
      +     * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int widgetType_ = 0; + + /** + * + * + *
      +     * Optional. The type of the widget tool. If not specified, the default type
      +     * will be CUSTOMIZED.
      +     * 
      + * + * + * .google.cloud.ces.v1.WidgetTool.WidgetType widget_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for widgetType. + */ + @java.lang.Override + public int getWidgetTypeValue() { + return widgetType_; + } + + /** + * + * + *
      +     * Optional. The type of the widget tool. If not specified, the default type
      +     * will be CUSTOMIZED.
      +     * 
      + * + * + * .google.cloud.ces.v1.WidgetTool.WidgetType widget_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for widgetType to set. + * @return This builder for chaining. + */ + public Builder setWidgetTypeValue(int value) { + widgetType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The type of the widget tool. If not specified, the default type
      +     * will be CUSTOMIZED.
      +     * 
      + * + * + * .google.cloud.ces.v1.WidgetTool.WidgetType widget_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The widgetType. + */ + @java.lang.Override + public com.google.cloud.ces.v1.WidgetTool.WidgetType getWidgetType() { + com.google.cloud.ces.v1.WidgetTool.WidgetType result = + com.google.cloud.ces.v1.WidgetTool.WidgetType.forNumber(widgetType_); + return result == null ? com.google.cloud.ces.v1.WidgetTool.WidgetType.UNRECOGNIZED : result; + } + + /** + * + * + *
      +     * Optional. The type of the widget tool. If not specified, the default type
      +     * will be CUSTOMIZED.
      +     * 
      + * + * + * .google.cloud.ces.v1.WidgetTool.WidgetType widget_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The widgetType to set. + * @return This builder for chaining. + */ + public Builder setWidgetType(com.google.cloud.ces.v1.WidgetTool.WidgetType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + widgetType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The type of the widget tool. If not specified, the default type
      +     * will be CUSTOMIZED.
      +     * 
      + * + * + * .google.cloud.ces.v1.WidgetTool.WidgetType widget_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearWidgetType() { + bitField0_ = (bitField0_ & ~0x00000008); + widgetType_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1.WidgetTool) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1.WidgetTool) + private static final com.google.cloud.ces.v1.WidgetTool DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1.WidgetTool(); + } + + public static com.google.cloud.ces.v1.WidgetTool getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WidgetTool parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.ces.v1.WidgetTool getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetToolOrBuilder.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetToolOrBuilder.java new file mode 100644 index 000000000000..c47e8c364992 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetToolOrBuilder.java @@ -0,0 +1,154 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/widget_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public interface WidgetToolOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1.WidgetTool) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. The input parameters of the widget tool.
      +   * 
      + * + * .google.cloud.ces.v1.Schema parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the parameters field is set. + */ + boolean hasParameters(); + + /** + * + * + *
      +   * Optional. The input parameters of the widget tool.
      +   * 
      + * + * .google.cloud.ces.v1.Schema parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The parameters. + */ + com.google.cloud.ces.v1.Schema getParameters(); + + /** + * + * + *
      +   * Optional. The input parameters of the widget tool.
      +   * 
      + * + * .google.cloud.ces.v1.Schema parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1.SchemaOrBuilder getParametersOrBuilder(); + + /** + * + * + *
      +   * Required. The display name of the widget tool.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
      +   * Required. The display name of the widget tool.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
      +   * Optional. The description of the widget tool.
      +   * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
      +   * Optional. The description of the widget tool.
      +   * 
      + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
      +   * Optional. The type of the widget tool. If not specified, the default type
      +   * will be CUSTOMIZED.
      +   * 
      + * + * + * .google.cloud.ces.v1.WidgetTool.WidgetType widget_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for widgetType. + */ + int getWidgetTypeValue(); + + /** + * + * + *
      +   * Optional. The type of the widget tool. If not specified, the default type
      +   * will be CUSTOMIZED.
      +   * 
      + * + * + * .google.cloud.ces.v1.WidgetTool.WidgetType widget_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The widgetType. + */ + com.google.cloud.ces.v1.WidgetTool.WidgetType getWidgetType(); + + com.google.cloud.ces.v1.WidgetTool.InputCase getInputCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetToolProto.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetToolProto.java new file mode 100644 index 000000000000..f16f0cb91413 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/WidgetToolProto.java @@ -0,0 +1,99 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1/widget_tool.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1; + +@com.google.protobuf.Generated +public final class WidgetToolProto extends com.google.protobuf.GeneratedFile { + private WidgetToolProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "WidgetToolProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1_WidgetTool_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1_WidgetTool_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n%google/cloud/ces/v1/widget_tool.proto\022" + + "\023google.cloud.ces.v1\032\037google/api/field_b" + + "ehavior.proto\032 google/cloud/ces/v1/schem" + + "a.proto\"\302\003\n\nWidgetTool\0226\n\nparameters\030\004 \001" + + "(\0132\033.google.cloud.ces.v1.SchemaB\003\340A\001H\000\022\021" + + "\n\004name\030\001 \001(\tB\003\340A\002\022\030\n\013description\030\002 \001(\tB\003" + + "\340A\001\022D\n\013widget_type\030\003 \001(\0162*.google.cloud." + + "ces.v1.WidgetTool.WidgetTypeB\003\340A\001\"\377\001\n\nWi" + + "dgetType\022\033\n\027WIDGET_TYPE_UNSPECIFIED\020\000\022\n\n" + + "\006CUSTOM\020\001\022\024\n\020PRODUCT_CAROUSEL\020\002\022\023\n\017PRODU" + + "CT_DETAILS\020\003\022\021\n\rQUICK_ACTIONS\020\004\022\026\n\022PRODU" + + "CT_COMPARISON\020\005\022\034\n\030ADVANCED_PRODUCT_DETA" + + "ILS\020\006\022\016\n\nSHORT_FORM\020\007\022\030\n\024OVERALL_SATISFA" + + "CTION\020\010\022\021\n\rORDER_SUMMARY\020\t\022\027\n\023APPOINTMEN" + + "T_DETAILS\020\nB\007\n\005inputBW\n\027com.google.cloud" + + ".ces.v1B\017WidgetToolProtoP\001Z)cloud.google" + + ".com/go/ces/apiv1/cespb;cespbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.ces.v1.SchemaProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1_WidgetTool_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1_WidgetTool_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1_WidgetTool_descriptor, + new java.lang.String[] { + "Parameters", "Name", "Description", "WidgetType", "Input", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.ces.v1.SchemaProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/agent.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/agent.proto new file mode 100644 index 000000000000..ffe04a307fc6 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/agent.proto @@ -0,0 +1,236 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/ces/v1/agent_transfers.proto"; +import "google/cloud/ces/v1/common.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "AgentProto"; +option java_package = "com.google.cloud.ces.v1"; +option (google.api.resource_definition) = { + type: "dialogflow.googleapis.com/DialogflowAgent" + pattern: "projects/{project}/locations/{location}/agents/{agent}" +}; + +// An agent acts as the fundamental building block that provides instructions to +// the Large Language Model (LLM) for executing specific tasks. +message Agent { + option (google.api.resource) = { + type: "ces.googleapis.com/Agent" + pattern: "projects/{project}/locations/{location}/apps/{app}/agents/{agent}" + plural: "agents" + singular: "agent" + }; + + // Default agent type. The agent uses instructions and callbacks specified in + // the agent to perform the task using a large language model. + message LlmAgent {} + + // The agent which will transfer execution to a remote + // [Dialogflow + // CX](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent) agent. + // The Dialogflow agent will process subsequent user queries until the session + // ends or flow ends, and the control is transferred back to the parent CES + // agent. + message RemoteDialogflowAgent { + // Required. The + // [Dialogflow](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent) + // agent resource name. + // Format: `projects/{project}/locations/{location}/agents/{agent}` + string agent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/DialogflowAgent" + } + ]; + + // Optional. The flow ID of the flow in the Dialogflow agent. + string flow_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The environment ID of the Dialogflow agent to be used for the + // agent execution. If not specified, the draft environment will be used. + string environment_id = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The mapping of the app variables names to the Dialogflow + // session parameters names to be sent to the Dialogflow agent as input. + map input_variable_mapping = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The mapping of the Dialogflow session parameters names to the + // app variables names to be sent back to the CES agent after the Dialogflow + // agent execution ends. + map output_variable_mapping = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates whether to respect the message-level interruption + // settings configured in the Dialogflow agent. + // + // * If false: all response messages from the Dialogflow agent follow the + // app-level barge-in settings. + // * If true: only response messages with + // [`allow_playback_interruption`](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#text) + // set to true will be interruptable, all other messages follow the + // app-level barge-in settings. + bool respect_response_interruption_settings = 6 + [(google.api.field_behavior) = OPTIONAL]; + } + + // A toolset with a selection of its tools. + message AgentToolset { + // Required. The resource name of the toolset. + // Format: + // `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + string toolset = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/Toolset" } + ]; + + // Optional. The tools IDs to filter the toolset. + repeated string tool_ids = 4 [(google.api.field_behavior) = OPTIONAL]; + } + + // The type of agent. + oneof agent_type { + // Optional. The default agent type. + LlmAgent llm_agent = 26 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The remote + // [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents) + // agent to be used for the agent execution. If this field is set, all other + // agent level properties will be ignored. + // + // Note: If the Dialogflow agent is in a different project from the app, you + // should grant `roles/dialogflow.client` to the CES service agent + // `service-@gcp-sa-ces.iam.gserviceaccount.com`. + RemoteDialogflowAgent remote_dialogflow_agent = 27 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Identifier. The unique identifier of the agent. + // Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. Display name of the agent. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Human-readable description of the agent. + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configurations for the LLM model. + ModelSettings model_settings = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Instructions for the LLM model to guide the agent's behavior. + string instruction = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of available tools for the agent. + // Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + repeated string tools = 7 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Tool" } + ]; + + // Optional. List of child agents in the agent tree. + // Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + repeated string child_agents = 8 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Agent" } + ]; + + // Optional. The callbacks to execute before the agent is called. + // The provided callbacks are executed sequentially in the exact order they + // are given in the list. If a callback returns an overridden response, + // execution stops and any remaining callbacks are skipped. + repeated Callback before_agent_callbacks = 18 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The callbacks to execute after the agent is called. + // The provided callbacks are executed sequentially in the exact order they + // are given in the list. If a callback returns an overridden response, + // execution stops and any remaining callbacks are skipped. + repeated Callback after_agent_callbacks = 19 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The callbacks to execute before the model is called. If there are + // multiple calls to the model, the callback will be executed multiple times. + // The provided callbacks are executed sequentially in the exact order they + // are given in the list. If a callback returns an overridden response, + // execution stops and any remaining callbacks are skipped. + repeated Callback before_model_callbacks = 20 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The callbacks to execute after the model is called. If there are + // multiple calls to the model, the callback will be executed multiple times. + // The provided callbacks are executed sequentially in the exact order they + // are given in the list. If a callback returns an overridden response, + // execution stops and any remaining callbacks are skipped. + repeated Callback after_model_callbacks = 21 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The callbacks to execute before the tool is invoked. If there are + // multiple tool invocations, the callback will be executed multiple times. + // The provided callbacks are executed sequentially in the exact order they + // are given in the list. If a callback returns an overridden response, + // execution stops and any remaining callbacks are skipped. + repeated Callback before_tool_callbacks = 22 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The callbacks to execute after the tool is invoked. If there are + // multiple tool invocations, the callback will be executed multiple times. + // The provided callbacks are executed sequentially in the exact order they + // are given in the list. If a callback returns an overridden response, + // execution stops and any remaining callbacks are skipped. + repeated Callback after_tool_callbacks = 23 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Timestamp when the agent was created. + google.protobuf.Timestamp create_time = 15 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when the agent was last updated. + google.protobuf.Timestamp update_time = 16 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. List of guardrails for the agent. + // Format: + // `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + repeated string guardrails = 17 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Guardrail" } + ]; + + // Etag used to ensure the object hasn't changed during a read-modify-write + // operation. If the etag is empty, the update will overwrite any concurrent + // changes. + string etag = 24; + + // Optional. List of toolsets for the agent. + repeated AgentToolset toolsets = 28 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. If the agent is generated by the LLM assistant, this field + // contains a descriptive summary of the generation. + string generated_summary = 29 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Agent transfer rules. + // If multiple rules match, the first one in the list will be used. + repeated TransferRule transfer_rules = 30 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/agent_service.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/agent_service.proto new file mode 100644 index 000000000000..71912ad23804 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/agent_service.proto @@ -0,0 +1,1695 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/ces/v1/agent.proto"; +import "google/cloud/ces/v1/app.proto"; +import "google/cloud/ces/v1/app_version.proto"; +import "google/cloud/ces/v1/changelog.proto"; +import "google/cloud/ces/v1/conversation.proto"; +import "google/cloud/ces/v1/deployment.proto"; +import "google/cloud/ces/v1/example.proto"; +import "google/cloud/ces/v1/guardrail.proto"; +import "google/cloud/ces/v1/tool.proto"; +import "google/cloud/ces/v1/toolset.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "AgentServiceProto"; +option java_package = "com.google.cloud.ces.v1"; +option (google.api.resource_definition) = { + type: "contactcenterinsights.googleapis.com/Dataset" + pattern: "projects/{project}/locations/{location}/datasets/{dataset}" +}; + +// The service that manages agent-related resources in Gemini Enterprise for +// Customer Engagement (CES). +service AgentService { + option (google.api.default_host) = "ces.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/ces," + "https://www.googleapis.com/auth/cloud-platform"; + + // Lists apps in the given project and location. + rpc ListApps(ListAppsRequest) returns (ListAppsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/apps" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of the specified app. + rpc GetApp(GetAppRequest) returns (App) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/apps/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new app in the given project and location. + rpc CreateApp(CreateAppRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/apps" + body: "app" + }; + option (google.api.method_signature) = "parent,app,app_id"; + option (google.api.method_signature) = "parent,app"; + option (google.longrunning.operation_info) = { + response_type: "App" + metadata_type: "OperationMetadata" + }; + } + + // Updates the specified app. + rpc UpdateApp(UpdateAppRequest) returns (App) { + option (google.api.http) = { + patch: "/v1/{app.name=projects/*/locations/*/apps/*}" + body: "app" + }; + option (google.api.method_signature) = "app,update_mask"; + } + + // Deletes the specified app. + rpc DeleteApp(DeleteAppRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/apps/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Exports the specified app. + rpc ExportApp(ExportAppRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/apps/*}:exportApp" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "ExportAppResponse" + metadata_type: "OperationMetadata" + }; + } + + // Imports the specified app. + rpc ImportApp(ImportAppRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/apps:importApp" + body: "*" + }; + option (google.api.method_signature) = "parent,display_name,app_id"; + option (google.longrunning.operation_info) = { + response_type: "ImportAppResponse" + metadata_type: "OperationMetadata" + }; + } + + // Lists agents in the given app. + rpc ListAgents(ListAgentsRequest) returns (ListAgentsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/apps/*}/agents" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of the specified agent. + rpc GetAgent(GetAgentRequest) returns (Agent) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/apps/*/agents/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new agent in the given app. + rpc CreateAgent(CreateAgentRequest) returns (Agent) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/apps/*}/agents" + body: "agent" + }; + option (google.api.method_signature) = "parent,agent,agent_id"; + option (google.api.method_signature) = "parent,agent"; + } + + // Updates the specified agent. + rpc UpdateAgent(UpdateAgentRequest) returns (Agent) { + option (google.api.http) = { + patch: "/v1/{agent.name=projects/*/locations/*/apps/*/agents/*}" + body: "agent" + }; + option (google.api.method_signature) = "agent,update_mask"; + } + + // Deletes the specified agent. + rpc DeleteAgent(DeleteAgentRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/apps/*/agents/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists examples in the given app. + rpc ListExamples(ListExamplesRequest) returns (ListExamplesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/apps/*}/examples" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of the specified example. + rpc GetExample(GetExampleRequest) returns (Example) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/apps/*/examples/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new example in the given app. + rpc CreateExample(CreateExampleRequest) returns (Example) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/apps/*}/examples" + body: "example" + }; + option (google.api.method_signature) = "parent,example,example_id"; + option (google.api.method_signature) = "parent,example"; + } + + // Updates the specified example. + rpc UpdateExample(UpdateExampleRequest) returns (Example) { + option (google.api.http) = { + patch: "/v1/{example.name=projects/*/locations/*/apps/*/examples/*}" + body: "example" + }; + option (google.api.method_signature) = "example,update_mask"; + } + + // Deletes the specified example. + rpc DeleteExample(DeleteExampleRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/apps/*/examples/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists tools in the given app. + rpc ListTools(ListToolsRequest) returns (ListToolsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/apps/*}/tools" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of the specified tool. + rpc GetTool(GetToolRequest) returns (Tool) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/apps/*/tools/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists conversations in the given app. + rpc ListConversations(ListConversationsRequest) + returns (ListConversationsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/apps/*}/conversations" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of the specified conversation. + rpc GetConversation(GetConversationRequest) returns (Conversation) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/apps/*/conversations/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Deletes the specified conversation. + rpc DeleteConversation(DeleteConversationRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/apps/*/conversations/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Batch deletes the specified conversations. + rpc BatchDeleteConversations(BatchDeleteConversationsRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/apps/*}/conversations:batchDelete" + body: "*" + }; + option (google.api.method_signature) = "parent"; + option (google.longrunning.operation_info) = { + response_type: "BatchDeleteConversationsResponse" + metadata_type: "OperationMetadata" + }; + } + + // Creates a new tool in the given app. + rpc CreateTool(CreateToolRequest) returns (Tool) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/apps/*}/tools" + body: "tool" + }; + option (google.api.method_signature) = "parent,tool,tool_id"; + option (google.api.method_signature) = "parent,tool"; + } + + // Updates the specified tool. + rpc UpdateTool(UpdateToolRequest) returns (Tool) { + option (google.api.http) = { + patch: "/v1/{tool.name=projects/*/locations/*/apps/*/tools/*}" + body: "tool" + }; + option (google.api.method_signature) = "tool,update_mask"; + } + + // Deletes the specified tool. + rpc DeleteTool(DeleteToolRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/apps/*/tools/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists guardrails in the given app. + rpc ListGuardrails(ListGuardrailsRequest) returns (ListGuardrailsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/apps/*}/guardrails" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of the specified guardrail. + rpc GetGuardrail(GetGuardrailRequest) returns (Guardrail) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/apps/*/guardrails/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new guardrail in the given app. + rpc CreateGuardrail(CreateGuardrailRequest) returns (Guardrail) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/apps/*}/guardrails" + body: "guardrail" + }; + option (google.api.method_signature) = "parent,guardrail,guardrail_id"; + option (google.api.method_signature) = "parent,guardrail"; + } + + // Updates the specified guardrail. + rpc UpdateGuardrail(UpdateGuardrailRequest) returns (Guardrail) { + option (google.api.http) = { + patch: "/v1/{guardrail.name=projects/*/locations/*/apps/*/guardrails/*}" + body: "guardrail" + }; + option (google.api.method_signature) = "guardrail,update_mask"; + } + + // Deletes the specified guardrail. + rpc DeleteGuardrail(DeleteGuardrailRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/apps/*/guardrails/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists deployments in the given app. + rpc ListDeployments(ListDeploymentsRequest) + returns (ListDeploymentsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/apps/*}/deployments" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of the specified deployment. + rpc GetDeployment(GetDeploymentRequest) returns (Deployment) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/apps/*/deployments/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new deployment in the given app. + rpc CreateDeployment(CreateDeploymentRequest) returns (Deployment) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/apps/*}/deployments" + body: "deployment" + }; + option (google.api.method_signature) = "parent,deployment,deployment_id"; + option (google.api.method_signature) = "parent,deployment"; + } + + // Updates the specified deployment. + rpc UpdateDeployment(UpdateDeploymentRequest) returns (Deployment) { + option (google.api.http) = { + patch: "/v1/{deployment.name=projects/*/locations/*/apps/*/deployments/*}" + body: "deployment" + }; + option (google.api.method_signature) = "deployment,update_mask"; + } + + // Deletes the specified deployment. + rpc DeleteDeployment(DeleteDeploymentRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/apps/*/deployments/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists toolsets in the given app. + rpc ListToolsets(ListToolsetsRequest) returns (ListToolsetsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/apps/*}/toolsets" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of the specified toolset. + rpc GetToolset(GetToolsetRequest) returns (Toolset) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/apps/*/toolsets/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new toolset in the given app. + rpc CreateToolset(CreateToolsetRequest) returns (Toolset) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/apps/*}/toolsets" + body: "toolset" + }; + option (google.api.method_signature) = "parent,toolset,toolset_id"; + option (google.api.method_signature) = "parent,toolset"; + } + + // Updates the specified toolset. + rpc UpdateToolset(UpdateToolsetRequest) returns (Toolset) { + option (google.api.http) = { + patch: "/v1/{toolset.name=projects/*/locations/*/apps/*/toolsets/*}" + body: "toolset" + }; + option (google.api.method_signature) = "toolset,update_mask"; + } + + // Deletes the specified toolset. + rpc DeleteToolset(DeleteToolsetRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/apps/*/toolsets/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists all app versions in the given app. + rpc ListAppVersions(ListAppVersionsRequest) + returns (ListAppVersionsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/apps/*}/versions" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of the specified app version. + rpc GetAppVersion(GetAppVersionRequest) returns (AppVersion) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/apps/*/versions/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new app version in the given app. + rpc CreateAppVersion(CreateAppVersionRequest) returns (AppVersion) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/apps/*}/versions" + body: "app_version" + }; + option (google.api.method_signature) = "parent,app_version,app_version_id"; + option (google.api.method_signature) = "parent,app_version"; + } + + // Deletes the specified app version. + rpc DeleteAppVersion(DeleteAppVersionRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/apps/*/versions/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Restores the specified app version. + // This will create a new app version from the current draft app and overwrite + // the current draft with the specified app version. + rpc RestoreAppVersion(RestoreAppVersionRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/apps/*/versions/*}:restore" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "RestoreAppVersionResponse" + metadata_type: "OperationMetadata" + }; + } + + // Lists the changelogs of the specified app. + rpc ListChangelogs(ListChangelogsRequest) returns (ListChangelogsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/apps/*}/changelogs" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets the specified changelog. + rpc GetChangelog(GetChangelogRequest) returns (Changelog) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/apps/*/changelogs/*}" + }; + option (google.api.method_signature) = "name"; + } +} + +// Request message for +// [AgentService.ListApps][google.cloud.ces.v1.AgentService.ListApps]. +message ListAppsRequest { + // Required. The resource name of the location to list apps from. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { child_type: "ces.googleapis.com/App" } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The + // [next_page_token][google.cloud.ces.v1.ListAppsResponse.next_page_token] + // value returned from a previous list + // [AgentService.ListApps][google.cloud.ces.v1.AgentService.ListApps] call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter to be applied when listing the apps. + // See https://google.aip.dev/160 for more details. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Field to sort by. Only "name" and "create_time" is supported. + // See https://google.aip.dev/132#ordering for more details. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [AgentService.ListApps][google.cloud.ces.v1.AgentService.ListApps]. +message ListAppsResponse { + // The list of apps. + repeated App apps = 1; + + // A token that can be sent as + // [ListAppsRequest.page_token][google.cloud.ces.v1.ListAppsRequest.page_token] + // to retrieve the next page. Absence of this field indicates there are no + // subsequent pages. + string next_page_token = 2; + + // Unordered list. Locations that could not be reached. + repeated string unreachable = 3 + [(google.api.field_behavior) = UNORDERED_LIST]; +} + +// Request message for +// [AgentService.GetApp][google.cloud.ces.v1.AgentService.GetApp]. +message GetAppRequest { + // Required. The resource name of the app to retrieve. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/App" } + ]; +} + +// Request message for +// [AgentService.CreateApp][google.cloud.ces.v1.AgentService.CreateApp]. +message CreateAppRequest { + // Required. The resource name of the location to create an app in. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { child_type: "ces.googleapis.com/App" } + ]; + + // Optional. The ID to use for the app, which will become the final component + // of the app's resource name. If not provided, a unique ID will be + // automatically assigned for the app. + string app_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The app to create. + App app = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [AgentService.UpdateApp][google.cloud.ces.v1.AgentService.UpdateApp]. +message UpdateAppRequest { + // Required. The app to update. + App app = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Field mask is used to control which fields get updated. If the + // mask is not present, all fields will be updated. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [AgentService.DeleteApp][google.cloud.ces.v1.AgentService.DeleteApp]. +message DeleteAppRequest { + // Required. The resource name of the app to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/App" } + ]; + + // Optional. The current etag of the app. If an etag is not provided, the + // deletion will overwrite any concurrent changes. If an etag is provided and + // does not match the current etag of the app, deletion will be blocked and an + // ABORTED error will be returned. + string etag = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [AgentService.ExportApp][google.cloud.ces.v1.AgentService.ExportApp]. +message ExportAppRequest { + // Export format for the app. + enum ExportFormat { + // The export format is unspecified. + EXPORT_FORMAT_UNSPECIFIED = 0; + + // The export format is JSON. + JSON = 1; + + // The export format is YAML. + YAML = 2; + } + + // Required. The resource name of the app to export. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/App" } + ]; + + // Required. The format to export the app in. + ExportFormat export_format = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The [Google Cloud + // Storage](https://cloud.google.com/storage/docs/) URI to which to export the + // app. The format of this URI must be `gs:///`. The + // exported app archive will be written directly to the specified GCS object. + string gcs_uri = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [AgentService.ExportApp][google.cloud.ces.v1.AgentService.ExportApp]. +message ExportAppResponse { + // The exported app. + oneof app { + // App folder compressed as a zip file. + bytes app_content = 1; + + // The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI + // to which the app was exported. + string app_uri = 2; + } +} + +// Request message for +// [AgentService.ImportApp][google.cloud.ces.v1.AgentService.ImportApp]. +message ImportAppRequest { + // Configuration options for the app import process. + // These options control how the import behaves, particularly when + // conflicts arise with existing app data. + message ImportOptions { + // Defines the strategy for handling conflicts when an app with the same ID + // already exists, or when imported resources (like Agents, Tools, etc.) + // have the same display names as existing resources within that app. + enum ConflictResolutionStrategy { + // The conflict resolution strategy is unspecified. + CONFLICT_RESOLUTION_STRATEGY_UNSPECIFIED = 0; + + // Replace existing data with imported data. + // If an app with the same `app_id` already exists, its content will be + // updated based on the imported app. + // - Resources (App, Agents, Tools, Examples, Guardrails, Toolsets) in the + // imported app that have the same display name as existing resources + // will overwrite the existing ones. + // - Imported resources with new display names will be created. + // - Existing resources that do not have a matching display name in the + // imported app will remain untouched. + REPLACE = 1; + + // Overwrite existing data with imported data. + // If an app with the same `app_id` already exists, its content will be + // overwritten with the imported app. + // - Existing resources (Agents, Tools, Examples, Guardrails, Toolsets) in + // the app will be deleted. + // - Imported resources will be created as new resources. + OVERWRITE = 2; + } + + // Optional. The strategy to use when resolving conflicts during import. + ConflictResolutionStrategy conflict_resolution_strategy = 1 + [(google.api.field_behavior) = OPTIONAL]; + } + + // The app to import. + oneof app { + // The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI + // from which to import app. The format of this URI must be + // `gs:///`. + string gcs_uri = 4; + + // Raw bytes representing the compressed zip file with the app folder + // structure. + bytes app_content = 5; + } + + // Required. The parent resource name with the location of the app to import. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { child_type: "ces.googleapis.com/App" } + ]; + + // Optional. The display name of the app to import. + // * If the app is created on import, and the display name is specified, + // the imported app will use this display name. If a conflict is detected + // with an existing app, a timestamp will be appended to the display name + // to make it unique. + // * If the app is a reimport, this field should not be set. Providing a + // display name during reimport will result in an INVALID_ARGUMENT error. + string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The ID to use for the imported app. + // * If not specified, a unique ID will be automatically assigned for + // the app. + // * Otherwise, the imported app will use this ID as the final component of + // its resource name. If an app with the same ID already exists at the + // specified location in the project, the content of the existing app will be + // replaced. + string app_id = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Options governing the import process for the app. + ImportOptions import_options = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Flag for overriding the app lock during import. + // If set to true, the import process will ignore the app lock. + bool ignore_app_lock = 7 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [AgentService.ImportApp][google.cloud.ces.v1.AgentService.ImportApp]. +message ImportAppResponse { + // The resource name of the app that was imported. + string name = 1 + [(google.api.resource_reference) = { type: "ces.googleapis.com/App" }]; + + // Warning messages generated during the import process. + // If errors occur for specific resources, they will not be included in the + // imported app and the error will be mentioned here. + repeated string warnings = 2; +} + +// Request message for +// [AgentService.ListAgents][google.cloud.ces.v1.AgentService.ListAgents]. +message ListAgentsRequest { + // Required. The resource name of the app to list agents from. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { child_type: "ces.googleapis.com/Agent" } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The + // [next_page_token][google.cloud.ces.v1.ListAgentsResponse.next_page_token] + // value returned from a previous list + // [AgentService.ListAgents][google.cloud.ces.v1.AgentService.ListAgents] + // call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter to be applied when listing the agents. + // See https://google.aip.dev/160 for more details. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Field to sort by. Only "name" and "create_time" is supported. + // See https://google.aip.dev/132#ordering for more details. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [AgentService.ListAgents][google.cloud.ces.v1.AgentService.ListAgents]. +message ListAgentsResponse { + // The list of agents. + repeated Agent agents = 1; + + // A token that can be sent as + // [ListAgentsRequest.page_token][google.cloud.ces.v1.ListAgentsRequest.page_token] + // to retrieve the next page. Absence of this field indicates there are no + // subsequent pages. + string next_page_token = 2; +} + +// Request message for +// [AgentService.GetAgent][google.cloud.ces.v1.AgentService.GetAgent]. +message GetAgentRequest { + // Required. The resource name of the agent to retrieve. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/Agent" } + ]; +} + +// Request message for +// [AgentService.CreateAgent][google.cloud.ces.v1.AgentService.CreateAgent]. +message CreateAgentRequest { + // Required. The resource name of the app to create an agent in. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { child_type: "ces.googleapis.com/Agent" } + ]; + + // Optional. The ID to use for the agent, which will become the final + // component of the agent's resource name. If not provided, a unique ID will + // be automatically assigned for the agent. + string agent_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The agent to create. + Agent agent = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [AgentService.UpdateAgent][google.cloud.ces.v1.AgentService.UpdateAgent]. +message UpdateAgentRequest { + // Required. The agent to update. + Agent agent = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Field mask is used to control which fields get updated. If the + // mask is not present, all fields will be updated. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [AgentService.DeleteAgent][google.cloud.ces.v1.AgentService.DeleteAgent]. +message DeleteAgentRequest { + // Required. The resource name of the agent to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/Agent" } + ]; + + // Optional. Indicates whether to forcefully delete the agent, even if it is + // still referenced by other app/agents/examples. + // + // * If `force = false`, the deletion fails if other agents/examples + // reference it. + // * If `force = true`, delete the agent and remove it from all referencing + // apps/agents/examples. + bool force = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The current etag of the agent. If an etag is not provided, the + // deletion will overwrite any concurrent changes. If an etag is provided and + // does not match the current etag of the agent, deletion will be blocked and + // an ABORTED error will be returned. + string etag = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents the metadata of the long-running operation. +message OperationMetadata { + // Output only. The time the operation was created. + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the operation finished running. + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Human-readable status of the operation, if any. + string status_message = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Identifies whether the user has requested cancellation of the + // operation. Operations that have been cancelled successfully have + // [google.longrunning.Operation.error][google.longrunning.Operation.error] + // value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`, + // corresponding to `Code.CANCELLED`. + bool requested_cancellation = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request message for +// [AgentService.ListExamples][google.cloud.ces.v1.AgentService.ListExamples]. +message ListExamplesRequest { + // Required. The resource name of the app to list examples from. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "ces.googleapis.com/Example" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The + // [next_page_token][google.cloud.ces.v1.ListExamplesResponse.next_page_token] + // value returned from a previous list + // [AgentService.ListExamples][google.cloud.ces.v1.AgentService.ListExamples] + // call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter to be applied when listing the examples. + // See https://google.aip.dev/160 for more details. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Field to sort by. Only "name" and "create_time" is supported. + // See https://google.aip.dev/132#ordering for more details. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [AgentService.ListExamples][google.cloud.ces.v1.AgentService.ListExamples]. +message ListExamplesResponse { + // The list of examples. + repeated Example examples = 1; + + // A token that can be sent as + // [ListExamplesRequest.page_token][google.cloud.ces.v1.ListExamplesRequest.page_token] + // to retrieve the next page. Absence of this field indicates there are no + // subsequent pages. + string next_page_token = 2; +} + +// Request message for +// [AgentService.GetExample][google.cloud.ces.v1.AgentService.GetExample]. +message GetExampleRequest { + // Required. The resource name of the example to retrieve. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/Example" } + ]; +} + +// Request message for +// [AgentService.CreateExample][google.cloud.ces.v1.AgentService.CreateExample]. +message CreateExampleRequest { + // Required. The resource name of the app to create an example in. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "ces.googleapis.com/Example" + } + ]; + + // Optional. The ID to use for the example, which will become the final + // component of the example's resource name. If not provided, a unique ID will + // be automatically assigned for the example. + string example_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The example to create. + Example example = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [AgentService.UpdateExample][google.cloud.ces.v1.AgentService.UpdateExample]. +message UpdateExampleRequest { + // Required. The example to update. + Example example = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Field mask is used to control which fields get updated. If the + // mask is not present, all fields will be updated. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [AgentService.DeleteExample][google.cloud.ces.v1.AgentService.DeleteExample]. +message DeleteExampleRequest { + // Required. The resource name of the example to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/Example" } + ]; + + // Optional. The current etag of the example. If an etag is not provided, the + // deletion will overwrite any concurrent changes. If an etag is provided and + // does not match the current etag of the example, deletion will be blocked + // and an ABORTED error will be returned. + string etag = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [AgentService.ListTools][google.cloud.ces.v1.AgentService.ListTools]. +message ListToolsRequest { + // Required. The resource name of the app to list tools from. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { child_type: "ces.googleapis.com/Tool" } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The + // [next_page_token][google.cloud.ces.v1.ListToolsResponse.next_page_token] + // value returned from a previous list + // [AgentService.ListTools][google.cloud.ces.v1.AgentService.ListTools] call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter to be applied when listing the tools. Use + // "include_system_tools=true" to include system tools in the response. See + // https://google.aip.dev/160 for more details. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Field to sort by. Only "name" and "create_time" is supported. + // See https://google.aip.dev/132#ordering for more details. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [AgentService.ListTools][google.cloud.ces.v1.AgentService.ListTools]. +message ListToolsResponse { + // The list of tools. + repeated Tool tools = 1; + + // A token that can be sent as + // [ListToolsRequest.page_token][google.cloud.ces.v1.ListToolsRequest.page_token] + // to retrieve the next page. Absence of this field indicates there are no + // subsequent pages. + string next_page_token = 2; +} + +// Request message for +// [AgentService.GetTool][google.cloud.ces.v1.AgentService.GetTool]. +message GetToolRequest { + // Required. The resource name of the tool to retrieve. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/Tool" } + ]; +} + +// Request message for +// [AgentService.CreateTool][google.cloud.ces.v1.AgentService.CreateTool]. +message CreateToolRequest { + // Required. The resource name of the app to create a tool in. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { child_type: "ces.googleapis.com/Tool" } + ]; + + // Optional. The ID to use for the tool, which will become the final component + // of the tool's resource name. If not provided, a unique ID will be + // automatically assigned for the tool. + string tool_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The tool to create. + Tool tool = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [AgentService.UpdateTool][google.cloud.ces.v1.AgentService.UpdateTool]. +message UpdateToolRequest { + // Required. The tool to update. + Tool tool = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Field mask is used to control which fields get updated. If the + // mask is not present, all fields will be updated. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [AgentService.DeleteTool][google.cloud.ces.v1.AgentService.DeleteTool]. +message DeleteToolRequest { + // Required. The resource name of the tool to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/Tool" } + ]; + + // Optional. Indicates whether to forcefully delete the tool, even if it is + // still referenced by agents/examples. + // + // * If `force = false`, the deletion will fail if any agents still + // reference the tool. + // * If `force = true`, all existing references from agents will be removed + // and the tool will be deleted. + bool force = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The current etag of the tool. If an etag is not provided, the + // deletion will overwrite any concurrent changes. If an etag is provided and + // does not match the current etag of the tool, deletion will be blocked and + // an ABORTED error will be returned. + string etag = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [AgentService.ListConversations][google.cloud.ces.v1.AgentService.ListConversations]. +message ListConversationsRequest { + // Required. The resource name of the app to list conversations from. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "ces.googleapis.com/Conversation" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The + // [next_page_token][google.cloud.ces.v1.ListConversationsResponse.next_page_token] + // value returned from a previous list + // [AgentService.ListConversations][google.cloud.ces.v1.AgentService.ListConversations] + // call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter to be applied when listing the conversations. + // See https://google.aip.dev/160 for more details. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicate the source of the conversation. If not set, Source.Live + // will be applied by default. Will be deprecated in favor of `sources` field. + Conversation.Source source = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicate the sources of the conversations. If not set, all + // available sources will be applied by default. + repeated Conversation.Source sources = 6 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [AgentService.ListConversations][google.cloud.ces.v1.AgentService.ListConversations]. +message ListConversationsResponse { + // The list of conversations. + repeated Conversation conversations = 1; + + // A token that can be sent as + // [ListConversationsRequest.page_token][google.cloud.ces.v1.ListConversationsRequest.page_token] + // to retrieve the next page. Absence of this field indicates there are no + // subsequent pages. + string next_page_token = 2; +} + +// Request message for +// [AgentService.GetConversation][google.cloud.ces.v1.AgentService.GetConversation]. +message GetConversationRequest { + // Required. The resource name of the conversation to retrieve. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "ces.googleapis.com/Conversation" + } + ]; + + // Optional. Indicate the source of the conversation. If not set, all source + // will be searched. + Conversation.Source source = 2 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [AgentService.DeleteConversation][google.cloud.ces.v1.AgentService.DeleteConversation]. +message DeleteConversationRequest { + // Required. The resource name of the conversation to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "ces.googleapis.com/Conversation" + } + ]; + + // Optional. Indicate the source of the conversation. If not set, Source.Live + // will be applied by default. + Conversation.Source source = 2 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [AgentService.BatchDeleteConversations][google.cloud.ces.v1.AgentService.BatchDeleteConversations]. +message BatchDeleteConversationsRequest { + // Required. The resource name of the app to delete conversations from. + // Format: + // `projects/{project}/locations/{location}/apps/{app}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "ces.googleapis.com/Conversation" + } + ]; + + // Required. The resource names of the conversations to delete. + repeated string conversations = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "ces.googleapis.com/Conversation" + } + ]; +} + +// Response message for +// [AgentService.BatchDeleteConversations][google.cloud.ces.v1.AgentService.BatchDeleteConversations]. +message BatchDeleteConversationsResponse { + // The list of conversations that were successfully deleted. + repeated string deleted_conversations = 1; + + // The list of conversations that failed to be deleted. + repeated string failed_conversations = 2; + + // Optional. A list of error messages associated with conversations that + // failed to be deleted. + repeated string error_messages = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [AgentService.ListGuardrails][google.cloud.ces.v1.AgentService.ListGuardrails]. +message ListGuardrailsRequest { + // Required. The resource name of the app to list guardrails from. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "ces.googleapis.com/Guardrail" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The + // [next_page_token][google.cloud.ces.v1.ListGuardrailsResponse.next_page_token] + // value returned from a previous list + // [AgentService.ListGuardrails][google.cloud.ces.v1.AgentService.ListGuardrails] + // call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter to be applied when listing the guardrails. + // See https://google.aip.dev/160 for more details. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Field to sort by. Only "name" and "create_time" is supported. + // See https://google.aip.dev/132#ordering for more details. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [AgentService.ListGuardrails][google.cloud.ces.v1.AgentService.ListGuardrails]. +message ListGuardrailsResponse { + // The list of guardrails. + repeated Guardrail guardrails = 1; + + // A token that can be sent as + // [ListGuardrailsRequest.page_token][google.cloud.ces.v1.ListGuardrailsRequest.page_token] + // to retrieve the next page. Absence of this field indicates there are no + // subsequent pages. + string next_page_token = 2; +} + +// Request message for +// [AgentService.GetGuardrail][google.cloud.ces.v1.AgentService.GetGuardrail]. +message GetGuardrailRequest { + // Required. The resource name of the guardrail to retrieve. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/Guardrail" } + ]; +} + +// Request message for +// [AgentService.CreateGuardrail][google.cloud.ces.v1.AgentService.CreateGuardrail]. +message CreateGuardrailRequest { + // Required. The resource name of the app to create a guardrail in. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "ces.googleapis.com/Guardrail" + } + ]; + + // Optional. The ID to use for the guardrail, which will become the final + // component of the guardrail's resource name. If not provided, a unique ID + // will be automatically assigned for the guardrail. + string guardrail_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The guardrail to create. + Guardrail guardrail = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [AgentService.UpdateGuardrail][google.cloud.ces.v1.AgentService.UpdateGuardrail]. +message UpdateGuardrailRequest { + // Required. The guardrail to update. + Guardrail guardrail = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Field mask is used to control which fields get updated. If the + // mask is not present, all fields will be updated. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [AgentService.DeleteGuardrail][google.cloud.ces.v1.AgentService.DeleteGuardrail]. +message DeleteGuardrailRequest { + // Required. The resource name of the guardrail to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/Guardrail" } + ]; + + // Optional. Indicates whether to forcefully delete the guardrail, even if it + // is still referenced by app/agents. + // + // * If `force = false`, the deletion fails if any apps/agents still + // reference the guardrail. + // * If `force = true`, all existing references from apps/agents will be + // removed and the guardrail will be deleted. + bool force = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The current etag of the guardrail. If an etag is not provided, + // the deletion will overwrite any concurrent changes. If an etag is provided + // and does not match the current etag of the guardrail, deletion will be + // blocked and an ABORTED error will be returned. + string etag = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [AgentService.ListDeployments][google.cloud.ces.v1.AgentService.ListDeployments]. +message ListDeploymentsRequest { + // Required. The parent app. + // Format: + // `projects/{project}/locations/{location}/apps/{app}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "ces.googleapis.com/Deployment" + } + ]; + + // Optional. The maximum number of deployments to return. The service may + // return fewer than this value. If unspecified, at most 50 deployments will + // be returned. The maximum value is 1000; values above 1000 will be coerced + // to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListDeployments` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListDeployments` must + // match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Field to sort by. Only "name" and "create_time" is supported. + // See https://google.aip.dev/132#ordering for more details. + string order_by = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [AgentService.ListDeployments][google.cloud.ces.v1.AgentService.ListDeployments]. +message ListDeploymentsResponse { + // The list of deployments. + repeated Deployment deployments = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for +// [AgentService.GetDeployment][google.cloud.ces.v1.AgentService.GetDeployment]. +message GetDeploymentRequest { + // Required. The name of the deployment. + // Format: + // `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/Deployment" } + ]; +} + +// Request message for +// [AgentService.CreateDeployment][google.cloud.ces.v1.AgentService.CreateDeployment]. +message CreateDeploymentRequest { + // Required. The parent app. + // Format: + // `projects/{project}/locations/{location}/apps/{app}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "ces.googleapis.com/Deployment" + } + ]; + + // Optional. The ID to use for the deployment, which will become the final + // component of the deployment's resource name. If not provided, a unique ID + // will be automatically assigned for the deployment. + string deployment_id = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The deployment to create. + Deployment deployment = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [AgentService.UpdateDeployment][google.cloud.ces.v1.AgentService.UpdateDeployment]. +message UpdateDeploymentRequest { + // Required. The deployment to update. + Deployment deployment = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The list of fields to update. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [AgentService.DeleteDeployment][google.cloud.ces.v1.AgentService.DeleteDeployment]. +message DeleteDeploymentRequest { + // Required. The name of the deployment to delete. + // Format: + // `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/Deployment" } + ]; + + // Optional. The etag of the deployment. + // If an etag is provided and does not match the current etag of the + // deployment, deletion will be blocked and an ABORTED error will be returned. + string etag = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [AgentService.ListToolsets][google.cloud.ces.v1.AgentService.ListToolsets]. +message ListToolsetsRequest { + // Required. The resource name of the app to list toolsets from. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "ces.googleapis.com/Toolset" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The + // [next_page_token][google.cloud.ces.v1.ListToolsetsResponse.next_page_token] + // value returned from a previous list + // [AgentService.ListToolsets][google.cloud.ces.v1.AgentService.ListToolsets] + // call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter to be applied when listing the toolsets. + // See https://google.aip.dev/160 for more details. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Field to sort by. Only "name" and "create_time" is supported. + // See https://google.aip.dev/132#ordering for more details. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [AgentService.ListToolsets][google.cloud.ces.v1.AgentService.ListToolsets]. +message ListToolsetsResponse { + // The list of toolsets. + repeated Toolset toolsets = 1; + + // A token that can be sent as + // [ListToolsetsRequest.page_token][google.cloud.ces.v1.ListToolsetsRequest.page_token] + // to retrieve the next page. Absence of this field indicates there are no + // subsequent pages. + string next_page_token = 2; +} + +// Request message for +// [AgentService.GetToolset][google.cloud.ces.v1.AgentService.GetToolset]. +message GetToolsetRequest { + // Required. The resource name of the toolset to retrieve. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/Toolset" } + ]; +} + +// Request message for +// [AgentService.CreateToolset][google.cloud.ces.v1.AgentService.CreateToolset]. +message CreateToolsetRequest { + // Required. The resource name of the app to create a toolset in. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "ces.googleapis.com/Toolset" + } + ]; + + // Optional. The ID to use for the toolset, which will become the final + // component of the toolset's resource name. If not provided, a unique ID will + // be automatically assigned for the toolset. + string toolset_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The toolset to create. + Toolset toolset = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [AgentService.UpdateToolset][google.cloud.ces.v1.AgentService.UpdateToolset]. +message UpdateToolsetRequest { + // Required. The toolset to update. + Toolset toolset = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Field mask is used to control which fields get updated. If the + // mask is not present, all fields will be updated. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [AgentService.DeleteToolset][google.cloud.ces.v1.AgentService.DeleteToolset]. +message DeleteToolsetRequest { + // Required. The resource name of the toolset to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/Toolset" } + ]; + + // Optional. Indicates whether to forcefully delete the toolset, even if it is + // still referenced by app/agents. + // + // * If `force = false`, the deletion fails if any agents still + // reference the toolset. + // * If `force = true`, all existing references from agents will be + // removed and the toolset will be deleted. + bool force = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The current etag of the toolset. If an etag is not provided, the + // deletion will overwrite any concurrent changes. If an etag is provided and + // does not match the current etag of the toolset, deletion will be blocked + // and an ABORTED error will be returned. + string etag = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [AgentService.ListAppVersions][google.cloud.ces.v1.AgentService.ListAppVersions]. +message ListAppVersionsRequest { + // Required. The resource name of the app to list app versions from. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "ces.googleapis.com/AppVersion" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The + // [next_page_token][google.cloud.ces.v1.ListAppVersionsResponse.next_page_token] + // value returned from a previous list + // [AgentService.ListAppVersions][google.cloud.ces.v1.AgentService.ListAppVersions] + // call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter to be applied when listing the app versions. + // See https://google.aip.dev/160 for more details. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Field to sort by. Only "name" and "create_time" is supported. + // See https://google.aip.dev/132#ordering for more details. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [AgentService.ListAppVersions][google.cloud.ces.v1.AgentService.ListAppVersions]. +message ListAppVersionsResponse { + // The list of app versions. + repeated AppVersion app_versions = 1; + + // A token that can be sent as + // [ListAppVersionsRequest.page_token][google.cloud.ces.v1.ListAppVersionsRequest.page_token] + // to retrieve the next page. Absence of this field indicates there are no + // subsequent pages. + string next_page_token = 2; +} + +// Request message for +// [AgentService.GetAppVersion][google.cloud.ces.v1.AgentService.GetAppVersion]. +message GetAppVersionRequest { + // Required. The resource name of the app version to retrieve. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/AppVersion" } + ]; +} + +// Request message for +// [AgentService.DeleteAppVersion][google.cloud.ces.v1.AgentService.DeleteAppVersion]. +message DeleteAppVersionRequest { + // Required. The resource name of the app version to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/AppVersion" } + ]; + + // Optional. The current etag of the app version. If an etag is not provided, + // the deletion will overwrite any concurrent changes. If an etag is provided + // and does not match the current etag of the app version, deletion will be + // blocked and an ABORTED error will be returned. + string etag = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [AgentService.CreateAppVersion][google.cloud.ces.v1.AgentService.CreateAppVersion] +message CreateAppVersionRequest { + // Required. The resource name of the app to create an app version in. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "ces.googleapis.com/AppVersion" + } + ]; + + // Optional. The ID to use for the app version, which will become the final + // component of the app version's resource name. If not provided, a unique ID + // will be automatically assigned for the app version. + string app_version_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The app version to create. + AppVersion app_version = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [AgentService.RestoreAppVersion][google.cloud.ces.v1.AgentService.RestoreAppVersion] +message RestoreAppVersionRequest { + // Required. The resource name of the app version to restore. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/AppVersion" } + ]; +} + +// Response message for +// [AgentService.RestoreAppVersion][google.cloud.ces.v1.AgentService.RestoreAppVersion] +message RestoreAppVersionResponse {} + +// Request message for +// [AgentService.ListChangelogs][google.cloud.ces.v1.AgentService.ListChangelogs]. +message ListChangelogsRequest { + // Required. The resource name of the app to list changelogs from. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "ces.googleapis.com/Changelog" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The + // [next_page_token][google.cloud.ces.v1.ListChangelogsResponse.next_page_token] + // value returned from a previous list + // [AgentService.ListChangelogs][google.cloud.ces.v1.AgentService.ListChangelogs] + // call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter to be applied when listing the changelogs. + // See https://google.aip.dev/160 for more details. + // + // The filter string can be used to filter by `action`, `resource_type`, + // `resource_name`, `author`, and `create_time`. + // The `:` comparator can be used for case-insensitive partial matching on + // string fields, while `=` performs an exact case-sensitive match. + // + // Examples: + // * `action:update` (case-insensitive partial match) + // * `action="Create"` (case-sensitive exact match) + // * `resource_type:agent` + // * `resource_name:my-agent` + // * `author:me@example.com` + // * `create_time > "2025-01-01T00:00:00Z"` + // * `create_time <= "2025-01-01T00:00:00Z" AND resource_type:tool` + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Field to sort by. Only "name" and "create_time" is supported. + // See https://google.aip.dev/132#ordering for more details. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [AgentService.ListChangelogs][google.cloud.ces.v1.AgentService.ListChangelogs]. +message ListChangelogsResponse { + // The list of changelogs. + repeated Changelog changelogs = 1; + + // A token that can be sent as + // [ListChangelogsRequest.page_token][google.cloud.ces.v1.ListChangelogsRequest.page_token] + // to retrieve the next page. Absence of this field indicates there are no + // subsequent pages. + string next_page_token = 2; +} + +// Request message for +// [AgentService.GetChangelog][google.cloud.ces.v1.AgentService.GetChangelog]. +message GetChangelogRequest { + // Required. The resource name of the changelog to retrieve. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/Changelog" } + ]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/agent_transfers.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/agent_transfers.proto new file mode 100644 index 000000000000..790e59f8ce0a --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/agent_transfers.proto @@ -0,0 +1,101 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "AgentTransfersProto"; +option java_package = "com.google.cloud.ces.v1"; + +// Expression condition based on session state. +message ExpressionCondition { + // Required. The string representation of cloud.api.Expression condition. + string expression = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Python code block to evaluate the condition. +message PythonCodeCondition { + // Required. The python code to execute. + string python_code = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Rule for transferring to a specific agent. +message TransferRule { + // Deterministic transfer rule. When the condition evaluates to true, the + // transfer occurs. + message DeterministicTransfer { + // The condition to evaluate. + oneof condition_type { + // Optional. A rule that evaluates a session state condition. + // If the condition evaluates to true, the transfer occurs. + ExpressionCondition expression_condition = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A rule that uses Python code block to evaluate the + // conditions. If the condition evaluates to true, the transfer occurs. + PythonCodeCondition python_code_condition = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + } + + // A rule that prevents the planner from transferring to the target agent. + message DisablePlannerTransfer { + // Required. If the condition evaluates to true, planner will not be allowed + // to transfer to the target agent. + ExpressionCondition expression_condition = 1 + [(google.api.field_behavior) = REQUIRED]; + } + + // The direction of the transfer. + enum Direction { + // Unspecified direction. + DIRECTION_UNSPECIFIED = 0; + + // Transfer from the parent agent to the child agent. + PARENT_TO_CHILD = 1; + + // Transfer from the child agent to the parent agent. + CHILD_TO_PARENT = 2; + } + + // The rule type. + oneof rule_type { + // Optional. A rule that immediately transfers to the target agent when the + // condition is met. + DeterministicTransfer deterministic_transfer = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Rule that prevents the planner from transferring to the target + // agent. + DisablePlannerTransfer disable_planner_transfer = 4 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The resource name of the child agent the rule applies to. + // Format: + // `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + string child_agent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/Agent" } + ]; + + // Required. The direction of the transfer. + Direction direction = 2 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/app.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/app.proto new file mode 100644 index 000000000000..c62fd0194a7e --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/app.proto @@ -0,0 +1,651 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/ces/v1/bigquery_export.proto"; +import "google/cloud/ces/v1/common.proto"; +import "google/cloud/ces/v1/schema.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "AppProto"; +option java_package = "com.google.cloud.ces.v1"; +option (google.api.resource_definition) = { + type: "dlp.googleapis.com/InspectTemplate" + pattern: "organizations/{organization}/locations/{location}/inspectTemplates/{inspect_template}" + pattern: "projects/{project}/locations/{location}/inspectTemplates/{inspect_template}" +}; +option (google.api.resource_definition) = { + type: "dlp.googleapis.com/DeidentifyTemplate" + pattern: "organizations/{organization}/locations/{location}/deidentifyTemplates/{deidentify_template}" + pattern: "projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}" +}; +option (google.api.resource_definition) = { + type: "discoveryengine.googleapis.com/Engine" + pattern: "projects/{project}/locations/{location}/collections/{collection}/engines/{engine}" +}; + +// An app serves as a top-level container for a group of agents, including the +// root agent and its sub-agents, along with their associated configurations. +// These agents work together to achieve specific goals within the app's +// context. +message App { + option (google.api.resource) = { + type: "ces.googleapis.com/App" + pattern: "projects/{project}/locations/{location}/apps/{app}" + plural: "apps" + singular: "app" + }; + + // Defines the structure and metadata for a variable. + message VariableDeclaration { + // Required. The name of the variable. The name must start with a letter or + // underscore and contain only letters, numbers, or underscores. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The description of the variable. + string description = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The schema of the variable. + Schema schema = 3 [(google.api.field_behavior) = REQUIRED]; + } + + // Defines the tool execution behavior if there are **multiple** tools being + // selected by the agent **at the same time**. + enum ToolExecutionMode { + // Unspecified tool execution mode. Default to PARALLEL. + TOOL_EXECUTION_MODE_UNSPECIFIED = 0; + + // If there are multiple tools being selected, they will be executed in + // parallel, with the same + // [ToolContext](https://google.github.io/adk-docs/context/#the-different-types-of-context). + PARALLEL = 1; + + // If there are multiple tools being selected, they will be executed + // sequentially. The next tool will only be executed after the previous tool + // completes and it can see updated + // [ToolContext](https://google.github.io/adk-docs/context/#the-different-types-of-context) + // from the previous tool. + SEQUENTIAL = 2; + } + + // Identifier. The unique identifier of the app. + // Format: `projects/{project}/locations/{location}/apps/{app}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. Display name of the app. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Human-readable description of the app. + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether the app is pinned in the app list. + bool pinned = 31 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The root agent is the entry point of the app. + // Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + string root_agent = 4 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Agent" } + ]; + + // Optional. Language settings of the app. + LanguageSettings language_settings = 18 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. TimeZone settings of the app. + TimeZoneSettings time_zone_settings = 27 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Audio processing configuration of the app. + AudioProcessingConfig audio_processing_config = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Logging settings of the app. + LoggingSettings logging_settings = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The default LLM model settings for the app. + // Individual resources (e.g. agents, guardrails) can override these + // configurations as needed. + ModelSettings model_settings = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The tool execution mode for the app. If not provided, will + // default to PARALLEL. + ToolExecutionMode tool_execution_mode = 32 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The evaluation thresholds for the app. + EvaluationMetricsThresholds evaluation_metrics_thresholds = 24 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The declarations of the variables. + repeated VariableDeclaration variable_declarations = 14 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The declarations of predefined variables for the app. + repeated VariableDeclaration predefined_variable_declarations = 28 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Instructions for all the agents in the app. + // You can use this instruction to set up a stable identity or personality + // across all the agents. + string global_instruction = 17 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of guardrails for the app. + // Format: + // `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + repeated string guardrails = 10 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Guardrail" } + ]; + + // Optional. The data store settings for the app. + DataStoreSettings data_store_settings = 15 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The default channel profile used by the app. + ChannelProfile default_channel_profile = 22 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Metadata about the app. This field can be used to store + // additional information relevant to the app's details or intended usages. + map metadata = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Timestamp when the app was created. + google.protobuf.Timestamp create_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when the app was last updated. + google.protobuf.Timestamp update_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Etag used to ensure the object hasn't changed during a + // read-modify-write operation. If the etag is empty, the update will + // overwrite any concurrent changes. + string etag = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Number of deployments in the app. + int32 deployment_count = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The default client certificate settings for the app. + ClientCertificateSettings client_certificate_settings = 25 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates whether the app is locked for changes. If the app is + // locked, modifications to the app resources will be rejected. + bool locked = 29 [(google.api.field_behavior) = OPTIONAL]; +} + +// TimeZone settings of the app. +message TimeZoneSettings { + // Optional. The time zone of the app from the [time zone + // database](https://www.iana.org/time-zones), e.g., America/Los_Angeles, + // Europe/Paris. + string time_zone = 1 [(google.api.field_behavior) = OPTIONAL]; +} + +// Language settings of the app. +message LanguageSettings { + // Optional. The default language code of the app. + string default_language_code = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of languages codes supported by the app, in addition to the + // `default_language_code`. + repeated string supported_language_codes = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Enables multilingual support. If true, agents in the app will use + // pre-built instructions to improve handling of multilingual input. + bool enable_multilingual_support = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The action to perform when an agent receives input in an + // unsupported language. + // + // This can be a predefined action or a custom tool call. + // Valid values are: + // - A tool's full resource name, which triggers a specific tool execution. + // - A predefined system action, such as "escalate" or "exit", which triggers + // an [EndSession][google.cloud.ces.v1.EndSession] signal with corresponding + // [metadata][google.cloud.ces.v1.EndSession.metadata] to terminate the + // conversation. + string fallback_action = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Configuration for how the input and output audio should be processed and +// delivered. +message AudioProcessingConfig { + // Optional. Configuration of how the agent response should be synthesized, + // mapping from the language code to + // [SynthesizeSpeechConfig][google.cloud.ces.v1.SynthesizeSpeechConfig]. + // + // If the configuration for the specified language code is not found, the + // configuration for the root language code will be used. For example, if the + // map contains "en-us" and "en", and the specified language code is "en-gb", + // then "en" configuration will be used. + // + // Note: Language code is case-insensitive. + map synthesize_speech_configs = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configures the agent behavior for the user barge-in activities. + BargeInConfig barge_in_config = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The duration of user inactivity (no speech or interaction) before + // the agent prompts the user for reengagement. If not set, the agent will not + // prompt the user for reengagement. + google.protobuf.Duration inactivity_timeout = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for the ambient sound to be played with the + // synthesized agent response, to enhance the naturalness of the conversation. + AmbientSoundConfig ambient_sound_config = 5 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Configuration for the ambient sound to be played with the synthesized agent +// response, to enhance the naturalness of the conversation. +message AmbientSoundConfig { + // Prebuilt ambient noise. + enum PrebuiltAmbientNoise { + // Not specified. + PREBUILT_AMBIENT_NOISE_UNSPECIFIED = 0; + + // Ambient noise of a retail store. + RETAIL_STORE = 1; + + // Ambient noise of a convention hall. + CONVENTION_HALL = 2; + + // Ambient noise of a street. + OUTDOOR = 3; + } + + // Ambient noise to be played with the synthesized agent response, to + // enhance the naturalness of the conversation. + oneof source { + // Optional. Deprecated: `prebuilt_ambient_noise` is deprecated in favor of + // `prebuilt_ambient_sound`. + PrebuiltAmbientNoise prebuilt_ambient_noise = 1 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. Ambient noise as a mono-channel, 16kHz WAV file stored in + // [Cloud Storage](https://cloud.google.com/storage). + // + // Note: Please make sure the CES service agent + // `service-@gcp-sa-ces.iam.gserviceaccount.com` has + // `storage.objects.get` permission to the Cloud Storage object. + string gcs_uri = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Name of the prebuilt ambient sound. + // Valid values are: + // - "coffee_shop" + // - "keyboard" + // - "keypad" + // - "hum" + // - "office_1" + // - "office_2" + // - "office_3" + // - "room_1" + // - "room_2" + // - "room_3" + // - "room_4" + // - "room_5" + // - "air_conditioner" + string prebuilt_ambient_sound = 4 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. Volume gain (in dB) of the normal native volume supported by + // ambient noise, in the range [-96.0, 16.0]. If unset, or set to a value of + // 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB) + // will play at approximately half the amplitude of the normal native signal + // amplitude. A value of +6.0 (dB) will play at approximately twice the + // amplitude of the normal native signal amplitude. We strongly recommend not + // to exceed +10 (dB) as there's usually no effective increase in loudness for + // any value greater than that. + double volume_gain_db = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Configuration for how the user barge-in activities should be handled. +message BargeInConfig { + // Optional. Disables user barge-in while the agent is speaking. If true, user + // input during agent response playback will be ignored. + // + // Deprecated: `disable_barge_in` is deprecated in favor of + // [`disable_barge_in_control`][google.cloud.ces.v1.ChannelProfile.disable_barge_in_control] + // in ChannelProfile. + bool disable_barge_in = 1 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. If enabled, the agent will adapt its next response based on the + // assumption that the user hasn't heard the full preceding agent message. + // This should not be used in scenarios where agent responses are displayed + // visually. + bool barge_in_awareness = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Configuration for how the agent response should be synthesized. +message SynthesizeSpeechConfig { + // Optional. The name of the voice. If not set, the service will choose a + // voice based on the other parameters such as language_code. + // + // For the list of available voices, please refer to [Supported voices and + // languages](https://cloud.google.com/text-to-speech/docs/voices) from Cloud + // Text-to-Speech. + string voice = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The speaking rate/speed in the range [0.25, 2.0]. 1.0 is the + // normal native speed supported by the specific voice. 2.0 is twice as fast, + // and 0.5 is half as fast. Values outside of the range [0.25, 2.0] will + // return an error. + double speaking_rate = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Settings to describe the conversation data collection behaviors for LLM +// analysis metrics pipeline. +message MetricAnalysisSettings { + // Optional. Whether to collect conversation data for llm analysis metrics. If + // true, conversation data will not be collected for llm analysis metrics; + // otherwise, conversation data will be collected. + bool llm_metrics_opted_out = 1 [(google.api.field_behavior) = OPTIONAL]; +} + +// Settings to describe the logging behaviors for the app. +message LoggingSettings { + // Optional. Configuration for how sensitive data should be redacted. + RedactionConfig redaction_config = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for how audio interactions should be recorded. + AudioRecordingConfig audio_recording_config = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Settings to describe the BigQuery export behaviors for the app. + // The conversation data will be exported to BigQuery tables if it is enabled. + BigQueryExportSettings bigquery_export_settings = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Settings to describe the Cloud Logging behaviors for the app. + CloudLoggingSettings cloud_logging_settings = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Settings to describe the conversation logging behaviors for the + // app. + ConversationLoggingSettings conversation_logging_settings = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for how audio interactions should be recorded for + // the evaluation. By default, audio recording is not enabled for evaluation + // sessions. + AudioRecordingConfig evaluation_audio_recording_config = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Settings to describe the conversation data collection behaviors + // for the LLM analysis pipeline for the app. + MetricAnalysisSettings metric_analysis_settings = 7 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Threshold settings for metrics in an Evaluation. +message EvaluationMetricsThresholds { + // Settings for golden evaluations. + message GoldenEvaluationMetricsThresholds { + // Turn level metrics thresholds. + message TurnLevelMetricsThresholds { + // Semantic similarity channel to use. + enum SemanticSimilarityChannel { + // Metric unspecified. Defaults to TEXT. + SEMANTIC_SIMILARITY_CHANNEL_UNSPECIFIED = 0; + + // Use text semantic similarity. + TEXT = 1; + + // Use audio semantic similarity. + AUDIO = 2; + } + + // Optional. The success threshold for semantic similarity. Must be an + // integer between 0 and 4. Default is >= 3. + optional int32 semantic_similarity_success_threshold = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The success threshold for overall tool invocation + // correctness. Must be a float between 0 and 1. Default is 1.0. + optional float overall_tool_invocation_correctness_threshold = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The semantic similarity channel to use for evaluation. + SemanticSimilarityChannel semantic_similarity_channel = 3 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Expectation level metrics thresholds. + message ExpectationLevelMetricsThresholds { + // Optional. The success threshold for individual tool invocation + // parameter correctness. Must be a float between 0 and 1. Default is 1.0. + optional float tool_invocation_parameter_correctness_threshold = 1 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. The turn level metrics thresholds. + TurnLevelMetricsThresholds turn_level_metrics_thresholds = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The expectation level metrics thresholds. + ExpectationLevelMetricsThresholds expectation_level_metrics_thresholds = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The tool matching settings. An + // extra tool call is a tool call that is present in the execution but does + // not match any tool call in the golden expectation. + ToolMatchingSettings tool_matching_settings = 3 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Settings for matching tool calls. + message ToolMatchingSettings { + // Defines the behavior when an extra tool call is encountered. An extra + // tool call is a tool call that is present in the execution but does not + // match any tool call in the golden expectation. + enum ExtraToolCallBehavior { + // Unspecified behavior. Defaults to FAIL. + EXTRA_TOOL_CALL_BEHAVIOR_UNSPECIFIED = 0; + + // Fail the evaluation if an extra tool call is encountered. + FAIL = 1; + + // Allow the extra tool call. + ALLOW = 2; + } + + // Optional. Behavior for extra tool calls. + // Defaults to FAIL. + ExtraToolCallBehavior extra_tool_call_behavior = 1 + [(google.api.field_behavior) = OPTIONAL]; + } + + // The hallucination metric behavior. Regardless of the behavior, the metric + // will always be calculated. The difference is that when disabled, the + // metric is not used to calculate the overall evaluation score. + enum HallucinationMetricBehavior { + // Unspecified hallucination metric behavior. + HALLUCINATION_METRIC_BEHAVIOR_UNSPECIFIED = 0; + + // Disable hallucination metric. + DISABLED = 1; + + // Enable hallucination metric. + ENABLED = 2; + } + + // Optional. The golden evaluation metrics thresholds. + GoldenEvaluationMetricsThresholds golden_evaluation_metrics_thresholds = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead. + // The hallucination metric behavior is currently used for golden evaluations. + HallucinationMetricBehavior hallucination_metric_behavior = 3 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. The hallucination metric behavior for golden evaluations. + HallucinationMetricBehavior golden_hallucination_metric_behavior = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The hallucination metric behavior for scenario evaluations. + HallucinationMetricBehavior scenario_hallucination_metric_behavior = 4 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Settings for custom client certificates. +message ClientCertificateSettings { + // Required. The TLS certificate encoded in PEM format. This string must + // include the begin header and end footer lines. + string tls_certificate = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The name of the SecretManager secret version resource storing the + // private key encoded in PEM format. + // Format: `projects/{project}/secrets/{secret}/versions/{version}` + string private_key = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "secretmanager.googleapis.com/SecretVersion" + } + ]; + + // Optional. The name of the SecretManager secret version resource storing the + // passphrase to decrypt the private key. Should be left unset if the private + // key is not encrypted. + // Format: `projects/{project}/secrets/{secret}/versions/{version}` + string passphrase = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Settings to describe the conversation logging behaviors for the app. +message ConversationLoggingSettings { + // Optional. Whether to disable conversation logging for the sessions. + bool disable_conversation_logging = 1 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Settings to describe the Cloud Logging behaviors for the app. +message CloudLoggingSettings { + // Optional. Whether to enable Cloud Logging for the sessions. + bool enable_cloud_logging = 1 [(google.api.field_behavior) = OPTIONAL]; +} + +// Configuration for how the audio interactions should be recorded. +message AudioRecordingConfig { + // Optional. The [Cloud Storage](https://cloud.google.com/storage) bucket to + // store the session audio recordings. The URI must start with "gs://". + // + // Please choose a bucket location that meets your data residency + // requirements. + // + // Note: If the Cloud Storage bucket is in a different project from the app, + // you should grant `storage.objects.create` permission to the CES service + // agent `service-@gcp-sa-ces.iam.gserviceaccount.com`. + string gcs_bucket = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Cloud Storage path prefix for audio recordings. + // + // This prefix can include the following placeholders, which will be + // dynamically substituted at serving time: + // - $project: project ID + // - $location: app location + // - $app: app ID + // - $date: session date in YYYY-MM-DD format + // - $session: session ID + // + // If the path prefix is not specified, the default prefix + // `$project/$location/$app/$date/$session/` will be used. + string gcs_path_prefix = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Configuration to instruct how sensitive data should be handled. +message RedactionConfig { + // Optional. If true, redaction will be applied in various logging scenarios, + // including conversation history, Cloud Logging and audio recording. + bool enable_redaction = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. [DLP](https://cloud.google.com/dlp/docs) inspect template name to + // configure detection of sensitive data types. + // + // Format: + // `projects/{project}/locations/{location}/inspectTemplates/{inspect_template}` + string inspect_template = 2 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "dlp.googleapis.com/InspectTemplate" + } + ]; + + // Optional. [DLP](https://cloud.google.com/dlp/docs) deidentify template name + // to instruct on how to de-identify content. + // + // Format: + // `projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}` + string deidentify_template = 3 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "dlp.googleapis.com/DeidentifyTemplate" + } + ]; +} + +// Data store related settings for the app. +message DataStoreSettings { + // An engine to which the data stores are connected. + // See Vertex AI Search: + // https://cloud.google.com/generative-ai-app-builder/docs/enterprise-search-introduction. + message Engine { + // The type of the engine. + // See the documentation available at + // https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1/SolutionType + // and + // https://cloud.google.com/generative-ai-app-builder/docs/create-datastore-ingest. + enum Type { + // Unspecified engine type. + TYPE_UNSPECIFIED = 0; + + // The SOLUTION_TYPE_SEARCH engine for the app. All connector data stores + // added to the app will be added to this engine. + ENGINE_TYPE_SEARCH = 1; + + // Chat engine type. + // The SOLUTION_TYPE_CHAT engine for the app. All connector data stores + // added to the app will be added to this engine. + ENGINE_TYPE_CHAT = 2; + } + + // Output only. The resource name of the engine. + // Format: + // `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + string name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Engine" + } + ]; + + // Output only. The type of the engine. + Type type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. The engines for the app. + repeated Engine engines = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/app_version.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/app_version.proto new file mode 100644 index 000000000000..ff383d97347f --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/app_version.proto @@ -0,0 +1,91 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/ces/v1/agent.proto"; +import "google/cloud/ces/v1/app.proto"; +import "google/cloud/ces/v1/example.proto"; +import "google/cloud/ces/v1/guardrail.proto"; +import "google/cloud/ces/v1/tool.proto"; +import "google/cloud/ces/v1/toolset.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "AppVersionProto"; +option java_package = "com.google.cloud.ces.v1"; + +// A snapshot of the app. +message AppSnapshot { + // Optional. The basic settings for the app. + App app = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of agents in the app. + repeated Agent agents = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of tools in the app. + repeated Tool tools = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of examples in the app. + repeated Example examples = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of guardrails in the app. + repeated Guardrail guardrails = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of toolsets in the app. + repeated Toolset toolsets = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// In Customer Engagement Suite (CES), an app version is a snapshot of the app +// at a specific point in time. It is immutable and cannot be modified once +// created. +message AppVersion { + option (google.api.resource) = { + type: "ces.googleapis.com/AppVersion" + pattern: "projects/{project}/locations/{location}/apps/{app}/versions/{version}" + plural: "appVersions" + singular: "appVersion" + }; + + // Identifier. The unique identifier of the app version. + // Format: + // `projects/{project}/locations/{location}/apps/{app}/versions/{version}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. The display name of the app version. + string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The description of the app version. + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Email of the user who created the app version. + string creator = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when the app version was created. + google.protobuf.Timestamp create_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The snapshot of the app when the version is created. + AppSnapshot snapshot = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Etag used to ensure the object hasn't changed during a + // read-modify-write operation. If the etag is empty, the update will + // overwrite any concurrent changes. + string etag = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/auth.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/auth.proto new file mode 100644 index 000000000000..882c36891383 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/auth.proto @@ -0,0 +1,195 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "AuthProto"; +option java_package = "com.google.cloud.ces.v1"; +option (google.api.resource_definition) = { + type: "secretmanager.googleapis.com/SecretVersion" + pattern: "projects/{project}/secrets/{secret}/versions/{secret_version}" +}; + +// Configurations for authentication with API key. +message ApiKeyConfig { + // The location of the API key in the request. + enum RequestLocation { + // Unspecified. This value should not be used. + REQUEST_LOCATION_UNSPECIFIED = 0; + + // Represents the key in http header. + HEADER = 1; + + // Represents the key in query string. + QUERY_STRING = 2; + } + + // Required. The parameter name or the header name of the API key. + // E.g., If the API request is "https://example.com/act?X-Api-Key=", "X-Api-Key" would be the parameter name. + string key_name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The name of the SecretManager secret version resource storing the + // API key. Format: `projects/{project}/secrets/{secret}/versions/{version}` + // + // Note: You should grant `roles/secretmanager.secretAccessor` role to the CES + // service agent + // `service-@gcp-sa-ces.iam.gserviceaccount.com`. + string api_key_secret_version = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "secretmanager.googleapis.com/SecretVersion" + } + ]; + + // Required. Key location in the request. + RequestLocation request_location = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Configurations for authentication with OAuth. +message OAuthConfig { + // OAuth grant types. Only [client credential + // grant](https://oauth.net/2/grant-types/client-credentials) is supported. + enum OauthGrantType { + // Unspecified. Defaults to CLIENT_CREDENTIAL. + OAUTH_GRANT_TYPE_UNSPECIFIED = 0; + + // Represents the [client credential + // flow](https://oauth.net/2/grant-types/client-credentials). + CLIENT_CREDENTIAL = 1; + } + + // Required. OAuth grant types. + OauthGrantType oauth_grant_type = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The client ID from the OAuth provider. + string client_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The name of the SecretManager secret version resource storing the + // client secret. + // Format: `projects/{project}/secrets/{secret}/versions/{version}` + // + // Note: You should grant `roles/secretmanager.secretAccessor` role to the CES + // service agent + // `service-@gcp-sa-ces.iam.gserviceaccount.com`. + string client_secret_version = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "secretmanager.googleapis.com/SecretVersion" + } + ]; + + // Required. The token endpoint in the OAuth provider to exchange for an + // access token. + string token_endpoint = 4 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The OAuth scopes to grant. + repeated string scopes = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Configurations for authentication with [ID +// token](https://cloud.google.com/docs/authentication/token-types#id) generated +// from service agent. +message ServiceAgentIdTokenAuthConfig {} + +// Configurations for authentication using a custom service account. +message ServiceAccountAuthConfig { + // Required. The email address of the service account used for authentication. + // CES uses this service account to exchange an access token and the access + // token is then sent in the `Authorization` header of the request. + // + // The service account must have the + // `roles/iam.serviceAccountTokenCreator` role granted to the + // CES service agent + // `service-@gcp-sa-ces.iam.gserviceaccount.com`. + string service_account = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The OAuth scopes to grant. If not specified, the default scope + // `https://www.googleapis.com/auth/cloud-platform` is used. + repeated string scopes = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Configurations for authentication with a bearer token. +message BearerTokenConfig { + // Required. The bearer token. + // Must be in the format `$context.variables.`. + string token = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// End-user authentication configuration used for Connection calls. +// The field values must be the names of context variables in the format +// `$context.variables.`. +message EndUserAuthConfig { + // Oauth 2.0 Authorization Code authentication configuration. + message Oauth2AuthCodeConfig { + // Required. Oauth token parameter name to pass through. + // Must be in the format `$context.variables.`. + string oauth_token = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // JWT Profile Oauth 2.0 Authorization Grant authentication configuration. + message Oauth2JwtBearerConfig { + // Required. Issuer parameter name to pass through. + // Must be in the format `$context.variables.`. + string issuer = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Subject parameter name to pass through. + // Must be in the format `$context.variables.`. + string subject = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Client parameter name to pass through. + // Must be in the format `$context.variables.`. + string client_key = 3 [(google.api.field_behavior) = REQUIRED]; + } + + // The auth configuration. + oneof auth_config { + // Oauth 2.0 Authorization Code authentication. + Oauth2AuthCodeConfig oauth2_auth_code_config = 2; + + // JWT Profile Oauth 2.0 Authorization Grant authentication. + Oauth2JwtBearerConfig oauth2_jwt_bearer_config = 3; + } +} + +// Authentication information required for API calls. +message ApiAuthentication { + // The auth configuration. + oneof auth_config { + // Optional. Config for API key auth. + ApiKeyConfig api_key_config = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Config for OAuth. + OAuthConfig oauth_config = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Config for ID token auth generated from CES service agent. + ServiceAgentIdTokenAuthConfig service_agent_id_token_auth_config = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Config for service account authentication. + ServiceAccountAuthConfig service_account_auth_config = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Config for bearer token auth. + BearerTokenConfig bearer_token_config = 5 + [(google.api.field_behavior) = OPTIONAL]; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/bigquery_export.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/bigquery_export.proto new file mode 100644 index 000000000000..dd9e7cc1f715 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/bigquery_export.proto @@ -0,0 +1,40 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "BigQueryExportProto"; +option java_package = "com.google.cloud.ces.v1"; + +// Settings to describe the BigQuery export behaviors for the app. +message BigQueryExportSettings { + // Optional. Indicates whether the BigQuery export is enabled. + bool enabled = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The project ID of the BigQuery dataset to export the data to. + // + // Note: If the BigQuery dataset is in a different project from the app, + // you should grant `roles/bigquery.admin` role to the CES service agent + // `service-@gcp-sa-ces.iam.gserviceaccount.com`. + string project = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The BigQuery dataset to export the data to. + string dataset = 3 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/changelog.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/changelog.proto new file mode 100644 index 000000000000..5b20de06e949 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/changelog.proto @@ -0,0 +1,82 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "ChangelogProto"; +option java_package = "com.google.cloud.ces.v1"; + +// Changelogs represent a change made to the app or to an resource within the +// app. +message Changelog { + option (google.api.resource) = { + type: "ces.googleapis.com/Changelog" + pattern: "projects/{project}/locations/{location}/apps/{app}/changelogs/{changelog}" + plural: "changelogs" + singular: "changelog" + }; + + // Identifier. The unique identifier of the changelog. + // Format: + // `projects/{project}/locations/{location}/apps/{app}/changelogs/{changelog}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. Email address of the change author. + string author = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Display name of the change. It typically should be the display + // name of the resource that was changed. + string display_name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Description of the change. which typically captures the + // changed fields in the resource. + string description = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The resource that was changed. + string resource = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The type of the resource that was changed. + string resource_type = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The action that was performed on the resource. + string action = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The original resource before the change. + google.protobuf.Struct original_resource = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The new resource after the change. + google.protobuf.Struct new_resource = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The dependent resources that were changed. + repeated google.protobuf.Struct dependent_resources = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the change was made. + google.protobuf.Timestamp create_time = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The monotonically increasing sequence number of the changelog. + int64 sequence_number = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/client_function.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/client_function.proto new file mode 100644 index 000000000000..02b793a4ba8c --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/client_function.proto @@ -0,0 +1,44 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; +import "google/cloud/ces/v1/schema.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "ClientFunctionProto"; +option java_package = "com.google.cloud.ces.v1"; + +// Represents a client-side function that the agent can invoke. When the +// tool is chosen by the agent, control is handed off to the client. +// The client is responsible for executing the function and returning the result +// as a [ToolResponse][google.cloud.ces.v1.ToolResponse] to continue the +// interaction with the agent. +message ClientFunction { + // Required. The function name. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The function description. + string description = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The schema of the function parameters. + Schema parameters = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The schema of the function response. + Schema response = 4 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/common.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/common.proto new file mode 100644 index 000000000000..c5e638848cd8 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/common.proto @@ -0,0 +1,344 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "CommonProto"; +option java_package = "com.google.cloud.ces.v1"; +option (google.api.resource_definition) = { + type: "servicedirectory.googleapis.com/Service" + pattern: "projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}" +}; + +// The execution type of the tool or toolset. +enum ExecutionType { + // The execution type is unspecified. Defaults to `SYNCHRONOUS` if + // unspecified. + EXECUTION_TYPE_UNSPECIFIED = 0; + + // The tool is executed synchronously. The session is blocked + // until the tool returns. + SYNCHRONOUS = 1; + + // The tool is executed asynchronously. The session will + // continue while the tool is executing. + ASYNCHRONOUS = 2; +} + +// A callback defines the custom logic to be executed at various stages of +// agent interaction. +message Callback { + // The callback to execute. + oneof callback { + // Required. The python code to execute for the callback. + string python_code = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Optional. Human-readable description of the callback. + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether the callback is disabled. Disabled callbacks are ignored + // by the agent. + bool disabled = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If enabled, the callback will also be executed on intermediate + // model outputs. This setting only affects after model callback. + // **ENABLE WITH CAUTION**. Typically after model callback only needs to be + // executed after receiving all model responses. Enabling proactive execution + // may have negative implication on the execution cost and latency, and + // should only be enabled in rare situations. + bool proactive_execution_enabled = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Model settings contains various configurations for the LLM model. +message ModelSettings { + // Optional. The LLM model that the agent should use. + // If not set, the agent will inherit the model from its parent agent. + string model = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, this temperature will be used for the LLM model. + // Temperature controls the randomness of the model's responses. Lower + // temperatures produce responses that are more predictable. Higher + // temperatures produce responses that are more creative. + optional double temperature = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Action that is taken when a certain precondition is met. +message TriggerAction { + // Represents a response from the agent. + message Response { + // Required. Text for the agent to respond with. + string text = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Whether the response is disabled. Disabled responses are not + // used by the agent. + bool disabled = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // The agent will immediately respond with a preconfigured response. + message RespondImmediately { + // Required. The canned responses for the agent to choose from. The response + // is chosen randomly. + repeated Response responses = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // The agent will immediately respond with a generative answer. + message GenerativeAnswer { + // Required. The prompt to use for the generative answer. + string prompt = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // The agent will transfer the conversation to a different agent. + message TransferAgent { + // Required. The name of the agent to transfer the conversation to. The + // agent must be in the same app as the current agent. Format: + // `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + string agent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/Agent" } + ]; + } + + // The action to take. + oneof action { + // Optional. Immediately respond with a preconfigured response. + RespondImmediately respond_immediately = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Transfer the conversation to a different agent. + TransferAgent transfer_agent = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Respond with a generative answer. + GenerativeAnswer generative_answer = 3 + [(google.api.field_behavior) = OPTIONAL]; + } +} + +// The TLS configuration. +message TlsConfig { + // The CA certificate. + message CaCert { + // Required. The name of the allowed custom CA certificates. This + // can be used to disambiguate the custom CA certificates. + string display_name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The allowed custom CA certificates (in DER format) for + // HTTPS verification. This overrides the default SSL trust store. If this + // is empty or unspecified, CES will use Google's default trust + // store to verify certificates. N.B. Make sure the HTTPS server + // certificates are signed with "subject alt name". For instance a + // certificate can be self-signed using the following command, + // openssl x509 -req -days 200 -in example.com.csr \ + // -signkey example.com.key \ + // -out example.com.crt \ + // -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") + bytes cert = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Required. Specifies a list of allowed custom CA certificates for HTTPS + // verification. + repeated CaCert ca_certs = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Configuration for tools using Service Directory. +message ServiceDirectoryConfig { + // Required. The name of [Service + // Directory](https://cloud.google.com/service-directory) service. + // Format: + // `projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}`. + // Location of the service directory must be the same as the location of the + // app. + string service = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "servicedirectory.googleapis.com/Service" + } + ]; +} + +// A ChannelProfile configures the agent's behavior for a specific communication +// channel, such as web UI or telephony. +message ChannelProfile { + // Represents the persona property of a channel. + message PersonaProperty { + // The persona of the channel. + enum Persona { + // UNKNOWN persona. + UNKNOWN = 0; + + // The agent keeps the responses concise and to the point + CONCISE = 1; + + // The agent provides additional context, explanations, and details + CHATTY = 2; + } + + // Optional. The persona of the channel. + Persona persona = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // Message for configuration for the web widget. + message WebWidgetConfig { + // Security settings for the web widget. + message SecuritySettings { + // Optional. Indicates whether public access to the web widget is enabled. + // If `true`, the web widget will be publicly accessible. + // If `false`, the web widget must be integrated with your own + // authentication and authorization system to return valid credentials for + // accessing the CES agent. + bool enable_public_access = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates whether origin check for the web widget is enabled. + // If `true`, the web widget will check the origin of the website that + // loads the web widget and only allow it to be loaded in the same origin + // or any of the allowed origins. + bool enable_origin_check = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The origins that are allowed to host the web widget. An + // origin is defined by RFC 6454. If empty, all origins are allowed. A + // maximum of 100 origins is allowed. Example: "https://example.com" + repeated string allowed_origins = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates whether reCAPTCHA verification for the web widget + // is enabled. + bool enable_recaptcha = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // Modality of the web widget. + enum Modality { + // Unknown modality. + MODALITY_UNSPECIFIED = 0; + + // Widget supports both chat and voice input. + CHAT_AND_VOICE = 1; + + // Widget supports only voice input. + VOICE_ONLY = 2; + + // Widget supports only chat input. + CHAT_ONLY = 3; + } + + // Theme of the web widget. + enum Theme { + // Unknown theme. + THEME_UNSPECIFIED = 0; + + // Light theme. + LIGHT = 1; + + // Dark theme. + DARK = 2; + } + + // Optional. The modality of the web widget. + Modality modality = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The theme of the web widget. + Theme theme = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The title of the web widget. + string web_widget_title = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The security settings of the web widget. + SecuritySettings security_settings = 4 + [(google.api.field_behavior) = OPTIONAL]; + } + + // The type of the channel profile. + enum ChannelType { + // Unknown channel type. + UNKNOWN = 0; + + // Web UI channel. + WEB_UI = 2; + + // API channel. + API = 3; + + // Twilio channel. + TWILIO = 4; + + // Google Telephony Platform channel. + GOOGLE_TELEPHONY_PLATFORM = 5; + + // Contact Center as a Service (CCaaS) channel. + CONTACT_CENTER_AS_A_SERVICE = 6; + + // Five9 channel. + FIVE9 = 7; + } + + // Optional. The unique identifier of the channel profile. + string profile_id = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The type of the channel profile. + ChannelType channel_type = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The persona property of the channel profile. + PersonaProperty persona_property = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether to disable DTMF (dual-tone multi-frequency). + bool disable_dtmf = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether to disable user barge-in control in the conversation. + // - **true**: User interruptions are disabled while the agent is speaking. + // - **false**: The agent retains automatic control over when the user can + // interrupt. + bool disable_barge_in_control = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The configuration for the web widget. + WebWidgetConfig web_widget_config = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The noise suppression level of the channel profile. + // Available values are "low", "moderate", "high", "very_high". + string noise_suppression_level = 8 [(google.api.field_behavior) = OPTIONAL]; +} + +// A span is a unit of work or a single operation during the request processing. +message Span { + // Output only. The name of the span. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The start time of the span. + google.protobuf.Timestamp start_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The end time of the span. + google.protobuf.Timestamp end_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The duration of the span. + google.protobuf.Duration duration = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Key-value attributes associated with the span. + google.protobuf.Struct attributes = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The child spans that are nested under this span. + repeated Span child_spans = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/connector_tool.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/connector_tool.proto new file mode 100644 index 000000000000..a0a98bfd7a13 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/connector_tool.proto @@ -0,0 +1,111 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; +import "google/cloud/ces/v1/auth.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "ConnectorToolProto"; +option java_package = "com.google.cloud.ces.v1"; + +// Configuration of an Action for the tool to use. +// Note: This can be either an Action or an Operation. See +// https://cloud.google.com/integration-connectors/docs/entities-operation-action +// for details. +message Action { + // Entity CRUD operation specification. + message EntityOperation { + // The operation to perform on the entity. + enum OperationType { + // Operation type unspecified. Invalid, ConnectorTool create/update + // will fail. + OPERATION_TYPE_UNSPECIFIED = 0; + + // List operation. + LIST = 1; + + // Get operation. + GET = 2; + + // Create operation. + CREATE = 3; + + // Update operation. + UPDATE = 4; + + // Delete operation. + DELETE = 5; + } + + // Required. ID of the entity. + string entity_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Operation to perform on the entity. + OperationType operation = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Specification for an action to configure for the tool to use. + oneof action_spec { + // ID of a Connection action for the tool to use. + string connection_action_id = 4; + + // Entity operation configuration for the tool to use. + EntityOperation entity_operation = 5; + } + + // Optional. Entity fields to use as inputs for the operation. + // If no fields are specified, all fields of the Entity will be used. + repeated string input_fields = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Entity fields to return from the operation. + // If no fields are specified, all fields of the Entity will be returned. + repeated string output_fields = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// A ConnectorTool allows connections to different integrations. +// See: https://cloud.google.com/integration-connectors/docs/overview. +message ConnectorTool { + // Required. The full resource name of the referenced Integration Connectors + // Connection. + // Format: + // `projects/{project}/locations/{location}/connections/{connection}` + string connection = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Action for the tool to use. + Action action = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Configures how authentication is handled in Integration + // Connectors. By default, an admin authentication is passed in the + // Integration Connectors API requests. You can override it with a different + // end-user authentication config. + // **Note**: The Connection must have authentication override enabled in + // order to specify an EUC configuration here - otherwise, the ConnectorTool + // creation will fail. See + // https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override + // for details. + EndUserAuthConfig auth_config = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The name of the tool that can be used by the Agent to decide + // whether to call this ConnectorTool. + string name = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The description of the tool that can be used by the Agent to + // decide whether to call this ConnectorTool. + string description = 5 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/connector_toolset.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/connector_toolset.proto new file mode 100644 index 000000000000..e30b9e651ded --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/connector_toolset.proto @@ -0,0 +1,50 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; +import "google/cloud/ces/v1/auth.proto"; +import "google/cloud/ces/v1/connector_tool.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "ConnectorToolsetProto"; +option java_package = "com.google.cloud.ces.v1"; + +// A toolset that generates tools from an Integration Connectors Connection. +message ConnectorToolset { + // Required. The full resource name of the referenced Integration Connectors + // Connection. + // Format: + // `projects/{project}/locations/{location}/connections/{connection}` + string connection = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Configures how authentication is handled in Integration + // Connectors. By default, an admin authentication is passed in the + // Integration Connectors API requests. You can override it with a different + // end-user authentication config. + // **Note**: The Connection must have authentication override enabled in + // order to specify an EUC configuration here - otherwise, the Toolset + // creation will fail. See: + // https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override + EndUserAuthConfig auth_config = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The list of connector actions/entity operations to generate tools + // for. + repeated Action connector_actions = 3 + [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/conversation.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/conversation.proto new file mode 100644 index 000000000000..6630ac30c73e --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/conversation.proto @@ -0,0 +1,165 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/ces/v1/common.proto"; +import "google/cloud/ces/v1/example.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "ConversationProto"; +option java_package = "com.google.cloud.ces.v1"; + +// A conversation represents an interaction between an end user and the CES app. +message Conversation { + option (google.api.resource) = { + type: "ces.googleapis.com/Conversation" + pattern: "projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}" + plural: "conversations" + singular: "conversation" + }; + + // All information about a single turn in the conversation. + message Turn { + // Optional. List of messages in the conversation turn, including user + // input, agent responses and intermediate events during the processing. + repeated Message messages = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The root span of the action processing. + Span root_span = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // The channel type of the conversation. + enum ChannelType { + // Unspecified channel type. + CHANNEL_TYPE_UNSPECIFIED = 0; + + // The conversation only contains text messages between the end user and the + // agent. + TEXT = 1; + + // The conversation contains audio messages between the end user and the + // agent. + AUDIO = 2; + + // The conversation multi-modal messages (e.g. image) between the end user + // and the agent. + MULTIMODAL = 3; + } + + // The source of the conversation. + enum Source { + // Unspecified source. + SOURCE_UNSPECIFIED = 0; + + // The conversation is from the live end user. + LIVE = 1; + + // The conversation is from the simulator. + SIMULATOR = 2; + + // The conversation is from the evaluation. + EVAL = 3; + } + + // Type of the input message. + enum InputType { + // Unspecified input type. + INPUT_TYPE_UNSPECIFIED = 0; + + // The input message is text. + INPUT_TYPE_TEXT = 1; + + // The input message is audio. + INPUT_TYPE_AUDIO = 2; + + // The input message is image. + INPUT_TYPE_IMAGE = 3; + + // The input message is blob file. + INPUT_TYPE_BLOB = 4; + + // The input message is client function tool response. + INPUT_TYPE_TOOL_RESPONSE = 5; + + // The input message are variables. + INPUT_TYPE_VARIABLES = 6; + } + + // Identifier. The unique identifier of the conversation. + // Format: + // `projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. Timestamp when the conversation was created. + google.protobuf.Timestamp start_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when the conversation was completed. + google.protobuf.Timestamp end_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The turns in the conversation. + repeated Turn turns = 6 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The number of turns in the conversation. + int32 turn_count = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // DEPRECATED. Please use + // [input_types][google.cloud.ces.v1.Conversation.input_types] instead. + ChannelType channel_type = 8 [deprecated = true]; + + // Output only. Indicate the source of the conversation. + Source source = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The input types of the conversation. + repeated InputType input_types = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The agent that initially handles the conversation. If not + // specified, the conversation is handled by the root agent. Format: + // `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + string entry_agent = 11 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { type: "ces.googleapis.com/Agent" } + ]; + + // Output only. The deployment of the app used for processing the + // conversation. Format: + // `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + string deployment = 12 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { type: "ces.googleapis.com/Deployment" } + ]; + + // Output only. The version of the app used for processing the conversation. + // Format: + // `projects/{project}/locations/{location}/apps/{app}/versions/{version}` + string app_version = 13 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { type: "ces.googleapis.com/AppVersion" } + ]; + + // Output only. The language code of the conversation. + string language_code = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Deprecated. Use turns instead. + repeated Message messages = 2 [deprecated = true]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/data_store.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/data_store.proto new file mode 100644 index 000000000000..08772a55ba46 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/data_store.proto @@ -0,0 +1,98 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "DataStoreProto"; +option java_package = "com.google.cloud.ces.v1"; + +// A DataStore resource in Vertex AI Search. +message DataStore { + // The connector config for the data store connection. + message ConnectorConfig { + // Resource name of the collection the data store belongs to. + string collection = 1; + + // Display name of the collection the data store belongs to. + string collection_display_name = 2; + + // The name of the data source. + // Example: `salesforce`, `jira`, `confluence`, `bigquery`. + string data_source = 3; + } + + // The type of the data store. + enum DataStoreType { + // Not specified. This value indicates that the data store type is not + // specified, so it will not be used during search. + DATA_STORE_TYPE_UNSPECIFIED = 0; + + // A data store that contains public web content. + PUBLIC_WEB = 1; + + // A data store that contains unstructured private data. + UNSTRUCTURED = 2; + + // A data store that contains structured data used as FAQ. + FAQ = 3; + + // A data store that is a connector to a first-party or a third-party + // service. + CONNECTOR = 4; + } + + // The document processing mode of the data store. + enum DocumentProcessingMode { + // Not specified. + DOCUMENT_PROCESSING_MODE_UNSPECIFIED = 0; + + // Documents are processed as documents. + DOCUMENTS = 1; + + // Documents are converted to chunks. + CHUNKS = 2; + } + + // Required. Full resource name of the DataStore. + // Format: + // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}` + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The type of the data store. This field is readonly and + // populated by the server. + DataStoreType type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The document processing mode for the data store connection. + // Only set for PUBLIC_WEB and UNSTRUCTURED data stores. + DocumentProcessingMode document_processing_mode = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The display name of the data store. + string display_name = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when the data store was created. + google.protobuf.Timestamp create_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The connector config for the data store connection. + ConnectorConfig connector_config = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/data_store_tool.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/data_store_tool.proto new file mode 100644 index 000000000000..23c9ca00aded --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/data_store_tool.proto @@ -0,0 +1,302 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; +import "google/cloud/ces/v1/common.proto"; +import "google/cloud/ces/v1/data_store.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "DataStoreToolProto"; +option java_package = "com.google.cloud.ces.v1"; + +// Tool to retrieve from Vertex AI Search datastore or engine for grounding. +// Accepts either a datastore or an engine, but not both. +// See Vertex AI Search: +// https://cloud.google.com/generative-ai-app-builder/docs/enterprise-search-introduction. +message DataStoreTool { + // Rewriter configuration. + message RewriterConfig { + // Required. Configurations for the LLM model. + ModelSettings model_settings = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The prompt definition. If not set, default prompt will be used. + string prompt = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether the rewriter is disabled. + bool disabled = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // Summarization configuration. + message SummarizationConfig { + // Optional. Configurations for the LLM model. + ModelSettings model_settings = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The prompt definition. If not set, default prompt will be used. + string prompt = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether summarization is disabled. + bool disabled = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // Grounding configuration. + message GroundingConfig { + // Optional. The groundedness threshold of the answer based on the retrieved + // sources. The value has a configurable range of [1, 5]. The level is used + // to threshold the groundedness of the answer, meaning that all responses + // with a groundedness score below the threshold will fall back to returning + // relevant snippets only. + // + // For example, a level of 3 means that the groundedness score must be + // 3 or higher for the response to be returned. + float grounding_level = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether grounding is disabled. + bool disabled = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Configuration for searching within a specific DataStore. + message DataStoreSource { + // Optional. Filter specification for the DataStore. + // See: + // https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata + string filter = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The data store. + DataStore data_store = 4 [(google.api.field_behavior) = OPTIONAL]; + } + + // Configuration for searching within an Engine, potentially targeting + // specific DataStores. + message EngineSource { + // Required. Full resource name of the Engine. + // Format: + // `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + string engine = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Use to target specific DataStores within the Engine. + // If empty, the search applies to all DataStores associated with the + // Engine. + repeated DataStoreSource data_store_sources = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A filter applied to the search across the Engine. Not relevant + // and not used if 'data_store_sources' is provided. See: + // https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata + string filter = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // Boost specifications to boost certain documents. + // For more information, please refer to + // https://cloud.google.com/generative-ai-app-builder/docs/boosting. + message BoostSpecs { + // Required. The Data Store where the boosting configuration is applied. + // Full resource name of DataStore, such as + // projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}. + repeated string data_stores = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. A list of boosting specifications. + repeated BoostSpec spec = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Boost specification to boost certain documents. + message BoostSpec { + // Boost specification for a condition. + message ConditionBoostSpec { + // Specification for custom ranking based on customer specified attribute + // value. It provides more controls for customized ranking than the simple + // (condition, boost) combination above. + message BoostControlSpec { + // The control points used to define the curve. The curve defined + // through these control points can only be monotonically increasing + // or decreasing(constant values are acceptable). + message ControlPoint { + // Optional. Can be one of: + // 1. The numerical field value. + // 2. The duration spec for freshness: + // The value must be formatted as an XSD `dayTimeDuration` value (a + // restricted subset of an ISO 8601 duration value). The pattern for + // this is: `[nD][T[nH][nM][nS]]`. + string attribute_value = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The value between -1 to 1 by which to boost the score if + // the attribute_value evaluates to the value specified above. + float boost_amount = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // The attribute(or function) for which the custom ranking is to be + // applied. + enum AttributeType { + // Unspecified AttributeType. + ATTRIBUTE_TYPE_UNSPECIFIED = 0; + + // The value of the numerical field will be used to dynamically update + // the boost amount. In this case, the attribute_value (the x value) + // of the control point will be the actual value of the numerical + // field for which the boost_amount is specified. + NUMERICAL = 1; + + // For the freshness use case the attribute value will be the duration + // between the current time and the date in the datetime field + // specified. The value must be formatted as an XSD `dayTimeDuration` + // value (a restricted subset of an ISO 8601 duration value). The + // pattern for this is: `[nD][T[nH][nM][nS]]`. + // E.g. `5D`, `3DT12H30M`, `T24H`. + FRESHNESS = 2; + } + + // The interpolation type to be applied. Default will be linear + // (Piecewise Linear). + enum InterpolationType { + // Interpolation type is unspecified. In this case, it defaults to + // Linear. + INTERPOLATION_TYPE_UNSPECIFIED = 0; + + // Piecewise linear interpolation will be applied. + LINEAR = 1; + } + + // Optional. The name of the field whose value will be used to determine + // the boost amount. + string field_name = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The attribute type to be used to determine the boost + // amount. The attribute value can be derived from the field value of + // the specified field_name. In the case of numerical it is + // straightforward i.e. attribute_value = numerical_field_value. In the + // case of freshness however, attribute_value = (time.now() - + // datetime_field_value). + AttributeType attribute_type = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The interpolation type to be applied to connect the control + // points listed below. + InterpolationType interpolation_type = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The control points used to define the curve. The monotonic + // function (defined through the interpolation_type above) passes + // through the control points listed here. + repeated ControlPoint control_points = 4 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. An expression which specifies a boost condition. The syntax + // is the same as filter expression syntax. Currently, the only supported + // condition is a list of BCP-47 lang codes. Example: To boost suggestions + // in languages en or fr: (lang_code: ANY("en", "fr")) + string condition = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Strength of the boost, which should be in [-1, 1]. Negative + // boost means demotion. Default is 0.0. + // + // Setting to 1.0 gives the suggestions a big promotion. However, it does + // not necessarily mean that the top result will be a boosted suggestion. + // + // Setting to -1.0 gives the suggestions a big demotion. However, other + // suggestions that are relevant might still be shown. + // + // Setting to 0.0 means no boost applied. The boosting condition is + // ignored. + float boost = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Complex specification for custom ranking based on customer + // defined attribute value. + BoostControlSpec boost_control_spec = 4 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. A list of boosting specifications. + repeated ConditionBoostSpec condition_boost_specs = 1 + [(google.api.field_behavior) = REQUIRED]; + } + + // If specified, will apply the given configuration for the specified + // modality. + message ModalityConfig { + // The modality type. + enum ModalityType { + // Unspecified modality type. + MODALITY_TYPE_UNSPECIFIED = 0; + + // Text modality. + TEXT = 1; + + // Audio modality. + AUDIO = 2; + } + + // Required. The modality type. + ModalityType modality_type = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The rewriter config. + RewriterConfig rewriter_config = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The summarization config. + SummarizationConfig summarization_config = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The grounding configuration. + GroundingConfig grounding_config = 4 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Filter parameter behavior. + enum FilterParameterBehavior { + // Default filter behavior. + // Include filter parameter for connector datastores. + // For the rest of the datastore types, the filter input parameter is + // omitted. + FILTER_PARAMETER_BEHAVIOR_UNSPECIFIED = 0; + + // Always include filter parameter for all datastore types. + ALWAYS_INCLUDE = 2; + + // The filter parameter is never included in the list of tool parameters, + // regardless of the datastore type. + NEVER_INCLUDE = 3; + } + + // Defines the search source, either a single DataStore or an Engine. + oneof search_source { + // Optional. Search within a single specific DataStore. + DataStoreSource data_store_source = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Search within an Engine (potentially across multiple + // DataStores). + EngineSource engine_source = 4 [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The data store tool name. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The tool description. + string description = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Boost specification to boost certain documents. + repeated BoostSpecs boost_specs = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The modality configs for the data store. + repeated ModalityConfig modality_configs = 9 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The filter parameter behavior. + FilterParameterBehavior filter_parameter_behavior = 10 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/deployment.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/deployment.proto new file mode 100644 index 000000000000..0edb8ebdb685 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/deployment.proto @@ -0,0 +1,70 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/ces/v1/common.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "ChannelProfileProto"; +option java_package = "com.google.cloud.ces.v1"; + +// A deployment represents an immutable, queryable version of the app. +// It is used to deploy an app version with a specific channel profile. +message Deployment { + option (google.api.resource) = { + type: "ces.googleapis.com/Deployment" + pattern: "projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}" + plural: "deployments" + singular: "deployment" + }; + + // Identifier. The resource name of the deployment. + // Format: + // projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. Display name of the deployment. + string display_name = 8 [(google.api.field_behavior) = REQUIRED]; + + // Required. The resource name of the app version to deploy. + // Format: + // projects/{project}/locations/{location}/apps/{app}/versions/{version} + string app_version = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/AppVersion" } + ]; + + // Required. The channel profile used in the deployment. + ChannelProfile channel_profile = 3 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Timestamp when this deployment was created. + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this deployment was last updated. + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Etag used to ensure the object hasn't changed during a + // read-modify-write operation. If the etag is empty, the update will + // overwrite any concurrent changes. + string etag = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/example.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/example.proto new file mode 100644 index 000000000000..8f5097320f5e --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/example.proto @@ -0,0 +1,225 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/ces/v1/toolset_tool.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "ExampleProto"; +option java_package = "com.google.cloud.ces.v1"; + +// An example represents a sample conversation between the user and the +// agent(s). +message Example { + option (google.api.resource) = { + type: "ces.googleapis.com/Example" + pattern: "projects/{project}/locations/{location}/apps/{app}/examples/{example}" + plural: "examples" + singular: "example" + }; + + // Identifier. The unique identifier of the example. + // Format: + // `projects/{project}/locations/{location}/apps/{app}/examples/{example}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. Display name of the example. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Human-readable description of the example. + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The agent that initially handles the conversation. If not + // specified, the example represents a conversation that is handled by the + // root agent. Format: + // `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + string entry_agent = 4 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Agent" } + ]; + + // Optional. The collection of messages that make up the conversation. + repeated Message messages = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Timestamp when the example was created. + google.protobuf.Timestamp create_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when the example was last updated. + google.protobuf.Timestamp update_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The example may become invalid if referencing resources are + // deleted. Invalid examples will not be used as few-shot examples. + bool invalid = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Etag used to ensure the object hasn't changed during a read-modify-write + // operation. If the etag is empty, the update will overwrite any concurrent + // changes. + string etag = 9; +} + +// A message within a conversation. +message Message { + // Optional. The role within the conversation, e.g., user, agent. + string role = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Content of the message as a series of chunks. + repeated Chunk chunks = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Timestamp when the message was sent or received. Should not be + // used if the message is part of an [example][google.cloud.ces.v1.Example]. + google.protobuf.Timestamp event_time = 4 + [(google.api.field_behavior) = OPTIONAL]; +} + +// A chunk of content within a message. +message Chunk { + // Chunk data. + oneof data { + // Optional. Text data. + string text = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Transcript associated with the audio. + string transcript = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Custom payload data. + google.protobuf.Struct payload = 11 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Image data. + Image image = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Tool execution request. + ToolCall tool_call = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Tool execution response. + ToolResponse tool_response = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Agent transfer event. + AgentTransfer agent_transfer = 4 [(google.api.field_behavior) = OPTIONAL]; + + // A struct represents variables that were updated in the conversation, + // keyed by variable names. + google.protobuf.Struct updated_variables = 8; + + // A struct represents default variables at the start of the conversation, + // keyed by variable names. + google.protobuf.Struct default_variables = 10; + } +} + +// Represents a blob input or output in the conversation. +message Blob { + // Required. The IANA standard MIME type of the source data. + string mime_type = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Raw bytes of the blob. + bytes data = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Represents an image input or output in the conversation. +message Image { + // Required. The IANA standard MIME type of the source data. + // Supported image types includes: + // * image/png + // * image/jpeg + // * image/webp + string mime_type = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Raw bytes of the image. + bytes data = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request for the client or the agent to execute the specified tool. +message ToolCall { + // The identifier of the tool to execute. It could be either a persisted tool + // or a tool from a toolset. + oneof tool_identifier { + // Optional. The name of the tool to execute. + // Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + string tool = 2 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Tool" } + ]; + + // Optional. The toolset tool to execute. + ToolsetTool toolset_tool = 5 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. The unique identifier of the tool call. If populated, the client + // should return the execution result with the matching ID in + // [ToolResponse][google.cloud.ces.v1.ToolResponse.id]. + string id = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Display name of the tool. + string display_name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The input parameters and values for the tool in JSON object + // format. + google.protobuf.Struct args = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The execution result of a specific tool from the client or the agent. +message ToolResponse { + // The identifier of the tool that got executed. It could be either a + // persisted tool or a tool from a toolset. + oneof tool_identifier { + // Optional. The name of the tool to execute. + // Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + string tool = 2 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Tool" } + ]; + + // Optional. The toolset tool that got executed. + ToolsetTool toolset_tool = 5 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. The matching ID of the [tool call][google.cloud.ces.v1.ToolCall] + // the response is for. + string id = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Display name of the tool. + string display_name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The tool execution result in JSON object format. + // Use "output" key to specify tool response and "error" key to specify + // error details (if any). If "output" and "error" keys are not specified, + // then whole "response" is treated as tool execution result. + google.protobuf.Struct response = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Represents an event indicating the transfer of a conversation to a different +// agent. +message AgentTransfer { + // Required. The agent to which the conversation is being transferred. The + // agent will handle the conversation from this point forward. Format: + // `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + string target_agent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/Agent" } + ]; + + // Output only. Display name of the agent. + string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/fakes.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/fakes.proto new file mode 100644 index 000000000000..da813b584526 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/fakes.proto @@ -0,0 +1,50 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "FakesProto"; +option java_package = "com.google.cloud.ces.v1"; + +// A code block to be executed instead of a real tool call. +message CodeBlock { + // Required. Python code which will be invoked in tool fake mode. + // Expected Python function signature - + // To catch all tool calls: + // def fake_tool_call(tool: Tool, input: dict[str, Any], + // callback_context: CallbackContext) -> Optional[dict[str, Any]]: + // To catch a specific tool call: + // def fake_{tool_id}(tool: Tool, input: dict[str, Any], + // callback_context: CallbackContext) -> Optional[dict[str, Any]]: + // If the function returns None, the real tool will be invoked instead. + string python_code = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Configuration for tool behavior in fake mode. +message ToolFakeConfig { + // The response is either static or it is provided by a python function. + oneof tool_response { + // Optional. Code block which will be executed instead of a real tool call. + CodeBlock code_block = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. Whether the tool is using fake mode. + bool enable_fake_mode = 2 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/file_search_tool.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/file_search_tool.proto new file mode 100644 index 000000000000..5e7da9cc765b --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/file_search_tool.proto @@ -0,0 +1,55 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "FileSearchToolProto"; +option java_package = "com.google.cloud.ces.v1"; + +// The file search tool allows the agent to search across the files uploaded by +// the app/agent developer. It has presets to give relatively good quality +// search over the uploaded files and summarization of the retrieved results. +message FileSearchTool { + // The type of the Vertex RAG corpus. + enum CorpusType { + // Unspecified corpus type. + CORPUS_TYPE_UNSPECIFIED = 0; + + // The corpus is created and owned by the user. + USER_OWNED = 1; + + // The corpus is created by the agent. + FULLY_MANAGED = 2; + } + + // Optional. The type of the corpus. Default is FULLY_MANAGED. + CorpusType corpus_type = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The tool name. + string name = 4 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The tool description. + string description = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The corpus where files are stored. + // Format: + // projects/{project}/locations/{location}/ragCorpora/{rag_corpus} + string file_corpus = 6 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/google_search_tool.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/google_search_tool.proto new file mode 100644 index 000000000000..fa3bceb359bf --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/google_search_tool.proto @@ -0,0 +1,69 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "GoogleSearchToolProto"; +option java_package = "com.google.cloud.ces.v1"; + +// Represents a tool to perform Google web searches for grounding. +// See +// https://cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool#google-search. +message GoogleSearchTool { + // Prompt settings used by the model when processing or summarizing the + // google search results. + message PromptConfig { + // Optional. Defines the prompt used for the system instructions when + // interacting with the agent in chat conversations. If not set, default + // prompt will be used. + string text_prompt = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Defines the prompt used for the system instructions when + // interacting with the agent in voice conversations. If not set, default + // prompt will be used. + string voice_prompt = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The name of the tool. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Description of the tool's purpose. + string description = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Content will be fetched directly from these URLs for context and + // grounding. Example: "https://example.com/path.html". A maximum of 20 URLs + // are allowed. + repeated string context_urls = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies domains to restrict search results to. + // Example: "example.com", "another.site". A maximum of 20 domains can be + // specified. + repeated string preferred_domains = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of domains to be excluded from the search results. + // Example: "example.com". + // A maximum of 2000 domains can be excluded. + repeated string exclude_domains = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Prompt instructions passed to planner on how the search results + // should be processed for text and voice. + PromptConfig prompt_config = 5 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/guardrail.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/guardrail.proto new file mode 100644 index 000000000000..b964860c5b9f --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/guardrail.proto @@ -0,0 +1,311 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/ces/v1/common.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "GuardrailProto"; +option java_package = "com.google.cloud.ces.v1"; + +// Guardrail contains a list of checks and balances to keep the agents safe and +// secure. +message Guardrail { + option (google.api.resource) = { + type: "ces.googleapis.com/Guardrail" + pattern: "projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}" + plural: "guardrails" + singular: "guardrail" + }; + + // Guardrail that bans certain content from being used in the conversation. + message ContentFilter { + // Match type for the content filter. + enum MatchType { + // Match type is not specified. + MATCH_TYPE_UNSPECIFIED = 0; + + // Content is matched for substrings character by character. + SIMPLE_STRING_MATCH = 1; + + // Content only matches if the pattern found in the text is + // surrounded by word delimiters. Banned phrases can also contain word + // delimiters. + WORD_BOUNDARY_STRING_MATCH = 2; + + // Content is matched using regular expression syntax. + REGEXP_MATCH = 3; + } + + // Optional. List of banned phrases. Applies to both user inputs and agent + // responses. + repeated string banned_contents = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of banned phrases. Applies only to user inputs. + repeated string banned_contents_in_user_input = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of banned phrases. Applies only to agent responses. + repeated string banned_contents_in_agent_response = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. Match type for the content filter. + MatchType match_type = 4 [(google.api.field_behavior) = REQUIRED]; + + // Optional. If true, diacritics are ignored during matching. + bool disregard_diacritics = 5 [(google.api.field_behavior) = OPTIONAL]; + } + + // Guardrail that blocks the conversation if the input is considered unsafe + // based on the LLM classification. + message LlmPromptSecurity { + // Configuration for default system security settings. + message DefaultSecuritySettings { + // Output only. The default prompt template used by the system. + // This field is for display purposes to show the user what prompt + // the system uses by default. It is OUTPUT_ONLY. + string default_prompt_template = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Defines the security configuration mode. + // The user must choose one of the following configurations. + oneof security_config { + // Optional. Use the system's predefined default security settings. + // To select this mode, include an empty 'default_settings' message + // in the request. The 'default_prompt_template' field within + // will be populated by the server in the response. + DefaultSecuritySettings default_settings = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Use a user-defined LlmPolicy to configure the security + // guardrail. + LlmPolicy custom_policy = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. Determines the behavior when the guardrail encounters an LLM + // error. + // - If true: the guardrail is bypassed. + // - If false (default): the guardrail triggers/blocks. + // + // Note: If a custom policy is provided, this field is ignored in favor + // of the policy's 'fail_open' configuration. + bool fail_open = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // Guardrail that blocks the conversation if the LLM response is considered + // violating the policy based on the LLM classification. + message LlmPolicy { + // Defines when to apply the policy check during the conversation. + enum PolicyScope { + // Policy scope is not specified. + POLICY_SCOPE_UNSPECIFIED = 0; + + // Policy check is triggered on user input. + USER_QUERY = 1; + + // Policy check is triggered on agent response. Applying this policy + // scope will introduce additional latency before the agent can respond. + AGENT_RESPONSE = 2; + + // Policy check is triggered on both user input and agent response. + // Applying this policy scope will introduce additional latency before + // the agent can respond. + USER_QUERY_AND_AGENT_RESPONSE = 3; + } + + // Optional. When checking this policy, consider the last 'n' messages in + // the conversation. When not set a default value of 10 will be used. + int32 max_conversation_messages = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Model settings. + ModelSettings model_settings = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Policy prompt. + string prompt = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. Defines when to apply the policy check during the conversation. + // If set to `POLICY_SCOPE_UNSPECIFIED`, the policy will be applied to the + // user input. When applying the policy to the agent response, additional + // latency will be introduced before the agent can respond. + PolicyScope policy_scope = 4 [(google.api.field_behavior) = REQUIRED]; + + // Optional. If an error occurs during the policy check, fail open and do + // not trigger the guardrail. + bool fail_open = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. By default, the LLM policy check is bypassed for short + // utterances. Enabling this setting applies the policy check to all + // utterances, including those that would normally be skipped. + bool allow_short_utterance = 6 [(google.api.field_behavior) = OPTIONAL]; + } + + // Model safety settings overrides. When this is set, it will override the + // default settings and trigger the guardrail if the response is considered + // unsafe. + message ModelSafety { + // Safety setting. + message SafetySetting { + // Required. The harm category. + HarmCategory category = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The harm block threshold. + HarmBlockThreshold threshold = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Harm category. + enum HarmCategory { + // The harm category is unspecified. + HARM_CATEGORY_UNSPECIFIED = 0; + + // The harm category is hate speech. + HARM_CATEGORY_HATE_SPEECH = 1; + + // The harm category is dangerous content. + HARM_CATEGORY_DANGEROUS_CONTENT = 2; + + // The harm category is harassment. + HARM_CATEGORY_HARASSMENT = 3; + + // The harm category is sexually explicit content. + HARM_CATEGORY_SEXUALLY_EXPLICIT = 4; + } + + // Probability based thresholds levels for blocking. + enum HarmBlockThreshold { + // Unspecified harm block threshold. + HARM_BLOCK_THRESHOLD_UNSPECIFIED = 0; + + // Block low threshold and above (i.e. block more). + BLOCK_LOW_AND_ABOVE = 1; + + // Block medium threshold and above. + BLOCK_MEDIUM_AND_ABOVE = 2; + + // Block only high threshold (i.e. block less). + BLOCK_ONLY_HIGH = 3; + + // Block none. + BLOCK_NONE = 4; + + // Turn off the safety filter. + OFF = 5; + } + + // Required. List of safety settings. + repeated SafetySetting safety_settings = 1 + [(google.api.field_behavior) = REQUIRED]; + } + + // Guardrail that blocks the conversation based on the code callbacks + // provided. + message CodeCallback { + // Optional. The callback to execute before the agent is called. + // Each callback function is expected to return a structure (e.g., a dict or + // object) containing at least: + // - 'decision': Either 'OK' or 'TRIGGER'. + // - 'reason': A string explaining the decision. + // A 'TRIGGER' decision may halt further processing. + Callback before_agent_callback = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The callback to execute after the agent is called. + // Each callback function is expected to return a structure (e.g., a dict or + // object) containing at least: + // - 'decision': Either 'OK' or 'TRIGGER'. + // - 'reason': A string explaining the decision. + // A 'TRIGGER' decision may halt further processing. + Callback after_agent_callback = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The callback to execute before the model is called. If there + // are multiple calls to the model, the callback will be executed multiple + // times. Each callback function is expected to return a structure (e.g., a + // dict or object) containing at least: + // - 'decision': Either 'OK' or 'TRIGGER'. + // - 'reason': A string explaining the decision. + // A 'TRIGGER' decision may halt further processing. + Callback before_model_callback = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The callback to execute after the model is called. If there are + // multiple calls to the model, the callback will be executed multiple + // times. Each callback function is expected to return a structure (e.g., a + // dict or object) containing at least: + // - 'decision': Either 'OK' or 'TRIGGER'. + // - 'reason': A string explaining the decision. + // A 'TRIGGER' decision may halt further processing. + Callback after_model_callback = 4 [(google.api.field_behavior) = OPTIONAL]; + } + + // Guardrail type. + oneof guardrail_type { + // Optional. Guardrail that bans certain content from being used in the + // conversation. + ContentFilter content_filter = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Guardrail that blocks the conversation if the prompt is + // considered unsafe based on the LLM classification. + LlmPromptSecurity llm_prompt_security = 9 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Guardrail that blocks the conversation if the LLM response is + // considered violating the policy based on the LLM classification. + LlmPolicy llm_policy = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Guardrail that blocks the conversation if the LLM response is + // considered unsafe based on the model safety settings. + ModelSafety model_safety = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Guardrail that potentially blocks the conversation based on the + // result of the callback execution. + CodeCallback code_callback = 14 [(google.api.field_behavior) = OPTIONAL]; + } + + // Identifier. The unique identifier of the guardrail. + // Format: + // `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. Display name of the guardrail. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Description of the guardrail. + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether the guardrail is enabled. + bool enabled = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Action to take when the guardrail is triggered. + TriggerAction action = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Timestamp when the guardrail was created. + google.protobuf.Timestamp create_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when the guardrail was last updated. + google.protobuf.Timestamp update_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Etag used to ensure the object hasn't changed during a read-modify-write + // operation. If the etag is empty, the update will overwrite any concurrent + // changes. + string etag = 11; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/mcp_tool.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/mcp_tool.proto new file mode 100644 index 000000000000..fddc46e157e7 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/mcp_tool.proto @@ -0,0 +1,69 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; +import "google/cloud/ces/v1/auth.proto"; +import "google/cloud/ces/v1/common.proto"; +import "google/cloud/ces/v1/schema.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "McpToolProto"; +option java_package = "com.google.cloud.ces.v1"; + +// An MCP tool. +// See https://modelcontextprotocol.io/specification/2025-06-18/server/tools for +// more details. +message McpTool { + // Required. The name of the MCP tool. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The description of the MCP tool. + string description = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The schema of the input arguments of the MCP tool. + Schema input_schema = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The schema of the output arguments of the MCP tool. + Schema output_schema = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The server address of the MCP server, e.g., + // "https://example.com/mcp/". If the server is built with the MCP SDK, the + // url should be suffixed with + // "/mcp/". Only Streamable HTTP transport based servers are supported. This + // is the same as the server_address in the McpToolset. See + // https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http + // for more details. + string server_address = 5 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Authentication information required to execute the tool against + // the MCP server. For bearer token authentication, the token applies only to + // tool execution, not to listing tools. This requires that tools can be + // listed without authentication. + ApiAuthentication api_authentication = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The TLS configuration. Includes the custom server certificates + // that the client should trust. + TlsConfig tls_config = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Service Directory configuration for VPC-SC, used to resolve + // service names within a perimeter. + ServiceDirectoryConfig service_directory_config = 8 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/mcp_toolset.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/mcp_toolset.proto new file mode 100644 index 000000000000..4f3e3ab8a524 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/mcp_toolset.proto @@ -0,0 +1,54 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; +import "google/cloud/ces/v1/auth.proto"; +import "google/cloud/ces/v1/common.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "McpToolsetProto"; +option java_package = "com.google.cloud.ces.v1"; + +// A toolset that contains a list of tools that are offered by the MCP +// server. +message McpToolset { + // Required. The address of the MCP server, for example, + // "https://example.com/mcp/". If the server is built with the MCP SDK, the + // url should be suffixed with + // "/mcp/". Only Streamable HTTP transport based servers are supported. See + // https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http + // for more details. + string server_address = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Authentication information required to access tools and execute a + // tool against the MCP server. For bearer token authentication, the token + // applies only to tool execution, not to listing tools. This requires that + // tools can be listed without authentication. + ApiAuthentication api_authentication = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Service Directory configuration for VPC-SC, used to resolve + // service names within a perimeter. + ServiceDirectoryConfig service_directory_config = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The TLS configuration. Includes the custom server certificates + // that the client should trust. + TlsConfig tls_config = 4 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/omnichannel.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/omnichannel.proto new file mode 100644 index 000000000000..562638232c96 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/omnichannel.proto @@ -0,0 +1,135 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "OmnichannelProto"; +option java_package = "com.google.cloud.ces.v1"; + +// Represents an Omnichannel resource. +message Omnichannel { + option (google.api.resource) = { + type: "ces.googleapis.com/Omnichannel" + pattern: "projects/{project}/locations/{location}/omnichannels/{omnichannel}" + plural: "omnichannels" + singular: "omnichannel" + }; + + // Identifier. The unique identifier of the omnichannel resource. + // Format: + // `projects/{project}/locations/{location}/omnichannels/{omnichannel}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. Display name of the omnichannel resource. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Human-readable description of the omnichannel resource. + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Timestamp when the omnichannel resource was created. + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when the omnichannel resource was last updated. + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Etag used to ensure the object hasn't changed during a + // read-modify-write operation. + string etag = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The integration config for the omnichannel resource. + OmnichannelIntegrationConfig integration_config = 7 + [(google.api.field_behavior) = OPTIONAL]; +} + +// OmnichannelIntegrationConfig contains all App integration configs. +message OmnichannelIntegrationConfig { + // ChannelConfig contains config for various of app integration. + message ChannelConfig { + // The config for the app. + oneof channel_config { + // WhatsApp config. + WhatsappConfig whatsapp_config = 1; + } + } + + // How Omnichannel should receive/reply events from WhatsApp. + message WhatsappConfig { + // The Phone Number ID associated with the WhatsApp Business Account. + string phone_number_id = 1; + + // The phone number used for sending/receiving messages. + string phone_number = 2; + + // The customer's WhatsApp Business Account (WABA) ID. + string whatsapp_business_account_id = 3; + + // The verify token configured in the Meta App Dashboard for webhook + // verification. + string webhook_verify_token = 4; + + // The access token for authenticating API calls to the WhatsApp Cloud API. + // https://developers.facebook.com/docs/whatsapp/business-management-api/get-started/#business-integration-system-user-access-tokens + string whatsapp_business_token = 5; + + // The Meta Business Portfolio (MBP) ID. + // https://www.facebook.com/business/help/1710077379203657 + string meta_business_portfolio_id = 6; + } + + // Configs of subscribers. + message SubscriberConfig { + // The config for the subscriber. + oneof subscriber_config { + // Ces app config. + CesAppConfig ces_app_config = 1; + } + } + + // Configs for CES app. + message CesAppConfig { + // The unique identifier of the CES app. + // Format: `projects/{project}/locations/{location}/apps/{app}` + string app = 1 + [(google.api.resource_reference) = { type: "ces.googleapis.com/App" }]; + } + + // Routing config specify how/who to route app events to a subscriber. + message RoutingConfig { + // The key of the subscriber. + string subscriber_key = 1; + } + + // Optional. Various of configuration for handling App events. + map channel_configs = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Various of subscribers configs. + map subscriber_configs = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The key of routing_configs is a key of `app_configs`, value is a + // `RoutingConfig`, which contains subscriber's key. + map routing_configs = 3 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/omnichannel_service.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/omnichannel_service.proto new file mode 100644 index 000000000000..eef8c314c25a --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/omnichannel_service.proto @@ -0,0 +1,46 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "OmnichannelServiceProto"; +option java_package = "com.google.cloud.ces.v1"; + +// Represents the metadata of the long-running operation. +message OmnichannelOperationMetadata { + // Output only. The time the operation was created. + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the operation finished running. + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Human-readable status of the operation, if any. + string status_message = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Identifies whether the user has requested cancellation of the + // operation. + bool requested_cancellation = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/open_api_tool.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/open_api_tool.proto new file mode 100644 index 000000000000..b5f1b232347a --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/open_api_tool.proto @@ -0,0 +1,65 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; +import "google/cloud/ces/v1/auth.proto"; +import "google/cloud/ces/v1/common.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "OpenApiToolProto"; +option java_package = "com.google.cloud.ces.v1"; + +// A remote API tool defined by an OpenAPI schema. +message OpenApiTool { + // Required. The OpenAPI schema in JSON or YAML format. + string open_api_schema = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The name of the tool. If not provided, the name of the tool will + // be derived from the OpenAPI schema, from `operation.operationId`. + string name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The description of the tool. If not provided, the description of + // the tool will be derived from the OpenAPI schema, from + // `operation.description` or `operation.summary`. + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Authentication information required by the API. + ApiAuthentication api_authentication = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The TLS configuration. Includes the custom server certificates + // that the client will trust. + TlsConfig tls_config = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Service Directory configuration. + ServiceDirectoryConfig service_directory_config = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, the agent will ignore unknown fields in the API + // response. + bool ignore_unknown_fields = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The server URL of the Open API schema. + // This field is only set in tools in the environment dependencies during the + // export process if the schema contains a server url. During the import + // process, if this url is present in the environment dependencies and the + // schema has the $env_var placeholder, it will replace the placeholder in the + // schema. + string url = 8 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/open_api_toolset.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/open_api_toolset.proto new file mode 100644 index 000000000000..ffb88c74ecdd --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/open_api_toolset.proto @@ -0,0 +1,56 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; +import "google/cloud/ces/v1/auth.proto"; +import "google/cloud/ces/v1/common.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "OpenApiToolsetProto"; +option java_package = "com.google.cloud.ces.v1"; + +// A toolset that contains a list of tools that are defined by an OpenAPI +// schema. +message OpenApiToolset { + // Required. The OpenAPI schema of the toolset. + string open_api_schema = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Authentication information required by the API. + ApiAuthentication api_authentication = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The TLS configuration. Includes the custom server certificates + TlsConfig tls_config = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Service Directory configuration. + ServiceDirectoryConfig service_directory_config = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, the agent will ignore unknown fields in the API response + // for all operations defined in the OpenAPI schema. + bool ignore_unknown_fields = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The server URL of the Open API schema. + // This field is only set in toolsets in the environment dependencies during + // the export process if the schema contains a server url. During the import + // process, if this url is present in the environment dependencies and the + // schema has the $env_var placeholder, it will replace the placeholder in the + // schema. + string url = 6 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/python_function.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/python_function.proto new file mode 100644 index 000000000000..a0bf77d823a4 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/python_function.proto @@ -0,0 +1,39 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "PythonFunctionProto"; +option java_package = "com.google.cloud.ces.v1"; + +// A Python function tool. +message PythonFunction { + // Optional. The name of the Python function to execute. Must match a Python + // function name defined in the python code. Case sensitive. If the name is + // not provided, the first function defined in the python code will be used. + string name = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Python code to execute for the tool. + string python_code = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The description of the Python function, parsed from the python + // code's docstring. + string description = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/schema.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/schema.proto new file mode 100644 index 000000000000..1beb95643082 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/schema.proto @@ -0,0 +1,140 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; +import "google/protobuf/struct.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "SchemaProto"; +option java_package = "com.google.cloud.ces.v1"; + +// Represents a select subset of an OpenAPI 3.0 schema object. +message Schema { + // OpenAPI data types. + enum Type { + // Type unspecified. + TYPE_UNSPECIFIED = 0; + + // String type. + STRING = 1; + + // Integer type. + INTEGER = 2; + + // Number type. + NUMBER = 3; + + // Boolean type. + BOOLEAN = 4; + + // Object type. + OBJECT = 5; + + // Array type. + ARRAY = 6; + } + + // Required. The type of the data. + Type type = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Properties of Type.OBJECT. + map properties = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Required properties of Type.OBJECT. + repeated string required = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The description of the data. + string description = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Schema of the elements of Type.ARRAY. + Schema items = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates if the value may be null. + bool nullable = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicate the items in the array must be unique. Only applies to + // TYPE.ARRAY. + bool unique_items = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Schemas of initial elements of Type.ARRAY. + repeated Schema prefix_items = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Can either be a boolean or an object, controls the presence of + // additional properties. + Schema additional_properties = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The value should be validated against any (one or more) of the + // subschemas in the list. + repeated Schema any_of = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Possible values of the element of primitive type with enum + // format. Examples: + // 1. We can define direction as : + // {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} + // 2. We can define apartment number as : + // {type:INTEGER, format:enum, enum:["101", "201", "301"]} + repeated string enum = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Default value of the data. + google.protobuf.Value default = 12 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Allows indirect references between schema nodes. The value should + // be a valid reference to a child of the root `defs`. + // + // For example, the following schema defines a reference to a schema node + // named "Pet": + // + // ``` + // type: object + // properties: + // pet: + // ref: #/defs/Pet + // defs: + // Pet: + // type: object + // properties: + // name: + // type: string + // ``` + // + // The value of the "pet" property is a reference to the schema node + // named "Pet". + // See details in + // https://json-schema.org/understanding-json-schema/structuring. + string ref = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A map of definitions for use by `ref`. Only allowed at the root + // of the schema. + map defs = 14 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The title of the schema. + string title = 15 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Minimum number of the elements for Type.ARRAY. + int64 min_items = 16 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Maximum number of the elements for Type.ARRAY. + int64 max_items = 17 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Minimum value for Type.INTEGER and Type.NUMBER. + optional double minimum = 18 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Maximum value for Type.INTEGER and Type.NUMBER. + optional double maximum = 19 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/search_suggestions.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/search_suggestions.proto new file mode 100644 index 000000000000..06b0fde799dd --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/search_suggestions.proto @@ -0,0 +1,45 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "SearchSuggestionsProto"; +option java_package = "com.google.cloud.ces.v1"; + +// Search suggestions from [Google Search +// Tool][google.cloud.ces.v1.GoogleSearchTool]. +message GoogleSearchSuggestions { + // Compliant HTML and CSS styling for search suggestions. + // The provided HTML and CSS automatically adapts to your device settings, + // displaying in either light or dark mode indicated by + // `@media(prefers-color-scheme)`. + repeated string htmls = 1; + + // List of queries used to perform the google search along with the search + // result URIs forming the search suggestions. + repeated WebSearchQuery web_search_queries = 2; +} + +// Represents a single web search query and its associated search uri. +message WebSearchQuery { + // The search query text. + string query = 1; + + // The URI to the Google Search results page for the query. + string uri = 2; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/session_service.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/session_service.proto new file mode 100644 index 000000000000..7804515b178f --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/session_service.proto @@ -0,0 +1,456 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/ces/v1/common.proto"; +import "google/cloud/ces/v1/example.proto"; +import "google/cloud/ces/v1/search_suggestions.proto"; +import "google/protobuf/struct.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "SessionServiceProto"; +option java_package = "com.google.cloud.ces.v1"; +option (google.api.resource_definition) = { + type: "ces.googleapis.com/Session" + pattern: "projects/{project}/locations/{location}/apps/{app}/sessions/{session}" +}; + +// Session service provides APIs for interacting with CES agents. +service SessionService { + option (google.api.default_host) = "ces.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/ces," + "https://www.googleapis.com/auth/cloud-platform"; + + // Initiates a single turn interaction with the CES agent within a + // session. + rpc RunSession(RunSessionRequest) returns (RunSessionResponse) { + option (google.api.http) = { + post: "/v1/{config.session=projects/*/locations/*/apps/*/sessions/*}:runSession" + body: "*" + }; + } + + // Establishes a bidirectional streaming connection with the CES agent. + // The agent processes continuous multimodal inputs (e.g., text, audio) and + // generates real-time multimodal output streams. + // + // --- Client Request Stream --- + // The client streams requests in the following order: + // + // 1. Initialization: + // The first message must contain + // [SessionConfig][google.cloud.ces.v1.BidiSessionClientMessage.config]. + // For audio sessions, this should also include + // [InputAudioConfig][google.cloud.ces.v1.SessionConfig.input_audio_config] + // and + // [OutputAudioConfig][google.cloud.ces.v1.SessionConfig.output_audio_config] + // to define audio processing and synthesis parameters. + // + // 2. Interaction: + // Subsequent messages stream + // [SessionInput][google.cloud.ces.v1.BidiSessionClientMessage.realtime_input] + // containing real-time user input data. + // + // 3. Termination: + // The client should half-close the stream when there is no more user + // input. It should also half-close upon receiving + // [EndSession][google.cloud.ces.v1.BidiSessionServerMessage.end_session] + // or [GoAway][google.cloud.ces.v1.BidiSessionServerMessage.go_away] from + // the agent. + // + // --- Server Response Stream --- + // For each interaction turn, the agent streams messages in the following + // sequence: + // + // 1. Speech Recognition (First N messages): + // Contains + // [RecognitionResult][google.cloud.ces.v1.BidiSessionServerMessage.recognition_result] + // representing the concatenated user speech segments captured so far. + // This is only populated for audio sessions. + // + // 2. Response (Next M messages): + // Contains + // [SessionOutput][google.cloud.ces.v1.BidiSessionServerMessage.session_output] + // delivering the agent's response in various modalities (e.g., text, + // audio). + // + // 3. Turn Completion (Final message of the turn): + // Contains + // [SessionOutput][google.cloud.ces.v1.BidiSessionServerMessage.session_output] + // with [turn_completed][google.cloud.ces.v1.SessionOutput.turn_completed] + // set to true. This signals the end of the current turn and includes + // [DiagnosticInfo][google.cloud.ces.v1.SessionOutput.diagnostic_info] + // with execution details. + // + // --- Audio Best Practices --- + // 1. Streaming: + // Stream [audio data][google.cloud.ces.v1.SessionInput.audio] + // **CONTINUOUSLY**, even during silence. Recommended chunk size: 40-120ms + // (balances latency vs. efficiency). + // + // 2. Playback & Interruption: + // Play [audio responses][google.cloud.ces.v1.SessionOutput.audio] upon + // receipt. Stop playback immediately if an + // [InterruptionSignal][google.cloud.ces.v1.BidiSessionServerMessage.interruption_signal] + // is received (e.g., user barge-in or new agent response). + rpc BidiRunSession(stream BidiSessionClientMessage) + returns (stream BidiSessionServerMessage) {} +} + +// AudioEncoding specifies the encoding format for audio data. +enum AudioEncoding { + // Unspecified audio encoding. + AUDIO_ENCODING_UNSPECIFIED = 0; + + // 16-bit linear PCM audio encoding. + LINEAR16 = 1; + + // 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law. + MULAW = 2; + + // 8-bit samples that compand 14-bit audio samples using G.711 PCMU/A-law. + ALAW = 3; +} + +// InputAudioConfig configures how the CES agent should interpret the incoming +// audio data. +message InputAudioConfig { + // Required. The encoding of the input audio data. + AudioEncoding audio_encoding = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The sample rate (in Hertz) of the input audio data. + int32 sample_rate_hertz = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Whether to enable noise suppression on the input audio. + // Available values are "low", "moderate", "high", "very_high". + string noise_suppression_level = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// OutputAudioConfig configures how the CES agent should synthesize outgoing +// audio responses. +message OutputAudioConfig { + // Required. The encoding of the output audio data. + AudioEncoding audio_encoding = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The sample rate (in Hertz) of the output audio data. + int32 sample_rate_hertz = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The configuration for the session. +message SessionConfig { + // [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters) + // to send to the remote + // [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents) + // agent when the session control is transferred to the remote agent. + message RemoteDialogflowQueryParameters { + // Optional. The HTTP headers to be sent as webhook_headers in + // [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters). + map webhook_headers = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The payload to be sent in + // [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters). + google.protobuf.Struct payload = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The end user metadata to be sent in + // [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters). + google.protobuf.Struct end_user_metadata = 3 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The unique identifier of the session. + // Format: + // `projects/{project}/locations/{location}/apps/{app}/sessions/{session}` + string session = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/Session" } + ]; + + // Optional. Configuration for processing the input audio. + InputAudioConfig input_audio_config = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for generating the output audio. + OutputAudioConfig output_audio_config = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The historical context of the session, including user inputs, + // agent responses, and other messages. Typically, CES agent would manage + // session automatically so client doesn't need to explicitly populate this + // field. However, client can optionally override the historical contexts to + // force the session start from certain state. + repeated Message historical_contexts = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The entry agent to handle the session. If not specified, the + // session will be handled by the [root + // agent][google.cloud.ces.v1.App.root_agent] of the app. Format: + // `projects/{project}/locations/{location}/agents/{agent}` + string entry_agent = 12 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Agent" } + ]; + + // Optional. The deployment of the app to use for the session. + // Format: + // `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + string deployment = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The time zone of the user. If provided, the agent will use the + // time zone for date and time related variables. Otherwise, the agent will + // use the time zone specified in the App.time_zone_settings. + // + // The format is the IANA Time Zone Database time zone, e.g. + // "America/Los_Angeles". + string time_zone = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. + // [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters) + // to send to the remote + // [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents) + // agent when the session control is transferred to the remote agent. + RemoteDialogflowQueryParameters remote_dialogflow_query_parameters = 15 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Request for the client to execute the tools and return the execution results +// before continuing the session. +message ToolCalls { + // Optional. The list of tool calls to execute. + repeated ToolCall tool_calls = 1 [(google.api.field_behavior) = OPTIONAL]; +} + +// Execution results for the requested tool calls from the client. +message ToolResponses { + // Optional. The list of tool execution results. + repeated ToolResponse tool_responses = 1 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Citations associated with the agent response. +message Citations { + // Piece of cited information. + message CitedChunk { + // URI used for citation. + string uri = 1; + + // Title of the cited document. + string title = 2; + + // Text used for citation. + string text = 3; + } + + // List of cited pieces of information. + repeated CitedChunk cited_chunks = 1; +} + +// Event input. +message Event { + // Required. The name of the event. + string event = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Input for the session. +message SessionInput { + // The type of the input. + oneof input_type { + // Optional. Text data from the end user. + string text = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. DTMF digits from the end user. + string dtmf = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Audio data from the end user. + bytes audio = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Execution results for the tool calls from the client. + ToolResponses tool_responses = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Image data from the end user. + Image image = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Blob data from the end user. + Blob blob = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Contextual variables for the session, keyed by name. Only + // variables declared in the app will be used by the CES agent. + // + // Unrecognized variables will still be sent to the [Dialogflow + // agent][Agent.RemoteDialogflowAgent] as additional session parameters. + google.protobuf.Struct variables = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Event input. + Event event = 9 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. A flag to indicate if the current message is a fragment of a + // larger input in the bidi streaming session. When `true`, the agent will + // defer processing until a subsequent message with `will_continue` set to + // `false` is received. + // + // Note: This flag has no effect on audio and DTMF inputs, which are always + // processed in real-time. + bool will_continue = 8 [(google.api.field_behavior) = OPTIONAL]; +} + +// Output for the session. +message SessionOutput { + // Contains execution details during the processing. + message DiagnosticInfo { + // List of the messages that happened during the processing. + repeated Message messages = 1; + + // A trace of the entire request processing, represented as a root span. + // This span can contain nested child spans for specific operations. + Span root_span = 3; + } + + // The type of the output. + oneof output_type { + // Output text from the CES agent. + string text = 1; + + // Output audio from the CES agent. + bytes audio = 2; + + // Request for the client to execute the tools. + ToolCalls tool_calls = 3; + + // Citations that provide the source information for the agent's generated + // text. + Citations citations = 8; + + // The suggestions returned from Google Search as a result of invoking the + // [GoogleSearchTool][google.cloud.ces.v1.GoogleSearchTool]. + GoogleSearchSuggestions google_search_suggestions = 10; + + // Indicates the session has ended. + EndSession end_session = 9; + + // Custom payload with structured output from the CES agent. + google.protobuf.Struct payload = 11; + } + + // Indicates the sequential order of conversation turn to which this output + // belongs to, starting from 1. + int32 turn_index = 6; + + // If true, the CES agent has detected the end of the current conversation + // turn and will provide no further output for this turn. + bool turn_completed = 4; + + // Optional. Diagnostic information contains execution details during the + // processing of the input. Only populated in the last SessionOutput (with + // `turn_completed=true`) for each turn. + DiagnosticInfo diagnostic_info = 7 [(google.api.field_behavior) = OPTIONAL]; +} + +// Speech recognition result for the audio input. +message RecognitionResult { + // Optional. Concatenated user speech segments captured during the current + // turn. + string transcript = 1 [(google.api.field_behavior) = OPTIONAL]; +} + +// Indicates the agent's audio response has been interrupted. The client should +// immediately stop any current audio playback (e.g., due to user barge-in or +// a new agent response being generated). +message InterruptionSignal { + // Whether the interruption is caused by a user barge-in event. + bool barge_in = 1; +} + +// Indicates the session has terminated, due to either successful completion +// (e.g. user says "Good bye!" ) or an agent escalation. +// +// The agent will not process any further inputs after session is terminated and +// the client should half-close and disconnect after receiving all remaining +// responses from the agent. +message EndSession { + // Optional. Provides additional information about the end session signal, + // such as the reason for ending the session. + google.protobuf.Struct metadata = 1 [(google.api.field_behavior) = OPTIONAL]; +} + +// Indicates that the server will disconnect soon and the client should +// half-close and restart the connection. +message GoAway {} + +// Request message for +// [SessionService.RunSession][google.cloud.ces.v1.SessionService.RunSession]. +message RunSessionRequest { + // Required. The configuration for the session. + SessionConfig config = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Inputs for the session. + repeated SessionInput inputs = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for +// [SessionService.RunSession][google.cloud.ces.v1.SessionService.RunSession]. +message RunSessionResponse { + // Outputs for the session. + repeated SessionOutput outputs = 1; +} + +// The top-level message sent by the client for the +// [SessionService.BidiRunSession][google.cloud.ces.v1.SessionService.BidiRunSession] +// method. +message BidiSessionClientMessage { + // The type of the message. + oneof message_type { + // Optional. The initial config message for the session. + SessionConfig config = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Realtime input for the session. + SessionInput realtime_input = 2 [(google.api.field_behavior) = OPTIONAL]; + } +} + +// The top-level message returned from +// [SessionService.BidiRunSession][google.cloud.ces.v1.SessionService.BidiRunSession] +// method. +message BidiSessionServerMessage { + // The type of the message. + oneof message_type { + // Optional. Processing result from the CES agent. + SessionOutput session_output = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Realtime speech recognition result for the audio input. + RecognitionResult recognition_result = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Interruption signal detected from the audio input. + InterruptionSignal interruption_signal = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates that the session has ended. + EndSession end_session = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates that the server will disconnect soon and the client + // should half-close and restart the connection. + GoAway go_away = 6 [(google.api.field_behavior) = OPTIONAL]; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/system_tool.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/system_tool.proto new file mode 100644 index 000000000000..a628f37785d4 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/system_tool.proto @@ -0,0 +1,33 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "SystemToolProto"; +option java_package = "com.google.cloud.ces.v1"; + +// Pre-defined system tool. +message SystemTool { + // Required. The name of the system tool. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The description of the system tool. + string description = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/tool.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/tool.proto new file mode 100644 index 000000000000..6b30a6d92633 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/tool.proto @@ -0,0 +1,124 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/ces/v1/client_function.proto"; +import "google/cloud/ces/v1/common.proto"; +import "google/cloud/ces/v1/connector_tool.proto"; +import "google/cloud/ces/v1/data_store_tool.proto"; +import "google/cloud/ces/v1/fakes.proto"; +import "google/cloud/ces/v1/file_search_tool.proto"; +import "google/cloud/ces/v1/google_search_tool.proto"; +import "google/cloud/ces/v1/mcp_tool.proto"; +import "google/cloud/ces/v1/open_api_tool.proto"; +import "google/cloud/ces/v1/python_function.proto"; +import "google/cloud/ces/v1/system_tool.proto"; +import "google/cloud/ces/v1/widget_tool.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "ToolProto"; +option java_package = "com.google.cloud.ces.v1"; + +// A tool represents an action that the CES agent can take to achieve certain +// goals. +message Tool { + option (google.api.resource) = { + type: "ces.googleapis.com/Tool" + pattern: "projects/{project}/locations/{location}/apps/{app}/tools/{tool}" + plural: "tools" + singular: "tool" + }; + + // The type of the tool. + oneof tool_type { + // Optional. The client function. + ClientFunction client_function = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The open API tool. + OpenApiTool open_api_tool = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The google search tool. + GoogleSearchTool google_search_tool = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Integration Connector tool. + ConnectorTool connector_tool = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The data store tool. + DataStoreTool data_store_tool = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The python function tool. + PythonFunction python_function = 11 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The MCP tool. An MCP tool cannot be created or updated directly + // and is managed by the MCP toolset. + McpTool mcp_tool = 16 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The file search tool. + FileSearchTool file_search_tool = 17 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The system tool. + SystemTool system_tool = 18 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The widget tool. + WidgetTool widget_tool = 24 [(google.api.field_behavior) = OPTIONAL]; + } + + // Identifier. The unique identifier of the tool. + // Format: + // - `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for + // ## standalone tools. + // + // `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}` + // for tools retrieved from a toolset. These tools are dynamic and + // output-only, they cannot be referenced directly where a tool is expected. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The display name of the tool, derived based on the tool's + // type. For example, display name of a [ClientFunction][Tool.ClientFunction] + // is derived from its `name` property. + string display_name = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The execution type of the tool. + ExecutionType execution_type = 12 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Timestamp when the tool was created. + google.protobuf.Timestamp create_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when the tool was last updated. + google.protobuf.Timestamp update_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Etag used to ensure the object hasn't changed during a read-modify-write + // operation. If the etag is empty, the update will overwrite any concurrent + // changes. + string etag = 14; + + // Output only. If the tool is generated by the LLM assistant, this field + // contains a descriptive summary of the generation. + string generated_summary = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Configuration for tool behavior in fake mode. + ToolFakeConfig tool_fake_config = 20 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/tool_service.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/tool_service.proto new file mode 100644 index 000000000000..650c8f50cb4b --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/tool_service.proto @@ -0,0 +1,189 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/ces/v1/schema.proto"; +import "google/cloud/ces/v1/tool.proto"; +import "google/cloud/ces/v1/toolset_tool.proto"; +import "google/protobuf/struct.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "ToolServiceProto"; +option java_package = "com.google.cloud.ces.v1"; + +// Tool service provides APIs for interacting with CES tools. +service ToolService { + option (google.api.default_host) = "ces.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/ces," + "https://www.googleapis.com/auth/cloud-platform"; + + // Executes the given tool with the given arguments. + rpc ExecuteTool(ExecuteToolRequest) returns (ExecuteToolResponse) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/apps/*}:executeTool" + body: "*" + }; + } + + // Retrieve the schema of the given tool. The schema is computed on the fly + // for the given instance of the tool. + rpc RetrieveToolSchema(RetrieveToolSchemaRequest) + returns (RetrieveToolSchemaResponse) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/apps/*}:retrieveToolSchema" + body: "*" + }; + } + + // Retrieve the list of tools included in the specified toolset. + rpc RetrieveTools(RetrieveToolsRequest) returns (RetrieveToolsResponse) { + option (google.api.http) = { + post: "/v1/{toolset=projects/*/locations/*/apps/*/toolsets/*}:retrieveTools" + body: "*" + }; + } +} + +// Request message for +// [ToolService.ExecuteTool][google.cloud.ces.v1.ToolService.ExecuteTool]. +message ExecuteToolRequest { + // The identifier of the tool to execute. It could be either a persisted tool + // or a tool from a toolset. + oneof tool_identifier { + // Optional. The name of the tool to execute. + // Format: + // projects/{project}/locations/{location}/apps/{app}/tools/{tool} + string tool = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Tool" } + ]; + + // Optional. The toolset tool to execute. Only one tool should match the + // predicate from the toolset. Otherwise, an error will be returned. + ToolsetTool toolset_tool = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The resource name of the app which the tool/toolset belongs to. + // Format: `projects/{project}/locations/{location}/apps/{app}` + string parent = 4 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/App" } + ]; + + // Optional. The input parameters and values for the tool in JSON object + // format. + google.protobuf.Struct args = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [ToolService.ExecuteTool][google.cloud.ces.v1.ToolService.ExecuteTool]. +message ExecuteToolResponse { + // The identifier of the tool that got executed. + oneof tool_identifier { + // The name of the tool that got executed. + // Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + string tool = 1 + [(google.api.resource_reference) = { type: "ces.googleapis.com/Tool" }]; + + // The toolset tool that got executed. + ToolsetTool toolset_tool = 3; + } + + // Required. The tool execution result in JSON object format. + // Use "output" key to specify tool response and "error" key to specify + // error details (if any). If "output" and "error" keys are not specified, + // then whole "response" is treated as tool execution result. + google.protobuf.Struct response = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [ToolService.RetrieveToolSchema][google.cloud.ces.v1.ToolService.RetrieveToolSchema]. +message RetrieveToolSchemaRequest { + // The identifier of the tool to retrieve the schema for. It could be either a + // persisted tool or a tool from a toolset. + oneof tool_identifier { + // Optional. The name of the tool to retrieve the schema for. + // Format: + // projects/{project}/locations/{location}/apps/{app}/tools/{tool} + string tool = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Tool" } + ]; + + // Optional. The toolset tool to retrieve the schema for. Only one tool + // should match the predicate from the toolset. Otherwise, an error will be + // returned. + ToolsetTool toolset_tool = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The resource name of the app which the tool/toolset belongs to. + // Format: `projects/{project}/locations/{location}/apps/{app}` + string parent = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/App" } + ]; +} + +// Response message for +// [ToolService.RetrieveToolSchema][google.cloud.ces.v1.ToolService.RetrieveToolSchema]. +message RetrieveToolSchemaResponse { + // The identifier of the tool that the schema is for. + oneof tool_identifier { + // The name of the tool that the schema is for. + // Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + string tool = 1 + [(google.api.resource_reference) = { type: "ces.googleapis.com/Tool" }]; + + // The toolset tool that the schema is for. + ToolsetTool toolset_tool = 2; + } + + // Required. The schema of the tool input parameters. + Schema input_schema = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. The schema of the tool output parameters. + Schema output_schema = 4 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [ToolService.RetrieveTools][google.cloud.ces.v1.ToolService.RetrieveTools]. +message RetrieveToolsRequest { + // Required. The name of the toolset to retrieve the tools for. + // Format: + // `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + string toolset = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/Toolset" } + ]; + + // Optional. The identifiers of the tools to retrieve from the toolset. + // If empty, all tools in the toolset will be returned. + repeated string tool_ids = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [ToolService.RetrieveTools][google.cloud.ces.v1.ToolService.RetrieveTools]. +message RetrieveToolsResponse { + // Required. The list of tools that are included in the specified toolset. + repeated Tool tools = 1 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/toolset.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/toolset.proto new file mode 100644 index 000000000000..81ee47207cd3 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/toolset.proto @@ -0,0 +1,90 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/ces/v1/common.proto"; +import "google/cloud/ces/v1/connector_toolset.proto"; +import "google/cloud/ces/v1/fakes.proto"; +import "google/cloud/ces/v1/mcp_toolset.proto"; +import "google/cloud/ces/v1/open_api_toolset.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "ToolsetProto"; +option java_package = "com.google.cloud.ces.v1"; + +// A toolset represents a group of dynamically managed tools that can be used +// by the agent. +message Toolset { + option (google.api.resource) = { + type: "ces.googleapis.com/Toolset" + pattern: "projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}" + plural: "toolsets" + singular: "toolset" + }; + + // The type of the toolset. + oneof toolset_type { + // Optional. A toolset that contains a list of tools that are offered by the + // MCP server. + McpToolset mcp_toolset = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A toolset that contains a list of tools that are defined by an + // OpenAPI schema. + OpenApiToolset open_api_toolset = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A toolset that generates tools from an Integration Connectors + // Connection. + ConnectorToolset connector_toolset = 8 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Identifier. The unique identifier of the toolset. + // Format: + // `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. The display name of the toolset. Must be unique within the same + // app. + string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The description of the toolset. + string description = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Timestamp when the toolset was created. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when the toolset was last updated. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // ETag used to ensure the object hasn't changed during a read-modify-write + // operation. If the etag is empty, the update will overwrite any concurrent + // changes. + string etag = 5; + + // Optional. The execution type of the tools in the toolset. + ExecutionType execution_type = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for tools behavior in fake mode. + ToolFakeConfig tool_fake_config = 11 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/toolset_tool.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/toolset_tool.proto new file mode 100644 index 000000000000..a2147435c9c1 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/toolset_tool.proto @@ -0,0 +1,39 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "ToolsetToolProto"; +option java_package = "com.google.cloud.ces.v1"; + +// A tool that is created from a toolset. +message ToolsetTool { + // Required. The resource name of the Toolset from which this tool is derived. + // Format: + // `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + string toolset = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/Toolset" } + ]; + + // Optional. The tool ID to filter the tools to retrieve the schema for. + string tool_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/widget_service.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/widget_service.proto new file mode 100644 index 000000000000..2aba89531152 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/widget_service.proto @@ -0,0 +1,79 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "WidgetServiceProto"; +option java_package = "com.google.cloud.ces.v1"; + +// Provides APIs for widgets to interact with CES APIs. +service WidgetService { + option (google.api.default_host) = "ces.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/ces," + "https://www.googleapis.com/auth/cloud-platform"; + + // Generates a session scoped token for chat widget to authenticate with + // Session APIs. + rpc GenerateChatToken(GenerateChatTokenRequest) + returns (GenerateChatTokenResponse) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/apps/*/sessions/*}:generateChatToken" + body: "*" + }; + } +} + +// Request message for +// [WidgetService.GenerateChatToken][google.cloud.ces.v1.WidgetService.GenerateChatToken]. +message GenerateChatTokenRequest { + // Required. The session name to generate the chat token for. + // Format: + // projects/{project}/locations/{location}/apps/{app}/sessions/{session} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/Session" } + ]; + + // Required. The deployment of the app to use for the session. + // Format: + // projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + string deployment = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/Deployment" } + ]; + + // Optional. The reCAPTCHA token generated by the client-side chat widget. + string recaptcha_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [WidgetService.GenerateChatToken][google.cloud.ces.v1.WidgetService.GenerateChatToken]. +message GenerateChatTokenResponse { + // The session scoped token for chat widget to authenticate with Session APIs. + string chat_token = 1; + + // The time at which the chat token expires. + google.protobuf.Timestamp expire_time = 2; +} diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/widget_tool.proto b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/widget_tool.proto new file mode 100644 index 000000000000..dff7057ab73b --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1/src/main/proto/google/cloud/ces/v1/widget_tool.proto @@ -0,0 +1,84 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ces.v1; + +import "google/api/field_behavior.proto"; +import "google/cloud/ces/v1/schema.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "WidgetToolProto"; +option java_package = "com.google.cloud.ces.v1"; + +// Represents a widget tool that the agent can invoke. When the tool is chosen +// by the agent, agent will return the widget to the client. The client is +// responsible for processing the widget and generating the next user query to +// continue the interaction with the agent. +message WidgetTool { + // All available widget types. + // New values may be added to this enum in the future. + enum WidgetType { + // Unspecified widget type. + WIDGET_TYPE_UNSPECIFIED = 0; + + // Custom widget type. + CUSTOM = 1; + + // Product carousel widget. + PRODUCT_CAROUSEL = 2; + + // Product details widget. + PRODUCT_DETAILS = 3; + + // Quick actions widget. + QUICK_ACTIONS = 4; + + // Product comparison widget. + PRODUCT_COMPARISON = 5; + + // Advanced product details widget. + ADVANCED_PRODUCT_DETAILS = 6; + + // Short form widget. + SHORT_FORM = 7; + + // Overall satisfaction widget. + OVERALL_SATISFACTION = 8; + + // Order summary widget. + ORDER_SUMMARY = 9; + + // Appointment details widget. + APPOINTMENT_DETAILS = 10; + } + + // The input of the widget tool. + oneof input { + // Optional. The input parameters of the widget tool. + Schema parameters = 4 [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The display name of the widget tool. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The description of the widget tool. + string description = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The type of the widget tool. If not specified, the default type + // will be CUSTOMIZED. + WidgetType widget_type = 3 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/batchdeleteconversations/AsyncBatchDeleteConversations.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/batchdeleteconversations/AsyncBatchDeleteConversations.java new file mode 100644 index 000000000000..e33caf9ab424 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/batchdeleteconversations/AsyncBatchDeleteConversations.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_BatchDeleteConversations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.BatchDeleteConversationsRequest; +import com.google.longrunning.Operation; +import java.util.ArrayList; + +public class AsyncBatchDeleteConversations { + + public static void main(String[] args) throws Exception { + asyncBatchDeleteConversations(); + } + + public static void asyncBatchDeleteConversations() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + BatchDeleteConversationsRequest request = + BatchDeleteConversationsRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .addAllConversations(new ArrayList()) + .build(); + ApiFuture future = + agentServiceClient.batchDeleteConversationsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_BatchDeleteConversations_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/batchdeleteconversations/AsyncBatchDeleteConversationsLRO.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/batchdeleteconversations/AsyncBatchDeleteConversationsLRO.java new file mode 100644 index 000000000000..8839671912d6 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/batchdeleteconversations/AsyncBatchDeleteConversationsLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_BatchDeleteConversations_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.BatchDeleteConversationsRequest; +import com.google.cloud.ces.v1.BatchDeleteConversationsResponse; +import com.google.cloud.ces.v1.OperationMetadata; +import java.util.ArrayList; + +public class AsyncBatchDeleteConversationsLRO { + + public static void main(String[] args) throws Exception { + asyncBatchDeleteConversationsLRO(); + } + + public static void asyncBatchDeleteConversationsLRO() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + BatchDeleteConversationsRequest request = + BatchDeleteConversationsRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .addAllConversations(new ArrayList()) + .build(); + OperationFuture future = + agentServiceClient.batchDeleteConversationsOperationCallable().futureCall(request); + // Do something. + BatchDeleteConversationsResponse response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_BatchDeleteConversations_LRO_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/batchdeleteconversations/SyncBatchDeleteConversations.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/batchdeleteconversations/SyncBatchDeleteConversations.java new file mode 100644 index 000000000000..7e8e785ebc29 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/batchdeleteconversations/SyncBatchDeleteConversations.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_BatchDeleteConversations_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.BatchDeleteConversationsRequest; +import com.google.cloud.ces.v1.BatchDeleteConversationsResponse; +import java.util.ArrayList; + +public class SyncBatchDeleteConversations { + + public static void main(String[] args) throws Exception { + syncBatchDeleteConversations(); + } + + public static void syncBatchDeleteConversations() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + BatchDeleteConversationsRequest request = + BatchDeleteConversationsRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .addAllConversations(new ArrayList()) + .build(); + BatchDeleteConversationsResponse response = + agentServiceClient.batchDeleteConversationsAsync(request).get(); + } + } +} +// [END ces_v1_generated_AgentService_BatchDeleteConversations_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/batchdeleteconversations/SyncBatchDeleteConversationsAppname.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/batchdeleteconversations/SyncBatchDeleteConversationsAppname.java new file mode 100644 index 000000000000..64ce42255f35 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/batchdeleteconversations/SyncBatchDeleteConversationsAppname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_BatchDeleteConversations_Appname_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.BatchDeleteConversationsResponse; + +public class SyncBatchDeleteConversationsAppname { + + public static void main(String[] args) throws Exception { + syncBatchDeleteConversationsAppname(); + } + + public static void syncBatchDeleteConversationsAppname() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + BatchDeleteConversationsResponse response = + agentServiceClient.batchDeleteConversationsAsync(parent).get(); + } + } +} +// [END ces_v1_generated_AgentService_BatchDeleteConversations_Appname_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/batchdeleteconversations/SyncBatchDeleteConversationsString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/batchdeleteconversations/SyncBatchDeleteConversationsString.java new file mode 100644 index 000000000000..269865e635c2 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/batchdeleteconversations/SyncBatchDeleteConversationsString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_BatchDeleteConversations_String_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.BatchDeleteConversationsResponse; + +public class SyncBatchDeleteConversationsString { + + public static void main(String[] args) throws Exception { + syncBatchDeleteConversationsString(); + } + + public static void syncBatchDeleteConversationsString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString(); + BatchDeleteConversationsResponse response = + agentServiceClient.batchDeleteConversationsAsync(parent).get(); + } + } +} +// [END ces_v1_generated_AgentService_BatchDeleteConversations_String_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/create/SyncCreateSetCredentialsProvider.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..8e1e81966168 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AgentServiceSettings; +import com.google.cloud.ces.v1.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 + AgentServiceSettings agentServiceSettings = + AgentServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + AgentServiceClient agentServiceClient = AgentServiceClient.create(agentServiceSettings); + } +} +// [END ces_v1_generated_AgentService_Create_SetCredentialsProvider_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/create/SyncCreateSetEndpoint.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..753df59644d0 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,41 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_Create_SetEndpoint_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AgentServiceSettings; +import com.google.cloud.ces.v1.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 + AgentServiceSettings agentServiceSettings = + AgentServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + AgentServiceClient agentServiceClient = AgentServiceClient.create(agentServiceSettings); + } +} +// [END ces_v1_generated_AgentService_Create_SetEndpoint_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/create/SyncCreateUseHttpJsonTransport.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..cf24f8e758c2 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AgentServiceSettings; + +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 + AgentServiceSettings agentServiceSettings = AgentServiceSettings.newHttpJsonBuilder().build(); + AgentServiceClient agentServiceClient = AgentServiceClient.create(agentServiceSettings); + } +} +// [END ces_v1_generated_AgentService_Create_UseHttpJsonTransport_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createagent/AsyncCreateAgent.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createagent/AsyncCreateAgent.java new file mode 100644 index 000000000000..bb156e78439d --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createagent/AsyncCreateAgent.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateAgent_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.Agent; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.CreateAgentRequest; + +public class AsyncCreateAgent { + + public static void main(String[] args) throws Exception { + asyncCreateAgent(); + } + + public static void asyncCreateAgent() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + CreateAgentRequest request = + CreateAgentRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setAgentId("agentId-1060987136") + .setAgent(Agent.newBuilder().build()) + .build(); + ApiFuture future = agentServiceClient.createAgentCallable().futureCall(request); + // Do something. + Agent response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_CreateAgent_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createagent/SyncCreateAgent.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createagent/SyncCreateAgent.java new file mode 100644 index 000000000000..963f428c208a --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createagent/SyncCreateAgent.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateAgent_sync] +import com.google.cloud.ces.v1.Agent; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.CreateAgentRequest; + +public class SyncCreateAgent { + + public static void main(String[] args) throws Exception { + syncCreateAgent(); + } + + public static void syncCreateAgent() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + CreateAgentRequest request = + CreateAgentRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setAgentId("agentId-1060987136") + .setAgent(Agent.newBuilder().build()) + .build(); + Agent response = agentServiceClient.createAgent(request); + } + } +} +// [END ces_v1_generated_AgentService_CreateAgent_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createagent/SyncCreateAgentAppnameAgent.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createagent/SyncCreateAgentAppnameAgent.java new file mode 100644 index 000000000000..705500d2eb4b --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createagent/SyncCreateAgentAppnameAgent.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateAgent_AppnameAgent_sync] +import com.google.cloud.ces.v1.Agent; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; + +public class SyncCreateAgentAppnameAgent { + + public static void main(String[] args) throws Exception { + syncCreateAgentAppnameAgent(); + } + + public static void syncCreateAgentAppnameAgent() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Agent agent = Agent.newBuilder().build(); + Agent response = agentServiceClient.createAgent(parent, agent); + } + } +} +// [END ces_v1_generated_AgentService_CreateAgent_AppnameAgent_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createagent/SyncCreateAgentAppnameAgentString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createagent/SyncCreateAgentAppnameAgentString.java new file mode 100644 index 000000000000..05d713ff0f1a --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createagent/SyncCreateAgentAppnameAgentString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateAgent_AppnameAgentString_sync] +import com.google.cloud.ces.v1.Agent; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; + +public class SyncCreateAgentAppnameAgentString { + + public static void main(String[] args) throws Exception { + syncCreateAgentAppnameAgentString(); + } + + public static void syncCreateAgentAppnameAgentString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Agent agent = Agent.newBuilder().build(); + String agentId = "agentId-1060987136"; + Agent response = agentServiceClient.createAgent(parent, agent, agentId); + } + } +} +// [END ces_v1_generated_AgentService_CreateAgent_AppnameAgentString_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createagent/SyncCreateAgentStringAgent.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createagent/SyncCreateAgentStringAgent.java new file mode 100644 index 000000000000..64149fff9e6c --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createagent/SyncCreateAgentStringAgent.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateAgent_StringAgent_sync] +import com.google.cloud.ces.v1.Agent; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; + +public class SyncCreateAgentStringAgent { + + public static void main(String[] args) throws Exception { + syncCreateAgentStringAgent(); + } + + public static void syncCreateAgentStringAgent() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString(); + Agent agent = Agent.newBuilder().build(); + Agent response = agentServiceClient.createAgent(parent, agent); + } + } +} +// [END ces_v1_generated_AgentService_CreateAgent_StringAgent_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createagent/SyncCreateAgentStringAgentString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createagent/SyncCreateAgentStringAgentString.java new file mode 100644 index 000000000000..c84bf28bcbed --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createagent/SyncCreateAgentStringAgentString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateAgent_StringAgentString_sync] +import com.google.cloud.ces.v1.Agent; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; + +public class SyncCreateAgentStringAgentString { + + public static void main(String[] args) throws Exception { + syncCreateAgentStringAgentString(); + } + + public static void syncCreateAgentStringAgentString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString(); + Agent agent = Agent.newBuilder().build(); + String agentId = "agentId-1060987136"; + Agent response = agentServiceClient.createAgent(parent, agent, agentId); + } + } +} +// [END ces_v1_generated_AgentService_CreateAgent_StringAgentString_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createapp/AsyncCreateApp.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createapp/AsyncCreateApp.java new file mode 100644 index 000000000000..cf4d1fbe9a65 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createapp/AsyncCreateApp.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateApp_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.App; +import com.google.cloud.ces.v1.CreateAppRequest; +import com.google.cloud.ces.v1.LocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateApp { + + public static void main(String[] args) throws Exception { + asyncCreateApp(); + } + + public static void asyncCreateApp() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + CreateAppRequest request = + CreateAppRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAppId("appId93028124") + .setApp(App.newBuilder().build()) + .build(); + ApiFuture future = agentServiceClient.createAppCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_CreateApp_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createapp/AsyncCreateAppLRO.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createapp/AsyncCreateAppLRO.java new file mode 100644 index 000000000000..8a3e054bf430 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createapp/AsyncCreateAppLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateApp_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.App; +import com.google.cloud.ces.v1.CreateAppRequest; +import com.google.cloud.ces.v1.LocationName; +import com.google.cloud.ces.v1.OperationMetadata; + +public class AsyncCreateAppLRO { + + public static void main(String[] args) throws Exception { + asyncCreateAppLRO(); + } + + public static void asyncCreateAppLRO() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + CreateAppRequest request = + CreateAppRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAppId("appId93028124") + .setApp(App.newBuilder().build()) + .build(); + OperationFuture future = + agentServiceClient.createAppOperationCallable().futureCall(request); + // Do something. + App response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_CreateApp_LRO_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createapp/SyncCreateApp.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createapp/SyncCreateApp.java new file mode 100644 index 000000000000..3bf8c22a1623 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createapp/SyncCreateApp.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateApp_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.App; +import com.google.cloud.ces.v1.CreateAppRequest; +import com.google.cloud.ces.v1.LocationName; + +public class SyncCreateApp { + + public static void main(String[] args) throws Exception { + syncCreateApp(); + } + + public static void syncCreateApp() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + CreateAppRequest request = + CreateAppRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAppId("appId93028124") + .setApp(App.newBuilder().build()) + .build(); + App response = agentServiceClient.createAppAsync(request).get(); + } + } +} +// [END ces_v1_generated_AgentService_CreateApp_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createapp/SyncCreateAppLocationnameApp.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createapp/SyncCreateAppLocationnameApp.java new file mode 100644 index 000000000000..140a7c68d10d --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createapp/SyncCreateAppLocationnameApp.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateApp_LocationnameApp_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.App; +import com.google.cloud.ces.v1.LocationName; + +public class SyncCreateAppLocationnameApp { + + public static void main(String[] args) throws Exception { + syncCreateAppLocationnameApp(); + } + + public static void syncCreateAppLocationnameApp() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + App app = App.newBuilder().build(); + App response = agentServiceClient.createAppAsync(parent, app).get(); + } + } +} +// [END ces_v1_generated_AgentService_CreateApp_LocationnameApp_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createapp/SyncCreateAppLocationnameAppString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createapp/SyncCreateAppLocationnameAppString.java new file mode 100644 index 000000000000..d0b4eccda6fe --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createapp/SyncCreateAppLocationnameAppString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateApp_LocationnameAppString_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.App; +import com.google.cloud.ces.v1.LocationName; + +public class SyncCreateAppLocationnameAppString { + + public static void main(String[] args) throws Exception { + syncCreateAppLocationnameAppString(); + } + + public static void syncCreateAppLocationnameAppString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + App app = App.newBuilder().build(); + String appId = "appId93028124"; + App response = agentServiceClient.createAppAsync(parent, app, appId).get(); + } + } +} +// [END ces_v1_generated_AgentService_CreateApp_LocationnameAppString_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createapp/SyncCreateAppStringApp.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createapp/SyncCreateAppStringApp.java new file mode 100644 index 000000000000..6546bee9c008 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createapp/SyncCreateAppStringApp.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateApp_StringApp_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.App; +import com.google.cloud.ces.v1.LocationName; + +public class SyncCreateAppStringApp { + + public static void main(String[] args) throws Exception { + syncCreateAppStringApp(); + } + + public static void syncCreateAppStringApp() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + App app = App.newBuilder().build(); + App response = agentServiceClient.createAppAsync(parent, app).get(); + } + } +} +// [END ces_v1_generated_AgentService_CreateApp_StringApp_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createapp/SyncCreateAppStringAppString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createapp/SyncCreateAppStringAppString.java new file mode 100644 index 000000000000..edf3cf4beb08 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createapp/SyncCreateAppStringAppString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateApp_StringAppString_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.App; +import com.google.cloud.ces.v1.LocationName; + +public class SyncCreateAppStringAppString { + + public static void main(String[] args) throws Exception { + syncCreateAppStringAppString(); + } + + public static void syncCreateAppStringAppString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + App app = App.newBuilder().build(); + String appId = "appId93028124"; + App response = agentServiceClient.createAppAsync(parent, app, appId).get(); + } + } +} +// [END ces_v1_generated_AgentService_CreateApp_StringAppString_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createappversion/AsyncCreateAppVersion.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createappversion/AsyncCreateAppVersion.java new file mode 100644 index 000000000000..5902cca7cef7 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createappversion/AsyncCreateAppVersion.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateAppVersion_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.AppVersion; +import com.google.cloud.ces.v1.CreateAppVersionRequest; + +public class AsyncCreateAppVersion { + + public static void main(String[] args) throws Exception { + asyncCreateAppVersion(); + } + + public static void asyncCreateAppVersion() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + CreateAppVersionRequest request = + CreateAppVersionRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setAppVersionId("appVersionId303221490") + .setAppVersion(AppVersion.newBuilder().build()) + .build(); + ApiFuture future = + agentServiceClient.createAppVersionCallable().futureCall(request); + // Do something. + AppVersion response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_CreateAppVersion_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createappversion/SyncCreateAppVersion.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createappversion/SyncCreateAppVersion.java new file mode 100644 index 000000000000..2ab4bcc32fed --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createappversion/SyncCreateAppVersion.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateAppVersion_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.AppVersion; +import com.google.cloud.ces.v1.CreateAppVersionRequest; + +public class SyncCreateAppVersion { + + public static void main(String[] args) throws Exception { + syncCreateAppVersion(); + } + + public static void syncCreateAppVersion() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + CreateAppVersionRequest request = + CreateAppVersionRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setAppVersionId("appVersionId303221490") + .setAppVersion(AppVersion.newBuilder().build()) + .build(); + AppVersion response = agentServiceClient.createAppVersion(request); + } + } +} +// [END ces_v1_generated_AgentService_CreateAppVersion_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createappversion/SyncCreateAppVersionAppnameAppversion.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createappversion/SyncCreateAppVersionAppnameAppversion.java new file mode 100644 index 000000000000..65d6acef91ad --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createappversion/SyncCreateAppVersionAppnameAppversion.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateAppVersion_AppnameAppversion_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.AppVersion; + +public class SyncCreateAppVersionAppnameAppversion { + + public static void main(String[] args) throws Exception { + syncCreateAppVersionAppnameAppversion(); + } + + public static void syncCreateAppVersionAppnameAppversion() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + AppVersion appVersion = AppVersion.newBuilder().build(); + AppVersion response = agentServiceClient.createAppVersion(parent, appVersion); + } + } +} +// [END ces_v1_generated_AgentService_CreateAppVersion_AppnameAppversion_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createappversion/SyncCreateAppVersionAppnameAppversionString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createappversion/SyncCreateAppVersionAppnameAppversionString.java new file mode 100644 index 000000000000..f0f0309d2c6a --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createappversion/SyncCreateAppVersionAppnameAppversionString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateAppVersion_AppnameAppversionString_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.AppVersion; + +public class SyncCreateAppVersionAppnameAppversionString { + + public static void main(String[] args) throws Exception { + syncCreateAppVersionAppnameAppversionString(); + } + + public static void syncCreateAppVersionAppnameAppversionString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + AppVersion appVersion = AppVersion.newBuilder().build(); + String appVersionId = "appVersionId303221490"; + AppVersion response = agentServiceClient.createAppVersion(parent, appVersion, appVersionId); + } + } +} +// [END ces_v1_generated_AgentService_CreateAppVersion_AppnameAppversionString_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createappversion/SyncCreateAppVersionStringAppversion.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createappversion/SyncCreateAppVersionStringAppversion.java new file mode 100644 index 000000000000..07263ab906e9 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createappversion/SyncCreateAppVersionStringAppversion.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateAppVersion_StringAppversion_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.AppVersion; + +public class SyncCreateAppVersionStringAppversion { + + public static void main(String[] args) throws Exception { + syncCreateAppVersionStringAppversion(); + } + + public static void syncCreateAppVersionStringAppversion() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString(); + AppVersion appVersion = AppVersion.newBuilder().build(); + AppVersion response = agentServiceClient.createAppVersion(parent, appVersion); + } + } +} +// [END ces_v1_generated_AgentService_CreateAppVersion_StringAppversion_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createappversion/SyncCreateAppVersionStringAppversionString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createappversion/SyncCreateAppVersionStringAppversionString.java new file mode 100644 index 000000000000..69e3316ad5fa --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createappversion/SyncCreateAppVersionStringAppversionString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateAppVersion_StringAppversionString_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.AppVersion; + +public class SyncCreateAppVersionStringAppversionString { + + public static void main(String[] args) throws Exception { + syncCreateAppVersionStringAppversionString(); + } + + public static void syncCreateAppVersionStringAppversionString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString(); + AppVersion appVersion = AppVersion.newBuilder().build(); + String appVersionId = "appVersionId303221490"; + AppVersion response = agentServiceClient.createAppVersion(parent, appVersion, appVersionId); + } + } +} +// [END ces_v1_generated_AgentService_CreateAppVersion_StringAppversionString_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createdeployment/AsyncCreateDeployment.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createdeployment/AsyncCreateDeployment.java new file mode 100644 index 000000000000..31117bb77fc5 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createdeployment/AsyncCreateDeployment.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateDeployment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.CreateDeploymentRequest; +import com.google.cloud.ces.v1.Deployment; + +public class AsyncCreateDeployment { + + public static void main(String[] args) throws Exception { + asyncCreateDeployment(); + } + + public static void asyncCreateDeployment() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + CreateDeploymentRequest request = + CreateDeploymentRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setDeploymentId("deploymentId-136894784") + .setDeployment(Deployment.newBuilder().build()) + .build(); + ApiFuture future = + agentServiceClient.createDeploymentCallable().futureCall(request); + // Do something. + Deployment response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_CreateDeployment_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createdeployment/SyncCreateDeployment.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createdeployment/SyncCreateDeployment.java new file mode 100644 index 000000000000..19656e05abb6 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createdeployment/SyncCreateDeployment.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateDeployment_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.CreateDeploymentRequest; +import com.google.cloud.ces.v1.Deployment; + +public class SyncCreateDeployment { + + public static void main(String[] args) throws Exception { + syncCreateDeployment(); + } + + public static void syncCreateDeployment() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + CreateDeploymentRequest request = + CreateDeploymentRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setDeploymentId("deploymentId-136894784") + .setDeployment(Deployment.newBuilder().build()) + .build(); + Deployment response = agentServiceClient.createDeployment(request); + } + } +} +// [END ces_v1_generated_AgentService_CreateDeployment_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createdeployment/SyncCreateDeploymentAppnameDeployment.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createdeployment/SyncCreateDeploymentAppnameDeployment.java new file mode 100644 index 000000000000..0b50ff83a180 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createdeployment/SyncCreateDeploymentAppnameDeployment.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateDeployment_AppnameDeployment_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Deployment; + +public class SyncCreateDeploymentAppnameDeployment { + + public static void main(String[] args) throws Exception { + syncCreateDeploymentAppnameDeployment(); + } + + public static void syncCreateDeploymentAppnameDeployment() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Deployment deployment = Deployment.newBuilder().build(); + Deployment response = agentServiceClient.createDeployment(parent, deployment); + } + } +} +// [END ces_v1_generated_AgentService_CreateDeployment_AppnameDeployment_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createdeployment/SyncCreateDeploymentAppnameDeploymentString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createdeployment/SyncCreateDeploymentAppnameDeploymentString.java new file mode 100644 index 000000000000..a649108def8e --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createdeployment/SyncCreateDeploymentAppnameDeploymentString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateDeployment_AppnameDeploymentString_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Deployment; + +public class SyncCreateDeploymentAppnameDeploymentString { + + public static void main(String[] args) throws Exception { + syncCreateDeploymentAppnameDeploymentString(); + } + + public static void syncCreateDeploymentAppnameDeploymentString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Deployment deployment = Deployment.newBuilder().build(); + String deploymentId = "deploymentId-136894784"; + Deployment response = agentServiceClient.createDeployment(parent, deployment, deploymentId); + } + } +} +// [END ces_v1_generated_AgentService_CreateDeployment_AppnameDeploymentString_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createdeployment/SyncCreateDeploymentStringDeployment.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createdeployment/SyncCreateDeploymentStringDeployment.java new file mode 100644 index 000000000000..6ceb337107aa --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createdeployment/SyncCreateDeploymentStringDeployment.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateDeployment_StringDeployment_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Deployment; + +public class SyncCreateDeploymentStringDeployment { + + public static void main(String[] args) throws Exception { + syncCreateDeploymentStringDeployment(); + } + + public static void syncCreateDeploymentStringDeployment() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString(); + Deployment deployment = Deployment.newBuilder().build(); + Deployment response = agentServiceClient.createDeployment(parent, deployment); + } + } +} +// [END ces_v1_generated_AgentService_CreateDeployment_StringDeployment_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createdeployment/SyncCreateDeploymentStringDeploymentString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createdeployment/SyncCreateDeploymentStringDeploymentString.java new file mode 100644 index 000000000000..75e81005245d --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createdeployment/SyncCreateDeploymentStringDeploymentString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateDeployment_StringDeploymentString_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Deployment; + +public class SyncCreateDeploymentStringDeploymentString { + + public static void main(String[] args) throws Exception { + syncCreateDeploymentStringDeploymentString(); + } + + public static void syncCreateDeploymentStringDeploymentString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString(); + Deployment deployment = Deployment.newBuilder().build(); + String deploymentId = "deploymentId-136894784"; + Deployment response = agentServiceClient.createDeployment(parent, deployment, deploymentId); + } + } +} +// [END ces_v1_generated_AgentService_CreateDeployment_StringDeploymentString_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createexample/AsyncCreateExample.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createexample/AsyncCreateExample.java new file mode 100644 index 000000000000..b5afc6ce99ad --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createexample/AsyncCreateExample.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateExample_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.CreateExampleRequest; +import com.google.cloud.ces.v1.Example; + +public class AsyncCreateExample { + + public static void main(String[] args) throws Exception { + asyncCreateExample(); + } + + public static void asyncCreateExample() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + CreateExampleRequest request = + CreateExampleRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setExampleId("exampleId-64591835") + .setExample(Example.newBuilder().build()) + .build(); + ApiFuture future = agentServiceClient.createExampleCallable().futureCall(request); + // Do something. + Example response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_CreateExample_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createexample/SyncCreateExample.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createexample/SyncCreateExample.java new file mode 100644 index 000000000000..451032c12971 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createexample/SyncCreateExample.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateExample_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.CreateExampleRequest; +import com.google.cloud.ces.v1.Example; + +public class SyncCreateExample { + + public static void main(String[] args) throws Exception { + syncCreateExample(); + } + + public static void syncCreateExample() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + CreateExampleRequest request = + CreateExampleRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setExampleId("exampleId-64591835") + .setExample(Example.newBuilder().build()) + .build(); + Example response = agentServiceClient.createExample(request); + } + } +} +// [END ces_v1_generated_AgentService_CreateExample_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createexample/SyncCreateExampleAppnameExample.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createexample/SyncCreateExampleAppnameExample.java new file mode 100644 index 000000000000..8c53fa0a43eb --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createexample/SyncCreateExampleAppnameExample.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateExample_AppnameExample_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Example; + +public class SyncCreateExampleAppnameExample { + + public static void main(String[] args) throws Exception { + syncCreateExampleAppnameExample(); + } + + public static void syncCreateExampleAppnameExample() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Example example = Example.newBuilder().build(); + Example response = agentServiceClient.createExample(parent, example); + } + } +} +// [END ces_v1_generated_AgentService_CreateExample_AppnameExample_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createexample/SyncCreateExampleAppnameExampleString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createexample/SyncCreateExampleAppnameExampleString.java new file mode 100644 index 000000000000..61b1c5e7df48 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createexample/SyncCreateExampleAppnameExampleString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateExample_AppnameExampleString_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Example; + +public class SyncCreateExampleAppnameExampleString { + + public static void main(String[] args) throws Exception { + syncCreateExampleAppnameExampleString(); + } + + public static void syncCreateExampleAppnameExampleString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Example example = Example.newBuilder().build(); + String exampleId = "exampleId-64591835"; + Example response = agentServiceClient.createExample(parent, example, exampleId); + } + } +} +// [END ces_v1_generated_AgentService_CreateExample_AppnameExampleString_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createexample/SyncCreateExampleStringExample.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createexample/SyncCreateExampleStringExample.java new file mode 100644 index 000000000000..916111ae87a1 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createexample/SyncCreateExampleStringExample.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateExample_StringExample_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Example; + +public class SyncCreateExampleStringExample { + + public static void main(String[] args) throws Exception { + syncCreateExampleStringExample(); + } + + public static void syncCreateExampleStringExample() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString(); + Example example = Example.newBuilder().build(); + Example response = agentServiceClient.createExample(parent, example); + } + } +} +// [END ces_v1_generated_AgentService_CreateExample_StringExample_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createexample/SyncCreateExampleStringExampleString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createexample/SyncCreateExampleStringExampleString.java new file mode 100644 index 000000000000..f9726cd08556 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createexample/SyncCreateExampleStringExampleString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateExample_StringExampleString_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Example; + +public class SyncCreateExampleStringExampleString { + + public static void main(String[] args) throws Exception { + syncCreateExampleStringExampleString(); + } + + public static void syncCreateExampleStringExampleString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString(); + Example example = Example.newBuilder().build(); + String exampleId = "exampleId-64591835"; + Example response = agentServiceClient.createExample(parent, example, exampleId); + } + } +} +// [END ces_v1_generated_AgentService_CreateExample_StringExampleString_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createguardrail/AsyncCreateGuardrail.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createguardrail/AsyncCreateGuardrail.java new file mode 100644 index 000000000000..def5d572407f --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createguardrail/AsyncCreateGuardrail.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateGuardrail_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.CreateGuardrailRequest; +import com.google.cloud.ces.v1.Guardrail; + +public class AsyncCreateGuardrail { + + public static void main(String[] args) throws Exception { + asyncCreateGuardrail(); + } + + public static void asyncCreateGuardrail() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + CreateGuardrailRequest request = + CreateGuardrailRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setGuardrailId("guardrailId1875412786") + .setGuardrail(Guardrail.newBuilder().build()) + .build(); + ApiFuture future = + agentServiceClient.createGuardrailCallable().futureCall(request); + // Do something. + Guardrail response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_CreateGuardrail_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createguardrail/SyncCreateGuardrail.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createguardrail/SyncCreateGuardrail.java new file mode 100644 index 000000000000..9890c883a256 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createguardrail/SyncCreateGuardrail.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateGuardrail_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.CreateGuardrailRequest; +import com.google.cloud.ces.v1.Guardrail; + +public class SyncCreateGuardrail { + + public static void main(String[] args) throws Exception { + syncCreateGuardrail(); + } + + public static void syncCreateGuardrail() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + CreateGuardrailRequest request = + CreateGuardrailRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setGuardrailId("guardrailId1875412786") + .setGuardrail(Guardrail.newBuilder().build()) + .build(); + Guardrail response = agentServiceClient.createGuardrail(request); + } + } +} +// [END ces_v1_generated_AgentService_CreateGuardrail_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createguardrail/SyncCreateGuardrailAppnameGuardrail.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createguardrail/SyncCreateGuardrailAppnameGuardrail.java new file mode 100644 index 000000000000..d6f4570bbb17 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createguardrail/SyncCreateGuardrailAppnameGuardrail.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateGuardrail_AppnameGuardrail_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Guardrail; + +public class SyncCreateGuardrailAppnameGuardrail { + + public static void main(String[] args) throws Exception { + syncCreateGuardrailAppnameGuardrail(); + } + + public static void syncCreateGuardrailAppnameGuardrail() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Guardrail guardrail = Guardrail.newBuilder().build(); + Guardrail response = agentServiceClient.createGuardrail(parent, guardrail); + } + } +} +// [END ces_v1_generated_AgentService_CreateGuardrail_AppnameGuardrail_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createguardrail/SyncCreateGuardrailAppnameGuardrailString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createguardrail/SyncCreateGuardrailAppnameGuardrailString.java new file mode 100644 index 000000000000..b07e395377d5 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createguardrail/SyncCreateGuardrailAppnameGuardrailString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateGuardrail_AppnameGuardrailString_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Guardrail; + +public class SyncCreateGuardrailAppnameGuardrailString { + + public static void main(String[] args) throws Exception { + syncCreateGuardrailAppnameGuardrailString(); + } + + public static void syncCreateGuardrailAppnameGuardrailString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Guardrail guardrail = Guardrail.newBuilder().build(); + String guardrailId = "guardrailId1875412786"; + Guardrail response = agentServiceClient.createGuardrail(parent, guardrail, guardrailId); + } + } +} +// [END ces_v1_generated_AgentService_CreateGuardrail_AppnameGuardrailString_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createguardrail/SyncCreateGuardrailStringGuardrail.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createguardrail/SyncCreateGuardrailStringGuardrail.java new file mode 100644 index 000000000000..c4c633ef00a7 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createguardrail/SyncCreateGuardrailStringGuardrail.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateGuardrail_StringGuardrail_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Guardrail; + +public class SyncCreateGuardrailStringGuardrail { + + public static void main(String[] args) throws Exception { + syncCreateGuardrailStringGuardrail(); + } + + public static void syncCreateGuardrailStringGuardrail() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString(); + Guardrail guardrail = Guardrail.newBuilder().build(); + Guardrail response = agentServiceClient.createGuardrail(parent, guardrail); + } + } +} +// [END ces_v1_generated_AgentService_CreateGuardrail_StringGuardrail_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createguardrail/SyncCreateGuardrailStringGuardrailString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createguardrail/SyncCreateGuardrailStringGuardrailString.java new file mode 100644 index 000000000000..3a2f47b66eb4 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createguardrail/SyncCreateGuardrailStringGuardrailString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateGuardrail_StringGuardrailString_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Guardrail; + +public class SyncCreateGuardrailStringGuardrailString { + + public static void main(String[] args) throws Exception { + syncCreateGuardrailStringGuardrailString(); + } + + public static void syncCreateGuardrailStringGuardrailString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString(); + Guardrail guardrail = Guardrail.newBuilder().build(); + String guardrailId = "guardrailId1875412786"; + Guardrail response = agentServiceClient.createGuardrail(parent, guardrail, guardrailId); + } + } +} +// [END ces_v1_generated_AgentService_CreateGuardrail_StringGuardrailString_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtool/AsyncCreateTool.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtool/AsyncCreateTool.java new file mode 100644 index 000000000000..d2df81853d03 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtool/AsyncCreateTool.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateTool_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.CreateToolRequest; +import com.google.cloud.ces.v1.Tool; + +public class AsyncCreateTool { + + public static void main(String[] args) throws Exception { + asyncCreateTool(); + } + + public static void asyncCreateTool() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + CreateToolRequest request = + CreateToolRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setToolId("toolId-868061997") + .setTool(Tool.newBuilder().build()) + .build(); + ApiFuture future = agentServiceClient.createToolCallable().futureCall(request); + // Do something. + Tool response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_CreateTool_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtool/SyncCreateTool.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtool/SyncCreateTool.java new file mode 100644 index 000000000000..650699d2ce08 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtool/SyncCreateTool.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateTool_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.CreateToolRequest; +import com.google.cloud.ces.v1.Tool; + +public class SyncCreateTool { + + public static void main(String[] args) throws Exception { + syncCreateTool(); + } + + public static void syncCreateTool() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + CreateToolRequest request = + CreateToolRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setToolId("toolId-868061997") + .setTool(Tool.newBuilder().build()) + .build(); + Tool response = agentServiceClient.createTool(request); + } + } +} +// [END ces_v1_generated_AgentService_CreateTool_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtool/SyncCreateToolAppnameTool.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtool/SyncCreateToolAppnameTool.java new file mode 100644 index 000000000000..5b5d14cefdfb --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtool/SyncCreateToolAppnameTool.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateTool_AppnameTool_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Tool; + +public class SyncCreateToolAppnameTool { + + public static void main(String[] args) throws Exception { + syncCreateToolAppnameTool(); + } + + public static void syncCreateToolAppnameTool() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Tool tool = Tool.newBuilder().build(); + Tool response = agentServiceClient.createTool(parent, tool); + } + } +} +// [END ces_v1_generated_AgentService_CreateTool_AppnameTool_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtool/SyncCreateToolAppnameToolString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtool/SyncCreateToolAppnameToolString.java new file mode 100644 index 000000000000..4a001d5c491f --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtool/SyncCreateToolAppnameToolString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateTool_AppnameToolString_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Tool; + +public class SyncCreateToolAppnameToolString { + + public static void main(String[] args) throws Exception { + syncCreateToolAppnameToolString(); + } + + public static void syncCreateToolAppnameToolString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Tool tool = Tool.newBuilder().build(); + String toolId = "toolId-868061997"; + Tool response = agentServiceClient.createTool(parent, tool, toolId); + } + } +} +// [END ces_v1_generated_AgentService_CreateTool_AppnameToolString_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtool/SyncCreateToolStringTool.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtool/SyncCreateToolStringTool.java new file mode 100644 index 000000000000..3b02265883a7 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtool/SyncCreateToolStringTool.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateTool_StringTool_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Tool; + +public class SyncCreateToolStringTool { + + public static void main(String[] args) throws Exception { + syncCreateToolStringTool(); + } + + public static void syncCreateToolStringTool() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString(); + Tool tool = Tool.newBuilder().build(); + Tool response = agentServiceClient.createTool(parent, tool); + } + } +} +// [END ces_v1_generated_AgentService_CreateTool_StringTool_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtool/SyncCreateToolStringToolString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtool/SyncCreateToolStringToolString.java new file mode 100644 index 000000000000..b619b965a8da --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtool/SyncCreateToolStringToolString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateTool_StringToolString_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Tool; + +public class SyncCreateToolStringToolString { + + public static void main(String[] args) throws Exception { + syncCreateToolStringToolString(); + } + + public static void syncCreateToolStringToolString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString(); + Tool tool = Tool.newBuilder().build(); + String toolId = "toolId-868061997"; + Tool response = agentServiceClient.createTool(parent, tool, toolId); + } + } +} +// [END ces_v1_generated_AgentService_CreateTool_StringToolString_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtoolset/AsyncCreateToolset.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtoolset/AsyncCreateToolset.java new file mode 100644 index 000000000000..86383cf83e50 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtoolset/AsyncCreateToolset.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateToolset_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.CreateToolsetRequest; +import com.google.cloud.ces.v1.Toolset; + +public class AsyncCreateToolset { + + public static void main(String[] args) throws Exception { + asyncCreateToolset(); + } + + public static void asyncCreateToolset() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + CreateToolsetRequest request = + CreateToolsetRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setToolsetId("toolsetId-397931899") + .setToolset(Toolset.newBuilder().build()) + .build(); + ApiFuture future = agentServiceClient.createToolsetCallable().futureCall(request); + // Do something. + Toolset response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_CreateToolset_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtoolset/SyncCreateToolset.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtoolset/SyncCreateToolset.java new file mode 100644 index 000000000000..53f46d633e25 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtoolset/SyncCreateToolset.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateToolset_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.CreateToolsetRequest; +import com.google.cloud.ces.v1.Toolset; + +public class SyncCreateToolset { + + public static void main(String[] args) throws Exception { + syncCreateToolset(); + } + + public static void syncCreateToolset() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + CreateToolsetRequest request = + CreateToolsetRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setToolsetId("toolsetId-397931899") + .setToolset(Toolset.newBuilder().build()) + .build(); + Toolset response = agentServiceClient.createToolset(request); + } + } +} +// [END ces_v1_generated_AgentService_CreateToolset_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtoolset/SyncCreateToolsetAppnameToolset.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtoolset/SyncCreateToolsetAppnameToolset.java new file mode 100644 index 000000000000..109fe5892103 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtoolset/SyncCreateToolsetAppnameToolset.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateToolset_AppnameToolset_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Toolset; + +public class SyncCreateToolsetAppnameToolset { + + public static void main(String[] args) throws Exception { + syncCreateToolsetAppnameToolset(); + } + + public static void syncCreateToolsetAppnameToolset() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Toolset toolset = Toolset.newBuilder().build(); + Toolset response = agentServiceClient.createToolset(parent, toolset); + } + } +} +// [END ces_v1_generated_AgentService_CreateToolset_AppnameToolset_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtoolset/SyncCreateToolsetAppnameToolsetString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtoolset/SyncCreateToolsetAppnameToolsetString.java new file mode 100644 index 000000000000..41624cf18e0c --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtoolset/SyncCreateToolsetAppnameToolsetString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateToolset_AppnameToolsetString_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Toolset; + +public class SyncCreateToolsetAppnameToolsetString { + + public static void main(String[] args) throws Exception { + syncCreateToolsetAppnameToolsetString(); + } + + public static void syncCreateToolsetAppnameToolsetString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + Toolset toolset = Toolset.newBuilder().build(); + String toolsetId = "toolsetId-397931899"; + Toolset response = agentServiceClient.createToolset(parent, toolset, toolsetId); + } + } +} +// [END ces_v1_generated_AgentService_CreateToolset_AppnameToolsetString_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtoolset/SyncCreateToolsetStringToolset.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtoolset/SyncCreateToolsetStringToolset.java new file mode 100644 index 000000000000..b3eb2c7ab23d --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtoolset/SyncCreateToolsetStringToolset.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateToolset_StringToolset_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Toolset; + +public class SyncCreateToolsetStringToolset { + + public static void main(String[] args) throws Exception { + syncCreateToolsetStringToolset(); + } + + public static void syncCreateToolsetStringToolset() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString(); + Toolset toolset = Toolset.newBuilder().build(); + Toolset response = agentServiceClient.createToolset(parent, toolset); + } + } +} +// [END ces_v1_generated_AgentService_CreateToolset_StringToolset_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtoolset/SyncCreateToolsetStringToolsetString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtoolset/SyncCreateToolsetStringToolsetString.java new file mode 100644 index 000000000000..dc65aafa40bc --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/createtoolset/SyncCreateToolsetStringToolsetString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_CreateToolset_StringToolsetString_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Toolset; + +public class SyncCreateToolsetStringToolsetString { + + public static void main(String[] args) throws Exception { + syncCreateToolsetStringToolsetString(); + } + + public static void syncCreateToolsetStringToolsetString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString(); + Toolset toolset = Toolset.newBuilder().build(); + String toolsetId = "toolsetId-397931899"; + Toolset response = agentServiceClient.createToolset(parent, toolset, toolsetId); + } + } +} +// [END ces_v1_generated_AgentService_CreateToolset_StringToolsetString_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteagent/AsyncDeleteAgent.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteagent/AsyncDeleteAgent.java new file mode 100644 index 000000000000..672283ac10e5 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteagent/AsyncDeleteAgent.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteAgent_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentName; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.DeleteAgentRequest; +import com.google.protobuf.Empty; + +public class AsyncDeleteAgent { + + public static void main(String[] args) throws Exception { + asyncDeleteAgent(); + } + + public static void asyncDeleteAgent() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + DeleteAgentRequest request = + DeleteAgentRequest.newBuilder() + .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setForce(true) + .setEtag("etag3123477") + .build(); + ApiFuture future = agentServiceClient.deleteAgentCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END ces_v1_generated_AgentService_DeleteAgent_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteagent/SyncDeleteAgent.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteagent/SyncDeleteAgent.java new file mode 100644 index 000000000000..eb2d0d9160e9 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteagent/SyncDeleteAgent.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteAgent_sync] +import com.google.cloud.ces.v1.AgentName; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.DeleteAgentRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteAgent { + + public static void main(String[] args) throws Exception { + syncDeleteAgent(); + } + + public static void syncDeleteAgent() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + DeleteAgentRequest request = + DeleteAgentRequest.newBuilder() + .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .setForce(true) + .setEtag("etag3123477") + .build(); + agentServiceClient.deleteAgent(request); + } + } +} +// [END ces_v1_generated_AgentService_DeleteAgent_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteagent/SyncDeleteAgentAgentname.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteagent/SyncDeleteAgentAgentname.java new file mode 100644 index 000000000000..ca58d9cb630d --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteagent/SyncDeleteAgentAgentname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteAgent_Agentname_sync] +import com.google.cloud.ces.v1.AgentName; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAgentAgentname { + + public static void main(String[] args) throws Exception { + syncDeleteAgentAgentname(); + } + + public static void syncDeleteAgentAgentname() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]"); + agentServiceClient.deleteAgent(name); + } + } +} +// [END ces_v1_generated_AgentService_DeleteAgent_Agentname_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteagent/SyncDeleteAgentString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteagent/SyncDeleteAgentString.java new file mode 100644 index 000000000000..9ae2fb675416 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteagent/SyncDeleteAgentString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteAgent_String_sync] +import com.google.cloud.ces.v1.AgentName; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAgentString { + + public static void main(String[] args) throws Exception { + syncDeleteAgentString(); + } + + public static void syncDeleteAgentString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String name = AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString(); + agentServiceClient.deleteAgent(name); + } + } +} +// [END ces_v1_generated_AgentService_DeleteAgent_String_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteapp/AsyncDeleteApp.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteapp/AsyncDeleteApp.java new file mode 100644 index 000000000000..b08ba5528dc8 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteapp/AsyncDeleteApp.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteApp_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.DeleteAppRequest; +import com.google.longrunning.Operation; + +public class AsyncDeleteApp { + + public static void main(String[] args) throws Exception { + asyncDeleteApp(); + } + + public static void asyncDeleteApp() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + DeleteAppRequest request = + DeleteAppRequest.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setEtag("etag3123477") + .build(); + ApiFuture future = agentServiceClient.deleteAppCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END ces_v1_generated_AgentService_DeleteApp_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteapp/AsyncDeleteAppLRO.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteapp/AsyncDeleteAppLRO.java new file mode 100644 index 000000000000..8dd219705c3d --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteapp/AsyncDeleteAppLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteApp_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.DeleteAppRequest; +import com.google.cloud.ces.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteAppLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteAppLRO(); + } + + public static void asyncDeleteAppLRO() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + DeleteAppRequest request = + DeleteAppRequest.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setEtag("etag3123477") + .build(); + OperationFuture future = + agentServiceClient.deleteAppOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END ces_v1_generated_AgentService_DeleteApp_LRO_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteapp/SyncDeleteApp.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteapp/SyncDeleteApp.java new file mode 100644 index 000000000000..0ebbe0ff69e9 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteapp/SyncDeleteApp.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteApp_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.DeleteAppRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteApp { + + public static void main(String[] args) throws Exception { + syncDeleteApp(); + } + + public static void syncDeleteApp() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + DeleteAppRequest request = + DeleteAppRequest.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setEtag("etag3123477") + .build(); + agentServiceClient.deleteAppAsync(request).get(); + } + } +} +// [END ces_v1_generated_AgentService_DeleteApp_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteapp/SyncDeleteAppAppname.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteapp/SyncDeleteAppAppname.java new file mode 100644 index 000000000000..74a1347733de --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteapp/SyncDeleteAppAppname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteApp_Appname_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.protobuf.Empty; + +public class SyncDeleteAppAppname { + + public static void main(String[] args) throws Exception { + syncDeleteAppAppname(); + } + + public static void syncDeleteAppAppname() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + AppName name = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + agentServiceClient.deleteAppAsync(name).get(); + } + } +} +// [END ces_v1_generated_AgentService_DeleteApp_Appname_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteapp/SyncDeleteAppString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteapp/SyncDeleteAppString.java new file mode 100644 index 000000000000..22cb4a487923 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteapp/SyncDeleteAppString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteApp_String_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.protobuf.Empty; + +public class SyncDeleteAppString { + + public static void main(String[] args) throws Exception { + syncDeleteAppString(); + } + + public static void syncDeleteAppString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String name = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString(); + agentServiceClient.deleteAppAsync(name).get(); + } + } +} +// [END ces_v1_generated_AgentService_DeleteApp_String_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteappversion/AsyncDeleteAppVersion.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteappversion/AsyncDeleteAppVersion.java new file mode 100644 index 000000000000..4aa497a277c2 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteappversion/AsyncDeleteAppVersion.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteAppVersion_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppVersionName; +import com.google.cloud.ces.v1.DeleteAppVersionRequest; +import com.google.protobuf.Empty; + +public class AsyncDeleteAppVersion { + + public static void main(String[] args) throws Exception { + asyncDeleteAppVersion(); + } + + public static void asyncDeleteAppVersion() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + DeleteAppVersionRequest request = + DeleteAppVersionRequest.newBuilder() + .setName( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setEtag("etag3123477") + .build(); + ApiFuture future = agentServiceClient.deleteAppVersionCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END ces_v1_generated_AgentService_DeleteAppVersion_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteappversion/SyncDeleteAppVersion.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteappversion/SyncDeleteAppVersion.java new file mode 100644 index 000000000000..48512b897c5a --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteappversion/SyncDeleteAppVersion.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteAppVersion_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppVersionName; +import com.google.cloud.ces.v1.DeleteAppVersionRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteAppVersion { + + public static void main(String[] args) throws Exception { + syncDeleteAppVersion(); + } + + public static void syncDeleteAppVersion() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + DeleteAppVersionRequest request = + DeleteAppVersionRequest.newBuilder() + .setName( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setEtag("etag3123477") + .build(); + agentServiceClient.deleteAppVersion(request); + } + } +} +// [END ces_v1_generated_AgentService_DeleteAppVersion_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteappversion/SyncDeleteAppVersionAppversionname.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteappversion/SyncDeleteAppVersionAppversionname.java new file mode 100644 index 000000000000..070f999e9bbc --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteappversion/SyncDeleteAppVersionAppversionname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteAppVersion_Appversionname_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppVersionName; +import com.google.protobuf.Empty; + +public class SyncDeleteAppVersionAppversionname { + + public static void main(String[] args) throws Exception { + syncDeleteAppVersionAppversionname(); + } + + public static void syncDeleteAppVersionAppversionname() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + AppVersionName name = AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]"); + agentServiceClient.deleteAppVersion(name); + } + } +} +// [END ces_v1_generated_AgentService_DeleteAppVersion_Appversionname_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteappversion/SyncDeleteAppVersionString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteappversion/SyncDeleteAppVersionString.java new file mode 100644 index 000000000000..dc970aa7eb3b --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteappversion/SyncDeleteAppVersionString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteAppVersion_String_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppVersionName; +import com.google.protobuf.Empty; + +public class SyncDeleteAppVersionString { + + public static void main(String[] args) throws Exception { + syncDeleteAppVersionString(); + } + + public static void syncDeleteAppVersionString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String name = AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString(); + agentServiceClient.deleteAppVersion(name); + } + } +} +// [END ces_v1_generated_AgentService_DeleteAppVersion_String_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteconversation/AsyncDeleteConversation.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteconversation/AsyncDeleteConversation.java new file mode 100644 index 000000000000..8eacbb092861 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteconversation/AsyncDeleteConversation.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteConversation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.ConversationName; +import com.google.cloud.ces.v1.DeleteConversationRequest; +import com.google.protobuf.Empty; + +public class AsyncDeleteConversation { + + public static void main(String[] args) throws Exception { + asyncDeleteConversation(); + } + + public static void asyncDeleteConversation() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + DeleteConversationRequest request = + DeleteConversationRequest.newBuilder() + .setName( + ConversationName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CONVERSATION]") + .toString()) + .build(); + ApiFuture future = agentServiceClient.deleteConversationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END ces_v1_generated_AgentService_DeleteConversation_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteconversation/SyncDeleteConversation.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteconversation/SyncDeleteConversation.java new file mode 100644 index 000000000000..5991b9b10ff8 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteconversation/SyncDeleteConversation.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteConversation_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.ConversationName; +import com.google.cloud.ces.v1.DeleteConversationRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteConversation { + + public static void main(String[] args) throws Exception { + syncDeleteConversation(); + } + + public static void syncDeleteConversation() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + DeleteConversationRequest request = + DeleteConversationRequest.newBuilder() + .setName( + ConversationName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CONVERSATION]") + .toString()) + .build(); + agentServiceClient.deleteConversation(request); + } + } +} +// [END ces_v1_generated_AgentService_DeleteConversation_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteconversation/SyncDeleteConversationConversationname.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteconversation/SyncDeleteConversationConversationname.java new file mode 100644 index 000000000000..6dd726c58ea5 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteconversation/SyncDeleteConversationConversationname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteConversation_Conversationname_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.ConversationName; +import com.google.protobuf.Empty; + +public class SyncDeleteConversationConversationname { + + public static void main(String[] args) throws Exception { + syncDeleteConversationConversationname(); + } + + public static void syncDeleteConversationConversationname() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ConversationName name = + ConversationName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CONVERSATION]"); + agentServiceClient.deleteConversation(name); + } + } +} +// [END ces_v1_generated_AgentService_DeleteConversation_Conversationname_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteconversation/SyncDeleteConversationString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteconversation/SyncDeleteConversationString.java new file mode 100644 index 000000000000..4d6bf970f090 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteconversation/SyncDeleteConversationString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteConversation_String_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.ConversationName; +import com.google.protobuf.Empty; + +public class SyncDeleteConversationString { + + public static void main(String[] args) throws Exception { + syncDeleteConversationString(); + } + + public static void syncDeleteConversationString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String name = + ConversationName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CONVERSATION]").toString(); + agentServiceClient.deleteConversation(name); + } + } +} +// [END ces_v1_generated_AgentService_DeleteConversation_String_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletedeployment/AsyncDeleteDeployment.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletedeployment/AsyncDeleteDeployment.java new file mode 100644 index 000000000000..04eb7d519ba6 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletedeployment/AsyncDeleteDeployment.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteDeployment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.DeleteDeploymentRequest; +import com.google.cloud.ces.v1.DeploymentName; +import com.google.protobuf.Empty; + +public class AsyncDeleteDeployment { + + public static void main(String[] args) throws Exception { + asyncDeleteDeployment(); + } + + public static void asyncDeleteDeployment() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + DeleteDeploymentRequest request = + DeleteDeploymentRequest.newBuilder() + .setName( + DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) + .setEtag("etag3123477") + .build(); + ApiFuture future = agentServiceClient.deleteDeploymentCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END ces_v1_generated_AgentService_DeleteDeployment_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletedeployment/SyncDeleteDeployment.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletedeployment/SyncDeleteDeployment.java new file mode 100644 index 000000000000..b533922617a4 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletedeployment/SyncDeleteDeployment.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteDeployment_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.DeleteDeploymentRequest; +import com.google.cloud.ces.v1.DeploymentName; +import com.google.protobuf.Empty; + +public class SyncDeleteDeployment { + + public static void main(String[] args) throws Exception { + syncDeleteDeployment(); + } + + public static void syncDeleteDeployment() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + DeleteDeploymentRequest request = + DeleteDeploymentRequest.newBuilder() + .setName( + DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) + .setEtag("etag3123477") + .build(); + agentServiceClient.deleteDeployment(request); + } + } +} +// [END ces_v1_generated_AgentService_DeleteDeployment_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletedeployment/SyncDeleteDeploymentDeploymentname.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletedeployment/SyncDeleteDeploymentDeploymentname.java new file mode 100644 index 000000000000..e9f50d9b5821 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletedeployment/SyncDeleteDeploymentDeploymentname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteDeployment_Deploymentname_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.DeploymentName; +import com.google.protobuf.Empty; + +public class SyncDeleteDeploymentDeploymentname { + + public static void main(String[] args) throws Exception { + syncDeleteDeploymentDeploymentname(); + } + + public static void syncDeleteDeploymentDeploymentname() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + DeploymentName name = DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]"); + agentServiceClient.deleteDeployment(name); + } + } +} +// [END ces_v1_generated_AgentService_DeleteDeployment_Deploymentname_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletedeployment/SyncDeleteDeploymentString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletedeployment/SyncDeleteDeploymentString.java new file mode 100644 index 000000000000..b7ce5797f67b --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletedeployment/SyncDeleteDeploymentString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteDeployment_String_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.DeploymentName; +import com.google.protobuf.Empty; + +public class SyncDeleteDeploymentString { + + public static void main(String[] args) throws Exception { + syncDeleteDeploymentString(); + } + + public static void syncDeleteDeploymentString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString(); + agentServiceClient.deleteDeployment(name); + } + } +} +// [END ces_v1_generated_AgentService_DeleteDeployment_String_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteexample/AsyncDeleteExample.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteexample/AsyncDeleteExample.java new file mode 100644 index 000000000000..b855f5ae514f --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteexample/AsyncDeleteExample.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteExample_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.DeleteExampleRequest; +import com.google.cloud.ces.v1.ExampleName; +import com.google.protobuf.Empty; + +public class AsyncDeleteExample { + + public static void main(String[] args) throws Exception { + asyncDeleteExample(); + } + + public static void asyncDeleteExample() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + DeleteExampleRequest request = + DeleteExampleRequest.newBuilder() + .setName(ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]").toString()) + .setEtag("etag3123477") + .build(); + ApiFuture future = agentServiceClient.deleteExampleCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END ces_v1_generated_AgentService_DeleteExample_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteexample/SyncDeleteExample.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteexample/SyncDeleteExample.java new file mode 100644 index 000000000000..8f5f216ed4e0 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteexample/SyncDeleteExample.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteExample_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.DeleteExampleRequest; +import com.google.cloud.ces.v1.ExampleName; +import com.google.protobuf.Empty; + +public class SyncDeleteExample { + + public static void main(String[] args) throws Exception { + syncDeleteExample(); + } + + public static void syncDeleteExample() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + DeleteExampleRequest request = + DeleteExampleRequest.newBuilder() + .setName(ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]").toString()) + .setEtag("etag3123477") + .build(); + agentServiceClient.deleteExample(request); + } + } +} +// [END ces_v1_generated_AgentService_DeleteExample_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteexample/SyncDeleteExampleExamplename.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteexample/SyncDeleteExampleExamplename.java new file mode 100644 index 000000000000..3e492493d9bb --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteexample/SyncDeleteExampleExamplename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteExample_Examplename_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.ExampleName; +import com.google.protobuf.Empty; + +public class SyncDeleteExampleExamplename { + + public static void main(String[] args) throws Exception { + syncDeleteExampleExamplename(); + } + + public static void syncDeleteExampleExamplename() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ExampleName name = ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]"); + agentServiceClient.deleteExample(name); + } + } +} +// [END ces_v1_generated_AgentService_DeleteExample_Examplename_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteexample/SyncDeleteExampleString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteexample/SyncDeleteExampleString.java new file mode 100644 index 000000000000..158048fd2295 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteexample/SyncDeleteExampleString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteExample_String_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.ExampleName; +import com.google.protobuf.Empty; + +public class SyncDeleteExampleString { + + public static void main(String[] args) throws Exception { + syncDeleteExampleString(); + } + + public static void syncDeleteExampleString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String name = ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]").toString(); + agentServiceClient.deleteExample(name); + } + } +} +// [END ces_v1_generated_AgentService_DeleteExample_String_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteguardrail/AsyncDeleteGuardrail.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteguardrail/AsyncDeleteGuardrail.java new file mode 100644 index 000000000000..c545c9666934 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteguardrail/AsyncDeleteGuardrail.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteGuardrail_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.DeleteGuardrailRequest; +import com.google.cloud.ces.v1.GuardrailName; +import com.google.protobuf.Empty; + +public class AsyncDeleteGuardrail { + + public static void main(String[] args) throws Exception { + asyncDeleteGuardrail(); + } + + public static void asyncDeleteGuardrail() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + DeleteGuardrailRequest request = + DeleteGuardrailRequest.newBuilder() + .setName( + GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]").toString()) + .setForce(true) + .setEtag("etag3123477") + .build(); + ApiFuture future = agentServiceClient.deleteGuardrailCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END ces_v1_generated_AgentService_DeleteGuardrail_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteguardrail/SyncDeleteGuardrail.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteguardrail/SyncDeleteGuardrail.java new file mode 100644 index 000000000000..89a6535b82e6 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteguardrail/SyncDeleteGuardrail.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteGuardrail_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.DeleteGuardrailRequest; +import com.google.cloud.ces.v1.GuardrailName; +import com.google.protobuf.Empty; + +public class SyncDeleteGuardrail { + + public static void main(String[] args) throws Exception { + syncDeleteGuardrail(); + } + + public static void syncDeleteGuardrail() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + DeleteGuardrailRequest request = + DeleteGuardrailRequest.newBuilder() + .setName( + GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]").toString()) + .setForce(true) + .setEtag("etag3123477") + .build(); + agentServiceClient.deleteGuardrail(request); + } + } +} +// [END ces_v1_generated_AgentService_DeleteGuardrail_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteguardrail/SyncDeleteGuardrailGuardrailname.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteguardrail/SyncDeleteGuardrailGuardrailname.java new file mode 100644 index 000000000000..8531a78e964a --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteguardrail/SyncDeleteGuardrailGuardrailname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteGuardrail_Guardrailname_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.GuardrailName; +import com.google.protobuf.Empty; + +public class SyncDeleteGuardrailGuardrailname { + + public static void main(String[] args) throws Exception { + syncDeleteGuardrailGuardrailname(); + } + + public static void syncDeleteGuardrailGuardrailname() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + GuardrailName name = GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]"); + agentServiceClient.deleteGuardrail(name); + } + } +} +// [END ces_v1_generated_AgentService_DeleteGuardrail_Guardrailname_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteguardrail/SyncDeleteGuardrailString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteguardrail/SyncDeleteGuardrailString.java new file mode 100644 index 000000000000..725cab82928b --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deleteguardrail/SyncDeleteGuardrailString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteGuardrail_String_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.GuardrailName; +import com.google.protobuf.Empty; + +public class SyncDeleteGuardrailString { + + public static void main(String[] args) throws Exception { + syncDeleteGuardrailString(); + } + + public static void syncDeleteGuardrailString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String name = GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]").toString(); + agentServiceClient.deleteGuardrail(name); + } + } +} +// [END ces_v1_generated_AgentService_DeleteGuardrail_String_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletetool/AsyncDeleteTool.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletetool/AsyncDeleteTool.java new file mode 100644 index 000000000000..955801b439be --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletetool/AsyncDeleteTool.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteTool_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.DeleteToolRequest; +import com.google.cloud.ces.v1.ToolName; +import com.google.protobuf.Empty; + +public class AsyncDeleteTool { + + public static void main(String[] args) throws Exception { + asyncDeleteTool(); + } + + public static void asyncDeleteTool() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + DeleteToolRequest request = + DeleteToolRequest.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) + .setForce(true) + .setEtag("etag3123477") + .build(); + ApiFuture future = agentServiceClient.deleteToolCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END ces_v1_generated_AgentService_DeleteTool_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletetool/SyncDeleteTool.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletetool/SyncDeleteTool.java new file mode 100644 index 000000000000..8659f5703070 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletetool/SyncDeleteTool.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteTool_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.DeleteToolRequest; +import com.google.cloud.ces.v1.ToolName; +import com.google.protobuf.Empty; + +public class SyncDeleteTool { + + public static void main(String[] args) throws Exception { + syncDeleteTool(); + } + + public static void syncDeleteTool() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + DeleteToolRequest request = + DeleteToolRequest.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) + .setForce(true) + .setEtag("etag3123477") + .build(); + agentServiceClient.deleteTool(request); + } + } +} +// [END ces_v1_generated_AgentService_DeleteTool_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletetool/SyncDeleteToolString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletetool/SyncDeleteToolString.java new file mode 100644 index 000000000000..78268de0f697 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletetool/SyncDeleteToolString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteTool_String_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.ToolName; +import com.google.protobuf.Empty; + +public class SyncDeleteToolString { + + public static void main(String[] args) throws Exception { + syncDeleteToolString(); + } + + public static void syncDeleteToolString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String name = ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString(); + agentServiceClient.deleteTool(name); + } + } +} +// [END ces_v1_generated_AgentService_DeleteTool_String_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletetool/SyncDeleteToolToolname.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletetool/SyncDeleteToolToolname.java new file mode 100644 index 000000000000..53d6eca49f38 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletetool/SyncDeleteToolToolname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteTool_Toolname_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.ToolName; +import com.google.protobuf.Empty; + +public class SyncDeleteToolToolname { + + public static void main(String[] args) throws Exception { + syncDeleteToolToolname(); + } + + public static void syncDeleteToolToolname() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ToolName name = ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]"); + agentServiceClient.deleteTool(name); + } + } +} +// [END ces_v1_generated_AgentService_DeleteTool_Toolname_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletetoolset/AsyncDeleteToolset.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletetoolset/AsyncDeleteToolset.java new file mode 100644 index 000000000000..ab6392a76fec --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletetoolset/AsyncDeleteToolset.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteToolset_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.DeleteToolsetRequest; +import com.google.cloud.ces.v1.ToolsetName; +import com.google.protobuf.Empty; + +public class AsyncDeleteToolset { + + public static void main(String[] args) throws Exception { + asyncDeleteToolset(); + } + + public static void asyncDeleteToolset() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + DeleteToolsetRequest request = + DeleteToolsetRequest.newBuilder() + .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) + .setForce(true) + .setEtag("etag3123477") + .build(); + ApiFuture future = agentServiceClient.deleteToolsetCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END ces_v1_generated_AgentService_DeleteToolset_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletetoolset/SyncDeleteToolset.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletetoolset/SyncDeleteToolset.java new file mode 100644 index 000000000000..cefac5a94a8d --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletetoolset/SyncDeleteToolset.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteToolset_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.DeleteToolsetRequest; +import com.google.cloud.ces.v1.ToolsetName; +import com.google.protobuf.Empty; + +public class SyncDeleteToolset { + + public static void main(String[] args) throws Exception { + syncDeleteToolset(); + } + + public static void syncDeleteToolset() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + DeleteToolsetRequest request = + DeleteToolsetRequest.newBuilder() + .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) + .setForce(true) + .setEtag("etag3123477") + .build(); + agentServiceClient.deleteToolset(request); + } + } +} +// [END ces_v1_generated_AgentService_DeleteToolset_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletetoolset/SyncDeleteToolsetString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletetoolset/SyncDeleteToolsetString.java new file mode 100644 index 000000000000..a6a119fab101 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletetoolset/SyncDeleteToolsetString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteToolset_String_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.ToolsetName; +import com.google.protobuf.Empty; + +public class SyncDeleteToolsetString { + + public static void main(String[] args) throws Exception { + syncDeleteToolsetString(); + } + + public static void syncDeleteToolsetString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String name = ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString(); + agentServiceClient.deleteToolset(name); + } + } +} +// [END ces_v1_generated_AgentService_DeleteToolset_String_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletetoolset/SyncDeleteToolsetToolsetname.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletetoolset/SyncDeleteToolsetToolsetname.java new file mode 100644 index 000000000000..ef18ca23dc3f --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/deletetoolset/SyncDeleteToolsetToolsetname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_DeleteToolset_Toolsetname_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.ToolsetName; +import com.google.protobuf.Empty; + +public class SyncDeleteToolsetToolsetname { + + public static void main(String[] args) throws Exception { + syncDeleteToolsetToolsetname(); + } + + public static void syncDeleteToolsetToolsetname() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ToolsetName name = ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]"); + agentServiceClient.deleteToolset(name); + } + } +} +// [END ces_v1_generated_AgentService_DeleteToolset_Toolsetname_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/AsyncExportApp.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/AsyncExportApp.java new file mode 100644 index 000000000000..e85a10be687d --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/AsyncExportApp.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ExportApp_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.ExportAppRequest; +import com.google.longrunning.Operation; + +public class AsyncExportApp { + + public static void main(String[] args) throws Exception { + asyncExportApp(); + } + + public static void asyncExportApp() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ExportAppRequest request = + ExportAppRequest.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setGcsUri("gcsUri-1251224875") + .build(); + ApiFuture future = agentServiceClient.exportAppCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_ExportApp_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/AsyncExportAppLRO.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/AsyncExportAppLRO.java new file mode 100644 index 000000000000..88374e0a923f --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/AsyncExportAppLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ExportApp_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.ExportAppRequest; +import com.google.cloud.ces.v1.ExportAppResponse; +import com.google.cloud.ces.v1.OperationMetadata; + +public class AsyncExportAppLRO { + + public static void main(String[] args) throws Exception { + asyncExportAppLRO(); + } + + public static void asyncExportAppLRO() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ExportAppRequest request = + ExportAppRequest.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setGcsUri("gcsUri-1251224875") + .build(); + OperationFuture future = + agentServiceClient.exportAppOperationCallable().futureCall(request); + // Do something. + ExportAppResponse response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_ExportApp_LRO_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/SyncExportApp.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/SyncExportApp.java new file mode 100644 index 000000000000..76c3f9db4e1b --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/SyncExportApp.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ExportApp_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.ExportAppRequest; +import com.google.cloud.ces.v1.ExportAppResponse; + +public class SyncExportApp { + + public static void main(String[] args) throws Exception { + syncExportApp(); + } + + public static void syncExportApp() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ExportAppRequest request = + ExportAppRequest.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setGcsUri("gcsUri-1251224875") + .build(); + ExportAppResponse response = agentServiceClient.exportAppAsync(request).get(); + } + } +} +// [END ces_v1_generated_AgentService_ExportApp_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/SyncExportAppAppname.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/SyncExportAppAppname.java new file mode 100644 index 000000000000..fb518dacf35c --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/SyncExportAppAppname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ExportApp_Appname_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.ExportAppResponse; + +public class SyncExportAppAppname { + + public static void main(String[] args) throws Exception { + syncExportAppAppname(); + } + + public static void syncExportAppAppname() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + AppName name = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + ExportAppResponse response = agentServiceClient.exportAppAsync(name).get(); + } + } +} +// [END ces_v1_generated_AgentService_ExportApp_Appname_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/SyncExportAppString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/SyncExportAppString.java new file mode 100644 index 000000000000..c452b72602ff --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/exportapp/SyncExportAppString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ExportApp_String_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.ExportAppResponse; + +public class SyncExportAppString { + + public static void main(String[] args) throws Exception { + syncExportAppString(); + } + + public static void syncExportAppString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String name = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString(); + ExportAppResponse response = agentServiceClient.exportAppAsync(name).get(); + } + } +} +// [END ces_v1_generated_AgentService_ExportApp_String_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getagent/AsyncGetAgent.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getagent/AsyncGetAgent.java new file mode 100644 index 000000000000..18c03e5d89bc --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getagent/AsyncGetAgent.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetAgent_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.Agent; +import com.google.cloud.ces.v1.AgentName; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.GetAgentRequest; + +public class AsyncGetAgent { + + public static void main(String[] args) throws Exception { + asyncGetAgent(); + } + + public static void asyncGetAgent() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + GetAgentRequest request = + GetAgentRequest.newBuilder() + .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .build(); + ApiFuture future = agentServiceClient.getAgentCallable().futureCall(request); + // Do something. + Agent response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_GetAgent_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getagent/SyncGetAgent.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getagent/SyncGetAgent.java new file mode 100644 index 000000000000..a896381776df --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getagent/SyncGetAgent.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetAgent_sync] +import com.google.cloud.ces.v1.Agent; +import com.google.cloud.ces.v1.AgentName; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.GetAgentRequest; + +public class SyncGetAgent { + + public static void main(String[] args) throws Exception { + syncGetAgent(); + } + + public static void syncGetAgent() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + GetAgentRequest request = + GetAgentRequest.newBuilder() + .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString()) + .build(); + Agent response = agentServiceClient.getAgent(request); + } + } +} +// [END ces_v1_generated_AgentService_GetAgent_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getagent/SyncGetAgentAgentname.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getagent/SyncGetAgentAgentname.java new file mode 100644 index 000000000000..d9ca896e0aa0 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getagent/SyncGetAgentAgentname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetAgent_Agentname_sync] +import com.google.cloud.ces.v1.Agent; +import com.google.cloud.ces.v1.AgentName; +import com.google.cloud.ces.v1.AgentServiceClient; + +public class SyncGetAgentAgentname { + + public static void main(String[] args) throws Exception { + syncGetAgentAgentname(); + } + + public static void syncGetAgentAgentname() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]"); + Agent response = agentServiceClient.getAgent(name); + } + } +} +// [END ces_v1_generated_AgentService_GetAgent_Agentname_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getagent/SyncGetAgentString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getagent/SyncGetAgentString.java new file mode 100644 index 000000000000..8c7217cfed7a --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getagent/SyncGetAgentString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetAgent_String_sync] +import com.google.cloud.ces.v1.Agent; +import com.google.cloud.ces.v1.AgentName; +import com.google.cloud.ces.v1.AgentServiceClient; + +public class SyncGetAgentString { + + public static void main(String[] args) throws Exception { + syncGetAgentString(); + } + + public static void syncGetAgentString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String name = AgentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[AGENT]").toString(); + Agent response = agentServiceClient.getAgent(name); + } + } +} +// [END ces_v1_generated_AgentService_GetAgent_String_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getapp/AsyncGetApp.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getapp/AsyncGetApp.java new file mode 100644 index 000000000000..01b49dad51aa --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getapp/AsyncGetApp.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetApp_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.App; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.GetAppRequest; + +public class AsyncGetApp { + + public static void main(String[] args) throws Exception { + asyncGetApp(); + } + + public static void asyncGetApp() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + GetAppRequest request = + GetAppRequest.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .build(); + ApiFuture future = agentServiceClient.getAppCallable().futureCall(request); + // Do something. + App response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_GetApp_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getapp/SyncGetApp.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getapp/SyncGetApp.java new file mode 100644 index 000000000000..a39ac9b6899e --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getapp/SyncGetApp.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetApp_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.App; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.GetAppRequest; + +public class SyncGetApp { + + public static void main(String[] args) throws Exception { + syncGetApp(); + } + + public static void syncGetApp() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + GetAppRequest request = + GetAppRequest.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .build(); + App response = agentServiceClient.getApp(request); + } + } +} +// [END ces_v1_generated_AgentService_GetApp_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getapp/SyncGetAppAppname.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getapp/SyncGetAppAppname.java new file mode 100644 index 000000000000..9606543a3d1e --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getapp/SyncGetAppAppname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetApp_Appname_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.App; +import com.google.cloud.ces.v1.AppName; + +public class SyncGetAppAppname { + + public static void main(String[] args) throws Exception { + syncGetAppAppname(); + } + + public static void syncGetAppAppname() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + AppName name = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + App response = agentServiceClient.getApp(name); + } + } +} +// [END ces_v1_generated_AgentService_GetApp_Appname_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getapp/SyncGetAppString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getapp/SyncGetAppString.java new file mode 100644 index 000000000000..c33c1aac7b88 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getapp/SyncGetAppString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetApp_String_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.App; +import com.google.cloud.ces.v1.AppName; + +public class SyncGetAppString { + + public static void main(String[] args) throws Exception { + syncGetAppString(); + } + + public static void syncGetAppString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String name = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString(); + App response = agentServiceClient.getApp(name); + } + } +} +// [END ces_v1_generated_AgentService_GetApp_String_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getappversion/AsyncGetAppVersion.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getappversion/AsyncGetAppVersion.java new file mode 100644 index 000000000000..8a9de8985dcd --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getappversion/AsyncGetAppVersion.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetAppVersion_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppVersion; +import com.google.cloud.ces.v1.AppVersionName; +import com.google.cloud.ces.v1.GetAppVersionRequest; + +public class AsyncGetAppVersion { + + public static void main(String[] args) throws Exception { + asyncGetAppVersion(); + } + + public static void asyncGetAppVersion() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + GetAppVersionRequest request = + GetAppVersionRequest.newBuilder() + .setName( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .build(); + ApiFuture future = agentServiceClient.getAppVersionCallable().futureCall(request); + // Do something. + AppVersion response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_GetAppVersion_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getappversion/SyncGetAppVersion.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getappversion/SyncGetAppVersion.java new file mode 100644 index 000000000000..0ca128265ecc --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getappversion/SyncGetAppVersion.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetAppVersion_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppVersion; +import com.google.cloud.ces.v1.AppVersionName; +import com.google.cloud.ces.v1.GetAppVersionRequest; + +public class SyncGetAppVersion { + + public static void main(String[] args) throws Exception { + syncGetAppVersion(); + } + + public static void syncGetAppVersion() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + GetAppVersionRequest request = + GetAppVersionRequest.newBuilder() + .setName( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .build(); + AppVersion response = agentServiceClient.getAppVersion(request); + } + } +} +// [END ces_v1_generated_AgentService_GetAppVersion_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getappversion/SyncGetAppVersionAppversionname.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getappversion/SyncGetAppVersionAppversionname.java new file mode 100644 index 000000000000..1f835bc062d8 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getappversion/SyncGetAppVersionAppversionname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetAppVersion_Appversionname_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppVersion; +import com.google.cloud.ces.v1.AppVersionName; + +public class SyncGetAppVersionAppversionname { + + public static void main(String[] args) throws Exception { + syncGetAppVersionAppversionname(); + } + + public static void syncGetAppVersionAppversionname() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + AppVersionName name = AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]"); + AppVersion response = agentServiceClient.getAppVersion(name); + } + } +} +// [END ces_v1_generated_AgentService_GetAppVersion_Appversionname_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getappversion/SyncGetAppVersionString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getappversion/SyncGetAppVersionString.java new file mode 100644 index 000000000000..a3de49a9ae37 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getappversion/SyncGetAppVersionString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetAppVersion_String_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppVersion; +import com.google.cloud.ces.v1.AppVersionName; + +public class SyncGetAppVersionString { + + public static void main(String[] args) throws Exception { + syncGetAppVersionString(); + } + + public static void syncGetAppVersionString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String name = AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString(); + AppVersion response = agentServiceClient.getAppVersion(name); + } + } +} +// [END ces_v1_generated_AgentService_GetAppVersion_String_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getchangelog/AsyncGetChangelog.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getchangelog/AsyncGetChangelog.java new file mode 100644 index 000000000000..ba39cb8843a9 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getchangelog/AsyncGetChangelog.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetChangelog_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Changelog; +import com.google.cloud.ces.v1.ChangelogName; +import com.google.cloud.ces.v1.GetChangelogRequest; + +public class AsyncGetChangelog { + + public static void main(String[] args) throws Exception { + asyncGetChangelog(); + } + + public static void asyncGetChangelog() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + GetChangelogRequest request = + GetChangelogRequest.newBuilder() + .setName( + ChangelogName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CHANGELOG]").toString()) + .build(); + ApiFuture future = agentServiceClient.getChangelogCallable().futureCall(request); + // Do something. + Changelog response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_GetChangelog_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getchangelog/SyncGetChangelog.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getchangelog/SyncGetChangelog.java new file mode 100644 index 000000000000..95ed8f692008 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getchangelog/SyncGetChangelog.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetChangelog_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Changelog; +import com.google.cloud.ces.v1.ChangelogName; +import com.google.cloud.ces.v1.GetChangelogRequest; + +public class SyncGetChangelog { + + public static void main(String[] args) throws Exception { + syncGetChangelog(); + } + + public static void syncGetChangelog() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + GetChangelogRequest request = + GetChangelogRequest.newBuilder() + .setName( + ChangelogName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CHANGELOG]").toString()) + .build(); + Changelog response = agentServiceClient.getChangelog(request); + } + } +} +// [END ces_v1_generated_AgentService_GetChangelog_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getchangelog/SyncGetChangelogChangelogname.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getchangelog/SyncGetChangelogChangelogname.java new file mode 100644 index 000000000000..f52c50982864 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getchangelog/SyncGetChangelogChangelogname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetChangelog_Changelogname_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Changelog; +import com.google.cloud.ces.v1.ChangelogName; + +public class SyncGetChangelogChangelogname { + + public static void main(String[] args) throws Exception { + syncGetChangelogChangelogname(); + } + + public static void syncGetChangelogChangelogname() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ChangelogName name = ChangelogName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CHANGELOG]"); + Changelog response = agentServiceClient.getChangelog(name); + } + } +} +// [END ces_v1_generated_AgentService_GetChangelog_Changelogname_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getchangelog/SyncGetChangelogString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getchangelog/SyncGetChangelogString.java new file mode 100644 index 000000000000..85c1b362ca89 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getchangelog/SyncGetChangelogString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetChangelog_String_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Changelog; +import com.google.cloud.ces.v1.ChangelogName; + +public class SyncGetChangelogString { + + public static void main(String[] args) throws Exception { + syncGetChangelogString(); + } + + public static void syncGetChangelogString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String name = ChangelogName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CHANGELOG]").toString(); + Changelog response = agentServiceClient.getChangelog(name); + } + } +} +// [END ces_v1_generated_AgentService_GetChangelog_String_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getconversation/AsyncGetConversation.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getconversation/AsyncGetConversation.java new file mode 100644 index 000000000000..117cce88de16 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getconversation/AsyncGetConversation.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetConversation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Conversation; +import com.google.cloud.ces.v1.ConversationName; +import com.google.cloud.ces.v1.GetConversationRequest; + +public class AsyncGetConversation { + + public static void main(String[] args) throws Exception { + asyncGetConversation(); + } + + public static void asyncGetConversation() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + GetConversationRequest request = + GetConversationRequest.newBuilder() + .setName( + ConversationName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CONVERSATION]") + .toString()) + .build(); + ApiFuture future = + agentServiceClient.getConversationCallable().futureCall(request); + // Do something. + Conversation response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_GetConversation_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getconversation/SyncGetConversation.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getconversation/SyncGetConversation.java new file mode 100644 index 000000000000..aa643b97778a --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getconversation/SyncGetConversation.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetConversation_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Conversation; +import com.google.cloud.ces.v1.ConversationName; +import com.google.cloud.ces.v1.GetConversationRequest; + +public class SyncGetConversation { + + public static void main(String[] args) throws Exception { + syncGetConversation(); + } + + public static void syncGetConversation() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + GetConversationRequest request = + GetConversationRequest.newBuilder() + .setName( + ConversationName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CONVERSATION]") + .toString()) + .build(); + Conversation response = agentServiceClient.getConversation(request); + } + } +} +// [END ces_v1_generated_AgentService_GetConversation_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getconversation/SyncGetConversationConversationname.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getconversation/SyncGetConversationConversationname.java new file mode 100644 index 000000000000..1a5cb1d622e2 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getconversation/SyncGetConversationConversationname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetConversation_Conversationname_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Conversation; +import com.google.cloud.ces.v1.ConversationName; + +public class SyncGetConversationConversationname { + + public static void main(String[] args) throws Exception { + syncGetConversationConversationname(); + } + + public static void syncGetConversationConversationname() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ConversationName name = + ConversationName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CONVERSATION]"); + Conversation response = agentServiceClient.getConversation(name); + } + } +} +// [END ces_v1_generated_AgentService_GetConversation_Conversationname_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getconversation/SyncGetConversationString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getconversation/SyncGetConversationString.java new file mode 100644 index 000000000000..303e10b87206 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getconversation/SyncGetConversationString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetConversation_String_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Conversation; +import com.google.cloud.ces.v1.ConversationName; + +public class SyncGetConversationString { + + public static void main(String[] args) throws Exception { + syncGetConversationString(); + } + + public static void syncGetConversationString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String name = + ConversationName.of("[PROJECT]", "[LOCATION]", "[APP]", "[CONVERSATION]").toString(); + Conversation response = agentServiceClient.getConversation(name); + } + } +} +// [END ces_v1_generated_AgentService_GetConversation_String_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getdeployment/AsyncGetDeployment.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getdeployment/AsyncGetDeployment.java new file mode 100644 index 000000000000..052a0a3f792f --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getdeployment/AsyncGetDeployment.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetDeployment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Deployment; +import com.google.cloud.ces.v1.DeploymentName; +import com.google.cloud.ces.v1.GetDeploymentRequest; + +public class AsyncGetDeployment { + + public static void main(String[] args) throws Exception { + asyncGetDeployment(); + } + + public static void asyncGetDeployment() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + GetDeploymentRequest request = + GetDeploymentRequest.newBuilder() + .setName( + DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) + .build(); + ApiFuture future = agentServiceClient.getDeploymentCallable().futureCall(request); + // Do something. + Deployment response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_GetDeployment_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getdeployment/SyncGetDeployment.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getdeployment/SyncGetDeployment.java new file mode 100644 index 000000000000..8710bc936a22 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getdeployment/SyncGetDeployment.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetDeployment_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Deployment; +import com.google.cloud.ces.v1.DeploymentName; +import com.google.cloud.ces.v1.GetDeploymentRequest; + +public class SyncGetDeployment { + + public static void main(String[] args) throws Exception { + syncGetDeployment(); + } + + public static void syncGetDeployment() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + GetDeploymentRequest request = + GetDeploymentRequest.newBuilder() + .setName( + DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) + .build(); + Deployment response = agentServiceClient.getDeployment(request); + } + } +} +// [END ces_v1_generated_AgentService_GetDeployment_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getdeployment/SyncGetDeploymentDeploymentname.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getdeployment/SyncGetDeploymentDeploymentname.java new file mode 100644 index 000000000000..c540e61f1cfc --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getdeployment/SyncGetDeploymentDeploymentname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetDeployment_Deploymentname_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Deployment; +import com.google.cloud.ces.v1.DeploymentName; + +public class SyncGetDeploymentDeploymentname { + + public static void main(String[] args) throws Exception { + syncGetDeploymentDeploymentname(); + } + + public static void syncGetDeploymentDeploymentname() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + DeploymentName name = DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]"); + Deployment response = agentServiceClient.getDeployment(name); + } + } +} +// [END ces_v1_generated_AgentService_GetDeployment_Deploymentname_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getdeployment/SyncGetDeploymentString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getdeployment/SyncGetDeploymentString.java new file mode 100644 index 000000000000..4b4db00a9749 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getdeployment/SyncGetDeploymentString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetDeployment_String_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Deployment; +import com.google.cloud.ces.v1.DeploymentName; + +public class SyncGetDeploymentString { + + public static void main(String[] args) throws Exception { + syncGetDeploymentString(); + } + + public static void syncGetDeploymentString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String name = + DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString(); + Deployment response = agentServiceClient.getDeployment(name); + } + } +} +// [END ces_v1_generated_AgentService_GetDeployment_String_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getexample/AsyncGetExample.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getexample/AsyncGetExample.java new file mode 100644 index 000000000000..1c23bb88b215 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getexample/AsyncGetExample.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetExample_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Example; +import com.google.cloud.ces.v1.ExampleName; +import com.google.cloud.ces.v1.GetExampleRequest; + +public class AsyncGetExample { + + public static void main(String[] args) throws Exception { + asyncGetExample(); + } + + public static void asyncGetExample() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + GetExampleRequest request = + GetExampleRequest.newBuilder() + .setName(ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]").toString()) + .build(); + ApiFuture future = agentServiceClient.getExampleCallable().futureCall(request); + // Do something. + Example response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_GetExample_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getexample/SyncGetExample.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getexample/SyncGetExample.java new file mode 100644 index 000000000000..3a951a8b4195 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getexample/SyncGetExample.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetExample_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Example; +import com.google.cloud.ces.v1.ExampleName; +import com.google.cloud.ces.v1.GetExampleRequest; + +public class SyncGetExample { + + public static void main(String[] args) throws Exception { + syncGetExample(); + } + + public static void syncGetExample() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + GetExampleRequest request = + GetExampleRequest.newBuilder() + .setName(ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]").toString()) + .build(); + Example response = agentServiceClient.getExample(request); + } + } +} +// [END ces_v1_generated_AgentService_GetExample_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getexample/SyncGetExampleExamplename.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getexample/SyncGetExampleExamplename.java new file mode 100644 index 000000000000..f8028a031cc1 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getexample/SyncGetExampleExamplename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetExample_Examplename_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Example; +import com.google.cloud.ces.v1.ExampleName; + +public class SyncGetExampleExamplename { + + public static void main(String[] args) throws Exception { + syncGetExampleExamplename(); + } + + public static void syncGetExampleExamplename() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ExampleName name = ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]"); + Example response = agentServiceClient.getExample(name); + } + } +} +// [END ces_v1_generated_AgentService_GetExample_Examplename_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getexample/SyncGetExampleString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getexample/SyncGetExampleString.java new file mode 100644 index 000000000000..4f9ea17d10e1 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getexample/SyncGetExampleString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetExample_String_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Example; +import com.google.cloud.ces.v1.ExampleName; + +public class SyncGetExampleString { + + public static void main(String[] args) throws Exception { + syncGetExampleString(); + } + + public static void syncGetExampleString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String name = ExampleName.of("[PROJECT]", "[LOCATION]", "[APP]", "[EXAMPLE]").toString(); + Example response = agentServiceClient.getExample(name); + } + } +} +// [END ces_v1_generated_AgentService_GetExample_String_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getguardrail/AsyncGetGuardrail.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getguardrail/AsyncGetGuardrail.java new file mode 100644 index 000000000000..59ed048ff6a9 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getguardrail/AsyncGetGuardrail.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetGuardrail_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.GetGuardrailRequest; +import com.google.cloud.ces.v1.Guardrail; +import com.google.cloud.ces.v1.GuardrailName; + +public class AsyncGetGuardrail { + + public static void main(String[] args) throws Exception { + asyncGetGuardrail(); + } + + public static void asyncGetGuardrail() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + GetGuardrailRequest request = + GetGuardrailRequest.newBuilder() + .setName( + GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]").toString()) + .build(); + ApiFuture future = agentServiceClient.getGuardrailCallable().futureCall(request); + // Do something. + Guardrail response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_GetGuardrail_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getguardrail/SyncGetGuardrail.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getguardrail/SyncGetGuardrail.java new file mode 100644 index 000000000000..72bae94df508 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getguardrail/SyncGetGuardrail.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetGuardrail_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.GetGuardrailRequest; +import com.google.cloud.ces.v1.Guardrail; +import com.google.cloud.ces.v1.GuardrailName; + +public class SyncGetGuardrail { + + public static void main(String[] args) throws Exception { + syncGetGuardrail(); + } + + public static void syncGetGuardrail() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + GetGuardrailRequest request = + GetGuardrailRequest.newBuilder() + .setName( + GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]").toString()) + .build(); + Guardrail response = agentServiceClient.getGuardrail(request); + } + } +} +// [END ces_v1_generated_AgentService_GetGuardrail_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getguardrail/SyncGetGuardrailGuardrailname.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getguardrail/SyncGetGuardrailGuardrailname.java new file mode 100644 index 000000000000..9af1b9e7ea54 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getguardrail/SyncGetGuardrailGuardrailname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetGuardrail_Guardrailname_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Guardrail; +import com.google.cloud.ces.v1.GuardrailName; + +public class SyncGetGuardrailGuardrailname { + + public static void main(String[] args) throws Exception { + syncGetGuardrailGuardrailname(); + } + + public static void syncGetGuardrailGuardrailname() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + GuardrailName name = GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]"); + Guardrail response = agentServiceClient.getGuardrail(name); + } + } +} +// [END ces_v1_generated_AgentService_GetGuardrail_Guardrailname_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getguardrail/SyncGetGuardrailString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getguardrail/SyncGetGuardrailString.java new file mode 100644 index 000000000000..03265704a392 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getguardrail/SyncGetGuardrailString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetGuardrail_String_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Guardrail; +import com.google.cloud.ces.v1.GuardrailName; + +public class SyncGetGuardrailString { + + public static void main(String[] args) throws Exception { + syncGetGuardrailString(); + } + + public static void syncGetGuardrailString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String name = GuardrailName.of("[PROJECT]", "[LOCATION]", "[APP]", "[GUARDRAIL]").toString(); + Guardrail response = agentServiceClient.getGuardrail(name); + } + } +} +// [END ces_v1_generated_AgentService_GetGuardrail_String_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getlocation/AsyncGetLocation.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..52a0cd74a658 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getlocation/AsyncGetLocation.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = agentServiceClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_GetLocation_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getlocation/SyncGetLocation.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..0f92377fe196 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/getlocation/SyncGetLocation.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetLocation_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = agentServiceClient.getLocation(request); + } + } +} +// [END ces_v1_generated_AgentService_GetLocation_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/gettool/AsyncGetTool.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/gettool/AsyncGetTool.java new file mode 100644 index 000000000000..1ee7fc39b214 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/gettool/AsyncGetTool.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetTool_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.GetToolRequest; +import com.google.cloud.ces.v1.Tool; +import com.google.cloud.ces.v1.ToolName; + +public class AsyncGetTool { + + public static void main(String[] args) throws Exception { + asyncGetTool(); + } + + public static void asyncGetTool() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + GetToolRequest request = + GetToolRequest.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) + .build(); + ApiFuture future = agentServiceClient.getToolCallable().futureCall(request); + // Do something. + Tool response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_GetTool_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/gettool/SyncGetTool.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/gettool/SyncGetTool.java new file mode 100644 index 000000000000..17b6b63767bd --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/gettool/SyncGetTool.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetTool_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.GetToolRequest; +import com.google.cloud.ces.v1.Tool; +import com.google.cloud.ces.v1.ToolName; + +public class SyncGetTool { + + public static void main(String[] args) throws Exception { + syncGetTool(); + } + + public static void syncGetTool() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + GetToolRequest request = + GetToolRequest.newBuilder() + .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString()) + .build(); + Tool response = agentServiceClient.getTool(request); + } + } +} +// [END ces_v1_generated_AgentService_GetTool_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/gettool/SyncGetToolString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/gettool/SyncGetToolString.java new file mode 100644 index 000000000000..fabe090237b7 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/gettool/SyncGetToolString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetTool_String_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Tool; +import com.google.cloud.ces.v1.ToolName; + +public class SyncGetToolString { + + public static void main(String[] args) throws Exception { + syncGetToolString(); + } + + public static void syncGetToolString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String name = ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]").toString(); + Tool response = agentServiceClient.getTool(name); + } + } +} +// [END ces_v1_generated_AgentService_GetTool_String_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/gettool/SyncGetToolToolname.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/gettool/SyncGetToolToolname.java new file mode 100644 index 000000000000..9d1c8eb8258a --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/gettool/SyncGetToolToolname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetTool_Toolname_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Tool; +import com.google.cloud.ces.v1.ToolName; + +public class SyncGetToolToolname { + + public static void main(String[] args) throws Exception { + syncGetToolToolname(); + } + + public static void syncGetToolToolname() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ToolName name = ToolName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOL]"); + Tool response = agentServiceClient.getTool(name); + } + } +} +// [END ces_v1_generated_AgentService_GetTool_Toolname_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/gettoolset/AsyncGetToolset.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/gettoolset/AsyncGetToolset.java new file mode 100644 index 000000000000..c10cefa13443 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/gettoolset/AsyncGetToolset.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetToolset_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.GetToolsetRequest; +import com.google.cloud.ces.v1.Toolset; +import com.google.cloud.ces.v1.ToolsetName; + +public class AsyncGetToolset { + + public static void main(String[] args) throws Exception { + asyncGetToolset(); + } + + public static void asyncGetToolset() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + GetToolsetRequest request = + GetToolsetRequest.newBuilder() + .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) + .build(); + ApiFuture future = agentServiceClient.getToolsetCallable().futureCall(request); + // Do something. + Toolset response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_GetToolset_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/gettoolset/SyncGetToolset.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/gettoolset/SyncGetToolset.java new file mode 100644 index 000000000000..9b455f848dc1 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/gettoolset/SyncGetToolset.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetToolset_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.GetToolsetRequest; +import com.google.cloud.ces.v1.Toolset; +import com.google.cloud.ces.v1.ToolsetName; + +public class SyncGetToolset { + + public static void main(String[] args) throws Exception { + syncGetToolset(); + } + + public static void syncGetToolset() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + GetToolsetRequest request = + GetToolsetRequest.newBuilder() + .setName(ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) + .build(); + Toolset response = agentServiceClient.getToolset(request); + } + } +} +// [END ces_v1_generated_AgentService_GetToolset_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/gettoolset/SyncGetToolsetString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/gettoolset/SyncGetToolsetString.java new file mode 100644 index 000000000000..31e4b1f19d09 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/gettoolset/SyncGetToolsetString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetToolset_String_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Toolset; +import com.google.cloud.ces.v1.ToolsetName; + +public class SyncGetToolsetString { + + public static void main(String[] args) throws Exception { + syncGetToolsetString(); + } + + public static void syncGetToolsetString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String name = ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString(); + Toolset response = agentServiceClient.getToolset(name); + } + } +} +// [END ces_v1_generated_AgentService_GetToolset_String_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/gettoolset/SyncGetToolsetToolsetname.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/gettoolset/SyncGetToolsetToolsetname.java new file mode 100644 index 000000000000..b1f490c65f26 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/gettoolset/SyncGetToolsetToolsetname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_GetToolset_Toolsetname_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Toolset; +import com.google.cloud.ces.v1.ToolsetName; + +public class SyncGetToolsetToolsetname { + + public static void main(String[] args) throws Exception { + syncGetToolsetToolsetname(); + } + + public static void syncGetToolsetToolsetname() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ToolsetName name = ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]"); + Toolset response = agentServiceClient.getToolset(name); + } + } +} +// [END ces_v1_generated_AgentService_GetToolset_Toolsetname_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/importapp/AsyncImportApp.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/importapp/AsyncImportApp.java new file mode 100644 index 000000000000..ebd3f6d1a31a --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/importapp/AsyncImportApp.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ImportApp_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.ImportAppRequest; +import com.google.cloud.ces.v1.LocationName; +import com.google.longrunning.Operation; + +public class AsyncImportApp { + + public static void main(String[] args) throws Exception { + asyncImportApp(); + } + + public static void asyncImportApp() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ImportAppRequest request = + ImportAppRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setDisplayName("displayName1714148973") + .setAppId("appId93028124") + .setImportOptions(ImportAppRequest.ImportOptions.newBuilder().build()) + .setIgnoreAppLock(true) + .build(); + ApiFuture future = agentServiceClient.importAppCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_ImportApp_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/importapp/AsyncImportAppLRO.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/importapp/AsyncImportAppLRO.java new file mode 100644 index 000000000000..7c4d88971fde --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/importapp/AsyncImportAppLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ImportApp_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.ImportAppRequest; +import com.google.cloud.ces.v1.ImportAppResponse; +import com.google.cloud.ces.v1.LocationName; +import com.google.cloud.ces.v1.OperationMetadata; + +public class AsyncImportAppLRO { + + public static void main(String[] args) throws Exception { + asyncImportAppLRO(); + } + + public static void asyncImportAppLRO() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ImportAppRequest request = + ImportAppRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setDisplayName("displayName1714148973") + .setAppId("appId93028124") + .setImportOptions(ImportAppRequest.ImportOptions.newBuilder().build()) + .setIgnoreAppLock(true) + .build(); + OperationFuture future = + agentServiceClient.importAppOperationCallable().futureCall(request); + // Do something. + ImportAppResponse response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_ImportApp_LRO_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/importapp/SyncImportApp.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/importapp/SyncImportApp.java new file mode 100644 index 000000000000..6285ecf0f481 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/importapp/SyncImportApp.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ImportApp_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.ImportAppRequest; +import com.google.cloud.ces.v1.ImportAppResponse; +import com.google.cloud.ces.v1.LocationName; + +public class SyncImportApp { + + public static void main(String[] args) throws Exception { + syncImportApp(); + } + + public static void syncImportApp() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ImportAppRequest request = + ImportAppRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setDisplayName("displayName1714148973") + .setAppId("appId93028124") + .setImportOptions(ImportAppRequest.ImportOptions.newBuilder().build()) + .setIgnoreAppLock(true) + .build(); + ImportAppResponse response = agentServiceClient.importAppAsync(request).get(); + } + } +} +// [END ces_v1_generated_AgentService_ImportApp_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/importapp/SyncImportAppLocationnameStringString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/importapp/SyncImportAppLocationnameStringString.java new file mode 100644 index 000000000000..093148e2b5aa --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/importapp/SyncImportAppLocationnameStringString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ImportApp_LocationnameStringString_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.ImportAppResponse; +import com.google.cloud.ces.v1.LocationName; + +public class SyncImportAppLocationnameStringString { + + public static void main(String[] args) throws Exception { + syncImportAppLocationnameStringString(); + } + + public static void syncImportAppLocationnameStringString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String displayName = "displayName1714148973"; + String appId = "appId93028124"; + ImportAppResponse response = + agentServiceClient.importAppAsync(parent, displayName, appId).get(); + } + } +} +// [END ces_v1_generated_AgentService_ImportApp_LocationnameStringString_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/importapp/SyncImportAppStringStringString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/importapp/SyncImportAppStringStringString.java new file mode 100644 index 000000000000..5b4358525855 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/importapp/SyncImportAppStringStringString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ImportApp_StringStringString_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.ImportAppResponse; +import com.google.cloud.ces.v1.LocationName; + +public class SyncImportAppStringStringString { + + public static void main(String[] args) throws Exception { + syncImportAppStringStringString(); + } + + public static void syncImportAppStringStringString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + String displayName = "displayName1714148973"; + String appId = "appId93028124"; + ImportAppResponse response = + agentServiceClient.importAppAsync(parent, displayName, appId).get(); + } + } +} +// [END ces_v1_generated_AgentService_ImportApp_StringStringString_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listagents/AsyncListAgents.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listagents/AsyncListAgents.java new file mode 100644 index 000000000000..7ecbdc2e8afb --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listagents/AsyncListAgents.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListAgents_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.Agent; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.ListAgentsRequest; + +public class AsyncListAgents { + + public static void main(String[] args) throws Exception { + asyncListAgents(); + } + + public static void asyncListAgents() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ListAgentsRequest request = + ListAgentsRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = agentServiceClient.listAgentsPagedCallable().futureCall(request); + // Do something. + for (Agent element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListAgents_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listagents/AsyncListAgentsPaged.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listagents/AsyncListAgentsPaged.java new file mode 100644 index 000000000000..52304871b766 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listagents/AsyncListAgentsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListAgents_Paged_async] +import com.google.cloud.ces.v1.Agent; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.ListAgentsRequest; +import com.google.cloud.ces.v1.ListAgentsResponse; +import com.google.common.base.Strings; + +public class AsyncListAgentsPaged { + + public static void main(String[] args) throws Exception { + asyncListAgentsPaged(); + } + + public static void asyncListAgentsPaged() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ListAgentsRequest request = + ListAgentsRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListAgentsResponse response = agentServiceClient.listAgentsCallable().call(request); + for (Agent element : response.getAgentsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END ces_v1_generated_AgentService_ListAgents_Paged_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listagents/SyncListAgents.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listagents/SyncListAgents.java new file mode 100644 index 000000000000..219872db56f4 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listagents/SyncListAgents.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListAgents_sync] +import com.google.cloud.ces.v1.Agent; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.ListAgentsRequest; + +public class SyncListAgents { + + public static void main(String[] args) throws Exception { + syncListAgents(); + } + + public static void syncListAgents() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ListAgentsRequest request = + ListAgentsRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Agent element : agentServiceClient.listAgents(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListAgents_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listagents/SyncListAgentsAppname.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listagents/SyncListAgentsAppname.java new file mode 100644 index 000000000000..4e712813bf20 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listagents/SyncListAgentsAppname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListAgents_Appname_sync] +import com.google.cloud.ces.v1.Agent; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; + +public class SyncListAgentsAppname { + + public static void main(String[] args) throws Exception { + syncListAgentsAppname(); + } + + public static void syncListAgentsAppname() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + for (Agent element : agentServiceClient.listAgents(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListAgents_Appname_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listagents/SyncListAgentsString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listagents/SyncListAgentsString.java new file mode 100644 index 000000000000..b5bf88188e06 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listagents/SyncListAgentsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListAgents_String_sync] +import com.google.cloud.ces.v1.Agent; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; + +public class SyncListAgentsString { + + public static void main(String[] args) throws Exception { + syncListAgentsString(); + } + + public static void syncListAgentsString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString(); + for (Agent element : agentServiceClient.listAgents(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListAgents_String_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listapps/AsyncListApps.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listapps/AsyncListApps.java new file mode 100644 index 000000000000..a7a91e787e4d --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listapps/AsyncListApps.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListApps_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.App; +import com.google.cloud.ces.v1.ListAppsRequest; +import com.google.cloud.ces.v1.LocationName; + +public class AsyncListApps { + + public static void main(String[] args) throws Exception { + asyncListApps(); + } + + public static void asyncListApps() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ListAppsRequest request = + ListAppsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = agentServiceClient.listAppsPagedCallable().futureCall(request); + // Do something. + for (App element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListApps_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listapps/AsyncListAppsPaged.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listapps/AsyncListAppsPaged.java new file mode 100644 index 000000000000..4448fa51e7ee --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listapps/AsyncListAppsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListApps_Paged_async] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.App; +import com.google.cloud.ces.v1.ListAppsRequest; +import com.google.cloud.ces.v1.ListAppsResponse; +import com.google.cloud.ces.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListAppsPaged { + + public static void main(String[] args) throws Exception { + asyncListAppsPaged(); + } + + public static void asyncListAppsPaged() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ListAppsRequest request = + ListAppsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListAppsResponse response = agentServiceClient.listAppsCallable().call(request); + for (App element : response.getAppsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END ces_v1_generated_AgentService_ListApps_Paged_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listapps/SyncListApps.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listapps/SyncListApps.java new file mode 100644 index 000000000000..a924edcedc55 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listapps/SyncListApps.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListApps_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.App; +import com.google.cloud.ces.v1.ListAppsRequest; +import com.google.cloud.ces.v1.LocationName; + +public class SyncListApps { + + public static void main(String[] args) throws Exception { + syncListApps(); + } + + public static void syncListApps() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ListAppsRequest request = + ListAppsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (App element : agentServiceClient.listApps(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListApps_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listapps/SyncListAppsLocationname.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listapps/SyncListAppsLocationname.java new file mode 100644 index 000000000000..bd329297d1fa --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listapps/SyncListAppsLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListApps_Locationname_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.App; +import com.google.cloud.ces.v1.LocationName; + +public class SyncListAppsLocationname { + + public static void main(String[] args) throws Exception { + syncListAppsLocationname(); + } + + public static void syncListAppsLocationname() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (App element : agentServiceClient.listApps(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListApps_Locationname_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listapps/SyncListAppsString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listapps/SyncListAppsString.java new file mode 100644 index 000000000000..72771024cea6 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listapps/SyncListAppsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListApps_String_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.App; +import com.google.cloud.ces.v1.LocationName; + +public class SyncListAppsString { + + public static void main(String[] args) throws Exception { + syncListAppsString(); + } + + public static void syncListAppsString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (App element : agentServiceClient.listApps(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListApps_String_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listappversions/AsyncListAppVersions.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listappversions/AsyncListAppVersions.java new file mode 100644 index 000000000000..5cf1832b27b7 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listappversions/AsyncListAppVersions.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListAppVersions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.AppVersion; +import com.google.cloud.ces.v1.ListAppVersionsRequest; + +public class AsyncListAppVersions { + + public static void main(String[] args) throws Exception { + asyncListAppVersions(); + } + + public static void asyncListAppVersions() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ListAppVersionsRequest request = + ListAppVersionsRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + agentServiceClient.listAppVersionsPagedCallable().futureCall(request); + // Do something. + for (AppVersion element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListAppVersions_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listappversions/AsyncListAppVersionsPaged.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listappversions/AsyncListAppVersionsPaged.java new file mode 100644 index 000000000000..5d2c38302ad1 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listappversions/AsyncListAppVersionsPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListAppVersions_Paged_async] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.AppVersion; +import com.google.cloud.ces.v1.ListAppVersionsRequest; +import com.google.cloud.ces.v1.ListAppVersionsResponse; +import com.google.common.base.Strings; + +public class AsyncListAppVersionsPaged { + + public static void main(String[] args) throws Exception { + asyncListAppVersionsPaged(); + } + + public static void asyncListAppVersionsPaged() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ListAppVersionsRequest request = + ListAppVersionsRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListAppVersionsResponse response = + agentServiceClient.listAppVersionsCallable().call(request); + for (AppVersion element : response.getAppVersionsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END ces_v1_generated_AgentService_ListAppVersions_Paged_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listappversions/SyncListAppVersions.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listappversions/SyncListAppVersions.java new file mode 100644 index 000000000000..ba46fb28ed34 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listappversions/SyncListAppVersions.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListAppVersions_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.AppVersion; +import com.google.cloud.ces.v1.ListAppVersionsRequest; + +public class SyncListAppVersions { + + public static void main(String[] args) throws Exception { + syncListAppVersions(); + } + + public static void syncListAppVersions() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ListAppVersionsRequest request = + ListAppVersionsRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (AppVersion element : agentServiceClient.listAppVersions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListAppVersions_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listappversions/SyncListAppVersionsAppname.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listappversions/SyncListAppVersionsAppname.java new file mode 100644 index 000000000000..32c224a188af --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listappversions/SyncListAppVersionsAppname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListAppVersions_Appname_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.AppVersion; + +public class SyncListAppVersionsAppname { + + public static void main(String[] args) throws Exception { + syncListAppVersionsAppname(); + } + + public static void syncListAppVersionsAppname() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + for (AppVersion element : agentServiceClient.listAppVersions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListAppVersions_Appname_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listappversions/SyncListAppVersionsString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listappversions/SyncListAppVersionsString.java new file mode 100644 index 000000000000..b9dcc6acc2cc --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listappversions/SyncListAppVersionsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListAppVersions_String_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.AppVersion; + +public class SyncListAppVersionsString { + + public static void main(String[] args) throws Exception { + syncListAppVersionsString(); + } + + public static void syncListAppVersionsString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString(); + for (AppVersion element : agentServiceClient.listAppVersions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListAppVersions_String_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listchangelogs/AsyncListChangelogs.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listchangelogs/AsyncListChangelogs.java new file mode 100644 index 000000000000..6f40f4cd036b --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listchangelogs/AsyncListChangelogs.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListChangelogs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Changelog; +import com.google.cloud.ces.v1.ListChangelogsRequest; + +public class AsyncListChangelogs { + + public static void main(String[] args) throws Exception { + asyncListChangelogs(); + } + + public static void asyncListChangelogs() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ListChangelogsRequest request = + ListChangelogsRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + agentServiceClient.listChangelogsPagedCallable().futureCall(request); + // Do something. + for (Changelog element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListChangelogs_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listchangelogs/AsyncListChangelogsPaged.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listchangelogs/AsyncListChangelogsPaged.java new file mode 100644 index 000000000000..012573d586de --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listchangelogs/AsyncListChangelogsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListChangelogs_Paged_async] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Changelog; +import com.google.cloud.ces.v1.ListChangelogsRequest; +import com.google.cloud.ces.v1.ListChangelogsResponse; +import com.google.common.base.Strings; + +public class AsyncListChangelogsPaged { + + public static void main(String[] args) throws Exception { + asyncListChangelogsPaged(); + } + + public static void asyncListChangelogsPaged() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ListChangelogsRequest request = + ListChangelogsRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListChangelogsResponse response = agentServiceClient.listChangelogsCallable().call(request); + for (Changelog element : response.getChangelogsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END ces_v1_generated_AgentService_ListChangelogs_Paged_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listchangelogs/SyncListChangelogs.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listchangelogs/SyncListChangelogs.java new file mode 100644 index 000000000000..0d4e3d5d42bf --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listchangelogs/SyncListChangelogs.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListChangelogs_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Changelog; +import com.google.cloud.ces.v1.ListChangelogsRequest; + +public class SyncListChangelogs { + + public static void main(String[] args) throws Exception { + syncListChangelogs(); + } + + public static void syncListChangelogs() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ListChangelogsRequest request = + ListChangelogsRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Changelog element : agentServiceClient.listChangelogs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListChangelogs_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listchangelogs/SyncListChangelogsAppname.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listchangelogs/SyncListChangelogsAppname.java new file mode 100644 index 000000000000..9bf3d1136e3b --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listchangelogs/SyncListChangelogsAppname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListChangelogs_Appname_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Changelog; + +public class SyncListChangelogsAppname { + + public static void main(String[] args) throws Exception { + syncListChangelogsAppname(); + } + + public static void syncListChangelogsAppname() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + for (Changelog element : agentServiceClient.listChangelogs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListChangelogs_Appname_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listchangelogs/SyncListChangelogsString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listchangelogs/SyncListChangelogsString.java new file mode 100644 index 000000000000..e9baf287478b --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listchangelogs/SyncListChangelogsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListChangelogs_String_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Changelog; + +public class SyncListChangelogsString { + + public static void main(String[] args) throws Exception { + syncListChangelogsString(); + } + + public static void syncListChangelogsString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString(); + for (Changelog element : agentServiceClient.listChangelogs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListChangelogs_String_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listconversations/AsyncListConversations.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listconversations/AsyncListConversations.java new file mode 100644 index 000000000000..8affbc41ede8 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listconversations/AsyncListConversations.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListConversations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Conversation; +import com.google.cloud.ces.v1.ListConversationsRequest; +import java.util.ArrayList; + +public class AsyncListConversations { + + public static void main(String[] args) throws Exception { + asyncListConversations(); + } + + public static void asyncListConversations() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ListConversationsRequest request = + ListConversationsRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .addAllSources(new ArrayList()) + .build(); + ApiFuture future = + agentServiceClient.listConversationsPagedCallable().futureCall(request); + // Do something. + for (Conversation element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListConversations_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listconversations/AsyncListConversationsPaged.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listconversations/AsyncListConversationsPaged.java new file mode 100644 index 000000000000..56d15f2c7f50 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listconversations/AsyncListConversationsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListConversations_Paged_async] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Conversation; +import com.google.cloud.ces.v1.ListConversationsRequest; +import com.google.cloud.ces.v1.ListConversationsResponse; +import com.google.common.base.Strings; +import java.util.ArrayList; + +public class AsyncListConversationsPaged { + + public static void main(String[] args) throws Exception { + asyncListConversationsPaged(); + } + + public static void asyncListConversationsPaged() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ListConversationsRequest request = + ListConversationsRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .addAllSources(new ArrayList()) + .build(); + while (true) { + ListConversationsResponse response = + agentServiceClient.listConversationsCallable().call(request); + for (Conversation element : response.getConversationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END ces_v1_generated_AgentService_ListConversations_Paged_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listconversations/SyncListConversations.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listconversations/SyncListConversations.java new file mode 100644 index 000000000000..c1722fec1008 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listconversations/SyncListConversations.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListConversations_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Conversation; +import com.google.cloud.ces.v1.ListConversationsRequest; +import java.util.ArrayList; + +public class SyncListConversations { + + public static void main(String[] args) throws Exception { + syncListConversations(); + } + + public static void syncListConversations() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ListConversationsRequest request = + ListConversationsRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .addAllSources(new ArrayList()) + .build(); + for (Conversation element : agentServiceClient.listConversations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListConversations_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listconversations/SyncListConversationsAppname.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listconversations/SyncListConversationsAppname.java new file mode 100644 index 000000000000..6a2c374585ea --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listconversations/SyncListConversationsAppname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListConversations_Appname_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Conversation; + +public class SyncListConversationsAppname { + + public static void main(String[] args) throws Exception { + syncListConversationsAppname(); + } + + public static void syncListConversationsAppname() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + for (Conversation element : agentServiceClient.listConversations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListConversations_Appname_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listconversations/SyncListConversationsString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listconversations/SyncListConversationsString.java new file mode 100644 index 000000000000..16ba22ddd5fa --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listconversations/SyncListConversationsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListConversations_String_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Conversation; + +public class SyncListConversationsString { + + public static void main(String[] args) throws Exception { + syncListConversationsString(); + } + + public static void syncListConversationsString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString(); + for (Conversation element : agentServiceClient.listConversations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListConversations_String_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listdeployments/AsyncListDeployments.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listdeployments/AsyncListDeployments.java new file mode 100644 index 000000000000..d38d95825b3c --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listdeployments/AsyncListDeployments.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListDeployments_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Deployment; +import com.google.cloud.ces.v1.ListDeploymentsRequest; + +public class AsyncListDeployments { + + public static void main(String[] args) throws Exception { + asyncListDeployments(); + } + + public static void asyncListDeployments() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ListDeploymentsRequest request = + ListDeploymentsRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + agentServiceClient.listDeploymentsPagedCallable().futureCall(request); + // Do something. + for (Deployment element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListDeployments_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listdeployments/AsyncListDeploymentsPaged.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listdeployments/AsyncListDeploymentsPaged.java new file mode 100644 index 000000000000..048603dafec8 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listdeployments/AsyncListDeploymentsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListDeployments_Paged_async] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Deployment; +import com.google.cloud.ces.v1.ListDeploymentsRequest; +import com.google.cloud.ces.v1.ListDeploymentsResponse; +import com.google.common.base.Strings; + +public class AsyncListDeploymentsPaged { + + public static void main(String[] args) throws Exception { + asyncListDeploymentsPaged(); + } + + public static void asyncListDeploymentsPaged() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ListDeploymentsRequest request = + ListDeploymentsRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListDeploymentsResponse response = + agentServiceClient.listDeploymentsCallable().call(request); + for (Deployment element : response.getDeploymentsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END ces_v1_generated_AgentService_ListDeployments_Paged_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listdeployments/SyncListDeployments.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listdeployments/SyncListDeployments.java new file mode 100644 index 000000000000..15f01cc1d7c1 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listdeployments/SyncListDeployments.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListDeployments_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Deployment; +import com.google.cloud.ces.v1.ListDeploymentsRequest; + +public class SyncListDeployments { + + public static void main(String[] args) throws Exception { + syncListDeployments(); + } + + public static void syncListDeployments() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ListDeploymentsRequest request = + ListDeploymentsRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .build(); + for (Deployment element : agentServiceClient.listDeployments(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListDeployments_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listdeployments/SyncListDeploymentsAppname.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listdeployments/SyncListDeploymentsAppname.java new file mode 100644 index 000000000000..4c751ed5bf4b --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listdeployments/SyncListDeploymentsAppname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListDeployments_Appname_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Deployment; + +public class SyncListDeploymentsAppname { + + public static void main(String[] args) throws Exception { + syncListDeploymentsAppname(); + } + + public static void syncListDeploymentsAppname() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + for (Deployment element : agentServiceClient.listDeployments(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListDeployments_Appname_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listdeployments/SyncListDeploymentsString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listdeployments/SyncListDeploymentsString.java new file mode 100644 index 000000000000..173e5209c07b --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listdeployments/SyncListDeploymentsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListDeployments_String_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Deployment; + +public class SyncListDeploymentsString { + + public static void main(String[] args) throws Exception { + syncListDeploymentsString(); + } + + public static void syncListDeploymentsString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString(); + for (Deployment element : agentServiceClient.listDeployments(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListDeployments_String_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listexamples/AsyncListExamples.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listexamples/AsyncListExamples.java new file mode 100644 index 000000000000..7cdd58fcb723 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listexamples/AsyncListExamples.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListExamples_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Example; +import com.google.cloud.ces.v1.ListExamplesRequest; + +public class AsyncListExamples { + + public static void main(String[] args) throws Exception { + asyncListExamples(); + } + + public static void asyncListExamples() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ListExamplesRequest request = + ListExamplesRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + agentServiceClient.listExamplesPagedCallable().futureCall(request); + // Do something. + for (Example element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListExamples_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listexamples/AsyncListExamplesPaged.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listexamples/AsyncListExamplesPaged.java new file mode 100644 index 000000000000..881f45319984 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listexamples/AsyncListExamplesPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListExamples_Paged_async] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Example; +import com.google.cloud.ces.v1.ListExamplesRequest; +import com.google.cloud.ces.v1.ListExamplesResponse; +import com.google.common.base.Strings; + +public class AsyncListExamplesPaged { + + public static void main(String[] args) throws Exception { + asyncListExamplesPaged(); + } + + public static void asyncListExamplesPaged() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ListExamplesRequest request = + ListExamplesRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListExamplesResponse response = agentServiceClient.listExamplesCallable().call(request); + for (Example element : response.getExamplesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END ces_v1_generated_AgentService_ListExamples_Paged_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listexamples/SyncListExamples.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listexamples/SyncListExamples.java new file mode 100644 index 000000000000..5fe21dfc5011 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listexamples/SyncListExamples.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListExamples_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Example; +import com.google.cloud.ces.v1.ListExamplesRequest; + +public class SyncListExamples { + + public static void main(String[] args) throws Exception { + syncListExamples(); + } + + public static void syncListExamples() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ListExamplesRequest request = + ListExamplesRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Example element : agentServiceClient.listExamples(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListExamples_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listexamples/SyncListExamplesAppname.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listexamples/SyncListExamplesAppname.java new file mode 100644 index 000000000000..ec40a2fd328e --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listexamples/SyncListExamplesAppname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListExamples_Appname_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Example; + +public class SyncListExamplesAppname { + + public static void main(String[] args) throws Exception { + syncListExamplesAppname(); + } + + public static void syncListExamplesAppname() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + for (Example element : agentServiceClient.listExamples(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListExamples_Appname_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listexamples/SyncListExamplesString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listexamples/SyncListExamplesString.java new file mode 100644 index 000000000000..bb8484033d2e --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listexamples/SyncListExamplesString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListExamples_String_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Example; + +public class SyncListExamplesString { + + public static void main(String[] args) throws Exception { + syncListExamplesString(); + } + + public static void syncListExamplesString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString(); + for (Example element : agentServiceClient.listExamples(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListExamples_String_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listguardrails/AsyncListGuardrails.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listguardrails/AsyncListGuardrails.java new file mode 100644 index 000000000000..875c3eb0d81b --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listguardrails/AsyncListGuardrails.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListGuardrails_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Guardrail; +import com.google.cloud.ces.v1.ListGuardrailsRequest; + +public class AsyncListGuardrails { + + public static void main(String[] args) throws Exception { + asyncListGuardrails(); + } + + public static void asyncListGuardrails() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ListGuardrailsRequest request = + ListGuardrailsRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + agentServiceClient.listGuardrailsPagedCallable().futureCall(request); + // Do something. + for (Guardrail element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListGuardrails_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listguardrails/AsyncListGuardrailsPaged.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listguardrails/AsyncListGuardrailsPaged.java new file mode 100644 index 000000000000..b7cde3714bad --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listguardrails/AsyncListGuardrailsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListGuardrails_Paged_async] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Guardrail; +import com.google.cloud.ces.v1.ListGuardrailsRequest; +import com.google.cloud.ces.v1.ListGuardrailsResponse; +import com.google.common.base.Strings; + +public class AsyncListGuardrailsPaged { + + public static void main(String[] args) throws Exception { + asyncListGuardrailsPaged(); + } + + public static void asyncListGuardrailsPaged() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ListGuardrailsRequest request = + ListGuardrailsRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListGuardrailsResponse response = agentServiceClient.listGuardrailsCallable().call(request); + for (Guardrail element : response.getGuardrailsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END ces_v1_generated_AgentService_ListGuardrails_Paged_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listguardrails/SyncListGuardrails.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listguardrails/SyncListGuardrails.java new file mode 100644 index 000000000000..e2f2589b3dee --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listguardrails/SyncListGuardrails.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListGuardrails_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Guardrail; +import com.google.cloud.ces.v1.ListGuardrailsRequest; + +public class SyncListGuardrails { + + public static void main(String[] args) throws Exception { + syncListGuardrails(); + } + + public static void syncListGuardrails() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ListGuardrailsRequest request = + ListGuardrailsRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Guardrail element : agentServiceClient.listGuardrails(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListGuardrails_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listguardrails/SyncListGuardrailsAppname.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listguardrails/SyncListGuardrailsAppname.java new file mode 100644 index 000000000000..a1a76ed2f260 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listguardrails/SyncListGuardrailsAppname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListGuardrails_Appname_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Guardrail; + +public class SyncListGuardrailsAppname { + + public static void main(String[] args) throws Exception { + syncListGuardrailsAppname(); + } + + public static void syncListGuardrailsAppname() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + for (Guardrail element : agentServiceClient.listGuardrails(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListGuardrails_Appname_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listguardrails/SyncListGuardrailsString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listguardrails/SyncListGuardrailsString.java new file mode 100644 index 000000000000..b709ee07eb7d --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listguardrails/SyncListGuardrailsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListGuardrails_String_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Guardrail; + +public class SyncListGuardrailsString { + + public static void main(String[] args) throws Exception { + syncListGuardrailsString(); + } + + public static void syncListGuardrailsString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString(); + for (Guardrail element : agentServiceClient.listGuardrails(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListGuardrails_String_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listlocations/AsyncListLocations.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..eb08110d3d51 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listlocations/AsyncListLocations.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + agentServiceClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListLocations_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listlocations/AsyncListLocationsPaged.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..ff8a9af2f08b --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListLocations_Paged_async] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.base.Strings; + +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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = agentServiceClient.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 ces_v1_generated_AgentService_ListLocations_Paged_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listlocations/SyncListLocations.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..85a3b04b8f8a --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listlocations/SyncListLocations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListLocations_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : agentServiceClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListLocations_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listtools/AsyncListTools.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listtools/AsyncListTools.java new file mode 100644 index 000000000000..bc582655d0a2 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listtools/AsyncListTools.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListTools_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.ListToolsRequest; +import com.google.cloud.ces.v1.Tool; + +public class AsyncListTools { + + public static void main(String[] args) throws Exception { + asyncListTools(); + } + + public static void asyncListTools() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ListToolsRequest request = + ListToolsRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = agentServiceClient.listToolsPagedCallable().futureCall(request); + // Do something. + for (Tool element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListTools_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listtools/AsyncListToolsPaged.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listtools/AsyncListToolsPaged.java new file mode 100644 index 000000000000..0361febd99d2 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listtools/AsyncListToolsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListTools_Paged_async] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.ListToolsRequest; +import com.google.cloud.ces.v1.ListToolsResponse; +import com.google.cloud.ces.v1.Tool; +import com.google.common.base.Strings; + +public class AsyncListToolsPaged { + + public static void main(String[] args) throws Exception { + asyncListToolsPaged(); + } + + public static void asyncListToolsPaged() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ListToolsRequest request = + ListToolsRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListToolsResponse response = agentServiceClient.listToolsCallable().call(request); + for (Tool element : response.getToolsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END ces_v1_generated_AgentService_ListTools_Paged_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listtools/SyncListTools.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listtools/SyncListTools.java new file mode 100644 index 000000000000..c46e1daac842 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listtools/SyncListTools.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListTools_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.ListToolsRequest; +import com.google.cloud.ces.v1.Tool; + +public class SyncListTools { + + public static void main(String[] args) throws Exception { + syncListTools(); + } + + public static void syncListTools() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ListToolsRequest request = + ListToolsRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Tool element : agentServiceClient.listTools(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListTools_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listtools/SyncListToolsAppname.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listtools/SyncListToolsAppname.java new file mode 100644 index 000000000000..e966a26c3f34 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listtools/SyncListToolsAppname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListTools_Appname_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Tool; + +public class SyncListToolsAppname { + + public static void main(String[] args) throws Exception { + syncListToolsAppname(); + } + + public static void syncListToolsAppname() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + for (Tool element : agentServiceClient.listTools(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListTools_Appname_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listtools/SyncListToolsString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listtools/SyncListToolsString.java new file mode 100644 index 000000000000..5315c6762658 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listtools/SyncListToolsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListTools_String_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Tool; + +public class SyncListToolsString { + + public static void main(String[] args) throws Exception { + syncListToolsString(); + } + + public static void syncListToolsString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString(); + for (Tool element : agentServiceClient.listTools(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListTools_String_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listtoolsets/AsyncListToolsets.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listtoolsets/AsyncListToolsets.java new file mode 100644 index 000000000000..e4c9c084daf7 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listtoolsets/AsyncListToolsets.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListToolsets_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.ListToolsetsRequest; +import com.google.cloud.ces.v1.Toolset; + +public class AsyncListToolsets { + + public static void main(String[] args) throws Exception { + asyncListToolsets(); + } + + public static void asyncListToolsets() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ListToolsetsRequest request = + ListToolsetsRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + agentServiceClient.listToolsetsPagedCallable().futureCall(request); + // Do something. + for (Toolset element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListToolsets_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listtoolsets/AsyncListToolsetsPaged.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listtoolsets/AsyncListToolsetsPaged.java new file mode 100644 index 000000000000..10ea4d8df3b7 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listtoolsets/AsyncListToolsetsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListToolsets_Paged_async] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.ListToolsetsRequest; +import com.google.cloud.ces.v1.ListToolsetsResponse; +import com.google.cloud.ces.v1.Toolset; +import com.google.common.base.Strings; + +public class AsyncListToolsetsPaged { + + public static void main(String[] args) throws Exception { + asyncListToolsetsPaged(); + } + + public static void asyncListToolsetsPaged() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ListToolsetsRequest request = + ListToolsetsRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListToolsetsResponse response = agentServiceClient.listToolsetsCallable().call(request); + for (Toolset element : response.getToolsetsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END ces_v1_generated_AgentService_ListToolsets_Paged_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listtoolsets/SyncListToolsets.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listtoolsets/SyncListToolsets.java new file mode 100644 index 000000000000..427478a92dfd --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listtoolsets/SyncListToolsets.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListToolsets_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.ListToolsetsRequest; +import com.google.cloud.ces.v1.Toolset; + +public class SyncListToolsets { + + public static void main(String[] args) throws Exception { + syncListToolsets(); + } + + public static void syncListToolsets() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + ListToolsetsRequest request = + ListToolsetsRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Toolset element : agentServiceClient.listToolsets(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListToolsets_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listtoolsets/SyncListToolsetsAppname.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listtoolsets/SyncListToolsetsAppname.java new file mode 100644 index 000000000000..9b28c180dc51 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listtoolsets/SyncListToolsetsAppname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListToolsets_Appname_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Toolset; + +public class SyncListToolsetsAppname { + + public static void main(String[] args) throws Exception { + syncListToolsetsAppname(); + } + + public static void syncListToolsetsAppname() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + for (Toolset element : agentServiceClient.listToolsets(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListToolsets_Appname_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listtoolsets/SyncListToolsetsString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listtoolsets/SyncListToolsetsString.java new file mode 100644 index 000000000000..fe94b35e03ae --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/listtoolsets/SyncListToolsetsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_ListToolsets_String_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.Toolset; + +public class SyncListToolsetsString { + + public static void main(String[] args) throws Exception { + syncListToolsetsString(); + } + + public static void syncListToolsetsString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString(); + for (Toolset element : agentServiceClient.listToolsets(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_AgentService_ListToolsets_String_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/restoreappversion/AsyncRestoreAppVersion.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/restoreappversion/AsyncRestoreAppVersion.java new file mode 100644 index 000000000000..60a648de0d38 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/restoreappversion/AsyncRestoreAppVersion.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_RestoreAppVersion_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppVersionName; +import com.google.cloud.ces.v1.RestoreAppVersionRequest; +import com.google.longrunning.Operation; + +public class AsyncRestoreAppVersion { + + public static void main(String[] args) throws Exception { + asyncRestoreAppVersion(); + } + + public static void asyncRestoreAppVersion() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + RestoreAppVersionRequest request = + RestoreAppVersionRequest.newBuilder() + .setName( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .build(); + ApiFuture future = + agentServiceClient.restoreAppVersionCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_RestoreAppVersion_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/restoreappversion/AsyncRestoreAppVersionLRO.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/restoreappversion/AsyncRestoreAppVersionLRO.java new file mode 100644 index 000000000000..3ab65cd1bf41 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/restoreappversion/AsyncRestoreAppVersionLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_RestoreAppVersion_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppVersionName; +import com.google.cloud.ces.v1.OperationMetadata; +import com.google.cloud.ces.v1.RestoreAppVersionRequest; +import com.google.cloud.ces.v1.RestoreAppVersionResponse; + +public class AsyncRestoreAppVersionLRO { + + public static void main(String[] args) throws Exception { + asyncRestoreAppVersionLRO(); + } + + public static void asyncRestoreAppVersionLRO() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + RestoreAppVersionRequest request = + RestoreAppVersionRequest.newBuilder() + .setName( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .build(); + OperationFuture future = + agentServiceClient.restoreAppVersionOperationCallable().futureCall(request); + // Do something. + RestoreAppVersionResponse response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_RestoreAppVersion_LRO_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/restoreappversion/SyncRestoreAppVersion.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/restoreappversion/SyncRestoreAppVersion.java new file mode 100644 index 000000000000..174721030233 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/restoreappversion/SyncRestoreAppVersion.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_RestoreAppVersion_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppVersionName; +import com.google.cloud.ces.v1.RestoreAppVersionRequest; +import com.google.cloud.ces.v1.RestoreAppVersionResponse; + +public class SyncRestoreAppVersion { + + public static void main(String[] args) throws Exception { + syncRestoreAppVersion(); + } + + public static void syncRestoreAppVersion() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + RestoreAppVersionRequest request = + RestoreAppVersionRequest.newBuilder() + .setName( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .build(); + RestoreAppVersionResponse response = agentServiceClient.restoreAppVersionAsync(request).get(); + } + } +} +// [END ces_v1_generated_AgentService_RestoreAppVersion_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/restoreappversion/SyncRestoreAppVersionAppversionname.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/restoreappversion/SyncRestoreAppVersionAppversionname.java new file mode 100644 index 000000000000..dace156e7f81 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/restoreappversion/SyncRestoreAppVersionAppversionname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_RestoreAppVersion_Appversionname_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppVersionName; +import com.google.cloud.ces.v1.RestoreAppVersionResponse; + +public class SyncRestoreAppVersionAppversionname { + + public static void main(String[] args) throws Exception { + syncRestoreAppVersionAppversionname(); + } + + public static void syncRestoreAppVersionAppversionname() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + AppVersionName name = AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]"); + RestoreAppVersionResponse response = agentServiceClient.restoreAppVersionAsync(name).get(); + } + } +} +// [END ces_v1_generated_AgentService_RestoreAppVersion_Appversionname_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/restoreappversion/SyncRestoreAppVersionString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/restoreappversion/SyncRestoreAppVersionString.java new file mode 100644 index 000000000000..97935b8d1082 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/restoreappversion/SyncRestoreAppVersionString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_RestoreAppVersion_String_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.AppVersionName; +import com.google.cloud.ces.v1.RestoreAppVersionResponse; + +public class SyncRestoreAppVersionString { + + public static void main(String[] args) throws Exception { + syncRestoreAppVersionString(); + } + + public static void syncRestoreAppVersionString() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + String name = AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString(); + RestoreAppVersionResponse response = agentServiceClient.restoreAppVersionAsync(name).get(); + } + } +} +// [END ces_v1_generated_AgentService_RestoreAppVersion_String_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateagent/AsyncUpdateAgent.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateagent/AsyncUpdateAgent.java new file mode 100644 index 000000000000..bad0a1ee0b9c --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateagent/AsyncUpdateAgent.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_UpdateAgent_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.Agent; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.UpdateAgentRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateAgent { + + public static void main(String[] args) throws Exception { + asyncUpdateAgent(); + } + + public static void asyncUpdateAgent() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + UpdateAgentRequest request = + UpdateAgentRequest.newBuilder() + .setAgent(Agent.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = agentServiceClient.updateAgentCallable().futureCall(request); + // Do something. + Agent response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_UpdateAgent_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateagent/SyncUpdateAgent.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateagent/SyncUpdateAgent.java new file mode 100644 index 000000000000..d36ac502d77e --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateagent/SyncUpdateAgent.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_UpdateAgent_sync] +import com.google.cloud.ces.v1.Agent; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.UpdateAgentRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAgent { + + public static void main(String[] args) throws Exception { + syncUpdateAgent(); + } + + public static void syncUpdateAgent() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + UpdateAgentRequest request = + UpdateAgentRequest.newBuilder() + .setAgent(Agent.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Agent response = agentServiceClient.updateAgent(request); + } + } +} +// [END ces_v1_generated_AgentService_UpdateAgent_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateagent/SyncUpdateAgentAgentFieldmask.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateagent/SyncUpdateAgentAgentFieldmask.java new file mode 100644 index 000000000000..822af4e7f214 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateagent/SyncUpdateAgentAgentFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_UpdateAgent_AgentFieldmask_sync] +import com.google.cloud.ces.v1.Agent; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAgentAgentFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateAgentAgentFieldmask(); + } + + public static void syncUpdateAgentAgentFieldmask() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + Agent agent = Agent.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Agent response = agentServiceClient.updateAgent(agent, updateMask); + } + } +} +// [END ces_v1_generated_AgentService_UpdateAgent_AgentFieldmask_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateapp/AsyncUpdateApp.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateapp/AsyncUpdateApp.java new file mode 100644 index 000000000000..9ed946c1c785 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateapp/AsyncUpdateApp.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_UpdateApp_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.App; +import com.google.cloud.ces.v1.UpdateAppRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateApp { + + public static void main(String[] args) throws Exception { + asyncUpdateApp(); + } + + public static void asyncUpdateApp() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + UpdateAppRequest request = + UpdateAppRequest.newBuilder() + .setApp(App.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = agentServiceClient.updateAppCallable().futureCall(request); + // Do something. + App response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_UpdateApp_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateapp/SyncUpdateApp.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateapp/SyncUpdateApp.java new file mode 100644 index 000000000000..366c069bdb96 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateapp/SyncUpdateApp.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_UpdateApp_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.App; +import com.google.cloud.ces.v1.UpdateAppRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateApp { + + public static void main(String[] args) throws Exception { + syncUpdateApp(); + } + + public static void syncUpdateApp() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + UpdateAppRequest request = + UpdateAppRequest.newBuilder() + .setApp(App.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + App response = agentServiceClient.updateApp(request); + } + } +} +// [END ces_v1_generated_AgentService_UpdateApp_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateapp/SyncUpdateAppAppFieldmask.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateapp/SyncUpdateAppAppFieldmask.java new file mode 100644 index 000000000000..f34d0cbbbf22 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateapp/SyncUpdateAppAppFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_UpdateApp_AppFieldmask_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.App; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAppAppFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateAppAppFieldmask(); + } + + public static void syncUpdateAppAppFieldmask() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + App app = App.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + App response = agentServiceClient.updateApp(app, updateMask); + } + } +} +// [END ces_v1_generated_AgentService_UpdateApp_AppFieldmask_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updatedeployment/AsyncUpdateDeployment.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updatedeployment/AsyncUpdateDeployment.java new file mode 100644 index 000000000000..a106586ebe18 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updatedeployment/AsyncUpdateDeployment.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_UpdateDeployment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Deployment; +import com.google.cloud.ces.v1.UpdateDeploymentRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateDeployment { + + public static void main(String[] args) throws Exception { + asyncUpdateDeployment(); + } + + public static void asyncUpdateDeployment() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + UpdateDeploymentRequest request = + UpdateDeploymentRequest.newBuilder() + .setDeployment(Deployment.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + agentServiceClient.updateDeploymentCallable().futureCall(request); + // Do something. + Deployment response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_UpdateDeployment_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updatedeployment/SyncUpdateDeployment.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updatedeployment/SyncUpdateDeployment.java new file mode 100644 index 000000000000..8bd0f11e3151 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updatedeployment/SyncUpdateDeployment.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_UpdateDeployment_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Deployment; +import com.google.cloud.ces.v1.UpdateDeploymentRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDeployment { + + public static void main(String[] args) throws Exception { + syncUpdateDeployment(); + } + + public static void syncUpdateDeployment() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + UpdateDeploymentRequest request = + UpdateDeploymentRequest.newBuilder() + .setDeployment(Deployment.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Deployment response = agentServiceClient.updateDeployment(request); + } + } +} +// [END ces_v1_generated_AgentService_UpdateDeployment_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updatedeployment/SyncUpdateDeploymentDeploymentFieldmask.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updatedeployment/SyncUpdateDeploymentDeploymentFieldmask.java new file mode 100644 index 000000000000..64f54837fb80 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updatedeployment/SyncUpdateDeploymentDeploymentFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_UpdateDeployment_DeploymentFieldmask_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Deployment; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDeploymentDeploymentFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateDeploymentDeploymentFieldmask(); + } + + public static void syncUpdateDeploymentDeploymentFieldmask() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + Deployment deployment = Deployment.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Deployment response = agentServiceClient.updateDeployment(deployment, updateMask); + } + } +} +// [END ces_v1_generated_AgentService_UpdateDeployment_DeploymentFieldmask_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateexample/AsyncUpdateExample.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateexample/AsyncUpdateExample.java new file mode 100644 index 000000000000..10b4c63b91e7 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateexample/AsyncUpdateExample.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_UpdateExample_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Example; +import com.google.cloud.ces.v1.UpdateExampleRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateExample { + + public static void main(String[] args) throws Exception { + asyncUpdateExample(); + } + + public static void asyncUpdateExample() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + UpdateExampleRequest request = + UpdateExampleRequest.newBuilder() + .setExample(Example.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = agentServiceClient.updateExampleCallable().futureCall(request); + // Do something. + Example response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_UpdateExample_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateexample/SyncUpdateExample.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateexample/SyncUpdateExample.java new file mode 100644 index 000000000000..3759d8946dba --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateexample/SyncUpdateExample.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_UpdateExample_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Example; +import com.google.cloud.ces.v1.UpdateExampleRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateExample { + + public static void main(String[] args) throws Exception { + syncUpdateExample(); + } + + public static void syncUpdateExample() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + UpdateExampleRequest request = + UpdateExampleRequest.newBuilder() + .setExample(Example.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Example response = agentServiceClient.updateExample(request); + } + } +} +// [END ces_v1_generated_AgentService_UpdateExample_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateexample/SyncUpdateExampleExampleFieldmask.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateexample/SyncUpdateExampleExampleFieldmask.java new file mode 100644 index 000000000000..94725758b5a9 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateexample/SyncUpdateExampleExampleFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_UpdateExample_ExampleFieldmask_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Example; +import com.google.protobuf.FieldMask; + +public class SyncUpdateExampleExampleFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateExampleExampleFieldmask(); + } + + public static void syncUpdateExampleExampleFieldmask() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + Example example = Example.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Example response = agentServiceClient.updateExample(example, updateMask); + } + } +} +// [END ces_v1_generated_AgentService_UpdateExample_ExampleFieldmask_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateguardrail/AsyncUpdateGuardrail.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateguardrail/AsyncUpdateGuardrail.java new file mode 100644 index 000000000000..992a9ec050e9 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateguardrail/AsyncUpdateGuardrail.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_UpdateGuardrail_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Guardrail; +import com.google.cloud.ces.v1.UpdateGuardrailRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateGuardrail { + + public static void main(String[] args) throws Exception { + asyncUpdateGuardrail(); + } + + public static void asyncUpdateGuardrail() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + UpdateGuardrailRequest request = + UpdateGuardrailRequest.newBuilder() + .setGuardrail(Guardrail.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + agentServiceClient.updateGuardrailCallable().futureCall(request); + // Do something. + Guardrail response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_UpdateGuardrail_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateguardrail/SyncUpdateGuardrail.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateguardrail/SyncUpdateGuardrail.java new file mode 100644 index 000000000000..71737e613c42 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateguardrail/SyncUpdateGuardrail.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_UpdateGuardrail_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Guardrail; +import com.google.cloud.ces.v1.UpdateGuardrailRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateGuardrail { + + public static void main(String[] args) throws Exception { + syncUpdateGuardrail(); + } + + public static void syncUpdateGuardrail() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + UpdateGuardrailRequest request = + UpdateGuardrailRequest.newBuilder() + .setGuardrail(Guardrail.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Guardrail response = agentServiceClient.updateGuardrail(request); + } + } +} +// [END ces_v1_generated_AgentService_UpdateGuardrail_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateguardrail/SyncUpdateGuardrailGuardrailFieldmask.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateguardrail/SyncUpdateGuardrailGuardrailFieldmask.java new file mode 100644 index 000000000000..ad108554b86c --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updateguardrail/SyncUpdateGuardrailGuardrailFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_UpdateGuardrail_GuardrailFieldmask_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Guardrail; +import com.google.protobuf.FieldMask; + +public class SyncUpdateGuardrailGuardrailFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateGuardrailGuardrailFieldmask(); + } + + public static void syncUpdateGuardrailGuardrailFieldmask() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + Guardrail guardrail = Guardrail.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Guardrail response = agentServiceClient.updateGuardrail(guardrail, updateMask); + } + } +} +// [END ces_v1_generated_AgentService_UpdateGuardrail_GuardrailFieldmask_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updatetool/AsyncUpdateTool.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updatetool/AsyncUpdateTool.java new file mode 100644 index 000000000000..9b4c09e63eb8 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updatetool/AsyncUpdateTool.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_UpdateTool_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Tool; +import com.google.cloud.ces.v1.UpdateToolRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateTool { + + public static void main(String[] args) throws Exception { + asyncUpdateTool(); + } + + public static void asyncUpdateTool() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + UpdateToolRequest request = + UpdateToolRequest.newBuilder() + .setTool(Tool.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = agentServiceClient.updateToolCallable().futureCall(request); + // Do something. + Tool response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_UpdateTool_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updatetool/SyncUpdateTool.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updatetool/SyncUpdateTool.java new file mode 100644 index 000000000000..cbd803e600c1 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updatetool/SyncUpdateTool.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_UpdateTool_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Tool; +import com.google.cloud.ces.v1.UpdateToolRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateTool { + + public static void main(String[] args) throws Exception { + syncUpdateTool(); + } + + public static void syncUpdateTool() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + UpdateToolRequest request = + UpdateToolRequest.newBuilder() + .setTool(Tool.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Tool response = agentServiceClient.updateTool(request); + } + } +} +// [END ces_v1_generated_AgentService_UpdateTool_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updatetool/SyncUpdateToolToolFieldmask.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updatetool/SyncUpdateToolToolFieldmask.java new file mode 100644 index 000000000000..01a743bb9d4e --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updatetool/SyncUpdateToolToolFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_UpdateTool_ToolFieldmask_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Tool; +import com.google.protobuf.FieldMask; + +public class SyncUpdateToolToolFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateToolToolFieldmask(); + } + + public static void syncUpdateToolToolFieldmask() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + Tool tool = Tool.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Tool response = agentServiceClient.updateTool(tool, updateMask); + } + } +} +// [END ces_v1_generated_AgentService_UpdateTool_ToolFieldmask_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updatetoolset/AsyncUpdateToolset.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updatetoolset/AsyncUpdateToolset.java new file mode 100644 index 000000000000..9328f02d2713 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updatetoolset/AsyncUpdateToolset.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_UpdateToolset_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Toolset; +import com.google.cloud.ces.v1.UpdateToolsetRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateToolset { + + public static void main(String[] args) throws Exception { + asyncUpdateToolset(); + } + + public static void asyncUpdateToolset() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + UpdateToolsetRequest request = + UpdateToolsetRequest.newBuilder() + .setToolset(Toolset.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = agentServiceClient.updateToolsetCallable().futureCall(request); + // Do something. + Toolset response = future.get(); + } + } +} +// [END ces_v1_generated_AgentService_UpdateToolset_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updatetoolset/SyncUpdateToolset.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updatetoolset/SyncUpdateToolset.java new file mode 100644 index 000000000000..3e3de89347f0 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updatetoolset/SyncUpdateToolset.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_UpdateToolset_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Toolset; +import com.google.cloud.ces.v1.UpdateToolsetRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateToolset { + + public static void main(String[] args) throws Exception { + syncUpdateToolset(); + } + + public static void syncUpdateToolset() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + UpdateToolsetRequest request = + UpdateToolsetRequest.newBuilder() + .setToolset(Toolset.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Toolset response = agentServiceClient.updateToolset(request); + } + } +} +// [END ces_v1_generated_AgentService_UpdateToolset_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updatetoolset/SyncUpdateToolsetToolsetFieldmask.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updatetoolset/SyncUpdateToolsetToolsetFieldmask.java new file mode 100644 index 000000000000..c5ad17be140e --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservice/updatetoolset/SyncUpdateToolsetToolsetFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentService_UpdateToolset_ToolsetFieldmask_sync] +import com.google.cloud.ces.v1.AgentServiceClient; +import com.google.cloud.ces.v1.Toolset; +import com.google.protobuf.FieldMask; + +public class SyncUpdateToolsetToolsetFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateToolsetToolsetFieldmask(); + } + + public static void syncUpdateToolsetToolsetFieldmask() 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 (AgentServiceClient agentServiceClient = AgentServiceClient.create()) { + Toolset toolset = Toolset.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Toolset response = agentServiceClient.updateToolset(toolset, updateMask); + } + } +} +// [END ces_v1_generated_AgentService_UpdateToolset_ToolsetFieldmask_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservicesettings/createapp/SyncCreateApp.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservicesettings/createapp/SyncCreateApp.java new file mode 100644 index 000000000000..bd53bfde9e07 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservicesettings/createapp/SyncCreateApp.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentServiceSettings_CreateApp_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.cloud.ces.v1.AgentServiceSettings; +import java.time.Duration; + +public class SyncCreateApp { + + public static void main(String[] args) throws Exception { + syncCreateApp(); + } + + public static void syncCreateApp() 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 + AgentServiceSettings.Builder agentServiceSettingsBuilder = AgentServiceSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + agentServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END ces_v1_generated_AgentServiceSettings_CreateApp_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservicesettings/getapp/SyncGetApp.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservicesettings/getapp/SyncGetApp.java new file mode 100644 index 000000000000..ac1bb2418294 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/agentservicesettings/getapp/SyncGetApp.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_AgentServiceSettings_GetApp_sync] +import com.google.cloud.ces.v1.AgentServiceSettings; +import java.time.Duration; + +public class SyncGetApp { + + public static void main(String[] args) throws Exception { + syncGetApp(); + } + + public static void syncGetApp() 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 + AgentServiceSettings.Builder agentServiceSettingsBuilder = AgentServiceSettings.newBuilder(); + agentServiceSettingsBuilder + .getAppSettings() + .setRetrySettings( + agentServiceSettingsBuilder + .getAppSettings() + .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()); + AgentServiceSettings agentServiceSettings = agentServiceSettingsBuilder.build(); + } +} +// [END ces_v1_generated_AgentServiceSettings_GetApp_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/bidirunsession/AsyncBidiRunSession.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/bidirunsession/AsyncBidiRunSession.java new file mode 100644 index 000000000000..f336035e11ff --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/bidirunsession/AsyncBidiRunSession.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_SessionService_BidiRunSession_async] +import com.google.api.gax.rpc.BidiStream; +import com.google.cloud.ces.v1.BidiSessionClientMessage; +import com.google.cloud.ces.v1.BidiSessionServerMessage; +import com.google.cloud.ces.v1.SessionServiceClient; + +public class AsyncBidiRunSession { + + public static void main(String[] args) throws Exception { + asyncBidiRunSession(); + } + + public static void asyncBidiRunSession() 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 (SessionServiceClient sessionServiceClient = SessionServiceClient.create()) { + BidiStream bidiStream = + sessionServiceClient.bidiRunSessionCallable().call(); + BidiSessionClientMessage request = BidiSessionClientMessage.newBuilder().build(); + bidiStream.send(request); + for (BidiSessionServerMessage response : bidiStream) { + // Do something when a response is received. + } + } + } +} +// [END ces_v1_generated_SessionService_BidiRunSession_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/create/SyncCreateSetCredentialsProvider.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..6ec47d2dda9f --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_SessionService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.ces.v1.SessionServiceClient; +import com.google.cloud.ces.v1.SessionServiceSettings; +import com.google.cloud.ces.v1.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 + SessionServiceSettings sessionServiceSettings = + SessionServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + SessionServiceClient sessionServiceClient = SessionServiceClient.create(sessionServiceSettings); + } +} +// [END ces_v1_generated_SessionService_Create_SetCredentialsProvider_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/create/SyncCreateSetEndpoint.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..859a008f9a71 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,41 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_SessionService_Create_SetEndpoint_sync] +import com.google.cloud.ces.v1.SessionServiceClient; +import com.google.cloud.ces.v1.SessionServiceSettings; +import com.google.cloud.ces.v1.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 + SessionServiceSettings sessionServiceSettings = + SessionServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + SessionServiceClient sessionServiceClient = SessionServiceClient.create(sessionServiceSettings); + } +} +// [END ces_v1_generated_SessionService_Create_SetEndpoint_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/create/SyncCreateUseHttpJsonTransport.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..61543b7e164c --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_SessionService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.ces.v1.SessionServiceClient; +import com.google.cloud.ces.v1.SessionServiceSettings; + +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 + SessionServiceSettings sessionServiceSettings = + SessionServiceSettings.newHttpJsonBuilder().build(); + SessionServiceClient sessionServiceClient = SessionServiceClient.create(sessionServiceSettings); + } +} +// [END ces_v1_generated_SessionService_Create_UseHttpJsonTransport_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/getlocation/AsyncGetLocation.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..c8f4ca9d6afc --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/getlocation/AsyncGetLocation.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_SessionService_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.SessionServiceClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +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 (SessionServiceClient sessionServiceClient = SessionServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = sessionServiceClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END ces_v1_generated_SessionService_GetLocation_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/getlocation/SyncGetLocation.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..bc673f46a295 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/getlocation/SyncGetLocation.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_SessionService_GetLocation_sync] +import com.google.cloud.ces.v1.SessionServiceClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +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 (SessionServiceClient sessionServiceClient = SessionServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = sessionServiceClient.getLocation(request); + } + } +} +// [END ces_v1_generated_SessionService_GetLocation_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/listlocations/AsyncListLocations.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..f2811e641f45 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/listlocations/AsyncListLocations.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_SessionService_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.SessionServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +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 (SessionServiceClient sessionServiceClient = SessionServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + sessionServiceClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_SessionService_ListLocations_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/listlocations/AsyncListLocationsPaged.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..058ba35eb267 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_SessionService_ListLocations_Paged_async] +import com.google.cloud.ces.v1.SessionServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.base.Strings; + +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 (SessionServiceClient sessionServiceClient = SessionServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = sessionServiceClient.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 ces_v1_generated_SessionService_ListLocations_Paged_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/listlocations/SyncListLocations.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..dc344b5e567a --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/listlocations/SyncListLocations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_SessionService_ListLocations_sync] +import com.google.cloud.ces.v1.SessionServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +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 (SessionServiceClient sessionServiceClient = SessionServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : sessionServiceClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_SessionService_ListLocations_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/runsession/AsyncRunSession.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/runsession/AsyncRunSession.java new file mode 100644 index 000000000000..cca5c022118a --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/runsession/AsyncRunSession.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_SessionService_RunSession_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.RunSessionRequest; +import com.google.cloud.ces.v1.RunSessionResponse; +import com.google.cloud.ces.v1.SessionConfig; +import com.google.cloud.ces.v1.SessionInput; +import com.google.cloud.ces.v1.SessionServiceClient; +import java.util.ArrayList; + +public class AsyncRunSession { + + public static void main(String[] args) throws Exception { + asyncRunSession(); + } + + public static void asyncRunSession() 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 (SessionServiceClient sessionServiceClient = SessionServiceClient.create()) { + RunSessionRequest request = + RunSessionRequest.newBuilder() + .setConfig(SessionConfig.newBuilder().build()) + .addAllInputs(new ArrayList()) + .build(); + ApiFuture future = + sessionServiceClient.runSessionCallable().futureCall(request); + // Do something. + RunSessionResponse response = future.get(); + } + } +} +// [END ces_v1_generated_SessionService_RunSession_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/runsession/SyncRunSession.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/runsession/SyncRunSession.java new file mode 100644 index 000000000000..73ba2f335b44 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservice/runsession/SyncRunSession.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_SessionService_RunSession_sync] +import com.google.cloud.ces.v1.RunSessionRequest; +import com.google.cloud.ces.v1.RunSessionResponse; +import com.google.cloud.ces.v1.SessionConfig; +import com.google.cloud.ces.v1.SessionInput; +import com.google.cloud.ces.v1.SessionServiceClient; +import java.util.ArrayList; + +public class SyncRunSession { + + public static void main(String[] args) throws Exception { + syncRunSession(); + } + + public static void syncRunSession() 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 (SessionServiceClient sessionServiceClient = SessionServiceClient.create()) { + RunSessionRequest request = + RunSessionRequest.newBuilder() + .setConfig(SessionConfig.newBuilder().build()) + .addAllInputs(new ArrayList()) + .build(); + RunSessionResponse response = sessionServiceClient.runSession(request); + } + } +} +// [END ces_v1_generated_SessionService_RunSession_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservicesettings/runsession/SyncRunSession.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservicesettings/runsession/SyncRunSession.java new file mode 100644 index 000000000000..def2230b6638 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/sessionservicesettings/runsession/SyncRunSession.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_SessionServiceSettings_RunSession_sync] +import com.google.cloud.ces.v1.SessionServiceSettings; +import java.time.Duration; + +public class SyncRunSession { + + public static void main(String[] args) throws Exception { + syncRunSession(); + } + + public static void syncRunSession() 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 + SessionServiceSettings.Builder sessionServiceSettingsBuilder = + SessionServiceSettings.newBuilder(); + sessionServiceSettingsBuilder + .runSessionSettings() + .setRetrySettings( + sessionServiceSettingsBuilder + .runSessionSettings() + .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()); + SessionServiceSettings sessionServiceSettings = sessionServiceSettingsBuilder.build(); + } +} +// [END ces_v1_generated_SessionServiceSettings_RunSession_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/stub/agentservicestubsettings/createapp/SyncCreateApp.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/stub/agentservicestubsettings/createapp/SyncCreateApp.java new file mode 100644 index 000000000000..d49774fecce5 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/stub/agentservicestubsettings/createapp/SyncCreateApp.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.stub.samples; + +// [START ces_v1_generated_AgentServiceStubSettings_CreateApp_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.cloud.ces.v1.stub.AgentServiceStubSettings; +import java.time.Duration; + +public class SyncCreateApp { + + public static void main(String[] args) throws Exception { + syncCreateApp(); + } + + public static void syncCreateApp() 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 + AgentServiceStubSettings.Builder agentServiceSettingsBuilder = + AgentServiceStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + agentServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END ces_v1_generated_AgentServiceStubSettings_CreateApp_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/stub/agentservicestubsettings/getapp/SyncGetApp.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/stub/agentservicestubsettings/getapp/SyncGetApp.java new file mode 100644 index 000000000000..6f1f178a8e42 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/stub/agentservicestubsettings/getapp/SyncGetApp.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.stub.samples; + +// [START ces_v1_generated_AgentServiceStubSettings_GetApp_sync] +import com.google.cloud.ces.v1.stub.AgentServiceStubSettings; +import java.time.Duration; + +public class SyncGetApp { + + public static void main(String[] args) throws Exception { + syncGetApp(); + } + + public static void syncGetApp() 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 + AgentServiceStubSettings.Builder agentServiceSettingsBuilder = + AgentServiceStubSettings.newBuilder(); + agentServiceSettingsBuilder + .getAppSettings() + .setRetrySettings( + agentServiceSettingsBuilder + .getAppSettings() + .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()); + AgentServiceStubSettings agentServiceSettings = agentServiceSettingsBuilder.build(); + } +} +// [END ces_v1_generated_AgentServiceStubSettings_GetApp_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/stub/sessionservicestubsettings/runsession/SyncRunSession.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/stub/sessionservicestubsettings/runsession/SyncRunSession.java new file mode 100644 index 000000000000..27544327f563 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/stub/sessionservicestubsettings/runsession/SyncRunSession.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.stub.samples; + +// [START ces_v1_generated_SessionServiceStubSettings_RunSession_sync] +import com.google.cloud.ces.v1.stub.SessionServiceStubSettings; +import java.time.Duration; + +public class SyncRunSession { + + public static void main(String[] args) throws Exception { + syncRunSession(); + } + + public static void syncRunSession() 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 + SessionServiceStubSettings.Builder sessionServiceSettingsBuilder = + SessionServiceStubSettings.newBuilder(); + sessionServiceSettingsBuilder + .runSessionSettings() + .setRetrySettings( + sessionServiceSettingsBuilder + .runSessionSettings() + .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()); + SessionServiceStubSettings sessionServiceSettings = sessionServiceSettingsBuilder.build(); + } +} +// [END ces_v1_generated_SessionServiceStubSettings_RunSession_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/stub/toolservicestubsettings/executetool/SyncExecuteTool.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/stub/toolservicestubsettings/executetool/SyncExecuteTool.java new file mode 100644 index 000000000000..8244b88ffd4d --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/stub/toolservicestubsettings/executetool/SyncExecuteTool.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.stub.samples; + +// [START ces_v1_generated_ToolServiceStubSettings_ExecuteTool_sync] +import com.google.cloud.ces.v1.stub.ToolServiceStubSettings; +import java.time.Duration; + +public class SyncExecuteTool { + + public static void main(String[] args) throws Exception { + syncExecuteTool(); + } + + public static void syncExecuteTool() 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 + ToolServiceStubSettings.Builder toolServiceSettingsBuilder = + ToolServiceStubSettings.newBuilder(); + toolServiceSettingsBuilder + .executeToolSettings() + .setRetrySettings( + toolServiceSettingsBuilder + .executeToolSettings() + .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()); + ToolServiceStubSettings toolServiceSettings = toolServiceSettingsBuilder.build(); + } +} +// [END ces_v1_generated_ToolServiceStubSettings_ExecuteTool_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/stub/widgetservicestubsettings/generatechattoken/SyncGenerateChatToken.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/stub/widgetservicestubsettings/generatechattoken/SyncGenerateChatToken.java new file mode 100644 index 000000000000..935d252a5049 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/stub/widgetservicestubsettings/generatechattoken/SyncGenerateChatToken.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.stub.samples; + +// [START ces_v1_generated_WidgetServiceStubSettings_GenerateChatToken_sync] +import com.google.cloud.ces.v1.stub.WidgetServiceStubSettings; +import java.time.Duration; + +public class SyncGenerateChatToken { + + public static void main(String[] args) throws Exception { + syncGenerateChatToken(); + } + + public static void syncGenerateChatToken() 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 + WidgetServiceStubSettings.Builder widgetServiceSettingsBuilder = + WidgetServiceStubSettings.newBuilder(); + widgetServiceSettingsBuilder + .generateChatTokenSettings() + .setRetrySettings( + widgetServiceSettingsBuilder + .generateChatTokenSettings() + .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()); + WidgetServiceStubSettings widgetServiceSettings = widgetServiceSettingsBuilder.build(); + } +} +// [END ces_v1_generated_WidgetServiceStubSettings_GenerateChatToken_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/create/SyncCreateSetCredentialsProvider.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..823053de11fd --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_ToolService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.ces.v1.ToolServiceClient; +import com.google.cloud.ces.v1.ToolServiceSettings; +import com.google.cloud.ces.v1.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 + ToolServiceSettings toolServiceSettings = + ToolServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + ToolServiceClient toolServiceClient = ToolServiceClient.create(toolServiceSettings); + } +} +// [END ces_v1_generated_ToolService_Create_SetCredentialsProvider_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/create/SyncCreateSetEndpoint.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..22967ebd9c49 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,41 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_ToolService_Create_SetEndpoint_sync] +import com.google.cloud.ces.v1.ToolServiceClient; +import com.google.cloud.ces.v1.ToolServiceSettings; +import com.google.cloud.ces.v1.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 + ToolServiceSettings toolServiceSettings = + ToolServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + ToolServiceClient toolServiceClient = ToolServiceClient.create(toolServiceSettings); + } +} +// [END ces_v1_generated_ToolService_Create_SetEndpoint_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/create/SyncCreateUseHttpJsonTransport.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..371cba318932 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_ToolService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.ces.v1.ToolServiceClient; +import com.google.cloud.ces.v1.ToolServiceSettings; + +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 + ToolServiceSettings toolServiceSettings = ToolServiceSettings.newHttpJsonBuilder().build(); + ToolServiceClient toolServiceClient = ToolServiceClient.create(toolServiceSettings); + } +} +// [END ces_v1_generated_ToolService_Create_UseHttpJsonTransport_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/executetool/AsyncExecuteTool.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/executetool/AsyncExecuteTool.java new file mode 100644 index 000000000000..7875be09e71f --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/executetool/AsyncExecuteTool.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_ToolService_ExecuteTool_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.ExecuteToolRequest; +import com.google.cloud.ces.v1.ExecuteToolResponse; +import com.google.cloud.ces.v1.ToolServiceClient; +import com.google.protobuf.Struct; + +public class AsyncExecuteTool { + + public static void main(String[] args) throws Exception { + asyncExecuteTool(); + } + + public static void asyncExecuteTool() 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 (ToolServiceClient toolServiceClient = ToolServiceClient.create()) { + ExecuteToolRequest request = + ExecuteToolRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setArgs(Struct.newBuilder().build()) + .build(); + ApiFuture future = + toolServiceClient.executeToolCallable().futureCall(request); + // Do something. + ExecuteToolResponse response = future.get(); + } + } +} +// [END ces_v1_generated_ToolService_ExecuteTool_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/executetool/SyncExecuteTool.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/executetool/SyncExecuteTool.java new file mode 100644 index 000000000000..203f559cf18a --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/executetool/SyncExecuteTool.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_ToolService_ExecuteTool_sync] +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.ExecuteToolRequest; +import com.google.cloud.ces.v1.ExecuteToolResponse; +import com.google.cloud.ces.v1.ToolServiceClient; +import com.google.protobuf.Struct; + +public class SyncExecuteTool { + + public static void main(String[] args) throws Exception { + syncExecuteTool(); + } + + public static void syncExecuteTool() 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 (ToolServiceClient toolServiceClient = ToolServiceClient.create()) { + ExecuteToolRequest request = + ExecuteToolRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setArgs(Struct.newBuilder().build()) + .build(); + ExecuteToolResponse response = toolServiceClient.executeTool(request); + } + } +} +// [END ces_v1_generated_ToolService_ExecuteTool_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/getlocation/AsyncGetLocation.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..c0cd68cf5485 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/getlocation/AsyncGetLocation.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_ToolService_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.ToolServiceClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +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 (ToolServiceClient toolServiceClient = ToolServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = toolServiceClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END ces_v1_generated_ToolService_GetLocation_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/getlocation/SyncGetLocation.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..1ad1b94fb2dd --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/getlocation/SyncGetLocation.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_ToolService_GetLocation_sync] +import com.google.cloud.ces.v1.ToolServiceClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +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 (ToolServiceClient toolServiceClient = ToolServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = toolServiceClient.getLocation(request); + } + } +} +// [END ces_v1_generated_ToolService_GetLocation_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/listlocations/AsyncListLocations.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..daee2be0462e --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/listlocations/AsyncListLocations.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_ToolService_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.ToolServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +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 (ToolServiceClient toolServiceClient = ToolServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + toolServiceClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_ToolService_ListLocations_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/listlocations/AsyncListLocationsPaged.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..c8c256f2acc2 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_ToolService_ListLocations_Paged_async] +import com.google.cloud.ces.v1.ToolServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.base.Strings; + +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 (ToolServiceClient toolServiceClient = ToolServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = toolServiceClient.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 ces_v1_generated_ToolService_ListLocations_Paged_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/listlocations/SyncListLocations.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..05c82a2383c0 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/listlocations/SyncListLocations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_ToolService_ListLocations_sync] +import com.google.cloud.ces.v1.ToolServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +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 (ToolServiceClient toolServiceClient = ToolServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : toolServiceClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_ToolService_ListLocations_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/retrievetools/AsyncRetrieveTools.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/retrievetools/AsyncRetrieveTools.java new file mode 100644 index 000000000000..cce14bc4fcff --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/retrievetools/AsyncRetrieveTools.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_ToolService_RetrieveTools_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.RetrieveToolsRequest; +import com.google.cloud.ces.v1.RetrieveToolsResponse; +import com.google.cloud.ces.v1.ToolServiceClient; +import com.google.cloud.ces.v1.ToolsetName; +import java.util.ArrayList; + +public class AsyncRetrieveTools { + + public static void main(String[] args) throws Exception { + asyncRetrieveTools(); + } + + public static void asyncRetrieveTools() 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 (ToolServiceClient toolServiceClient = ToolServiceClient.create()) { + RetrieveToolsRequest request = + RetrieveToolsRequest.newBuilder() + .setToolset( + ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) + .addAllToolIds(new ArrayList()) + .build(); + ApiFuture future = + toolServiceClient.retrieveToolsCallable().futureCall(request); + // Do something. + RetrieveToolsResponse response = future.get(); + } + } +} +// [END ces_v1_generated_ToolService_RetrieveTools_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/retrievetools/SyncRetrieveTools.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/retrievetools/SyncRetrieveTools.java new file mode 100644 index 000000000000..cc8c7400cde3 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/retrievetools/SyncRetrieveTools.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_ToolService_RetrieveTools_sync] +import com.google.cloud.ces.v1.RetrieveToolsRequest; +import com.google.cloud.ces.v1.RetrieveToolsResponse; +import com.google.cloud.ces.v1.ToolServiceClient; +import com.google.cloud.ces.v1.ToolsetName; +import java.util.ArrayList; + +public class SyncRetrieveTools { + + public static void main(String[] args) throws Exception { + syncRetrieveTools(); + } + + public static void syncRetrieveTools() 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 (ToolServiceClient toolServiceClient = ToolServiceClient.create()) { + RetrieveToolsRequest request = + RetrieveToolsRequest.newBuilder() + .setToolset( + ToolsetName.of("[PROJECT]", "[LOCATION]", "[APP]", "[TOOLSET]").toString()) + .addAllToolIds(new ArrayList()) + .build(); + RetrieveToolsResponse response = toolServiceClient.retrieveTools(request); + } + } +} +// [END ces_v1_generated_ToolService_RetrieveTools_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/retrievetoolschema/AsyncRetrieveToolSchema.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/retrievetoolschema/AsyncRetrieveToolSchema.java new file mode 100644 index 000000000000..11bf79342c24 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/retrievetoolschema/AsyncRetrieveToolSchema.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_ToolService_RetrieveToolSchema_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.RetrieveToolSchemaRequest; +import com.google.cloud.ces.v1.RetrieveToolSchemaResponse; +import com.google.cloud.ces.v1.ToolServiceClient; + +public class AsyncRetrieveToolSchema { + + public static void main(String[] args) throws Exception { + asyncRetrieveToolSchema(); + } + + public static void asyncRetrieveToolSchema() 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 (ToolServiceClient toolServiceClient = ToolServiceClient.create()) { + RetrieveToolSchemaRequest request = + RetrieveToolSchemaRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .build(); + ApiFuture future = + toolServiceClient.retrieveToolSchemaCallable().futureCall(request); + // Do something. + RetrieveToolSchemaResponse response = future.get(); + } + } +} +// [END ces_v1_generated_ToolService_RetrieveToolSchema_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/retrievetoolschema/SyncRetrieveToolSchema.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/retrievetoolschema/SyncRetrieveToolSchema.java new file mode 100644 index 000000000000..b64f68d5feca --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservice/retrievetoolschema/SyncRetrieveToolSchema.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_ToolService_RetrieveToolSchema_sync] +import com.google.cloud.ces.v1.AppName; +import com.google.cloud.ces.v1.RetrieveToolSchemaRequest; +import com.google.cloud.ces.v1.RetrieveToolSchemaResponse; +import com.google.cloud.ces.v1.ToolServiceClient; + +public class SyncRetrieveToolSchema { + + public static void main(String[] args) throws Exception { + syncRetrieveToolSchema(); + } + + public static void syncRetrieveToolSchema() 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 (ToolServiceClient toolServiceClient = ToolServiceClient.create()) { + RetrieveToolSchemaRequest request = + RetrieveToolSchemaRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .build(); + RetrieveToolSchemaResponse response = toolServiceClient.retrieveToolSchema(request); + } + } +} +// [END ces_v1_generated_ToolService_RetrieveToolSchema_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservicesettings/executetool/SyncExecuteTool.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservicesettings/executetool/SyncExecuteTool.java new file mode 100644 index 000000000000..6b99453ea09b --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/toolservicesettings/executetool/SyncExecuteTool.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_ToolServiceSettings_ExecuteTool_sync] +import com.google.cloud.ces.v1.ToolServiceSettings; +import java.time.Duration; + +public class SyncExecuteTool { + + public static void main(String[] args) throws Exception { + syncExecuteTool(); + } + + public static void syncExecuteTool() 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 + ToolServiceSettings.Builder toolServiceSettingsBuilder = ToolServiceSettings.newBuilder(); + toolServiceSettingsBuilder + .executeToolSettings() + .setRetrySettings( + toolServiceSettingsBuilder + .executeToolSettings() + .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()); + ToolServiceSettings toolServiceSettings = toolServiceSettingsBuilder.build(); + } +} +// [END ces_v1_generated_ToolServiceSettings_ExecuteTool_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/create/SyncCreateSetCredentialsProvider.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..8f2649f08d31 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_WidgetService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.ces.v1.WidgetServiceClient; +import com.google.cloud.ces.v1.WidgetServiceSettings; +import com.google.cloud.ces.v1.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 + WidgetServiceSettings widgetServiceSettings = + WidgetServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + WidgetServiceClient widgetServiceClient = WidgetServiceClient.create(widgetServiceSettings); + } +} +// [END ces_v1_generated_WidgetService_Create_SetCredentialsProvider_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/create/SyncCreateSetEndpoint.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..9728e63e0a9c --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,41 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_WidgetService_Create_SetEndpoint_sync] +import com.google.cloud.ces.v1.WidgetServiceClient; +import com.google.cloud.ces.v1.WidgetServiceSettings; +import com.google.cloud.ces.v1.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 + WidgetServiceSettings widgetServiceSettings = + WidgetServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + WidgetServiceClient widgetServiceClient = WidgetServiceClient.create(widgetServiceSettings); + } +} +// [END ces_v1_generated_WidgetService_Create_SetEndpoint_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/create/SyncCreateUseHttpJsonTransport.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..bd54c07d9097 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_WidgetService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.ces.v1.WidgetServiceClient; +import com.google.cloud.ces.v1.WidgetServiceSettings; + +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 + WidgetServiceSettings widgetServiceSettings = + WidgetServiceSettings.newHttpJsonBuilder().build(); + WidgetServiceClient widgetServiceClient = WidgetServiceClient.create(widgetServiceSettings); + } +} +// [END ces_v1_generated_WidgetService_Create_UseHttpJsonTransport_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/generatechattoken/AsyncGenerateChatToken.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/generatechattoken/AsyncGenerateChatToken.java new file mode 100644 index 000000000000..22b175123a80 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/generatechattoken/AsyncGenerateChatToken.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_WidgetService_GenerateChatToken_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.DeploymentName; +import com.google.cloud.ces.v1.GenerateChatTokenRequest; +import com.google.cloud.ces.v1.GenerateChatTokenResponse; +import com.google.cloud.ces.v1.SessionName; +import com.google.cloud.ces.v1.WidgetServiceClient; + +public class AsyncGenerateChatToken { + + public static void main(String[] args) throws Exception { + asyncGenerateChatToken(); + } + + public static void asyncGenerateChatToken() 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 (WidgetServiceClient widgetServiceClient = WidgetServiceClient.create()) { + GenerateChatTokenRequest request = + GenerateChatTokenRequest.newBuilder() + .setName(SessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[SESSION]").toString()) + .setDeployment( + DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) + .setRecaptchaToken("recaptchaToken1978277202") + .build(); + ApiFuture future = + widgetServiceClient.generateChatTokenCallable().futureCall(request); + // Do something. + GenerateChatTokenResponse response = future.get(); + } + } +} +// [END ces_v1_generated_WidgetService_GenerateChatToken_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/generatechattoken/SyncGenerateChatToken.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/generatechattoken/SyncGenerateChatToken.java new file mode 100644 index 000000000000..05a87ab7944b --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/generatechattoken/SyncGenerateChatToken.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_WidgetService_GenerateChatToken_sync] +import com.google.cloud.ces.v1.DeploymentName; +import com.google.cloud.ces.v1.GenerateChatTokenRequest; +import com.google.cloud.ces.v1.GenerateChatTokenResponse; +import com.google.cloud.ces.v1.SessionName; +import com.google.cloud.ces.v1.WidgetServiceClient; + +public class SyncGenerateChatToken { + + public static void main(String[] args) throws Exception { + syncGenerateChatToken(); + } + + public static void syncGenerateChatToken() 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 (WidgetServiceClient widgetServiceClient = WidgetServiceClient.create()) { + GenerateChatTokenRequest request = + GenerateChatTokenRequest.newBuilder() + .setName(SessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[SESSION]").toString()) + .setDeployment( + DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) + .setRecaptchaToken("recaptchaToken1978277202") + .build(); + GenerateChatTokenResponse response = widgetServiceClient.generateChatToken(request); + } + } +} +// [END ces_v1_generated_WidgetService_GenerateChatToken_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/getlocation/AsyncGetLocation.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..653155948c44 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/getlocation/AsyncGetLocation.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_WidgetService_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.WidgetServiceClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +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 (WidgetServiceClient widgetServiceClient = WidgetServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = widgetServiceClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END ces_v1_generated_WidgetService_GetLocation_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/getlocation/SyncGetLocation.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..d2750cbf859d --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/getlocation/SyncGetLocation.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_WidgetService_GetLocation_sync] +import com.google.cloud.ces.v1.WidgetServiceClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +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 (WidgetServiceClient widgetServiceClient = WidgetServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = widgetServiceClient.getLocation(request); + } + } +} +// [END ces_v1_generated_WidgetService_GetLocation_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/listlocations/AsyncListLocations.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..34f50807e65a --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/listlocations/AsyncListLocations.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_WidgetService_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1.WidgetServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +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 (WidgetServiceClient widgetServiceClient = WidgetServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + widgetServiceClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_WidgetService_ListLocations_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/listlocations/AsyncListLocationsPaged.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..89f977070a35 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_WidgetService_ListLocations_Paged_async] +import com.google.cloud.ces.v1.WidgetServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.base.Strings; + +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 (WidgetServiceClient widgetServiceClient = WidgetServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = widgetServiceClient.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 ces_v1_generated_WidgetService_ListLocations_Paged_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/listlocations/SyncListLocations.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..f1f443de849f --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservice/listlocations/SyncListLocations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_WidgetService_ListLocations_sync] +import com.google.cloud.ces.v1.WidgetServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +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 (WidgetServiceClient widgetServiceClient = WidgetServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : widgetServiceClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END ces_v1_generated_WidgetService_ListLocations_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservicesettings/generatechattoken/SyncGenerateChatToken.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservicesettings/generatechattoken/SyncGenerateChatToken.java new file mode 100644 index 000000000000..beb4dd0e3206 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1/widgetservicesettings/generatechattoken/SyncGenerateChatToken.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1.samples; + +// [START ces_v1_generated_WidgetServiceSettings_GenerateChatToken_sync] +import com.google.cloud.ces.v1.WidgetServiceSettings; +import java.time.Duration; + +public class SyncGenerateChatToken { + + public static void main(String[] args) throws Exception { + syncGenerateChatToken(); + } + + public static void syncGenerateChatToken() 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 + WidgetServiceSettings.Builder widgetServiceSettingsBuilder = WidgetServiceSettings.newBuilder(); + widgetServiceSettingsBuilder + .generateChatTokenSettings() + .setRetrySettings( + widgetServiceSettingsBuilder + .generateChatTokenSettings() + .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()); + WidgetServiceSettings widgetServiceSettings = widgetServiceSettingsBuilder.build(); + } +} +// [END ces_v1_generated_WidgetServiceSettings_GenerateChatToken_sync] diff --git a/java-channel/README.md b/java-channel/README.md index b23225bd17ae..d2a0b64191c0 100644 --- a/java-channel/README.md +++ b/java-channel/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-channel - 3.86.0 + 3.87.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-channel:3.86.0' +implementation 'com.google.cloud:google-cloud-channel:3.87.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.86.0" +libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.87.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-channel/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-channel.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.86.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.87.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-channel/google-cloud-channel-bom/pom.xml b/java-channel/google-cloud-channel-bom/pom.xml index 0ff129e52aa5..ddb12fde3b4c 100644 --- a/java-channel/google-cloud-channel-bom/pom.xml +++ b/java-channel/google-cloud-channel-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-channel-bom - 3.88.0-SNAPSHOT + 3.89.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-channel - 3.88.0-SNAPSHOT + 3.89.0 com.google.api.grpc grpc-google-cloud-channel-v1 - 3.88.0-SNAPSHOT + 3.89.0 com.google.api.grpc proto-google-cloud-channel-v1 - 3.88.0-SNAPSHOT + 3.89.0 diff --git a/java-channel/google-cloud-channel/pom.xml b/java-channel/google-cloud-channel/pom.xml index d6053211f639..e7f50b580c57 100644 --- a/java-channel/google-cloud-channel/pom.xml +++ b/java-channel/google-cloud-channel/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-channel - 3.88.0-SNAPSHOT + 3.89.0 jar Google Channel Services With Channel Services, Google Cloud partners and resellers have a single unified resale platform, with a unified resale catalog, customer management, order management, billing management, policy and authorization management, and cost management. com.google.cloud google-cloud-channel-parent - 3.88.0-SNAPSHOT + 3.89.0 google-cloud-channel diff --git a/java-channel/grpc-google-cloud-channel-v1/pom.xml b/java-channel/grpc-google-cloud-channel-v1/pom.xml index d0257703e197..18e8d506dc77 100644 --- a/java-channel/grpc-google-cloud-channel-v1/pom.xml +++ b/java-channel/grpc-google-cloud-channel-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-channel-v1 - 3.88.0-SNAPSHOT + 3.89.0 grpc-google-cloud-channel-v1 GRPC library for google-cloud-channel com.google.cloud google-cloud-channel-parent - 3.88.0-SNAPSHOT + 3.89.0 diff --git a/java-channel/pom.xml b/java-channel/pom.xml index 0ab591932299..fd4b56b757bf 100644 --- a/java-channel/pom.xml +++ b/java-channel/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-channel-parent pom - 3.88.0-SNAPSHOT + 3.89.0 Google Channel Services Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-channel - 3.88.0-SNAPSHOT + 3.89.0 com.google.api.grpc proto-google-cloud-channel-v1 - 3.88.0-SNAPSHOT + 3.89.0 com.google.api.grpc grpc-google-cloud-channel-v1 - 3.88.0-SNAPSHOT + 3.89.0 diff --git a/java-channel/proto-google-cloud-channel-v1/pom.xml b/java-channel/proto-google-cloud-channel-v1/pom.xml index faf6d4ccbed5..d358fb47b0a1 100644 --- a/java-channel/proto-google-cloud-channel-v1/pom.xml +++ b/java-channel/proto-google-cloud-channel-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-channel-v1 - 3.88.0-SNAPSHOT + 3.89.0 proto-google-cloud-channel-v1 Proto library for google-cloud-channel com.google.cloud google-cloud-channel-parent - 3.88.0-SNAPSHOT + 3.89.0 diff --git a/java-chat/README.md b/java-chat/README.md index c41baa886e91..af6aa04f9c89 100644 --- a/java-chat/README.md +++ b/java-chat/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-chat - 0.46.0 + 0.47.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-chat:0.46.0' +implementation 'com.google.cloud:google-cloud-chat:0.47.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-chat" % "0.46.0" +libraryDependencies += "com.google.cloud" % "google-cloud-chat" % "0.47.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-chat/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-chat.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chat/0.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chat/0.47.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-chat/google-cloud-chat-bom/pom.xml b/java-chat/google-cloud-chat-bom/pom.xml index 23c7270ef2d6..049427715537 100644 --- a/java-chat/google-cloud-chat-bom/pom.xml +++ b/java-chat/google-cloud-chat-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-chat-bom - 0.48.0-SNAPSHOT + 0.49.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-chat - 0.48.0-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-chat-v1 - 0.48.0-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-chat-v1 - 0.48.0-SNAPSHOT + 0.49.0 diff --git a/java-chat/google-cloud-chat/pom.xml b/java-chat/google-cloud-chat/pom.xml index 06ba12e9808c..e6dfbf2d20b9 100644 --- a/java-chat/google-cloud-chat/pom.xml +++ b/java-chat/google-cloud-chat/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-chat - 0.48.0-SNAPSHOT + 0.49.0 jar Google Google Chat API Google Chat API The Google Chat API lets you build Chat apps to integrate your services with Google Chat and manage Chat resources such as spaces, members, and messages. com.google.cloud google-cloud-chat-parent - 0.48.0-SNAPSHOT + 0.49.0 google-cloud-chat diff --git a/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json b/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json index 56a67f263eaf..4199feff2f45 100644 --- a/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json +++ b/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json @@ -2213,6 +2213,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.chat.v1.ForwardedMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.ForwardedMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.chat.v1.GetAttachmentRequest", "queryAllDeclaredConstructors": true, @@ -2960,6 +2978,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.chat.v1.QuotedMessageMetadata$QuoteType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.QuotedMessageSnapshot", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.QuotedMessageSnapshot$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.chat.v1.Reaction", "queryAllDeclaredConstructors": true, diff --git a/java-chat/grpc-google-cloud-chat-v1/pom.xml b/java-chat/grpc-google-cloud-chat-v1/pom.xml index b69cce5de028..0076ad6a178e 100644 --- a/java-chat/grpc-google-cloud-chat-v1/pom.xml +++ b/java-chat/grpc-google-cloud-chat-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-chat-v1 - 0.48.0-SNAPSHOT + 0.49.0 grpc-google-cloud-chat-v1 GRPC library for google-cloud-chat com.google.cloud google-cloud-chat-parent - 0.48.0-SNAPSHOT + 0.49.0 diff --git a/java-chat/pom.xml b/java-chat/pom.xml index 5741650b3f93..b07ccf1f9122 100644 --- a/java-chat/pom.xml +++ b/java-chat/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-chat-parent pom - 0.48.0-SNAPSHOT + 0.49.0 Google Google Chat API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-chat - 0.48.0-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-chat-v1 - 0.48.0-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-chat-v1 - 0.48.0-SNAPSHOT + 0.49.0 diff --git a/java-chat/proto-google-cloud-chat-v1/pom.xml b/java-chat/proto-google-cloud-chat-v1/pom.xml index 5ee7b3d7ae1c..23e6bc889f20 100644 --- a/java-chat/proto-google-cloud-chat-v1/pom.xml +++ b/java-chat/proto-google-cloud-chat-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-chat-v1 - 0.48.0-SNAPSHOT + 0.49.0 proto-google-cloud-chat-v1 Proto library for google-cloud-chat com.google.cloud google-cloud-chat-parent - 0.48.0-SNAPSHOT + 0.49.0 diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java index b262a0140481..400768f29885 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java @@ -398,7 +398,7 @@ public com.google.chat.v1.MessageOrBuilder getMessageOrBuilder() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=539 + * google/chat/v1/message.proto;l=613 * @return The threadKey. */ @java.lang.Override @@ -432,7 +432,7 @@ public java.lang.String getThreadKey() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=539 + * google/chat/v1/message.proto;l=613 * @return The bytes for threadKey. */ @java.lang.Override @@ -1435,7 +1435,7 @@ public com.google.chat.v1.MessageOrBuilder getMessageOrBuilder() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=539 + * google/chat/v1/message.proto;l=613 * @return The threadKey. */ @java.lang.Deprecated @@ -1468,7 +1468,7 @@ public java.lang.String getThreadKey() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=539 + * google/chat/v1/message.proto;l=613 * @return The bytes for threadKey. */ @java.lang.Deprecated @@ -1501,7 +1501,7 @@ public com.google.protobuf.ByteString getThreadKeyBytes() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=539 + * google/chat/v1/message.proto;l=613 * @param value The threadKey to set. * @return This builder for chaining. */ @@ -1533,7 +1533,7 @@ public Builder setThreadKey(java.lang.String value) { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=539 + * google/chat/v1/message.proto;l=613 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1561,7 +1561,7 @@ public Builder clearThreadKey() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=539 + * google/chat/v1/message.proto;l=613 * @param value The bytes for threadKey to set. * @return This builder for chaining. */ diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java index 7f3d72396c5d..99a22fdf9566 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java @@ -114,7 +114,7 @@ public interface CreateMessageRequestOrBuilder * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=539 + * google/chat/v1/message.proto;l=613 * @return The threadKey. */ @java.lang.Deprecated @@ -137,7 +137,7 @@ public interface CreateMessageRequestOrBuilder * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=539 + * google/chat/v1/message.proto;l=613 * @return The bytes for threadKey. */ @java.lang.Deprecated diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ForwardedMetadata.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ForwardedMetadata.java new file mode 100644 index 000000000000..c68d3e6e814f --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ForwardedMetadata.java @@ -0,0 +1,830 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/message.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +/** + * + * + *
      + * Metadata about the source space from which a message was forwarded.
      + * 
      + * + * Protobuf type {@code google.chat.v1.ForwardedMetadata} + */ +@com.google.protobuf.Generated +public final class ForwardedMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.ForwardedMetadata) + ForwardedMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ForwardedMetadata"); + } + + // Use ForwardedMetadata.newBuilder() to construct. + private ForwardedMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ForwardedMetadata() { + space_ = ""; + spaceDisplayName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_ForwardedMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_ForwardedMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.ForwardedMetadata.class, + com.google.chat.v1.ForwardedMetadata.Builder.class); + } + + public static final int SPACE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object space_ = ""; + + /** + * + * + *
      +   * Output only. The resource name of the source space.
      +   * Format: spaces/{space}
      +   * 
      + * + * + * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The space. + */ + @java.lang.Override + public java.lang.String getSpace() { + java.lang.Object ref = space_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + space_ = s; + return s; + } + } + + /** + * + * + *
      +   * Output only. The resource name of the source space.
      +   * Format: spaces/{space}
      +   * 
      + * + * + * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for space. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSpaceBytes() { + java.lang.Object ref = space_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + space_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SPACE_DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object spaceDisplayName_ = ""; + + /** + * + * + *
      +   * Output only. The display name of the source space or DM at the time of
      +   * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this
      +   * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is
      +   * a generated name based on members' first names, limited to 5 including the
      +   * creator (e.g., "User A, User B").
      +   * 
      + * + * string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The spaceDisplayName. + */ + @java.lang.Override + public java.lang.String getSpaceDisplayName() { + java.lang.Object ref = spaceDisplayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + spaceDisplayName_ = s; + return s; + } + } + + /** + * + * + *
      +   * Output only. The display name of the source space or DM at the time of
      +   * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this
      +   * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is
      +   * a generated name based on members' first names, limited to 5 including the
      +   * creator (e.g., "User A, User B").
      +   * 
      + * + * string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for spaceDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSpaceDisplayNameBytes() { + java.lang.Object ref = spaceDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + spaceDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(space_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, space_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(spaceDisplayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, spaceDisplayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(space_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, space_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(spaceDisplayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, spaceDisplayName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.ForwardedMetadata)) { + return super.equals(obj); + } + com.google.chat.v1.ForwardedMetadata other = (com.google.chat.v1.ForwardedMetadata) obj; + + if (!getSpace().equals(other.getSpace())) return false; + if (!getSpaceDisplayName().equals(other.getSpaceDisplayName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SPACE_FIELD_NUMBER; + hash = (53 * hash) + getSpace().hashCode(); + hash = (37 * hash) + SPACE_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getSpaceDisplayName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.ForwardedMetadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.ForwardedMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.ForwardedMetadata parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.ForwardedMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.ForwardedMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.ForwardedMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.ForwardedMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.ForwardedMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.ForwardedMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.ForwardedMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.ForwardedMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.ForwardedMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.ForwardedMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Metadata about the source space from which a message was forwarded.
      +   * 
      + * + * Protobuf type {@code google.chat.v1.ForwardedMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.ForwardedMetadata) + com.google.chat.v1.ForwardedMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_ForwardedMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_ForwardedMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.ForwardedMetadata.class, + com.google.chat.v1.ForwardedMetadata.Builder.class); + } + + // Construct using com.google.chat.v1.ForwardedMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + space_ = ""; + spaceDisplayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_ForwardedMetadata_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.ForwardedMetadata getDefaultInstanceForType() { + return com.google.chat.v1.ForwardedMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.ForwardedMetadata build() { + com.google.chat.v1.ForwardedMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.ForwardedMetadata buildPartial() { + com.google.chat.v1.ForwardedMetadata result = new com.google.chat.v1.ForwardedMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.chat.v1.ForwardedMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.space_ = space_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.spaceDisplayName_ = spaceDisplayName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.ForwardedMetadata) { + return mergeFrom((com.google.chat.v1.ForwardedMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.ForwardedMetadata other) { + if (other == com.google.chat.v1.ForwardedMetadata.getDefaultInstance()) return this; + if (!other.getSpace().isEmpty()) { + space_ = other.space_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSpaceDisplayName().isEmpty()) { + spaceDisplayName_ = other.spaceDisplayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + space_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + spaceDisplayName_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object space_ = ""; + + /** + * + * + *
      +     * Output only. The resource name of the source space.
      +     * Format: spaces/{space}
      +     * 
      + * + * + * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The space. + */ + public java.lang.String getSpace() { + java.lang.Object ref = space_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + space_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Output only. The resource name of the source space.
      +     * Format: spaces/{space}
      +     * 
      + * + * + * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for space. + */ + public com.google.protobuf.ByteString getSpaceBytes() { + java.lang.Object ref = space_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + space_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Output only. The resource name of the source space.
      +     * Format: spaces/{space}
      +     * 
      + * + * + * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The space to set. + * @return This builder for chaining. + */ + public Builder setSpace(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + space_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The resource name of the source space.
      +     * Format: spaces/{space}
      +     * 
      + * + * + * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearSpace() { + space_ = getDefaultInstance().getSpace(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The resource name of the source space.
      +     * Format: spaces/{space}
      +     * 
      + * + * + * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for space to set. + * @return This builder for chaining. + */ + public Builder setSpaceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + space_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object spaceDisplayName_ = ""; + + /** + * + * + *
      +     * Output only. The display name of the source space or DM at the time of
      +     * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this
      +     * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is
      +     * a generated name based on members' first names, limited to 5 including the
      +     * creator (e.g., "User A, User B").
      +     * 
      + * + * string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The spaceDisplayName. + */ + public java.lang.String getSpaceDisplayName() { + java.lang.Object ref = spaceDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + spaceDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Output only. The display name of the source space or DM at the time of
      +     * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this
      +     * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is
      +     * a generated name based on members' first names, limited to 5 including the
      +     * creator (e.g., "User A, User B").
      +     * 
      + * + * string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for spaceDisplayName. + */ + public com.google.protobuf.ByteString getSpaceDisplayNameBytes() { + java.lang.Object ref = spaceDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + spaceDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Output only. The display name of the source space or DM at the time of
      +     * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this
      +     * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is
      +     * a generated name based on members' first names, limited to 5 including the
      +     * creator (e.g., "User A, User B").
      +     * 
      + * + * string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The spaceDisplayName to set. + * @return This builder for chaining. + */ + public Builder setSpaceDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + spaceDisplayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The display name of the source space or DM at the time of
      +     * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this
      +     * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is
      +     * a generated name based on members' first names, limited to 5 including the
      +     * creator (e.g., "User A, User B").
      +     * 
      + * + * string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSpaceDisplayName() { + spaceDisplayName_ = getDefaultInstance().getSpaceDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The display name of the source space or DM at the time of
      +     * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this
      +     * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is
      +     * a generated name based on members' first names, limited to 5 including the
      +     * creator (e.g., "User A, User B").
      +     * 
      + * + * string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for spaceDisplayName to set. + * @return This builder for chaining. + */ + public Builder setSpaceDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + spaceDisplayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.ForwardedMetadata) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.ForwardedMetadata) + private static final com.google.chat.v1.ForwardedMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.ForwardedMetadata(); + } + + public static com.google.chat.v1.ForwardedMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ForwardedMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.ForwardedMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ForwardedMetadataOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ForwardedMetadataOrBuilder.java new file mode 100644 index 000000000000..ab974d95de35 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ForwardedMetadataOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/message.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +@com.google.protobuf.Generated +public interface ForwardedMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.ForwardedMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Output only. The resource name of the source space.
      +   * Format: spaces/{space}
      +   * 
      + * + * + * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The space. + */ + java.lang.String getSpace(); + + /** + * + * + *
      +   * Output only. The resource name of the source space.
      +   * Format: spaces/{space}
      +   * 
      + * + * + * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for space. + */ + com.google.protobuf.ByteString getSpaceBytes(); + + /** + * + * + *
      +   * Output only. The display name of the source space or DM at the time of
      +   * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this
      +   * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is
      +   * a generated name based on members' first names, limited to 5 including the
      +   * creator (e.g., "User A, User B").
      +   * 
      + * + * string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The spaceDisplayName. + */ + java.lang.String getSpaceDisplayName(); + + /** + * + * + *
      +   * Output only. The display name of the source space or DM at the time of
      +   * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this
      +   * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is
      +   * a generated name based on members' first names, limited to 5 including the
      +   * creator (e.g., "User A, User B").
      +   * 
      + * + * string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for spaceDisplayName. + */ + com.google.protobuf.ByteString getSpaceDisplayNameBytes(); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java index 1cbdece1616a..115913969de9 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java @@ -52,6 +52,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_chat_v1_QuotedMessageMetadata_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_chat_v1_QuotedMessageMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_QuotedMessageSnapshot_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_chat_v1_QuotedMessageSnapshot_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_ForwardedMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_chat_v1_ForwardedMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_chat_v1_Thread_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -173,28 +181,48 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(\0132\037.google.chat.v1.AccessoryWidgetB\003\340A\001:C\352A@\n" + "\033chat.googleapis.com/Message\022!spaces/{space}/messages/{message}\"\037\n" + "\013AttachedGif\022\020\n" - + "\003uri\030\001 \001(\tB\003\340A\003\"\211\002\n" + + "\003uri\030\001 \001(\tB\003\340A\003\"\230\004\n" + "\025QuotedMessageMetadata\0221\n" + "\004name\030\001 \001(\tB#\340A\002\372A\035\n" + "\033chat.googleapis.com/Message\0229\n" + "\020last_update_time\030\002" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\002:\201\001\352A~\n" - + ")chat.googleapis.com/QuotedMessageMetadata\022Qspaces/{space}/messages/{messag" - + "e}/quotedMessageMetadata/{quoted_message_metadata}\"v\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\002\022H\n\n" + + "quote_type\030\004" + + " \001(\0162/.google.chat.v1.QuotedMessageMetadata.QuoteTypeB\003\340A\001\022K\n" + + "\027quoted_message_snapshot\030\005" + + " \001(\0132%.google.chat.v1.QuotedMessageSnapshotB\003\340A\003\022B\n" + + "\022forwarded_metadata\030\006" + + " \001(\0132!.google.chat.v1.ForwardedMetadataB\003\340A\003\"2\n" + + "\tQuoteType\022\032\n" + + "\026QUOTE_TYPE_UNSPECIFIED\020\000\022\t\n" + + "\005REPLY\020\001:\201\001\352A~\n" + + ")chat.googleapis.com/QuotedMessageMetadata\022Q" + + "spaces/{space}/messages/{message}/quoted" + + "MessageMetadata/{quoted_message_metadata}\"\310\001\n" + + "\025QuotedMessageSnapshot\022\023\n" + + "\006sender\030\001 \001(\tB\003\340A\003\022\021\n" + + "\004text\030\002 \001(\tB\003\340A\003\022\033\n" + + "\016formatted_text\030\003 \001(\tB\003\340A\003\0224\n" + + "\013annotations\030\004 \003(\0132\032.google.chat.v1.AnnotationB\003\340A\003\0224\n" + + "\013attachments\030\005 \003(\0132\032.google.chat.v1.AttachmentB\003\340A\003\"f\n" + + "\021ForwardedMetadata\0220\n" + + "\005space\030\001 \001(\tB!\340A\003\372A\033\n" + + "\031chat.googleapis.com/Space\022\037\n" + + "\022space_display_name\030\002 \001(\tB\003\340A\003\"v\n" + "\006Thread\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\027\n\n" + "thread_key\030\003 \001(\tB\003\340A\001:@\352A=\n" + "\032chat.googleapis.com/Thread\022\037spaces/{space}/threads/{thread}\"\322\004\n" + "\016ActionResponse\022>\n" - + "\004type\030\001 " - + "\001(\0162+.google.chat.v1.ActionResponse.ResponseTypeB\003\340A\004\022\020\n" + + "\004type\030\001" + + " \001(\0162+.google.chat.v1.ActionResponse.ResponseTypeB\003\340A\004\022\020\n" + "\003url\030\002 \001(\tB\003\340A\004\0228\n\r" + "dialog_action\030\003 \001(\0132\034.google.chat.v1.DialogActionB\003\340A\004\022I\n" - + "\016updated_widget\030\004 \001(\0132,.goog" - + "le.chat.v1.ActionResponse.UpdatedWidgetB\003\340A\004\032R\n" + + "\016updated_widget\030\004" + + " \001(\0132,.google.chat.v1.ActionResponse.UpdatedWidgetB\003\340A\004\032R\n" + "\016SelectionItems\022@\n" - + "\005items\030\001 \003(\01321." - + "google.apps.card.v1.SelectionInput.SelectionItem\032w\n\r" + + "\005items\030\001" + + " \003(\01321.google.apps.card.v1.SelectionInput.SelectionItem\032w\n\r" + "UpdatedWidget\022D\n" + "\013suggestions\030\001" + " \001(\0132-.google.chat.v1.ActionResponse.SelectionItemsH\000\022\016\n" @@ -229,8 +257,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007message\030\004 \001(\0132\027.google.chat.v1.MessageB\003\340A\002\022\031\n\n" + "thread_key\030\006 \001(\tB\005\030\001\340A\001\022\027\n\n" + "request_id\030\007 \001(\tB\003\340A\001\022Z\n" - + "\024message_reply_option\030\010 \001(\01627.google.chat.v1.Cr" - + "eateMessageRequest.MessageReplyOptionB\003\340A\001\022\027\n\n" + + "\024message_reply_option\030\010 \001(\01627" + + ".google.chat.v1.CreateMessageRequest.MessageReplyOptionB\003\340A\001\022\027\n\n" + "message_id\030\t \001(\tB\003\340A\001\"\177\n" + "\022MessageReplyOption\022$\n" + " MESSAGE_REPLY_OPTION_UNSPECIFIED\020\000\022(\n" @@ -256,10 +284,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "CardWithId\022\017\n" + "\007card_id\030\001 \001(\t\022\'\n" + "\004card\030\002 \001(\0132\031.google.apps.card.v1.CardB\245\001\n" - + "\022com.google.chat.v1B\014MessageProtoP\001Z,cloud.google.c" - + "om/go/chat/apiv1/chatpb;chatpb\242\002\013DYNAPIP" - + "roto\252\002\023Google.Apps.Chat.V1\312\002\023Google\\Apps" - + "\\Chat\\V1\352\002\026Google::Apps::Chat::V1b\006proto3" + + "\022com.google.chat.v1B\014MessageProtoP\001Z,cloud.google.com/go/chat/apiv1/chatp" + + "b;chatpb\242\002\013DYNAPIProto\252\002\023Google.Apps.Cha" + + "t.V1\312\002\023Google\\Apps\\Chat\\V1\352\002\026Google::Apps::Chat::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -326,16 +353,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_QuotedMessageMetadata_descriptor, new java.lang.String[] { - "Name", "LastUpdateTime", + "Name", "LastUpdateTime", "QuoteType", "QuotedMessageSnapshot", "ForwardedMetadata", + }); + internal_static_google_chat_v1_QuotedMessageSnapshot_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_chat_v1_QuotedMessageSnapshot_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_chat_v1_QuotedMessageSnapshot_descriptor, + new java.lang.String[] { + "Sender", "Text", "FormattedText", "Annotations", "Attachments", + }); + internal_static_google_chat_v1_ForwardedMetadata_descriptor = getDescriptor().getMessageType(4); + internal_static_google_chat_v1_ForwardedMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_chat_v1_ForwardedMetadata_descriptor, + new java.lang.String[] { + "Space", "SpaceDisplayName", }); - internal_static_google_chat_v1_Thread_descriptor = getDescriptor().getMessageType(3); + internal_static_google_chat_v1_Thread_descriptor = getDescriptor().getMessageType(5); internal_static_google_chat_v1_Thread_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_Thread_descriptor, new java.lang.String[] { "Name", "ThreadKey", }); - internal_static_google_chat_v1_ActionResponse_descriptor = getDescriptor().getMessageType(4); + internal_static_google_chat_v1_ActionResponse_descriptor = getDescriptor().getMessageType(6); internal_static_google_chat_v1_ActionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_ActionResponse_descriptor, @@ -358,14 +400,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Suggestions", "Widget", "UpdatedWidget", }); - internal_static_google_chat_v1_AccessoryWidget_descriptor = getDescriptor().getMessageType(5); + internal_static_google_chat_v1_AccessoryWidget_descriptor = getDescriptor().getMessageType(7); internal_static_google_chat_v1_AccessoryWidget_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_AccessoryWidget_descriptor, new java.lang.String[] { "ButtonList", "Action", }); - internal_static_google_chat_v1_GetMessageRequest_descriptor = getDescriptor().getMessageType(6); + internal_static_google_chat_v1_GetMessageRequest_descriptor = getDescriptor().getMessageType(8); internal_static_google_chat_v1_GetMessageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_GetMessageRequest_descriptor, @@ -373,7 +415,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_chat_v1_DeleteMessageRequest_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(9); internal_static_google_chat_v1_DeleteMessageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_DeleteMessageRequest_descriptor, @@ -381,7 +423,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Force", }); internal_static_google_chat_v1_UpdateMessageRequest_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(10); internal_static_google_chat_v1_UpdateMessageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_UpdateMessageRequest_descriptor, @@ -389,7 +431,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Message", "UpdateMask", "AllowMissing", }); internal_static_google_chat_v1_CreateMessageRequest_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(11); internal_static_google_chat_v1_CreateMessageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_CreateMessageRequest_descriptor, @@ -397,7 +439,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Message", "ThreadKey", "RequestId", "MessageReplyOption", "MessageId", }); internal_static_google_chat_v1_ListMessagesRequest_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(12); internal_static_google_chat_v1_ListMessagesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_ListMessagesRequest_descriptor, @@ -405,28 +447,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "ShowDeleted", }); internal_static_google_chat_v1_ListMessagesResponse_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(13); internal_static_google_chat_v1_ListMessagesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_ListMessagesResponse_descriptor, new java.lang.String[] { "Messages", "NextPageToken", }); - internal_static_google_chat_v1_DialogAction_descriptor = getDescriptor().getMessageType(12); + internal_static_google_chat_v1_DialogAction_descriptor = getDescriptor().getMessageType(14); internal_static_google_chat_v1_DialogAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_DialogAction_descriptor, new java.lang.String[] { "Dialog", "ActionStatus", "Action", }); - internal_static_google_chat_v1_Dialog_descriptor = getDescriptor().getMessageType(13); + internal_static_google_chat_v1_Dialog_descriptor = getDescriptor().getMessageType(15); internal_static_google_chat_v1_Dialog_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_Dialog_descriptor, new java.lang.String[] { "Body", }); - internal_static_google_chat_v1_CardWithId_descriptor = getDescriptor().getMessageType(14); + internal_static_google_chat_v1_CardWithId_descriptor = getDescriptor().getMessageType(16); internal_static_google_chat_v1_CardWithId_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_CardWithId_descriptor, diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadata.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadata.java index de3b0b9ea651..9377b036a1bc 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadata.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadata.java @@ -63,6 +63,7 @@ private QuotedMessageMetadata(com.google.protobuf.GeneratedMessage.Builder bu private QuotedMessageMetadata() { name_ = ""; + quoteType_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -80,6 +81,168 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.chat.v1.QuotedMessageMetadata.Builder.class); } + /** + * + * + *
      +   * The quote type of the quoted message.
      +   * 
      + * + * Protobuf enum {@code google.chat.v1.QuotedMessageMetadata.QuoteType} + */ + public enum QuoteType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Reserved. This value is unused.
      +     * 
      + * + * QUOTE_TYPE_UNSPECIFIED = 0; + */ + QUOTE_TYPE_UNSPECIFIED(0), + /** + * + * + *
      +     * If quote_type is `REPLY`, you can do the following:
      +     *
      +     * * If you're replying in a thread, you can quote another message in that
      +     * thread.
      +     *
      +     * * If you're creating a root message, you can quote another root message
      +     * in that space.
      +     *
      +     * You can't quote a message reply from a different thread.
      +     * 
      + * + * REPLY = 1; + */ + REPLY(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QuoteType"); + } + + /** + * + * + *
      +     * Reserved. This value is unused.
      +     * 
      + * + * QUOTE_TYPE_UNSPECIFIED = 0; + */ + public static final int QUOTE_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * If quote_type is `REPLY`, you can do the following:
      +     *
      +     * * If you're replying in a thread, you can quote another message in that
      +     * thread.
      +     *
      +     * * If you're creating a root message, you can quote another root message
      +     * in that space.
      +     *
      +     * You can't quote a message reply from a different thread.
      +     * 
      + * + * REPLY = 1; + */ + public static final int REPLY_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static QuoteType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static QuoteType forNumber(int value) { + switch (value) { + case 0: + return QUOTE_TYPE_UNSPECIFIED; + case 1: + return REPLY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public QuoteType findValueByNumber(int number) { + return QuoteType.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.chat.v1.QuotedMessageMetadata.getDescriptor().getEnumTypes().get(0); + } + + private static final QuoteType[] VALUES = values(); + + public static QuoteType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private QuoteType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.chat.v1.QuotedMessageMetadata.QuoteType) + } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @@ -222,6 +385,172 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { : lastUpdateTime_; } + public static final int QUOTE_TYPE_FIELD_NUMBER = 4; + private int quoteType_ = 0; + + /** + * + * + *
      +   * Optional. Specifies the quote type. If not set, defaults to REPLY in the
      +   * message read/write path for backward compatibility.
      +   * 
      + * + * + * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for quoteType. + */ + @java.lang.Override + public int getQuoteTypeValue() { + return quoteType_; + } + + /** + * + * + *
      +   * Optional. Specifies the quote type. If not set, defaults to REPLY in the
      +   * message read/write path for backward compatibility.
      +   * 
      + * + * + * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The quoteType. + */ + @java.lang.Override + public com.google.chat.v1.QuotedMessageMetadata.QuoteType getQuoteType() { + com.google.chat.v1.QuotedMessageMetadata.QuoteType result = + com.google.chat.v1.QuotedMessageMetadata.QuoteType.forNumber(quoteType_); + return result == null + ? com.google.chat.v1.QuotedMessageMetadata.QuoteType.UNRECOGNIZED + : result; + } + + public static final int QUOTED_MESSAGE_SNAPSHOT_FIELD_NUMBER = 5; + private com.google.chat.v1.QuotedMessageSnapshot quotedMessageSnapshot_; + + /** + * + * + *
      +   * Output only. A snapshot of the quoted message's content.
      +   * 
      + * + * + * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the quotedMessageSnapshot field is set. + */ + @java.lang.Override + public boolean hasQuotedMessageSnapshot() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
      +   * Output only. A snapshot of the quoted message's content.
      +   * 
      + * + * + * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The quotedMessageSnapshot. + */ + @java.lang.Override + public com.google.chat.v1.QuotedMessageSnapshot getQuotedMessageSnapshot() { + return quotedMessageSnapshot_ == null + ? com.google.chat.v1.QuotedMessageSnapshot.getDefaultInstance() + : quotedMessageSnapshot_; + } + + /** + * + * + *
      +   * Output only. A snapshot of the quoted message's content.
      +   * 
      + * + * + * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.chat.v1.QuotedMessageSnapshotOrBuilder getQuotedMessageSnapshotOrBuilder() { + return quotedMessageSnapshot_ == null + ? com.google.chat.v1.QuotedMessageSnapshot.getDefaultInstance() + : quotedMessageSnapshot_; + } + + public static final int FORWARDED_METADATA_FIELD_NUMBER = 6; + private com.google.chat.v1.ForwardedMetadata forwardedMetadata_; + + /** + * + * + *
      +   * Output only. Metadata about the source space of the quoted message.
      +   * Populated only for FORWARD quote type.
      +   * 
      + * + * + * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the forwardedMetadata field is set. + */ + @java.lang.Override + public boolean hasForwardedMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
      +   * Output only. Metadata about the source space of the quoted message.
      +   * Populated only for FORWARD quote type.
      +   * 
      + * + * + * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The forwardedMetadata. + */ + @java.lang.Override + public com.google.chat.v1.ForwardedMetadata getForwardedMetadata() { + return forwardedMetadata_ == null + ? com.google.chat.v1.ForwardedMetadata.getDefaultInstance() + : forwardedMetadata_; + } + + /** + * + * + *
      +   * Output only. Metadata about the source space of the quoted message.
      +   * Populated only for FORWARD quote type.
      +   * 
      + * + * + * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.chat.v1.ForwardedMetadataOrBuilder getForwardedMetadataOrBuilder() { + return forwardedMetadata_ == null + ? com.google.chat.v1.ForwardedMetadata.getDefaultInstance() + : forwardedMetadata_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -242,6 +571,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getLastUpdateTime()); } + if (quoteType_ + != com.google.chat.v1.QuotedMessageMetadata.QuoteType.QUOTE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, quoteType_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getQuotedMessageSnapshot()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getForwardedMetadata()); + } getUnknownFields().writeTo(output); } @@ -257,6 +596,17 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLastUpdateTime()); } + if (quoteType_ + != com.google.chat.v1.QuotedMessageMetadata.QuoteType.QUOTE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, quoteType_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getQuotedMessageSnapshot()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getForwardedMetadata()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -277,6 +627,15 @@ public boolean equals(final java.lang.Object obj) { if (hasLastUpdateTime()) { if (!getLastUpdateTime().equals(other.getLastUpdateTime())) return false; } + if (quoteType_ != other.quoteType_) return false; + if (hasQuotedMessageSnapshot() != other.hasQuotedMessageSnapshot()) return false; + if (hasQuotedMessageSnapshot()) { + if (!getQuotedMessageSnapshot().equals(other.getQuotedMessageSnapshot())) return false; + } + if (hasForwardedMetadata() != other.hasForwardedMetadata()) return false; + if (hasForwardedMetadata()) { + if (!getForwardedMetadata().equals(other.getForwardedMetadata())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -294,6 +653,16 @@ public int hashCode() { hash = (37 * hash) + LAST_UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getLastUpdateTime().hashCode(); } + hash = (37 * hash) + QUOTE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + quoteType_; + if (hasQuotedMessageSnapshot()) { + hash = (37 * hash) + QUOTED_MESSAGE_SNAPSHOT_FIELD_NUMBER; + hash = (53 * hash) + getQuotedMessageSnapshot().hashCode(); + } + if (hasForwardedMetadata()) { + hash = (37 * hash) + FORWARDED_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getForwardedMetadata().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -446,6 +815,8 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetLastUpdateTimeFieldBuilder(); + internalGetQuotedMessageSnapshotFieldBuilder(); + internalGetForwardedMetadataFieldBuilder(); } } @@ -459,6 +830,17 @@ public Builder clear() { lastUpdateTimeBuilder_.dispose(); lastUpdateTimeBuilder_ = null; } + quoteType_ = 0; + quotedMessageSnapshot_ = null; + if (quotedMessageSnapshotBuilder_ != null) { + quotedMessageSnapshotBuilder_.dispose(); + quotedMessageSnapshotBuilder_ = null; + } + forwardedMetadata_ = null; + if (forwardedMetadataBuilder_ != null) { + forwardedMetadataBuilder_.dispose(); + forwardedMetadataBuilder_ = null; + } return this; } @@ -504,6 +886,23 @@ private void buildPartial0(com.google.chat.v1.QuotedMessageMetadata result) { lastUpdateTimeBuilder_ == null ? lastUpdateTime_ : lastUpdateTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.quoteType_ = quoteType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.quotedMessageSnapshot_ = + quotedMessageSnapshotBuilder_ == null + ? quotedMessageSnapshot_ + : quotedMessageSnapshotBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.forwardedMetadata_ = + forwardedMetadataBuilder_ == null + ? forwardedMetadata_ + : forwardedMetadataBuilder_.build(); + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -527,6 +926,15 @@ public Builder mergeFrom(com.google.chat.v1.QuotedMessageMetadata other) { if (other.hasLastUpdateTime()) { mergeLastUpdateTime(other.getLastUpdateTime()); } + if (other.quoteType_ != 0) { + setQuoteTypeValue(other.getQuoteTypeValue()); + } + if (other.hasQuotedMessageSnapshot()) { + mergeQuotedMessageSnapshot(other.getQuotedMessageSnapshot()); + } + if (other.hasForwardedMetadata()) { + mergeForwardedMetadata(other.getForwardedMetadata()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -566,6 +974,26 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 32: + { + quoteType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 42: + { + input.readMessage( + internalGetQuotedMessageSnapshotFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetForwardedMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -991,6 +1419,554 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { return lastUpdateTimeBuilder_; } + private int quoteType_ = 0; + + /** + * + * + *
      +     * Optional. Specifies the quote type. If not set, defaults to REPLY in the
      +     * message read/write path for backward compatibility.
      +     * 
      + * + * + * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for quoteType. + */ + @java.lang.Override + public int getQuoteTypeValue() { + return quoteType_; + } + + /** + * + * + *
      +     * Optional. Specifies the quote type. If not set, defaults to REPLY in the
      +     * message read/write path for backward compatibility.
      +     * 
      + * + * + * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for quoteType to set. + * @return This builder for chaining. + */ + public Builder setQuoteTypeValue(int value) { + quoteType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Specifies the quote type. If not set, defaults to REPLY in the
      +     * message read/write path for backward compatibility.
      +     * 
      + * + * + * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The quoteType. + */ + @java.lang.Override + public com.google.chat.v1.QuotedMessageMetadata.QuoteType getQuoteType() { + com.google.chat.v1.QuotedMessageMetadata.QuoteType result = + com.google.chat.v1.QuotedMessageMetadata.QuoteType.forNumber(quoteType_); + return result == null + ? com.google.chat.v1.QuotedMessageMetadata.QuoteType.UNRECOGNIZED + : result; + } + + /** + * + * + *
      +     * Optional. Specifies the quote type. If not set, defaults to REPLY in the
      +     * message read/write path for backward compatibility.
      +     * 
      + * + * + * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The quoteType to set. + * @return This builder for chaining. + */ + public Builder setQuoteType(com.google.chat.v1.QuotedMessageMetadata.QuoteType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + quoteType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. Specifies the quote type. If not set, defaults to REPLY in the
      +     * message read/write path for backward compatibility.
      +     * 
      + * + * + * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearQuoteType() { + bitField0_ = (bitField0_ & ~0x00000004); + quoteType_ = 0; + onChanged(); + return this; + } + + private com.google.chat.v1.QuotedMessageSnapshot quotedMessageSnapshot_; + private com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.QuotedMessageSnapshot, + com.google.chat.v1.QuotedMessageSnapshot.Builder, + com.google.chat.v1.QuotedMessageSnapshotOrBuilder> + quotedMessageSnapshotBuilder_; + + /** + * + * + *
      +     * Output only. A snapshot of the quoted message's content.
      +     * 
      + * + * + * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the quotedMessageSnapshot field is set. + */ + public boolean hasQuotedMessageSnapshot() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +     * Output only. A snapshot of the quoted message's content.
      +     * 
      + * + * + * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The quotedMessageSnapshot. + */ + public com.google.chat.v1.QuotedMessageSnapshot getQuotedMessageSnapshot() { + if (quotedMessageSnapshotBuilder_ == null) { + return quotedMessageSnapshot_ == null + ? com.google.chat.v1.QuotedMessageSnapshot.getDefaultInstance() + : quotedMessageSnapshot_; + } else { + return quotedMessageSnapshotBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. A snapshot of the quoted message's content.
      +     * 
      + * + * + * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setQuotedMessageSnapshot(com.google.chat.v1.QuotedMessageSnapshot value) { + if (quotedMessageSnapshotBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + quotedMessageSnapshot_ = value; + } else { + quotedMessageSnapshotBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. A snapshot of the quoted message's content.
      +     * 
      + * + * + * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setQuotedMessageSnapshot( + com.google.chat.v1.QuotedMessageSnapshot.Builder builderForValue) { + if (quotedMessageSnapshotBuilder_ == null) { + quotedMessageSnapshot_ = builderForValue.build(); + } else { + quotedMessageSnapshotBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. A snapshot of the quoted message's content.
      +     * 
      + * + * + * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeQuotedMessageSnapshot(com.google.chat.v1.QuotedMessageSnapshot value) { + if (quotedMessageSnapshotBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && quotedMessageSnapshot_ != null + && quotedMessageSnapshot_ + != com.google.chat.v1.QuotedMessageSnapshot.getDefaultInstance()) { + getQuotedMessageSnapshotBuilder().mergeFrom(value); + } else { + quotedMessageSnapshot_ = value; + } + } else { + quotedMessageSnapshotBuilder_.mergeFrom(value); + } + if (quotedMessageSnapshot_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. A snapshot of the quoted message's content.
      +     * 
      + * + * + * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearQuotedMessageSnapshot() { + bitField0_ = (bitField0_ & ~0x00000008); + quotedMessageSnapshot_ = null; + if (quotedMessageSnapshotBuilder_ != null) { + quotedMessageSnapshotBuilder_.dispose(); + quotedMessageSnapshotBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. A snapshot of the quoted message's content.
      +     * 
      + * + * + * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.chat.v1.QuotedMessageSnapshot.Builder getQuotedMessageSnapshotBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetQuotedMessageSnapshotFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. A snapshot of the quoted message's content.
      +     * 
      + * + * + * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.chat.v1.QuotedMessageSnapshotOrBuilder getQuotedMessageSnapshotOrBuilder() { + if (quotedMessageSnapshotBuilder_ != null) { + return quotedMessageSnapshotBuilder_.getMessageOrBuilder(); + } else { + return quotedMessageSnapshot_ == null + ? com.google.chat.v1.QuotedMessageSnapshot.getDefaultInstance() + : quotedMessageSnapshot_; + } + } + + /** + * + * + *
      +     * Output only. A snapshot of the quoted message's content.
      +     * 
      + * + * + * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.QuotedMessageSnapshot, + com.google.chat.v1.QuotedMessageSnapshot.Builder, + com.google.chat.v1.QuotedMessageSnapshotOrBuilder> + internalGetQuotedMessageSnapshotFieldBuilder() { + if (quotedMessageSnapshotBuilder_ == null) { + quotedMessageSnapshotBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.QuotedMessageSnapshot, + com.google.chat.v1.QuotedMessageSnapshot.Builder, + com.google.chat.v1.QuotedMessageSnapshotOrBuilder>( + getQuotedMessageSnapshot(), getParentForChildren(), isClean()); + quotedMessageSnapshot_ = null; + } + return quotedMessageSnapshotBuilder_; + } + + private com.google.chat.v1.ForwardedMetadata forwardedMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.ForwardedMetadata, + com.google.chat.v1.ForwardedMetadata.Builder, + com.google.chat.v1.ForwardedMetadataOrBuilder> + forwardedMetadataBuilder_; + + /** + * + * + *
      +     * Output only. Metadata about the source space of the quoted message.
      +     * Populated only for FORWARD quote type.
      +     * 
      + * + * + * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the forwardedMetadata field is set. + */ + public boolean hasForwardedMetadata() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
      +     * Output only. Metadata about the source space of the quoted message.
      +     * Populated only for FORWARD quote type.
      +     * 
      + * + * + * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The forwardedMetadata. + */ + public com.google.chat.v1.ForwardedMetadata getForwardedMetadata() { + if (forwardedMetadataBuilder_ == null) { + return forwardedMetadata_ == null + ? com.google.chat.v1.ForwardedMetadata.getDefaultInstance() + : forwardedMetadata_; + } else { + return forwardedMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Output only. Metadata about the source space of the quoted message.
      +     * Populated only for FORWARD quote type.
      +     * 
      + * + * + * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setForwardedMetadata(com.google.chat.v1.ForwardedMetadata value) { + if (forwardedMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + forwardedMetadata_ = value; + } else { + forwardedMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Metadata about the source space of the quoted message.
      +     * Populated only for FORWARD quote type.
      +     * 
      + * + * + * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setForwardedMetadata( + com.google.chat.v1.ForwardedMetadata.Builder builderForValue) { + if (forwardedMetadataBuilder_ == null) { + forwardedMetadata_ = builderForValue.build(); + } else { + forwardedMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Metadata about the source space of the quoted message.
      +     * Populated only for FORWARD quote type.
      +     * 
      + * + * + * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeForwardedMetadata(com.google.chat.v1.ForwardedMetadata value) { + if (forwardedMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && forwardedMetadata_ != null + && forwardedMetadata_ != com.google.chat.v1.ForwardedMetadata.getDefaultInstance()) { + getForwardedMetadataBuilder().mergeFrom(value); + } else { + forwardedMetadata_ = value; + } + } else { + forwardedMetadataBuilder_.mergeFrom(value); + } + if (forwardedMetadata_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Output only. Metadata about the source space of the quoted message.
      +     * Populated only for FORWARD quote type.
      +     * 
      + * + * + * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearForwardedMetadata() { + bitField0_ = (bitField0_ & ~0x00000010); + forwardedMetadata_ = null; + if (forwardedMetadataBuilder_ != null) { + forwardedMetadataBuilder_.dispose(); + forwardedMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Metadata about the source space of the quoted message.
      +     * Populated only for FORWARD quote type.
      +     * 
      + * + * + * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.chat.v1.ForwardedMetadata.Builder getForwardedMetadataBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetForwardedMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Output only. Metadata about the source space of the quoted message.
      +     * Populated only for FORWARD quote type.
      +     * 
      + * + * + * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.chat.v1.ForwardedMetadataOrBuilder getForwardedMetadataOrBuilder() { + if (forwardedMetadataBuilder_ != null) { + return forwardedMetadataBuilder_.getMessageOrBuilder(); + } else { + return forwardedMetadata_ == null + ? com.google.chat.v1.ForwardedMetadata.getDefaultInstance() + : forwardedMetadata_; + } + } + + /** + * + * + *
      +     * Output only. Metadata about the source space of the quoted message.
      +     * Populated only for FORWARD quote type.
      +     * 
      + * + * + * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.ForwardedMetadata, + com.google.chat.v1.ForwardedMetadata.Builder, + com.google.chat.v1.ForwardedMetadataOrBuilder> + internalGetForwardedMetadataFieldBuilder() { + if (forwardedMetadataBuilder_ == null) { + forwardedMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.ForwardedMetadata, + com.google.chat.v1.ForwardedMetadata.Builder, + com.google.chat.v1.ForwardedMetadataOrBuilder>( + getForwardedMetadata(), getParentForChildren(), isClean()); + forwardedMetadata_ = null; + } + return forwardedMetadataBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.chat.v1.QuotedMessageMetadata) } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadataOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadataOrBuilder.java index c7aa0f7630e3..fca40dfcc1ad 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadataOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadataOrBuilder.java @@ -123,4 +123,125 @@ public interface QuotedMessageMetadataOrBuilder * */ com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder(); + + /** + * + * + *
      +   * Optional. Specifies the quote type. If not set, defaults to REPLY in the
      +   * message read/write path for backward compatibility.
      +   * 
      + * + * + * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for quoteType. + */ + int getQuoteTypeValue(); + + /** + * + * + *
      +   * Optional. Specifies the quote type. If not set, defaults to REPLY in the
      +   * message read/write path for backward compatibility.
      +   * 
      + * + * + * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The quoteType. + */ + com.google.chat.v1.QuotedMessageMetadata.QuoteType getQuoteType(); + + /** + * + * + *
      +   * Output only. A snapshot of the quoted message's content.
      +   * 
      + * + * + * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the quotedMessageSnapshot field is set. + */ + boolean hasQuotedMessageSnapshot(); + + /** + * + * + *
      +   * Output only. A snapshot of the quoted message's content.
      +   * 
      + * + * + * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The quotedMessageSnapshot. + */ + com.google.chat.v1.QuotedMessageSnapshot getQuotedMessageSnapshot(); + + /** + * + * + *
      +   * Output only. A snapshot of the quoted message's content.
      +   * 
      + * + * + * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.chat.v1.QuotedMessageSnapshotOrBuilder getQuotedMessageSnapshotOrBuilder(); + + /** + * + * + *
      +   * Output only. Metadata about the source space of the quoted message.
      +   * Populated only for FORWARD quote type.
      +   * 
      + * + * + * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the forwardedMetadata field is set. + */ + boolean hasForwardedMetadata(); + + /** + * + * + *
      +   * Output only. Metadata about the source space of the quoted message.
      +   * Populated only for FORWARD quote type.
      +   * 
      + * + * + * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The forwardedMetadata. + */ + com.google.chat.v1.ForwardedMetadata getForwardedMetadata(); + + /** + * + * + *
      +   * Output only. Metadata about the source space of the quoted message.
      +   * Populated only for FORWARD quote type.
      +   * 
      + * + * + * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.chat.v1.ForwardedMetadataOrBuilder getForwardedMetadataOrBuilder(); } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageSnapshot.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageSnapshot.java new file mode 100644 index 000000000000..744e518cbf5a --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageSnapshot.java @@ -0,0 +1,2176 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/message.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +/** + * + * + *
      + * Provides a snapshot of the content of the quoted message at the time of
      + * quoting or forwarding
      + * 
      + * + * Protobuf type {@code google.chat.v1.QuotedMessageSnapshot} + */ +@com.google.protobuf.Generated +public final class QuotedMessageSnapshot extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.QuotedMessageSnapshot) + QuotedMessageSnapshotOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QuotedMessageSnapshot"); + } + + // Use QuotedMessageSnapshot.newBuilder() to construct. + private QuotedMessageSnapshot(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QuotedMessageSnapshot() { + sender_ = ""; + text_ = ""; + formattedText_ = ""; + annotations_ = java.util.Collections.emptyList(); + attachments_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_QuotedMessageSnapshot_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_QuotedMessageSnapshot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.QuotedMessageSnapshot.class, + com.google.chat.v1.QuotedMessageSnapshot.Builder.class); + } + + public static final int SENDER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object sender_ = ""; + + /** + * + * + *
      +   * Output only. The quoted message's author name.
      +   * Populated for both REPLY & FORWARD quote types.
      +   * 
      + * + * string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sender. + */ + @java.lang.Override + public java.lang.String getSender() { + java.lang.Object ref = sender_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sender_ = s; + return s; + } + } + + /** + * + * + *
      +   * Output only. The quoted message's author name.
      +   * Populated for both REPLY & FORWARD quote types.
      +   * 
      + * + * string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sender. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSenderBytes() { + java.lang.Object ref = sender_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sender_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEXT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object text_ = ""; + + /** + * + * + *
      +   * Output only. Snapshot of the quoted message's text content.
      +   * 
      + * + * string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } + } + + /** + * + * + *
      +   * Output only. Snapshot of the quoted message's text content.
      +   * 
      + * + * string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORMATTED_TEXT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object formattedText_ = ""; + + /** + * + * + *
      +   * Output only. Contains the quoted message `text` with markups added to
      +   * support rich formatting like hyperlinks,custom emojis, markup, etc.
      +   * Populated only for FORWARD quote type.
      +   * 
      + * + * string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The formattedText. + */ + @java.lang.Override + public java.lang.String getFormattedText() { + java.lang.Object ref = formattedText_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + formattedText_ = s; + return s; + } + } + + /** + * + * + *
      +   * Output only. Contains the quoted message `text` with markups added to
      +   * support rich formatting like hyperlinks,custom emojis, markup, etc.
      +   * Populated only for FORWARD quote type.
      +   * 
      + * + * string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for formattedText. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFormattedTextBytes() { + java.lang.Object ref = formattedText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + formattedText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List annotations_; + + /** + * + * + *
      +   * Output only. Annotations parsed from the text body of the quoted message.
      +   * Populated only for FORWARD quote type.
      +   * 
      + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getAnnotationsList() { + return annotations_; + } + + /** + * + * + *
      +   * Output only. Annotations parsed from the text body of the quoted message.
      +   * Populated only for FORWARD quote type.
      +   * 
      + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getAnnotationsOrBuilderList() { + return annotations_; + } + + /** + * + * + *
      +   * Output only. Annotations parsed from the text body of the quoted message.
      +   * Populated only for FORWARD quote type.
      +   * 
      + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getAnnotationsCount() { + return annotations_.size(); + } + + /** + * + * + *
      +   * Output only. Annotations parsed from the text body of the quoted message.
      +   * Populated only for FORWARD quote type.
      +   * 
      + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.chat.v1.Annotation getAnnotations(int index) { + return annotations_.get(index); + } + + /** + * + * + *
      +   * Output only. Annotations parsed from the text body of the quoted message.
      +   * Populated only for FORWARD quote type.
      +   * 
      + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.chat.v1.AnnotationOrBuilder getAnnotationsOrBuilder(int index) { + return annotations_.get(index); + } + + public static final int ATTACHMENTS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List attachments_; + + /** + * + * + *
      +   * Output only. Attachments that were part of the quoted message. These are
      +   * copies of the quoted message's attachment metadata. Populated only for
      +   * FORWARD quote type.
      +   * 
      + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getAttachmentsList() { + return attachments_; + } + + /** + * + * + *
      +   * Output only. Attachments that were part of the quoted message. These are
      +   * copies of the quoted message's attachment metadata. Populated only for
      +   * FORWARD quote type.
      +   * 
      + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getAttachmentsOrBuilderList() { + return attachments_; + } + + /** + * + * + *
      +   * Output only. Attachments that were part of the quoted message. These are
      +   * copies of the quoted message's attachment metadata. Populated only for
      +   * FORWARD quote type.
      +   * 
      + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getAttachmentsCount() { + return attachments_.size(); + } + + /** + * + * + *
      +   * Output only. Attachments that were part of the quoted message. These are
      +   * copies of the quoted message's attachment metadata. Populated only for
      +   * FORWARD quote type.
      +   * 
      + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.chat.v1.Attachment getAttachments(int index) { + return attachments_.get(index); + } + + /** + * + * + *
      +   * Output only. Attachments that were part of the quoted message. These are
      +   * copies of the quoted message's attachment metadata. Populated only for
      +   * FORWARD quote type.
      +   * 
      + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.chat.v1.AttachmentOrBuilder getAttachmentsOrBuilder(int index) { + return attachments_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sender_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, sender_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, text_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(formattedText_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, formattedText_); + } + for (int i = 0; i < annotations_.size(); i++) { + output.writeMessage(4, annotations_.get(i)); + } + for (int i = 0; i < attachments_.size(); i++) { + output.writeMessage(5, attachments_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sender_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, sender_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, text_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(formattedText_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, formattedText_); + } + for (int i = 0; i < annotations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, annotations_.get(i)); + } + for (int i = 0; i < attachments_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, attachments_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.QuotedMessageSnapshot)) { + return super.equals(obj); + } + com.google.chat.v1.QuotedMessageSnapshot other = (com.google.chat.v1.QuotedMessageSnapshot) obj; + + if (!getSender().equals(other.getSender())) return false; + if (!getText().equals(other.getText())) return false; + if (!getFormattedText().equals(other.getFormattedText())) return false; + if (!getAnnotationsList().equals(other.getAnnotationsList())) return false; + if (!getAttachmentsList().equals(other.getAttachmentsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SENDER_FIELD_NUMBER; + hash = (53 * hash) + getSender().hashCode(); + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + hash = (37 * hash) + FORMATTED_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getFormattedText().hashCode(); + if (getAnnotationsCount() > 0) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getAnnotationsList().hashCode(); + } + if (getAttachmentsCount() > 0) { + hash = (37 * hash) + ATTACHMENTS_FIELD_NUMBER; + hash = (53 * hash) + getAttachmentsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.QuotedMessageSnapshot parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.QuotedMessageSnapshot parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.QuotedMessageSnapshot parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.QuotedMessageSnapshot parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.QuotedMessageSnapshot parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.QuotedMessageSnapshot parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.QuotedMessageSnapshot parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.QuotedMessageSnapshot parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.QuotedMessageSnapshot parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.QuotedMessageSnapshot parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.QuotedMessageSnapshot parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.QuotedMessageSnapshot parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.QuotedMessageSnapshot prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Provides a snapshot of the content of the quoted message at the time of
      +   * quoting or forwarding
      +   * 
      + * + * Protobuf type {@code google.chat.v1.QuotedMessageSnapshot} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.QuotedMessageSnapshot) + com.google.chat.v1.QuotedMessageSnapshotOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_QuotedMessageSnapshot_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_QuotedMessageSnapshot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.QuotedMessageSnapshot.class, + com.google.chat.v1.QuotedMessageSnapshot.Builder.class); + } + + // Construct using com.google.chat.v1.QuotedMessageSnapshot.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sender_ = ""; + text_ = ""; + formattedText_ = ""; + if (annotationsBuilder_ == null) { + annotations_ = java.util.Collections.emptyList(); + } else { + annotations_ = null; + annotationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + if (attachmentsBuilder_ == null) { + attachments_ = java.util.Collections.emptyList(); + } else { + attachments_ = null; + attachmentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_QuotedMessageSnapshot_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.QuotedMessageSnapshot getDefaultInstanceForType() { + return com.google.chat.v1.QuotedMessageSnapshot.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.QuotedMessageSnapshot build() { + com.google.chat.v1.QuotedMessageSnapshot result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.QuotedMessageSnapshot buildPartial() { + com.google.chat.v1.QuotedMessageSnapshot result = + new com.google.chat.v1.QuotedMessageSnapshot(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.chat.v1.QuotedMessageSnapshot result) { + if (annotationsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + annotations_ = java.util.Collections.unmodifiableList(annotations_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.annotations_ = annotations_; + } else { + result.annotations_ = annotationsBuilder_.build(); + } + if (attachmentsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + attachments_ = java.util.Collections.unmodifiableList(attachments_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.attachments_ = attachments_; + } else { + result.attachments_ = attachmentsBuilder_.build(); + } + } + + private void buildPartial0(com.google.chat.v1.QuotedMessageSnapshot result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sender_ = sender_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.text_ = text_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.formattedText_ = formattedText_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.QuotedMessageSnapshot) { + return mergeFrom((com.google.chat.v1.QuotedMessageSnapshot) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.QuotedMessageSnapshot other) { + if (other == com.google.chat.v1.QuotedMessageSnapshot.getDefaultInstance()) return this; + if (!other.getSender().isEmpty()) { + sender_ = other.sender_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getText().isEmpty()) { + text_ = other.text_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getFormattedText().isEmpty()) { + formattedText_ = other.formattedText_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (annotationsBuilder_ == null) { + if (!other.annotations_.isEmpty()) { + if (annotations_.isEmpty()) { + annotations_ = other.annotations_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureAnnotationsIsMutable(); + annotations_.addAll(other.annotations_); + } + onChanged(); + } + } else { + if (!other.annotations_.isEmpty()) { + if (annotationsBuilder_.isEmpty()) { + annotationsBuilder_.dispose(); + annotationsBuilder_ = null; + annotations_ = other.annotations_; + bitField0_ = (bitField0_ & ~0x00000008); + annotationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAnnotationsFieldBuilder() + : null; + } else { + annotationsBuilder_.addAllMessages(other.annotations_); + } + } + } + if (attachmentsBuilder_ == null) { + if (!other.attachments_.isEmpty()) { + if (attachments_.isEmpty()) { + attachments_ = other.attachments_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureAttachmentsIsMutable(); + attachments_.addAll(other.attachments_); + } + onChanged(); + } + } else { + if (!other.attachments_.isEmpty()) { + if (attachmentsBuilder_.isEmpty()) { + attachmentsBuilder_.dispose(); + attachmentsBuilder_ = null; + attachments_ = other.attachments_; + bitField0_ = (bitField0_ & ~0x00000010); + attachmentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAttachmentsFieldBuilder() + : null; + } else { + attachmentsBuilder_.addAllMessages(other.attachments_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + sender_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + text_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + formattedText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.chat.v1.Annotation m = + input.readMessage(com.google.chat.v1.Annotation.parser(), extensionRegistry); + if (annotationsBuilder_ == null) { + ensureAnnotationsIsMutable(); + annotations_.add(m); + } else { + annotationsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + com.google.chat.v1.Attachment m = + input.readMessage(com.google.chat.v1.Attachment.parser(), extensionRegistry); + if (attachmentsBuilder_ == null) { + ensureAttachmentsIsMutable(); + attachments_.add(m); + } else { + attachmentsBuilder_.addMessage(m); + } + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object sender_ = ""; + + /** + * + * + *
      +     * Output only. The quoted message's author name.
      +     * Populated for both REPLY & FORWARD quote types.
      +     * 
      + * + * string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sender. + */ + public java.lang.String getSender() { + java.lang.Object ref = sender_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sender_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Output only. The quoted message's author name.
      +     * Populated for both REPLY & FORWARD quote types.
      +     * 
      + * + * string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sender. + */ + public com.google.protobuf.ByteString getSenderBytes() { + java.lang.Object ref = sender_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sender_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Output only. The quoted message's author name.
      +     * Populated for both REPLY & FORWARD quote types.
      +     * 
      + * + * string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The sender to set. + * @return This builder for chaining. + */ + public Builder setSender(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sender_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The quoted message's author name.
      +     * Populated for both REPLY & FORWARD quote types.
      +     * 
      + * + * string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSender() { + sender_ = getDefaultInstance().getSender(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. The quoted message's author name.
      +     * Populated for both REPLY & FORWARD quote types.
      +     * 
      + * + * string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for sender to set. + * @return This builder for chaining. + */ + public Builder setSenderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sender_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object text_ = ""; + + /** + * + * + *
      +     * Output only. Snapshot of the quoted message's text content.
      +     * 
      + * + * string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = text_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Output only. Snapshot of the quoted message's text content.
      +     * 
      + * + * string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for text. + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Output only. Snapshot of the quoted message's text content.
      +     * 
      + * + * string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + text_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Snapshot of the quoted message's text content.
      +     * 
      + * + * string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearText() { + text_ = getDefaultInstance().getText(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Snapshot of the quoted message's text content.
      +     * 
      + * + * string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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(); + } + checkByteStringIsUtf8(value); + text_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object formattedText_ = ""; + + /** + * + * + *
      +     * Output only. Contains the quoted message `text` with markups added to
      +     * support rich formatting like hyperlinks,custom emojis, markup, etc.
      +     * Populated only for FORWARD quote type.
      +     * 
      + * + * string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The formattedText. + */ + public java.lang.String getFormattedText() { + java.lang.Object ref = formattedText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + formattedText_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Output only. Contains the quoted message `text` with markups added to
      +     * support rich formatting like hyperlinks,custom emojis, markup, etc.
      +     * Populated only for FORWARD quote type.
      +     * 
      + * + * string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for formattedText. + */ + public com.google.protobuf.ByteString getFormattedTextBytes() { + java.lang.Object ref = formattedText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + formattedText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Output only. Contains the quoted message `text` with markups added to
      +     * support rich formatting like hyperlinks,custom emojis, markup, etc.
      +     * Populated only for FORWARD quote type.
      +     * 
      + * + * string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The formattedText to set. + * @return This builder for chaining. + */ + public Builder setFormattedText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + formattedText_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Contains the quoted message `text` with markups added to
      +     * support rich formatting like hyperlinks,custom emojis, markup, etc.
      +     * Populated only for FORWARD quote type.
      +     * 
      + * + * string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearFormattedText() { + formattedText_ = getDefaultInstance().getFormattedText(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. Contains the quoted message `text` with markups added to
      +     * support rich formatting like hyperlinks,custom emojis, markup, etc.
      +     * Populated only for FORWARD quote type.
      +     * 
      + * + * string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for formattedText to set. + * @return This builder for chaining. + */ + public Builder setFormattedTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + formattedText_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.util.List annotations_ = + java.util.Collections.emptyList(); + + private void ensureAnnotationsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + annotations_ = new java.util.ArrayList(annotations_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.chat.v1.Annotation, + com.google.chat.v1.Annotation.Builder, + com.google.chat.v1.AnnotationOrBuilder> + annotationsBuilder_; + + /** + * + * + *
      +     * Output only. Annotations parsed from the text body of the quoted message.
      +     * Populated only for FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getAnnotationsList() { + if (annotationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(annotations_); + } else { + return annotationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Output only. Annotations parsed from the text body of the quoted message.
      +     * Populated only for FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getAnnotationsCount() { + if (annotationsBuilder_ == null) { + return annotations_.size(); + } else { + return annotationsBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Output only. Annotations parsed from the text body of the quoted message.
      +     * Populated only for FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.chat.v1.Annotation getAnnotations(int index) { + if (annotationsBuilder_ == null) { + return annotations_.get(index); + } else { + return annotationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Output only. Annotations parsed from the text body of the quoted message.
      +     * Populated only for FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAnnotations(int index, com.google.chat.v1.Annotation value) { + if (annotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationsIsMutable(); + annotations_.set(index, value); + onChanged(); + } else { + annotationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Output only. Annotations parsed from the text body of the quoted message.
      +     * Populated only for FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAnnotations( + int index, com.google.chat.v1.Annotation.Builder builderForValue) { + if (annotationsBuilder_ == null) { + ensureAnnotationsIsMutable(); + annotations_.set(index, builderForValue.build()); + onChanged(); + } else { + annotationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Output only. Annotations parsed from the text body of the quoted message.
      +     * Populated only for FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAnnotations(com.google.chat.v1.Annotation value) { + if (annotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationsIsMutable(); + annotations_.add(value); + onChanged(); + } else { + annotationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Output only. Annotations parsed from the text body of the quoted message.
      +     * Populated only for FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAnnotations(int index, com.google.chat.v1.Annotation value) { + if (annotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationsIsMutable(); + annotations_.add(index, value); + onChanged(); + } else { + annotationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Output only. Annotations parsed from the text body of the quoted message.
      +     * Populated only for FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAnnotations(com.google.chat.v1.Annotation.Builder builderForValue) { + if (annotationsBuilder_ == null) { + ensureAnnotationsIsMutable(); + annotations_.add(builderForValue.build()); + onChanged(); + } else { + annotationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Output only. Annotations parsed from the text body of the quoted message.
      +     * Populated only for FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAnnotations( + int index, com.google.chat.v1.Annotation.Builder builderForValue) { + if (annotationsBuilder_ == null) { + ensureAnnotationsIsMutable(); + annotations_.add(index, builderForValue.build()); + onChanged(); + } else { + annotationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Output only. Annotations parsed from the text body of the quoted message.
      +     * Populated only for FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllAnnotations( + java.lang.Iterable values) { + if (annotationsBuilder_ == null) { + ensureAnnotationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotations_); + onChanged(); + } else { + annotationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Output only. Annotations parsed from the text body of the quoted message.
      +     * Populated only for FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAnnotations() { + if (annotationsBuilder_ == null) { + annotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + annotationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Output only. Annotations parsed from the text body of the quoted message.
      +     * Populated only for FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeAnnotations(int index) { + if (annotationsBuilder_ == null) { + ensureAnnotationsIsMutable(); + annotations_.remove(index); + onChanged(); + } else { + annotationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Output only. Annotations parsed from the text body of the quoted message.
      +     * Populated only for FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.chat.v1.Annotation.Builder getAnnotationsBuilder(int index) { + return internalGetAnnotationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Output only. Annotations parsed from the text body of the quoted message.
      +     * Populated only for FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.chat.v1.AnnotationOrBuilder getAnnotationsOrBuilder(int index) { + if (annotationsBuilder_ == null) { + return annotations_.get(index); + } else { + return annotationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Output only. Annotations parsed from the text body of the quoted message.
      +     * Populated only for FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getAnnotationsOrBuilderList() { + if (annotationsBuilder_ != null) { + return annotationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(annotations_); + } + } + + /** + * + * + *
      +     * Output only. Annotations parsed from the text body of the quoted message.
      +     * Populated only for FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.chat.v1.Annotation.Builder addAnnotationsBuilder() { + return internalGetAnnotationsFieldBuilder() + .addBuilder(com.google.chat.v1.Annotation.getDefaultInstance()); + } + + /** + * + * + *
      +     * Output only. Annotations parsed from the text body of the quoted message.
      +     * Populated only for FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.chat.v1.Annotation.Builder addAnnotationsBuilder(int index) { + return internalGetAnnotationsFieldBuilder() + .addBuilder(index, com.google.chat.v1.Annotation.getDefaultInstance()); + } + + /** + * + * + *
      +     * Output only. Annotations parsed from the text body of the quoted message.
      +     * Populated only for FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getAnnotationsBuilderList() { + return internalGetAnnotationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.chat.v1.Annotation, + com.google.chat.v1.Annotation.Builder, + com.google.chat.v1.AnnotationOrBuilder> + internalGetAnnotationsFieldBuilder() { + if (annotationsBuilder_ == null) { + annotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.chat.v1.Annotation, + com.google.chat.v1.Annotation.Builder, + com.google.chat.v1.AnnotationOrBuilder>( + annotations_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + annotations_ = null; + } + return annotationsBuilder_; + } + + private java.util.List attachments_ = + java.util.Collections.emptyList(); + + private void ensureAttachmentsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + attachments_ = new java.util.ArrayList(attachments_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.chat.v1.Attachment, + com.google.chat.v1.Attachment.Builder, + com.google.chat.v1.AttachmentOrBuilder> + attachmentsBuilder_; + + /** + * + * + *
      +     * Output only. Attachments that were part of the quoted message. These are
      +     * copies of the quoted message's attachment metadata. Populated only for
      +     * FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getAttachmentsList() { + if (attachmentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(attachments_); + } else { + return attachmentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
      +     * Output only. Attachments that were part of the quoted message. These are
      +     * copies of the quoted message's attachment metadata. Populated only for
      +     * FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getAttachmentsCount() { + if (attachmentsBuilder_ == null) { + return attachments_.size(); + } else { + return attachmentsBuilder_.getCount(); + } + } + + /** + * + * + *
      +     * Output only. Attachments that were part of the quoted message. These are
      +     * copies of the quoted message's attachment metadata. Populated only for
      +     * FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.chat.v1.Attachment getAttachments(int index) { + if (attachmentsBuilder_ == null) { + return attachments_.get(index); + } else { + return attachmentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
      +     * Output only. Attachments that were part of the quoted message. These are
      +     * copies of the quoted message's attachment metadata. Populated only for
      +     * FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAttachments(int index, com.google.chat.v1.Attachment value) { + if (attachmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachmentsIsMutable(); + attachments_.set(index, value); + onChanged(); + } else { + attachmentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Output only. Attachments that were part of the quoted message. These are
      +     * copies of the quoted message's attachment metadata. Populated only for
      +     * FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAttachments( + int index, com.google.chat.v1.Attachment.Builder builderForValue) { + if (attachmentsBuilder_ == null) { + ensureAttachmentsIsMutable(); + attachments_.set(index, builderForValue.build()); + onChanged(); + } else { + attachmentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Output only. Attachments that were part of the quoted message. These are
      +     * copies of the quoted message's attachment metadata. Populated only for
      +     * FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAttachments(com.google.chat.v1.Attachment value) { + if (attachmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachmentsIsMutable(); + attachments_.add(value); + onChanged(); + } else { + attachmentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
      +     * Output only. Attachments that were part of the quoted message. These are
      +     * copies of the quoted message's attachment metadata. Populated only for
      +     * FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAttachments(int index, com.google.chat.v1.Attachment value) { + if (attachmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachmentsIsMutable(); + attachments_.add(index, value); + onChanged(); + } else { + attachmentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
      +     * Output only. Attachments that were part of the quoted message. These are
      +     * copies of the quoted message's attachment metadata. Populated only for
      +     * FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAttachments(com.google.chat.v1.Attachment.Builder builderForValue) { + if (attachmentsBuilder_ == null) { + ensureAttachmentsIsMutable(); + attachments_.add(builderForValue.build()); + onChanged(); + } else { + attachmentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Output only. Attachments that were part of the quoted message. These are
      +     * copies of the quoted message's attachment metadata. Populated only for
      +     * FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAttachments( + int index, com.google.chat.v1.Attachment.Builder builderForValue) { + if (attachmentsBuilder_ == null) { + ensureAttachmentsIsMutable(); + attachments_.add(index, builderForValue.build()); + onChanged(); + } else { + attachmentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
      +     * Output only. Attachments that were part of the quoted message. These are
      +     * copies of the quoted message's attachment metadata. Populated only for
      +     * FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllAttachments( + java.lang.Iterable values) { + if (attachmentsBuilder_ == null) { + ensureAttachmentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attachments_); + onChanged(); + } else { + attachmentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
      +     * Output only. Attachments that were part of the quoted message. These are
      +     * copies of the quoted message's attachment metadata. Populated only for
      +     * FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAttachments() { + if (attachmentsBuilder_ == null) { + attachments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + attachmentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Output only. Attachments that were part of the quoted message. These are
      +     * copies of the quoted message's attachment metadata. Populated only for
      +     * FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeAttachments(int index) { + if (attachmentsBuilder_ == null) { + ensureAttachmentsIsMutable(); + attachments_.remove(index); + onChanged(); + } else { + attachmentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
      +     * Output only. Attachments that were part of the quoted message. These are
      +     * copies of the quoted message's attachment metadata. Populated only for
      +     * FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.chat.v1.Attachment.Builder getAttachmentsBuilder(int index) { + return internalGetAttachmentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
      +     * Output only. Attachments that were part of the quoted message. These are
      +     * copies of the quoted message's attachment metadata. Populated only for
      +     * FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.chat.v1.AttachmentOrBuilder getAttachmentsOrBuilder(int index) { + if (attachmentsBuilder_ == null) { + return attachments_.get(index); + } else { + return attachmentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
      +     * Output only. Attachments that were part of the quoted message. These are
      +     * copies of the quoted message's attachment metadata. Populated only for
      +     * FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getAttachmentsOrBuilderList() { + if (attachmentsBuilder_ != null) { + return attachmentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(attachments_); + } + } + + /** + * + * + *
      +     * Output only. Attachments that were part of the quoted message. These are
      +     * copies of the quoted message's attachment metadata. Populated only for
      +     * FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.chat.v1.Attachment.Builder addAttachmentsBuilder() { + return internalGetAttachmentsFieldBuilder() + .addBuilder(com.google.chat.v1.Attachment.getDefaultInstance()); + } + + /** + * + * + *
      +     * Output only. Attachments that were part of the quoted message. These are
      +     * copies of the quoted message's attachment metadata. Populated only for
      +     * FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.chat.v1.Attachment.Builder addAttachmentsBuilder(int index) { + return internalGetAttachmentsFieldBuilder() + .addBuilder(index, com.google.chat.v1.Attachment.getDefaultInstance()); + } + + /** + * + * + *
      +     * Output only. Attachments that were part of the quoted message. These are
      +     * copies of the quoted message's attachment metadata. Populated only for
      +     * FORWARD quote type.
      +     * 
      + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getAttachmentsBuilderList() { + return internalGetAttachmentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.chat.v1.Attachment, + com.google.chat.v1.Attachment.Builder, + com.google.chat.v1.AttachmentOrBuilder> + internalGetAttachmentsFieldBuilder() { + if (attachmentsBuilder_ == null) { + attachmentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.chat.v1.Attachment, + com.google.chat.v1.Attachment.Builder, + com.google.chat.v1.AttachmentOrBuilder>( + attachments_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + attachments_ = null; + } + return attachmentsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.QuotedMessageSnapshot) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.QuotedMessageSnapshot) + private static final com.google.chat.v1.QuotedMessageSnapshot DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.QuotedMessageSnapshot(); + } + + public static com.google.chat.v1.QuotedMessageSnapshot getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QuotedMessageSnapshot parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.QuotedMessageSnapshot getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageSnapshotOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageSnapshotOrBuilder.java new file mode 100644 index 000000000000..5f544bef6d30 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageSnapshotOrBuilder.java @@ -0,0 +1,257 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/message.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +@com.google.protobuf.Generated +public interface QuotedMessageSnapshotOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.QuotedMessageSnapshot) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Output only. The quoted message's author name.
      +   * Populated for both REPLY & FORWARD quote types.
      +   * 
      + * + * string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sender. + */ + java.lang.String getSender(); + + /** + * + * + *
      +   * Output only. The quoted message's author name.
      +   * Populated for both REPLY & FORWARD quote types.
      +   * 
      + * + * string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sender. + */ + com.google.protobuf.ByteString getSenderBytes(); + + /** + * + * + *
      +   * Output only. Snapshot of the quoted message's text content.
      +   * 
      + * + * string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The text. + */ + java.lang.String getText(); + + /** + * + * + *
      +   * Output only. Snapshot of the quoted message's text content.
      +   * 
      + * + * string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); + + /** + * + * + *
      +   * Output only. Contains the quoted message `text` with markups added to
      +   * support rich formatting like hyperlinks,custom emojis, markup, etc.
      +   * Populated only for FORWARD quote type.
      +   * 
      + * + * string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The formattedText. + */ + java.lang.String getFormattedText(); + + /** + * + * + *
      +   * Output only. Contains the quoted message `text` with markups added to
      +   * support rich formatting like hyperlinks,custom emojis, markup, etc.
      +   * Populated only for FORWARD quote type.
      +   * 
      + * + * string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for formattedText. + */ + com.google.protobuf.ByteString getFormattedTextBytes(); + + /** + * + * + *
      +   * Output only. Annotations parsed from the text body of the quoted message.
      +   * Populated only for FORWARD quote type.
      +   * 
      + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getAnnotationsList(); + + /** + * + * + *
      +   * Output only. Annotations parsed from the text body of the quoted message.
      +   * Populated only for FORWARD quote type.
      +   * 
      + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.chat.v1.Annotation getAnnotations(int index); + + /** + * + * + *
      +   * Output only. Annotations parsed from the text body of the quoted message.
      +   * Populated only for FORWARD quote type.
      +   * 
      + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getAnnotationsCount(); + + /** + * + * + *
      +   * Output only. Annotations parsed from the text body of the quoted message.
      +   * Populated only for FORWARD quote type.
      +   * 
      + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getAnnotationsOrBuilderList(); + + /** + * + * + *
      +   * Output only. Annotations parsed from the text body of the quoted message.
      +   * Populated only for FORWARD quote type.
      +   * 
      + * + * + * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.chat.v1.AnnotationOrBuilder getAnnotationsOrBuilder(int index); + + /** + * + * + *
      +   * Output only. Attachments that were part of the quoted message. These are
      +   * copies of the quoted message's attachment metadata. Populated only for
      +   * FORWARD quote type.
      +   * 
      + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getAttachmentsList(); + + /** + * + * + *
      +   * Output only. Attachments that were part of the quoted message. These are
      +   * copies of the quoted message's attachment metadata. Populated only for
      +   * FORWARD quote type.
      +   * 
      + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.chat.v1.Attachment getAttachments(int index); + + /** + * + * + *
      +   * Output only. Attachments that were part of the quoted message. These are
      +   * copies of the quoted message's attachment metadata. Populated only for
      +   * FORWARD quote type.
      +   * 
      + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getAttachmentsCount(); + + /** + * + * + *
      +   * Output only. Attachments that were part of the quoted message. These are
      +   * copies of the quoted message's attachment metadata. Populated only for
      +   * FORWARD quote type.
      +   * 
      + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getAttachmentsOrBuilderList(); + + /** + * + * + *
      +   * Output only. Attachments that were part of the quoted message. These are
      +   * copies of the quoted message's attachment metadata. Populated only for
      +   * FORWARD quote type.
      +   * 
      + * + * + * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.chat.v1.AttachmentOrBuilder getAttachmentsOrBuilder(int index); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto index 47b1d66de202..60f1ad0c8ea3 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -292,6 +292,23 @@ message QuotedMessageMetadata { pattern: "spaces/{space}/messages/{message}/quotedMessageMetadata/{quoted_message_metadata}" }; + // The quote type of the quoted message. + enum QuoteType { + // Reserved. This value is unused. + QUOTE_TYPE_UNSPECIFIED = 0; + + // If quote_type is `REPLY`, you can do the following: + // + // * If you're replying in a thread, you can quote another message in that + // thread. + // + // * If you're creating a root message, you can quote another root message + // in that space. + // + // You can't quote a message reply from a different thread. + REPLY = 1; + } + // Required. Resource name of the message that is quoted. // // Format: `spaces/{space}/messages/{message}` @@ -310,6 +327,63 @@ message QuotedMessageMetadata { // message, the request fails. google.protobuf.Timestamp last_update_time = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Specifies the quote type. If not set, defaults to REPLY in the + // message read/write path for backward compatibility. + QuoteType quote_type = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. A snapshot of the quoted message's content. + QuotedMessageSnapshot quoted_message_snapshot = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Metadata about the source space of the quoted message. + // Populated only for FORWARD quote type. + ForwardedMetadata forwarded_metadata = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Provides a snapshot of the content of the quoted message at the time of +// quoting or forwarding +message QuotedMessageSnapshot { + // Output only. The quoted message's author name. + // Populated for both REPLY & FORWARD quote types. + string sender = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Snapshot of the quoted message's text content. + string text = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Contains the quoted message `text` with markups added to + // support rich formatting like hyperlinks,custom emojis, markup, etc. + // Populated only for FORWARD quote type. + string formatted_text = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Annotations parsed from the text body of the quoted message. + // Populated only for FORWARD quote type. + repeated Annotation annotations = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Attachments that were part of the quoted message. These are + // copies of the quoted message's attachment metadata. Populated only for + // FORWARD quote type. + repeated Attachment attachments = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Metadata about the source space from which a message was forwarded. +message ForwardedMetadata { + // Output only. The resource name of the source space. + // Format: spaces/{space} + string space = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { type: "chat.googleapis.com/Space" } + ]; + + // Output only. The display name of the source space or DM at the time of + // forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this + // is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is + // a generated name based on members' first names, limited to 5 including the + // creator (e.g., "User A, User B"). + string space_display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } // A thread in a Google Chat space. For example usage, see diff --git a/java-chronicle/README.md b/java-chronicle/README.md index 1effacfdceea..94d52a7b2383 100644 --- a/java-chronicle/README.md +++ b/java-chronicle/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-chronicle - 0.20.0 + 0.21.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-chronicle:0.20.0' +implementation 'com.google.cloud:google-cloud-chronicle:0.21.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-chronicle" % "0.20.0" +libraryDependencies += "com.google.cloud" % "google-cloud-chronicle" % "0.21.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-chronicle/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-chronicle.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chronicle/0.20.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chronicle/0.21.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-chronicle/google-cloud-chronicle-bom/pom.xml b/java-chronicle/google-cloud-chronicle-bom/pom.xml index f7be0084db15..a2b2292e0745 100644 --- a/java-chronicle/google-cloud-chronicle-bom/pom.xml +++ b/java-chronicle/google-cloud-chronicle-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-chronicle-bom - 0.22.0-SNAPSHOT + 0.23.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-chronicle - 0.22.0-SNAPSHOT + 0.23.0 com.google.api.grpc grpc-google-cloud-chronicle-v1 - 0.22.0-SNAPSHOT + 0.23.0 com.google.api.grpc proto-google-cloud-chronicle-v1 - 0.22.0-SNAPSHOT + 0.23.0
      diff --git a/java-chronicle/google-cloud-chronicle/pom.xml b/java-chronicle/google-cloud-chronicle/pom.xml index 444e0451d3c5..ae06ab2c9686 100644 --- a/java-chronicle/google-cloud-chronicle/pom.xml +++ b/java-chronicle/google-cloud-chronicle/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-chronicle - 0.22.0-SNAPSHOT + 0.23.0 jar Google Chronicle API Chronicle API The Google Cloud Security Operations API, popularly known as the Chronicle API, serves endpoints that enable security analysts to analyze and mitigate a security threat throughout its lifecycle com.google.cloud google-cloud-chronicle-parent - 0.22.0-SNAPSHOT + 0.23.0 google-cloud-chronicle diff --git a/java-chronicle/grpc-google-cloud-chronicle-v1/pom.xml b/java-chronicle/grpc-google-cloud-chronicle-v1/pom.xml index e20704d4baa9..2764c35be80f 100644 --- a/java-chronicle/grpc-google-cloud-chronicle-v1/pom.xml +++ b/java-chronicle/grpc-google-cloud-chronicle-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-chronicle-v1 - 0.22.0-SNAPSHOT + 0.23.0 grpc-google-cloud-chronicle-v1 GRPC library for google-cloud-chronicle com.google.cloud google-cloud-chronicle-parent - 0.22.0-SNAPSHOT + 0.23.0 diff --git a/java-chronicle/pom.xml b/java-chronicle/pom.xml index 84ff56812445..986bf12631a6 100644 --- a/java-chronicle/pom.xml +++ b/java-chronicle/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-chronicle-parent pom - 0.22.0-SNAPSHOT + 0.23.0 Google Chronicle API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-chronicle - 0.22.0-SNAPSHOT + 0.23.0 com.google.api.grpc grpc-google-cloud-chronicle-v1 - 0.22.0-SNAPSHOT + 0.23.0 com.google.api.grpc proto-google-cloud-chronicle-v1 - 0.22.0-SNAPSHOT + 0.23.0 diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/pom.xml b/java-chronicle/proto-google-cloud-chronicle-v1/pom.xml index bf2da3e711d5..2ea1feff3326 100644 --- a/java-chronicle/proto-google-cloud-chronicle-v1/pom.xml +++ b/java-chronicle/proto-google-cloud-chronicle-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-chronicle-v1 - 0.22.0-SNAPSHOT + 0.23.0 proto-google-cloud-chronicle-v1 Proto library for google-cloud-chronicle com.google.cloud google-cloud-chronicle-parent - 0.22.0-SNAPSHOT + 0.23.0 diff --git a/java-cloudapiregistry/README.md b/java-cloudapiregistry/README.md index 03b63a07927d..59e191e1dcbb 100644 --- a/java-cloudapiregistry/README.md +++ b/java-cloudapiregistry/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudapiregistry - 0.1.0 + 0.2.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudapiregistry:0.1.0' +implementation 'com.google.cloud:google-cloud-cloudapiregistry:0.2.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudapiregistry" % "0.1.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudapiregistry" % "0.2.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudapiregistry/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudapiregistry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudapiregistry/0.1.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudapiregistry/0.2.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudapiregistry/google-cloud-cloudapiregistry-bom/pom.xml b/java-cloudapiregistry/google-cloud-cloudapiregistry-bom/pom.xml index c2233bc6fa29..154a8b2ff6cb 100644 --- a/java-cloudapiregistry/google-cloud-cloudapiregistry-bom/pom.xml +++ b/java-cloudapiregistry/google-cloud-cloudapiregistry-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-cloudapiregistry-bom - 0.3.0-SNAPSHOT + 0.4.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,27 +26,27 @@ com.google.cloud google-cloud-cloudapiregistry - 0.3.0-SNAPSHOT + 0.4.0 com.google.api.grpc grpc-google-cloud-cloudapiregistry-v1beta - 0.3.0-SNAPSHOT + 0.4.0 com.google.api.grpc grpc-google-cloud-cloudapiregistry-v1 - 0.3.0-SNAPSHOT + 0.4.0 com.google.api.grpc proto-google-cloud-cloudapiregistry-v1beta - 0.3.0-SNAPSHOT + 0.4.0 com.google.api.grpc proto-google-cloud-cloudapiregistry-v1 - 0.3.0-SNAPSHOT + 0.4.0 diff --git a/java-cloudapiregistry/google-cloud-cloudapiregistry/pom.xml b/java-cloudapiregistry/google-cloud-cloudapiregistry/pom.xml index 0ee14e92698e..296ee3c25344 100644 --- a/java-cloudapiregistry/google-cloud-cloudapiregistry/pom.xml +++ b/java-cloudapiregistry/google-cloud-cloudapiregistry/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-cloudapiregistry - 0.3.0-SNAPSHOT + 0.4.0 jar Google Cloud API Registry API Cloud API Registry API Cloud API Registry lets you discover, govern, use, and monitor Model Context Protocol (MCP) servers and tools provided by Google, or by your organization through Apigee API hub. com.google.cloud google-cloud-cloudapiregistry-parent - 0.3.0-SNAPSHOT + 0.4.0 google-cloud-cloudapiregistry diff --git a/java-cloudapiregistry/grpc-google-cloud-cloudapiregistry-v1/pom.xml b/java-cloudapiregistry/grpc-google-cloud-cloudapiregistry-v1/pom.xml index ce7d7a9650f8..25e7d7f6ad30 100644 --- a/java-cloudapiregistry/grpc-google-cloud-cloudapiregistry-v1/pom.xml +++ b/java-cloudapiregistry/grpc-google-cloud-cloudapiregistry-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudapiregistry-v1 - 0.3.0-SNAPSHOT + 0.4.0 grpc-google-cloud-cloudapiregistry-v1 GRPC library for google-cloud-cloudapiregistry com.google.cloud google-cloud-cloudapiregistry-parent - 0.3.0-SNAPSHOT + 0.4.0 diff --git a/java-cloudapiregistry/grpc-google-cloud-cloudapiregistry-v1beta/pom.xml b/java-cloudapiregistry/grpc-google-cloud-cloudapiregistry-v1beta/pom.xml index 163edcf78e35..77212b1e529f 100644 --- a/java-cloudapiregistry/grpc-google-cloud-cloudapiregistry-v1beta/pom.xml +++ b/java-cloudapiregistry/grpc-google-cloud-cloudapiregistry-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudapiregistry-v1beta - 0.3.0-SNAPSHOT + 0.4.0 grpc-google-cloud-cloudapiregistry-v1beta GRPC library for google-cloud-cloudapiregistry com.google.cloud google-cloud-cloudapiregistry-parent - 0.3.0-SNAPSHOT + 0.4.0 diff --git a/java-cloudapiregistry/pom.xml b/java-cloudapiregistry/pom.xml index cf3a7f6fbfe5..b12c76d37bac 100644 --- a/java-cloudapiregistry/pom.xml +++ b/java-cloudapiregistry/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-cloudapiregistry-parent pom - 0.3.0-SNAPSHOT + 0.4.0 Google Cloud API Registry API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-cloudapiregistry - 0.3.0-SNAPSHOT + 0.4.0 com.google.api.grpc proto-google-cloud-cloudapiregistry-v1 - 0.3.0-SNAPSHOT + 0.4.0 com.google.api.grpc grpc-google-cloud-cloudapiregistry-v1 - 0.3.0-SNAPSHOT + 0.4.0 com.google.api.grpc grpc-google-cloud-cloudapiregistry-v1beta - 0.3.0-SNAPSHOT + 0.4.0 com.google.api.grpc proto-google-cloud-cloudapiregistry-v1beta - 0.3.0-SNAPSHOT + 0.4.0 diff --git a/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1/pom.xml b/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1/pom.xml index 4dbf2e283122..c0dc7ea72e7e 100644 --- a/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1/pom.xml +++ b/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudapiregistry-v1 - 0.3.0-SNAPSHOT + 0.4.0 proto-google-cloud-cloudapiregistry-v1 Proto library for google-cloud-cloudapiregistry com.google.cloud google-cloud-cloudapiregistry-parent - 0.3.0-SNAPSHOT + 0.4.0 diff --git a/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1beta/pom.xml b/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1beta/pom.xml index 2f5622519f63..8305616e1012 100644 --- a/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1beta/pom.xml +++ b/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudapiregistry-v1beta - 0.3.0-SNAPSHOT + 0.4.0 proto-google-cloud-cloudapiregistry-v1beta Proto library for google-cloud-cloudapiregistry com.google.cloud google-cloud-cloudapiregistry-parent - 0.3.0-SNAPSHOT + 0.4.0 diff --git a/java-cloudbuild/README.md b/java-cloudbuild/README.md index 7debd16a12c8..c9a4d88104e9 100644 --- a/java-cloudbuild/README.md +++ b/java-cloudbuild/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-build - 3.84.0 + 3.85.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-build:3.84.0' +implementation 'com.google.cloud:google-cloud-build:3.85.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.84.0" +libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.85.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-build/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-build.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.84.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.85.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudbuild/google-cloud-build-bom/pom.xml b/java-cloudbuild/google-cloud-build-bom/pom.xml index cce935df6c16..57bc01cbfdd3 100644 --- a/java-cloudbuild/google-cloud-build-bom/pom.xml +++ b/java-cloudbuild/google-cloud-build-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-build-bom - 3.86.0-SNAPSHOT + 3.87.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-build - 3.86.0-SNAPSHOT + 3.87.0 com.google.api.grpc grpc-google-cloud-build-v1 - 3.86.0-SNAPSHOT + 3.87.0 com.google.api.grpc grpc-google-cloud-build-v2 - 3.86.0-SNAPSHOT + 3.87.0 com.google.api.grpc proto-google-cloud-build-v1 - 3.86.0-SNAPSHOT + 3.87.0 com.google.api.grpc proto-google-cloud-build-v2 - 3.86.0-SNAPSHOT + 3.87.0 diff --git a/java-cloudbuild/google-cloud-build/pom.xml b/java-cloudbuild/google-cloud-build/pom.xml index 63ae3d06724c..b6643cffa637 100644 --- a/java-cloudbuild/google-cloud-build/pom.xml +++ b/java-cloudbuild/google-cloud-build/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-build - 3.86.0-SNAPSHOT + 3.87.0 jar Google Cloud Build @@ -12,7 +12,7 @@ com.google.cloud google-cloud-build-parent - 3.86.0-SNAPSHOT + 3.87.0 google-cloud-build diff --git a/java-cloudbuild/grpc-google-cloud-build-v1/pom.xml b/java-cloudbuild/grpc-google-cloud-build-v1/pom.xml index cfd8678516be..66dbe647304b 100644 --- a/java-cloudbuild/grpc-google-cloud-build-v1/pom.xml +++ b/java-cloudbuild/grpc-google-cloud-build-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-build-v1 - 3.86.0-SNAPSHOT + 3.87.0 grpc-google-cloud-build-v1 GRPC library for grpc-google-cloud-build-v1 com.google.cloud google-cloud-build-parent - 3.86.0-SNAPSHOT + 3.87.0 diff --git a/java-cloudbuild/grpc-google-cloud-build-v2/pom.xml b/java-cloudbuild/grpc-google-cloud-build-v2/pom.xml index e8cb6be00e91..f434b8594f7e 100644 --- a/java-cloudbuild/grpc-google-cloud-build-v2/pom.xml +++ b/java-cloudbuild/grpc-google-cloud-build-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-build-v2 - 3.86.0-SNAPSHOT + 3.87.0 grpc-google-cloud-build-v2 GRPC library for google-cloud-build com.google.cloud google-cloud-build-parent - 3.86.0-SNAPSHOT + 3.87.0 diff --git a/java-cloudbuild/pom.xml b/java-cloudbuild/pom.xml index 21924402f589..021cc13f06f3 100644 --- a/java-cloudbuild/pom.xml +++ b/java-cloudbuild/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-build-parent pom - 3.86.0-SNAPSHOT + 3.87.0 Google Cloud Build Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-build-v1 - 3.86.0-SNAPSHOT + 3.87.0 com.google.api.grpc proto-google-cloud-build-v2 - 3.86.0-SNAPSHOT + 3.87.0 com.google.api.grpc grpc-google-cloud-build-v2 - 3.86.0-SNAPSHOT + 3.87.0 com.google.cloud google-cloud-build - 3.86.0-SNAPSHOT + 3.87.0 com.google.api.grpc grpc-google-cloud-build-v1 - 3.86.0-SNAPSHOT + 3.87.0 diff --git a/java-cloudbuild/proto-google-cloud-build-v1/pom.xml b/java-cloudbuild/proto-google-cloud-build-v1/pom.xml index 8bad448210b9..e1e2c5cae28c 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/pom.xml +++ b/java-cloudbuild/proto-google-cloud-build-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-build-v1 - 3.86.0-SNAPSHOT + 3.87.0 proto-google-cloud-build-v1 PROTO library for proto-google-cloud-build-v1 com.google.cloud google-cloud-build-parent - 3.86.0-SNAPSHOT + 3.87.0 diff --git a/java-cloudbuild/proto-google-cloud-build-v2/pom.xml b/java-cloudbuild/proto-google-cloud-build-v2/pom.xml index 1eb6592f5c12..511cec183182 100644 --- a/java-cloudbuild/proto-google-cloud-build-v2/pom.xml +++ b/java-cloudbuild/proto-google-cloud-build-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-build-v2 - 3.86.0-SNAPSHOT + 3.87.0 proto-google-cloud-build-v2 Proto library for google-cloud-build com.google.cloud google-cloud-build-parent - 3.86.0-SNAPSHOT + 3.87.0 diff --git a/java-cloudcommerceconsumerprocurement/README.md b/java-cloudcommerceconsumerprocurement/README.md index a2e5e2b5dccc..3accec9a233b 100644 --- a/java-cloudcommerceconsumerprocurement/README.md +++ b/java-cloudcommerceconsumerprocurement/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudcommerceconsumerprocurement - 0.80.0 + 0.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudcommerceconsumerprocurement:0.80.0' +implementation 'com.google.cloud:google-cloud-cloudcommerceconsumerprocurement:0.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudcommerceconsumerprocurement" % "0.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudcommerceconsumerprocurement" % "0.81.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudcommerceconsumerprocurement/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement/0.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement/0.81.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement-bom/pom.xml b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement-bom/pom.xml index 1d30e3dc06e9..52dea14f3a1b 100644 --- a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement-bom/pom.xml +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-cloudcommerceconsumerprocurement-bom - 0.82.0-SNAPSHOT + 0.83.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-cloudcommerceconsumerprocurement - 0.82.0-SNAPSHOT + 0.83.0 com.google.api.grpc grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 - 0.82.0-SNAPSHOT + 0.83.0 com.google.api.grpc grpc-google-cloud-cloudcommerceconsumerprocurement-v1 - 0.82.0-SNAPSHOT + 0.83.0 com.google.api.grpc proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 - 0.82.0-SNAPSHOT + 0.83.0 com.google.api.grpc proto-google-cloud-cloudcommerceconsumerprocurement-v1 - 0.82.0-SNAPSHOT + 0.83.0 diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/pom.xml b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/pom.xml index 62f0c1155929..9d7fdcd651aa 100644 --- a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/pom.xml +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-cloudcommerceconsumerprocurement - 0.82.0-SNAPSHOT + 0.83.0 jar Google Cloud Commerce Consumer Procurement Cloud Commerce Consumer Procurement Find top solutions integrated with Google Cloud to accelerate your digital transformation. Scale and simplify procurement for your organization with online discovery, flexible purchasing, and fulfillment of enterprise-grade cloud solutions. com.google.cloud google-cloud-cloudcommerceconsumerprocurement-parent - 0.82.0-SNAPSHOT + 0.83.0 google-cloud-cloudcommerceconsumerprocurement diff --git a/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml b/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml index 18db2290122b..55aa8ad3def3 100644 --- a/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml +++ b/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudcommerceconsumerprocurement-v1 - 0.82.0-SNAPSHOT + 0.83.0 grpc-google-cloud-cloudcommerceconsumerprocurement-v1 GRPC library for google-cloud-cloudcommerceconsumerprocurement com.google.cloud google-cloud-cloudcommerceconsumerprocurement-parent - 0.82.0-SNAPSHOT + 0.83.0 diff --git a/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml b/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml index c16ac0330c76..cfb2815f666e 100644 --- a/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml +++ b/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 - 0.82.0-SNAPSHOT + 0.83.0 grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 GRPC library for google-cloud-cloudcommerceconsumerprocurement com.google.cloud google-cloud-cloudcommerceconsumerprocurement-parent - 0.82.0-SNAPSHOT + 0.83.0 diff --git a/java-cloudcommerceconsumerprocurement/pom.xml b/java-cloudcommerceconsumerprocurement/pom.xml index 7f21e994b823..1599b2221b88 100644 --- a/java-cloudcommerceconsumerprocurement/pom.xml +++ b/java-cloudcommerceconsumerprocurement/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-cloudcommerceconsumerprocurement-parent pom - 0.82.0-SNAPSHOT + 0.83.0 Google Cloud Commerce Consumer Procurement Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-cloudcommerceconsumerprocurement - 0.82.0-SNAPSHOT + 0.83.0 com.google.api.grpc proto-google-cloud-cloudcommerceconsumerprocurement-v1 - 0.82.0-SNAPSHOT + 0.83.0 com.google.api.grpc grpc-google-cloud-cloudcommerceconsumerprocurement-v1 - 0.82.0-SNAPSHOT + 0.83.0 com.google.api.grpc grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 - 0.82.0-SNAPSHOT + 0.83.0 com.google.api.grpc proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 - 0.82.0-SNAPSHOT + 0.83.0 diff --git a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml index ddb32dbdc8a9..2ccec9a55698 100644 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudcommerceconsumerprocurement-v1 - 0.82.0-SNAPSHOT + 0.83.0 proto-google-cloud-cloudcommerceconsumerprocurement-v1 Proto library for google-cloud-cloudcommerceconsumerprocurement com.google.cloud google-cloud-cloudcommerceconsumerprocurement-parent - 0.82.0-SNAPSHOT + 0.83.0 diff --git a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml index 5b78abf6546d..e23b40a1c372 100644 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 - 0.82.0-SNAPSHOT + 0.83.0 proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 Proto library for google-cloud-cloudcommerceconsumerprocurement com.google.cloud google-cloud-cloudcommerceconsumerprocurement-parent - 0.82.0-SNAPSHOT + 0.83.0 diff --git a/java-cloudcontrolspartner/README.md b/java-cloudcontrolspartner/README.md index 1911258b5cca..42fc49d43820 100644 --- a/java-cloudcontrolspartner/README.md +++ b/java-cloudcontrolspartner/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudcontrolspartner - 0.46.0 + 0.47.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudcontrolspartner:0.46.0' +implementation 'com.google.cloud:google-cloud-cloudcontrolspartner:0.47.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudcontrolspartner" % "0.46.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudcontrolspartner" % "0.47.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudcontrolspartner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcontrolspartner/0.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcontrolspartner/0.47.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner-bom/pom.xml b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner-bom/pom.xml index 12b3a6a618ae..6bb401cc19da 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner-bom/pom.xml +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-cloudcontrolspartner-bom - 0.48.0-SNAPSHOT + 0.49.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-cloudcontrolspartner - 0.48.0-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-cloudcontrolspartner-v1 - 0.48.0-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-cloudcontrolspartner-v1beta - 0.48.0-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-cloudcontrolspartner-v1beta - 0.48.0-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-cloudcontrolspartner-v1 - 0.48.0-SNAPSHOT + 0.49.0 diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/pom.xml b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/pom.xml index 0d48715e989d..2f6d5ccb22cf 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/pom.xml +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-cloudcontrolspartner - 0.48.0-SNAPSHOT + 0.49.0 jar Google Cloud Controls Partner API Cloud Controls Partner API Provides insights about your customers and their Assured Workloads based on your Sovereign Controls by Partners offering. com.google.cloud google-cloud-cloudcontrolspartner-parent - 0.48.0-SNAPSHOT + 0.49.0 google-cloud-cloudcontrolspartner diff --git a/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1/pom.xml b/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1/pom.xml index 2a82be834eaa..3170f40b626b 100644 --- a/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1/pom.xml +++ b/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudcontrolspartner-v1 - 0.48.0-SNAPSHOT + 0.49.0 grpc-google-cloud-cloudcontrolspartner-v1 GRPC library for google-cloud-cloudcontrolspartner com.google.cloud google-cloud-cloudcontrolspartner-parent - 0.48.0-SNAPSHOT + 0.49.0 diff --git a/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/pom.xml b/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/pom.xml index 1e1433570cd8..b0e2bbf42055 100644 --- a/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/pom.xml +++ b/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudcontrolspartner-v1beta - 0.48.0-SNAPSHOT + 0.49.0 grpc-google-cloud-cloudcontrolspartner-v1beta GRPC library for google-cloud-cloudcontrolspartner com.google.cloud google-cloud-cloudcontrolspartner-parent - 0.48.0-SNAPSHOT + 0.49.0 diff --git a/java-cloudcontrolspartner/pom.xml b/java-cloudcontrolspartner/pom.xml index 53c7b1300bf0..bba9a72fd800 100644 --- a/java-cloudcontrolspartner/pom.xml +++ b/java-cloudcontrolspartner/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-cloudcontrolspartner-parent pom - 0.48.0-SNAPSHOT + 0.49.0 Google Cloud Controls Partner API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-cloudcontrolspartner - 0.48.0-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-cloudcontrolspartner-v1 - 0.48.0-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-cloudcontrolspartner-v1beta - 0.48.0-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-cloudcontrolspartner-v1beta - 0.48.0-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-cloudcontrolspartner-v1 - 0.48.0-SNAPSHOT + 0.49.0 diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/pom.xml b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/pom.xml index 0852419e29b6..50ab5ec952be 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/pom.xml +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudcontrolspartner-v1 - 0.48.0-SNAPSHOT + 0.49.0 proto-google-cloud-cloudcontrolspartner-v1 Proto library for google-cloud-cloudcontrolspartner com.google.cloud google-cloud-cloudcontrolspartner-parent - 0.48.0-SNAPSHOT + 0.49.0 diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/pom.xml b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/pom.xml index 23ac32676d90..f61d498b8845 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/pom.xml +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudcontrolspartner-v1beta - 0.48.0-SNAPSHOT + 0.49.0 proto-google-cloud-cloudcontrolspartner-v1beta Proto library for google-cloud-cloudcontrolspartner com.google.cloud google-cloud-cloudcontrolspartner-parent - 0.48.0-SNAPSHOT + 0.49.0 diff --git a/java-cloudquotas/README.md b/java-cloudquotas/README.md index a9787ca59177..8b4318a472b1 100644 --- a/java-cloudquotas/README.md +++ b/java-cloudquotas/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudquotas - 0.50.0 + 0.51.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudquotas:0.50.0' +implementation 'com.google.cloud:google-cloud-cloudquotas:0.51.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudquotas" % "0.50.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudquotas" % "0.51.0" ``` ## Authentication @@ -177,7 +177,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudquotas/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudquotas.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudquotas/0.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudquotas/0.51.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudquotas/google-cloud-cloudquotas-bom/pom.xml b/java-cloudquotas/google-cloud-cloudquotas-bom/pom.xml index c2bd6f5ee300..afaee9f0f061 100644 --- a/java-cloudquotas/google-cloud-cloudquotas-bom/pom.xml +++ b/java-cloudquotas/google-cloud-cloudquotas-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-cloudquotas-bom - 0.52.0-SNAPSHOT + 0.53.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-cloudquotas - 0.52.0-SNAPSHOT + 0.53.0 com.google.api.grpc grpc-google-cloud-cloudquotas-v1 - 0.52.0-SNAPSHOT + 0.53.0 com.google.api.grpc grpc-google-cloud-cloudquotas-v1beta - 0.52.0-SNAPSHOT + 0.53.0 com.google.api.grpc proto-google-cloud-cloudquotas-v1 - 0.52.0-SNAPSHOT + 0.53.0 com.google.api.grpc proto-google-cloud-cloudquotas-v1beta - 0.52.0-SNAPSHOT + 0.53.0 diff --git a/java-cloudquotas/google-cloud-cloudquotas/pom.xml b/java-cloudquotas/google-cloud-cloudquotas/pom.xml index 20584928dc6e..a8f83834d444 100644 --- a/java-cloudquotas/google-cloud-cloudquotas/pom.xml +++ b/java-cloudquotas/google-cloud-cloudquotas/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-cloudquotas - 0.52.0-SNAPSHOT + 0.53.0 jar Google Cloud Quotas API Cloud Quotas API Cloud Quotas API provides GCP service consumers with management and @@ -12,7 +12,7 @@ com.google.cloud google-cloud-cloudquotas-parent - 0.52.0-SNAPSHOT + 0.53.0 google-cloud-cloudquotas diff --git a/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerClient.java b/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerClient.java index 632f4e1ba30d..1c3b8221675f 100644 --- a/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerClient.java +++ b/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerClient.java @@ -65,7 +65,7 @@ * * *

      UpdateQuotaAdjusterSettings - *

      RPC Method for updating QuotaAdjusterSettings based on the request + *

      Updates the QuotaAdjusterSettings for the specified resource. * *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      *
        @@ -83,7 +83,7 @@ * * *

        GetQuotaAdjusterSettings - *

        RPC Method for getting QuotaAdjusterSettings based on the request + *

        Gets the QuotaAdjusterSettings for the specified resource. * *

        Request object method variants only take one parameter, a request object, which must be constructed before the call.

        *
          @@ -215,7 +215,7 @@ public QuotaAdjusterSettingsManagerStub getStub() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * RPC Method for updating QuotaAdjusterSettings based on the request + * Updates the QuotaAdjusterSettings for the specified resource. * *

          Sample code: * @@ -251,7 +251,7 @@ public final QuotaAdjusterSettings updateQuotaAdjusterSettings( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * RPC Method for updating QuotaAdjusterSettings based on the request + * Updates the QuotaAdjusterSettings for the specified resource. * *

          Sample code: * @@ -284,7 +284,7 @@ public final QuotaAdjusterSettings updateQuotaAdjusterSettings( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * RPC Method for updating QuotaAdjusterSettings based on the request + * Updates the QuotaAdjusterSettings for the specified resource. * *

          Sample code: * @@ -318,7 +318,7 @@ public final QuotaAdjusterSettings updateQuotaAdjusterSettings( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * RPC Method for getting QuotaAdjusterSettings based on the request + * Gets the QuotaAdjusterSettings for the specified resource. * *

          Sample code: * @@ -351,7 +351,7 @@ public final QuotaAdjusterSettings getQuotaAdjusterSettings(QuotaAdjusterSetting // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * RPC Method for getting QuotaAdjusterSettings based on the request + * Gets the QuotaAdjusterSettings for the specified resource. * *

          Sample code: * @@ -382,7 +382,7 @@ public final QuotaAdjusterSettings getQuotaAdjusterSettings(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * RPC Method for getting QuotaAdjusterSettings based on the request + * Gets the QuotaAdjusterSettings for the specified resource. * *

          Sample code: * @@ -415,7 +415,7 @@ public final QuotaAdjusterSettings getQuotaAdjusterSettings( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * RPC Method for getting QuotaAdjusterSettings based on the request + * Gets the QuotaAdjusterSettings for the specified resource. * *

          Sample code: * diff --git a/java-cloudquotas/grpc-google-cloud-cloudquotas-v1/pom.xml b/java-cloudquotas/grpc-google-cloud-cloudquotas-v1/pom.xml index 6b61e385271f..85c29136a00d 100644 --- a/java-cloudquotas/grpc-google-cloud-cloudquotas-v1/pom.xml +++ b/java-cloudquotas/grpc-google-cloud-cloudquotas-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudquotas-v1 - 0.52.0-SNAPSHOT + 0.53.0 grpc-google-cloud-cloudquotas-v1 GRPC library for google-cloud-cloudquotas com.google.cloud google-cloud-cloudquotas-parent - 0.52.0-SNAPSHOT + 0.53.0 diff --git a/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/pom.xml b/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/pom.xml index 4c324ab17452..9a10b2dbdad9 100644 --- a/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/pom.xml +++ b/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudquotas-v1beta - 0.52.0-SNAPSHOT + 0.53.0 grpc-google-cloud-cloudquotas-v1beta GRPC library for google-cloud-cloudquotas com.google.cloud google-cloud-cloudquotas-parent - 0.52.0-SNAPSHOT + 0.53.0 diff --git a/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerGrpc.java b/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerGrpc.java index 3c9cb1bd94b9..addd059f73a1 100644 --- a/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerGrpc.java +++ b/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerGrpc.java @@ -215,7 +215,7 @@ public interface AsyncService { * * *

          -     * RPC Method for updating QuotaAdjusterSettings based on the request
          +     * Updates the QuotaAdjusterSettings for the specified resource.
                * 
          */ default void updateQuotaAdjusterSettings( @@ -230,7 +230,7 @@ default void updateQuotaAdjusterSettings( * * *
          -     * RPC Method for getting QuotaAdjusterSettings based on the request
          +     * Gets the QuotaAdjusterSettings for the specified resource.
                * 
          */ default void getQuotaAdjusterSettings( @@ -290,7 +290,7 @@ protected QuotaAdjusterSettingsManagerStub build( * * *
          -     * RPC Method for updating QuotaAdjusterSettings based on the request
          +     * Updates the QuotaAdjusterSettings for the specified resource.
                * 
          */ public void updateQuotaAdjusterSettings( @@ -307,7 +307,7 @@ public void updateQuotaAdjusterSettings( * * *
          -     * RPC Method for getting QuotaAdjusterSettings based on the request
          +     * Gets the QuotaAdjusterSettings for the specified resource.
                * 
          */ public void getQuotaAdjusterSettings( @@ -349,7 +349,7 @@ protected QuotaAdjusterSettingsManagerBlockingV2Stub build( * * *
          -     * RPC Method for updating QuotaAdjusterSettings based on the request
          +     * Updates the QuotaAdjusterSettings for the specified resource.
                * 
          */ public com.google.api.cloudquotas.v1beta.QuotaAdjusterSettings updateQuotaAdjusterSettings( @@ -363,7 +363,7 @@ public com.google.api.cloudquotas.v1beta.QuotaAdjusterSettings updateQuotaAdjust * * *
          -     * RPC Method for getting QuotaAdjusterSettings based on the request
          +     * Gets the QuotaAdjusterSettings for the specified resource.
                * 
          */ public com.google.api.cloudquotas.v1beta.QuotaAdjusterSettings getQuotaAdjusterSettings( @@ -403,7 +403,7 @@ protected QuotaAdjusterSettingsManagerBlockingStub build( * * *
          -     * RPC Method for updating QuotaAdjusterSettings based on the request
          +     * Updates the QuotaAdjusterSettings for the specified resource.
                * 
          */ public com.google.api.cloudquotas.v1beta.QuotaAdjusterSettings updateQuotaAdjusterSettings( @@ -416,7 +416,7 @@ public com.google.api.cloudquotas.v1beta.QuotaAdjusterSettings updateQuotaAdjust * * *
          -     * RPC Method for getting QuotaAdjusterSettings based on the request
          +     * Gets the QuotaAdjusterSettings for the specified resource.
                * 
          */ public com.google.api.cloudquotas.v1beta.QuotaAdjusterSettings getQuotaAdjusterSettings( @@ -455,7 +455,7 @@ protected QuotaAdjusterSettingsManagerFutureStub build( * * *
          -     * RPC Method for updating QuotaAdjusterSettings based on the request
          +     * Updates the QuotaAdjusterSettings for the specified resource.
                * 
          */ public com.google.common.util.concurrent.ListenableFuture< @@ -470,7 +470,7 @@ protected QuotaAdjusterSettingsManagerFutureStub build( * * *
          -     * RPC Method for getting QuotaAdjusterSettings based on the request
          +     * Gets the QuotaAdjusterSettings for the specified resource.
                * 
          */ public com.google.common.util.concurrent.ListenableFuture< diff --git a/java-cloudquotas/pom.xml b/java-cloudquotas/pom.xml index bae0b1124853..5f8314e3d734 100644 --- a/java-cloudquotas/pom.xml +++ b/java-cloudquotas/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-cloudquotas-parent pom - 0.52.0-SNAPSHOT + 0.53.0 Google Cloud Quotas API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-cloudquotas - 0.52.0-SNAPSHOT + 0.53.0 com.google.api.grpc proto-google-cloud-cloudquotas-v1beta - 0.52.0-SNAPSHOT + 0.53.0 com.google.api.grpc grpc-google-cloud-cloudquotas-v1beta - 0.52.0-SNAPSHOT + 0.53.0 com.google.api.grpc grpc-google-cloud-cloudquotas-v1 - 0.52.0-SNAPSHOT + 0.53.0 com.google.api.grpc proto-google-cloud-cloudquotas-v1 - 0.52.0-SNAPSHOT + 0.53.0 diff --git a/java-cloudquotas/proto-google-cloud-cloudquotas-v1/pom.xml b/java-cloudquotas/proto-google-cloud-cloudquotas-v1/pom.xml index 04a64e1b54c3..ee2d5e5ae138 100644 --- a/java-cloudquotas/proto-google-cloud-cloudquotas-v1/pom.xml +++ b/java-cloudquotas/proto-google-cloud-cloudquotas-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudquotas-v1 - 0.52.0-SNAPSHOT + 0.53.0 proto-google-cloud-cloudquotas-v1 Proto library for google-cloud-cloudquotas com.google.cloud google-cloud-cloudquotas-parent - 0.52.0-SNAPSHOT + 0.53.0 diff --git a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/pom.xml b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/pom.xml index 7c39ba819133..707e424cf5db 100644 --- a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/pom.xml +++ b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudquotas-v1beta - 0.52.0-SNAPSHOT + 0.53.0 proto-google-cloud-cloudquotas-v1beta Proto library for google-cloud-cloudquotas com.google.cloud google-cloud-cloudquotas-parent - 0.52.0-SNAPSHOT + 0.53.0 diff --git a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettings.java b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettings.java index c6dc4fb8f60a..2579b3a972a1 100644 --- a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettings.java +++ b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettings.java @@ -255,9 +255,13 @@ private Enablement(int value) { * * *
          -   * Identifier. Name of the config would be of the format:
          +   * Identifier. Name of the configuration, in the formats below:
          +   *
          +   * * For a project:
              * projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
          +   * * For a folder:
              * folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
          +   * * For an organization:
              * organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
              * 
          * @@ -282,9 +286,13 @@ public java.lang.String getName() { * * *
          -   * Identifier. Name of the config would be of the format:
          +   * Identifier. Name of the configuration, in the formats below:
          +   *
          +   * * For a project:
              * projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
          +   * * For a folder:
              * folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
          +   * * For an organization:
              * organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
              * 
          * @@ -1003,9 +1011,13 @@ public Builder mergeFrom( * * *
          -     * Identifier. Name of the config would be of the format:
          +     * Identifier. Name of the configuration, in the formats below:
          +     *
          +     * * For a project:
                * projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
          +     * * For a folder:
                * folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
          +     * * For an organization:
                * organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
                * 
          * @@ -1029,9 +1041,13 @@ public java.lang.String getName() { * * *
          -     * Identifier. Name of the config would be of the format:
          +     * Identifier. Name of the configuration, in the formats below:
          +     *
          +     * * For a project:
                * projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
          +     * * For a folder:
                * folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
          +     * * For an organization:
                * organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
                * 
          * @@ -1055,9 +1071,13 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
          -     * Identifier. Name of the config would be of the format:
          +     * Identifier. Name of the configuration, in the formats below:
          +     *
          +     * * For a project:
                * projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
          +     * * For a folder:
                * folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
          +     * * For an organization:
                * organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
                * 
          * @@ -1080,9 +1100,13 @@ public Builder setName(java.lang.String value) { * * *
          -     * Identifier. Name of the config would be of the format:
          +     * Identifier. Name of the configuration, in the formats below:
          +     *
          +     * * For a project:
                * projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
          +     * * For a folder:
                * folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
          +     * * For an organization:
                * organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
                * 
          * @@ -1101,9 +1125,13 @@ public Builder clearName() { * * *
          -     * Identifier. Name of the config would be of the format:
          +     * Identifier. Name of the configuration, in the formats below:
          +     *
          +     * * For a project:
                * projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
          +     * * For a folder:
                * folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
          +     * * For an organization:
                * organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
                * 
          * diff --git a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsOrBuilder.java b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsOrBuilder.java index 9134319c5554..4fdfec7861a3 100644 --- a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsOrBuilder.java +++ b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsOrBuilder.java @@ -30,9 +30,13 @@ public interface QuotaAdjusterSettingsOrBuilder * * *
          -   * Identifier. Name of the config would be of the format:
          +   * Identifier. Name of the configuration, in the formats below:
          +   *
          +   * * For a project:
              * projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
          +   * * For a folder:
              * folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
          +   * * For an organization:
              * organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
              * 
          * @@ -46,9 +50,13 @@ public interface QuotaAdjusterSettingsOrBuilder * * *
          -   * Identifier. Name of the config would be of the format:
          +   * Identifier. Name of the configuration, in the formats below:
          +   *
          +   * * For a project:
              * projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
          +   * * For a folder:
              * folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
          +   * * For an organization:
              * organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
              * 
          * diff --git a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/proto/google/api/cloudquotas/v1beta/quota_adjuster_settings.proto b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/proto/google/api/cloudquotas/v1beta/quota_adjuster_settings.proto index 15b0f299c2ef..8f8d3eb4e846 100644 --- a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/proto/google/api/cloudquotas/v1beta/quota_adjuster_settings.proto +++ b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/proto/google/api/cloudquotas/v1beta/quota_adjuster_settings.proto @@ -42,7 +42,7 @@ service QuotaAdjusterSettingsManager { option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - // RPC Method for updating QuotaAdjusterSettings based on the request + // Updates the QuotaAdjusterSettings for the specified resource. rpc UpdateQuotaAdjusterSettings(UpdateQuotaAdjusterSettingsRequest) returns (QuotaAdjusterSettings) { option (google.api.http) = { @@ -61,7 +61,7 @@ service QuotaAdjusterSettingsManager { "quota_adjuster_settings,update_mask"; } - // RPC Method for getting QuotaAdjusterSettings based on the request + // Gets the QuotaAdjusterSettings for the specified resource. rpc GetQuotaAdjusterSettings(GetQuotaAdjusterSettingsRequest) returns (QuotaAdjusterSettings) { option (google.api.http) = { @@ -130,9 +130,13 @@ message QuotaAdjusterSettings { DISABLED = 3; } - // Identifier. Name of the config would be of the format: + // Identifier. Name of the configuration, in the formats below: + // + // * For a project: // projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings + // * For a folder: // folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings + // * For an organization: // organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings string name = 1 [(google.api.field_behavior) = IDENTIFIER]; diff --git a/java-cloudsecuritycompliance/README.md b/java-cloudsecuritycompliance/README.md index 5e33f33f520f..f4e3ec985904 100644 --- a/java-cloudsecuritycompliance/README.md +++ b/java-cloudsecuritycompliance/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudsecuritycompliance - 0.9.0 + 0.10.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudsecuritycompliance:0.9.0' +implementation 'com.google.cloud:google-cloud-cloudsecuritycompliance:0.10.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudsecuritycompliance" % "0.9.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudsecuritycompliance" % "0.10.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudsecuritycompliance/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudsecuritycompliance.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsecuritycompliance/0.9.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsecuritycompliance/0.10.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance-bom/pom.xml b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance-bom/pom.xml index e2cbb3200127..be62f584b37f 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance-bom/pom.xml +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-cloudsecuritycompliance-bom - 0.11.0-SNAPSHOT + 0.12.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-cloudsecuritycompliance - 0.11.0-SNAPSHOT + 0.12.0 com.google.api.grpc grpc-google-cloud-cloudsecuritycompliance-v1 - 0.11.0-SNAPSHOT + 0.12.0 com.google.api.grpc proto-google-cloud-cloudsecuritycompliance-v1 - 0.11.0-SNAPSHOT + 0.12.0
          diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/pom.xml b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/pom.xml index cb00bb16ca3d..b42b91f51193 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/pom.xml +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-cloudsecuritycompliance - 0.11.0-SNAPSHOT + 0.12.0 jar Google Cloud Security Compliance API Cloud Security Compliance API Compliance Manager uses software-defined controls that let you assess support for multiple compliance programs and security requirements within a Google Cloud organization com.google.cloud google-cloud-cloudsecuritycompliance-parent - 0.11.0-SNAPSHOT + 0.12.0 google-cloud-cloudsecuritycompliance diff --git a/java-cloudsecuritycompliance/grpc-google-cloud-cloudsecuritycompliance-v1/pom.xml b/java-cloudsecuritycompliance/grpc-google-cloud-cloudsecuritycompliance-v1/pom.xml index ac1f2f86a547..24a28ca40483 100644 --- a/java-cloudsecuritycompliance/grpc-google-cloud-cloudsecuritycompliance-v1/pom.xml +++ b/java-cloudsecuritycompliance/grpc-google-cloud-cloudsecuritycompliance-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudsecuritycompliance-v1 - 0.11.0-SNAPSHOT + 0.12.0 grpc-google-cloud-cloudsecuritycompliance-v1 GRPC library for google-cloud-cloudsecuritycompliance com.google.cloud google-cloud-cloudsecuritycompliance-parent - 0.11.0-SNAPSHOT + 0.12.0 diff --git a/java-cloudsecuritycompliance/pom.xml b/java-cloudsecuritycompliance/pom.xml index 5ed4edffa961..43721786b4f5 100644 --- a/java-cloudsecuritycompliance/pom.xml +++ b/java-cloudsecuritycompliance/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-cloudsecuritycompliance-parent pom - 0.11.0-SNAPSHOT + 0.12.0 Google Cloud Security Compliance API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-cloudsecuritycompliance - 0.11.0-SNAPSHOT + 0.12.0 com.google.api.grpc grpc-google-cloud-cloudsecuritycompliance-v1 - 0.11.0-SNAPSHOT + 0.12.0 com.google.api.grpc proto-google-cloud-cloudsecuritycompliance-v1 - 0.11.0-SNAPSHOT + 0.12.0 diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/pom.xml b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/pom.xml index 4d643643529d..ed0bde29df83 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/pom.xml +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudsecuritycompliance-v1 - 0.11.0-SNAPSHOT + 0.12.0 proto-google-cloud-cloudsecuritycompliance-v1 Proto library for google-cloud-cloudsecuritycompliance com.google.cloud google-cloud-cloudsecuritycompliance-parent - 0.11.0-SNAPSHOT + 0.12.0 diff --git a/java-cloudsupport/README.md b/java-cloudsupport/README.md index 26b4941312c7..79fc9e31ec93 100644 --- a/java-cloudsupport/README.md +++ b/java-cloudsupport/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudsupport - 0.66.0 + 0.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudsupport:0.66.0' +implementation 'com.google.cloud:google-cloud-cloudsupport:0.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudsupport" % "0.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudsupport" % "0.67.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudsupport/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudsupport.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsupport/0.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsupport/0.67.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudsupport/google-cloud-cloudsupport-bom/pom.xml b/java-cloudsupport/google-cloud-cloudsupport-bom/pom.xml index 0df00b8ecfc3..cc22fc44bc1a 100644 --- a/java-cloudsupport/google-cloud-cloudsupport-bom/pom.xml +++ b/java-cloudsupport/google-cloud-cloudsupport-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-cloudsupport-bom - 0.68.0-SNAPSHOT + 0.69.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-cloudsupport - 0.68.0-SNAPSHOT + 0.69.0 com.google.api.grpc grpc-google-cloud-cloudsupport-v2 - 0.68.0-SNAPSHOT + 0.69.0 com.google.api.grpc grpc-google-cloud-cloudsupport-v2beta - 0.68.0-SNAPSHOT + 0.69.0 com.google.api.grpc proto-google-cloud-cloudsupport-v2 - 0.68.0-SNAPSHOT + 0.69.0 com.google.api.grpc proto-google-cloud-cloudsupport-v2beta - 0.68.0-SNAPSHOT + 0.69.0 diff --git a/java-cloudsupport/google-cloud-cloudsupport/pom.xml b/java-cloudsupport/google-cloud-cloudsupport/pom.xml index 5478204a3dde..c566234705ae 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/pom.xml +++ b/java-cloudsupport/google-cloud-cloudsupport/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-cloudsupport - 0.68.0-SNAPSHOT + 0.69.0 jar Google Google Cloud Support API Google Cloud Support API Manages Google Cloud technical support cases for Customer Care support offerings. com.google.cloud google-cloud-cloudsupport-parent - 0.68.0-SNAPSHOT + 0.69.0 google-cloud-cloudsupport diff --git a/java-cloudsupport/grpc-google-cloud-cloudsupport-v2/pom.xml b/java-cloudsupport/grpc-google-cloud-cloudsupport-v2/pom.xml index 30989eb40671..b484d2663515 100644 --- a/java-cloudsupport/grpc-google-cloud-cloudsupport-v2/pom.xml +++ b/java-cloudsupport/grpc-google-cloud-cloudsupport-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudsupport-v2 - 0.68.0-SNAPSHOT + 0.69.0 grpc-google-cloud-cloudsupport-v2 GRPC library for google-cloud-cloudsupport com.google.cloud google-cloud-cloudsupport-parent - 0.68.0-SNAPSHOT + 0.69.0 diff --git a/java-cloudsupport/grpc-google-cloud-cloudsupport-v2beta/pom.xml b/java-cloudsupport/grpc-google-cloud-cloudsupport-v2beta/pom.xml index 3f7fd22ac3d3..d6d72a0fa522 100644 --- a/java-cloudsupport/grpc-google-cloud-cloudsupport-v2beta/pom.xml +++ b/java-cloudsupport/grpc-google-cloud-cloudsupport-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudsupport-v2beta - 0.68.0-SNAPSHOT + 0.69.0 grpc-google-cloud-cloudsupport-v2beta GRPC library for google-cloud-cloudsupport com.google.cloud google-cloud-cloudsupport-parent - 0.68.0-SNAPSHOT + 0.69.0 diff --git a/java-cloudsupport/pom.xml b/java-cloudsupport/pom.xml index 58fdf6c95358..6efec51b2384 100644 --- a/java-cloudsupport/pom.xml +++ b/java-cloudsupport/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-cloudsupport-parent pom - 0.68.0-SNAPSHOT + 0.69.0 Google Google Cloud Support API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-cloudsupport - 0.68.0-SNAPSHOT + 0.69.0 com.google.api.grpc proto-google-cloud-cloudsupport-v2beta - 0.68.0-SNAPSHOT + 0.69.0 com.google.api.grpc grpc-google-cloud-cloudsupport-v2beta - 0.68.0-SNAPSHOT + 0.69.0 com.google.api.grpc grpc-google-cloud-cloudsupport-v2 - 0.68.0-SNAPSHOT + 0.69.0 com.google.api.grpc proto-google-cloud-cloudsupport-v2 - 0.68.0-SNAPSHOT + 0.69.0 diff --git a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/pom.xml b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/pom.xml index 25b520d004a5..fb26ff8c3de0 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/pom.xml +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudsupport-v2 - 0.68.0-SNAPSHOT + 0.69.0 proto-google-cloud-cloudsupport-v2 Proto library for google-cloud-cloudsupport com.google.cloud google-cloud-cloudsupport-parent - 0.68.0-SNAPSHOT + 0.69.0 diff --git a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/actor.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/actor.proto index b214e08a2c1b..3dfb5de103eb 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/actor.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/actor.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/attachment.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/attachment.proto index 02725e3730b4..9039620b3143 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/attachment.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/attachment.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/attachment_service.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/attachment_service.proto index d7ee6559ecce..5c63b8dc101f 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/attachment_service.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/attachment_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/case.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/case.proto index 63e65a4cd8a3..b14160b4c907 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/case.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/case.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/case_service.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/case_service.proto index abd77bf62bf9..4030bc1cafe4 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/case_service.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/case_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/comment.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/comment.proto index 2729176a3f6e..85c6f6076c86 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/comment.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/comment.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/comment_service.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/comment_service.proto index d05d2ae763ae..6321b52b620e 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/comment_service.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/comment_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/escalation.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/escalation.proto index 5f5d68ca1972..ffc79d9e11f7 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/escalation.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/escalation.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/pom.xml b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/pom.xml index ab0b1b2e3a97..da62d411eb47 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/pom.xml +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudsupport-v2beta - 0.68.0-SNAPSHOT + 0.69.0 proto-google-cloud-cloudsupport-v2beta Proto library for google-cloud-cloudsupport com.google.cloud google-cloud-cloudsupport-parent - 0.68.0-SNAPSHOT + 0.69.0 diff --git a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/actor.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/actor.proto index 908b94ad5fb0..6effd8a3acfb 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/actor.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/actor.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/attachment.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/attachment.proto index 1ea39feaa846..918d006edbd4 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/attachment.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/attachment.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/attachment_service.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/attachment_service.proto index e488712eec14..acf530964437 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/attachment_service.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/attachment_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/case.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/case.proto index b042e9d95e45..10a2cb6c8c9d 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/case.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/case.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/case_service.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/case_service.proto index cd9894d2b97e..8863f275036d 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/case_service.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/case_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/comment.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/comment.proto index 0bc668d095f7..dd6b1ee2e0fd 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/comment.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/comment.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/comment_service.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/comment_service.proto index f0cd726cfb3e..dff46126955f 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/comment_service.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/comment_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/content.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/content.proto index bd7c184bcd98..29750d7c24fe 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/content.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/content.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/email_message.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/email_message.proto index f20350358d46..6321cf006451 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/email_message.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/email_message.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/escalation.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/escalation.proto index e3cd802232f1..abec570edec0 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/escalation.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/escalation.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/feed_item.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/feed_item.proto index 0540170772ec..c275dbcc3410 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/feed_item.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/feed_item.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/feed_service.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/feed_service.proto index bcf447d31d47..02d36c198080 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/feed_service.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/feed_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-compute/README.md b/java-compute/README.md index d4d4ae9ccb22..682b3e66a1d8 100644 --- a/java-compute/README.md +++ b/java-compute/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-compute - 1.92.0 + 1.93.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-compute:1.92.0' +implementation 'com.google.cloud:google-cloud-compute:1.93.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.92.0" +libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.93.0" ``` ## Authentication @@ -238,7 +238,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-compute/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-compute.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-compute/1.92.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-compute/1.93.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-compute/google-cloud-compute-bom/pom.xml b/java-compute/google-cloud-compute-bom/pom.xml index a645f6fb0fa7..55448166bb99 100644 --- a/java-compute/google-cloud-compute-bom/pom.xml +++ b/java-compute/google-cloud-compute-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-compute-bom - 1.94.0-SNAPSHOT + 1.95.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,12 +23,12 @@ com.google.cloud google-cloud-compute - 1.94.0-SNAPSHOT + 1.95.0 com.google.api.grpc proto-google-cloud-compute-v1 - 1.94.0-SNAPSHOT + 1.95.0 diff --git a/java-compute/google-cloud-compute/pom.xml b/java-compute/google-cloud-compute/pom.xml index 6ac9f633004e..780b25224c66 100644 --- a/java-compute/google-cloud-compute/pom.xml +++ b/java-compute/google-cloud-compute/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-compute - 1.94.0-SNAPSHOT + 1.95.0 jar Google Compute Engine Compute Engine delivers configurable virtual machines running in @@ -12,7 +12,7 @@ com.google.cloud google-cloud-compute-parent - 1.94.0-SNAPSHOT + 1.95.0 google-cloud-compute diff --git a/java-compute/pom.xml b/java-compute/pom.xml index 413f56368b42..0c3652bf2283 100644 --- a/java-compute/pom.xml +++ b/java-compute/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-compute-parent pom - 1.94.0-SNAPSHOT + 1.95.0 Google Compute Engine Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,12 +29,12 @@ com.google.cloud google-cloud-compute - 1.94.0-SNAPSHOT + 1.95.0 com.google.api.grpc proto-google-cloud-compute-v1 - 1.94.0-SNAPSHOT + 1.95.0 diff --git a/java-compute/proto-google-cloud-compute-v1/pom.xml b/java-compute/proto-google-cloud-compute-v1/pom.xml index b30f83ddda47..7cb7d3a59b95 100644 --- a/java-compute/proto-google-cloud-compute-v1/pom.xml +++ b/java-compute/proto-google-cloud-compute-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-compute-v1 - 1.94.0-SNAPSHOT + 1.95.0 proto-google-cloud-compute-v1 Proto library for google-cloud-compute com.google.cloud google-cloud-compute-parent - 1.94.0-SNAPSHOT + 1.95.0 diff --git a/java-confidentialcomputing/README.md b/java-confidentialcomputing/README.md index d9268ec8d993..6da7a78c9aa3 100644 --- a/java-confidentialcomputing/README.md +++ b/java-confidentialcomputing/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-confidentialcomputing - 0.68.0 + 0.69.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-confidentialcomputing:0.68.0' +implementation 'com.google.cloud:google-cloud-confidentialcomputing:0.69.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-confidentialcomputing" % "0.68.0" +libraryDependencies += "com.google.cloud" % "google-cloud-confidentialcomputing" % "0.69.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-confidentialcomputing/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-confidentialcomputing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-confidentialcomputing/0.68.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-confidentialcomputing/0.69.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing-bom/pom.xml b/java-confidentialcomputing/google-cloud-confidentialcomputing-bom/pom.xml index 7b7ec0aed58f..66b59394f3ab 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing-bom/pom.xml +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-confidentialcomputing-bom - 0.70.0-SNAPSHOT + 0.71.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-confidentialcomputing - 0.70.0-SNAPSHOT + 0.71.0 com.google.api.grpc grpc-google-cloud-confidentialcomputing-v1 - 0.70.0-SNAPSHOT + 0.71.0 com.google.api.grpc grpc-google-cloud-confidentialcomputing-v1alpha1 - 0.70.0-SNAPSHOT + 0.71.0 com.google.api.grpc proto-google-cloud-confidentialcomputing-v1 - 0.70.0-SNAPSHOT + 0.71.0 com.google.api.grpc proto-google-cloud-confidentialcomputing-v1alpha1 - 0.70.0-SNAPSHOT + 0.71.0 diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/pom.xml b/java-confidentialcomputing/google-cloud-confidentialcomputing/pom.xml index 7143dad55563..3372f32051d5 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/pom.xml +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-confidentialcomputing - 0.70.0-SNAPSHOT + 0.71.0 jar Google Confidential Computing API Confidential Computing API Protect data in-use with Confidential VMs, Confidential GKE, Confidential Dataproc, and Confidential Space. com.google.cloud google-cloud-confidentialcomputing-parent - 0.70.0-SNAPSHOT + 0.71.0 google-cloud-confidentialcomputing diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClient.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClient.java index 8adba9f09447..2bb1c409f64c 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClient.java +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClient.java @@ -131,7 +131,8 @@ * * *

          ListLocations - *

          Lists information about the supported locations for this service. + *

          Lists information about the supported locations for this service.This method can be called in two ways: + *

          * **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project. * *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          *
            @@ -485,6 +486,7 @@ public final VerifyAttestationResponse verifyAttestation(VerifyAttestationReques * .setGceShieldedIdentity(GceShieldedIdentity.newBuilder().build()) * .setOptions( * VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions.newBuilder().build()) + * .setNvidiaAttestation(NvidiaAttestation.newBuilder().build()) * .build(); * VerifyConfidentialSpaceResponse response = * confidentialComputingClient.verifyConfidentialSpace(request); @@ -522,6 +524,7 @@ public final VerifyConfidentialSpaceResponse verifyConfidentialSpace( * .setGceShieldedIdentity(GceShieldedIdentity.newBuilder().build()) * .setOptions( * VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions.newBuilder().build()) + * .setNvidiaAttestation(NvidiaAttestation.newBuilder().build()) * .build(); * ApiFuture future = * confidentialComputingClient.verifyConfidentialSpaceCallable().futureCall(request); @@ -552,6 +555,7 @@ public final VerifyConfidentialSpaceResponse verifyConfidentialSpace( * VerifyConfidentialGkeRequest request = * VerifyConfidentialGkeRequest.newBuilder() * .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString()) + * .setOptions(VerifyConfidentialGkeRequest.ConfidentialGkeOptions.newBuilder().build()) * .build(); * VerifyConfidentialGkeResponse response = * confidentialComputingClient.verifyConfidentialGke(request); @@ -583,6 +587,7 @@ public final VerifyConfidentialGkeResponse verifyConfidentialGke( * VerifyConfidentialGkeRequest request = * VerifyConfidentialGkeRequest.newBuilder() * .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString()) + * .setOptions(VerifyConfidentialGkeRequest.ConfidentialGkeOptions.newBuilder().build()) * .build(); * ApiFuture future = * confidentialComputingClient.verifyConfidentialGkeCallable().futureCall(request); @@ -598,7 +603,13 @@ public final VerifyConfidentialGkeResponse verifyConfidentialGke( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

            * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

            Sample code: * @@ -632,7 +643,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

            * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

            Sample code: * @@ -667,7 +684,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

            * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

            Sample code: * diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json index 3af692644147..268e79e711de 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json @@ -575,6 +575,123 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.confidentialcomputing.v1.NvidiaAttestation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.NvidiaAttestation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.NvidiaAttestation$GpuArchitectureType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.NvidiaAttestation$GpuInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.NvidiaAttestation$GpuInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.NvidiaAttestation$MultiGpuSecurePassthroughAttestation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.NvidiaAttestation$MultiGpuSecurePassthroughAttestation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.NvidiaAttestation$ProtectedPcieAttestation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.NvidiaAttestation$ProtectedPcieAttestation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.NvidiaAttestation$SinglePassthroughAttestation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.NvidiaAttestation$SinglePassthroughAttestation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.NvidiaAttestation$SwitchInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.NvidiaAttestation$SwitchInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.confidentialcomputing.v1.SevSnpAttestation", "queryAllDeclaredConstructors": true, @@ -773,6 +890,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest$ConfidentialGkeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest$ConfidentialGkeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse", "queryAllDeclaredConstructors": true, diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientHttpJsonTest.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientHttpJsonTest.java index c96371af2e2d..e148789e8323 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientHttpJsonTest.java +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientHttpJsonTest.java @@ -262,6 +262,7 @@ public void verifyConfidentialSpaceTest() throws Exception { .setGceShieldedIdentity(GceShieldedIdentity.newBuilder().build()) .setOptions( VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions.newBuilder().build()) + .setNvidiaAttestation(NvidiaAttestation.newBuilder().build()) .build(); VerifyConfidentialSpaceResponse actualResponse = client.verifyConfidentialSpace(request); @@ -298,6 +299,7 @@ public void verifyConfidentialSpaceExceptionTest() throws Exception { .setGceShieldedIdentity(GceShieldedIdentity.newBuilder().build()) .setOptions( VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions.newBuilder().build()) + .setNvidiaAttestation(NvidiaAttestation.newBuilder().build()) .build(); client.verifyConfidentialSpace(request); Assert.fail("No exception raised"); @@ -317,6 +319,7 @@ public void verifyConfidentialGkeTest() throws Exception { VerifyConfidentialGkeRequest request = VerifyConfidentialGkeRequest.newBuilder() .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString()) + .setOptions(VerifyConfidentialGkeRequest.ConfidentialGkeOptions.newBuilder().build()) .build(); VerifyConfidentialGkeResponse actualResponse = client.verifyConfidentialGke(request); @@ -348,6 +351,7 @@ public void verifyConfidentialGkeExceptionTest() throws Exception { VerifyConfidentialGkeRequest request = VerifyConfidentialGkeRequest.newBuilder() .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString()) + .setOptions(VerifyConfidentialGkeRequest.ConfidentialGkeOptions.newBuilder().build()) .build(); client.verifyConfidentialGke(request); Assert.fail("No exception raised"); diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientTest.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientTest.java index c65eff22957f..4a6b4ca0cfca 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientTest.java +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientTest.java @@ -208,6 +208,7 @@ public void verifyAttestationTest() throws Exception { Assert.assertEquals(request.getTdCcel(), actualRequest.getTdCcel()); Assert.assertEquals(request.getSevSnpAttestation(), actualRequest.getSevSnpAttestation()); + Assert.assertEquals(request.getNvidiaAttestation(), actualRequest.getNvidiaAttestation()); Assert.assertEquals(request.getChallenge(), actualRequest.getChallenge()); Assert.assertEquals(request.getGcpCredentials(), actualRequest.getGcpCredentials()); Assert.assertEquals(request.getTpmAttestation(), actualRequest.getTpmAttestation()); @@ -260,6 +261,7 @@ public void verifyConfidentialSpaceTest() throws Exception { .setGceShieldedIdentity(GceShieldedIdentity.newBuilder().build()) .setOptions( VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions.newBuilder().build()) + .setNvidiaAttestation(NvidiaAttestation.newBuilder().build()) .build(); VerifyConfidentialSpaceResponse actualResponse = client.verifyConfidentialSpace(request); @@ -277,6 +279,7 @@ public void verifyConfidentialSpaceTest() throws Exception { Assert.assertEquals(request.getSignedEntitiesList(), actualRequest.getSignedEntitiesList()); Assert.assertEquals(request.getGceShieldedIdentity(), actualRequest.getGceShieldedIdentity()); Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertEquals(request.getNvidiaAttestation(), actualRequest.getNvidiaAttestation()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -297,6 +300,7 @@ public void verifyConfidentialSpaceExceptionTest() throws Exception { .setGceShieldedIdentity(GceShieldedIdentity.newBuilder().build()) .setOptions( VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions.newBuilder().build()) + .setNvidiaAttestation(NvidiaAttestation.newBuilder().build()) .build(); client.verifyConfidentialSpace(request); Assert.fail("No exception raised"); @@ -316,6 +320,7 @@ public void verifyConfidentialGkeTest() throws Exception { VerifyConfidentialGkeRequest request = VerifyConfidentialGkeRequest.newBuilder() .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString()) + .setOptions(VerifyConfidentialGkeRequest.ConfidentialGkeOptions.newBuilder().build()) .build(); VerifyConfidentialGkeResponse actualResponse = client.verifyConfidentialGke(request); @@ -328,6 +333,7 @@ public void verifyConfidentialGkeTest() throws Exception { Assert.assertEquals(request.getTpmAttestation(), actualRequest.getTpmAttestation()); Assert.assertEquals(request.getChallenge(), actualRequest.getChallenge()); + Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -343,6 +349,7 @@ public void verifyConfidentialGkeExceptionTest() throws Exception { VerifyConfidentialGkeRequest request = VerifyConfidentialGkeRequest.newBuilder() .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString()) + .setOptions(VerifyConfidentialGkeRequest.ConfidentialGkeOptions.newBuilder().build()) .build(); client.verifyConfidentialGke(request); Assert.fail("No exception raised"); diff --git a/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/pom.xml b/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/pom.xml index b8c096fd27b9..328ad1e7d8ef 100644 --- a/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/pom.xml +++ b/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-confidentialcomputing-v1 - 0.70.0-SNAPSHOT + 0.71.0 grpc-google-cloud-confidentialcomputing-v1 GRPC library for google-cloud-confidentialcomputing com.google.cloud google-cloud-confidentialcomputing-parent - 0.70.0-SNAPSHOT + 0.71.0 diff --git a/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1alpha1/pom.xml b/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1alpha1/pom.xml index a01f7a826246..31217de4dca6 100644 --- a/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1alpha1/pom.xml +++ b/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-confidentialcomputing-v1alpha1 - 0.70.0-SNAPSHOT + 0.71.0 grpc-google-cloud-confidentialcomputing-v1alpha1 GRPC library for google-cloud-confidentialcomputing com.google.cloud google-cloud-confidentialcomputing-parent - 0.70.0-SNAPSHOT + 0.71.0 diff --git a/java-confidentialcomputing/pom.xml b/java-confidentialcomputing/pom.xml index 0a200eb89906..ffbe708f4ba8 100644 --- a/java-confidentialcomputing/pom.xml +++ b/java-confidentialcomputing/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-confidentialcomputing-parent pom - 0.70.0-SNAPSHOT + 0.71.0 Google Confidential Computing API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-confidentialcomputing - 0.70.0-SNAPSHOT + 0.71.0 com.google.api.grpc grpc-google-cloud-confidentialcomputing-v1 - 0.70.0-SNAPSHOT + 0.71.0 com.google.api.grpc grpc-google-cloud-confidentialcomputing-v1alpha1 - 0.70.0-SNAPSHOT + 0.71.0 com.google.api.grpc proto-google-cloud-confidentialcomputing-v1 - 0.70.0-SNAPSHOT + 0.71.0 com.google.api.grpc proto-google-cloud-confidentialcomputing-v1alpha1 - 0.70.0-SNAPSHOT + 0.71.0 diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/pom.xml b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/pom.xml index 51d03a939d94..06bbd9f97475 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/pom.xml +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-confidentialcomputing-v1 - 0.70.0-SNAPSHOT + 0.71.0 proto-google-cloud-confidentialcomputing-v1 Proto library for google-cloud-confidentialcomputing com.google.cloud google-cloud-confidentialcomputing-parent - 0.70.0-SNAPSHOT + 0.71.0 diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/NvidiaAttestation.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/NvidiaAttestation.java new file mode 100644 index 000000000000..62b982ad2f04 --- /dev/null +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/NvidiaAttestation.java @@ -0,0 +1,7932 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/confidentialcomputing/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.confidentialcomputing.v1; + +/** + * + * + *

            + * An Nvidia attestation report for GPU and NVSwitch devices.
            + * Contains necessary attestation evidence that the client collects for
            + * verification.
            + * 
            + * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.NvidiaAttestation} + */ +@com.google.protobuf.Generated +public final class NvidiaAttestation extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.NvidiaAttestation) + NvidiaAttestationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "NvidiaAttestation"); + } + + // Use NvidiaAttestation.newBuilder() to construct. + private NvidiaAttestation(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private NvidiaAttestation() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.class, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.Builder.class); + } + + /** + * + * + *
            +   * GpuArchitectureType enumerates the supported GPU architecture types.
            +   * 
            + * + * Protobuf enum {@code + * google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType} + */ + public enum GpuArchitectureType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * Unspecified GPU architecture type.
            +     * 
            + * + * GPU_ARCHITECTURE_TYPE_UNSPECIFIED = 0; + */ + GPU_ARCHITECTURE_TYPE_UNSPECIFIED(0), + /** + * + * + *
            +     * Hopper GPU architecture type.
            +     * 
            + * + * GPU_ARCHITECTURE_TYPE_HOPPER = 8; + */ + GPU_ARCHITECTURE_TYPE_HOPPER(8), + /** + * + * + *
            +     * Blackwell GPU architecture type.
            +     * 
            + * + * GPU_ARCHITECTURE_TYPE_BLACKWELL = 10; + */ + GPU_ARCHITECTURE_TYPE_BLACKWELL(10), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GpuArchitectureType"); + } + + /** + * + * + *
            +     * Unspecified GPU architecture type.
            +     * 
            + * + * GPU_ARCHITECTURE_TYPE_UNSPECIFIED = 0; + */ + public static final int GPU_ARCHITECTURE_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * Hopper GPU architecture type.
            +     * 
            + * + * GPU_ARCHITECTURE_TYPE_HOPPER = 8; + */ + public static final int GPU_ARCHITECTURE_TYPE_HOPPER_VALUE = 8; + + /** + * + * + *
            +     * Blackwell GPU architecture type.
            +     * 
            + * + * GPU_ARCHITECTURE_TYPE_BLACKWELL = 10; + */ + public static final int GPU_ARCHITECTURE_TYPE_BLACKWELL_VALUE = 10; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static GpuArchitectureType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static GpuArchitectureType forNumber(int value) { + switch (value) { + case 0: + return GPU_ARCHITECTURE_TYPE_UNSPECIFIED; + case 8: + return GPU_ARCHITECTURE_TYPE_HOPPER; + case 10: + return GPU_ARCHITECTURE_TYPE_BLACKWELL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public GpuArchitectureType findValueByNumber(int number) { + return GpuArchitectureType.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final GpuArchitectureType[] VALUES = values(); + + public static GpuArchitectureType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private GpuArchitectureType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType) + } + + public interface GpuInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Optional. The UUID of the GPU device.
            +     * 
            + * + * string uuid = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The uuid. + */ + java.lang.String getUuid(); + + /** + * + * + *
            +     * Optional. The UUID of the GPU device.
            +     * 
            + * + * string uuid = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for uuid. + */ + com.google.protobuf.ByteString getUuidBytes(); + + /** + * + * + *
            +     * Optional. The driver version of the GPU.
            +     * 
            + * + * string driver_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The driverVersion. + */ + java.lang.String getDriverVersion(); + + /** + * + * + *
            +     * Optional. The driver version of the GPU.
            +     * 
            + * + * string driver_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for driverVersion. + */ + com.google.protobuf.ByteString getDriverVersionBytes(); + + /** + * + * + *
            +     * Optional. The vBIOS version of the GPU.
            +     * 
            + * + * string vbios_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The vbiosVersion. + */ + java.lang.String getVbiosVersion(); + + /** + * + * + *
            +     * Optional. The vBIOS version of the GPU.
            +     * 
            + * + * string vbios_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for vbiosVersion. + */ + com.google.protobuf.ByteString getVbiosVersionBytes(); + + /** + * + * + *
            +     * Optional. The GPU architecture type.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType gpu_architecture_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for gpuArchitectureType. + */ + int getGpuArchitectureTypeValue(); + + /** + * + * + *
            +     * Optional. The GPU architecture type.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType gpu_architecture_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gpuArchitectureType. + */ + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType + getGpuArchitectureType(); + + /** + * + * + *
            +     * Optional. The raw attestation certificate chain for the GPU device.
            +     * 
            + * + * bytes attestation_certificate_chain = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The attestationCertificateChain. + */ + com.google.protobuf.ByteString getAttestationCertificateChain(); + + /** + * + * + *
            +     * Optional. The raw attestation report for the GPU device.
            +     * This field contains SPDM request/response defined in
            +     * https://www.dmtf.org/sites/default/files/standards/documents/DSP0274_1.1.0.pdf
            +     * 
            + * + * bytes attestation_report = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The attestationReport. + */ + com.google.protobuf.ByteString getAttestationReport(); + } + + /** + * + * + *
            +   * GpuInfo contains the attestation evidence for a GPU device.
            +   * 
            + * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo} + */ + public static final class GpuInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo) + GpuInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GpuInfo"); + } + + // Use GpuInfo.newBuilder() to construct. + private GpuInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GpuInfo() { + uuid_ = ""; + driverVersion_ = ""; + vbiosVersion_ = ""; + gpuArchitectureType_ = 0; + attestationCertificateChain_ = com.google.protobuf.ByteString.EMPTY; + attestationReport_ = com.google.protobuf.ByteString.EMPTY; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_GpuInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_GpuInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.class, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder.class); + } + + public static final int UUID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uuid_ = ""; + + /** + * + * + *
            +     * Optional. The UUID of the GPU device.
            +     * 
            + * + * string uuid = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The uuid. + */ + @java.lang.Override + public java.lang.String getUuid() { + java.lang.Object ref = uuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uuid_ = s; + return s; + } + } + + /** + * + * + *
            +     * Optional. The UUID of the GPU device.
            +     * 
            + * + * string uuid = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for uuid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUuidBytes() { + java.lang.Object ref = uuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DRIVER_VERSION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object driverVersion_ = ""; + + /** + * + * + *
            +     * Optional. The driver version of the GPU.
            +     * 
            + * + * string driver_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The driverVersion. + */ + @java.lang.Override + public java.lang.String getDriverVersion() { + java.lang.Object ref = driverVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + driverVersion_ = s; + return s; + } + } + + /** + * + * + *
            +     * Optional. The driver version of the GPU.
            +     * 
            + * + * string driver_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for driverVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDriverVersionBytes() { + java.lang.Object ref = driverVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + driverVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VBIOS_VERSION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object vbiosVersion_ = ""; + + /** + * + * + *
            +     * Optional. The vBIOS version of the GPU.
            +     * 
            + * + * string vbios_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The vbiosVersion. + */ + @java.lang.Override + public java.lang.String getVbiosVersion() { + java.lang.Object ref = vbiosVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vbiosVersion_ = s; + return s; + } + } + + /** + * + * + *
            +     * Optional. The vBIOS version of the GPU.
            +     * 
            + * + * string vbios_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for vbiosVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVbiosVersionBytes() { + java.lang.Object ref = vbiosVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vbiosVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GPU_ARCHITECTURE_TYPE_FIELD_NUMBER = 4; + private int gpuArchitectureType_ = 0; + + /** + * + * + *
            +     * Optional. The GPU architecture type.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType gpu_architecture_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for gpuArchitectureType. + */ + @java.lang.Override + public int getGpuArchitectureTypeValue() { + return gpuArchitectureType_; + } + + /** + * + * + *
            +     * Optional. The GPU architecture type.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType gpu_architecture_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gpuArchitectureType. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType + getGpuArchitectureType() { + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType result = + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType.forNumber( + gpuArchitectureType_); + return result == null + ? com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType + .UNRECOGNIZED + : result; + } + + public static final int ATTESTATION_CERTIFICATE_CHAIN_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString attestationCertificateChain_ = + com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
            +     * Optional. The raw attestation certificate chain for the GPU device.
            +     * 
            + * + * bytes attestation_certificate_chain = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The attestationCertificateChain. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAttestationCertificateChain() { + return attestationCertificateChain_; + } + + public static final int ATTESTATION_REPORT_FIELD_NUMBER = 6; + private com.google.protobuf.ByteString attestationReport_ = + com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
            +     * Optional. The raw attestation report for the GPU device.
            +     * This field contains SPDM request/response defined in
            +     * https://www.dmtf.org/sites/default/files/standards/documents/DSP0274_1.1.0.pdf
            +     * 
            + * + * bytes attestation_report = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The attestationReport. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAttestationReport() { + return attestationReport_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uuid_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, uuid_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(driverVersion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, driverVersion_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(vbiosVersion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, vbiosVersion_); + } + if (gpuArchitectureType_ + != com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType + .GPU_ARCHITECTURE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, gpuArchitectureType_); + } + if (!attestationCertificateChain_.isEmpty()) { + output.writeBytes(5, attestationCertificateChain_); + } + if (!attestationReport_.isEmpty()) { + output.writeBytes(6, attestationReport_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uuid_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, uuid_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(driverVersion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, driverVersion_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(vbiosVersion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, vbiosVersion_); + } + if (gpuArchitectureType_ + != com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType + .GPU_ARCHITECTURE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, gpuArchitectureType_); + } + if (!attestationCertificateChain_.isEmpty()) { + size += + com.google.protobuf.CodedOutputStream.computeBytesSize(5, attestationCertificateChain_); + } + if (!attestationReport_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, attestationReport_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo)) { + return super.equals(obj); + } + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo other = + (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo) obj; + + if (!getUuid().equals(other.getUuid())) return false; + if (!getDriverVersion().equals(other.getDriverVersion())) return false; + if (!getVbiosVersion().equals(other.getVbiosVersion())) return false; + if (gpuArchitectureType_ != other.gpuArchitectureType_) return false; + if (!getAttestationCertificateChain().equals(other.getAttestationCertificateChain())) + return false; + if (!getAttestationReport().equals(other.getAttestationReport())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + UUID_FIELD_NUMBER; + hash = (53 * hash) + getUuid().hashCode(); + hash = (37 * hash) + DRIVER_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getDriverVersion().hashCode(); + hash = (37 * hash) + VBIOS_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVbiosVersion().hashCode(); + hash = (37 * hash) + GPU_ARCHITECTURE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + gpuArchitectureType_; + hash = (37 * hash) + ATTESTATION_CERTIFICATE_CHAIN_FIELD_NUMBER; + hash = (53 * hash) + getAttestationCertificateChain().hashCode(); + hash = (37 * hash) + ATTESTATION_REPORT_FIELD_NUMBER; + hash = (53 * hash) + getAttestationReport().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * GpuInfo contains the attestation evidence for a GPU device.
            +     * 
            + * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo) + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_GpuInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_GpuInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.class, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder.class); + } + + // Construct using + // com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uuid_ = ""; + driverVersion_ = ""; + vbiosVersion_ = ""; + gpuArchitectureType_ = 0; + attestationCertificateChain_ = com.google.protobuf.ByteString.EMPTY; + attestationReport_ = com.google.protobuf.ByteString.EMPTY; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_GpuInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo + getDefaultInstanceForType() { + return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo build() { + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo buildPartial() { + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo result = + new com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uuid_ = uuid_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.driverVersion_ = driverVersion_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.vbiosVersion_ = vbiosVersion_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.gpuArchitectureType_ = gpuArchitectureType_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.attestationCertificateChain_ = attestationCertificateChain_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.attestationReport_ = attestationReport_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo) { + return mergeFrom( + (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo other) { + if (other + == com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo + .getDefaultInstance()) return this; + if (!other.getUuid().isEmpty()) { + uuid_ = other.uuid_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDriverVersion().isEmpty()) { + driverVersion_ = other.driverVersion_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getVbiosVersion().isEmpty()) { + vbiosVersion_ = other.vbiosVersion_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.gpuArchitectureType_ != 0) { + setGpuArchitectureTypeValue(other.getGpuArchitectureTypeValue()); + } + if (!other.getAttestationCertificateChain().isEmpty()) { + setAttestationCertificateChain(other.getAttestationCertificateChain()); + } + if (!other.getAttestationReport().isEmpty()) { + setAttestationReport(other.getAttestationReport()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + uuid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + driverVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + vbiosVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + gpuArchitectureType_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + attestationCertificateChain_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + attestationReport_ = input.readBytes(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object uuid_ = ""; + + /** + * + * + *
            +       * Optional. The UUID of the GPU device.
            +       * 
            + * + * string uuid = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The uuid. + */ + public java.lang.String getUuid() { + java.lang.Object ref = uuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Optional. The UUID of the GPU device.
            +       * 
            + * + * string uuid = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for uuid. + */ + public com.google.protobuf.ByteString getUuidBytes() { + java.lang.Object ref = uuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Optional. The UUID of the GPU device.
            +       * 
            + * + * string uuid = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The uuid to set. + * @return This builder for chaining. + */ + public Builder setUuid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uuid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The UUID of the GPU device.
            +       * 
            + * + * string uuid = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUuid() { + uuid_ = getDefaultInstance().getUuid(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The UUID of the GPU device.
            +       * 
            + * + * string uuid = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for uuid to set. + * @return This builder for chaining. + */ + public Builder setUuidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uuid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object driverVersion_ = ""; + + /** + * + * + *
            +       * Optional. The driver version of the GPU.
            +       * 
            + * + * string driver_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The driverVersion. + */ + public java.lang.String getDriverVersion() { + java.lang.Object ref = driverVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + driverVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Optional. The driver version of the GPU.
            +       * 
            + * + * string driver_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for driverVersion. + */ + public com.google.protobuf.ByteString getDriverVersionBytes() { + java.lang.Object ref = driverVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + driverVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Optional. The driver version of the GPU.
            +       * 
            + * + * string driver_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The driverVersion to set. + * @return This builder for chaining. + */ + public Builder setDriverVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + driverVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The driver version of the GPU.
            +       * 
            + * + * string driver_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDriverVersion() { + driverVersion_ = getDefaultInstance().getDriverVersion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The driver version of the GPU.
            +       * 
            + * + * string driver_version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for driverVersion to set. + * @return This builder for chaining. + */ + public Builder setDriverVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + driverVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object vbiosVersion_ = ""; + + /** + * + * + *
            +       * Optional. The vBIOS version of the GPU.
            +       * 
            + * + * string vbios_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The vbiosVersion. + */ + public java.lang.String getVbiosVersion() { + java.lang.Object ref = vbiosVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vbiosVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Optional. The vBIOS version of the GPU.
            +       * 
            + * + * string vbios_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for vbiosVersion. + */ + public com.google.protobuf.ByteString getVbiosVersionBytes() { + java.lang.Object ref = vbiosVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vbiosVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Optional. The vBIOS version of the GPU.
            +       * 
            + * + * string vbios_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The vbiosVersion to set. + * @return This builder for chaining. + */ + public Builder setVbiosVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + vbiosVersion_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The vBIOS version of the GPU.
            +       * 
            + * + * string vbios_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearVbiosVersion() { + vbiosVersion_ = getDefaultInstance().getVbiosVersion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The vBIOS version of the GPU.
            +       * 
            + * + * string vbios_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for vbiosVersion to set. + * @return This builder for chaining. + */ + public Builder setVbiosVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vbiosVersion_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int gpuArchitectureType_ = 0; + + /** + * + * + *
            +       * Optional. The GPU architecture type.
            +       * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType gpu_architecture_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for gpuArchitectureType. + */ + @java.lang.Override + public int getGpuArchitectureTypeValue() { + return gpuArchitectureType_; + } + + /** + * + * + *
            +       * Optional. The GPU architecture type.
            +       * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType gpu_architecture_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for gpuArchitectureType to set. + * @return This builder for chaining. + */ + public Builder setGpuArchitectureTypeValue(int value) { + gpuArchitectureType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The GPU architecture type.
            +       * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType gpu_architecture_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gpuArchitectureType. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType + getGpuArchitectureType() { + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType result = + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType + .forNumber(gpuArchitectureType_); + return result == null + ? com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType + .UNRECOGNIZED + : result; + } + + /** + * + * + *
            +       * Optional. The GPU architecture type.
            +       * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType gpu_architecture_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The gpuArchitectureType to set. + * @return This builder for chaining. + */ + public Builder setGpuArchitectureType( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + gpuArchitectureType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The GPU architecture type.
            +       * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType gpu_architecture_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearGpuArchitectureType() { + bitField0_ = (bitField0_ & ~0x00000008); + gpuArchitectureType_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString attestationCertificateChain_ = + com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
            +       * Optional. The raw attestation certificate chain for the GPU device.
            +       * 
            + * + * bytes attestation_certificate_chain = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The attestationCertificateChain. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAttestationCertificateChain() { + return attestationCertificateChain_; + } + + /** + * + * + *
            +       * Optional. The raw attestation certificate chain for the GPU device.
            +       * 
            + * + * bytes attestation_certificate_chain = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The attestationCertificateChain to set. + * @return This builder for chaining. + */ + public Builder setAttestationCertificateChain(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + attestationCertificateChain_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The raw attestation certificate chain for the GPU device.
            +       * 
            + * + * bytes attestation_certificate_chain = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAttestationCertificateChain() { + bitField0_ = (bitField0_ & ~0x00000010); + attestationCertificateChain_ = getDefaultInstance().getAttestationCertificateChain(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString attestationReport_ = + com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
            +       * Optional. The raw attestation report for the GPU device.
            +       * This field contains SPDM request/response defined in
            +       * https://www.dmtf.org/sites/default/files/standards/documents/DSP0274_1.1.0.pdf
            +       * 
            + * + * bytes attestation_report = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The attestationReport. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAttestationReport() { + return attestationReport_; + } + + /** + * + * + *
            +       * Optional. The raw attestation report for the GPU device.
            +       * This field contains SPDM request/response defined in
            +       * https://www.dmtf.org/sites/default/files/standards/documents/DSP0274_1.1.0.pdf
            +       * 
            + * + * bytes attestation_report = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The attestationReport to set. + * @return This builder for chaining. + */ + public Builder setAttestationReport(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + attestationReport_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The raw attestation report for the GPU device.
            +       * This field contains SPDM request/response defined in
            +       * https://www.dmtf.org/sites/default/files/standards/documents/DSP0274_1.1.0.pdf
            +       * 
            + * + * bytes attestation_report = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAttestationReport() { + bitField0_ = (bitField0_ & ~0x00000020); + attestationReport_ = getDefaultInstance().getAttestationReport(); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo) + private static final com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo(); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GpuInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SwitchInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Optional. The UUID of the NVSwitch device.
            +     * 
            + * + * string uuid = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The uuid. + */ + java.lang.String getUuid(); + + /** + * + * + *
            +     * Optional. The UUID of the NVSwitch device.
            +     * 
            + * + * string uuid = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for uuid. + */ + com.google.protobuf.ByteString getUuidBytes(); + + /** + * + * + *
            +     * Optional. The raw attestation certificate chain for the NVSwitch device.
            +     * 
            + * + * bytes attestation_certificate_chain = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The attestationCertificateChain. + */ + com.google.protobuf.ByteString getAttestationCertificateChain(); + + /** + * + * + *
            +     * Optional. The raw attestation report for the NvSwitch device.
            +     * This field contains SPDM request/response defined in
            +     * https://www.dmtf.org/sites/default/files/standards/documents/DSP0274_1.1.0.pdf
            +     * 
            + * + * bytes attestation_report = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The attestationReport. + */ + com.google.protobuf.ByteString getAttestationReport(); + } + + /** + * + * + *
            +   * SwitchInfo contains the attestation evidence for a NVSwitch device.
            +   * 
            + * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo} + */ + public static final class SwitchInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo) + SwitchInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SwitchInfo"); + } + + // Use SwitchInfo.newBuilder() to construct. + private SwitchInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SwitchInfo() { + uuid_ = ""; + attestationCertificateChain_ = com.google.protobuf.ByteString.EMPTY; + attestationReport_ = com.google.protobuf.ByteString.EMPTY; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_SwitchInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_SwitchInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo.class, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo.Builder.class); + } + + public static final int UUID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uuid_ = ""; + + /** + * + * + *
            +     * Optional. The UUID of the NVSwitch device.
            +     * 
            + * + * string uuid = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The uuid. + */ + @java.lang.Override + public java.lang.String getUuid() { + java.lang.Object ref = uuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uuid_ = s; + return s; + } + } + + /** + * + * + *
            +     * Optional. The UUID of the NVSwitch device.
            +     * 
            + * + * string uuid = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for uuid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUuidBytes() { + java.lang.Object ref = uuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ATTESTATION_CERTIFICATE_CHAIN_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString attestationCertificateChain_ = + com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
            +     * Optional. The raw attestation certificate chain for the NVSwitch device.
            +     * 
            + * + * bytes attestation_certificate_chain = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The attestationCertificateChain. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAttestationCertificateChain() { + return attestationCertificateChain_; + } + + public static final int ATTESTATION_REPORT_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString attestationReport_ = + com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
            +     * Optional. The raw attestation report for the NvSwitch device.
            +     * This field contains SPDM request/response defined in
            +     * https://www.dmtf.org/sites/default/files/standards/documents/DSP0274_1.1.0.pdf
            +     * 
            + * + * bytes attestation_report = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The attestationReport. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAttestationReport() { + return attestationReport_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uuid_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, uuid_); + } + if (!attestationCertificateChain_.isEmpty()) { + output.writeBytes(2, attestationCertificateChain_); + } + if (!attestationReport_.isEmpty()) { + output.writeBytes(3, attestationReport_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uuid_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, uuid_); + } + if (!attestationCertificateChain_.isEmpty()) { + size += + com.google.protobuf.CodedOutputStream.computeBytesSize(2, attestationCertificateChain_); + } + if (!attestationReport_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, attestationReport_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo)) { + return super.equals(obj); + } + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo other = + (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo) obj; + + if (!getUuid().equals(other.getUuid())) return false; + if (!getAttestationCertificateChain().equals(other.getAttestationCertificateChain())) + return false; + if (!getAttestationReport().equals(other.getAttestationReport())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + UUID_FIELD_NUMBER; + hash = (53 * hash) + getUuid().hashCode(); + hash = (37 * hash) + ATTESTATION_CERTIFICATE_CHAIN_FIELD_NUMBER; + hash = (53 * hash) + getAttestationCertificateChain().hashCode(); + hash = (37 * hash) + ATTESTATION_REPORT_FIELD_NUMBER; + hash = (53 * hash) + getAttestationReport().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * SwitchInfo contains the attestation evidence for a NVSwitch device.
            +     * 
            + * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo) + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_SwitchInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_SwitchInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo.class, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo.Builder + .class); + } + + // Construct using + // com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uuid_ = ""; + attestationCertificateChain_ = com.google.protobuf.ByteString.EMPTY; + attestationReport_ = com.google.protobuf.ByteString.EMPTY; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_SwitchInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo + getDefaultInstanceForType() { + return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo build() { + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo buildPartial() { + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo result = + new com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uuid_ = uuid_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.attestationCertificateChain_ = attestationCertificateChain_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.attestationReport_ = attestationReport_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo) { + return mergeFrom( + (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo other) { + if (other + == com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo + .getDefaultInstance()) return this; + if (!other.getUuid().isEmpty()) { + uuid_ = other.uuid_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAttestationCertificateChain().isEmpty()) { + setAttestationCertificateChain(other.getAttestationCertificateChain()); + } + if (!other.getAttestationReport().isEmpty()) { + setAttestationReport(other.getAttestationReport()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + uuid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + attestationCertificateChain_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + attestationReport_ = input.readBytes(); + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object uuid_ = ""; + + /** + * + * + *
            +       * Optional. The UUID of the NVSwitch device.
            +       * 
            + * + * string uuid = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The uuid. + */ + public java.lang.String getUuid() { + java.lang.Object ref = uuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Optional. The UUID of the NVSwitch device.
            +       * 
            + * + * string uuid = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for uuid. + */ + public com.google.protobuf.ByteString getUuidBytes() { + java.lang.Object ref = uuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Optional. The UUID of the NVSwitch device.
            +       * 
            + * + * string uuid = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The uuid to set. + * @return This builder for chaining. + */ + public Builder setUuid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uuid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The UUID of the NVSwitch device.
            +       * 
            + * + * string uuid = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUuid() { + uuid_ = getDefaultInstance().getUuid(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The UUID of the NVSwitch device.
            +       * 
            + * + * string uuid = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for uuid to set. + * @return This builder for chaining. + */ + public Builder setUuidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uuid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString attestationCertificateChain_ = + com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
            +       * Optional. The raw attestation certificate chain for the NVSwitch device.
            +       * 
            + * + * bytes attestation_certificate_chain = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The attestationCertificateChain. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAttestationCertificateChain() { + return attestationCertificateChain_; + } + + /** + * + * + *
            +       * Optional. The raw attestation certificate chain for the NVSwitch device.
            +       * 
            + * + * bytes attestation_certificate_chain = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The attestationCertificateChain to set. + * @return This builder for chaining. + */ + public Builder setAttestationCertificateChain(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + attestationCertificateChain_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The raw attestation certificate chain for the NVSwitch device.
            +       * 
            + * + * bytes attestation_certificate_chain = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAttestationCertificateChain() { + bitField0_ = (bitField0_ & ~0x00000002); + attestationCertificateChain_ = getDefaultInstance().getAttestationCertificateChain(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString attestationReport_ = + com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
            +       * Optional. The raw attestation report for the NvSwitch device.
            +       * This field contains SPDM request/response defined in
            +       * https://www.dmtf.org/sites/default/files/standards/documents/DSP0274_1.1.0.pdf
            +       * 
            + * + * bytes attestation_report = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The attestationReport. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAttestationReport() { + return attestationReport_; + } + + /** + * + * + *
            +       * Optional. The raw attestation report for the NvSwitch device.
            +       * This field contains SPDM request/response defined in
            +       * https://www.dmtf.org/sites/default/files/standards/documents/DSP0274_1.1.0.pdf
            +       * 
            + * + * bytes attestation_report = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The attestationReport to set. + * @return This builder for chaining. + */ + public Builder setAttestationReport(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + attestationReport_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The raw attestation report for the NvSwitch device.
            +       * This field contains SPDM request/response defined in
            +       * https://www.dmtf.org/sites/default/files/standards/documents/DSP0274_1.1.0.pdf
            +       * 
            + * + * bytes attestation_report = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAttestationReport() { + bitField0_ = (bitField0_ & ~0x00000004); + attestationReport_ = getDefaultInstance().getAttestationReport(); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo) + private static final com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo(); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SwitchInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SinglePassthroughAttestationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Optional. Single GPU quote.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quote = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gpuQuote field is set. + */ + boolean hasGpuQuote(); + + /** + * + * + *
            +     * Optional. Single GPU quote.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quote = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gpuQuote. + */ + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo getGpuQuote(); + + /** + * + * + *
            +     * Optional. Single GPU quote.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quote = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder + getGpuQuoteOrBuilder(); + } + + /** + * + * + *
            +   * Single GPU Passthrough (SPT) attestation.
            +   * 
            + * + * Protobuf type {@code + * google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation} + */ + public static final class SinglePassthroughAttestation + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation) + SinglePassthroughAttestationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SinglePassthroughAttestation"); + } + + // Use SinglePassthroughAttestation.newBuilder() to construct. + private SinglePassthroughAttestation(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SinglePassthroughAttestation() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_SinglePassthroughAttestation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_SinglePassthroughAttestation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation.class, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation.Builder.class); + } + + private int bitField0_; + public static final int GPU_QUOTE_FIELD_NUMBER = 1; + private com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpuQuote_; + + /** + * + * + *
            +     * Optional. Single GPU quote.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quote = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gpuQuote field is set. + */ + @java.lang.Override + public boolean hasGpuQuote() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Optional. Single GPU quote.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quote = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gpuQuote. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo getGpuQuote() { + return gpuQuote_ == null + ? com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.getDefaultInstance() + : gpuQuote_; + } + + /** + * + * + *
            +     * Optional. Single GPU quote.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quote = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder + getGpuQuoteOrBuilder() { + return gpuQuote_ == null + ? com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.getDefaultInstance() + : gpuQuote_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getGpuQuote()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGpuQuote()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation)) { + return super.equals(obj); + } + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation + other = + (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation) + obj; + + if (hasGpuQuote() != other.hasGpuQuote()) return false; + if (hasGpuQuote()) { + if (!getGpuQuote().equals(other.getGpuQuote())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGpuQuote()) { + hash = (37 * hash) + GPU_QUOTE_FIELD_NUMBER; + hash = (53 * hash) + getGpuQuote().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Single GPU Passthrough (SPT) attestation.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation) + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_SinglePassthroughAttestation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_SinglePassthroughAttestation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation.class, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation.Builder.class); + } + + // Construct using + // com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetGpuQuoteFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + gpuQuote_ = null; + if (gpuQuoteBuilder_ != null) { + gpuQuoteBuilder_.dispose(); + gpuQuoteBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_SinglePassthroughAttestation_descriptor; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation + getDefaultInstanceForType() { + return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation + build() { + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation + buildPartial() { + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation + result = + new com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.gpuQuote_ = gpuQuoteBuilder_ == null ? gpuQuote_ : gpuQuoteBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation) { + return mergeFrom( + (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation + other) { + if (other + == com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation.getDefaultInstance()) return this; + if (other.hasGpuQuote()) { + mergeGpuQuote(other.getGpuQuote()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetGpuQuoteFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpuQuote_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder> + gpuQuoteBuilder_; + + /** + * + * + *
            +       * Optional. Single GPU quote.
            +       * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quote = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gpuQuote field is set. + */ + public boolean hasGpuQuote() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +       * Optional. Single GPU quote.
            +       * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quote = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gpuQuote. + */ + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo getGpuQuote() { + if (gpuQuoteBuilder_ == null) { + return gpuQuote_ == null + ? com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo + .getDefaultInstance() + : gpuQuote_; + } else { + return gpuQuoteBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Optional. Single GPU quote.
            +       * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quote = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGpuQuote( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo value) { + if (gpuQuoteBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gpuQuote_ = value; + } else { + gpuQuoteBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Single GPU quote.
            +       * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quote = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGpuQuote( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder + builderForValue) { + if (gpuQuoteBuilder_ == null) { + gpuQuote_ = builderForValue.build(); + } else { + gpuQuoteBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Single GPU quote.
            +       * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quote = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGpuQuote( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo value) { + if (gpuQuoteBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && gpuQuote_ != null + && gpuQuote_ + != com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo + .getDefaultInstance()) { + getGpuQuoteBuilder().mergeFrom(value); + } else { + gpuQuote_ = value; + } + } else { + gpuQuoteBuilder_.mergeFrom(value); + } + if (gpuQuote_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Optional. Single GPU quote.
            +       * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quote = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGpuQuote() { + bitField0_ = (bitField0_ & ~0x00000001); + gpuQuote_ = null; + if (gpuQuoteBuilder_ != null) { + gpuQuoteBuilder_.dispose(); + gpuQuoteBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Single GPU quote.
            +       * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quote = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder + getGpuQuoteBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetGpuQuoteFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Optional. Single GPU quote.
            +       * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quote = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder + getGpuQuoteOrBuilder() { + if (gpuQuoteBuilder_ != null) { + return gpuQuoteBuilder_.getMessageOrBuilder(); + } else { + return gpuQuote_ == null + ? com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo + .getDefaultInstance() + : gpuQuote_; + } + } + + /** + * + * + *
            +       * Optional. Single GPU quote.
            +       * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quote = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder> + internalGetGpuQuoteFieldBuilder() { + if (gpuQuoteBuilder_ == null) { + gpuQuoteBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder>( + getGpuQuote(), getParentForChildren(), isClean()); + gpuQuote_ = null; + } + return gpuQuoteBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation) + private static final com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation(); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SinglePassthroughAttestation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ProtectedPcieAttestationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Optional. A list of GPU infos.
            +     * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getGpuQuotesList(); + + /** + * + * + *
            +     * Optional. A list of GPU infos.
            +     * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo getGpuQuotes(int index); + + /** + * + * + *
            +     * Optional. A list of GPU infos.
            +     * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getGpuQuotesCount(); + + /** + * + * + *
            +     * Optional. A list of GPU infos.
            +     * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder> + getGpuQuotesOrBuilderList(); + + /** + * + * + *
            +     * Optional. A list of GPU infos.
            +     * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder + getGpuQuotesOrBuilder(int index); + + /** + * + * + *
            +     * Optional. A list of SWITCH infos.
            +     * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getSwitchQuotesList(); + + /** + * + * + *
            +     * Optional. A list of SWITCH infos.
            +     * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo getSwitchQuotes( + int index); + + /** + * + * + *
            +     * Optional. A list of SWITCH infos.
            +     * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getSwitchQuotesCount(); + + /** + * + * + *
            +     * Optional. A list of SWITCH infos.
            +     * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfoOrBuilder> + getSwitchQuotesOrBuilderList(); + + /** + * + * + *
            +     * Optional. A list of SWITCH infos.
            +     * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfoOrBuilder + getSwitchQuotesOrBuilder(int index); + } + + /** + * + * + *
            +   * Protected PCIe (PPCIE) attestation.
            +   * Eight Hopper GPUs with Four NVSwitch Passthrough.
            +   * 
            + * + * Protobuf type {@code + * google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation} + */ + public static final class ProtectedPcieAttestation extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation) + ProtectedPcieAttestationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ProtectedPcieAttestation"); + } + + // Use ProtectedPcieAttestation.newBuilder() to construct. + private ProtectedPcieAttestation(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ProtectedPcieAttestation() { + gpuQuotes_ = java.util.Collections.emptyList(); + switchQuotes_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_ProtectedPcieAttestation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_ProtectedPcieAttestation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation + .class, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation + .Builder.class); + } + + public static final int GPU_QUOTES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + gpuQuotes_; + + /** + * + * + *
            +     * Optional. A list of GPU infos.
            +     * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getGpuQuotesList() { + return gpuQuotes_; + } + + /** + * + * + *
            +     * Optional. A list of GPU infos.
            +     * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder> + getGpuQuotesOrBuilderList() { + return gpuQuotes_; + } + + /** + * + * + *
            +     * Optional. A list of GPU infos.
            +     * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getGpuQuotesCount() { + return gpuQuotes_.size(); + } + + /** + * + * + *
            +     * Optional. A list of GPU infos.
            +     * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo getGpuQuotes( + int index) { + return gpuQuotes_.get(index); + } + + /** + * + * + *
            +     * Optional. A list of GPU infos.
            +     * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder + getGpuQuotesOrBuilder(int index) { + return gpuQuotes_.get(index); + } + + public static final int SWITCH_QUOTES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + switchQuotes_; + + /** + * + * + *
            +     * Optional. A list of SWITCH infos.
            +     * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getSwitchQuotesList() { + return switchQuotes_; + } + + /** + * + * + *
            +     * Optional. A list of SWITCH infos.
            +     * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfoOrBuilder> + getSwitchQuotesOrBuilderList() { + return switchQuotes_; + } + + /** + * + * + *
            +     * Optional. A list of SWITCH infos.
            +     * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getSwitchQuotesCount() { + return switchQuotes_.size(); + } + + /** + * + * + *
            +     * Optional. A list of SWITCH infos.
            +     * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo getSwitchQuotes( + int index) { + return switchQuotes_.get(index); + } + + /** + * + * + *
            +     * Optional. A list of SWITCH infos.
            +     * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfoOrBuilder + getSwitchQuotesOrBuilder(int index) { + return switchQuotes_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < gpuQuotes_.size(); i++) { + output.writeMessage(1, gpuQuotes_.get(i)); + } + for (int i = 0; i < switchQuotes_.size(); i++) { + output.writeMessage(2, switchQuotes_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < gpuQuotes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, gpuQuotes_.get(i)); + } + for (int i = 0; i < switchQuotes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, switchQuotes_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation)) { + return super.equals(obj); + } + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation other = + (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation) + obj; + + if (!getGpuQuotesList().equals(other.getGpuQuotesList())) return false; + if (!getSwitchQuotesList().equals(other.getSwitchQuotesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getGpuQuotesCount() > 0) { + hash = (37 * hash) + GPU_QUOTES_FIELD_NUMBER; + hash = (53 * hash) + getGpuQuotesList().hashCode(); + } + if (getSwitchQuotesCount() > 0) { + hash = (37 * hash) + SWITCH_QUOTES_FIELD_NUMBER; + hash = (53 * hash) + getSwitchQuotesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .ProtectedPcieAttestation + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .ProtectedPcieAttestation + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .ProtectedPcieAttestation + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .ProtectedPcieAttestation + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .ProtectedPcieAttestation + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .ProtectedPcieAttestation + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .ProtectedPcieAttestation + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .ProtectedPcieAttestation + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .ProtectedPcieAttestation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .ProtectedPcieAttestation + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .ProtectedPcieAttestation + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .ProtectedPcieAttestation + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Protected PCIe (PPCIE) attestation.
            +     * Eight Hopper GPUs with Four NVSwitch Passthrough.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation) + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .ProtectedPcieAttestationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_ProtectedPcieAttestation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_ProtectedPcieAttestation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation + .class, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation + .Builder.class); + } + + // Construct using + // com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (gpuQuotesBuilder_ == null) { + gpuQuotes_ = java.util.Collections.emptyList(); + } else { + gpuQuotes_ = null; + gpuQuotesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (switchQuotesBuilder_ == null) { + switchQuotes_ = java.util.Collections.emptyList(); + } else { + switchQuotes_ = null; + switchQuotesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_ProtectedPcieAttestation_descriptor; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation + getDefaultInstanceForType() { + return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation + build() { + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation + buildPartial() { + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation + result = + new com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .ProtectedPcieAttestation(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation + result) { + if (gpuQuotesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + gpuQuotes_ = java.util.Collections.unmodifiableList(gpuQuotes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.gpuQuotes_ = gpuQuotes_; + } else { + result.gpuQuotes_ = gpuQuotesBuilder_.build(); + } + if (switchQuotesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + switchQuotes_ = java.util.Collections.unmodifiableList(switchQuotes_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.switchQuotes_ = switchQuotes_; + } else { + result.switchQuotes_ = switchQuotesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation + result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation) { + return mergeFrom( + (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation + other) { + if (other + == com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation + .getDefaultInstance()) return this; + if (gpuQuotesBuilder_ == null) { + if (!other.gpuQuotes_.isEmpty()) { + if (gpuQuotes_.isEmpty()) { + gpuQuotes_ = other.gpuQuotes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureGpuQuotesIsMutable(); + gpuQuotes_.addAll(other.gpuQuotes_); + } + onChanged(); + } + } else { + if (!other.gpuQuotes_.isEmpty()) { + if (gpuQuotesBuilder_.isEmpty()) { + gpuQuotesBuilder_.dispose(); + gpuQuotesBuilder_ = null; + gpuQuotes_ = other.gpuQuotes_; + bitField0_ = (bitField0_ & ~0x00000001); + gpuQuotesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetGpuQuotesFieldBuilder() + : null; + } else { + gpuQuotesBuilder_.addAllMessages(other.gpuQuotes_); + } + } + } + if (switchQuotesBuilder_ == null) { + if (!other.switchQuotes_.isEmpty()) { + if (switchQuotes_.isEmpty()) { + switchQuotes_ = other.switchQuotes_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSwitchQuotesIsMutable(); + switchQuotes_.addAll(other.switchQuotes_); + } + onChanged(); + } + } else { + if (!other.switchQuotes_.isEmpty()) { + if (switchQuotesBuilder_.isEmpty()) { + switchQuotesBuilder_.dispose(); + switchQuotesBuilder_ = null; + switchQuotes_ = other.switchQuotes_; + bitField0_ = (bitField0_ & ~0x00000002); + switchQuotesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSwitchQuotesFieldBuilder() + : null; + } else { + switchQuotesBuilder_.addAllMessages(other.switchQuotes_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo m = + input.readMessage( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo + .parser(), + extensionRegistry); + if (gpuQuotesBuilder_ == null) { + ensureGpuQuotesIsMutable(); + gpuQuotes_.add(m); + } else { + gpuQuotesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo m = + input.readMessage( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo + .parser(), + extensionRegistry); + if (switchQuotesBuilder_ == null) { + ensureSwitchQuotesIsMutable(); + switchQuotes_.add(m); + } else { + switchQuotesBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + gpuQuotes_ = java.util.Collections.emptyList(); + + private void ensureGpuQuotesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + gpuQuotes_ = + new java.util.ArrayList< + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo>(gpuQuotes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder> + gpuQuotesBuilder_; + + /** + * + * + *
            +       * Optional. A list of GPU infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getGpuQuotesList() { + if (gpuQuotesBuilder_ == null) { + return java.util.Collections.unmodifiableList(gpuQuotes_); + } else { + return gpuQuotesBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +       * Optional. A list of GPU infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getGpuQuotesCount() { + if (gpuQuotesBuilder_ == null) { + return gpuQuotes_.size(); + } else { + return gpuQuotesBuilder_.getCount(); + } + } + + /** + * + * + *
            +       * Optional. A list of GPU infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo getGpuQuotes( + int index) { + if (gpuQuotesBuilder_ == null) { + return gpuQuotes_.get(index); + } else { + return gpuQuotesBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +       * Optional. A list of GPU infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGpuQuotes( + int index, com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo value) { + if (gpuQuotesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGpuQuotesIsMutable(); + gpuQuotes_.set(index, value); + onChanged(); + } else { + gpuQuotesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * Optional. A list of GPU infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGpuQuotes( + int index, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder + builderForValue) { + if (gpuQuotesBuilder_ == null) { + ensureGpuQuotesIsMutable(); + gpuQuotes_.set(index, builderForValue.build()); + onChanged(); + } else { + gpuQuotesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Optional. A list of GPU infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addGpuQuotes( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo value) { + if (gpuQuotesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGpuQuotesIsMutable(); + gpuQuotes_.add(value); + onChanged(); + } else { + gpuQuotesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +       * Optional. A list of GPU infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addGpuQuotes( + int index, com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo value) { + if (gpuQuotesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGpuQuotesIsMutable(); + gpuQuotes_.add(index, value); + onChanged(); + } else { + gpuQuotesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * Optional. A list of GPU infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addGpuQuotes( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder + builderForValue) { + if (gpuQuotesBuilder_ == null) { + ensureGpuQuotesIsMutable(); + gpuQuotes_.add(builderForValue.build()); + onChanged(); + } else { + gpuQuotesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Optional. A list of GPU infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addGpuQuotes( + int index, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder + builderForValue) { + if (gpuQuotesBuilder_ == null) { + ensureGpuQuotesIsMutable(); + gpuQuotes_.add(index, builderForValue.build()); + onChanged(); + } else { + gpuQuotesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Optional. A list of GPU infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllGpuQuotes( + java.lang.Iterable< + ? extends com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo> + values) { + if (gpuQuotesBuilder_ == null) { + ensureGpuQuotesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, gpuQuotes_); + onChanged(); + } else { + gpuQuotesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +       * Optional. A list of GPU infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGpuQuotes() { + if (gpuQuotesBuilder_ == null) { + gpuQuotes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + gpuQuotesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * Optional. A list of GPU infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeGpuQuotes(int index) { + if (gpuQuotesBuilder_ == null) { + ensureGpuQuotesIsMutable(); + gpuQuotes_.remove(index); + onChanged(); + } else { + gpuQuotesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +       * Optional. A list of GPU infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder + getGpuQuotesBuilder(int index) { + return internalGetGpuQuotesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +       * Optional. A list of GPU infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder + getGpuQuotesOrBuilder(int index) { + if (gpuQuotesBuilder_ == null) { + return gpuQuotes_.get(index); + } else { + return gpuQuotesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +       * Optional. A list of GPU infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder> + getGpuQuotesOrBuilderList() { + if (gpuQuotesBuilder_ != null) { + return gpuQuotesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(gpuQuotes_); + } + } + + /** + * + * + *
            +       * Optional. A list of GPU infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder + addGpuQuotesBuilder() { + return internalGetGpuQuotesFieldBuilder() + .addBuilder( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo + .getDefaultInstance()); + } + + /** + * + * + *
            +       * Optional. A list of GPU infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder + addGpuQuotesBuilder(int index) { + return internalGetGpuQuotesFieldBuilder() + .addBuilder( + index, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo + .getDefaultInstance()); + } + + /** + * + * + *
            +       * Optional. A list of GPU infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder> + getGpuQuotesBuilderList() { + return internalGetGpuQuotesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder> + internalGetGpuQuotesFieldBuilder() { + if (gpuQuotesBuilder_ == null) { + gpuQuotesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder>( + gpuQuotes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + gpuQuotes_ = null; + } + return gpuQuotesBuilder_; + } + + private java.util.List + switchQuotes_ = java.util.Collections.emptyList(); + + private void ensureSwitchQuotesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + switchQuotes_ = + new java.util.ArrayList< + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo>( + switchQuotes_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo.Builder, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfoOrBuilder> + switchQuotesBuilder_; + + /** + * + * + *
            +       * Optional. A list of SWITCH infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getSwitchQuotesList() { + if (switchQuotesBuilder_ == null) { + return java.util.Collections.unmodifiableList(switchQuotes_); + } else { + return switchQuotesBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +       * Optional. A list of SWITCH infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getSwitchQuotesCount() { + if (switchQuotesBuilder_ == null) { + return switchQuotes_.size(); + } else { + return switchQuotesBuilder_.getCount(); + } + } + + /** + * + * + *
            +       * Optional. A list of SWITCH infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo getSwitchQuotes( + int index) { + if (switchQuotesBuilder_ == null) { + return switchQuotes_.get(index); + } else { + return switchQuotesBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +       * Optional. A list of SWITCH infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSwitchQuotes( + int index, com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo value) { + if (switchQuotesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSwitchQuotesIsMutable(); + switchQuotes_.set(index, value); + onChanged(); + } else { + switchQuotesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * Optional. A list of SWITCH infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSwitchQuotes( + int index, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo.Builder + builderForValue) { + if (switchQuotesBuilder_ == null) { + ensureSwitchQuotesIsMutable(); + switchQuotes_.set(index, builderForValue.build()); + onChanged(); + } else { + switchQuotesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Optional. A list of SWITCH infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSwitchQuotes( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo value) { + if (switchQuotesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSwitchQuotesIsMutable(); + switchQuotes_.add(value); + onChanged(); + } else { + switchQuotesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +       * Optional. A list of SWITCH infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSwitchQuotes( + int index, com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo value) { + if (switchQuotesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSwitchQuotesIsMutable(); + switchQuotes_.add(index, value); + onChanged(); + } else { + switchQuotesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * Optional. A list of SWITCH infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSwitchQuotes( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo.Builder + builderForValue) { + if (switchQuotesBuilder_ == null) { + ensureSwitchQuotesIsMutable(); + switchQuotes_.add(builderForValue.build()); + onChanged(); + } else { + switchQuotesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Optional. A list of SWITCH infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSwitchQuotes( + int index, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo.Builder + builderForValue) { + if (switchQuotesBuilder_ == null) { + ensureSwitchQuotesIsMutable(); + switchQuotes_.add(index, builderForValue.build()); + onChanged(); + } else { + switchQuotesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Optional. A list of SWITCH infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllSwitchQuotes( + java.lang.Iterable< + ? extends com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo> + values) { + if (switchQuotesBuilder_ == null) { + ensureSwitchQuotesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, switchQuotes_); + onChanged(); + } else { + switchQuotesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +       * Optional. A list of SWITCH infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSwitchQuotes() { + if (switchQuotesBuilder_ == null) { + switchQuotes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + switchQuotesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * Optional. A list of SWITCH infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeSwitchQuotes(int index) { + if (switchQuotesBuilder_ == null) { + ensureSwitchQuotesIsMutable(); + switchQuotes_.remove(index); + onChanged(); + } else { + switchQuotesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +       * Optional. A list of SWITCH infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo.Builder + getSwitchQuotesBuilder(int index) { + return internalGetSwitchQuotesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +       * Optional. A list of SWITCH infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfoOrBuilder + getSwitchQuotesOrBuilder(int index) { + if (switchQuotesBuilder_ == null) { + return switchQuotes_.get(index); + } else { + return switchQuotesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +       * Optional. A list of SWITCH infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfoOrBuilder> + getSwitchQuotesOrBuilderList() { + if (switchQuotesBuilder_ != null) { + return switchQuotesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(switchQuotes_); + } + } + + /** + * + * + *
            +       * Optional. A list of SWITCH infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo.Builder + addSwitchQuotesBuilder() { + return internalGetSwitchQuotesFieldBuilder() + .addBuilder( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo + .getDefaultInstance()); + } + + /** + * + * + *
            +       * Optional. A list of SWITCH infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo.Builder + addSwitchQuotesBuilder(int index) { + return internalGetSwitchQuotesFieldBuilder() + .addBuilder( + index, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo + .getDefaultInstance()); + } + + /** + * + * + *
            +       * Optional. A list of SWITCH infos.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo switch_quotes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo.Builder> + getSwitchQuotesBuilderList() { + return internalGetSwitchQuotesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo.Builder, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfoOrBuilder> + internalGetSwitchQuotesFieldBuilder() { + if (switchQuotesBuilder_ == null) { + switchQuotesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfo.Builder, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SwitchInfoOrBuilder>( + switchQuotes_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + switchQuotes_ = null; + } + return switchQuotesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation) + private static final com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .ProtectedPcieAttestation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .ProtectedPcieAttestation(); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .ProtectedPcieAttestation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProtectedPcieAttestation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface MultiGpuSecurePassthroughAttestationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Optional. A list of GPU quotes.
            +     * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getGpuQuotesList(); + + /** + * + * + *
            +     * Optional. A list of GPU quotes.
            +     * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo getGpuQuotes(int index); + + /** + * + * + *
            +     * Optional. A list of GPU quotes.
            +     * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getGpuQuotesCount(); + + /** + * + * + *
            +     * Optional. A list of GPU quotes.
            +     * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder> + getGpuQuotesOrBuilderList(); + + /** + * + * + *
            +     * Optional. A list of GPU quotes.
            +     * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder + getGpuQuotesOrBuilder(int index); + } + + /** + * + * + *
            +   * MultiGpuSecurePassthroughAttestation contains the attestation evidence
            +   * for a Multi-GPU Secure Passthrough (MPT) attestation.
            +   * 
            + * + * Protobuf type {@code + * google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation} + */ + public static final class MultiGpuSecurePassthroughAttestation + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation) + MultiGpuSecurePassthroughAttestationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MultiGpuSecurePassthroughAttestation"); + } + + // Use MultiGpuSecurePassthroughAttestation.newBuilder() to construct. + private MultiGpuSecurePassthroughAttestation( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MultiGpuSecurePassthroughAttestation() { + gpuQuotes_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_MultiGpuSecurePassthroughAttestation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_MultiGpuSecurePassthroughAttestation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation.class, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation.Builder.class); + } + + public static final int GPU_QUOTES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + gpuQuotes_; + + /** + * + * + *
            +     * Optional. A list of GPU quotes.
            +     * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getGpuQuotesList() { + return gpuQuotes_; + } + + /** + * + * + *
            +     * Optional. A list of GPU quotes.
            +     * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder> + getGpuQuotesOrBuilderList() { + return gpuQuotes_; + } + + /** + * + * + *
            +     * Optional. A list of GPU quotes.
            +     * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getGpuQuotesCount() { + return gpuQuotes_.size(); + } + + /** + * + * + *
            +     * Optional. A list of GPU quotes.
            +     * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo getGpuQuotes( + int index) { + return gpuQuotes_.get(index); + } + + /** + * + * + *
            +     * Optional. A list of GPU quotes.
            +     * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder + getGpuQuotesOrBuilder(int index) { + return gpuQuotes_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < gpuQuotes_.size(); i++) { + output.writeMessage(1, gpuQuotes_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < gpuQuotes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, gpuQuotes_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation)) { + return super.equals(obj); + } + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation + other = + (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation) + obj; + + if (!getGpuQuotesList().equals(other.getGpuQuotesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getGpuQuotesCount() > 0) { + hash = (37 * hash) + GPU_QUOTES_FIELD_NUMBER; + hash = (53 * hash) + getGpuQuotesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * MultiGpuSecurePassthroughAttestation contains the attestation evidence
            +     * for a Multi-GPU Secure Passthrough (MPT) attestation.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation) + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_MultiGpuSecurePassthroughAttestation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_MultiGpuSecurePassthroughAttestation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation.class, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation.Builder.class); + } + + // Construct using + // com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (gpuQuotesBuilder_ == null) { + gpuQuotes_ = java.util.Collections.emptyList(); + } else { + gpuQuotes_ = null; + gpuQuotesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_MultiGpuSecurePassthroughAttestation_descriptor; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation + getDefaultInstanceForType() { + return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation + build() { + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation + buildPartial() { + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation + result = + new com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation + result) { + if (gpuQuotesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + gpuQuotes_ = java.util.Collections.unmodifiableList(gpuQuotes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.gpuQuotes_ = gpuQuotes_; + } else { + result.gpuQuotes_ = gpuQuotesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation + result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation) { + return mergeFrom( + (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation + other) { + if (other + == com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation.getDefaultInstance()) return this; + if (gpuQuotesBuilder_ == null) { + if (!other.gpuQuotes_.isEmpty()) { + if (gpuQuotes_.isEmpty()) { + gpuQuotes_ = other.gpuQuotes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureGpuQuotesIsMutable(); + gpuQuotes_.addAll(other.gpuQuotes_); + } + onChanged(); + } + } else { + if (!other.gpuQuotes_.isEmpty()) { + if (gpuQuotesBuilder_.isEmpty()) { + gpuQuotesBuilder_.dispose(); + gpuQuotesBuilder_ = null; + gpuQuotes_ = other.gpuQuotes_; + bitField0_ = (bitField0_ & ~0x00000001); + gpuQuotesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetGpuQuotesFieldBuilder() + : null; + } else { + gpuQuotesBuilder_.addAllMessages(other.gpuQuotes_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo m = + input.readMessage( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo + .parser(), + extensionRegistry); + if (gpuQuotesBuilder_ == null) { + ensureGpuQuotesIsMutable(); + gpuQuotes_.add(m); + } else { + gpuQuotesBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + gpuQuotes_ = java.util.Collections.emptyList(); + + private void ensureGpuQuotesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + gpuQuotes_ = + new java.util.ArrayList< + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo>(gpuQuotes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder> + gpuQuotesBuilder_; + + /** + * + * + *
            +       * Optional. A list of GPU quotes.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getGpuQuotesList() { + if (gpuQuotesBuilder_ == null) { + return java.util.Collections.unmodifiableList(gpuQuotes_); + } else { + return gpuQuotesBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +       * Optional. A list of GPU quotes.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getGpuQuotesCount() { + if (gpuQuotesBuilder_ == null) { + return gpuQuotes_.size(); + } else { + return gpuQuotesBuilder_.getCount(); + } + } + + /** + * + * + *
            +       * Optional. A list of GPU quotes.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo getGpuQuotes( + int index) { + if (gpuQuotesBuilder_ == null) { + return gpuQuotes_.get(index); + } else { + return gpuQuotesBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +       * Optional. A list of GPU quotes.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGpuQuotes( + int index, com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo value) { + if (gpuQuotesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGpuQuotesIsMutable(); + gpuQuotes_.set(index, value); + onChanged(); + } else { + gpuQuotesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * Optional. A list of GPU quotes.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGpuQuotes( + int index, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder + builderForValue) { + if (gpuQuotesBuilder_ == null) { + ensureGpuQuotesIsMutable(); + gpuQuotes_.set(index, builderForValue.build()); + onChanged(); + } else { + gpuQuotesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Optional. A list of GPU quotes.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addGpuQuotes( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo value) { + if (gpuQuotesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGpuQuotesIsMutable(); + gpuQuotes_.add(value); + onChanged(); + } else { + gpuQuotesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +       * Optional. A list of GPU quotes.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addGpuQuotes( + int index, com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo value) { + if (gpuQuotesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGpuQuotesIsMutable(); + gpuQuotes_.add(index, value); + onChanged(); + } else { + gpuQuotesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * Optional. A list of GPU quotes.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addGpuQuotes( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder + builderForValue) { + if (gpuQuotesBuilder_ == null) { + ensureGpuQuotesIsMutable(); + gpuQuotes_.add(builderForValue.build()); + onChanged(); + } else { + gpuQuotesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Optional. A list of GPU quotes.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addGpuQuotes( + int index, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder + builderForValue) { + if (gpuQuotesBuilder_ == null) { + ensureGpuQuotesIsMutable(); + gpuQuotes_.add(index, builderForValue.build()); + onChanged(); + } else { + gpuQuotesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Optional. A list of GPU quotes.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllGpuQuotes( + java.lang.Iterable< + ? extends com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo> + values) { + if (gpuQuotesBuilder_ == null) { + ensureGpuQuotesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, gpuQuotes_); + onChanged(); + } else { + gpuQuotesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +       * Optional. A list of GPU quotes.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGpuQuotes() { + if (gpuQuotesBuilder_ == null) { + gpuQuotes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + gpuQuotesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * Optional. A list of GPU quotes.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeGpuQuotes(int index) { + if (gpuQuotesBuilder_ == null) { + ensureGpuQuotesIsMutable(); + gpuQuotes_.remove(index); + onChanged(); + } else { + gpuQuotesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +       * Optional. A list of GPU quotes.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder + getGpuQuotesBuilder(int index) { + return internalGetGpuQuotesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +       * Optional. A list of GPU quotes.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder + getGpuQuotesOrBuilder(int index) { + if (gpuQuotesBuilder_ == null) { + return gpuQuotes_.get(index); + } else { + return gpuQuotesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +       * Optional. A list of GPU quotes.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder> + getGpuQuotesOrBuilderList() { + if (gpuQuotesBuilder_ != null) { + return gpuQuotesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(gpuQuotes_); + } + } + + /** + * + * + *
            +       * Optional. A list of GPU quotes.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder + addGpuQuotesBuilder() { + return internalGetGpuQuotesFieldBuilder() + .addBuilder( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo + .getDefaultInstance()); + } + + /** + * + * + *
            +       * Optional. A list of GPU quotes.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder + addGpuQuotesBuilder(int index) { + return internalGetGpuQuotesFieldBuilder() + .addBuilder( + index, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo + .getDefaultInstance()); + } + + /** + * + * + *
            +       * Optional. A list of GPU quotes.
            +       * 
            + * + * + * repeated .google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo gpu_quotes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder> + getGpuQuotesBuilderList() { + return internalGetGpuQuotesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder> + internalGetGpuQuotesFieldBuilder() { + if (gpuQuotesBuilder_ == null) { + gpuQuotesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfo.Builder, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoOrBuilder>( + gpuQuotes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + gpuQuotes_ = null; + } + return gpuQuotesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation) + private static final com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation(); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MultiGpuSecurePassthroughAttestation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int ccFeatureCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object ccFeature_; + + public enum CcFeatureCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SPT(1), + PPCIE(2), + MPT(3), + CCFEATURE_NOT_SET(0); + private final int value; + + private CcFeatureCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CcFeatureCase valueOf(int value) { + return forNumber(value); + } + + public static CcFeatureCase forNumber(int value) { + switch (value) { + case 1: + return SPT; + case 2: + return PPCIE; + case 3: + return MPT; + case 0: + return CCFEATURE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public CcFeatureCase getCcFeatureCase() { + return CcFeatureCase.forNumber(ccFeatureCase_); + } + + public static final int SPT_FIELD_NUMBER = 1; + + /** + * + * + *
            +   * Single GPU Passthrough (SPT) attestation.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation spt = 1; + * + * + * @return Whether the spt field is set. + */ + @java.lang.Override + public boolean hasSpt() { + return ccFeatureCase_ == 1; + } + + /** + * + * + *
            +   * Single GPU Passthrough (SPT) attestation.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation spt = 1; + * + * + * @return The spt. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation + getSpt() { + if (ccFeatureCase_ == 1) { + return (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation) + ccFeature_; + } + return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation + .getDefaultInstance(); + } + + /** + * + * + *
            +   * Single GPU Passthrough (SPT) attestation.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation spt = 1; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestationOrBuilder + getSptOrBuilder() { + if (ccFeatureCase_ == 1) { + return (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation) + ccFeature_; + } + return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation + .getDefaultInstance(); + } + + public static final int PPCIE_FIELD_NUMBER = 2; + + /** + * + * + *
            +   * Protected PCIe (PPCIE) attestation.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation ppcie = 2; + * + * + * @return Whether the ppcie field is set. + */ + @java.lang.Override + public boolean hasPpcie() { + return ccFeatureCase_ == 2; + } + + /** + * + * + *
            +   * Protected PCIe (PPCIE) attestation.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation ppcie = 2; + * + * + * @return The ppcie. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation + getPpcie() { + if (ccFeatureCase_ == 2) { + return (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation) + ccFeature_; + } + return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation + .getDefaultInstance(); + } + + /** + * + * + *
            +   * Protected PCIe (PPCIE) attestation.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation ppcie = 2; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .ProtectedPcieAttestationOrBuilder + getPpcieOrBuilder() { + if (ccFeatureCase_ == 2) { + return (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation) + ccFeature_; + } + return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation + .getDefaultInstance(); + } + + public static final int MPT_FIELD_NUMBER = 3; + + /** + * + * + *
            +   * Multi-GPU Secure Passthrough (MPT) attestation.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation mpt = 3; + * + * + * @return Whether the mpt field is set. + */ + @java.lang.Override + public boolean hasMpt() { + return ccFeatureCase_ == 3; + } + + /** + * + * + *
            +   * Multi-GPU Secure Passthrough (MPT) attestation.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation mpt = 3; + * + * + * @return The mpt. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation + getMpt() { + if (ccFeatureCase_ == 3) { + return (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation) + ccFeature_; + } + return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation.getDefaultInstance(); + } + + /** + * + * + *
            +   * Multi-GPU Secure Passthrough (MPT) attestation.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation mpt = 3; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestationOrBuilder + getMptOrBuilder() { + if (ccFeatureCase_ == 3) { + return (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation) + ccFeature_; + } + return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (ccFeatureCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation) + ccFeature_); + } + if (ccFeatureCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation) + ccFeature_); + } + if (ccFeatureCase_ == 3) { + output.writeMessage( + 3, + (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation) + ccFeature_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (ccFeatureCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation) + ccFeature_); + } + if (ccFeatureCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation) + ccFeature_); + } + if (ccFeatureCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation) + ccFeature_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.confidentialcomputing.v1.NvidiaAttestation)) { + return super.equals(obj); + } + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation other = + (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation) obj; + + if (!getCcFeatureCase().equals(other.getCcFeatureCase())) return false; + switch (ccFeatureCase_) { + case 1: + if (!getSpt().equals(other.getSpt())) return false; + break; + case 2: + if (!getPpcie().equals(other.getPpcie())) return false; + break; + case 3: + if (!getMpt().equals(other.getMpt())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (ccFeatureCase_) { + case 1: + hash = (37 * hash) + SPT_FIELD_NUMBER; + hash = (53 * hash) + getSpt().hashCode(); + break; + case 2: + hash = (37 * hash) + PPCIE_FIELD_NUMBER; + hash = (53 * hash) + getPpcie().hashCode(); + break; + case 3: + hash = (37 * hash) + MPT_FIELD_NUMBER; + hash = (53 * hash) + getMpt().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * An Nvidia attestation report for GPU and NVSwitch devices.
            +   * Contains necessary attestation evidence that the client collects for
            +   * verification.
            +   * 
            + * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.NvidiaAttestation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.confidentialcomputing.v1.NvidiaAttestation) + com.google.cloud.confidentialcomputing.v1.NvidiaAttestationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.class, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.Builder.class); + } + + // Construct using com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (sptBuilder_ != null) { + sptBuilder_.clear(); + } + if (ppcieBuilder_ != null) { + ppcieBuilder_.clear(); + } + if (mptBuilder_ != null) { + mptBuilder_.clear(); + } + ccFeatureCase_ = 0; + ccFeature_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_descriptor; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation getDefaultInstanceForType() { + return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation build() { + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation buildPartial() { + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation result = + new com.google.cloud.confidentialcomputing.v1.NvidiaAttestation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.confidentialcomputing.v1.NvidiaAttestation result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation result) { + result.ccFeatureCase_ = ccFeatureCase_; + result.ccFeature_ = this.ccFeature_; + if (ccFeatureCase_ == 1 && sptBuilder_ != null) { + result.ccFeature_ = sptBuilder_.build(); + } + if (ccFeatureCase_ == 2 && ppcieBuilder_ != null) { + result.ccFeature_ = ppcieBuilder_.build(); + } + if (ccFeatureCase_ == 3 && mptBuilder_ != null) { + result.ccFeature_ = mptBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.confidentialcomputing.v1.NvidiaAttestation) { + return mergeFrom((com.google.cloud.confidentialcomputing.v1.NvidiaAttestation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1.NvidiaAttestation other) { + if (other == com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.getDefaultInstance()) + return this; + switch (other.getCcFeatureCase()) { + case SPT: + { + mergeSpt(other.getSpt()); + break; + } + case PPCIE: + { + mergePpcie(other.getPpcie()); + break; + } + case MPT: + { + mergeMpt(other.getMpt()); + break; + } + case CCFEATURE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(internalGetSptFieldBuilder().getBuilder(), extensionRegistry); + ccFeatureCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetPpcieFieldBuilder().getBuilder(), extensionRegistry); + ccFeatureCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetMptFieldBuilder().getBuilder(), extensionRegistry); + ccFeatureCase_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int ccFeatureCase_ = 0; + private java.lang.Object ccFeature_; + + public CcFeatureCase getCcFeatureCase() { + return CcFeatureCase.forNumber(ccFeatureCase_); + } + + public Builder clearCcFeature() { + ccFeatureCase_ = 0; + ccFeature_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation + .Builder, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestationOrBuilder> + sptBuilder_; + + /** + * + * + *
            +     * Single GPU Passthrough (SPT) attestation.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation spt = 1; + * + * + * @return Whether the spt field is set. + */ + @java.lang.Override + public boolean hasSpt() { + return ccFeatureCase_ == 1; + } + + /** + * + * + *
            +     * Single GPU Passthrough (SPT) attestation.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation spt = 1; + * + * + * @return The spt. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation + getSpt() { + if (sptBuilder_ == null) { + if (ccFeatureCase_ == 1) { + return (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation) + ccFeature_; + } + return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation.getDefaultInstance(); + } else { + if (ccFeatureCase_ == 1) { + return sptBuilder_.getMessage(); + } + return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Single GPU Passthrough (SPT) attestation.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation spt = 1; + * + */ + public Builder setSpt( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation + value) { + if (sptBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ccFeature_ = value; + onChanged(); + } else { + sptBuilder_.setMessage(value); + } + ccFeatureCase_ = 1; + return this; + } + + /** + * + * + *
            +     * Single GPU Passthrough (SPT) attestation.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation spt = 1; + * + */ + public Builder setSpt( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation + .Builder + builderForValue) { + if (sptBuilder_ == null) { + ccFeature_ = builderForValue.build(); + onChanged(); + } else { + sptBuilder_.setMessage(builderForValue.build()); + } + ccFeatureCase_ = 1; + return this; + } + + /** + * + * + *
            +     * Single GPU Passthrough (SPT) attestation.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation spt = 1; + * + */ + public Builder mergeSpt( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation + value) { + if (sptBuilder_ == null) { + if (ccFeatureCase_ == 1 + && ccFeature_ + != com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation.getDefaultInstance()) { + ccFeature_ = + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation.newBuilder( + (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation) + ccFeature_) + .mergeFrom(value) + .buildPartial(); + } else { + ccFeature_ = value; + } + onChanged(); + } else { + if (ccFeatureCase_ == 1) { + sptBuilder_.mergeFrom(value); + } else { + sptBuilder_.setMessage(value); + } + } + ccFeatureCase_ = 1; + return this; + } + + /** + * + * + *
            +     * Single GPU Passthrough (SPT) attestation.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation spt = 1; + * + */ + public Builder clearSpt() { + if (sptBuilder_ == null) { + if (ccFeatureCase_ == 1) { + ccFeatureCase_ = 0; + ccFeature_ = null; + onChanged(); + } + } else { + if (ccFeatureCase_ == 1) { + ccFeatureCase_ = 0; + ccFeature_ = null; + } + sptBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Single GPU Passthrough (SPT) attestation.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation spt = 1; + * + */ + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation + .Builder + getSptBuilder() { + return internalGetSptFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Single GPU Passthrough (SPT) attestation.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation spt = 1; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestationOrBuilder + getSptOrBuilder() { + if ((ccFeatureCase_ == 1) && (sptBuilder_ != null)) { + return sptBuilder_.getMessageOrBuilder(); + } else { + if (ccFeatureCase_ == 1) { + return (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation) + ccFeature_; + } + return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Single GPU Passthrough (SPT) attestation.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation spt = 1; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation + .Builder, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestationOrBuilder> + internalGetSptFieldBuilder() { + if (sptBuilder_ == null) { + if (!(ccFeatureCase_ == 1)) { + ccFeature_ = + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation.getDefaultInstance(); + } + sptBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation.Builder, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestationOrBuilder>( + (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .SinglePassthroughAttestation) + ccFeature_, + getParentForChildren(), + isClean()); + ccFeature_ = null; + } + ccFeatureCase_ = 1; + onChanged(); + return sptBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation + .Builder, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .ProtectedPcieAttestationOrBuilder> + ppcieBuilder_; + + /** + * + * + *
            +     * Protected PCIe (PPCIE) attestation.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation ppcie = 2; + * + * + * @return Whether the ppcie field is set. + */ + @java.lang.Override + public boolean hasPpcie() { + return ccFeatureCase_ == 2; + } + + /** + * + * + *
            +     * Protected PCIe (PPCIE) attestation.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation ppcie = 2; + * + * + * @return The ppcie. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation + getPpcie() { + if (ppcieBuilder_ == null) { + if (ccFeatureCase_ == 2) { + return (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .ProtectedPcieAttestation) + ccFeature_; + } + return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation + .getDefaultInstance(); + } else { + if (ccFeatureCase_ == 2) { + return ppcieBuilder_.getMessage(); + } + return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation + .getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Protected PCIe (PPCIE) attestation.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation ppcie = 2; + * + */ + public Builder setPpcie( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation + value) { + if (ppcieBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ccFeature_ = value; + onChanged(); + } else { + ppcieBuilder_.setMessage(value); + } + ccFeatureCase_ = 2; + return this; + } + + /** + * + * + *
            +     * Protected PCIe (PPCIE) attestation.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation ppcie = 2; + * + */ + public Builder setPpcie( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation.Builder + builderForValue) { + if (ppcieBuilder_ == null) { + ccFeature_ = builderForValue.build(); + onChanged(); + } else { + ppcieBuilder_.setMessage(builderForValue.build()); + } + ccFeatureCase_ = 2; + return this; + } + + /** + * + * + *
            +     * Protected PCIe (PPCIE) attestation.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation ppcie = 2; + * + */ + public Builder mergePpcie( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation + value) { + if (ppcieBuilder_ == null) { + if (ccFeatureCase_ == 2 + && ccFeature_ + != com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .ProtectedPcieAttestation.getDefaultInstance()) { + ccFeature_ = + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation + .newBuilder( + (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .ProtectedPcieAttestation) + ccFeature_) + .mergeFrom(value) + .buildPartial(); + } else { + ccFeature_ = value; + } + onChanged(); + } else { + if (ccFeatureCase_ == 2) { + ppcieBuilder_.mergeFrom(value); + } else { + ppcieBuilder_.setMessage(value); + } + } + ccFeatureCase_ = 2; + return this; + } + + /** + * + * + *
            +     * Protected PCIe (PPCIE) attestation.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation ppcie = 2; + * + */ + public Builder clearPpcie() { + if (ppcieBuilder_ == null) { + if (ccFeatureCase_ == 2) { + ccFeatureCase_ = 0; + ccFeature_ = null; + onChanged(); + } + } else { + if (ccFeatureCase_ == 2) { + ccFeatureCase_ = 0; + ccFeature_ = null; + } + ppcieBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Protected PCIe (PPCIE) attestation.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation ppcie = 2; + * + */ + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation + .Builder + getPpcieBuilder() { + return internalGetPpcieFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Protected PCIe (PPCIE) attestation.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation ppcie = 2; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .ProtectedPcieAttestationOrBuilder + getPpcieOrBuilder() { + if ((ccFeatureCase_ == 2) && (ppcieBuilder_ != null)) { + return ppcieBuilder_.getMessageOrBuilder(); + } else { + if (ccFeatureCase_ == 2) { + return (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .ProtectedPcieAttestation) + ccFeature_; + } + return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation + .getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Protected PCIe (PPCIE) attestation.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation ppcie = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation + .Builder, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .ProtectedPcieAttestationOrBuilder> + internalGetPpcieFieldBuilder() { + if (ppcieBuilder_ == null) { + if (!(ccFeatureCase_ == 2)) { + ccFeature_ = + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation + .getDefaultInstance(); + } + ppcieBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .ProtectedPcieAttestation, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation + .Builder, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .ProtectedPcieAttestationOrBuilder>( + (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .ProtectedPcieAttestation) + ccFeature_, + getParentForChildren(), + isClean()); + ccFeature_ = null; + } + ccFeatureCase_ = 2; + onChanged(); + return ppcieBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation.Builder, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestationOrBuilder> + mptBuilder_; + + /** + * + * + *
            +     * Multi-GPU Secure Passthrough (MPT) attestation.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation mpt = 3; + * + * + * @return Whether the mpt field is set. + */ + @java.lang.Override + public boolean hasMpt() { + return ccFeatureCase_ == 3; + } + + /** + * + * + *
            +     * Multi-GPU Secure Passthrough (MPT) attestation.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation mpt = 3; + * + * + * @return The mpt. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation + getMpt() { + if (mptBuilder_ == null) { + if (ccFeatureCase_ == 3) { + return (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation) + ccFeature_; + } + return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation.getDefaultInstance(); + } else { + if (ccFeatureCase_ == 3) { + return mptBuilder_.getMessage(); + } + return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Multi-GPU Secure Passthrough (MPT) attestation.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation mpt = 3; + * + */ + public Builder setMpt( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation + value) { + if (mptBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ccFeature_ = value; + onChanged(); + } else { + mptBuilder_.setMessage(value); + } + ccFeatureCase_ = 3; + return this; + } + + /** + * + * + *
            +     * Multi-GPU Secure Passthrough (MPT) attestation.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation mpt = 3; + * + */ + public Builder setMpt( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation.Builder + builderForValue) { + if (mptBuilder_ == null) { + ccFeature_ = builderForValue.build(); + onChanged(); + } else { + mptBuilder_.setMessage(builderForValue.build()); + } + ccFeatureCase_ = 3; + return this; + } + + /** + * + * + *
            +     * Multi-GPU Secure Passthrough (MPT) attestation.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation mpt = 3; + * + */ + public Builder mergeMpt( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation + value) { + if (mptBuilder_ == null) { + if (ccFeatureCase_ == 3 + && ccFeature_ + != com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation.getDefaultInstance()) { + ccFeature_ = + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation.newBuilder( + (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation) + ccFeature_) + .mergeFrom(value) + .buildPartial(); + } else { + ccFeature_ = value; + } + onChanged(); + } else { + if (ccFeatureCase_ == 3) { + mptBuilder_.mergeFrom(value); + } else { + mptBuilder_.setMessage(value); + } + } + ccFeatureCase_ = 3; + return this; + } + + /** + * + * + *
            +     * Multi-GPU Secure Passthrough (MPT) attestation.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation mpt = 3; + * + */ + public Builder clearMpt() { + if (mptBuilder_ == null) { + if (ccFeatureCase_ == 3) { + ccFeatureCase_ = 0; + ccFeature_ = null; + onChanged(); + } + } else { + if (ccFeatureCase_ == 3) { + ccFeatureCase_ = 0; + ccFeature_ = null; + } + mptBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Multi-GPU Secure Passthrough (MPT) attestation.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation mpt = 3; + * + */ + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation.Builder + getMptBuilder() { + return internalGetMptFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Multi-GPU Secure Passthrough (MPT) attestation.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation mpt = 3; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestationOrBuilder + getMptOrBuilder() { + if ((ccFeatureCase_ == 3) && (mptBuilder_ != null)) { + return mptBuilder_.getMessageOrBuilder(); + } else { + if (ccFeatureCase_ == 3) { + return (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation) + ccFeature_; + } + return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Multi-GPU Secure Passthrough (MPT) attestation.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation mpt = 3; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation.Builder, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestationOrBuilder> + internalGetMptFieldBuilder() { + if (mptBuilder_ == null) { + if (!(ccFeatureCase_ == 3)) { + ccFeature_ = + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation.getDefaultInstance(); + } + mptBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation.Builder, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestationOrBuilder>( + (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestation) + ccFeature_, + getParentForChildren(), + isClean()); + ccFeature_ = null; + } + ccFeatureCase_ = 3; + onChanged(); + return mptBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.NvidiaAttestation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.NvidiaAttestation) + private static final com.google.cloud.confidentialcomputing.v1.NvidiaAttestation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1.NvidiaAttestation(); + } + + public static com.google.cloud.confidentialcomputing.v1.NvidiaAttestation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NvidiaAttestation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/NvidiaAttestationOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/NvidiaAttestationOrBuilder.java new file mode 100644 index 000000000000..df0e75b06e0d --- /dev/null +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/NvidiaAttestationOrBuilder.java @@ -0,0 +1,164 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/confidentialcomputing/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.confidentialcomputing.v1; + +@com.google.protobuf.Generated +public interface NvidiaAttestationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.NvidiaAttestation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Single GPU Passthrough (SPT) attestation.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation spt = 1; + * + * + * @return Whether the spt field is set. + */ + boolean hasSpt(); + + /** + * + * + *
            +   * Single GPU Passthrough (SPT) attestation.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation spt = 1; + * + * + * @return The spt. + */ + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation getSpt(); + + /** + * + * + *
            +   * Single GPU Passthrough (SPT) attestation.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestation spt = 1; + * + */ + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestationOrBuilder + getSptOrBuilder(); + + /** + * + * + *
            +   * Protected PCIe (PPCIE) attestation.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation ppcie = 2; + * + * + * @return Whether the ppcie field is set. + */ + boolean hasPpcie(); + + /** + * + * + *
            +   * Protected PCIe (PPCIE) attestation.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation ppcie = 2; + * + * + * @return The ppcie. + */ + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation getPpcie(); + + /** + * + * + *
            +   * Protected PCIe (PPCIE) attestation.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestation ppcie = 2; + * + */ + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.ProtectedPcieAttestationOrBuilder + getPpcieOrBuilder(); + + /** + * + * + *
            +   * Multi-GPU Secure Passthrough (MPT) attestation.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation mpt = 3; + * + * + * @return Whether the mpt field is set. + */ + boolean hasMpt(); + + /** + * + * + *
            +   * Multi-GPU Secure Passthrough (MPT) attestation.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation mpt = 3; + * + * + * @return The mpt. + */ + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation + getMpt(); + + /** + * + * + *
            +   * Multi-GPU Secure Passthrough (MPT) attestation.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation.MultiGpuSecurePassthroughAttestation mpt = 3; + * + */ + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .MultiGpuSecurePassthroughAttestationOrBuilder + getMptOrBuilder(); + + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.CcFeatureCase getCcFeatureCase(); +} diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java index 4714df19f0a0..2917db7279cd 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java @@ -52,6 +52,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_GpuInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_GpuInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_SwitchInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_SwitchInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_SinglePassthroughAttestation_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_SinglePassthroughAttestation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_ProtectedPcieAttestation_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_ProtectedPcieAttestation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_MultiGpuSecurePassthroughAttestation_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_MultiGpuSecurePassthroughAttestation_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_confidentialcomputing_v1_TdxCcelAttestation_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -128,6 +152,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_ConfidentialGkeOptions_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_ConfidentialGkeOptions_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -160,24 +188,63 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022H\n" + "\tchallenge\030\002 \001(\01320.google.clou" - + "d.confidentialcomputing.v1.ChallengeB\003\340A\002\"\237\005\n" + + "d.confidentialcomputing.v1.ChallengeB\003\340A\002\"\222\006\n" + "\030VerifyAttestationRequest\022Q\n" + "\007td_ccel\030\006" + " \001(\01329.google.cloud.confidentialcomputing.v1.TdxCcelAttestationB\003\340A\001H\000\022\\\n" + "\023sev_snp_attestation\030\007 \001(\01328.google.cloud.co" - + "nfidentialcomputing.v1.SevSnpAttestationB\003\340A\001H\000\022I\n" + + "nfidentialcomputing.v1.SevSnpAttestationB\003\340A\001H\000\022[\n" + + "\022nvidia_attestation\030\t \001(\01328.go" + + "ogle.cloud.confidentialcomputing.v1.NvidiaAttestationB\003\340A\001H\001\022I\n" + "\tchallenge\030\001 \001(\tB6\340A\002\372A0\n" + ".confidentialcomputing.googleapis.com/Challenge\022S\n" - + "\017gcp_credentials\030\002 \001(\01325.google.clo" - + "ud.confidentialcomputing.v1.GcpCredentialsB\003\340A\001\022S\n" - + "\017tpm_attestation\030\003 \001(\01325.googl" - + "e.cloud.confidentialcomputing.v1.TpmAttestationB\003\340A\002\022b\n" - + "\027confidential_space_info\030\004" - + " \001(\0132<.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfoB\003\340A\001\022O\n\r" - + "token_options\030\005" - + " \001(\01323.google.cloud.confidentialcomputing.v1.TokenOptionsB\003\340A\001\022\025\n" + + "\017gcp_credentials\030\002 \001(\013" + + "25.google.cloud.confidentialcomputing.v1.GcpCredentialsB\003\340A\001\022S\n" + + "\017tpm_attestation\030\003" + + " \001(\01325.google.cloud.confidentialcomputing.v1.TpmAttestationB\003\340A\002\022b\n" + + "\027confidential_space_info\030\004 \001(\0132<.google.cloud.confid" + + "entialcomputing.v1.ConfidentialSpaceInfoB\003\340A\001\022O\n\r" + + "token_options\030\005 \001(\01323.google.cl" + + "oud.confidentialcomputing.v1.TokenOptionsB\003\340A\001\022\025\n" + "\010attester\030\010 \001(\tB\003\340A\001B\021\n" - + "\017tee_attestation\"\203\001\n" + + "\017tee_attestationB\024\n" + + "\022device_attestation\"\273\n\n" + + "\021NvidiaAttestation\022d\n" + + "\003spt\030\001 \001(\0132U.google.cloud" + + ".confidentialcomputing.v1.NvidiaAttestation.SinglePassthroughAttestationH\000\022b\n" + + "\005ppcie\030\002 \001(\0132Q.google.cloud.confidentialcom" + + "puting.v1.NvidiaAttestation.ProtectedPcieAttestationH\000\022l\n" + + "\003mpt\030\003 \001(\0132].google.cloud.confidentialcomputing.v1.NvidiaAttest" + + "ation.MultiGpuSecurePassthroughAttestationH\000\032\224\002\n" + + "\007GpuInfo\022\021\n" + + "\004uuid\030\001 \001(\tB\003\340A\001\022\033\n" + + "\016driver_version\030\002 \001(\tB\003\340A\001\022\032\n\r" + + "vbios_version\030\003 \001(\tB\003\340A\001\022p\n" + + "\025gpu_architecture_type\030\004 \001(\0162L.google.cloud.confidentialcomputing" + + ".v1.NvidiaAttestation.GpuArchitectureTypeB\003\340A\001\022*\n" + + "\035attestation_certificate_chain\030\005 \001(\014B\003\340A\001\022\037\n" + + "\022attestation_report\030\006 \001(\014B\003\340A\001\032l\n\n" + + "SwitchInfo\022\021\n" + + "\004uuid\030\001 \001(\tB\003\340A\001\022*\n" + + "\035attestation_certificate_chain\030\002 \001(\014B\003\340A\001\022\037\n" + + "\022attestation_report\030\003 \001(\014B\003\340A\001\032x\n" + + "\034SinglePassthroughAttestation\022X\n" + + "\tgpu_quote\030\001" + + " \001(\0132@.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoB\003\340A\001\032\326\001\n" + + "\030ProtectedPcieAttestation\022Y\n\n" + + "gpu_quotes\030\001" + + " \003(\0132@.google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoB\003\340A\001\022_\n\r" + + "switch_quotes\030\002 \003(\0132C.google.cloud.confid" + + "entialcomputing.v1.NvidiaAttestation.SwitchInfoB\003\340A\001\032\201\001\n" + + "$MultiGpuSecurePassthroughAttestation\022Y\n\n" + + "gpu_quotes\030\001 \003(\0132@.goog" + + "le.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuInfoB\003\340A\001\"\203\001\n" + + "\023GpuArchitectureType\022%\n" + + "!GPU_ARCHITECTURE_TYPE_UNSPECIFIED\020\000\022 \n" + + "\034GPU_ARCHITECTURE_TYPE_HOPPER\020\010\022#\n" + + "\037GPU_ARCHITECTURE_TYPE_BLACKWELL\020\n" + + "B\014\n\n" + + "cc_feature\"\203\001\n" + "\022TdxCcelAttestation\022\034\n" + "\017ccel_acpi_table\030\001 \001(\014B\003\340A\001\022\026\n" + "\tccel_data\030\002 \001(\014B\003\340A\001\022 \n" @@ -192,74 +259,77 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016GcpCredentials\022!\n" + "\031service_account_id_tokens\030\002 \003(\t\"\205\002\n" + "\014TokenOptions\022i\n" - + "\032aws_principal_tags_options\030\004 \001(\0132>.google.cloud.confidentialco" - + "mputing.v1.AwsPrincipalTagsOptionsB\003\340A\001H\000\022\025\n" + + "\032aws_principal_tags_options\030\004 \001(\0132>.google.clo" + + "ud.confidentialcomputing.v1.AwsPrincipalTagsOptionsB\003\340A\001H\000\022\025\n" + "\010audience\030\001 \001(\tB\003\340A\001\022\022\n" + "\005nonce\030\002 \003(\tB\003\340A\001\022I\n\n" - + "token_type\030\003 \001(\01620.google.cloud." - + "confidentialcomputing.v1.TokenTypeB\003\340A\001B\024\n" + + "token_type\030\003 \001(" + + "\01620.google.cloud.confidentialcomputing.v1.TokenTypeB\003\340A\001B\024\n" + "\022token_type_options\"\366\002\n" + "\027AwsPrincipalTagsOptions\022x\n" - + "\026allowed_principal_tags\030\001 \001(\0132S.google.cloud.confidentialcomputing.v" - + "1.AwsPrincipalTagsOptions.AllowedPrincipalTagsB\003\340A\001\032\340\001\n" + + "\026allowed_principal_tags\030\001 \001(\0132S.google.cloud.confid" + + "entialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTagsB\003\340A\001\032\340\001\n" + "\024AllowedPrincipalTags\022\225\001\n" - + "\032container_image_signatures\030\001 \001(\0132l.goog" - + "le.cloud.confidentialcomputing.v1.AwsPri" - + "ncipalTagsOptions.AllowedPrincipalTags.ContainerImageSignaturesB\003\340A\001\0320\n" + + "\032container_image_signatures\030\001 \001(\0132l.google.cloud.confidentialco" + + "mputing.v1.AwsPrincipalTagsOptions.Allow" + + "edPrincipalTags.ContainerImageSignaturesB\003\340A\001\0320\n" + "\030ContainerImageSignatures\022\024\n" + "\007key_ids\030\001 \003(\tB\003\340A\001\"\217\003\n" + "\016TpmAttestation\022K\n" - + "\006quotes\030\001 \003(\0132;.goog" - + "le.cloud.confidentialcomputing.v1.TpmAttestation.Quote\022\025\n\r" + + "\006quotes\030\001" + + " \003(\0132;.google.cloud.confidentialcomputing.v1.TpmAttestation.Quote\022\025\n\r" + "tcg_event_log\030\002 \001(\014\022\033\n" + "\023canonical_event_log\030\003 \001(\014\022\017\n" + "\007ak_cert\030\004 \001(\014\022\022\n\n" + "cert_chain\030\005 \003(\014\032\326\001\n" + "\005Quote\022\021\n" + "\thash_algo\030\001 \001(\005\022^\n\n" - + "pcr_values\030\002 \003(\0132J.googl" - + "e.cloud.confidentialcomputing.v1.TpmAttestation.Quote.PcrValuesEntry\022\021\n" + + "pcr_values\030\002 \003(\0132J.google.cloud.confidentialcom" + + "puting.v1.TpmAttestation.Quote.PcrValuesEntry\022\021\n" + "\traw_quote\030\003 \001(\014\022\025\n\r" + "raw_signature\030\004 \001(\014\0320\n" + "\016PcrValuesEntry\022\013\n" - + "\003key\030\001 \001(\005\022\r\n" + + "\003key\030\001 \001(\005\022\r" + + "\n" + "\005value\030\002 \001(\014:\0028\001\"j\n" + "\025ConfidentialSpaceInfo\022Q\n" - + "\017signed_entities\030\001" - + " \003(\01323.google.cloud.confidentialcomputing.v1.SignedEntityB\003\340A\001\"w\n" + + "\017signed_entities\030\001 \003(\01323.google.clo" + + "ud.confidentialcomputing.v1.SignedEntityB\003\340A\001\"w\n" + "\014SignedEntity\022g\n" - + "\032container_image_signatures\030\001 \003(\013" - + "2>.google.cloud.confidentialcomputing.v1.ContainerImageSignatureB\003\340A\001\"\257\001\n" + + "\032container_image_signatures\030\001 \003(\0132>.google.cloud.confide" + + "ntialcomputing.v1.ContainerImageSignatureB\003\340A\001\"\257\001\n" + "\027ContainerImageSignature\022\024\n" + "\007payload\030\001 \001(\014B\003\340A\001\022\026\n" + "\tsignature\030\002 \001(\014B\003\340A\001\022\027\n\n" + "public_key\030\003 \001(\014B\003\340A\001\022M\n" - + "\007sig_alg\030\004 \001(\01627.google.cloud" - + ".confidentialcomputing.v1.SigningAlgorithmB\003\340A\001\"\226\010\n" + + "\007sig_alg\030\004 \001" + + "(\01627.google.cloud.confidentialcomputing.v1.SigningAlgorithmB\003\340A\001\"\361\010\n" + "\036VerifyConfidentialSpaceRequest\022Q\n" - + "\007td_ccel\030\003 \001(\01329.google.cloud.confi" - + "dentialcomputing.v1.TdxCcelAttestationB\003\340A\004H\000\022U\n" - + "\017tpm_attestation\030\004 \001(\01325.google." - + "cloud.confidentialcomputing.v1.TpmAttestationB\003\340A\004H\000\022I\n" + + "\007td_ccel\030\003 \001(\01329.g" + + "oogle.cloud.confidentialcomputing.v1.TdxCcelAttestationB\003\340A\004H\000\022U\n" + + "\017tpm_attestation\030\004" + + " \001(\01325.google.cloud.confidentialcomputing.v1.TpmAttestationB\003\340A\004H\000\022I\n" + "\tchallenge\030\001 \001(\tB6\340A\002\372A0\n" + ".confidentialcomputing.googleapis.com/Challenge\022S\n" - + "\017gcp_credentials\030\002 \001(\01325.googl" - + "e.cloud.confidentialcomputing.v1.GcpCredentialsB\003\340A\001\022Q\n" - + "\017signed_entities\030\005 \003(\01323." - + "google.cloud.confidentialcomputing.v1.SignedEntityB\003\340A\001\022^\n" - + "\025gce_shielded_identity\030\006" - + " \001(\0132:.google.cloud.confidentialcomputing.v1.GceShieldedIdentityB\003\340A\001\022t\n" - + "\007options\030\007 \001(\0132^.google.cloud.confidentialcomp" - + "uting.v1.VerifyConfidentialSpaceRequest.ConfidentialSpaceOptionsB\003\340A\001\032\355\002\n" + + "\017gcp_credentials\030\002" + + " \001(\01325.google.cloud.confidentialcomputing.v1.GcpCredentialsB\003\340A\001\022Q\n" + + "\017signed_entities\030\005" + + " \003(\01323.google.cloud.confidentialcomputing.v1.SignedEntityB\003\340A\001\022^\n" + + "\025gce_shielded_identity\030\006 \001(\0132:.google.cloud.c" + + "onfidentialcomputing.v1.GceShieldedIdentityB\003\340A\001\022t\n" + + "\007options\030\007 \001(\0132^.google.cloud.confidentialcomputing.v1.VerifyConfiden" + + "tialSpaceRequest.ConfidentialSpaceOptionsB\003\340A\001\022Y\n" + + "\022nvidia_attestation\030\010 \001(\01328.goo" + + "gle.cloud.confidentialcomputing.v1.NvidiaAttestationB\003\340A\001\032\355\002\n" + "\030ConfidentialSpaceOptions\022i\n" - + "\032aws_principal_tags_options\030\005 \001(\0132>.google.cloud.confidenti" - + "alcomputing.v1.AwsPrincipalTagsOptionsB\003\340A\001H\000\022\025\n" + + "\032aws_principal_tags_options\030\005 \001" + + "(\0132>.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptionsB\003\340A\001H\000\022\025\n" + "\010audience\030\001 \001(\tB\003\340A\001\022O\n\r" - + "token_profile\030\002" - + " \001(\01623.google.cloud.confidentialcomputing.v1.TokenProfileB\003\340A\001\022\022\n" + + "token_profile\030\002 \001(\0162" + + "3.google.cloud.confidentialcomputing.v1.TokenProfileB\003\340A\001\022\022\n" + "\005nonce\030\003 \003(\tB\003\340A\001\022Q\n" - + "\016signature_type\030\004 \001(\01624.goog" - + "le.cloud.confidentialcomputing.v1.SignatureTypeB\003\340A\001B\027\n" + + "\016signature_type\030\004 \001(\01624.google.cloud.con" + + "fidentialcomputing.v1.SignatureTypeB\003\340A\001B\027\n" + "\025token_profile_optionsB\021\n" + "\017tee_attestation\"G\n" + "\023GceShieldedIdentity\022\024\n" @@ -267,12 +337,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ak_cert_chain\030\002 \003(\014B\003\340A\001\"r\n" + "\037VerifyConfidentialSpaceResponse\022\036\n" + "\021attestation_token\030\001 \001(\tB\003\340A\003\022/\n" - + "\016partial_errors\030\002 \003(\0132\022.google.rpc.StatusB\003\340A\003\"\316\001\n" + + "\016partial_errors\030\002 \003(\0132\022.google.rpc.StatusB\003\340A\003\"\331\003\n" + "\034VerifyConfidentialGkeRequest\022P\n" - + "\017tpm_attestation\030\002 \001(\01325.google.cloud.c" - + "onfidentialcomputing.v1.TpmAttestationH\000\022I\n" + + "\017tpm_attestation\030\002" + + " \001(\01325.google.cloud.confidentialcomputing.v1.TpmAttestationH\000\022I\n" + "\tchallenge\030\001 \001(\tB6\340A\002\372A0\n" - + ".confidentialcomputing.googleapis.com/ChallengeB\021\n" + + ".confidentialcomputing.googleapis.com/Challenge\022p\n" + + "\007options\030\003 \001(\0132Z.google.cloud.confidentialcomputing.v1" + + ".VerifyConfidentialGkeRequest.ConfidentialGkeOptionsB\003\340A\001\032\226\001\n" + + "\026ConfidentialGkeOptions\022\025\n" + + "\010audience\030\001 \001(\tB\003\340A\001\022\022\n" + + "\005nonce\030\003 \003(\tB\003\340A\001\022Q\n" + + "\016signature_type\030\004 \001(\01624.google" + + ".cloud.confidentialcomputing.v1.SignatureTypeB\003\340A\001B\021\n" + "\017tee_attestation\"?\n" + "\035VerifyConfidentialGkeResponse\022\036\n" + "\021attestation_token\030\001 \001(\tB\003\340A\003*\177\n" @@ -296,32 +373,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031TOKEN_PROFILE_DEFAULT_EAT\020\001\022\025\n" + "\021TOKEN_PROFILE_AWS\020\0022\265\010\n" + "\025ConfidentialComputing\022\330\001\n" - + "\017CreateChallenge\022=.google.cloud.confidentialcomputing.v1.C" - + "reateChallengeRequest\0320.google.cloud.con" - + "fidentialcomputing.v1.Challenge\"T\332A\020pare" - + "nt,challenge\202\323\344\223\002;\"./v1/{parent=projects/*/locations/*}/challenges:" - + "\tchallenge\022\350\001\n" - + "\021VerifyAttestation\022?.google.cloud.confidentialcomputing.v1.VerifyAttestationReq" - + "uest\032@.google.cloud.confidentialcomputin" - + "g.v1.VerifyAttestationResponse\"P\202\323\344\223\002J\"E" - + "/v1/{challenge=projects/*/locations/*/challenges/*}:verifyAttestation:\001*\022\200\002\n" - + "\027VerifyConfidentialSpace\022E.google.cloud.conf" - + "identialcomputing.v1.VerifyConfidentialSpaceRequest\032F.google.cloud.confidentialc" - + "omputing.v1.VerifyConfidentialSpaceRespo" - + "nse\"V\202\323\344\223\002P\"K/v1/{challenge=projects/*/l" - + "ocations/*/challenges/*}:verifyConfidentialSpace:\001*\022\370\001\n" - + "\025VerifyConfidentialGke\022C.google.cloud.confidentialcomputing.v1.Ve" - + "rifyConfidentialGkeRequest\032D.google.cloud.confidentialcomputing.v1.VerifyConfide" - + "ntialGkeResponse\"T\202\323\344\223\002N\"I/v1/{challenge" - + "=projects/*/locations/*/challenges/*}:ve" - + "rifyConfidentialGke:\001*\032X\312A$confidentialc" - + "omputing.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\227\002\n" - + ")com.google.cloud.confidentialcomputing.v1B\014" - + "ServiceProtoP\001Z_cloud.google.com/go/confidentialcomputing/apiv1/confidentialcomp" - + "utingpb;confidentialcomputingpb\252\002%Google" - + ".Cloud.ConfidentialComputing.V1\312\002%Google" - + "\\Cloud\\ConfidentialComputing\\V1\352\002(Google" - + "::Cloud::ConfidentialComputing::V1b\006proto3" + + "\017CreateChallenge\022=.google.cloud.confidentia" + + "lcomputing.v1.CreateChallengeRequest\0320.google.cloud.confidentialcomputing.v1.Cha" + + "llenge\"T\332A\020parent,challenge\202\323\344\223\002;\"./v1/{" + + "parent=projects/*/locations/*}/challenges:\tchallenge\022\350\001\n" + + "\021VerifyAttestation\022?.google.cloud.confidentialcomputing.v1.Verif" + + "yAttestationRequest\032@.google.cloud.confidentialcomputing.v1.VerifyAttestationRes" + + "ponse\"P\202\323\344\223\002J\"E/v1/{challenge=projects/*" + + "/locations/*/challenges/*}:verifyAttestation:\001*\022\200\002\n" + + "\027VerifyConfidentialSpace\022E.google.cloud.confidentialcomputing.v1.Veri" + + "fyConfidentialSpaceRequest\032F.google.cloud.confidentialcomputing.v1.VerifyConfide" + + "ntialSpaceResponse\"V\202\323\344\223\002P\"K/v1/{challen" + + "ge=projects/*/locations/*/challenges/*}:verifyConfidentialSpace:\001*\022\370\001\n" + + "\025VerifyConfidentialGke\022C.google.cloud.confidential" + + "computing.v1.VerifyConfidentialGkeRequest\032D.google.cloud.confidentialcomputing.v" + + "1.VerifyConfidentialGkeResponse\"T\202\323\344\223\002N\"" + + "I/v1/{challenge=projects/*/locations/*/c" + + "hallenges/*}:verifyConfidentialGke:\001*\032X\312" + + "A$confidentialcomputing.googleapis.com\322A" + + ".https://www.googleapis.com/auth/cloud-platformB\227\002\n" + + ")com.google.cloud.confidentialcomputing.v1B\014ServiceProtoP\001Z_cloud.goo" + + "gle.com/go/confidentialcomputing/apiv1/confidentialcomputingpb;confidentialcompu" + + "tingpb\252\002%Google.Cloud.ConfidentialComput" + + "ing.V1\312\002%Google\\Cloud\\ConfidentialComput" + + "ing\\V1\352\002(Google::Cloud::ConfidentialComputing::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -358,6 +433,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "TdCcel", "SevSnpAttestation", + "NvidiaAttestation", "Challenge", "GcpCredentials", "TpmAttestation", @@ -365,9 +441,68 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TokenOptions", "Attester", "TeeAttestation", + "DeviceAttestation", }); - internal_static_google_cloud_confidentialcomputing_v1_TdxCcelAttestation_descriptor = + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_descriptor = getDescriptor().getMessageType(3); + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_descriptor, + new java.lang.String[] { + "Spt", "Ppcie", "Mpt", "CcFeature", + }); + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_GpuInfo_descriptor = + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_descriptor + .getNestedType(0); + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_GpuInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_GpuInfo_descriptor, + new java.lang.String[] { + "Uuid", + "DriverVersion", + "VbiosVersion", + "GpuArchitectureType", + "AttestationCertificateChain", + "AttestationReport", + }); + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_SwitchInfo_descriptor = + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_descriptor + .getNestedType(1); + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_SwitchInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_SwitchInfo_descriptor, + new java.lang.String[] { + "Uuid", "AttestationCertificateChain", "AttestationReport", + }); + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_SinglePassthroughAttestation_descriptor = + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_descriptor + .getNestedType(2); + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_SinglePassthroughAttestation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_SinglePassthroughAttestation_descriptor, + new java.lang.String[] { + "GpuQuote", + }); + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_ProtectedPcieAttestation_descriptor = + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_descriptor + .getNestedType(3); + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_ProtectedPcieAttestation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_ProtectedPcieAttestation_descriptor, + new java.lang.String[] { + "GpuQuotes", "SwitchQuotes", + }); + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_MultiGpuSecurePassthroughAttestation_descriptor = + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_descriptor + .getNestedType(4); + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_MultiGpuSecurePassthroughAttestation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_NvidiaAttestation_MultiGpuSecurePassthroughAttestation_descriptor, + new java.lang.String[] { + "GpuQuotes", + }); + internal_static_google_cloud_confidentialcomputing_v1_TdxCcelAttestation_descriptor = + getDescriptor().getMessageType(4); internal_static_google_cloud_confidentialcomputing_v1_TdxCcelAttestation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_confidentialcomputing_v1_TdxCcelAttestation_descriptor, @@ -375,7 +510,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CcelAcpiTable", "CcelData", "CanonicalEventLog", "TdQuote", }); internal_static_google_cloud_confidentialcomputing_v1_SevSnpAttestation_descriptor = - getDescriptor().getMessageType(4); + getDescriptor().getMessageType(5); internal_static_google_cloud_confidentialcomputing_v1_SevSnpAttestation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_confidentialcomputing_v1_SevSnpAttestation_descriptor, @@ -383,7 +518,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Report", "AuxBlob", }); internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_descriptor = - getDescriptor().getMessageType(5); + getDescriptor().getMessageType(6); internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_confidentialcomputing_v1_VerifyAttestationResponse_descriptor, @@ -391,7 +526,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OidcClaimsToken", "PartialErrors", }); internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_descriptor = - getDescriptor().getMessageType(6); + getDescriptor().getMessageType(7); internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_confidentialcomputing_v1_GcpCredentials_descriptor, @@ -399,7 +534,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceAccountIdTokens", }); internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(8); internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_descriptor, @@ -407,7 +542,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AwsPrincipalTagsOptions", "Audience", "Nonce", "TokenType", "TokenTypeOptions", }); internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(9); internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_descriptor, @@ -433,7 +568,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "KeyIds", }); internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(10); internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor, @@ -459,7 +594,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(11); internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_descriptor, @@ -467,7 +602,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SignedEntities", }); internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(12); internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_descriptor, @@ -475,7 +610,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ContainerImageSignatures", }); internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_descriptor = - getDescriptor().getMessageType(12); + getDescriptor().getMessageType(13); internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_descriptor, @@ -483,7 +618,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Payload", "Signature", "PublicKey", "SigAlg", }); internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceRequest_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(14); internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceRequest_descriptor, @@ -495,6 +630,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SignedEntities", "GceShieldedIdentity", "Options", + "NvidiaAttestation", "TeeAttestation", }); internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceRequest_ConfidentialSpaceOptions_descriptor = @@ -512,7 +648,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TokenProfileOptions", }); internal_static_google_cloud_confidentialcomputing_v1_GceShieldedIdentity_descriptor = - getDescriptor().getMessageType(14); + getDescriptor().getMessageType(15); internal_static_google_cloud_confidentialcomputing_v1_GceShieldedIdentity_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_confidentialcomputing_v1_GceShieldedIdentity_descriptor, @@ -520,7 +656,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AkCert", "AkCertChain", }); internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceResponse_descriptor = - getDescriptor().getMessageType(15); + getDescriptor().getMessageType(16); internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceResponse_descriptor, @@ -528,15 +664,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AttestationToken", "PartialErrors", }); internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_descriptor = - getDescriptor().getMessageType(16); + getDescriptor().getMessageType(17); internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_descriptor, new java.lang.String[] { - "TpmAttestation", "Challenge", "TeeAttestation", + "TpmAttestation", "Challenge", "Options", "TeeAttestation", + }); + internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_ConfidentialGkeOptions_descriptor = + internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_descriptor + .getNestedType(0); + internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_ConfidentialGkeOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_ConfidentialGkeOptions_descriptor, + new java.lang.String[] { + "Audience", "Nonce", "SignatureType", }); internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeResponse_descriptor = - getDescriptor().getMessageType(17); + getDescriptor().getMessageType(18); internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeResponse_descriptor, diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequest.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequest.java index 3150609f84b8..9c5745a04898 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequest.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequest.java @@ -123,6 +123,53 @@ public TeeAttestationCase getTeeAttestationCase() { return TeeAttestationCase.forNumber(teeAttestationCase_); } + private int deviceAttestationCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object deviceAttestation_; + + public enum DeviceAttestationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + NVIDIA_ATTESTATION(9), + DEVICEATTESTATION_NOT_SET(0); + private final int value; + + private DeviceAttestationCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DeviceAttestationCase valueOf(int value) { + return forNumber(value); + } + + public static DeviceAttestationCase forNumber(int value) { + switch (value) { + case 9: + return NVIDIA_ATTESTATION; + case 0: + return DEVICEATTESTATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DeviceAttestationCase getDeviceAttestationCase() { + return DeviceAttestationCase.forNumber(deviceAttestationCase_); + } + public static final int TD_CCEL_FIELD_NUMBER = 6; /** @@ -245,6 +292,67 @@ public com.google.cloud.confidentialcomputing.v1.SevSnpAttestation getSevSnpAtte return com.google.cloud.confidentialcomputing.v1.SevSnpAttestation.getDefaultInstance(); } + public static final int NVIDIA_ATTESTATION_FIELD_NUMBER = 9; + + /** + * + * + *
            +   * Optional. An Nvidia attestation report for GPU and NVSwitch devices.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the nvidiaAttestation field is set. + */ + @java.lang.Override + public boolean hasNvidiaAttestation() { + return deviceAttestationCase_ == 9; + } + + /** + * + * + *
            +   * Optional. An Nvidia attestation report for GPU and NVSwitch devices.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nvidiaAttestation. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation getNvidiaAttestation() { + if (deviceAttestationCase_ == 9) { + return (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation) deviceAttestation_; + } + return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.getDefaultInstance(); + } + + /** + * + * + *
            +   * Optional. An Nvidia attestation report for GPU and NVSwitch devices.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestationOrBuilder + getNvidiaAttestationOrBuilder() { + if (deviceAttestationCase_ == 9) { + return (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation) deviceAttestation_; + } + return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.getDefaultInstance(); + } + public static final int CHALLENGE_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -651,6 +759,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(attester_)) { com.google.protobuf.GeneratedMessage.writeString(output, 8, attester_); } + if (deviceAttestationCase_ == 9) { + output.writeMessage( + 9, (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation) deviceAttestation_); + } getUnknownFields().writeTo(output); } @@ -689,6 +801,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(attester_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(8, attester_); } + if (deviceAttestationCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation) deviceAttestation_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -734,6 +851,14 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } + if (!getDeviceAttestationCase().equals(other.getDeviceAttestationCase())) return false; + switch (deviceAttestationCase_) { + case 9: + if (!getNvidiaAttestation().equals(other.getNvidiaAttestation())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -777,6 +902,14 @@ public int hashCode() { case 0: default: } + switch (deviceAttestationCase_) { + case 9: + hash = (37 * hash) + NVIDIA_ATTESTATION_FIELD_NUMBER; + hash = (53 * hash) + getNvidiaAttestation().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -939,6 +1072,9 @@ public Builder clear() { if (sevSnpAttestationBuilder_ != null) { sevSnpAttestationBuilder_.clear(); } + if (nvidiaAttestationBuilder_ != null) { + nvidiaAttestationBuilder_.clear(); + } challenge_ = ""; gcpCredentials_ = null; if (gcpCredentialsBuilder_ != null) { @@ -963,6 +1099,8 @@ public Builder clear() { attester_ = ""; teeAttestationCase_ = 0; teeAttestation_ = null; + deviceAttestationCase_ = 0; + deviceAttestation_ = null; return this; } @@ -1003,33 +1141,33 @@ public com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest buildP private void buildPartial0( com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.challenge_ = challenge_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.gcpCredentials_ = gcpCredentialsBuilder_ == null ? gcpCredentials_ : gcpCredentialsBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.tpmAttestation_ = tpmAttestationBuilder_ == null ? tpmAttestation_ : tpmAttestationBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.confidentialSpaceInfo_ = confidentialSpaceInfoBuilder_ == null ? confidentialSpaceInfo_ : confidentialSpaceInfoBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.tokenOptions_ = tokenOptionsBuilder_ == null ? tokenOptions_ : tokenOptionsBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.attester_ = attester_; } result.bitField0_ |= to_bitField0_; @@ -1045,6 +1183,11 @@ private void buildPartialOneofs( if (teeAttestationCase_ == 7 && sevSnpAttestationBuilder_ != null) { result.teeAttestation_ = sevSnpAttestationBuilder_.build(); } + result.deviceAttestationCase_ = deviceAttestationCase_; + result.deviceAttestation_ = this.deviceAttestation_; + if (deviceAttestationCase_ == 9 && nvidiaAttestationBuilder_ != null) { + result.deviceAttestation_ = nvidiaAttestationBuilder_.build(); + } } @java.lang.Override @@ -1065,7 +1208,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getChallenge().isEmpty()) { challenge_ = other.challenge_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasGcpCredentials()) { @@ -1082,7 +1225,7 @@ public Builder mergeFrom( } if (!other.getAttester().isEmpty()) { attester_ = other.attester_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } switch (other.getTeeAttestationCase()) { @@ -1101,6 +1244,17 @@ public Builder mergeFrom( break; } } + switch (other.getDeviceAttestationCase()) { + case NVIDIA_ATTESTATION: + { + mergeNvidiaAttestation(other.getNvidiaAttestation()); + break; + } + case DEVICEATTESTATION_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1130,35 +1284,35 @@ public Builder mergeFrom( case 10: { challenge_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 10 case 18: { input.readMessage( internalGetGcpCredentialsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 18 case 26: { input.readMessage( internalGetTpmAttestationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 26 case 34: { input.readMessage( internalGetConfidentialSpaceInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 34 case 42: { input.readMessage( internalGetTokenOptionsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 42 case 50: @@ -1177,9 +1331,16 @@ public Builder mergeFrom( case 66: { attester_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 66 + case 74: + { + input.readMessage( + internalGetNvidiaAttestationFieldBuilder().getBuilder(), extensionRegistry); + deviceAttestationCase_ = 9; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1211,6 +1372,20 @@ public Builder clearTeeAttestation() { return this; } + private int deviceAttestationCase_ = 0; + private java.lang.Object deviceAttestation_; + + public DeviceAttestationCase getDeviceAttestationCase() { + return DeviceAttestationCase.forNumber(deviceAttestationCase_); + } + + public Builder clearDeviceAttestation() { + deviceAttestationCase_ = 0; + deviceAttestation_ = null; + onChanged(); + return this; + } + private int bitField0_; private com.google.protobuf.SingleFieldBuilder< @@ -1697,6 +1872,250 @@ public Builder clearSevSnpAttestation() { return sevSnpAttestationBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.Builder, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestationOrBuilder> + nvidiaAttestationBuilder_; + + /** + * + * + *
            +     * Optional. An Nvidia attestation report for GPU and NVSwitch devices.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the nvidiaAttestation field is set. + */ + @java.lang.Override + public boolean hasNvidiaAttestation() { + return deviceAttestationCase_ == 9; + } + + /** + * + * + *
            +     * Optional. An Nvidia attestation report for GPU and NVSwitch devices.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nvidiaAttestation. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation getNvidiaAttestation() { + if (nvidiaAttestationBuilder_ == null) { + if (deviceAttestationCase_ == 9) { + return (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation) deviceAttestation_; + } + return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.getDefaultInstance(); + } else { + if (deviceAttestationCase_ == 9) { + return nvidiaAttestationBuilder_.getMessage(); + } + return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Optional. An Nvidia attestation report for GPU and NVSwitch devices.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNvidiaAttestation( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation value) { + if (nvidiaAttestationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deviceAttestation_ = value; + onChanged(); + } else { + nvidiaAttestationBuilder_.setMessage(value); + } + deviceAttestationCase_ = 9; + return this; + } + + /** + * + * + *
            +     * Optional. An Nvidia attestation report for GPU and NVSwitch devices.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNvidiaAttestation( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.Builder builderForValue) { + if (nvidiaAttestationBuilder_ == null) { + deviceAttestation_ = builderForValue.build(); + onChanged(); + } else { + nvidiaAttestationBuilder_.setMessage(builderForValue.build()); + } + deviceAttestationCase_ = 9; + return this; + } + + /** + * + * + *
            +     * Optional. An Nvidia attestation report for GPU and NVSwitch devices.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeNvidiaAttestation( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation value) { + if (nvidiaAttestationBuilder_ == null) { + if (deviceAttestationCase_ == 9 + && deviceAttestation_ + != com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .getDefaultInstance()) { + deviceAttestation_ = + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.newBuilder( + (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation) + deviceAttestation_) + .mergeFrom(value) + .buildPartial(); + } else { + deviceAttestation_ = value; + } + onChanged(); + } else { + if (deviceAttestationCase_ == 9) { + nvidiaAttestationBuilder_.mergeFrom(value); + } else { + nvidiaAttestationBuilder_.setMessage(value); + } + } + deviceAttestationCase_ = 9; + return this; + } + + /** + * + * + *
            +     * Optional. An Nvidia attestation report for GPU and NVSwitch devices.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearNvidiaAttestation() { + if (nvidiaAttestationBuilder_ == null) { + if (deviceAttestationCase_ == 9) { + deviceAttestationCase_ = 0; + deviceAttestation_ = null; + onChanged(); + } + } else { + if (deviceAttestationCase_ == 9) { + deviceAttestationCase_ = 0; + deviceAttestation_ = null; + } + nvidiaAttestationBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Optional. An Nvidia attestation report for GPU and NVSwitch devices.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.Builder + getNvidiaAttestationBuilder() { + return internalGetNvidiaAttestationFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. An Nvidia attestation report for GPU and NVSwitch devices.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestationOrBuilder + getNvidiaAttestationOrBuilder() { + if ((deviceAttestationCase_ == 9) && (nvidiaAttestationBuilder_ != null)) { + return nvidiaAttestationBuilder_.getMessageOrBuilder(); + } else { + if (deviceAttestationCase_ == 9) { + return (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation) deviceAttestation_; + } + return com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Optional. An Nvidia attestation report for GPU and NVSwitch devices.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.Builder, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestationOrBuilder> + internalGetNvidiaAttestationFieldBuilder() { + if (nvidiaAttestationBuilder_ == null) { + if (!(deviceAttestationCase_ == 9)) { + deviceAttestation_ = + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.getDefaultInstance(); + } + nvidiaAttestationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.Builder, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestationOrBuilder>( + (com.google.cloud.confidentialcomputing.v1.NvidiaAttestation) deviceAttestation_, + getParentForChildren(), + isClean()); + deviceAttestation_ = null; + } + deviceAttestationCase_ = 9; + onChanged(); + return nvidiaAttestationBuilder_; + } + private java.lang.Object challenge_ = ""; /** @@ -1774,7 +2193,7 @@ public Builder setChallenge(java.lang.String value) { throw new NullPointerException(); } challenge_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1796,7 +2215,7 @@ public Builder setChallenge(java.lang.String value) { */ public Builder clearChallenge() { challenge_ = getDefaultInstance().getChallenge(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1823,7 +2242,7 @@ public Builder setChallengeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); challenge_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1850,7 +2269,7 @@ public Builder setChallengeBytes(com.google.protobuf.ByteString value) { * @return Whether the gcpCredentials field is set. */ public boolean hasGcpCredentials() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -1899,7 +2318,7 @@ public Builder setGcpCredentials( } else { gcpCredentialsBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1923,7 +2342,7 @@ public Builder setGcpCredentials( } else { gcpCredentialsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1943,7 +2362,7 @@ public Builder setGcpCredentials( public Builder mergeGcpCredentials( com.google.cloud.confidentialcomputing.v1.GcpCredentials value) { if (gcpCredentialsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000010) != 0) && gcpCredentials_ != null && gcpCredentials_ != com.google.cloud.confidentialcomputing.v1.GcpCredentials.getDefaultInstance()) { @@ -1955,7 +2374,7 @@ public Builder mergeGcpCredentials( gcpCredentialsBuilder_.mergeFrom(value); } if (gcpCredentials_ != null) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } return this; @@ -1974,7 +2393,7 @@ public Builder mergeGcpCredentials( * */ public Builder clearGcpCredentials() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); gcpCredentials_ = null; if (gcpCredentialsBuilder_ != null) { gcpCredentialsBuilder_.dispose(); @@ -1998,7 +2417,7 @@ public Builder clearGcpCredentials() { */ public com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder getGcpCredentialsBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return internalGetGcpCredentialsFieldBuilder().getBuilder(); } @@ -2077,7 +2496,7 @@ public Builder clearGcpCredentials() { * @return Whether the tpmAttestation field is set. */ public boolean hasTpmAttestation() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -2126,7 +2545,7 @@ public Builder setTpmAttestation( } else { tpmAttestationBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2150,7 +2569,7 @@ public Builder setTpmAttestation( } else { tpmAttestationBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2170,7 +2589,7 @@ public Builder setTpmAttestation( public Builder mergeTpmAttestation( com.google.cloud.confidentialcomputing.v1.TpmAttestation value) { if (tpmAttestationBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000020) != 0) && tpmAttestation_ != null && tpmAttestation_ != com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance()) { @@ -2182,7 +2601,7 @@ public Builder mergeTpmAttestation( tpmAttestationBuilder_.mergeFrom(value); } if (tpmAttestation_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -2201,7 +2620,7 @@ public Builder mergeTpmAttestation( * */ public Builder clearTpmAttestation() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); tpmAttestation_ = null; if (tpmAttestationBuilder_ != null) { tpmAttestationBuilder_.dispose(); @@ -2225,7 +2644,7 @@ public Builder clearTpmAttestation() { */ public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder getTpmAttestationBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return internalGetTpmAttestationFieldBuilder().getBuilder(); } @@ -2303,7 +2722,7 @@ public Builder clearTpmAttestation() { * @return Whether the confidentialSpaceInfo field is set. */ public boolean hasConfidentialSpaceInfo() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -2351,7 +2770,7 @@ public Builder setConfidentialSpaceInfo( } else { confidentialSpaceInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2374,7 +2793,7 @@ public Builder setConfidentialSpaceInfo( } else { confidentialSpaceInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2393,7 +2812,7 @@ public Builder setConfidentialSpaceInfo( public Builder mergeConfidentialSpaceInfo( com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo value) { if (confidentialSpaceInfoBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && confidentialSpaceInfo_ != null && confidentialSpaceInfo_ != com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo @@ -2406,7 +2825,7 @@ public Builder mergeConfidentialSpaceInfo( confidentialSpaceInfoBuilder_.mergeFrom(value); } if (confidentialSpaceInfo_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -2424,7 +2843,7 @@ public Builder mergeConfidentialSpaceInfo( * */ public Builder clearConfidentialSpaceInfo() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); confidentialSpaceInfo_ = null; if (confidentialSpaceInfoBuilder_ != null) { confidentialSpaceInfoBuilder_.dispose(); @@ -2447,7 +2866,7 @@ public Builder clearConfidentialSpaceInfo() { */ public com.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo.Builder getConfidentialSpaceInfoBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return internalGetConfidentialSpaceInfoFieldBuilder().getBuilder(); } @@ -2524,7 +2943,7 @@ public Builder clearConfidentialSpaceInfo() { * @return Whether the tokenOptions field is set. */ public boolean hasTokenOptions() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -2572,7 +2991,7 @@ public Builder setTokenOptions(com.google.cloud.confidentialcomputing.v1.TokenOp } else { tokenOptionsBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2596,7 +3015,7 @@ public Builder setTokenOptions( } else { tokenOptionsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2615,7 +3034,7 @@ public Builder setTokenOptions( */ public Builder mergeTokenOptions(com.google.cloud.confidentialcomputing.v1.TokenOptions value) { if (tokenOptionsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000080) != 0) && tokenOptions_ != null && tokenOptions_ != com.google.cloud.confidentialcomputing.v1.TokenOptions.getDefaultInstance()) { @@ -2627,7 +3046,7 @@ public Builder mergeTokenOptions(com.google.cloud.confidentialcomputing.v1.Token tokenOptionsBuilder_.mergeFrom(value); } if (tokenOptions_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -2646,7 +3065,7 @@ public Builder mergeTokenOptions(com.google.cloud.confidentialcomputing.v1.Token * */ public Builder clearTokenOptions() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); tokenOptions_ = null; if (tokenOptionsBuilder_ != null) { tokenOptionsBuilder_.dispose(); @@ -2669,7 +3088,7 @@ public Builder clearTokenOptions() { * */ public com.google.cloud.confidentialcomputing.v1.TokenOptions.Builder getTokenOptionsBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return internalGetTokenOptionsFieldBuilder().getBuilder(); } @@ -2794,7 +3213,7 @@ public Builder setAttester(java.lang.String value) { throw new NullPointerException(); } attester_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2813,7 +3232,7 @@ public Builder setAttester(java.lang.String value) { */ public Builder clearAttester() { attester_ = getDefaultInstance().getAttester(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -2837,7 +3256,7 @@ public Builder setAttesterBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); attester_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequestOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequestOrBuilder.java index 79f4cb0ae090..00225e387834 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequestOrBuilder.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequestOrBuilder.java @@ -113,6 +113,50 @@ public interface VerifyAttestationRequestOrBuilder com.google.cloud.confidentialcomputing.v1.SevSnpAttestationOrBuilder getSevSnpAttestationOrBuilder(); + /** + * + * + *
            +   * Optional. An Nvidia attestation report for GPU and NVSwitch devices.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the nvidiaAttestation field is set. + */ + boolean hasNvidiaAttestation(); + + /** + * + * + *
            +   * Optional. An Nvidia attestation report for GPU and NVSwitch devices.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nvidiaAttestation. + */ + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation getNvidiaAttestation(); + + /** + * + * + *
            +   * Optional. An Nvidia attestation report for GPU and NVSwitch devices.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.confidentialcomputing.v1.NvidiaAttestationOrBuilder + getNvidiaAttestationOrBuilder(); + /** * * @@ -359,4 +403,7 @@ public interface VerifyAttestationRequestOrBuilder com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.TeeAttestationCase getTeeAttestationCase(); + + com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.DeviceAttestationCase + getDeviceAttestationCase(); } diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialGkeRequest.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialGkeRequest.java index a65fba451987..e1bb92965f5f 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialGkeRequest.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialGkeRequest.java @@ -72,6 +72,1286 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.Builder.class); } + public interface ConfidentialGkeOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Optional. Optional string to issue the token with a custom audience
            +     * claim. Required if custom nonces are specified.
            +     * 
            + * + * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The audience. + */ + java.lang.String getAudience(); + + /** + * + * + *
            +     * Optional. Optional string to issue the token with a custom audience
            +     * claim. Required if custom nonces are specified.
            +     * 
            + * + * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for audience. + */ + com.google.protobuf.ByteString getAudienceBytes(); + + /** + * + * + *
            +     * Optional. Optional parameter to place one or more nonces in the eat_nonce
            +     * claim in the output token. The minimum size for JSON-encoded EATs is 10
            +     * bytes and the maximum size is 74 bytes.
            +     * 
            + * + * repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the nonce. + */ + java.util.List getNonceList(); + + /** + * + * + *
            +     * Optional. Optional parameter to place one or more nonces in the eat_nonce
            +     * claim in the output token. The minimum size for JSON-encoded EATs is 10
            +     * bytes and the maximum size is 74 bytes.
            +     * 
            + * + * repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of nonce. + */ + int getNonceCount(); + + /** + * + * + *
            +     * Optional. Optional parameter to place one or more nonces in the eat_nonce
            +     * claim in the output token. The minimum size for JSON-encoded EATs is 10
            +     * bytes and the maximum size is 74 bytes.
            +     * 
            + * + * repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The nonce at the given index. + */ + java.lang.String getNonce(int index); + + /** + * + * + *
            +     * Optional. Optional parameter to place one or more nonces in the eat_nonce
            +     * claim in the output token. The minimum size for JSON-encoded EATs is 10
            +     * bytes and the maximum size is 74 bytes.
            +     * 
            + * + * repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the nonce at the given index. + */ + com.google.protobuf.ByteString getNonceBytes(int index); + + /** + * + * + *
            +     * Optional. Optional specification for how to sign the attestation token.
            +     * Defaults to SIGNATURE_TYPE_OIDC if unspecified.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.SignatureType signature_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for signatureType. + */ + int getSignatureTypeValue(); + + /** + * + * + *
            +     * Optional. Optional specification for how to sign the attestation token.
            +     * Defaults to SIGNATURE_TYPE_OIDC if unspecified.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.SignatureType signature_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The signatureType. + */ + com.google.cloud.confidentialcomputing.v1.SignatureType getSignatureType(); + } + + /** + * + * + *
            +   * Token options for Confidential GKE attestation.
            +   * 
            + * + * Protobuf type {@code + * google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions} + */ + public static final class ConfidentialGkeOptions extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions) + ConfidentialGkeOptionsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ConfidentialGkeOptions"); + } + + // Use ConfidentialGkeOptions.newBuilder() to construct. + private ConfidentialGkeOptions(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ConfidentialGkeOptions() { + audience_ = ""; + nonce_ = com.google.protobuf.LazyStringArrayList.emptyList(); + signatureType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_ConfidentialGkeOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_ConfidentialGkeOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions.class, + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions.Builder.class); + } + + public static final int AUDIENCE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object audience_ = ""; + + /** + * + * + *
            +     * Optional. Optional string to issue the token with a custom audience
            +     * claim. Required if custom nonces are specified.
            +     * 
            + * + * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The audience. + */ + @java.lang.Override + public java.lang.String getAudience() { + java.lang.Object ref = audience_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + audience_ = s; + return s; + } + } + + /** + * + * + *
            +     * Optional. Optional string to issue the token with a custom audience
            +     * claim. Required if custom nonces are specified.
            +     * 
            + * + * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for audience. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAudienceBytes() { + java.lang.Object ref = audience_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + audience_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NONCE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList nonce_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +     * Optional. Optional parameter to place one or more nonces in the eat_nonce
            +     * claim in the output token. The minimum size for JSON-encoded EATs is 10
            +     * bytes and the maximum size is 74 bytes.
            +     * 
            + * + * repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the nonce. + */ + public com.google.protobuf.ProtocolStringList getNonceList() { + return nonce_; + } + + /** + * + * + *
            +     * Optional. Optional parameter to place one or more nonces in the eat_nonce
            +     * claim in the output token. The minimum size for JSON-encoded EATs is 10
            +     * bytes and the maximum size is 74 bytes.
            +     * 
            + * + * repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of nonce. + */ + public int getNonceCount() { + return nonce_.size(); + } + + /** + * + * + *
            +     * Optional. Optional parameter to place one or more nonces in the eat_nonce
            +     * claim in the output token. The minimum size for JSON-encoded EATs is 10
            +     * bytes and the maximum size is 74 bytes.
            +     * 
            + * + * repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The nonce at the given index. + */ + public java.lang.String getNonce(int index) { + return nonce_.get(index); + } + + /** + * + * + *
            +     * Optional. Optional parameter to place one or more nonces in the eat_nonce
            +     * claim in the output token. The minimum size for JSON-encoded EATs is 10
            +     * bytes and the maximum size is 74 bytes.
            +     * 
            + * + * repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the nonce at the given index. + */ + public com.google.protobuf.ByteString getNonceBytes(int index) { + return nonce_.getByteString(index); + } + + public static final int SIGNATURE_TYPE_FIELD_NUMBER = 4; + private int signatureType_ = 0; + + /** + * + * + *
            +     * Optional. Optional specification for how to sign the attestation token.
            +     * Defaults to SIGNATURE_TYPE_OIDC if unspecified.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.SignatureType signature_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for signatureType. + */ + @java.lang.Override + public int getSignatureTypeValue() { + return signatureType_; + } + + /** + * + * + *
            +     * Optional. Optional specification for how to sign the attestation token.
            +     * Defaults to SIGNATURE_TYPE_OIDC if unspecified.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.SignatureType signature_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The signatureType. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.SignatureType getSignatureType() { + com.google.cloud.confidentialcomputing.v1.SignatureType result = + com.google.cloud.confidentialcomputing.v1.SignatureType.forNumber(signatureType_); + return result == null + ? com.google.cloud.confidentialcomputing.v1.SignatureType.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(audience_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, audience_); + } + for (int i = 0; i < nonce_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, nonce_.getRaw(i)); + } + if (signatureType_ + != com.google.cloud.confidentialcomputing.v1.SignatureType.SIGNATURE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, signatureType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(audience_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, audience_); + } + { + int dataSize = 0; + for (int i = 0; i < nonce_.size(); i++) { + dataSize += computeStringSizeNoTag(nonce_.getRaw(i)); + } + size += dataSize; + size += 1 * getNonceList().size(); + } + if (signatureType_ + != com.google.cloud.confidentialcomputing.v1.SignatureType.SIGNATURE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, signatureType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions)) { + return super.equals(obj); + } + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions + other = + (com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions) + obj; + + if (!getAudience().equals(other.getAudience())) return false; + if (!getNonceList().equals(other.getNonceList())) return false; + if (signatureType_ != other.signatureType_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + AUDIENCE_FIELD_NUMBER; + hash = (53 * hash) + getAudience().hashCode(); + if (getNonceCount() > 0) { + hash = (37 * hash) + NONCE_FIELD_NUMBER; + hash = (53 * hash) + getNonceList().hashCode(); + } + hash = (37 * hash) + SIGNATURE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + signatureType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Token options for Confidential GKE attestation.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions) + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_ConfidentialGkeOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_ConfidentialGkeOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions.class, + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions.Builder.class); + } + + // Construct using + // com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + audience_ = ""; + nonce_ = com.google.protobuf.LazyStringArrayList.emptyList(); + signatureType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_ConfidentialGkeOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions + getDefaultInstanceForType() { + return com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions + build() { + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions + buildPartial() { + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions + result = + new com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.audience_ = audience_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + nonce_.makeImmutable(); + result.nonce_ = nonce_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.signatureType_ = signatureType_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions) { + return mergeFrom( + (com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions + other) { + if (other + == com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions.getDefaultInstance()) return this; + if (!other.getAudience().isEmpty()) { + audience_ = other.audience_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.nonce_.isEmpty()) { + if (nonce_.isEmpty()) { + nonce_ = other.nonce_; + bitField0_ |= 0x00000002; + } else { + ensureNonceIsMutable(); + nonce_.addAll(other.nonce_); + } + onChanged(); + } + if (other.signatureType_ != 0) { + setSignatureTypeValue(other.getSignatureTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + audience_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNonceIsMutable(); + nonce_.add(s); + break; + } // case 26 + case 32: + { + signatureType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object audience_ = ""; + + /** + * + * + *
            +       * Optional. Optional string to issue the token with a custom audience
            +       * claim. Required if custom nonces are specified.
            +       * 
            + * + * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The audience. + */ + public java.lang.String getAudience() { + java.lang.Object ref = audience_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + audience_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Optional. Optional string to issue the token with a custom audience
            +       * claim. Required if custom nonces are specified.
            +       * 
            + * + * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for audience. + */ + public com.google.protobuf.ByteString getAudienceBytes() { + java.lang.Object ref = audience_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + audience_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Optional. Optional string to issue the token with a custom audience
            +       * claim. Required if custom nonces are specified.
            +       * 
            + * + * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The audience to set. + * @return This builder for chaining. + */ + public Builder setAudience(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + audience_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Optional string to issue the token with a custom audience
            +       * claim. Required if custom nonces are specified.
            +       * 
            + * + * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAudience() { + audience_ = getDefaultInstance().getAudience(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Optional string to issue the token with a custom audience
            +       * claim. Required if custom nonces are specified.
            +       * 
            + * + * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for audience to set. + * @return This builder for chaining. + */ + public Builder setAudienceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + audience_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList nonce_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNonceIsMutable() { + if (!nonce_.isModifiable()) { + nonce_ = new com.google.protobuf.LazyStringArrayList(nonce_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
            +       * Optional. Optional parameter to place one or more nonces in the eat_nonce
            +       * claim in the output token. The minimum size for JSON-encoded EATs is 10
            +       * bytes and the maximum size is 74 bytes.
            +       * 
            + * + * repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the nonce. + */ + public com.google.protobuf.ProtocolStringList getNonceList() { + nonce_.makeImmutable(); + return nonce_; + } + + /** + * + * + *
            +       * Optional. Optional parameter to place one or more nonces in the eat_nonce
            +       * claim in the output token. The minimum size for JSON-encoded EATs is 10
            +       * bytes and the maximum size is 74 bytes.
            +       * 
            + * + * repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of nonce. + */ + public int getNonceCount() { + return nonce_.size(); + } + + /** + * + * + *
            +       * Optional. Optional parameter to place one or more nonces in the eat_nonce
            +       * claim in the output token. The minimum size for JSON-encoded EATs is 10
            +       * bytes and the maximum size is 74 bytes.
            +       * 
            + * + * repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The nonce at the given index. + */ + public java.lang.String getNonce(int index) { + return nonce_.get(index); + } + + /** + * + * + *
            +       * Optional. Optional parameter to place one or more nonces in the eat_nonce
            +       * claim in the output token. The minimum size for JSON-encoded EATs is 10
            +       * bytes and the maximum size is 74 bytes.
            +       * 
            + * + * repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the nonce at the given index. + */ + public com.google.protobuf.ByteString getNonceBytes(int index) { + return nonce_.getByteString(index); + } + + /** + * + * + *
            +       * Optional. Optional parameter to place one or more nonces in the eat_nonce
            +       * claim in the output token. The minimum size for JSON-encoded EATs is 10
            +       * bytes and the maximum size is 74 bytes.
            +       * 
            + * + * repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The nonce to set. + * @return This builder for chaining. + */ + public Builder setNonce(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNonceIsMutable(); + nonce_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Optional parameter to place one or more nonces in the eat_nonce
            +       * claim in the output token. The minimum size for JSON-encoded EATs is 10
            +       * bytes and the maximum size is 74 bytes.
            +       * 
            + * + * repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The nonce to add. + * @return This builder for chaining. + */ + public Builder addNonce(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNonceIsMutable(); + nonce_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Optional parameter to place one or more nonces in the eat_nonce
            +       * claim in the output token. The minimum size for JSON-encoded EATs is 10
            +       * bytes and the maximum size is 74 bytes.
            +       * 
            + * + * repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The nonce to add. + * @return This builder for chaining. + */ + public Builder addAllNonce(java.lang.Iterable values) { + ensureNonceIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nonce_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Optional parameter to place one or more nonces in the eat_nonce
            +       * claim in the output token. The minimum size for JSON-encoded EATs is 10
            +       * bytes and the maximum size is 74 bytes.
            +       * 
            + * + * repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNonce() { + nonce_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Optional parameter to place one or more nonces in the eat_nonce
            +       * claim in the output token. The minimum size for JSON-encoded EATs is 10
            +       * bytes and the maximum size is 74 bytes.
            +       * 
            + * + * repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the nonce to add. + * @return This builder for chaining. + */ + public Builder addNonceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNonceIsMutable(); + nonce_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int signatureType_ = 0; + + /** + * + * + *
            +       * Optional. Optional specification for how to sign the attestation token.
            +       * Defaults to SIGNATURE_TYPE_OIDC if unspecified.
            +       * 
            + * + * + * .google.cloud.confidentialcomputing.v1.SignatureType signature_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for signatureType. + */ + @java.lang.Override + public int getSignatureTypeValue() { + return signatureType_; + } + + /** + * + * + *
            +       * Optional. Optional specification for how to sign the attestation token.
            +       * Defaults to SIGNATURE_TYPE_OIDC if unspecified.
            +       * 
            + * + * + * .google.cloud.confidentialcomputing.v1.SignatureType signature_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for signatureType to set. + * @return This builder for chaining. + */ + public Builder setSignatureTypeValue(int value) { + signatureType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Optional specification for how to sign the attestation token.
            +       * Defaults to SIGNATURE_TYPE_OIDC if unspecified.
            +       * 
            + * + * + * .google.cloud.confidentialcomputing.v1.SignatureType signature_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The signatureType. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.SignatureType getSignatureType() { + com.google.cloud.confidentialcomputing.v1.SignatureType result = + com.google.cloud.confidentialcomputing.v1.SignatureType.forNumber(signatureType_); + return result == null + ? com.google.cloud.confidentialcomputing.v1.SignatureType.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +       * Optional. Optional specification for how to sign the attestation token.
            +       * Defaults to SIGNATURE_TYPE_OIDC if unspecified.
            +       * 
            + * + * + * .google.cloud.confidentialcomputing.v1.SignatureType signature_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The signatureType to set. + * @return This builder for chaining. + */ + public Builder setSignatureType( + com.google.cloud.confidentialcomputing.v1.SignatureType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + signatureType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Optional specification for how to sign the attestation token.
            +       * Defaults to SIGNATURE_TYPE_OIDC if unspecified.
            +       * 
            + * + * + * .google.cloud.confidentialcomputing.v1.SignatureType signature_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSignatureType() { + bitField0_ = (bitField0_ & ~0x00000004); + signatureType_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions) + private static final com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions(); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfidentialGkeOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; private int teeAttestationCase_ = 0; @SuppressWarnings("serial") @@ -238,6 +1518,73 @@ public com.google.protobuf.ByteString getChallengeBytes() { } } + public static final int OPTIONS_FIELD_NUMBER = 3; + private com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions + options_; + + /** + * + * + *
            +   * Optional. A collection of fields that modify the token output.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the options field is set. + */ + @java.lang.Override + public boolean hasOptions() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. A collection of fields that modify the token output.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The options. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions + getOptions() { + return options_ == null + ? com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions.getDefaultInstance() + : options_; + } + + /** + * + * + *
            +   * Optional. A collection of fields that modify the token output.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptionsOrBuilder + getOptionsOrBuilder() { + return options_ == null + ? com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions.getDefaultInstance() + : options_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -259,6 +1606,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 2, (com.google.cloud.confidentialcomputing.v1.TpmAttestation) teeAttestation_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getOptions()); + } getUnknownFields().writeTo(output); } @@ -276,6 +1626,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 2, (com.google.cloud.confidentialcomputing.v1.TpmAttestation) teeAttestation_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOptions()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -293,6 +1646,10 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest) obj; if (!getChallenge().equals(other.getChallenge())) return false; + if (hasOptions() != other.hasOptions()) return false; + if (hasOptions()) { + if (!getOptions().equals(other.getOptions())) return false; + } if (!getTeeAttestationCase().equals(other.getTeeAttestationCase())) return false; switch (teeAttestationCase_) { case 2: @@ -314,6 +1671,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CHALLENGE_FIELD_NUMBER; hash = (53 * hash) + getChallenge().hashCode(); + if (hasOptions()) { + hash = (37 * hash) + OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getOptions().hashCode(); + } switch (teeAttestationCase_) { case 2: hash = (37 * hash) + TPM_ATTESTATION_FIELD_NUMBER; @@ -457,10 +1818,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetOptionsFieldBuilder(); + } } @java.lang.Override @@ -471,6 +1841,11 @@ public Builder clear() { tpmAttestationBuilder_.clear(); } challenge_ = ""; + options_ = null; + if (optionsBuilder_ != null) { + optionsBuilder_.dispose(); + optionsBuilder_ = null; + } teeAttestationCase_ = 0; teeAttestation_ = null; return this; @@ -517,6 +1892,12 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.challenge_ = challenge_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.options_ = optionsBuilder_ == null ? options_ : optionsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs( @@ -549,6 +1930,9 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; onChanged(); } + if (other.hasOptions()) { + mergeOptions(other.getOptions()); + } switch (other.getTeeAttestationCase()) { case TPM_ATTESTATION: { @@ -599,6 +1983,12 @@ public Builder mergeFrom( teeAttestationCase_ = 2; break; } // case 18 + case 26: + { + input.readMessage(internalGetOptionsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -996,6 +2386,248 @@ public Builder setChallengeBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions + options_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions, + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions.Builder, + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptionsOrBuilder> + optionsBuilder_; + + /** + * + * + *
            +     * Optional. A collection of fields that modify the token output.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the options field is set. + */ + public boolean hasOptions() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Optional. A collection of fields that modify the token output.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The options. + */ + public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions + getOptions() { + if (optionsBuilder_ == null) { + return options_ == null + ? com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions.getDefaultInstance() + : options_; + } else { + return optionsBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. A collection of fields that modify the token output.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOptions( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions + value) { + if (optionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + options_ = value; + } else { + optionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. A collection of fields that modify the token output.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOptions( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions.Builder + builderForValue) { + if (optionsBuilder_ == null) { + options_ = builderForValue.build(); + } else { + optionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. A collection of fields that modify the token output.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeOptions( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions + value) { + if (optionsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && options_ != null + && options_ + != com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions.getDefaultInstance()) { + getOptionsBuilder().mergeFrom(value); + } else { + options_ = value; + } + } else { + optionsBuilder_.mergeFrom(value); + } + if (options_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. A collection of fields that modify the token output.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOptions() { + bitField0_ = (bitField0_ & ~0x00000004); + options_ = null; + if (optionsBuilder_ != null) { + optionsBuilder_.dispose(); + optionsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. A collection of fields that modify the token output.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions.Builder + getOptionsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetOptionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. A collection of fields that modify the token output.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptionsOrBuilder + getOptionsOrBuilder() { + if (optionsBuilder_ != null) { + return optionsBuilder_.getMessageOrBuilder(); + } else { + return options_ == null + ? com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions.getDefaultInstance() + : options_; + } + } + + /** + * + * + *
            +     * Optional. A collection of fields that modify the token output.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions, + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions.Builder, + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptionsOrBuilder> + internalGetOptionsFieldBuilder() { + if (optionsBuilder_ == null) { + optionsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions, + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptions.Builder, + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptionsOrBuilder>( + getOptions(), getParentForChildren(), isClean()); + options_ = null; + } + return optionsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest) } diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialGkeRequestOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialGkeRequestOrBuilder.java index 0523a753865f..7546fd2b87c9 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialGkeRequestOrBuilder.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialGkeRequestOrBuilder.java @@ -100,6 +100,52 @@ public interface VerifyConfidentialGkeRequestOrBuilder */ com.google.protobuf.ByteString getChallengeBytes(); + /** + * + * + *
            +   * Optional. A collection of fields that modify the token output.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the options field is set. + */ + boolean hasOptions(); + + /** + * + * + *
            +   * Optional. A collection of fields that modify the token output.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The options. + */ + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions + getOptions(); + + /** + * + * + *
            +   * Optional. A collection of fields that modify the token output.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .ConfidentialGkeOptionsOrBuilder + getOptionsOrBuilder(); + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.TeeAttestationCase getTeeAttestationCase(); } diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialSpaceRequest.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialSpaceRequest.java index d6c759324463..30d4f7878619 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialSpaceRequest.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialSpaceRequest.java @@ -2577,6 +2577,69 @@ public boolean hasOptions() { : options_; } + public static final int NVIDIA_ATTESTATION_FIELD_NUMBER = 8; + private com.google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidiaAttestation_; + + /** + * + * + *
            +   * Optional. An optional Nvidia attestation report, used to populate hardware
            +   * rooted claims for Nvidia devices.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the nvidiaAttestation field is set. + */ + @java.lang.Override + public boolean hasNvidiaAttestation() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +   * Optional. An optional Nvidia attestation report, used to populate hardware
            +   * rooted claims for Nvidia devices.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nvidiaAttestation. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation getNvidiaAttestation() { + return nvidiaAttestation_ == null + ? com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.getDefaultInstance() + : nvidiaAttestation_; + } + + /** + * + * + *
            +   * Optional. An optional Nvidia attestation report, used to populate hardware
            +   * rooted claims for Nvidia devices.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestationOrBuilder + getNvidiaAttestationOrBuilder() { + return nvidiaAttestation_ == null + ? com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.getDefaultInstance() + : nvidiaAttestation_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2614,6 +2677,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(7, getOptions()); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(8, getNvidiaAttestation()); + } getUnknownFields().writeTo(output); } @@ -2648,6 +2714,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getOptions()); } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getNvidiaAttestation()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2679,6 +2748,10 @@ public boolean equals(final java.lang.Object obj) { if (hasOptions()) { if (!getOptions().equals(other.getOptions())) return false; } + if (hasNvidiaAttestation() != other.hasNvidiaAttestation()) return false; + if (hasNvidiaAttestation()) { + if (!getNvidiaAttestation().equals(other.getNvidiaAttestation())) return false; + } if (!getTeeAttestationCase().equals(other.getTeeAttestationCase())) return false; switch (teeAttestationCase_) { case 3: @@ -2719,6 +2792,10 @@ public int hashCode() { hash = (37 * hash) + OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getOptions().hashCode(); } + if (hasNvidiaAttestation()) { + hash = (37 * hash) + NVIDIA_ATTESTATION_FIELD_NUMBER; + hash = (53 * hash) + getNvidiaAttestation().hashCode(); + } switch (teeAttestationCase_) { case 3: hash = (37 * hash) + TD_CCEL_FIELD_NUMBER; @@ -2881,6 +2958,7 @@ private void maybeForceBuilderInitialization() { internalGetSignedEntitiesFieldBuilder(); internalGetGceShieldedIdentityFieldBuilder(); internalGetOptionsFieldBuilder(); + internalGetNvidiaAttestationFieldBuilder(); } } @@ -2917,6 +2995,11 @@ public Builder clear() { optionsBuilder_.dispose(); optionsBuilder_ = null; } + nvidiaAttestation_ = null; + if (nvidiaAttestationBuilder_ != null) { + nvidiaAttestationBuilder_.dispose(); + nvidiaAttestationBuilder_ = null; + } teeAttestationCase_ = 0; teeAttestation_ = null; return this; @@ -2994,6 +3077,13 @@ private void buildPartial0( result.options_ = optionsBuilder_ == null ? options_ : optionsBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.nvidiaAttestation_ = + nvidiaAttestationBuilder_ == null + ? nvidiaAttestation_ + : nvidiaAttestationBuilder_.build(); + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -3067,6 +3157,9 @@ public Builder mergeFrom( if (other.hasOptions()) { mergeOptions(other.getOptions()); } + if (other.hasNvidiaAttestation()) { + mergeNvidiaAttestation(other.getNvidiaAttestation()); + } switch (other.getTeeAttestationCase()) { case TD_CCEL: { @@ -3162,6 +3255,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 58 + case 66: + { + input.readMessage( + internalGetNvidiaAttestationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4959,6 +5059,234 @@ public Builder clearOptions() { return optionsBuilder_; } + private com.google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidiaAttestation_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.Builder, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestationOrBuilder> + nvidiaAttestationBuilder_; + + /** + * + * + *
            +     * Optional. An optional Nvidia attestation report, used to populate hardware
            +     * rooted claims for Nvidia devices.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the nvidiaAttestation field is set. + */ + public boolean hasNvidiaAttestation() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
            +     * Optional. An optional Nvidia attestation report, used to populate hardware
            +     * rooted claims for Nvidia devices.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nvidiaAttestation. + */ + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation getNvidiaAttestation() { + if (nvidiaAttestationBuilder_ == null) { + return nvidiaAttestation_ == null + ? com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.getDefaultInstance() + : nvidiaAttestation_; + } else { + return nvidiaAttestationBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. An optional Nvidia attestation report, used to populate hardware
            +     * rooted claims for Nvidia devices.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNvidiaAttestation( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation value) { + if (nvidiaAttestationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nvidiaAttestation_ = value; + } else { + nvidiaAttestationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. An optional Nvidia attestation report, used to populate hardware
            +     * rooted claims for Nvidia devices.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNvidiaAttestation( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.Builder builderForValue) { + if (nvidiaAttestationBuilder_ == null) { + nvidiaAttestation_ = builderForValue.build(); + } else { + nvidiaAttestationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. An optional Nvidia attestation report, used to populate hardware
            +     * rooted claims for Nvidia devices.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeNvidiaAttestation( + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation value) { + if (nvidiaAttestationBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && nvidiaAttestation_ != null + && nvidiaAttestation_ + != com.google.cloud.confidentialcomputing.v1.NvidiaAttestation + .getDefaultInstance()) { + getNvidiaAttestationBuilder().mergeFrom(value); + } else { + nvidiaAttestation_ = value; + } + } else { + nvidiaAttestationBuilder_.mergeFrom(value); + } + if (nvidiaAttestation_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. An optional Nvidia attestation report, used to populate hardware
            +     * rooted claims for Nvidia devices.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearNvidiaAttestation() { + bitField0_ = (bitField0_ & ~0x00000080); + nvidiaAttestation_ = null; + if (nvidiaAttestationBuilder_ != null) { + nvidiaAttestationBuilder_.dispose(); + nvidiaAttestationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. An optional Nvidia attestation report, used to populate hardware
            +     * rooted claims for Nvidia devices.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.Builder + getNvidiaAttestationBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetNvidiaAttestationFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. An optional Nvidia attestation report, used to populate hardware
            +     * rooted claims for Nvidia devices.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.NvidiaAttestationOrBuilder + getNvidiaAttestationOrBuilder() { + if (nvidiaAttestationBuilder_ != null) { + return nvidiaAttestationBuilder_.getMessageOrBuilder(); + } else { + return nvidiaAttestation_ == null + ? com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.getDefaultInstance() + : nvidiaAttestation_; + } + } + + /** + * + * + *
            +     * Optional. An optional Nvidia attestation report, used to populate hardware
            +     * rooted claims for Nvidia devices.
            +     * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.Builder, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestationOrBuilder> + internalGetNvidiaAttestationFieldBuilder() { + if (nvidiaAttestationBuilder_ == null) { + nvidiaAttestationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation.Builder, + com.google.cloud.confidentialcomputing.v1.NvidiaAttestationOrBuilder>( + getNvidiaAttestation(), getParentForChildren(), isClean()); + nvidiaAttestation_ = null; + } + return nvidiaAttestationBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest) } diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialSpaceRequestOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialSpaceRequestOrBuilder.java index f2ab43d671b0..fb1b1b8b7607 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialSpaceRequestOrBuilder.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialSpaceRequestOrBuilder.java @@ -363,6 +363,53 @@ com.google.cloud.confidentialcomputing.v1.SignedEntityOrBuilder getSignedEntitie .ConfidentialSpaceOptionsOrBuilder getOptionsOrBuilder(); + /** + * + * + *
            +   * Optional. An optional Nvidia attestation report, used to populate hardware
            +   * rooted claims for Nvidia devices.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the nvidiaAttestation field is set. + */ + boolean hasNvidiaAttestation(); + + /** + * + * + *
            +   * Optional. An optional Nvidia attestation report, used to populate hardware
            +   * rooted claims for Nvidia devices.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nvidiaAttestation. + */ + com.google.cloud.confidentialcomputing.v1.NvidiaAttestation getNvidiaAttestation(); + + /** + * + * + *
            +   * Optional. An optional Nvidia attestation report, used to populate hardware
            +   * rooted claims for Nvidia devices.
            +   * 
            + * + * + * .google.cloud.confidentialcomputing.v1.NvidiaAttestation nvidia_attestation = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.confidentialcomputing.v1.NvidiaAttestationOrBuilder + getNvidiaAttestationOrBuilder(); + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.TeeAttestationCase getTeeAttestationCase(); } diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto index a4b0a54281af..b9f0bbd5b9aa 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -192,6 +192,13 @@ message VerifyAttestationRequest { [(google.api.field_behavior) = OPTIONAL]; } + // An optional device attestation report. + oneof device_attestation { + // Optional. An Nvidia attestation report for GPU and NVSwitch devices. + NvidiaAttestation nvidia_attestation = 9 + [(google.api.field_behavior) = OPTIONAL]; + } + // Required. The name of the Challenge whose nonce was used to generate the // attestation, in the format `projects/*/locations/*/challenges/*`. The // provided Challenge will be consumed, and cannot be used again. @@ -223,6 +230,99 @@ message VerifyAttestationRequest { string attester = 8 [(google.api.field_behavior) = OPTIONAL]; } +// An Nvidia attestation report for GPU and NVSwitch devices. +// Contains necessary attestation evidence that the client collects for +// verification. +message NvidiaAttestation { + // GpuInfo contains the attestation evidence for a GPU device. + message GpuInfo { + // Optional. The UUID of the GPU device. + string uuid = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The driver version of the GPU. + string driver_version = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The vBIOS version of the GPU. + string vbios_version = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The GPU architecture type. + GpuArchitectureType gpu_architecture_type = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The raw attestation certificate chain for the GPU device. + bytes attestation_certificate_chain = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The raw attestation report for the GPU device. + // This field contains SPDM request/response defined in + // https://www.dmtf.org/sites/default/files/standards/documents/DSP0274_1.1.0.pdf + bytes attestation_report = 6 [(google.api.field_behavior) = OPTIONAL]; + } + + // SwitchInfo contains the attestation evidence for a NVSwitch device. + message SwitchInfo { + // Optional. The UUID of the NVSwitch device. + string uuid = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The raw attestation certificate chain for the NVSwitch device. + bytes attestation_certificate_chain = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The raw attestation report for the NvSwitch device. + // This field contains SPDM request/response defined in + // https://www.dmtf.org/sites/default/files/standards/documents/DSP0274_1.1.0.pdf + bytes attestation_report = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // Single GPU Passthrough (SPT) attestation. + message SinglePassthroughAttestation { + // Optional. Single GPU quote. + GpuInfo gpu_quote = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // Protected PCIe (PPCIE) attestation. + // Eight Hopper GPUs with Four NVSwitch Passthrough. + message ProtectedPcieAttestation { + // Optional. A list of GPU infos. + repeated GpuInfo gpu_quotes = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A list of SWITCH infos. + repeated SwitchInfo switch_quotes = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + + // MultiGpuSecurePassthroughAttestation contains the attestation evidence + // for a Multi-GPU Secure Passthrough (MPT) attestation. + message MultiGpuSecurePassthroughAttestation { + // Optional. A list of GPU quotes. + repeated GpuInfo gpu_quotes = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // GpuArchitectureType enumerates the supported GPU architecture types. + enum GpuArchitectureType { + // Unspecified GPU architecture type. + GPU_ARCHITECTURE_TYPE_UNSPECIFIED = 0; + + // Hopper GPU architecture type. + GPU_ARCHITECTURE_TYPE_HOPPER = 8; + + // Blackwell GPU architecture type. + GPU_ARCHITECTURE_TYPE_BLACKWELL = 10; + } + + // The Confidential Computing feature that the attestation is for. + oneof cc_feature { + // Single GPU Passthrough (SPT) attestation. + SinglePassthroughAttestation spt = 1; + + // Protected PCIe (PPCIE) attestation. + ProtectedPcieAttestation ppcie = 2; + + // Multi-GPU Secure Passthrough (MPT) attestation. + MultiGpuSecurePassthroughAttestation mpt = 3; + } +} + // A TDX Attestation quote. message TdxCcelAttestation { // Optional. The Confidential Computing Event Log (CCEL) ACPI table. Formatted @@ -474,6 +574,11 @@ message VerifyConfidentialSpaceRequest { // Optional. A collection of fields that modify the token output. ConfidentialSpaceOptions options = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An optional Nvidia attestation report, used to populate hardware + // rooted claims for Nvidia devices. + NvidiaAttestation nvidia_attestation = 8 + [(google.api.field_behavior) = OPTIONAL]; } // GceShieldedIdentity contains information about a Compute Engine instance. @@ -509,6 +614,22 @@ message VerifyConfidentialSpaceResponse { // needed for this service to verify Confidential GKE platform state of the // requestor. message VerifyConfidentialGkeRequest { + // Token options for Confidential GKE attestation. + message ConfidentialGkeOptions { + // Optional. Optional string to issue the token with a custom audience + // claim. Required if custom nonces are specified. + string audience = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional parameter to place one or more nonces in the eat_nonce + // claim in the output token. The minimum size for JSON-encoded EATs is 10 + // bytes and the maximum size is 74 bytes. + repeated string nonce = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional specification for how to sign the attestation token. + // Defaults to SIGNATURE_TYPE_OIDC if unspecified. + SignatureType signature_type = 4 [(google.api.field_behavior) = OPTIONAL]; + } + // Required. A tee attestation report, used to populate hardware rooted // claims. oneof tee_attestation { @@ -526,6 +647,9 @@ message VerifyConfidentialGkeRequest { type: "confidentialcomputing.googleapis.com/Challenge" } ]; + + // Optional. A collection of fields that modify the token output. + ConfidentialGkeOptions options = 3 [(google.api.field_behavior) = OPTIONAL]; } // VerifyConfidentialGkeResponse response is returened once a Confidential GKE diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/pom.xml b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/pom.xml index 3fae25e986ae..90a4a00e5d01 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/pom.xml +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-confidentialcomputing-v1alpha1 - 0.70.0-SNAPSHOT + 0.71.0 proto-google-cloud-confidentialcomputing-v1alpha1 Proto library for google-cloud-confidentialcomputing com.google.cloud google-cloud-confidentialcomputing-parent - 0.70.0-SNAPSHOT + 0.71.0 diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyconfidentialgke/AsyncVerifyConfidentialGke.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyconfidentialgke/AsyncVerifyConfidentialGke.java index c134944525a0..983ba5564f2b 100644 --- a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyconfidentialgke/AsyncVerifyConfidentialGke.java +++ b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyconfidentialgke/AsyncVerifyConfidentialGke.java @@ -40,6 +40,7 @@ public static void asyncVerifyConfidentialGke() throws Exception { VerifyConfidentialGkeRequest request = VerifyConfidentialGkeRequest.newBuilder() .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString()) + .setOptions(VerifyConfidentialGkeRequest.ConfidentialGkeOptions.newBuilder().build()) .build(); ApiFuture future = confidentialComputingClient.verifyConfidentialGkeCallable().futureCall(request); diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyconfidentialgke/SyncVerifyConfidentialGke.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyconfidentialgke/SyncVerifyConfidentialGke.java index 4a00216f87c5..c8c9c1721d0e 100644 --- a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyconfidentialgke/SyncVerifyConfidentialGke.java +++ b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyconfidentialgke/SyncVerifyConfidentialGke.java @@ -39,6 +39,7 @@ public static void syncVerifyConfidentialGke() throws Exception { VerifyConfidentialGkeRequest request = VerifyConfidentialGkeRequest.newBuilder() .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString()) + .setOptions(VerifyConfidentialGkeRequest.ConfidentialGkeOptions.newBuilder().build()) .build(); VerifyConfidentialGkeResponse response = confidentialComputingClient.verifyConfidentialGke(request); diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyconfidentialspace/AsyncVerifyConfidentialSpace.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyconfidentialspace/AsyncVerifyConfidentialSpace.java index 8cc80f909f3f..247c5250c71a 100644 --- a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyconfidentialspace/AsyncVerifyConfidentialSpace.java +++ b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyconfidentialspace/AsyncVerifyConfidentialSpace.java @@ -22,6 +22,7 @@ import com.google.cloud.confidentialcomputing.v1.ConfidentialComputingClient; import com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity; import com.google.cloud.confidentialcomputing.v1.GcpCredentials; +import com.google.cloud.confidentialcomputing.v1.NvidiaAttestation; import com.google.cloud.confidentialcomputing.v1.SignedEntity; import com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest; import com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse; @@ -49,6 +50,7 @@ public static void asyncVerifyConfidentialSpace() throws Exception { .setGceShieldedIdentity(GceShieldedIdentity.newBuilder().build()) .setOptions( VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions.newBuilder().build()) + .setNvidiaAttestation(NvidiaAttestation.newBuilder().build()) .build(); ApiFuture future = confidentialComputingClient.verifyConfidentialSpaceCallable().futureCall(request); diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyconfidentialspace/SyncVerifyConfidentialSpace.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyconfidentialspace/SyncVerifyConfidentialSpace.java index 5163fd44a67a..b552bf1712d7 100644 --- a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyconfidentialspace/SyncVerifyConfidentialSpace.java +++ b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyconfidentialspace/SyncVerifyConfidentialSpace.java @@ -21,6 +21,7 @@ import com.google.cloud.confidentialcomputing.v1.ConfidentialComputingClient; import com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity; import com.google.cloud.confidentialcomputing.v1.GcpCredentials; +import com.google.cloud.confidentialcomputing.v1.NvidiaAttestation; import com.google.cloud.confidentialcomputing.v1.SignedEntity; import com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest; import com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse; @@ -48,6 +49,7 @@ public static void syncVerifyConfidentialSpace() throws Exception { .setGceShieldedIdentity(GceShieldedIdentity.newBuilder().build()) .setOptions( VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions.newBuilder().build()) + .setNvidiaAttestation(NvidiaAttestation.newBuilder().build()) .build(); VerifyConfidentialSpaceResponse response = confidentialComputingClient.verifyConfidentialSpace(request); diff --git a/java-configdelivery/README.md b/java-configdelivery/README.md index 45d9ba387e73..e68d95a8680a 100644 --- a/java-configdelivery/README.md +++ b/java-configdelivery/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-configdelivery - 0.16.0 + 0.17.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-configdelivery:0.16.0' +implementation 'com.google.cloud:google-cloud-configdelivery:0.17.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-configdelivery" % "0.16.0" +libraryDependencies += "com.google.cloud" % "google-cloud-configdelivery" % "0.17.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-configdelivery/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-configdelivery.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-configdelivery/0.16.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-configdelivery/0.17.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-configdelivery/google-cloud-configdelivery-bom/pom.xml b/java-configdelivery/google-cloud-configdelivery-bom/pom.xml index db661fea3a40..ea5bd15ec5d3 100644 --- a/java-configdelivery/google-cloud-configdelivery-bom/pom.xml +++ b/java-configdelivery/google-cloud-configdelivery-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-configdelivery-bom - 0.18.0-SNAPSHOT + 0.19.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,27 +26,27 @@ com.google.cloud google-cloud-configdelivery - 0.18.0-SNAPSHOT + 0.19.0 com.google.api.grpc grpc-google-cloud-configdelivery-v1beta - 0.18.0-SNAPSHOT + 0.19.0 com.google.api.grpc grpc-google-cloud-configdelivery-v1 - 0.18.0-SNAPSHOT + 0.19.0 com.google.api.grpc proto-google-cloud-configdelivery-v1beta - 0.18.0-SNAPSHOT + 0.19.0 com.google.api.grpc proto-google-cloud-configdelivery-v1 - 0.18.0-SNAPSHOT + 0.19.0 diff --git a/java-configdelivery/google-cloud-configdelivery/pom.xml b/java-configdelivery/google-cloud-configdelivery/pom.xml index 65bce545dd89..e77730409d96 100644 --- a/java-configdelivery/google-cloud-configdelivery/pom.xml +++ b/java-configdelivery/google-cloud-configdelivery/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-configdelivery - 0.18.0-SNAPSHOT + 0.19.0 jar Google Config Delivery API Config Delivery API ConfigDelivery service manages the deployment of kubernetes configuration to a fleet of kubernetes clusters. com.google.cloud google-cloud-configdelivery-parent - 0.18.0-SNAPSHOT + 0.19.0 google-cloud-configdelivery diff --git a/java-configdelivery/grpc-google-cloud-configdelivery-v1/pom.xml b/java-configdelivery/grpc-google-cloud-configdelivery-v1/pom.xml index f572612a9f2d..e3d46eaacec2 100644 --- a/java-configdelivery/grpc-google-cloud-configdelivery-v1/pom.xml +++ b/java-configdelivery/grpc-google-cloud-configdelivery-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-configdelivery-v1 - 0.18.0-SNAPSHOT + 0.19.0 grpc-google-cloud-configdelivery-v1 GRPC library for google-cloud-configdelivery com.google.cloud google-cloud-configdelivery-parent - 0.18.0-SNAPSHOT + 0.19.0 diff --git a/java-configdelivery/grpc-google-cloud-configdelivery-v1beta/pom.xml b/java-configdelivery/grpc-google-cloud-configdelivery-v1beta/pom.xml index 0a90d5cbc2ce..72eb14424b46 100644 --- a/java-configdelivery/grpc-google-cloud-configdelivery-v1beta/pom.xml +++ b/java-configdelivery/grpc-google-cloud-configdelivery-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-configdelivery-v1beta - 0.18.0-SNAPSHOT + 0.19.0 grpc-google-cloud-configdelivery-v1beta GRPC library for google-cloud-configdelivery com.google.cloud google-cloud-configdelivery-parent - 0.18.0-SNAPSHOT + 0.19.0 diff --git a/java-configdelivery/pom.xml b/java-configdelivery/pom.xml index 27fcc8d8c24f..9393435e5020 100644 --- a/java-configdelivery/pom.xml +++ b/java-configdelivery/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-configdelivery-parent pom - 0.18.0-SNAPSHOT + 0.19.0 Google Config Delivery API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-configdelivery - 0.18.0-SNAPSHOT + 0.19.0 com.google.api.grpc proto-google-cloud-configdelivery-v1 - 0.18.0-SNAPSHOT + 0.19.0 com.google.api.grpc grpc-google-cloud-configdelivery-v1 - 0.18.0-SNAPSHOT + 0.19.0 com.google.api.grpc grpc-google-cloud-configdelivery-v1beta - 0.18.0-SNAPSHOT + 0.19.0 com.google.api.grpc proto-google-cloud-configdelivery-v1beta - 0.18.0-SNAPSHOT + 0.19.0 diff --git a/java-configdelivery/proto-google-cloud-configdelivery-v1/pom.xml b/java-configdelivery/proto-google-cloud-configdelivery-v1/pom.xml index 877ba585c4ba..86f4fed7cd4d 100644 --- a/java-configdelivery/proto-google-cloud-configdelivery-v1/pom.xml +++ b/java-configdelivery/proto-google-cloud-configdelivery-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-configdelivery-v1 - 0.18.0-SNAPSHOT + 0.19.0 proto-google-cloud-configdelivery-v1 Proto library for google-cloud-configdelivery com.google.cloud google-cloud-configdelivery-parent - 0.18.0-SNAPSHOT + 0.19.0 diff --git a/java-configdelivery/proto-google-cloud-configdelivery-v1beta/pom.xml b/java-configdelivery/proto-google-cloud-configdelivery-v1beta/pom.xml index a97664f5b04d..04e6997a390a 100644 --- a/java-configdelivery/proto-google-cloud-configdelivery-v1beta/pom.xml +++ b/java-configdelivery/proto-google-cloud-configdelivery-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-configdelivery-v1beta - 0.18.0-SNAPSHOT + 0.19.0 proto-google-cloud-configdelivery-v1beta Proto library for google-cloud-configdelivery com.google.cloud google-cloud-configdelivery-parent - 0.18.0-SNAPSHOT + 0.19.0 diff --git a/java-connectgateway/README.md b/java-connectgateway/README.md index c713d1843d88..ffccef375d6a 100644 --- a/java-connectgateway/README.md +++ b/java-connectgateway/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-connectgateway - 0.34.0 + 0.35.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-connectgateway:0.34.0' +implementation 'com.google.cloud:google-cloud-connectgateway:0.35.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-connectgateway" % "0.34.0" +libraryDependencies += "com.google.cloud" % "google-cloud-connectgateway" % "0.35.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-connectgateway/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-connectgateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-connectgateway/0.34.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-connectgateway/0.35.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-connectgateway/google-cloud-connectgateway-bom/pom.xml b/java-connectgateway/google-cloud-connectgateway-bom/pom.xml index a180da341e20..0926816e8df0 100644 --- a/java-connectgateway/google-cloud-connectgateway-bom/pom.xml +++ b/java-connectgateway/google-cloud-connectgateway-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-connectgateway-bom - 0.36.0-SNAPSHOT + 0.37.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,12 +26,12 @@ com.google.cloud google-cloud-connectgateway - 0.36.0-SNAPSHOT + 0.37.0 com.google.api.grpc proto-google-cloud-connectgateway-v1 - 0.36.0-SNAPSHOT + 0.37.0 diff --git a/java-connectgateway/google-cloud-connectgateway/pom.xml b/java-connectgateway/google-cloud-connectgateway/pom.xml index 58b61325ed9d..b5dab5e54b4b 100644 --- a/java-connectgateway/google-cloud-connectgateway/pom.xml +++ b/java-connectgateway/google-cloud-connectgateway/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-connectgateway - 0.36.0-SNAPSHOT + 0.37.0 jar Google Connect Gateway API Connect Gateway API The Connect Gateway service allows connectivity from external parties to connected Kubernetes clusters. com.google.cloud google-cloud-connectgateway-parent - 0.36.0-SNAPSHOT + 0.37.0 google-cloud-connectgateway diff --git a/java-connectgateway/pom.xml b/java-connectgateway/pom.xml index d38434e47c30..cdebf49b2e37 100644 --- a/java-connectgateway/pom.xml +++ b/java-connectgateway/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-connectgateway-parent pom - 0.36.0-SNAPSHOT + 0.37.0 Google Connect Gateway API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,12 +29,12 @@ com.google.cloud google-cloud-connectgateway - 0.36.0-SNAPSHOT + 0.37.0 com.google.api.grpc proto-google-cloud-connectgateway-v1 - 0.36.0-SNAPSHOT + 0.37.0 diff --git a/java-connectgateway/proto-google-cloud-connectgateway-v1/pom.xml b/java-connectgateway/proto-google-cloud-connectgateway-v1/pom.xml index c4e4c71e4b00..026326454976 100644 --- a/java-connectgateway/proto-google-cloud-connectgateway-v1/pom.xml +++ b/java-connectgateway/proto-google-cloud-connectgateway-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-connectgateway-v1 - 0.36.0-SNAPSHOT + 0.37.0 proto-google-cloud-connectgateway-v1 Proto library for google-cloud-connectgateway com.google.cloud google-cloud-connectgateway-parent - 0.36.0-SNAPSHOT + 0.37.0 diff --git a/java-contact-center-insights/README.md b/java-contact-center-insights/README.md index c09a2231e988..43849a9312e7 100644 --- a/java-contact-center-insights/README.md +++ b/java-contact-center-insights/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-contact-center-insights - 2.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-contact-center-insights:2.82.0' +implementation 'com.google.cloud:google-cloud-contact-center-insights:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contact-center-insights" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-contact-center-insights" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-contact-center-insights/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-contact-center-insights.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contact-center-insights/2.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contact-center-insights/2.83.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-contact-center-insights/google-cloud-contact-center-insights-bom/pom.xml b/java-contact-center-insights/google-cloud-contact-center-insights-bom/pom.xml index 3ad139a30771..a9e2e1c3db0a 100644 --- a/java-contact-center-insights/google-cloud-contact-center-insights-bom/pom.xml +++ b/java-contact-center-insights/google-cloud-contact-center-insights-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-contact-center-insights-bom - 2.84.0-SNAPSHOT + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-contact-center-insights - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc grpc-google-cloud-contact-center-insights-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc proto-google-cloud-contact-center-insights-v1 - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-contact-center-insights/google-cloud-contact-center-insights/pom.xml b/java-contact-center-insights/google-cloud-contact-center-insights/pom.xml index c073f14760ab..7c87115cfaef 100644 --- a/java-contact-center-insights/google-cloud-contact-center-insights/pom.xml +++ b/java-contact-center-insights/google-cloud-contact-center-insights/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-contact-center-insights - 2.84.0-SNAPSHOT + 2.85.0 jar Google CCAI Insights CCAI Insights helps users detect and visualize patterns in their contact center data. com.google.cloud google-cloud-contact-center-insights-parent - 2.84.0-SNAPSHOT + 2.85.0 google-cloud-contact-center-insights diff --git a/java-contact-center-insights/grpc-google-cloud-contact-center-insights-v1/pom.xml b/java-contact-center-insights/grpc-google-cloud-contact-center-insights-v1/pom.xml index a9e84d8d8023..f68a6f9930ea 100644 --- a/java-contact-center-insights/grpc-google-cloud-contact-center-insights-v1/pom.xml +++ b/java-contact-center-insights/grpc-google-cloud-contact-center-insights-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-contact-center-insights-v1 - 2.84.0-SNAPSHOT + 2.85.0 grpc-google-cloud-contact-center-insights-v1 GRPC library for google-cloud-contact-center-insights com.google.cloud google-cloud-contact-center-insights-parent - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-contact-center-insights/pom.xml b/java-contact-center-insights/pom.xml index 5373614e58fc..d43e05a4d48b 100644 --- a/java-contact-center-insights/pom.xml +++ b/java-contact-center-insights/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-contact-center-insights-parent pom - 2.84.0-SNAPSHOT + 2.85.0 Google CCAI Insights Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-contact-center-insights - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc grpc-google-cloud-contact-center-insights-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc proto-google-cloud-contact-center-insights-v1 - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/pom.xml b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/pom.xml index 1da95e0789be..ec7e440edfbc 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/pom.xml +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-contact-center-insights-v1 - 2.84.0-SNAPSHOT + 2.85.0 proto-google-cloud-contact-center-insights-v1 Proto library for google-cloud-contact-center-insights com.google.cloud google-cloud-contact-center-insights-parent - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-container/README.md b/java-container/README.md index 82930ea4af6c..b78af242f91e 100644 --- a/java-container/README.md +++ b/java-container/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-container - 2.85.0 + 2.86.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-container:2.85.0' +implementation 'com.google.cloud:google-cloud-container:2.86.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-container" % "2.85.0" +libraryDependencies += "com.google.cloud" % "google-cloud-container" % "2.86.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-container/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-container.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-container/2.85.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-container/2.86.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-container/google-cloud-container-bom/pom.xml b/java-container/google-cloud-container-bom/pom.xml index e9833c567598..93ed64a46cb4 100644 --- a/java-container/google-cloud-container-bom/pom.xml +++ b/java-container/google-cloud-container-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-container-bom - 2.87.0-SNAPSHOT + 2.88.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-container - 2.87.0-SNAPSHOT + 2.88.0 com.google.api.grpc grpc-google-cloud-container-v1 - 2.87.0-SNAPSHOT + 2.88.0 com.google.api.grpc grpc-google-cloud-container-v1beta1 - 2.87.0-SNAPSHOT + 2.88.0 com.google.api.grpc proto-google-cloud-container-v1 - 2.87.0-SNAPSHOT + 2.88.0 com.google.api.grpc proto-google-cloud-container-v1beta1 - 2.87.0-SNAPSHOT + 2.88.0 diff --git a/java-container/google-cloud-container/pom.xml b/java-container/google-cloud-container/pom.xml index cdfc1b3cf067..ab74f64a5d7b 100644 --- a/java-container/google-cloud-container/pom.xml +++ b/java-container/google-cloud-container/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-container - 2.87.0-SNAPSHOT + 2.88.0 jar Google Cloud Container Java idiomatic client for Google Cloud Container com.google.cloud google-cloud-container-parent - 2.87.0-SNAPSHOT + 2.88.0 google-cloud-container diff --git a/java-container/grpc-google-cloud-container-v1/pom.xml b/java-container/grpc-google-cloud-container-v1/pom.xml index 9a5958b1867d..fefac68ba232 100644 --- a/java-container/grpc-google-cloud-container-v1/pom.xml +++ b/java-container/grpc-google-cloud-container-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-container-v1 - 2.87.0-SNAPSHOT + 2.88.0 grpc-google-cloud-container-v1 GRPC library for grpc-google-cloud-container-v1 com.google.cloud google-cloud-container-parent - 2.87.0-SNAPSHOT + 2.88.0 diff --git a/java-container/grpc-google-cloud-container-v1beta1/pom.xml b/java-container/grpc-google-cloud-container-v1beta1/pom.xml index 7629efb22d6e..e9638678a120 100644 --- a/java-container/grpc-google-cloud-container-v1beta1/pom.xml +++ b/java-container/grpc-google-cloud-container-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-container-v1beta1 - 2.87.0-SNAPSHOT + 2.88.0 grpc-google-cloud-container-v1beta1 GRPC library for google-cloud-container com.google.cloud google-cloud-container-parent - 2.87.0-SNAPSHOT + 2.88.0 diff --git a/java-container/pom.xml b/java-container/pom.xml index 31d8f36ca4e4..1113b81ae796 100644 --- a/java-container/pom.xml +++ b/java-container/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-container-parent pom - 2.87.0-SNAPSHOT + 2.88.0 Google Cloud Container Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-container-v1 - 2.87.0-SNAPSHOT + 2.88.0 com.google.api.grpc proto-google-cloud-container-v1beta1 - 2.87.0-SNAPSHOT + 2.88.0 com.google.api.grpc grpc-google-cloud-container-v1beta1 - 2.87.0-SNAPSHOT + 2.88.0 com.google.api.grpc grpc-google-cloud-container-v1 - 2.87.0-SNAPSHOT + 2.88.0 com.google.cloud google-cloud-container - 2.87.0-SNAPSHOT + 2.88.0 diff --git a/java-container/proto-google-cloud-container-v1/pom.xml b/java-container/proto-google-cloud-container-v1/pom.xml index 92d7608bef05..6001c08d8834 100644 --- a/java-container/proto-google-cloud-container-v1/pom.xml +++ b/java-container/proto-google-cloud-container-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-container-v1 - 2.87.0-SNAPSHOT + 2.88.0 proto-google-cloud-container-v1 PROTO library for proto-google-cloud-container-v1 com.google.cloud google-cloud-container-parent - 2.87.0-SNAPSHOT + 2.88.0 diff --git a/java-container/proto-google-cloud-container-v1beta1/pom.xml b/java-container/proto-google-cloud-container-v1beta1/pom.xml index 0ccba17cf764..f201cededfc3 100644 --- a/java-container/proto-google-cloud-container-v1beta1/pom.xml +++ b/java-container/proto-google-cloud-container-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-container-v1beta1 - 2.87.0-SNAPSHOT + 2.88.0 proto-google-cloud-container-v1beta1 Proto library for google-cloud-container com.google.cloud google-cloud-container-parent - 2.87.0-SNAPSHOT + 2.88.0 diff --git a/java-containeranalysis/README.md b/java-containeranalysis/README.md index 812e81b5a225..a3bbeff70b19 100644 --- a/java-containeranalysis/README.md +++ b/java-containeranalysis/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-containeranalysis - 2.83.0 + 2.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-containeranalysis:2.83.0' +implementation 'com.google.cloud:google-cloud-containeranalysis:2.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "2.83.0" +libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "2.84.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-containeranalysis/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-containeranalysis.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-containeranalysis/2.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-containeranalysis/2.84.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-containeranalysis/google-cloud-containeranalysis-bom/pom.xml b/java-containeranalysis/google-cloud-containeranalysis-bom/pom.xml index 7e9118d4b3ee..f5d54d28569d 100644 --- a/java-containeranalysis/google-cloud-containeranalysis-bom/pom.xml +++ b/java-containeranalysis/google-cloud-containeranalysis-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-containeranalysis-bom - 2.85.0-SNAPSHOT + 2.86.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-containeranalysis - 2.85.0-SNAPSHOT + 2.86.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1beta1 - 0.175.0-SNAPSHOT + 0.176.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1 - 2.85.0-SNAPSHOT + 2.86.0 com.google.api.grpc proto-google-cloud-containeranalysis-v1 - 2.85.0-SNAPSHOT + 2.86.0 com.google.api.grpc proto-google-cloud-containeranalysis-v1beta1 - 0.175.0-SNAPSHOT + 0.176.0 diff --git a/java-containeranalysis/google-cloud-containeranalysis/pom.xml b/java-containeranalysis/google-cloud-containeranalysis/pom.xml index ba42b95f8353..eeddc4cc5a7a 100644 --- a/java-containeranalysis/google-cloud-containeranalysis/pom.xml +++ b/java-containeranalysis/google-cloud-containeranalysis/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-containeranalysis - 2.85.0-SNAPSHOT + 2.86.0 jar Google Cloud Container Analysis Java idiomatic client for Google Cloud Container Analysis com.google.cloud google-cloud-containeranalysis-parent - 2.85.0-SNAPSHOT + 2.86.0 google-cloud-containeranalysis diff --git a/java-containeranalysis/grpc-google-cloud-containeranalysis-v1/pom.xml b/java-containeranalysis/grpc-google-cloud-containeranalysis-v1/pom.xml index 0c100a615e67..5c07d4de770b 100644 --- a/java-containeranalysis/grpc-google-cloud-containeranalysis-v1/pom.xml +++ b/java-containeranalysis/grpc-google-cloud-containeranalysis-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1 - 2.85.0-SNAPSHOT + 2.86.0 grpc-google-cloud-containeranalysis-v1 GRPC library for grpc-google-cloud-containeranalysis-v1 com.google.cloud google-cloud-containeranalysis-parent - 2.85.0-SNAPSHOT + 2.86.0 diff --git a/java-containeranalysis/grpc-google-cloud-containeranalysis-v1beta1/pom.xml b/java-containeranalysis/grpc-google-cloud-containeranalysis-v1beta1/pom.xml index 020c55105b10..306298c58cea 100644 --- a/java-containeranalysis/grpc-google-cloud-containeranalysis-v1beta1/pom.xml +++ b/java-containeranalysis/grpc-google-cloud-containeranalysis-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1beta1 - 0.175.0-SNAPSHOT + 0.176.0 grpc-google-cloud-containeranalysis-v1beta1 GRPC library for grpc-google-cloud-containeranalysis-v1beta1 com.google.cloud google-cloud-containeranalysis-parent - 2.85.0-SNAPSHOT + 2.86.0 diff --git a/java-containeranalysis/pom.xml b/java-containeranalysis/pom.xml index 58a73e86ecfa..647dcd3ef455 100644 --- a/java-containeranalysis/pom.xml +++ b/java-containeranalysis/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-containeranalysis-parent pom - 2.85.0-SNAPSHOT + 2.86.0 Google Cloud Container Analysis Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,33 +29,33 @@ com.google.api.grpc proto-google-cloud-containeranalysis-v1 - 2.85.0-SNAPSHOT + 2.86.0 com.google.api.grpc proto-google-cloud-containeranalysis-v1beta1 - 0.175.0-SNAPSHOT + 0.176.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1beta1 - 0.175.0-SNAPSHOT + 0.176.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1 - 2.85.0-SNAPSHOT + 2.86.0 com.google.cloud google-cloud-containeranalysis - 2.85.0-SNAPSHOT + 2.86.0 io.grafeas grafeas - 2.85.0-SNAPSHOT + 2.86.0 diff --git a/java-containeranalysis/proto-google-cloud-containeranalysis-v1/pom.xml b/java-containeranalysis/proto-google-cloud-containeranalysis-v1/pom.xml index 83333cbf7f6d..0b5cbe59265a 100644 --- a/java-containeranalysis/proto-google-cloud-containeranalysis-v1/pom.xml +++ b/java-containeranalysis/proto-google-cloud-containeranalysis-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-containeranalysis-v1 - 2.85.0-SNAPSHOT + 2.86.0 proto-google-cloud-containeranalysis-v1 PROTO library for proto-google-cloud-containeranalysis-v1 com.google.cloud google-cloud-containeranalysis-parent - 2.85.0-SNAPSHOT + 2.86.0 diff --git a/java-containeranalysis/proto-google-cloud-containeranalysis-v1beta1/pom.xml b/java-containeranalysis/proto-google-cloud-containeranalysis-v1beta1/pom.xml index b7f69cb33aa4..3af04c7f3761 100644 --- a/java-containeranalysis/proto-google-cloud-containeranalysis-v1beta1/pom.xml +++ b/java-containeranalysis/proto-google-cloud-containeranalysis-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-containeranalysis-v1beta1 - 0.175.0-SNAPSHOT + 0.176.0 proto-google-cloud-containeranalysis-v1beta1 PROTO library for proto-google-cloud-containeranalysis-v1beta1 com.google.cloud google-cloud-containeranalysis-parent - 2.85.0-SNAPSHOT + 2.86.0 diff --git a/java-contentwarehouse/README.md b/java-contentwarehouse/README.md index 5a245da5f868..fa5049cc0e9b 100644 --- a/java-contentwarehouse/README.md +++ b/java-contentwarehouse/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-contentwarehouse - 0.78.0 + 0.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-contentwarehouse:0.78.0' +implementation 'com.google.cloud:google-cloud-contentwarehouse:0.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contentwarehouse" % "0.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-contentwarehouse" % "0.79.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-contentwarehouse/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-contentwarehouse.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contentwarehouse/0.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contentwarehouse/0.79.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-contentwarehouse/google-cloud-contentwarehouse-bom/pom.xml b/java-contentwarehouse/google-cloud-contentwarehouse-bom/pom.xml index 102d8e293ae0..c65077cee6fa 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse-bom/pom.xml +++ b/java-contentwarehouse/google-cloud-contentwarehouse-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-contentwarehouse-bom - 0.80.0-SNAPSHOT + 0.81.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-contentwarehouse - 0.80.0-SNAPSHOT + 0.81.0 com.google.api.grpc grpc-google-cloud-contentwarehouse-v1 - 0.80.0-SNAPSHOT + 0.81.0 com.google.api.grpc proto-google-cloud-contentwarehouse-v1 - 0.80.0-SNAPSHOT + 0.81.0 diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/pom.xml b/java-contentwarehouse/google-cloud-contentwarehouse/pom.xml index 7470412dc133..9fd5e0a40bbc 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/pom.xml +++ b/java-contentwarehouse/google-cloud-contentwarehouse/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-contentwarehouse - 0.80.0-SNAPSHOT + 0.81.0 jar Google Document AI Warehouse Document AI Warehouse Document AI Warehouse is an integrated cloud-native GCP platform to store, search, organize, govern and analyze documents and their structured metadata. com.google.cloud google-cloud-contentwarehouse-parent - 0.80.0-SNAPSHOT + 0.81.0 google-cloud-contentwarehouse diff --git a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/pom.xml b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/pom.xml index cf0f41e860d5..89662ca639bb 100644 --- a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/pom.xml +++ b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-contentwarehouse-v1 - 0.80.0-SNAPSHOT + 0.81.0 grpc-google-cloud-contentwarehouse-v1 GRPC library for google-cloud-contentwarehouse com.google.cloud google-cloud-contentwarehouse-parent - 0.80.0-SNAPSHOT + 0.81.0 diff --git a/java-contentwarehouse/pom.xml b/java-contentwarehouse/pom.xml index f0735ea23d8d..227c240fd9d9 100644 --- a/java-contentwarehouse/pom.xml +++ b/java-contentwarehouse/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-contentwarehouse-parent pom - 0.80.0-SNAPSHOT + 0.81.0 Google Document AI Warehouse Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-contentwarehouse - 0.80.0-SNAPSHOT + 0.81.0 com.google.api.grpc grpc-google-cloud-contentwarehouse-v1 - 0.80.0-SNAPSHOT + 0.81.0 com.google.api.grpc proto-google-cloud-contentwarehouse-v1 - 0.80.0-SNAPSHOT + 0.81.0 @@ -48,7 +48,7 @@ com.google.cloud google-cloud-document-ai - 2.88.0-SNAPSHOT + 2.89.0 diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/pom.xml b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/pom.xml index 6791a4ef4c87..75d6f1f0d2d8 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/pom.xml +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-contentwarehouse-v1 - 0.80.0-SNAPSHOT + 0.81.0 proto-google-cloud-contentwarehouse-v1 Proto library for google-cloud-contentwarehouse com.google.cloud google-cloud-contentwarehouse-parent - 0.80.0-SNAPSHOT + 0.81.0 diff --git a/java-data-fusion/README.md b/java-data-fusion/README.md index 305b1a1a6c38..2ef07d3a7bd8 100644 --- a/java-data-fusion/README.md +++ b/java-data-fusion/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-data-fusion - 1.82.0 + 1.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-data-fusion:1.82.0' +implementation 'com.google.cloud:google-cloud-data-fusion:1.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-data-fusion" % "1.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-data-fusion" % "1.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-data-fusion/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-data-fusion.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-data-fusion/1.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-data-fusion/1.83.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-data-fusion/google-cloud-data-fusion-bom/pom.xml b/java-data-fusion/google-cloud-data-fusion-bom/pom.xml index 330b02ccd547..26f5220af7d6 100644 --- a/java-data-fusion/google-cloud-data-fusion-bom/pom.xml +++ b/java-data-fusion/google-cloud-data-fusion-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-data-fusion-bom - 1.84.0-SNAPSHOT + 1.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-data-fusion - 1.84.0-SNAPSHOT + 1.85.0 com.google.api.grpc grpc-google-cloud-data-fusion-v1beta1 - 0.88.0-SNAPSHOT + 0.89.0 com.google.api.grpc grpc-google-cloud-data-fusion-v1 - 1.84.0-SNAPSHOT + 1.85.0 com.google.api.grpc proto-google-cloud-data-fusion-v1beta1 - 0.88.0-SNAPSHOT + 0.89.0 com.google.api.grpc proto-google-cloud-data-fusion-v1 - 1.84.0-SNAPSHOT + 1.85.0 diff --git a/java-data-fusion/google-cloud-data-fusion/pom.xml b/java-data-fusion/google-cloud-data-fusion/pom.xml index 002410800cd1..505fe88b21bb 100644 --- a/java-data-fusion/google-cloud-data-fusion/pom.xml +++ b/java-data-fusion/google-cloud-data-fusion/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-data-fusion - 1.84.0-SNAPSHOT + 1.85.0 jar Google Cloud Data Fusion Cloud Data Fusion is a fully managed, cloud-native, enterprise data integration service for quickly building and managing data pipelines. com.google.cloud google-cloud-data-fusion-parent - 1.84.0-SNAPSHOT + 1.85.0 google-cloud-data-fusion diff --git a/java-data-fusion/grpc-google-cloud-data-fusion-v1/pom.xml b/java-data-fusion/grpc-google-cloud-data-fusion-v1/pom.xml index a105abb169f1..e843a672dfab 100644 --- a/java-data-fusion/grpc-google-cloud-data-fusion-v1/pom.xml +++ b/java-data-fusion/grpc-google-cloud-data-fusion-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-data-fusion-v1 - 1.84.0-SNAPSHOT + 1.85.0 grpc-google-cloud-data-fusion-v1 GRPC library for google-cloud-data-fusion com.google.cloud google-cloud-data-fusion-parent - 1.84.0-SNAPSHOT + 1.85.0 diff --git a/java-data-fusion/grpc-google-cloud-data-fusion-v1beta1/pom.xml b/java-data-fusion/grpc-google-cloud-data-fusion-v1beta1/pom.xml index 7c5486b664f2..b734cefd8c99 100644 --- a/java-data-fusion/grpc-google-cloud-data-fusion-v1beta1/pom.xml +++ b/java-data-fusion/grpc-google-cloud-data-fusion-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-data-fusion-v1beta1 - 0.88.0-SNAPSHOT + 0.89.0 grpc-google-cloud-data-fusion-v1beta1 GRPC library for google-cloud-data-fusion com.google.cloud google-cloud-data-fusion-parent - 1.84.0-SNAPSHOT + 1.85.0 diff --git a/java-data-fusion/pom.xml b/java-data-fusion/pom.xml index f1c577ea21e6..4a8c184eb702 100644 --- a/java-data-fusion/pom.xml +++ b/java-data-fusion/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-data-fusion-parent pom - 1.84.0-SNAPSHOT + 1.85.0 Google Cloud Data Fusion Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-data-fusion - 1.84.0-SNAPSHOT + 1.85.0 com.google.api.grpc grpc-google-cloud-data-fusion-v1beta1 - 0.88.0-SNAPSHOT + 0.89.0 com.google.api.grpc grpc-google-cloud-data-fusion-v1 - 1.84.0-SNAPSHOT + 1.85.0 com.google.api.grpc proto-google-cloud-data-fusion-v1beta1 - 0.88.0-SNAPSHOT + 0.89.0 com.google.api.grpc proto-google-cloud-data-fusion-v1 - 1.84.0-SNAPSHOT + 1.85.0 diff --git a/java-data-fusion/proto-google-cloud-data-fusion-v1/pom.xml b/java-data-fusion/proto-google-cloud-data-fusion-v1/pom.xml index 0adc97e2f88d..e861fa51f0e8 100644 --- a/java-data-fusion/proto-google-cloud-data-fusion-v1/pom.xml +++ b/java-data-fusion/proto-google-cloud-data-fusion-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-data-fusion-v1 - 1.84.0-SNAPSHOT + 1.85.0 proto-google-cloud-data-fusion-v1 Proto library for google-cloud-data-fusion com.google.cloud google-cloud-data-fusion-parent - 1.84.0-SNAPSHOT + 1.85.0 diff --git a/java-data-fusion/proto-google-cloud-data-fusion-v1beta1/pom.xml b/java-data-fusion/proto-google-cloud-data-fusion-v1beta1/pom.xml index c701ba3588dd..34b83c4a67bf 100644 --- a/java-data-fusion/proto-google-cloud-data-fusion-v1beta1/pom.xml +++ b/java-data-fusion/proto-google-cloud-data-fusion-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-data-fusion-v1beta1 - 0.88.0-SNAPSHOT + 0.89.0 proto-google-cloud-data-fusion-v1beta1 Proto library for google-cloud-data-fusion com.google.cloud google-cloud-data-fusion-parent - 1.84.0-SNAPSHOT + 1.85.0 diff --git a/java-databasecenter/README.md b/java-databasecenter/README.md index 9763f5e83093..64c623fe59c4 100644 --- a/java-databasecenter/README.md +++ b/java-databasecenter/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-databasecenter - 0.3.0 + 0.5.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-databasecenter:0.3.0' +implementation 'com.google.cloud:google-cloud-databasecenter:0.5.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-databasecenter" % "0.3.0" +libraryDependencies += "com.google.cloud" % "google-cloud-databasecenter" % "0.5.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-databasecenter/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-databasecenter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-databasecenter/0.3.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-databasecenter/0.5.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-databasecenter/google-cloud-databasecenter-bom/pom.xml b/java-databasecenter/google-cloud-databasecenter-bom/pom.xml index e057eb69b3d3..4029ab185215 100644 --- a/java-databasecenter/google-cloud-databasecenter-bom/pom.xml +++ b/java-databasecenter/google-cloud-databasecenter-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-databasecenter-bom - 0.5.0-SNAPSHOT + 0.6.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-databasecenter - 0.5.0-SNAPSHOT + 0.6.0 com.google.api.grpc grpc-google-cloud-databasecenter-v1beta - 0.5.0-SNAPSHOT + 0.6.0 com.google.api.grpc proto-google-cloud-databasecenter-v1beta - 0.5.0-SNAPSHOT + 0.6.0 diff --git a/java-databasecenter/google-cloud-databasecenter/pom.xml b/java-databasecenter/google-cloud-databasecenter/pom.xml index 2dc39d54d277..5acb5bd00e2c 100644 --- a/java-databasecenter/google-cloud-databasecenter/pom.xml +++ b/java-databasecenter/google-cloud-databasecenter/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-databasecenter - 0.5.0-SNAPSHOT + 0.6.0 jar Google Database Center API Database Center API Database Center provides an organization-wide, cross-product fleet health platform to eliminate the overhead, complexity, and risk associated with aggregating and summarizing health signals through custom dashboards. Through Database Center’s fleet health dashboard and API, database platform teams that are responsible for reliability, compliance, security, cost, and administration of database fleets will now have a single pane of glass that pinpoints issues relevant to each team. com.google.cloud google-cloud-databasecenter-parent - 0.5.0-SNAPSHOT + 0.6.0 google-cloud-databasecenter diff --git a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterClient.java b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterClient.java index ff017431ebae..fa163fe5c960 100644 --- a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterClient.java +++ b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterClient.java @@ -127,6 +127,25 @@ *
          * * + * + *

          QueryIssues + *

          QueryIssues provides a list of issues and recommendations that a user has access to and that are within the requested scope. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • queryIssues(QueryIssuesRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • queryIssues(String parent) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • queryIssuesPagedCallable() + *

          • queryIssuesCallable() + *

          + * + * * * *

          See the individual methods for example code. @@ -640,6 +659,159 @@ public final AggregateIssueStatsResponse aggregateIssueStats(AggregateIssueStats return stub.aggregateIssueStatsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * QueryIssues provides a list of issues and recommendations that a user has access to and that + * are within the requested scope. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DatabaseCenterClient databaseCenterClient = DatabaseCenterClient.create()) {
          +   *   String parent = "parent-995424086";
          +   *   for (DatabaseResourceIssue element : databaseCenterClient.queryIssues(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. Parent can be a project, a folder, or an organization. The list is + * limited to the one attached to resources within the `scope` that a user has access to. + *

          The allowed values are: + *

            + *
          • projects/{PROJECT_ID} (e.g., "projects/foo-bar") + *
          • projects/{PROJECT_NUMBER} (e.g., "projects/12345678") + *
          • folders/{FOLDER_NUMBER} (e.g., "folders/1234567") + *
          • organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + *
          + * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final QueryIssuesPagedResponse queryIssues(String parent) { + QueryIssuesRequest request = QueryIssuesRequest.newBuilder().setParent(parent).build(); + return queryIssues(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * QueryIssues provides a list of issues and recommendations that a user has access to and that + * are within the requested scope. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DatabaseCenterClient databaseCenterClient = DatabaseCenterClient.create()) {
          +   *   QueryIssuesRequest request =
          +   *       QueryIssuesRequest.newBuilder()
          +   *           .setParent("parent-995424086")
          +   *           .setFilter("filter-1274492040")
          +   *           .addAllSignalProductsFilters(new ArrayList())
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .build();
          +   *   for (DatabaseResourceIssue element : databaseCenterClient.queryIssues(request).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final QueryIssuesPagedResponse queryIssues(QueryIssuesRequest request) { + return queryIssuesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * QueryIssues provides a list of issues and recommendations that a user has access to and that + * are within the requested scope. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DatabaseCenterClient databaseCenterClient = DatabaseCenterClient.create()) {
          +   *   QueryIssuesRequest request =
          +   *       QueryIssuesRequest.newBuilder()
          +   *           .setParent("parent-995424086")
          +   *           .setFilter("filter-1274492040")
          +   *           .addAllSignalProductsFilters(new ArrayList())
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       databaseCenterClient.queryIssuesPagedCallable().futureCall(request);
          +   *   // Do something.
          +   *   for (DatabaseResourceIssue element : future.get().iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable + queryIssuesPagedCallable() { + return stub.queryIssuesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * QueryIssues provides a list of issues and recommendations that a user has access to and that + * are within the requested scope. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DatabaseCenterClient databaseCenterClient = DatabaseCenterClient.create()) {
          +   *   QueryIssuesRequest request =
          +   *       QueryIssuesRequest.newBuilder()
          +   *           .setParent("parent-995424086")
          +   *           .setFilter("filter-1274492040")
          +   *           .addAllSignalProductsFilters(new ArrayList())
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .build();
          +   *   while (true) {
          +   *     QueryIssuesResponse response = databaseCenterClient.queryIssuesCallable().call(request);
          +   *     for (DatabaseResourceIssue element : response.getResourceIssuesList()) {
          +   *       // doThingsWith(element);
          +   *     }
          +   *     String nextPageToken = response.getNextPageToken();
          +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
          +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
          +   *     } else {
          +   *       break;
          +   *     }
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable queryIssuesCallable() { + return stub.queryIssuesCallable(); + } + @Override public final void close() { stub.close(); @@ -918,4 +1090,78 @@ protected QueryDatabaseResourceGroupsFixedSizeCollection createCollection( return new QueryDatabaseResourceGroupsFixedSizeCollection(pages, collectionSize); } } + + public static class QueryIssuesPagedResponse + extends AbstractPagedListResponse< + QueryIssuesRequest, + QueryIssuesResponse, + DatabaseResourceIssue, + QueryIssuesPage, + QueryIssuesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + QueryIssuesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new QueryIssuesPagedResponse(input), MoreExecutors.directExecutor()); + } + + private QueryIssuesPagedResponse(QueryIssuesPage page) { + super(page, QueryIssuesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class QueryIssuesPage + extends AbstractPage< + QueryIssuesRequest, QueryIssuesResponse, DatabaseResourceIssue, QueryIssuesPage> { + + private QueryIssuesPage( + PageContext context, + QueryIssuesResponse response) { + super(context, response); + } + + private static QueryIssuesPage createEmptyPage() { + return new QueryIssuesPage(null, null); + } + + @Override + protected QueryIssuesPage createPage( + PageContext context, + QueryIssuesResponse response) { + return new QueryIssuesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class QueryIssuesFixedSizeCollection + extends AbstractFixedSizeCollection< + QueryIssuesRequest, + QueryIssuesResponse, + DatabaseResourceIssue, + QueryIssuesPage, + QueryIssuesFixedSizeCollection> { + + private QueryIssuesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static QueryIssuesFixedSizeCollection createEmptyCollection() { + return new QueryIssuesFixedSizeCollection(null, 0); + } + + @Override + protected QueryIssuesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new QueryIssuesFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterSettings.java b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterSettings.java index 945176936a56..6402a6f988d4 100644 --- a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterSettings.java +++ b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterSettings.java @@ -18,6 +18,7 @@ import static com.google.cloud.databasecenter.v1beta.DatabaseCenterClient.AggregateFleetPagedResponse; import static com.google.cloud.databasecenter.v1beta.DatabaseCenterClient.QueryDatabaseResourceGroupsPagedResponse; +import static com.google.cloud.databasecenter.v1beta.DatabaseCenterClient.QueryIssuesPagedResponse; import static com.google.cloud.databasecenter.v1beta.DatabaseCenterClient.QueryProductsPagedResponse; import com.google.api.core.ApiFunction; @@ -120,6 +121,12 @@ public class DatabaseCenterSettings extends ClientSettings + queryIssuesSettings() { + return ((DatabaseCenterStubSettings) getStubSettings()).queryIssuesSettings(); + } + public static final DatabaseCenterSettings create(DatabaseCenterStubSettings stub) throws IOException { return new DatabaseCenterSettings.Builder(stub.toBuilder()).build(); @@ -261,6 +268,13 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().aggregateIssueStatsSettings(); } + /** Returns the builder for the settings used for calls to queryIssues. */ + public PagedCallSettings.Builder< + QueryIssuesRequest, QueryIssuesResponse, QueryIssuesPagedResponse> + queryIssuesSettings() { + return getStubSettingsBuilder().queryIssuesSettings(); + } + @Override public DatabaseCenterSettings build() throws IOException { return new DatabaseCenterSettings(this); diff --git a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/gapic_metadata.json b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/gapic_metadata.json index c45ba2664465..8537e34b5bcb 100644 --- a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/gapic_metadata.json +++ b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/gapic_metadata.json @@ -19,6 +19,9 @@ "QueryDatabaseResourceGroups": { "methods": ["queryDatabaseResourceGroups", "queryDatabaseResourceGroupsPagedCallable", "queryDatabaseResourceGroupsCallable"] }, + "QueryIssues": { + "methods": ["queryIssues", "queryIssues", "queryIssuesPagedCallable", "queryIssuesCallable"] + }, "QueryProducts": { "methods": ["queryProducts", "queryProductsPagedCallable", "queryProductsCallable"] } diff --git a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/DatabaseCenterStub.java b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/DatabaseCenterStub.java index 1ac02449f7de..0ef76840805e 100644 --- a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/DatabaseCenterStub.java +++ b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/DatabaseCenterStub.java @@ -18,6 +18,7 @@ import static com.google.cloud.databasecenter.v1beta.DatabaseCenterClient.AggregateFleetPagedResponse; import static com.google.cloud.databasecenter.v1beta.DatabaseCenterClient.QueryDatabaseResourceGroupsPagedResponse; +import static com.google.cloud.databasecenter.v1beta.DatabaseCenterClient.QueryIssuesPagedResponse; import static com.google.cloud.databasecenter.v1beta.DatabaseCenterClient.QueryProductsPagedResponse; import com.google.api.core.BetaApi; @@ -29,6 +30,8 @@ import com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse; import com.google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsRequest; import com.google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsResponse; +import com.google.cloud.databasecenter.v1beta.QueryIssuesRequest; +import com.google.cloud.databasecenter.v1beta.QueryIssuesResponse; import com.google.cloud.databasecenter.v1beta.QueryProductsRequest; import com.google.cloud.databasecenter.v1beta.QueryProductsResponse; import javax.annotation.Generated; @@ -78,6 +81,14 @@ public UnaryCallable aggregateFle throw new UnsupportedOperationException("Not implemented: aggregateIssueStatsCallable()"); } + public UnaryCallable queryIssuesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: queryIssuesPagedCallable()"); + } + + public UnaryCallable queryIssuesCallable() { + throw new UnsupportedOperationException("Not implemented: queryIssuesCallable()"); + } + @Override public abstract void close(); } diff --git a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/DatabaseCenterStubSettings.java b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/DatabaseCenterStubSettings.java index c6f6a4f56365..6596502dae3b 100644 --- a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/DatabaseCenterStubSettings.java +++ b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/DatabaseCenterStubSettings.java @@ -18,6 +18,7 @@ import static com.google.cloud.databasecenter.v1beta.DatabaseCenterClient.AggregateFleetPagedResponse; import static com.google.cloud.databasecenter.v1beta.DatabaseCenterClient.QueryDatabaseResourceGroupsPagedResponse; +import static com.google.cloud.databasecenter.v1beta.DatabaseCenterClient.QueryIssuesPagedResponse; import static com.google.cloud.databasecenter.v1beta.DatabaseCenterClient.QueryProductsPagedResponse; import com.google.api.core.ApiFunction; @@ -52,9 +53,12 @@ import com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest; import com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse; import com.google.cloud.databasecenter.v1beta.DatabaseResourceGroup; +import com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue; import com.google.cloud.databasecenter.v1beta.Product; import com.google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsRequest; import com.google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsResponse; +import com.google.cloud.databasecenter.v1beta.QueryIssuesRequest; +import com.google.cloud.databasecenter.v1beta.QueryIssuesResponse; import com.google.cloud.databasecenter.v1beta.QueryProductsRequest; import com.google.cloud.databasecenter.v1beta.QueryProductsResponse; import com.google.common.collect.ImmutableList; @@ -136,6 +140,8 @@ public class DatabaseCenterStubSettings extends StubSettings aggregateIssueStatsSettings; + private final PagedCallSettings + queryIssuesSettings; private static final PagedListDescriptor QUERY_PRODUCTS_PAGE_STR_DESC = @@ -255,6 +261,42 @@ public Iterable extractResources( } }; + private static final PagedListDescriptor< + QueryIssuesRequest, QueryIssuesResponse, DatabaseResourceIssue> + QUERY_ISSUES_PAGE_STR_DESC = + new PagedListDescriptor< + QueryIssuesRequest, QueryIssuesResponse, DatabaseResourceIssue>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public QueryIssuesRequest injectToken(QueryIssuesRequest payload, String token) { + return QueryIssuesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public QueryIssuesRequest injectPageSize(QueryIssuesRequest payload, int pageSize) { + return QueryIssuesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(QueryIssuesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(QueryIssuesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(QueryIssuesResponse payload) { + return payload.getResourceIssuesList(); + } + }; + private static final PagedListResponseFactory< QueryProductsRequest, QueryProductsResponse, QueryProductsPagedResponse> QUERY_PRODUCTS_PAGE_STR_FACT = @@ -319,6 +361,24 @@ public ApiFuture getFuturePagedRespons } }; + private static final PagedListResponseFactory< + QueryIssuesRequest, QueryIssuesResponse, QueryIssuesPagedResponse> + QUERY_ISSUES_PAGE_STR_FACT = + new PagedListResponseFactory< + QueryIssuesRequest, QueryIssuesResponse, QueryIssuesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + QueryIssuesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create(callable, QUERY_ISSUES_PAGE_STR_DESC, request, context); + return QueryIssuesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + /** Returns the object with the settings used for calls to queryProducts. */ public PagedCallSettings queryProductsSettings() { @@ -347,6 +407,12 @@ public ApiFuture getFuturePagedRespons return aggregateIssueStatsSettings; } + /** Returns the object with the settings used for calls to queryIssues. */ + public PagedCallSettings + queryIssuesSettings() { + return queryIssuesSettings; + } + public DatabaseCenterStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -463,6 +529,7 @@ protected DatabaseCenterStubSettings(Builder settingsBuilder) throws IOException queryDatabaseResourceGroupsSettings = settingsBuilder.queryDatabaseResourceGroupsSettings().build(); aggregateIssueStatsSettings = settingsBuilder.aggregateIssueStatsSettings().build(); + queryIssuesSettings = settingsBuilder.queryIssuesSettings().build(); } /** Builder for DatabaseCenterStubSettings. */ @@ -481,6 +548,9 @@ public static class Builder extends StubSettings.Builder aggregateIssueStatsSettings; + private final PagedCallSettings.Builder< + QueryIssuesRequest, QueryIssuesResponse, QueryIssuesPagedResponse> + queryIssuesSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -513,13 +583,15 @@ protected Builder(ClientContext clientContext) { queryDatabaseResourceGroupsSettings = PagedCallSettings.newBuilder(QUERY_DATABASE_RESOURCE_GROUPS_PAGE_STR_FACT); aggregateIssueStatsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + queryIssuesSettings = PagedCallSettings.newBuilder(QUERY_ISSUES_PAGE_STR_FACT); unaryMethodSettingsBuilders = ImmutableList.>of( queryProductsSettings, aggregateFleetSettings, queryDatabaseResourceGroupsSettings, - aggregateIssueStatsSettings); + aggregateIssueStatsSettings, + queryIssuesSettings); initDefaults(this); } @@ -531,13 +603,15 @@ protected Builder(DatabaseCenterStubSettings settings) { queryDatabaseResourceGroupsSettings = settings.queryDatabaseResourceGroupsSettings.toBuilder(); aggregateIssueStatsSettings = settings.aggregateIssueStatsSettings.toBuilder(); + queryIssuesSettings = settings.queryIssuesSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( queryProductsSettings, aggregateFleetSettings, queryDatabaseResourceGroupsSettings, - aggregateIssueStatsSettings); + aggregateIssueStatsSettings, + queryIssuesSettings); } private static Builder createDefault() { @@ -585,6 +659,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .queryIssuesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + return builder; } @@ -632,6 +711,13 @@ public Builder applyToAllUnaryMethods( return aggregateIssueStatsSettings; } + /** Returns the builder for the settings used for calls to queryIssues. */ + public PagedCallSettings.Builder< + QueryIssuesRequest, QueryIssuesResponse, QueryIssuesPagedResponse> + queryIssuesSettings() { + return queryIssuesSettings; + } + @Override public DatabaseCenterStubSettings build() throws IOException { return new DatabaseCenterStubSettings(this); diff --git a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/GrpcDatabaseCenterStub.java b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/GrpcDatabaseCenterStub.java index 0d95c8cebd38..51c505da21df 100644 --- a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/GrpcDatabaseCenterStub.java +++ b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/GrpcDatabaseCenterStub.java @@ -18,6 +18,7 @@ import static com.google.cloud.databasecenter.v1beta.DatabaseCenterClient.AggregateFleetPagedResponse; import static com.google.cloud.databasecenter.v1beta.DatabaseCenterClient.QueryDatabaseResourceGroupsPagedResponse; +import static com.google.cloud.databasecenter.v1beta.DatabaseCenterClient.QueryIssuesPagedResponse; import static com.google.cloud.databasecenter.v1beta.DatabaseCenterClient.QueryProductsPagedResponse; import com.google.api.core.BetaApi; @@ -33,6 +34,8 @@ import com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse; import com.google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsRequest; import com.google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsResponse; +import com.google.cloud.databasecenter.v1beta.QueryIssuesRequest; +import com.google.cloud.databasecenter.v1beta.QueryIssuesResponse; import com.google.cloud.databasecenter.v1beta.QueryProductsRequest; import com.google.cloud.databasecenter.v1beta.QueryProductsResponse; import com.google.longrunning.stub.GrpcOperationsStub; @@ -103,6 +106,17 @@ public class GrpcDatabaseCenterStub extends DatabaseCenterStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + queryIssuesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.databasecenter.v1beta.DatabaseCenter/QueryIssues") + .setRequestMarshaller(ProtoUtils.marshaller(QueryIssuesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(QueryIssuesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private final UnaryCallable queryProductsCallable; private final UnaryCallable queryProductsPagedCallable; @@ -117,6 +131,9 @@ public class GrpcDatabaseCenterStub extends DatabaseCenterStub { queryDatabaseResourceGroupsPagedCallable; private final UnaryCallable aggregateIssueStatsCallable; + private final UnaryCallable queryIssuesCallable; + private final UnaryCallable + queryIssuesPagedCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -183,6 +200,10 @@ protected GrpcDatabaseCenterStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(aggregateIssueStatsMethodDescriptor) .build(); + GrpcCallSettings queryIssuesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(queryIssuesMethodDescriptor) + .build(); this.queryProductsCallable = callableFactory.createUnaryCallable( @@ -211,6 +232,12 @@ protected GrpcDatabaseCenterStub( aggregateIssueStatsTransportSettings, settings.aggregateIssueStatsSettings(), clientContext); + this.queryIssuesCallable = + callableFactory.createUnaryCallable( + queryIssuesTransportSettings, settings.queryIssuesSettings(), clientContext); + this.queryIssuesPagedCallable = + callableFactory.createPagedCallable( + queryIssuesTransportSettings, settings.queryIssuesSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -260,6 +287,16 @@ public UnaryCallable aggregateFle return aggregateIssueStatsCallable; } + @Override + public UnaryCallable queryIssuesCallable() { + return queryIssuesCallable; + } + + @Override + public UnaryCallable queryIssuesPagedCallable() { + return queryIssuesPagedCallable; + } + @Override public final void close() { try { diff --git a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/HttpJsonDatabaseCenterStub.java b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/HttpJsonDatabaseCenterStub.java index aa4648a6d4f0..8e8111d799cc 100644 --- a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/HttpJsonDatabaseCenterStub.java +++ b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/HttpJsonDatabaseCenterStub.java @@ -18,6 +18,7 @@ import static com.google.cloud.databasecenter.v1beta.DatabaseCenterClient.AggregateFleetPagedResponse; import static com.google.cloud.databasecenter.v1beta.DatabaseCenterClient.QueryDatabaseResourceGroupsPagedResponse; +import static com.google.cloud.databasecenter.v1beta.DatabaseCenterClient.QueryIssuesPagedResponse; import static com.google.cloud.databasecenter.v1beta.DatabaseCenterClient.QueryProductsPagedResponse; import com.google.api.core.BetaApi; @@ -38,6 +39,8 @@ import com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse; import com.google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsRequest; import com.google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsResponse; +import com.google.cloud.databasecenter.v1beta.QueryIssuesRequest; +import com.google.cloud.databasecenter.v1beta.QueryIssuesResponse; import com.google.cloud.databasecenter.v1beta.QueryProductsRequest; import com.google.cloud.databasecenter.v1beta.QueryProductsResponse; import com.google.protobuf.TypeRegistry; @@ -215,6 +218,42 @@ public class HttpJsonDatabaseCenterStub extends DatabaseCenterStub { .build()) .build(); + private static final ApiMethodDescriptor + queryIssuesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.databasecenter.v1beta.DatabaseCenter/QueryIssues") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta:queryIssues", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(QueryIssuesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private final UnaryCallable queryProductsCallable; private final UnaryCallable queryProductsPagedCallable; @@ -229,6 +268,9 @@ public class HttpJsonDatabaseCenterStub extends DatabaseCenterStub { queryDatabaseResourceGroupsPagedCallable; private final UnaryCallable aggregateIssueStatsCallable; + private final UnaryCallable queryIssuesCallable; + private final UnaryCallable + queryIssuesPagedCallable; private final BackgroundResource backgroundResources; private final HttpJsonStubCallableFactory callableFactory; @@ -299,6 +341,11 @@ protected HttpJsonDatabaseCenterStub( .setMethodDescriptor(aggregateIssueStatsMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings queryIssuesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(queryIssuesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); this.queryProductsCallable = callableFactory.createUnaryCallable( @@ -327,6 +374,12 @@ protected HttpJsonDatabaseCenterStub( aggregateIssueStatsTransportSettings, settings.aggregateIssueStatsSettings(), clientContext); + this.queryIssuesCallable = + callableFactory.createUnaryCallable( + queryIssuesTransportSettings, settings.queryIssuesSettings(), clientContext); + this.queryIssuesPagedCallable = + callableFactory.createPagedCallable( + queryIssuesTransportSettings, settings.queryIssuesSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -339,6 +392,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(aggregateFleetMethodDescriptor); methodDescriptors.add(queryDatabaseResourceGroupsMethodDescriptor); methodDescriptors.add(aggregateIssueStatsMethodDescriptor); + methodDescriptors.add(queryIssuesMethodDescriptor); return methodDescriptors; } @@ -382,6 +436,16 @@ public UnaryCallable aggregateFle return aggregateIssueStatsCallable; } + @Override + public UnaryCallable queryIssuesCallable() { + return queryIssuesCallable; + } + + @Override + public UnaryCallable queryIssuesPagedCallable() { + return queryIssuesPagedCallable; + } + @Override public final void close() { try { diff --git a/java-databasecenter/google-cloud-databasecenter/src/main/resources/META-INF/native-image/com.google.cloud.databasecenter.v1beta/reflect-config.json b/java-databasecenter/google-cloud-databasecenter/src/main/resources/META-INF/native-image/com.google.cloud.databasecenter.v1beta/reflect-config.json index 8b3c0d698a4d..3068f91cfec4 100644 --- a/java-databasecenter/google-cloud-databasecenter/src/main/resources/META-INF/native-image/com.google.cloud.databasecenter.v1beta/reflect-config.json +++ b/java-databasecenter/google-cloud-databasecenter/src/main/resources/META-INF/native-image/com.google.cloud.databasecenter.v1beta/reflect-config.json @@ -620,6 +620,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.databasecenter.v1beta.DeletionProtectionInfo", "queryAllDeclaredConstructors": true, @@ -989,6 +1007,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.databasecenter.v1beta.QueryIssuesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.databasecenter.v1beta.QueryIssuesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.databasecenter.v1beta.QueryIssuesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.databasecenter.v1beta.QueryIssuesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.databasecenter.v1beta.QueryProductsRequest", "queryAllDeclaredConstructors": true, @@ -1232,6 +1286,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.databasecenter.v1beta.SignalProductsFilters", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.databasecenter.v1beta.SignalProductsFilters$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.databasecenter.v1beta.SignalSource", "queryAllDeclaredConstructors": true, diff --git a/java-databasecenter/google-cloud-databasecenter/src/test/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterClientHttpJsonTest.java b/java-databasecenter/google-cloud-databasecenter/src/test/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterClientHttpJsonTest.java index 906a6e7d68b2..087b0f3758ee 100644 --- a/java-databasecenter/google-cloud-databasecenter/src/test/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterClientHttpJsonTest.java +++ b/java-databasecenter/google-cloud-databasecenter/src/test/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterClientHttpJsonTest.java @@ -18,6 +18,7 @@ import static com.google.cloud.databasecenter.v1beta.DatabaseCenterClient.AggregateFleetPagedResponse; import static com.google.cloud.databasecenter.v1beta.DatabaseCenterClient.QueryDatabaseResourceGroupsPagedResponse; +import static com.google.cloud.databasecenter.v1beta.DatabaseCenterClient.QueryIssuesPagedResponse; import static com.google.cloud.databasecenter.v1beta.DatabaseCenterClient.QueryProductsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; @@ -334,4 +335,54 @@ public void aggregateIssueStatsExceptionTest() throws Exception { // Expected exception. } } + + @Test + public void queryIssuesTest() throws Exception { + DatabaseResourceIssue responsesElement = DatabaseResourceIssue.newBuilder().build(); + QueryIssuesResponse expectedResponse = + QueryIssuesResponse.newBuilder() + .setNextPageToken("") + .addAllResourceIssues(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + QueryIssuesPagedResponse pagedListResponse = client.queryIssues(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getResourceIssuesList().get(0), resources.get(0)); + + 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 queryIssuesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "parent-995424086"; + client.queryIssues(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-databasecenter/google-cloud-databasecenter/src/test/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterClientTest.java b/java-databasecenter/google-cloud-databasecenter/src/test/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterClientTest.java index 002d66141ae3..d2037789d116 100644 --- a/java-databasecenter/google-cloud-databasecenter/src/test/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterClientTest.java +++ b/java-databasecenter/google-cloud-databasecenter/src/test/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterClientTest.java @@ -18,6 +18,7 @@ import static com.google.cloud.databasecenter.v1beta.DatabaseCenterClient.AggregateFleetPagedResponse; import static com.google.cloud.databasecenter.v1beta.DatabaseCenterClient.QueryDatabaseResourceGroupsPagedResponse; +import static com.google.cloud.databasecenter.v1beta.DatabaseCenterClient.QueryIssuesPagedResponse; import static com.google.cloud.databasecenter.v1beta.DatabaseCenterClient.QueryProductsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; @@ -331,4 +332,48 @@ public void aggregateIssueStatsExceptionTest() throws Exception { // Expected exception. } } + + @Test + public void queryIssuesTest() throws Exception { + DatabaseResourceIssue responsesElement = DatabaseResourceIssue.newBuilder().build(); + QueryIssuesResponse expectedResponse = + QueryIssuesResponse.newBuilder() + .setNextPageToken("") + .addAllResourceIssues(Arrays.asList(responsesElement)) + .build(); + mockDatabaseCenter.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + QueryIssuesPagedResponse pagedListResponse = client.queryIssues(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getResourceIssuesList().get(0), resources.get(0)); + + List actualRequests = mockDatabaseCenter.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryIssuesRequest actualRequest = ((QueryIssuesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryIssuesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatabaseCenter.addException(exception); + + try { + String parent = "parent-995424086"; + client.queryIssues(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-databasecenter/google-cloud-databasecenter/src/test/java/com/google/cloud/databasecenter/v1beta/MockDatabaseCenterImpl.java b/java-databasecenter/google-cloud-databasecenter/src/test/java/com/google/cloud/databasecenter/v1beta/MockDatabaseCenterImpl.java index 416eee07d67e..9db896b10d6e 100644 --- a/java-databasecenter/google-cloud-databasecenter/src/test/java/com/google/cloud/databasecenter/v1beta/MockDatabaseCenterImpl.java +++ b/java-databasecenter/google-cloud-databasecenter/src/test/java/com/google/cloud/databasecenter/v1beta/MockDatabaseCenterImpl.java @@ -144,4 +144,25 @@ public void aggregateIssueStats( Exception.class.getName()))); } } + + @Override + public void queryIssues( + QueryIssuesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof QueryIssuesResponse) { + requests.add(request); + responseObserver.onNext(((QueryIssuesResponse) 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 QueryIssues, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + QueryIssuesResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-databasecenter/grpc-google-cloud-databasecenter-v1beta/pom.xml b/java-databasecenter/grpc-google-cloud-databasecenter-v1beta/pom.xml index 408c510a0552..df931221ef1d 100644 --- a/java-databasecenter/grpc-google-cloud-databasecenter-v1beta/pom.xml +++ b/java-databasecenter/grpc-google-cloud-databasecenter-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-databasecenter-v1beta - 0.5.0-SNAPSHOT + 0.6.0 grpc-google-cloud-databasecenter-v1beta GRPC library for google-cloud-databasecenter com.google.cloud google-cloud-databasecenter-parent - 0.5.0-SNAPSHOT + 0.6.0 diff --git a/java-databasecenter/grpc-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterGrpc.java b/java-databasecenter/grpc-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterGrpc.java index a0c4d1b10567..60fa76154333 100644 --- a/java-databasecenter/grpc-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterGrpc.java +++ b/java-databasecenter/grpc-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterGrpc.java @@ -230,6 +230,53 @@ private DatabaseCenterGrpc() {} return getAggregateIssueStatsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.databasecenter.v1beta.QueryIssuesRequest, + com.google.cloud.databasecenter.v1beta.QueryIssuesResponse> + getQueryIssuesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "QueryIssues", + requestType = com.google.cloud.databasecenter.v1beta.QueryIssuesRequest.class, + responseType = com.google.cloud.databasecenter.v1beta.QueryIssuesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.databasecenter.v1beta.QueryIssuesRequest, + com.google.cloud.databasecenter.v1beta.QueryIssuesResponse> + getQueryIssuesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.databasecenter.v1beta.QueryIssuesRequest, + com.google.cloud.databasecenter.v1beta.QueryIssuesResponse> + getQueryIssuesMethod; + if ((getQueryIssuesMethod = DatabaseCenterGrpc.getQueryIssuesMethod) == null) { + synchronized (DatabaseCenterGrpc.class) { + if ((getQueryIssuesMethod = DatabaseCenterGrpc.getQueryIssuesMethod) == null) { + DatabaseCenterGrpc.getQueryIssuesMethod = + getQueryIssuesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryIssues")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.databasecenter.v1beta.QueryIssuesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.databasecenter.v1beta.QueryIssuesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DatabaseCenterMethodDescriptorSupplier("QueryIssues")) + .build(); + } + } + } + return getQueryIssuesMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static DatabaseCenterStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -356,6 +403,22 @@ default void aggregateIssueStats( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getAggregateIssueStatsMethod(), responseObserver); } + + /** + * + * + *
          +     * QueryIssues provides a list of issues and recommendations
          +     * that a user has access to and that are within the requested scope.
          +     * 
          + */ + default void queryIssues( + com.google.cloud.databasecenter.v1beta.QueryIssuesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getQueryIssuesMethod(), responseObserver); + } } /** @@ -463,6 +526,24 @@ public void aggregateIssueStats( request, responseObserver); } + + /** + * + * + *
          +     * QueryIssues provides a list of issues and recommendations
          +     * that a user has access to and that are within the requested scope.
          +     * 
          + */ + public void queryIssues( + com.google.cloud.databasecenter.v1beta.QueryIssuesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getQueryIssuesMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -542,6 +623,21 @@ public com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse aggreg return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAggregateIssueStatsMethod(), getCallOptions(), request); } + + /** + * + * + *
          +     * QueryIssues provides a list of issues and recommendations
          +     * that a user has access to and that are within the requested scope.
          +     * 
          + */ + public com.google.cloud.databasecenter.v1beta.QueryIssuesResponse queryIssues( + com.google.cloud.databasecenter.v1beta.QueryIssuesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getQueryIssuesMethod(), getCallOptions(), request); + } } /** @@ -617,6 +713,20 @@ public com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse aggreg return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getAggregateIssueStatsMethod(), getCallOptions(), request); } + + /** + * + * + *
          +     * QueryIssues provides a list of issues and recommendations
          +     * that a user has access to and that are within the requested scope.
          +     * 
          + */ + public com.google.cloud.databasecenter.v1beta.QueryIssuesResponse queryIssues( + com.google.cloud.databasecenter.v1beta.QueryIssuesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryIssuesMethod(), getCallOptions(), request); + } } /** @@ -697,12 +807,28 @@ protected DatabaseCenterFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getAggregateIssueStatsMethod(), getCallOptions()), request); } + + /** + * + * + *
          +     * QueryIssues provides a list of issues and recommendations
          +     * that a user has access to and that are within the requested scope.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.databasecenter.v1beta.QueryIssuesResponse> + queryIssues(com.google.cloud.databasecenter.v1beta.QueryIssuesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getQueryIssuesMethod(), getCallOptions()), request); + } } private static final int METHODID_QUERY_PRODUCTS = 0; private static final int METHODID_AGGREGATE_FLEET = 1; private static final int METHODID_QUERY_DATABASE_RESOURCE_GROUPS = 2; private static final int METHODID_AGGREGATE_ISSUE_STATS = 3; + private static final int METHODID_QUERY_ISSUES = 4; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -749,6 +875,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse>) responseObserver); break; + case METHODID_QUERY_ISSUES: + serviceImpl.queryIssues( + (com.google.cloud.databasecenter.v1beta.QueryIssuesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.databasecenter.v1beta.QueryIssuesResponse>) + responseObserver); + break; default: throw new AssertionError(); } @@ -795,6 +928,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest, com.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse>( service, METHODID_AGGREGATE_ISSUE_STATS))) + .addMethod( + getQueryIssuesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.databasecenter.v1beta.QueryIssuesRequest, + com.google.cloud.databasecenter.v1beta.QueryIssuesResponse>( + service, METHODID_QUERY_ISSUES))) .build(); } @@ -850,6 +990,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getAggregateFleetMethod()) .addMethod(getQueryDatabaseResourceGroupsMethod()) .addMethod(getAggregateIssueStatsMethod()) + .addMethod(getQueryIssuesMethod()) .build(); } } diff --git a/java-databasecenter/pom.xml b/java-databasecenter/pom.xml index 7db26aa5fa92..d9c4b5801dfe 100644 --- a/java-databasecenter/pom.xml +++ b/java-databasecenter/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-databasecenter-parent pom - 0.5.0-SNAPSHOT + 0.6.0 Google Database Center API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-databasecenter - 0.5.0-SNAPSHOT + 0.6.0 com.google.api.grpc grpc-google-cloud-databasecenter-v1beta - 0.5.0-SNAPSHOT + 0.6.0 com.google.api.grpc proto-google-cloud-databasecenter-v1beta - 0.5.0-SNAPSHOT + 0.6.0
          diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/pom.xml b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/pom.xml index 7a42a0714ad8..997904811c55 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/pom.xml +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-databasecenter-v1beta - 0.5.0-SNAPSHOT + 0.6.0 proto-google-cloud-databasecenter-v1beta Proto library for google-cloud-databasecenter com.google.cloud google-cloud-databasecenter-parent - 0.5.0-SNAPSHOT + 0.6.0 diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AggregateFleetRequest.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AggregateFleetRequest.java index aec9b30f037d..c53ad6d8aca0 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AggregateFleetRequest.java +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AggregateFleetRequest.java @@ -167,10 +167,10 @@ public com.google.protobuf.ByteString getParentBytes() { * expression, parentheses must be appropriately used to group the * combinations. * - * Example: location="us-east1" - * Example: container="projects/123" OR container="projects/456" - * Example: (container="projects/123" OR - * container="projects/456") AND location="us-east1" + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` * * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -206,10 +206,10 @@ public java.lang.String getFilter() { * expression, parentheses must be appropriately used to group the * combinations. * - * Example: location="us-east1" - * Example: container="projects/123" OR container="projects/456" - * Example: (container="projects/123" OR - * container="projects/456") AND location="us-east1" + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` * * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -335,9 +335,10 @@ public com.google.protobuf.ByteString getGroupByBytes() { * descending order. Add "ASC" after the field name to indicate ascending * order. It supports ordering using multiple fields. * For example: - * order_by = "resource_groups_count" sorts response in ascending order - * order_by = "resource_groups_count DESC" sorts response in descending order - * order_by = "product.type, product.version DESC, location" orders by type + * `order_by = "resource_groups_count"` sorts response in ascending order + * `order_by = "resource_groups_count DESC"` sorts response in descending + * order + * `order_by = "product.type, product.version DESC, location"` orders by type * in ascending order, version in descending order and location in ascending * order * @@ -371,9 +372,10 @@ public java.lang.String getOrderBy() { * descending order. Add "ASC" after the field name to indicate ascending * order. It supports ordering using multiple fields. * For example: - * order_by = "resource_groups_count" sorts response in ascending order - * order_by = "resource_groups_count DESC" sorts response in descending order - * order_by = "product.type, product.version DESC, location" orders by type + * `order_by = "resource_groups_count"` sorts response in ascending order + * `order_by = "resource_groups_count DESC"` sorts response in descending + * order + * `order_by = "product.type, product.version DESC, location"` orders by type * in ascending order, version in descending order and location in ascending * order * @@ -1183,10 +1185,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * expression, parentheses must be appropriately used to group the * combinations. * - * Example: location="us-east1" - * Example: container="projects/123" OR container="projects/456" - * Example: (container="projects/123" OR - * container="projects/456") AND location="us-east1" + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` * * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1221,10 +1223,10 @@ public java.lang.String getFilter() { * expression, parentheses must be appropriately used to group the * combinations. * - * Example: location="us-east1" - * Example: container="projects/123" OR container="projects/456" - * Example: (container="projects/123" OR - * container="projects/456") AND location="us-east1" + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` * * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1259,10 +1261,10 @@ public com.google.protobuf.ByteString getFilterBytes() { * expression, parentheses must be appropriately used to group the * combinations. * - * Example: location="us-east1" - * Example: container="projects/123" OR container="projects/456" - * Example: (container="projects/123" OR - * container="projects/456") AND location="us-east1" + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` * * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1296,10 +1298,10 @@ public Builder setFilter(java.lang.String value) { * expression, parentheses must be appropriately used to group the * combinations. * - * Example: location="us-east1" - * Example: container="projects/123" OR container="projects/456" - * Example: (container="projects/123" OR - * container="projects/456") AND location="us-east1" + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` * * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1329,10 +1331,10 @@ public Builder clearFilter() { * expression, parentheses must be appropriately used to group the * combinations. * - * Example: location="us-east1" - * Example: container="projects/123" OR container="projects/456" - * Example: (container="projects/123" OR - * container="projects/456") AND location="us-east1" + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` * * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1566,9 +1568,10 @@ public Builder setGroupByBytes(com.google.protobuf.ByteString value) { * descending order. Add "ASC" after the field name to indicate ascending * order. It supports ordering using multiple fields. * For example: - * order_by = "resource_groups_count" sorts response in ascending order - * order_by = "resource_groups_count DESC" sorts response in descending order - * order_by = "product.type, product.version DESC, location" orders by type + * `order_by = "resource_groups_count"` sorts response in ascending order + * `order_by = "resource_groups_count DESC"` sorts response in descending + * order + * `order_by = "product.type, product.version DESC, location"` orders by type * in ascending order, version in descending order and location in ascending * order * @@ -1601,9 +1604,10 @@ public java.lang.String getOrderBy() { * descending order. Add "ASC" after the field name to indicate ascending * order. It supports ordering using multiple fields. * For example: - * order_by = "resource_groups_count" sorts response in ascending order - * order_by = "resource_groups_count DESC" sorts response in descending order - * order_by = "product.type, product.version DESC, location" orders by type + * `order_by = "resource_groups_count"` sorts response in ascending order + * `order_by = "resource_groups_count DESC"` sorts response in descending + * order + * `order_by = "product.type, product.version DESC, location"` orders by type * in ascending order, version in descending order and location in ascending * order * @@ -1636,9 +1640,10 @@ public com.google.protobuf.ByteString getOrderByBytes() { * descending order. Add "ASC" after the field name to indicate ascending * order. It supports ordering using multiple fields. * For example: - * order_by = "resource_groups_count" sorts response in ascending order - * order_by = "resource_groups_count DESC" sorts response in descending order - * order_by = "product.type, product.version DESC, location" orders by type + * `order_by = "resource_groups_count"` sorts response in ascending order + * `order_by = "resource_groups_count DESC"` sorts response in descending + * order + * `order_by = "product.type, product.version DESC, location"` orders by type * in ascending order, version in descending order and location in ascending * order * @@ -1670,9 +1675,10 @@ public Builder setOrderBy(java.lang.String value) { * descending order. Add "ASC" after the field name to indicate ascending * order. It supports ordering using multiple fields. * For example: - * order_by = "resource_groups_count" sorts response in ascending order - * order_by = "resource_groups_count DESC" sorts response in descending order - * order_by = "product.type, product.version DESC, location" orders by type + * `order_by = "resource_groups_count"` sorts response in ascending order + * `order_by = "resource_groups_count DESC"` sorts response in descending + * order + * `order_by = "product.type, product.version DESC, location"` orders by type * in ascending order, version in descending order and location in ascending * order * @@ -1700,9 +1706,10 @@ public Builder clearOrderBy() { * descending order. Add "ASC" after the field name to indicate ascending * order. It supports ordering using multiple fields. * For example: - * order_by = "resource_groups_count" sorts response in ascending order - * order_by = "resource_groups_count DESC" sorts response in descending order - * order_by = "product.type, product.version DESC, location" orders by type + * `order_by = "resource_groups_count"` sorts response in ascending order + * `order_by = "resource_groups_count DESC"` sorts response in descending + * order + * `order_by = "product.type, product.version DESC, location"` orders by type * in ascending order, version in descending order and location in ascending * order * diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AggregateFleetRequestOrBuilder.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AggregateFleetRequestOrBuilder.java index 78a4ec2b040a..280e0f855ab5 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AggregateFleetRequestOrBuilder.java +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AggregateFleetRequestOrBuilder.java @@ -86,10 +86,10 @@ public interface AggregateFleetRequestOrBuilder * expression, parentheses must be appropriately used to group the * combinations. * - * Example: location="us-east1" - * Example: container="projects/123" OR container="projects/456" - * Example: (container="projects/123" OR - * container="projects/456") AND location="us-east1" + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` * * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -114,10 +114,10 @@ public interface AggregateFleetRequestOrBuilder * expression, parentheses must be appropriately used to group the * combinations. * - * Example: location="us-east1" - * Example: container="projects/123" OR container="projects/456" - * Example: (container="projects/123" OR - * container="projects/456") AND location="us-east1" + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` * * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -200,9 +200,10 @@ public interface AggregateFleetRequestOrBuilder * descending order. Add "ASC" after the field name to indicate ascending * order. It supports ordering using multiple fields. * For example: - * order_by = "resource_groups_count" sorts response in ascending order - * order_by = "resource_groups_count DESC" sorts response in descending order - * order_by = "product.type, product.version DESC, location" orders by type + * `order_by = "resource_groups_count"` sorts response in ascending order + * `order_by = "resource_groups_count DESC"` sorts response in descending + * order + * `order_by = "product.type, product.version DESC, location"` orders by type * in ascending order, version in descending order and location in ascending * order * @@ -225,9 +226,10 @@ public interface AggregateFleetRequestOrBuilder * descending order. Add "ASC" after the field name to indicate ascending * order. It supports ordering using multiple fields. * For example: - * order_by = "resource_groups_count" sorts response in ascending order - * order_by = "resource_groups_count DESC" sorts response in descending order - * order_by = "product.type, product.version DESC, location" orders by type + * `order_by = "resource_groups_count"` sorts response in ascending order + * `order_by = "resource_groups_count DESC"` sorts response in descending + * order + * `order_by = "product.type, product.version DESC, location"` orders by type * in ascending order, version in descending order and location in ascending * order * diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AggregateFleetResponse.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AggregateFleetResponse.java index 2e35079ee72b..3d654f705d50 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AggregateFleetResponse.java +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AggregateFleetResponse.java @@ -24,7 +24,8 @@ * * *
          - * The response message to aggregate a fleet by some group by fields.
          + * The response message to aggregate a fleet by some group by
          + * fields.
            * 
          * * Protobuf type {@code google.cloud.databasecenter.v1beta.AggregateFleetResponse} @@ -525,7 +526,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
          -   * The response message to aggregate a fleet by some group by fields.
          +   * The response message to aggregate a fleet by some group by
          +   * fields.
              * 
          * * Protobuf type {@code google.cloud.databasecenter.v1beta.AggregateFleetResponse} diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AggregateIssueStatsRequest.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AggregateIssueStatsRequest.java index ac5504b4a4f7..59f77f023120 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AggregateIssueStatsRequest.java +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AggregateIssueStatsRequest.java @@ -164,10 +164,10 @@ public com.google.protobuf.ByteString getParentBytes() { * expression, parentheses must be appropriately used to group the * combinations. * - * Example: location="us-east1" - * Example: container="projects/123" OR container="projects/456" - * Example: (container="projects/123" OR - * container="projects/456") AND location="us-east1" + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` * * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -203,10 +203,10 @@ public java.lang.String getFilter() { * expression, parentheses must be appropriately used to group the * combinations. * - * Example: location="us-east1" - * Example: container="projects/123" OR container="projects/456" - * Example: (container="projects/123" OR - * container="projects/456") AND location="us-east1" + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` * * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1002,10 +1002,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * expression, parentheses must be appropriately used to group the * combinations. * - * Example: location="us-east1" - * Example: container="projects/123" OR container="projects/456" - * Example: (container="projects/123" OR - * container="projects/456") AND location="us-east1" + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` * * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1040,10 +1040,10 @@ public java.lang.String getFilter() { * expression, parentheses must be appropriately used to group the * combinations. * - * Example: location="us-east1" - * Example: container="projects/123" OR container="projects/456" - * Example: (container="projects/123" OR - * container="projects/456") AND location="us-east1" + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` * * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1078,10 +1078,10 @@ public com.google.protobuf.ByteString getFilterBytes() { * expression, parentheses must be appropriately used to group the * combinations. * - * Example: location="us-east1" - * Example: container="projects/123" OR container="projects/456" - * Example: (container="projects/123" OR - * container="projects/456") AND location="us-east1" + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` * * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1115,10 +1115,10 @@ public Builder setFilter(java.lang.String value) { * expression, parentheses must be appropriately used to group the * combinations. * - * Example: location="us-east1" - * Example: container="projects/123" OR container="projects/456" - * Example: (container="projects/123" OR - * container="projects/456") AND location="us-east1" + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` * * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1148,10 +1148,10 @@ public Builder clearFilter() { * expression, parentheses must be appropriately used to group the * combinations. * - * Example: location="us-east1" - * Example: container="projects/123" OR container="projects/456" - * Example: (container="projects/123" OR - * container="projects/456") AND location="us-east1" + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` * * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AggregateIssueStatsRequestOrBuilder.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AggregateIssueStatsRequestOrBuilder.java index c4f5ffd8a4bc..a45edec73d86 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AggregateIssueStatsRequestOrBuilder.java +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/AggregateIssueStatsRequestOrBuilder.java @@ -84,10 +84,10 @@ public interface AggregateIssueStatsRequestOrBuilder * expression, parentheses must be appropriately used to group the * combinations. * - * Example: location="us-east1" - * Example: container="projects/123" OR container="projects/456" - * Example: (container="projects/123" OR - * container="projects/456") AND location="us-east1" + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` * * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -112,10 +112,10 @@ public interface AggregateIssueStatsRequestOrBuilder * expression, parentheses must be appropriately used to group the * combinations. * - * Example: location="us-east1" - * Example: container="projects/123" OR container="projects/456" - * Example: (container="projects/123" OR - * container="projects/456") AND location="us-east1" + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` * * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseResourceIssue.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseResourceIssue.java new file mode 100644 index 000000000000..28fc8b66b1db --- /dev/null +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseResourceIssue.java @@ -0,0 +1,986 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/databasecenter/v1beta/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.databasecenter.v1beta; + +/** + * + * + *
          + * DatabaseResource and Issue associated with it.
          + * 
          + * + * Protobuf type {@code google.cloud.databasecenter.v1beta.DatabaseResourceIssue} + */ +@com.google.protobuf.Generated +public final class DatabaseResourceIssue extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.databasecenter.v1beta.DatabaseResourceIssue) + DatabaseResourceIssueOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DatabaseResourceIssue"); + } + + // Use DatabaseResourceIssue.newBuilder() to construct. + private DatabaseResourceIssue(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DatabaseResourceIssue() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.databasecenter.v1beta.ServiceProto + .internal_static_google_cloud_databasecenter_v1beta_DatabaseResourceIssue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.databasecenter.v1beta.ServiceProto + .internal_static_google_cloud_databasecenter_v1beta_DatabaseResourceIssue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue.class, + com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue.Builder.class); + } + + private int bitField0_; + public static final int SIGNAL_FIELD_NUMBER = 1; + private com.google.cloud.databasecenter.v1beta.Signal signal_; + + /** + * + * + *
          +   * Signal associated with the issue.
          +   * 
          + * + * .google.cloud.databasecenter.v1beta.Signal signal = 1; + * + * @return Whether the signal field is set. + */ + @java.lang.Override + public boolean hasSignal() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +   * Signal associated with the issue.
          +   * 
          + * + * .google.cloud.databasecenter.v1beta.Signal signal = 1; + * + * @return The signal. + */ + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.Signal getSignal() { + return signal_ == null + ? com.google.cloud.databasecenter.v1beta.Signal.getDefaultInstance() + : signal_; + } + + /** + * + * + *
          +   * Signal associated with the issue.
          +   * 
          + * + * .google.cloud.databasecenter.v1beta.Signal signal = 1; + */ + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.SignalOrBuilder getSignalOrBuilder() { + return signal_ == null + ? com.google.cloud.databasecenter.v1beta.Signal.getDefaultInstance() + : signal_; + } + + public static final int RESOURCE_FIELD_NUMBER = 2; + private com.google.cloud.databasecenter.v1beta.DatabaseResource resource_; + + /** + * + * + *
          +   * Resource associated with the issue.
          +   * 
          + * + * .google.cloud.databasecenter.v1beta.DatabaseResource resource = 2; + * + * @return Whether the resource field is set. + */ + @java.lang.Override + public boolean hasResource() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +   * Resource associated with the issue.
          +   * 
          + * + * .google.cloud.databasecenter.v1beta.DatabaseResource resource = 2; + * + * @return The resource. + */ + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.DatabaseResource getResource() { + return resource_ == null + ? com.google.cloud.databasecenter.v1beta.DatabaseResource.getDefaultInstance() + : resource_; + } + + /** + * + * + *
          +   * Resource associated with the issue.
          +   * 
          + * + * .google.cloud.databasecenter.v1beta.DatabaseResource resource = 2; + */ + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.DatabaseResourceOrBuilder getResourceOrBuilder() { + return resource_ == null + ? com.google.cloud.databasecenter.v1beta.DatabaseResource.getDefaultInstance() + : resource_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSignal()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getResource()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSignal()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getResource()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue)) { + return super.equals(obj); + } + com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue other = + (com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue) obj; + + if (hasSignal() != other.hasSignal()) return false; + if (hasSignal()) { + if (!getSignal().equals(other.getSignal())) return false; + } + if (hasResource() != other.hasResource()) return false; + if (hasResource()) { + if (!getResource().equals(other.getResource())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSignal()) { + hash = (37 * hash) + SIGNAL_FIELD_NUMBER; + hash = (53 * hash) + getSignal().hashCode(); + } + if (hasResource()) { + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * DatabaseResource and Issue associated with it.
          +   * 
          + * + * Protobuf type {@code google.cloud.databasecenter.v1beta.DatabaseResourceIssue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.databasecenter.v1beta.DatabaseResourceIssue) + com.google.cloud.databasecenter.v1beta.DatabaseResourceIssueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.databasecenter.v1beta.ServiceProto + .internal_static_google_cloud_databasecenter_v1beta_DatabaseResourceIssue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.databasecenter.v1beta.ServiceProto + .internal_static_google_cloud_databasecenter_v1beta_DatabaseResourceIssue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue.class, + com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue.Builder.class); + } + + // Construct using com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSignalFieldBuilder(); + internalGetResourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + signal_ = null; + if (signalBuilder_ != null) { + signalBuilder_.dispose(); + signalBuilder_ = null; + } + resource_ = null; + if (resourceBuilder_ != null) { + resourceBuilder_.dispose(); + resourceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.databasecenter.v1beta.ServiceProto + .internal_static_google_cloud_databasecenter_v1beta_DatabaseResourceIssue_descriptor; + } + + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue + getDefaultInstanceForType() { + return com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue build() { + com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue buildPartial() { + com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue result = + new com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.signal_ = signalBuilder_ == null ? signal_ : signalBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.resource_ = resourceBuilder_ == null ? resource_ : resourceBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue) { + return mergeFrom((com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue other) { + if (other + == com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue.getDefaultInstance()) + return this; + if (other.hasSignal()) { + mergeSignal(other.getSignal()); + } + if (other.hasResource()) { + mergeResource(other.getResource()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(internalGetSignalFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetResourceFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.databasecenter.v1beta.Signal signal_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.databasecenter.v1beta.Signal, + com.google.cloud.databasecenter.v1beta.Signal.Builder, + com.google.cloud.databasecenter.v1beta.SignalOrBuilder> + signalBuilder_; + + /** + * + * + *
          +     * Signal associated with the issue.
          +     * 
          + * + * .google.cloud.databasecenter.v1beta.Signal signal = 1; + * + * @return Whether the signal field is set. + */ + public boolean hasSignal() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +     * Signal associated with the issue.
          +     * 
          + * + * .google.cloud.databasecenter.v1beta.Signal signal = 1; + * + * @return The signal. + */ + public com.google.cloud.databasecenter.v1beta.Signal getSignal() { + if (signalBuilder_ == null) { + return signal_ == null + ? com.google.cloud.databasecenter.v1beta.Signal.getDefaultInstance() + : signal_; + } else { + return signalBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Signal associated with the issue.
          +     * 
          + * + * .google.cloud.databasecenter.v1beta.Signal signal = 1; + */ + public Builder setSignal(com.google.cloud.databasecenter.v1beta.Signal value) { + if (signalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + signal_ = value; + } else { + signalBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Signal associated with the issue.
          +     * 
          + * + * .google.cloud.databasecenter.v1beta.Signal signal = 1; + */ + public Builder setSignal( + com.google.cloud.databasecenter.v1beta.Signal.Builder builderForValue) { + if (signalBuilder_ == null) { + signal_ = builderForValue.build(); + } else { + signalBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Signal associated with the issue.
          +     * 
          + * + * .google.cloud.databasecenter.v1beta.Signal signal = 1; + */ + public Builder mergeSignal(com.google.cloud.databasecenter.v1beta.Signal value) { + if (signalBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && signal_ != null + && signal_ != com.google.cloud.databasecenter.v1beta.Signal.getDefaultInstance()) { + getSignalBuilder().mergeFrom(value); + } else { + signal_ = value; + } + } else { + signalBuilder_.mergeFrom(value); + } + if (signal_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Signal associated with the issue.
          +     * 
          + * + * .google.cloud.databasecenter.v1beta.Signal signal = 1; + */ + public Builder clearSignal() { + bitField0_ = (bitField0_ & ~0x00000001); + signal_ = null; + if (signalBuilder_ != null) { + signalBuilder_.dispose(); + signalBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Signal associated with the issue.
          +     * 
          + * + * .google.cloud.databasecenter.v1beta.Signal signal = 1; + */ + public com.google.cloud.databasecenter.v1beta.Signal.Builder getSignalBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetSignalFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Signal associated with the issue.
          +     * 
          + * + * .google.cloud.databasecenter.v1beta.Signal signal = 1; + */ + public com.google.cloud.databasecenter.v1beta.SignalOrBuilder getSignalOrBuilder() { + if (signalBuilder_ != null) { + return signalBuilder_.getMessageOrBuilder(); + } else { + return signal_ == null + ? com.google.cloud.databasecenter.v1beta.Signal.getDefaultInstance() + : signal_; + } + } + + /** + * + * + *
          +     * Signal associated with the issue.
          +     * 
          + * + * .google.cloud.databasecenter.v1beta.Signal signal = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.databasecenter.v1beta.Signal, + com.google.cloud.databasecenter.v1beta.Signal.Builder, + com.google.cloud.databasecenter.v1beta.SignalOrBuilder> + internalGetSignalFieldBuilder() { + if (signalBuilder_ == null) { + signalBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.databasecenter.v1beta.Signal, + com.google.cloud.databasecenter.v1beta.Signal.Builder, + com.google.cloud.databasecenter.v1beta.SignalOrBuilder>( + getSignal(), getParentForChildren(), isClean()); + signal_ = null; + } + return signalBuilder_; + } + + private com.google.cloud.databasecenter.v1beta.DatabaseResource resource_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.databasecenter.v1beta.DatabaseResource, + com.google.cloud.databasecenter.v1beta.DatabaseResource.Builder, + com.google.cloud.databasecenter.v1beta.DatabaseResourceOrBuilder> + resourceBuilder_; + + /** + * + * + *
          +     * Resource associated with the issue.
          +     * 
          + * + * .google.cloud.databasecenter.v1beta.DatabaseResource resource = 2; + * + * @return Whether the resource field is set. + */ + public boolean hasResource() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +     * Resource associated with the issue.
          +     * 
          + * + * .google.cloud.databasecenter.v1beta.DatabaseResource resource = 2; + * + * @return The resource. + */ + public com.google.cloud.databasecenter.v1beta.DatabaseResource getResource() { + if (resourceBuilder_ == null) { + return resource_ == null + ? com.google.cloud.databasecenter.v1beta.DatabaseResource.getDefaultInstance() + : resource_; + } else { + return resourceBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Resource associated with the issue.
          +     * 
          + * + * .google.cloud.databasecenter.v1beta.DatabaseResource resource = 2; + */ + public Builder setResource(com.google.cloud.databasecenter.v1beta.DatabaseResource value) { + if (resourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + } else { + resourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Resource associated with the issue.
          +     * 
          + * + * .google.cloud.databasecenter.v1beta.DatabaseResource resource = 2; + */ + public Builder setResource( + com.google.cloud.databasecenter.v1beta.DatabaseResource.Builder builderForValue) { + if (resourceBuilder_ == null) { + resource_ = builderForValue.build(); + } else { + resourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Resource associated with the issue.
          +     * 
          + * + * .google.cloud.databasecenter.v1beta.DatabaseResource resource = 2; + */ + public Builder mergeResource(com.google.cloud.databasecenter.v1beta.DatabaseResource value) { + if (resourceBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && resource_ != null + && resource_ + != com.google.cloud.databasecenter.v1beta.DatabaseResource.getDefaultInstance()) { + getResourceBuilder().mergeFrom(value); + } else { + resource_ = value; + } + } else { + resourceBuilder_.mergeFrom(value); + } + if (resource_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Resource associated with the issue.
          +     * 
          + * + * .google.cloud.databasecenter.v1beta.DatabaseResource resource = 2; + */ + public Builder clearResource() { + bitField0_ = (bitField0_ & ~0x00000002); + resource_ = null; + if (resourceBuilder_ != null) { + resourceBuilder_.dispose(); + resourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Resource associated with the issue.
          +     * 
          + * + * .google.cloud.databasecenter.v1beta.DatabaseResource resource = 2; + */ + public com.google.cloud.databasecenter.v1beta.DatabaseResource.Builder getResourceBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetResourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Resource associated with the issue.
          +     * 
          + * + * .google.cloud.databasecenter.v1beta.DatabaseResource resource = 2; + */ + public com.google.cloud.databasecenter.v1beta.DatabaseResourceOrBuilder getResourceOrBuilder() { + if (resourceBuilder_ != null) { + return resourceBuilder_.getMessageOrBuilder(); + } else { + return resource_ == null + ? com.google.cloud.databasecenter.v1beta.DatabaseResource.getDefaultInstance() + : resource_; + } + } + + /** + * + * + *
          +     * Resource associated with the issue.
          +     * 
          + * + * .google.cloud.databasecenter.v1beta.DatabaseResource resource = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.databasecenter.v1beta.DatabaseResource, + com.google.cloud.databasecenter.v1beta.DatabaseResource.Builder, + com.google.cloud.databasecenter.v1beta.DatabaseResourceOrBuilder> + internalGetResourceFieldBuilder() { + if (resourceBuilder_ == null) { + resourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.databasecenter.v1beta.DatabaseResource, + com.google.cloud.databasecenter.v1beta.DatabaseResource.Builder, + com.google.cloud.databasecenter.v1beta.DatabaseResourceOrBuilder>( + getResource(), getParentForChildren(), isClean()); + resource_ = null; + } + return resourceBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.databasecenter.v1beta.DatabaseResourceIssue) + } + + // @@protoc_insertion_point(class_scope:google.cloud.databasecenter.v1beta.DatabaseResourceIssue) + private static final com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue(); + } + + public static com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DatabaseResourceIssue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseResourceIssueOrBuilder.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseResourceIssueOrBuilder.java new file mode 100644 index 000000000000..5e4f35aec1e3 --- /dev/null +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseResourceIssueOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/databasecenter/v1beta/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.databasecenter.v1beta; + +@com.google.protobuf.Generated +public interface DatabaseResourceIssueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.databasecenter.v1beta.DatabaseResourceIssue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Signal associated with the issue.
          +   * 
          + * + * .google.cloud.databasecenter.v1beta.Signal signal = 1; + * + * @return Whether the signal field is set. + */ + boolean hasSignal(); + + /** + * + * + *
          +   * Signal associated with the issue.
          +   * 
          + * + * .google.cloud.databasecenter.v1beta.Signal signal = 1; + * + * @return The signal. + */ + com.google.cloud.databasecenter.v1beta.Signal getSignal(); + + /** + * + * + *
          +   * Signal associated with the issue.
          +   * 
          + * + * .google.cloud.databasecenter.v1beta.Signal signal = 1; + */ + com.google.cloud.databasecenter.v1beta.SignalOrBuilder getSignalOrBuilder(); + + /** + * + * + *
          +   * Resource associated with the issue.
          +   * 
          + * + * .google.cloud.databasecenter.v1beta.DatabaseResource resource = 2; + * + * @return Whether the resource field is set. + */ + boolean hasResource(); + + /** + * + * + *
          +   * Resource associated with the issue.
          +   * 
          + * + * .google.cloud.databasecenter.v1beta.DatabaseResource resource = 2; + * + * @return The resource. + */ + com.google.cloud.databasecenter.v1beta.DatabaseResource getResource(); + + /** + * + * + *
          +   * Resource associated with the issue.
          +   * 
          + * + * .google.cloud.databasecenter.v1beta.DatabaseResource resource = 2; + */ + com.google.cloud.databasecenter.v1beta.DatabaseResourceOrBuilder getResourceOrBuilder(); +} diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MaintenanceInfo.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MaintenanceInfo.java index 7ae11b7b440f..858dd65a70b8 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MaintenanceInfo.java +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MaintenanceInfo.java @@ -233,11 +233,11 @@ public int getDenyMaintenanceSchedulesCount() { * * *
          -   * Optional. Current Maintenance version of the database resource. Example:
          +   * Output only. Current Maintenance version of the database resource. Example:
              * "MYSQL_8_0_41.R20250531.01_15"
              * 
          * - * string maintenance_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string maintenance_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The maintenanceVersion. */ @@ -258,11 +258,11 @@ public java.lang.String getMaintenanceVersion() { * * *
          -   * Optional. Current Maintenance version of the database resource. Example:
          +   * Output only. Current Maintenance version of the database resource. Example:
              * "MYSQL_8_0_41.R20250531.01_15"
              * 
          * - * string maintenance_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string maintenance_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for maintenanceVersion. */ @@ -1378,11 +1378,11 @@ public Builder removeDenyMaintenanceSchedules(int index) { * * *
          -     * Optional. Current Maintenance version of the database resource. Example:
          +     * Output only. Current Maintenance version of the database resource. Example:
                * "MYSQL_8_0_41.R20250531.01_15"
                * 
          * - * string maintenance_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string maintenance_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The maintenanceVersion. */ @@ -1402,11 +1402,11 @@ public java.lang.String getMaintenanceVersion() { * * *
          -     * Optional. Current Maintenance version of the database resource. Example:
          +     * Output only. Current Maintenance version of the database resource. Example:
                * "MYSQL_8_0_41.R20250531.01_15"
                * 
          * - * string maintenance_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string maintenance_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for maintenanceVersion. */ @@ -1426,11 +1426,11 @@ public com.google.protobuf.ByteString getMaintenanceVersionBytes() { * * *
          -     * Optional. Current Maintenance version of the database resource. Example:
          +     * Output only. Current Maintenance version of the database resource. Example:
                * "MYSQL_8_0_41.R20250531.01_15"
                * 
          * - * string maintenance_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string maintenance_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The maintenanceVersion to set. * @return This builder for chaining. @@ -1449,11 +1449,11 @@ public Builder setMaintenanceVersion(java.lang.String value) { * * *
          -     * Optional. Current Maintenance version of the database resource. Example:
          +     * Output only. Current Maintenance version of the database resource. Example:
                * "MYSQL_8_0_41.R20250531.01_15"
                * 
          * - * string maintenance_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string maintenance_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1468,11 +1468,11 @@ public Builder clearMaintenanceVersion() { * * *
          -     * Optional. Current Maintenance version of the database resource. Example:
          +     * Output only. Current Maintenance version of the database resource. Example:
                * "MYSQL_8_0_41.R20250531.01_15"
                * 
          * - * string maintenance_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string maintenance_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for maintenanceVersion to set. * @return This builder for chaining. diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MaintenanceInfoOrBuilder.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MaintenanceInfoOrBuilder.java index db9007ce8c9a..b3bf3452c3c0 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MaintenanceInfoOrBuilder.java +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MaintenanceInfoOrBuilder.java @@ -144,11 +144,11 @@ public interface MaintenanceInfoOrBuilder * * *
          -   * Optional. Current Maintenance version of the database resource. Example:
          +   * Output only. Current Maintenance version of the database resource. Example:
              * "MYSQL_8_0_41.R20250531.01_15"
              * 
          * - * string maintenance_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string maintenance_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The maintenanceVersion. */ @@ -158,11 +158,11 @@ public interface MaintenanceInfoOrBuilder * * *
          -   * Optional. Current Maintenance version of the database resource. Example:
          +   * Output only. Current Maintenance version of the database resource. Example:
              * "MYSQL_8_0_41.R20250531.01_15"
              * 
          * - * string maintenance_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string maintenance_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for maintenanceVersion. */ diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MaintenanceProto.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MaintenanceProto.java index bb7e98aed128..601fd9e67cb8 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MaintenanceProto.java +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/MaintenanceProto.java @@ -81,7 +81,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "deny_maintenance_schedules\030\002 \003(\0132C.googl" + "e.cloud.databasecenter.v1beta.ResourceMa" + "intenanceDenyScheduleB\003\340A\001\022 \n\023maintenanc" - + "e_version\030\003 \001(\tB\003\340A\001*`\n\005Phase\022\025\n\021PHASE_U" + + "e_version\030\003 \001(\tB\003\340A\003*`\n\005Phase\022\025\n\021PHASE_U" + "NSPECIFIED\020\000\022\017\n\013PHASE_WEEK1\020\001\022\017\n\013PHASE_W" + "EEK2\020\002\022\017\n\013PHASE_WEEK5\020\003\022\r\n\tPHASE_ANY\020\004B\376" + "\001\n&com.google.cloud.databasecenter.v1bet" diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/QueryDatabaseResourceGroupsRequest.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/QueryDatabaseResourceGroupsRequest.java index 5cc724fffef9..80cd97461f98 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/QueryDatabaseResourceGroupsRequest.java +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/QueryDatabaseResourceGroupsRequest.java @@ -181,12 +181,12 @@ public com.google.protobuf.ByteString getParentBytes() { * expression, parentheses must be appropriately used to group the * combinations. * - * Example: location="us-east1" - * Example: container="projects/123" OR container="projects/456" - * Example: (container="projects/123" OR - * container="projects/456") AND location="us-east1" - * Example: full_resource_name=~"test" - * Example: full_resource_name=~"test.*master" + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` + * Example: `full_resource_name=~"test"` + * Example: `full_resource_name=~"test.*master"` * * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -235,12 +235,12 @@ public java.lang.String getFilter() { * expression, parentheses must be appropriately used to group the * combinations. * - * Example: location="us-east1" - * Example: container="projects/123" OR container="projects/456" - * Example: (container="projects/123" OR - * container="projects/456") AND location="us-east1" - * Example: full_resource_name=~"test" - * Example: full_resource_name=~"test.*master" + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` + * Example: `full_resource_name=~"test"` + * Example: `full_resource_name=~"test.*master"` * * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -484,12 +484,13 @@ public com.google.cloud.databasecenter.v1beta.SignalFilterOrBuilder getSignalFil * order. It only supports a single field at a time. * * For example: - * order_by = "full_resource_name" sorts response in ascending order - * order_by = "full_resource_name DESC" sorts response in descending order - * order_by = "issue_count DESC" sorts response in descending order of + * `order_by = "full_resource_name"` sorts response in ascending order + * `order_by = "full_resource_name DESC"` sorts response in descending order + * `order_by = "issue_count DESC"` sorts response in descending order of * count of all issues associated with a resource. * - * More explicitly, order_by = "full_resource_name, product" is not supported. + * More explicitly, `order_by = "full_resource_name, product"` is not + * supported. * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -547,12 +548,13 @@ public java.lang.String getOrderBy() { * order. It only supports a single field at a time. * * For example: - * order_by = "full_resource_name" sorts response in ascending order - * order_by = "full_resource_name DESC" sorts response in descending order - * order_by = "issue_count DESC" sorts response in descending order of + * `order_by = "full_resource_name"` sorts response in ascending order + * `order_by = "full_resource_name DESC"` sorts response in descending order + * `order_by = "issue_count DESC"` sorts response in descending order of * count of all issues associated with a resource. * - * More explicitly, order_by = "full_resource_name, product" is not supported. + * More explicitly, `order_by = "full_resource_name, product"` is not + * supported. * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1393,12 +1395,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * expression, parentheses must be appropriately used to group the * combinations. * - * Example: location="us-east1" - * Example: container="projects/123" OR container="projects/456" - * Example: (container="projects/123" OR - * container="projects/456") AND location="us-east1" - * Example: full_resource_name=~"test" - * Example: full_resource_name=~"test.*master" + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` + * Example: `full_resource_name=~"test"` + * Example: `full_resource_name=~"test.*master"` * * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1446,12 +1448,12 @@ public java.lang.String getFilter() { * expression, parentheses must be appropriately used to group the * combinations. * - * Example: location="us-east1" - * Example: container="projects/123" OR container="projects/456" - * Example: (container="projects/123" OR - * container="projects/456") AND location="us-east1" - * Example: full_resource_name=~"test" - * Example: full_resource_name=~"test.*master" + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` + * Example: `full_resource_name=~"test"` + * Example: `full_resource_name=~"test.*master"` * * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1499,12 +1501,12 @@ public com.google.protobuf.ByteString getFilterBytes() { * expression, parentheses must be appropriately used to group the * combinations. * - * Example: location="us-east1" - * Example: container="projects/123" OR container="projects/456" - * Example: (container="projects/123" OR - * container="projects/456") AND location="us-east1" - * Example: full_resource_name=~"test" - * Example: full_resource_name=~"test.*master" + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` + * Example: `full_resource_name=~"test"` + * Example: `full_resource_name=~"test.*master"` * * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1551,12 +1553,12 @@ public Builder setFilter(java.lang.String value) { * expression, parentheses must be appropriately used to group the * combinations. * - * Example: location="us-east1" - * Example: container="projects/123" OR container="projects/456" - * Example: (container="projects/123" OR - * container="projects/456") AND location="us-east1" - * Example: full_resource_name=~"test" - * Example: full_resource_name=~"test.*master" + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` + * Example: `full_resource_name=~"test"` + * Example: `full_resource_name=~"test.*master"` * * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1599,12 +1601,12 @@ public Builder clearFilter() { * expression, parentheses must be appropriately used to group the * combinations. * - * Example: location="us-east1" - * Example: container="projects/123" OR container="projects/456" - * Example: (container="projects/123" OR - * container="projects/456") AND location="us-east1" - * Example: full_resource_name=~"test" - * Example: full_resource_name=~"test.*master" + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` + * Example: `full_resource_name=~"test"` + * Example: `full_resource_name=~"test.*master"` * * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2514,12 +2516,13 @@ public com.google.cloud.databasecenter.v1beta.SignalFilter.Builder addSignalFilt * order. It only supports a single field at a time. * * For example: - * order_by = "full_resource_name" sorts response in ascending order - * order_by = "full_resource_name DESC" sorts response in descending order - * order_by = "issue_count DESC" sorts response in descending order of + * `order_by = "full_resource_name"` sorts response in ascending order + * `order_by = "full_resource_name DESC"` sorts response in descending order + * `order_by = "issue_count DESC"` sorts response in descending order of * count of all issues associated with a resource. * - * More explicitly, order_by = "full_resource_name, product" is not supported. + * More explicitly, `order_by = "full_resource_name, product"` is not + * supported. * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2576,12 +2579,13 @@ public java.lang.String getOrderBy() { * order. It only supports a single field at a time. * * For example: - * order_by = "full_resource_name" sorts response in ascending order - * order_by = "full_resource_name DESC" sorts response in descending order - * order_by = "issue_count DESC" sorts response in descending order of + * `order_by = "full_resource_name"` sorts response in ascending order + * `order_by = "full_resource_name DESC"` sorts response in descending order + * `order_by = "issue_count DESC"` sorts response in descending order of * count of all issues associated with a resource. * - * More explicitly, order_by = "full_resource_name, product" is not supported. + * More explicitly, `order_by = "full_resource_name, product"` is not + * supported. * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2638,12 +2642,13 @@ public com.google.protobuf.ByteString getOrderByBytes() { * order. It only supports a single field at a time. * * For example: - * order_by = "full_resource_name" sorts response in ascending order - * order_by = "full_resource_name DESC" sorts response in descending order - * order_by = "issue_count DESC" sorts response in descending order of + * `order_by = "full_resource_name"` sorts response in ascending order + * `order_by = "full_resource_name DESC"` sorts response in descending order + * `order_by = "issue_count DESC"` sorts response in descending order of * count of all issues associated with a resource. * - * More explicitly, order_by = "full_resource_name, product" is not supported. + * More explicitly, `order_by = "full_resource_name, product"` is not + * supported. * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2699,12 +2704,13 @@ public Builder setOrderBy(java.lang.String value) { * order. It only supports a single field at a time. * * For example: - * order_by = "full_resource_name" sorts response in ascending order - * order_by = "full_resource_name DESC" sorts response in descending order - * order_by = "issue_count DESC" sorts response in descending order of + * `order_by = "full_resource_name"` sorts response in ascending order + * `order_by = "full_resource_name DESC"` sorts response in descending order + * `order_by = "issue_count DESC"` sorts response in descending order of * count of all issues associated with a resource. * - * More explicitly, order_by = "full_resource_name, product" is not supported. + * More explicitly, `order_by = "full_resource_name, product"` is not + * supported. * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2756,12 +2762,13 @@ public Builder clearOrderBy() { * order. It only supports a single field at a time. * * For example: - * order_by = "full_resource_name" sorts response in ascending order - * order_by = "full_resource_name DESC" sorts response in descending order - * order_by = "issue_count DESC" sorts response in descending order of + * `order_by = "full_resource_name"` sorts response in ascending order + * `order_by = "full_resource_name DESC"` sorts response in descending order + * `order_by = "issue_count DESC"` sorts response in descending order of * count of all issues associated with a resource. * - * More explicitly, order_by = "full_resource_name, product" is not supported. + * More explicitly, `order_by = "full_resource_name, product"` is not + * supported. * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/QueryDatabaseResourceGroupsRequestOrBuilder.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/QueryDatabaseResourceGroupsRequestOrBuilder.java index dafba4d34f41..4303d75d7da7 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/QueryDatabaseResourceGroupsRequestOrBuilder.java +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/QueryDatabaseResourceGroupsRequestOrBuilder.java @@ -97,12 +97,12 @@ public interface QueryDatabaseResourceGroupsRequestOrBuilder * expression, parentheses must be appropriately used to group the * combinations. * - * Example: location="us-east1" - * Example: container="projects/123" OR container="projects/456" - * Example: (container="projects/123" OR - * container="projects/456") AND location="us-east1" - * Example: full_resource_name=~"test" - * Example: full_resource_name=~"test.*master" + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` + * Example: `full_resource_name=~"test"` + * Example: `full_resource_name=~"test.*master"` * * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -140,12 +140,12 @@ public interface QueryDatabaseResourceGroupsRequestOrBuilder * expression, parentheses must be appropriately used to group the * combinations. * - * Example: location="us-east1" - * Example: container="projects/123" OR container="projects/456" - * Example: (container="projects/123" OR - * container="projects/456") AND location="us-east1" - * Example: full_resource_name=~"test" - * Example: full_resource_name=~"test.*master" + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` + * Example: `full_resource_name=~"test"` + * Example: `full_resource_name=~"test.*master"` * * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -330,12 +330,13 @@ com.google.cloud.databasecenter.v1beta.SignalTypeGroupOrBuilder getSignalTypeGro * order. It only supports a single field at a time. * * For example: - * order_by = "full_resource_name" sorts response in ascending order - * order_by = "full_resource_name DESC" sorts response in descending order - * order_by = "issue_count DESC" sorts response in descending order of + * `order_by = "full_resource_name"` sorts response in ascending order + * `order_by = "full_resource_name DESC"` sorts response in descending order + * `order_by = "issue_count DESC"` sorts response in descending order of * count of all issues associated with a resource. * - * More explicitly, order_by = "full_resource_name, product" is not supported. + * More explicitly, `order_by = "full_resource_name, product"` is not + * supported. * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -382,12 +383,13 @@ com.google.cloud.databasecenter.v1beta.SignalTypeGroupOrBuilder getSignalTypeGro * order. It only supports a single field at a time. * * For example: - * order_by = "full_resource_name" sorts response in ascending order - * order_by = "full_resource_name DESC" sorts response in descending order - * order_by = "issue_count DESC" sorts response in descending order of + * `order_by = "full_resource_name"` sorts response in ascending order + * `order_by = "full_resource_name DESC"` sorts response in descending order + * `order_by = "issue_count DESC"` sorts response in descending order of * count of all issues associated with a resource. * - * More explicitly, order_by = "full_resource_name, product" is not supported. + * More explicitly, `order_by = "full_resource_name, product"` is not + * supported. * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/QueryIssuesRequest.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/QueryIssuesRequest.java new file mode 100644 index 000000000000..9741a94a406e --- /dev/null +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/QueryIssuesRequest.java @@ -0,0 +1,2061 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/databasecenter/v1beta/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.databasecenter.v1beta; + +/** + * + * + *
          + * QueryIssuesRequest is the request to get a list of issues.
          + * 
          + * + * Protobuf type {@code google.cloud.databasecenter.v1beta.QueryIssuesRequest} + */ +@com.google.protobuf.Generated +public final class QueryIssuesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.databasecenter.v1beta.QueryIssuesRequest) + QueryIssuesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryIssuesRequest"); + } + + // Use QueryIssuesRequest.newBuilder() to construct. + private QueryIssuesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QueryIssuesRequest() { + parent_ = ""; + filter_ = ""; + signalProductsFilters_ = java.util.Collections.emptyList(); + orderBy_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.databasecenter.v1beta.ServiceProto + .internal_static_google_cloud_databasecenter_v1beta_QueryIssuesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.databasecenter.v1beta.ServiceProto + .internal_static_google_cloud_databasecenter_v1beta_QueryIssuesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.databasecenter.v1beta.QueryIssuesRequest.class, + com.google.cloud.databasecenter.v1beta.QueryIssuesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
          +   * Required. Parent can be a project, a folder, or an organization. The list
          +   * is limited to the one attached to resources within the `scope` that a user
          +   * has access to.
          +   *
          +   * The allowed values are:
          +   *
          +   * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
          +   * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
          +   * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
          +   * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
          +   * 
          + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. Parent can be a project, a folder, or an organization. The list
          +   * is limited to the one attached to resources within the `scope` that a user
          +   * has access to.
          +   *
          +   * The allowed values are:
          +   *
          +   * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
          +   * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
          +   * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
          +   * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
          +   * 
          + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + @java.lang.Override + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
          +   * Optional.
          +   * Supported fields are:
          +   * 'product',
          +   * `location`,
          +   * `issue_severity`,
          +   * 'tags',
          +   * 'labels',
          +   * 
          + * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional.
          +   * Supported fields are:
          +   * 'product',
          +   * `location`,
          +   * `issue_severity`,
          +   * 'tags',
          +   * 'labels',
          +   * 
          + * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SIGNAL_PRODUCTS_FILTERS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List + signalProductsFilters_; + + /** + * + * + *
          +   * Optional. Filters based on signal and product. The filter list will be ORed
          +   * across pairs and ANDed within a signal and products pair.
          +   * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getSignalProductsFiltersList() { + return signalProductsFilters_; + } + + /** + * + * + *
          +   * Optional. Filters based on signal and product. The filter list will be ORed
          +   * across pairs and ANDed within a signal and products pair.
          +   * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.databasecenter.v1beta.SignalProductsFiltersOrBuilder> + getSignalProductsFiltersOrBuilderList() { + return signalProductsFilters_; + } + + /** + * + * + *
          +   * Optional. Filters based on signal and product. The filter list will be ORed
          +   * across pairs and ANDed within a signal and products pair.
          +   * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getSignalProductsFiltersCount() { + return signalProductsFilters_.size(); + } + + /** + * + * + *
          +   * Optional. Filters based on signal and product. The filter list will be ORed
          +   * across pairs and ANDed within a signal and products pair.
          +   * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.SignalProductsFilters getSignalProductsFilters( + int index) { + return signalProductsFilters_.get(index); + } + + /** + * + * + *
          +   * Optional. Filters based on signal and product. The filter list will be ORed
          +   * across pairs and ANDed within a signal and products pair.
          +   * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.SignalProductsFiltersOrBuilder + getSignalProductsFiltersOrBuilder(int index) { + return signalProductsFilters_.get(index); + } + + public static final int ORDER_BY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
          +   * Optional. Following fields are sortable:
          +   * SignalType
          +   * Product
          +   * Location
          +   * IssueSeverity
          +   *
          +   * The default order is ascending. Add "DESC" after the field name to indicate
          +   * descending order. Add "ASC" after the field name to indicate ascending
          +   * order. It only supports a single field at a time.
          +   * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. Following fields are sortable:
          +   * SignalType
          +   * Product
          +   * Location
          +   * IssueSeverity
          +   *
          +   * The default order is ascending. Add "DESC" after the field name to indicate
          +   * descending order. Add "ASC" after the field name to indicate ascending
          +   * order. It only supports a single field at a time.
          +   * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 5; + private int pageSize_ = 0; + + /** + * + * + *
          +   * Optional. If unspecified, at most 50 issues will be returned.
          +   * The maximum value is 1000; values above 1000 will be coerced to 1000.
          +   * 
          + * + * int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
          +   * Optional. A page token, received from a previous `QueryIssues` call.
          +   * Provide this to retrieve the subsequent page.
          +   * All parameters except page size should match the parameters used in the
          +   * call that provided the page token.
          +   * 
          + * + * string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. A page token, received from a previous `QueryIssues` call.
          +   * Provide this to retrieve the subsequent page.
          +   * All parameters except page size should match the parameters used in the
          +   * call that provided the page token.
          +   * 
          + * + * string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, filter_); + } + for (int i = 0; i < signalProductsFilters_.size(); i++) { + output.writeMessage(3, signalProductsFilters_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, orderBy_); + } + if (pageSize_ != 0) { + output.writeInt32(5, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, filter_); + } + for (int i = 0; i < signalProductsFilters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, signalProductsFilters_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, orderBy_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.databasecenter.v1beta.QueryIssuesRequest)) { + return super.equals(obj); + } + com.google.cloud.databasecenter.v1beta.QueryIssuesRequest other = + (com.google.cloud.databasecenter.v1beta.QueryIssuesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getSignalProductsFiltersList().equals(other.getSignalProductsFiltersList())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + if (getSignalProductsFiltersCount() > 0) { + hash = (37 * hash) + SIGNAL_PRODUCTS_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getSignalProductsFiltersList().hashCode(); + } + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.databasecenter.v1beta.QueryIssuesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.databasecenter.v1beta.QueryIssuesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.databasecenter.v1beta.QueryIssuesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.databasecenter.v1beta.QueryIssuesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.databasecenter.v1beta.QueryIssuesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.databasecenter.v1beta.QueryIssuesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.databasecenter.v1beta.QueryIssuesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.databasecenter.v1beta.QueryIssuesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.databasecenter.v1beta.QueryIssuesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.databasecenter.v1beta.QueryIssuesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.databasecenter.v1beta.QueryIssuesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.databasecenter.v1beta.QueryIssuesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.databasecenter.v1beta.QueryIssuesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * QueryIssuesRequest is the request to get a list of issues.
          +   * 
          + * + * Protobuf type {@code google.cloud.databasecenter.v1beta.QueryIssuesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.databasecenter.v1beta.QueryIssuesRequest) + com.google.cloud.databasecenter.v1beta.QueryIssuesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.databasecenter.v1beta.ServiceProto + .internal_static_google_cloud_databasecenter_v1beta_QueryIssuesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.databasecenter.v1beta.ServiceProto + .internal_static_google_cloud_databasecenter_v1beta_QueryIssuesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.databasecenter.v1beta.QueryIssuesRequest.class, + com.google.cloud.databasecenter.v1beta.QueryIssuesRequest.Builder.class); + } + + // Construct using com.google.cloud.databasecenter.v1beta.QueryIssuesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + filter_ = ""; + if (signalProductsFiltersBuilder_ == null) { + signalProductsFilters_ = java.util.Collections.emptyList(); + } else { + signalProductsFilters_ = null; + signalProductsFiltersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + orderBy_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.databasecenter.v1beta.ServiceProto + .internal_static_google_cloud_databasecenter_v1beta_QueryIssuesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.QueryIssuesRequest getDefaultInstanceForType() { + return com.google.cloud.databasecenter.v1beta.QueryIssuesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.QueryIssuesRequest build() { + com.google.cloud.databasecenter.v1beta.QueryIssuesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.QueryIssuesRequest buildPartial() { + com.google.cloud.databasecenter.v1beta.QueryIssuesRequest result = + new com.google.cloud.databasecenter.v1beta.QueryIssuesRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.databasecenter.v1beta.QueryIssuesRequest result) { + if (signalProductsFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + signalProductsFilters_ = java.util.Collections.unmodifiableList(signalProductsFilters_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.signalProductsFilters_ = signalProductsFilters_; + } else { + result.signalProductsFilters_ = signalProductsFiltersBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.databasecenter.v1beta.QueryIssuesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.databasecenter.v1beta.QueryIssuesRequest) { + return mergeFrom((com.google.cloud.databasecenter.v1beta.QueryIssuesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.databasecenter.v1beta.QueryIssuesRequest other) { + if (other == com.google.cloud.databasecenter.v1beta.QueryIssuesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (signalProductsFiltersBuilder_ == null) { + if (!other.signalProductsFilters_.isEmpty()) { + if (signalProductsFilters_.isEmpty()) { + signalProductsFilters_ = other.signalProductsFilters_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureSignalProductsFiltersIsMutable(); + signalProductsFilters_.addAll(other.signalProductsFilters_); + } + onChanged(); + } + } else { + if (!other.signalProductsFilters_.isEmpty()) { + if (signalProductsFiltersBuilder_.isEmpty()) { + signalProductsFiltersBuilder_.dispose(); + signalProductsFiltersBuilder_ = null; + signalProductsFilters_ = other.signalProductsFilters_; + bitField0_ = (bitField0_ & ~0x00000004); + signalProductsFiltersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSignalProductsFiltersFieldBuilder() + : null; + } else { + signalProductsFiltersBuilder_.addAllMessages(other.signalProductsFilters_); + } + } + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.databasecenter.v1beta.SignalProductsFilters m = + input.readMessage( + com.google.cloud.databasecenter.v1beta.SignalProductsFilters.parser(), + extensionRegistry); + if (signalProductsFiltersBuilder_ == null) { + ensureSignalProductsFiltersIsMutable(); + signalProductsFilters_.add(m); + } else { + signalProductsFiltersBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
          +     * Required. Parent can be a project, a folder, or an organization. The list
          +     * is limited to the one attached to resources within the `scope` that a user
          +     * has access to.
          +     *
          +     * The allowed values are:
          +     *
          +     * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
          +     * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
          +     * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
          +     * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
          +     * 
          + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. Parent can be a project, a folder, or an organization. The list
          +     * is limited to the one attached to resources within the `scope` that a user
          +     * has access to.
          +     *
          +     * The allowed values are:
          +     *
          +     * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
          +     * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
          +     * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
          +     * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
          +     * 
          + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. Parent can be a project, a folder, or an organization. The list
          +     * is limited to the one attached to resources within the `scope` that a user
          +     * has access to.
          +     *
          +     * The allowed values are:
          +     *
          +     * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
          +     * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
          +     * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
          +     * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
          +     * 
          + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Parent can be a project, a folder, or an organization. The list
          +     * is limited to the one attached to resources within the `scope` that a user
          +     * has access to.
          +     *
          +     * The allowed values are:
          +     *
          +     * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
          +     * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
          +     * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
          +     * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
          +     * 
          + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Parent can be a project, a folder, or an organization. The list
          +     * is limited to the one attached to resources within the `scope` that a user
          +     * has access to.
          +     *
          +     * The allowed values are:
          +     *
          +     * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
          +     * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
          +     * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
          +     * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
          +     * 
          + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
          +     * Optional.
          +     * Supported fields are:
          +     * 'product',
          +     * `location`,
          +     * `issue_severity`,
          +     * 'tags',
          +     * 'labels',
          +     * 
          + * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional.
          +     * Supported fields are:
          +     * 'product',
          +     * `location`,
          +     * `issue_severity`,
          +     * 'tags',
          +     * 'labels',
          +     * 
          + * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional.
          +     * Supported fields are:
          +     * 'product',
          +     * `location`,
          +     * `issue_severity`,
          +     * 'tags',
          +     * 'labels',
          +     * 
          + * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional.
          +     * Supported fields are:
          +     * 'product',
          +     * `location`,
          +     * `issue_severity`,
          +     * 'tags',
          +     * 'labels',
          +     * 
          + * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional.
          +     * Supported fields are:
          +     * 'product',
          +     * `location`,
          +     * `issue_severity`,
          +     * 'tags',
          +     * 'labels',
          +     * 
          + * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List + signalProductsFilters_ = java.util.Collections.emptyList(); + + private void ensureSignalProductsFiltersIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + signalProductsFilters_ = + new java.util.ArrayList( + signalProductsFilters_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.databasecenter.v1beta.SignalProductsFilters, + com.google.cloud.databasecenter.v1beta.SignalProductsFilters.Builder, + com.google.cloud.databasecenter.v1beta.SignalProductsFiltersOrBuilder> + signalProductsFiltersBuilder_; + + /** + * + * + *
          +     * Optional. Filters based on signal and product. The filter list will be ORed
          +     * across pairs and ANDed within a signal and products pair.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getSignalProductsFiltersList() { + if (signalProductsFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(signalProductsFilters_); + } else { + return signalProductsFiltersBuilder_.getMessageList(); + } + } + + /** + * + * + *
          +     * Optional. Filters based on signal and product. The filter list will be ORed
          +     * across pairs and ANDed within a signal and products pair.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getSignalProductsFiltersCount() { + if (signalProductsFiltersBuilder_ == null) { + return signalProductsFilters_.size(); + } else { + return signalProductsFiltersBuilder_.getCount(); + } + } + + /** + * + * + *
          +     * Optional. Filters based on signal and product. The filter list will be ORed
          +     * across pairs and ANDed within a signal and products pair.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.databasecenter.v1beta.SignalProductsFilters getSignalProductsFilters( + int index) { + if (signalProductsFiltersBuilder_ == null) { + return signalProductsFilters_.get(index); + } else { + return signalProductsFiltersBuilder_.getMessage(index); + } + } + + /** + * + * + *
          +     * Optional. Filters based on signal and product. The filter list will be ORed
          +     * across pairs and ANDed within a signal and products pair.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSignalProductsFilters( + int index, com.google.cloud.databasecenter.v1beta.SignalProductsFilters value) { + if (signalProductsFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSignalProductsFiltersIsMutable(); + signalProductsFilters_.set(index, value); + onChanged(); + } else { + signalProductsFiltersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * Optional. Filters based on signal and product. The filter list will be ORed
          +     * across pairs and ANDed within a signal and products pair.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSignalProductsFilters( + int index, + com.google.cloud.databasecenter.v1beta.SignalProductsFilters.Builder builderForValue) { + if (signalProductsFiltersBuilder_ == null) { + ensureSignalProductsFiltersIsMutable(); + signalProductsFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + signalProductsFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Optional. Filters based on signal and product. The filter list will be ORed
          +     * across pairs and ANDed within a signal and products pair.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSignalProductsFilters( + com.google.cloud.databasecenter.v1beta.SignalProductsFilters value) { + if (signalProductsFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSignalProductsFiltersIsMutable(); + signalProductsFilters_.add(value); + onChanged(); + } else { + signalProductsFiltersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
          +     * Optional. Filters based on signal and product. The filter list will be ORed
          +     * across pairs and ANDed within a signal and products pair.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSignalProductsFilters( + int index, com.google.cloud.databasecenter.v1beta.SignalProductsFilters value) { + if (signalProductsFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSignalProductsFiltersIsMutable(); + signalProductsFilters_.add(index, value); + onChanged(); + } else { + signalProductsFiltersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * Optional. Filters based on signal and product. The filter list will be ORed
          +     * across pairs and ANDed within a signal and products pair.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSignalProductsFilters( + com.google.cloud.databasecenter.v1beta.SignalProductsFilters.Builder builderForValue) { + if (signalProductsFiltersBuilder_ == null) { + ensureSignalProductsFiltersIsMutable(); + signalProductsFilters_.add(builderForValue.build()); + onChanged(); + } else { + signalProductsFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Optional. Filters based on signal and product. The filter list will be ORed
          +     * across pairs and ANDed within a signal and products pair.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSignalProductsFilters( + int index, + com.google.cloud.databasecenter.v1beta.SignalProductsFilters.Builder builderForValue) { + if (signalProductsFiltersBuilder_ == null) { + ensureSignalProductsFiltersIsMutable(); + signalProductsFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + signalProductsFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Optional. Filters based on signal and product. The filter list will be ORed
          +     * across pairs and ANDed within a signal and products pair.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllSignalProductsFilters( + java.lang.Iterable + values) { + if (signalProductsFiltersBuilder_ == null) { + ensureSignalProductsFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, signalProductsFilters_); + onChanged(); + } else { + signalProductsFiltersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
          +     * Optional. Filters based on signal and product. The filter list will be ORed
          +     * across pairs and ANDed within a signal and products pair.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSignalProductsFilters() { + if (signalProductsFiltersBuilder_ == null) { + signalProductsFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + signalProductsFiltersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +     * Optional. Filters based on signal and product. The filter list will be ORed
          +     * across pairs and ANDed within a signal and products pair.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeSignalProductsFilters(int index) { + if (signalProductsFiltersBuilder_ == null) { + ensureSignalProductsFiltersIsMutable(); + signalProductsFilters_.remove(index); + onChanged(); + } else { + signalProductsFiltersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
          +     * Optional. Filters based on signal and product. The filter list will be ORed
          +     * across pairs and ANDed within a signal and products pair.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.databasecenter.v1beta.SignalProductsFilters.Builder + getSignalProductsFiltersBuilder(int index) { + return internalGetSignalProductsFiltersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
          +     * Optional. Filters based on signal and product. The filter list will be ORed
          +     * across pairs and ANDed within a signal and products pair.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.databasecenter.v1beta.SignalProductsFiltersOrBuilder + getSignalProductsFiltersOrBuilder(int index) { + if (signalProductsFiltersBuilder_ == null) { + return signalProductsFilters_.get(index); + } else { + return signalProductsFiltersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
          +     * Optional. Filters based on signal and product. The filter list will be ORed
          +     * across pairs and ANDed within a signal and products pair.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.databasecenter.v1beta.SignalProductsFiltersOrBuilder> + getSignalProductsFiltersOrBuilderList() { + if (signalProductsFiltersBuilder_ != null) { + return signalProductsFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(signalProductsFilters_); + } + } + + /** + * + * + *
          +     * Optional. Filters based on signal and product. The filter list will be ORed
          +     * across pairs and ANDed within a signal and products pair.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.databasecenter.v1beta.SignalProductsFilters.Builder + addSignalProductsFiltersBuilder() { + return internalGetSignalProductsFiltersFieldBuilder() + .addBuilder( + com.google.cloud.databasecenter.v1beta.SignalProductsFilters.getDefaultInstance()); + } + + /** + * + * + *
          +     * Optional. Filters based on signal and product. The filter list will be ORed
          +     * across pairs and ANDed within a signal and products pair.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.databasecenter.v1beta.SignalProductsFilters.Builder + addSignalProductsFiltersBuilder(int index) { + return internalGetSignalProductsFiltersFieldBuilder() + .addBuilder( + index, + com.google.cloud.databasecenter.v1beta.SignalProductsFilters.getDefaultInstance()); + } + + /** + * + * + *
          +     * Optional. Filters based on signal and product. The filter list will be ORed
          +     * across pairs and ANDed within a signal and products pair.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getSignalProductsFiltersBuilderList() { + return internalGetSignalProductsFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.databasecenter.v1beta.SignalProductsFilters, + com.google.cloud.databasecenter.v1beta.SignalProductsFilters.Builder, + com.google.cloud.databasecenter.v1beta.SignalProductsFiltersOrBuilder> + internalGetSignalProductsFiltersFieldBuilder() { + if (signalProductsFiltersBuilder_ == null) { + signalProductsFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.databasecenter.v1beta.SignalProductsFilters, + com.google.cloud.databasecenter.v1beta.SignalProductsFilters.Builder, + com.google.cloud.databasecenter.v1beta.SignalProductsFiltersOrBuilder>( + signalProductsFilters_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + signalProductsFilters_ = null; + } + return signalProductsFiltersBuilder_; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
          +     * Optional. Following fields are sortable:
          +     * SignalType
          +     * Product
          +     * Location
          +     * IssueSeverity
          +     *
          +     * The default order is ascending. Add "DESC" after the field name to indicate
          +     * descending order. Add "ASC" after the field name to indicate ascending
          +     * order. It only supports a single field at a time.
          +     * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. Following fields are sortable:
          +     * SignalType
          +     * Product
          +     * Location
          +     * IssueSeverity
          +     *
          +     * The default order is ascending. Add "DESC" after the field name to indicate
          +     * descending order. Add "ASC" after the field name to indicate ascending
          +     * order. It only supports a single field at a time.
          +     * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. Following fields are sortable:
          +     * SignalType
          +     * Product
          +     * Location
          +     * IssueSeverity
          +     *
          +     * The default order is ascending. Add "DESC" after the field name to indicate
          +     * descending order. Add "ASC" after the field name to indicate ascending
          +     * order. It only supports a single field at a time.
          +     * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Following fields are sortable:
          +     * SignalType
          +     * Product
          +     * Location
          +     * IssueSeverity
          +     *
          +     * The default order is ascending. Add "DESC" after the field name to indicate
          +     * descending order. Add "ASC" after the field name to indicate ascending
          +     * order. It only supports a single field at a time.
          +     * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Following fields are sortable:
          +     * SignalType
          +     * Product
          +     * Location
          +     * IssueSeverity
          +     *
          +     * The default order is ascending. Add "DESC" after the field name to indicate
          +     * descending order. Add "ASC" after the field name to indicate ascending
          +     * order. It only supports a single field at a time.
          +     * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
          +     * Optional. If unspecified, at most 50 issues will be returned.
          +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
          +     * 
          + * + * int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
          +     * Optional. If unspecified, at most 50 issues will be returned.
          +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
          +     * 
          + * + * int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. If unspecified, at most 50 issues will be returned.
          +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
          +     * 
          + * + * int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000010); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
          +     * Optional. A page token, received from a previous `QueryIssues` call.
          +     * Provide this to retrieve the subsequent page.
          +     * All parameters except page size should match the parameters used in the
          +     * call that provided the page token.
          +     * 
          + * + * string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. A page token, received from a previous `QueryIssues` call.
          +     * Provide this to retrieve the subsequent page.
          +     * All parameters except page size should match the parameters used in the
          +     * call that provided the page token.
          +     * 
          + * + * string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. A page token, received from a previous `QueryIssues` call.
          +     * Provide this to retrieve the subsequent page.
          +     * All parameters except page size should match the parameters used in the
          +     * call that provided the page token.
          +     * 
          + * + * string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. A page token, received from a previous `QueryIssues` call.
          +     * Provide this to retrieve the subsequent page.
          +     * All parameters except page size should match the parameters used in the
          +     * call that provided the page token.
          +     * 
          + * + * string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. A page token, received from a previous `QueryIssues` call.
          +     * Provide this to retrieve the subsequent page.
          +     * All parameters except page size should match the parameters used in the
          +     * call that provided the page token.
          +     * 
          + * + * string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.databasecenter.v1beta.QueryIssuesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.databasecenter.v1beta.QueryIssuesRequest) + private static final com.google.cloud.databasecenter.v1beta.QueryIssuesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.databasecenter.v1beta.QueryIssuesRequest(); + } + + public static com.google.cloud.databasecenter.v1beta.QueryIssuesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryIssuesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.QueryIssuesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/QueryIssuesRequestOrBuilder.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/QueryIssuesRequestOrBuilder.java new file mode 100644 index 000000000000..da75a79c94d1 --- /dev/null +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/QueryIssuesRequestOrBuilder.java @@ -0,0 +1,271 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/databasecenter/v1beta/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.databasecenter.v1beta; + +@com.google.protobuf.Generated +public interface QueryIssuesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.databasecenter.v1beta.QueryIssuesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. Parent can be a project, a folder, or an organization. The list
          +   * is limited to the one attached to resources within the `scope` that a user
          +   * has access to.
          +   *
          +   * The allowed values are:
          +   *
          +   * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
          +   * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
          +   * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
          +   * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
          +   * 
          + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
          +   * Required. Parent can be a project, a folder, or an organization. The list
          +   * is limited to the one attached to resources within the `scope` that a user
          +   * has access to.
          +   *
          +   * The allowed values are:
          +   *
          +   * * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
          +   * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
          +   * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
          +   * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
          +   * 
          + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
          +   * Optional.
          +   * Supported fields are:
          +   * 'product',
          +   * `location`,
          +   * `issue_severity`,
          +   * 'tags',
          +   * 'labels',
          +   * 
          + * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
          +   * Optional.
          +   * Supported fields are:
          +   * 'product',
          +   * `location`,
          +   * `issue_severity`,
          +   * 'tags',
          +   * 'labels',
          +   * 
          + * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
          +   * Optional. Filters based on signal and product. The filter list will be ORed
          +   * across pairs and ANDed within a signal and products pair.
          +   * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getSignalProductsFiltersList(); + + /** + * + * + *
          +   * Optional. Filters based on signal and product. The filter list will be ORed
          +   * across pairs and ANDed within a signal and products pair.
          +   * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.databasecenter.v1beta.SignalProductsFilters getSignalProductsFilters(int index); + + /** + * + * + *
          +   * Optional. Filters based on signal and product. The filter list will be ORed
          +   * across pairs and ANDed within a signal and products pair.
          +   * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getSignalProductsFiltersCount(); + + /** + * + * + *
          +   * Optional. Filters based on signal and product. The filter list will be ORed
          +   * across pairs and ANDed within a signal and products pair.
          +   * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getSignalProductsFiltersOrBuilderList(); + + /** + * + * + *
          +   * Optional. Filters based on signal and product. The filter list will be ORed
          +   * across pairs and ANDed within a signal and products pair.
          +   * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.databasecenter.v1beta.SignalProductsFiltersOrBuilder + getSignalProductsFiltersOrBuilder(int index); + + /** + * + * + *
          +   * Optional. Following fields are sortable:
          +   * SignalType
          +   * Product
          +   * Location
          +   * IssueSeverity
          +   *
          +   * The default order is ascending. Add "DESC" after the field name to indicate
          +   * descending order. Add "ASC" after the field name to indicate ascending
          +   * order. It only supports a single field at a time.
          +   * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
          +   * Optional. Following fields are sortable:
          +   * SignalType
          +   * Product
          +   * Location
          +   * IssueSeverity
          +   *
          +   * The default order is ascending. Add "DESC" after the field name to indicate
          +   * descending order. Add "ASC" after the field name to indicate ascending
          +   * order. It only supports a single field at a time.
          +   * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
          +   * Optional. If unspecified, at most 50 issues will be returned.
          +   * The maximum value is 1000; values above 1000 will be coerced to 1000.
          +   * 
          + * + * int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
          +   * Optional. A page token, received from a previous `QueryIssues` call.
          +   * Provide this to retrieve the subsequent page.
          +   * All parameters except page size should match the parameters used in the
          +   * call that provided the page token.
          +   * 
          + * + * string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
          +   * Optional. A page token, received from a previous `QueryIssues` call.
          +   * Provide this to retrieve the subsequent page.
          +   * All parameters except page size should match the parameters used in the
          +   * call that provided the page token.
          +   * 
          + * + * string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/QueryIssuesResponse.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/QueryIssuesResponse.java new file mode 100644 index 000000000000..d2d01672c642 --- /dev/null +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/QueryIssuesResponse.java @@ -0,0 +1,1472 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/databasecenter/v1beta/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.databasecenter.v1beta; + +/** + * + * + *
          + * QueryIssuesResponse is the response containing a list of issues.
          + * 
          + * + * Protobuf type {@code google.cloud.databasecenter.v1beta.QueryIssuesResponse} + */ +@com.google.protobuf.Generated +public final class QueryIssuesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.databasecenter.v1beta.QueryIssuesResponse) + QueryIssuesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryIssuesResponse"); + } + + // Use QueryIssuesResponse.newBuilder() to construct. + private QueryIssuesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QueryIssuesResponse() { + resourceIssues_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.databasecenter.v1beta.ServiceProto + .internal_static_google_cloud_databasecenter_v1beta_QueryIssuesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.databasecenter.v1beta.ServiceProto + .internal_static_google_cloud_databasecenter_v1beta_QueryIssuesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.databasecenter.v1beta.QueryIssuesResponse.class, + com.google.cloud.databasecenter.v1beta.QueryIssuesResponse.Builder.class); + } + + public static final int RESOURCE_ISSUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + resourceIssues_; + + /** + * + * + *
          +   * List of issues and resource details.
          +   * 
          + * + * repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; + * + */ + @java.lang.Override + public java.util.List + getResourceIssuesList() { + return resourceIssues_; + } + + /** + * + * + *
          +   * List of issues and resource details.
          +   * 
          + * + * repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.databasecenter.v1beta.DatabaseResourceIssueOrBuilder> + getResourceIssuesOrBuilderList() { + return resourceIssues_; + } + + /** + * + * + *
          +   * List of issues and resource details.
          +   * 
          + * + * repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; + * + */ + @java.lang.Override + public int getResourceIssuesCount() { + return resourceIssues_.size(); + } + + /** + * + * + *
          +   * List of issues and resource details.
          +   * 
          + * + * repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; + * + */ + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue getResourceIssues(int index) { + return resourceIssues_.get(index); + } + + /** + * + * + *
          +   * List of issues and resource details.
          +   * 
          + * + * repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; + * + */ + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.DatabaseResourceIssueOrBuilder + getResourceIssuesOrBuilder(int index) { + return resourceIssues_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
          +   * A token that can be sent as `page_token` to retrieve the next page.
          +   * If this field is omitted, there are no subsequent pages.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
          +   * A token that can be sent as `page_token` to retrieve the next page.
          +   * If this field is omitted, there are no subsequent pages.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
          +   * Unordered list. List of unreachable regions from where data could not be
          +   * retrieved.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
          +   * Unordered list. List of unreachable regions from where data could not be
          +   * retrieved.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
          +   * Unordered list. List of unreachable regions from where data could not be
          +   * retrieved.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
          +   * Unordered list. List of unreachable regions from where data could not be
          +   * retrieved.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < resourceIssues_.size(); i++) { + output.writeMessage(1, resourceIssues_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < resourceIssues_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, resourceIssues_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.databasecenter.v1beta.QueryIssuesResponse)) { + return super.equals(obj); + } + com.google.cloud.databasecenter.v1beta.QueryIssuesResponse other = + (com.google.cloud.databasecenter.v1beta.QueryIssuesResponse) obj; + + if (!getResourceIssuesList().equals(other.getResourceIssuesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getResourceIssuesCount() > 0) { + hash = (37 * hash) + RESOURCE_ISSUES_FIELD_NUMBER; + hash = (53 * hash) + getResourceIssuesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.databasecenter.v1beta.QueryIssuesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.databasecenter.v1beta.QueryIssuesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.databasecenter.v1beta.QueryIssuesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.databasecenter.v1beta.QueryIssuesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.databasecenter.v1beta.QueryIssuesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.databasecenter.v1beta.QueryIssuesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.databasecenter.v1beta.QueryIssuesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.databasecenter.v1beta.QueryIssuesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.databasecenter.v1beta.QueryIssuesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.databasecenter.v1beta.QueryIssuesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.databasecenter.v1beta.QueryIssuesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.databasecenter.v1beta.QueryIssuesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.databasecenter.v1beta.QueryIssuesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * QueryIssuesResponse is the response containing a list of issues.
          +   * 
          + * + * Protobuf type {@code google.cloud.databasecenter.v1beta.QueryIssuesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.databasecenter.v1beta.QueryIssuesResponse) + com.google.cloud.databasecenter.v1beta.QueryIssuesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.databasecenter.v1beta.ServiceProto + .internal_static_google_cloud_databasecenter_v1beta_QueryIssuesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.databasecenter.v1beta.ServiceProto + .internal_static_google_cloud_databasecenter_v1beta_QueryIssuesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.databasecenter.v1beta.QueryIssuesResponse.class, + com.google.cloud.databasecenter.v1beta.QueryIssuesResponse.Builder.class); + } + + // Construct using com.google.cloud.databasecenter.v1beta.QueryIssuesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (resourceIssuesBuilder_ == null) { + resourceIssues_ = java.util.Collections.emptyList(); + } else { + resourceIssues_ = null; + resourceIssuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.databasecenter.v1beta.ServiceProto + .internal_static_google_cloud_databasecenter_v1beta_QueryIssuesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.QueryIssuesResponse getDefaultInstanceForType() { + return com.google.cloud.databasecenter.v1beta.QueryIssuesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.QueryIssuesResponse build() { + com.google.cloud.databasecenter.v1beta.QueryIssuesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.QueryIssuesResponse buildPartial() { + com.google.cloud.databasecenter.v1beta.QueryIssuesResponse result = + new com.google.cloud.databasecenter.v1beta.QueryIssuesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.databasecenter.v1beta.QueryIssuesResponse result) { + if (resourceIssuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + resourceIssues_ = java.util.Collections.unmodifiableList(resourceIssues_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.resourceIssues_ = resourceIssues_; + } else { + result.resourceIssues_ = resourceIssuesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.databasecenter.v1beta.QueryIssuesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.databasecenter.v1beta.QueryIssuesResponse) { + return mergeFrom((com.google.cloud.databasecenter.v1beta.QueryIssuesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.databasecenter.v1beta.QueryIssuesResponse other) { + if (other == com.google.cloud.databasecenter.v1beta.QueryIssuesResponse.getDefaultInstance()) + return this; + if (resourceIssuesBuilder_ == null) { + if (!other.resourceIssues_.isEmpty()) { + if (resourceIssues_.isEmpty()) { + resourceIssues_ = other.resourceIssues_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResourceIssuesIsMutable(); + resourceIssues_.addAll(other.resourceIssues_); + } + onChanged(); + } + } else { + if (!other.resourceIssues_.isEmpty()) { + if (resourceIssuesBuilder_.isEmpty()) { + resourceIssuesBuilder_.dispose(); + resourceIssuesBuilder_ = null; + resourceIssues_ = other.resourceIssues_; + bitField0_ = (bitField0_ & ~0x00000001); + resourceIssuesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetResourceIssuesFieldBuilder() + : null; + } else { + resourceIssuesBuilder_.addAllMessages(other.resourceIssues_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue m = + input.readMessage( + com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue.parser(), + extensionRegistry); + if (resourceIssuesBuilder_ == null) { + ensureResourceIssuesIsMutable(); + resourceIssues_.add(m); + } else { + resourceIssuesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + resourceIssues_ = java.util.Collections.emptyList(); + + private void ensureResourceIssuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + resourceIssues_ = + new java.util.ArrayList( + resourceIssues_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue, + com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue.Builder, + com.google.cloud.databasecenter.v1beta.DatabaseResourceIssueOrBuilder> + resourceIssuesBuilder_; + + /** + * + * + *
          +     * List of issues and resource details.
          +     * 
          + * + * repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; + * + */ + public java.util.List + getResourceIssuesList() { + if (resourceIssuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(resourceIssues_); + } else { + return resourceIssuesBuilder_.getMessageList(); + } + } + + /** + * + * + *
          +     * List of issues and resource details.
          +     * 
          + * + * repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; + * + */ + public int getResourceIssuesCount() { + if (resourceIssuesBuilder_ == null) { + return resourceIssues_.size(); + } else { + return resourceIssuesBuilder_.getCount(); + } + } + + /** + * + * + *
          +     * List of issues and resource details.
          +     * 
          + * + * repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; + * + */ + public com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue getResourceIssues( + int index) { + if (resourceIssuesBuilder_ == null) { + return resourceIssues_.get(index); + } else { + return resourceIssuesBuilder_.getMessage(index); + } + } + + /** + * + * + *
          +     * List of issues and resource details.
          +     * 
          + * + * repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; + * + */ + public Builder setResourceIssues( + int index, com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue value) { + if (resourceIssuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceIssuesIsMutable(); + resourceIssues_.set(index, value); + onChanged(); + } else { + resourceIssuesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * List of issues and resource details.
          +     * 
          + * + * repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; + * + */ + public Builder setResourceIssues( + int index, + com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue.Builder builderForValue) { + if (resourceIssuesBuilder_ == null) { + ensureResourceIssuesIsMutable(); + resourceIssues_.set(index, builderForValue.build()); + onChanged(); + } else { + resourceIssuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * List of issues and resource details.
          +     * 
          + * + * repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; + * + */ + public Builder addResourceIssues( + com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue value) { + if (resourceIssuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceIssuesIsMutable(); + resourceIssues_.add(value); + onChanged(); + } else { + resourceIssuesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
          +     * List of issues and resource details.
          +     * 
          + * + * repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; + * + */ + public Builder addResourceIssues( + int index, com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue value) { + if (resourceIssuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceIssuesIsMutable(); + resourceIssues_.add(index, value); + onChanged(); + } else { + resourceIssuesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * List of issues and resource details.
          +     * 
          + * + * repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; + * + */ + public Builder addResourceIssues( + com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue.Builder builderForValue) { + if (resourceIssuesBuilder_ == null) { + ensureResourceIssuesIsMutable(); + resourceIssues_.add(builderForValue.build()); + onChanged(); + } else { + resourceIssuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * List of issues and resource details.
          +     * 
          + * + * repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; + * + */ + public Builder addResourceIssues( + int index, + com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue.Builder builderForValue) { + if (resourceIssuesBuilder_ == null) { + ensureResourceIssuesIsMutable(); + resourceIssues_.add(index, builderForValue.build()); + onChanged(); + } else { + resourceIssuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * List of issues and resource details.
          +     * 
          + * + * repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; + * + */ + public Builder addAllResourceIssues( + java.lang.Iterable + values) { + if (resourceIssuesBuilder_ == null) { + ensureResourceIssuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceIssues_); + onChanged(); + } else { + resourceIssuesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
          +     * List of issues and resource details.
          +     * 
          + * + * repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; + * + */ + public Builder clearResourceIssues() { + if (resourceIssuesBuilder_ == null) { + resourceIssues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + resourceIssuesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +     * List of issues and resource details.
          +     * 
          + * + * repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; + * + */ + public Builder removeResourceIssues(int index) { + if (resourceIssuesBuilder_ == null) { + ensureResourceIssuesIsMutable(); + resourceIssues_.remove(index); + onChanged(); + } else { + resourceIssuesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
          +     * List of issues and resource details.
          +     * 
          + * + * repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; + * + */ + public com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue.Builder + getResourceIssuesBuilder(int index) { + return internalGetResourceIssuesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
          +     * List of issues and resource details.
          +     * 
          + * + * repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; + * + */ + public com.google.cloud.databasecenter.v1beta.DatabaseResourceIssueOrBuilder + getResourceIssuesOrBuilder(int index) { + if (resourceIssuesBuilder_ == null) { + return resourceIssues_.get(index); + } else { + return resourceIssuesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
          +     * List of issues and resource details.
          +     * 
          + * + * repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.databasecenter.v1beta.DatabaseResourceIssueOrBuilder> + getResourceIssuesOrBuilderList() { + if (resourceIssuesBuilder_ != null) { + return resourceIssuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(resourceIssues_); + } + } + + /** + * + * + *
          +     * List of issues and resource details.
          +     * 
          + * + * repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; + * + */ + public com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue.Builder + addResourceIssuesBuilder() { + return internalGetResourceIssuesFieldBuilder() + .addBuilder( + com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue.getDefaultInstance()); + } + + /** + * + * + *
          +     * List of issues and resource details.
          +     * 
          + * + * repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; + * + */ + public com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue.Builder + addResourceIssuesBuilder(int index) { + return internalGetResourceIssuesFieldBuilder() + .addBuilder( + index, + com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue.getDefaultInstance()); + } + + /** + * + * + *
          +     * List of issues and resource details.
          +     * 
          + * + * repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; + * + */ + public java.util.List + getResourceIssuesBuilderList() { + return internalGetResourceIssuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue, + com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue.Builder, + com.google.cloud.databasecenter.v1beta.DatabaseResourceIssueOrBuilder> + internalGetResourceIssuesFieldBuilder() { + if (resourceIssuesBuilder_ == null) { + resourceIssuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue, + com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue.Builder, + com.google.cloud.databasecenter.v1beta.DatabaseResourceIssueOrBuilder>( + resourceIssues_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + resourceIssues_ = null; + } + return resourceIssuesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
          +     * A token that can be sent as `page_token` to retrieve the next page.
          +     * If this field is omitted, there are no subsequent pages.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * A token that can be sent as `page_token` to retrieve the next page.
          +     * If this field is omitted, there are no subsequent pages.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * A token that can be sent as `page_token` to retrieve the next page.
          +     * If this field is omitted, there are no subsequent pages.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * A token that can be sent as `page_token` to retrieve the next page.
          +     * If this field is omitted, there are no subsequent pages.
          +     * 
          + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * A token that can be sent as `page_token` to retrieve the next page.
          +     * If this field is omitted, there are no subsequent pages.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
          +     * Unordered list. List of unreachable regions from where data could not be
          +     * retrieved.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
          +     * Unordered list. List of unreachable regions from where data could not be
          +     * retrieved.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
          +     * Unordered list. List of unreachable regions from where data could not be
          +     * retrieved.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
          +     * Unordered list. List of unreachable regions from where data could not be
          +     * retrieved.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
          +     * Unordered list. List of unreachable regions from where data could not be
          +     * retrieved.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. List of unreachable regions from where data could not be
          +     * retrieved.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. List of unreachable regions from where data could not be
          +     * retrieved.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. List of unreachable regions from where data could not be
          +     * retrieved.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Unordered list. List of unreachable regions from where data could not be
          +     * retrieved.
          +     * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.databasecenter.v1beta.QueryIssuesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.databasecenter.v1beta.QueryIssuesResponse) + private static final com.google.cloud.databasecenter.v1beta.QueryIssuesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.databasecenter.v1beta.QueryIssuesResponse(); + } + + public static com.google.cloud.databasecenter.v1beta.QueryIssuesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryIssuesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.QueryIssuesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/QueryIssuesResponseOrBuilder.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/QueryIssuesResponseOrBuilder.java new file mode 100644 index 000000000000..4064ff1f74c2 --- /dev/null +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/QueryIssuesResponseOrBuilder.java @@ -0,0 +1,177 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/databasecenter/v1beta/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.databasecenter.v1beta; + +@com.google.protobuf.Generated +public interface QueryIssuesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.databasecenter.v1beta.QueryIssuesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * List of issues and resource details.
          +   * 
          + * + * repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; + * + */ + java.util.List + getResourceIssuesList(); + + /** + * + * + *
          +   * List of issues and resource details.
          +   * 
          + * + * repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; + * + */ + com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue getResourceIssues(int index); + + /** + * + * + *
          +   * List of issues and resource details.
          +   * 
          + * + * repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; + * + */ + int getResourceIssuesCount(); + + /** + * + * + *
          +   * List of issues and resource details.
          +   * 
          + * + * repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; + * + */ + java.util.List + getResourceIssuesOrBuilderList(); + + /** + * + * + *
          +   * List of issues and resource details.
          +   * 
          + * + * repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; + * + */ + com.google.cloud.databasecenter.v1beta.DatabaseResourceIssueOrBuilder getResourceIssuesOrBuilder( + int index); + + /** + * + * + *
          +   * A token that can be sent as `page_token` to retrieve the next page.
          +   * If this field is omitted, there are no subsequent pages.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
          +   * A token that can be sent as `page_token` to retrieve the next page.
          +   * If this field is omitted, there are no subsequent pages.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
          +   * Unordered list. List of unreachable regions from where data could not be
          +   * retrieved.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
          +   * Unordered list. List of unreachable regions from where data could not be
          +   * retrieved.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
          +   * Unordered list. List of unreachable regions from where data could not be
          +   * retrieved.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
          +   * Unordered list. List of unreachable regions from where data could not be
          +   * retrieved.
          +   * 
          + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/ServiceProto.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/ServiceProto.java index c0371568976d..a6b3cfd3dd63 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/ServiceProto.java +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/ServiceProto.java @@ -104,6 +104,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_databasecenter_v1beta_BackupDRConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_databasecenter_v1beta_BackupDRConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_databasecenter_v1beta_QueryIssuesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_databasecenter_v1beta_QueryIssuesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_databasecenter_v1beta_SignalProductsFilters_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_databasecenter_v1beta_SignalProductsFilters_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_databasecenter_v1beta_QueryIssuesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_databasecenter_v1beta_QueryIssuesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_databasecenter_v1beta_DatabaseResourceIssue_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_databasecenter_v1beta_DatabaseResourceIssue_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_databasecenter_v1beta_Tag_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -277,7 +293,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tdimension\"D\n" + "\016BackupDRConfig\022\035\n" + "\020backupdr_managed\030\001 \001(\010H\000\210\001\001B\023\n" - + "\021_backupdr_managed\"D\n" + + "\021_backupdr_managed\"\347\001\n" + + "\022QueryIssuesRequest\022\023\n" + + "\006parent\030\001 \001(\tB\003\340A\002\022\023\n" + + "\006filter\030\002 \001(\tB\003\340A\001\022_\n" + + "\027signal_products_filters\030\003" + + " \003(\01329.google.cloud.databasecenter.v1beta.SignalProductsFiltersB\003\340A\001\022\025\n" + + "\010order_by\030\004 \001(\tB\003\340A\001\022\026\n" + + "\tpage_size\030\005 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\006 \001(\tB\003\340A\001\"\245\001\n" + + "\025SignalProductsFilters\022H\n" + + "\013signal_type\030\001 \001(\0162..googl" + + "e.cloud.databasecenter.v1beta.SignalTypeB\003\340A\001\022B\n" + + "\010products\030\002" + + " \003(\0132+.google.cloud.databasecenter.v1beta.ProductB\003\340A\001\"\234\001\n" + + "\023QueryIssuesResponse\022R\n" + + "\017resource_issues\030\001 \003" + + "(\01329.google.cloud.databasecenter.v1beta.DatabaseResourceIssue\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\030\n" + + "\013unreachable\030\003 \003(\tB\003\340A\006\"\233\001\n" + + "\025DatabaseResourceIssue\022:\n" + + "\006signal\030\001 \001(\0132*.google.cloud.databasecenter.v1beta.Signal\022F\n" + + "\010resource\030\002" + + " \001(\01324.google.cloud.databasecenter.v1beta.DatabaseResource\"D\n" + "\003Tag\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t\022\016\n" @@ -313,27 +351,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016ManagementType\022\037\n" + "\033MANAGEMENT_TYPE_UNSPECIFIED\020\000\022\037\n" + "\033MANAGEMENT_TYPE_GCP_MANAGED\020\001\022 \n" - + "\034MANAGEMENT_TYPE_SELF_MANAGED\020\0022\325\006\n" - + "\016DatabaseCenter\022\243\001\n\r" - + "QueryProducts\0228.google.cloud.databasecenter.v1beta.QueryProductsRequest\0329.goog" - + "le.cloud.databasecenter.v1beta.QueryProd" - + "uctsResponse\"\035\202\323\344\223\002\027\022\025/v1beta:queryProducts\022\247\001\n" - + "\016AggregateFleet\0229.google.cloud.databasecenter.v1beta.AggregateFleetReques" - + "t\032:.google.cloud.databasecenter.v1beta.A" - + "ggregateFleetResponse\"\036\202\323\344\223\002\030\022\026/v1beta:aggregateFleet\022\336\001\n" - + "\033QueryDatabaseResourceGroups\022F.google.cloud.databasecenter.v1be" - + "ta.QueryDatabaseResourceGroupsRequest\032G.google.cloud.databasecenter.v1beta.Query" - + "DatabaseResourceGroupsResponse\".\202\323\344\223\002(\"#" - + "/v1beta:queryDatabaseResourceGroups:\001*\022\276\001\n" - + "\023AggregateIssueStats\022>.google.cloud.databasecenter.v1beta.AggregateIssueStatsR" - + "equest\032?.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse\"&\202\323\344\223\002" - + " \"\033/v1beta:aggregateIssueStats:\001*\032Q\312A\035data" - + "basecenter.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\372\001\n" - + "&com.google.cloud.databasecenter.v1betaB\014S" - + "erviceProtoP\001ZNcloud.google.com/go/databasecenter/apiv1beta/databasecenterpb;dat" - + "abasecenterpb\252\002\"Google.Cloud.DatabaseCen" - + "ter.V1Beta\312\002\"Google\\Cloud\\DatabaseCenter" - + "\\V1beta\352\002%Google::Cloud::DatabaseCenter::V1betab\006proto3" + + "\034MANAGEMENT_TYPE_SELF_MANAGED\020\0022\377\007\n" + + "\016DatabaseCenter\022\243\001\n" + + "\r" + + "QueryProducts\0228.google.cloud.databasecenter.v1beta.QueryProductsRequest\0329.googl" + + "e.cloud.databasecenter.v1beta.QueryProdu" + + "ctsResponse\"\035\202\323\344\223\002\027\022\025/v1beta:queryProducts\022\247\001\n" + + "\016AggregateFleet\0229.google.cloud.databasecenter.v1beta.AggregateFleetRequest" + + "\032:.google.cloud.databasecenter.v1beta.Ag" + + "gregateFleetResponse\"\036\202\323\344\223\002\030\022\026/v1beta:aggregateFleet\022\336\001\n" + + "\033QueryDatabaseResourceGroups\022F.google.cloud.databasecenter.v1bet" + + "a.QueryDatabaseResourceGroupsRequest\032G.google.cloud.databasecenter.v1beta.QueryD" + + "atabaseResourceGroupsResponse\".\202\323\344\223\002(\"#/" + + "v1beta:queryDatabaseResourceGroups:\001*\022\276\001\n" + + "\023AggregateIssueStats\022>.google.cloud.databasecenter.v1beta.AggregateIssueStatsRe" + + "quest\032?.google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse\"&\202\323\344\223\002" + + " \"\033/v1beta:aggregateIssueStats:\001*\022\247\001\n" + + "\013QueryIssues\0226.google.cloud.databasecenter.v1b" + + "eta.QueryIssuesRequest\0327.google.cloud.databasecenter.v1beta.QueryIssuesResponse\"" + + "\'\332A\006parent\202\323\344\223\002\030\"\023/v1beta:queryIssues:\001*" + + "\032Q\312A\035databasecenter.googleapis.com\322A.htt" + + "ps://www.googleapis.com/auth/cloud-platformB\372\001\n" + + "&com.google.cloud.databasecenter.v1betaB\014ServiceProtoP\001ZNcloud.google.com" + + "/go/databasecenter/apiv1beta/databasecen" + + "terpb;databasecenterpb\252\002\"Google.Cloud.Da" + + "tabaseCenter.V1Beta\312\002\"Google\\Cloud\\Datab" + + "aseCenter\\V1beta\352\002%Google::Cloud::DatabaseCenter::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -527,8 +570,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "BackupdrManaged", }); - internal_static_google_cloud_databasecenter_v1beta_Tag_descriptor = + internal_static_google_cloud_databasecenter_v1beta_QueryIssuesRequest_descriptor = getDescriptor().getMessageType(16); + internal_static_google_cloud_databasecenter_v1beta_QueryIssuesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_databasecenter_v1beta_QueryIssuesRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "SignalProductsFilters", "OrderBy", "PageSize", "PageToken", + }); + internal_static_google_cloud_databasecenter_v1beta_SignalProductsFilters_descriptor = + getDescriptor().getMessageType(17); + internal_static_google_cloud_databasecenter_v1beta_SignalProductsFilters_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_databasecenter_v1beta_SignalProductsFilters_descriptor, + new java.lang.String[] { + "SignalType", "Products", + }); + internal_static_google_cloud_databasecenter_v1beta_QueryIssuesResponse_descriptor = + getDescriptor().getMessageType(18); + internal_static_google_cloud_databasecenter_v1beta_QueryIssuesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_databasecenter_v1beta_QueryIssuesResponse_descriptor, + new java.lang.String[] { + "ResourceIssues", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_databasecenter_v1beta_DatabaseResourceIssue_descriptor = + getDescriptor().getMessageType(19); + internal_static_google_cloud_databasecenter_v1beta_DatabaseResourceIssue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_databasecenter_v1beta_DatabaseResourceIssue_descriptor, + new java.lang.String[] { + "Signal", "Resource", + }); + internal_static_google_cloud_databasecenter_v1beta_Tag_descriptor = + getDescriptor().getMessageType(20); internal_static_google_cloud_databasecenter_v1beta_Tag_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_databasecenter_v1beta_Tag_descriptor, @@ -536,7 +611,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", "Source", "Inherited", }); internal_static_google_cloud_databasecenter_v1beta_ResourceDetails_descriptor = - getDescriptor().getMessageType(17); + getDescriptor().getMessageType(21); internal_static_google_cloud_databasecenter_v1beta_ResourceDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_databasecenter_v1beta_ResourceDetails_descriptor, @@ -544,7 +619,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FullResourceName", "Container", "Product", "Location", }); internal_static_google_cloud_databasecenter_v1beta_DeltaDetails_descriptor = - getDescriptor().getMessageType(18); + getDescriptor().getMessageType(22); internal_static_google_cloud_databasecenter_v1beta_DeltaDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_databasecenter_v1beta_DeltaDetails_descriptor, @@ -566,6 +641,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ClientProto.defaultHost); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); registry.add(com.google.api.ClientProto.oauthScopes); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/SignalProductsFilters.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/SignalProductsFilters.java new file mode 100644 index 000000000000..49b7856820de --- /dev/null +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/SignalProductsFilters.java @@ -0,0 +1,1171 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/databasecenter/v1beta/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.databasecenter.v1beta; + +/** + * + * + *
          + * SignalProductsFilters represents a signal and list of supported products.
          + * 
          + * + * Protobuf type {@code google.cloud.databasecenter.v1beta.SignalProductsFilters} + */ +@com.google.protobuf.Generated +public final class SignalProductsFilters extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.databasecenter.v1beta.SignalProductsFilters) + SignalProductsFiltersOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SignalProductsFilters"); + } + + // Use SignalProductsFilters.newBuilder() to construct. + private SignalProductsFilters(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SignalProductsFilters() { + signalType_ = 0; + products_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.databasecenter.v1beta.ServiceProto + .internal_static_google_cloud_databasecenter_v1beta_SignalProductsFilters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.databasecenter.v1beta.ServiceProto + .internal_static_google_cloud_databasecenter_v1beta_SignalProductsFilters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.databasecenter.v1beta.SignalProductsFilters.class, + com.google.cloud.databasecenter.v1beta.SignalProductsFilters.Builder.class); + } + + public static final int SIGNAL_TYPE_FIELD_NUMBER = 1; + private int signalType_ = 0; + + /** + * + * + *
          +   * Optional. The type of signal.
          +   * 
          + * + * + * .google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for signalType. + */ + @java.lang.Override + public int getSignalTypeValue() { + return signalType_; + } + + /** + * + * + *
          +   * Optional. The type of signal.
          +   * 
          + * + * + * .google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The signalType. + */ + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.SignalType getSignalType() { + com.google.cloud.databasecenter.v1beta.SignalType result = + com.google.cloud.databasecenter.v1beta.SignalType.forNumber(signalType_); + return result == null ? com.google.cloud.databasecenter.v1beta.SignalType.UNRECOGNIZED : result; + } + + public static final int PRODUCTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List products_; + + /** + * + * + *
          +   * Optional. Product type of the resource. The version of the product will be
          +   * ignored in filtering.
          +   * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getProductsList() { + return products_; + } + + /** + * + * + *
          +   * Optional. Product type of the resource. The version of the product will be
          +   * ignored in filtering.
          +   * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getProductsOrBuilderList() { + return products_; + } + + /** + * + * + *
          +   * Optional. Product type of the resource. The version of the product will be
          +   * ignored in filtering.
          +   * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getProductsCount() { + return products_.size(); + } + + /** + * + * + *
          +   * Optional. Product type of the resource. The version of the product will be
          +   * ignored in filtering.
          +   * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.Product getProducts(int index) { + return products_.get(index); + } + + /** + * + * + *
          +   * Optional. Product type of the resource. The version of the product will be
          +   * ignored in filtering.
          +   * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.ProductOrBuilder getProductsOrBuilder(int index) { + return products_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (signalType_ + != com.google.cloud.databasecenter.v1beta.SignalType.SIGNAL_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, signalType_); + } + for (int i = 0; i < products_.size(); i++) { + output.writeMessage(2, products_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (signalType_ + != com.google.cloud.databasecenter.v1beta.SignalType.SIGNAL_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, signalType_); + } + for (int i = 0; i < products_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, products_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.databasecenter.v1beta.SignalProductsFilters)) { + return super.equals(obj); + } + com.google.cloud.databasecenter.v1beta.SignalProductsFilters other = + (com.google.cloud.databasecenter.v1beta.SignalProductsFilters) obj; + + if (signalType_ != other.signalType_) return false; + if (!getProductsList().equals(other.getProductsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SIGNAL_TYPE_FIELD_NUMBER; + hash = (53 * hash) + signalType_; + if (getProductsCount() > 0) { + hash = (37 * hash) + PRODUCTS_FIELD_NUMBER; + hash = (53 * hash) + getProductsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.databasecenter.v1beta.SignalProductsFilters parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.databasecenter.v1beta.SignalProductsFilters parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.databasecenter.v1beta.SignalProductsFilters parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.databasecenter.v1beta.SignalProductsFilters parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.databasecenter.v1beta.SignalProductsFilters parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.databasecenter.v1beta.SignalProductsFilters parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.databasecenter.v1beta.SignalProductsFilters parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.databasecenter.v1beta.SignalProductsFilters parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.databasecenter.v1beta.SignalProductsFilters parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.databasecenter.v1beta.SignalProductsFilters parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.databasecenter.v1beta.SignalProductsFilters parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.databasecenter.v1beta.SignalProductsFilters parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.databasecenter.v1beta.SignalProductsFilters prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * SignalProductsFilters represents a signal and list of supported products.
          +   * 
          + * + * Protobuf type {@code google.cloud.databasecenter.v1beta.SignalProductsFilters} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.databasecenter.v1beta.SignalProductsFilters) + com.google.cloud.databasecenter.v1beta.SignalProductsFiltersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.databasecenter.v1beta.ServiceProto + .internal_static_google_cloud_databasecenter_v1beta_SignalProductsFilters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.databasecenter.v1beta.ServiceProto + .internal_static_google_cloud_databasecenter_v1beta_SignalProductsFilters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.databasecenter.v1beta.SignalProductsFilters.class, + com.google.cloud.databasecenter.v1beta.SignalProductsFilters.Builder.class); + } + + // Construct using com.google.cloud.databasecenter.v1beta.SignalProductsFilters.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + signalType_ = 0; + if (productsBuilder_ == null) { + products_ = java.util.Collections.emptyList(); + } else { + products_ = null; + productsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.databasecenter.v1beta.ServiceProto + .internal_static_google_cloud_databasecenter_v1beta_SignalProductsFilters_descriptor; + } + + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.SignalProductsFilters + getDefaultInstanceForType() { + return com.google.cloud.databasecenter.v1beta.SignalProductsFilters.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.SignalProductsFilters build() { + com.google.cloud.databasecenter.v1beta.SignalProductsFilters result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.SignalProductsFilters buildPartial() { + com.google.cloud.databasecenter.v1beta.SignalProductsFilters result = + new com.google.cloud.databasecenter.v1beta.SignalProductsFilters(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.databasecenter.v1beta.SignalProductsFilters result) { + if (productsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + products_ = java.util.Collections.unmodifiableList(products_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.products_ = products_; + } else { + result.products_ = productsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.databasecenter.v1beta.SignalProductsFilters result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.signalType_ = signalType_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.databasecenter.v1beta.SignalProductsFilters) { + return mergeFrom((com.google.cloud.databasecenter.v1beta.SignalProductsFilters) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.databasecenter.v1beta.SignalProductsFilters other) { + if (other + == com.google.cloud.databasecenter.v1beta.SignalProductsFilters.getDefaultInstance()) + return this; + if (other.signalType_ != 0) { + setSignalTypeValue(other.getSignalTypeValue()); + } + if (productsBuilder_ == null) { + if (!other.products_.isEmpty()) { + if (products_.isEmpty()) { + products_ = other.products_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureProductsIsMutable(); + products_.addAll(other.products_); + } + onChanged(); + } + } else { + if (!other.products_.isEmpty()) { + if (productsBuilder_.isEmpty()) { + productsBuilder_.dispose(); + productsBuilder_ = null; + products_ = other.products_; + bitField0_ = (bitField0_ & ~0x00000002); + productsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetProductsFieldBuilder() + : null; + } else { + productsBuilder_.addAllMessages(other.products_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + signalType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + com.google.cloud.databasecenter.v1beta.Product m = + input.readMessage( + com.google.cloud.databasecenter.v1beta.Product.parser(), extensionRegistry); + if (productsBuilder_ == null) { + ensureProductsIsMutable(); + products_.add(m); + } else { + productsBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int signalType_ = 0; + + /** + * + * + *
          +     * Optional. The type of signal.
          +     * 
          + * + * + * .google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for signalType. + */ + @java.lang.Override + public int getSignalTypeValue() { + return signalType_; + } + + /** + * + * + *
          +     * Optional. The type of signal.
          +     * 
          + * + * + * .google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for signalType to set. + * @return This builder for chaining. + */ + public Builder setSignalTypeValue(int value) { + signalType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The type of signal.
          +     * 
          + * + * + * .google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The signalType. + */ + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.SignalType getSignalType() { + com.google.cloud.databasecenter.v1beta.SignalType result = + com.google.cloud.databasecenter.v1beta.SignalType.forNumber(signalType_); + return result == null + ? com.google.cloud.databasecenter.v1beta.SignalType.UNRECOGNIZED + : result; + } + + /** + * + * + *
          +     * Optional. The type of signal.
          +     * 
          + * + * + * .google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The signalType to set. + * @return This builder for chaining. + */ + public Builder setSignalType(com.google.cloud.databasecenter.v1beta.SignalType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + signalType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The type of signal.
          +     * 
          + * + * + * .google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSignalType() { + bitField0_ = (bitField0_ & ~0x00000001); + signalType_ = 0; + onChanged(); + return this; + } + + private java.util.List products_ = + java.util.Collections.emptyList(); + + private void ensureProductsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + products_ = + new java.util.ArrayList(products_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.databasecenter.v1beta.Product, + com.google.cloud.databasecenter.v1beta.Product.Builder, + com.google.cloud.databasecenter.v1beta.ProductOrBuilder> + productsBuilder_; + + /** + * + * + *
          +     * Optional. Product type of the resource. The version of the product will be
          +     * ignored in filtering.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getProductsList() { + if (productsBuilder_ == null) { + return java.util.Collections.unmodifiableList(products_); + } else { + return productsBuilder_.getMessageList(); + } + } + + /** + * + * + *
          +     * Optional. Product type of the resource. The version of the product will be
          +     * ignored in filtering.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getProductsCount() { + if (productsBuilder_ == null) { + return products_.size(); + } else { + return productsBuilder_.getCount(); + } + } + + /** + * + * + *
          +     * Optional. Product type of the resource. The version of the product will be
          +     * ignored in filtering.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.databasecenter.v1beta.Product getProducts(int index) { + if (productsBuilder_ == null) { + return products_.get(index); + } else { + return productsBuilder_.getMessage(index); + } + } + + /** + * + * + *
          +     * Optional. Product type of the resource. The version of the product will be
          +     * ignored in filtering.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProducts(int index, com.google.cloud.databasecenter.v1beta.Product value) { + if (productsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProductsIsMutable(); + products_.set(index, value); + onChanged(); + } else { + productsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * Optional. Product type of the resource. The version of the product will be
          +     * ignored in filtering.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProducts( + int index, com.google.cloud.databasecenter.v1beta.Product.Builder builderForValue) { + if (productsBuilder_ == null) { + ensureProductsIsMutable(); + products_.set(index, builderForValue.build()); + onChanged(); + } else { + productsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Optional. Product type of the resource. The version of the product will be
          +     * ignored in filtering.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addProducts(com.google.cloud.databasecenter.v1beta.Product value) { + if (productsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProductsIsMutable(); + products_.add(value); + onChanged(); + } else { + productsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
          +     * Optional. Product type of the resource. The version of the product will be
          +     * ignored in filtering.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addProducts(int index, com.google.cloud.databasecenter.v1beta.Product value) { + if (productsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProductsIsMutable(); + products_.add(index, value); + onChanged(); + } else { + productsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * Optional. Product type of the resource. The version of the product will be
          +     * ignored in filtering.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addProducts( + com.google.cloud.databasecenter.v1beta.Product.Builder builderForValue) { + if (productsBuilder_ == null) { + ensureProductsIsMutable(); + products_.add(builderForValue.build()); + onChanged(); + } else { + productsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Optional. Product type of the resource. The version of the product will be
          +     * ignored in filtering.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addProducts( + int index, com.google.cloud.databasecenter.v1beta.Product.Builder builderForValue) { + if (productsBuilder_ == null) { + ensureProductsIsMutable(); + products_.add(index, builderForValue.build()); + onChanged(); + } else { + productsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Optional. Product type of the resource. The version of the product will be
          +     * ignored in filtering.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllProducts( + java.lang.Iterable values) { + if (productsBuilder_ == null) { + ensureProductsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, products_); + onChanged(); + } else { + productsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
          +     * Optional. Product type of the resource. The version of the product will be
          +     * ignored in filtering.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearProducts() { + if (productsBuilder_ == null) { + products_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + productsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +     * Optional. Product type of the resource. The version of the product will be
          +     * ignored in filtering.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeProducts(int index) { + if (productsBuilder_ == null) { + ensureProductsIsMutable(); + products_.remove(index); + onChanged(); + } else { + productsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
          +     * Optional. Product type of the resource. The version of the product will be
          +     * ignored in filtering.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.databasecenter.v1beta.Product.Builder getProductsBuilder(int index) { + return internalGetProductsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
          +     * Optional. Product type of the resource. The version of the product will be
          +     * ignored in filtering.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.databasecenter.v1beta.ProductOrBuilder getProductsOrBuilder(int index) { + if (productsBuilder_ == null) { + return products_.get(index); + } else { + return productsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
          +     * Optional. Product type of the resource. The version of the product will be
          +     * ignored in filtering.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getProductsOrBuilderList() { + if (productsBuilder_ != null) { + return productsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(products_); + } + } + + /** + * + * + *
          +     * Optional. Product type of the resource. The version of the product will be
          +     * ignored in filtering.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.databasecenter.v1beta.Product.Builder addProductsBuilder() { + return internalGetProductsFieldBuilder() + .addBuilder(com.google.cloud.databasecenter.v1beta.Product.getDefaultInstance()); + } + + /** + * + * + *
          +     * Optional. Product type of the resource. The version of the product will be
          +     * ignored in filtering.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.databasecenter.v1beta.Product.Builder addProductsBuilder(int index) { + return internalGetProductsFieldBuilder() + .addBuilder(index, com.google.cloud.databasecenter.v1beta.Product.getDefaultInstance()); + } + + /** + * + * + *
          +     * Optional. Product type of the resource. The version of the product will be
          +     * ignored in filtering.
          +     * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getProductsBuilderList() { + return internalGetProductsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.databasecenter.v1beta.Product, + com.google.cloud.databasecenter.v1beta.Product.Builder, + com.google.cloud.databasecenter.v1beta.ProductOrBuilder> + internalGetProductsFieldBuilder() { + if (productsBuilder_ == null) { + productsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.databasecenter.v1beta.Product, + com.google.cloud.databasecenter.v1beta.Product.Builder, + com.google.cloud.databasecenter.v1beta.ProductOrBuilder>( + products_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + products_ = null; + } + return productsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.databasecenter.v1beta.SignalProductsFilters) + } + + // @@protoc_insertion_point(class_scope:google.cloud.databasecenter.v1beta.SignalProductsFilters) + private static final com.google.cloud.databasecenter.v1beta.SignalProductsFilters + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.databasecenter.v1beta.SignalProductsFilters(); + } + + public static com.google.cloud.databasecenter.v1beta.SignalProductsFilters getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignalProductsFilters parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.databasecenter.v1beta.SignalProductsFilters getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/SignalProductsFiltersOrBuilder.java b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/SignalProductsFiltersOrBuilder.java new file mode 100644 index 000000000000..d5cd0ba07cc9 --- /dev/null +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/java/com/google/cloud/databasecenter/v1beta/SignalProductsFiltersOrBuilder.java @@ -0,0 +1,129 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/databasecenter/v1beta/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.databasecenter.v1beta; + +@com.google.protobuf.Generated +public interface SignalProductsFiltersOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.databasecenter.v1beta.SignalProductsFilters) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Optional. The type of signal.
          +   * 
          + * + * + * .google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for signalType. + */ + int getSignalTypeValue(); + + /** + * + * + *
          +   * Optional. The type of signal.
          +   * 
          + * + * + * .google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The signalType. + */ + com.google.cloud.databasecenter.v1beta.SignalType getSignalType(); + + /** + * + * + *
          +   * Optional. Product type of the resource. The version of the product will be
          +   * ignored in filtering.
          +   * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getProductsList(); + + /** + * + * + *
          +   * Optional. Product type of the resource. The version of the product will be
          +   * ignored in filtering.
          +   * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.databasecenter.v1beta.Product getProducts(int index); + + /** + * + * + *
          +   * Optional. Product type of the resource. The version of the product will be
          +   * ignored in filtering.
          +   * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getProductsCount(); + + /** + * + * + *
          +   * Optional. Product type of the resource. The version of the product will be
          +   * ignored in filtering.
          +   * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getProductsOrBuilderList(); + + /** + * + * + *
          +   * Optional. Product type of the resource. The version of the product will be
          +   * ignored in filtering.
          +   * 
          + * + * + * repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.databasecenter.v1beta.ProductOrBuilder getProductsOrBuilder(int index); +} diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/maintenance.proto b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/maintenance.proto index 2ce4bb139da0..d4d4b3239f8d 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/maintenance.proto +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/maintenance.proto @@ -96,7 +96,7 @@ message MaintenanceInfo { repeated ResourceMaintenanceDenySchedule deny_maintenance_schedules = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Current Maintenance version of the database resource. Example: + // Output only. Current Maintenance version of the database resource. Example: // "MYSQL_8_0_41.R20250531.01_15" - string maintenance_version = 3 [(google.api.field_behavior) = OPTIONAL]; + string maintenance_version = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/service.proto b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/service.proto index 93d5e99a2e77..6f481d561180 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/service.proto +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/src/main/proto/google/cloud/databasecenter/v1beta/service.proto @@ -73,6 +73,16 @@ service DatabaseCenter { body: "*" }; } + + // QueryIssues provides a list of issues and recommendations + // that a user has access to and that are within the requested scope. + rpc QueryIssues(QueryIssuesRequest) returns (QueryIssuesResponse) { + option (google.api.http) = { + post: "/v1beta:queryIssues" + body: "*" + }; + option (google.api.method_signature) = "parent"; + } } // The enum value corresponds to 'type' suffix in the resource_type field. @@ -224,12 +234,12 @@ message QueryDatabaseResourceGroupsRequest { // expression, parentheses must be appropriately used to group the // combinations. // - // Example: location="us-east1" - // Example: container="projects/123" OR container="projects/456" - // Example: (container="projects/123" OR - // container="projects/456") AND location="us-east1" - // Example: full_resource_name=~"test" - // Example: full_resource_name=~"test.*master" + // Example: `location="us-east1"` + // Example: `container="projects/123" OR container="projects/456"` + // Example: `(container="projects/123" OR + // container="projects/456") AND location="us-east1"` + // Example: `full_resource_name=~"test"` + // Example: `full_resource_name=~"test.*master"` string filter = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. Groups of signal types that are requested. @@ -275,12 +285,13 @@ message QueryDatabaseResourceGroupsRequest { // order. It only supports a single field at a time. // // For example: - // order_by = "full_resource_name" sorts response in ascending order - // order_by = "full_resource_name DESC" sorts response in descending order - // order_by = "issue_count DESC" sorts response in descending order of + // `order_by = "full_resource_name"` sorts response in ascending order + // `order_by = "full_resource_name DESC"` sorts response in descending order + // `order_by = "issue_count DESC"` sorts response in descending order of // count of all issues associated with a resource. // - // More explicitly, order_by = "full_resource_name, product" is not supported. + // More explicitly, `order_by = "full_resource_name, product"` is not + // supported. string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; // Optional. If unspecified, at most 50 resource groups will be returned. @@ -440,10 +451,10 @@ message AggregateIssueStatsRequest { // expression, parentheses must be appropriately used to group the // combinations. // - // Example: location="us-east1" - // Example: container="projects/123" OR container="projects/456" - // Example: (container="projects/123" OR - // container="projects/456") AND location="us-east1" + // Example: `location="us-east1"` + // Example: `container="projects/123" OR container="projects/456"` + // Example: `(container="projects/123" OR + // container="projects/456") AND location="us-east1"` string filter = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. Lists of signal types that are issues. @@ -562,10 +573,10 @@ message AggregateFleetRequest { // expression, parentheses must be appropriately used to group the // combinations. // - // Example: location="us-east1" - // Example: container="projects/123" OR container="projects/456" - // Example: (container="projects/123" OR - // container="projects/456") AND location="us-east1" + // Example: `location="us-east1"` + // Example: `container="projects/123" OR container="projects/456"` + // Example: `(container="projects/123" OR + // container="projects/456") AND location="us-east1"` string filter = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A field that statistics are grouped by. @@ -597,9 +608,10 @@ message AggregateFleetRequest { // descending order. Add "ASC" after the field name to indicate ascending // order. It supports ordering using multiple fields. // For example: - // order_by = "resource_groups_count" sorts response in ascending order - // order_by = "resource_groups_count DESC" sorts response in descending order - // order_by = "product.type, product.version DESC, location" orders by type + // `order_by = "resource_groups_count"` sorts response in ascending order + // `order_by = "resource_groups_count DESC"` sorts response in descending + // order + // `order_by = "product.type, product.version DESC, location"` orders by type // in ascending order, version in descending order and location in ascending // order string order_by = 4 [(google.api.field_behavior) = OPTIONAL]; @@ -621,7 +633,8 @@ message AggregateFleetRequest { [(google.api.field_behavior) = OPTIONAL]; } -// The response message to aggregate a fleet by some group by fields. +// The response message to aggregate a fleet by some group by +// fields. message AggregateFleetResponse { // Represents a row grouped by the fields in the input. repeated AggregateFleetRow rows = 1; @@ -737,6 +750,90 @@ message BackupDRConfig { optional bool backupdr_managed = 1; } +// QueryIssuesRequest is the request to get a list of issues. +message QueryIssuesRequest { + // Required. Parent can be a project, a folder, or an organization. The list + // is limited to the one attached to resources within the `scope` that a user + // has access to. + // + // The allowed values are: + // + // * projects/{PROJECT_ID} (e.g., "projects/foo-bar") + // * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") + // * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") + // * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + string parent = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. + // Supported fields are: + // 'product', + // `location`, + // `issue_severity`, + // 'tags', + // 'labels', + string filter = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filters based on signal and product. The filter list will be ORed + // across pairs and ANDed within a signal and products pair. + repeated SignalProductsFilters signal_products_filters = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Following fields are sortable: + // SignalType + // Product + // Location + // IssueSeverity + // + // The default order is ascending. Add "DESC" after the field name to indicate + // descending order. Add "ASC" after the field name to indicate ascending + // order. It only supports a single field at a time. + string order_by = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If unspecified, at most 50 issues will be returned. + // The maximum value is 1000; values above 1000 will be coerced to 1000. + int32 page_size = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `QueryIssues` call. + // Provide this to retrieve the subsequent page. + // All parameters except page size should match the parameters used in the + // call that provided the page token. + string page_token = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// SignalProductsFilters represents a signal and list of supported products. +message SignalProductsFilters { + // Optional. The type of signal. + SignalType signal_type = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Product type of the resource. The version of the product will be + // ignored in filtering. + repeated Product products = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// QueryIssuesResponse is the response containing a list of issues. +message QueryIssuesResponse { + // List of issues and resource details. + repeated DatabaseResourceIssue resource_issues = 1; + + // A token that can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Unordered list. List of unreachable regions from where data could not be + // retrieved. + repeated string unreachable = 3 + [(google.api.field_behavior) = UNORDERED_LIST]; +} + +// DatabaseResource and Issue associated with it. +message DatabaseResourceIssue { + // Signal associated with the issue. + Signal signal = 1; + + // Resource associated with the issue. + DatabaseResource resource = 2; +} + // Tag is a key value pair attached to a resource. message Tag { string key = 1; diff --git a/java-databasecenter/samples/snippets/generated/com/google/cloud/databasecenter/v1beta/databasecenter/queryissues/AsyncQueryIssues.java b/java-databasecenter/samples/snippets/generated/com/google/cloud/databasecenter/v1beta/databasecenter/queryissues/AsyncQueryIssues.java new file mode 100644 index 000000000000..cc8c29761764 --- /dev/null +++ b/java-databasecenter/samples/snippets/generated/com/google/cloud/databasecenter/v1beta/databasecenter/queryissues/AsyncQueryIssues.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.databasecenter.v1beta.samples; + +// [START databasecenter_v1beta_generated_DatabaseCenter_QueryIssues_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.databasecenter.v1beta.DatabaseCenterClient; +import com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue; +import com.google.cloud.databasecenter.v1beta.QueryIssuesRequest; +import com.google.cloud.databasecenter.v1beta.SignalProductsFilters; +import java.util.ArrayList; + +public class AsyncQueryIssues { + + public static void main(String[] args) throws Exception { + asyncQueryIssues(); + } + + public static void asyncQueryIssues() 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 (DatabaseCenterClient databaseCenterClient = DatabaseCenterClient.create()) { + QueryIssuesRequest request = + QueryIssuesRequest.newBuilder() + .setParent("parent-995424086") + .setFilter("filter-1274492040") + .addAllSignalProductsFilters(new ArrayList()) + .setOrderBy("orderBy-1207110587") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + databaseCenterClient.queryIssuesPagedCallable().futureCall(request); + // Do something. + for (DatabaseResourceIssue element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END databasecenter_v1beta_generated_DatabaseCenter_QueryIssues_async] diff --git a/java-databasecenter/samples/snippets/generated/com/google/cloud/databasecenter/v1beta/databasecenter/queryissues/AsyncQueryIssuesPaged.java b/java-databasecenter/samples/snippets/generated/com/google/cloud/databasecenter/v1beta/databasecenter/queryissues/AsyncQueryIssuesPaged.java new file mode 100644 index 000000000000..30d2781e3ec5 --- /dev/null +++ b/java-databasecenter/samples/snippets/generated/com/google/cloud/databasecenter/v1beta/databasecenter/queryissues/AsyncQueryIssuesPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.databasecenter.v1beta.samples; + +// [START databasecenter_v1beta_generated_DatabaseCenter_QueryIssues_Paged_async] +import com.google.cloud.databasecenter.v1beta.DatabaseCenterClient; +import com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue; +import com.google.cloud.databasecenter.v1beta.QueryIssuesRequest; +import com.google.cloud.databasecenter.v1beta.QueryIssuesResponse; +import com.google.cloud.databasecenter.v1beta.SignalProductsFilters; +import com.google.common.base.Strings; +import java.util.ArrayList; + +public class AsyncQueryIssuesPaged { + + public static void main(String[] args) throws Exception { + asyncQueryIssuesPaged(); + } + + public static void asyncQueryIssuesPaged() 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 (DatabaseCenterClient databaseCenterClient = DatabaseCenterClient.create()) { + QueryIssuesRequest request = + QueryIssuesRequest.newBuilder() + .setParent("parent-995424086") + .setFilter("filter-1274492040") + .addAllSignalProductsFilters(new ArrayList()) + .setOrderBy("orderBy-1207110587") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + QueryIssuesResponse response = databaseCenterClient.queryIssuesCallable().call(request); + for (DatabaseResourceIssue element : response.getResourceIssuesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END databasecenter_v1beta_generated_DatabaseCenter_QueryIssues_Paged_async] diff --git a/java-databasecenter/samples/snippets/generated/com/google/cloud/databasecenter/v1beta/databasecenter/queryissues/SyncQueryIssues.java b/java-databasecenter/samples/snippets/generated/com/google/cloud/databasecenter/v1beta/databasecenter/queryissues/SyncQueryIssues.java new file mode 100644 index 000000000000..9a297fff49d5 --- /dev/null +++ b/java-databasecenter/samples/snippets/generated/com/google/cloud/databasecenter/v1beta/databasecenter/queryissues/SyncQueryIssues.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.databasecenter.v1beta.samples; + +// [START databasecenter_v1beta_generated_DatabaseCenter_QueryIssues_sync] +import com.google.cloud.databasecenter.v1beta.DatabaseCenterClient; +import com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue; +import com.google.cloud.databasecenter.v1beta.QueryIssuesRequest; +import com.google.cloud.databasecenter.v1beta.SignalProductsFilters; +import java.util.ArrayList; + +public class SyncQueryIssues { + + public static void main(String[] args) throws Exception { + syncQueryIssues(); + } + + public static void syncQueryIssues() 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 (DatabaseCenterClient databaseCenterClient = DatabaseCenterClient.create()) { + QueryIssuesRequest request = + QueryIssuesRequest.newBuilder() + .setParent("parent-995424086") + .setFilter("filter-1274492040") + .addAllSignalProductsFilters(new ArrayList()) + .setOrderBy("orderBy-1207110587") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (DatabaseResourceIssue element : databaseCenterClient.queryIssues(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END databasecenter_v1beta_generated_DatabaseCenter_QueryIssues_sync] diff --git a/java-databasecenter/samples/snippets/generated/com/google/cloud/databasecenter/v1beta/databasecenter/queryissues/SyncQueryIssuesString.java b/java-databasecenter/samples/snippets/generated/com/google/cloud/databasecenter/v1beta/databasecenter/queryissues/SyncQueryIssuesString.java new file mode 100644 index 000000000000..d7da0876b210 --- /dev/null +++ b/java-databasecenter/samples/snippets/generated/com/google/cloud/databasecenter/v1beta/databasecenter/queryissues/SyncQueryIssuesString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.databasecenter.v1beta.samples; + +// [START databasecenter_v1beta_generated_DatabaseCenter_QueryIssues_String_sync] +import com.google.cloud.databasecenter.v1beta.DatabaseCenterClient; +import com.google.cloud.databasecenter.v1beta.DatabaseResourceIssue; + +public class SyncQueryIssuesString { + + public static void main(String[] args) throws Exception { + syncQueryIssuesString(); + } + + public static void syncQueryIssuesString() 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 (DatabaseCenterClient databaseCenterClient = DatabaseCenterClient.create()) { + String parent = "parent-995424086"; + for (DatabaseResourceIssue element : databaseCenterClient.queryIssues(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END databasecenter_v1beta_generated_DatabaseCenter_QueryIssues_String_sync] diff --git a/java-datacatalog/README.md b/java-datacatalog/README.md index db43607725ea..68a1b5207e51 100644 --- a/java-datacatalog/README.md +++ b/java-datacatalog/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datacatalog - 1.88.0 + 1.89.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datacatalog:1.88.0' +implementation 'com.google.cloud:google-cloud-datacatalog:1.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datacatalog" % "1.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datacatalog" % "1.89.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-datacatalog/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datacatalog.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datacatalog/1.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datacatalog/1.89.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-datacatalog/google-cloud-datacatalog-bom/pom.xml b/java-datacatalog/google-cloud-datacatalog-bom/pom.xml index 185f95dbe3de..63c67bf42e0f 100644 --- a/java-datacatalog/google-cloud-datacatalog-bom/pom.xml +++ b/java-datacatalog/google-cloud-datacatalog-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-datacatalog-bom - 1.90.0-SNAPSHOT + 1.91.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-datacatalog - 1.90.0-SNAPSHOT + 1.91.0 com.google.api.grpc grpc-google-cloud-datacatalog-v1 - 1.90.0-SNAPSHOT + 1.91.0 com.google.api.grpc grpc-google-cloud-datacatalog-v1beta1 - 0.127.0-SNAPSHOT + 0.128.0 com.google.api.grpc proto-google-cloud-datacatalog-v1 - 1.90.0-SNAPSHOT + 1.91.0 com.google.api.grpc proto-google-cloud-datacatalog-v1beta1 - 0.127.0-SNAPSHOT + 0.128.0
          diff --git a/java-datacatalog/google-cloud-datacatalog/pom.xml b/java-datacatalog/google-cloud-datacatalog/pom.xml index ec298a770e40..3c934e58ab50 100644 --- a/java-datacatalog/google-cloud-datacatalog/pom.xml +++ b/java-datacatalog/google-cloud-datacatalog/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-datacatalog - 1.90.0-SNAPSHOT + 1.91.0 jar Google Cloud Data Catalog Java idiomatic client for Google Cloud Data Catalog com.google.cloud google-cloud-datacatalog-parent - 1.90.0-SNAPSHOT + 1.91.0 google-cloud-datacatalog diff --git a/java-datacatalog/grpc-google-cloud-datacatalog-v1/pom.xml b/java-datacatalog/grpc-google-cloud-datacatalog-v1/pom.xml index 409bc8811932..d5b43eb76e77 100644 --- a/java-datacatalog/grpc-google-cloud-datacatalog-v1/pom.xml +++ b/java-datacatalog/grpc-google-cloud-datacatalog-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-datacatalog-v1 - 1.90.0-SNAPSHOT + 1.91.0 grpc-google-cloud-datacatalog-v1 GRPC library for grpc-google-cloud-datacatalog-v1 com.google.cloud google-cloud-datacatalog-parent - 1.90.0-SNAPSHOT + 1.91.0 diff --git a/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/pom.xml b/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/pom.xml index 266d91f63f4f..ce805e38719c 100644 --- a/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/pom.xml +++ b/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-datacatalog-v1beta1 - 0.127.0-SNAPSHOT + 0.128.0 grpc-google-cloud-datacatalog-v1beta1 GRPC library for grpc-google-cloud-datacatalog-v1beta1 com.google.cloud google-cloud-datacatalog-parent - 1.90.0-SNAPSHOT + 1.91.0 diff --git a/java-datacatalog/pom.xml b/java-datacatalog/pom.xml index 593e6a0cedd3..88010dffbbbc 100644 --- a/java-datacatalog/pom.xml +++ b/java-datacatalog/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-datacatalog-parent pom - 1.90.0-SNAPSHOT + 1.91.0 Google Cloud Data Catalog Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-datacatalog-v1 - 1.90.0-SNAPSHOT + 1.91.0 com.google.api.grpc proto-google-cloud-datacatalog-v1beta1 - 0.127.0-SNAPSHOT + 0.128.0 com.google.api.grpc grpc-google-cloud-datacatalog-v1 - 1.90.0-SNAPSHOT + 1.91.0 com.google.api.grpc grpc-google-cloud-datacatalog-v1beta1 - 0.127.0-SNAPSHOT + 0.128.0 com.google.cloud google-cloud-datacatalog - 1.90.0-SNAPSHOT + 1.91.0 diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/pom.xml b/java-datacatalog/proto-google-cloud-datacatalog-v1/pom.xml index 5b07c286fb39..e3e427cd07ee 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/pom.xml +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-datacatalog-v1 - 1.90.0-SNAPSHOT + 1.91.0 proto-google-cloud-datacatalog-v1 PROTO library for proto-google-cloud-datacatalog-v1 com.google.cloud google-cloud-datacatalog-parent - 1.90.0-SNAPSHOT + 1.91.0 diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/pom.xml b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/pom.xml index 598351aa7799..e9590d2ee3e9 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/pom.xml +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-datacatalog-v1beta1 - 0.127.0-SNAPSHOT + 0.128.0 proto-google-cloud-datacatalog-v1beta1 PROTO library for proto-google-cloud-datacatalog-v1beta1 com.google.cloud google-cloud-datacatalog-parent - 1.90.0-SNAPSHOT + 1.91.0 diff --git a/java-dataflow/README.md b/java-dataflow/README.md index 84c7e23e096d..a94b2d9e4f9d 100644 --- a/java-dataflow/README.md +++ b/java-dataflow/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataflow - 0.86.0 + 0.87.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataflow:0.86.0' +implementation 'com.google.cloud:google-cloud-dataflow:0.87.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataflow" % "0.86.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataflow" % "0.87.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataflow/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataflow/0.86.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataflow/0.87.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataflow/google-cloud-dataflow-bom/pom.xml b/java-dataflow/google-cloud-dataflow-bom/pom.xml index 0d2f4b0ff2a6..5720b910671f 100644 --- a/java-dataflow/google-cloud-dataflow-bom/pom.xml +++ b/java-dataflow/google-cloud-dataflow-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dataflow-bom - 0.88.0-SNAPSHOT + 0.89.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-dataflow - 0.88.0-SNAPSHOT + 0.89.0 com.google.api.grpc grpc-google-cloud-dataflow-v1beta3 - 0.88.0-SNAPSHOT + 0.89.0 com.google.api.grpc proto-google-cloud-dataflow-v1beta3 - 0.88.0-SNAPSHOT + 0.89.0 diff --git a/java-dataflow/google-cloud-dataflow/pom.xml b/java-dataflow/google-cloud-dataflow/pom.xml index 583800a55693..02a59ce71982 100644 --- a/java-dataflow/google-cloud-dataflow/pom.xml +++ b/java-dataflow/google-cloud-dataflow/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dataflow - 0.88.0-SNAPSHOT + 0.89.0 jar Google Dataflow Dataflow is a managed service for executing a wide variety of data processing patterns. com.google.cloud google-cloud-dataflow-parent - 0.88.0-SNAPSHOT + 0.89.0 google-cloud-dataflow diff --git a/java-dataflow/grpc-google-cloud-dataflow-v1beta3/pom.xml b/java-dataflow/grpc-google-cloud-dataflow-v1beta3/pom.xml index 798d1f498bbc..dd9fbc1b126f 100644 --- a/java-dataflow/grpc-google-cloud-dataflow-v1beta3/pom.xml +++ b/java-dataflow/grpc-google-cloud-dataflow-v1beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataflow-v1beta3 - 0.88.0-SNAPSHOT + 0.89.0 grpc-google-cloud-dataflow-v1beta3 GRPC library for google-cloud-dataflow com.google.cloud google-cloud-dataflow-parent - 0.88.0-SNAPSHOT + 0.89.0 diff --git a/java-dataflow/pom.xml b/java-dataflow/pom.xml index bf153b2aef7f..5a487950acd9 100644 --- a/java-dataflow/pom.xml +++ b/java-dataflow/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataflow-parent pom - 0.88.0-SNAPSHOT + 0.89.0 Google Dataflow Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-dataflow - 0.88.0-SNAPSHOT + 0.89.0 com.google.api.grpc grpc-google-cloud-dataflow-v1beta3 - 0.88.0-SNAPSHOT + 0.89.0 com.google.api.grpc proto-google-cloud-dataflow-v1beta3 - 0.88.0-SNAPSHOT + 0.89.0 diff --git a/java-dataflow/proto-google-cloud-dataflow-v1beta3/pom.xml b/java-dataflow/proto-google-cloud-dataflow-v1beta3/pom.xml index c76d5ca1b4f6..180872917443 100644 --- a/java-dataflow/proto-google-cloud-dataflow-v1beta3/pom.xml +++ b/java-dataflow/proto-google-cloud-dataflow-v1beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataflow-v1beta3 - 0.88.0-SNAPSHOT + 0.89.0 proto-google-cloud-dataflow-v1beta3 Proto library for google-cloud-dataflow com.google.cloud google-cloud-dataflow-parent - 0.88.0-SNAPSHOT + 0.89.0 diff --git a/java-dataform/README.md b/java-dataform/README.md index 0d7fa4211401..bbf88c4c4e32 100644 --- a/java-dataform/README.md +++ b/java-dataform/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataform - 0.81.0 + 0.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataform:0.81.0' +implementation 'com.google.cloud:google-cloud-dataform:0.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.83.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataform/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataform.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.83.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataform/google-cloud-dataform-bom/pom.xml b/java-dataform/google-cloud-dataform-bom/pom.xml index 148cba520286..87262d19b058 100644 --- a/java-dataform/google-cloud-dataform-bom/pom.xml +++ b/java-dataform/google-cloud-dataform-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dataform-bom - 0.83.0-SNAPSHOT + 0.84.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-dataform - 0.83.0-SNAPSHOT + 0.84.0 com.google.api.grpc grpc-google-cloud-dataform-v1beta1 - 0.83.0-SNAPSHOT + 0.84.0 com.google.api.grpc grpc-google-cloud-dataform-v1 - 0.83.0-SNAPSHOT + 0.84.0 com.google.api.grpc proto-google-cloud-dataform-v1beta1 - 0.83.0-SNAPSHOT + 0.84.0 com.google.api.grpc proto-google-cloud-dataform-v1 - 0.83.0-SNAPSHOT + 0.84.0 diff --git a/java-dataform/google-cloud-dataform/pom.xml b/java-dataform/google-cloud-dataform/pom.xml index 073e568a2446..aece16747d1b 100644 --- a/java-dataform/google-cloud-dataform/pom.xml +++ b/java-dataform/google-cloud-dataform/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dataform - 0.83.0-SNAPSHOT + 0.84.0 jar Google Cloud Dataform Cloud Dataform Help analytics teams manage data inside BigQuery using SQL. com.google.cloud google-cloud-dataform-parent - 0.83.0-SNAPSHOT + 0.84.0 google-cloud-dataform diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformClient.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformClient.java index 8c850c8db74c..1f163e401450 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformClient.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformClient.java @@ -20,11 +20,15 @@ import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; +import com.google.api.resourcenames.ResourceName; import com.google.cloud.dataform.v1beta1.stub.DataformStub; import com.google.cloud.dataform.v1beta1.stub.DataformStubSettings; import com.google.cloud.location.GetLocationRequest; @@ -37,6 +41,7 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import java.io.IOException; @@ -59,8 +64,8 @@ * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - * Repository response = dataformClient.getRepository(name); + * TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + * TeamFolder response = dataformClient.getTeamFolder(name); * } * } * @@ -75,6 +80,251 @@ * Method Variants * * + *

          GetTeamFolder + *

          Fetches a single TeamFolder. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • getTeamFolder(GetTeamFolderRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • getTeamFolder(TeamFolderName name) + *

          • getTeamFolder(String name) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • getTeamFolderCallable() + *

          + * + * + * + *

          CreateTeamFolder + *

          Creates a new TeamFolder in a given project and location. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • createTeamFolder(CreateTeamFolderRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • createTeamFolder(LocationName parent, TeamFolder teamFolder) + *

          • createTeamFolder(String parent, TeamFolder teamFolder) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • createTeamFolderCallable() + *

          + * + * + * + *

          UpdateTeamFolder + *

          Updates a single TeamFolder. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • updateTeamFolder(UpdateTeamFolderRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • updateTeamFolder(TeamFolder teamFolder, FieldMask updateMask) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • updateTeamFolderCallable() + *

          + * + * + * + *

          DeleteTeamFolder + *

          Deletes a single TeamFolder. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • deleteTeamFolder(DeleteTeamFolderRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • deleteTeamFolder(TeamFolderName name) + *

          • deleteTeamFolder(String name) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • deleteTeamFolderCallable() + *

          + * + * + * + *

          QueryTeamFolderContents + *

          Returns the contents of a given TeamFolder. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • queryTeamFolderContents(QueryTeamFolderContentsRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • queryTeamFolderContents(TeamFolderName teamFolder) + *

          • queryTeamFolderContents(String teamFolder) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • queryTeamFolderContentsPagedCallable() + *

          • queryTeamFolderContentsCallable() + *

          + * + * + * + *

          SearchTeamFolders + *

          Returns all TeamFolders in a given location that the caller has access to and match the provided filter. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • searchTeamFolders(SearchTeamFoldersRequest request) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • searchTeamFoldersPagedCallable() + *

          • searchTeamFoldersCallable() + *

          + * + * + * + *

          GetFolder + *

          Fetches a single Folder. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • getFolder(GetFolderRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • getFolder(FolderName name) + *

          • getFolder(String name) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • getFolderCallable() + *

          + * + * + * + *

          CreateFolder + *

          Creates a new Folder in a given project and location. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • createFolder(CreateFolderRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • createFolder(LocationName parent, Folder folder) + *

          • createFolder(String parent, Folder folder) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • createFolderCallable() + *

          + * + * + * + *

          UpdateFolder + *

          Updates a single Folder. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • updateFolder(UpdateFolderRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • updateFolder(Folder folder, FieldMask updateMask) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • updateFolderCallable() + *

          + * + * + * + *

          DeleteFolder + *

          Deletes a single Folder. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • deleteFolder(DeleteFolderRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • deleteFolder(FolderName name) + *

          • deleteFolder(String name) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • deleteFolderCallable() + *

          + * + * + * + *

          QueryFolderContents + *

          Returns the contents of a given Folder. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • queryFolderContents(QueryFolderContentsRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • queryFolderContents(FolderName folder) + *

          • queryFolderContents(String folder) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • queryFolderContentsPagedCallable() + *

          • queryFolderContentsCallable() + *

          + * + * + * + *

          QueryUserRootContents + *

          Returns the contents of a caller's root folder in a given location. The root folder contains all resources that are created by the user and not contained in any other folder. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • queryUserRootContents(QueryUserRootContentsRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • queryUserRootContents(LocationName location) + *

          • queryUserRootContents(String location) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • queryUserRootContentsPagedCallable() + *

          • queryUserRootContentsCallable() + *

          + * + * + * + *

          MoveFolder + *

          Moves a Folder to a new Folder, TeamFolder, or the root location. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • moveFolderAsync(MoveFolderRequest request) + *

          + *

          Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

          + *
            + *
          • moveFolderAsync(FolderName name, String destinationContainingFolder) + *

          • moveFolderAsync(String name, String destinationContainingFolder) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • moveFolderOperationCallable() + *

          • moveFolderCallable() + *

          + * + * + * *

          ListRepositories *

          Lists Repositories in a given project and location. *

          **Note:** *This method can return repositories not shown in the [Dataform UI](https://console.cloud.google.com/bigquery/dataform)*. @@ -172,6 +422,26 @@ * * * + *

          MoveRepository + *

          Moves a Repository to a new location. + * + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • moveRepositoryAsync(MoveRepositoryRequest request) + *

          + *

          Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

          + *
            + *
          • moveRepositoryAsync(RepositoryName name, String destinationContainingFolder) + *

          • moveRepositoryAsync(String name, String destinationContainingFolder) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • moveRepositoryOperationCallable() + *

          • moveRepositoryCallable() + *

          + * + * + * *

          CommitRepositoryChanges *

          Applies a Git commit to a Repository. The Repository must not have a value for `git_remote_settings.url`. * @@ -984,75 +1254,81 @@ * * * - *

          ListLocations - *

          Lists information about the supported locations for this service. + *

          GetIamPolicy + *

          Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. * *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          *
            - *
          • listLocations(ListLocationsRequest request) + *

          • getIamPolicy(GetIamPolicyRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • getIamPolicy(ResourceName resource) + *

          • getIamPolicy(String resource) *

          *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          *
            - *
          • listLocationsPagedCallable() - *

          • listLocationsCallable() + *

          • getIamPolicyCallable() *

          * * * - *

          GetLocation - *

          Gets information about a location. + *

          SetIamPolicy + *

          Sets the access control policy on the specified resource. Replaces any existing policy. + *

          Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. * *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          *
            - *
          • getLocation(GetLocationRequest request) + *

          • setIamPolicy(SetIamPolicyRequest request) *

          *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          *
            - *
          • getLocationCallable() + *

          • setIamPolicyCallable() *

          * * * - *

          SetIamPolicy - *

          Sets the access control policy on the specified resource. Replacesany existing policy. - *

          Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + *

          TestIamPermissions + *

          Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. + *

          Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. * *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          *
            - *
          • setIamPolicy(SetIamPolicyRequest request) + *

          • testIamPermissions(TestIamPermissionsRequest request) *

          *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          *
            - *
          • setIamPolicyCallable() + *

          • testIamPermissionsCallable() *

          * * * - *

          GetIamPolicy - *

          Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set. + *

          ListLocations + *

          Lists information about the supported locations for this service.This method can be called in two ways: + *

          * **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project. * *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          *
            - *
          • getIamPolicy(GetIamPolicyRequest request) + *

          • listLocations(ListLocationsRequest request) *

          *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          *
            - *
          • getIamPolicyCallable() + *

          • listLocationsPagedCallable() + *

          • listLocationsCallable() *

          * * * - *

          TestIamPermissions - *

          Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. - *

          Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning. + *

          GetLocation + *

          Gets information about a location. * *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          *
            - *
          • testIamPermissions(TestIamPermissionsRequest request) + *

          • getLocation(GetLocationRequest request) *

          *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          *
            - *
          • testIamPermissionsCallable() + *

          • getLocationCallable() *

          * * @@ -1115,6 +1391,8 @@ public class DataformClient implements BackgroundResource { private final DataformSettings settings; private final DataformStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; /** Constructs an instance of DataformClient with default settings. */ public static final DataformClient create() throws IOException { @@ -1144,11 +1422,17 @@ public static final DataformClient create(DataformStub stub) { protected DataformClient(DataformSettings settings) throws IOException { this.settings = settings; this.stub = ((DataformStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } protected DataformClient(DataformStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } public final DataformSettings getSettings() { @@ -1159,12 +1443,26 @@ public DataformStub getStub() { return stub; } + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Repositories in a given project and location. - * - *

          **Note:** *This method can return repositories not shown in the - * [Dataform UI](https://console.cloud.google.com/bigquery/dataform)*. + * Fetches a single TeamFolder. * *

          Sample code: * @@ -1175,31 +1473,23 @@ public DataformStub getStub() { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * for (Repository element : dataformClient.listRepositories(parent).iterateAll()) { - * // doThingsWith(element); - * } + * TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + * TeamFolder response = dataformClient.getTeamFolder(name); * } * } * - * @param parent Required. The location in which to list repositories. Must be in the format - * `projects/*/locations/*`. + * @param name Required. The TeamFolder's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRepositoriesPagedResponse listRepositories(LocationName parent) { - ListRepositoriesRequest request = - ListRepositoriesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listRepositories(request); + public final TeamFolder getTeamFolder(TeamFolderName name) { + GetTeamFolderRequest request = + GetTeamFolderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getTeamFolder(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Repositories in a given project and location. - * - *

          **Note:** *This method can return repositories not shown in the - * [Dataform UI](https://console.cloud.google.com/bigquery/dataform)*. + * Fetches a single TeamFolder. * *

          Sample code: * @@ -1210,29 +1500,22 @@ public final ListRepositoriesPagedResponse listRepositories(LocationName parent) * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * for (Repository element : dataformClient.listRepositories(parent).iterateAll()) { - * // doThingsWith(element); - * } + * String name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString(); + * TeamFolder response = dataformClient.getTeamFolder(name); * } * } * - * @param parent Required. The location in which to list repositories. Must be in the format - * `projects/*/locations/*`. + * @param name Required. The TeamFolder's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRepositoriesPagedResponse listRepositories(String parent) { - ListRepositoriesRequest request = - ListRepositoriesRequest.newBuilder().setParent(parent).build(); - return listRepositories(request); + public final TeamFolder getTeamFolder(String name) { + GetTeamFolderRequest request = GetTeamFolderRequest.newBuilder().setName(name).build(); + return getTeamFolder(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Repositories in a given project and location. - * - *

          **Note:** *This method can return repositories not shown in the - * [Dataform UI](https://console.cloud.google.com/bigquery/dataform)*. + * Fetches a single TeamFolder. * *

          Sample code: * @@ -1243,33 +1526,24 @@ public final ListRepositoriesPagedResponse listRepositories(String parent) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * ListRepositoriesRequest request = - * ListRepositoriesRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setOrderBy("orderBy-1207110587") - * .setFilter("filter-1274492040") + * GetTeamFolderRequest request = + * GetTeamFolderRequest.newBuilder() + * .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) * .build(); - * for (Repository element : dataformClient.listRepositories(request).iterateAll()) { - * // doThingsWith(element); - * } + * TeamFolder response = dataformClient.getTeamFolder(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRepositoriesPagedResponse listRepositories(ListRepositoriesRequest request) { - return listRepositoriesPagedCallable().call(request); + public final TeamFolder getTeamFolder(GetTeamFolderRequest request) { + return getTeamFolderCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Repositories in a given project and location. - * - *

          **Note:** *This method can return repositories not shown in the - * [Dataform UI](https://console.cloud.google.com/bigquery/dataform)*. + * Fetches a single TeamFolder. * *

          Sample code: * @@ -1280,75 +1554,23 @@ public final ListRepositoriesPagedResponse listRepositories(ListRepositoriesRequ * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * ListRepositoriesRequest request = - * ListRepositoriesRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setOrderBy("orderBy-1207110587") - * .setFilter("filter-1274492040") + * GetTeamFolderRequest request = + * GetTeamFolderRequest.newBuilder() + * .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) * .build(); - * ApiFuture future = - * dataformClient.listRepositoriesPagedCallable().futureCall(request); + * ApiFuture future = dataformClient.getTeamFolderCallable().futureCall(request); * // Do something. - * for (Repository element : future.get().iterateAll()) { - * // doThingsWith(element); - * } - * } - * } - */ - public final UnaryCallable - listRepositoriesPagedCallable() { - return stub.listRepositoriesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Repositories in a given project and location. - * - *

          **Note:** *This method can return repositories not shown in the - * [Dataform UI](https://console.cloud.google.com/bigquery/dataform)*. - * - *

          Sample code: - * - *

          {@code
          -   * // This snippet has been automatically generated and should be regarded as a code template only.
          -   * // It will require modifications to work:
          -   * // - It may require correct/in-range values for request initialization.
          -   * // - It may require specifying regional endpoints when creating the service client as shown in
          -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          -   * try (DataformClient dataformClient = DataformClient.create()) {
          -   *   ListRepositoriesRequest request =
          -   *       ListRepositoriesRequest.newBuilder()
          -   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          -   *           .setPageSize(883849137)
          -   *           .setPageToken("pageToken873572522")
          -   *           .setOrderBy("orderBy-1207110587")
          -   *           .setFilter("filter-1274492040")
          -   *           .build();
          -   *   while (true) {
          -   *     ListRepositoriesResponse response = dataformClient.listRepositoriesCallable().call(request);
          -   *     for (Repository element : response.getRepositoriesList()) {
          -   *       // doThingsWith(element);
          -   *     }
          -   *     String nextPageToken = response.getNextPageToken();
          -   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
          -   *       request = request.toBuilder().setPageToken(nextPageToken).build();
          -   *     } else {
          -   *       break;
          -   *     }
          -   *   }
          +   *   TeamFolder response = future.get();
              * }
              * }
          */ - public final UnaryCallable - listRepositoriesCallable() { - return stub.listRepositoriesCallable(); + public final UnaryCallable getTeamFolderCallable() { + return stub.getTeamFolderCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single Repository. + * Creates a new TeamFolder in a given project and location. * *

          Sample code: * @@ -1359,23 +1581,29 @@ public final ListRepositoriesPagedResponse listRepositories(ListRepositoriesRequ * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - * Repository response = dataformClient.getRepository(name); + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * TeamFolder teamFolder = TeamFolder.newBuilder().build(); + * TeamFolder response = dataformClient.createTeamFolder(parent, teamFolder); * } * } * - * @param name Required. The repository's name. + * @param parent Required. The location in which to create the TeamFolder. Must be in the format + * `projects/*/locations/*`. + * @param teamFolder Required. The TeamFolder to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Repository getRepository(RepositoryName name) { - GetRepositoryRequest request = - GetRepositoryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getRepository(request); + public final TeamFolder createTeamFolder(LocationName parent, TeamFolder teamFolder) { + CreateTeamFolderRequest request = + CreateTeamFolderRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setTeamFolder(teamFolder) + .build(); + return createTeamFolder(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single Repository. + * Creates a new TeamFolder in a given project and location. * *

          Sample code: * @@ -1386,22 +1614,26 @@ public final Repository getRepository(RepositoryName name) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * String name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); - * Repository response = dataformClient.getRepository(name); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * TeamFolder teamFolder = TeamFolder.newBuilder().build(); + * TeamFolder response = dataformClient.createTeamFolder(parent, teamFolder); * } * } * - * @param name Required. The repository's name. + * @param parent Required. The location in which to create the TeamFolder. Must be in the format + * `projects/*/locations/*`. + * @param teamFolder Required. The TeamFolder to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Repository getRepository(String name) { - GetRepositoryRequest request = GetRepositoryRequest.newBuilder().setName(name).build(); - return getRepository(request); + public final TeamFolder createTeamFolder(String parent, TeamFolder teamFolder) { + CreateTeamFolderRequest request = + CreateTeamFolderRequest.newBuilder().setParent(parent).setTeamFolder(teamFolder).build(); + return createTeamFolder(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single Repository. + * Creates a new TeamFolder in a given project and location. * *

          Sample code: * @@ -1412,24 +1644,26 @@ public final Repository getRepository(String name) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * GetRepositoryRequest request = - * GetRepositoryRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * CreateTeamFolderRequest request = + * CreateTeamFolderRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setTeamFolder(TeamFolder.newBuilder().build()) + * .setTeamFolderId("teamFolderId18004902") * .build(); - * Repository response = dataformClient.getRepository(request); + * TeamFolder response = dataformClient.createTeamFolder(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Repository getRepository(GetRepositoryRequest request) { - return getRepositoryCallable().call(request); + public final TeamFolder createTeamFolder(CreateTeamFolderRequest request) { + return createTeamFolderCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single Repository. + * Creates a new TeamFolder in a given project and location. * *

          Sample code: * @@ -1440,23 +1674,25 @@ public final Repository getRepository(GetRepositoryRequest request) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * GetRepositoryRequest request = - * GetRepositoryRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * CreateTeamFolderRequest request = + * CreateTeamFolderRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setTeamFolder(TeamFolder.newBuilder().build()) + * .setTeamFolderId("teamFolderId18004902") * .build(); - * ApiFuture future = dataformClient.getRepositoryCallable().futureCall(request); + * ApiFuture future = dataformClient.createTeamFolderCallable().futureCall(request); * // Do something. - * Repository response = future.get(); + * TeamFolder response = future.get(); * } * } */ - public final UnaryCallable getRepositoryCallable() { - return stub.getRepositoryCallable(); + public final UnaryCallable createTeamFolderCallable() { + return stub.createTeamFolderCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Repository in a given project and location. + * Updates a single TeamFolder. * *

          Sample code: * @@ -1467,34 +1703,29 @@ public final UnaryCallable getRepositoryCallab * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * Repository repository = Repository.newBuilder().build(); - * String repositoryId = "repositoryId2113747461"; - * Repository response = dataformClient.createRepository(parent, repository, repositoryId); + * TeamFolder teamFolder = TeamFolder.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * TeamFolder response = dataformClient.updateTeamFolder(teamFolder, updateMask); * } * } * - * @param parent Required. The location in which to create the repository. Must be in the format - * `projects/*/locations/*`. - * @param repository Required. The repository to create. - * @param repositoryId Required. The ID to use for the repository, which will become the final - * component of the repository's resource name. + * @param teamFolder Required. The updated TeamFolder. + * @param updateMask Optional. Specifies the fields to be updated in the Folder. If left unset, + * all fields will be updated. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Repository createRepository( - LocationName parent, Repository repository, String repositoryId) { - CreateRepositoryRequest request = - CreateRepositoryRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setRepository(repository) - .setRepositoryId(repositoryId) + public final TeamFolder updateTeamFolder(TeamFolder teamFolder, FieldMask updateMask) { + UpdateTeamFolderRequest request = + UpdateTeamFolderRequest.newBuilder() + .setTeamFolder(teamFolder) + .setUpdateMask(updateMask) .build(); - return createRepository(request); + return updateTeamFolder(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Repository in a given project and location. + * Updates a single TeamFolder. * *

          Sample code: * @@ -1505,34 +1736,25 @@ public final Repository createRepository( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * Repository repository = Repository.newBuilder().build(); - * String repositoryId = "repositoryId2113747461"; - * Repository response = dataformClient.createRepository(parent, repository, repositoryId); + * UpdateTeamFolderRequest request = + * UpdateTeamFolderRequest.newBuilder() + * .setUpdateMask(FieldMask.newBuilder().build()) + * .setTeamFolder(TeamFolder.newBuilder().build()) + * .build(); + * TeamFolder response = dataformClient.updateTeamFolder(request); * } * } * - * @param parent Required. The location in which to create the repository. Must be in the format - * `projects/*/locations/*`. - * @param repository Required. The repository to create. - * @param repositoryId Required. The ID to use for the repository, which will become the final - * component of the repository's resource name. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Repository createRepository( - String parent, Repository repository, String repositoryId) { - CreateRepositoryRequest request = - CreateRepositoryRequest.newBuilder() - .setParent(parent) - .setRepository(repository) - .setRepositoryId(repositoryId) - .build(); - return createRepository(request); + public final TeamFolder updateTeamFolder(UpdateTeamFolderRequest request) { + return updateTeamFolderCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Repository in a given project and location. + * Updates a single TeamFolder. * *

          Sample code: * @@ -1543,26 +1765,24 @@ public final Repository createRepository( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * CreateRepositoryRequest request = - * CreateRepositoryRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setRepository(Repository.newBuilder().build()) - * .setRepositoryId("repositoryId2113747461") + * UpdateTeamFolderRequest request = + * UpdateTeamFolderRequest.newBuilder() + * .setUpdateMask(FieldMask.newBuilder().build()) + * .setTeamFolder(TeamFolder.newBuilder().build()) * .build(); - * Repository response = dataformClient.createRepository(request); + * ApiFuture future = dataformClient.updateTeamFolderCallable().futureCall(request); + * // Do something. + * TeamFolder response = future.get(); * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Repository createRepository(CreateRepositoryRequest request) { - return createRepositoryCallable().call(request); + public final UnaryCallable updateTeamFolderCallable() { + return stub.updateTeamFolderCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Repository in a given project and location. + * Deletes a single TeamFolder. * *

          Sample code: * @@ -1573,30 +1793,23 @@ public final Repository createRepository(CreateRepositoryRequest request) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * CreateRepositoryRequest request = - * CreateRepositoryRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setRepository(Repository.newBuilder().build()) - * .setRepositoryId("repositoryId2113747461") - * .build(); - * ApiFuture future = dataformClient.createRepositoryCallable().futureCall(request); - * // Do something. - * Repository response = future.get(); + * TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + * dataformClient.deleteTeamFolder(name); * } * } + * + * @param name Required. The TeamFolder's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable createRepositoryCallable() { - return stub.createRepositoryCallable(); + public final void deleteTeamFolder(TeamFolderName name) { + DeleteTeamFolderRequest request = + DeleteTeamFolderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteTeamFolder(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a single Repository. - * - *

          **Note:** *This method does not fully implement - * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad - * request, and when the `field_mask` is omitted, the request is treated as a full update on all - * modifiable fields.* + * Deletes a single TeamFolder. * *

          Sample code: * @@ -1607,34 +1820,22 @@ public final UnaryCallable createRepository * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * Repository repository = Repository.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * Repository response = dataformClient.updateRepository(repository, updateMask); + * String name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString(); + * dataformClient.deleteTeamFolder(name); * } * } * - * @param repository Required. The repository to update. - * @param updateMask Optional. Specifies the fields to be updated in the repository. If left - * unset, all fields will be updated. + * @param name Required. The TeamFolder's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Repository updateRepository(Repository repository, FieldMask updateMask) { - UpdateRepositoryRequest request = - UpdateRepositoryRequest.newBuilder() - .setRepository(repository) - .setUpdateMask(updateMask) - .build(); - return updateRepository(request); + public final void deleteTeamFolder(String name) { + DeleteTeamFolderRequest request = DeleteTeamFolderRequest.newBuilder().setName(name).build(); + deleteTeamFolder(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a single Repository. - * - *

          **Note:** *This method does not fully implement - * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad - * request, and when the `field_mask` is omitted, the request is treated as a full update on all - * modifiable fields.* + * Deletes a single TeamFolder. * *

          Sample code: * @@ -1645,30 +1846,24 @@ public final Repository updateRepository(Repository repository, FieldMask update * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * UpdateRepositoryRequest request = - * UpdateRepositoryRequest.newBuilder() - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setRepository(Repository.newBuilder().build()) + * DeleteTeamFolderRequest request = + * DeleteTeamFolderRequest.newBuilder() + * .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) * .build(); - * Repository response = dataformClient.updateRepository(request); + * dataformClient.deleteTeamFolder(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Repository updateRepository(UpdateRepositoryRequest request) { - return updateRepositoryCallable().call(request); + public final void deleteTeamFolder(DeleteTeamFolderRequest request) { + deleteTeamFolderCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a single Repository. - * - *

          **Note:** *This method does not fully implement - * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad - * request, and when the `field_mask` is omitted, the request is treated as a full update on all - * modifiable fields.* + * Deletes a single TeamFolder. * *

          Sample code: * @@ -1679,24 +1874,23 @@ public final Repository updateRepository(UpdateRepositoryRequest request) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * UpdateRepositoryRequest request = - * UpdateRepositoryRequest.newBuilder() - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setRepository(Repository.newBuilder().build()) + * DeleteTeamFolderRequest request = + * DeleteTeamFolderRequest.newBuilder() + * .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) * .build(); - * ApiFuture future = dataformClient.updateRepositoryCallable().futureCall(request); + * ApiFuture future = dataformClient.deleteTeamFolderCallable().futureCall(request); * // Do something. - * Repository response = future.get(); + * future.get(); * } * } */ - public final UnaryCallable updateRepositoryCallable() { - return stub.updateRepositoryCallable(); + public final UnaryCallable deleteTeamFolderCallable() { + return stub.deleteTeamFolderCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Repository. + * Returns the contents of a given TeamFolder. * *

          Sample code: * @@ -1707,23 +1901,30 @@ public final UnaryCallable updateRepository * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - * dataformClient.deleteRepository(name); + * TeamFolderName teamFolder = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + * for (QueryTeamFolderContentsResponse.TeamFolderContentsEntry element : + * dataformClient.queryTeamFolderContents(teamFolder).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. The repository's name. + * @param teamFolder Required. Name of the team_folder whose contents to list. Format: + * `projects/*/locations/*/teamFolders/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteRepository(RepositoryName name) { - DeleteRepositoryRequest request = - DeleteRepositoryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deleteRepository(request); + public final QueryTeamFolderContentsPagedResponse queryTeamFolderContents( + TeamFolderName teamFolder) { + QueryTeamFolderContentsRequest request = + QueryTeamFolderContentsRequest.newBuilder() + .setTeamFolder(teamFolder == null ? null : teamFolder.toString()) + .build(); + return queryTeamFolderContents(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Repository. + * Returns the contents of a given TeamFolder. * *

          Sample code: * @@ -1734,22 +1935,27 @@ public final void deleteRepository(RepositoryName name) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * String name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); - * dataformClient.deleteRepository(name); + * String teamFolder = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString(); + * for (QueryTeamFolderContentsResponse.TeamFolderContentsEntry element : + * dataformClient.queryTeamFolderContents(teamFolder).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. The repository's name. + * @param teamFolder Required. Name of the team_folder whose contents to list. Format: + * `projects/*/locations/*/teamFolders/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteRepository(String name) { - DeleteRepositoryRequest request = DeleteRepositoryRequest.newBuilder().setName(name).build(); - deleteRepository(request); + public final QueryTeamFolderContentsPagedResponse queryTeamFolderContents(String teamFolder) { + QueryTeamFolderContentsRequest request = + QueryTeamFolderContentsRequest.newBuilder().setTeamFolder(teamFolder).build(); + return queryTeamFolderContents(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Repository. + * Returns the contents of a given TeamFolder. * *

          Sample code: * @@ -1760,25 +1966,33 @@ public final void deleteRepository(String name) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * DeleteRepositoryRequest request = - * DeleteRepositoryRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setForce(true) - * .build(); - * dataformClient.deleteRepository(request); + * QueryTeamFolderContentsRequest request = + * QueryTeamFolderContentsRequest.newBuilder() + * .setTeamFolder( + * TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") + * .build(); + * for (QueryTeamFolderContentsResponse.TeamFolderContentsEntry element : + * dataformClient.queryTeamFolderContents(request).iterateAll()) { + * // doThingsWith(element); + * } * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteRepository(DeleteRepositoryRequest request) { - deleteRepositoryCallable().call(request); + public final QueryTeamFolderContentsPagedResponse queryTeamFolderContents( + QueryTeamFolderContentsRequest request) { + return queryTeamFolderContentsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Repository. + * Returns the contents of a given TeamFolder. * *

          Sample code: * @@ -1789,25 +2003,33 @@ public final void deleteRepository(DeleteRepositoryRequest request) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * DeleteRepositoryRequest request = - * DeleteRepositoryRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setForce(true) + * QueryTeamFolderContentsRequest request = + * QueryTeamFolderContentsRequest.newBuilder() + * .setTeamFolder( + * TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = dataformClient.deleteRepositoryCallable().futureCall(request); + * ApiFuture future = + * dataformClient.queryTeamFolderContentsPagedCallable().futureCall(request); * // Do something. - * future.get(); + * for (QueryTeamFolderContentsResponse.TeamFolderContentsEntry element : + * future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } */ - public final UnaryCallable deleteRepositoryCallable() { - return stub.deleteRepositoryCallable(); + public final UnaryCallable + queryTeamFolderContentsPagedCallable() { + return stub.queryTeamFolderContentsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Applies a Git commit to a Repository. The Repository must not have a value for - * `git_remote_settings.url`. + * Returns the contents of a given TeamFolder. * *

          Sample code: * @@ -1818,30 +2040,77 @@ public final UnaryCallable deleteRepositoryCalla * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * CommitRepositoryChangesRequest request = - * CommitRepositoryChangesRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setCommitMetadata(CommitMetadata.newBuilder().build()) - * .setRequiredHeadCommitSha("requiredHeadCommitSha-393901930") - * .putAllFileOperations( - * new HashMap()) + * QueryTeamFolderContentsRequest request = + * QueryTeamFolderContentsRequest.newBuilder() + * .setTeamFolder( + * TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); - * CommitRepositoryChangesResponse response = dataformClient.commitRepositoryChanges(request); + * while (true) { + * QueryTeamFolderContentsResponse response = + * dataformClient.queryTeamFolderContentsCallable().call(request); + * for (QueryTeamFolderContentsResponse.TeamFolderContentsEntry element : + * response.getEntriesList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * } + */ + public final UnaryCallable + queryTeamFolderContentsCallable() { + return stub.queryTeamFolderContentsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all TeamFolders in a given location that the caller has access to and match the + * provided filter. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   SearchTeamFoldersRequest request =
          +   *       SearchTeamFoldersRequest.newBuilder()
          +   *           .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .setFilter("filter-1274492040")
          +   *           .build();
          +   *   for (SearchTeamFoldersResponse.TeamFolderSearchResult element :
          +   *       dataformClient.searchTeamFolders(request).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
              * }
              * }
          * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CommitRepositoryChangesResponse commitRepositoryChanges( - CommitRepositoryChangesRequest request) { - return commitRepositoryChangesCallable().call(request); + public final SearchTeamFoldersPagedResponse searchTeamFolders(SearchTeamFoldersRequest request) { + return searchTeamFoldersPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Applies a Git commit to a Repository. The Repository must not have a value for - * `git_remote_settings.url`. + * Returns all TeamFolders in a given location that the caller has access to and match the + * provided filter. * *

          Sample code: * @@ -1852,30 +2121,32 @@ public final CommitRepositoryChangesResponse commitRepositoryChanges( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * CommitRepositoryChangesRequest request = - * CommitRepositoryChangesRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setCommitMetadata(CommitMetadata.newBuilder().build()) - * .setRequiredHeadCommitSha("requiredHeadCommitSha-393901930") - * .putAllFileOperations( - * new HashMap()) + * SearchTeamFoldersRequest request = + * SearchTeamFoldersRequest.newBuilder() + * .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = - * dataformClient.commitRepositoryChangesCallable().futureCall(request); + * ApiFuture future = + * dataformClient.searchTeamFoldersPagedCallable().futureCall(request); * // Do something. - * CommitRepositoryChangesResponse response = future.get(); + * for (SearchTeamFoldersResponse.TeamFolderSearchResult element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } */ - public final UnaryCallable - commitRepositoryChangesCallable() { - return stub.commitRepositoryChangesCallable(); + public final UnaryCallable + searchTeamFoldersPagedCallable() { + return stub.searchTeamFoldersPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the contents of a file (inside a Repository). The Repository must not have a value for - * `git_remote_settings.url`. + * Returns all TeamFolders in a given location that the caller has access to and match the + * provided filter. * *

          Sample code: * @@ -1886,27 +2157,38 @@ public final CommitRepositoryChangesResponse commitRepositoryChanges( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * ReadRepositoryFileRequest request = - * ReadRepositoryFileRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setCommitSha("commitSha-1491174411") - * .setPath("path3433509") + * SearchTeamFoldersRequest request = + * SearchTeamFoldersRequest.newBuilder() + * .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); - * ReadRepositoryFileResponse response = dataformClient.readRepositoryFile(request); + * while (true) { + * SearchTeamFoldersResponse response = + * dataformClient.searchTeamFoldersCallable().call(request); + * for (SearchTeamFoldersResponse.TeamFolderSearchResult element : response.getResultsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReadRepositoryFileResponse readRepositoryFile(ReadRepositoryFileRequest request) { - return readRepositoryFileCallable().call(request); + public final UnaryCallable + searchTeamFoldersCallable() { + return stub.searchTeamFoldersCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the contents of a file (inside a Repository). The Repository must not have a value for - * `git_remote_settings.url`. + * Fetches a single Folder. * *

          Sample code: * @@ -1917,28 +2199,23 @@ public final ReadRepositoryFileResponse readRepositoryFile(ReadRepositoryFileReq * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * ReadRepositoryFileRequest request = - * ReadRepositoryFileRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setCommitSha("commitSha-1491174411") - * .setPath("path3433509") - * .build(); - * ApiFuture future = - * dataformClient.readRepositoryFileCallable().futureCall(request); - * // Do something. - * ReadRepositoryFileResponse response = future.get(); + * FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + * Folder response = dataformClient.getFolder(name); * } * } + * + * @param name Required. The Folder's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - readRepositoryFileCallable() { - return stub.readRepositoryFileCallable(); + public final Folder getFolder(FolderName name) { + GetFolderRequest request = + GetFolderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getFolder(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the contents of a given Repository directory. The Repository must not have a value for - * `git_remote_settings.url`. + * Fetches a single Folder. * *

          Sample code: * @@ -1949,33 +2226,22 @@ public final ReadRepositoryFileResponse readRepositoryFile(ReadRepositoryFileReq * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * QueryRepositoryDirectoryContentsRequest request = - * QueryRepositoryDirectoryContentsRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setCommitSha("commitSha-1491174411") - * .setPath("path3433509") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * for (DirectoryEntry element : - * dataformClient.queryRepositoryDirectoryContents(request).iterateAll()) { - * // doThingsWith(element); - * } + * String name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString(); + * Folder response = dataformClient.getFolder(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The Folder's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final QueryRepositoryDirectoryContentsPagedResponse queryRepositoryDirectoryContents( - QueryRepositoryDirectoryContentsRequest request) { - return queryRepositoryDirectoryContentsPagedCallable().call(request); + public final Folder getFolder(String name) { + GetFolderRequest request = GetFolderRequest.newBuilder().setName(name).build(); + return getFolder(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the contents of a given Repository directory. The Repository must not have a value for - * `git_remote_settings.url`. + * Fetches a single Folder. * *

          Sample code: * @@ -1986,33 +2252,24 @@ public final QueryRepositoryDirectoryContentsPagedResponse queryRepositoryDirect * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * QueryRepositoryDirectoryContentsRequest request = - * QueryRepositoryDirectoryContentsRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setCommitSha("commitSha-1491174411") - * .setPath("path3433509") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * GetFolderRequest request = + * GetFolderRequest.newBuilder() + * .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) * .build(); - * ApiFuture future = - * dataformClient.queryRepositoryDirectoryContentsPagedCallable().futureCall(request); - * // Do something. - * for (DirectoryEntry element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * Folder response = dataformClient.getFolder(request); * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable< - QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsPagedResponse> - queryRepositoryDirectoryContentsPagedCallable() { - return stub.queryRepositoryDirectoryContentsPagedCallable(); + public final Folder getFolder(GetFolderRequest request) { + return getFolderCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the contents of a given Repository directory. The Repository must not have a value for - * `git_remote_settings.url`. + * Fetches a single Folder. * *

          Sample code: * @@ -2023,40 +2280,23 @@ public final QueryRepositoryDirectoryContentsPagedResponse queryRepositoryDirect * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * QueryRepositoryDirectoryContentsRequest request = - * QueryRepositoryDirectoryContentsRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setCommitSha("commitSha-1491174411") - * .setPath("path3433509") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * GetFolderRequest request = + * GetFolderRequest.newBuilder() + * .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) * .build(); - * while (true) { - * QueryRepositoryDirectoryContentsResponse response = - * dataformClient.queryRepositoryDirectoryContentsCallable().call(request); - * for (DirectoryEntry element : response.getDirectoryEntriesList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * ApiFuture future = dataformClient.getFolderCallable().futureCall(request); + * // Do something. + * Folder response = future.get(); * } * } */ - public final UnaryCallable< - QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsResponse> - queryRepositoryDirectoryContentsCallable() { - return stub.queryRepositoryDirectoryContentsCallable(); + public final UnaryCallable getFolderCallable() { + return stub.getFolderCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a Repository's history of commits. The Repository must not have a value for - * `git_remote_settings.url`. + * Creates a new Folder in a given project and location. * *

          Sample code: * @@ -2067,30 +2307,29 @@ public final QueryRepositoryDirectoryContentsPagedResponse queryRepositoryDirect * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * FetchRepositoryHistoryRequest request = - * FetchRepositoryHistoryRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * for (CommitLogEntry element : dataformClient.fetchRepositoryHistory(request).iterateAll()) { - * // doThingsWith(element); - * } + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * Folder folder = Folder.newBuilder().build(); + * Folder response = dataformClient.createFolder(parent, folder); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The location in which to create the Folder. Must be in the format + * `projects/*/locations/*`. + * @param folder Required. The Folder to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FetchRepositoryHistoryPagedResponse fetchRepositoryHistory( - FetchRepositoryHistoryRequest request) { - return fetchRepositoryHistoryPagedCallable().call(request); + public final Folder createFolder(LocationName parent, Folder folder) { + CreateFolderRequest request = + CreateFolderRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFolder(folder) + .build(); + return createFolder(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a Repository's history of commits. The Repository must not have a value for - * `git_remote_settings.url`. + * Creates a new Folder in a given project and location. * *

          Sample code: * @@ -2101,30 +2340,26 @@ public final FetchRepositoryHistoryPagedResponse fetchRepositoryHistory( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * FetchRepositoryHistoryRequest request = - * FetchRepositoryHistoryRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * ApiFuture future = - * dataformClient.fetchRepositoryHistoryPagedCallable().futureCall(request); - * // Do something. - * for (CommitLogEntry element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * Folder folder = Folder.newBuilder().build(); + * Folder response = dataformClient.createFolder(parent, folder); * } * } + * + * @param parent Required. The location in which to create the Folder. Must be in the format + * `projects/*/locations/*`. + * @param folder Required. The Folder to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - fetchRepositoryHistoryPagedCallable() { - return stub.fetchRepositoryHistoryPagedCallable(); + public final Folder createFolder(String parent, Folder folder) { + CreateFolderRequest request = + CreateFolderRequest.newBuilder().setParent(parent).setFolder(folder).build(); + return createFolder(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a Repository's history of commits. The Repository must not have a value for - * `git_remote_settings.url`. + * Creates a new Folder in a given project and location. * *

          Sample code: * @@ -2135,36 +2370,26 @@ public final FetchRepositoryHistoryPagedResponse fetchRepositoryHistory( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * FetchRepositoryHistoryRequest request = - * FetchRepositoryHistoryRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * CreateFolderRequest request = + * CreateFolderRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setFolder(Folder.newBuilder().build()) + * .setFolderId("folderId294109737") * .build(); - * while (true) { - * FetchRepositoryHistoryResponse response = - * dataformClient.fetchRepositoryHistoryCallable().call(request); - * for (CommitLogEntry element : response.getCommitsList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * Folder response = dataformClient.createFolder(request); * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - fetchRepositoryHistoryCallable() { - return stub.fetchRepositoryHistoryCallable(); + public final Folder createFolder(CreateFolderRequest request) { + return createFolderCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Computes a Repository's Git access token status. + * Creates a new Folder in a given project and location. * *

          Sample code: * @@ -2175,26 +2400,85 @@ public final FetchRepositoryHistoryPagedResponse fetchRepositoryHistory( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * ComputeRepositoryAccessTokenStatusRequest request = - * ComputeRepositoryAccessTokenStatusRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * CreateFolderRequest request = + * CreateFolderRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setFolder(Folder.newBuilder().build()) + * .setFolderId("folderId294109737") * .build(); - * ComputeRepositoryAccessTokenStatusResponse response = - * dataformClient.computeRepositoryAccessTokenStatus(request); + * ApiFuture future = dataformClient.createFolderCallable().futureCall(request); + * // Do something. + * Folder response = future.get(); + * } + * } + */ + public final UnaryCallable createFolderCallable() { + return stub.createFolderCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a single Folder. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   Folder folder = Folder.newBuilder().build();
          +   *   FieldMask updateMask = FieldMask.newBuilder().build();
          +   *   Folder response = dataformClient.updateFolder(folder, updateMask);
          +   * }
          +   * }
          + * + * @param folder Required. The updated Folder. + * @param updateMask Optional. Specifies the fields to be updated in the Folder. If left unset, + * all fields that can be updated, will be updated. A few fields cannot be updated and will be + * ignored if specified in the update_mask (e.g. parent_name, team_folder_name). + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Folder updateFolder(Folder folder, FieldMask updateMask) { + UpdateFolderRequest request = + UpdateFolderRequest.newBuilder().setFolder(folder).setUpdateMask(updateMask).build(); + return updateFolder(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a single Folder. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   UpdateFolderRequest request =
          +   *       UpdateFolderRequest.newBuilder()
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .setFolder(Folder.newBuilder().build())
          +   *           .build();
          +   *   Folder response = dataformClient.updateFolder(request);
              * }
              * }
          * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ComputeRepositoryAccessTokenStatusResponse computeRepositoryAccessTokenStatus( - ComputeRepositoryAccessTokenStatusRequest request) { - return computeRepositoryAccessTokenStatusCallable().call(request); + public final Folder updateFolder(UpdateFolderRequest request) { + return updateFolderCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Computes a Repository's Git access token status. + * Updates a single Folder. * *

          Sample code: * @@ -2205,26 +2489,24 @@ public final ComputeRepositoryAccessTokenStatusResponse computeRepositoryAccessT * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * ComputeRepositoryAccessTokenStatusRequest request = - * ComputeRepositoryAccessTokenStatusRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * UpdateFolderRequest request = + * UpdateFolderRequest.newBuilder() + * .setUpdateMask(FieldMask.newBuilder().build()) + * .setFolder(Folder.newBuilder().build()) * .build(); - * ApiFuture future = - * dataformClient.computeRepositoryAccessTokenStatusCallable().futureCall(request); + * ApiFuture future = dataformClient.updateFolderCallable().futureCall(request); * // Do something. - * ComputeRepositoryAccessTokenStatusResponse response = future.get(); + * Folder response = future.get(); * } * } */ - public final UnaryCallable< - ComputeRepositoryAccessTokenStatusRequest, ComputeRepositoryAccessTokenStatusResponse> - computeRepositoryAccessTokenStatusCallable() { - return stub.computeRepositoryAccessTokenStatusCallable(); + public final UnaryCallable updateFolderCallable() { + return stub.updateFolderCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a Repository's remote branches. + * Deletes a single Folder. * *

          Sample code: * @@ -2235,24 +2517,77 @@ public final ComputeRepositoryAccessTokenStatusResponse computeRepositoryAccessT * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * FetchRemoteBranchesRequest request = - * FetchRemoteBranchesRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + * dataformClient.deleteFolder(name); + * } + * } + * + * @param name Required. The Folder's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteFolder(FolderName name) { + DeleteFolderRequest request = + DeleteFolderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteFolder(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Folder. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   String name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString();
          +   *   dataformClient.deleteFolder(name);
          +   * }
          +   * }
          + * + * @param name Required. The Folder's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteFolder(String name) { + DeleteFolderRequest request = DeleteFolderRequest.newBuilder().setName(name).build(); + deleteFolder(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Folder. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   DeleteFolderRequest request =
          +   *       DeleteFolderRequest.newBuilder()
          +   *           .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString())
              *           .build();
          -   *   FetchRemoteBranchesResponse response = dataformClient.fetchRemoteBranches(request);
          +   *   dataformClient.deleteFolder(request);
              * }
              * }
          * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FetchRemoteBranchesResponse fetchRemoteBranches(FetchRemoteBranchesRequest request) { - return fetchRemoteBranchesCallable().call(request); + public final void deleteFolder(DeleteFolderRequest request) { + deleteFolderCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a Repository's remote branches. + * Deletes a single Folder. * *

          Sample code: * @@ -2263,25 +2598,23 @@ public final FetchRemoteBranchesResponse fetchRemoteBranches(FetchRemoteBranches * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * FetchRemoteBranchesRequest request = - * FetchRemoteBranchesRequest.newBuilder() - * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * DeleteFolderRequest request = + * DeleteFolderRequest.newBuilder() + * .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) * .build(); - * ApiFuture future = - * dataformClient.fetchRemoteBranchesCallable().futureCall(request); + * ApiFuture future = dataformClient.deleteFolderCallable().futureCall(request); * // Do something. - * FetchRemoteBranchesResponse response = future.get(); + * future.get(); * } * } */ - public final UnaryCallable - fetchRemoteBranchesCallable() { - return stub.fetchRemoteBranchesCallable(); + public final UnaryCallable deleteFolderCallable() { + return stub.deleteFolderCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Workspaces in a given Repository. + * Returns the contents of a given Folder. * *

          Sample code: * @@ -2292,28 +2625,29 @@ public final FetchRemoteBranchesResponse fetchRemoteBranches(FetchRemoteBranches * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - * for (Workspace element : dataformClient.listWorkspaces(parent).iterateAll()) { + * FolderName folder = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + * for (QueryFolderContentsResponse.FolderContentsEntry element : + * dataformClient.queryFolderContents(folder).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The repository in which to list workspaces. Must be in the format - * `projects/*/locations/*/repositories/*`. + * @param folder Required. Name of the folder whose contents to list. Format: + * projects/*/locations/*/folders/* * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkspacesPagedResponse listWorkspaces(RepositoryName parent) { - ListWorkspacesRequest request = - ListWorkspacesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) + public final QueryFolderContentsPagedResponse queryFolderContents(FolderName folder) { + QueryFolderContentsRequest request = + QueryFolderContentsRequest.newBuilder() + .setFolder(folder == null ? null : folder.toString()) .build(); - return listWorkspaces(request); + return queryFolderContents(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Workspaces in a given Repository. + * Returns the contents of a given Folder. * *

          Sample code: * @@ -2324,25 +2658,27 @@ public final ListWorkspacesPagedResponse listWorkspaces(RepositoryName parent) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); - * for (Workspace element : dataformClient.listWorkspaces(parent).iterateAll()) { + * String folder = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString(); + * for (QueryFolderContentsResponse.FolderContentsEntry element : + * dataformClient.queryFolderContents(folder).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The repository in which to list workspaces. Must be in the format - * `projects/*/locations/*/repositories/*`. + * @param folder Required. Name of the folder whose contents to list. Format: + * projects/*/locations/*/folders/* * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkspacesPagedResponse listWorkspaces(String parent) { - ListWorkspacesRequest request = ListWorkspacesRequest.newBuilder().setParent(parent).build(); - return listWorkspaces(request); + public final QueryFolderContentsPagedResponse queryFolderContents(String folder) { + QueryFolderContentsRequest request = + QueryFolderContentsRequest.newBuilder().setFolder(folder).build(); + return queryFolderContents(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Workspaces in a given Repository. + * Returns the contents of a given Folder. * *

          Sample code: * @@ -2353,15 +2689,16 @@ public final ListWorkspacesPagedResponse listWorkspaces(String parent) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * ListWorkspacesRequest request = - * ListWorkspacesRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * QueryFolderContentsRequest request = + * QueryFolderContentsRequest.newBuilder() + * .setFolder(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOrderBy("orderBy-1207110587") * .setFilter("filter-1274492040") * .build(); - * for (Workspace element : dataformClient.listWorkspaces(request).iterateAll()) { + * for (QueryFolderContentsResponse.FolderContentsEntry element : + * dataformClient.queryFolderContents(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -2370,13 +2707,14 @@ public final ListWorkspacesPagedResponse listWorkspaces(String parent) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkspacesPagedResponse listWorkspaces(ListWorkspacesRequest request) { - return listWorkspacesPagedCallable().call(request); + public final QueryFolderContentsPagedResponse queryFolderContents( + QueryFolderContentsRequest request) { + return queryFolderContentsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Workspaces in a given Repository. + * Returns the contents of a given Folder. * *

          Sample code: * @@ -2387,31 +2725,31 @@ public final ListWorkspacesPagedResponse listWorkspaces(ListWorkspacesRequest re * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * ListWorkspacesRequest request = - * ListWorkspacesRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * QueryFolderContentsRequest request = + * QueryFolderContentsRequest.newBuilder() + * .setFolder(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOrderBy("orderBy-1207110587") * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = - * dataformClient.listWorkspacesPagedCallable().futureCall(request); + * ApiFuture future = + * dataformClient.queryFolderContentsPagedCallable().futureCall(request); * // Do something. - * for (Workspace element : future.get().iterateAll()) { + * for (QueryFolderContentsResponse.FolderContentsEntry element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } */ - public final UnaryCallable - listWorkspacesPagedCallable() { - return stub.listWorkspacesPagedCallable(); + public final UnaryCallable + queryFolderContentsPagedCallable() { + return stub.queryFolderContentsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Workspaces in a given Repository. + * Returns the contents of a given Folder. * *

          Sample code: * @@ -2422,17 +2760,18 @@ public final ListWorkspacesPagedResponse listWorkspaces(ListWorkspacesRequest re * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * ListWorkspacesRequest request = - * ListWorkspacesRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * QueryFolderContentsRequest request = + * QueryFolderContentsRequest.newBuilder() + * .setFolder(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOrderBy("orderBy-1207110587") * .setFilter("filter-1274492040") * .build(); * while (true) { - * ListWorkspacesResponse response = dataformClient.listWorkspacesCallable().call(request); - * for (Workspace element : response.getWorkspacesList()) { + * QueryFolderContentsResponse response = + * dataformClient.queryFolderContentsCallable().call(request); + * for (QueryFolderContentsResponse.FolderContentsEntry element : response.getEntriesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -2445,14 +2784,15 @@ public final ListWorkspacesPagedResponse listWorkspaces(ListWorkspacesRequest re * } * } */ - public final UnaryCallable - listWorkspacesCallable() { - return stub.listWorkspacesCallable(); + public final UnaryCallable + queryFolderContentsCallable() { + return stub.queryFolderContentsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single Workspace. + * Returns the contents of a caller's root folder in a given location. The root folder contains + * all resources that are created by the user and not contained in any other folder. * *

          Sample code: * @@ -2463,24 +2803,30 @@ public final ListWorkspacesPagedResponse listWorkspaces(ListWorkspacesRequest re * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * WorkspaceName name = - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]"); - * Workspace response = dataformClient.getWorkspace(name); + * LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); + * for (QueryUserRootContentsResponse.RootContentsEntry element : + * dataformClient.queryUserRootContents(location).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. The workspace's name. + * @param location Required. Location of the user root folder whose contents to list. Format: + * projects/*/locations/* * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Workspace getWorkspace(WorkspaceName name) { - GetWorkspaceRequest request = - GetWorkspaceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getWorkspace(request); + public final QueryUserRootContentsPagedResponse queryUserRootContents(LocationName location) { + QueryUserRootContentsRequest request = + QueryUserRootContentsRequest.newBuilder() + .setLocation(location == null ? null : location.toString()) + .build(); + return queryUserRootContents(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single Workspace. + * Returns the contents of a caller's root folder in a given location. The root folder contains + * all resources that are created by the user and not contained in any other folder. * *

          Sample code: * @@ -2491,23 +2837,28 @@ public final Workspace getWorkspace(WorkspaceName name) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * String name = - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]").toString(); - * Workspace response = dataformClient.getWorkspace(name); + * String location = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * for (QueryUserRootContentsResponse.RootContentsEntry element : + * dataformClient.queryUserRootContents(location).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. The workspace's name. + * @param location Required. Location of the user root folder whose contents to list. Format: + * projects/*/locations/* * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Workspace getWorkspace(String name) { - GetWorkspaceRequest request = GetWorkspaceRequest.newBuilder().setName(name).build(); - return getWorkspace(request); + public final QueryUserRootContentsPagedResponse queryUserRootContents(String location) { + QueryUserRootContentsRequest request = + QueryUserRootContentsRequest.newBuilder().setLocation(location).build(); + return queryUserRootContents(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single Workspace. + * Returns the contents of a caller's root folder in a given location. The root folder contains + * all resources that are created by the user and not contained in any other folder. * *

          Sample code: * @@ -2518,26 +2869,33 @@ public final Workspace getWorkspace(String name) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * GetWorkspaceRequest request = - * GetWorkspaceRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) + * QueryUserRootContentsRequest request = + * QueryUserRootContentsRequest.newBuilder() + * .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); - * Workspace response = dataformClient.getWorkspace(request); + * for (QueryUserRootContentsResponse.RootContentsEntry element : + * dataformClient.queryUserRootContents(request).iterateAll()) { + * // doThingsWith(element); + * } * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Workspace getWorkspace(GetWorkspaceRequest request) { - return getWorkspaceCallable().call(request); + public final QueryUserRootContentsPagedResponse queryUserRootContents( + QueryUserRootContentsRequest request) { + return queryUserRootContentsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single Workspace. + * Returns the contents of a caller's root folder in a given location. The root folder contains + * all resources that are created by the user and not contained in any other folder. * *

          Sample code: * @@ -2548,25 +2906,32 @@ public final Workspace getWorkspace(GetWorkspaceRequest request) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * GetWorkspaceRequest request = - * GetWorkspaceRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) + * QueryUserRootContentsRequest request = + * QueryUserRootContentsRequest.newBuilder() + * .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = dataformClient.getWorkspaceCallable().futureCall(request); + * ApiFuture future = + * dataformClient.queryUserRootContentsPagedCallable().futureCall(request); * // Do something. - * Workspace response = future.get(); + * for (QueryUserRootContentsResponse.RootContentsEntry element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } */ - public final UnaryCallable getWorkspaceCallable() { - return stub.getWorkspaceCallable(); + public final UnaryCallable + queryUserRootContentsPagedCallable() { + return stub.queryUserRootContentsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Workspace in a given Repository. + * Returns the contents of a caller's root folder in a given location. The root folder contains + * all resources that are created by the user and not contained in any other folder. * *

          Sample code: * @@ -2577,34 +2942,74 @@ public final UnaryCallable getWorkspaceCallable( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - * Workspace workspace = Workspace.newBuilder().build(); - * String workspaceId = "workspaceId466560144"; - * Workspace response = dataformClient.createWorkspace(parent, workspace, workspaceId); + * QueryUserRootContentsRequest request = + * QueryUserRootContentsRequest.newBuilder() + * .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") + * .build(); + * while (true) { + * QueryUserRootContentsResponse response = + * dataformClient.queryUserRootContentsCallable().call(request); + * for (QueryUserRootContentsResponse.RootContentsEntry element : response.getEntriesList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } - * - * @param parent Required. The repository in which to create the workspace. Must be in the format - * `projects/*/locations/*/repositories/*`. - * @param workspace Required. The workspace to create. - * @param workspaceId Required. The ID to use for the workspace, which will become the final - * component of the workspace's resource name. + */ + public final UnaryCallable + queryUserRootContentsCallable() { + return stub.queryUserRootContentsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Moves a Folder to a new Folder, TeamFolder, or the root location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]");
          +   *   String destinationContainingFolder = "destinationContainingFolder870737098";
          +   *   dataformClient.moveFolderAsync(name, destinationContainingFolder).get();
          +   * }
          +   * }
          + * + * @param name Required. The full resource name of the Folder to move. + * @param destinationContainingFolder Optional. The name of the Folder, TeamFolder, or root + * location to move the Folder to. Can be in the format of: "" to move into the root User + * folder, `projects/*/locations/*/folders/*`, + * `projects/*/locations/*/teamFolders/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Workspace createWorkspace( - RepositoryName parent, Workspace workspace, String workspaceId) { - CreateWorkspaceRequest request = - CreateWorkspaceRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setWorkspace(workspace) - .setWorkspaceId(workspaceId) + public final OperationFuture moveFolderAsync( + FolderName name, String destinationContainingFolder) { + MoveFolderRequest request = + MoveFolderRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setDestinationContainingFolder(destinationContainingFolder) .build(); - return createWorkspace(request); + return moveFolderAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Workspace in a given Repository. + * Moves a Folder to a new Folder, TeamFolder, or the root location. * *

          Sample code: * @@ -2615,33 +3020,32 @@ public final Workspace createWorkspace( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); - * Workspace workspace = Workspace.newBuilder().build(); - * String workspaceId = "workspaceId466560144"; - * Workspace response = dataformClient.createWorkspace(parent, workspace, workspaceId); + * String name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString(); + * String destinationContainingFolder = "destinationContainingFolder870737098"; + * dataformClient.moveFolderAsync(name, destinationContainingFolder).get(); * } * } * - * @param parent Required. The repository in which to create the workspace. Must be in the format - * `projects/*/locations/*/repositories/*`. - * @param workspace Required. The workspace to create. - * @param workspaceId Required. The ID to use for the workspace, which will become the final - * component of the workspace's resource name. + * @param name Required. The full resource name of the Folder to move. + * @param destinationContainingFolder Optional. The name of the Folder, TeamFolder, or root + * location to move the Folder to. Can be in the format of: "" to move into the root User + * folder, `projects/*/locations/*/folders/*`, + * `projects/*/locations/*/teamFolders/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Workspace createWorkspace(String parent, Workspace workspace, String workspaceId) { - CreateWorkspaceRequest request = - CreateWorkspaceRequest.newBuilder() - .setParent(parent) - .setWorkspace(workspace) - .setWorkspaceId(workspaceId) + public final OperationFuture moveFolderAsync( + String name, String destinationContainingFolder) { + MoveFolderRequest request = + MoveFolderRequest.newBuilder() + .setName(name) + .setDestinationContainingFolder(destinationContainingFolder) .build(); - return createWorkspace(request); + return moveFolderAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Workspace in a given Repository. + * Moves a Folder to a new Folder, TeamFolder, or the root location. * *

          Sample code: * @@ -2652,26 +3056,26 @@ public final Workspace createWorkspace(String parent, Workspace workspace, Strin * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * CreateWorkspaceRequest request = - * CreateWorkspaceRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setWorkspace(Workspace.newBuilder().build()) - * .setWorkspaceId("workspaceId466560144") + * MoveFolderRequest request = + * MoveFolderRequest.newBuilder() + * .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + * .setDestinationContainingFolder("destinationContainingFolder870737098") * .build(); - * Workspace response = dataformClient.createWorkspace(request); + * dataformClient.moveFolderAsync(request).get(); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Workspace createWorkspace(CreateWorkspaceRequest request) { - return createWorkspaceCallable().call(request); + public final OperationFuture moveFolderAsync( + MoveFolderRequest request) { + return moveFolderOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Workspace in a given Repository. + * Moves a Folder to a new Folder, TeamFolder, or the root location. * *

          Sample code: * @@ -2682,25 +3086,26 @@ public final Workspace createWorkspace(CreateWorkspaceRequest request) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * CreateWorkspaceRequest request = - * CreateWorkspaceRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setWorkspace(Workspace.newBuilder().build()) - * .setWorkspaceId("workspaceId466560144") + * MoveFolderRequest request = + * MoveFolderRequest.newBuilder() + * .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + * .setDestinationContainingFolder("destinationContainingFolder870737098") * .build(); - * ApiFuture future = dataformClient.createWorkspaceCallable().futureCall(request); + * OperationFuture future = + * dataformClient.moveFolderOperationCallable().futureCall(request); * // Do something. - * Workspace response = future.get(); + * future.get(); * } * } */ - public final UnaryCallable createWorkspaceCallable() { - return stub.createWorkspaceCallable(); + public final OperationCallable + moveFolderOperationCallable() { + return stub.moveFolderOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Workspace. + * Moves a Folder to a new Folder, TeamFolder, or the root location. * *

          Sample code: * @@ -2711,24 +3116,27 @@ public final UnaryCallable createWorkspaceCal * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * WorkspaceName name = - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]"); - * dataformClient.deleteWorkspace(name); + * MoveFolderRequest request = + * MoveFolderRequest.newBuilder() + * .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + * .setDestinationContainingFolder("destinationContainingFolder870737098") + * .build(); + * ApiFuture future = dataformClient.moveFolderCallable().futureCall(request); + * // Do something. + * future.get(); * } * } - * - * @param name Required. The workspace resource's name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteWorkspace(WorkspaceName name) { - DeleteWorkspaceRequest request = - DeleteWorkspaceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deleteWorkspace(request); + public final UnaryCallable moveFolderCallable() { + return stub.moveFolderCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Workspace. + * Lists Repositories in a given project and location. + * + *

          **Note:** *This method can return repositories not shown in the + * [Dataform UI](https://console.cloud.google.com/bigquery/dataform)*. * *

          Sample code: * @@ -2739,23 +3147,31 @@ public final void deleteWorkspace(WorkspaceName name) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * String name = - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]").toString(); - * dataformClient.deleteWorkspace(name); + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * for (Repository element : dataformClient.listRepositories(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. The workspace resource's name. + * @param parent Required. The location in which to list repositories. Must be in the format + * `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteWorkspace(String name) { - DeleteWorkspaceRequest request = DeleteWorkspaceRequest.newBuilder().setName(name).build(); - deleteWorkspace(request); + public final ListRepositoriesPagedResponse listRepositories(LocationName parent) { + ListRepositoriesRequest request = + ListRepositoriesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listRepositories(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Workspace. + * Lists Repositories in a given project and location. + * + *

          **Note:** *This method can return repositories not shown in the + * [Dataform UI](https://console.cloud.google.com/bigquery/dataform)*. * *

          Sample code: * @@ -2766,26 +3182,29 @@ public final void deleteWorkspace(String name) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * DeleteWorkspaceRequest request = - * DeleteWorkspaceRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .build(); - * dataformClient.deleteWorkspace(request); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * for (Repository element : dataformClient.listRepositories(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The location in which to list repositories. Must be in the format + * `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteWorkspace(DeleteWorkspaceRequest request) { - deleteWorkspaceCallable().call(request); + public final ListRepositoriesPagedResponse listRepositories(String parent) { + ListRepositoriesRequest request = + ListRepositoriesRequest.newBuilder().setParent(parent).build(); + return listRepositories(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Workspace. + * Lists Repositories in a given project and location. + * + *

          **Note:** *This method can return repositories not shown in the + * [Dataform UI](https://console.cloud.google.com/bigquery/dataform)*. * *

          Sample code: * @@ -2796,25 +3215,33 @@ public final void deleteWorkspace(DeleteWorkspaceRequest request) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * DeleteWorkspaceRequest request = - * DeleteWorkspaceRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) + * ListRepositoriesRequest request = + * ListRepositoriesRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = dataformClient.deleteWorkspaceCallable().futureCall(request); - * // Do something. - * future.get(); + * for (Repository element : dataformClient.listRepositories(request).iterateAll()) { + * // doThingsWith(element); + * } * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable deleteWorkspaceCallable() { - return stub.deleteWorkspaceCallable(); + public final ListRepositoriesPagedResponse listRepositories(ListRepositoriesRequest request) { + return listRepositoriesPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Installs dependency NPM packages (inside a Workspace). + * Lists Repositories in a given project and location. + * + *

          **Note:** *This method can return repositories not shown in the + * [Dataform UI](https://console.cloud.google.com/bigquery/dataform)*. * *

          Sample code: * @@ -2825,26 +3252,34 @@ public final UnaryCallable deleteWorkspaceCallabl * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * InstallNpmPackagesRequest request = - * InstallNpmPackagesRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) + * ListRepositoriesRequest request = + * ListRepositoriesRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); - * InstallNpmPackagesResponse response = dataformClient.installNpmPackages(request); + * ApiFuture future = + * dataformClient.listRepositoriesPagedCallable().futureCall(request); + * // Do something. + * for (Repository element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final InstallNpmPackagesResponse installNpmPackages(InstallNpmPackagesRequest request) { - return installNpmPackagesCallable().call(request); + public final UnaryCallable + listRepositoriesPagedCallable() { + return stub.listRepositoriesPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Installs dependency NPM packages (inside a Workspace). + * Lists Repositories in a given project and location. + * + *

          **Note:** *This method can return repositories not shown in the + * [Dataform UI](https://console.cloud.google.com/bigquery/dataform)*. * *

          Sample code: * @@ -2855,27 +3290,37 @@ public final InstallNpmPackagesResponse installNpmPackages(InstallNpmPackagesReq * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * InstallNpmPackagesRequest request = - * InstallNpmPackagesRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) + * ListRepositoriesRequest request = + * ListRepositoriesRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = - * dataformClient.installNpmPackagesCallable().futureCall(request); - * // Do something. - * InstallNpmPackagesResponse response = future.get(); + * while (true) { + * ListRepositoriesResponse response = dataformClient.listRepositoriesCallable().call(request); + * for (Repository element : response.getRepositoriesList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } */ - public final UnaryCallable - installNpmPackagesCallable() { - return stub.installNpmPackagesCallable(); + public final UnaryCallable + listRepositoriesCallable() { + return stub.listRepositoriesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Pulls Git commits from the Repository's remote into a Workspace. + * Fetches a single Repository. * *

          Sample code: * @@ -2886,28 +3331,23 @@ public final InstallNpmPackagesResponse installNpmPackages(InstallNpmPackagesReq * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * PullGitCommitsRequest request = - * PullGitCommitsRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setRemoteBranch("remoteBranch-533119608") - * .setAuthor(CommitAuthor.newBuilder().build()) - * .build(); - * PullGitCommitsResponse response = dataformClient.pullGitCommits(request); + * RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + * Repository response = dataformClient.getRepository(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The repository's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PullGitCommitsResponse pullGitCommits(PullGitCommitsRequest request) { - return pullGitCommitsCallable().call(request); + public final Repository getRepository(RepositoryName name) { + GetRepositoryRequest request = + GetRepositoryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getRepository(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Pulls Git commits from the Repository's remote into a Workspace. + * Fetches a single Repository. * *

          Sample code: * @@ -2918,29 +3358,22 @@ public final PullGitCommitsResponse pullGitCommits(PullGitCommitsRequest request * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * PullGitCommitsRequest request = - * PullGitCommitsRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setRemoteBranch("remoteBranch-533119608") - * .setAuthor(CommitAuthor.newBuilder().build()) - * .build(); - * ApiFuture future = - * dataformClient.pullGitCommitsCallable().futureCall(request); - * // Do something. - * PullGitCommitsResponse response = future.get(); + * String name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + * Repository response = dataformClient.getRepository(name); * } * } + * + * @param name Required. The repository's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - pullGitCommitsCallable() { - return stub.pullGitCommitsCallable(); + public final Repository getRepository(String name) { + GetRepositoryRequest request = GetRepositoryRequest.newBuilder().setName(name).build(); + return getRepository(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Pushes Git commits from a Workspace to the Repository's remote. + * Fetches a single Repository. * *

          Sample code: * @@ -2951,27 +3384,24 @@ public final PullGitCommitsResponse pullGitCommits(PullGitCommitsRequest request * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * PushGitCommitsRequest request = - * PushGitCommitsRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setRemoteBranch("remoteBranch-533119608") + * GetRepositoryRequest request = + * GetRepositoryRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) * .build(); - * PushGitCommitsResponse response = dataformClient.pushGitCommits(request); + * Repository response = dataformClient.getRepository(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PushGitCommitsResponse pushGitCommits(PushGitCommitsRequest request) { - return pushGitCommitsCallable().call(request); + public final Repository getRepository(GetRepositoryRequest request) { + return getRepositoryCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Pushes Git commits from a Workspace to the Repository's remote. + * Fetches a single Repository. * *

          Sample code: * @@ -2982,28 +3412,23 @@ public final PushGitCommitsResponse pushGitCommits(PushGitCommitsRequest request * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * PushGitCommitsRequest request = - * PushGitCommitsRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setRemoteBranch("remoteBranch-533119608") + * GetRepositoryRequest request = + * GetRepositoryRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) * .build(); - * ApiFuture future = - * dataformClient.pushGitCommitsCallable().futureCall(request); + * ApiFuture future = dataformClient.getRepositoryCallable().futureCall(request); * // Do something. - * PushGitCommitsResponse response = future.get(); + * Repository response = future.get(); * } * } */ - public final UnaryCallable - pushGitCommitsCallable() { - return stub.pushGitCommitsCallable(); + public final UnaryCallable getRepositoryCallable() { + return stub.getRepositoryCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches Git statuses for the files in a Workspace. + * Creates a new Repository in a given project and location. * *

          Sample code: * @@ -3014,27 +3439,34 @@ public final PushGitCommitsResponse pushGitCommits(PushGitCommitsRequest request * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * FetchFileGitStatusesRequest request = - * FetchFileGitStatusesRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .build(); - * FetchFileGitStatusesResponse response = dataformClient.fetchFileGitStatuses(request); + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * Repository repository = Repository.newBuilder().build(); + * String repositoryId = "repositoryId2113747461"; + * Repository response = dataformClient.createRepository(parent, repository, repositoryId); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The location in which to create the repository. Must be in the format + * `projects/*/locations/*`. + * @param repository Required. The repository to create. + * @param repositoryId Required. The ID to use for the repository, which will become the final + * component of the repository's resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FetchFileGitStatusesResponse fetchFileGitStatuses( - FetchFileGitStatusesRequest request) { - return fetchFileGitStatusesCallable().call(request); + public final Repository createRepository( + LocationName parent, Repository repository, String repositoryId) { + CreateRepositoryRequest request = + CreateRepositoryRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setRepository(repository) + .setRepositoryId(repositoryId) + .build(); + return createRepository(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches Git statuses for the files in a Workspace. + * Creates a new Repository in a given project and location. * *

          Sample code: * @@ -3045,27 +3477,34 @@ public final FetchFileGitStatusesResponse fetchFileGitStatuses( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * FetchFileGitStatusesRequest request = - * FetchFileGitStatusesRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .build(); - * ApiFuture future = - * dataformClient.fetchFileGitStatusesCallable().futureCall(request); - * // Do something. - * FetchFileGitStatusesResponse response = future.get(); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * Repository repository = Repository.newBuilder().build(); + * String repositoryId = "repositoryId2113747461"; + * Repository response = dataformClient.createRepository(parent, repository, repositoryId); * } * } + * + * @param parent Required. The location in which to create the repository. Must be in the format + * `projects/*/locations/*`. + * @param repository Required. The repository to create. + * @param repositoryId Required. The ID to use for the repository, which will become the final + * component of the repository's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - fetchFileGitStatusesCallable() { - return stub.fetchFileGitStatusesCallable(); + public final Repository createRepository( + String parent, Repository repository, String repositoryId) { + CreateRepositoryRequest request = + CreateRepositoryRequest.newBuilder() + .setParent(parent) + .setRepository(repository) + .setRepositoryId(repositoryId) + .build(); + return createRepository(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches Git ahead/behind against a remote branch. + * Creates a new Repository in a given project and location. * *

          Sample code: * @@ -3076,27 +3515,26 @@ public final FetchFileGitStatusesResponse fetchFileGitStatuses( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * FetchGitAheadBehindRequest request = - * FetchGitAheadBehindRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setRemoteBranch("remoteBranch-533119608") + * CreateRepositoryRequest request = + * CreateRepositoryRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setRepository(Repository.newBuilder().build()) + * .setRepositoryId("repositoryId2113747461") * .build(); - * FetchGitAheadBehindResponse response = dataformClient.fetchGitAheadBehind(request); + * Repository response = dataformClient.createRepository(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FetchGitAheadBehindResponse fetchGitAheadBehind(FetchGitAheadBehindRequest request) { - return fetchGitAheadBehindCallable().call(request); + public final Repository createRepository(CreateRepositoryRequest request) { + return createRepositoryCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches Git ahead/behind against a remote branch. + * Creates a new Repository in a given project and location. * *

          Sample code: * @@ -3107,28 +3545,30 @@ public final FetchGitAheadBehindResponse fetchGitAheadBehind(FetchGitAheadBehind * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * FetchGitAheadBehindRequest request = - * FetchGitAheadBehindRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setRemoteBranch("remoteBranch-533119608") + * CreateRepositoryRequest request = + * CreateRepositoryRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setRepository(Repository.newBuilder().build()) + * .setRepositoryId("repositoryId2113747461") * .build(); - * ApiFuture future = - * dataformClient.fetchGitAheadBehindCallable().futureCall(request); + * ApiFuture future = dataformClient.createRepositoryCallable().futureCall(request); * // Do something. - * FetchGitAheadBehindResponse response = future.get(); + * Repository response = future.get(); * } * } */ - public final UnaryCallable - fetchGitAheadBehindCallable() { - return stub.fetchGitAheadBehindCallable(); + public final UnaryCallable createRepositoryCallable() { + return stub.createRepositoryCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Applies a Git commit for uncommitted files in a Workspace. + * Updates a single Repository. + * + *

          **Note:** *This method does not fully implement + * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad + * request, and when the `field_mask` is omitted, the request is treated as a full update on all + * modifiable fields.* * *

          Sample code: * @@ -3139,30 +3579,34 @@ public final FetchGitAheadBehindResponse fetchGitAheadBehind(FetchGitAheadBehind * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * CommitWorkspaceChangesRequest request = - * CommitWorkspaceChangesRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setAuthor(CommitAuthor.newBuilder().build()) - * .setCommitMessage("commitMessage2039804624") - * .addAllPaths(new ArrayList()) - * .build(); - * CommitWorkspaceChangesResponse response = dataformClient.commitWorkspaceChanges(request); + * Repository repository = Repository.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * Repository response = dataformClient.updateRepository(repository, updateMask); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param repository Required. The repository to update. + * @param updateMask Optional. Specifies the fields to be updated in the repository. If left + * unset, all fields will be updated. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CommitWorkspaceChangesResponse commitWorkspaceChanges( - CommitWorkspaceChangesRequest request) { - return commitWorkspaceChangesCallable().call(request); + public final Repository updateRepository(Repository repository, FieldMask updateMask) { + UpdateRepositoryRequest request = + UpdateRepositoryRequest.newBuilder() + .setRepository(repository) + .setUpdateMask(updateMask) + .build(); + return updateRepository(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Applies a Git commit for uncommitted files in a Workspace. + * Updates a single Repository. + * + *

          **Note:** *This method does not fully implement + * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad + * request, and when the `field_mask` is omitted, the request is treated as a full update on all + * modifiable fields.* * *

          Sample code: * @@ -3173,30 +3617,30 @@ public final CommitWorkspaceChangesResponse commitWorkspaceChanges( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * CommitWorkspaceChangesRequest request = - * CommitWorkspaceChangesRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setAuthor(CommitAuthor.newBuilder().build()) - * .setCommitMessage("commitMessage2039804624") - * .addAllPaths(new ArrayList()) + * UpdateRepositoryRequest request = + * UpdateRepositoryRequest.newBuilder() + * .setUpdateMask(FieldMask.newBuilder().build()) + * .setRepository(Repository.newBuilder().build()) * .build(); - * ApiFuture future = - * dataformClient.commitWorkspaceChangesCallable().futureCall(request); - * // Do something. - * CommitWorkspaceChangesResponse response = future.get(); + * Repository response = dataformClient.updateRepository(request); * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - commitWorkspaceChangesCallable() { - return stub.commitWorkspaceChangesCallable(); + public final Repository updateRepository(UpdateRepositoryRequest request) { + return updateRepositoryCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Performs a Git reset for uncommitted files in a Workspace. + * Updates a single Repository. + * + *

          **Note:** *This method does not fully implement + * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad + * request, and when the `field_mask` is omitted, the request is treated as a full update on all + * modifiable fields.* * *

          Sample code: * @@ -3207,29 +3651,24 @@ public final CommitWorkspaceChangesResponse commitWorkspaceChanges( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * ResetWorkspaceChangesRequest request = - * ResetWorkspaceChangesRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .addAllPaths(new ArrayList()) - * .setClean(true) + * UpdateRepositoryRequest request = + * UpdateRepositoryRequest.newBuilder() + * .setUpdateMask(FieldMask.newBuilder().build()) + * .setRepository(Repository.newBuilder().build()) * .build(); - * ResetWorkspaceChangesResponse response = dataformClient.resetWorkspaceChanges(request); + * ApiFuture future = dataformClient.updateRepositoryCallable().futureCall(request); + * // Do something. + * Repository response = future.get(); * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ResetWorkspaceChangesResponse resetWorkspaceChanges( - ResetWorkspaceChangesRequest request) { - return resetWorkspaceChangesCallable().call(request); + public final UnaryCallable updateRepositoryCallable() { + return stub.updateRepositoryCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Performs a Git reset for uncommitted files in a Workspace. + * Deletes a single Repository. * *

          Sample code: * @@ -3240,29 +3679,23 @@ public final ResetWorkspaceChangesResponse resetWorkspaceChanges( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * ResetWorkspaceChangesRequest request = - * ResetWorkspaceChangesRequest.newBuilder() - * .setName( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .addAllPaths(new ArrayList()) - * .setClean(true) - * .build(); - * ApiFuture future = - * dataformClient.resetWorkspaceChangesCallable().futureCall(request); - * // Do something. - * ResetWorkspaceChangesResponse response = future.get(); + * RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + * dataformClient.deleteRepository(name); * } * } + * + * @param name Required. The repository's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - resetWorkspaceChangesCallable() { - return stub.resetWorkspaceChangesCallable(); + public final void deleteRepository(RepositoryName name) { + DeleteRepositoryRequest request = + DeleteRepositoryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteRepository(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches Git diff for an uncommitted file in a Workspace. + * Deletes a single Repository. * *

          Sample code: * @@ -3273,27 +3706,22 @@ public final ResetWorkspaceChangesResponse resetWorkspaceChanges( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * FetchFileDiffRequest request = - * FetchFileDiffRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPath("path3433509") - * .build(); - * FetchFileDiffResponse response = dataformClient.fetchFileDiff(request); + * String name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + * dataformClient.deleteRepository(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The repository's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FetchFileDiffResponse fetchFileDiff(FetchFileDiffRequest request) { - return fetchFileDiffCallable().call(request); + public final void deleteRepository(String name) { + DeleteRepositoryRequest request = DeleteRepositoryRequest.newBuilder().setName(name).build(); + deleteRepository(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches Git diff for an uncommitted file in a Workspace. + * Deletes a single Repository. * *

          Sample code: * @@ -3304,27 +3732,25 @@ public final FetchFileDiffResponse fetchFileDiff(FetchFileDiffRequest request) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * FetchFileDiffRequest request = - * FetchFileDiffRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPath("path3433509") + * DeleteRepositoryRequest request = + * DeleteRepositoryRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setForce(true) * .build(); - * ApiFuture future = - * dataformClient.fetchFileDiffCallable().futureCall(request); - * // Do something. - * FetchFileDiffResponse response = future.get(); + * dataformClient.deleteRepository(request); * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable fetchFileDiffCallable() { - return stub.fetchFileDiffCallable(); + public final void deleteRepository(DeleteRepositoryRequest request) { + deleteRepositoryCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the contents of a given Workspace directory. + * Deletes a single Repository. * *

          Sample code: * @@ -3335,32 +3761,24 @@ public final UnaryCallable fetchFil * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * QueryDirectoryContentsRequest request = - * QueryDirectoryContentsRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPath("path3433509") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * DeleteRepositoryRequest request = + * DeleteRepositoryRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setForce(true) * .build(); - * for (DirectoryEntry element : dataformClient.queryDirectoryContents(request).iterateAll()) { - * // doThingsWith(element); - * } + * ApiFuture future = dataformClient.deleteRepositoryCallable().futureCall(request); + * // Do something. + * future.get(); * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final QueryDirectoryContentsPagedResponse queryDirectoryContents( - QueryDirectoryContentsRequest request) { - return queryDirectoryContentsPagedCallable().call(request); + public final UnaryCallable deleteRepositoryCallable() { + return stub.deleteRepositoryCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the contents of a given Workspace directory. + * Moves a Repository to a new location. * *

          Sample code: * @@ -3371,32 +3789,32 @@ public final QueryDirectoryContentsPagedResponse queryDirectoryContents( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * QueryDirectoryContentsRequest request = - * QueryDirectoryContentsRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPath("path3433509") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * ApiFuture future = - * dataformClient.queryDirectoryContentsPagedCallable().futureCall(request); - * // Do something. - * for (DirectoryEntry element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + * String destinationContainingFolder = "destinationContainingFolder870737098"; + * dataformClient.moveRepositoryAsync(name, destinationContainingFolder).get(); * } * } + * + * @param name Required. The full resource name of the repository to move. + * @param destinationContainingFolder Optional. The name of the Folder, TeamFolder, or root + * location to move the repository to. Can be in the format of: "" to move into the root User + * folder, `projects/*/locations/*/folders/*`, + * `projects/*/locations/*/teamFolders/*` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - queryDirectoryContentsPagedCallable() { - return stub.queryDirectoryContentsPagedCallable(); + public final OperationFuture moveRepositoryAsync( + RepositoryName name, String destinationContainingFolder) { + MoveRepositoryRequest request = + MoveRepositoryRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setDestinationContainingFolder(destinationContainingFolder) + .build(); + return moveRepositoryAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the contents of a given Workspace directory. + * Moves a Repository to a new location. * *

          Sample code: * @@ -3407,39 +3825,32 @@ public final QueryDirectoryContentsPagedResponse queryDirectoryContents( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * QueryDirectoryContentsRequest request = - * QueryDirectoryContentsRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPath("path3433509") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * while (true) { - * QueryDirectoryContentsResponse response = - * dataformClient.queryDirectoryContentsCallable().call(request); - * for (DirectoryEntry element : response.getDirectoryEntriesList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * String name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + * String destinationContainingFolder = "destinationContainingFolder870737098"; + * dataformClient.moveRepositoryAsync(name, destinationContainingFolder).get(); * } * } + * + * @param name Required. The full resource name of the repository to move. + * @param destinationContainingFolder Optional. The name of the Folder, TeamFolder, or root + * location to move the repository to. Can be in the format of: "" to move into the root User + * folder, `projects/*/locations/*/folders/*`, + * `projects/*/locations/*/teamFolders/*` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - queryDirectoryContentsCallable() { - return stub.queryDirectoryContentsCallable(); + public final OperationFuture moveRepositoryAsync( + String name, String destinationContainingFolder) { + MoveRepositoryRequest request = + MoveRepositoryRequest.newBuilder() + .setName(name) + .setDestinationContainingFolder(destinationContainingFolder) + .build(); + return moveRepositoryAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Finds the contents of a given Workspace directory by filter. + * Moves a Repository to a new location. * *

          Sample code: * @@ -3450,31 +3861,26 @@ public final QueryDirectoryContentsPagedResponse queryDirectoryContents( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * SearchFilesRequest request = - * SearchFilesRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") + * MoveRepositoryRequest request = + * MoveRepositoryRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setDestinationContainingFolder("destinationContainingFolder870737098") * .build(); - * for (SearchResult element : dataformClient.searchFiles(request).iterateAll()) { - * // doThingsWith(element); - * } + * dataformClient.moveRepositoryAsync(request).get(); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchFilesPagedResponse searchFiles(SearchFilesRequest request) { - return searchFilesPagedCallable().call(request); + public final OperationFuture moveRepositoryAsync( + MoveRepositoryRequest request) { + return moveRepositoryOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Finds the contents of a given Workspace directory by filter. + * Moves a Repository to a new location. * *

          Sample code: * @@ -3485,32 +3891,26 @@ public final SearchFilesPagedResponse searchFiles(SearchFilesRequest request) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * SearchFilesRequest request = - * SearchFilesRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") + * MoveRepositoryRequest request = + * MoveRepositoryRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setDestinationContainingFolder("destinationContainingFolder870737098") * .build(); - * ApiFuture future = - * dataformClient.searchFilesPagedCallable().futureCall(request); + * OperationFuture future = + * dataformClient.moveRepositoryOperationCallable().futureCall(request); * // Do something. - * for (SearchResult element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * future.get(); * } * } */ - public final UnaryCallable - searchFilesPagedCallable() { - return stub.searchFilesPagedCallable(); + public final OperationCallable + moveRepositoryOperationCallable() { + return stub.moveRepositoryOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Finds the contents of a given Workspace directory by filter. + * Moves a Repository to a new location. * *

          Sample code: * @@ -3521,37 +3921,25 @@ public final SearchFilesPagedResponse searchFiles(SearchFilesRequest request) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * SearchFilesRequest request = - * SearchFilesRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") + * MoveRepositoryRequest request = + * MoveRepositoryRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setDestinationContainingFolder("destinationContainingFolder870737098") * .build(); - * while (true) { - * SearchFilesResponse response = dataformClient.searchFilesCallable().call(request); - * for (SearchResult element : response.getSearchResultsList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * ApiFuture future = dataformClient.moveRepositoryCallable().futureCall(request); + * // Do something. + * future.get(); * } * } */ - public final UnaryCallable searchFilesCallable() { - return stub.searchFilesCallable(); + public final UnaryCallable moveRepositoryCallable() { + return stub.moveRepositoryCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a directory inside a Workspace. + * Applies a Git commit to a Repository. The Repository must not have a value for + * `git_remote_settings.url`. * *

          Sample code: * @@ -3562,27 +3950,30 @@ public final UnaryCallable searchFilesC * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * MakeDirectoryRequest request = - * MakeDirectoryRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPath("path3433509") + * CommitRepositoryChangesRequest request = + * CommitRepositoryChangesRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setCommitMetadata(CommitMetadata.newBuilder().build()) + * .setRequiredHeadCommitSha("requiredHeadCommitSha-393901930") + * .putAllFileOperations( + * new HashMap()) * .build(); - * MakeDirectoryResponse response = dataformClient.makeDirectory(request); + * CommitRepositoryChangesResponse response = dataformClient.commitRepositoryChanges(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MakeDirectoryResponse makeDirectory(MakeDirectoryRequest request) { - return makeDirectoryCallable().call(request); + public final CommitRepositoryChangesResponse commitRepositoryChanges( + CommitRepositoryChangesRequest request) { + return commitRepositoryChangesCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a directory inside a Workspace. + * Applies a Git commit to a Repository. The Repository must not have a value for + * `git_remote_settings.url`. * *

          Sample code: * @@ -3593,27 +3984,30 @@ public final MakeDirectoryResponse makeDirectory(MakeDirectoryRequest request) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * MakeDirectoryRequest request = - * MakeDirectoryRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPath("path3433509") - * .build(); - * ApiFuture future = - * dataformClient.makeDirectoryCallable().futureCall(request); - * // Do something. - * MakeDirectoryResponse response = future.get(); + * CommitRepositoryChangesRequest request = + * CommitRepositoryChangesRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setCommitMetadata(CommitMetadata.newBuilder().build()) + * .setRequiredHeadCommitSha("requiredHeadCommitSha-393901930") + * .putAllFileOperations( + * new HashMap()) + * .build(); + * ApiFuture future = + * dataformClient.commitRepositoryChangesCallable().futureCall(request); + * // Do something. + * CommitRepositoryChangesResponse response = future.get(); * } * } */ - public final UnaryCallable makeDirectoryCallable() { - return stub.makeDirectoryCallable(); + public final UnaryCallable + commitRepositoryChangesCallable() { + return stub.commitRepositoryChangesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a directory (inside a Workspace) and all of its contents. + * Returns the contents of a file (inside a Repository). The Repository must not have a value for + * `git_remote_settings.url`. * *

          Sample code: * @@ -3624,27 +4018,27 @@ public final UnaryCallable makeDire * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * RemoveDirectoryRequest request = - * RemoveDirectoryRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) + * ReadRepositoryFileRequest request = + * ReadRepositoryFileRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setCommitSha("commitSha-1491174411") * .setPath("path3433509") * .build(); - * RemoveDirectoryResponse response = dataformClient.removeDirectory(request); + * ReadRepositoryFileResponse response = dataformClient.readRepositoryFile(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RemoveDirectoryResponse removeDirectory(RemoveDirectoryRequest request) { - return removeDirectoryCallable().call(request); + public final ReadRepositoryFileResponse readRepositoryFile(ReadRepositoryFileRequest request) { + return readRepositoryFileCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a directory (inside a Workspace) and all of its contents. + * Returns the contents of a file (inside a Repository). The Repository must not have a value for + * `git_remote_settings.url`. * *

          Sample code: * @@ -3655,28 +4049,28 @@ public final RemoveDirectoryResponse removeDirectory(RemoveDirectoryRequest requ * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * RemoveDirectoryRequest request = - * RemoveDirectoryRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) + * ReadRepositoryFileRequest request = + * ReadRepositoryFileRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setCommitSha("commitSha-1491174411") * .setPath("path3433509") * .build(); - * ApiFuture future = - * dataformClient.removeDirectoryCallable().futureCall(request); + * ApiFuture future = + * dataformClient.readRepositoryFileCallable().futureCall(request); * // Do something. - * RemoveDirectoryResponse response = future.get(); + * ReadRepositoryFileResponse response = future.get(); * } * } */ - public final UnaryCallable - removeDirectoryCallable() { - return stub.removeDirectoryCallable(); + public final UnaryCallable + readRepositoryFileCallable() { + return stub.readRepositoryFileCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Moves a directory (inside a Workspace), and all of its contents, to a new location. + * Returns the contents of a given Repository directory. The Repository must not have a value for + * `git_remote_settings.url`. * *

          Sample code: * @@ -3687,28 +4081,33 @@ public final RemoveDirectoryResponse removeDirectory(RemoveDirectoryRequest requ * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * MoveDirectoryRequest request = - * MoveDirectoryRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) + * QueryRepositoryDirectoryContentsRequest request = + * QueryRepositoryDirectoryContentsRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setCommitSha("commitSha-1491174411") * .setPath("path3433509") - * .setNewPath("newPath1845080549") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * MoveDirectoryResponse response = dataformClient.moveDirectory(request); + * for (DirectoryEntry element : + * dataformClient.queryRepositoryDirectoryContents(request).iterateAll()) { + * // doThingsWith(element); + * } * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MoveDirectoryResponse moveDirectory(MoveDirectoryRequest request) { - return moveDirectoryCallable().call(request); + public final QueryRepositoryDirectoryContentsPagedResponse queryRepositoryDirectoryContents( + QueryRepositoryDirectoryContentsRequest request) { + return queryRepositoryDirectoryContentsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Moves a directory (inside a Workspace), and all of its contents, to a new location. + * Returns the contents of a given Repository directory. The Repository must not have a value for + * `git_remote_settings.url`. * *

          Sample code: * @@ -3719,28 +4118,33 @@ public final MoveDirectoryResponse moveDirectory(MoveDirectoryRequest request) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * MoveDirectoryRequest request = - * MoveDirectoryRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) + * QueryRepositoryDirectoryContentsRequest request = + * QueryRepositoryDirectoryContentsRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setCommitSha("commitSha-1491174411") * .setPath("path3433509") - * .setNewPath("newPath1845080549") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = - * dataformClient.moveDirectoryCallable().futureCall(request); + * ApiFuture future = + * dataformClient.queryRepositoryDirectoryContentsPagedCallable().futureCall(request); * // Do something. - * MoveDirectoryResponse response = future.get(); + * for (DirectoryEntry element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } */ - public final UnaryCallable moveDirectoryCallable() { - return stub.moveDirectoryCallable(); + public final UnaryCallable< + QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsPagedResponse> + queryRepositoryDirectoryContentsPagedCallable() { + return stub.queryRepositoryDirectoryContentsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the contents of a file (inside a Workspace). + * Returns the contents of a given Repository directory. The Repository must not have a value for + * `git_remote_settings.url`. * *

          Sample code: * @@ -3751,28 +4155,40 @@ public final UnaryCallable moveDire * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * ReadFileRequest request = - * ReadFileRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) + * QueryRepositoryDirectoryContentsRequest request = + * QueryRepositoryDirectoryContentsRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setCommitSha("commitSha-1491174411") * .setPath("path3433509") - * .setRevision("revision-260786213") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * ReadFileResponse response = dataformClient.readFile(request); + * while (true) { + * QueryRepositoryDirectoryContentsResponse response = + * dataformClient.queryRepositoryDirectoryContentsCallable().call(request); + * for (DirectoryEntry element : response.getDirectoryEntriesList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReadFileResponse readFile(ReadFileRequest request) { - return readFileCallable().call(request); + public final UnaryCallable< + QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsResponse> + queryRepositoryDirectoryContentsCallable() { + return stub.queryRepositoryDirectoryContentsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the contents of a file (inside a Workspace). + * Fetches a Repository's history of commits. The Repository must not have a value for + * `git_remote_settings.url`. * *

          Sample code: * @@ -3783,27 +4199,30 @@ public final ReadFileResponse readFile(ReadFileRequest request) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * ReadFileRequest request = - * ReadFileRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPath("path3433509") - * .setRevision("revision-260786213") + * FetchRepositoryHistoryRequest request = + * FetchRepositoryHistoryRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = dataformClient.readFileCallable().futureCall(request); - * // Do something. - * ReadFileResponse response = future.get(); + * for (CommitLogEntry element : dataformClient.fetchRepositoryHistory(request).iterateAll()) { + * // doThingsWith(element); + * } * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable readFileCallable() { - return stub.readFileCallable(); + public final FetchRepositoryHistoryPagedResponse fetchRepositoryHistory( + FetchRepositoryHistoryRequest request) { + return fetchRepositoryHistoryPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a file (inside a Workspace). + * Fetches a Repository's history of commits. The Repository must not have a value for + * `git_remote_settings.url`. * *

          Sample code: * @@ -3814,27 +4233,30 @@ public final UnaryCallable readFileCallable() * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * RemoveFileRequest request = - * RemoveFileRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPath("path3433509") + * FetchRepositoryHistoryRequest request = + * FetchRepositoryHistoryRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * RemoveFileResponse response = dataformClient.removeFile(request); + * ApiFuture future = + * dataformClient.fetchRepositoryHistoryPagedCallable().futureCall(request); + * // Do something. + * for (CommitLogEntry element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RemoveFileResponse removeFile(RemoveFileRequest request) { - return removeFileCallable().call(request); + public final UnaryCallable + fetchRepositoryHistoryPagedCallable() { + return stub.fetchRepositoryHistoryPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a file (inside a Workspace). + * Fetches a Repository's history of commits. The Repository must not have a value for + * `git_remote_settings.url`. * *

          Sample code: * @@ -3845,27 +4267,36 @@ public final RemoveFileResponse removeFile(RemoveFileRequest request) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * RemoveFileRequest request = - * RemoveFileRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPath("path3433509") + * FetchRepositoryHistoryRequest request = + * FetchRepositoryHistoryRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = - * dataformClient.removeFileCallable().futureCall(request); - * // Do something. - * RemoveFileResponse response = future.get(); + * while (true) { + * FetchRepositoryHistoryResponse response = + * dataformClient.fetchRepositoryHistoryCallable().call(request); + * for (CommitLogEntry element : response.getCommitsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } */ - public final UnaryCallable removeFileCallable() { - return stub.removeFileCallable(); + public final UnaryCallable + fetchRepositoryHistoryCallable() { + return stub.fetchRepositoryHistoryCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Moves a file (inside a Workspace) to a new location. + * Computes a Repository's Git access token status. * *

          Sample code: * @@ -3876,28 +4307,26 @@ public final UnaryCallable removeFileCall * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * MoveFileRequest request = - * MoveFileRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPath("path3433509") - * .setNewPath("newPath1845080549") - * .build(); - * MoveFileResponse response = dataformClient.moveFile(request); + * ComputeRepositoryAccessTokenStatusRequest request = + * ComputeRepositoryAccessTokenStatusRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .build(); + * ComputeRepositoryAccessTokenStatusResponse response = + * dataformClient.computeRepositoryAccessTokenStatus(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MoveFileResponse moveFile(MoveFileRequest request) { - return moveFileCallable().call(request); + public final ComputeRepositoryAccessTokenStatusResponse computeRepositoryAccessTokenStatus( + ComputeRepositoryAccessTokenStatusRequest request) { + return computeRepositoryAccessTokenStatusCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Moves a file (inside a Workspace) to a new location. + * Computes a Repository's Git access token status. * *

          Sample code: * @@ -3908,27 +4337,26 @@ public final MoveFileResponse moveFile(MoveFileRequest request) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * MoveFileRequest request = - * MoveFileRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPath("path3433509") - * .setNewPath("newPath1845080549") + * ComputeRepositoryAccessTokenStatusRequest request = + * ComputeRepositoryAccessTokenStatusRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) * .build(); - * ApiFuture future = dataformClient.moveFileCallable().futureCall(request); + * ApiFuture future = + * dataformClient.computeRepositoryAccessTokenStatusCallable().futureCall(request); * // Do something. - * MoveFileResponse response = future.get(); + * ComputeRepositoryAccessTokenStatusResponse response = future.get(); * } * } */ - public final UnaryCallable moveFileCallable() { - return stub.moveFileCallable(); + public final UnaryCallable< + ComputeRepositoryAccessTokenStatusRequest, ComputeRepositoryAccessTokenStatusResponse> + computeRepositoryAccessTokenStatusCallable() { + return stub.computeRepositoryAccessTokenStatusCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Writes to a file (inside a Workspace). + * Fetches a Repository's remote branches. * *

          Sample code: * @@ -3939,28 +4367,24 @@ public final UnaryCallable moveFileCallable() * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * WriteFileRequest request = - * WriteFileRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPath("path3433509") - * .setContents(ByteString.EMPTY) + * FetchRemoteBranchesRequest request = + * FetchRemoteBranchesRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) * .build(); - * WriteFileResponse response = dataformClient.writeFile(request); + * FetchRemoteBranchesResponse response = dataformClient.fetchRemoteBranches(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WriteFileResponse writeFile(WriteFileRequest request) { - return writeFileCallable().call(request); + public final FetchRemoteBranchesResponse fetchRemoteBranches(FetchRemoteBranchesRequest request) { + return fetchRemoteBranchesCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Writes to a file (inside a Workspace). + * Fetches a Repository's remote branches. * *

          Sample code: * @@ -3971,27 +4395,25 @@ public final WriteFileResponse writeFile(WriteFileRequest request) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * WriteFileRequest request = - * WriteFileRequest.newBuilder() - * .setWorkspace( - * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") - * .toString()) - * .setPath("path3433509") - * .setContents(ByteString.EMPTY) + * FetchRemoteBranchesRequest request = + * FetchRemoteBranchesRequest.newBuilder() + * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) * .build(); - * ApiFuture future = dataformClient.writeFileCallable().futureCall(request); + * ApiFuture future = + * dataformClient.fetchRemoteBranchesCallable().futureCall(request); * // Do something. - * WriteFileResponse response = future.get(); + * FetchRemoteBranchesResponse response = future.get(); * } * } */ - public final UnaryCallable writeFileCallable() { - return stub.writeFileCallable(); + public final UnaryCallable + fetchRemoteBranchesCallable() { + return stub.fetchRemoteBranchesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ReleaseConfigs in a given Repository. + * Lists Workspaces in a given Repository. * *

          Sample code: * @@ -4003,27 +4425,27 @@ public final UnaryCallable writeFileCallabl * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - * for (ReleaseConfig element : dataformClient.listReleaseConfigs(parent).iterateAll()) { + * for (Workspace element : dataformClient.listWorkspaces(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The repository in which to list release configs. Must be in the format + * @param parent Required. The repository in which to list workspaces. Must be in the format * `projects/*/locations/*/repositories/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListReleaseConfigsPagedResponse listReleaseConfigs(RepositoryName parent) { - ListReleaseConfigsRequest request = - ListReleaseConfigsRequest.newBuilder() + public final ListWorkspacesPagedResponse listWorkspaces(RepositoryName parent) { + ListWorkspacesRequest request = + ListWorkspacesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); - return listReleaseConfigs(request); + return listWorkspaces(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ReleaseConfigs in a given Repository. + * Lists Workspaces in a given Repository. * *

          Sample code: * @@ -4035,25 +4457,24 @@ public final ListReleaseConfigsPagedResponse listReleaseConfigs(RepositoryName p * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); - * for (ReleaseConfig element : dataformClient.listReleaseConfigs(parent).iterateAll()) { + * for (Workspace element : dataformClient.listWorkspaces(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The repository in which to list release configs. Must be in the format + * @param parent Required. The repository in which to list workspaces. Must be in the format * `projects/*/locations/*/repositories/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListReleaseConfigsPagedResponse listReleaseConfigs(String parent) { - ListReleaseConfigsRequest request = - ListReleaseConfigsRequest.newBuilder().setParent(parent).build(); - return listReleaseConfigs(request); + public final ListWorkspacesPagedResponse listWorkspaces(String parent) { + ListWorkspacesRequest request = ListWorkspacesRequest.newBuilder().setParent(parent).build(); + return listWorkspaces(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ReleaseConfigs in a given Repository. + * Lists Workspaces in a given Repository. * *

          Sample code: * @@ -4064,13 +4485,15 @@ public final ListReleaseConfigsPagedResponse listReleaseConfigs(String parent) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * ListReleaseConfigsRequest request = - * ListReleaseConfigsRequest.newBuilder() + * ListWorkspacesRequest request = + * ListWorkspacesRequest.newBuilder() * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); - * for (ReleaseConfig element : dataformClient.listReleaseConfigs(request).iterateAll()) { + * for (Workspace element : dataformClient.listWorkspaces(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -4079,14 +4502,13 @@ public final ListReleaseConfigsPagedResponse listReleaseConfigs(String parent) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListReleaseConfigsPagedResponse listReleaseConfigs( - ListReleaseConfigsRequest request) { - return listReleaseConfigsPagedCallable().call(request); + public final ListWorkspacesPagedResponse listWorkspaces(ListWorkspacesRequest request) { + return listWorkspacesPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ReleaseConfigs in a given Repository. + * Lists Workspaces in a given Repository. * *

          Sample code: * @@ -4097,29 +4519,31 @@ public final ListReleaseConfigsPagedResponse listReleaseConfigs( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * ListReleaseConfigsRequest request = - * ListReleaseConfigsRequest.newBuilder() + * ListWorkspacesRequest request = + * ListWorkspacesRequest.newBuilder() * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = - * dataformClient.listReleaseConfigsPagedCallable().futureCall(request); + * ApiFuture future = + * dataformClient.listWorkspacesPagedCallable().futureCall(request); * // Do something. - * for (ReleaseConfig element : future.get().iterateAll()) { + * for (Workspace element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } */ - public final UnaryCallable - listReleaseConfigsPagedCallable() { - return stub.listReleaseConfigsPagedCallable(); + public final UnaryCallable + listWorkspacesPagedCallable() { + return stub.listWorkspacesPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ReleaseConfigs in a given Repository. + * Lists Workspaces in a given Repository. * *

          Sample code: * @@ -4130,16 +4554,17 @@ public final ListReleaseConfigsPagedResponse listReleaseConfigs( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * ListReleaseConfigsRequest request = - * ListReleaseConfigsRequest.newBuilder() + * ListWorkspacesRequest request = + * ListWorkspacesRequest.newBuilder() * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); * while (true) { - * ListReleaseConfigsResponse response = - * dataformClient.listReleaseConfigsCallable().call(request); - * for (ReleaseConfig element : response.getReleaseConfigsList()) { + * ListWorkspacesResponse response = dataformClient.listWorkspacesCallable().call(request); + * for (Workspace element : response.getWorkspacesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -4152,14 +4577,14 @@ public final ListReleaseConfigsPagedResponse listReleaseConfigs( * } * } */ - public final UnaryCallable - listReleaseConfigsCallable() { - return stub.listReleaseConfigsCallable(); + public final UnaryCallable + listWorkspacesCallable() { + return stub.listWorkspacesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single ReleaseConfig. + * Fetches a single Workspace. * *

          Sample code: * @@ -4170,24 +4595,24 @@ public final ListReleaseConfigsPagedResponse listReleaseConfigs( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * ReleaseConfigName name = - * ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]"); - * ReleaseConfig response = dataformClient.getReleaseConfig(name); + * WorkspaceName name = + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]"); + * Workspace response = dataformClient.getWorkspace(name); * } * } * - * @param name Required. The release config's name. + * @param name Required. The workspace's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReleaseConfig getReleaseConfig(ReleaseConfigName name) { - GetReleaseConfigRequest request = - GetReleaseConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getReleaseConfig(request); + public final Workspace getWorkspace(WorkspaceName name) { + GetWorkspaceRequest request = + GetWorkspaceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getWorkspace(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single ReleaseConfig. + * Fetches a single Workspace. * *

          Sample code: * @@ -4199,23 +4624,22 @@ public final ReleaseConfig getReleaseConfig(ReleaseConfigName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { * String name = - * ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") - * .toString(); - * ReleaseConfig response = dataformClient.getReleaseConfig(name); + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]").toString(); + * Workspace response = dataformClient.getWorkspace(name); * } * } * - * @param name Required. The release config's name. + * @param name Required. The workspace's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReleaseConfig getReleaseConfig(String name) { - GetReleaseConfigRequest request = GetReleaseConfigRequest.newBuilder().setName(name).build(); - return getReleaseConfig(request); + public final Workspace getWorkspace(String name) { + GetWorkspaceRequest request = GetWorkspaceRequest.newBuilder().setName(name).build(); + return getWorkspace(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single ReleaseConfig. + * Fetches a single Workspace. * *

          Sample code: * @@ -4226,27 +4650,26 @@ public final ReleaseConfig getReleaseConfig(String name) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * GetReleaseConfigRequest request = - * GetReleaseConfigRequest.newBuilder() + * GetWorkspaceRequest request = + * GetWorkspaceRequest.newBuilder() * .setName( - * ReleaseConfigName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) * .build(); - * ReleaseConfig response = dataformClient.getReleaseConfig(request); + * Workspace response = dataformClient.getWorkspace(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReleaseConfig getReleaseConfig(GetReleaseConfigRequest request) { - return getReleaseConfigCallable().call(request); + public final Workspace getWorkspace(GetWorkspaceRequest request) { + return getWorkspaceCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single ReleaseConfig. + * Fetches a single Workspace. * *

          Sample code: * @@ -4257,27 +4680,25 @@ public final ReleaseConfig getReleaseConfig(GetReleaseConfigRequest request) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * GetReleaseConfigRequest request = - * GetReleaseConfigRequest.newBuilder() + * GetWorkspaceRequest request = + * GetWorkspaceRequest.newBuilder() * .setName( - * ReleaseConfigName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) * .build(); - * ApiFuture future = - * dataformClient.getReleaseConfigCallable().futureCall(request); + * ApiFuture future = dataformClient.getWorkspaceCallable().futureCall(request); * // Do something. - * ReleaseConfig response = future.get(); + * Workspace response = future.get(); * } * } */ - public final UnaryCallable getReleaseConfigCallable() { - return stub.getReleaseConfigCallable(); + public final UnaryCallable getWorkspaceCallable() { + return stub.getWorkspaceCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new ReleaseConfig in a given Repository. + * Creates a new Workspace in a given Repository. * *

          Sample code: * @@ -4289,34 +4710,33 @@ public final UnaryCallable getReleaseCon * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - * ReleaseConfig releaseConfig = ReleaseConfig.newBuilder().build(); - * String releaseConfigId = "releaseConfigId1350457636"; - * ReleaseConfig response = - * dataformClient.createReleaseConfig(parent, releaseConfig, releaseConfigId); + * Workspace workspace = Workspace.newBuilder().build(); + * String workspaceId = "workspaceId466560144"; + * Workspace response = dataformClient.createWorkspace(parent, workspace, workspaceId); * } * } * - * @param parent Required. The repository in which to create the release config. Must be in the - * format `projects/*/locations/*/repositories/*`. - * @param releaseConfig Required. The release config to create. - * @param releaseConfigId Required. The ID to use for the release config, which will become the - * final component of the release config's resource name. + * @param parent Required. The repository in which to create the workspace. Must be in the format + * `projects/*/locations/*/repositories/*`. + * @param workspace Required. The workspace to create. + * @param workspaceId Required. The ID to use for the workspace, which will become the final + * component of the workspace's resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReleaseConfig createReleaseConfig( - RepositoryName parent, ReleaseConfig releaseConfig, String releaseConfigId) { - CreateReleaseConfigRequest request = - CreateReleaseConfigRequest.newBuilder() + public final Workspace createWorkspace( + RepositoryName parent, Workspace workspace, String workspaceId) { + CreateWorkspaceRequest request = + CreateWorkspaceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) - .setReleaseConfig(releaseConfig) - .setReleaseConfigId(releaseConfigId) + .setWorkspace(workspace) + .setWorkspaceId(workspaceId) .build(); - return createReleaseConfig(request); + return createWorkspace(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new ReleaseConfig in a given Repository. + * Creates a new Workspace in a given Repository. * *

          Sample code: * @@ -4328,34 +4748,32 @@ public final ReleaseConfig createReleaseConfig( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); - * ReleaseConfig releaseConfig = ReleaseConfig.newBuilder().build(); - * String releaseConfigId = "releaseConfigId1350457636"; - * ReleaseConfig response = - * dataformClient.createReleaseConfig(parent, releaseConfig, releaseConfigId); + * Workspace workspace = Workspace.newBuilder().build(); + * String workspaceId = "workspaceId466560144"; + * Workspace response = dataformClient.createWorkspace(parent, workspace, workspaceId); * } * } * - * @param parent Required. The repository in which to create the release config. Must be in the - * format `projects/*/locations/*/repositories/*`. - * @param releaseConfig Required. The release config to create. - * @param releaseConfigId Required. The ID to use for the release config, which will become the - * final component of the release config's resource name. + * @param parent Required. The repository in which to create the workspace. Must be in the format + * `projects/*/locations/*/repositories/*`. + * @param workspace Required. The workspace to create. + * @param workspaceId Required. The ID to use for the workspace, which will become the final + * component of the workspace's resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReleaseConfig createReleaseConfig( - String parent, ReleaseConfig releaseConfig, String releaseConfigId) { - CreateReleaseConfigRequest request = - CreateReleaseConfigRequest.newBuilder() + public final Workspace createWorkspace(String parent, Workspace workspace, String workspaceId) { + CreateWorkspaceRequest request = + CreateWorkspaceRequest.newBuilder() .setParent(parent) - .setReleaseConfig(releaseConfig) - .setReleaseConfigId(releaseConfigId) + .setWorkspace(workspace) + .setWorkspaceId(workspaceId) .build(); - return createReleaseConfig(request); + return createWorkspace(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new ReleaseConfig in a given Repository. + * Creates a new Workspace in a given Repository. * *

          Sample code: * @@ -4366,26 +4784,26 @@ public final ReleaseConfig createReleaseConfig( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * CreateReleaseConfigRequest request = - * CreateReleaseConfigRequest.newBuilder() + * CreateWorkspaceRequest request = + * CreateWorkspaceRequest.newBuilder() * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setReleaseConfig(ReleaseConfig.newBuilder().build()) - * .setReleaseConfigId("releaseConfigId1350457636") + * .setWorkspace(Workspace.newBuilder().build()) + * .setWorkspaceId("workspaceId466560144") * .build(); - * ReleaseConfig response = dataformClient.createReleaseConfig(request); + * Workspace response = dataformClient.createWorkspace(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReleaseConfig createReleaseConfig(CreateReleaseConfigRequest request) { - return createReleaseConfigCallable().call(request); + public final Workspace createWorkspace(CreateWorkspaceRequest request) { + return createWorkspaceCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new ReleaseConfig in a given Repository. + * Creates a new Workspace in a given Repository. * *

          Sample code: * @@ -4396,32 +4814,25 @@ public final ReleaseConfig createReleaseConfig(CreateReleaseConfigRequest reques * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * CreateReleaseConfigRequest request = - * CreateReleaseConfigRequest.newBuilder() + * CreateWorkspaceRequest request = + * CreateWorkspaceRequest.newBuilder() * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setReleaseConfig(ReleaseConfig.newBuilder().build()) - * .setReleaseConfigId("releaseConfigId1350457636") + * .setWorkspace(Workspace.newBuilder().build()) + * .setWorkspaceId("workspaceId466560144") * .build(); - * ApiFuture future = - * dataformClient.createReleaseConfigCallable().futureCall(request); + * ApiFuture future = dataformClient.createWorkspaceCallable().futureCall(request); * // Do something. - * ReleaseConfig response = future.get(); + * Workspace response = future.get(); * } * } */ - public final UnaryCallable - createReleaseConfigCallable() { - return stub.createReleaseConfigCallable(); + public final UnaryCallable createWorkspaceCallable() { + return stub.createWorkspaceCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a single ReleaseConfig. - * - *

          **Note:** *This method does not fully implement - * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad - * request, and when the `field_mask` is omitted, the request is treated as a full update on all - * modifiable fields.* + * Deletes a single Workspace. * *

          Sample code: * @@ -4432,35 +4843,51 @@ public final ReleaseConfig createReleaseConfig(CreateReleaseConfigRequest reques * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * ReleaseConfig releaseConfig = ReleaseConfig.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * ReleaseConfig response = dataformClient.updateReleaseConfig(releaseConfig, updateMask); + * WorkspaceName name = + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]"); + * dataformClient.deleteWorkspace(name); * } * } * - * @param releaseConfig Required. The release config to update. - * @param updateMask Optional. Specifies the fields to be updated in the release config. If left - * unset, all fields will be updated. + * @param name Required. The workspace resource's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReleaseConfig updateReleaseConfig( - ReleaseConfig releaseConfig, FieldMask updateMask) { - UpdateReleaseConfigRequest request = - UpdateReleaseConfigRequest.newBuilder() - .setReleaseConfig(releaseConfig) - .setUpdateMask(updateMask) - .build(); - return updateReleaseConfig(request); + public final void deleteWorkspace(WorkspaceName name) { + DeleteWorkspaceRequest request = + DeleteWorkspaceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteWorkspace(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a single ReleaseConfig. + * Deletes a single Workspace. * - *

          **Note:** *This method does not fully implement - * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad - * request, and when the `field_mask` is omitted, the request is treated as a full update on all - * modifiable fields.* + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   String name =
          +   *       WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]").toString();
          +   *   dataformClient.deleteWorkspace(name);
          +   * }
          +   * }
          + * + * @param name Required. The workspace resource's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteWorkspace(String name) { + DeleteWorkspaceRequest request = DeleteWorkspaceRequest.newBuilder().setName(name).build(); + deleteWorkspace(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Workspace. * *

          Sample code: * @@ -4471,30 +4898,26 @@ public final ReleaseConfig updateReleaseConfig( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * UpdateReleaseConfigRequest request = - * UpdateReleaseConfigRequest.newBuilder() - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setReleaseConfig(ReleaseConfig.newBuilder().build()) + * DeleteWorkspaceRequest request = + * DeleteWorkspaceRequest.newBuilder() + * .setName( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) * .build(); - * ReleaseConfig response = dataformClient.updateReleaseConfig(request); + * dataformClient.deleteWorkspace(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReleaseConfig updateReleaseConfig(UpdateReleaseConfigRequest request) { - return updateReleaseConfigCallable().call(request); + public final void deleteWorkspace(DeleteWorkspaceRequest request) { + deleteWorkspaceCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a single ReleaseConfig. - * - *

          **Note:** *This method does not fully implement - * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad - * request, and when the `field_mask` is omitted, the request is treated as a full update on all - * modifiable fields.* + * Deletes a single Workspace. * *

          Sample code: * @@ -4505,26 +4928,25 @@ public final ReleaseConfig updateReleaseConfig(UpdateReleaseConfigRequest reques * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * UpdateReleaseConfigRequest request = - * UpdateReleaseConfigRequest.newBuilder() - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setReleaseConfig(ReleaseConfig.newBuilder().build()) + * DeleteWorkspaceRequest request = + * DeleteWorkspaceRequest.newBuilder() + * .setName( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) * .build(); - * ApiFuture future = - * dataformClient.updateReleaseConfigCallable().futureCall(request); + * ApiFuture future = dataformClient.deleteWorkspaceCallable().futureCall(request); * // Do something. - * ReleaseConfig response = future.get(); + * future.get(); * } * } */ - public final UnaryCallable - updateReleaseConfigCallable() { - return stub.updateReleaseConfigCallable(); + public final UnaryCallable deleteWorkspaceCallable() { + return stub.deleteWorkspaceCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single ReleaseConfig. + * Installs dependency NPM packages (inside a Workspace). * *

          Sample code: * @@ -4535,26 +4957,26 @@ public final ReleaseConfig updateReleaseConfig(UpdateReleaseConfigRequest reques * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * ReleaseConfigName name = - * ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]"); - * dataformClient.deleteReleaseConfig(name); + * InstallNpmPackagesRequest request = + * InstallNpmPackagesRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .build(); + * InstallNpmPackagesResponse response = dataformClient.installNpmPackages(request); * } * } * - * @param name Required. The release config's name. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteReleaseConfig(ReleaseConfigName name) { - DeleteReleaseConfigRequest request = - DeleteReleaseConfigRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteReleaseConfig(request); + public final InstallNpmPackagesResponse installNpmPackages(InstallNpmPackagesRequest request) { + return installNpmPackagesCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single ReleaseConfig. + * Installs dependency NPM packages (inside a Workspace). * *

          Sample code: * @@ -4565,25 +4987,27 @@ public final void deleteReleaseConfig(ReleaseConfigName name) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * String name = - * ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") - * .toString(); - * dataformClient.deleteReleaseConfig(name); + * InstallNpmPackagesRequest request = + * InstallNpmPackagesRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .build(); + * ApiFuture future = + * dataformClient.installNpmPackagesCallable().futureCall(request); + * // Do something. + * InstallNpmPackagesResponse response = future.get(); * } * } - * - * @param name Required. The release config's name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteReleaseConfig(String name) { - DeleteReleaseConfigRequest request = - DeleteReleaseConfigRequest.newBuilder().setName(name).build(); - deleteReleaseConfig(request); + public final UnaryCallable + installNpmPackagesCallable() { + return stub.installNpmPackagesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single ReleaseConfig. + * Pulls Git commits from the Repository's remote into a Workspace. * *

          Sample code: * @@ -4594,27 +5018,28 @@ public final void deleteReleaseConfig(String name) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * DeleteReleaseConfigRequest request = - * DeleteReleaseConfigRequest.newBuilder() + * PullGitCommitsRequest request = + * PullGitCommitsRequest.newBuilder() * .setName( - * ReleaseConfigName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) + * .setRemoteBranch("remoteBranch-533119608") + * .setAuthor(CommitAuthor.newBuilder().build()) * .build(); - * dataformClient.deleteReleaseConfig(request); + * PullGitCommitsResponse response = dataformClient.pullGitCommits(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteReleaseConfig(DeleteReleaseConfigRequest request) { - deleteReleaseConfigCallable().call(request); + public final PullGitCommitsResponse pullGitCommits(PullGitCommitsRequest request) { + return pullGitCommitsCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single ReleaseConfig. + * Pulls Git commits from the Repository's remote into a Workspace. * *

          Sample code: * @@ -4625,26 +5050,29 @@ public final void deleteReleaseConfig(DeleteReleaseConfigRequest request) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * DeleteReleaseConfigRequest request = - * DeleteReleaseConfigRequest.newBuilder() + * PullGitCommitsRequest request = + * PullGitCommitsRequest.newBuilder() * .setName( - * ReleaseConfigName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) + * .setRemoteBranch("remoteBranch-533119608") + * .setAuthor(CommitAuthor.newBuilder().build()) * .build(); - * ApiFuture future = dataformClient.deleteReleaseConfigCallable().futureCall(request); + * ApiFuture future = + * dataformClient.pullGitCommitsCallable().futureCall(request); * // Do something. - * future.get(); + * PullGitCommitsResponse response = future.get(); * } * } */ - public final UnaryCallable deleteReleaseConfigCallable() { - return stub.deleteReleaseConfigCallable(); + public final UnaryCallable + pullGitCommitsCallable() { + return stub.pullGitCommitsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CompilationResults in a given Repository. + * Pushes Git commits from a Workspace to the Repository's remote. * *

          Sample code: * @@ -4655,28 +5083,27 @@ public final UnaryCallable deleteReleaseConfi * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - * for (CompilationResult element : dataformClient.listCompilationResults(parent).iterateAll()) { - * // doThingsWith(element); - * } + * PushGitCommitsRequest request = + * PushGitCommitsRequest.newBuilder() + * .setName( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setRemoteBranch("remoteBranch-533119608") + * .build(); + * PushGitCommitsResponse response = dataformClient.pushGitCommits(request); * } * } * - * @param parent Required. The repository in which to list compilation results. Must be in the - * format `projects/*/locations/*/repositories/*`. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCompilationResultsPagedResponse listCompilationResults(RepositoryName parent) { - ListCompilationResultsRequest request = - ListCompilationResultsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listCompilationResults(request); + public final PushGitCommitsResponse pushGitCommits(PushGitCommitsRequest request) { + return pushGitCommitsCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CompilationResults in a given Repository. + * Pushes Git commits from a Workspace to the Repository's remote. * *

          Sample code: * @@ -4687,26 +5114,28 @@ public final ListCompilationResultsPagedResponse listCompilationResults(Reposito * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); - * for (CompilationResult element : dataformClient.listCompilationResults(parent).iterateAll()) { - * // doThingsWith(element); - * } + * PushGitCommitsRequest request = + * PushGitCommitsRequest.newBuilder() + * .setName( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setRemoteBranch("remoteBranch-533119608") + * .build(); + * ApiFuture future = + * dataformClient.pushGitCommitsCallable().futureCall(request); + * // Do something. + * PushGitCommitsResponse response = future.get(); * } * } - * - * @param parent Required. The repository in which to list compilation results. Must be in the - * format `projects/*/locations/*/repositories/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCompilationResultsPagedResponse listCompilationResults(String parent) { - ListCompilationResultsRequest request = - ListCompilationResultsRequest.newBuilder().setParent(parent).build(); - return listCompilationResults(request); + public final UnaryCallable + pushGitCommitsCallable() { + return stub.pushGitCommitsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CompilationResults in a given Repository. + * Fetches Git statuses for the files in a Workspace. * *

          Sample code: * @@ -4717,32 +5146,27 @@ public final ListCompilationResultsPagedResponse listCompilationResults(String p * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * ListCompilationResultsRequest request = - * ListCompilationResultsRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setOrderBy("orderBy-1207110587") - * .setFilter("filter-1274492040") + * FetchFileGitStatusesRequest request = + * FetchFileGitStatusesRequest.newBuilder() + * .setName( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) * .build(); - * for (CompilationResult element : - * dataformClient.listCompilationResults(request).iterateAll()) { - * // doThingsWith(element); - * } + * FetchFileGitStatusesResponse response = dataformClient.fetchFileGitStatuses(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCompilationResultsPagedResponse listCompilationResults( - ListCompilationResultsRequest request) { - return listCompilationResultsPagedCallable().call(request); + public final FetchFileGitStatusesResponse fetchFileGitStatuses( + FetchFileGitStatusesRequest request) { + return fetchFileGitStatusesCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CompilationResults in a given Repository. + * Fetches Git statuses for the files in a Workspace. * *

          Sample code: * @@ -4753,31 +5177,27 @@ public final ListCompilationResultsPagedResponse listCompilationResults( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * ListCompilationResultsRequest request = - * ListCompilationResultsRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setOrderBy("orderBy-1207110587") - * .setFilter("filter-1274492040") + * FetchFileGitStatusesRequest request = + * FetchFileGitStatusesRequest.newBuilder() + * .setName( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) * .build(); - * ApiFuture future = - * dataformClient.listCompilationResultsPagedCallable().futureCall(request); + * ApiFuture future = + * dataformClient.fetchFileGitStatusesCallable().futureCall(request); * // Do something. - * for (CompilationResult element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * FetchFileGitStatusesResponse response = future.get(); * } * } */ - public final UnaryCallable - listCompilationResultsPagedCallable() { - return stub.listCompilationResultsPagedCallable(); + public final UnaryCallable + fetchFileGitStatusesCallable() { + return stub.fetchFileGitStatusesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CompilationResults in a given Repository. + * Fetches Git ahead/behind against a remote branch. * *

          Sample code: * @@ -4788,38 +5208,27 @@ public final ListCompilationResultsPagedResponse listCompilationResults( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * ListCompilationResultsRequest request = - * ListCompilationResultsRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setOrderBy("orderBy-1207110587") - * .setFilter("filter-1274492040") + * FetchGitAheadBehindRequest request = + * FetchGitAheadBehindRequest.newBuilder() + * .setName( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setRemoteBranch("remoteBranch-533119608") * .build(); - * while (true) { - * ListCompilationResultsResponse response = - * dataformClient.listCompilationResultsCallable().call(request); - * for (CompilationResult element : response.getCompilationResultsList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * FetchGitAheadBehindResponse response = dataformClient.fetchGitAheadBehind(request); * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - listCompilationResultsCallable() { - return stub.listCompilationResultsCallable(); + public final FetchGitAheadBehindResponse fetchGitAheadBehind(FetchGitAheadBehindRequest request) { + return fetchGitAheadBehindCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single CompilationResult. + * Fetches Git ahead/behind against a remote branch. * *

          Sample code: * @@ -4830,27 +5239,28 @@ public final ListCompilationResultsPagedResponse listCompilationResults( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * CompilationResultName name = - * CompilationResultName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]"); - * CompilationResult response = dataformClient.getCompilationResult(name); + * FetchGitAheadBehindRequest request = + * FetchGitAheadBehindRequest.newBuilder() + * .setName( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setRemoteBranch("remoteBranch-533119608") + * .build(); + * ApiFuture future = + * dataformClient.fetchGitAheadBehindCallable().futureCall(request); + * // Do something. + * FetchGitAheadBehindResponse response = future.get(); * } * } - * - * @param name Required. The compilation result's name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CompilationResult getCompilationResult(CompilationResultName name) { - GetCompilationResultRequest request = - GetCompilationResultRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getCompilationResult(request); + public final UnaryCallable + fetchGitAheadBehindCallable() { + return stub.fetchGitAheadBehindCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single CompilationResult. + * Applies a Git commit for uncommitted files in a Workspace. * *

          Sample code: * @@ -4861,26 +5271,30 @@ public final CompilationResult getCompilationResult(CompilationResultName name) * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * String name = - * CompilationResultName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") - * .toString(); - * CompilationResult response = dataformClient.getCompilationResult(name); + * CommitWorkspaceChangesRequest request = + * CommitWorkspaceChangesRequest.newBuilder() + * .setName( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setAuthor(CommitAuthor.newBuilder().build()) + * .setCommitMessage("commitMessage2039804624") + * .addAllPaths(new ArrayList()) + * .build(); + * CommitWorkspaceChangesResponse response = dataformClient.commitWorkspaceChanges(request); * } * } * - * @param name Required. The compilation result's name. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CompilationResult getCompilationResult(String name) { - GetCompilationResultRequest request = - GetCompilationResultRequest.newBuilder().setName(name).build(); - return getCompilationResult(request); + public final CommitWorkspaceChangesResponse commitWorkspaceChanges( + CommitWorkspaceChangesRequest request) { + return commitWorkspaceChangesCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single CompilationResult. + * Applies a Git commit for uncommitted files in a Workspace. * *

          Sample code: * @@ -4891,27 +5305,30 @@ public final CompilationResult getCompilationResult(String name) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * GetCompilationResultRequest request = - * GetCompilationResultRequest.newBuilder() + * CommitWorkspaceChangesRequest request = + * CommitWorkspaceChangesRequest.newBuilder() * .setName( - * CompilationResultName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) + * .setAuthor(CommitAuthor.newBuilder().build()) + * .setCommitMessage("commitMessage2039804624") + * .addAllPaths(new ArrayList()) * .build(); - * CompilationResult response = dataformClient.getCompilationResult(request); + * ApiFuture future = + * dataformClient.commitWorkspaceChangesCallable().futureCall(request); + * // Do something. + * CommitWorkspaceChangesResponse response = future.get(); * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CompilationResult getCompilationResult(GetCompilationResultRequest request) { - return getCompilationResultCallable().call(request); + public final UnaryCallable + commitWorkspaceChangesCallable() { + return stub.commitWorkspaceChangesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single CompilationResult. + * Performs a Git reset for uncommitted files in a Workspace. * *

          Sample code: * @@ -4922,28 +5339,29 @@ public final CompilationResult getCompilationResult(GetCompilationResultRequest * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * GetCompilationResultRequest request = - * GetCompilationResultRequest.newBuilder() + * ResetWorkspaceChangesRequest request = + * ResetWorkspaceChangesRequest.newBuilder() * .setName( - * CompilationResultName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) + * .addAllPaths(new ArrayList()) + * .setClean(true) * .build(); - * ApiFuture future = - * dataformClient.getCompilationResultCallable().futureCall(request); - * // Do something. - * CompilationResult response = future.get(); + * ResetWorkspaceChangesResponse response = dataformClient.resetWorkspaceChanges(request); * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - getCompilationResultCallable() { - return stub.getCompilationResultCallable(); + public final ResetWorkspaceChangesResponse resetWorkspaceChanges( + ResetWorkspaceChangesRequest request) { + return resetWorkspaceChangesCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new CompilationResult in a given project and location. + * Performs a Git reset for uncommitted files in a Workspace. * *

          Sample code: * @@ -4954,66 +5372,29 @@ public final CompilationResult getCompilationResult(GetCompilationResultRequest * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - * CompilationResult compilationResult = CompilationResult.newBuilder().build(); - * CompilationResult response = - * dataformClient.createCompilationResult(parent, compilationResult); - * } - * } - * - * @param parent Required. The repository in which to create the compilation result. Must be in - * the format `projects/*/locations/*/repositories/*`. - * @param compilationResult Required. The compilation result to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CompilationResult createCompilationResult( - RepositoryName parent, CompilationResult compilationResult) { - CreateCompilationResultRequest request = - CreateCompilationResultRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setCompilationResult(compilationResult) - .build(); - return createCompilationResult(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new CompilationResult in a given project and location. - * - *

          Sample code: - * - *

          {@code
          -   * // This snippet has been automatically generated and should be regarded as a code template only.
          -   * // It will require modifications to work:
          -   * // - It may require correct/in-range values for request initialization.
          -   * // - It may require specifying regional endpoints when creating the service client as shown in
          -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          -   * try (DataformClient dataformClient = DataformClient.create()) {
          -   *   String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString();
          -   *   CompilationResult compilationResult = CompilationResult.newBuilder().build();
          -   *   CompilationResult response =
          -   *       dataformClient.createCompilationResult(parent, compilationResult);
          +   *   ResetWorkspaceChangesRequest request =
          +   *       ResetWorkspaceChangesRequest.newBuilder()
          +   *           .setName(
          +   *               WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
          +   *                   .toString())
          +   *           .addAllPaths(new ArrayList())
          +   *           .setClean(true)
          +   *           .build();
          +   *   ApiFuture future =
          +   *       dataformClient.resetWorkspaceChangesCallable().futureCall(request);
          +   *   // Do something.
          +   *   ResetWorkspaceChangesResponse response = future.get();
              * }
              * }
          - * - * @param parent Required. The repository in which to create the compilation result. Must be in - * the format `projects/*/locations/*/repositories/*`. - * @param compilationResult Required. The compilation result to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CompilationResult createCompilationResult( - String parent, CompilationResult compilationResult) { - CreateCompilationResultRequest request = - CreateCompilationResultRequest.newBuilder() - .setParent(parent) - .setCompilationResult(compilationResult) - .build(); - return createCompilationResult(request); + public final UnaryCallable + resetWorkspaceChangesCallable() { + return stub.resetWorkspaceChangesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new CompilationResult in a given project and location. + * Fetches Git diff for an uncommitted file in a Workspace. * *

          Sample code: * @@ -5024,25 +5405,27 @@ public final CompilationResult createCompilationResult( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * CreateCompilationResultRequest request = - * CreateCompilationResultRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setCompilationResult(CompilationResult.newBuilder().build()) + * FetchFileDiffRequest request = + * FetchFileDiffRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setPath("path3433509") * .build(); - * CompilationResult response = dataformClient.createCompilationResult(request); + * FetchFileDiffResponse response = dataformClient.fetchFileDiff(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CompilationResult createCompilationResult(CreateCompilationResultRequest request) { - return createCompilationResultCallable().call(request); + public final FetchFileDiffResponse fetchFileDiff(FetchFileDiffRequest request) { + return fetchFileDiffCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new CompilationResult in a given project and location. + * Fetches Git diff for an uncommitted file in a Workspace. * *

          Sample code: * @@ -5053,26 +5436,27 @@ public final CompilationResult createCompilationResult(CreateCompilationResultRe * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * CreateCompilationResultRequest request = - * CreateCompilationResultRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setCompilationResult(CompilationResult.newBuilder().build()) + * FetchFileDiffRequest request = + * FetchFileDiffRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setPath("path3433509") * .build(); - * ApiFuture future = - * dataformClient.createCompilationResultCallable().futureCall(request); + * ApiFuture future = + * dataformClient.fetchFileDiffCallable().futureCall(request); * // Do something. - * CompilationResult response = future.get(); + * FetchFileDiffResponse response = future.get(); * } * } */ - public final UnaryCallable - createCompilationResultCallable() { - return stub.createCompilationResultCallable(); + public final UnaryCallable fetchFileDiffCallable() { + return stub.fetchFileDiffCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns CompilationResultActions in a given CompilationResult. + * Returns the contents of a given Workspace directory. * *

          Sample code: * @@ -5083,18 +5467,16 @@ public final CompilationResult createCompilationResult(CreateCompilationResultRe * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * QueryCompilationResultActionsRequest request = - * QueryCompilationResultActionsRequest.newBuilder() - * .setName( - * CompilationResultName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + * QueryDirectoryContentsRequest request = + * QueryDirectoryContentsRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) + * .setPath("path3433509") * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") * .build(); - * for (CompilationResultAction element : - * dataformClient.queryCompilationResultActions(request).iterateAll()) { + * for (DirectoryEntry element : dataformClient.queryDirectoryContents(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -5103,14 +5485,14 @@ public final CompilationResult createCompilationResult(CreateCompilationResultRe * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final QueryCompilationResultActionsPagedResponse queryCompilationResultActions( - QueryCompilationResultActionsRequest request) { - return queryCompilationResultActionsPagedCallable().call(request); + public final QueryDirectoryContentsPagedResponse queryDirectoryContents( + QueryDirectoryContentsRequest request) { + return queryDirectoryContentsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns CompilationResultActions in a given CompilationResult. + * Returns the contents of a given Workspace directory. * *

          Sample code: * @@ -5121,34 +5503,32 @@ public final QueryCompilationResultActionsPagedResponse queryCompilationResultAc * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * QueryCompilationResultActionsRequest request = - * QueryCompilationResultActionsRequest.newBuilder() - * .setName( - * CompilationResultName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + * QueryDirectoryContentsRequest request = + * QueryDirectoryContentsRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) + * .setPath("path3433509") * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = - * dataformClient.queryCompilationResultActionsPagedCallable().futureCall(request); + * ApiFuture future = + * dataformClient.queryDirectoryContentsPagedCallable().futureCall(request); * // Do something. - * for (CompilationResultAction element : future.get().iterateAll()) { + * for (DirectoryEntry element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } */ - public final UnaryCallable< - QueryCompilationResultActionsRequest, QueryCompilationResultActionsPagedResponse> - queryCompilationResultActionsPagedCallable() { - return stub.queryCompilationResultActionsPagedCallable(); + public final UnaryCallable + queryDirectoryContentsPagedCallable() { + return stub.queryDirectoryContentsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns CompilationResultActions in a given CompilationResult. + * Returns the contents of a given Workspace directory. * *

          Sample code: * @@ -5159,20 +5539,19 @@ public final QueryCompilationResultActionsPagedResponse queryCompilationResultAc * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * QueryCompilationResultActionsRequest request = - * QueryCompilationResultActionsRequest.newBuilder() - * .setName( - * CompilationResultName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + * QueryDirectoryContentsRequest request = + * QueryDirectoryContentsRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) + * .setPath("path3433509") * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") * .build(); * while (true) { - * QueryCompilationResultActionsResponse response = - * dataformClient.queryCompilationResultActionsCallable().call(request); - * for (CompilationResultAction element : response.getCompilationResultActionsList()) { + * QueryDirectoryContentsResponse response = + * dataformClient.queryDirectoryContentsCallable().call(request); + * for (DirectoryEntry element : response.getDirectoryEntriesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -5185,15 +5564,14 @@ public final QueryCompilationResultActionsPagedResponse queryCompilationResultAc * } * } */ - public final UnaryCallable< - QueryCompilationResultActionsRequest, QueryCompilationResultActionsResponse> - queryCompilationResultActionsCallable() { - return stub.queryCompilationResultActionsCallable(); + public final UnaryCallable + queryDirectoryContentsCallable() { + return stub.queryDirectoryContentsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists WorkflowConfigs in a given Repository. + * Finds the contents of a given Workspace directory by filter. * *

          Sample code: * @@ -5204,28 +5582,31 @@ public final QueryCompilationResultActionsPagedResponse queryCompilationResultAc * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - * for (WorkflowConfig element : dataformClient.listWorkflowConfigs(parent).iterateAll()) { + * SearchFilesRequest request = + * SearchFilesRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .build(); + * for (SearchResult element : dataformClient.searchFiles(request).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The repository in which to list workflow configs. Must be in the format - * `projects/*/locations/*/repositories/*`. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkflowConfigsPagedResponse listWorkflowConfigs(RepositoryName parent) { - ListWorkflowConfigsRequest request = - ListWorkflowConfigsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listWorkflowConfigs(request); + public final SearchFilesPagedResponse searchFiles(SearchFilesRequest request) { + return searchFilesPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists WorkflowConfigs in a given Repository. + * Finds the contents of a given Workspace directory by filter. * *

          Sample code: * @@ -5236,26 +5617,32 @@ public final ListWorkflowConfigsPagedResponse listWorkflowConfigs(RepositoryName * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); - * for (WorkflowConfig element : dataformClient.listWorkflowConfigs(parent).iterateAll()) { + * SearchFilesRequest request = + * SearchFilesRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .build(); + * ApiFuture future = + * dataformClient.searchFilesPagedCallable().futureCall(request); + * // Do something. + * for (SearchResult element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } - * - * @param parent Required. The repository in which to list workflow configs. Must be in the format - * `projects/*/locations/*/repositories/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkflowConfigsPagedResponse listWorkflowConfigs(String parent) { - ListWorkflowConfigsRequest request = - ListWorkflowConfigsRequest.newBuilder().setParent(parent).build(); - return listWorkflowConfigs(request); + public final UnaryCallable + searchFilesPagedCallable() { + return stub.searchFilesPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists WorkflowConfigs in a given Repository. + * Finds the contents of a given Workspace directory by filter. * *

          Sample code: * @@ -5266,29 +5653,37 @@ public final ListWorkflowConfigsPagedResponse listWorkflowConfigs(String parent) * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * ListWorkflowConfigsRequest request = - * ListWorkflowConfigsRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * SearchFilesRequest request = + * SearchFilesRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") * .build(); - * for (WorkflowConfig element : dataformClient.listWorkflowConfigs(request).iterateAll()) { - * // doThingsWith(element); + * while (true) { + * SearchFilesResponse response = dataformClient.searchFilesCallable().call(request); + * for (SearchResult element : response.getSearchResultsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } * } * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkflowConfigsPagedResponse listWorkflowConfigs( - ListWorkflowConfigsRequest request) { - return listWorkflowConfigsPagedCallable().call(request); + public final UnaryCallable searchFilesCallable() { + return stub.searchFilesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists WorkflowConfigs in a given Repository. + * Creates a directory inside a Workspace. * *

          Sample code: * @@ -5299,29 +5694,27 @@ public final ListWorkflowConfigsPagedResponse listWorkflowConfigs( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * ListWorkflowConfigsRequest request = - * ListWorkflowConfigsRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * MakeDirectoryRequest request = + * MakeDirectoryRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setPath("path3433509") * .build(); - * ApiFuture future = - * dataformClient.listWorkflowConfigsPagedCallable().futureCall(request); - * // Do something. - * for (WorkflowConfig element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * MakeDirectoryResponse response = dataformClient.makeDirectory(request); * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - listWorkflowConfigsPagedCallable() { - return stub.listWorkflowConfigsPagedCallable(); + public final MakeDirectoryResponse makeDirectory(MakeDirectoryRequest request) { + return makeDirectoryCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists WorkflowConfigs in a given Repository. + * Creates a directory inside a Workspace. * *

          Sample code: * @@ -5332,36 +5725,27 @@ public final ListWorkflowConfigsPagedResponse listWorkflowConfigs( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * ListWorkflowConfigsRequest request = - * ListWorkflowConfigsRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * MakeDirectoryRequest request = + * MakeDirectoryRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setPath("path3433509") * .build(); - * while (true) { - * ListWorkflowConfigsResponse response = - * dataformClient.listWorkflowConfigsCallable().call(request); - * for (WorkflowConfig element : response.getWorkflowConfigsList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * ApiFuture future = + * dataformClient.makeDirectoryCallable().futureCall(request); + * // Do something. + * MakeDirectoryResponse response = future.get(); * } * } */ - public final UnaryCallable - listWorkflowConfigsCallable() { - return stub.listWorkflowConfigsCallable(); + public final UnaryCallable makeDirectoryCallable() { + return stub.makeDirectoryCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single WorkflowConfig. + * Deletes a directory (inside a Workspace) and all of its contents. * *

          Sample code: * @@ -5372,26 +5756,27 @@ public final ListWorkflowConfigsPagedResponse listWorkflowConfigs( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * WorkflowConfigName name = - * WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]"); - * WorkflowConfig response = dataformClient.getWorkflowConfig(name); + * RemoveDirectoryRequest request = + * RemoveDirectoryRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setPath("path3433509") + * .build(); + * RemoveDirectoryResponse response = dataformClient.removeDirectory(request); * } * } * - * @param name Required. The workflow config's name. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkflowConfig getWorkflowConfig(WorkflowConfigName name) { - GetWorkflowConfigRequest request = - GetWorkflowConfigRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getWorkflowConfig(request); + public final RemoveDirectoryResponse removeDirectory(RemoveDirectoryRequest request) { + return removeDirectoryCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single WorkflowConfig. + * Deletes a directory (inside a Workspace) and all of its contents. * *

          Sample code: * @@ -5402,24 +5787,28 @@ public final WorkflowConfig getWorkflowConfig(WorkflowConfigName name) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * String name = - * WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") - * .toString(); - * WorkflowConfig response = dataformClient.getWorkflowConfig(name); + * RemoveDirectoryRequest request = + * RemoveDirectoryRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setPath("path3433509") + * .build(); + * ApiFuture future = + * dataformClient.removeDirectoryCallable().futureCall(request); + * // Do something. + * RemoveDirectoryResponse response = future.get(); * } * } - * - * @param name Required. The workflow config's name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkflowConfig getWorkflowConfig(String name) { - GetWorkflowConfigRequest request = GetWorkflowConfigRequest.newBuilder().setName(name).build(); - return getWorkflowConfig(request); + public final UnaryCallable + removeDirectoryCallable() { + return stub.removeDirectoryCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single WorkflowConfig. + * Moves a directory (inside a Workspace), and all of its contents, to a new location. * *

          Sample code: * @@ -5430,27 +5819,28 @@ public final WorkflowConfig getWorkflowConfig(String name) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * GetWorkflowConfigRequest request = - * GetWorkflowConfigRequest.newBuilder() - * .setName( - * WorkflowConfigName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") + * MoveDirectoryRequest request = + * MoveDirectoryRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) + * .setPath("path3433509") + * .setNewPath("newPath1845080549") * .build(); - * WorkflowConfig response = dataformClient.getWorkflowConfig(request); + * MoveDirectoryResponse response = dataformClient.moveDirectory(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkflowConfig getWorkflowConfig(GetWorkflowConfigRequest request) { - return getWorkflowConfigCallable().call(request); + public final MoveDirectoryResponse moveDirectory(MoveDirectoryRequest request) { + return moveDirectoryCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single WorkflowConfig. + * Moves a directory (inside a Workspace), and all of its contents, to a new location. * *

          Sample code: * @@ -5461,27 +5851,28 @@ public final WorkflowConfig getWorkflowConfig(GetWorkflowConfigRequest request) * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * GetWorkflowConfigRequest request = - * GetWorkflowConfigRequest.newBuilder() - * .setName( - * WorkflowConfigName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") + * MoveDirectoryRequest request = + * MoveDirectoryRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") * .toString()) + * .setPath("path3433509") + * .setNewPath("newPath1845080549") * .build(); - * ApiFuture future = - * dataformClient.getWorkflowConfigCallable().futureCall(request); + * ApiFuture future = + * dataformClient.moveDirectoryCallable().futureCall(request); * // Do something. - * WorkflowConfig response = future.get(); + * MoveDirectoryResponse response = future.get(); * } * } */ - public final UnaryCallable getWorkflowConfigCallable() { - return stub.getWorkflowConfigCallable(); + public final UnaryCallable moveDirectoryCallable() { + return stub.moveDirectoryCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new WorkflowConfig in a given Repository. + * Returns the contents of a file (inside a Workspace). * *

          Sample code: * @@ -5492,35 +5883,28 @@ public final UnaryCallable getWorkflow * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - * WorkflowConfig workflowConfig = WorkflowConfig.newBuilder().build(); - * String workflowConfigId = "workflowConfigId-1331048228"; - * WorkflowConfig response = - * dataformClient.createWorkflowConfig(parent, workflowConfig, workflowConfigId); + * ReadFileRequest request = + * ReadFileRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setPath("path3433509") + * .setRevision("revision-260786213") + * .build(); + * ReadFileResponse response = dataformClient.readFile(request); * } * } * - * @param parent Required. The repository in which to create the workflow config. Must be in the - * format `projects/*/locations/*/repositories/*`. - * @param workflowConfig Required. The workflow config to create. - * @param workflowConfigId Required. The ID to use for the workflow config, which will become the - * final component of the workflow config's resource name. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkflowConfig createWorkflowConfig( - RepositoryName parent, WorkflowConfig workflowConfig, String workflowConfigId) { - CreateWorkflowConfigRequest request = - CreateWorkflowConfigRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setWorkflowConfig(workflowConfig) - .setWorkflowConfigId(workflowConfigId) - .build(); - return createWorkflowConfig(request); + public final ReadFileResponse readFile(ReadFileRequest request) { + return readFileCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new WorkflowConfig in a given Repository. + * Returns the contents of a file (inside a Workspace). * *

          Sample code: * @@ -5531,35 +5915,27 @@ public final WorkflowConfig createWorkflowConfig( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); - * WorkflowConfig workflowConfig = WorkflowConfig.newBuilder().build(); - * String workflowConfigId = "workflowConfigId-1331048228"; - * WorkflowConfig response = - * dataformClient.createWorkflowConfig(parent, workflowConfig, workflowConfigId); + * ReadFileRequest request = + * ReadFileRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setPath("path3433509") + * .setRevision("revision-260786213") + * .build(); + * ApiFuture future = dataformClient.readFileCallable().futureCall(request); + * // Do something. + * ReadFileResponse response = future.get(); * } * } - * - * @param parent Required. The repository in which to create the workflow config. Must be in the - * format `projects/*/locations/*/repositories/*`. - * @param workflowConfig Required. The workflow config to create. - * @param workflowConfigId Required. The ID to use for the workflow config, which will become the - * final component of the workflow config's resource name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkflowConfig createWorkflowConfig( - String parent, WorkflowConfig workflowConfig, String workflowConfigId) { - CreateWorkflowConfigRequest request = - CreateWorkflowConfigRequest.newBuilder() - .setParent(parent) - .setWorkflowConfig(workflowConfig) - .setWorkflowConfigId(workflowConfigId) - .build(); - return createWorkflowConfig(request); + public final UnaryCallable readFileCallable() { + return stub.readFileCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new WorkflowConfig in a given Repository. + * Deletes a file (inside a Workspace). * *

          Sample code: * @@ -5570,26 +5946,27 @@ public final WorkflowConfig createWorkflowConfig( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * CreateWorkflowConfigRequest request = - * CreateWorkflowConfigRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setWorkflowConfig(WorkflowConfig.newBuilder().build()) - * .setWorkflowConfigId("workflowConfigId-1331048228") + * RemoveFileRequest request = + * RemoveFileRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setPath("path3433509") * .build(); - * WorkflowConfig response = dataformClient.createWorkflowConfig(request); + * RemoveFileResponse response = dataformClient.removeFile(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkflowConfig createWorkflowConfig(CreateWorkflowConfigRequest request) { - return createWorkflowConfigCallable().call(request); + public final RemoveFileResponse removeFile(RemoveFileRequest request) { + return removeFileCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new WorkflowConfig in a given Repository. + * Deletes a file (inside a Workspace). * *

          Sample code: * @@ -5600,32 +5977,27 @@ public final WorkflowConfig createWorkflowConfig(CreateWorkflowConfigRequest req * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * CreateWorkflowConfigRequest request = - * CreateWorkflowConfigRequest.newBuilder() - * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setWorkflowConfig(WorkflowConfig.newBuilder().build()) - * .setWorkflowConfigId("workflowConfigId-1331048228") - * .build(); - * ApiFuture future = - * dataformClient.createWorkflowConfigCallable().futureCall(request); - * // Do something. - * WorkflowConfig response = future.get(); + * RemoveFileRequest request = + * RemoveFileRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setPath("path3433509") + * .build(); + * ApiFuture future = + * dataformClient.removeFileCallable().futureCall(request); + * // Do something. + * RemoveFileResponse response = future.get(); * } * } */ - public final UnaryCallable - createWorkflowConfigCallable() { - return stub.createWorkflowConfigCallable(); + public final UnaryCallable removeFileCallable() { + return stub.removeFileCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a single WorkflowConfig. - * - *

          **Note:** *This method does not fully implement - * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad - * request, and when the `field_mask` is omitted, the request is treated as a full update on all - * modifiable fields.* + * Moves a file (inside a Workspace) to a new location. * *

          Sample code: * @@ -5636,35 +6008,28 @@ public final WorkflowConfig createWorkflowConfig(CreateWorkflowConfigRequest req * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * WorkflowConfig workflowConfig = WorkflowConfig.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * WorkflowConfig response = dataformClient.updateWorkflowConfig(workflowConfig, updateMask); + * MoveFileRequest request = + * MoveFileRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setPath("path3433509") + * .setNewPath("newPath1845080549") + * .build(); + * MoveFileResponse response = dataformClient.moveFile(request); * } * } * - * @param workflowConfig Required. The workflow config to update. - * @param updateMask Optional. Specifies the fields to be updated in the workflow config. If left - * unset, all fields will be updated. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkflowConfig updateWorkflowConfig( - WorkflowConfig workflowConfig, FieldMask updateMask) { - UpdateWorkflowConfigRequest request = - UpdateWorkflowConfigRequest.newBuilder() - .setWorkflowConfig(workflowConfig) - .setUpdateMask(updateMask) - .build(); - return updateWorkflowConfig(request); + public final MoveFileResponse moveFile(MoveFileRequest request) { + return moveFileCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a single WorkflowConfig. - * - *

          **Note:** *This method does not fully implement - * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad - * request, and when the `field_mask` is omitted, the request is treated as a full update on all - * modifiable fields.* + * Moves a file (inside a Workspace) to a new location. * *

          Sample code: * @@ -5675,30 +6040,27 @@ public final WorkflowConfig updateWorkflowConfig( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * UpdateWorkflowConfigRequest request = - * UpdateWorkflowConfigRequest.newBuilder() - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setWorkflowConfig(WorkflowConfig.newBuilder().build()) + * MoveFileRequest request = + * MoveFileRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setPath("path3433509") + * .setNewPath("newPath1845080549") * .build(); - * WorkflowConfig response = dataformClient.updateWorkflowConfig(request); + * ApiFuture future = dataformClient.moveFileCallable().futureCall(request); + * // Do something. + * MoveFileResponse response = future.get(); * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkflowConfig updateWorkflowConfig(UpdateWorkflowConfigRequest request) { - return updateWorkflowConfigCallable().call(request); + public final UnaryCallable moveFileCallable() { + return stub.moveFileCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a single WorkflowConfig. - * - *

          **Note:** *This method does not fully implement - * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad - * request, and when the `field_mask` is omitted, the request is treated as a full update on all - * modifiable fields.* + * Writes to a file (inside a Workspace). * *

          Sample code: * @@ -5709,26 +6071,28 @@ public final WorkflowConfig updateWorkflowConfig(UpdateWorkflowConfigRequest req * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * UpdateWorkflowConfigRequest request = - * UpdateWorkflowConfigRequest.newBuilder() - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setWorkflowConfig(WorkflowConfig.newBuilder().build()) + * WriteFileRequest request = + * WriteFileRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setPath("path3433509") + * .setContents(ByteString.EMPTY) * .build(); - * ApiFuture future = - * dataformClient.updateWorkflowConfigCallable().futureCall(request); - * // Do something. - * WorkflowConfig response = future.get(); + * WriteFileResponse response = dataformClient.writeFile(request); * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - updateWorkflowConfigCallable() { - return stub.updateWorkflowConfigCallable(); + public final WriteFileResponse writeFile(WriteFileRequest request) { + return writeFileCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single WorkflowConfig. + * Writes to a file (inside a Workspace). * *

          Sample code: * @@ -5739,26 +6103,27 @@ public final WorkflowConfig updateWorkflowConfig(UpdateWorkflowConfigRequest req * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * WorkflowConfigName name = - * WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]"); - * dataformClient.deleteWorkflowConfig(name); + * WriteFileRequest request = + * WriteFileRequest.newBuilder() + * .setWorkspace( + * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + * .toString()) + * .setPath("path3433509") + * .setContents(ByteString.EMPTY) + * .build(); + * ApiFuture future = dataformClient.writeFileCallable().futureCall(request); + * // Do something. + * WriteFileResponse response = future.get(); * } * } - * - * @param name Required. The workflow config's name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteWorkflowConfig(WorkflowConfigName name) { - DeleteWorkflowConfigRequest request = - DeleteWorkflowConfigRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteWorkflowConfig(request); + public final UnaryCallable writeFileCallable() { + return stub.writeFileCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single WorkflowConfig. + * Lists ReleaseConfigs in a given Repository. * *

          Sample code: * @@ -5769,25 +6134,28 @@ public final void deleteWorkflowConfig(WorkflowConfigName name) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * String name = - * WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") - * .toString(); - * dataformClient.deleteWorkflowConfig(name); + * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + * for (ReleaseConfig element : dataformClient.listReleaseConfigs(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. The workflow config's name. + * @param parent Required. The repository in which to list release configs. Must be in the format + * `projects/*/locations/*/repositories/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteWorkflowConfig(String name) { - DeleteWorkflowConfigRequest request = - DeleteWorkflowConfigRequest.newBuilder().setName(name).build(); - deleteWorkflowConfig(request); + public final ListReleaseConfigsPagedResponse listReleaseConfigs(RepositoryName parent) { + ListReleaseConfigsRequest request = + ListReleaseConfigsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listReleaseConfigs(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single WorkflowConfig. + * Lists ReleaseConfigs in a given Repository. * *

          Sample code: * @@ -5798,27 +6166,26 @@ public final void deleteWorkflowConfig(String name) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * DeleteWorkflowConfigRequest request = - * DeleteWorkflowConfigRequest.newBuilder() - * .setName( - * WorkflowConfigName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") - * .toString()) - * .build(); - * dataformClient.deleteWorkflowConfig(request); + * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + * for (ReleaseConfig element : dataformClient.listReleaseConfigs(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The repository in which to list release configs. Must be in the format + * `projects/*/locations/*/repositories/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteWorkflowConfig(DeleteWorkflowConfigRequest request) { - deleteWorkflowConfigCallable().call(request); + public final ListReleaseConfigsPagedResponse listReleaseConfigs(String parent) { + ListReleaseConfigsRequest request = + ListReleaseConfigsRequest.newBuilder().setParent(parent).build(); + return listReleaseConfigs(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single WorkflowConfig. + * Lists ReleaseConfigs in a given Repository. * *

          Sample code: * @@ -5829,26 +6196,29 @@ public final void deleteWorkflowConfig(DeleteWorkflowConfigRequest request) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * DeleteWorkflowConfigRequest request = - * DeleteWorkflowConfigRequest.newBuilder() - * .setName( - * WorkflowConfigName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") - * .toString()) + * ListReleaseConfigsRequest request = + * ListReleaseConfigsRequest.newBuilder() + * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = dataformClient.deleteWorkflowConfigCallable().futureCall(request); - * // Do something. - * future.get(); + * for (ReleaseConfig element : dataformClient.listReleaseConfigs(request).iterateAll()) { + * // doThingsWith(element); + * } * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable deleteWorkflowConfigCallable() { - return stub.deleteWorkflowConfigCallable(); + public final ListReleaseConfigsPagedResponse listReleaseConfigs( + ListReleaseConfigsRequest request) { + return listReleaseConfigsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists WorkflowInvocations in a given Repository. + * Lists ReleaseConfigs in a given Repository. * *

          Sample code: * @@ -5859,29 +6229,29 @@ public final UnaryCallable deleteWorkflowCon * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - * for (WorkflowInvocation element : - * dataformClient.listWorkflowInvocations(parent).iterateAll()) { + * ListReleaseConfigsRequest request = + * ListReleaseConfigsRequest.newBuilder() + * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * ApiFuture future = + * dataformClient.listReleaseConfigsPagedCallable().futureCall(request); + * // Do something. + * for (ReleaseConfig element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } - * - * @param parent Required. The parent resource of the WorkflowInvocation type. Must be in the - * format `projects/*/locations/*/repositories/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkflowInvocationsPagedResponse listWorkflowInvocations(RepositoryName parent) { - ListWorkflowInvocationsRequest request = - ListWorkflowInvocationsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listWorkflowInvocations(request); + public final UnaryCallable + listReleaseConfigsPagedCallable() { + return stub.listReleaseConfigsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists WorkflowInvocations in a given Repository. + * Lists ReleaseConfigs in a given Repository. * *

          Sample code: * @@ -5892,120 +6262,16 @@ public final ListWorkflowInvocationsPagedResponse listWorkflowInvocations(Reposi * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); - * for (WorkflowInvocation element : - * dataformClient.listWorkflowInvocations(parent).iterateAll()) { - * // doThingsWith(element); - * } - * } - * } - * - * @param parent Required. The parent resource of the WorkflowInvocation type. Must be in the - * format `projects/*/locations/*/repositories/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListWorkflowInvocationsPagedResponse listWorkflowInvocations(String parent) { - ListWorkflowInvocationsRequest request = - ListWorkflowInvocationsRequest.newBuilder().setParent(parent).build(); - return listWorkflowInvocations(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists WorkflowInvocations in a given Repository. - * - *

          Sample code: - * - *

          {@code
          -   * // This snippet has been automatically generated and should be regarded as a code template only.
          -   * // It will require modifications to work:
          -   * // - It may require correct/in-range values for request initialization.
          -   * // - It may require specifying regional endpoints when creating the service client as shown in
          -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          -   * try (DataformClient dataformClient = DataformClient.create()) {
          -   *   ListWorkflowInvocationsRequest request =
          -   *       ListWorkflowInvocationsRequest.newBuilder()
          -   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
          -   *           .setPageSize(883849137)
          -   *           .setPageToken("pageToken873572522")
          -   *           .setOrderBy("orderBy-1207110587")
          -   *           .setFilter("filter-1274492040")
          -   *           .build();
          -   *   for (WorkflowInvocation element :
          -   *       dataformClient.listWorkflowInvocations(request).iterateAll()) {
          -   *     // doThingsWith(element);
          -   *   }
          -   * }
          -   * }
          - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListWorkflowInvocationsPagedResponse listWorkflowInvocations( - ListWorkflowInvocationsRequest request) { - return listWorkflowInvocationsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists WorkflowInvocations in a given Repository. - * - *

          Sample code: - * - *

          {@code
          -   * // This snippet has been automatically generated and should be regarded as a code template only.
          -   * // It will require modifications to work:
          -   * // - It may require correct/in-range values for request initialization.
          -   * // - It may require specifying regional endpoints when creating the service client as shown in
          -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          -   * try (DataformClient dataformClient = DataformClient.create()) {
          -   *   ListWorkflowInvocationsRequest request =
          -   *       ListWorkflowInvocationsRequest.newBuilder()
          -   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
          -   *           .setPageSize(883849137)
          -   *           .setPageToken("pageToken873572522")
          -   *           .setOrderBy("orderBy-1207110587")
          -   *           .setFilter("filter-1274492040")
          -   *           .build();
          -   *   ApiFuture future =
          -   *       dataformClient.listWorkflowInvocationsPagedCallable().futureCall(request);
          -   *   // Do something.
          -   *   for (WorkflowInvocation element : future.get().iterateAll()) {
          -   *     // doThingsWith(element);
          -   *   }
          -   * }
          -   * }
          - */ - public final UnaryCallable - listWorkflowInvocationsPagedCallable() { - return stub.listWorkflowInvocationsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists WorkflowInvocations in a given Repository. - * - *

          Sample code: - * - *

          {@code
          -   * // This snippet has been automatically generated and should be regarded as a code template only.
          -   * // It will require modifications to work:
          -   * // - It may require correct/in-range values for request initialization.
          -   * // - It may require specifying regional endpoints when creating the service client as shown in
          -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          -   * try (DataformClient dataformClient = DataformClient.create()) {
          -   *   ListWorkflowInvocationsRequest request =
          -   *       ListWorkflowInvocationsRequest.newBuilder()
          +   *   ListReleaseConfigsRequest request =
          +   *       ListReleaseConfigsRequest.newBuilder()
              *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
              *           .setPageSize(883849137)
              *           .setPageToken("pageToken873572522")
          -   *           .setOrderBy("orderBy-1207110587")
          -   *           .setFilter("filter-1274492040")
              *           .build();
              *   while (true) {
          -   *     ListWorkflowInvocationsResponse response =
          -   *         dataformClient.listWorkflowInvocationsCallable().call(request);
          -   *     for (WorkflowInvocation element : response.getWorkflowInvocationsList()) {
          +   *     ListReleaseConfigsResponse response =
          +   *         dataformClient.listReleaseConfigsCallable().call(request);
          +   *     for (ReleaseConfig element : response.getReleaseConfigsList()) {
              *       // doThingsWith(element);
              *     }
              *     String nextPageToken = response.getNextPageToken();
          @@ -6018,14 +6284,14 @@ public final ListWorkflowInvocationsPagedResponse listWorkflowInvocations(
              * }
              * }
          */ - public final UnaryCallable - listWorkflowInvocationsCallable() { - return stub.listWorkflowInvocationsCallable(); + public final UnaryCallable + listReleaseConfigsCallable() { + return stub.listReleaseConfigsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single WorkflowInvocation. + * Fetches a single ReleaseConfig. * *

          Sample code: * @@ -6036,27 +6302,24 @@ public final ListWorkflowInvocationsPagedResponse listWorkflowInvocations( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * WorkflowInvocationName name = - * WorkflowInvocationName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]"); - * WorkflowInvocation response = dataformClient.getWorkflowInvocation(name); + * ReleaseConfigName name = + * ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]"); + * ReleaseConfig response = dataformClient.getReleaseConfig(name); * } * } * - * @param name Required. The workflow invocation resource's name. + * @param name Required. The release config's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkflowInvocation getWorkflowInvocation(WorkflowInvocationName name) { - GetWorkflowInvocationRequest request = - GetWorkflowInvocationRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getWorkflowInvocation(request); + public final ReleaseConfig getReleaseConfig(ReleaseConfigName name) { + GetReleaseConfigRequest request = + GetReleaseConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getReleaseConfig(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single WorkflowInvocation. + * Fetches a single ReleaseConfig. * *

          Sample code: * @@ -6068,25 +6331,23 @@ public final WorkflowInvocation getWorkflowInvocation(WorkflowInvocationName nam * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { * String name = - * WorkflowInvocationName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") + * ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") * .toString(); - * WorkflowInvocation response = dataformClient.getWorkflowInvocation(name); + * ReleaseConfig response = dataformClient.getReleaseConfig(name); * } * } * - * @param name Required. The workflow invocation resource's name. + * @param name Required. The release config's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkflowInvocation getWorkflowInvocation(String name) { - GetWorkflowInvocationRequest request = - GetWorkflowInvocationRequest.newBuilder().setName(name).build(); - return getWorkflowInvocation(request); + public final ReleaseConfig getReleaseConfig(String name) { + GetReleaseConfigRequest request = GetReleaseConfigRequest.newBuilder().setName(name).build(); + return getReleaseConfig(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single WorkflowInvocation. + * Fetches a single ReleaseConfig. * *

          Sample code: * @@ -6097,27 +6358,27 @@ public final WorkflowInvocation getWorkflowInvocation(String name) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * GetWorkflowInvocationRequest request = - * GetWorkflowInvocationRequest.newBuilder() + * GetReleaseConfigRequest request = + * GetReleaseConfigRequest.newBuilder() * .setName( - * WorkflowInvocationName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") + * ReleaseConfigName.of( + * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") * .toString()) * .build(); - * WorkflowInvocation response = dataformClient.getWorkflowInvocation(request); + * ReleaseConfig response = dataformClient.getReleaseConfig(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkflowInvocation getWorkflowInvocation(GetWorkflowInvocationRequest request) { - return getWorkflowInvocationCallable().call(request); + public final ReleaseConfig getReleaseConfig(GetReleaseConfigRequest request) { + return getReleaseConfigCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches a single WorkflowInvocation. + * Fetches a single ReleaseConfig. * *

          Sample code: * @@ -6128,28 +6389,27 @@ public final WorkflowInvocation getWorkflowInvocation(GetWorkflowInvocationReque * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * GetWorkflowInvocationRequest request = - * GetWorkflowInvocationRequest.newBuilder() + * GetReleaseConfigRequest request = + * GetReleaseConfigRequest.newBuilder() * .setName( - * WorkflowInvocationName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") + * ReleaseConfigName.of( + * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") * .toString()) * .build(); - * ApiFuture future = - * dataformClient.getWorkflowInvocationCallable().futureCall(request); + * ApiFuture future = + * dataformClient.getReleaseConfigCallable().futureCall(request); * // Do something. - * WorkflowInvocation response = future.get(); + * ReleaseConfig response = future.get(); * } * } */ - public final UnaryCallable - getWorkflowInvocationCallable() { - return stub.getWorkflowInvocationCallable(); + public final UnaryCallable getReleaseConfigCallable() { + return stub.getReleaseConfigCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new WorkflowInvocation in a given Repository. + * Creates a new ReleaseConfig in a given Repository. * *

          Sample code: * @@ -6161,30 +6421,34 @@ public final WorkflowInvocation getWorkflowInvocation(GetWorkflowInvocationReque * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - * WorkflowInvocation workflowInvocation = WorkflowInvocation.newBuilder().build(); - * WorkflowInvocation response = - * dataformClient.createWorkflowInvocation(parent, workflowInvocation); + * ReleaseConfig releaseConfig = ReleaseConfig.newBuilder().build(); + * String releaseConfigId = "releaseConfigId1350457636"; + * ReleaseConfig response = + * dataformClient.createReleaseConfig(parent, releaseConfig, releaseConfigId); * } * } * - * @param parent Required. The repository in which to create the workflow invocation. Must be in - * the format `projects/*/locations/*/repositories/*`. - * @param workflowInvocation Required. The workflow invocation resource to create. + * @param parent Required. The repository in which to create the release config. Must be in the + * format `projects/*/locations/*/repositories/*`. + * @param releaseConfig Required. The release config to create. + * @param releaseConfigId Required. The ID to use for the release config, which will become the + * final component of the release config's resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkflowInvocation createWorkflowInvocation( - RepositoryName parent, WorkflowInvocation workflowInvocation) { - CreateWorkflowInvocationRequest request = - CreateWorkflowInvocationRequest.newBuilder() + public final ReleaseConfig createReleaseConfig( + RepositoryName parent, ReleaseConfig releaseConfig, String releaseConfigId) { + CreateReleaseConfigRequest request = + CreateReleaseConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) - .setWorkflowInvocation(workflowInvocation) + .setReleaseConfig(releaseConfig) + .setReleaseConfigId(releaseConfigId) .build(); - return createWorkflowInvocation(request); + return createReleaseConfig(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new WorkflowInvocation in a given Repository. + * Creates a new ReleaseConfig in a given Repository. * *

          Sample code: * @@ -6196,30 +6460,34 @@ public final WorkflowInvocation createWorkflowInvocation( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DataformClient dataformClient = DataformClient.create()) { * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); - * WorkflowInvocation workflowInvocation = WorkflowInvocation.newBuilder().build(); - * WorkflowInvocation response = - * dataformClient.createWorkflowInvocation(parent, workflowInvocation); + * ReleaseConfig releaseConfig = ReleaseConfig.newBuilder().build(); + * String releaseConfigId = "releaseConfigId1350457636"; + * ReleaseConfig response = + * dataformClient.createReleaseConfig(parent, releaseConfig, releaseConfigId); * } * } * - * @param parent Required. The repository in which to create the workflow invocation. Must be in - * the format `projects/*/locations/*/repositories/*`. - * @param workflowInvocation Required. The workflow invocation resource to create. + * @param parent Required. The repository in which to create the release config. Must be in the + * format `projects/*/locations/*/repositories/*`. + * @param releaseConfig Required. The release config to create. + * @param releaseConfigId Required. The ID to use for the release config, which will become the + * final component of the release config's resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkflowInvocation createWorkflowInvocation( - String parent, WorkflowInvocation workflowInvocation) { - CreateWorkflowInvocationRequest request = - CreateWorkflowInvocationRequest.newBuilder() + public final ReleaseConfig createReleaseConfig( + String parent, ReleaseConfig releaseConfig, String releaseConfigId) { + CreateReleaseConfigRequest request = + CreateReleaseConfigRequest.newBuilder() .setParent(parent) - .setWorkflowInvocation(workflowInvocation) + .setReleaseConfig(releaseConfig) + .setReleaseConfigId(releaseConfigId) .build(); - return createWorkflowInvocation(request); + return createReleaseConfig(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new WorkflowInvocation in a given Repository. + * Creates a new ReleaseConfig in a given Repository. * *

          Sample code: * @@ -6230,26 +6498,26 @@ public final WorkflowInvocation createWorkflowInvocation( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * CreateWorkflowInvocationRequest request = - * CreateWorkflowInvocationRequest.newBuilder() + * CreateReleaseConfigRequest request = + * CreateReleaseConfigRequest.newBuilder() * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setWorkflowInvocation(WorkflowInvocation.newBuilder().build()) + * .setReleaseConfig(ReleaseConfig.newBuilder().build()) + * .setReleaseConfigId("releaseConfigId1350457636") * .build(); - * WorkflowInvocation response = dataformClient.createWorkflowInvocation(request); + * ReleaseConfig response = dataformClient.createReleaseConfig(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkflowInvocation createWorkflowInvocation( - CreateWorkflowInvocationRequest request) { - return createWorkflowInvocationCallable().call(request); + public final ReleaseConfig createReleaseConfig(CreateReleaseConfigRequest request) { + return createReleaseConfigCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new WorkflowInvocation in a given Repository. + * Creates a new ReleaseConfig in a given Repository. * *

          Sample code: * @@ -6260,26 +6528,32 @@ public final WorkflowInvocation createWorkflowInvocation( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * CreateWorkflowInvocationRequest request = - * CreateWorkflowInvocationRequest.newBuilder() + * CreateReleaseConfigRequest request = + * CreateReleaseConfigRequest.newBuilder() * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setWorkflowInvocation(WorkflowInvocation.newBuilder().build()) + * .setReleaseConfig(ReleaseConfig.newBuilder().build()) + * .setReleaseConfigId("releaseConfigId1350457636") * .build(); - * ApiFuture future = - * dataformClient.createWorkflowInvocationCallable().futureCall(request); + * ApiFuture future = + * dataformClient.createReleaseConfigCallable().futureCall(request); * // Do something. - * WorkflowInvocation response = future.get(); + * ReleaseConfig response = future.get(); * } * } */ - public final UnaryCallable - createWorkflowInvocationCallable() { - return stub.createWorkflowInvocationCallable(); + public final UnaryCallable + createReleaseConfigCallable() { + return stub.createReleaseConfigCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single WorkflowInvocation. + * Updates a single ReleaseConfig. + * + *

          **Note:** *This method does not fully implement + * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad + * request, and when the `field_mask` is omitted, the request is treated as a full update on all + * modifiable fields.* * *

          Sample code: * @@ -6290,27 +6564,35 @@ public final WorkflowInvocation createWorkflowInvocation( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * WorkflowInvocationName name = - * WorkflowInvocationName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]"); - * dataformClient.deleteWorkflowInvocation(name); + * ReleaseConfig releaseConfig = ReleaseConfig.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * ReleaseConfig response = dataformClient.updateReleaseConfig(releaseConfig, updateMask); * } * } * - * @param name Required. The workflow invocation resource's name. + * @param releaseConfig Required. The release config to update. + * @param updateMask Optional. Specifies the fields to be updated in the release config. If left + * unset, all fields will be updated. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteWorkflowInvocation(WorkflowInvocationName name) { - DeleteWorkflowInvocationRequest request = - DeleteWorkflowInvocationRequest.newBuilder() - .setName(name == null ? null : name.toString()) + public final ReleaseConfig updateReleaseConfig( + ReleaseConfig releaseConfig, FieldMask updateMask) { + UpdateReleaseConfigRequest request = + UpdateReleaseConfigRequest.newBuilder() + .setReleaseConfig(releaseConfig) + .setUpdateMask(updateMask) .build(); - deleteWorkflowInvocation(request); + return updateReleaseConfig(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single WorkflowInvocation. + * Updates a single ReleaseConfig. + * + *

          **Note:** *This method does not fully implement + * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad + * request, and when the `field_mask` is omitted, the request is treated as a full update on all + * modifiable fields.* * *

          Sample code: * @@ -6321,26 +6603,30 @@ public final void deleteWorkflowInvocation(WorkflowInvocationName name) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * String name = - * WorkflowInvocationName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") - * .toString(); - * dataformClient.deleteWorkflowInvocation(name); + * UpdateReleaseConfigRequest request = + * UpdateReleaseConfigRequest.newBuilder() + * .setUpdateMask(FieldMask.newBuilder().build()) + * .setReleaseConfig(ReleaseConfig.newBuilder().build()) + * .build(); + * ReleaseConfig response = dataformClient.updateReleaseConfig(request); * } * } * - * @param name Required. The workflow invocation resource's name. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteWorkflowInvocation(String name) { - DeleteWorkflowInvocationRequest request = - DeleteWorkflowInvocationRequest.newBuilder().setName(name).build(); - deleteWorkflowInvocation(request); + public final ReleaseConfig updateReleaseConfig(UpdateReleaseConfigRequest request) { + return updateReleaseConfigCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single WorkflowInvocation. + * Updates a single ReleaseConfig. + * + *

          **Note:** *This method does not fully implement + * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad + * request, and when the `field_mask` is omitted, the request is treated as a full update on all + * modifiable fields.* * *

          Sample code: * @@ -6351,27 +6637,56 @@ public final void deleteWorkflowInvocation(String name) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * DeleteWorkflowInvocationRequest request = - * DeleteWorkflowInvocationRequest.newBuilder() - * .setName( - * WorkflowInvocationName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") - * .toString()) + * UpdateReleaseConfigRequest request = + * UpdateReleaseConfigRequest.newBuilder() + * .setUpdateMask(FieldMask.newBuilder().build()) + * .setReleaseConfig(ReleaseConfig.newBuilder().build()) * .build(); - * dataformClient.deleteWorkflowInvocation(request); + * ApiFuture future = + * dataformClient.updateReleaseConfigCallable().futureCall(request); + * // Do something. + * ReleaseConfig response = future.get(); * } * } + */ + public final UnaryCallable + updateReleaseConfigCallable() { + return stub.updateReleaseConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single ReleaseConfig. * - * @param request The request object containing all of the parameters for the API call. + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   ReleaseConfigName name =
          +   *       ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]");
          +   *   dataformClient.deleteReleaseConfig(name);
          +   * }
          +   * }
          + * + * @param name Required. The release config's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteWorkflowInvocation(DeleteWorkflowInvocationRequest request) { - deleteWorkflowInvocationCallable().call(request); + public final void deleteReleaseConfig(ReleaseConfigName name) { + DeleteReleaseConfigRequest request = + DeleteReleaseConfigRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteReleaseConfig(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single WorkflowInvocation. + * Deletes a single ReleaseConfig. * *

          Sample code: * @@ -6382,28 +6697,25 @@ public final void deleteWorkflowInvocation(DeleteWorkflowInvocationRequest reque * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * DeleteWorkflowInvocationRequest request = - * DeleteWorkflowInvocationRequest.newBuilder() - * .setName( - * WorkflowInvocationName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") - * .toString()) - * .build(); - * ApiFuture future = - * dataformClient.deleteWorkflowInvocationCallable().futureCall(request); - * // Do something. - * future.get(); + * String name = + * ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") + * .toString(); + * dataformClient.deleteReleaseConfig(name); * } * } + * + * @param name Required. The release config's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - deleteWorkflowInvocationCallable() { - return stub.deleteWorkflowInvocationCallable(); + public final void deleteReleaseConfig(String name) { + DeleteReleaseConfigRequest request = + DeleteReleaseConfigRequest.newBuilder().setName(name).build(); + deleteReleaseConfig(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Requests cancellation of a running WorkflowInvocation. + * Deletes a single ReleaseConfig. * *

          Sample code: * @@ -6414,28 +6726,27 @@ public final void deleteWorkflowInvocation(DeleteWorkflowInvocationRequest reque * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * CancelWorkflowInvocationRequest request = - * CancelWorkflowInvocationRequest.newBuilder() + * DeleteReleaseConfigRequest request = + * DeleteReleaseConfigRequest.newBuilder() * .setName( - * WorkflowInvocationName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") + * ReleaseConfigName.of( + * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") * .toString()) * .build(); - * CancelWorkflowInvocationResponse response = dataformClient.cancelWorkflowInvocation(request); + * dataformClient.deleteReleaseConfig(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CancelWorkflowInvocationResponse cancelWorkflowInvocation( - CancelWorkflowInvocationRequest request) { - return cancelWorkflowInvocationCallable().call(request); + public final void deleteReleaseConfig(DeleteReleaseConfigRequest request) { + deleteReleaseConfigCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Requests cancellation of a running WorkflowInvocation. + * Deletes a single ReleaseConfig. * *

          Sample code: * @@ -6446,28 +6757,26 @@ public final CancelWorkflowInvocationResponse cancelWorkflowInvocation( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * CancelWorkflowInvocationRequest request = - * CancelWorkflowInvocationRequest.newBuilder() + * DeleteReleaseConfigRequest request = + * DeleteReleaseConfigRequest.newBuilder() * .setName( - * WorkflowInvocationName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") + * ReleaseConfigName.of( + * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]") * .toString()) * .build(); - * ApiFuture future = - * dataformClient.cancelWorkflowInvocationCallable().futureCall(request); + * ApiFuture future = dataformClient.deleteReleaseConfigCallable().futureCall(request); * // Do something. - * CancelWorkflowInvocationResponse response = future.get(); + * future.get(); * } * } */ - public final UnaryCallable - cancelWorkflowInvocationCallable() { - return stub.cancelWorkflowInvocationCallable(); + public final UnaryCallable deleteReleaseConfigCallable() { + return stub.deleteReleaseConfigCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns WorkflowInvocationActions in a given WorkflowInvocation. + * Lists CompilationResults in a given Repository. * *

          Sample code: * @@ -6478,33 +6787,28 @@ public final CancelWorkflowInvocationResponse cancelWorkflowInvocation( * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * QueryWorkflowInvocationActionsRequest request = - * QueryWorkflowInvocationActionsRequest.newBuilder() - * .setName( - * WorkflowInvocationName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") - * .toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * for (WorkflowInvocationAction element : - * dataformClient.queryWorkflowInvocationActions(request).iterateAll()) { + * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + * for (CompilationResult element : dataformClient.listCompilationResults(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The repository in which to list compilation results. Must be in the + * format `projects/*/locations/*/repositories/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final QueryWorkflowInvocationActionsPagedResponse queryWorkflowInvocationActions( - QueryWorkflowInvocationActionsRequest request) { - return queryWorkflowInvocationActionsPagedCallable().call(request); + public final ListCompilationResultsPagedResponse listCompilationResults(RepositoryName parent) { + ListCompilationResultsRequest request = + ListCompilationResultsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listCompilationResults(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns WorkflowInvocationActions in a given WorkflowInvocation. + * Lists CompilationResults in a given Repository. * *

          Sample code: * @@ -6515,33 +6819,26 @@ public final QueryWorkflowInvocationActionsPagedResponse queryWorkflowInvocation * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * QueryWorkflowInvocationActionsRequest request = - * QueryWorkflowInvocationActionsRequest.newBuilder() - * .setName( - * WorkflowInvocationName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") - * .toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * ApiFuture future = - * dataformClient.queryWorkflowInvocationActionsPagedCallable().futureCall(request); - * // Do something. - * for (WorkflowInvocationAction element : future.get().iterateAll()) { + * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + * for (CompilationResult element : dataformClient.listCompilationResults(parent).iterateAll()) { * // doThingsWith(element); * } * } * } + * + * @param parent Required. The repository in which to list compilation results. Must be in the + * format `projects/*/locations/*/repositories/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable< - QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsPagedResponse> - queryWorkflowInvocationActionsPagedCallable() { - return stub.queryWorkflowInvocationActionsPagedCallable(); + public final ListCompilationResultsPagedResponse listCompilationResults(String parent) { + ListCompilationResultsRequest request = + ListCompilationResultsRequest.newBuilder().setParent(parent).build(); + return listCompilationResults(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns WorkflowInvocationActions in a given WorkflowInvocation. + * Lists CompilationResults in a given Repository. * *

          Sample code: * @@ -6552,19 +6849,89 @@ public final QueryWorkflowInvocationActionsPagedResponse queryWorkflowInvocation * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * QueryWorkflowInvocationActionsRequest request = - * QueryWorkflowInvocationActionsRequest.newBuilder() - * .setName( - * WorkflowInvocationName.of( - * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]") - * .toString()) + * ListCompilationResultsRequest request = + * ListCompilationResultsRequest.newBuilder() + * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") + * .build(); + * for (CompilationResult element : + * dataformClient.listCompilationResults(request).iterateAll()) { + * // doThingsWith(element); + * } + * } + * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCompilationResultsPagedResponse listCompilationResults( + ListCompilationResultsRequest request) { + return listCompilationResultsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CompilationResults in a given Repository. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   ListCompilationResultsRequest request =
          +   *       ListCompilationResultsRequest.newBuilder()
          +   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .setFilter("filter-1274492040")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       dataformClient.listCompilationResultsPagedCallable().futureCall(request);
          +   *   // Do something.
          +   *   for (CompilationResult element : future.get().iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable + listCompilationResultsPagedCallable() { + return stub.listCompilationResultsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CompilationResults in a given Repository. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   ListCompilationResultsRequest request =
          +   *       ListCompilationResultsRequest.newBuilder()
          +   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
              *           .setPageSize(883849137)
              *           .setPageToken("pageToken873572522")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .setFilter("filter-1274492040")
              *           .build();
              *   while (true) {
          -   *     QueryWorkflowInvocationActionsResponse response =
          -   *         dataformClient.queryWorkflowInvocationActionsCallable().call(request);
          -   *     for (WorkflowInvocationAction element : response.getWorkflowInvocationActionsList()) {
          +   *     ListCompilationResultsResponse response =
          +   *         dataformClient.listCompilationResultsCallable().call(request);
          +   *     for (CompilationResult element : response.getCompilationResultsList()) {
              *       // doThingsWith(element);
              *     }
              *     String nextPageToken = response.getNextPageToken();
          @@ -6577,15 +6944,14 @@ public final QueryWorkflowInvocationActionsPagedResponse queryWorkflowInvocation
              * }
              * }
          */ - public final UnaryCallable< - QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsResponse> - queryWorkflowInvocationActionsCallable() { - return stub.queryWorkflowInvocationActionsCallable(); + public final UnaryCallable + listCompilationResultsCallable() { + return stub.listCompilationResultsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get default config for a given project and location. + * Fetches a single CompilationResult. * *

          Sample code: * @@ -6596,23 +6962,27 @@ public final QueryWorkflowInvocationActionsPagedResponse queryWorkflowInvocation * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * ConfigName name = ConfigName.of("[PROJECT]", "[LOCATION]"); - * Config response = dataformClient.getConfig(name); + * CompilationResultName name = + * CompilationResultName.of( + * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]"); + * CompilationResult response = dataformClient.getCompilationResult(name); * } * } * - * @param name Required. The config name. + * @param name Required. The compilation result's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Config getConfig(ConfigName name) { - GetConfigRequest request = - GetConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getConfig(request); + public final CompilationResult getCompilationResult(CompilationResultName name) { + GetCompilationResultRequest request = + GetCompilationResultRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getCompilationResult(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get default config for a given project and location. + * Fetches a single CompilationResult. * *

          Sample code: * @@ -6623,22 +6993,26 @@ public final Config getConfig(ConfigName name) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * String name = ConfigName.of("[PROJECT]", "[LOCATION]").toString(); - * Config response = dataformClient.getConfig(name); + * String name = + * CompilationResultName.of( + * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + * .toString(); + * CompilationResult response = dataformClient.getCompilationResult(name); * } * } * - * @param name Required. The config name. + * @param name Required. The compilation result's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Config getConfig(String name) { - GetConfigRequest request = GetConfigRequest.newBuilder().setName(name).build(); - return getConfig(request); + public final CompilationResult getCompilationResult(String name) { + GetCompilationResultRequest request = + GetCompilationResultRequest.newBuilder().setName(name).build(); + return getCompilationResult(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get default config for a given project and location. + * Fetches a single CompilationResult. * *

          Sample code: * @@ -6649,24 +7023,27 @@ public final Config getConfig(String name) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * GetConfigRequest request = - * GetConfigRequest.newBuilder() - * .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) + * GetCompilationResultRequest request = + * GetCompilationResultRequest.newBuilder() + * .setName( + * CompilationResultName.of( + * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + * .toString()) * .build(); - * Config response = dataformClient.getConfig(request); + * CompilationResult response = dataformClient.getCompilationResult(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Config getConfig(GetConfigRequest request) { - return getConfigCallable().call(request); + public final CompilationResult getCompilationResult(GetCompilationResultRequest request) { + return getCompilationResultCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get default config for a given project and location. + * Fetches a single CompilationResult. * *

          Sample code: * @@ -6677,28 +7054,28 @@ public final Config getConfig(GetConfigRequest request) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * GetConfigRequest request = - * GetConfigRequest.newBuilder() - * .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) + * GetCompilationResultRequest request = + * GetCompilationResultRequest.newBuilder() + * .setName( + * CompilationResultName.of( + * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + * .toString()) * .build(); - * ApiFuture future = dataformClient.getConfigCallable().futureCall(request); + * ApiFuture future = + * dataformClient.getCompilationResultCallable().futureCall(request); * // Do something. - * Config response = future.get(); + * CompilationResult response = future.get(); * } * } */ - public final UnaryCallable getConfigCallable() { - return stub.getConfigCallable(); + public final UnaryCallable + getCompilationResultCallable() { + return stub.getCompilationResultCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Update default config for a given project and location. - * - *

          **Note:** *This method does not fully implement - * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad - * request, and when the `field_mask` is omitted, the request is treated as a full update on all - * modifiable fields.* + * Creates a new CompilationResult in a given project and location. * *

          Sample code: * @@ -6709,30 +7086,31 @@ public final UnaryCallable getConfigCallable() { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * Config config = Config.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * Config response = dataformClient.updateConfig(config, updateMask); + * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + * CompilationResult compilationResult = CompilationResult.newBuilder().build(); + * CompilationResult response = + * dataformClient.createCompilationResult(parent, compilationResult); * } * } * - * @param config Required. The config to update. - * @param updateMask Optional. Specifies the fields to be updated in the config. + * @param parent Required. The repository in which to create the compilation result. Must be in + * the format `projects/*/locations/*/repositories/*`. + * @param compilationResult Required. The compilation result to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Config updateConfig(Config config, FieldMask updateMask) { - UpdateConfigRequest request = - UpdateConfigRequest.newBuilder().setConfig(config).setUpdateMask(updateMask).build(); - return updateConfig(request); + public final CompilationResult createCompilationResult( + RepositoryName parent, CompilationResult compilationResult) { + CreateCompilationResultRequest request = + CreateCompilationResultRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setCompilationResult(compilationResult) + .build(); + return createCompilationResult(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Update default config for a given project and location. - * - *

          **Note:** *This method does not fully implement - * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad - * request, and when the `field_mask` is omitted, the request is treated as a full update on all - * modifiable fields.* + * Creates a new CompilationResult in a given project and location. * *

          Sample code: * @@ -6743,30 +7121,31 @@ public final Config updateConfig(Config config, FieldMask updateMask) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * UpdateConfigRequest request = - * UpdateConfigRequest.newBuilder() - * .setConfig(Config.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) - * .build(); - * Config response = dataformClient.updateConfig(request); + * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + * CompilationResult compilationResult = CompilationResult.newBuilder().build(); + * CompilationResult response = + * dataformClient.createCompilationResult(parent, compilationResult); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The repository in which to create the compilation result. Must be in + * the format `projects/*/locations/*/repositories/*`. + * @param compilationResult Required. The compilation result to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Config updateConfig(UpdateConfigRequest request) { - return updateConfigCallable().call(request); + public final CompilationResult createCompilationResult( + String parent, CompilationResult compilationResult) { + CreateCompilationResultRequest request = + CreateCompilationResultRequest.newBuilder() + .setParent(parent) + .setCompilationResult(compilationResult) + .build(); + return createCompilationResult(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Update default config for a given project and location. - * - *

          **Note:** *This method does not fully implement - * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad - * request, and when the `field_mask` is omitted, the request is treated as a full update on all - * modifiable fields.* + * Creates a new CompilationResult in a given project and location. * *

          Sample code: * @@ -6777,24 +7156,25 @@ public final Config updateConfig(UpdateConfigRequest request) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * UpdateConfigRequest request = - * UpdateConfigRequest.newBuilder() - * .setConfig(Config.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) + * CreateCompilationResultRequest request = + * CreateCompilationResultRequest.newBuilder() + * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setCompilationResult(CompilationResult.newBuilder().build()) * .build(); - * ApiFuture future = dataformClient.updateConfigCallable().futureCall(request); - * // Do something. - * Config response = future.get(); + * CompilationResult response = dataformClient.createCompilationResult(request); * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable updateConfigCallable() { - return stub.updateConfigCallable(); + public final CompilationResult createCompilationResult(CreateCompilationResultRequest request) { + return createCompilationResultCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Creates a new CompilationResult in a given project and location. * *

          Sample code: * @@ -6805,14 +7185,48 @@ public final UnaryCallable updateConfigCallable() { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") + * CreateCompilationResultRequest request = + * CreateCompilationResultRequest.newBuilder() + * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setCompilationResult(CompilationResult.newBuilder().build()) + * .build(); + * ApiFuture future = + * dataformClient.createCompilationResultCallable().futureCall(request); + * // Do something. + * CompilationResult response = future.get(); + * } + * } + */ + public final UnaryCallable + createCompilationResultCallable() { + return stub.createCompilationResultCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns CompilationResultActions in a given CompilationResult. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   QueryCompilationResultActionsRequest request =
          +   *       QueryCompilationResultActionsRequest.newBuilder()
          +   *           .setName(
          +   *               CompilationResultName.of(
          +   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]")
          +   *                   .toString())
              *           .setPageSize(883849137)
              *           .setPageToken("pageToken873572522")
          +   *           .setFilter("filter-1274492040")
              *           .build();
          -   *   for (Location element : dataformClient.listLocations(request).iterateAll()) {
          +   *   for (CompilationResultAction element :
          +   *       dataformClient.queryCompilationResultActions(request).iterateAll()) {
              *     // doThingsWith(element);
              *   }
              * }
          @@ -6821,13 +7235,14 @@ public final UnaryCallable updateConfigCallable() {
              * @param request The request object containing all of the parameters for the API call.
              * @throws com.google.api.gax.rpc.ApiException if the remote call fails
              */
          -  public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) {
          -    return listLocationsPagedCallable().call(request);
          +  public final QueryCompilationResultActionsPagedResponse queryCompilationResultActions(
          +      QueryCompilationResultActionsRequest request) {
          +    return queryCompilationResultActionsPagedCallable().call(request);
             }
           
             // AUTO-GENERATED DOCUMENTATION AND METHOD.
             /**
          -   * Lists information about the supported locations for this service.
          +   * Returns CompilationResultActions in a given CompilationResult.
              *
              * 

          Sample code: * @@ -6838,29 +7253,34 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") + * QueryCompilationResultActionsRequest request = + * QueryCompilationResultActionsRequest.newBuilder() + * .setName( + * CompilationResultName.of( + * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + * .toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = dataformClient.listLocationsPagedCallable().futureCall(request); + * ApiFuture future = + * dataformClient.queryCompilationResultActionsPagedCallable().futureCall(request); * // Do something. - * for (Location element : future.get().iterateAll()) { + * for (CompilationResultAction element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * }

          */ - public final UnaryCallable - listLocationsPagedCallable() { - return stub.listLocationsPagedCallable(); + public final UnaryCallable< + QueryCompilationResultActionsRequest, QueryCompilationResultActionsPagedResponse> + queryCompilationResultActionsPagedCallable() { + return stub.queryCompilationResultActionsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Returns CompilationResultActions in a given CompilationResult. * *

          Sample code: * @@ -6871,16 +7291,20 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") + * QueryCompilationResultActionsRequest request = + * QueryCompilationResultActionsRequest.newBuilder() + * .setName( + * CompilationResultName.of( + * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + * .toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") * .build(); * while (true) { - * ListLocationsResponse response = dataformClient.listLocationsCallable().call(request); - * for (Location element : response.getLocationsList()) { + * QueryCompilationResultActionsResponse response = + * dataformClient.queryCompilationResultActionsCallable().call(request); + * for (CompilationResultAction element : response.getCompilationResultActionsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -6893,13 +7317,15 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * } * } */ - public final UnaryCallable listLocationsCallable() { - return stub.listLocationsCallable(); + public final UnaryCallable< + QueryCompilationResultActionsRequest, QueryCompilationResultActionsResponse> + queryCompilationResultActionsCallable() { + return stub.queryCompilationResultActionsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about a location. + * Lists WorkflowConfigs in a given Repository. * *

          Sample code: * @@ -6910,21 +7336,28 @@ public final UnaryCallable listLoca * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - * Location response = dataformClient.getLocation(request); + * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + * for (WorkflowConfig element : dataformClient.listWorkflowConfigs(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The repository in which to list workflow configs. Must be in the format + * `projects/*/locations/*/repositories/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Location getLocation(GetLocationRequest request) { - return getLocationCallable().call(request); + public final ListWorkflowConfigsPagedResponse listWorkflowConfigs(RepositoryName parent) { + ListWorkflowConfigsRequest request = + ListWorkflowConfigsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listWorkflowConfigs(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about a location. + * Lists WorkflowConfigs in a given Repository. * *

          Sample code: * @@ -6935,22 +7368,26 @@ public final Location getLocation(GetLocationRequest request) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - * ApiFuture future = dataformClient.getLocationCallable().futureCall(request); - * // Do something. - * Location response = future.get(); + * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + * for (WorkflowConfig element : dataformClient.listWorkflowConfigs(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } + * + * @param parent Required. The repository in which to list workflow configs. Must be in the format + * `projects/*/locations/*/repositories/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable getLocationCallable() { - return stub.getLocationCallable(); + public final ListWorkflowConfigsPagedResponse listWorkflowConfigs(String parent) { + ListWorkflowConfigsRequest request = + ListWorkflowConfigsRequest.newBuilder().setParent(parent).build(); + return listWorkflowConfigs(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Sets the access control policy on the specified resource. Replacesany existing policy. - * - *

          Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * Lists WorkflowConfigs in a given Repository. * *

          Sample code: * @@ -6961,28 +7398,29 @@ public final UnaryCallable getLocationCallable() { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * SetIamPolicyRequest request = - * SetIamPolicyRequest.newBuilder() - * .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setPolicy(Policy.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) + * ListWorkflowConfigsRequest request = + * ListWorkflowConfigsRequest.newBuilder() + * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * Policy response = dataformClient.setIamPolicy(request); + * for (WorkflowConfig element : dataformClient.listWorkflowConfigs(request).iterateAll()) { + * // doThingsWith(element); + * } * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(SetIamPolicyRequest request) { - return setIamPolicyCallable().call(request); + public final ListWorkflowConfigsPagedResponse listWorkflowConfigs( + ListWorkflowConfigsRequest request) { + return listWorkflowConfigsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Sets the access control policy on the specified resource. Replacesany existing policy. - * - *

          Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * Lists WorkflowConfigs in a given Repository. * *

          Sample code: * @@ -6993,26 +7431,29 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * SetIamPolicyRequest request = - * SetIamPolicyRequest.newBuilder() - * .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setPolicy(Policy.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) + * ListWorkflowConfigsRequest request = + * ListWorkflowConfigsRequest.newBuilder() + * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = dataformClient.setIamPolicyCallable().futureCall(request); + * ApiFuture future = + * dataformClient.listWorkflowConfigsPagedCallable().futureCall(request); * // Do something. - * Policy response = future.get(); + * for (WorkflowConfig element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } */ - public final UnaryCallable setIamPolicyCallable() { - return stub.setIamPolicyCallable(); + public final UnaryCallable + listWorkflowConfigsPagedCallable() { + return stub.listWorkflowConfigsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the access control policy for a resource. Returns an empty policyif the resource exists - * and does not have a policy set. + * Lists WorkflowConfigs in a given Repository. * *

          Sample code: * @@ -7023,26 +7464,36 @@ public final UnaryCallable setIamPolicyCallable() { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * GetIamPolicyRequest request = - * GetIamPolicyRequest.newBuilder() - * .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setOptions(GetPolicyOptions.newBuilder().build()) + * ListWorkflowConfigsRequest request = + * ListWorkflowConfigsRequest.newBuilder() + * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * Policy response = dataformClient.getIamPolicy(request); + * while (true) { + * ListWorkflowConfigsResponse response = + * dataformClient.listWorkflowConfigsCallable().call(request); + * for (WorkflowConfig element : response.getWorkflowConfigsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(GetIamPolicyRequest request) { - return getIamPolicyCallable().call(request); + public final UnaryCallable + listWorkflowConfigsCallable() { + return stub.listWorkflowConfigsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the access control policy for a resource. Returns an empty policyif the resource exists - * and does not have a policy set. + * Fetches a single WorkflowConfig. * *

          Sample code: * @@ -7053,29 +7504,26 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * GetIamPolicyRequest request = - * GetIamPolicyRequest.newBuilder() - * .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .setOptions(GetPolicyOptions.newBuilder().build()) - * .build(); - * ApiFuture future = dataformClient.getIamPolicyCallable().futureCall(request); - * // Do something. - * Policy response = future.get(); + * WorkflowConfigName name = + * WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]"); + * WorkflowConfig response = dataformClient.getWorkflowConfig(name); * } * } + * + * @param name Required. The workflow config's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable getIamPolicyCallable() { - return stub.getIamPolicyCallable(); + public final WorkflowConfig getWorkflowConfig(WorkflowConfigName name) { + GetWorkflowConfigRequest request = + GetWorkflowConfigRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getWorkflowConfig(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns permissions that a caller has on the specified resource. If theresource does not exist, - * this will return an empty set ofpermissions, not a `NOT_FOUND` error. - * - *

          Note: This operation is designed to be used for buildingpermission-aware UIs and - * command-line tools, not for authorizationchecking. This operation may "fail open" without - * warning. + * Fetches a single WorkflowConfig. * *

          Sample code: * @@ -7086,30 +7534,1622 @@ public final UnaryCallable getIamPolicyCallable() { * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * TestIamPermissionsRequest request = - * TestIamPermissionsRequest.newBuilder() - * .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - * .addAllPermissions(new ArrayList()) - * .build(); - * TestIamPermissionsResponse response = dataformClient.testIamPermissions(request); + * String name = + * WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]") + * .toString(); + * WorkflowConfig response = dataformClient.getWorkflowConfig(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The workflow config's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { - return testIamPermissionsCallable().call(request); + public final WorkflowConfig getWorkflowConfig(String name) { + GetWorkflowConfigRequest request = GetWorkflowConfigRequest.newBuilder().setName(name).build(); + return getWorkflowConfig(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns permissions that a caller has on the specified resource. If theresource does not exist, - * this will return an empty set ofpermissions, not a `NOT_FOUND` error. - * - *

          Note: This operation is designed to be used for buildingpermission-aware UIs and - * command-line tools, not for authorizationchecking. This operation may "fail open" without - * warning. + * Fetches a single WorkflowConfig. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   GetWorkflowConfigRequest request =
          +   *       GetWorkflowConfigRequest.newBuilder()
          +   *           .setName(
          +   *               WorkflowConfigName.of(
          +   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]")
          +   *                   .toString())
          +   *           .build();
          +   *   WorkflowConfig response = dataformClient.getWorkflowConfig(request);
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowConfig getWorkflowConfig(GetWorkflowConfigRequest request) { + return getWorkflowConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a single WorkflowConfig. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   GetWorkflowConfigRequest request =
          +   *       GetWorkflowConfigRequest.newBuilder()
          +   *           .setName(
          +   *               WorkflowConfigName.of(
          +   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]")
          +   *                   .toString())
          +   *           .build();
          +   *   ApiFuture future =
          +   *       dataformClient.getWorkflowConfigCallable().futureCall(request);
          +   *   // Do something.
          +   *   WorkflowConfig response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable getWorkflowConfigCallable() { + return stub.getWorkflowConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new WorkflowConfig in a given Repository. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
          +   *   WorkflowConfig workflowConfig = WorkflowConfig.newBuilder().build();
          +   *   String workflowConfigId = "workflowConfigId-1331048228";
          +   *   WorkflowConfig response =
          +   *       dataformClient.createWorkflowConfig(parent, workflowConfig, workflowConfigId);
          +   * }
          +   * }
          + * + * @param parent Required. The repository in which to create the workflow config. Must be in the + * format `projects/*/locations/*/repositories/*`. + * @param workflowConfig Required. The workflow config to create. + * @param workflowConfigId Required. The ID to use for the workflow config, which will become the + * final component of the workflow config's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowConfig createWorkflowConfig( + RepositoryName parent, WorkflowConfig workflowConfig, String workflowConfigId) { + CreateWorkflowConfigRequest request = + CreateWorkflowConfigRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setWorkflowConfig(workflowConfig) + .setWorkflowConfigId(workflowConfigId) + .build(); + return createWorkflowConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new WorkflowConfig in a given Repository. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString();
          +   *   WorkflowConfig workflowConfig = WorkflowConfig.newBuilder().build();
          +   *   String workflowConfigId = "workflowConfigId-1331048228";
          +   *   WorkflowConfig response =
          +   *       dataformClient.createWorkflowConfig(parent, workflowConfig, workflowConfigId);
          +   * }
          +   * }
          + * + * @param parent Required. The repository in which to create the workflow config. Must be in the + * format `projects/*/locations/*/repositories/*`. + * @param workflowConfig Required. The workflow config to create. + * @param workflowConfigId Required. The ID to use for the workflow config, which will become the + * final component of the workflow config's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowConfig createWorkflowConfig( + String parent, WorkflowConfig workflowConfig, String workflowConfigId) { + CreateWorkflowConfigRequest request = + CreateWorkflowConfigRequest.newBuilder() + .setParent(parent) + .setWorkflowConfig(workflowConfig) + .setWorkflowConfigId(workflowConfigId) + .build(); + return createWorkflowConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new WorkflowConfig in a given Repository. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   CreateWorkflowConfigRequest request =
          +   *       CreateWorkflowConfigRequest.newBuilder()
          +   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
          +   *           .setWorkflowConfig(WorkflowConfig.newBuilder().build())
          +   *           .setWorkflowConfigId("workflowConfigId-1331048228")
          +   *           .build();
          +   *   WorkflowConfig response = dataformClient.createWorkflowConfig(request);
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowConfig createWorkflowConfig(CreateWorkflowConfigRequest request) { + return createWorkflowConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new WorkflowConfig in a given Repository. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   CreateWorkflowConfigRequest request =
          +   *       CreateWorkflowConfigRequest.newBuilder()
          +   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
          +   *           .setWorkflowConfig(WorkflowConfig.newBuilder().build())
          +   *           .setWorkflowConfigId("workflowConfigId-1331048228")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       dataformClient.createWorkflowConfigCallable().futureCall(request);
          +   *   // Do something.
          +   *   WorkflowConfig response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable + createWorkflowConfigCallable() { + return stub.createWorkflowConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a single WorkflowConfig. + * + *

          **Note:** *This method does not fully implement + * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad + * request, and when the `field_mask` is omitted, the request is treated as a full update on all + * modifiable fields.* + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   WorkflowConfig workflowConfig = WorkflowConfig.newBuilder().build();
          +   *   FieldMask updateMask = FieldMask.newBuilder().build();
          +   *   WorkflowConfig response = dataformClient.updateWorkflowConfig(workflowConfig, updateMask);
          +   * }
          +   * }
          + * + * @param workflowConfig Required. The workflow config to update. + * @param updateMask Optional. Specifies the fields to be updated in the workflow config. If left + * unset, all fields will be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowConfig updateWorkflowConfig( + WorkflowConfig workflowConfig, FieldMask updateMask) { + UpdateWorkflowConfigRequest request = + UpdateWorkflowConfigRequest.newBuilder() + .setWorkflowConfig(workflowConfig) + .setUpdateMask(updateMask) + .build(); + return updateWorkflowConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a single WorkflowConfig. + * + *

          **Note:** *This method does not fully implement + * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad + * request, and when the `field_mask` is omitted, the request is treated as a full update on all + * modifiable fields.* + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   UpdateWorkflowConfigRequest request =
          +   *       UpdateWorkflowConfigRequest.newBuilder()
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .setWorkflowConfig(WorkflowConfig.newBuilder().build())
          +   *           .build();
          +   *   WorkflowConfig response = dataformClient.updateWorkflowConfig(request);
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowConfig updateWorkflowConfig(UpdateWorkflowConfigRequest request) { + return updateWorkflowConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a single WorkflowConfig. + * + *

          **Note:** *This method does not fully implement + * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad + * request, and when the `field_mask` is omitted, the request is treated as a full update on all + * modifiable fields.* + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   UpdateWorkflowConfigRequest request =
          +   *       UpdateWorkflowConfigRequest.newBuilder()
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .setWorkflowConfig(WorkflowConfig.newBuilder().build())
          +   *           .build();
          +   *   ApiFuture future =
          +   *       dataformClient.updateWorkflowConfigCallable().futureCall(request);
          +   *   // Do something.
          +   *   WorkflowConfig response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable + updateWorkflowConfigCallable() { + return stub.updateWorkflowConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single WorkflowConfig. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   WorkflowConfigName name =
          +   *       WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]");
          +   *   dataformClient.deleteWorkflowConfig(name);
          +   * }
          +   * }
          + * + * @param name Required. The workflow config's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteWorkflowConfig(WorkflowConfigName name) { + DeleteWorkflowConfigRequest request = + DeleteWorkflowConfigRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteWorkflowConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single WorkflowConfig. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   String name =
          +   *       WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]")
          +   *           .toString();
          +   *   dataformClient.deleteWorkflowConfig(name);
          +   * }
          +   * }
          + * + * @param name Required. The workflow config's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteWorkflowConfig(String name) { + DeleteWorkflowConfigRequest request = + DeleteWorkflowConfigRequest.newBuilder().setName(name).build(); + deleteWorkflowConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single WorkflowConfig. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   DeleteWorkflowConfigRequest request =
          +   *       DeleteWorkflowConfigRequest.newBuilder()
          +   *           .setName(
          +   *               WorkflowConfigName.of(
          +   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]")
          +   *                   .toString())
          +   *           .build();
          +   *   dataformClient.deleteWorkflowConfig(request);
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteWorkflowConfig(DeleteWorkflowConfigRequest request) { + deleteWorkflowConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single WorkflowConfig. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   DeleteWorkflowConfigRequest request =
          +   *       DeleteWorkflowConfigRequest.newBuilder()
          +   *           .setName(
          +   *               WorkflowConfigName.of(
          +   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]")
          +   *                   .toString())
          +   *           .build();
          +   *   ApiFuture future = dataformClient.deleteWorkflowConfigCallable().futureCall(request);
          +   *   // Do something.
          +   *   future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable deleteWorkflowConfigCallable() { + return stub.deleteWorkflowConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists WorkflowInvocations in a given Repository. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
          +   *   for (WorkflowInvocation element :
          +   *       dataformClient.listWorkflowInvocations(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. The parent resource of the WorkflowInvocation type. Must be in the + * format `projects/*/locations/*/repositories/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListWorkflowInvocationsPagedResponse listWorkflowInvocations(RepositoryName parent) { + ListWorkflowInvocationsRequest request = + ListWorkflowInvocationsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listWorkflowInvocations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists WorkflowInvocations in a given Repository. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString();
          +   *   for (WorkflowInvocation element :
          +   *       dataformClient.listWorkflowInvocations(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. The parent resource of the WorkflowInvocation type. Must be in the + * format `projects/*/locations/*/repositories/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListWorkflowInvocationsPagedResponse listWorkflowInvocations(String parent) { + ListWorkflowInvocationsRequest request = + ListWorkflowInvocationsRequest.newBuilder().setParent(parent).build(); + return listWorkflowInvocations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists WorkflowInvocations in a given Repository. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   ListWorkflowInvocationsRequest request =
          +   *       ListWorkflowInvocationsRequest.newBuilder()
          +   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .setFilter("filter-1274492040")
          +   *           .build();
          +   *   for (WorkflowInvocation element :
          +   *       dataformClient.listWorkflowInvocations(request).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListWorkflowInvocationsPagedResponse listWorkflowInvocations( + ListWorkflowInvocationsRequest request) { + return listWorkflowInvocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists WorkflowInvocations in a given Repository. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   ListWorkflowInvocationsRequest request =
          +   *       ListWorkflowInvocationsRequest.newBuilder()
          +   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .setFilter("filter-1274492040")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       dataformClient.listWorkflowInvocationsPagedCallable().futureCall(request);
          +   *   // Do something.
          +   *   for (WorkflowInvocation element : future.get().iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable + listWorkflowInvocationsPagedCallable() { + return stub.listWorkflowInvocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists WorkflowInvocations in a given Repository. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   ListWorkflowInvocationsRequest request =
          +   *       ListWorkflowInvocationsRequest.newBuilder()
          +   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .setFilter("filter-1274492040")
          +   *           .build();
          +   *   while (true) {
          +   *     ListWorkflowInvocationsResponse response =
          +   *         dataformClient.listWorkflowInvocationsCallable().call(request);
          +   *     for (WorkflowInvocation element : response.getWorkflowInvocationsList()) {
          +   *       // doThingsWith(element);
          +   *     }
          +   *     String nextPageToken = response.getNextPageToken();
          +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
          +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
          +   *     } else {
          +   *       break;
          +   *     }
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable + listWorkflowInvocationsCallable() { + return stub.listWorkflowInvocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a single WorkflowInvocation. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   WorkflowInvocationName name =
          +   *       WorkflowInvocationName.of(
          +   *           "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]");
          +   *   WorkflowInvocation response = dataformClient.getWorkflowInvocation(name);
          +   * }
          +   * }
          + * + * @param name Required. The workflow invocation resource's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowInvocation getWorkflowInvocation(WorkflowInvocationName name) { + GetWorkflowInvocationRequest request = + GetWorkflowInvocationRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getWorkflowInvocation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a single WorkflowInvocation. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   String name =
          +   *       WorkflowInvocationName.of(
          +   *               "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]")
          +   *           .toString();
          +   *   WorkflowInvocation response = dataformClient.getWorkflowInvocation(name);
          +   * }
          +   * }
          + * + * @param name Required. The workflow invocation resource's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowInvocation getWorkflowInvocation(String name) { + GetWorkflowInvocationRequest request = + GetWorkflowInvocationRequest.newBuilder().setName(name).build(); + return getWorkflowInvocation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a single WorkflowInvocation. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   GetWorkflowInvocationRequest request =
          +   *       GetWorkflowInvocationRequest.newBuilder()
          +   *           .setName(
          +   *               WorkflowInvocationName.of(
          +   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]")
          +   *                   .toString())
          +   *           .build();
          +   *   WorkflowInvocation response = dataformClient.getWorkflowInvocation(request);
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowInvocation getWorkflowInvocation(GetWorkflowInvocationRequest request) { + return getWorkflowInvocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a single WorkflowInvocation. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   GetWorkflowInvocationRequest request =
          +   *       GetWorkflowInvocationRequest.newBuilder()
          +   *           .setName(
          +   *               WorkflowInvocationName.of(
          +   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]")
          +   *                   .toString())
          +   *           .build();
          +   *   ApiFuture future =
          +   *       dataformClient.getWorkflowInvocationCallable().futureCall(request);
          +   *   // Do something.
          +   *   WorkflowInvocation response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable + getWorkflowInvocationCallable() { + return stub.getWorkflowInvocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new WorkflowInvocation in a given Repository. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
          +   *   WorkflowInvocation workflowInvocation = WorkflowInvocation.newBuilder().build();
          +   *   WorkflowInvocation response =
          +   *       dataformClient.createWorkflowInvocation(parent, workflowInvocation);
          +   * }
          +   * }
          + * + * @param parent Required. The repository in which to create the workflow invocation. Must be in + * the format `projects/*/locations/*/repositories/*`. + * @param workflowInvocation Required. The workflow invocation resource to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowInvocation createWorkflowInvocation( + RepositoryName parent, WorkflowInvocation workflowInvocation) { + CreateWorkflowInvocationRequest request = + CreateWorkflowInvocationRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setWorkflowInvocation(workflowInvocation) + .build(); + return createWorkflowInvocation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new WorkflowInvocation in a given Repository. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString();
          +   *   WorkflowInvocation workflowInvocation = WorkflowInvocation.newBuilder().build();
          +   *   WorkflowInvocation response =
          +   *       dataformClient.createWorkflowInvocation(parent, workflowInvocation);
          +   * }
          +   * }
          + * + * @param parent Required. The repository in which to create the workflow invocation. Must be in + * the format `projects/*/locations/*/repositories/*`. + * @param workflowInvocation Required. The workflow invocation resource to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowInvocation createWorkflowInvocation( + String parent, WorkflowInvocation workflowInvocation) { + CreateWorkflowInvocationRequest request = + CreateWorkflowInvocationRequest.newBuilder() + .setParent(parent) + .setWorkflowInvocation(workflowInvocation) + .build(); + return createWorkflowInvocation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new WorkflowInvocation in a given Repository. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   CreateWorkflowInvocationRequest request =
          +   *       CreateWorkflowInvocationRequest.newBuilder()
          +   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
          +   *           .setWorkflowInvocation(WorkflowInvocation.newBuilder().build())
          +   *           .build();
          +   *   WorkflowInvocation response = dataformClient.createWorkflowInvocation(request);
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowInvocation createWorkflowInvocation( + CreateWorkflowInvocationRequest request) { + return createWorkflowInvocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new WorkflowInvocation in a given Repository. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   CreateWorkflowInvocationRequest request =
          +   *       CreateWorkflowInvocationRequest.newBuilder()
          +   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
          +   *           .setWorkflowInvocation(WorkflowInvocation.newBuilder().build())
          +   *           .build();
          +   *   ApiFuture future =
          +   *       dataformClient.createWorkflowInvocationCallable().futureCall(request);
          +   *   // Do something.
          +   *   WorkflowInvocation response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable + createWorkflowInvocationCallable() { + return stub.createWorkflowInvocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single WorkflowInvocation. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   WorkflowInvocationName name =
          +   *       WorkflowInvocationName.of(
          +   *           "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]");
          +   *   dataformClient.deleteWorkflowInvocation(name);
          +   * }
          +   * }
          + * + * @param name Required. The workflow invocation resource's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteWorkflowInvocation(WorkflowInvocationName name) { + DeleteWorkflowInvocationRequest request = + DeleteWorkflowInvocationRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteWorkflowInvocation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single WorkflowInvocation. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   String name =
          +   *       WorkflowInvocationName.of(
          +   *               "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]")
          +   *           .toString();
          +   *   dataformClient.deleteWorkflowInvocation(name);
          +   * }
          +   * }
          + * + * @param name Required. The workflow invocation resource's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteWorkflowInvocation(String name) { + DeleteWorkflowInvocationRequest request = + DeleteWorkflowInvocationRequest.newBuilder().setName(name).build(); + deleteWorkflowInvocation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single WorkflowInvocation. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   DeleteWorkflowInvocationRequest request =
          +   *       DeleteWorkflowInvocationRequest.newBuilder()
          +   *           .setName(
          +   *               WorkflowInvocationName.of(
          +   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]")
          +   *                   .toString())
          +   *           .build();
          +   *   dataformClient.deleteWorkflowInvocation(request);
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteWorkflowInvocation(DeleteWorkflowInvocationRequest request) { + deleteWorkflowInvocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single WorkflowInvocation. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   DeleteWorkflowInvocationRequest request =
          +   *       DeleteWorkflowInvocationRequest.newBuilder()
          +   *           .setName(
          +   *               WorkflowInvocationName.of(
          +   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]")
          +   *                   .toString())
          +   *           .build();
          +   *   ApiFuture future =
          +   *       dataformClient.deleteWorkflowInvocationCallable().futureCall(request);
          +   *   // Do something.
          +   *   future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable + deleteWorkflowInvocationCallable() { + return stub.deleteWorkflowInvocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Requests cancellation of a running WorkflowInvocation. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   CancelWorkflowInvocationRequest request =
          +   *       CancelWorkflowInvocationRequest.newBuilder()
          +   *           .setName(
          +   *               WorkflowInvocationName.of(
          +   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]")
          +   *                   .toString())
          +   *           .build();
          +   *   CancelWorkflowInvocationResponse response = dataformClient.cancelWorkflowInvocation(request);
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CancelWorkflowInvocationResponse cancelWorkflowInvocation( + CancelWorkflowInvocationRequest request) { + return cancelWorkflowInvocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Requests cancellation of a running WorkflowInvocation. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   CancelWorkflowInvocationRequest request =
          +   *       CancelWorkflowInvocationRequest.newBuilder()
          +   *           .setName(
          +   *               WorkflowInvocationName.of(
          +   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]")
          +   *                   .toString())
          +   *           .build();
          +   *   ApiFuture future =
          +   *       dataformClient.cancelWorkflowInvocationCallable().futureCall(request);
          +   *   // Do something.
          +   *   CancelWorkflowInvocationResponse response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable + cancelWorkflowInvocationCallable() { + return stub.cancelWorkflowInvocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns WorkflowInvocationActions in a given WorkflowInvocation. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   QueryWorkflowInvocationActionsRequest request =
          +   *       QueryWorkflowInvocationActionsRequest.newBuilder()
          +   *           .setName(
          +   *               WorkflowInvocationName.of(
          +   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]")
          +   *                   .toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .build();
          +   *   for (WorkflowInvocationAction element :
          +   *       dataformClient.queryWorkflowInvocationActions(request).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final QueryWorkflowInvocationActionsPagedResponse queryWorkflowInvocationActions( + QueryWorkflowInvocationActionsRequest request) { + return queryWorkflowInvocationActionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns WorkflowInvocationActions in a given WorkflowInvocation. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   QueryWorkflowInvocationActionsRequest request =
          +   *       QueryWorkflowInvocationActionsRequest.newBuilder()
          +   *           .setName(
          +   *               WorkflowInvocationName.of(
          +   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]")
          +   *                   .toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       dataformClient.queryWorkflowInvocationActionsPagedCallable().futureCall(request);
          +   *   // Do something.
          +   *   for (WorkflowInvocationAction element : future.get().iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable< + QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsPagedResponse> + queryWorkflowInvocationActionsPagedCallable() { + return stub.queryWorkflowInvocationActionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns WorkflowInvocationActions in a given WorkflowInvocation. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   QueryWorkflowInvocationActionsRequest request =
          +   *       QueryWorkflowInvocationActionsRequest.newBuilder()
          +   *           .setName(
          +   *               WorkflowInvocationName.of(
          +   *                       "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_INVOCATION]")
          +   *                   .toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .build();
          +   *   while (true) {
          +   *     QueryWorkflowInvocationActionsResponse response =
          +   *         dataformClient.queryWorkflowInvocationActionsCallable().call(request);
          +   *     for (WorkflowInvocationAction element : response.getWorkflowInvocationActionsList()) {
          +   *       // doThingsWith(element);
          +   *     }
          +   *     String nextPageToken = response.getNextPageToken();
          +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
          +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
          +   *     } else {
          +   *       break;
          +   *     }
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable< + QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsResponse> + queryWorkflowInvocationActionsCallable() { + return stub.queryWorkflowInvocationActionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get default config for a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   ConfigName name = ConfigName.of("[PROJECT]", "[LOCATION]");
          +   *   Config response = dataformClient.getConfig(name);
          +   * }
          +   * }
          + * + * @param name Required. The config name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Config getConfig(ConfigName name) { + GetConfigRequest request = + GetConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get default config for a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   String name = ConfigName.of("[PROJECT]", "[LOCATION]").toString();
          +   *   Config response = dataformClient.getConfig(name);
          +   * }
          +   * }
          + * + * @param name Required. The config name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Config getConfig(String name) { + GetConfigRequest request = GetConfigRequest.newBuilder().setName(name).build(); + return getConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get default config for a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   GetConfigRequest request =
          +   *       GetConfigRequest.newBuilder()
          +   *           .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .build();
          +   *   Config response = dataformClient.getConfig(request);
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Config getConfig(GetConfigRequest request) { + return getConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get default config for a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   GetConfigRequest request =
          +   *       GetConfigRequest.newBuilder()
          +   *           .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .build();
          +   *   ApiFuture future = dataformClient.getConfigCallable().futureCall(request);
          +   *   // Do something.
          +   *   Config response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable getConfigCallable() { + return stub.getConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update default config for a given project and location. + * + *

          **Note:** *This method does not fully implement + * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad + * request, and when the `field_mask` is omitted, the request is treated as a full update on all + * modifiable fields.* + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   Config config = Config.newBuilder().build();
          +   *   FieldMask updateMask = FieldMask.newBuilder().build();
          +   *   Config response = dataformClient.updateConfig(config, updateMask);
          +   * }
          +   * }
          + * + * @param config Required. The config to update. + * @param updateMask Optional. Specifies the fields to be updated in the config. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Config updateConfig(Config config, FieldMask updateMask) { + UpdateConfigRequest request = + UpdateConfigRequest.newBuilder().setConfig(config).setUpdateMask(updateMask).build(); + return updateConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update default config for a given project and location. + * + *

          **Note:** *This method does not fully implement + * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad + * request, and when the `field_mask` is omitted, the request is treated as a full update on all + * modifiable fields.* + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   UpdateConfigRequest request =
          +   *       UpdateConfigRequest.newBuilder()
          +   *           .setConfig(Config.newBuilder().build())
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .build();
          +   *   Config response = dataformClient.updateConfig(request);
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Config updateConfig(UpdateConfigRequest request) { + return updateConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update default config for a given project and location. + * + *

          **Note:** *This method does not fully implement + * [AIP/134](https://google.aip.dev/134). The wildcard entry (\\\\*) is treated as a bad + * request, and when the `field_mask` is omitted, the request is treated as a full update on all + * modifiable fields.* + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   UpdateConfigRequest request =
          +   *       UpdateConfigRequest.newBuilder()
          +   *           .setConfig(Config.newBuilder().build())
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .build();
          +   *   ApiFuture future = dataformClient.updateConfigCallable().futureCall(request);
          +   *   // Do something.
          +   *   Config response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable updateConfigCallable() { + return stub.updateConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   ResourceName resource = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]");
          +   *   Policy response = dataformClient.getIamPolicy(resource);
          +   * }
          +   * }
          + * + * @param resource REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(ResourceName resource) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(resource == null ? null : resource.toString()) + .build(); + return getIamPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   String resource =
          +   *       CompilationResultName.of(
          +   *               "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]")
          +   *           .toString();
          +   *   Policy response = dataformClient.getIamPolicy(resource);
          +   * }
          +   * }
          + * + * @param resource REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(String resource) { + GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); + return getIamPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   GetIamPolicyRequest request =
          +   *       GetIamPolicyRequest.newBuilder()
          +   *           .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString())
          +   *           .setOptions(GetPolicyOptions.newBuilder().build())
          +   *           .build();
          +   *   Policy response = dataformClient.getIamPolicy(request);
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   GetIamPolicyRequest request =
          +   *       GetIamPolicyRequest.newBuilder()
          +   *           .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString())
          +   *           .setOptions(GetPolicyOptions.newBuilder().build())
          +   *           .build();
          +   *   ApiFuture future = dataformClient.getIamPolicyCallable().futureCall(request);
          +   *   // Do something.
          +   *   Policy response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + *

          Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   SetIamPolicyRequest request =
          +   *       SetIamPolicyRequest.newBuilder()
          +   *           .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString())
          +   *           .setPolicy(Policy.newBuilder().build())
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .build();
          +   *   Policy response = dataformClient.setIamPolicy(request);
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + *

          Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   SetIamPolicyRequest request =
          +   *       SetIamPolicyRequest.newBuilder()
          +   *           .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString())
          +   *           .setPolicy(Policy.newBuilder().build())
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .build();
          +   *   ApiFuture future = dataformClient.setIamPolicyCallable().futureCall(request);
          +   *   // Do something.
          +   *   Policy response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If the resource does not + * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. + * + *

          Note: This operation is designed to be used for building permission-aware UIs and + * command-line tools, not for authorization checking. This operation may "fail open" without + * warning. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   TestIamPermissionsRequest request =
          +   *       TestIamPermissionsRequest.newBuilder()
          +   *           .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString())
          +   *           .addAllPermissions(new ArrayList())
          +   *           .build();
          +   *   TestIamPermissionsResponse response = dataformClient.testIamPermissions(request);
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If the resource does not + * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. + * + *

          Note: This operation is designed to be used for building permission-aware UIs and + * command-line tools, not for authorization checking. This operation may "fail open" without + * warning. * *

          Sample code: * @@ -7122,19 +9162,191 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq * try (DataformClient dataformClient = DataformClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() - * .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + * .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) * .addAllPermissions(new ArrayList()) * .build(); - * ApiFuture future = - * dataformClient.testIamPermissionsCallable().futureCall(request); + * ApiFuture future = + * dataformClient.testIamPermissionsCallable().futureCall(request); + * // Do something. + * TestIamPermissionsResponse response = future.get(); + * } + * } + */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

          * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   ListLocationsRequest request =
          +   *       ListLocationsRequest.newBuilder()
          +   *           .setName("name3373707")
          +   *           .setFilter("filter-1274492040")
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .build();
          +   *   for (Location element : dataformClient.listLocations(request).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

          * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   ListLocationsRequest request =
          +   *       ListLocationsRequest.newBuilder()
          +   *           .setName("name3373707")
          +   *           .setFilter("filter-1274492040")
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .build();
          +   *   ApiFuture future = dataformClient.listLocationsPagedCallable().futureCall(request);
          +   *   // Do something.
          +   *   for (Location element : future.get().iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

          * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   ListLocationsRequest request =
          +   *       ListLocationsRequest.newBuilder()
          +   *           .setName("name3373707")
          +   *           .setFilter("filter-1274492040")
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .build();
          +   *   while (true) {
          +   *     ListLocationsResponse response = dataformClient.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;
          +   *     }
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
          +   *   Location response = dataformClient.getLocation(request);
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (DataformClient dataformClient = DataformClient.create()) {
          +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
          +   *   ApiFuture future = dataformClient.getLocationCallable().futureCall(request);
              *   // Do something.
          -   *   TestIamPermissionsResponse response = future.get();
          +   *   Location response = future.get();
              * }
              * }
          */ - public final UnaryCallable - testIamPermissionsCallable() { - return stub.testIamPermissionsCallable(); + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); } @Override @@ -7167,6 +9379,390 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted return stub.awaitTermination(duration, unit); } + public static class QueryTeamFolderContentsPagedResponse + extends AbstractPagedListResponse< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsResponse.TeamFolderContentsEntry, + QueryTeamFolderContentsPage, + QueryTeamFolderContentsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsResponse.TeamFolderContentsEntry> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + QueryTeamFolderContentsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new QueryTeamFolderContentsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private QueryTeamFolderContentsPagedResponse(QueryTeamFolderContentsPage page) { + super(page, QueryTeamFolderContentsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class QueryTeamFolderContentsPage + extends AbstractPage< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsResponse.TeamFolderContentsEntry, + QueryTeamFolderContentsPage> { + + private QueryTeamFolderContentsPage( + PageContext< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsResponse.TeamFolderContentsEntry> + context, + QueryTeamFolderContentsResponse response) { + super(context, response); + } + + private static QueryTeamFolderContentsPage createEmptyPage() { + return new QueryTeamFolderContentsPage(null, null); + } + + @Override + protected QueryTeamFolderContentsPage createPage( + PageContext< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsResponse.TeamFolderContentsEntry> + context, + QueryTeamFolderContentsResponse response) { + return new QueryTeamFolderContentsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsResponse.TeamFolderContentsEntry> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class QueryTeamFolderContentsFixedSizeCollection + extends AbstractFixedSizeCollection< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsResponse.TeamFolderContentsEntry, + QueryTeamFolderContentsPage, + QueryTeamFolderContentsFixedSizeCollection> { + + private QueryTeamFolderContentsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static QueryTeamFolderContentsFixedSizeCollection createEmptyCollection() { + return new QueryTeamFolderContentsFixedSizeCollection(null, 0); + } + + @Override + protected QueryTeamFolderContentsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new QueryTeamFolderContentsFixedSizeCollection(pages, collectionSize); + } + } + + public static class SearchTeamFoldersPagedResponse + extends AbstractPagedListResponse< + SearchTeamFoldersRequest, + SearchTeamFoldersResponse, + SearchTeamFoldersResponse.TeamFolderSearchResult, + SearchTeamFoldersPage, + SearchTeamFoldersFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + SearchTeamFoldersRequest, + SearchTeamFoldersResponse, + SearchTeamFoldersResponse.TeamFolderSearchResult> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + SearchTeamFoldersPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new SearchTeamFoldersPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private SearchTeamFoldersPagedResponse(SearchTeamFoldersPage page) { + super(page, SearchTeamFoldersFixedSizeCollection.createEmptyCollection()); + } + } + + public static class SearchTeamFoldersPage + extends AbstractPage< + SearchTeamFoldersRequest, + SearchTeamFoldersResponse, + SearchTeamFoldersResponse.TeamFolderSearchResult, + SearchTeamFoldersPage> { + + private SearchTeamFoldersPage( + PageContext< + SearchTeamFoldersRequest, + SearchTeamFoldersResponse, + SearchTeamFoldersResponse.TeamFolderSearchResult> + context, + SearchTeamFoldersResponse response) { + super(context, response); + } + + private static SearchTeamFoldersPage createEmptyPage() { + return new SearchTeamFoldersPage(null, null); + } + + @Override + protected SearchTeamFoldersPage createPage( + PageContext< + SearchTeamFoldersRequest, + SearchTeamFoldersResponse, + SearchTeamFoldersResponse.TeamFolderSearchResult> + context, + SearchTeamFoldersResponse response) { + return new SearchTeamFoldersPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + SearchTeamFoldersRequest, + SearchTeamFoldersResponse, + SearchTeamFoldersResponse.TeamFolderSearchResult> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class SearchTeamFoldersFixedSizeCollection + extends AbstractFixedSizeCollection< + SearchTeamFoldersRequest, + SearchTeamFoldersResponse, + SearchTeamFoldersResponse.TeamFolderSearchResult, + SearchTeamFoldersPage, + SearchTeamFoldersFixedSizeCollection> { + + private SearchTeamFoldersFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static SearchTeamFoldersFixedSizeCollection createEmptyCollection() { + return new SearchTeamFoldersFixedSizeCollection(null, 0); + } + + @Override + protected SearchTeamFoldersFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new SearchTeamFoldersFixedSizeCollection(pages, collectionSize); + } + } + + public static class QueryFolderContentsPagedResponse + extends AbstractPagedListResponse< + QueryFolderContentsRequest, + QueryFolderContentsResponse, + QueryFolderContentsResponse.FolderContentsEntry, + QueryFolderContentsPage, + QueryFolderContentsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + QueryFolderContentsRequest, + QueryFolderContentsResponse, + QueryFolderContentsResponse.FolderContentsEntry> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + QueryFolderContentsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new QueryFolderContentsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private QueryFolderContentsPagedResponse(QueryFolderContentsPage page) { + super(page, QueryFolderContentsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class QueryFolderContentsPage + extends AbstractPage< + QueryFolderContentsRequest, + QueryFolderContentsResponse, + QueryFolderContentsResponse.FolderContentsEntry, + QueryFolderContentsPage> { + + private QueryFolderContentsPage( + PageContext< + QueryFolderContentsRequest, + QueryFolderContentsResponse, + QueryFolderContentsResponse.FolderContentsEntry> + context, + QueryFolderContentsResponse response) { + super(context, response); + } + + private static QueryFolderContentsPage createEmptyPage() { + return new QueryFolderContentsPage(null, null); + } + + @Override + protected QueryFolderContentsPage createPage( + PageContext< + QueryFolderContentsRequest, + QueryFolderContentsResponse, + QueryFolderContentsResponse.FolderContentsEntry> + context, + QueryFolderContentsResponse response) { + return new QueryFolderContentsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + QueryFolderContentsRequest, + QueryFolderContentsResponse, + QueryFolderContentsResponse.FolderContentsEntry> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class QueryFolderContentsFixedSizeCollection + extends AbstractFixedSizeCollection< + QueryFolderContentsRequest, + QueryFolderContentsResponse, + QueryFolderContentsResponse.FolderContentsEntry, + QueryFolderContentsPage, + QueryFolderContentsFixedSizeCollection> { + + private QueryFolderContentsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static QueryFolderContentsFixedSizeCollection createEmptyCollection() { + return new QueryFolderContentsFixedSizeCollection(null, 0); + } + + @Override + protected QueryFolderContentsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new QueryFolderContentsFixedSizeCollection(pages, collectionSize); + } + } + + public static class QueryUserRootContentsPagedResponse + extends AbstractPagedListResponse< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsResponse.RootContentsEntry, + QueryUserRootContentsPage, + QueryUserRootContentsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsResponse.RootContentsEntry> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + QueryUserRootContentsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new QueryUserRootContentsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private QueryUserRootContentsPagedResponse(QueryUserRootContentsPage page) { + super(page, QueryUserRootContentsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class QueryUserRootContentsPage + extends AbstractPage< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsResponse.RootContentsEntry, + QueryUserRootContentsPage> { + + private QueryUserRootContentsPage( + PageContext< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsResponse.RootContentsEntry> + context, + QueryUserRootContentsResponse response) { + super(context, response); + } + + private static QueryUserRootContentsPage createEmptyPage() { + return new QueryUserRootContentsPage(null, null); + } + + @Override + protected QueryUserRootContentsPage createPage( + PageContext< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsResponse.RootContentsEntry> + context, + QueryUserRootContentsResponse response) { + return new QueryUserRootContentsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsResponse.RootContentsEntry> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class QueryUserRootContentsFixedSizeCollection + extends AbstractFixedSizeCollection< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsResponse.RootContentsEntry, + QueryUserRootContentsPage, + QueryUserRootContentsFixedSizeCollection> { + + private QueryUserRootContentsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static QueryUserRootContentsFixedSizeCollection createEmptyCollection() { + return new QueryUserRootContentsFixedSizeCollection(null, 0); + } + + @Override + protected QueryUserRootContentsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new QueryUserRootContentsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListRepositoriesPagedResponse extends AbstractPagedListResponse< ListRepositoriesRequest, diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformSettings.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformSettings.java index c1be0a4e163c..f69efdb5594d 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformSettings.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformSettings.java @@ -26,9 +26,13 @@ import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkspacesPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryCompilationResultActionsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryFolderContentsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryRepositoryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryTeamFolderContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryUserRootContentsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryWorkflowInvocationActionsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.SearchFilesPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.SearchTeamFoldersPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; @@ -39,6 +43,7 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -52,6 +57,7 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; @@ -74,7 +80,7 @@ * *

          For example, to set the * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) - * of getRepository: + * of getTeamFolder: * *

          {@code
            * // This snippet has been automatically generated and should be regarded as a code template only.
          @@ -84,10 +90,10 @@
            * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            * DataformSettings.Builder dataformSettingsBuilder = DataformSettings.newBuilder();
            * dataformSettingsBuilder
          - *     .getRepositorySettings()
          + *     .getTeamFolderSettings()
            *     .setRetrySettings(
            *         dataformSettingsBuilder
          - *             .getRepositorySettings()
          + *             .getTeamFolderSettings()
            *             .getRetrySettings()
            *             .toBuilder()
            *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
          @@ -105,11 +111,119 @@
            * Please refer to the [Client Side Retry
            * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
            * retries.
          + *
          + * 

          To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for moveFolder: + * + *

          {@code
          + * // This snippet has been automatically generated and should be regarded as a code template only.
          + * // It will require modifications to work:
          + * // - It may require correct/in-range values for request initialization.
          + * // - It may require specifying regional endpoints when creating the service client as shown in
          + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          + * DataformSettings.Builder dataformSettingsBuilder = DataformSettings.newBuilder();
          + * TimedRetryAlgorithm timedRetryAlgorithm =
          + *     OperationalTimedPollAlgorithm.create(
          + *         RetrySettings.newBuilder()
          + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
          + *             .setRetryDelayMultiplier(1.5)
          + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
          + *             .setTotalTimeoutDuration(Duration.ofHours(24))
          + *             .build());
          + * dataformSettingsBuilder
          + *     .createClusterOperationSettings()
          + *     .setPollingAlgorithm(timedRetryAlgorithm)
          + *     .build();
          + * }
          */ @BetaApi @Generated("by gapic-generator-java") public class DataformSettings extends ClientSettings { + /** Returns the object with the settings used for calls to getTeamFolder. */ + public UnaryCallSettings getTeamFolderSettings() { + return ((DataformStubSettings) getStubSettings()).getTeamFolderSettings(); + } + + /** Returns the object with the settings used for calls to createTeamFolder. */ + public UnaryCallSettings createTeamFolderSettings() { + return ((DataformStubSettings) getStubSettings()).createTeamFolderSettings(); + } + + /** Returns the object with the settings used for calls to updateTeamFolder. */ + public UnaryCallSettings updateTeamFolderSettings() { + return ((DataformStubSettings) getStubSettings()).updateTeamFolderSettings(); + } + + /** Returns the object with the settings used for calls to deleteTeamFolder. */ + public UnaryCallSettings deleteTeamFolderSettings() { + return ((DataformStubSettings) getStubSettings()).deleteTeamFolderSettings(); + } + + /** Returns the object with the settings used for calls to queryTeamFolderContents. */ + public PagedCallSettings< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsPagedResponse> + queryTeamFolderContentsSettings() { + return ((DataformStubSettings) getStubSettings()).queryTeamFolderContentsSettings(); + } + + /** Returns the object with the settings used for calls to searchTeamFolders. */ + public PagedCallSettings< + SearchTeamFoldersRequest, SearchTeamFoldersResponse, SearchTeamFoldersPagedResponse> + searchTeamFoldersSettings() { + return ((DataformStubSettings) getStubSettings()).searchTeamFoldersSettings(); + } + + /** Returns the object with the settings used for calls to getFolder. */ + public UnaryCallSettings getFolderSettings() { + return ((DataformStubSettings) getStubSettings()).getFolderSettings(); + } + + /** Returns the object with the settings used for calls to createFolder. */ + public UnaryCallSettings createFolderSettings() { + return ((DataformStubSettings) getStubSettings()).createFolderSettings(); + } + + /** Returns the object with the settings used for calls to updateFolder. */ + public UnaryCallSettings updateFolderSettings() { + return ((DataformStubSettings) getStubSettings()).updateFolderSettings(); + } + + /** Returns the object with the settings used for calls to deleteFolder. */ + public UnaryCallSettings deleteFolderSettings() { + return ((DataformStubSettings) getStubSettings()).deleteFolderSettings(); + } + + /** Returns the object with the settings used for calls to queryFolderContents. */ + public PagedCallSettings< + QueryFolderContentsRequest, QueryFolderContentsResponse, QueryFolderContentsPagedResponse> + queryFolderContentsSettings() { + return ((DataformStubSettings) getStubSettings()).queryFolderContentsSettings(); + } + + /** Returns the object with the settings used for calls to queryUserRootContents. */ + public PagedCallSettings< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsPagedResponse> + queryUserRootContentsSettings() { + return ((DataformStubSettings) getStubSettings()).queryUserRootContentsSettings(); + } + + /** Returns the object with the settings used for calls to moveFolder. */ + public UnaryCallSettings moveFolderSettings() { + return ((DataformStubSettings) getStubSettings()).moveFolderSettings(); + } + + /** Returns the object with the settings used for calls to moveFolder. */ + public OperationCallSettings + moveFolderOperationSettings() { + return ((DataformStubSettings) getStubSettings()).moveFolderOperationSettings(); + } + /** Returns the object with the settings used for calls to listRepositories. */ public PagedCallSettings< ListRepositoriesRequest, ListRepositoriesResponse, ListRepositoriesPagedResponse> @@ -137,6 +251,17 @@ public UnaryCallSettings deleteRepositorySetting return ((DataformStubSettings) getStubSettings()).deleteRepositorySettings(); } + /** Returns the object with the settings used for calls to moveRepository. */ + public UnaryCallSettings moveRepositorySettings() { + return ((DataformStubSettings) getStubSettings()).moveRepositorySettings(); + } + + /** Returns the object with the settings used for calls to moveRepository. */ + public OperationCallSettings + moveRepositoryOperationSettings() { + return ((DataformStubSettings) getStubSettings()).moveRepositoryOperationSettings(); + } + /** Returns the object with the settings used for calls to commitRepositoryChanges. */ public UnaryCallSettings commitRepositoryChangesSettings() { @@ -438,15 +563,9 @@ public UnaryCallSettings updateConfigSettings() { return ((DataformStubSettings) getStubSettings()).updateConfigSettings(); } - /** Returns the object with the settings used for calls to listLocations. */ - public PagedCallSettings - listLocationsSettings() { - return ((DataformStubSettings) getStubSettings()).listLocationsSettings(); - } - - /** Returns the object with the settings used for calls to getLocation. */ - public UnaryCallSettings getLocationSettings() { - return ((DataformStubSettings) getStubSettings()).getLocationSettings(); + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((DataformStubSettings) getStubSettings()).getIamPolicySettings(); } /** Returns the object with the settings used for calls to setIamPolicy. */ @@ -454,17 +573,23 @@ public UnaryCallSettings setIamPolicySettings() { return ((DataformStubSettings) getStubSettings()).setIamPolicySettings(); } - /** Returns the object with the settings used for calls to getIamPolicy. */ - public UnaryCallSettings getIamPolicySettings() { - return ((DataformStubSettings) getStubSettings()).getIamPolicySettings(); - } - /** Returns the object with the settings used for calls to testIamPermissions. */ public UnaryCallSettings testIamPermissionsSettings() { return ((DataformStubSettings) getStubSettings()).testIamPermissionsSettings(); } + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((DataformStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((DataformStubSettings) getStubSettings()).getLocationSettings(); + } + public static final DataformSettings create(DataformStubSettings stub) throws IOException { return new DataformSettings.Builder(stub.toBuilder()).build(); } @@ -576,6 +701,93 @@ public Builder applyToAllUnaryMethods( return this; } + /** Returns the builder for the settings used for calls to getTeamFolder. */ + public UnaryCallSettings.Builder getTeamFolderSettings() { + return getStubSettingsBuilder().getTeamFolderSettings(); + } + + /** Returns the builder for the settings used for calls to createTeamFolder. */ + public UnaryCallSettings.Builder + createTeamFolderSettings() { + return getStubSettingsBuilder().createTeamFolderSettings(); + } + + /** Returns the builder for the settings used for calls to updateTeamFolder. */ + public UnaryCallSettings.Builder + updateTeamFolderSettings() { + return getStubSettingsBuilder().updateTeamFolderSettings(); + } + + /** Returns the builder for the settings used for calls to deleteTeamFolder. */ + public UnaryCallSettings.Builder deleteTeamFolderSettings() { + return getStubSettingsBuilder().deleteTeamFolderSettings(); + } + + /** Returns the builder for the settings used for calls to queryTeamFolderContents. */ + public PagedCallSettings.Builder< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsPagedResponse> + queryTeamFolderContentsSettings() { + return getStubSettingsBuilder().queryTeamFolderContentsSettings(); + } + + /** Returns the builder for the settings used for calls to searchTeamFolders. */ + public PagedCallSettings.Builder< + SearchTeamFoldersRequest, SearchTeamFoldersResponse, SearchTeamFoldersPagedResponse> + searchTeamFoldersSettings() { + return getStubSettingsBuilder().searchTeamFoldersSettings(); + } + + /** Returns the builder for the settings used for calls to getFolder. */ + public UnaryCallSettings.Builder getFolderSettings() { + return getStubSettingsBuilder().getFolderSettings(); + } + + /** Returns the builder for the settings used for calls to createFolder. */ + public UnaryCallSettings.Builder createFolderSettings() { + return getStubSettingsBuilder().createFolderSettings(); + } + + /** Returns the builder for the settings used for calls to updateFolder. */ + public UnaryCallSettings.Builder updateFolderSettings() { + return getStubSettingsBuilder().updateFolderSettings(); + } + + /** Returns the builder for the settings used for calls to deleteFolder. */ + public UnaryCallSettings.Builder deleteFolderSettings() { + return getStubSettingsBuilder().deleteFolderSettings(); + } + + /** Returns the builder for the settings used for calls to queryFolderContents. */ + public PagedCallSettings.Builder< + QueryFolderContentsRequest, + QueryFolderContentsResponse, + QueryFolderContentsPagedResponse> + queryFolderContentsSettings() { + return getStubSettingsBuilder().queryFolderContentsSettings(); + } + + /** Returns the builder for the settings used for calls to queryUserRootContents. */ + public PagedCallSettings.Builder< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsPagedResponse> + queryUserRootContentsSettings() { + return getStubSettingsBuilder().queryUserRootContentsSettings(); + } + + /** Returns the builder for the settings used for calls to moveFolder. */ + public UnaryCallSettings.Builder moveFolderSettings() { + return getStubSettingsBuilder().moveFolderSettings(); + } + + /** Returns the builder for the settings used for calls to moveFolder. */ + public OperationCallSettings.Builder + moveFolderOperationSettings() { + return getStubSettingsBuilder().moveFolderOperationSettings(); + } + /** Returns the builder for the settings used for calls to listRepositories. */ public PagedCallSettings.Builder< ListRepositoriesRequest, ListRepositoriesResponse, ListRepositoriesPagedResponse> @@ -605,6 +817,17 @@ public UnaryCallSettings.Builder deleteRepositor return getStubSettingsBuilder().deleteRepositorySettings(); } + /** Returns the builder for the settings used for calls to moveRepository. */ + public UnaryCallSettings.Builder moveRepositorySettings() { + return getStubSettingsBuilder().moveRepositorySettings(); + } + + /** Returns the builder for the settings used for calls to moveRepository. */ + public OperationCallSettings.Builder + moveRepositoryOperationSettings() { + return getStubSettingsBuilder().moveRepositoryOperationSettings(); + } + /** Returns the builder for the settings used for calls to commitRepositoryChanges. */ public UnaryCallSettings.Builder< CommitRepositoryChangesRequest, CommitRepositoryChangesResponse> @@ -922,16 +1145,9 @@ public UnaryCallSettings.Builder updateConfigSettin return getStubSettingsBuilder().updateConfigSettings(); } - /** Returns the builder for the settings used for calls to listLocations. */ - public PagedCallSettings.Builder< - ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> - listLocationsSettings() { - return getStubSettingsBuilder().listLocationsSettings(); - } - - /** Returns the builder for the settings used for calls to getLocation. */ - public UnaryCallSettings.Builder getLocationSettings() { - return getStubSettingsBuilder().getLocationSettings(); + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); } /** Returns the builder for the settings used for calls to setIamPolicy. */ @@ -939,17 +1155,24 @@ public UnaryCallSettings.Builder setIamPolicySettin return getStubSettingsBuilder().setIamPolicySettings(); } - /** Returns the builder for the settings used for calls to getIamPolicy. */ - public UnaryCallSettings.Builder getIamPolicySettings() { - return getStubSettingsBuilder().getIamPolicySettings(); - } - /** Returns the builder for the settings used for calls to testIamPermissions. */ public UnaryCallSettings.Builder testIamPermissionsSettings() { return getStubSettingsBuilder().testIamPermissionsSettings(); } + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + @Override public DataformSettings build() throws IOException { return new DataformSettings(this); diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/gapic_metadata.json b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/gapic_metadata.json index 5add2d16aebf..4d3e9550d174 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/gapic_metadata.json +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/gapic_metadata.json @@ -25,12 +25,18 @@ "CreateCompilationResult": { "methods": ["createCompilationResult", "createCompilationResult", "createCompilationResult", "createCompilationResultCallable"] }, + "CreateFolder": { + "methods": ["createFolder", "createFolder", "createFolder", "createFolderCallable"] + }, "CreateReleaseConfig": { "methods": ["createReleaseConfig", "createReleaseConfig", "createReleaseConfig", "createReleaseConfigCallable"] }, "CreateRepository": { "methods": ["createRepository", "createRepository", "createRepository", "createRepositoryCallable"] }, + "CreateTeamFolder": { + "methods": ["createTeamFolder", "createTeamFolder", "createTeamFolder", "createTeamFolderCallable"] + }, "CreateWorkflowConfig": { "methods": ["createWorkflowConfig", "createWorkflowConfig", "createWorkflowConfig", "createWorkflowConfigCallable"] }, @@ -40,12 +46,18 @@ "CreateWorkspace": { "methods": ["createWorkspace", "createWorkspace", "createWorkspace", "createWorkspaceCallable"] }, + "DeleteFolder": { + "methods": ["deleteFolder", "deleteFolder", "deleteFolder", "deleteFolderCallable"] + }, "DeleteReleaseConfig": { "methods": ["deleteReleaseConfig", "deleteReleaseConfig", "deleteReleaseConfig", "deleteReleaseConfigCallable"] }, "DeleteRepository": { "methods": ["deleteRepository", "deleteRepository", "deleteRepository", "deleteRepositoryCallable"] }, + "DeleteTeamFolder": { + "methods": ["deleteTeamFolder", "deleteTeamFolder", "deleteTeamFolder", "deleteTeamFolderCallable"] + }, "DeleteWorkflowConfig": { "methods": ["deleteWorkflowConfig", "deleteWorkflowConfig", "deleteWorkflowConfig", "deleteWorkflowConfigCallable"] }, @@ -76,8 +88,11 @@ "GetConfig": { "methods": ["getConfig", "getConfig", "getConfig", "getConfigCallable"] }, + "GetFolder": { + "methods": ["getFolder", "getFolder", "getFolder", "getFolderCallable"] + }, "GetIamPolicy": { - "methods": ["getIamPolicy", "getIamPolicyCallable"] + "methods": ["getIamPolicy", "getIamPolicy", "getIamPolicy", "getIamPolicyCallable"] }, "GetLocation": { "methods": ["getLocation", "getLocationCallable"] @@ -88,6 +103,9 @@ "GetRepository": { "methods": ["getRepository", "getRepository", "getRepository", "getRepositoryCallable"] }, + "GetTeamFolder": { + "methods": ["getTeamFolder", "getTeamFolder", "getTeamFolder", "getTeamFolderCallable"] + }, "GetWorkflowConfig": { "methods": ["getWorkflowConfig", "getWorkflowConfig", "getWorkflowConfig", "getWorkflowConfigCallable"] }, @@ -130,6 +148,12 @@ "MoveFile": { "methods": ["moveFile", "moveFileCallable"] }, + "MoveFolder": { + "methods": ["moveFolderAsync", "moveFolderAsync", "moveFolderAsync", "moveFolderOperationCallable", "moveFolderCallable"] + }, + "MoveRepository": { + "methods": ["moveRepositoryAsync", "moveRepositoryAsync", "moveRepositoryAsync", "moveRepositoryOperationCallable", "moveRepositoryCallable"] + }, "PullGitCommits": { "methods": ["pullGitCommits", "pullGitCommitsCallable"] }, @@ -142,9 +166,18 @@ "QueryDirectoryContents": { "methods": ["queryDirectoryContents", "queryDirectoryContentsPagedCallable", "queryDirectoryContentsCallable"] }, + "QueryFolderContents": { + "methods": ["queryFolderContents", "queryFolderContents", "queryFolderContents", "queryFolderContentsPagedCallable", "queryFolderContentsCallable"] + }, "QueryRepositoryDirectoryContents": { "methods": ["queryRepositoryDirectoryContents", "queryRepositoryDirectoryContentsPagedCallable", "queryRepositoryDirectoryContentsCallable"] }, + "QueryTeamFolderContents": { + "methods": ["queryTeamFolderContents", "queryTeamFolderContents", "queryTeamFolderContents", "queryTeamFolderContentsPagedCallable", "queryTeamFolderContentsCallable"] + }, + "QueryUserRootContents": { + "methods": ["queryUserRootContents", "queryUserRootContents", "queryUserRootContents", "queryUserRootContentsPagedCallable", "queryUserRootContentsCallable"] + }, "QueryWorkflowInvocationActions": { "methods": ["queryWorkflowInvocationActions", "queryWorkflowInvocationActionsPagedCallable", "queryWorkflowInvocationActionsCallable"] }, @@ -166,6 +199,9 @@ "SearchFiles": { "methods": ["searchFiles", "searchFilesPagedCallable", "searchFilesCallable"] }, + "SearchTeamFolders": { + "methods": ["searchTeamFolders", "searchTeamFoldersPagedCallable", "searchTeamFoldersCallable"] + }, "SetIamPolicy": { "methods": ["setIamPolicy", "setIamPolicyCallable"] }, @@ -175,12 +211,18 @@ "UpdateConfig": { "methods": ["updateConfig", "updateConfig", "updateConfigCallable"] }, + "UpdateFolder": { + "methods": ["updateFolder", "updateFolder", "updateFolderCallable"] + }, "UpdateReleaseConfig": { "methods": ["updateReleaseConfig", "updateReleaseConfig", "updateReleaseConfigCallable"] }, "UpdateRepository": { "methods": ["updateRepository", "updateRepository", "updateRepositoryCallable"] }, + "UpdateTeamFolder": { + "methods": ["updateTeamFolder", "updateTeamFolder", "updateTeamFolderCallable"] + }, "UpdateWorkflowConfig": { "methods": ["updateWorkflowConfig", "updateWorkflowConfig", "updateWorkflowConfigCallable"] }, diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/package-info.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/package-info.java index a25f1371d350..20ae7f463764 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/package-info.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/package-info.java @@ -33,8 +33,8 @@ * // - It may require 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 (DataformClient dataformClient = DataformClient.create()) { - * RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - * Repository response = dataformClient.getRepository(name); + * TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + * TeamFolder response = dataformClient.getTeamFolder(name); * } * }
          */ diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStub.java index 41da25413848..29f04cc280bb 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStub.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStub.java @@ -26,12 +26,17 @@ import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkspacesPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryCompilationResultActionsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryFolderContentsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryRepositoryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryTeamFolderContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryUserRootContentsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryWorkflowInvocationActionsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.SearchFilesPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.SearchTeamFoldersPagedResponse; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest; import com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationResponse; @@ -44,13 +49,17 @@ import com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse; import com.google.cloud.dataform.v1beta1.Config; import com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest; +import com.google.cloud.dataform.v1beta1.CreateFolderRequest; import com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest; import com.google.cloud.dataform.v1beta1.CreateRepositoryRequest; +import com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest; import com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest; import com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest; +import com.google.cloud.dataform.v1beta1.DeleteFolderRequest; import com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest; import com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest; +import com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest; import com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest; import com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest; @@ -64,10 +73,13 @@ import com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse; import com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest; import com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse; +import com.google.cloud.dataform.v1beta1.Folder; import com.google.cloud.dataform.v1beta1.GetCompilationResultRequest; import com.google.cloud.dataform.v1beta1.GetConfigRequest; +import com.google.cloud.dataform.v1beta1.GetFolderRequest; import com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest; import com.google.cloud.dataform.v1beta1.GetRepositoryRequest; +import com.google.cloud.dataform.v1beta1.GetTeamFolderRequest; import com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest; import com.google.cloud.dataform.v1beta1.GetWorkspaceRequest; @@ -91,6 +103,10 @@ import com.google.cloud.dataform.v1beta1.MoveDirectoryResponse; import com.google.cloud.dataform.v1beta1.MoveFileRequest; import com.google.cloud.dataform.v1beta1.MoveFileResponse; +import com.google.cloud.dataform.v1beta1.MoveFolderMetadata; +import com.google.cloud.dataform.v1beta1.MoveFolderRequest; +import com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata; +import com.google.cloud.dataform.v1beta1.MoveRepositoryRequest; import com.google.cloud.dataform.v1beta1.PullGitCommitsRequest; import com.google.cloud.dataform.v1beta1.PullGitCommitsResponse; import com.google.cloud.dataform.v1beta1.PushGitCommitsRequest; @@ -99,8 +115,14 @@ import com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse; import com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest; import com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse; +import com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest; +import com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse; import com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest; import com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse; +import com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest; +import com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse; +import com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest; +import com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse; import com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest; import com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse; import com.google.cloud.dataform.v1beta1.ReadFileRequest; @@ -117,9 +139,14 @@ import com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesResponse; import com.google.cloud.dataform.v1beta1.SearchFilesRequest; import com.google.cloud.dataform.v1beta1.SearchFilesResponse; +import com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest; +import com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse; +import com.google.cloud.dataform.v1beta1.TeamFolder; import com.google.cloud.dataform.v1beta1.UpdateConfigRequest; +import com.google.cloud.dataform.v1beta1.UpdateFolderRequest; import com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest; import com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest; +import com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest; import com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.WorkflowConfig; import com.google.cloud.dataform.v1beta1.WorkflowInvocation; @@ -135,6 +162,8 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; import com.google.protobuf.Empty; import javax.annotation.Generated; @@ -148,6 +177,97 @@ @Generated("by gapic-generator-java") public abstract class DataformStub implements BackgroundResource { + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public UnaryCallable getTeamFolderCallable() { + throw new UnsupportedOperationException("Not implemented: getTeamFolderCallable()"); + } + + public UnaryCallable createTeamFolderCallable() { + throw new UnsupportedOperationException("Not implemented: createTeamFolderCallable()"); + } + + public UnaryCallable updateTeamFolderCallable() { + throw new UnsupportedOperationException("Not implemented: updateTeamFolderCallable()"); + } + + public UnaryCallable deleteTeamFolderCallable() { + throw new UnsupportedOperationException("Not implemented: deleteTeamFolderCallable()"); + } + + public UnaryCallable + queryTeamFolderContentsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: queryTeamFolderContentsPagedCallable()"); + } + + public UnaryCallable + queryTeamFolderContentsCallable() { + throw new UnsupportedOperationException("Not implemented: queryTeamFolderContentsCallable()"); + } + + public UnaryCallable + searchTeamFoldersPagedCallable() { + throw new UnsupportedOperationException("Not implemented: searchTeamFoldersPagedCallable()"); + } + + public UnaryCallable + searchTeamFoldersCallable() { + throw new UnsupportedOperationException("Not implemented: searchTeamFoldersCallable()"); + } + + public UnaryCallable getFolderCallable() { + throw new UnsupportedOperationException("Not implemented: getFolderCallable()"); + } + + public UnaryCallable createFolderCallable() { + throw new UnsupportedOperationException("Not implemented: createFolderCallable()"); + } + + public UnaryCallable updateFolderCallable() { + throw new UnsupportedOperationException("Not implemented: updateFolderCallable()"); + } + + public UnaryCallable deleteFolderCallable() { + throw new UnsupportedOperationException("Not implemented: deleteFolderCallable()"); + } + + public UnaryCallable + queryFolderContentsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: queryFolderContentsPagedCallable()"); + } + + public UnaryCallable + queryFolderContentsCallable() { + throw new UnsupportedOperationException("Not implemented: queryFolderContentsCallable()"); + } + + public UnaryCallable + queryUserRootContentsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: queryUserRootContentsPagedCallable()"); + } + + public UnaryCallable + queryUserRootContentsCallable() { + throw new UnsupportedOperationException("Not implemented: queryUserRootContentsCallable()"); + } + + public OperationCallable + moveFolderOperationCallable() { + throw new UnsupportedOperationException("Not implemented: moveFolderOperationCallable()"); + } + + public UnaryCallable moveFolderCallable() { + throw new UnsupportedOperationException("Not implemented: moveFolderCallable()"); + } + public UnaryCallable listRepositoriesPagedCallable() { throw new UnsupportedOperationException("Not implemented: listRepositoriesPagedCallable()"); @@ -174,6 +294,15 @@ public UnaryCallable deleteRepositoryCallable() throw new UnsupportedOperationException("Not implemented: deleteRepositoryCallable()"); } + public OperationCallable + moveRepositoryOperationCallable() { + throw new UnsupportedOperationException("Not implemented: moveRepositoryOperationCallable()"); + } + + public UnaryCallable moveRepositoryCallable() { + throw new UnsupportedOperationException("Not implemented: moveRepositoryCallable()"); + } + public UnaryCallable commitRepositoryChangesCallable() { throw new UnsupportedOperationException("Not implemented: commitRepositoryChangesCallable()"); @@ -464,6 +593,19 @@ public UnaryCallable updateConfigCallable() { throw new UnsupportedOperationException("Not implemented: updateConfigCallable()"); } + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); @@ -477,19 +619,6 @@ public UnaryCallable getLocationCallable() { throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); } - public UnaryCallable setIamPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); - } - - public UnaryCallable getIamPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); - } - - public UnaryCallable - testIamPermissionsCallable() { - throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); - } - @Override public abstract void close(); } diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java index 79d93d5c6088..8d5f1c3beb45 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java @@ -26,9 +26,13 @@ import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkspacesPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryCompilationResultActionsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryFolderContentsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryRepositoryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryTeamFolderContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryUserRootContentsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryWorkflowInvocationActionsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.SearchFilesPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.SearchTeamFoldersPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; @@ -40,13 +44,17 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; import com.google.api.gax.httpjson.GaxHttpJsonProperties; import com.google.api.gax.httpjson.HttpJsonTransportChannel; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.PagedListDescriptor; @@ -69,13 +77,17 @@ import com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse; import com.google.cloud.dataform.v1beta1.Config; import com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest; +import com.google.cloud.dataform.v1beta1.CreateFolderRequest; import com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest; import com.google.cloud.dataform.v1beta1.CreateRepositoryRequest; +import com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest; import com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest; import com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest; +import com.google.cloud.dataform.v1beta1.DeleteFolderRequest; import com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest; import com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest; +import com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest; import com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest; import com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest; @@ -90,10 +102,13 @@ import com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse; import com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest; import com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse; +import com.google.cloud.dataform.v1beta1.Folder; import com.google.cloud.dataform.v1beta1.GetCompilationResultRequest; import com.google.cloud.dataform.v1beta1.GetConfigRequest; +import com.google.cloud.dataform.v1beta1.GetFolderRequest; import com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest; import com.google.cloud.dataform.v1beta1.GetRepositoryRequest; +import com.google.cloud.dataform.v1beta1.GetTeamFolderRequest; import com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest; import com.google.cloud.dataform.v1beta1.GetWorkspaceRequest; @@ -117,6 +132,10 @@ import com.google.cloud.dataform.v1beta1.MoveDirectoryResponse; import com.google.cloud.dataform.v1beta1.MoveFileRequest; import com.google.cloud.dataform.v1beta1.MoveFileResponse; +import com.google.cloud.dataform.v1beta1.MoveFolderMetadata; +import com.google.cloud.dataform.v1beta1.MoveFolderRequest; +import com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata; +import com.google.cloud.dataform.v1beta1.MoveRepositoryRequest; import com.google.cloud.dataform.v1beta1.PullGitCommitsRequest; import com.google.cloud.dataform.v1beta1.PullGitCommitsResponse; import com.google.cloud.dataform.v1beta1.PushGitCommitsRequest; @@ -125,8 +144,14 @@ import com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse; import com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest; import com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse; +import com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest; +import com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse; import com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest; import com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse; +import com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest; +import com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse; +import com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest; +import com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse; import com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest; import com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse; import com.google.cloud.dataform.v1beta1.ReadFileRequest; @@ -144,9 +169,14 @@ import com.google.cloud.dataform.v1beta1.SearchFilesRequest; import com.google.cloud.dataform.v1beta1.SearchFilesResponse; import com.google.cloud.dataform.v1beta1.SearchResult; +import com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest; +import com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse; +import com.google.cloud.dataform.v1beta1.TeamFolder; import com.google.cloud.dataform.v1beta1.UpdateConfigRequest; +import com.google.cloud.dataform.v1beta1.UpdateFolderRequest; import com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest; import com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest; +import com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest; import com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.WorkflowConfig; import com.google.cloud.dataform.v1beta1.WorkflowInvocation; @@ -167,8 +197,10 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; +import java.time.Duration; import java.util.List; import javax.annotation.Generated; @@ -189,7 +221,7 @@ * *

          For example, to set the * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) - * of getRepository: + * of getTeamFolder: * *

          {@code
            * // This snippet has been automatically generated and should be regarded as a code template only.
          @@ -199,10 +231,10 @@
            * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            * DataformStubSettings.Builder dataformSettingsBuilder = DataformStubSettings.newBuilder();
            * dataformSettingsBuilder
          - *     .getRepositorySettings()
          + *     .getTeamFolderSettings()
            *     .setRetrySettings(
            *         dataformSettingsBuilder
          - *             .getRepositorySettings()
          + *             .getTeamFolderSettings()
            *             .getRetrySettings()
            *             .toBuilder()
            *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
          @@ -220,6 +252,31 @@
            * Please refer to the [Client Side Retry
            * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
            * retries.
          + *
          + * 

          To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for moveFolder: + * + *

          {@code
          + * // This snippet has been automatically generated and should be regarded as a code template only.
          + * // It will require modifications to work:
          + * // - It may require correct/in-range values for request initialization.
          + * // - It may require specifying regional endpoints when creating the service client as shown in
          + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          + * DataformStubSettings.Builder dataformSettingsBuilder = DataformStubSettings.newBuilder();
          + * TimedRetryAlgorithm timedRetryAlgorithm =
          + *     OperationalTimedPollAlgorithm.create(
          + *         RetrySettings.newBuilder()
          + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
          + *             .setRetryDelayMultiplier(1.5)
          + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
          + *             .setTotalTimeoutDuration(Duration.ofHours(24))
          + *             .build());
          + * dataformSettingsBuilder
          + *     .createClusterOperationSettings()
          + *     .setPollingAlgorithm(timedRetryAlgorithm)
          + *     .build();
          + * }
          */ @BetaApi @Generated("by gapic-generator-java") @@ -231,6 +288,33 @@ public class DataformStubSettings extends StubSettings { .add("https://www.googleapis.com/auth/cloud-platform") .build(); + private final UnaryCallSettings getTeamFolderSettings; + private final UnaryCallSettings createTeamFolderSettings; + private final UnaryCallSettings updateTeamFolderSettings; + private final UnaryCallSettings deleteTeamFolderSettings; + private final PagedCallSettings< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsPagedResponse> + queryTeamFolderContentsSettings; + private final PagedCallSettings< + SearchTeamFoldersRequest, SearchTeamFoldersResponse, SearchTeamFoldersPagedResponse> + searchTeamFoldersSettings; + private final UnaryCallSettings getFolderSettings; + private final UnaryCallSettings createFolderSettings; + private final UnaryCallSettings updateFolderSettings; + private final UnaryCallSettings deleteFolderSettings; + private final PagedCallSettings< + QueryFolderContentsRequest, QueryFolderContentsResponse, QueryFolderContentsPagedResponse> + queryFolderContentsSettings; + private final PagedCallSettings< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsPagedResponse> + queryUserRootContentsSettings; + private final UnaryCallSettings moveFolderSettings; + private final OperationCallSettings + moveFolderOperationSettings; private final PagedCallSettings< ListRepositoriesRequest, ListRepositoriesResponse, ListRepositoriesPagedResponse> listRepositoriesSettings; @@ -238,6 +322,9 @@ public class DataformStubSettings extends StubSettings { private final UnaryCallSettings createRepositorySettings; private final UnaryCallSettings updateRepositorySettings; private final UnaryCallSettings deleteRepositorySettings; + private final UnaryCallSettings moveRepositorySettings; + private final OperationCallSettings + moveRepositoryOperationSettings; private final UnaryCallSettings commitRepositoryChangesSettings; private final UnaryCallSettings @@ -349,14 +436,188 @@ public class DataformStubSettings extends StubSettings { queryWorkflowInvocationActionsSettings; private final UnaryCallSettings getConfigSettings; private final UnaryCallSettings updateConfigSettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings setIamPolicySettings; + private final UnaryCallSettings + testIamPermissionsSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; private final UnaryCallSettings getLocationSettings; - private final UnaryCallSettings setIamPolicySettings; - private final UnaryCallSettings getIamPolicySettings; - private final UnaryCallSettings - testIamPermissionsSettings; + + private static final PagedListDescriptor< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsResponse.TeamFolderContentsEntry> + QUERY_TEAM_FOLDER_CONTENTS_PAGE_STR_DESC = + new PagedListDescriptor< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsResponse.TeamFolderContentsEntry>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public QueryTeamFolderContentsRequest injectToken( + QueryTeamFolderContentsRequest payload, String token) { + return QueryTeamFolderContentsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public QueryTeamFolderContentsRequest injectPageSize( + QueryTeamFolderContentsRequest payload, int pageSize) { + return QueryTeamFolderContentsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(QueryTeamFolderContentsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(QueryTeamFolderContentsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable + extractResources(QueryTeamFolderContentsResponse payload) { + return payload.getEntriesList(); + } + }; + + private static final PagedListDescriptor< + SearchTeamFoldersRequest, + SearchTeamFoldersResponse, + SearchTeamFoldersResponse.TeamFolderSearchResult> + SEARCH_TEAM_FOLDERS_PAGE_STR_DESC = + new PagedListDescriptor< + SearchTeamFoldersRequest, + SearchTeamFoldersResponse, + SearchTeamFoldersResponse.TeamFolderSearchResult>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public SearchTeamFoldersRequest injectToken( + SearchTeamFoldersRequest payload, String token) { + return SearchTeamFoldersRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public SearchTeamFoldersRequest injectPageSize( + SearchTeamFoldersRequest payload, int pageSize) { + return SearchTeamFoldersRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(SearchTeamFoldersRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(SearchTeamFoldersResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + SearchTeamFoldersResponse payload) { + return payload.getResultsList(); + } + }; + + private static final PagedListDescriptor< + QueryFolderContentsRequest, + QueryFolderContentsResponse, + QueryFolderContentsResponse.FolderContentsEntry> + QUERY_FOLDER_CONTENTS_PAGE_STR_DESC = + new PagedListDescriptor< + QueryFolderContentsRequest, + QueryFolderContentsResponse, + QueryFolderContentsResponse.FolderContentsEntry>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public QueryFolderContentsRequest injectToken( + QueryFolderContentsRequest payload, String token) { + return QueryFolderContentsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public QueryFolderContentsRequest injectPageSize( + QueryFolderContentsRequest payload, int pageSize) { + return QueryFolderContentsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(QueryFolderContentsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(QueryFolderContentsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + QueryFolderContentsResponse payload) { + return payload.getEntriesList(); + } + }; + + private static final PagedListDescriptor< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsResponse.RootContentsEntry> + QUERY_USER_ROOT_CONTENTS_PAGE_STR_DESC = + new PagedListDescriptor< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsResponse.RootContentsEntry>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public QueryUserRootContentsRequest injectToken( + QueryUserRootContentsRequest payload, String token) { + return QueryUserRootContentsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public QueryUserRootContentsRequest injectPageSize( + QueryUserRootContentsRequest payload, int pageSize) { + return QueryUserRootContentsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(QueryUserRootContentsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(QueryUserRootContentsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + QueryUserRootContentsResponse payload) { + return payload.getEntriesList(); + } + }; private static final PagedListDescriptor< ListRepositoriesRequest, ListRepositoriesResponse, Repository> @@ -881,6 +1142,107 @@ public Iterable extractResources(ListLocationsResponse payload) { } }; + private static final PagedListResponseFactory< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsPagedResponse> + QUERY_TEAM_FOLDER_CONTENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + QueryTeamFolderContentsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsResponse.TeamFolderContentsEntry> + pageContext = + PageContext.create( + callable, QUERY_TEAM_FOLDER_CONTENTS_PAGE_STR_DESC, request, context); + return QueryTeamFolderContentsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + SearchTeamFoldersRequest, SearchTeamFoldersResponse, SearchTeamFoldersPagedResponse> + SEARCH_TEAM_FOLDERS_PAGE_STR_FACT = + new PagedListResponseFactory< + SearchTeamFoldersRequest, + SearchTeamFoldersResponse, + SearchTeamFoldersPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + SearchTeamFoldersRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + SearchTeamFoldersRequest, + SearchTeamFoldersResponse, + SearchTeamFoldersResponse.TeamFolderSearchResult> + pageContext = + PageContext.create( + callable, SEARCH_TEAM_FOLDERS_PAGE_STR_DESC, request, context); + return SearchTeamFoldersPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + QueryFolderContentsRequest, QueryFolderContentsResponse, QueryFolderContentsPagedResponse> + QUERY_FOLDER_CONTENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + QueryFolderContentsRequest, + QueryFolderContentsResponse, + QueryFolderContentsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + QueryFolderContentsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + QueryFolderContentsRequest, + QueryFolderContentsResponse, + QueryFolderContentsResponse.FolderContentsEntry> + pageContext = + PageContext.create( + callable, QUERY_FOLDER_CONTENTS_PAGE_STR_DESC, request, context); + return QueryFolderContentsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsPagedResponse> + QUERY_USER_ROOT_CONTENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + QueryUserRootContentsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsResponse.RootContentsEntry> + pageContext = + PageContext.create( + callable, QUERY_USER_ROOT_CONTENTS_PAGE_STR_DESC, request, context); + return QueryUserRootContentsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListRepositoriesRequest, ListRepositoriesResponse, ListRepositoriesPagedResponse> LIST_REPOSITORIES_PAGE_STR_FACT = @@ -1195,6 +1557,89 @@ public ApiFuture getFuturePagedResponse( } }; + /** Returns the object with the settings used for calls to getTeamFolder. */ + public UnaryCallSettings getTeamFolderSettings() { + return getTeamFolderSettings; + } + + /** Returns the object with the settings used for calls to createTeamFolder. */ + public UnaryCallSettings createTeamFolderSettings() { + return createTeamFolderSettings; + } + + /** Returns the object with the settings used for calls to updateTeamFolder. */ + public UnaryCallSettings updateTeamFolderSettings() { + return updateTeamFolderSettings; + } + + /** Returns the object with the settings used for calls to deleteTeamFolder. */ + public UnaryCallSettings deleteTeamFolderSettings() { + return deleteTeamFolderSettings; + } + + /** Returns the object with the settings used for calls to queryTeamFolderContents. */ + public PagedCallSettings< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsPagedResponse> + queryTeamFolderContentsSettings() { + return queryTeamFolderContentsSettings; + } + + /** Returns the object with the settings used for calls to searchTeamFolders. */ + public PagedCallSettings< + SearchTeamFoldersRequest, SearchTeamFoldersResponse, SearchTeamFoldersPagedResponse> + searchTeamFoldersSettings() { + return searchTeamFoldersSettings; + } + + /** Returns the object with the settings used for calls to getFolder. */ + public UnaryCallSettings getFolderSettings() { + return getFolderSettings; + } + + /** Returns the object with the settings used for calls to createFolder. */ + public UnaryCallSettings createFolderSettings() { + return createFolderSettings; + } + + /** Returns the object with the settings used for calls to updateFolder. */ + public UnaryCallSettings updateFolderSettings() { + return updateFolderSettings; + } + + /** Returns the object with the settings used for calls to deleteFolder. */ + public UnaryCallSettings deleteFolderSettings() { + return deleteFolderSettings; + } + + /** Returns the object with the settings used for calls to queryFolderContents. */ + public PagedCallSettings< + QueryFolderContentsRequest, QueryFolderContentsResponse, QueryFolderContentsPagedResponse> + queryFolderContentsSettings() { + return queryFolderContentsSettings; + } + + /** Returns the object with the settings used for calls to queryUserRootContents. */ + public PagedCallSettings< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsPagedResponse> + queryUserRootContentsSettings() { + return queryUserRootContentsSettings; + } + + /** Returns the object with the settings used for calls to moveFolder. */ + public UnaryCallSettings moveFolderSettings() { + return moveFolderSettings; + } + + /** Returns the object with the settings used for calls to moveFolder. */ + public OperationCallSettings + moveFolderOperationSettings() { + return moveFolderOperationSettings; + } + /** Returns the object with the settings used for calls to listRepositories. */ public PagedCallSettings< ListRepositoriesRequest, ListRepositoriesResponse, ListRepositoriesPagedResponse> @@ -1222,6 +1667,17 @@ public UnaryCallSettings deleteRepositorySetting return deleteRepositorySettings; } + /** Returns the object with the settings used for calls to moveRepository. */ + public UnaryCallSettings moveRepositorySettings() { + return moveRepositorySettings; + } + + /** Returns the object with the settings used for calls to moveRepository. */ + public OperationCallSettings + moveRepositoryOperationSettings() { + return moveRepositoryOperationSettings; + } + /** Returns the object with the settings used for calls to commitRepositoryChanges. */ public UnaryCallSettings commitRepositoryChangesSettings() { @@ -1523,15 +1979,9 @@ public UnaryCallSettings updateConfigSettings() { return updateConfigSettings; } - /** Returns the object with the settings used for calls to listLocations. */ - public PagedCallSettings - listLocationsSettings() { - return listLocationsSettings; - } - - /** Returns the object with the settings used for calls to getLocation. */ - public UnaryCallSettings getLocationSettings() { - return getLocationSettings; + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; } /** Returns the object with the settings used for calls to setIamPolicy. */ @@ -1539,17 +1989,23 @@ public UnaryCallSettings setIamPolicySettings() { return setIamPolicySettings; } - /** Returns the object with the settings used for calls to getIamPolicy. */ - public UnaryCallSettings getIamPolicySettings() { - return getIamPolicySettings; - } - /** Returns the object with the settings used for calls to testIamPermissions. */ public UnaryCallSettings testIamPermissionsSettings() { return testIamPermissionsSettings; } + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + public DataformStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -1659,11 +2115,27 @@ public Builder toBuilder() { protected DataformStubSettings(Builder settingsBuilder) throws IOException { super(settingsBuilder); + getTeamFolderSettings = settingsBuilder.getTeamFolderSettings().build(); + createTeamFolderSettings = settingsBuilder.createTeamFolderSettings().build(); + updateTeamFolderSettings = settingsBuilder.updateTeamFolderSettings().build(); + deleteTeamFolderSettings = settingsBuilder.deleteTeamFolderSettings().build(); + queryTeamFolderContentsSettings = settingsBuilder.queryTeamFolderContentsSettings().build(); + searchTeamFoldersSettings = settingsBuilder.searchTeamFoldersSettings().build(); + getFolderSettings = settingsBuilder.getFolderSettings().build(); + createFolderSettings = settingsBuilder.createFolderSettings().build(); + updateFolderSettings = settingsBuilder.updateFolderSettings().build(); + deleteFolderSettings = settingsBuilder.deleteFolderSettings().build(); + queryFolderContentsSettings = settingsBuilder.queryFolderContentsSettings().build(); + queryUserRootContentsSettings = settingsBuilder.queryUserRootContentsSettings().build(); + moveFolderSettings = settingsBuilder.moveFolderSettings().build(); + moveFolderOperationSettings = settingsBuilder.moveFolderOperationSettings().build(); listRepositoriesSettings = settingsBuilder.listRepositoriesSettings().build(); getRepositorySettings = settingsBuilder.getRepositorySettings().build(); createRepositorySettings = settingsBuilder.createRepositorySettings().build(); updateRepositorySettings = settingsBuilder.updateRepositorySettings().build(); deleteRepositorySettings = settingsBuilder.deleteRepositorySettings().build(); + moveRepositorySettings = settingsBuilder.moveRepositorySettings().build(); + moveRepositoryOperationSettings = settingsBuilder.moveRepositoryOperationSettings().build(); commitRepositoryChangesSettings = settingsBuilder.commitRepositoryChangesSettings().build(); readRepositoryFileSettings = settingsBuilder.readRepositoryFileSettings().build(); queryRepositoryDirectoryContentsSettings = @@ -1717,16 +2189,48 @@ protected DataformStubSettings(Builder settingsBuilder) throws IOException { settingsBuilder.queryWorkflowInvocationActionsSettings().build(); getConfigSettings = settingsBuilder.getConfigSettings().build(); updateConfigSettings = settingsBuilder.updateConfigSettings().build(); - listLocationsSettings = settingsBuilder.listLocationsSettings().build(); - getLocationSettings = settingsBuilder.getLocationSettings().build(); - setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); } /** Builder for DataformStubSettings. */ public static class Builder extends StubSettings.Builder { private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder getTeamFolderSettings; + private final UnaryCallSettings.Builder + createTeamFolderSettings; + private final UnaryCallSettings.Builder + updateTeamFolderSettings; + private final UnaryCallSettings.Builder + deleteTeamFolderSettings; + private final PagedCallSettings.Builder< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsPagedResponse> + queryTeamFolderContentsSettings; + private final PagedCallSettings.Builder< + SearchTeamFoldersRequest, SearchTeamFoldersResponse, SearchTeamFoldersPagedResponse> + searchTeamFoldersSettings; + private final UnaryCallSettings.Builder getFolderSettings; + private final UnaryCallSettings.Builder createFolderSettings; + private final UnaryCallSettings.Builder updateFolderSettings; + private final UnaryCallSettings.Builder deleteFolderSettings; + private final PagedCallSettings.Builder< + QueryFolderContentsRequest, + QueryFolderContentsResponse, + QueryFolderContentsPagedResponse> + queryFolderContentsSettings; + private final PagedCallSettings.Builder< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsPagedResponse> + queryUserRootContentsSettings; + private final UnaryCallSettings.Builder moveFolderSettings; + private final OperationCallSettings.Builder + moveFolderOperationSettings; private final PagedCallSettings.Builder< ListRepositoriesRequest, ListRepositoriesResponse, ListRepositoriesPagedResponse> listRepositoriesSettings; @@ -1737,6 +2241,11 @@ public static class Builder extends StubSettings.Builder deleteRepositorySettings; + private final UnaryCallSettings.Builder + moveRepositorySettings; + private final OperationCallSettings.Builder< + MoveRepositoryRequest, Empty, MoveRepositoryMetadata> + moveRepositoryOperationSettings; private final UnaryCallSettings.Builder< CommitRepositoryChangesRequest, CommitRepositoryChangesResponse> commitRepositoryChangesSettings; @@ -1861,14 +2370,14 @@ public static class Builder extends StubSettings.Builder getConfigSettings; private final UnaryCallSettings.Builder updateConfigSettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder setIamPolicySettings; + private final UnaryCallSettings.Builder + testIamPermissionsSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; private final UnaryCallSettings.Builder getLocationSettings; - private final UnaryCallSettings.Builder setIamPolicySettings; - private final UnaryCallSettings.Builder getIamPolicySettings; - private final UnaryCallSettings.Builder - testIamPermissionsSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -1896,11 +2405,30 @@ protected Builder() { protected Builder(ClientContext clientContext) { super(clientContext); + getTeamFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createTeamFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateTeamFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteTeamFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + queryTeamFolderContentsSettings = + PagedCallSettings.newBuilder(QUERY_TEAM_FOLDER_CONTENTS_PAGE_STR_FACT); + searchTeamFoldersSettings = PagedCallSettings.newBuilder(SEARCH_TEAM_FOLDERS_PAGE_STR_FACT); + getFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + queryFolderContentsSettings = + PagedCallSettings.newBuilder(QUERY_FOLDER_CONTENTS_PAGE_STR_FACT); + queryUserRootContentsSettings = + PagedCallSettings.newBuilder(QUERY_USER_ROOT_CONTENTS_PAGE_STR_FACT); + moveFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + moveFolderOperationSettings = OperationCallSettings.newBuilder(); listRepositoriesSettings = PagedCallSettings.newBuilder(LIST_REPOSITORIES_PAGE_STR_FACT); getRepositorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createRepositorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateRepositorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteRepositorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + moveRepositorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + moveRepositoryOperationSettings = OperationCallSettings.newBuilder(); commitRepositoryChangesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); readRepositoryFileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); queryRepositoryDirectoryContentsSettings = @@ -1958,19 +2486,33 @@ protected Builder(ClientContext clientContext) { PagedCallSettings.newBuilder(QUERY_WORKFLOW_INVOCATION_ACTIONS_PAGE_STR_FACT); getConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); - getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( + getTeamFolderSettings, + createTeamFolderSettings, + updateTeamFolderSettings, + deleteTeamFolderSettings, + queryTeamFolderContentsSettings, + searchTeamFoldersSettings, + getFolderSettings, + createFolderSettings, + updateFolderSettings, + deleteFolderSettings, + queryFolderContentsSettings, + queryUserRootContentsSettings, + moveFolderSettings, listRepositoriesSettings, getRepositorySettings, createRepositorySettings, updateRepositorySettings, deleteRepositorySettings, + moveRepositorySettings, commitRepositoryChangesSettings, readRepositoryFileSettings, queryRepositoryDirectoryContentsSettings, @@ -2020,22 +2562,38 @@ protected Builder(ClientContext clientContext) { queryWorkflowInvocationActionsSettings, getConfigSettings, updateConfigSettings, - listLocationsSettings, - getLocationSettings, - setIamPolicySettings, getIamPolicySettings, - testIamPermissionsSettings); + setIamPolicySettings, + testIamPermissionsSettings, + listLocationsSettings, + getLocationSettings); initDefaults(this); } protected Builder(DataformStubSettings settings) { super(settings); + getTeamFolderSettings = settings.getTeamFolderSettings.toBuilder(); + createTeamFolderSettings = settings.createTeamFolderSettings.toBuilder(); + updateTeamFolderSettings = settings.updateTeamFolderSettings.toBuilder(); + deleteTeamFolderSettings = settings.deleteTeamFolderSettings.toBuilder(); + queryTeamFolderContentsSettings = settings.queryTeamFolderContentsSettings.toBuilder(); + searchTeamFoldersSettings = settings.searchTeamFoldersSettings.toBuilder(); + getFolderSettings = settings.getFolderSettings.toBuilder(); + createFolderSettings = settings.createFolderSettings.toBuilder(); + updateFolderSettings = settings.updateFolderSettings.toBuilder(); + deleteFolderSettings = settings.deleteFolderSettings.toBuilder(); + queryFolderContentsSettings = settings.queryFolderContentsSettings.toBuilder(); + queryUserRootContentsSettings = settings.queryUserRootContentsSettings.toBuilder(); + moveFolderSettings = settings.moveFolderSettings.toBuilder(); + moveFolderOperationSettings = settings.moveFolderOperationSettings.toBuilder(); listRepositoriesSettings = settings.listRepositoriesSettings.toBuilder(); getRepositorySettings = settings.getRepositorySettings.toBuilder(); createRepositorySettings = settings.createRepositorySettings.toBuilder(); updateRepositorySettings = settings.updateRepositorySettings.toBuilder(); deleteRepositorySettings = settings.deleteRepositorySettings.toBuilder(); + moveRepositorySettings = settings.moveRepositorySettings.toBuilder(); + moveRepositoryOperationSettings = settings.moveRepositoryOperationSettings.toBuilder(); commitRepositoryChangesSettings = settings.commitRepositoryChangesSettings.toBuilder(); readRepositoryFileSettings = settings.readRepositoryFileSettings.toBuilder(); queryRepositoryDirectoryContentsSettings = @@ -2089,19 +2647,33 @@ protected Builder(DataformStubSettings settings) { settings.queryWorkflowInvocationActionsSettings.toBuilder(); getConfigSettings = settings.getConfigSettings.toBuilder(); updateConfigSettings = settings.updateConfigSettings.toBuilder(); - listLocationsSettings = settings.listLocationsSettings.toBuilder(); - getLocationSettings = settings.getLocationSettings.toBuilder(); - setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( + getTeamFolderSettings, + createTeamFolderSettings, + updateTeamFolderSettings, + deleteTeamFolderSettings, + queryTeamFolderContentsSettings, + searchTeamFoldersSettings, + getFolderSettings, + createFolderSettings, + updateFolderSettings, + deleteFolderSettings, + queryFolderContentsSettings, + queryUserRootContentsSettings, + moveFolderSettings, listRepositoriesSettings, getRepositorySettings, createRepositorySettings, updateRepositorySettings, deleteRepositorySettings, + moveRepositorySettings, commitRepositoryChangesSettings, readRepositoryFileSettings, queryRepositoryDirectoryContentsSettings, @@ -2151,11 +2723,11 @@ protected Builder(DataformStubSettings settings) { queryWorkflowInvocationActionsSettings, getConfigSettings, updateConfigSettings, - listLocationsSettings, - getLocationSettings, - setIamPolicySettings, getIamPolicySettings, - testIamPermissionsSettings); + setIamPolicySettings, + testIamPermissionsSettings, + listLocationsSettings, + getLocationSettings); } private static Builder createDefault() { @@ -2183,6 +2755,71 @@ private static Builder createHttpJsonDefault() { } private static Builder initDefaults(Builder builder) { + builder + .getTeamFolderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createTeamFolderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateTeamFolderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteTeamFolderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .queryTeamFolderContentsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .searchTeamFoldersSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getFolderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createFolderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateFolderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteFolderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .queryFolderContentsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .queryUserRootContentsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .moveFolderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .listRepositoriesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -2208,6 +2845,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .moveRepositorySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .commitRepositoryChangesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -2454,30 +3096,77 @@ private static Builder initDefaults(Builder builder) { .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); builder - .listLocationsSettings() + .getIamPolicySettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); builder - .getLocationSettings() + .setIamPolicySettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); builder - .setIamPolicySettings() + .testIamPermissionsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); builder - .getIamPolicySettings() + .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); builder - .testIamPermissionsSettings() + .getLocationSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .moveFolderOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(MoveFolderMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .moveRepositoryOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(MoveRepositoryMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + return builder; } @@ -2496,6 +3185,93 @@ public Builder applyToAllUnaryMethods( return unaryMethodSettingsBuilders; } + /** Returns the builder for the settings used for calls to getTeamFolder. */ + public UnaryCallSettings.Builder getTeamFolderSettings() { + return getTeamFolderSettings; + } + + /** Returns the builder for the settings used for calls to createTeamFolder. */ + public UnaryCallSettings.Builder + createTeamFolderSettings() { + return createTeamFolderSettings; + } + + /** Returns the builder for the settings used for calls to updateTeamFolder. */ + public UnaryCallSettings.Builder + updateTeamFolderSettings() { + return updateTeamFolderSettings; + } + + /** Returns the builder for the settings used for calls to deleteTeamFolder. */ + public UnaryCallSettings.Builder deleteTeamFolderSettings() { + return deleteTeamFolderSettings; + } + + /** Returns the builder for the settings used for calls to queryTeamFolderContents. */ + public PagedCallSettings.Builder< + QueryTeamFolderContentsRequest, + QueryTeamFolderContentsResponse, + QueryTeamFolderContentsPagedResponse> + queryTeamFolderContentsSettings() { + return queryTeamFolderContentsSettings; + } + + /** Returns the builder for the settings used for calls to searchTeamFolders. */ + public PagedCallSettings.Builder< + SearchTeamFoldersRequest, SearchTeamFoldersResponse, SearchTeamFoldersPagedResponse> + searchTeamFoldersSettings() { + return searchTeamFoldersSettings; + } + + /** Returns the builder for the settings used for calls to getFolder. */ + public UnaryCallSettings.Builder getFolderSettings() { + return getFolderSettings; + } + + /** Returns the builder for the settings used for calls to createFolder. */ + public UnaryCallSettings.Builder createFolderSettings() { + return createFolderSettings; + } + + /** Returns the builder for the settings used for calls to updateFolder. */ + public UnaryCallSettings.Builder updateFolderSettings() { + return updateFolderSettings; + } + + /** Returns the builder for the settings used for calls to deleteFolder. */ + public UnaryCallSettings.Builder deleteFolderSettings() { + return deleteFolderSettings; + } + + /** Returns the builder for the settings used for calls to queryFolderContents. */ + public PagedCallSettings.Builder< + QueryFolderContentsRequest, + QueryFolderContentsResponse, + QueryFolderContentsPagedResponse> + queryFolderContentsSettings() { + return queryFolderContentsSettings; + } + + /** Returns the builder for the settings used for calls to queryUserRootContents. */ + public PagedCallSettings.Builder< + QueryUserRootContentsRequest, + QueryUserRootContentsResponse, + QueryUserRootContentsPagedResponse> + queryUserRootContentsSettings() { + return queryUserRootContentsSettings; + } + + /** Returns the builder for the settings used for calls to moveFolder. */ + public UnaryCallSettings.Builder moveFolderSettings() { + return moveFolderSettings; + } + + /** Returns the builder for the settings used for calls to moveFolder. */ + public OperationCallSettings.Builder + moveFolderOperationSettings() { + return moveFolderOperationSettings; + } + /** Returns the builder for the settings used for calls to listRepositories. */ public PagedCallSettings.Builder< ListRepositoriesRequest, ListRepositoriesResponse, ListRepositoriesPagedResponse> @@ -2525,6 +3301,17 @@ public UnaryCallSettings.Builder deleteRepositor return deleteRepositorySettings; } + /** Returns the builder for the settings used for calls to moveRepository. */ + public UnaryCallSettings.Builder moveRepositorySettings() { + return moveRepositorySettings; + } + + /** Returns the builder for the settings used for calls to moveRepository. */ + public OperationCallSettings.Builder + moveRepositoryOperationSettings() { + return moveRepositoryOperationSettings; + } + /** Returns the builder for the settings used for calls to commitRepositoryChanges. */ public UnaryCallSettings.Builder< CommitRepositoryChangesRequest, CommitRepositoryChangesResponse> @@ -2842,16 +3629,9 @@ public UnaryCallSettings.Builder updateConfigSettin return updateConfigSettings; } - /** Returns the builder for the settings used for calls to listLocations. */ - public PagedCallSettings.Builder< - ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> - listLocationsSettings() { - return listLocationsSettings; - } - - /** Returns the builder for the settings used for calls to getLocation. */ - public UnaryCallSettings.Builder getLocationSettings() { - return getLocationSettings; + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; } /** Returns the builder for the settings used for calls to setIamPolicy. */ @@ -2859,17 +3639,24 @@ public UnaryCallSettings.Builder setIamPolicySettin return setIamPolicySettings; } - /** Returns the builder for the settings used for calls to getIamPolicy. */ - public UnaryCallSettings.Builder getIamPolicySettings() { - return getIamPolicySettings; - } - /** Returns the builder for the settings used for calls to testIamPermissions. */ public UnaryCallSettings.Builder testIamPermissionsSettings() { return testIamPermissionsSettings; } + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + @Override public DataformStubSettings build() throws IOException { return new DataformStubSettings(this); diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/GrpcDataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/GrpcDataformStub.java index cc5410c2d860..eeaa0a03de7b 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/GrpcDataformStub.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/GrpcDataformStub.java @@ -26,9 +26,13 @@ import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkspacesPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryCompilationResultActionsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryFolderContentsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryRepositoryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryTeamFolderContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryUserRootContentsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryWorkflowInvocationActionsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.SearchFilesPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.SearchTeamFoldersPagedResponse; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; @@ -36,6 +40,7 @@ import com.google.api.gax.grpc.GrpcCallSettings; import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest; @@ -49,13 +54,17 @@ import com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse; import com.google.cloud.dataform.v1beta1.Config; import com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest; +import com.google.cloud.dataform.v1beta1.CreateFolderRequest; import com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest; import com.google.cloud.dataform.v1beta1.CreateRepositoryRequest; +import com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest; import com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest; import com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest; +import com.google.cloud.dataform.v1beta1.DeleteFolderRequest; import com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest; import com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest; +import com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest; import com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest; import com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest; @@ -69,10 +78,13 @@ import com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse; import com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest; import com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse; +import com.google.cloud.dataform.v1beta1.Folder; import com.google.cloud.dataform.v1beta1.GetCompilationResultRequest; import com.google.cloud.dataform.v1beta1.GetConfigRequest; +import com.google.cloud.dataform.v1beta1.GetFolderRequest; import com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest; import com.google.cloud.dataform.v1beta1.GetRepositoryRequest; +import com.google.cloud.dataform.v1beta1.GetTeamFolderRequest; import com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest; import com.google.cloud.dataform.v1beta1.GetWorkspaceRequest; @@ -96,6 +108,10 @@ import com.google.cloud.dataform.v1beta1.MoveDirectoryResponse; import com.google.cloud.dataform.v1beta1.MoveFileRequest; import com.google.cloud.dataform.v1beta1.MoveFileResponse; +import com.google.cloud.dataform.v1beta1.MoveFolderMetadata; +import com.google.cloud.dataform.v1beta1.MoveFolderRequest; +import com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata; +import com.google.cloud.dataform.v1beta1.MoveRepositoryRequest; import com.google.cloud.dataform.v1beta1.PullGitCommitsRequest; import com.google.cloud.dataform.v1beta1.PullGitCommitsResponse; import com.google.cloud.dataform.v1beta1.PushGitCommitsRequest; @@ -104,8 +120,14 @@ import com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse; import com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest; import com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse; +import com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest; +import com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse; import com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest; import com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse; +import com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest; +import com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse; +import com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest; +import com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse; import com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest; import com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse; import com.google.cloud.dataform.v1beta1.ReadFileRequest; @@ -122,9 +144,14 @@ import com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesResponse; import com.google.cloud.dataform.v1beta1.SearchFilesRequest; import com.google.cloud.dataform.v1beta1.SearchFilesResponse; +import com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest; +import com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse; +import com.google.cloud.dataform.v1beta1.TeamFolder; import com.google.cloud.dataform.v1beta1.UpdateConfigRequest; +import com.google.cloud.dataform.v1beta1.UpdateFolderRequest; import com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest; import com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest; +import com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest; import com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.WorkflowConfig; import com.google.cloud.dataform.v1beta1.WorkflowInvocation; @@ -140,6 +167,7 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; import com.google.protobuf.Empty; import io.grpc.MethodDescriptor; @@ -157,6 +185,145 @@ @BetaApi @Generated("by gapic-generator-java") public class GrpcDataformStub extends DataformStub { + private static final MethodDescriptor + getTeamFolderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/GetTeamFolder") + .setRequestMarshaller( + ProtoUtils.marshaller(GetTeamFolderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(TeamFolder.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createTeamFolderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/CreateTeamFolder") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateTeamFolderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(TeamFolder.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateTeamFolderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/UpdateTeamFolder") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateTeamFolderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(TeamFolder.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteTeamFolderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/DeleteTeamFolder") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteTeamFolderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + QueryTeamFolderContentsRequest, QueryTeamFolderContentsResponse> + queryTeamFolderContentsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/QueryTeamFolderContents") + .setRequestMarshaller( + ProtoUtils.marshaller(QueryTeamFolderContentsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(QueryTeamFolderContentsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + searchTeamFoldersMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/SearchTeamFolders") + .setRequestMarshaller( + ProtoUtils.marshaller(SearchTeamFoldersRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SearchTeamFoldersResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getFolderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/GetFolder") + .setRequestMarshaller(ProtoUtils.marshaller(GetFolderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Folder.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor createFolderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/CreateFolder") + .setRequestMarshaller(ProtoUtils.marshaller(CreateFolderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Folder.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor updateFolderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/UpdateFolder") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateFolderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Folder.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor deleteFolderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/DeleteFolder") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteFolderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + queryFolderContentsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/QueryFolderContents") + .setRequestMarshaller( + ProtoUtils.marshaller(QueryFolderContentsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(QueryFolderContentsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + queryUserRootContentsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/QueryUserRootContents") + .setRequestMarshaller( + ProtoUtils.marshaller(QueryUserRootContentsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(QueryUserRootContentsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor moveFolderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/MoveFolder") + .setRequestMarshaller(ProtoUtils.marshaller(MoveFolderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listRepositoriesMethodDescriptor = MethodDescriptor.newBuilder() @@ -213,6 +380,17 @@ public class GrpcDataformStub extends DataformStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + moveRepositoryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/MoveRepository") + .setRequestMarshaller( + ProtoUtils.marshaller(MoveRepositoryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor< CommitRepositoryChangesRequest, CommitRepositoryChangesResponse> commitRepositoryChangesMethodDescriptor = @@ -805,50 +983,29 @@ public class GrpcDataformStub extends DataformStub { .setSampledToLocalTracing(true) .build(); - private static final MethodDescriptor - listLocationsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.location.Locations/ListLocations") - .setRequestMarshaller( - ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor getLocationMethodDescriptor = - MethodDescriptor.newBuilder() + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.location.Locations/GetLocation") - .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor setIamPolicyMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/SetIamPolicy") .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) .setSampledToLocalTracing(true) .build(); - private static final MethodDescriptor getIamPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") - .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - private static final MethodDescriptor testIamPermissionsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/TestIamPermissions") .setRequestMarshaller( ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) .setResponseMarshaller( @@ -856,6 +1013,54 @@ public class GrpcDataformStub extends DataformStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable getTeamFolderCallable; + private final UnaryCallable createTeamFolderCallable; + private final UnaryCallable updateTeamFolderCallable; + private final UnaryCallable deleteTeamFolderCallable; + private final UnaryCallable + queryTeamFolderContentsCallable; + private final UnaryCallable + queryTeamFolderContentsPagedCallable; + private final UnaryCallable + searchTeamFoldersCallable; + private final UnaryCallable + searchTeamFoldersPagedCallable; + private final UnaryCallable getFolderCallable; + private final UnaryCallable createFolderCallable; + private final UnaryCallable updateFolderCallable; + private final UnaryCallable deleteFolderCallable; + private final UnaryCallable + queryFolderContentsCallable; + private final UnaryCallable + queryFolderContentsPagedCallable; + private final UnaryCallable + queryUserRootContentsCallable; + private final UnaryCallable + queryUserRootContentsPagedCallable; + private final UnaryCallable moveFolderCallable; + private final OperationCallable + moveFolderOperationCallable; private final UnaryCallable listRepositoriesCallable; private final UnaryCallable @@ -864,6 +1069,9 @@ public class GrpcDataformStub extends DataformStub { private final UnaryCallable createRepositoryCallable; private final UnaryCallable updateRepositoryCallable; private final UnaryCallable deleteRepositoryCallable; + private final UnaryCallable moveRepositoryCallable; + private final OperationCallable + moveRepositoryOperationCallable; private final UnaryCallable commitRepositoryChangesCallable; private final UnaryCallable @@ -971,14 +1179,14 @@ public class GrpcDataformStub extends DataformStub { queryWorkflowInvocationActionsPagedCallable; private final UnaryCallable getConfigCallable; private final UnaryCallable updateConfigCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; private final UnaryCallable getLocationCallable; - private final UnaryCallable setIamPolicyCallable; - private final UnaryCallable getIamPolicyCallable; - private final UnaryCallable - testIamPermissionsCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -1019,6 +1227,143 @@ protected GrpcDataformStub( this.callableFactory = callableFactory; this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + GrpcCallSettings getTeamFolderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getTeamFolderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createTeamFolderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createTeamFolderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateTeamFolderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateTeamFolderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "team_folder.name", String.valueOf(request.getTeamFolder().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteTeamFolderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteTeamFolderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + queryTeamFolderContentsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(queryTeamFolderContentsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("team_folder", String.valueOf(request.getTeamFolder())); + return builder.build(); + }) + .build(); + GrpcCallSettings + searchTeamFoldersTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(searchTeamFoldersMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("location", String.valueOf(request.getLocation())); + return builder.build(); + }) + .build(); + GrpcCallSettings getFolderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getFolderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createFolderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createFolderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateFolderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateFolderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("folder.name", String.valueOf(request.getFolder().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteFolderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteFolderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + queryFolderContentsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(queryFolderContentsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("folder", String.valueOf(request.getFolder())); + return builder.build(); + }) + .build(); + GrpcCallSettings + queryUserRootContentsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(queryUserRootContentsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("location", String.valueOf(request.getLocation())); + return builder.build(); + }) + .build(); + GrpcCallSettings moveFolderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(moveFolderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings listRepositoriesTransportSettings = GrpcCallSettings.newBuilder() @@ -1070,6 +1415,16 @@ protected GrpcDataformStub( return builder.build(); }) .build(); + GrpcCallSettings moveRepositoryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(moveRepositoryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings commitRepositoryChangesTransportSettings = GrpcCallSettings @@ -1615,23 +1970,13 @@ protected GrpcDataformStub( return builder.build(); }) .build(); - GrpcCallSettings listLocationsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listLocationsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings getLocationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getLocationMethodDescriptor) + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); + builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) .build(); @@ -1645,16 +1990,6 @@ protected GrpcDataformStub( return builder.build(); }) .build(); - GrpcCallSettings getIamPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getIamPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("resource", String.valueOf(request.getResource())); - return builder.build(); - }) - .build(); GrpcCallSettings testIamPermissionsTransportSettings = GrpcCallSettings.newBuilder() @@ -1666,7 +2001,100 @@ protected GrpcDataformStub( return builder.build(); }) .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + this.getTeamFolderCallable = + callableFactory.createUnaryCallable( + getTeamFolderTransportSettings, settings.getTeamFolderSettings(), clientContext); + this.createTeamFolderCallable = + callableFactory.createUnaryCallable( + createTeamFolderTransportSettings, settings.createTeamFolderSettings(), clientContext); + this.updateTeamFolderCallable = + callableFactory.createUnaryCallable( + updateTeamFolderTransportSettings, settings.updateTeamFolderSettings(), clientContext); + this.deleteTeamFolderCallable = + callableFactory.createUnaryCallable( + deleteTeamFolderTransportSettings, settings.deleteTeamFolderSettings(), clientContext); + this.queryTeamFolderContentsCallable = + callableFactory.createUnaryCallable( + queryTeamFolderContentsTransportSettings, + settings.queryTeamFolderContentsSettings(), + clientContext); + this.queryTeamFolderContentsPagedCallable = + callableFactory.createPagedCallable( + queryTeamFolderContentsTransportSettings, + settings.queryTeamFolderContentsSettings(), + clientContext); + this.searchTeamFoldersCallable = + callableFactory.createUnaryCallable( + searchTeamFoldersTransportSettings, + settings.searchTeamFoldersSettings(), + clientContext); + this.searchTeamFoldersPagedCallable = + callableFactory.createPagedCallable( + searchTeamFoldersTransportSettings, + settings.searchTeamFoldersSettings(), + clientContext); + this.getFolderCallable = + callableFactory.createUnaryCallable( + getFolderTransportSettings, settings.getFolderSettings(), clientContext); + this.createFolderCallable = + callableFactory.createUnaryCallable( + createFolderTransportSettings, settings.createFolderSettings(), clientContext); + this.updateFolderCallable = + callableFactory.createUnaryCallable( + updateFolderTransportSettings, settings.updateFolderSettings(), clientContext); + this.deleteFolderCallable = + callableFactory.createUnaryCallable( + deleteFolderTransportSettings, settings.deleteFolderSettings(), clientContext); + this.queryFolderContentsCallable = + callableFactory.createUnaryCallable( + queryFolderContentsTransportSettings, + settings.queryFolderContentsSettings(), + clientContext); + this.queryFolderContentsPagedCallable = + callableFactory.createPagedCallable( + queryFolderContentsTransportSettings, + settings.queryFolderContentsSettings(), + clientContext); + this.queryUserRootContentsCallable = + callableFactory.createUnaryCallable( + queryUserRootContentsTransportSettings, + settings.queryUserRootContentsSettings(), + clientContext); + this.queryUserRootContentsPagedCallable = + callableFactory.createPagedCallable( + queryUserRootContentsTransportSettings, + settings.queryUserRootContentsSettings(), + clientContext); + this.moveFolderCallable = + callableFactory.createUnaryCallable( + moveFolderTransportSettings, settings.moveFolderSettings(), clientContext); + this.moveFolderOperationCallable = + callableFactory.createOperationCallable( + moveFolderTransportSettings, + settings.moveFolderOperationSettings(), + clientContext, + operationsStub); this.listRepositoriesCallable = callableFactory.createUnaryCallable( listRepositoriesTransportSettings, settings.listRepositoriesSettings(), clientContext); @@ -1685,6 +2113,15 @@ protected GrpcDataformStub( this.deleteRepositoryCallable = callableFactory.createUnaryCallable( deleteRepositoryTransportSettings, settings.deleteRepositorySettings(), clientContext); + this.moveRepositoryCallable = + callableFactory.createUnaryCallable( + moveRepositoryTransportSettings, settings.moveRepositorySettings(), clientContext); + this.moveRepositoryOperationCallable = + callableFactory.createOperationCallable( + moveRepositoryTransportSettings, + settings.moveRepositoryOperationSettings(), + clientContext, + operationsStub); this.commitRepositoryChangesCallable = callableFactory.createUnaryCallable( commitRepositoryChangesTransportSettings, @@ -1945,26 +2382,26 @@ protected GrpcDataformStub( this.updateConfigCallable = callableFactory.createUnaryCallable( updateConfigTransportSettings, settings.updateConfigSettings(), clientContext); - this.listLocationsCallable = - callableFactory.createUnaryCallable( - listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); - this.listLocationsPagedCallable = - callableFactory.createPagedCallable( - listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); - this.getLocationCallable = + this.getIamPolicyCallable = callableFactory.createUnaryCallable( - getLocationTransportSettings, settings.getLocationSettings(), clientContext); + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); this.setIamPolicyCallable = callableFactory.createUnaryCallable( setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); - this.getIamPolicyCallable = - callableFactory.createUnaryCallable( - getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); this.testIamPermissionsCallable = callableFactory.createUnaryCallable( testIamPermissionsTransportSettings, settings.testIamPermissionsSettings(), clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -1974,6 +2411,105 @@ public GrpcOperationsStub getOperationsStub() { return operationsStub; } + @Override + public UnaryCallable getTeamFolderCallable() { + return getTeamFolderCallable; + } + + @Override + public UnaryCallable createTeamFolderCallable() { + return createTeamFolderCallable; + } + + @Override + public UnaryCallable updateTeamFolderCallable() { + return updateTeamFolderCallable; + } + + @Override + public UnaryCallable deleteTeamFolderCallable() { + return deleteTeamFolderCallable; + } + + @Override + public UnaryCallable + queryTeamFolderContentsCallable() { + return queryTeamFolderContentsCallable; + } + + @Override + public UnaryCallable + queryTeamFolderContentsPagedCallable() { + return queryTeamFolderContentsPagedCallable; + } + + @Override + public UnaryCallable + searchTeamFoldersCallable() { + return searchTeamFoldersCallable; + } + + @Override + public UnaryCallable + searchTeamFoldersPagedCallable() { + return searchTeamFoldersPagedCallable; + } + + @Override + public UnaryCallable getFolderCallable() { + return getFolderCallable; + } + + @Override + public UnaryCallable createFolderCallable() { + return createFolderCallable; + } + + @Override + public UnaryCallable updateFolderCallable() { + return updateFolderCallable; + } + + @Override + public UnaryCallable deleteFolderCallable() { + return deleteFolderCallable; + } + + @Override + public UnaryCallable + queryFolderContentsCallable() { + return queryFolderContentsCallable; + } + + @Override + public UnaryCallable + queryFolderContentsPagedCallable() { + return queryFolderContentsPagedCallable; + } + + @Override + public UnaryCallable + queryUserRootContentsCallable() { + return queryUserRootContentsCallable; + } + + @Override + public UnaryCallable + queryUserRootContentsPagedCallable() { + return queryUserRootContentsPagedCallable; + } + + @Override + public UnaryCallable moveFolderCallable() { + return moveFolderCallable; + } + + @Override + public OperationCallable + moveFolderOperationCallable() { + return moveFolderOperationCallable; + } + @Override public UnaryCallable listRepositoriesCallable() { @@ -2006,6 +2542,17 @@ public UnaryCallable deleteRepositoryCallable() return deleteRepositoryCallable; } + @Override + public UnaryCallable moveRepositoryCallable() { + return moveRepositoryCallable; + } + + @Override + public OperationCallable + moveRepositoryOperationCallable() { + return moveRepositoryOperationCallable; + } + @Override public UnaryCallable commitRepositoryChangesCallable() { @@ -2346,35 +2893,35 @@ public UnaryCallable updateConfigCallable() { } @Override - public UnaryCallable listLocationsCallable() { - return listLocationsCallable; + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; } @Override - public UnaryCallable - listLocationsPagedCallable() { - return listLocationsPagedCallable; + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; } @Override - public UnaryCallable getLocationCallable() { - return getLocationCallable; + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; } @Override - public UnaryCallable setIamPolicyCallable() { - return setIamPolicyCallable; + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; } @Override - public UnaryCallable getIamPolicyCallable() { - return getIamPolicyCallable; + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; } @Override - public UnaryCallable - testIamPermissionsCallable() { - return testIamPermissionsCallable; + public UnaryCallable getLocationCallable() { + return getLocationCallable; } @Override diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/HttpJsonDataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/HttpJsonDataformStub.java index 14249fba6a7e..cd546c3392b8 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/HttpJsonDataformStub.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/HttpJsonDataformStub.java @@ -26,21 +26,29 @@ import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkspacesPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryCompilationResultActionsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryFolderContentsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryRepositoryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryTeamFolderContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryUserRootContentsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryWorkflowInvocationActionsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.SearchFilesPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.SearchTeamFoldersPagedResponse; +import com.google.api.HttpRule; import com.google.api.core.BetaApi; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; import com.google.api.gax.httpjson.ApiMethodDescriptor; import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; 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.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest; @@ -54,13 +62,17 @@ import com.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse; import com.google.cloud.dataform.v1beta1.Config; import com.google.cloud.dataform.v1beta1.CreateCompilationResultRequest; +import com.google.cloud.dataform.v1beta1.CreateFolderRequest; import com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest; import com.google.cloud.dataform.v1beta1.CreateRepositoryRequest; +import com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest; import com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest; import com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest; +import com.google.cloud.dataform.v1beta1.DeleteFolderRequest; import com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest; import com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest; +import com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest; import com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest; import com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest; @@ -74,10 +86,13 @@ import com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse; import com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest; import com.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse; +import com.google.cloud.dataform.v1beta1.Folder; import com.google.cloud.dataform.v1beta1.GetCompilationResultRequest; import com.google.cloud.dataform.v1beta1.GetConfigRequest; +import com.google.cloud.dataform.v1beta1.GetFolderRequest; import com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest; import com.google.cloud.dataform.v1beta1.GetRepositoryRequest; +import com.google.cloud.dataform.v1beta1.GetTeamFolderRequest; import com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest; import com.google.cloud.dataform.v1beta1.GetWorkspaceRequest; @@ -101,6 +116,10 @@ import com.google.cloud.dataform.v1beta1.MoveDirectoryResponse; import com.google.cloud.dataform.v1beta1.MoveFileRequest; import com.google.cloud.dataform.v1beta1.MoveFileResponse; +import com.google.cloud.dataform.v1beta1.MoveFolderMetadata; +import com.google.cloud.dataform.v1beta1.MoveFolderRequest; +import com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata; +import com.google.cloud.dataform.v1beta1.MoveRepositoryRequest; import com.google.cloud.dataform.v1beta1.PullGitCommitsRequest; import com.google.cloud.dataform.v1beta1.PullGitCommitsResponse; import com.google.cloud.dataform.v1beta1.PushGitCommitsRequest; @@ -109,8 +128,14 @@ import com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse; import com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest; import com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse; +import com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest; +import com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse; import com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest; import com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse; +import com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest; +import com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse; +import com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest; +import com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse; import com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest; import com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse; import com.google.cloud.dataform.v1beta1.ReadFileRequest; @@ -127,9 +152,14 @@ import com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesResponse; import com.google.cloud.dataform.v1beta1.SearchFilesRequest; import com.google.cloud.dataform.v1beta1.SearchFilesResponse; +import com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest; +import com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse; +import com.google.cloud.dataform.v1beta1.TeamFolder; import com.google.cloud.dataform.v1beta1.UpdateConfigRequest; +import com.google.cloud.dataform.v1beta1.UpdateFolderRequest; import com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest; import com.google.cloud.dataform.v1beta1.UpdateRepositoryRequest; +import com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest; import com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.WorkflowConfig; import com.google.cloud.dataform.v1beta1.WorkflowInvocation; @@ -140,11 +170,13 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableMap; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import com.google.protobuf.Empty; import com.google.protobuf.TypeRegistry; import java.io.IOException; @@ -164,7 +196,498 @@ @BetaApi @Generated("by gapic-generator-java") public class HttpJsonDataformStub extends DataformStub { - private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Empty.getDescriptor()) + .add(MoveRepositoryMetadata.getDescriptor()) + .add(MoveFolderMetadata.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + getTeamFolderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/GetTeamFolder") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/teamFolders/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TeamFolder.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createTeamFolderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/CreateTeamFolder") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*}/teamFolders", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "teamFolderId", request.getTeamFolderId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("teamFolder", request.getTeamFolder(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TeamFolder.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateTeamFolderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/UpdateTeamFolder") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{teamFolder.name=projects/*/locations/*/teamFolders/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "teamFolder.name", request.getTeamFolder().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("teamFolder", request.getTeamFolder(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TeamFolder.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteTeamFolderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/DeleteTeamFolder") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/teamFolders/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + QueryTeamFolderContentsRequest, QueryTeamFolderContentsResponse> + queryTeamFolderContentsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/QueryTeamFolderContents") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{teamFolder=projects/*/locations/*/teamFolders/*}:queryContents", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "teamFolder", request.getTeamFolder()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(QueryTeamFolderContentsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + searchTeamFoldersMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/SearchTeamFolders") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{location=projects/*/locations/*}/teamFolders:search", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "location", request.getLocation()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SearchTeamFoldersResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getFolderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/GetFolder") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/folders/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Folder.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createFolderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/CreateFolder") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*}/folders", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "folderId", request.getFolderId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("folder", request.getFolder(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Folder.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateFolderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/UpdateFolder") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{folder.name=projects/*/locations/*/folders/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "folder.name", request.getFolder().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("folder", request.getFolder(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Folder.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteFolderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/DeleteFolder") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/folders/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + queryFolderContentsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/QueryFolderContents") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{folder=projects/*/locations/*/folders/*}:queryFolderContents", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "folder", request.getFolder()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(QueryFolderContentsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + QueryUserRootContentsRequest, QueryUserRootContentsResponse> + queryUserRootContentsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/QueryUserRootContents") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{location=projects/*/locations/*}:queryUserRootContents", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "location", request.getLocation()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(QueryUserRootContentsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + moveFolderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/MoveFolder") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/folders/*}:move", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (MoveFolderRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); private static final ApiMethodDescriptor listRepositoriesMethodDescriptor = @@ -351,6 +874,46 @@ public class HttpJsonDataformStub extends DataformStub { .build()) .build(); + private static final ApiMethodDescriptor + moveRepositoryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/MoveRepository") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/repositories/*}:move", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (MoveRepositoryRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor< CommitRepositoryChangesRequest, CommitRepositoryChangesResponse> commitRepositoryChangesMethodDescriptor = @@ -2176,97 +2739,111 @@ public class HttpJsonDataformStub extends DataformStub { .build()) .build(); - private static final ApiMethodDescriptor - listLocationsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.location.Locations/ListLocations") + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/GetIamPolicy") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1beta1/{name=projects/*}/locations", + "/v1beta1/{resource=projects/*/locations/*/repositories/*}:getIamPolicy", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "resource", request.getResource()); return fields; }) + .setAdditionalPaths( + "/v1beta1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:getIamPolicy", + "/v1beta1/{resource=projects/*/locations/*/folders/*}:getIamPolicy", + "/v1beta1/{resource=projects/*/locations/*/teamFolders/*}:getIamPolicy") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "options", request.getOptions()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - getLocationMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.location.Locations/GetLocation") - .setHttpMethod("GET") + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/SetIamPolicy") + .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1beta1/{name=projects/*/locations/*}", + "/v1beta1/{resource=projects/*/locations/*/repositories/*}:setIamPolicy", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "resource", request.getResource()); return fields; }) + .setAdditionalPaths( + "/v1beta1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:setIamPolicy", + "/v1beta1/{resource=projects/*/locations/*/folders/*}:setIamPolicy", + "/v1beta1/{resource=projects/*/locations/*/teamFolders/*}:setIamPolicy") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Location.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - setIamPolicyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + private static final ApiMethodDescriptor + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/TestIamPermissions") .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1beta1/{resource=projects/*/locations/*/repositories/*}:setIamPolicy", + "/v1beta1/{resource=projects/*/locations/*/repositories/*}:testIamPermissions", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "resource", request.getResource()); return fields; }) .setAdditionalPaths( - "/v1beta1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:setIamPolicy") + "/v1beta1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:testIamPermissions", + "/v1beta1/{resource=projects/*/locations/*/folders/*}:testIamPermissions", + "/v1beta1/{resource=projects/*/locations/*/teamFolders/*}:testIamPermissions") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; @@ -2277,35 +2854,33 @@ public class HttpJsonDataformStub extends DataformStub { .toBody("*", request.toBuilder().clearResource().build(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Policy.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - getIamPolicyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1beta1/{resource=projects/*/locations/*/repositories/*}:getIamPolicy", + "/v1beta1/{name=projects/*}/locations", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) - .setAdditionalPaths( - "/v1beta1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:getIamPolicy") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; @@ -2313,51 +2888,73 @@ public class HttpJsonDataformStub extends DataformStub { .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Policy.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - testIamPermissionsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") - .setHttpMethod("POST") + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1beta1/{resource=projects/*/locations/*/repositories/*}:testIamPermissions", + "/v1beta1/{name=projects/*/locations/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) - .setAdditionalPaths( - "/v1beta1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:testIamPermissions") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build(), true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Location.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); + private final UnaryCallable getTeamFolderCallable; + private final UnaryCallable createTeamFolderCallable; + private final UnaryCallable updateTeamFolderCallable; + private final UnaryCallable deleteTeamFolderCallable; + private final UnaryCallable + queryTeamFolderContentsCallable; + private final UnaryCallable + queryTeamFolderContentsPagedCallable; + private final UnaryCallable + searchTeamFoldersCallable; + private final UnaryCallable + searchTeamFoldersPagedCallable; + private final UnaryCallable getFolderCallable; + private final UnaryCallable createFolderCallable; + private final UnaryCallable updateFolderCallable; + private final UnaryCallable deleteFolderCallable; + private final UnaryCallable + queryFolderContentsCallable; + private final UnaryCallable + queryFolderContentsPagedCallable; + private final UnaryCallable + queryUserRootContentsCallable; + private final UnaryCallable + queryUserRootContentsPagedCallable; + private final UnaryCallable moveFolderCallable; + private final OperationCallable + moveFolderOperationCallable; private final UnaryCallable listRepositoriesCallable; private final UnaryCallable @@ -2366,6 +2963,9 @@ public class HttpJsonDataformStub extends DataformStub { private final UnaryCallable createRepositoryCallable; private final UnaryCallable updateRepositoryCallable; private final UnaryCallable deleteRepositoryCallable; + private final UnaryCallable moveRepositoryCallable; + private final OperationCallable + moveRepositoryOperationCallable; private final UnaryCallable commitRepositoryChangesCallable; private final UnaryCallable @@ -2473,16 +3073,17 @@ public class HttpJsonDataformStub extends DataformStub { queryWorkflowInvocationActionsPagedCallable; private final UnaryCallable getConfigCallable; private final UnaryCallable updateConfigCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; private final UnaryCallable getLocationCallable; - private final UnaryCallable setIamPolicyCallable; - private final UnaryCallable getIamPolicyCallable; - private final UnaryCallable - testIamPermissionsCallable; private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; private final HttpJsonStubCallableFactory callableFactory; public static final HttpJsonDataformStub create(DataformStubSettings settings) @@ -2522,7 +3123,185 @@ protected HttpJsonDataformStub( HttpJsonStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; - + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost("/v1beta1/{name=projects/*/locations/*/operations/*}:cancel") + .build()) + .put( + "google.longrunning.Operations.DeleteOperation", + HttpRule.newBuilder() + .setDelete("/v1beta1/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v1beta1/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet("/v1beta1/{name=projects/*/locations/*}/operations") + .build()) + .build()); + + HttpJsonCallSettings getTeamFolderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getTeamFolderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createTeamFolderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createTeamFolderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateTeamFolderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateTeamFolderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "team_folder.name", String.valueOf(request.getTeamFolder().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteTeamFolderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteTeamFolderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + queryTeamFolderContentsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(queryTeamFolderContentsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("team_folder", String.valueOf(request.getTeamFolder())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + searchTeamFoldersTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(searchTeamFoldersMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("location", String.valueOf(request.getLocation())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getFolderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getFolderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createFolderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createFolderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateFolderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateFolderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("folder.name", String.valueOf(request.getFolder().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteFolderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteFolderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + queryFolderContentsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(queryFolderContentsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("folder", String.valueOf(request.getFolder())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + queryUserRootContentsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(queryUserRootContentsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("location", String.valueOf(request.getLocation())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings moveFolderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(moveFolderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listRepositoriesTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2579,6 +3358,17 @@ protected HttpJsonDataformStub( return builder.build(); }) .build(); + HttpJsonCallSettings moveRepositoryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(moveRepositoryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings commitRepositoryChangesTransportSettings = HttpJsonCallSettings @@ -3183,26 +3973,14 @@ protected HttpJsonDataformStub( return builder.build(); }) .build(); - HttpJsonCallSettings - listLocationsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listLocationsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings getLocationTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getLocationMethodDescriptor) + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); + builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) .build(); @@ -3217,17 +3995,6 @@ protected HttpJsonDataformStub( return builder.build(); }) .build(); - HttpJsonCallSettings getIamPolicyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getIamPolicyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("resource", String.valueOf(request.getResource())); - return builder.build(); - }) - .build(); HttpJsonCallSettings testIamPermissionsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3240,7 +4007,103 @@ protected HttpJsonDataformStub( return builder.build(); }) .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + this.getTeamFolderCallable = + callableFactory.createUnaryCallable( + getTeamFolderTransportSettings, settings.getTeamFolderSettings(), clientContext); + this.createTeamFolderCallable = + callableFactory.createUnaryCallable( + createTeamFolderTransportSettings, settings.createTeamFolderSettings(), clientContext); + this.updateTeamFolderCallable = + callableFactory.createUnaryCallable( + updateTeamFolderTransportSettings, settings.updateTeamFolderSettings(), clientContext); + this.deleteTeamFolderCallable = + callableFactory.createUnaryCallable( + deleteTeamFolderTransportSettings, settings.deleteTeamFolderSettings(), clientContext); + this.queryTeamFolderContentsCallable = + callableFactory.createUnaryCallable( + queryTeamFolderContentsTransportSettings, + settings.queryTeamFolderContentsSettings(), + clientContext); + this.queryTeamFolderContentsPagedCallable = + callableFactory.createPagedCallable( + queryTeamFolderContentsTransportSettings, + settings.queryTeamFolderContentsSettings(), + clientContext); + this.searchTeamFoldersCallable = + callableFactory.createUnaryCallable( + searchTeamFoldersTransportSettings, + settings.searchTeamFoldersSettings(), + clientContext); + this.searchTeamFoldersPagedCallable = + callableFactory.createPagedCallable( + searchTeamFoldersTransportSettings, + settings.searchTeamFoldersSettings(), + clientContext); + this.getFolderCallable = + callableFactory.createUnaryCallable( + getFolderTransportSettings, settings.getFolderSettings(), clientContext); + this.createFolderCallable = + callableFactory.createUnaryCallable( + createFolderTransportSettings, settings.createFolderSettings(), clientContext); + this.updateFolderCallable = + callableFactory.createUnaryCallable( + updateFolderTransportSettings, settings.updateFolderSettings(), clientContext); + this.deleteFolderCallable = + callableFactory.createUnaryCallable( + deleteFolderTransportSettings, settings.deleteFolderSettings(), clientContext); + this.queryFolderContentsCallable = + callableFactory.createUnaryCallable( + queryFolderContentsTransportSettings, + settings.queryFolderContentsSettings(), + clientContext); + this.queryFolderContentsPagedCallable = + callableFactory.createPagedCallable( + queryFolderContentsTransportSettings, + settings.queryFolderContentsSettings(), + clientContext); + this.queryUserRootContentsCallable = + callableFactory.createUnaryCallable( + queryUserRootContentsTransportSettings, + settings.queryUserRootContentsSettings(), + clientContext); + this.queryUserRootContentsPagedCallable = + callableFactory.createPagedCallable( + queryUserRootContentsTransportSettings, + settings.queryUserRootContentsSettings(), + clientContext); + this.moveFolderCallable = + callableFactory.createUnaryCallable( + moveFolderTransportSettings, settings.moveFolderSettings(), clientContext); + this.moveFolderOperationCallable = + callableFactory.createOperationCallable( + moveFolderTransportSettings, + settings.moveFolderOperationSettings(), + clientContext, + httpJsonOperationsStub); this.listRepositoriesCallable = callableFactory.createUnaryCallable( listRepositoriesTransportSettings, settings.listRepositoriesSettings(), clientContext); @@ -3259,6 +4122,15 @@ protected HttpJsonDataformStub( this.deleteRepositoryCallable = callableFactory.createUnaryCallable( deleteRepositoryTransportSettings, settings.deleteRepositorySettings(), clientContext); + this.moveRepositoryCallable = + callableFactory.createUnaryCallable( + moveRepositoryTransportSettings, settings.moveRepositorySettings(), clientContext); + this.moveRepositoryOperationCallable = + callableFactory.createOperationCallable( + moveRepositoryTransportSettings, + settings.moveRepositoryOperationSettings(), + clientContext, + httpJsonOperationsStub); this.commitRepositoryChangesCallable = callableFactory.createUnaryCallable( commitRepositoryChangesTransportSettings, @@ -3519,26 +4391,26 @@ protected HttpJsonDataformStub( this.updateConfigCallable = callableFactory.createUnaryCallable( updateConfigTransportSettings, settings.updateConfigSettings(), clientContext); - this.listLocationsCallable = - callableFactory.createUnaryCallable( - listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); - this.listLocationsPagedCallable = - callableFactory.createPagedCallable( - listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); - this.getLocationCallable = + this.getIamPolicyCallable = callableFactory.createUnaryCallable( - getLocationTransportSettings, settings.getLocationSettings(), clientContext); + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); this.setIamPolicyCallable = callableFactory.createUnaryCallable( setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); - this.getIamPolicyCallable = - callableFactory.createUnaryCallable( - getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); this.testIamPermissionsCallable = callableFactory.createUnaryCallable( testIamPermissionsTransportSettings, settings.testIamPermissionsSettings(), clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -3547,11 +4419,25 @@ protected HttpJsonDataformStub( @InternalApi public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getTeamFolderMethodDescriptor); + methodDescriptors.add(createTeamFolderMethodDescriptor); + methodDescriptors.add(updateTeamFolderMethodDescriptor); + methodDescriptors.add(deleteTeamFolderMethodDescriptor); + methodDescriptors.add(queryTeamFolderContentsMethodDescriptor); + methodDescriptors.add(searchTeamFoldersMethodDescriptor); + methodDescriptors.add(getFolderMethodDescriptor); + methodDescriptors.add(createFolderMethodDescriptor); + methodDescriptors.add(updateFolderMethodDescriptor); + methodDescriptors.add(deleteFolderMethodDescriptor); + methodDescriptors.add(queryFolderContentsMethodDescriptor); + methodDescriptors.add(queryUserRootContentsMethodDescriptor); + methodDescriptors.add(moveFolderMethodDescriptor); methodDescriptors.add(listRepositoriesMethodDescriptor); methodDescriptors.add(getRepositoryMethodDescriptor); methodDescriptors.add(createRepositoryMethodDescriptor); methodDescriptors.add(updateRepositoryMethodDescriptor); methodDescriptors.add(deleteRepositoryMethodDescriptor); + methodDescriptors.add(moveRepositoryMethodDescriptor); methodDescriptors.add(commitRepositoryChangesMethodDescriptor); methodDescriptors.add(readRepositoryFileMethodDescriptor); methodDescriptors.add(queryRepositoryDirectoryContentsMethodDescriptor); @@ -3601,14 +4487,117 @@ public static List getMethodDescriptors() { methodDescriptors.add(queryWorkflowInvocationActionsMethodDescriptor); methodDescriptors.add(getConfigMethodDescriptor); methodDescriptors.add(updateConfigMethodDescriptor); - methodDescriptors.add(listLocationsMethodDescriptor); - methodDescriptors.add(getLocationMethodDescriptor); - methodDescriptors.add(setIamPolicyMethodDescriptor); methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); methodDescriptors.add(testIamPermissionsMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); return methodDescriptors; } + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable getTeamFolderCallable() { + return getTeamFolderCallable; + } + + @Override + public UnaryCallable createTeamFolderCallable() { + return createTeamFolderCallable; + } + + @Override + public UnaryCallable updateTeamFolderCallable() { + return updateTeamFolderCallable; + } + + @Override + public UnaryCallable deleteTeamFolderCallable() { + return deleteTeamFolderCallable; + } + + @Override + public UnaryCallable + queryTeamFolderContentsCallable() { + return queryTeamFolderContentsCallable; + } + + @Override + public UnaryCallable + queryTeamFolderContentsPagedCallable() { + return queryTeamFolderContentsPagedCallable; + } + + @Override + public UnaryCallable + searchTeamFoldersCallable() { + return searchTeamFoldersCallable; + } + + @Override + public UnaryCallable + searchTeamFoldersPagedCallable() { + return searchTeamFoldersPagedCallable; + } + + @Override + public UnaryCallable getFolderCallable() { + return getFolderCallable; + } + + @Override + public UnaryCallable createFolderCallable() { + return createFolderCallable; + } + + @Override + public UnaryCallable updateFolderCallable() { + return updateFolderCallable; + } + + @Override + public UnaryCallable deleteFolderCallable() { + return deleteFolderCallable; + } + + @Override + public UnaryCallable + queryFolderContentsCallable() { + return queryFolderContentsCallable; + } + + @Override + public UnaryCallable + queryFolderContentsPagedCallable() { + return queryFolderContentsPagedCallable; + } + + @Override + public UnaryCallable + queryUserRootContentsCallable() { + return queryUserRootContentsCallable; + } + + @Override + public UnaryCallable + queryUserRootContentsPagedCallable() { + return queryUserRootContentsPagedCallable; + } + + @Override + public UnaryCallable moveFolderCallable() { + return moveFolderCallable; + } + + @Override + public OperationCallable + moveFolderOperationCallable() { + return moveFolderOperationCallable; + } + @Override public UnaryCallable listRepositoriesCallable() { @@ -3641,6 +4630,17 @@ public UnaryCallable deleteRepositoryCallable() return deleteRepositoryCallable; } + @Override + public UnaryCallable moveRepositoryCallable() { + return moveRepositoryCallable; + } + + @Override + public OperationCallable + moveRepositoryOperationCallable() { + return moveRepositoryOperationCallable; + } + @Override public UnaryCallable commitRepositoryChangesCallable() { @@ -3981,35 +4981,35 @@ public UnaryCallable updateConfigCallable() { } @Override - public UnaryCallable listLocationsCallable() { - return listLocationsCallable; + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; } @Override - public UnaryCallable - listLocationsPagedCallable() { - return listLocationsPagedCallable; + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; } @Override - public UnaryCallable getLocationCallable() { - return getLocationCallable; + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; } @Override - public UnaryCallable setIamPolicyCallable() { - return setIamPolicyCallable; + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; } @Override - public UnaryCallable getIamPolicyCallable() { - return getIamPolicyCallable; + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; } @Override - public UnaryCallable - testIamPermissionsCallable() { - return testIamPermissionsCallable; + public UnaryCallable getLocationCallable() { + return getLocationCallable; } @Override diff --git a/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1beta1/reflect-config.json b/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1beta1/reflect-config.json index d2caa3b99da8..35421136b9ca 100644 --- a/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1beta1/reflect-config.json +++ b/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1beta1/reflect-config.json @@ -881,6 +881,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataform.v1beta1.CompilationResultAction$Relation$FileFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataform.v1beta1.CompilationResultAction$Relation$IncrementalTableConfig", "queryAllDeclaredConstructors": true, @@ -908,6 +917,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataform.v1beta1.CompilationResultAction$Relation$TableFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataform.v1beta1.CompilationResultAction$SimpleLoadMode", "queryAllDeclaredConstructors": true, @@ -1007,6 +1025,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataform.v1beta1.CreateFolderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CreateFolderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest", "queryAllDeclaredConstructors": true, @@ -1043,6 +1079,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest", "queryAllDeclaredConstructors": true, @@ -1115,6 +1169,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataform.v1beta1.DeleteFolderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.DeleteFolderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest", "queryAllDeclaredConstructors": true, @@ -1151,6 +1223,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest", "queryAllDeclaredConstructors": true, @@ -1466,6 +1556,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataform.v1beta1.Folder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.Folder$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataform.v1beta1.GetCompilationResultRequest", "queryAllDeclaredConstructors": true, @@ -1502,6 +1610,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataform.v1beta1.GetFolderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.GetFolderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataform.v1beta1.GetReleaseConfigRequest", "queryAllDeclaredConstructors": true, @@ -1538,6 +1664,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataform.v1beta1.GetTeamFolderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.GetTeamFolderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest", "queryAllDeclaredConstructors": true, @@ -1646,6 +1790,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataform.v1beta1.InvocationConfig$QueryPriority", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataform.v1beta1.ListCompilationResultsRequest", "queryAllDeclaredConstructors": true, @@ -1971,7 +2124,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.NotebookRuntimeOptions", + "name": "com.google.cloud.dataform.v1beta1.MoveFolderMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1980,7 +2133,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.NotebookRuntimeOptions$Builder", + "name": "com.google.cloud.dataform.v1beta1.MoveFolderMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1989,7 +2142,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.PullGitCommitsRequest", + "name": "com.google.cloud.dataform.v1beta1.MoveFolderMetadata$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1998,7 +2151,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.PullGitCommitsRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.MoveFolderRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2007,7 +2160,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.PullGitCommitsResponse", + "name": "com.google.cloud.dataform.v1beta1.MoveFolderRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2016,7 +2169,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.PullGitCommitsResponse$Builder", + "name": "com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2025,7 +2178,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.PushGitCommitsRequest", + "name": "com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2034,7 +2187,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.PushGitCommitsRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2043,7 +2196,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.PushGitCommitsResponse", + "name": "com.google.cloud.dataform.v1beta1.MoveRepositoryRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2052,7 +2205,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.PushGitCommitsResponse$Builder", + "name": "com.google.cloud.dataform.v1beta1.MoveRepositoryRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2061,7 +2214,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest", + "name": "com.google.cloud.dataform.v1beta1.NotebookRuntimeOptions", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2070,7 +2223,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.NotebookRuntimeOptions$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2079,7 +2232,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse", + "name": "com.google.cloud.dataform.v1beta1.PrivateResourceMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2088,7 +2241,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse$Builder", + "name": "com.google.cloud.dataform.v1beta1.PrivateResourceMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2097,7 +2250,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest", + "name": "com.google.cloud.dataform.v1beta1.PullGitCommitsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2106,7 +2259,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.PullGitCommitsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2115,7 +2268,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse", + "name": "com.google.cloud.dataform.v1beta1.PullGitCommitsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2124,7 +2277,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse$Builder", + "name": "com.google.cloud.dataform.v1beta1.PullGitCommitsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2133,7 +2286,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest", + "name": "com.google.cloud.dataform.v1beta1.PushGitCommitsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2142,7 +2295,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.PushGitCommitsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2151,7 +2304,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse", + "name": "com.google.cloud.dataform.v1beta1.PushGitCommitsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2160,7 +2313,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse$Builder", + "name": "com.google.cloud.dataform.v1beta1.PushGitCommitsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2169,7 +2322,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest", + "name": "com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2178,7 +2331,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2187,7 +2340,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse", + "name": "com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2196,7 +2349,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse$Builder", + "name": "com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2205,7 +2358,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ReadFileRequest", + "name": "com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2214,7 +2367,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ReadFileRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2223,7 +2376,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ReadFileResponse", + "name": "com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2232,7 +2385,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ReadFileResponse$Builder", + "name": "com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2241,7 +2394,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest", + "name": "com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2250,7 +2403,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2259,7 +2412,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse", + "name": "com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2268,7 +2421,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse$Builder", + "name": "com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2277,7 +2430,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.RelationDescriptor", + "name": "com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse$FolderContentsEntry", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2286,7 +2439,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.RelationDescriptor$Builder", + "name": "com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse$FolderContentsEntry$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2295,7 +2448,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.RelationDescriptor$ColumnDescriptor", + "name": "com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2304,7 +2457,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.RelationDescriptor$ColumnDescriptor$Builder", + "name": "com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2313,7 +2466,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ReleaseConfig", + "name": "com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2322,7 +2475,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ReleaseConfig$Builder", + "name": "com.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2331,7 +2484,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ReleaseConfig$ScheduledReleaseRecord", + "name": "com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2340,7 +2493,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ReleaseConfig$ScheduledReleaseRecord$Builder", + "name": "com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2349,7 +2502,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest", + "name": "com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2358,7 +2511,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2367,7 +2520,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.RemoveDirectoryResponse", + "name": "com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse$TeamFolderContentsEntry", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2376,7 +2529,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.RemoveDirectoryResponse$Builder", + "name": "com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse$TeamFolderContentsEntry$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2385,7 +2538,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.RemoveFileRequest", + "name": "com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2394,7 +2547,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.RemoveFileRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2403,7 +2556,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.RemoveFileResponse", + "name": "com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2412,7 +2565,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.RemoveFileResponse$Builder", + "name": "com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2421,7 +2574,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.Repository", + "name": "com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse$RootContentsEntry", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2430,7 +2583,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.Repository$Builder", + "name": "com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse$RootContentsEntry$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2439,7 +2592,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.Repository$GitRemoteSettings", + "name": "com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2448,7 +2601,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.Repository$GitRemoteSettings$Builder", + "name": "com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2457,7 +2610,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.Repository$GitRemoteSettings$SshAuthenticationConfig", + "name": "com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2466,7 +2619,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.Repository$GitRemoteSettings$SshAuthenticationConfig$Builder", + "name": "com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2475,7 +2628,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.Repository$GitRemoteSettings$TokenStatus", + "name": "com.google.cloud.dataform.v1beta1.ReadFileRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2484,7 +2637,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.Repository$WorkspaceCompilationOverrides", + "name": "com.google.cloud.dataform.v1beta1.ReadFileRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2493,7 +2646,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.Repository$WorkspaceCompilationOverrides$Builder", + "name": "com.google.cloud.dataform.v1beta1.ReadFileResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2502,7 +2655,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest", + "name": "com.google.cloud.dataform.v1beta1.ReadFileResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2511,7 +2664,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2520,7 +2673,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesResponse", + "name": "com.google.cloud.dataform.v1beta1.ReadRepositoryFileRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2529,7 +2682,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesResponse$Builder", + "name": "com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2538,7 +2691,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.SearchFilesRequest", + "name": "com.google.cloud.dataform.v1beta1.ReadRepositoryFileResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2547,7 +2700,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.SearchFilesRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.RelationDescriptor", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2556,7 +2709,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.SearchFilesResponse", + "name": "com.google.cloud.dataform.v1beta1.RelationDescriptor$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2565,7 +2718,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.SearchFilesResponse$Builder", + "name": "com.google.cloud.dataform.v1beta1.RelationDescriptor$ColumnDescriptor", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2574,7 +2727,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.SearchResult", + "name": "com.google.cloud.dataform.v1beta1.RelationDescriptor$ColumnDescriptor$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2583,7 +2736,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.SearchResult$Builder", + "name": "com.google.cloud.dataform.v1beta1.ReleaseConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2592,7 +2745,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.Target", + "name": "com.google.cloud.dataform.v1beta1.ReleaseConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2601,7 +2754,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.Target$Builder", + "name": "com.google.cloud.dataform.v1beta1.ReleaseConfig$ScheduledReleaseRecord", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2610,7 +2763,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.UpdateConfigRequest", + "name": "com.google.cloud.dataform.v1beta1.ReleaseConfig$ScheduledReleaseRecord$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2619,7 +2772,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.UpdateConfigRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2628,7 +2781,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest", + "name": "com.google.cloud.dataform.v1beta1.RemoveDirectoryRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2637,7 +2790,367 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest$Builder", + "name": "com.google.cloud.dataform.v1beta1.RemoveDirectoryResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.RemoveDirectoryResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.RemoveFileRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.RemoveFileRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.RemoveFileResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.RemoveFileResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.Repository", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.Repository$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.Repository$GitRemoteSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.Repository$GitRemoteSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.Repository$GitRemoteSettings$SshAuthenticationConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.Repository$GitRemoteSettings$SshAuthenticationConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.Repository$GitRemoteSettings$TokenStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.Repository$WorkspaceCompilationOverrides", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.Repository$WorkspaceCompilationOverrides$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.ResetWorkspaceChangesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.SearchFilesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.SearchFilesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.SearchFilesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.SearchFilesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.SearchResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.SearchResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse$TeamFolderSearchResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse$TeamFolderSearchResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.Target", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.Target$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.TeamFolder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.TeamFolder$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.UpdateConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.UpdateConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.UpdateFolderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.UpdateFolderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2663,6 +3176,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest", "queryAllDeclaredConstructors": true, @@ -3284,6 +3815,150 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.longrunning.CancelOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.Any", "queryAllDeclaredConstructors": true, diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientHttpJsonTest.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientHttpJsonTest.java index a2f1dc26835a..40ad003f8d06 100644 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientHttpJsonTest.java +++ b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientHttpJsonTest.java @@ -26,9 +26,13 @@ import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkspacesPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryCompilationResultActionsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryFolderContentsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryRepositoryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryTeamFolderContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryUserRootContentsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryWorkflowInvocationActionsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.SearchFilesPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.SearchTeamFoldersPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.httpjson.GaxHttpJsonProperties; @@ -39,6 +43,7 @@ import com.google.api.gax.rpc.InvalidArgumentException; import com.google.api.gax.rpc.StatusCode; import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.api.resourcenames.ResourceName; import com.google.cloud.dataform.v1beta1.stub.HttpJsonDataformStub; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -47,12 +52,11 @@ import com.google.common.collect.Lists; import com.google.iam.v1.AuditConfig; import com.google.iam.v1.Binding; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.GetPolicyOptions; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import com.google.protobuf.Any; import com.google.protobuf.ByteString; import com.google.protobuf.Empty; @@ -64,6 +68,7 @@ import java.util.Arrays; import java.util.HashMap; import java.util.List; +import java.util.concurrent.ExecutionException; import javax.annotation.Generated; import org.junit.After; import org.junit.AfterClass; @@ -106,6 +111,1189 @@ public void tearDown() throws Exception { mockService.reset(); } + @Test + public void getTeamFolderTest() throws Exception { + TeamFolder expectedResponse = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockService.addResponse(expectedResponse); + + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + + TeamFolder actualResponse = client.getTeamFolder(name); + 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 getTeamFolderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + client.getTeamFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTeamFolderTest2() throws Exception { + TeamFolder expectedResponse = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-1378/locations/location-1378/teamFolders/teamFolder-1378"; + + TeamFolder actualResponse = client.getTeamFolder(name); + 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 getTeamFolderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1378/locations/location-1378/teamFolders/teamFolder-1378"; + client.getTeamFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createTeamFolderTest() throws Exception { + TeamFolder expectedResponse = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + + TeamFolder actualResponse = client.createTeamFolder(parent, teamFolder); + 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 createTeamFolderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + client.createTeamFolder(parent, teamFolder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createTeamFolderTest2() throws Exception { + TeamFolder expectedResponse = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + + TeamFolder actualResponse = client.createTeamFolder(parent, teamFolder); + 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 createTeamFolderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + client.createTeamFolder(parent, teamFolder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateTeamFolderTest() throws Exception { + TeamFolder expectedResponse = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockService.addResponse(expectedResponse); + + TeamFolder teamFolder = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + TeamFolder actualResponse = client.updateTeamFolder(teamFolder, updateMask); + 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 updateTeamFolderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TeamFolder teamFolder = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateTeamFolder(teamFolder, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTeamFolderTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + + client.deleteTeamFolder(name); + + 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 deleteTeamFolderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + client.deleteTeamFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTeamFolderTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-1378/locations/location-1378/teamFolders/teamFolder-1378"; + + client.deleteTeamFolder(name); + + 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 deleteTeamFolderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1378/locations/location-1378/teamFolders/teamFolder-1378"; + client.deleteTeamFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryTeamFolderContentsTest() throws Exception { + QueryTeamFolderContentsResponse.TeamFolderContentsEntry responsesElement = + QueryTeamFolderContentsResponse.TeamFolderContentsEntry.newBuilder().build(); + QueryTeamFolderContentsResponse expectedResponse = + QueryTeamFolderContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + TeamFolderName teamFolder = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + + QueryTeamFolderContentsPagedResponse pagedListResponse = + client.queryTeamFolderContents(teamFolder); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + 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 queryTeamFolderContentsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TeamFolderName teamFolder = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + client.queryTeamFolderContents(teamFolder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryTeamFolderContentsTest2() throws Exception { + QueryTeamFolderContentsResponse.TeamFolderContentsEntry responsesElement = + QueryTeamFolderContentsResponse.TeamFolderContentsEntry.newBuilder().build(); + QueryTeamFolderContentsResponse expectedResponse = + QueryTeamFolderContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String teamFolder = "projects/project-9842/locations/location-9842/teamFolders/teamFolder-9842"; + + QueryTeamFolderContentsPagedResponse pagedListResponse = + client.queryTeamFolderContents(teamFolder); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + 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 queryTeamFolderContentsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String teamFolder = + "projects/project-9842/locations/location-9842/teamFolders/teamFolder-9842"; + client.queryTeamFolderContents(teamFolder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchTeamFoldersTest() throws Exception { + SearchTeamFoldersResponse.TeamFolderSearchResult responsesElement = + SearchTeamFoldersResponse.TeamFolderSearchResult.newBuilder().build(); + SearchTeamFoldersResponse expectedResponse = + SearchTeamFoldersResponse.newBuilder() + .setNextPageToken("") + .addAllResults(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + SearchTeamFoldersRequest request = + SearchTeamFoldersRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + + SearchTeamFoldersPagedResponse pagedListResponse = client.searchTeamFolders(request); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getResultsList().get(0), resources.get(0)); + + 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 searchTeamFoldersExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SearchTeamFoldersRequest request = + SearchTeamFoldersRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + client.searchTeamFolders(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFolderTest() throws Exception { + Folder expectedResponse = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockService.addResponse(expectedResponse); + + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + + Folder actualResponse = client.getFolder(name); + 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 getFolderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + client.getFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFolderTest2() throws Exception { + Folder expectedResponse = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-6987/locations/location-6987/folders/folder-6987"; + + Folder actualResponse = client.getFolder(name); + 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 getFolderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6987/locations/location-6987/folders/folder-6987"; + client.getFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createFolderTest() throws Exception { + Folder expectedResponse = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Folder folder = Folder.newBuilder().build(); + + Folder actualResponse = client.createFolder(parent, folder); + 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 createFolderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Folder folder = Folder.newBuilder().build(); + client.createFolder(parent, folder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createFolderTest2() throws Exception { + Folder expectedResponse = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + Folder folder = Folder.newBuilder().build(); + + Folder actualResponse = client.createFolder(parent, folder); + 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 createFolderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + Folder folder = Folder.newBuilder().build(); + client.createFolder(parent, folder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateFolderTest() throws Exception { + Folder expectedResponse = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockService.addResponse(expectedResponse); + + Folder folder = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Folder actualResponse = client.updateFolder(folder, updateMask); + 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 updateFolderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Folder folder = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateFolder(folder, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteFolderTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + + client.deleteFolder(name); + + 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 deleteFolderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + client.deleteFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteFolderTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-6987/locations/location-6987/folders/folder-6987"; + + client.deleteFolder(name); + + 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 deleteFolderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6987/locations/location-6987/folders/folder-6987"; + client.deleteFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryFolderContentsTest() throws Exception { + QueryFolderContentsResponse.FolderContentsEntry responsesElement = + QueryFolderContentsResponse.FolderContentsEntry.newBuilder().build(); + QueryFolderContentsResponse expectedResponse = + QueryFolderContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + FolderName folder = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + + QueryFolderContentsPagedResponse pagedListResponse = client.queryFolderContents(folder); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + 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 queryFolderContentsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FolderName folder = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + client.queryFolderContents(folder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryFolderContentsTest2() throws Exception { + QueryFolderContentsResponse.FolderContentsEntry responsesElement = + QueryFolderContentsResponse.FolderContentsEntry.newBuilder().build(); + QueryFolderContentsResponse expectedResponse = + QueryFolderContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String folder = "projects/project-5950/locations/location-5950/folders/folder-5950"; + + QueryFolderContentsPagedResponse pagedListResponse = client.queryFolderContents(folder); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + 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 queryFolderContentsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String folder = "projects/project-5950/locations/location-5950/folders/folder-5950"; + client.queryFolderContents(folder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryUserRootContentsTest() throws Exception { + QueryUserRootContentsResponse.RootContentsEntry responsesElement = + QueryUserRootContentsResponse.RootContentsEntry.newBuilder().build(); + QueryUserRootContentsResponse expectedResponse = + QueryUserRootContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); + + QueryUserRootContentsPagedResponse pagedListResponse = client.queryUserRootContents(location); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + 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 queryUserRootContentsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); + client.queryUserRootContents(location); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryUserRootContentsTest2() throws Exception { + QueryUserRootContentsResponse.RootContentsEntry responsesElement = + QueryUserRootContentsResponse.RootContentsEntry.newBuilder().build(); + QueryUserRootContentsResponse expectedResponse = + QueryUserRootContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String location = "projects/project-7132/locations/location-7132"; + + QueryUserRootContentsPagedResponse pagedListResponse = client.queryUserRootContents(location); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + 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 queryUserRootContentsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String location = "projects/project-7132/locations/location-7132"; + client.queryUserRootContents(location); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void moveFolderTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("moveFolderTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + String destinationContainingFolder = "destinationContainingFolder870737098"; + + client.moveFolderAsync(name, destinationContainingFolder).get(); + + 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 moveFolderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + String destinationContainingFolder = "destinationContainingFolder870737098"; + client.moveFolderAsync(name, destinationContainingFolder).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void moveFolderTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("moveFolderTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-6987/locations/location-6987/folders/folder-6987"; + String destinationContainingFolder = "destinationContainingFolder870737098"; + + client.moveFolderAsync(name, destinationContainingFolder).get(); + + 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 moveFolderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6987/locations/location-6987/folders/folder-6987"; + String destinationContainingFolder = "destinationContainingFolder870737098"; + client.moveFolderAsync(name, destinationContainingFolder).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void listRepositoriesTest() throws Exception { Repository responsesElement = Repository.newBuilder().build(); @@ -211,6 +1399,8 @@ public void getRepositoryTest() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -268,6 +1458,8 @@ public void getRepositoryTest2() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -325,6 +1517,8 @@ public void createRepositoryTest() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -386,6 +1580,8 @@ public void createRepositoryTest2() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -447,6 +1643,8 @@ public void updateRepositoryTest() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -466,6 +1664,8 @@ public void updateRepositoryTest() throws Exception { Repository repository = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -511,6 +1711,8 @@ public void updateRepositoryExceptionTest() throws Exception { Repository repository = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -613,6 +1815,100 @@ public void deleteRepositoryExceptionTest2() throws Exception { } } + @Test + public void moveRepositoryTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("moveRepositoryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + String destinationContainingFolder = "destinationContainingFolder870737098"; + + client.moveRepositoryAsync(name, destinationContainingFolder).get(); + + 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 moveRepositoryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + String destinationContainingFolder = "destinationContainingFolder870737098"; + client.moveRepositoryAsync(name, destinationContainingFolder).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void moveRepositoryTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("moveRepositoryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-4840/locations/location-4840/repositories/repositorie-4840"; + String destinationContainingFolder = "destinationContainingFolder870737098"; + + client.moveRepositoryAsync(name, destinationContainingFolder).get(); + + 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 moveRepositoryExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4840/locations/location-4840/repositories/repositorie-4840"; + String destinationContainingFolder = "destinationContainingFolder870737098"; + client.moveRepositoryAsync(name, destinationContainingFolder).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void commitRepositoryChangesTest() throws Exception { CommitRepositoryChangesResponse expectedResponse = @@ -1053,6 +2349,8 @@ public void getWorkspaceTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1103,6 +2401,8 @@ public void getWorkspaceTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1154,6 +2454,8 @@ public void createWorkspaceTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1207,6 +2509,8 @@ public void createWorkspaceTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -2924,6 +4228,7 @@ public void getCompilationResultTest() throws Exception { .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -2981,6 +4286,7 @@ public void getCompilationResultTest2() throws Exception { .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -3037,6 +4343,7 @@ public void createCompilationResultTest() throws Exception { .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -3093,6 +4400,7 @@ public void createCompilationResultTest2() throws Exception { .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -3852,6 +5160,7 @@ public void getWorkflowInvocationTest() throws Exception { .toString()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -3911,6 +5220,7 @@ public void getWorkflowInvocationTest2() throws Exception { .toString()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -3968,6 +5278,7 @@ public void createWorkflowInvocationTest() throws Exception { .toString()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4025,6 +5336,7 @@ public void createWorkflowInvocationTest2() throws Exception { .toString()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4280,6 +5592,7 @@ public void getConfigTest() throws Exception { Config.newBuilder() .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) .setDefaultKmsKeyName("defaultKmsKeyName725296666") + .setInternalMetadata("internalMetadata6789388") .build(); mockService.addResponse(expectedResponse); @@ -4325,6 +5638,7 @@ public void getConfigTest2() throws Exception { Config.newBuilder() .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) .setDefaultKmsKeyName("defaultKmsKeyName725296666") + .setInternalMetadata("internalMetadata6789388") .build(); mockService.addResponse(expectedResponse); @@ -4370,6 +5684,7 @@ public void updateConfigTest() throws Exception { Config.newBuilder() .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) .setDefaultKmsKeyName("defaultKmsKeyName725296666") + .setInternalMetadata("internalMetadata6789388") .build(); mockService.addResponse(expectedResponse); @@ -4377,6 +5692,7 @@ public void updateConfigTest() throws Exception { Config.newBuilder() .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) .setDefaultKmsKeyName("defaultKmsKeyName725296666") + .setInternalMetadata("internalMetadata6789388") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -4410,6 +5726,7 @@ public void updateConfigExceptionTest() throws Exception { Config.newBuilder() .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) .setDefaultKmsKeyName("defaultKmsKeyName725296666") + .setInternalMetadata("internalMetadata6789388") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateConfig(config, updateMask); @@ -4420,29 +5737,20 @@ public void updateConfigExceptionTest() throws Exception { } @Test - public void listLocationsTest() throws Exception { - Location responsesElement = Location.newBuilder().build(); - ListLocationsResponse expectedResponse = - ListLocationsResponse.newBuilder() - .setNextPageToken("") - .addAllLocations(Arrays.asList(responsesElement)) + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) .build(); mockService.addResponse(expectedResponse); - ListLocationsRequest request = - ListLocationsRequest.newBuilder() - .setName("projects/project-3664") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - - ListLocationsPagedResponse pagedListResponse = client.listLocations(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + ResourceName resource = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -4460,21 +5768,15 @@ public void listLocationsTest() throws Exception { } @Test - public void listLocationsExceptionTest() throws Exception { + public void getIamPolicyExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - ListLocationsRequest request = - ListLocationsRequest.newBuilder() - .setName("projects/project-3664") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.listLocations(request); + ResourceName resource = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + client.getIamPolicy(resource); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4482,23 +5784,19 @@ public void listLocationsExceptionTest() throws Exception { } @Test - public void getLocationTest() throws Exception { - Location expectedResponse = - Location.newBuilder() - .setName("name3373707") - .setLocationId("locationId1541836720") - .setDisplayName("displayName1714148973") - .putAllLabels(new HashMap()) - .setMetadata(Any.newBuilder().build()) + public void getIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) .build(); mockService.addResponse(expectedResponse); - GetLocationRequest request = - GetLocationRequest.newBuilder() - .setName("projects/project-9062/locations/location-9062") - .build(); + String resource = "projects/project-5173/locations/location-5173/repositories/repositorie-5173"; - Location actualResponse = client.getLocation(request); + Policy actualResponse = client.getIamPolicy(resource); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -4517,18 +5815,16 @@ public void getLocationTest() throws Exception { } @Test - public void getLocationExceptionTest() throws Exception { + public void getIamPolicyExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - GetLocationRequest request = - GetLocationRequest.newBuilder() - .setName("projects/project-9062/locations/location-9062") - .build(); - client.getLocation(request); + String resource = + "projects/project-5173/locations/location-5173/repositories/repositorie-5173"; + client.getIamPolicy(resource); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4548,7 +5844,7 @@ public void setIamPolicyTest() throws Exception { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); @@ -4581,7 +5877,7 @@ public void setIamPolicyExceptionTest() throws Exception { try { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); @@ -4593,23 +5889,18 @@ public void setIamPolicyExceptionTest() throws Exception { } @Test - public void getIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); mockService.addResponse(expectedResponse); - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .addAllPermissions(new ArrayList()) .build(); - Policy actualResponse = client.getIamPolicy(request); + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -4628,19 +5919,19 @@ public void getIamPolicyTest() throws Exception { } @Test - public void getIamPolicyExceptionTest() throws Exception { + public void testIamPermissionsExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .addAllPermissions(new ArrayList()) .build(); - client.getIamPolicy(request); + client.testIamPermissions(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4648,18 +5939,85 @@ public void getIamPolicyExceptionTest() throws Exception { } @Test - public void testIamPermissionsTest() throws Exception { - TestIamPermissionsResponse expectedResponse = - TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); mockService.addResponse(expectedResponse); - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .addAllPermissions(new ArrayList()) + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") .build(); - TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + 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 listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + + Location actualResponse = client.getLocation(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -4678,19 +6036,18 @@ public void testIamPermissionsTest() throws Exception { } @Test - public void testIamPermissionsExceptionTest() throws Exception { + public void getLocationExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .addAllPermissions(new ArrayList()) + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") .build(); - client.testIamPermissions(request); + client.getLocation(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientTest.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientTest.java index 7591c25b1727..9aeb3c709872 100644 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientTest.java +++ b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientTest.java @@ -26,9 +26,13 @@ import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkspacesPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryCompilationResultActionsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryFolderContentsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryRepositoryDirectoryContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryTeamFolderContentsPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.QueryUserRootContentsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.QueryWorkflowInvocationActionsPagedResponse; import static com.google.cloud.dataform.v1beta1.DataformClient.SearchFilesPagedResponse; +import static com.google.cloud.dataform.v1beta1.DataformClient.SearchTeamFoldersPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GaxGrpcProperties; @@ -37,6 +41,8 @@ import com.google.api.gax.grpc.testing.MockServiceHelper; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.resourcenames.ResourceName; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -45,11 +51,11 @@ import com.google.iam.v1.AuditConfig; import com.google.iam.v1.Binding; import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.GetPolicyOptions; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Any; import com.google.protobuf.ByteString; @@ -64,6 +70,7 @@ import java.util.HashMap; import java.util.List; import java.util.UUID; +import java.util.concurrent.ExecutionException; import javax.annotation.Generated; import org.junit.After; import org.junit.AfterClass; @@ -115,6 +122,1038 @@ public void tearDown() throws Exception { client.close(); } + @Test + public void getTeamFolderTest() throws Exception { + TeamFolder expectedResponse = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockDataform.addResponse(expectedResponse); + + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + + TeamFolder actualResponse = client.getTeamFolder(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTeamFolderRequest actualRequest = ((GetTeamFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTeamFolderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + client.getTeamFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTeamFolderTest2() throws Exception { + TeamFolder expectedResponse = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockDataform.addResponse(expectedResponse); + + String name = "name3373707"; + + TeamFolder actualResponse = client.getTeamFolder(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTeamFolderRequest actualRequest = ((GetTeamFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTeamFolderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String name = "name3373707"; + client.getTeamFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createTeamFolderTest() throws Exception { + TeamFolder expectedResponse = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockDataform.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + + TeamFolder actualResponse = client.createTeamFolder(parent, teamFolder); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateTeamFolderRequest actualRequest = ((CreateTeamFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(teamFolder, actualRequest.getTeamFolder()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createTeamFolderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + client.createTeamFolder(parent, teamFolder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createTeamFolderTest2() throws Exception { + TeamFolder expectedResponse = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockDataform.addResponse(expectedResponse); + + String parent = "parent-995424086"; + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + + TeamFolder actualResponse = client.createTeamFolder(parent, teamFolder); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateTeamFolderRequest actualRequest = ((CreateTeamFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(teamFolder, actualRequest.getTeamFolder()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createTeamFolderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String parent = "parent-995424086"; + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + client.createTeamFolder(parent, teamFolder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateTeamFolderTest() throws Exception { + TeamFolder expectedResponse = + TeamFolder.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockDataform.addResponse(expectedResponse); + + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + TeamFolder actualResponse = client.updateTeamFolder(teamFolder, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateTeamFolderRequest actualRequest = ((UpdateTeamFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(teamFolder, actualRequest.getTeamFolder()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateTeamFolderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateTeamFolder(teamFolder, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTeamFolderTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDataform.addResponse(expectedResponse); + + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + + client.deleteTeamFolder(name); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteTeamFolderRequest actualRequest = ((DeleteTeamFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteTeamFolderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + client.deleteTeamFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTeamFolderTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDataform.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteTeamFolder(name); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteTeamFolderRequest actualRequest = ((DeleteTeamFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteTeamFolderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String name = "name3373707"; + client.deleteTeamFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryTeamFolderContentsTest() throws Exception { + QueryTeamFolderContentsResponse.TeamFolderContentsEntry responsesElement = + QueryTeamFolderContentsResponse.TeamFolderContentsEntry.newBuilder().build(); + QueryTeamFolderContentsResponse expectedResponse = + QueryTeamFolderContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockDataform.addResponse(expectedResponse); + + TeamFolderName teamFolder = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + + QueryTeamFolderContentsPagedResponse pagedListResponse = + client.queryTeamFolderContents(teamFolder); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryTeamFolderContentsRequest actualRequest = + ((QueryTeamFolderContentsRequest) actualRequests.get(0)); + + Assert.assertEquals(teamFolder.toString(), actualRequest.getTeamFolder()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryTeamFolderContentsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + TeamFolderName teamFolder = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + client.queryTeamFolderContents(teamFolder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryTeamFolderContentsTest2() throws Exception { + QueryTeamFolderContentsResponse.TeamFolderContentsEntry responsesElement = + QueryTeamFolderContentsResponse.TeamFolderContentsEntry.newBuilder().build(); + QueryTeamFolderContentsResponse expectedResponse = + QueryTeamFolderContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockDataform.addResponse(expectedResponse); + + String teamFolder = "teamFolder-1872604885"; + + QueryTeamFolderContentsPagedResponse pagedListResponse = + client.queryTeamFolderContents(teamFolder); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryTeamFolderContentsRequest actualRequest = + ((QueryTeamFolderContentsRequest) actualRequests.get(0)); + + Assert.assertEquals(teamFolder, actualRequest.getTeamFolder()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryTeamFolderContentsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String teamFolder = "teamFolder-1872604885"; + client.queryTeamFolderContents(teamFolder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchTeamFoldersTest() throws Exception { + SearchTeamFoldersResponse.TeamFolderSearchResult responsesElement = + SearchTeamFoldersResponse.TeamFolderSearchResult.newBuilder().build(); + SearchTeamFoldersResponse expectedResponse = + SearchTeamFoldersResponse.newBuilder() + .setNextPageToken("") + .addAllResults(Arrays.asList(responsesElement)) + .build(); + mockDataform.addResponse(expectedResponse); + + SearchTeamFoldersRequest request = + SearchTeamFoldersRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + + SearchTeamFoldersPagedResponse pagedListResponse = client.searchTeamFolders(request); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getResultsList().get(0), resources.get(0)); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchTeamFoldersRequest actualRequest = ((SearchTeamFoldersRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getLocation(), actualRequest.getLocation()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertEquals(request.getOrderBy(), actualRequest.getOrderBy()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchTeamFoldersExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + SearchTeamFoldersRequest request = + SearchTeamFoldersRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + client.searchTeamFolders(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFolderTest() throws Exception { + Folder expectedResponse = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockDataform.addResponse(expectedResponse); + + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + + Folder actualResponse = client.getFolder(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetFolderRequest actualRequest = ((GetFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getFolderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + client.getFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFolderTest2() throws Exception { + Folder expectedResponse = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockDataform.addResponse(expectedResponse); + + String name = "name3373707"; + + Folder actualResponse = client.getFolder(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetFolderRequest actualRequest = ((GetFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getFolderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String name = "name3373707"; + client.getFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createFolderTest() throws Exception { + Folder expectedResponse = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockDataform.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Folder folder = Folder.newBuilder().build(); + + Folder actualResponse = client.createFolder(parent, folder); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateFolderRequest actualRequest = ((CreateFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(folder, actualRequest.getFolder()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createFolderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Folder folder = Folder.newBuilder().build(); + client.createFolder(parent, folder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createFolderTest2() throws Exception { + Folder expectedResponse = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockDataform.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Folder folder = Folder.newBuilder().build(); + + Folder actualResponse = client.createFolder(parent, folder); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateFolderRequest actualRequest = ((CreateFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(folder, actualRequest.getFolder()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createFolderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String parent = "parent-995424086"; + Folder folder = Folder.newBuilder().build(); + client.createFolder(parent, folder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateFolderTest() throws Exception { + Folder expectedResponse = + Folder.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDisplayName("displayName1714148973") + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setCreatorIamPrincipal("creatorIamPrincipal-451331163") + .build(); + mockDataform.addResponse(expectedResponse); + + Folder folder = Folder.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Folder actualResponse = client.updateFolder(folder, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateFolderRequest actualRequest = ((UpdateFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(folder, actualRequest.getFolder()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateFolderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + Folder folder = Folder.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateFolder(folder, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteFolderTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDataform.addResponse(expectedResponse); + + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + + client.deleteFolder(name); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteFolderRequest actualRequest = ((DeleteFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteFolderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + client.deleteFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteFolderTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDataform.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteFolder(name); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteFolderRequest actualRequest = ((DeleteFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteFolderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String name = "name3373707"; + client.deleteFolder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryFolderContentsTest() throws Exception { + QueryFolderContentsResponse.FolderContentsEntry responsesElement = + QueryFolderContentsResponse.FolderContentsEntry.newBuilder().build(); + QueryFolderContentsResponse expectedResponse = + QueryFolderContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockDataform.addResponse(expectedResponse); + + FolderName folder = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + + QueryFolderContentsPagedResponse pagedListResponse = client.queryFolderContents(folder); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryFolderContentsRequest actualRequest = ((QueryFolderContentsRequest) actualRequests.get(0)); + + Assert.assertEquals(folder.toString(), actualRequest.getFolder()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryFolderContentsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + FolderName folder = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + client.queryFolderContents(folder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryFolderContentsTest2() throws Exception { + QueryFolderContentsResponse.FolderContentsEntry responsesElement = + QueryFolderContentsResponse.FolderContentsEntry.newBuilder().build(); + QueryFolderContentsResponse expectedResponse = + QueryFolderContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockDataform.addResponse(expectedResponse); + + String folder = "folder-1268966290"; + + QueryFolderContentsPagedResponse pagedListResponse = client.queryFolderContents(folder); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryFolderContentsRequest actualRequest = ((QueryFolderContentsRequest) actualRequests.get(0)); + + Assert.assertEquals(folder, actualRequest.getFolder()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryFolderContentsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String folder = "folder-1268966290"; + client.queryFolderContents(folder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryUserRootContentsTest() throws Exception { + QueryUserRootContentsResponse.RootContentsEntry responsesElement = + QueryUserRootContentsResponse.RootContentsEntry.newBuilder().build(); + QueryUserRootContentsResponse expectedResponse = + QueryUserRootContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockDataform.addResponse(expectedResponse); + + LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); + + QueryUserRootContentsPagedResponse pagedListResponse = client.queryUserRootContents(location); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryUserRootContentsRequest actualRequest = + ((QueryUserRootContentsRequest) actualRequests.get(0)); + + Assert.assertEquals(location.toString(), actualRequest.getLocation()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryUserRootContentsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); + client.queryUserRootContents(location); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryUserRootContentsTest2() throws Exception { + QueryUserRootContentsResponse.RootContentsEntry responsesElement = + QueryUserRootContentsResponse.RootContentsEntry.newBuilder().build(); + QueryUserRootContentsResponse expectedResponse = + QueryUserRootContentsResponse.newBuilder() + .setNextPageToken("") + .addAllEntries(Arrays.asList(responsesElement)) + .build(); + mockDataform.addResponse(expectedResponse); + + String location = "location1901043637"; + + QueryUserRootContentsPagedResponse pagedListResponse = client.queryUserRootContents(location); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryUserRootContentsRequest actualRequest = + ((QueryUserRootContentsRequest) actualRequests.get(0)); + + Assert.assertEquals(location, actualRequest.getLocation()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryUserRootContentsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String location = "location1901043637"; + client.queryUserRootContents(location); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void moveFolderTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("moveFolderTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataform.addResponse(resultOperation); + + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + String destinationContainingFolder = "destinationContainingFolder870737098"; + + client.moveFolderAsync(name, destinationContainingFolder).get(); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MoveFolderRequest actualRequest = ((MoveFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals( + destinationContainingFolder, actualRequest.getDestinationContainingFolder()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void moveFolderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + String destinationContainingFolder = "destinationContainingFolder870737098"; + client.moveFolderAsync(name, destinationContainingFolder).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void moveFolderTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("moveFolderTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataform.addResponse(resultOperation); + + String name = "name3373707"; + String destinationContainingFolder = "destinationContainingFolder870737098"; + + client.moveFolderAsync(name, destinationContainingFolder).get(); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MoveFolderRequest actualRequest = ((MoveFolderRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals( + destinationContainingFolder, actualRequest.getDestinationContainingFolder()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void moveFolderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String name = "name3373707"; + String destinationContainingFolder = "destinationContainingFolder870737098"; + client.moveFolderAsync(name, destinationContainingFolder).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void listRepositoriesTest() throws Exception { Repository responsesElement = Repository.newBuilder().build(); @@ -208,6 +1247,8 @@ public void getRepositoryTest() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -259,6 +1300,8 @@ public void getRepositoryTest2() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -310,6 +1353,8 @@ public void createRepositoryTest() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -367,6 +1412,8 @@ public void createRepositoryTest2() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -424,6 +1471,8 @@ public void updateRepositoryTest() throws Exception { Repository expectedResponse = Repository.newBuilder() .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setContainingFolder("containingFolder2132392092") + .setTeamFolderName("teamFolderName122991190") .setCreateTime(Timestamp.newBuilder().build()) .setDisplayName("displayName1714148973") .setGitRemoteSettings(Repository.GitRemoteSettings.newBuilder().build()) @@ -440,18 +1489,87 @@ public void updateRepositoryTest() throws Exception { .build(); mockDataform.addResponse(expectedResponse); - Repository repository = Repository.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + Repository repository = Repository.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Repository actualResponse = client.updateRepository(repository, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateRepositoryRequest actualRequest = ((UpdateRepositoryRequest) actualRequests.get(0)); + + Assert.assertEquals(repository, actualRequest.getRepository()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateRepositoryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + Repository repository = Repository.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateRepository(repository, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteRepositoryTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDataform.addResponse(expectedResponse); + + RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + + client.deleteRepository(name); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteRepositoryRequest actualRequest = ((DeleteRepositoryRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteRepositoryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + client.deleteRepository(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteRepositoryTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockDataform.addResponse(expectedResponse); + + String name = "name3373707"; - Repository actualResponse = client.updateRepository(repository, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteRepository(name); List actualRequests = mockDataform.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateRepositoryRequest actualRequest = ((UpdateRepositoryRequest) actualRequests.get(0)); + DeleteRepositoryRequest actualRequest = ((DeleteRepositoryRequest) actualRequests.get(0)); - Assert.assertEquals(repository, actualRequest.getRepository()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -459,14 +1577,13 @@ public void updateRepositoryTest() throws Exception { } @Test - public void updateRepositoryExceptionTest() throws Exception { + public void deleteRepositoryExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockDataform.addException(exception); try { - Repository repository = Repository.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateRepository(repository, updateMask); + String name = "name3373707"; + client.deleteRepository(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -474,19 +1591,28 @@ public void updateRepositoryExceptionTest() throws Exception { } @Test - public void deleteRepositoryTest() throws Exception { + public void moveRepositoryTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); - mockDataform.addResponse(expectedResponse); + Operation resultOperation = + Operation.newBuilder() + .setName("moveRepositoryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataform.addResponse(resultOperation); RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + String destinationContainingFolder = "destinationContainingFolder870737098"; - client.deleteRepository(name); + client.moveRepositoryAsync(name, destinationContainingFolder).get(); List actualRequests = mockDataform.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteRepositoryRequest actualRequest = ((DeleteRepositoryRequest) actualRequests.get(0)); + MoveRepositoryRequest actualRequest = ((MoveRepositoryRequest) actualRequests.get(0)); Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals( + destinationContainingFolder, actualRequest.getDestinationContainingFolder()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -494,33 +1620,45 @@ public void deleteRepositoryTest() throws Exception { } @Test - public void deleteRepositoryExceptionTest() throws Exception { + public void moveRepositoryExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockDataform.addException(exception); try { RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); - client.deleteRepository(name); + String destinationContainingFolder = "destinationContainingFolder870737098"; + client.moveRepositoryAsync(name, destinationContainingFolder).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - public void deleteRepositoryTest2() throws Exception { + public void moveRepositoryTest2() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); - mockDataform.addResponse(expectedResponse); + Operation resultOperation = + Operation.newBuilder() + .setName("moveRepositoryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataform.addResponse(resultOperation); String name = "name3373707"; + String destinationContainingFolder = "destinationContainingFolder870737098"; - client.deleteRepository(name); + client.moveRepositoryAsync(name, destinationContainingFolder).get(); List actualRequests = mockDataform.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteRepositoryRequest actualRequest = ((DeleteRepositoryRequest) actualRequests.get(0)); + MoveRepositoryRequest actualRequest = ((MoveRepositoryRequest) actualRequests.get(0)); Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals( + destinationContainingFolder, actualRequest.getDestinationContainingFolder()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -528,16 +1666,19 @@ public void deleteRepositoryTest2() throws Exception { } @Test - public void deleteRepositoryExceptionTest2() throws Exception { + public void moveRepositoryExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockDataform.addException(exception); try { String name = "name3373707"; - client.deleteRepository(name); + String destinationContainingFolder = "destinationContainingFolder870737098"; + client.moveRepositoryAsync(name, destinationContainingFolder).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -949,6 +2090,8 @@ public void getWorkspaceTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -993,6 +2136,8 @@ public void getWorkspaceTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -1036,6 +2181,8 @@ public void createWorkspaceTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -1085,6 +2232,8 @@ public void createWorkspaceTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -2615,6 +3764,7 @@ public void getCompilationResultTest() throws Exception { .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -2667,6 +3817,7 @@ public void getCompilationResultTest2() throws Exception { .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -2716,6 +3867,7 @@ public void createCompilationResultTest() throws Exception { .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -2768,6 +3920,7 @@ public void createCompilationResultTest2() throws Exception { .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -3426,6 +4579,7 @@ public void getWorkflowInvocationTest() throws Exception { .toString()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -3480,6 +4634,7 @@ public void getWorkflowInvocationTest2() throws Exception { .toString()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -3530,6 +4685,7 @@ public void createWorkflowInvocationTest() throws Exception { .toString()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -3583,6 +4739,7 @@ public void createWorkflowInvocationTest2() throws Exception { .toString()) .setDataEncryptionState(DataEncryptionState.newBuilder().build()) .setInternalMetadata("internalMetadata6789388") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) .build(); mockDataform.addResponse(expectedResponse); @@ -3814,6 +4971,7 @@ public void getConfigTest() throws Exception { Config.newBuilder() .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) .setDefaultKmsKeyName("defaultKmsKeyName725296666") + .setInternalMetadata("internalMetadata6789388") .build(); mockDataform.addResponse(expectedResponse); @@ -3853,6 +5011,7 @@ public void getConfigTest2() throws Exception { Config.newBuilder() .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) .setDefaultKmsKeyName("defaultKmsKeyName725296666") + .setInternalMetadata("internalMetadata6789388") .build(); mockDataform.addResponse(expectedResponse); @@ -3892,6 +5051,7 @@ public void updateConfigTest() throws Exception { Config.newBuilder() .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) .setDefaultKmsKeyName("defaultKmsKeyName725296666") + .setInternalMetadata("internalMetadata6789388") .build(); mockDataform.addResponse(expectedResponse); @@ -3929,38 +5089,26 @@ public void updateConfigExceptionTest() throws Exception { } @Test - public void listLocationsTest() throws Exception { - Location responsesElement = Location.newBuilder().build(); - ListLocationsResponse expectedResponse = - ListLocationsResponse.newBuilder() - .setNextPageToken("") - .addAllLocations(Arrays.asList(responsesElement)) - .build(); - mockLocations.addResponse(expectedResponse); - - ListLocationsRequest request = - ListLocationsRequest.newBuilder() - .setName("name3373707") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) .build(); + mockDataform.addResponse(expectedResponse); - ListLocationsPagedResponse pagedListResponse = client.listLocations(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + ResourceName resource = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); - List actualRequests = mockLocations.getRequests(); + List actualRequests = mockDataform.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); - Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); - Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertEquals(resource.toString(), actualRequest.getResource()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -3968,19 +5116,13 @@ public void listLocationsTest() throws Exception { } @Test - public void listLocationsExceptionTest() throws Exception { + public void getIamPolicyExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockLocations.addException(exception); + mockDataform.addException(exception); try { - ListLocationsRequest request = - ListLocationsRequest.newBuilder() - .setName("name3373707") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.listLocations(request); + ResourceName resource = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + client.getIamPolicy(resource); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3988,27 +5130,26 @@ public void listLocationsExceptionTest() throws Exception { } @Test - public void getLocationTest() throws Exception { - Location expectedResponse = - Location.newBuilder() - .setName("name3373707") - .setLocationId("locationId1541836720") - .setDisplayName("displayName1714148973") - .putAllLabels(new HashMap()) - .setMetadata(Any.newBuilder().build()) + public void getIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) .build(); - mockLocations.addResponse(expectedResponse); + mockDataform.addResponse(expectedResponse); - GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + String resource = "resource-341064690"; - Location actualResponse = client.getLocation(request); + Policy actualResponse = client.getIamPolicy(resource); Assert.assertEquals(expectedResponse, actualResponse); - List actualRequests = mockLocations.getRequests(); + List actualRequests = mockDataform.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); - Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(resource, actualRequest.getResource()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -4016,13 +5157,13 @@ public void getLocationTest() throws Exception { } @Test - public void getLocationExceptionTest() throws Exception { + public void getIamPolicyExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockLocations.addException(exception); + mockDataform.addException(exception); try { - GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - client.getLocation(request); + String resource = "resource-341064690"; + client.getIamPolicy(resource); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4038,11 +5179,11 @@ public void setIamPolicyTest() throws Exception { .addAllAuditConfigs(new ArrayList()) .setEtag(ByteString.EMPTY) .build(); - mockIAMPolicy.addResponse(expectedResponse); + mockDataform.addResponse(expectedResponse); SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); @@ -4050,7 +5191,7 @@ public void setIamPolicyTest() throws Exception { Policy actualResponse = client.setIamPolicy(request); Assert.assertEquals(expectedResponse, actualResponse); - List actualRequests = mockIAMPolicy.getRequests(); + List actualRequests = mockDataform.getRequests(); Assert.assertEquals(1, actualRequests.size()); SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); @@ -4066,12 +5207,12 @@ public void setIamPolicyTest() throws Exception { @Test public void setIamPolicyExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAMPolicy.addException(exception); + mockDataform.addException(exception); try { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); @@ -4083,31 +5224,26 @@ public void setIamPolicyExceptionTest() throws Exception { } @Test - public void getIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockIAMPolicy.addResponse(expectedResponse); + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockDataform.addResponse(expectedResponse); - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .addAllPermissions(new ArrayList()) .build(); - Policy actualResponse = client.getIamPolicy(request); + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); Assert.assertEquals(expectedResponse, actualResponse); - List actualRequests = mockIAMPolicy.getRequests(); + List actualRequests = mockDataform.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); Assert.assertEquals(request.getResource(), actualRequest.getResource()); - Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -4115,17 +5251,17 @@ public void getIamPolicyTest() throws Exception { } @Test - public void getIamPolicyExceptionTest() throws Exception { + public void testIamPermissionsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAMPolicy.addException(exception); + mockDataform.addException(exception); try { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .addAllPermissions(new ArrayList()) .build(); - client.getIamPolicy(request); + client.testIamPermissions(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4133,26 +5269,38 @@ public void getIamPolicyExceptionTest() throws Exception { } @Test - public void testIamPermissionsTest() throws Exception { - TestIamPermissionsResponse expectedResponse = - TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); - mockIAMPolicy.addResponse(expectedResponse); + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .addAllPermissions(new ArrayList()) + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") .build(); - TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); - Assert.assertEquals(expectedResponse, actualResponse); + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); Assert.assertEquals(1, actualRequests.size()); - TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); - Assert.assertEquals(request.getResource(), actualRequest.getResource()); - Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -4160,17 +5308,61 @@ public void testIamPermissionsTest() throws Exception { } @Test - public void testIamPermissionsExceptionTest() throws Exception { + public void listLocationsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAMPolicy.addException(exception); + mockLocations.addException(exception); try { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) - .addAllPermissions(new ArrayList()) + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") .build(); - client.testIamPermissions(request); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockDataformImpl.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockDataformImpl.java index 3c527cbfde64..7a46c1ca1386 100644 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockDataformImpl.java +++ b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockDataformImpl.java @@ -18,6 +18,12 @@ import com.google.api.core.BetaApi; import com.google.cloud.dataform.v1beta1.DataformGrpc.DataformImplBase; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Empty; import io.grpc.stub.StreamObserver; @@ -59,6 +65,280 @@ public void reset() { responses = new LinkedList<>(); } + @Override + public void getTeamFolder( + GetTeamFolderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TeamFolder) { + requests.add(request); + responseObserver.onNext(((TeamFolder) 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 GetTeamFolder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TeamFolder.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createTeamFolder( + CreateTeamFolderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TeamFolder) { + requests.add(request); + responseObserver.onNext(((TeamFolder) 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 CreateTeamFolder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TeamFolder.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateTeamFolder( + UpdateTeamFolderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TeamFolder) { + requests.add(request); + responseObserver.onNext(((TeamFolder) 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 UpdateTeamFolder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TeamFolder.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteTeamFolder( + DeleteTeamFolderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteTeamFolder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void queryTeamFolderContents( + QueryTeamFolderContentsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof QueryTeamFolderContentsResponse) { + requests.add(request); + responseObserver.onNext(((QueryTeamFolderContentsResponse) 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 QueryTeamFolderContents, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + QueryTeamFolderContentsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void searchTeamFolders( + SearchTeamFoldersRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SearchTeamFoldersResponse) { + requests.add(request); + responseObserver.onNext(((SearchTeamFoldersResponse) 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 SearchTeamFolders, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SearchTeamFoldersResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getFolder(GetFolderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Folder) { + requests.add(request); + responseObserver.onNext(((Folder) 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 GetFolder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Folder.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createFolder(CreateFolderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Folder) { + requests.add(request); + responseObserver.onNext(((Folder) 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 CreateFolder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Folder.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateFolder(UpdateFolderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Folder) { + requests.add(request); + responseObserver.onNext(((Folder) 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 UpdateFolder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Folder.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteFolder(DeleteFolderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteFolder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void queryFolderContents( + QueryFolderContentsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof QueryFolderContentsResponse) { + requests.add(request); + responseObserver.onNext(((QueryFolderContentsResponse) 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 QueryFolderContents, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + QueryFolderContentsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void queryUserRootContents( + QueryUserRootContentsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof QueryUserRootContentsResponse) { + requests.add(request); + responseObserver.onNext(((QueryUserRootContentsResponse) 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 QueryUserRootContents, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + QueryUserRootContentsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void moveFolder(MoveFolderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method MoveFolder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void listRepositories( ListRepositoriesRequest request, StreamObserver responseObserver) { @@ -164,6 +444,27 @@ public void deleteRepository( } } + @Override + public void moveRepository( + MoveRepositoryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method MoveRepository, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void commitRepositoryChanges( CommitRepositoryChangesRequest request, @@ -1229,4 +1530,66 @@ public void updateConfig(UpdateConfigRequest request, StreamObserver res Exception.class.getName()))); } } + + @Override + public void getIamPolicy(GetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void setIamPolicy(SetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void testIamPermissions( + TestIamPermissionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TestIamPermissionsResponse) { + requests.add(request); + responseObserver.onNext(((TestIamPermissionsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method TestIamPermissions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TestIamPermissionsResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockIAMPolicyImpl.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockIAMPolicyImpl.java index 7e158b834ed4..bb302c7d939f 100644 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockIAMPolicyImpl.java +++ b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockIAMPolicyImpl.java @@ -17,14 +17,8 @@ package com.google.cloud.dataform.v1beta1; import com.google.api.core.BetaApi; -import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.IAMPolicyGrpc.IAMPolicyImplBase; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; import com.google.protobuf.AbstractMessage; -import io.grpc.stub.StreamObserver; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; @@ -62,66 +56,4 @@ public void reset() { requests = new ArrayList<>(); responses = new LinkedList<>(); } - - @Override - public void testIamPermissions( - TestIamPermissionsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof TestIamPermissionsResponse) { - requests.add(request); - responseObserver.onNext(((TestIamPermissionsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method TestIamPermissions, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - TestIamPermissionsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void setIamPolicy(SetIamPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Policy) { - requests.add(request); - responseObserver.onNext(((Policy) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method SetIamPolicy, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Policy.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getIamPolicy(GetIamPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Policy) { - requests.add(request); - responseObserver.onNext(((Policy) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetIamPolicy, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Policy.class.getName(), - Exception.class.getName()))); - } - } } diff --git a/java-dataform/grpc-google-cloud-dataform-v1/pom.xml b/java-dataform/grpc-google-cloud-dataform-v1/pom.xml index dbd6cb1c3521..cff3cea64f37 100644 --- a/java-dataform/grpc-google-cloud-dataform-v1/pom.xml +++ b/java-dataform/grpc-google-cloud-dataform-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataform-v1 - 0.83.0-SNAPSHOT + 0.84.0 grpc-google-cloud-dataform-v1 GRPC library for google-cloud-dataform com.google.cloud google-cloud-dataform-parent - 0.83.0-SNAPSHOT + 0.84.0 diff --git a/java-dataform/grpc-google-cloud-dataform-v1beta1/pom.xml b/java-dataform/grpc-google-cloud-dataform-v1beta1/pom.xml index 7c0aeec90606..31edee230f3a 100644 --- a/java-dataform/grpc-google-cloud-dataform-v1beta1/pom.xml +++ b/java-dataform/grpc-google-cloud-dataform-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataform-v1beta1 - 0.83.0-SNAPSHOT + 0.84.0 grpc-google-cloud-dataform-v1beta1 GRPC library for google-cloud-dataform com.google.cloud google-cloud-dataform-parent - 0.83.0-SNAPSHOT + 0.84.0 diff --git a/java-dataform/grpc-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformGrpc.java b/java-dataform/grpc-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformGrpc.java index fb54a7be8871..0d3a7b8437dd 100644 --- a/java-dataform/grpc-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformGrpc.java +++ b/java-dataform/grpc-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformGrpc.java @@ -33,6 +33,596 @@ private DataformGrpc() {} public static final java.lang.String SERVICE_NAME = "google.cloud.dataform.v1beta1.Dataform"; // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.GetTeamFolderRequest, + com.google.cloud.dataform.v1beta1.TeamFolder> + getGetTeamFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTeamFolder", + requestType = com.google.cloud.dataform.v1beta1.GetTeamFolderRequest.class, + responseType = com.google.cloud.dataform.v1beta1.TeamFolder.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.GetTeamFolderRequest, + com.google.cloud.dataform.v1beta1.TeamFolder> + getGetTeamFolderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.GetTeamFolderRequest, + com.google.cloud.dataform.v1beta1.TeamFolder> + getGetTeamFolderMethod; + if ((getGetTeamFolderMethod = DataformGrpc.getGetTeamFolderMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getGetTeamFolderMethod = DataformGrpc.getGetTeamFolderMethod) == null) { + DataformGrpc.getGetTeamFolderMethod = + getGetTeamFolderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTeamFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.GetTeamFolderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.TeamFolder.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("GetTeamFolder")) + .build(); + } + } + } + return getGetTeamFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest, + com.google.cloud.dataform.v1beta1.TeamFolder> + getCreateTeamFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateTeamFolder", + requestType = com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest.class, + responseType = com.google.cloud.dataform.v1beta1.TeamFolder.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest, + com.google.cloud.dataform.v1beta1.TeamFolder> + getCreateTeamFolderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest, + com.google.cloud.dataform.v1beta1.TeamFolder> + getCreateTeamFolderMethod; + if ((getCreateTeamFolderMethod = DataformGrpc.getCreateTeamFolderMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getCreateTeamFolderMethod = DataformGrpc.getCreateTeamFolderMethod) == null) { + DataformGrpc.getCreateTeamFolderMethod = + getCreateTeamFolderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTeamFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.TeamFolder.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("CreateTeamFolder")) + .build(); + } + } + } + return getCreateTeamFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest, + com.google.cloud.dataform.v1beta1.TeamFolder> + getUpdateTeamFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateTeamFolder", + requestType = com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest.class, + responseType = com.google.cloud.dataform.v1beta1.TeamFolder.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest, + com.google.cloud.dataform.v1beta1.TeamFolder> + getUpdateTeamFolderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest, + com.google.cloud.dataform.v1beta1.TeamFolder> + getUpdateTeamFolderMethod; + if ((getUpdateTeamFolderMethod = DataformGrpc.getUpdateTeamFolderMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getUpdateTeamFolderMethod = DataformGrpc.getUpdateTeamFolderMethod) == null) { + DataformGrpc.getUpdateTeamFolderMethod = + getUpdateTeamFolderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateTeamFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.TeamFolder.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("UpdateTeamFolder")) + .build(); + } + } + } + return getUpdateTeamFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest, com.google.protobuf.Empty> + getDeleteTeamFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteTeamFolder", + requestType = com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest, com.google.protobuf.Empty> + getDeleteTeamFolderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest, com.google.protobuf.Empty> + getDeleteTeamFolderMethod; + if ((getDeleteTeamFolderMethod = DataformGrpc.getDeleteTeamFolderMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getDeleteTeamFolderMethod = DataformGrpc.getDeleteTeamFolderMethod) == null) { + DataformGrpc.getDeleteTeamFolderMethod = + getDeleteTeamFolderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTeamFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("DeleteTeamFolder")) + .build(); + } + } + } + return getDeleteTeamFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest, + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse> + getQueryTeamFolderContentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "QueryTeamFolderContents", + requestType = com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest.class, + responseType = com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest, + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse> + getQueryTeamFolderContentsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest, + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse> + getQueryTeamFolderContentsMethod; + if ((getQueryTeamFolderContentsMethod = DataformGrpc.getQueryTeamFolderContentsMethod) + == null) { + synchronized (DataformGrpc.class) { + if ((getQueryTeamFolderContentsMethod = DataformGrpc.getQueryTeamFolderContentsMethod) + == null) { + DataformGrpc.getQueryTeamFolderContentsMethod = + getQueryTeamFolderContentsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "QueryTeamFolderContents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("QueryTeamFolderContents")) + .build(); + } + } + } + return getQueryTeamFolderContentsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest, + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse> + getSearchTeamFoldersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchTeamFolders", + requestType = com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest.class, + responseType = com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest, + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse> + getSearchTeamFoldersMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest, + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse> + getSearchTeamFoldersMethod; + if ((getSearchTeamFoldersMethod = DataformGrpc.getSearchTeamFoldersMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getSearchTeamFoldersMethod = DataformGrpc.getSearchTeamFoldersMethod) == null) { + DataformGrpc.getSearchTeamFoldersMethod = + getSearchTeamFoldersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchTeamFolders")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("SearchTeamFolders")) + .build(); + } + } + } + return getSearchTeamFoldersMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.GetFolderRequest, + com.google.cloud.dataform.v1beta1.Folder> + getGetFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFolder", + requestType = com.google.cloud.dataform.v1beta1.GetFolderRequest.class, + responseType = com.google.cloud.dataform.v1beta1.Folder.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.GetFolderRequest, + com.google.cloud.dataform.v1beta1.Folder> + getGetFolderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.GetFolderRequest, + com.google.cloud.dataform.v1beta1.Folder> + getGetFolderMethod; + if ((getGetFolderMethod = DataformGrpc.getGetFolderMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getGetFolderMethod = DataformGrpc.getGetFolderMethod) == null) { + DataformGrpc.getGetFolderMethod = + getGetFolderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.GetFolderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("GetFolder")) + .build(); + } + } + } + return getGetFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CreateFolderRequest, + com.google.cloud.dataform.v1beta1.Folder> + getCreateFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFolder", + requestType = com.google.cloud.dataform.v1beta1.CreateFolderRequest.class, + responseType = com.google.cloud.dataform.v1beta1.Folder.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CreateFolderRequest, + com.google.cloud.dataform.v1beta1.Folder> + getCreateFolderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CreateFolderRequest, + com.google.cloud.dataform.v1beta1.Folder> + getCreateFolderMethod; + if ((getCreateFolderMethod = DataformGrpc.getCreateFolderMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getCreateFolderMethod = DataformGrpc.getCreateFolderMethod) == null) { + DataformGrpc.getCreateFolderMethod = + getCreateFolderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.CreateFolderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("CreateFolder")) + .build(); + } + } + } + return getCreateFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.UpdateFolderRequest, + com.google.cloud.dataform.v1beta1.Folder> + getUpdateFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFolder", + requestType = com.google.cloud.dataform.v1beta1.UpdateFolderRequest.class, + responseType = com.google.cloud.dataform.v1beta1.Folder.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.UpdateFolderRequest, + com.google.cloud.dataform.v1beta1.Folder> + getUpdateFolderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.UpdateFolderRequest, + com.google.cloud.dataform.v1beta1.Folder> + getUpdateFolderMethod; + if ((getUpdateFolderMethod = DataformGrpc.getUpdateFolderMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getUpdateFolderMethod = DataformGrpc.getUpdateFolderMethod) == null) { + DataformGrpc.getUpdateFolderMethod = + getUpdateFolderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.UpdateFolderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("UpdateFolder")) + .build(); + } + } + } + return getUpdateFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.DeleteFolderRequest, com.google.protobuf.Empty> + getDeleteFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFolder", + requestType = com.google.cloud.dataform.v1beta1.DeleteFolderRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.DeleteFolderRequest, com.google.protobuf.Empty> + getDeleteFolderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.DeleteFolderRequest, com.google.protobuf.Empty> + getDeleteFolderMethod; + if ((getDeleteFolderMethod = DataformGrpc.getDeleteFolderMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getDeleteFolderMethod = DataformGrpc.getDeleteFolderMethod) == null) { + DataformGrpc.getDeleteFolderMethod = + getDeleteFolderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.DeleteFolderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("DeleteFolder")) + .build(); + } + } + } + return getDeleteFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest, + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse> + getQueryFolderContentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "QueryFolderContents", + requestType = com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest.class, + responseType = com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest, + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse> + getQueryFolderContentsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest, + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse> + getQueryFolderContentsMethod; + if ((getQueryFolderContentsMethod = DataformGrpc.getQueryFolderContentsMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getQueryFolderContentsMethod = DataformGrpc.getQueryFolderContentsMethod) == null) { + DataformGrpc.getQueryFolderContentsMethod = + getQueryFolderContentsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "QueryFolderContents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("QueryFolderContents")) + .build(); + } + } + } + return getQueryFolderContentsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest, + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse> + getQueryUserRootContentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "QueryUserRootContents", + requestType = com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest.class, + responseType = com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest, + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse> + getQueryUserRootContentsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest, + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse> + getQueryUserRootContentsMethod; + if ((getQueryUserRootContentsMethod = DataformGrpc.getQueryUserRootContentsMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getQueryUserRootContentsMethod = DataformGrpc.getQueryUserRootContentsMethod) + == null) { + DataformGrpc.getQueryUserRootContentsMethod = + getQueryUserRootContentsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "QueryUserRootContents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("QueryUserRootContents")) + .build(); + } + } + } + return getQueryUserRootContentsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.MoveFolderRequest, com.google.longrunning.Operation> + getMoveFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "MoveFolder", + requestType = com.google.cloud.dataform.v1beta1.MoveFolderRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.MoveFolderRequest, com.google.longrunning.Operation> + getMoveFolderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.MoveFolderRequest, com.google.longrunning.Operation> + getMoveFolderMethod; + if ((getMoveFolderMethod = DataformGrpc.getMoveFolderMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getMoveFolderMethod = DataformGrpc.getMoveFolderMethod) == null) { + DataformGrpc.getMoveFolderMethod = + getMoveFolderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MoveFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.MoveFolderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("MoveFolder")) + .build(); + } + } + } + return getMoveFolderMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.dataform.v1beta1.ListRepositoriesRequest, com.google.cloud.dataform.v1beta1.ListRepositoriesResponse> @@ -256,6 +846,49 @@ private DataformGrpc() {} return getDeleteRepositoryMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.MoveRepositoryRequest, com.google.longrunning.Operation> + getMoveRepositoryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "MoveRepository", + requestType = com.google.cloud.dataform.v1beta1.MoveRepositoryRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.MoveRepositoryRequest, com.google.longrunning.Operation> + getMoveRepositoryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.MoveRepositoryRequest, + com.google.longrunning.Operation> + getMoveRepositoryMethod; + if ((getMoveRepositoryMethod = DataformGrpc.getMoveRepositoryMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getMoveRepositoryMethod = DataformGrpc.getMoveRepositoryMethod) == null) { + DataformGrpc.getMoveRepositoryMethod = + getMoveRepositoryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MoveRepository")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.MoveRepositoryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("MoveRepository")) + .build(); + } + } + } + return getMoveRepositoryMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesResponse> @@ -2590,6 +3223,125 @@ private DataformGrpc() {} return getUpdateConfigMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", + requestType = com.google.iam.v1.GetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod() { + io.grpc.MethodDescriptor + getGetIamPolicyMethod; + if ((getGetIamPolicyMethod = DataformGrpc.getGetIamPolicyMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getGetIamPolicyMethod = DataformGrpc.getGetIamPolicyMethod) == null) { + DataformGrpc.getGetIamPolicyMethod = + getGetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("GetIamPolicy")) + .build(); + } + } + } + return getGetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", + requestType = com.google.iam.v1.SetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod() { + io.grpc.MethodDescriptor + getSetIamPolicyMethod; + if ((getSetIamPolicyMethod = DataformGrpc.getSetIamPolicyMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getSetIamPolicyMethod = DataformGrpc.getSetIamPolicyMethod) == null) { + DataformGrpc.getSetIamPolicyMethod = + getSetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new DataformMethodDescriptorSupplier("SetIamPolicy")) + .build(); + } + } + } + return getSetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", + requestType = com.google.iam.v1.TestIamPermissionsRequest.class, + responseType = com.google.iam.v1.TestIamPermissionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod; + if ((getTestIamPermissionsMethod = DataformGrpc.getTestIamPermissionsMethod) == null) { + synchronized (DataformGrpc.class) { + if ((getTestIamPermissionsMethod = DataformGrpc.getTestIamPermissionsMethod) == null) { + DataformGrpc.getTestIamPermissionsMethod = + getTestIamPermissionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("TestIamPermissions")) + .build(); + } + } + } + return getTestIamPermissionsMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static DataformStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -2602,56 +3354,247 @@ public DataformStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOpt return DataformStub.newStub(factory, channel); } - /** Creates a new blocking-style stub that supports all types of calls on the service */ - public static DataformBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataformBlockingV2Stub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataformBlockingV2Stub(channel, callOptions); - } - }; - return DataformBlockingV2Stub.newStub(factory, channel); - } + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static DataformBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataformBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataformBlockingV2Stub(channel, callOptions); + } + }; + return DataformBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DataformBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataformBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataformBlockingStub(channel, callOptions); + } + }; + return DataformBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static DataformFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataformFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataformFutureStub(channel, callOptions); + } + }; + return DataformFutureStub.newStub(factory, channel); + } + + /** + * + * + *
          +   * Dataform is a service to develop, create, document, test, and update curated
          +   * tables in BigQuery.
          +   * 
          + */ + public interface AsyncService { + + /** + * + * + *
          +     * Fetches a single TeamFolder.
          +     * 
          + */ + default void getTeamFolder( + com.google.cloud.dataform.v1beta1.GetTeamFolderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetTeamFolderMethod(), responseObserver); + } + + /** + * + * + *
          +     * Creates a new TeamFolder in a given project and location.
          +     * 
          + */ + default void createTeamFolder( + com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateTeamFolderMethod(), responseObserver); + } + + /** + * + * + *
          +     * Updates a single TeamFolder.
          +     * 
          + */ + default void updateTeamFolder( + com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateTeamFolderMethod(), responseObserver); + } + + /** + * + * + *
          +     * Deletes a single TeamFolder.
          +     * 
          + */ + default void deleteTeamFolder( + com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteTeamFolderMethod(), responseObserver); + } + + /** + * + * + *
          +     * Returns the contents of a given TeamFolder.
          +     * 
          + */ + default void queryTeamFolderContents( + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getQueryTeamFolderContentsMethod(), responseObserver); + } + + /** + * + * + *
          +     * Returns all TeamFolders in a given location that the caller has access to
          +     * and match the provided filter.
          +     * 
          + */ + default void searchTeamFolders( + com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchTeamFoldersMethod(), responseObserver); + } + + /** + * + * + *
          +     * Fetches a single Folder.
          +     * 
          + */ + default void getFolder( + com.google.cloud.dataform.v1beta1.GetFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFolderMethod(), responseObserver); + } + + /** + * + * + *
          +     * Creates a new Folder in a given project and location.
          +     * 
          + */ + default void createFolder( + com.google.cloud.dataform.v1beta1.CreateFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateFolderMethod(), responseObserver); + } + + /** + * + * + *
          +     * Updates a single Folder.
          +     * 
          + */ + default void updateFolder( + com.google.cloud.dataform.v1beta1.UpdateFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateFolderMethod(), responseObserver); + } + + /** + * + * + *
          +     * Deletes a single Folder.
          +     * 
          + */ + default void deleteFolder( + com.google.cloud.dataform.v1beta1.DeleteFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteFolderMethod(), responseObserver); + } - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static DataformBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataformBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataformBlockingStub(channel, callOptions); - } - }; - return DataformBlockingStub.newStub(factory, channel); - } + /** + * + * + *
          +     * Returns the contents of a given Folder.
          +     * 
          + */ + default void queryFolderContents( + com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getQueryFolderContentsMethod(), responseObserver); + } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static DataformFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataformFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataformFutureStub(channel, callOptions); - } - }; - return DataformFutureStub.newStub(factory, channel); - } + /** + * + * + *
          +     * Returns the contents of a caller's root folder in a given location.
          +     * The root folder contains all resources that are created by the user and not
          +     * contained in any other folder.
          +     * 
          + */ + default void queryUserRootContents( + com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getQueryUserRootContentsMethod(), responseObserver); + } - /** - * - * - *
          -   * Dataform is a service to develop, create, document, test, and update curated
          -   * tables in BigQuery.
          -   * 
          - */ - public interface AsyncService { + /** + * + * + *
          +     * Moves a Folder to a new Folder, TeamFolder, or the root location.
          +     * 
          + */ + default void moveFolder( + com.google.cloud.dataform.v1beta1.MoveFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMoveFolderMethod(), responseObserver); + } /** * @@ -2733,6 +3676,20 @@ default void deleteRepository( getDeleteRepositoryMethod(), responseObserver); } + /** + * + * + *
          +     * Moves a Repository to a new location.
          +     * 
          + */ + default void moveRepository( + com.google.cloud.dataform.v1beta1.MoveRepositoryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getMoveRepositoryMethod(), responseObserver); + } + /** * * @@ -3482,6 +4439,58 @@ default void updateConfig( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getUpdateConfigMethod(), responseObserver); } + + /** + * + * + *
          +     * Gets the access control policy for a resource.
          +     * Returns an empty policy if the resource exists and does not have a policy
          +     * set.
          +     * 
          + */ + default void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
          +     * Sets the access control policy on the specified resource. Replaces any
          +     * existing policy.
          +     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
          +     * 
          + */ + default void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
          +     * Returns permissions that a caller has on the specified resource.
          +     * If the resource does not exist, this will return an empty set of
          +     * permissions, not a `NOT_FOUND` error.
          +     * Note: This operation is designed to be used for building permission-aware
          +     * UIs and command-line tools, not for authorization checking. This operation
          +     * may "fail open" without warning.
          +     * 
          + */ + default void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTestIamPermissionsMethod(), responseObserver); + } } /** @@ -3513,9 +4522,224 @@ private DataformStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } - @java.lang.Override - protected DataformStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataformStub(channel, callOptions); + @java.lang.Override + protected DataformStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataformStub(channel, callOptions); + } + + /** + * + * + *
          +     * Fetches a single TeamFolder.
          +     * 
          + */ + public void getTeamFolder( + com.google.cloud.dataform.v1beta1.GetTeamFolderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTeamFolderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Creates a new TeamFolder in a given project and location.
          +     * 
          + */ + public void createTeamFolder( + com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateTeamFolderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Updates a single TeamFolder.
          +     * 
          + */ + public void updateTeamFolder( + com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateTeamFolderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Deletes a single TeamFolder.
          +     * 
          + */ + public void deleteTeamFolder( + com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteTeamFolderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Returns the contents of a given TeamFolder.
          +     * 
          + */ + public void queryTeamFolderContents( + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getQueryTeamFolderContentsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Returns all TeamFolders in a given location that the caller has access to
          +     * and match the provided filter.
          +     * 
          + */ + public void searchTeamFolders( + com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchTeamFoldersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Fetches a single Folder.
          +     * 
          + */ + public void getFolder( + com.google.cloud.dataform.v1beta1.GetFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFolderMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
          +     * Creates a new Folder in a given project and location.
          +     * 
          + */ + public void createFolder( + com.google.cloud.dataform.v1beta1.CreateFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFolderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Updates a single Folder.
          +     * 
          + */ + public void updateFolder( + com.google.cloud.dataform.v1beta1.UpdateFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFolderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Deletes a single Folder.
          +     * 
          + */ + public void deleteFolder( + com.google.cloud.dataform.v1beta1.DeleteFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFolderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Returns the contents of a given Folder.
          +     * 
          + */ + public void queryFolderContents( + com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getQueryFolderContentsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Returns the contents of a caller's root folder in a given location.
          +     * The root folder contains all resources that are created by the user and not
          +     * contained in any other folder.
          +     * 
          + */ + public void queryUserRootContents( + com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getQueryUserRootContentsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Moves a Folder to a new Folder, TeamFolder, or the root location.
          +     * 
          + */ + public void moveFolder( + com.google.cloud.dataform.v1beta1.MoveFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getMoveFolderMethod(), getCallOptions()), request, responseObserver); } /** @@ -3608,6 +4832,22 @@ public void deleteRepository( responseObserver); } + /** + * + * + *
          +     * Moves a Repository to a new location.
          +     * 
          + */ + public void moveRepository( + com.google.cloud.dataform.v1beta1.MoveRepositoryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getMoveRepositoryMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -4335,141 +5575,384 @@ public void listWorkflowInvocations( * * *
          -     * Fetches a single WorkflowInvocation.
          +     * Fetches a single WorkflowInvocation.
          +     * 
          + */ + public void getWorkflowInvocation( + com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWorkflowInvocationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Creates a new WorkflowInvocation in a given Repository.
          +     * 
          + */ + public void createWorkflowInvocation( + com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWorkflowInvocationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Deletes a single WorkflowInvocation.
          +     * 
          + */ + public void deleteWorkflowInvocation( + com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteWorkflowInvocationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Requests cancellation of a running WorkflowInvocation.
          +     * 
          + */ + public void cancelWorkflowInvocation( + com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCancelWorkflowInvocationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Returns WorkflowInvocationActions in a given WorkflowInvocation.
          +     * 
          + */ + public void queryWorkflowInvocationActions( + com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getQueryWorkflowInvocationActionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Get default config for a given project and location.
          +     * 
          + */ + public void getConfig( + com.google.cloud.dataform.v1beta1.GetConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
          +     * Update default config for a given project and location.
          +     * **Note:** *This method does not fully implement
          +     * [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated
          +     * as a bad request, and when the `field_mask` is omitted, the request is
          +     * treated as a full update on all modifiable fields.*
          +     * 
          + */ + public void updateConfig( + com.google.cloud.dataform.v1beta1.UpdateConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Gets the access control policy for a resource.
          +     * Returns an empty policy if the resource exists and does not have a policy
          +     * set.
          +     * 
          + */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Sets the access control policy on the specified resource. Replaces any
          +     * existing policy.
          +     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
          +     * 
          + */ + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Returns permissions that a caller has on the specified resource.
          +     * If the resource does not exist, this will return an empty set of
          +     * permissions, not a `NOT_FOUND` error.
          +     * Note: This operation is designed to be used for building permission-aware
          +     * UIs and command-line tools, not for authorization checking. This operation
          +     * may "fail open" without warning.
          +     * 
          + */ + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service Dataform. + * + *
          +   * Dataform is a service to develop, create, document, test, and update curated
          +   * tables in BigQuery.
          +   * 
          + */ + public static final class DataformBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private DataformBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataformBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataformBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
          +     * Fetches a single TeamFolder.
          +     * 
          + */ + public com.google.cloud.dataform.v1beta1.TeamFolder getTeamFolder( + com.google.cloud.dataform.v1beta1.GetTeamFolderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetTeamFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Creates a new TeamFolder in a given project and location.
          +     * 
          + */ + public com.google.cloud.dataform.v1beta1.TeamFolder createTeamFolder( + com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateTeamFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Updates a single TeamFolder.
          +     * 
          + */ + public com.google.cloud.dataform.v1beta1.TeamFolder updateTeamFolder( + com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateTeamFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Deletes a single TeamFolder.
          +     * 
          + */ + public com.google.protobuf.Empty deleteTeamFolder( + com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteTeamFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Returns the contents of a given TeamFolder.
          +     * 
          + */ + public com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + queryTeamFolderContents( + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getQueryTeamFolderContentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Returns all TeamFolders in a given location that the caller has access to
          +     * and match the provided filter.
                * 
          */ - public void getWorkflowInvocation( - com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkflowInvocationMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse searchTeamFolders( + com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getSearchTeamFoldersMethod(), getCallOptions(), request); } /** * * *
          -     * Creates a new WorkflowInvocation in a given Repository.
          +     * Fetches a single Folder.
                * 
          */ - public void createWorkflowInvocation( - com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkflowInvocationMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.dataform.v1beta1.Folder getFolder( + com.google.cloud.dataform.v1beta1.GetFolderRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetFolderMethod(), getCallOptions(), request); } /** * * *
          -     * Deletes a single WorkflowInvocation.
          +     * Creates a new Folder in a given project and location.
                * 
          */ - public void deleteWorkflowInvocation( - com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkflowInvocationMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.dataform.v1beta1.Folder createFolder( + com.google.cloud.dataform.v1beta1.CreateFolderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateFolderMethod(), getCallOptions(), request); } /** * * *
          -     * Requests cancellation of a running WorkflowInvocation.
          +     * Updates a single Folder.
                * 
          */ - public void cancelWorkflowInvocation( - com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCancelWorkflowInvocationMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.dataform.v1beta1.Folder updateFolder( + com.google.cloud.dataform.v1beta1.UpdateFolderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateFolderMethod(), getCallOptions(), request); } /** * * *
          -     * Returns WorkflowInvocationActions in a given WorkflowInvocation.
          +     * Deletes a single Folder.
                * 
          */ - public void queryWorkflowInvocationActions( - com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getQueryWorkflowInvocationActionsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.protobuf.Empty deleteFolder( + com.google.cloud.dataform.v1beta1.DeleteFolderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteFolderMethod(), getCallOptions(), request); } /** * * *
          -     * Get default config for a given project and location.
          +     * Returns the contents of a given Folder.
                * 
          */ - public void getConfig( - com.google.cloud.dataform.v1beta1.GetConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetConfigMethod(), getCallOptions()), request, responseObserver); + public com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse queryFolderContents( + com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getQueryFolderContentsMethod(), getCallOptions(), request); } /** * * *
          -     * Update default config for a given project and location.
          -     * **Note:** *This method does not fully implement
          -     * [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated
          -     * as a bad request, and when the `field_mask` is omitted, the request is
          -     * treated as a full update on all modifiable fields.*
          +     * Returns the contents of a caller's root folder in a given location.
          +     * The root folder contains all resources that are created by the user and not
          +     * contained in any other folder.
                * 
          */ - public void updateConfig( - com.google.cloud.dataform.v1beta1.UpdateConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateConfigMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service Dataform. - * - *
          -   * Dataform is a service to develop, create, document, test, and update curated
          -   * tables in BigQuery.
          -   * 
          - */ - public static final class DataformBlockingV2Stub - extends io.grpc.stub.AbstractBlockingStub { - private DataformBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); + public com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse queryUserRootContents( + com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getQueryUserRootContentsMethod(), getCallOptions(), request); } - @java.lang.Override - protected DataformBlockingV2Stub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataformBlockingV2Stub(channel, callOptions); + /** + * + * + *
          +     * Moves a Folder to a new Folder, TeamFolder, or the root location.
          +     * 
          + */ + public com.google.longrunning.Operation moveFolder( + com.google.cloud.dataform.v1beta1.MoveFolderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getMoveFolderMethod(), getCallOptions(), request); } /** @@ -4548,6 +6031,20 @@ public com.google.protobuf.Empty deleteRepository( getChannel(), getDeleteRepositoryMethod(), getCallOptions(), request); } + /** + * + * + *
          +     * Moves a Repository to a new location.
          +     * 
          + */ + public com.google.longrunning.Operation moveRepository( + com.google.cloud.dataform.v1beta1.MoveRepositoryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getMoveRepositoryMethod(), getCallOptions(), request); + } + /** * * @@ -5253,6 +6750,54 @@ public com.google.cloud.dataform.v1beta1.Config updateConfig( return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateConfigMethod(), getCallOptions(), request); } + + /** + * + * + *
          +     * Gets the access control policy for a resource.
          +     * Returns an empty policy if the resource exists and does not have a policy
          +     * set.
          +     * 
          + */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Sets the access control policy on the specified resource. Replaces any
          +     * existing policy.
          +     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
          +     * 
          + */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Returns permissions that a caller has on the specified resource.
          +     * If the resource does not exist, this will return an empty set of
          +     * permissions, not a `NOT_FOUND` error.
          +     * Note: This operation is designed to be used for building permission-aware
          +     * UIs and command-line tools, not for authorization checking. This operation
          +     * may "fail open" without warning.
          +     * 
          + */ + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); + } } /** @@ -5269,9 +6814,182 @@ private DataformBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOp super(channel, callOptions); } - @java.lang.Override - protected DataformBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataformBlockingStub(channel, callOptions); + @java.lang.Override + protected DataformBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataformBlockingStub(channel, callOptions); + } + + /** + * + * + *
          +     * Fetches a single TeamFolder.
          +     * 
          + */ + public com.google.cloud.dataform.v1beta1.TeamFolder getTeamFolder( + com.google.cloud.dataform.v1beta1.GetTeamFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTeamFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Creates a new TeamFolder in a given project and location.
          +     * 
          + */ + public com.google.cloud.dataform.v1beta1.TeamFolder createTeamFolder( + com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateTeamFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Updates a single TeamFolder.
          +     * 
          + */ + public com.google.cloud.dataform.v1beta1.TeamFolder updateTeamFolder( + com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateTeamFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Deletes a single TeamFolder.
          +     * 
          + */ + public com.google.protobuf.Empty deleteTeamFolder( + com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteTeamFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Returns the contents of a given TeamFolder.
          +     * 
          + */ + public com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + queryTeamFolderContents( + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryTeamFolderContentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Returns all TeamFolders in a given location that the caller has access to
          +     * and match the provided filter.
          +     * 
          + */ + public com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse searchTeamFolders( + com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchTeamFoldersMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Fetches a single Folder.
          +     * 
          + */ + public com.google.cloud.dataform.v1beta1.Folder getFolder( + com.google.cloud.dataform.v1beta1.GetFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Creates a new Folder in a given project and location.
          +     * 
          + */ + public com.google.cloud.dataform.v1beta1.Folder createFolder( + com.google.cloud.dataform.v1beta1.CreateFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Updates a single Folder.
          +     * 
          + */ + public com.google.cloud.dataform.v1beta1.Folder updateFolder( + com.google.cloud.dataform.v1beta1.UpdateFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Deletes a single Folder.
          +     * 
          + */ + public com.google.protobuf.Empty deleteFolder( + com.google.cloud.dataform.v1beta1.DeleteFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Returns the contents of a given Folder.
          +     * 
          + */ + public com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse queryFolderContents( + com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryFolderContentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Returns the contents of a caller's root folder in a given location.
          +     * The root folder contains all resources that are created by the user and not
          +     * contained in any other folder.
          +     * 
          + */ + public com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse queryUserRootContents( + com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryUserRootContentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Moves a Folder to a new Folder, TeamFolder, or the root location.
          +     * 
          + */ + public com.google.longrunning.Operation moveFolder( + com.google.cloud.dataform.v1beta1.MoveFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getMoveFolderMethod(), getCallOptions(), request); } /** @@ -5345,6 +7063,19 @@ public com.google.protobuf.Empty deleteRepository( getChannel(), getDeleteRepositoryMethod(), getCallOptions(), request); } + /** + * + * + *
          +     * Moves a Repository to a new location.
          +     * 
          + */ + public com.google.longrunning.Operation moveRepository( + com.google.cloud.dataform.v1beta1.MoveRepositoryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getMoveRepositoryMethod(), getCallOptions(), request); + } + /** * * @@ -5812,218 +7543,448 @@ public com.google.cloud.dataform.v1beta1.CompilationResult createCompilationResu getChannel(), getCreateCompilationResultMethod(), getCallOptions(), request); } - /** - * - * - *
          -     * Returns CompilationResultActions in a given CompilationResult.
          -     * 
          - */ - public com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse - queryCompilationResultActions( - com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getQueryCompilationResultActionsMethod(), getCallOptions(), request); + /** + * + * + *
          +     * Returns CompilationResultActions in a given CompilationResult.
          +     * 
          + */ + public com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse + queryCompilationResultActions( + com.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryCompilationResultActionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Lists WorkflowConfigs in a given Repository.
          +     * 
          + */ + public com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse listWorkflowConfigs( + com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkflowConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Fetches a single WorkflowConfig.
          +     * 
          + */ + public com.google.cloud.dataform.v1beta1.WorkflowConfig getWorkflowConfig( + com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWorkflowConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Creates a new WorkflowConfig in a given Repository.
          +     * 
          + */ + public com.google.cloud.dataform.v1beta1.WorkflowConfig createWorkflowConfig( + com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkflowConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Updates a single WorkflowConfig.
          +     * **Note:** *This method does not fully implement
          +     * [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated
          +     * as a bad request, and when the `field_mask` is omitted, the request is
          +     * treated as a full update on all modifiable fields.*
          +     * 
          + */ + public com.google.cloud.dataform.v1beta1.WorkflowConfig updateWorkflowConfig( + com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateWorkflowConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Deletes a single WorkflowConfig.
          +     * 
          + */ + public com.google.protobuf.Empty deleteWorkflowConfig( + com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkflowConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Lists WorkflowInvocations in a given Repository.
          +     * 
          + */ + public com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse + listWorkflowInvocations( + com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkflowInvocationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Fetches a single WorkflowInvocation.
          +     * 
          + */ + public com.google.cloud.dataform.v1beta1.WorkflowInvocation getWorkflowInvocation( + com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWorkflowInvocationMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Creates a new WorkflowInvocation in a given Repository.
          +     * 
          + */ + public com.google.cloud.dataform.v1beta1.WorkflowInvocation createWorkflowInvocation( + com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkflowInvocationMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Deletes a single WorkflowInvocation.
          +     * 
          + */ + public com.google.protobuf.Empty deleteWorkflowInvocation( + com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkflowInvocationMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Requests cancellation of a running WorkflowInvocation.
          +     * 
          + */ + public com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationResponse + cancelWorkflowInvocation( + com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCancelWorkflowInvocationMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Returns WorkflowInvocationActions in a given WorkflowInvocation.
          +     * 
          + */ + public com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse + queryWorkflowInvocationActions( + com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryWorkflowInvocationActionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Get default config for a given project and location.
          +     * 
          + */ + public com.google.cloud.dataform.v1beta1.Config getConfig( + com.google.cloud.dataform.v1beta1.GetConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Update default config for a given project and location.
          +     * **Note:** *This method does not fully implement
          +     * [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated
          +     * as a bad request, and when the `field_mask` is omitted, the request is
          +     * treated as a full update on all modifiable fields.*
          +     * 
          + */ + public com.google.cloud.dataform.v1beta1.Config updateConfig( + com.google.cloud.dataform.v1beta1.UpdateConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Gets the access control policy for a resource.
          +     * Returns an empty policy if the resource exists and does not have a policy
          +     * set.
          +     * 
          + */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Sets the access control policy on the specified resource. Replaces any
          +     * existing policy.
          +     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
          +     * 
          + */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Returns permissions that a caller has on the specified resource.
          +     * If the resource does not exist, this will return an empty set of
          +     * permissions, not a `NOT_FOUND` error.
          +     * Note: This operation is designed to be used for building permission-aware
          +     * UIs and command-line tools, not for authorization checking. This operation
          +     * may "fail open" without warning.
          +     * 
          + */ + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service Dataform. + * + *
          +   * Dataform is a service to develop, create, document, test, and update curated
          +   * tables in BigQuery.
          +   * 
          + */ + public static final class DataformFutureStub + extends io.grpc.stub.AbstractFutureStub { + private DataformFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataformFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataformFutureStub(channel, callOptions); } /** * * *
          -     * Lists WorkflowConfigs in a given Repository.
          +     * Fetches a single TeamFolder.
                * 
          */ - public com.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse listWorkflowConfigs( - com.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkflowConfigsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1beta1.TeamFolder> + getTeamFolder(com.google.cloud.dataform.v1beta1.GetTeamFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTeamFolderMethod(), getCallOptions()), request); } /** * * *
          -     * Fetches a single WorkflowConfig.
          +     * Creates a new TeamFolder in a given project and location.
                * 
          */ - public com.google.cloud.dataform.v1beta1.WorkflowConfig getWorkflowConfig( - com.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkflowConfigMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1beta1.TeamFolder> + createTeamFolder(com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateTeamFolderMethod(), getCallOptions()), request); } /** * * *
          -     * Creates a new WorkflowConfig in a given Repository.
          +     * Updates a single TeamFolder.
                * 
          */ - public com.google.cloud.dataform.v1beta1.WorkflowConfig createWorkflowConfig( - com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkflowConfigMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1beta1.TeamFolder> + updateTeamFolder(com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateTeamFolderMethod(), getCallOptions()), request); } /** * * *
          -     * Updates a single WorkflowConfig.
          -     * **Note:** *This method does not fully implement
          -     * [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated
          -     * as a bad request, and when the `field_mask` is omitted, the request is
          -     * treated as a full update on all modifiable fields.*
          +     * Deletes a single TeamFolder.
                * 
          */ - public com.google.cloud.dataform.v1beta1.WorkflowConfig updateWorkflowConfig( - com.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateWorkflowConfigMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteTeamFolder(com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteTeamFolderMethod(), getCallOptions()), request); } /** * * *
          -     * Deletes a single WorkflowConfig.
          +     * Returns the contents of a given TeamFolder.
                * 
          */ - public com.google.protobuf.Empty deleteWorkflowConfig( - com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkflowConfigMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse> + queryTeamFolderContents( + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getQueryTeamFolderContentsMethod(), getCallOptions()), request); } /** * * *
          -     * Lists WorkflowInvocations in a given Repository.
          +     * Returns all TeamFolders in a given location that the caller has access to
          +     * and match the provided filter.
                * 
          */ - public com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse - listWorkflowInvocations( - com.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkflowInvocationsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse> + searchTeamFolders(com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchTeamFoldersMethod(), getCallOptions()), request); } /** * * *
          -     * Fetches a single WorkflowInvocation.
          +     * Fetches a single Folder.
                * 
          */ - public com.google.cloud.dataform.v1beta1.WorkflowInvocation getWorkflowInvocation( - com.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkflowInvocationMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1beta1.Folder> + getFolder(com.google.cloud.dataform.v1beta1.GetFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFolderMethod(), getCallOptions()), request); } /** * * *
          -     * Creates a new WorkflowInvocation in a given Repository.
          +     * Creates a new Folder in a given project and location.
                * 
          */ - public com.google.cloud.dataform.v1beta1.WorkflowInvocation createWorkflowInvocation( - com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkflowInvocationMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1beta1.Folder> + createFolder(com.google.cloud.dataform.v1beta1.CreateFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFolderMethod(), getCallOptions()), request); } /** * * *
          -     * Deletes a single WorkflowInvocation.
          +     * Updates a single Folder.
                * 
          */ - public com.google.protobuf.Empty deleteWorkflowInvocation( - com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkflowInvocationMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1beta1.Folder> + updateFolder(com.google.cloud.dataform.v1beta1.UpdateFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFolderMethod(), getCallOptions()), request); } /** * * *
          -     * Requests cancellation of a running WorkflowInvocation.
          +     * Deletes a single Folder.
                * 
          */ - public com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationResponse - cancelWorkflowInvocation( - com.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCancelWorkflowInvocationMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteFolder(com.google.cloud.dataform.v1beta1.DeleteFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFolderMethod(), getCallOptions()), request); } /** * * *
          -     * Returns WorkflowInvocationActions in a given WorkflowInvocation.
          +     * Returns the contents of a given Folder.
                * 
          */ - public com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse - queryWorkflowInvocationActions( - com.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getQueryWorkflowInvocationActionsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse> + queryFolderContents(com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getQueryFolderContentsMethod(), getCallOptions()), request); } /** * * *
          -     * Get default config for a given project and location.
          +     * Returns the contents of a caller's root folder in a given location.
          +     * The root folder contains all resources that are created by the user and not
          +     * contained in any other folder.
                * 
          */ - public com.google.cloud.dataform.v1beta1.Config getConfig( - com.google.cloud.dataform.v1beta1.GetConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetConfigMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse> + queryUserRootContents( + com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getQueryUserRootContentsMethod(), getCallOptions()), request); } /** * * *
          -     * Update default config for a given project and location.
          -     * **Note:** *This method does not fully implement
          -     * [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated
          -     * as a bad request, and when the `field_mask` is omitted, the request is
          -     * treated as a full update on all modifiable fields.*
          +     * Moves a Folder to a new Folder, TeamFolder, or the root location.
                * 
          */ - public com.google.cloud.dataform.v1beta1.Config updateConfig( - com.google.cloud.dataform.v1beta1.UpdateConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateConfigMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service Dataform. - * - *
          -   * Dataform is a service to develop, create, document, test, and update curated
          -   * tables in BigQuery.
          -   * 
          - */ - public static final class DataformFutureStub - extends io.grpc.stub.AbstractFutureStub { - private DataformFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataformFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataformFutureStub(channel, callOptions); + public com.google.common.util.concurrent.ListenableFuture + moveFolder(com.google.cloud.dataform.v1beta1.MoveFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getMoveFolderMethod(), getCallOptions()), request); } /** @@ -6101,6 +8062,19 @@ protected DataformFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions getChannel().newCall(getDeleteRepositoryMethod(), getCallOptions()), request); } + /** + * + * + *
          +     * Moves a Repository to a new location.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + moveRepository(com.google.cloud.dataform.v1beta1.MoveRepositoryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getMoveRepositoryMethod(), getCallOptions()), request); + } + /** * * @@ -6824,62 +8798,128 @@ protected DataformFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateConfigMethod(), getCallOptions()), request); } + + /** + * + * + *
          +     * Gets the access control policy for a resource.
          +     * Returns an empty policy if the resource exists and does not have a policy
          +     * set.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Sets the access control policy on the specified resource. Replaces any
          +     * existing policy.
          +     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Returns permissions that a caller has on the specified resource.
          +     * If the resource does not exist, this will return an empty set of
          +     * permissions, not a `NOT_FOUND` error.
          +     * Note: This operation is designed to be used for building permission-aware
          +     * UIs and command-line tools, not for authorization checking. This operation
          +     * may "fail open" without warning.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.iam.v1.TestIamPermissionsResponse> + testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); + } } - private static final int METHODID_LIST_REPOSITORIES = 0; - private static final int METHODID_GET_REPOSITORY = 1; - private static final int METHODID_CREATE_REPOSITORY = 2; - private static final int METHODID_UPDATE_REPOSITORY = 3; - private static final int METHODID_DELETE_REPOSITORY = 4; - private static final int METHODID_COMMIT_REPOSITORY_CHANGES = 5; - private static final int METHODID_READ_REPOSITORY_FILE = 6; - private static final int METHODID_QUERY_REPOSITORY_DIRECTORY_CONTENTS = 7; - private static final int METHODID_FETCH_REPOSITORY_HISTORY = 8; - private static final int METHODID_COMPUTE_REPOSITORY_ACCESS_TOKEN_STATUS = 9; - private static final int METHODID_FETCH_REMOTE_BRANCHES = 10; - private static final int METHODID_LIST_WORKSPACES = 11; - private static final int METHODID_GET_WORKSPACE = 12; - private static final int METHODID_CREATE_WORKSPACE = 13; - private static final int METHODID_DELETE_WORKSPACE = 14; - private static final int METHODID_INSTALL_NPM_PACKAGES = 15; - private static final int METHODID_PULL_GIT_COMMITS = 16; - private static final int METHODID_PUSH_GIT_COMMITS = 17; - private static final int METHODID_FETCH_FILE_GIT_STATUSES = 18; - private static final int METHODID_FETCH_GIT_AHEAD_BEHIND = 19; - private static final int METHODID_COMMIT_WORKSPACE_CHANGES = 20; - private static final int METHODID_RESET_WORKSPACE_CHANGES = 21; - private static final int METHODID_FETCH_FILE_DIFF = 22; - private static final int METHODID_QUERY_DIRECTORY_CONTENTS = 23; - private static final int METHODID_SEARCH_FILES = 24; - private static final int METHODID_MAKE_DIRECTORY = 25; - private static final int METHODID_REMOVE_DIRECTORY = 26; - private static final int METHODID_MOVE_DIRECTORY = 27; - private static final int METHODID_READ_FILE = 28; - private static final int METHODID_REMOVE_FILE = 29; - private static final int METHODID_MOVE_FILE = 30; - private static final int METHODID_WRITE_FILE = 31; - private static final int METHODID_LIST_RELEASE_CONFIGS = 32; - private static final int METHODID_GET_RELEASE_CONFIG = 33; - private static final int METHODID_CREATE_RELEASE_CONFIG = 34; - private static final int METHODID_UPDATE_RELEASE_CONFIG = 35; - private static final int METHODID_DELETE_RELEASE_CONFIG = 36; - private static final int METHODID_LIST_COMPILATION_RESULTS = 37; - private static final int METHODID_GET_COMPILATION_RESULT = 38; - private static final int METHODID_CREATE_COMPILATION_RESULT = 39; - private static final int METHODID_QUERY_COMPILATION_RESULT_ACTIONS = 40; - private static final int METHODID_LIST_WORKFLOW_CONFIGS = 41; - private static final int METHODID_GET_WORKFLOW_CONFIG = 42; - private static final int METHODID_CREATE_WORKFLOW_CONFIG = 43; - private static final int METHODID_UPDATE_WORKFLOW_CONFIG = 44; - private static final int METHODID_DELETE_WORKFLOW_CONFIG = 45; - private static final int METHODID_LIST_WORKFLOW_INVOCATIONS = 46; - private static final int METHODID_GET_WORKFLOW_INVOCATION = 47; - private static final int METHODID_CREATE_WORKFLOW_INVOCATION = 48; - private static final int METHODID_DELETE_WORKFLOW_INVOCATION = 49; - private static final int METHODID_CANCEL_WORKFLOW_INVOCATION = 50; - private static final int METHODID_QUERY_WORKFLOW_INVOCATION_ACTIONS = 51; - private static final int METHODID_GET_CONFIG = 52; - private static final int METHODID_UPDATE_CONFIG = 53; + private static final int METHODID_GET_TEAM_FOLDER = 0; + private static final int METHODID_CREATE_TEAM_FOLDER = 1; + private static final int METHODID_UPDATE_TEAM_FOLDER = 2; + private static final int METHODID_DELETE_TEAM_FOLDER = 3; + private static final int METHODID_QUERY_TEAM_FOLDER_CONTENTS = 4; + private static final int METHODID_SEARCH_TEAM_FOLDERS = 5; + private static final int METHODID_GET_FOLDER = 6; + private static final int METHODID_CREATE_FOLDER = 7; + private static final int METHODID_UPDATE_FOLDER = 8; + private static final int METHODID_DELETE_FOLDER = 9; + private static final int METHODID_QUERY_FOLDER_CONTENTS = 10; + private static final int METHODID_QUERY_USER_ROOT_CONTENTS = 11; + private static final int METHODID_MOVE_FOLDER = 12; + private static final int METHODID_LIST_REPOSITORIES = 13; + private static final int METHODID_GET_REPOSITORY = 14; + private static final int METHODID_CREATE_REPOSITORY = 15; + private static final int METHODID_UPDATE_REPOSITORY = 16; + private static final int METHODID_DELETE_REPOSITORY = 17; + private static final int METHODID_MOVE_REPOSITORY = 18; + private static final int METHODID_COMMIT_REPOSITORY_CHANGES = 19; + private static final int METHODID_READ_REPOSITORY_FILE = 20; + private static final int METHODID_QUERY_REPOSITORY_DIRECTORY_CONTENTS = 21; + private static final int METHODID_FETCH_REPOSITORY_HISTORY = 22; + private static final int METHODID_COMPUTE_REPOSITORY_ACCESS_TOKEN_STATUS = 23; + private static final int METHODID_FETCH_REMOTE_BRANCHES = 24; + private static final int METHODID_LIST_WORKSPACES = 25; + private static final int METHODID_GET_WORKSPACE = 26; + private static final int METHODID_CREATE_WORKSPACE = 27; + private static final int METHODID_DELETE_WORKSPACE = 28; + private static final int METHODID_INSTALL_NPM_PACKAGES = 29; + private static final int METHODID_PULL_GIT_COMMITS = 30; + private static final int METHODID_PUSH_GIT_COMMITS = 31; + private static final int METHODID_FETCH_FILE_GIT_STATUSES = 32; + private static final int METHODID_FETCH_GIT_AHEAD_BEHIND = 33; + private static final int METHODID_COMMIT_WORKSPACE_CHANGES = 34; + private static final int METHODID_RESET_WORKSPACE_CHANGES = 35; + private static final int METHODID_FETCH_FILE_DIFF = 36; + private static final int METHODID_QUERY_DIRECTORY_CONTENTS = 37; + private static final int METHODID_SEARCH_FILES = 38; + private static final int METHODID_MAKE_DIRECTORY = 39; + private static final int METHODID_REMOVE_DIRECTORY = 40; + private static final int METHODID_MOVE_DIRECTORY = 41; + private static final int METHODID_READ_FILE = 42; + private static final int METHODID_REMOVE_FILE = 43; + private static final int METHODID_MOVE_FILE = 44; + private static final int METHODID_WRITE_FILE = 45; + private static final int METHODID_LIST_RELEASE_CONFIGS = 46; + private static final int METHODID_GET_RELEASE_CONFIG = 47; + private static final int METHODID_CREATE_RELEASE_CONFIG = 48; + private static final int METHODID_UPDATE_RELEASE_CONFIG = 49; + private static final int METHODID_DELETE_RELEASE_CONFIG = 50; + private static final int METHODID_LIST_COMPILATION_RESULTS = 51; + private static final int METHODID_GET_COMPILATION_RESULT = 52; + private static final int METHODID_CREATE_COMPILATION_RESULT = 53; + private static final int METHODID_QUERY_COMPILATION_RESULT_ACTIONS = 54; + private static final int METHODID_LIST_WORKFLOW_CONFIGS = 55; + private static final int METHODID_GET_WORKFLOW_CONFIG = 56; + private static final int METHODID_CREATE_WORKFLOW_CONFIG = 57; + private static final int METHODID_UPDATE_WORKFLOW_CONFIG = 58; + private static final int METHODID_DELETE_WORKFLOW_CONFIG = 59; + private static final int METHODID_LIST_WORKFLOW_INVOCATIONS = 60; + private static final int METHODID_GET_WORKFLOW_INVOCATION = 61; + private static final int METHODID_CREATE_WORKFLOW_INVOCATION = 62; + private static final int METHODID_DELETE_WORKFLOW_INVOCATION = 63; + private static final int METHODID_CANCEL_WORKFLOW_INVOCATION = 64; + private static final int METHODID_QUERY_WORKFLOW_INVOCATION_ACTIONS = 65; + private static final int METHODID_GET_CONFIG = 66; + private static final int METHODID_UPDATE_CONFIG = 67; + private static final int METHODID_GET_IAM_POLICY = 68; + private static final int METHODID_SET_IAM_POLICY = 69; + private static final int METHODID_TEST_IAM_PERMISSIONS = 70; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -6898,6 +8938,85 @@ private static final class MethodHandlers @java.lang.SuppressWarnings("unchecked") public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { + case METHODID_GET_TEAM_FOLDER: + serviceImpl.getTeamFolder( + (com.google.cloud.dataform.v1beta1.GetTeamFolderRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_TEAM_FOLDER: + serviceImpl.createTeamFolder( + (com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_TEAM_FOLDER: + serviceImpl.updateTeamFolder( + (com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_TEAM_FOLDER: + serviceImpl.deleteTeamFolder( + (com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_QUERY_TEAM_FOLDER_CONTENTS: + serviceImpl.queryTeamFolderContents( + (com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse>) + responseObserver); + break; + case METHODID_SEARCH_TEAM_FOLDERS: + serviceImpl.searchTeamFolders( + (com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse>) + responseObserver); + break; + case METHODID_GET_FOLDER: + serviceImpl.getFolder( + (com.google.cloud.dataform.v1beta1.GetFolderRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_FOLDER: + serviceImpl.createFolder( + (com.google.cloud.dataform.v1beta1.CreateFolderRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_FOLDER: + serviceImpl.updateFolder( + (com.google.cloud.dataform.v1beta1.UpdateFolderRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_FOLDER: + serviceImpl.deleteFolder( + (com.google.cloud.dataform.v1beta1.DeleteFolderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_QUERY_FOLDER_CONTENTS: + serviceImpl.queryFolderContents( + (com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse>) + responseObserver); + break; + case METHODID_QUERY_USER_ROOT_CONTENTS: + serviceImpl.queryUserRootContents( + (com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse>) + responseObserver); + break; + case METHODID_MOVE_FOLDER: + serviceImpl.moveFolder( + (com.google.cloud.dataform.v1beta1.MoveFolderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_LIST_REPOSITORIES: serviceImpl.listRepositories( (com.google.cloud.dataform.v1beta1.ListRepositoriesRequest) request, @@ -6928,6 +9047,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_MOVE_REPOSITORY: + serviceImpl.moveRepository( + (com.google.cloud.dataform.v1beta1.MoveRepositoryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_COMMIT_REPOSITORY_CHANGES: serviceImpl.commitRepositoryChanges( (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest) request, @@ -7241,6 +9365,22 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_IAM_POLICY: + serviceImpl.getIamPolicy( + (com.google.iam.v1.GetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_IAM_POLICY: + serviceImpl.setIamPolicy( + (com.google.iam.v1.SetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_TEST_IAM_PERMISSIONS: + serviceImpl.testIamPermissions( + (com.google.iam.v1.TestIamPermissionsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; default: throw new AssertionError(); } @@ -7259,6 +9399,91 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetTeamFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.GetTeamFolderRequest, + com.google.cloud.dataform.v1beta1.TeamFolder>( + service, METHODID_GET_TEAM_FOLDER))) + .addMethod( + getCreateTeamFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest, + com.google.cloud.dataform.v1beta1.TeamFolder>( + service, METHODID_CREATE_TEAM_FOLDER))) + .addMethod( + getUpdateTeamFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest, + com.google.cloud.dataform.v1beta1.TeamFolder>( + service, METHODID_UPDATE_TEAM_FOLDER))) + .addMethod( + getDeleteTeamFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_TEAM_FOLDER))) + .addMethod( + getQueryTeamFolderContentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest, + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse>( + service, METHODID_QUERY_TEAM_FOLDER_CONTENTS))) + .addMethod( + getSearchTeamFoldersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest, + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse>( + service, METHODID_SEARCH_TEAM_FOLDERS))) + .addMethod( + getGetFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.GetFolderRequest, + com.google.cloud.dataform.v1beta1.Folder>(service, METHODID_GET_FOLDER))) + .addMethod( + getCreateFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.CreateFolderRequest, + com.google.cloud.dataform.v1beta1.Folder>(service, METHODID_CREATE_FOLDER))) + .addMethod( + getUpdateFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.UpdateFolderRequest, + com.google.cloud.dataform.v1beta1.Folder>(service, METHODID_UPDATE_FOLDER))) + .addMethod( + getDeleteFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.DeleteFolderRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_FOLDER))) + .addMethod( + getQueryFolderContentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest, + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse>( + service, METHODID_QUERY_FOLDER_CONTENTS))) + .addMethod( + getQueryUserRootContentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest, + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse>( + service, METHODID_QUERY_USER_ROOT_CONTENTS))) + .addMethod( + getMoveFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.MoveFolderRequest, + com.google.longrunning.Operation>(service, METHODID_MOVE_FOLDER))) .addMethod( getListRepositoriesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -7293,6 +9518,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest, com.google.protobuf.Empty>(service, METHODID_DELETE_REPOSITORY))) + .addMethod( + getMoveRepositoryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.MoveRepositoryRequest, + com.google.longrunning.Operation>(service, METHODID_MOVE_REPOSITORY))) .addMethod( getCommitRepositoryChangesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -7629,6 +9860,23 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.dataform.v1beta1.UpdateConfigRequest, com.google.cloud.dataform.v1beta1.Config>(service, METHODID_UPDATE_CONFIG))) + .addMethod( + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + service, METHODID_GET_IAM_POLICY))) + .addMethod( + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + service, METHODID_SET_IAM_POLICY))) + .addMethod( + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + service, METHODID_TEST_IAM_PERMISSIONS))) .build(); } @@ -7678,11 +9926,25 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new DataformFileDescriptorSupplier()) + .addMethod(getGetTeamFolderMethod()) + .addMethod(getCreateTeamFolderMethod()) + .addMethod(getUpdateTeamFolderMethod()) + .addMethod(getDeleteTeamFolderMethod()) + .addMethod(getQueryTeamFolderContentsMethod()) + .addMethod(getSearchTeamFoldersMethod()) + .addMethod(getGetFolderMethod()) + .addMethod(getCreateFolderMethod()) + .addMethod(getUpdateFolderMethod()) + .addMethod(getDeleteFolderMethod()) + .addMethod(getQueryFolderContentsMethod()) + .addMethod(getQueryUserRootContentsMethod()) + .addMethod(getMoveFolderMethod()) .addMethod(getListRepositoriesMethod()) .addMethod(getGetRepositoryMethod()) .addMethod(getCreateRepositoryMethod()) .addMethod(getUpdateRepositoryMethod()) .addMethod(getDeleteRepositoryMethod()) + .addMethod(getMoveRepositoryMethod()) .addMethod(getCommitRepositoryChangesMethod()) .addMethod(getReadRepositoryFileMethod()) .addMethod(getQueryRepositoryDirectoryContentsMethod()) @@ -7732,6 +9994,9 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getQueryWorkflowInvocationActionsMethod()) .addMethod(getGetConfigMethod()) .addMethod(getUpdateConfigMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) .build(); } } diff --git a/java-dataform/pom.xml b/java-dataform/pom.xml index 85a2884828d2..ba4e1d747288 100644 --- a/java-dataform/pom.xml +++ b/java-dataform/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataform-parent pom - 0.83.0-SNAPSHOT + 0.84.0 Google Cloud Dataform Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-dataform - 0.83.0-SNAPSHOT + 0.84.0 com.google.api.grpc proto-google-cloud-dataform-v1 - 0.83.0-SNAPSHOT + 0.84.0 com.google.api.grpc grpc-google-cloud-dataform-v1 - 0.83.0-SNAPSHOT + 0.84.0 com.google.api.grpc proto-google-cloud-dataform-v1beta1 - 0.83.0-SNAPSHOT + 0.84.0 com.google.api.grpc grpc-google-cloud-dataform-v1beta1 - 0.83.0-SNAPSHOT + 0.84.0
          diff --git a/java-dataform/proto-google-cloud-dataform-v1/pom.xml b/java-dataform/proto-google-cloud-dataform-v1/pom.xml index f411b042e555..12c14baff30c 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/pom.xml +++ b/java-dataform/proto-google-cloud-dataform-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataform-v1 - 0.83.0-SNAPSHOT + 0.84.0 proto-google-cloud-dataform-v1 Proto library for google-cloud-dataform com.google.cloud google-cloud-dataform-parent - 0.83.0-SNAPSHOT + 0.84.0 diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/pom.xml b/java-dataform/proto-google-cloud-dataform-v1beta1/pom.xml index c54d42f28c06..b9f0b57d1d0d 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/pom.xml +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataform-v1beta1 - 0.83.0-SNAPSHOT + 0.84.0 proto-google-cloud-dataform-v1beta1 Proto library for google-cloud-dataform com.google.cloud google-cloud-dataform-parent - 0.83.0-SNAPSHOT + 0.84.0 @@ -29,5 +29,9 @@ com.google.guava guava + + com.google.api.grpc + proto-google-iam-v1 + diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResult.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResult.java index dd516292a041..47a30cb4fa06 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResult.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResult.java @@ -2317,6 +2317,72 @@ public com.google.protobuf.ByteString getInternalMetadataBytes() { } } + public static final int PRIVATE_RESOURCE_METADATA_FIELD_NUMBER = 12; + private com.google.cloud.dataform.v1beta1.PrivateResourceMetadata privateResourceMetadata_; + + /** + * + * + *
          +   * Output only. Metadata indicating whether this resource is user-scoped.
          +   * `CompilationResult` resource is `user_scoped` only if it is sourced
          +   * from a workspace.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateResourceMetadata field is set. + */ + @java.lang.Override + public boolean hasPrivateResourceMetadata() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
          +   * Output only. Metadata indicating whether this resource is user-scoped.
          +   * `CompilationResult` resource is `user_scoped` only if it is sourced
          +   * from a workspace.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateResourceMetadata. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.PrivateResourceMetadata getPrivateResourceMetadata() { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } + + /** + * + * + *
          +   * Output only. Metadata indicating whether this resource is user-scoped.
          +   * `CompilationResult` resource is `user_scoped` only if it is sourced
          +   * from a workspace.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.PrivateResourceMetadataOrBuilder + getPrivateResourceMetadataOrBuilder() { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2364,6 +2430,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 11, internalMetadata_); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(12, getPrivateResourceMetadata()); + } getUnknownFields().writeTo(output); } @@ -2408,6 +2477,11 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(11, internalMetadata_); } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, getPrivateResourceMetadata()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2444,6 +2518,10 @@ public boolean equals(final java.lang.Object obj) { if (hasInternalMetadata()) { if (!getInternalMetadata().equals(other.getInternalMetadata())) return false; } + if (hasPrivateResourceMetadata() != other.hasPrivateResourceMetadata()) return false; + if (hasPrivateResourceMetadata()) { + if (!getPrivateResourceMetadata().equals(other.getPrivateResourceMetadata())) return false; + } if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 2: @@ -2495,6 +2573,10 @@ public int hashCode() { hash = (37 * hash) + INTERNAL_METADATA_FIELD_NUMBER; hash = (53 * hash) + getInternalMetadata().hashCode(); } + if (hasPrivateResourceMetadata()) { + hash = (37 * hash) + PRIVATE_RESOURCE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getPrivateResourceMetadata().hashCode(); + } switch (sourceCase_) { case 2: hash = (37 * hash) + GIT_COMMITISH_FIELD_NUMBER; @@ -2656,6 +2738,7 @@ private void maybeForceBuilderInitialization() { internalGetCompilationErrorsFieldBuilder(); internalGetDataEncryptionStateFieldBuilder(); internalGetCreateTimeFieldBuilder(); + internalGetPrivateResourceMetadataFieldBuilder(); } } @@ -2689,6 +2772,11 @@ public Builder clear() { createTimeBuilder_ = null; } internalMetadata_ = ""; + privateResourceMetadata_ = null; + if (privateResourceMetadataBuilder_ != null) { + privateResourceMetadataBuilder_.dispose(); + privateResourceMetadataBuilder_ = null; + } sourceCase_ = 0; source_ = null; return this; @@ -2774,6 +2862,13 @@ private void buildPartial0(com.google.cloud.dataform.v1beta1.CompilationResult r result.internalMetadata_ = internalMetadata_; to_bitField0_ |= 0x00000008; } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.privateResourceMetadata_ = + privateResourceMetadataBuilder_ == null + ? privateResourceMetadata_ + : privateResourceMetadataBuilder_.build(); + to_bitField0_ |= 0x00000010; + } result.bitField0_ |= to_bitField0_; } @@ -2851,6 +2946,9 @@ public Builder mergeFrom(com.google.cloud.dataform.v1beta1.CompilationResult oth bitField0_ |= 0x00000400; onChanged(); } + if (other.hasPrivateResourceMetadata()) { + mergePrivateResourceMetadata(other.getPrivateResourceMetadata()); + } switch (other.getSourceCase()) { case GIT_COMMITISH: { @@ -2985,6 +3083,14 @@ public Builder mergeFrom( bitField0_ |= 0x00000400; break; } // case 90 + case 98: + { + input.readMessage( + internalGetPrivateResourceMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 98 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5066,6 +5172,242 @@ public Builder setInternalMetadataBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.dataform.v1beta1.PrivateResourceMetadata privateResourceMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata, + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.Builder, + com.google.cloud.dataform.v1beta1.PrivateResourceMetadataOrBuilder> + privateResourceMetadataBuilder_; + + /** + * + * + *
          +     * Output only. Metadata indicating whether this resource is user-scoped.
          +     * `CompilationResult` resource is `user_scoped` only if it is sourced
          +     * from a workspace.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateResourceMetadata field is set. + */ + public boolean hasPrivateResourceMetadata() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
          +     * Output only. Metadata indicating whether this resource is user-scoped.
          +     * `CompilationResult` resource is `user_scoped` only if it is sourced
          +     * from a workspace.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateResourceMetadata. + */ + public com.google.cloud.dataform.v1beta1.PrivateResourceMetadata getPrivateResourceMetadata() { + if (privateResourceMetadataBuilder_ == null) { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } else { + return privateResourceMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Output only. Metadata indicating whether this resource is user-scoped.
          +     * `CompilationResult` resource is `user_scoped` only if it is sourced
          +     * from a workspace.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPrivateResourceMetadata( + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata value) { + if (privateResourceMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privateResourceMetadata_ = value; + } else { + privateResourceMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Metadata indicating whether this resource is user-scoped.
          +     * `CompilationResult` resource is `user_scoped` only if it is sourced
          +     * from a workspace.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPrivateResourceMetadata( + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.Builder builderForValue) { + if (privateResourceMetadataBuilder_ == null) { + privateResourceMetadata_ = builderForValue.build(); + } else { + privateResourceMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Metadata indicating whether this resource is user-scoped.
          +     * `CompilationResult` resource is `user_scoped` only if it is sourced
          +     * from a workspace.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergePrivateResourceMetadata( + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata value) { + if (privateResourceMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && privateResourceMetadata_ != null + && privateResourceMetadata_ + != com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.getDefaultInstance()) { + getPrivateResourceMetadataBuilder().mergeFrom(value); + } else { + privateResourceMetadata_ = value; + } + } else { + privateResourceMetadataBuilder_.mergeFrom(value); + } + if (privateResourceMetadata_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Output only. Metadata indicating whether this resource is user-scoped.
          +     * `CompilationResult` resource is `user_scoped` only if it is sourced
          +     * from a workspace.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPrivateResourceMetadata() { + bitField0_ = (bitField0_ & ~0x00000800); + privateResourceMetadata_ = null; + if (privateResourceMetadataBuilder_ != null) { + privateResourceMetadataBuilder_.dispose(); + privateResourceMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Metadata indicating whether this resource is user-scoped.
          +     * `CompilationResult` resource is `user_scoped` only if it is sourced
          +     * from a workspace.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.Builder + getPrivateResourceMetadataBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return internalGetPrivateResourceMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Output only. Metadata indicating whether this resource is user-scoped.
          +     * `CompilationResult` resource is `user_scoped` only if it is sourced
          +     * from a workspace.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1beta1.PrivateResourceMetadataOrBuilder + getPrivateResourceMetadataOrBuilder() { + if (privateResourceMetadataBuilder_ != null) { + return privateResourceMetadataBuilder_.getMessageOrBuilder(); + } else { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } + } + + /** + * + * + *
          +     * Output only. Metadata indicating whether this resource is user-scoped.
          +     * `CompilationResult` resource is `user_scoped` only if it is sourced
          +     * from a workspace.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata, + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.Builder, + com.google.cloud.dataform.v1beta1.PrivateResourceMetadataOrBuilder> + internalGetPrivateResourceMetadataFieldBuilder() { + if (privateResourceMetadataBuilder_ == null) { + privateResourceMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata, + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.Builder, + com.google.cloud.dataform.v1beta1.PrivateResourceMetadataOrBuilder>( + getPrivateResourceMetadata(), getParentForChildren(), isClean()); + privateResourceMetadata_ = null; + } + return privateResourceMetadataBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.CompilationResult) } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResultAction.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResultAction.java index 30aaae02070d..5c820227bfc6 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResultAction.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResultAction.java @@ -634,6 +634,130 @@ java.lang.String getAdditionalOptionsOrDefault( * map<string, string> additional_options = 14; */ java.lang.String getAdditionalOptionsOrThrow(java.lang.String key); + + /** + * + * + *
          +     * Optional. The connection specifying the credentials to be used to read
          +     * and write to external storage, such as Cloud Storage. The connection can
          +     * have the form `{project}.{location}.{connection_id}` or
          +     * `projects/{project}/locations/{location}/connections/{connection_id}`,
          +     * or be set to DEFAULT.
          +     * 
          + * + * string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The connection. + */ + java.lang.String getConnection(); + + /** + * + * + *
          +     * Optional. The connection specifying the credentials to be used to read
          +     * and write to external storage, such as Cloud Storage. The connection can
          +     * have the form `{project}.{location}.{connection_id}` or
          +     * `projects/{project}/locations/{location}/connections/{connection_id}`,
          +     * or be set to DEFAULT.
          +     * 
          + * + * string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for connection. + */ + com.google.protobuf.ByteString getConnectionBytes(); + + /** + * + * + *
          +     * Optional. The table format for the BigQuery table.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for tableFormat. + */ + int getTableFormatValue(); + + /** + * + * + *
          +     * Optional. The table format for the BigQuery table.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tableFormat. + */ + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.TableFormat getTableFormat(); + + /** + * + * + *
          +     * Optional. The file format for the BigQuery table.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for fileFormat. + */ + int getFileFormatValue(); + + /** + * + * + *
          +     * Optional. The file format for the BigQuery table.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fileFormat. + */ + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.FileFormat getFileFormat(); + + /** + * + * + *
          +     * Optional. The fully qualified location prefix of the external folder
          +     * where table data is stored. The URI should be in the format
          +     * `gs://bucket/path_to_table/`.
          +     * 
          + * + * string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The storageUri. + */ + java.lang.String getStorageUri(); + + /** + * + * + *
          +     * Optional. The fully qualified location prefix of the external folder
          +     * where table data is stored. The URI should be in the format
          +     * `gs://bucket/path_to_table/`.
          +     * 
          + * + * string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for storageUri. + */ + com.google.protobuf.ByteString getStorageUriBytes(); } /** @@ -675,6 +799,10 @@ private Relation() { postOperations_ = com.google.protobuf.LazyStringArrayList.emptyList(); partitionExpression_ = ""; clusterExpressions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + connection_ = ""; + tableFormat_ = 0; + fileFormat_ = 0; + storageUri_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -922,137 +1050,435 @@ private RelationType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType) } - public interface IncrementalTableConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig) - com.google.protobuf.MessageOrBuilder { - + /** + * + * + *
          +     * Supported table formats for BigQuery tables.
          +     * 
          + * + * Protobuf enum {@code + * google.cloud.dataform.v1beta1.CompilationResultAction.Relation.TableFormat} + */ + public enum TableFormat implements com.google.protobuf.ProtocolMessageEnum { /** * * *
          -       * The SELECT query which returns rows which should be inserted into the
          -       * relation if it already exists and is not being refreshed.
          +       * Default value.
                  * 
          * - * string incremental_select_query = 1; - * - * @return The incrementalSelectQuery. + * TABLE_FORMAT_UNSPECIFIED = 0; */ - java.lang.String getIncrementalSelectQuery(); - + TABLE_FORMAT_UNSPECIFIED(0), /** * * *
          -       * The SELECT query which returns rows which should be inserted into the
          -       * relation if it already exists and is not being refreshed.
          +       * Apache Iceberg format.
                  * 
          * - * string incremental_select_query = 1; - * - * @return The bytes for incrementalSelectQuery. + * ICEBERG = 1; */ - com.google.protobuf.ByteString getIncrementalSelectQueryBytes(); + ICEBERG(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TableFormat"); + } /** * * *
          -       * Whether this table should be protected from being refreshed.
          +       * Default value.
                  * 
          * - * bool refresh_disabled = 2; - * - * @return The refreshDisabled. + * TABLE_FORMAT_UNSPECIFIED = 0; */ - boolean getRefreshDisabled(); + public static final int TABLE_FORMAT_UNSPECIFIED_VALUE = 0; /** * * *
          -       * A set of columns or SQL expressions used to define row uniqueness.
          -       * If any duplicates are discovered (as defined by `unique_key_parts`),
          -       * only the newly selected rows (as defined by `incremental_select_query`)
          -       * will be included in the relation.
          +       * Apache Iceberg format.
                  * 
          * - * repeated string unique_key_parts = 3; - * - * @return A list containing the uniqueKeyParts. + * ICEBERG = 1; */ - java.util.List getUniqueKeyPartsList(); + public static final int ICEBERG_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TableFormat valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static TableFormat forNumber(int value) { + switch (value) { + case 0: + return TABLE_FORMAT_UNSPECIFIED; + case 1: + return ICEBERG; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TableFormat findValueByNumber(int number) { + return TableFormat.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final TableFormat[] VALUES = values(); + + public static TableFormat valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + private final int value; + + private TableFormat(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1beta1.CompilationResultAction.Relation.TableFormat) + } + + /** + * + * + *
          +     * Supported file formats for BigQuery tables.
          +     * 
          + * + * Protobuf enum {@code + * google.cloud.dataform.v1beta1.CompilationResultAction.Relation.FileFormat} + */ + public enum FileFormat implements com.google.protobuf.ProtocolMessageEnum { /** * * *
          -       * A set of columns or SQL expressions used to define row uniqueness.
          -       * If any duplicates are discovered (as defined by `unique_key_parts`),
          -       * only the newly selected rows (as defined by `incremental_select_query`)
          -       * will be included in the relation.
          +       * Default value.
                  * 
          * - * repeated string unique_key_parts = 3; - * - * @return The count of uniqueKeyParts. + * FILE_FORMAT_UNSPECIFIED = 0; */ - int getUniqueKeyPartsCount(); - + FILE_FORMAT_UNSPECIFIED(0), /** * * *
          -       * A set of columns or SQL expressions used to define row uniqueness.
          -       * If any duplicates are discovered (as defined by `unique_key_parts`),
          -       * only the newly selected rows (as defined by `incremental_select_query`)
          -       * will be included in the relation.
          +       * Apache Parquet format.
                  * 
          * - * repeated string unique_key_parts = 3; - * - * @param index The index of the element to return. - * @return The uniqueKeyParts at the given index. + * PARQUET = 1; */ - java.lang.String getUniqueKeyParts(int index); + PARQUET(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FileFormat"); + } /** * * *
          -       * A set of columns or SQL expressions used to define row uniqueness.
          -       * If any duplicates are discovered (as defined by `unique_key_parts`),
          -       * only the newly selected rows (as defined by `incremental_select_query`)
          -       * will be included in the relation.
          +       * Default value.
                  * 
          * - * repeated string unique_key_parts = 3; - * - * @param index The index of the value to return. - * @return The bytes of the uniqueKeyParts at the given index. + * FILE_FORMAT_UNSPECIFIED = 0; */ - com.google.protobuf.ByteString getUniqueKeyPartsBytes(int index); + public static final int FILE_FORMAT_UNSPECIFIED_VALUE = 0; /** * * *
          -       * A SQL expression conditional used to limit the set of existing rows
          -       * considered for a merge operation (see `unique_key_parts` for more
          -       * information).
          +       * Apache Parquet format.
                  * 
          * - * string update_partition_filter = 4; - * - * @return The updatePartitionFilter. + * PARQUET = 1; */ - java.lang.String getUpdatePartitionFilter(); + public static final int PARQUET_VALUE = 1; - /** - * - * - *
          +      public final int getNumber() {
          +        if (this == UNRECOGNIZED) {
          +          throw new java.lang.IllegalArgumentException(
          +              "Can't get the number of an unknown enum value.");
          +        }
          +        return value;
          +      }
          +
          +      /**
          +       * @param value The numeric wire value of the corresponding enum entry.
          +       * @return The enum associated with the given numeric wire value.
          +       * @deprecated Use {@link #forNumber(int)} instead.
          +       */
          +      @java.lang.Deprecated
          +      public static FileFormat valueOf(int value) {
          +        return forNumber(value);
          +      }
          +
          +      /**
          +       * @param value The numeric wire value of the corresponding enum entry.
          +       * @return The enum associated with the given numeric wire value.
          +       */
          +      public static FileFormat forNumber(int value) {
          +        switch (value) {
          +          case 0:
          +            return FILE_FORMAT_UNSPECIFIED;
          +          case 1:
          +            return PARQUET;
          +          default:
          +            return null;
          +        }
          +      }
          +
          +      public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
          +        return internalValueMap;
          +      }
          +
          +      private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
          +          new com.google.protobuf.Internal.EnumLiteMap() {
          +            public FileFormat findValueByNumber(int number) {
          +              return FileFormat.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() {
          +        return getDescriptor();
          +      }
          +
          +      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
          +        return com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.getDescriptor()
          +            .getEnumTypes()
          +            .get(2);
          +      }
          +
          +      private static final FileFormat[] VALUES = values();
          +
          +      public static FileFormat valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
          +        if (desc.getType() != getDescriptor()) {
          +          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
          +        }
          +        if (desc.getIndex() == -1) {
          +          return UNRECOGNIZED;
          +        }
          +        return VALUES[desc.getIndex()];
          +      }
          +
          +      private final int value;
          +
          +      private FileFormat(int value) {
          +        this.value = value;
          +      }
          +
          +      // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1beta1.CompilationResultAction.Relation.FileFormat)
          +    }
          +
          +    public interface IncrementalTableConfigOrBuilder
          +        extends
          +        // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig)
          +        com.google.protobuf.MessageOrBuilder {
          +
          +      /**
          +       *
          +       *
          +       * 
          +       * The SELECT query which returns rows which should be inserted into the
          +       * relation if it already exists and is not being refreshed.
          +       * 
          + * + * string incremental_select_query = 1; + * + * @return The incrementalSelectQuery. + */ + java.lang.String getIncrementalSelectQuery(); + + /** + * + * + *
          +       * The SELECT query which returns rows which should be inserted into the
          +       * relation if it already exists and is not being refreshed.
          +       * 
          + * + * string incremental_select_query = 1; + * + * @return The bytes for incrementalSelectQuery. + */ + com.google.protobuf.ByteString getIncrementalSelectQueryBytes(); + + /** + * + * + *
          +       * Whether this table should be protected from being refreshed.
          +       * 
          + * + * bool refresh_disabled = 2; + * + * @return The refreshDisabled. + */ + boolean getRefreshDisabled(); + + /** + * + * + *
          +       * A set of columns or SQL expressions used to define row uniqueness.
          +       * If any duplicates are discovered (as defined by `unique_key_parts`),
          +       * only the newly selected rows (as defined by `incremental_select_query`)
          +       * will be included in the relation.
          +       * 
          + * + * repeated string unique_key_parts = 3; + * + * @return A list containing the uniqueKeyParts. + */ + java.util.List getUniqueKeyPartsList(); + + /** + * + * + *
          +       * A set of columns or SQL expressions used to define row uniqueness.
          +       * If any duplicates are discovered (as defined by `unique_key_parts`),
          +       * only the newly selected rows (as defined by `incremental_select_query`)
          +       * will be included in the relation.
          +       * 
          + * + * repeated string unique_key_parts = 3; + * + * @return The count of uniqueKeyParts. + */ + int getUniqueKeyPartsCount(); + + /** + * + * + *
          +       * A set of columns or SQL expressions used to define row uniqueness.
          +       * If any duplicates are discovered (as defined by `unique_key_parts`),
          +       * only the newly selected rows (as defined by `incremental_select_query`)
          +       * will be included in the relation.
          +       * 
          + * + * repeated string unique_key_parts = 3; + * + * @param index The index of the element to return. + * @return The uniqueKeyParts at the given index. + */ + java.lang.String getUniqueKeyParts(int index); + + /** + * + * + *
          +       * A set of columns or SQL expressions used to define row uniqueness.
          +       * If any duplicates are discovered (as defined by `unique_key_parts`),
          +       * only the newly selected rows (as defined by `incremental_select_query`)
          +       * will be included in the relation.
          +       * 
          + * + * repeated string unique_key_parts = 3; + * + * @param index The index of the value to return. + * @return The bytes of the uniqueKeyParts at the given index. + */ + com.google.protobuf.ByteString getUniqueKeyPartsBytes(int index); + + /** + * + * + *
          +       * A SQL expression conditional used to limit the set of existing rows
          +       * considered for a merge operation (see `unique_key_parts` for more
          +       * information).
          +       * 
          + * + * string update_partition_filter = 4; + * + * @return The updatePartitionFilter. + */ + java.lang.String getUpdatePartitionFilter(); + + /** + * + * + *
                  * A SQL expression conditional used to limit the set of existing rows
                  * considered for a merge operation (see `unique_key_parts` for more
                  * information).
          @@ -3882,37 +4308,247 @@ public java.lang.String getAdditionalOptionsOrThrow(java.lang.String key) {
                 return map.get(key);
               }
           
          -    private byte memoizedIsInitialized = -1;
          +    public static final int CONNECTION_FIELD_NUMBER = 15;
           
          -    @java.lang.Override
          -    public final boolean isInitialized() {
          -      byte isInitialized = memoizedIsInitialized;
          -      if (isInitialized == 1) return true;
          -      if (isInitialized == 0) return false;
          +    @SuppressWarnings("serial")
          +    private volatile java.lang.Object connection_ = "";
           
          -      memoizedIsInitialized = 1;
          -      return true;
          +    /**
          +     *
          +     *
          +     * 
          +     * Optional. The connection specifying the credentials to be used to read
          +     * and write to external storage, such as Cloud Storage. The connection can
          +     * have the form `{project}.{location}.{connection_id}` or
          +     * `projects/{project}/locations/{location}/connections/{connection_id}`,
          +     * or be set to DEFAULT.
          +     * 
          + * + * string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The connection. + */ + @java.lang.Override + public java.lang.String getConnection() { + java.lang.Object ref = connection_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + connection_ = s; + return s; + } } + /** + * + * + *
          +     * Optional. The connection specifying the credentials to be used to read
          +     * and write to external storage, such as Cloud Storage. The connection can
          +     * have the form `{project}.{location}.{connection_id}` or
          +     * `projects/{project}/locations/{location}/connections/{connection_id}`,
          +     * or be set to DEFAULT.
          +     * 
          + * + * string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for connection. + */ @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < dependencyTargets_.size(); i++) { - output.writeMessage(1, dependencyTargets_.get(i)); - } - if (disabled_ != false) { - output.writeBool(2, disabled_); - } - for (int i = 0; i < tags_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, tags_.getRaw(i)); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getRelationDescriptor()); + public com.google.protobuf.ByteString getConnectionBytes() { + java.lang.Object ref = connection_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + connection_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - if (relationType_ - != com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType - .RELATION_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(5, relationType_); + } + + public static final int TABLE_FORMAT_FIELD_NUMBER = 16; + private int tableFormat_ = 0; + + /** + * + * + *
          +     * Optional. The table format for the BigQuery table.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for tableFormat. + */ + @java.lang.Override + public int getTableFormatValue() { + return tableFormat_; + } + + /** + * + * + *
          +     * Optional. The table format for the BigQuery table.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tableFormat. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.TableFormat + getTableFormat() { + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.TableFormat result = + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.TableFormat.forNumber( + tableFormat_); + return result == null + ? com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.TableFormat + .UNRECOGNIZED + : result; + } + + public static final int FILE_FORMAT_FIELD_NUMBER = 17; + private int fileFormat_ = 0; + + /** + * + * + *
          +     * Optional. The file format for the BigQuery table.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for fileFormat. + */ + @java.lang.Override + public int getFileFormatValue() { + return fileFormat_; + } + + /** + * + * + *
          +     * Optional. The file format for the BigQuery table.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fileFormat. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.FileFormat + getFileFormat() { + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.FileFormat result = + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.FileFormat.forNumber( + fileFormat_); + return result == null + ? com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.FileFormat + .UNRECOGNIZED + : result; + } + + public static final int STORAGE_URI_FIELD_NUMBER = 18; + + @SuppressWarnings("serial") + private volatile java.lang.Object storageUri_ = ""; + + /** + * + * + *
          +     * Optional. The fully qualified location prefix of the external folder
          +     * where table data is stored. The URI should be in the format
          +     * `gs://bucket/path_to_table/`.
          +     * 
          + * + * string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The storageUri. + */ + @java.lang.Override + public java.lang.String getStorageUri() { + java.lang.Object ref = storageUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + storageUri_ = s; + return s; + } + } + + /** + * + * + *
          +     * Optional. The fully qualified location prefix of the external folder
          +     * where table data is stored. The URI should be in the format
          +     * `gs://bucket/path_to_table/`.
          +     * 
          + * + * string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for storageUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStorageUriBytes() { + java.lang.Object ref = storageUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + storageUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < dependencyTargets_.size(); i++) { + output.writeMessage(1, dependencyTargets_.get(i)); + } + if (disabled_ != false) { + output.writeBool(2, disabled_); + } + for (int i = 0; i < tags_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, tags_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getRelationDescriptor()); + } + if (relationType_ + != com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType + .RELATION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, relationType_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(selectQuery_)) { com.google.protobuf.GeneratedMessage.writeString(output, 6, selectQuery_); @@ -3943,6 +4579,24 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io internalGetAdditionalOptions(), AdditionalOptionsDefaultEntryHolder.defaultEntry, 14); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(connection_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 15, connection_); + } + if (tableFormat_ + != com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.TableFormat + .TABLE_FORMAT_UNSPECIFIED + .getNumber()) { + output.writeEnum(16, tableFormat_); + } + if (fileFormat_ + != com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.FileFormat + .FILE_FORMAT_UNSPECIFIED + .getNumber()) { + output.writeEnum(17, fileFormat_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(storageUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 18, storageUri_); + } getUnknownFields().writeTo(output); } @@ -4029,6 +4683,24 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, additionalOptions__); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(connection_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(15, connection_); + } + if (tableFormat_ + != com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.TableFormat + .TABLE_FORMAT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(16, tableFormat_); + } + if (fileFormat_ + != com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.FileFormat + .FILE_FORMAT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, fileFormat_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(storageUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(18, storageUri_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4066,6 +4738,10 @@ public boolean equals(final java.lang.Object obj) { if (getRequirePartitionFilter() != other.getRequirePartitionFilter()) return false; if (!internalGetAdditionalOptions().equals(other.internalGetAdditionalOptions())) return false; + if (!getConnection().equals(other.getConnection())) return false; + if (tableFormat_ != other.tableFormat_) return false; + if (fileFormat_ != other.fileFormat_) return false; + if (!getStorageUri().equals(other.getStorageUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4121,6 +4797,14 @@ public int hashCode() { hash = (37 * hash) + ADDITIONAL_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetAdditionalOptions().hashCode(); } + hash = (37 * hash) + CONNECTION_FIELD_NUMBER; + hash = (53 * hash) + getConnection().hashCode(); + hash = (37 * hash) + TABLE_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + tableFormat_; + hash = (37 * hash) + FILE_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + fileFormat_; + hash = (37 * hash) + STORAGE_URI_FIELD_NUMBER; + hash = (53 * hash) + getStorageUri().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -4325,6 +5009,10 @@ public Builder clear() { partitionExpirationDays_ = 0; requirePartitionFilter_ = false; internalGetMutableAdditionalOptions().clear(); + connection_ = ""; + tableFormat_ = 0; + fileFormat_ = 0; + storageUri_ = ""; return this; } @@ -4431,6 +5119,18 @@ private void buildPartial0( result.additionalOptions_ = internalGetAdditionalOptions(); result.additionalOptions_.makeImmutable(); } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.connection_ = connection_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.tableFormat_ = tableFormat_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.fileFormat_ = fileFormat_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.storageUri_ = storageUri_; + } result.bitField0_ |= to_bitField0_; } @@ -4547,6 +5247,22 @@ public Builder mergeFrom( } internalGetMutableAdditionalOptions().mergeFrom(other.internalGetAdditionalOptions()); bitField0_ |= 0x00002000; + if (!other.getConnection().isEmpty()) { + connection_ = other.connection_; + bitField0_ |= 0x00004000; + onChanged(); + } + if (other.tableFormat_ != 0) { + setTableFormatValue(other.getTableFormatValue()); + } + if (other.fileFormat_ != 0) { + setFileFormatValue(other.getFileFormatValue()); + } + if (!other.getStorageUri().isEmpty()) { + storageUri_ = other.storageUri_; + bitField0_ |= 0x00020000; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -4678,6 +5394,30 @@ public Builder mergeFrom( bitField0_ |= 0x00002000; break; } // case 114 + case 122: + { + connection_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00004000; + break; + } // case 122 + case 128: + { + tableFormat_ = input.readEnum(); + bitField0_ |= 0x00008000; + break; + } // case 128 + case 136: + { + fileFormat_ = input.readEnum(); + bitField0_ |= 0x00010000; + break; + } // case 136 + case 146: + { + storageUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00020000; + break; + } // case 146 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6958,6 +7698,480 @@ public Builder putAllAdditionalOptions( return this; } + private java.lang.Object connection_ = ""; + + /** + * + * + *
          +       * Optional. The connection specifying the credentials to be used to read
          +       * and write to external storage, such as Cloud Storage. The connection can
          +       * have the form `{project}.{location}.{connection_id}` or
          +       * `projects/{project}/locations/{location}/connections/{connection_id}`,
          +       * or be set to DEFAULT.
          +       * 
          + * + * string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The connection. + */ + public java.lang.String getConnection() { + java.lang.Object ref = connection_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + connection_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +       * Optional. The connection specifying the credentials to be used to read
          +       * and write to external storage, such as Cloud Storage. The connection can
          +       * have the form `{project}.{location}.{connection_id}` or
          +       * `projects/{project}/locations/{location}/connections/{connection_id}`,
          +       * or be set to DEFAULT.
          +       * 
          + * + * string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for connection. + */ + public com.google.protobuf.ByteString getConnectionBytes() { + java.lang.Object ref = connection_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + connection_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +       * Optional. The connection specifying the credentials to be used to read
          +       * and write to external storage, such as Cloud Storage. The connection can
          +       * have the form `{project}.{location}.{connection_id}` or
          +       * `projects/{project}/locations/{location}/connections/{connection_id}`,
          +       * or be set to DEFAULT.
          +       * 
          + * + * string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The connection to set. + * @return This builder for chaining. + */ + public Builder setConnection(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + connection_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
          +       * Optional. The connection specifying the credentials to be used to read
          +       * and write to external storage, such as Cloud Storage. The connection can
          +       * have the form `{project}.{location}.{connection_id}` or
          +       * `projects/{project}/locations/{location}/connections/{connection_id}`,
          +       * or be set to DEFAULT.
          +       * 
          + * + * string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearConnection() { + connection_ = getDefaultInstance().getConnection(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + return this; + } + + /** + * + * + *
          +       * Optional. The connection specifying the credentials to be used to read
          +       * and write to external storage, such as Cloud Storage. The connection can
          +       * have the form `{project}.{location}.{connection_id}` or
          +       * `projects/{project}/locations/{location}/connections/{connection_id}`,
          +       * or be set to DEFAULT.
          +       * 
          + * + * string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for connection to set. + * @return This builder for chaining. + */ + public Builder setConnectionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + connection_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + private int tableFormat_ = 0; + + /** + * + * + *
          +       * Optional. The table format for the BigQuery table.
          +       * 
          + * + * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for tableFormat. + */ + @java.lang.Override + public int getTableFormatValue() { + return tableFormat_; + } + + /** + * + * + *
          +       * Optional. The table format for the BigQuery table.
          +       * 
          + * + * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for tableFormat to set. + * @return This builder for chaining. + */ + public Builder setTableFormatValue(int value) { + tableFormat_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
          +       * Optional. The table format for the BigQuery table.
          +       * 
          + * + * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tableFormat. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.TableFormat + getTableFormat() { + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.TableFormat result = + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.TableFormat + .forNumber(tableFormat_); + return result == null + ? com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.TableFormat + .UNRECOGNIZED + : result; + } + + /** + * + * + *
          +       * Optional. The table format for the BigQuery table.
          +       * 
          + * + * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The tableFormat to set. + * @return This builder for chaining. + */ + public Builder setTableFormat( + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.TableFormat value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00008000; + tableFormat_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
          +       * Optional. The table format for the BigQuery table.
          +       * 
          + * + * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearTableFormat() { + bitField0_ = (bitField0_ & ~0x00008000); + tableFormat_ = 0; + onChanged(); + return this; + } + + private int fileFormat_ = 0; + + /** + * + * + *
          +       * Optional. The file format for the BigQuery table.
          +       * 
          + * + * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for fileFormat. + */ + @java.lang.Override + public int getFileFormatValue() { + return fileFormat_; + } + + /** + * + * + *
          +       * Optional. The file format for the BigQuery table.
          +       * 
          + * + * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for fileFormat to set. + * @return This builder for chaining. + */ + public Builder setFileFormatValue(int value) { + fileFormat_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
          +       * Optional. The file format for the BigQuery table.
          +       * 
          + * + * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fileFormat. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.FileFormat + getFileFormat() { + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.FileFormat result = + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.FileFormat.forNumber( + fileFormat_); + return result == null + ? com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.FileFormat + .UNRECOGNIZED + : result; + } + + /** + * + * + *
          +       * Optional. The file format for the BigQuery table.
          +       * 
          + * + * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The fileFormat to set. + * @return This builder for chaining. + */ + public Builder setFileFormat( + com.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.FileFormat value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00010000; + fileFormat_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
          +       * Optional. The file format for the BigQuery table.
          +       * 
          + * + * + * .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearFileFormat() { + bitField0_ = (bitField0_ & ~0x00010000); + fileFormat_ = 0; + onChanged(); + return this; + } + + private java.lang.Object storageUri_ = ""; + + /** + * + * + *
          +       * Optional. The fully qualified location prefix of the external folder
          +       * where table data is stored. The URI should be in the format
          +       * `gs://bucket/path_to_table/`.
          +       * 
          + * + * string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The storageUri. + */ + public java.lang.String getStorageUri() { + java.lang.Object ref = storageUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + storageUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +       * Optional. The fully qualified location prefix of the external folder
          +       * where table data is stored. The URI should be in the format
          +       * `gs://bucket/path_to_table/`.
          +       * 
          + * + * string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for storageUri. + */ + public com.google.protobuf.ByteString getStorageUriBytes() { + java.lang.Object ref = storageUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + storageUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +       * Optional. The fully qualified location prefix of the external folder
          +       * where table data is stored. The URI should be in the format
          +       * `gs://bucket/path_to_table/`.
          +       * 
          + * + * string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The storageUri to set. + * @return This builder for chaining. + */ + public Builder setStorageUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + storageUri_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
          +       * Optional. The fully qualified location prefix of the external folder
          +       * where table data is stored. The URI should be in the format
          +       * `gs://bucket/path_to_table/`.
          +       * 
          + * + * string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearStorageUri() { + storageUri_ = getDefaultInstance().getStorageUri(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + return this; + } + + /** + * + * + *
          +       * Optional. The fully qualified location prefix of the external folder
          +       * where table data is stored. The URI should be in the format
          +       * `gs://bucket/path_to_table/`.
          +       * 
          + * + * string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for storageUri to set. + * @return This builder for chaining. + */ + public Builder setStorageUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + storageUri_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.CompilationResultAction.Relation) } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResultOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResultOrBuilder.java index 84e0b70faaf3..8e2ee97aa553 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResultOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResultOrBuilder.java @@ -501,5 +501,55 @@ com.google.cloud.dataform.v1beta1.CompilationResult.CompilationError getCompilat */ com.google.protobuf.ByteString getInternalMetadataBytes(); + /** + * + * + *
          +   * Output only. Metadata indicating whether this resource is user-scoped.
          +   * `CompilationResult` resource is `user_scoped` only if it is sourced
          +   * from a workspace.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateResourceMetadata field is set. + */ + boolean hasPrivateResourceMetadata(); + + /** + * + * + *
          +   * Output only. Metadata indicating whether this resource is user-scoped.
          +   * `CompilationResult` resource is `user_scoped` only if it is sourced
          +   * from a workspace.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateResourceMetadata. + */ + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata getPrivateResourceMetadata(); + + /** + * + * + *
          +   * Output only. Metadata indicating whether this resource is user-scoped.
          +   * `CompilationResult` resource is `user_scoped` only if it is sourced
          +   * from a workspace.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataform.v1beta1.PrivateResourceMetadataOrBuilder + getPrivateResourceMetadataOrBuilder(); + com.google.cloud.dataform.v1beta1.CompilationResult.SourceCase getSourceCase(); } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Config.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Config.java index 78ce92807f7c..aca4d5c065ec 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Config.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Config.java @@ -54,6 +54,7 @@ private Config(com.google.protobuf.GeneratedMessage.Builder builder) { private Config() { name_ = ""; defaultKmsKeyName_ = ""; + internalMetadata_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -71,6 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dataform.v1beta1.Config.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -183,6 +185,84 @@ public com.google.protobuf.ByteString getDefaultKmsKeyNameBytes() { } } + public static final int INTERNAL_METADATA_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object internalMetadata_ = ""; + + /** + * + * + *
          +   * Output only. All the metadata information that is used internally to serve
          +   * the resource. For example: timestamps, flags, status fields, etc. The
          +   * format of this field is a JSON string.
          +   * 
          + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the internalMetadata field is set. + */ + @java.lang.Override + public boolean hasInternalMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +   * Output only. All the metadata information that is used internally to serve
          +   * the resource. For example: timestamps, flags, status fields, etc. The
          +   * format of this field is a JSON string.
          +   * 
          + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The internalMetadata. + */ + @java.lang.Override + public java.lang.String getInternalMetadata() { + java.lang.Object ref = internalMetadata_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + internalMetadata_ = s; + return s; + } + } + + /** + * + * + *
          +   * Output only. All the metadata information that is used internally to serve
          +   * the resource. For example: timestamps, flags, status fields, etc. The
          +   * format of this field is a JSON string.
          +   * 
          + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for internalMetadata. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInternalMetadataBytes() { + java.lang.Object ref = internalMetadata_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + internalMetadata_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -203,6 +283,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultKmsKeyName_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, defaultKmsKeyName_); } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, internalMetadata_); + } getUnknownFields().writeTo(output); } @@ -218,6 +301,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultKmsKeyName_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, defaultKmsKeyName_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, internalMetadata_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -235,6 +321,10 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getDefaultKmsKeyName().equals(other.getDefaultKmsKeyName())) return false; + if (hasInternalMetadata() != other.hasInternalMetadata()) return false; + if (hasInternalMetadata()) { + if (!getInternalMetadata().equals(other.getInternalMetadata())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -250,6 +340,10 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DEFAULT_KMS_KEY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDefaultKmsKeyName().hashCode(); + if (hasInternalMetadata()) { + hash = (37 * hash) + INTERNAL_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getInternalMetadata().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -392,6 +486,7 @@ public Builder clear() { bitField0_ = 0; name_ = ""; defaultKmsKeyName_ = ""; + internalMetadata_ = ""; return this; } @@ -434,6 +529,12 @@ private void buildPartial0(com.google.cloud.dataform.v1beta1.Config result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.defaultKmsKeyName_ = defaultKmsKeyName_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.internalMetadata_ = internalMetadata_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -458,6 +559,11 @@ public Builder mergeFrom(com.google.cloud.dataform.v1beta1.Config other) { bitField0_ |= 0x00000002; onChanged(); } + if (other.hasInternalMetadata()) { + internalMetadata_ = other.internalMetadata_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -496,6 +602,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 58: + { + internalMetadata_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -752,6 +864,150 @@ public Builder setDefaultKmsKeyNameBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object internalMetadata_ = ""; + + /** + * + * + *
          +     * Output only. All the metadata information that is used internally to serve
          +     * the resource. For example: timestamps, flags, status fields, etc. The
          +     * format of this field is a JSON string.
          +     * 
          + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the internalMetadata field is set. + */ + public boolean hasInternalMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
          +     * Output only. All the metadata information that is used internally to serve
          +     * the resource. For example: timestamps, flags, status fields, etc. The
          +     * format of this field is a JSON string.
          +     * 
          + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The internalMetadata. + */ + public java.lang.String getInternalMetadata() { + java.lang.Object ref = internalMetadata_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + internalMetadata_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Output only. All the metadata information that is used internally to serve
          +     * the resource. For example: timestamps, flags, status fields, etc. The
          +     * format of this field is a JSON string.
          +     * 
          + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for internalMetadata. + */ + public com.google.protobuf.ByteString getInternalMetadataBytes() { + java.lang.Object ref = internalMetadata_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + internalMetadata_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Output only. All the metadata information that is used internally to serve
          +     * the resource. For example: timestamps, flags, status fields, etc. The
          +     * format of this field is a JSON string.
          +     * 
          + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The internalMetadata to set. + * @return This builder for chaining. + */ + public Builder setInternalMetadata(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + internalMetadata_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. All the metadata information that is used internally to serve
          +     * the resource. For example: timestamps, flags, status fields, etc. The
          +     * format of this field is a JSON string.
          +     * 
          + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearInternalMetadata() { + internalMetadata_ = getDefaultInstance().getInternalMetadata(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. All the metadata information that is used internally to serve
          +     * the resource. For example: timestamps, flags, status fields, etc. The
          +     * format of this field is a JSON string.
          +     * 
          + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for internalMetadata to set. + * @return This builder for chaining. + */ + public Builder setInternalMetadataBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + internalMetadata_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.Config) } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ConfigOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ConfigOrBuilder.java index 3cfa95214803..b7c7e48812e6 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ConfigOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ConfigOrBuilder.java @@ -83,4 +83,52 @@ public interface ConfigOrBuilder * @return The bytes for defaultKmsKeyName. */ com.google.protobuf.ByteString getDefaultKmsKeyNameBytes(); + + /** + * + * + *
          +   * Output only. All the metadata information that is used internally to serve
          +   * the resource. For example: timestamps, flags, status fields, etc. The
          +   * format of this field is a JSON string.
          +   * 
          + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the internalMetadata field is set. + */ + boolean hasInternalMetadata(); + + /** + * + * + *
          +   * Output only. All the metadata information that is used internally to serve
          +   * the resource. For example: timestamps, flags, status fields, etc. The
          +   * format of this field is a JSON string.
          +   * 
          + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The internalMetadata. + */ + java.lang.String getInternalMetadata(); + + /** + * + * + *
          +   * Output only. All the metadata information that is used internally to serve
          +   * the resource. For example: timestamps, flags, status fields, etc. The
          +   * format of this field is a JSON string.
          +   * 
          + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for internalMetadata. + */ + com.google.protobuf.ByteString getInternalMetadataBytes(); } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateFolderRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateFolderRequest.java new file mode 100644 index 000000000000..629096a6c963 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateFolderRequest.java @@ -0,0 +1,1129 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
          + * `CreateFolder` request message.
          + * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.CreateFolderRequest} + */ +@com.google.protobuf.Generated +public final class CreateFolderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.CreateFolderRequest) + CreateFolderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateFolderRequest"); + } + + // Use CreateFolderRequest.newBuilder() to construct. + private CreateFolderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateFolderRequest() { + parent_ = ""; + folderId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CreateFolderRequest.class, + com.google.cloud.dataform.v1beta1.CreateFolderRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
          +   * Required. The location in which to create the Folder. Must be in the format
          +   * `projects/*/locations/*`.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The location in which to create the Folder. Must be in the format
          +   * `projects/*/locations/*`.
          +   * 
          + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FOLDER_FIELD_NUMBER = 2; + private com.google.cloud.dataform.v1beta1.Folder folder_; + + /** + * + * + *
          +   * Required. The Folder to create.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the folder field is set. + */ + @java.lang.Override + public boolean hasFolder() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +   * Required. The Folder to create.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The folder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Folder getFolder() { + return folder_ == null + ? com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance() + : folder_; + } + + /** + * + * + *
          +   * Required. The Folder to create.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FolderOrBuilder getFolderOrBuilder() { + return folder_ == null + ? com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance() + : folder_; + } + + public static final int FOLDER_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object folderId_ = ""; + + /** + * + * + *
          +   * The ID to use for the Folder, which will become the final component of
          +   * the Folder's resource name.
          +   * 
          + * + * string folder_id = 3; + * + * @return The folderId. + */ + @java.lang.Override + public java.lang.String getFolderId() { + java.lang.Object ref = folderId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + folderId_ = s; + return s; + } + } + + /** + * + * + *
          +   * The ID to use for the Folder, which will become the final component of
          +   * the Folder's resource name.
          +   * 
          + * + * string folder_id = 3; + * + * @return The bytes for folderId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFolderIdBytes() { + java.lang.Object ref = folderId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + folderId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getFolder()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(folderId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, folderId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFolder()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(folderId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, folderId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.CreateFolderRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.CreateFolderRequest other = + (com.google.cloud.dataform.v1beta1.CreateFolderRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasFolder() != other.hasFolder()) return false; + if (hasFolder()) { + if (!getFolder().equals(other.getFolder())) return false; + } + if (!getFolderId().equals(other.getFolderId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasFolder()) { + hash = (37 * hash) + FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getFolder().hashCode(); + } + hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER; + hash = (53 * hash) + getFolderId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.CreateFolderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CreateFolderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CreateFolderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CreateFolderRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CreateFolderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CreateFolderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CreateFolderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CreateFolderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CreateFolderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CreateFolderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CreateFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CreateFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.CreateFolderRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * `CreateFolder` request message.
          +   * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.CreateFolderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CreateFolderRequest) + com.google.cloud.dataform.v1beta1.CreateFolderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CreateFolderRequest.class, + com.google.cloud.dataform.v1beta1.CreateFolderRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.CreateFolderRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetFolderFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + folder_ = null; + if (folderBuilder_ != null) { + folderBuilder_.dispose(); + folderBuilder_ = null; + } + folderId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateFolderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateFolderRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.CreateFolderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateFolderRequest build() { + com.google.cloud.dataform.v1beta1.CreateFolderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateFolderRequest buildPartial() { + com.google.cloud.dataform.v1beta1.CreateFolderRequest result = + new com.google.cloud.dataform.v1beta1.CreateFolderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1beta1.CreateFolderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.folder_ = folderBuilder_ == null ? folder_ : folderBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.folderId_ = folderId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.CreateFolderRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.CreateFolderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.CreateFolderRequest other) { + if (other == com.google.cloud.dataform.v1beta1.CreateFolderRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasFolder()) { + mergeFolder(other.getFolder()); + } + if (!other.getFolderId().isEmpty()) { + folderId_ = other.folderId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetFolderFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + folderId_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
          +     * Required. The location in which to create the Folder. Must be in the format
          +     * `projects/*/locations/*`.
          +     * 
          + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The location in which to create the Folder. Must be in the format
          +     * `projects/*/locations/*`.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The location in which to create the Folder. Must be in the format
          +     * `projects/*/locations/*`.
          +     * 
          + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The location in which to create the Folder. Must be in the format
          +     * `projects/*/locations/*`.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The location in which to create the Folder. Must be in the format
          +     * `projects/*/locations/*`.
          +     * 
          + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.dataform.v1beta1.Folder folder_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.Folder, + com.google.cloud.dataform.v1beta1.Folder.Builder, + com.google.cloud.dataform.v1beta1.FolderOrBuilder> + folderBuilder_; + + /** + * + * + *
          +     * Required. The Folder to create.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the folder field is set. + */ + public boolean hasFolder() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +     * Required. The Folder to create.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The folder. + */ + public com.google.cloud.dataform.v1beta1.Folder getFolder() { + if (folderBuilder_ == null) { + return folder_ == null + ? com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance() + : folder_; + } else { + return folderBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Required. The Folder to create.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFolder(com.google.cloud.dataform.v1beta1.Folder value) { + if (folderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + folder_ = value; + } else { + folderBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The Folder to create.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFolder(com.google.cloud.dataform.v1beta1.Folder.Builder builderForValue) { + if (folderBuilder_ == null) { + folder_ = builderForValue.build(); + } else { + folderBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The Folder to create.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFolder(com.google.cloud.dataform.v1beta1.Folder value) { + if (folderBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && folder_ != null + && folder_ != com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance()) { + getFolderBuilder().mergeFrom(value); + } else { + folder_ = value; + } + } else { + folderBuilder_.mergeFrom(value); + } + if (folder_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Required. The Folder to create.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFolder() { + bitField0_ = (bitField0_ & ~0x00000002); + folder_ = null; + if (folderBuilder_ != null) { + folderBuilder_.dispose(); + folderBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The Folder to create.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1beta1.Folder.Builder getFolderBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetFolderFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Required. The Folder to create.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1beta1.FolderOrBuilder getFolderOrBuilder() { + if (folderBuilder_ != null) { + return folderBuilder_.getMessageOrBuilder(); + } else { + return folder_ == null + ? com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance() + : folder_; + } + } + + /** + * + * + *
          +     * Required. The Folder to create.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.Folder, + com.google.cloud.dataform.v1beta1.Folder.Builder, + com.google.cloud.dataform.v1beta1.FolderOrBuilder> + internalGetFolderFieldBuilder() { + if (folderBuilder_ == null) { + folderBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.Folder, + com.google.cloud.dataform.v1beta1.Folder.Builder, + com.google.cloud.dataform.v1beta1.FolderOrBuilder>( + getFolder(), getParentForChildren(), isClean()); + folder_ = null; + } + return folderBuilder_; + } + + private java.lang.Object folderId_ = ""; + + /** + * + * + *
          +     * The ID to use for the Folder, which will become the final component of
          +     * the Folder's resource name.
          +     * 
          + * + * string folder_id = 3; + * + * @return The folderId. + */ + public java.lang.String getFolderId() { + java.lang.Object ref = folderId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + folderId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * The ID to use for the Folder, which will become the final component of
          +     * the Folder's resource name.
          +     * 
          + * + * string folder_id = 3; + * + * @return The bytes for folderId. + */ + public com.google.protobuf.ByteString getFolderIdBytes() { + java.lang.Object ref = folderId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + folderId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * The ID to use for the Folder, which will become the final component of
          +     * the Folder's resource name.
          +     * 
          + * + * string folder_id = 3; + * + * @param value The folderId to set. + * @return This builder for chaining. + */ + public Builder setFolderId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + folderId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * The ID to use for the Folder, which will become the final component of
          +     * the Folder's resource name.
          +     * 
          + * + * string folder_id = 3; + * + * @return This builder for chaining. + */ + public Builder clearFolderId() { + folderId_ = getDefaultInstance().getFolderId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
          +     * The ID to use for the Folder, which will become the final component of
          +     * the Folder's resource name.
          +     * 
          + * + * string folder_id = 3; + * + * @param value The bytes for folderId to set. + * @return This builder for chaining. + */ + public Builder setFolderIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + folderId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.CreateFolderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CreateFolderRequest) + private static final com.google.cloud.dataform.v1beta1.CreateFolderRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.CreateFolderRequest(); + } + + public static com.google.cloud.dataform.v1beta1.CreateFolderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateFolderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateFolderRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateFolderRequestOrBuilder.java new file mode 100644 index 000000000000..abbddea1c6aa --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateFolderRequestOrBuilder.java @@ -0,0 +1,131 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +@com.google.protobuf.Generated +public interface CreateFolderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.CreateFolderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The location in which to create the Folder. Must be in the format
          +   * `projects/*/locations/*`.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
          +   * Required. The location in which to create the Folder. Must be in the format
          +   * `projects/*/locations/*`.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
          +   * Required. The Folder to create.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the folder field is set. + */ + boolean hasFolder(); + + /** + * + * + *
          +   * Required. The Folder to create.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The folder. + */ + com.google.cloud.dataform.v1beta1.Folder getFolder(); + + /** + * + * + *
          +   * Required. The Folder to create.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataform.v1beta1.FolderOrBuilder getFolderOrBuilder(); + + /** + * + * + *
          +   * The ID to use for the Folder, which will become the final component of
          +   * the Folder's resource name.
          +   * 
          + * + * string folder_id = 3; + * + * @return The folderId. + */ + java.lang.String getFolderId(); + + /** + * + * + *
          +   * The ID to use for the Folder, which will become the final component of
          +   * the Folder's resource name.
          +   * 
          + * + * string folder_id = 3; + * + * @return The bytes for folderId. + */ + com.google.protobuf.ByteString getFolderIdBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateTeamFolderRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateTeamFolderRequest.java new file mode 100644 index 000000000000..0100eab8b36d --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateTeamFolderRequest.java @@ -0,0 +1,1131 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
          + * `CreateTeamFolder` request message.
          + * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.CreateTeamFolderRequest} + */ +@com.google.protobuf.Generated +public final class CreateTeamFolderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.CreateTeamFolderRequest) + CreateTeamFolderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateTeamFolderRequest"); + } + + // Use CreateTeamFolderRequest.newBuilder() to construct. + private CreateTeamFolderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateTeamFolderRequest() { + parent_ = ""; + teamFolderId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateTeamFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateTeamFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest.class, + com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
          +   * Required. The location in which to create the TeamFolder. Must be in the
          +   * format `projects/*/locations/*`.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The location in which to create the TeamFolder. Must be in the
          +   * format `projects/*/locations/*`.
          +   * 
          + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEAM_FOLDER_FIELD_NUMBER = 2; + private com.google.cloud.dataform.v1beta1.TeamFolder teamFolder_; + + /** + * + * + *
          +   * Required. The TeamFolder to create.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the teamFolder field is set. + */ + @java.lang.Override + public boolean hasTeamFolder() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +   * Required. The TeamFolder to create.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The teamFolder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.TeamFolder getTeamFolder() { + return teamFolder_ == null + ? com.google.cloud.dataform.v1beta1.TeamFolder.getDefaultInstance() + : teamFolder_; + } + + /** + * + * + *
          +   * Required. The TeamFolder to create.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.TeamFolderOrBuilder getTeamFolderOrBuilder() { + return teamFolder_ == null + ? com.google.cloud.dataform.v1beta1.TeamFolder.getDefaultInstance() + : teamFolder_; + } + + public static final int TEAM_FOLDER_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object teamFolderId_ = ""; + + /** + * + * + *
          +   * The ID to use for the TeamFolder, which will become the final component of
          +   * the TeamFolder's resource name.
          +   * 
          + * + * string team_folder_id = 3; + * + * @return The teamFolderId. + */ + @java.lang.Override + public java.lang.String getTeamFolderId() { + java.lang.Object ref = teamFolderId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamFolderId_ = s; + return s; + } + } + + /** + * + * + *
          +   * The ID to use for the TeamFolder, which will become the final component of
          +   * the TeamFolder's resource name.
          +   * 
          + * + * string team_folder_id = 3; + * + * @return The bytes for teamFolderId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTeamFolderIdBytes() { + java.lang.Object ref = teamFolderId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + teamFolderId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getTeamFolder()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(teamFolderId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, teamFolderId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTeamFolder()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(teamFolderId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, teamFolderId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest other = + (com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasTeamFolder() != other.hasTeamFolder()) return false; + if (hasTeamFolder()) { + if (!getTeamFolder().equals(other.getTeamFolder())) return false; + } + if (!getTeamFolderId().equals(other.getTeamFolderId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasTeamFolder()) { + hash = (37 * hash) + TEAM_FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getTeamFolder().hashCode(); + } + hash = (37 * hash) + TEAM_FOLDER_ID_FIELD_NUMBER; + hash = (53 * hash) + getTeamFolderId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * `CreateTeamFolder` request message.
          +   * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.CreateTeamFolderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CreateTeamFolderRequest) + com.google.cloud.dataform.v1beta1.CreateTeamFolderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateTeamFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateTeamFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest.class, + com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetTeamFolderFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + teamFolder_ = null; + if (teamFolderBuilder_ != null) { + teamFolderBuilder_.dispose(); + teamFolderBuilder_ = null; + } + teamFolderId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateTeamFolderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest build() { + com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest buildPartial() { + com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest result = + new com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.teamFolder_ = teamFolderBuilder_ == null ? teamFolder_ : teamFolderBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.teamFolderId_ = teamFolderId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest other) { + if (other == com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasTeamFolder()) { + mergeTeamFolder(other.getTeamFolder()); + } + if (!other.getTeamFolderId().isEmpty()) { + teamFolderId_ = other.teamFolderId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetTeamFolderFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + teamFolderId_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
          +     * Required. The location in which to create the TeamFolder. Must be in the
          +     * format `projects/*/locations/*`.
          +     * 
          + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The location in which to create the TeamFolder. Must be in the
          +     * format `projects/*/locations/*`.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The location in which to create the TeamFolder. Must be in the
          +     * format `projects/*/locations/*`.
          +     * 
          + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The location in which to create the TeamFolder. Must be in the
          +     * format `projects/*/locations/*`.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The location in which to create the TeamFolder. Must be in the
          +     * format `projects/*/locations/*`.
          +     * 
          + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.dataform.v1beta1.TeamFolder teamFolder_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.TeamFolder, + com.google.cloud.dataform.v1beta1.TeamFolder.Builder, + com.google.cloud.dataform.v1beta1.TeamFolderOrBuilder> + teamFolderBuilder_; + + /** + * + * + *
          +     * Required. The TeamFolder to create.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the teamFolder field is set. + */ + public boolean hasTeamFolder() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +     * Required. The TeamFolder to create.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The teamFolder. + */ + public com.google.cloud.dataform.v1beta1.TeamFolder getTeamFolder() { + if (teamFolderBuilder_ == null) { + return teamFolder_ == null + ? com.google.cloud.dataform.v1beta1.TeamFolder.getDefaultInstance() + : teamFolder_; + } else { + return teamFolderBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Required. The TeamFolder to create.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTeamFolder(com.google.cloud.dataform.v1beta1.TeamFolder value) { + if (teamFolderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + teamFolder_ = value; + } else { + teamFolderBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The TeamFolder to create.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTeamFolder( + com.google.cloud.dataform.v1beta1.TeamFolder.Builder builderForValue) { + if (teamFolderBuilder_ == null) { + teamFolder_ = builderForValue.build(); + } else { + teamFolderBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The TeamFolder to create.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeTeamFolder(com.google.cloud.dataform.v1beta1.TeamFolder value) { + if (teamFolderBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && teamFolder_ != null + && teamFolder_ != com.google.cloud.dataform.v1beta1.TeamFolder.getDefaultInstance()) { + getTeamFolderBuilder().mergeFrom(value); + } else { + teamFolder_ = value; + } + } else { + teamFolderBuilder_.mergeFrom(value); + } + if (teamFolder_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Required. The TeamFolder to create.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTeamFolder() { + bitField0_ = (bitField0_ & ~0x00000002); + teamFolder_ = null; + if (teamFolderBuilder_ != null) { + teamFolderBuilder_.dispose(); + teamFolderBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The TeamFolder to create.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1beta1.TeamFolder.Builder getTeamFolderBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetTeamFolderFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Required. The TeamFolder to create.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1beta1.TeamFolderOrBuilder getTeamFolderOrBuilder() { + if (teamFolderBuilder_ != null) { + return teamFolderBuilder_.getMessageOrBuilder(); + } else { + return teamFolder_ == null + ? com.google.cloud.dataform.v1beta1.TeamFolder.getDefaultInstance() + : teamFolder_; + } + } + + /** + * + * + *
          +     * Required. The TeamFolder to create.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.TeamFolder, + com.google.cloud.dataform.v1beta1.TeamFolder.Builder, + com.google.cloud.dataform.v1beta1.TeamFolderOrBuilder> + internalGetTeamFolderFieldBuilder() { + if (teamFolderBuilder_ == null) { + teamFolderBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.TeamFolder, + com.google.cloud.dataform.v1beta1.TeamFolder.Builder, + com.google.cloud.dataform.v1beta1.TeamFolderOrBuilder>( + getTeamFolder(), getParentForChildren(), isClean()); + teamFolder_ = null; + } + return teamFolderBuilder_; + } + + private java.lang.Object teamFolderId_ = ""; + + /** + * + * + *
          +     * The ID to use for the TeamFolder, which will become the final component of
          +     * the TeamFolder's resource name.
          +     * 
          + * + * string team_folder_id = 3; + * + * @return The teamFolderId. + */ + public java.lang.String getTeamFolderId() { + java.lang.Object ref = teamFolderId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamFolderId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * The ID to use for the TeamFolder, which will become the final component of
          +     * the TeamFolder's resource name.
          +     * 
          + * + * string team_folder_id = 3; + * + * @return The bytes for teamFolderId. + */ + public com.google.protobuf.ByteString getTeamFolderIdBytes() { + java.lang.Object ref = teamFolderId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + teamFolderId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * The ID to use for the TeamFolder, which will become the final component of
          +     * the TeamFolder's resource name.
          +     * 
          + * + * string team_folder_id = 3; + * + * @param value The teamFolderId to set. + * @return This builder for chaining. + */ + public Builder setTeamFolderId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + teamFolderId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * The ID to use for the TeamFolder, which will become the final component of
          +     * the TeamFolder's resource name.
          +     * 
          + * + * string team_folder_id = 3; + * + * @return This builder for chaining. + */ + public Builder clearTeamFolderId() { + teamFolderId_ = getDefaultInstance().getTeamFolderId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
          +     * The ID to use for the TeamFolder, which will become the final component of
          +     * the TeamFolder's resource name.
          +     * 
          + * + * string team_folder_id = 3; + * + * @param value The bytes for teamFolderId to set. + * @return This builder for chaining. + */ + public Builder setTeamFolderIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + teamFolderId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.CreateTeamFolderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CreateTeamFolderRequest) + private static final com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest(); + } + + public static com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTeamFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateTeamFolderRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateTeamFolderRequestOrBuilder.java new file mode 100644 index 000000000000..6908f8b9753f --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateTeamFolderRequestOrBuilder.java @@ -0,0 +1,131 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +@com.google.protobuf.Generated +public interface CreateTeamFolderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.CreateTeamFolderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The location in which to create the TeamFolder. Must be in the
          +   * format `projects/*/locations/*`.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
          +   * Required. The location in which to create the TeamFolder. Must be in the
          +   * format `projects/*/locations/*`.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
          +   * Required. The TeamFolder to create.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the teamFolder field is set. + */ + boolean hasTeamFolder(); + + /** + * + * + *
          +   * Required. The TeamFolder to create.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The teamFolder. + */ + com.google.cloud.dataform.v1beta1.TeamFolder getTeamFolder(); + + /** + * + * + *
          +   * Required. The TeamFolder to create.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataform.v1beta1.TeamFolderOrBuilder getTeamFolderOrBuilder(); + + /** + * + * + *
          +   * The ID to use for the TeamFolder, which will become the final component of
          +   * the TeamFolder's resource name.
          +   * 
          + * + * string team_folder_id = 3; + * + * @return The teamFolderId. + */ + java.lang.String getTeamFolderId(); + + /** + * + * + *
          +   * The ID to use for the TeamFolder, which will become the final component of
          +   * the TeamFolder's resource name.
          +   * 
          + * + * string team_folder_id = 3; + * + * @return The bytes for teamFolderId. + */ + com.google.protobuf.ByteString getTeamFolderIdBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformProto.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformProto.java index 697d1e5dba11..f26c3bab7875 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformProto.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformProto.java @@ -64,6 +64,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataform_v1beta1_Repository_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dataform_v1beta1_Repository_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_PrivateResourceMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_PrivateResourceMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataform_v1beta1_ListRepositoriesRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -72,6 +76,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataform_v1beta1_ListRepositoriesResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dataform_v1beta1_ListRepositoriesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_MoveRepositoryRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_MoveRepositoryRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataform_v1beta1_GetRepositoryRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -616,6 +624,106 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataform_v1beta1_UpdateConfigRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dataform_v1beta1_UpdateConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_Folder_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_Folder_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_CreateFolderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_CreateFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_MoveFolderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_MoveFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_GetFolderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_GetFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_UpdateFolderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_UpdateFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_DeleteFolderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_DeleteFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsResponse_FolderContentsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsResponse_FolderContentsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsResponse_RootContentsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsResponse_RootContentsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_TeamFolder_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_TeamFolder_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_CreateTeamFolderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_CreateTeamFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_GetTeamFolderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_GetTeamFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_UpdateTeamFolderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_UpdateTeamFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsResponse_TeamFolderContentsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsResponse_TeamFolderContentsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersResponse_TeamFolderSearchResult_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersResponse_TeamFolderSearchResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_MoveFolderMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_MoveFolderMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_MoveRepositoryMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_MoveRepositoryMetadata_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -630,25 +738,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".proto\022\035google.cloud.dataform.v1beta1\032\034g" + "oogle/api/annotations.proto\032\027google/api/" + "client.proto\032\037google/api/field_behavior." - + "proto\032\031google/api/resource.proto\032\033google/protobuf/empty.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timesta" - + "mp.proto\032\027google/rpc/status.proto\032\032google/type/interval.proto\"e\n" + + "proto\032\031google/api/resource.proto\032\036google" + + "/iam/v1/iam_policy.proto\032\032google/iam/v1/" + + "policy.proto\032#google/longrunning/operations.proto\032\033google/protobuf/empty.proto\032" + + " google/protobuf/field_mask.proto\032\037google" + + "/protobuf/timestamp.proto\032\027google/rpc/st" + + "atus.proto\032\032google/type/interval.proto\"e\n" + "\023DataEncryptionState\022N\n" + "\024kms_key_version_name\030\001 \001(\tB0\340A\002\372A*\n" - + "(cloudkms.googleapis.com/CryptoKeyVersion\"\274\r\n\n" + + "(cloudkms.googleapis.com/CryptoKeyVersion\"\260\016\n\n" + "Repository\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + + "\004name\030\001 \001(\tB\003\340A\010\022#\n" + + "\021containing_folder\030\020 \001(\tB\003\340A\001H\000\210\001\001\022\"\n" + + "\020team_folder_name\030\022 \001(\tB\003\340A\003H\001\210\001\001\0224\n" + "\013create_time\030\r" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\031\n" + "\014display_name\030\010 \001(\tB\003\340A\001\022]\n" - + "\023git_remote_settings\030\002 \001(\0132;.google.cl" - + "oud.dataform.v1beta1.Repository.GitRemoteSettingsB\003\340A\001\022f\n" + + "\023git_remote_settings\030\002 \001(\0132;" + + ".google.cloud.dataform.v1beta1.Repository.GitRemoteSettingsB\003\340A\001\022f\n" + "*npmrc_environment_variables_secret_version\030\003 \001(\tB2\340A\001\372A,\n" + "*secretmanager.googleapis.com/SecretVersion\022u\n" - + "\037workspace_compilation_overrides\030\004 \001(\0132" - + "G.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverridesB\003\340A\001\022J\n" - + "\006labels\030\005" - + " \003(\01325.google.cloud.dataform.v1beta1.Repository.LabelsEntryB\003\340A\001\022,\n" + + "\037workspace_compilation_overrides\030\004 \001(\0132G.google.cloud.dataform.v1beta" + + "1.Repository.WorkspaceCompilationOverridesB\003\340A\001\022J\n" + + "\006labels\030\005 \003(\01325.google.cloud.d" + + "ataform.v1beta1.Repository.LabelsEntryB\003\340A\001\022,\n" + "\034set_authenticated_user_admin\030\t \001(\010B\006\340A\001\340A\004\022\034\n" + "\017service_account\030\n" + " \001(\tB\003\340A\001\022?\n" @@ -656,16 +769,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!cloudkms.googleapis.com/CryptoKey\022V\n" + "\025data_encryption_state\030\014" + " \001(\01322.google.cloud.dataform.v1beta1.DataEncryptionStateB\003\340A\003\022#\n" - + "\021internal_metadata\030\017 \001(\tB\003\340A\003H\000\210\001\001\032\361\004\n" + + "\021internal_metadata\030\017 \001(\tB\003\340A\003H\002\210\001\001\032\361\004\n" + "\021GitRemoteSettings\022\020\n" + "\003url\030\001 \001(\tB\003\340A\002\022\033\n" + "\016default_branch\030\002 \001(\tB\003\340A\002\022_\n" + "#authentication_token_secret_version\030\003 \001(\tB2\340A\001\372A,\n" + "*secretmanager.googleapis.com/SecretVersion\022{\n" - + "\031ssh_authentication_config\030\005 \001(\0132S.google.cloud.data" - + "form.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfigB\003\340A\001\022d\n" - + "\014token_status\030\004 \001(\0162G.google.cloud.dataform.v1b" - + "eta1.Repository.GitRemoteSettings.TokenStatusB\005\030\001\340A\003\032\224\001\n" + + "\031ssh_authentication_config\030\005 \001(\0132S.google." + + "cloud.dataform.v1beta1.Repository.GitRem" + + "oteSettings.SshAuthenticationConfigB\003\340A\001\022d\n" + + "\014token_status\030\004 \001(\0162G.google.cloud.da" + + "taform.v1beta1.Repository.GitRemoteSettings.TokenStatusB\005\030\001\340A\003\032\224\001\n" + "\027SshAuthenticationConfig\022[\n" + "\037user_private_key_secret_version\030\001 \001(\tB2\340A\002\372A,\n" + "*secretmanager.googleapis.com/SecretVersion\022\034\n" @@ -682,10 +796,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\205\001\352A\201\001\n" - + "\"dataform.googleapis.com/Repository\022Aprojects/{project}/loc" - + "ations/{location}/repositories/{repository}*\014repositories2\n" + + "\"dataform.googleapis.com/Repository\022Aprojects/{pr" + + "oject}/locations/{location}/repositories/{repository}*\014repositories2\n" + "repositoryB\024\n" - + "\022_internal_metadata\"\261\001\n" + + "\022_containing_folderB\023\n" + + "\021_team_folder_nameB\024\n" + + "\022_internal_metadata\"3\n" + + "\027PrivateResourceMetadata\022\030\n" + + "\013user_scoped\030\001 \001(\010B\003\340A\003\"\261\001\n" + "\027ListRepositoriesRequest\0229\n" + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022\026\n" @@ -694,18 +812,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\004 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\005 \001(\tB\003\340A\001\"\211\001\n" + "\030ListRepositoriesResponse\022?\n" - + "\014repositories\030\001 \003" - + "(\0132).google.cloud.dataform.v1beta1.Repository\022\027\n" + + "\014repositories\030\001" + + " \003(\0132).google.cloud.dataform.v1beta1.Repository\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" - + "\013unreachable\030\003 \003(\t\"P\n" + + "\013unreachable\030\003 \003(\t\"\244\001\n" + + "\025MoveRepositoryRequest\0228\n" + + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + + "\"dataform.googleapis.com/Repository\022/\n" + + "\035destination_containing_folder\030\002 \001(\tB\003\340A\001H\000\210\001\001B \n" + + "\036_destination_containing_folder\"P\n" + "\024GetRepositoryRequest\0228\n" + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + "\"dataform.googleapis.com/Repository\"\264\001\n" + "\027CreateRepositoryRequest\0229\n" + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022B\n\n" - + "repository\030\002 \001(\013" - + "2).google.cloud.dataform.v1beta1.RepositoryB\003\340A\002\022\032\n\r" + + "repository\030\002 \001(\0132).goog" + + "le.cloud.dataform.v1beta1.RepositoryB\003\340A\002\022\032\n\r" + "repository_id\030\003 \001(\tB\003\340A\002\"\223\001\n" + "\027UpdateRepositoryRequest\0224\n" + "\013update_mask\030\001" @@ -719,26 +842,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036CommitRepositoryChangesRequest\0228\n" + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + "\"dataform.googleapis.com/Repository\022K\n" - + "\017commit_metadata\030\002" - + " \001(\0132-.google.cloud.dataform.v1beta1.CommitMetadataB\003\340A\002\022%\n" + + "\017commit_metadata\030\002 \001" + + "(\0132-.google.cloud.dataform.v1beta1.CommitMetadataB\003\340A\002\022%\n" + "\030required_head_commit_sha\030\004 \001(\tB\003\340A\001\022o\n" - + "\017file_operations\030\003 \003(\0132Q.google.cloud.dataform.v1beta1.Co" - + "mmitRepositoryChangesRequest.FileOperationsEntryB\003\340A\001\032\245\002\n\r" + + "\017file_operations\030\003 \003(\0132Q.google.cloud.dataform.v1beta1.CommitRep" + + "ositoryChangesRequest.FileOperationsEntryB\003\340A\001\032\245\002\n\r" + "FileOperation\022k\n\n" - + "write_file\030\001 \001(\0132U.google.cloud.dataform.v1be" - + "ta1.CommitRepositoryChangesRequest.FileOperation.WriteFileH\000\022m\n" - + "\013delete_file\030\002 \001(\0132V.google.cloud.dataform.v1beta1.Commit" - + "RepositoryChangesRequest.FileOperation.DeleteFileH\000\032\035\n" + + "write_file\030\001 \001(\0132U.google.cloud.dataform.v1beta1.Com" + + "mitRepositoryChangesRequest.FileOperation.WriteFileH\000\022m\n" + + "\013delete_file\030\002 \001(\0132V.google.cloud.dataform.v1beta1.CommitReposit" + + "oryChangesRequest.FileOperation.DeleteFileH\000\032\035\n" + "\tWriteFile\022\020\n" + "\010contents\030\001 \001(\014\032\014\n\n" + "DeleteFileB\013\n" + "\toperation\032\202\001\n" + "\023FileOperationsEntry\022\013\n" + "\003key\030\001 \001(\t\022Z\n" - + "\005value\030\002 \001(\0132K.google.cloud.dataform.v1beta1.Commit" - + "RepositoryChangesRequest.FileOperation:\0028\001\"5\n" - + "\037CommitRepositoryChangesResponse\022\022\n" - + "\n" + + "\005value\030\002 \001(\0132K.goo" + + "gle.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation:\0028\001\"5\n" + + "\037CommitRepositoryChangesResponse\022\022\n\n" + "commit_sha\030\001 \001(\t\"\201\001\n" + "\031ReadRepositoryFileRequest\0228\n" + "\004name\030\001 \001(\tB*\340A\002\372A$\n" @@ -772,15 +894,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006author\030\003 \001(\0132+.google.cloud.dataform.v1beta1.CommitAuthor\022\026\n" + "\016commit_message\030\004 \001(\t\"o\n" + "\016CommitMetadata\022@\n" - + "\006author\030\001" - + " \001(\0132+.google.cloud.dataform.v1beta1.CommitAuthorB\003\340A\002\022\033\n" + + "\006author\030\001 \001(\013" + + "2+.google.cloud.dataform.v1beta1.CommitAuthorB\003\340A\002\022\033\n" + "\016commit_message\030\002 \001(\tB\003\340A\001\"e\n" + ")ComputeRepositoryAccessTokenStatusRequest\0228\n" + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + "\"dataform.googleapis.com/Repository\"\355\001\n" + "*ComputeRepositoryAccessTokenStatusResponse\022k\n" - + "\014token_status\030\001 \001(\0162U.google.cloud.datafo" - + "rm.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus\"R\n" + + "\014token_status\030\001 \001(\0162U.google.cloud.dataform.v1be" + + "ta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus\"R\n" + "\013TokenStatus\022\034\n" + "\030TOKEN_STATUS_UNSPECIFIED\020\000\022\r\n" + "\tNOT_FOUND\020\001\022\013\n" @@ -790,18 +912,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + "\"dataform.googleapis.com/Repository\"/\n" + "\033FetchRemoteBranchesResponse\022\020\n" - + "\010branches\030\001 \003(\t\"\202\003\n" + + "\010branches\030\001 \003(\t\"\225\004\n" + "\tWorkspace\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + "\013create_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022V\n" - + "\025data_encryption_state\030\002" - + " \001(\01322.google.cloud.dataform.v1beta1.DataEncryptionStateB\003\340A\003\022#\n" - + "\021internal_metadata\030\005 \001(" - + "\tB\003\340A\003H\000\210\001\001:\230\001\352A\224\001\n" - + "!dataform.googleapis.com/Workspace\022Xprojects/{project}" - + "/locations/{location}/repositories/{repository}/workspaces/{workspace}*\n" + + "\025data_encryption_state\030\002 \001(\01322." + + "google.cloud.dataform.v1beta1.DataEncryptionStateB\003\340A\003\022#\n" + + "\021internal_metadata\030\005 \001(\tB\003\340A\003H\000\210\001\001\022\037\n\r" + + "disable_moves\030\006 \001(\010B\003\340A\001H\001\210\001\001\022^\n" + + "\031private_resource_metadata\030\010 \001(\0132" + + "6.google.cloud.dataform.v1beta1.PrivateResourceMetadataB\003\340A\003:\230\001\352A\224\001\n" + + "!dataform.googleapis.com/Workspace\022Xprojects/{projec" + + "t}/locations/{location}/repositories/{repository}/workspaces/{workspace}*\n" + "workspaces2\tworkspaceB\024\n" - + "\022_internal_metadata\"\260\001\n" + + "\022_internal_metadataB\020\n" + + "\016_disable_moves\"\260\001\n" + "\025ListWorkspacesRequest\022:\n" + "\006parent\030\001 \001(\tB*\340A\002\372A$\n" + "\"dataform.googleapis.com/Repository\022\026\n" @@ -819,8 +944,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026CreateWorkspaceRequest\022:\n" + "\006parent\030\001 \001(\tB*\340A\002\372A$\n" + "\"dataform.googleapis.com/Repository\022@\n" - + "\tworkspace\030\002" - + " \001(\0132(.google.cloud.dataform.v1beta1.WorkspaceB\003\340A\002\022\031\n" + + "\tworkspace\030\002 \001(\0132(.go" + + "ogle.cloud.dataform.v1beta1.WorkspaceB\003\340A\002\022\031\n" + "\014workspace_id\030\003 \001(\tB\003\340A\002\"Q\n" + "\026DeleteWorkspaceRequest\0227\n" + "\004name\030\001 \001(\tB)\340A\002\372A#\n" @@ -832,8 +957,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB)\340A\002\372A#\n" + "!dataform.googleapis.com/Workspace\022\032\n\r" + "remote_branch\030\002 \001(\tB\003\340A\001\022@\n" - + "\006author\030\003 \001" - + "(\0132+.google.cloud.dataform.v1beta1.CommitAuthorB\003\340A\002\"\030\n" + + "\006author\030\003" + + " \001(\0132+.google.cloud.dataform.v1beta1.CommitAuthorB\003\340A\002\"\030\n" + "\026PullGitCommitsResponse\"l\n" + "\025PushGitCommitsRequest\0227\n" + "\004name\030\001 \001(\tB)\340A\002\372A#\n" @@ -844,12 +969,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB)\340A\002\372A#\n" + "!dataform.googleapis.com/Workspace\"\201\003\n" + "\034FetchFileGitStatusesResponse\022s\n" - + "\030uncommitted_file_changes\030\001 \003(\0132Q.google.cloud.dataform.v1beta" - + "1.FetchFileGitStatusesResponse.UncommittedFileChange\032\353\001\n" + + "\030uncommitted_file_changes\030\001 \003(\0132Q.google.c" + + "loud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange\032\353\001\n" + "\025UncommittedFileChange\022\014\n" + "\004path\030\001 \001(\t\022k\n" - + "\005state\030\002 \001(\0162W.google.cloud.dataform.v1beta1.FetchFileGitStatuses" - + "Response.UncommittedFileChange.StateB\003\340A\003\"W\n" + + "\005state\030\002 \001(\0162W.google.cloud.dataform.v1beta1." + + "FetchFileGitStatusesResponse.UncommittedFileChange.StateB\003\340A\003\"W\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\t\n" + "\005ADDED\020\001\022\013\n" @@ -858,7 +983,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "HAS_CONFLICTS\020\004\"q\n" + "\032FetchGitAheadBehindRequest\0227\n" + "\004name\030\001 \001(\tB)\340A\002\372A#\n" - + "!dataform.googleapis.com/Workspace\022\032\n\r" + + "!dataform.googleapis.com/Workspace\022\032\n" + + "\r" + "remote_branch\030\002 \001(\tB\003\340A\001\"L\n" + "\033FetchGitAheadBehindResponse\022\025\n\r" + "commits_ahead\030\001 \001(\005\022\026\n" @@ -866,8 +992,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035CommitWorkspaceChangesRequest\0227\n" + "\004name\030\001 \001(\tB)\340A\002\372A#\n" + "!dataform.googleapis.com/Workspace\022@\n" - + "\006author\030\004 \001(\0132+.google." - + "cloud.dataform.v1beta1.CommitAuthorB\003\340A\002\022\033\n" + + "\006author\030\004" + + " \001(\0132+.google.cloud.dataform.v1beta1.CommitAuthorB\003\340A\002\022\033\n" + "\016commit_message\030\002 \001(\tB\003\340A\001\022\022\n" + "\005paths\030\003 \003(\tB\003\340A\001\" \n" + "\036CommitWorkspaceChangesResponse\"\177\n" @@ -904,14 +1030,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\"x\n" + "\023SearchFilesResponse\022C\n" - + "\016search_results\030\001 " - + "\003(\0132+.google.cloud.dataform.v1beta1.SearchResult\022\034\n" + + "\016search_results\030\001" + + " \003(\0132+.google.cloud.dataform.v1beta1.SearchResult\022\034\n" + "\017next_page_token\030\002 \001(\tB\003\340A\001\"\243\001\n" + "\014SearchResult\022?\n" - + "\004file\030\001 \001(\0132/.google.c" - + "loud.dataform.v1beta1.FileSearchResultH\000\022I\n" - + "\tdirectory\030\002" - + " \001(\01324.google.cloud.dataform.v1beta1.DirectorySearchResultH\000B\007\n" + + "\004file\030\001" + + " \001(\0132/.google.cloud.dataform.v1beta1.FileSearchResultH\000\022I\n" + + "\tdirectory\030\002 \001(\0132" + + "4.google.cloud.dataform.v1beta1.DirectorySearchResultH\000B\007\n" + "\005entry\" \n" + "\020FileSearchResult\022\014\n" + "\004path\030\001 \001(\t\"%\n" @@ -938,8 +1064,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!dataform.googleapis.com/Workspace\022\021\n" + "\004path\030\002 \001(\tB\003\340A\002\022\025\n" + "\010revision\030\003 \001(\tB\003\340A\001\")\n" - + "\020ReadFileResponse\022\025\n" - + "\r" + + "\020ReadFileResponse\022\025\n\r" + "file_contents\030\001 \001(\014\"d\n" + "\021RemoveFileRequest\022<\n" + "\tworkspace\030\001 \001(\tB)\340A\002\372A#\n" @@ -965,13 +1090,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ReleaseConfig\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\032\n\r" + "git_commitish\030\002 \001(\tB\003\340A\002\022Z\n" - + "\027code_compilation_config\030\003" - + " \001(\01324.google.cloud.dataform.v1beta1.CodeCompilationConfigB\003\340A\001\022\032\n\r" + + "\027code_compilation_config\030\003 \001(\01324.google" + + ".cloud.dataform.v1beta1.CodeCompilationConfigB\003\340A\001\022\032\n\r" + "cron_schedule\030\004 \001(\tB\003\340A\001\022\026\n" + "\ttime_zone\030\007 \001(\tB\003\340A\001\022r\n" - + " recent_scheduled_release_records\030\005" - + " \003(\0132C.google.cloud.dataform.v1beta1.Rel" - + "easeConfig.ScheduledReleaseRecordB\003\340A\003\022U\n" + + " recent_scheduled_release_records\030\005 \003(\0132C.google.cloud." + + "dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecordB\003\340A\003\022U\n" + "\032release_compilation_result\030\006 \001(\tB1\340A\001\372A+\n" + ")dataform.googleapis.com/CompilationResult\022\025\n" + "\010disabled\030\010 \001(\010B\003\340A\001\022#\n" @@ -982,8 +1106,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014error_status\030\003 \001(\0132\022.google.rpc.StatusH\000\0225\n" + "\014release_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003B\010\n" + "\006result:\255\001\352A\251\001\n" - + "%dataform.googleapis.com/ReleaseConfig\022aprojects/{project}/locations/{loc" - + "ation}/repositories/{repository}/releaseConfigs/{release_config}*\016releaseConfigs2\r" + + "%dataform.googleapis.com/ReleaseConfig\022aprojects/{pro" + + "ject}/locations/{location}/repositories/" + + "{repository}/releaseConfigs/{release_config}*\016releaseConfigs2\r" + "releaseConfigB\024\n" + "\022_internal_metadata\"\210\001\n" + "\031ListReleaseConfigsRequest\022:\n" @@ -992,8 +1117,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"\221\001\n" + "\032ListReleaseConfigsResponse\022E\n" - + "\017release_configs\030\001 \003(\0132,.googl" - + "e.cloud.dataform.v1beta1.ReleaseConfig\022\027\n" + + "\017release_configs\030\001" + + " \003(\0132,.google.cloud.dataform.v1beta1.ReleaseConfig\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"V\n" + "\027GetReleaseConfigRequest\022;\n" @@ -1002,16 +1127,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032CreateReleaseConfigRequest\022:\n" + "\006parent\030\001 \001(\tB*\340A\002\372A$\n" + "\"dataform.googleapis.com/Repository\022I\n" - + "\016release_config\030\002" - + " \001(\0132,.google.cloud.dataform.v1beta1.ReleaseConfigB\003\340A\002\022\036\n" + + "\016release_config\030\002 \001(\0132,.google.clo" + + "ud.dataform.v1beta1.ReleaseConfigB\003\340A\002\022\036\n" + "\021release_config_id\030\003 \001(\tB\003\340A\002\"\235\001\n" + "\032UpdateReleaseConfigRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022I\n" - + "\016release_config\030\002 \001(\0132" - + ",.google.cloud.dataform.v1beta1.ReleaseConfigB\003\340A\002\"Y\n" + + "\016release_config\030\002" + + " \001(\0132,.google.cloud.dataform.v1beta1.ReleaseConfigB\003\340A\002\"Y\n" + "\032DeleteReleaseConfigRequest\022;\n" + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" - + "%dataform.googleapis.com/ReleaseConfig\"\203\010\n" + + "%dataform.googleapis.com/ReleaseConfig\"\343\010\n" + "\021CompilationResult\022\034\n\r" + "git_commitish\030\002 \001(\tB\003\340A\005H\000\022>\n" + "\tworkspace\030\003 \001(\tB)\340A\005\372A#\n" @@ -1019,26 +1144,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016release_config\030\007 \001(\tB-\340A\005\372A\'\n" + "%dataform.googleapis.com/ReleaseConfigH\000\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022Z\n" - + "\027code_compilation_config\030\004 \001(\01324.google.cloud.da" - + "taform.v1beta1.CodeCompilationConfigB\003\340A\005\022$\n" + + "\027code_compilation_config\030\004 \001" + + "(\01324.google.cloud.dataform.v1beta1.CodeCompilationConfigB\003\340A\005\022$\n" + "\027resolved_git_commit_sha\030\010 \001(\tB\003\340A\003\022\"\n" + "\025dataform_core_version\030\005 \001(\tB\003\340A\003\022b\n" - + "\022compilation_errors\030\006 \003(\0132A.google.cloud.d" - + "ataform.v1beta1.CompilationResult.CompilationErrorB\003\340A\003\022V\n" - + "\025data_encryption_state\030\t" - + " \001(\01322.google.cloud.dataform.v1beta1.DataEncryptionStateB\003\340A\003\0224\n" + + "\022compilation_errors\030\006 " + + "\003(\0132A.google.cloud.dataform.v1beta1.CompilationResult.CompilationErrorB\003\340A\003\022V\n" + + "\025data_encryption_state\030\t \001(\01322.google.clou" + + "d.dataform.v1beta1.DataEncryptionStateB\003\340A\003\0224\n" + "\013create_time\030\n" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022#\n" - + "\021internal_metadata\030\013 \001(\tB\003\340A\003H\001\210\001\001\032\222\001\n" + + "\021internal_metadata\030\013 \001(\tB\003\340A\003H\001\210\001\001\022^\n" + + "\031private_resource_metadata\030\014" + + " \001(\01326.google.cloud.dataform.v1beta1.PrivateResourceMetadataB\003\340A\003\032\222\001\n" + "\020CompilationError\022\024\n" + "\007message\030\001 \001(\tB\003\340A\003\022\022\n" + "\005stack\030\002 \001(\tB\003\340A\003\022\021\n" + "\004path\030\003 \001(\tB\003\340A\003\022A\n\r" + "action_target\030\004" + " \001(\0132%.google.cloud.dataform.v1beta1.TargetB\003\340A\003:\301\001\352A\275\001\n" - + ")dataform.googleapis.com/CompilationResult\022iproje" - + "cts/{project}/locations/{location}/repositories/{repository}/compilationResults/" - + "{compilation_result}*\022compilationResults2\021compilationResultB\010\n" + + ")dataform.googleapis.com/CompilationResult\022iprojects/" + + "{project}/locations/{location}/repositories/{repository}/compilationResults/{com" + + "pilation_result}*\022compilationResults2\021compilationResultB\010\n" + "\006sourceB\024\n" + "\022_internal_metadata\"\370\003\n" + "\025CodeCompilationConfig\022\035\n" @@ -1046,8 +1173,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016default_schema\030\002 \001(\tB\003\340A\001\022\035\n" + "\020default_location\030\010 \001(\tB\003\340A\001\022\035\n" + "\020assertion_schema\030\003 \001(\tB\003\340A\001\022Q\n" - + "\004vars\030\004 \003(\0132>.google.cloud.dataform.v1" - + "beta1.CodeCompilationConfig.VarsEntryB\003\340A\001\022\034\n" + + "\004vars\030\004 \003(\0132>.google.cloud.dataform.v1beta" + + "1.CodeCompilationConfig.VarsEntryB\003\340A\001\022\034\n" + "\017database_suffix\030\005 \001(\tB\003\340A\001\022\032\n\r" + "schema_suffix\030\006 \001(\tB\003\340A\001\022\031\n" + "\014table_prefix\030\007 \001(\tB\003\340A\001\022*\n" @@ -1071,8 +1198,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\004 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\005 \001(\tB\003\340A\001\"\235\001\n" + "\036ListCompilationResultsResponse\022M\n" - + "\023compilation_results\030\001 \003(\01320.goo" - + "gle.cloud.dataform.v1beta1.CompilationResult\022\027\n" + + "\023compilation_results\030\001 \003(\01320.google." + + "cloud.dataform.v1beta1.CompilationResult\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"^\n" + "\033GetCompilationResultRequest\022?\n" @@ -1081,68 +1208,73 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036CreateCompilationResultRequest\022:\n" + "\006parent\030\001 \001(\tB*\340A\002\372A$\n" + "\"dataform.googleapis.com/Repository\022Q\n" - + "\022compilation_result\030\002 \001(\01320.google.c" - + "loud.dataform.v1beta1.CompilationResultB\003\340A\002\"G\n" + + "\022compilation_result\030\002 \001(\01320.google.cloud" + + ".dataform.v1beta1.CompilationResultB\003\340A\002\"G\n" + "\006Target\022\025\n" + "\010database\030\001 \001(\tB\003\340A\001\022\023\n" + "\006schema\030\002 \001(\tB\003\340A\001\022\021\n" + "\004name\030\003 \001(\tB\003\340A\001\"\352\002\n" + "\022RelationDescriptor\022\023\n" + "\013description\030\001 \001(\t\022S\n" - + "\007columns\030\002 \003(\0132B.google.cloud.datafo" - + "rm.v1beta1.RelationDescriptor.ColumnDescriptor\022^\n" - + "\017bigquery_labels\030\003 \003(\0132E.google" - + ".cloud.dataform.v1beta1.RelationDescriptor.BigqueryLabelsEntry\032S\n" + + "\007columns\030\002 \003(\0132B.google.cloud.dataform.v" + + "1beta1.RelationDescriptor.ColumnDescriptor\022^\n" + + "\017bigquery_labels\030\003 \003(\0132E.google.clo" + + "ud.dataform.v1beta1.RelationDescriptor.BigqueryLabelsEntry\032S\n" + "\020ColumnDescriptor\022\014\n" + "\004path\030\001 \003(\t\022\023\n" + "\013description\030\002 \001(\t\022\034\n" + "\024bigquery_policy_tags\030\003 \003(\t\0325\n" + "\023BigqueryLabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"\313\034\n" + + "\005value\030\002 \001(\t:\0028\001\"\276\037\n" + "\027CompilationResultAction\022S\n" + "\010relation\030\004" + " \001(\0132?.google.cloud.dataform.v1beta1.CompilationResultAction.RelationH\000\022W\n\n" - + "operations\030\005 \001(\0132A.google.cloud.dataform." - + "v1beta1.CompilationResultAction.OperationsH\000\022U\n" - + "\tassertion\030\006 \001(\0132@.google.cloud.d" - + "ataform.v1beta1.CompilationResultAction.AssertionH\000\022Y\n" - + "\013declaration\030\007 \001(\0132B.googl" - + "e.cloud.dataform.v1beta1.CompilationResultAction.DeclarationH\000\022S\n" - + "\010notebook\030\010 \001(\013" - + "2?.google.cloud.dataform.v1beta1.CompilationResultAction.NotebookH\000\022b\n" - + "\020data_preparation\030\t \001(\0132F.google.cloud.dataform.v1" - + "beta1.CompilationResultAction.DataPreparationH\000\0225\n" + + "operations\030\005 \001(\0132A.google.cloud.dataform.v1be" + + "ta1.CompilationResultAction.OperationsH\000\022U\n" + + "\tassertion\030\006 \001(\0132@.google.cloud.dataf" + + "orm.v1beta1.CompilationResultAction.AssertionH\000\022Y\n" + + "\013declaration\030\007 \001(\0132B.google.cl" + + "oud.dataform.v1beta1.CompilationResultAction.DeclarationH\000\022S\n" + + "\010notebook\030\010 \001(\0132?.g" + + "oogle.cloud.dataform.v1beta1.CompilationResultAction.NotebookH\000\022b\n" + + "\020data_preparation\030\t \001(\0132F.google.cloud.dataform.v1beta" + + "1.CompilationResultAction.DataPreparationH\000\0225\n" + "\006target\030\001 \001(\0132%.google.cloud.dataform.v1beta1.Target\022?\n" + "\020canonical_target\030\002" + " \001(\0132%.google.cloud.dataform.v1beta1.Target\022\021\n" + "\tfile_path\030\003 \001(\t\022#\n" + "\021internal_metadata\030\n" - + " \001(\tB\003\340A\003H\001\210\001\001\032\336\010\n" + + " \001(\tB\003\340A\003H\001\210\001\001\032\321\013\n" + "\010Relation\022A\n" - + "\022dependency_targets\030\001" - + " \003(\0132%.google.cloud.dataform.v1beta1.Target\022\020\n" + + "\022dependency_targets\030\001 \003(\0132%.google.cloud.data", + "form.v1beta1.Target\022\020\n" + "\010disabled\030\002 \001(\010\022\014\n" + "\004tags\030\003 \003(\t\022N\n" - + "\023relation_descriptor\030\004" - + " \001(\01321.google.cloud.dataform.v1beta1.RelationDescriptor\022c\n\r" - + "relation_type\030\005 \001(\0162L" - + ".google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType\022\024\n" + + "\023relation_descriptor\030\004 \001(\013" + + "21.google.cloud.dataform.v1beta1.RelationDescriptor\022c\n\r" + + "relation_type\030\005 \001(\0162L.goo" + + "gle.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType\022\024\n" + "\014select_query\030\006 \001(\t\022\026\n" + "\016pre_operations\030\007 \003(\t\022\027\n" + "\017post_operations\030\010 \003(\t\022x\n" - + "\030incremental_table_config\030\t \001(\0132V.google.cloud.dat" - + "aform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig\022\034\n" + + "\030incremental_table_config\030\t \001(\0132V.google.cloud.datafor" + + "m.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig\022\034\n" + "\024partition_expression\030\n" + " \001(\t\022\033\n" + "\023cluster_expressions\030\013 \003(\t\022!\n" + "\031partition_expiration_days\030\014 \001(\005\022 \n" + "\030require_partition_filter\030\r" + " \001(\010\022r\n" - + "\022additional_options\030\016 \003(\0132V.google.cloud" - + ".dataform.v1beta1.CompilationResultAction.Relation.AdditionalOptionsEntry\032\330\001\n" - + "\026In", - "crementalTableConfig\022 \n" + + "\022additional_options\030\016 \003(\0132V.google.cloud.dat" + + "aform.v1beta1.CompilationResultAction.Relation.AdditionalOptionsEntry\022\027\n\n" + + "connection\030\017 \001(\tB\003\340A\001\022f\n" + + "\014table_format\030\020 \001(\0162K.google.cloud.dataform.v1beta1.Compilation" + + "ResultAction.Relation.TableFormatB\003\340A\001\022d\n" + + "\013file_format\030\021 \001(\0162J.google.cloud.dataf" + + "orm.v1beta1.CompilationResultAction.Relation.FileFormatB\003\340A\001\022\030\n" + + "\013storage_uri\030\022 \001(\tB\003\340A\001\032\330\001\n" + + "\026IncrementalTableConfig\022 \n" + "\030incremental_select_query\030\001 \001(\t\022\030\n" + "\020refresh_disabled\030\002 \001(\010\022\030\n" + "\020unique_key_parts\030\003 \003(\t\022\037\n" @@ -1157,7 +1289,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005TABLE\020\001\022\010\n" + "\004VIEW\020\002\022\025\n" + "\021INCREMENTAL_TABLE\020\003\022\025\n" - + "\021MATERIALIZED_VIEW\020\004\032\344\001\n\n" + + "\021MATERIALIZED_VIEW\020\004\"8\n" + + "\013TableFormat\022\034\n" + + "\030TABLE_FORMAT_UNSPECIFIED\020\000\022\013\n" + + "\007ICEBERG\020\001\"6\n\n" + + "FileFormat\022\033\n" + + "\027FILE_FORMAT_UNSPECIFIED\020\000\022\013\n" + + "\007PARQUET\020\001\032\344\001\n\n" + "Operations\022A\n" + "\022dependency_targets\030\001" + " \003(\0132%.google.cloud.dataform.v1beta1.Target\022\020\n" @@ -1174,8 +1312,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010disabled\030\002 \001(\010\022\014\n" + "\004tags\030\003 \003(\t\022\024\n" + "\014select_query\030\004 \001(\t\022N\n" - + "\023relation_descriptor\030\006 \001(" - + "\01321.google.cloud.dataform.v1beta1.RelationDescriptor\032]\n" + + "\023relation_descriptor\030\006" + + " \001(\01321.google.cloud.dataform.v1beta1.RelationDescriptor\032]\n" + "\013Declaration\022N\n" + "\023relation_descriptor\030\001" + " \001(\01321.google.cloud.dataform.v1beta1.RelationDescriptor\032\177\n" @@ -1187,31 +1325,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004tags\030\004 \003(\t\032\300\004\n" + "\017DataPreparation\022\027\n\r" + "contents_yaml\030\005 \001(\tH\000\022l\n" - + "\014contents_sql\030\006 \001(\0132T.google.cloud.d" - + "ataform.v1beta1.CompilationResultAction.DataPreparation.SqlDefinitionH\000\022A\n" + + "\014contents_sql\030\006 \001(\0132T.google.cloud.dataform.v1beta1.CompilationResult" + + "Action.DataPreparation.SqlDefinitionH\000\022A\n" + "\022dependency_targets\030\001" + " \003(\0132%.google.cloud.dataform.v1beta1.Target\022\020\n" + "\010disabled\030\002 \001(\010\022\014\n" + "\004tags\030\004 \003(\t\032\327\001\n\r" + "SqlDefinition\022\r\n" + "\005query\030\001 \001(\t\022f\n" - + "\013error_table\030\002 \001(\0132Q.google.cloud." - + "dataform.v1beta1.CompilationResultAction.DataPreparation.ErrorTable\022O\n" - + "\004load\030\003 \001(" - + "\0132A.google.cloud.dataform.v1beta1.CompilationResultAction.LoadConfig\032[\n\n" + + "\013error_table\030\002 \001(\0132Q.google" + + ".cloud.dataform.v1beta1.CompilationResultAction.DataPreparation.ErrorTable\022O\n" + + "\004load\030\003" + + " \001(\0132A.google.cloud.dataform.v1beta1.CompilationResultAction.LoadConfig\032[\n\n" + "ErrorTable\0225\n" + "\006target\030\001 \001(\0132%.google.cloud.dataform.v1beta1.Target\022\026\n" + "\016retention_days\030\002 \001(\005B\014\n\n" + "definition\032\204\003\n\n" + "LoadConfig\022X\n" - + "\007replace\030\001 \001(\0132E.google.cloud.dataform.v1beta1." - + "CompilationResultAction.SimpleLoadModeH\000\022W\n" - + "\006append\030\002 \001(\0132E.google.cloud.dataform" - + ".v1beta1.CompilationResultAction.SimpleLoadModeH\000\022]\n" - + "\007maximum\030\003 \001(\0132J.google.clou" - + "d.dataform.v1beta1.CompilationResultAction.IncrementalLoadModeH\000\022\\\n" - + "\006unique\030\004 \001(\0132J.google.cloud.dataform.v1beta1.Compila" - + "tionResultAction.IncrementalLoadModeH\000B\006\n" + + "\007replace\030\001 \001(\0132E.google.cloud.dataform.v" + + "1beta1.CompilationResultAction.SimpleLoadModeH\000\022W\n" + + "\006append\030\002 \001(\0132E.google.cloud.d" + + "ataform.v1beta1.CompilationResultAction.SimpleLoadModeH\000\022]\n" + + "\007maximum\030\003 \001(\0132J.goog" + + "le.cloud.dataform.v1beta1.CompilationResultAction.IncrementalLoadModeH\000\022\\\n" + + "\006unique\030\004 \001(\0132J.google.cloud.dataform.v1beta1." + + "CompilationResultAction.IncrementalLoadModeH\000B\006\n" + "\004mode\032\020\n" + "\016SimpleLoadMode\032%\n" + "\023IncrementalLoadMode\022\016\n" @@ -1225,8 +1363,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\"\234\001\n" + "%QueryCompilationResultActionsResponse\022Z\n" - + "\032compilation_result_actions\030\001 \003(\01326" - + ".google.cloud.dataform.v1beta1.CompilationResultAction\022\027\n" + + "\032compilation_result_actions\030\001" + + " \003(\01326.google.cloud.dataform.v1beta1.CompilationResultAction\022\027\n" + "\017next_page_token\030\002 \001(\t\"\267\007\n" + "\016WorkflowConfig\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022E\n" @@ -1236,9 +1374,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132/.google.cloud.dataform.v1beta1.InvocationConfigB\003\340A\001\022\032\n\r" + "cron_schedule\030\004 \001(\tB\003\340A\001\022\026\n" + "\ttime_zone\030\007 \001(\tB\003\340A\001\022w\n" - + "\"recent_scheduled_execution_records\030\005" - + " \003(\0132F.google.cloud.dataform.v1beta1.Wo" - + "rkflowConfig.ScheduledExecutionRecordB\003\340A\003\022\025\n" + + "\"recent_scheduled_execution_records\030\005 \003(\0132F.google.cloud.dataform.v1b" + + "eta1.WorkflowConfig.ScheduledExecutionRecordB\003\340A\003\022\025\n" + "\010disabled\030\010 \001(\010B\003\340A\001\0224\n" + "\013create_time\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\n" @@ -1251,18 +1388,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016execution_time\030\001" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003B\010\n" + "\006result:\262\001\352A\256\001\n" - + "&dataform.googleapis.com/WorkflowConfig\022cprojects/{project}/locations/{location}/r" - + "epositories/{repository}/workflowConfigs" - + "/{workflow_config}*\017workflowConfigs2\016workflowConfigB\024\n" - + "\022_internal_metadata\"\245\002\n" + + "&dataform.googleapis.com/WorkflowConfig\022cprojects/{project}/locations/{loca" + + "tion}/repositories/{repository}/workflow" + + "Configs/{workflow_config}*\017workflowConfigs2\016workflowConfigB\024\n" + + "\022_internal_metadata\"\346\003\n" + "\020InvocationConfig\022D\n" - + "\020included_targets\030\001 \003(\013" - + "2%.google.cloud.dataform.v1beta1.TargetB\003\340A\001\022\032\n\r" + + "\020included_targets\030\001" + + " \003(\0132%.google.cloud.dataform.v1beta1.TargetB\003\340A\001\022\032\n\r" + "included_tags\030\002 \003(\tB\003\340A\001\022-\n" + " transitive_dependencies_included\030\003 \001(\010B\003\340A\001\022+\n" + "\036transitive_dependents_included\030\004 \001(\010B\003\340A\001\0225\n" + "(fully_refresh_incremental_tables_enabled\030\005 \001(\010B\003\340A\001\022\034\n" - + "\017service_account\030\006 \001(\tB\003\340A\001\"\211\001\n" + + "\017service_account\030\006 \001(\tB\003\340A\001\022_\n" + + "\016query_priority\030\t \001(\016" + + "2=.google.cloud.dataform.v1beta1.InvocationConfig.QueryPriorityB\003\340A\001H\000\210\001\001\"K\n\r" + + "QueryPriority\022\036\n" + + "\032QUERY_PRIORITY_UNSPECIFIED\020\000\022\017\n" + + "\013INTERACTIVE\020\001\022\t\n" + + "\005BATCH\020\002B\021\n" + + "\017_query_priority\"\211\001\n" + "\032ListWorkflowConfigsRequest\022:\n" + "\006parent\030\001 \001(\tB*\340A\002\372A$\n" + "\"dataform.googleapis.com/Repository\022\026\n" @@ -1288,7 +1432,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132-.google.cloud.dataform.v1beta1.WorkflowConfigB\003\340A\002\"[\n" + "\033DeleteWorkflowConfigRequest\022<\n" + "\004name\030\001 \001(\tB.\340A\002\372A(\n" - + "&dataform.googleapis.com/WorkflowConfig\"\310\007\n" + + "&dataform.googleapis.com/WorkflowConfig\"\250\010\n" + "\022WorkflowInvocation\022O\n" + "\022compilation_result\030\002 \001(\tB1\340A\005\372A+\n" + ")dataform.googleapis.com/CompilationResultH\000\022I\n" @@ -1304,7 +1448,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ")dataform.googleapis.com/CompilationResult\022V\n" + "\025data_encryption_state\030\010" + " \001(\01322.google.cloud.dataform.v1beta1.DataEncryptionStateB\003\340A\003\022#\n" - + "\021internal_metadata\030\t \001(\tB\003\340A\003H\001\210\001\001\"d\n" + + "\021internal_metadata\030\t \001(\tB\003\340A\003H\001\210\001\001\022^\n" + + "\031private_resource_metadata\030\n" + + " \001(\01326.google.cloud.dataform.v1beta1.PrivateResourceMetadataB\003\340A\003\"d\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\013\n" + "\007RUNNING\020\001\022\r\n" @@ -1312,9 +1458,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tCANCELLED\020\003\022\n\n" + "\006FAILED\020\004\022\r\n" + "\tCANCELING\020\005:\306\001\352A\302\001\n" - + "*dataform.googleapis.com/WorkflowInvocation\022kprojects/{pro" - + "ject}/locations/{location}/repositories/{repository}/workflowInvocations/{workfl" - + "ow_invocation}*\023workflowInvocations2\022workflowInvocationB\024\n" + + "*dataform.googleapis.com/WorkflowInvocation\022kprojects/{project}/locations/{locatio" + + "n}/repositories/{repository}/workflowInv" + + "ocations/{workflow_invocation}*\023workflowInvocations2\022workflowInvocationB\024\n" + "\022compilation_sourceB\024\n" + "\022_internal_metadata\"\271\001\n" + "\036ListWorkflowInvocationsRequest\022:\n" @@ -1325,8 +1471,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\004 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\005 \001(\tB\003\340A\001\"\240\001\n" + "\037ListWorkflowInvocationsResponse\022O\n" - + "\024workflow_invocations\030\001 \003(\01321.goog" - + "le.cloud.dataform.v1beta1.WorkflowInvocation\022\027\n" + + "\024workflow_invocations\030\001" + + " \003(\01321.google.cloud.dataform.v1beta1.WorkflowInvocation\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"`\n" + "\034GetWorkflowInvocationRequest\022@\n" @@ -1335,8 +1481,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037CreateWorkflowInvocationRequest\022:\n" + "\006parent\030\001 \001(\tB*\340A\002\372A$\n" + "\"dataform.googleapis.com/Repository\022S\n" - + "\023workflow_invocation\030\002 \001(\01321.goog" - + "le.cloud.dataform.v1beta1.WorkflowInvocationB\003\340A\002\"c\n" + + "\023workflow_invocation\030\002" + + " \001(\01321.google.cloud.dataform.v1beta1.WorkflowInvocationB\003\340A\002\"c\n" + "\037DeleteWorkflowInvocationRequest\022@\n" + "\004name\030\001 \001(\tB2\340A\002\372A,\n" + "*dataform.googleapis.com/WorkflowInvocation\"c\n" @@ -1345,18 +1491,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*dataform.googleapis.com/WorkflowInvocation\"\"\n" + " CancelWorkflowInvocationResponse\"\341\020\n" + "\030WorkflowInvocationAction\022f\n" - + "\017bigquery_action\030\006 \001(\0132F.google.cloud.dat" - + "aform.v1beta1.WorkflowInvocationAction.BigQueryActionB\003\340A\003H\000\022f\n" - + "\017notebook_action\030\010 \001(\0132F.google.cloud.dataform.v1beta1.Wo" - + "rkflowInvocationAction.NotebookActionB\003\340A\003H\000\022u\n" - + "\027data_preparation_action\030\t \001(\0132M.google.cloud.dataform.v1beta1.WorkflowIn" - + "vocationAction.DataPreparationActionB\003\340A\003H\000\022:\n" - + "\006target\030\001" - + " \001(\0132%.google.cloud.dataform.v1beta1.TargetB\003\340A\003\022D\n" + + "\017bigquery_action\030\006 \001(\0132F." + + "google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryActionB\003\340A\003H\000\022f\n" + + "\017notebook_action\030\010 \001(\0132F.google.cloud.dat" + + "aform.v1beta1.WorkflowInvocationAction.NotebookActionB\003\340A\003H\000\022u\n" + + "\027data_preparation_action\030\t \001(\0132M.google.cloud.dataform.v1" + + "beta1.WorkflowInvocationAction.DataPreparationActionB\003\340A\003H\000\022:\n" + + "\006target\030\001 \001(\0132%.go" + + "ogle.cloud.dataform.v1beta1.TargetB\003\340A\003\022D\n" + "\020canonical_target\030\002" + " \001(\0132%.google.cloud.dataform.v1beta1.TargetB\003\340A\003\022Q\n" - + "\005state\030\004 \001(\0162=.google.cl" - + "oud.dataform.v1beta1.WorkflowInvocationAction.StateB\003\340A\003\022\033\n" + + "\005state\030\004" + + " \001(\0162=.google.cloud.dataform.v1beta1.WorkflowInvocationAction.StateB\003\340A\003\022\033\n" + "\016failure_reason\030\007 \001(\tB\003\340A\003\0225\n" + "\021invocation_timing\030\005 \001(\0132\025.google.type.IntervalB\003\340A\003\022#\n" + "\021internal_metadata\030\n" @@ -1369,33 +1515,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006job_id\030\002 \001(\tB\003\340A\003\032\251\t\n" + "\025DataPreparationAction\022\034\n\r" + "contents_yaml\030\002 \001(\tB\003\340A\003H\000\022y\n" - + "\014contents_sql\030\006 \001(\0132a.google.cloud.dat" - + "aform.v1beta1.WorkflowInvocationAction.D" - + "ataPreparationAction.ActionSqlDefinitionH\000\022\032\n\r" + + "\014contents_sql\030\006 \001(\0132a.google.cloud.dataform.v1beta1.WorkflowIn" + + "vocationAction.DataPreparationAction.ActionSqlDefinitionH\000\022\032\n\r" + "generated_sql\030\003 \001(\tB\003\340A\003\022\023\n" + "\006job_id\030\004 \001(\tB\003\340A\003\032\216\002\n" + "\023ActionSqlDefinition\022\r\n" + "\005query\030\001 \001(\t\022s\n" - + "\013error_table\030\002 \001(\0132^.google.cloud.dataform.v1beta1.WorkflowInvocati" - + "onAction.DataPreparationAction.ActionErrorTable\022s\n" - + "\013load_config\030\003 \001(\0132^.google.cloud.dataform.v1beta1.WorkflowInvocationA" - + "ction.DataPreparationAction.ActionLoadConfig\032a\n" + + "\013error_table\030\002 \001(\0132^.google.cloud.dataform.v1beta1." + + "WorkflowInvocationAction.DataPreparationAction.ActionErrorTable\022s\n" + + "\013load_config\030\003 \001(\0132^.google.cloud.dataform.v1beta1.Wor" + + "kflowInvocationAction.DataPreparationAction.ActionLoadConfig\032a\n" + "\020ActionErrorTable\0225\n" + "\006target\030\001 \001(\0132%.google.cloud.dataform.v1beta1.Target\022\026\n" + "\016retention_days\030\002 \001(\005\032\376\003\n" + "\020ActionLoadConfig\022u\n" - + "\007replace\030\001 \001(\0132b.google.cloud.dat" - + "aform.v1beta1.WorkflowInvocationAction.D" - + "ataPreparationAction.ActionSimpleLoadModeH\000\022t\n" - + "\006append\030\002 \001(\0132b.google.cloud.dataf" - + "orm.v1beta1.WorkflowInvocationAction.Dat" - + "aPreparationAction.ActionSimpleLoadModeH\000\022z\n" - + "\007maximum\030\003 \001(\0132g.google.cloud.datafo" - + "rm.v1beta1.WorkflowInvocationAction.Data" - + "PreparationAction.ActionIncrementalLoadModeH\000\022y\n" - + "\006unique\030\004 \001(\0132g.google.cloud.dat" - + "aform.v1beta1.WorkflowInvocationAction.D" - + "ataPreparationAction.ActionIncrementalLoadModeH\000B\006\n" + + "\007replace\030\001 \001(\0132b.google.cloud.dataform.v1beta1.WorkflowIn" + + "vocationAction.DataPreparationAction.ActionSimpleLoadModeH\000\022t\n" + + "\006append\030\002 \001(\0132b.google.cloud.dataform.v1beta1.WorkflowInvo" + + "cationAction.DataPreparationAction.ActionSimpleLoadModeH\000\022z\n" + + "\007maximum\030\003 \001(\0132g.google.cloud.dataform.v1beta1.WorkflowInvoc" + + "ationAction.DataPreparationAction.ActionIncrementalLoadModeH\000\022y\n" + + "\006unique\030\004 \001(\0132g.google.cloud.dataform.v1beta1.WorkflowIn" + + "vocationAction.DataPreparationAction.ActionIncrementalLoadModeH\000B\006\n" + "\004mode\032\026\n" + "\024ActionSimpleLoadMode\032+\n" + "\031ActionIncrementalLoadMode\022\016\n" @@ -1417,311 +1558,606 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"\237\001\n" + "&QueryWorkflowInvocationActionsResponse\022\\\n" - + "\033workflow_invocation_actions\030\001 \003(\01327.googl" - + "e.cloud.dataform.v1beta1.WorkflowInvocationAction\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\312\001\n" + + "\033workflow_invocation_actions\030\001" + + " \003(\01327.google.cloud.dataform.v1beta1.WorkflowInvocationAction\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\205\002\n" + "\006Config\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022G\n" + "\024default_kms_key_name\030\002 \001(\tB)\340A\001\372A#\n" - + "!cloudkms.googleapis.com/CryptoKey:d\352Aa\n" - + "\036dataform.googleapis.com/Config\022.projects/{project}/locat" - + "ions/{location}/config*\007configs2\006config\"H\n" + + "!cloudkms.googleapis.com/CryptoKey\022#\n" + + "\021internal_metadata\030\007 \001(\tB\003\340A\003H\000\210\001\001:d\352Aa\n" + + "\036dataform.googleapis.com/Config\022.projects/{p" + + "roject}/locations/{location}/config*\007configs2\006configB\024\n" + + "\022_internal_metadata\"H\n" + "\020GetConfigRequest\0224\n" + "\004name\030\001 \001(\tB&\340A\002\372A \n" + "\036dataform.googleapis.com/Config\"\207\001\n" + "\023UpdateConfigRequest\022:\n" + "\006config\030\001" + " \001(\0132%.google.cloud.dataform.v1beta1.ConfigB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\0012\235a\n" - + "\010Dataform\022\313\001\n" - + "\020ListRepositories\0226.google.cloud.dataform.v1beta1.Li" - + "stRepositoriesRequest\0327.google.cloud.dataform.v1beta1.ListRepositoriesResponse\"F" - + "\332A\006parent\202\323\344\223\0027\0225/v1beta1/{parent=projects/*/locations/*}/repositories\022\265\001\n\r" - + "GetRepository\0223.google.cloud.dataform.v1beta1" - + ".GetRepositoryRequest\032).google.cloud.dat" - + "aform.v1beta1.Repository\"D\332A\004name\202\323\344\223\0027\022" - + "5/v1beta1/{name=projects/*/locations/*/repositories/*}\022\342\001\n" - + "\020CreateRepository\0226.google.cloud.dataform.v1beta1.CreateReposi" - + "toryRequest\032).google.cloud.dataform.v1be" - + "ta1.Repository\"k\332A\037parent,repository,rep" - + "ository_id\202\323\344\223\002C\"5/v1beta1/{parent=projects/*/locations/*}/repositories:\n" - + "repository\022\344\001\n" - + "\020UpdateRepository\0226.google.cloud.dataform.v1beta1.UpdateRepositoryRequest" - + "\032).google.cloud.dataform.v1beta1.Reposit" - + "ory\"m\332A\026repository,update_mask\202\323\344\223\002N2@/v" - + "1beta1/{repository.name=projects/*/locations/*/repositories/*}:\n" - + "repository\022\250\001\n" - + "\020DeleteRepository\0226.google.cloud.dataform." - + "v1beta1.DeleteRepositoryRequest\032\026.google" - + ".protobuf.Empty\"D\332A\004name\202\323\344\223\0027*5/v1beta1" - + "/{name=projects/*/locations/*/repositories/*}\022\341\001\n" - + "\027CommitRepositoryChanges\022=.google.cloud.dataform.v1beta1.CommitReposito" - + "ryChangesRequest\032>.google.cloud.dataform.v1beta1.CommitRepositoryChangesResponse" - + "\"G\202\323\344\223\002A\"/v1beta1/{name=pr" - + "ojects/*/locations/*/repositories/*}:readFile\022\211\002\n" - + " QueryRepositoryDirectoryContents\022F.google.cloud.dataform.v1beta1.Query" - + "RepositoryDirectoryContentsRequest\032G.google.cloud.dataform.v1beta1.QueryReposito" - + "ryDirectoryContentsResponse\"T\202\323\344\223\002N\022L/v1" - + "beta1/{name=projects/*/locations/*/repositories/*}:queryDirectoryContents\022\341\001\n" - + "\026FetchRepositoryHistory\022<.google.cloud.data" - + "form.v1beta1.FetchRepositoryHistoryRequest\032=.google.cloud.dataform.v1beta1.Fetch" - + "RepositoryHistoryResponse\"J\202\323\344\223\002D\022B/v1be" - + "ta1/{name=projects/*/locations/*/repositories/*}:fetchHistory\022\221\002\n" - + "\"ComputeRepositoryAccessTokenStatus\022H.google.cloud.data" - + "form.v1beta1.ComputeRepositoryAccessTokenStatusRequest\032I.google.cloud.dataform.v" - + "1beta1.ComputeRepositoryAccessTokenStatu" - + "sResponse\"V\202\323\344\223\002P\022N/v1beta1/{name=projec" - + "ts/*/locations/*/repositories/*}:computeAccessTokenStatus\022\337\001\n" - + "\023FetchRemoteBranches\0229.google.cloud.dataform.v1beta1.FetchR" - + "emoteBranchesRequest\032:.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse" - + "\"Q\202\323\344\223\002K\022I/v1beta1/{name=projects/*/loca" - + "tions/*/repositories/*}:fetchRemoteBranches\022\322\001\n" - + "\016ListWorkspaces\0224.google.cloud.dataform.v1beta1.ListWorkspacesRequest\0325.g" - + "oogle.cloud.dataform.v1beta1.ListWorkspa" - + "cesResponse\"S\332A\006parent\202\323\344\223\002D\022B/v1beta1/{" - + "parent=projects/*/locations/*/repositories/*}/workspaces\022\277\001\n" - + "\014GetWorkspace\0222.google.cloud.dataform.v1beta1.GetWorkspaceRe" - + "quest\032(.google.cloud.dataform.v1beta1.Wo" - + "rkspace\"Q\332A\004name\202\323\344\223\002D\022B/v1beta1/{name=p" - + "rojects/*/locations/*/repositories/*/workspaces/*}\022\351\001\n" - + "\017CreateWorkspace\0225.google.cloud.dataform.v1beta1.CreateWorkspaceRe" - + "quest\032(.google.cloud.dataform.v1beta1.Wo" - + "rkspace\"u\332A\035parent,workspace,workspace_i" - + "d\202\323\344\223\002O\"B/v1beta1/{parent=projects/*/locations/*/repositories/*}/workspaces:" - + "\tworkspace\022\263\001\n" - + "\017DeleteWorkspace\0225.google.cloud.dataform.v1beta1.DeleteWorkspaceReques" - + "t\032\026.google.protobuf.Empty\"Q\332A\004name\202\323\344\223\002D" - + "*B/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}\022\360\001\n" - + "\022InstallNpmPackages\0228.google.cloud.dataform.v1be" - + "ta1.InstallNpmPackagesRequest\0329.google.cloud.dataform.v1beta1.InstallNpmPackages" - + "Response\"e\202\323\344\223\002_\"Z/v1beta1/{workspace=pr" - + "ojects/*/locations/*/repositories/*/workspaces/*}:installNpmPackages:\001*\022\321\001\n" - + "\016PullGitCommits\0224.google.cloud.dataform.v1bet" - + "a1.PullGitCommitsRequest\0325.google.cloud.dataform.v1beta1.PullGitCommitsResponse\"" - + "R\202\323\344\223\002L\"G/v1beta1/{name=projects/*/locat" - + "ions/*/repositories/*/workspaces/*}:pull:\001*\022\321\001\n" - + "\016PushGitCommits\0224.google.cloud.dataform.v1beta1.PushGitCommitsRequest\0325.g" - + "oogle.cloud.dataform.v1beta1.PushGitComm" - + "itsResponse\"R\202\323\344\223\002L\"G/v1beta1/{name=proj" - + "ects/*/locations/*/repositories/*/workspaces/*}:push:\001*\022\360\001\n" - + "\024FetchFileGitStatuses\022:.google.cloud.dataform.v1beta1.FetchFi" - + "leGitStatusesRequest\032;.google.cloud.dataform.v1beta1.FetchFileGitStatusesRespons" - + "e\"_\202\323\344\223\002Y\022W/v1beta1/{name=projects/*/loc" - + "ations/*/repositories/*/workspaces/*}:fetchFileGitStatuses\022\354\001\n" - + "\023FetchGitAheadBehind\0229.google.cloud.dataform.v1beta1.Fetch" - + "GitAheadBehindRequest\032:.google.cloud.dataform.v1beta1.FetchGitAheadBehindRespons" - + "e\"^\202\323\344\223\002X\022V/v1beta1/{name=projects/*/loc" - + "ations/*/repositories/*/workspaces/*}:fetchGitAheadBehind\022\353\001\n" - + "\026CommitWorkspaceChanges\022<.google.cloud.dataform.v1beta1.Com" - + "mitWorkspaceChangesRequest\032=.google.cloud.dataform.v1beta1.CommitWorkspaceChange" - + "sResponse\"T\202\323\344\223\002N\"I/v1beta1/{name=projec" - + "ts/*/locations/*/repositories/*/workspaces/*}:commit:\001*\022\347\001\n" - + "\025ResetWorkspaceChanges\022;.google.cloud.dataform.v1beta1.ResetW" - + "orkspaceChangesRequest\032<.google.cloud.dataform.v1beta1.ResetWorkspaceChangesResp" - + "onse\"S\202\323\344\223\002M\"H/v1beta1/{name=projects/*/" - + "locations/*/repositories/*/workspaces/*}:reset:\001*\022\331\001\n\r" - + "FetchFileDiff\0223.google.cloud.dataform.v1beta1.FetchFileDiffRequest" - + "\0324.google.cloud.dataform.v1beta1.FetchFi" - + "leDiffResponse\"]\202\323\344\223\002W\022U/v1beta1/{worksp" - + "ace=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileDiff\022\375\001\n" - + "\026QueryDirectoryContents\022<.google.cloud.dataform" - + ".v1beta1.QueryDirectoryContentsRequest\032=.google.cloud.dataform.v1beta1.QueryDire" - + "ctoryContentsResponse\"f\202\323\344\223\002`\022^/v1beta1/" - + "{workspace=projects/*/locations/*/reposi" - + "tories/*/workspaces/*}:queryDirectoryContents\022\321\001\n" - + "\013SearchFiles\0221.google.cloud.dataform.v1beta1.SearchFilesRequest\0322.googl" - + "e.cloud.dataform.v1beta1.SearchFilesResp" - + "onse\"[\202\323\344\223\002U\022S/v1beta1/{workspace=projec" - + "ts/*/locations/*/repositories/*/workspaces/*}:searchFiles\022\334\001\n\r" - + "MakeDirectory\0223.google.cloud.dataform.v1beta1.MakeDirector" - + "yRequest\0324.google.cloud.dataform.v1beta1" - + ".MakeDirectoryResponse\"`\202\323\344\223\002Z\"U/v1beta1" + + "\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"\317\003\n" + + "\006Folder\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\002\022\036\n" + + "\021containing_folder\030\003 \001(\tB\003\340A\001\022\035\n" + + "\020team_folder_name\030\004 \001(\tB\003\340A\003\0224\n" + + "\013create_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022#\n" + + "\021internal_metadata\030\007 \001(\tB\003\340A\003H\000\210\001\001\022\'\n" + + "\025creator_iam_principal\030\010 \001(\tB\003\340A\003H\001\210\001\001:n\352Ak\n" + + "\036dataform.googleapis.com/Folder\0228projects/" + + "{project}/locations/{location}/folders/{folder}*\007folders2\006folderB\024\n" + + "\022_internal_metadataB\030\n" + + "\026_creator_iam_principal\"\237\001\n" + + "\023CreateFolderRequest\0229\n" + + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022:\n" + + "\006folder\030\002" + + " \001(\0132%.google.cloud.dataform.v1beta1.FolderB\003\340A\002\022\021\n" + + "\tfolder_id\030\003 \001(\t\"\234\001\n" + + "\021MoveFolderRequest\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\036dataform.googleapis.com/Folder\022/\n" + + "\035destination_containing_folder\030\002 \001(\tB\003\340A\001H\000\210\001\001B \n" + + "\036_destination_containing_folder\"H\n" + + "\020GetFolderRequest\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\036dataform.googleapis.com/Folder\"\207\001\n" + + "\023UpdateFolderRequest\0224\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022:\n" + + "\006folder\030\002 \001(\0132%.google.cloud.dataform.v1beta1.FolderB\003\340A\002\"K\n" + + "\023DeleteFolderRequest\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\036dataform.googleapis.com/Folder\"\261\001\n" + + "\032QueryFolderContentsRequest\0226\n" + + "\006folder\030\001 \001(\tB&\340A\002\372A \n" + + "\036dataform.googleapis.com/Folder\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\004 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\005 \001(\tB\003\340A\001\"\262\002\n" + + "\033QueryFolderContentsResponse\022_\n" + + "\007entries\030\001 \003(\0132N.google" + + ".cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry\022\027\n" + + "\017next_page_token\030\002 \001(\t\032\230\001\n" + + "\023FolderContentsEntry\0227\n" + + "\006folder\030\001 \001(\0132%.google.cloud.dataform.v1beta1.FolderH\000\022?\n\n" + + "repository\030\002 \001(\0132).google.cloud.dataform.v1beta1.RepositoryH\000B\007\n" + + "\005entry\"\270\001\n" + + "\034QueryUserRootContentsRequest\022;\n" + + "\010location\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\004 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\005 \001(\tB\003\340A\001\"\262\002\n" + + "\035QueryUserRootContentsResponse\022_\n" + + "\007entries\030\001 \003(\0132N.google.cloud.dataform.v1beta" + + "1.QueryUserRootContentsResponse.RootContentsEntry\022\027\n" + + "\017next_page_token\030\002 \001(\t\032\226\001\n" + + "\021RootContentsEntry\0227\n" + + "\006folder\030\001 \001(\0132%.google.cloud.dataform.v1beta1.FolderH\000\022?\n\n" + + "repository\030\002 \001(\0132).google.cloud.dataform.v1beta1.RepositoryH\000B\007\n" + + "\005entry\"\253\003\n\n" + + "TeamFolder\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\002\0224\n" + + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022#\n" + + "\021internal_metadata\030\005 \001(\tB\003\340A\003H\000\210\001\001\022\'\n" + + "\025creator_iam_principal\030\006 \001(" + + "\tB\003\340A\003H\001\210\001\001:\204\001\352A\200\001\n" + + "\"dataform.googleapis.com/TeamFolder\022Ap" + + "rojects/{project}/locations/{location}/teamFolders/{team_folder}*\013teamFolders2\n" + + "teamFolderB\024\n" + + "\022_internal_metadataB\030\n" + + "\026_creator_iam_principal\"\261\001\n" + + "\027CreateTeamFolderRequest\0229\n" + + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022C\n" + + "\013team_folder\030\002" + + " \001(\0132).google.cloud.dataform.v1beta1.TeamFolderB\003\340A\002\022\026\n" + + "\016team_folder_id\030\003 \001(\t\"P\n" + + "\024GetTeamFolderRequest\0228\n" + + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + + "\"dataform.googleapis.com/TeamFolder\"\224\001\n" + + "\027UpdateTeamFolderRequest\0224\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022C\n" + + "\013team_folder\030\002" + + " \001(\0132).google.cloud.dataform.v1beta1.TeamFolderB\003\340A\002\"S\n" + + "\027DeleteTeamFolderRequest\0228\n" + + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + + "\"dataform.googleapis.com/TeamFolder\"\276\001\n" + + "\036QueryTeamFolderContentsRequest\022?\n" + + "\013team_folder\030\001 \001(\tB*\340A\002\372A$\n" + + "\"dataform.googleapis.com/TeamFolder\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\004 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\005 \001(\tB\003\340A\001\"\302\002\n" + + "\037QueryTeamFolderContentsResponse\022g\n" + + "\007entries\030\001 \003(\0132V.google.cloud.dataform.v1beta1.QueryT" + + "eamFolderContentsResponse.TeamFolderContentsEntry\022\027\n" + + "\017next_page_token\030\002 \001(\t\032\234\001\n" + + "\027TeamFolderContentsEntry\0227\n" + + "\006folder\030\001 \001(\0132%.google.cloud.dataform.v1beta1.FolderH\000\022?\n\n" + + "repository\030\002 \001(\0132).google.cloud.dataform.v1beta1.RepositoryH\000B\007\n" + + "\005entry\"\264\001\n" + + "\030SearchTeamFoldersRequest\022;\n" + + "\010location\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\004 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\005 \001(\tB\003\340A\001\"\373\001\n" + + "\031SearchTeamFoldersResponse\022`\n" + + "\007results\030\001 \003(\0132O.google.cloud.d" + + "ataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult\022\027\n" + + "\017next_page_token\030\002 \001(\t\032c\n" + + "\026TeamFolderSearchResult\022@\n" + + "\013team_folder\030\002" + + " \001(\0132).google.cloud.dataform.v1beta1.TeamFolderH\000B\007\n" + + "\005entry\"\317\002\n" + + "\022MoveFolderMetadata\0224\n" + + "\013create_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" + + "\010end_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n" + + "\006target\030\003 \001(\tB\003\340A\003\022F\n" + + "\005state\030\004 \001(\01627.goo" + + "gle.cloud.dataform.v1beta1.MoveFolderMetadata.State\022\030\n" + + "\020percent_complete\030\005 \001(\005\"Y\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\017\n" + + "\013INITIALIZED\020\001\022\017\n" + + "\013IN_PROGRESS\020\002\022\013\n" + + "\007SUCCESS\020\003\022\n\n" + + "\006FAILED\020\004\"\327\002\n" + + "\026MoveRepositoryMetadata\0224\n" + + "\013create_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" + + "\010end_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n" + + "\006target\030\003 \001(\tB\003\340A\003\022J\n" + + "\005state\030\004" + + " \001(\0162;.google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State\022\030\n" + + "\020percent_complete\030\005 \001(\005\"Y\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\017\n" + + "\013INITIALIZED\020\001\022\017\n" + + "\013IN_PROGRESS\020\002\022\013\n" + + "\007SUCCESS\020\003\022\n\n" + + "\006FAILED\020\0042\213\202\001\n" + + "\010Dataform\022\264\001\n\r" + + "GetTeamFolder\0223.google.cloud.dataform.v1beta1.GetTeamFolderRequest\032" + + ").google.cloud.dataform.v1beta1.TeamFold" + + "er\"C\332A\004name\202\323\344\223\0026\0224/v1beta1/{name=projects/*/locations/*/teamFolders/*}\022\325\001\n" + + "\020CreateTeamFolder\0226.google.cloud.dataform.v1b" + + "eta1.CreateTeamFolderRequest\032).google.cl" + + "oud.dataform.v1beta1.TeamFolder\"^\332A\022pare" + + "nt,team_folder\202\323\344\223\002C\"4/v1beta1/{parent=p" + + "rojects/*/locations/*}/teamFolders:\013team_folder\022\346\001\n" + + "\020UpdateTeamFolder\0226.google.cloud.dataform.v1beta1.UpdateTeamFolderReq" + + "uest\032).google.cloud.dataform.v1beta1.Tea" + + "mFolder\"o\332A\027team_folder,update_mask\202\323\344\223\002" + + "O2@/v1beta1/{team_folder.name=projects/*/locations/*/teamFolders/*}:\013team_folder", + "\022\247\001\n\020DeleteTeamFolder\0226.google.cloud.dat" + + "aform.v1beta1.DeleteTeamFolderRequest\032\026." + + "google.protobuf.Empty\"C\332A\004name\202\323\344\223\0026*4/v" + + "1beta1/{name=projects/*/locations/*/team" + + "Folders/*}\022\371\001\n\027QueryTeamFolderContents\022=" + + ".google.cloud.dataform.v1beta1.QueryTeam" + + "FolderContentsRequest\032>.google.cloud.dat" + + "aform.v1beta1.QueryTeamFolderContentsRes" + + "ponse\"_\332A\013team_folder\202\323\344\223\002K\022I/v1beta1/{t" + + "eam_folder=projects/*/locations/*/teamFo" + + "lders/*}:queryContents\022\315\001\n\021SearchTeamFol" + + "ders\0227.google.cloud.dataform.v1beta1.Sea" + + "rchTeamFoldersRequest\0328.google.cloud.dat" + + "aform.v1beta1.SearchTeamFoldersResponse\"" + + "E\202\323\344\223\002?\022=/v1beta1/{location=projects/*/l" + + "ocations/*}/teamFolders:search\022\244\001\n\tGetFo" + + "lder\022/.google.cloud.dataform.v1beta1.Get" + + "FolderRequest\032%.google.cloud.dataform.v1" + + "beta1.Folder\"?\332A\004name\202\323\344\223\0022\0220/v1beta1/{n" + + "ame=projects/*/locations/*/folders/*}\022\273\001" + + "\n\014CreateFolder\0222.google.cloud.dataform.v" + + "1beta1.CreateFolderRequest\032%.google.clou" + + "d.dataform.v1beta1.Folder\"P\332A\rparent,fol" + + "der\202\323\344\223\002:\"0/v1beta1/{parent=projects/*/l" + + "ocations/*}/folders:\006folder\022\307\001\n\014UpdateFo" + + "lder\0222.google.cloud.dataform.v1beta1.Upd" + + "ateFolderRequest\032%.google.cloud.dataform" + + ".v1beta1.Folder\"\\\332A\022folder,update_mask\202\323" + + "\344\223\002A27/v1beta1/{folder.name=projects/*/l" + + "ocations/*/folders/*}:\006folder\022\233\001\n\014Delete" + + "Folder\0222.google.cloud.dataform.v1beta1.D" + + "eleteFolderRequest\032\026.google.protobuf.Emp" + + "ty\"?\332A\004name\202\323\344\223\0022*0/v1beta1/{name=projec" + + "ts/*/locations/*/folders/*}\022\345\001\n\023QueryFol" + + "derContents\0229.google.cloud.dataform.v1be" + + "ta1.QueryFolderContentsRequest\032:.google." + + "cloud.dataform.v1beta1.QueryFolderConten" + + "tsResponse\"W\332A\006folder\202\323\344\223\002H\022F/v1beta1/{f" + + "older=projects/*/locations/*/folders/*}:" + + "queryFolderContents\022\347\001\n\025QueryUserRootCon" + + "tents\022;.google.cloud.dataform.v1beta1.Qu" + + "eryUserRootContentsRequest\032<.google.clou" + + "d.dataform.v1beta1.QueryUserRootContents" + + "Response\"S\332A\010location\202\323\344\223\002B\022@/v1beta1/{l" + + "ocation=projects/*/locations/*}:queryUse" + + "rRootContents\022\363\001\n\nMoveFolder\0220.google.cl" + + "oud.dataform.v1beta1.MoveFolderRequest\032\035" + + ".google.longrunning.Operation\"\223\001\312A+\n\025goo" + + "gle.protobuf.Empty\022\022MoveFolderMetadata\332A" + + "\"name,destination_containing_folder\202\323\344\223\002" + + ":\"5/v1beta1/{name=projects/*/locations/*" + + "/folders/*}:move:\001*\022\313\001\n\020ListRepositories" + + "\0226.google.cloud.dataform.v1beta1.ListRep" + + "ositoriesRequest\0327.google.cloud.dataform" + + ".v1beta1.ListRepositoriesResponse\"F\332A\006pa" + + "rent\202\323\344\223\0027\0225/v1beta1/{parent=projects/*/" + + "locations/*}/repositories\022\265\001\n\rGetReposit" + + "ory\0223.google.cloud.dataform.v1beta1.GetR" + + "epositoryRequest\032).google.cloud.dataform" + + ".v1beta1.Repository\"D\332A\004name\202\323\344\223\0027\0225/v1b" + + "eta1/{name=projects/*/locations/*/reposi" + + "tories/*}\022\342\001\n\020CreateRepository\0226.google." + + "cloud.dataform.v1beta1.CreateRepositoryR" + + "equest\032).google.cloud.dataform.v1beta1.R" + + "epository\"k\332A\037parent,repository,reposito" + + "ry_id\202\323\344\223\002C\"5/v1beta1/{parent=projects/*" + + "/locations/*}/repositories:\nrepository\022\344" + + "\001\n\020UpdateRepository\0226.google.cloud.dataf" + + "orm.v1beta1.UpdateRepositoryRequest\032).go" + + "ogle.cloud.dataform.v1beta1.Repository\"m" + + "\332A\026repository,update_mask\202\323\344\223\002N2@/v1beta" + + "1/{repository.name=projects/*/locations/" + + "*/repositories/*}:\nrepository\022\250\001\n\020Delete" + + "Repository\0226.google.cloud.dataform.v1bet" + + "a1.DeleteRepositoryRequest\032\026.google.prot" + + "obuf.Empty\"D\332A\004name\202\323\344\223\0027*5/v1beta1/{nam" + + "e=projects/*/locations/*/repositories/*}" + + "\022\204\002\n\016MoveRepository\0224.google.cloud.dataf" + + "orm.v1beta1.MoveRepositoryRequest\032\035.goog" + + "le.longrunning.Operation\"\234\001\312A/\n\025google.p" + + "rotobuf.Empty\022\026MoveRepositoryMetadata\332A\"" + + "name,destination_containing_folder\202\323\344\223\002?" + + "\":/v1beta1/{name=projects/*/locations/*/" + + "repositories/*}:move:\001*\022\341\001\n\027CommitReposi" + + "toryChanges\022=.google.cloud.dataform.v1be" + + "ta1.CommitRepositoryChangesRequest\032>.goo" + + "gle.cloud.dataform.v1beta1.CommitReposit" + + "oryChangesResponse\"G\202\323\344\223\002A\"/v1beta1/{name=projects/*/locations/*/r" + + "epositories/*}:readFile\022\211\002\n QueryReposit" + + "oryDirectoryContents\022F.google.cloud.data" + + "form.v1beta1.QueryRepositoryDirectoryCon" + + "tentsRequest\032G.google.cloud.dataform.v1b" + + "eta1.QueryRepositoryDirectoryContentsRes" + + "ponse\"T\202\323\344\223\002N\022L/v1beta1/{name=projects/*" + + "/locations/*/repositories/*}:queryDirect" + + "oryContents\022\341\001\n\026FetchRepositoryHistory\022<" + + ".google.cloud.dataform.v1beta1.FetchRepo" + + "sitoryHistoryRequest\032=.google.cloud.data" + + "form.v1beta1.FetchRepositoryHistoryRespo" + + "nse\"J\202\323\344\223\002D\022B/v1beta1/{name=projects/*/l" + + "ocations/*/repositories/*}:fetchHistory\022" + + "\221\002\n\"ComputeRepositoryAccessTokenStatus\022H" + + ".google.cloud.dataform.v1beta1.ComputeRe" + + "positoryAccessTokenStatusRequest\032I.googl" + + "e.cloud.dataform.v1beta1.ComputeReposito" + + "ryAccessTokenStatusResponse\"V\202\323\344\223\002P\022N/v1" + + "beta1/{name=projects/*/locations/*/repos" + + "itories/*}:computeAccessTokenStatus\022\337\001\n\023" + + "FetchRemoteBranches\0229.google.cloud.dataf" + + "orm.v1beta1.FetchRemoteBranchesRequest\032:" + + ".google.cloud.dataform.v1beta1.FetchRemo" + + "teBranchesResponse\"Q\202\323\344\223\002K\022I/v1beta1/{na" + + "me=projects/*/locations/*/repositories/*" + + "}:fetchRemoteBranches\022\322\001\n\016ListWorkspaces" + + "\0224.google.cloud.dataform.v1beta1.ListWor" + + "kspacesRequest\0325.google.cloud.dataform.v" + + "1beta1.ListWorkspacesResponse\"S\332A\006parent" + + "\202\323\344\223\002D\022B/v1beta1/{parent=projects/*/loca" + + "tions/*/repositories/*}/workspaces\022\277\001\n\014G" + + "etWorkspace\0222.google.cloud.dataform.v1be" + + "ta1.GetWorkspaceRequest\032(.google.cloud.d" + + "ataform.v1beta1.Workspace\"Q\332A\004name\202\323\344\223\002D" + + "\022B/v1beta1/{name=projects/*/locations/*/" + + "repositories/*/workspaces/*}\022\351\001\n\017CreateW" + + "orkspace\0225.google.cloud.dataform.v1beta1" + + ".CreateWorkspaceRequest\032(.google.cloud.d" + + "ataform.v1beta1.Workspace\"u\332A\035parent,wor" + + "kspace,workspace_id\202\323\344\223\002O\"B/v1beta1/{par" + + "ent=projects/*/locations/*/repositories/" + + "*}/workspaces:\tworkspace\022\263\001\n\017DeleteWorks" + + "pace\0225.google.cloud.dataform.v1beta1.Del" + + "eteWorkspaceRequest\032\026.google.protobuf.Em" + + "pty\"Q\332A\004name\202\323\344\223\002D*B/v1beta1/{name=proje" + + "cts/*/locations/*/repositories/*/workspa" + + "ces/*}\022\360\001\n\022InstallNpmPackages\0228.google.c" + + "loud.dataform.v1beta1.InstallNpmPackages" + + "Request\0329.google.cloud.dataform.v1beta1." + + "InstallNpmPackagesResponse\"e\202\323\344\223\002_\"Z/v1b" + + "eta1/{workspace=projects/*/locations/*/r" + + "epositories/*/workspaces/*}:installNpmPa" + + "ckages:\001*\022\321\001\n\016PullGitCommits\0224.google.cl" + + "oud.dataform.v1beta1.PullGitCommitsReque" + + "st\0325.google.cloud.dataform.v1beta1.PullG" + + "itCommitsResponse\"R\202\323\344\223\002L\"G/v1beta1/{nam" + + "e=projects/*/locations/*/repositories/*/" + + "workspaces/*}:pull:\001*\022\321\001\n\016PushGitCommits" + + "\0224.google.cloud.dataform.v1beta1.PushGit" + + "CommitsRequest\0325.google.cloud.dataform.v" + + "1beta1.PushGitCommitsResponse\"R\202\323\344\223\002L\"G/" + + "v1beta1/{name=projects/*/locations/*/rep" + + "ositories/*/workspaces/*}:push:\001*\022\360\001\n\024Fe" + + "tchFileGitStatuses\022:.google.cloud.datafo" + + "rm.v1beta1.FetchFileGitStatusesRequest\032;" + + ".google.cloud.dataform.v1beta1.FetchFile" + + "GitStatusesResponse\"_\202\323\344\223\002Y\022W/v1beta1/{n" + + "ame=projects/*/locations/*/repositories/" + + "*/workspaces/*}:fetchFileGitStatuses\022\354\001\n" + + "\023FetchGitAheadBehind\0229.google.cloud.data" + + "form.v1beta1.FetchGitAheadBehindRequest\032" + + ":.google.cloud.dataform.v1beta1.FetchGit" + + "AheadBehindResponse\"^\202\323\344\223\002X\022V/v1beta1/{n" + + "ame=projects/*/locations/*/repositories/" + + "*/workspaces/*}:fetchGitAheadBehind\022\353\001\n\026" + + "CommitWorkspaceChanges\022<.google.cloud.da" + + "taform.v1beta1.CommitWorkspaceChangesReq" + + "uest\032=.google.cloud.dataform.v1beta1.Com" + + "mitWorkspaceChangesResponse\"T\202\323\344\223\002N\"I/v1" + + "beta1/{name=projects/*/locations/*/repos" + + "itories/*/workspaces/*}:commit:\001*\022\347\001\n\025Re" + + "setWorkspaceChanges\022;.google.cloud.dataf" + + "orm.v1beta1.ResetWorkspaceChangesRequest" + + "\032<.google.cloud.dataform.v1beta1.ResetWo" + + "rkspaceChangesResponse\"S\202\323\344\223\002M\"H/v1beta1" + + "/{name=projects/*/locations/*/repositori" + + "es/*/workspaces/*}:reset:\001*\022\331\001\n\rFetchFil" + + "eDiff\0223.google.cloud.dataform.v1beta1.Fe" + + "tchFileDiffRequest\0324.google.cloud.datafo" + + "rm.v1beta1.FetchFileDiffResponse\"]\202\323\344\223\002W" + + "\022U/v1beta1/{workspace=projects/*/locatio" + + "ns/*/repositories/*/workspaces/*}:fetchF" + + "ileDiff\022\375\001\n\026QueryDirectoryContents\022<.goo" + + "gle.cloud.dataform.v1beta1.QueryDirector" + + "yContentsRequest\032=.google.cloud.dataform" + + ".v1beta1.QueryDirectoryContentsResponse\"" + + "f\202\323\344\223\002`\022^/v1beta1/{workspace=projects/*/" + + "locations/*/repositories/*/workspaces/*}" + + ":queryDirectoryContents\022\321\001\n\013SearchFiles\022" + + "1.google.cloud.dataform.v1beta1.SearchFi" + + "lesRequest\0322.google.cloud.dataform.v1bet" + + "a1.SearchFilesResponse\"[\202\323\344\223\002U\022S/v1beta1" + "/{workspace=projects/*/locations/*/repos" - + "itories/*/workspaces/*}:makeDirectory:\001*\022\344\001\n" - + "\017RemoveDirectory\0225.google.cloud.dataform.v1beta1.RemoveDirectoryRequest\0326.go" - + "ogle.cloud.dataform.v1beta1.RemoveDirect" - + "oryResponse\"b\202\323\344\223\002\\\"W/v1beta1/{workspace" - + "=projects/*/locations/*/repositories/*/workspaces/*}:removeDirectory:\001*\022\334\001\n\r" - + "MoveDirectory\0223.google.cloud.dataform.v1beta" - + "1.MoveDirectoryRequest\0324.google.cloud.da" - + "taform.v1beta1.MoveDirectoryResponse\"`\202\323" - + "\344\223\002Z\"U/v1beta1/{workspace=projects/*/loc" - + "ations/*/repositories/*/workspaces/*}:moveDirectory:\001*\022\305\001\n" - + "\010ReadFile\022..google.cloud.dataform.v1beta1.ReadFileRequest\032/.go" - + "ogle.cloud.dataform.v1beta1.ReadFileResp" - + "onse\"X\202\323\344\223\002R\022P/v1beta1/{workspace=projec" - + "ts/*/locations/*/repositories/*/workspaces/*}:readFile\022\320\001\n\n" - + "RemoveFile\0220.google.cloud.dataform.v1beta1.RemoveFileRequest\032" - + "1.google.cloud.dataform.v1beta1.RemoveFi" - + "leResponse\"]\202\323\344\223\002W\"R/v1beta1/{workspace=" - + "projects/*/locations/*/repositories/*/wo", - "rkspaces/*}:removeFile:\001*\022\310\001\n\010MoveFile\022." - + ".google.cloud.dataform.v1beta1.MoveFileR" - + "equest\032/.google.cloud.dataform.v1beta1.M" - + "oveFileResponse\"[\202\323\344\223\002U\"P/v1beta1/{works" - + "pace=projects/*/locations/*/repositories" - + "/*/workspaces/*}:moveFile:\001*\022\314\001\n\tWriteFi" - + "le\022/.google.cloud.dataform.v1beta1.Write" - + "FileRequest\0320.google.cloud.dataform.v1be" - + "ta1.WriteFileResponse\"\\\202\323\344\223\002V\"Q/v1beta1/" - + "{workspace=projects/*/locations/*/reposi" - + "tories/*/workspaces/*}:writeFile:\001*\022\342\001\n\022" - + "ListReleaseConfigs\0228.google.cloud.datafo" - + "rm.v1beta1.ListReleaseConfigsRequest\0329.g" + + "itories/*/workspaces/*}:searchFiles\022\334\001\n\r" + + "MakeDirectory\0223.google.cloud.dataform.v1" + + "beta1.MakeDirectoryRequest\0324.google.clou" + + "d.dataform.v1beta1.MakeDirectoryResponse" + + "\"`\202\323\344\223\002Z\"U/v1beta1/{workspace=projects/*" + + "/locations/*/repositories/*/workspaces/*" + + "}:makeDirectory:\001*\022\344\001\n\017RemoveDirectory\0225" + + ".google.cloud.dataform.v1beta1.RemoveDir" + + "ectoryRequest\0326.google.cloud.dataform.v1" + + "beta1.RemoveDirectoryResponse\"b\202\323\344\223\002\\\"W/" + + "v1beta1/{workspace=projects/*/locations/" + + "*/repositories/*/workspaces/*}:removeDir" + + "ectory:\001*\022\334\001\n\rMoveDirectory\0223.google.clo" + + "ud.dataform.v1beta1.MoveDirectoryRequest" + + "\0324.google.cloud.dataform.v1beta1.MoveDir" + + "ectoryResponse\"`\202\323\344\223\002Z\"U/v1beta1/{worksp" + + "ace=projects/*/locations/*/repositories/" + + "*/workspaces/*}:moveDirectory:\001*\022\305\001\n\010Rea" + + "dFile\022..google.cloud.dataform.v1beta1.Re" + + "adFileRequest\032/.google.cloud.dataform.v1" + + "beta1.ReadFileResponse\"X\202\323\344\223\002R\022P/v1beta1" + + "/{workspace=projects/*/locations/*/repos" + + "itories/*/workspaces/*}:readFile\022\320\001\n\nRem" + + "oveFile\0220.google.cloud.dataform.v1beta1." + + "RemoveFileRequest\0321.google.cloud.datafor" + + "m.v1beta1.RemoveFileResponse\"]\202\323\344\223\002W\"R/v" + + "1beta1/{workspace=projects/*/locations/*" + + "/repositories/*/workspaces/*}:removeFile" + + ":\001*\022\310\001\n\010MoveFile\022..google.cloud.dataform" + + ".v1beta1.MoveFileRequest\032/.google.cloud." + + "dataform.v1beta1.MoveFileResponse\"[\202\323\344\223\002" + + "U\"P/v1beta1/{workspace=projects/*/locati" + + "ons/*/repositories/*/workspaces/*}:moveF" + + "ile:\001*\022\314\001\n\tWriteFile\022/.google.cloud.data" + + "form.v1beta1.WriteFileRequest\0320.google.c" + + "loud.dataform.v1beta1.WriteFileResponse\"" + + "\\\202\323\344\223\002V\"Q/v1beta1/{workspace=projects/*/" + + "locations/*/repositories/*/workspaces/*}" + + ":writeFile:\001*\022\342\001\n\022ListReleaseConfigs\0228.g" + "oogle.cloud.dataform.v1beta1.ListRelease" - + "ConfigsResponse\"W\332A\006parent\202\323\344\223\002H\022F/v1bet" + + "ConfigsRequest\0329.google.cloud.dataform.v" + + "1beta1.ListReleaseConfigsResponse\"W\332A\006pa" + + "rent\202\323\344\223\002H\022F/v1beta1/{parent=projects/*/" + + "locations/*/repositories/*}/releaseConfi" + + "gs\022\317\001\n\020GetReleaseConfig\0226.google.cloud.d" + + "ataform.v1beta1.GetReleaseConfigRequest\032" + + ",.google.cloud.dataform.v1beta1.ReleaseC" + + "onfig\"U\332A\004name\202\323\344\223\002H\022F/v1beta1/{name=pro" + + "jects/*/locations/*/repositories/*/relea" + + "seConfigs/*}\022\211\002\n\023CreateReleaseConfig\0229.g" + + "oogle.cloud.dataform.v1beta1.CreateRelea" + + "seConfigRequest\032,.google.cloud.dataform." + + "v1beta1.ReleaseConfig\"\210\001\332A\'parent,releas" + + "e_config,release_config_id\202\323\344\223\002X\"F/v1bet" + "a1/{parent=projects/*/locations/*/reposi" - + "tories/*}/releaseConfigs\022\317\001\n\020GetReleaseC" - + "onfig\0226.google.cloud.dataform.v1beta1.Ge" - + "tReleaseConfigRequest\032,.google.cloud.dat" - + "aform.v1beta1.ReleaseConfig\"U\332A\004name\202\323\344\223" - + "\002H\022F/v1beta1/{name=projects/*/locations/" - + "*/repositories/*/releaseConfigs/*}\022\211\002\n\023C" - + "reateReleaseConfig\0229.google.cloud.datafo" - + "rm.v1beta1.CreateReleaseConfigRequest\032,." - + "google.cloud.dataform.v1beta1.ReleaseCon" - + "fig\"\210\001\332A\'parent,release_config,release_c" - + "onfig_id\202\323\344\223\002X\"F/v1beta1/{parent=project" - + "s/*/locations/*/repositories/*}/releaseC" - + "onfigs:\016release_config\022\213\002\n\023UpdateRelease" - + "Config\0229.google.cloud.dataform.v1beta1.U" - + "pdateReleaseConfigRequest\032,.google.cloud" - + ".dataform.v1beta1.ReleaseConfig\"\212\001\332A\032rel" - + "ease_config,update_mask\202\323\344\223\002g2U/v1beta1/" - + "{release_config.name=projects/*/location" - + "s/*/repositories/*/releaseConfigs/*}:\016re" - + "lease_config\022\277\001\n\023DeleteReleaseConfig\0229.g" - + "oogle.cloud.dataform.v1beta1.DeleteRelea" - + "seConfigRequest\032\026.google.protobuf.Empty\"" - + "U\332A\004name\202\323\344\223\002H*F/v1beta1/{name=projects/" - + "*/locations/*/repositories/*/releaseConf" - + "igs/*}\022\362\001\n\026ListCompilationResults\022<.goog" + + "tories/*}/releaseConfigs:\016release_config" + + "\022\213\002\n\023UpdateReleaseConfig\0229.google.cloud." + + "dataform.v1beta1.UpdateReleaseConfigRequ" + + "est\032,.google.cloud.dataform.v1beta1.Rele" + + "aseConfig\"\212\001\332A\032release_config,update_mas" + + "k\202\323\344\223\002g2U/v1beta1/{release_config.name=p" + + "rojects/*/locations/*/repositories/*/rel" + + "easeConfigs/*}:\016release_config\022\277\001\n\023Delet" + + "eReleaseConfig\0229.google.cloud.dataform.v" + + "1beta1.DeleteReleaseConfigRequest\032\026.goog" + + "le.protobuf.Empty\"U\332A\004name\202\323\344\223\002H*F/v1bet" + + "a1/{name=projects/*/locations/*/reposito" + + "ries/*/releaseConfigs/*}\022\362\001\n\026ListCompila" + + "tionResults\022<.google.cloud.dataform.v1be" + + "ta1.ListCompilationResultsRequest\032=.goog" + "le.cloud.dataform.v1beta1.ListCompilatio" - + "nResultsRequest\032=.google.cloud.dataform." - + "v1beta1.ListCompilationResultsResponse\"[" - + "\332A\006parent\202\323\344\223\002L\022J/v1beta1/{parent=projec" - + "ts/*/locations/*/repositories/*}/compila" - + "tionResults\022\337\001\n\024GetCompilationResult\022:.g" - + "oogle.cloud.dataform.v1beta1.GetCompilat" - + "ionResultRequest\0320.google.cloud.dataform" - + ".v1beta1.CompilationResult\"Y\332A\004name\202\323\344\223\002" - + "L\022J/v1beta1/{name=projects/*/locations/*" - + "/repositories/*/compilationResults/*}\022\217\002" - + "\n\027CreateCompilationResult\022=.google.cloud" - + ".dataform.v1beta1.CreateCompilationResul" - + "tRequest\0320.google.cloud.dataform.v1beta1" - + ".CompilationResult\"\202\001\332A\031parent,compilati" - + "on_result\202\323\344\223\002`\"J/v1beta1/{parent=projec" - + "ts/*/locations/*/repositories/*}/compila" - + "tionResults:\022compilation_result\022\204\002\n\035Quer" - + "yCompilationResultActions\022C.google.cloud" - + ".dataform.v1beta1.QueryCompilationResult" - + "ActionsRequest\032D.google.cloud.dataform.v" - + "1beta1.QueryCompilationResultActionsResp" - + "onse\"X\202\323\344\223\002R\022P/v1beta1/{name=projects/*/" - + "locations/*/repositories/*/compilationRe" - + "sults/*}:query\022\346\001\n\023ListWorkflowConfigs\0229" - + ".google.cloud.dataform.v1beta1.ListWorkf" - + "lowConfigsRequest\032:.google.cloud.datafor" - + "m.v1beta1.ListWorkflowConfigsResponse\"X\332" - + "A\006parent\202\323\344\223\002I\022G/v1beta1/{parent=project" - + "s/*/locations/*/repositories/*}/workflow" - + "Configs\022\323\001\n\021GetWorkflowConfig\0227.google.c" - + "loud.dataform.v1beta1.GetWorkflowConfigR" - + "equest\032-.google.cloud.dataform.v1beta1.W" - + "orkflowConfig\"V\332A\004name\202\323\344\223\002I\022G/v1beta1/{" - + "name=projects/*/locations/*/repositories" - + "/*/workflowConfigs/*}\022\220\002\n\024CreateWorkflow" - + "Config\022:.google.cloud.dataform.v1beta1.C" - + "reateWorkflowConfigRequest\032-.google.clou" - + "d.dataform.v1beta1.WorkflowConfig\"\214\001\332A)p" - + "arent,workflow_config,workflow_config_id" - + "\202\323\344\223\002Z\"G/v1beta1/{parent=projects/*/loca" - + "tions/*/repositories/*}/workflowConfigs:" - + "\017workflow_config\022\222\002\n\024UpdateWorkflowConfi" - + "g\022:.google.cloud.dataform.v1beta1.Update" - + "WorkflowConfigRequest\032-.google.cloud.dat" - + "aform.v1beta1.WorkflowConfig\"\216\001\332A\033workfl" - + "ow_config,update_mask\202\323\344\223\002j2W/v1beta1/{w" - + "orkflow_config.name=projects/*/locations" - + "/*/repositories/*/workflowConfigs/*}:\017wo" - + "rkflow_config\022\302\001\n\024DeleteWorkflowConfig\022:" - + ".google.cloud.dataform.v1beta1.DeleteWor" - + "kflowConfigRequest\032\026.google.protobuf.Emp" - + "ty\"V\332A\004name\202\323\344\223\002I*G/v1beta1/{name=projec" - + "ts/*/locations/*/repositories/*/workflow" - + "Configs/*}\022\366\001\n\027ListWorkflowInvocations\022=" - + ".google.cloud.dataform.v1beta1.ListWorkf" - + "lowInvocationsRequest\032>.google.cloud.dat" - + "aform.v1beta1.ListWorkflowInvocationsRes" - + "ponse\"\\\332A\006parent\202\323\344\223\002M\022K/v1beta1/{parent" - + "=projects/*/locations/*/repositories/*}/" - + "workflowInvocations\022\343\001\n\025GetWorkflowInvoc" - + "ation\022;.google.cloud.dataform.v1beta1.Ge" - + "tWorkflowInvocationRequest\0321.google.clou" - + "d.dataform.v1beta1.WorkflowInvocation\"Z\332" - + "A\004name\202\323\344\223\002M\022K/v1beta1/{name=projects/*/" - + "locations/*/repositories/*/workflowInvoc" - + "ations/*}\022\225\002\n\030CreateWorkflowInvocation\022>" - + ".google.cloud.dataform.v1beta1.CreateWor" - + "kflowInvocationRequest\0321.google.cloud.da" - + "taform.v1beta1.WorkflowInvocation\"\205\001\332A\032p" - + "arent,workflow_invocation\202\323\344\223\002b\"K/v1beta" - + "1/{parent=projects/*/locations/*/reposit" - + "ories/*}/workflowInvocations:\023workflow_i" - + "nvocation\022\316\001\n\030DeleteWorkflowInvocation\022>" - + ".google.cloud.dataform.v1beta1.DeleteWor" - + "kflowInvocationRequest\032\026.google.protobuf" - + ".Empty\"Z\332A\004name\202\323\344\223\002M*K/v1beta1/{name=pr" + + "nResultsResponse\"[\332A\006parent\202\323\344\223\002L\022J/v1be" + + "ta1/{parent=projects/*/locations/*/repos" + + "itories/*}/compilationResults\022\337\001\n\024GetCom" + + "pilationResult\022:.google.cloud.dataform.v" + + "1beta1.GetCompilationResultRequest\0320.goo" + + "gle.cloud.dataform.v1beta1.CompilationRe" + + "sult\"Y\332A\004name\202\323\344\223\002L\022J/v1beta1/{name=proj" + + "ects/*/locations/*/repositories/*/compil" + + "ationResults/*}\022\217\002\n\027CreateCompilationRes" + + "ult\022=.google.cloud.dataform.v1beta1.Crea" + + "teCompilationResultRequest\0320.google.clou" + + "d.dataform.v1beta1.CompilationResult\"\202\001\332" + + "A\031parent,compilation_result\202\323\344\223\002`\"J/v1be" + + "ta1/{parent=projects/*/locations/*/repos" + + "itories/*}/compilationResults:\022compilati" + + "on_result\022\204\002\n\035QueryCompilationResultActi" + + "ons\022C.google.cloud.dataform.v1beta1.Quer" + + "yCompilationResultActionsRequest\032D.googl" + + "e.cloud.dataform.v1beta1.QueryCompilatio" + + "nResultActionsResponse\"X\202\323\344\223\002R\022P/v1beta1" + + "/{name=projects/*/locations/*/repositori" + + "es/*/compilationResults/*}:query\022\346\001\n\023Lis" + + "tWorkflowConfigs\0229.google.cloud.dataform" + + ".v1beta1.ListWorkflowConfigsRequest\032:.go" + + "ogle.cloud.dataform.v1beta1.ListWorkflow" + + "ConfigsResponse\"X\332A\006parent\202\323\344\223\002I\022G/v1bet" + + "a1/{parent=projects/*/locations/*/reposi" + + "tories/*}/workflowConfigs\022\323\001\n\021GetWorkflo" + + "wConfig\0227.google.cloud.dataform.v1beta1." + + "GetWorkflowConfigRequest\032-.google.cloud." + + "dataform.v1beta1.WorkflowConfig\"V\332A\004name" + + "\202\323\344\223\002I\022G/v1beta1/{name=projects/*/locati" + + "ons/*/repositories/*/workflowConfigs/*}\022" + + "\220\002\n\024CreateWorkflowConfig\022:.google.cloud." + + "dataform.v1beta1.CreateWorkflowConfigReq" + + "uest\032-.google.cloud.dataform.v1beta1.Wor" + + "kflowConfig\"\214\001\332A)parent,workflow_config," + + "workflow_config_id\202\323\344\223\002Z\"G/v1beta1/{pare" + + "nt=projects/*/locations/*/repositories/*" + + "}/workflowConfigs:\017workflow_config\022\222\002\n\024U" + + "pdateWorkflowConfig\022:.google.cloud.dataf" + + "orm.v1beta1.UpdateWorkflowConfigRequest\032" + + "-.google.cloud.dataform.v1beta1.Workflow" + + "Config\"\216\001\332A\033workflow_config,update_mask\202" + + "\323\344\223\002j2W/v1beta1/{workflow_config.name=pr" + "ojects/*/locations/*/repositories/*/work" - + "flowInvocations/*}\022\372\001\n\030CancelWorkflowInv" - + "ocation\022>.google.cloud.dataform.v1beta1." - + "CancelWorkflowInvocationRequest\032?.google" - + ".cloud.dataform.v1beta1.CancelWorkflowIn" - + "vocationResponse\"]\202\323\344\223\002W\"R/v1beta1/{name" - + "=projects/*/locations/*/repositories/*/w" - + "orkflowInvocations/*}:cancel:\001*\022\210\002\n\036Quer" - + "yWorkflowInvocationActions\022D.google.clou" - + "d.dataform.v1beta1.QueryWorkflowInvocati" - + "onActionsRequest\032E.google.cloud.dataform" - + ".v1beta1.QueryWorkflowInvocationActionsR" - + "esponse\"Y\202\323\344\223\002S\022Q/v1beta1/{name=projects" - + "/*/locations/*/repositories/*/workflowIn" - + "vocations/*}:query\022\241\001\n\tGetConfig\022/.googl" - + "e.cloud.dataform.v1beta1.GetConfigReques" - + "t\032%.google.cloud.dataform.v1beta1.Config" - + "\"<\332A\004name\202\323\344\223\002/\022-/v1beta1/{name=projects" - + "/*/locations/*/config}\022\304\001\n\014UpdateConfig\022" - + "2.google.cloud.dataform.v1beta1.UpdateCo" - + "nfigRequest\032%.google.cloud.dataform.v1be" - + "ta1.Config\"Y\332A\022config,update_mask\202\323\344\223\002>2" - + "4/v1beta1/{config.name=projects/*/locati" - + "ons/*/config}:\006config\032t\312A\027dataform.googl" - + "eapis.com\322AWhttps://www.googleapis.com/a" - + "uth/bigquery,https://www.googleapis.com/" - + "auth/cloud-platformB\367\005\n!com.google.cloud" - + ".dataform.v1beta1B\rDataformProtoP\001Z=clou" - + "d.google.com/go/dataform/apiv1beta1/data" - + "formpb;dataformpb\252\002\035Google.Cloud.Datafor" - + "m.V1Beta1\312\002\035Google\\Cloud\\Dataform\\V1beta" - + "1\352\002 Google::Cloud::Dataform::V1beta1\352Ad\n" - + "*secretmanager.googleapis.com/SecretVers" - + "ion\0226projects/{project}/secrets/{secret}" - + "/versions/{version}\352Ax\n!cloudkms.googlea" - + "pis.com/CryptoKey\022Sprojects/{project}/lo" - + "cations/{location}/keyRings/{key_ring}/c" - + "ryptoKeys/{crypto_key}\352A\246\001\n(cloudkms.goo" - + "gleapis.com/CryptoKeyVersion\022zprojects/{" - + "project}/locations/{location}/keyRings/{" - + "key_ring}/cryptoKeys/{crypto_key}/crypto" - + "KeyVersions/{crypto_key_version}\352A\221\001\n1ai" - + "platform.googleapis.com/NotebookRuntimeT" - + "emplate\022\\projects/{project}/locations/{l" - + "ocation}/notebookRuntimeTemplates/{noteb" - + "ook_runtime_template}b\006proto3" + + "flowConfigs/*}:\017workflow_config\022\302\001\n\024Dele" + + "teWorkflowConfig\022:.google.cloud.dataform" + + ".v1beta1.DeleteWorkflowConfigRequest\032\026.g" + + "oogle.protobuf.Empty\"V\332A\004name\202\323\344\223\002I*G/v1" + + "beta1/{name=projects/*/locations/*/repos" + + "itories/*/workflowConfigs/*}\022\366\001\n\027ListWor" + + "kflowInvocations\022=.google.cloud.dataform" + + ".v1beta1.ListWorkflowInvocationsRequest\032" + + ">.google.cloud.dataform.v1beta1.ListWork" + + "flowInvocationsResponse\"\\\332A\006parent\202\323\344\223\002M" + + "\022K/v1beta1/{parent=projects/*/locations/" + + "*/repositories/*}/workflowInvocations\022\343\001" + + "\n\025GetWorkflowInvocation\022;.google.cloud.d" + + "ataform.v1beta1.GetWorkflowInvocationReq" + + "uest\0321.google.cloud.dataform.v1beta1.Wor" + + "kflowInvocation\"Z\332A\004name\202\323\344\223\002M\022K/v1beta1" + + "/{name=projects/*/locations/*/repositori" + + "es/*/workflowInvocations/*}\022\225\002\n\030CreateWo" + + "rkflowInvocation\022>.google.cloud.dataform" + + ".v1beta1.CreateWorkflowInvocationRequest" + + "\0321.google.cloud.dataform.v1beta1.Workflo" + + "wInvocation\"\205\001\332A\032parent,workflow_invocat" + + "ion\202\323\344\223\002b\"K/v1beta1/{parent=projects/*/l" + + "ocations/*/repositories/*}/workflowInvoc" + + "ations:\023workflow_invocation\022\316\001\n\030DeleteWo" + + "rkflowInvocation\022>.google.cloud.dataform" + + ".v1beta1.DeleteWorkflowInvocationRequest" + + "\032\026.google.protobuf.Empty\"Z\332A\004name\202\323\344\223\002M*" + + "K/v1beta1/{name=projects/*/locations/*/r" + + "epositories/*/workflowInvocations/*}\022\372\001\n" + + "\030CancelWorkflowInvocation\022>.google.cloud" + + ".dataform.v1beta1.CancelWorkflowInvocati" + + "onRequest\032?.google.cloud.dataform.v1beta" + + "1.CancelWorkflowInvocationResponse\"]\202\323\344\223" + + "\002W\"R/v1beta1/{name=projects/*/locations/" + + "*/repositories/*/workflowInvocations/*}:" + + "cancel:\001*\022\210\002\n\036QueryWorkflowInvocationAct" + + "ions\022D.google.cloud.dataform.v1beta1.Que" + + "ryWorkflowInvocationActionsRequest\032E.goo" + + "gle.cloud.dataform.v1beta1.QueryWorkflow" + + "InvocationActionsResponse\"Y\202\323\344\223\002S\022Q/v1be" + + "ta1/{name=projects/*/locations/*/reposit" + + "ories/*/workflowInvocations/*}:query\022\241\001\n" + + "\tGetConfig\022/.google.cloud.dataform.v1bet" + + "a1.GetConfigRequest\032%.google.cloud.dataf" + + "orm.v1beta1.Config\"<\332A\004name\202\323\344\223\002/\022-/v1be" + + "ta1/{name=projects/*/locations/*/config}" + + "\022\304\001\n\014UpdateConfig\0222.google.cloud.datafor" + + "m.v1beta1.UpdateConfigRequest\032%.google.c" + + "loud.dataform.v1beta1.Config\"Y\332A\022config," + + "update_mask\202\323\344\223\002>24/v1beta1/{config.name" + + "=projects/*/locations/*/config}:\006config\022" + + "\213\003\n\014GetIamPolicy\022\".google.iam.v1.GetIamP" + + "olicyRequest\032\025.google.iam.v1.Policy\"\277\002\332A" + + "\010resource\202\323\344\223\002\255\002\022F/v1beta1/{resource=pro" + + "jects/*/locations/*/repositories/*}:getI" + + "amPolicyZU\022S/v1beta1/{resource=projects/" + + "*/locations/*/repositories/*/workspaces/" + + "*}:getIamPolicyZC\022A/v1beta1/{resource=pr" + + "ojects/*/locations/*/folders/*}:getIamPo" + + "licyZG\022E/v1beta1/{resource=projects/*/lo" + + "cations/*/teamFolders/*}:getIamPolicy\022\214\003" + + "\n\014SetIamPolicy\022\".google.iam.v1.SetIamPol" + + "icyRequest\032\025.google.iam.v1.Policy\"\300\002\202\323\344\223" + + "\002\271\002\"F/v1beta1/{resource=projects/*/locat" + + "ions/*/repositories/*}:setIamPolicy:\001*ZX" + + "\"S/v1beta1/{resource=projects/*/location" + + "s/*/repositories/*/workspaces/*}:setIamP" + + "olicy:\001*ZF\"A/v1beta1/{resource=projects/" + + "*/locations/*/folders/*}:setIamPolicy:\001*" + + "ZJ\"E/v1beta1/{resource=projects/*/locati" + + "ons/*/teamFolders/*}:setIamPolicy:\001*\022\304\003\n" + + "\022TestIamPermissions\022(.google.iam.v1.Test" + + "IamPermissionsRequest\032).google.iam.v1.Te" + + "stIamPermissionsResponse\"\330\002\202\323\344\223\002\321\002\"L/v1b" + + "eta1/{resource=projects/*/locations/*/re" + + "positories/*}:testIamPermissions:\001*Z^\"Y/" + + "v1beta1/{resource=projects/*/locations/*" + + "/repositories/*/workspaces/*}:testIamPer" + + "missions:\001*ZL\"G/v1beta1/{resource=projec" + + "ts/*/locations/*/folders/*}:testIamPermi" + + "ssions:\001*ZP\"K/v1beta1/{resource=projects" + + "/*/locations/*/teamFolders/*}:testIamPer" + + "missions:\001*\032t\312A\027dataform.googleapis.com\322" + + "AWhttps://www.googleapis.com/auth/bigque" + + "ry,https://www.googleapis.com/auth/cloud", + "-platformB\367\005\n!com.google.cloud.dataform." + + "v1beta1B\rDataformProtoP\001Z=cloud.google.c" + + "om/go/dataform/apiv1beta1/dataformpb;dat" + + "aformpb\252\002\035Google.Cloud.Dataform.V1Beta1\312" + + "\002\035Google\\Cloud\\Dataform\\V1beta1\352\002 Google" + + "::Cloud::Dataform::V1beta1\352Ad\n*secretman" + + "ager.googleapis.com/SecretVersion\0226proje" + + "cts/{project}/secrets/{secret}/versions/" + + "{version}\352Ax\n!cloudkms.googleapis.com/Cr" + + "yptoKey\022Sprojects/{project}/locations/{l" + + "ocation}/keyRings/{key_ring}/cryptoKeys/" + + "{crypto_key}\352A\246\001\n(cloudkms.googleapis.co" + + "m/CryptoKeyVersion\022zprojects/{project}/l" + + "ocations/{location}/keyRings/{key_ring}/" + + "cryptoKeys/{crypto_key}/cryptoKeyVersion" + + "s/{crypto_key_version}\352A\221\001\n1aiplatform.g" + + "oogleapis.com/NotebookRuntimeTemplate\022\\p" + + "rojects/{project}/locations/{location}/n" + + "otebookRuntimeTemplates/{notebook_runtim" + + "e_template}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1731,6 +2167,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -1752,6 +2191,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_dataform_v1beta1_Repository_descriptor, new java.lang.String[] { "Name", + "ContainingFolder", + "TeamFolderName", "CreateTime", "DisplayName", "GitRemoteSettings", @@ -1801,8 +2242,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_dataform_v1beta1_ListRepositoriesRequest_descriptor = + internal_static_google_cloud_dataform_v1beta1_PrivateResourceMetadata_descriptor = getDescriptor().getMessageType(2); + internal_static_google_cloud_dataform_v1beta1_PrivateResourceMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_PrivateResourceMetadata_descriptor, + new java.lang.String[] { + "UserScoped", + }); + internal_static_google_cloud_dataform_v1beta1_ListRepositoriesRequest_descriptor = + getDescriptor().getMessageType(3); internal_static_google_cloud_dataform_v1beta1_ListRepositoriesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListRepositoriesRequest_descriptor, @@ -1810,15 +2259,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); internal_static_google_cloud_dataform_v1beta1_ListRepositoriesResponse_descriptor = - getDescriptor().getMessageType(3); + getDescriptor().getMessageType(4); internal_static_google_cloud_dataform_v1beta1_ListRepositoriesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListRepositoriesResponse_descriptor, new java.lang.String[] { "Repositories", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_dataform_v1beta1_MoveRepositoryRequest_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_dataform_v1beta1_MoveRepositoryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_MoveRepositoryRequest_descriptor, + new java.lang.String[] { + "Name", "DestinationContainingFolder", + }); internal_static_google_cloud_dataform_v1beta1_GetRepositoryRequest_descriptor = - getDescriptor().getMessageType(4); + getDescriptor().getMessageType(6); internal_static_google_cloud_dataform_v1beta1_GetRepositoryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GetRepositoryRequest_descriptor, @@ -1826,7 +2283,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CreateRepositoryRequest_descriptor = - getDescriptor().getMessageType(5); + getDescriptor().getMessageType(7); internal_static_google_cloud_dataform_v1beta1_CreateRepositoryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CreateRepositoryRequest_descriptor, @@ -1834,7 +2291,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Repository", "RepositoryId", }); internal_static_google_cloud_dataform_v1beta1_UpdateRepositoryRequest_descriptor = - getDescriptor().getMessageType(6); + getDescriptor().getMessageType(8); internal_static_google_cloud_dataform_v1beta1_UpdateRepositoryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_UpdateRepositoryRequest_descriptor, @@ -1842,7 +2299,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "Repository", }); internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryRequest_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(9); internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryRequest_descriptor, @@ -1850,7 +2307,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Force", }); internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(10); internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_descriptor, @@ -1892,7 +2349,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesResponse_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(11); internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesResponse_descriptor, @@ -1900,7 +2357,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CommitSha", }); internal_static_google_cloud_dataform_v1beta1_ReadRepositoryFileRequest_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(12); internal_static_google_cloud_dataform_v1beta1_ReadRepositoryFileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ReadRepositoryFileRequest_descriptor, @@ -1908,7 +2365,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "CommitSha", "Path", }); internal_static_google_cloud_dataform_v1beta1_ReadRepositoryFileResponse_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(13); internal_static_google_cloud_dataform_v1beta1_ReadRepositoryFileResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ReadRepositoryFileResponse_descriptor, @@ -1916,7 +2373,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Contents", }); internal_static_google_cloud_dataform_v1beta1_QueryRepositoryDirectoryContentsRequest_descriptor = - getDescriptor().getMessageType(12); + getDescriptor().getMessageType(14); internal_static_google_cloud_dataform_v1beta1_QueryRepositoryDirectoryContentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryRepositoryDirectoryContentsRequest_descriptor, @@ -1924,7 +2381,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "CommitSha", "Path", "PageSize", "PageToken", }); internal_static_google_cloud_dataform_v1beta1_QueryRepositoryDirectoryContentsResponse_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(15); internal_static_google_cloud_dataform_v1beta1_QueryRepositoryDirectoryContentsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryRepositoryDirectoryContentsResponse_descriptor, @@ -1932,7 +2389,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DirectoryEntries", "NextPageToken", }); internal_static_google_cloud_dataform_v1beta1_FetchRepositoryHistoryRequest_descriptor = - getDescriptor().getMessageType(14); + getDescriptor().getMessageType(16); internal_static_google_cloud_dataform_v1beta1_FetchRepositoryHistoryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchRepositoryHistoryRequest_descriptor, @@ -1940,7 +2397,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "PageSize", "PageToken", }); internal_static_google_cloud_dataform_v1beta1_FetchRepositoryHistoryResponse_descriptor = - getDescriptor().getMessageType(15); + getDescriptor().getMessageType(17); internal_static_google_cloud_dataform_v1beta1_FetchRepositoryHistoryResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchRepositoryHistoryResponse_descriptor, @@ -1948,7 +2405,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Commits", "NextPageToken", }); internal_static_google_cloud_dataform_v1beta1_CommitLogEntry_descriptor = - getDescriptor().getMessageType(16); + getDescriptor().getMessageType(18); internal_static_google_cloud_dataform_v1beta1_CommitLogEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CommitLogEntry_descriptor, @@ -1956,7 +2413,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CommitTime", "CommitSha", "Author", "CommitMessage", }); internal_static_google_cloud_dataform_v1beta1_CommitMetadata_descriptor = - getDescriptor().getMessageType(17); + getDescriptor().getMessageType(19); internal_static_google_cloud_dataform_v1beta1_CommitMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CommitMetadata_descriptor, @@ -1964,7 +2421,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Author", "CommitMessage", }); internal_static_google_cloud_dataform_v1beta1_ComputeRepositoryAccessTokenStatusRequest_descriptor = - getDescriptor().getMessageType(18); + getDescriptor().getMessageType(20); internal_static_google_cloud_dataform_v1beta1_ComputeRepositoryAccessTokenStatusRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ComputeRepositoryAccessTokenStatusRequest_descriptor, @@ -1972,7 +2429,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_ComputeRepositoryAccessTokenStatusResponse_descriptor = - getDescriptor().getMessageType(19); + getDescriptor().getMessageType(21); internal_static_google_cloud_dataform_v1beta1_ComputeRepositoryAccessTokenStatusResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ComputeRepositoryAccessTokenStatusResponse_descriptor, @@ -1980,7 +2437,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TokenStatus", }); internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesRequest_descriptor = - getDescriptor().getMessageType(20); + getDescriptor().getMessageType(22); internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesRequest_descriptor, @@ -1988,7 +2445,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesResponse_descriptor = - getDescriptor().getMessageType(21); + getDescriptor().getMessageType(23); internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesResponse_descriptor, @@ -1996,15 +2453,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Branches", }); internal_static_google_cloud_dataform_v1beta1_Workspace_descriptor = - getDescriptor().getMessageType(22); + getDescriptor().getMessageType(24); internal_static_google_cloud_dataform_v1beta1_Workspace_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_Workspace_descriptor, new java.lang.String[] { - "Name", "CreateTime", "DataEncryptionState", "InternalMetadata", + "Name", + "CreateTime", + "DataEncryptionState", + "InternalMetadata", + "DisableMoves", + "PrivateResourceMetadata", }); internal_static_google_cloud_dataform_v1beta1_ListWorkspacesRequest_descriptor = - getDescriptor().getMessageType(23); + getDescriptor().getMessageType(25); internal_static_google_cloud_dataform_v1beta1_ListWorkspacesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListWorkspacesRequest_descriptor, @@ -2012,7 +2474,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); internal_static_google_cloud_dataform_v1beta1_ListWorkspacesResponse_descriptor = - getDescriptor().getMessageType(24); + getDescriptor().getMessageType(26); internal_static_google_cloud_dataform_v1beta1_ListWorkspacesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListWorkspacesResponse_descriptor, @@ -2020,7 +2482,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspaces", "NextPageToken", "Unreachable", }); internal_static_google_cloud_dataform_v1beta1_GetWorkspaceRequest_descriptor = - getDescriptor().getMessageType(25); + getDescriptor().getMessageType(27); internal_static_google_cloud_dataform_v1beta1_GetWorkspaceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GetWorkspaceRequest_descriptor, @@ -2028,7 +2490,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceRequest_descriptor = - getDescriptor().getMessageType(26); + getDescriptor().getMessageType(28); internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceRequest_descriptor, @@ -2036,7 +2498,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Workspace", "WorkspaceId", }); internal_static_google_cloud_dataform_v1beta1_DeleteWorkspaceRequest_descriptor = - getDescriptor().getMessageType(27); + getDescriptor().getMessageType(29); internal_static_google_cloud_dataform_v1beta1_DeleteWorkspaceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteWorkspaceRequest_descriptor, @@ -2044,7 +2506,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CommitAuthor_descriptor = - getDescriptor().getMessageType(28); + getDescriptor().getMessageType(30); internal_static_google_cloud_dataform_v1beta1_CommitAuthor_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CommitAuthor_descriptor, @@ -2052,7 +2514,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "EmailAddress", }); internal_static_google_cloud_dataform_v1beta1_PullGitCommitsRequest_descriptor = - getDescriptor().getMessageType(29); + getDescriptor().getMessageType(31); internal_static_google_cloud_dataform_v1beta1_PullGitCommitsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_PullGitCommitsRequest_descriptor, @@ -2060,13 +2522,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RemoteBranch", "Author", }); internal_static_google_cloud_dataform_v1beta1_PullGitCommitsResponse_descriptor = - getDescriptor().getMessageType(30); + getDescriptor().getMessageType(32); internal_static_google_cloud_dataform_v1beta1_PullGitCommitsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_PullGitCommitsResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_PushGitCommitsRequest_descriptor = - getDescriptor().getMessageType(31); + getDescriptor().getMessageType(33); internal_static_google_cloud_dataform_v1beta1_PushGitCommitsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_PushGitCommitsRequest_descriptor, @@ -2074,13 +2536,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RemoteBranch", }); internal_static_google_cloud_dataform_v1beta1_PushGitCommitsResponse_descriptor = - getDescriptor().getMessageType(32); + getDescriptor().getMessageType(34); internal_static_google_cloud_dataform_v1beta1_PushGitCommitsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_PushGitCommitsResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesRequest_descriptor = - getDescriptor().getMessageType(33); + getDescriptor().getMessageType(35); internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesRequest_descriptor, @@ -2088,7 +2550,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_descriptor = - getDescriptor().getMessageType(34); + getDescriptor().getMessageType(36); internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_descriptor, @@ -2105,7 +2567,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Path", "State", }); internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindRequest_descriptor = - getDescriptor().getMessageType(35); + getDescriptor().getMessageType(37); internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindRequest_descriptor, @@ -2113,7 +2575,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RemoteBranch", }); internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindResponse_descriptor = - getDescriptor().getMessageType(36); + getDescriptor().getMessageType(38); internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindResponse_descriptor, @@ -2121,7 +2583,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CommitsAhead", "CommitsBehind", }); internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesRequest_descriptor = - getDescriptor().getMessageType(37); + getDescriptor().getMessageType(39); internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesRequest_descriptor, @@ -2129,13 +2591,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Author", "CommitMessage", "Paths", }); internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesResponse_descriptor = - getDescriptor().getMessageType(38); + getDescriptor().getMessageType(40); internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesRequest_descriptor = - getDescriptor().getMessageType(39); + getDescriptor().getMessageType(41); internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesRequest_descriptor, @@ -2143,13 +2605,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Paths", "Clean", }); internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesResponse_descriptor = - getDescriptor().getMessageType(40); + getDescriptor().getMessageType(42); internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_FetchFileDiffRequest_descriptor = - getDescriptor().getMessageType(41); + getDescriptor().getMessageType(43); internal_static_google_cloud_dataform_v1beta1_FetchFileDiffRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchFileDiffRequest_descriptor, @@ -2157,7 +2619,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", }); internal_static_google_cloud_dataform_v1beta1_FetchFileDiffResponse_descriptor = - getDescriptor().getMessageType(42); + getDescriptor().getMessageType(44); internal_static_google_cloud_dataform_v1beta1_FetchFileDiffResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchFileDiffResponse_descriptor, @@ -2165,7 +2627,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FormattedDiff", }); internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsRequest_descriptor = - getDescriptor().getMessageType(43); + getDescriptor().getMessageType(45); internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsRequest_descriptor, @@ -2173,7 +2635,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", "PageSize", "PageToken", }); internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_descriptor = - getDescriptor().getMessageType(44); + getDescriptor().getMessageType(46); internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_descriptor, @@ -2181,7 +2643,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DirectoryEntries", "NextPageToken", }); internal_static_google_cloud_dataform_v1beta1_DirectoryEntry_descriptor = - getDescriptor().getMessageType(45); + getDescriptor().getMessageType(47); internal_static_google_cloud_dataform_v1beta1_DirectoryEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DirectoryEntry_descriptor, @@ -2189,7 +2651,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "File", "Directory", "Entry", }); internal_static_google_cloud_dataform_v1beta1_SearchFilesRequest_descriptor = - getDescriptor().getMessageType(46); + getDescriptor().getMessageType(48); internal_static_google_cloud_dataform_v1beta1_SearchFilesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_SearchFilesRequest_descriptor, @@ -2197,7 +2659,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "PageSize", "PageToken", "Filter", }); internal_static_google_cloud_dataform_v1beta1_SearchFilesResponse_descriptor = - getDescriptor().getMessageType(47); + getDescriptor().getMessageType(49); internal_static_google_cloud_dataform_v1beta1_SearchFilesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_SearchFilesResponse_descriptor, @@ -2205,7 +2667,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SearchResults", "NextPageToken", }); internal_static_google_cloud_dataform_v1beta1_SearchResult_descriptor = - getDescriptor().getMessageType(48); + getDescriptor().getMessageType(50); internal_static_google_cloud_dataform_v1beta1_SearchResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_SearchResult_descriptor, @@ -2213,7 +2675,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "File", "Directory", "Entry", }); internal_static_google_cloud_dataform_v1beta1_FileSearchResult_descriptor = - getDescriptor().getMessageType(49); + getDescriptor().getMessageType(51); internal_static_google_cloud_dataform_v1beta1_FileSearchResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FileSearchResult_descriptor, @@ -2221,7 +2683,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Path", }); internal_static_google_cloud_dataform_v1beta1_DirectorySearchResult_descriptor = - getDescriptor().getMessageType(50); + getDescriptor().getMessageType(52); internal_static_google_cloud_dataform_v1beta1_DirectorySearchResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DirectorySearchResult_descriptor, @@ -2229,7 +2691,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Path", }); internal_static_google_cloud_dataform_v1beta1_MakeDirectoryRequest_descriptor = - getDescriptor().getMessageType(51); + getDescriptor().getMessageType(53); internal_static_google_cloud_dataform_v1beta1_MakeDirectoryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MakeDirectoryRequest_descriptor, @@ -2237,13 +2699,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", }); internal_static_google_cloud_dataform_v1beta1_MakeDirectoryResponse_descriptor = - getDescriptor().getMessageType(52); + getDescriptor().getMessageType(54); internal_static_google_cloud_dataform_v1beta1_MakeDirectoryResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MakeDirectoryResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryRequest_descriptor = - getDescriptor().getMessageType(53); + getDescriptor().getMessageType(55); internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryRequest_descriptor, @@ -2251,13 +2713,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", }); internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryResponse_descriptor = - getDescriptor().getMessageType(54); + getDescriptor().getMessageType(56); internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_MoveDirectoryRequest_descriptor = - getDescriptor().getMessageType(55); + getDescriptor().getMessageType(57); internal_static_google_cloud_dataform_v1beta1_MoveDirectoryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MoveDirectoryRequest_descriptor, @@ -2265,13 +2727,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", "NewPath", }); internal_static_google_cloud_dataform_v1beta1_MoveDirectoryResponse_descriptor = - getDescriptor().getMessageType(56); + getDescriptor().getMessageType(58); internal_static_google_cloud_dataform_v1beta1_MoveDirectoryResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MoveDirectoryResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_ReadFileRequest_descriptor = - getDescriptor().getMessageType(57); + getDescriptor().getMessageType(59); internal_static_google_cloud_dataform_v1beta1_ReadFileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ReadFileRequest_descriptor, @@ -2279,7 +2741,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", "Revision", }); internal_static_google_cloud_dataform_v1beta1_ReadFileResponse_descriptor = - getDescriptor().getMessageType(58); + getDescriptor().getMessageType(60); internal_static_google_cloud_dataform_v1beta1_ReadFileResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ReadFileResponse_descriptor, @@ -2287,7 +2749,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FileContents", }); internal_static_google_cloud_dataform_v1beta1_RemoveFileRequest_descriptor = - getDescriptor().getMessageType(59); + getDescriptor().getMessageType(61); internal_static_google_cloud_dataform_v1beta1_RemoveFileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_RemoveFileRequest_descriptor, @@ -2295,13 +2757,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", }); internal_static_google_cloud_dataform_v1beta1_RemoveFileResponse_descriptor = - getDescriptor().getMessageType(60); + getDescriptor().getMessageType(62); internal_static_google_cloud_dataform_v1beta1_RemoveFileResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_RemoveFileResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_MoveFileRequest_descriptor = - getDescriptor().getMessageType(61); + getDescriptor().getMessageType(63); internal_static_google_cloud_dataform_v1beta1_MoveFileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MoveFileRequest_descriptor, @@ -2309,13 +2771,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", "NewPath", }); internal_static_google_cloud_dataform_v1beta1_MoveFileResponse_descriptor = - getDescriptor().getMessageType(62); + getDescriptor().getMessageType(64); internal_static_google_cloud_dataform_v1beta1_MoveFileResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MoveFileResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_WriteFileRequest_descriptor = - getDescriptor().getMessageType(63); + getDescriptor().getMessageType(65); internal_static_google_cloud_dataform_v1beta1_WriteFileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_WriteFileRequest_descriptor, @@ -2323,13 +2785,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", "Contents", }); internal_static_google_cloud_dataform_v1beta1_WriteFileResponse_descriptor = - getDescriptor().getMessageType(64); + getDescriptor().getMessageType(66); internal_static_google_cloud_dataform_v1beta1_WriteFileResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_WriteFileResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesRequest_descriptor = - getDescriptor().getMessageType(65); + getDescriptor().getMessageType(67); internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesRequest_descriptor, @@ -2337,13 +2799,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", }); internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesResponse_descriptor = - getDescriptor().getMessageType(66); + getDescriptor().getMessageType(68); internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_ReleaseConfig_descriptor = - getDescriptor().getMessageType(67); + getDescriptor().getMessageType(69); internal_static_google_cloud_dataform_v1beta1_ReleaseConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ReleaseConfig_descriptor, @@ -2367,7 +2829,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CompilationResult", "ErrorStatus", "ReleaseTime", "Result", }); internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsRequest_descriptor = - getDescriptor().getMessageType(68); + getDescriptor().getMessageType(70); internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsRequest_descriptor, @@ -2375,7 +2837,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsResponse_descriptor = - getDescriptor().getMessageType(69); + getDescriptor().getMessageType(71); internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsResponse_descriptor, @@ -2383,7 +2845,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReleaseConfigs", "NextPageToken", "Unreachable", }); internal_static_google_cloud_dataform_v1beta1_GetReleaseConfigRequest_descriptor = - getDescriptor().getMessageType(70); + getDescriptor().getMessageType(72); internal_static_google_cloud_dataform_v1beta1_GetReleaseConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GetReleaseConfigRequest_descriptor, @@ -2391,7 +2853,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CreateReleaseConfigRequest_descriptor = - getDescriptor().getMessageType(71); + getDescriptor().getMessageType(73); internal_static_google_cloud_dataform_v1beta1_CreateReleaseConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CreateReleaseConfigRequest_descriptor, @@ -2399,7 +2861,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ReleaseConfig", "ReleaseConfigId", }); internal_static_google_cloud_dataform_v1beta1_UpdateReleaseConfigRequest_descriptor = - getDescriptor().getMessageType(72); + getDescriptor().getMessageType(74); internal_static_google_cloud_dataform_v1beta1_UpdateReleaseConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_UpdateReleaseConfigRequest_descriptor, @@ -2407,7 +2869,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "ReleaseConfig", }); internal_static_google_cloud_dataform_v1beta1_DeleteReleaseConfigRequest_descriptor = - getDescriptor().getMessageType(73); + getDescriptor().getMessageType(75); internal_static_google_cloud_dataform_v1beta1_DeleteReleaseConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteReleaseConfigRequest_descriptor, @@ -2415,7 +2877,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CompilationResult_descriptor = - getDescriptor().getMessageType(74); + getDescriptor().getMessageType(76); internal_static_google_cloud_dataform_v1beta1_CompilationResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CompilationResult_descriptor, @@ -2431,6 +2893,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataEncryptionState", "CreateTime", "InternalMetadata", + "PrivateResourceMetadata", "Source", }); internal_static_google_cloud_dataform_v1beta1_CompilationResult_CompilationError_descriptor = @@ -2442,7 +2905,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Message", "Stack", "Path", "ActionTarget", }); internal_static_google_cloud_dataform_v1beta1_CodeCompilationConfig_descriptor = - getDescriptor().getMessageType(75); + getDescriptor().getMessageType(77); internal_static_google_cloud_dataform_v1beta1_CodeCompilationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CodeCompilationConfig_descriptor, @@ -2468,7 +2931,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataform_v1beta1_NotebookRuntimeOptions_descriptor = - getDescriptor().getMessageType(76); + getDescriptor().getMessageType(78); internal_static_google_cloud_dataform_v1beta1_NotebookRuntimeOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_NotebookRuntimeOptions_descriptor, @@ -2476,7 +2939,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GcsOutputBucket", "AiPlatformNotebookRuntimeTemplate", "ExecutionSink", }); internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsRequest_descriptor = - getDescriptor().getMessageType(77); + getDescriptor().getMessageType(79); internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsRequest_descriptor, @@ -2484,7 +2947,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsResponse_descriptor = - getDescriptor().getMessageType(78); + getDescriptor().getMessageType(80); internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsResponse_descriptor, @@ -2492,7 +2955,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CompilationResults", "NextPageToken", "Unreachable", }); internal_static_google_cloud_dataform_v1beta1_GetCompilationResultRequest_descriptor = - getDescriptor().getMessageType(79); + getDescriptor().getMessageType(81); internal_static_google_cloud_dataform_v1beta1_GetCompilationResultRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GetCompilationResultRequest_descriptor, @@ -2500,7 +2963,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CreateCompilationResultRequest_descriptor = - getDescriptor().getMessageType(80); + getDescriptor().getMessageType(82); internal_static_google_cloud_dataform_v1beta1_CreateCompilationResultRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CreateCompilationResultRequest_descriptor, @@ -2508,7 +2971,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "CompilationResult", }); internal_static_google_cloud_dataform_v1beta1_Target_descriptor = - getDescriptor().getMessageType(81); + getDescriptor().getMessageType(83); internal_static_google_cloud_dataform_v1beta1_Target_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_Target_descriptor, @@ -2516,7 +2979,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Database", "Schema", "Name", }); internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_descriptor = - getDescriptor().getMessageType(82); + getDescriptor().getMessageType(84); internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_descriptor, @@ -2542,7 +3005,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_descriptor = - getDescriptor().getMessageType(83); + getDescriptor().getMessageType(85); internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_descriptor, @@ -2580,6 +3043,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PartitionExpirationDays", "RequirePartitionFilter", "AdditionalOptions", + "Connection", + "TableFormat", + "FileFormat", + "StorageUri", }); internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_IncrementalTableConfig_descriptor = internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_Relation_descriptor @@ -2698,7 +3165,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Column", }); internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsRequest_descriptor = - getDescriptor().getMessageType(84); + getDescriptor().getMessageType(86); internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsRequest_descriptor, @@ -2706,7 +3173,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "PageSize", "PageToken", "Filter", }); internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsResponse_descriptor = - getDescriptor().getMessageType(85); + getDescriptor().getMessageType(87); internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsResponse_descriptor, @@ -2714,7 +3181,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CompilationResultActions", "NextPageToken", }); internal_static_google_cloud_dataform_v1beta1_WorkflowConfig_descriptor = - getDescriptor().getMessageType(86); + getDescriptor().getMessageType(88); internal_static_google_cloud_dataform_v1beta1_WorkflowConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_WorkflowConfig_descriptor, @@ -2739,7 +3206,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WorkflowInvocation", "ErrorStatus", "ExecutionTime", "Result", }); internal_static_google_cloud_dataform_v1beta1_InvocationConfig_descriptor = - getDescriptor().getMessageType(87); + getDescriptor().getMessageType(89); internal_static_google_cloud_dataform_v1beta1_InvocationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_InvocationConfig_descriptor, @@ -2750,9 +3217,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TransitiveDependentsIncluded", "FullyRefreshIncrementalTablesEnabled", "ServiceAccount", + "QueryPriority", }); internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsRequest_descriptor = - getDescriptor().getMessageType(88); + getDescriptor().getMessageType(90); internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsRequest_descriptor, @@ -2760,7 +3228,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsResponse_descriptor = - getDescriptor().getMessageType(89); + getDescriptor().getMessageType(91); internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsResponse_descriptor, @@ -2768,7 +3236,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WorkflowConfigs", "NextPageToken", "Unreachable", }); internal_static_google_cloud_dataform_v1beta1_GetWorkflowConfigRequest_descriptor = - getDescriptor().getMessageType(90); + getDescriptor().getMessageType(92); internal_static_google_cloud_dataform_v1beta1_GetWorkflowConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GetWorkflowConfigRequest_descriptor, @@ -2776,7 +3244,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CreateWorkflowConfigRequest_descriptor = - getDescriptor().getMessageType(91); + getDescriptor().getMessageType(93); internal_static_google_cloud_dataform_v1beta1_CreateWorkflowConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CreateWorkflowConfigRequest_descriptor, @@ -2784,7 +3252,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "WorkflowConfig", "WorkflowConfigId", }); internal_static_google_cloud_dataform_v1beta1_UpdateWorkflowConfigRequest_descriptor = - getDescriptor().getMessageType(92); + getDescriptor().getMessageType(94); internal_static_google_cloud_dataform_v1beta1_UpdateWorkflowConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_UpdateWorkflowConfigRequest_descriptor, @@ -2792,7 +3260,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "WorkflowConfig", }); internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowConfigRequest_descriptor = - getDescriptor().getMessageType(93); + getDescriptor().getMessageType(95); internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowConfigRequest_descriptor, @@ -2800,7 +3268,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_descriptor = - getDescriptor().getMessageType(94); + getDescriptor().getMessageType(96); internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_descriptor, @@ -2814,10 +3282,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ResolvedCompilationResult", "DataEncryptionState", "InternalMetadata", + "PrivateResourceMetadata", "CompilationSource", }); internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsRequest_descriptor = - getDescriptor().getMessageType(95); + getDescriptor().getMessageType(97); internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsRequest_descriptor, @@ -2825,7 +3294,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsResponse_descriptor = - getDescriptor().getMessageType(96); + getDescriptor().getMessageType(98); internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsResponse_descriptor, @@ -2833,7 +3302,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WorkflowInvocations", "NextPageToken", "Unreachable", }); internal_static_google_cloud_dataform_v1beta1_GetWorkflowInvocationRequest_descriptor = - getDescriptor().getMessageType(97); + getDescriptor().getMessageType(99); internal_static_google_cloud_dataform_v1beta1_GetWorkflowInvocationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GetWorkflowInvocationRequest_descriptor, @@ -2841,7 +3310,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CreateWorkflowInvocationRequest_descriptor = - getDescriptor().getMessageType(98); + getDescriptor().getMessageType(100); internal_static_google_cloud_dataform_v1beta1_CreateWorkflowInvocationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CreateWorkflowInvocationRequest_descriptor, @@ -2849,7 +3318,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "WorkflowInvocation", }); internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowInvocationRequest_descriptor = - getDescriptor().getMessageType(99); + getDescriptor().getMessageType(101); internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowInvocationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowInvocationRequest_descriptor, @@ -2857,7 +3326,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationRequest_descriptor = - getDescriptor().getMessageType(100); + getDescriptor().getMessageType(102); internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationRequest_descriptor, @@ -2865,13 +3334,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationResponse_descriptor = - getDescriptor().getMessageType(101); + getDescriptor().getMessageType(103); internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_descriptor = - getDescriptor().getMessageType(102); + getDescriptor().getMessageType(104); internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_descriptor, @@ -2958,7 +3427,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Column", }); internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsRequest_descriptor = - getDescriptor().getMessageType(103); + getDescriptor().getMessageType(105); internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsRequest_descriptor, @@ -2966,7 +3435,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "PageSize", "PageToken", }); internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsResponse_descriptor = - getDescriptor().getMessageType(104); + getDescriptor().getMessageType(106); internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsResponse_descriptor, @@ -2974,15 +3443,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WorkflowInvocationActions", "NextPageToken", }); internal_static_google_cloud_dataform_v1beta1_Config_descriptor = - getDescriptor().getMessageType(105); + getDescriptor().getMessageType(107); internal_static_google_cloud_dataform_v1beta1_Config_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_Config_descriptor, new java.lang.String[] { - "Name", "DefaultKmsKeyName", + "Name", "DefaultKmsKeyName", "InternalMetadata", }); internal_static_google_cloud_dataform_v1beta1_GetConfigRequest_descriptor = - getDescriptor().getMessageType(106); + getDescriptor().getMessageType(108); internal_static_google_cloud_dataform_v1beta1_GetConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GetConfigRequest_descriptor, @@ -2990,18 +3459,237 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_UpdateConfigRequest_descriptor = - getDescriptor().getMessageType(107); + getDescriptor().getMessageType(109); internal_static_google_cloud_dataform_v1beta1_UpdateConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_UpdateConfigRequest_descriptor, new java.lang.String[] { "Config", "UpdateMask", }); + internal_static_google_cloud_dataform_v1beta1_Folder_descriptor = + getDescriptor().getMessageType(110); + internal_static_google_cloud_dataform_v1beta1_Folder_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_Folder_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "ContainingFolder", + "TeamFolderName", + "CreateTime", + "UpdateTime", + "InternalMetadata", + "CreatorIamPrincipal", + }); + internal_static_google_cloud_dataform_v1beta1_CreateFolderRequest_descriptor = + getDescriptor().getMessageType(111); + internal_static_google_cloud_dataform_v1beta1_CreateFolderRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_CreateFolderRequest_descriptor, + new java.lang.String[] { + "Parent", "Folder", "FolderId", + }); + internal_static_google_cloud_dataform_v1beta1_MoveFolderRequest_descriptor = + getDescriptor().getMessageType(112); + internal_static_google_cloud_dataform_v1beta1_MoveFolderRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_MoveFolderRequest_descriptor, + new java.lang.String[] { + "Name", "DestinationContainingFolder", + }); + internal_static_google_cloud_dataform_v1beta1_GetFolderRequest_descriptor = + getDescriptor().getMessageType(113); + internal_static_google_cloud_dataform_v1beta1_GetFolderRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_GetFolderRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_dataform_v1beta1_UpdateFolderRequest_descriptor = + getDescriptor().getMessageType(114); + internal_static_google_cloud_dataform_v1beta1_UpdateFolderRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_UpdateFolderRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "Folder", + }); + internal_static_google_cloud_dataform_v1beta1_DeleteFolderRequest_descriptor = + getDescriptor().getMessageType(115); + internal_static_google_cloud_dataform_v1beta1_DeleteFolderRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_DeleteFolderRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsRequest_descriptor = + getDescriptor().getMessageType(116); + internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsRequest_descriptor, + new java.lang.String[] { + "Folder", "PageSize", "PageToken", "OrderBy", "Filter", + }); + internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsResponse_descriptor = + getDescriptor().getMessageType(117); + internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsResponse_descriptor, + new java.lang.String[] { + "Entries", "NextPageToken", + }); + internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsResponse_FolderContentsEntry_descriptor = + internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsResponse_descriptor + .getNestedType(0); + internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsResponse_FolderContentsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsResponse_FolderContentsEntry_descriptor, + new java.lang.String[] { + "Folder", "Repository", "Entry", + }); + internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsRequest_descriptor = + getDescriptor().getMessageType(118); + internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsRequest_descriptor, + new java.lang.String[] { + "Location", "PageSize", "PageToken", "OrderBy", "Filter", + }); + internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsResponse_descriptor = + getDescriptor().getMessageType(119); + internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsResponse_descriptor, + new java.lang.String[] { + "Entries", "NextPageToken", + }); + internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsResponse_RootContentsEntry_descriptor = + internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsResponse_descriptor + .getNestedType(0); + internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsResponse_RootContentsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsResponse_RootContentsEntry_descriptor, + new java.lang.String[] { + "Folder", "Repository", "Entry", + }); + internal_static_google_cloud_dataform_v1beta1_TeamFolder_descriptor = + getDescriptor().getMessageType(120); + internal_static_google_cloud_dataform_v1beta1_TeamFolder_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_TeamFolder_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "CreateTime", + "UpdateTime", + "InternalMetadata", + "CreatorIamPrincipal", + }); + internal_static_google_cloud_dataform_v1beta1_CreateTeamFolderRequest_descriptor = + getDescriptor().getMessageType(121); + internal_static_google_cloud_dataform_v1beta1_CreateTeamFolderRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_CreateTeamFolderRequest_descriptor, + new java.lang.String[] { + "Parent", "TeamFolder", "TeamFolderId", + }); + internal_static_google_cloud_dataform_v1beta1_GetTeamFolderRequest_descriptor = + getDescriptor().getMessageType(122); + internal_static_google_cloud_dataform_v1beta1_GetTeamFolderRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_GetTeamFolderRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_dataform_v1beta1_UpdateTeamFolderRequest_descriptor = + getDescriptor().getMessageType(123); + internal_static_google_cloud_dataform_v1beta1_UpdateTeamFolderRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_UpdateTeamFolderRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "TeamFolder", + }); + internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderRequest_descriptor = + getDescriptor().getMessageType(124); + internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsRequest_descriptor = + getDescriptor().getMessageType(125); + internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsRequest_descriptor, + new java.lang.String[] { + "TeamFolder", "PageSize", "PageToken", "OrderBy", "Filter", + }); + internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsResponse_descriptor = + getDescriptor().getMessageType(126); + internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsResponse_descriptor, + new java.lang.String[] { + "Entries", "NextPageToken", + }); + internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsResponse_TeamFolderContentsEntry_descriptor = + internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsResponse_descriptor + .getNestedType(0); + internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsResponse_TeamFolderContentsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsResponse_TeamFolderContentsEntry_descriptor, + new java.lang.String[] { + "Folder", "Repository", "Entry", + }); + internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersRequest_descriptor = + getDescriptor().getMessageType(127); + internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersRequest_descriptor, + new java.lang.String[] { + "Location", "PageSize", "PageToken", "OrderBy", "Filter", + }); + internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersResponse_descriptor = + getDescriptor().getMessageType(128); + internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersResponse_descriptor, + new java.lang.String[] { + "Results", "NextPageToken", + }); + internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersResponse_TeamFolderSearchResult_descriptor = + internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersResponse_descriptor + .getNestedType(0); + internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersResponse_TeamFolderSearchResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersResponse_TeamFolderSearchResult_descriptor, + new java.lang.String[] { + "TeamFolder", "Entry", + }); + internal_static_google_cloud_dataform_v1beta1_MoveFolderMetadata_descriptor = + getDescriptor().getMessageType(129); + internal_static_google_cloud_dataform_v1beta1_MoveFolderMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_MoveFolderMetadata_descriptor, + new java.lang.String[] { + "CreateTime", "EndTime", "Target", "State", "PercentComplete", + }); + internal_static_google_cloud_dataform_v1beta1_MoveRepositoryMetadata_descriptor = + getDescriptor().getMessageType(130); + internal_static_google_cloud_dataform_v1beta1_MoveRepositoryMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_MoveRepositoryMetadata_descriptor, + new java.lang.String[] { + "CreateTime", "EndTime", "Target", "State", "PercentComplete", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.iam.v1.IamPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); @@ -3017,6 +3705,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resource); registry.add(com.google.api.ResourceProto.resourceDefinition); registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteFolderRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteFolderRequest.java new file mode 100644 index 000000000000..8a2092f531a4 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteFolderRequest.java @@ -0,0 +1,611 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
          + * `DeleteFolder` request message.
          + * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.DeleteFolderRequest} + */ +@com.google.protobuf.Generated +public final class DeleteFolderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.DeleteFolderRequest) + DeleteFolderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteFolderRequest"); + } + + // Use DeleteFolderRequest.newBuilder() to construct. + private DeleteFolderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteFolderRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.DeleteFolderRequest.class, + com.google.cloud.dataform.v1beta1.DeleteFolderRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
          +   * Required. The Folder's name.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The Folder's name.
          +   * 
          + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.DeleteFolderRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.DeleteFolderRequest other = + (com.google.cloud.dataform.v1beta1.DeleteFolderRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.DeleteFolderRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * `DeleteFolder` request message.
          +   * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.DeleteFolderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.DeleteFolderRequest) + com.google.cloud.dataform.v1beta1.DeleteFolderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.DeleteFolderRequest.class, + com.google.cloud.dataform.v1beta1.DeleteFolderRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.DeleteFolderRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteFolderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteFolderRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.DeleteFolderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteFolderRequest build() { + com.google.cloud.dataform.v1beta1.DeleteFolderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteFolderRequest buildPartial() { + com.google.cloud.dataform.v1beta1.DeleteFolderRequest result = + new com.google.cloud.dataform.v1beta1.DeleteFolderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1beta1.DeleteFolderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.DeleteFolderRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.DeleteFolderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.DeleteFolderRequest other) { + if (other == com.google.cloud.dataform.v1beta1.DeleteFolderRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
          +     * Required. The Folder's name.
          +     * 
          + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The Folder's name.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The Folder's name.
          +     * 
          + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The Folder's name.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The Folder's name.
          +     * 
          + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.DeleteFolderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.DeleteFolderRequest) + private static final com.google.cloud.dataform.v1beta1.DeleteFolderRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.DeleteFolderRequest(); + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteFolderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteFolderRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteFolderRequestOrBuilder.java new file mode 100644 index 000000000000..4526d20103f2 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteFolderRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +@com.google.protobuf.Generated +public interface DeleteFolderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.DeleteFolderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The Folder's name.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
          +   * Required. The Folder's name.
          +   * 
          + * + * + * 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-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryRequest.java index e4f8e1eb2bf3..a23b5e7f6425 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryRequest.java @@ -134,9 +134,13 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
          -   * Optional. If set to true, any child resources of this repository will also
          -   * be deleted. (Otherwise, the request will only succeed if the repository has
          -   * no child resources.)
          +   * Optional. If set to true, child resources of this repository (compilation
          +   * results and workflow invocations) will also be deleted. Otherwise, the
          +   * request will only succeed if the repository has no child resources.
          +   *
          +   * **Note:** *This flag doesn't support deletion of workspaces, release
          +   * configs or workflow configs. If any of such resources exists in the
          +   * repository, the request will fail.*.
              * 
          * * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -608,9 +612,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
          -     * Optional. If set to true, any child resources of this repository will also
          -     * be deleted. (Otherwise, the request will only succeed if the repository has
          -     * no child resources.)
          +     * Optional. If set to true, child resources of this repository (compilation
          +     * results and workflow invocations) will also be deleted. Otherwise, the
          +     * request will only succeed if the repository has no child resources.
          +     *
          +     * **Note:** *This flag doesn't support deletion of workspaces, release
          +     * configs or workflow configs. If any of such resources exists in the
          +     * repository, the request will fail.*.
                * 
          * * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -626,9 +634,13 @@ public boolean getForce() { * * *
          -     * Optional. If set to true, any child resources of this repository will also
          -     * be deleted. (Otherwise, the request will only succeed if the repository has
          -     * no child resources.)
          +     * Optional. If set to true, child resources of this repository (compilation
          +     * results and workflow invocations) will also be deleted. Otherwise, the
          +     * request will only succeed if the repository has no child resources.
          +     *
          +     * **Note:** *This flag doesn't support deletion of workspaces, release
          +     * configs or workflow configs. If any of such resources exists in the
          +     * repository, the request will fail.*.
                * 
          * * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -648,9 +660,13 @@ public Builder setForce(boolean value) { * * *
          -     * Optional. If set to true, any child resources of this repository will also
          -     * be deleted. (Otherwise, the request will only succeed if the repository has
          -     * no child resources.)
          +     * Optional. If set to true, child resources of this repository (compilation
          +     * results and workflow invocations) will also be deleted. Otherwise, the
          +     * request will only succeed if the repository has no child resources.
          +     *
          +     * **Note:** *This flag doesn't support deletion of workspaces, release
          +     * configs or workflow configs. If any of such resources exists in the
          +     * repository, the request will fail.*.
                * 
          * * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryRequestOrBuilder.java index edcd6cae8bdc..26de74fd0fe4 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryRequestOrBuilder.java @@ -60,9 +60,13 @@ public interface DeleteRepositoryRequestOrBuilder * * *
          -   * Optional. If set to true, any child resources of this repository will also
          -   * be deleted. (Otherwise, the request will only succeed if the repository has
          -   * no child resources.)
          +   * Optional. If set to true, child resources of this repository (compilation
          +   * results and workflow invocations) will also be deleted. Otherwise, the
          +   * request will only succeed if the repository has no child resources.
          +   *
          +   * **Note:** *This flag doesn't support deletion of workspaces, release
          +   * configs or workflow configs. If any of such resources exists in the
          +   * repository, the request will fail.*.
              * 
          * * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteTeamFolderRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteTeamFolderRequest.java new file mode 100644 index 000000000000..1ec4a7dc5152 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteTeamFolderRequest.java @@ -0,0 +1,611 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
          + * `DeleteTeamFolder` request message.
          + * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.DeleteTeamFolderRequest} + */ +@com.google.protobuf.Generated +public final class DeleteTeamFolderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.DeleteTeamFolderRequest) + DeleteTeamFolderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteTeamFolderRequest"); + } + + // Use DeleteTeamFolderRequest.newBuilder() to construct. + private DeleteTeamFolderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteTeamFolderRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest.class, + com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
          +   * Required. The TeamFolder's name.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The TeamFolder's name.
          +   * 
          + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest other = + (com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * `DeleteTeamFolder` request message.
          +   * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.DeleteTeamFolderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.DeleteTeamFolderRequest) + com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest.class, + com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest build() { + com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest buildPartial() { + com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest result = + new com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest other) { + if (other == com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
          +     * Required. The TeamFolder's name.
          +     * 
          + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The TeamFolder's name.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The TeamFolder's name.
          +     * 
          + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The TeamFolder's name.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The TeamFolder's name.
          +     * 
          + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.DeleteTeamFolderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.DeleteTeamFolderRequest) + private static final com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest(); + } + + public static com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteTeamFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteTeamFolderRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteTeamFolderRequestOrBuilder.java new file mode 100644 index 000000000000..12fb327b5fd2 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteTeamFolderRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +@com.google.protobuf.Generated +public interface DeleteTeamFolderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.DeleteTeamFolderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The TeamFolder's name.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
          +   * Required. The TeamFolder's name.
          +   * 
          + * + * + * 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-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Folder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Folder.java new file mode 100644 index 000000000000..d1c85db609ff --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Folder.java @@ -0,0 +1,2314 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
          + * Represents a Dataform Folder. This is a resource that is used to organize
          + * Files and other Folders and provide hierarchical access controls.
          + * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.Folder} + */ +@com.google.protobuf.Generated +public final class Folder extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.Folder) + FolderOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Folder"); + } + + // Use Folder.newBuilder() to construct. + private Folder(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Folder() { + name_ = ""; + displayName_ = ""; + containingFolder_ = ""; + teamFolderName_ = ""; + internalMetadata_ = ""; + creatorIamPrincipal_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Folder_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Folder_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.Folder.class, + com.google.cloud.dataform.v1beta1.Folder.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
          +   * Identifier. The Folder's name.
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
          +   * Identifier. The Folder's name.
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
          +   * Required. The Folder's user-friendly name.
          +   * 
          + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The Folder's user-friendly name.
          +   * 
          + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTAINING_FOLDER_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object containingFolder_ = ""; + + /** + * + * + *
          +   * Optional. The containing Folder resource name. This should take
          +   * the format: projects/{project}/locations/{location}/folders/{folder},
          +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just
          +   * projects/{project}/locations/{location} if this is a root Folder. This
          +   * field can only be updated through MoveFolder.
          +   * 
          + * + * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The containingFolder. + */ + @java.lang.Override + public java.lang.String getContainingFolder() { + java.lang.Object ref = containingFolder_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + containingFolder_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. The containing Folder resource name. This should take
          +   * the format: projects/{project}/locations/{location}/folders/{folder},
          +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just
          +   * projects/{project}/locations/{location} if this is a root Folder. This
          +   * field can only be updated through MoveFolder.
          +   * 
          + * + * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for containingFolder. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContainingFolderBytes() { + java.lang.Object ref = containingFolder_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + containingFolder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEAM_FOLDER_NAME_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object teamFolderName_ = ""; + + /** + * + * + *
          +   * Output only. The resource name of the TeamFolder that this Folder is
          +   * associated with. This should take the format:
          +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
          +   * is not set, the Folder is not associated with a TeamFolder and is a
          +   * UserFolder.
          +   * 
          + * + * string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The teamFolderName. + */ + @java.lang.Override + public java.lang.String getTeamFolderName() { + java.lang.Object ref = teamFolderName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamFolderName_ = s; + return s; + } + } + + /** + * + * + *
          +   * Output only. The resource name of the TeamFolder that this Folder is
          +   * associated with. This should take the format:
          +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
          +   * is not set, the Folder is not associated with a TeamFolder and is a
          +   * UserFolder.
          +   * 
          + * + * string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for teamFolderName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTeamFolderNameBytes() { + java.lang.Object ref = teamFolderName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + teamFolderName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
          +   * Output only. The timestamp of when the Folder was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +   * Output only. The timestamp of when the Folder was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
          +   * Output only. The timestamp of when the Folder was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
          +   * Output only. The timestamp of when the Folder was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +   * Output only. The timestamp of when the Folder was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
          +   * Output only. The timestamp of when the Folder was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int INTERNAL_METADATA_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object internalMetadata_ = ""; + + /** + * + * + *
          +   * Output only. All the metadata information that is used internally to serve
          +   * the resource. For example: timestamps, flags, status fields, etc. The
          +   * format of this field is a JSON string.
          +   * 
          + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the internalMetadata field is set. + */ + @java.lang.Override + public boolean hasInternalMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
          +   * Output only. All the metadata information that is used internally to serve
          +   * the resource. For example: timestamps, flags, status fields, etc. The
          +   * format of this field is a JSON string.
          +   * 
          + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The internalMetadata. + */ + @java.lang.Override + public java.lang.String getInternalMetadata() { + java.lang.Object ref = internalMetadata_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + internalMetadata_ = s; + return s; + } + } + + /** + * + * + *
          +   * Output only. All the metadata information that is used internally to serve
          +   * the resource. For example: timestamps, flags, status fields, etc. The
          +   * format of this field is a JSON string.
          +   * 
          + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for internalMetadata. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInternalMetadataBytes() { + java.lang.Object ref = internalMetadata_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + internalMetadata_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATOR_IAM_PRINCIPAL_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object creatorIamPrincipal_ = ""; + + /** + * + * + *
          +   * Output only. The IAM principal identifier of the creator of the Folder.
          +   * 
          + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the creatorIamPrincipal field is set. + */ + @java.lang.Override + public boolean hasCreatorIamPrincipal() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
          +   * Output only. The IAM principal identifier of the creator of the Folder.
          +   * 
          + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The creatorIamPrincipal. + */ + @java.lang.Override + public java.lang.String getCreatorIamPrincipal() { + java.lang.Object ref = creatorIamPrincipal_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + creatorIamPrincipal_ = s; + return s; + } + } + + /** + * + * + *
          +   * Output only. The IAM principal identifier of the creator of the Folder.
          +   * 
          + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for creatorIamPrincipal. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCreatorIamPrincipalBytes() { + java.lang.Object ref = creatorIamPrincipal_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + creatorIamPrincipal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(containingFolder_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, containingFolder_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(teamFolderName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, teamFolderName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, internalMetadata_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, creatorIamPrincipal_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(containingFolder_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, containingFolder_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(teamFolderName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, teamFolderName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, internalMetadata_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, creatorIamPrincipal_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.Folder)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.Folder other = (com.google.cloud.dataform.v1beta1.Folder) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getContainingFolder().equals(other.getContainingFolder())) return false; + if (!getTeamFolderName().equals(other.getTeamFolderName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (hasInternalMetadata() != other.hasInternalMetadata()) return false; + if (hasInternalMetadata()) { + if (!getInternalMetadata().equals(other.getInternalMetadata())) return false; + } + if (hasCreatorIamPrincipal() != other.hasCreatorIamPrincipal()) return false; + if (hasCreatorIamPrincipal()) { + if (!getCreatorIamPrincipal().equals(other.getCreatorIamPrincipal())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + CONTAINING_FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getContainingFolder().hashCode(); + hash = (37 * hash) + TEAM_FOLDER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTeamFolderName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasInternalMetadata()) { + hash = (37 * hash) + INTERNAL_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getInternalMetadata().hashCode(); + } + if (hasCreatorIamPrincipal()) { + hash = (37 * hash) + CREATOR_IAM_PRINCIPAL_FIELD_NUMBER; + hash = (53 * hash) + getCreatorIamPrincipal().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.Folder parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.Folder parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.Folder parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.Folder parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.Folder parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.Folder parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.Folder parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.Folder parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.Folder parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.Folder parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.Folder parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.Folder parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataform.v1beta1.Folder prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Represents a Dataform Folder. This is a resource that is used to organize
          +   * Files and other Folders and provide hierarchical access controls.
          +   * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.Folder} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.Folder) + com.google.cloud.dataform.v1beta1.FolderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Folder_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Folder_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.Folder.class, + com.google.cloud.dataform.v1beta1.Folder.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.Folder.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + containingFolder_ = ""; + teamFolderName_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalMetadata_ = ""; + creatorIamPrincipal_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_Folder_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Folder getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Folder build() { + com.google.cloud.dataform.v1beta1.Folder result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Folder buildPartial() { + com.google.cloud.dataform.v1beta1.Folder result = + new com.google.cloud.dataform.v1beta1.Folder(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1beta1.Folder result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.containingFolder_ = containingFolder_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.teamFolderName_ = teamFolderName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.internalMetadata_ = internalMetadata_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.creatorIamPrincipal_ = creatorIamPrincipal_; + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.Folder) { + return mergeFrom((com.google.cloud.dataform.v1beta1.Folder) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.Folder other) { + if (other == com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getContainingFolder().isEmpty()) { + containingFolder_ = other.containingFolder_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getTeamFolderName().isEmpty()) { + teamFolderName_ = other.teamFolderName_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasInternalMetadata()) { + internalMetadata_ = other.internalMetadata_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasCreatorIamPrincipal()) { + creatorIamPrincipal_ = other.creatorIamPrincipal_; + bitField0_ |= 0x00000080; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + { + containingFolder_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + teamFolderName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + internalMetadata_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + creatorIamPrincipal_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
          +     * Identifier. The Folder's name.
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Identifier. The Folder's name.
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Identifier. The Folder's name.
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Identifier. The Folder's name.
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Identifier. The Folder's name.
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
          +     * Required. The Folder's user-friendly name.
          +     * 
          + * + * 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; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The Folder's user-friendly name.
          +     * 
          + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The Folder's user-friendly name.
          +     * 
          + * + * 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(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The Folder's user-friendly name.
          +     * 
          + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The Folder's user-friendly name.
          +     * 
          + * + * 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(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object containingFolder_ = ""; + + /** + * + * + *
          +     * Optional. The containing Folder resource name. This should take
          +     * the format: projects/{project}/locations/{location}/folders/{folder},
          +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just
          +     * projects/{project}/locations/{location} if this is a root Folder. This
          +     * field can only be updated through MoveFolder.
          +     * 
          + * + * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The containingFolder. + */ + public java.lang.String getContainingFolder() { + java.lang.Object ref = containingFolder_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + containingFolder_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. The containing Folder resource name. This should take
          +     * the format: projects/{project}/locations/{location}/folders/{folder},
          +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just
          +     * projects/{project}/locations/{location} if this is a root Folder. This
          +     * field can only be updated through MoveFolder.
          +     * 
          + * + * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for containingFolder. + */ + public com.google.protobuf.ByteString getContainingFolderBytes() { + java.lang.Object ref = containingFolder_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + containingFolder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. The containing Folder resource name. This should take
          +     * the format: projects/{project}/locations/{location}/folders/{folder},
          +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just
          +     * projects/{project}/locations/{location} if this is a root Folder. This
          +     * field can only be updated through MoveFolder.
          +     * 
          + * + * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The containingFolder to set. + * @return This builder for chaining. + */ + public Builder setContainingFolder(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + containingFolder_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The containing Folder resource name. This should take
          +     * the format: projects/{project}/locations/{location}/folders/{folder},
          +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just
          +     * projects/{project}/locations/{location} if this is a root Folder. This
          +     * field can only be updated through MoveFolder.
          +     * 
          + * + * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearContainingFolder() { + containingFolder_ = getDefaultInstance().getContainingFolder(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The containing Folder resource name. This should take
          +     * the format: projects/{project}/locations/{location}/folders/{folder},
          +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just
          +     * projects/{project}/locations/{location} if this is a root Folder. This
          +     * field can only be updated through MoveFolder.
          +     * 
          + * + * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for containingFolder to set. + * @return This builder for chaining. + */ + public Builder setContainingFolderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + containingFolder_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object teamFolderName_ = ""; + + /** + * + * + *
          +     * Output only. The resource name of the TeamFolder that this Folder is
          +     * associated with. This should take the format:
          +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
          +     * is not set, the Folder is not associated with a TeamFolder and is a
          +     * UserFolder.
          +     * 
          + * + * string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The teamFolderName. + */ + public java.lang.String getTeamFolderName() { + java.lang.Object ref = teamFolderName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamFolderName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Output only. The resource name of the TeamFolder that this Folder is
          +     * associated with. This should take the format:
          +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
          +     * is not set, the Folder is not associated with a TeamFolder and is a
          +     * UserFolder.
          +     * 
          + * + * string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for teamFolderName. + */ + public com.google.protobuf.ByteString getTeamFolderNameBytes() { + java.lang.Object ref = teamFolderName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + teamFolderName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Output only. The resource name of the TeamFolder that this Folder is
          +     * associated with. This should take the format:
          +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
          +     * is not set, the Folder is not associated with a TeamFolder and is a
          +     * UserFolder.
          +     * 
          + * + * string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The teamFolderName to set. + * @return This builder for chaining. + */ + public Builder setTeamFolderName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + teamFolderName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The resource name of the TeamFolder that this Folder is
          +     * associated with. This should take the format:
          +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
          +     * is not set, the Folder is not associated with a TeamFolder and is a
          +     * UserFolder.
          +     * 
          + * + * string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTeamFolderName() { + teamFolderName_ = getDefaultInstance().getTeamFolderName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The resource name of the TeamFolder that this Folder is
          +     * associated with. This should take the format:
          +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
          +     * is not set, the Folder is not associated with a TeamFolder and is a
          +     * UserFolder.
          +     * 
          + * + * string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for teamFolderName to set. + * @return This builder for chaining. + */ + public Builder setTeamFolderNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + teamFolderName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
          +     * Output only. The timestamp of when the Folder was created.
          +     * 
          + * + * + * .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); + } + + /** + * + * + *
          +     * Output only. The timestamp of when the Folder was created.
          +     * 
          + * + * + * .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_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Output only. The timestamp of when the Folder was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp of when the Folder was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp of when the Folder was created.
          +     * 
          + * + * + * .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()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp of when the Folder was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp of when the Folder was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Output only. The timestamp of when the Folder was created.
          +     * 
          + * + * + * .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_; + } + } + + /** + * + * + *
          +     * Output only. The timestamp of when the Folder was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
          +     * Output only. The timestamp of when the Folder was last updated.
          +     * 
          + * + * + * .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); + } + + /** + * + * + *
          +     * Output only. The timestamp of when the Folder was last updated.
          +     * 
          + * + * + * .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_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Output only. The timestamp of when the Folder was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp of when the Folder was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp of when the Folder was last updated.
          +     * 
          + * + * + * .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()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp of when the Folder was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp of when the Folder was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Output only. The timestamp of when the Folder was last updated.
          +     * 
          + * + * + * .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_; + } + } + + /** + * + * + *
          +     * Output only. The timestamp of when the Folder was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object internalMetadata_ = ""; + + /** + * + * + *
          +     * Output only. All the metadata information that is used internally to serve
          +     * the resource. For example: timestamps, flags, status fields, etc. The
          +     * format of this field is a JSON string.
          +     * 
          + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the internalMetadata field is set. + */ + public boolean hasInternalMetadata() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
          +     * Output only. All the metadata information that is used internally to serve
          +     * the resource. For example: timestamps, flags, status fields, etc. The
          +     * format of this field is a JSON string.
          +     * 
          + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The internalMetadata. + */ + public java.lang.String getInternalMetadata() { + java.lang.Object ref = internalMetadata_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + internalMetadata_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Output only. All the metadata information that is used internally to serve
          +     * the resource. For example: timestamps, flags, status fields, etc. The
          +     * format of this field is a JSON string.
          +     * 
          + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for internalMetadata. + */ + public com.google.protobuf.ByteString getInternalMetadataBytes() { + java.lang.Object ref = internalMetadata_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + internalMetadata_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Output only. All the metadata information that is used internally to serve
          +     * the resource. For example: timestamps, flags, status fields, etc. The
          +     * format of this field is a JSON string.
          +     * 
          + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The internalMetadata to set. + * @return This builder for chaining. + */ + public Builder setInternalMetadata(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + internalMetadata_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. All the metadata information that is used internally to serve
          +     * the resource. For example: timestamps, flags, status fields, etc. The
          +     * format of this field is a JSON string.
          +     * 
          + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearInternalMetadata() { + internalMetadata_ = getDefaultInstance().getInternalMetadata(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. All the metadata information that is used internally to serve
          +     * the resource. For example: timestamps, flags, status fields, etc. The
          +     * format of this field is a JSON string.
          +     * 
          + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for internalMetadata to set. + * @return This builder for chaining. + */ + public Builder setInternalMetadataBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + internalMetadata_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object creatorIamPrincipal_ = ""; + + /** + * + * + *
          +     * Output only. The IAM principal identifier of the creator of the Folder.
          +     * 
          + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the creatorIamPrincipal field is set. + */ + public boolean hasCreatorIamPrincipal() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
          +     * Output only. The IAM principal identifier of the creator of the Folder.
          +     * 
          + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The creatorIamPrincipal. + */ + public java.lang.String getCreatorIamPrincipal() { + java.lang.Object ref = creatorIamPrincipal_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + creatorIamPrincipal_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Output only. The IAM principal identifier of the creator of the Folder.
          +     * 
          + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for creatorIamPrincipal. + */ + public com.google.protobuf.ByteString getCreatorIamPrincipalBytes() { + java.lang.Object ref = creatorIamPrincipal_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + creatorIamPrincipal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Output only. The IAM principal identifier of the creator of the Folder.
          +     * 
          + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The creatorIamPrincipal to set. + * @return This builder for chaining. + */ + public Builder setCreatorIamPrincipal(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + creatorIamPrincipal_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The IAM principal identifier of the creator of the Folder.
          +     * 
          + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCreatorIamPrincipal() { + creatorIamPrincipal_ = getDefaultInstance().getCreatorIamPrincipal(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The IAM principal identifier of the creator of the Folder.
          +     * 
          + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for creatorIamPrincipal to set. + * @return This builder for chaining. + */ + public Builder setCreatorIamPrincipalBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + creatorIamPrincipal_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.Folder) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.Folder) + private static final com.google.cloud.dataform.v1beta1.Folder DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.Folder(); + } + + public static com.google.cloud.dataform.v1beta1.Folder getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Folder parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Folder getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FolderName.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FolderName.java new file mode 100644 index 000000000000..a4f1be53541b --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FolderName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class FolderName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_FOLDER = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/folders/{folder}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String folder; + + @Deprecated + protected FolderName() { + project = null; + location = null; + folder = null; + } + + private FolderName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + folder = Preconditions.checkNotNull(builder.getFolder()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFolder() { + return folder; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static FolderName of(String project, String location, String folder) { + return newBuilder().setProject(project).setLocation(location).setFolder(folder).build(); + } + + public static String format(String project, String location, String folder) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFolder(folder) + .build() + .toString(); + } + + public static FolderName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_FOLDER.validatedMatch( + formattedString, "FolderName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("folder")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (FolderName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_FOLDER.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (folder != null) { + fieldMapBuilder.put("folder", folder); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_FOLDER.instantiate( + "project", project, "location", location, "folder", folder); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + FolderName that = ((FolderName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.folder, that.folder); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(folder); + return h; + } + + /** Builder for projects/{project}/locations/{location}/folders/{folder}. */ + public static class Builder { + private String project; + private String location; + private String folder; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFolder() { + return folder; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setFolder(String folder) { + this.folder = folder; + return this; + } + + private Builder(FolderName folderName) { + this.project = folderName.project; + this.location = folderName.location; + this.folder = folderName.folder; + } + + public FolderName build() { + return new FolderName(this); + } + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FolderOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FolderOrBuilder.java new file mode 100644 index 000000000000..7036eb90fe3a --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FolderOrBuilder.java @@ -0,0 +1,318 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +@com.google.protobuf.Generated +public interface FolderOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.Folder) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Identifier. The Folder's name.
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
          +   * Identifier. The Folder's name.
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +   * Required. The Folder's user-friendly name.
          +   * 
          + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
          +   * Required. The Folder's user-friendly name.
          +   * 
          + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
          +   * Optional. The containing Folder resource name. This should take
          +   * the format: projects/{project}/locations/{location}/folders/{folder},
          +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just
          +   * projects/{project}/locations/{location} if this is a root Folder. This
          +   * field can only be updated through MoveFolder.
          +   * 
          + * + * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The containingFolder. + */ + java.lang.String getContainingFolder(); + + /** + * + * + *
          +   * Optional. The containing Folder resource name. This should take
          +   * the format: projects/{project}/locations/{location}/folders/{folder},
          +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just
          +   * projects/{project}/locations/{location} if this is a root Folder. This
          +   * field can only be updated through MoveFolder.
          +   * 
          + * + * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for containingFolder. + */ + com.google.protobuf.ByteString getContainingFolderBytes(); + + /** + * + * + *
          +   * Output only. The resource name of the TeamFolder that this Folder is
          +   * associated with. This should take the format:
          +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
          +   * is not set, the Folder is not associated with a TeamFolder and is a
          +   * UserFolder.
          +   * 
          + * + * string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The teamFolderName. + */ + java.lang.String getTeamFolderName(); + + /** + * + * + *
          +   * Output only. The resource name of the TeamFolder that this Folder is
          +   * associated with. This should take the format:
          +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
          +   * is not set, the Folder is not associated with a TeamFolder and is a
          +   * UserFolder.
          +   * 
          + * + * string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for teamFolderName. + */ + com.google.protobuf.ByteString getTeamFolderNameBytes(); + + /** + * + * + *
          +   * Output only. The timestamp of when the Folder was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
          +   * Output only. The timestamp of when the Folder was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
          +   * Output only. The timestamp of when the Folder was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
          +   * Output only. The timestamp of when the Folder was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
          +   * Output only. The timestamp of when the Folder was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
          +   * Output only. The timestamp of when the Folder was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
          +   * Output only. All the metadata information that is used internally to serve
          +   * the resource. For example: timestamps, flags, status fields, etc. The
          +   * format of this field is a JSON string.
          +   * 
          + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the internalMetadata field is set. + */ + boolean hasInternalMetadata(); + + /** + * + * + *
          +   * Output only. All the metadata information that is used internally to serve
          +   * the resource. For example: timestamps, flags, status fields, etc. The
          +   * format of this field is a JSON string.
          +   * 
          + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The internalMetadata. + */ + java.lang.String getInternalMetadata(); + + /** + * + * + *
          +   * Output only. All the metadata information that is used internally to serve
          +   * the resource. For example: timestamps, flags, status fields, etc. The
          +   * format of this field is a JSON string.
          +   * 
          + * + * optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for internalMetadata. + */ + com.google.protobuf.ByteString getInternalMetadataBytes(); + + /** + * + * + *
          +   * Output only. The IAM principal identifier of the creator of the Folder.
          +   * 
          + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the creatorIamPrincipal field is set. + */ + boolean hasCreatorIamPrincipal(); + + /** + * + * + *
          +   * Output only. The IAM principal identifier of the creator of the Folder.
          +   * 
          + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The creatorIamPrincipal. + */ + java.lang.String getCreatorIamPrincipal(); + + /** + * + * + *
          +   * Output only. The IAM principal identifier of the creator of the Folder.
          +   * 
          + * + * optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for creatorIamPrincipal. + */ + com.google.protobuf.ByteString getCreatorIamPrincipalBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetFolderRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetFolderRequest.java new file mode 100644 index 000000000000..7226532b0246 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetFolderRequest.java @@ -0,0 +1,610 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
          + * `GetFolder` request message.
          + * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.GetFolderRequest} + */ +@com.google.protobuf.Generated +public final class GetFolderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.GetFolderRequest) + GetFolderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetFolderRequest"); + } + + // Use GetFolderRequest.newBuilder() to construct. + private GetFolderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetFolderRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.GetFolderRequest.class, + com.google.cloud.dataform.v1beta1.GetFolderRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
          +   * Required. The Folder's name.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The Folder's name.
          +   * 
          + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.GetFolderRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.GetFolderRequest other = + (com.google.cloud.dataform.v1beta1.GetFolderRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.GetFolderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.GetFolderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.GetFolderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.GetFolderRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.GetFolderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.GetFolderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.GetFolderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.GetFolderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.GetFolderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.GetFolderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.GetFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.GetFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataform.v1beta1.GetFolderRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * `GetFolder` request message.
          +   * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.GetFolderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.GetFolderRequest) + com.google.cloud.dataform.v1beta1.GetFolderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.GetFolderRequest.class, + com.google.cloud.dataform.v1beta1.GetFolderRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.GetFolderRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetFolderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.GetFolderRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.GetFolderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.GetFolderRequest build() { + com.google.cloud.dataform.v1beta1.GetFolderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.GetFolderRequest buildPartial() { + com.google.cloud.dataform.v1beta1.GetFolderRequest result = + new com.google.cloud.dataform.v1beta1.GetFolderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1beta1.GetFolderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.GetFolderRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.GetFolderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.GetFolderRequest other) { + if (other == com.google.cloud.dataform.v1beta1.GetFolderRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
          +     * Required. The Folder's name.
          +     * 
          + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The Folder's name.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The Folder's name.
          +     * 
          + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The Folder's name.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The Folder's name.
          +     * 
          + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.GetFolderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.GetFolderRequest) + private static final com.google.cloud.dataform.v1beta1.GetFolderRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.GetFolderRequest(); + } + + public static com.google.cloud.dataform.v1beta1.GetFolderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.GetFolderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetFolderRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetFolderRequestOrBuilder.java new file mode 100644 index 000000000000..89565f7c577a --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetFolderRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +@com.google.protobuf.Generated +public interface GetFolderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.GetFolderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The Folder's name.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
          +   * Required. The Folder's name.
          +   * 
          + * + * + * 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-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetTeamFolderRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetTeamFolderRequest.java new file mode 100644 index 000000000000..c3082ba08d6e --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetTeamFolderRequest.java @@ -0,0 +1,611 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
          + * `GetTeamFolder` request message.
          + * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.GetTeamFolderRequest} + */ +@com.google.protobuf.Generated +public final class GetTeamFolderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.GetTeamFolderRequest) + GetTeamFolderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetTeamFolderRequest"); + } + + // Use GetTeamFolderRequest.newBuilder() to construct. + private GetTeamFolderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetTeamFolderRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetTeamFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetTeamFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.GetTeamFolderRequest.class, + com.google.cloud.dataform.v1beta1.GetTeamFolderRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
          +   * Required. The TeamFolder's name.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The TeamFolder's name.
          +   * 
          + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.GetTeamFolderRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.GetTeamFolderRequest other = + (com.google.cloud.dataform.v1beta1.GetTeamFolderRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.GetTeamFolderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.GetTeamFolderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.GetTeamFolderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.GetTeamFolderRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.GetTeamFolderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.GetTeamFolderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.GetTeamFolderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.GetTeamFolderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.GetTeamFolderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.GetTeamFolderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.GetTeamFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.GetTeamFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.GetTeamFolderRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * `GetTeamFolder` request message.
          +   * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.GetTeamFolderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.GetTeamFolderRequest) + com.google.cloud.dataform.v1beta1.GetTeamFolderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetTeamFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetTeamFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.GetTeamFolderRequest.class, + com.google.cloud.dataform.v1beta1.GetTeamFolderRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.GetTeamFolderRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_GetTeamFolderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.GetTeamFolderRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.GetTeamFolderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.GetTeamFolderRequest build() { + com.google.cloud.dataform.v1beta1.GetTeamFolderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.GetTeamFolderRequest buildPartial() { + com.google.cloud.dataform.v1beta1.GetTeamFolderRequest result = + new com.google.cloud.dataform.v1beta1.GetTeamFolderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1beta1.GetTeamFolderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.GetTeamFolderRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.GetTeamFolderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.GetTeamFolderRequest other) { + if (other == com.google.cloud.dataform.v1beta1.GetTeamFolderRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
          +     * Required. The TeamFolder's name.
          +     * 
          + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The TeamFolder's name.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The TeamFolder's name.
          +     * 
          + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The TeamFolder's name.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The TeamFolder's name.
          +     * 
          + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.GetTeamFolderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.GetTeamFolderRequest) + private static final com.google.cloud.dataform.v1beta1.GetTeamFolderRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.GetTeamFolderRequest(); + } + + public static com.google.cloud.dataform.v1beta1.GetTeamFolderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTeamFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.GetTeamFolderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetTeamFolderRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetTeamFolderRequestOrBuilder.java new file mode 100644 index 000000000000..cbc015574e52 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/GetTeamFolderRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +@com.google.protobuf.Generated +public interface GetTeamFolderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.GetTeamFolderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The TeamFolder's name.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
          +   * Required. The TeamFolder's name.
          +   * 
          + * + * + * 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-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/InvocationConfig.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/InvocationConfig.java index 8a9bc00545e8..f91de01e26b5 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/InvocationConfig.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/InvocationConfig.java @@ -57,6 +57,7 @@ private InvocationConfig() { includedTargets_ = java.util.Collections.emptyList(); includedTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); serviceAccount_ = ""; + queryPriority_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -74,6 +75,186 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dataform.v1beta1.InvocationConfig.Builder.class); } + /** + * + * + *
          +   * Types of priority for query execution in BigQuery.
          +   * 
          + * + * Protobuf enum {@code google.cloud.dataform.v1beta1.InvocationConfig.QueryPriority} + */ + public enum QueryPriority implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * Default value. This value is unused.
          +     * 
          + * + * QUERY_PRIORITY_UNSPECIFIED = 0; + */ + QUERY_PRIORITY_UNSPECIFIED(0), + /** + * + * + *
          +     * Query will be executed in BigQuery with interactive priority.
          +     * More information can be found at
          +     * https://cloud.google.com/bigquery/docs/running-queries#queries.
          +     * 
          + * + * INTERACTIVE = 1; + */ + INTERACTIVE(1), + /** + * + * + *
          +     * Query will be executed in BigQuery with batch priority.
          +     * More information can be found at
          +     * https://cloud.google.com/bigquery/docs/running-queries#batchqueries.
          +     * 
          + * + * BATCH = 2; + */ + BATCH(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryPriority"); + } + + /** + * + * + *
          +     * Default value. This value is unused.
          +     * 
          + * + * QUERY_PRIORITY_UNSPECIFIED = 0; + */ + public static final int QUERY_PRIORITY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
          +     * Query will be executed in BigQuery with interactive priority.
          +     * More information can be found at
          +     * https://cloud.google.com/bigquery/docs/running-queries#queries.
          +     * 
          + * + * INTERACTIVE = 1; + */ + public static final int INTERACTIVE_VALUE = 1; + + /** + * + * + *
          +     * Query will be executed in BigQuery with batch priority.
          +     * More information can be found at
          +     * https://cloud.google.com/bigquery/docs/running-queries#batchqueries.
          +     * 
          + * + * BATCH = 2; + */ + public static final int BATCH_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static QueryPriority valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static QueryPriority forNumber(int value) { + switch (value) { + case 0: + return QUERY_PRIORITY_UNSPECIFIED; + case 1: + return INTERACTIVE; + case 2: + return BATCH; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public QueryPriority findValueByNumber(int number) { + return QueryPriority.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.InvocationConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final QueryPriority[] VALUES = values(); + + public static QueryPriority valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private QueryPriority(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1beta1.InvocationConfig.QueryPriority) + } + + private int bitField0_; public static final int INCLUDED_TARGETS_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -343,6 +524,73 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { } } + public static final int QUERY_PRIORITY_FIELD_NUMBER = 9; + private int queryPriority_ = 0; + + /** + * + * + *
          +   * Optional. Specifies the priority for query execution in BigQuery.
          +   * More information can be found at
          +   * https://cloud.google.com/bigquery/docs/running-queries#queries.
          +   * 
          + * + * + * optional .google.cloud.dataform.v1beta1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the queryPriority field is set. + */ + @java.lang.Override + public boolean hasQueryPriority() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +   * Optional. Specifies the priority for query execution in BigQuery.
          +   * More information can be found at
          +   * https://cloud.google.com/bigquery/docs/running-queries#queries.
          +   * 
          + * + * + * optional .google.cloud.dataform.v1beta1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for queryPriority. + */ + @java.lang.Override + public int getQueryPriorityValue() { + return queryPriority_; + } + + /** + * + * + *
          +   * Optional. Specifies the priority for query execution in BigQuery.
          +   * More information can be found at
          +   * https://cloud.google.com/bigquery/docs/running-queries#queries.
          +   * 
          + * + * + * optional .google.cloud.dataform.v1beta1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The queryPriority. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.InvocationConfig.QueryPriority getQueryPriority() { + com.google.cloud.dataform.v1beta1.InvocationConfig.QueryPriority result = + com.google.cloud.dataform.v1beta1.InvocationConfig.QueryPriority.forNumber(queryPriority_); + return result == null + ? com.google.cloud.dataform.v1beta1.InvocationConfig.QueryPriority.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -375,6 +623,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccount_)) { com.google.protobuf.GeneratedMessage.writeString(output, 6, serviceAccount_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(9, queryPriority_); + } getUnknownFields().writeTo(output); } @@ -411,6 +662,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccount_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(6, serviceAccount_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, queryPriority_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -435,6 +689,10 @@ public boolean equals(final java.lang.Object obj) { if (getFullyRefreshIncrementalTablesEnabled() != other.getFullyRefreshIncrementalTablesEnabled()) return false; if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (hasQueryPriority() != other.hasQueryPriority()) return false; + if (hasQueryPriority()) { + if (queryPriority_ != other.queryPriority_) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -466,6 +724,10 @@ public int hashCode() { + com.google.protobuf.Internal.hashBoolean(getFullyRefreshIncrementalTablesEnabled()); hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; hash = (53 * hash) + getServiceAccount().hashCode(); + if (hasQueryPriority()) { + hash = (37 * hash) + QUERY_PRIORITY_FIELD_NUMBER; + hash = (53 * hash) + queryPriority_; + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -620,6 +882,7 @@ public Builder clear() { transitiveDependentsIncluded_ = false; fullyRefreshIncrementalTablesEnabled_ = false; serviceAccount_ = ""; + queryPriority_ = 0; return this; } @@ -686,6 +949,12 @@ private void buildPartial0(com.google.cloud.dataform.v1beta1.InvocationConfig re if (((from_bitField0_ & 0x00000020) != 0)) { result.serviceAccount_ = serviceAccount_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.queryPriority_ = queryPriority_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -752,6 +1021,9 @@ public Builder mergeFrom(com.google.cloud.dataform.v1beta1.InvocationConfig othe bitField0_ |= 0x00000020; onChanged(); } + if (other.hasQueryPriority()) { + setQueryPriorityValue(other.getQueryPriorityValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -822,6 +1094,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 50 + case 72: + { + queryPriority_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 72 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1729,6 +2007,145 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { return this; } + private int queryPriority_ = 0; + + /** + * + * + *
          +     * Optional. Specifies the priority for query execution in BigQuery.
          +     * More information can be found at
          +     * https://cloud.google.com/bigquery/docs/running-queries#queries.
          +     * 
          + * + * + * optional .google.cloud.dataform.v1beta1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the queryPriority field is set. + */ + @java.lang.Override + public boolean hasQueryPriority() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
          +     * Optional. Specifies the priority for query execution in BigQuery.
          +     * More information can be found at
          +     * https://cloud.google.com/bigquery/docs/running-queries#queries.
          +     * 
          + * + * + * optional .google.cloud.dataform.v1beta1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for queryPriority. + */ + @java.lang.Override + public int getQueryPriorityValue() { + return queryPriority_; + } + + /** + * + * + *
          +     * Optional. Specifies the priority for query execution in BigQuery.
          +     * More information can be found at
          +     * https://cloud.google.com/bigquery/docs/running-queries#queries.
          +     * 
          + * + * + * optional .google.cloud.dataform.v1beta1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for queryPriority to set. + * @return This builder for chaining. + */ + public Builder setQueryPriorityValue(int value) { + queryPriority_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Specifies the priority for query execution in BigQuery.
          +     * More information can be found at
          +     * https://cloud.google.com/bigquery/docs/running-queries#queries.
          +     * 
          + * + * + * optional .google.cloud.dataform.v1beta1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The queryPriority. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.InvocationConfig.QueryPriority getQueryPriority() { + com.google.cloud.dataform.v1beta1.InvocationConfig.QueryPriority result = + com.google.cloud.dataform.v1beta1.InvocationConfig.QueryPriority.forNumber( + queryPriority_); + return result == null + ? com.google.cloud.dataform.v1beta1.InvocationConfig.QueryPriority.UNRECOGNIZED + : result; + } + + /** + * + * + *
          +     * Optional. Specifies the priority for query execution in BigQuery.
          +     * More information can be found at
          +     * https://cloud.google.com/bigquery/docs/running-queries#queries.
          +     * 
          + * + * + * optional .google.cloud.dataform.v1beta1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The queryPriority to set. + * @return This builder for chaining. + */ + public Builder setQueryPriority( + com.google.cloud.dataform.v1beta1.InvocationConfig.QueryPriority value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + queryPriority_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Specifies the priority for query execution in BigQuery.
          +     * More information can be found at
          +     * https://cloud.google.com/bigquery/docs/running-queries#queries.
          +     * 
          + * + * + * optional .google.cloud.dataform.v1beta1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearQueryPriority() { + bitField0_ = (bitField0_ & ~0x00000040); + queryPriority_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.InvocationConfig) } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/InvocationConfigOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/InvocationConfigOrBuilder.java index 9032d425f82c..e0d633701c84 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/InvocationConfigOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/InvocationConfigOrBuilder.java @@ -215,4 +215,55 @@ public interface InvocationConfigOrBuilder * @return The bytes for serviceAccount. */ com.google.protobuf.ByteString getServiceAccountBytes(); + + /** + * + * + *
          +   * Optional. Specifies the priority for query execution in BigQuery.
          +   * More information can be found at
          +   * https://cloud.google.com/bigquery/docs/running-queries#queries.
          +   * 
          + * + * + * optional .google.cloud.dataform.v1beta1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the queryPriority field is set. + */ + boolean hasQueryPriority(); + + /** + * + * + *
          +   * Optional. Specifies the priority for query execution in BigQuery.
          +   * More information can be found at
          +   * https://cloud.google.com/bigquery/docs/running-queries#queries.
          +   * 
          + * + * + * optional .google.cloud.dataform.v1beta1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for queryPriority. + */ + int getQueryPriorityValue(); + + /** + * + * + *
          +   * Optional. Specifies the priority for query execution in BigQuery.
          +   * More information can be found at
          +   * https://cloud.google.com/bigquery/docs/running-queries#queries.
          +   * 
          + * + * + * optional .google.cloud.dataform.v1beta1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The queryPriority. + */ + com.google.cloud.dataform.v1beta1.InvocationConfig.QueryPriority getQueryPriority(); } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveFolderMetadata.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveFolderMetadata.java new file mode 100644 index 000000000000..d1cddfdeac8d --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveFolderMetadata.java @@ -0,0 +1,1668 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
          + * Contains metadata about the progress of the MoveFolder Long-running
          + * operations.
          + * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.MoveFolderMetadata} + */ +@com.google.protobuf.Generated +public final class MoveFolderMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.MoveFolderMetadata) + MoveFolderMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MoveFolderMetadata"); + } + + // Use MoveFolderMetadata.newBuilder() to construct. + private MoveFolderMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MoveFolderMetadata() { + target_ = ""; + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveFolderMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveFolderMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.MoveFolderMetadata.class, + com.google.cloud.dataform.v1beta1.MoveFolderMetadata.Builder.class); + } + + /** + * + * + *
          +   * Different states of the move.
          +   * 
          + * + * Protobuf enum {@code google.cloud.dataform.v1beta1.MoveFolderMetadata.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * The state is unspecified.
          +     * 
          + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
          +     * The move was initialized and recorded by the server, but not yet started.
          +     * 
          + * + * INITIALIZED = 1; + */ + INITIALIZED(1), + /** + * + * + *
          +     * The move is in progress.
          +     * 
          + * + * IN_PROGRESS = 2; + */ + IN_PROGRESS(2), + /** + * + * + *
          +     * The move has completed successfully.
          +     * 
          + * + * SUCCESS = 3; + */ + SUCCESS(3), + /** + * + * + *
          +     * The move has failed.
          +     * 
          + * + * FAILED = 4; + */ + FAILED(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
          +     * The state is unspecified.
          +     * 
          + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
          +     * The move was initialized and recorded by the server, but not yet started.
          +     * 
          + * + * INITIALIZED = 1; + */ + public static final int INITIALIZED_VALUE = 1; + + /** + * + * + *
          +     * The move is in progress.
          +     * 
          + * + * IN_PROGRESS = 2; + */ + public static final int IN_PROGRESS_VALUE = 2; + + /** + * + * + *
          +     * The move has completed successfully.
          +     * 
          + * + * SUCCESS = 3; + */ + public static final int SUCCESS_VALUE = 3; + + /** + * + * + *
          +     * The move has failed.
          +     * 
          + * + * FAILED = 4; + */ + public static final int FAILED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return INITIALIZED; + case 2: + return IN_PROGRESS; + case 3: + return SUCCESS; + case 4: + return FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.MoveFolderMetadata.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1beta1.MoveFolderMetadata.State) + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
          +   * Output only. The time the operation was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +   * Output only. The time the operation was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
          +   * Output only. The time the operation was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + + /** + * + * + *
          +   * Output only. The time the operation finished running.
          +   * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +   * Output only. The time the operation finished running.
          +   * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + /** + * + * + *
          +   * Output only. The time the operation finished running.
          +   * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int TARGET_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object target_ = ""; + + /** + * + * + *
          +   * Output only. Server-defined resource path for the target of the operation.
          +   * 
          + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + @java.lang.Override + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } + } + + /** + * + * + *
          +   * Output only. Server-defined resource path for the target of the operation.
          +   * 
          + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 4; + private int state_ = 0; + + /** + * + * + *
          +   * The state of the move.
          +   * 
          + * + * .google.cloud.dataform.v1beta1.MoveFolderMetadata.State state = 4; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
          +   * The state of the move.
          +   * 
          + * + * .google.cloud.dataform.v1beta1.MoveFolderMetadata.State state = 4; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveFolderMetadata.State getState() { + com.google.cloud.dataform.v1beta1.MoveFolderMetadata.State result = + com.google.cloud.dataform.v1beta1.MoveFolderMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.dataform.v1beta1.MoveFolderMetadata.State.UNRECOGNIZED + : result; + } + + public static final int PERCENT_COMPLETE_FIELD_NUMBER = 5; + private int percentComplete_ = 0; + + /** + * + * + *
          +   * Percent complete of the move [0, 100].
          +   * 
          + * + * int32 percent_complete = 5; + * + * @return The percentComplete. + */ + @java.lang.Override + public int getPercentComplete() { + return percentComplete_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, target_); + } + if (state_ + != com.google.cloud.dataform.v1beta1.MoveFolderMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, state_); + } + if (percentComplete_ != 0) { + output.writeInt32(5, percentComplete_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, target_); + } + if (state_ + != com.google.cloud.dataform.v1beta1.MoveFolderMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + } + if (percentComplete_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, percentComplete_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.MoveFolderMetadata)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.MoveFolderMetadata other = + (com.google.cloud.dataform.v1beta1.MoveFolderMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (state_ != other.state_) return false; + if (getPercentComplete() != other.getPercentComplete()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + PERCENT_COMPLETE_FIELD_NUMBER; + hash = (53 * hash) + getPercentComplete(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.MoveFolderMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.MoveFolderMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.MoveFolderMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.MoveFolderMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.MoveFolderMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.MoveFolderMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.MoveFolderMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.MoveFolderMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.MoveFolderMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.MoveFolderMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.MoveFolderMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.MoveFolderMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataform.v1beta1.MoveFolderMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Contains metadata about the progress of the MoveFolder Long-running
          +   * operations.
          +   * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.MoveFolderMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.MoveFolderMetadata) + com.google.cloud.dataform.v1beta1.MoveFolderMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveFolderMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveFolderMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.MoveFolderMetadata.class, + com.google.cloud.dataform.v1beta1.MoveFolderMetadata.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.MoveFolderMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + target_ = ""; + state_ = 0; + percentComplete_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveFolderMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveFolderMetadata getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.MoveFolderMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveFolderMetadata build() { + com.google.cloud.dataform.v1beta1.MoveFolderMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveFolderMetadata buildPartial() { + com.google.cloud.dataform.v1beta1.MoveFolderMetadata result = + new com.google.cloud.dataform.v1beta1.MoveFolderMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1beta1.MoveFolderMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.target_ = target_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.percentComplete_ = percentComplete_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.MoveFolderMetadata) { + return mergeFrom((com.google.cloud.dataform.v1beta1.MoveFolderMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.MoveFolderMetadata other) { + if (other == com.google.cloud.dataform.v1beta1.MoveFolderMetadata.getDefaultInstance()) + return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (!other.getTarget().isEmpty()) { + target_ = other.target_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getPercentComplete() != 0) { + setPercentComplete(other.getPercentComplete()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + percentComplete_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
          +     * Output only. The time the operation was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +     * Output only. The time the operation was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 1 [(.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_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Output only. The time the operation was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The time the operation was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The time the operation was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Output only. The time the operation was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The time the operation was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Output only. The time the operation was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 1 [(.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_; + } + } + + /** + * + * + *
          +     * Output only. The time the operation was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + + /** + * + * + *
          +     * Output only. The time the operation finished running.
          +     * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +     * Output only. The time the operation finished running.
          +     * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Output only. The time the operation finished running.
          +     * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The time the operation finished running.
          +     * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The time the operation finished running.
          +     * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Output only. The time the operation finished running.
          +     * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The time the operation finished running.
          +     * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetEndTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Output only. The time the operation finished running.
          +     * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + + /** + * + * + *
          +     * Output only. The time the operation finished running.
          +     * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private java.lang.Object target_ = ""; + + /** + * + * + *
          +     * Output only. Server-defined resource path for the target of the operation.
          +     * 
          + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Output only. Server-defined resource path for the target of the operation.
          +     * 
          + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Output only. Server-defined resource path for the target of the operation.
          +     * 
          + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The target to set. + * @return This builder for chaining. + */ + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Server-defined resource path for the target of the operation.
          +     * 
          + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTarget() { + target_ = getDefaultInstance().getTarget(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Server-defined resource path for the target of the operation.
          +     * 
          + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for target to set. + * @return This builder for chaining. + */ + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
          +     * The state of the move.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.MoveFolderMetadata.State state = 4; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
          +     * The state of the move.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.MoveFolderMetadata.State state = 4; + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * The state of the move.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.MoveFolderMetadata.State state = 4; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveFolderMetadata.State getState() { + com.google.cloud.dataform.v1beta1.MoveFolderMetadata.State result = + com.google.cloud.dataform.v1beta1.MoveFolderMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.dataform.v1beta1.MoveFolderMetadata.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
          +     * The state of the move.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.MoveFolderMetadata.State state = 4; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.dataform.v1beta1.MoveFolderMetadata.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
          +     * The state of the move.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.MoveFolderMetadata.State state = 4; + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000008); + state_ = 0; + onChanged(); + return this; + } + + private int percentComplete_; + + /** + * + * + *
          +     * Percent complete of the move [0, 100].
          +     * 
          + * + * int32 percent_complete = 5; + * + * @return The percentComplete. + */ + @java.lang.Override + public int getPercentComplete() { + return percentComplete_; + } + + /** + * + * + *
          +     * Percent complete of the move [0, 100].
          +     * 
          + * + * int32 percent_complete = 5; + * + * @param value The percentComplete to set. + * @return This builder for chaining. + */ + public Builder setPercentComplete(int value) { + + percentComplete_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Percent complete of the move [0, 100].
          +     * 
          + * + * int32 percent_complete = 5; + * + * @return This builder for chaining. + */ + public Builder clearPercentComplete() { + bitField0_ = (bitField0_ & ~0x00000010); + percentComplete_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.MoveFolderMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.MoveFolderMetadata) + private static final com.google.cloud.dataform.v1beta1.MoveFolderMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.MoveFolderMetadata(); + } + + public static com.google.cloud.dataform.v1beta1.MoveFolderMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MoveFolderMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveFolderMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveFolderMetadataOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveFolderMetadataOrBuilder.java new file mode 100644 index 000000000000..006d5a397f75 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveFolderMetadataOrBuilder.java @@ -0,0 +1,173 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +@com.google.protobuf.Generated +public interface MoveFolderMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.MoveFolderMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Output only. The time the operation was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
          +   * Output only. The time the operation was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
          +   * Output only. The time the operation was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
          +   * Output only. The time the operation finished running.
          +   * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + + /** + * + * + *
          +   * Output only. The time the operation finished running.
          +   * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + + /** + * + * + *
          +   * Output only. The time the operation finished running.
          +   * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
          +   * Output only. Server-defined resource path for the target of the operation.
          +   * 
          + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + java.lang.String getTarget(); + + /** + * + * + *
          +   * Output only. Server-defined resource path for the target of the operation.
          +   * 
          + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + com.google.protobuf.ByteString getTargetBytes(); + + /** + * + * + *
          +   * The state of the move.
          +   * 
          + * + * .google.cloud.dataform.v1beta1.MoveFolderMetadata.State state = 4; + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
          +   * The state of the move.
          +   * 
          + * + * .google.cloud.dataform.v1beta1.MoveFolderMetadata.State state = 4; + * + * @return The state. + */ + com.google.cloud.dataform.v1beta1.MoveFolderMetadata.State getState(); + + /** + * + * + *
          +   * Percent complete of the move [0, 100].
          +   * 
          + * + * int32 percent_complete = 5; + * + * @return The percentComplete. + */ + int getPercentComplete(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveFolderRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveFolderRequest.java new file mode 100644 index 000000000000..745bd2698f01 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveFolderRequest.java @@ -0,0 +1,877 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
          + * `MoveFolder` request message.
          + * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.MoveFolderRequest} + */ +@com.google.protobuf.Generated +public final class MoveFolderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.MoveFolderRequest) + MoveFolderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MoveFolderRequest"); + } + + // Use MoveFolderRequest.newBuilder() to construct. + private MoveFolderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MoveFolderRequest() { + name_ = ""; + destinationContainingFolder_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.MoveFolderRequest.class, + com.google.cloud.dataform.v1beta1.MoveFolderRequest.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
          +   * Required. The full resource name of the Folder to move.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The full resource name of the Folder to move.
          +   * 
          + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESTINATION_CONTAINING_FOLDER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object destinationContainingFolder_ = ""; + + /** + * + * + *
          +   * Optional. The name of the Folder, TeamFolder, or root location to move the
          +   * Folder to. Can be in the format of: "" to move into the root User folder,
          +   * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
          +   * 
          + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the destinationContainingFolder field is set. + */ + @java.lang.Override + public boolean hasDestinationContainingFolder() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +   * Optional. The name of the Folder, TeamFolder, or root location to move the
          +   * Folder to. Can be in the format of: "" to move into the root User folder,
          +   * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
          +   * 
          + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The destinationContainingFolder. + */ + @java.lang.Override + public java.lang.String getDestinationContainingFolder() { + java.lang.Object ref = destinationContainingFolder_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationContainingFolder_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. The name of the Folder, TeamFolder, or root location to move the
          +   * Folder to. Can be in the format of: "" to move into the root User folder,
          +   * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
          +   * 
          + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for destinationContainingFolder. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDestinationContainingFolderBytes() { + java.lang.Object ref = destinationContainingFolder_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationContainingFolder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, destinationContainingFolder_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(2, destinationContainingFolder_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.MoveFolderRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.MoveFolderRequest other = + (com.google.cloud.dataform.v1beta1.MoveFolderRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasDestinationContainingFolder() != other.hasDestinationContainingFolder()) return false; + if (hasDestinationContainingFolder()) { + if (!getDestinationContainingFolder().equals(other.getDestinationContainingFolder())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasDestinationContainingFolder()) { + hash = (37 * hash) + DESTINATION_CONTAINING_FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getDestinationContainingFolder().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.MoveFolderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.MoveFolderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.MoveFolderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.MoveFolderRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.MoveFolderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.MoveFolderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.MoveFolderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.MoveFolderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.MoveFolderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.MoveFolderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.MoveFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.MoveFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataform.v1beta1.MoveFolderRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * `MoveFolder` request message.
          +   * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.MoveFolderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.MoveFolderRequest) + com.google.cloud.dataform.v1beta1.MoveFolderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.MoveFolderRequest.class, + com.google.cloud.dataform.v1beta1.MoveFolderRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.MoveFolderRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + destinationContainingFolder_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveFolderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveFolderRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.MoveFolderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveFolderRequest build() { + com.google.cloud.dataform.v1beta1.MoveFolderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveFolderRequest buildPartial() { + com.google.cloud.dataform.v1beta1.MoveFolderRequest result = + new com.google.cloud.dataform.v1beta1.MoveFolderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1beta1.MoveFolderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.destinationContainingFolder_ = destinationContainingFolder_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.MoveFolderRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.MoveFolderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.MoveFolderRequest other) { + if (other == com.google.cloud.dataform.v1beta1.MoveFolderRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDestinationContainingFolder()) { + destinationContainingFolder_ = other.destinationContainingFolder_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + destinationContainingFolder_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
          +     * Required. The full resource name of the Folder to move.
          +     * 
          + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The full resource name of the Folder to move.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The full resource name of the Folder to move.
          +     * 
          + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The full resource name of the Folder to move.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The full resource name of the Folder to move.
          +     * 
          + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object destinationContainingFolder_ = ""; + + /** + * + * + *
          +     * Optional. The name of the Folder, TeamFolder, or root location to move the
          +     * Folder to. Can be in the format of: "" to move into the root User folder,
          +     * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
          +     * 
          + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the destinationContainingFolder field is set. + */ + public boolean hasDestinationContainingFolder() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +     * Optional. The name of the Folder, TeamFolder, or root location to move the
          +     * Folder to. Can be in the format of: "" to move into the root User folder,
          +     * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
          +     * 
          + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The destinationContainingFolder. + */ + public java.lang.String getDestinationContainingFolder() { + java.lang.Object ref = destinationContainingFolder_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationContainingFolder_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. The name of the Folder, TeamFolder, or root location to move the
          +     * Folder to. Can be in the format of: "" to move into the root User folder,
          +     * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
          +     * 
          + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for destinationContainingFolder. + */ + public com.google.protobuf.ByteString getDestinationContainingFolderBytes() { + java.lang.Object ref = destinationContainingFolder_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationContainingFolder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. The name of the Folder, TeamFolder, or root location to move the
          +     * Folder to. Can be in the format of: "" to move into the root User folder,
          +     * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
          +     * 
          + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The destinationContainingFolder to set. + * @return This builder for chaining. + */ + public Builder setDestinationContainingFolder(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destinationContainingFolder_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The name of the Folder, TeamFolder, or root location to move the
          +     * Folder to. Can be in the format of: "" to move into the root User folder,
          +     * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
          +     * 
          + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDestinationContainingFolder() { + destinationContainingFolder_ = getDefaultInstance().getDestinationContainingFolder(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The name of the Folder, TeamFolder, or root location to move the
          +     * Folder to. Can be in the format of: "" to move into the root User folder,
          +     * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
          +     * 
          + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for destinationContainingFolder to set. + * @return This builder for chaining. + */ + public Builder setDestinationContainingFolderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationContainingFolder_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.MoveFolderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.MoveFolderRequest) + private static final com.google.cloud.dataform.v1beta1.MoveFolderRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.MoveFolderRequest(); + } + + public static com.google.cloud.dataform.v1beta1.MoveFolderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MoveFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveFolderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveFolderRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveFolderRequestOrBuilder.java new file mode 100644 index 000000000000..e2085364913a --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveFolderRequestOrBuilder.java @@ -0,0 +1,109 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +@com.google.protobuf.Generated +public interface MoveFolderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.MoveFolderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The full resource name of the Folder to move.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
          +   * Required. The full resource name of the Folder to move.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +   * Optional. The name of the Folder, TeamFolder, or root location to move the
          +   * Folder to. Can be in the format of: "" to move into the root User folder,
          +   * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
          +   * 
          + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the destinationContainingFolder field is set. + */ + boolean hasDestinationContainingFolder(); + + /** + * + * + *
          +   * Optional. The name of the Folder, TeamFolder, or root location to move the
          +   * Folder to. Can be in the format of: "" to move into the root User folder,
          +   * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
          +   * 
          + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The destinationContainingFolder. + */ + java.lang.String getDestinationContainingFolder(); + + /** + * + * + *
          +   * Optional. The name of the Folder, TeamFolder, or root location to move the
          +   * Folder to. Can be in the format of: "" to move into the root User folder,
          +   * `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*`
          +   * 
          + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for destinationContainingFolder. + */ + com.google.protobuf.ByteString getDestinationContainingFolderBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveRepositoryMetadata.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveRepositoryMetadata.java new file mode 100644 index 000000000000..cc76c59764af --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveRepositoryMetadata.java @@ -0,0 +1,1669 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
          + * Contains metadata about the progress of the MoveRepository Long-running
          + * operations.
          + * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.MoveRepositoryMetadata} + */ +@com.google.protobuf.Generated +public final class MoveRepositoryMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.MoveRepositoryMetadata) + MoveRepositoryMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MoveRepositoryMetadata"); + } + + // Use MoveRepositoryMetadata.newBuilder() to construct. + private MoveRepositoryMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MoveRepositoryMetadata() { + target_ = ""; + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveRepositoryMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveRepositoryMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata.class, + com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata.Builder.class); + } + + /** + * + * + *
          +   * Different states of the move.
          +   * 
          + * + * Protobuf enum {@code google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * The state is unspecified.
          +     * 
          + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
          +     * The move was initialized and recorded by the server, but not yet started.
          +     * 
          + * + * INITIALIZED = 1; + */ + INITIALIZED(1), + /** + * + * + *
          +     * The move is in progress.
          +     * 
          + * + * IN_PROGRESS = 2; + */ + IN_PROGRESS(2), + /** + * + * + *
          +     * The move has completed successfully.
          +     * 
          + * + * SUCCESS = 3; + */ + SUCCESS(3), + /** + * + * + *
          +     * The move has failed.
          +     * 
          + * + * FAILED = 4; + */ + FAILED(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
          +     * The state is unspecified.
          +     * 
          + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
          +     * The move was initialized and recorded by the server, but not yet started.
          +     * 
          + * + * INITIALIZED = 1; + */ + public static final int INITIALIZED_VALUE = 1; + + /** + * + * + *
          +     * The move is in progress.
          +     * 
          + * + * IN_PROGRESS = 2; + */ + public static final int IN_PROGRESS_VALUE = 2; + + /** + * + * + *
          +     * The move has completed successfully.
          +     * 
          + * + * SUCCESS = 3; + */ + public static final int SUCCESS_VALUE = 3; + + /** + * + * + *
          +     * The move has failed.
          +     * 
          + * + * FAILED = 4; + */ + public static final int FAILED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return INITIALIZED; + case 2: + return IN_PROGRESS; + case 3: + return SUCCESS; + case 4: + return FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State) + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
          +   * Output only. The time the operation was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +   * Output only. The time the operation was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
          +   * Output only. The time the operation was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + + /** + * + * + *
          +   * Output only. The time the operation finished running.
          +   * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +   * Output only. The time the operation finished running.
          +   * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + /** + * + * + *
          +   * Output only. The time the operation finished running.
          +   * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int TARGET_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object target_ = ""; + + /** + * + * + *
          +   * Output only. Server-defined resource path for the target of the operation.
          +   * 
          + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + @java.lang.Override + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } + } + + /** + * + * + *
          +   * Output only. Server-defined resource path for the target of the operation.
          +   * 
          + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 4; + private int state_ = 0; + + /** + * + * + *
          +   * The state of the move.
          +   * 
          + * + * .google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State state = 4; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
          +   * The state of the move.
          +   * 
          + * + * .google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State state = 4; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State getState() { + com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State result = + com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State.UNRECOGNIZED + : result; + } + + public static final int PERCENT_COMPLETE_FIELD_NUMBER = 5; + private int percentComplete_ = 0; + + /** + * + * + *
          +   * Percent complete of the move [0, 100].
          +   * 
          + * + * int32 percent_complete = 5; + * + * @return The percentComplete. + */ + @java.lang.Override + public int getPercentComplete() { + return percentComplete_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, target_); + } + if (state_ + != com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, state_); + } + if (percentComplete_ != 0) { + output.writeInt32(5, percentComplete_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, target_); + } + if (state_ + != com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + } + if (percentComplete_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, percentComplete_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata other = + (com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (state_ != other.state_) return false; + if (getPercentComplete() != other.getPercentComplete()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + PERCENT_COMPLETE_FIELD_NUMBER; + hash = (53 * hash) + getPercentComplete(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Contains metadata about the progress of the MoveRepository Long-running
          +   * operations.
          +   * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.MoveRepositoryMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.MoveRepositoryMetadata) + com.google.cloud.dataform.v1beta1.MoveRepositoryMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveRepositoryMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveRepositoryMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata.class, + com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + target_ = ""; + state_ = 0; + percentComplete_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveRepositoryMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata build() { + com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata buildPartial() { + com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata result = + new com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.target_ = target_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.percentComplete_ = percentComplete_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata) { + return mergeFrom((com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata other) { + if (other == com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata.getDefaultInstance()) + return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (!other.getTarget().isEmpty()) { + target_ = other.target_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getPercentComplete() != 0) { + setPercentComplete(other.getPercentComplete()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + percentComplete_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
          +     * Output only. The time the operation was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +     * Output only. The time the operation was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 1 [(.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_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Output only. The time the operation was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The time the operation was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The time the operation was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Output only. The time the operation was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The time the operation was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Output only. The time the operation was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 1 [(.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_; + } + } + + /** + * + * + *
          +     * Output only. The time the operation was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + + /** + * + * + *
          +     * Output only. The time the operation finished running.
          +     * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +     * Output only. The time the operation finished running.
          +     * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Output only. The time the operation finished running.
          +     * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The time the operation finished running.
          +     * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The time the operation finished running.
          +     * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Output only. The time the operation finished running.
          +     * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The time the operation finished running.
          +     * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetEndTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Output only. The time the operation finished running.
          +     * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + + /** + * + * + *
          +     * Output only. The time the operation finished running.
          +     * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private java.lang.Object target_ = ""; + + /** + * + * + *
          +     * Output only. Server-defined resource path for the target of the operation.
          +     * 
          + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Output only. Server-defined resource path for the target of the operation.
          +     * 
          + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Output only. Server-defined resource path for the target of the operation.
          +     * 
          + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The target to set. + * @return This builder for chaining. + */ + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Server-defined resource path for the target of the operation.
          +     * 
          + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTarget() { + target_ = getDefaultInstance().getTarget(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Server-defined resource path for the target of the operation.
          +     * 
          + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for target to set. + * @return This builder for chaining. + */ + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
          +     * The state of the move.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State state = 4; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
          +     * The state of the move.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State state = 4; + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * The state of the move.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State state = 4; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State getState() { + com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State result = + com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
          +     * The state of the move.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State state = 4; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
          +     * The state of the move.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State state = 4; + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000008); + state_ = 0; + onChanged(); + return this; + } + + private int percentComplete_; + + /** + * + * + *
          +     * Percent complete of the move [0, 100].
          +     * 
          + * + * int32 percent_complete = 5; + * + * @return The percentComplete. + */ + @java.lang.Override + public int getPercentComplete() { + return percentComplete_; + } + + /** + * + * + *
          +     * Percent complete of the move [0, 100].
          +     * 
          + * + * int32 percent_complete = 5; + * + * @param value The percentComplete to set. + * @return This builder for chaining. + */ + public Builder setPercentComplete(int value) { + + percentComplete_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Percent complete of the move [0, 100].
          +     * 
          + * + * int32 percent_complete = 5; + * + * @return This builder for chaining. + */ + public Builder clearPercentComplete() { + bitField0_ = (bitField0_ & ~0x00000010); + percentComplete_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.MoveRepositoryMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.MoveRepositoryMetadata) + private static final com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata(); + } + + public static com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MoveRepositoryMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveRepositoryMetadataOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveRepositoryMetadataOrBuilder.java new file mode 100644 index 000000000000..04435933b689 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveRepositoryMetadataOrBuilder.java @@ -0,0 +1,173 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +@com.google.protobuf.Generated +public interface MoveRepositoryMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.MoveRepositoryMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Output only. The time the operation was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
          +   * Output only. The time the operation was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
          +   * Output only. The time the operation was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
          +   * Output only. The time the operation finished running.
          +   * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + + /** + * + * + *
          +   * Output only. The time the operation finished running.
          +   * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + + /** + * + * + *
          +   * Output only. The time the operation finished running.
          +   * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
          +   * Output only. Server-defined resource path for the target of the operation.
          +   * 
          + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + java.lang.String getTarget(); + + /** + * + * + *
          +   * Output only. Server-defined resource path for the target of the operation.
          +   * 
          + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + com.google.protobuf.ByteString getTargetBytes(); + + /** + * + * + *
          +   * The state of the move.
          +   * 
          + * + * .google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State state = 4; + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
          +   * The state of the move.
          +   * 
          + * + * .google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State state = 4; + * + * @return The state. + */ + com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State getState(); + + /** + * + * + *
          +   * Percent complete of the move [0, 100].
          +   * 
          + * + * int32 percent_complete = 5; + * + * @return The percentComplete. + */ + int getPercentComplete(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveRepositoryRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveRepositoryRequest.java new file mode 100644 index 000000000000..dcd522051533 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveRepositoryRequest.java @@ -0,0 +1,887 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
          + * `MoveRepository` request message.
          + * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.MoveRepositoryRequest} + */ +@com.google.protobuf.Generated +public final class MoveRepositoryRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.MoveRepositoryRequest) + MoveRepositoryRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MoveRepositoryRequest"); + } + + // Use MoveRepositoryRequest.newBuilder() to construct. + private MoveRepositoryRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MoveRepositoryRequest() { + name_ = ""; + destinationContainingFolder_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveRepositoryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveRepositoryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.MoveRepositoryRequest.class, + com.google.cloud.dataform.v1beta1.MoveRepositoryRequest.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
          +   * Required. The full resource name of the repository to move.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The full resource name of the repository to move.
          +   * 
          + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESTINATION_CONTAINING_FOLDER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object destinationContainingFolder_ = ""; + + /** + * + * + *
          +   * Optional. The name of the Folder, TeamFolder, or root location to move the
          +   * repository to. Can be in the format of: "" to move into the root User
          +   * folder, `projects/*/locations/*/folders/*`,
          +   * `projects/*/locations/*/teamFolders/*`
          +   * 
          + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the destinationContainingFolder field is set. + */ + @java.lang.Override + public boolean hasDestinationContainingFolder() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +   * Optional. The name of the Folder, TeamFolder, or root location to move the
          +   * repository to. Can be in the format of: "" to move into the root User
          +   * folder, `projects/*/locations/*/folders/*`,
          +   * `projects/*/locations/*/teamFolders/*`
          +   * 
          + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The destinationContainingFolder. + */ + @java.lang.Override + public java.lang.String getDestinationContainingFolder() { + java.lang.Object ref = destinationContainingFolder_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationContainingFolder_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. The name of the Folder, TeamFolder, or root location to move the
          +   * repository to. Can be in the format of: "" to move into the root User
          +   * folder, `projects/*/locations/*/folders/*`,
          +   * `projects/*/locations/*/teamFolders/*`
          +   * 
          + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for destinationContainingFolder. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDestinationContainingFolderBytes() { + java.lang.Object ref = destinationContainingFolder_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationContainingFolder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, destinationContainingFolder_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(2, destinationContainingFolder_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.MoveRepositoryRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.MoveRepositoryRequest other = + (com.google.cloud.dataform.v1beta1.MoveRepositoryRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasDestinationContainingFolder() != other.hasDestinationContainingFolder()) return false; + if (hasDestinationContainingFolder()) { + if (!getDestinationContainingFolder().equals(other.getDestinationContainingFolder())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasDestinationContainingFolder()) { + hash = (37 * hash) + DESTINATION_CONTAINING_FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getDestinationContainingFolder().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.MoveRepositoryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.MoveRepositoryRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.MoveRepositoryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.MoveRepositoryRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.MoveRepositoryRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.MoveRepositoryRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.MoveRepositoryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.MoveRepositoryRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.MoveRepositoryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.MoveRepositoryRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.MoveRepositoryRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.MoveRepositoryRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.MoveRepositoryRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * `MoveRepository` request message.
          +   * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.MoveRepositoryRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.MoveRepositoryRequest) + com.google.cloud.dataform.v1beta1.MoveRepositoryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveRepositoryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveRepositoryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.MoveRepositoryRequest.class, + com.google.cloud.dataform.v1beta1.MoveRepositoryRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.MoveRepositoryRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + destinationContainingFolder_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_MoveRepositoryRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveRepositoryRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.MoveRepositoryRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveRepositoryRequest build() { + com.google.cloud.dataform.v1beta1.MoveRepositoryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveRepositoryRequest buildPartial() { + com.google.cloud.dataform.v1beta1.MoveRepositoryRequest result = + new com.google.cloud.dataform.v1beta1.MoveRepositoryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1beta1.MoveRepositoryRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.destinationContainingFolder_ = destinationContainingFolder_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.MoveRepositoryRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.MoveRepositoryRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.MoveRepositoryRequest other) { + if (other == com.google.cloud.dataform.v1beta1.MoveRepositoryRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDestinationContainingFolder()) { + destinationContainingFolder_ = other.destinationContainingFolder_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + destinationContainingFolder_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
          +     * Required. The full resource name of the repository to move.
          +     * 
          + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The full resource name of the repository to move.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The full resource name of the repository to move.
          +     * 
          + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The full resource name of the repository to move.
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The full resource name of the repository to move.
          +     * 
          + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object destinationContainingFolder_ = ""; + + /** + * + * + *
          +     * Optional. The name of the Folder, TeamFolder, or root location to move the
          +     * repository to. Can be in the format of: "" to move into the root User
          +     * folder, `projects/*/locations/*/folders/*`,
          +     * `projects/*/locations/*/teamFolders/*`
          +     * 
          + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the destinationContainingFolder field is set. + */ + public boolean hasDestinationContainingFolder() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +     * Optional. The name of the Folder, TeamFolder, or root location to move the
          +     * repository to. Can be in the format of: "" to move into the root User
          +     * folder, `projects/*/locations/*/folders/*`,
          +     * `projects/*/locations/*/teamFolders/*`
          +     * 
          + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The destinationContainingFolder. + */ + public java.lang.String getDestinationContainingFolder() { + java.lang.Object ref = destinationContainingFolder_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationContainingFolder_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. The name of the Folder, TeamFolder, or root location to move the
          +     * repository to. Can be in the format of: "" to move into the root User
          +     * folder, `projects/*/locations/*/folders/*`,
          +     * `projects/*/locations/*/teamFolders/*`
          +     * 
          + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for destinationContainingFolder. + */ + public com.google.protobuf.ByteString getDestinationContainingFolderBytes() { + java.lang.Object ref = destinationContainingFolder_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationContainingFolder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. The name of the Folder, TeamFolder, or root location to move the
          +     * repository to. Can be in the format of: "" to move into the root User
          +     * folder, `projects/*/locations/*/folders/*`,
          +     * `projects/*/locations/*/teamFolders/*`
          +     * 
          + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The destinationContainingFolder to set. + * @return This builder for chaining. + */ + public Builder setDestinationContainingFolder(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destinationContainingFolder_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The name of the Folder, TeamFolder, or root location to move the
          +     * repository to. Can be in the format of: "" to move into the root User
          +     * folder, `projects/*/locations/*/folders/*`,
          +     * `projects/*/locations/*/teamFolders/*`
          +     * 
          + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDestinationContainingFolder() { + destinationContainingFolder_ = getDefaultInstance().getDestinationContainingFolder(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The name of the Folder, TeamFolder, or root location to move the
          +     * repository to. Can be in the format of: "" to move into the root User
          +     * folder, `projects/*/locations/*/folders/*`,
          +     * `projects/*/locations/*/teamFolders/*`
          +     * 
          + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for destinationContainingFolder to set. + * @return This builder for chaining. + */ + public Builder setDestinationContainingFolderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationContainingFolder_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.MoveRepositoryRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.MoveRepositoryRequest) + private static final com.google.cloud.dataform.v1beta1.MoveRepositoryRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.MoveRepositoryRequest(); + } + + public static com.google.cloud.dataform.v1beta1.MoveRepositoryRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MoveRepositoryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.MoveRepositoryRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveRepositoryRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveRepositoryRequestOrBuilder.java new file mode 100644 index 000000000000..d911870d669f --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/MoveRepositoryRequestOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +@com.google.protobuf.Generated +public interface MoveRepositoryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.MoveRepositoryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The full resource name of the repository to move.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
          +   * Required. The full resource name of the repository to move.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +   * Optional. The name of the Folder, TeamFolder, or root location to move the
          +   * repository to. Can be in the format of: "" to move into the root User
          +   * folder, `projects/*/locations/*/folders/*`,
          +   * `projects/*/locations/*/teamFolders/*`
          +   * 
          + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the destinationContainingFolder field is set. + */ + boolean hasDestinationContainingFolder(); + + /** + * + * + *
          +   * Optional. The name of the Folder, TeamFolder, or root location to move the
          +   * repository to. Can be in the format of: "" to move into the root User
          +   * folder, `projects/*/locations/*/folders/*`,
          +   * `projects/*/locations/*/teamFolders/*`
          +   * 
          + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The destinationContainingFolder. + */ + java.lang.String getDestinationContainingFolder(); + + /** + * + * + *
          +   * Optional. The name of the Folder, TeamFolder, or root location to move the
          +   * repository to. Can be in the format of: "" to move into the root User
          +   * folder, `projects/*/locations/*/folders/*`,
          +   * `projects/*/locations/*/teamFolders/*`
          +   * 
          + * + * + * optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for destinationContainingFolder. + */ + com.google.protobuf.ByteString getDestinationContainingFolderBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/PrivateResourceMetadata.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/PrivateResourceMetadata.java new file mode 100644 index 000000000000..151c4ca8419b --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/PrivateResourceMetadata.java @@ -0,0 +1,508 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
          + * Metadata used to identify if a resource is user scoped.
          + * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.PrivateResourceMetadata} + */ +@com.google.protobuf.Generated +public final class PrivateResourceMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.PrivateResourceMetadata) + PrivateResourceMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PrivateResourceMetadata"); + } + + // Use PrivateResourceMetadata.newBuilder() to construct. + private PrivateResourceMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PrivateResourceMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_PrivateResourceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_PrivateResourceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.class, + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.Builder.class); + } + + public static final int USER_SCOPED_FIELD_NUMBER = 1; + private boolean userScoped_ = false; + + /** + * + * + *
          +   * Output only. If true, this resource is user-scoped, meaning it is either a
          +   * workspace or sourced from a workspace.
          +   * 
          + * + * bool user_scoped = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The userScoped. + */ + @java.lang.Override + public boolean getUserScoped() { + return userScoped_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (userScoped_ != false) { + output.writeBool(1, userScoped_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (userScoped_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, userScoped_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.PrivateResourceMetadata)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata other = + (com.google.cloud.dataform.v1beta1.PrivateResourceMetadata) obj; + + if (getUserScoped() != other.getUserScoped()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USER_SCOPED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUserScoped()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.PrivateResourceMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.PrivateResourceMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.PrivateResourceMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.PrivateResourceMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.PrivateResourceMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.PrivateResourceMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.PrivateResourceMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.PrivateResourceMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.PrivateResourceMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.PrivateResourceMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.PrivateResourceMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.PrivateResourceMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Metadata used to identify if a resource is user scoped.
          +   * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.PrivateResourceMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.PrivateResourceMetadata) + com.google.cloud.dataform.v1beta1.PrivateResourceMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_PrivateResourceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_PrivateResourceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.class, + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userScoped_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_PrivateResourceMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.PrivateResourceMetadata getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.PrivateResourceMetadata build() { + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.PrivateResourceMetadata buildPartial() { + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata result = + new com.google.cloud.dataform.v1beta1.PrivateResourceMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1beta1.PrivateResourceMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userScoped_ = userScoped_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.PrivateResourceMetadata) { + return mergeFrom((com.google.cloud.dataform.v1beta1.PrivateResourceMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.PrivateResourceMetadata other) { + if (other == com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.getDefaultInstance()) + return this; + if (other.getUserScoped() != false) { + setUserScoped(other.getUserScoped()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + userScoped_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean userScoped_; + + /** + * + * + *
          +     * Output only. If true, this resource is user-scoped, meaning it is either a
          +     * workspace or sourced from a workspace.
          +     * 
          + * + * bool user_scoped = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The userScoped. + */ + @java.lang.Override + public boolean getUserScoped() { + return userScoped_; + } + + /** + * + * + *
          +     * Output only. If true, this resource is user-scoped, meaning it is either a
          +     * workspace or sourced from a workspace.
          +     * 
          + * + * bool user_scoped = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The userScoped to set. + * @return This builder for chaining. + */ + public Builder setUserScoped(boolean value) { + + userScoped_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. If true, this resource is user-scoped, meaning it is either a
          +     * workspace or sourced from a workspace.
          +     * 
          + * + * bool user_scoped = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUserScoped() { + bitField0_ = (bitField0_ & ~0x00000001); + userScoped_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.PrivateResourceMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.PrivateResourceMetadata) + private static final com.google.cloud.dataform.v1beta1.PrivateResourceMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.PrivateResourceMetadata(); + } + + public static com.google.cloud.dataform.v1beta1.PrivateResourceMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateResourceMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.PrivateResourceMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/PrivateResourceMetadataOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/PrivateResourceMetadataOrBuilder.java new file mode 100644 index 000000000000..fc1122a9d4a3 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/PrivateResourceMetadataOrBuilder.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +@com.google.protobuf.Generated +public interface PrivateResourceMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.PrivateResourceMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Output only. If true, this resource is user-scoped, meaning it is either a
          +   * workspace or sourced from a workspace.
          +   * 
          + * + * bool user_scoped = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The userScoped. + */ + boolean getUserScoped(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryFolderContentsRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryFolderContentsRequest.java new file mode 100644 index 000000000000..e2c0728faa66 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryFolderContentsRequest.java @@ -0,0 +1,1399 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
          + * `QueryFolderContents` request message.
          + * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.QueryFolderContentsRequest} + */ +@com.google.protobuf.Generated +public final class QueryFolderContentsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.QueryFolderContentsRequest) + QueryFolderContentsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryFolderContentsRequest"); + } + + // Use QueryFolderContentsRequest.newBuilder() to construct. + private QueryFolderContentsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QueryFolderContentsRequest() { + folder_ = ""; + pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest.class, + com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest.Builder.class); + } + + public static final int FOLDER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object folder_ = ""; + + /** + * + * + *
          +   * Required. Name of the folder whose contents to list.
          +   * Format: projects/*/locations/*/folders/*
          +   * 
          + * + * + * string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The folder. + */ + @java.lang.Override + public java.lang.String getFolder() { + java.lang.Object ref = folder_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + folder_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. Name of the folder whose contents to list.
          +   * Format: projects/*/locations/*/folders/*
          +   * 
          + * + * + * string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for folder. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFolderBytes() { + java.lang.Object ref = folder_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + folder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
          +   * Optional. Maximum number of paths to return. The server may return fewer
          +   * items than requested. If unspecified, the server will pick an appropriate
          +   * default.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
          +   * Optional. Page token received from a previous `QueryFolderContents` call.
          +   * Provide this to retrieve the subsequent page.
          +   *
          +   * When paginating, all other parameters provided to
          +   * `QueryFolderContents`, with the exception of `page_size`, must match the
          +   * call that provided the page token.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. Page token received from a previous `QueryFolderContents` call.
          +   * Provide this to retrieve the subsequent page.
          +   *
          +   * When paginating, all other parameters provided to
          +   * `QueryFolderContents`, with the exception of `page_size`, must match the
          +   * call that provided the page token.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
          +   * Optional. Field to additionally sort results by.
          +   * Will order Folders before Repositories, and then by `order_by` in ascending
          +   * order. Supported keywords: display_name (default), create_time,
          +   * last_modified_time.
          +   * Examples:
          +   * - `orderBy="display_name"`
          +   * - `orderBy="display_name desc"`
          +   * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. Field to additionally sort results by.
          +   * Will order Folders before Repositories, and then by `order_by` in ascending
          +   * order. Supported keywords: display_name (default), create_time,
          +   * last_modified_time.
          +   * Examples:
          +   * - `orderBy="display_name"`
          +   * - `orderBy="display_name desc"`
          +   * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
          +   * Optional. Optional filtering for the returned list. Filtering is currently
          +   * only supported on the `display_name` field.
          +   *
          +   * Example:
          +   * - `filter="display_name="MyFolder""`
          +   * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. Optional filtering for the returned list. Filtering is currently
          +   * only supported on the `display_name` field.
          +   *
          +   * Example:
          +   * - `filter="display_name="MyFolder""`
          +   * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(folder_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, folder_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(folder_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, folder_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, filter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest other = + (com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest) obj; + + if (!getFolder().equals(other.getFolder())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getFolder().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * `QueryFolderContents` request message.
          +   * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.QueryFolderContentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.QueryFolderContentsRequest) + com.google.cloud.dataform.v1beta1.QueryFolderContentsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest.class, + com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + folder_ = ""; + pageSize_ = 0; + pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest build() { + com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest buildPartial() { + com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest result = + new com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.folder_ = folder_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.filter_ = filter_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest other) { + if (other + == com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest.getDefaultInstance()) + return this; + if (!other.getFolder().isEmpty()) { + folder_ = other.folder_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + folder_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object folder_ = ""; + + /** + * + * + *
          +     * Required. Name of the folder whose contents to list.
          +     * Format: projects/*/locations/*/folders/*
          +     * 
          + * + * + * string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The folder. + */ + public java.lang.String getFolder() { + java.lang.Object ref = folder_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + folder_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. Name of the folder whose contents to list.
          +     * Format: projects/*/locations/*/folders/*
          +     * 
          + * + * + * string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for folder. + */ + public com.google.protobuf.ByteString getFolderBytes() { + java.lang.Object ref = folder_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + folder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. Name of the folder whose contents to list.
          +     * Format: projects/*/locations/*/folders/*
          +     * 
          + * + * + * string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The folder to set. + * @return This builder for chaining. + */ + public Builder setFolder(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + folder_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Name of the folder whose contents to list.
          +     * Format: projects/*/locations/*/folders/*
          +     * 
          + * + * + * string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearFolder() { + folder_ = getDefaultInstance().getFolder(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Name of the folder whose contents to list.
          +     * Format: projects/*/locations/*/folders/*
          +     * 
          + * + * + * string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for folder to set. + * @return This builder for chaining. + */ + public Builder setFolderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + folder_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
          +     * Optional. Maximum number of paths to return. The server may return fewer
          +     * items than requested. If unspecified, the server will pick an appropriate
          +     * default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
          +     * Optional. Maximum number of paths to return. The server may return fewer
          +     * items than requested. If unspecified, the server will pick an appropriate
          +     * default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Maximum number of paths to return. The server may return fewer
          +     * items than requested. If unspecified, the server will pick an appropriate
          +     * default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
          +     * Optional. Page token received from a previous `QueryFolderContents` call.
          +     * Provide this to retrieve the subsequent page.
          +     *
          +     * When paginating, all other parameters provided to
          +     * `QueryFolderContents`, with the exception of `page_size`, must match the
          +     * call that provided the page token.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. Page token received from a previous `QueryFolderContents` call.
          +     * Provide this to retrieve the subsequent page.
          +     *
          +     * When paginating, all other parameters provided to
          +     * `QueryFolderContents`, with the exception of `page_size`, must match the
          +     * call that provided the page token.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. Page token received from a previous `QueryFolderContents` call.
          +     * Provide this to retrieve the subsequent page.
          +     *
          +     * When paginating, all other parameters provided to
          +     * `QueryFolderContents`, with the exception of `page_size`, must match the
          +     * call that provided the page token.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Page token received from a previous `QueryFolderContents` call.
          +     * Provide this to retrieve the subsequent page.
          +     *
          +     * When paginating, all other parameters provided to
          +     * `QueryFolderContents`, with the exception of `page_size`, must match the
          +     * call that provided the page token.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Page token received from a previous `QueryFolderContents` call.
          +     * Provide this to retrieve the subsequent page.
          +     *
          +     * When paginating, all other parameters provided to
          +     * `QueryFolderContents`, with the exception of `page_size`, must match the
          +     * call that provided the page token.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
          +     * Optional. Field to additionally sort results by.
          +     * Will order Folders before Repositories, and then by `order_by` in ascending
          +     * order. Supported keywords: display_name (default), create_time,
          +     * last_modified_time.
          +     * Examples:
          +     * - `orderBy="display_name"`
          +     * - `orderBy="display_name desc"`
          +     * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. Field to additionally sort results by.
          +     * Will order Folders before Repositories, and then by `order_by` in ascending
          +     * order. Supported keywords: display_name (default), create_time,
          +     * last_modified_time.
          +     * Examples:
          +     * - `orderBy="display_name"`
          +     * - `orderBy="display_name desc"`
          +     * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. Field to additionally sort results by.
          +     * Will order Folders before Repositories, and then by `order_by` in ascending
          +     * order. Supported keywords: display_name (default), create_time,
          +     * last_modified_time.
          +     * Examples:
          +     * - `orderBy="display_name"`
          +     * - `orderBy="display_name desc"`
          +     * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Field to additionally sort results by.
          +     * Will order Folders before Repositories, and then by `order_by` in ascending
          +     * order. Supported keywords: display_name (default), create_time,
          +     * last_modified_time.
          +     * Examples:
          +     * - `orderBy="display_name"`
          +     * - `orderBy="display_name desc"`
          +     * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Field to additionally sort results by.
          +     * Will order Folders before Repositories, and then by `order_by` in ascending
          +     * order. Supported keywords: display_name (default), create_time,
          +     * last_modified_time.
          +     * Examples:
          +     * - `orderBy="display_name"`
          +     * - `orderBy="display_name desc"`
          +     * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
          +     * Optional. Optional filtering for the returned list. Filtering is currently
          +     * only supported on the `display_name` field.
          +     *
          +     * Example:
          +     * - `filter="display_name="MyFolder""`
          +     * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. Optional filtering for the returned list. Filtering is currently
          +     * only supported on the `display_name` field.
          +     *
          +     * Example:
          +     * - `filter="display_name="MyFolder""`
          +     * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. Optional filtering for the returned list. Filtering is currently
          +     * only supported on the `display_name` field.
          +     *
          +     * Example:
          +     * - `filter="display_name="MyFolder""`
          +     * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Optional filtering for the returned list. Filtering is currently
          +     * only supported on the `display_name` field.
          +     *
          +     * Example:
          +     * - `filter="display_name="MyFolder""`
          +     * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Optional filtering for the returned list. Filtering is currently
          +     * only supported on the `display_name` field.
          +     *
          +     * Example:
          +     * - `filter="display_name="MyFolder""`
          +     * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.QueryFolderContentsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.QueryFolderContentsRequest) + private static final com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest(); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryFolderContentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryFolderContentsRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryFolderContentsRequestOrBuilder.java new file mode 100644 index 000000000000..d7fdacbe3297 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryFolderContentsRequestOrBuilder.java @@ -0,0 +1,183 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +@com.google.protobuf.Generated +public interface QueryFolderContentsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.QueryFolderContentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. Name of the folder whose contents to list.
          +   * Format: projects/*/locations/*/folders/*
          +   * 
          + * + * + * string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The folder. + */ + java.lang.String getFolder(); + + /** + * + * + *
          +   * Required. Name of the folder whose contents to list.
          +   * Format: projects/*/locations/*/folders/*
          +   * 
          + * + * + * string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for folder. + */ + com.google.protobuf.ByteString getFolderBytes(); + + /** + * + * + *
          +   * Optional. Maximum number of paths to return. The server may return fewer
          +   * items than requested. If unspecified, the server will pick an appropriate
          +   * default.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
          +   * Optional. Page token received from a previous `QueryFolderContents` call.
          +   * Provide this to retrieve the subsequent page.
          +   *
          +   * When paginating, all other parameters provided to
          +   * `QueryFolderContents`, with the exception of `page_size`, must match the
          +   * call that provided the page token.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
          +   * Optional. Page token received from a previous `QueryFolderContents` call.
          +   * Provide this to retrieve the subsequent page.
          +   *
          +   * When paginating, all other parameters provided to
          +   * `QueryFolderContents`, with the exception of `page_size`, must match the
          +   * call that provided the page token.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
          +   * Optional. Field to additionally sort results by.
          +   * Will order Folders before Repositories, and then by `order_by` in ascending
          +   * order. Supported keywords: display_name (default), create_time,
          +   * last_modified_time.
          +   * Examples:
          +   * - `orderBy="display_name"`
          +   * - `orderBy="display_name desc"`
          +   * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
          +   * Optional. Field to additionally sort results by.
          +   * Will order Folders before Repositories, and then by `order_by` in ascending
          +   * order. Supported keywords: display_name (default), create_time,
          +   * last_modified_time.
          +   * Examples:
          +   * - `orderBy="display_name"`
          +   * - `orderBy="display_name desc"`
          +   * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
          +   * Optional. Optional filtering for the returned list. Filtering is currently
          +   * only supported on the `display_name` field.
          +   *
          +   * Example:
          +   * - `filter="display_name="MyFolder""`
          +   * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
          +   * Optional. Optional filtering for the returned list. Filtering is currently
          +   * only supported on the `display_name` field.
          +   *
          +   * Example:
          +   * - `filter="display_name="MyFolder""`
          +   * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryFolderContentsResponse.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryFolderContentsResponse.java new file mode 100644 index 000000000000..f20b9444240b --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryFolderContentsResponse.java @@ -0,0 +1,2426 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
          + * `QueryFolderContents` response message.
          + * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.QueryFolderContentsResponse} + */ +@com.google.protobuf.Generated +public final class QueryFolderContentsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.QueryFolderContentsResponse) + QueryFolderContentsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryFolderContentsResponse"); + } + + // Use QueryFolderContentsResponse.newBuilder() to construct. + private QueryFolderContentsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QueryFolderContentsResponse() { + entries_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.class, + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.Builder.class); + } + + public interface FolderContentsEntryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +     * A subfolder.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + * + * @return Whether the folder field is set. + */ + boolean hasFolder(); + + /** + * + * + *
          +     * A subfolder.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + * + * @return The folder. + */ + com.google.cloud.dataform.v1beta1.Folder getFolder(); + + /** + * + * + *
          +     * A subfolder.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + */ + com.google.cloud.dataform.v1beta1.FolderOrBuilder getFolderOrBuilder(); + + /** + * + * + *
          +     * A repository.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + * + * @return Whether the repository field is set. + */ + boolean hasRepository(); + + /** + * + * + *
          +     * A repository.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + * + * @return The repository. + */ + com.google.cloud.dataform.v1beta1.Repository getRepository(); + + /** + * + * + *
          +     * A repository.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + */ + com.google.cloud.dataform.v1beta1.RepositoryOrBuilder getRepositoryOrBuilder(); + + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry.EntryCase + getEntryCase(); + } + + /** + * + * + *
          +   * Represents a single content entry.
          +   * 
          + * + * Protobuf type {@code + * google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry} + */ + public static final class FolderContentsEntry extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry) + FolderContentsEntryOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FolderContentsEntry"); + } + + // Use FolderContentsEntry.newBuilder() to construct. + private FolderContentsEntry(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FolderContentsEntry() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsResponse_FolderContentsEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsResponse_FolderContentsEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + .class, + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + .Builder.class); + } + + private int entryCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object entry_; + + public enum EntryCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + FOLDER(1), + REPOSITORY(2), + ENTRY_NOT_SET(0); + private final int value; + + private EntryCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EntryCase valueOf(int value) { + return forNumber(value); + } + + public static EntryCase forNumber(int value) { + switch (value) { + case 1: + return FOLDER; + case 2: + return REPOSITORY; + case 0: + return ENTRY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EntryCase getEntryCase() { + return EntryCase.forNumber(entryCase_); + } + + public static final int FOLDER_FIELD_NUMBER = 1; + + /** + * + * + *
          +     * A subfolder.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + * + * @return Whether the folder field is set. + */ + @java.lang.Override + public boolean hasFolder() { + return entryCase_ == 1; + } + + /** + * + * + *
          +     * A subfolder.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + * + * @return The folder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Folder getFolder() { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1beta1.Folder) entry_; + } + return com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance(); + } + + /** + * + * + *
          +     * A subfolder.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FolderOrBuilder getFolderOrBuilder() { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1beta1.Folder) entry_; + } + return com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance(); + } + + public static final int REPOSITORY_FIELD_NUMBER = 2; + + /** + * + * + *
          +     * A repository.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + * + * @return Whether the repository field is set. + */ + @java.lang.Override + public boolean hasRepository() { + return entryCase_ == 2; + } + + /** + * + * + *
          +     * A repository.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + * + * @return The repository. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository getRepository() { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1beta1.Repository) entry_; + } + return com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance(); + } + + /** + * + * + *
          +     * A repository.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.RepositoryOrBuilder getRepositoryOrBuilder() { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1beta1.Repository) entry_; + } + return com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (entryCase_ == 1) { + output.writeMessage(1, (com.google.cloud.dataform.v1beta1.Folder) entry_); + } + if (entryCase_ == 2) { + output.writeMessage(2, (com.google.cloud.dataform.v1beta1.Repository) entry_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (entryCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.dataform.v1beta1.Folder) entry_); + } + if (entryCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.dataform.v1beta1.Repository) entry_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry other = + (com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry) obj; + + if (!getEntryCase().equals(other.getEntryCase())) return false; + switch (entryCase_) { + case 1: + if (!getFolder().equals(other.getFolder())) return false; + break; + case 2: + if (!getRepository().equals(other.getRepository())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (entryCase_) { + case 1: + hash = (37 * hash) + FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getFolder().hashCode(); + break; + case 2: + hash = (37 * hash) + REPOSITORY_FIELD_NUMBER; + hash = (53 * hash) + getRepository().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +     * Represents a single content entry.
          +     * 
          + * + * Protobuf type {@code + * google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry) + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsResponse_FolderContentsEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsResponse_FolderContentsEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + .class, + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + .Builder.class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (folderBuilder_ != null) { + folderBuilder_.clear(); + } + if (repositoryBuilder_ != null) { + repositoryBuilder_.clear(); + } + entryCase_ = 0; + entry_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsResponse_FolderContentsEntry_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + build() { + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + buildPartial() { + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry result = + new com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + result) { + result.entryCase_ = entryCase_; + result.entry_ = this.entry_; + if (entryCase_ == 1 && folderBuilder_ != null) { + result.entry_ = folderBuilder_.build(); + } + if (entryCase_ == 2 && repositoryBuilder_ != null) { + result.entry_ = repositoryBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry) { + return mergeFrom( + (com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry other) { + if (other + == com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + .getDefaultInstance()) return this; + switch (other.getEntryCase()) { + case FOLDER: + { + mergeFolder(other.getFolder()); + break; + } + case REPOSITORY: + { + mergeRepository(other.getRepository()); + break; + } + case ENTRY_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetFolderFieldBuilder().getBuilder(), extensionRegistry); + entryCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetRepositoryFieldBuilder().getBuilder(), extensionRegistry); + entryCase_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int entryCase_ = 0; + private java.lang.Object entry_; + + public EntryCase getEntryCase() { + return EntryCase.forNumber(entryCase_); + } + + public Builder clearEntry() { + entryCase_ = 0; + entry_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.Folder, + com.google.cloud.dataform.v1beta1.Folder.Builder, + com.google.cloud.dataform.v1beta1.FolderOrBuilder> + folderBuilder_; + + /** + * + * + *
          +       * A subfolder.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + * + * @return Whether the folder field is set. + */ + @java.lang.Override + public boolean hasFolder() { + return entryCase_ == 1; + } + + /** + * + * + *
          +       * A subfolder.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + * + * @return The folder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Folder getFolder() { + if (folderBuilder_ == null) { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1beta1.Folder) entry_; + } + return com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance(); + } else { + if (entryCase_ == 1) { + return folderBuilder_.getMessage(); + } + return com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance(); + } + } + + /** + * + * + *
          +       * A subfolder.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + */ + public Builder setFolder(com.google.cloud.dataform.v1beta1.Folder value) { + if (folderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entry_ = value; + onChanged(); + } else { + folderBuilder_.setMessage(value); + } + entryCase_ = 1; + return this; + } + + /** + * + * + *
          +       * A subfolder.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + */ + public Builder setFolder(com.google.cloud.dataform.v1beta1.Folder.Builder builderForValue) { + if (folderBuilder_ == null) { + entry_ = builderForValue.build(); + onChanged(); + } else { + folderBuilder_.setMessage(builderForValue.build()); + } + entryCase_ = 1; + return this; + } + + /** + * + * + *
          +       * A subfolder.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + */ + public Builder mergeFolder(com.google.cloud.dataform.v1beta1.Folder value) { + if (folderBuilder_ == null) { + if (entryCase_ == 1 + && entry_ != com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance()) { + entry_ = + com.google.cloud.dataform.v1beta1.Folder.newBuilder( + (com.google.cloud.dataform.v1beta1.Folder) entry_) + .mergeFrom(value) + .buildPartial(); + } else { + entry_ = value; + } + onChanged(); + } else { + if (entryCase_ == 1) { + folderBuilder_.mergeFrom(value); + } else { + folderBuilder_.setMessage(value); + } + } + entryCase_ = 1; + return this; + } + + /** + * + * + *
          +       * A subfolder.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + */ + public Builder clearFolder() { + if (folderBuilder_ == null) { + if (entryCase_ == 1) { + entryCase_ = 0; + entry_ = null; + onChanged(); + } + } else { + if (entryCase_ == 1) { + entryCase_ = 0; + entry_ = null; + } + folderBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +       * A subfolder.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + */ + public com.google.cloud.dataform.v1beta1.Folder.Builder getFolderBuilder() { + return internalGetFolderFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +       * A subfolder.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FolderOrBuilder getFolderOrBuilder() { + if ((entryCase_ == 1) && (folderBuilder_ != null)) { + return folderBuilder_.getMessageOrBuilder(); + } else { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1beta1.Folder) entry_; + } + return com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance(); + } + } + + /** + * + * + *
          +       * A subfolder.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.Folder, + com.google.cloud.dataform.v1beta1.Folder.Builder, + com.google.cloud.dataform.v1beta1.FolderOrBuilder> + internalGetFolderFieldBuilder() { + if (folderBuilder_ == null) { + if (!(entryCase_ == 1)) { + entry_ = com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance(); + } + folderBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.Folder, + com.google.cloud.dataform.v1beta1.Folder.Builder, + com.google.cloud.dataform.v1beta1.FolderOrBuilder>( + (com.google.cloud.dataform.v1beta1.Folder) entry_, + getParentForChildren(), + isClean()); + entry_ = null; + } + entryCase_ = 1; + onChanged(); + return folderBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.Repository, + com.google.cloud.dataform.v1beta1.Repository.Builder, + com.google.cloud.dataform.v1beta1.RepositoryOrBuilder> + repositoryBuilder_; + + /** + * + * + *
          +       * A repository.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + * + * @return Whether the repository field is set. + */ + @java.lang.Override + public boolean hasRepository() { + return entryCase_ == 2; + } + + /** + * + * + *
          +       * A repository.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + * + * @return The repository. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository getRepository() { + if (repositoryBuilder_ == null) { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1beta1.Repository) entry_; + } + return com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance(); + } else { + if (entryCase_ == 2) { + return repositoryBuilder_.getMessage(); + } + return com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance(); + } + } + + /** + * + * + *
          +       * A repository.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + */ + public Builder setRepository(com.google.cloud.dataform.v1beta1.Repository value) { + if (repositoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entry_ = value; + onChanged(); + } else { + repositoryBuilder_.setMessage(value); + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
          +       * A repository.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + */ + public Builder setRepository( + com.google.cloud.dataform.v1beta1.Repository.Builder builderForValue) { + if (repositoryBuilder_ == null) { + entry_ = builderForValue.build(); + onChanged(); + } else { + repositoryBuilder_.setMessage(builderForValue.build()); + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
          +       * A repository.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + */ + public Builder mergeRepository(com.google.cloud.dataform.v1beta1.Repository value) { + if (repositoryBuilder_ == null) { + if (entryCase_ == 2 + && entry_ != com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance()) { + entry_ = + com.google.cloud.dataform.v1beta1.Repository.newBuilder( + (com.google.cloud.dataform.v1beta1.Repository) entry_) + .mergeFrom(value) + .buildPartial(); + } else { + entry_ = value; + } + onChanged(); + } else { + if (entryCase_ == 2) { + repositoryBuilder_.mergeFrom(value); + } else { + repositoryBuilder_.setMessage(value); + } + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
          +       * A repository.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + */ + public Builder clearRepository() { + if (repositoryBuilder_ == null) { + if (entryCase_ == 2) { + entryCase_ = 0; + entry_ = null; + onChanged(); + } + } else { + if (entryCase_ == 2) { + entryCase_ = 0; + entry_ = null; + } + repositoryBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +       * A repository.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + */ + public com.google.cloud.dataform.v1beta1.Repository.Builder getRepositoryBuilder() { + return internalGetRepositoryFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +       * A repository.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.RepositoryOrBuilder getRepositoryOrBuilder() { + if ((entryCase_ == 2) && (repositoryBuilder_ != null)) { + return repositoryBuilder_.getMessageOrBuilder(); + } else { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1beta1.Repository) entry_; + } + return com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance(); + } + } + + /** + * + * + *
          +       * A repository.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.Repository, + com.google.cloud.dataform.v1beta1.Repository.Builder, + com.google.cloud.dataform.v1beta1.RepositoryOrBuilder> + internalGetRepositoryFieldBuilder() { + if (repositoryBuilder_ == null) { + if (!(entryCase_ == 2)) { + entry_ = com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance(); + } + repositoryBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.Repository, + com.google.cloud.dataform.v1beta1.Repository.Builder, + com.google.cloud.dataform.v1beta1.RepositoryOrBuilder>( + (com.google.cloud.dataform.v1beta1.Repository) entry_, + getParentForChildren(), + isClean()); + entry_ = null; + } + entryCase_ = 2; + onChanged(); + return repositoryBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry) + private static final com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse + .FolderContentsEntry + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry(); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FolderContentsEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int ENTRIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry> + entries_; + + /** + * + * + *
          +   * List of entries in the folder.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry> + getEntriesList() { + return entries_; + } + + /** + * + * + *
          +   * List of entries in the folder.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse + .FolderContentsEntryOrBuilder> + getEntriesOrBuilderList() { + return entries_; + } + + /** + * + * + *
          +   * List of entries in the folder.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + @java.lang.Override + public int getEntriesCount() { + return entries_.size(); + } + + /** + * + * + *
          +   * List of entries in the folder.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + getEntries(int index) { + return entries_.get(index); + } + + /** + * + * + *
          +   * List of entries in the folder.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntryOrBuilder + getEntriesOrBuilder(int index) { + return entries_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
          +   * A token, which can be sent as `page_token` to retrieve the next page.
          +   * If this field is omitted, there are no subsequent pages.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
          +   * A token, which can be sent as `page_token` to retrieve the next page.
          +   * If this field is omitted, there are no subsequent pages.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < entries_.size(); i++) { + output.writeMessage(1, entries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < entries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse other = + (com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse) obj; + + if (!getEntriesList().equals(other.getEntriesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEntriesCount() > 0) { + hash = (37 * hash) + ENTRIES_FIELD_NUMBER; + hash = (53 * hash) + getEntriesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * `QueryFolderContents` response message.
          +   * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.QueryFolderContentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.QueryFolderContentsResponse) + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.class, + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (entriesBuilder_ == null) { + entries_ = java.util.Collections.emptyList(); + } else { + entries_ = null; + entriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse build() { + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse buildPartial() { + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse result = + new com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse result) { + if (entriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + entries_ = java.util.Collections.unmodifiableList(entries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.entries_ = entries_; + } else { + result.entries_ = entriesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse) { + return mergeFrom((com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse other) { + if (other + == com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.getDefaultInstance()) + return this; + if (entriesBuilder_ == null) { + if (!other.entries_.isEmpty()) { + if (entries_.isEmpty()) { + entries_ = other.entries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEntriesIsMutable(); + entries_.addAll(other.entries_); + } + onChanged(); + } + } else { + if (!other.entries_.isEmpty()) { + if (entriesBuilder_.isEmpty()) { + entriesBuilder_.dispose(); + entriesBuilder_ = null; + entries_ = other.entries_; + bitField0_ = (bitField0_ & ~0x00000001); + entriesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetEntriesFieldBuilder() + : null; + } else { + entriesBuilder_.addAllMessages(other.entries_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + m = + input.readMessage( + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse + .FolderContentsEntry.parser(), + extensionRegistry); + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(m); + } else { + entriesBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry> + entries_ = java.util.Collections.emptyList(); + + private void ensureEntriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + entries_ = + new java.util.ArrayList< + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry>( + entries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry, + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + .Builder, + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse + .FolderContentsEntryOrBuilder> + entriesBuilder_; + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public java.util.List< + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry> + getEntriesList() { + if (entriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(entries_); + } else { + return entriesBuilder_.getMessageList(); + } + } + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public int getEntriesCount() { + if (entriesBuilder_ == null) { + return entries_.size(); + } else { + return entriesBuilder_.getCount(); + } + } + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + getEntries(int index) { + if (entriesBuilder_ == null) { + return entries_.get(index); + } else { + return entriesBuilder_.getMessage(index); + } + } + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public Builder setEntries( + int index, + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.set(index, value); + onChanged(); + } else { + entriesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public Builder setEntries( + int index, + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.set(index, builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public Builder addEntries( + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.add(value); + onChanged(); + } else { + entriesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public Builder addEntries( + int index, + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.add(index, value); + onChanged(); + } else { + entriesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public Builder addEntries( + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public Builder addEntries( + int index, + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(index, builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public Builder addAllEntries( + java.lang.Iterable< + ? extends + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse + .FolderContentsEntry> + values) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entries_); + onChanged(); + } else { + entriesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public Builder clearEntries() { + if (entriesBuilder_ == null) { + entries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + entriesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public Builder removeEntries(int index) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.remove(index); + onChanged(); + } else { + entriesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry.Builder + getEntriesBuilder(int index) { + return internalGetEntriesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse + .FolderContentsEntryOrBuilder + getEntriesOrBuilder(int index) { + if (entriesBuilder_ == null) { + return entries_.get(index); + } else { + return entriesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse + .FolderContentsEntryOrBuilder> + getEntriesOrBuilderList() { + if (entriesBuilder_ != null) { + return entriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(entries_); + } + } + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry.Builder + addEntriesBuilder() { + return internalGetEntriesFieldBuilder() + .addBuilder( + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + .getDefaultInstance()); + } + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry.Builder + addEntriesBuilder(int index) { + return internalGetEntriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + .getDefaultInstance()); + } + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + public java.util.List< + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + .Builder> + getEntriesBuilderList() { + return internalGetEntriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry, + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + .Builder, + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse + .FolderContentsEntryOrBuilder> + internalGetEntriesFieldBuilder() { + if (entriesBuilder_ == null) { + entriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry, + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + .Builder, + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse + .FolderContentsEntryOrBuilder>( + entries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + entries_ = null; + } + return entriesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
          +     * A token, which can be sent as `page_token` to retrieve the next page.
          +     * If this field is omitted, there are no subsequent pages.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * A token, which can be sent as `page_token` to retrieve the next page.
          +     * If this field is omitted, there are no subsequent pages.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * A token, which can be sent as `page_token` to retrieve the next page.
          +     * If this field is omitted, there are no subsequent pages.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * A token, which can be sent as `page_token` to retrieve the next page.
          +     * If this field is omitted, there are no subsequent pages.
          +     * 
          + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * A token, which can be sent as `page_token` to retrieve the next page.
          +     * If this field is omitted, there are no subsequent pages.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.QueryFolderContentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.QueryFolderContentsResponse) + private static final com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse(); + } + + public static com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryFolderContentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryFolderContentsResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryFolderContentsResponseOrBuilder.java new file mode 100644 index 000000000000..73de518fe43d --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryFolderContentsResponseOrBuilder.java @@ -0,0 +1,128 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +@com.google.protobuf.Generated +public interface QueryFolderContentsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.QueryFolderContentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * List of entries in the folder.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + java.util.List + getEntriesList(); + + /** + * + * + *
          +   * List of entries in the folder.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry getEntries( + int index); + + /** + * + * + *
          +   * List of entries in the folder.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + int getEntriesCount(); + + /** + * + * + *
          +   * List of entries in the folder.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse + .FolderContentsEntryOrBuilder> + getEntriesOrBuilderList(); + + /** + * + * + *
          +   * List of entries in the folder.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * + */ + com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntryOrBuilder + getEntriesOrBuilder(int index); + + /** + * + * + *
          +   * A token, which can be sent as `page_token` to retrieve the next page.
          +   * If this field is omitted, there are no subsequent pages.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
          +   * A token, which can be sent as `page_token` to retrieve the next page.
          +   * If this field is omitted, there are no subsequent pages.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryTeamFolderContentsRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryTeamFolderContentsRequest.java new file mode 100644 index 000000000000..b8ba79b6c28d --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryTeamFolderContentsRequest.java @@ -0,0 +1,1402 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
          + * `QueryTeamFolderContents` request message.
          + * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest} + */ +@com.google.protobuf.Generated +public final class QueryTeamFolderContentsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest) + QueryTeamFolderContentsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryTeamFolderContentsRequest"); + } + + // Use QueryTeamFolderContentsRequest.newBuilder() to construct. + private QueryTeamFolderContentsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QueryTeamFolderContentsRequest() { + teamFolder_ = ""; + pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest.class, + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest.Builder.class); + } + + public static final int TEAM_FOLDER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object teamFolder_ = ""; + + /** + * + * + *
          +   * Required. Name of the team_folder whose contents to list.
          +   * Format: `projects/*/locations/*/teamFolders/*`.
          +   * 
          + * + * + * string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The teamFolder. + */ + @java.lang.Override + public java.lang.String getTeamFolder() { + java.lang.Object ref = teamFolder_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamFolder_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. Name of the team_folder whose contents to list.
          +   * Format: `projects/*/locations/*/teamFolders/*`.
          +   * 
          + * + * + * string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for teamFolder. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTeamFolderBytes() { + java.lang.Object ref = teamFolder_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + teamFolder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
          +   * Optional. Maximum number of paths to return. The server may return fewer
          +   * items than requested. If unspecified, the server will pick an appropriate
          +   * default.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
          +   * Optional. Page token received from a previous `QueryTeamFolderContents`
          +   * call. Provide this to retrieve the subsequent page.
          +   *
          +   * When paginating, all other parameters provided to
          +   * `QueryTeamFolderContents`, with the exception of `page_size`, must match
          +   * the call that provided the page token.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. Page token received from a previous `QueryTeamFolderContents`
          +   * call. Provide this to retrieve the subsequent page.
          +   *
          +   * When paginating, all other parameters provided to
          +   * `QueryTeamFolderContents`, with the exception of `page_size`, must match
          +   * the call that provided the page token.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
          +   * Optional. Field to additionally sort results by.
          +   * Will order Folders before Repositories, and then by `order_by` in ascending
          +   * order. Supported keywords: `display_name` (default), `create_time`,
          +   * last_modified_time.
          +   * Examples:
          +   * - `orderBy="display_name"`
          +   * - `orderBy="display_name desc"`
          +   * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. Field to additionally sort results by.
          +   * Will order Folders before Repositories, and then by `order_by` in ascending
          +   * order. Supported keywords: `display_name` (default), `create_time`,
          +   * last_modified_time.
          +   * Examples:
          +   * - `orderBy="display_name"`
          +   * - `orderBy="display_name desc"`
          +   * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
          +   * Optional. Optional filtering for the returned list. Filtering is currently
          +   * only supported on the `display_name` field.
          +   *
          +   * Example:
          +   * - `filter="display_name="MyFolder""`
          +   * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. Optional filtering for the returned list. Filtering is currently
          +   * only supported on the `display_name` field.
          +   *
          +   * Example:
          +   * - `filter="display_name="MyFolder""`
          +   * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(teamFolder_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, teamFolder_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(teamFolder_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, teamFolder_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, filter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest other = + (com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest) obj; + + if (!getTeamFolder().equals(other.getTeamFolder())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TEAM_FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getTeamFolder().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * `QueryTeamFolderContents` request message.
          +   * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest) + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest.class, + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + teamFolder_ = ""; + pageSize_ = 0; + pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest build() { + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest buildPartial() { + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest result = + new com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.teamFolder_ = teamFolder_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.filter_ = filter_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest other) { + if (other + == com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest.getDefaultInstance()) + return this; + if (!other.getTeamFolder().isEmpty()) { + teamFolder_ = other.teamFolder_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + teamFolder_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object teamFolder_ = ""; + + /** + * + * + *
          +     * Required. Name of the team_folder whose contents to list.
          +     * Format: `projects/*/locations/*/teamFolders/*`.
          +     * 
          + * + * + * string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The teamFolder. + */ + public java.lang.String getTeamFolder() { + java.lang.Object ref = teamFolder_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamFolder_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. Name of the team_folder whose contents to list.
          +     * Format: `projects/*/locations/*/teamFolders/*`.
          +     * 
          + * + * + * string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for teamFolder. + */ + public com.google.protobuf.ByteString getTeamFolderBytes() { + java.lang.Object ref = teamFolder_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + teamFolder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. Name of the team_folder whose contents to list.
          +     * Format: `projects/*/locations/*/teamFolders/*`.
          +     * 
          + * + * + * string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The teamFolder to set. + * @return This builder for chaining. + */ + public Builder setTeamFolder(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + teamFolder_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Name of the team_folder whose contents to list.
          +     * Format: `projects/*/locations/*/teamFolders/*`.
          +     * 
          + * + * + * string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTeamFolder() { + teamFolder_ = getDefaultInstance().getTeamFolder(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Name of the team_folder whose contents to list.
          +     * Format: `projects/*/locations/*/teamFolders/*`.
          +     * 
          + * + * + * string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for teamFolder to set. + * @return This builder for chaining. + */ + public Builder setTeamFolderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + teamFolder_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
          +     * Optional. Maximum number of paths to return. The server may return fewer
          +     * items than requested. If unspecified, the server will pick an appropriate
          +     * default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
          +     * Optional. Maximum number of paths to return. The server may return fewer
          +     * items than requested. If unspecified, the server will pick an appropriate
          +     * default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Maximum number of paths to return. The server may return fewer
          +     * items than requested. If unspecified, the server will pick an appropriate
          +     * default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
          +     * Optional. Page token received from a previous `QueryTeamFolderContents`
          +     * call. Provide this to retrieve the subsequent page.
          +     *
          +     * When paginating, all other parameters provided to
          +     * `QueryTeamFolderContents`, with the exception of `page_size`, must match
          +     * the call that provided the page token.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. Page token received from a previous `QueryTeamFolderContents`
          +     * call. Provide this to retrieve the subsequent page.
          +     *
          +     * When paginating, all other parameters provided to
          +     * `QueryTeamFolderContents`, with the exception of `page_size`, must match
          +     * the call that provided the page token.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. Page token received from a previous `QueryTeamFolderContents`
          +     * call. Provide this to retrieve the subsequent page.
          +     *
          +     * When paginating, all other parameters provided to
          +     * `QueryTeamFolderContents`, with the exception of `page_size`, must match
          +     * the call that provided the page token.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Page token received from a previous `QueryTeamFolderContents`
          +     * call. Provide this to retrieve the subsequent page.
          +     *
          +     * When paginating, all other parameters provided to
          +     * `QueryTeamFolderContents`, with the exception of `page_size`, must match
          +     * the call that provided the page token.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Page token received from a previous `QueryTeamFolderContents`
          +     * call. Provide this to retrieve the subsequent page.
          +     *
          +     * When paginating, all other parameters provided to
          +     * `QueryTeamFolderContents`, with the exception of `page_size`, must match
          +     * the call that provided the page token.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
          +     * Optional. Field to additionally sort results by.
          +     * Will order Folders before Repositories, and then by `order_by` in ascending
          +     * order. Supported keywords: `display_name` (default), `create_time`,
          +     * last_modified_time.
          +     * Examples:
          +     * - `orderBy="display_name"`
          +     * - `orderBy="display_name desc"`
          +     * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. Field to additionally sort results by.
          +     * Will order Folders before Repositories, and then by `order_by` in ascending
          +     * order. Supported keywords: `display_name` (default), `create_time`,
          +     * last_modified_time.
          +     * Examples:
          +     * - `orderBy="display_name"`
          +     * - `orderBy="display_name desc"`
          +     * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. Field to additionally sort results by.
          +     * Will order Folders before Repositories, and then by `order_by` in ascending
          +     * order. Supported keywords: `display_name` (default), `create_time`,
          +     * last_modified_time.
          +     * Examples:
          +     * - `orderBy="display_name"`
          +     * - `orderBy="display_name desc"`
          +     * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Field to additionally sort results by.
          +     * Will order Folders before Repositories, and then by `order_by` in ascending
          +     * order. Supported keywords: `display_name` (default), `create_time`,
          +     * last_modified_time.
          +     * Examples:
          +     * - `orderBy="display_name"`
          +     * - `orderBy="display_name desc"`
          +     * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Field to additionally sort results by.
          +     * Will order Folders before Repositories, and then by `order_by` in ascending
          +     * order. Supported keywords: `display_name` (default), `create_time`,
          +     * last_modified_time.
          +     * Examples:
          +     * - `orderBy="display_name"`
          +     * - `orderBy="display_name desc"`
          +     * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
          +     * Optional. Optional filtering for the returned list. Filtering is currently
          +     * only supported on the `display_name` field.
          +     *
          +     * Example:
          +     * - `filter="display_name="MyFolder""`
          +     * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. Optional filtering for the returned list. Filtering is currently
          +     * only supported on the `display_name` field.
          +     *
          +     * Example:
          +     * - `filter="display_name="MyFolder""`
          +     * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. Optional filtering for the returned list. Filtering is currently
          +     * only supported on the `display_name` field.
          +     *
          +     * Example:
          +     * - `filter="display_name="MyFolder""`
          +     * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Optional filtering for the returned list. Filtering is currently
          +     * only supported on the `display_name` field.
          +     *
          +     * Example:
          +     * - `filter="display_name="MyFolder""`
          +     * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Optional filtering for the returned list. Filtering is currently
          +     * only supported on the `display_name` field.
          +     *
          +     * Example:
          +     * - `filter="display_name="MyFolder""`
          +     * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest) + private static final com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest(); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryTeamFolderContentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryTeamFolderContentsRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryTeamFolderContentsRequestOrBuilder.java new file mode 100644 index 000000000000..f6c9d647fee8 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryTeamFolderContentsRequestOrBuilder.java @@ -0,0 +1,183 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +@com.google.protobuf.Generated +public interface QueryTeamFolderContentsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. Name of the team_folder whose contents to list.
          +   * Format: `projects/*/locations/*/teamFolders/*`.
          +   * 
          + * + * + * string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The teamFolder. + */ + java.lang.String getTeamFolder(); + + /** + * + * + *
          +   * Required. Name of the team_folder whose contents to list.
          +   * Format: `projects/*/locations/*/teamFolders/*`.
          +   * 
          + * + * + * string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for teamFolder. + */ + com.google.protobuf.ByteString getTeamFolderBytes(); + + /** + * + * + *
          +   * Optional. Maximum number of paths to return. The server may return fewer
          +   * items than requested. If unspecified, the server will pick an appropriate
          +   * default.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
          +   * Optional. Page token received from a previous `QueryTeamFolderContents`
          +   * call. Provide this to retrieve the subsequent page.
          +   *
          +   * When paginating, all other parameters provided to
          +   * `QueryTeamFolderContents`, with the exception of `page_size`, must match
          +   * the call that provided the page token.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
          +   * Optional. Page token received from a previous `QueryTeamFolderContents`
          +   * call. Provide this to retrieve the subsequent page.
          +   *
          +   * When paginating, all other parameters provided to
          +   * `QueryTeamFolderContents`, with the exception of `page_size`, must match
          +   * the call that provided the page token.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
          +   * Optional. Field to additionally sort results by.
          +   * Will order Folders before Repositories, and then by `order_by` in ascending
          +   * order. Supported keywords: `display_name` (default), `create_time`,
          +   * last_modified_time.
          +   * Examples:
          +   * - `orderBy="display_name"`
          +   * - `orderBy="display_name desc"`
          +   * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
          +   * Optional. Field to additionally sort results by.
          +   * Will order Folders before Repositories, and then by `order_by` in ascending
          +   * order. Supported keywords: `display_name` (default), `create_time`,
          +   * last_modified_time.
          +   * Examples:
          +   * - `orderBy="display_name"`
          +   * - `orderBy="display_name desc"`
          +   * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
          +   * Optional. Optional filtering for the returned list. Filtering is currently
          +   * only supported on the `display_name` field.
          +   *
          +   * Example:
          +   * - `filter="display_name="MyFolder""`
          +   * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
          +   * Optional. Optional filtering for the returned list. Filtering is currently
          +   * only supported on the `display_name` field.
          +   *
          +   * Example:
          +   * - `filter="display_name="MyFolder""`
          +   * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryTeamFolderContentsResponse.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryTeamFolderContentsResponse.java new file mode 100644 index 000000000000..0a368c7c3169 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryTeamFolderContentsResponse.java @@ -0,0 +1,2474 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
          + * `QueryTeamFolderContents` response message.
          + * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse} + */ +@com.google.protobuf.Generated +public final class QueryTeamFolderContentsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse) + QueryTeamFolderContentsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryTeamFolderContentsResponse"); + } + + // Use QueryTeamFolderContentsResponse.newBuilder() to construct. + private QueryTeamFolderContentsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QueryTeamFolderContentsResponse() { + entries_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.class, + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.Builder.class); + } + + public interface TeamFolderContentsEntryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +     * A subfolder.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + * + * @return Whether the folder field is set. + */ + boolean hasFolder(); + + /** + * + * + *
          +     * A subfolder.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + * + * @return The folder. + */ + com.google.cloud.dataform.v1beta1.Folder getFolder(); + + /** + * + * + *
          +     * A subfolder.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + */ + com.google.cloud.dataform.v1beta1.FolderOrBuilder getFolderOrBuilder(); + + /** + * + * + *
          +     * A repository.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + * + * @return Whether the repository field is set. + */ + boolean hasRepository(); + + /** + * + * + *
          +     * A repository.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + * + * @return The repository. + */ + com.google.cloud.dataform.v1beta1.Repository getRepository(); + + /** + * + * + *
          +     * A repository.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + */ + com.google.cloud.dataform.v1beta1.RepositoryOrBuilder getRepositoryOrBuilder(); + + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .EntryCase + getEntryCase(); + } + + /** + * + * + *
          +   * Represents a single content entry.
          +   * 
          + * + * Protobuf type {@code + * google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry} + */ + public static final class TeamFolderContentsEntry extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry) + TeamFolderContentsEntryOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TeamFolderContentsEntry"); + } + + // Use TeamFolderContentsEntry.newBuilder() to construct. + private TeamFolderContentsEntry(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TeamFolderContentsEntry() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsResponse_TeamFolderContentsEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsResponse_TeamFolderContentsEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry.class, + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry.Builder.class); + } + + private int entryCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object entry_; + + public enum EntryCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + FOLDER(1), + REPOSITORY(2), + ENTRY_NOT_SET(0); + private final int value; + + private EntryCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EntryCase valueOf(int value) { + return forNumber(value); + } + + public static EntryCase forNumber(int value) { + switch (value) { + case 1: + return FOLDER; + case 2: + return REPOSITORY; + case 0: + return ENTRY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EntryCase getEntryCase() { + return EntryCase.forNumber(entryCase_); + } + + public static final int FOLDER_FIELD_NUMBER = 1; + + /** + * + * + *
          +     * A subfolder.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + * + * @return Whether the folder field is set. + */ + @java.lang.Override + public boolean hasFolder() { + return entryCase_ == 1; + } + + /** + * + * + *
          +     * A subfolder.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + * + * @return The folder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Folder getFolder() { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1beta1.Folder) entry_; + } + return com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance(); + } + + /** + * + * + *
          +     * A subfolder.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FolderOrBuilder getFolderOrBuilder() { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1beta1.Folder) entry_; + } + return com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance(); + } + + public static final int REPOSITORY_FIELD_NUMBER = 2; + + /** + * + * + *
          +     * A repository.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + * + * @return Whether the repository field is set. + */ + @java.lang.Override + public boolean hasRepository() { + return entryCase_ == 2; + } + + /** + * + * + *
          +     * A repository.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + * + * @return The repository. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository getRepository() { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1beta1.Repository) entry_; + } + return com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance(); + } + + /** + * + * + *
          +     * A repository.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.RepositoryOrBuilder getRepositoryOrBuilder() { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1beta1.Repository) entry_; + } + return com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (entryCase_ == 1) { + output.writeMessage(1, (com.google.cloud.dataform.v1beta1.Folder) entry_); + } + if (entryCase_ == 2) { + output.writeMessage(2, (com.google.cloud.dataform.v1beta1.Repository) entry_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (entryCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.dataform.v1beta1.Folder) entry_); + } + if (entryCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.dataform.v1beta1.Repository) entry_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + other = + (com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry) + obj; + + if (!getEntryCase().equals(other.getEntryCase())) return false; + switch (entryCase_) { + case 1: + if (!getFolder().equals(other.getFolder())) return false; + break; + case 2: + if (!getRepository().equals(other.getRepository())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (entryCase_) { + case 1: + hash = (37 * hash) + FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getFolder().hashCode(); + break; + case 2: + hash = (37 * hash) + REPOSITORY_FIELD_NUMBER; + hash = (53 * hash) + getRepository().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +     * Represents a single content entry.
          +     * 
          + * + * Protobuf type {@code + * google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry) + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsResponse_TeamFolderContentsEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsResponse_TeamFolderContentsEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry.class, + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry.Builder.class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (folderBuilder_ != null) { + folderBuilder_.clear(); + } + if (repositoryBuilder_ != null) { + repositoryBuilder_.clear(); + } + entryCase_ = 0; + entry_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsResponse_TeamFolderContentsEntry_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + build() { + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + buildPartial() { + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + result = + new com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + result) { + result.entryCase_ = entryCase_; + result.entry_ = this.entry_; + if (entryCase_ == 1 && folderBuilder_ != null) { + result.entry_ = folderBuilder_.build(); + } + if (entryCase_ == 2 && repositoryBuilder_ != null) { + result.entry_ = repositoryBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry) { + return mergeFrom( + (com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + other) { + if (other + == com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry.getDefaultInstance()) return this; + switch (other.getEntryCase()) { + case FOLDER: + { + mergeFolder(other.getFolder()); + break; + } + case REPOSITORY: + { + mergeRepository(other.getRepository()); + break; + } + case ENTRY_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetFolderFieldBuilder().getBuilder(), extensionRegistry); + entryCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetRepositoryFieldBuilder().getBuilder(), extensionRegistry); + entryCase_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int entryCase_ = 0; + private java.lang.Object entry_; + + public EntryCase getEntryCase() { + return EntryCase.forNumber(entryCase_); + } + + public Builder clearEntry() { + entryCase_ = 0; + entry_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.Folder, + com.google.cloud.dataform.v1beta1.Folder.Builder, + com.google.cloud.dataform.v1beta1.FolderOrBuilder> + folderBuilder_; + + /** + * + * + *
          +       * A subfolder.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + * + * @return Whether the folder field is set. + */ + @java.lang.Override + public boolean hasFolder() { + return entryCase_ == 1; + } + + /** + * + * + *
          +       * A subfolder.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + * + * @return The folder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Folder getFolder() { + if (folderBuilder_ == null) { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1beta1.Folder) entry_; + } + return com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance(); + } else { + if (entryCase_ == 1) { + return folderBuilder_.getMessage(); + } + return com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance(); + } + } + + /** + * + * + *
          +       * A subfolder.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + */ + public Builder setFolder(com.google.cloud.dataform.v1beta1.Folder value) { + if (folderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entry_ = value; + onChanged(); + } else { + folderBuilder_.setMessage(value); + } + entryCase_ = 1; + return this; + } + + /** + * + * + *
          +       * A subfolder.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + */ + public Builder setFolder(com.google.cloud.dataform.v1beta1.Folder.Builder builderForValue) { + if (folderBuilder_ == null) { + entry_ = builderForValue.build(); + onChanged(); + } else { + folderBuilder_.setMessage(builderForValue.build()); + } + entryCase_ = 1; + return this; + } + + /** + * + * + *
          +       * A subfolder.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + */ + public Builder mergeFolder(com.google.cloud.dataform.v1beta1.Folder value) { + if (folderBuilder_ == null) { + if (entryCase_ == 1 + && entry_ != com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance()) { + entry_ = + com.google.cloud.dataform.v1beta1.Folder.newBuilder( + (com.google.cloud.dataform.v1beta1.Folder) entry_) + .mergeFrom(value) + .buildPartial(); + } else { + entry_ = value; + } + onChanged(); + } else { + if (entryCase_ == 1) { + folderBuilder_.mergeFrom(value); + } else { + folderBuilder_.setMessage(value); + } + } + entryCase_ = 1; + return this; + } + + /** + * + * + *
          +       * A subfolder.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + */ + public Builder clearFolder() { + if (folderBuilder_ == null) { + if (entryCase_ == 1) { + entryCase_ = 0; + entry_ = null; + onChanged(); + } + } else { + if (entryCase_ == 1) { + entryCase_ = 0; + entry_ = null; + } + folderBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +       * A subfolder.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + */ + public com.google.cloud.dataform.v1beta1.Folder.Builder getFolderBuilder() { + return internalGetFolderFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +       * A subfolder.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FolderOrBuilder getFolderOrBuilder() { + if ((entryCase_ == 1) && (folderBuilder_ != null)) { + return folderBuilder_.getMessageOrBuilder(); + } else { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1beta1.Folder) entry_; + } + return com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance(); + } + } + + /** + * + * + *
          +       * A subfolder.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.Folder, + com.google.cloud.dataform.v1beta1.Folder.Builder, + com.google.cloud.dataform.v1beta1.FolderOrBuilder> + internalGetFolderFieldBuilder() { + if (folderBuilder_ == null) { + if (!(entryCase_ == 1)) { + entry_ = com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance(); + } + folderBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.Folder, + com.google.cloud.dataform.v1beta1.Folder.Builder, + com.google.cloud.dataform.v1beta1.FolderOrBuilder>( + (com.google.cloud.dataform.v1beta1.Folder) entry_, + getParentForChildren(), + isClean()); + entry_ = null; + } + entryCase_ = 1; + onChanged(); + return folderBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.Repository, + com.google.cloud.dataform.v1beta1.Repository.Builder, + com.google.cloud.dataform.v1beta1.RepositoryOrBuilder> + repositoryBuilder_; + + /** + * + * + *
          +       * A repository.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + * + * @return Whether the repository field is set. + */ + @java.lang.Override + public boolean hasRepository() { + return entryCase_ == 2; + } + + /** + * + * + *
          +       * A repository.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + * + * @return The repository. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository getRepository() { + if (repositoryBuilder_ == null) { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1beta1.Repository) entry_; + } + return com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance(); + } else { + if (entryCase_ == 2) { + return repositoryBuilder_.getMessage(); + } + return com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance(); + } + } + + /** + * + * + *
          +       * A repository.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + */ + public Builder setRepository(com.google.cloud.dataform.v1beta1.Repository value) { + if (repositoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entry_ = value; + onChanged(); + } else { + repositoryBuilder_.setMessage(value); + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
          +       * A repository.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + */ + public Builder setRepository( + com.google.cloud.dataform.v1beta1.Repository.Builder builderForValue) { + if (repositoryBuilder_ == null) { + entry_ = builderForValue.build(); + onChanged(); + } else { + repositoryBuilder_.setMessage(builderForValue.build()); + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
          +       * A repository.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + */ + public Builder mergeRepository(com.google.cloud.dataform.v1beta1.Repository value) { + if (repositoryBuilder_ == null) { + if (entryCase_ == 2 + && entry_ != com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance()) { + entry_ = + com.google.cloud.dataform.v1beta1.Repository.newBuilder( + (com.google.cloud.dataform.v1beta1.Repository) entry_) + .mergeFrom(value) + .buildPartial(); + } else { + entry_ = value; + } + onChanged(); + } else { + if (entryCase_ == 2) { + repositoryBuilder_.mergeFrom(value); + } else { + repositoryBuilder_.setMessage(value); + } + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
          +       * A repository.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + */ + public Builder clearRepository() { + if (repositoryBuilder_ == null) { + if (entryCase_ == 2) { + entryCase_ = 0; + entry_ = null; + onChanged(); + } + } else { + if (entryCase_ == 2) { + entryCase_ = 0; + entry_ = null; + } + repositoryBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +       * A repository.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + */ + public com.google.cloud.dataform.v1beta1.Repository.Builder getRepositoryBuilder() { + return internalGetRepositoryFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +       * A repository.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.RepositoryOrBuilder getRepositoryOrBuilder() { + if ((entryCase_ == 2) && (repositoryBuilder_ != null)) { + return repositoryBuilder_.getMessageOrBuilder(); + } else { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1beta1.Repository) entry_; + } + return com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance(); + } + } + + /** + * + * + *
          +       * A repository.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.Repository, + com.google.cloud.dataform.v1beta1.Repository.Builder, + com.google.cloud.dataform.v1beta1.RepositoryOrBuilder> + internalGetRepositoryFieldBuilder() { + if (repositoryBuilder_ == null) { + if (!(entryCase_ == 2)) { + entry_ = com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance(); + } + repositoryBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.Repository, + com.google.cloud.dataform.v1beta1.Repository.Builder, + com.google.cloud.dataform.v1beta1.RepositoryOrBuilder>( + (com.google.cloud.dataform.v1beta1.Repository) entry_, + getParentForChildren(), + isClean()); + entry_ = null; + } + entryCase_ = 2; + onChanged(); + return repositoryBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry) + private static final com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry(); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TeamFolderContentsEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int ENTRIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry> + entries_; + + /** + * + * + *
          +   * List of entries in the TeamFolder.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry> + getEntriesList() { + return entries_; + } + + /** + * + * + *
          +   * List of entries in the TeamFolder.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntryOrBuilder> + getEntriesOrBuilderList() { + return entries_; + } + + /** + * + * + *
          +   * List of entries in the TeamFolder.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + @java.lang.Override + public int getEntriesCount() { + return entries_.size(); + } + + /** + * + * + *
          +   * List of entries in the TeamFolder.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + getEntries(int index) { + return entries_.get(index); + } + + /** + * + * + *
          +   * List of entries in the TeamFolder.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntryOrBuilder + getEntriesOrBuilder(int index) { + return entries_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
          +   * A token, which can be sent as `page_token` to retrieve the next page.
          +   * If this field is omitted, there are no subsequent pages.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
          +   * A token, which can be sent as `page_token` to retrieve the next page.
          +   * If this field is omitted, there are no subsequent pages.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < entries_.size(); i++) { + output.writeMessage(1, entries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < entries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse other = + (com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse) obj; + + if (!getEntriesList().equals(other.getEntriesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEntriesCount() > 0) { + hash = (37 * hash) + ENTRIES_FIELD_NUMBER; + hash = (53 * hash) + getEntriesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * `QueryTeamFolderContents` response message.
          +   * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse) + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.class, + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (entriesBuilder_ == null) { + entries_ = java.util.Collections.emptyList(); + } else { + entries_ = null; + entriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse build() { + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse buildPartial() { + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse result = + new com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse result) { + if (entriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + entries_ = java.util.Collections.unmodifiableList(entries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.entries_ = entries_; + } else { + result.entries_ = entriesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse) { + return mergeFrom((com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse other) { + if (other + == com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.getDefaultInstance()) + return this; + if (entriesBuilder_ == null) { + if (!other.entries_.isEmpty()) { + if (entries_.isEmpty()) { + entries_ = other.entries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEntriesIsMutable(); + entries_.addAll(other.entries_); + } + onChanged(); + } + } else { + if (!other.entries_.isEmpty()) { + if (entriesBuilder_.isEmpty()) { + entriesBuilder_.dispose(); + entriesBuilder_ = null; + entries_ = other.entries_; + bitField0_ = (bitField0_ & ~0x00000001); + entriesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetEntriesFieldBuilder() + : null; + } else { + entriesBuilder_.addAllMessages(other.entries_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry + m = + input.readMessage( + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry.parser(), + extensionRegistry); + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(m); + } else { + entriesBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry> + entries_ = java.util.Collections.emptyList(); + + private void ensureEntriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + entries_ = + new java.util.ArrayList< + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry>(entries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry, + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry.Builder, + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntryOrBuilder> + entriesBuilder_; + + /** + * + * + *
          +     * List of entries in the TeamFolder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public java.util.List< + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry> + getEntriesList() { + if (entriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(entries_); + } else { + return entriesBuilder_.getMessageList(); + } + } + + /** + * + * + *
          +     * List of entries in the TeamFolder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public int getEntriesCount() { + if (entriesBuilder_ == null) { + return entries_.size(); + } else { + return entriesBuilder_.getCount(); + } + } + + /** + * + * + *
          +     * List of entries in the TeamFolder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + getEntries(int index) { + if (entriesBuilder_ == null) { + return entries_.get(index); + } else { + return entriesBuilder_.getMessage(index); + } + } + + /** + * + * + *
          +     * List of entries in the TeamFolder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public Builder setEntries( + int index, + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.set(index, value); + onChanged(); + } else { + entriesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * List of entries in the TeamFolder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public Builder setEntries( + int index, + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.set(index, builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * List of entries in the TeamFolder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public Builder addEntries( + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.add(value); + onChanged(); + } else { + entriesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
          +     * List of entries in the TeamFolder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public Builder addEntries( + int index, + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.add(index, value); + onChanged(); + } else { + entriesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * List of entries in the TeamFolder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public Builder addEntries( + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * List of entries in the TeamFolder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public Builder addEntries( + int index, + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(index, builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * List of entries in the TeamFolder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public Builder addAllEntries( + java.lang.Iterable< + ? extends + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry> + values) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entries_); + onChanged(); + } else { + entriesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
          +     * List of entries in the TeamFolder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public Builder clearEntries() { + if (entriesBuilder_ == null) { + entries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + entriesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +     * List of entries in the TeamFolder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public Builder removeEntries(int index) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.remove(index); + onChanged(); + } else { + entriesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
          +     * List of entries in the TeamFolder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .Builder + getEntriesBuilder(int index) { + return internalGetEntriesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
          +     * List of entries in the TeamFolder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntryOrBuilder + getEntriesOrBuilder(int index) { + if (entriesBuilder_ == null) { + return entries_.get(index); + } else { + return entriesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
          +     * List of entries in the TeamFolder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntryOrBuilder> + getEntriesOrBuilderList() { + if (entriesBuilder_ != null) { + return entriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(entries_); + } + } + + /** + * + * + *
          +     * List of entries in the TeamFolder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .Builder + addEntriesBuilder() { + return internalGetEntriesFieldBuilder() + .addBuilder( + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry.getDefaultInstance()); + } + + /** + * + * + *
          +     * List of entries in the TeamFolder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + .Builder + addEntriesBuilder(int index) { + return internalGetEntriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry.getDefaultInstance()); + } + + /** + * + * + *
          +     * List of entries in the TeamFolder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + public java.util.List< + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry.Builder> + getEntriesBuilderList() { + return internalGetEntriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry, + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry.Builder, + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntryOrBuilder> + internalGetEntriesFieldBuilder() { + if (entriesBuilder_ == null) { + entriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry, + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntry.Builder, + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntryOrBuilder>( + entries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + entries_ = null; + } + return entriesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
          +     * A token, which can be sent as `page_token` to retrieve the next page.
          +     * If this field is omitted, there are no subsequent pages.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * A token, which can be sent as `page_token` to retrieve the next page.
          +     * If this field is omitted, there are no subsequent pages.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * A token, which can be sent as `page_token` to retrieve the next page.
          +     * If this field is omitted, there are no subsequent pages.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * A token, which can be sent as `page_token` to retrieve the next page.
          +     * If this field is omitted, there are no subsequent pages.
          +     * 
          + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * A token, which can be sent as `page_token` to retrieve the next page.
          +     * If this field is omitted, there are no subsequent pages.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse) + private static final com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse(); + } + + public static com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryTeamFolderContentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryTeamFolderContentsResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryTeamFolderContentsResponseOrBuilder.java new file mode 100644 index 000000000000..d2f9f6a32278 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryTeamFolderContentsResponseOrBuilder.java @@ -0,0 +1,129 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +@com.google.protobuf.Generated +public interface QueryTeamFolderContentsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * List of entries in the TeamFolder.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + java.util.List< + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry> + getEntriesList(); + + /** + * + * + *
          +   * List of entries in the TeamFolder.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + getEntries(int index); + + /** + * + * + *
          +   * List of entries in the TeamFolder.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + int getEntriesCount(); + + /** + * + * + *
          +   * List of entries in the TeamFolder.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + .TeamFolderContentsEntryOrBuilder> + getEntriesOrBuilderList(); + + /** + * + * + *
          +   * List of entries in the TeamFolder.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * + */ + com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntryOrBuilder + getEntriesOrBuilder(int index); + + /** + * + * + *
          +   * A token, which can be sent as `page_token` to retrieve the next page.
          +   * If this field is omitted, there are no subsequent pages.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
          +   * A token, which can be sent as `page_token` to retrieve the next page.
          +   * If this field is omitted, there are no subsequent pages.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryUserRootContentsRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryUserRootContentsRequest.java new file mode 100644 index 000000000000..a17a49ed2666 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryUserRootContentsRequest.java @@ -0,0 +1,1394 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
          + * `QueryUserRootContents` request message.
          + * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.QueryUserRootContentsRequest} + */ +@com.google.protobuf.Generated +public final class QueryUserRootContentsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.QueryUserRootContentsRequest) + QueryUserRootContentsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryUserRootContentsRequest"); + } + + // Use QueryUserRootContentsRequest.newBuilder() to construct. + private QueryUserRootContentsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QueryUserRootContentsRequest() { + location_ = ""; + pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest.class, + com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest.Builder.class); + } + + public static final int LOCATION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object location_ = ""; + + /** + * + * + *
          +   * Required. Location of the user root folder whose contents to list.
          +   * Format: projects/*/locations/*
          +   * 
          + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. Location of the user root folder whose contents to list.
          +   * Format: projects/*/locations/*
          +   * 
          + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
          +   * Optional. Maximum number of paths to return. The server may return fewer
          +   * items than requested. If unspecified, the server will pick an appropriate
          +   * default.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
          +   * Optional. Page token received from a previous `QueryUserRootContents` call.
          +   * Provide this to retrieve the subsequent page.
          +   *
          +   * When paginating, all other parameters provided to
          +   * `QueryUserRootFolderContents`, with the exception of `page_size`, must
          +   * match the call that provided the page token.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. Page token received from a previous `QueryUserRootContents` call.
          +   * Provide this to retrieve the subsequent page.
          +   *
          +   * When paginating, all other parameters provided to
          +   * `QueryUserRootFolderContents`, with the exception of `page_size`, must
          +   * match the call that provided the page token.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
          +   * Optional. Field to additionally sort results by.
          +   * Will order Folders before Repositories, and then by `order_by` in ascending
          +   * order. Supported keywords: display_name (default), created_at,
          +   * last_modified_at. Examples:
          +   * - `orderBy="display_name"`
          +   * - `orderBy="display_name desc"`
          +   * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. Field to additionally sort results by.
          +   * Will order Folders before Repositories, and then by `order_by` in ascending
          +   * order. Supported keywords: display_name (default), created_at,
          +   * last_modified_at. Examples:
          +   * - `orderBy="display_name"`
          +   * - `orderBy="display_name desc"`
          +   * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
          +   * Optional. Optional filtering for the returned list. Filtering is currently
          +   * only supported on the `display_name` field.
          +   *
          +   * Example:
          +   * - `filter="display_name="MyFolder""`
          +   * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. Optional filtering for the returned list. Filtering is currently
          +   * only supported on the `display_name` field.
          +   *
          +   * Example:
          +   * - `filter="display_name="MyFolder""`
          +   * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, location_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, location_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, filter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest other = + (com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest) obj; + + if (!getLocation().equals(other.getLocation())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * `QueryUserRootContents` request message.
          +   * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.QueryUserRootContentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.QueryUserRootContentsRequest) + com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest.class, + com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + location_ = ""; + pageSize_ = 0; + pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest build() { + com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest buildPartial() { + com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest result = + new com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.location_ = location_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.filter_ = filter_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest other) { + if (other + == com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest.getDefaultInstance()) + return this; + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object location_ = ""; + + /** + * + * + *
          +     * Required. Location of the user root folder whose contents to list.
          +     * Format: projects/*/locations/*
          +     * 
          + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. Location of the user root folder whose contents to list.
          +     * Format: projects/*/locations/*
          +     * 
          + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. Location of the user root folder whose contents to list.
          +     * Format: projects/*/locations/*
          +     * 
          + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Location of the user root folder whose contents to list.
          +     * Format: projects/*/locations/*
          +     * 
          + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + location_ = getDefaultInstance().getLocation(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Location of the user root folder whose contents to list.
          +     * Format: projects/*/locations/*
          +     * 
          + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
          +     * Optional. Maximum number of paths to return. The server may return fewer
          +     * items than requested. If unspecified, the server will pick an appropriate
          +     * default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
          +     * Optional. Maximum number of paths to return. The server may return fewer
          +     * items than requested. If unspecified, the server will pick an appropriate
          +     * default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Maximum number of paths to return. The server may return fewer
          +     * items than requested. If unspecified, the server will pick an appropriate
          +     * default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
          +     * Optional. Page token received from a previous `QueryUserRootContents` call.
          +     * Provide this to retrieve the subsequent page.
          +     *
          +     * When paginating, all other parameters provided to
          +     * `QueryUserRootFolderContents`, with the exception of `page_size`, must
          +     * match the call that provided the page token.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. Page token received from a previous `QueryUserRootContents` call.
          +     * Provide this to retrieve the subsequent page.
          +     *
          +     * When paginating, all other parameters provided to
          +     * `QueryUserRootFolderContents`, with the exception of `page_size`, must
          +     * match the call that provided the page token.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. Page token received from a previous `QueryUserRootContents` call.
          +     * Provide this to retrieve the subsequent page.
          +     *
          +     * When paginating, all other parameters provided to
          +     * `QueryUserRootFolderContents`, with the exception of `page_size`, must
          +     * match the call that provided the page token.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Page token received from a previous `QueryUserRootContents` call.
          +     * Provide this to retrieve the subsequent page.
          +     *
          +     * When paginating, all other parameters provided to
          +     * `QueryUserRootFolderContents`, with the exception of `page_size`, must
          +     * match the call that provided the page token.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Page token received from a previous `QueryUserRootContents` call.
          +     * Provide this to retrieve the subsequent page.
          +     *
          +     * When paginating, all other parameters provided to
          +     * `QueryUserRootFolderContents`, with the exception of `page_size`, must
          +     * match the call that provided the page token.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
          +     * Optional. Field to additionally sort results by.
          +     * Will order Folders before Repositories, and then by `order_by` in ascending
          +     * order. Supported keywords: display_name (default), created_at,
          +     * last_modified_at. Examples:
          +     * - `orderBy="display_name"`
          +     * - `orderBy="display_name desc"`
          +     * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. Field to additionally sort results by.
          +     * Will order Folders before Repositories, and then by `order_by` in ascending
          +     * order. Supported keywords: display_name (default), created_at,
          +     * last_modified_at. Examples:
          +     * - `orderBy="display_name"`
          +     * - `orderBy="display_name desc"`
          +     * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. Field to additionally sort results by.
          +     * Will order Folders before Repositories, and then by `order_by` in ascending
          +     * order. Supported keywords: display_name (default), created_at,
          +     * last_modified_at. Examples:
          +     * - `orderBy="display_name"`
          +     * - `orderBy="display_name desc"`
          +     * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Field to additionally sort results by.
          +     * Will order Folders before Repositories, and then by `order_by` in ascending
          +     * order. Supported keywords: display_name (default), created_at,
          +     * last_modified_at. Examples:
          +     * - `orderBy="display_name"`
          +     * - `orderBy="display_name desc"`
          +     * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Field to additionally sort results by.
          +     * Will order Folders before Repositories, and then by `order_by` in ascending
          +     * order. Supported keywords: display_name (default), created_at,
          +     * last_modified_at. Examples:
          +     * - `orderBy="display_name"`
          +     * - `orderBy="display_name desc"`
          +     * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
          +     * Optional. Optional filtering for the returned list. Filtering is currently
          +     * only supported on the `display_name` field.
          +     *
          +     * Example:
          +     * - `filter="display_name="MyFolder""`
          +     * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. Optional filtering for the returned list. Filtering is currently
          +     * only supported on the `display_name` field.
          +     *
          +     * Example:
          +     * - `filter="display_name="MyFolder""`
          +     * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. Optional filtering for the returned list. Filtering is currently
          +     * only supported on the `display_name` field.
          +     *
          +     * Example:
          +     * - `filter="display_name="MyFolder""`
          +     * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Optional filtering for the returned list. Filtering is currently
          +     * only supported on the `display_name` field.
          +     *
          +     * Example:
          +     * - `filter="display_name="MyFolder""`
          +     * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Optional filtering for the returned list. Filtering is currently
          +     * only supported on the `display_name` field.
          +     *
          +     * Example:
          +     * - `filter="display_name="MyFolder""`
          +     * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.QueryUserRootContentsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.QueryUserRootContentsRequest) + private static final com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest(); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryUserRootContentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryUserRootContentsRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryUserRootContentsRequestOrBuilder.java new file mode 100644 index 000000000000..3b0aa44f6880 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryUserRootContentsRequestOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +@com.google.protobuf.Generated +public interface QueryUserRootContentsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.QueryUserRootContentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. Location of the user root folder whose contents to list.
          +   * Format: projects/*/locations/*
          +   * 
          + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + java.lang.String getLocation(); + + /** + * + * + *
          +   * Required. Location of the user root folder whose contents to list.
          +   * Format: projects/*/locations/*
          +   * 
          + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); + + /** + * + * + *
          +   * Optional. Maximum number of paths to return. The server may return fewer
          +   * items than requested. If unspecified, the server will pick an appropriate
          +   * default.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
          +   * Optional. Page token received from a previous `QueryUserRootContents` call.
          +   * Provide this to retrieve the subsequent page.
          +   *
          +   * When paginating, all other parameters provided to
          +   * `QueryUserRootFolderContents`, with the exception of `page_size`, must
          +   * match the call that provided the page token.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
          +   * Optional. Page token received from a previous `QueryUserRootContents` call.
          +   * Provide this to retrieve the subsequent page.
          +   *
          +   * When paginating, all other parameters provided to
          +   * `QueryUserRootFolderContents`, with the exception of `page_size`, must
          +   * match the call that provided the page token.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
          +   * Optional. Field to additionally sort results by.
          +   * Will order Folders before Repositories, and then by `order_by` in ascending
          +   * order. Supported keywords: display_name (default), created_at,
          +   * last_modified_at. Examples:
          +   * - `orderBy="display_name"`
          +   * - `orderBy="display_name desc"`
          +   * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
          +   * Optional. Field to additionally sort results by.
          +   * Will order Folders before Repositories, and then by `order_by` in ascending
          +   * order. Supported keywords: display_name (default), created_at,
          +   * last_modified_at. Examples:
          +   * - `orderBy="display_name"`
          +   * - `orderBy="display_name desc"`
          +   * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
          +   * Optional. Optional filtering for the returned list. Filtering is currently
          +   * only supported on the `display_name` field.
          +   *
          +   * Example:
          +   * - `filter="display_name="MyFolder""`
          +   * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
          +   * Optional. Optional filtering for the returned list. Filtering is currently
          +   * only supported on the `display_name` field.
          +   *
          +   * Example:
          +   * - `filter="display_name="MyFolder""`
          +   * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryUserRootContentsResponse.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryUserRootContentsResponse.java new file mode 100644 index 000000000000..1ddec2527a3f --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryUserRootContentsResponse.java @@ -0,0 +1,2429 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
          + * `QueryUserRootContents` response message.
          + * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.QueryUserRootContentsResponse} + */ +@com.google.protobuf.Generated +public final class QueryUserRootContentsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.QueryUserRootContentsResponse) + QueryUserRootContentsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryUserRootContentsResponse"); + } + + // Use QueryUserRootContentsResponse.newBuilder() to construct. + private QueryUserRootContentsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QueryUserRootContentsResponse() { + entries_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.class, + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.Builder.class); + } + + public interface RootContentsEntryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +     * A subfolder.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + * + * @return Whether the folder field is set. + */ + boolean hasFolder(); + + /** + * + * + *
          +     * A subfolder.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + * + * @return The folder. + */ + com.google.cloud.dataform.v1beta1.Folder getFolder(); + + /** + * + * + *
          +     * A subfolder.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + */ + com.google.cloud.dataform.v1beta1.FolderOrBuilder getFolderOrBuilder(); + + /** + * + * + *
          +     * A repository.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + * + * @return Whether the repository field is set. + */ + boolean hasRepository(); + + /** + * + * + *
          +     * A repository.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + * + * @return The repository. + */ + com.google.cloud.dataform.v1beta1.Repository getRepository(); + + /** + * + * + *
          +     * A repository.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + */ + com.google.cloud.dataform.v1beta1.RepositoryOrBuilder getRepositoryOrBuilder(); + + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry.EntryCase + getEntryCase(); + } + + /** + * + * + *
          +   * Represents a single content entry.
          +   * 
          + * + * Protobuf type {@code + * google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry} + */ + public static final class RootContentsEntry extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry) + RootContentsEntryOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RootContentsEntry"); + } + + // Use RootContentsEntry.newBuilder() to construct. + private RootContentsEntry(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RootContentsEntry() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsResponse_RootContentsEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsResponse_RootContentsEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + .class, + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + .Builder.class); + } + + private int entryCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object entry_; + + public enum EntryCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + FOLDER(1), + REPOSITORY(2), + ENTRY_NOT_SET(0); + private final int value; + + private EntryCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EntryCase valueOf(int value) { + return forNumber(value); + } + + public static EntryCase forNumber(int value) { + switch (value) { + case 1: + return FOLDER; + case 2: + return REPOSITORY; + case 0: + return ENTRY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EntryCase getEntryCase() { + return EntryCase.forNumber(entryCase_); + } + + public static final int FOLDER_FIELD_NUMBER = 1; + + /** + * + * + *
          +     * A subfolder.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + * + * @return Whether the folder field is set. + */ + @java.lang.Override + public boolean hasFolder() { + return entryCase_ == 1; + } + + /** + * + * + *
          +     * A subfolder.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + * + * @return The folder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Folder getFolder() { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1beta1.Folder) entry_; + } + return com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance(); + } + + /** + * + * + *
          +     * A subfolder.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FolderOrBuilder getFolderOrBuilder() { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1beta1.Folder) entry_; + } + return com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance(); + } + + public static final int REPOSITORY_FIELD_NUMBER = 2; + + /** + * + * + *
          +     * A repository.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + * + * @return Whether the repository field is set. + */ + @java.lang.Override + public boolean hasRepository() { + return entryCase_ == 2; + } + + /** + * + * + *
          +     * A repository.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + * + * @return The repository. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository getRepository() { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1beta1.Repository) entry_; + } + return com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance(); + } + + /** + * + * + *
          +     * A repository.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.RepositoryOrBuilder getRepositoryOrBuilder() { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1beta1.Repository) entry_; + } + return com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (entryCase_ == 1) { + output.writeMessage(1, (com.google.cloud.dataform.v1beta1.Folder) entry_); + } + if (entryCase_ == 2) { + output.writeMessage(2, (com.google.cloud.dataform.v1beta1.Repository) entry_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (entryCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.dataform.v1beta1.Folder) entry_); + } + if (entryCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.dataform.v1beta1.Repository) entry_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry other = + (com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry) obj; + + if (!getEntryCase().equals(other.getEntryCase())) return false; + switch (entryCase_) { + case 1: + if (!getFolder().equals(other.getFolder())) return false; + break; + case 2: + if (!getRepository().equals(other.getRepository())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (entryCase_) { + case 1: + hash = (37 * hash) + FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getFolder().hashCode(); + break; + case 2: + hash = (37 * hash) + REPOSITORY_FIELD_NUMBER; + hash = (53 * hash) + getRepository().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +     * Represents a single content entry.
          +     * 
          + * + * Protobuf type {@code + * google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry) + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsResponse_RootContentsEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsResponse_RootContentsEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + .class, + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + .Builder.class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (folderBuilder_ != null) { + folderBuilder_.clear(); + } + if (repositoryBuilder_ != null) { + repositoryBuilder_.clear(); + } + entryCase_ = 0; + entry_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsResponse_RootContentsEntry_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + build() { + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + buildPartial() { + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry result = + new com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + result) { + result.entryCase_ = entryCase_; + result.entry_ = this.entry_; + if (entryCase_ == 1 && folderBuilder_ != null) { + result.entry_ = folderBuilder_.build(); + } + if (entryCase_ == 2 && repositoryBuilder_ != null) { + result.entry_ = repositoryBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry) { + return mergeFrom( + (com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry other) { + if (other + == com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + .getDefaultInstance()) return this; + switch (other.getEntryCase()) { + case FOLDER: + { + mergeFolder(other.getFolder()); + break; + } + case REPOSITORY: + { + mergeRepository(other.getRepository()); + break; + } + case ENTRY_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetFolderFieldBuilder().getBuilder(), extensionRegistry); + entryCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetRepositoryFieldBuilder().getBuilder(), extensionRegistry); + entryCase_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int entryCase_ = 0; + private java.lang.Object entry_; + + public EntryCase getEntryCase() { + return EntryCase.forNumber(entryCase_); + } + + public Builder clearEntry() { + entryCase_ = 0; + entry_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.Folder, + com.google.cloud.dataform.v1beta1.Folder.Builder, + com.google.cloud.dataform.v1beta1.FolderOrBuilder> + folderBuilder_; + + /** + * + * + *
          +       * A subfolder.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + * + * @return Whether the folder field is set. + */ + @java.lang.Override + public boolean hasFolder() { + return entryCase_ == 1; + } + + /** + * + * + *
          +       * A subfolder.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + * + * @return The folder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Folder getFolder() { + if (folderBuilder_ == null) { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1beta1.Folder) entry_; + } + return com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance(); + } else { + if (entryCase_ == 1) { + return folderBuilder_.getMessage(); + } + return com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance(); + } + } + + /** + * + * + *
          +       * A subfolder.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + */ + public Builder setFolder(com.google.cloud.dataform.v1beta1.Folder value) { + if (folderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entry_ = value; + onChanged(); + } else { + folderBuilder_.setMessage(value); + } + entryCase_ = 1; + return this; + } + + /** + * + * + *
          +       * A subfolder.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + */ + public Builder setFolder(com.google.cloud.dataform.v1beta1.Folder.Builder builderForValue) { + if (folderBuilder_ == null) { + entry_ = builderForValue.build(); + onChanged(); + } else { + folderBuilder_.setMessage(builderForValue.build()); + } + entryCase_ = 1; + return this; + } + + /** + * + * + *
          +       * A subfolder.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + */ + public Builder mergeFolder(com.google.cloud.dataform.v1beta1.Folder value) { + if (folderBuilder_ == null) { + if (entryCase_ == 1 + && entry_ != com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance()) { + entry_ = + com.google.cloud.dataform.v1beta1.Folder.newBuilder( + (com.google.cloud.dataform.v1beta1.Folder) entry_) + .mergeFrom(value) + .buildPartial(); + } else { + entry_ = value; + } + onChanged(); + } else { + if (entryCase_ == 1) { + folderBuilder_.mergeFrom(value); + } else { + folderBuilder_.setMessage(value); + } + } + entryCase_ = 1; + return this; + } + + /** + * + * + *
          +       * A subfolder.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + */ + public Builder clearFolder() { + if (folderBuilder_ == null) { + if (entryCase_ == 1) { + entryCase_ = 0; + entry_ = null; + onChanged(); + } + } else { + if (entryCase_ == 1) { + entryCase_ = 0; + entry_ = null; + } + folderBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +       * A subfolder.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + */ + public com.google.cloud.dataform.v1beta1.Folder.Builder getFolderBuilder() { + return internalGetFolderFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +       * A subfolder.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FolderOrBuilder getFolderOrBuilder() { + if ((entryCase_ == 1) && (folderBuilder_ != null)) { + return folderBuilder_.getMessageOrBuilder(); + } else { + if (entryCase_ == 1) { + return (com.google.cloud.dataform.v1beta1.Folder) entry_; + } + return com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance(); + } + } + + /** + * + * + *
          +       * A subfolder.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Folder folder = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.Folder, + com.google.cloud.dataform.v1beta1.Folder.Builder, + com.google.cloud.dataform.v1beta1.FolderOrBuilder> + internalGetFolderFieldBuilder() { + if (folderBuilder_ == null) { + if (!(entryCase_ == 1)) { + entry_ = com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance(); + } + folderBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.Folder, + com.google.cloud.dataform.v1beta1.Folder.Builder, + com.google.cloud.dataform.v1beta1.FolderOrBuilder>( + (com.google.cloud.dataform.v1beta1.Folder) entry_, + getParentForChildren(), + isClean()); + entry_ = null; + } + entryCase_ = 1; + onChanged(); + return folderBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.Repository, + com.google.cloud.dataform.v1beta1.Repository.Builder, + com.google.cloud.dataform.v1beta1.RepositoryOrBuilder> + repositoryBuilder_; + + /** + * + * + *
          +       * A repository.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + * + * @return Whether the repository field is set. + */ + @java.lang.Override + public boolean hasRepository() { + return entryCase_ == 2; + } + + /** + * + * + *
          +       * A repository.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + * + * @return The repository. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Repository getRepository() { + if (repositoryBuilder_ == null) { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1beta1.Repository) entry_; + } + return com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance(); + } else { + if (entryCase_ == 2) { + return repositoryBuilder_.getMessage(); + } + return com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance(); + } + } + + /** + * + * + *
          +       * A repository.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + */ + public Builder setRepository(com.google.cloud.dataform.v1beta1.Repository value) { + if (repositoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entry_ = value; + onChanged(); + } else { + repositoryBuilder_.setMessage(value); + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
          +       * A repository.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + */ + public Builder setRepository( + com.google.cloud.dataform.v1beta1.Repository.Builder builderForValue) { + if (repositoryBuilder_ == null) { + entry_ = builderForValue.build(); + onChanged(); + } else { + repositoryBuilder_.setMessage(builderForValue.build()); + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
          +       * A repository.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + */ + public Builder mergeRepository(com.google.cloud.dataform.v1beta1.Repository value) { + if (repositoryBuilder_ == null) { + if (entryCase_ == 2 + && entry_ != com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance()) { + entry_ = + com.google.cloud.dataform.v1beta1.Repository.newBuilder( + (com.google.cloud.dataform.v1beta1.Repository) entry_) + .mergeFrom(value) + .buildPartial(); + } else { + entry_ = value; + } + onChanged(); + } else { + if (entryCase_ == 2) { + repositoryBuilder_.mergeFrom(value); + } else { + repositoryBuilder_.setMessage(value); + } + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
          +       * A repository.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + */ + public Builder clearRepository() { + if (repositoryBuilder_ == null) { + if (entryCase_ == 2) { + entryCase_ = 0; + entry_ = null; + onChanged(); + } + } else { + if (entryCase_ == 2) { + entryCase_ = 0; + entry_ = null; + } + repositoryBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +       * A repository.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + */ + public com.google.cloud.dataform.v1beta1.Repository.Builder getRepositoryBuilder() { + return internalGetRepositoryFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +       * A repository.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.RepositoryOrBuilder getRepositoryOrBuilder() { + if ((entryCase_ == 2) && (repositoryBuilder_ != null)) { + return repositoryBuilder_.getMessageOrBuilder(); + } else { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1beta1.Repository) entry_; + } + return com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance(); + } + } + + /** + * + * + *
          +       * A repository.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.Repository repository = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.Repository, + com.google.cloud.dataform.v1beta1.Repository.Builder, + com.google.cloud.dataform.v1beta1.RepositoryOrBuilder> + internalGetRepositoryFieldBuilder() { + if (repositoryBuilder_ == null) { + if (!(entryCase_ == 2)) { + entry_ = com.google.cloud.dataform.v1beta1.Repository.getDefaultInstance(); + } + repositoryBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.Repository, + com.google.cloud.dataform.v1beta1.Repository.Builder, + com.google.cloud.dataform.v1beta1.RepositoryOrBuilder>( + (com.google.cloud.dataform.v1beta1.Repository) entry_, + getParentForChildren(), + isClean()); + entry_ = null; + } + entryCase_ = 2; + onChanged(); + return repositoryBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry) + private static final com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse + .RootContentsEntry + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry(); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RootContentsEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int ENTRIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry> + entries_; + + /** + * + * + *
          +   * List of entries in the folder.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry> + getEntriesList() { + return entries_; + } + + /** + * + * + *
          +   * List of entries in the folder.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse + .RootContentsEntryOrBuilder> + getEntriesOrBuilderList() { + return entries_; + } + + /** + * + * + *
          +   * List of entries in the folder.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + @java.lang.Override + public int getEntriesCount() { + return entries_.size(); + } + + /** + * + * + *
          +   * List of entries in the folder.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + getEntries(int index) { + return entries_.get(index); + } + + /** + * + * + *
          +   * List of entries in the folder.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntryOrBuilder + getEntriesOrBuilder(int index) { + return entries_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
          +   * A token, which can be sent as `page_token` to retrieve the next page.
          +   * If this field is omitted, there are no subsequent pages.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
          +   * A token, which can be sent as `page_token` to retrieve the next page.
          +   * If this field is omitted, there are no subsequent pages.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < entries_.size(); i++) { + output.writeMessage(1, entries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < entries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse other = + (com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse) obj; + + if (!getEntriesList().equals(other.getEntriesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEntriesCount() > 0) { + hash = (37 * hash) + ENTRIES_FIELD_NUMBER; + hash = (53 * hash) + getEntriesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * `QueryUserRootContents` response message.
          +   * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.QueryUserRootContentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.QueryUserRootContentsResponse) + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.class, + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (entriesBuilder_ == null) { + entries_ = java.util.Collections.emptyList(); + } else { + entries_ = null; + entriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse build() { + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse buildPartial() { + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse result = + new com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse result) { + if (entriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + entries_ = java.util.Collections.unmodifiableList(entries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.entries_ = entries_; + } else { + result.entries_ = entriesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse) { + return mergeFrom((com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse other) { + if (other + == com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.getDefaultInstance()) + return this; + if (entriesBuilder_ == null) { + if (!other.entries_.isEmpty()) { + if (entries_.isEmpty()) { + entries_ = other.entries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEntriesIsMutable(); + entries_.addAll(other.entries_); + } + onChanged(); + } + } else { + if (!other.entries_.isEmpty()) { + if (entriesBuilder_.isEmpty()) { + entriesBuilder_.dispose(); + entriesBuilder_ = null; + entries_ = other.entries_; + bitField0_ = (bitField0_ & ~0x00000001); + entriesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetEntriesFieldBuilder() + : null; + } else { + entriesBuilder_.addAllMessages(other.entries_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + m = + input.readMessage( + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse + .RootContentsEntry.parser(), + extensionRegistry); + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(m); + } else { + entriesBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry> + entries_ = java.util.Collections.emptyList(); + + private void ensureEntriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + entries_ = + new java.util.ArrayList< + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry>( + entries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry, + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + .Builder, + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse + .RootContentsEntryOrBuilder> + entriesBuilder_; + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public java.util.List< + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry> + getEntriesList() { + if (entriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(entries_); + } else { + return entriesBuilder_.getMessageList(); + } + } + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public int getEntriesCount() { + if (entriesBuilder_ == null) { + return entries_.size(); + } else { + return entriesBuilder_.getCount(); + } + } + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + getEntries(int index) { + if (entriesBuilder_ == null) { + return entries_.get(index); + } else { + return entriesBuilder_.getMessage(index); + } + } + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public Builder setEntries( + int index, + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.set(index, value); + onChanged(); + } else { + entriesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public Builder setEntries( + int index, + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.set(index, builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public Builder addEntries( + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.add(value); + onChanged(); + } else { + entriesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public Builder addEntries( + int index, + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.add(index, value); + onChanged(); + } else { + entriesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public Builder addEntries( + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public Builder addEntries( + int index, + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(index, builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public Builder addAllEntries( + java.lang.Iterable< + ? extends + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse + .RootContentsEntry> + values) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entries_); + onChanged(); + } else { + entriesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public Builder clearEntries() { + if (entriesBuilder_ == null) { + entries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + entriesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public Builder removeEntries(int index) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.remove(index); + onChanged(); + } else { + entriesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry.Builder + getEntriesBuilder(int index) { + return internalGetEntriesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse + .RootContentsEntryOrBuilder + getEntriesOrBuilder(int index) { + if (entriesBuilder_ == null) { + return entries_.get(index); + } else { + return entriesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse + .RootContentsEntryOrBuilder> + getEntriesOrBuilderList() { + if (entriesBuilder_ != null) { + return entriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(entries_); + } + } + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry.Builder + addEntriesBuilder() { + return internalGetEntriesFieldBuilder() + .addBuilder( + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + .getDefaultInstance()); + } + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry.Builder + addEntriesBuilder(int index) { + return internalGetEntriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + .getDefaultInstance()); + } + + /** + * + * + *
          +     * List of entries in the folder.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + public java.util.List< + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + .Builder> + getEntriesBuilderList() { + return internalGetEntriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry, + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + .Builder, + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse + .RootContentsEntryOrBuilder> + internalGetEntriesFieldBuilder() { + if (entriesBuilder_ == null) { + entriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry, + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + .Builder, + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse + .RootContentsEntryOrBuilder>( + entries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + entries_ = null; + } + return entriesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
          +     * A token, which can be sent as `page_token` to retrieve the next page.
          +     * If this field is omitted, there are no subsequent pages.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * A token, which can be sent as `page_token` to retrieve the next page.
          +     * If this field is omitted, there are no subsequent pages.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * A token, which can be sent as `page_token` to retrieve the next page.
          +     * If this field is omitted, there are no subsequent pages.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * A token, which can be sent as `page_token` to retrieve the next page.
          +     * If this field is omitted, there are no subsequent pages.
          +     * 
          + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * A token, which can be sent as `page_token` to retrieve the next page.
          +     * If this field is omitted, there are no subsequent pages.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.QueryUserRootContentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.QueryUserRootContentsResponse) + private static final com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse(); + } + + public static com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryUserRootContentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryUserRootContentsResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryUserRootContentsResponseOrBuilder.java new file mode 100644 index 000000000000..493e4a6dde2b --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryUserRootContentsResponseOrBuilder.java @@ -0,0 +1,128 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +@com.google.protobuf.Generated +public interface QueryUserRootContentsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.QueryUserRootContentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * List of entries in the folder.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + java.util.List + getEntriesList(); + + /** + * + * + *
          +   * List of entries in the folder.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry getEntries( + int index); + + /** + * + * + *
          +   * List of entries in the folder.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + int getEntriesCount(); + + /** + * + * + *
          +   * List of entries in the folder.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse + .RootContentsEntryOrBuilder> + getEntriesOrBuilderList(); + + /** + * + * + *
          +   * List of entries in the folder.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * + */ + com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntryOrBuilder + getEntriesOrBuilder(int index); + + /** + * + * + *
          +   * A token, which can be sent as `page_token` to retrieve the next page.
          +   * If this field is omitted, there are no subsequent pages.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
          +   * A token, which can be sent as `page_token` to retrieve the next page.
          +   * If this field is omitted, there are no subsequent pages.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Repository.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Repository.java index ad3f71490871..43f349ad784a 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Repository.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Repository.java @@ -53,6 +53,8 @@ private Repository(com.google.protobuf.GeneratedMessage.Builder builder) { private Repository() { name_ = ""; + containingFolder_ = ""; + teamFolderName_ = ""; displayName_ = ""; npmrcEnvironmentVariablesSecretVersion_ = ""; serviceAccount_ = ""; @@ -237,7 +239,7 @@ public interface GitRemoteSettingsOrBuilder * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=631 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=839 * @return The enum numeric value on the wire for tokenStatus. */ @java.lang.Deprecated @@ -257,7 +259,7 @@ public interface GitRemoteSettingsOrBuilder * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=631 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=839 * @return The tokenStatus. */ @java.lang.Deprecated @@ -1698,7 +1700,7 @@ public boolean hasSshAuthenticationConfig() { * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=631 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=839 * @return The enum numeric value on the wire for tokenStatus. */ @java.lang.Override @@ -1721,7 +1723,7 @@ public int getTokenStatusValue() { * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=631 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=839 * @return The tokenStatus. */ @java.lang.Override @@ -2790,7 +2792,7 @@ public Builder clearSshAuthenticationConfig() { * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=631 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=839 * @return The enum numeric value on the wire for tokenStatus. */ @java.lang.Override @@ -2813,7 +2815,7 @@ public int getTokenStatusValue() { * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=631 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=839 * @param value The enum numeric value on the wire for tokenStatus to set. * @return This builder for chaining. */ @@ -2839,7 +2841,7 @@ public Builder setTokenStatusValue(int value) { * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=631 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=839 * @return The tokenStatus. */ @java.lang.Override @@ -2869,7 +2871,7 @@ public Builder setTokenStatusValue(int value) { * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=631 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=839 * @param value The tokenStatus to set. * @return This builder for chaining. */ @@ -2899,7 +2901,7 @@ public Builder setTokenStatus( * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=631 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=839 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4104,6 +4106,168 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int CONTAINING_FOLDER_FIELD_NUMBER = 16; + + @SuppressWarnings("serial") + private volatile java.lang.Object containingFolder_ = ""; + + /** + * + * + *
          +   * Optional. The name of the containing folder of the repository.
          +   * The field is immutable and it can be modified via a MoveRepository
          +   * operation.
          +   * Format: `projects/*/locations/*/folders/*`. or
          +   * `projects/*/locations/*/teamFolders/*`.
          +   * 
          + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the containingFolder field is set. + */ + @java.lang.Override + public boolean hasContainingFolder() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +   * Optional. The name of the containing folder of the repository.
          +   * The field is immutable and it can be modified via a MoveRepository
          +   * operation.
          +   * Format: `projects/*/locations/*/folders/*`. or
          +   * `projects/*/locations/*/teamFolders/*`.
          +   * 
          + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The containingFolder. + */ + @java.lang.Override + public java.lang.String getContainingFolder() { + java.lang.Object ref = containingFolder_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + containingFolder_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. The name of the containing folder of the repository.
          +   * The field is immutable and it can be modified via a MoveRepository
          +   * operation.
          +   * Format: `projects/*/locations/*/folders/*`. or
          +   * `projects/*/locations/*/teamFolders/*`.
          +   * 
          + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for containingFolder. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContainingFolderBytes() { + java.lang.Object ref = containingFolder_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + containingFolder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEAM_FOLDER_NAME_FIELD_NUMBER = 18; + + @SuppressWarnings("serial") + private volatile java.lang.Object teamFolderName_ = ""; + + /** + * + * + *
          +   * Output only. The resource name of the TeamFolder that this Repository is
          +   * associated with. This should take the format:
          +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
          +   * is not set, the Repository is not associated with a TeamFolder.
          +   * 
          + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the teamFolderName field is set. + */ + @java.lang.Override + public boolean hasTeamFolderName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +   * Output only. The resource name of the TeamFolder that this Repository is
          +   * associated with. This should take the format:
          +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
          +   * is not set, the Repository is not associated with a TeamFolder.
          +   * 
          + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The teamFolderName. + */ + @java.lang.Override + public java.lang.String getTeamFolderName() { + java.lang.Object ref = teamFolderName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamFolderName_ = s; + return s; + } + } + + /** + * + * + *
          +   * Output only. The resource name of the TeamFolder that this Repository is
          +   * associated with. This should take the format:
          +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
          +   * is not set, the Repository is not associated with a TeamFolder.
          +   * 
          + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for teamFolderName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTeamFolderNameBytes() { + java.lang.Object ref = teamFolderName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + teamFolderName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int CREATE_TIME_FIELD_NUMBER = 13; private com.google.protobuf.Timestamp createTime_; @@ -4121,7 +4285,7 @@ public com.google.protobuf.ByteString getNameBytes() { */ @java.lang.Override public boolean hasCreateTime() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** @@ -4227,7 +4391,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { */ @java.lang.Override public boolean hasGitRemoteSettings() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -4354,7 +4518,7 @@ public com.google.protobuf.ByteString getNpmrcEnvironmentVariablesSecretVersionB */ @java.lang.Override public boolean hasWorkspaceCompilationOverrides() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -4673,7 +4837,7 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { */ @java.lang.Override public boolean hasDataEncryptionState() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -4738,7 +4902,7 @@ public com.google.cloud.dataform.v1beta1.DataEncryptionState getDataEncryptionSt */ @java.lang.Override public boolean hasInternalMetadata() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -4812,7 +4976,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(2, getGitRemoteSettings()); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty( @@ -4820,7 +4984,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessage.writeString( output, 3, npmrcEnvironmentVariablesSecretVersion_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(4, getWorkspaceCompilationOverrides()); } com.google.protobuf.GeneratedMessage.serializeStringMapTo( @@ -4837,15 +5001,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKeyName_)) { com.google.protobuf.GeneratedMessage.writeString(output, 11, kmsKeyName_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(12, getDataEncryptionState()); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(13, getCreateTime()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 15, internalMetadata_); } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 16, containingFolder_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 18, teamFolderName_); + } getUnknownFields().writeTo(output); } @@ -4858,7 +5028,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGitRemoteSettings()); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty( @@ -4867,7 +5037,7 @@ public int getSerializedSize() { com.google.protobuf.GeneratedMessage.computeStringSize( 3, npmrcEnvironmentVariablesSecretVersion_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 4, getWorkspaceCompilationOverrides()); @@ -4894,16 +5064,22 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKeyName_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(11, kmsKeyName_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getDataEncryptionState()); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCreateTime()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(15, internalMetadata_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(16, containingFolder_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(18, teamFolderName_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4921,6 +5097,14 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.dataform.v1beta1.Repository) obj; if (!getName().equals(other.getName())) return false; + if (hasContainingFolder() != other.hasContainingFolder()) return false; + if (hasContainingFolder()) { + if (!getContainingFolder().equals(other.getContainingFolder())) return false; + } + if (hasTeamFolderName() != other.hasTeamFolderName()) return false; + if (hasTeamFolderName()) { + if (!getTeamFolderName().equals(other.getTeamFolderName())) return false; + } if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) return false; @@ -4963,6 +5147,14 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + if (hasContainingFolder()) { + hash = (37 * hash) + CONTAINING_FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getContainingFolder().hashCode(); + } + if (hasTeamFolderName()) { + hash = (37 * hash) + TEAM_FOLDER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTeamFolderName().hashCode(); + } if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); @@ -5172,6 +5364,8 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; + containingFolder_ = ""; + teamFolderName_ = ""; createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -5240,52 +5434,60 @@ private void buildPartial0(com.google.cloud.dataform.v1beta1.Repository result) } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.containingFolder_ = containingFolder_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.displayName_ = displayName_; + result.teamFolderName_ = teamFolderName_; + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { result.gitRemoteSettings_ = gitRemoteSettingsBuilder_ == null ? gitRemoteSettings_ : gitRemoteSettingsBuilder_.build(); - to_bitField0_ |= 0x00000002; + to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.npmrcEnvironmentVariablesSecretVersion_ = npmrcEnvironmentVariablesSecretVersion_; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.workspaceCompilationOverrides_ = workspaceCompilationOverridesBuilder_ == null ? workspaceCompilationOverrides_ : workspaceCompilationOverridesBuilder_.build(); - to_bitField0_ |= 0x00000004; + to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.setAuthenticatedUserAdmin_ = setAuthenticatedUserAdmin_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.serviceAccount_ = serviceAccount_; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.kmsKeyName_ = kmsKeyName_; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.dataEncryptionState_ = dataEncryptionStateBuilder_ == null ? dataEncryptionState_ : dataEncryptionStateBuilder_.build(); - to_bitField0_ |= 0x00000008; + to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.internalMetadata_ = internalMetadata_; - to_bitField0_ |= 0x00000010; + to_bitField0_ |= 0x00000040; } result.bitField0_ |= to_bitField0_; } @@ -5307,12 +5509,22 @@ public Builder mergeFrom(com.google.cloud.dataform.v1beta1.Repository other) { bitField0_ |= 0x00000001; onChanged(); } + if (other.hasContainingFolder()) { + containingFolder_ = other.containingFolder_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasTeamFolderName()) { + teamFolderName_ = other.teamFolderName_; + bitField0_ |= 0x00000004; + onChanged(); + } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasGitRemoteSettings()) { @@ -5320,25 +5532,25 @@ public Builder mergeFrom(com.google.cloud.dataform.v1beta1.Repository other) { } if (!other.getNpmrcEnvironmentVariablesSecretVersion().isEmpty()) { npmrcEnvironmentVariablesSecretVersion_ = other.npmrcEnvironmentVariablesSecretVersion_; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); } if (other.hasWorkspaceCompilationOverrides()) { mergeWorkspaceCompilationOverrides(other.getWorkspaceCompilationOverrides()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; if (other.getSetAuthenticatedUserAdmin() != false) { setSetAuthenticatedUserAdmin(other.getSetAuthenticatedUserAdmin()); } if (!other.getServiceAccount().isEmpty()) { serviceAccount_ = other.serviceAccount_; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); } if (!other.getKmsKeyName().isEmpty()) { kmsKeyName_ = other.kmsKeyName_; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); } if (other.hasDataEncryptionState()) { @@ -5346,7 +5558,7 @@ public Builder mergeFrom(com.google.cloud.dataform.v1beta1.Repository other) { } if (other.hasInternalMetadata()) { internalMetadata_ = other.internalMetadata_; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -5385,13 +5597,13 @@ public Builder mergeFrom( { input.readMessage( internalGetGitRemoteSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; break; } // case 18 case 26: { npmrcEnvironmentVariablesSecretVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; break; } // case 26 case 34: @@ -5399,7 +5611,7 @@ public Builder mergeFrom( input.readMessage( internalGetWorkspaceCompilationOverridesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; break; } // case 34 case 42: @@ -5411,53 +5623,65 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; break; } // case 42 case 66: { displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; break; } // case 66 case 72: { setAuthenticatedUserAdmin_ = input.readBool(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; break; } // case 72 case 82: { serviceAccount_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; break; } // case 82 case 90: { kmsKeyName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; break; } // case 90 case 98: { input.readMessage( internalGetDataEncryptionStateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; break; } // case 98 case 106: { input.readMessage( internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; break; } // case 106 case 122: { internalMetadata_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; break; } // case 122 + case 130: + { + containingFolder_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 130 + case 146: + { + teamFolderName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 146 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5588,6 +5812,312 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object containingFolder_ = ""; + + /** + * + * + *
          +     * Optional. The name of the containing folder of the repository.
          +     * The field is immutable and it can be modified via a MoveRepository
          +     * operation.
          +     * Format: `projects/*/locations/*/folders/*`. or
          +     * `projects/*/locations/*/teamFolders/*`.
          +     * 
          + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the containingFolder field is set. + */ + public boolean hasContainingFolder() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +     * Optional. The name of the containing folder of the repository.
          +     * The field is immutable and it can be modified via a MoveRepository
          +     * operation.
          +     * Format: `projects/*/locations/*/folders/*`. or
          +     * `projects/*/locations/*/teamFolders/*`.
          +     * 
          + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The containingFolder. + */ + public java.lang.String getContainingFolder() { + java.lang.Object ref = containingFolder_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + containingFolder_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. The name of the containing folder of the repository.
          +     * The field is immutable and it can be modified via a MoveRepository
          +     * operation.
          +     * Format: `projects/*/locations/*/folders/*`. or
          +     * `projects/*/locations/*/teamFolders/*`.
          +     * 
          + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for containingFolder. + */ + public com.google.protobuf.ByteString getContainingFolderBytes() { + java.lang.Object ref = containingFolder_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + containingFolder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. The name of the containing folder of the repository.
          +     * The field is immutable and it can be modified via a MoveRepository
          +     * operation.
          +     * Format: `projects/*/locations/*/folders/*`. or
          +     * `projects/*/locations/*/teamFolders/*`.
          +     * 
          + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The containingFolder to set. + * @return This builder for chaining. + */ + public Builder setContainingFolder(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + containingFolder_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The name of the containing folder of the repository.
          +     * The field is immutable and it can be modified via a MoveRepository
          +     * operation.
          +     * Format: `projects/*/locations/*/folders/*`. or
          +     * `projects/*/locations/*/teamFolders/*`.
          +     * 
          + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearContainingFolder() { + containingFolder_ = getDefaultInstance().getContainingFolder(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The name of the containing folder of the repository.
          +     * The field is immutable and it can be modified via a MoveRepository
          +     * operation.
          +     * Format: `projects/*/locations/*/folders/*`. or
          +     * `projects/*/locations/*/teamFolders/*`.
          +     * 
          + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for containingFolder to set. + * @return This builder for chaining. + */ + public Builder setContainingFolderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + containingFolder_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object teamFolderName_ = ""; + + /** + * + * + *
          +     * Output only. The resource name of the TeamFolder that this Repository is
          +     * associated with. This should take the format:
          +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
          +     * is not set, the Repository is not associated with a TeamFolder.
          +     * 
          + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the teamFolderName field is set. + */ + public boolean hasTeamFolderName() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
          +     * Output only. The resource name of the TeamFolder that this Repository is
          +     * associated with. This should take the format:
          +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
          +     * is not set, the Repository is not associated with a TeamFolder.
          +     * 
          + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The teamFolderName. + */ + public java.lang.String getTeamFolderName() { + java.lang.Object ref = teamFolderName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + teamFolderName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Output only. The resource name of the TeamFolder that this Repository is
          +     * associated with. This should take the format:
          +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
          +     * is not set, the Repository is not associated with a TeamFolder.
          +     * 
          + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for teamFolderName. + */ + public com.google.protobuf.ByteString getTeamFolderNameBytes() { + java.lang.Object ref = teamFolderName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + teamFolderName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Output only. The resource name of the TeamFolder that this Repository is
          +     * associated with. This should take the format:
          +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
          +     * is not set, the Repository is not associated with a TeamFolder.
          +     * 
          + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The teamFolderName to set. + * @return This builder for chaining. + */ + public Builder setTeamFolderName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + teamFolderName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The resource name of the TeamFolder that this Repository is
          +     * associated with. This should take the format:
          +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
          +     * is not set, the Repository is not associated with a TeamFolder.
          +     * 
          + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearTeamFolderName() { + teamFolderName_ = getDefaultInstance().getTeamFolderName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The resource name of the TeamFolder that this Repository is
          +     * associated with. This should take the format:
          +     * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
          +     * is not set, the Repository is not associated with a TeamFolder.
          +     * 
          + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for teamFolderName to set. + * @return This builder for chaining. + */ + public Builder setTeamFolderNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + teamFolderName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, @@ -5609,7 +6139,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -5655,7 +6185,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -5677,7 +6207,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -5695,7 +6225,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) + if (((bitField0_ & 0x00000008) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -5706,7 +6236,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; onChanged(); } return this; @@ -5724,7 +6254,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -5746,7 +6276,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; onChanged(); return internalGetCreateTimeFieldBuilder().getBuilder(); } @@ -5865,7 +6395,7 @@ public Builder setDisplayName(java.lang.String value) { throw new NullPointerException(); } displayName_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -5883,7 +6413,7 @@ public Builder setDisplayName(java.lang.String value) { */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -5906,7 +6436,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); displayName_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -5932,7 +6462,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * @return Whether the gitRemoteSettings field is set. */ public boolean hasGitRemoteSettings() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -5979,7 +6509,7 @@ public Builder setGitRemoteSettings( } else { gitRemoteSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -6002,7 +6532,7 @@ public Builder setGitRemoteSettings( } else { gitRemoteSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -6021,7 +6551,7 @@ public Builder setGitRemoteSettings( public Builder mergeGitRemoteSettings( com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings value) { if (gitRemoteSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000020) != 0) && gitRemoteSettings_ != null && gitRemoteSettings_ != com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings @@ -6034,7 +6564,7 @@ public Builder mergeGitRemoteSettings( gitRemoteSettingsBuilder_.mergeFrom(value); } if (gitRemoteSettings_ != null) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -6052,7 +6582,7 @@ public Builder mergeGitRemoteSettings( * */ public Builder clearGitRemoteSettings() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000020); gitRemoteSettings_ = null; if (gitRemoteSettingsBuilder_ != null) { gitRemoteSettingsBuilder_.dispose(); @@ -6075,7 +6605,7 @@ public Builder clearGitRemoteSettings() { */ public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.Builder getGitRemoteSettingsBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return internalGetGitRemoteSettingsFieldBuilder().getBuilder(); } @@ -6210,7 +6740,7 @@ public Builder setNpmrcEnvironmentVariablesSecretVersion(java.lang.String value) throw new NullPointerException(); } npmrcEnvironmentVariablesSecretVersion_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -6234,7 +6764,7 @@ public Builder setNpmrcEnvironmentVariablesSecretVersion(java.lang.String value) public Builder clearNpmrcEnvironmentVariablesSecretVersion() { npmrcEnvironmentVariablesSecretVersion_ = getDefaultInstance().getNpmrcEnvironmentVariablesSecretVersion(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -6263,7 +6793,7 @@ public Builder setNpmrcEnvironmentVariablesSecretVersionBytes( } checkByteStringIsUtf8(value); npmrcEnvironmentVariablesSecretVersion_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -6293,7 +6823,7 @@ public Builder setNpmrcEnvironmentVariablesSecretVersionBytes( * @return Whether the workspaceCompilationOverrides field is set. */ public boolean hasWorkspaceCompilationOverrides() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -6348,7 +6878,7 @@ public Builder setWorkspaceCompilationOverrides( } else { workspaceCompilationOverridesBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -6375,7 +6905,7 @@ public Builder setWorkspaceCompilationOverrides( } else { workspaceCompilationOverridesBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -6397,7 +6927,7 @@ public Builder setWorkspaceCompilationOverrides( public Builder mergeWorkspaceCompilationOverrides( com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides value) { if (workspaceCompilationOverridesBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000080) != 0) && workspaceCompilationOverrides_ != null && workspaceCompilationOverrides_ != com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides @@ -6410,7 +6940,7 @@ public Builder mergeWorkspaceCompilationOverrides( workspaceCompilationOverridesBuilder_.mergeFrom(value); } if (workspaceCompilationOverrides_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -6431,7 +6961,7 @@ public Builder mergeWorkspaceCompilationOverrides( * */ public Builder clearWorkspaceCompilationOverrides() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000080); workspaceCompilationOverrides_ = null; if (workspaceCompilationOverridesBuilder_ != null) { workspaceCompilationOverridesBuilder_.dispose(); @@ -6457,7 +6987,7 @@ public Builder clearWorkspaceCompilationOverrides() { */ public com.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides.Builder getWorkspaceCompilationOverridesBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); return internalGetWorkspaceCompilationOverridesFieldBuilder().getBuilder(); } @@ -6537,7 +7067,7 @@ private com.google.protobuf.MapField interna if (!labels_.isMutable()) { labels_ = labels_.copy(); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; onChanged(); return labels_; } @@ -6627,7 +7157,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000100); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -6652,7 +7182,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; return internalGetMutableLabels().getMutableMap(); } @@ -6673,7 +7203,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; return this; } @@ -6688,7 +7218,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; return this; } @@ -6735,7 +7265,7 @@ public boolean getSetAuthenticatedUserAdmin() { public Builder setSetAuthenticatedUserAdmin(boolean value) { setAuthenticatedUserAdmin_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -6757,7 +7287,7 @@ public Builder setSetAuthenticatedUserAdmin(boolean value) { * @return This builder for chaining. */ public Builder clearSetAuthenticatedUserAdmin() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000200); setAuthenticatedUserAdmin_ = false; onChanged(); return this; @@ -6828,7 +7358,7 @@ public Builder setServiceAccount(java.lang.String value) { throw new NullPointerException(); } serviceAccount_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -6846,7 +7376,7 @@ public Builder setServiceAccount(java.lang.String value) { */ public Builder clearServiceAccount() { serviceAccount_ = getDefaultInstance().getServiceAccount(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -6869,7 +7399,7 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); serviceAccount_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -6957,7 +7487,7 @@ public Builder setKmsKeyName(java.lang.String value) { throw new NullPointerException(); } kmsKeyName_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -6981,7 +7511,7 @@ public Builder setKmsKeyName(java.lang.String value) { */ public Builder clearKmsKeyName() { kmsKeyName_ = getDefaultInstance().getKmsKeyName(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -7010,7 +7540,7 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); kmsKeyName_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -7037,7 +7567,7 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { * @return Whether the dataEncryptionState field is set. */ public boolean hasDataEncryptionState() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -7086,7 +7616,7 @@ public Builder setDataEncryptionState( } else { dataEncryptionStateBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -7110,7 +7640,7 @@ public Builder setDataEncryptionState( } else { dataEncryptionStateBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -7130,7 +7660,7 @@ public Builder setDataEncryptionState( public Builder mergeDataEncryptionState( com.google.cloud.dataform.v1beta1.DataEncryptionState value) { if (dataEncryptionStateBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00001000) != 0) && dataEncryptionState_ != null && dataEncryptionState_ != com.google.cloud.dataform.v1beta1.DataEncryptionState.getDefaultInstance()) { @@ -7142,7 +7672,7 @@ public Builder mergeDataEncryptionState( dataEncryptionStateBuilder_.mergeFrom(value); } if (dataEncryptionState_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); } return this; @@ -7161,7 +7691,7 @@ public Builder mergeDataEncryptionState( * */ public Builder clearDataEncryptionState() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00001000); dataEncryptionState_ = null; if (dataEncryptionStateBuilder_ != null) { dataEncryptionStateBuilder_.dispose(); @@ -7185,7 +7715,7 @@ public Builder clearDataEncryptionState() { */ public com.google.cloud.dataform.v1beta1.DataEncryptionState.Builder getDataEncryptionStateBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); return internalGetDataEncryptionStateFieldBuilder().getBuilder(); } @@ -7259,7 +7789,7 @@ public Builder clearDataEncryptionState() { * @return Whether the internalMetadata field is set. */ public boolean hasInternalMetadata() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -7334,7 +7864,7 @@ public Builder setInternalMetadata(java.lang.String value) { throw new NullPointerException(); } internalMetadata_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -7355,7 +7885,7 @@ public Builder setInternalMetadata(java.lang.String value) { */ public Builder clearInternalMetadata() { internalMetadata_ = getDefaultInstance().getInternalMetadata(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -7381,7 +7911,7 @@ public Builder setInternalMetadataBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); internalMetadata_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; onChanged(); return this; } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RepositoryOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RepositoryOrBuilder.java index 45ef263bff2e..0af1b6248fd6 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RepositoryOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RepositoryOrBuilder.java @@ -52,6 +52,108 @@ public interface RepositoryOrBuilder */ com.google.protobuf.ByteString getNameBytes(); + /** + * + * + *
          +   * Optional. The name of the containing folder of the repository.
          +   * The field is immutable and it can be modified via a MoveRepository
          +   * operation.
          +   * Format: `projects/*/locations/*/folders/*`. or
          +   * `projects/*/locations/*/teamFolders/*`.
          +   * 
          + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the containingFolder field is set. + */ + boolean hasContainingFolder(); + + /** + * + * + *
          +   * Optional. The name of the containing folder of the repository.
          +   * The field is immutable and it can be modified via a MoveRepository
          +   * operation.
          +   * Format: `projects/*/locations/*/folders/*`. or
          +   * `projects/*/locations/*/teamFolders/*`.
          +   * 
          + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The containingFolder. + */ + java.lang.String getContainingFolder(); + + /** + * + * + *
          +   * Optional. The name of the containing folder of the repository.
          +   * The field is immutable and it can be modified via a MoveRepository
          +   * operation.
          +   * Format: `projects/*/locations/*/folders/*`. or
          +   * `projects/*/locations/*/teamFolders/*`.
          +   * 
          + * + * optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for containingFolder. + */ + com.google.protobuf.ByteString getContainingFolderBytes(); + + /** + * + * + *
          +   * Output only. The resource name of the TeamFolder that this Repository is
          +   * associated with. This should take the format:
          +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
          +   * is not set, the Repository is not associated with a TeamFolder.
          +   * 
          + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the teamFolderName field is set. + */ + boolean hasTeamFolderName(); + + /** + * + * + *
          +   * Output only. The resource name of the TeamFolder that this Repository is
          +   * associated with. This should take the format:
          +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
          +   * is not set, the Repository is not associated with a TeamFolder.
          +   * 
          + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The teamFolderName. + */ + java.lang.String getTeamFolderName(); + + /** + * + * + *
          +   * Output only. The resource name of the TeamFolder that this Repository is
          +   * associated with. This should take the format:
          +   * projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this
          +   * is not set, the Repository is not associated with a TeamFolder.
          +   * 
          + * + * optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for teamFolderName. + */ + com.google.protobuf.ByteString getTeamFolderNameBytes(); + /** * * diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/SearchTeamFoldersRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/SearchTeamFoldersRequest.java new file mode 100644 index 000000000000..af4c3b640d23 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/SearchTeamFoldersRequest.java @@ -0,0 +1,1381 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
          + * `SearchTeamFolders` request message.
          + * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.SearchTeamFoldersRequest} + */ +@com.google.protobuf.Generated +public final class SearchTeamFoldersRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.SearchTeamFoldersRequest) + SearchTeamFoldersRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchTeamFoldersRequest"); + } + + // Use SearchTeamFoldersRequest.newBuilder() to construct. + private SearchTeamFoldersRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchTeamFoldersRequest() { + location_ = ""; + pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest.class, + com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest.Builder.class); + } + + public static final int LOCATION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object location_ = ""; + + /** + * + * + *
          +   * Required. Location in which to query TeamFolders.
          +   * Format: `projects/*/locations/*`.
          +   * 
          + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. Location in which to query TeamFolders.
          +   * Format: `projects/*/locations/*`.
          +   * 
          + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
          +   * Optional. Maximum number of TeamFolders to return. The server may return
          +   * fewer items than requested. If unspecified, the server will pick an
          +   * appropriate default.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
          +   * Optional. Page token received from a previous `SearchTeamFolders` call.
          +   * Provide this to retrieve the subsequent page.
          +   *
          +   * When paginating, all other parameters provided to
          +   * `SearchTeamFolders`, with the exception of `page_size`, must
          +   * match the call that provided the page token.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. Page token received from a previous `SearchTeamFolders` call.
          +   * Provide this to retrieve the subsequent page.
          +   *
          +   * When paginating, all other parameters provided to
          +   * `SearchTeamFolders`, with the exception of `page_size`, must
          +   * match the call that provided the page token.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
          +   * Optional. Field to additionally sort results by.
          +   * Supported keywords: `display_name` (default), `create_time`,
          +   * `last_modified_time`. Examples:
          +   * - `orderBy="display_name"`
          +   * - `orderBy="display_name desc"`
          +   * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. Field to additionally sort results by.
          +   * Supported keywords: `display_name` (default), `create_time`,
          +   * `last_modified_time`. Examples:
          +   * - `orderBy="display_name"`
          +   * - `orderBy="display_name desc"`
          +   * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
          +   * Optional. Optional filtering for the returned list. Filtering is currently
          +   * only supported on the `display_name` field.
          +   *
          +   * Example:
          +   * - `filter="display_name="MyFolder""`
          +   * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. Optional filtering for the returned list. Filtering is currently
          +   * only supported on the `display_name` field.
          +   *
          +   * Example:
          +   * - `filter="display_name="MyFolder""`
          +   * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, location_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, location_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, filter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest other = + (com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest) obj; + + if (!getLocation().equals(other.getLocation())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * `SearchTeamFolders` request message.
          +   * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.SearchTeamFoldersRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.SearchTeamFoldersRequest) + com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest.class, + com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + location_ = ""; + pageSize_ = 0; + pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest build() { + com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest buildPartial() { + com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest result = + new com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.location_ = location_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.filter_ = filter_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest other) { + if (other == com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest.getDefaultInstance()) + return this; + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object location_ = ""; + + /** + * + * + *
          +     * Required. Location in which to query TeamFolders.
          +     * Format: `projects/*/locations/*`.
          +     * 
          + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. Location in which to query TeamFolders.
          +     * Format: `projects/*/locations/*`.
          +     * 
          + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. Location in which to query TeamFolders.
          +     * Format: `projects/*/locations/*`.
          +     * 
          + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Location in which to query TeamFolders.
          +     * Format: `projects/*/locations/*`.
          +     * 
          + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + location_ = getDefaultInstance().getLocation(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. Location in which to query TeamFolders.
          +     * Format: `projects/*/locations/*`.
          +     * 
          + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
          +     * Optional. Maximum number of TeamFolders to return. The server may return
          +     * fewer items than requested. If unspecified, the server will pick an
          +     * appropriate default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
          +     * Optional. Maximum number of TeamFolders to return. The server may return
          +     * fewer items than requested. If unspecified, the server will pick an
          +     * appropriate default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Maximum number of TeamFolders to return. The server may return
          +     * fewer items than requested. If unspecified, the server will pick an
          +     * appropriate default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
          +     * Optional. Page token received from a previous `SearchTeamFolders` call.
          +     * Provide this to retrieve the subsequent page.
          +     *
          +     * When paginating, all other parameters provided to
          +     * `SearchTeamFolders`, with the exception of `page_size`, must
          +     * match the call that provided the page token.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. Page token received from a previous `SearchTeamFolders` call.
          +     * Provide this to retrieve the subsequent page.
          +     *
          +     * When paginating, all other parameters provided to
          +     * `SearchTeamFolders`, with the exception of `page_size`, must
          +     * match the call that provided the page token.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. Page token received from a previous `SearchTeamFolders` call.
          +     * Provide this to retrieve the subsequent page.
          +     *
          +     * When paginating, all other parameters provided to
          +     * `SearchTeamFolders`, with the exception of `page_size`, must
          +     * match the call that provided the page token.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Page token received from a previous `SearchTeamFolders` call.
          +     * Provide this to retrieve the subsequent page.
          +     *
          +     * When paginating, all other parameters provided to
          +     * `SearchTeamFolders`, with the exception of `page_size`, must
          +     * match the call that provided the page token.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Page token received from a previous `SearchTeamFolders` call.
          +     * Provide this to retrieve the subsequent page.
          +     *
          +     * When paginating, all other parameters provided to
          +     * `SearchTeamFolders`, with the exception of `page_size`, must
          +     * match the call that provided the page token.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
          +     * Optional. Field to additionally sort results by.
          +     * Supported keywords: `display_name` (default), `create_time`,
          +     * `last_modified_time`. Examples:
          +     * - `orderBy="display_name"`
          +     * - `orderBy="display_name desc"`
          +     * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. Field to additionally sort results by.
          +     * Supported keywords: `display_name` (default), `create_time`,
          +     * `last_modified_time`. Examples:
          +     * - `orderBy="display_name"`
          +     * - `orderBy="display_name desc"`
          +     * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. Field to additionally sort results by.
          +     * Supported keywords: `display_name` (default), `create_time`,
          +     * `last_modified_time`. Examples:
          +     * - `orderBy="display_name"`
          +     * - `orderBy="display_name desc"`
          +     * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Field to additionally sort results by.
          +     * Supported keywords: `display_name` (default), `create_time`,
          +     * `last_modified_time`. Examples:
          +     * - `orderBy="display_name"`
          +     * - `orderBy="display_name desc"`
          +     * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Field to additionally sort results by.
          +     * Supported keywords: `display_name` (default), `create_time`,
          +     * `last_modified_time`. Examples:
          +     * - `orderBy="display_name"`
          +     * - `orderBy="display_name desc"`
          +     * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
          +     * Optional. Optional filtering for the returned list. Filtering is currently
          +     * only supported on the `display_name` field.
          +     *
          +     * Example:
          +     * - `filter="display_name="MyFolder""`
          +     * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. Optional filtering for the returned list. Filtering is currently
          +     * only supported on the `display_name` field.
          +     *
          +     * Example:
          +     * - `filter="display_name="MyFolder""`
          +     * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. Optional filtering for the returned list. Filtering is currently
          +     * only supported on the `display_name` field.
          +     *
          +     * Example:
          +     * - `filter="display_name="MyFolder""`
          +     * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Optional filtering for the returned list. Filtering is currently
          +     * only supported on the `display_name` field.
          +     *
          +     * Example:
          +     * - `filter="display_name="MyFolder""`
          +     * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Optional filtering for the returned list. Filtering is currently
          +     * only supported on the `display_name` field.
          +     *
          +     * Example:
          +     * - `filter="display_name="MyFolder""`
          +     * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.SearchTeamFoldersRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.SearchTeamFoldersRequest) + private static final com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest(); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchTeamFoldersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/SearchTeamFoldersRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/SearchTeamFoldersRequestOrBuilder.java new file mode 100644 index 000000000000..d753bcc19e05 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/SearchTeamFoldersRequestOrBuilder.java @@ -0,0 +1,179 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +@com.google.protobuf.Generated +public interface SearchTeamFoldersRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.SearchTeamFoldersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. Location in which to query TeamFolders.
          +   * Format: `projects/*/locations/*`.
          +   * 
          + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + java.lang.String getLocation(); + + /** + * + * + *
          +   * Required. Location in which to query TeamFolders.
          +   * Format: `projects/*/locations/*`.
          +   * 
          + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); + + /** + * + * + *
          +   * Optional. Maximum number of TeamFolders to return. The server may return
          +   * fewer items than requested. If unspecified, the server will pick an
          +   * appropriate default.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
          +   * Optional. Page token received from a previous `SearchTeamFolders` call.
          +   * Provide this to retrieve the subsequent page.
          +   *
          +   * When paginating, all other parameters provided to
          +   * `SearchTeamFolders`, with the exception of `page_size`, must
          +   * match the call that provided the page token.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
          +   * Optional. Page token received from a previous `SearchTeamFolders` call.
          +   * Provide this to retrieve the subsequent page.
          +   *
          +   * When paginating, all other parameters provided to
          +   * `SearchTeamFolders`, with the exception of `page_size`, must
          +   * match the call that provided the page token.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
          +   * Optional. Field to additionally sort results by.
          +   * Supported keywords: `display_name` (default), `create_time`,
          +   * `last_modified_time`. Examples:
          +   * - `orderBy="display_name"`
          +   * - `orderBy="display_name desc"`
          +   * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
          +   * Optional. Field to additionally sort results by.
          +   * Supported keywords: `display_name` (default), `create_time`,
          +   * `last_modified_time`. Examples:
          +   * - `orderBy="display_name"`
          +   * - `orderBy="display_name desc"`
          +   * 
          + * + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
          +   * Optional. Optional filtering for the returned list. Filtering is currently
          +   * only supported on the `display_name` field.
          +   *
          +   * Example:
          +   * - `filter="display_name="MyFolder""`
          +   * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
          +   * Optional. Optional filtering for the returned list. Filtering is currently
          +   * only supported on the `display_name` field.
          +   *
          +   * Example:
          +   * - `filter="display_name="MyFolder""`
          +   * 
          + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/SearchTeamFoldersResponse.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/SearchTeamFoldersResponse.java new file mode 100644 index 000000000000..30939e424f5f --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/SearchTeamFoldersResponse.java @@ -0,0 +1,2083 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
          + * `SearchTeamFolders` response message.
          + * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.SearchTeamFoldersResponse} + */ +@com.google.protobuf.Generated +public final class SearchTeamFoldersResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.SearchTeamFoldersResponse) + SearchTeamFoldersResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchTeamFoldersResponse"); + } + + // Use SearchTeamFoldersResponse.newBuilder() to construct. + private SearchTeamFoldersResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchTeamFoldersResponse() { + results_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.class, + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.Builder.class); + } + + public interface TeamFolderSearchResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +     * A TeamFolder resource that is in the project / location.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2; + * + * @return Whether the teamFolder field is set. + */ + boolean hasTeamFolder(); + + /** + * + * + *
          +     * A TeamFolder resource that is in the project / location.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2; + * + * @return The teamFolder. + */ + com.google.cloud.dataform.v1beta1.TeamFolder getTeamFolder(); + + /** + * + * + *
          +     * A TeamFolder resource that is in the project / location.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2; + */ + com.google.cloud.dataform.v1beta1.TeamFolderOrBuilder getTeamFolderOrBuilder(); + + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult.EntryCase + getEntryCase(); + } + + /** + * + * + *
          +   * Represents a single content entry.
          +   * 
          + * + * Protobuf type {@code + * google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult} + */ + public static final class TeamFolderSearchResult extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult) + TeamFolderSearchResultOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TeamFolderSearchResult"); + } + + // Use TeamFolderSearchResult.newBuilder() to construct. + private TeamFolderSearchResult(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TeamFolderSearchResult() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersResponse_TeamFolderSearchResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersResponse_TeamFolderSearchResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + .class, + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + .Builder.class); + } + + private int entryCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object entry_; + + public enum EntryCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TEAM_FOLDER(2), + ENTRY_NOT_SET(0); + private final int value; + + private EntryCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EntryCase valueOf(int value) { + return forNumber(value); + } + + public static EntryCase forNumber(int value) { + switch (value) { + case 2: + return TEAM_FOLDER; + case 0: + return ENTRY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EntryCase getEntryCase() { + return EntryCase.forNumber(entryCase_); + } + + public static final int TEAM_FOLDER_FIELD_NUMBER = 2; + + /** + * + * + *
          +     * A TeamFolder resource that is in the project / location.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2; + * + * @return Whether the teamFolder field is set. + */ + @java.lang.Override + public boolean hasTeamFolder() { + return entryCase_ == 2; + } + + /** + * + * + *
          +     * A TeamFolder resource that is in the project / location.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2; + * + * @return The teamFolder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.TeamFolder getTeamFolder() { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1beta1.TeamFolder) entry_; + } + return com.google.cloud.dataform.v1beta1.TeamFolder.getDefaultInstance(); + } + + /** + * + * + *
          +     * A TeamFolder resource that is in the project / location.
          +     * 
          + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.TeamFolderOrBuilder getTeamFolderOrBuilder() { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1beta1.TeamFolder) entry_; + } + return com.google.cloud.dataform.v1beta1.TeamFolder.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (entryCase_ == 2) { + output.writeMessage(2, (com.google.cloud.dataform.v1beta1.TeamFolder) entry_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (entryCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.dataform.v1beta1.TeamFolder) entry_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult other = + (com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult) obj; + + if (!getEntryCase().equals(other.getEntryCase())) return false; + switch (entryCase_) { + case 2: + if (!getTeamFolder().equals(other.getTeamFolder())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (entryCase_) { + case 2: + hash = (37 * hash) + TEAM_FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getTeamFolder().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +     * Represents a single content entry.
          +     * 
          + * + * Protobuf type {@code + * google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult) + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse + .TeamFolderSearchResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersResponse_TeamFolderSearchResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersResponse_TeamFolderSearchResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + .class, + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + .Builder.class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (teamFolderBuilder_ != null) { + teamFolderBuilder_.clear(); + } + entryCase_ = 0; + entry_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersResponse_TeamFolderSearchResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + build() { + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + buildPartial() { + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult result = + new com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + result) { + result.entryCase_ = entryCase_; + result.entry_ = this.entry_; + if (entryCase_ == 2 && teamFolderBuilder_ != null) { + result.entry_ = teamFolderBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult) { + return mergeFrom( + (com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + other) { + if (other + == com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + .getDefaultInstance()) return this; + switch (other.getEntryCase()) { + case TEAM_FOLDER: + { + mergeTeamFolder(other.getTeamFolder()); + break; + } + case ENTRY_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + input.readMessage( + internalGetTeamFolderFieldBuilder().getBuilder(), extensionRegistry); + entryCase_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int entryCase_ = 0; + private java.lang.Object entry_; + + public EntryCase getEntryCase() { + return EntryCase.forNumber(entryCase_); + } + + public Builder clearEntry() { + entryCase_ = 0; + entry_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.TeamFolder, + com.google.cloud.dataform.v1beta1.TeamFolder.Builder, + com.google.cloud.dataform.v1beta1.TeamFolderOrBuilder> + teamFolderBuilder_; + + /** + * + * + *
          +       * A TeamFolder resource that is in the project / location.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2; + * + * @return Whether the teamFolder field is set. + */ + @java.lang.Override + public boolean hasTeamFolder() { + return entryCase_ == 2; + } + + /** + * + * + *
          +       * A TeamFolder resource that is in the project / location.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2; + * + * @return The teamFolder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.TeamFolder getTeamFolder() { + if (teamFolderBuilder_ == null) { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1beta1.TeamFolder) entry_; + } + return com.google.cloud.dataform.v1beta1.TeamFolder.getDefaultInstance(); + } else { + if (entryCase_ == 2) { + return teamFolderBuilder_.getMessage(); + } + return com.google.cloud.dataform.v1beta1.TeamFolder.getDefaultInstance(); + } + } + + /** + * + * + *
          +       * A TeamFolder resource that is in the project / location.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2; + */ + public Builder setTeamFolder(com.google.cloud.dataform.v1beta1.TeamFolder value) { + if (teamFolderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entry_ = value; + onChanged(); + } else { + teamFolderBuilder_.setMessage(value); + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
          +       * A TeamFolder resource that is in the project / location.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2; + */ + public Builder setTeamFolder( + com.google.cloud.dataform.v1beta1.TeamFolder.Builder builderForValue) { + if (teamFolderBuilder_ == null) { + entry_ = builderForValue.build(); + onChanged(); + } else { + teamFolderBuilder_.setMessage(builderForValue.build()); + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
          +       * A TeamFolder resource that is in the project / location.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2; + */ + public Builder mergeTeamFolder(com.google.cloud.dataform.v1beta1.TeamFolder value) { + if (teamFolderBuilder_ == null) { + if (entryCase_ == 2 + && entry_ != com.google.cloud.dataform.v1beta1.TeamFolder.getDefaultInstance()) { + entry_ = + com.google.cloud.dataform.v1beta1.TeamFolder.newBuilder( + (com.google.cloud.dataform.v1beta1.TeamFolder) entry_) + .mergeFrom(value) + .buildPartial(); + } else { + entry_ = value; + } + onChanged(); + } else { + if (entryCase_ == 2) { + teamFolderBuilder_.mergeFrom(value); + } else { + teamFolderBuilder_.setMessage(value); + } + } + entryCase_ = 2; + return this; + } + + /** + * + * + *
          +       * A TeamFolder resource that is in the project / location.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2; + */ + public Builder clearTeamFolder() { + if (teamFolderBuilder_ == null) { + if (entryCase_ == 2) { + entryCase_ = 0; + entry_ = null; + onChanged(); + } + } else { + if (entryCase_ == 2) { + entryCase_ = 0; + entry_ = null; + } + teamFolderBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +       * A TeamFolder resource that is in the project / location.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2; + */ + public com.google.cloud.dataform.v1beta1.TeamFolder.Builder getTeamFolderBuilder() { + return internalGetTeamFolderFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +       * A TeamFolder resource that is in the project / location.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.TeamFolderOrBuilder getTeamFolderOrBuilder() { + if ((entryCase_ == 2) && (teamFolderBuilder_ != null)) { + return teamFolderBuilder_.getMessageOrBuilder(); + } else { + if (entryCase_ == 2) { + return (com.google.cloud.dataform.v1beta1.TeamFolder) entry_; + } + return com.google.cloud.dataform.v1beta1.TeamFolder.getDefaultInstance(); + } + } + + /** + * + * + *
          +       * A TeamFolder resource that is in the project / location.
          +       * 
          + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.TeamFolder, + com.google.cloud.dataform.v1beta1.TeamFolder.Builder, + com.google.cloud.dataform.v1beta1.TeamFolderOrBuilder> + internalGetTeamFolderFieldBuilder() { + if (teamFolderBuilder_ == null) { + if (!(entryCase_ == 2)) { + entry_ = com.google.cloud.dataform.v1beta1.TeamFolder.getDefaultInstance(); + } + teamFolderBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.TeamFolder, + com.google.cloud.dataform.v1beta1.TeamFolder.Builder, + com.google.cloud.dataform.v1beta1.TeamFolderOrBuilder>( + (com.google.cloud.dataform.v1beta1.TeamFolder) entry_, + getParentForChildren(), + isClean()); + entry_ = null; + } + entryCase_ = 2; + onChanged(); + return teamFolderBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult) + private static final com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse + .TeamFolderSearchResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult(); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TeamFolderSearchResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int RESULTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult> + results_; + + /** + * + * + *
          +   * List of TeamFolders that match the search query.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult> + getResultsList() { + return results_; + } + + /** + * + * + *
          +   * List of TeamFolders that match the search query.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse + .TeamFolderSearchResultOrBuilder> + getResultsOrBuilderList() { + return results_; + } + + /** + * + * + *
          +   * List of TeamFolders that match the search query.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + @java.lang.Override + public int getResultsCount() { + return results_.size(); + } + + /** + * + * + *
          +   * List of TeamFolders that match the search query.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + getResults(int index) { + return results_.get(index); + } + + /** + * + * + *
          +   * List of TeamFolders that match the search query.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResultOrBuilder + getResultsOrBuilder(int index) { + return results_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
          +   * A token, which can be sent as `page_token` to retrieve the next page.
          +   * If this field is omitted, there are no subsequent pages.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
          +   * A token, which can be sent as `page_token` to retrieve the next page.
          +   * If this field is omitted, there are no subsequent pages.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < results_.size(); i++) { + output.writeMessage(1, results_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < results_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, results_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse other = + (com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse) obj; + + if (!getResultsList().equals(other.getResultsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getResultsCount() > 0) { + hash = (37 * hash) + RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getResultsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * `SearchTeamFolders` response message.
          +   * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.SearchTeamFoldersResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.SearchTeamFoldersResponse) + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.class, + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (resultsBuilder_ == null) { + results_ = java.util.Collections.emptyList(); + } else { + results_ = null; + resultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse build() { + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse buildPartial() { + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse result = + new com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse result) { + if (resultsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + results_ = java.util.Collections.unmodifiableList(results_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.results_ = results_; + } else { + result.results_ = resultsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse) { + return mergeFrom((com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse other) { + if (other == com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.getDefaultInstance()) + return this; + if (resultsBuilder_ == null) { + if (!other.results_.isEmpty()) { + if (results_.isEmpty()) { + results_ = other.results_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResultsIsMutable(); + results_.addAll(other.results_); + } + onChanged(); + } + } else { + if (!other.results_.isEmpty()) { + if (resultsBuilder_.isEmpty()) { + resultsBuilder_.dispose(); + resultsBuilder_ = null; + results_ = other.results_; + bitField0_ = (bitField0_ & ~0x00000001); + resultsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetResultsFieldBuilder() + : null; + } else { + resultsBuilder_.addAllMessages(other.results_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + m = + input.readMessage( + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse + .TeamFolderSearchResult.parser(), + extensionRegistry); + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(m); + } else { + resultsBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult> + results_ = java.util.Collections.emptyList(); + + private void ensureResultsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + results_ = + new java.util.ArrayList< + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult>( + results_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult, + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + .Builder, + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse + .TeamFolderSearchResultOrBuilder> + resultsBuilder_; + + /** + * + * + *
          +     * List of TeamFolders that match the search query.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public java.util.List< + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult> + getResultsList() { + if (resultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(results_); + } else { + return resultsBuilder_.getMessageList(); + } + } + + /** + * + * + *
          +     * List of TeamFolders that match the search query.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public int getResultsCount() { + if (resultsBuilder_ == null) { + return results_.size(); + } else { + return resultsBuilder_.getCount(); + } + } + + /** + * + * + *
          +     * List of TeamFolders that match the search query.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + getResults(int index) { + if (resultsBuilder_ == null) { + return results_.get(index); + } else { + return resultsBuilder_.getMessage(index); + } + } + + /** + * + * + *
          +     * List of TeamFolders that match the search query.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public Builder setResults( + int index, + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.set(index, value); + onChanged(); + } else { + resultsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * List of TeamFolders that match the search query.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public Builder setResults( + int index, + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult.Builder + builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.set(index, builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * List of TeamFolders that match the search query.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public Builder addResults( + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.add(value); + onChanged(); + } else { + resultsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
          +     * List of TeamFolders that match the search query.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public Builder addResults( + int index, + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.add(index, value); + onChanged(); + } else { + resultsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * List of TeamFolders that match the search query.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public Builder addResults( + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult.Builder + builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * List of TeamFolders that match the search query.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public Builder addResults( + int index, + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult.Builder + builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(index, builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * List of TeamFolders that match the search query.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public Builder addAllResults( + java.lang.Iterable< + ? extends + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse + .TeamFolderSearchResult> + values) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_); + onChanged(); + } else { + resultsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
          +     * List of TeamFolders that match the search query.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public Builder clearResults() { + if (resultsBuilder_ == null) { + results_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + resultsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +     * List of TeamFolders that match the search query.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public Builder removeResults(int index) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.remove(index); + onChanged(); + } else { + resultsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
          +     * List of TeamFolders that match the search query.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + .Builder + getResultsBuilder(int index) { + return internalGetResultsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
          +     * List of TeamFolders that match the search query.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse + .TeamFolderSearchResultOrBuilder + getResultsOrBuilder(int index) { + if (resultsBuilder_ == null) { + return results_.get(index); + } else { + return resultsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
          +     * List of TeamFolders that match the search query.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse + .TeamFolderSearchResultOrBuilder> + getResultsOrBuilderList() { + if (resultsBuilder_ != null) { + return resultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(results_); + } + } + + /** + * + * + *
          +     * List of TeamFolders that match the search query.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + .Builder + addResultsBuilder() { + return internalGetResultsFieldBuilder() + .addBuilder( + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + .getDefaultInstance()); + } + + /** + * + * + *
          +     * List of TeamFolders that match the search query.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + .Builder + addResultsBuilder(int index) { + return internalGetResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + .getDefaultInstance()); + } + + /** + * + * + *
          +     * List of TeamFolders that match the search query.
          +     * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + public java.util.List< + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + .Builder> + getResultsBuilderList() { + return internalGetResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult, + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + .Builder, + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse + .TeamFolderSearchResultOrBuilder> + internalGetResultsFieldBuilder() { + if (resultsBuilder_ == null) { + resultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult, + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + .Builder, + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse + .TeamFolderSearchResultOrBuilder>( + results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + results_ = null; + } + return resultsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
          +     * A token, which can be sent as `page_token` to retrieve the next page.
          +     * If this field is omitted, there are no subsequent pages.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * A token, which can be sent as `page_token` to retrieve the next page.
          +     * If this field is omitted, there are no subsequent pages.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * A token, which can be sent as `page_token` to retrieve the next page.
          +     * If this field is omitted, there are no subsequent pages.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * A token, which can be sent as `page_token` to retrieve the next page.
          +     * If this field is omitted, there are no subsequent pages.
          +     * 
          + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * A token, which can be sent as `page_token` to retrieve the next page.
          +     * If this field is omitted, there are no subsequent pages.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.SearchTeamFoldersResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.SearchTeamFoldersResponse) + private static final com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse(); + } + + public static com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchTeamFoldersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/SearchTeamFoldersResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/SearchTeamFoldersResponseOrBuilder.java new file mode 100644 index 000000000000..0cf8fac32763 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/SearchTeamFoldersResponseOrBuilder.java @@ -0,0 +1,128 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +@com.google.protobuf.Generated +public interface SearchTeamFoldersResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.SearchTeamFoldersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * List of TeamFolders that match the search query.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + java.util.List + getResultsList(); + + /** + * + * + *
          +   * List of TeamFolders that match the search query.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult getResults( + int index); + + /** + * + * + *
          +   * List of TeamFolders that match the search query.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + int getResultsCount(); + + /** + * + * + *
          +   * List of TeamFolders that match the search query.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse + .TeamFolderSearchResultOrBuilder> + getResultsOrBuilderList(); + + /** + * + * + *
          +   * List of TeamFolders that match the search query.
          +   * 
          + * + * + * repeated .google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * + */ + com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResultOrBuilder + getResultsOrBuilder(int index); + + /** + * + * + *
          +   * A token, which can be sent as `page_token` to retrieve the next page.
          +   * If this field is omitted, there are no subsequent pages.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
          +   * A token, which can be sent as `page_token` to retrieve the next page.
          +   * If this field is omitted, there are no subsequent pages.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/TeamFolder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/TeamFolder.java new file mode 100644 index 000000000000..fb1e857d2f10 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/TeamFolder.java @@ -0,0 +1,1883 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
          + * Represents a Dataform TeamFolder. This is a resource that sits at the project
          + * level and is used to organize Repositories and Folders with hierarchical
          + * access controls. They provide a team context and stricter access controls.
          + * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.TeamFolder} + */ +@com.google.protobuf.Generated +public final class TeamFolder extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.TeamFolder) + TeamFolderOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TeamFolder"); + } + + // Use TeamFolder.newBuilder() to construct. + private TeamFolder(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TeamFolder() { + name_ = ""; + displayName_ = ""; + internalMetadata_ = ""; + creatorIamPrincipal_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_TeamFolder_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_TeamFolder_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.TeamFolder.class, + com.google.cloud.dataform.v1beta1.TeamFolder.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
          +   * Identifier. The TeamFolder's name.
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
          +   * Identifier. The TeamFolder's name.
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
          +   * Required. The TeamFolder's user-friendly name.
          +   * 
          + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
          +   * Required. The TeamFolder's user-friendly name.
          +   * 
          + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
          +   * Output only. The timestamp of when the TeamFolder was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +   * Output only. The timestamp of when the TeamFolder was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
          +   * Output only. The timestamp of when the TeamFolder was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
          +   * Output only. The timestamp of when the TeamFolder was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +   * Output only. The timestamp of when the TeamFolder was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
          +   * Output only. The timestamp of when the TeamFolder was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int INTERNAL_METADATA_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object internalMetadata_ = ""; + + /** + * + * + *
          +   * Output only. All the metadata information that is used internally to serve
          +   * the resource. For example: timestamps, flags, status fields, etc. The
          +   * format of this field is a JSON string.
          +   * 
          + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the internalMetadata field is set. + */ + @java.lang.Override + public boolean hasInternalMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
          +   * Output only. All the metadata information that is used internally to serve
          +   * the resource. For example: timestamps, flags, status fields, etc. The
          +   * format of this field is a JSON string.
          +   * 
          + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The internalMetadata. + */ + @java.lang.Override + public java.lang.String getInternalMetadata() { + java.lang.Object ref = internalMetadata_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + internalMetadata_ = s; + return s; + } + } + + /** + * + * + *
          +   * Output only. All the metadata information that is used internally to serve
          +   * the resource. For example: timestamps, flags, status fields, etc. The
          +   * format of this field is a JSON string.
          +   * 
          + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for internalMetadata. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInternalMetadataBytes() { + java.lang.Object ref = internalMetadata_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + internalMetadata_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATOR_IAM_PRINCIPAL_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object creatorIamPrincipal_ = ""; + + /** + * + * + *
          +   * Output only. The IAM principal identifier of the creator of the TeamFolder.
          +   * 
          + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the creatorIamPrincipal field is set. + */ + @java.lang.Override + public boolean hasCreatorIamPrincipal() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
          +   * Output only. The IAM principal identifier of the creator of the TeamFolder.
          +   * 
          + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The creatorIamPrincipal. + */ + @java.lang.Override + public java.lang.String getCreatorIamPrincipal() { + java.lang.Object ref = creatorIamPrincipal_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + creatorIamPrincipal_ = s; + return s; + } + } + + /** + * + * + *
          +   * Output only. The IAM principal identifier of the creator of the TeamFolder.
          +   * 
          + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for creatorIamPrincipal. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCreatorIamPrincipalBytes() { + java.lang.Object ref = creatorIamPrincipal_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + creatorIamPrincipal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, internalMetadata_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, creatorIamPrincipal_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, internalMetadata_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, creatorIamPrincipal_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.TeamFolder)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.TeamFolder other = + (com.google.cloud.dataform.v1beta1.TeamFolder) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (hasInternalMetadata() != other.hasInternalMetadata()) return false; + if (hasInternalMetadata()) { + if (!getInternalMetadata().equals(other.getInternalMetadata())) return false; + } + if (hasCreatorIamPrincipal() != other.hasCreatorIamPrincipal()) return false; + if (hasCreatorIamPrincipal()) { + if (!getCreatorIamPrincipal().equals(other.getCreatorIamPrincipal())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasInternalMetadata()) { + hash = (37 * hash) + INTERNAL_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getInternalMetadata().hashCode(); + } + if (hasCreatorIamPrincipal()) { + hash = (37 * hash) + CREATOR_IAM_PRINCIPAL_FIELD_NUMBER; + hash = (53 * hash) + getCreatorIamPrincipal().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.TeamFolder parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.TeamFolder parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.TeamFolder parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.TeamFolder parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.TeamFolder parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.TeamFolder parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.TeamFolder parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.TeamFolder parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.TeamFolder parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.TeamFolder parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.TeamFolder parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.TeamFolder parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataform.v1beta1.TeamFolder prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Represents a Dataform TeamFolder. This is a resource that sits at the project
          +   * level and is used to organize Repositories and Folders with hierarchical
          +   * access controls. They provide a team context and stricter access controls.
          +   * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.TeamFolder} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.TeamFolder) + com.google.cloud.dataform.v1beta1.TeamFolderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_TeamFolder_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_TeamFolder_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.TeamFolder.class, + com.google.cloud.dataform.v1beta1.TeamFolder.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.TeamFolder.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalMetadata_ = ""; + creatorIamPrincipal_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_TeamFolder_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.TeamFolder getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.TeamFolder.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.TeamFolder build() { + com.google.cloud.dataform.v1beta1.TeamFolder result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.TeamFolder buildPartial() { + com.google.cloud.dataform.v1beta1.TeamFolder result = + new com.google.cloud.dataform.v1beta1.TeamFolder(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1beta1.TeamFolder result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.internalMetadata_ = internalMetadata_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.creatorIamPrincipal_ = creatorIamPrincipal_; + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.TeamFolder) { + return mergeFrom((com.google.cloud.dataform.v1beta1.TeamFolder) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.TeamFolder other) { + if (other == com.google.cloud.dataform.v1beta1.TeamFolder.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasInternalMetadata()) { + internalMetadata_ = other.internalMetadata_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasCreatorIamPrincipal()) { + creatorIamPrincipal_ = other.creatorIamPrincipal_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + internalMetadata_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + creatorIamPrincipal_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
          +     * Identifier. The TeamFolder's name.
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Identifier. The TeamFolder's name.
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Identifier. The TeamFolder's name.
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Identifier. The TeamFolder's name.
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Identifier. The TeamFolder's name.
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
          +     * Required. The TeamFolder's user-friendly name.
          +     * 
          + * + * 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; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Required. The TeamFolder's user-friendly name.
          +     * 
          + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Required. The TeamFolder's user-friendly name.
          +     * 
          + * + * 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(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The TeamFolder's user-friendly name.
          +     * 
          + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The TeamFolder's user-friendly name.
          +     * 
          + * + * 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(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
          +     * Output only. The timestamp of when the TeamFolder was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
          +     * Output only. The timestamp of when the TeamFolder was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Output only. The timestamp of when the TeamFolder was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp of when the TeamFolder was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp of when the TeamFolder was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp of when the TeamFolder was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp of when the TeamFolder was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Output only. The timestamp of when the TeamFolder was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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_; + } + } + + /** + * + * + *
          +     * Output only. The timestamp of when the TeamFolder was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
          +     * Output only. The timestamp of when the TeamFolder was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
          +     * Output only. The timestamp of when the TeamFolder was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 4 [(.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_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Output only. The timestamp of when the TeamFolder was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp of when the TeamFolder was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp of when the TeamFolder was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp of when the TeamFolder was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The timestamp of when the TeamFolder was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Output only. The timestamp of when the TeamFolder was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 4 [(.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_; + } + } + + /** + * + * + *
          +     * Output only. The timestamp of when the TeamFolder was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object internalMetadata_ = ""; + + /** + * + * + *
          +     * Output only. All the metadata information that is used internally to serve
          +     * the resource. For example: timestamps, flags, status fields, etc. The
          +     * format of this field is a JSON string.
          +     * 
          + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the internalMetadata field is set. + */ + public boolean hasInternalMetadata() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
          +     * Output only. All the metadata information that is used internally to serve
          +     * the resource. For example: timestamps, flags, status fields, etc. The
          +     * format of this field is a JSON string.
          +     * 
          + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The internalMetadata. + */ + public java.lang.String getInternalMetadata() { + java.lang.Object ref = internalMetadata_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + internalMetadata_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Output only. All the metadata information that is used internally to serve
          +     * the resource. For example: timestamps, flags, status fields, etc. The
          +     * format of this field is a JSON string.
          +     * 
          + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for internalMetadata. + */ + public com.google.protobuf.ByteString getInternalMetadataBytes() { + java.lang.Object ref = internalMetadata_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + internalMetadata_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Output only. All the metadata information that is used internally to serve
          +     * the resource. For example: timestamps, flags, status fields, etc. The
          +     * format of this field is a JSON string.
          +     * 
          + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The internalMetadata to set. + * @return This builder for chaining. + */ + public Builder setInternalMetadata(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + internalMetadata_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. All the metadata information that is used internally to serve
          +     * the resource. For example: timestamps, flags, status fields, etc. The
          +     * format of this field is a JSON string.
          +     * 
          + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearInternalMetadata() { + internalMetadata_ = getDefaultInstance().getInternalMetadata(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. All the metadata information that is used internally to serve
          +     * the resource. For example: timestamps, flags, status fields, etc. The
          +     * format of this field is a JSON string.
          +     * 
          + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for internalMetadata to set. + * @return This builder for chaining. + */ + public Builder setInternalMetadataBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + internalMetadata_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object creatorIamPrincipal_ = ""; + + /** + * + * + *
          +     * Output only. The IAM principal identifier of the creator of the TeamFolder.
          +     * 
          + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the creatorIamPrincipal field is set. + */ + public boolean hasCreatorIamPrincipal() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
          +     * Output only. The IAM principal identifier of the creator of the TeamFolder.
          +     * 
          + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The creatorIamPrincipal. + */ + public java.lang.String getCreatorIamPrincipal() { + java.lang.Object ref = creatorIamPrincipal_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + creatorIamPrincipal_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Output only. The IAM principal identifier of the creator of the TeamFolder.
          +     * 
          + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for creatorIamPrincipal. + */ + public com.google.protobuf.ByteString getCreatorIamPrincipalBytes() { + java.lang.Object ref = creatorIamPrincipal_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + creatorIamPrincipal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Output only. The IAM principal identifier of the creator of the TeamFolder.
          +     * 
          + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The creatorIamPrincipal to set. + * @return This builder for chaining. + */ + public Builder setCreatorIamPrincipal(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + creatorIamPrincipal_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The IAM principal identifier of the creator of the TeamFolder.
          +     * 
          + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCreatorIamPrincipal() { + creatorIamPrincipal_ = getDefaultInstance().getCreatorIamPrincipal(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. The IAM principal identifier of the creator of the TeamFolder.
          +     * 
          + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for creatorIamPrincipal to set. + * @return This builder for chaining. + */ + public Builder setCreatorIamPrincipalBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + creatorIamPrincipal_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.TeamFolder) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.TeamFolder) + private static final com.google.cloud.dataform.v1beta1.TeamFolder DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.TeamFolder(); + } + + public static com.google.cloud.dataform.v1beta1.TeamFolder getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TeamFolder parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.TeamFolder getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/TeamFolderName.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/TeamFolderName.java new file mode 100644 index 000000000000..eba8ebae8277 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/TeamFolderName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class TeamFolderName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_TEAM_FOLDER = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/teamFolders/{team_folder}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String teamFolder; + + @Deprecated + protected TeamFolderName() { + project = null; + location = null; + teamFolder = null; + } + + private TeamFolderName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + teamFolder = Preconditions.checkNotNull(builder.getTeamFolder()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getTeamFolder() { + return teamFolder; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static TeamFolderName of(String project, String location, String teamFolder) { + return newBuilder().setProject(project).setLocation(location).setTeamFolder(teamFolder).build(); + } + + public static String format(String project, String location, String teamFolder) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setTeamFolder(teamFolder) + .build() + .toString(); + } + + public static TeamFolderName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_TEAM_FOLDER.validatedMatch( + formattedString, "TeamFolderName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("team_folder")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (TeamFolderName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_TEAM_FOLDER.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (teamFolder != null) { + fieldMapBuilder.put("team_folder", teamFolder); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_TEAM_FOLDER.instantiate( + "project", project, "location", location, "team_folder", teamFolder); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + TeamFolderName that = ((TeamFolderName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.teamFolder, that.teamFolder); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(teamFolder); + return h; + } + + /** Builder for projects/{project}/locations/{location}/teamFolders/{team_folder}. */ + public static class Builder { + private String project; + private String location; + private String teamFolder; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getTeamFolder() { + return teamFolder; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setTeamFolder(String teamFolder) { + this.teamFolder = teamFolder; + return this; + } + + private Builder(TeamFolderName teamFolderName) { + this.project = teamFolderName.project; + this.location = teamFolderName.location; + this.teamFolder = teamFolderName.teamFolder; + } + + public TeamFolderName build() { + return new TeamFolderName(this); + } + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/TeamFolderOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/TeamFolderOrBuilder.java new file mode 100644 index 000000000000..12a72df4b8f1 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/TeamFolderOrBuilder.java @@ -0,0 +1,250 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +@com.google.protobuf.Generated +public interface TeamFolderOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.TeamFolder) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Identifier. The TeamFolder's name.
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
          +   * Identifier. The TeamFolder's name.
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +   * Required. The TeamFolder's user-friendly name.
          +   * 
          + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
          +   * Required. The TeamFolder's user-friendly name.
          +   * 
          + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
          +   * Output only. The timestamp of when the TeamFolder was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
          +   * Output only. The timestamp of when the TeamFolder was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
          +   * Output only. The timestamp of when the TeamFolder was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
          +   * Output only. The timestamp of when the TeamFolder was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
          +   * Output only. The timestamp of when the TeamFolder was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
          +   * Output only. The timestamp of when the TeamFolder was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
          +   * Output only. All the metadata information that is used internally to serve
          +   * the resource. For example: timestamps, flags, status fields, etc. The
          +   * format of this field is a JSON string.
          +   * 
          + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the internalMetadata field is set. + */ + boolean hasInternalMetadata(); + + /** + * + * + *
          +   * Output only. All the metadata information that is used internally to serve
          +   * the resource. For example: timestamps, flags, status fields, etc. The
          +   * format of this field is a JSON string.
          +   * 
          + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The internalMetadata. + */ + java.lang.String getInternalMetadata(); + + /** + * + * + *
          +   * Output only. All the metadata information that is used internally to serve
          +   * the resource. For example: timestamps, flags, status fields, etc. The
          +   * format of this field is a JSON string.
          +   * 
          + * + * optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for internalMetadata. + */ + com.google.protobuf.ByteString getInternalMetadataBytes(); + + /** + * + * + *
          +   * Output only. The IAM principal identifier of the creator of the TeamFolder.
          +   * 
          + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the creatorIamPrincipal field is set. + */ + boolean hasCreatorIamPrincipal(); + + /** + * + * + *
          +   * Output only. The IAM principal identifier of the creator of the TeamFolder.
          +   * 
          + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The creatorIamPrincipal. + */ + java.lang.String getCreatorIamPrincipal(); + + /** + * + * + *
          +   * Output only. The IAM principal identifier of the creator of the TeamFolder.
          +   * 
          + * + * optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for creatorIamPrincipal. + */ + com.google.protobuf.ByteString getCreatorIamPrincipalBytes(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateFolderRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateFolderRequest.java new file mode 100644 index 000000000000..7194838824d4 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateFolderRequest.java @@ -0,0 +1,1047 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
          + * `UpdateFolder` request message.
          + * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.UpdateFolderRequest} + */ +@com.google.protobuf.Generated +public final class UpdateFolderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.UpdateFolderRequest) + UpdateFolderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateFolderRequest"); + } + + // Use UpdateFolderRequest.newBuilder() to construct. + private UpdateFolderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateFolderRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_UpdateFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_UpdateFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.UpdateFolderRequest.class, + com.google.cloud.dataform.v1beta1.UpdateFolderRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
          +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
          +   * all fields that can be updated, will be updated. A few fields cannot be
          +   * updated and will be ignored if specified in the update_mask (e.g.
          +   * parent_name, team_folder_name).
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
          +   * all fields that can be updated, will be updated. A few fields cannot be
          +   * updated and will be ignored if specified in the update_mask (e.g.
          +   * parent_name, team_folder_name).
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
          +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
          +   * all fields that can be updated, will be updated. A few fields cannot be
          +   * updated and will be ignored if specified in the update_mask (e.g.
          +   * parent_name, team_folder_name).
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int FOLDER_FIELD_NUMBER = 2; + private com.google.cloud.dataform.v1beta1.Folder folder_; + + /** + * + * + *
          +   * Required. The updated Folder.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the folder field is set. + */ + @java.lang.Override + public boolean hasFolder() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +   * Required. The updated Folder.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The folder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.Folder getFolder() { + return folder_ == null + ? com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance() + : folder_; + } + + /** + * + * + *
          +   * Required. The updated Folder.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FolderOrBuilder getFolderOrBuilder() { + return folder_ == null + ? com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance() + : folder_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getFolder()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFolder()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.UpdateFolderRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.UpdateFolderRequest other = + (com.google.cloud.dataform.v1beta1.UpdateFolderRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasFolder() != other.hasFolder()) return false; + if (hasFolder()) { + if (!getFolder().equals(other.getFolder())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasFolder()) { + hash = (37 * hash) + FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getFolder().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.UpdateFolderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.UpdateFolderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.UpdateFolderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.UpdateFolderRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.UpdateFolderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.UpdateFolderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.UpdateFolderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.UpdateFolderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.UpdateFolderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.UpdateFolderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.UpdateFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.UpdateFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.UpdateFolderRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * `UpdateFolder` request message.
          +   * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.UpdateFolderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.UpdateFolderRequest) + com.google.cloud.dataform.v1beta1.UpdateFolderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_UpdateFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_UpdateFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.UpdateFolderRequest.class, + com.google.cloud.dataform.v1beta1.UpdateFolderRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.UpdateFolderRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetFolderFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + folder_ = null; + if (folderBuilder_ != null) { + folderBuilder_.dispose(); + folderBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_UpdateFolderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.UpdateFolderRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.UpdateFolderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.UpdateFolderRequest build() { + com.google.cloud.dataform.v1beta1.UpdateFolderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.UpdateFolderRequest buildPartial() { + com.google.cloud.dataform.v1beta1.UpdateFolderRequest result = + new com.google.cloud.dataform.v1beta1.UpdateFolderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1beta1.UpdateFolderRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.folder_ = folderBuilder_ == null ? folder_ : folderBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.UpdateFolderRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.UpdateFolderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.UpdateFolderRequest other) { + if (other == com.google.cloud.dataform.v1beta1.UpdateFolderRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasFolder()) { + mergeFolder(other.getFolder()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetFolderFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
          +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
          +     * all fields that can be updated, will be updated. A few fields cannot be
          +     * updated and will be ignored if specified in the update_mask (e.g.
          +     * parent_name, team_folder_name).
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
          +     * all fields that can be updated, will be updated. A few fields cannot be
          +     * updated and will be ignored if specified in the update_mask (e.g.
          +     * parent_name, team_folder_name).
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
          +     * all fields that can be updated, will be updated. A few fields cannot be
          +     * updated and will be ignored if specified in the update_mask (e.g.
          +     * parent_name, team_folder_name).
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
          +     * all fields that can be updated, will be updated. A few fields cannot be
          +     * updated and will be ignored if specified in the update_mask (e.g.
          +     * parent_name, team_folder_name).
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
          +     * all fields that can be updated, will be updated. A few fields cannot be
          +     * updated and will be ignored if specified in the update_mask (e.g.
          +     * parent_name, team_folder_name).
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
          +     * all fields that can be updated, will be updated. A few fields cannot be
          +     * updated and will be ignored if specified in the update_mask (e.g.
          +     * parent_name, team_folder_name).
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
          +     * all fields that can be updated, will be updated. A few fields cannot be
          +     * updated and will be ignored if specified in the update_mask (e.g.
          +     * parent_name, team_folder_name).
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
          +     * all fields that can be updated, will be updated. A few fields cannot be
          +     * updated and will be ignored if specified in the update_mask (e.g.
          +     * parent_name, team_folder_name).
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
          +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
          +     * all fields that can be updated, will be updated. A few fields cannot be
          +     * updated and will be ignored if specified in the update_mask (e.g.
          +     * parent_name, team_folder_name).
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.dataform.v1beta1.Folder folder_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.Folder, + com.google.cloud.dataform.v1beta1.Folder.Builder, + com.google.cloud.dataform.v1beta1.FolderOrBuilder> + folderBuilder_; + + /** + * + * + *
          +     * Required. The updated Folder.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the folder field is set. + */ + public boolean hasFolder() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +     * Required. The updated Folder.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The folder. + */ + public com.google.cloud.dataform.v1beta1.Folder getFolder() { + if (folderBuilder_ == null) { + return folder_ == null + ? com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance() + : folder_; + } else { + return folderBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Required. The updated Folder.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFolder(com.google.cloud.dataform.v1beta1.Folder value) { + if (folderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + folder_ = value; + } else { + folderBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The updated Folder.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFolder(com.google.cloud.dataform.v1beta1.Folder.Builder builderForValue) { + if (folderBuilder_ == null) { + folder_ = builderForValue.build(); + } else { + folderBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The updated Folder.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFolder(com.google.cloud.dataform.v1beta1.Folder value) { + if (folderBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && folder_ != null + && folder_ != com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance()) { + getFolderBuilder().mergeFrom(value); + } else { + folder_ = value; + } + } else { + folderBuilder_.mergeFrom(value); + } + if (folder_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Required. The updated Folder.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFolder() { + bitField0_ = (bitField0_ & ~0x00000002); + folder_ = null; + if (folderBuilder_ != null) { + folderBuilder_.dispose(); + folderBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The updated Folder.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1beta1.Folder.Builder getFolderBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetFolderFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Required. The updated Folder.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1beta1.FolderOrBuilder getFolderOrBuilder() { + if (folderBuilder_ != null) { + return folderBuilder_.getMessageOrBuilder(); + } else { + return folder_ == null + ? com.google.cloud.dataform.v1beta1.Folder.getDefaultInstance() + : folder_; + } + } + + /** + * + * + *
          +     * Required. The updated Folder.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.Folder, + com.google.cloud.dataform.v1beta1.Folder.Builder, + com.google.cloud.dataform.v1beta1.FolderOrBuilder> + internalGetFolderFieldBuilder() { + if (folderBuilder_ == null) { + folderBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.Folder, + com.google.cloud.dataform.v1beta1.Folder.Builder, + com.google.cloud.dataform.v1beta1.FolderOrBuilder>( + getFolder(), getParentForChildren(), isClean()); + folder_ = null; + } + return folderBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.UpdateFolderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.UpdateFolderRequest) + private static final com.google.cloud.dataform.v1beta1.UpdateFolderRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.UpdateFolderRequest(); + } + + public static com.google.cloud.dataform.v1beta1.UpdateFolderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.UpdateFolderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateFolderRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateFolderRequestOrBuilder.java new file mode 100644 index 000000000000..0067d8bf8d0a --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateFolderRequestOrBuilder.java @@ -0,0 +1,120 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +@com.google.protobuf.Generated +public interface UpdateFolderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.UpdateFolderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
          +   * all fields that can be updated, will be updated. A few fields cannot be
          +   * updated and will be ignored if specified in the update_mask (e.g.
          +   * parent_name, team_folder_name).
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
          +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
          +   * all fields that can be updated, will be updated. A few fields cannot be
          +   * updated and will be ignored if specified in the update_mask (e.g.
          +   * parent_name, team_folder_name).
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
          +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
          +   * all fields that can be updated, will be updated. A few fields cannot be
          +   * updated and will be ignored if specified in the update_mask (e.g.
          +   * parent_name, team_folder_name).
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
          +   * Required. The updated Folder.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the folder field is set. + */ + boolean hasFolder(); + + /** + * + * + *
          +   * Required. The updated Folder.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The folder. + */ + com.google.cloud.dataform.v1beta1.Folder getFolder(); + + /** + * + * + *
          +   * Required. The updated Folder.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataform.v1beta1.FolderOrBuilder getFolderOrBuilder(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateTeamFolderRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateTeamFolderRequest.java new file mode 100644 index 000000000000..3b4ddfde4da8 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateTeamFolderRequest.java @@ -0,0 +1,1025 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
          + * `UpdateTeamFolder` request message.
          + * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.UpdateTeamFolderRequest} + */ +@com.google.protobuf.Generated +public final class UpdateTeamFolderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.UpdateTeamFolderRequest) + UpdateTeamFolderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateTeamFolderRequest"); + } + + // Use UpdateTeamFolderRequest.newBuilder() to construct. + private UpdateTeamFolderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateTeamFolderRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_UpdateTeamFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_UpdateTeamFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest.class, + com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
          +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
          +   * all fields will be updated.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
          +   * all fields will be updated.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
          +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
          +   * all fields will be updated.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int TEAM_FOLDER_FIELD_NUMBER = 2; + private com.google.cloud.dataform.v1beta1.TeamFolder teamFolder_; + + /** + * + * + *
          +   * Required. The updated TeamFolder.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the teamFolder field is set. + */ + @java.lang.Override + public boolean hasTeamFolder() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +   * Required. The updated TeamFolder.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The teamFolder. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.TeamFolder getTeamFolder() { + return teamFolder_ == null + ? com.google.cloud.dataform.v1beta1.TeamFolder.getDefaultInstance() + : teamFolder_; + } + + /** + * + * + *
          +   * Required. The updated TeamFolder.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.TeamFolderOrBuilder getTeamFolderOrBuilder() { + return teamFolder_ == null + ? com.google.cloud.dataform.v1beta1.TeamFolder.getDefaultInstance() + : teamFolder_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getTeamFolder()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTeamFolder()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest other = + (com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasTeamFolder() != other.hasTeamFolder()) return false; + if (hasTeamFolder()) { + if (!getTeamFolder().equals(other.getTeamFolder())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasTeamFolder()) { + hash = (37 * hash) + TEAM_FOLDER_FIELD_NUMBER; + hash = (53 * hash) + getTeamFolder().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * `UpdateTeamFolder` request message.
          +   * 
          + * + * Protobuf type {@code google.cloud.dataform.v1beta1.UpdateTeamFolderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.UpdateTeamFolderRequest) + com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_UpdateTeamFolderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_UpdateTeamFolderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest.class, + com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetTeamFolderFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + teamFolder_ = null; + if (teamFolderBuilder_ != null) { + teamFolderBuilder_.dispose(); + teamFolderBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_UpdateTeamFolderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest build() { + com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest buildPartial() { + com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest result = + new com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.teamFolder_ = teamFolderBuilder_ == null ? teamFolder_ : teamFolderBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest other) { + if (other == com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasTeamFolder()) { + mergeTeamFolder(other.getTeamFolder()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetTeamFolderFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
          +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
          +     * all fields will be updated.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
          +     * all fields will be updated.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
          +     * all fields will be updated.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
          +     * all fields will be updated.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
          +     * all fields will be updated.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
          +     * all fields will be updated.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
          +     * all fields will be updated.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
          +     * all fields will be updated.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
          +     * Optional. Specifies the fields to be updated in the Folder. If left unset,
          +     * all fields will be updated.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.dataform.v1beta1.TeamFolder teamFolder_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.TeamFolder, + com.google.cloud.dataform.v1beta1.TeamFolder.Builder, + com.google.cloud.dataform.v1beta1.TeamFolderOrBuilder> + teamFolderBuilder_; + + /** + * + * + *
          +     * Required. The updated TeamFolder.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the teamFolder field is set. + */ + public boolean hasTeamFolder() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +     * Required. The updated TeamFolder.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The teamFolder. + */ + public com.google.cloud.dataform.v1beta1.TeamFolder getTeamFolder() { + if (teamFolderBuilder_ == null) { + return teamFolder_ == null + ? com.google.cloud.dataform.v1beta1.TeamFolder.getDefaultInstance() + : teamFolder_; + } else { + return teamFolderBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Required. The updated TeamFolder.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTeamFolder(com.google.cloud.dataform.v1beta1.TeamFolder value) { + if (teamFolderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + teamFolder_ = value; + } else { + teamFolderBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The updated TeamFolder.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTeamFolder( + com.google.cloud.dataform.v1beta1.TeamFolder.Builder builderForValue) { + if (teamFolderBuilder_ == null) { + teamFolder_ = builderForValue.build(); + } else { + teamFolderBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The updated TeamFolder.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeTeamFolder(com.google.cloud.dataform.v1beta1.TeamFolder value) { + if (teamFolderBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && teamFolder_ != null + && teamFolder_ != com.google.cloud.dataform.v1beta1.TeamFolder.getDefaultInstance()) { + getTeamFolderBuilder().mergeFrom(value); + } else { + teamFolder_ = value; + } + } else { + teamFolderBuilder_.mergeFrom(value); + } + if (teamFolder_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Required. The updated TeamFolder.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTeamFolder() { + bitField0_ = (bitField0_ & ~0x00000002); + teamFolder_ = null; + if (teamFolderBuilder_ != null) { + teamFolderBuilder_.dispose(); + teamFolderBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Required. The updated TeamFolder.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1beta1.TeamFolder.Builder getTeamFolderBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetTeamFolderFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Required. The updated TeamFolder.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataform.v1beta1.TeamFolderOrBuilder getTeamFolderOrBuilder() { + if (teamFolderBuilder_ != null) { + return teamFolderBuilder_.getMessageOrBuilder(); + } else { + return teamFolder_ == null + ? com.google.cloud.dataform.v1beta1.TeamFolder.getDefaultInstance() + : teamFolder_; + } + } + + /** + * + * + *
          +     * Required. The updated TeamFolder.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.TeamFolder, + com.google.cloud.dataform.v1beta1.TeamFolder.Builder, + com.google.cloud.dataform.v1beta1.TeamFolderOrBuilder> + internalGetTeamFolderFieldBuilder() { + if (teamFolderBuilder_ == null) { + teamFolderBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.TeamFolder, + com.google.cloud.dataform.v1beta1.TeamFolder.Builder, + com.google.cloud.dataform.v1beta1.TeamFolderOrBuilder>( + getTeamFolder(), getParentForChildren(), isClean()); + teamFolder_ = null; + } + return teamFolderBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.UpdateTeamFolderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.UpdateTeamFolderRequest) + private static final com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest(); + } + + public static com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateTeamFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateTeamFolderRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateTeamFolderRequestOrBuilder.java new file mode 100644 index 000000000000..bff1254a9e7c --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/UpdateTeamFolderRequestOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +@com.google.protobuf.Generated +public interface UpdateTeamFolderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.UpdateTeamFolderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
          +   * all fields will be updated.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
          +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
          +   * all fields will be updated.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
          +   * Optional. Specifies the fields to be updated in the Folder. If left unset,
          +   * all fields will be updated.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
          +   * Required. The updated TeamFolder.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the teamFolder field is set. + */ + boolean hasTeamFolder(); + + /** + * + * + *
          +   * Required. The updated TeamFolder.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The teamFolder. + */ + com.google.cloud.dataform.v1beta1.TeamFolder getTeamFolder(); + + /** + * + * + *
          +   * Required. The updated TeamFolder.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataform.v1beta1.TeamFolderOrBuilder getTeamFolderOrBuilder(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocation.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocation.java index 881f908e36c3..5db7d222d075 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocation.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocation.java @@ -944,6 +944,72 @@ public com.google.protobuf.ByteString getInternalMetadataBytes() { } } + public static final int PRIVATE_RESOURCE_METADATA_FIELD_NUMBER = 10; + private com.google.cloud.dataform.v1beta1.PrivateResourceMetadata privateResourceMetadata_; + + /** + * + * + *
          +   * Output only. Metadata indicating whether this resource is user-scoped.
          +   * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
          +   * from a compilation result and the compilation result is user-scoped.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateResourceMetadata field is set. + */ + @java.lang.Override + public boolean hasPrivateResourceMetadata() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
          +   * Output only. Metadata indicating whether this resource is user-scoped.
          +   * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
          +   * from a compilation result and the compilation result is user-scoped.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateResourceMetadata. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.PrivateResourceMetadata getPrivateResourceMetadata() { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } + + /** + * + * + *
          +   * Output only. Metadata indicating whether this resource is user-scoped.
          +   * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
          +   * from a compilation result and the compilation result is user-scoped.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.PrivateResourceMetadataOrBuilder + getPrivateResourceMetadataOrBuilder() { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -987,6 +1053,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 9, internalMetadata_); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(10, getPrivateResourceMetadata()); + } getUnknownFields().writeTo(output); } @@ -1025,6 +1094,11 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(9, internalMetadata_); } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, getPrivateResourceMetadata()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1060,6 +1134,10 @@ public boolean equals(final java.lang.Object obj) { if (hasInternalMetadata()) { if (!getInternalMetadata().equals(other.getInternalMetadata())) return false; } + if (hasPrivateResourceMetadata() != other.hasPrivateResourceMetadata()) return false; + if (hasPrivateResourceMetadata()) { + if (!getPrivateResourceMetadata().equals(other.getPrivateResourceMetadata())) return false; + } if (!getCompilationSourceCase().equals(other.getCompilationSourceCase())) return false; switch (compilationSourceCase_) { case 2: @@ -1104,6 +1182,10 @@ public int hashCode() { hash = (37 * hash) + INTERNAL_METADATA_FIELD_NUMBER; hash = (53 * hash) + getInternalMetadata().hashCode(); } + if (hasPrivateResourceMetadata()) { + hash = (37 * hash) + PRIVATE_RESOURCE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getPrivateResourceMetadata().hashCode(); + } switch (compilationSourceCase_) { case 2: hash = (37 * hash) + COMPILATION_RESULT_FIELD_NUMBER; @@ -1260,6 +1342,7 @@ private void maybeForceBuilderInitialization() { internalGetInvocationConfigFieldBuilder(); internalGetInvocationTimingFieldBuilder(); internalGetDataEncryptionStateFieldBuilder(); + internalGetPrivateResourceMetadataFieldBuilder(); } } @@ -1286,6 +1369,11 @@ public Builder clear() { dataEncryptionStateBuilder_ = null; } internalMetadata_ = ""; + privateResourceMetadata_ = null; + if (privateResourceMetadataBuilder_ != null) { + privateResourceMetadataBuilder_.dispose(); + privateResourceMetadataBuilder_ = null; + } compilationSourceCase_ = 0; compilationSource_ = null; return this; @@ -1356,6 +1444,13 @@ private void buildPartial0(com.google.cloud.dataform.v1beta1.WorkflowInvocation result.internalMetadata_ = internalMetadata_; to_bitField0_ |= 0x00000008; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.privateResourceMetadata_ = + privateResourceMetadataBuilder_ == null + ? privateResourceMetadata_ + : privateResourceMetadataBuilder_.build(); + to_bitField0_ |= 0x00000010; + } result.bitField0_ |= to_bitField0_; } @@ -1404,6 +1499,9 @@ public Builder mergeFrom(com.google.cloud.dataform.v1beta1.WorkflowInvocation ot bitField0_ |= 0x00000100; onChanged(); } + if (other.hasPrivateResourceMetadata()) { + mergePrivateResourceMetadata(other.getPrivateResourceMetadata()); + } switch (other.getCompilationSourceCase()) { case COMPILATION_RESULT: { @@ -1509,6 +1607,14 @@ public Builder mergeFrom( bitField0_ |= 0x00000100; break; } // case 74 + case 82: + { + input.readMessage( + internalGetPrivateResourceMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3000,6 +3106,242 @@ public Builder setInternalMetadataBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.dataform.v1beta1.PrivateResourceMetadata privateResourceMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata, + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.Builder, + com.google.cloud.dataform.v1beta1.PrivateResourceMetadataOrBuilder> + privateResourceMetadataBuilder_; + + /** + * + * + *
          +     * Output only. Metadata indicating whether this resource is user-scoped.
          +     * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
          +     * from a compilation result and the compilation result is user-scoped.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateResourceMetadata field is set. + */ + public boolean hasPrivateResourceMetadata() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
          +     * Output only. Metadata indicating whether this resource is user-scoped.
          +     * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
          +     * from a compilation result and the compilation result is user-scoped.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateResourceMetadata. + */ + public com.google.cloud.dataform.v1beta1.PrivateResourceMetadata getPrivateResourceMetadata() { + if (privateResourceMetadataBuilder_ == null) { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } else { + return privateResourceMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Output only. Metadata indicating whether this resource is user-scoped.
          +     * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
          +     * from a compilation result and the compilation result is user-scoped.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPrivateResourceMetadata( + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata value) { + if (privateResourceMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privateResourceMetadata_ = value; + } else { + privateResourceMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Metadata indicating whether this resource is user-scoped.
          +     * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
          +     * from a compilation result and the compilation result is user-scoped.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPrivateResourceMetadata( + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.Builder builderForValue) { + if (privateResourceMetadataBuilder_ == null) { + privateResourceMetadata_ = builderForValue.build(); + } else { + privateResourceMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Metadata indicating whether this resource is user-scoped.
          +     * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
          +     * from a compilation result and the compilation result is user-scoped.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergePrivateResourceMetadata( + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata value) { + if (privateResourceMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && privateResourceMetadata_ != null + && privateResourceMetadata_ + != com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.getDefaultInstance()) { + getPrivateResourceMetadataBuilder().mergeFrom(value); + } else { + privateResourceMetadata_ = value; + } + } else { + privateResourceMetadataBuilder_.mergeFrom(value); + } + if (privateResourceMetadata_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Output only. Metadata indicating whether this resource is user-scoped.
          +     * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
          +     * from a compilation result and the compilation result is user-scoped.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPrivateResourceMetadata() { + bitField0_ = (bitField0_ & ~0x00000200); + privateResourceMetadata_ = null; + if (privateResourceMetadataBuilder_ != null) { + privateResourceMetadataBuilder_.dispose(); + privateResourceMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Metadata indicating whether this resource is user-scoped.
          +     * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
          +     * from a compilation result and the compilation result is user-scoped.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.Builder + getPrivateResourceMetadataBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetPrivateResourceMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Output only. Metadata indicating whether this resource is user-scoped.
          +     * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
          +     * from a compilation result and the compilation result is user-scoped.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1beta1.PrivateResourceMetadataOrBuilder + getPrivateResourceMetadataOrBuilder() { + if (privateResourceMetadataBuilder_ != null) { + return privateResourceMetadataBuilder_.getMessageOrBuilder(); + } else { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } + } + + /** + * + * + *
          +     * Output only. Metadata indicating whether this resource is user-scoped.
          +     * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
          +     * from a compilation result and the compilation result is user-scoped.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata, + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.Builder, + com.google.cloud.dataform.v1beta1.PrivateResourceMetadataOrBuilder> + internalGetPrivateResourceMetadataFieldBuilder() { + if (privateResourceMetadataBuilder_ == null) { + privateResourceMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata, + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.Builder, + com.google.cloud.dataform.v1beta1.PrivateResourceMetadataOrBuilder>( + getPrivateResourceMetadata(), getParentForChildren(), isClean()); + privateResourceMetadata_ = null; + } + return privateResourceMetadataBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.WorkflowInvocation) } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationOrBuilder.java index 187d3302d61d..99dc4e552f5c 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationOrBuilder.java @@ -389,6 +389,56 @@ public interface WorkflowInvocationOrBuilder */ com.google.protobuf.ByteString getInternalMetadataBytes(); + /** + * + * + *
          +   * Output only. Metadata indicating whether this resource is user-scoped.
          +   * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
          +   * from a compilation result and the compilation result is user-scoped.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateResourceMetadata field is set. + */ + boolean hasPrivateResourceMetadata(); + + /** + * + * + *
          +   * Output only. Metadata indicating whether this resource is user-scoped.
          +   * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
          +   * from a compilation result and the compilation result is user-scoped.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateResourceMetadata. + */ + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata getPrivateResourceMetadata(); + + /** + * + * + *
          +   * Output only. Metadata indicating whether this resource is user-scoped.
          +   * `WorkflowInvocation` resource is `user_scoped` only if it is sourced
          +   * from a compilation result and the compilation result is user-scoped.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataform.v1beta1.PrivateResourceMetadataOrBuilder + getPrivateResourceMetadataOrBuilder(); + com.google.cloud.dataform.v1beta1.WorkflowInvocation.CompilationSourceCase getCompilationSourceCase(); } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Workspace.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Workspace.java index cc5420ce3d30..36b8d52c0266 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Workspace.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Workspace.java @@ -318,6 +318,106 @@ public com.google.protobuf.ByteString getInternalMetadataBytes() { } } + public static final int DISABLE_MOVES_FIELD_NUMBER = 6; + private boolean disableMoves_ = false; + + /** + * + * + *
          +   * Optional. If set to true, workspaces will not be moved if its linked
          +   * Repository is moved. Instead, it will be deleted.
          +   * 
          + * + * optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the disableMoves field is set. + */ + @java.lang.Override + public boolean hasDisableMoves() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
          +   * Optional. If set to true, workspaces will not be moved if its linked
          +   * Repository is moved. Instead, it will be deleted.
          +   * 
          + * + * optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableMoves. + */ + @java.lang.Override + public boolean getDisableMoves() { + return disableMoves_; + } + + public static final int PRIVATE_RESOURCE_METADATA_FIELD_NUMBER = 8; + private com.google.cloud.dataform.v1beta1.PrivateResourceMetadata privateResourceMetadata_; + + /** + * + * + *
          +   * Output only. Metadata indicating whether this resource is user-scoped. For
          +   * `Workspace` resources, the `user_scoped` field is always `true`.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateResourceMetadata field is set. + */ + @java.lang.Override + public boolean hasPrivateResourceMetadata() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
          +   * Output only. Metadata indicating whether this resource is user-scoped. For
          +   * `Workspace` resources, the `user_scoped` field is always `true`.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateResourceMetadata. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.PrivateResourceMetadata getPrivateResourceMetadata() { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } + + /** + * + * + *
          +   * Output only. Metadata indicating whether this resource is user-scoped. For
          +   * `Workspace` resources, the `user_scoped` field is always `true`.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.PrivateResourceMetadataOrBuilder + getPrivateResourceMetadataOrBuilder() { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -344,6 +444,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 5, internalMetadata_); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeBool(6, disableMoves_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(8, getPrivateResourceMetadata()); + } getUnknownFields().writeTo(output); } @@ -365,6 +471,13 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(5, internalMetadata_); } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, disableMoves_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, getPrivateResourceMetadata()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -394,6 +507,14 @@ public boolean equals(final java.lang.Object obj) { if (hasInternalMetadata()) { if (!getInternalMetadata().equals(other.getInternalMetadata())) return false; } + if (hasDisableMoves() != other.hasDisableMoves()) return false; + if (hasDisableMoves()) { + if (getDisableMoves() != other.getDisableMoves()) return false; + } + if (hasPrivateResourceMetadata() != other.hasPrivateResourceMetadata()) return false; + if (hasPrivateResourceMetadata()) { + if (!getPrivateResourceMetadata().equals(other.getPrivateResourceMetadata())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -419,6 +540,14 @@ public int hashCode() { hash = (37 * hash) + INTERNAL_METADATA_FIELD_NUMBER; hash = (53 * hash) + getInternalMetadata().hashCode(); } + if (hasDisableMoves()) { + hash = (37 * hash) + DISABLE_MOVES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableMoves()); + } + if (hasPrivateResourceMetadata()) { + hash = (37 * hash) + PRIVATE_RESOURCE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getPrivateResourceMetadata().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -562,6 +691,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetCreateTimeFieldBuilder(); internalGetDataEncryptionStateFieldBuilder(); + internalGetPrivateResourceMetadataFieldBuilder(); } } @@ -581,6 +711,12 @@ public Builder clear() { dataEncryptionStateBuilder_ = null; } internalMetadata_ = ""; + disableMoves_ = false; + privateResourceMetadata_ = null; + if (privateResourceMetadataBuilder_ != null) { + privateResourceMetadataBuilder_.dispose(); + privateResourceMetadataBuilder_ = null; + } return this; } @@ -636,6 +772,17 @@ private void buildPartial0(com.google.cloud.dataform.v1beta1.Workspace result) { result.internalMetadata_ = internalMetadata_; to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.disableMoves_ = disableMoves_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.privateResourceMetadata_ = + privateResourceMetadataBuilder_ == null + ? privateResourceMetadata_ + : privateResourceMetadataBuilder_.build(); + to_bitField0_ |= 0x00000010; + } result.bitField0_ |= to_bitField0_; } @@ -667,6 +814,12 @@ public Builder mergeFrom(com.google.cloud.dataform.v1beta1.Workspace other) { bitField0_ |= 0x00000008; onChanged(); } + if (other.hasDisableMoves()) { + setDisableMoves(other.getDisableMoves()); + } + if (other.hasPrivateResourceMetadata()) { + mergePrivateResourceMetadata(other.getPrivateResourceMetadata()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -719,6 +872,20 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 42 + case 48: + { + disableMoves_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 66: + { + input.readMessage( + internalGetPrivateResourceMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1432,6 +1599,309 @@ public Builder setInternalMetadataBytes(com.google.protobuf.ByteString value) { return this; } + private boolean disableMoves_; + + /** + * + * + *
          +     * Optional. If set to true, workspaces will not be moved if its linked
          +     * Repository is moved. Instead, it will be deleted.
          +     * 
          + * + * optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the disableMoves field is set. + */ + @java.lang.Override + public boolean hasDisableMoves() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
          +     * Optional. If set to true, workspaces will not be moved if its linked
          +     * Repository is moved. Instead, it will be deleted.
          +     * 
          + * + * optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableMoves. + */ + @java.lang.Override + public boolean getDisableMoves() { + return disableMoves_; + } + + /** + * + * + *
          +     * Optional. If set to true, workspaces will not be moved if its linked
          +     * Repository is moved. Instead, it will be deleted.
          +     * 
          + * + * optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The disableMoves to set. + * @return This builder for chaining. + */ + public Builder setDisableMoves(boolean value) { + + disableMoves_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. If set to true, workspaces will not be moved if its linked
          +     * Repository is moved. Instead, it will be deleted.
          +     * 
          + * + * optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisableMoves() { + bitField0_ = (bitField0_ & ~0x00000010); + disableMoves_ = false; + onChanged(); + return this; + } + + private com.google.cloud.dataform.v1beta1.PrivateResourceMetadata privateResourceMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata, + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.Builder, + com.google.cloud.dataform.v1beta1.PrivateResourceMetadataOrBuilder> + privateResourceMetadataBuilder_; + + /** + * + * + *
          +     * Output only. Metadata indicating whether this resource is user-scoped. For
          +     * `Workspace` resources, the `user_scoped` field is always `true`.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateResourceMetadata field is set. + */ + public boolean hasPrivateResourceMetadata() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
          +     * Output only. Metadata indicating whether this resource is user-scoped. For
          +     * `Workspace` resources, the `user_scoped` field is always `true`.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateResourceMetadata. + */ + public com.google.cloud.dataform.v1beta1.PrivateResourceMetadata getPrivateResourceMetadata() { + if (privateResourceMetadataBuilder_ == null) { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } else { + return privateResourceMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Output only. Metadata indicating whether this resource is user-scoped. For
          +     * `Workspace` resources, the `user_scoped` field is always `true`.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPrivateResourceMetadata( + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata value) { + if (privateResourceMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privateResourceMetadata_ = value; + } else { + privateResourceMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Metadata indicating whether this resource is user-scoped. For
          +     * `Workspace` resources, the `user_scoped` field is always `true`.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPrivateResourceMetadata( + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.Builder builderForValue) { + if (privateResourceMetadataBuilder_ == null) { + privateResourceMetadata_ = builderForValue.build(); + } else { + privateResourceMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Metadata indicating whether this resource is user-scoped. For
          +     * `Workspace` resources, the `user_scoped` field is always `true`.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergePrivateResourceMetadata( + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata value) { + if (privateResourceMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && privateResourceMetadata_ != null + && privateResourceMetadata_ + != com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.getDefaultInstance()) { + getPrivateResourceMetadataBuilder().mergeFrom(value); + } else { + privateResourceMetadata_ = value; + } + } else { + privateResourceMetadataBuilder_.mergeFrom(value); + } + if (privateResourceMetadata_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Output only. Metadata indicating whether this resource is user-scoped. For
          +     * `Workspace` resources, the `user_scoped` field is always `true`.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPrivateResourceMetadata() { + bitField0_ = (bitField0_ & ~0x00000020); + privateResourceMetadata_ = null; + if (privateResourceMetadataBuilder_ != null) { + privateResourceMetadataBuilder_.dispose(); + privateResourceMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Metadata indicating whether this resource is user-scoped. For
          +     * `Workspace` resources, the `user_scoped` field is always `true`.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.Builder + getPrivateResourceMetadataBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetPrivateResourceMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Output only. Metadata indicating whether this resource is user-scoped. For
          +     * `Workspace` resources, the `user_scoped` field is always `true`.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1beta1.PrivateResourceMetadataOrBuilder + getPrivateResourceMetadataOrBuilder() { + if (privateResourceMetadataBuilder_ != null) { + return privateResourceMetadataBuilder_.getMessageOrBuilder(); + } else { + return privateResourceMetadata_ == null + ? com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.getDefaultInstance() + : privateResourceMetadata_; + } + } + + /** + * + * + *
          +     * Output only. Metadata indicating whether this resource is user-scoped. For
          +     * `Workspace` resources, the `user_scoped` field is always `true`.
          +     * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata, + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.Builder, + com.google.cloud.dataform.v1beta1.PrivateResourceMetadataOrBuilder> + internalGetPrivateResourceMetadataFieldBuilder() { + if (privateResourceMetadataBuilder_ == null) { + privateResourceMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata, + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata.Builder, + com.google.cloud.dataform.v1beta1.PrivateResourceMetadataOrBuilder>( + getPrivateResourceMetadata(), getParentForChildren(), isClean()); + privateResourceMetadata_ = null; + } + return privateResourceMetadataBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.Workspace) } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkspaceOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkspaceOrBuilder.java index 820aa3efb2f9..12a293edd2cf 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkspaceOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkspaceOrBuilder.java @@ -185,4 +185,79 @@ public interface WorkspaceOrBuilder * @return The bytes for internalMetadata. */ com.google.protobuf.ByteString getInternalMetadataBytes(); + + /** + * + * + *
          +   * Optional. If set to true, workspaces will not be moved if its linked
          +   * Repository is moved. Instead, it will be deleted.
          +   * 
          + * + * optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the disableMoves field is set. + */ + boolean hasDisableMoves(); + + /** + * + * + *
          +   * Optional. If set to true, workspaces will not be moved if its linked
          +   * Repository is moved. Instead, it will be deleted.
          +   * 
          + * + * optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableMoves. + */ + boolean getDisableMoves(); + + /** + * + * + *
          +   * Output only. Metadata indicating whether this resource is user-scoped. For
          +   * `Workspace` resources, the `user_scoped` field is always `true`.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateResourceMetadata field is set. + */ + boolean hasPrivateResourceMetadata(); + + /** + * + * + *
          +   * Output only. Metadata indicating whether this resource is user-scoped. For
          +   * `Workspace` resources, the `user_scoped` field is always `true`.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateResourceMetadata. + */ + com.google.cloud.dataform.v1beta1.PrivateResourceMetadata getPrivateResourceMetadata(); + + /** + * + * + *
          +   * Output only. Metadata indicating whether this resource is user-scoped. For
          +   * `Workspace` resources, the `user_scoped` field is always `true`.
          +   * 
          + * + * + * .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataform.v1beta1.PrivateResourceMetadataOrBuilder + getPrivateResourceMetadataOrBuilder(); } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/proto/google/cloud/dataform/v1beta1/dataform.proto b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/proto/google/cloud/dataform/v1beta1/dataform.proto index 22f7787cafdb..7a0944a2dfc7 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/proto/google/cloud/dataform/v1beta1/dataform.proto +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/proto/google/cloud/dataform/v1beta1/dataform.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,9 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/iam/v1/iam_policy.proto"; +import "google/iam/v1/policy.proto"; +import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; @@ -58,6 +61,126 @@ service Dataform { "https://www.googleapis.com/auth/bigquery," "https://www.googleapis.com/auth/cloud-platform"; + // Fetches a single TeamFolder. + rpc GetTeamFolder(GetTeamFolderRequest) returns (TeamFolder) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/teamFolders/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new TeamFolder in a given project and location. + rpc CreateTeamFolder(CreateTeamFolderRequest) returns (TeamFolder) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*}/teamFolders" + body: "team_folder" + }; + option (google.api.method_signature) = "parent,team_folder"; + } + + // Updates a single TeamFolder. + rpc UpdateTeamFolder(UpdateTeamFolderRequest) returns (TeamFolder) { + option (google.api.http) = { + patch: "/v1beta1/{team_folder.name=projects/*/locations/*/teamFolders/*}" + body: "team_folder" + }; + option (google.api.method_signature) = "team_folder,update_mask"; + } + + // Deletes a single TeamFolder. + rpc DeleteTeamFolder(DeleteTeamFolderRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/teamFolders/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Returns the contents of a given TeamFolder. + rpc QueryTeamFolderContents(QueryTeamFolderContentsRequest) + returns (QueryTeamFolderContentsResponse) { + option (google.api.http) = { + get: "/v1beta1/{team_folder=projects/*/locations/*/teamFolders/*}:queryContents" + }; + option (google.api.method_signature) = "team_folder"; + } + + // Returns all TeamFolders in a given location that the caller has access to + // and match the provided filter. + rpc SearchTeamFolders(SearchTeamFoldersRequest) + returns (SearchTeamFoldersResponse) { + option (google.api.http) = { + get: "/v1beta1/{location=projects/*/locations/*}/teamFolders:search" + }; + } + + // Fetches a single Folder. + rpc GetFolder(GetFolderRequest) returns (Folder) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/folders/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new Folder in a given project and location. + rpc CreateFolder(CreateFolderRequest) returns (Folder) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*}/folders" + body: "folder" + }; + option (google.api.method_signature) = "parent,folder"; + } + + // Updates a single Folder. + rpc UpdateFolder(UpdateFolderRequest) returns (Folder) { + option (google.api.http) = { + patch: "/v1beta1/{folder.name=projects/*/locations/*/folders/*}" + body: "folder" + }; + option (google.api.method_signature) = "folder,update_mask"; + } + + // Deletes a single Folder. + rpc DeleteFolder(DeleteFolderRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/folders/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Returns the contents of a given Folder. + rpc QueryFolderContents(QueryFolderContentsRequest) + returns (QueryFolderContentsResponse) { + option (google.api.http) = { + get: "/v1beta1/{folder=projects/*/locations/*/folders/*}:queryFolderContents" + }; + option (google.api.method_signature) = "folder"; + } + + // Returns the contents of a caller's root folder in a given location. + // The root folder contains all resources that are created by the user and not + // contained in any other folder. + rpc QueryUserRootContents(QueryUserRootContentsRequest) + returns (QueryUserRootContentsResponse) { + option (google.api.http) = { + get: "/v1beta1/{location=projects/*/locations/*}:queryUserRootContents" + }; + option (google.api.method_signature) = "location"; + } + + // Moves a Folder to a new Folder, TeamFolder, or the root location. + rpc MoveFolder(MoveFolderRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/folders/*}:move" + body: "*" + }; + option (google.api.method_signature) = "name,destination_containing_folder"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "MoveFolderMetadata" + }; + } + // Lists Repositories in a given project and location. // // **Note:** *This method can return repositories not shown in the [Dataform @@ -110,6 +233,20 @@ service Dataform { option (google.api.method_signature) = "name"; } + // Moves a Repository to a new location. + rpc MoveRepository(MoveRepositoryRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/repositories/*}:move" + body: "*" + }; + option (google.api.method_signature) = "name,destination_containing_folder"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "MoveRepositoryMetadata" + }; + } + // Applies a Git commit to a Repository. The Repository must not have a value // for `git_remote_settings.url`. rpc CommitRepositoryChanges(CommitRepositoryChangesRequest) @@ -548,6 +685,77 @@ service Dataform { }; option (google.api.method_signature) = "config,update_mask"; } + + // Gets the access control policy for a resource. + // Returns an empty policy if the resource exists and does not have a policy + // set. + rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) + returns (google.iam.v1.Policy) { + option (google.api.http) = { + get: "/v1beta1/{resource=projects/*/locations/*/repositories/*}:getIamPolicy" + additional_bindings { + get: "/v1beta1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:getIamPolicy" + } + additional_bindings { + get: "/v1beta1/{resource=projects/*/locations/*/folders/*}:getIamPolicy" + } + additional_bindings { + get: "/v1beta1/{resource=projects/*/locations/*/teamFolders/*}:getIamPolicy" + } + }; + option (google.api.method_signature) = "resource"; + } + + // Sets the access control policy on the specified resource. Replaces any + // existing policy. + // + // Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) + returns (google.iam.v1.Policy) { + option (google.api.http) = { + post: "/v1beta1/{resource=projects/*/locations/*/repositories/*}:setIamPolicy" + body: "*" + additional_bindings { + post: "/v1beta1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:setIamPolicy" + body: "*" + } + additional_bindings { + post: "/v1beta1/{resource=projects/*/locations/*/folders/*}:setIamPolicy" + body: "*" + } + additional_bindings { + post: "/v1beta1/{resource=projects/*/locations/*/teamFolders/*}:setIamPolicy" + body: "*" + } + }; + } + + // Returns permissions that a caller has on the specified resource. + // If the resource does not exist, this will return an empty set of + // permissions, not a `NOT_FOUND` error. + // + // Note: This operation is designed to be used for building permission-aware + // UIs and command-line tools, not for authorization checking. This operation + // may "fail open" without warning. + rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) + returns (google.iam.v1.TestIamPermissionsResponse) { + option (google.api.http) = { + post: "/v1beta1/{resource=projects/*/locations/*/repositories/*}:testIamPermissions" + body: "*" + additional_bindings { + post: "/v1beta1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:testIamPermissions" + body: "*" + } + additional_bindings { + post: "/v1beta1/{resource=projects/*/locations/*/folders/*}:testIamPermissions" + body: "*" + } + additional_bindings { + post: "/v1beta1/{resource=projects/*/locations/*/teamFolders/*}:testIamPermissions" + body: "*" + } + }; + } } // Describes encryption state of a resource. @@ -656,6 +864,21 @@ message Repository { // Identifier. The repository's name. string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + // Optional. The name of the containing folder of the repository. + // The field is immutable and it can be modified via a MoveRepository + // operation. + // Format: `projects/*/locations/*/folders/*`. or + // `projects/*/locations/*/teamFolders/*`. + optional string containing_folder = 16 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The resource name of the TeamFolder that this Repository is + // associated with. This should take the format: + // projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this + // is not set, the Repository is not associated with a TeamFolder. + optional string team_folder_name = 18 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The timestamp of when the repository was created. google.protobuf.Timestamp create_time = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -724,6 +947,13 @@ message Repository { [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Metadata used to identify if a resource is user scoped. +message PrivateResourceMetadata { + // Output only. If true, this resource is user-scoped, meaning it is either a + // workspace or sourced from a workspace. + bool user_scoped = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // `ListRepositories` request message. message ListRepositoriesRequest { // Required. The location in which to list repositories. Must be in the format @@ -770,6 +1000,24 @@ message ListRepositoriesResponse { repeated string unreachable = 3; } +// `MoveRepository` request message. +message MoveRepositoryRequest { + // Required. The full resource name of the repository to move. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/Repository" + } + ]; + + // Optional. The name of the Folder, TeamFolder, or root location to move the + // repository to. Can be in the format of: "" to move into the root User + // folder, `projects/*/locations/*/folders/*`, + // `projects/*/locations/*/teamFolders/*` + optional string destination_containing_folder = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + // `GetRepository` request message. message GetRepositoryRequest { // Required. The repository's name. @@ -821,9 +1069,13 @@ message DeleteRepositoryRequest { } ]; - // Optional. If set to true, any child resources of this repository will also - // be deleted. (Otherwise, the request will only succeed if the repository has - // no child resources.) + // Optional. If set to true, child resources of this repository (compilation + // results and workflow invocations) will also be deleted. Otherwise, the + // request will only succeed if the repository has no child resources. + // + // **Note:** *This flag doesn't support deletion of workspaces, release + // configs or workflow configs. If any of such resources exists in the + // repository, the request will fail.*. bool force = 2 [(google.api.field_behavior) = OPTIONAL]; } @@ -1079,6 +1331,15 @@ message Workspace { // format of this field is a JSON string. optional string internal_metadata = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. If set to true, workspaces will not be moved if its linked + // Repository is moved. Instead, it will be deleted. + optional bool disable_moves = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Metadata indicating whether this resource is user-scoped. For + // `Workspace` resources, the `user_scoped` field is always `true`. + PrivateResourceMetadata private_resource_metadata = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // `ListWorkspaces` request message. @@ -1887,6 +2148,12 @@ message CompilationResult { // format of this field is a JSON string. optional string internal_metadata = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Metadata indicating whether this resource is user-scoped. + // `CompilationResult` resource is `user_scoped` only if it is sourced + // from a workspace. + PrivateResourceMetadata private_resource_metadata = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Configures various aspects of Dataform code compilation. @@ -2112,6 +2379,24 @@ message CompilationResultAction { MATERIALIZED_VIEW = 4; } + // Supported table formats for BigQuery tables. + enum TableFormat { + // Default value. + TABLE_FORMAT_UNSPECIFIED = 0; + + // Apache Iceberg format. + ICEBERG = 1; + } + + // Supported file formats for BigQuery tables. + enum FileFormat { + // Default value. + FILE_FORMAT_UNSPECIFIED = 0; + + // Apache Parquet format. + PARQUET = 1; + } + // A list of actions that this action depends on. repeated Target dependency_targets = 1; @@ -2158,6 +2443,24 @@ message CompilationResultAction { // https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language // for more information on which options are supported. map additional_options = 14; + + // Optional. The connection specifying the credentials to be used to read + // and write to external storage, such as Cloud Storage. The connection can + // have the form `{project}.{location}.{connection_id}` or + // `projects/{project}/locations/{location}/connections/{connection_id}`, + // or be set to DEFAULT. + string connection = 15 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The table format for the BigQuery table. + TableFormat table_format = 16 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The file format for the BigQuery table. + FileFormat file_format = 17 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The fully qualified location prefix of the external folder + // where table data is stored. The URI should be in the format + // `gs://bucket/path_to_table/`. + string storage_uri = 18 [(google.api.field_behavior) = OPTIONAL]; } // Represents a list of arbitrary database operations. @@ -2470,6 +2773,22 @@ message WorkflowConfig { // If both `included_targets` and `included_tags` are unset, all actions // will be included. message InvocationConfig { + // Types of priority for query execution in BigQuery. + enum QueryPriority { + // Default value. This value is unused. + QUERY_PRIORITY_UNSPECIFIED = 0; + + // Query will be executed in BigQuery with interactive priority. + // More information can be found at + // https://cloud.google.com/bigquery/docs/running-queries#queries. + INTERACTIVE = 1; + + // Query will be executed in BigQuery with batch priority. + // More information can be found at + // https://cloud.google.com/bigquery/docs/running-queries#batchqueries. + BATCH = 2; + } + // Optional. The set of action identifiers to include. repeated Target included_targets = 1 [(google.api.field_behavior) = OPTIONAL]; @@ -2492,6 +2811,12 @@ message InvocationConfig { // Optional. The service account to run workflow invocations under. string service_account = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the priority for query execution in BigQuery. + // More information can be found at + // https://cloud.google.com/bigquery/docs/running-queries#queries. + optional QueryPriority query_priority = 9 + [(google.api.field_behavior) = OPTIONAL]; } // `ListWorkflowConfigs` request message. @@ -2670,6 +2995,12 @@ message WorkflowInvocation { // format of this field is a JSON string. optional string internal_metadata = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Metadata indicating whether this resource is user-scoped. + // `WorkflowInvocation` resource is `user_scoped` only if it is sourced + // from a compilation result and the compilation result is user-scoped. + PrivateResourceMetadata private_resource_metadata = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // `ListWorkflowInvocations` request message. @@ -2994,6 +3325,12 @@ message Config { type: "cloudkms.googleapis.com/CryptoKey" } ]; + + // Output only. All the metadata information that is used internally to serve + // the resource. For example: timestamps, flags, status fields, etc. The + // format of this field is a JSON string. + optional string internal_metadata = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // `GetConfig` request message. @@ -3014,3 +3351,527 @@ message UpdateConfigRequest { google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = OPTIONAL]; } + +// Represents a Dataform Folder. This is a resource that is used to organize +// Files and other Folders and provide hierarchical access controls. +message Folder { + option (google.api.resource) = { + type: "dataform.googleapis.com/Folder" + pattern: "projects/{project}/locations/{location}/folders/{folder}" + plural: "folders" + singular: "folder" + }; + + // Identifier. The Folder's name. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. The Folder's user-friendly name. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The containing Folder resource name. This should take + // the format: projects/{project}/locations/{location}/folders/{folder}, + // projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just + // projects/{project}/locations/{location} if this is a root Folder. This + // field can only be updated through MoveFolder. + string containing_folder = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The resource name of the TeamFolder that this Folder is + // associated with. This should take the format: + // projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this + // is not set, the Folder is not associated with a TeamFolder and is a + // UserFolder. + string team_folder_name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp of when the Folder was created. + google.protobuf.Timestamp create_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp of when the Folder was last updated. + google.protobuf.Timestamp update_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. All the metadata information that is used internally to serve + // the resource. For example: timestamps, flags, status fields, etc. The + // format of this field is a JSON string. + optional string internal_metadata = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The IAM principal identifier of the creator of the Folder. + optional string creator_iam_principal = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// `CreateFolder` request message. +message CreateFolderRequest { + // Required. The location in which to create the Folder. Must be in the format + // `projects/*/locations/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The Folder to create. + Folder folder = 2 [(google.api.field_behavior) = REQUIRED]; + + // The ID to use for the Folder, which will become the final component of + // the Folder's resource name. + string folder_id = 3; +} + +// `MoveFolder` request message. +message MoveFolderRequest { + // Required. The full resource name of the Folder to move. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "dataform.googleapis.com/Folder" } + ]; + + // Optional. The name of the Folder, TeamFolder, or root location to move the + // Folder to. Can be in the format of: "" to move into the root User folder, + // `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*` + optional string destination_containing_folder = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// `GetFolder` request message. +message GetFolderRequest { + // Required. The Folder's name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "dataform.googleapis.com/Folder" } + ]; +} + +// `UpdateFolder` request message. +message UpdateFolderRequest { + // Optional. Specifies the fields to be updated in the Folder. If left unset, + // all fields that can be updated, will be updated. A few fields cannot be + // updated and will be ignored if specified in the update_mask (e.g. + // parent_name, team_folder_name). + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The updated Folder. + Folder folder = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// `DeleteFolder` request message. +message DeleteFolderRequest { + // Required. The Folder's name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "dataform.googleapis.com/Folder" } + ]; +} + +// `QueryFolderContents` request message. +message QueryFolderContentsRequest { + // Required. Name of the folder whose contents to list. + // Format: projects/*/locations/*/folders/* + string folder = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "dataform.googleapis.com/Folder" } + ]; + + // Optional. Maximum number of paths to return. The server may return fewer + // items than requested. If unspecified, the server will pick an appropriate + // default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Page token received from a previous `QueryFolderContents` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `QueryFolderContents`, with the exception of `page_size`, must match the + // call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Field to additionally sort results by. + // Will order Folders before Repositories, and then by `order_by` in ascending + // order. Supported keywords: display_name (default), create_time, + // last_modified_time. + // Examples: + // - `orderBy="display_name"` + // - `orderBy="display_name desc"` + string order_by = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional filtering for the returned list. Filtering is currently + // only supported on the `display_name` field. + // + // Example: + // - `filter="display_name="MyFolder""` + string filter = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// `QueryFolderContents` response message. +message QueryFolderContentsResponse { + // Represents a single content entry. + message FolderContentsEntry { + // The content entry. + oneof entry { + // A subfolder. + Folder folder = 1; + + // A repository. + Repository repository = 2; + } + } + + // List of entries in the folder. + repeated FolderContentsEntry entries = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// `QueryUserRootContents` request message. +message QueryUserRootContentsRequest { + // Required. Location of the user root folder whose contents to list. + // Format: projects/*/locations/* + string location = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Optional. Maximum number of paths to return. The server may return fewer + // items than requested. If unspecified, the server will pick an appropriate + // default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Page token received from a previous `QueryUserRootContents` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `QueryUserRootFolderContents`, with the exception of `page_size`, must + // match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Field to additionally sort results by. + // Will order Folders before Repositories, and then by `order_by` in ascending + // order. Supported keywords: display_name (default), created_at, + // last_modified_at. Examples: + // - `orderBy="display_name"` + // - `orderBy="display_name desc"` + string order_by = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional filtering for the returned list. Filtering is currently + // only supported on the `display_name` field. + // + // Example: + // - `filter="display_name="MyFolder""` + string filter = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// `QueryUserRootContents` response message. +message QueryUserRootContentsResponse { + // Represents a single content entry. + message RootContentsEntry { + // The content entry. + oneof entry { + // A subfolder. + Folder folder = 1; + + // A repository. + Repository repository = 2; + } + } + + // List of entries in the folder. + repeated RootContentsEntry entries = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Represents a Dataform TeamFolder. This is a resource that sits at the project +// level and is used to organize Repositories and Folders with hierarchical +// access controls. They provide a team context and stricter access controls. +message TeamFolder { + option (google.api.resource) = { + type: "dataform.googleapis.com/TeamFolder" + pattern: "projects/{project}/locations/{location}/teamFolders/{team_folder}" + plural: "teamFolders" + singular: "teamFolder" + }; + + // Identifier. The TeamFolder's name. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. The TeamFolder's user-friendly name. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The timestamp of when the TeamFolder was created. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp of when the TeamFolder was last updated. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. All the metadata information that is used internally to serve + // the resource. For example: timestamps, flags, status fields, etc. The + // format of this field is a JSON string. + optional string internal_metadata = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The IAM principal identifier of the creator of the TeamFolder. + optional string creator_iam_principal = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// `CreateTeamFolder` request message. +message CreateTeamFolderRequest { + // Required. The location in which to create the TeamFolder. Must be in the + // format `projects/*/locations/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The TeamFolder to create. + TeamFolder team_folder = 2 [(google.api.field_behavior) = REQUIRED]; + + // The ID to use for the TeamFolder, which will become the final component of + // the TeamFolder's resource name. + string team_folder_id = 3; +} + +// `GetTeamFolder` request message. +message GetTeamFolderRequest { + // Required. The TeamFolder's name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/TeamFolder" + } + ]; +} + +// `UpdateTeamFolder` request message. +message UpdateTeamFolderRequest { + // Optional. Specifies the fields to be updated in the Folder. If left unset, + // all fields will be updated. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The updated TeamFolder. + TeamFolder team_folder = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// `DeleteTeamFolder` request message. +message DeleteTeamFolderRequest { + // Required. The TeamFolder's name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/TeamFolder" + } + ]; +} + +// `QueryTeamFolderContents` request message. +message QueryTeamFolderContentsRequest { + // Required. Name of the team_folder whose contents to list. + // Format: `projects/*/locations/*/teamFolders/*`. + string team_folder = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/TeamFolder" + } + ]; + + // Optional. Maximum number of paths to return. The server may return fewer + // items than requested. If unspecified, the server will pick an appropriate + // default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Page token received from a previous `QueryTeamFolderContents` + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `QueryTeamFolderContents`, with the exception of `page_size`, must match + // the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Field to additionally sort results by. + // Will order Folders before Repositories, and then by `order_by` in ascending + // order. Supported keywords: `display_name` (default), `create_time`, + // last_modified_time. + // Examples: + // - `orderBy="display_name"` + // - `orderBy="display_name desc"` + string order_by = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional filtering for the returned list. Filtering is currently + // only supported on the `display_name` field. + // + // Example: + // - `filter="display_name="MyFolder""` + string filter = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// `QueryTeamFolderContents` response message. +message QueryTeamFolderContentsResponse { + // Represents a single content entry. + message TeamFolderContentsEntry { + // The content entry. + oneof entry { + // A subfolder. + Folder folder = 1; + + // A repository. + Repository repository = 2; + } + } + + // List of entries in the TeamFolder. + repeated TeamFolderContentsEntry entries = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// `SearchTeamFolders` request message. +message SearchTeamFoldersRequest { + // Required. Location in which to query TeamFolders. + // Format: `projects/*/locations/*`. + string location = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Optional. Maximum number of TeamFolders to return. The server may return + // fewer items than requested. If unspecified, the server will pick an + // appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Page token received from a previous `SearchTeamFolders` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `SearchTeamFolders`, with the exception of `page_size`, must + // match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Field to additionally sort results by. + // Supported keywords: `display_name` (default), `create_time`, + // `last_modified_time`. Examples: + // - `orderBy="display_name"` + // - `orderBy="display_name desc"` + string order_by = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional filtering for the returned list. Filtering is currently + // only supported on the `display_name` field. + // + // Example: + // - `filter="display_name="MyFolder""` + string filter = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// `SearchTeamFolders` response message. +message SearchTeamFoldersResponse { + // Represents a single content entry. + message TeamFolderSearchResult { + // The content entry. + oneof entry { + // A TeamFolder resource that is in the project / location. + TeamFolder team_folder = 2; + } + } + + // List of TeamFolders that match the search query. + repeated TeamFolderSearchResult results = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Contains metadata about the progress of the MoveFolder Long-running +// operations. +message MoveFolderMetadata { + // Different states of the move. + enum State { + // The state is unspecified. + STATE_UNSPECIFIED = 0; + + // The move was initialized and recorded by the server, but not yet started. + INITIALIZED = 1; + + // The move is in progress. + IN_PROGRESS = 2; + + // The move has completed successfully. + SUCCESS = 3; + + // The move has failed. + FAILED = 4; + } + + // Output only. The time the operation was created. + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the operation finished running. + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server-defined resource path for the target of the operation. + string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The state of the move. + State state = 4; + + // Percent complete of the move [0, 100]. + int32 percent_complete = 5; +} + +// Contains metadata about the progress of the MoveRepository Long-running +// operations. +message MoveRepositoryMetadata { + // Different states of the move. + enum State { + // The state is unspecified. + STATE_UNSPECIFIED = 0; + + // The move was initialized and recorded by the server, but not yet started. + INITIALIZED = 1; + + // The move is in progress. + IN_PROGRESS = 2; + + // The move has completed successfully. + SUCCESS = 3; + + // The move has failed. + FAILED = 4; + } + + // Output only. The time the operation was created. + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the operation finished running. + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server-defined resource path for the target of the operation. + string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The state of the move. + State state = 4; + + // Percent complete of the move [0, 100]. + int32 percent_complete = 5; +} diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createfolder/AsyncCreateFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createfolder/AsyncCreateFolder.java new file mode 100644 index 000000000000..60d89a05ffdf --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createfolder/AsyncCreateFolder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_CreateFolder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.CreateFolderRequest; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.Folder; +import com.google.cloud.dataform.v1beta1.LocationName; + +public class AsyncCreateFolder { + + public static void main(String[] args) throws Exception { + asyncCreateFolder(); + } + + public static void asyncCreateFolder() 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 (DataformClient dataformClient = DataformClient.create()) { + CreateFolderRequest request = + CreateFolderRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFolder(Folder.newBuilder().build()) + .setFolderId("folderId294109737") + .build(); + ApiFuture future = dataformClient.createFolderCallable().futureCall(request); + // Do something. + Folder response = future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_CreateFolder_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createfolder/SyncCreateFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createfolder/SyncCreateFolder.java new file mode 100644 index 000000000000..8c9bbfb0126b --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createfolder/SyncCreateFolder.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_CreateFolder_sync] +import com.google.cloud.dataform.v1beta1.CreateFolderRequest; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.Folder; +import com.google.cloud.dataform.v1beta1.LocationName; + +public class SyncCreateFolder { + + public static void main(String[] args) throws Exception { + syncCreateFolder(); + } + + public static void syncCreateFolder() 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 (DataformClient dataformClient = DataformClient.create()) { + CreateFolderRequest request = + CreateFolderRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFolder(Folder.newBuilder().build()) + .setFolderId("folderId294109737") + .build(); + Folder response = dataformClient.createFolder(request); + } + } +} +// [END dataform_v1beta1_generated_Dataform_CreateFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createfolder/SyncCreateFolderLocationnameFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createfolder/SyncCreateFolderLocationnameFolder.java new file mode 100644 index 000000000000..9733673c520d --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createfolder/SyncCreateFolderLocationnameFolder.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_CreateFolder_LocationnameFolder_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.Folder; +import com.google.cloud.dataform.v1beta1.LocationName; + +public class SyncCreateFolderLocationnameFolder { + + public static void main(String[] args) throws Exception { + syncCreateFolderLocationnameFolder(); + } + + public static void syncCreateFolderLocationnameFolder() 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 (DataformClient dataformClient = DataformClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Folder folder = Folder.newBuilder().build(); + Folder response = dataformClient.createFolder(parent, folder); + } + } +} +// [END dataform_v1beta1_generated_Dataform_CreateFolder_LocationnameFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createfolder/SyncCreateFolderStringFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createfolder/SyncCreateFolderStringFolder.java new file mode 100644 index 000000000000..8d877e068c8a --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createfolder/SyncCreateFolderStringFolder.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_CreateFolder_StringFolder_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.Folder; +import com.google.cloud.dataform.v1beta1.LocationName; + +public class SyncCreateFolderStringFolder { + + public static void main(String[] args) throws Exception { + syncCreateFolderStringFolder(); + } + + public static void syncCreateFolderStringFolder() 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 (DataformClient dataformClient = DataformClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Folder folder = Folder.newBuilder().build(); + Folder response = dataformClient.createFolder(parent, folder); + } + } +} +// [END dataform_v1beta1_generated_Dataform_CreateFolder_StringFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createteamfolder/AsyncCreateTeamFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createteamfolder/AsyncCreateTeamFolder.java new file mode 100644 index 000000000000..2f9b10533384 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createteamfolder/AsyncCreateTeamFolder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_CreateTeamFolder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.LocationName; +import com.google.cloud.dataform.v1beta1.TeamFolder; + +public class AsyncCreateTeamFolder { + + public static void main(String[] args) throws Exception { + asyncCreateTeamFolder(); + } + + public static void asyncCreateTeamFolder() 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 (DataformClient dataformClient = DataformClient.create()) { + CreateTeamFolderRequest request = + CreateTeamFolderRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setTeamFolder(TeamFolder.newBuilder().build()) + .setTeamFolderId("teamFolderId18004902") + .build(); + ApiFuture future = dataformClient.createTeamFolderCallable().futureCall(request); + // Do something. + TeamFolder response = future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_CreateTeamFolder_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createteamfolder/SyncCreateTeamFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createteamfolder/SyncCreateTeamFolder.java new file mode 100644 index 000000000000..9952bbac81c2 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createteamfolder/SyncCreateTeamFolder.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_CreateTeamFolder_sync] +import com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.LocationName; +import com.google.cloud.dataform.v1beta1.TeamFolder; + +public class SyncCreateTeamFolder { + + public static void main(String[] args) throws Exception { + syncCreateTeamFolder(); + } + + public static void syncCreateTeamFolder() 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 (DataformClient dataformClient = DataformClient.create()) { + CreateTeamFolderRequest request = + CreateTeamFolderRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setTeamFolder(TeamFolder.newBuilder().build()) + .setTeamFolderId("teamFolderId18004902") + .build(); + TeamFolder response = dataformClient.createTeamFolder(request); + } + } +} +// [END dataform_v1beta1_generated_Dataform_CreateTeamFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createteamfolder/SyncCreateTeamFolderLocationnameTeamfolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createteamfolder/SyncCreateTeamFolderLocationnameTeamfolder.java new file mode 100644 index 000000000000..de1c84824ee5 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createteamfolder/SyncCreateTeamFolderLocationnameTeamfolder.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_CreateTeamFolder_LocationnameTeamfolder_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.LocationName; +import com.google.cloud.dataform.v1beta1.TeamFolder; + +public class SyncCreateTeamFolderLocationnameTeamfolder { + + public static void main(String[] args) throws Exception { + syncCreateTeamFolderLocationnameTeamfolder(); + } + + public static void syncCreateTeamFolderLocationnameTeamfolder() 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 (DataformClient dataformClient = DataformClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + TeamFolder response = dataformClient.createTeamFolder(parent, teamFolder); + } + } +} +// [END dataform_v1beta1_generated_Dataform_CreateTeamFolder_LocationnameTeamfolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createteamfolder/SyncCreateTeamFolderStringTeamfolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createteamfolder/SyncCreateTeamFolderStringTeamfolder.java new file mode 100644 index 000000000000..d4ef1a3d7249 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createteamfolder/SyncCreateTeamFolderStringTeamfolder.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_CreateTeamFolder_StringTeamfolder_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.LocationName; +import com.google.cloud.dataform.v1beta1.TeamFolder; + +public class SyncCreateTeamFolderStringTeamfolder { + + public static void main(String[] args) throws Exception { + syncCreateTeamFolderStringTeamfolder(); + } + + public static void syncCreateTeamFolderStringTeamfolder() 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 (DataformClient dataformClient = DataformClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + TeamFolder response = dataformClient.createTeamFolder(parent, teamFolder); + } + } +} +// [END dataform_v1beta1_generated_Dataform_CreateTeamFolder_StringTeamfolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletefolder/AsyncDeleteFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletefolder/AsyncDeleteFolder.java new file mode 100644 index 000000000000..b863a1b2a492 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletefolder/AsyncDeleteFolder.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_DeleteFolder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.DeleteFolderRequest; +import com.google.cloud.dataform.v1beta1.FolderName; +import com.google.protobuf.Empty; + +public class AsyncDeleteFolder { + + public static void main(String[] args) throws Exception { + asyncDeleteFolder(); + } + + public static void asyncDeleteFolder() 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 (DataformClient dataformClient = DataformClient.create()) { + DeleteFolderRequest request = + DeleteFolderRequest.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .build(); + ApiFuture future = dataformClient.deleteFolderCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_DeleteFolder_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletefolder/SyncDeleteFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletefolder/SyncDeleteFolder.java new file mode 100644 index 000000000000..7743b65fb1ec --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletefolder/SyncDeleteFolder.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_DeleteFolder_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.DeleteFolderRequest; +import com.google.cloud.dataform.v1beta1.FolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteFolder { + + public static void main(String[] args) throws Exception { + syncDeleteFolder(); + } + + public static void syncDeleteFolder() 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 (DataformClient dataformClient = DataformClient.create()) { + DeleteFolderRequest request = + DeleteFolderRequest.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .build(); + dataformClient.deleteFolder(request); + } + } +} +// [END dataform_v1beta1_generated_Dataform_DeleteFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletefolder/SyncDeleteFolderFoldername.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletefolder/SyncDeleteFolderFoldername.java new file mode 100644 index 000000000000..998882fe429f --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletefolder/SyncDeleteFolderFoldername.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_DeleteFolder_Foldername_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.FolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteFolderFoldername { + + public static void main(String[] args) throws Exception { + syncDeleteFolderFoldername(); + } + + public static void syncDeleteFolderFoldername() 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 (DataformClient dataformClient = DataformClient.create()) { + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + dataformClient.deleteFolder(name); + } + } +} +// [END dataform_v1beta1_generated_Dataform_DeleteFolder_Foldername_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletefolder/SyncDeleteFolderString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletefolder/SyncDeleteFolderString.java new file mode 100644 index 000000000000..40a857c7539d --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletefolder/SyncDeleteFolderString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_DeleteFolder_String_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.FolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteFolderString { + + public static void main(String[] args) throws Exception { + syncDeleteFolderString(); + } + + public static void syncDeleteFolderString() 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 (DataformClient dataformClient = DataformClient.create()) { + String name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString(); + dataformClient.deleteFolder(name); + } + } +} +// [END dataform_v1beta1_generated_Dataform_DeleteFolder_String_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteteamfolder/AsyncDeleteTeamFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteteamfolder/AsyncDeleteTeamFolder.java new file mode 100644 index 000000000000..5795c940ac49 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteteamfolder/AsyncDeleteTeamFolder.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_DeleteTeamFolder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest; +import com.google.cloud.dataform.v1beta1.TeamFolderName; +import com.google.protobuf.Empty; + +public class AsyncDeleteTeamFolder { + + public static void main(String[] args) throws Exception { + asyncDeleteTeamFolder(); + } + + public static void asyncDeleteTeamFolder() 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 (DataformClient dataformClient = DataformClient.create()) { + DeleteTeamFolderRequest request = + DeleteTeamFolderRequest.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .build(); + ApiFuture future = dataformClient.deleteTeamFolderCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_DeleteTeamFolder_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteteamfolder/SyncDeleteTeamFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteteamfolder/SyncDeleteTeamFolder.java new file mode 100644 index 000000000000..37a7a4a6a6aa --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteteamfolder/SyncDeleteTeamFolder.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_DeleteTeamFolder_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest; +import com.google.cloud.dataform.v1beta1.TeamFolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteTeamFolder { + + public static void main(String[] args) throws Exception { + syncDeleteTeamFolder(); + } + + public static void syncDeleteTeamFolder() 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 (DataformClient dataformClient = DataformClient.create()) { + DeleteTeamFolderRequest request = + DeleteTeamFolderRequest.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .build(); + dataformClient.deleteTeamFolder(request); + } + } +} +// [END dataform_v1beta1_generated_Dataform_DeleteTeamFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteteamfolder/SyncDeleteTeamFolderString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteteamfolder/SyncDeleteTeamFolderString.java new file mode 100644 index 000000000000..958a58b151ef --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteteamfolder/SyncDeleteTeamFolderString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_DeleteTeamFolder_String_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.TeamFolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteTeamFolderString { + + public static void main(String[] args) throws Exception { + syncDeleteTeamFolderString(); + } + + public static void syncDeleteTeamFolderString() 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 (DataformClient dataformClient = DataformClient.create()) { + String name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString(); + dataformClient.deleteTeamFolder(name); + } + } +} +// [END dataform_v1beta1_generated_Dataform_DeleteTeamFolder_String_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteteamfolder/SyncDeleteTeamFolderTeamfoldername.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteteamfolder/SyncDeleteTeamFolderTeamfoldername.java new file mode 100644 index 000000000000..42c88e5d2132 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteteamfolder/SyncDeleteTeamFolderTeamfoldername.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_DeleteTeamFolder_Teamfoldername_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.TeamFolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteTeamFolderTeamfoldername { + + public static void main(String[] args) throws Exception { + syncDeleteTeamFolderTeamfoldername(); + } + + public static void syncDeleteTeamFolderTeamfoldername() 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 (DataformClient dataformClient = DataformClient.create()) { + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + dataformClient.deleteTeamFolder(name); + } + } +} +// [END dataform_v1beta1_generated_Dataform_DeleteTeamFolder_Teamfoldername_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getfolder/AsyncGetFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getfolder/AsyncGetFolder.java new file mode 100644 index 000000000000..dc20e005106d --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getfolder/AsyncGetFolder.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_GetFolder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.Folder; +import com.google.cloud.dataform.v1beta1.FolderName; +import com.google.cloud.dataform.v1beta1.GetFolderRequest; + +public class AsyncGetFolder { + + public static void main(String[] args) throws Exception { + asyncGetFolder(); + } + + public static void asyncGetFolder() 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 (DataformClient dataformClient = DataformClient.create()) { + GetFolderRequest request = + GetFolderRequest.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .build(); + ApiFuture future = dataformClient.getFolderCallable().futureCall(request); + // Do something. + Folder response = future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_GetFolder_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getfolder/SyncGetFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getfolder/SyncGetFolder.java new file mode 100644 index 000000000000..05d32ef784a9 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getfolder/SyncGetFolder.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_GetFolder_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.Folder; +import com.google.cloud.dataform.v1beta1.FolderName; +import com.google.cloud.dataform.v1beta1.GetFolderRequest; + +public class SyncGetFolder { + + public static void main(String[] args) throws Exception { + syncGetFolder(); + } + + public static void syncGetFolder() 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 (DataformClient dataformClient = DataformClient.create()) { + GetFolderRequest request = + GetFolderRequest.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .build(); + Folder response = dataformClient.getFolder(request); + } + } +} +// [END dataform_v1beta1_generated_Dataform_GetFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getfolder/SyncGetFolderFoldername.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getfolder/SyncGetFolderFoldername.java new file mode 100644 index 000000000000..cdbc1a4c94b4 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getfolder/SyncGetFolderFoldername.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_GetFolder_Foldername_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.Folder; +import com.google.cloud.dataform.v1beta1.FolderName; + +public class SyncGetFolderFoldername { + + public static void main(String[] args) throws Exception { + syncGetFolderFoldername(); + } + + public static void syncGetFolderFoldername() 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 (DataformClient dataformClient = DataformClient.create()) { + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + Folder response = dataformClient.getFolder(name); + } + } +} +// [END dataform_v1beta1_generated_Dataform_GetFolder_Foldername_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getfolder/SyncGetFolderString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getfolder/SyncGetFolderString.java new file mode 100644 index 000000000000..82b8f2a08726 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getfolder/SyncGetFolderString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_GetFolder_String_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.Folder; +import com.google.cloud.dataform.v1beta1.FolderName; + +public class SyncGetFolderString { + + public static void main(String[] args) throws Exception { + syncGetFolderString(); + } + + public static void syncGetFolderString() 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 (DataformClient dataformClient = DataformClient.create()) { + String name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString(); + Folder response = dataformClient.getFolder(name); + } + } +} +// [END dataform_v1beta1_generated_Dataform_GetFolder_String_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getiampolicy/AsyncGetIamPolicy.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getiampolicy/AsyncGetIamPolicy.java index 83ac143aeca6..d551f52b4da7 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getiampolicy/AsyncGetIamPolicy.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getiampolicy/AsyncGetIamPolicy.java @@ -19,7 +19,7 @@ // [START dataform_v1beta1_generated_Dataform_GetIamPolicy_async] import com.google.api.core.ApiFuture; import com.google.cloud.dataform.v1beta1.DataformClient; -import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.cloud.dataform.v1beta1.FolderName; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.GetPolicyOptions; import com.google.iam.v1.Policy; @@ -39,7 +39,7 @@ public static void asyncGetIamPolicy() throws Exception { try (DataformClient dataformClient = DataformClient.create()) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); ApiFuture future = dataformClient.getIamPolicyCallable().futureCall(request); diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getiampolicy/SyncGetIamPolicy.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getiampolicy/SyncGetIamPolicy.java index 4305d953f7aa..0594466c8640 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getiampolicy/SyncGetIamPolicy.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getiampolicy/SyncGetIamPolicy.java @@ -18,7 +18,7 @@ // [START dataform_v1beta1_generated_Dataform_GetIamPolicy_sync] import com.google.cloud.dataform.v1beta1.DataformClient; -import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.cloud.dataform.v1beta1.FolderName; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.GetPolicyOptions; import com.google.iam.v1.Policy; @@ -38,7 +38,7 @@ public static void syncGetIamPolicy() throws Exception { try (DataformClient dataformClient = DataformClient.create()) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); Policy response = dataformClient.getIamPolicy(request); diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getiampolicy/SyncGetIamPolicyResourcename.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getiampolicy/SyncGetIamPolicyResourcename.java new file mode 100644 index 000000000000..61742bb07dc5 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getiampolicy/SyncGetIamPolicyResourcename.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_GetIamPolicy_Resourcename_sync] +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.FolderName; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicyResourcename { + + public static void main(String[] args) throws Exception { + syncGetIamPolicyResourcename(); + } + + public static void syncGetIamPolicyResourcename() 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 (DataformClient dataformClient = DataformClient.create()) { + ResourceName resource = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + Policy response = dataformClient.getIamPolicy(resource); + } + } +} +// [END dataform_v1beta1_generated_Dataform_GetIamPolicy_Resourcename_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getiampolicy/SyncGetIamPolicyString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getiampolicy/SyncGetIamPolicyString.java new file mode 100644 index 000000000000..a7b105ccaea9 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getiampolicy/SyncGetIamPolicyString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_GetIamPolicy_String_sync] +import com.google.cloud.dataform.v1beta1.CompilationResultName; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicyString { + + public static void main(String[] args) throws Exception { + syncGetIamPolicyString(); + } + + public static void syncGetIamPolicyString() 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 (DataformClient dataformClient = DataformClient.create()) { + String resource = + CompilationResultName.of( + "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]") + .toString(); + Policy response = dataformClient.getIamPolicy(resource); + } + } +} +// [END dataform_v1beta1_generated_Dataform_GetIamPolicy_String_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getteamfolder/AsyncGetTeamFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getteamfolder/AsyncGetTeamFolder.java new file mode 100644 index 000000000000..f47202fcf5da --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getteamfolder/AsyncGetTeamFolder.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_GetTeamFolder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.GetTeamFolderRequest; +import com.google.cloud.dataform.v1beta1.TeamFolder; +import com.google.cloud.dataform.v1beta1.TeamFolderName; + +public class AsyncGetTeamFolder { + + public static void main(String[] args) throws Exception { + asyncGetTeamFolder(); + } + + public static void asyncGetTeamFolder() 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 (DataformClient dataformClient = DataformClient.create()) { + GetTeamFolderRequest request = + GetTeamFolderRequest.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .build(); + ApiFuture future = dataformClient.getTeamFolderCallable().futureCall(request); + // Do something. + TeamFolder response = future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_GetTeamFolder_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getteamfolder/SyncGetTeamFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getteamfolder/SyncGetTeamFolder.java new file mode 100644 index 000000000000..fd96b570c21a --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getteamfolder/SyncGetTeamFolder.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_GetTeamFolder_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.GetTeamFolderRequest; +import com.google.cloud.dataform.v1beta1.TeamFolder; +import com.google.cloud.dataform.v1beta1.TeamFolderName; + +public class SyncGetTeamFolder { + + public static void main(String[] args) throws Exception { + syncGetTeamFolder(); + } + + public static void syncGetTeamFolder() 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 (DataformClient dataformClient = DataformClient.create()) { + GetTeamFolderRequest request = + GetTeamFolderRequest.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .build(); + TeamFolder response = dataformClient.getTeamFolder(request); + } + } +} +// [END dataform_v1beta1_generated_Dataform_GetTeamFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getteamfolder/SyncGetTeamFolderString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getteamfolder/SyncGetTeamFolderString.java new file mode 100644 index 000000000000..326c43af3de5 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getteamfolder/SyncGetTeamFolderString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_GetTeamFolder_String_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.TeamFolder; +import com.google.cloud.dataform.v1beta1.TeamFolderName; + +public class SyncGetTeamFolderString { + + public static void main(String[] args) throws Exception { + syncGetTeamFolderString(); + } + + public static void syncGetTeamFolderString() 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 (DataformClient dataformClient = DataformClient.create()) { + String name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString(); + TeamFolder response = dataformClient.getTeamFolder(name); + } + } +} +// [END dataform_v1beta1_generated_Dataform_GetTeamFolder_String_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getteamfolder/SyncGetTeamFolderTeamfoldername.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getteamfolder/SyncGetTeamFolderTeamfoldername.java new file mode 100644 index 000000000000..3dc59dffbf29 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/getteamfolder/SyncGetTeamFolderTeamfoldername.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_GetTeamFolder_Teamfoldername_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.TeamFolder; +import com.google.cloud.dataform.v1beta1.TeamFolderName; + +public class SyncGetTeamFolderTeamfoldername { + + public static void main(String[] args) throws Exception { + syncGetTeamFolderTeamfoldername(); + } + + public static void syncGetTeamFolderTeamfoldername() 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 (DataformClient dataformClient = DataformClient.create()) { + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + TeamFolder response = dataformClient.getTeamFolder(name); + } + } +} +// [END dataform_v1beta1_generated_Dataform_GetTeamFolder_Teamfoldername_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/movefolder/AsyncMoveFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/movefolder/AsyncMoveFolder.java new file mode 100644 index 000000000000..400c68fa1152 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/movefolder/AsyncMoveFolder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_MoveFolder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.FolderName; +import com.google.cloud.dataform.v1beta1.MoveFolderRequest; +import com.google.longrunning.Operation; + +public class AsyncMoveFolder { + + public static void main(String[] args) throws Exception { + asyncMoveFolder(); + } + + public static void asyncMoveFolder() 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 (DataformClient dataformClient = DataformClient.create()) { + MoveFolderRequest request = + MoveFolderRequest.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDestinationContainingFolder("destinationContainingFolder870737098") + .build(); + ApiFuture future = dataformClient.moveFolderCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_MoveFolder_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/movefolder/AsyncMoveFolderLRO.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/movefolder/AsyncMoveFolderLRO.java new file mode 100644 index 000000000000..8f1dd603772c --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/movefolder/AsyncMoveFolderLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_MoveFolder_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.FolderName; +import com.google.cloud.dataform.v1beta1.MoveFolderMetadata; +import com.google.cloud.dataform.v1beta1.MoveFolderRequest; +import com.google.protobuf.Empty; + +public class AsyncMoveFolderLRO { + + public static void main(String[] args) throws Exception { + asyncMoveFolderLRO(); + } + + public static void asyncMoveFolderLRO() 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 (DataformClient dataformClient = DataformClient.create()) { + MoveFolderRequest request = + MoveFolderRequest.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDestinationContainingFolder("destinationContainingFolder870737098") + .build(); + OperationFuture future = + dataformClient.moveFolderOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_MoveFolder_LRO_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/movefolder/SyncMoveFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/movefolder/SyncMoveFolder.java new file mode 100644 index 000000000000..018471d1004a --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/movefolder/SyncMoveFolder.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_MoveFolder_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.FolderName; +import com.google.cloud.dataform.v1beta1.MoveFolderRequest; +import com.google.protobuf.Empty; + +public class SyncMoveFolder { + + public static void main(String[] args) throws Exception { + syncMoveFolder(); + } + + public static void syncMoveFolder() 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 (DataformClient dataformClient = DataformClient.create()) { + MoveFolderRequest request = + MoveFolderRequest.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setDestinationContainingFolder("destinationContainingFolder870737098") + .build(); + dataformClient.moveFolderAsync(request).get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_MoveFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/movefolder/SyncMoveFolderFoldernameString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/movefolder/SyncMoveFolderFoldernameString.java new file mode 100644 index 000000000000..fead40a60c82 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/movefolder/SyncMoveFolderFoldernameString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_MoveFolder_FoldernameString_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.FolderName; +import com.google.protobuf.Empty; + +public class SyncMoveFolderFoldernameString { + + public static void main(String[] args) throws Exception { + syncMoveFolderFoldernameString(); + } + + public static void syncMoveFolderFoldernameString() 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 (DataformClient dataformClient = DataformClient.create()) { + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + String destinationContainingFolder = "destinationContainingFolder870737098"; + dataformClient.moveFolderAsync(name, destinationContainingFolder).get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_MoveFolder_FoldernameString_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/movefolder/SyncMoveFolderStringString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/movefolder/SyncMoveFolderStringString.java new file mode 100644 index 000000000000..ca7aaea230e4 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/movefolder/SyncMoveFolderStringString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_MoveFolder_StringString_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.FolderName; +import com.google.protobuf.Empty; + +public class SyncMoveFolderStringString { + + public static void main(String[] args) throws Exception { + syncMoveFolderStringString(); + } + + public static void syncMoveFolderStringString() 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 (DataformClient dataformClient = DataformClient.create()) { + String name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString(); + String destinationContainingFolder = "destinationContainingFolder870737098"; + dataformClient.moveFolderAsync(name, destinationContainingFolder).get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_MoveFolder_StringString_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/moverepository/AsyncMoveRepository.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/moverepository/AsyncMoveRepository.java new file mode 100644 index 000000000000..c0d8d7afbb23 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/moverepository/AsyncMoveRepository.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_MoveRepository_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.MoveRepositoryRequest; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.longrunning.Operation; + +public class AsyncMoveRepository { + + public static void main(String[] args) throws Exception { + asyncMoveRepository(); + } + + public static void asyncMoveRepository() 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 (DataformClient dataformClient = DataformClient.create()) { + MoveRepositoryRequest request = + MoveRepositoryRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setDestinationContainingFolder("destinationContainingFolder870737098") + .build(); + ApiFuture future = dataformClient.moveRepositoryCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_MoveRepository_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/moverepository/AsyncMoveRepositoryLRO.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/moverepository/AsyncMoveRepositoryLRO.java new file mode 100644 index 000000000000..ea6a742656ff --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/moverepository/AsyncMoveRepositoryLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_MoveRepository_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.MoveRepositoryMetadata; +import com.google.cloud.dataform.v1beta1.MoveRepositoryRequest; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.protobuf.Empty; + +public class AsyncMoveRepositoryLRO { + + public static void main(String[] args) throws Exception { + asyncMoveRepositoryLRO(); + } + + public static void asyncMoveRepositoryLRO() 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 (DataformClient dataformClient = DataformClient.create()) { + MoveRepositoryRequest request = + MoveRepositoryRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setDestinationContainingFolder("destinationContainingFolder870737098") + .build(); + OperationFuture future = + dataformClient.moveRepositoryOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_MoveRepository_LRO_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/moverepository/SyncMoveRepository.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/moverepository/SyncMoveRepository.java new file mode 100644 index 000000000000..404cab7fb67c --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/moverepository/SyncMoveRepository.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_MoveRepository_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.MoveRepositoryRequest; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.protobuf.Empty; + +public class SyncMoveRepository { + + public static void main(String[] args) throws Exception { + syncMoveRepository(); + } + + public static void syncMoveRepository() 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 (DataformClient dataformClient = DataformClient.create()) { + MoveRepositoryRequest request = + MoveRepositoryRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setDestinationContainingFolder("destinationContainingFolder870737098") + .build(); + dataformClient.moveRepositoryAsync(request).get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_MoveRepository_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/moverepository/SyncMoveRepositoryRepositorynameString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/moverepository/SyncMoveRepositoryRepositorynameString.java new file mode 100644 index 000000000000..50d633e41676 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/moverepository/SyncMoveRepositoryRepositorynameString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_MoveRepository_RepositorynameString_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.protobuf.Empty; + +public class SyncMoveRepositoryRepositorynameString { + + public static void main(String[] args) throws Exception { + syncMoveRepositoryRepositorynameString(); + } + + public static void syncMoveRepositoryRepositorynameString() 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 (DataformClient dataformClient = DataformClient.create()) { + RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + String destinationContainingFolder = "destinationContainingFolder870737098"; + dataformClient.moveRepositoryAsync(name, destinationContainingFolder).get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_MoveRepository_RepositorynameString_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/moverepository/SyncMoveRepositoryStringString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/moverepository/SyncMoveRepositoryStringString.java new file mode 100644 index 000000000000..024926f2ecf3 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/moverepository/SyncMoveRepositoryStringString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_MoveRepository_StringString_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.protobuf.Empty; + +public class SyncMoveRepositoryStringString { + + public static void main(String[] args) throws Exception { + syncMoveRepositoryStringString(); + } + + public static void syncMoveRepositoryStringString() 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 (DataformClient dataformClient = DataformClient.create()) { + String name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + String destinationContainingFolder = "destinationContainingFolder870737098"; + dataformClient.moveRepositoryAsync(name, destinationContainingFolder).get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_MoveRepository_StringString_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryfoldercontents/AsyncQueryFolderContents.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryfoldercontents/AsyncQueryFolderContents.java new file mode 100644 index 000000000000..1e2bc12f9abf --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryfoldercontents/AsyncQueryFolderContents.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_QueryFolderContents_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.FolderName; +import com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest; +import com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse; + +public class AsyncQueryFolderContents { + + public static void main(String[] args) throws Exception { + asyncQueryFolderContents(); + } + + public static void asyncQueryFolderContents() 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 (DataformClient dataformClient = DataformClient.create()) { + QueryFolderContentsRequest request = + QueryFolderContentsRequest.newBuilder() + .setFolder(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + dataformClient.queryFolderContentsPagedCallable().futureCall(request); + // Do something. + for (QueryFolderContentsResponse.FolderContentsEntry element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1beta1_generated_Dataform_QueryFolderContents_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryfoldercontents/AsyncQueryFolderContentsPaged.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryfoldercontents/AsyncQueryFolderContentsPaged.java new file mode 100644 index 000000000000..aa6716a6be4a --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryfoldercontents/AsyncQueryFolderContentsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_QueryFolderContents_Paged_async] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.FolderName; +import com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest; +import com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse; +import com.google.common.base.Strings; + +public class AsyncQueryFolderContentsPaged { + + public static void main(String[] args) throws Exception { + asyncQueryFolderContentsPaged(); + } + + public static void asyncQueryFolderContentsPaged() 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 (DataformClient dataformClient = DataformClient.create()) { + QueryFolderContentsRequest request = + QueryFolderContentsRequest.newBuilder() + .setFolder(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + while (true) { + QueryFolderContentsResponse response = + dataformClient.queryFolderContentsCallable().call(request); + for (QueryFolderContentsResponse.FolderContentsEntry element : response.getEntriesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END dataform_v1beta1_generated_Dataform_QueryFolderContents_Paged_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryfoldercontents/SyncQueryFolderContents.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryfoldercontents/SyncQueryFolderContents.java new file mode 100644 index 000000000000..16697683ec14 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryfoldercontents/SyncQueryFolderContents.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_QueryFolderContents_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.FolderName; +import com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest; +import com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse; + +public class SyncQueryFolderContents { + + public static void main(String[] args) throws Exception { + syncQueryFolderContents(); + } + + public static void syncQueryFolderContents() 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 (DataformClient dataformClient = DataformClient.create()) { + QueryFolderContentsRequest request = + QueryFolderContentsRequest.newBuilder() + .setFolder(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + for (QueryFolderContentsResponse.FolderContentsEntry element : + dataformClient.queryFolderContents(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1beta1_generated_Dataform_QueryFolderContents_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryfoldercontents/SyncQueryFolderContentsFoldername.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryfoldercontents/SyncQueryFolderContentsFoldername.java new file mode 100644 index 000000000000..27f823521678 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryfoldercontents/SyncQueryFolderContentsFoldername.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_QueryFolderContents_Foldername_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.FolderName; +import com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse; + +public class SyncQueryFolderContentsFoldername { + + public static void main(String[] args) throws Exception { + syncQueryFolderContentsFoldername(); + } + + public static void syncQueryFolderContentsFoldername() 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 (DataformClient dataformClient = DataformClient.create()) { + FolderName folder = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + for (QueryFolderContentsResponse.FolderContentsEntry element : + dataformClient.queryFolderContents(folder).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1beta1_generated_Dataform_QueryFolderContents_Foldername_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryfoldercontents/SyncQueryFolderContentsString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryfoldercontents/SyncQueryFolderContentsString.java new file mode 100644 index 000000000000..83ce9c1b2bb4 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryfoldercontents/SyncQueryFolderContentsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_QueryFolderContents_String_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.FolderName; +import com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse; + +public class SyncQueryFolderContentsString { + + public static void main(String[] args) throws Exception { + syncQueryFolderContentsString(); + } + + public static void syncQueryFolderContentsString() 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 (DataformClient dataformClient = DataformClient.create()) { + String folder = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString(); + for (QueryFolderContentsResponse.FolderContentsEntry element : + dataformClient.queryFolderContents(folder).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1beta1_generated_Dataform_QueryFolderContents_String_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryteamfoldercontents/AsyncQueryTeamFolderContents.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryteamfoldercontents/AsyncQueryTeamFolderContents.java new file mode 100644 index 000000000000..d4c3c82ad520 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryteamfoldercontents/AsyncQueryTeamFolderContents.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_QueryTeamFolderContents_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest; +import com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse; +import com.google.cloud.dataform.v1beta1.TeamFolderName; + +public class AsyncQueryTeamFolderContents { + + public static void main(String[] args) throws Exception { + asyncQueryTeamFolderContents(); + } + + public static void asyncQueryTeamFolderContents() 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 (DataformClient dataformClient = DataformClient.create()) { + QueryTeamFolderContentsRequest request = + QueryTeamFolderContentsRequest.newBuilder() + .setTeamFolder( + TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + dataformClient.queryTeamFolderContentsPagedCallable().futureCall(request); + // Do something. + for (QueryTeamFolderContentsResponse.TeamFolderContentsEntry element : + future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1beta1_generated_Dataform_QueryTeamFolderContents_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryteamfoldercontents/AsyncQueryTeamFolderContentsPaged.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryteamfoldercontents/AsyncQueryTeamFolderContentsPaged.java new file mode 100644 index 000000000000..eae7f0df472e --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryteamfoldercontents/AsyncQueryTeamFolderContentsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_QueryTeamFolderContents_Paged_async] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest; +import com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse; +import com.google.cloud.dataform.v1beta1.TeamFolderName; +import com.google.common.base.Strings; + +public class AsyncQueryTeamFolderContentsPaged { + + public static void main(String[] args) throws Exception { + asyncQueryTeamFolderContentsPaged(); + } + + public static void asyncQueryTeamFolderContentsPaged() 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 (DataformClient dataformClient = DataformClient.create()) { + QueryTeamFolderContentsRequest request = + QueryTeamFolderContentsRequest.newBuilder() + .setTeamFolder( + TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + while (true) { + QueryTeamFolderContentsResponse response = + dataformClient.queryTeamFolderContentsCallable().call(request); + for (QueryTeamFolderContentsResponse.TeamFolderContentsEntry element : + response.getEntriesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END dataform_v1beta1_generated_Dataform_QueryTeamFolderContents_Paged_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryteamfoldercontents/SyncQueryTeamFolderContents.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryteamfoldercontents/SyncQueryTeamFolderContents.java new file mode 100644 index 000000000000..2dad1b31911c --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryteamfoldercontents/SyncQueryTeamFolderContents.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_QueryTeamFolderContents_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest; +import com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse; +import com.google.cloud.dataform.v1beta1.TeamFolderName; + +public class SyncQueryTeamFolderContents { + + public static void main(String[] args) throws Exception { + syncQueryTeamFolderContents(); + } + + public static void syncQueryTeamFolderContents() 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 (DataformClient dataformClient = DataformClient.create()) { + QueryTeamFolderContentsRequest request = + QueryTeamFolderContentsRequest.newBuilder() + .setTeamFolder( + TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + for (QueryTeamFolderContentsResponse.TeamFolderContentsEntry element : + dataformClient.queryTeamFolderContents(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1beta1_generated_Dataform_QueryTeamFolderContents_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryteamfoldercontents/SyncQueryTeamFolderContentsString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryteamfoldercontents/SyncQueryTeamFolderContentsString.java new file mode 100644 index 000000000000..c9f60f5d7b35 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryteamfoldercontents/SyncQueryTeamFolderContentsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_QueryTeamFolderContents_String_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse; +import com.google.cloud.dataform.v1beta1.TeamFolderName; + +public class SyncQueryTeamFolderContentsString { + + public static void main(String[] args) throws Exception { + syncQueryTeamFolderContentsString(); + } + + public static void syncQueryTeamFolderContentsString() 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 (DataformClient dataformClient = DataformClient.create()) { + String teamFolder = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString(); + for (QueryTeamFolderContentsResponse.TeamFolderContentsEntry element : + dataformClient.queryTeamFolderContents(teamFolder).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1beta1_generated_Dataform_QueryTeamFolderContents_String_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryteamfoldercontents/SyncQueryTeamFolderContentsTeamfoldername.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryteamfoldercontents/SyncQueryTeamFolderContentsTeamfoldername.java new file mode 100644 index 000000000000..a7049860c695 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryteamfoldercontents/SyncQueryTeamFolderContentsTeamfoldername.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_QueryTeamFolderContents_Teamfoldername_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse; +import com.google.cloud.dataform.v1beta1.TeamFolderName; + +public class SyncQueryTeamFolderContentsTeamfoldername { + + public static void main(String[] args) throws Exception { + syncQueryTeamFolderContentsTeamfoldername(); + } + + public static void syncQueryTeamFolderContentsTeamfoldername() 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 (DataformClient dataformClient = DataformClient.create()) { + TeamFolderName teamFolder = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + for (QueryTeamFolderContentsResponse.TeamFolderContentsEntry element : + dataformClient.queryTeamFolderContents(teamFolder).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1beta1_generated_Dataform_QueryTeamFolderContents_Teamfoldername_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryuserrootcontents/AsyncQueryUserRootContents.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryuserrootcontents/AsyncQueryUserRootContents.java new file mode 100644 index 000000000000..996833e2db19 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryuserrootcontents/AsyncQueryUserRootContents.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_QueryUserRootContents_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.LocationName; +import com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest; +import com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse; + +public class AsyncQueryUserRootContents { + + public static void main(String[] args) throws Exception { + asyncQueryUserRootContents(); + } + + public static void asyncQueryUserRootContents() 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 (DataformClient dataformClient = DataformClient.create()) { + QueryUserRootContentsRequest request = + QueryUserRootContentsRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + dataformClient.queryUserRootContentsPagedCallable().futureCall(request); + // Do something. + for (QueryUserRootContentsResponse.RootContentsEntry element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1beta1_generated_Dataform_QueryUserRootContents_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryuserrootcontents/AsyncQueryUserRootContentsPaged.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryuserrootcontents/AsyncQueryUserRootContentsPaged.java new file mode 100644 index 000000000000..96cabab713b6 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryuserrootcontents/AsyncQueryUserRootContentsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_QueryUserRootContents_Paged_async] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.LocationName; +import com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest; +import com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse; +import com.google.common.base.Strings; + +public class AsyncQueryUserRootContentsPaged { + + public static void main(String[] args) throws Exception { + asyncQueryUserRootContentsPaged(); + } + + public static void asyncQueryUserRootContentsPaged() 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 (DataformClient dataformClient = DataformClient.create()) { + QueryUserRootContentsRequest request = + QueryUserRootContentsRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + while (true) { + QueryUserRootContentsResponse response = + dataformClient.queryUserRootContentsCallable().call(request); + for (QueryUserRootContentsResponse.RootContentsEntry element : response.getEntriesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END dataform_v1beta1_generated_Dataform_QueryUserRootContents_Paged_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryuserrootcontents/SyncQueryUserRootContents.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryuserrootcontents/SyncQueryUserRootContents.java new file mode 100644 index 000000000000..c20186db7aa2 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryuserrootcontents/SyncQueryUserRootContents.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_QueryUserRootContents_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.LocationName; +import com.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest; +import com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse; + +public class SyncQueryUserRootContents { + + public static void main(String[] args) throws Exception { + syncQueryUserRootContents(); + } + + public static void syncQueryUserRootContents() 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 (DataformClient dataformClient = DataformClient.create()) { + QueryUserRootContentsRequest request = + QueryUserRootContentsRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + for (QueryUserRootContentsResponse.RootContentsEntry element : + dataformClient.queryUserRootContents(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1beta1_generated_Dataform_QueryUserRootContents_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryuserrootcontents/SyncQueryUserRootContentsLocationname.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryuserrootcontents/SyncQueryUserRootContentsLocationname.java new file mode 100644 index 000000000000..df2d6d67240e --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryuserrootcontents/SyncQueryUserRootContentsLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_QueryUserRootContents_Locationname_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.LocationName; +import com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse; + +public class SyncQueryUserRootContentsLocationname { + + public static void main(String[] args) throws Exception { + syncQueryUserRootContentsLocationname(); + } + + public static void syncQueryUserRootContentsLocationname() 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 (DataformClient dataformClient = DataformClient.create()) { + LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); + for (QueryUserRootContentsResponse.RootContentsEntry element : + dataformClient.queryUserRootContents(location).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1beta1_generated_Dataform_QueryUserRootContents_Locationname_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryuserrootcontents/SyncQueryUserRootContentsString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryuserrootcontents/SyncQueryUserRootContentsString.java new file mode 100644 index 000000000000..beda9b706377 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/queryuserrootcontents/SyncQueryUserRootContentsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_QueryUserRootContents_String_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.LocationName; +import com.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse; + +public class SyncQueryUserRootContentsString { + + public static void main(String[] args) throws Exception { + syncQueryUserRootContentsString(); + } + + public static void syncQueryUserRootContentsString() 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 (DataformClient dataformClient = DataformClient.create()) { + String location = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (QueryUserRootContentsResponse.RootContentsEntry element : + dataformClient.queryUserRootContents(location).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1beta1_generated_Dataform_QueryUserRootContents_String_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/searchteamfolders/AsyncSearchTeamFolders.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/searchteamfolders/AsyncSearchTeamFolders.java new file mode 100644 index 000000000000..f51c330de421 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/searchteamfolders/AsyncSearchTeamFolders.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_SearchTeamFolders_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.LocationName; +import com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest; +import com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse; + +public class AsyncSearchTeamFolders { + + public static void main(String[] args) throws Exception { + asyncSearchTeamFolders(); + } + + public static void asyncSearchTeamFolders() 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 (DataformClient dataformClient = DataformClient.create()) { + SearchTeamFoldersRequest request = + SearchTeamFoldersRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + dataformClient.searchTeamFoldersPagedCallable().futureCall(request); + // Do something. + for (SearchTeamFoldersResponse.TeamFolderSearchResult element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1beta1_generated_Dataform_SearchTeamFolders_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/searchteamfolders/AsyncSearchTeamFoldersPaged.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/searchteamfolders/AsyncSearchTeamFoldersPaged.java new file mode 100644 index 000000000000..841883c20cee --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/searchteamfolders/AsyncSearchTeamFoldersPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_SearchTeamFolders_Paged_async] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.LocationName; +import com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest; +import com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse; +import com.google.common.base.Strings; + +public class AsyncSearchTeamFoldersPaged { + + public static void main(String[] args) throws Exception { + asyncSearchTeamFoldersPaged(); + } + + public static void asyncSearchTeamFoldersPaged() 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 (DataformClient dataformClient = DataformClient.create()) { + SearchTeamFoldersRequest request = + SearchTeamFoldersRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + while (true) { + SearchTeamFoldersResponse response = + dataformClient.searchTeamFoldersCallable().call(request); + for (SearchTeamFoldersResponse.TeamFolderSearchResult element : response.getResultsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END dataform_v1beta1_generated_Dataform_SearchTeamFolders_Paged_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/searchteamfolders/SyncSearchTeamFolders.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/searchteamfolders/SyncSearchTeamFolders.java new file mode 100644 index 000000000000..8bcce98a6323 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/searchteamfolders/SyncSearchTeamFolders.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_SearchTeamFolders_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.LocationName; +import com.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest; +import com.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse; + +public class SyncSearchTeamFolders { + + public static void main(String[] args) throws Exception { + syncSearchTeamFolders(); + } + + public static void syncSearchTeamFolders() 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 (DataformClient dataformClient = DataformClient.create()) { + SearchTeamFoldersRequest request = + SearchTeamFoldersRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + for (SearchTeamFoldersResponse.TeamFolderSearchResult element : + dataformClient.searchTeamFolders(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataform_v1beta1_generated_Dataform_SearchTeamFolders_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/setiampolicy/AsyncSetIamPolicy.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/setiampolicy/AsyncSetIamPolicy.java index 72b9d9c67c1d..f8371d79ade4 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/setiampolicy/AsyncSetIamPolicy.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/setiampolicy/AsyncSetIamPolicy.java @@ -19,7 +19,7 @@ // [START dataform_v1beta1_generated_Dataform_SetIamPolicy_async] import com.google.api.core.ApiFuture; import com.google.cloud.dataform.v1beta1.DataformClient; -import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.cloud.dataform.v1beta1.FolderName; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; import com.google.protobuf.FieldMask; @@ -39,7 +39,7 @@ public static void asyncSetIamPolicy() throws Exception { try (DataformClient dataformClient = DataformClient.create()) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/setiampolicy/SyncSetIamPolicy.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/setiampolicy/SyncSetIamPolicy.java index 7450937ccbc8..31121d51de6e 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/setiampolicy/SyncSetIamPolicy.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/setiampolicy/SyncSetIamPolicy.java @@ -18,7 +18,7 @@ // [START dataform_v1beta1_generated_Dataform_SetIamPolicy_sync] import com.google.cloud.dataform.v1beta1.DataformClient; -import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.cloud.dataform.v1beta1.FolderName; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; import com.google.protobuf.FieldMask; @@ -38,7 +38,7 @@ public static void syncSetIamPolicy() throws Exception { try (DataformClient dataformClient = DataformClient.create()) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/testiampermissions/AsyncTestIamPermissions.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/testiampermissions/AsyncTestIamPermissions.java index 700b1a3b941a..755b2e852fa9 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/testiampermissions/AsyncTestIamPermissions.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/testiampermissions/AsyncTestIamPermissions.java @@ -19,7 +19,7 @@ // [START dataform_v1beta1_generated_Dataform_TestIamPermissions_async] import com.google.api.core.ApiFuture; import com.google.cloud.dataform.v1beta1.DataformClient; -import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.cloud.dataform.v1beta1.FolderName; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; import java.util.ArrayList; @@ -39,7 +39,7 @@ public static void asyncTestIamPermissions() throws Exception { try (DataformClient dataformClient = DataformClient.create()) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) .addAllPermissions(new ArrayList()) .build(); ApiFuture future = diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/testiampermissions/SyncTestIamPermissions.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/testiampermissions/SyncTestIamPermissions.java index d07a24a0a07c..979321fc7d24 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/testiampermissions/SyncTestIamPermissions.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/testiampermissions/SyncTestIamPermissions.java @@ -18,7 +18,7 @@ // [START dataform_v1beta1_generated_Dataform_TestIamPermissions_sync] import com.google.cloud.dataform.v1beta1.DataformClient; -import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.cloud.dataform.v1beta1.FolderName; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; import java.util.ArrayList; @@ -38,7 +38,7 @@ public static void syncTestIamPermissions() throws Exception { try (DataformClient dataformClient = DataformClient.create()) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setResource(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) .addAllPermissions(new ArrayList()) .build(); TestIamPermissionsResponse response = dataformClient.testIamPermissions(request); diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updatefolder/AsyncUpdateFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updatefolder/AsyncUpdateFolder.java new file mode 100644 index 000000000000..44561a5b1a4a --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updatefolder/AsyncUpdateFolder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_UpdateFolder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.Folder; +import com.google.cloud.dataform.v1beta1.UpdateFolderRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateFolder { + + public static void main(String[] args) throws Exception { + asyncUpdateFolder(); + } + + public static void asyncUpdateFolder() 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 (DataformClient dataformClient = DataformClient.create()) { + UpdateFolderRequest request = + UpdateFolderRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setFolder(Folder.newBuilder().build()) + .build(); + ApiFuture future = dataformClient.updateFolderCallable().futureCall(request); + // Do something. + Folder response = future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_UpdateFolder_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updatefolder/SyncUpdateFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updatefolder/SyncUpdateFolder.java new file mode 100644 index 000000000000..5c0a06d47c12 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updatefolder/SyncUpdateFolder.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_UpdateFolder_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.Folder; +import com.google.cloud.dataform.v1beta1.UpdateFolderRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateFolder { + + public static void main(String[] args) throws Exception { + syncUpdateFolder(); + } + + public static void syncUpdateFolder() 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 (DataformClient dataformClient = DataformClient.create()) { + UpdateFolderRequest request = + UpdateFolderRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setFolder(Folder.newBuilder().build()) + .build(); + Folder response = dataformClient.updateFolder(request); + } + } +} +// [END dataform_v1beta1_generated_Dataform_UpdateFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updatefolder/SyncUpdateFolderFolderFieldmask.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updatefolder/SyncUpdateFolderFolderFieldmask.java new file mode 100644 index 000000000000..3099937af8c3 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updatefolder/SyncUpdateFolderFolderFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_UpdateFolder_FolderFieldmask_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.Folder; +import com.google.protobuf.FieldMask; + +public class SyncUpdateFolderFolderFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateFolderFolderFieldmask(); + } + + public static void syncUpdateFolderFolderFieldmask() 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 (DataformClient dataformClient = DataformClient.create()) { + Folder folder = Folder.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Folder response = dataformClient.updateFolder(folder, updateMask); + } + } +} +// [END dataform_v1beta1_generated_Dataform_UpdateFolder_FolderFieldmask_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updateteamfolder/AsyncUpdateTeamFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updateteamfolder/AsyncUpdateTeamFolder.java new file mode 100644 index 000000000000..fc59eab70f1d --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updateteamfolder/AsyncUpdateTeamFolder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_UpdateTeamFolder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.TeamFolder; +import com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateTeamFolder { + + public static void main(String[] args) throws Exception { + asyncUpdateTeamFolder(); + } + + public static void asyncUpdateTeamFolder() 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 (DataformClient dataformClient = DataformClient.create()) { + UpdateTeamFolderRequest request = + UpdateTeamFolderRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setTeamFolder(TeamFolder.newBuilder().build()) + .build(); + ApiFuture future = dataformClient.updateTeamFolderCallable().futureCall(request); + // Do something. + TeamFolder response = future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_UpdateTeamFolder_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updateteamfolder/SyncUpdateTeamFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updateteamfolder/SyncUpdateTeamFolder.java new file mode 100644 index 000000000000..2ee40b42e602 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updateteamfolder/SyncUpdateTeamFolder.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_UpdateTeamFolder_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.TeamFolder; +import com.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateTeamFolder { + + public static void main(String[] args) throws Exception { + syncUpdateTeamFolder(); + } + + public static void syncUpdateTeamFolder() 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 (DataformClient dataformClient = DataformClient.create()) { + UpdateTeamFolderRequest request = + UpdateTeamFolderRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setTeamFolder(TeamFolder.newBuilder().build()) + .build(); + TeamFolder response = dataformClient.updateTeamFolder(request); + } + } +} +// [END dataform_v1beta1_generated_Dataform_UpdateTeamFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updateteamfolder/SyncUpdateTeamFolderTeamfolderFieldmask.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updateteamfolder/SyncUpdateTeamFolderTeamfolderFieldmask.java new file mode 100644 index 000000000000..a3d0b8d6aaf9 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/updateteamfolder/SyncUpdateTeamFolderTeamfolderFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_UpdateTeamFolder_TeamfolderFieldmask_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.TeamFolder; +import com.google.protobuf.FieldMask; + +public class SyncUpdateTeamFolderTeamfolderFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateTeamFolderTeamfolderFieldmask(); + } + + public static void syncUpdateTeamFolderTeamfolderFieldmask() 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 (DataformClient dataformClient = DataformClient.create()) { + TeamFolder teamFolder = TeamFolder.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + TeamFolder response = dataformClient.updateTeamFolder(teamFolder, updateMask); + } + } +} +// [END dataform_v1beta1_generated_Dataform_UpdateTeamFolder_TeamfolderFieldmask_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataformsettings/getrepository/SyncGetRepository.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataformsettings/getteamfolder/SyncGetTeamFolder.java similarity index 85% rename from java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataformsettings/getrepository/SyncGetRepository.java rename to java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataformsettings/getteamfolder/SyncGetTeamFolder.java index 68ad0335fd44..f8b7f3321dd4 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataformsettings/getrepository/SyncGetRepository.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataformsettings/getteamfolder/SyncGetTeamFolder.java @@ -16,17 +16,17 @@ package com.google.cloud.dataform.v1beta1.samples; -// [START dataform_v1beta1_generated_DataformSettings_GetRepository_sync] +// [START dataform_v1beta1_generated_DataformSettings_GetTeamFolder_sync] import com.google.cloud.dataform.v1beta1.DataformSettings; import java.time.Duration; -public class SyncGetRepository { +public class SyncGetTeamFolder { public static void main(String[] args) throws Exception { - syncGetRepository(); + syncGetTeamFolder(); } - public static void syncGetRepository() throws Exception { + public static void syncGetTeamFolder() 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. @@ -34,10 +34,10 @@ public static void syncGetRepository() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library DataformSettings.Builder dataformSettingsBuilder = DataformSettings.newBuilder(); dataformSettingsBuilder - .getRepositorySettings() + .getTeamFolderSettings() .setRetrySettings( dataformSettingsBuilder - .getRepositorySettings() + .getTeamFolderSettings() .getRetrySettings() .toBuilder() .setInitialRetryDelayDuration(Duration.ofSeconds(1)) @@ -52,4 +52,4 @@ public static void syncGetRepository() throws Exception { DataformSettings dataformSettings = dataformSettingsBuilder.build(); } } -// [END dataform_v1beta1_generated_DataformSettings_GetRepository_sync] +// [END dataform_v1beta1_generated_DataformSettings_GetTeamFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataformsettings/movefolder/SyncMoveFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataformsettings/movefolder/SyncMoveFolder.java new file mode 100644 index 000000000000..48fc2c832e81 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataformsettings/movefolder/SyncMoveFolder.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_DataformSettings_MoveFolder_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.cloud.dataform.v1beta1.DataformSettings; +import java.time.Duration; + +public class SyncMoveFolder { + + public static void main(String[] args) throws Exception { + syncMoveFolder(); + } + + public static void syncMoveFolder() 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 + DataformSettings.Builder dataformSettingsBuilder = DataformSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + dataformSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END dataform_v1beta1_generated_DataformSettings_MoveFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/stub/dataformstubsettings/getrepository/SyncGetRepository.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/stub/dataformstubsettings/getteamfolder/SyncGetTeamFolder.java similarity index 85% rename from java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/stub/dataformstubsettings/getrepository/SyncGetRepository.java rename to java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/stub/dataformstubsettings/getteamfolder/SyncGetTeamFolder.java index e6c74c32ca36..f5a8b666fe42 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/stub/dataformstubsettings/getrepository/SyncGetRepository.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/stub/dataformstubsettings/getteamfolder/SyncGetTeamFolder.java @@ -16,17 +16,17 @@ package com.google.cloud.dataform.v1beta1.stub.samples; -// [START dataform_v1beta1_generated_DataformStubSettings_GetRepository_sync] +// [START dataform_v1beta1_generated_DataformStubSettings_GetTeamFolder_sync] import com.google.cloud.dataform.v1beta1.stub.DataformStubSettings; import java.time.Duration; -public class SyncGetRepository { +public class SyncGetTeamFolder { public static void main(String[] args) throws Exception { - syncGetRepository(); + syncGetTeamFolder(); } - public static void syncGetRepository() throws Exception { + public static void syncGetTeamFolder() 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. @@ -34,10 +34,10 @@ public static void syncGetRepository() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library DataformStubSettings.Builder dataformSettingsBuilder = DataformStubSettings.newBuilder(); dataformSettingsBuilder - .getRepositorySettings() + .getTeamFolderSettings() .setRetrySettings( dataformSettingsBuilder - .getRepositorySettings() + .getTeamFolderSettings() .getRetrySettings() .toBuilder() .setInitialRetryDelayDuration(Duration.ofSeconds(1)) @@ -52,4 +52,4 @@ public static void syncGetRepository() throws Exception { DataformStubSettings dataformSettings = dataformSettingsBuilder.build(); } } -// [END dataform_v1beta1_generated_DataformStubSettings_GetRepository_sync] +// [END dataform_v1beta1_generated_DataformStubSettings_GetTeamFolder_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/stub/dataformstubsettings/movefolder/SyncMoveFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/stub/dataformstubsettings/movefolder/SyncMoveFolder.java new file mode 100644 index 000000000000..36f4ca9eed6d --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/stub/dataformstubsettings/movefolder/SyncMoveFolder.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.stub.samples; + +// [START dataform_v1beta1_generated_DataformStubSettings_MoveFolder_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.cloud.dataform.v1beta1.stub.DataformStubSettings; +import java.time.Duration; + +public class SyncMoveFolder { + + public static void main(String[] args) throws Exception { + syncMoveFolder(); + } + + public static void syncMoveFolder() 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 + DataformStubSettings.Builder dataformSettingsBuilder = DataformStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + dataformSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END dataform_v1beta1_generated_DataformStubSettings_MoveFolder_sync] diff --git a/java-datalabeling/README.md b/java-datalabeling/README.md index 1ce3d040b0fe..8cf455618525 100644 --- a/java-datalabeling/README.md +++ b/java-datalabeling/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datalabeling - 0.202.0 + 0.203.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datalabeling:0.202.0' +implementation 'com.google.cloud:google-cloud-datalabeling:0.203.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datalabeling" % "0.202.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datalabeling" % "0.203.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-datalabeling/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datalabeling.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalabeling/0.202.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalabeling/0.203.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-datalabeling/google-cloud-datalabeling-bom/pom.xml b/java-datalabeling/google-cloud-datalabeling-bom/pom.xml index a3c7af9d5aee..a120789201cb 100644 --- a/java-datalabeling/google-cloud-datalabeling-bom/pom.xml +++ b/java-datalabeling/google-cloud-datalabeling-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-datalabeling-bom - 0.204.0-SNAPSHOT + 0.205.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-datalabeling - 0.204.0-SNAPSHOT + 0.205.0 com.google.api.grpc grpc-google-cloud-datalabeling-v1beta1 - 0.169.0-SNAPSHOT + 0.170.0 com.google.api.grpc proto-google-cloud-datalabeling-v1beta1 - 0.169.0-SNAPSHOT + 0.170.0 diff --git a/java-datalabeling/google-cloud-datalabeling/pom.xml b/java-datalabeling/google-cloud-datalabeling/pom.xml index 25d705ac9245..08c5200f57fd 100644 --- a/java-datalabeling/google-cloud-datalabeling/pom.xml +++ b/java-datalabeling/google-cloud-datalabeling/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-datalabeling - 0.204.0-SNAPSHOT + 0.205.0 jar Google Cloud Data Labeling Java idiomatic client for Google Cloud Data Labeling com.google.cloud google-cloud-datalabeling-parent - 0.204.0-SNAPSHOT + 0.205.0 google-cloud-datalabeling diff --git a/java-datalabeling/grpc-google-cloud-datalabeling-v1beta1/pom.xml b/java-datalabeling/grpc-google-cloud-datalabeling-v1beta1/pom.xml index ba3734614710..a8f3b829e783 100644 --- a/java-datalabeling/grpc-google-cloud-datalabeling-v1beta1/pom.xml +++ b/java-datalabeling/grpc-google-cloud-datalabeling-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-datalabeling-v1beta1 - 0.169.0-SNAPSHOT + 0.170.0 grpc-google-cloud-datalabeling-v1beta1 GRPC library for grpc-google-cloud-datalabeling-v1beta1 com.google.cloud google-cloud-datalabeling-parent - 0.204.0-SNAPSHOT + 0.205.0 diff --git a/java-datalabeling/pom.xml b/java-datalabeling/pom.xml index 273e1c05c920..b63fbe7171d1 100644 --- a/java-datalabeling/pom.xml +++ b/java-datalabeling/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-datalabeling-parent pom - 0.204.0-SNAPSHOT + 0.205.0 Google Cloud Data Labeling Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-datalabeling-v1beta1 - 0.169.0-SNAPSHOT + 0.170.0 com.google.api.grpc grpc-google-cloud-datalabeling-v1beta1 - 0.169.0-SNAPSHOT + 0.170.0 com.google.cloud google-cloud-datalabeling - 0.204.0-SNAPSHOT + 0.205.0 diff --git a/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/pom.xml b/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/pom.xml index b4d5f6e34043..a7ce94b65da8 100644 --- a/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/pom.xml +++ b/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-datalabeling-v1beta1 - 0.169.0-SNAPSHOT + 0.170.0 proto-google-cloud-datalabeling-v1beta1 PROTO library for proto-google-cloud-datalabeling-v1beta1 com.google.cloud google-cloud-datalabeling-parent - 0.204.0-SNAPSHOT + 0.205.0 diff --git a/java-datalineage/README.md b/java-datalineage/README.md index 0f3694afbd09..850b8e892796 100644 --- a/java-datalineage/README.md +++ b/java-datalineage/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datalineage - 0.74.0 + 0.75.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datalineage:0.74.0' +implementation 'com.google.cloud:google-cloud-datalineage:0.75.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datalineage" % "0.74.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datalineage" % "0.75.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-datalineage/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datalineage.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalineage/0.74.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalineage/0.75.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-datalineage/google-cloud-datalineage-bom/pom.xml b/java-datalineage/google-cloud-datalineage-bom/pom.xml index 867277701079..e2cb1c0394d5 100644 --- a/java-datalineage/google-cloud-datalineage-bom/pom.xml +++ b/java-datalineage/google-cloud-datalineage-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-datalineage-bom - 0.76.0-SNAPSHOT + 0.77.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-datalineage - 0.76.0-SNAPSHOT + 0.77.0 com.google.api.grpc grpc-google-cloud-datalineage-v1 - 0.76.0-SNAPSHOT + 0.77.0 com.google.api.grpc proto-google-cloud-datalineage-v1 - 0.76.0-SNAPSHOT + 0.77.0 diff --git a/java-datalineage/google-cloud-datalineage/pom.xml b/java-datalineage/google-cloud-datalineage/pom.xml index 0a628547d7b9..48979a3444a0 100644 --- a/java-datalineage/google-cloud-datalineage/pom.xml +++ b/java-datalineage/google-cloud-datalineage/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-datalineage - 0.76.0-SNAPSHOT + 0.77.0 jar Google Data Lineage Data Lineage Lineage is used to track data flows between assets over time. com.google.cloud google-cloud-datalineage-parent - 0.76.0-SNAPSHOT + 0.77.0 google-cloud-datalineage diff --git a/java-datalineage/grpc-google-cloud-datalineage-v1/pom.xml b/java-datalineage/grpc-google-cloud-datalineage-v1/pom.xml index 5259f84da119..0a5bebf23c0f 100644 --- a/java-datalineage/grpc-google-cloud-datalineage-v1/pom.xml +++ b/java-datalineage/grpc-google-cloud-datalineage-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-datalineage-v1 - 0.76.0-SNAPSHOT + 0.77.0 grpc-google-cloud-datalineage-v1 GRPC library for google-cloud-datalineage com.google.cloud google-cloud-datalineage-parent - 0.76.0-SNAPSHOT + 0.77.0 diff --git a/java-datalineage/pom.xml b/java-datalineage/pom.xml index 4c714ebd582d..ce142697d484 100644 --- a/java-datalineage/pom.xml +++ b/java-datalineage/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-datalineage-parent pom - 0.76.0-SNAPSHOT + 0.77.0 Google Data Lineage Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-datalineage - 0.76.0-SNAPSHOT + 0.77.0 com.google.api.grpc grpc-google-cloud-datalineage-v1 - 0.76.0-SNAPSHOT + 0.77.0 com.google.api.grpc proto-google-cloud-datalineage-v1 - 0.76.0-SNAPSHOT + 0.77.0 diff --git a/java-datalineage/proto-google-cloud-datalineage-v1/pom.xml b/java-datalineage/proto-google-cloud-datalineage-v1/pom.xml index 96bf0a385519..3688b2d19e47 100644 --- a/java-datalineage/proto-google-cloud-datalineage-v1/pom.xml +++ b/java-datalineage/proto-google-cloud-datalineage-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-datalineage-v1 - 0.76.0-SNAPSHOT + 0.77.0 proto-google-cloud-datalineage-v1 Proto library for google-cloud-datalineage com.google.cloud google-cloud-datalineage-parent - 0.76.0-SNAPSHOT + 0.77.0 diff --git a/java-datamanager/README.md b/java-datamanager/README.md index 455c8733b36b..3de63663868b 100644 --- a/java-datamanager/README.md +++ b/java-datamanager/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.api-ads data-manager - 0.3.0 + 0.4.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.api-ads:data-manager:0.3.0' +implementation 'com.google.api-ads:data-manager:0.4.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.api-ads" % "data-manager" % "0.3.0" +libraryDependencies += "com.google.api-ads" % "data-manager" % "0.4.0" ``` ## Authentication @@ -158,7 +158,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/data-manager/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.api-ads/data-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/data-manager/0.3.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/data-manager/0.4.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-datamanager/data-manager-bom/pom.xml b/java-datamanager/data-manager-bom/pom.xml index 9ddcf5c8ec3f..c9bb1fdef8f9 100644 --- a/java-datamanager/data-manager-bom/pom.xml +++ b/java-datamanager/data-manager-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.api-ads data-manager-bom - 0.5.0-SNAPSHOT + 0.6.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.api-ads data-manager - 0.5.0-SNAPSHOT + 0.6.0 com.google.api-ads.api.grpc grpc-data-manager-v1 - 0.5.0-SNAPSHOT + 0.6.0 com.google.api-ads.api.grpc proto-data-manager-v1 - 0.5.0-SNAPSHOT + 0.6.0 diff --git a/java-datamanager/data-manager/pom.xml b/java-datamanager/data-manager/pom.xml index 0e605d4fe465..6b24d8bdf85d 100644 --- a/java-datamanager/data-manager/pom.xml +++ b/java-datamanager/data-manager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.api-ads data-manager - 0.5.0-SNAPSHOT + 0.6.0 jar Google Data Manager API Data Manager API A unified ingestion API for data partners, agencies and advertisers to connect first-party data across Google advertising products. com.google.api-ads data-manager-parent - 0.5.0-SNAPSHOT + 0.6.0 data-manager diff --git a/java-datamanager/grpc-data-manager-v1/pom.xml b/java-datamanager/grpc-data-manager-v1/pom.xml index 3fa55139cd2e..3d9d09585696 100644 --- a/java-datamanager/grpc-data-manager-v1/pom.xml +++ b/java-datamanager/grpc-data-manager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api-ads.api.grpc grpc-data-manager-v1 - 0.5.0-SNAPSHOT + 0.6.0 grpc-data-manager-v1 GRPC library for data-manager com.google.api-ads data-manager-parent - 0.5.0-SNAPSHOT + 0.6.0 diff --git a/java-datamanager/pom.xml b/java-datamanager/pom.xml index 9f8eec1602f2..06631d97e212 100644 --- a/java-datamanager/pom.xml +++ b/java-datamanager/pom.xml @@ -4,7 +4,7 @@ com.google.api-ads data-manager-parent pom - 0.5.0-SNAPSHOT + 0.6.0 Google Data Manager API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api-ads data-manager - 0.5.0-SNAPSHOT + 0.6.0 com.google.api-ads.api.grpc grpc-data-manager-v1 - 0.5.0-SNAPSHOT + 0.6.0 com.google.api-ads.api.grpc proto-data-manager-v1 - 0.5.0-SNAPSHOT + 0.6.0 diff --git a/java-datamanager/proto-data-manager-v1/pom.xml b/java-datamanager/proto-data-manager-v1/pom.xml index 55c6253d8c85..0d98f865be36 100644 --- a/java-datamanager/proto-data-manager-v1/pom.xml +++ b/java-datamanager/proto-data-manager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api-ads.api.grpc proto-data-manager-v1 - 0.5.0-SNAPSHOT + 0.6.0 proto-data-manager-v1 Proto library for data-manager com.google.api-ads data-manager-parent - 0.5.0-SNAPSHOT + 0.6.0 diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AudienceProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AudienceProto.java index 73bdb0e6f124..88fc20d89d48 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AudienceProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AudienceProto.java @@ -75,12 +75,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "google.ads.datamanager.v1.ConsentB\003\340A\001B\006" + "\n\004data\"!\n\010PairData\022\025\n\010pair_ids\030\001 \003(\tB\003\340A" + "\002\"%\n\nMobileData\022\027\n\nmobile_ids\030\001 \003(\tB\003\340A\002" - + "B\315\001\n\035com.google.ads.datamanager.v1B\rAudi" - + "enceProtoP\001ZDgoogle.golang.org/genproto/" - + "googleapis/ads/datamanager/v1;datamanage" - + "r\252\002\031Google.Ads.DataManager.V1\312\002\031Google\\A" - + "ds\\DataManager\\V1\352\002\034Google::Ads::DataMan" - + "ager::V1b\006proto3" + + "B\312\001\n\035com.google.ads.datamanager.v1B\rAudi" + + "enceProtoP\001ZAcloud.google.com/go/dataman" + + "ager/apiv1/datamanagerpb;datamanagerpb\252\002" + + "\031Google.Ads.DataManager.V1\312\002\031Google\\Ads\\" + + "DataManager\\V1\352\002\034Google::Ads::DataManage" + + "r::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AwsWrappedKeyInfo.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AwsWrappedKeyInfo.java index 2c82461918ca..c647d08cd7e0 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AwsWrappedKeyInfo.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AwsWrappedKeyInfo.java @@ -273,7 +273,7 @@ public com.google.ads.datamanager.v1.AwsWrappedKeyInfo.KeyType getKeyType() { *
              * Required. The Amazon Resource Name of the IAM Role to assume for KMS
              * decryption access. Should be in the format of
          -   * "arn:{partition}:iam::{account_id}:role/{role_name}"
          +   * `arn:{partition}:iam::{account_id}:role/{role_name}`
              * 
          * * string role_arn = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -299,7 +299,7 @@ public java.lang.String getRoleArn() { *
              * Required. The Amazon Resource Name of the IAM Role to assume for KMS
              * decryption access. Should be in the format of
          -   * "arn:{partition}:iam::{account_id}:role/{role_name}"
          +   * `arn:{partition}:iam::{account_id}:role/{role_name}`
              * 
          * * string role_arn = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -329,7 +329,8 @@ public com.google.protobuf.ByteString getRoleArnBytes() { * *
              * Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
          -   * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
          +   * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
          +   * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
              * 
          * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -354,7 +355,8 @@ public java.lang.String getKekUri() { * *
              * Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
          -   * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
          +   * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
          +   * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
              * 
          * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -926,7 +928,7 @@ public Builder clearKeyType() { *
                * Required. The Amazon Resource Name of the IAM Role to assume for KMS
                * decryption access. Should be in the format of
          -     * "arn:{partition}:iam::{account_id}:role/{role_name}"
          +     * `arn:{partition}:iam::{account_id}:role/{role_name}`
                * 
          * * string role_arn = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -951,7 +953,7 @@ public java.lang.String getRoleArn() { *
                * Required. The Amazon Resource Name of the IAM Role to assume for KMS
                * decryption access. Should be in the format of
          -     * "arn:{partition}:iam::{account_id}:role/{role_name}"
          +     * `arn:{partition}:iam::{account_id}:role/{role_name}`
                * 
          * * string role_arn = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -976,7 +978,7 @@ public com.google.protobuf.ByteString getRoleArnBytes() { *
                * Required. The Amazon Resource Name of the IAM Role to assume for KMS
                * decryption access. Should be in the format of
          -     * "arn:{partition}:iam::{account_id}:role/{role_name}"
          +     * `arn:{partition}:iam::{account_id}:role/{role_name}`
                * 
          * * string role_arn = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1000,7 +1002,7 @@ public Builder setRoleArn(java.lang.String value) { *
                * Required. The Amazon Resource Name of the IAM Role to assume for KMS
                * decryption access. Should be in the format of
          -     * "arn:{partition}:iam::{account_id}:role/{role_name}"
          +     * `arn:{partition}:iam::{account_id}:role/{role_name}`
                * 
          * * string role_arn = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1020,7 +1022,7 @@ public Builder clearRoleArn() { *
                * Required. The Amazon Resource Name of the IAM Role to assume for KMS
                * decryption access. Should be in the format of
          -     * "arn:{partition}:iam::{account_id}:role/{role_name}"
          +     * `arn:{partition}:iam::{account_id}:role/{role_name}`
                * 
          * * string role_arn = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1046,7 +1048,8 @@ public Builder setRoleArnBytes(com.google.protobuf.ByteString value) { * *
                * Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
          -     * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
          +     * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
          +     * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
                * 
          * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1070,7 +1073,8 @@ public java.lang.String getKekUri() { * *
                * Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
          -     * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
          +     * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
          +     * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
                * 
          * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1094,7 +1098,8 @@ public com.google.protobuf.ByteString getKekUriBytes() { * *
                * Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
          -     * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
          +     * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
          +     * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
                * 
          * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1117,7 +1122,8 @@ public Builder setKekUri(java.lang.String value) { * *
                * Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
          -     * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
          +     * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
          +     * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
                * 
          * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1136,7 +1142,8 @@ public Builder clearKekUri() { * *
                * Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
          -     * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
          +     * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
          +     * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
                * 
          * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AwsWrappedKeyInfoOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AwsWrappedKeyInfoOrBuilder.java index 1c417aed7079..95f4e5466772 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AwsWrappedKeyInfoOrBuilder.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AwsWrappedKeyInfoOrBuilder.java @@ -62,7 +62,7 @@ public interface AwsWrappedKeyInfoOrBuilder *
              * Required. The Amazon Resource Name of the IAM Role to assume for KMS
              * decryption access. Should be in the format of
          -   * "arn:{partition}:iam::{account_id}:role/{role_name}"
          +   * `arn:{partition}:iam::{account_id}:role/{role_name}`
              * 
          * * string role_arn = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -77,7 +77,7 @@ public interface AwsWrappedKeyInfoOrBuilder *
              * Required. The Amazon Resource Name of the IAM Role to assume for KMS
              * decryption access. Should be in the format of
          -   * "arn:{partition}:iam::{account_id}:role/{role_name}"
          +   * `arn:{partition}:iam::{account_id}:role/{role_name}`
              * 
          * * string role_arn = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -91,7 +91,8 @@ public interface AwsWrappedKeyInfoOrBuilder * *
              * Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
          -   * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
          +   * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
          +   * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
              * 
          * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -105,7 +106,8 @@ public interface AwsWrappedKeyInfoOrBuilder * *
              * Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
          -   * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
          +   * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
          +   * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
              * 
          * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/CartDataProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/CartDataProto.java index b5008a5741ca..85f4a762baef 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/CartDataProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/CartDataProto.java @@ -70,13 +70,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010quantity\030\002 \001(\003B\003\340A\001\022\027\n\nunit_price\030\003 \001(\001" + "B\003\340A\001\022\024\n\007item_id\030\004 \001(\tB\003\340A\001\022Q\n\032additiona" + "l_item_parameters\030\005 \003(\0132(.google.ads.dat" - + "amanager.v1.ItemParameterB\003\340A\001B\315\001\n\035com.g" + + "amanager.v1.ItemParameterB\003\340A\001B\312\001\n\035com.g" + "oogle.ads.datamanager.v1B\rCartDataProtoP" - + "\001ZDgoogle.golang.org/genproto/googleapis" - + "/ads/datamanager/v1;datamanager\252\002\031Google" - + ".Ads.DataManager.V1\312\002\031Google\\Ads\\DataMan" - + "ager\\V1\352\002\034Google::Ads::DataManager::V1b\006" - + "proto3" + + "\001ZAcloud.google.com/go/datamanager/apiv1" + + "/datamanagerpb;datamanagerpb\252\002\031Google.Ad" + + "s.DataManager.V1\312\002\031Google\\Ads\\DataManage" + + "r\\V1\352\002\034Google::Ads::DataManager::V1b\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ConsentProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ConsentProto.java index a3099c4f36c3..f9efcbc3b6e1 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ConsentProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ConsentProto.java @@ -61,13 +61,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tion\030\002 \001(\0162(.google.ads.datamanager.v1.C" + "onsentStatusB\003\340A\001*X\n\rConsentStatus\022\036\n\032CO" + "NSENT_STATUS_UNSPECIFIED\020\000\022\023\n\017CONSENT_GR" - + "ANTED\020\001\022\022\n\016CONSENT_DENIED\020\002B\314\001\n\035com.goog" - + "le.ads.datamanager.v1B\014ConsentProtoP\001ZDg" - + "oogle.golang.org/genproto/googleapis/ads" - + "/datamanager/v1;datamanager\252\002\031Google.Ads" - + ".DataManager.V1\312\002\031Google\\Ads\\DataManager" - + "\\V1\352\002\034Google::Ads::DataManager::V1b\006prot" - + "o3" + + "ANTED\020\001\022\022\n\016CONSENT_DENIED\020\002B\311\001\n\035com.goog" + + "le.ads.datamanager.v1B\014ConsentProtoP\001ZAc" + + "loud.google.com/go/datamanager/apiv1/dat" + + "amanagerpb;datamanagerpb\252\002\031Google.Ads.Da" + + "taManager.V1\312\002\031Google\\Ads\\DataManager\\V1" + + "\352\002\034Google::Ads::DataManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DestinationProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DestinationProto.java index 64023f8c2d40..dcba72cabe42 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DestinationProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DestinationProto.java @@ -79,12 +79,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "uct\022\027\n\023PRODUCT_UNSPECIFIED\020\000\022\016\n\nGOOGLE_A" + "DS\020\001\022\031\n\025DISPLAY_VIDEO_PARTNER\020\002\022\034\n\030DISPL" + "AY_VIDEO_ADVERTISER\020\003\022\020\n\014DATA_PARTNER\020\004\032" - + "\002\030\001B\320\001\n\035com.google.ads.datamanager.v1B\020D" - + "estinationProtoP\001ZDgoogle.golang.org/gen" - + "proto/googleapis/ads/datamanager/v1;data" - + "manager\252\002\031Google.Ads.DataManager.V1\312\002\031Go" - + "ogle\\Ads\\DataManager\\V1\352\002\034Google::Ads::D" - + "ataManager::V1b\006proto3" + + "\002\030\001B\315\001\n\035com.google.ads.datamanager.v1B\020D" + + "estinationProtoP\001ZAcloud.google.com/go/d" + + "atamanager/apiv1/datamanagerpb;datamanag" + + "erpb\252\002\031Google.Ads.DataManager.V1\312\002\031Googl" + + "e\\Ads\\DataManager\\V1\352\002\034Google::Ads::Data" + + "Manager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoProto.java index d052b330b1ed..b6c5cf073868 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoProto.java @@ -57,12 +57,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "proto\022\031google.ads.datamanager.v1\032\037google" + "/api/field_behavior.proto\">\n\nDeviceInfo\022" + "\027\n\nuser_agent\030\001 \001(\tB\003\340A\001\022\027\n\nip_address\030\002" - + " \001(\tB\003\340A\001B\317\001\n\035com.google.ads.datamanager" - + ".v1B\017DeviceInfoProtoP\001ZDgoogle.golang.or" - + "g/genproto/googleapis/ads/datamanager/v1" - + ";datamanager\252\002\031Google.Ads.DataManager.V1" - + "\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Google::A" - + "ds::DataManager::V1b\006proto3" + + " \001(\tB\003\340A\001B\314\001\n\035com.google.ads.datamanager" + + ".v1B\017DeviceInfoProtoP\001ZAcloud.google.com" + + "/go/datamanager/apiv1/datamanagerpb;data" + + "managerpb\252\002\031Google.Ads.DataManager.V1\312\002\031" + + "Google\\Ads\\DataManager\\V1\352\002\034Google::Ads:" + + ":DataManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfoProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfoProto.java index 0d5374be2cd2..cc530e5c4306 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfoProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfoProto.java @@ -87,12 +87,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "encrypted_dek\030\004 \001(\tB\003\340A\002\";\n" + "\007KeyType\022\030\n" + "\024KEY_TYPE_UNSPECIFIED\020\000\022\026\n" - + "\022XCHACHA20_POLY1305\020\001B\323\001\n" - + "\035com.google.ads.datamanager.v1B\023EncryptionInfoProtoP\001ZDgoogle.golan" - + "g.org/genproto/googleapis/ads/datamanage" - + "r/v1;datamanager\252\002\031Google.Ads.DataManage" - + "r.V1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Googl" - + "e::Ads::DataManager::V1b\006proto3" + + "\022XCHACHA20_POLY1305\020\001B\320\001\n" + + "\035com.google.ads.datamanager.v1B\023EncryptionInfoProtoP\001ZAcloud.google" + + ".com/go/datamanager/apiv1/datamanagerpb;" + + "datamanagerpb\252\002\031Google.Ads.DataManager.V" + + "1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Google::" + + "Ads::DataManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorProto.java index da92d6f29499..7be2b5520d81 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorProto.java @@ -92,12 +92,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022INVALID_REQUEST_ID\0200\0224\n0MULTIPLE_DESTIN" + "ATIONS_FOR_GOOGLE_ANALYTICS_EVENT\0201\022\030\n\024F" + "IELD_VALUE_TOO_LONG\0202\022\025\n\021TOO_MANY_ELEMEN" - + "TS\0203B\312\001\n\035com.google.ads.datamanager.v1B\n" - + "ErrorProtoP\001ZDgoogle.golang.org/genproto" - + "/googleapis/ads/datamanager/v1;datamanag" - + "er\252\002\031Google.Ads.DataManager.V1\312\002\031Google\\" - + "Ads\\DataManager\\V1\352\002\034Google::Ads::DataMa" - + "nager::V1b\006proto3" + + "TS\0203B\307\001\n\035com.google.ads.datamanager.v1B\n" + + "ErrorProtoP\001ZAcloud.google.com/go/datama" + + "nager/apiv1/datamanagerpb;datamanagerpb\252" + + "\002\031Google.Ads.DataManager.V1\312\002\031Google\\Ads" + + "\\DataManager\\V1\352\002\034Google::Ads::DataManag" + + "er::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EventProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EventProto.java index dc2cb39e4850..92cc8222a784 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EventProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EventProto.java @@ -126,11 +126,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003APP\020\002\022\014\n" + "\010IN_STORE\020\003\022\t\n" + "\005PHONE\020\004\022\t\n" - + "\005OTHER\020\005B\312\001\n" + + "\005OTHER\020\005B\307\001\n" + "\035com.google.ads.datamanager.v1B\n" - + "EventProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/datamanager/v1;datamana" - + "ger\252\002\031Google.Ads.DataManager.V1\312\002\031Google" - + "\\Ads\\DataManager\\V1\352\002\034Google::Ads::DataManager::V1b\006proto3" + + "EventProtoP\001ZAcloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb" + + "\252\002\031Google.Ads.DataManager.V1\312\002\031Google\\Ad" + + "s\\DataManager\\V1\352\002\034Google::Ads::DataManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ExperimentalFieldProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ExperimentalFieldProto.java index 078ca71fe26e..b11adc9dce76 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ExperimentalFieldProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ExperimentalFieldProto.java @@ -57,12 +57,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_field.proto\022\031google.ads.datamanager.v1\032" + "\037google/api/field_behavior.proto\";\n\021Expe" + "rimentalField\022\022\n\005field\030\001 \001(\tB\003\340A\001\022\022\n\005val" - + "ue\030\002 \001(\tB\003\340A\001B\326\001\n\035com.google.ads.dataman" - + "ager.v1B\026ExperimentalFieldProtoP\001ZDgoogl" - + "e.golang.org/genproto/googleapis/ads/dat" - + "amanager/v1;datamanager\252\002\031Google.Ads.Dat" - + "aManager.V1\312\002\031Google\\Ads\\DataManager\\V1\352" - + "\002\034Google::Ads::DataManager::V1b\006proto3" + + "ue\030\002 \001(\tB\003\340A\001B\323\001\n\035com.google.ads.dataman" + + "ager.v1B\026ExperimentalFieldProtoP\001ZAcloud" + + ".google.com/go/datamanager/apiv1/dataman" + + "agerpb;datamanagerpb\252\002\031Google.Ads.DataMa" + + "nager.V1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034G" + + "oogle::Ads::DataManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GcpWrappedKeyInfo.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GcpWrappedKeyInfo.java index 35166aee4e68..af83469e1247 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GcpWrappedKeyInfo.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GcpWrappedKeyInfo.java @@ -332,7 +332,9 @@ public com.google.protobuf.ByteString getWipProviderBytes() { * Required. Google Cloud Platform [Cloud Key Management Service resource * ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the * format of - * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}". + * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` + * or + * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` *
          * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -359,7 +361,9 @@ public java.lang.String getKekUri() { * Required. Google Cloud Platform [Cloud Key Management Service resource * ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the * format of - * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}". + * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` + * or + * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` *
          * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1054,7 +1058,9 @@ public Builder setWipProviderBytes(com.google.protobuf.ByteString value) { * Required. Google Cloud Platform [Cloud Key Management Service resource * ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the * format of - * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}". + * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` + * or + * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` *
          * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1080,7 +1086,9 @@ public java.lang.String getKekUri() { * Required. Google Cloud Platform [Cloud Key Management Service resource * ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the * format of - * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}". + * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` + * or + * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` * * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1106,7 +1114,9 @@ public com.google.protobuf.ByteString getKekUriBytes() { * Required. Google Cloud Platform [Cloud Key Management Service resource * ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the * format of - * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}". + * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` + * or + * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` * * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1131,7 +1141,9 @@ public Builder setKekUri(java.lang.String value) { * Required. Google Cloud Platform [Cloud Key Management Service resource * ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the * format of - * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}". + * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` + * or + * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` * * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1152,7 +1164,9 @@ public Builder clearKekUri() { * Required. Google Cloud Platform [Cloud Key Management Service resource * ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the * format of - * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}". + * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` + * or + * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` * * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GcpWrappedKeyInfoOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GcpWrappedKeyInfoOrBuilder.java index 841149635d5d..6c24d9acdf2b 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GcpWrappedKeyInfoOrBuilder.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GcpWrappedKeyInfoOrBuilder.java @@ -93,7 +93,9 @@ public interface GcpWrappedKeyInfoOrBuilder * Required. Google Cloud Platform [Cloud Key Management Service resource * ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the * format of - * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}". + * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` + * or + * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` * * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -109,7 +111,9 @@ public interface GcpWrappedKeyInfoOrBuilder * Required. Google Cloud Platform [Cloud Key Management Service resource * ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the * format of - * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}". + * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` + * or + * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` * * * string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceProto.java index 8d1d8e4fec73..aaaf7d0a7d3e 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceProto.java @@ -151,13 +151,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "datamanager.v1.RetrieveRequestStatusResp" + "onse\"\"\202\323\344\223\002\034\022\032/v1/requestStatus:retrieve" + "\032K\312A\032datamanager.googleapis.com\322A+https:" - + "//www.googleapis.com/auth/datamanagerB\325\001" + + "//www.googleapis.com/auth/datamanagerB\322\001" + "\n\035com.google.ads.datamanager.v1B\025Ingesti" - + "onServiceProtoP\001ZDgoogle.golang.org/genp" - + "roto/googleapis/ads/datamanager/v1;datam" - + "anager\252\002\031Google.Ads.DataManager.V1\312\002\031Goo" - + "gle\\Ads\\DataManager\\V1\352\002\034Google::Ads::Da" - + "taManager::V1b\006proto3" + + "onServiceProtoP\001ZAcloud.google.com/go/da" + + "tamanager/apiv1/datamanagerpb;datamanage" + + "rpb\252\002\031Google.Ads.DataManager.V1\312\002\031Google" + + "\\Ads\\DataManager\\V1\352\002\034Google::Ads::DataM" + + "anager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ItemParameterProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ItemParameterProto.java index dff9b0f78dda..86101d19dc2c 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ItemParameterProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ItemParameterProto.java @@ -57,12 +57,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "er.proto\022\031google.ads.datamanager.v1\032\037goo" + "gle/api/field_behavior.proto\"@\n\rItemPara" + "meter\022\033\n\016parameter_name\030\001 \001(\tB\003\340A\002\022\022\n\005va" - + "lue\030\002 \001(\tB\003\340A\002B\322\001\n\035com.google.ads.datama" - + "nager.v1B\022ItemParameterProtoP\001ZDgoogle.g" - + "olang.org/genproto/googleapis/ads/datama" - + "nager/v1;datamanager\252\002\031Google.Ads.DataMa" - + "nager.V1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034G" - + "oogle::Ads::DataManager::V1b\006proto3" + + "lue\030\002 \001(\tB\003\340A\002B\317\001\n\035com.google.ads.datama" + + "nager.v1B\022ItemParameterProtoP\001ZAcloud.go" + + "ogle.com/go/datamanager/apiv1/datamanage" + + "rpb;datamanagerpb\252\002\031Google.Ads.DataManag" + + "er.V1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Goog" + + "le::Ads::DataManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/MatchRateProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/MatchRateProto.java index 3a8c335cd94a..c1c8a89fc981 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/MatchRateProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/MatchRateProto.java @@ -59,12 +59,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "TCH_RATE_RANGE_61_TO_70\020\007\022\035\n\031MATCH_RATE_" + "RANGE_71_TO_80\020\010\022\035\n\031MATCH_RATE_RANGE_81_" + "TO_90\020\t\022\036\n\032MATCH_RATE_RANGE_91_TO_100\020\nB" - + "\316\001\n\035com.google.ads.datamanager.v1B\016Match" - + "RateProtoP\001ZDgoogle.golang.org/genproto/" - + "googleapis/ads/datamanager/v1;datamanage" - + "r\252\002\031Google.Ads.DataManager.V1\312\002\031Google\\A" - + "ds\\DataManager\\V1\352\002\034Google::Ads::DataMan" - + "ager::V1b\006proto3" + + "\313\001\n\035com.google.ads.datamanager.v1B\016Match" + + "RateProtoP\001ZAcloud.google.com/go/dataman" + + "ager/apiv1/datamanagerpb;datamanagerpb\252\002" + + "\031Google.Ads.DataManager.V1\312\002\031Google\\Ads\\" + + "DataManager\\V1\352\002\034Google::Ads::DataManage" + + "r::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProcessingErrorsProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProcessingErrorsProto.java index ed757a546550..ec5c38d9a3b9 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProcessingErrorsProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProcessingErrorsProto.java @@ -124,12 +124,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "SER_IDENTIFIER_DECRYPTION_ERROR\020\007\022,\n(PRO" + "CESSING_WARNING_REASON_INTERNAL_ERROR\020\010\022" + "-\n)PROCESSING_WARNING_REASON_AWS_AUTH_FA" - + "ILED\020\tB\325\001\n\035com.google.ads.datamanager.v1" - + "B\025ProcessingErrorsProtoP\001ZDgoogle.golang" - + ".org/genproto/googleapis/ads/datamanager" - + "/v1;datamanager\252\002\031Google.Ads.DataManager" - + ".V1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Google" - + "::Ads::DataManager::V1b\006proto3" + + "ILED\020\tB\322\001\n\035com.google.ads.datamanager.v1" + + "B\025ProcessingErrorsProtoP\001ZAcloud.google." + + "com/go/datamanager/apiv1/datamanagerpb;d" + + "atamanagerpb\252\002\031Google.Ads.DataManager.V1" + + "\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Google::A" + + "ds::DataManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RequestStatusPerDestinationProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RequestStatusPerDestinationProto.java index 2c6160e4b327..708ae83dda00 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RequestStatusPerDestinationProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RequestStatusPerDestinationProto.java @@ -147,13 +147,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "cord_count\030\001 \001(\003\022\025\n\rpair_id_count\030\002 \001(\003\"" + "i\n\rRequestStatus\022\032\n\026REQUEST_STATUS_UNKNO" + "WN\020\000\022\013\n\007SUCCESS\020\001\022\016\n\nPROCESSING\020\002\022\n\n\006FAI" - + "LED\020\003\022\023\n\017PARTIAL_SUCCESS\020\004B\010\n\006statusB\340\001\n" + + "LED\020\003\022\023\n\017PARTIAL_SUCCESS\020\004B\010\n\006statusB\335\001\n" + "\035com.google.ads.datamanager.v1B RequestS" - + "tatusPerDestinationProtoP\001ZDgoogle.golan" - + "g.org/genproto/googleapis/ads/datamanage" - + "r/v1;datamanager\252\002\031Google.Ads.DataManage" - + "r.V1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Googl" - + "e::Ads::DataManager::V1b\006proto3" + + "tatusPerDestinationProtoP\001ZAcloud.google" + + ".com/go/datamanager/apiv1/datamanagerpb;" + + "datamanagerpb\252\002\031Google.Ads.DataManager.V" + + "1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Google::" + + "Ads::DataManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/TermsOfServiceProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/TermsOfServiceProto.java index f5665198d57f..0d30a1a79b02 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/TermsOfServiceProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/TermsOfServiceProto.java @@ -61,12 +61,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "r.v1.TermsOfServiceStatusB\003\340A\001*[\n\024TermsO" + "fServiceStatus\022\'\n#TERMS_OF_SERVICE_STATU" + "S_UNSPECIFIED\020\000\022\014\n\010ACCEPTED\020\001\022\014\n\010REJECTE" - + "D\020\002B\323\001\n\035com.google.ads.datamanager.v1B\023T" - + "ermsOfServiceProtoP\001ZDgoogle.golang.org/" - + "genproto/googleapis/ads/datamanager/v1;d" - + "atamanager\252\002\031Google.Ads.DataManager.V1\312\002" - + "\031Google\\Ads\\DataManager\\V1\352\002\034Google::Ads" - + "::DataManager::V1b\006proto3" + + "D\020\002B\320\001\n\035com.google.ads.datamanager.v1B\023T" + + "ermsOfServiceProtoP\001ZAcloud.google.com/g" + + "o/datamanager/apiv1/datamanagerpb;datama" + + "nagerpb\252\002\031Google.Ads.DataManager.V1\312\002\031Go" + + "ogle\\Ads\\DataManager\\V1\352\002\034Google::Ads::D" + + "ataManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserDataProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserDataProto.java index ca0ccfac4aa1..e672e98b0fc1 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserDataProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserDataProto.java @@ -76,11 +76,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "given_name\030\001 \001(\tB\003\340A\002\022\030\n" + "\013family_name\030\002 \001(\tB\003\340A\002\022\030\n" + "\013region_code\030\003 \001(\tB\003\340A\002\022\030\n" - + "\013postal_code\030\004 \001(\tB\003\340A\002B\315\001\n" + + "\013postal_code\030\004 \001(\tB\003\340A\002B\312\001\n" + "\035com.google.ads.datamanager.v1B\r" - + "UserDataProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/datamanager/v1;da" - + "tamanager\252\002\031Google.Ads.DataManager.V1\312\002\031" - + "Google\\Ads\\DataManager\\V1\352\002\034Google::Ads::DataManager::V1b\006proto3" + + "UserDataProtoP\001ZAcloud.google.com/go/datamanager/apiv1/datamanagerpb;dataman" + + "agerpb\252\002\031Google.Ads.DataManager.V1\312\002\031Goo" + + "gle\\Ads\\DataManager\\V1\352\002\034Google::Ads::DataManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserPropertiesProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserPropertiesProto.java index 775afcf48623..fcb0534cee35 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserPropertiesProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserPropertiesProto.java @@ -72,12 +72,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "W\020\001\022\r\n\tRETURNING\020\002\022\r\n\tREENGAGED\020\003*[\n\023Cus" + "tomerValueBucket\022%\n!CUSTOMER_VALUE_BUCKE" + "T_UNSPECIFIED\020\000\022\007\n\003LOW\020\001\022\n\n\006MEDIUM\020\002\022\010\n\004" - + "HIGH\020\003B\323\001\n\035com.google.ads.datamanager.v1" - + "B\023UserPropertiesProtoP\001ZDgoogle.golang.o" - + "rg/genproto/googleapis/ads/datamanager/v" - + "1;datamanager\252\002\031Google.Ads.DataManager.V" - + "1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Google::" - + "Ads::DataManager::V1b\006proto3" + + "HIGH\020\003B\320\001\n\035com.google.ads.datamanager.v1" + + "B\023UserPropertiesProtoP\001ZAcloud.google.co" + + "m/go/datamanager/apiv1/datamanagerpb;dat" + + "amanagerpb\252\002\031Google.Ads.DataManager.V1\312\002" + + "\031Google\\Ads\\DataManager\\V1\352\002\034Google::Ads" + + "::DataManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/audience.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/audience.proto index 9940294a00e7..8bbda8751542 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/audience.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/audience.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,7 +21,7 @@ import "google/ads/datamanager/v1/user_data.proto"; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Ads.DataManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; option java_multiple_files = true; option java_outer_classname = "AudienceProto"; option java_package = "com.google.ads.datamanager.v1"; diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/cart_data.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/cart_data.proto index 26c483a00395..5ddd8d9ba6fe 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/cart_data.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/cart_data.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,7 +20,7 @@ import "google/ads/datamanager/v1/item_parameter.proto"; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Ads.DataManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; option java_multiple_files = true; option java_outer_classname = "CartDataProto"; option java_package = "com.google.ads.datamanager.v1"; diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/consent.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/consent.proto index 9e7cad217b67..4fec4a414c52 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/consent.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/consent.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,7 +19,7 @@ package google.ads.datamanager.v1; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Ads.DataManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; option java_multiple_files = true; option java_outer_classname = "ConsentProto"; option java_package = "com.google.ads.datamanager.v1"; diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/destination.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/destination.proto index 41c41ea34aab..5cdb43a689e0 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/destination.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/destination.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,7 +19,7 @@ package google.ads.datamanager.v1; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Ads.DataManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; option java_multiple_files = true; option java_outer_classname = "DestinationProto"; option java_package = "com.google.ads.datamanager.v1"; diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/device_info.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/device_info.proto index ed59798b737f..702c6022c03b 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/device_info.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/device_info.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,7 +19,7 @@ package google.ads.datamanager.v1; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Ads.DataManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; option java_multiple_files = true; option java_outer_classname = "DeviceInfoProto"; option java_package = "com.google.ads.datamanager.v1"; diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/encryption_info.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/encryption_info.proto index 421aab420127..365e5cd12e05 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/encryption_info.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/encryption_info.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,7 +19,7 @@ package google.ads.datamanager.v1; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Ads.DataManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; option java_multiple_files = true; option java_outer_classname = "EncryptionInfoProto"; option java_package = "com.google.ads.datamanager.v1"; @@ -62,7 +62,9 @@ message GcpWrappedKeyInfo { // Required. Google Cloud Platform [Cloud Key Management Service resource // ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the // format of - // "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}". + // `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` + // or + // `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` string kek_uri = 3 [(google.api.field_behavior) = REQUIRED]; // Required. The base64 encoded encrypted data encryption key. @@ -85,11 +87,12 @@ message AwsWrappedKeyInfo { // Required. The Amazon Resource Name of the IAM Role to assume for KMS // decryption access. Should be in the format of - // "arn:{partition}:iam::{account_id}:role/{role_name}" + // `arn:{partition}:iam::{account_id}:role/{role_name}` string role_arn = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in - // the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}" + // the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or + // `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}` string kek_uri = 3 [(google.api.field_behavior) = REQUIRED]; // Required. The base64 encoded encrypted data encryption key. diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/error.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/error.proto index 28f9d22ee3ab..44c3ed5e79ee 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/error.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/error.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,7 +17,7 @@ syntax = "proto3"; package google.ads.datamanager.v1; option csharp_namespace = "Google.Ads.DataManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; option java_multiple_files = true; option java_outer_classname = "ErrorProto"; option java_package = "com.google.ads.datamanager.v1"; diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/event.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/event.proto index c24be7e56d0b..213af3f461c3 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/event.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/event.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ import "google/api/field_behavior.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Ads.DataManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; option java_multiple_files = true; option java_outer_classname = "EventProto"; option java_package = "com.google.ads.datamanager.v1"; diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/experimental_field.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/experimental_field.proto index 48ca08b28981..da9eb1063984 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/experimental_field.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/experimental_field.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,7 +19,7 @@ package google.ads.datamanager.v1; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Ads.DataManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; option java_multiple_files = true; option java_outer_classname = "ExperimentalFieldProto"; option java_package = "com.google.ads.datamanager.v1"; diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ingestion_service.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ingestion_service.proto index dd6066117c3b..d388f7691b90 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ingestion_service.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ingestion_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -28,7 +28,7 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Ads.DataManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; option java_multiple_files = true; option java_outer_classname = "IngestionServiceProto"; option java_package = "com.google.ads.datamanager.v1"; diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/item_parameter.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/item_parameter.proto index 711ef464384d..59ae9e3e2337 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/item_parameter.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/item_parameter.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,7 +19,7 @@ package google.ads.datamanager.v1; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Ads.DataManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; option java_multiple_files = true; option java_outer_classname = "ItemParameterProto"; option java_package = "com.google.ads.datamanager.v1"; diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/match_rate.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/match_rate.proto index f6309d2e3864..1fdfc7ed9ef9 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/match_rate.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/match_rate.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,7 +17,7 @@ syntax = "proto3"; package google.ads.datamanager.v1; option csharp_namespace = "Google.Ads.DataManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; option java_multiple_files = true; option java_outer_classname = "MatchRateProto"; option java_package = "com.google.ads.datamanager.v1"; diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/processing_errors.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/processing_errors.proto index 1a28815b7a56..c2d77837de5a 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/processing_errors.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/processing_errors.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,7 +17,7 @@ syntax = "proto3"; package google.ads.datamanager.v1; option csharp_namespace = "Google.Ads.DataManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; option java_multiple_files = true; option java_outer_classname = "ProcessingErrorsProto"; option java_package = "com.google.ads.datamanager.v1"; diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/request_status_per_destination.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/request_status_per_destination.proto index bac562d00988..739851242af8 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/request_status_per_destination.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/request_status_per_destination.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,7 +21,7 @@ import "google/ads/datamanager/v1/match_rate.proto"; import "google/ads/datamanager/v1/processing_errors.proto"; option csharp_namespace = "Google.Ads.DataManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; option java_multiple_files = true; option java_outer_classname = "RequestStatusPerDestinationProto"; option java_package = "com.google.ads.datamanager.v1"; diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/terms_of_service.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/terms_of_service.proto index 71a6b4ce8994..c4231dfa5aa1 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/terms_of_service.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/terms_of_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,7 +19,7 @@ package google.ads.datamanager.v1; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Ads.DataManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; option java_multiple_files = true; option java_outer_classname = "TermsOfServiceProto"; option java_package = "com.google.ads.datamanager.v1"; diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_data.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_data.proto index 649f9f41d150..887c02b30e97 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_data.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_data.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,7 +19,7 @@ package google.ads.datamanager.v1; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Ads.DataManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; option java_multiple_files = true; option java_outer_classname = "UserDataProto"; option java_package = "com.google.ads.datamanager.v1"; diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_properties.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_properties.proto index 0a28a561d20b..75c59e2b0309 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_properties.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_properties.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,7 +19,7 @@ package google.ads.datamanager.v1; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.Ads.DataManager.V1"; -option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; option java_multiple_files = true; option java_outer_classname = "UserPropertiesProto"; option java_package = "com.google.ads.datamanager.v1"; diff --git a/java-dataplex/README.md b/java-dataplex/README.md index 3e34de47b11c..173cc3b406aa 100644 --- a/java-dataplex/README.md +++ b/java-dataplex/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataplex - 1.80.0 + 1.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataplex:1.80.0' +implementation 'com.google.cloud:google-cloud-dataplex:1.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.81.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataplex/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataplex.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataplex/1.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataplex/1.81.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataplex/google-cloud-dataplex-bom/pom.xml b/java-dataplex/google-cloud-dataplex-bom/pom.xml index c3485eaf2bd2..1437b279d0bd 100644 --- a/java-dataplex/google-cloud-dataplex-bom/pom.xml +++ b/java-dataplex/google-cloud-dataplex-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dataplex-bom - 1.82.0-SNAPSHOT + 1.83.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-dataplex - 1.82.0-SNAPSHOT + 1.83.0 com.google.api.grpc grpc-google-cloud-dataplex-v1 - 1.82.0-SNAPSHOT + 1.83.0 com.google.api.grpc proto-google-cloud-dataplex-v1 - 1.82.0-SNAPSHOT + 1.83.0
          diff --git a/java-dataplex/google-cloud-dataplex/pom.xml b/java-dataplex/google-cloud-dataplex/pom.xml index 99fbf6bac1fd..8c42c88f667c 100644 --- a/java-dataplex/google-cloud-dataplex/pom.xml +++ b/java-dataplex/google-cloud-dataplex/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dataplex - 1.82.0-SNAPSHOT + 1.83.0 jar Google Cloud Dataplex Cloud Dataplex provides intelligent data fabric that enables organizations to centrally manage, monitor, and govern their data across data lakes, data warehouses, and data marts with consistent controls, providing access to trusted data and powering analytics at scale. com.google.cloud google-cloud-dataplex-parent - 1.82.0-SNAPSHOT + 1.83.0 google-cloud-dataplex diff --git a/java-dataplex/grpc-google-cloud-dataplex-v1/pom.xml b/java-dataplex/grpc-google-cloud-dataplex-v1/pom.xml index 152bb8c82cd0..61d6fac29334 100644 --- a/java-dataplex/grpc-google-cloud-dataplex-v1/pom.xml +++ b/java-dataplex/grpc-google-cloud-dataplex-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataplex-v1 - 1.82.0-SNAPSHOT + 1.83.0 grpc-google-cloud-dataplex-v1 GRPC library for google-cloud-dataplex com.google.cloud google-cloud-dataplex-parent - 1.82.0-SNAPSHOT + 1.83.0 diff --git a/java-dataplex/pom.xml b/java-dataplex/pom.xml index 43548f9ae7d3..90ad70a2d7dc 100644 --- a/java-dataplex/pom.xml +++ b/java-dataplex/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataplex-parent pom - 1.82.0-SNAPSHOT + 1.83.0 Google Cloud Dataplex Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-dataplex - 1.82.0-SNAPSHOT + 1.83.0 com.google.api.grpc grpc-google-cloud-dataplex-v1 - 1.82.0-SNAPSHOT + 1.83.0 com.google.api.grpc proto-google-cloud-dataplex-v1 - 1.82.0-SNAPSHOT + 1.83.0 diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/pom.xml b/java-dataplex/proto-google-cloud-dataplex-v1/pom.xml index 77619c806b2f..99e4fcd9e57f 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/pom.xml +++ b/java-dataplex/proto-google-cloud-dataplex-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataplex-v1 - 1.82.0-SNAPSHOT + 1.83.0 proto-google-cloud-dataplex-v1 Proto library for google-cloud-dataplex com.google.cloud google-cloud-dataplex-parent - 1.82.0-SNAPSHOT + 1.83.0 diff --git a/java-dataproc-metastore/README.md b/java-dataproc-metastore/README.md index db7400318cfb..010d2375cdf5 100644 --- a/java-dataproc-metastore/README.md +++ b/java-dataproc-metastore/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc-metastore - 2.83.0 + 2.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc-metastore:2.83.0' +implementation 'com.google.cloud:google-cloud-dataproc-metastore:2.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc-metastore" % "2.83.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc-metastore" % "2.84.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataproc-metastore/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataproc-metastore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc-metastore/2.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc-metastore/2.84.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore-bom/pom.xml b/java-dataproc-metastore/google-cloud-dataproc-metastore-bom/pom.xml index a970d18bffcb..5f18fb52a7a8 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore-bom/pom.xml +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dataproc-metastore-bom - 2.85.0-SNAPSHOT + 2.86.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.cloud google-cloud-dataproc-metastore - 2.85.0-SNAPSHOT + 2.86.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1beta - 0.89.0-SNAPSHOT + 0.90.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1alpha - 0.89.0-SNAPSHOT + 0.90.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1 - 2.85.0-SNAPSHOT + 2.86.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1beta - 0.89.0-SNAPSHOT + 0.90.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1alpha - 0.89.0-SNAPSHOT + 0.90.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1 - 2.85.0-SNAPSHOT + 2.86.0 diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/pom.xml b/java-dataproc-metastore/google-cloud-dataproc-metastore/pom.xml index bb50dde75c82..f5c04ecd77e3 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/pom.xml +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dataproc-metastore - 2.85.0-SNAPSHOT + 2.86.0 jar Google Dataproc Metastore is a fully managed, highly available, autoscaled, autohealing, OSS-native metastore service that greatly simplifies technical metadata management. Dataproc Metastore service is based on Apache Hive metastore and serves as a critical component towards enterprise data lakes. com.google.cloud google-cloud-dataproc-metastore-parent - 2.85.0-SNAPSHOT + 2.86.0 google-cloud-dataproc-metastore diff --git a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1/pom.xml b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1/pom.xml index 1ebf184d3001..3edfcaa46803 100644 --- a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1/pom.xml +++ b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1 - 2.85.0-SNAPSHOT + 2.86.0 grpc-google-cloud-dataproc-metastore-v1 GRPC library for google-cloud-dataproc-metastore com.google.cloud google-cloud-dataproc-metastore-parent - 2.85.0-SNAPSHOT + 2.86.0 diff --git a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1alpha/pom.xml b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1alpha/pom.xml index 3af5ab6cc69c..a5d2535eaf3e 100644 --- a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1alpha/pom.xml +++ b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1alpha - 0.89.0-SNAPSHOT + 0.90.0 grpc-google-cloud-dataproc-metastore-v1alpha GRPC library for google-cloud-dataproc-metastore com.google.cloud google-cloud-dataproc-metastore-parent - 2.85.0-SNAPSHOT + 2.86.0 diff --git a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1beta/pom.xml b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1beta/pom.xml index 5dc3272aaeeb..1168546e0cfa 100644 --- a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1beta/pom.xml +++ b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1beta - 0.89.0-SNAPSHOT + 0.90.0 grpc-google-cloud-dataproc-metastore-v1beta GRPC library for google-cloud-dataproc-metastore com.google.cloud google-cloud-dataproc-metastore-parent - 2.85.0-SNAPSHOT + 2.86.0 diff --git a/java-dataproc-metastore/pom.xml b/java-dataproc-metastore/pom.xml index ab63536db2c3..360c8dec29b7 100644 --- a/java-dataproc-metastore/pom.xml +++ b/java-dataproc-metastore/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-metastore-parent pom - 2.85.0-SNAPSHOT + 2.86.0 Google Dataproc Metastore Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-dataproc-metastore - 2.85.0-SNAPSHOT + 2.86.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1beta - 0.89.0-SNAPSHOT + 0.90.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1alpha - 0.89.0-SNAPSHOT + 0.90.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1 - 2.85.0-SNAPSHOT + 2.86.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1beta - 0.89.0-SNAPSHOT + 0.90.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1alpha - 0.89.0-SNAPSHOT + 0.90.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1 - 2.85.0-SNAPSHOT + 2.86.0 diff --git a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/pom.xml b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/pom.xml index 276b14969f29..3597dc83f841 100644 --- a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/pom.xml +++ b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1 - 2.85.0-SNAPSHOT + 2.86.0 proto-google-cloud-dataproc-metastore-v1 Proto library for google-cloud-dataproc-metastore com.google.cloud google-cloud-dataproc-metastore-parent - 2.85.0-SNAPSHOT + 2.86.0 diff --git a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/pom.xml b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/pom.xml index 9f023f5b2287..e2b41e9e7ad1 100644 --- a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/pom.xml +++ b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1alpha - 0.89.0-SNAPSHOT + 0.90.0 proto-google-cloud-dataproc-metastore-v1alpha Proto library for google-cloud-dataproc-metastore com.google.cloud google-cloud-dataproc-metastore-parent - 2.85.0-SNAPSHOT + 2.86.0 diff --git a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/pom.xml b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/pom.xml index c183630b013d..0c9bdd48e49f 100644 --- a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/pom.xml +++ b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1beta - 0.89.0-SNAPSHOT + 0.90.0 proto-google-cloud-dataproc-metastore-v1beta Proto library for google-cloud-dataproc-metastore com.google.cloud google-cloud-dataproc-metastore-parent - 2.85.0-SNAPSHOT + 2.86.0 diff --git a/java-dataproc/README.md b/java-dataproc/README.md index 7871fd83c558..d4be2b4221d5 100644 --- a/java-dataproc/README.md +++ b/java-dataproc/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 4.79.0 + 4.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:4.79.0' +implementation 'com.google.cloud:google-cloud-dataproc:4.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.81.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataproc/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataproc.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc/4.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc/4.81.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataproc/google-cloud-dataproc-bom/pom.xml b/java-dataproc/google-cloud-dataproc-bom/pom.xml index a20e496212de..0fb98f3e87e1 100644 --- a/java-dataproc/google-cloud-dataproc-bom/pom.xml +++ b/java-dataproc/google-cloud-dataproc-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 4.81.0-SNAPSHOT + 4.82.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-dataproc - 4.81.0-SNAPSHOT + 4.82.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.81.0-SNAPSHOT + 4.82.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.81.0-SNAPSHOT + 4.82.0 diff --git a/java-dataproc/google-cloud-dataproc/pom.xml b/java-dataproc/google-cloud-dataproc/pom.xml index d6c31041a658..f5895cd8b279 100644 --- a/java-dataproc/google-cloud-dataproc/pom.xml +++ b/java-dataproc/google-cloud-dataproc/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 4.81.0-SNAPSHOT + 4.82.0 jar Google Cloud Dataproc Java idiomatic client for Google Cloud Dataproc com.google.cloud google-cloud-dataproc-parent - 4.81.0-SNAPSHOT + 4.82.0 google-cloud-dataproc diff --git a/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json b/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json index f5884806a07e..cfce7b2b6ee3 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json +++ b/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json @@ -494,6 +494,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataproc.v1.AutoscalingPolicy$ClusterType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataproc.v1.AutotuningConfig", "queryAllDeclaredConstructors": true, @@ -728,6 +737,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataproc.v1.ClusterConfig$ClusterType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataproc.v1.ClusterMetrics", "queryAllDeclaredConstructors": true, diff --git a/java-dataproc/grpc-google-cloud-dataproc-v1/pom.xml b/java-dataproc/grpc-google-cloud-dataproc-v1/pom.xml index 82615dae65c4..75a0d7c01eb7 100644 --- a/java-dataproc/grpc-google-cloud-dataproc-v1/pom.xml +++ b/java-dataproc/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.81.0-SNAPSHOT + 4.82.0 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.81.0-SNAPSHOT + 4.82.0 diff --git a/java-dataproc/pom.xml b/java-dataproc/pom.xml index 5874eaaaedba..91f6f2d4da8c 100644 --- a/java-dataproc/pom.xml +++ b/java-dataproc/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 4.81.0-SNAPSHOT + 4.82.0 Google Cloud Dataproc Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.81.0-SNAPSHOT + 4.82.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.81.0-SNAPSHOT + 4.82.0 com.google.cloud google-cloud-dataproc - 4.81.0-SNAPSHOT + 4.82.0 diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/pom.xml b/java-dataproc/proto-google-cloud-dataproc-v1/pom.xml index 7d2216adf290..7e2416b845d3 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/pom.xml +++ b/java-dataproc/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.81.0-SNAPSHOT + 4.82.0 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.81.0-SNAPSHOT + 4.82.0 diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPoliciesProto.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPoliciesProto.java index 9feb26437105..529ff4e37f23 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPoliciesProto.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPoliciesProto.java @@ -99,7 +99,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034google/api/annotations.proto\032\027google/ap" + "i/client.proto\032\037google/api/field_behavio" + "r.proto\032\031google/api/resource.proto\032\036goog" - + "le/protobuf/duration.proto\032\033google/protobuf/empty.proto\"\245\005\n" + + "le/protobuf/duration.proto\032\033google/protobuf/empty.proto\"\304\006\n" + "\021AutoscalingPolicy\022\n\n" + "\002id\030\001 \001(\t\022\021\n" + "\004name\030\002 \001(\tB\003\340A\003\022S\n" @@ -110,17 +110,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027secondary_worker_config\030\005 \001(\0132>" + ".google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigB\003\340A\001\022L\n" + "\006labels\030\006 " - + "\003(\01327.google.cloud.dataproc.v1.AutoscalingPolicy.LabelsEntryB\003\340A\001\032-\n" + + "\003(\01327.google.cloud.dataproc.v1.AutoscalingPolicy.LabelsEntryB\003\340A\001\022R\n" + + "\014cluster_type\030\007" + + " \001(\01627.google.cloud.dataproc.v1.AutoscalingPolicy.ClusterTypeB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001:\317\001\352A\313\001\n" - + ")dataproc.googleapis.com/AutoscalingPolicy\022Pprojects/{project}/locations/{locati" - + "on}/autoscalingPolicies/{autoscaling_policy}\022Lprojects/{project}/regions/{region" - + "}/autoscalingPolicies/{autoscaling_policy}B\013\n" + + "\005value\030\002 \001(\t:\0028\001\"I\n" + + "\013ClusterType\022\034\n" + + "\030CLUSTER_TYPE_UNSPECIFIED\020\000\022\014\n" + + "\010STANDARD\020\001\022\016\n\n" + + "ZERO_SCALE\020\002:\317\001\352A\313\001\n" + + ")dataproc.googleapis.com/AutoscalingPolicy\022Pprojects/{project}/locations/{locatio" + + "n}/autoscalingPolicies/{autoscaling_policy}\022Lprojects/{project}/regions/{region}" + + "/autoscalingPolicies/{autoscaling_policy}B\013\n" + "\talgorithm\"\260\001\n" + "\031BasicAutoscalingAlgorithm\022P\n" - + "\013yarn_config\030\001 \001(\01324.google.clou" - + "d.dataproc.v1.BasicYarnAutoscalingConfigB\003\340A\002H\000\0227\n" + + "\013yarn_config\030\001 \001(\01324.google.cloud" + + ".dataproc.v1.BasicYarnAutoscalingConfigB\003\340A\002H\000\0227\n" + "\017cooldown_period\030\002" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001B\010\n" + "\006config\"\371\001\n" @@ -138,56 +144,56 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036CreateAutoscalingPolicyRequest\022A\n" + "\006parent\030\001 \001(" + "\tB1\340A\002\372A+\022)dataproc.googleapis.com/AutoscalingPolicy\022@\n" - + "\006policy\030\002 \001(" - + "\0132+.google.cloud.dataproc.v1.AutoscalingPolicyB\003\340A\002\"^\n" + + "\006policy\030\002 \001(\013" + + "2+.google.cloud.dataproc.v1.AutoscalingPolicyB\003\340A\002\"^\n" + "\033GetAutoscalingPolicyRequest\022?\n" + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + ")dataproc.googleapis.com/AutoscalingPolicy\"b\n" + "\036UpdateAutoscalingPolicyRequest\022@\n" - + "\006policy\030\001 \001(\0132+." - + "google.cloud.dataproc.v1.AutoscalingPolicyB\003\340A\002\"a\n" + + "\006policy\030\001 \001(\0132+.g" + + "oogle.cloud.dataproc.v1.AutoscalingPolicyB\003\340A\002\"a\n" + "\036DeleteAutoscalingPolicyRequest\022?\n" + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + ")dataproc.googleapis.com/AutoscalingPolicy\"\224\001\n" + "\036ListAutoscalingPoliciesRequest\022A\n" - + "\006parent\030\001 \001(\tB1\340" - + "A\002\372A+\022)dataproc.googleapis.com/AutoscalingPolicy\022\026\n" + + "\006parent\030\001 \001(\tB1\340A" + + "\002\372A+\022)dataproc.googleapis.com/AutoscalingPolicy\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"\203\001\n" + "\037ListAutoscalingPoliciesResponse\022B\n" - + "\010policies\030\001 \003(\0132+.google" - + ".cloud.dataproc.v1.AutoscalingPolicyB\003\340A\003\022\034\n" + + "\010policies\030\001 \003(\0132+.google." + + "cloud.dataproc.v1.AutoscalingPolicyB\003\340A\003\022\034\n" + "\017next_page_token\030\002 \001(\tB\003\340A\0032\256\013\n" + "\030AutoscalingPolicyService\022\234\002\n" - + "\027CreateAutoscalingPolicy\0228.google.cloud.dataproc.v1.Crea" - + "teAutoscalingPolicyRequest\032+.google.cloud.dataproc.v1.AutoscalingPolicy\"\231\001\332A\r" - + "parent,policy\202\323\344\223\002\202\001\"7/v1/{parent=projects/" - + "*/locations/*}/autoscalingPolicies:\006poli" - + "cyZ?\"5/v1/{parent=projects/*/regions/*}/autoscalingPolicies:\006policy\022\243\002\n" - + "\027UpdateAutoscalingPolicy\0228.google.cloud.dataproc." - + "v1.UpdateAutoscalingPolicyRequest\032+.goog" - + "le.cloud.dataproc.v1.AutoscalingPolicy\"\240" - + "\001\332A\006policy\202\323\344\223\002\220\001\032>/v1/{policy.name=proj" - + "ects/*/locations/*/autoscalingPolicies/*}:\006policyZF\032/v1/{policy.name=proje" + + "cts/*/locations/*/autoscalingPolicies/*}:\006policyZF\032 builde private AutoscalingPolicy() { id_ = ""; name_ = ""; + clusterType_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -83,6 +84,178 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder.class); } + /** + * + * + *
          +   * The type of the clusters for which this autoscaling policy is to be
          +   * configured.
          +   * 
          + * + * Protobuf enum {@code google.cloud.dataproc.v1.AutoscalingPolicy.ClusterType} + */ + public enum ClusterType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * Not set.
          +     * 
          + * + * CLUSTER_TYPE_UNSPECIFIED = 0; + */ + CLUSTER_TYPE_UNSPECIFIED(0), + /** + * + * + *
          +     * Standard dataproc cluster with a minimum of two primary workers.
          +     * 
          + * + * STANDARD = 1; + */ + STANDARD(1), + /** + * + * + *
          +     * Clusters that can use only secondary workers and be scaled down to zero
          +     * secondary worker nodes.
          +     * 
          + * + * ZERO_SCALE = 2; + */ + ZERO_SCALE(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ClusterType"); + } + + /** + * + * + *
          +     * Not set.
          +     * 
          + * + * CLUSTER_TYPE_UNSPECIFIED = 0; + */ + public static final int CLUSTER_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
          +     * Standard dataproc cluster with a minimum of two primary workers.
          +     * 
          + * + * STANDARD = 1; + */ + public static final int STANDARD_VALUE = 1; + + /** + * + * + *
          +     * Clusters that can use only secondary workers and be scaled down to zero
          +     * secondary worker nodes.
          +     * 
          + * + * ZERO_SCALE = 2; + */ + public static final int ZERO_SCALE_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ClusterType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ClusterType forNumber(int value) { + switch (value) { + case 0: + return CLUSTER_TYPE_UNSPECIFIED; + case 1: + return STANDARD; + case 2: + return ZERO_SCALE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ClusterType findValueByNumber(int number) { + return ClusterType.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataproc.v1.AutoscalingPolicy.getDescriptor().getEnumTypes().get(0); + } + + private static final ClusterType[] VALUES = values(); + + public static ClusterType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ClusterType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.AutoscalingPolicy.ClusterType) + } + private int bitField0_; private int algorithmCase_ = 0; @@ -558,6 +731,51 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { return map.get(key); } + public static final int CLUSTER_TYPE_FIELD_NUMBER = 7; + private int clusterType_ = 0; + + /** + * + * + *
          +   * Optional. The type of the clusters for which this autoscaling policy is to
          +   * be configured.
          +   * 
          + * + * + * .google.cloud.dataproc.v1.AutoscalingPolicy.ClusterType cluster_type = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for clusterType. + */ + @java.lang.Override + public int getClusterTypeValue() { + return clusterType_; + } + + /** + * + * + *
          +   * Optional. The type of the clusters for which this autoscaling policy is to
          +   * be configured.
          +   * 
          + * + * + * .google.cloud.dataproc.v1.AutoscalingPolicy.ClusterType cluster_type = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clusterType. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.AutoscalingPolicy.ClusterType getClusterType() { + com.google.cloud.dataproc.v1.AutoscalingPolicy.ClusterType result = + com.google.cloud.dataproc.v1.AutoscalingPolicy.ClusterType.forNumber(clusterType_); + return result == null + ? com.google.cloud.dataproc.v1.AutoscalingPolicy.ClusterType.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -589,6 +807,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessage.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); + if (clusterType_ + != com.google.cloud.dataproc.v1.AutoscalingPolicy.ClusterType.CLUSTER_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, clusterType_); + } getUnknownFields().writeTo(output); } @@ -626,6 +849,11 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__); } + if (clusterType_ + != com.google.cloud.dataproc.v1.AutoscalingPolicy.ClusterType.CLUSTER_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, clusterType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -653,6 +881,7 @@ public boolean equals(final java.lang.Object obj) { if (!getSecondaryWorkerConfig().equals(other.getSecondaryWorkerConfig())) return false; } if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (clusterType_ != other.clusterType_) return false; if (!getAlgorithmCase().equals(other.getAlgorithmCase())) return false; switch (algorithmCase_) { case 3: @@ -688,6 +917,8 @@ public int hashCode() { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } + hash = (37 * hash) + CLUSTER_TYPE_FIELD_NUMBER; + hash = (53 * hash) + clusterType_; switch (algorithmCase_) { case 3: hash = (37 * hash) + BASIC_ALGORITHM_FIELD_NUMBER; @@ -884,6 +1115,7 @@ public Builder clear() { secondaryWorkerConfigBuilder_ = null; } internalGetMutableLabels().clear(); + clusterType_ = 0; algorithmCase_ = 0; algorithm_ = null; return this; @@ -946,6 +1178,9 @@ private void buildPartial0(com.google.cloud.dataproc.v1.AutoscalingPolicy result result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.clusterType_ = clusterType_; + } result.bitField0_ |= to_bitField0_; } @@ -987,6 +1222,9 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.AutoscalingPolicy other) { } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000020; + if (other.clusterType_ != 0) { + setClusterTypeValue(other.getClusterTypeValue()); + } switch (other.getAlgorithmCase()) { case BASIC_ALGORITHM: { @@ -1069,6 +1307,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 50 + case 56: + { + clusterType_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2229,6 +2473,119 @@ public Builder putAllLabels(java.util.Map va return this; } + private int clusterType_ = 0; + + /** + * + * + *
          +     * Optional. The type of the clusters for which this autoscaling policy is to
          +     * be configured.
          +     * 
          + * + * + * .google.cloud.dataproc.v1.AutoscalingPolicy.ClusterType cluster_type = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for clusterType. + */ + @java.lang.Override + public int getClusterTypeValue() { + return clusterType_; + } + + /** + * + * + *
          +     * Optional. The type of the clusters for which this autoscaling policy is to
          +     * be configured.
          +     * 
          + * + * + * .google.cloud.dataproc.v1.AutoscalingPolicy.ClusterType cluster_type = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for clusterType to set. + * @return This builder for chaining. + */ + public Builder setClusterTypeValue(int value) { + clusterType_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The type of the clusters for which this autoscaling policy is to
          +     * be configured.
          +     * 
          + * + * + * .google.cloud.dataproc.v1.AutoscalingPolicy.ClusterType cluster_type = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clusterType. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.AutoscalingPolicy.ClusterType getClusterType() { + com.google.cloud.dataproc.v1.AutoscalingPolicy.ClusterType result = + com.google.cloud.dataproc.v1.AutoscalingPolicy.ClusterType.forNumber(clusterType_); + return result == null + ? com.google.cloud.dataproc.v1.AutoscalingPolicy.ClusterType.UNRECOGNIZED + : result; + } + + /** + * + * + *
          +     * Optional. The type of the clusters for which this autoscaling policy is to
          +     * be configured.
          +     * 
          + * + * + * .google.cloud.dataproc.v1.AutoscalingPolicy.ClusterType cluster_type = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The clusterType to set. + * @return This builder for chaining. + */ + public Builder setClusterType( + com.google.cloud.dataproc.v1.AutoscalingPolicy.ClusterType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + clusterType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The type of the clusters for which this autoscaling policy is to
          +     * be configured.
          +     * 
          + * + * + * .google.cloud.dataproc.v1.AutoscalingPolicy.ClusterType cluster_type = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearClusterType() { + bitField0_ = (bitField0_ & ~0x00000040); + clusterType_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.AutoscalingPolicy) } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyOrBuilder.java index 4c71b3f5a643..79eb2d9230b5 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyOrBuilder.java @@ -310,5 +310,37 @@ java.lang.String getLabelsOrDefault( */ java.lang.String getLabelsOrThrow(java.lang.String key); + /** + * + * + *
          +   * Optional. The type of the clusters for which this autoscaling policy is to
          +   * be configured.
          +   * 
          + * + * + * .google.cloud.dataproc.v1.AutoscalingPolicy.ClusterType cluster_type = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for clusterType. + */ + int getClusterTypeValue(); + + /** + * + * + *
          +   * Optional. The type of the clusters for which this autoscaling policy is to
          +   * be configured.
          +   * 
          + * + * + * .google.cloud.dataproc.v1.AutoscalingPolicy.ClusterType cluster_type = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clusterType. + */ + com.google.cloud.dataproc.v1.AutoscalingPolicy.ClusterType getClusterType(); + com.google.cloud.dataproc.v1.AutoscalingPolicy.AlgorithmCase getAlgorithmCase(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java index 1f6cbfc7f3af..2c604e8dd7c4 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java @@ -52,6 +52,7 @@ private ClusterConfig(com.google.protobuf.GeneratedMessage.Builder builder) { } private ClusterConfig() { + clusterType_ = 0; clusterTier_ = 0; configBucket_ = ""; tempBucket_ = ""; @@ -74,6 +75,200 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dataproc.v1.ClusterConfig.Builder.class); } + /** + * + * + *
          +   * The type of the cluster.
          +   * 
          + * + * Protobuf enum {@code google.cloud.dataproc.v1.ClusterConfig.ClusterType} + */ + public enum ClusterType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * Not set.
          +     * 
          + * + * CLUSTER_TYPE_UNSPECIFIED = 0; + */ + CLUSTER_TYPE_UNSPECIFIED(0), + /** + * + * + *
          +     * Standard dataproc cluster with a minimum of two primary workers.
          +     * 
          + * + * STANDARD = 1; + */ + STANDARD(1), + /** + * + * + *
          +     * https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/single-node-clusters
          +     * 
          + * + * SINGLE_NODE = 2; + */ + SINGLE_NODE(2), + /** + * + * + *
          +     * Clusters that can use only secondary workers and be scaled down to zero
          +     * secondary worker nodes.
          +     * 
          + * + * ZERO_SCALE = 3; + */ + ZERO_SCALE(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ClusterType"); + } + + /** + * + * + *
          +     * Not set.
          +     * 
          + * + * CLUSTER_TYPE_UNSPECIFIED = 0; + */ + public static final int CLUSTER_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
          +     * Standard dataproc cluster with a minimum of two primary workers.
          +     * 
          + * + * STANDARD = 1; + */ + public static final int STANDARD_VALUE = 1; + + /** + * + * + *
          +     * https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/single-node-clusters
          +     * 
          + * + * SINGLE_NODE = 2; + */ + public static final int SINGLE_NODE_VALUE = 2; + + /** + * + * + *
          +     * Clusters that can use only secondary workers and be scaled down to zero
          +     * secondary worker nodes.
          +     * 
          + * + * ZERO_SCALE = 3; + */ + public static final int ZERO_SCALE_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ClusterType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ClusterType forNumber(int value) { + switch (value) { + case 0: + return CLUSTER_TYPE_UNSPECIFIED; + case 1: + return STANDARD; + case 2: + return SINGLE_NODE; + case 3: + return ZERO_SCALE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ClusterType findValueByNumber(int number) { + return ClusterType.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClusterConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final ClusterType[] VALUES = values(); + + public static ClusterType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ClusterType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.ClusterConfig.ClusterType) + } + /** * * @@ -219,7 +414,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClusterConfig.getDescriptor().getEnumTypes().get(0); + return com.google.cloud.dataproc.v1.ClusterConfig.getDescriptor().getEnumTypes().get(1); } private static final ClusterTier[] VALUES = values(); @@ -244,6 +439,49 @@ private ClusterTier(int value) { } private int bitField0_; + public static final int CLUSTER_TYPE_FIELD_NUMBER = 27; + private int clusterType_ = 0; + + /** + * + * + *
          +   * Optional. The type of the cluster.
          +   * 
          + * + * + * .google.cloud.dataproc.v1.ClusterConfig.ClusterType cluster_type = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for clusterType. + */ + @java.lang.Override + public int getClusterTypeValue() { + return clusterType_; + } + + /** + * + * + *
          +   * Optional. The type of the cluster.
          +   * 
          + * + * + * .google.cloud.dataproc.v1.ClusterConfig.ClusterType cluster_type = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clusterType. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.ClusterConfig.ClusterType getClusterType() { + com.google.cloud.dataproc.v1.ClusterConfig.ClusterType result = + com.google.cloud.dataproc.v1.ClusterConfig.ClusterType.forNumber(clusterType_); + return result == null + ? com.google.cloud.dataproc.v1.ClusterConfig.ClusterType.UNRECOGNIZED + : result; + } + public static final int CLUSTER_TIER_FIELD_NUMBER = 29; private int clusterTier_ = 0; @@ -1457,6 +1695,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < auxiliaryNodeGroups_.size(); i++) { output.writeMessage(25, auxiliaryNodeGroups_.get(i)); } + if (clusterType_ + != com.google.cloud.dataproc.v1.ClusterConfig.ClusterType.CLUSTER_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(27, clusterType_); + } if (clusterTier_ != com.google.cloud.dataproc.v1.ClusterConfig.ClusterTier.CLUSTER_TIER_UNSPECIFIED .getNumber()) { @@ -1524,6 +1767,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, auxiliaryNodeGroups_.get(i)); } + if (clusterType_ + != com.google.cloud.dataproc.v1.ClusterConfig.ClusterType.CLUSTER_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(27, clusterType_); + } if (clusterTier_ != com.google.cloud.dataproc.v1.ClusterConfig.ClusterTier.CLUSTER_TIER_UNSPECIFIED .getNumber()) { @@ -1545,6 +1793,7 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.dataproc.v1.ClusterConfig other = (com.google.cloud.dataproc.v1.ClusterConfig) obj; + if (clusterType_ != other.clusterType_) return false; if (clusterTier_ != other.clusterTier_) return false; if (!getConfigBucket().equals(other.getConfigBucket())) return false; if (!getTempBucket().equals(other.getTempBucket())) return false; @@ -1609,6 +1858,8 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CLUSTER_TYPE_FIELD_NUMBER; + hash = (53 * hash) + clusterType_; hash = (37 * hash) + CLUSTER_TIER_FIELD_NUMBER; hash = (53 * hash) + clusterTier_; hash = (37 * hash) + CONFIG_BUCKET_FIELD_NUMBER; @@ -1833,6 +2084,7 @@ private void maybeForceBuilderInitialization() { public Builder clear() { super.clear(); bitField0_ = 0; + clusterType_ = 0; clusterTier_ = 0; configBucket_ = ""; tempBucket_ = ""; @@ -1867,7 +2119,7 @@ public Builder clear() { initializationActions_ = null; initializationActionsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); encryptionConfig_ = null; if (encryptionConfigBuilder_ != null) { encryptionConfigBuilder_.dispose(); @@ -1909,7 +2161,7 @@ public Builder clear() { auxiliaryNodeGroups_ = null; auxiliaryNodeGroupsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); return this; } @@ -1947,18 +2199,18 @@ public com.google.cloud.dataproc.v1.ClusterConfig buildPartial() { private void buildPartialRepeatedFields(com.google.cloud.dataproc.v1.ClusterConfig result) { if (initializationActionsBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { initializationActions_ = java.util.Collections.unmodifiableList(initializationActions_); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); } result.initializationActions_ = initializationActions_; } else { result.initializationActions_ = initializationActionsBuilder_.build(); } if (auxiliaryNodeGroupsBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0)) { + if (((bitField0_ & 0x00020000) != 0)) { auxiliaryNodeGroups_ = java.util.Collections.unmodifiableList(auxiliaryNodeGroups_); - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); } result.auxiliaryNodeGroups_ = auxiliaryNodeGroups_; } else { @@ -1969,75 +2221,78 @@ private void buildPartialRepeatedFields(com.google.cloud.dataproc.v1.ClusterConf private void buildPartial0(com.google.cloud.dataproc.v1.ClusterConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.clusterTier_ = clusterTier_; + result.clusterType_ = clusterType_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.configBucket_ = configBucket_; + result.clusterTier_ = clusterTier_; } if (((from_bitField0_ & 0x00000004) != 0)) { + result.configBucket_ = configBucket_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { result.tempBucket_ = tempBucket_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.gceClusterConfig_ = gceClusterConfigBuilder_ == null ? gceClusterConfig_ : gceClusterConfigBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.masterConfig_ = masterConfigBuilder_ == null ? masterConfig_ : masterConfigBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.workerConfig_ = workerConfigBuilder_ == null ? workerConfig_ : workerConfigBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.secondaryWorkerConfig_ = secondaryWorkerConfigBuilder_ == null ? secondaryWorkerConfig_ : secondaryWorkerConfigBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.softwareConfig_ = softwareConfigBuilder_ == null ? softwareConfig_ : softwareConfigBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.encryptionConfig_ = encryptionConfigBuilder_ == null ? encryptionConfig_ : encryptionConfigBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.autoscalingConfig_ = autoscalingConfigBuilder_ == null ? autoscalingConfig_ : autoscalingConfigBuilder_.build(); to_bitField0_ |= 0x00000040; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.securityConfig_ = securityConfigBuilder_ == null ? securityConfig_ : securityConfigBuilder_.build(); to_bitField0_ |= 0x00000080; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.lifecycleConfig_ = lifecycleConfigBuilder_ == null ? lifecycleConfig_ : lifecycleConfigBuilder_.build(); to_bitField0_ |= 0x00000100; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.endpointConfig_ = endpointConfigBuilder_ == null ? endpointConfig_ : endpointConfigBuilder_.build(); to_bitField0_ |= 0x00000200; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.metastoreConfig_ = metastoreConfigBuilder_ == null ? metastoreConfig_ : metastoreConfigBuilder_.build(); to_bitField0_ |= 0x00000400; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.dataprocMetricConfig_ = dataprocMetricConfigBuilder_ == null ? dataprocMetricConfig_ @@ -2059,17 +2314,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterConfig other) { if (other == com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance()) return this; + if (other.clusterType_ != 0) { + setClusterTypeValue(other.getClusterTypeValue()); + } if (other.clusterTier_ != 0) { setClusterTierValue(other.getClusterTierValue()); } if (!other.getConfigBucket().isEmpty()) { configBucket_ = other.configBucket_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getTempBucket().isEmpty()) { tempBucket_ = other.tempBucket_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasGceClusterConfig()) { @@ -2091,7 +2349,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterConfig other) { if (!other.initializationActions_.isEmpty()) { if (initializationActions_.isEmpty()) { initializationActions_ = other.initializationActions_; - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); } else { ensureInitializationActionsIsMutable(); initializationActions_.addAll(other.initializationActions_); @@ -2104,7 +2362,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterConfig other) { initializationActionsBuilder_.dispose(); initializationActionsBuilder_ = null; initializationActions_ = other.initializationActions_; - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); initializationActionsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetInitializationActionsFieldBuilder() @@ -2139,7 +2397,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterConfig other) { if (!other.auxiliaryNodeGroups_.isEmpty()) { if (auxiliaryNodeGroups_.isEmpty()) { auxiliaryNodeGroups_ = other.auxiliaryNodeGroups_; - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); } else { ensureAuxiliaryNodeGroupsIsMutable(); auxiliaryNodeGroups_.addAll(other.auxiliaryNodeGroups_); @@ -2152,7 +2410,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterConfig other) { auxiliaryNodeGroupsBuilder_.dispose(); auxiliaryNodeGroupsBuilder_ = null; auxiliaryNodeGroups_ = other.auxiliaryNodeGroups_; - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); auxiliaryNodeGroupsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetAuxiliaryNodeGroupsFieldBuilder() @@ -2191,34 +2449,34 @@ public Builder mergeFrom( case 10: { configBucket_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 10 case 18: { tempBucket_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 18 case 66: { input.readMessage( internalGetGceClusterConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 66 case 74: { input.readMessage( internalGetMasterConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 74 case 82: { input.readMessage( internalGetWorkerConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 82 case 90: @@ -2239,63 +2497,63 @@ public Builder mergeFrom( { input.readMessage( internalGetSecondaryWorkerConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 98 case 106: { input.readMessage( internalGetSoftwareConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 106 case 122: { input.readMessage( internalGetEncryptionConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 122 case 130: { input.readMessage( internalGetSecurityConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 130 case 138: { input.readMessage( internalGetLifecycleConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 138 case 146: { input.readMessage( internalGetAutoscalingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 146 case 154: { input.readMessage( internalGetEndpointConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 154 case 162: { input.readMessage( internalGetMetastoreConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 162 case 186: { input.readMessage( internalGetDataprocMetricConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 186 case 202: @@ -2312,10 +2570,16 @@ public Builder mergeFrom( } break; } // case 202 + case 216: + { + clusterType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 216 case 232: { clusterTier_ = input.readEnum(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; break; } // case 232 default: @@ -2337,6 +2601,113 @@ public Builder mergeFrom( private int bitField0_; + private int clusterType_ = 0; + + /** + * + * + *
          +     * Optional. The type of the cluster.
          +     * 
          + * + * + * .google.cloud.dataproc.v1.ClusterConfig.ClusterType cluster_type = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for clusterType. + */ + @java.lang.Override + public int getClusterTypeValue() { + return clusterType_; + } + + /** + * + * + *
          +     * Optional. The type of the cluster.
          +     * 
          + * + * + * .google.cloud.dataproc.v1.ClusterConfig.ClusterType cluster_type = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for clusterType to set. + * @return This builder for chaining. + */ + public Builder setClusterTypeValue(int value) { + clusterType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The type of the cluster.
          +     * 
          + * + * + * .google.cloud.dataproc.v1.ClusterConfig.ClusterType cluster_type = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clusterType. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.ClusterConfig.ClusterType getClusterType() { + com.google.cloud.dataproc.v1.ClusterConfig.ClusterType result = + com.google.cloud.dataproc.v1.ClusterConfig.ClusterType.forNumber(clusterType_); + return result == null + ? com.google.cloud.dataproc.v1.ClusterConfig.ClusterType.UNRECOGNIZED + : result; + } + + /** + * + * + *
          +     * Optional. The type of the cluster.
          +     * 
          + * + * + * .google.cloud.dataproc.v1.ClusterConfig.ClusterType cluster_type = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The clusterType to set. + * @return This builder for chaining. + */ + public Builder setClusterType(com.google.cloud.dataproc.v1.ClusterConfig.ClusterType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + clusterType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The type of the cluster.
          +     * 
          + * + * + * .google.cloud.dataproc.v1.ClusterConfig.ClusterType cluster_type = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearClusterType() { + bitField0_ = (bitField0_ & ~0x00000001); + clusterType_ = 0; + onChanged(); + return this; + } + private int clusterTier_ = 0; /** @@ -2373,7 +2744,7 @@ public int getClusterTierValue() { */ public Builder setClusterTierValue(int value) { clusterTier_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2418,7 +2789,7 @@ public Builder setClusterTier(com.google.cloud.dataproc.v1.ClusterConfig.Cluster if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; clusterTier_ = value.getNumber(); onChanged(); return this; @@ -2438,7 +2809,7 @@ public Builder setClusterTier(com.google.cloud.dataproc.v1.ClusterConfig.Cluster * @return This builder for chaining. */ public Builder clearClusterTier() { - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); clusterTier_ = 0; onChanged(); return this; @@ -2539,7 +2910,7 @@ public Builder setConfigBucket(java.lang.String value) { throw new NullPointerException(); } configBucket_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2567,7 +2938,7 @@ public Builder setConfigBucket(java.lang.String value) { */ public Builder clearConfigBucket() { configBucket_ = getDefaultInstance().getConfigBucket(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -2600,7 +2971,7 @@ public Builder setConfigBucketBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); configBucket_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2700,7 +3071,7 @@ public Builder setTempBucket(java.lang.String value) { throw new NullPointerException(); } tempBucket_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2728,7 +3099,7 @@ public Builder setTempBucket(java.lang.String value) { */ public Builder clearTempBucket() { tempBucket_ = getDefaultInstance().getTempBucket(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -2761,7 +3132,7 @@ public Builder setTempBucketBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); tempBucket_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2788,7 +3159,7 @@ public Builder setTempBucketBytes(com.google.protobuf.ByteString value) { * @return Whether the gceClusterConfig field is set. */ public boolean hasGceClusterConfig() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -2836,7 +3207,7 @@ public Builder setGceClusterConfig(com.google.cloud.dataproc.v1.GceClusterConfig } else { gceClusterConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2860,7 +3231,7 @@ public Builder setGceClusterConfig( } else { gceClusterConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2879,7 +3250,7 @@ public Builder setGceClusterConfig( */ public Builder mergeGceClusterConfig(com.google.cloud.dataproc.v1.GceClusterConfig value) { if (gceClusterConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000010) != 0) && gceClusterConfig_ != null && gceClusterConfig_ != com.google.cloud.dataproc.v1.GceClusterConfig.getDefaultInstance()) { @@ -2891,7 +3262,7 @@ public Builder mergeGceClusterConfig(com.google.cloud.dataproc.v1.GceClusterConf gceClusterConfigBuilder_.mergeFrom(value); } if (gceClusterConfig_ != null) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } return this; @@ -2910,7 +3281,7 @@ public Builder mergeGceClusterConfig(com.google.cloud.dataproc.v1.GceClusterConf * */ public Builder clearGceClusterConfig() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); gceClusterConfig_ = null; if (gceClusterConfigBuilder_ != null) { gceClusterConfigBuilder_.dispose(); @@ -2933,7 +3304,7 @@ public Builder clearGceClusterConfig() { * */ public com.google.cloud.dataproc.v1.GceClusterConfig.Builder getGceClusterConfigBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return internalGetGceClusterConfigFieldBuilder().getBuilder(); } @@ -3011,7 +3382,7 @@ public com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder getGceClusterConfi * @return Whether the masterConfig field is set. */ public boolean hasMasterConfig() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -3059,7 +3430,7 @@ public Builder setMasterConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig } else { masterConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3083,7 +3454,7 @@ public Builder setMasterConfig( } else { masterConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3102,7 +3473,7 @@ public Builder setMasterConfig( */ public Builder mergeMasterConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig value) { if (masterConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000020) != 0) && masterConfig_ != null && masterConfig_ != com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance()) { @@ -3114,7 +3485,7 @@ public Builder mergeMasterConfig(com.google.cloud.dataproc.v1.InstanceGroupConfi masterConfigBuilder_.mergeFrom(value); } if (masterConfig_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -3133,7 +3504,7 @@ public Builder mergeMasterConfig(com.google.cloud.dataproc.v1.InstanceGroupConfi * */ public Builder clearMasterConfig() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); masterConfig_ = null; if (masterConfigBuilder_ != null) { masterConfigBuilder_.dispose(); @@ -3156,7 +3527,7 @@ public Builder clearMasterConfig() { * */ public com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder getMasterConfigBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return internalGetMasterConfigFieldBuilder().getBuilder(); } @@ -3234,7 +3605,7 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getMasterConfig * @return Whether the workerConfig field is set. */ public boolean hasWorkerConfig() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -3282,7 +3653,7 @@ public Builder setWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig } else { workerConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3306,7 +3677,7 @@ public Builder setWorkerConfig( } else { workerConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3325,7 +3696,7 @@ public Builder setWorkerConfig( */ public Builder mergeWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig value) { if (workerConfigBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && workerConfig_ != null && workerConfig_ != com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance()) { @@ -3337,7 +3708,7 @@ public Builder mergeWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupConfi workerConfigBuilder_.mergeFrom(value); } if (workerConfig_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -3356,7 +3727,7 @@ public Builder mergeWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupConfi * */ public Builder clearWorkerConfig() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); workerConfig_ = null; if (workerConfigBuilder_ != null) { workerConfigBuilder_.dispose(); @@ -3379,7 +3750,7 @@ public Builder clearWorkerConfig() { * */ public com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder getWorkerConfigBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return internalGetWorkerConfigFieldBuilder().getBuilder(); } @@ -3457,7 +3828,7 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getWorkerConfig * @return Whether the secondaryWorkerConfig field is set. */ public boolean hasSecondaryWorkerConfig() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -3506,7 +3877,7 @@ public Builder setSecondaryWorkerConfig( } else { secondaryWorkerConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3530,7 +3901,7 @@ public Builder setSecondaryWorkerConfig( } else { secondaryWorkerConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3550,7 +3921,7 @@ public Builder setSecondaryWorkerConfig( public Builder mergeSecondaryWorkerConfig( com.google.cloud.dataproc.v1.InstanceGroupConfig value) { if (secondaryWorkerConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000080) != 0) && secondaryWorkerConfig_ != null && secondaryWorkerConfig_ != com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance()) { @@ -3562,7 +3933,7 @@ public Builder mergeSecondaryWorkerConfig( secondaryWorkerConfigBuilder_.mergeFrom(value); } if (secondaryWorkerConfig_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -3581,7 +3952,7 @@ public Builder mergeSecondaryWorkerConfig( * */ public Builder clearSecondaryWorkerConfig() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); secondaryWorkerConfig_ = null; if (secondaryWorkerConfigBuilder_ != null) { secondaryWorkerConfigBuilder_.dispose(); @@ -3605,7 +3976,7 @@ public Builder clearSecondaryWorkerConfig() { */ public com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder getSecondaryWorkerConfigBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return internalGetSecondaryWorkerConfigFieldBuilder().getBuilder(); } @@ -3683,7 +4054,7 @@ public Builder clearSecondaryWorkerConfig() { * @return Whether the softwareConfig field is set. */ public boolean hasSoftwareConfig() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -3729,7 +4100,7 @@ public Builder setSoftwareConfig(com.google.cloud.dataproc.v1.SoftwareConfig val } else { softwareConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3752,7 +4123,7 @@ public Builder setSoftwareConfig( } else { softwareConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3770,7 +4141,7 @@ public Builder setSoftwareConfig( */ public Builder mergeSoftwareConfig(com.google.cloud.dataproc.v1.SoftwareConfig value) { if (softwareConfigBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000100) != 0) && softwareConfig_ != null && softwareConfig_ != com.google.cloud.dataproc.v1.SoftwareConfig.getDefaultInstance()) { @@ -3782,7 +4153,7 @@ public Builder mergeSoftwareConfig(com.google.cloud.dataproc.v1.SoftwareConfig v softwareConfigBuilder_.mergeFrom(value); } if (softwareConfig_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -3800,7 +4171,7 @@ public Builder mergeSoftwareConfig(com.google.cloud.dataproc.v1.SoftwareConfig v * */ public Builder clearSoftwareConfig() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); softwareConfig_ = null; if (softwareConfigBuilder_ != null) { softwareConfigBuilder_.dispose(); @@ -3822,7 +4193,7 @@ public Builder clearSoftwareConfig() { * */ public com.google.cloud.dataproc.v1.SoftwareConfig.Builder getSoftwareConfigBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return internalGetSoftwareConfigFieldBuilder().getBuilder(); } @@ -3880,11 +4251,11 @@ public com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder getSoftwareConfigOrB initializationActions_ = java.util.Collections.emptyList(); private void ensureInitializationActionsIsMutable() { - if (!((bitField0_ & 0x00000100) != 0)) { + if (!((bitField0_ & 0x00000200) != 0)) { initializationActions_ = new java.util.ArrayList( initializationActions_); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; } } @@ -4270,7 +4641,7 @@ public Builder addAllInitializationActions( public Builder clearInitializationActions() { if (initializationActionsBuilder_ == null) { initializationActions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { initializationActionsBuilder_.clear(); @@ -4503,7 +4874,7 @@ public Builder removeInitializationActions(int index) { com.google.cloud.dataproc.v1.NodeInitializationAction.Builder, com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder>( initializationActions_, - ((bitField0_ & 0x00000100) != 0), + ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); initializationActions_ = null; @@ -4532,7 +4903,7 @@ public Builder removeInitializationActions(int index) { * @return Whether the encryptionConfig field is set. */ public boolean hasEncryptionConfig() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -4578,7 +4949,7 @@ public Builder setEncryptionConfig(com.google.cloud.dataproc.v1.EncryptionConfig } else { encryptionConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4601,7 +4972,7 @@ public Builder setEncryptionConfig( } else { encryptionConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4619,7 +4990,7 @@ public Builder setEncryptionConfig( */ public Builder mergeEncryptionConfig(com.google.cloud.dataproc.v1.EncryptionConfig value) { if (encryptionConfigBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000400) != 0) && encryptionConfig_ != null && encryptionConfig_ != com.google.cloud.dataproc.v1.EncryptionConfig.getDefaultInstance()) { @@ -4631,7 +5002,7 @@ public Builder mergeEncryptionConfig(com.google.cloud.dataproc.v1.EncryptionConf encryptionConfigBuilder_.mergeFrom(value); } if (encryptionConfig_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -4649,7 +5020,7 @@ public Builder mergeEncryptionConfig(com.google.cloud.dataproc.v1.EncryptionConf * */ public Builder clearEncryptionConfig() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); encryptionConfig_ = null; if (encryptionConfigBuilder_ != null) { encryptionConfigBuilder_.dispose(); @@ -4671,7 +5042,7 @@ public Builder clearEncryptionConfig() { * */ public com.google.cloud.dataproc.v1.EncryptionConfig.Builder getEncryptionConfigBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return internalGetEncryptionConfigFieldBuilder().getBuilder(); } @@ -4747,7 +5118,7 @@ public com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder getEncryptionConfi * @return Whether the autoscalingConfig field is set. */ public boolean hasAutoscalingConfig() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -4795,7 +5166,7 @@ public Builder setAutoscalingConfig(com.google.cloud.dataproc.v1.AutoscalingConf } else { autoscalingConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4819,7 +5190,7 @@ public Builder setAutoscalingConfig( } else { autoscalingConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4838,7 +5209,7 @@ public Builder setAutoscalingConfig( */ public Builder mergeAutoscalingConfig(com.google.cloud.dataproc.v1.AutoscalingConfig value) { if (autoscalingConfigBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00000800) != 0) && autoscalingConfig_ != null && autoscalingConfig_ != com.google.cloud.dataproc.v1.AutoscalingConfig.getDefaultInstance()) { @@ -4850,7 +5221,7 @@ public Builder mergeAutoscalingConfig(com.google.cloud.dataproc.v1.AutoscalingCo autoscalingConfigBuilder_.mergeFrom(value); } if (autoscalingConfig_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -4869,7 +5240,7 @@ public Builder mergeAutoscalingConfig(com.google.cloud.dataproc.v1.AutoscalingCo * */ public Builder clearAutoscalingConfig() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); autoscalingConfig_ = null; if (autoscalingConfigBuilder_ != null) { autoscalingConfigBuilder_.dispose(); @@ -4892,7 +5263,7 @@ public Builder clearAutoscalingConfig() { * */ public com.google.cloud.dataproc.v1.AutoscalingConfig.Builder getAutoscalingConfigBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return internalGetAutoscalingConfigFieldBuilder().getBuilder(); } @@ -4969,7 +5340,7 @@ public com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder getAutoscalingCon * @return Whether the securityConfig field is set. */ public boolean hasSecurityConfig() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -5015,7 +5386,7 @@ public Builder setSecurityConfig(com.google.cloud.dataproc.v1.SecurityConfig val } else { securityConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -5038,7 +5409,7 @@ public Builder setSecurityConfig( } else { securityConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -5056,7 +5427,7 @@ public Builder setSecurityConfig( */ public Builder mergeSecurityConfig(com.google.cloud.dataproc.v1.SecurityConfig value) { if (securityConfigBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) + if (((bitField0_ & 0x00001000) != 0) && securityConfig_ != null && securityConfig_ != com.google.cloud.dataproc.v1.SecurityConfig.getDefaultInstance()) { @@ -5068,7 +5439,7 @@ public Builder mergeSecurityConfig(com.google.cloud.dataproc.v1.SecurityConfig v securityConfigBuilder_.mergeFrom(value); } if (securityConfig_ != null) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } return this; @@ -5086,7 +5457,7 @@ public Builder mergeSecurityConfig(com.google.cloud.dataproc.v1.SecurityConfig v * */ public Builder clearSecurityConfig() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); securityConfig_ = null; if (securityConfigBuilder_ != null) { securityConfigBuilder_.dispose(); @@ -5108,7 +5479,7 @@ public Builder clearSecurityConfig() { * */ public com.google.cloud.dataproc.v1.SecurityConfig.Builder getSecurityConfigBuilder() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return internalGetSecurityConfigFieldBuilder().getBuilder(); } @@ -5183,7 +5554,7 @@ public com.google.cloud.dataproc.v1.SecurityConfigOrBuilder getSecurityConfigOrB * @return Whether the lifecycleConfig field is set. */ public boolean hasLifecycleConfig() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -5229,7 +5600,7 @@ public Builder setLifecycleConfig(com.google.cloud.dataproc.v1.LifecycleConfig v } else { lifecycleConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5252,7 +5623,7 @@ public Builder setLifecycleConfig( } else { lifecycleConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5270,7 +5641,7 @@ public Builder setLifecycleConfig( */ public Builder mergeLifecycleConfig(com.google.cloud.dataproc.v1.LifecycleConfig value) { if (lifecycleConfigBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) + if (((bitField0_ & 0x00002000) != 0) && lifecycleConfig_ != null && lifecycleConfig_ != com.google.cloud.dataproc.v1.LifecycleConfig.getDefaultInstance()) { @@ -5282,7 +5653,7 @@ public Builder mergeLifecycleConfig(com.google.cloud.dataproc.v1.LifecycleConfig lifecycleConfigBuilder_.mergeFrom(value); } if (lifecycleConfig_ != null) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } return this; @@ -5300,7 +5671,7 @@ public Builder mergeLifecycleConfig(com.google.cloud.dataproc.v1.LifecycleConfig * */ public Builder clearLifecycleConfig() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); lifecycleConfig_ = null; if (lifecycleConfigBuilder_ != null) { lifecycleConfigBuilder_.dispose(); @@ -5322,7 +5693,7 @@ public Builder clearLifecycleConfig() { * */ public com.google.cloud.dataproc.v1.LifecycleConfig.Builder getLifecycleConfigBuilder() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return internalGetLifecycleConfigFieldBuilder().getBuilder(); } @@ -5397,7 +5768,7 @@ public com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder getLifecycleConfigO * @return Whether the endpointConfig field is set. */ public boolean hasEndpointConfig() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** @@ -5443,7 +5814,7 @@ public Builder setEndpointConfig(com.google.cloud.dataproc.v1.EndpointConfig val } else { endpointConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -5466,7 +5837,7 @@ public Builder setEndpointConfig( } else { endpointConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -5484,7 +5855,7 @@ public Builder setEndpointConfig( */ public Builder mergeEndpointConfig(com.google.cloud.dataproc.v1.EndpointConfig value) { if (endpointConfigBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) + if (((bitField0_ & 0x00004000) != 0) && endpointConfig_ != null && endpointConfig_ != com.google.cloud.dataproc.v1.EndpointConfig.getDefaultInstance()) { @@ -5496,7 +5867,7 @@ public Builder mergeEndpointConfig(com.google.cloud.dataproc.v1.EndpointConfig v endpointConfigBuilder_.mergeFrom(value); } if (endpointConfig_ != null) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } return this; @@ -5514,7 +5885,7 @@ public Builder mergeEndpointConfig(com.google.cloud.dataproc.v1.EndpointConfig v * */ public Builder clearEndpointConfig() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); endpointConfig_ = null; if (endpointConfigBuilder_ != null) { endpointConfigBuilder_.dispose(); @@ -5536,7 +5907,7 @@ public Builder clearEndpointConfig() { * */ public com.google.cloud.dataproc.v1.EndpointConfig.Builder getEndpointConfigBuilder() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return internalGetEndpointConfigFieldBuilder().getBuilder(); } @@ -5611,7 +5982,7 @@ public com.google.cloud.dataproc.v1.EndpointConfigOrBuilder getEndpointConfigOrB * @return Whether the metastoreConfig field is set. */ public boolean hasMetastoreConfig() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -5657,7 +6028,7 @@ public Builder setMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig v } else { metastoreConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -5680,7 +6051,7 @@ public Builder setMetastoreConfig( } else { metastoreConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -5698,7 +6069,7 @@ public Builder setMetastoreConfig( */ public Builder mergeMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig value) { if (metastoreConfigBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) + if (((bitField0_ & 0x00008000) != 0) && metastoreConfig_ != null && metastoreConfig_ != com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance()) { @@ -5710,7 +6081,7 @@ public Builder mergeMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig metastoreConfigBuilder_.mergeFrom(value); } if (metastoreConfig_ != null) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } return this; @@ -5728,7 +6099,7 @@ public Builder mergeMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig * */ public Builder clearMetastoreConfig() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); metastoreConfig_ = null; if (metastoreConfigBuilder_ != null) { metastoreConfigBuilder_.dispose(); @@ -5750,7 +6121,7 @@ public Builder clearMetastoreConfig() { * */ public com.google.cloud.dataproc.v1.MetastoreConfig.Builder getMetastoreConfigBuilder() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return internalGetMetastoreConfigFieldBuilder().getBuilder(); } @@ -5825,7 +6196,7 @@ public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigO * @return Whether the dataprocMetricConfig field is set. */ public boolean hasDataprocMetricConfig() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -5872,7 +6243,7 @@ public Builder setDataprocMetricConfig( } else { dataprocMetricConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -5895,7 +6266,7 @@ public Builder setDataprocMetricConfig( } else { dataprocMetricConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -5914,7 +6285,7 @@ public Builder setDataprocMetricConfig( public Builder mergeDataprocMetricConfig( com.google.cloud.dataproc.v1.DataprocMetricConfig value) { if (dataprocMetricConfigBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) + if (((bitField0_ & 0x00010000) != 0) && dataprocMetricConfig_ != null && dataprocMetricConfig_ != com.google.cloud.dataproc.v1.DataprocMetricConfig.getDefaultInstance()) { @@ -5926,7 +6297,7 @@ public Builder mergeDataprocMetricConfig( dataprocMetricConfigBuilder_.mergeFrom(value); } if (dataprocMetricConfig_ != null) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); } return this; @@ -5944,7 +6315,7 @@ public Builder mergeDataprocMetricConfig( * */ public Builder clearDataprocMetricConfig() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); dataprocMetricConfig_ = null; if (dataprocMetricConfigBuilder_ != null) { dataprocMetricConfigBuilder_.dispose(); @@ -5967,7 +6338,7 @@ public Builder clearDataprocMetricConfig() { */ public com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder getDataprocMetricConfigBuilder() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return internalGetDataprocMetricConfigFieldBuilder().getBuilder(); } @@ -6026,11 +6397,11 @@ public Builder clearDataprocMetricConfig() { java.util.Collections.emptyList(); private void ensureAuxiliaryNodeGroupsIsMutable() { - if (!((bitField0_ & 0x00010000) != 0)) { + if (!((bitField0_ & 0x00020000) != 0)) { auxiliaryNodeGroups_ = new java.util.ArrayList( auxiliaryNodeGroups_); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; } } @@ -6281,7 +6652,7 @@ public Builder addAllAuxiliaryNodeGroups( public Builder clearAuxiliaryNodeGroups() { if (auxiliaryNodeGroupsBuilder_ == null) { auxiliaryNodeGroups_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); onChanged(); } else { auxiliaryNodeGroupsBuilder_.clear(); @@ -6428,7 +6799,7 @@ public com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder addAuxiliaryNodeG com.google.cloud.dataproc.v1.AuxiliaryNodeGroup.Builder, com.google.cloud.dataproc.v1.AuxiliaryNodeGroupOrBuilder>( auxiliaryNodeGroups_, - ((bitField0_ & 0x00010000) != 0), + ((bitField0_ & 0x00020000) != 0), getParentForChildren(), isClean()); auxiliaryNodeGroups_ = null; diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java index 786d36f463fa..a1b2294e2353 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java @@ -26,6 +26,36 @@ public interface ClusterConfigOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ClusterConfig) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
          +   * Optional. The type of the cluster.
          +   * 
          + * + * + * .google.cloud.dataproc.v1.ClusterConfig.ClusterType cluster_type = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for clusterType. + */ + int getClusterTypeValue(); + + /** + * + * + *
          +   * Optional. The type of the cluster.
          +   * 
          + * + * + * .google.cloud.dataproc.v1.ClusterConfig.ClusterType cluster_type = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clusterType. + */ + com.google.cloud.dataproc.v1.ClusterConfig.ClusterType getClusterType(); + /** * * diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java index af32dfc1dbff..e47d4f05559c 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java @@ -291,8 +291,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132(.google.cloud.dataproc.v1.ClusterMetricsB\003\340A\003\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"\265\n\n\r" + + "\005value\030\002 \001(\t:\0028\001\"\341\013\n\r" + "ClusterConfig\022N\n" + + "\014cluster_type\030\033 \001(\01623" + + ".google.cloud.dataproc.v1.ClusterConfig.ClusterTypeB\003\340A\001\022N\n" + "\014cluster_tier\030\035 \001(\01623" + ".google.cloud.dataproc.v1.ClusterConfig.ClusterTierB\003\340A\001\022\032\n\r" + "config_bucket\030\001 \001(\tB\003\340A\001\022\030\n" @@ -324,26 +326,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026dataproc_metric_config\030\027" + " \001(\0132..google.cloud.dataproc.v1.DataprocMetricConfigB\003\340A\001\022P\n" + "\025auxiliary_node_groups\030\031" - + " \003(\0132,.google.cloud.dataproc.v1.AuxiliaryNodeGroupB\003\340A\001\"`\n" + + " \003(\0132,.google.cloud.dataproc.v1.AuxiliaryNodeGroupB\003\340A\001\"Z\n" + + "\013ClusterType\022\034\n" + + "\030CLUSTER_TYPE_UNSPECIFIED\020\000\022\014\n" + + "\010STANDARD\020\001\022\017\n" + + "\013SINGLE_NODE\020\002\022\016\n\n" + + "ZERO_SCALE\020\003\"`\n" + "\013ClusterTier\022\034\n" + "\030CLUSTER_TIER_UNSPECIFIED\020\000\022\031\n" + "\025CLUSTER_TIER_STANDARD\020\001\022\030\n" + "\024CLUSTER_TIER_PREMIUM\020\002\"\204\002\n" + "\024VirtualClusterConfig\022\033\n" + "\016staging_bucket\030\001 \001(\tB\003\340A\001\022[\n" - + "\031kubernetes_cluster_config\030\006 \001(\01321.google.cloud.d" - + "ataproc.v1.KubernetesClusterConfigB\003\340A\002H\000\022Y\n" - + "\031auxiliary_services_config\030\007 \001(\01321.g" - + "oogle.cloud.dataproc.v1.AuxiliaryServicesConfigB\003\340A\001B\027\n" + + "\031kubernetes_cluster_config\030\006 \001(\01321.go" + + "ogle.cloud.dataproc.v1.KubernetesClusterConfigB\003\340A\002H\000\022Y\n" + + "\031auxiliary_services_config\030\007" + + " \001(\01321.google.cloud.dataproc.v1.AuxiliaryServicesConfigB\003\340A\001B\027\n" + "\025infrastructure_config\"\301\001\n" + "\027AuxiliaryServicesConfig\022H\n" + "\020metastore_config\030\001" + " \001(\0132).google.cloud.dataproc.v1.MetastoreConfigB\003\340A\001\022\\\n" - + "\033spark_history_server_config\030\002" - + " \001(\01322.google.cloud.dataproc.v1.SparkHistoryServerConfigB\003\340A\001\"\272\001\n" + + "\033spark_history_server_config\030\002 \001(\01322.google.cl" + + "oud.dataproc.v1.SparkHistoryServerConfigB\003\340A\001\"\272\001\n" + "\016EndpointConfig\022P\n\n" - + "http_ports\030\001 \003(\01327.googl" - + "e.cloud.dataproc.v1.EndpointConfig.HttpPortsEntryB\003\340A\003\022$\n" + + "http_ports\030\001" + + " \003(\01327.google.cloud.dataproc.v1.EndpointConfig.HttpPortsEntryB\003\340A\003\022$\n" + "\027enable_http_port_access\030\002 \001(\010B\003\340A\001\0320\n" + "\016HttpPortsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -359,21 +366,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013network_uri\030\002 \001(\tB\003\340A\001\022\033\n" + "\016subnetwork_uri\030\006 \001(\tB\003\340A\001\022\"\n" + "\020internal_ip_only\030\007 \001(\010B\003\340A\001H\000\210\001\001\022k\n" - + "\032private_ipv6_google_access\030\014 \001(\0162B.goog" - + "le.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccessB\003\340A\001\022\034\n" + + "\032private_ipv6_google_access\030\014 \001(\0162B.google.cloud.dataproc.v1.GceClus" + + "terConfig.PrivateIpv6GoogleAccessB\003\340A\001\022\034\n" + "\017service_account\030\010 \001(\tB\003\340A\001\022#\n" + "\026service_account_scopes\030\003 \003(\tB\003\340A\001\022\014\n" + "\004tags\030\004 \003(\t\022O\n" - + "\010metadata\030\005" - + " \003(\01328.google.cloud.dataproc.v1.GceClusterConfig.MetadataEntryB\003\340A\001\022P\n" - + "\024reservation_affinity\030\013" - + " \001(\0132-.google.cloud.dataproc.v1.ReservationAffinityB\003\340A\001\022M\n" + + "\010metadata\030\005 \003(\01328.google.cloud.datapro" + + "c.v1.GceClusterConfig.MetadataEntryB\003\340A\001\022P\n" + + "\024reservation_affinity\030\013 \001(\0132-.google." + + "cloud.dataproc.v1.ReservationAffinityB\003\340A\001\022M\n" + "\023node_group_affinity\030\r" + " \001(\0132+.google.cloud.dataproc.v1.NodeGroupAffinityB\003\340A\001\022W\n" - + "\030shielded_instance_config\030\016 \001(\01320.google.cloud.d" - + "ataproc.v1.ShieldedInstanceConfigB\003\340A\001\022_\n" - + "\034confidential_instance_config\030\017 \001(\01324.g" - + "oogle.cloud.dataproc.v1.ConfidentialInstanceConfigB\003\340A\001\032/\n\r" + + "\030shielded_instance_config\030\016 \001(\01320.go" + + "ogle.cloud.dataproc.v1.ShieldedInstanceConfigB\003\340A\001\022_\n" + + "\034confidential_instance_config\030\017" + + " \001(\01324.google.cloud.dataproc.v1.ConfidentialInstanceConfigB\003\340A\001\032/\n\r" + "MetadataEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\203\001\n" @@ -398,19 +405,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023InstanceGroupConfig\022\032\n\r" + "num_instances\030\001 \001(\005B\003\340A\001\022\033\n" + "\016instance_names\030\002 \003(\tB\003\340A\003\022M\n" - + "\023instance_references\030\013" - + " \003(\0132+.google.cloud.dataproc.v1.InstanceReferenceB\003\340A\003\022\026\n" + + "\023instance_references\030\013 \003(\0132+." + + "google.cloud.dataproc.v1.InstanceReferenceB\003\340A\003\022\026\n" + "\timage_uri\030\003 \001(\tB\003\340A\001\022\035\n" + "\020machine_type_uri\030\004 \001(\tB\003\340A\001\022>\n" - + "\013disk_config\030\005" - + " \001(\0132$.google.cloud.dataproc.v1.DiskConfigB\003\340A\001\022\033\n" + + "\013disk_config\030\005 " + + "\001(\0132$.google.cloud.dataproc.v1.DiskConfigB\003\340A\001\022\033\n" + "\016is_preemptible\030\006 \001(\010B\003\340A\003\022Y\n" + "\016preemptibility\030\n" - + " \001(\0162<.google.cloud.dataproc.v1.InstanceGroupConfig.PreemptibilityB\003\340A\001\022O\n" - + "\024managed_group_config\030\007" - + " \001(\0132,.google.cloud.dataproc.v1.ManagedGroupConfigB\003\340A\003\022F\n" - + "\014accelerators\030\010" - + " \003(\0132+.google.cloud.dataproc.v1.AcceleratorConfigB\003\340A\001\022\035\n" + + " \001(\0162<.google.cloud.datap" + + "roc.v1.InstanceGroupConfig.PreemptibilityB\003\340A\001\022O\n" + + "\024managed_group_config\030\007 \001(\0132,.g" + + "oogle.cloud.dataproc.v1.ManagedGroupConfigB\003\340A\003\022F\n" + + "\014accelerators\030\010 \003(\0132+.google.c" + + "loud.dataproc.v1.AcceleratorConfigB\003\340A\001\022\035\n" + "\020min_cpu_platform\030\t \001(\tB\003\340A\001\022\036\n" + "\021min_num_instances\030\014 \001(\005B\003\340A\001\022]\n" + "\033instance_flexibility_policy\030\r" @@ -436,13 +444,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033instance_group_manager_name\030\002 \001(\tB\003\340A\003\022\'\n" + "\032instance_group_manager_uri\030\003 \001(\tB\003\340A\003\"\345\005\n" + "\031InstanceFlexibilityPolicy\022m\n" - + "\026provisioning_model_mix\030\001 \001(\0132H.google.cloud.dataproc.v1.I" - + "nstanceFlexibilityPolicy.ProvisioningModelMixB\003\340A\001\022k\n" - + "\027instance_selection_list\030\002 \003(\0132E.google.cloud.dataproc.v1.InstanceF" - + "lexibilityPolicy.InstanceSelectionB\003\340A\001\022t\n" - + "\032instance_selection_results\030\003 \003(\0132K.go" - + "ogle.cloud.dataproc.v1.InstanceFlexibili" - + "tyPolicy.InstanceSelectionResultB\003\340A\003\032\274\001\n" + + "\026provisioning_model_mix\030\001 \001(\0132H.google.cloud.d" + + "ataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMixB\003\340A\001\022k\n" + + "\027instance_selection_list\030\002 \003(\0132E.google.cloud.dataproc." + + "v1.InstanceFlexibilityPolicy.InstanceSelectionB\003\340A\001\022t\n" + + "\032instance_selection_results\030\003 \003(\0132K.google.cloud.dataproc.v1.Insta" + + "nceFlexibilityPolicy.InstanceSelectionResultB\003\340A\003\032\274\001\n" + "\024ProvisioningModelMix\022(\n" + "\026standard_capacity_base\030\001 \001(\005B\003\340A\001H\000\210\001\001\0226\n" + "$standard_capacity_percent_above_base\030\002" @@ -471,37 +478,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033_boot_disk_provisioned_iopsB#\n" + "!_boot_disk_provisioned_throughput\"n\n" + "\022AuxiliaryNodeGroup\022<\n\n" - + "node_group\030\001 \001(\0132#" - + ".google.cloud.dataproc.v1.NodeGroupB\003\340A\002\022\032\n\r" + + "node_group\030\001" + + " \001(\0132#.google.cloud.dataproc.v1.NodeGroupB\003\340A\002\022\032\n\r" + "node_group_id\030\002 \001(\tB\003\340A\001\"\275\003\n" + "\tNodeGroup\022\014\n" + "\004name\030\001 \001(\t\022<\n" - + "\005roles\030\002 \003(\0162(.google" - + ".cloud.dataproc.v1.NodeGroup.RoleB\003\340A\002\022M\n" - + "\021node_group_config\030\003" - + " \001(\0132-.google.cloud.dataproc.v1.InstanceGroupConfigB\003\340A\001\022D\n" - + "\006labels\030\004" - + " \003(\0132/.google.cloud.dataproc.v1.NodeGroup.LabelsEntryB\003\340A\001\032-\n" + + "\005roles\030\002 " + + "\003(\0162(.google.cloud.dataproc.v1.NodeGroup.RoleB\003\340A\002\022M\n" + + "\021node_group_config\030\003 \001(\0132-." + + "google.cloud.dataproc.v1.InstanceGroupConfigB\003\340A\001\022D\n" + + "\006labels\030\004 \003(\0132/.google.cloud" + + ".dataproc.v1.NodeGroup.LabelsEntryB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"(\n" + "\004Role\022\024\n" + "\020ROLE_UNSPECIFIED\020\000\022\n\n" + "\006DRIVER\020\001:v\352As\n" - + "!dataproc.googleapis.com/NodeGroup\022Npr" - + "ojects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{node_group}\"s\n" + + "!dataproc.googleapis.com/NodeGroup\022Nprojects/{project}/regions/{re" + + "gion}/clusters/{cluster}/nodeGroups/{node_group}\"s\n" + "\030NodeInitializationAction\022\034\n" + "\017executable_file\030\001 \001(\tB\003\340A\002\0229\n" + "\021execution_timeout\030\002" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\326\003\n\r" + "ClusterStatus\022A\n" - + "\005state\030\001 \001(\0162-.google.clou" - + "d.dataproc.v1.ClusterStatus.StateB\003\340A\003\022\026\n" + + "\005state\030\001 \001(\0162-" + + ".google.cloud.dataproc.v1.ClusterStatus.StateB\003\340A\003\022\026\n" + "\006detail\030\002 \001(\tB\006\340A\003\340A\001\0229\n" + "\020state_start_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022G\n" - + "\010substate\030\004" - + " \001(\01620.google.cloud.dataproc.v1.ClusterStatus.SubstateB\003\340A\003\"\247\001\n" + + "\010substate\030\004 \001(\01620.google" + + ".cloud.dataproc.v1.ClusterStatus.SubstateB\003\340A\003\"\247\001\n" + "\005State\022\013\n" + "\007UNKNOWN\020\000\022\014\n" + "\010CREATING\020\001\022\013\n" @@ -520,10 +527,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tUNHEALTHY\020\001\022\020\n" + "\014STALE_STATUS\020\002\"\240\001\n" + "\016SecurityConfig\022F\n" - + "\017kerberos_config\030\001" - + " \001(\0132(.google.cloud.dataproc.v1.KerberosConfigB\003\340A\001\022F\n" - + "\017identity_config\030\002" - + " \001(\0132(.google.cloud.dataproc.v1.IdentityConfigB\003\340A\001\"\220\004\n" + + "\017kerberos_config\030\001 \001" + + "(\0132(.google.cloud.dataproc.v1.KerberosConfigB\003\340A\001\022F\n" + + "\017identity_config\030\002 \001(\0132(.goo" + + "gle.cloud.dataproc.v1.IdentityConfigB\003\340A\001\"\220\004\n" + "\016KerberosConfig\022\034\n" + "\017enable_kerberos\030\001 \001(\010B\003\340A\001\022(\n" + "\033root_principal_password_uri\030\002 \001(\tB\003\340A\001\022\030\n" @@ -543,17 +550,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022tgt_lifetime_hours\030\016 \001(\005B\003\340A\001\022\022\n" + "\005realm\030\017 \001(\tB\003\340A\001\"\306\001\n" + "\016IdentityConfig\022r\n" - + "\034user_service_account_mapping\030\001 \003(\0132G.google.cloud.datapro" - + "c.v1.IdentityConfig.UserServiceAccountMappingEntryB\003\340A\002\032@\n" + + "\034user_service_account_mapping\030\001 \003(\0132G.google.c" + + "loud.dataproc.v1.IdentityConfig.UserServiceAccountMappingEntryB\003\340A\002\032@\n" + "\036UserServiceAccountMappingEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\371\001\n" + "\016SoftwareConfig\022\032\n\r" + "image_version\030\001 \001(\tB\003\340A\001\022Q\n\n" - + "properties\030\002 \003(\01328.google.cl" - + "oud.dataproc.v1.SoftwareConfig.PropertiesEntryB\003\340A\001\022E\n" - + "\023optional_components\030\003 \003(\016" - + "2#.google.cloud.dataproc.v1.ComponentB\003\340A\001\0321\n" + + "properties\030\002 \003(\013" + + "28.google.cloud.dataproc.v1.SoftwareConfig.PropertiesEntryB\003\340A\001\022E\n" + + "\023optional_components\030\003" + + " \003(\0162#.google.cloud.dataproc.v1.ComponentB\003\340A\001\0321\n" + "\017PropertiesEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\203\002\n" @@ -571,23 +578,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032dataproc_metastore_service\030\001 \001(\tB(\340A\002\372A\"\n" + " metastore.googleapis.com/Service\"\232\002\n" + "\016ClusterMetrics\022O\n" - + "\014hdfs_metrics\030\001" - + " \003(\01329.google.cloud.dataproc.v1.ClusterMetrics.HdfsMetricsEntry\022O\n" - + "\014yarn_metrics\030\002" - + " \003(\01329.google.cloud.dataproc.v1.ClusterMetrics.YarnMetricsEntry\0322\n" + + "\014hdfs_metrics\030\001 \003(\01329.google.cloud" + + ".dataproc.v1.ClusterMetrics.HdfsMetricsEntry\022O\n" + + "\014yarn_metrics\030\002 \003(\01329.google.clou" + + "d.dataproc.v1.ClusterMetrics.YarnMetricsEntry\0322\n" + "\020HdfsMetricsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\003:\0028\001\0322\n" - + "\020YarnMetricsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r" + "\n" + + "\005value\030\002 \001(\003:\0028\001\0322\n" + + "\020YarnMetricsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\003:\0028\001\"\235\003\n" + "\024DataprocMetricConfig\022K\n" - + "\007metrics\030\001 \003(\01325.google.cloud.datap" - + "roc.v1.DataprocMetricConfig.MetricB\003\340A\002\032\200\001\n" + + "\007metrics\030\001 \003(\01325.google" + + ".cloud.dataproc.v1.DataprocMetricConfig.MetricB\003\340A\002\032\200\001\n" + "\006Metric\022W\n\r" - + "metric_source\030\001 \001(\0162;.goog" - + "le.cloud.dataproc.v1.DataprocMetricConfig.MetricSourceB\003\340A\002\022\035\n" + + "metric_source\030\001" + + " \001(\0162;.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSourceB\003\340A\002\022\035\n" + "\020metric_overrides\030\002 \003(\tB\003\340A\001\"\264\001\n" + "\014MetricSource\022\035\n" + "\031METRIC_SOURCE_UNSPECIFIED\020\000\022\035\n" @@ -602,11 +609,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024CreateClusterRequest\022\027\n\n" + "project_id\030\001 \001(\tB\003\340A\002\022\023\n" + "\006region\030\003 \001(\tB\003\340A\002\0227\n" - + "\007cluster\030\002 \001(" - + "\0132!.google.cloud.dataproc.v1.ClusterB\003\340A\002\022\027\n\n" + + "\007cluster\030\002" + + " \001(\0132!.google.cloud.dataproc.v1.ClusterB\003\340A\002\022\027\n\n" + "request_id\030\004 \001(\tB\003\340A\001\022V\n" - + " action_on_failed_primary_workers\030\005" - + " \001(\0162\'.google.cloud.dataproc.v1.FailureActionB\003\340A\001\"\256\002\n" + + " action_on_failed_primary_workers\030\005 \001(\016" + + "2\'.google.cloud.dataproc.v1.FailureActionB\003\340A\001\"\256\002\n" + "\024UpdateClusterRequest\022\027\n\n" + "project_id\030\001 \001(\tB\003\340A\002\022\023\n" + "\006region\030\005 \001(\tB\003\340A\002\022\031\n" @@ -654,13 +661,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\003 \001(\tB\003\340A\002\022\031\n" + "\014cluster_name\030\002 \001(\tB\003\340A\002\022\034\n" + "\017tarball_gcs_dir\030\004 \001(\tB\003\340A\001\022[\n" - + "\016tarball_access\030\005" - + " \001(\0162>.google.cloud.dataproc.v1.DiagnoseClusterRequest.TarballAccessB\003\340A\001\0226\n" + + "\016tarball_access\030\005 \001(\0162>.google.cloud.datapr" + + "oc.v1.DiagnoseClusterRequest.TarballAccessB\003\340A\001\0226\n" + "\022diagnosis_interval\030\006" + " \001(\0132\025.google.type.IntervalB\003\340A\001\022\021\n" + "\004jobs\030\n" + " \003(\tB\003\340A\001\022!\n" - + "\024yarn_application_ids\030\013 \003(\tB\003\340A\001\"g\n\r" + + "\024yarn_application_ids\030\013 \003(\tB\003\340A\001\"g\n" + + "\r" + "TarballAccess\022\036\n" + "\032TARBALL_ACCESS_UNSPECIFIED\020\000\022\030\n" + "\024GOOGLE_CLOUD_SUPPORT\020\001\022\034\n" @@ -668,8 +676,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026DiagnoseClusterResults\022\027\n\n" + "output_uri\030\001 \001(\tB\003\340A\003\"\370\001\n" + "\023ReservationAffinity\022Y\n" - + "\030consume_reservation_type\030\001 \001(\0162" - + "2.google.cloud.dataproc.v1.ReservationAffinity.TypeB\003\340A\001\022\020\n" + + "\030consume_reservation_type\030\001" + + " \001(\01622.google.cloud.dataproc.v1.ReservationAffinity.TypeB\003\340A\001\022\020\n" + "\003key\030\002 \001(\tB\003\340A\001\022\023\n" + "\006values\030\003 \003(\tB\003\340A\001\"_\n" + "\004Type\022\024\n" @@ -678,53 +686,51 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017ANY_RESERVATION\020\002\022\030\n" + "\024SPECIFIC_RESERVATION\020\0032\344\020\n" + "\021ClusterController\022\200\002\n\r" - + "CreateCluster\022..googl" - + "e.cloud.dataproc.v1.CreateClusterRequest\032\035.google.longrunning.Operation\"\237\001\312A<\n" - + "\007Cluster\0221google.cloud.dataproc.v1.Cluster" - + "OperationMetadata\332A\031project_id,region,cl" - + "uster\202\323\344\223\002>\"3/v1/projects/{project_id}/regions/{region}/clusters:\007cluster\022\250\002\n\r" - + "UpdateCluster\022..google.cloud.dataproc.v1.U" - + "pdateClusterRequest\032\035.google.longrunning.Operation\"\307\001\312A<\n" - + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOperationMetadata\332A2p" - + "roject_id,region,cluster_name,cluster,up" - + "date_mask\202\323\344\223\002M2B/v1/projects/{project_i" - + "d}/regions/{region}/clusters/{cluster_name}:\007cluster\022\356\001\n" - + "\013StopCluster\022,.google.cl" - + "oud.dataproc.v1.StopClusterRequest\032\035.google.longrunning.Operation\"\221\001\312A<\n" - + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOperat" - + "ionMetadata\202\323\344\223\002L\"G/v1/projects/{project" - + "_id}/regions/{region}/clusters/{cluster_name}:stop:\001*\022\361\001\n" - + "\014StartCluster\022-.google." - + "cloud.dataproc.v1.StartClusterRequest\032\035.google.longrunning.Operation\"\222\001\312A<\n" - + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOpe" - + "rationMetadata\202\323\344\223\002M\"H/v1/projects/{proj" - + "ect_id}/regions/{region}/clusters/{cluster_name}:start:\001*\022\231\002\n\r" - + "DeleteCluster\022..google.cloud.dataproc.v1.DeleteClusterRequ" - + "est\032\035.google.longrunning.Operation\"\270\001\312AJ\n" - + "\025google.protobuf.Empty\0221google.cloud.da" - + "taproc.v1.ClusterOperationMetadata\332A\036pro" - + "ject_id,region,cluster_name\202\323\344\223\002D*B/v1/p" - + "rojects/{project_id}/regions/{region}/clusters/{cluster_name}\022\311\001\n\n" - + "GetCluster\022+.google.cloud.dataproc.v1.GetClusterReques" - + "t\032!.google.cloud.dataproc.v1.Cluster\"k\332A" - + "\036project_id,region,cluster_name\202\323\344\223\002D\022B/" - + "v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}\022\331\001\n" - + "\014ListClusters\022-.google.cloud.dataproc.v1.ListCluste" - + "rsRequest\032..google.cloud.dataproc.v1.Lis" - + "tClustersResponse\"j\332A\021project_id,region\332" - + "A\030project_id,region,filter\202\323\344\223\0025\0223/v1/pr" - + "ojects/{project_id}/regions/{region}/clusters\022\252\002\n" - + "\017DiagnoseCluster\0220.google.cloud" - + ".dataproc.v1.DiagnoseClusterRequest\032\035.google.longrunning.Operation\"\305\001\312AK\n" - + "\026DiagnoseClusterResults\0221google.cloud.dataproc." - + "v1.ClusterOperationMetadata\332A\036project_id" - + ",region,cluster_name\202\323\344\223\002P\"K/v1/projects" - + "/{project_id}/regions/{region}/clusters/" - + "{cluster_name}:diagnose:\001*\032K\312A\027dataproc." - + "googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformBl\n" + + "CreateCluster\022..google.cloud.dataproc.v1.CreateCl" + + "usterRequest\032\035.google.longrunning.Operation\"\237\001\312A<\n" + + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOperationMetadata\332A\031project_" + + "id,region,cluster\202\323\344\223\002>\"3/v1/projects/{p" + + "roject_id}/regions/{region}/clusters:\007cluster\022\250\002\n\r" + + "UpdateCluster\022..google.cloud.d" + + "ataproc.v1.UpdateClusterRequest\032\035.google.longrunning.Operation\"\307\001\312A<\n" + + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOperation" + + "Metadata\332A2project_id,region,cluster_nam" + + "e,cluster,update_mask\202\323\344\223\002M2B/v1/project" + + "s/{project_id}/regions/{region}/clusters/{cluster_name}:\007cluster\022\356\001\n" + + "\013StopCluster\022,.google.cloud.dataproc.v1.StopClusterR" + + "equest\032\035.google.longrunning.Operation\"\221\001\312A<\n" + + "\007Cluster\0221google.cloud.dataproc.v1.C" + + "lusterOperationMetadata\202\323\344\223\002L\"G/v1/proje" + + "cts/{project_id}/regions/{region}/clusters/{cluster_name}:stop:\001*\022\361\001\n" + + "\014StartCluster\022-.google.cloud.dataproc.v1.StartClust" + + "erRequest\032\035.google.longrunning.Operation\"\222\001\312A<\n" + + "\007Cluster\0221google.cloud.dataproc.v" + + "1.ClusterOperationMetadata\202\323\344\223\002M\"H/v1/pr" + + "ojects/{project_id}/regions/{region}/clusters/{cluster_name}:start:\001*\022\231\002\n\r" + + "DeleteCluster\022..google.cloud.dataproc.v1.Delet" + + "eClusterRequest\032\035.google.longrunning.Operation\"\270\001\312AJ\n" + + "\025google.protobuf.Empty\0221google.cloud.dataproc.v1.ClusterOperationMe" + + "tadata\332A\036project_id,region,cluster_name\202" + + "\323\344\223\002D*B/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}\022\311\001\n\n" + + "GetCluster\022+.google.cloud.dataproc.v1.GetC" + + "lusterRequest\032!.google.cloud.dataproc.v1" + + ".Cluster\"k\332A\036project_id,region,cluster_n" + + "ame\202\323\344\223\002D\022B/v1/projects/{project_id}/reg" + + "ions/{region}/clusters/{cluster_name}\022\331\001\n" + + "\014ListClusters\022-.google.cloud.dataproc.v" + + "1.ListClustersRequest\032..google.cloud.dat" + + "aproc.v1.ListClustersResponse\"j\332A\021projec" + + "t_id,region\332A\030project_id,region,filter\202\323" + + "\344\223\0025\0223/v1/projects/{project_id}/regions/{region}/clusters\022\252\002\n" + + "\017DiagnoseCluster\0220.google.cloud.dataproc.v1.DiagnoseCluster" + + "Request\032\035.google.longrunning.Operation\"\305\001\312AK\n" + + "\026DiagnoseClusterResults\0221google.cloud.dataproc.v1.ClusterOperationMetadata\332" + + "A\036project_id,region,cluster_name\202\323\344\223\002P\"K" + + "/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}:diagnose:\001*\032K" + + "\312A\027dataproc.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformBl\n" + "\034com.google.cloud.dataproc.v1B\r" - + "ClustersProtoP\001Z;cloud.google.com/go/dataproc/v2/apiv1/dataproc" - + "pb;dataprocpbb\006proto3" + + "ClustersProtoP\001Z;cloud.google.com/go/dataproc/v2/ap" + + "iv1/dataprocpb;dataprocpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -773,6 +779,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor, new java.lang.String[] { + "ClusterType", "ClusterTier", "ConfigBucket", "TempBucket", diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/autoscaling_policies.proto b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/autoscaling_policies.proto index cf2322cc7007..e9d6fa76ff7b 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/autoscaling_policies.proto +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/autoscaling_policies.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -116,6 +116,20 @@ message AutoscalingPolicy { pattern: "projects/{project}/regions/{region}/autoscalingPolicies/{autoscaling_policy}" }; + // The type of the clusters for which this autoscaling policy is to be + // configured. + enum ClusterType { + // Not set. + CLUSTER_TYPE_UNSPECIFIED = 0; + + // Standard dataproc cluster with a minimum of two primary workers. + STANDARD = 1; + + // Clusters that can use only secondary workers and be scaled down to zero + // secondary worker nodes. + ZERO_SCALE = 2; + } + // Required. The policy id. // // The id must contain only letters (a-z, A-Z), numbers (0-9), @@ -158,6 +172,10 @@ message AutoscalingPolicy { // 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be // associated with an autoscaling policy. map labels = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The type of the clusters for which this autoscaling policy is to + // be configured. + ClusterType cluster_type = 7 [(google.api.field_behavior) = OPTIONAL]; } // Basic algorithm for autoscaling. diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto index c48db0db367e..d55ea617419e 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -215,6 +215,22 @@ message Cluster { // The cluster config. message ClusterConfig { + // The type of the cluster. + enum ClusterType { + // Not set. + CLUSTER_TYPE_UNSPECIFIED = 0; + + // Standard dataproc cluster with a minimum of two primary workers. + STANDARD = 1; + + // https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/single-node-clusters + SINGLE_NODE = 2; + + // Clusters that can use only secondary workers and be scaled down to zero + // secondary worker nodes. + ZERO_SCALE = 3; + } + // The cluster tier. enum ClusterTier { // Not set. Works the same as CLUSTER_TIER_STANDARD. @@ -227,6 +243,9 @@ message ClusterConfig { CLUSTER_TIER_PREMIUM = 2; } + // Optional. The type of the cluster. + ClusterType cluster_type = 27 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The cluster tier. ClusterTier cluster_tier = 29 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-datastream/README.md b/java-datastream/README.md index 63616dff1dec..eda8a22503c8 100644 --- a/java-datastream/README.md +++ b/java-datastream/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datastream - 1.81.0 + 1.82.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datastream:1.81.0' +implementation 'com.google.cloud:google-cloud-datastream:1.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "1.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "1.82.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-datastream/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datastream.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastream/1.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastream/1.82.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-datastream/google-cloud-datastream-bom/pom.xml b/java-datastream/google-cloud-datastream-bom/pom.xml index 291b5dfa7789..adb840061d6e 100644 --- a/java-datastream/google-cloud-datastream-bom/pom.xml +++ b/java-datastream/google-cloud-datastream-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-datastream-bom - 1.83.0-SNAPSHOT + 1.84.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-datastream - 1.83.0-SNAPSHOT + 1.84.0 com.google.api.grpc grpc-google-cloud-datastream-v1alpha1 - 0.88.0-SNAPSHOT + 0.89.0 com.google.api.grpc grpc-google-cloud-datastream-v1 - 1.83.0-SNAPSHOT + 1.84.0 com.google.api.grpc proto-google-cloud-datastream-v1alpha1 - 0.88.0-SNAPSHOT + 0.89.0 com.google.api.grpc proto-google-cloud-datastream-v1 - 1.83.0-SNAPSHOT + 1.84.0
          diff --git a/java-datastream/google-cloud-datastream/pom.xml b/java-datastream/google-cloud-datastream/pom.xml index f1401dfbea5a..27507ffb78de 100644 --- a/java-datastream/google-cloud-datastream/pom.xml +++ b/java-datastream/google-cloud-datastream/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-datastream - 1.83.0-SNAPSHOT + 1.84.0 jar Google Datastream Datastream is a serverless and easy-to-use change data capture (CDC) and replication service. It allows you to synchronize data across heterogeneous databases and applications reliably, and with minimal latency and downtime. com.google.cloud google-cloud-datastream-parent - 1.83.0-SNAPSHOT + 1.84.0 google-cloud-datastream diff --git a/java-datastream/grpc-google-cloud-datastream-v1/pom.xml b/java-datastream/grpc-google-cloud-datastream-v1/pom.xml index 8767afadcc60..88fa384ac268 100644 --- a/java-datastream/grpc-google-cloud-datastream-v1/pom.xml +++ b/java-datastream/grpc-google-cloud-datastream-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-datastream-v1 - 1.83.0-SNAPSHOT + 1.84.0 grpc-google-cloud-datastream-v1 GRPC library for google-cloud-datastream com.google.cloud google-cloud-datastream-parent - 1.83.0-SNAPSHOT + 1.84.0 diff --git a/java-datastream/grpc-google-cloud-datastream-v1alpha1/pom.xml b/java-datastream/grpc-google-cloud-datastream-v1alpha1/pom.xml index 95914fb479c3..7d3c4c0849f0 100644 --- a/java-datastream/grpc-google-cloud-datastream-v1alpha1/pom.xml +++ b/java-datastream/grpc-google-cloud-datastream-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-datastream-v1alpha1 - 0.88.0-SNAPSHOT + 0.89.0 grpc-google-cloud-datastream-v1alpha1 GRPC library for google-cloud-datastream com.google.cloud google-cloud-datastream-parent - 1.83.0-SNAPSHOT + 1.84.0 diff --git a/java-datastream/pom.xml b/java-datastream/pom.xml index e04d3443ae0a..4b989dd92e1a 100644 --- a/java-datastream/pom.xml +++ b/java-datastream/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-datastream-parent pom - 1.83.0-SNAPSHOT + 1.84.0 Google Datastream Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-datastream - 1.83.0-SNAPSHOT + 1.84.0 com.google.api.grpc proto-google-cloud-datastream-v1 - 1.83.0-SNAPSHOT + 1.84.0 com.google.api.grpc grpc-google-cloud-datastream-v1 - 1.83.0-SNAPSHOT + 1.84.0 com.google.api.grpc grpc-google-cloud-datastream-v1alpha1 - 0.88.0-SNAPSHOT + 0.89.0 com.google.api.grpc proto-google-cloud-datastream-v1alpha1 - 0.88.0-SNAPSHOT + 0.89.0 diff --git a/java-datastream/proto-google-cloud-datastream-v1/pom.xml b/java-datastream/proto-google-cloud-datastream-v1/pom.xml index 0321692849e0..b498d245f0ac 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/pom.xml +++ b/java-datastream/proto-google-cloud-datastream-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-datastream-v1 - 1.83.0-SNAPSHOT + 1.84.0 proto-google-cloud-datastream-v1 Proto library for google-cloud-datastream com.google.cloud google-cloud-datastream-parent - 1.83.0-SNAPSHOT + 1.84.0 diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/pom.xml b/java-datastream/proto-google-cloud-datastream-v1alpha1/pom.xml index 727453dd6762..301ef98c6837 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/pom.xml +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-datastream-v1alpha1 - 0.88.0-SNAPSHOT + 0.89.0 proto-google-cloud-datastream-v1alpha1 Proto library for google-cloud-datastream com.google.cloud google-cloud-datastream-parent - 1.83.0-SNAPSHOT + 1.84.0 diff --git a/java-deploy/README.md b/java-deploy/README.md index 2daacd7146ee..5054fac29236 100644 --- a/java-deploy/README.md +++ b/java-deploy/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-deploy - 1.80.0 + 1.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-deploy:1.80.0' +implementation 'com.google.cloud:google-cloud-deploy:1.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "1.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "1.81.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-deploy/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-deploy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-deploy/1.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-deploy/1.81.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-deploy/google-cloud-deploy-bom/pom.xml b/java-deploy/google-cloud-deploy-bom/pom.xml index a55a5c10d330..b8642591e854 100644 --- a/java-deploy/google-cloud-deploy-bom/pom.xml +++ b/java-deploy/google-cloud-deploy-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-deploy-bom - 1.82.0-SNAPSHOT + 1.83.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-deploy - 1.82.0-SNAPSHOT + 1.83.0 com.google.api.grpc grpc-google-cloud-deploy-v1 - 1.82.0-SNAPSHOT + 1.83.0 com.google.api.grpc proto-google-cloud-deploy-v1 - 1.82.0-SNAPSHOT + 1.83.0 diff --git a/java-deploy/google-cloud-deploy/pom.xml b/java-deploy/google-cloud-deploy/pom.xml index ed7200911fd2..c2d9634e84a2 100644 --- a/java-deploy/google-cloud-deploy/pom.xml +++ b/java-deploy/google-cloud-deploy/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-deploy - 1.82.0-SNAPSHOT + 1.83.0 jar Google Google CLoud Deploy Google CLoud Deploy is a service that automates delivery of your applications to a series of target environments in a defined sequence com.google.cloud google-cloud-deploy-parent - 1.82.0-SNAPSHOT + 1.83.0 google-cloud-deploy diff --git a/java-deploy/grpc-google-cloud-deploy-v1/pom.xml b/java-deploy/grpc-google-cloud-deploy-v1/pom.xml index fd86902a0b9a..1f9295f8cd3b 100644 --- a/java-deploy/grpc-google-cloud-deploy-v1/pom.xml +++ b/java-deploy/grpc-google-cloud-deploy-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-deploy-v1 - 1.82.0-SNAPSHOT + 1.83.0 grpc-google-cloud-deploy-v1 GRPC library for google-cloud-deploy com.google.cloud google-cloud-deploy-parent - 1.82.0-SNAPSHOT + 1.83.0 diff --git a/java-deploy/pom.xml b/java-deploy/pom.xml index 2740296e2fc3..9b8c6d988173 100644 --- a/java-deploy/pom.xml +++ b/java-deploy/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-deploy-parent pom - 1.82.0-SNAPSHOT + 1.83.0 Google Google CLoud Deploy Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-deploy - 1.82.0-SNAPSHOT + 1.83.0 com.google.api.grpc grpc-google-cloud-deploy-v1 - 1.82.0-SNAPSHOT + 1.83.0 com.google.api.grpc proto-google-cloud-deploy-v1 - 1.82.0-SNAPSHOT + 1.83.0 diff --git a/java-deploy/proto-google-cloud-deploy-v1/pom.xml b/java-deploy/proto-google-cloud-deploy-v1/pom.xml index 2ee6b78e792d..3f6398703600 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/pom.xml +++ b/java-deploy/proto-google-cloud-deploy-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-deploy-v1 - 1.82.0-SNAPSHOT + 1.83.0 proto-google-cloud-deploy-v1 Proto library for google-cloud-deploy com.google.cloud google-cloud-deploy-parent - 1.82.0-SNAPSHOT + 1.83.0 diff --git a/java-developerconnect/README.md b/java-developerconnect/README.md index ea64b7d23aae..3d8886770200 100644 --- a/java-developerconnect/README.md +++ b/java-developerconnect/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-developerconnect - 0.39.0 + 0.40.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-developerconnect:0.39.0' +implementation 'com.google.cloud:google-cloud-developerconnect:0.40.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-developerconnect" % "0.39.0" +libraryDependencies += "com.google.cloud" % "google-cloud-developerconnect" % "0.40.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-developerconnect/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-developerconnect.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developerconnect/0.39.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developerconnect/0.40.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-developerconnect/google-cloud-developerconnect-bom/pom.xml b/java-developerconnect/google-cloud-developerconnect-bom/pom.xml index 0d93fc8ee66d..1cd32ce7f1fe 100644 --- a/java-developerconnect/google-cloud-developerconnect-bom/pom.xml +++ b/java-developerconnect/google-cloud-developerconnect-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-developerconnect-bom - 0.41.0-SNAPSHOT + 0.42.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-developerconnect - 0.41.0-SNAPSHOT + 0.42.0 com.google.api.grpc grpc-google-cloud-developerconnect-v1 - 0.41.0-SNAPSHOT + 0.42.0 com.google.api.grpc proto-google-cloud-developerconnect-v1 - 0.41.0-SNAPSHOT + 0.42.0 diff --git a/java-developerconnect/google-cloud-developerconnect/pom.xml b/java-developerconnect/google-cloud-developerconnect/pom.xml index c96866f2b87b..2f48137f6c22 100644 --- a/java-developerconnect/google-cloud-developerconnect/pom.xml +++ b/java-developerconnect/google-cloud-developerconnect/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-developerconnect - 0.41.0-SNAPSHOT + 0.42.0 jar Google Developer Connect API Developer Connect API Connect third-party source code management to Google com.google.cloud google-cloud-developerconnect-parent - 0.41.0-SNAPSHOT + 0.42.0 google-cloud-developerconnect diff --git a/java-developerconnect/grpc-google-cloud-developerconnect-v1/pom.xml b/java-developerconnect/grpc-google-cloud-developerconnect-v1/pom.xml index dba803503f4f..fbbfe2b21250 100644 --- a/java-developerconnect/grpc-google-cloud-developerconnect-v1/pom.xml +++ b/java-developerconnect/grpc-google-cloud-developerconnect-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-developerconnect-v1 - 0.41.0-SNAPSHOT + 0.42.0 grpc-google-cloud-developerconnect-v1 GRPC library for google-cloud-developerconnect com.google.cloud google-cloud-developerconnect-parent - 0.41.0-SNAPSHOT + 0.42.0 diff --git a/java-developerconnect/pom.xml b/java-developerconnect/pom.xml index 2055b37e09f8..37cc5ba1ba6d 100644 --- a/java-developerconnect/pom.xml +++ b/java-developerconnect/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-developerconnect-parent pom - 0.41.0-SNAPSHOT + 0.42.0 Google Developer Connect API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-developerconnect - 0.41.0-SNAPSHOT + 0.42.0 com.google.api.grpc grpc-google-cloud-developerconnect-v1 - 0.41.0-SNAPSHOT + 0.42.0 com.google.api.grpc proto-google-cloud-developerconnect-v1 - 0.41.0-SNAPSHOT + 0.42.0 diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/pom.xml b/java-developerconnect/proto-google-cloud-developerconnect-v1/pom.xml index 329fbe300048..9c5426f2547a 100644 --- a/java-developerconnect/proto-google-cloud-developerconnect-v1/pom.xml +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-developerconnect-v1 - 0.41.0-SNAPSHOT + 0.42.0 proto-google-cloud-developerconnect-v1 Proto library for google-cloud-developerconnect com.google.cloud google-cloud-developerconnect-parent - 0.41.0-SNAPSHOT + 0.42.0 diff --git a/java-devicestreaming/README.md b/java-devicestreaming/README.md index 448480d6a16c..26e77d70caad 100644 --- a/java-devicestreaming/README.md +++ b/java-devicestreaming/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-devicestreaming - 0.22.0 + 0.23.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-devicestreaming:0.22.0' +implementation 'com.google.cloud:google-cloud-devicestreaming:0.23.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-devicestreaming" % "0.22.0" +libraryDependencies += "com.google.cloud" % "google-cloud-devicestreaming" % "0.23.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-devicestreaming/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-devicestreaming.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-devicestreaming/0.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-devicestreaming/0.23.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-devicestreaming/google-cloud-devicestreaming-bom/pom.xml b/java-devicestreaming/google-cloud-devicestreaming-bom/pom.xml index 84f6f2d46a66..4dc5dc1d1083 100644 --- a/java-devicestreaming/google-cloud-devicestreaming-bom/pom.xml +++ b/java-devicestreaming/google-cloud-devicestreaming-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-devicestreaming-bom - 0.24.0-SNAPSHOT + 0.25.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-devicestreaming - 0.24.0-SNAPSHOT + 0.25.0 com.google.api.grpc grpc-google-cloud-devicestreaming-v1 - 0.24.0-SNAPSHOT + 0.25.0 com.google.api.grpc proto-google-cloud-devicestreaming-v1 - 0.24.0-SNAPSHOT + 0.25.0 diff --git a/java-devicestreaming/google-cloud-devicestreaming/pom.xml b/java-devicestreaming/google-cloud-devicestreaming/pom.xml index 85e167d4831d..b2770b957192 100644 --- a/java-devicestreaming/google-cloud-devicestreaming/pom.xml +++ b/java-devicestreaming/google-cloud-devicestreaming/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-devicestreaming - 0.24.0-SNAPSHOT + 0.25.0 jar Google Device Streaming API Device Streaming API The Cloud API for device streaming usage. com.google.cloud google-cloud-devicestreaming-parent - 0.24.0-SNAPSHOT + 0.25.0 google-cloud-devicestreaming diff --git a/java-devicestreaming/grpc-google-cloud-devicestreaming-v1/pom.xml b/java-devicestreaming/grpc-google-cloud-devicestreaming-v1/pom.xml index fc5abba2b839..2deff11df51a 100644 --- a/java-devicestreaming/grpc-google-cloud-devicestreaming-v1/pom.xml +++ b/java-devicestreaming/grpc-google-cloud-devicestreaming-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-devicestreaming-v1 - 0.24.0-SNAPSHOT + 0.25.0 grpc-google-cloud-devicestreaming-v1 GRPC library for google-cloud-devicestreaming com.google.cloud google-cloud-devicestreaming-parent - 0.24.0-SNAPSHOT + 0.25.0 diff --git a/java-devicestreaming/pom.xml b/java-devicestreaming/pom.xml index ca99c52c9b24..284c981c04c3 100644 --- a/java-devicestreaming/pom.xml +++ b/java-devicestreaming/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-devicestreaming-parent pom - 0.24.0-SNAPSHOT + 0.25.0 Google Device Streaming API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-devicestreaming - 0.24.0-SNAPSHOT + 0.25.0 com.google.api.grpc grpc-google-cloud-devicestreaming-v1 - 0.24.0-SNAPSHOT + 0.25.0 com.google.api.grpc proto-google-cloud-devicestreaming-v1 - 0.24.0-SNAPSHOT + 0.25.0 diff --git a/java-devicestreaming/proto-google-cloud-devicestreaming-v1/pom.xml b/java-devicestreaming/proto-google-cloud-devicestreaming-v1/pom.xml index 3aca79b4788f..36269408b52a 100644 --- a/java-devicestreaming/proto-google-cloud-devicestreaming-v1/pom.xml +++ b/java-devicestreaming/proto-google-cloud-devicestreaming-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-devicestreaming-v1 - 0.24.0-SNAPSHOT + 0.25.0 proto-google-cloud-devicestreaming-v1 Proto library for google-cloud-devicestreaming com.google.cloud google-cloud-devicestreaming-parent - 0.24.0-SNAPSHOT + 0.25.0 diff --git a/java-dialogflow-cx/README.md b/java-dialogflow-cx/README.md index bc34c57aa901..c59d25423768 100644 --- a/java-dialogflow-cx/README.md +++ b/java-dialogflow-cx/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dialogflow-cx - 0.93.0 + 0.94.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.93.0' +implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.94.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.93.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.94.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dialogflow-cx.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.93.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.94.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx-bom/pom.xml b/java-dialogflow-cx/google-cloud-dialogflow-cx-bom/pom.xml index 18639cf30bf2..127b0dd0059b 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx-bom/pom.xml +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dialogflow-cx-bom - 0.95.0-SNAPSHOT + 0.96.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-dialogflow-cx - 0.95.0-SNAPSHOT + 0.96.0 com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3beta1 - 0.95.0-SNAPSHOT + 0.96.0 com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3 - 0.95.0-SNAPSHOT + 0.96.0 com.google.api.grpc proto-google-cloud-dialogflow-cx-v3beta1 - 0.95.0-SNAPSHOT + 0.96.0 com.google.api.grpc proto-google-cloud-dialogflow-cx-v3 - 0.95.0-SNAPSHOT + 0.96.0 diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/pom.xml b/java-dialogflow-cx/google-cloud-dialogflow-cx/pom.xml index ed632cd11f2b..54b23145cef5 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/pom.xml +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dialogflow-cx - 0.95.0-SNAPSHOT + 0.96.0 jar Google Dialogflow CX provides a new way of designing agents, taking a state machine approach to agent design. This gives you clear and explicit control over a conversation, a better end-user experience, and a better development workflow. com.google.cloud google-cloud-dialogflow-cx-parent - 0.95.0-SNAPSHOT + 0.96.0 google-cloud-dialogflow-cx diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/pom.xml b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/pom.xml index 59d355673759..af6f821d559b 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/pom.xml +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3 - 0.95.0-SNAPSHOT + 0.96.0 grpc-google-cloud-dialogflow-cx-v3 GRPC library for grpc-google-cloud-dialogflow-cx-v3 com.google.cloud google-cloud-dialogflow-cx-parent - 0.95.0-SNAPSHOT + 0.96.0 diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/pom.xml b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/pom.xml index 9b5f5914d9aa..8b265104ddb6 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/pom.xml +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3beta1 - 0.95.0-SNAPSHOT + 0.96.0 grpc-google-cloud-dialogflow-cx-v3beta1 GRPC library for grpc-google-cloud-dialogflow-cx-v3beta1 com.google.cloud google-cloud-dialogflow-cx-parent - 0.95.0-SNAPSHOT + 0.96.0 diff --git a/java-dialogflow-cx/pom.xml b/java-dialogflow-cx/pom.xml index 2d176f91a5fe..ce9fe86dfe35 100644 --- a/java-dialogflow-cx/pom.xml +++ b/java-dialogflow-cx/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dialogflow-cx-parent pom - 0.95.0-SNAPSHOT + 0.96.0 Google Dialogflow CX Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-dialogflow-cx - 0.95.0-SNAPSHOT + 0.96.0 com.google.api.grpc proto-google-cloud-dialogflow-cx-v3beta1 - 0.95.0-SNAPSHOT + 0.96.0 com.google.api.grpc proto-google-cloud-dialogflow-cx-v3 - 0.95.0-SNAPSHOT + 0.96.0 com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3beta1 - 0.95.0-SNAPSHOT + 0.96.0 com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3 - 0.95.0-SNAPSHOT + 0.96.0 diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/pom.xml b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/pom.xml index 966fc02ceb68..cc7c882ee6f8 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/pom.xml +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dialogflow-cx-v3 - 0.95.0-SNAPSHOT + 0.96.0 proto-google-cloud-dialogflow-cx-v3 PROTO library for proto-google-cloud-dialogflow-cx-v3 com.google.cloud google-cloud-dialogflow-cx-parent - 0.95.0-SNAPSHOT + 0.96.0 diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/pom.xml b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/pom.xml index fb577699807a..3242bb4d633b 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/pom.xml +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dialogflow-cx-v3beta1 - 0.95.0-SNAPSHOT + 0.96.0 proto-google-cloud-dialogflow-cx-v3beta1 PROTO library for proto-google-cloud-dialogflow-cx-v3beta1 com.google.cloud google-cloud-dialogflow-cx-parent - 0.95.0-SNAPSHOT + 0.96.0 diff --git a/java-dialogflow/README.md b/java-dialogflow/README.md index a217f74877f2..7fc024881782 100644 --- a/java-dialogflow/README.md +++ b/java-dialogflow/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dialogflow - 4.88.0 + 4.89.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow:4.88.0' +implementation 'com.google.cloud:google-cloud-dialogflow:4.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.89.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dialogflow/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dialogflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.89.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dialogflow/google-cloud-dialogflow-bom/pom.xml b/java-dialogflow/google-cloud-dialogflow-bom/pom.xml index a1ece1030a38..c29a3e603abe 100644 --- a/java-dialogflow/google-cloud-dialogflow-bom/pom.xml +++ b/java-dialogflow/google-cloud-dialogflow-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dialogflow-bom - 4.90.0-SNAPSHOT + 4.91.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-dialogflow - 4.90.0-SNAPSHOT + 4.91.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2beta1 - 0.188.0-SNAPSHOT + 0.189.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2 - 4.90.0-SNAPSHOT + 4.91.0 com.google.api.grpc proto-google-cloud-dialogflow-v2 - 4.90.0-SNAPSHOT + 4.91.0 com.google.api.grpc proto-google-cloud-dialogflow-v2beta1 - 0.188.0-SNAPSHOT + 0.189.0 diff --git a/java-dialogflow/google-cloud-dialogflow/pom.xml b/java-dialogflow/google-cloud-dialogflow/pom.xml index 82ec46ee5ed8..e506b3e6ba86 100644 --- a/java-dialogflow/google-cloud-dialogflow/pom.xml +++ b/java-dialogflow/google-cloud-dialogflow/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dialogflow - 4.90.0-SNAPSHOT + 4.91.0 jar Google Cloud Dialog Flow API Java idiomatic client for Google Cloud Dialog Flow API com.google.cloud google-cloud-dialogflow-parent - 4.90.0-SNAPSHOT + 4.91.0 google-cloud-dialogflow diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java index 138dd8183abc..fc03c19bcf11 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java @@ -1320,6 +1320,7 @@ public final AnalyzeContentResponse analyzeContent(AnalyzeContentRequest request * .setCxCurrentPage("cxCurrentPage1596907507") * .setEnableExtendedStreaming(true) * .setEnablePartialAutomatedAgentReply(true) + * .setOutputMultipleUtterances(true) * .setEnableDebuggingInfo(true) * .build(); * bidiStream.send(request); diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientTest.java index c68cbfabd24d..52736ec0d5b3 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientTest.java +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientTest.java @@ -740,6 +740,7 @@ public void streamingAnalyzeContentTest() throws Exception { .setCxCurrentPage("cxCurrentPage1596907507") .setEnableExtendedStreaming(true) .setEnablePartialAutomatedAgentReply(true) + .setOutputMultipleUtterances(true) .setEnableDebuggingInfo(true) .build(); @@ -776,6 +777,7 @@ public void streamingAnalyzeContentExceptionTest() throws Exception { .setCxCurrentPage("cxCurrentPage1596907507") .setEnableExtendedStreaming(true) .setEnablePartialAutomatedAgentReply(true) + .setOutputMultipleUtterances(true) .setEnableDebuggingInfo(true) .build(); diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2/pom.xml b/java-dialogflow/grpc-google-cloud-dialogflow-v2/pom.xml index 6df8482afee0..ab8057e799b0 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2/pom.xml +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2 - 4.90.0-SNAPSHOT + 4.91.0 grpc-google-cloud-dialogflow-v2 GRPC library for grpc-google-cloud-dialogflow-v2 com.google.cloud google-cloud-dialogflow-parent - 4.90.0-SNAPSHOT + 4.91.0 diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/pom.xml b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/pom.xml index fabc889cc565..5bdc83889243 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/pom.xml +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2beta1 - 0.188.0-SNAPSHOT + 0.189.0 grpc-google-cloud-dialogflow-v2beta1 GRPC library for grpc-google-cloud-dialogflow-v2beta1 com.google.cloud google-cloud-dialogflow-parent - 4.90.0-SNAPSHOT + 4.91.0 diff --git a/java-dialogflow/pom.xml b/java-dialogflow/pom.xml index 70d699a2efd2..4a979bcdbaee 100644 --- a/java-dialogflow/pom.xml +++ b/java-dialogflow/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dialogflow-parent pom - 4.90.0-SNAPSHOT + 4.91.0 Google Cloud Dialog Flow API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-dialogflow-v2 - 4.90.0-SNAPSHOT + 4.91.0 com.google.api.grpc proto-google-cloud-dialogflow-v2beta1 - 0.188.0-SNAPSHOT + 0.189.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2beta1 - 0.188.0-SNAPSHOT + 0.189.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2 - 4.90.0-SNAPSHOT + 4.91.0 com.google.cloud google-cloud-dialogflow - 4.90.0-SNAPSHOT + 4.91.0 diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/pom.xml b/java-dialogflow/proto-google-cloud-dialogflow-v2/pom.xml index b05fd68cc5e5..c89049e07a07 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/pom.xml +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dialogflow-v2 - 4.90.0-SNAPSHOT + 4.91.0 proto-google-cloud-dialogflow-v2 PROTO library for proto-google-cloud-dialogflow-v2 com.google.cloud google-cloud-dialogflow-parent - 4.90.0-SNAPSHOT + 4.91.0 diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/pom.xml b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/pom.xml index 2cd7caed9596..c7690e035ba7 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/pom.xml +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dialogflow-v2beta1 - 0.188.0-SNAPSHOT + 0.189.0 proto-google-cloud-dialogflow-v2beta1 PROTO library for proto-google-cloud-dialogflow-v2beta1 com.google.cloud google-cloud-dialogflow-parent - 4.90.0-SNAPSHOT + 4.91.0 diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java index 5576c7518a88..864779f4dac2 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java @@ -524,7 +524,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017dtmf_parameters\030\t" + " \001(\0132/.google.cloud.dialogflow.v2beta1.DtmfParameters\"(\n" + "\017InputTextConfig\022\025\n\r" - + "language_code\030\001 \001(\t\"\343\006\n" + + "language_code\030\001 \001(\t\"\214\007\n" + "\036StreamingAnalyzeContentRequest\022B\n" + "\013participant\030\001 \001(\tB-\340A\002\372A\'\n" + "%dialogflow.googleapis.com/Participant\022I\n" @@ -548,7 +548,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\027.google.protobuf.Struct\022\027\n" + "\017cx_current_page\030\017 \001(\t\022&\n" + "\031enable_extended_streaming\030\013 \001(\010B\003\340A\001\0221\n" - + "$enable_partial_automated_agent_reply\030\014 \001(\010B\003\340A\001\022\035\n" + + "$enable_partial_automated_agent_reply\030\014 \001(\010B\003\340A\001\022\'\n" + + "\032output_multiple_utterances\030\022 \001(\010B\003\340A\001\022\035\n" + "\025enable_debugging_info\030\023 \001(\010B\010\n" + "\006configB\007\n" + "\005input\"\315\005\n" @@ -557,17 +558,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132;.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult\022\022\n\n" + "reply_text\030\002 \001(\t\022A\n" + "\013reply_audio\030\003 \001(\0132,.google.cloud.dialogflow.v2beta1.OutputAudio\022S\n" - + "\025automated_agent_reply\030\004 \001(\01324.google.cl" - + "oud.dialogflow.v2beta1.AutomatedAgentReply\0229\n" + + "\025automated_agent_reply\030\004 \001(\01324.google.c" + + "loud.dialogflow.v2beta1.AutomatedAgentReply\0229\n" + "\007message\030\006 \001(\0132(.google.cloud.dialogflow.v2beta1.Message\022Y\n" + "\036human_agent_suggestion_results\030\007" + " \003(\01321.google.cloud.dialogflow.v2beta1.SuggestionResult\022V\n" - + "\033end_user_suggestion_results\030\010 \003(\01321.google.c" - + "loud.dialogflow.v2beta1.SuggestionResult\022H\n" + + "\033end_user_suggestion_results\030\010 \003(\01321.google." + + "cloud.dialogflow.v2beta1.SuggestionResult\022H\n" + "\017dtmf_parameters\030\n" + " \001(\0132/.google.cloud.dialogflow.v2beta1.DtmfParameters\022W\n" - + "\016debugging_info\030\013 \001(\0132?.google.cloud.dialog" - + "flow.v2beta1.CloudConversationDebuggingInfo\022\024\n" + + "\016debugging_info\030\013 \001(\0132?.google.cloud.dialo" + + "gflow.v2beta1.CloudConversationDebuggingInfo\022\024\n" + "\014speech_model\030\r" + " \001(\t\"j\n" + "\024AnnotatedMessagePart\022\014\n" @@ -599,8 +600,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "MetadataEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"y\n" - + "\020SmartReplyAnswer\022\r" - + "\n" + + "\020SmartReplyAnswer\022\r\n" + "\005reply\030\001 \001(\t\022\022\n\n" + "confidence\030\002 \001(\002\022B\n\r" + "answer_record\030\003 \001(\tB+\372A(\n" @@ -613,26 +613,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026DialogflowAssistAnswer\022D\n" + "\014query_result\030\001" + " \001(\0132,.google.cloud.dialogflow.v2beta1.QueryResultH\000\022N\n" - + "\021intent_suggestion\030\005 \001(\0132" - + "1.google.cloud.dialogflow.v2beta1.IntentSuggestionH\000\022\025\n\r" + + "\021intent_suggestion\030\005 \001(\013" + + "21.google.cloud.dialogflow.v2beta1.IntentSuggestionH\000\022\025\n\r" + "answer_record\030\002 \001(\tB\010\n" + "\006result\"\261\006\n" + "\020SuggestionResult\022#\n" + "\005error\030\001 \001(\0132\022.google.rpc.StatusH\000\022]\n" - + "\031suggest_articles_response\030\002 \001(\01328.google.cloud.dialog" - + "flow.v2beta1.SuggestArticlesResponseH\000\022l\n" - + "!suggest_knowledge_assist_response\030\010 \001(" - + "\0132?.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistResponseH\000\022b\n" - + "\034suggest_faq_answers_response\030\003 \001(\0132:.google.clou" - + "d.dialogflow.v2beta1.SuggestFaqAnswersResponseH\000\022f\n" + + "\031suggest_articles_response\030\002 \001(\01328.google.cloud.dialo" + + "gflow.v2beta1.SuggestArticlesResponseH\000\022l\n" + + "!suggest_knowledge_assist_response\030\010 \001" + + "(\0132?.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistResponseH\000\022b\n" + + "\034suggest_faq_answers_response\030\003 \001(\0132:.google.clo" + + "ud.dialogflow.v2beta1.SuggestFaqAnswersResponseH\000\022f\n" + "\036suggest_smart_replies_response\030\004" + " \001(\0132<.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponseH\000\022p\n" - + "#suggest_dialogflow_assists_response\030\005 \001(\0132A." - + "google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponseH\000\022o\n" - + "\"suggest_entity_extraction_response\030\007 \001(\0132A.google." - + "cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponseH\000\022e\n" - + "\035generate_suggestions_response\030\t \001(\0132<.google.cloud.dialog" - + "flow.v2beta1.GenerateSuggestionsResponseH\000B\025\n" + + "#suggest_dialogflow_assists_response\030\005 \001(\0132A" + + ".google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponseH\000\022o\n" + + "\"suggest_entity_extraction_response\030\007 \001(\0132A.google" + + ".cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponseH\000\022e\n" + + "\035generate_suggestions_response\030\t \001(\0132<.google.cloud.dialo" + + "gflow.v2beta1.GenerateSuggestionsResponseH\000B\025\n" + "\023suggestion_response\"\217\002\n" + "\026SuggestArticlesRequest\022=\n" + "\006parent\030\001 \001(\tB-\340A\002\372A\'\n" @@ -640,11 +640,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016latest_message\030\002 \001(\tB)\340A\001\372A#\n" + "!dialogflow.googleapis.com/Message\022\031\n" + "\014context_size\030\003 \001(\005B\003\340A\001\022X\n" - + "\023assist_query_params\030\004 \001(\01326" - + ".google.cloud.dialogflow.v2beta1.AssistQueryParametersB\003\340A\001\"\220\001\n" + + "\023assist_query_params\030\004 \001(\0132" + + "6.google.cloud.dialogflow.v2beta1.AssistQueryParametersB\003\340A\001\"\220\001\n" + "\027SuggestArticlesResponse\022G\n" - + "\017article_answers\030\001 \003(\0132..googl" - + "e.cloud.dialogflow.v2beta1.ArticleAnswer\022\026\n" + + "\017article_answers\030\001 \003(\0132..goog" + + "le.cloud.dialogflow.v2beta1.ArticleAnswer\022\026\n" + "\016latest_message\030\002 \001(\t\022\024\n" + "\014context_size\030\003 \001(\005\"\221\002\n" + "\030SuggestFaqAnswersRequest\022=\n" @@ -653,8 +653,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016latest_message\030\002 \001(\tB)\340A\001\372A#\n" + "!dialogflow.googleapis.com/Message\022\031\n" + "\014context_size\030\003 \001(\005B\003\340A\001\022X\n" - + "\023assist_query_params\030\004 \001(\01326.google.cloud.dia" - + "logflow.v2beta1.AssistQueryParametersB\003\340A\001\"\212\001\n" + + "\023assist_query_params\030\004 \001(\01326.google.cloud.di" + + "alogflow.v2beta1.AssistQueryParametersB\003\340A\001\"\212\001\n" + "\031SuggestFaqAnswersResponse\022?\n" + "\013faq_answers\030\001" + " \003(\0132*.google.cloud.dialogflow.v2beta1.FaqAnswer\022\026\n" @@ -675,13 +675,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!dialogflow.googleapis.com/Message\022\024\n" + "\014context_size\030\003 \001(\005\"\253\003\n" + "\033GenerateSuggestionsResponse\022|\n" - + "\034generator_suggestion_answers\030\001 \003(\0132V.google.cloud.d" - + "ialogflow.v2beta1.GenerateSuggestionsResponse.GeneratorSuggestionAnswer\022>\n" + + "\034generator_suggestion_answers\030\001 \003(\0132V.google.cloud." + + "dialogflow.v2beta1.GenerateSuggestionsResponse.GeneratorSuggestionAnswer\022>\n" + "\016latest_message\030\002 \001(\tB&\372A#\n" + "!dialogflow.googleapis.com/Message\032\315\001\n" + "\031GeneratorSuggestionAnswer\022R\n" - + "\024generator_suggestion\030\001 \001(\01324.go" - + "ogle.cloud.dialogflow.v2beta1.GeneratorSuggestion\022\030\n" + + "\024generator_suggestion\030\001 \001(\01324.g" + + "oogle.cloud.dialogflow.v2beta1.GeneratorSuggestion\022\030\n" + "\020source_generator\030\002 \001(\t\022B\n\r" + "answer_record\030\003 \001(\tB+\372A(\n" + "&dialogflow.googleapis.com/AnswerRecord\"\254\001\n" @@ -694,16 +694,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\t\022E\n" + "\010articles\030\002" + " \003(\01323.google.cloud.dialogflow.v2beta1.Suggestion.Article\022J\n" - + "\013faq_answers\030\004 \003(\0132" - + "5.google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer\022/\n" + + "\013faq_answers\030\004 \003(\013" + + "25.google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer\022/\n" + "\013create_time\030\005 \001(\0132\032.google.protobuf.Timestamp\022\026\n" + "\016latest_message\030\007 \001(\t\032\324\001\n" + "\007Article\022\r\n" + "\005title\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022\020\n" + "\010snippets\030\003 \003(\t\022S\n" - + "\010metadata\030\005 " - + "\003(\0132A.google.cloud.dialogflow.v2beta1.Suggestion.Article.MetadataEntry\022\025\n\r" + + "\010metadata\030\005" + + " \003(\0132A.google.cloud.dialogflow.v2beta1.Suggestion.Article.MetadataEntry\022\025\n\r" + "answer_record\030\006 \001(\t\032/\n\r" + "MetadataEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -740,22 +740,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004text\030\001" + " \001(\01325.google.cloud.dialogflow.v2beta1.ResponseMessage.TextH\000\022*\n" + "\007payload\030\002 \001(\0132\027.google.protobuf.StructH\000\022_\n" - + "\022live_agent_handoff\030\003 \001(\0132A.google.cloud.dialogflow" - + ".v2beta1.ResponseMessage.LiveAgentHandoffH\000\022Z\n" - + "\017end_interaction\030\004 \001(\0132?.google.cl" - + "oud.dialogflow.v2beta1.ResponseMessage.EndInteractionH\000\022R\n" - + "\013mixed_audio\030\005 \001(\0132;.g" - + "oogle.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudioH\000\022i\n" - + "\027telephony_transfer_call\030\006 \001(\0132F.google.cloud.dialogflow.v" - + "2beta1.ResponseMessage.TelephonyTransferCallH\000\032\024\n" + + "\022live_agent_handoff\030\003 \001(\0132A.google.cloud.dialogflo" + + "w.v2beta1.ResponseMessage.LiveAgentHandoffH\000\022Z\n" + + "\017end_interaction\030\004 \001(\0132?.google.c" + + "loud.dialogflow.v2beta1.ResponseMessage.EndInteractionH\000\022R\n" + + "\013mixed_audio\030\005 \001(\0132;." + + "google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudioH\000\022i\n" + + "\027telephony_transfer_call\030\006 \001(\0132F.google.cloud.dialogflow." + + "v2beta1.ResponseMessage.TelephonyTransferCallH\000\032\024\n" + "\004Text\022\014\n" + "\004text\030\001 \003(\t\032=\n" + "\020LiveAgentHandoff\022)\n" + "\010metadata\030\001 \001(\0132\027.google.protobuf.Struct\032\020\n" + "\016EndInteraction\032\276\001\n\n" + "MixedAudio\022U\n" - + "\010segments\030\001 \003(\0132C.google.cloud.di" - + "alogflow.v2beta1.ResponseMessage.MixedAudio.Segment\032Y\n" + + "\010segments\030\001 \003(\0132C.google.cloud.d" + + "ialogflow.v2beta1.ResponseMessage.MixedAudio.Segment\032Y\n" + "\007Segment\022\017\n" + "\005audio\030\001 \001(\014H\000\022\r\n" + "\003uri\030\002 \001(\tH\000\022#\n" @@ -779,24 +779,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016latest_message\030\002 \001(\t\022\024\n" + "\014context_size\030\003 \001(\005\"\264\006\n" + "\025KnowledgeAssistAnswer\022^\n" - + "\017suggested_query\030\001 \001(\0132E.google.cloud.dialogflow.v2be" - + "ta1.KnowledgeAssistAnswer.SuggestedQuery\022f\n" - + "\026suggested_query_answer\030\002 \001(\0132F.googl" - + "e.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer\022\025\n\r" + + "\017suggested_query\030\001 \001(\0132E.google.cloud.dialogflow.v2b" + + "eta1.KnowledgeAssistAnswer.SuggestedQuery\022f\n" + + "\026suggested_query_answer\030\002 \001(\0132F.goog" + + "le.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer\022\025\n\r" + "answer_record\030\003 \001(\t\032$\n" + "\016SuggestedQuery\022\022\n\n" + "query_text\030\001 \001(\t\032\225\004\n" + "\017KnowledgeAnswer\022\023\n" + "\013answer_text\030\001 \001(\t\022f\n\n" - + "faq_source\030\003 \001(\0132P.google.clou" - + "d.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceH\000\022t\n" - + "\021generative_source\030\004 \001(\0132W.google.cloud.dialogf" - + "low.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceH\000\032\035\n" + + "faq_source\030\003 \001(\0132P.google.clo" + + "ud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceH\000\022t\n" + + "\021generative_source\030\004 \001(\0132W.google.cloud.dialog" + + "flow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceH\000\032\035\n" + "\tFaqSource\022\020\n" + "\010question\030\002 \001(\t\032\345\001\n" + "\020GenerativeSource\022q\n" - + "\010snippets\030\001 \003(\0132_.google.cloud.dialog" - + "flow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet\032^\n" + + "\010snippets\030\001 \003(\0132_.google.cloud.dialo" + + "gflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet\032^\n" + "\007Snippet\022\013\n" + "\003uri\030\002 \001(\t\022\014\n" + "\004text\030\003 \001(\t\022\r\n" @@ -804,26 +804,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010metadata\030\005 \001(\0132\027.google.protobuf.StructB\010\n" + "\006source\"\327\n\n" + "\"BidiStreamingAnalyzeContentRequest\022\\\n" - + "\006config\030\001 \001(\0132J.g" - + "oogle.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.ConfigH\000\022Z\n" - + "\005input\030\002 \001(\0132I.google.cloud.dialogflow.v2be" - + "ta1.BidiStreamingAnalyzeContentRequest.InputH\000\032\352\005\n" + + "\006config\030\001 \001(\0132J." + + "google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.ConfigH\000\022Z\n" + + "\005input\030\002 \001(\0132I.google.cloud.dialogflow.v2b" + + "eta1.BidiStreamingAnalyzeContentRequest.InputH\000\032\352\005\n" + "\006Config\022B\n" + "\013participant\030\001 \001(\tB-\340A\002\372A\'\n" + "%dialogflow.googleapis.com/Participant\022}\n" - + "\024voice_session_config\030\002 \001(\0132].go" - + "ogle.cloud.dialogflow.v2beta1.BidiStream" - + "ingAnalyzeContentRequest.Config.VoiceSessionConfigH\000\022A\n" + + "\024voice_session_config\030\002 \001(\0132].google.cloud.dialogflow.v2beta1.BidiStrea" + + "mingAnalyzeContentRequest.Config.VoiceSessionConfigH\000\022A\n" + " initial_virtual_agent_parameters\030\003" + " \001(\0132\027.google.protobuf.Struct\022\\\n" - + "\"initial_virtual_agent_query_params\030\004 " - + "\001(\01320.google.cloud.dialogflow.v2beta1.QueryParameters\032\361\002\n" + + "\"initial_virtual_agent_query_params\030\004" + + " \001(\01320.google.cloud.dialogflow.v2beta1.QueryParameters\032\361\002\n" + "\022VoiceSessionConfig\022Q\n" - + "\024input_audio_encoding\030\001 \001(\0162..google.clou" - + "d.dialogflow.v2beta1.AudioEncodingB\003\340A\002\022*\n" + + "\024input_audio_encoding\030\001 \001(\0162..google.clo" + + "ud.dialogflow.v2beta1.AudioEncodingB\003\340A\002\022*\n" + "\035input_audio_sample_rate_hertz\030\002 \001(\005B\003\340A\002\022X\n" - + "\025output_audio_encoding\030\003 \001(\01624.goo" - + "gle.cloud.dialogflow.v2beta1.OutputAudioEncodingB\003\340A\002\022+\n" + + "\025output_audio_encoding\030\003 \001(\01624.go" + + "ogle.cloud.dialogflow.v2beta1.OutputAudioEncodingB\003\340A\002\022+\n" + "\036output_audio_sample_rate_hertz\030\004 \001(\005B\003\340A\002\022+\n" + "\036enable_cx_proactive_processing\030\005 \001(\010B\003\340A\001\022(\n" + "\033enable_streaming_synthesize\030\027 \001(\010B\003\340A\001B\010\n" @@ -837,129 +836,129 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\027.google.protobuf.StructB\003\340A\001B\016\n" + "\014main_content\032\306\001\n" + "\005Input\022\017\n" - + "\005audio\030\001 \001(\014H\000\022D\n" - + "\004dtmf\030\002 \001(\01324.google.cloud.dial", - "ogflow.v2beta1.TelephonyDtmfEventsH\000\022]\n\004" - + "turn\030\003 \001(\0132M.google.cloud.dialogflow.v2b" - + "eta1.BidiStreamingAnalyzeContentRequest." - + "TurnInputH\000B\007\n\005inputB\t\n\007request\"\345\003\n#Bidi" - + "StreamingAnalyzeContentResponse\022Y\n\022recog" - + "nition_result\030\001 \001(\0132;.google.cloud.dialo" - + "gflow.v2beta1.StreamingRecognitionResult" - + "H\000\022m\n\017barge_in_signal\030\002 \001(\0132R.google.clo" - + "ud.dialogflow.v2beta1.BidiStreamingAnaly" - + "zeContentResponse.BargeInSignalH\000\022[\n\030ana" - + "lyze_content_response\030\003 \001(\01327.google.clo" - + "ud.dialogflow.v2beta1.AnalyzeContentResp" - + "onseH\000\022j\n\rturn_complete\030\004 \001(\0132Q.google.c" - + "loud.dialogflow.v2beta1.BidiStreamingAna" - + "lyzeContentResponse.TurnCompleteH\000\032\017\n\rBa" - + "rgeInSignal\032\016\n\014TurnCompleteB\n\n\010response2" - + "\262\037\n\014Participants\022\271\002\n\021CreateParticipant\0229" - + ".google.cloud.dialogflow.v2beta1.CreateP" - + "articipantRequest\032,.google.cloud.dialogf" - + "low.v2beta1.Participant\"\272\001\332A\022parent,part" - + "icipant\202\323\344\223\002\236\001\"9/v2beta1/{parent=project" - + "s/*/conversations/*}/participants:\013parti" - + "cipantZT\"E/v2beta1/{parent=projects/*/lo" - + "cations/*/conversations/*}/participants:" - + "\013participant\022\213\002\n\016GetParticipant\0226.google" - + ".cloud.dialogflow.v2beta1.GetParticipant" - + "Request\032,.google.cloud.dialogflow.v2beta" - + "1.Participant\"\222\001\332A\004name\202\323\344\223\002\204\001\0229/v2beta1" - + "/{name=projects/*/conversations/*/partic" - + "ipants/*}ZG\022E/v2beta1/{name=projects/*/l" - + "ocations/*/conversations/*/participants/" - + "*}\022\236\002\n\020ListParticipants\0228.google.cloud.d" - + "ialogflow.v2beta1.ListParticipantsReques" - + "t\0329.google.cloud.dialogflow.v2beta1.List" - + "ParticipantsResponse\"\224\001\332A\006parent\202\323\344\223\002\204\001\022" - + "9/v2beta1/{parent=projects/*/conversatio" - + "ns/*}/participantsZG\022E/v2beta1/{parent=p" - + "rojects/*/locations/*/conversations/*}/p" - + "articipants\022\326\002\n\021UpdateParticipant\0229.goog" - + "le.cloud.dialogflow.v2beta1.UpdatePartic" - + "ipantRequest\032,.google.cloud.dialogflow.v" - + "2beta1.Participant\"\327\001\332A\027participant,upda" - + "te_mask\202\323\344\223\002\266\0012E/v2beta1/{participant.na" - + "me=projects/*/conversations/*/participan" - + "ts/*}:\013participantZ`2Q/v2beta1/{particip" - + "ant.name=projects/*/locations/*/conversa" - + "tions/*/participants/*}:\013participant\022\216\003\n" - + "\016AnalyzeContent\0226.google.cloud.dialogflo" - + "w.v2beta1.AnalyzeContentRequest\0327.google" - + ".cloud.dialogflow.v2beta1.AnalyzeContent" - + "Response\"\212\002\332A\026participant,text_input\332A\027p" - + "articipant,audio_input\332A\027participant,eve" - + "nt_input\202\323\344\223\002\266\001\"O/v2beta1/{participant=p" - + "rojects/*/conversations/*/participants/*" - + "}:analyzeContent:\001*Z`\"[/v2beta1/{partici" - + "pant=projects/*/locations/*/conversation" - + "s/*/participants/*}:analyzeContent:\001*\022\242\001" - + "\n\027StreamingAnalyzeContent\022?.google.cloud" - + ".dialogflow.v2beta1.StreamingAnalyzeCont" - + "entRequest\032@.google.cloud.dialogflow.v2b" - + "eta1.StreamingAnalyzeContentResponse\"\000(\001" - + "0\001\022\256\001\n\033BidiStreamingAnalyzeContent\022C.goo" - + "gle.cloud.dialogflow.v2beta1.BidiStreami" - + "ngAnalyzeContentRequest\032D.google.cloud.d" - + "ialogflow.v2beta1.BidiStreamingAnalyzeCo" - + "ntentResponse\"\000(\0010\001\022\335\002\n\017SuggestArticles\022" - + "7.google.cloud.dialogflow.v2beta1.Sugges" - + "tArticlesRequest\0328.google.cloud.dialogfl" - + "ow.v2beta1.SuggestArticlesResponse\"\326\001\332A\006" - + "parent\202\323\344\223\002\306\001\"W/v2beta1/{parent=projects" - + "/*/conversations/*/participants/*}/sugge" - + "stions:suggestArticles:\001*Zh\"c/v2beta1/{p" - + "arent=projects/*/locations/*/conversatio" - + "ns/*/participants/*}/suggestions:suggest" - + "Articles:\001*\022\347\002\n\021SuggestFaqAnswers\0229.goog" - + "le.cloud.dialogflow.v2beta1.SuggestFaqAn" - + "swersRequest\032:.google.cloud.dialogflow.v" - + "2beta1.SuggestFaqAnswersResponse\"\332\001\332A\006pa" - + "rent\202\323\344\223\002\312\001\"Y/v2beta1/{parent=projects/*" - + "/conversations/*/participants/*}/suggest" - + "ions:suggestFaqAnswers:\001*Zj\"e/v2beta1/{p" - + "arent=projects/*/locations/*/conversatio" - + "ns/*/participants/*}/suggestions:suggest" - + "FaqAnswers:\001*\022\361\002\n\023SuggestSmartReplies\022;." - + "google.cloud.dialogflow.v2beta1.SuggestS" - + "martRepliesRequest\032<.google.cloud.dialog" - + "flow.v2beta1.SuggestSmartRepliesResponse" - + "\"\336\001\332A\006parent\202\323\344\223\002\316\001\"[/v2beta1/{parent=pr" - + "ojects/*/conversations/*/participants/*}" - + "/suggestions:suggestSmartReplies:\001*Zl\"g/" - + "v2beta1/{parent=projects/*/locations/*/c" - + "onversations/*/participants/*}/suggestio" - + "ns:suggestSmartReplies:\001*\022\367\002\n\026SuggestKno" - + "wledgeAssist\022>.google.cloud.dialogflow.v" - + "2beta1.SuggestKnowledgeAssistRequest\032?.g" - + "oogle.cloud.dialogflow.v2beta1.SuggestKn" - + "owledgeAssistResponse\"\333\001\202\323\344\223\002\324\001\"^/v2beta" - + "1/{parent=projects/*/conversations/*/par" - + "ticipants/*}/suggestions:suggestKnowledg" - + "eAssist:\001*Zo\"j/v2beta1/{parent=projects/" - + "*/locations/*/conversations/*/participan" - + "ts/*}/suggestions:suggestKnowledgeAssist" - + ":\001*\022\330\001\n\017ListSuggestions\0227.google.cloud.d" - + "ialogflow.v2beta1.ListSuggestionsRequest" - + "\0328.google.cloud.dialogflow.v2beta1.ListS" - + "uggestionsResponse\"R\210\002\001\202\323\344\223\002I\022G/v2beta1/" - + "{parent=projects/*/conversations/*/parti" - + "cipants/*}/suggestions\022\351\001\n\021CompileSugges" - + "tion\0229.google.cloud.dialogflow.v2beta1.C" - + "ompileSuggestionRequest\032:.google.cloud.d" - + "ialogflow.v2beta1.CompileSuggestionRespo" - + "nse\"]\210\002\001\202\323\344\223\002T\"O/v2beta1/{parent=project" + + "\005audio\030", + "\001 \001(\014H\000\022D\n\004dtmf\030\002 \001(\01324.google.cloud.dia" + + "logflow.v2beta1.TelephonyDtmfEventsH\000\022]\n" + + "\004turn\030\003 \001(\0132M.google.cloud.dialogflow.v2" + + "beta1.BidiStreamingAnalyzeContentRequest" + + ".TurnInputH\000B\007\n\005inputB\t\n\007request\"\345\003\n#Bid" + + "iStreamingAnalyzeContentResponse\022Y\n\022reco" + + "gnition_result\030\001 \001(\0132;.google.cloud.dial" + + "ogflow.v2beta1.StreamingRecognitionResul" + + "tH\000\022m\n\017barge_in_signal\030\002 \001(\0132R.google.cl" + + "oud.dialogflow.v2beta1.BidiStreamingAnal" + + "yzeContentResponse.BargeInSignalH\000\022[\n\030an" + + "alyze_content_response\030\003 \001(\01327.google.cl" + + "oud.dialogflow.v2beta1.AnalyzeContentRes" + + "ponseH\000\022j\n\rturn_complete\030\004 \001(\0132Q.google." + + "cloud.dialogflow.v2beta1.BidiStreamingAn" + + "alyzeContentResponse.TurnCompleteH\000\032\017\n\rB" + + "argeInSignal\032\016\n\014TurnCompleteB\n\n\010response" + + "2\262\037\n\014Participants\022\271\002\n\021CreateParticipant\022" + + "9.google.cloud.dialogflow.v2beta1.Create" + + "ParticipantRequest\032,.google.cloud.dialog" + + "flow.v2beta1.Participant\"\272\001\332A\022parent,par" + + "ticipant\202\323\344\223\002\236\001\"9/v2beta1/{parent=projec" + + "ts/*/conversations/*}/participants:\013part" + + "icipantZT\"E/v2beta1/{parent=projects/*/l" + + "ocations/*/conversations/*}/participants" + + ":\013participant\022\213\002\n\016GetParticipant\0226.googl" + + "e.cloud.dialogflow.v2beta1.GetParticipan" + + "tRequest\032,.google.cloud.dialogflow.v2bet" + + "a1.Participant\"\222\001\332A\004name\202\323\344\223\002\204\001\0229/v2beta" + + "1/{name=projects/*/conversations/*/parti" + + "cipants/*}ZG\022E/v2beta1/{name=projects/*/" + + "locations/*/conversations/*/participants" + + "/*}\022\236\002\n\020ListParticipants\0228.google.cloud." + + "dialogflow.v2beta1.ListParticipantsReque" + + "st\0329.google.cloud.dialogflow.v2beta1.Lis" + + "tParticipantsResponse\"\224\001\332A\006parent\202\323\344\223\002\204\001" + + "\0229/v2beta1/{parent=projects/*/conversati" + + "ons/*}/participantsZG\022E/v2beta1/{parent=" + + "projects/*/locations/*/conversations/*}/" + + "participants\022\326\002\n\021UpdateParticipant\0229.goo" + + "gle.cloud.dialogflow.v2beta1.UpdateParti" + + "cipantRequest\032,.google.cloud.dialogflow." + + "v2beta1.Participant\"\327\001\332A\027participant,upd" + + "ate_mask\202\323\344\223\002\266\0012E/v2beta1/{participant.n" + + "ame=projects/*/conversations/*/participa" + + "nts/*}:\013participantZ`2Q/v2beta1/{partici" + + "pant.name=projects/*/locations/*/convers" + + "ations/*/participants/*}:\013participant\022\216\003" + + "\n\016AnalyzeContent\0226.google.cloud.dialogfl" + + "ow.v2beta1.AnalyzeContentRequest\0327.googl" + + "e.cloud.dialogflow.v2beta1.AnalyzeConten" + + "tResponse\"\212\002\332A\026participant,text_input\332A\027" + + "participant,audio_input\332A\027participant,ev" + + "ent_input\202\323\344\223\002\266\001\"O/v2beta1/{participant=" + + "projects/*/conversations/*/participants/" + + "*}:analyzeContent:\001*Z`\"[/v2beta1/{partic" + + "ipant=projects/*/locations/*/conversatio" + + "ns/*/participants/*}:analyzeContent:\001*\022\242" + + "\001\n\027StreamingAnalyzeContent\022?.google.clou" + + "d.dialogflow.v2beta1.StreamingAnalyzeCon" + + "tentRequest\032@.google.cloud.dialogflow.v2" + + "beta1.StreamingAnalyzeContentResponse\"\000(" + + "\0010\001\022\256\001\n\033BidiStreamingAnalyzeContent\022C.go" + + "ogle.cloud.dialogflow.v2beta1.BidiStream" + + "ingAnalyzeContentRequest\032D.google.cloud." + + "dialogflow.v2beta1.BidiStreamingAnalyzeC" + + "ontentResponse\"\000(\0010\001\022\335\002\n\017SuggestArticles" + + "\0227.google.cloud.dialogflow.v2beta1.Sugge" + + "stArticlesRequest\0328.google.cloud.dialogf" + + "low.v2beta1.SuggestArticlesResponse\"\326\001\332A" + + "\006parent\202\323\344\223\002\306\001\"W/v2beta1/{parent=project" + "s/*/conversations/*/participants/*}/sugg" - + "estions:compile:\001*\032x\312A\031dialogflow.google" - + "apis.com\322AYhttps://www.googleapis.com/au" - + "th/cloud-platform,https://www.googleapis" - + ".com/auth/dialogflowB\245\001\n#com.google.clou" - + "d.dialogflow.v2beta1B\020ParticipantProtoP\001" - + "ZCcloud.google.com/go/dialogflow/apiv2be" - + "ta1/dialogflowpb;dialogflowpb\242\002\002DF\252\002\037Goo" - + "gle.Cloud.Dialogflow.V2Beta1b\006proto3" + + "estions:suggestArticles:\001*Zh\"c/v2beta1/{" + + "parent=projects/*/locations/*/conversati" + + "ons/*/participants/*}/suggestions:sugges" + + "tArticles:\001*\022\347\002\n\021SuggestFaqAnswers\0229.goo" + + "gle.cloud.dialogflow.v2beta1.SuggestFaqA" + + "nswersRequest\032:.google.cloud.dialogflow." + + "v2beta1.SuggestFaqAnswersResponse\"\332\001\332A\006p" + + "arent\202\323\344\223\002\312\001\"Y/v2beta1/{parent=projects/" + + "*/conversations/*/participants/*}/sugges" + + "tions:suggestFaqAnswers:\001*Zj\"e/v2beta1/{" + + "parent=projects/*/locations/*/conversati" + + "ons/*/participants/*}/suggestions:sugges" + + "tFaqAnswers:\001*\022\361\002\n\023SuggestSmartReplies\022;" + + ".google.cloud.dialogflow.v2beta1.Suggest" + + "SmartRepliesRequest\032<.google.cloud.dialo" + + "gflow.v2beta1.SuggestSmartRepliesRespons" + + "e\"\336\001\332A\006parent\202\323\344\223\002\316\001\"[/v2beta1/{parent=p" + + "rojects/*/conversations/*/participants/*" + + "}/suggestions:suggestSmartReplies:\001*Zl\"g" + + "/v2beta1/{parent=projects/*/locations/*/" + + "conversations/*/participants/*}/suggesti" + + "ons:suggestSmartReplies:\001*\022\367\002\n\026SuggestKn" + + "owledgeAssist\022>.google.cloud.dialogflow." + + "v2beta1.SuggestKnowledgeAssistRequest\032?." + + "google.cloud.dialogflow.v2beta1.SuggestK" + + "nowledgeAssistResponse\"\333\001\202\323\344\223\002\324\001\"^/v2bet" + + "a1/{parent=projects/*/conversations/*/pa" + + "rticipants/*}/suggestions:suggestKnowled" + + "geAssist:\001*Zo\"j/v2beta1/{parent=projects" + + "/*/locations/*/conversations/*/participa" + + "nts/*}/suggestions:suggestKnowledgeAssis" + + "t:\001*\022\330\001\n\017ListSuggestions\0227.google.cloud." + + "dialogflow.v2beta1.ListSuggestionsReques" + + "t\0328.google.cloud.dialogflow.v2beta1.List" + + "SuggestionsResponse\"R\210\002\001\202\323\344\223\002I\022G/v2beta1" + + "/{parent=projects/*/conversations/*/part" + + "icipants/*}/suggestions\022\351\001\n\021CompileSugge" + + "stion\0229.google.cloud.dialogflow.v2beta1." + + "CompileSuggestionRequest\032:.google.cloud." + + "dialogflow.v2beta1.CompileSuggestionResp" + + "onse\"]\210\002\001\202\323\344\223\002T\"O/v2beta1/{parent=projec" + + "ts/*/conversations/*/participants/*}/sug" + + "gestions:compile:\001*\032x\312A\031dialogflow.googl" + + "eapis.com\322AYhttps://www.googleapis.com/a" + + "uth/cloud-platform,https://www.googleapi" + + "s.com/auth/dialogflowB\245\001\n#com.google.clo" + + "ud.dialogflow.v2beta1B\020ParticipantProtoP" + + "\001ZCcloud.google.com/go/dialogflow/apiv2b" + + "eta1/dialogflowpb;dialogflowpb\242\002\002DF\252\002\037Go" + + "ogle.Cloud.Dialogflow.V2Beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1203,6 +1202,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CxCurrentPage", "EnableExtendedStreaming", "EnablePartialAutomatedAgentReply", + "OutputMultipleUtterances", "EnableDebuggingInfo", "Config", "Input", diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequest.java index 6c5e83d38609..b607a1085a9a 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequest.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequest.java @@ -1116,6 +1116,27 @@ public boolean getEnablePartialAutomatedAgentReply() { return enablePartialAutomatedAgentReply_; } + public static final int OUTPUT_MULTIPLE_UTTERANCES_FIELD_NUMBER = 18; + private boolean outputMultipleUtterances_ = false; + + /** + * + * + *
          +   * Optional. If multiple utterances are detected in the audio stream, process
          +   * them individually instead of stitching them together to form a single
          +   * utterance.
          +   * 
          + * + * bool output_multiple_utterances = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputMultipleUtterances. + */ + @java.lang.Override + public boolean getOutputMultipleUtterances() { + return outputMultipleUtterances_; + } + public static final int ENABLE_DEBUGGING_INFO_FIELD_NUMBER = 19; private boolean enableDebuggingInfo_ = false; @@ -1192,6 +1213,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (inputCase_ == 17) { com.google.protobuf.GeneratedMessage.writeString(output, 17, input_); } + if (outputMultipleUtterances_ != false) { + output.writeBool(18, outputMultipleUtterances_); + } if (enableDebuggingInfo_ != false) { output.writeBool(19, enableDebuggingInfo_); } @@ -1259,6 +1283,9 @@ public int getSerializedSize() { if (inputCase_ == 17) { size += com.google.protobuf.GeneratedMessage.computeStringSize(17, input_); } + if (outputMultipleUtterances_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, outputMultipleUtterances_); + } if (enableDebuggingInfo_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, enableDebuggingInfo_); } @@ -1302,6 +1329,7 @@ public boolean equals(final java.lang.Object obj) { if (getEnableExtendedStreaming() != other.getEnableExtendedStreaming()) return false; if (getEnablePartialAutomatedAgentReply() != other.getEnablePartialAutomatedAgentReply()) return false; + if (getOutputMultipleUtterances() != other.getOutputMultipleUtterances()) return false; if (getEnableDebuggingInfo() != other.getEnableDebuggingInfo()) return false; if (!getConfigCase().equals(other.getConfigCase())) return false; switch (configCase_) { @@ -1371,6 +1399,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePartialAutomatedAgentReply()); + hash = (37 * hash) + OUTPUT_MULTIPLE_UTTERANCES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOutputMultipleUtterances()); hash = (37 * hash) + ENABLE_DEBUGGING_INFO_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableDebuggingInfo()); switch (configCase_) { @@ -1640,6 +1670,7 @@ public Builder clear() { cxCurrentPage_ = ""; enableExtendedStreaming_ = false; enablePartialAutomatedAgentReply_ = false; + outputMultipleUtterances_ = false; enableDebuggingInfo_ = false; configCase_ = 0; config_ = null; @@ -1721,6 +1752,9 @@ private void buildPartial0( result.enablePartialAutomatedAgentReply_ = enablePartialAutomatedAgentReply_; } if (((from_bitField0_ & 0x00008000) != 0)) { + result.outputMultipleUtterances_ = outputMultipleUtterances_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { result.enableDebuggingInfo_ = enableDebuggingInfo_; } result.bitField0_ |= to_bitField0_; @@ -1787,6 +1821,9 @@ public Builder mergeFrom( if (other.getEnablePartialAutomatedAgentReply() != false) { setEnablePartialAutomatedAgentReply(other.getEnablePartialAutomatedAgentReply()); } + if (other.getOutputMultipleUtterances() != false) { + setOutputMultipleUtterances(other.getOutputMultipleUtterances()); + } if (other.getEnableDebuggingInfo() != false) { setEnableDebuggingInfo(other.getEnableDebuggingInfo()); } @@ -1962,10 +1999,16 @@ public Builder mergeFrom( input_ = s; break; } // case 138 + case 144: + { + outputMultipleUtterances_ = input.readBool(); + bitField0_ |= 0x00008000; + break; + } // case 144 case 152: { enableDebuggingInfo_ = input.readBool(); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 152 case 162: @@ -4614,6 +4657,68 @@ public Builder clearEnablePartialAutomatedAgentReply() { return this; } + private boolean outputMultipleUtterances_; + + /** + * + * + *
          +     * Optional. If multiple utterances are detected in the audio stream, process
          +     * them individually instead of stitching them together to form a single
          +     * utterance.
          +     * 
          + * + * bool output_multiple_utterances = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputMultipleUtterances. + */ + @java.lang.Override + public boolean getOutputMultipleUtterances() { + return outputMultipleUtterances_; + } + + /** + * + * + *
          +     * Optional. If multiple utterances are detected in the audio stream, process
          +     * them individually instead of stitching them together to form a single
          +     * utterance.
          +     * 
          + * + * bool output_multiple_utterances = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The outputMultipleUtterances to set. + * @return This builder for chaining. + */ + public Builder setOutputMultipleUtterances(boolean value) { + + outputMultipleUtterances_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. If multiple utterances are detected in the audio stream, process
          +     * them individually instead of stitching them together to form a single
          +     * utterance.
          +     * 
          + * + * bool output_multiple_utterances = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOutputMultipleUtterances() { + bitField0_ = (bitField0_ & ~0x00008000); + outputMultipleUtterances_ = false; + onChanged(); + return this; + } + private boolean enableDebuggingInfo_; /** @@ -4649,7 +4754,7 @@ public boolean getEnableDebuggingInfo() { public Builder setEnableDebuggingInfo(boolean value) { enableDebuggingInfo_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -4667,7 +4772,7 @@ public Builder setEnableDebuggingInfo(boolean value) { * @return This builder for chaining. */ public Builder clearEnableDebuggingInfo() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); enableDebuggingInfo_ = false; onChanged(); return this; diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequestOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequestOrBuilder.java index b6e54478a37c..b9ddf2c92846 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequestOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequestOrBuilder.java @@ -627,6 +627,21 @@ public interface StreamingAnalyzeContentRequestOrBuilder */ boolean getEnablePartialAutomatedAgentReply(); + /** + * + * + *
          +   * Optional. If multiple utterances are detected in the audio stream, process
          +   * them individually instead of stitching them together to form a single
          +   * utterance.
          +   * 
          + * + * bool output_multiple_utterances = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputMultipleUtterances. + */ + boolean getOutputMultipleUtterances(); + /** * * diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto index bdfaad14076e..61cd31352728 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -1044,6 +1044,11 @@ message StreamingAnalyzeContentRequest { bool enable_partial_automated_agent_reply = 12 [(google.api.field_behavior) = OPTIONAL]; + // Optional. If multiple utterances are detected in the audio stream, process + // them individually instead of stitching them together to form a single + // utterance. + bool output_multiple_utterances = 18 [(google.api.field_behavior) = OPTIONAL]; + // if true, `StreamingAnalyzeContentResponse.debugging_info` will get // populated. bool enable_debugging_info = 19; diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/participants/streaminganalyzecontent/AsyncStreamingAnalyzeContent.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/participants/streaminganalyzecontent/AsyncStreamingAnalyzeContent.java index f4f20e621c9d..78aae13ceb61 100644 --- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/participants/streaminganalyzecontent/AsyncStreamingAnalyzeContent.java +++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/participants/streaminganalyzecontent/AsyncStreamingAnalyzeContent.java @@ -55,6 +55,7 @@ public static void asyncStreamingAnalyzeContent() throws Exception { .setCxCurrentPage("cxCurrentPage1596907507") .setEnableExtendedStreaming(true) .setEnablePartialAutomatedAgentReply(true) + .setOutputMultipleUtterances(true) .setEnableDebuggingInfo(true) .build(); bidiStream.send(request); diff --git a/java-discoveryengine/README.md b/java-discoveryengine/README.md index 8fd973e561a4..d4435adffc9b 100644 --- a/java-discoveryengine/README.md +++ b/java-discoveryengine/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-discoveryengine - 0.78.0 + 0.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-discoveryengine:0.78.0' +implementation 'com.google.cloud:google-cloud-discoveryengine:0.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-discoveryengine" % "0.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-discoveryengine" % "0.80.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-discoveryengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-discoveryengine/0.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-discoveryengine/0.80.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-discoveryengine/google-cloud-discoveryengine-bom/pom.xml b/java-discoveryengine/google-cloud-discoveryengine-bom/pom.xml index 34512967243e..e5515499aed1 100644 --- a/java-discoveryengine/google-cloud-discoveryengine-bom/pom.xml +++ b/java-discoveryengine/google-cloud-discoveryengine-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-discoveryengine-bom - 0.80.0-SNAPSHOT + 0.81.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.cloud google-cloud-discoveryengine - 0.80.0-SNAPSHOT + 0.81.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1beta - 0.80.0-SNAPSHOT + 0.81.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1 - 0.80.0-SNAPSHOT + 0.81.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1alpha - 0.80.0-SNAPSHOT + 0.81.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1beta - 0.80.0-SNAPSHOT + 0.81.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1 - 0.80.0-SNAPSHOT + 0.81.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1alpha - 0.80.0-SNAPSHOT + 0.81.0
          diff --git a/java-discoveryengine/google-cloud-discoveryengine/pom.xml b/java-discoveryengine/google-cloud-discoveryengine/pom.xml index f868efbc1a86..4dad725a70b7 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/pom.xml +++ b/java-discoveryengine/google-cloud-discoveryengine/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-discoveryengine - 0.80.0-SNAPSHOT + 0.81.0 jar Google Discovery Engine API Discovery Engine API A Cloud API that offers search and recommendation discoverability for documents from different industry verticals (e.g. media, retail, etc.). com.google.cloud google-cloud-discoveryengine-parent - 0.80.0-SNAPSHOT + 0.81.0 google-cloud-discoveryengine diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceClient.java index 406ae247c0ef..fa1603f1e92b 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceClient.java @@ -57,6 +57,7 @@ * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") * .toString()) * .setQuery("query107944136") + * .addAllPageCategories(new ArrayList()) * .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") @@ -75,17 +76,20 @@ * .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build()) * .setUserPseudoId("userPseudoId-1155274652") * .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build()) + * .setRankingExpression("rankingExpression2110320494") * .setSafeSearch(true) * .putAllUserLabels(new HashMap()) + * .setNaturalLanguageQueryUnderstandingSpec( + * SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) * .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) * .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + * .addAllCrowdingSpecs(new ArrayList()) * .setSession( * SessionName.ofProjectLocationDataStoreSessionName( * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") * .toString()) * .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) * .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) - * .setRankingExpression("rankingExpression2110320494") * .build(); * for (SearchResponse.SearchResult element : searchServiceClient.search(request).iterateAll()) { * // doThingsWith(element); @@ -264,6 +268,7 @@ public SearchServiceStub getStub() { * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") * .toString()) * .setQuery("query107944136") + * .addAllPageCategories(new ArrayList()) * .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") @@ -282,17 +287,20 @@ public SearchServiceStub getStub() { * .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build()) * .setUserPseudoId("userPseudoId-1155274652") * .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build()) + * .setRankingExpression("rankingExpression2110320494") * .setSafeSearch(true) * .putAllUserLabels(new HashMap()) + * .setNaturalLanguageQueryUnderstandingSpec( + * SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) * .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) * .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + * .addAllCrowdingSpecs(new ArrayList()) * .setSession( * SessionName.ofProjectLocationDataStoreSessionName( * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") * .toString()) * .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) * .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) - * .setRankingExpression("rankingExpression2110320494") * .build(); * for (SearchResponse.SearchResult element : searchServiceClient.search(request).iterateAll()) { * // doThingsWith(element); @@ -331,6 +339,7 @@ public final SearchPagedResponse search(SearchRequest request) { * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") * .toString()) * .setQuery("query107944136") + * .addAllPageCategories(new ArrayList()) * .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") @@ -349,17 +358,20 @@ public final SearchPagedResponse search(SearchRequest request) { * .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build()) * .setUserPseudoId("userPseudoId-1155274652") * .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build()) + * .setRankingExpression("rankingExpression2110320494") * .setSafeSearch(true) * .putAllUserLabels(new HashMap()) + * .setNaturalLanguageQueryUnderstandingSpec( + * SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) * .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) * .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + * .addAllCrowdingSpecs(new ArrayList()) * .setSession( * SessionName.ofProjectLocationDataStoreSessionName( * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") * .toString()) * .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) * .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) - * .setRankingExpression("rankingExpression2110320494") * .build(); * ApiFuture future = * searchServiceClient.searchPagedCallable().futureCall(request); @@ -398,6 +410,7 @@ public final UnaryCallable searchPagedCallab * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") * .toString()) * .setQuery("query107944136") + * .addAllPageCategories(new ArrayList()) * .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") @@ -416,17 +429,20 @@ public final UnaryCallable searchPagedCallab * .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build()) * .setUserPseudoId("userPseudoId-1155274652") * .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build()) + * .setRankingExpression("rankingExpression2110320494") * .setSafeSearch(true) * .putAllUserLabels(new HashMap()) + * .setNaturalLanguageQueryUnderstandingSpec( + * SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) * .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) * .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + * .addAllCrowdingSpecs(new ArrayList()) * .setSession( * SessionName.ofProjectLocationDataStoreSessionName( * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") * .toString()) * .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) * .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) - * .setRankingExpression("rankingExpression2110320494") * .build(); * while (true) { * SearchResponse response = searchServiceClient.searchCallable().call(request); @@ -481,6 +497,7 @@ public final UnaryCallable searchCallable() { * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") * .toString()) * .setQuery("query107944136") + * .addAllPageCategories(new ArrayList()) * .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") @@ -499,17 +516,20 @@ public final UnaryCallable searchCallable() { * .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build()) * .setUserPseudoId("userPseudoId-1155274652") * .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build()) + * .setRankingExpression("rankingExpression2110320494") * .setSafeSearch(true) * .putAllUserLabels(new HashMap()) + * .setNaturalLanguageQueryUnderstandingSpec( + * SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) * .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) * .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + * .addAllCrowdingSpecs(new ArrayList()) * .setSession( * SessionName.ofProjectLocationDataStoreSessionName( * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") * .toString()) * .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) * .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) - * .setRankingExpression("rankingExpression2110320494") * .build(); * for (SearchResponse.SearchResult element : * searchServiceClient.searchLite(request).iterateAll()) { @@ -559,6 +579,7 @@ public final SearchLitePagedResponse searchLite(SearchRequest request) { * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") * .toString()) * .setQuery("query107944136") + * .addAllPageCategories(new ArrayList()) * .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") @@ -577,17 +598,20 @@ public final SearchLitePagedResponse searchLite(SearchRequest request) { * .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build()) * .setUserPseudoId("userPseudoId-1155274652") * .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build()) + * .setRankingExpression("rankingExpression2110320494") * .setSafeSearch(true) * .putAllUserLabels(new HashMap()) + * .setNaturalLanguageQueryUnderstandingSpec( + * SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) * .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) * .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + * .addAllCrowdingSpecs(new ArrayList()) * .setSession( * SessionName.ofProjectLocationDataStoreSessionName( * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") * .toString()) * .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) * .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) - * .setRankingExpression("rankingExpression2110320494") * .build(); * ApiFuture future = * searchServiceClient.searchLitePagedCallable().futureCall(request); @@ -636,6 +660,7 @@ public final UnaryCallable searchLitePag * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") * .toString()) * .setQuery("query107944136") + * .addAllPageCategories(new ArrayList()) * .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") @@ -654,17 +679,20 @@ public final UnaryCallable searchLitePag * .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build()) * .setUserPseudoId("userPseudoId-1155274652") * .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build()) + * .setRankingExpression("rankingExpression2110320494") * .setSafeSearch(true) * .putAllUserLabels(new HashMap()) + * .setNaturalLanguageQueryUnderstandingSpec( + * SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) * .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) * .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + * .addAllCrowdingSpecs(new ArrayList()) * .setSession( * SessionName.ofProjectLocationDataStoreSessionName( * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") * .toString()) * .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) * .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) - * .setRankingExpression("rankingExpression2110320494") * .build(); * while (true) { * SearchResponse response = searchServiceClient.searchLiteCallable().call(request); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/package-info.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/package-info.java index 737c6f54ff2d..08fb16f3031d 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/package-info.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/package-info.java @@ -381,6 +381,7 @@ * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") * .toString()) * .setQuery("query107944136") + * .addAllPageCategories(new ArrayList()) * .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") @@ -399,17 +400,20 @@ * .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build()) * .setUserPseudoId("userPseudoId-1155274652") * .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build()) + * .setRankingExpression("rankingExpression2110320494") * .setSafeSearch(true) * .putAllUserLabels(new HashMap()) + * .setNaturalLanguageQueryUnderstandingSpec( + * SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) * .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) * .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + * .addAllCrowdingSpecs(new ArrayList()) * .setSession( * SessionName.ofProjectLocationDataStoreSessionName( * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") * .toString()) * .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) * .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) - * .setRankingExpression("rankingExpression2110320494") * .build(); * for (SearchResponse.SearchResult element : searchServiceClient.search(request).iterateAll()) { * // doThingsWith(element); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1/reflect-config.json b/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1/reflect-config.json index c5bc5fa0bd38..f9db4e64fcae 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1/reflect-config.json +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1/reflect-config.json @@ -5840,6 +5840,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig$Mode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1.PageInfo", "queryAllDeclaredConstructors": true, @@ -6848,6 +6875,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$CrowdingSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$CrowdingSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$CrowdingSpec$Mode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1.SearchRequest$DataStoreSpec", "queryAllDeclaredConstructors": true, @@ -6947,6 +7001,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$NaturalLanguageQueryUnderstandingSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$NaturalLanguageQueryUnderstandingSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$NaturalLanguageQueryUnderstandingSpec$ExtractedFilterBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$NaturalLanguageQueryUnderstandingSpec$FilterExtractionCondition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1.SearchRequest$QueryExpansionSpec", "queryAllDeclaredConstructors": true, @@ -7136,6 +7226,159 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$AndExpression", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$AndExpression$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$Expression", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$Expression$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$GeolocationConstraint", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$GeolocationConstraint$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$NumberConstraint", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$NumberConstraint$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$NumberConstraint$Comparison", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$OrExpression", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$OrExpression$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$StringConstraint", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$StringConstraint$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1.SearchResponse$QueryExpansionInfo", "queryAllDeclaredConstructors": true, @@ -7208,6 +7451,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$SemanticState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1.SearchResponse$SessionInfo", "queryAllDeclaredConstructors": true, diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DataStoreServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DataStoreServiceClientHttpJsonTest.java index d74f4dfeaa0d..5a13c8fb59e8 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DataStoreServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DataStoreServiceClientHttpJsonTest.java @@ -96,6 +96,8 @@ public void createDataStoreTest() throws Exception { .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) .setAdvancedSiteSearchConfig(AdvancedSiteSearchConfig.newBuilder().build()) + .setNaturalLanguageQueryUnderstandingConfig( + NaturalLanguageQueryUnderstandingConfig.newBuilder().build()) .setKmsKeyName("kmsKeyName412586233") .setCmekConfig(CmekConfig.newBuilder().build()) .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build()) @@ -169,6 +171,8 @@ public void createDataStoreTest2() throws Exception { .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) .setAdvancedSiteSearchConfig(AdvancedSiteSearchConfig.newBuilder().build()) + .setNaturalLanguageQueryUnderstandingConfig( + NaturalLanguageQueryUnderstandingConfig.newBuilder().build()) .setKmsKeyName("kmsKeyName412586233") .setCmekConfig(CmekConfig.newBuilder().build()) .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build()) @@ -242,6 +246,8 @@ public void getDataStoreTest() throws Exception { .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) .setAdvancedSiteSearchConfig(AdvancedSiteSearchConfig.newBuilder().build()) + .setNaturalLanguageQueryUnderstandingConfig( + NaturalLanguageQueryUnderstandingConfig.newBuilder().build()) .setKmsKeyName("kmsKeyName412586233") .setCmekConfig(CmekConfig.newBuilder().build()) .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build()) @@ -308,6 +314,8 @@ public void getDataStoreTest2() throws Exception { .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) .setAdvancedSiteSearchConfig(AdvancedSiteSearchConfig.newBuilder().build()) + .setNaturalLanguageQueryUnderstandingConfig( + NaturalLanguageQueryUnderstandingConfig.newBuilder().build()) .setKmsKeyName("kmsKeyName412586233") .setCmekConfig(CmekConfig.newBuilder().build()) .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build()) @@ -564,6 +572,8 @@ public void updateDataStoreTest() throws Exception { .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) .setAdvancedSiteSearchConfig(AdvancedSiteSearchConfig.newBuilder().build()) + .setNaturalLanguageQueryUnderstandingConfig( + NaturalLanguageQueryUnderstandingConfig.newBuilder().build()) .setKmsKeyName("kmsKeyName412586233") .setCmekConfig(CmekConfig.newBuilder().build()) .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build()) @@ -590,6 +600,8 @@ public void updateDataStoreTest() throws Exception { .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) .setAdvancedSiteSearchConfig(AdvancedSiteSearchConfig.newBuilder().build()) + .setNaturalLanguageQueryUnderstandingConfig( + NaturalLanguageQueryUnderstandingConfig.newBuilder().build()) .setKmsKeyName("kmsKeyName412586233") .setCmekConfig(CmekConfig.newBuilder().build()) .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build()) @@ -642,6 +654,8 @@ public void updateDataStoreExceptionTest() throws Exception { .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) .setAdvancedSiteSearchConfig(AdvancedSiteSearchConfig.newBuilder().build()) + .setNaturalLanguageQueryUnderstandingConfig( + NaturalLanguageQueryUnderstandingConfig.newBuilder().build()) .setKmsKeyName("kmsKeyName412586233") .setCmekConfig(CmekConfig.newBuilder().build()) .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build()) diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DataStoreServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DataStoreServiceClientTest.java index 39eb613b950a..a1c72de447f7 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DataStoreServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DataStoreServiceClientTest.java @@ -103,6 +103,8 @@ public void createDataStoreTest() throws Exception { .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) .setAdvancedSiteSearchConfig(AdvancedSiteSearchConfig.newBuilder().build()) + .setNaturalLanguageQueryUnderstandingConfig( + NaturalLanguageQueryUnderstandingConfig.newBuilder().build()) .setKmsKeyName("kmsKeyName412586233") .setCmekConfig(CmekConfig.newBuilder().build()) .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build()) @@ -175,6 +177,8 @@ public void createDataStoreTest2() throws Exception { .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) .setAdvancedSiteSearchConfig(AdvancedSiteSearchConfig.newBuilder().build()) + .setNaturalLanguageQueryUnderstandingConfig( + NaturalLanguageQueryUnderstandingConfig.newBuilder().build()) .setKmsKeyName("kmsKeyName412586233") .setCmekConfig(CmekConfig.newBuilder().build()) .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build()) @@ -247,6 +251,8 @@ public void getDataStoreTest() throws Exception { .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) .setAdvancedSiteSearchConfig(AdvancedSiteSearchConfig.newBuilder().build()) + .setNaturalLanguageQueryUnderstandingConfig( + NaturalLanguageQueryUnderstandingConfig.newBuilder().build()) .setKmsKeyName("kmsKeyName412586233") .setCmekConfig(CmekConfig.newBuilder().build()) .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build()) @@ -307,6 +313,8 @@ public void getDataStoreTest2() throws Exception { .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) .setAdvancedSiteSearchConfig(AdvancedSiteSearchConfig.newBuilder().build()) + .setNaturalLanguageQueryUnderstandingConfig( + NaturalLanguageQueryUnderstandingConfig.newBuilder().build()) .setKmsKeyName("kmsKeyName412586233") .setCmekConfig(CmekConfig.newBuilder().build()) .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build()) @@ -539,6 +547,8 @@ public void updateDataStoreTest() throws Exception { .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) .setAdvancedSiteSearchConfig(AdvancedSiteSearchConfig.newBuilder().build()) + .setNaturalLanguageQueryUnderstandingConfig( + NaturalLanguageQueryUnderstandingConfig.newBuilder().build()) .setKmsKeyName("kmsKeyName412586233") .setCmekConfig(CmekConfig.newBuilder().build()) .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build()) diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SearchServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SearchServiceClientHttpJsonTest.java index 5877a05c455e..d420cf327e4e 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SearchServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SearchServiceClientHttpJsonTest.java @@ -100,6 +100,7 @@ public void searchTest() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setQuery("query107944136") + .addAllPageCategories(new ArrayList()) .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) .setPageSize(883849137) .setPageToken("pageToken873572522") @@ -118,17 +119,20 @@ public void searchTest() throws Exception { .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build()) .setUserPseudoId("userPseudoId-1155274652") .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") .setSafeSearch(true) .putAllUserLabels(new HashMap()) + .setNaturalLanguageQueryUnderstandingSpec( + SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + .addAllCrowdingSpecs(new ArrayList()) .setSession( SessionName.ofProjectLocationDataStoreSessionName( "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") .toString()) .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) - .setRankingExpression("rankingExpression2110320494") .build(); SearchPagedResponse pagedListResponse = client.search(request); @@ -173,6 +177,7 @@ public void searchExceptionTest() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setQuery("query107944136") + .addAllPageCategories(new ArrayList()) .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) .setPageSize(883849137) .setPageToken("pageToken873572522") @@ -191,17 +196,20 @@ public void searchExceptionTest() throws Exception { .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build()) .setUserPseudoId("userPseudoId-1155274652") .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") .setSafeSearch(true) .putAllUserLabels(new HashMap()) + .setNaturalLanguageQueryUnderstandingSpec( + SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + .addAllCrowdingSpecs(new ArrayList()) .setSession( SessionName.ofProjectLocationDataStoreSessionName( "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") .toString()) .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) - .setRankingExpression("rankingExpression2110320494") .build(); client.search(request); Assert.fail("No exception raised"); @@ -231,6 +239,7 @@ public void searchLiteTest() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setQuery("query107944136") + .addAllPageCategories(new ArrayList()) .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) .setPageSize(883849137) .setPageToken("pageToken873572522") @@ -249,17 +258,20 @@ public void searchLiteTest() throws Exception { .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build()) .setUserPseudoId("userPseudoId-1155274652") .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") .setSafeSearch(true) .putAllUserLabels(new HashMap()) + .setNaturalLanguageQueryUnderstandingSpec( + SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + .addAllCrowdingSpecs(new ArrayList()) .setSession( SessionName.ofProjectLocationDataStoreSessionName( "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") .toString()) .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) - .setRankingExpression("rankingExpression2110320494") .build(); SearchLitePagedResponse pagedListResponse = client.searchLite(request); @@ -304,6 +316,7 @@ public void searchLiteExceptionTest() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setQuery("query107944136") + .addAllPageCategories(new ArrayList()) .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) .setPageSize(883849137) .setPageToken("pageToken873572522") @@ -322,17 +335,20 @@ public void searchLiteExceptionTest() throws Exception { .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build()) .setUserPseudoId("userPseudoId-1155274652") .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") .setSafeSearch(true) .putAllUserLabels(new HashMap()) + .setNaturalLanguageQueryUnderstandingSpec( + SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + .addAllCrowdingSpecs(new ArrayList()) .setSession( SessionName.ofProjectLocationDataStoreSessionName( "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") .toString()) .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) - .setRankingExpression("rankingExpression2110320494") .build(); client.searchLite(request); Assert.fail("No exception raised"); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SearchServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SearchServiceClientTest.java index 8c0dae46e1c2..a72fbbea0c35 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SearchServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SearchServiceClientTest.java @@ -106,6 +106,7 @@ public void searchTest() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setQuery("query107944136") + .addAllPageCategories(new ArrayList()) .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) .setPageSize(883849137) .setPageToken("pageToken873572522") @@ -124,17 +125,20 @@ public void searchTest() throws Exception { .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build()) .setUserPseudoId("userPseudoId-1155274652") .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") .setSafeSearch(true) .putAllUserLabels(new HashMap()) + .setNaturalLanguageQueryUnderstandingSpec( + SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + .addAllCrowdingSpecs(new ArrayList()) .setSession( SessionName.ofProjectLocationDataStoreSessionName( "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") .toString()) .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) - .setRankingExpression("rankingExpression2110320494") .build(); SearchPagedResponse pagedListResponse = client.search(request); @@ -152,6 +156,7 @@ public void searchTest() throws Exception { Assert.assertEquals(request.getServingConfig(), actualRequest.getServingConfig()); Assert.assertEquals(request.getBranch(), actualRequest.getBranch()); Assert.assertEquals(request.getQuery(), actualRequest.getQuery()); + Assert.assertEquals(request.getPageCategoriesList(), actualRequest.getPageCategoriesList()); Assert.assertEquals(request.getImageQuery(), actualRequest.getImageQuery()); Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); @@ -170,17 +175,21 @@ public void searchTest() throws Exception { Assert.assertEquals(request.getSpellCorrectionSpec(), actualRequest.getSpellCorrectionSpec()); Assert.assertEquals(request.getUserPseudoId(), actualRequest.getUserPseudoId()); Assert.assertEquals(request.getContentSearchSpec(), actualRequest.getContentSearchSpec()); + Assert.assertEquals(request.getRankingExpression(), actualRequest.getRankingExpression()); + Assert.assertEquals( + request.getRankingExpressionBackend(), actualRequest.getRankingExpressionBackend()); Assert.assertEquals(request.getSafeSearch(), actualRequest.getSafeSearch()); Assert.assertEquals(request.getUserLabelsMap(), actualRequest.getUserLabelsMap()); + Assert.assertEquals( + request.getNaturalLanguageQueryUnderstandingSpec(), + actualRequest.getNaturalLanguageQueryUnderstandingSpec()); Assert.assertEquals(request.getSearchAsYouTypeSpec(), actualRequest.getSearchAsYouTypeSpec()); Assert.assertEquals(request.getDisplaySpec(), actualRequest.getDisplaySpec()); + Assert.assertEquals(request.getCrowdingSpecsList(), actualRequest.getCrowdingSpecsList()); Assert.assertEquals(request.getSession(), actualRequest.getSession()); Assert.assertEquals(request.getSessionSpec(), actualRequest.getSessionSpec()); Assert.assertEquals(request.getRelevanceThreshold(), actualRequest.getRelevanceThreshold()); Assert.assertEquals(request.getRelevanceScoreSpec(), actualRequest.getRelevanceScoreSpec()); - Assert.assertEquals(request.getRankingExpression(), actualRequest.getRankingExpression()); - Assert.assertEquals( - request.getRankingExpressionBackend(), actualRequest.getRankingExpressionBackend()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -204,6 +213,7 @@ public void searchExceptionTest() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setQuery("query107944136") + .addAllPageCategories(new ArrayList()) .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) .setPageSize(883849137) .setPageToken("pageToken873572522") @@ -222,17 +232,20 @@ public void searchExceptionTest() throws Exception { .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build()) .setUserPseudoId("userPseudoId-1155274652") .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") .setSafeSearch(true) .putAllUserLabels(new HashMap()) + .setNaturalLanguageQueryUnderstandingSpec( + SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + .addAllCrowdingSpecs(new ArrayList()) .setSession( SessionName.ofProjectLocationDataStoreSessionName( "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") .toString()) .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) - .setRankingExpression("rankingExpression2110320494") .build(); client.search(request); Assert.fail("No exception raised"); @@ -262,6 +275,7 @@ public void searchLiteTest() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setQuery("query107944136") + .addAllPageCategories(new ArrayList()) .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) .setPageSize(883849137) .setPageToken("pageToken873572522") @@ -280,17 +294,20 @@ public void searchLiteTest() throws Exception { .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build()) .setUserPseudoId("userPseudoId-1155274652") .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") .setSafeSearch(true) .putAllUserLabels(new HashMap()) + .setNaturalLanguageQueryUnderstandingSpec( + SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + .addAllCrowdingSpecs(new ArrayList()) .setSession( SessionName.ofProjectLocationDataStoreSessionName( "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") .toString()) .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) - .setRankingExpression("rankingExpression2110320494") .build(); SearchLitePagedResponse pagedListResponse = client.searchLite(request); @@ -308,6 +325,7 @@ public void searchLiteTest() throws Exception { Assert.assertEquals(request.getServingConfig(), actualRequest.getServingConfig()); Assert.assertEquals(request.getBranch(), actualRequest.getBranch()); Assert.assertEquals(request.getQuery(), actualRequest.getQuery()); + Assert.assertEquals(request.getPageCategoriesList(), actualRequest.getPageCategoriesList()); Assert.assertEquals(request.getImageQuery(), actualRequest.getImageQuery()); Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); @@ -326,17 +344,21 @@ public void searchLiteTest() throws Exception { Assert.assertEquals(request.getSpellCorrectionSpec(), actualRequest.getSpellCorrectionSpec()); Assert.assertEquals(request.getUserPseudoId(), actualRequest.getUserPseudoId()); Assert.assertEquals(request.getContentSearchSpec(), actualRequest.getContentSearchSpec()); + Assert.assertEquals(request.getRankingExpression(), actualRequest.getRankingExpression()); + Assert.assertEquals( + request.getRankingExpressionBackend(), actualRequest.getRankingExpressionBackend()); Assert.assertEquals(request.getSafeSearch(), actualRequest.getSafeSearch()); Assert.assertEquals(request.getUserLabelsMap(), actualRequest.getUserLabelsMap()); + Assert.assertEquals( + request.getNaturalLanguageQueryUnderstandingSpec(), + actualRequest.getNaturalLanguageQueryUnderstandingSpec()); Assert.assertEquals(request.getSearchAsYouTypeSpec(), actualRequest.getSearchAsYouTypeSpec()); Assert.assertEquals(request.getDisplaySpec(), actualRequest.getDisplaySpec()); + Assert.assertEquals(request.getCrowdingSpecsList(), actualRequest.getCrowdingSpecsList()); Assert.assertEquals(request.getSession(), actualRequest.getSession()); Assert.assertEquals(request.getSessionSpec(), actualRequest.getSessionSpec()); Assert.assertEquals(request.getRelevanceThreshold(), actualRequest.getRelevanceThreshold()); Assert.assertEquals(request.getRelevanceScoreSpec(), actualRequest.getRelevanceScoreSpec()); - Assert.assertEquals(request.getRankingExpression(), actualRequest.getRankingExpression()); - Assert.assertEquals( - request.getRankingExpressionBackend(), actualRequest.getRankingExpressionBackend()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -360,6 +382,7 @@ public void searchLiteExceptionTest() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setQuery("query107944136") + .addAllPageCategories(new ArrayList()) .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) .setPageSize(883849137) .setPageToken("pageToken873572522") @@ -378,17 +401,20 @@ public void searchLiteExceptionTest() throws Exception { .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build()) .setUserPseudoId("userPseudoId-1155274652") .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") .setSafeSearch(true) .putAllUserLabels(new HashMap()) + .setNaturalLanguageQueryUnderstandingSpec( + SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + .addAllCrowdingSpecs(new ArrayList()) .setSession( SessionName.ofProjectLocationDataStoreSessionName( "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") .toString()) .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) - .setRankingExpression("rankingExpression2110320494") .build(); client.searchLite(request); Assert.fail("No exception raised"); diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/pom.xml b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/pom.xml index eebf00a7b6d6..02003c03c2e7 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/pom.xml +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1 - 0.80.0-SNAPSHOT + 0.81.0 grpc-google-cloud-discoveryengine-v1 GRPC library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.80.0-SNAPSHOT + 0.81.0 diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/pom.xml b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/pom.xml index cd0888fca88f..12a96579cfb0 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/pom.xml +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1alpha - 0.80.0-SNAPSHOT + 0.81.0 grpc-google-cloud-discoveryengine-v1alpha GRPC library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.80.0-SNAPSHOT + 0.81.0 diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/pom.xml b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/pom.xml index 0747f6e52214..4f44212c8520 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/pom.xml +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1beta - 0.80.0-SNAPSHOT + 0.81.0 grpc-google-cloud-discoveryengine-v1beta GRPC library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.80.0-SNAPSHOT + 0.81.0 diff --git a/java-discoveryengine/pom.xml b/java-discoveryengine/pom.xml index 8f755dc555fa..66bf297f668d 100644 --- a/java-discoveryengine/pom.xml +++ b/java-discoveryengine/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-discoveryengine-parent pom - 0.80.0-SNAPSHOT + 0.81.0 Google Discovery Engine API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-discoveryengine - 0.80.0-SNAPSHOT + 0.81.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1alpha - 0.80.0-SNAPSHOT + 0.81.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1alpha - 0.80.0-SNAPSHOT + 0.81.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1 - 0.80.0-SNAPSHOT + 0.81.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1 - 0.80.0-SNAPSHOT + 0.81.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1beta - 0.80.0-SNAPSHOT + 0.81.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1beta - 0.80.0-SNAPSHOT + 0.81.0 diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/pom.xml b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/pom.xml index 68245ebb0b2e..9a56eda48712 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/pom.xml +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1 - 0.80.0-SNAPSHOT + 0.81.0 proto-google-cloud-discoveryengine-v1 Proto library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.80.0-SNAPSHOT + 0.81.0 diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStore.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStore.java index 9aed1811683e..e31028e23200 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStore.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStore.java @@ -2538,6 +2538,70 @@ public boolean hasAdvancedSiteSearchConfig() { : advancedSiteSearchConfig_; } + public static final int NATURAL_LANGUAGE_QUERY_UNDERSTANDING_CONFIG_FIELD_NUMBER = 34; + private com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + naturalLanguageQueryUnderstandingConfig_; + + /** + * + * + *
          +   * Optional. Configuration for Natural Language Query Understanding.
          +   * 
          + * + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the naturalLanguageQueryUnderstandingConfig field is set. + */ + @java.lang.Override + public boolean hasNaturalLanguageQueryUnderstandingConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
          +   * Optional. Configuration for Natural Language Query Understanding.
          +   * 
          + * + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The naturalLanguageQueryUnderstandingConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + getNaturalLanguageQueryUnderstandingConfig() { + return naturalLanguageQueryUnderstandingConfig_ == null + ? com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + .getDefaultInstance() + : naturalLanguageQueryUnderstandingConfig_; + } + + /** + * + * + *
          +   * Optional. Configuration for Natural Language Query Understanding.
          +   * 
          + * + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfigOrBuilder + getNaturalLanguageQueryUnderstandingConfigOrBuilder() { + return naturalLanguageQueryUnderstandingConfig_ == null + ? com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + .getDefaultInstance() + : naturalLanguageQueryUnderstandingConfig_; + } + public static final int KMS_KEY_NAME_FIELD_NUMBER = 32; @SuppressWarnings("serial") @@ -2623,7 +2687,7 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { */ @java.lang.Override public boolean hasCmekConfig() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -2682,7 +2746,7 @@ public com.google.cloud.discoveryengine.v1.CmekConfigOrBuilder getCmekConfigOrBu */ @java.lang.Override public boolean hasBillingEstimation() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -2779,7 +2843,7 @@ public boolean getAclEnabled() { */ @java.lang.Override public boolean hasWorkspaceConfig() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -2843,7 +2907,7 @@ public com.google.cloud.discoveryengine.v1.WorkspaceConfig getWorkspaceConfig() */ @java.lang.Override public boolean hasDocumentProcessingConfig() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -2918,7 +2982,7 @@ public boolean hasDocumentProcessingConfig() { */ @java.lang.Override public boolean hasStartingSchema() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -3005,7 +3069,7 @@ public com.google.cloud.discoveryengine.v1.SchemaOrBuilder getStartingSchemaOrBu */ @java.lang.Override public boolean hasHealthcareFhirConfig() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -3159,25 +3223,25 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(12, getAdvancedSiteSearchConfig()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(18, getCmekConfig()); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(23, getBillingEstimation()); } if (aclEnabled_ != false) { output.writeBool(24, aclEnabled_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(25, getWorkspaceConfig()); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(27, getDocumentProcessingConfig()); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(28, getStartingSchema()); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(29, getHealthcareFhirConfig()); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(identityMappingStore_)) { @@ -3186,6 +3250,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKeyName_)) { com.google.protobuf.GeneratedMessage.writeString(output, 32, kmsKeyName_); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(34, getNaturalLanguageQueryUnderstandingConfig()); + } getUnknownFields().writeTo(output); } @@ -3235,27 +3302,27 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 12, getAdvancedSiteSearchConfig()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getCmekConfig()); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getBillingEstimation()); } if (aclEnabled_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(24, aclEnabled_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getWorkspaceConfig()); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 27, getDocumentProcessingConfig()); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getStartingSchema()); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getHealthcareFhirConfig()); } @@ -3265,6 +3332,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKeyName_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(32, kmsKeyName_); } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 34, getNaturalLanguageQueryUnderstandingConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3295,6 +3367,12 @@ public boolean equals(final java.lang.Object obj) { if (hasAdvancedSiteSearchConfig()) { if (!getAdvancedSiteSearchConfig().equals(other.getAdvancedSiteSearchConfig())) return false; } + if (hasNaturalLanguageQueryUnderstandingConfig() + != other.hasNaturalLanguageQueryUnderstandingConfig()) return false; + if (hasNaturalLanguageQueryUnderstandingConfig()) { + if (!getNaturalLanguageQueryUnderstandingConfig() + .equals(other.getNaturalLanguageQueryUnderstandingConfig())) return false; + } if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; if (hasCmekConfig() != other.hasCmekConfig()) return false; if (hasCmekConfig()) { @@ -3355,6 +3433,10 @@ public int hashCode() { hash = (37 * hash) + ADVANCED_SITE_SEARCH_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getAdvancedSiteSearchConfig().hashCode(); } + if (hasNaturalLanguageQueryUnderstandingConfig()) { + hash = (37 * hash) + NATURAL_LANGUAGE_QUERY_UNDERSTANDING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNaturalLanguageQueryUnderstandingConfig().hashCode(); + } hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; hash = (53 * hash) + getKmsKeyName().hashCode(); if (hasCmekConfig()) { @@ -3528,6 +3610,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetCreateTimeFieldBuilder(); internalGetAdvancedSiteSearchConfigFieldBuilder(); + internalGetNaturalLanguageQueryUnderstandingConfigFieldBuilder(); internalGetCmekConfigFieldBuilder(); internalGetBillingEstimationFieldBuilder(); internalGetWorkspaceConfigFieldBuilder(); @@ -3557,6 +3640,11 @@ public Builder clear() { advancedSiteSearchConfigBuilder_.dispose(); advancedSiteSearchConfigBuilder_ = null; } + naturalLanguageQueryUnderstandingConfig_ = null; + if (naturalLanguageQueryUnderstandingConfigBuilder_ != null) { + naturalLanguageQueryUnderstandingConfigBuilder_.dispose(); + naturalLanguageQueryUnderstandingConfigBuilder_ = null; + } kmsKeyName_ = ""; cmekConfig_ = null; if (cmekConfigBuilder_ != null) { @@ -3658,47 +3746,54 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.DataStore result) to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.kmsKeyName_ = kmsKeyName_; + result.naturalLanguageQueryUnderstandingConfig_ = + naturalLanguageQueryUnderstandingConfigBuilder_ == null + ? naturalLanguageQueryUnderstandingConfig_ + : naturalLanguageQueryUnderstandingConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.cmekConfig_ = cmekConfigBuilder_ == null ? cmekConfig_ : cmekConfigBuilder_.build(); - to_bitField0_ |= 0x00000004; + result.kmsKeyName_ = kmsKeyName_; } if (((from_bitField0_ & 0x00000400) != 0)) { + result.cmekConfig_ = cmekConfigBuilder_ == null ? cmekConfig_ : cmekConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000800) != 0)) { result.billingEstimation_ = billingEstimationBuilder_ == null ? billingEstimation_ : billingEstimationBuilder_.build(); - to_bitField0_ |= 0x00000008; + to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.aclEnabled_ = aclEnabled_; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.workspaceConfig_ = workspaceConfigBuilder_ == null ? workspaceConfig_ : workspaceConfigBuilder_.build(); - to_bitField0_ |= 0x00000010; + to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.documentProcessingConfig_ = documentProcessingConfigBuilder_ == null ? documentProcessingConfig_ : documentProcessingConfigBuilder_.build(); - to_bitField0_ |= 0x00000020; + to_bitField0_ |= 0x00000040; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.startingSchema_ = startingSchemaBuilder_ == null ? startingSchema_ : startingSchemaBuilder_.build(); - to_bitField0_ |= 0x00000040; + to_bitField0_ |= 0x00000080; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.healthcareFhirConfig_ = healthcareFhirConfigBuilder_ == null ? healthcareFhirConfig_ : healthcareFhirConfigBuilder_.build(); - to_bitField0_ |= 0x00000080; + to_bitField0_ |= 0x00000100; } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.identityMappingStore_ = identityMappingStore_; } result.bitField0_ |= to_bitField0_; @@ -3754,9 +3849,13 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.DataStore other) { if (other.hasAdvancedSiteSearchConfig()) { mergeAdvancedSiteSearchConfig(other.getAdvancedSiteSearchConfig()); } + if (other.hasNaturalLanguageQueryUnderstandingConfig()) { + mergeNaturalLanguageQueryUnderstandingConfig( + other.getNaturalLanguageQueryUnderstandingConfig()); + } if (!other.getKmsKeyName().isEmpty()) { kmsKeyName_ = other.kmsKeyName_; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } if (other.hasCmekConfig()) { @@ -3782,7 +3881,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.DataStore other) { } if (!other.getIdentityMappingStore().isEmpty()) { identityMappingStore_ = other.identityMappingStore_; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -3878,27 +3977,27 @@ public Builder mergeFrom( { input.readMessage( internalGetCmekConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 146 case 186: { input.readMessage( internalGetBillingEstimationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 186 case 192: { aclEnabled_ = input.readBool(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 192 case 202: { input.readMessage( internalGetWorkspaceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 202 case 218: @@ -3906,35 +4005,43 @@ public Builder mergeFrom( input.readMessage( internalGetDocumentProcessingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 218 case 226: { input.readMessage( internalGetStartingSchemaFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 226 case 234: { input.readMessage( internalGetHealthcareFhirConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 234 case 250: { identityMappingStore_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 250 case 258: { kmsKeyName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 258 + case 274: + { + input.readMessage( + internalGetNaturalLanguageQueryUnderstandingConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 274 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5308,6 +5415,231 @@ public Builder clearAdvancedSiteSearchConfig() { return advancedSiteSearchConfigBuilder_; } + private com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + naturalLanguageQueryUnderstandingConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig, + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Builder, + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfigOrBuilder> + naturalLanguageQueryUnderstandingConfigBuilder_; + + /** + * + * + *
          +     * Optional. Configuration for Natural Language Query Understanding.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the naturalLanguageQueryUnderstandingConfig field is set. + */ + public boolean hasNaturalLanguageQueryUnderstandingConfig() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
          +     * Optional. Configuration for Natural Language Query Understanding.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The naturalLanguageQueryUnderstandingConfig. + */ + public com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + getNaturalLanguageQueryUnderstandingConfig() { + if (naturalLanguageQueryUnderstandingConfigBuilder_ == null) { + return naturalLanguageQueryUnderstandingConfig_ == null + ? com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + .getDefaultInstance() + : naturalLanguageQueryUnderstandingConfig_; + } else { + return naturalLanguageQueryUnderstandingConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Optional. Configuration for Natural Language Query Understanding.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNaturalLanguageQueryUnderstandingConfig( + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig value) { + if (naturalLanguageQueryUnderstandingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + naturalLanguageQueryUnderstandingConfig_ = value; + } else { + naturalLanguageQueryUnderstandingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Configuration for Natural Language Query Understanding.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNaturalLanguageQueryUnderstandingConfig( + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Builder + builderForValue) { + if (naturalLanguageQueryUnderstandingConfigBuilder_ == null) { + naturalLanguageQueryUnderstandingConfig_ = builderForValue.build(); + } else { + naturalLanguageQueryUnderstandingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Configuration for Natural Language Query Understanding.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeNaturalLanguageQueryUnderstandingConfig( + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig value) { + if (naturalLanguageQueryUnderstandingConfigBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && naturalLanguageQueryUnderstandingConfig_ != null + && naturalLanguageQueryUnderstandingConfig_ + != com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + .getDefaultInstance()) { + getNaturalLanguageQueryUnderstandingConfigBuilder().mergeFrom(value); + } else { + naturalLanguageQueryUnderstandingConfig_ = value; + } + } else { + naturalLanguageQueryUnderstandingConfigBuilder_.mergeFrom(value); + } + if (naturalLanguageQueryUnderstandingConfig_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Optional. Configuration for Natural Language Query Understanding.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearNaturalLanguageQueryUnderstandingConfig() { + bitField0_ = (bitField0_ & ~0x00000100); + naturalLanguageQueryUnderstandingConfig_ = null; + if (naturalLanguageQueryUnderstandingConfigBuilder_ != null) { + naturalLanguageQueryUnderstandingConfigBuilder_.dispose(); + naturalLanguageQueryUnderstandingConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Configuration for Natural Language Query Understanding.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Builder + getNaturalLanguageQueryUnderstandingConfigBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return internalGetNaturalLanguageQueryUnderstandingConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Optional. Configuration for Natural Language Query Understanding.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfigOrBuilder + getNaturalLanguageQueryUnderstandingConfigOrBuilder() { + if (naturalLanguageQueryUnderstandingConfigBuilder_ != null) { + return naturalLanguageQueryUnderstandingConfigBuilder_.getMessageOrBuilder(); + } else { + return naturalLanguageQueryUnderstandingConfig_ == null + ? com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + .getDefaultInstance() + : naturalLanguageQueryUnderstandingConfig_; + } + } + + /** + * + * + *
          +     * Optional. Configuration for Natural Language Query Understanding.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig, + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Builder, + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfigOrBuilder> + internalGetNaturalLanguageQueryUnderstandingConfigFieldBuilder() { + if (naturalLanguageQueryUnderstandingConfigBuilder_ == null) { + naturalLanguageQueryUnderstandingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig, + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Builder, + com.google.cloud.discoveryengine.v1 + .NaturalLanguageQueryUnderstandingConfigOrBuilder>( + getNaturalLanguageQueryUnderstandingConfig(), getParentForChildren(), isClean()); + naturalLanguageQueryUnderstandingConfig_ = null; + } + return naturalLanguageQueryUnderstandingConfigBuilder_; + } + private java.lang.Object kmsKeyName_ = ""; /** @@ -5394,7 +5726,7 @@ public Builder setKmsKeyName(java.lang.String value) { throw new NullPointerException(); } kmsKeyName_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -5419,7 +5751,7 @@ public Builder setKmsKeyName(java.lang.String value) { */ public Builder clearKmsKeyName() { kmsKeyName_ = getDefaultInstance().getKmsKeyName(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -5449,7 +5781,7 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); kmsKeyName_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -5475,7 +5807,7 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { * @return Whether the cmekConfig field is set. */ public boolean hasCmekConfig() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -5521,7 +5853,7 @@ public Builder setCmekConfig(com.google.cloud.discoveryengine.v1.CmekConfig valu } else { cmekConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -5544,7 +5876,7 @@ public Builder setCmekConfig( } else { cmekConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -5562,7 +5894,7 @@ public Builder setCmekConfig( */ public Builder mergeCmekConfig(com.google.cloud.discoveryengine.v1.CmekConfig value) { if (cmekConfigBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000400) != 0) && cmekConfig_ != null && cmekConfig_ != com.google.cloud.discoveryengine.v1.CmekConfig.getDefaultInstance()) { getCmekConfigBuilder().mergeFrom(value); @@ -5573,7 +5905,7 @@ public Builder mergeCmekConfig(com.google.cloud.discoveryengine.v1.CmekConfig va cmekConfigBuilder_.mergeFrom(value); } if (cmekConfig_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -5591,7 +5923,7 @@ public Builder mergeCmekConfig(com.google.cloud.discoveryengine.v1.CmekConfig va * */ public Builder clearCmekConfig() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); cmekConfig_ = null; if (cmekConfigBuilder_ != null) { cmekConfigBuilder_.dispose(); @@ -5613,7 +5945,7 @@ public Builder clearCmekConfig() { * */ public com.google.cloud.discoveryengine.v1.CmekConfig.Builder getCmekConfigBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return internalGetCmekConfigFieldBuilder().getBuilder(); } @@ -5688,7 +6020,7 @@ public com.google.cloud.discoveryengine.v1.CmekConfigOrBuilder getCmekConfigOrBu * @return Whether the billingEstimation field is set. */ public boolean hasBillingEstimation() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -5735,7 +6067,7 @@ public Builder setBillingEstimation( } else { billingEstimationBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -5758,7 +6090,7 @@ public Builder setBillingEstimation( } else { billingEstimationBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -5777,7 +6109,7 @@ public Builder setBillingEstimation( public Builder mergeBillingEstimation( com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation value) { if (billingEstimationBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00000800) != 0) && billingEstimation_ != null && billingEstimation_ != com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation @@ -5790,7 +6122,7 @@ public Builder mergeBillingEstimation( billingEstimationBuilder_.mergeFrom(value); } if (billingEstimation_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -5808,7 +6140,7 @@ public Builder mergeBillingEstimation( * */ public Builder clearBillingEstimation() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); billingEstimation_ = null; if (billingEstimationBuilder_ != null) { billingEstimationBuilder_.dispose(); @@ -5831,7 +6163,7 @@ public Builder clearBillingEstimation() { */ public com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.Builder getBillingEstimationBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return internalGetBillingEstimationFieldBuilder().getBuilder(); } @@ -5951,7 +6283,7 @@ public boolean getAclEnabled() { public Builder setAclEnabled(boolean value) { aclEnabled_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -5984,7 +6316,7 @@ public Builder setAclEnabled(boolean value) { * @return This builder for chaining. */ public Builder clearAclEnabled() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); aclEnabled_ = false; onChanged(); return this; @@ -6013,7 +6345,7 @@ public Builder clearAclEnabled() { * @return Whether the workspaceConfig field is set. */ public boolean hasWorkspaceConfig() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -6063,7 +6395,7 @@ public Builder setWorkspaceConfig(com.google.cloud.discoveryengine.v1.WorkspaceC } else { workspaceConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -6088,7 +6420,7 @@ public Builder setWorkspaceConfig( } else { workspaceConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -6108,7 +6440,7 @@ public Builder setWorkspaceConfig( */ public Builder mergeWorkspaceConfig(com.google.cloud.discoveryengine.v1.WorkspaceConfig value) { if (workspaceConfigBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) + if (((bitField0_ & 0x00002000) != 0) && workspaceConfig_ != null && workspaceConfig_ != com.google.cloud.discoveryengine.v1.WorkspaceConfig.getDefaultInstance()) { @@ -6120,7 +6452,7 @@ public Builder mergeWorkspaceConfig(com.google.cloud.discoveryengine.v1.Workspac workspaceConfigBuilder_.mergeFrom(value); } if (workspaceConfig_ != null) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } return this; @@ -6140,7 +6472,7 @@ public Builder mergeWorkspaceConfig(com.google.cloud.discoveryengine.v1.Workspac * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; */ public Builder clearWorkspaceConfig() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); workspaceConfig_ = null; if (workspaceConfigBuilder_ != null) { workspaceConfigBuilder_.dispose(); @@ -6164,7 +6496,7 @@ public Builder clearWorkspaceConfig() { * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; */ public com.google.cloud.discoveryengine.v1.WorkspaceConfig.Builder getWorkspaceConfigBuilder() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return internalGetWorkspaceConfigFieldBuilder().getBuilder(); } @@ -6244,7 +6576,7 @@ public com.google.cloud.discoveryengine.v1.WorkspaceConfig.Builder getWorkspaceC * @return Whether the documentProcessingConfig field is set. */ public boolean hasDocumentProcessingConfig() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** @@ -6292,7 +6624,7 @@ public Builder setDocumentProcessingConfig( } else { documentProcessingConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -6315,7 +6647,7 @@ public Builder setDocumentProcessingConfig( } else { documentProcessingConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -6334,7 +6666,7 @@ public Builder setDocumentProcessingConfig( public Builder mergeDocumentProcessingConfig( com.google.cloud.discoveryengine.v1.DocumentProcessingConfig value) { if (documentProcessingConfigBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) + if (((bitField0_ & 0x00004000) != 0) && documentProcessingConfig_ != null && documentProcessingConfig_ != com.google.cloud.discoveryengine.v1.DocumentProcessingConfig @@ -6347,7 +6679,7 @@ public Builder mergeDocumentProcessingConfig( documentProcessingConfigBuilder_.mergeFrom(value); } if (documentProcessingConfig_ != null) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } return this; @@ -6365,7 +6697,7 @@ public Builder mergeDocumentProcessingConfig( * */ public Builder clearDocumentProcessingConfig() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); documentProcessingConfig_ = null; if (documentProcessingConfigBuilder_ != null) { documentProcessingConfigBuilder_.dispose(); @@ -6388,7 +6720,7 @@ public Builder clearDocumentProcessingConfig() { */ public com.google.cloud.discoveryengine.v1.DocumentProcessingConfig.Builder getDocumentProcessingConfigBuilder() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return internalGetDocumentProcessingConfigFieldBuilder().getBuilder(); } @@ -6478,7 +6810,7 @@ public Builder clearDocumentProcessingConfig() { * @return Whether the startingSchema field is set. */ public boolean hasStartingSchema() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -6552,7 +6884,7 @@ public Builder setStartingSchema(com.google.cloud.discoveryengine.v1.Schema valu } else { startingSchemaBuilder_.setMessage(value); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -6589,7 +6921,7 @@ public Builder setStartingSchema( } else { startingSchemaBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -6621,7 +6953,7 @@ public Builder setStartingSchema( */ public Builder mergeStartingSchema(com.google.cloud.discoveryengine.v1.Schema value) { if (startingSchemaBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) + if (((bitField0_ & 0x00008000) != 0) && startingSchema_ != null && startingSchema_ != com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance()) { getStartingSchemaBuilder().mergeFrom(value); @@ -6632,7 +6964,7 @@ public Builder mergeStartingSchema(com.google.cloud.discoveryengine.v1.Schema va startingSchemaBuilder_.mergeFrom(value); } if (startingSchema_ != null) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } return this; @@ -6664,7 +6996,7 @@ public Builder mergeStartingSchema(com.google.cloud.discoveryengine.v1.Schema va * .google.cloud.discoveryengine.v1.Schema starting_schema = 28; */ public Builder clearStartingSchema() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); startingSchema_ = null; if (startingSchemaBuilder_ != null) { startingSchemaBuilder_.dispose(); @@ -6700,7 +7032,7 @@ public Builder clearStartingSchema() { * .google.cloud.discoveryengine.v1.Schema starting_schema = 28; */ public com.google.cloud.discoveryengine.v1.Schema.Builder getStartingSchemaBuilder() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return internalGetStartingSchemaFieldBuilder().getBuilder(); } @@ -6803,7 +7135,7 @@ public com.google.cloud.discoveryengine.v1.SchemaOrBuilder getStartingSchemaOrBu * @return Whether the healthcareFhirConfig field is set. */ public boolean hasHealthcareFhirConfig() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -6850,7 +7182,7 @@ public Builder setHealthcareFhirConfig( } else { healthcareFhirConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -6873,7 +7205,7 @@ public Builder setHealthcareFhirConfig( } else { healthcareFhirConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -6892,7 +7224,7 @@ public Builder setHealthcareFhirConfig( public Builder mergeHealthcareFhirConfig( com.google.cloud.discoveryengine.v1.HealthcareFhirConfig value) { if (healthcareFhirConfigBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) + if (((bitField0_ & 0x00010000) != 0) && healthcareFhirConfig_ != null && healthcareFhirConfig_ != com.google.cloud.discoveryengine.v1.HealthcareFhirConfig.getDefaultInstance()) { @@ -6904,7 +7236,7 @@ public Builder mergeHealthcareFhirConfig( healthcareFhirConfigBuilder_.mergeFrom(value); } if (healthcareFhirConfig_ != null) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); } return this; @@ -6922,7 +7254,7 @@ public Builder mergeHealthcareFhirConfig( * */ public Builder clearHealthcareFhirConfig() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); healthcareFhirConfig_ = null; if (healthcareFhirConfigBuilder_ != null) { healthcareFhirConfigBuilder_.dispose(); @@ -6945,7 +7277,7 @@ public Builder clearHealthcareFhirConfig() { */ public com.google.cloud.discoveryengine.v1.HealthcareFhirConfig.Builder getHealthcareFhirConfigBuilder() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return internalGetHealthcareFhirConfigFieldBuilder().getBuilder(); } @@ -7083,7 +7415,7 @@ public Builder setIdentityMappingStore(java.lang.String value) { throw new NullPointerException(); } identityMappingStore_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -7107,7 +7439,7 @@ public Builder setIdentityMappingStore(java.lang.String value) { */ public Builder clearIdentityMappingStore() { identityMappingStore_ = getDefaultInstance().getIdentityMappingStore(); - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); onChanged(); return this; } @@ -7136,7 +7468,7 @@ public Builder setIdentityMappingStoreBytes(com.google.protobuf.ByteString value } checkByteStringIsUtf8(value); identityMappingStore_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreOrBuilder.java index deab3c7eb77f..c07eb3592a0f 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreOrBuilder.java @@ -371,6 +371,51 @@ public interface DataStoreOrBuilder com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfigOrBuilder getAdvancedSiteSearchConfigOrBuilder(); + /** + * + * + *
          +   * Optional. Configuration for Natural Language Query Understanding.
          +   * 
          + * + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the naturalLanguageQueryUnderstandingConfig field is set. + */ + boolean hasNaturalLanguageQueryUnderstandingConfig(); + + /** + * + * + *
          +   * Optional. Configuration for Natural Language Query Understanding.
          +   * 
          + * + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The naturalLanguageQueryUnderstandingConfig. + */ + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + getNaturalLanguageQueryUnderstandingConfig(); + + /** + * + * + *
          +   * Optional. Configuration for Natural Language Query Understanding.
          +   * 
          + * + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfigOrBuilder + getNaturalLanguageQueryUnderstandingConfigOrBuilder(); + /** * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreProto.java index a0e6bc1c465f..1cb1f91ecb06 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreProto.java @@ -52,6 +52,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1_AdvancedSiteSearchConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1_AdvancedSiteSearchConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_NaturalLanguageQueryUnderstandingConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_NaturalLanguageQueryUnderstandingConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1_WorkspaceConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -65,81 +69,95 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n0google/cloud/discoveryengine/v1/data_s" - + "tore.proto\022\037google.cloud.discoveryengine" + "\n" + + "0google/cloud/discoveryengine/v1/data_store.proto\022\037google.cloud.discoveryengine" + ".v1\032\037google/api/field_behavior.proto\032\031go" - + "ogle/api/resource.proto\0329google/cloud/di" - + "scoveryengine/v1/cmek_config_service.pro" - + "to\032,google/cloud/discoveryengine/v1/comm" - + "on.proto\032@google/cloud/discoveryengine/v" + + "ogle/api/resource.proto\0329google/cloud/discoveryengine/v1/cmek_config_service.pro" + + "to\032,google/cloud/discoveryengine/v1/common.proto\032@google/cloud/discoveryengine/v" + "1/document_processing_config.proto\032,goog" - + "le/cloud/discoveryengine/v1/schema.proto" - + "\032\037google/protobuf/timestamp.proto\"\347\r\n\tDa" - + "taStore\022\024\n\004name\030\001 \001(\tB\006\340A\005\340A\010\022\031\n\014display" - + "_name\030\002 \001(\tB\003\340A\002\022Q\n\021industry_vertical\030\003 " - + "\001(\01621.google.cloud.discoveryengine.v1.In" - + "dustryVerticalB\003\340A\005\022E\n\016solution_types\030\005 " - + "\003(\0162-.google.cloud.discoveryengine.v1.So" - + "lutionType\022\036\n\021default_schema_id\030\007 \001(\tB\003\340" - + "A\003\022U\n\016content_config\030\006 \001(\01628.google.clou" - + "d.discoveryengine.v1.DataStore.ContentCo" - + "nfigB\003\340A\005\0224\n\013create_time\030\004 \001(\0132\032.google." - + "protobuf.TimestampB\003\340A\003\022c\n\033advanced_site" - + "_search_config\030\014 \001(\01329.google.cloud.disc" - + "overyengine.v1.AdvancedSiteSearchConfigB" - + "\003\340A\001\022\031\n\014kms_key_name\030 \001(\tB\003\340A\004\022E\n\013cmek_" - + "config\030\022 \001(\0132+.google.cloud.discoveryeng" - + "ine.v1.CmekConfigB\003\340A\003\022]\n\022billing_estima" - + "tion\030\027 \001(\0132<.google.cloud.discoveryengin" - + "e.v1.DataStore.BillingEstimationB\003\340A\003\022\030\n" - + "\013acl_enabled\030\030 \001(\010B\003\340A\005\022J\n\020workspace_con" - + "fig\030\031 \001(\01320.google.cloud.discoveryengine" - + ".v1.WorkspaceConfig\022]\n\032document_processi" - + "ng_config\030\033 \001(\01329.google.cloud.discovery" - + "engine.v1.DocumentProcessingConfig\022@\n\017st" - + "arting_schema\030\034 \001(\0132\'.google.cloud.disco" - + "veryengine.v1.Schema\022Z\n\026healthcare_fhir_" - + "config\030\035 \001(\01325.google.cloud.discoveryeng" - + "ine.v1.HealthcareFhirConfigB\003\340A\001\022[\n\026iden" - + "tity_mapping_store\030\037 \001(\tB;\340A\005\372A5\n3discov" - + "eryengine.googleapis.com/IdentityMapping" - + "Store\032\256\002\n\021BillingEstimation\022\034\n\024structure" - + "d_data_size\030\001 \001(\003\022\036\n\026unstructured_data_s" - + "ize\030\002 \001(\003\022\031\n\021website_data_size\030\003 \001(\003\022?\n\033" - + "structured_data_update_time\030\004 \001(\0132\032.goog" - + "le.protobuf.Timestamp\022A\n\035unstructured_da" - + "ta_update_time\030\005 \001(\0132\032.google.protobuf.T" - + "imestamp\022<\n\030website_data_update_time\030\006 \001" - + "(\0132\032.google.protobuf.Timestamp\"\177\n\rConten" - + "tConfig\022\036\n\032CONTENT_CONFIG_UNSPECIFIED\020\000\022" - + "\016\n\nNO_CONTENT\020\001\022\024\n\020CONTENT_REQUIRED\020\002\022\022\n" - + "\016PUBLIC_WEBSITE\020\003\022\024\n\020GOOGLE_WORKSPACE\020\004:" - + "\311\001\352A\305\001\n(discoveryengine.googleapis.com/D" - + "ataStore\022?projects/{project}/locations/{" - + "location}/dataStores/{data_store}\022Xproje" - + "cts/{project}/locations/{location}/colle" - + "ctions/{collection}/dataStores/{data_sto" - + "re}\"\236\001\n\030AdvancedSiteSearchConfig\022\"\n\025disa" - + "ble_initial_index\030\003 \001(\010H\000\210\001\001\022&\n\031disable_" - + "automatic_refresh\030\004 \001(\010H\001\210\001\001B\030\n\026_disable" - + "_initial_indexB\034\n\032_disable_automatic_ref" - + "resh\"\365\002\n\017WorkspaceConfig\022C\n\004type\030\001 \001(\01625" - + ".google.cloud.discoveryengine.v1.Workspa" - + "ceConfig.Type\022\032\n\022dasher_customer_id\030\002 \001(" - + "\t\022(\n\033super_admin_service_account\030\004 \001(\tB\003" - + "\340A\001\022&\n\031super_admin_email_address\030\005 \001(\tB\003" - + "\340A\001\"\256\001\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\020\n\014GO" - + "OGLE_DRIVE\020\001\022\017\n\013GOOGLE_MAIL\020\002\022\020\n\014GOOGLE_" - + "SITES\020\003\022\023\n\017GOOGLE_CALENDAR\020\004\022\017\n\013GOOGLE_C" - + "HAT\020\005\022\021\n\rGOOGLE_GROUPS\020\006\022\017\n\013GOOGLE_KEEP\020" - + "\007\022\021\n\rGOOGLE_PEOPLE\020\010B\201\002\n#com.google.clou" - + "d.discoveryengine.v1B\016DataStoreProtoP\001ZM" - + "cloud.google.com/go/discoveryengine/apiv" - + "1/discoveryenginepb;discoveryenginepb\242\002\017" - + "DISCOVERYENGINE\252\002\037Google.Cloud.Discovery" - + "Engine.V1\312\002\037Google\\Cloud\\DiscoveryEngine" - + "\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1" - + "b\006proto3" + + "le/cloud/discoveryengine/v1/schema.proto\032\037google/protobuf/timestamp.proto\"\354\016\n" + + "\tDataStore\022\024\n" + + "\004name\030\001 \001(\tB\006\340A\005\340A\010\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\002\022Q\n" + + "\021industry_vertical\030\003 " + + "\001(\01621.google.cloud.discoveryengine.v1.IndustryVerticalB\003\340A\005\022E\n" + + "\016solution_types\030\005 " + + "\003(\0162-.google.cloud.discoveryengine.v1.SolutionType\022\036\n" + + "\021default_schema_id\030\007 \001(\tB\003\340A\003\022U\n" + + "\016content_config\030\006 \001(\01628.google.clou" + + "d.discoveryengine.v1.DataStore.ContentConfigB\003\340A\005\0224\n" + + "\013create_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022c\n" + + "\033advanced_site_search_config\030\014 \001(\01329.google.cloud.disc" + + "overyengine.v1.AdvancedSiteSearchConfigB\003\340A\001\022\202\001\n" + + "+natural_language_query_understanding_config\030\" \001(\0132H.google.cloud.discov" + + "eryengine.v1.NaturalLanguageQueryUnderstandingConfigB\003\340A\001\022\031\n" + + "\014kms_key_name\030 \001(\tB\003\340A\004\022E\n" + + "\013cmek_config\030\022" + + " \001(\0132+.google.cloud.discoveryengine.v1.CmekConfigB\003\340A\003\022]\n" + + "\022billing_estimation\030\027 \001(\0132<.google.cloud.d" + + "iscoveryengine.v1.DataStore.BillingEstimationB\003\340A\003\022\030\n" + + "\013acl_enabled\030\030 \001(\010B\003\340A\005\022J\n" + + "\020workspace_config\030\031" + + " \001(\01320.google.cloud.discoveryengine.v1.WorkspaceConfig\022]\n" + + "\032document_processing_config\030\033 \001(\01329.google.cl" + + "oud.discoveryengine.v1.DocumentProcessingConfig\022@\n" + + "\017starting_schema\030\034 \001(\0132\'.google.cloud.discoveryengine.v1.Schema\022Z\n" + + "\026healthcare_fhir_config\030\035 \001(\01325.google.cloud" + + ".discoveryengine.v1.HealthcareFhirConfigB\003\340A\001\022[\n" + + "\026identity_mapping_store\030\037 \001(\tB;\340A\005\372A5\n" + + "3discoveryengine.googleapis.com/IdentityMappingStore\032\256\002\n" + + "\021BillingEstimation\022\034\n" + + "\024structured_data_size\030\001 \001(\003\022\036\n" + + "\026unstructured_data_size\030\002 \001(\003\022\031\n" + + "\021website_data_size\030\003 \001(\003\022?\n" + + "\033structured_data_update_time\030\004" + + " \001(\0132\032.google.protobuf.Timestamp\022A\n" + + "\035unstructured_data_update_time\030\005" + + " \001(\0132\032.google.protobuf.Timestamp\022<\n" + + "\030website_data_update_time\030\006" + + " \001(\0132\032.google.protobuf.Timestamp\"\177\n\r" + + "ContentConfig\022\036\n" + + "\032CONTENT_CONFIG_UNSPECIFIED\020\000\022\016\n\n" + + "NO_CONTENT\020\001\022\024\n" + + "\020CONTENT_REQUIRED\020\002\022\022\n" + + "\016PUBLIC_WEBSITE\020\003\022\024\n" + + "\020GOOGLE_WORKSPACE\020\004:\311\001\352A\305\001\n" + + "(discoveryengine.googleapis.com/DataStore\022?projects/{project" + + "}/locations/{location}/dataStores/{data_store}\022Xprojects/{project}/locations/{lo" + + "cation}/collections/{collection}/dataStores/{data_store}\"\236\001\n" + + "\030AdvancedSiteSearchConfig\022\"\n" + + "\025disable_initial_index\030\003 \001(\010H\000\210\001\001\022&\n" + + "\031disable_automatic_refresh\030\004 \001(\010H\001\210\001\001B\030\n" + + "\026_disable_initial_indexB\034\n" + + "\032_disable_automatic_refresh\"\277\001\n" + + "\'NaturalLanguageQueryUnderstandingConfig\022[\n" + + "\004mode\030\001 \001(\0162M.go" + + "ogle.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode\"7\n" + + "\004Mode\022\024\n" + + "\020MODE_UNSPECIFIED\020\000\022\014\n" + + "\010DISABLED\020\001\022\013\n" + + "\007ENABLED\020\002\"\365\002\n" + + "\017WorkspaceConfig\022C\n" + + "\004type\030\001" + + " \001(\01625.google.cloud.discoveryengine.v1.WorkspaceConfig.Type\022\032\n" + + "\022dasher_customer_id\030\002 \001(\t\022(\n" + + "\033super_admin_service_account\030\004 \001(\tB\003\340A\001\022&\n" + + "\031super_admin_email_address\030\005 \001(\tB\003\340A\001\"\256\001\n" + + "\004Type\022\024\n" + + "\020TYPE_UNSPECIFIED\020\000\022\020\n" + + "\014GOOGLE_DRIVE\020\001\022\017\n" + + "\013GOOGLE_MAIL\020\002\022\020\n" + + "\014GOOGLE_SITES\020\003\022\023\n" + + "\017GOOGLE_CALENDAR\020\004\022\017\n" + + "\013GOOGLE_CHAT\020\005\022\021\n\r" + + "GOOGLE_GROUPS\020\006\022\017\n" + + "\013GOOGLE_KEEP\020\007\022\021\n\r" + + "GOOGLE_PEOPLE\020\010B\201\002\n" + + "#com.google.cloud.discoveryengine.v1B\016DataStorePr" + + "otoP\001ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryengi" + + "nepb\242\002\017DISCOVERYENGINE\252\002\037Google.Cloud.Di" + + "scoveryEngine.V1\312\002\037Google\\Cloud\\Discover" + + "yEngine\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -167,6 +185,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ContentConfig", "CreateTime", "AdvancedSiteSearchConfig", + "NaturalLanguageQueryUnderstandingConfig", "KmsKeyName", "CmekConfig", "BillingEstimation", @@ -198,8 +217,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "DisableInitialIndex", "DisableAutomaticRefresh", }); - internal_static_google_cloud_discoveryengine_v1_WorkspaceConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1_NaturalLanguageQueryUnderstandingConfig_descriptor = getDescriptor().getMessageType(2); + internal_static_google_cloud_discoveryengine_v1_NaturalLanguageQueryUnderstandingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_NaturalLanguageQueryUnderstandingConfig_descriptor, + new java.lang.String[] { + "Mode", + }); + internal_static_google_cloud_discoveryengine_v1_WorkspaceConfig_descriptor = + getDescriptor().getMessageType(3); internal_static_google_cloud_discoveryengine_v1_WorkspaceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_WorkspaceConfig_descriptor, diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/NaturalLanguageQueryUnderstandingConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/NaturalLanguageQueryUnderstandingConfig.java new file mode 100644 index 000000000000..33fc1a584110 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/NaturalLanguageQueryUnderstandingConfig.java @@ -0,0 +1,803 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/data_store.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
          + * Configuration for Natural Language Query Understanding.
          + * 
          + * + * Protobuf type {@code google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig} + */ +@com.google.protobuf.Generated +public final class NaturalLanguageQueryUnderstandingConfig + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig) + NaturalLanguageQueryUnderstandingConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "NaturalLanguageQueryUnderstandingConfig"); + } + + // Use NaturalLanguageQueryUnderstandingConfig.newBuilder() to construct. + private NaturalLanguageQueryUnderstandingConfig( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private NaturalLanguageQueryUnderstandingConfig() { + mode_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_NaturalLanguageQueryUnderstandingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_NaturalLanguageQueryUnderstandingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.class, + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Builder + .class); + } + + /** + * + * + *
          +   * Mode of Natural Language Query Understanding. When the
          +   * NaturalLanguageQueryUnderstandingConfig.Mode is ENABLED, the natural
          +   * language understanding capabilities will be enabled for a search request if
          +   * the NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition in the
          +   * SearchRequest is ENABLED.
          +   * 
          + * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode} + */ + public enum Mode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * Default value.
          +     * 
          + * + * MODE_UNSPECIFIED = 0; + */ + MODE_UNSPECIFIED(0), + /** + * + * + *
          +     * Natural Language Query Understanding is disabled.
          +     * 
          + * + * DISABLED = 1; + */ + DISABLED(1), + /** + * + * + *
          +     * Natural Language Query Understanding is enabled.
          +     * 
          + * + * ENABLED = 2; + */ + ENABLED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Mode"); + } + + /** + * + * + *
          +     * Default value.
          +     * 
          + * + * MODE_UNSPECIFIED = 0; + */ + public static final int MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
          +     * Natural Language Query Understanding is disabled.
          +     * 
          + * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + + /** + * + * + *
          +     * Natural Language Query Understanding is enabled.
          +     * 
          + * + * ENABLED = 2; + */ + public static final int ENABLED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Mode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Mode forNumber(int value) { + switch (value) { + case 0: + return MODE_UNSPECIFIED; + case 1: + return DISABLED; + case 2: + return ENABLED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Mode findValueByNumber(int number) { + return Mode.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Mode[] VALUES = values(); + + public static Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Mode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode) + } + + public static final int MODE_FIELD_NUMBER = 1; + private int mode_ = 0; + + /** + * + * + *
          +   * Mode of Natural Language Query Understanding. If this field is unset, the
          +   * behavior defaults to
          +   * [NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED][google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED].
          +   * 
          + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode mode = 1; + * + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + + /** + * + * + *
          +   * Mode of Natural Language Query Understanding. If this field is unset, the
          +   * behavior defaults to
          +   * [NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED][google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED].
          +   * 
          + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode mode = 1; + * + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode + getMode() { + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode result = + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode.forNumber( + mode_); + return result == null + ? com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode + .UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (mode_ + != com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode + .MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, mode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (mode_ + != com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode + .MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, mode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig other = + (com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig) obj; + + if (mode_ != other.mode_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MODE_FIELD_NUMBER; + hash = (53 * hash) + mode_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Configuration for Natural Language Query Understanding.
          +   * 
          + * + * Protobuf type {@code google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig) + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_NaturalLanguageQueryUnderstandingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_NaturalLanguageQueryUnderstandingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.class, + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mode_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_NaturalLanguageQueryUnderstandingConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig build() { + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + buildPartial() { + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig result = + new com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mode_ = mode_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig other) { + if (other + == com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + .getDefaultInstance()) return this; + if (other.mode_ != 0) { + setModeValue(other.getModeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + mode_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int mode_ = 0; + + /** + * + * + *
          +     * Mode of Natural Language Query Understanding. If this field is unset, the
          +     * behavior defaults to
          +     * [NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED][google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED].
          +     * 
          + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode mode = 1; + * + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + + /** + * + * + *
          +     * Mode of Natural Language Query Understanding. If this field is unset, the
          +     * behavior defaults to
          +     * [NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED][google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED].
          +     * 
          + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode mode = 1; + * + * + * @param value The enum numeric value on the wire for mode to set. + * @return This builder for chaining. + */ + public Builder setModeValue(int value) { + mode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Mode of Natural Language Query Understanding. If this field is unset, the
          +     * behavior defaults to
          +     * [NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED][google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED].
          +     * 
          + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode mode = 1; + * + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode + getMode() { + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode result = + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode + .forNumber(mode_); + return result == null + ? com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode + .UNRECOGNIZED + : result; + } + + /** + * + * + *
          +     * Mode of Natural Language Query Understanding. If this field is unset, the
          +     * behavior defaults to
          +     * [NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED][google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED].
          +     * 
          + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode mode = 1; + * + * + * @param value The mode to set. + * @return This builder for chaining. + */ + public Builder setMode( + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + mode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Mode of Natural Language Query Understanding. If this field is unset, the
          +     * behavior defaults to
          +     * [NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED][google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED].
          +     * 
          + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode mode = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearMode() { + bitField0_ = (bitField0_ & ~0x00000001); + mode_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig) + private static final com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig(); + } + + public static com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NaturalLanguageQueryUnderstandingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/NaturalLanguageQueryUnderstandingConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/NaturalLanguageQueryUnderstandingConfigOrBuilder.java new file mode 100644 index 000000000000..fece51c0aa0c --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/NaturalLanguageQueryUnderstandingConfigOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/data_store.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface NaturalLanguageQueryUnderstandingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Mode of Natural Language Query Understanding. If this field is unset, the
          +   * behavior defaults to
          +   * [NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED][google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED].
          +   * 
          + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode mode = 1; + * + * + * @return The enum numeric value on the wire for mode. + */ + int getModeValue(); + + /** + * + * + *
          +   * Mode of Natural Language Query Understanding. If this field is unset, the
          +   * behavior defaults to
          +   * [NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED][google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED].
          +   * 
          + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode mode = 1; + * + * + * @return The mode. + */ + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode getMode(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequest.java index 094fdb29e01b..10d23789dd7d 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequest.java @@ -57,6 +57,7 @@ private SearchRequest() { servingConfig_ = ""; branch_ = ""; query_ = ""; + pageCategories_ = com.google.protobuf.LazyStringArrayList.emptyList(); pageToken_ = ""; dataStoreSpecs_ = java.util.Collections.emptyList(); filter_ = ""; @@ -65,10 +66,11 @@ private SearchRequest() { languageCode_ = ""; facetSpecs_ = java.util.Collections.emptyList(); userPseudoId_ = ""; - session_ = ""; - relevanceThreshold_ = 0; rankingExpression_ = ""; rankingExpressionBackend_ = 0; + crowdingSpecs_ = java.util.Collections.emptyList(); + session_ = ""; + relevanceThreshold_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -104,65 +106,70 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * * *
          -   * The relevance threshold of the search results. The higher relevance
          -   * threshold is, the higher relevant results are shown and the less number of
          -   * results are returned.
          +   * The backend to use for the ranking expression evaluation.
              * 
          * - * Protobuf enum {@code google.cloud.discoveryengine.v1.SearchRequest.RelevanceThreshold} + * Protobuf enum {@code google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend} */ - public enum RelevanceThreshold implements com.google.protobuf.ProtocolMessageEnum { + public enum RankingExpressionBackend implements com.google.protobuf.ProtocolMessageEnum { /** * * *
          -     * Default value. In this case, server behavior defaults to Google defined
          -     * threshold.
          +     * Default option for unspecified/unknown values.
                * 
          * - * RELEVANCE_THRESHOLD_UNSPECIFIED = 0; + * RANKING_EXPRESSION_BACKEND_UNSPECIFIED = 0; */ - RELEVANCE_THRESHOLD_UNSPECIFIED(0), + RANKING_EXPRESSION_BACKEND_UNSPECIFIED(0), /** * * *
          -     * Lowest relevance threshold.
          +     * Deprecated: Use `RANK_BY_EMBEDDING` instead.
          +     * Ranking by custom embedding model, the default way to evaluate the
          +     * ranking expression. Legacy enum option, `RANK_BY_EMBEDDING` should be
          +     * used instead.
                * 
          * - * LOWEST = 1; + * BYOE = 1 [deprecated = true]; */ - LOWEST(1), + @java.lang.Deprecated + BYOE(1), /** * * *
          -     * Low relevance threshold.
          +     * Deprecated: Use `RANK_BY_FORMULA` instead.
          +     * Ranking by custom formula. Legacy enum option, `RANK_BY_FORMULA` should
          +     * be used instead.
                * 
          * - * LOW = 2; + * CLEARBOX = 2 [deprecated = true]; */ - LOW(2), + @java.lang.Deprecated + CLEARBOX(2), /** * * *
          -     * Medium relevance threshold.
          +     * Ranking by custom embedding model, the default way to evaluate the
          +     * ranking expression.
                * 
          * - * MEDIUM = 3; + * RANK_BY_EMBEDDING = 3; */ - MEDIUM(3), + RANK_BY_EMBEDDING(3), /** * * *
          -     * High relevance threshold.
          +     * Ranking by custom formula.
                * 
          * - * HIGH = 4; + * RANK_BY_FORMULA = 4; */ - HIGH(4), + RANK_BY_FORMULA(4), UNRECOGNIZED(-1), ; @@ -173,64 +180,69 @@ public enum RelevanceThreshold implements com.google.protobuf.ProtocolMessageEnu /* minor= */ 33, /* patch= */ 2, /* suffix= */ "", - "RelevanceThreshold"); + "RankingExpressionBackend"); } /** * * *
          -     * Default value. In this case, server behavior defaults to Google defined
          -     * threshold.
          +     * Default option for unspecified/unknown values.
                * 
          * - * RELEVANCE_THRESHOLD_UNSPECIFIED = 0; + * RANKING_EXPRESSION_BACKEND_UNSPECIFIED = 0; */ - public static final int RELEVANCE_THRESHOLD_UNSPECIFIED_VALUE = 0; + public static final int RANKING_EXPRESSION_BACKEND_UNSPECIFIED_VALUE = 0; /** * * *
          -     * Lowest relevance threshold.
          +     * Deprecated: Use `RANK_BY_EMBEDDING` instead.
          +     * Ranking by custom embedding model, the default way to evaluate the
          +     * ranking expression. Legacy enum option, `RANK_BY_EMBEDDING` should be
          +     * used instead.
                * 
          * - * LOWEST = 1; + * BYOE = 1 [deprecated = true]; */ - public static final int LOWEST_VALUE = 1; + @java.lang.Deprecated public static final int BYOE_VALUE = 1; /** * * *
          -     * Low relevance threshold.
          +     * Deprecated: Use `RANK_BY_FORMULA` instead.
          +     * Ranking by custom formula. Legacy enum option, `RANK_BY_FORMULA` should
          +     * be used instead.
                * 
          * - * LOW = 2; + * CLEARBOX = 2 [deprecated = true]; */ - public static final int LOW_VALUE = 2; + @java.lang.Deprecated public static final int CLEARBOX_VALUE = 2; /** * * *
          -     * Medium relevance threshold.
          +     * Ranking by custom embedding model, the default way to evaluate the
          +     * ranking expression.
                * 
          * - * MEDIUM = 3; + * RANK_BY_EMBEDDING = 3; */ - public static final int MEDIUM_VALUE = 3; + public static final int RANK_BY_EMBEDDING_VALUE = 3; /** * * *
          -     * High relevance threshold.
          +     * Ranking by custom formula.
                * 
          * - * HIGH = 4; + * RANK_BY_FORMULA = 4; */ - public static final int HIGH_VALUE = 4; + public static final int RANK_BY_FORMULA_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -246,7 +258,7 @@ public final int getNumber() { * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated - public static RelevanceThreshold valueOf(int value) { + public static RankingExpressionBackend valueOf(int value) { return forNumber(value); } @@ -254,33 +266,33 @@ public static RelevanceThreshold valueOf(int value) { * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ - public static RelevanceThreshold forNumber(int value) { + public static RankingExpressionBackend forNumber(int value) { switch (value) { case 0: - return RELEVANCE_THRESHOLD_UNSPECIFIED; + return RANKING_EXPRESSION_BACKEND_UNSPECIFIED; case 1: - return LOWEST; + return BYOE; case 2: - return LOW; + return CLEARBOX; case 3: - return MEDIUM; + return RANK_BY_EMBEDDING; case 4: - return HIGH; + return RANK_BY_FORMULA; default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RelevanceThreshold findValueByNumber(int number) { - return RelevanceThreshold.forNumber(number); + new com.google.protobuf.Internal.EnumLiteMap() { + public RankingExpressionBackend findValueByNumber(int number) { + return RankingExpressionBackend.forNumber(number); } }; @@ -302,9 +314,9 @@ public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { .get(0); } - private static final RelevanceThreshold[] VALUES = values(); + private static final RankingExpressionBackend[] VALUES = values(); - public static RelevanceThreshold valueOf( + public static RankingExpressionBackend valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); @@ -317,54 +329,76 @@ public static RelevanceThreshold valueOf( private final int value; - private RelevanceThreshold(int value) { + private RankingExpressionBackend(int value) { this.value = value; } - // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.SearchRequest.RelevanceThreshold) + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend) } /** * * *
          -   * The backend to use for the ranking expression evaluation.
          +   * The relevance threshold of the search results. The higher relevance
          +   * threshold is, the higher relevant results are shown and the less number of
          +   * results are returned.
              * 
          * - * Protobuf enum {@code google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend} + * Protobuf enum {@code google.cloud.discoveryengine.v1.SearchRequest.RelevanceThreshold} */ - public enum RankingExpressionBackend implements com.google.protobuf.ProtocolMessageEnum { + public enum RelevanceThreshold implements com.google.protobuf.ProtocolMessageEnum { /** * * *
          -     * Default option for unspecified/unknown values.
          +     * Default value. In this case, server behavior defaults to Google defined
          +     * threshold.
                * 
          * - * RANKING_EXPRESSION_BACKEND_UNSPECIFIED = 0; + * RELEVANCE_THRESHOLD_UNSPECIFIED = 0; */ - RANKING_EXPRESSION_BACKEND_UNSPECIFIED(0), + RELEVANCE_THRESHOLD_UNSPECIFIED(0), /** * * *
          -     * Ranking by custom embedding model, the default way to evaluate the
          -     * ranking expression.
          +     * Lowest relevance threshold.
                * 
          * - * RANK_BY_EMBEDDING = 3; + * LOWEST = 1; */ - RANK_BY_EMBEDDING(3), + LOWEST(1), /** * * *
          -     * Ranking by custom formula.
          +     * Low relevance threshold.
                * 
          * - * RANK_BY_FORMULA = 4; + * LOW = 2; */ - RANK_BY_FORMULA(4), + LOW(2), + /** + * + * + *
          +     * Medium relevance threshold.
          +     * 
          + * + * MEDIUM = 3; + */ + MEDIUM(3), + /** + * + * + *
          +     * High relevance threshold.
          +     * 
          + * + * HIGH = 4; + */ + HIGH(4), UNRECOGNIZED(-1), ; @@ -375,42 +409,64 @@ public enum RankingExpressionBackend implements com.google.protobuf.ProtocolMess /* minor= */ 33, /* patch= */ 2, /* suffix= */ "", - "RankingExpressionBackend"); + "RelevanceThreshold"); } /** * * *
          -     * Default option for unspecified/unknown values.
          +     * Default value. In this case, server behavior defaults to Google defined
          +     * threshold.
                * 
          * - * RANKING_EXPRESSION_BACKEND_UNSPECIFIED = 0; + * RELEVANCE_THRESHOLD_UNSPECIFIED = 0; */ - public static final int RANKING_EXPRESSION_BACKEND_UNSPECIFIED_VALUE = 0; + public static final int RELEVANCE_THRESHOLD_UNSPECIFIED_VALUE = 0; /** * * *
          -     * Ranking by custom embedding model, the default way to evaluate the
          -     * ranking expression.
          +     * Lowest relevance threshold.
                * 
          * - * RANK_BY_EMBEDDING = 3; + * LOWEST = 1; */ - public static final int RANK_BY_EMBEDDING_VALUE = 3; + public static final int LOWEST_VALUE = 1; /** * * *
          -     * Ranking by custom formula.
          +     * Low relevance threshold.
                * 
          * - * RANK_BY_FORMULA = 4; + * LOW = 2; */ - public static final int RANK_BY_FORMULA_VALUE = 4; + public static final int LOW_VALUE = 2; + + /** + * + * + *
          +     * Medium relevance threshold.
          +     * 
          + * + * MEDIUM = 3; + */ + public static final int MEDIUM_VALUE = 3; + + /** + * + * + *
          +     * High relevance threshold.
          +     * 
          + * + * HIGH = 4; + */ + public static final int HIGH_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -426,7 +482,7 @@ public final int getNumber() { * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated - public static RankingExpressionBackend valueOf(int value) { + public static RelevanceThreshold valueOf(int value) { return forNumber(value); } @@ -434,29 +490,33 @@ public static RankingExpressionBackend valueOf(int value) { * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ - public static RankingExpressionBackend forNumber(int value) { + public static RelevanceThreshold forNumber(int value) { switch (value) { case 0: - return RANKING_EXPRESSION_BACKEND_UNSPECIFIED; + return RELEVANCE_THRESHOLD_UNSPECIFIED; + case 1: + return LOWEST; + case 2: + return LOW; case 3: - return RANK_BY_EMBEDDING; + return MEDIUM; case 4: - return RANK_BY_FORMULA; + return HIGH; default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RankingExpressionBackend findValueByNumber(int number) { - return RankingExpressionBackend.forNumber(number); + new com.google.protobuf.Internal.EnumLiteMap() { + public RelevanceThreshold findValueByNumber(int number) { + return RelevanceThreshold.forNumber(number); } }; @@ -478,9 +538,9 @@ public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { .get(1); } - private static final RankingExpressionBackend[] VALUES = values(); + private static final RelevanceThreshold[] VALUES = values(); - public static RankingExpressionBackend valueOf( + public static RelevanceThreshold valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); @@ -493,11 +553,11 @@ public static RankingExpressionBackend valueOf( private final int value; - private RankingExpressionBackend(int value) { + private RelevanceThreshold(int value) { this.value = value; } - // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend) + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.SearchRequest.RelevanceThreshold) } public interface ImageQueryOrBuilder @@ -1287,6 +1347,8 @@ public interface DataStoreSpecOrBuilder * Required. Full resource name of * [DataStore][google.cloud.discoveryengine.v1.DataStore], such as * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. + * The path must include the project number, project id is not supported for + * this field. * * * @@ -1304,6 +1366,8 @@ public interface DataStoreSpecOrBuilder * Required. Full resource name of * [DataStore][google.cloud.discoveryengine.v1.DataStore], such as * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. + * The path must include the project number, project id is not supported for + * this field. * * * @@ -1492,6 +1556,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Required. Full resource name of * [DataStore][google.cloud.discoveryengine.v1.DataStore], such as * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. + * The path must include the project number, project id is not supported for + * this field. * * * @@ -1520,6 +1586,8 @@ public java.lang.String getDataStore() { * Required. Full resource name of * [DataStore][google.cloud.discoveryengine.v1.DataStore], such as * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. + * The path must include the project number, project id is not supported for + * this field. * * * @@ -2143,6 +2211,8 @@ public Builder mergeFrom( * Required. Full resource name of * [DataStore][google.cloud.discoveryengine.v1.DataStore], such as * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. + * The path must include the project number, project id is not supported for + * this field. * * * @@ -2170,6 +2240,8 @@ public java.lang.String getDataStore() { * Required. Full resource name of * [DataStore][google.cloud.discoveryengine.v1.DataStore], such as * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. + * The path must include the project number, project id is not supported for + * this field. * * * @@ -2197,6 +2269,8 @@ public com.google.protobuf.ByteString getDataStoreBytes() { * Required. Full resource name of * [DataStore][google.cloud.discoveryengine.v1.DataStore], such as * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. + * The path must include the project number, project id is not supported for + * this field. * * * @@ -2223,6 +2297,8 @@ public Builder setDataStore(java.lang.String value) { * Required. Full resource name of * [DataStore][google.cloud.discoveryengine.v1.DataStore], such as * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. + * The path must include the project number, project id is not supported for + * this field. * * * @@ -2245,6 +2321,8 @@ public Builder clearDataStore() { * Required. Full resource name of * [DataStore][google.cloud.discoveryengine.v1.DataStore], such as * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. + * The path must include the project number, project id is not supported for + * this field. * * * @@ -2879,46 +2957,44 @@ public interface FacetSpecOrBuilder *
                * List of keys to exclude when faceting.
                *
          -     *
          -     * By default,
          -     * [FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key]
          -     * is not excluded from the filter unless it is listed in this field.
          -     *
          -     * Listing a facet key in this field allows its values to appear as facet
          -     * results, even when they are filtered out of search results. Using this
          -     * field does not affect what search results are returned.
          -     *
          -     * For example, suppose there are 100 documents with the color facet "Red"
          -     * and 200 documents with the color facet "Blue". A query containing the
          -     * filter "color:ANY("Red")" and having "color" as
          -     * [FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key]
          -     * would by default return only "Red" documents in the search results, and
          -     * also return "Red" with count 100 as the only color facet. Although there
          -     * are also blue documents available, "Blue" would not be shown as an
          -     * available facet value.
          -     *
          -     * If "color" is listed in "excludedFilterKeys", then the query returns the
          -     * facet values "Red" with count 100 and "Blue" with count 200, because the
          -     * "color" key is now excluded from the filter. Because this field doesn't
          -     * affect search results, the search results are still correctly filtered to
          -     * return only "Red" documents.
          -     *
          -     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
          -     * error is returned.
          -     * 
          - * - * repeated string excluded_filter_keys = 3; - * - * @return A list containing the excludedFilterKeys. - */ - java.util.List getExcludedFilterKeysList(); - - /** - * - * - *
          -     * List of keys to exclude when faceting.
          -     *
          +     * By default,
          +     * [FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key]
          +     * is not excluded from the filter unless it is listed in this field.
          +     *
          +     * Listing a facet key in this field allows its values to appear as facet
          +     * results, even when they are filtered out of search results. Using this
          +     * field does not affect what search results are returned.
          +     *
          +     * For example, suppose there are 100 documents with the color facet "Red"
          +     * and 200 documents with the color facet "Blue". A query containing the
          +     * filter "color:ANY("Red")" and having "color" as
          +     * [FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key]
          +     * would by default return only "Red" documents in the search results, and
          +     * also return "Red" with count 100 as the only color facet. Although there
          +     * are also blue documents available, "Blue" would not be shown as an
          +     * available facet value.
          +     *
          +     * If "color" is listed in "excludedFilterKeys", then the query returns the
          +     * facet values "Red" with count 100 and "Blue" with count 200, because the
          +     * "color" key is now excluded from the filter. Because this field doesn't
          +     * affect search results, the search results are still correctly filtered to
          +     * return only "Red" documents.
          +     *
          +     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
          +     * error is returned.
          +     * 
          + * + * repeated string excluded_filter_keys = 3; + * + * @return A list containing the excludedFilterKeys. + */ + java.util.List getExcludedFilterKeysList(); + + /** + * + * + *
          +     * List of keys to exclude when faceting.
                *
                * By default,
                * [FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key]
          @@ -2959,7 +3035,6 @@ public interface FacetSpecOrBuilder
                * 
                * List of keys to exclude when faceting.
                *
          -     *
                * By default,
                * [FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key]
                * is not excluded from the filter unless it is listed in this field.
          @@ -3000,7 +3075,6 @@ public interface FacetSpecOrBuilder
                * 
                * List of keys to exclude when faceting.
                *
          -     *
                * By default,
                * [FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key]
                * is not excluded from the filter unless it is listed in this field.
          @@ -6233,7 +6307,6 @@ public int getLimit() {
                * 
                * List of keys to exclude when faceting.
                *
          -     *
                * By default,
                * [FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key]
                * is not excluded from the filter unless it is listed in this field.
          @@ -6275,7 +6348,6 @@ public com.google.protobuf.ProtocolStringList getExcludedFilterKeysList() {
                * 
                * List of keys to exclude when faceting.
                *
          -     *
                * By default,
                * [FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key]
                * is not excluded from the filter unless it is listed in this field.
          @@ -6317,7 +6389,6 @@ public int getExcludedFilterKeysCount() {
                * 
                * List of keys to exclude when faceting.
                *
          -     *
                * By default,
                * [FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key]
                * is not excluded from the filter unless it is listed in this field.
          @@ -6360,7 +6431,6 @@ public java.lang.String getExcludedFilterKeys(int index) {
                * 
                * List of keys to exclude when faceting.
                *
          -     *
                * By default,
                * [FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key]
                * is not excluded from the filter unless it is listed in this field.
          @@ -7174,7 +7244,6 @@ private void ensureExcludedFilterKeysIsMutable() {
                  * 
                  * List of keys to exclude when faceting.
                  *
          -       *
                  * By default,
                  * [FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key]
                  * is not excluded from the filter unless it is listed in this field.
          @@ -7217,7 +7286,6 @@ public com.google.protobuf.ProtocolStringList getExcludedFilterKeysList() {
                  * 
                  * List of keys to exclude when faceting.
                  *
          -       *
                  * By default,
                  * [FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key]
                  * is not excluded from the filter unless it is listed in this field.
          @@ -7259,7 +7327,6 @@ public int getExcludedFilterKeysCount() {
                  * 
                  * List of keys to exclude when faceting.
                  *
          -       *
                  * By default,
                  * [FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key]
                  * is not excluded from the filter unless it is listed in this field.
          @@ -7302,7 +7369,6 @@ public java.lang.String getExcludedFilterKeys(int index) {
                  * 
                  * List of keys to exclude when faceting.
                  *
          -       *
                  * By default,
                  * [FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key]
                  * is not excluded from the filter unless it is listed in this field.
          @@ -7345,7 +7411,6 @@ public com.google.protobuf.ByteString getExcludedFilterKeysBytes(int index) {
                  * 
                  * List of keys to exclude when faceting.
                  *
          -       *
                  * By default,
                  * [FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key]
                  * is not excluded from the filter unless it is listed in this field.
          @@ -7396,7 +7461,6 @@ public Builder setExcludedFilterKeys(int index, java.lang.String value) {
                  * 
                  * List of keys to exclude when faceting.
                  *
          -       *
                  * By default,
                  * [FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key]
                  * is not excluded from the filter unless it is listed in this field.
          @@ -7446,7 +7510,6 @@ public Builder addExcludedFilterKeys(java.lang.String value) {
                  * 
                  * List of keys to exclude when faceting.
                  *
          -       *
                  * By default,
                  * [FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key]
                  * is not excluded from the filter unless it is listed in this field.
          @@ -7493,7 +7556,6 @@ public Builder addAllExcludedFilterKeys(java.lang.Iterable val
                  * 
                  * List of keys to exclude when faceting.
                  *
          -       *
                  * By default,
                  * [FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key]
                  * is not excluded from the filter unless it is listed in this field.
          @@ -7539,7 +7601,6 @@ public Builder clearExcludedFilterKeys() {
                  * 
                  * List of keys to exclude when faceting.
                  *
          -       *
                  * By default,
                  * [FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key]
                  * is not excluded from the filter unless it is listed in this field.
          @@ -15694,7 +15755,7 @@ public interface SnippetSpecOrBuilder
                  *
                  * @deprecated
                  *     google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count
          -       *     is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=450
          +       *     is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=451
                  * @return The maxSnippetCount.
                  */
                 @java.lang.Deprecated
          @@ -15712,7 +15773,7 @@ public interface SnippetSpecOrBuilder
                  *
                  * @deprecated
                  *     google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only
          -       *     is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=454
          +       *     is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=455
                  * @return The referenceOnly.
                  */
                 @java.lang.Deprecated
          @@ -15800,7 +15861,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                  *
                  * @deprecated
                  *     google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count
          -       *     is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=450
          +       *     is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=451
                  * @return The maxSnippetCount.
                  */
                 @java.lang.Override
          @@ -15824,7 +15885,7 @@ public int getMaxSnippetCount() {
                  *
                  * @deprecated
                  *     google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only
          -       *     is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=454
          +       *     is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=455
                  * @return The referenceOnly.
                  */
                 @java.lang.Override
          @@ -16253,7 +16314,7 @@ public Builder mergeFrom(
                    *
                    * @deprecated
                    *     google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count
          -         *     is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=450
          +         *     is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=451
                    * @return The maxSnippetCount.
                    */
                   @java.lang.Override
          @@ -16275,7 +16336,7 @@ public int getMaxSnippetCount() {
                    *
                    * @deprecated
                    *     google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count
          -         *     is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=450
          +         *     is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=451
                    * @param value The maxSnippetCount to set.
                    * @return This builder for chaining.
                    */
          @@ -16301,7 +16362,7 @@ public Builder setMaxSnippetCount(int value) {
                    *
                    * @deprecated
                    *     google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count
          -         *     is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=450
          +         *     is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=451
                    * @return This builder for chaining.
                    */
                   @java.lang.Deprecated
          @@ -16326,7 +16387,7 @@ public Builder clearMaxSnippetCount() {
                    *
                    * @deprecated
                    *     google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only
          -         *     is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=454
          +         *     is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=455
                    * @return The referenceOnly.
                    */
                   @java.lang.Override
          @@ -16347,7 +16408,7 @@ public boolean getReferenceOnly() {
                    *
                    * @deprecated
                    *     google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only
          -         *     is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=454
          +         *     is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=455
                    * @param value The referenceOnly to set.
                    * @return This builder for chaining.
                    */
          @@ -16372,7 +16433,7 @@ public Builder setReferenceOnly(boolean value) {
                    *
                    * @deprecated
                    *     google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only
          -         *     is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=454
          +         *     is deprecated. See google/cloud/discoveryengine/v1/search_service.proto;l=455
                    * @return This builder for chaining.
                    */
                   @java.lang.Deprecated
          @@ -24397,59 +24458,272 @@ public com.google.protobuf.Parser getParserForType() {
               }
             }
           
          -  public interface SearchAsYouTypeSpecOrBuilder
          +  public interface NaturalLanguageQueryUnderstandingSpecOrBuilder
                 extends
          -      // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec)
          +      // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec)
                 com.google.protobuf.MessageOrBuilder {
           
               /**
                *
                *
                * 
          -     * The condition under which search as you type should occur.
          -     * Default to
          -     * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
          +     * The condition under which filter extraction should occur.
          +     * Server behavior defaults to `DISABLED`.
                * 
          * * - * .google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * .google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; * * - * @return The enum numeric value on the wire for condition. + * @return The enum numeric value on the wire for filterExtractionCondition. */ - int getConditionValue(); + int getFilterExtractionConditionValue(); /** * * *
          -     * The condition under which search as you type should occur.
          -     * Default to
          -     * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
          +     * The condition under which filter extraction should occur.
          +     * Server behavior defaults to `DISABLED`.
                * 
          * * - * .google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * .google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; * * - * @return The condition. + * @return The filterExtractionCondition. */ - com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition getCondition(); + com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .FilterExtractionCondition + getFilterExtractionCondition(); + + /** + * + * + *
          +     * Field names used for location-based filtering, where geolocation filters
          +     * are detected in natural language search queries.
          +     * Only valid when the FilterExtractionCondition is set to `ENABLED`.
          +     *
          +     * If this field is set, it overrides the field names set in
          +     * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1.ServingConfig.geo_search_query_detection_field_names].
          +     * 
          + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @return A list containing the geoSearchQueryDetectionFieldNames. + */ + java.util.List getGeoSearchQueryDetectionFieldNamesList(); + + /** + * + * + *
          +     * Field names used for location-based filtering, where geolocation filters
          +     * are detected in natural language search queries.
          +     * Only valid when the FilterExtractionCondition is set to `ENABLED`.
          +     *
          +     * If this field is set, it overrides the field names set in
          +     * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1.ServingConfig.geo_search_query_detection_field_names].
          +     * 
          + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @return The count of geoSearchQueryDetectionFieldNames. + */ + int getGeoSearchQueryDetectionFieldNamesCount(); + + /** + * + * + *
          +     * Field names used for location-based filtering, where geolocation filters
          +     * are detected in natural language search queries.
          +     * Only valid when the FilterExtractionCondition is set to `ENABLED`.
          +     *
          +     * If this field is set, it overrides the field names set in
          +     * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1.ServingConfig.geo_search_query_detection_field_names].
          +     * 
          + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @param index The index of the element to return. + * @return The geoSearchQueryDetectionFieldNames at the given index. + */ + java.lang.String getGeoSearchQueryDetectionFieldNames(int index); + + /** + * + * + *
          +     * Field names used for location-based filtering, where geolocation filters
          +     * are detected in natural language search queries.
          +     * Only valid when the FilterExtractionCondition is set to `ENABLED`.
          +     *
          +     * If this field is set, it overrides the field names set in
          +     * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1.ServingConfig.geo_search_query_detection_field_names].
          +     * 
          + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @param index The index of the value to return. + * @return The bytes of the geoSearchQueryDetectionFieldNames at the given index. + */ + com.google.protobuf.ByteString getGeoSearchQueryDetectionFieldNamesBytes(int index); + + /** + * + * + *
          +     * Optional. Controls behavior of how extracted filters are applied to the
          +     * search. The default behavior depends on the request. For single datastore
          +     * structured search, the default is `HARD_FILTER`. For multi-datastore
          +     * search, the default behavior is `SOFT_BOOST`.
          +     * Location-based filters are always applied as hard filters, and the
          +     * `SOFT_BOOST` setting will not affect them.
          +     * This field is only used if
          +     * [SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition][google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition]
          +     * is set to
          +     * [FilterExtractionCondition.ENABLED][google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.ENABLED].
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehavior extracted_filter_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for extractedFilterBehavior. + */ + int getExtractedFilterBehaviorValue(); + + /** + * + * + *
          +     * Optional. Controls behavior of how extracted filters are applied to the
          +     * search. The default behavior depends on the request. For single datastore
          +     * structured search, the default is `HARD_FILTER`. For multi-datastore
          +     * search, the default behavior is `SOFT_BOOST`.
          +     * Location-based filters are always applied as hard filters, and the
          +     * `SOFT_BOOST` setting will not affect them.
          +     * This field is only used if
          +     * [SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition][google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition]
          +     * is set to
          +     * [FilterExtractionCondition.ENABLED][google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.ENABLED].
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehavior extracted_filter_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The extractedFilterBehavior. + */ + com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .ExtractedFilterBehavior + getExtractedFilterBehavior(); + + /** + * + * + *
          +     * Optional. Allowlist of fields that can be used for natural language
          +     * filter extraction. By default, if this is unspecified, all indexable
          +     * fields are eligible for natural language filter extraction (but are not
          +     * guaranteed to be used). If any fields are specified in
          +     * allowed_field_names, only the fields that are both marked as indexable in
          +     * the schema and specified in the allowlist will be eligible for natural
          +     * language filter extraction. Note: for multi-datastore search, this is not
          +     * yet supported, and will be ignored.
          +     * 
          + * + * repeated string allowed_field_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the allowedFieldNames. + */ + java.util.List getAllowedFieldNamesList(); + + /** + * + * + *
          +     * Optional. Allowlist of fields that can be used for natural language
          +     * filter extraction. By default, if this is unspecified, all indexable
          +     * fields are eligible for natural language filter extraction (but are not
          +     * guaranteed to be used). If any fields are specified in
          +     * allowed_field_names, only the fields that are both marked as indexable in
          +     * the schema and specified in the allowlist will be eligible for natural
          +     * language filter extraction. Note: for multi-datastore search, this is not
          +     * yet supported, and will be ignored.
          +     * 
          + * + * repeated string allowed_field_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of allowedFieldNames. + */ + int getAllowedFieldNamesCount(); + + /** + * + * + *
          +     * Optional. Allowlist of fields that can be used for natural language
          +     * filter extraction. By default, if this is unspecified, all indexable
          +     * fields are eligible for natural language filter extraction (but are not
          +     * guaranteed to be used). If any fields are specified in
          +     * allowed_field_names, only the fields that are both marked as indexable in
          +     * the schema and specified in the allowlist will be eligible for natural
          +     * language filter extraction. Note: for multi-datastore search, this is not
          +     * yet supported, and will be ignored.
          +     * 
          + * + * repeated string allowed_field_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The allowedFieldNames at the given index. + */ + java.lang.String getAllowedFieldNames(int index); + + /** + * + * + *
          +     * Optional. Allowlist of fields that can be used for natural language
          +     * filter extraction. By default, if this is unspecified, all indexable
          +     * fields are eligible for natural language filter extraction (but are not
          +     * guaranteed to be used). If any fields are specified in
          +     * allowed_field_names, only the fields that are both marked as indexable in
          +     * the schema and specified in the allowlist will be eligible for natural
          +     * language filter extraction. Note: for multi-datastore search, this is not
          +     * yet supported, and will be ignored.
          +     * 
          + * + * repeated string allowed_field_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the allowedFieldNames at the given index. + */ + com.google.protobuf.ByteString getAllowedFieldNamesBytes(int index); } /** * * *
          -   * Specification for search as you type in search requests.
          +   * Specification to enable natural language understanding capabilities for
          +   * search requests.
              * 
          * - * Protobuf type {@code google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec} + * Protobuf type {@code + * google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec} */ - public static final class SearchAsYouTypeSpec extends com.google.protobuf.GeneratedMessage + public static final class NaturalLanguageQueryUnderstandingSpec + extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec) - SearchAsYouTypeSpecOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec) + NaturalLanguageQueryUnderstandingSpecOrBuilder { private static final long serialVersionUID = 0L; static { @@ -24459,50 +24733,55 @@ public static final class SearchAsYouTypeSpec extends com.google.protobuf.Genera /* minor= */ 33, /* patch= */ 2, /* suffix= */ "", - "SearchAsYouTypeSpec"); + "NaturalLanguageQueryUnderstandingSpec"); } - // Use SearchAsYouTypeSpec.newBuilder() to construct. - private SearchAsYouTypeSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use NaturalLanguageQueryUnderstandingSpec.newBuilder() to construct. + private NaturalLanguageQueryUnderstandingSpec( + com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private SearchAsYouTypeSpec() { - condition_ = 0; + private NaturalLanguageQueryUnderstandingSpec() { + filterExtractionCondition_ = 0; + geoSearchQueryDetectionFieldNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + extractedFilterBehavior_ = 0; + allowedFieldNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_SearchAsYouTypeSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1_SearchRequest_NaturalLanguageQueryUnderstandingSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_SearchAsYouTypeSpec_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1_SearchRequest_NaturalLanguageQueryUnderstandingSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.class, - com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Builder.class); + com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.class, + com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.Builder.class); } /** * * *
          -     * Enum describing under which condition search as you type should occur.
          +     * Enum describing under which condition filter extraction should occur.
                * 
          * * Protobuf enum {@code - * google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition} + * google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition} */ - public enum Condition implements com.google.protobuf.ProtocolMessageEnum { + public enum FilterExtractionCondition implements com.google.protobuf.ProtocolMessageEnum { /** * * *
          -       * Server behavior defaults to
          -       * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
          +       * Server behavior defaults to `DISABLED`.
                  * 
          * * CONDITION_UNSPECIFIED = 0; @@ -24512,7 +24791,7 @@ public enum Condition implements com.google.protobuf.ProtocolMessageEnum { * * *
          -       * Disables Search As You Type.
          +       * Disables NL filter extraction.
                  * 
          * * DISABLED = 1; @@ -24522,23 +24801,12 @@ public enum Condition implements com.google.protobuf.ProtocolMessageEnum { * * *
          -       * Enables Search As You Type.
          +       * Enables NL filter extraction.
                  * 
          * * ENABLED = 2; */ ENABLED(2), - /** - * - * - *
          -       * Automatic switching between search-as-you-type and standard search
          -       * modes, ideal for single-API implementations (e.g., debouncing).
          -       * 
          - * - * AUTO = 3; - */ - AUTO(3), UNRECOGNIZED(-1), ; @@ -24549,15 +24817,14 @@ public enum Condition implements com.google.protobuf.ProtocolMessageEnum { /* minor= */ 33, /* patch= */ 2, /* suffix= */ "", - "Condition"); + "FilterExtractionCondition"); } /** * * *
          -       * Server behavior defaults to
          -       * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
          +       * Server behavior defaults to `DISABLED`.
                  * 
          * * CONDITION_UNSPECIFIED = 0; @@ -24568,7 +24835,7 @@ public enum Condition implements com.google.protobuf.ProtocolMessageEnum { * * *
          -       * Disables Search As You Type.
          +       * Disables NL filter extraction.
                  * 
          * * DISABLED = 1; @@ -24579,24 +24846,200 @@ public enum Condition implements com.google.protobuf.ProtocolMessageEnum { * * *
          -       * Enables Search As You Type.
          +       * Enables NL filter extraction.
                  * 
          * * ENABLED = 2; */ public static final int ENABLED_VALUE = 2; + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FilterExtractionCondition valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static FilterExtractionCondition forNumber(int value) { + switch (value) { + case 0: + return CONDITION_UNSPECIFIED; + case 1: + return DISABLED; + case 2: + return ENABLED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FilterExtractionCondition findValueByNumber(int number) { + return FilterExtractionCondition.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final FilterExtractionCondition[] VALUES = values(); + + public static FilterExtractionCondition valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private FilterExtractionCondition(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition) + } + + /** + * + * + *
          +     * Enum describing how extracted filters are applied to the search.
          +     * 
          + * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehavior} + */ + public enum ExtractedFilterBehavior implements com.google.protobuf.ProtocolMessageEnum { /** * * *
          -       * Automatic switching between search-as-you-type and standard search
          -       * modes, ideal for single-API implementations (e.g., debouncing).
          +       * `EXTRACTED_FILTER_BEHAVIOR_UNSPECIFIED` will use the default behavior
          +       * for extracted filters. For single datastore search, the default is to
          +       * apply as hard filters. For multi-datastore search, the default is to
          +       * apply as soft boosts.
                  * 
          * - * AUTO = 3; + * EXTRACTED_FILTER_BEHAVIOR_UNSPECIFIED = 0; */ - public static final int AUTO_VALUE = 3; + EXTRACTED_FILTER_BEHAVIOR_UNSPECIFIED(0), + /** + * + * + *
          +       * Applies all extracted filters as hard filters on the results. Results
          +       * that do not pass the extracted filters will not be returned in the
          +       * result set.
          +       * 
          + * + * HARD_FILTER = 1; + */ + HARD_FILTER(1), + /** + * + * + *
          +       * Applies all extracted filters as soft boosts. Results that pass the
          +       * filters will be boosted up to higher ranks in the result set.
          +       * 
          + * + * SOFT_BOOST = 2; + */ + SOFT_BOOST(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExtractedFilterBehavior"); + } + + /** + * + * + *
          +       * `EXTRACTED_FILTER_BEHAVIOR_UNSPECIFIED` will use the default behavior
          +       * for extracted filters. For single datastore search, the default is to
          +       * apply as hard filters. For multi-datastore search, the default is to
          +       * apply as soft boosts.
          +       * 
          + * + * EXTRACTED_FILTER_BEHAVIOR_UNSPECIFIED = 0; + */ + public static final int EXTRACTED_FILTER_BEHAVIOR_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
          +       * Applies all extracted filters as hard filters on the results. Results
          +       * that do not pass the extracted filters will not be returned in the
          +       * result set.
          +       * 
          + * + * HARD_FILTER = 1; + */ + public static final int HARD_FILTER_VALUE = 1; + + /** + * + * + *
          +       * Applies all extracted filters as soft boosts. Results that pass the
          +       * filters will be boosted up to higher ranks in the result set.
          +       * 
          + * + * SOFT_BOOST = 2; + */ + public static final int SOFT_BOOST_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -24612,7 +25055,7 @@ public final int getNumber() { * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated - public static Condition valueOf(int value) { + public static ExtractedFilterBehavior valueOf(int value) { return forNumber(value); } @@ -24620,31 +25063,31 @@ public static Condition valueOf(int value) { * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ - public static Condition forNumber(int value) { + public static ExtractedFilterBehavior forNumber(int value) { switch (value) { case 0: - return CONDITION_UNSPECIFIED; + return EXTRACTED_FILTER_BEHAVIOR_UNSPECIFIED; case 1: - return DISABLED; + return HARD_FILTER; case 2: - return ENABLED; - case 3: - return AUTO; + return SOFT_BOOST; 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 internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Condition findValueByNumber(int number) { - return Condition.forNumber(number); - } - }; + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExtractedFilterBehavior findValueByNumber(int number) { + return ExtractedFilterBehavior.forNumber(number); + } + }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { @@ -24659,14 +25102,16 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.getDescriptor() + return com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.getDescriptor() .getEnumTypes() - .get(0); + .get(1); } - private static final Condition[] VALUES = values(); + private static final ExtractedFilterBehavior[] VALUES = values(); - public static Condition valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ExtractedFilterBehavior valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } @@ -24678,186 +25123,514 @@ public static Condition valueOf(com.google.protobuf.Descriptors.EnumValueDescrip private final int value; - private Condition(int value) { + private ExtractedFilterBehavior(int value) { this.value = value; } - // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition) + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehavior) } - public static final int CONDITION_FIELD_NUMBER = 1; - private int condition_ = 0; + public static final int FILTER_EXTRACTION_CONDITION_FIELD_NUMBER = 1; + private int filterExtractionCondition_ = 0; /** * * *
          -     * The condition under which search as you type should occur.
          -     * Default to
          -     * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
          +     * The condition under which filter extraction should occur.
          +     * Server behavior defaults to `DISABLED`.
                * 
          * * - * .google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * .google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; * * - * @return The enum numeric value on the wire for condition. + * @return The enum numeric value on the wire for filterExtractionCondition. */ @java.lang.Override - public int getConditionValue() { - return condition_; + public int getFilterExtractionConditionValue() { + return filterExtractionCondition_; } /** * * *
          -     * The condition under which search as you type should occur.
          -     * Default to
          -     * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
          +     * The condition under which filter extraction should occur.
          +     * Server behavior defaults to `DISABLED`.
                * 
          * * - * .google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * .google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; * * - * @return The condition. + * @return The filterExtractionCondition. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition - getCondition() { - com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition result = - com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition.forNumber( - condition_); + public com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .FilterExtractionCondition + getFilterExtractionCondition() { + com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .FilterExtractionCondition + result = + com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.forNumber( + filterExtractionCondition_); return result == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition - .UNRECOGNIZED + ? com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .FilterExtractionCondition.UNRECOGNIZED : result; } - private byte memoizedIsInitialized = -1; + public static final int GEO_SEARCH_QUERY_DETECTION_FIELD_NAMES_FIELD_NUMBER = 2; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList geoSearchQueryDetectionFieldNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - memoizedIsInitialized = 1; - return true; + /** + * + * + *
          +     * Field names used for location-based filtering, where geolocation filters
          +     * are detected in natural language search queries.
          +     * Only valid when the FilterExtractionCondition is set to `ENABLED`.
          +     *
          +     * If this field is set, it overrides the field names set in
          +     * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1.ServingConfig.geo_search_query_detection_field_names].
          +     * 
          + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @return A list containing the geoSearchQueryDetectionFieldNames. + */ + public com.google.protobuf.ProtocolStringList getGeoSearchQueryDetectionFieldNamesList() { + return geoSearchQueryDetectionFieldNames_; } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (condition_ - != com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition - .CONDITION_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, condition_); - } - getUnknownFields().writeTo(output); + /** + * + * + *
          +     * Field names used for location-based filtering, where geolocation filters
          +     * are detected in natural language search queries.
          +     * Only valid when the FilterExtractionCondition is set to `ENABLED`.
          +     *
          +     * If this field is set, it overrides the field names set in
          +     * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1.ServingConfig.geo_search_query_detection_field_names].
          +     * 
          + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @return The count of geoSearchQueryDetectionFieldNames. + */ + public int getGeoSearchQueryDetectionFieldNamesCount() { + return geoSearchQueryDetectionFieldNames_.size(); } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (condition_ - != com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition - .CONDITION_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, condition_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + /** + * + * + *
          +     * Field names used for location-based filtering, where geolocation filters
          +     * are detected in natural language search queries.
          +     * Only valid when the FilterExtractionCondition is set to `ENABLED`.
          +     *
          +     * If this field is set, it overrides the field names set in
          +     * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1.ServingConfig.geo_search_query_detection_field_names].
          +     * 
          + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @param index The index of the element to return. + * @return The geoSearchQueryDetectionFieldNames at the given index. + */ + public java.lang.String getGeoSearchQueryDetectionFieldNames(int index) { + return geoSearchQueryDetectionFieldNames_.get(index); } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec other = - (com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec) obj; - - if (condition_ != other.condition_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; + /** + * + * + *
          +     * Field names used for location-based filtering, where geolocation filters
          +     * are detected in natural language search queries.
          +     * Only valid when the FilterExtractionCondition is set to `ENABLED`.
          +     *
          +     * If this field is set, it overrides the field names set in
          +     * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1.ServingConfig.geo_search_query_detection_field_names].
          +     * 
          + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @param index The index of the value to return. + * @return The bytes of the geoSearchQueryDetectionFieldNames at the given index. + */ + public com.google.protobuf.ByteString getGeoSearchQueryDetectionFieldNamesBytes(int index) { + return geoSearchQueryDetectionFieldNames_.getByteString(index); } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CONDITION_FIELD_NUMBER; - hash = (53 * hash) + condition_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final int EXTRACTED_FILTER_BEHAVIOR_FIELD_NUMBER = 3; + private int extractedFilterBehavior_ = 0; - public static com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + /** + * + * + *
          +     * Optional. Controls behavior of how extracted filters are applied to the
          +     * search. The default behavior depends on the request. For single datastore
          +     * structured search, the default is `HARD_FILTER`. For multi-datastore
          +     * search, the default behavior is `SOFT_BOOST`.
          +     * Location-based filters are always applied as hard filters, and the
          +     * `SOFT_BOOST` setting will not affect them.
          +     * This field is only used if
          +     * [SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition][google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition]
          +     * is set to
          +     * [FilterExtractionCondition.ENABLED][google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.ENABLED].
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehavior extracted_filter_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for extractedFilterBehavior. + */ + @java.lang.Override + public int getExtractedFilterBehaviorValue() { + return extractedFilterBehavior_; } - public static com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + /** + * + * + *
          +     * Optional. Controls behavior of how extracted filters are applied to the
          +     * search. The default behavior depends on the request. For single datastore
          +     * structured search, the default is `HARD_FILTER`. For multi-datastore
          +     * search, the default behavior is `SOFT_BOOST`.
          +     * Location-based filters are always applied as hard filters, and the
          +     * `SOFT_BOOST` setting will not affect them.
          +     * This field is only used if
          +     * [SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition][google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition]
          +     * is set to
          +     * [FilterExtractionCondition.ENABLED][google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.ENABLED].
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehavior extracted_filter_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The extractedFilterBehavior. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .ExtractedFilterBehavior + getExtractedFilterBehavior() { + com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .ExtractedFilterBehavior + result = + com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehavior.forNumber( + extractedFilterBehavior_); + return result == null + ? com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .ExtractedFilterBehavior.UNRECOGNIZED + : result; + } + + public static final int ALLOWED_FIELD_NAMES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList allowedFieldNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
          +     * Optional. Allowlist of fields that can be used for natural language
          +     * filter extraction. By default, if this is unspecified, all indexable
          +     * fields are eligible for natural language filter extraction (but are not
          +     * guaranteed to be used). If any fields are specified in
          +     * allowed_field_names, only the fields that are both marked as indexable in
          +     * the schema and specified in the allowlist will be eligible for natural
          +     * language filter extraction. Note: for multi-datastore search, this is not
          +     * yet supported, and will be ignored.
          +     * 
          + * + * repeated string allowed_field_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the allowedFieldNames. + */ + public com.google.protobuf.ProtocolStringList getAllowedFieldNamesList() { + return allowedFieldNames_; + } + + /** + * + * + *
          +     * Optional. Allowlist of fields that can be used for natural language
          +     * filter extraction. By default, if this is unspecified, all indexable
          +     * fields are eligible for natural language filter extraction (but are not
          +     * guaranteed to be used). If any fields are specified in
          +     * allowed_field_names, only the fields that are both marked as indexable in
          +     * the schema and specified in the allowlist will be eligible for natural
          +     * language filter extraction. Note: for multi-datastore search, this is not
          +     * yet supported, and will be ignored.
          +     * 
          + * + * repeated string allowed_field_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of allowedFieldNames. + */ + public int getAllowedFieldNamesCount() { + return allowedFieldNames_.size(); + } + + /** + * + * + *
          +     * Optional. Allowlist of fields that can be used for natural language
          +     * filter extraction. By default, if this is unspecified, all indexable
          +     * fields are eligible for natural language filter extraction (but are not
          +     * guaranteed to be used). If any fields are specified in
          +     * allowed_field_names, only the fields that are both marked as indexable in
          +     * the schema and specified in the allowlist will be eligible for natural
          +     * language filter extraction. Note: for multi-datastore search, this is not
          +     * yet supported, and will be ignored.
          +     * 
          + * + * repeated string allowed_field_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The allowedFieldNames at the given index. + */ + public java.lang.String getAllowedFieldNames(int index) { + return allowedFieldNames_.get(index); + } + + /** + * + * + *
          +     * Optional. Allowlist of fields that can be used for natural language
          +     * filter extraction. By default, if this is unspecified, all indexable
          +     * fields are eligible for natural language filter extraction (but are not
          +     * guaranteed to be used). If any fields are specified in
          +     * allowed_field_names, only the fields that are both marked as indexable in
          +     * the schema and specified in the allowlist will be eligible for natural
          +     * language filter extraction. Note: for multi-datastore search, this is not
          +     * yet supported, and will be ignored.
          +     * 
          + * + * repeated string allowed_field_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the allowedFieldNames at the given index. + */ + public com.google.protobuf.ByteString getAllowedFieldNamesBytes(int index) { + return allowedFieldNames_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (filterExtractionCondition_ + != com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .FilterExtractionCondition.CONDITION_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, filterExtractionCondition_); + } + for (int i = 0; i < geoSearchQueryDetectionFieldNames_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 2, geoSearchQueryDetectionFieldNames_.getRaw(i)); + } + if (extractedFilterBehavior_ + != com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .ExtractedFilterBehavior.EXTRACTED_FILTER_BEHAVIOR_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, extractedFilterBehavior_); + } + for (int i = 0; i < allowedFieldNames_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, allowedFieldNames_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (filterExtractionCondition_ + != com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .FilterExtractionCondition.CONDITION_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(1, filterExtractionCondition_); + } + { + int dataSize = 0; + for (int i = 0; i < geoSearchQueryDetectionFieldNames_.size(); i++) { + dataSize += computeStringSizeNoTag(geoSearchQueryDetectionFieldNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getGeoSearchQueryDetectionFieldNamesList().size(); + } + if (extractedFilterBehavior_ + != com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .ExtractedFilterBehavior.EXTRACTED_FILTER_BEHAVIOR_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, extractedFilterBehavior_); + } + { + int dataSize = 0; + for (int i = 0; i < allowedFieldNames_.size(); i++) { + dataSize += computeStringSizeNoTag(allowedFieldNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getAllowedFieldNamesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + other = + (com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec) + obj; + + if (filterExtractionCondition_ != other.filterExtractionCondition_) return false; + if (!getGeoSearchQueryDetectionFieldNamesList() + .equals(other.getGeoSearchQueryDetectionFieldNamesList())) return false; + if (extractedFilterBehavior_ != other.extractedFilterBehavior_) return false; + if (!getAllowedFieldNamesList().equals(other.getAllowedFieldNamesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FILTER_EXTRACTION_CONDITION_FIELD_NUMBER; + hash = (53 * hash) + filterExtractionCondition_; + if (getGeoSearchQueryDetectionFieldNamesCount() > 0) { + hash = (37 * hash) + GEO_SEARCH_QUERY_DETECTION_FIELD_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getGeoSearchQueryDetectionFieldNamesList().hashCode(); + } + hash = (37 * hash) + EXTRACTED_FILTER_BEHAVIOR_FIELD_NUMBER; + hash = (53 * hash) + extractedFilterBehavior_; + if (getAllowedFieldNamesCount() > 0) { + hash = (37 * hash) + ALLOWED_FIELD_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getAllowedFieldNamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec + public static com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec + public static com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -24865,15 +25638,18 @@ public static com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeS PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -24888,7 +25664,8 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec prototype) { + com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -24907,33 +25684,37 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
          -     * Specification for search as you type in search requests.
          +     * Specification to enable natural language understanding capabilities for
          +     * search requests.
                * 
          * - * Protobuf type {@code google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec} + * Protobuf type {@code + * google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec) - com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpecOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec) + com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_SearchAsYouTypeSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1_SearchRequest_NaturalLanguageQueryUnderstandingSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_SearchAsYouTypeSpec_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1_SearchRequest_NaturalLanguageQueryUnderstandingSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.class, - com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Builder - .class); + com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.class, + com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.Builder.class); } // Construct using - // com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.newBuilder() + // com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -24944,27 +25725,31 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - condition_ = 0; + filterExtractionCondition_ = 0; + geoSearchQueryDetectionFieldNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + extractedFilterBehavior_ = 0; + allowedFieldNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_SearchAsYouTypeSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1_SearchRequest_NaturalLanguageQueryUnderstandingSpec_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec + public com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec - .getDefaultInstance(); + return com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec build() { - com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec result = - buildPartial(); + public com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + build() { + com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -24972,9 +25757,12 @@ public com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec bui } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec buildPartial() { - com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec result = - new com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec(this); + public com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + buildPartial() { + com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + result = + new com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -24983,19 +25771,35 @@ public com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec bui } private void buildPartial0( - com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec result) { + com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.condition_ = condition_; + result.filterExtractionCondition_ = filterExtractionCondition_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + geoSearchQueryDetectionFieldNames_.makeImmutable(); + result.geoSearchQueryDetectionFieldNames_ = geoSearchQueryDetectionFieldNames_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.extractedFilterBehavior_ = extractedFilterBehavior_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + allowedFieldNames_.makeImmutable(); + result.allowedFieldNames_ = allowedFieldNames_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other - instanceof com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec) { + instanceof + com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec) { return mergeFrom( - (com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec) other); + (com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec) + other); } else { super.mergeFrom(other); return this; @@ -25003,12 +25807,36 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec other) { + com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + other) { if (other - == com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec - .getDefaultInstance()) return this; - if (other.condition_ != 0) { - setConditionValue(other.getConditionValue()); + == com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance()) return this; + if (other.filterExtractionCondition_ != 0) { + setFilterExtractionConditionValue(other.getFilterExtractionConditionValue()); + } + if (!other.geoSearchQueryDetectionFieldNames_.isEmpty()) { + if (geoSearchQueryDetectionFieldNames_.isEmpty()) { + geoSearchQueryDetectionFieldNames_ = other.geoSearchQueryDetectionFieldNames_; + bitField0_ |= 0x00000002; + } else { + ensureGeoSearchQueryDetectionFieldNamesIsMutable(); + geoSearchQueryDetectionFieldNames_.addAll(other.geoSearchQueryDetectionFieldNames_); + } + onChanged(); + } + if (other.extractedFilterBehavior_ != 0) { + setExtractedFilterBehaviorValue(other.getExtractedFilterBehaviorValue()); + } + if (!other.allowedFieldNames_.isEmpty()) { + if (allowedFieldNames_.isEmpty()) { + allowedFieldNames_ = other.allowedFieldNames_; + bitField0_ |= 0x00000008; + } else { + ensureAllowedFieldNamesIsMutable(); + allowedFieldNames_.addAll(other.allowedFieldNames_); + } + onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -25038,10 +25866,30 @@ public Builder mergeFrom( break; case 8: { - condition_ = input.readEnum(); + filterExtractionCondition_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureGeoSearchQueryDetectionFieldNamesIsMutable(); + geoSearchQueryDetectionFieldNames_.add(s); + break; + } // case 18 + case 24: + { + extractedFilterBehavior_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedFieldNamesIsMutable(); + allowedFieldNames_.add(s); + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -25061,46 +25909,44 @@ public Builder mergeFrom( private int bitField0_; - private int condition_ = 0; + private int filterExtractionCondition_ = 0; /** * * *
          -       * The condition under which search as you type should occur.
          -       * Default to
          -       * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
          +       * The condition under which filter extraction should occur.
          +       * Server behavior defaults to `DISABLED`.
                  * 
          * * - * .google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * .google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; * * - * @return The enum numeric value on the wire for condition. + * @return The enum numeric value on the wire for filterExtractionCondition. */ @java.lang.Override - public int getConditionValue() { - return condition_; + public int getFilterExtractionConditionValue() { + return filterExtractionCondition_; } /** * * *
          -       * The condition under which search as you type should occur.
          -       * Default to
          -       * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
          +       * The condition under which filter extraction should occur.
          +       * Server behavior defaults to `DISABLED`.
                  * 
          * * - * .google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * .google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; * * - * @param value The enum numeric value on the wire for condition to set. + * @param value The enum numeric value on the wire for filterExtractionCondition to set. * @return This builder for chaining. */ - public Builder setConditionValue(int value) { - condition_ = value; + public Builder setFilterExtractionConditionValue(int value) { + filterExtractionCondition_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -25110,26 +25956,29 @@ public Builder setConditionValue(int value) { * * *
          -       * The condition under which search as you type should occur.
          -       * Default to
          -       * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
          +       * The condition under which filter extraction should occur.
          +       * Server behavior defaults to `DISABLED`.
                  * 
          * * - * .google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * .google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; * * - * @return The condition. + * @return The filterExtractionCondition. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition - getCondition() { - com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition result = - com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition - .forNumber(condition_); + public com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .FilterExtractionCondition + getFilterExtractionCondition() { + com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .FilterExtractionCondition + result = + com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.forNumber( + filterExtractionCondition_); return result == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition - .UNRECOGNIZED + ? com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.UNRECOGNIZED : result; } @@ -25137,25 +25986,26 @@ public Builder setConditionValue(int value) { * * *
          -       * The condition under which search as you type should occur.
          -       * Default to
          -       * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
          +       * The condition under which filter extraction should occur.
          +       * Server behavior defaults to `DISABLED`.
                  * 
          * * - * .google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * .google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; * * - * @param value The condition to set. + * @param value The filterExtractionCondition to set. * @return This builder for chaining. */ - public Builder setCondition( - com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition value) { + public Builder setFilterExtractionCondition( + com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .FilterExtractionCondition + value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - condition_ = value.getNumber(); + filterExtractionCondition_ = value.getNumber(); onChanged(); return this; } @@ -25164,268 +26014,2606 @@ public Builder setCondition( * * *
          -       * The condition under which search as you type should occur.
          -       * Default to
          -       * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
          +       * The condition under which filter extraction should occur.
          +       * Server behavior defaults to `DISABLED`.
                  * 
          * * - * .google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * .google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; * * * @return This builder for chaining. */ - public Builder clearCondition() { + public Builder clearFilterExtractionCondition() { bitField0_ = (bitField0_ & ~0x00000001); - condition_ = 0; + filterExtractionCondition_ = 0; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec) - private static final com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec(); - } - - public static com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchAsYouTypeSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } 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; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface DisplaySpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
          -     * The condition under which match highlighting should occur.
          -     * 
          - * - * - * .google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition match_highlighting_condition = 1; - * - * - * @return The enum numeric value on the wire for matchHighlightingCondition. - */ - int getMatchHighlightingConditionValue(); - - /** - * - * - *
          -     * The condition under which match highlighting should occur.
          -     * 
          - * - * - * .google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition match_highlighting_condition = 1; - * - * - * @return The matchHighlightingCondition. - */ - com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition - getMatchHighlightingCondition(); - } - - /** - * - * - *
          -   * Specifies features for display, like match highlighting.
          -   * 
          - * - * Protobuf type {@code google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec} - */ - public static final class DisplaySpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec) - DisplaySpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "DisplaySpec"); - } - - // Use DisplaySpec.newBuilder() to construct. - private DisplaySpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private DisplaySpec() { - matchHighlightingCondition_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_DisplaySpec_descriptor; - } + private com.google.protobuf.LazyStringArrayList geoSearchQueryDetectionFieldNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_DisplaySpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.class, - com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.Builder.class); - } + private void ensureGeoSearchQueryDetectionFieldNamesIsMutable() { + if (!geoSearchQueryDetectionFieldNames_.isModifiable()) { + geoSearchQueryDetectionFieldNames_ = + new com.google.protobuf.LazyStringArrayList(geoSearchQueryDetectionFieldNames_); + } + bitField0_ |= 0x00000002; + } - /** - * - * - *
          -     * Enum describing under which condition match highlighting should occur.
          -     * 
          - * - * Protobuf enum {@code - * google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition} - */ - public enum MatchHighlightingCondition implements com.google.protobuf.ProtocolMessageEnum { /** * * *
          -       * Server behavior is the same as `MATCH_HIGHLIGHTING_DISABLED`.
          +       * Field names used for location-based filtering, where geolocation filters
          +       * are detected in natural language search queries.
          +       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
          +       *
          +       * If this field is set, it overrides the field names set in
          +       * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1.ServingConfig.geo_search_query_detection_field_names].
                  * 
          * - * MATCH_HIGHLIGHTING_CONDITION_UNSPECIFIED = 0; + * repeated string geo_search_query_detection_field_names = 2; + * + * @return A list containing the geoSearchQueryDetectionFieldNames. */ - MATCH_HIGHLIGHTING_CONDITION_UNSPECIFIED(0), + public com.google.protobuf.ProtocolStringList getGeoSearchQueryDetectionFieldNamesList() { + geoSearchQueryDetectionFieldNames_.makeImmutable(); + return geoSearchQueryDetectionFieldNames_; + } + /** * * *
          -       * Disables match highlighting on all documents.
          +       * Field names used for location-based filtering, where geolocation filters
          +       * are detected in natural language search queries.
          +       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
          +       *
          +       * If this field is set, it overrides the field names set in
          +       * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1.ServingConfig.geo_search_query_detection_field_names].
                  * 
          * - * MATCH_HIGHLIGHTING_DISABLED = 1; + * repeated string geo_search_query_detection_field_names = 2; + * + * @return The count of geoSearchQueryDetectionFieldNames. */ - MATCH_HIGHLIGHTING_DISABLED(1), + public int getGeoSearchQueryDetectionFieldNamesCount() { + return geoSearchQueryDetectionFieldNames_.size(); + } + /** * * *
          -       * Enables match highlighting on all documents.
          +       * Field names used for location-based filtering, where geolocation filters
          +       * are detected in natural language search queries.
          +       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
          +       *
          +       * If this field is set, it overrides the field names set in
          +       * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1.ServingConfig.geo_search_query_detection_field_names].
                  * 
          * - * MATCH_HIGHLIGHTING_ENABLED = 2; + * repeated string geo_search_query_detection_field_names = 2; + * + * @param index The index of the element to return. + * @return The geoSearchQueryDetectionFieldNames at the given index. */ - MATCH_HIGHLIGHTING_ENABLED(2), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "MatchHighlightingCondition"); + public java.lang.String getGeoSearchQueryDetectionFieldNames(int index) { + return geoSearchQueryDetectionFieldNames_.get(index); } /** * * *
          -       * Server behavior is the same as `MATCH_HIGHLIGHTING_DISABLED`.
          +       * Field names used for location-based filtering, where geolocation filters
          +       * are detected in natural language search queries.
          +       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
          +       *
          +       * If this field is set, it overrides the field names set in
          +       * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1.ServingConfig.geo_search_query_detection_field_names].
                  * 
          * - * MATCH_HIGHLIGHTING_CONDITION_UNSPECIFIED = 0; + * repeated string geo_search_query_detection_field_names = 2; + * + * @param index The index of the value to return. + * @return The bytes of the geoSearchQueryDetectionFieldNames at the given index. */ - public static final int MATCH_HIGHLIGHTING_CONDITION_UNSPECIFIED_VALUE = 0; + public com.google.protobuf.ByteString getGeoSearchQueryDetectionFieldNamesBytes(int index) { + return geoSearchQueryDetectionFieldNames_.getByteString(index); + } /** * * *
          -       * Disables match highlighting on all documents.
          +       * Field names used for location-based filtering, where geolocation filters
          +       * are detected in natural language search queries.
          +       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
          +       *
          +       * If this field is set, it overrides the field names set in
          +       * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1.ServingConfig.geo_search_query_detection_field_names].
                  * 
          * - * MATCH_HIGHLIGHTING_DISABLED = 1; + * repeated string geo_search_query_detection_field_names = 2; + * + * @param index The index to set the value at. + * @param value The geoSearchQueryDetectionFieldNames to set. + * @return This builder for chaining. */ - public static final int MATCH_HIGHLIGHTING_DISABLED_VALUE = 1; + public Builder setGeoSearchQueryDetectionFieldNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGeoSearchQueryDetectionFieldNamesIsMutable(); + geoSearchQueryDetectionFieldNames_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } /** * * *
          -       * Enables match highlighting on all documents.
          +       * Field names used for location-based filtering, where geolocation filters
          +       * are detected in natural language search queries.
          +       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
          +       *
          +       * If this field is set, it overrides the field names set in
          +       * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1.ServingConfig.geo_search_query_detection_field_names].
                  * 
          * - * MATCH_HIGHLIGHTING_ENABLED = 2; + * repeated string geo_search_query_detection_field_names = 2; + * + * @param value The geoSearchQueryDetectionFieldNames to add. + * @return This builder for chaining. */ - public static final int MATCH_HIGHLIGHTING_ENABLED_VALUE = 2; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); + public Builder addGeoSearchQueryDetectionFieldNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - return value; + ensureGeoSearchQueryDetectionFieldNamesIsMutable(); + geoSearchQueryDetectionFieldNames_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; } /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. + * + * + *
          +       * Field names used for location-based filtering, where geolocation filters
          +       * are detected in natural language search queries.
          +       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
          +       *
          +       * If this field is set, it overrides the field names set in
          +       * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1.ServingConfig.geo_search_query_detection_field_names].
          +       * 
          + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @param values The geoSearchQueryDetectionFieldNames to add. + * @return This builder for chaining. + */ + public Builder addAllGeoSearchQueryDetectionFieldNames( + java.lang.Iterable values) { + ensureGeoSearchQueryDetectionFieldNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, geoSearchQueryDetectionFieldNames_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +       * Field names used for location-based filtering, where geolocation filters
          +       * are detected in natural language search queries.
          +       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
          +       *
          +       * If this field is set, it overrides the field names set in
          +       * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1.ServingConfig.geo_search_query_detection_field_names].
          +       * 
          + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @return This builder for chaining. + */ + public Builder clearGeoSearchQueryDetectionFieldNames() { + geoSearchQueryDetectionFieldNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
          +       * Field names used for location-based filtering, where geolocation filters
          +       * are detected in natural language search queries.
          +       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
          +       *
          +       * If this field is set, it overrides the field names set in
          +       * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1.ServingConfig.geo_search_query_detection_field_names].
          +       * 
          + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @param value The bytes of the geoSearchQueryDetectionFieldNames to add. + * @return This builder for chaining. + */ + public Builder addGeoSearchQueryDetectionFieldNamesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureGeoSearchQueryDetectionFieldNamesIsMutable(); + geoSearchQueryDetectionFieldNames_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int extractedFilterBehavior_ = 0; + + /** + * + * + *
          +       * Optional. Controls behavior of how extracted filters are applied to the
          +       * search. The default behavior depends on the request. For single datastore
          +       * structured search, the default is `HARD_FILTER`. For multi-datastore
          +       * search, the default behavior is `SOFT_BOOST`.
          +       * Location-based filters are always applied as hard filters, and the
          +       * `SOFT_BOOST` setting will not affect them.
          +       * This field is only used if
          +       * [SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition][google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition]
          +       * is set to
          +       * [FilterExtractionCondition.ENABLED][google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.ENABLED].
          +       * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehavior extracted_filter_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for extractedFilterBehavior. + */ + @java.lang.Override + public int getExtractedFilterBehaviorValue() { + return extractedFilterBehavior_; + } + + /** + * + * + *
          +       * Optional. Controls behavior of how extracted filters are applied to the
          +       * search. The default behavior depends on the request. For single datastore
          +       * structured search, the default is `HARD_FILTER`. For multi-datastore
          +       * search, the default behavior is `SOFT_BOOST`.
          +       * Location-based filters are always applied as hard filters, and the
          +       * `SOFT_BOOST` setting will not affect them.
          +       * This field is only used if
          +       * [SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition][google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition]
          +       * is set to
          +       * [FilterExtractionCondition.ENABLED][google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.ENABLED].
          +       * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehavior extracted_filter_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for extractedFilterBehavior to set. + * @return This builder for chaining. + */ + public Builder setExtractedFilterBehaviorValue(int value) { + extractedFilterBehavior_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +       * Optional. Controls behavior of how extracted filters are applied to the
          +       * search. The default behavior depends on the request. For single datastore
          +       * structured search, the default is `HARD_FILTER`. For multi-datastore
          +       * search, the default behavior is `SOFT_BOOST`.
          +       * Location-based filters are always applied as hard filters, and the
          +       * `SOFT_BOOST` setting will not affect them.
          +       * This field is only used if
          +       * [SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition][google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition]
          +       * is set to
          +       * [FilterExtractionCondition.ENABLED][google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.ENABLED].
          +       * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehavior extracted_filter_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The extractedFilterBehavior. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .ExtractedFilterBehavior + getExtractedFilterBehavior() { + com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .ExtractedFilterBehavior + result = + com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehavior.forNumber( + extractedFilterBehavior_); + return result == null + ? com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehavior.UNRECOGNIZED + : result; + } + + /** + * + * + *
          +       * Optional. Controls behavior of how extracted filters are applied to the
          +       * search. The default behavior depends on the request. For single datastore
          +       * structured search, the default is `HARD_FILTER`. For multi-datastore
          +       * search, the default behavior is `SOFT_BOOST`.
          +       * Location-based filters are always applied as hard filters, and the
          +       * `SOFT_BOOST` setting will not affect them.
          +       * This field is only used if
          +       * [SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition][google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition]
          +       * is set to
          +       * [FilterExtractionCondition.ENABLED][google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.ENABLED].
          +       * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehavior extracted_filter_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The extractedFilterBehavior to set. + * @return This builder for chaining. + */ + public Builder setExtractedFilterBehavior( + com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .ExtractedFilterBehavior + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + extractedFilterBehavior_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
          +       * Optional. Controls behavior of how extracted filters are applied to the
          +       * search. The default behavior depends on the request. For single datastore
          +       * structured search, the default is `HARD_FILTER`. For multi-datastore
          +       * search, the default behavior is `SOFT_BOOST`.
          +       * Location-based filters are always applied as hard filters, and the
          +       * `SOFT_BOOST` setting will not affect them.
          +       * This field is only used if
          +       * [SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition][google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition]
          +       * is set to
          +       * [FilterExtractionCondition.ENABLED][google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.ENABLED].
          +       * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehavior extracted_filter_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearExtractedFilterBehavior() { + bitField0_ = (bitField0_ & ~0x00000004); + extractedFilterBehavior_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList allowedFieldNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAllowedFieldNamesIsMutable() { + if (!allowedFieldNames_.isModifiable()) { + allowedFieldNames_ = new com.google.protobuf.LazyStringArrayList(allowedFieldNames_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
          +       * Optional. Allowlist of fields that can be used for natural language
          +       * filter extraction. By default, if this is unspecified, all indexable
          +       * fields are eligible for natural language filter extraction (but are not
          +       * guaranteed to be used). If any fields are specified in
          +       * allowed_field_names, only the fields that are both marked as indexable in
          +       * the schema and specified in the allowlist will be eligible for natural
          +       * language filter extraction. Note: for multi-datastore search, this is not
          +       * yet supported, and will be ignored.
          +       * 
          + * + * repeated string allowed_field_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the allowedFieldNames. + */ + public com.google.protobuf.ProtocolStringList getAllowedFieldNamesList() { + allowedFieldNames_.makeImmutable(); + return allowedFieldNames_; + } + + /** + * + * + *
          +       * Optional. Allowlist of fields that can be used for natural language
          +       * filter extraction. By default, if this is unspecified, all indexable
          +       * fields are eligible for natural language filter extraction (but are not
          +       * guaranteed to be used). If any fields are specified in
          +       * allowed_field_names, only the fields that are both marked as indexable in
          +       * the schema and specified in the allowlist will be eligible for natural
          +       * language filter extraction. Note: for multi-datastore search, this is not
          +       * yet supported, and will be ignored.
          +       * 
          + * + * repeated string allowed_field_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of allowedFieldNames. + */ + public int getAllowedFieldNamesCount() { + return allowedFieldNames_.size(); + } + + /** + * + * + *
          +       * Optional. Allowlist of fields that can be used for natural language
          +       * filter extraction. By default, if this is unspecified, all indexable
          +       * fields are eligible for natural language filter extraction (but are not
          +       * guaranteed to be used). If any fields are specified in
          +       * allowed_field_names, only the fields that are both marked as indexable in
          +       * the schema and specified in the allowlist will be eligible for natural
          +       * language filter extraction. Note: for multi-datastore search, this is not
          +       * yet supported, and will be ignored.
          +       * 
          + * + * repeated string allowed_field_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The allowedFieldNames at the given index. + */ + public java.lang.String getAllowedFieldNames(int index) { + return allowedFieldNames_.get(index); + } + + /** + * + * + *
          +       * Optional. Allowlist of fields that can be used for natural language
          +       * filter extraction. By default, if this is unspecified, all indexable
          +       * fields are eligible for natural language filter extraction (but are not
          +       * guaranteed to be used). If any fields are specified in
          +       * allowed_field_names, only the fields that are both marked as indexable in
          +       * the schema and specified in the allowlist will be eligible for natural
          +       * language filter extraction. Note: for multi-datastore search, this is not
          +       * yet supported, and will be ignored.
          +       * 
          + * + * repeated string allowed_field_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the allowedFieldNames at the given index. + */ + public com.google.protobuf.ByteString getAllowedFieldNamesBytes(int index) { + return allowedFieldNames_.getByteString(index); + } + + /** + * + * + *
          +       * Optional. Allowlist of fields that can be used for natural language
          +       * filter extraction. By default, if this is unspecified, all indexable
          +       * fields are eligible for natural language filter extraction (but are not
          +       * guaranteed to be used). If any fields are specified in
          +       * allowed_field_names, only the fields that are both marked as indexable in
          +       * the schema and specified in the allowlist will be eligible for natural
          +       * language filter extraction. Note: for multi-datastore search, this is not
          +       * yet supported, and will be ignored.
          +       * 
          + * + * repeated string allowed_field_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The allowedFieldNames to set. + * @return This builder for chaining. + */ + public Builder setAllowedFieldNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedFieldNamesIsMutable(); + allowedFieldNames_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +       * Optional. Allowlist of fields that can be used for natural language
          +       * filter extraction. By default, if this is unspecified, all indexable
          +       * fields are eligible for natural language filter extraction (but are not
          +       * guaranteed to be used). If any fields are specified in
          +       * allowed_field_names, only the fields that are both marked as indexable in
          +       * the schema and specified in the allowlist will be eligible for natural
          +       * language filter extraction. Note: for multi-datastore search, this is not
          +       * yet supported, and will be ignored.
          +       * 
          + * + * repeated string allowed_field_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The allowedFieldNames to add. + * @return This builder for chaining. + */ + public Builder addAllowedFieldNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedFieldNamesIsMutable(); + allowedFieldNames_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +       * Optional. Allowlist of fields that can be used for natural language
          +       * filter extraction. By default, if this is unspecified, all indexable
          +       * fields are eligible for natural language filter extraction (but are not
          +       * guaranteed to be used). If any fields are specified in
          +       * allowed_field_names, only the fields that are both marked as indexable in
          +       * the schema and specified in the allowlist will be eligible for natural
          +       * language filter extraction. Note: for multi-datastore search, this is not
          +       * yet supported, and will be ignored.
          +       * 
          + * + * repeated string allowed_field_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The allowedFieldNames to add. + * @return This builder for chaining. + */ + public Builder addAllAllowedFieldNames(java.lang.Iterable values) { + ensureAllowedFieldNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedFieldNames_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +       * Optional. Allowlist of fields that can be used for natural language
          +       * filter extraction. By default, if this is unspecified, all indexable
          +       * fields are eligible for natural language filter extraction (but are not
          +       * guaranteed to be used). If any fields are specified in
          +       * allowed_field_names, only the fields that are both marked as indexable in
          +       * the schema and specified in the allowlist will be eligible for natural
          +       * language filter extraction. Note: for multi-datastore search, this is not
          +       * yet supported, and will be ignored.
          +       * 
          + * + * repeated string allowed_field_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAllowedFieldNames() { + allowedFieldNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
          +       * Optional. Allowlist of fields that can be used for natural language
          +       * filter extraction. By default, if this is unspecified, all indexable
          +       * fields are eligible for natural language filter extraction (but are not
          +       * guaranteed to be used). If any fields are specified in
          +       * allowed_field_names, only the fields that are both marked as indexable in
          +       * the schema and specified in the allowlist will be eligible for natural
          +       * language filter extraction. Note: for multi-datastore search, this is not
          +       * yet supported, and will be ignored.
          +       * 
          + * + * repeated string allowed_field_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the allowedFieldNames to add. + * @return This builder for chaining. + */ + public Builder addAllowedFieldNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAllowedFieldNamesIsMutable(); + allowedFieldNames_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec) + private static final com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec(); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NaturalLanguageQueryUnderstandingSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SearchAsYouTypeSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +     * The condition under which search as you type should occur.
          +     * Default to
          +     * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * + * + * @return The enum numeric value on the wire for condition. + */ + int getConditionValue(); + + /** + * + * + *
          +     * The condition under which search as you type should occur.
          +     * Default to
          +     * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * + * + * @return The condition. + */ + com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition getCondition(); + } + + /** + * + * + *
          +   * Specification for search as you type in search requests.
          +   * 
          + * + * Protobuf type {@code google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec} + */ + public static final class SearchAsYouTypeSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec) + SearchAsYouTypeSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchAsYouTypeSpec"); + } + + // Use SearchAsYouTypeSpec.newBuilder() to construct. + private SearchAsYouTypeSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchAsYouTypeSpec() { + condition_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchRequest_SearchAsYouTypeSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchRequest_SearchAsYouTypeSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.class, + com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Builder.class); + } + + /** + * + * + *
          +     * Enum describing under which condition search as you type should occur.
          +     * 
          + * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition} + */ + public enum Condition implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +       * Server behavior defaults to
          +       * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
          +       * 
          + * + * CONDITION_UNSPECIFIED = 0; + */ + CONDITION_UNSPECIFIED(0), + /** + * + * + *
          +       * Disables Search As You Type.
          +       * 
          + * + * DISABLED = 1; + */ + DISABLED(1), + /** + * + * + *
          +       * Enables Search As You Type.
          +       * 
          + * + * ENABLED = 2; + */ + ENABLED(2), + /** + * + * + *
          +       * Automatic switching between search-as-you-type and standard search
          +       * modes, ideal for single-API implementations (e.g., debouncing).
          +       * 
          + * + * AUTO = 3; + */ + AUTO(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Condition"); + } + + /** + * + * + *
          +       * Server behavior defaults to
          +       * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
          +       * 
          + * + * CONDITION_UNSPECIFIED = 0; + */ + public static final int CONDITION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
          +       * Disables Search As You Type.
          +       * 
          + * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + + /** + * + * + *
          +       * Enables Search As You Type.
          +       * 
          + * + * ENABLED = 2; + */ + public static final int ENABLED_VALUE = 2; + + /** + * + * + *
          +       * Automatic switching between search-as-you-type and standard search
          +       * modes, ideal for single-API implementations (e.g., debouncing).
          +       * 
          + * + * AUTO = 3; + */ + public static final int AUTO_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Condition valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Condition forNumber(int value) { + switch (value) { + case 0: + return CONDITION_UNSPECIFIED; + case 1: + return DISABLED; + case 2: + return ENABLED; + case 3: + return AUTO; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Condition findValueByNumber(int number) { + return Condition.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Condition[] VALUES = values(); + + public static Condition valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Condition(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition) + } + + public static final int CONDITION_FIELD_NUMBER = 1; + private int condition_ = 0; + + /** + * + * + *
          +     * The condition under which search as you type should occur.
          +     * Default to
          +     * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * + * + * @return The enum numeric value on the wire for condition. + */ + @java.lang.Override + public int getConditionValue() { + return condition_; + } + + /** + * + * + *
          +     * The condition under which search as you type should occur.
          +     * Default to
          +     * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * + * + * @return The condition. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition + getCondition() { + com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition result = + com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition.forNumber( + condition_); + return result == null + ? com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition + .UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (condition_ + != com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition + .CONDITION_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, condition_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (condition_ + != com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition + .CONDITION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, condition_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec other = + (com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec) obj; + + if (condition_ != other.condition_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONDITION_FIELD_NUMBER; + hash = (53 * hash) + condition_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +     * Specification for search as you type in search requests.
          +     * 
          + * + * Protobuf type {@code google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec) + com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchRequest_SearchAsYouTypeSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchRequest_SearchAsYouTypeSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.class, + com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + condition_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchRequest_SearchAsYouTypeSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec build() { + com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec buildPartial() { + com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec result = + new com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.condition_ = condition_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec other) { + if (other + == com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec + .getDefaultInstance()) return this; + if (other.condition_ != 0) { + setConditionValue(other.getConditionValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + condition_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int condition_ = 0; + + /** + * + * + *
          +       * The condition under which search as you type should occur.
          +       * Default to
          +       * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
          +       * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * + * + * @return The enum numeric value on the wire for condition. + */ + @java.lang.Override + public int getConditionValue() { + return condition_; + } + + /** + * + * + *
          +       * The condition under which search as you type should occur.
          +       * Default to
          +       * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
          +       * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * + * + * @param value The enum numeric value on the wire for condition to set. + * @return This builder for chaining. + */ + public Builder setConditionValue(int value) { + condition_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +       * The condition under which search as you type should occur.
          +       * Default to
          +       * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
          +       * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * + * + * @return The condition. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition + getCondition() { + com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition result = + com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition + .forNumber(condition_); + return result == null + ? com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition + .UNRECOGNIZED + : result; + } + + /** + * + * + *
          +       * The condition under which search as you type should occur.
          +       * Default to
          +       * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
          +       * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * + * + * @param value The condition to set. + * @return This builder for chaining. + */ + public Builder setCondition( + com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + condition_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
          +       * The condition under which search as you type should occur.
          +       * Default to
          +       * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
          +       * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearCondition() { + bitField0_ = (bitField0_ & ~0x00000001); + condition_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec) + private static final com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec(); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchAsYouTypeSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DisplaySpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +     * The condition under which match highlighting should occur.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition match_highlighting_condition = 1; + * + * + * @return The enum numeric value on the wire for matchHighlightingCondition. + */ + int getMatchHighlightingConditionValue(); + + /** + * + * + *
          +     * The condition under which match highlighting should occur.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition match_highlighting_condition = 1; + * + * + * @return The matchHighlightingCondition. + */ + com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition + getMatchHighlightingCondition(); + } + + /** + * + * + *
          +   * Specifies features for display, like match highlighting.
          +   * 
          + * + * Protobuf type {@code google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec} + */ + public static final class DisplaySpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec) + DisplaySpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DisplaySpec"); + } + + // Use DisplaySpec.newBuilder() to construct. + private DisplaySpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DisplaySpec() { + matchHighlightingCondition_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchRequest_DisplaySpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchRequest_DisplaySpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.class, + com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.Builder.class); + } + + /** + * + * + *
          +     * Enum describing under which condition match highlighting should occur.
          +     * 
          + * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition} + */ + public enum MatchHighlightingCondition implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +       * Server behavior is the same as `MATCH_HIGHLIGHTING_DISABLED`.
          +       * 
          + * + * MATCH_HIGHLIGHTING_CONDITION_UNSPECIFIED = 0; + */ + MATCH_HIGHLIGHTING_CONDITION_UNSPECIFIED(0), + /** + * + * + *
          +       * Disables match highlighting on all documents.
          +       * 
          + * + * MATCH_HIGHLIGHTING_DISABLED = 1; + */ + MATCH_HIGHLIGHTING_DISABLED(1), + /** + * + * + *
          +       * Enables match highlighting on all documents.
          +       * 
          + * + * MATCH_HIGHLIGHTING_ENABLED = 2; + */ + MATCH_HIGHLIGHTING_ENABLED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MatchHighlightingCondition"); + } + + /** + * + * + *
          +       * Server behavior is the same as `MATCH_HIGHLIGHTING_DISABLED`.
          +       * 
          + * + * MATCH_HIGHLIGHTING_CONDITION_UNSPECIFIED = 0; + */ + public static final int MATCH_HIGHLIGHTING_CONDITION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
          +       * Disables match highlighting on all documents.
          +       * 
          + * + * MATCH_HIGHLIGHTING_DISABLED = 1; + */ + public static final int MATCH_HIGHLIGHTING_DISABLED_VALUE = 1; + + /** + * + * + *
          +       * Enables match highlighting on all documents.
          +       * 
          + * + * MATCH_HIGHLIGHTING_ENABLED = 2; + */ + public static final int MATCH_HIGHLIGHTING_ENABLED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MatchHighlightingCondition valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static MatchHighlightingCondition forNumber(int value) { + switch (value) { + case 0: + return MATCH_HIGHLIGHTING_CONDITION_UNSPECIFIED; + case 1: + return MATCH_HIGHLIGHTING_DISABLED; + case 2: + return MATCH_HIGHLIGHTING_ENABLED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MatchHighlightingCondition findValueByNumber(int number) { + return MatchHighlightingCondition.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final MatchHighlightingCondition[] VALUES = values(); + + public static MatchHighlightingCondition valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MatchHighlightingCondition(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition) + } + + public static final int MATCH_HIGHLIGHTING_CONDITION_FIELD_NUMBER = 1; + private int matchHighlightingCondition_ = 0; + + /** + * + * + *
          +     * The condition under which match highlighting should occur.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition match_highlighting_condition = 1; + * + * + * @return The enum numeric value on the wire for matchHighlightingCondition. + */ + @java.lang.Override + public int getMatchHighlightingConditionValue() { + return matchHighlightingCondition_; + } + + /** + * + * + *
          +     * The condition under which match highlighting should occur.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition match_highlighting_condition = 1; + * + * + * @return The matchHighlightingCondition. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition + getMatchHighlightingCondition() { + com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition + result = + com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec + .MatchHighlightingCondition.forNumber(matchHighlightingCondition_); + return result == null + ? com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition + .UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (matchHighlightingCondition_ + != com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec + .MatchHighlightingCondition.MATCH_HIGHLIGHTING_CONDITION_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, matchHighlightingCondition_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (matchHighlightingCondition_ + != com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec + .MatchHighlightingCondition.MATCH_HIGHLIGHTING_CONDITION_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(1, matchHighlightingCondition_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec other = + (com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec) obj; + + if (matchHighlightingCondition_ != other.matchHighlightingCondition_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MATCH_HIGHLIGHTING_CONDITION_FIELD_NUMBER; + hash = (53 * hash) + matchHighlightingCondition_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +     * Specifies features for display, like match highlighting.
          +     * 
          + * + * Protobuf type {@code google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec) + com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchRequest_DisplaySpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchRequest_DisplaySpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.class, + com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + matchHighlightingCondition_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchRequest_DisplaySpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec build() { + com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec buildPartial() { + com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec result = + new com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.matchHighlightingCondition_ = matchHighlightingCondition_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec) { + return mergeFrom((com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec other) { + if (other + == com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.getDefaultInstance()) + return this; + if (other.matchHighlightingCondition_ != 0) { + setMatchHighlightingConditionValue(other.getMatchHighlightingConditionValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + matchHighlightingCondition_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int matchHighlightingCondition_ = 0; + + /** + * + * + *
          +       * The condition under which match highlighting should occur.
          +       * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition match_highlighting_condition = 1; + * + * + * @return The enum numeric value on the wire for matchHighlightingCondition. + */ + @java.lang.Override + public int getMatchHighlightingConditionValue() { + return matchHighlightingCondition_; + } + + /** + * + * + *
          +       * The condition under which match highlighting should occur.
          +       * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition match_highlighting_condition = 1; + * + * + * @param value The enum numeric value on the wire for matchHighlightingCondition to set. + * @return This builder for chaining. + */ + public Builder setMatchHighlightingConditionValue(int value) { + matchHighlightingCondition_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +       * The condition under which match highlighting should occur.
          +       * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition match_highlighting_condition = 1; + * + * + * @return The matchHighlightingCondition. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec + .MatchHighlightingCondition + getMatchHighlightingCondition() { + com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition + result = + com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec + .MatchHighlightingCondition.forNumber(matchHighlightingCondition_); + return result == null + ? com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec + .MatchHighlightingCondition.UNRECOGNIZED + : result; + } + + /** + * + * + *
          +       * The condition under which match highlighting should occur.
          +       * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition match_highlighting_condition = 1; + * + * + * @param value The matchHighlightingCondition to set. + * @return This builder for chaining. + */ + public Builder setMatchHighlightingCondition( + com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + matchHighlightingCondition_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
          +       * The condition under which match highlighting should occur.
          +       * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition match_highlighting_condition = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearMatchHighlightingCondition() { + bitField0_ = (bitField0_ & ~0x00000001); + matchHighlightingCondition_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec) + private static final com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec(); + } + + public static com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DisplaySpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface CrowdingSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +     * The field to use for crowding. Documents can be crowded by a field in the
          +     * [Document][google.cloud.discoveryengine.v1.Document] object. Crowding
          +     * field is case sensitive.
          +     * 
          + * + * string field = 1; + * + * @return The field. + */ + java.lang.String getField(); + + /** + * + * + *
          +     * The field to use for crowding. Documents can be crowded by a field in the
          +     * [Document][google.cloud.discoveryengine.v1.Document] object. Crowding
          +     * field is case sensitive.
          +     * 
          + * + * string field = 1; + * + * @return The bytes for field. + */ + com.google.protobuf.ByteString getFieldBytes(); + + /** + * + * + *
          +     * The maximum number of documents to keep per value of the field. Once
          +     * there are at least max_count previous results which contain the same
          +     * value for the given field (according to the order specified in
          +     * `order_by`), later results with the same value are "crowded away".
          +     * If not specified, the default value is 1.
          +     * 
          + * + * int32 max_count = 2; + * + * @return The maxCount. + */ + int getMaxCount(); + + /** + * + * + *
          +     * Mode to use for documents that are crowded away.
          +     * 
          + * + * .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Mode mode = 3; + * + * @return The enum numeric value on the wire for mode. + */ + int getModeValue(); + + /** + * + * + *
          +     * Mode to use for documents that are crowded away.
          +     * 
          + * + * .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Mode mode = 3; + * + * @return The mode. + */ + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Mode getMode(); + } + + /** + * + * + *
          +   * Specification for crowding. Crowding improves the diversity of search
          +   * results by limiting the number of results that share the same field value.
          +   * For example, crowding on the color field with a max_count of 3 and mode
          +   * DROP_CROWDED_RESULTS will return at most 3 results with the same color
          +   * across all pages.
          +   * 
          + * + * Protobuf type {@code google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec} + */ + public static final class CrowdingSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec) + CrowdingSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CrowdingSpec"); + } + + // Use CrowdingSpec.newBuilder() to construct. + private CrowdingSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CrowdingSpec() { + field_ = ""; + mode_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchRequest_CrowdingSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchRequest_CrowdingSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.class, + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Builder.class); + } + + /** + * + * + *
          +     * Enum describing the mode to use for documents that are crowded away.
          +     * They can be dropped or demoted to the later pages.
          +     * 
          + * + * Protobuf enum {@code google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Mode} + */ + public enum Mode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +       * Unspecified crowding mode. In this case, server behavior defaults to
          +       * [Mode.DROP_CROWDED_RESULTS][google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Mode.DROP_CROWDED_RESULTS].
          +       * 
          + * + * MODE_UNSPECIFIED = 0; + */ + MODE_UNSPECIFIED(0), + /** + * + * + *
          +       * Drop crowded results.
          +       * 
          + * + * DROP_CROWDED_RESULTS = 1; + */ + DROP_CROWDED_RESULTS(1), + /** + * + * + *
          +       * Demote crowded results to the later pages.
          +       * 
          + * + * DEMOTE_CROWDED_RESULTS_TO_END = 2; + */ + DEMOTE_CROWDED_RESULTS_TO_END(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Mode"); + } + + /** + * + * + *
          +       * Unspecified crowding mode. In this case, server behavior defaults to
          +       * [Mode.DROP_CROWDED_RESULTS][google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Mode.DROP_CROWDED_RESULTS].
          +       * 
          + * + * MODE_UNSPECIFIED = 0; + */ + public static final int MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
          +       * Drop crowded results.
          +       * 
          + * + * DROP_CROWDED_RESULTS = 1; + */ + public static final int DROP_CROWDED_RESULTS_VALUE = 1; + + /** + * + * + *
          +       * Demote crowded results to the later pages.
          +       * 
          + * + * DEMOTE_CROWDED_RESULTS_TO_END = 2; + */ + public static final int DEMOTE_CROWDED_RESULTS_TO_END_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated - public static MatchHighlightingCondition valueOf(int value) { + public static Mode valueOf(int value) { return forNumber(value); } @@ -25433,31 +28621,29 @@ public static MatchHighlightingCondition valueOf(int value) { * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ - public static MatchHighlightingCondition forNumber(int value) { + public static Mode forNumber(int value) { switch (value) { case 0: - return MATCH_HIGHLIGHTING_CONDITION_UNSPECIFIED; + return MODE_UNSPECIFIED; case 1: - return MATCH_HIGHLIGHTING_DISABLED; + return DROP_CROWDED_RESULTS; case 2: - return MATCH_HIGHLIGHTING_ENABLED; + return DEMOTE_CROWDED_RESULTS_TO_END; 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 - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MatchHighlightingCondition findValueByNumber(int number) { - return MatchHighlightingCondition.forNumber(number); - } - }; + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Mode findValueByNumber(int number) { + return Mode.forNumber(number); + } + }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { @@ -25472,15 +28658,14 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.getDescriptor() + return com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.getDescriptor() .getEnumTypes() .get(0); } - private static final MatchHighlightingCondition[] VALUES = values(); + private static final Mode[] VALUES = values(); - public static MatchHighlightingCondition valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } @@ -25492,57 +28677,129 @@ public static MatchHighlightingCondition valueOf( private final int value; - private MatchHighlightingCondition(int value) { + private Mode(int value) { this.value = value; } - // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition) + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Mode) } - public static final int MATCH_HIGHLIGHTING_CONDITION_FIELD_NUMBER = 1; - private int matchHighlightingCondition_ = 0; + public static final int FIELD_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object field_ = ""; /** * * *
          -     * The condition under which match highlighting should occur.
          +     * The field to use for crowding. Documents can be crowded by a field in the
          +     * [Document][google.cloud.discoveryengine.v1.Document] object. Crowding
          +     * field is case sensitive.
                * 
          * - * - * .google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition match_highlighting_condition = 1; - * + * string field = 1; * - * @return The enum numeric value on the wire for matchHighlightingCondition. + * @return The field. */ @java.lang.Override - public int getMatchHighlightingConditionValue() { - return matchHighlightingCondition_; + public java.lang.String getField() { + java.lang.Object ref = field_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + field_ = s; + return s; + } } /** * * *
          -     * The condition under which match highlighting should occur.
          +     * The field to use for crowding. Documents can be crowded by a field in the
          +     * [Document][google.cloud.discoveryengine.v1.Document] object. Crowding
          +     * field is case sensitive.
                * 
          * - * - * .google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition match_highlighting_condition = 1; - * + * string field = 1; * - * @return The matchHighlightingCondition. + * @return The bytes for field. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition - getMatchHighlightingCondition() { - com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition - result = - com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec - .MatchHighlightingCondition.forNumber(matchHighlightingCondition_); + public com.google.protobuf.ByteString getFieldBytes() { + java.lang.Object ref = field_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + field_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAX_COUNT_FIELD_NUMBER = 2; + private int maxCount_ = 0; + + /** + * + * + *
          +     * The maximum number of documents to keep per value of the field. Once
          +     * there are at least max_count previous results which contain the same
          +     * value for the given field (according to the order specified in
          +     * `order_by`), later results with the same value are "crowded away".
          +     * If not specified, the default value is 1.
          +     * 
          + * + * int32 max_count = 2; + * + * @return The maxCount. + */ + @java.lang.Override + public int getMaxCount() { + return maxCount_; + } + + public static final int MODE_FIELD_NUMBER = 3; + private int mode_ = 0; + + /** + * + * + *
          +     * Mode to use for documents that are crowded away.
          +     * 
          + * + * .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Mode mode = 3; + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + + /** + * + * + *
          +     * Mode to use for documents that are crowded away.
          +     * 
          + * + * .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Mode mode = 3; + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Mode getMode() { + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Mode result = + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Mode.forNumber(mode_); return result == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition - .UNRECOGNIZED + ? com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Mode.UNRECOGNIZED : result; } @@ -25560,11 +28817,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (matchHighlightingCondition_ - != com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec - .MatchHighlightingCondition.MATCH_HIGHLIGHTING_CONDITION_UNSPECIFIED + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(field_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, field_); + } + if (maxCount_ != 0) { + output.writeInt32(2, maxCount_); + } + if (mode_ + != com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Mode.MODE_UNSPECIFIED .getNumber()) { - output.writeEnum(1, matchHighlightingCondition_); + output.writeEnum(3, mode_); } getUnknownFields().writeTo(output); } @@ -25575,12 +28837,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (matchHighlightingCondition_ - != com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec - .MatchHighlightingCondition.MATCH_HIGHLIGHTING_CONDITION_UNSPECIFIED + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(field_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, field_); + } + if (maxCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxCount_); + } + if (mode_ + != com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Mode.MODE_UNSPECIFIED .getNumber()) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(1, matchHighlightingCondition_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, mode_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -25592,13 +28858,15 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec other = - (com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec) obj; + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec other = + (com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec) obj; - if (matchHighlightingCondition_ != other.matchHighlightingCondition_) return false; + if (!getField().equals(other.getField())) return false; + if (getMaxCount() != other.getMaxCount()) return false; + if (mode_ != other.mode_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -25610,78 +28878,82 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MATCH_HIGHLIGHTING_CONDITION_FIELD_NUMBER; - hash = (53 * hash) + matchHighlightingCondition_; + hash = (37 * hash) + FIELD_FIELD_NUMBER; + hash = (53 * hash) + getField().hashCode(); + hash = (37 * hash) + MAX_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMaxCount(); + hash = (37 * hash) + MODE_FIELD_NUMBER; + hash = (53 * hash) + mode_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec parseFrom( + public static com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec parseFrom( + public static com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec parseFrom( + public static com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec parseFrom( + public static com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec parseFrom( + public static com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec parseFrom( + public static com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec parseFrom( + public static com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec parseFrom( + public static com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec parseDelimitedFrom( + public static com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec parseDelimitedFrom( + public static com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec parseFrom( + public static com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec parseFrom( + public static com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -25699,7 +28971,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec prototype) { + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -25718,31 +28990,35 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
          -     * Specifies features for display, like match highlighting.
          +     * Specification for crowding. Crowding improves the diversity of search
          +     * results by limiting the number of results that share the same field value.
          +     * For example, crowding on the color field with a max_count of 3 and mode
          +     * DROP_CROWDED_RESULTS will return at most 3 results with the same color
          +     * across all pages.
                * 
          * - * Protobuf type {@code google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec} + * Protobuf type {@code google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec) - com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpecOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec) + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_DisplaySpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1_SearchRequest_CrowdingSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_DisplaySpec_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1_SearchRequest_CrowdingSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.class, - com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.Builder.class); + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.class, + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Builder.class); } - // Construct using com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.newBuilder() + // Construct using com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -25753,25 +29029,27 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - matchHighlightingCondition_ = 0; + field_ = ""; + maxCount_ = 0; + mode_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchRequest_DisplaySpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1_SearchRequest_CrowdingSpec_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec + public com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.getDefaultInstance(); + return com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec build() { - com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec result = buildPartial(); + public com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec build() { + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -25779,9 +29057,9 @@ public com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec build() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec buildPartial() { - com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec result = - new com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec(this); + public com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec buildPartial() { + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec result = + new com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -25790,17 +29068,23 @@ public com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec buildPartia } private void buildPartial0( - com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec result) { + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.matchHighlightingCondition_ = matchHighlightingCondition_; + result.field_ = field_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxCount_ = maxCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.mode_ = mode_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec) { - return mergeFrom((com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec) other); + if (other instanceof com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec) { + return mergeFrom((com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec) other); } else { super.mergeFrom(other); return this; @@ -25808,12 +29092,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec other) { + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec other) { if (other - == com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.getDefaultInstance()) + == com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.getDefaultInstance()) return this; - if (other.matchHighlightingCondition_ != 0) { - setMatchHighlightingConditionValue(other.getMatchHighlightingConditionValue()); + if (!other.getField().isEmpty()) { + field_ = other.field_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getMaxCount() != 0) { + setMaxCount(other.getMaxCount()); + } + if (other.mode_ != 0) { + setModeValue(other.getModeValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -25841,12 +29133,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: + case 10: { - matchHighlightingCondition_ = input.readEnum(); + field_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; - } // case 8 + } // case 10 + case 16: + { + maxCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + mode_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -25866,42 +29170,77 @@ public Builder mergeFrom( private int bitField0_; - private int matchHighlightingCondition_ = 0; + private java.lang.Object field_ = ""; /** * * *
          -       * The condition under which match highlighting should occur.
          +       * The field to use for crowding. Documents can be crowded by a field in the
          +       * [Document][google.cloud.discoveryengine.v1.Document] object. Crowding
          +       * field is case sensitive.
                  * 
          * - * - * .google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition match_highlighting_condition = 1; - * + * string field = 1; * - * @return The enum numeric value on the wire for matchHighlightingCondition. + * @return The field. */ - @java.lang.Override - public int getMatchHighlightingConditionValue() { - return matchHighlightingCondition_; + public java.lang.String getField() { + java.lang.Object ref = field_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + field_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
          -       * The condition under which match highlighting should occur.
          +       * The field to use for crowding. Documents can be crowded by a field in the
          +       * [Document][google.cloud.discoveryengine.v1.Document] object. Crowding
          +       * field is case sensitive.
                  * 
          * - * - * .google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition match_highlighting_condition = 1; - * + * string field = 1; * - * @param value The enum numeric value on the wire for matchHighlightingCondition to set. + * @return The bytes for field. + */ + public com.google.protobuf.ByteString getFieldBytes() { + java.lang.Object ref = field_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + field_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +       * The field to use for crowding. Documents can be crowded by a field in the
          +       * [Document][google.cloud.discoveryengine.v1.Document] object. Crowding
          +       * field is case sensitive.
          +       * 
          + * + * string field = 1; + * + * @param value The field to set. * @return This builder for chaining. */ - public Builder setMatchHighlightingConditionValue(int value) { - matchHighlightingCondition_ = value; + public Builder setField(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + field_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -25911,26 +29250,169 @@ public Builder setMatchHighlightingConditionValue(int value) { * * *
          -       * The condition under which match highlighting should occur.
          +       * The field to use for crowding. Documents can be crowded by a field in the
          +       * [Document][google.cloud.discoveryengine.v1.Document] object. Crowding
          +       * field is case sensitive.
                  * 
          * - * - * .google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition match_highlighting_condition = 1; - * + * string field = 1; * - * @return The matchHighlightingCondition. + * @return This builder for chaining. + */ + public Builder clearField() { + field_ = getDefaultInstance().getField(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +       * The field to use for crowding. Documents can be crowded by a field in the
          +       * [Document][google.cloud.discoveryengine.v1.Document] object. Crowding
          +       * field is case sensitive.
          +       * 
          + * + * string field = 1; + * + * @param value The bytes for field to set. + * @return This builder for chaining. + */ + public Builder setFieldBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + field_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int maxCount_; + + /** + * + * + *
          +       * The maximum number of documents to keep per value of the field. Once
          +       * there are at least max_count previous results which contain the same
          +       * value for the given field (according to the order specified in
          +       * `order_by`), later results with the same value are "crowded away".
          +       * If not specified, the default value is 1.
          +       * 
          + * + * int32 max_count = 2; + * + * @return The maxCount. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec - .MatchHighlightingCondition - getMatchHighlightingCondition() { - com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition - result = - com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec - .MatchHighlightingCondition.forNumber(matchHighlightingCondition_); + public int getMaxCount() { + return maxCount_; + } + + /** + * + * + *
          +       * The maximum number of documents to keep per value of the field. Once
          +       * there are at least max_count previous results which contain the same
          +       * value for the given field (according to the order specified in
          +       * `order_by`), later results with the same value are "crowded away".
          +       * If not specified, the default value is 1.
          +       * 
          + * + * int32 max_count = 2; + * + * @param value The maxCount to set. + * @return This builder for chaining. + */ + public Builder setMaxCount(int value) { + + maxCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +       * The maximum number of documents to keep per value of the field. Once
          +       * there are at least max_count previous results which contain the same
          +       * value for the given field (according to the order specified in
          +       * `order_by`), later results with the same value are "crowded away".
          +       * If not specified, the default value is 1.
          +       * 
          + * + * int32 max_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearMaxCount() { + bitField0_ = (bitField0_ & ~0x00000002); + maxCount_ = 0; + onChanged(); + return this; + } + + private int mode_ = 0; + + /** + * + * + *
          +       * Mode to use for documents that are crowded away.
          +       * 
          + * + * .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Mode mode = 3; + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + + /** + * + * + *
          +       * Mode to use for documents that are crowded away.
          +       * 
          + * + * .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Mode mode = 3; + * + * @param value The enum numeric value on the wire for mode to set. + * @return This builder for chaining. + */ + public Builder setModeValue(int value) { + mode_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +       * Mode to use for documents that are crowded away.
          +       * 
          + * + * .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Mode mode = 3; + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Mode getMode() { + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Mode result = + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Mode.forNumber(mode_); return result == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec - .MatchHighlightingCondition.UNRECOGNIZED + ? com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Mode.UNRECOGNIZED : result; } @@ -25938,24 +29420,21 @@ public Builder setMatchHighlightingConditionValue(int value) { * * *
          -       * The condition under which match highlighting should occur.
          +       * Mode to use for documents that are crowded away.
                  * 
          * - * - * .google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition match_highlighting_condition = 1; - * + * .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Mode mode = 3; * - * @param value The matchHighlightingCondition to set. + * @param value The mode to set. * @return This builder for chaining. */ - public Builder setMatchHighlightingCondition( - com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition - value) { + public Builder setMode( + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Mode value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000001; - matchHighlightingCondition_ = value.getNumber(); + bitField0_ |= 0x00000004; + mode_ = value.getNumber(); onChanged(); return this; } @@ -25964,42 +29443,40 @@ public Builder setMatchHighlightingCondition( * * *
          -       * The condition under which match highlighting should occur.
          +       * Mode to use for documents that are crowded away.
                  * 
          * - * - * .google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition match_highlighting_condition = 1; - * + * .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Mode mode = 3; * * @return This builder for chaining. */ - public Builder clearMatchHighlightingCondition() { - bitField0_ = (bitField0_ & ~0x00000001); - matchHighlightingCondition_ = 0; + public Builder clearMode() { + bitField0_ = (bitField0_ & ~0x00000004); + mode_ = 0; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec) + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec) } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec) - private static final com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec) + private static final com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec(); } - public static com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec + public static com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public DisplaySpec parsePartialFrom( + public CrowdingSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -26019,17 +29496,17 @@ public DisplaySpec parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec + public com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -27791,6 +31268,138 @@ public com.google.protobuf.ByteString getQueryBytes() { } } + public static final int PAGE_CATEGORIES_FIELD_NUMBER = 63; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList pageCategories_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
          +   * Optional. The categories associated with a category page. Must be set for
          +   * category navigation queries to achieve good search quality. The format
          +   * should be the same as
          +   * [PageInfo.page_category][google.cloud.discoveryengine.v1.PageInfo.page_category].
          +   * This field is the equivalent of the query for browse (navigation) queries.
          +   * It's used by the browse model when the query is empty.
          +   *
          +   * If the field is empty, it will not be used by the browse model.
          +   * If the field contains more than one element, only the first element will
          +   * be used.
          +   *
          +   * To represent full path of a category, use '>' character to separate
          +   * different hierarchies. If '>' is part of the category name, replace it with
          +   * other character(s).
          +   * For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX >
          +   * 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
          +   * > Founders Edition`
          +   * 
          + * + * repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the pageCategories. + */ + public com.google.protobuf.ProtocolStringList getPageCategoriesList() { + return pageCategories_; + } + + /** + * + * + *
          +   * Optional. The categories associated with a category page. Must be set for
          +   * category navigation queries to achieve good search quality. The format
          +   * should be the same as
          +   * [PageInfo.page_category][google.cloud.discoveryengine.v1.PageInfo.page_category].
          +   * This field is the equivalent of the query for browse (navigation) queries.
          +   * It's used by the browse model when the query is empty.
          +   *
          +   * If the field is empty, it will not be used by the browse model.
          +   * If the field contains more than one element, only the first element will
          +   * be used.
          +   *
          +   * To represent full path of a category, use '>' character to separate
          +   * different hierarchies. If '>' is part of the category name, replace it with
          +   * other character(s).
          +   * For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX >
          +   * 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
          +   * > Founders Edition`
          +   * 
          + * + * repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of pageCategories. + */ + public int getPageCategoriesCount() { + return pageCategories_.size(); + } + + /** + * + * + *
          +   * Optional. The categories associated with a category page. Must be set for
          +   * category navigation queries to achieve good search quality. The format
          +   * should be the same as
          +   * [PageInfo.page_category][google.cloud.discoveryengine.v1.PageInfo.page_category].
          +   * This field is the equivalent of the query for browse (navigation) queries.
          +   * It's used by the browse model when the query is empty.
          +   *
          +   * If the field is empty, it will not be used by the browse model.
          +   * If the field contains more than one element, only the first element will
          +   * be used.
          +   *
          +   * To represent full path of a category, use '>' character to separate
          +   * different hierarchies. If '>' is part of the category name, replace it with
          +   * other character(s).
          +   * For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX >
          +   * 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
          +   * > Founders Edition`
          +   * 
          + * + * repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The pageCategories at the given index. + */ + public java.lang.String getPageCategories(int index) { + return pageCategories_.get(index); + } + + /** + * + * + *
          +   * Optional. The categories associated with a category page. Must be set for
          +   * category navigation queries to achieve good search quality. The format
          +   * should be the same as
          +   * [PageInfo.page_category][google.cloud.discoveryengine.v1.PageInfo.page_category].
          +   * This field is the equivalent of the query for browse (navigation) queries.
          +   * It's used by the browse model when the query is empty.
          +   *
          +   * If the field is empty, it will not be used by the browse model.
          +   * If the field contains more than one element, only the first element will
          +   * be used.
          +   *
          +   * To represent full path of a category, use '>' character to separate
          +   * different hierarchies. If '>' is part of the category name, replace it with
          +   * other character(s).
          +   * For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX >
          +   * 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
          +   * > Founders Edition`
          +   * 
          + * + * repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the pageCategories at the given index. + */ + public com.google.protobuf.ByteString getPageCategoriesBytes(int index) { + return pageCategories_.getByteString(index); + } + public static final int IMAGE_QUERY_FIELD_NUMBER = 19; private com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery imageQuery_; @@ -27954,6 +31563,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * unset. * * If this field is negative, an `INVALID_ARGUMENT` is returned. + * + * A large offset may be capped to a reasonable threshold. *
          * * int32 offset = 6; @@ -28919,10 +32530,10 @@ public boolean hasSpellCorrectionSpec() { * * *
          -   * A unique identifier for tracking visitors. For example, this could be
          -   * implemented with an HTTP cookie, which should be able to uniquely identify
          -   * a visitor on a single device. This unique identifier should not change if
          -   * the visitor logs in or out of the website.
          +   * Optional. A unique identifier for tracking visitors. For example, this
          +   * could be implemented with an HTTP cookie, which should be able to uniquely
          +   * identify a visitor on a single device. This unique identifier should not
          +   * change if the visitor logs in or out of the website.
              *
              * This field should NOT have a fixed value such as `unknown_visitor`.
              *
          @@ -28935,7 +32546,7 @@ public boolean hasSpellCorrectionSpec() {
              * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
              * 
          * - * string user_pseudo_id = 15; + * string user_pseudo_id = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return The userPseudoId. */ @@ -28956,10 +32567,10 @@ public java.lang.String getUserPseudoId() { * * *
          -   * A unique identifier for tracking visitors. For example, this could be
          -   * implemented with an HTTP cookie, which should be able to uniquely identify
          -   * a visitor on a single device. This unique identifier should not change if
          -   * the visitor logs in or out of the website.
          +   * Optional. A unique identifier for tracking visitors. For example, this
          +   * could be implemented with an HTTP cookie, which should be able to uniquely
          +   * identify a visitor on a single device. This unique identifier should not
          +   * change if the visitor logs in or out of the website.
              *
              * This field should NOT have a fixed value such as `unknown_visitor`.
              *
          @@ -28972,7 +32583,7 @@ public java.lang.String getUserPseudoId() {
              * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
              * 
          * - * string user_pseudo_id = 15; + * string user_pseudo_id = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for userPseudoId. */ @@ -29050,6 +32661,282 @@ public boolean hasContentSearchSpec() { : contentSearchSpec_; } + public static final int RANKING_EXPRESSION_FIELD_NUMBER = 26; + + @SuppressWarnings("serial") + private volatile java.lang.Object rankingExpression_ = ""; + + /** + * + * + *
          +   * Optional. The ranking expression controls the customized ranking on
          +   * retrieval documents. This overrides
          +   * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1.ServingConfig.ranking_expression].
          +   * The syntax and supported features depend on the
          +   * `ranking_expression_backend` value. If `ranking_expression_backend` is not
          +   * provided, it defaults to `RANK_BY_EMBEDDING`.
          +   *
          +   * If
          +   * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend]
          +   * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single
          +   * function or multiple functions that are joined by "+".
          +   *
          +   * * ranking_expression = function, { " + ", function };
          +   *
          +   * Supported functions:
          +   *
          +   * * double * relevance_score
          +   * * double * dotProduct(embedding_field_path)
          +   *
          +   * Function variables:
          +   *
          +   * * `relevance_score`: pre-defined keywords, used for measure relevance
          +   * between query and document.
          +   * * `embedding_field_path`: the document embedding field
          +   * used with query embedding vector.
          +   * * `dotProduct`: embedding function between `embedding_field_path` and
          +   * query embedding vector.
          +   *
          +   * Example ranking expression:
          +   *
          +   * If document has an embedding field doc_embedding, the ranking expression
          +   * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
          +   *
          +   * If
          +   * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend]
          +   * is set to `RANK_BY_FORMULA`, the following expression types (and
          +   * combinations of those chained using + or
          +   * * operators) are supported:
          +   *
          +   * * `double`
          +   * * `signal`
          +   * * `log(signal)`
          +   * * `exp(signal)`
          +   * * `rr(signal, double > 0)`  -- reciprocal rank transformation with second
          +   * argument being a denominator constant.
          +   * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise.
          +   * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns
          +   * signal2 | double, else returns signal1.
          +   *
          +   * Here are a few examples of ranking formulas that use the supported
          +   * ranking expression types:
          +   *
          +   * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)`
          +   * -- mostly rank by the logarithm of `keyword_similarity_score` with slight
          +   * `semantic_smilarity_score` adjustment.
          +   * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 *
          +   * is_nan(keyword_similarity_score)` -- rank by the exponent of
          +   * `semantic_similarity_score` filling the value with 0 if it's NaN, also
          +   * add constant 0.3 adjustment to the final score if
          +   * `semantic_similarity_score` is NaN.
          +   * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 *
          +   * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank
          +   * of `keyword_similarity_score` with slight adjustment of reciprocal rank
          +   * of `semantic_smilarity_score`.
          +   *
          +   * The following signals are supported:
          +   *
          +   * * `semantic_similarity_score`: semantic similarity adjustment that is
          +   * calculated using the embeddings generated by a proprietary Google model.
          +   * This score determines how semantically similar a search query is to a
          +   * document.
          +   * * `keyword_similarity_score`: keyword match adjustment uses the Best
          +   * Match 25 (BM25) ranking function. This score is calculated using a
          +   * probabilistic model to estimate the probability that a document is
          +   * relevant to a given query.
          +   * * `relevance_score`: semantic relevance adjustment that uses a
          +   * proprietary Google model to determine the meaning and intent behind a
          +   * user's query in context with the content in the documents.
          +   * * `pctr_rank`: predicted conversion rate adjustment as a rank use
          +   * predicted Click-through rate (pCTR) to gauge the relevance and
          +   * attractiveness of a search result from a user's perspective. A higher
          +   * pCTR suggests that the result is more likely to satisfy the user's query
          +   * and intent, making it a valuable signal for ranking.
          +   * * `freshness_rank`: freshness adjustment as a rank
          +   * * `document_age`: The time in hours elapsed since the document was last
          +   * updated, a floating-point number (e.g., 0.25 means 15 minutes).
          +   * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary
          +   * Google model to determine the keyword-based overlap between the query and
          +   * the document.
          +   * * `base_rank`: the default rank of the result
          +   * 
          + * + * string ranking_expression = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The rankingExpression. + */ + @java.lang.Override + public java.lang.String getRankingExpression() { + java.lang.Object ref = rankingExpression_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rankingExpression_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. The ranking expression controls the customized ranking on
          +   * retrieval documents. This overrides
          +   * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1.ServingConfig.ranking_expression].
          +   * The syntax and supported features depend on the
          +   * `ranking_expression_backend` value. If `ranking_expression_backend` is not
          +   * provided, it defaults to `RANK_BY_EMBEDDING`.
          +   *
          +   * If
          +   * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend]
          +   * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single
          +   * function or multiple functions that are joined by "+".
          +   *
          +   * * ranking_expression = function, { " + ", function };
          +   *
          +   * Supported functions:
          +   *
          +   * * double * relevance_score
          +   * * double * dotProduct(embedding_field_path)
          +   *
          +   * Function variables:
          +   *
          +   * * `relevance_score`: pre-defined keywords, used for measure relevance
          +   * between query and document.
          +   * * `embedding_field_path`: the document embedding field
          +   * used with query embedding vector.
          +   * * `dotProduct`: embedding function between `embedding_field_path` and
          +   * query embedding vector.
          +   *
          +   * Example ranking expression:
          +   *
          +   * If document has an embedding field doc_embedding, the ranking expression
          +   * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
          +   *
          +   * If
          +   * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend]
          +   * is set to `RANK_BY_FORMULA`, the following expression types (and
          +   * combinations of those chained using + or
          +   * * operators) are supported:
          +   *
          +   * * `double`
          +   * * `signal`
          +   * * `log(signal)`
          +   * * `exp(signal)`
          +   * * `rr(signal, double > 0)`  -- reciprocal rank transformation with second
          +   * argument being a denominator constant.
          +   * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise.
          +   * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns
          +   * signal2 | double, else returns signal1.
          +   *
          +   * Here are a few examples of ranking formulas that use the supported
          +   * ranking expression types:
          +   *
          +   * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)`
          +   * -- mostly rank by the logarithm of `keyword_similarity_score` with slight
          +   * `semantic_smilarity_score` adjustment.
          +   * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 *
          +   * is_nan(keyword_similarity_score)` -- rank by the exponent of
          +   * `semantic_similarity_score` filling the value with 0 if it's NaN, also
          +   * add constant 0.3 adjustment to the final score if
          +   * `semantic_similarity_score` is NaN.
          +   * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 *
          +   * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank
          +   * of `keyword_similarity_score` with slight adjustment of reciprocal rank
          +   * of `semantic_smilarity_score`.
          +   *
          +   * The following signals are supported:
          +   *
          +   * * `semantic_similarity_score`: semantic similarity adjustment that is
          +   * calculated using the embeddings generated by a proprietary Google model.
          +   * This score determines how semantically similar a search query is to a
          +   * document.
          +   * * `keyword_similarity_score`: keyword match adjustment uses the Best
          +   * Match 25 (BM25) ranking function. This score is calculated using a
          +   * probabilistic model to estimate the probability that a document is
          +   * relevant to a given query.
          +   * * `relevance_score`: semantic relevance adjustment that uses a
          +   * proprietary Google model to determine the meaning and intent behind a
          +   * user's query in context with the content in the documents.
          +   * * `pctr_rank`: predicted conversion rate adjustment as a rank use
          +   * predicted Click-through rate (pCTR) to gauge the relevance and
          +   * attractiveness of a search result from a user's perspective. A higher
          +   * pCTR suggests that the result is more likely to satisfy the user's query
          +   * and intent, making it a valuable signal for ranking.
          +   * * `freshness_rank`: freshness adjustment as a rank
          +   * * `document_age`: The time in hours elapsed since the document was last
          +   * updated, a floating-point number (e.g., 0.25 means 15 minutes).
          +   * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary
          +   * Google model to determine the keyword-based overlap between the query and
          +   * the document.
          +   * * `base_rank`: the default rank of the result
          +   * 
          + * + * string ranking_expression = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for rankingExpression. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRankingExpressionBytes() { + java.lang.Object ref = rankingExpression_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rankingExpression_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RANKING_EXPRESSION_BACKEND_FIELD_NUMBER = 53; + private int rankingExpressionBackend_ = 0; + + /** + * + * + *
          +   * Optional. The backend to use for the ranking expression evaluation.
          +   * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend ranking_expression_backend = 53 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for rankingExpressionBackend. + */ + @java.lang.Override + public int getRankingExpressionBackendValue() { + return rankingExpressionBackend_; + } + + /** + * + * + *
          +   * Optional. The backend to use for the ranking expression evaluation.
          +   * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend ranking_expression_backend = 53 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rankingExpressionBackend. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend + getRankingExpressionBackend() { + com.google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend result = + com.google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend.forNumber( + rankingExpressionBackend_); + return result == null + ? com.google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend.UNRECOGNIZED + : result; + } + public static final int SAFE_SEARCH_FIELD_NUMBER = 20; private boolean safeSearch_ = false; @@ -29241,6 +33128,86 @@ public java.lang.String getUserLabelsOrThrow(java.lang.String key) { return map.get(key); } + public static final int NATURAL_LANGUAGE_QUERY_UNDERSTANDING_SPEC_FIELD_NUMBER = 28; + private com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + naturalLanguageQueryUnderstandingSpec_; + + /** + * + * + *
          +   * Optional. Config for natural language query understanding capabilities,
          +   * such as extracting structured field filters from the query. Refer to [this
          +   * documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries)
          +   * for more information.
          +   * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
          +   * natural language query understanding will be done.
          +   * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the naturalLanguageQueryUnderstandingSpec field is set. + */ + @java.lang.Override + public boolean hasNaturalLanguageQueryUnderstandingSpec() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
          +   * Optional. Config for natural language query understanding capabilities,
          +   * such as extracting structured field filters from the query. Refer to [this
          +   * documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries)
          +   * for more information.
          +   * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
          +   * natural language query understanding will be done.
          +   * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The naturalLanguageQueryUnderstandingSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + getNaturalLanguageQueryUnderstandingSpec() { + return naturalLanguageQueryUnderstandingSpec_ == null + ? com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .getDefaultInstance() + : naturalLanguageQueryUnderstandingSpec_; + } + + /** + * + * + *
          +   * Optional. Config for natural language query understanding capabilities,
          +   * such as extracting structured field filters from the query. Refer to [this
          +   * documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries)
          +   * for more information.
          +   * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
          +   * natural language query understanding will be done.
          +   * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpecOrBuilder + getNaturalLanguageQueryUnderstandingSpecOrBuilder() { + return naturalLanguageQueryUnderstandingSpec_ == null + ? com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .getDefaultInstance() + : naturalLanguageQueryUnderstandingSpec_; + } + public static final int SEARCH_AS_YOU_TYPE_SPEC_FIELD_NUMBER = 31; private com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec searchAsYouTypeSpec_; @@ -29262,7 +33229,7 @@ public java.lang.String getUserLabelsOrThrow(java.lang.String key) { */ @java.lang.Override public boolean hasSearchAsYouTypeSpec() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -29328,7 +33295,7 @@ public boolean hasSearchAsYouTypeSpec() { */ @java.lang.Override public boolean hasDisplaySpec() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -29372,6 +33339,137 @@ public com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec getDisplayS : displaySpec_; } + public static final int CROWDING_SPECS_FIELD_NUMBER = 40; + + @SuppressWarnings("serial") + private java.util.List + crowdingSpecs_; + + /** + * + * + *
          +   * Optional. Crowding specifications for improving result diversity.
          +   * If multiple CrowdingSpecs are specified, crowding will be evaluated on
          +   * each unique combination of the `field` values, and max_count will be the
          +   * maximum value of `max_count` across all CrowdingSpecs.
          +   * For example, if the first CrowdingSpec has `field` = "color" and
          +   * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
          +   * `max_count` = 2, then after 3 documents that share the same color AND size
          +   * have been returned, subsequent ones should be
          +   * removed or demoted.
          +   * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCrowdingSpecsList() { + return crowdingSpecs_; + } + + /** + * + * + *
          +   * Optional. Crowding specifications for improving result diversity.
          +   * If multiple CrowdingSpecs are specified, crowding will be evaluated on
          +   * each unique combination of the `field` values, and max_count will be the
          +   * maximum value of `max_count` across all CrowdingSpecs.
          +   * For example, if the first CrowdingSpec has `field` = "color" and
          +   * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
          +   * `max_count` = 2, then after 3 documents that share the same color AND size
          +   * have been returned, subsequent ones should be
          +   * removed or demoted.
          +   * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpecOrBuilder> + getCrowdingSpecsOrBuilderList() { + return crowdingSpecs_; + } + + /** + * + * + *
          +   * Optional. Crowding specifications for improving result diversity.
          +   * If multiple CrowdingSpecs are specified, crowding will be evaluated on
          +   * each unique combination of the `field` values, and max_count will be the
          +   * maximum value of `max_count` across all CrowdingSpecs.
          +   * For example, if the first CrowdingSpec has `field` = "color" and
          +   * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
          +   * `max_count` = 2, then after 3 documents that share the same color AND size
          +   * have been returned, subsequent ones should be
          +   * removed or demoted.
          +   * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getCrowdingSpecsCount() { + return crowdingSpecs_.size(); + } + + /** + * + * + *
          +   * Optional. Crowding specifications for improving result diversity.
          +   * If multiple CrowdingSpecs are specified, crowding will be evaluated on
          +   * each unique combination of the `field` values, and max_count will be the
          +   * maximum value of `max_count` across all CrowdingSpecs.
          +   * For example, if the first CrowdingSpec has `field` = "color" and
          +   * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
          +   * `max_count` = 2, then after 3 documents that share the same color AND size
          +   * have been returned, subsequent ones should be
          +   * removed or demoted.
          +   * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec getCrowdingSpecs( + int index) { + return crowdingSpecs_.get(index); + } + + /** + * + * + *
          +   * Optional. Crowding specifications for improving result diversity.
          +   * If multiple CrowdingSpecs are specified, crowding will be evaluated on
          +   * each unique combination of the `field` values, and max_count will be the
          +   * maximum value of `max_count` across all CrowdingSpecs.
          +   * For example, if the first CrowdingSpec has `field` = "color" and
          +   * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
          +   * `max_count` = 2, then after 3 documents that share the same color AND size
          +   * have been returned, subsequent ones should be
          +   * removed or demoted.
          +   * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpecOrBuilder + getCrowdingSpecsOrBuilder(int index) { + return crowdingSpecs_.get(index); + } + public static final int SESSION_FIELD_NUMBER = 41; @SuppressWarnings("serial") @@ -29481,7 +33579,7 @@ public com.google.protobuf.ByteString getSessionBytes() { */ @java.lang.Override public boolean hasSessionSpec() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -29530,12 +33628,15 @@ public com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec getSessionS * * *
          -   * The relevance threshold of the search results.
          +   * The global relevance threshold of the search results.
              *
          -   * Default to Google defined threshold, leveraging a balance of
          +   * Defaults to Google defined threshold, leveraging a balance of
              * precision and recall to deliver both highly accurate results and
              * comprehensive coverage of relevant information.
              *
          +   * If more granular relevance filtering is required, use the
          +   * `relevance_filter_spec` instead.
          +   *
              * This feature is not supported for healthcare search.
              * 
          * @@ -29554,12 +33655,15 @@ public int getRelevanceThresholdValue() { * * *
          -   * The relevance threshold of the search results.
          +   * The global relevance threshold of the search results.
              *
          -   * Default to Google defined threshold, leveraging a balance of
          +   * Defaults to Google defined threshold, leveraging a balance of
              * precision and recall to deliver both highly accurate results and
              * comprehensive coverage of relevant information.
              *
          +   * If more granular relevance filtering is required, use the
          +   * `relevance_filter_spec` instead.
          +   *
              * This feature is not supported for healthcare search.
              * 
          * @@ -29598,7 +33702,7 @@ public int getRelevanceThresholdValue() { */ @java.lang.Override public boolean hasRelevanceScoreSpec() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -29641,282 +33745,6 @@ public boolean hasRelevanceScoreSpec() { : relevanceScoreSpec_; } - public static final int RANKING_EXPRESSION_FIELD_NUMBER = 26; - - @SuppressWarnings("serial") - private volatile java.lang.Object rankingExpression_ = ""; - - /** - * - * - *
          -   * The ranking expression controls the customized ranking on retrieval
          -   * documents. This overrides
          -   * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1.ServingConfig.ranking_expression].
          -   * The syntax and supported features depend on the
          -   * `ranking_expression_backend` value. If `ranking_expression_backend` is not
          -   * provided, it defaults to `RANK_BY_EMBEDDING`.
          -   *
          -   * If
          -   * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend]
          -   * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single
          -   * function or multiple functions that are joined by "+".
          -   *
          -   * * ranking_expression = function, { " + ", function };
          -   *
          -   * Supported functions:
          -   *
          -   * * double * relevance_score
          -   * * double * dotProduct(embedding_field_path)
          -   *
          -   * Function variables:
          -   *
          -   * * `relevance_score`: pre-defined keywords, used for measure relevance
          -   * between query and document.
          -   * * `embedding_field_path`: the document embedding field
          -   * used with query embedding vector.
          -   * * `dotProduct`: embedding function between `embedding_field_path` and
          -   * query embedding vector.
          -   *
          -   * Example ranking expression:
          -   *
          -   * If document has an embedding field doc_embedding, the ranking expression
          -   * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
          -   *
          -   * If
          -   * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend]
          -   * is set to `RANK_BY_FORMULA`, the following expression types (and
          -   * combinations of those chained using + or
          -   * * operators) are supported:
          -   *
          -   * * `double`
          -   * * `signal`
          -   * * `log(signal)`
          -   * * `exp(signal)`
          -   * * `rr(signal, double > 0)`  -- reciprocal rank transformation with second
          -   * argument being a denominator constant.
          -   * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise.
          -   * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns
          -   * signal2 | double, else returns signal1.
          -   *
          -   * Here are a few examples of ranking formulas that use the supported
          -   * ranking expression types:
          -   *
          -   * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)`
          -   * -- mostly rank by the logarithm of `keyword_similarity_score` with slight
          -   * `semantic_smilarity_score` adjustment.
          -   * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 *
          -   * is_nan(keyword_similarity_score)` -- rank by the exponent of
          -   * `semantic_similarity_score` filling the value with 0 if it's NaN, also
          -   * add constant 0.3 adjustment to the final score if
          -   * `semantic_similarity_score` is NaN.
          -   * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 *
          -   * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank
          -   * of `keyword_similarity_score` with slight adjustment of reciprocal rank
          -   * of `semantic_smilarity_score`.
          -   *
          -   * The following signals are supported:
          -   *
          -   * * `semantic_similarity_score`: semantic similarity adjustment that is
          -   * calculated using the embeddings generated by a proprietary Google model.
          -   * This score determines how semantically similar a search query is to a
          -   * document.
          -   * * `keyword_similarity_score`: keyword match adjustment uses the Best
          -   * Match 25 (BM25) ranking function. This score is calculated using a
          -   * probabilistic model to estimate the probability that a document is
          -   * relevant to a given query.
          -   * * `relevance_score`: semantic relevance adjustment that uses a
          -   * proprietary Google model to determine the meaning and intent behind a
          -   * user's query in context with the content in the documents.
          -   * * `pctr_rank`: predicted conversion rate adjustment as a rank use
          -   * predicted Click-through rate (pCTR) to gauge the relevance and
          -   * attractiveness of a search result from a user's perspective. A higher
          -   * pCTR suggests that the result is more likely to satisfy the user's query
          -   * and intent, making it a valuable signal for ranking.
          -   * * `freshness_rank`: freshness adjustment as a rank
          -   * * `document_age`: The time in hours elapsed since the document was last
          -   * updated, a floating-point number (e.g., 0.25 means 15 minutes).
          -   * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary
          -   * Google model to determine the keyword-based overlap between the query and
          -   * the document.
          -   * * `base_rank`: the default rank of the result
          -   * 
          - * - * string ranking_expression = 26; - * - * @return The rankingExpression. - */ - @java.lang.Override - public java.lang.String getRankingExpression() { - java.lang.Object ref = rankingExpression_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rankingExpression_ = s; - return s; - } - } - - /** - * - * - *
          -   * The ranking expression controls the customized ranking on retrieval
          -   * documents. This overrides
          -   * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1.ServingConfig.ranking_expression].
          -   * The syntax and supported features depend on the
          -   * `ranking_expression_backend` value. If `ranking_expression_backend` is not
          -   * provided, it defaults to `RANK_BY_EMBEDDING`.
          -   *
          -   * If
          -   * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend]
          -   * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single
          -   * function or multiple functions that are joined by "+".
          -   *
          -   * * ranking_expression = function, { " + ", function };
          -   *
          -   * Supported functions:
          -   *
          -   * * double * relevance_score
          -   * * double * dotProduct(embedding_field_path)
          -   *
          -   * Function variables:
          -   *
          -   * * `relevance_score`: pre-defined keywords, used for measure relevance
          -   * between query and document.
          -   * * `embedding_field_path`: the document embedding field
          -   * used with query embedding vector.
          -   * * `dotProduct`: embedding function between `embedding_field_path` and
          -   * query embedding vector.
          -   *
          -   * Example ranking expression:
          -   *
          -   * If document has an embedding field doc_embedding, the ranking expression
          -   * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
          -   *
          -   * If
          -   * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend]
          -   * is set to `RANK_BY_FORMULA`, the following expression types (and
          -   * combinations of those chained using + or
          -   * * operators) are supported:
          -   *
          -   * * `double`
          -   * * `signal`
          -   * * `log(signal)`
          -   * * `exp(signal)`
          -   * * `rr(signal, double > 0)`  -- reciprocal rank transformation with second
          -   * argument being a denominator constant.
          -   * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise.
          -   * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns
          -   * signal2 | double, else returns signal1.
          -   *
          -   * Here are a few examples of ranking formulas that use the supported
          -   * ranking expression types:
          -   *
          -   * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)`
          -   * -- mostly rank by the logarithm of `keyword_similarity_score` with slight
          -   * `semantic_smilarity_score` adjustment.
          -   * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 *
          -   * is_nan(keyword_similarity_score)` -- rank by the exponent of
          -   * `semantic_similarity_score` filling the value with 0 if it's NaN, also
          -   * add constant 0.3 adjustment to the final score if
          -   * `semantic_similarity_score` is NaN.
          -   * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 *
          -   * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank
          -   * of `keyword_similarity_score` with slight adjustment of reciprocal rank
          -   * of `semantic_smilarity_score`.
          -   *
          -   * The following signals are supported:
          -   *
          -   * * `semantic_similarity_score`: semantic similarity adjustment that is
          -   * calculated using the embeddings generated by a proprietary Google model.
          -   * This score determines how semantically similar a search query is to a
          -   * document.
          -   * * `keyword_similarity_score`: keyword match adjustment uses the Best
          -   * Match 25 (BM25) ranking function. This score is calculated using a
          -   * probabilistic model to estimate the probability that a document is
          -   * relevant to a given query.
          -   * * `relevance_score`: semantic relevance adjustment that uses a
          -   * proprietary Google model to determine the meaning and intent behind a
          -   * user's query in context with the content in the documents.
          -   * * `pctr_rank`: predicted conversion rate adjustment as a rank use
          -   * predicted Click-through rate (pCTR) to gauge the relevance and
          -   * attractiveness of a search result from a user's perspective. A higher
          -   * pCTR suggests that the result is more likely to satisfy the user's query
          -   * and intent, making it a valuable signal for ranking.
          -   * * `freshness_rank`: freshness adjustment as a rank
          -   * * `document_age`: The time in hours elapsed since the document was last
          -   * updated, a floating-point number (e.g., 0.25 means 15 minutes).
          -   * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary
          -   * Google model to determine the keyword-based overlap between the query and
          -   * the document.
          -   * * `base_rank`: the default rank of the result
          -   * 
          - * - * string ranking_expression = 26; - * - * @return The bytes for rankingExpression. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRankingExpressionBytes() { - java.lang.Object ref = rankingExpression_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - rankingExpression_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RANKING_EXPRESSION_BACKEND_FIELD_NUMBER = 53; - private int rankingExpressionBackend_ = 0; - - /** - * - * - *
          -   * The backend to use for the ranking expression evaluation.
          -   * 
          - * - * - * .google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend ranking_expression_backend = 53 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for rankingExpressionBackend. - */ - @java.lang.Override - public int getRankingExpressionBackendValue() { - return rankingExpressionBackend_; - } - - /** - * - * - *
          -   * The backend to use for the ranking expression evaluation.
          -   * 
          - * - * - * .google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend ranking_expression_backend = 53 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The rankingExpressionBackend. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend - getRankingExpressionBackend() { - com.google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend result = - com.google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend.forNumber( - rankingExpressionBackend_); - return result == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend.UNRECOGNIZED - : result; - } - private byte memoizedIsInitialized = -1; @java.lang.Override @@ -29989,10 +33817,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rankingExpression_)) { com.google.protobuf.GeneratedMessage.writeString(output, 26, rankingExpression_); } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(28, getNaturalLanguageQueryUnderstandingSpec()); + } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(canonicalFilter_)) { com.google.protobuf.GeneratedMessage.writeString(output, 29, canonicalFilter_); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(31, getSearchAsYouTypeSpec()); } for (int i = 0; i < dataStoreSpecs_.size(); i++) { @@ -30001,13 +33832,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessage.writeString(output, 35, languageCode_); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(38, getDisplaySpec()); } + for (int i = 0; i < crowdingSpecs_.size(); i++) { + output.writeMessage(40, crowdingSpecs_.get(i)); + } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(session_)) { com.google.protobuf.GeneratedMessage.writeString(output, 41, session_); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(42, getSessionSpec()); } if (relevanceThreshold_ @@ -30019,7 +33853,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (oneBoxPageSize_ != 0) { output.writeInt32(47, oneBoxPageSize_); } - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { output.writeMessage(52, getRelevanceScoreSpec()); } if (rankingExpressionBackend_ @@ -30028,6 +33862,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(53, rankingExpressionBackend_); } + for (int i = 0; i < pageCategories_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 63, pageCategories_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -30112,10 +33949,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rankingExpression_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(26, rankingExpression_); } + if (((bitField0_ & 0x00000040) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 28, getNaturalLanguageQueryUnderstandingSpec()); + } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(canonicalFilter_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(29, canonicalFilter_); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(31, getSearchAsYouTypeSpec()); } @@ -30125,13 +33967,16 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(35, languageCode_); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(38, getDisplaySpec()); } + for (int i = 0; i < crowdingSpecs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(40, crowdingSpecs_.get(i)); + } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(session_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(41, session_); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(42, getSessionSpec()); } if (relevanceThreshold_ @@ -30143,7 +33988,7 @@ public int getSerializedSize() { if (oneBoxPageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(47, oneBoxPageSize_); } - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(52, getRelevanceScoreSpec()); } if (rankingExpressionBackend_ @@ -30152,6 +33997,14 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(53, rankingExpressionBackend_); } + { + int dataSize = 0; + for (int i = 0; i < pageCategories_.size(); i++) { + dataSize += computeStringSizeNoTag(pageCategories_.getRaw(i)); + } + size += dataSize; + size += 2 * getPageCategoriesList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -30171,6 +34024,7 @@ public boolean equals(final java.lang.Object obj) { if (!getServingConfig().equals(other.getServingConfig())) return false; if (!getBranch().equals(other.getBranch())) return false; if (!getQuery().equals(other.getQuery())) return false; + if (!getPageCategoriesList().equals(other.getPageCategoriesList())) return false; if (hasImageQuery() != other.hasImageQuery()) return false; if (hasImageQuery()) { if (!getImageQuery().equals(other.getImageQuery())) return false; @@ -30207,8 +34061,16 @@ public boolean equals(final java.lang.Object obj) { if (hasContentSearchSpec()) { if (!getContentSearchSpec().equals(other.getContentSearchSpec())) return false; } + if (!getRankingExpression().equals(other.getRankingExpression())) return false; + if (rankingExpressionBackend_ != other.rankingExpressionBackend_) return false; if (getSafeSearch() != other.getSafeSearch()) return false; if (!internalGetUserLabels().equals(other.internalGetUserLabels())) return false; + if (hasNaturalLanguageQueryUnderstandingSpec() + != other.hasNaturalLanguageQueryUnderstandingSpec()) return false; + if (hasNaturalLanguageQueryUnderstandingSpec()) { + if (!getNaturalLanguageQueryUnderstandingSpec() + .equals(other.getNaturalLanguageQueryUnderstandingSpec())) return false; + } if (hasSearchAsYouTypeSpec() != other.hasSearchAsYouTypeSpec()) return false; if (hasSearchAsYouTypeSpec()) { if (!getSearchAsYouTypeSpec().equals(other.getSearchAsYouTypeSpec())) return false; @@ -30217,6 +34079,7 @@ public boolean equals(final java.lang.Object obj) { if (hasDisplaySpec()) { if (!getDisplaySpec().equals(other.getDisplaySpec())) return false; } + if (!getCrowdingSpecsList().equals(other.getCrowdingSpecsList())) return false; if (!getSession().equals(other.getSession())) return false; if (hasSessionSpec() != other.hasSessionSpec()) return false; if (hasSessionSpec()) { @@ -30227,8 +34090,6 @@ public boolean equals(final java.lang.Object obj) { if (hasRelevanceScoreSpec()) { if (!getRelevanceScoreSpec().equals(other.getRelevanceScoreSpec())) return false; } - if (!getRankingExpression().equals(other.getRankingExpression())) return false; - if (rankingExpressionBackend_ != other.rankingExpressionBackend_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -30246,6 +34107,10 @@ public int hashCode() { hash = (53 * hash) + getBranch().hashCode(); hash = (37 * hash) + QUERY_FIELD_NUMBER; hash = (53 * hash) + getQuery().hashCode(); + if (getPageCategoriesCount() > 0) { + hash = (37 * hash) + PAGE_CATEGORIES_FIELD_NUMBER; + hash = (53 * hash) + getPageCategoriesList().hashCode(); + } if (hasImageQuery()) { hash = (37 * hash) + IMAGE_QUERY_FIELD_NUMBER; hash = (53 * hash) + getImageQuery().hashCode(); @@ -30300,12 +34165,20 @@ public int hashCode() { hash = (37 * hash) + CONTENT_SEARCH_SPEC_FIELD_NUMBER; hash = (53 * hash) + getContentSearchSpec().hashCode(); } + hash = (37 * hash) + RANKING_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getRankingExpression().hashCode(); + hash = (37 * hash) + RANKING_EXPRESSION_BACKEND_FIELD_NUMBER; + hash = (53 * hash) + rankingExpressionBackend_; hash = (37 * hash) + SAFE_SEARCH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSafeSearch()); if (!internalGetUserLabels().getMap().isEmpty()) { hash = (37 * hash) + USER_LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetUserLabels().hashCode(); } + if (hasNaturalLanguageQueryUnderstandingSpec()) { + hash = (37 * hash) + NATURAL_LANGUAGE_QUERY_UNDERSTANDING_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getNaturalLanguageQueryUnderstandingSpec().hashCode(); + } if (hasSearchAsYouTypeSpec()) { hash = (37 * hash) + SEARCH_AS_YOU_TYPE_SPEC_FIELD_NUMBER; hash = (53 * hash) + getSearchAsYouTypeSpec().hashCode(); @@ -30314,6 +34187,10 @@ public int hashCode() { hash = (37 * hash) + DISPLAY_SPEC_FIELD_NUMBER; hash = (53 * hash) + getDisplaySpec().hashCode(); } + if (getCrowdingSpecsCount() > 0) { + hash = (37 * hash) + CROWDING_SPECS_FIELD_NUMBER; + hash = (53 * hash) + getCrowdingSpecsList().hashCode(); + } hash = (37 * hash) + SESSION_FIELD_NUMBER; hash = (53 * hash) + getSession().hashCode(); if (hasSessionSpec()) { @@ -30326,10 +34203,6 @@ public int hashCode() { hash = (37 * hash) + RELEVANCE_SCORE_SPEC_FIELD_NUMBER; hash = (53 * hash) + getRelevanceScoreSpec().hashCode(); } - hash = (37 * hash) + RANKING_EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getRankingExpression().hashCode(); - hash = (37 * hash) + RANKING_EXPRESSION_BACKEND_FIELD_NUMBER; - hash = (53 * hash) + rankingExpressionBackend_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -30507,8 +34380,10 @@ private void maybeForceBuilderInitialization() { internalGetQueryExpansionSpecFieldBuilder(); internalGetSpellCorrectionSpecFieldBuilder(); internalGetContentSearchSpecFieldBuilder(); + internalGetNaturalLanguageQueryUnderstandingSpecFieldBuilder(); internalGetSearchAsYouTypeSpecFieldBuilder(); internalGetDisplaySpecFieldBuilder(); + internalGetCrowdingSpecsFieldBuilder(); internalGetSessionSpecFieldBuilder(); internalGetRelevanceScoreSpecFieldBuilder(); } @@ -30518,9 +34393,11 @@ private void maybeForceBuilderInitialization() { public Builder clear() { super.clear(); bitField0_ = 0; + bitField1_ = 0; servingConfig_ = ""; branch_ = ""; query_ = ""; + pageCategories_ = com.google.protobuf.LazyStringArrayList.emptyList(); imageQuery_ = null; if (imageQueryBuilder_ != null) { imageQueryBuilder_.dispose(); @@ -30536,7 +34413,7 @@ public Builder clear() { dataStoreSpecs_ = null; dataStoreSpecsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); filter_ = ""; canonicalFilter_ = ""; orderBy_ = ""; @@ -30552,7 +34429,7 @@ public Builder clear() { facetSpecs_ = null; facetSpecsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); boostSpec_ = null; if (boostSpecBuilder_ != null) { boostSpecBuilder_.dispose(); @@ -30575,8 +34452,15 @@ public Builder clear() { contentSearchSpecBuilder_.dispose(); contentSearchSpecBuilder_ = null; } + rankingExpression_ = ""; + rankingExpressionBackend_ = 0; safeSearch_ = false; internalGetMutableUserLabels().clear(); + naturalLanguageQueryUnderstandingSpec_ = null; + if (naturalLanguageQueryUnderstandingSpecBuilder_ != null) { + naturalLanguageQueryUnderstandingSpecBuilder_.dispose(); + naturalLanguageQueryUnderstandingSpecBuilder_ = null; + } searchAsYouTypeSpec_ = null; if (searchAsYouTypeSpecBuilder_ != null) { searchAsYouTypeSpecBuilder_.dispose(); @@ -30587,6 +34471,13 @@ public Builder clear() { displaySpecBuilder_.dispose(); displaySpecBuilder_ = null; } + if (crowdingSpecsBuilder_ == null) { + crowdingSpecs_ = java.util.Collections.emptyList(); + } else { + crowdingSpecs_ = null; + crowdingSpecsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x20000000); session_ = ""; sessionSpec_ = null; if (sessionSpecBuilder_ != null) { @@ -30599,8 +34490,6 @@ public Builder clear() { relevanceScoreSpecBuilder_.dispose(); relevanceScoreSpecBuilder_ = null; } - rankingExpression_ = ""; - rankingExpressionBackend_ = 0; return this; } @@ -30632,6 +34521,9 @@ public com.google.cloud.discoveryengine.v1.SearchRequest buildPartial() { if (bitField0_ != 0) { buildPartial0(result); } + if (bitField1_ != 0) { + buildPartial1(result); + } onBuilt(); return result; } @@ -30639,23 +34531,32 @@ public com.google.cloud.discoveryengine.v1.SearchRequest buildPartial() { private void buildPartialRepeatedFields( com.google.cloud.discoveryengine.v1.SearchRequest result) { if (dataStoreSpecsBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { dataStoreSpecs_ = java.util.Collections.unmodifiableList(dataStoreSpecs_); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); } result.dataStoreSpecs_ = dataStoreSpecs_; } else { result.dataStoreSpecs_ = dataStoreSpecsBuilder_.build(); } if (facetSpecsBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { facetSpecs_ = java.util.Collections.unmodifiableList(facetSpecs_); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); } result.facetSpecs_ = facetSpecs_; } else { result.facetSpecs_ = facetSpecsBuilder_.build(); } + if (crowdingSpecsBuilder_ == null) { + if (((bitField0_ & 0x20000000) != 0)) { + crowdingSpecs_ = java.util.Collections.unmodifiableList(crowdingSpecs_); + bitField0_ = (bitField0_ & ~0x20000000); + } + result.crowdingSpecs_ = crowdingSpecs_; + } else { + result.crowdingSpecs_ = crowdingSpecsBuilder_.build(); + } } private void buildPartial0(com.google.cloud.discoveryengine.v1.SearchRequest result) { @@ -30669,112 +34570,129 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.SearchRequest res if (((from_bitField0_ & 0x00000004) != 0)) { result.query_ = query_; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { + pageCategories_.makeImmutable(); + result.pageCategories_ = pageCategories_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { result.imageQuery_ = imageQueryBuilder_ == null ? imageQuery_ : imageQueryBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.pageSize_ = pageSize_; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.pageToken_ = pageToken_; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.offset_ = offset_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.oneBoxPageSize_ = oneBoxPageSize_; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.filter_ = filter_; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.canonicalFilter_ = canonicalFilter_; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.orderBy_ = orderBy_; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.userInfo_ = userInfoBuilder_ == null ? userInfo_ : userInfoBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.languageCode_ = languageCode_; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.boostSpec_ = boostSpecBuilder_ == null ? boostSpec_ : boostSpecBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.params_ = internalGetParams().build(ParamsDefaultEntryHolder.defaultEntry); } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { result.queryExpansionSpec_ = queryExpansionSpecBuilder_ == null ? queryExpansionSpec_ : queryExpansionSpecBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00080000) != 0)) { result.spellCorrectionSpec_ = spellCorrectionSpecBuilder_ == null ? spellCorrectionSpec_ : spellCorrectionSpecBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00080000) != 0)) { + if (((from_bitField0_ & 0x00100000) != 0)) { result.userPseudoId_ = userPseudoId_; } - if (((from_bitField0_ & 0x00100000) != 0)) { + if (((from_bitField0_ & 0x00200000) != 0)) { result.contentSearchSpec_ = contentSearchSpecBuilder_ == null ? contentSearchSpec_ : contentSearchSpecBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00200000) != 0)) { + if (((from_bitField0_ & 0x00400000) != 0)) { + result.rankingExpression_ = rankingExpression_; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.rankingExpressionBackend_ = rankingExpressionBackend_; + } + if (((from_bitField0_ & 0x01000000) != 0)) { result.safeSearch_ = safeSearch_; } - if (((from_bitField0_ & 0x00400000) != 0)) { + if (((from_bitField0_ & 0x02000000) != 0)) { result.userLabels_ = internalGetUserLabels(); result.userLabels_.makeImmutable(); } - if (((from_bitField0_ & 0x00800000) != 0)) { + if (((from_bitField0_ & 0x04000000) != 0)) { + result.naturalLanguageQueryUnderstandingSpec_ = + naturalLanguageQueryUnderstandingSpecBuilder_ == null + ? naturalLanguageQueryUnderstandingSpec_ + : naturalLanguageQueryUnderstandingSpecBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x08000000) != 0)) { result.searchAsYouTypeSpec_ = searchAsYouTypeSpecBuilder_ == null ? searchAsYouTypeSpec_ : searchAsYouTypeSpecBuilder_.build(); - to_bitField0_ |= 0x00000040; + to_bitField0_ |= 0x00000080; } - if (((from_bitField0_ & 0x01000000) != 0)) { + if (((from_bitField0_ & 0x10000000) != 0)) { result.displaySpec_ = displaySpecBuilder_ == null ? displaySpec_ : displaySpecBuilder_.build(); - to_bitField0_ |= 0x00000080; + to_bitField0_ |= 0x00000100; } - if (((from_bitField0_ & 0x02000000) != 0)) { + if (((from_bitField0_ & 0x40000000) != 0)) { result.session_ = session_; } - if (((from_bitField0_ & 0x04000000) != 0)) { + if (((from_bitField0_ & 0x80000000) != 0)) { result.sessionSpec_ = sessionSpecBuilder_ == null ? sessionSpec_ : sessionSpecBuilder_.build(); - to_bitField0_ |= 0x00000100; + to_bitField0_ |= 0x00000200; } - if (((from_bitField0_ & 0x08000000) != 0)) { + result.bitField0_ |= to_bitField0_; + } + + private void buildPartial1(com.google.cloud.discoveryengine.v1.SearchRequest result) { + int from_bitField1_ = bitField1_; + if (((from_bitField1_ & 0x00000001) != 0)) { result.relevanceThreshold_ = relevanceThreshold_; } - if (((from_bitField0_ & 0x10000000) != 0)) { + int to_bitField0_ = 0; + if (((from_bitField1_ & 0x00000002) != 0)) { result.relevanceScoreSpec_ = relevanceScoreSpecBuilder_ == null ? relevanceScoreSpec_ : relevanceScoreSpecBuilder_.build(); - to_bitField0_ |= 0x00000200; - } - if (((from_bitField0_ & 0x20000000) != 0)) { - result.rankingExpression_ = rankingExpression_; - } - if (((from_bitField0_ & 0x40000000) != 0)) { - result.rankingExpressionBackend_ = rankingExpressionBackend_; + to_bitField0_ |= 0x00000400; } result.bitField0_ |= to_bitField0_; } @@ -30807,6 +34725,16 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchRequest other bitField0_ |= 0x00000004; onChanged(); } + if (!other.pageCategories_.isEmpty()) { + if (pageCategories_.isEmpty()) { + pageCategories_ = other.pageCategories_; + bitField0_ |= 0x00000008; + } else { + ensurePageCategoriesIsMutable(); + pageCategories_.addAll(other.pageCategories_); + } + onChanged(); + } if (other.hasImageQuery()) { mergeImageQuery(other.getImageQuery()); } @@ -30815,7 +34743,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchRequest other } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } if (other.getOffset() != 0) { @@ -30828,7 +34756,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchRequest other if (!other.dataStoreSpecs_.isEmpty()) { if (dataStoreSpecs_.isEmpty()) { dataStoreSpecs_ = other.dataStoreSpecs_; - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); } else { ensureDataStoreSpecsIsMutable(); dataStoreSpecs_.addAll(other.dataStoreSpecs_); @@ -30841,7 +34769,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchRequest other dataStoreSpecsBuilder_.dispose(); dataStoreSpecsBuilder_ = null; dataStoreSpecs_ = other.dataStoreSpecs_; - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); dataStoreSpecsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetDataStoreSpecsFieldBuilder() @@ -30853,17 +34781,17 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchRequest other } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } if (!other.getCanonicalFilter().isEmpty()) { canonicalFilter_ = other.canonicalFilter_; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } if (other.hasUserInfo()) { @@ -30871,14 +34799,14 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchRequest other } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } if (facetSpecsBuilder_ == null) { if (!other.facetSpecs_.isEmpty()) { if (facetSpecs_.isEmpty()) { facetSpecs_ = other.facetSpecs_; - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); } else { ensureFacetSpecsIsMutable(); facetSpecs_.addAll(other.facetSpecs_); @@ -30891,7 +34819,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchRequest other facetSpecsBuilder_.dispose(); facetSpecsBuilder_ = null; facetSpecs_ = other.facetSpecs_; - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); facetSpecsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetFacetSpecsFieldBuilder() @@ -30905,7 +34833,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchRequest other mergeBoostSpec(other.getBoostSpec()); } internalGetMutableParams().mergeFrom(other.internalGetParams()); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; if (other.hasQueryExpansionSpec()) { mergeQueryExpansionSpec(other.getQueryExpansionSpec()); } @@ -30914,26 +34842,65 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchRequest other } if (!other.getUserPseudoId().isEmpty()) { userPseudoId_ = other.userPseudoId_; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); } if (other.hasContentSearchSpec()) { mergeContentSearchSpec(other.getContentSearchSpec()); } + if (!other.getRankingExpression().isEmpty()) { + rankingExpression_ = other.rankingExpression_; + bitField0_ |= 0x00400000; + onChanged(); + } + if (other.rankingExpressionBackend_ != 0) { + setRankingExpressionBackendValue(other.getRankingExpressionBackendValue()); + } if (other.getSafeSearch() != false) { setSafeSearch(other.getSafeSearch()); } internalGetMutableUserLabels().mergeFrom(other.internalGetUserLabels()); - bitField0_ |= 0x00400000; + bitField0_ |= 0x02000000; + if (other.hasNaturalLanguageQueryUnderstandingSpec()) { + mergeNaturalLanguageQueryUnderstandingSpec( + other.getNaturalLanguageQueryUnderstandingSpec()); + } if (other.hasSearchAsYouTypeSpec()) { mergeSearchAsYouTypeSpec(other.getSearchAsYouTypeSpec()); } if (other.hasDisplaySpec()) { mergeDisplaySpec(other.getDisplaySpec()); } + if (crowdingSpecsBuilder_ == null) { + if (!other.crowdingSpecs_.isEmpty()) { + if (crowdingSpecs_.isEmpty()) { + crowdingSpecs_ = other.crowdingSpecs_; + bitField0_ = (bitField0_ & ~0x20000000); + } else { + ensureCrowdingSpecsIsMutable(); + crowdingSpecs_.addAll(other.crowdingSpecs_); + } + onChanged(); + } + } else { + if (!other.crowdingSpecs_.isEmpty()) { + if (crowdingSpecsBuilder_.isEmpty()) { + crowdingSpecsBuilder_.dispose(); + crowdingSpecsBuilder_ = null; + crowdingSpecs_ = other.crowdingSpecs_; + bitField0_ = (bitField0_ & ~0x20000000); + crowdingSpecsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCrowdingSpecsFieldBuilder() + : null; + } else { + crowdingSpecsBuilder_.addAllMessages(other.crowdingSpecs_); + } + } + } if (!other.getSession().isEmpty()) { session_ = other.session_; - bitField0_ |= 0x02000000; + bitField0_ |= 0x40000000; onChanged(); } if (other.hasSessionSpec()) { @@ -30945,14 +34912,6 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchRequest other if (other.hasRelevanceScoreSpec()) { mergeRelevanceScoreSpec(other.getRelevanceScoreSpec()); } - if (!other.getRankingExpression().isEmpty()) { - rankingExpression_ = other.rankingExpression_; - bitField0_ |= 0x20000000; - onChanged(); - } - if (other.rankingExpressionBackend_ != 0) { - setRankingExpressionBackendValue(other.getRankingExpressionBackendValue()); - } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -31000,31 +34959,31 @@ public Builder mergeFrom( case 32: { pageSize_ = input.readInt32(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 32 case 42: { pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 42 case 48: { offset_ = input.readInt32(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 48 case 58: { filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 58 case 66: { orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 66 case 74: @@ -31045,7 +35004,7 @@ public Builder mergeFrom( { input.readMessage( internalGetBoostSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 82 case 90: @@ -31057,47 +35016,47 @@ public Builder mergeFrom( internalGetMutableParams() .ensureBuilderMap() .put(params__.getKey(), params__.getValue()); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 90 case 106: { input.readMessage( internalGetQueryExpansionSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 106 case 114: { input.readMessage( internalGetSpellCorrectionSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 114 case 122: { userPseudoId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; break; } // case 122 case 154: { input.readMessage( internalGetImageQueryFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 154 case 160: { safeSearch_ = input.readBool(); - bitField0_ |= 0x00200000; + bitField0_ |= 0x01000000; break; } // case 160 case 170: { input.readMessage( internalGetUserInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 170 case 178: @@ -31109,33 +35068,41 @@ public Builder mergeFrom( internalGetMutableUserLabels() .getMutableMap() .put(userLabels__.getKey(), userLabels__.getValue()); - bitField0_ |= 0x00400000; + bitField0_ |= 0x02000000; break; } // case 178 case 194: { input.readMessage( internalGetContentSearchSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; break; } // case 194 case 210: { rankingExpression_ = input.readStringRequireUtf8(); - bitField0_ |= 0x20000000; + bitField0_ |= 0x00400000; break; } // case 210 + case 226: + { + input.readMessage( + internalGetNaturalLanguageQueryUnderstandingSpecFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x04000000; + break; + } // case 226 case 234: { canonicalFilter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 234 case 250: { input.readMessage( internalGetSearchAsYouTypeSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00800000; + bitField0_ |= 0x08000000; break; } // case 250 case 258: @@ -31155,54 +35122,75 @@ public Builder mergeFrom( case 282: { languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 282 case 306: { input.readMessage( internalGetDisplaySpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x01000000; + bitField0_ |= 0x10000000; break; } // case 306 + case 322: + { + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec m = + input.readMessage( + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.parser(), + extensionRegistry); + if (crowdingSpecsBuilder_ == null) { + ensureCrowdingSpecsIsMutable(); + crowdingSpecs_.add(m); + } else { + crowdingSpecsBuilder_.addMessage(m); + } + break; + } // case 322 case 330: { session_ = input.readStringRequireUtf8(); - bitField0_ |= 0x02000000; + bitField0_ |= 0x40000000; break; } // case 330 case 338: { input.readMessage( internalGetSessionSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x04000000; + bitField0_ |= 0x80000000; break; } // case 338 case 352: { relevanceThreshold_ = input.readEnum(); - bitField0_ |= 0x08000000; + bitField1_ |= 0x00000001; break; } // case 352 case 376: { oneBoxPageSize_ = input.readInt32(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 376 case 418: { input.readMessage( internalGetRelevanceScoreSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x10000000; + bitField1_ |= 0x00000002; break; } // case 418 case 424: { rankingExpressionBackend_ = input.readEnum(); - bitField0_ |= 0x40000000; + bitField0_ |= 0x00800000; break; } // case 424 + case 506: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePageCategoriesIsMutable(); + pageCategories_.add(s); + break; + } // case 506 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -31221,6 +35209,7 @@ public Builder mergeFrom( } private int bitField0_; + private int bitField1_; private java.lang.Object servingConfig_ = ""; @@ -31610,6 +35599,333 @@ public Builder setQueryBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringArrayList pageCategories_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePageCategoriesIsMutable() { + if (!pageCategories_.isModifiable()) { + pageCategories_ = new com.google.protobuf.LazyStringArrayList(pageCategories_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
          +     * Optional. The categories associated with a category page. Must be set for
          +     * category navigation queries to achieve good search quality. The format
          +     * should be the same as
          +     * [PageInfo.page_category][google.cloud.discoveryengine.v1.PageInfo.page_category].
          +     * This field is the equivalent of the query for browse (navigation) queries.
          +     * It's used by the browse model when the query is empty.
          +     *
          +     * If the field is empty, it will not be used by the browse model.
          +     * If the field contains more than one element, only the first element will
          +     * be used.
          +     *
          +     * To represent full path of a category, use '>' character to separate
          +     * different hierarchies. If '>' is part of the category name, replace it with
          +     * other character(s).
          +     * For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX >
          +     * 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
          +     * > Founders Edition`
          +     * 
          + * + * repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the pageCategories. + */ + public com.google.protobuf.ProtocolStringList getPageCategoriesList() { + pageCategories_.makeImmutable(); + return pageCategories_; + } + + /** + * + * + *
          +     * Optional. The categories associated with a category page. Must be set for
          +     * category navigation queries to achieve good search quality. The format
          +     * should be the same as
          +     * [PageInfo.page_category][google.cloud.discoveryengine.v1.PageInfo.page_category].
          +     * This field is the equivalent of the query for browse (navigation) queries.
          +     * It's used by the browse model when the query is empty.
          +     *
          +     * If the field is empty, it will not be used by the browse model.
          +     * If the field contains more than one element, only the first element will
          +     * be used.
          +     *
          +     * To represent full path of a category, use '>' character to separate
          +     * different hierarchies. If '>' is part of the category name, replace it with
          +     * other character(s).
          +     * For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX >
          +     * 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
          +     * > Founders Edition`
          +     * 
          + * + * repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of pageCategories. + */ + public int getPageCategoriesCount() { + return pageCategories_.size(); + } + + /** + * + * + *
          +     * Optional. The categories associated with a category page. Must be set for
          +     * category navigation queries to achieve good search quality. The format
          +     * should be the same as
          +     * [PageInfo.page_category][google.cloud.discoveryengine.v1.PageInfo.page_category].
          +     * This field is the equivalent of the query for browse (navigation) queries.
          +     * It's used by the browse model when the query is empty.
          +     *
          +     * If the field is empty, it will not be used by the browse model.
          +     * If the field contains more than one element, only the first element will
          +     * be used.
          +     *
          +     * To represent full path of a category, use '>' character to separate
          +     * different hierarchies. If '>' is part of the category name, replace it with
          +     * other character(s).
          +     * For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX >
          +     * 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
          +     * > Founders Edition`
          +     * 
          + * + * repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The pageCategories at the given index. + */ + public java.lang.String getPageCategories(int index) { + return pageCategories_.get(index); + } + + /** + * + * + *
          +     * Optional. The categories associated with a category page. Must be set for
          +     * category navigation queries to achieve good search quality. The format
          +     * should be the same as
          +     * [PageInfo.page_category][google.cloud.discoveryengine.v1.PageInfo.page_category].
          +     * This field is the equivalent of the query for browse (navigation) queries.
          +     * It's used by the browse model when the query is empty.
          +     *
          +     * If the field is empty, it will not be used by the browse model.
          +     * If the field contains more than one element, only the first element will
          +     * be used.
          +     *
          +     * To represent full path of a category, use '>' character to separate
          +     * different hierarchies. If '>' is part of the category name, replace it with
          +     * other character(s).
          +     * For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX >
          +     * 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
          +     * > Founders Edition`
          +     * 
          + * + * repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the pageCategories at the given index. + */ + public com.google.protobuf.ByteString getPageCategoriesBytes(int index) { + return pageCategories_.getByteString(index); + } + + /** + * + * + *
          +     * Optional. The categories associated with a category page. Must be set for
          +     * category navigation queries to achieve good search quality. The format
          +     * should be the same as
          +     * [PageInfo.page_category][google.cloud.discoveryengine.v1.PageInfo.page_category].
          +     * This field is the equivalent of the query for browse (navigation) queries.
          +     * It's used by the browse model when the query is empty.
          +     *
          +     * If the field is empty, it will not be used by the browse model.
          +     * If the field contains more than one element, only the first element will
          +     * be used.
          +     *
          +     * To represent full path of a category, use '>' character to separate
          +     * different hierarchies. If '>' is part of the category name, replace it with
          +     * other character(s).
          +     * For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX >
          +     * 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
          +     * > Founders Edition`
          +     * 
          + * + * repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The pageCategories to set. + * @return This builder for chaining. + */ + public Builder setPageCategories(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePageCategoriesIsMutable(); + pageCategories_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The categories associated with a category page. Must be set for
          +     * category navigation queries to achieve good search quality. The format
          +     * should be the same as
          +     * [PageInfo.page_category][google.cloud.discoveryengine.v1.PageInfo.page_category].
          +     * This field is the equivalent of the query for browse (navigation) queries.
          +     * It's used by the browse model when the query is empty.
          +     *
          +     * If the field is empty, it will not be used by the browse model.
          +     * If the field contains more than one element, only the first element will
          +     * be used.
          +     *
          +     * To represent full path of a category, use '>' character to separate
          +     * different hierarchies. If '>' is part of the category name, replace it with
          +     * other character(s).
          +     * For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX >
          +     * 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
          +     * > Founders Edition`
          +     * 
          + * + * repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageCategories to add. + * @return This builder for chaining. + */ + public Builder addPageCategories(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePageCategoriesIsMutable(); + pageCategories_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The categories associated with a category page. Must be set for
          +     * category navigation queries to achieve good search quality. The format
          +     * should be the same as
          +     * [PageInfo.page_category][google.cloud.discoveryengine.v1.PageInfo.page_category].
          +     * This field is the equivalent of the query for browse (navigation) queries.
          +     * It's used by the browse model when the query is empty.
          +     *
          +     * If the field is empty, it will not be used by the browse model.
          +     * If the field contains more than one element, only the first element will
          +     * be used.
          +     *
          +     * To represent full path of a category, use '>' character to separate
          +     * different hierarchies. If '>' is part of the category name, replace it with
          +     * other character(s).
          +     * For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX >
          +     * 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
          +     * > Founders Edition`
          +     * 
          + * + * repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The pageCategories to add. + * @return This builder for chaining. + */ + public Builder addAllPageCategories(java.lang.Iterable values) { + ensurePageCategoriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pageCategories_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The categories associated with a category page. Must be set for
          +     * category navigation queries to achieve good search quality. The format
          +     * should be the same as
          +     * [PageInfo.page_category][google.cloud.discoveryengine.v1.PageInfo.page_category].
          +     * This field is the equivalent of the query for browse (navigation) queries.
          +     * It's used by the browse model when the query is empty.
          +     *
          +     * If the field is empty, it will not be used by the browse model.
          +     * If the field contains more than one element, only the first element will
          +     * be used.
          +     *
          +     * To represent full path of a category, use '>' character to separate
          +     * different hierarchies. If '>' is part of the category name, replace it with
          +     * other character(s).
          +     * For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX >
          +     * 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
          +     * > Founders Edition`
          +     * 
          + * + * repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageCategories() { + pageCategories_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The categories associated with a category page. Must be set for
          +     * category navigation queries to achieve good search quality. The format
          +     * should be the same as
          +     * [PageInfo.page_category][google.cloud.discoveryengine.v1.PageInfo.page_category].
          +     * This field is the equivalent of the query for browse (navigation) queries.
          +     * It's used by the browse model when the query is empty.
          +     *
          +     * If the field is empty, it will not be used by the browse model.
          +     * If the field contains more than one element, only the first element will
          +     * be used.
          +     *
          +     * To represent full path of a category, use '>' character to separate
          +     * different hierarchies. If '>' is part of the category name, replace it with
          +     * other character(s).
          +     * For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX >
          +     * 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
          +     * > Founders Edition`
          +     * 
          + * + * repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the pageCategories to add. + * @return This builder for chaining. + */ + public Builder addPageCategoriesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePageCategoriesIsMutable(); + pageCategories_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + private com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery imageQuery_; private com.google.protobuf.SingleFieldBuilder< com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery, @@ -31629,7 +35945,7 @@ public Builder setQueryBytes(com.google.protobuf.ByteString value) { * @return Whether the imageQuery field is set. */ public boolean hasImageQuery() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -31672,7 +35988,7 @@ public Builder setImageQuery( } else { imageQueryBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -31693,7 +36009,7 @@ public Builder setImageQuery( } else { imageQueryBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -31710,7 +36026,7 @@ public Builder setImageQuery( public Builder mergeImageQuery( com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery value) { if (imageQueryBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000010) != 0) && imageQuery_ != null && imageQuery_ != com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery @@ -31723,7 +36039,7 @@ public Builder mergeImageQuery( imageQueryBuilder_.mergeFrom(value); } if (imageQuery_ != null) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } return this; @@ -31739,7 +36055,7 @@ public Builder mergeImageQuery( * .google.cloud.discoveryengine.v1.SearchRequest.ImageQuery image_query = 19; */ public Builder clearImageQuery() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); imageQuery_ = null; if (imageQueryBuilder_ != null) { imageQueryBuilder_.dispose(); @@ -31760,7 +36076,7 @@ public Builder clearImageQuery() { */ public com.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery.Builder getImageQueryBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return internalGetImageQueryFieldBuilder().getBuilder(); } @@ -31860,7 +36176,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -31885,7 +36201,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); pageSize_ = 0; onChanged(); return this; @@ -31977,7 +36293,7 @@ public Builder setPageToken(java.lang.String value) { throw new NullPointerException(); } pageToken_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -32002,7 +36318,7 @@ public Builder setPageToken(java.lang.String value) { */ public Builder clearPageToken() { pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -32032,7 +36348,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); pageToken_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -32051,6 +36367,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * unset. * * If this field is negative, an `INVALID_ARGUMENT` is returned. + * + * A large offset may be capped to a reasonable threshold. *
          * * int32 offset = 6; @@ -32074,6 +36392,8 @@ public int getOffset() { * unset. * * If this field is negative, an `INVALID_ARGUMENT` is returned. + * + * A large offset may be capped to a reasonable threshold. *
          * * int32 offset = 6; @@ -32084,7 +36404,7 @@ public int getOffset() { public Builder setOffset(int value) { offset_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -32101,6 +36421,8 @@ public Builder setOffset(int value) { * unset. * * If this field is negative, an `INVALID_ARGUMENT` is returned. + * + * A large offset may be capped to a reasonable threshold. *
          * * int32 offset = 6; @@ -32108,7 +36430,7 @@ public Builder setOffset(int value) { * @return This builder for chaining. */ public Builder clearOffset() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); offset_ = 0; onChanged(); return this; @@ -32151,7 +36473,7 @@ public int getOneBoxPageSize() { public Builder setOneBoxPageSize(int value) { oneBoxPageSize_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -32170,7 +36492,7 @@ public Builder setOneBoxPageSize(int value) { * @return This builder for chaining. */ public Builder clearOneBoxPageSize() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); oneBoxPageSize_ = 0; onChanged(); return this; @@ -32180,11 +36502,11 @@ public Builder clearOneBoxPageSize() { dataStoreSpecs_ = java.util.Collections.emptyList(); private void ensureDataStoreSpecsIsMutable() { - if (!((bitField0_ & 0x00000100) != 0)) { + if (!((bitField0_ & 0x00000200) != 0)) { dataStoreSpecs_ = new java.util.ArrayList< com.google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec>(dataStoreSpecs_); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; } } @@ -32507,7 +36829,7 @@ public Builder addAllDataStoreSpecs( public Builder clearDataStoreSpecs() { if (dataStoreSpecsBuilder_ == null) { dataStoreSpecs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { dataStoreSpecsBuilder_.clear(); @@ -32701,7 +37023,7 @@ public Builder removeDataStoreSpecs(int index) { com.google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpecOrBuilder>( dataStoreSpecs_, - ((bitField0_ & 0x00000100) != 0), + ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); dataStoreSpecs_ = null; @@ -32816,7 +37138,7 @@ public Builder setFilter(java.lang.String value) { throw new NullPointerException(); } filter_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -32848,7 +37170,7 @@ public Builder setFilter(java.lang.String value) { */ public Builder clearFilter() { filter_ = getDefaultInstance().getFilter(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -32885,7 +37207,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); filter_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -32988,7 +37310,7 @@ public Builder setCanonicalFilter(java.lang.String value) { throw new NullPointerException(); } canonicalFilter_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -33017,7 +37339,7 @@ public Builder setCanonicalFilter(java.lang.String value) { */ public Builder clearCanonicalFilter() { canonicalFilter_ = getDefaultInstance().getCanonicalFilter(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -33051,7 +37373,7 @@ public Builder setCanonicalFilterBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); canonicalFilter_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -33154,7 +37476,7 @@ public Builder setOrderBy(java.lang.String value) { throw new NullPointerException(); } orderBy_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -33183,7 +37505,7 @@ public Builder setOrderBy(java.lang.String value) { */ public Builder clearOrderBy() { orderBy_ = getDefaultInstance().getOrderBy(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } @@ -33217,7 +37539,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); orderBy_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -33244,7 +37566,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * @return Whether the userInfo field is set. */ public boolean hasUserInfo() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -33292,7 +37614,7 @@ public Builder setUserInfo(com.google.cloud.discoveryengine.v1.UserInfo value) { } else { userInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -33316,7 +37638,7 @@ public Builder setUserInfo( } else { userInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -33335,7 +37657,7 @@ public Builder setUserInfo( */ public Builder mergeUserInfo(com.google.cloud.discoveryengine.v1.UserInfo value) { if (userInfoBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) + if (((bitField0_ & 0x00002000) != 0) && userInfo_ != null && userInfo_ != com.google.cloud.discoveryengine.v1.UserInfo.getDefaultInstance()) { getUserInfoBuilder().mergeFrom(value); @@ -33346,7 +37668,7 @@ public Builder mergeUserInfo(com.google.cloud.discoveryengine.v1.UserInfo value) userInfoBuilder_.mergeFrom(value); } if (userInfo_ != null) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } return this; @@ -33365,7 +37687,7 @@ public Builder mergeUserInfo(com.google.cloud.discoveryengine.v1.UserInfo value) * .google.cloud.discoveryengine.v1.UserInfo user_info = 21; */ public Builder clearUserInfo() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); userInfo_ = null; if (userInfoBuilder_ != null) { userInfoBuilder_.dispose(); @@ -33388,7 +37710,7 @@ public Builder clearUserInfo() { * .google.cloud.discoveryengine.v1.UserInfo user_info = 21; */ public com.google.cloud.discoveryengine.v1.UserInfo.Builder getUserInfoBuilder() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return internalGetUserInfoFieldBuilder().getBuilder(); } @@ -33521,7 +37843,7 @@ public Builder setLanguageCode(java.lang.String value) { throw new NullPointerException(); } languageCode_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -33543,7 +37865,7 @@ public Builder setLanguageCode(java.lang.String value) { */ public Builder clearLanguageCode() { languageCode_ = getDefaultInstance().getLanguageCode(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } @@ -33570,7 +37892,7 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); languageCode_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -33579,11 +37901,11 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { facetSpecs_ = java.util.Collections.emptyList(); private void ensureFacetSpecsIsMutable() { - if (!((bitField0_ & 0x00004000) != 0)) { + if (!((bitField0_ & 0x00008000) != 0)) { facetSpecs_ = new java.util.ArrayList( facetSpecs_); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; } } @@ -33860,7 +38182,7 @@ public Builder addAllFacetSpecs( public Builder clearFacetSpecs() { if (facetSpecsBuilder_ == null) { facetSpecs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); } else { facetSpecsBuilder_.clear(); @@ -34025,7 +38347,7 @@ public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.Builder addFa com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec, com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.Builder, com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpecOrBuilder>( - facetSpecs_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); + facetSpecs_, ((bitField0_ & 0x00008000) != 0), getParentForChildren(), isClean()); facetSpecs_ = null; } return facetSpecsBuilder_; @@ -34052,7 +38374,7 @@ public com.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.Builder addFa * @return Whether the boostSpec field is set. */ public boolean hasBoostSpec() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -34098,7 +38420,7 @@ public Builder setBoostSpec(com.google.cloud.discoveryengine.v1.SearchRequest.Bo } else { boostSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -34121,7 +38443,7 @@ public Builder setBoostSpec( } else { boostSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -34140,7 +38462,7 @@ public Builder setBoostSpec( public Builder mergeBoostSpec( com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec value) { if (boostSpecBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) + if (((bitField0_ & 0x00010000) != 0) && boostSpec_ != null && boostSpec_ != com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec @@ -34153,7 +38475,7 @@ public Builder mergeBoostSpec( boostSpecBuilder_.mergeFrom(value); } if (boostSpec_ != null) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); } return this; @@ -34171,7 +38493,7 @@ public Builder mergeBoostSpec( * .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec boost_spec = 10; */ public Builder clearBoostSpec() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); boostSpec_ = null; if (boostSpecBuilder_ != null) { boostSpecBuilder_.dispose(); @@ -34194,7 +38516,7 @@ public Builder clearBoostSpec() { */ public com.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.Builder getBoostSpecBuilder() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return internalGetBoostSpecFieldBuilder().getBuilder(); } @@ -34298,7 +38620,7 @@ public com.google.protobuf.Value build(com.google.protobuf.ValueOrBuilder val) { if (params_ == null) { params_ = new com.google.protobuf.MapFieldBuilder<>(paramsConverter); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return params_; } @@ -34446,7 +38768,7 @@ public com.google.protobuf.Value getParamsOrThrow(java.lang.String key) { } public Builder clearParams() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); internalGetMutableParams().clear(); return this; } @@ -34485,7 +38807,7 @@ public Builder removeParams(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableParams() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; return internalGetMutableParams().ensureMessageMap(); } @@ -34520,7 +38842,7 @@ public Builder putParams(java.lang.String key, com.google.protobuf.Value value) throw new NullPointerException("map value"); } internalGetMutableParams().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; return this; } @@ -34554,7 +38876,7 @@ public Builder putAllParams(java.util.Map */ public Builder clearQueryExpansionSpec() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); queryExpansionSpec_ = null; if (queryExpansionSpecBuilder_ != null) { queryExpansionSpecBuilder_.dispose(); @@ -34771,7 +39093,7 @@ public Builder clearQueryExpansionSpec() { */ public com.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Builder getQueryExpansionSpecBuilder() { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return internalGetQueryExpansionSpecFieldBuilder().getBuilder(); } @@ -34852,7 +39174,7 @@ public Builder clearQueryExpansionSpec() { * @return Whether the spellCorrectionSpec field is set. */ public boolean hasSpellCorrectionSpec() { - return ((bitField0_ & 0x00040000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** @@ -34885,25 +39207,430 @@ public boolean hasSpellCorrectionSpec() { * * *
          -     * The spell correction specification that specifies the mode under
          -     * which spell correction takes effect.
          +     * The spell correction specification that specifies the mode under
          +     * which spell correction takes effect.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + * + */ + public Builder setSpellCorrectionSpec( + com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec value) { + if (spellCorrectionSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spellCorrectionSpec_ = value; + } else { + spellCorrectionSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
          +     * The spell correction specification that specifies the mode under
          +     * which spell correction takes effect.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + * + */ + public Builder setSpellCorrectionSpec( + com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Builder + builderForValue) { + if (spellCorrectionSpecBuilder_ == null) { + spellCorrectionSpec_ = builderForValue.build(); + } else { + spellCorrectionSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
          +     * The spell correction specification that specifies the mode under
          +     * which spell correction takes effect.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + * + */ + public Builder mergeSpellCorrectionSpec( + com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec value) { + if (spellCorrectionSpecBuilder_ == null) { + if (((bitField0_ & 0x00080000) != 0) + && spellCorrectionSpec_ != null + && spellCorrectionSpec_ + != com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec + .getDefaultInstance()) { + getSpellCorrectionSpecBuilder().mergeFrom(value); + } else { + spellCorrectionSpec_ = value; + } + } else { + spellCorrectionSpecBuilder_.mergeFrom(value); + } + if (spellCorrectionSpec_ != null) { + bitField0_ |= 0x00080000; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * The spell correction specification that specifies the mode under
          +     * which spell correction takes effect.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + * + */ + public Builder clearSpellCorrectionSpec() { + bitField0_ = (bitField0_ & ~0x00080000); + spellCorrectionSpec_ = null; + if (spellCorrectionSpecBuilder_ != null) { + spellCorrectionSpecBuilder_.dispose(); + spellCorrectionSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * The spell correction specification that specifies the mode under
          +     * which spell correction takes effect.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + * + */ + public com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Builder + getSpellCorrectionSpecBuilder() { + bitField0_ |= 0x00080000; + onChanged(); + return internalGetSpellCorrectionSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * The spell correction specification that specifies the mode under
          +     * which spell correction takes effect.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + * + */ + public com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpecOrBuilder + getSpellCorrectionSpecOrBuilder() { + if (spellCorrectionSpecBuilder_ != null) { + return spellCorrectionSpecBuilder_.getMessageOrBuilder(); + } else { + return spellCorrectionSpec_ == null + ? com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec + .getDefaultInstance() + : spellCorrectionSpec_; + } + } + + /** + * + * + *
          +     * The spell correction specification that specifies the mode under
          +     * which spell correction takes effect.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec, + com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Builder, + com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpecOrBuilder> + internalGetSpellCorrectionSpecFieldBuilder() { + if (spellCorrectionSpecBuilder_ == null) { + spellCorrectionSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec, + com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Builder, + com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpecOrBuilder>( + getSpellCorrectionSpec(), getParentForChildren(), isClean()); + spellCorrectionSpec_ = null; + } + return spellCorrectionSpecBuilder_; + } + + private java.lang.Object userPseudoId_ = ""; + + /** + * + * + *
          +     * Optional. A unique identifier for tracking visitors. For example, this
          +     * could be implemented with an HTTP cookie, which should be able to uniquely
          +     * identify a visitor on a single device. This unique identifier should not
          +     * change if the visitor logs in or out of the website.
          +     *
          +     * This field should NOT have a fixed value such as `unknown_visitor`.
          +     *
          +     * This should be the same identifier as
          +     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id]
          +     * and
          +     * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1.CompleteQueryRequest.user_pseudo_id]
          +     *
          +     * The field must be a UTF-8 encoded string with a length limit of 128
          +     * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
          +     * 
          + * + * string user_pseudo_id = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The userPseudoId. + */ + public java.lang.String getUserPseudoId() { + java.lang.Object ref = userPseudoId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userPseudoId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. A unique identifier for tracking visitors. For example, this
          +     * could be implemented with an HTTP cookie, which should be able to uniquely
          +     * identify a visitor on a single device. This unique identifier should not
          +     * change if the visitor logs in or out of the website.
          +     *
          +     * This field should NOT have a fixed value such as `unknown_visitor`.
          +     *
          +     * This should be the same identifier as
          +     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id]
          +     * and
          +     * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1.CompleteQueryRequest.user_pseudo_id]
          +     *
          +     * The field must be a UTF-8 encoded string with a length limit of 128
          +     * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
          +     * 
          + * + * string user_pseudo_id = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for userPseudoId. + */ + public com.google.protobuf.ByteString getUserPseudoIdBytes() { + java.lang.Object ref = userPseudoId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userPseudoId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. A unique identifier for tracking visitors. For example, this
          +     * could be implemented with an HTTP cookie, which should be able to uniquely
          +     * identify a visitor on a single device. This unique identifier should not
          +     * change if the visitor logs in or out of the website.
          +     *
          +     * This field should NOT have a fixed value such as `unknown_visitor`.
          +     *
          +     * This should be the same identifier as
          +     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id]
          +     * and
          +     * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1.CompleteQueryRequest.user_pseudo_id]
          +     *
          +     * The field must be a UTF-8 encoded string with a length limit of 128
          +     * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
          +     * 
          + * + * string user_pseudo_id = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The userPseudoId to set. + * @return This builder for chaining. + */ + public Builder setUserPseudoId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + userPseudoId_ = value; + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. A unique identifier for tracking visitors. For example, this
          +     * could be implemented with an HTTP cookie, which should be able to uniquely
          +     * identify a visitor on a single device. This unique identifier should not
          +     * change if the visitor logs in or out of the website.
          +     *
          +     * This field should NOT have a fixed value such as `unknown_visitor`.
          +     *
          +     * This should be the same identifier as
          +     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id]
          +     * and
          +     * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1.CompleteQueryRequest.user_pseudo_id]
          +     *
          +     * The field must be a UTF-8 encoded string with a length limit of 128
          +     * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
          +     * 
          + * + * string user_pseudo_id = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUserPseudoId() { + userPseudoId_ = getDefaultInstance().getUserPseudoId(); + bitField0_ = (bitField0_ & ~0x00100000); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. A unique identifier for tracking visitors. For example, this
          +     * could be implemented with an HTTP cookie, which should be able to uniquely
          +     * identify a visitor on a single device. This unique identifier should not
          +     * change if the visitor logs in or out of the website.
          +     *
          +     * This field should NOT have a fixed value such as `unknown_visitor`.
          +     *
          +     * This should be the same identifier as
          +     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id]
          +     * and
          +     * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1.CompleteQueryRequest.user_pseudo_id]
          +     *
          +     * The field must be a UTF-8 encoded string with a length limit of 128
          +     * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
          +     * 
          + * + * string user_pseudo_id = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for userPseudoId to set. + * @return This builder for chaining. + */ + public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userPseudoId_ = value; + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec contentSearchSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec, + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.Builder, + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpecOrBuilder> + contentSearchSpecBuilder_; + + /** + * + * + *
          +     * A specification for configuring the behavior of content search.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; + * + * + * @return Whether the contentSearchSpec field is set. + */ + public boolean hasContentSearchSpec() { + return ((bitField0_ & 0x00200000) != 0); + } + + /** + * + * + *
          +     * A specification for configuring the behavior of content search.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; + * + * + * @return The contentSearchSpec. + */ + public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec + getContentSearchSpec() { + if (contentSearchSpecBuilder_ == null) { + return contentSearchSpec_ == null + ? com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec + .getDefaultInstance() + : contentSearchSpec_; + } else { + return contentSearchSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * A specification for configuring the behavior of content search.
                * 
          * * - * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; * */ - public Builder setSpellCorrectionSpec( - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec value) { - if (spellCorrectionSpecBuilder_ == null) { + public Builder setContentSearchSpec( + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec value) { + if (contentSearchSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - spellCorrectionSpec_ = value; + contentSearchSpec_ = value; } else { - spellCorrectionSpecBuilder_.setMessage(value); + contentSearchSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -34912,23 +39639,22 @@ public Builder setSpellCorrectionSpec( * * *
          -     * The spell correction specification that specifies the mode under
          -     * which spell correction takes effect.
          +     * A specification for configuring the behavior of content search.
                * 
          * * - * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; * */ - public Builder setSpellCorrectionSpec( - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Builder + public Builder setContentSearchSpec( + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.Builder builderForValue) { - if (spellCorrectionSpecBuilder_ == null) { - spellCorrectionSpec_ = builderForValue.build(); + if (contentSearchSpecBuilder_ == null) { + contentSearchSpec_ = builderForValue.build(); } else { - spellCorrectionSpecBuilder_.setMessage(builderForValue.build()); + contentSearchSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -34937,31 +39663,30 @@ public Builder setSpellCorrectionSpec( * * *
          -     * The spell correction specification that specifies the mode under
          -     * which spell correction takes effect.
          +     * A specification for configuring the behavior of content search.
                * 
          * * - * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; * */ - public Builder mergeSpellCorrectionSpec( - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec value) { - if (spellCorrectionSpecBuilder_ == null) { - if (((bitField0_ & 0x00040000) != 0) - && spellCorrectionSpec_ != null - && spellCorrectionSpec_ - != com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec + public Builder mergeContentSearchSpec( + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec value) { + if (contentSearchSpecBuilder_ == null) { + if (((bitField0_ & 0x00200000) != 0) + && contentSearchSpec_ != null + && contentSearchSpec_ + != com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec .getDefaultInstance()) { - getSpellCorrectionSpecBuilder().mergeFrom(value); + getContentSearchSpecBuilder().mergeFrom(value); } else { - spellCorrectionSpec_ = value; + contentSearchSpec_ = value; } } else { - spellCorrectionSpecBuilder_.mergeFrom(value); + contentSearchSpecBuilder_.mergeFrom(value); } - if (spellCorrectionSpec_ != null) { - bitField0_ |= 0x00040000; + if (contentSearchSpec_ != null) { + bitField0_ |= 0x00200000; onChanged(); } return this; @@ -34971,20 +39696,19 @@ public Builder mergeSpellCorrectionSpec( * * *
          -     * The spell correction specification that specifies the mode under
          -     * which spell correction takes effect.
          +     * A specification for configuring the behavior of content search.
                * 
          * * - * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; * */ - public Builder clearSpellCorrectionSpec() { - bitField0_ = (bitField0_ & ~0x00040000); - spellCorrectionSpec_ = null; - if (spellCorrectionSpecBuilder_ != null) { - spellCorrectionSpecBuilder_.dispose(); - spellCorrectionSpecBuilder_ = null; + public Builder clearContentSearchSpec() { + bitField0_ = (bitField0_ & ~0x00200000); + contentSearchSpec_ = null; + if (contentSearchSpecBuilder_ != null) { + contentSearchSpecBuilder_.dispose(); + contentSearchSpecBuilder_ = null; } onChanged(); return this; @@ -34994,42 +39718,40 @@ public Builder clearSpellCorrectionSpec() { * * *
          -     * The spell correction specification that specifies the mode under
          -     * which spell correction takes effect.
          +     * A specification for configuring the behavior of content search.
                * 
          * * - * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; * */ - public com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Builder - getSpellCorrectionSpecBuilder() { - bitField0_ |= 0x00040000; + public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.Builder + getContentSearchSpecBuilder() { + bitField0_ |= 0x00200000; onChanged(); - return internalGetSpellCorrectionSpecFieldBuilder().getBuilder(); + return internalGetContentSearchSpecFieldBuilder().getBuilder(); } /** * * *
          -     * The spell correction specification that specifies the mode under
          -     * which spell correction takes effect.
          +     * A specification for configuring the behavior of content search.
                * 
          * * - * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; * */ - public com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpecOrBuilder - getSpellCorrectionSpecOrBuilder() { - if (spellCorrectionSpecBuilder_ != null) { - return spellCorrectionSpecBuilder_.getMessageOrBuilder(); + public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpecOrBuilder + getContentSearchSpecOrBuilder() { + if (contentSearchSpecBuilder_ != null) { + return contentSearchSpecBuilder_.getMessageOrBuilder(); } else { - return spellCorrectionSpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec + return contentSearchSpec_ == null + ? com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec .getDefaultInstance() - : spellCorrectionSpec_; + : contentSearchSpec_; } } @@ -35037,63 +39759,138 @@ public Builder clearSpellCorrectionSpec() { * * *
          -     * The spell correction specification that specifies the mode under
          -     * which spell correction takes effect.
          +     * A specification for configuring the behavior of content search.
                * 
          * * - * .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec, - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpecOrBuilder> - internalGetSpellCorrectionSpecFieldBuilder() { - if (spellCorrectionSpecBuilder_ == null) { - spellCorrectionSpecBuilder_ = + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec, + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.Builder, + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpecOrBuilder> + internalGetContentSearchSpecFieldBuilder() { + if (contentSearchSpecBuilder_ == null) { + contentSearchSpecBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec, - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpecOrBuilder>( - getSpellCorrectionSpec(), getParentForChildren(), isClean()); - spellCorrectionSpec_ = null; + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec, + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.Builder, + com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpecOrBuilder>( + getContentSearchSpec(), getParentForChildren(), isClean()); + contentSearchSpec_ = null; } - return spellCorrectionSpecBuilder_; + return contentSearchSpecBuilder_; } - private java.lang.Object userPseudoId_ = ""; + private java.lang.Object rankingExpression_ = ""; /** * * *
          -     * A unique identifier for tracking visitors. For example, this could be
          -     * implemented with an HTTP cookie, which should be able to uniquely identify
          -     * a visitor on a single device. This unique identifier should not change if
          -     * the visitor logs in or out of the website.
          +     * Optional. The ranking expression controls the customized ranking on
          +     * retrieval documents. This overrides
          +     * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1.ServingConfig.ranking_expression].
          +     * The syntax and supported features depend on the
          +     * `ranking_expression_backend` value. If `ranking_expression_backend` is not
          +     * provided, it defaults to `RANK_BY_EMBEDDING`.
                *
          -     * This field should NOT have a fixed value such as `unknown_visitor`.
          +     * If
          +     * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend]
          +     * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single
          +     * function or multiple functions that are joined by "+".
                *
          -     * This should be the same identifier as
          -     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id]
          -     * and
          -     * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1.CompleteQueryRequest.user_pseudo_id]
          +     * * ranking_expression = function, { " + ", function };
                *
          -     * The field must be a UTF-8 encoded string with a length limit of 128
          -     * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
          +     * Supported functions:
          +     *
          +     * * double * relevance_score
          +     * * double * dotProduct(embedding_field_path)
          +     *
          +     * Function variables:
          +     *
          +     * * `relevance_score`: pre-defined keywords, used for measure relevance
          +     * between query and document.
          +     * * `embedding_field_path`: the document embedding field
          +     * used with query embedding vector.
          +     * * `dotProduct`: embedding function between `embedding_field_path` and
          +     * query embedding vector.
          +     *
          +     * Example ranking expression:
          +     *
          +     * If document has an embedding field doc_embedding, the ranking expression
          +     * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
          +     *
          +     * If
          +     * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend]
          +     * is set to `RANK_BY_FORMULA`, the following expression types (and
          +     * combinations of those chained using + or
          +     * * operators) are supported:
          +     *
          +     * * `double`
          +     * * `signal`
          +     * * `log(signal)`
          +     * * `exp(signal)`
          +     * * `rr(signal, double > 0)`  -- reciprocal rank transformation with second
          +     * argument being a denominator constant.
          +     * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise.
          +     * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns
          +     * signal2 | double, else returns signal1.
          +     *
          +     * Here are a few examples of ranking formulas that use the supported
          +     * ranking expression types:
          +     *
          +     * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)`
          +     * -- mostly rank by the logarithm of `keyword_similarity_score` with slight
          +     * `semantic_smilarity_score` adjustment.
          +     * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 *
          +     * is_nan(keyword_similarity_score)` -- rank by the exponent of
          +     * `semantic_similarity_score` filling the value with 0 if it's NaN, also
          +     * add constant 0.3 adjustment to the final score if
          +     * `semantic_similarity_score` is NaN.
          +     * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 *
          +     * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank
          +     * of `keyword_similarity_score` with slight adjustment of reciprocal rank
          +     * of `semantic_smilarity_score`.
          +     *
          +     * The following signals are supported:
          +     *
          +     * * `semantic_similarity_score`: semantic similarity adjustment that is
          +     * calculated using the embeddings generated by a proprietary Google model.
          +     * This score determines how semantically similar a search query is to a
          +     * document.
          +     * * `keyword_similarity_score`: keyword match adjustment uses the Best
          +     * Match 25 (BM25) ranking function. This score is calculated using a
          +     * probabilistic model to estimate the probability that a document is
          +     * relevant to a given query.
          +     * * `relevance_score`: semantic relevance adjustment that uses a
          +     * proprietary Google model to determine the meaning and intent behind a
          +     * user's query in context with the content in the documents.
          +     * * `pctr_rank`: predicted conversion rate adjustment as a rank use
          +     * predicted Click-through rate (pCTR) to gauge the relevance and
          +     * attractiveness of a search result from a user's perspective. A higher
          +     * pCTR suggests that the result is more likely to satisfy the user's query
          +     * and intent, making it a valuable signal for ranking.
          +     * * `freshness_rank`: freshness adjustment as a rank
          +     * * `document_age`: The time in hours elapsed since the document was last
          +     * updated, a floating-point number (e.g., 0.25 means 15 minutes).
          +     * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary
          +     * Google model to determine the keyword-based overlap between the query and
          +     * the document.
          +     * * `base_rank`: the default rank of the result
                * 
          * - * string user_pseudo_id = 15; + * string ranking_expression = 26 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The userPseudoId. + * @return The rankingExpression. */ - public java.lang.String getUserPseudoId() { - java.lang.Object ref = userPseudoId_; + public java.lang.String getRankingExpression() { + java.lang.Object ref = rankingExpression_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - userPseudoId_ = s; + rankingExpression_ = s; return s; } else { return (java.lang.String) ref; @@ -35104,32 +39901,108 @@ public java.lang.String getUserPseudoId() { * * *
          -     * A unique identifier for tracking visitors. For example, this could be
          -     * implemented with an HTTP cookie, which should be able to uniquely identify
          -     * a visitor on a single device. This unique identifier should not change if
          -     * the visitor logs in or out of the website.
          +     * Optional. The ranking expression controls the customized ranking on
          +     * retrieval documents. This overrides
          +     * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1.ServingConfig.ranking_expression].
          +     * The syntax and supported features depend on the
          +     * `ranking_expression_backend` value. If `ranking_expression_backend` is not
          +     * provided, it defaults to `RANK_BY_EMBEDDING`.
                *
          -     * This field should NOT have a fixed value such as `unknown_visitor`.
          +     * If
          +     * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend]
          +     * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single
          +     * function or multiple functions that are joined by "+".
                *
          -     * This should be the same identifier as
          -     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id]
          -     * and
          -     * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1.CompleteQueryRequest.user_pseudo_id]
          +     * * ranking_expression = function, { " + ", function };
                *
          -     * The field must be a UTF-8 encoded string with a length limit of 128
          -     * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
          +     * Supported functions:
          +     *
          +     * * double * relevance_score
          +     * * double * dotProduct(embedding_field_path)
          +     *
          +     * Function variables:
          +     *
          +     * * `relevance_score`: pre-defined keywords, used for measure relevance
          +     * between query and document.
          +     * * `embedding_field_path`: the document embedding field
          +     * used with query embedding vector.
          +     * * `dotProduct`: embedding function between `embedding_field_path` and
          +     * query embedding vector.
          +     *
          +     * Example ranking expression:
          +     *
          +     * If document has an embedding field doc_embedding, the ranking expression
          +     * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
          +     *
          +     * If
          +     * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend]
          +     * is set to `RANK_BY_FORMULA`, the following expression types (and
          +     * combinations of those chained using + or
          +     * * operators) are supported:
          +     *
          +     * * `double`
          +     * * `signal`
          +     * * `log(signal)`
          +     * * `exp(signal)`
          +     * * `rr(signal, double > 0)`  -- reciprocal rank transformation with second
          +     * argument being a denominator constant.
          +     * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise.
          +     * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns
          +     * signal2 | double, else returns signal1.
          +     *
          +     * Here are a few examples of ranking formulas that use the supported
          +     * ranking expression types:
          +     *
          +     * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)`
          +     * -- mostly rank by the logarithm of `keyword_similarity_score` with slight
          +     * `semantic_smilarity_score` adjustment.
          +     * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 *
          +     * is_nan(keyword_similarity_score)` -- rank by the exponent of
          +     * `semantic_similarity_score` filling the value with 0 if it's NaN, also
          +     * add constant 0.3 adjustment to the final score if
          +     * `semantic_similarity_score` is NaN.
          +     * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 *
          +     * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank
          +     * of `keyword_similarity_score` with slight adjustment of reciprocal rank
          +     * of `semantic_smilarity_score`.
          +     *
          +     * The following signals are supported:
          +     *
          +     * * `semantic_similarity_score`: semantic similarity adjustment that is
          +     * calculated using the embeddings generated by a proprietary Google model.
          +     * This score determines how semantically similar a search query is to a
          +     * document.
          +     * * `keyword_similarity_score`: keyword match adjustment uses the Best
          +     * Match 25 (BM25) ranking function. This score is calculated using a
          +     * probabilistic model to estimate the probability that a document is
          +     * relevant to a given query.
          +     * * `relevance_score`: semantic relevance adjustment that uses a
          +     * proprietary Google model to determine the meaning and intent behind a
          +     * user's query in context with the content in the documents.
          +     * * `pctr_rank`: predicted conversion rate adjustment as a rank use
          +     * predicted Click-through rate (pCTR) to gauge the relevance and
          +     * attractiveness of a search result from a user's perspective. A higher
          +     * pCTR suggests that the result is more likely to satisfy the user's query
          +     * and intent, making it a valuable signal for ranking.
          +     * * `freshness_rank`: freshness adjustment as a rank
          +     * * `document_age`: The time in hours elapsed since the document was last
          +     * updated, a floating-point number (e.g., 0.25 means 15 minutes).
          +     * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary
          +     * Google model to determine the keyword-based overlap between the query and
          +     * the document.
          +     * * `base_rank`: the default rank of the result
                * 
          * - * string user_pseudo_id = 15; + * string ranking_expression = 26 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for userPseudoId. + * @return The bytes for rankingExpression. */ - public com.google.protobuf.ByteString getUserPseudoIdBytes() { - java.lang.Object ref = userPseudoId_; + public com.google.protobuf.ByteString getRankingExpressionBytes() { + java.lang.Object ref = rankingExpression_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - userPseudoId_ = b; + rankingExpression_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -35140,33 +40013,216 @@ public com.google.protobuf.ByteString getUserPseudoIdBytes() { * * *
          -     * A unique identifier for tracking visitors. For example, this could be
          -     * implemented with an HTTP cookie, which should be able to uniquely identify
          -     * a visitor on a single device. This unique identifier should not change if
          -     * the visitor logs in or out of the website.
          +     * Optional. The ranking expression controls the customized ranking on
          +     * retrieval documents. This overrides
          +     * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1.ServingConfig.ranking_expression].
          +     * The syntax and supported features depend on the
          +     * `ranking_expression_backend` value. If `ranking_expression_backend` is not
          +     * provided, it defaults to `RANK_BY_EMBEDDING`.
                *
          -     * This field should NOT have a fixed value such as `unknown_visitor`.
          +     * If
          +     * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend]
          +     * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single
          +     * function or multiple functions that are joined by "+".
          +     *
          +     * * ranking_expression = function, { " + ", function };
          +     *
          +     * Supported functions:
          +     *
          +     * * double * relevance_score
          +     * * double * dotProduct(embedding_field_path)
          +     *
          +     * Function variables:
          +     *
          +     * * `relevance_score`: pre-defined keywords, used for measure relevance
          +     * between query and document.
          +     * * `embedding_field_path`: the document embedding field
          +     * used with query embedding vector.
          +     * * `dotProduct`: embedding function between `embedding_field_path` and
          +     * query embedding vector.
          +     *
          +     * Example ranking expression:
          +     *
          +     * If document has an embedding field doc_embedding, the ranking expression
          +     * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
          +     *
          +     * If
          +     * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend]
          +     * is set to `RANK_BY_FORMULA`, the following expression types (and
          +     * combinations of those chained using + or
          +     * * operators) are supported:
          +     *
          +     * * `double`
          +     * * `signal`
          +     * * `log(signal)`
          +     * * `exp(signal)`
          +     * * `rr(signal, double > 0)`  -- reciprocal rank transformation with second
          +     * argument being a denominator constant.
          +     * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise.
          +     * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns
          +     * signal2 | double, else returns signal1.
          +     *
          +     * Here are a few examples of ranking formulas that use the supported
          +     * ranking expression types:
          +     *
          +     * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)`
          +     * -- mostly rank by the logarithm of `keyword_similarity_score` with slight
          +     * `semantic_smilarity_score` adjustment.
          +     * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 *
          +     * is_nan(keyword_similarity_score)` -- rank by the exponent of
          +     * `semantic_similarity_score` filling the value with 0 if it's NaN, also
          +     * add constant 0.3 adjustment to the final score if
          +     * `semantic_similarity_score` is NaN.
          +     * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 *
          +     * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank
          +     * of `keyword_similarity_score` with slight adjustment of reciprocal rank
          +     * of `semantic_smilarity_score`.
          +     *
          +     * The following signals are supported:
          +     *
          +     * * `semantic_similarity_score`: semantic similarity adjustment that is
          +     * calculated using the embeddings generated by a proprietary Google model.
          +     * This score determines how semantically similar a search query is to a
          +     * document.
          +     * * `keyword_similarity_score`: keyword match adjustment uses the Best
          +     * Match 25 (BM25) ranking function. This score is calculated using a
          +     * probabilistic model to estimate the probability that a document is
          +     * relevant to a given query.
          +     * * `relevance_score`: semantic relevance adjustment that uses a
          +     * proprietary Google model to determine the meaning and intent behind a
          +     * user's query in context with the content in the documents.
          +     * * `pctr_rank`: predicted conversion rate adjustment as a rank use
          +     * predicted Click-through rate (pCTR) to gauge the relevance and
          +     * attractiveness of a search result from a user's perspective. A higher
          +     * pCTR suggests that the result is more likely to satisfy the user's query
          +     * and intent, making it a valuable signal for ranking.
          +     * * `freshness_rank`: freshness adjustment as a rank
          +     * * `document_age`: The time in hours elapsed since the document was last
          +     * updated, a floating-point number (e.g., 0.25 means 15 minutes).
          +     * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary
          +     * Google model to determine the keyword-based overlap between the query and
          +     * the document.
          +     * * `base_rank`: the default rank of the result
          +     * 
          + * + * string ranking_expression = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The rankingExpression to set. + * @return This builder for chaining. + */ + public Builder setRankingExpression(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rankingExpression_ = value; + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. The ranking expression controls the customized ranking on
          +     * retrieval documents. This overrides
          +     * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1.ServingConfig.ranking_expression].
          +     * The syntax and supported features depend on the
          +     * `ranking_expression_backend` value. If `ranking_expression_backend` is not
          +     * provided, it defaults to `RANK_BY_EMBEDDING`.
          +     *
          +     * If
          +     * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend]
          +     * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single
          +     * function or multiple functions that are joined by "+".
          +     *
          +     * * ranking_expression = function, { " + ", function };
          +     *
          +     * Supported functions:
          +     *
          +     * * double * relevance_score
          +     * * double * dotProduct(embedding_field_path)
          +     *
          +     * Function variables:
          +     *
          +     * * `relevance_score`: pre-defined keywords, used for measure relevance
          +     * between query and document.
          +     * * `embedding_field_path`: the document embedding field
          +     * used with query embedding vector.
          +     * * `dotProduct`: embedding function between `embedding_field_path` and
          +     * query embedding vector.
          +     *
          +     * Example ranking expression:
          +     *
          +     * If document has an embedding field doc_embedding, the ranking expression
          +     * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
          +     *
          +     * If
          +     * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend]
          +     * is set to `RANK_BY_FORMULA`, the following expression types (and
          +     * combinations of those chained using + or
          +     * * operators) are supported:
          +     *
          +     * * `double`
          +     * * `signal`
          +     * * `log(signal)`
          +     * * `exp(signal)`
          +     * * `rr(signal, double > 0)`  -- reciprocal rank transformation with second
          +     * argument being a denominator constant.
          +     * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise.
          +     * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns
          +     * signal2 | double, else returns signal1.
          +     *
          +     * Here are a few examples of ranking formulas that use the supported
          +     * ranking expression types:
          +     *
          +     * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)`
          +     * -- mostly rank by the logarithm of `keyword_similarity_score` with slight
          +     * `semantic_smilarity_score` adjustment.
          +     * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 *
          +     * is_nan(keyword_similarity_score)` -- rank by the exponent of
          +     * `semantic_similarity_score` filling the value with 0 if it's NaN, also
          +     * add constant 0.3 adjustment to the final score if
          +     * `semantic_similarity_score` is NaN.
          +     * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 *
          +     * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank
          +     * of `keyword_similarity_score` with slight adjustment of reciprocal rank
          +     * of `semantic_smilarity_score`.
                *
          -     * This should be the same identifier as
          -     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id]
          -     * and
          -     * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1.CompleteQueryRequest.user_pseudo_id]
          +     * The following signals are supported:
                *
          -     * The field must be a UTF-8 encoded string with a length limit of 128
          -     * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
          +     * * `semantic_similarity_score`: semantic similarity adjustment that is
          +     * calculated using the embeddings generated by a proprietary Google model.
          +     * This score determines how semantically similar a search query is to a
          +     * document.
          +     * * `keyword_similarity_score`: keyword match adjustment uses the Best
          +     * Match 25 (BM25) ranking function. This score is calculated using a
          +     * probabilistic model to estimate the probability that a document is
          +     * relevant to a given query.
          +     * * `relevance_score`: semantic relevance adjustment that uses a
          +     * proprietary Google model to determine the meaning and intent behind a
          +     * user's query in context with the content in the documents.
          +     * * `pctr_rank`: predicted conversion rate adjustment as a rank use
          +     * predicted Click-through rate (pCTR) to gauge the relevance and
          +     * attractiveness of a search result from a user's perspective. A higher
          +     * pCTR suggests that the result is more likely to satisfy the user's query
          +     * and intent, making it a valuable signal for ranking.
          +     * * `freshness_rank`: freshness adjustment as a rank
          +     * * `document_age`: The time in hours elapsed since the document was last
          +     * updated, a floating-point number (e.g., 0.25 means 15 minutes).
          +     * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary
          +     * Google model to determine the keyword-based overlap between the query and
          +     * the document.
          +     * * `base_rank`: the default rank of the result
                * 
          * - * string user_pseudo_id = 15; + * string ranking_expression = 26 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The userPseudoId to set. * @return This builder for chaining. */ - public Builder setUserPseudoId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - userPseudoId_ = value; - bitField0_ |= 0x00080000; + public Builder clearRankingExpression() { + rankingExpression_ = getDefaultInstance().getRankingExpression(); + bitField0_ = (bitField0_ & ~0x00400000); onChanged(); return this; } @@ -35175,140 +40231,151 @@ public Builder setUserPseudoId(java.lang.String value) { * * *
          -     * A unique identifier for tracking visitors. For example, this could be
          -     * implemented with an HTTP cookie, which should be able to uniquely identify
          -     * a visitor on a single device. This unique identifier should not change if
          -     * the visitor logs in or out of the website.
          +     * Optional. The ranking expression controls the customized ranking on
          +     * retrieval documents. This overrides
          +     * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1.ServingConfig.ranking_expression].
          +     * The syntax and supported features depend on the
          +     * `ranking_expression_backend` value. If `ranking_expression_backend` is not
          +     * provided, it defaults to `RANK_BY_EMBEDDING`.
                *
          -     * This field should NOT have a fixed value such as `unknown_visitor`.
          +     * If
          +     * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend]
          +     * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single
          +     * function or multiple functions that are joined by "+".
                *
          -     * This should be the same identifier as
          -     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id]
          -     * and
          -     * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1.CompleteQueryRequest.user_pseudo_id]
          +     * * ranking_expression = function, { " + ", function };
                *
          -     * The field must be a UTF-8 encoded string with a length limit of 128
          -     * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
          -     * 
          + * Supported functions: * - * string user_pseudo_id = 15; + * * double * relevance_score + * * double * dotProduct(embedding_field_path) * - * @return This builder for chaining. - */ - public Builder clearUserPseudoId() { - userPseudoId_ = getDefaultInstance().getUserPseudoId(); - bitField0_ = (bitField0_ & ~0x00080000); - onChanged(); - return this; - } - - /** + * Function variables: * + * * `relevance_score`: pre-defined keywords, used for measure relevance + * between query and document. + * * `embedding_field_path`: the document embedding field + * used with query embedding vector. + * * `dotProduct`: embedding function between `embedding_field_path` and + * query embedding vector. * - *
          -     * A unique identifier for tracking visitors. For example, this could be
          -     * implemented with an HTTP cookie, which should be able to uniquely identify
          -     * a visitor on a single device. This unique identifier should not change if
          -     * the visitor logs in or out of the website.
          +     * Example ranking expression:
                *
          -     * This field should NOT have a fixed value such as `unknown_visitor`.
          +     * If document has an embedding field doc_embedding, the ranking expression
          +     * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
                *
          -     * This should be the same identifier as
          -     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id]
          -     * and
          -     * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1.CompleteQueryRequest.user_pseudo_id]
          +     * If
          +     * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend]
          +     * is set to `RANK_BY_FORMULA`, the following expression types (and
          +     * combinations of those chained using + or
          +     * * operators) are supported:
                *
          -     * The field must be a UTF-8 encoded string with a length limit of 128
          -     * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
          +     * * `double`
          +     * * `signal`
          +     * * `log(signal)`
          +     * * `exp(signal)`
          +     * * `rr(signal, double > 0)`  -- reciprocal rank transformation with second
          +     * argument being a denominator constant.
          +     * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise.
          +     * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns
          +     * signal2 | double, else returns signal1.
          +     *
          +     * Here are a few examples of ranking formulas that use the supported
          +     * ranking expression types:
          +     *
          +     * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)`
          +     * -- mostly rank by the logarithm of `keyword_similarity_score` with slight
          +     * `semantic_smilarity_score` adjustment.
          +     * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 *
          +     * is_nan(keyword_similarity_score)` -- rank by the exponent of
          +     * `semantic_similarity_score` filling the value with 0 if it's NaN, also
          +     * add constant 0.3 adjustment to the final score if
          +     * `semantic_similarity_score` is NaN.
          +     * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 *
          +     * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank
          +     * of `keyword_similarity_score` with slight adjustment of reciprocal rank
          +     * of `semantic_smilarity_score`.
          +     *
          +     * The following signals are supported:
          +     *
          +     * * `semantic_similarity_score`: semantic similarity adjustment that is
          +     * calculated using the embeddings generated by a proprietary Google model.
          +     * This score determines how semantically similar a search query is to a
          +     * document.
          +     * * `keyword_similarity_score`: keyword match adjustment uses the Best
          +     * Match 25 (BM25) ranking function. This score is calculated using a
          +     * probabilistic model to estimate the probability that a document is
          +     * relevant to a given query.
          +     * * `relevance_score`: semantic relevance adjustment that uses a
          +     * proprietary Google model to determine the meaning and intent behind a
          +     * user's query in context with the content in the documents.
          +     * * `pctr_rank`: predicted conversion rate adjustment as a rank use
          +     * predicted Click-through rate (pCTR) to gauge the relevance and
          +     * attractiveness of a search result from a user's perspective. A higher
          +     * pCTR suggests that the result is more likely to satisfy the user's query
          +     * and intent, making it a valuable signal for ranking.
          +     * * `freshness_rank`: freshness adjustment as a rank
          +     * * `document_age`: The time in hours elapsed since the document was last
          +     * updated, a floating-point number (e.g., 0.25 means 15 minutes).
          +     * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary
          +     * Google model to determine the keyword-based overlap between the query and
          +     * the document.
          +     * * `base_rank`: the default rank of the result
                * 
          * - * string user_pseudo_id = 15; + * string ranking_expression = 26 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bytes for userPseudoId to set. + * @param value The bytes for rankingExpression to set. * @return This builder for chaining. */ - public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) { + public Builder setRankingExpressionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - userPseudoId_ = value; - bitField0_ |= 0x00080000; + rankingExpression_ = value; + bitField0_ |= 0x00400000; onChanged(); return this; } - private com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec contentSearchSpec_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec, - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpecOrBuilder> - contentSearchSpecBuilder_; + private int rankingExpressionBackend_ = 0; /** * * *
          -     * A specification for configuring the behavior of content search.
          +     * Optional. The backend to use for the ranking expression evaluation.
                * 
          * * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; + * .google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend ranking_expression_backend = 53 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the contentSearchSpec field is set. + * @return The enum numeric value on the wire for rankingExpressionBackend. */ - public boolean hasContentSearchSpec() { - return ((bitField0_ & 0x00100000) != 0); + @java.lang.Override + public int getRankingExpressionBackendValue() { + return rankingExpressionBackend_; } /** * * *
          -     * A specification for configuring the behavior of content search.
          +     * Optional. The backend to use for the ranking expression evaluation.
                * 
          * * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; + * .google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend ranking_expression_backend = 53 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The contentSearchSpec. - */ - public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec - getContentSearchSpec() { - if (contentSearchSpecBuilder_ == null) { - return contentSearchSpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec - .getDefaultInstance() - : contentSearchSpec_; - } else { - return contentSearchSpecBuilder_.getMessage(); - } - } - - /** - * - * - *
          -     * A specification for configuring the behavior of content search.
          -     * 
          - * - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; - * + * @param value The enum numeric value on the wire for rankingExpressionBackend to set. + * @return This builder for chaining. */ - public Builder setContentSearchSpec( - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec value) { - if (contentSearchSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - contentSearchSpec_ = value; - } else { - contentSearchSpecBuilder_.setMessage(value); - } - bitField0_ |= 0x00100000; + public Builder setRankingExpressionBackendValue(int value) { + rankingExpressionBackend_ = value; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -35317,77 +40384,47 @@ public Builder setContentSearchSpec( * * *
          -     * A specification for configuring the behavior of content search.
          +     * Optional. The backend to use for the ranking expression evaluation.
                * 
          * * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; + * .google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend ranking_expression_backend = 53 [(.google.api.field_behavior) = OPTIONAL]; * - */ - public Builder setContentSearchSpec( - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.Builder - builderForValue) { - if (contentSearchSpecBuilder_ == null) { - contentSearchSpec_ = builderForValue.build(); - } else { - contentSearchSpecBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00100000; - onChanged(); - return this; - } - - /** - * - * - *
          -     * A specification for configuring the behavior of content search.
          -     * 
          * - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; - * + * @return The rankingExpressionBackend. */ - public Builder mergeContentSearchSpec( - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec value) { - if (contentSearchSpecBuilder_ == null) { - if (((bitField0_ & 0x00100000) != 0) - && contentSearchSpec_ != null - && contentSearchSpec_ - != com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec - .getDefaultInstance()) { - getContentSearchSpecBuilder().mergeFrom(value); - } else { - contentSearchSpec_ = value; - } - } else { - contentSearchSpecBuilder_.mergeFrom(value); - } - if (contentSearchSpec_ != null) { - bitField0_ |= 0x00100000; - onChanged(); - } - return this; + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend + getRankingExpressionBackend() { + com.google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend result = + com.google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend.forNumber( + rankingExpressionBackend_); + return result == null + ? com.google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend.UNRECOGNIZED + : result; } /** * * *
          -     * A specification for configuring the behavior of content search.
          +     * Optional. The backend to use for the ranking expression evaluation.
                * 
          * * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; + * .google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend ranking_expression_backend = 53 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param value The rankingExpressionBackend to set. + * @return This builder for chaining. */ - public Builder clearContentSearchSpec() { - bitField0_ = (bitField0_ & ~0x00100000); - contentSearchSpec_ = null; - if (contentSearchSpecBuilder_ != null) { - contentSearchSpecBuilder_.dispose(); - contentSearchSpecBuilder_ = null; + public Builder setRankingExpressionBackend( + com.google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend value) { + if (value == null) { + throw new NullPointerException(); } + bitField0_ |= 0x00800000; + rankingExpressionBackend_ = value.getNumber(); onChanged(); return this; } @@ -35396,69 +40433,20 @@ public Builder clearContentSearchSpec() { * * *
          -     * A specification for configuring the behavior of content search.
          -     * 
          - * - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; - * - */ - public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.Builder - getContentSearchSpecBuilder() { - bitField0_ |= 0x00100000; - onChanged(); - return internalGetContentSearchSpecFieldBuilder().getBuilder(); - } - - /** - * - * - *
          -     * A specification for configuring the behavior of content search.
          +     * Optional. The backend to use for the ranking expression evaluation.
                * 
          * * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; + * .google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend ranking_expression_backend = 53 [(.google.api.field_behavior) = OPTIONAL]; * - */ - public com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpecOrBuilder - getContentSearchSpecOrBuilder() { - if (contentSearchSpecBuilder_ != null) { - return contentSearchSpecBuilder_.getMessageOrBuilder(); - } else { - return contentSearchSpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec - .getDefaultInstance() - : contentSearchSpec_; - } - } - - /** - * * - *
          -     * A specification for configuring the behavior of content search.
          -     * 
          - * - * - * .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; - * + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec, - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpecOrBuilder> - internalGetContentSearchSpecFieldBuilder() { - if (contentSearchSpecBuilder_ == null) { - contentSearchSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec, - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpecOrBuilder>( - getContentSearchSpec(), getParentForChildren(), isClean()); - contentSearchSpec_ = null; - } - return contentSearchSpecBuilder_; + public Builder clearRankingExpressionBackend() { + bitField0_ = (bitField0_ & ~0x00800000); + rankingExpressionBackend_ = 0; + onChanged(); + return this; } private boolean safeSearch_; @@ -35496,7 +40484,7 @@ public boolean getSafeSearch() { public Builder setSafeSearch(boolean value) { safeSearch_ = value; - bitField0_ |= 0x00200000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -35514,7 +40502,7 @@ public Builder setSafeSearch(boolean value) { * @return This builder for chaining. */ public Builder clearSafeSearch() { - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x01000000); safeSearch_ = false; onChanged(); return this; @@ -35540,7 +40528,7 @@ public Builder clearSafeSearch() { if (!userLabels_.isMutable()) { userLabels_ = userLabels_.copy(); } - bitField0_ |= 0x00400000; + bitField0_ |= 0x02000000; onChanged(); return userLabels_; } @@ -35694,7 +40682,7 @@ public java.lang.String getUserLabelsOrThrow(java.lang.String key) { } public Builder clearUserLabels() { - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x02000000); internalGetMutableUserLabels().getMutableMap().clear(); return this; } @@ -35735,7 +40723,7 @@ public Builder removeUserLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableUserLabels() { - bitField0_ |= 0x00400000; + bitField0_ |= 0x02000000; return internalGetMutableUserLabels().getMutableMap(); } @@ -35772,7 +40760,7 @@ public Builder putUserLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableUserLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00400000; + bitField0_ |= 0x02000000; return this; } @@ -35803,10 +40791,291 @@ public Builder putUserLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllUserLabels(java.util.Map values) { internalGetMutableUserLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00400000; + bitField0_ |= 0x02000000; + return this; + } + + private com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + naturalLanguageQueryUnderstandingSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec, + com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .Builder, + com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpecOrBuilder> + naturalLanguageQueryUnderstandingSpecBuilder_; + + /** + * + * + *
          +     * Optional. Config for natural language query understanding capabilities,
          +     * such as extracting structured field filters from the query. Refer to [this
          +     * documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries)
          +     * for more information.
          +     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
          +     * natural language query understanding will be done.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the naturalLanguageQueryUnderstandingSpec field is set. + */ + public boolean hasNaturalLanguageQueryUnderstandingSpec() { + return ((bitField0_ & 0x04000000) != 0); + } + + /** + * + * + *
          +     * Optional. Config for natural language query understanding capabilities,
          +     * such as extracting structured field filters from the query. Refer to [this
          +     * documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries)
          +     * for more information.
          +     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
          +     * natural language query understanding will be done.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The naturalLanguageQueryUnderstandingSpec. + */ + public com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + getNaturalLanguageQueryUnderstandingSpec() { + if (naturalLanguageQueryUnderstandingSpecBuilder_ == null) { + return naturalLanguageQueryUnderstandingSpec_ == null + ? com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance() + : naturalLanguageQueryUnderstandingSpec_; + } else { + return naturalLanguageQueryUnderstandingSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Optional. Config for natural language query understanding capabilities,
          +     * such as extracting structured field filters from the query. Refer to [this
          +     * documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries)
          +     * for more information.
          +     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
          +     * natural language query understanding will be done.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNaturalLanguageQueryUnderstandingSpec( + com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + value) { + if (naturalLanguageQueryUnderstandingSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + naturalLanguageQueryUnderstandingSpec_ = value; + } else { + naturalLanguageQueryUnderstandingSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Config for natural language query understanding capabilities,
          +     * such as extracting structured field filters from the query. Refer to [this
          +     * documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries)
          +     * for more information.
          +     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
          +     * natural language query understanding will be done.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNaturalLanguageQueryUnderstandingSpec( + com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .Builder + builderForValue) { + if (naturalLanguageQueryUnderstandingSpecBuilder_ == null) { + naturalLanguageQueryUnderstandingSpec_ = builderForValue.build(); + } else { + naturalLanguageQueryUnderstandingSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Config for natural language query understanding capabilities,
          +     * such as extracting structured field filters from the query. Refer to [this
          +     * documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries)
          +     * for more information.
          +     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
          +     * natural language query understanding will be done.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeNaturalLanguageQueryUnderstandingSpec( + com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + value) { + if (naturalLanguageQueryUnderstandingSpecBuilder_ == null) { + if (((bitField0_ & 0x04000000) != 0) + && naturalLanguageQueryUnderstandingSpec_ != null + && naturalLanguageQueryUnderstandingSpec_ + != com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance()) { + getNaturalLanguageQueryUnderstandingSpecBuilder().mergeFrom(value); + } else { + naturalLanguageQueryUnderstandingSpec_ = value; + } + } else { + naturalLanguageQueryUnderstandingSpecBuilder_.mergeFrom(value); + } + if (naturalLanguageQueryUnderstandingSpec_ != null) { + bitField0_ |= 0x04000000; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Optional. Config for natural language query understanding capabilities,
          +     * such as extracting structured field filters from the query. Refer to [this
          +     * documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries)
          +     * for more information.
          +     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
          +     * natural language query understanding will be done.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearNaturalLanguageQueryUnderstandingSpec() { + bitField0_ = (bitField0_ & ~0x04000000); + naturalLanguageQueryUnderstandingSpec_ = null; + if (naturalLanguageQueryUnderstandingSpecBuilder_ != null) { + naturalLanguageQueryUnderstandingSpecBuilder_.dispose(); + naturalLanguageQueryUnderstandingSpecBuilder_ = null; + } + onChanged(); return this; } + /** + * + * + *
          +     * Optional. Config for natural language query understanding capabilities,
          +     * such as extracting structured field filters from the query. Refer to [this
          +     * documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries)
          +     * for more information.
          +     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
          +     * natural language query understanding will be done.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .Builder + getNaturalLanguageQueryUnderstandingSpecBuilder() { + bitField0_ |= 0x04000000; + onChanged(); + return internalGetNaturalLanguageQueryUnderstandingSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Optional. Config for natural language query understanding capabilities,
          +     * such as extracting structured field filters from the query. Refer to [this
          +     * documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries)
          +     * for more information.
          +     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
          +     * natural language query understanding will be done.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpecOrBuilder + getNaturalLanguageQueryUnderstandingSpecOrBuilder() { + if (naturalLanguageQueryUnderstandingSpecBuilder_ != null) { + return naturalLanguageQueryUnderstandingSpecBuilder_.getMessageOrBuilder(); + } else { + return naturalLanguageQueryUnderstandingSpec_ == null + ? com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance() + : naturalLanguageQueryUnderstandingSpec_; + } + } + + /** + * + * + *
          +     * Optional. Config for natural language query understanding capabilities,
          +     * such as extracting structured field filters from the query. Refer to [this
          +     * documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries)
          +     * for more information.
          +     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
          +     * natural language query understanding will be done.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec, + com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .Builder, + com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpecOrBuilder> + internalGetNaturalLanguageQueryUnderstandingSpecFieldBuilder() { + if (naturalLanguageQueryUnderstandingSpecBuilder_ == null) { + naturalLanguageQueryUnderstandingSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec, + com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.Builder, + com.google.cloud.discoveryengine.v1.SearchRequest + .NaturalLanguageQueryUnderstandingSpecOrBuilder>( + getNaturalLanguageQueryUnderstandingSpec(), getParentForChildren(), isClean()); + naturalLanguageQueryUnderstandingSpec_ = null; + } + return naturalLanguageQueryUnderstandingSpecBuilder_; + } + private com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec searchAsYouTypeSpec_; private com.google.protobuf.SingleFieldBuilder< @@ -35831,7 +41100,7 @@ public Builder putAllUserLabels(java.util.Map */ public Builder clearSearchAsYouTypeSpec() { - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x08000000); searchAsYouTypeSpec_ = null; if (searchAsYouTypeSpecBuilder_ != null) { searchAsYouTypeSpecBuilder_.dispose(); @@ -35989,7 +41258,7 @@ public Builder clearSearchAsYouTypeSpec() { */ public com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Builder getSearchAsYouTypeSpecBuilder() { - bitField0_ |= 0x00800000; + bitField0_ |= 0x08000000; onChanged(); return internalGetSearchAsYouTypeSpecFieldBuilder().getBuilder(); } @@ -36071,7 +41340,7 @@ public Builder clearSearchAsYouTypeSpec() { * @return Whether the displaySpec field is set. */ public boolean hasDisplaySpec() { - return ((bitField0_ & 0x01000000) != 0); + return ((bitField0_ & 0x10000000) != 0); } /** @@ -36120,7 +41389,7 @@ public Builder setDisplaySpec( } else { displaySpecBuilder_.setMessage(value); } - bitField0_ |= 0x01000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -36144,7 +41413,7 @@ public Builder setDisplaySpec( } else { displaySpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x01000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -36164,7 +41433,7 @@ public Builder setDisplaySpec( public Builder mergeDisplaySpec( com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec value) { if (displaySpecBuilder_ == null) { - if (((bitField0_ & 0x01000000) != 0) + if (((bitField0_ & 0x10000000) != 0) && displaySpec_ != null && displaySpec_ != com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec @@ -36177,7 +41446,7 @@ public Builder mergeDisplaySpec( displaySpecBuilder_.mergeFrom(value); } if (displaySpec_ != null) { - bitField0_ |= 0x01000000; + bitField0_ |= 0x10000000; onChanged(); } return this; @@ -36196,7 +41465,7 @@ public Builder mergeDisplaySpec( * */ public Builder clearDisplaySpec() { - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x10000000); displaySpec_ = null; if (displaySpecBuilder_ != null) { displaySpecBuilder_.dispose(); @@ -36220,7 +41489,7 @@ public Builder clearDisplaySpec() { */ public com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec.Builder getDisplaySpecBuilder() { - bitField0_ |= 0x01000000; + bitField0_ |= 0x10000000; onChanged(); return internalGetDisplaySpecFieldBuilder().getBuilder(); } @@ -36277,47 +41546,49 @@ public Builder clearDisplaySpec() { return displaySpecBuilder_; } - private java.lang.Object session_ = ""; + private java.util.List + crowdingSpecs_ = java.util.Collections.emptyList(); + + private void ensureCrowdingSpecsIsMutable() { + if (!((bitField0_ & 0x20000000) != 0)) { + crowdingSpecs_ = + new java.util.ArrayList( + crowdingSpecs_); + bitField0_ |= 0x20000000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec, + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Builder, + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpecOrBuilder> + crowdingSpecsBuilder_; /** * * *
          -     * The session resource name. Optional.
          -     *
          -     * Session allows users to do multi-turn /search API calls or coordination
          -     * between /search API calls and /answer API calls.
          -     *
          -     * Example #1 (multi-turn /search API calls):
          -     * Call /search API with the session ID generated in the first call.
          -     * Here, the previous search query gets considered in query
          -     * standing. I.e., if the first query is "How did Alphabet do in 2022?"
          -     * and the current query is "How about 2023?", the current query will
          -     * be interpreted as "How did Alphabet do in 2023?".
          -     *
          -     * Example #2 (coordination between /search API calls and /answer API calls):
          -     * Call /answer API with the session ID generated in the first call.
          -     * Here, the answer generation happens in the context of the search
          -     * results from the first search call.
          -     *
          -     * Multi-turn Search feature is currently at private GA stage. Please use
          -     * v1alpha or v1beta version instead before we launch this feature to public
          -     * GA. Or ask for allowlisting through Google Support team.
          +     * Optional. Crowding specifications for improving result diversity.
          +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
          +     * each unique combination of the `field` values, and max_count will be the
          +     * maximum value of `max_count` across all CrowdingSpecs.
          +     * For example, if the first CrowdingSpec has `field` = "color" and
          +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
          +     * `max_count` = 2, then after 3 documents that share the same color AND size
          +     * have been returned, subsequent ones should be
          +     * removed or demoted.
                * 
          * - * string session = 41 [(.google.api.resource_reference) = { ... } - * - * @return The session. + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.lang.String getSession() { - java.lang.Object ref = session_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - session_ = s; - return s; + public java.util.List + getCrowdingSpecsList() { + if (crowdingSpecsBuilder_ == null) { + return java.util.Collections.unmodifiableList(crowdingSpecs_); } else { - return (java.lang.String) ref; + return crowdingSpecsBuilder_.getMessageList(); } } @@ -36325,41 +41596,26 @@ public java.lang.String getSession() { * * *
          -     * The session resource name. Optional.
          -     *
          -     * Session allows users to do multi-turn /search API calls or coordination
          -     * between /search API calls and /answer API calls.
          -     *
          -     * Example #1 (multi-turn /search API calls):
          -     * Call /search API with the session ID generated in the first call.
          -     * Here, the previous search query gets considered in query
          -     * standing. I.e., if the first query is "How did Alphabet do in 2022?"
          -     * and the current query is "How about 2023?", the current query will
          -     * be interpreted as "How did Alphabet do in 2023?".
          -     *
          -     * Example #2 (coordination between /search API calls and /answer API calls):
          -     * Call /answer API with the session ID generated in the first call.
          -     * Here, the answer generation happens in the context of the search
          -     * results from the first search call.
          -     *
          -     * Multi-turn Search feature is currently at private GA stage. Please use
          -     * v1alpha or v1beta version instead before we launch this feature to public
          -     * GA. Or ask for allowlisting through Google Support team.
          +     * Optional. Crowding specifications for improving result diversity.
          +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
          +     * each unique combination of the `field` values, and max_count will be the
          +     * maximum value of `max_count` across all CrowdingSpecs.
          +     * For example, if the first CrowdingSpec has `field` = "color" and
          +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
          +     * `max_count` = 2, then after 3 documents that share the same color AND size
          +     * have been returned, subsequent ones should be
          +     * removed or demoted.
                * 
          * - * string session = 41 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for session. + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protobuf.ByteString getSessionBytes() { - java.lang.Object ref = session_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - session_ = b; - return b; + public int getCrowdingSpecsCount() { + if (crowdingSpecsBuilder_ == null) { + return crowdingSpecs_.size(); } else { - return (com.google.protobuf.ByteString) ref; + return crowdingSpecsBuilder_.getCount(); } } @@ -36367,40 +41623,61 @@ public com.google.protobuf.ByteString getSessionBytes() { * * *
          -     * The session resource name. Optional.
          -     *
          -     * Session allows users to do multi-turn /search API calls or coordination
          -     * between /search API calls and /answer API calls.
          +     * Optional. Crowding specifications for improving result diversity.
          +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
          +     * each unique combination of the `field` values, and max_count will be the
          +     * maximum value of `max_count` across all CrowdingSpecs.
          +     * For example, if the first CrowdingSpec has `field` = "color" and
          +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
          +     * `max_count` = 2, then after 3 documents that share the same color AND size
          +     * have been returned, subsequent ones should be
          +     * removed or demoted.
          +     * 
          * - * Example #1 (multi-turn /search API calls): - * Call /search API with the session ID generated in the first call. - * Here, the previous search query gets considered in query - * standing. I.e., if the first query is "How did Alphabet do in 2022?" - * and the current query is "How about 2023?", the current query will - * be interpreted as "How did Alphabet do in 2023?". + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec getCrowdingSpecs( + int index) { + if (crowdingSpecsBuilder_ == null) { + return crowdingSpecs_.get(index); + } else { + return crowdingSpecsBuilder_.getMessage(index); + } + } + + /** * - * Example #2 (coordination between /search API calls and /answer API calls): - * Call /answer API with the session ID generated in the first call. - * Here, the answer generation happens in the context of the search - * results from the first search call. * - * Multi-turn Search feature is currently at private GA stage. Please use - * v1alpha or v1beta version instead before we launch this feature to public - * GA. Or ask for allowlisting through Google Support team. + *
          +     * Optional. Crowding specifications for improving result diversity.
          +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
          +     * each unique combination of the `field` values, and max_count will be the
          +     * maximum value of `max_count` across all CrowdingSpecs.
          +     * For example, if the first CrowdingSpec has `field` = "color" and
          +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
          +     * `max_count` = 2, then after 3 documents that share the same color AND size
          +     * have been returned, subsequent ones should be
          +     * removed or demoted.
                * 
          * - * string session = 41 [(.google.api.resource_reference) = { ... } - * - * @param value The session to set. - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSession(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setCrowdingSpecs( + int index, com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec value) { + if (crowdingSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCrowdingSpecsIsMutable(); + crowdingSpecs_.set(index, value); + onChanged(); + } else { + crowdingSpecsBuilder_.setMessage(index, value); } - session_ = value; - bitField0_ |= 0x02000000; - onChanged(); return this; } @@ -36408,36 +41685,31 @@ public Builder setSession(java.lang.String value) { * * *
          -     * The session resource name. Optional.
          -     *
          -     * Session allows users to do multi-turn /search API calls or coordination
          -     * between /search API calls and /answer API calls.
          -     *
          -     * Example #1 (multi-turn /search API calls):
          -     * Call /search API with the session ID generated in the first call.
          -     * Here, the previous search query gets considered in query
          -     * standing. I.e., if the first query is "How did Alphabet do in 2022?"
          -     * and the current query is "How about 2023?", the current query will
          -     * be interpreted as "How did Alphabet do in 2023?".
          -     *
          -     * Example #2 (coordination between /search API calls and /answer API calls):
          -     * Call /answer API with the session ID generated in the first call.
          -     * Here, the answer generation happens in the context of the search
          -     * results from the first search call.
          -     *
          -     * Multi-turn Search feature is currently at private GA stage. Please use
          -     * v1alpha or v1beta version instead before we launch this feature to public
          -     * GA. Or ask for allowlisting through Google Support team.
          +     * Optional. Crowding specifications for improving result diversity.
          +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
          +     * each unique combination of the `field` values, and max_count will be the
          +     * maximum value of `max_count` across all CrowdingSpecs.
          +     * For example, if the first CrowdingSpec has `field` = "color" and
          +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
          +     * `max_count` = 2, then after 3 documents that share the same color AND size
          +     * have been returned, subsequent ones should be
          +     * removed or demoted.
                * 
          * - * string session = 41 [(.google.api.resource_reference) = { ... } - * - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearSession() { - session_ = getDefaultInstance().getSession(); - bitField0_ = (bitField0_ & ~0x02000000); - onChanged(); + public Builder setCrowdingSpecs( + int index, + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Builder builderForValue) { + if (crowdingSpecsBuilder_ == null) { + ensureCrowdingSpecsIsMutable(); + crowdingSpecs_.set(index, builderForValue.build()); + onChanged(); + } else { + crowdingSpecsBuilder_.setMessage(index, builderForValue.build()); + } return this; } @@ -36445,114 +41717,130 @@ public Builder clearSession() { * * *
          -     * The session resource name. Optional.
          -     *
          -     * Session allows users to do multi-turn /search API calls or coordination
          -     * between /search API calls and /answer API calls.
          -     *
          -     * Example #1 (multi-turn /search API calls):
          -     * Call /search API with the session ID generated in the first call.
          -     * Here, the previous search query gets considered in query
          -     * standing. I.e., if the first query is "How did Alphabet do in 2022?"
          -     * and the current query is "How about 2023?", the current query will
          -     * be interpreted as "How did Alphabet do in 2023?".
          -     *
          -     * Example #2 (coordination between /search API calls and /answer API calls):
          -     * Call /answer API with the session ID generated in the first call.
          -     * Here, the answer generation happens in the context of the search
          -     * results from the first search call.
          -     *
          -     * Multi-turn Search feature is currently at private GA stage. Please use
          -     * v1alpha or v1beta version instead before we launch this feature to public
          -     * GA. Or ask for allowlisting through Google Support team.
          +     * Optional. Crowding specifications for improving result diversity.
          +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
          +     * each unique combination of the `field` values, and max_count will be the
          +     * maximum value of `max_count` across all CrowdingSpecs.
          +     * For example, if the first CrowdingSpec has `field` = "color" and
          +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
          +     * `max_count` = 2, then after 3 documents that share the same color AND size
          +     * have been returned, subsequent ones should be
          +     * removed or demoted.
                * 
          * - * string session = 41 [(.google.api.resource_reference) = { ... } - * - * @param value The bytes for session to set. - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSessionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder addCrowdingSpecs( + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec value) { + if (crowdingSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCrowdingSpecsIsMutable(); + crowdingSpecs_.add(value); + onChanged(); + } else { + crowdingSpecsBuilder_.addMessage(value); } - checkByteStringIsUtf8(value); - session_ = value; - bitField0_ |= 0x02000000; - onChanged(); return this; } - private com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec sessionSpec_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec, - com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec.Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpecOrBuilder> - sessionSpecBuilder_; - /** * * *
          -     * Session specification.
          -     *
          -     * Can be used only when `session` is set.
          +     * Optional. Crowding specifications for improving result diversity.
          +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
          +     * each unique combination of the `field` values, and max_count will be the
          +     * maximum value of `max_count` across all CrowdingSpecs.
          +     * For example, if the first CrowdingSpec has `field` = "color" and
          +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
          +     * `max_count` = 2, then after 3 documents that share the same color AND size
          +     * have been returned, subsequent ones should be
          +     * removed or demoted.
                * 
          * - * .google.cloud.discoveryengine.v1.SearchRequest.SessionSpec session_spec = 42; - * - * @return Whether the sessionSpec field is set. + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public boolean hasSessionSpec() { - return ((bitField0_ & 0x04000000) != 0); + public Builder addCrowdingSpecs( + int index, com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec value) { + if (crowdingSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCrowdingSpecsIsMutable(); + crowdingSpecs_.add(index, value); + onChanged(); + } else { + crowdingSpecsBuilder_.addMessage(index, value); + } + return this; } /** * * *
          -     * Session specification.
          -     *
          -     * Can be used only when `session` is set.
          +     * Optional. Crowding specifications for improving result diversity.
          +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
          +     * each unique combination of the `field` values, and max_count will be the
          +     * maximum value of `max_count` across all CrowdingSpecs.
          +     * For example, if the first CrowdingSpec has `field` = "color" and
          +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
          +     * `max_count` = 2, then after 3 documents that share the same color AND size
          +     * have been returned, subsequent ones should be
          +     * removed or demoted.
                * 
          * - * .google.cloud.discoveryengine.v1.SearchRequest.SessionSpec session_spec = 42; - * - * @return The sessionSpec. + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec getSessionSpec() { - if (sessionSpecBuilder_ == null) { - return sessionSpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec.getDefaultInstance() - : sessionSpec_; + public Builder addCrowdingSpecs( + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Builder builderForValue) { + if (crowdingSpecsBuilder_ == null) { + ensureCrowdingSpecsIsMutable(); + crowdingSpecs_.add(builderForValue.build()); + onChanged(); } else { - return sessionSpecBuilder_.getMessage(); + crowdingSpecsBuilder_.addMessage(builderForValue.build()); } + return this; } /** * * *
          -     * Session specification.
          -     *
          -     * Can be used only when `session` is set.
          +     * Optional. Crowding specifications for improving result diversity.
          +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
          +     * each unique combination of the `field` values, and max_count will be the
          +     * maximum value of `max_count` across all CrowdingSpecs.
          +     * For example, if the first CrowdingSpec has `field` = "color" and
          +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
          +     * `max_count` = 2, then after 3 documents that share the same color AND size
          +     * have been returned, subsequent ones should be
          +     * removed or demoted.
                * 
          * - * .google.cloud.discoveryengine.v1.SearchRequest.SessionSpec session_spec = 42; + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSessionSpec( - com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec value) { - if (sessionSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sessionSpec_ = value; + public Builder addCrowdingSpecs( + int index, + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Builder builderForValue) { + if (crowdingSpecsBuilder_ == null) { + ensureCrowdingSpecsIsMutable(); + crowdingSpecs_.add(index, builderForValue.build()); + onChanged(); } else { - sessionSpecBuilder_.setMessage(value); + crowdingSpecsBuilder_.addMessage(index, builderForValue.build()); } - bitField0_ |= 0x04000000; - onChanged(); return this; } @@ -36560,22 +41848,31 @@ public Builder setSessionSpec( * * *
          -     * Session specification.
          -     *
          -     * Can be used only when `session` is set.
          +     * Optional. Crowding specifications for improving result diversity.
          +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
          +     * each unique combination of the `field` values, and max_count will be the
          +     * maximum value of `max_count` across all CrowdingSpecs.
          +     * For example, if the first CrowdingSpec has `field` = "color" and
          +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
          +     * `max_count` = 2, then after 3 documents that share the same color AND size
          +     * have been returned, subsequent ones should be
          +     * removed or demoted.
                * 
          * - * .google.cloud.discoveryengine.v1.SearchRequest.SessionSpec session_spec = 42; + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSessionSpec( - com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec.Builder builderForValue) { - if (sessionSpecBuilder_ == null) { - sessionSpec_ = builderForValue.build(); + public Builder addAllCrowdingSpecs( + java.lang.Iterable + values) { + if (crowdingSpecsBuilder_ == null) { + ensureCrowdingSpecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, crowdingSpecs_); + onChanged(); } else { - sessionSpecBuilder_.setMessage(builderForValue.build()); + crowdingSpecsBuilder_.addAllMessages(values); } - bitField0_ |= 0x04000000; - onChanged(); return this; } @@ -36583,31 +41880,28 @@ public Builder setSessionSpec( * * *
          -     * Session specification.
          -     *
          -     * Can be used only when `session` is set.
          +     * Optional. Crowding specifications for improving result diversity.
          +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
          +     * each unique combination of the `field` values, and max_count will be the
          +     * maximum value of `max_count` across all CrowdingSpecs.
          +     * For example, if the first CrowdingSpec has `field` = "color" and
          +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
          +     * `max_count` = 2, then after 3 documents that share the same color AND size
          +     * have been returned, subsequent ones should be
          +     * removed or demoted.
                * 
          * - * .google.cloud.discoveryengine.v1.SearchRequest.SessionSpec session_spec = 42; + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeSessionSpec( - com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec value) { - if (sessionSpecBuilder_ == null) { - if (((bitField0_ & 0x04000000) != 0) - && sessionSpec_ != null - && sessionSpec_ - != com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec - .getDefaultInstance()) { - getSessionSpecBuilder().mergeFrom(value); - } else { - sessionSpec_ = value; - } - } else { - sessionSpecBuilder_.mergeFrom(value); - } - if (sessionSpec_ != null) { - bitField0_ |= 0x04000000; + public Builder clearCrowdingSpecs() { + if (crowdingSpecsBuilder_ == null) { + crowdingSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x20000000); onChanged(); + } else { + crowdingSpecsBuilder_.clear(); } return this; } @@ -36616,21 +41910,29 @@ public Builder mergeSessionSpec( * * *
          -     * Session specification.
          -     *
          -     * Can be used only when `session` is set.
          +     * Optional. Crowding specifications for improving result diversity.
          +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
          +     * each unique combination of the `field` values, and max_count will be the
          +     * maximum value of `max_count` across all CrowdingSpecs.
          +     * For example, if the first CrowdingSpec has `field` = "color" and
          +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
          +     * `max_count` = 2, then after 3 documents that share the same color AND size
          +     * have been returned, subsequent ones should be
          +     * removed or demoted.
                * 
          * - * .google.cloud.discoveryengine.v1.SearchRequest.SessionSpec session_spec = 42; + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearSessionSpec() { - bitField0_ = (bitField0_ & ~0x04000000); - sessionSpec_ = null; - if (sessionSpecBuilder_ != null) { - sessionSpecBuilder_.dispose(); - sessionSpecBuilder_ = null; + public Builder removeCrowdingSpecs(int index) { + if (crowdingSpecsBuilder_ == null) { + ensureCrowdingSpecsIsMutable(); + crowdingSpecs_.remove(index); + onChanged(); + } else { + crowdingSpecsBuilder_.remove(index); } - onChanged(); return this; } @@ -36638,39 +41940,51 @@ public Builder clearSessionSpec() { * * *
          -     * Session specification.
          -     *
          -     * Can be used only when `session` is set.
          +     * Optional. Crowding specifications for improving result diversity.
          +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
          +     * each unique combination of the `field` values, and max_count will be the
          +     * maximum value of `max_count` across all CrowdingSpecs.
          +     * For example, if the first CrowdingSpec has `field` = "color" and
          +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
          +     * `max_count` = 2, then after 3 documents that share the same color AND size
          +     * have been returned, subsequent ones should be
          +     * removed or demoted.
                * 
          * - * .google.cloud.discoveryengine.v1.SearchRequest.SessionSpec session_spec = 42; + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec.Builder - getSessionSpecBuilder() { - bitField0_ |= 0x04000000; - onChanged(); - return internalGetSessionSpecFieldBuilder().getBuilder(); + public com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Builder + getCrowdingSpecsBuilder(int index) { + return internalGetCrowdingSpecsFieldBuilder().getBuilder(index); } /** * * *
          -     * Session specification.
          -     *
          -     * Can be used only when `session` is set.
          +     * Optional. Crowding specifications for improving result diversity.
          +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
          +     * each unique combination of the `field` values, and max_count will be the
          +     * maximum value of `max_count` across all CrowdingSpecs.
          +     * For example, if the first CrowdingSpec has `field` = "color" and
          +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
          +     * `max_count` = 2, then after 3 documents that share the same color AND size
          +     * have been returned, subsequent ones should be
          +     * removed or demoted.
                * 
          * - * .google.cloud.discoveryengine.v1.SearchRequest.SessionSpec session_spec = 42; + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpecOrBuilder - getSessionSpecOrBuilder() { - if (sessionSpecBuilder_ != null) { - return sessionSpecBuilder_.getMessageOrBuilder(); + public com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpecOrBuilder + getCrowdingSpecsOrBuilder(int index) { + if (crowdingSpecsBuilder_ == null) { + return crowdingSpecs_.get(index); } else { - return sessionSpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec.getDefaultInstance() - : sessionSpec_; + return crowdingSpecsBuilder_.getMessageOrBuilder(index); } } @@ -36678,140 +41992,288 @@ public Builder clearSessionSpec() { * * *
          -     * Session specification.
          -     *
          -     * Can be used only when `session` is set.
          +     * Optional. Crowding specifications for improving result diversity.
          +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
          +     * each unique combination of the `field` values, and max_count will be the
          +     * maximum value of `max_count` across all CrowdingSpecs.
          +     * For example, if the first CrowdingSpec has `field` = "color" and
          +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
          +     * `max_count` = 2, then after 3 documents that share the same color AND size
          +     * have been returned, subsequent ones should be
          +     * removed or demoted.
                * 
          * - * .google.cloud.discoveryengine.v1.SearchRequest.SessionSpec session_spec = 42; + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec, - com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec.Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpecOrBuilder> - internalGetSessionSpecFieldBuilder() { - if (sessionSpecBuilder_ == null) { - sessionSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec, - com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec.Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpecOrBuilder>( - getSessionSpec(), getParentForChildren(), isClean()); - sessionSpec_ = null; + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpecOrBuilder> + getCrowdingSpecsOrBuilderList() { + if (crowdingSpecsBuilder_ != null) { + return crowdingSpecsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(crowdingSpecs_); } - return sessionSpecBuilder_; } - private int relevanceThreshold_ = 0; - /** * * *
          -     * The relevance threshold of the search results.
          +     * Optional. Crowding specifications for improving result diversity.
          +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
          +     * each unique combination of the `field` values, and max_count will be the
          +     * maximum value of `max_count` across all CrowdingSpecs.
          +     * For example, if the first CrowdingSpec has `field` = "color" and
          +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
          +     * `max_count` = 2, then after 3 documents that share the same color AND size
          +     * have been returned, subsequent ones should be
          +     * removed or demoted.
          +     * 
          * - * Default to Google defined threshold, leveraging a balance of - * precision and recall to deliver both highly accurate results and - * comprehensive coverage of relevant information. + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Builder + addCrowdingSpecsBuilder() { + return internalGetCrowdingSpecsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.getDefaultInstance()); + } + + /** * - * This feature is not supported for healthcare search. + * + *
          +     * Optional. Crowding specifications for improving result diversity.
          +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
          +     * each unique combination of the `field` values, and max_count will be the
          +     * maximum value of `max_count` across all CrowdingSpecs.
          +     * For example, if the first CrowdingSpec has `field` = "color" and
          +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
          +     * `max_count` = 2, then after 3 documents that share the same color AND size
          +     * have been returned, subsequent ones should be
          +     * removed or demoted.
                * 
          * * - * .google.cloud.discoveryengine.v1.SearchRequest.RelevanceThreshold relevance_threshold = 44; + * repeated .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; * + */ + public com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Builder + addCrowdingSpecsBuilder(int index) { + return internalGetCrowdingSpecsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.getDefaultInstance()); + } + + /** * - * @return The enum numeric value on the wire for relevanceThreshold. + * + *
          +     * Optional. Crowding specifications for improving result diversity.
          +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
          +     * each unique combination of the `field` values, and max_count will be the
          +     * maximum value of `max_count` across all CrowdingSpecs.
          +     * For example, if the first CrowdingSpec has `field` = "color" and
          +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
          +     * `max_count` = 2, then after 3 documents that share the same color AND size
          +     * have been returned, subsequent ones should be
          +     * removed or demoted.
          +     * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public int getRelevanceThresholdValue() { - return relevanceThreshold_; + public java.util.List + getCrowdingSpecsBuilderList() { + return internalGetCrowdingSpecsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec, + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Builder, + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpecOrBuilder> + internalGetCrowdingSpecsFieldBuilder() { + if (crowdingSpecsBuilder_ == null) { + crowdingSpecsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec, + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Builder, + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpecOrBuilder>( + crowdingSpecs_, + ((bitField0_ & 0x20000000) != 0), + getParentForChildren(), + isClean()); + crowdingSpecs_ = null; + } + return crowdingSpecsBuilder_; } + private java.lang.Object session_ = ""; + /** * * *
          -     * The relevance threshold of the search results.
          +     * The session resource name. Optional.
                *
          -     * Default to Google defined threshold, leveraging a balance of
          -     * precision and recall to deliver both highly accurate results and
          -     * comprehensive coverage of relevant information.
          +     * Session allows users to do multi-turn /search API calls or coordination
          +     * between /search API calls and /answer API calls.
                *
          -     * This feature is not supported for healthcare search.
          +     * Example #1 (multi-turn /search API calls):
          +     * Call /search API with the session ID generated in the first call.
          +     * Here, the previous search query gets considered in query
          +     * standing. I.e., if the first query is "How did Alphabet do in 2022?"
          +     * and the current query is "How about 2023?", the current query will
          +     * be interpreted as "How did Alphabet do in 2023?".
          +     *
          +     * Example #2 (coordination between /search API calls and /answer API calls):
          +     * Call /answer API with the session ID generated in the first call.
          +     * Here, the answer generation happens in the context of the search
          +     * results from the first search call.
          +     *
          +     * Multi-turn Search feature is currently at private GA stage. Please use
          +     * v1alpha or v1beta version instead before we launch this feature to public
          +     * GA. Or ask for allowlisting through Google Support team.
                * 
          * - * - * .google.cloud.discoveryengine.v1.SearchRequest.RelevanceThreshold relevance_threshold = 44; - * + * string session = 41 [(.google.api.resource_reference) = { ... } * - * @param value The enum numeric value on the wire for relevanceThreshold to set. - * @return This builder for chaining. + * @return The session. */ - public Builder setRelevanceThresholdValue(int value) { - relevanceThreshold_ = value; - bitField0_ |= 0x08000000; - onChanged(); - return this; + public java.lang.String getSession() { + java.lang.Object ref = session_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + session_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
          -     * The relevance threshold of the search results.
          +     * The session resource name. Optional.
                *
          -     * Default to Google defined threshold, leveraging a balance of
          -     * precision and recall to deliver both highly accurate results and
          -     * comprehensive coverage of relevant information.
          +     * Session allows users to do multi-turn /search API calls or coordination
          +     * between /search API calls and /answer API calls.
                *
          -     * This feature is not supported for healthcare search.
          +     * Example #1 (multi-turn /search API calls):
          +     * Call /search API with the session ID generated in the first call.
          +     * Here, the previous search query gets considered in query
          +     * standing. I.e., if the first query is "How did Alphabet do in 2022?"
          +     * and the current query is "How about 2023?", the current query will
          +     * be interpreted as "How did Alphabet do in 2023?".
          +     *
          +     * Example #2 (coordination between /search API calls and /answer API calls):
          +     * Call /answer API with the session ID generated in the first call.
          +     * Here, the answer generation happens in the context of the search
          +     * results from the first search call.
          +     *
          +     * Multi-turn Search feature is currently at private GA stage. Please use
          +     * v1alpha or v1beta version instead before we launch this feature to public
          +     * GA. Or ask for allowlisting through Google Support team.
                * 
          * - * - * .google.cloud.discoveryengine.v1.SearchRequest.RelevanceThreshold relevance_threshold = 44; - * + * string session = 41 [(.google.api.resource_reference) = { ... } * - * @return The relevanceThreshold. + * @return The bytes for session. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceThreshold - getRelevanceThreshold() { - com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceThreshold result = - com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceThreshold.forNumber( - relevanceThreshold_); - return result == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceThreshold.UNRECOGNIZED - : result; + public com.google.protobuf.ByteString getSessionBytes() { + java.lang.Object ref = session_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + session_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * The session resource name. Optional.
          +     *
          +     * Session allows users to do multi-turn /search API calls or coordination
          +     * between /search API calls and /answer API calls.
          +     *
          +     * Example #1 (multi-turn /search API calls):
          +     * Call /search API with the session ID generated in the first call.
          +     * Here, the previous search query gets considered in query
          +     * standing. I.e., if the first query is "How did Alphabet do in 2022?"
          +     * and the current query is "How about 2023?", the current query will
          +     * be interpreted as "How did Alphabet do in 2023?".
          +     *
          +     * Example #2 (coordination between /search API calls and /answer API calls):
          +     * Call /answer API with the session ID generated in the first call.
          +     * Here, the answer generation happens in the context of the search
          +     * results from the first search call.
          +     *
          +     * Multi-turn Search feature is currently at private GA stage. Please use
          +     * v1alpha or v1beta version instead before we launch this feature to public
          +     * GA. Or ask for allowlisting through Google Support team.
          +     * 
          + * + * string session = 41 [(.google.api.resource_reference) = { ... } + * + * @param value The session to set. + * @return This builder for chaining. + */ + public Builder setSession(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + session_ = value; + bitField0_ |= 0x40000000; + onChanged(); + return this; } /** * * *
          -     * The relevance threshold of the search results.
          +     * The session resource name. Optional.
                *
          -     * Default to Google defined threshold, leveraging a balance of
          -     * precision and recall to deliver both highly accurate results and
          -     * comprehensive coverage of relevant information.
          +     * Session allows users to do multi-turn /search API calls or coordination
          +     * between /search API calls and /answer API calls.
                *
          -     * This feature is not supported for healthcare search.
          +     * Example #1 (multi-turn /search API calls):
          +     * Call /search API with the session ID generated in the first call.
          +     * Here, the previous search query gets considered in query
          +     * standing. I.e., if the first query is "How did Alphabet do in 2022?"
          +     * and the current query is "How about 2023?", the current query will
          +     * be interpreted as "How did Alphabet do in 2023?".
          +     *
          +     * Example #2 (coordination between /search API calls and /answer API calls):
          +     * Call /answer API with the session ID generated in the first call.
          +     * Here, the answer generation happens in the context of the search
          +     * results from the first search call.
          +     *
          +     * Multi-turn Search feature is currently at private GA stage. Please use
          +     * v1alpha or v1beta version instead before we launch this feature to public
          +     * GA. Or ask for allowlisting through Google Support team.
                * 
          * - * - * .google.cloud.discoveryengine.v1.SearchRequest.RelevanceThreshold relevance_threshold = 44; - * + * string session = 41 [(.google.api.resource_reference) = { ... } * - * @param value The relevanceThreshold to set. * @return This builder for chaining. */ - public Builder setRelevanceThreshold( - com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceThreshold value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x08000000; - relevanceThreshold_ = value.getNumber(); + public Builder clearSession() { + session_ = getDefaultInstance().getSession(); + bitField0_ = (bitField0_ & ~0x40000000); onChanged(); return this; } @@ -36820,75 +42282,88 @@ public Builder setRelevanceThreshold( * * *
          -     * The relevance threshold of the search results.
          +     * The session resource name. Optional.
                *
          -     * Default to Google defined threshold, leveraging a balance of
          -     * precision and recall to deliver both highly accurate results and
          -     * comprehensive coverage of relevant information.
          +     * Session allows users to do multi-turn /search API calls or coordination
          +     * between /search API calls and /answer API calls.
                *
          -     * This feature is not supported for healthcare search.
          +     * Example #1 (multi-turn /search API calls):
          +     * Call /search API with the session ID generated in the first call.
          +     * Here, the previous search query gets considered in query
          +     * standing. I.e., if the first query is "How did Alphabet do in 2022?"
          +     * and the current query is "How about 2023?", the current query will
          +     * be interpreted as "How did Alphabet do in 2023?".
          +     *
          +     * Example #2 (coordination between /search API calls and /answer API calls):
          +     * Call /answer API with the session ID generated in the first call.
          +     * Here, the answer generation happens in the context of the search
          +     * results from the first search call.
          +     *
          +     * Multi-turn Search feature is currently at private GA stage. Please use
          +     * v1alpha or v1beta version instead before we launch this feature to public
          +     * GA. Or ask for allowlisting through Google Support team.
                * 
          * - * - * .google.cloud.discoveryengine.v1.SearchRequest.RelevanceThreshold relevance_threshold = 44; - * + * string session = 41 [(.google.api.resource_reference) = { ... } * + * @param value The bytes for session to set. * @return This builder for chaining. */ - public Builder clearRelevanceThreshold() { - bitField0_ = (bitField0_ & ~0x08000000); - relevanceThreshold_ = 0; + public Builder setSessionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + session_ = value; + bitField0_ |= 0x40000000; onChanged(); return this; } - private com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec - relevanceScoreSpec_; + private com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec sessionSpec_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec, - com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec.Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpecOrBuilder> - relevanceScoreSpecBuilder_; + com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec, + com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec.Builder, + com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpecOrBuilder> + sessionSpecBuilder_; /** * * *
          -     * Optional. The specification for returning the relevance score.
          +     * Session specification.
          +     *
          +     * Can be used only when `session` is set.
                * 
          * - * - * .google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.discoveryengine.v1.SearchRequest.SessionSpec session_spec = 42; * - * @return Whether the relevanceScoreSpec field is set. + * @return Whether the sessionSpec field is set. */ - public boolean hasRelevanceScoreSpec() { - return ((bitField0_ & 0x10000000) != 0); + public boolean hasSessionSpec() { + return ((bitField0_ & 0x80000000) != 0); } /** * * *
          -     * Optional. The specification for returning the relevance score.
          +     * Session specification.
          +     *
          +     * Can be used only when `session` is set.
                * 
          * - * - * .google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.discoveryengine.v1.SearchRequest.SessionSpec session_spec = 42; * - * @return The relevanceScoreSpec. + * @return The sessionSpec. */ - public com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec - getRelevanceScoreSpec() { - if (relevanceScoreSpecBuilder_ == null) { - return relevanceScoreSpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec - .getDefaultInstance() - : relevanceScoreSpec_; + public com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec getSessionSpec() { + if (sessionSpecBuilder_ == null) { + return sessionSpec_ == null + ? com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec.getDefaultInstance() + : sessionSpec_; } else { - return relevanceScoreSpecBuilder_.getMessage(); + return sessionSpecBuilder_.getMessage(); } } @@ -36896,24 +42371,24 @@ public boolean hasRelevanceScoreSpec() { * * *
          -     * Optional. The specification for returning the relevance score.
          +     * Session specification.
          +     *
          +     * Can be used only when `session` is set.
                * 
          * - * - * .google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.discoveryengine.v1.SearchRequest.SessionSpec session_spec = 42; */ - public Builder setRelevanceScoreSpec( - com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec value) { - if (relevanceScoreSpecBuilder_ == null) { + public Builder setSessionSpec( + com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec value) { + if (sessionSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - relevanceScoreSpec_ = value; + sessionSpec_ = value; } else { - relevanceScoreSpecBuilder_.setMessage(value); + sessionSpecBuilder_.setMessage(value); } - bitField0_ |= 0x10000000; + bitField0_ |= 0x80000000; onChanged(); return this; } @@ -36922,22 +42397,21 @@ public Builder setRelevanceScoreSpec( * * *
          -     * Optional. The specification for returning the relevance score.
          +     * Session specification.
          +     *
          +     * Can be used only when `session` is set.
                * 
          * - * - * .google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.discoveryengine.v1.SearchRequest.SessionSpec session_spec = 42; */ - public Builder setRelevanceScoreSpec( - com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec.Builder - builderForValue) { - if (relevanceScoreSpecBuilder_ == null) { - relevanceScoreSpec_ = builderForValue.build(); + public Builder setSessionSpec( + com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec.Builder builderForValue) { + if (sessionSpecBuilder_ == null) { + sessionSpec_ = builderForValue.build(); } else { - relevanceScoreSpecBuilder_.setMessage(builderForValue.build()); + sessionSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x10000000; + bitField0_ |= 0x80000000; onChanged(); return this; } @@ -36946,30 +42420,30 @@ public Builder setRelevanceScoreSpec( * * *
          -     * Optional. The specification for returning the relevance score.
          +     * Session specification.
          +     *
          +     * Can be used only when `session` is set.
                * 
          * - * - * .google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.discoveryengine.v1.SearchRequest.SessionSpec session_spec = 42; */ - public Builder mergeRelevanceScoreSpec( - com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec value) { - if (relevanceScoreSpecBuilder_ == null) { - if (((bitField0_ & 0x10000000) != 0) - && relevanceScoreSpec_ != null - && relevanceScoreSpec_ - != com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec + public Builder mergeSessionSpec( + com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec value) { + if (sessionSpecBuilder_ == null) { + if (((bitField0_ & 0x80000000) != 0) + && sessionSpec_ != null + && sessionSpec_ + != com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec .getDefaultInstance()) { - getRelevanceScoreSpecBuilder().mergeFrom(value); + getSessionSpecBuilder().mergeFrom(value); } else { - relevanceScoreSpec_ = value; + sessionSpec_ = value; } } else { - relevanceScoreSpecBuilder_.mergeFrom(value); + sessionSpecBuilder_.mergeFrom(value); } - if (relevanceScoreSpec_ != null) { - bitField0_ |= 0x10000000; + if (sessionSpec_ != null) { + bitField0_ |= 0x80000000; onChanged(); } return this; @@ -36979,19 +42453,19 @@ public Builder mergeRelevanceScoreSpec( * * *
          -     * Optional. The specification for returning the relevance score.
          +     * Session specification.
          +     *
          +     * Can be used only when `session` is set.
                * 
          * - * - * .google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.discoveryengine.v1.SearchRequest.SessionSpec session_spec = 42; */ - public Builder clearRelevanceScoreSpec() { - bitField0_ = (bitField0_ & ~0x10000000); - relevanceScoreSpec_ = null; - if (relevanceScoreSpecBuilder_ != null) { - relevanceScoreSpecBuilder_.dispose(); - relevanceScoreSpecBuilder_ = null; + public Builder clearSessionSpec() { + bitField0_ = (bitField0_ & ~0x80000000); + sessionSpec_ = null; + if (sessionSpecBuilder_ != null) { + sessionSpecBuilder_.dispose(); + sessionSpecBuilder_ = null; } onChanged(); return this; @@ -37001,182 +42475,39 @@ public Builder clearRelevanceScoreSpec() { * * *
          -     * Optional. The specification for returning the relevance score.
          -     * 
          - * - * - * .google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec.Builder - getRelevanceScoreSpecBuilder() { - bitField0_ |= 0x10000000; - onChanged(); - return internalGetRelevanceScoreSpecFieldBuilder().getBuilder(); - } - - /** - * - * - *
          -     * Optional. The specification for returning the relevance score.
          -     * 
          - * - * - * .google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpecOrBuilder - getRelevanceScoreSpecOrBuilder() { - if (relevanceScoreSpecBuilder_ != null) { - return relevanceScoreSpecBuilder_.getMessageOrBuilder(); - } else { - return relevanceScoreSpec_ == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec - .getDefaultInstance() - : relevanceScoreSpec_; - } - } - - /** - * + * Session specification. * - *
          -     * Optional. The specification for returning the relevance score.
          +     * Can be used only when `session` is set.
                * 
          * - * - * .google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.discoveryengine.v1.SearchRequest.SessionSpec session_spec = 42; */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec, - com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec.Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpecOrBuilder> - internalGetRelevanceScoreSpecFieldBuilder() { - if (relevanceScoreSpecBuilder_ == null) { - relevanceScoreSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec, - com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec.Builder, - com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpecOrBuilder>( - getRelevanceScoreSpec(), getParentForChildren(), isClean()); - relevanceScoreSpec_ = null; - } - return relevanceScoreSpecBuilder_; + public com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec.Builder + getSessionSpecBuilder() { + bitField0_ |= 0x80000000; + onChanged(); + return internalGetSessionSpecFieldBuilder().getBuilder(); } - private java.lang.Object rankingExpression_ = ""; - /** * * *
          -     * The ranking expression controls the customized ranking on retrieval
          -     * documents. This overrides
          -     * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1.ServingConfig.ranking_expression].
          -     * The syntax and supported features depend on the
          -     * `ranking_expression_backend` value. If `ranking_expression_backend` is not
          -     * provided, it defaults to `RANK_BY_EMBEDDING`.
          -     *
          -     * If
          -     * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend]
          -     * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single
          -     * function or multiple functions that are joined by "+".
          -     *
          -     * * ranking_expression = function, { " + ", function };
          -     *
          -     * Supported functions:
          -     *
          -     * * double * relevance_score
          -     * * double * dotProduct(embedding_field_path)
          -     *
          -     * Function variables:
          -     *
          -     * * `relevance_score`: pre-defined keywords, used for measure relevance
          -     * between query and document.
          -     * * `embedding_field_path`: the document embedding field
          -     * used with query embedding vector.
          -     * * `dotProduct`: embedding function between `embedding_field_path` and
          -     * query embedding vector.
          -     *
          -     * Example ranking expression:
          -     *
          -     * If document has an embedding field doc_embedding, the ranking expression
          -     * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
          -     *
          -     * If
          -     * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend]
          -     * is set to `RANK_BY_FORMULA`, the following expression types (and
          -     * combinations of those chained using + or
          -     * * operators) are supported:
          -     *
          -     * * `double`
          -     * * `signal`
          -     * * `log(signal)`
          -     * * `exp(signal)`
          -     * * `rr(signal, double > 0)`  -- reciprocal rank transformation with second
          -     * argument being a denominator constant.
          -     * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise.
          -     * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns
          -     * signal2 | double, else returns signal1.
          -     *
          -     * Here are a few examples of ranking formulas that use the supported
          -     * ranking expression types:
          -     *
          -     * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)`
          -     * -- mostly rank by the logarithm of `keyword_similarity_score` with slight
          -     * `semantic_smilarity_score` adjustment.
          -     * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 *
          -     * is_nan(keyword_similarity_score)` -- rank by the exponent of
          -     * `semantic_similarity_score` filling the value with 0 if it's NaN, also
          -     * add constant 0.3 adjustment to the final score if
          -     * `semantic_similarity_score` is NaN.
          -     * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 *
          -     * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank
          -     * of `keyword_similarity_score` with slight adjustment of reciprocal rank
          -     * of `semantic_smilarity_score`.
          -     *
          -     * The following signals are supported:
          +     * Session specification.
                *
          -     * * `semantic_similarity_score`: semantic similarity adjustment that is
          -     * calculated using the embeddings generated by a proprietary Google model.
          -     * This score determines how semantically similar a search query is to a
          -     * document.
          -     * * `keyword_similarity_score`: keyword match adjustment uses the Best
          -     * Match 25 (BM25) ranking function. This score is calculated using a
          -     * probabilistic model to estimate the probability that a document is
          -     * relevant to a given query.
          -     * * `relevance_score`: semantic relevance adjustment that uses a
          -     * proprietary Google model to determine the meaning and intent behind a
          -     * user's query in context with the content in the documents.
          -     * * `pctr_rank`: predicted conversion rate adjustment as a rank use
          -     * predicted Click-through rate (pCTR) to gauge the relevance and
          -     * attractiveness of a search result from a user's perspective. A higher
          -     * pCTR suggests that the result is more likely to satisfy the user's query
          -     * and intent, making it a valuable signal for ranking.
          -     * * `freshness_rank`: freshness adjustment as a rank
          -     * * `document_age`: The time in hours elapsed since the document was last
          -     * updated, a floating-point number (e.g., 0.25 means 15 minutes).
          -     * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary
          -     * Google model to determine the keyword-based overlap between the query and
          -     * the document.
          -     * * `base_rank`: the default rank of the result
          +     * Can be used only when `session` is set.
                * 
          * - * string ranking_expression = 26; - * - * @return The rankingExpression. + * .google.cloud.discoveryengine.v1.SearchRequest.SessionSpec session_spec = 42; */ - public java.lang.String getRankingExpression() { - java.lang.Object ref = rankingExpression_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rankingExpression_ = s; - return s; + public com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpecOrBuilder + getSessionSpecOrBuilder() { + if (sessionSpecBuilder_ != null) { + return sessionSpecBuilder_.getMessageOrBuilder(); } else { - return (java.lang.String) ref; + return sessionSpec_ == null + ? com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec.getDefaultInstance() + : sessionSpec_; } } @@ -37184,221 +42515,85 @@ public java.lang.String getRankingExpression() { * * *
          -     * The ranking expression controls the customized ranking on retrieval
          -     * documents. This overrides
          -     * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1.ServingConfig.ranking_expression].
          -     * The syntax and supported features depend on the
          -     * `ranking_expression_backend` value. If `ranking_expression_backend` is not
          -     * provided, it defaults to `RANK_BY_EMBEDDING`.
          -     *
          -     * If
          -     * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend]
          -     * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single
          -     * function or multiple functions that are joined by "+".
          -     *
          -     * * ranking_expression = function, { " + ", function };
          -     *
          -     * Supported functions:
          -     *
          -     * * double * relevance_score
          -     * * double * dotProduct(embedding_field_path)
          -     *
          -     * Function variables:
          -     *
          -     * * `relevance_score`: pre-defined keywords, used for measure relevance
          -     * between query and document.
          -     * * `embedding_field_path`: the document embedding field
          -     * used with query embedding vector.
          -     * * `dotProduct`: embedding function between `embedding_field_path` and
          -     * query embedding vector.
          -     *
          -     * Example ranking expression:
          -     *
          -     * If document has an embedding field doc_embedding, the ranking expression
          -     * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
          -     *
          -     * If
          -     * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend]
          -     * is set to `RANK_BY_FORMULA`, the following expression types (and
          -     * combinations of those chained using + or
          -     * * operators) are supported:
          -     *
          -     * * `double`
          -     * * `signal`
          -     * * `log(signal)`
          -     * * `exp(signal)`
          -     * * `rr(signal, double > 0)`  -- reciprocal rank transformation with second
          -     * argument being a denominator constant.
          -     * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise.
          -     * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns
          -     * signal2 | double, else returns signal1.
          -     *
          -     * Here are a few examples of ranking formulas that use the supported
          -     * ranking expression types:
          -     *
          -     * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)`
          -     * -- mostly rank by the logarithm of `keyword_similarity_score` with slight
          -     * `semantic_smilarity_score` adjustment.
          -     * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 *
          -     * is_nan(keyword_similarity_score)` -- rank by the exponent of
          -     * `semantic_similarity_score` filling the value with 0 if it's NaN, also
          -     * add constant 0.3 adjustment to the final score if
          -     * `semantic_similarity_score` is NaN.
          -     * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 *
          -     * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank
          -     * of `keyword_similarity_score` with slight adjustment of reciprocal rank
          -     * of `semantic_smilarity_score`.
          -     *
          -     * The following signals are supported:
          +     * Session specification.
                *
          -     * * `semantic_similarity_score`: semantic similarity adjustment that is
          -     * calculated using the embeddings generated by a proprietary Google model.
          -     * This score determines how semantically similar a search query is to a
          -     * document.
          -     * * `keyword_similarity_score`: keyword match adjustment uses the Best
          -     * Match 25 (BM25) ranking function. This score is calculated using a
          -     * probabilistic model to estimate the probability that a document is
          -     * relevant to a given query.
          -     * * `relevance_score`: semantic relevance adjustment that uses a
          -     * proprietary Google model to determine the meaning and intent behind a
          -     * user's query in context with the content in the documents.
          -     * * `pctr_rank`: predicted conversion rate adjustment as a rank use
          -     * predicted Click-through rate (pCTR) to gauge the relevance and
          -     * attractiveness of a search result from a user's perspective. A higher
          -     * pCTR suggests that the result is more likely to satisfy the user's query
          -     * and intent, making it a valuable signal for ranking.
          -     * * `freshness_rank`: freshness adjustment as a rank
          -     * * `document_age`: The time in hours elapsed since the document was last
          -     * updated, a floating-point number (e.g., 0.25 means 15 minutes).
          -     * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary
          -     * Google model to determine the keyword-based overlap between the query and
          -     * the document.
          -     * * `base_rank`: the default rank of the result
          +     * Can be used only when `session` is set.
                * 
          * - * string ranking_expression = 26; - * - * @return The bytes for rankingExpression. + * .google.cloud.discoveryengine.v1.SearchRequest.SessionSpec session_spec = 42; */ - public com.google.protobuf.ByteString getRankingExpressionBytes() { - java.lang.Object ref = rankingExpression_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - rankingExpression_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec, + com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec.Builder, + com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpecOrBuilder> + internalGetSessionSpecFieldBuilder() { + if (sessionSpecBuilder_ == null) { + sessionSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec, + com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpec.Builder, + com.google.cloud.discoveryengine.v1.SearchRequest.SessionSpecOrBuilder>( + getSessionSpec(), getParentForChildren(), isClean()); + sessionSpec_ = null; } + return sessionSpecBuilder_; } + private int relevanceThreshold_ = 0; + /** * * *
          -     * The ranking expression controls the customized ranking on retrieval
          -     * documents. This overrides
          -     * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1.ServingConfig.ranking_expression].
          -     * The syntax and supported features depend on the
          -     * `ranking_expression_backend` value. If `ranking_expression_backend` is not
          -     * provided, it defaults to `RANK_BY_EMBEDDING`.
          -     *
          -     * If
          -     * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend]
          -     * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single
          -     * function or multiple functions that are joined by "+".
          -     *
          -     * * ranking_expression = function, { " + ", function };
          -     *
          -     * Supported functions:
          +     * The global relevance threshold of the search results.
                *
          -     * * double * relevance_score
          -     * * double * dotProduct(embedding_field_path)
          -     *
          -     * Function variables:
          +     * Defaults to Google defined threshold, leveraging a balance of
          +     * precision and recall to deliver both highly accurate results and
          +     * comprehensive coverage of relevant information.
                *
          -     * * `relevance_score`: pre-defined keywords, used for measure relevance
          -     * between query and document.
          -     * * `embedding_field_path`: the document embedding field
          -     * used with query embedding vector.
          -     * * `dotProduct`: embedding function between `embedding_field_path` and
          -     * query embedding vector.
          +     * If more granular relevance filtering is required, use the
          +     * `relevance_filter_spec` instead.
                *
          -     * Example ranking expression:
          +     * This feature is not supported for healthcare search.
          +     * 
          * - * If document has an embedding field doc_embedding, the ranking expression - * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. + * + * .google.cloud.discoveryengine.v1.SearchRequest.RelevanceThreshold relevance_threshold = 44; + * * - * If - * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend] - * is set to `RANK_BY_FORMULA`, the following expression types (and - * combinations of those chained using + or - * * operators) are supported: + * @return The enum numeric value on the wire for relevanceThreshold. + */ + @java.lang.Override + public int getRelevanceThresholdValue() { + return relevanceThreshold_; + } + + /** * - * * `double` - * * `signal` - * * `log(signal)` - * * `exp(signal)` - * * `rr(signal, double > 0)` -- reciprocal rank transformation with second - * argument being a denominator constant. - * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise. - * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns - * signal2 | double, else returns signal1. * - * Here are a few examples of ranking formulas that use the supported - * ranking expression types: + *
          +     * The global relevance threshold of the search results.
                *
          -     * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)`
          -     * -- mostly rank by the logarithm of `keyword_similarity_score` with slight
          -     * `semantic_smilarity_score` adjustment.
          -     * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 *
          -     * is_nan(keyword_similarity_score)` -- rank by the exponent of
          -     * `semantic_similarity_score` filling the value with 0 if it's NaN, also
          -     * add constant 0.3 adjustment to the final score if
          -     * `semantic_similarity_score` is NaN.
          -     * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 *
          -     * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank
          -     * of `keyword_similarity_score` with slight adjustment of reciprocal rank
          -     * of `semantic_smilarity_score`.
          +     * Defaults to Google defined threshold, leveraging a balance of
          +     * precision and recall to deliver both highly accurate results and
          +     * comprehensive coverage of relevant information.
                *
          -     * The following signals are supported:
          +     * If more granular relevance filtering is required, use the
          +     * `relevance_filter_spec` instead.
                *
          -     * * `semantic_similarity_score`: semantic similarity adjustment that is
          -     * calculated using the embeddings generated by a proprietary Google model.
          -     * This score determines how semantically similar a search query is to a
          -     * document.
          -     * * `keyword_similarity_score`: keyword match adjustment uses the Best
          -     * Match 25 (BM25) ranking function. This score is calculated using a
          -     * probabilistic model to estimate the probability that a document is
          -     * relevant to a given query.
          -     * * `relevance_score`: semantic relevance adjustment that uses a
          -     * proprietary Google model to determine the meaning and intent behind a
          -     * user's query in context with the content in the documents.
          -     * * `pctr_rank`: predicted conversion rate adjustment as a rank use
          -     * predicted Click-through rate (pCTR) to gauge the relevance and
          -     * attractiveness of a search result from a user's perspective. A higher
          -     * pCTR suggests that the result is more likely to satisfy the user's query
          -     * and intent, making it a valuable signal for ranking.
          -     * * `freshness_rank`: freshness adjustment as a rank
          -     * * `document_age`: The time in hours elapsed since the document was last
          -     * updated, a floating-point number (e.g., 0.25 means 15 minutes).
          -     * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary
          -     * Google model to determine the keyword-based overlap between the query and
          -     * the document.
          -     * * `base_rank`: the default rank of the result
          +     * This feature is not supported for healthcare search.
                * 
          * - * string ranking_expression = 26; + * + * .google.cloud.discoveryengine.v1.SearchRequest.RelevanceThreshold relevance_threshold = 44; + * * - * @param value The rankingExpression to set. + * @param value The enum numeric value on the wire for relevanceThreshold to set. * @return This builder for chaining. */ - public Builder setRankingExpression(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - rankingExpression_ = value; - bitField0_ |= 0x20000000; + public Builder setRelevanceThresholdValue(int value) { + relevanceThreshold_ = value; + bitField1_ |= 0x00000001; onChanged(); return this; } @@ -37407,105 +42602,65 @@ public Builder setRankingExpression(java.lang.String value) { * * *
          -     * The ranking expression controls the customized ranking on retrieval
          -     * documents. This overrides
          -     * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1.ServingConfig.ranking_expression].
          -     * The syntax and supported features depend on the
          -     * `ranking_expression_backend` value. If `ranking_expression_backend` is not
          -     * provided, it defaults to `RANK_BY_EMBEDDING`.
          -     *
          -     * If
          -     * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend]
          -     * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single
          -     * function or multiple functions that are joined by "+".
          -     *
          -     * * ranking_expression = function, { " + ", function };
          -     *
          -     * Supported functions:
          -     *
          -     * * double * relevance_score
          -     * * double * dotProduct(embedding_field_path)
          +     * The global relevance threshold of the search results.
                *
          -     * Function variables:
          +     * Defaults to Google defined threshold, leveraging a balance of
          +     * precision and recall to deliver both highly accurate results and
          +     * comprehensive coverage of relevant information.
                *
          -     * * `relevance_score`: pre-defined keywords, used for measure relevance
          -     * between query and document.
          -     * * `embedding_field_path`: the document embedding field
          -     * used with query embedding vector.
          -     * * `dotProduct`: embedding function between `embedding_field_path` and
          -     * query embedding vector.
          +     * If more granular relevance filtering is required, use the
          +     * `relevance_filter_spec` instead.
                *
          -     * Example ranking expression:
          +     * This feature is not supported for healthcare search.
          +     * 
          * - * If document has an embedding field doc_embedding, the ranking expression - * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. + * + * .google.cloud.discoveryengine.v1.SearchRequest.RelevanceThreshold relevance_threshold = 44; + * * - * If - * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend] - * is set to `RANK_BY_FORMULA`, the following expression types (and - * combinations of those chained using + or - * * operators) are supported: + * @return The relevanceThreshold. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceThreshold + getRelevanceThreshold() { + com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceThreshold result = + com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceThreshold.forNumber( + relevanceThreshold_); + return result == null + ? com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceThreshold.UNRECOGNIZED + : result; + } + + /** * - * * `double` - * * `signal` - * * `log(signal)` - * * `exp(signal)` - * * `rr(signal, double > 0)` -- reciprocal rank transformation with second - * argument being a denominator constant. - * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise. - * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns - * signal2 | double, else returns signal1. * - * Here are a few examples of ranking formulas that use the supported - * ranking expression types: + *
          +     * The global relevance threshold of the search results.
                *
          -     * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)`
          -     * -- mostly rank by the logarithm of `keyword_similarity_score` with slight
          -     * `semantic_smilarity_score` adjustment.
          -     * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 *
          -     * is_nan(keyword_similarity_score)` -- rank by the exponent of
          -     * `semantic_similarity_score` filling the value with 0 if it's NaN, also
          -     * add constant 0.3 adjustment to the final score if
          -     * `semantic_similarity_score` is NaN.
          -     * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 *
          -     * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank
          -     * of `keyword_similarity_score` with slight adjustment of reciprocal rank
          -     * of `semantic_smilarity_score`.
          +     * Defaults to Google defined threshold, leveraging a balance of
          +     * precision and recall to deliver both highly accurate results and
          +     * comprehensive coverage of relevant information.
                *
          -     * The following signals are supported:
          +     * If more granular relevance filtering is required, use the
          +     * `relevance_filter_spec` instead.
                *
          -     * * `semantic_similarity_score`: semantic similarity adjustment that is
          -     * calculated using the embeddings generated by a proprietary Google model.
          -     * This score determines how semantically similar a search query is to a
          -     * document.
          -     * * `keyword_similarity_score`: keyword match adjustment uses the Best
          -     * Match 25 (BM25) ranking function. This score is calculated using a
          -     * probabilistic model to estimate the probability that a document is
          -     * relevant to a given query.
          -     * * `relevance_score`: semantic relevance adjustment that uses a
          -     * proprietary Google model to determine the meaning and intent behind a
          -     * user's query in context with the content in the documents.
          -     * * `pctr_rank`: predicted conversion rate adjustment as a rank use
          -     * predicted Click-through rate (pCTR) to gauge the relevance and
          -     * attractiveness of a search result from a user's perspective. A higher
          -     * pCTR suggests that the result is more likely to satisfy the user's query
          -     * and intent, making it a valuable signal for ranking.
          -     * * `freshness_rank`: freshness adjustment as a rank
          -     * * `document_age`: The time in hours elapsed since the document was last
          -     * updated, a floating-point number (e.g., 0.25 means 15 minutes).
          -     * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary
          -     * Google model to determine the keyword-based overlap between the query and
          -     * the document.
          -     * * `base_rank`: the default rank of the result
          +     * This feature is not supported for healthcare search.
                * 
          * - * string ranking_expression = 26; + * + * .google.cloud.discoveryengine.v1.SearchRequest.RelevanceThreshold relevance_threshold = 44; + * * + * @param value The relevanceThreshold to set. * @return This builder for chaining. */ - public Builder clearRankingExpression() { - rankingExpression_ = getDefaultInstance().getRankingExpression(); - bitField0_ = (bitField0_ & ~0x20000000); + public Builder setRelevanceThreshold( + com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceThreshold value) { + if (value == null) { + throw new NullPointerException(); + } + bitField1_ |= 0x00000001; + relevanceThreshold_ = value.getNumber(); onChanged(); return this; } @@ -37514,151 +42669,182 @@ public Builder clearRankingExpression() { * * *
          -     * The ranking expression controls the customized ranking on retrieval
          -     * documents. This overrides
          -     * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1.ServingConfig.ranking_expression].
          -     * The syntax and supported features depend on the
          -     * `ranking_expression_backend` value. If `ranking_expression_backend` is not
          -     * provided, it defaults to `RANK_BY_EMBEDDING`.
          +     * The global relevance threshold of the search results.
                *
          -     * If
          -     * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend]
          -     * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single
          -     * function or multiple functions that are joined by "+".
          +     * Defaults to Google defined threshold, leveraging a balance of
          +     * precision and recall to deliver both highly accurate results and
          +     * comprehensive coverage of relevant information.
                *
          -     * * ranking_expression = function, { " + ", function };
          +     * If more granular relevance filtering is required, use the
          +     * `relevance_filter_spec` instead.
                *
          -     * Supported functions:
          +     * This feature is not supported for healthcare search.
          +     * 
          * - * * double * relevance_score - * * double * dotProduct(embedding_field_path) + * + * .google.cloud.discoveryengine.v1.SearchRequest.RelevanceThreshold relevance_threshold = 44; + * * - * Function variables: + * @return This builder for chaining. + */ + public Builder clearRelevanceThreshold() { + bitField1_ = (bitField1_ & ~0x00000001); + relevanceThreshold_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec + relevanceScoreSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec, + com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec.Builder, + com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpecOrBuilder> + relevanceScoreSpecBuilder_; + + /** * - * * `relevance_score`: pre-defined keywords, used for measure relevance - * between query and document. - * * `embedding_field_path`: the document embedding field - * used with query embedding vector. - * * `dotProduct`: embedding function between `embedding_field_path` and - * query embedding vector. * - * Example ranking expression: + *
          +     * Optional. The specification for returning the relevance score.
          +     * 
          * - * If document has an embedding field doc_embedding, the ranking expression - * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. + * + * .google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL]; + * * - * If - * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend] - * is set to `RANK_BY_FORMULA`, the following expression types (and - * combinations of those chained using + or - * * operators) are supported: + * @return Whether the relevanceScoreSpec field is set. + */ + public boolean hasRelevanceScoreSpec() { + return ((bitField1_ & 0x00000002) != 0); + } + + /** * - * * `double` - * * `signal` - * * `log(signal)` - * * `exp(signal)` - * * `rr(signal, double > 0)` -- reciprocal rank transformation with second - * argument being a denominator constant. - * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise. - * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns - * signal2 | double, else returns signal1. * - * Here are a few examples of ranking formulas that use the supported - * ranking expression types: + *
          +     * Optional. The specification for returning the relevance score.
          +     * 
          * - * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)` - * -- mostly rank by the logarithm of `keyword_similarity_score` with slight - * `semantic_smilarity_score` adjustment. - * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 * - * is_nan(keyword_similarity_score)` -- rank by the exponent of - * `semantic_similarity_score` filling the value with 0 if it's NaN, also - * add constant 0.3 adjustment to the final score if - * `semantic_similarity_score` is NaN. - * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 * - * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank - * of `keyword_similarity_score` with slight adjustment of reciprocal rank - * of `semantic_smilarity_score`. + * + * .google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL]; + * * - * The following signals are supported: + * @return The relevanceScoreSpec. + */ + public com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec + getRelevanceScoreSpec() { + if (relevanceScoreSpecBuilder_ == null) { + return relevanceScoreSpec_ == null + ? com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec + .getDefaultInstance() + : relevanceScoreSpec_; + } else { + return relevanceScoreSpecBuilder_.getMessage(); + } + } + + /** * - * * `semantic_similarity_score`: semantic similarity adjustment that is - * calculated using the embeddings generated by a proprietary Google model. - * This score determines how semantically similar a search query is to a - * document. - * * `keyword_similarity_score`: keyword match adjustment uses the Best - * Match 25 (BM25) ranking function. This score is calculated using a - * probabilistic model to estimate the probability that a document is - * relevant to a given query. - * * `relevance_score`: semantic relevance adjustment that uses a - * proprietary Google model to determine the meaning and intent behind a - * user's query in context with the content in the documents. - * * `pctr_rank`: predicted conversion rate adjustment as a rank use - * predicted Click-through rate (pCTR) to gauge the relevance and - * attractiveness of a search result from a user's perspective. A higher - * pCTR suggests that the result is more likely to satisfy the user's query - * and intent, making it a valuable signal for ranking. - * * `freshness_rank`: freshness adjustment as a rank - * * `document_age`: The time in hours elapsed since the document was last - * updated, a floating-point number (e.g., 0.25 means 15 minutes). - * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary - * Google model to determine the keyword-based overlap between the query and - * the document. - * * `base_rank`: the default rank of the result - *
          * - * string ranking_expression = 26; + *
          +     * Optional. The specification for returning the relevance score.
          +     * 
          * - * @param value The bytes for rankingExpression to set. - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setRankingExpressionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder setRelevanceScoreSpec( + com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec value) { + if (relevanceScoreSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + relevanceScoreSpec_ = value; + } else { + relevanceScoreSpecBuilder_.setMessage(value); } - checkByteStringIsUtf8(value); - rankingExpression_ = value; - bitField0_ |= 0x20000000; + bitField1_ |= 0x00000002; onChanged(); return this; } - private int rankingExpressionBackend_ = 0; - /** * * *
          -     * The backend to use for the ranking expression evaluation.
          +     * Optional. The specification for returning the relevance score.
                * 
          * * - * .google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend ranking_expression_backend = 53 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The enum numeric value on the wire for rankingExpressionBackend. */ - @java.lang.Override - public int getRankingExpressionBackendValue() { - return rankingExpressionBackend_; + public Builder setRelevanceScoreSpec( + com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec.Builder + builderForValue) { + if (relevanceScoreSpecBuilder_ == null) { + relevanceScoreSpec_ = builderForValue.build(); + } else { + relevanceScoreSpecBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000002; + onChanged(); + return this; } /** * * *
          -     * The backend to use for the ranking expression evaluation.
          +     * Optional. The specification for returning the relevance score.
                * 
          * * - * .google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend ranking_expression_backend = 53 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL]; * + */ + public Builder mergeRelevanceScoreSpec( + com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec value) { + if (relevanceScoreSpecBuilder_ == null) { + if (((bitField1_ & 0x00000002) != 0) + && relevanceScoreSpec_ != null + && relevanceScoreSpec_ + != com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec + .getDefaultInstance()) { + getRelevanceScoreSpecBuilder().mergeFrom(value); + } else { + relevanceScoreSpec_ = value; + } + } else { + relevanceScoreSpecBuilder_.mergeFrom(value); + } + if (relevanceScoreSpec_ != null) { + bitField1_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** * - * @param value The enum numeric value on the wire for rankingExpressionBackend to set. - * @return This builder for chaining. + * + *
          +     * Optional. The specification for returning the relevance score.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setRankingExpressionBackendValue(int value) { - rankingExpressionBackend_ = value; - bitField0_ |= 0x40000000; + public Builder clearRelevanceScoreSpec() { + bitField1_ = (bitField1_ & ~0x00000002); + relevanceScoreSpec_ = null; + if (relevanceScoreSpecBuilder_ != null) { + relevanceScoreSpecBuilder_.dispose(); + relevanceScoreSpecBuilder_ = null; + } onChanged(); return this; } @@ -37667,69 +42853,69 @@ public Builder setRankingExpressionBackendValue(int value) { * * *
          -     * The backend to use for the ranking expression evaluation.
          +     * Optional. The specification for returning the relevance score.
                * 
          * * - * .google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend ranking_expression_backend = 53 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The rankingExpressionBackend. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend - getRankingExpressionBackend() { - com.google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend result = - com.google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend.forNumber( - rankingExpressionBackend_); - return result == null - ? com.google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend.UNRECOGNIZED - : result; + public com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec.Builder + getRelevanceScoreSpecBuilder() { + bitField1_ |= 0x00000002; + onChanged(); + return internalGetRelevanceScoreSpecFieldBuilder().getBuilder(); } /** * * *
          -     * The backend to use for the ranking expression evaluation.
          +     * Optional. The specification for returning the relevance score.
                * 
          * * - * .google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend ranking_expression_backend = 53 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The rankingExpressionBackend to set. - * @return This builder for chaining. */ - public Builder setRankingExpressionBackend( - com.google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpecOrBuilder + getRelevanceScoreSpecOrBuilder() { + if (relevanceScoreSpecBuilder_ != null) { + return relevanceScoreSpecBuilder_.getMessageOrBuilder(); + } else { + return relevanceScoreSpec_ == null + ? com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec + .getDefaultInstance() + : relevanceScoreSpec_; } - bitField0_ |= 0x40000000; - rankingExpressionBackend_ = value.getNumber(); - onChanged(); - return this; } /** * * *
          -     * The backend to use for the ranking expression evaluation.
          +     * Optional. The specification for returning the relevance score.
                * 
          * * - * .google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend ranking_expression_backend = 53 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return This builder for chaining. */ - public Builder clearRankingExpressionBackend() { - bitField0_ = (bitField0_ & ~0x40000000); - rankingExpressionBackend_ = 0; - onChanged(); - return this; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec, + com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec.Builder, + com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpecOrBuilder> + internalGetRelevanceScoreSpecFieldBuilder() { + if (relevanceScoreSpecBuilder_ == null) { + relevanceScoreSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec, + com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec.Builder, + com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpecOrBuilder>( + getRelevanceScoreSpec(), getParentForChildren(), isClean()); + relevanceScoreSpec_ = null; + } + return relevanceScoreSpecBuilder_; } // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchRequest) diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequestOrBuilder.java index da246f286567..32423ddb2971 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequestOrBuilder.java @@ -126,6 +126,124 @@ public interface SearchRequestOrBuilder */ com.google.protobuf.ByteString getQueryBytes(); + /** + * + * + *
          +   * Optional. The categories associated with a category page. Must be set for
          +   * category navigation queries to achieve good search quality. The format
          +   * should be the same as
          +   * [PageInfo.page_category][google.cloud.discoveryengine.v1.PageInfo.page_category].
          +   * This field is the equivalent of the query for browse (navigation) queries.
          +   * It's used by the browse model when the query is empty.
          +   *
          +   * If the field is empty, it will not be used by the browse model.
          +   * If the field contains more than one element, only the first element will
          +   * be used.
          +   *
          +   * To represent full path of a category, use '>' character to separate
          +   * different hierarchies. If '>' is part of the category name, replace it with
          +   * other character(s).
          +   * For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX >
          +   * 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
          +   * > Founders Edition`
          +   * 
          + * + * repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the pageCategories. + */ + java.util.List getPageCategoriesList(); + + /** + * + * + *
          +   * Optional. The categories associated with a category page. Must be set for
          +   * category navigation queries to achieve good search quality. The format
          +   * should be the same as
          +   * [PageInfo.page_category][google.cloud.discoveryengine.v1.PageInfo.page_category].
          +   * This field is the equivalent of the query for browse (navigation) queries.
          +   * It's used by the browse model when the query is empty.
          +   *
          +   * If the field is empty, it will not be used by the browse model.
          +   * If the field contains more than one element, only the first element will
          +   * be used.
          +   *
          +   * To represent full path of a category, use '>' character to separate
          +   * different hierarchies. If '>' is part of the category name, replace it with
          +   * other character(s).
          +   * For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX >
          +   * 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
          +   * > Founders Edition`
          +   * 
          + * + * repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of pageCategories. + */ + int getPageCategoriesCount(); + + /** + * + * + *
          +   * Optional. The categories associated with a category page. Must be set for
          +   * category navigation queries to achieve good search quality. The format
          +   * should be the same as
          +   * [PageInfo.page_category][google.cloud.discoveryengine.v1.PageInfo.page_category].
          +   * This field is the equivalent of the query for browse (navigation) queries.
          +   * It's used by the browse model when the query is empty.
          +   *
          +   * If the field is empty, it will not be used by the browse model.
          +   * If the field contains more than one element, only the first element will
          +   * be used.
          +   *
          +   * To represent full path of a category, use '>' character to separate
          +   * different hierarchies. If '>' is part of the category name, replace it with
          +   * other character(s).
          +   * For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX >
          +   * 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
          +   * > Founders Edition`
          +   * 
          + * + * repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The pageCategories at the given index. + */ + java.lang.String getPageCategories(int index); + + /** + * + * + *
          +   * Optional. The categories associated with a category page. Must be set for
          +   * category navigation queries to achieve good search quality. The format
          +   * should be the same as
          +   * [PageInfo.page_category][google.cloud.discoveryengine.v1.PageInfo.page_category].
          +   * This field is the equivalent of the query for browse (navigation) queries.
          +   * It's used by the browse model when the query is empty.
          +   *
          +   * If the field is empty, it will not be used by the browse model.
          +   * If the field contains more than one element, only the first element will
          +   * be used.
          +   *
          +   * To represent full path of a category, use '>' character to separate
          +   * different hierarchies. If '>' is part of the category name, replace it with
          +   * other character(s).
          +   * For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX >
          +   * 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
          +   * > Founders Edition`
          +   * 
          + * + * repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the pageCategories at the given index. + */ + com.google.protobuf.ByteString getPageCategoriesBytes(int index); + /** * * @@ -236,6 +354,8 @@ public interface SearchRequestOrBuilder * unset. * * If this field is negative, an `INVALID_ARGUMENT` is returned. + * + * A large offset may be capped to a reasonable threshold. *
          * * int32 offset = 6; @@ -933,10 +1053,10 @@ com.google.protobuf.Value getParamsOrDefault( * * *
          -   * A unique identifier for tracking visitors. For example, this could be
          -   * implemented with an HTTP cookie, which should be able to uniquely identify
          -   * a visitor on a single device. This unique identifier should not change if
          -   * the visitor logs in or out of the website.
          +   * Optional. A unique identifier for tracking visitors. For example, this
          +   * could be implemented with an HTTP cookie, which should be able to uniquely
          +   * identify a visitor on a single device. This unique identifier should not
          +   * change if the visitor logs in or out of the website.
              *
              * This field should NOT have a fixed value such as `unknown_visitor`.
              *
          @@ -949,7 +1069,7 @@ com.google.protobuf.Value getParamsOrDefault(
              * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
              * 
          * - * string user_pseudo_id = 15; + * string user_pseudo_id = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return The userPseudoId. */ @@ -959,10 +1079,10 @@ com.google.protobuf.Value getParamsOrDefault( * * *
          -   * A unique identifier for tracking visitors. For example, this could be
          -   * implemented with an HTTP cookie, which should be able to uniquely identify
          -   * a visitor on a single device. This unique identifier should not change if
          -   * the visitor logs in or out of the website.
          +   * Optional. A unique identifier for tracking visitors. For example, this
          +   * could be implemented with an HTTP cookie, which should be able to uniquely
          +   * identify a visitor on a single device. This unique identifier should not
          +   * change if the visitor logs in or out of the website.
              *
              * This field should NOT have a fixed value such as `unknown_visitor`.
              *
          @@ -975,7 +1095,7 @@ com.google.protobuf.Value getParamsOrDefault(
              * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
              * 
          * - * string user_pseudo_id = 15; + * string user_pseudo_id = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for userPseudoId. */ @@ -1029,149 +1149,384 @@ com.google.protobuf.Value getParamsOrDefault( * * *
          -   * Whether to turn on safe search. This is only supported for
          -   * website search.
          -   * 
          - * - * bool safe_search = 20; - * - * @return The safeSearch. - */ - boolean getSafeSearch(); - - /** + * Optional. The ranking expression controls the customized ranking on + * retrieval documents. This overrides + * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1.ServingConfig.ranking_expression]. + * The syntax and supported features depend on the + * `ranking_expression_backend` value. If `ranking_expression_backend` is not + * provided, it defaults to `RANK_BY_EMBEDDING`. * + * If + * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend] + * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single + * function or multiple functions that are joined by "+". * - *
          -   * The user labels applied to a resource must meet the following requirements:
          +   * * ranking_expression = function, { " + ", function };
              *
          -   * * Each resource can have multiple labels, up to a maximum of 64.
          -   * * Each label must be a key-value pair.
          -   * * Keys have a minimum length of 1 character and a maximum length of 63
          -   * characters and cannot be empty. Values can be empty and have a maximum
          -   * length of 63 characters.
          -   * * Keys and values can contain only lowercase letters, numeric characters,
          -   * underscores, and dashes. All characters must use UTF-8 encoding, and
          -   * international characters are allowed.
          -   * * The key portion of a label must be unique. However, you can use the same
          -   * key with multiple resources.
          -   * * Keys must start with a lowercase letter or international character.
          +   * Supported functions:
              *
          -   * See [Google Cloud
          -   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
          -   * for more details.
          -   * 
          + * * double * relevance_score + * * double * dotProduct(embedding_field_path) * - * map<string, string> user_labels = 22; - */ - int getUserLabelsCount(); - - /** + * Function variables: * + * * `relevance_score`: pre-defined keywords, used for measure relevance + * between query and document. + * * `embedding_field_path`: the document embedding field + * used with query embedding vector. + * * `dotProduct`: embedding function between `embedding_field_path` and + * query embedding vector. * - *
          -   * The user labels applied to a resource must meet the following requirements:
          +   * Example ranking expression:
              *
          -   * * Each resource can have multiple labels, up to a maximum of 64.
          -   * * Each label must be a key-value pair.
          -   * * Keys have a minimum length of 1 character and a maximum length of 63
          -   * characters and cannot be empty. Values can be empty and have a maximum
          -   * length of 63 characters.
          -   * * Keys and values can contain only lowercase letters, numeric characters,
          -   * underscores, and dashes. All characters must use UTF-8 encoding, and
          -   * international characters are allowed.
          -   * * The key portion of a label must be unique. However, you can use the same
          -   * key with multiple resources.
          -   * * Keys must start with a lowercase letter or international character.
          +   * If document has an embedding field doc_embedding, the ranking expression
          +   * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
              *
          -   * See [Google Cloud
          -   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
          -   * for more details.
          -   * 
          + * If + * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend] + * is set to `RANK_BY_FORMULA`, the following expression types (and + * combinations of those chained using + or + * * operators) are supported: * - * map<string, string> user_labels = 22; - */ - boolean containsUserLabels(java.lang.String key); - - /** Use {@link #getUserLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getUserLabels(); - - /** + * * `double` + * * `signal` + * * `log(signal)` + * * `exp(signal)` + * * `rr(signal, double > 0)` -- reciprocal rank transformation with second + * argument being a denominator constant. + * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise. + * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns + * signal2 | double, else returns signal1. * + * Here are a few examples of ranking formulas that use the supported + * ranking expression types: * - *
          -   * The user labels applied to a resource must meet the following requirements:
          +   * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)`
          +   * -- mostly rank by the logarithm of `keyword_similarity_score` with slight
          +   * `semantic_smilarity_score` adjustment.
          +   * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 *
          +   * is_nan(keyword_similarity_score)` -- rank by the exponent of
          +   * `semantic_similarity_score` filling the value with 0 if it's NaN, also
          +   * add constant 0.3 adjustment to the final score if
          +   * `semantic_similarity_score` is NaN.
          +   * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 *
          +   * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank
          +   * of `keyword_similarity_score` with slight adjustment of reciprocal rank
          +   * of `semantic_smilarity_score`.
              *
          -   * * Each resource can have multiple labels, up to a maximum of 64.
          -   * * Each label must be a key-value pair.
          -   * * Keys have a minimum length of 1 character and a maximum length of 63
          -   * characters and cannot be empty. Values can be empty and have a maximum
          -   * length of 63 characters.
          -   * * Keys and values can contain only lowercase letters, numeric characters,
          -   * underscores, and dashes. All characters must use UTF-8 encoding, and
          -   * international characters are allowed.
          -   * * The key portion of a label must be unique. However, you can use the same
          -   * key with multiple resources.
          -   * * Keys must start with a lowercase letter or international character.
          +   * The following signals are supported:
              *
          -   * See [Google Cloud
          -   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
          -   * for more details.
          +   * * `semantic_similarity_score`: semantic similarity adjustment that is
          +   * calculated using the embeddings generated by a proprietary Google model.
          +   * This score determines how semantically similar a search query is to a
          +   * document.
          +   * * `keyword_similarity_score`: keyword match adjustment uses the Best
          +   * Match 25 (BM25) ranking function. This score is calculated using a
          +   * probabilistic model to estimate the probability that a document is
          +   * relevant to a given query.
          +   * * `relevance_score`: semantic relevance adjustment that uses a
          +   * proprietary Google model to determine the meaning and intent behind a
          +   * user's query in context with the content in the documents.
          +   * * `pctr_rank`: predicted conversion rate adjustment as a rank use
          +   * predicted Click-through rate (pCTR) to gauge the relevance and
          +   * attractiveness of a search result from a user's perspective. A higher
          +   * pCTR suggests that the result is more likely to satisfy the user's query
          +   * and intent, making it a valuable signal for ranking.
          +   * * `freshness_rank`: freshness adjustment as a rank
          +   * * `document_age`: The time in hours elapsed since the document was last
          +   * updated, a floating-point number (e.g., 0.25 means 15 minutes).
          +   * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary
          +   * Google model to determine the keyword-based overlap between the query and
          +   * the document.
          +   * * `base_rank`: the default rank of the result
              * 
          * - * map<string, string> user_labels = 22; + * string ranking_expression = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The rankingExpression. */ - java.util.Map getUserLabelsMap(); + java.lang.String getRankingExpression(); /** * * *
          -   * The user labels applied to a resource must meet the following requirements:
          +   * Optional. The ranking expression controls the customized ranking on
          +   * retrieval documents. This overrides
          +   * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1.ServingConfig.ranking_expression].
          +   * The syntax and supported features depend on the
          +   * `ranking_expression_backend` value. If `ranking_expression_backend` is not
          +   * provided, it defaults to `RANK_BY_EMBEDDING`.
              *
          -   * * Each resource can have multiple labels, up to a maximum of 64.
          -   * * Each label must be a key-value pair.
          -   * * Keys have a minimum length of 1 character and a maximum length of 63
          -   * characters and cannot be empty. Values can be empty and have a maximum
          -   * length of 63 characters.
          -   * * Keys and values can contain only lowercase letters, numeric characters,
          -   * underscores, and dashes. All characters must use UTF-8 encoding, and
          -   * international characters are allowed.
          -   * * The key portion of a label must be unique. However, you can use the same
          -   * key with multiple resources.
          -   * * Keys must start with a lowercase letter or international character.
          +   * If
          +   * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend]
          +   * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single
          +   * function or multiple functions that are joined by "+".
              *
          -   * See [Google Cloud
          -   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
          -   * for more details.
          -   * 
          + * * ranking_expression = function, { " + ", function }; * - * map<string, string> user_labels = 22; - */ - /* nullable */ - java.lang.String getUserLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - - /** + * Supported functions: * + * * double * relevance_score + * * double * dotProduct(embedding_field_path) * - *
          -   * The user labels applied to a resource must meet the following requirements:
          +   * Function variables:
              *
          -   * * Each resource can have multiple labels, up to a maximum of 64.
          -   * * Each label must be a key-value pair.
          -   * * Keys have a minimum length of 1 character and a maximum length of 63
          -   * characters and cannot be empty. Values can be empty and have a maximum
          -   * length of 63 characters.
          -   * * Keys and values can contain only lowercase letters, numeric characters,
          -   * underscores, and dashes. All characters must use UTF-8 encoding, and
          -   * international characters are allowed.
          -   * * The key portion of a label must be unique. However, you can use the same
          -   * key with multiple resources.
          -   * * Keys must start with a lowercase letter or international character.
          +   * * `relevance_score`: pre-defined keywords, used for measure relevance
          +   * between query and document.
          +   * * `embedding_field_path`: the document embedding field
          +   * used with query embedding vector.
          +   * * `dotProduct`: embedding function between `embedding_field_path` and
          +   * query embedding vector.
          +   *
          +   * Example ranking expression:
          +   *
          +   * If document has an embedding field doc_embedding, the ranking expression
          +   * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
          +   *
          +   * If
          +   * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend]
          +   * is set to `RANK_BY_FORMULA`, the following expression types (and
          +   * combinations of those chained using + or
          +   * * operators) are supported:
          +   *
          +   * * `double`
          +   * * `signal`
          +   * * `log(signal)`
          +   * * `exp(signal)`
          +   * * `rr(signal, double > 0)`  -- reciprocal rank transformation with second
          +   * argument being a denominator constant.
          +   * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise.
          +   * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns
          +   * signal2 | double, else returns signal1.
          +   *
          +   * Here are a few examples of ranking formulas that use the supported
          +   * ranking expression types:
          +   *
          +   * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)`
          +   * -- mostly rank by the logarithm of `keyword_similarity_score` with slight
          +   * `semantic_smilarity_score` adjustment.
          +   * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 *
          +   * is_nan(keyword_similarity_score)` -- rank by the exponent of
          +   * `semantic_similarity_score` filling the value with 0 if it's NaN, also
          +   * add constant 0.3 adjustment to the final score if
          +   * `semantic_similarity_score` is NaN.
          +   * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 *
          +   * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank
          +   * of `keyword_similarity_score` with slight adjustment of reciprocal rank
          +   * of `semantic_smilarity_score`.
          +   *
          +   * The following signals are supported:
          +   *
          +   * * `semantic_similarity_score`: semantic similarity adjustment that is
          +   * calculated using the embeddings generated by a proprietary Google model.
          +   * This score determines how semantically similar a search query is to a
          +   * document.
          +   * * `keyword_similarity_score`: keyword match adjustment uses the Best
          +   * Match 25 (BM25) ranking function. This score is calculated using a
          +   * probabilistic model to estimate the probability that a document is
          +   * relevant to a given query.
          +   * * `relevance_score`: semantic relevance adjustment that uses a
          +   * proprietary Google model to determine the meaning and intent behind a
          +   * user's query in context with the content in the documents.
          +   * * `pctr_rank`: predicted conversion rate adjustment as a rank use
          +   * predicted Click-through rate (pCTR) to gauge the relevance and
          +   * attractiveness of a search result from a user's perspective. A higher
          +   * pCTR suggests that the result is more likely to satisfy the user's query
          +   * and intent, making it a valuable signal for ranking.
          +   * * `freshness_rank`: freshness adjustment as a rank
          +   * * `document_age`: The time in hours elapsed since the document was last
          +   * updated, a floating-point number (e.g., 0.25 means 15 minutes).
          +   * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary
          +   * Google model to determine the keyword-based overlap between the query and
          +   * the document.
          +   * * `base_rank`: the default rank of the result
          +   * 
          + * + * string ranking_expression = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for rankingExpression. + */ + com.google.protobuf.ByteString getRankingExpressionBytes(); + + /** + * + * + *
          +   * Optional. The backend to use for the ranking expression evaluation.
          +   * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend ranking_expression_backend = 53 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for rankingExpressionBackend. + */ + int getRankingExpressionBackendValue(); + + /** + * + * + *
          +   * Optional. The backend to use for the ranking expression evaluation.
          +   * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend ranking_expression_backend = 53 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rankingExpressionBackend. + */ + com.google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend + getRankingExpressionBackend(); + + /** + * + * + *
          +   * Whether to turn on safe search. This is only supported for
          +   * website search.
          +   * 
          + * + * bool safe_search = 20; + * + * @return The safeSearch. + */ + boolean getSafeSearch(); + + /** + * + * + *
          +   * The user labels applied to a resource must meet the following requirements:
          +   *
          +   * * Each resource can have multiple labels, up to a maximum of 64.
          +   * * Each label must be a key-value pair.
          +   * * Keys have a minimum length of 1 character and a maximum length of 63
          +   * characters and cannot be empty. Values can be empty and have a maximum
          +   * length of 63 characters.
          +   * * Keys and values can contain only lowercase letters, numeric characters,
          +   * underscores, and dashes. All characters must use UTF-8 encoding, and
          +   * international characters are allowed.
          +   * * The key portion of a label must be unique. However, you can use the same
          +   * key with multiple resources.
          +   * * Keys must start with a lowercase letter or international character.
          +   *
          +   * See [Google Cloud
          +   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
          +   * for more details.
          +   * 
          + * + * map<string, string> user_labels = 22; + */ + int getUserLabelsCount(); + + /** + * + * + *
          +   * The user labels applied to a resource must meet the following requirements:
          +   *
          +   * * Each resource can have multiple labels, up to a maximum of 64.
          +   * * Each label must be a key-value pair.
          +   * * Keys have a minimum length of 1 character and a maximum length of 63
          +   * characters and cannot be empty. Values can be empty and have a maximum
          +   * length of 63 characters.
          +   * * Keys and values can contain only lowercase letters, numeric characters,
          +   * underscores, and dashes. All characters must use UTF-8 encoding, and
          +   * international characters are allowed.
          +   * * The key portion of a label must be unique. However, you can use the same
          +   * key with multiple resources.
          +   * * Keys must start with a lowercase letter or international character.
          +   *
          +   * See [Google Cloud
          +   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
          +   * for more details.
          +   * 
          + * + * map<string, string> user_labels = 22; + */ + boolean containsUserLabels(java.lang.String key); + + /** Use {@link #getUserLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getUserLabels(); + + /** + * + * + *
          +   * The user labels applied to a resource must meet the following requirements:
          +   *
          +   * * Each resource can have multiple labels, up to a maximum of 64.
          +   * * Each label must be a key-value pair.
          +   * * Keys have a minimum length of 1 character and a maximum length of 63
          +   * characters and cannot be empty. Values can be empty and have a maximum
          +   * length of 63 characters.
          +   * * Keys and values can contain only lowercase letters, numeric characters,
          +   * underscores, and dashes. All characters must use UTF-8 encoding, and
          +   * international characters are allowed.
          +   * * The key portion of a label must be unique. However, you can use the same
          +   * key with multiple resources.
          +   * * Keys must start with a lowercase letter or international character.
          +   *
          +   * See [Google Cloud
          +   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
          +   * for more details.
          +   * 
          + * + * map<string, string> user_labels = 22; + */ + java.util.Map getUserLabelsMap(); + + /** + * + * + *
          +   * The user labels applied to a resource must meet the following requirements:
          +   *
          +   * * Each resource can have multiple labels, up to a maximum of 64.
          +   * * Each label must be a key-value pair.
          +   * * Keys have a minimum length of 1 character and a maximum length of 63
          +   * characters and cannot be empty. Values can be empty and have a maximum
          +   * length of 63 characters.
          +   * * Keys and values can contain only lowercase letters, numeric characters,
          +   * underscores, and dashes. All characters must use UTF-8 encoding, and
          +   * international characters are allowed.
          +   * * The key portion of a label must be unique. However, you can use the same
          +   * key with multiple resources.
          +   * * Keys must start with a lowercase letter or international character.
          +   *
          +   * See [Google Cloud
          +   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
          +   * for more details.
          +   * 
          + * + * map<string, string> user_labels = 22; + */ + /* nullable */ + java.lang.String getUserLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
          +   * The user labels applied to a resource must meet the following requirements:
          +   *
          +   * * Each resource can have multiple labels, up to a maximum of 64.
          +   * * Each label must be a key-value pair.
          +   * * Keys have a minimum length of 1 character and a maximum length of 63
          +   * characters and cannot be empty. Values can be empty and have a maximum
          +   * length of 63 characters.
          +   * * Keys and values can contain only lowercase letters, numeric characters,
          +   * underscores, and dashes. All characters must use UTF-8 encoding, and
          +   * international characters are allowed.
          +   * * The key portion of a label must be unique. However, you can use the same
          +   * key with multiple resources.
          +   * * Keys must start with a lowercase letter or international character.
              *
              * See [Google Cloud
              * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
          @@ -1182,6 +1537,66 @@ java.lang.String getUserLabelsOrDefault(
              */
             java.lang.String getUserLabelsOrThrow(java.lang.String key);
           
          +  /**
          +   *
          +   *
          +   * 
          +   * Optional. Config for natural language query understanding capabilities,
          +   * such as extracting structured field filters from the query. Refer to [this
          +   * documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries)
          +   * for more information.
          +   * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
          +   * natural language query understanding will be done.
          +   * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the naturalLanguageQueryUnderstandingSpec field is set. + */ + boolean hasNaturalLanguageQueryUnderstandingSpec(); + + /** + * + * + *
          +   * Optional. Config for natural language query understanding capabilities,
          +   * such as extracting structured field filters from the query. Refer to [this
          +   * documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries)
          +   * for more information.
          +   * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
          +   * natural language query understanding will be done.
          +   * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The naturalLanguageQueryUnderstandingSpec. + */ + com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec + getNaturalLanguageQueryUnderstandingSpec(); + + /** + * + * + *
          +   * Optional. Config for natural language query understanding capabilities,
          +   * such as extracting structured field filters from the query. Refer to [this
          +   * documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries)
          +   * for more information.
          +   * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
          +   * natural language query understanding will be done.
          +   * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpecOrBuilder + getNaturalLanguageQueryUnderstandingSpecOrBuilder(); + /** * * @@ -1209,74 +1624,182 @@ java.lang.String getUserLabelsOrDefault( *
          * * - * .google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; + * .google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; + * + * + * @return The searchAsYouTypeSpec. + */ + com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec getSearchAsYouTypeSpec(); + + /** + * + * + *
          +   * Search as you type configuration. Only supported for the
          +   * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1.IndustryVertical.MEDIA]
          +   * vertical.
          +   * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; + * + */ + com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpecOrBuilder + getSearchAsYouTypeSpecOrBuilder(); + + /** + * + * + *
          +   * Optional. Config for display feature, like match highlighting on search
          +   * results.
          +   * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec display_spec = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the displaySpec field is set. + */ + boolean hasDisplaySpec(); + + /** + * + * + *
          +   * Optional. Config for display feature, like match highlighting on search
          +   * results.
          +   * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec display_spec = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The displaySpec. + */ + com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec getDisplaySpec(); + + /** + * + * + *
          +   * Optional. Config for display feature, like match highlighting on search
          +   * results.
          +   * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec display_spec = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpecOrBuilder getDisplaySpecOrBuilder(); + + /** + * + * + *
          +   * Optional. Crowding specifications for improving result diversity.
          +   * If multiple CrowdingSpecs are specified, crowding will be evaluated on
          +   * each unique combination of the `field` values, and max_count will be the
          +   * maximum value of `max_count` across all CrowdingSpecs.
          +   * For example, if the first CrowdingSpec has `field` = "color" and
          +   * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
          +   * `max_count` = 2, then after 3 documents that share the same color AND size
          +   * have been returned, subsequent ones should be
          +   * removed or demoted.
          +   * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The searchAsYouTypeSpec. */ - com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec getSearchAsYouTypeSpec(); + java.util.List + getCrowdingSpecsList(); /** * * *
          -   * Search as you type configuration. Only supported for the
          -   * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1.IndustryVertical.MEDIA]
          -   * vertical.
          +   * Optional. Crowding specifications for improving result diversity.
          +   * If multiple CrowdingSpecs are specified, crowding will be evaluated on
          +   * each unique combination of the `field` values, and max_count will be the
          +   * maximum value of `max_count` across all CrowdingSpecs.
          +   * For example, if the first CrowdingSpec has `field` = "color" and
          +   * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
          +   * `max_count` = 2, then after 3 documents that share the same color AND size
          +   * have been returned, subsequent ones should be
          +   * removed or demoted.
              * 
          * * - * .google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; + * repeated .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpecOrBuilder - getSearchAsYouTypeSpecOrBuilder(); + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec getCrowdingSpecs(int index); /** * * *
          -   * Optional. Config for display feature, like match highlighting on search
          -   * results.
          +   * Optional. Crowding specifications for improving result diversity.
          +   * If multiple CrowdingSpecs are specified, crowding will be evaluated on
          +   * each unique combination of the `field` values, and max_count will be the
          +   * maximum value of `max_count` across all CrowdingSpecs.
          +   * For example, if the first CrowdingSpec has `field` = "color" and
          +   * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
          +   * `max_count` = 2, then after 3 documents that share the same color AND size
          +   * have been returned, subsequent ones should be
          +   * removed or demoted.
              * 
          * * - * .google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec display_spec = 38 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return Whether the displaySpec field is set. */ - boolean hasDisplaySpec(); + int getCrowdingSpecsCount(); /** * * *
          -   * Optional. Config for display feature, like match highlighting on search
          -   * results.
          +   * Optional. Crowding specifications for improving result diversity.
          +   * If multiple CrowdingSpecs are specified, crowding will be evaluated on
          +   * each unique combination of the `field` values, and max_count will be the
          +   * maximum value of `max_count` across all CrowdingSpecs.
          +   * For example, if the first CrowdingSpec has `field` = "color" and
          +   * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
          +   * `max_count` = 2, then after 3 documents that share the same color AND size
          +   * have been returned, subsequent ones should be
          +   * removed or demoted.
              * 
          * * - * .google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec display_spec = 38 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The displaySpec. */ - com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec getDisplaySpec(); + java.util.List + getCrowdingSpecsOrBuilderList(); /** * * *
          -   * Optional. Config for display feature, like match highlighting on search
          -   * results.
          +   * Optional. Crowding specifications for improving result diversity.
          +   * If multiple CrowdingSpecs are specified, crowding will be evaluated on
          +   * each unique combination of the `field` values, and max_count will be the
          +   * maximum value of `max_count` across all CrowdingSpecs.
          +   * For example, if the first CrowdingSpec has `field` = "color" and
          +   * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
          +   * `max_count` = 2, then after 3 documents that share the same color AND size
          +   * have been returned, subsequent ones should be
          +   * removed or demoted.
              * 
          * * - * .google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec display_spec = 38 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpecOrBuilder getDisplaySpecOrBuilder(); + com.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpecOrBuilder getCrowdingSpecsOrBuilder( + int index); /** * @@ -1389,12 +1912,15 @@ java.lang.String getUserLabelsOrDefault( * * *
          -   * The relevance threshold of the search results.
          +   * The global relevance threshold of the search results.
              *
          -   * Default to Google defined threshold, leveraging a balance of
          +   * Defaults to Google defined threshold, leveraging a balance of
              * precision and recall to deliver both highly accurate results and
              * comprehensive coverage of relevant information.
              *
          +   * If more granular relevance filtering is required, use the
          +   * `relevance_filter_spec` instead.
          +   *
              * This feature is not supported for healthcare search.
              * 
          * @@ -1410,12 +1936,15 @@ java.lang.String getUserLabelsOrDefault( * * *
          -   * The relevance threshold of the search results.
          +   * The global relevance threshold of the search results.
              *
          -   * Default to Google defined threshold, leveraging a balance of
          +   * Defaults to Google defined threshold, leveraging a balance of
              * precision and recall to deliver both highly accurate results and
              * comprehensive coverage of relevant information.
              *
          +   * If more granular relevance filtering is required, use the
          +   * `relevance_filter_spec` instead.
          +   *
              * This feature is not supported for healthcare search.
              * 
          * @@ -1470,239 +1999,4 @@ java.lang.String getUserLabelsOrDefault( */ com.google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpecOrBuilder getRelevanceScoreSpecOrBuilder(); - - /** - * - * - *
          -   * The ranking expression controls the customized ranking on retrieval
          -   * documents. This overrides
          -   * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1.ServingConfig.ranking_expression].
          -   * The syntax and supported features depend on the
          -   * `ranking_expression_backend` value. If `ranking_expression_backend` is not
          -   * provided, it defaults to `RANK_BY_EMBEDDING`.
          -   *
          -   * If
          -   * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend]
          -   * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single
          -   * function or multiple functions that are joined by "+".
          -   *
          -   * * ranking_expression = function, { " + ", function };
          -   *
          -   * Supported functions:
          -   *
          -   * * double * relevance_score
          -   * * double * dotProduct(embedding_field_path)
          -   *
          -   * Function variables:
          -   *
          -   * * `relevance_score`: pre-defined keywords, used for measure relevance
          -   * between query and document.
          -   * * `embedding_field_path`: the document embedding field
          -   * used with query embedding vector.
          -   * * `dotProduct`: embedding function between `embedding_field_path` and
          -   * query embedding vector.
          -   *
          -   * Example ranking expression:
          -   *
          -   * If document has an embedding field doc_embedding, the ranking expression
          -   * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
          -   *
          -   * If
          -   * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend]
          -   * is set to `RANK_BY_FORMULA`, the following expression types (and
          -   * combinations of those chained using + or
          -   * * operators) are supported:
          -   *
          -   * * `double`
          -   * * `signal`
          -   * * `log(signal)`
          -   * * `exp(signal)`
          -   * * `rr(signal, double > 0)`  -- reciprocal rank transformation with second
          -   * argument being a denominator constant.
          -   * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise.
          -   * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns
          -   * signal2 | double, else returns signal1.
          -   *
          -   * Here are a few examples of ranking formulas that use the supported
          -   * ranking expression types:
          -   *
          -   * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)`
          -   * -- mostly rank by the logarithm of `keyword_similarity_score` with slight
          -   * `semantic_smilarity_score` adjustment.
          -   * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 *
          -   * is_nan(keyword_similarity_score)` -- rank by the exponent of
          -   * `semantic_similarity_score` filling the value with 0 if it's NaN, also
          -   * add constant 0.3 adjustment to the final score if
          -   * `semantic_similarity_score` is NaN.
          -   * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 *
          -   * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank
          -   * of `keyword_similarity_score` with slight adjustment of reciprocal rank
          -   * of `semantic_smilarity_score`.
          -   *
          -   * The following signals are supported:
          -   *
          -   * * `semantic_similarity_score`: semantic similarity adjustment that is
          -   * calculated using the embeddings generated by a proprietary Google model.
          -   * This score determines how semantically similar a search query is to a
          -   * document.
          -   * * `keyword_similarity_score`: keyword match adjustment uses the Best
          -   * Match 25 (BM25) ranking function. This score is calculated using a
          -   * probabilistic model to estimate the probability that a document is
          -   * relevant to a given query.
          -   * * `relevance_score`: semantic relevance adjustment that uses a
          -   * proprietary Google model to determine the meaning and intent behind a
          -   * user's query in context with the content in the documents.
          -   * * `pctr_rank`: predicted conversion rate adjustment as a rank use
          -   * predicted Click-through rate (pCTR) to gauge the relevance and
          -   * attractiveness of a search result from a user's perspective. A higher
          -   * pCTR suggests that the result is more likely to satisfy the user's query
          -   * and intent, making it a valuable signal for ranking.
          -   * * `freshness_rank`: freshness adjustment as a rank
          -   * * `document_age`: The time in hours elapsed since the document was last
          -   * updated, a floating-point number (e.g., 0.25 means 15 minutes).
          -   * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary
          -   * Google model to determine the keyword-based overlap between the query and
          -   * the document.
          -   * * `base_rank`: the default rank of the result
          -   * 
          - * - * string ranking_expression = 26; - * - * @return The rankingExpression. - */ - java.lang.String getRankingExpression(); - - /** - * - * - *
          -   * The ranking expression controls the customized ranking on retrieval
          -   * documents. This overrides
          -   * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1.ServingConfig.ranking_expression].
          -   * The syntax and supported features depend on the
          -   * `ranking_expression_backend` value. If `ranking_expression_backend` is not
          -   * provided, it defaults to `RANK_BY_EMBEDDING`.
          -   *
          -   * If
          -   * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend]
          -   * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single
          -   * function or multiple functions that are joined by "+".
          -   *
          -   * * ranking_expression = function, { " + ", function };
          -   *
          -   * Supported functions:
          -   *
          -   * * double * relevance_score
          -   * * double * dotProduct(embedding_field_path)
          -   *
          -   * Function variables:
          -   *
          -   * * `relevance_score`: pre-defined keywords, used for measure relevance
          -   * between query and document.
          -   * * `embedding_field_path`: the document embedding field
          -   * used with query embedding vector.
          -   * * `dotProduct`: embedding function between `embedding_field_path` and
          -   * query embedding vector.
          -   *
          -   * Example ranking expression:
          -   *
          -   * If document has an embedding field doc_embedding, the ranking expression
          -   * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
          -   *
          -   * If
          -   * [ranking_expression_backend][google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend]
          -   * is set to `RANK_BY_FORMULA`, the following expression types (and
          -   * combinations of those chained using + or
          -   * * operators) are supported:
          -   *
          -   * * `double`
          -   * * `signal`
          -   * * `log(signal)`
          -   * * `exp(signal)`
          -   * * `rr(signal, double > 0)`  -- reciprocal rank transformation with second
          -   * argument being a denominator constant.
          -   * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise.
          -   * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns
          -   * signal2 | double, else returns signal1.
          -   *
          -   * Here are a few examples of ranking formulas that use the supported
          -   * ranking expression types:
          -   *
          -   * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)`
          -   * -- mostly rank by the logarithm of `keyword_similarity_score` with slight
          -   * `semantic_smilarity_score` adjustment.
          -   * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 *
          -   * is_nan(keyword_similarity_score)` -- rank by the exponent of
          -   * `semantic_similarity_score` filling the value with 0 if it's NaN, also
          -   * add constant 0.3 adjustment to the final score if
          -   * `semantic_similarity_score` is NaN.
          -   * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 *
          -   * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank
          -   * of `keyword_similarity_score` with slight adjustment of reciprocal rank
          -   * of `semantic_smilarity_score`.
          -   *
          -   * The following signals are supported:
          -   *
          -   * * `semantic_similarity_score`: semantic similarity adjustment that is
          -   * calculated using the embeddings generated by a proprietary Google model.
          -   * This score determines how semantically similar a search query is to a
          -   * document.
          -   * * `keyword_similarity_score`: keyword match adjustment uses the Best
          -   * Match 25 (BM25) ranking function. This score is calculated using a
          -   * probabilistic model to estimate the probability that a document is
          -   * relevant to a given query.
          -   * * `relevance_score`: semantic relevance adjustment that uses a
          -   * proprietary Google model to determine the meaning and intent behind a
          -   * user's query in context with the content in the documents.
          -   * * `pctr_rank`: predicted conversion rate adjustment as a rank use
          -   * predicted Click-through rate (pCTR) to gauge the relevance and
          -   * attractiveness of a search result from a user's perspective. A higher
          -   * pCTR suggests that the result is more likely to satisfy the user's query
          -   * and intent, making it a valuable signal for ranking.
          -   * * `freshness_rank`: freshness adjustment as a rank
          -   * * `document_age`: The time in hours elapsed since the document was last
          -   * updated, a floating-point number (e.g., 0.25 means 15 minutes).
          -   * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary
          -   * Google model to determine the keyword-based overlap between the query and
          -   * the document.
          -   * * `base_rank`: the default rank of the result
          -   * 
          - * - * string ranking_expression = 26; - * - * @return The bytes for rankingExpression. - */ - com.google.protobuf.ByteString getRankingExpressionBytes(); - - /** - * - * - *
          -   * The backend to use for the ranking expression evaluation.
          -   * 
          - * - * - * .google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend ranking_expression_backend = 53 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for rankingExpressionBackend. - */ - int getRankingExpressionBackendValue(); - - /** - * - * - *
          -   * The backend to use for the ranking expression evaluation.
          -   * 
          - * - * - * .google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend ranking_expression_backend = 53 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The rankingExpressionBackend. - */ - com.google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend - getRankingExpressionBackend(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchResponse.java index 68a6fad1c724..ea5d5bf07704 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchResponse.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchResponse.java @@ -61,6 +61,7 @@ private SearchResponse() { nextPageToken_ = ""; correctedQuery_ = ""; searchLinkPromotions_ = java.util.Collections.emptyList(); + semanticState_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -78,6 +79,177 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.discoveryengine.v1.SearchResponse.Builder.class); } + /** + * + * + *
          +   * Semantic state of the search response.
          +   * 
          + * + * Protobuf enum {@code google.cloud.discoveryengine.v1.SearchResponse.SemanticState} + */ + public enum SemanticState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * Default value. Should not be used.
          +     * 
          + * + * SEMANTIC_STATE_UNSPECIFIED = 0; + */ + SEMANTIC_STATE_UNSPECIFIED(0), + /** + * + * + *
          +     * Semantic search was disabled for this search response.
          +     * 
          + * + * DISABLED = 1; + */ + DISABLED(1), + /** + * + * + *
          +     * Semantic search was enabled for this search response.
          +     * 
          + * + * ENABLED = 2; + */ + ENABLED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SemanticState"); + } + + /** + * + * + *
          +     * Default value. Should not be used.
          +     * 
          + * + * SEMANTIC_STATE_UNSPECIFIED = 0; + */ + public static final int SEMANTIC_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
          +     * Semantic search was disabled for this search response.
          +     * 
          + * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + + /** + * + * + *
          +     * Semantic search was enabled for this search response.
          +     * 
          + * + * ENABLED = 2; + */ + public static final int ENABLED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SemanticState valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SemanticState forNumber(int value) { + switch (value) { + case 0: + return SEMANTIC_STATE_UNSPECIFIED; + case 1: + return DISABLED; + case 2: + return ENABLED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SemanticState findValueByNumber(int number) { + return SemanticState.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchResponse.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final SemanticState[] VALUES = values(); + + public static SemanticState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SemanticState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.SearchResponse.SemanticState) + } + public interface SearchResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchResponse.SearchResult) @@ -276,7 +448,7 @@ com.google.cloud.discoveryengine.v1.DoubleList getModelScoresOrDefault( * * *
          -     * A set of ranking signals associated with the result.
          +     * Optional. A set of ranking signals associated with the result.
                * 
          * * @@ -291,7 +463,7 @@ com.google.cloud.discoveryengine.v1.DoubleList getModelScoresOrDefault( * * *
          -     * A set of ranking signals associated with the result.
          +     * Optional. A set of ranking signals associated with the result.
                * 
          * * @@ -306,7 +478,7 @@ com.google.cloud.discoveryengine.v1.DoubleList getModelScoresOrDefault( * * *
          -     * A set of ranking signals associated with the result.
          +     * Optional. A set of ranking signals associated with the result.
                * 
          * * @@ -387,7 +559,7 @@ public interface RankSignalsOrBuilder * * *
          -       * Keyword matching adjustment.
          +       * Optional. Keyword matching adjustment.
                  * 
          * * @@ -402,7 +574,7 @@ public interface RankSignalsOrBuilder * * *
          -       * Keyword matching adjustment.
          +       * Optional. Keyword matching adjustment.
                  * 
          * * @@ -417,7 +589,7 @@ public interface RankSignalsOrBuilder * * *
          -       * Semantic relevance adjustment.
          +       * Optional. Semantic relevance adjustment.
                  * 
          * * optional float relevance_score = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -430,7 +602,7 @@ public interface RankSignalsOrBuilder * * *
          -       * Semantic relevance adjustment.
          +       * Optional. Semantic relevance adjustment.
                  * 
          * * optional float relevance_score = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -443,7 +615,7 @@ public interface RankSignalsOrBuilder * * *
          -       * Semantic similarity adjustment.
          +       * Optional. Semantic similarity adjustment.
                  * 
          * * @@ -458,7 +630,7 @@ public interface RankSignalsOrBuilder * * *
          -       * Semantic similarity adjustment.
          +       * Optional. Semantic similarity adjustment.
                  * 
          * * @@ -473,7 +645,7 @@ public interface RankSignalsOrBuilder * * *
          -       * Predicted conversion rate adjustment as a rank.
          +       * Optional. Predicted conversion rate adjustment as a rank.
                  * 
          * * optional float pctr_rank = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -486,7 +658,7 @@ public interface RankSignalsOrBuilder * * *
          -       * Predicted conversion rate adjustment as a rank.
          +       * Optional. Predicted conversion rate adjustment as a rank.
                  * 
          * * optional float pctr_rank = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -499,7 +671,7 @@ public interface RankSignalsOrBuilder * * *
          -       * Topicality adjustment as a rank.
          +       * Optional. Topicality adjustment as a rank.
                  * 
          * * optional float topicality_rank = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -512,7 +684,7 @@ public interface RankSignalsOrBuilder * * *
          -       * Topicality adjustment as a rank.
          +       * Optional. Topicality adjustment as a rank.
                  * 
          * * optional float topicality_rank = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -525,7 +697,7 @@ public interface RankSignalsOrBuilder * * *
          -       * Age of the document in hours.
          +       * Optional. Age of the document in hours.
                  * 
          * * optional float document_age = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -538,7 +710,7 @@ public interface RankSignalsOrBuilder * * *
          -       * Age of the document in hours.
          +       * Optional. Age of the document in hours.
                  * 
          * * optional float document_age = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -551,7 +723,7 @@ public interface RankSignalsOrBuilder * * *
          -       * Combined custom boosts for a doc.
          +       * Optional. Combined custom boosts for a doc.
                  * 
          * * optional float boosting_factor = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -564,7 +736,7 @@ public interface RankSignalsOrBuilder * * *
          -       * Combined custom boosts for a doc.
          +       * Optional. Combined custom boosts for a doc.
                  * 
          * * optional float boosting_factor = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -577,7 +749,7 @@ public interface RankSignalsOrBuilder * * *
          -       * The default rank of the result.
          +       * Optional. The default rank of the result.
                  * 
          * * float default_rank = 32 [(.google.api.field_behavior) = OPTIONAL]; @@ -590,7 +762,7 @@ public interface RankSignalsOrBuilder * * *
          -       * A list of custom clearbox signals.
          +       * Optional. A list of custom clearbox signals.
                  * 
          * * @@ -606,7 +778,7 @@ public interface RankSignalsOrBuilder * * *
          -       * A list of custom clearbox signals.
          +       * Optional. A list of custom clearbox signals.
                  * 
          * * @@ -620,7 +792,7 @@ public interface RankSignalsOrBuilder * * *
          -       * A list of custom clearbox signals.
          +       * Optional. A list of custom clearbox signals.
                  * 
          * * @@ -633,7 +805,7 @@ public interface RankSignalsOrBuilder * * *
          -       * A list of custom clearbox signals.
          +       * Optional. A list of custom clearbox signals.
                  * 
          * * @@ -650,7 +822,7 @@ public interface RankSignalsOrBuilder * * *
          -       * A list of custom clearbox signals.
          +       * Optional. A list of custom clearbox signals.
                  * 
          * * @@ -721,7 +893,7 @@ public interface CustomSignalOrBuilder * * *
          -         * Name of the signal.
          +         * Optional. Name of the signal.
                    * 
          * * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -734,7 +906,7 @@ public interface CustomSignalOrBuilder * * *
          -         * Name of the signal.
          +         * Optional. Name of the signal.
                    * 
          * * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -747,7 +919,8 @@ public interface CustomSignalOrBuilder * * *
          -         * Float value representing the ranking signal (e.g. 1.25 for BM25).
          +         * Optional. Float value representing the ranking signal (e.g. 1.25 for
          +         * BM25).
                    * 
          * * float value = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -818,7 +991,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
          -         * Name of the signal.
          +         * Optional. Name of the signal.
                    * 
          * * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -842,7 +1015,7 @@ public java.lang.String getName() { * * *
          -         * Name of the signal.
          +         * Optional. Name of the signal.
                    * 
          * * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -869,7 +1042,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
          -         * Float value representing the ranking signal (e.g. 1.25 for BM25).
          +         * Optional. Float value representing the ranking signal (e.g. 1.25 for
          +         * BM25).
                    * 
          * * float value = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1280,7 +1454,7 @@ public Builder mergeFrom( * * *
          -           * Name of the signal.
          +           * Optional. Name of the signal.
                      * 
          * * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1303,7 +1477,7 @@ public java.lang.String getName() { * * *
          -           * Name of the signal.
          +           * Optional. Name of the signal.
                      * 
          * * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1326,7 +1500,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
          -           * Name of the signal.
          +           * Optional. Name of the signal.
                      * 
          * * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1348,7 +1522,7 @@ public Builder setName(java.lang.String value) { * * *
          -           * Name of the signal.
          +           * Optional. Name of the signal.
                      * 
          * * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1366,7 +1540,7 @@ public Builder clearName() { * * *
          -           * Name of the signal.
          +           * Optional. Name of the signal.
                      * 
          * * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1391,7 +1565,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
          -           * Float value representing the ranking signal (e.g. 1.25 for BM25).
          +           * Optional. Float value representing the ranking signal (e.g. 1.25 for
          +           * BM25).
                      * 
          * * float value = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1407,7 +1582,8 @@ public float getValue() { * * *
          -           * Float value representing the ranking signal (e.g. 1.25 for BM25).
          +           * Optional. Float value representing the ranking signal (e.g. 1.25 for
          +           * BM25).
                      * 
          * * float value = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1427,7 +1603,8 @@ public Builder setValue(float value) { * * *
          -           * Float value representing the ranking signal (e.g. 1.25 for BM25).
          +           * Optional. Float value representing the ranking signal (e.g. 1.25 for
          +           * BM25).
                      * 
          * * float value = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1509,7 +1686,7 @@ public com.google.protobuf.Parser getParserForType() { * * *
          -       * Keyword matching adjustment.
          +       * Optional. Keyword matching adjustment.
                  * 
          * * @@ -1527,7 +1704,7 @@ public boolean hasKeywordSimilarityScore() { * * *
          -       * Keyword matching adjustment.
          +       * Optional. Keyword matching adjustment.
                  * 
          * * @@ -1548,7 +1725,7 @@ public float getKeywordSimilarityScore() { * * *
          -       * Semantic relevance adjustment.
          +       * Optional. Semantic relevance adjustment.
                  * 
          * * optional float relevance_score = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1564,7 +1741,7 @@ public boolean hasRelevanceScore() { * * *
          -       * Semantic relevance adjustment.
          +       * Optional. Semantic relevance adjustment.
                  * 
          * * optional float relevance_score = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1583,7 +1760,7 @@ public float getRelevanceScore() { * * *
          -       * Semantic similarity adjustment.
          +       * Optional. Semantic similarity adjustment.
                  * 
          * * @@ -1601,7 +1778,7 @@ public boolean hasSemanticSimilarityScore() { * * *
          -       * Semantic similarity adjustment.
          +       * Optional. Semantic similarity adjustment.
                  * 
          * * @@ -1622,7 +1799,7 @@ public float getSemanticSimilarityScore() { * * *
          -       * Predicted conversion rate adjustment as a rank.
          +       * Optional. Predicted conversion rate adjustment as a rank.
                  * 
          * * optional float pctr_rank = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1638,7 +1815,7 @@ public boolean hasPctrRank() { * * *
          -       * Predicted conversion rate adjustment as a rank.
          +       * Optional. Predicted conversion rate adjustment as a rank.
                  * 
          * * optional float pctr_rank = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1657,7 +1834,7 @@ public float getPctrRank() { * * *
          -       * Topicality adjustment as a rank.
          +       * Optional. Topicality adjustment as a rank.
                  * 
          * * optional float topicality_rank = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1673,7 +1850,7 @@ public boolean hasTopicalityRank() { * * *
          -       * Topicality adjustment as a rank.
          +       * Optional. Topicality adjustment as a rank.
                  * 
          * * optional float topicality_rank = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1692,7 +1869,7 @@ public float getTopicalityRank() { * * *
          -       * Age of the document in hours.
          +       * Optional. Age of the document in hours.
                  * 
          * * optional float document_age = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -1708,7 +1885,7 @@ public boolean hasDocumentAge() { * * *
          -       * Age of the document in hours.
          +       * Optional. Age of the document in hours.
                  * 
          * * optional float document_age = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -1727,7 +1904,7 @@ public float getDocumentAge() { * * *
          -       * Combined custom boosts for a doc.
          +       * Optional. Combined custom boosts for a doc.
                  * 
          * * optional float boosting_factor = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -1743,7 +1920,7 @@ public boolean hasBoostingFactor() { * * *
          -       * Combined custom boosts for a doc.
          +       * Optional. Combined custom boosts for a doc.
                  * 
          * * optional float boosting_factor = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -1762,7 +1939,7 @@ public float getBoostingFactor() { * * *
          -       * The default rank of the result.
          +       * Optional. The default rank of the result.
                  * 
          * * float default_rank = 32 [(.google.api.field_behavior) = OPTIONAL]; @@ -1786,7 +1963,7 @@ public float getDefaultRank() { * * *
          -       * A list of custom clearbox signals.
          +       * Optional. A list of custom clearbox signals.
                  * 
          * * @@ -1805,7 +1982,7 @@ public float getDefaultRank() { * * *
          -       * A list of custom clearbox signals.
          +       * Optional. A list of custom clearbox signals.
                  * 
          * * @@ -1825,7 +2002,7 @@ public float getDefaultRank() { * * *
          -       * A list of custom clearbox signals.
          +       * Optional. A list of custom clearbox signals.
                  * 
          * * @@ -1841,7 +2018,7 @@ public int getCustomSignalsCount() { * * *
          -       * A list of custom clearbox signals.
          +       * Optional. A list of custom clearbox signals.
                  * 
          * * @@ -1859,7 +2036,7 @@ public int getCustomSignalsCount() { * * *
          -       * A list of custom clearbox signals.
          +       * Optional. A list of custom clearbox signals.
                  * 
          * * @@ -2499,7 +2676,7 @@ public Builder mergeFrom( * * *
          -         * Keyword matching adjustment.
          +         * Optional. Keyword matching adjustment.
                    * 
          * * @@ -2517,7 +2694,7 @@ public boolean hasKeywordSimilarityScore() { * * *
          -         * Keyword matching adjustment.
          +         * Optional. Keyword matching adjustment.
                    * 
          * * @@ -2535,7 +2712,7 @@ public float getKeywordSimilarityScore() { * * *
          -         * Keyword matching adjustment.
          +         * Optional. Keyword matching adjustment.
                    * 
          * * @@ -2557,7 +2734,7 @@ public Builder setKeywordSimilarityScore(float value) { * * *
          -         * Keyword matching adjustment.
          +         * Optional. Keyword matching adjustment.
                    * 
          * * @@ -2579,7 +2756,7 @@ public Builder clearKeywordSimilarityScore() { * * *
          -         * Semantic relevance adjustment.
          +         * Optional. Semantic relevance adjustment.
                    * 
          * * optional float relevance_score = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2596,7 +2773,7 @@ public boolean hasRelevanceScore() { * * *
          -         * Semantic relevance adjustment.
          +         * Optional. Semantic relevance adjustment.
                    * 
          * * optional float relevance_score = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2613,7 +2790,7 @@ public float getRelevanceScore() { * * *
          -         * Semantic relevance adjustment.
          +         * Optional. Semantic relevance adjustment.
                    * 
          * * optional float relevance_score = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2634,7 +2811,7 @@ public Builder setRelevanceScore(float value) { * * *
          -         * Semantic relevance adjustment.
          +         * Optional. Semantic relevance adjustment.
                    * 
          * * optional float relevance_score = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2655,7 +2832,7 @@ public Builder clearRelevanceScore() { * * *
          -         * Semantic similarity adjustment.
          +         * Optional. Semantic similarity adjustment.
                    * 
          * * @@ -2673,7 +2850,7 @@ public boolean hasSemanticSimilarityScore() { * * *
          -         * Semantic similarity adjustment.
          +         * Optional. Semantic similarity adjustment.
                    * 
          * * @@ -2691,7 +2868,7 @@ public float getSemanticSimilarityScore() { * * *
          -         * Semantic similarity adjustment.
          +         * Optional. Semantic similarity adjustment.
                    * 
          * * @@ -2713,7 +2890,7 @@ public Builder setSemanticSimilarityScore(float value) { * * *
          -         * Semantic similarity adjustment.
          +         * Optional. Semantic similarity adjustment.
                    * 
          * * @@ -2735,7 +2912,7 @@ public Builder clearSemanticSimilarityScore() { * * *
          -         * Predicted conversion rate adjustment as a rank.
          +         * Optional. Predicted conversion rate adjustment as a rank.
                    * 
          * * optional float pctr_rank = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -2751,7 +2928,7 @@ public boolean hasPctrRank() { * * *
          -         * Predicted conversion rate adjustment as a rank.
          +         * Optional. Predicted conversion rate adjustment as a rank.
                    * 
          * * optional float pctr_rank = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -2767,7 +2944,7 @@ public float getPctrRank() { * * *
          -         * Predicted conversion rate adjustment as a rank.
          +         * Optional. Predicted conversion rate adjustment as a rank.
                    * 
          * * optional float pctr_rank = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -2787,7 +2964,7 @@ public Builder setPctrRank(float value) { * * *
          -         * Predicted conversion rate adjustment as a rank.
          +         * Optional. Predicted conversion rate adjustment as a rank.
                    * 
          * * optional float pctr_rank = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -2807,7 +2984,7 @@ public Builder clearPctrRank() { * * *
          -         * Topicality adjustment as a rank.
          +         * Optional. Topicality adjustment as a rank.
                    * 
          * * optional float topicality_rank = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -2824,7 +3001,7 @@ public boolean hasTopicalityRank() { * * *
          -         * Topicality adjustment as a rank.
          +         * Optional. Topicality adjustment as a rank.
                    * 
          * * optional float topicality_rank = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -2841,7 +3018,7 @@ public float getTopicalityRank() { * * *
          -         * Topicality adjustment as a rank.
          +         * Optional. Topicality adjustment as a rank.
                    * 
          * * optional float topicality_rank = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -2862,7 +3039,7 @@ public Builder setTopicalityRank(float value) { * * *
          -         * Topicality adjustment as a rank.
          +         * Optional. Topicality adjustment as a rank.
                    * 
          * * optional float topicality_rank = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -2883,7 +3060,7 @@ public Builder clearTopicalityRank() { * * *
          -         * Age of the document in hours.
          +         * Optional. Age of the document in hours.
                    * 
          * * optional float document_age = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -2899,7 +3076,7 @@ public boolean hasDocumentAge() { * * *
          -         * Age of the document in hours.
          +         * Optional. Age of the document in hours.
                    * 
          * * optional float document_age = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -2915,7 +3092,7 @@ public float getDocumentAge() { * * *
          -         * Age of the document in hours.
          +         * Optional. Age of the document in hours.
                    * 
          * * optional float document_age = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -2935,7 +3112,7 @@ public Builder setDocumentAge(float value) { * * *
          -         * Age of the document in hours.
          +         * Optional. Age of the document in hours.
                    * 
          * * optional float document_age = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -2955,7 +3132,7 @@ public Builder clearDocumentAge() { * * *
          -         * Combined custom boosts for a doc.
          +         * Optional. Combined custom boosts for a doc.
                    * 
          * * optional float boosting_factor = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -2972,7 +3149,7 @@ public boolean hasBoostingFactor() { * * *
          -         * Combined custom boosts for a doc.
          +         * Optional. Combined custom boosts for a doc.
                    * 
          * * optional float boosting_factor = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -2989,7 +3166,7 @@ public float getBoostingFactor() { * * *
          -         * Combined custom boosts for a doc.
          +         * Optional. Combined custom boosts for a doc.
                    * 
          * * optional float boosting_factor = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -3010,7 +3187,7 @@ public Builder setBoostingFactor(float value) { * * *
          -         * Combined custom boosts for a doc.
          +         * Optional. Combined custom boosts for a doc.
                    * 
          * * optional float boosting_factor = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -3031,7 +3208,7 @@ public Builder clearBoostingFactor() { * * *
          -         * The default rank of the result.
          +         * Optional. The default rank of the result.
                    * 
          * * float default_rank = 32 [(.google.api.field_behavior) = OPTIONAL]; @@ -3047,7 +3224,7 @@ public float getDefaultRank() { * * *
          -         * The default rank of the result.
          +         * Optional. The default rank of the result.
                    * 
          * * float default_rank = 32 [(.google.api.field_behavior) = OPTIONAL]; @@ -3067,7 +3244,7 @@ public Builder setDefaultRank(float value) { * * *
          -         * The default rank of the result.
          +         * Optional. The default rank of the result.
                    * 
          * * float default_rank = 32 [(.google.api.field_behavior) = OPTIONAL]; @@ -3109,7 +3286,7 @@ private void ensureCustomSignalsIsMutable() { * * *
          -         * A list of custom clearbox signals.
          +         * Optional. A list of custom clearbox signals.
                    * 
          * * @@ -3131,7 +3308,7 @@ private void ensureCustomSignalsIsMutable() { * * *
          -         * A list of custom clearbox signals.
          +         * Optional. A list of custom clearbox signals.
                    * 
          * * @@ -3150,7 +3327,7 @@ public int getCustomSignalsCount() { * * *
          -         * A list of custom clearbox signals.
          +         * Optional. A list of custom clearbox signals.
                    * 
          * * @@ -3171,7 +3348,7 @@ public int getCustomSignalsCount() { * * *
          -         * A list of custom clearbox signals.
          +         * Optional. A list of custom clearbox signals.
                    * 
          * * @@ -3199,7 +3376,7 @@ public Builder setCustomSignals( * * *
          -         * A list of custom clearbox signals.
          +         * Optional. A list of custom clearbox signals.
                    * 
          * * @@ -3225,7 +3402,7 @@ public Builder setCustomSignals( * * *
          -         * A list of custom clearbox signals.
          +         * Optional. A list of custom clearbox signals.
                    * 
          * * @@ -3252,7 +3429,7 @@ public Builder addCustomSignals( * * *
          -         * A list of custom clearbox signals.
          +         * Optional. A list of custom clearbox signals.
                    * 
          * * @@ -3280,7 +3457,7 @@ public Builder addCustomSignals( * * *
          -         * A list of custom clearbox signals.
          +         * Optional. A list of custom clearbox signals.
                    * 
          * * @@ -3305,7 +3482,7 @@ public Builder addCustomSignals( * * *
          -         * A list of custom clearbox signals.
          +         * Optional. A list of custom clearbox signals.
                    * 
          * * @@ -3331,7 +3508,7 @@ public Builder addCustomSignals( * * *
          -         * A list of custom clearbox signals.
          +         * Optional. A list of custom clearbox signals.
                    * 
          * * @@ -3358,7 +3535,7 @@ public Builder addAllCustomSignals( * * *
          -         * A list of custom clearbox signals.
          +         * Optional. A list of custom clearbox signals.
                    * 
          * * @@ -3380,7 +3557,7 @@ public Builder clearCustomSignals() { * * *
          -         * A list of custom clearbox signals.
          +         * Optional. A list of custom clearbox signals.
                    * 
          * * @@ -3402,7 +3579,7 @@ public Builder removeCustomSignals(int index) { * * *
          -         * A list of custom clearbox signals.
          +         * Optional. A list of custom clearbox signals.
                    * 
          * * @@ -3419,7 +3596,7 @@ public Builder removeCustomSignals(int index) { * * *
          -         * A list of custom clearbox signals.
          +         * Optional. A list of custom clearbox signals.
                    * 
          * * @@ -3440,7 +3617,7 @@ public Builder removeCustomSignals(int index) { * * *
          -         * A list of custom clearbox signals.
          +         * Optional. A list of custom clearbox signals.
                    * 
          * * @@ -3463,7 +3640,7 @@ public Builder removeCustomSignals(int index) { * * *
          -         * A list of custom clearbox signals.
          +         * Optional. A list of custom clearbox signals.
                    * 
          * * @@ -3483,7 +3660,7 @@ public Builder removeCustomSignals(int index) { * * *
          -         * A list of custom clearbox signals.
          +         * Optional. A list of custom clearbox signals.
                    * 
          * * @@ -3504,7 +3681,7 @@ public Builder removeCustomSignals(int index) { * * *
          -         * A list of custom clearbox signals.
          +         * Optional. A list of custom clearbox signals.
                    * 
          * * @@ -3912,7 +4089,7 @@ public com.google.cloud.discoveryengine.v1.DoubleList getModelScoresOrThrow( * * *
          -     * A set of ranking signals associated with the result.
          +     * Optional. A set of ranking signals associated with the result.
                * 
          * * @@ -3930,7 +4107,7 @@ public boolean hasRankSignals() { * * *
          -     * A set of ranking signals associated with the result.
          +     * Optional. A set of ranking signals associated with the result.
                * 
          * * @@ -3952,7 +4129,7 @@ public boolean hasRankSignals() { * * *
          -     * A set of ranking signals associated with the result.
          +     * Optional. A set of ranking signals associated with the result.
                * 
          * * @@ -5275,7 +5452,7 @@ public com.google.cloud.discoveryengine.v1.DoubleList.Builder putModelScoresBuil * * *
          -       * A set of ranking signals associated with the result.
          +       * Optional. A set of ranking signals associated with the result.
                  * 
          * * @@ -5292,7 +5469,7 @@ public boolean hasRankSignals() { * * *
          -       * A set of ranking signals associated with the result.
          +       * Optional. A set of ranking signals associated with the result.
                  * 
          * * @@ -5317,7 +5494,7 @@ public boolean hasRankSignals() { * * *
          -       * A set of ranking signals associated with the result.
          +       * Optional. A set of ranking signals associated with the result.
                  * 
          * * @@ -5343,7 +5520,7 @@ public Builder setRankSignals( * * *
          -       * A set of ranking signals associated with the result.
          +       * Optional. A set of ranking signals associated with the result.
                  * 
          * * @@ -5367,7 +5544,7 @@ public Builder setRankSignals( * * *
          -       * A set of ranking signals associated with the result.
          +       * Optional. A set of ranking signals associated with the result.
                  * 
          * * @@ -5400,7 +5577,7 @@ public Builder mergeRankSignals( * * *
          -       * A set of ranking signals associated with the result.
          +       * Optional. A set of ranking signals associated with the result.
                  * 
          * * @@ -5422,7 +5599,7 @@ public Builder clearRankSignals() { * * *
          -       * A set of ranking signals associated with the result.
          +       * Optional. A set of ranking signals associated with the result.
                  * 
          * * @@ -5440,7 +5617,7 @@ public Builder clearRankSignals() { * * *
          -       * A set of ranking signals associated with the result.
          +       * Optional. A set of ranking signals associated with the result.
                  * 
          * * @@ -5463,7 +5640,7 @@ public Builder clearRankSignals() { * * *
          -       * A set of ranking signals associated with the result.
          +       * Optional. A set of ranking signals associated with the result.
                  * 
          * * @@ -19620,93 +19797,184 @@ public com.google.protobuf.Parser getParserForType() { } } - public interface SessionInfoOrBuilder + public interface NaturalLanguageQueryUnderstandingInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchResponse.SessionInfo) + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo) com.google.protobuf.MessageOrBuilder { /** * * *
          -     * Name of the session.
          -     * If the auto-session mode is used (when
          -     * [SearchRequest.session][google.cloud.discoveryengine.v1.SearchRequest.session]
          -     * ends with "-"), this field holds the newly generated session name.
          +     * The filters that were extracted from the input query.
                * 
          * - * string name = 1; + * string extracted_filters = 1; * - * @return The name. + * @return The extractedFilters. */ - java.lang.String getName(); + java.lang.String getExtractedFilters(); /** * * *
          -     * Name of the session.
          -     * If the auto-session mode is used (when
          -     * [SearchRequest.session][google.cloud.discoveryengine.v1.SearchRequest.session]
          -     * ends with "-"), this field holds the newly generated session name.
          +     * The filters that were extracted from the input query.
                * 
          * - * string name = 1; + * string extracted_filters = 1; * - * @return The bytes for name. + * @return The bytes for extractedFilters. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString getExtractedFiltersBytes(); /** * * *
          -     * Query ID that corresponds to this search API call.
          -     * One session can have multiple turns, each with a unique query ID.
          +     * Rewritten input query minus the extracted filters.
          +     * 
          * - * By specifying the session name and this query ID in the Answer API call, - * the answer generation happens in the context of the search results from - * this search call. + * string rewritten_query = 2; + * + * @return The rewrittenQuery. + */ + java.lang.String getRewrittenQuery(); + + /** + * + * + *
          +     * Rewritten input query minus the extracted filters.
                * 
          * - * string query_id = 2; + * string rewritten_query = 2; * - * @return The queryId. + * @return The bytes for rewrittenQuery. */ - java.lang.String getQueryId(); + com.google.protobuf.ByteString getRewrittenQueryBytes(); /** * * *
          -     * Query ID that corresponds to this search API call.
          -     * One session can have multiple turns, each with a unique query ID.
          +     * The classified intents from the input query.
          +     * 
          * - * By specifying the session name and this query ID in the Answer API call, - * the answer generation happens in the context of the search results from - * this search call. + * repeated string classified_intents = 5; + * + * @return A list containing the classifiedIntents. + */ + java.util.List getClassifiedIntentsList(); + + /** + * + * + *
          +     * The classified intents from the input query.
                * 
          * - * string query_id = 2; + * repeated string classified_intents = 5; * - * @return The bytes for queryId. + * @return The count of classifiedIntents. */ - com.google.protobuf.ByteString getQueryIdBytes(); + int getClassifiedIntentsCount(); + + /** + * + * + *
          +     * The classified intents from the input query.
          +     * 
          + * + * repeated string classified_intents = 5; + * + * @param index The index of the element to return. + * @return The classifiedIntents at the given index. + */ + java.lang.String getClassifiedIntents(int index); + + /** + * + * + *
          +     * The classified intents from the input query.
          +     * 
          + * + * repeated string classified_intents = 5; + * + * @param index The index of the value to return. + * @return The bytes of the classifiedIntents at the given index. + */ + com.google.protobuf.ByteString getClassifiedIntentsBytes(int index); + + /** + * + * + *
          +     * The filters that were extracted from the input query represented in a
          +     * structured form.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3; + * + * + * @return Whether the structuredExtractedFilter field is set. + */ + boolean hasStructuredExtractedFilter(); + + /** + * + * + *
          +     * The filters that were extracted from the input query represented in a
          +     * structured form.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3; + * + * + * @return The structuredExtractedFilter. + */ + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter + getStructuredExtractedFilter(); + + /** + * + * + *
          +     * The filters that were extracted from the input query represented in a
          +     * structured form.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3; + * + */ + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilterOrBuilder + getStructuredExtractedFilterOrBuilder(); } /** * * *
          -   * Information about the session.
          +   * Information describing what natural language understanding was
          +   * done on the input query.
              * 
          * - * Protobuf type {@code google.cloud.discoveryengine.v1.SearchResponse.SessionInfo} + * Protobuf type {@code + * google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo} */ - public static final class SessionInfo extends com.google.protobuf.GeneratedMessage + public static final class NaturalLanguageQueryUnderstandingInfo + extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchResponse.SessionInfo) - SessionInfoOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo) + NaturalLanguageQueryUnderstandingInfoOrBuilder { private static final long serialVersionUID = 0L; static { @@ -19716,51 +19984,11972 @@ public static final class SessionInfo extends com.google.protobuf.GeneratedMessa /* minor= */ 33, /* patch= */ 2, /* suffix= */ "", - "SessionInfo"); + "NaturalLanguageQueryUnderstandingInfo"); } - // Use SessionInfo.newBuilder() to construct. - private SessionInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use NaturalLanguageQueryUnderstandingInfo.newBuilder() to construct. + private NaturalLanguageQueryUnderstandingInfo( + com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private SessionInfo() { - name_ = ""; - queryId_ = ""; + private NaturalLanguageQueryUnderstandingInfo() { + extractedFilters_ = ""; + rewrittenQuery_ = ""; + classifiedIntents_ = com.google.protobuf.LazyStringArrayList.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchResponse_SessionInfo_descriptor; + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1_SearchResponse_SessionInfo_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.SearchResponse.SessionInfo.class, - com.google.cloud.discoveryengine.v1.SearchResponse.SessionInfo.Builder.class); + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.class, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.Builder.class); } - public static final int NAME_FIELD_NUMBER = 1; + public interface StructuredExtractedFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; + /** + * + * + *
          +       * The expression denoting the filter that was extracted from the input
          +       * query in a structured form. It can be a simple expression denoting a
          +       * single string, numerical or geolocation constraint or a compound
          +       * expression which is a combination of multiple expressions connected
          +       * using logical (OR and AND) operators.
          +       * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expression = 1; + * + * + * @return Whether the expression field is set. + */ + boolean hasExpression(); + + /** + * + * + *
          +       * The expression denoting the filter that was extracted from the input
          +       * query in a structured form. It can be a simple expression denoting a
          +       * single string, numerical or geolocation constraint or a compound
          +       * expression which is a combination of multiple expressions connected
          +       * using logical (OR and AND) operators.
          +       * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expression = 1; + * + * + * @return The expression. + */ + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.Expression + getExpression(); + + /** + * + * + *
          +       * The expression denoting the filter that was extracted from the input
          +       * query in a structured form. It can be a simple expression denoting a
          +       * single string, numerical or geolocation constraint or a compound
          +       * expression which is a combination of multiple expressions connected
          +       * using logical (OR and AND) operators.
          +       * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expression = 1; + * + */ + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.ExpressionOrBuilder + getExpressionOrBuilder(); + } /** * * *
          -     * Name of the session.
          -     * If the auto-session mode is used (when
          -     * [SearchRequest.session][google.cloud.discoveryengine.v1.SearchRequest.session]
          -     * ends with "-"), this field holds the newly generated session name.
          +     * The filters that were extracted from the input query represented in a
          +     * structured form.
                * 
          * - * string name = 1; - * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter} + */ + public static final class StructuredExtractedFilter extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter) + StructuredExtractedFilterOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "StructuredExtractedFilter"); + } + + // Use StructuredExtractedFilter.newBuilder() to construct. + private StructuredExtractedFilter(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private StructuredExtractedFilter() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.class, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Builder.class); + } + + public interface StringConstraintOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +         * Name of the string field as defined in the schema.
          +         * 
          + * + * string field_name = 1; + * + * @return The fieldName. + */ + java.lang.String getFieldName(); + + /** + * + * + *
          +         * Name of the string field as defined in the schema.
          +         * 
          + * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + com.google.protobuf.ByteString getFieldNameBytes(); + + /** + * + * + *
          +         * Values of the string field. The record will only be returned if the
          +         * field value matches one of the values specified here.
          +         * 
          + * + * repeated string values = 2; + * + * @return A list containing the values. + */ + java.util.List getValuesList(); + + /** + * + * + *
          +         * Values of the string field. The record will only be returned if the
          +         * field value matches one of the values specified here.
          +         * 
          + * + * repeated string values = 2; + * + * @return The count of values. + */ + int getValuesCount(); + + /** + * + * + *
          +         * Values of the string field. The record will only be returned if the
          +         * field value matches one of the values specified here.
          +         * 
          + * + * repeated string values = 2; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + java.lang.String getValues(int index); + + /** + * + * + *
          +         * Values of the string field. The record will only be returned if the
          +         * field value matches one of the values specified here.
          +         * 
          + * + * repeated string values = 2; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + com.google.protobuf.ByteString getValuesBytes(int index); + + /** + * + * + *
          +         * Identifies the keywords within the search query that match a filter.
          +         * 
          + * + * string query_segment = 3; + * + * @return The querySegment. + */ + java.lang.String getQuerySegment(); + + /** + * + * + *
          +         * Identifies the keywords within the search query that match a filter.
          +         * 
          + * + * string query_segment = 3; + * + * @return The bytes for querySegment. + */ + com.google.protobuf.ByteString getQuerySegmentBytes(); + } + + /** + * + * + *
          +       * Constraint expression of a string field.
          +       * 
          + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint} + */ + public static final class StringConstraint extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint) + StringConstraintOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "StringConstraint"); + } + + // Use StringConstraint.newBuilder() to construct. + private StringConstraint(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private StringConstraint() { + fieldName_ = ""; + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + querySegment_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_StringConstraint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_StringConstraint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint.class, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint.Builder.class); + } + + public static final int FIELD_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object fieldName_ = ""; + + /** + * + * + *
          +         * Name of the string field as defined in the schema.
          +         * 
          + * + * string field_name = 1; + * + * @return The fieldName. + */ + @java.lang.Override + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldName_ = s; + return s; + } + } + + /** + * + * + *
          +         * Name of the string field as defined in the schema.
          +         * 
          + * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
          +         * Values of the string field. The record will only be returned if the
          +         * field value matches one of the values specified here.
          +         * 
          + * + * repeated string values = 2; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_; + } + + /** + * + * + *
          +         * Values of the string field. The record will only be returned if the
          +         * field value matches one of the values specified here.
          +         * 
          + * + * repeated string values = 2; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + + /** + * + * + *
          +         * Values of the string field. The record will only be returned if the
          +         * field value matches one of the values specified here.
          +         * 
          + * + * repeated string values = 2; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + + /** + * + * + *
          +         * Values of the string field. The record will only be returned if the
          +         * field value matches one of the values specified here.
          +         * 
          + * + * repeated string values = 2; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + + public static final int QUERY_SEGMENT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object querySegment_ = ""; + + /** + * + * + *
          +         * Identifies the keywords within the search query that match a filter.
          +         * 
          + * + * string query_segment = 3; + * + * @return The querySegment. + */ + @java.lang.Override + public java.lang.String getQuerySegment() { + java.lang.Object ref = querySegment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + querySegment_ = s; + return s; + } + } + + /** + * + * + *
          +         * Identifies the keywords within the search query that match a filter.
          +         * 
          + * + * string query_segment = 3; + * + * @return The bytes for querySegment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQuerySegmentBytes() { + java.lang.Object ref = querySegment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + querySegment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fieldName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, fieldName_); + } + for (int i = 0; i < values_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, values_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(querySegment_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, querySegment_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fieldName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, fieldName_); + } + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(querySegment_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, querySegment_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.StringConstraint + other = + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint) + obj; + + if (!getFieldName().equals(other.getFieldName())) return false; + if (!getValuesList().equals(other.getValuesList())) return false; + if (!getQuerySegment().equals(other.getQuerySegment())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FIELD_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFieldName().hashCode(); + if (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (37 * hash) + QUERY_SEGMENT_FIELD_NUMBER; + hash = (53 * hash) + getQuerySegment().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.StringConstraint + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +         * Constraint expression of a string field.
          +         * 
          + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint) + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.StringConstraintOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_StringConstraint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_StringConstraint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint.class, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fieldName_ = ""; + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + querySegment_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_StringConstraint_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + build() { + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.StringConstraint + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + buildPartial() { + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.StringConstraint + result = + new com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fieldName_ = fieldName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.querySegment_ = querySegment_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint + other) { + if (other + == com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint.getDefaultInstance()) return this; + if (!other.getFieldName().isEmpty()) { + fieldName_ = other.fieldName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ |= 0x00000002; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + if (!other.getQuerySegment().isEmpty()) { + querySegment_ = other.querySegment_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + fieldName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 18 + case 26: + { + querySegment_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object fieldName_ = ""; + + /** + * + * + *
          +           * Name of the string field as defined in the schema.
          +           * 
          + * + * string field_name = 1; + * + * @return The fieldName. + */ + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +           * Name of the string field as defined in the schema.
          +           * 
          + * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +           * Name of the string field as defined in the schema.
          +           * 
          + * + * string field_name = 1; + * + * @param value The fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fieldName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +           * Name of the string field as defined in the schema.
          +           * 
          + * + * string field_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearFieldName() { + fieldName_ = getDefaultInstance().getFieldName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +           * Name of the string field as defined in the schema.
          +           * 
          + * + * string field_name = 1; + * + * @param value The bytes for fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fieldName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
          +           * Values of the string field. The record will only be returned if the
          +           * field value matches one of the values specified here.
          +           * 
          + * + * repeated string values = 2; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + values_.makeImmutable(); + return values_; + } + + /** + * + * + *
          +           * Values of the string field. The record will only be returned if the
          +           * field value matches one of the values specified here.
          +           * 
          + * + * repeated string values = 2; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + + /** + * + * + *
          +           * Values of the string field. The record will only be returned if the
          +           * field value matches one of the values specified here.
          +           * 
          + * + * repeated string values = 2; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + + /** + * + * + *
          +           * Values of the string field. The record will only be returned if the
          +           * field value matches one of the values specified here.
          +           * 
          + * + * repeated string values = 2; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + + /** + * + * + *
          +           * Values of the string field. The record will only be returned if the
          +           * field value matches one of the values specified here.
          +           * 
          + * + * repeated string values = 2; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +           * Values of the string field. The record will only be returned if the
          +           * field value matches one of the values specified here.
          +           * 
          + * + * repeated string values = 2; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +           * Values of the string field. The record will only be returned if the
          +           * field value matches one of the values specified here.
          +           * 
          + * + * repeated string values = 2; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +           * Values of the string field. The record will only be returned if the
          +           * field value matches one of the values specified here.
          +           * 
          + * + * repeated string values = 2; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
          +           * Values of the string field. The record will only be returned if the
          +           * field value matches one of the values specified here.
          +           * 
          + * + * repeated string values = 2; + * + * @param value The bytes of the values to add. + * @return This builder for chaining. + */ + public Builder addValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object querySegment_ = ""; + + /** + * + * + *
          +           * Identifies the keywords within the search query that match a filter.
          +           * 
          + * + * string query_segment = 3; + * + * @return The querySegment. + */ + public java.lang.String getQuerySegment() { + java.lang.Object ref = querySegment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + querySegment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +           * Identifies the keywords within the search query that match a filter.
          +           * 
          + * + * string query_segment = 3; + * + * @return The bytes for querySegment. + */ + public com.google.protobuf.ByteString getQuerySegmentBytes() { + java.lang.Object ref = querySegment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + querySegment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +           * Identifies the keywords within the search query that match a filter.
          +           * 
          + * + * string query_segment = 3; + * + * @param value The querySegment to set. + * @return This builder for chaining. + */ + public Builder setQuerySegment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + querySegment_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +           * Identifies the keywords within the search query that match a filter.
          +           * 
          + * + * string query_segment = 3; + * + * @return This builder for chaining. + */ + public Builder clearQuerySegment() { + querySegment_ = getDefaultInstance().getQuerySegment(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
          +           * Identifies the keywords within the search query that match a filter.
          +           * 
          + * + * string query_segment = 3; + * + * @param value The bytes for querySegment to set. + * @return This builder for chaining. + */ + public Builder setQuerySegmentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + querySegment_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint) + private static final com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint(); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StringConstraint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface NumberConstraintOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +         * Name of the numerical field as defined in the schema.
          +         * 
          + * + * string field_name = 1; + * + * @return The fieldName. + */ + java.lang.String getFieldName(); + + /** + * + * + *
          +         * Name of the numerical field as defined in the schema.
          +         * 
          + * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + com.google.protobuf.ByteString getFieldNameBytes(); + + /** + * + * + *
          +         * The comparison operation performed between the field value and the
          +         * value specified in the constraint.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Comparison comparison = 2; + * + * + * @return The enum numeric value on the wire for comparison. + */ + int getComparisonValue(); + + /** + * + * + *
          +         * The comparison operation performed between the field value and the
          +         * value specified in the constraint.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Comparison comparison = 2; + * + * + * @return The comparison. + */ + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.NumberConstraint.Comparison + getComparison(); + + /** + * + * + *
          +         * The value specified in the numerical constraint.
          +         * 
          + * + * double value = 3; + * + * @return The value. + */ + double getValue(); + + /** + * + * + *
          +         * Identifies the keywords within the search query that match a filter.
          +         * 
          + * + * string query_segment = 4; + * + * @return The querySegment. + */ + java.lang.String getQuerySegment(); + + /** + * + * + *
          +         * Identifies the keywords within the search query that match a filter.
          +         * 
          + * + * string query_segment = 4; + * + * @return The bytes for querySegment. + */ + com.google.protobuf.ByteString getQuerySegmentBytes(); + } + + /** + * + * + *
          +       * Constraint expression of a number field. Example: price < 100.
          +       * 
          + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint} + */ + public static final class NumberConstraint extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint) + NumberConstraintOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "NumberConstraint"); + } + + // Use NumberConstraint.newBuilder() to construct. + private NumberConstraint(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private NumberConstraint() { + fieldName_ = ""; + comparison_ = 0; + querySegment_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_NumberConstraint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_NumberConstraint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint.class, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint.Builder.class); + } + + /** + * + * + *
          +         * The comparison operation that was performed.
          +         * 
          + * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Comparison} + */ + public enum Comparison implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +           * Undefined comparison operator.
          +           * 
          + * + * COMPARISON_UNSPECIFIED = 0; + */ + COMPARISON_UNSPECIFIED(0), + /** + * + * + *
          +           * Denotes equality `=` operator.
          +           * 
          + * + * EQUALS = 1; + */ + EQUALS(1), + /** + * + * + *
          +           * Denotes less than or equal to `<=` operator.
          +           * 
          + * + * LESS_THAN_EQUALS = 2; + */ + LESS_THAN_EQUALS(2), + /** + * + * + *
          +           * Denotes less than `<` operator.
          +           * 
          + * + * LESS_THAN = 3; + */ + LESS_THAN(3), + /** + * + * + *
          +           * Denotes greater than or equal to `>=` operator.
          +           * 
          + * + * GREATER_THAN_EQUALS = 4; + */ + GREATER_THAN_EQUALS(4), + /** + * + * + *
          +           * Denotes greater than `>` operator.
          +           * 
          + * + * GREATER_THAN = 5; + */ + GREATER_THAN(5), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Comparison"); + } + + /** + * + * + *
          +           * Undefined comparison operator.
          +           * 
          + * + * COMPARISON_UNSPECIFIED = 0; + */ + public static final int COMPARISON_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
          +           * Denotes equality `=` operator.
          +           * 
          + * + * EQUALS = 1; + */ + public static final int EQUALS_VALUE = 1; + + /** + * + * + *
          +           * Denotes less than or equal to `<=` operator.
          +           * 
          + * + * LESS_THAN_EQUALS = 2; + */ + public static final int LESS_THAN_EQUALS_VALUE = 2; + + /** + * + * + *
          +           * Denotes less than `<` operator.
          +           * 
          + * + * LESS_THAN = 3; + */ + public static final int LESS_THAN_VALUE = 3; + + /** + * + * + *
          +           * Denotes greater than or equal to `>=` operator.
          +           * 
          + * + * GREATER_THAN_EQUALS = 4; + */ + public static final int GREATER_THAN_EQUALS_VALUE = 4; + + /** + * + * + *
          +           * Denotes greater than `>` operator.
          +           * 
          + * + * GREATER_THAN = 5; + */ + public static final int GREATER_THAN_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Comparison valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Comparison forNumber(int value) { + switch (value) { + case 0: + return COMPARISON_UNSPECIFIED; + case 1: + return EQUALS; + case 2: + return LESS_THAN_EQUALS; + case 3: + return LESS_THAN; + case 4: + return GREATER_THAN_EQUALS; + case 5: + return GREATER_THAN; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Comparison findValueByNumber(int number) { + return Comparison.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Comparison[] VALUES = values(); + + public static Comparison valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Comparison(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Comparison) + } + + public static final int FIELD_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object fieldName_ = ""; + + /** + * + * + *
          +         * Name of the numerical field as defined in the schema.
          +         * 
          + * + * string field_name = 1; + * + * @return The fieldName. + */ + @java.lang.Override + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldName_ = s; + return s; + } + } + + /** + * + * + *
          +         * Name of the numerical field as defined in the schema.
          +         * 
          + * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPARISON_FIELD_NUMBER = 2; + private int comparison_ = 0; + + /** + * + * + *
          +         * The comparison operation performed between the field value and the
          +         * value specified in the constraint.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Comparison comparison = 2; + * + * + * @return The enum numeric value on the wire for comparison. + */ + @java.lang.Override + public int getComparisonValue() { + return comparison_; + } + + /** + * + * + *
          +         * The comparison operation performed between the field value and the
          +         * value specified in the constraint.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Comparison comparison = 2; + * + * + * @return The comparison. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + .Comparison + getComparison() { + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.NumberConstraint.Comparison + result = + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint.Comparison.forNumber(comparison_); + return result == null + ? com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + .Comparison.UNRECOGNIZED + : result; + } + + public static final int VALUE_FIELD_NUMBER = 3; + private double value_ = 0D; + + /** + * + * + *
          +         * The value specified in the numerical constraint.
          +         * 
          + * + * double value = 3; + * + * @return The value. + */ + @java.lang.Override + public double getValue() { + return value_; + } + + public static final int QUERY_SEGMENT_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object querySegment_ = ""; + + /** + * + * + *
          +         * Identifies the keywords within the search query that match a filter.
          +         * 
          + * + * string query_segment = 4; + * + * @return The querySegment. + */ + @java.lang.Override + public java.lang.String getQuerySegment() { + java.lang.Object ref = querySegment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + querySegment_ = s; + return s; + } + } + + /** + * + * + *
          +         * Identifies the keywords within the search query that match a filter.
          +         * 
          + * + * string query_segment = 4; + * + * @return The bytes for querySegment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQuerySegmentBytes() { + java.lang.Object ref = querySegment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + querySegment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fieldName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, fieldName_); + } + if (comparison_ + != com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + .Comparison.COMPARISON_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, comparison_); + } + if (java.lang.Double.doubleToRawLongBits(value_) != 0) { + output.writeDouble(3, value_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(querySegment_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, querySegment_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fieldName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, fieldName_); + } + if (comparison_ + != com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + .Comparison.COMPARISON_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, comparison_); + } + if (java.lang.Double.doubleToRawLongBits(value_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, value_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(querySegment_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, querySegment_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.NumberConstraint + other = + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint) + obj; + + if (!getFieldName().equals(other.getFieldName())) return false; + if (comparison_ != other.comparison_) return false; + if (java.lang.Double.doubleToLongBits(getValue()) + != java.lang.Double.doubleToLongBits(other.getValue())) return false; + if (!getQuerySegment().equals(other.getQuerySegment())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FIELD_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFieldName().hashCode(); + hash = (37 * hash) + COMPARISON_FIELD_NUMBER; + hash = (53 * hash) + comparison_; + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getValue())); + hash = (37 * hash) + QUERY_SEGMENT_FIELD_NUMBER; + hash = (53 * hash) + getQuerySegment().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.NumberConstraint + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +         * Constraint expression of a number field. Example: price < 100.
          +         * 
          + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint) + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.NumberConstraintOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_NumberConstraint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_NumberConstraint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint.class, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fieldName_ = ""; + comparison_ = 0; + value_ = 0D; + querySegment_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_NumberConstraint_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + build() { + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.NumberConstraint + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + buildPartial() { + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.NumberConstraint + result = + new com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fieldName_ = fieldName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.comparison_ = comparison_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.value_ = value_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.querySegment_ = querySegment_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint + other) { + if (other + == com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint.getDefaultInstance()) return this; + if (!other.getFieldName().isEmpty()) { + fieldName_ = other.fieldName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.comparison_ != 0) { + setComparisonValue(other.getComparisonValue()); + } + if (java.lang.Double.doubleToRawLongBits(other.getValue()) != 0) { + setValue(other.getValue()); + } + if (!other.getQuerySegment().isEmpty()) { + querySegment_ = other.querySegment_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + fieldName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + comparison_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 25: + { + value_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + case 34: + { + querySegment_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object fieldName_ = ""; + + /** + * + * + *
          +           * Name of the numerical field as defined in the schema.
          +           * 
          + * + * string field_name = 1; + * + * @return The fieldName. + */ + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +           * Name of the numerical field as defined in the schema.
          +           * 
          + * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +           * Name of the numerical field as defined in the schema.
          +           * 
          + * + * string field_name = 1; + * + * @param value The fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fieldName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +           * Name of the numerical field as defined in the schema.
          +           * 
          + * + * string field_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearFieldName() { + fieldName_ = getDefaultInstance().getFieldName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +           * Name of the numerical field as defined in the schema.
          +           * 
          + * + * string field_name = 1; + * + * @param value The bytes for fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fieldName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int comparison_ = 0; + + /** + * + * + *
          +           * The comparison operation performed between the field value and the
          +           * value specified in the constraint.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Comparison comparison = 2; + * + * + * @return The enum numeric value on the wire for comparison. + */ + @java.lang.Override + public int getComparisonValue() { + return comparison_; + } + + /** + * + * + *
          +           * The comparison operation performed between the field value and the
          +           * value specified in the constraint.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Comparison comparison = 2; + * + * + * @param value The enum numeric value on the wire for comparison to set. + * @return This builder for chaining. + */ + public Builder setComparisonValue(int value) { + comparison_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +           * The comparison operation performed between the field value and the
          +           * value specified in the constraint.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Comparison comparison = 2; + * + * + * @return The comparison. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + .Comparison + getComparison() { + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.NumberConstraint.Comparison + result = + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint.Comparison.forNumber(comparison_); + return result == null + ? com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint.Comparison.UNRECOGNIZED + : result; + } + + /** + * + * + *
          +           * The comparison operation performed between the field value and the
          +           * value specified in the constraint.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Comparison comparison = 2; + * + * + * @param value The comparison to set. + * @return This builder for chaining. + */ + public Builder setComparison( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint.Comparison + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + comparison_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
          +           * The comparison operation performed between the field value and the
          +           * value specified in the constraint.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Comparison comparison = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearComparison() { + bitField0_ = (bitField0_ & ~0x00000002); + comparison_ = 0; + onChanged(); + return this; + } + + private double value_; + + /** + * + * + *
          +           * The value specified in the numerical constraint.
          +           * 
          + * + * double value = 3; + * + * @return The value. + */ + @java.lang.Override + public double getValue() { + return value_; + } + + /** + * + * + *
          +           * The value specified in the numerical constraint.
          +           * 
          + * + * double value = 3; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(double value) { + + value_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +           * The value specified in the numerical constraint.
          +           * 
          + * + * double value = 3; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000004); + value_ = 0D; + onChanged(); + return this; + } + + private java.lang.Object querySegment_ = ""; + + /** + * + * + *
          +           * Identifies the keywords within the search query that match a filter.
          +           * 
          + * + * string query_segment = 4; + * + * @return The querySegment. + */ + public java.lang.String getQuerySegment() { + java.lang.Object ref = querySegment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + querySegment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +           * Identifies the keywords within the search query that match a filter.
          +           * 
          + * + * string query_segment = 4; + * + * @return The bytes for querySegment. + */ + public com.google.protobuf.ByteString getQuerySegmentBytes() { + java.lang.Object ref = querySegment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + querySegment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +           * Identifies the keywords within the search query that match a filter.
          +           * 
          + * + * string query_segment = 4; + * + * @param value The querySegment to set. + * @return This builder for chaining. + */ + public Builder setQuerySegment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + querySegment_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +           * Identifies the keywords within the search query that match a filter.
          +           * 
          + * + * string query_segment = 4; + * + * @return This builder for chaining. + */ + public Builder clearQuerySegment() { + querySegment_ = getDefaultInstance().getQuerySegment(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
          +           * Identifies the keywords within the search query that match a filter.
          +           * 
          + * + * string query_segment = 4; + * + * @param value The bytes for querySegment to set. + * @return This builder for chaining. + */ + public Builder setQuerySegmentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + querySegment_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint) + private static final com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint(); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NumberConstraint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface GeolocationConstraintOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +         * The name of the geolocation field as defined in the schema.
          +         * 
          + * + * string field_name = 1; + * + * @return The fieldName. + */ + java.lang.String getFieldName(); + + /** + * + * + *
          +         * The name of the geolocation field as defined in the schema.
          +         * 
          + * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + com.google.protobuf.ByteString getFieldNameBytes(); + + /** + * + * + *
          +         * The reference address that was inferred from the input query. The
          +         * proximity of the reference address to the geolocation field will be
          +         * used to filter the results.
          +         * 
          + * + * string address = 2; + * + * @return The address. + */ + java.lang.String getAddress(); + + /** + * + * + *
          +         * The reference address that was inferred from the input query. The
          +         * proximity of the reference address to the geolocation field will be
          +         * used to filter the results.
          +         * 
          + * + * string address = 2; + * + * @return The bytes for address. + */ + com.google.protobuf.ByteString getAddressBytes(); + + /** + * + * + *
          +         * The latitude of the geolocation inferred from the input query.
          +         * 
          + * + * double latitude = 4; + * + * @return The latitude. + */ + double getLatitude(); + + /** + * + * + *
          +         * The longitude of the geolocation inferred from the input query.
          +         * 
          + * + * double longitude = 5; + * + * @return The longitude. + */ + double getLongitude(); + + /** + * + * + *
          +         * The radius in meters around the address. The record is returned if
          +         * the location of the geolocation field is within the radius.
          +         * 
          + * + * float radius_in_meters = 3; + * + * @return The radiusInMeters. + */ + float getRadiusInMeters(); + } + + /** + * + * + *
          +       * Constraint of a geolocation field.
          +       * Name of the geolocation field as defined in the schema.
          +       * 
          + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint} + */ + public static final class GeolocationConstraint extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint) + GeolocationConstraintOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GeolocationConstraint"); + } + + // Use GeolocationConstraint.newBuilder() to construct. + private GeolocationConstraint(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GeolocationConstraint() { + fieldName_ = ""; + address_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_GeolocationConstraint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_GeolocationConstraint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint.class, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint.Builder.class); + } + + public static final int FIELD_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object fieldName_ = ""; + + /** + * + * + *
          +         * The name of the geolocation field as defined in the schema.
          +         * 
          + * + * string field_name = 1; + * + * @return The fieldName. + */ + @java.lang.Override + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldName_ = s; + return s; + } + } + + /** + * + * + *
          +         * The name of the geolocation field as defined in the schema.
          +         * 
          + * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDRESS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object address_ = ""; + + /** + * + * + *
          +         * The reference address that was inferred from the input query. The
          +         * proximity of the reference address to the geolocation field will be
          +         * used to filter the results.
          +         * 
          + * + * string address = 2; + * + * @return The address. + */ + @java.lang.Override + public java.lang.String getAddress() { + java.lang.Object ref = address_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + address_ = s; + return s; + } + } + + /** + * + * + *
          +         * The reference address that was inferred from the input query. The
          +         * proximity of the reference address to the geolocation field will be
          +         * used to filter the results.
          +         * 
          + * + * string address = 2; + * + * @return The bytes for address. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = address_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + address_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LATITUDE_FIELD_NUMBER = 4; + private double latitude_ = 0D; + + /** + * + * + *
          +         * The latitude of the geolocation inferred from the input query.
          +         * 
          + * + * double latitude = 4; + * + * @return The latitude. + */ + @java.lang.Override + public double getLatitude() { + return latitude_; + } + + public static final int LONGITUDE_FIELD_NUMBER = 5; + private double longitude_ = 0D; + + /** + * + * + *
          +         * The longitude of the geolocation inferred from the input query.
          +         * 
          + * + * double longitude = 5; + * + * @return The longitude. + */ + @java.lang.Override + public double getLongitude() { + return longitude_; + } + + public static final int RADIUS_IN_METERS_FIELD_NUMBER = 3; + private float radiusInMeters_ = 0F; + + /** + * + * + *
          +         * The radius in meters around the address. The record is returned if
          +         * the location of the geolocation field is within the radius.
          +         * 
          + * + * float radius_in_meters = 3; + * + * @return The radiusInMeters. + */ + @java.lang.Override + public float getRadiusInMeters() { + return radiusInMeters_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fieldName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, fieldName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(address_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, address_); + } + if (java.lang.Float.floatToRawIntBits(radiusInMeters_) != 0) { + output.writeFloat(3, radiusInMeters_); + } + if (java.lang.Double.doubleToRawLongBits(latitude_) != 0) { + output.writeDouble(4, latitude_); + } + if (java.lang.Double.doubleToRawLongBits(longitude_) != 0) { + output.writeDouble(5, longitude_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fieldName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, fieldName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(address_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, address_); + } + if (java.lang.Float.floatToRawIntBits(radiusInMeters_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, radiusInMeters_); + } + if (java.lang.Double.doubleToRawLongBits(latitude_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, latitude_); + } + if (java.lang.Double.doubleToRawLongBits(longitude_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, longitude_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.GeolocationConstraint + other = + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint) + obj; + + if (!getFieldName().equals(other.getFieldName())) return false; + if (!getAddress().equals(other.getAddress())) return false; + if (java.lang.Double.doubleToLongBits(getLatitude()) + != java.lang.Double.doubleToLongBits(other.getLatitude())) return false; + if (java.lang.Double.doubleToLongBits(getLongitude()) + != java.lang.Double.doubleToLongBits(other.getLongitude())) return false; + if (java.lang.Float.floatToIntBits(getRadiusInMeters()) + != java.lang.Float.floatToIntBits(other.getRadiusInMeters())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FIELD_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFieldName().hashCode(); + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + hash = (37 * hash) + LATITUDE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getLatitude())); + hash = (37 * hash) + LONGITUDE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getLongitude())); + hash = (37 * hash) + RADIUS_IN_METERS_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getRadiusInMeters()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.GeolocationConstraint + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +         * Constraint of a geolocation field.
          +         * Name of the geolocation field as defined in the schema.
          +         * 
          + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint) + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.GeolocationConstraintOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_GeolocationConstraint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_GeolocationConstraint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint.class, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fieldName_ = ""; + address_ = ""; + latitude_ = 0D; + longitude_ = 0D; + radiusInMeters_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_GeolocationConstraint_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + build() { + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.GeolocationConstraint + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + buildPartial() { + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.GeolocationConstraint + result = + new com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fieldName_ = fieldName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.address_ = address_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.latitude_ = latitude_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.longitude_ = longitude_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.radiusInMeters_ = radiusInMeters_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + other) { + if (other + == com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint.getDefaultInstance()) return this; + if (!other.getFieldName().isEmpty()) { + fieldName_ = other.fieldName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAddress().isEmpty()) { + address_ = other.address_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (java.lang.Double.doubleToRawLongBits(other.getLatitude()) != 0) { + setLatitude(other.getLatitude()); + } + if (java.lang.Double.doubleToRawLongBits(other.getLongitude()) != 0) { + setLongitude(other.getLongitude()); + } + if (java.lang.Float.floatToRawIntBits(other.getRadiusInMeters()) != 0) { + setRadiusInMeters(other.getRadiusInMeters()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + fieldName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + address_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 29: + { + radiusInMeters_ = input.readFloat(); + bitField0_ |= 0x00000010; + break; + } // case 29 + case 33: + { + latitude_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 33 + case 41: + { + longitude_ = input.readDouble(); + bitField0_ |= 0x00000008; + break; + } // case 41 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object fieldName_ = ""; + + /** + * + * + *
          +           * The name of the geolocation field as defined in the schema.
          +           * 
          + * + * string field_name = 1; + * + * @return The fieldName. + */ + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +           * The name of the geolocation field as defined in the schema.
          +           * 
          + * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +           * The name of the geolocation field as defined in the schema.
          +           * 
          + * + * string field_name = 1; + * + * @param value The fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fieldName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +           * The name of the geolocation field as defined in the schema.
          +           * 
          + * + * string field_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearFieldName() { + fieldName_ = getDefaultInstance().getFieldName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +           * The name of the geolocation field as defined in the schema.
          +           * 
          + * + * string field_name = 1; + * + * @param value The bytes for fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fieldName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object address_ = ""; + + /** + * + * + *
          +           * The reference address that was inferred from the input query. The
          +           * proximity of the reference address to the geolocation field will be
          +           * used to filter the results.
          +           * 
          + * + * string address = 2; + * + * @return The address. + */ + public java.lang.String getAddress() { + java.lang.Object ref = address_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + address_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +           * The reference address that was inferred from the input query. The
          +           * proximity of the reference address to the geolocation field will be
          +           * used to filter the results.
          +           * 
          + * + * string address = 2; + * + * @return The bytes for address. + */ + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = address_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + address_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +           * The reference address that was inferred from the input query. The
          +           * proximity of the reference address to the geolocation field will be
          +           * used to filter the results.
          +           * 
          + * + * string address = 2; + * + * @param value The address to set. + * @return This builder for chaining. + */ + public Builder setAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + address_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +           * The reference address that was inferred from the input query. The
          +           * proximity of the reference address to the geolocation field will be
          +           * used to filter the results.
          +           * 
          + * + * string address = 2; + * + * @return This builder for chaining. + */ + public Builder clearAddress() { + address_ = getDefaultInstance().getAddress(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +           * The reference address that was inferred from the input query. The
          +           * proximity of the reference address to the geolocation field will be
          +           * used to filter the results.
          +           * 
          + * + * string address = 2; + * + * @param value The bytes for address to set. + * @return This builder for chaining. + */ + public Builder setAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + address_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private double latitude_; + + /** + * + * + *
          +           * The latitude of the geolocation inferred from the input query.
          +           * 
          + * + * double latitude = 4; + * + * @return The latitude. + */ + @java.lang.Override + public double getLatitude() { + return latitude_; + } + + /** + * + * + *
          +           * The latitude of the geolocation inferred from the input query.
          +           * 
          + * + * double latitude = 4; + * + * @param value The latitude to set. + * @return This builder for chaining. + */ + public Builder setLatitude(double value) { + + latitude_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +           * The latitude of the geolocation inferred from the input query.
          +           * 
          + * + * double latitude = 4; + * + * @return This builder for chaining. + */ + public Builder clearLatitude() { + bitField0_ = (bitField0_ & ~0x00000004); + latitude_ = 0D; + onChanged(); + return this; + } + + private double longitude_; + + /** + * + * + *
          +           * The longitude of the geolocation inferred from the input query.
          +           * 
          + * + * double longitude = 5; + * + * @return The longitude. + */ + @java.lang.Override + public double getLongitude() { + return longitude_; + } + + /** + * + * + *
          +           * The longitude of the geolocation inferred from the input query.
          +           * 
          + * + * double longitude = 5; + * + * @param value The longitude to set. + * @return This builder for chaining. + */ + public Builder setLongitude(double value) { + + longitude_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +           * The longitude of the geolocation inferred from the input query.
          +           * 
          + * + * double longitude = 5; + * + * @return This builder for chaining. + */ + public Builder clearLongitude() { + bitField0_ = (bitField0_ & ~0x00000008); + longitude_ = 0D; + onChanged(); + return this; + } + + private float radiusInMeters_; + + /** + * + * + *
          +           * The radius in meters around the address. The record is returned if
          +           * the location of the geolocation field is within the radius.
          +           * 
          + * + * float radius_in_meters = 3; + * + * @return The radiusInMeters. + */ + @java.lang.Override + public float getRadiusInMeters() { + return radiusInMeters_; + } + + /** + * + * + *
          +           * The radius in meters around the address. The record is returned if
          +           * the location of the geolocation field is within the radius.
          +           * 
          + * + * float radius_in_meters = 3; + * + * @param value The radiusInMeters to set. + * @return This builder for chaining. + */ + public Builder setRadiusInMeters(float value) { + + radiusInMeters_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
          +           * The radius in meters around the address. The record is returned if
          +           * the location of the geolocation field is within the radius.
          +           * 
          + * + * float radius_in_meters = 3; + * + * @return This builder for chaining. + */ + public Builder clearRadiusInMeters() { + bitField0_ = (bitField0_ & ~0x00000010); + radiusInMeters_ = 0F; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint) + private static final com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint(); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeolocationConstraint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AndExpressionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +         * The expressions that were ANDed together.
          +         * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression> + getExpressionsList(); + + /** + * + * + *
          +         * The expressions that were ANDed together.
          +         * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.Expression + getExpressions(int index); + + /** + * + * + *
          +         * The expressions that were ANDed together.
          +         * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + int getExpressionsCount(); + + /** + * + * + *
          +         * The expressions that were ANDed together.
          +         * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder> + getExpressionsOrBuilderList(); + + /** + * + * + *
          +         * The expressions that were ANDed together.
          +         * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.ExpressionOrBuilder + getExpressionsOrBuilder(int index); + } + + /** + * + * + *
          +       * Logical `And` operator.
          +       * 
          + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression} + */ + public static final class AndExpression extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression) + AndExpressionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AndExpression"); + } + + // Use AndExpression.newBuilder() to construct. + private AndExpression(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AndExpression() { + expressions_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_AndExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_AndExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + .class, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + .Builder.class); + } + + public static final int EXPRESSIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression> + expressions_; + + /** + * + * + *
          +         * The expressions that were ANDed together.
          +         * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression> + getExpressionsList() { + return expressions_; + } + + /** + * + * + *
          +         * The expressions that were ANDed together.
          +         * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder> + getExpressionsOrBuilderList() { + return expressions_; + } + + /** + * + * + *
          +         * The expressions that were ANDed together.
          +         * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + @java.lang.Override + public int getExpressionsCount() { + return expressions_.size(); + } + + /** + * + * + *
          +         * The expressions that were ANDed together.
          +         * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + getExpressions(int index) { + return expressions_.get(index); + } + + /** + * + * + *
          +         * The expressions that were ANDed together.
          +         * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.ExpressionOrBuilder + getExpressionsOrBuilder(int index) { + return expressions_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < expressions_.size(); i++) { + output.writeMessage(1, expressions_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < expressions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, expressions_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.AndExpression + other = + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression) + obj; + + if (!getExpressionsList().equals(other.getExpressionsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getExpressionsCount() > 0) { + hash = (37 * hash) + EXPRESSIONS_FIELD_NUMBER; + hash = (53 * hash) + getExpressionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.AndExpression + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +         * Logical `And` operator.
          +         * 
          + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression) + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.AndExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_AndExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_AndExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression.class, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (expressionsBuilder_ == null) { + expressions_ = java.util.Collections.emptyList(); + } else { + expressions_ = null; + expressionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_AndExpression_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + build() { + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.AndExpression + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + buildPartial() { + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.AndExpression + result = + new com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + result) { + if (expressionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + expressions_ = java.util.Collections.unmodifiableList(expressions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.expressions_ = expressions_; + } else { + result.expressions_ = expressionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + other) { + if (other + == com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + .getDefaultInstance()) return this; + if (expressionsBuilder_ == null) { + if (!other.expressions_.isEmpty()) { + if (expressions_.isEmpty()) { + expressions_ = other.expressions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureExpressionsIsMutable(); + expressions_.addAll(other.expressions_); + } + onChanged(); + } + } else { + if (!other.expressions_.isEmpty()) { + if (expressionsBuilder_.isEmpty()) { + expressionsBuilder_.dispose(); + expressionsBuilder_ = null; + expressions_ = other.expressions_; + bitField0_ = (bitField0_ & ~0x00000001); + expressionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetExpressionsFieldBuilder() + : null; + } else { + expressionsBuilder_.addAllMessages(other.expressions_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .Expression + m = + input.readMessage( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.Expression.parser(), + extensionRegistry); + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.add(m); + } else { + expressionsBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression> + expressions_ = java.util.Collections.emptyList(); + + private void ensureExpressionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + expressions_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .Expression>(expressions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder> + expressionsBuilder_; + + /** + * + * + *
          +           * The expressions that were ANDed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression> + getExpressionsList() { + if (expressionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(expressions_); + } else { + return expressionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
          +           * The expressions that were ANDed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public int getExpressionsCount() { + if (expressionsBuilder_ == null) { + return expressions_.size(); + } else { + return expressionsBuilder_.getCount(); + } + } + + /** + * + * + *
          +           * The expressions that were ANDed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + getExpressions(int index) { + if (expressionsBuilder_ == null) { + return expressions_.get(index); + } else { + return expressionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
          +           * The expressions that were ANDed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder setExpressions( + int index, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + value) { + if (expressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsIsMutable(); + expressions_.set(index, value); + onChanged(); + } else { + expressionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
          +           * The expressions that were ANDed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder setExpressions( + int index, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder + builderForValue) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.set(index, builderForValue.build()); + onChanged(); + } else { + expressionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +           * The expressions that were ANDed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder addExpressions( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + value) { + if (expressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsIsMutable(); + expressions_.add(value); + onChanged(); + } else { + expressionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
          +           * The expressions that were ANDed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder addExpressions( + int index, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + value) { + if (expressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsIsMutable(); + expressions_.add(index, value); + onChanged(); + } else { + expressionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
          +           * The expressions that were ANDed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder addExpressions( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder + builderForValue) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.add(builderForValue.build()); + onChanged(); + } else { + expressionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +           * The expressions that were ANDed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder addExpressions( + int index, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder + builderForValue) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.add(index, builderForValue.build()); + onChanged(); + } else { + expressionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +           * The expressions that were ANDed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder addAllExpressions( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .Expression> + values) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, expressions_); + onChanged(); + } else { + expressionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
          +           * The expressions that were ANDed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder clearExpressions() { + if (expressionsBuilder_ == null) { + expressions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + expressionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +           * The expressions that were ANDed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder removeExpressions(int index) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.remove(index); + onChanged(); + } else { + expressionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
          +           * The expressions that were ANDed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder + getExpressionsBuilder(int index) { + return internalGetExpressionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
          +           * The expressions that were ANDed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder + getExpressionsOrBuilder(int index) { + if (expressionsBuilder_ == null) { + return expressions_.get(index); + } else { + return expressionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
          +           * The expressions that were ANDed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder> + getExpressionsOrBuilderList() { + if (expressionsBuilder_ != null) { + return expressionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(expressions_); + } + } + + /** + * + * + *
          +           * The expressions that were ANDed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder + addExpressionsBuilder() { + return internalGetExpressionsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .getDefaultInstance()); + } + + /** + * + * + *
          +           * The expressions that were ANDed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder + addExpressionsBuilder(int index) { + return internalGetExpressionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .getDefaultInstance()); + } + + /** + * + * + *
          +           * The expressions that were ANDed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder> + getExpressionsBuilderList() { + return internalGetExpressionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder> + internalGetExpressionsFieldBuilder() { + if (expressionsBuilder_ == null) { + expressionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .Expression, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .Expression.Builder, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder>( + expressions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + expressions_ = null; + } + return expressionsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression) + private static final com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression(); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AndExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface OrExpressionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +         * The expressions that were ORed together.
          +         * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression> + getExpressionsList(); + + /** + * + * + *
          +         * The expressions that were ORed together.
          +         * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.Expression + getExpressions(int index); + + /** + * + * + *
          +         * The expressions that were ORed together.
          +         * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + int getExpressionsCount(); + + /** + * + * + *
          +         * The expressions that were ORed together.
          +         * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder> + getExpressionsOrBuilderList(); + + /** + * + * + *
          +         * The expressions that were ORed together.
          +         * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.ExpressionOrBuilder + getExpressionsOrBuilder(int index); + } + + /** + * + * + *
          +       * Logical `Or` operator.
          +       * 
          + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression} + */ + public static final class OrExpression extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression) + OrExpressionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OrExpression"); + } + + // Use OrExpression.newBuilder() to construct. + private OrExpression(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OrExpression() { + expressions_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_OrExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_OrExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + .class, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + .Builder.class); + } + + public static final int EXPRESSIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression> + expressions_; + + /** + * + * + *
          +         * The expressions that were ORed together.
          +         * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression> + getExpressionsList() { + return expressions_; + } + + /** + * + * + *
          +         * The expressions that were ORed together.
          +         * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder> + getExpressionsOrBuilderList() { + return expressions_; + } + + /** + * + * + *
          +         * The expressions that were ORed together.
          +         * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + @java.lang.Override + public int getExpressionsCount() { + return expressions_.size(); + } + + /** + * + * + *
          +         * The expressions that were ORed together.
          +         * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + getExpressions(int index) { + return expressions_.get(index); + } + + /** + * + * + *
          +         * The expressions that were ORed together.
          +         * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.ExpressionOrBuilder + getExpressionsOrBuilder(int index) { + return expressions_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < expressions_.size(); i++) { + output.writeMessage(1, expressions_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < expressions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, expressions_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.OrExpression + other = + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpression) + obj; + + if (!getExpressionsList().equals(other.getExpressionsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getExpressionsCount() > 0) { + hash = (37 * hash) + EXPRESSIONS_FIELD_NUMBER; + hash = (53 * hash) + getExpressionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.OrExpression + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +         * Logical `Or` operator.
          +         * 
          + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression) + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.OrExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_OrExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_OrExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpression.class, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpression.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (expressionsBuilder_ == null) { + expressions_ = java.util.Collections.emptyList(); + } else { + expressions_ = null; + expressionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_OrExpression_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + build() { + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.OrExpression + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + buildPartial() { + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.OrExpression + result = + new com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpression(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + result) { + if (expressionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + expressions_ = java.util.Collections.unmodifiableList(expressions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.expressions_ = expressions_; + } else { + result.expressions_ = expressionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpression) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + other) { + if (other + == com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + .getDefaultInstance()) return this; + if (expressionsBuilder_ == null) { + if (!other.expressions_.isEmpty()) { + if (expressions_.isEmpty()) { + expressions_ = other.expressions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureExpressionsIsMutable(); + expressions_.addAll(other.expressions_); + } + onChanged(); + } + } else { + if (!other.expressions_.isEmpty()) { + if (expressionsBuilder_.isEmpty()) { + expressionsBuilder_.dispose(); + expressionsBuilder_ = null; + expressions_ = other.expressions_; + bitField0_ = (bitField0_ & ~0x00000001); + expressionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetExpressionsFieldBuilder() + : null; + } else { + expressionsBuilder_.addAllMessages(other.expressions_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .Expression + m = + input.readMessage( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.Expression.parser(), + extensionRegistry); + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.add(m); + } else { + expressionsBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression> + expressions_ = java.util.Collections.emptyList(); + + private void ensureExpressionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + expressions_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .Expression>(expressions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder> + expressionsBuilder_; + + /** + * + * + *
          +           * The expressions that were ORed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression> + getExpressionsList() { + if (expressionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(expressions_); + } else { + return expressionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
          +           * The expressions that were ORed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public int getExpressionsCount() { + if (expressionsBuilder_ == null) { + return expressions_.size(); + } else { + return expressionsBuilder_.getCount(); + } + } + + /** + * + * + *
          +           * The expressions that were ORed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + getExpressions(int index) { + if (expressionsBuilder_ == null) { + return expressions_.get(index); + } else { + return expressionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
          +           * The expressions that were ORed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder setExpressions( + int index, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + value) { + if (expressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsIsMutable(); + expressions_.set(index, value); + onChanged(); + } else { + expressionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
          +           * The expressions that were ORed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder setExpressions( + int index, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder + builderForValue) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.set(index, builderForValue.build()); + onChanged(); + } else { + expressionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +           * The expressions that were ORed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder addExpressions( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + value) { + if (expressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsIsMutable(); + expressions_.add(value); + onChanged(); + } else { + expressionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
          +           * The expressions that were ORed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder addExpressions( + int index, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + value) { + if (expressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsIsMutable(); + expressions_.add(index, value); + onChanged(); + } else { + expressionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
          +           * The expressions that were ORed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder addExpressions( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder + builderForValue) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.add(builderForValue.build()); + onChanged(); + } else { + expressionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +           * The expressions that were ORed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder addExpressions( + int index, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder + builderForValue) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.add(index, builderForValue.build()); + onChanged(); + } else { + expressionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +           * The expressions that were ORed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder addAllExpressions( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .Expression> + values) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, expressions_); + onChanged(); + } else { + expressionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
          +           * The expressions that were ORed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder clearExpressions() { + if (expressionsBuilder_ == null) { + expressions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + expressionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +           * The expressions that were ORed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public Builder removeExpressions(int index) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.remove(index); + onChanged(); + } else { + expressionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
          +           * The expressions that were ORed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder + getExpressionsBuilder(int index) { + return internalGetExpressionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
          +           * The expressions that were ORed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder + getExpressionsOrBuilder(int index) { + if (expressionsBuilder_ == null) { + return expressions_.get(index); + } else { + return expressionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
          +           * The expressions that were ORed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder> + getExpressionsOrBuilderList() { + if (expressionsBuilder_ != null) { + return expressionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(expressions_); + } + } + + /** + * + * + *
          +           * The expressions that were ORed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder + addExpressionsBuilder() { + return internalGetExpressionsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .getDefaultInstance()); + } + + /** + * + * + *
          +           * The expressions that were ORed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder + addExpressionsBuilder(int index) { + return internalGetExpressionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .getDefaultInstance()); + } + + /** + * + * + *
          +           * The expressions that were ORed together.
          +           * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expressions = 1; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder> + getExpressionsBuilderList() { + return internalGetExpressionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder> + internalGetExpressionsFieldBuilder() { + if (expressionsBuilder_ == null) { + expressionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .Expression, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .Expression.Builder, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder>( + expressions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + expressions_ = null; + } + return expressionsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression) + private static final com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression(); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OrExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ExpressionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +         * String constraint expression.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint string_constraint = 1; + * + * + * @return Whether the stringConstraint field is set. + */ + boolean hasStringConstraint(); + + /** + * + * + *
          +         * String constraint expression.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint string_constraint = 1; + * + * + * @return The stringConstraint. + */ + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.StringConstraint + getStringConstraint(); + + /** + * + * + *
          +         * String constraint expression.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint string_constraint = 1; + * + */ + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.StringConstraintOrBuilder + getStringConstraintOrBuilder(); + + /** + * + * + *
          +         * Numerical constraint expression.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint number_constraint = 2; + * + * + * @return Whether the numberConstraint field is set. + */ + boolean hasNumberConstraint(); + + /** + * + * + *
          +         * Numerical constraint expression.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint number_constraint = 2; + * + * + * @return The numberConstraint. + */ + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.NumberConstraint + getNumberConstraint(); + + /** + * + * + *
          +         * Numerical constraint expression.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint number_constraint = 2; + * + */ + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.NumberConstraintOrBuilder + getNumberConstraintOrBuilder(); + + /** + * + * + *
          +         * Geolocation constraint expression.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint geolocation_constraint = 3; + * + * + * @return Whether the geolocationConstraint field is set. + */ + boolean hasGeolocationConstraint(); + + /** + * + * + *
          +         * Geolocation constraint expression.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint geolocation_constraint = 3; + * + * + * @return The geolocationConstraint. + */ + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.GeolocationConstraint + getGeolocationConstraint(); + + /** + * + * + *
          +         * Geolocation constraint expression.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint geolocation_constraint = 3; + * + */ + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.GeolocationConstraintOrBuilder + getGeolocationConstraintOrBuilder(); + + /** + * + * + *
          +         * Logical "And" compound operator connecting multiple expressions.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression and_expr = 4; + * + * + * @return Whether the andExpr field is set. + */ + boolean hasAndExpr(); + + /** + * + * + *
          +         * Logical "And" compound operator connecting multiple expressions.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression and_expr = 4; + * + * + * @return The andExpr. + */ + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.AndExpression + getAndExpr(); + + /** + * + * + *
          +         * Logical "And" compound operator connecting multiple expressions.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression and_expr = 4; + * + */ + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.AndExpressionOrBuilder + getAndExprOrBuilder(); + + /** + * + * + *
          +         * Logical "Or" compound operator connecting multiple expressions.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression or_expr = 5; + * + * + * @return Whether the orExpr field is set. + */ + boolean hasOrExpr(); + + /** + * + * + *
          +         * Logical "Or" compound operator connecting multiple expressions.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression or_expr = 5; + * + * + * @return The orExpr. + */ + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.OrExpression + getOrExpr(); + + /** + * + * + *
          +         * Logical "Or" compound operator connecting multiple expressions.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression or_expr = 5; + * + */ + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.OrExpressionOrBuilder + getOrExprOrBuilder(); + + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.Expression.ExprCase + getExprCase(); + } + + /** + * + * + *
          +       * The expression denoting the filter that was extracted from the input
          +       * query.
          +       * 
          + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression} + */ + public static final class Expression extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression) + ExpressionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Expression"); + } + + // Use Expression.newBuilder() to construct. + private Expression(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Expression() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_Expression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_Expression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .class, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder.class); + } + + private int exprCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object expr_; + + public enum ExprCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + STRING_CONSTRAINT(1), + NUMBER_CONSTRAINT(2), + GEOLOCATION_CONSTRAINT(3), + AND_EXPR(4), + OR_EXPR(5), + EXPR_NOT_SET(0); + private final int value; + + private ExprCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ExprCase valueOf(int value) { + return forNumber(value); + } + + public static ExprCase forNumber(int value) { + switch (value) { + case 1: + return STRING_CONSTRAINT; + case 2: + return NUMBER_CONSTRAINT; + case 3: + return GEOLOCATION_CONSTRAINT; + case 4: + return AND_EXPR; + case 5: + return OR_EXPR; + case 0: + return EXPR_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ExprCase getExprCase() { + return ExprCase.forNumber(exprCase_); + } + + public static final int STRING_CONSTRAINT_FIELD_NUMBER = 1; + + /** + * + * + *
          +         * String constraint expression.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint string_constraint = 1; + * + * + * @return Whether the stringConstraint field is set. + */ + @java.lang.Override + public boolean hasStringConstraint() { + return exprCase_ == 1; + } + + /** + * + * + *
          +         * String constraint expression.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint string_constraint = 1; + * + * + * @return The stringConstraint. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + getStringConstraint() { + if (exprCase_ == 1) { + return (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint) + expr_; + } + return com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + .getDefaultInstance(); + } + + /** + * + * + *
          +         * String constraint expression.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint string_constraint = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraintOrBuilder + getStringConstraintOrBuilder() { + if (exprCase_ == 1) { + return (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint) + expr_; + } + return com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + .getDefaultInstance(); + } + + public static final int NUMBER_CONSTRAINT_FIELD_NUMBER = 2; + + /** + * + * + *
          +         * Numerical constraint expression.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint number_constraint = 2; + * + * + * @return Whether the numberConstraint field is set. + */ + @java.lang.Override + public boolean hasNumberConstraint() { + return exprCase_ == 2; + } + + /** + * + * + *
          +         * Numerical constraint expression.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint number_constraint = 2; + * + * + * @return The numberConstraint. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + getNumberConstraint() { + if (exprCase_ == 2) { + return (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint) + expr_; + } + return com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + .getDefaultInstance(); + } + + /** + * + * + *
          +         * Numerical constraint expression.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint number_constraint = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraintOrBuilder + getNumberConstraintOrBuilder() { + if (exprCase_ == 2) { + return (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint) + expr_; + } + return com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + .getDefaultInstance(); + } + + public static final int GEOLOCATION_CONSTRAINT_FIELD_NUMBER = 3; + + /** + * + * + *
          +         * Geolocation constraint expression.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint geolocation_constraint = 3; + * + * + * @return Whether the geolocationConstraint field is set. + */ + @java.lang.Override + public boolean hasGeolocationConstraint() { + return exprCase_ == 3; + } + + /** + * + * + *
          +         * Geolocation constraint expression.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint geolocation_constraint = 3; + * + * + * @return The geolocationConstraint. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + getGeolocationConstraint() { + if (exprCase_ == 3) { + return (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint) + expr_; + } + return com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint + .getDefaultInstance(); + } + + /** + * + * + *
          +         * Geolocation constraint expression.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint geolocation_constraint = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraintOrBuilder + getGeolocationConstraintOrBuilder() { + if (exprCase_ == 3) { + return (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint) + expr_; + } + return com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint + .getDefaultInstance(); + } + + public static final int AND_EXPR_FIELD_NUMBER = 4; + + /** + * + * + *
          +         * Logical "And" compound operator connecting multiple expressions.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression and_expr = 4; + * + * + * @return Whether the andExpr field is set. + */ + @java.lang.Override + public boolean hasAndExpr() { + return exprCase_ == 4; + } + + /** + * + * + *
          +         * Logical "And" compound operator connecting multiple expressions.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression and_expr = 4; + * + * + * @return The andExpr. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + getAndExpr() { + if (exprCase_ == 4) { + return (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression) + expr_; + } + return com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + .getDefaultInstance(); + } + + /** + * + * + *
          +         * Logical "And" compound operator connecting multiple expressions.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression and_expr = 4; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpressionOrBuilder + getAndExprOrBuilder() { + if (exprCase_ == 4) { + return (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression) + expr_; + } + return com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + .getDefaultInstance(); + } + + public static final int OR_EXPR_FIELD_NUMBER = 5; + + /** + * + * + *
          +         * Logical "Or" compound operator connecting multiple expressions.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression or_expr = 5; + * + * + * @return Whether the orExpr field is set. + */ + @java.lang.Override + public boolean hasOrExpr() { + return exprCase_ == 5; + } + + /** + * + * + *
          +         * Logical "Or" compound operator connecting multiple expressions.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression or_expr = 5; + * + * + * @return The orExpr. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + getOrExpr() { + if (exprCase_ == 5) { + return (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression) + expr_; + } + return com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + .getDefaultInstance(); + } + + /** + * + * + *
          +         * Logical "Or" compound operator connecting multiple expressions.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression or_expr = 5; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpressionOrBuilder + getOrExprOrBuilder() { + if (exprCase_ == 5) { + return (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression) + expr_; + } + return com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + .getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (exprCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint) + expr_); + } + if (exprCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint) + expr_); + } + if (exprCase_ == 3) { + output.writeMessage( + 3, + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint) + expr_); + } + if (exprCase_ == 4) { + output.writeMessage( + 4, + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression) + expr_); + } + if (exprCase_ == 5) { + output.writeMessage( + 5, + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpression) + expr_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (exprCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint) + expr_); + } + if (exprCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint) + expr_); + } + if (exprCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint) + expr_); + } + if (exprCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression) + expr_); + } + if (exprCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpression) + expr_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.Expression + other = + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .Expression) + obj; + + if (!getExprCase().equals(other.getExprCase())) return false; + switch (exprCase_) { + case 1: + if (!getStringConstraint().equals(other.getStringConstraint())) return false; + break; + case 2: + if (!getNumberConstraint().equals(other.getNumberConstraint())) return false; + break; + case 3: + if (!getGeolocationConstraint().equals(other.getGeolocationConstraint())) + return false; + break; + case 4: + if (!getAndExpr().equals(other.getAndExpr())) return false; + break; + case 5: + if (!getOrExpr().equals(other.getOrExpr())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (exprCase_) { + case 1: + hash = (37 * hash) + STRING_CONSTRAINT_FIELD_NUMBER; + hash = (53 * hash) + getStringConstraint().hashCode(); + break; + case 2: + hash = (37 * hash) + NUMBER_CONSTRAINT_FIELD_NUMBER; + hash = (53 * hash) + getNumberConstraint().hashCode(); + break; + case 3: + hash = (37 * hash) + GEOLOCATION_CONSTRAINT_FIELD_NUMBER; + hash = (53 * hash) + getGeolocationConstraint().hashCode(); + break; + case 4: + hash = (37 * hash) + AND_EXPR_FIELD_NUMBER; + hash = (53 * hash) + getAndExpr().hashCode(); + break; + case 5: + hash = (37 * hash) + OR_EXPR_FIELD_NUMBER; + hash = (53 * hash) + getOrExpr().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.Expression + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +         * The expression denoting the filter that was extracted from the input
          +         * query.
          +         * 
          + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression) + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.ExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_Expression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_Expression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .class, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (stringConstraintBuilder_ != null) { + stringConstraintBuilder_.clear(); + } + if (numberConstraintBuilder_ != null) { + numberConstraintBuilder_.clear(); + } + if (geolocationConstraintBuilder_ != null) { + geolocationConstraintBuilder_.clear(); + } + if (andExprBuilder_ != null) { + andExprBuilder_.clear(); + } + if (orExprBuilder_ != null) { + orExprBuilder_.clear(); + } + exprCase_ = 0; + expr_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_Expression_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + build() { + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.Expression + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + buildPartial() { + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.Expression + result = + new com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + result) { + result.exprCase_ = exprCase_; + result.expr_ = this.expr_; + if (exprCase_ == 1 && stringConstraintBuilder_ != null) { + result.expr_ = stringConstraintBuilder_.build(); + } + if (exprCase_ == 2 && numberConstraintBuilder_ != null) { + result.expr_ = numberConstraintBuilder_.build(); + } + if (exprCase_ == 3 && geolocationConstraintBuilder_ != null) { + result.expr_ = geolocationConstraintBuilder_.build(); + } + if (exprCase_ == 4 && andExprBuilder_ != null) { + result.expr_ = andExprBuilder_.build(); + } + if (exprCase_ == 5 && orExprBuilder_ != null) { + result.expr_ = orExprBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .Expression) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + other) { + if (other + == com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .getDefaultInstance()) return this; + switch (other.getExprCase()) { + case STRING_CONSTRAINT: + { + mergeStringConstraint(other.getStringConstraint()); + break; + } + case NUMBER_CONSTRAINT: + { + mergeNumberConstraint(other.getNumberConstraint()); + break; + } + case GEOLOCATION_CONSTRAINT: + { + mergeGeolocationConstraint(other.getGeolocationConstraint()); + break; + } + case AND_EXPR: + { + mergeAndExpr(other.getAndExpr()); + break; + } + case OR_EXPR: + { + mergeOrExpr(other.getOrExpr()); + break; + } + case EXPR_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetStringConstraintFieldBuilder().getBuilder(), + extensionRegistry); + exprCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetNumberConstraintFieldBuilder().getBuilder(), + extensionRegistry); + exprCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetGeolocationConstraintFieldBuilder().getBuilder(), + extensionRegistry); + exprCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetAndExprFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetOrExprFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 5; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int exprCase_ = 0; + private java.lang.Object expr_; + + public ExprCase getExprCase() { + return ExprCase.forNumber(exprCase_); + } + + public Builder clearExpr() { + exprCase_ = 0; + expr_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint.Builder, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraintOrBuilder> + stringConstraintBuilder_; + + /** + * + * + *
          +           * String constraint expression.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint string_constraint = 1; + * + * + * @return Whether the stringConstraint field is set. + */ + @java.lang.Override + public boolean hasStringConstraint() { + return exprCase_ == 1; + } + + /** + * + * + *
          +           * String constraint expression.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint string_constraint = 1; + * + * + * @return The stringConstraint. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + getStringConstraint() { + if (stringConstraintBuilder_ == null) { + if (exprCase_ == 1) { + return (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint) + expr_; + } + return com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + .getDefaultInstance(); + } else { + if (exprCase_ == 1) { + return stringConstraintBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + .getDefaultInstance(); + } + } + + /** + * + * + *
          +           * String constraint expression.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint string_constraint = 1; + * + */ + public Builder setStringConstraint( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint + value) { + if (stringConstraintBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + stringConstraintBuilder_.setMessage(value); + } + exprCase_ = 1; + return this; + } + + /** + * + * + *
          +           * String constraint expression.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint string_constraint = 1; + * + */ + public Builder setStringConstraint( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint.Builder + builderForValue) { + if (stringConstraintBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + stringConstraintBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 1; + return this; + } + + /** + * + * + *
          +           * String constraint expression.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint string_constraint = 1; + * + */ + public Builder mergeStringConstraint( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint + value) { + if (stringConstraintBuilder_ == null) { + if (exprCase_ == 1 + && expr_ + != com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint.getDefaultInstance()) { + expr_ = + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint.newBuilder( + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint) + expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 1) { + stringConstraintBuilder_.mergeFrom(value); + } else { + stringConstraintBuilder_.setMessage(value); + } + } + exprCase_ = 1; + return this; + } + + /** + * + * + *
          +           * String constraint expression.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint string_constraint = 1; + * + */ + public Builder clearStringConstraint() { + if (stringConstraintBuilder_ == null) { + if (exprCase_ == 1) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 1) { + exprCase_ = 0; + expr_ = null; + } + stringConstraintBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +           * String constraint expression.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint string_constraint = 1; + * + */ + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + .Builder + getStringConstraintBuilder() { + return internalGetStringConstraintFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +           * String constraint expression.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint string_constraint = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraintOrBuilder + getStringConstraintOrBuilder() { + if ((exprCase_ == 1) && (stringConstraintBuilder_ != null)) { + return stringConstraintBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 1) { + return (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint) + expr_; + } + return com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint + .getDefaultInstance(); + } + } + + /** + * + * + *
          +           * String constraint expression.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint string_constraint = 1; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint.Builder, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraintOrBuilder> + internalGetStringConstraintFieldBuilder() { + if (stringConstraintBuilder_ == null) { + if (!(exprCase_ == 1)) { + expr_ = + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint.getDefaultInstance(); + } + stringConstraintBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint.Builder, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraintOrBuilder>( + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .StringConstraint) + expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 1; + onChanged(); + return stringConstraintBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint.Builder, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraintOrBuilder> + numberConstraintBuilder_; + + /** + * + * + *
          +           * Numerical constraint expression.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint number_constraint = 2; + * + * + * @return Whether the numberConstraint field is set. + */ + @java.lang.Override + public boolean hasNumberConstraint() { + return exprCase_ == 2; + } + + /** + * + * + *
          +           * Numerical constraint expression.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint number_constraint = 2; + * + * + * @return The numberConstraint. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + getNumberConstraint() { + if (numberConstraintBuilder_ == null) { + if (exprCase_ == 2) { + return (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint) + expr_; + } + return com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + .getDefaultInstance(); + } else { + if (exprCase_ == 2) { + return numberConstraintBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + .getDefaultInstance(); + } + } + + /** + * + * + *
          +           * Numerical constraint expression.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint number_constraint = 2; + * + */ + public Builder setNumberConstraint( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint + value) { + if (numberConstraintBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + numberConstraintBuilder_.setMessage(value); + } + exprCase_ = 2; + return this; + } + + /** + * + * + *
          +           * Numerical constraint expression.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint number_constraint = 2; + * + */ + public Builder setNumberConstraint( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint.Builder + builderForValue) { + if (numberConstraintBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + numberConstraintBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 2; + return this; + } + + /** + * + * + *
          +           * Numerical constraint expression.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint number_constraint = 2; + * + */ + public Builder mergeNumberConstraint( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint + value) { + if (numberConstraintBuilder_ == null) { + if (exprCase_ == 2 + && expr_ + != com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint.getDefaultInstance()) { + expr_ = + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint.newBuilder( + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint) + expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 2) { + numberConstraintBuilder_.mergeFrom(value); + } else { + numberConstraintBuilder_.setMessage(value); + } + } + exprCase_ = 2; + return this; + } + + /** + * + * + *
          +           * Numerical constraint expression.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint number_constraint = 2; + * + */ + public Builder clearNumberConstraint() { + if (numberConstraintBuilder_ == null) { + if (exprCase_ == 2) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 2) { + exprCase_ = 0; + expr_ = null; + } + numberConstraintBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +           * Numerical constraint expression.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint number_constraint = 2; + * + */ + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + .Builder + getNumberConstraintBuilder() { + return internalGetNumberConstraintFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +           * Numerical constraint expression.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint number_constraint = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraintOrBuilder + getNumberConstraintOrBuilder() { + if ((exprCase_ == 2) && (numberConstraintBuilder_ != null)) { + return numberConstraintBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 2) { + return (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint) + expr_; + } + return com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint + .getDefaultInstance(); + } + } + + /** + * + * + *
          +           * Numerical constraint expression.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint number_constraint = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint.Builder, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraintOrBuilder> + internalGetNumberConstraintFieldBuilder() { + if (numberConstraintBuilder_ == null) { + if (!(exprCase_ == 2)) { + expr_ = + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint.getDefaultInstance(); + } + numberConstraintBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint.Builder, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraintOrBuilder>( + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .NumberConstraint) + expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 2; + onChanged(); + return numberConstraintBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint.Builder, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraintOrBuilder> + geolocationConstraintBuilder_; + + /** + * + * + *
          +           * Geolocation constraint expression.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint geolocation_constraint = 3; + * + * + * @return Whether the geolocationConstraint field is set. + */ + @java.lang.Override + public boolean hasGeolocationConstraint() { + return exprCase_ == 3; + } + + /** + * + * + *
          +           * Geolocation constraint expression.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint geolocation_constraint = 3; + * + * + * @return The geolocationConstraint. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + getGeolocationConstraint() { + if (geolocationConstraintBuilder_ == null) { + if (exprCase_ == 3) { + return (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint) + expr_; + } + return com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint.getDefaultInstance(); + } else { + if (exprCase_ == 3) { + return geolocationConstraintBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint.getDefaultInstance(); + } + } + + /** + * + * + *
          +           * Geolocation constraint expression.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint geolocation_constraint = 3; + * + */ + public Builder setGeolocationConstraint( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + value) { + if (geolocationConstraintBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + geolocationConstraintBuilder_.setMessage(value); + } + exprCase_ = 3; + return this; + } + + /** + * + * + *
          +           * Geolocation constraint expression.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint geolocation_constraint = 3; + * + */ + public Builder setGeolocationConstraint( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint.Builder + builderForValue) { + if (geolocationConstraintBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + geolocationConstraintBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 3; + return this; + } + + /** + * + * + *
          +           * Geolocation constraint expression.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint geolocation_constraint = 3; + * + */ + public Builder mergeGeolocationConstraint( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint + value) { + if (geolocationConstraintBuilder_ == null) { + if (exprCase_ == 3 + && expr_ + != com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint.getDefaultInstance()) { + expr_ = + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint.newBuilder( + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint) + expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 3) { + geolocationConstraintBuilder_.mergeFrom(value); + } else { + geolocationConstraintBuilder_.setMessage(value); + } + } + exprCase_ = 3; + return this; + } + + /** + * + * + *
          +           * Geolocation constraint expression.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint geolocation_constraint = 3; + * + */ + public Builder clearGeolocationConstraint() { + if (geolocationConstraintBuilder_ == null) { + if (exprCase_ == 3) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 3) { + exprCase_ = 0; + expr_ = null; + } + geolocationConstraintBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +           * Geolocation constraint expression.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint geolocation_constraint = 3; + * + */ + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint.Builder + getGeolocationConstraintBuilder() { + return internalGetGeolocationConstraintFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +           * Geolocation constraint expression.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint geolocation_constraint = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraintOrBuilder + getGeolocationConstraintOrBuilder() { + if ((exprCase_ == 3) && (geolocationConstraintBuilder_ != null)) { + return geolocationConstraintBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 3) { + return (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint) + expr_; + } + return com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint.getDefaultInstance(); + } + } + + /** + * + * + *
          +           * Geolocation constraint expression.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint geolocation_constraint = 3; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint.Builder, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraintOrBuilder> + internalGetGeolocationConstraintFieldBuilder() { + if (geolocationConstraintBuilder_ == null) { + if (!(exprCase_ == 3)) { + expr_ = + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint.getDefaultInstance(); + } + geolocationConstraintBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint.Builder, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraintOrBuilder>( + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .GeolocationConstraint) + expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 3; + onChanged(); + return geolocationConstraintBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + .Builder, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpressionOrBuilder> + andExprBuilder_; + + /** + * + * + *
          +           * Logical "And" compound operator connecting multiple expressions.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression and_expr = 4; + * + * + * @return Whether the andExpr field is set. + */ + @java.lang.Override + public boolean hasAndExpr() { + return exprCase_ == 4; + } + + /** + * + * + *
          +           * Logical "And" compound operator connecting multiple expressions.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression and_expr = 4; + * + * + * @return The andExpr. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + getAndExpr() { + if (andExprBuilder_ == null) { + if (exprCase_ == 4) { + return (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression) + expr_; + } + return com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + .getDefaultInstance(); + } else { + if (exprCase_ == 4) { + return andExprBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + .getDefaultInstance(); + } + } + + /** + * + * + *
          +           * Logical "And" compound operator connecting multiple expressions.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression and_expr = 4; + * + */ + public Builder setAndExpr( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + value) { + if (andExprBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + andExprBuilder_.setMessage(value); + } + exprCase_ = 4; + return this; + } + + /** + * + * + *
          +           * Logical "And" compound operator connecting multiple expressions.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression and_expr = 4; + * + */ + public Builder setAndExpr( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + .Builder + builderForValue) { + if (andExprBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + andExprBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 4; + return this; + } + + /** + * + * + *
          +           * Logical "And" compound operator connecting multiple expressions.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression and_expr = 4; + * + */ + public Builder mergeAndExpr( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + value) { + if (andExprBuilder_ == null) { + if (exprCase_ == 4 + && expr_ + != com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression.getDefaultInstance()) { + expr_ = + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression.newBuilder( + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression) + expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 4) { + andExprBuilder_.mergeFrom(value); + } else { + andExprBuilder_.setMessage(value); + } + } + exprCase_ = 4; + return this; + } + + /** + * + * + *
          +           * Logical "And" compound operator connecting multiple expressions.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression and_expr = 4; + * + */ + public Builder clearAndExpr() { + if (andExprBuilder_ == null) { + if (exprCase_ == 4) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 4) { + exprCase_ = 0; + expr_ = null; + } + andExprBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +           * Logical "And" compound operator connecting multiple expressions.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression and_expr = 4; + * + */ + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + .Builder + getAndExprBuilder() { + return internalGetAndExprFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +           * Logical "And" compound operator connecting multiple expressions.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression and_expr = 4; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpressionOrBuilder + getAndExprOrBuilder() { + if ((exprCase_ == 4) && (andExprBuilder_ != null)) { + return andExprBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 4) { + return (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression) + expr_; + } + return com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + .getDefaultInstance(); + } + } + + /** + * + * + *
          +           * Logical "And" compound operator connecting multiple expressions.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression and_expr = 4; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.AndExpression + .Builder, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpressionOrBuilder> + internalGetAndExprFieldBuilder() { + if (andExprBuilder_ == null) { + if (!(exprCase_ == 4)) { + expr_ = + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression.getDefaultInstance(); + } + andExprBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression.Builder, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpressionOrBuilder>( + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .AndExpression) + expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 4; + onChanged(); + return andExprBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + .Builder, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpressionOrBuilder> + orExprBuilder_; + + /** + * + * + *
          +           * Logical "Or" compound operator connecting multiple expressions.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression or_expr = 5; + * + * + * @return Whether the orExpr field is set. + */ + @java.lang.Override + public boolean hasOrExpr() { + return exprCase_ == 5; + } + + /** + * + * + *
          +           * Logical "Or" compound operator connecting multiple expressions.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression or_expr = 5; + * + * + * @return The orExpr. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + getOrExpr() { + if (orExprBuilder_ == null) { + if (exprCase_ == 5) { + return (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpression) + expr_; + } + return com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + .getDefaultInstance(); + } else { + if (exprCase_ == 5) { + return orExprBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + .getDefaultInstance(); + } + } + + /** + * + * + *
          +           * Logical "Or" compound operator connecting multiple expressions.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression or_expr = 5; + * + */ + public Builder setOrExpr( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + value) { + if (orExprBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + orExprBuilder_.setMessage(value); + } + exprCase_ = 5; + return this; + } + + /** + * + * + *
          +           * Logical "Or" compound operator connecting multiple expressions.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression or_expr = 5; + * + */ + public Builder setOrExpr( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + .Builder + builderForValue) { + if (orExprBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + orExprBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 5; + return this; + } + + /** + * + * + *
          +           * Logical "Or" compound operator connecting multiple expressions.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression or_expr = 5; + * + */ + public Builder mergeOrExpr( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + value) { + if (orExprBuilder_ == null) { + if (exprCase_ == 5 + && expr_ + != com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpression.getDefaultInstance()) { + expr_ = + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpression.newBuilder( + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpression) + expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 5) { + orExprBuilder_.mergeFrom(value); + } else { + orExprBuilder_.setMessage(value); + } + } + exprCase_ = 5; + return this; + } + + /** + * + * + *
          +           * Logical "Or" compound operator connecting multiple expressions.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression or_expr = 5; + * + */ + public Builder clearOrExpr() { + if (orExprBuilder_ == null) { + if (exprCase_ == 5) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 5) { + exprCase_ = 0; + expr_ = null; + } + orExprBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +           * Logical "Or" compound operator connecting multiple expressions.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression or_expr = 5; + * + */ + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + .Builder + getOrExprBuilder() { + return internalGetOrExprFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +           * Logical "Or" compound operator connecting multiple expressions.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression or_expr = 5; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpressionOrBuilder + getOrExprOrBuilder() { + if ((exprCase_ == 5) && (orExprBuilder_ != null)) { + return orExprBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 5) { + return (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpression) + expr_; + } + return com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + .getDefaultInstance(); + } + } + + /** + * + * + *
          +           * Logical "Or" compound operator connecting multiple expressions.
          +           * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression or_expr = 5; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.OrExpression + .Builder, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpressionOrBuilder> + internalGetOrExprFieldBuilder() { + if (orExprBuilder_ == null) { + if (!(exprCase_ == 5)) { + expr_ = + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpression.getDefaultInstance(); + } + orExprBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpression, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpression.Builder, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpressionOrBuilder>( + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .OrExpression) + expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 5; + onChanged(); + return orExprBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression) + private static final com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression(); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Expression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int EXPRESSION_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + expression_; + + /** + * + * + *
          +       * The expression denoting the filter that was extracted from the input
          +       * query in a structured form. It can be a simple expression denoting a
          +       * single string, numerical or geolocation constraint or a compound
          +       * expression which is a combination of multiple expressions connected
          +       * using logical (OR and AND) operators.
          +       * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expression = 1; + * + * + * @return Whether the expression field is set. + */ + @java.lang.Override + public boolean hasExpression() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +       * The expression denoting the filter that was extracted from the input
          +       * query in a structured form. It can be a simple expression denoting a
          +       * single string, numerical or geolocation constraint or a compound
          +       * expression which is a combination of multiple expressions connected
          +       * using logical (OR and AND) operators.
          +       * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expression = 1; + * + * + * @return The expression. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + getExpression() { + return expression_ == null + ? com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .getDefaultInstance() + : expression_; + } + + /** + * + * + *
          +       * The expression denoting the filter that was extracted from the input
          +       * query in a structured form. It can be a simple expression denoting a
          +       * single string, numerical or geolocation constraint or a compound
          +       * expression which is a combination of multiple expressions connected
          +       * using logical (OR and AND) operators.
          +       * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expression = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.ExpressionOrBuilder + getExpressionOrBuilder() { + return expression_ == null + ? com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .getDefaultInstance() + : expression_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getExpression()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getExpression()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter + other = + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter) + obj; + + if (hasExpression() != other.hasExpression()) return false; + if (hasExpression()) { + if (!getExpression().equals(other.getExpression())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasExpression()) { + hash = (37 * hash) + EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getExpression().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +       * The filters that were extracted from the input query represented in a
          +       * structured form.
          +       * 
          + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter) + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.class, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetExpressionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + expression_ = null; + if (expressionBuilder_ != null) { + expressionBuilder_.dispose(); + expressionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + build() { + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + buildPartial() { + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter + result = + new com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.expression_ = + expressionBuilder_ == null ? expression_ : expressionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter + other) { + if (other + == com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .getDefaultInstance()) return this; + if (other.hasExpression()) { + mergeExpression(other.getExpression()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetExpressionFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + expression_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder> + expressionBuilder_; + + /** + * + * + *
          +         * The expression denoting the filter that was extracted from the input
          +         * query in a structured form. It can be a simple expression denoting a
          +         * single string, numerical or geolocation constraint or a compound
          +         * expression which is a combination of multiple expressions connected
          +         * using logical (OR and AND) operators.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expression = 1; + * + * + * @return Whether the expression field is set. + */ + public boolean hasExpression() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +         * The expression denoting the filter that was extracted from the input
          +         * query in a structured form. It can be a simple expression denoting a
          +         * single string, numerical or geolocation constraint or a compound
          +         * expression which is a combination of multiple expressions connected
          +         * using logical (OR and AND) operators.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expression = 1; + * + * + * @return The expression. + */ + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + getExpression() { + if (expressionBuilder_ == null) { + return expression_ == null + ? com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .getDefaultInstance() + : expression_; + } else { + return expressionBuilder_.getMessage(); + } + } + + /** + * + * + *
          +         * The expression denoting the filter that was extracted from the input
          +         * query in a structured form. It can be a simple expression denoting a
          +         * single string, numerical or geolocation constraint or a compound
          +         * expression which is a combination of multiple expressions connected
          +         * using logical (OR and AND) operators.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expression = 1; + * + */ + public Builder setExpression( + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.Expression + value) { + if (expressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expression_ = value; + } else { + expressionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +         * The expression denoting the filter that was extracted from the input
          +         * query in a structured form. It can be a simple expression denoting a
          +         * single string, numerical or geolocation constraint or a compound
          +         * expression which is a combination of multiple expressions connected
          +         * using logical (OR and AND) operators.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expression = 1; + * + */ + public Builder setExpression( + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.Expression.Builder + builderForValue) { + if (expressionBuilder_ == null) { + expression_ = builderForValue.build(); + } else { + expressionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +         * The expression denoting the filter that was extracted from the input
          +         * query in a structured form. It can be a simple expression denoting a
          +         * single string, numerical or geolocation constraint or a compound
          +         * expression which is a combination of multiple expressions connected
          +         * using logical (OR and AND) operators.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expression = 1; + * + */ + public Builder mergeExpression( + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.Expression + value) { + if (expressionBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && expression_ != null + && expression_ + != com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .getDefaultInstance()) { + getExpressionBuilder().mergeFrom(value); + } else { + expression_ = value; + } + } else { + expressionBuilder_.mergeFrom(value); + } + if (expression_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
          +         * The expression denoting the filter that was extracted from the input
          +         * query in a structured form. It can be a simple expression denoting a
          +         * single string, numerical or geolocation constraint or a compound
          +         * expression which is a combination of multiple expressions connected
          +         * using logical (OR and AND) operators.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expression = 1; + * + */ + public Builder clearExpression() { + bitField0_ = (bitField0_ & ~0x00000001); + expression_ = null; + if (expressionBuilder_ != null) { + expressionBuilder_.dispose(); + expressionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +         * The expression denoting the filter that was extracted from the input
          +         * query in a structured form. It can be a simple expression denoting a
          +         * single string, numerical or geolocation constraint or a compound
          +         * expression which is a combination of multiple expressions connected
          +         * using logical (OR and AND) operators.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expression = 1; + * + */ + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression.Builder + getExpressionBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetExpressionFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +         * The expression denoting the filter that was extracted from the input
          +         * query in a structured form. It can be a simple expression denoting a
          +         * single string, numerical or geolocation constraint or a compound
          +         * expression which is a combination of multiple expressions connected
          +         * using logical (OR and AND) operators.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expression = 1; + * + */ + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.ExpressionOrBuilder + getExpressionOrBuilder() { + if (expressionBuilder_ != null) { + return expressionBuilder_.getMessageOrBuilder(); + } else { + return expression_ == null + ? com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .getDefaultInstance() + : expression_; + } + } + + /** + * + * + *
          +         * The expression denoting the filter that was extracted from the input
          +         * query in a structured form. It can be a simple expression denoting a
          +         * single string, numerical or geolocation constraint or a compound
          +         * expression which is a combination of multiple expressions connected
          +         * using logical (OR and AND) operators.
          +         * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression expression = 1; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder> + internalGetExpressionFieldBuilder() { + if (expressionBuilder_ == null) { + expressionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Expression + .Builder, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .ExpressionOrBuilder>(getExpression(), getParentForChildren(), isClean()); + expression_ = null; + } + return expressionBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter) + private static final com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter(); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StructuredExtractedFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int EXTRACTED_FILTERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object extractedFilters_ = ""; + + /** + * + * + *
          +     * The filters that were extracted from the input query.
          +     * 
          + * + * string extracted_filters = 1; + * + * @return The extractedFilters. + */ + @java.lang.Override + public java.lang.String getExtractedFilters() { + java.lang.Object ref = extractedFilters_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + extractedFilters_ = s; + return s; + } + } + + /** + * + * + *
          +     * The filters that were extracted from the input query.
          +     * 
          + * + * string extracted_filters = 1; + * + * @return The bytes for extractedFilters. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExtractedFiltersBytes() { + java.lang.Object ref = extractedFilters_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + extractedFilters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REWRITTEN_QUERY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object rewrittenQuery_ = ""; + + /** + * + * + *
          +     * Rewritten input query minus the extracted filters.
          +     * 
          + * + * string rewritten_query = 2; + * + * @return The rewrittenQuery. + */ + @java.lang.Override + public java.lang.String getRewrittenQuery() { + java.lang.Object ref = rewrittenQuery_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rewrittenQuery_ = s; + return s; + } + } + + /** + * + * + *
          +     * Rewritten input query minus the extracted filters.
          +     * 
          + * + * string rewritten_query = 2; + * + * @return The bytes for rewrittenQuery. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRewrittenQueryBytes() { + java.lang.Object ref = rewrittenQuery_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rewrittenQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLASSIFIED_INTENTS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList classifiedIntents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
          +     * The classified intents from the input query.
          +     * 
          + * + * repeated string classified_intents = 5; + * + * @return A list containing the classifiedIntents. + */ + public com.google.protobuf.ProtocolStringList getClassifiedIntentsList() { + return classifiedIntents_; + } + + /** + * + * + *
          +     * The classified intents from the input query.
          +     * 
          + * + * repeated string classified_intents = 5; + * + * @return The count of classifiedIntents. + */ + public int getClassifiedIntentsCount() { + return classifiedIntents_.size(); + } + + /** + * + * + *
          +     * The classified intents from the input query.
          +     * 
          + * + * repeated string classified_intents = 5; + * + * @param index The index of the element to return. + * @return The classifiedIntents at the given index. + */ + public java.lang.String getClassifiedIntents(int index) { + return classifiedIntents_.get(index); + } + + /** + * + * + *
          +     * The classified intents from the input query.
          +     * 
          + * + * repeated string classified_intents = 5; + * + * @param index The index of the value to return. + * @return The bytes of the classifiedIntents at the given index. + */ + public com.google.protobuf.ByteString getClassifiedIntentsBytes(int index) { + return classifiedIntents_.getByteString(index); + } + + public static final int STRUCTURED_EXTRACTED_FILTER_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter + structuredExtractedFilter_; + + /** + * + * + *
          +     * The filters that were extracted from the input query represented in a
          +     * structured form.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3; + * + * + * @return Whether the structuredExtractedFilter field is set. + */ + @java.lang.Override + public boolean hasStructuredExtractedFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +     * The filters that were extracted from the input query represented in a
          +     * structured form.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3; + * + * + * @return The structuredExtractedFilter. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter + getStructuredExtractedFilter() { + return structuredExtractedFilter_ == null + ? com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.getDefaultInstance() + : structuredExtractedFilter_; + } + + /** + * + * + *
          +     * The filters that were extracted from the input query represented in a
          +     * structured form.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilterOrBuilder + getStructuredExtractedFilterOrBuilder() { + return structuredExtractedFilter_ == null + ? com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.getDefaultInstance() + : structuredExtractedFilter_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(extractedFilters_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, extractedFilters_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rewrittenQuery_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, rewrittenQuery_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getStructuredExtractedFilter()); + } + for (int i = 0; i < classifiedIntents_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, classifiedIntents_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(extractedFilters_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, extractedFilters_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rewrittenQuery_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, rewrittenQuery_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getStructuredExtractedFilter()); + } + { + int dataSize = 0; + for (int i = 0; i < classifiedIntents_.size(); i++) { + dataSize += computeStringSizeNoTag(classifiedIntents_.getRaw(i)); + } + size += dataSize; + size += 1 * getClassifiedIntentsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + other = + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo) + obj; + + if (!getExtractedFilters().equals(other.getExtractedFilters())) return false; + if (!getRewrittenQuery().equals(other.getRewrittenQuery())) return false; + if (!getClassifiedIntentsList().equals(other.getClassifiedIntentsList())) return false; + if (hasStructuredExtractedFilter() != other.hasStructuredExtractedFilter()) return false; + if (hasStructuredExtractedFilter()) { + if (!getStructuredExtractedFilter().equals(other.getStructuredExtractedFilter())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + EXTRACTED_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getExtractedFilters().hashCode(); + hash = (37 * hash) + REWRITTEN_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getRewrittenQuery().hashCode(); + if (getClassifiedIntentsCount() > 0) { + hash = (37 * hash) + CLASSIFIED_INTENTS_FIELD_NUMBER; + hash = (53 * hash) + getClassifiedIntentsList().hashCode(); + } + if (hasStructuredExtractedFilter()) { + hash = (37 * hash) + STRUCTURED_EXTRACTED_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getStructuredExtractedFilter().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +     * Information describing what natural language understanding was
          +     * done on the input query.
          +     * 
          + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo) + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.class, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetStructuredExtractedFilterFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + extractedFilters_ = ""; + rewrittenQuery_ = ""; + classifiedIntents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + structuredExtractedFilter_ = null; + if (structuredExtractedFilterBuilder_ != null) { + structuredExtractedFilterBuilder_.dispose(); + structuredExtractedFilterBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + build() { + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + buildPartial() { + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + result = + new com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.extractedFilters_ = extractedFilters_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rewrittenQuery_ = rewrittenQuery_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + classifiedIntents_.makeImmutable(); + result.classifiedIntents_ = classifiedIntents_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.structuredExtractedFilter_ = + structuredExtractedFilterBuilder_ == null + ? structuredExtractedFilter_ + : structuredExtractedFilterBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + other) { + if (other + == com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.getDefaultInstance()) return this; + if (!other.getExtractedFilters().isEmpty()) { + extractedFilters_ = other.extractedFilters_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRewrittenQuery().isEmpty()) { + rewrittenQuery_ = other.rewrittenQuery_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.classifiedIntents_.isEmpty()) { + if (classifiedIntents_.isEmpty()) { + classifiedIntents_ = other.classifiedIntents_; + bitField0_ |= 0x00000004; + } else { + ensureClassifiedIntentsIsMutable(); + classifiedIntents_.addAll(other.classifiedIntents_); + } + onChanged(); + } + if (other.hasStructuredExtractedFilter()) { + mergeStructuredExtractedFilter(other.getStructuredExtractedFilter()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + extractedFilters_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + rewrittenQuery_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetStructuredExtractedFilterFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureClassifiedIntentsIsMutable(); + classifiedIntents_.add(s); + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object extractedFilters_ = ""; + + /** + * + * + *
          +       * The filters that were extracted from the input query.
          +       * 
          + * + * string extracted_filters = 1; + * + * @return The extractedFilters. + */ + public java.lang.String getExtractedFilters() { + java.lang.Object ref = extractedFilters_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + extractedFilters_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +       * The filters that were extracted from the input query.
          +       * 
          + * + * string extracted_filters = 1; + * + * @return The bytes for extractedFilters. + */ + public com.google.protobuf.ByteString getExtractedFiltersBytes() { + java.lang.Object ref = extractedFilters_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + extractedFilters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +       * The filters that were extracted from the input query.
          +       * 
          + * + * string extracted_filters = 1; + * + * @param value The extractedFilters to set. + * @return This builder for chaining. + */ + public Builder setExtractedFilters(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + extractedFilters_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +       * The filters that were extracted from the input query.
          +       * 
          + * + * string extracted_filters = 1; + * + * @return This builder for chaining. + */ + public Builder clearExtractedFilters() { + extractedFilters_ = getDefaultInstance().getExtractedFilters(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +       * The filters that were extracted from the input query.
          +       * 
          + * + * string extracted_filters = 1; + * + * @param value The bytes for extractedFilters to set. + * @return This builder for chaining. + */ + public Builder setExtractedFiltersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + extractedFilters_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object rewrittenQuery_ = ""; + + /** + * + * + *
          +       * Rewritten input query minus the extracted filters.
          +       * 
          + * + * string rewritten_query = 2; + * + * @return The rewrittenQuery. + */ + public java.lang.String getRewrittenQuery() { + java.lang.Object ref = rewrittenQuery_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rewrittenQuery_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +       * Rewritten input query minus the extracted filters.
          +       * 
          + * + * string rewritten_query = 2; + * + * @return The bytes for rewrittenQuery. + */ + public com.google.protobuf.ByteString getRewrittenQueryBytes() { + java.lang.Object ref = rewrittenQuery_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rewrittenQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +       * Rewritten input query minus the extracted filters.
          +       * 
          + * + * string rewritten_query = 2; + * + * @param value The rewrittenQuery to set. + * @return This builder for chaining. + */ + public Builder setRewrittenQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rewrittenQuery_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +       * Rewritten input query minus the extracted filters.
          +       * 
          + * + * string rewritten_query = 2; + * + * @return This builder for chaining. + */ + public Builder clearRewrittenQuery() { + rewrittenQuery_ = getDefaultInstance().getRewrittenQuery(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
          +       * Rewritten input query minus the extracted filters.
          +       * 
          + * + * string rewritten_query = 2; + * + * @param value The bytes for rewrittenQuery to set. + * @return This builder for chaining. + */ + public Builder setRewrittenQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rewrittenQuery_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList classifiedIntents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureClassifiedIntentsIsMutable() { + if (!classifiedIntents_.isModifiable()) { + classifiedIntents_ = new com.google.protobuf.LazyStringArrayList(classifiedIntents_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
          +       * The classified intents from the input query.
          +       * 
          + * + * repeated string classified_intents = 5; + * + * @return A list containing the classifiedIntents. + */ + public com.google.protobuf.ProtocolStringList getClassifiedIntentsList() { + classifiedIntents_.makeImmutable(); + return classifiedIntents_; + } + + /** + * + * + *
          +       * The classified intents from the input query.
          +       * 
          + * + * repeated string classified_intents = 5; + * + * @return The count of classifiedIntents. + */ + public int getClassifiedIntentsCount() { + return classifiedIntents_.size(); + } + + /** + * + * + *
          +       * The classified intents from the input query.
          +       * 
          + * + * repeated string classified_intents = 5; + * + * @param index The index of the element to return. + * @return The classifiedIntents at the given index. + */ + public java.lang.String getClassifiedIntents(int index) { + return classifiedIntents_.get(index); + } + + /** + * + * + *
          +       * The classified intents from the input query.
          +       * 
          + * + * repeated string classified_intents = 5; + * + * @param index The index of the value to return. + * @return The bytes of the classifiedIntents at the given index. + */ + public com.google.protobuf.ByteString getClassifiedIntentsBytes(int index) { + return classifiedIntents_.getByteString(index); + } + + /** + * + * + *
          +       * The classified intents from the input query.
          +       * 
          + * + * repeated string classified_intents = 5; + * + * @param index The index to set the value at. + * @param value The classifiedIntents to set. + * @return This builder for chaining. + */ + public Builder setClassifiedIntents(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureClassifiedIntentsIsMutable(); + classifiedIntents_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +       * The classified intents from the input query.
          +       * 
          + * + * repeated string classified_intents = 5; + * + * @param value The classifiedIntents to add. + * @return This builder for chaining. + */ + public Builder addClassifiedIntents(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureClassifiedIntentsIsMutable(); + classifiedIntents_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +       * The classified intents from the input query.
          +       * 
          + * + * repeated string classified_intents = 5; + * + * @param values The classifiedIntents to add. + * @return This builder for chaining. + */ + public Builder addAllClassifiedIntents(java.lang.Iterable values) { + ensureClassifiedIntentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, classifiedIntents_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +       * The classified intents from the input query.
          +       * 
          + * + * repeated string classified_intents = 5; + * + * @return This builder for chaining. + */ + public Builder clearClassifiedIntents() { + classifiedIntents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
          +       * The classified intents from the input query.
          +       * 
          + * + * repeated string classified_intents = 5; + * + * @param value The bytes of the classifiedIntents to add. + * @return This builder for chaining. + */ + public Builder addClassifiedIntentsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureClassifiedIntentsIsMutable(); + classifiedIntents_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + structuredExtractedFilter_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Builder, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilterOrBuilder> + structuredExtractedFilterBuilder_; + + /** + * + * + *
          +       * The filters that were extracted from the input query represented in a
          +       * structured form.
          +       * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3; + * + * + * @return Whether the structuredExtractedFilter field is set. + */ + public boolean hasStructuredExtractedFilter() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
          +       * The filters that were extracted from the input query represented in a
          +       * structured form.
          +       * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3; + * + * + * @return The structuredExtractedFilter. + */ + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + getStructuredExtractedFilter() { + if (structuredExtractedFilterBuilder_ == null) { + return structuredExtractedFilter_ == null + ? com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .getDefaultInstance() + : structuredExtractedFilter_; + } else { + return structuredExtractedFilterBuilder_.getMessage(); + } + } + + /** + * + * + *
          +       * The filters that were extracted from the input query represented in a
          +       * structured form.
          +       * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3; + * + */ + public Builder setStructuredExtractedFilter( + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter + value) { + if (structuredExtractedFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + structuredExtractedFilter_ = value; + } else { + structuredExtractedFilterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +       * The filters that were extracted from the input query represented in a
          +       * structured form.
          +       * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3; + * + */ + public Builder setStructuredExtractedFilter( + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter.Builder + builderForValue) { + if (structuredExtractedFilterBuilder_ == null) { + structuredExtractedFilter_ = builderForValue.build(); + } else { + structuredExtractedFilterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +       * The filters that were extracted from the input query represented in a
          +       * structured form.
          +       * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3; + * + */ + public Builder mergeStructuredExtractedFilter( + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .StructuredExtractedFilter + value) { + if (structuredExtractedFilterBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && structuredExtractedFilter_ != null + && structuredExtractedFilter_ + != com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .getDefaultInstance()) { + getStructuredExtractedFilterBuilder().mergeFrom(value); + } else { + structuredExtractedFilter_ = value; + } + } else { + structuredExtractedFilterBuilder_.mergeFrom(value); + } + if (structuredExtractedFilter_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
          +       * The filters that were extracted from the input query represented in a
          +       * structured form.
          +       * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3; + * + */ + public Builder clearStructuredExtractedFilter() { + bitField0_ = (bitField0_ & ~0x00000008); + structuredExtractedFilter_ = null; + if (structuredExtractedFilterBuilder_ != null) { + structuredExtractedFilterBuilder_.dispose(); + structuredExtractedFilterBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +       * The filters that were extracted from the input query represented in a
          +       * structured form.
          +       * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3; + * + */ + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Builder + getStructuredExtractedFilterBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetStructuredExtractedFilterFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +       * The filters that were extracted from the input query represented in a
          +       * structured form.
          +       * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3; + * + */ + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilterOrBuilder + getStructuredExtractedFilterOrBuilder() { + if (structuredExtractedFilterBuilder_ != null) { + return structuredExtractedFilterBuilder_.getMessageOrBuilder(); + } else { + return structuredExtractedFilter_ == null + ? com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter + .getDefaultInstance() + : structuredExtractedFilter_; + } + } + + /** + * + * + *
          +       * The filters that were extracted from the input query represented in a
          +       * structured form.
          +       * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Builder, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilterOrBuilder> + internalGetStructuredExtractedFilterFieldBuilder() { + if (structuredExtractedFilterBuilder_ == null) { + structuredExtractedFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Builder, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilterOrBuilder>( + getStructuredExtractedFilter(), getParentForChildren(), isClean()); + structuredExtractedFilter_ = null; + } + return structuredExtractedFilterBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo) + private static final com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo(); + } + + public static com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NaturalLanguageQueryUnderstandingInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SessionInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SearchResponse.SessionInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +     * Name of the session.
          +     * If the auto-session mode is used (when
          +     * [SearchRequest.session][google.cloud.discoveryengine.v1.SearchRequest.session]
          +     * ends with "-"), this field holds the newly generated session name.
          +     * 
          + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
          +     * Name of the session.
          +     * If the auto-session mode is used (when
          +     * [SearchRequest.session][google.cloud.discoveryengine.v1.SearchRequest.session]
          +     * ends with "-"), this field holds the newly generated session name.
          +     * 
          + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +     * Query ID that corresponds to this search API call.
          +     * One session can have multiple turns, each with a unique query ID.
          +     *
          +     * By specifying the session name and this query ID in the Answer API call,
          +     * the answer generation happens in the context of the search results from
          +     * this search call.
          +     * 
          + * + * string query_id = 2; + * + * @return The queryId. + */ + java.lang.String getQueryId(); + + /** + * + * + *
          +     * Query ID that corresponds to this search API call.
          +     * One session can have multiple turns, each with a unique query ID.
          +     *
          +     * By specifying the session name and this query ID in the Answer API call,
          +     * the answer generation happens in the context of the search results from
          +     * this search call.
          +     * 
          + * + * string query_id = 2; + * + * @return The bytes for queryId. + */ + com.google.protobuf.ByteString getQueryIdBytes(); + } + + /** + * + * + *
          +   * Information about the session.
          +   * 
          + * + * Protobuf type {@code google.cloud.discoveryengine.v1.SearchResponse.SessionInfo} + */ + public static final class SessionInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SearchResponse.SessionInfo) + SessionInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SessionInfo"); + } + + // Use SessionInfo.newBuilder() to construct. + private SessionInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SessionInfo() { + name_ = ""; + queryId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_SessionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1_SearchResponse_SessionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.SearchResponse.SessionInfo.class, + com.google.cloud.discoveryengine.v1.SearchResponse.SessionInfo.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
          +     * Name of the session.
          +     * If the auto-session mode is used (when
          +     * [SearchRequest.session][google.cloud.discoveryengine.v1.SearchRequest.session]
          +     * ends with "-"), this field holds the newly generated session name.
          +     * 
          + * + * string name = 1; + * * @return The name. */ @java.lang.Override @@ -21065,6 +33254,74 @@ public boolean hasQueryExpansionInfo() { : queryExpansionInfo_; } + public static final int NATURAL_LANGUAGE_QUERY_UNDERSTANDING_INFO_FIELD_NUMBER = 15; + private com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + naturalLanguageQueryUnderstandingInfo_; + + /** + * + * + *
          +   * Output only. Natural language query understanding information for the
          +   * returned results.
          +   * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the naturalLanguageQueryUnderstandingInfo field is set. + */ + @java.lang.Override + public boolean hasNaturalLanguageQueryUnderstandingInfo() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
          +   * Output only. Natural language query understanding information for the
          +   * returned results.
          +   * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The naturalLanguageQueryUnderstandingInfo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + getNaturalLanguageQueryUnderstandingInfo() { + return naturalLanguageQueryUnderstandingInfo_ == null + ? com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .getDefaultInstance() + : naturalLanguageQueryUnderstandingInfo_; + } + + /** + * + * + *
          +   * Output only. Natural language query understanding information for the
          +   * returned results.
          +   * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfoOrBuilder + getNaturalLanguageQueryUnderstandingInfoOrBuilder() { + return naturalLanguageQueryUnderstandingInfo_ == null + ? com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .getDefaultInstance() + : naturalLanguageQueryUnderstandingInfo_; + } + public static final int SESSION_INFO_FIELD_NUMBER = 19; private com.google.cloud.discoveryengine.v1.SearchResponse.SessionInfo sessionInfo_; @@ -21085,7 +33342,7 @@ public boolean hasQueryExpansionInfo() { */ @java.lang.Override public boolean hasSessionInfo() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -21208,17 +33465,60 @@ public com.google.cloud.discoveryengine.v1.SearchLinkPromotion getSearchLinkProm * * *
          -   * Promotions for site search.
          +   * Promotions for site search.
          +   * 
          + * + * + * repeated .google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotions = 23; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchLinkPromotionOrBuilder + getSearchLinkPromotionsOrBuilder(int index) { + return searchLinkPromotions_.get(index); + } + + public static final int SEMANTIC_STATE_FIELD_NUMBER = 36; + private int semanticState_ = 0; + + /** + * + * + *
          +   * Output only. Indicates the semantic state of the search response.
          +   * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.SemanticState semantic_state = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for semanticState. + */ + @java.lang.Override + public int getSemanticStateValue() { + return semanticState_; + } + + /** + * + * + *
          +   * Output only. Indicates the semantic state of the search response.
              * 
          * * - * repeated .google.cloud.discoveryengine.v1.SearchLinkPromotion search_link_promotions = 23; + * .google.cloud.discoveryengine.v1.SearchResponse.SemanticState semantic_state = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The semanticState. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchLinkPromotionOrBuilder - getSearchLinkPromotionsOrBuilder(int index) { - return searchLinkPromotions_.get(index); + public com.google.cloud.discoveryengine.v1.SearchResponse.SemanticState getSemanticState() { + com.google.cloud.discoveryengine.v1.SearchResponse.SemanticState result = + com.google.cloud.discoveryengine.v1.SearchResponse.SemanticState.forNumber(semanticState_); + return result == null + ? com.google.cloud.discoveryengine.v1.SearchResponse.SemanticState.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; @@ -21263,11 +33563,20 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(14, getQueryExpansionInfo()); } if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(15, getNaturalLanguageQueryUnderstandingInfo()); + } + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(19, getSessionInfo()); } for (int i = 0; i < searchLinkPromotions_.size(); i++) { output.writeMessage(23, searchLinkPromotions_.get(i)); } + if (semanticState_ + != com.google.cloud.discoveryengine.v1.SearchResponse.SemanticState + .SEMANTIC_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(36, semanticState_); + } getUnknownFields().writeTo(output); } @@ -21305,6 +33614,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getQueryExpansionInfo()); } if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, getNaturalLanguageQueryUnderstandingInfo()); + } + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getSessionInfo()); } for (int i = 0; i < searchLinkPromotions_.size(); i++) { @@ -21312,6 +33626,12 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 23, searchLinkPromotions_.get(i)); } + if (semanticState_ + != com.google.cloud.discoveryengine.v1.SearchResponse.SemanticState + .SEMANTIC_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(36, semanticState_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -21343,11 +33663,18 @@ public boolean equals(final java.lang.Object obj) { if (hasQueryExpansionInfo()) { if (!getQueryExpansionInfo().equals(other.getQueryExpansionInfo())) return false; } + if (hasNaturalLanguageQueryUnderstandingInfo() + != other.hasNaturalLanguageQueryUnderstandingInfo()) return false; + if (hasNaturalLanguageQueryUnderstandingInfo()) { + if (!getNaturalLanguageQueryUnderstandingInfo() + .equals(other.getNaturalLanguageQueryUnderstandingInfo())) return false; + } if (hasSessionInfo() != other.hasSessionInfo()) return false; if (hasSessionInfo()) { if (!getSessionInfo().equals(other.getSessionInfo())) return false; } if (!getSearchLinkPromotionsList().equals(other.getSearchLinkPromotionsList())) return false; + if (semanticState_ != other.semanticState_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -21385,6 +33712,10 @@ public int hashCode() { hash = (37 * hash) + QUERY_EXPANSION_INFO_FIELD_NUMBER; hash = (53 * hash) + getQueryExpansionInfo().hashCode(); } + if (hasNaturalLanguageQueryUnderstandingInfo()) { + hash = (37 * hash) + NATURAL_LANGUAGE_QUERY_UNDERSTANDING_INFO_FIELD_NUMBER; + hash = (53 * hash) + getNaturalLanguageQueryUnderstandingInfo().hashCode(); + } if (hasSessionInfo()) { hash = (37 * hash) + SESSION_INFO_FIELD_NUMBER; hash = (53 * hash) + getSessionInfo().hashCode(); @@ -21393,6 +33724,8 @@ public int hashCode() { hash = (37 * hash) + SEARCH_LINK_PROMOTIONS_FIELD_NUMBER; hash = (53 * hash) + getSearchLinkPromotionsList().hashCode(); } + hash = (37 * hash) + SEMANTIC_STATE_FIELD_NUMBER; + hash = (53 * hash) + semanticState_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -21540,6 +33873,7 @@ private void maybeForceBuilderInitialization() { internalGetFacetsFieldBuilder(); internalGetSummaryFieldBuilder(); internalGetQueryExpansionInfoFieldBuilder(); + internalGetNaturalLanguageQueryUnderstandingInfoFieldBuilder(); internalGetSessionInfoFieldBuilder(); internalGetSearchLinkPromotionsFieldBuilder(); } @@ -21578,6 +33912,11 @@ public Builder clear() { queryExpansionInfoBuilder_.dispose(); queryExpansionInfoBuilder_ = null; } + naturalLanguageQueryUnderstandingInfo_ = null; + if (naturalLanguageQueryUnderstandingInfoBuilder_ != null) { + naturalLanguageQueryUnderstandingInfoBuilder_.dispose(); + naturalLanguageQueryUnderstandingInfoBuilder_ = null; + } sessionInfo_ = null; if (sessionInfoBuilder_ != null) { sessionInfoBuilder_.dispose(); @@ -21589,7 +33928,8 @@ public Builder clear() { searchLinkPromotions_ = null; searchLinkPromotionsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); + semanticState_ = 0; return this; } @@ -21646,9 +33986,9 @@ private void buildPartialRepeatedFields( result.facets_ = facetsBuilder_.build(); } if (searchLinkPromotionsBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { searchLinkPromotions_ = java.util.Collections.unmodifiableList(searchLinkPromotions_); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); } result.searchLinkPromotions_ = searchLinkPromotions_; } else { @@ -21686,9 +34026,19 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.SearchResponse re to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000200) != 0)) { + result.naturalLanguageQueryUnderstandingInfo_ = + naturalLanguageQueryUnderstandingInfoBuilder_ == null + ? naturalLanguageQueryUnderstandingInfo_ + : naturalLanguageQueryUnderstandingInfoBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000400) != 0)) { result.sessionInfo_ = sessionInfoBuilder_ == null ? sessionInfo_ : sessionInfoBuilder_.build(); - to_bitField0_ |= 0x00000004; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.semanticState_ = semanticState_; } result.bitField0_ |= to_bitField0_; } @@ -21789,6 +34139,10 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchResponse othe if (other.hasQueryExpansionInfo()) { mergeQueryExpansionInfo(other.getQueryExpansionInfo()); } + if (other.hasNaturalLanguageQueryUnderstandingInfo()) { + mergeNaturalLanguageQueryUnderstandingInfo( + other.getNaturalLanguageQueryUnderstandingInfo()); + } if (other.hasSessionInfo()) { mergeSessionInfo(other.getSessionInfo()); } @@ -21796,7 +34150,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchResponse othe if (!other.searchLinkPromotions_.isEmpty()) { if (searchLinkPromotions_.isEmpty()) { searchLinkPromotions_ = other.searchLinkPromotions_; - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); } else { ensureSearchLinkPromotionsIsMutable(); searchLinkPromotions_.addAll(other.searchLinkPromotions_); @@ -21809,7 +34163,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchResponse othe searchLinkPromotionsBuilder_.dispose(); searchLinkPromotionsBuilder_ = null; searchLinkPromotions_ = other.searchLinkPromotions_; - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); searchLinkPromotionsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetSearchLinkPromotionsFieldBuilder() @@ -21819,6 +34173,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SearchResponse othe } } } + if (other.semanticState_ != 0) { + setSemanticStateValue(other.getSemanticStateValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -21916,11 +34273,19 @@ public Builder mergeFrom( bitField0_ |= 0x00000100; break; } // case 114 + case 122: + { + input.readMessage( + internalGetNaturalLanguageQueryUnderstandingInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 122 case 154: { input.readMessage( internalGetSessionInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 154 case 186: @@ -21937,6 +34302,12 @@ public Builder mergeFrom( } break; } // case 186 + case 288: + { + semanticState_ = input.readEnum(); + bitField0_ |= 0x00001000; + break; + } // case 288 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -23771,6 +36142,253 @@ public Builder clearQueryExpansionInfo() { return queryExpansionInfoBuilder_; } + private com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + naturalLanguageQueryUnderstandingInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo, + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .Builder, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfoOrBuilder> + naturalLanguageQueryUnderstandingInfoBuilder_; + + /** + * + * + *
          +     * Output only. Natural language query understanding information for the
          +     * returned results.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the naturalLanguageQueryUnderstandingInfo field is set. + */ + public boolean hasNaturalLanguageQueryUnderstandingInfo() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
          +     * Output only. Natural language query understanding information for the
          +     * returned results.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The naturalLanguageQueryUnderstandingInfo. + */ + public com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + getNaturalLanguageQueryUnderstandingInfo() { + if (naturalLanguageQueryUnderstandingInfoBuilder_ == null) { + return naturalLanguageQueryUnderstandingInfo_ == null + ? com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.getDefaultInstance() + : naturalLanguageQueryUnderstandingInfo_; + } else { + return naturalLanguageQueryUnderstandingInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * Output only. Natural language query understanding information for the
          +     * returned results.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setNaturalLanguageQueryUnderstandingInfo( + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + value) { + if (naturalLanguageQueryUnderstandingInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + naturalLanguageQueryUnderstandingInfo_ = value; + } else { + naturalLanguageQueryUnderstandingInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Natural language query understanding information for the
          +     * returned results.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setNaturalLanguageQueryUnderstandingInfo( + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .Builder + builderForValue) { + if (naturalLanguageQueryUnderstandingInfoBuilder_ == null) { + naturalLanguageQueryUnderstandingInfo_ = builderForValue.build(); + } else { + naturalLanguageQueryUnderstandingInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Natural language query understanding information for the
          +     * returned results.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeNaturalLanguageQueryUnderstandingInfo( + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + value) { + if (naturalLanguageQueryUnderstandingInfoBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && naturalLanguageQueryUnderstandingInfo_ != null + && naturalLanguageQueryUnderstandingInfo_ + != com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.getDefaultInstance()) { + getNaturalLanguageQueryUnderstandingInfoBuilder().mergeFrom(value); + } else { + naturalLanguageQueryUnderstandingInfo_ = value; + } + } else { + naturalLanguageQueryUnderstandingInfoBuilder_.mergeFrom(value); + } + if (naturalLanguageQueryUnderstandingInfo_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * Output only. Natural language query understanding information for the
          +     * returned results.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearNaturalLanguageQueryUnderstandingInfo() { + bitField0_ = (bitField0_ & ~0x00000200); + naturalLanguageQueryUnderstandingInfo_ = null; + if (naturalLanguageQueryUnderstandingInfoBuilder_ != null) { + naturalLanguageQueryUnderstandingInfoBuilder_.dispose(); + naturalLanguageQueryUnderstandingInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Natural language query understanding information for the
          +     * returned results.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .Builder + getNaturalLanguageQueryUnderstandingInfoBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetNaturalLanguageQueryUnderstandingInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * Output only. Natural language query understanding information for the
          +     * returned results.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfoOrBuilder + getNaturalLanguageQueryUnderstandingInfoOrBuilder() { + if (naturalLanguageQueryUnderstandingInfoBuilder_ != null) { + return naturalLanguageQueryUnderstandingInfoBuilder_.getMessageOrBuilder(); + } else { + return naturalLanguageQueryUnderstandingInfo_ == null + ? com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.getDefaultInstance() + : naturalLanguageQueryUnderstandingInfo_; + } + } + + /** + * + * + *
          +     * Output only. Natural language query understanding information for the
          +     * returned results.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo, + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + .Builder, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfoOrBuilder> + internalGetNaturalLanguageQueryUnderstandingInfoFieldBuilder() { + if (naturalLanguageQueryUnderstandingInfoBuilder_ == null) { + naturalLanguageQueryUnderstandingInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfo.Builder, + com.google.cloud.discoveryengine.v1.SearchResponse + .NaturalLanguageQueryUnderstandingInfoOrBuilder>( + getNaturalLanguageQueryUnderstandingInfo(), getParentForChildren(), isClean()); + naturalLanguageQueryUnderstandingInfo_ = null; + } + return naturalLanguageQueryUnderstandingInfoBuilder_; + } + private com.google.cloud.discoveryengine.v1.SearchResponse.SessionInfo sessionInfo_; private com.google.protobuf.SingleFieldBuilder< com.google.cloud.discoveryengine.v1.SearchResponse.SessionInfo, @@ -23794,7 +36412,7 @@ public Builder clearQueryExpansionInfo() { * @return Whether the sessionInfo field is set. */ public boolean hasSessionInfo() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -23845,7 +36463,7 @@ public Builder setSessionInfo( } else { sessionInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -23870,7 +36488,7 @@ public Builder setSessionInfo( } else { sessionInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -23891,7 +36509,7 @@ public Builder setSessionInfo( public Builder mergeSessionInfo( com.google.cloud.discoveryengine.v1.SearchResponse.SessionInfo value) { if (sessionInfoBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000400) != 0) && sessionInfo_ != null && sessionInfo_ != com.google.cloud.discoveryengine.v1.SearchResponse.SessionInfo @@ -23904,7 +36522,7 @@ public Builder mergeSessionInfo( sessionInfoBuilder_.mergeFrom(value); } if (sessionInfo_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -23924,7 +36542,7 @@ public Builder mergeSessionInfo( * .google.cloud.discoveryengine.v1.SearchResponse.SessionInfo session_info = 19; */ public Builder clearSessionInfo() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); sessionInfo_ = null; if (sessionInfoBuilder_ != null) { sessionInfoBuilder_.dispose(); @@ -23949,7 +36567,7 @@ public Builder clearSessionInfo() { */ public com.google.cloud.discoveryengine.v1.SearchResponse.SessionInfo.Builder getSessionInfoBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return internalGetSessionInfoFieldBuilder().getBuilder(); } @@ -24012,11 +36630,11 @@ public Builder clearSessionInfo() { searchLinkPromotions_ = java.util.Collections.emptyList(); private void ensureSearchLinkPromotionsIsMutable() { - if (!((bitField0_ & 0x00000400) != 0)) { + if (!((bitField0_ & 0x00000800) != 0)) { searchLinkPromotions_ = new java.util.ArrayList( searchLinkPromotions_); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; } } @@ -24272,7 +36890,7 @@ public Builder addAllSearchLinkPromotions( public Builder clearSearchLinkPromotions() { if (searchLinkPromotionsBuilder_ == null) { searchLinkPromotions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); } else { searchLinkPromotionsBuilder_.clear(); @@ -24422,7 +37040,7 @@ public Builder removeSearchLinkPromotions(int index) { com.google.cloud.discoveryengine.v1.SearchLinkPromotion.Builder, com.google.cloud.discoveryengine.v1.SearchLinkPromotionOrBuilder>( searchLinkPromotions_, - ((bitField0_ & 0x00000400) != 0), + ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); searchLinkPromotions_ = null; @@ -24430,6 +37048,115 @@ public Builder removeSearchLinkPromotions(int index) { return searchLinkPromotionsBuilder_; } + private int semanticState_ = 0; + + /** + * + * + *
          +     * Output only. Indicates the semantic state of the search response.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.SemanticState semantic_state = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for semanticState. + */ + @java.lang.Override + public int getSemanticStateValue() { + return semanticState_; + } + + /** + * + * + *
          +     * Output only. Indicates the semantic state of the search response.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.SemanticState semantic_state = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for semanticState to set. + * @return This builder for chaining. + */ + public Builder setSemanticStateValue(int value) { + semanticState_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Indicates the semantic state of the search response.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.SemanticState semantic_state = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The semanticState. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchResponse.SemanticState getSemanticState() { + com.google.cloud.discoveryengine.v1.SearchResponse.SemanticState result = + com.google.cloud.discoveryengine.v1.SearchResponse.SemanticState.forNumber( + semanticState_); + return result == null + ? com.google.cloud.discoveryengine.v1.SearchResponse.SemanticState.UNRECOGNIZED + : result; + } + + /** + * + * + *
          +     * Output only. Indicates the semantic state of the search response.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.SemanticState semantic_state = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The semanticState to set. + * @return This builder for chaining. + */ + public Builder setSemanticState( + com.google.cloud.discoveryengine.v1.SearchResponse.SemanticState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; + semanticState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Output only. Indicates the semantic state of the search response.
          +     * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.SemanticState semantic_state = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearSemanticState() { + bitField0_ = (bitField0_ & ~0x00001000); + semanticState_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SearchResponse) } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchResponseOrBuilder.java index 0c3a7b30d962..24bf944ea592 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchResponseOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchResponseOrBuilder.java @@ -378,6 +378,54 @@ com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder getResu com.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfoOrBuilder getQueryExpansionInfoOrBuilder(); + /** + * + * + *
          +   * Output only. Natural language query understanding information for the
          +   * returned results.
          +   * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the naturalLanguageQueryUnderstandingInfo field is set. + */ + boolean hasNaturalLanguageQueryUnderstandingInfo(); + + /** + * + * + *
          +   * Output only. Natural language query understanding information for the
          +   * returned results.
          +   * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The naturalLanguageQueryUnderstandingInfo. + */ + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo + getNaturalLanguageQueryUnderstandingInfo(); + + /** + * + * + *
          +   * Output only. Natural language query understanding information for the
          +   * returned results.
          +   * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfoOrBuilder + getNaturalLanguageQueryUnderstandingInfoOrBuilder(); + /** * * @@ -494,4 +542,34 @@ com.google.cloud.discoveryengine.v1.SearchResponse.SearchResultOrBuilder getResu */ com.google.cloud.discoveryengine.v1.SearchLinkPromotionOrBuilder getSearchLinkPromotionsOrBuilder( int index); + + /** + * + * + *
          +   * Output only. Indicates the semantic state of the search response.
          +   * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.SemanticState semantic_state = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for semanticState. + */ + int getSemanticStateValue(); + + /** + * + * + *
          +   * Output only. Indicates the semantic state of the search response.
          +   * 
          + * + * + * .google.cloud.discoveryengine.v1.SearchResponse.SemanticState semantic_state = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The semanticState. + */ + com.google.cloud.discoveryengine.v1.SearchResponse.SemanticState getSemanticState(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceProto.java index 5e3f9e9b2b2d..aed1551f27ab 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceProto.java @@ -112,6 +112,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_ChunkSpec_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1_SearchRequest_ContentSearchSpec_ChunkSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SearchRequest_NaturalLanguageQueryUnderstandingSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SearchRequest_NaturalLanguageQueryUnderstandingSpec_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1_SearchRequest_SearchAsYouTypeSpec_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -120,6 +124,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1_SearchRequest_DisplaySpec_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1_SearchRequest_DisplaySpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SearchRequest_CrowdingSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SearchRequest_CrowdingSpec_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1_SearchRequest_SessionSpec_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -144,10 +152,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_ModelScoresEntry_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_ModelScoresEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_RankSignals_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -156,6 +160,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_RankSignals_CustomSignal_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_RankSignals_CustomSignal_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_ModelScoresEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_ModelScoresEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -200,6 +208,38 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1_SearchResponse_QueryExpansionInfo_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1_SearchResponse_QueryExpansionInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_StringConstraint_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_StringConstraint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_NumberConstraint_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_NumberConstraint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_GeolocationConstraint_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_GeolocationConstraint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_AndExpression_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_AndExpression_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_OrExpression_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_OrExpression_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_Expression_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_Expression_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1_SearchResponse_SessionInfo_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -220,57 +260,62 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_behavior.proto\032\031google/api/resource.pro" + "to\032+google/cloud/discoveryengine/v1/chunk.proto\032,google/cloud/discoveryengine/v1" + "/common.proto\032.google/cloud/discoveryeng" - + "ine/v1/document.proto\032\034google/protobuf/struct.proto\"\3122\n\r" + + "ine/v1/document.proto\032\034google/protobuf/struct.proto\"\261;\n\r" + "SearchRequest\022L\n" + "\016serving_config\030\001 \001(\tB4\340A\002\372A.\n" + ",discoveryengine.googleapis.com/ServingConfig\022:\n" + "\006branch\030\002 \001(\tB*\372A\'\n" + "%discoveryengine.googleapis.com/Branch\022\r\n" - + "\005query\030\003 \001(\t\022N\n" - + "\013image_query\030\023 " - + "\001(\01329.google.cloud.discoveryengine.v1.SearchRequest.ImageQuery\022\021\n" + + "\005query\030\003 \001(\t\022\034\n" + + "\017page_categories\030? \003(\tB\003\340A\001\022N\n" + + "\013image_query\030\023 \001(\01329.goog" + + "le.cloud.discoveryengine.v1.SearchRequest.ImageQuery\022\021\n" + "\tpage_size\030\004 \001(\005\022\022\n\n" + "page_token\030\005 \001(\t\022\016\n" + "\006offset\030\006 \001(\005\022\031\n" + "\021one_box_page_size\030/ \001(\005\022V\n" - + "\020data_store_specs\030 " - + " \003(\0132<.google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec\022\016\n" + + "\020data_store_specs\030 \003(\013" + + "2<.google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec\022\016\n" + "\006filter\030\007 \001(\t\022\030\n" + "\020canonical_filter\030\035 \001(\t\022\020\n" + "\010order_by\030\010 \001(\t\022<\n" + "\tuser_info\030\025 \001(\0132).google.cloud.discoveryengine.v1.UserInfo\022\025\n\r" + "language_code\030# \001(\t\022M\n" - + "\013facet_specs\030\t \003(\01328" - + ".google.cloud.discoveryengine.v1.SearchRequest.FacetSpec\022L\n\n" + + "\013facet_specs\030\t \003(\01328.google.cl" + + "oud.discoveryengine.v1.SearchRequest.FacetSpec\022L\n\n" + "boost_spec\030\n" + " \001(\01328.google.cloud.discoveryengine.v1.SearchRequest.BoostSpec\022J\n" - + "\006params\030\013 \003(\0132:.google." - + "cloud.discoveryengine.v1.SearchRequest.ParamsEntry\022_\n" + + "\006params\030\013 \003(\0132:.google.cloud.disc" + + "overyengine.v1.SearchRequest.ParamsEntry\022_\n" + "\024query_expansion_spec\030\r" + " \001(\0132A.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec\022a\n" - + "\025spell_correction_spec\030\016 \001(\0132B.google.cloud.discov" - + "eryengine.v1.SearchRequest.SpellCorrectionSpec\022\026\n" - + "\016user_pseudo_id\030\017 \001(\t\022]\n" - + "\023content_search_spec\030\030 \001(\0132@.google.cloud.disco" - + "veryengine.v1.SearchRequest.ContentSearchSpec\022\023\n" + + "\025spell_correction_spec\030\016" + + " \001(\0132B.google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec\022\033\n" + + "\016user_pseudo_id\030\017 \001(\tB\003\340A\001\022]\n" + + "\023content_search_spec\030\030 \001(\0132@.google.cloud.discoverye" + + "ngine.v1.SearchRequest.ContentSearchSpec\022\037\n" + + "\022ranking_expression\030\032 \001(\tB\003\340A\001\022p\n" + + "\032ranking_expression_backend\0305 \001(\0162G.google.c" + + "loud.discoveryengine.v1.SearchRequest.RankingExpressionBackendB\003\340A\001\022\023\n" + "\013safe_search\030\024 \001(\010\022S\n" - + "\013user_labels\030\026" - + " \003(\0132>.google.cloud.discoveryengine.v1.SearchRequest.UserLabelsEntry\022c\n" - + "\027search_as_you_type_spec\030\037 \001(\0132B.google.cloud." - + "discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec\022U\n" - + "\014display_spec\030& \001(\0132:.goo" - + "gle.cloud.discoveryengine.v1.SearchRequest.DisplaySpecB\003\340A\001\022<\n" + + "\013user_labels\030\026 \003(\0132>.google.c" + + "loud.discoveryengine.v1.SearchRequest.UserLabelsEntry\022\214\001\n" + + ")natural_language_query_understanding_spec\030\034 \001(\0132T.google.cloud" + + ".discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpecB\003\340A\001\022c\n" + + "\027search_as_you_type_spec\030\037 \001(\0132B.google.c" + + "loud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec\022U\n" + + "\014display_spec\030& \001(\0132" + + ":.google.cloud.discoveryengine.v1.SearchRequest.DisplaySpecB\003\340A\001\022X\n" + + "\016crowding_specs\030(" + + " \003(\0132;.google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpecB\003\340A\001\022<\n" + "\007session\030) \001(\tB+\372A(\n" + "&discoveryengine.googleapis.com/Session\022P\n" - + "\014session_spec\030* \001(\0132:.google.cloud.d" - + "iscoveryengine.v1.SearchRequest.SessionSpec\022^\n" - + "\023relevance_threshold\030, \001(\0162A.googl" - + "e.cloud.discoveryengine.v1.SearchRequest.RelevanceThreshold\022d\n" - + "\024relevance_score_spec\0304 \001(\0132A.google.cloud.discoveryengine" - + ".v1.SearchRequest.RelevanceScoreSpecB\003\340A\001\022\032\n" - + "\022ranking_expression\030\032 \001(\t\022p\n" - + "\032ranking_expression_backend\0305 \001(\0162G.google.cloud" - + ".discoveryengine.v1.SearchRequest.RankingExpressionBackendB\003\340A\001\032,\n\n" + + "\014session_spec\030* \001(\0132:" + + ".google.cloud.discoveryengine.v1.SearchRequest.SessionSpec\022^\n" + + "\023relevance_threshold\030," + + " \001(\0162A.google.cloud.discoveryengine.v1.SearchRequest.RelevanceThreshold\022d\n" + + "\024relevance_score_spec\0304 \001(\0132A.google.cloud." + + "discoveryengine.v1.SearchRequest.RelevanceScoreSpecB\003\340A\001\032,\n\n" + "ImageQuery\022\025\n" + "\013image_bytes\030\001 \001(\tH\000B\007\n" + "\005image\032\343\001\n\r" @@ -278,12 +323,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "data_store\030\001 \001(\tB0\340A\002\372A*\n" + "(discoveryengine.googleapis.com/DataStore\022\023\n" + "\006filter\030\005 \001(\tB\003\340A\001\022Q\n\n" - + "boost_spec\030\006 \001(\01328" - + ".google.cloud.discoveryengine.v1.SearchRequest.BoostSpecB\003\340A\001\022$\n" + + "boost_spec\030\006 \001(\01328.google" + + ".cloud.discoveryengine.v1.SearchRequest.BoostSpecB\003\340A\001\022$\n" + "\027custom_search_operators\030\007 \001(\tB\003\340A\001\032\374\002\n" + "\tFacetSpec\022Y\n" - + "\tfacet_key\030\001 \001(\0132A.google.cloud.discoveryeng" - + "ine.v1.SearchRequest.FacetSpec.FacetKeyB\003\340A\002\022\r\n" + + "\tfacet_key\030\001" + + " \001(\0132A.google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKeyB\003\340A\002\022\r\n" + "\005limit\030\002 \001(\005\022\034\n" + "\024excluded_filter_keys\030\003 \003(\t\022\037\n" + "\027enable_dynamic_position\030\004 \001(\010\032\305\001\n" @@ -296,23 +341,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020case_insensitive\030\006 \001(\010\022\020\n" + "\010order_by\030\007 \001(\t\032\274\007\n" + "\tBoostSpec\022j\n" - + "\025condition_boost_specs\030\001 \003(\0132K.google.cloud.discoveryengine.v" - + "1.SearchRequest.BoostSpec.ConditionBoostSpec\032\302\006\n" + + "\025condition_boost_specs\030\001 \003(\0132K.google.cloud.discoveryengine.v1.Searc" + + "hRequest.BoostSpec.ConditionBoostSpec\032\302\006\n" + "\022ConditionBoostSpec\022\021\n" + "\tcondition\030\001 \001(\t\022\r\n" + "\005boost\030\002 \001(\002\022x\n" - + "\022boost_control_spec\030\003 \001(\0132\\.google.cloud.discoveryengine" - + ".v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec\032\217\005\n" - + "\020BoostControlSpec\022\022\n\n" + + "\022boost_control_spec\030\003 \001(\0132\\.google.cloud.discoveryengine.v1.Sea" + + "rchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec\032\217\005\n" + + "\020BoostControlSpec\022\022\n" + + "\n" + "field_name\030\001 \001(\t\022\202\001\n" - + "\016attribute_type\030\002 \001(\0162j.google.cloud.discoveryengine" - + ".v1.SearchRequest.BoostSpec.ConditionBoo" - + "stSpec.BoostControlSpec.AttributeType\022\212\001\n" - + "\022interpolation_type\030\003 \001(\0162n.google.clou" - + "d.discoveryengine.v1.SearchRequest.Boost" - + "Spec.ConditionBoostSpec.BoostControlSpec.InterpolationType\022\201\001\n" - + "\016control_points\030\004 \003(\0132i.google.cloud.discoveryengine.v1.Se" - + "archRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint\032=\n" + + "\016attribute_type\030\002 \001(\0162j.google.cloud.discoveryengine.v1.Sea" + + "rchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType\022\212\001\n" + + "\022interpolation_type\030\003 \001(\0162n.google.cloud.disco" + + "veryengine.v1.SearchRequest.BoostSpec.Co" + + "nditionBoostSpec.BoostControlSpec.InterpolationType\022\201\001\n" + + "\016control_points\030\004 \003(\0132i.google.cloud.discoveryengine.v1.SearchReq" + + "uest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint\032=\n" + "\014ControlPoint\022\027\n" + "\017attribute_value\030\001 \001(\t\022\024\n" + "\014boost_amount\030\002 \001(\002\"M\n\r" @@ -324,31 +369,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036INTERPOLATION_TYPE_UNSPECIFIED\020\000\022\n\n" + "\006LINEAR\020\001\032\324\001\n" + "\022QueryExpansionSpec\022^\n" - + "\tcondition\030\001 \001(\0162K.google.cloud.discoveryengine.v1.Se" - + "archRequest.QueryExpansionSpec.Condition\022\036\n" + + "\tcondition\030\001 \001(\0162K.g" + + "oogle.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition\022\036\n" + "\026pin_unexpanded_results\030\002 \001(\010\">\n" + "\tCondition\022\031\n" + "\025CONDITION_UNSPECIFIED\020\000\022\014\n" + "\010DISABLED\020\001\022\010\n" + "\004AUTO\020\002\032\251\001\n" + "\023SpellCorrectionSpec\022U\n" - + "\004mode\030\001 \001(\0162G.google.cloud.discoverye" - + "ngine.v1.SearchRequest.SpellCorrectionSpec.Mode\";\n" + + "\004mode\030\001 \001(\0162G.google.cloud.discoveryengine.v" + + "1.SearchRequest.SpellCorrectionSpec.Mode\";\n" + "\004Mode\022\024\n" + "\020MODE_UNSPECIFIED\020\000\022\023\n" + "\017SUGGESTION_ONLY\020\001\022\010\n" + "\004AUTO\020\002\032\242\014\n" + "\021ContentSearchSpec\022b\n" - + "\014snippet_spec\030\001 \001(\0132L.googl" - + "e.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec\022b\n" - + "\014summary_spec\030\002 \001(\0132L.google.cloud.discoveryeng" - + "ine.v1.SearchRequest.ContentSearchSpec.SummarySpec\022w\n" - + "\027extractive_content_spec\030\003 \001(\0132V.google.cloud.discoveryengine.v1.Se" - + "archRequest.ContentSearchSpec.ExtractiveContentSpec\022m\n" - + "\022search_result_mode\030\004 \001(\0162Q.google.cloud.discoveryengine.v1.Search" - + "Request.ContentSearchSpec.SearchResultMode\022^\n\n" - + "chunk_spec\030\005 \001(\0132J.google.cloud.di" - + "scoveryengine.v1.SearchRequest.ContentSearchSpec.ChunkSpec\032`\n" + + "\014snippet_spec\030\001 \001(\0132L.google.cloud" + + ".discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec\022b\n" + + "\014summary_spec\030\002 \001(\0132L.google.cloud.discoveryengine.v1." + + "SearchRequest.ContentSearchSpec.SummarySpec\022w\n" + + "\027extractive_content_spec\030\003 \001(\0132V.g" + + "oogle.cloud.discoveryengine.v1.SearchReq" + + "uest.ContentSearchSpec.ExtractiveContentSpec\022m\n" + + "\022search_result_mode\030\004 \001(\0162Q.googl" + + "e.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SearchResultMode\022^\n\n" + + "chunk_spec\030\005 \001(\0132J.google.cloud.discovery" + + "engine.v1.SearchRequest.ContentSearchSpec.ChunkSpec\032`\n" + "\013SnippetSpec\022\035\n" + "\021max_snippet_count\030\001 \001(\005B\002\030\001\022\032\n" + "\016reference_only\030\002 \001(\010B\002\030\001\022\026\n" @@ -361,11 +407,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033ignore_low_relevant_content\030\t \001(\010\022\'\n" + "\032ignore_jail_breaking_query\030\n" + " \001(\010B\003\340A\001\022w\n" - + "\021model_prompt_spec\030\005 \001(\0132\\.google.cloud.discoveryengin" - + "e.v1.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec\022\025\n\r" + + "\021model_prompt_spec\030\005 \001(\0132\\.google.cloud.discoveryengine.v1.Se" + + "archRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec\022\025\n\r" + "language_code\030\006 \001(\t\022j\n\n" - + "model_spec\030\007 \001(\0132V.google.clo" - + "ud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec\022\033\n" + + "model_spec\030\007 \001(\0132V.google.cloud.disc" + + "overyengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec\022\033\n" + "\023use_semantic_chunks\030\010 \001(\010\032#\n" + "\017ModelPromptSpec\022\020\n" + "\010preamble\030\001 \001(\t\032\034\n" @@ -383,22 +429,48 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020SearchResultMode\022\"\n" + "\036SEARCH_RESULT_MODE_UNSPECIFIED\020\000\022\r\n" + "\tDOCUMENTS\020\001\022\n\n" - + "\006CHUNKS\020\002\032\303\001\n" + + "\006CHUNKS\020\002\032\340\004\n" + + "%NaturalLanguageQueryUnderstandingSpec\022\223\001\n" + + "\033filter_extraction_condition\030\001 \001(\0162n.goo" + + "gle.cloud.discoveryengine.v1.SearchReque" + + "st.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition\022.\n" + + "&geo_search_query_detection_field_names\030\002 \003(\t\022\224\001\n" + + "\031extracted_filter_behavior\030\003 \001(\0162l.google." + + "cloud.discoveryengine.v1.SearchRequest.N" + + "aturalLanguageQueryUnderstandingSpec.ExtractedFilterBehaviorB\003\340A\001\022 \n" + + "\023allowed_field_names\030\004 \003(\tB\003\340A\001\"Q\n" + + "\031FilterExtractionCondition\022\031\n" + + "\025CONDITION_UNSPECIFIED\020\000\022\014\n" + + "\010DISABLED\020\001\022\013\n" + + "\007ENABLED\020\002\"e\n" + + "\027ExtractedFilterBehavior\022)\n" + + "%EXTRACTED_FILTER_BEHAVIOR_UNSPECIFIED\020\000\022\017\n" + + "\013HARD_FILTER\020\001\022\016\n\n" + + "SOFT_BOOST\020\002\032\303\001\n" + "\023SearchAsYouTypeSpec\022_\n" - + "\tcondition\030\001 \001(\0162L.google.cloud.discoveryengine.v1.S" - + "earchRequest.SearchAsYouTypeSpec.Condition\"K\n" + + "\tcondition\030\001 \001(\0162L.google.cloud.discoveryengine." + + "v1.SearchRequest.SearchAsYouTypeSpec.Condition\"K\n" + "\tCondition\022\031\n" + "\025CONDITION_UNSPECIFIED\020\000\022\014\n" + "\010DISABLED\020\001\022\013\n" + "\007ENABLED\020\002\022\010\n" + "\004AUTO\020\003\032\230\002\n" + "\013DisplaySpec\022{\n" - + "\034match_highlighting_condition\030\001 \001(\0162U.google.cloud.discoveryen" - + "gine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition\"\213\001\n" + + "\034match_highlighting_condition\030\001 \001(\0162U.google.cloud.discove" + + "ryengine.v1.SearchRequest.DisplaySpec.MatchHighlightingCondition\"\213\001\n" + "\032MatchHighlightingCondition\022,\n" + "(MATCH_HIGHLIGHTING_CONDITION_UNSPECIFIED\020\000\022\037\n" + "\033MATCH_HIGHLIGHTING_DISABLED\020\001\022\036\n" - + "\032MATCH_HIGHLIGHTING_ENABLED\020\002\032q\n" + + "\032MATCH_HIGHLIGHTING_ENABLED\020\002\032\333\001\n" + + "\014CrowdingSpec\022\r\n" + + "\005field\030\001 \001(\t\022\021\n" + + "\tmax_count\030\002 \001(\005\022N\n" + + "\004mode\030\003 \001(\0162@.google" + + ".cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Mode\"Y\n" + + "\004Mode\022\024\n" + + "\020MODE_UNSPECIFIED\020\000\022\030\n" + + "\024DROP_CROWDED_RESULTS\020\001\022!\n" + + "\035DEMOTE_CROWDED_RESULTS_TO_END\020\002\032q\n" + "\013SessionSpec\022\020\n" + "\010query_id\030\001 \001(\t\022,\n" + "\037search_result_persistence_count\030\002 \001(\005H\000\210\001\001B\"\n" @@ -410,47 +482,50 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\0321\n" + "\017UserLabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"d\n" + + "\005value\030\002 \001(\t:\0028\001\"\222\001\n" + + "\030RankingExpressionBackend\022*\n" + + "&RANKING_EXPRESSION_BACKEND_UNSPECIFIED\020\000\022\014\n" + + "\004BYOE\020\001\032\002\010\001\022\020\n" + + "\010CLEARBOX\020\002\032\002\010\001\022\025\n" + + "\021RANK_BY_EMBEDDING\020\003\022\023\n" + + "\017RANK_BY_FORMULA\020\004\"d\n" + "\022RelevanceThreshold\022#\n" + "\037RELEVANCE_THRESHOLD_UNSPECIFIED\020\000\022\n\n" + "\006LOWEST\020\001\022\007\n" + "\003LOW\020\002\022\n\n" + "\006MEDIUM\020\003\022\010\n" - + "\004HIGH\020\004\"~\n" - + "\030RankingExpressionBackend\022*\n" - + "&RANKING_EXPRESSION_BACKEND_UNSPECIFIED\020\000\022\025\n" - + "\021RANK_BY_EMBEDDING\020\003\022\023\n" - + "\017RANK_BY_FORMULA\020\004\"\004\010\001\020\001\"\004\010\002\020\002\"\276\034\n" + + "\004HIGH\020\004\"\346/\n" + "\016SearchResponse\022M\n" + "\007results\030\001" + " \003(\0132<.google.cloud.discoveryengine.v1.SearchResponse.SearchResult\022E\n" - + "\006facets\030\002 \003" - + "(\01325.google.cloud.discoveryengine.v1.SearchResponse.Facet\022\022\n\n" + + "\006facets\030\002" + + " \003(\01325.google.cloud.discoveryengine.v1.SearchResponse.Facet\022\022\n\n" + "total_size\030\003 \001(\005\022\031\n" + "\021attribution_token\030\004 \001(\t\022\024\n" + "\014redirect_uri\030\014 \001(\t\022\027\n" + "\017next_page_token\030\005 \001(\t\022\027\n" + "\017corrected_query\030\007 \001(\t\022H\n" - + "\007summary\030\t \001(\01327.goog" - + "le.cloud.discoveryengine.v1.SearchResponse.Summary\022`\n" - + "\024query_expansion_info\030\016 \001(\013" - + "2B.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo\022Q\n" - + "\014session_info\030\023" - + " \001(\0132;.google.cloud.discoveryengine.v1.SearchResponse.SessionInfo\022T\n" - + "\026search_link_promotions\030\027 \003(\01324.google.cloud.d" - + "iscoveryengine.v1.SearchLinkPromotion\032\257\010\n" + + "\007summary\030\t \001(\013" + + "27.google.cloud.discoveryengine.v1.SearchResponse.Summary\022`\n" + + "\024query_expansion_info\030\016" + + " \001(\0132B.google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo\022\215\001\n" + + ")natural_language_query_understanding_info\030\017" + + " \001(\0132U.google.cloud.discoveryengine.v" + + "1.SearchResponse.NaturalLanguageQueryUnderstandingInfoB\003\340A\003\022Q\n" + + "\014session_info\030\023 \001(" + + "\0132;.google.cloud.discoveryengine.v1.SearchResponse.SessionInfo\022T\n" + + "\026search_link_promotions\030\027" + + " \003(\01324.google.cloud.discoveryengine.v1.SearchLinkPromotion\022Z\n" + + "\016semantic_state\030$ \001(\0162=.google.cloud.discoveryeng" + + "ine.v1.SearchResponse.SemanticStateB\003\340A\003\032\251\010\n" + "\014SearchResult\022\n\n" + "\002id\030\001 \001(\t\022;\n" + "\010document\030\002 \001(\0132).google.cloud.discoveryengine.v1.Document\0225\n" + "\005chunk\030\022 \001(\0132&.google.cloud.discoveryengine.v1.Chunk\022h\n" - + "\014model_scores\030\004 \003(\0132M.google.cloud.discoveryengine.v1.S" - + "earchResponse.SearchResult.ModelScoresEntryB\003\340A\003\022c\n" - + "\014rank_signals\030\007 \001(\0132H.google." - + "cloud.discoveryengine.v1.SearchResponse.SearchResult.RankSignalsB\003\340A\001\032_\n" - + "\020ModelScoresEntry\022\013\n" - + "\003key\030\001 \001(\t\022:\n" - + "\005value\030\002 \001(\0132+." - + "google.cloud.discoveryengine.v1.DoubleList:\0028\001\032\356\004\n" + + "\014model_scores\030\004 \003(\0132M.google.cloud.discoveryengine.v" + + "1.SearchResponse.SearchResult.ModelScoresEntryB\003\340A\003\022c\n" + + "\014rank_signals\030\007 \001(\0132H.goog" + + "le.cloud.discoveryengine.v1.SearchResponse.SearchResult.RankSignalsB\003\340A\001\032\350\004\n" + "\013RankSignals\022*\n" + "\030keyword_similarity_score\030\001 \001(\002B\003\340A\001H\000\210\001\001\022!\n" + "\017relevance_score\030\002 \001(\002B\003\340A\001H\001\210\001\001\022+\n" @@ -461,8 +536,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014document_age\030\007 \001(\002B\003\340A\001H\005\210\001\001\022!\n" + "\017boosting_factor\030\010 \001(\002B\003\340A\001H\006\210\001\001\022\031\n" + "\014default_rank\030 \001(\002B\003\340A\001\022r\n" - + "\016custom_signals\030! \003(\0132U.google.cloud.discoveryengine." - + "v1.SearchResponse.SearchResult.RankSignals.CustomSignalB\003\340A\001\0325\n" + + "\016custom_signals\030! \003(\0132U.google.cloud.discoveryengine.v1.SearchRespo" + + "nse.SearchResult.RankSignals.CustomSignalB\003\340A\001\0325\n" + "\014CustomSignal\022\021\n" + "\004name\030\001 \001(\tB\003\340A\001\022\022\n" + "\005value\030\002 \001(\002B\003\340A\001B\033\n" @@ -472,11 +547,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_pctr_rankB\022\n" + "\020_topicality_rankB\017\n\r" + "_document_ageB\022\n" - + "\020_boosting_factorJ\004\010\005\020\006\032\371\001\n" + + "\020_boosting_factor\032_\n" + + "\020ModelScoresEntry\022\013\n" + + "\003key\030\001 \001(\t\022:\n" + + "\005value\030\002" + + " \001(\0132+.google.cloud.discoveryengine.v1.DoubleList:\0028\001\032\371\001\n" + "\005Facet\022\013\n" + "\003key\030\001 \001(\t\022P\n" - + "\006values\030\002 \003(\0132@.google." - + "cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue\022\025\n\r" + + "\006values\030\002 \003(\0132@.google.clo" + + "ud.discoveryengine.v1.SearchResponse.Facet.FacetValue\022\025\n\r" + "dynamic_facet\030\003 \001(\010\032z\n\n" + "FacetValue\022\017\n" + "\005value\030\001 \001(\tH\000\022=\n" @@ -485,23 +564,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013facet_value\032\241\014\n" + "\007Summary\022\024\n" + "\014summary_text\030\001 \001(\t\022m\n" - + "\027summary_skipped_reasons\030\002 \003(\0162L.google." - + "cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason\022c\n" - + "\021safety_attributes\030\003 \001(\0132H.google.cloud.discovery" - + "engine.v1.SearchResponse.Summary.SafetyAttributes\022j\n" - + "\025summary_with_metadata\030\004 \001(\013" - + "2K.google.cloud.discoveryengine.v1.SearchResponse.Summary.SummaryWithMetadata\0326\n" + + "\027summary_skipped_reasons\030\002 \003(\0162L.google.clo" + + "ud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason\022c\n" + + "\021safety_attributes\030\003 \001(\0132H.google.cloud.discoveryeng" + + "ine.v1.SearchResponse.Summary.SafetyAttributes\022j\n" + + "\025summary_with_metadata\030\004 \001(\0132K." + + "google.cloud.discoveryengine.v1.SearchResponse.Summary.SummaryWithMetadata\0326\n" + "\020SafetyAttributes\022\022\n\n" + "categories\030\001 \003(\t\022\016\n" + "\006scores\030\002 \003(\002\032g\n" + "\020CitationMetadata\022S\n" - + "\tcitations\030\001 \003(\0132@.google.cloud.discoveryeng" - + "ine.v1.SearchResponse.Summary.Citation\032\213\001\n" + + "\tcitations\030\001" + + " \003(\0132@.google.cloud.discoveryengine.v1.SearchResponse.Summary.Citation\032\213\001\n" + "\010Citation\022\023\n" + "\013start_index\030\001 \001(\003\022\021\n" + "\tend_index\030\002 \001(\003\022W\n" - + "\007sources\030\003 \003(\0132F.google.cl" - + "oud.discoveryengine.v1.SearchResponse.Summary.CitationSource\032)\n" + + "\007sources\030\003 \003(\0132F.google.cloud" + + ".discoveryengine.v1.SearchResponse.Summary.CitationSource\032)\n" + "\016CitationSource\022\027\n" + "\017reference_index\030\004 \001(\003\032\214\002\n" + "\tReference\022\r\n" @@ -509,17 +588,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010document\030\002 \001(\tB/\340A\002\372A)\n" + "\'discoveryengine.googleapis.com/Document\022\013\n" + "\003uri\030\003 \001(\t\022f\n" - + "\016chunk_contents\030\004 \003(\0132N.g" - + "oogle.cloud.discoveryengine.v1.SearchResponse.Summary.Reference.ChunkContent\0328\n" + + "\016chunk_contents\030\004 \003(\0132N.goog" + + "le.cloud.discoveryengine.v1.SearchResponse.Summary.Reference.ChunkContent\0328\n" + "\014ChunkContent\022\017\n" + "\007content\030\001 \001(\t\022\027\n" + "\017page_identifier\030\002 \001(\t\032\342\001\n" + "\023SummaryWithMetadata\022\017\n" + "\007summary\030\001 \001(\t\022c\n" - + "\021citation_metadata\030\002 \001" - + "(\0132H.google.cloud.discoveryengine.v1.SearchResponse.Summary.CitationMetadata\022U\n\n" - + "references\030\003 \003(\0132A.google.cloud.discover" - + "yengine.v1.SearchResponse.Summary.Reference\"\361\002\n" + + "\021citation_metadata\030\002 \001(\0132" + + "H.google.cloud.discoveryengine.v1.SearchResponse.Summary.CitationMetadata\022U\n\n" + + "references\030\003 \003(\0132A.google.cloud.discoveryen" + + "gine.v1.SearchResponse.Summary.Reference\"\361\002\n" + "\024SummarySkippedReason\022&\n" + "\"SUMMARY_SKIPPED_REASON_UNSPECIFIED\020\000\022\035\n" + "\031ADVERSARIAL_QUERY_IGNORED\020\001\022%\n" @@ -535,31 +614,97 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032I\n" + "\022QueryExpansionInfo\022\026\n" + "\016expanded_query\030\001 \001(\010\022\033\n" - + "\023pinned_result_count\030\002 \001(\003\032-\n" + + "\023pinned_result_count\030\002 \001(\003\032\363\020\n" + + "%NaturalLanguageQueryUnderstandingInfo\022\031\n" + + "\021extracted_filters\030\001 \001(\t\022\027\n" + + "\017rewritten_query\030\002 \001(\t\022\032\n" + + "\022classified_intents\030\005 \003(\t\022\224\001\n" + + "\033structured_extracted_filter\030\003 \001(\0132o.google.cloud.discoveryengine.v" + + "1.SearchResponse.NaturalLanguageQueryUnd" + + "erstandingInfo.StructuredExtractedFilter\032\342\016\n" + + "\031StructuredExtractedFilter\022\216\001\n\n" + + "expression\030\001 \001(\0132z.google.cloud.discoveryengi" + + "ne.v1.SearchResponse.NaturalLanguageQuer" + + "yUnderstandingInfo.StructuredExtractedFilter.Expression\032M\n" + + "\020StringConstraint\022\022\n\n" + + "field_name\030\001 \001(\t\022\016\n" + + "\006values\030\002 \003(\t\022\025\n\r" + + "query_segment\030\003 \001(\t\032\366\002\n" + + "\020NumberConstraint\022\022\n\n" + + "field_name\030\001 \001(\t\022\240\001\n\n" + + "comparison\030\002 \001(\0162\213\001.google.cloud.discoveryengine.v1.SearchRe" + + "sponse.NaturalLanguageQueryUnderstanding" + + "Info.StructuredExtractedFilter.NumberConstraint.Comparison\022\r\n" + + "\005value\030\003 \001(\001\022\025\n\r" + + "query_segment\030\004 \001(\t\"\204\001\n\n" + + "Comparison\022\032\n" + + "\026COMPARISON_UNSPECIFIED\020\000\022\n\n" + + "\006EQUALS\020\001\022\024\n" + + "\020LESS_THAN_EQUALS\020\002\022\r\n" + + "\tLESS_THAN\020\003\022\027\n" + + "\023GREATER_THAN_EQUALS\020\004\022\020\n" + + "\014GREATER_THAN\020\005\032{\n" + + "\025GeolocationConstraint\022\022\n\n" + + "field_name\030\001 \001(\t\022\017\n" + + "\007address\030\002 \001(\t\022\020\n" + + "\010latitude\030\004 \001(\001\022\021\n" + + "\tlongitude\030\005 \001(\001\022\030\n" + + "\020radius_in_meters\030\003 \001(\002\032\241\001\n" + + "\r" + + "AndExpression\022\217\001\n" + + "\013expressions\030\001 \003(\0132z.google.cloud.discoveryengine.v1.SearchRes" + + "ponse.NaturalLanguageQueryUnderstandingI" + + "nfo.StructuredExtractedFilter.Expression\032\240\001\n" + + "\014OrExpression\022\217\001\n" + + "\013expressions\030\001 \003(\0132z.google.cloud.discoveryengine.v1.Search" + + "Response.NaturalLanguageQueryUnderstandi" + + "ngInfo.StructuredExtractedFilter.Expression\032\247\006\n\n" + + "Expression\022\236\001\n" + + "\021string_constraint\030\001 \001(\0132\200\001.google.cloud.discoveryengine.v" + + "1.SearchResponse.NaturalLanguageQueryUnd" + + "erstandingInfo.StructuredExtractedFilter.StringConstraintH\000\022\236\001\n" + + "\021number_constraint\030\002 \001(\0132\200\001.google.cloud.discoveryengine." + + "v1.SearchResponse.NaturalLanguageQueryUn" + + "derstandingInfo.StructuredExtractedFilter.NumberConstraintH\000\022\250\001\n" + + "\026geolocation_constraint\030\003 \001(\0132\205\001.google.cloud.discoverye" + + "ngine.v1.SearchResponse.NaturalLanguageQ" + + "ueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraintH\000\022\221\001\n" + + "\010and_expr\030\004 \001(\0132}.google.cloud.discoveryengin" + + "e.v1.SearchResponse.NaturalLanguageQuery" + + "UnderstandingInfo.StructuredExtractedFilter.AndExpressionH\000\022\217\001\n" + + "\007or_expr\030\005 \001(\0132|.google.cloud.discoveryengine.v1.SearchRe" + + "sponse.NaturalLanguageQueryUnderstanding" + + "Info.StructuredExtractedFilter.OrExpressionH\000B\006\n" + + "\004expr\032-\n" + "\013SessionInfo\022\014\n" + "\004name\030\001 \001(\t\022\020\n" - + "\010query_id\030\002 \001(\t2\227\007\n\r" + + "\010query_id\030\002 \001(\t\"J\n\r" + + "SemanticState\022\036\n" + + "\032SEMANTIC_STATE_UNSPECIFIED\020\000\022\014\n" + + "\010DISABLED\020\001\022\013\n" + + "\007ENABLED\020\0022\227\007\n\r" + "SearchService\022\217\003\n" - + "\006Search\022..google.cloud.discoveryengine.v1" - + ".SearchRequest\032/.google.cloud.discoverye" - + "ngine.v1.SearchResponse\"\243\002\202\323\344\223\002\234\002\"P/v1/{" - + "serving_config=projects/*/locations/*/dataStores/*/servingConfigs/*}:search:\001*Zc" - + "\"^/v1/{serving_config=projects/*/locations/*/collections/*/dataStores/*/servingC" - + "onfigs/*}:search:\001*Z`\"[/v1/{serving_config=projects/*/locations/*/collections/*/" - + "engines/*/servingConfigs/*}:search:\001*\022\237\003\n\n" - + "SearchLite\022..google.cloud.discoveryengine.v1.SearchRequest\032/.google.cloud.disc" - + "overyengine.v1.SearchResponse\"\257\002\202\323\344\223\002\250\002\"" - + "T/v1/{serving_config=projects/*/locations/*/dataStores/*/servingConfigs/*}:searc" - + "hLite:\001*Zg\"b/v1/{serving_config=projects/*/locations/*/collections/*/dataStores/" - + "*/servingConfigs/*}:searchLite:\001*Zd\"_/v1/{serving_config=projects/*/locations/*/" - + "collections/*/engines/*/servingConfigs/*" - + "}:searchLite:\001*\032R\312A\036discoveryengine.goog" - + "leapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\205\002\n" - + "#com.google.cloud.discoveryengine.v1B\022SearchServiceProtoP" - + "\001ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb" - + "\242\002\017DISCOVERYENGINE\252\002\037Google.Cloud.Discov" - + "eryEngine.V1\312\002\037Google\\Cloud\\DiscoveryEng" - + "ine\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1b\006proto3" + + "\006Search\022..google.cloud.discoveryengine.v1." + + "SearchRequest\032/.google.cloud.discoveryen" + + "gine.v1.SearchResponse\"\243\002\202\323\344\223\002\234\002\"P/v1/{s" + + "erving_config=projects/*/locations/*/dataStores/*/servingConfigs/*}:search:\001*Zc\"" + + "^/v1/{serving_config=projects/*/locations/*/collections/*/dataStores/*/servingCo" + + "nfigs/*}:search:\001*Z`\"[/v1/{serving_confi" + + "g=projects/*/locations/*/collections/*/engines/*/servingConfigs/*}:search:\001*\022\237\003\n" + + "\n" + + "SearchLite\022..google.cloud.discoveryengine.v1.SearchRequest\032/.google.cloud.disco" + + "veryengine.v1.SearchResponse\"\257\002\202\323\344\223\002\250\002\"T" + + "/v1/{serving_config=projects/*/locations/*/dataStores/*/servingConfigs/*}:search" + + "Lite:\001*Zg\"b/v1/{serving_config=projects/*/locations/*/collections/*/dataStores/*" + + "/servingConfigs/*}:searchLite:\001*Zd\"_/v1/{serving_config=projects/*/locations/*/c" + + "ollections/*/engines/*/servingConfigs/*}" + + ":searchLite:\001*\032R\312A\036discoveryengine.googl" + + "eapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\205\002\n" + + "#com.google.cloud.discoveryengine.v1B\022SearchServiceProtoP\001" + + "ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb\242" + + "\002\017DISCOVERYENGINE\252\002\037Google.Cloud.Discove" + + "ryEngine.V1\312\002\037Google\\Cloud\\DiscoveryEngi" + + "ne\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -583,6 +728,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServingConfig", "Branch", "Query", + "PageCategories", "ImageQuery", "PageSize", "PageToken", @@ -601,16 +747,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SpellCorrectionSpec", "UserPseudoId", "ContentSearchSpec", + "RankingExpression", + "RankingExpressionBackend", "SafeSearch", "UserLabels", + "NaturalLanguageQueryUnderstandingSpec", "SearchAsYouTypeSpec", "DisplaySpec", + "CrowdingSpecs", "Session", "SessionSpec", "RelevanceThreshold", "RelevanceScoreSpec", - "RankingExpression", - "RankingExpressionBackend", }); internal_static_google_cloud_discoveryengine_v1_SearchRequest_ImageQuery_descriptor = internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor.getNestedType(0); @@ -781,8 +929,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "NumPreviousChunks", "NumNextChunks", }); - internal_static_google_cloud_discoveryengine_v1_SearchRequest_SearchAsYouTypeSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1_SearchRequest_NaturalLanguageQueryUnderstandingSpec_descriptor = internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor.getNestedType(7); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_NaturalLanguageQueryUnderstandingSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_SearchRequest_NaturalLanguageQueryUnderstandingSpec_descriptor, + new java.lang.String[] { + "FilterExtractionCondition", + "GeoSearchQueryDetectionFieldNames", + "ExtractedFilterBehavior", + "AllowedFieldNames", + }); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_SearchAsYouTypeSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor.getNestedType(8); internal_static_google_cloud_discoveryengine_v1_SearchRequest_SearchAsYouTypeSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_SearchRequest_SearchAsYouTypeSpec_descriptor, @@ -790,15 +949,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Condition", }); internal_static_google_cloud_discoveryengine_v1_SearchRequest_DisplaySpec_descriptor = - internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor.getNestedType(8); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor.getNestedType(9); internal_static_google_cloud_discoveryengine_v1_SearchRequest_DisplaySpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_SearchRequest_DisplaySpec_descriptor, new java.lang.String[] { "MatchHighlightingCondition", }); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_CrowdingSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor.getNestedType(10); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_CrowdingSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_SearchRequest_CrowdingSpec_descriptor, + new java.lang.String[] { + "Field", "MaxCount", "Mode", + }); internal_static_google_cloud_discoveryengine_v1_SearchRequest_SessionSpec_descriptor = - internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor.getNestedType(9); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor.getNestedType(11); internal_static_google_cloud_discoveryengine_v1_SearchRequest_SessionSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_SearchRequest_SessionSpec_descriptor, @@ -806,7 +973,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "QueryId", "SearchResultPersistenceCount", }); internal_static_google_cloud_discoveryengine_v1_SearchRequest_RelevanceScoreSpec_descriptor = - internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor.getNestedType(10); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor.getNestedType(12); internal_static_google_cloud_discoveryengine_v1_SearchRequest_RelevanceScoreSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_SearchRequest_RelevanceScoreSpec_descriptor, @@ -814,7 +981,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReturnRelevanceScore", }); internal_static_google_cloud_discoveryengine_v1_SearchRequest_ParamsEntry_descriptor = - internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor.getNestedType(11); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor.getNestedType(13); internal_static_google_cloud_discoveryengine_v1_SearchRequest_ParamsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_SearchRequest_ParamsEntry_descriptor, @@ -822,7 +989,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_discoveryengine_v1_SearchRequest_UserLabelsEntry_descriptor = - internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor.getNestedType(12); + internal_static_google_cloud_discoveryengine_v1_SearchRequest_descriptor.getNestedType(14); internal_static_google_cloud_discoveryengine_v1_SearchRequest_UserLabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_SearchRequest_UserLabelsEntry_descriptor, @@ -844,8 +1011,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CorrectedQuery", "Summary", "QueryExpansionInfo", + "NaturalLanguageQueryUnderstandingInfo", "SessionInfo", "SearchLinkPromotions", + "SemanticState", }); internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_descriptor = internal_static_google_cloud_discoveryengine_v1_SearchResponse_descriptor.getNestedType(0); @@ -855,18 +1024,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Id", "Document", "Chunk", "ModelScores", "RankSignals", }); - internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_ModelScoresEntry_descriptor = - internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_descriptor - .getNestedType(0); - internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_ModelScoresEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_ModelScoresEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_RankSignals_descriptor = internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_descriptor - .getNestedType(1); + .getNestedType(0); internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_RankSignals_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_RankSignals_descriptor, @@ -890,6 +1050,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "Value", }); + internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_ModelScoresEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_descriptor + .getNestedType(1); + internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_ModelScoresEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_SearchResponse_SearchResult_ModelScoresEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_descriptor = internal_static_google_cloud_discoveryengine_v1_SearchResponse_descriptor.getNestedType(1); internal_static_google_cloud_discoveryengine_v1_SearchResponse_Facet_fieldAccessorTable = @@ -986,8 +1155,87 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ExpandedQuery", "PinnedResultCount", }); - internal_static_google_cloud_discoveryengine_v1_SearchResponse_SessionInfo_descriptor = + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_descriptor = internal_static_google_cloud_discoveryengine_v1_SearchResponse_descriptor.getNestedType(4); + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_descriptor, + new java.lang.String[] { + "ExtractedFilters", + "RewrittenQuery", + "ClassifiedIntents", + "StructuredExtractedFilter", + }); + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_descriptor = + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_descriptor, + new java.lang.String[] { + "Expression", + }); + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_StringConstraint_descriptor = + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_StringConstraint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_StringConstraint_descriptor, + new java.lang.String[] { + "FieldName", "Values", "QuerySegment", + }); + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_NumberConstraint_descriptor = + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_descriptor + .getNestedType(1); + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_NumberConstraint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_NumberConstraint_descriptor, + new java.lang.String[] { + "FieldName", "Comparison", "Value", "QuerySegment", + }); + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_GeolocationConstraint_descriptor = + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_descriptor + .getNestedType(2); + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_GeolocationConstraint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_GeolocationConstraint_descriptor, + new java.lang.String[] { + "FieldName", "Address", "Latitude", "Longitude", "RadiusInMeters", + }); + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_AndExpression_descriptor = + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_descriptor + .getNestedType(3); + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_AndExpression_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_AndExpression_descriptor, + new java.lang.String[] { + "Expressions", + }); + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_OrExpression_descriptor = + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_descriptor + .getNestedType(4); + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_OrExpression_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_OrExpression_descriptor, + new java.lang.String[] { + "Expressions", + }); + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_Expression_descriptor = + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_descriptor + .getNestedType(5); + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_Expression_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_Expression_descriptor, + new java.lang.String[] { + "StringConstraint", + "NumberConstraint", + "GeolocationConstraint", + "AndExpr", + "OrExpr", + "Expr", + }); + internal_static_google_cloud_discoveryengine_v1_SearchResponse_SessionInfo_descriptor = + internal_static_google_cloud_discoveryengine_v1_SearchResponse_descriptor.getNestedType(5); internal_static_google_cloud_discoveryengine_v1_SearchResponse_SessionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_SearchResponse_SessionInfo_descriptor, diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/data_store.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/data_store.proto index bac3f26464a4..a8b6a6aca987 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/data_store.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/data_store.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -132,6 +132,11 @@ message DataStore { AdvancedSiteSearchConfig advanced_site_search_config = 12 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Configuration for Natural Language Query Understanding. + NaturalLanguageQueryUnderstandingConfig + natural_language_query_understanding_config = 34 + [(google.api.field_behavior) = OPTIONAL]; + // Input only. The KMS key to be used to protect this DataStore at creation // time. // @@ -223,6 +228,30 @@ message AdvancedSiteSearchConfig { optional bool disable_automatic_refresh = 4; } +// Configuration for Natural Language Query Understanding. +message NaturalLanguageQueryUnderstandingConfig { + // Mode of Natural Language Query Understanding. When the + // NaturalLanguageQueryUnderstandingConfig.Mode is ENABLED, the natural + // language understanding capabilities will be enabled for a search request if + // the NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition in the + // SearchRequest is ENABLED. + enum Mode { + // Default value. + MODE_UNSPECIFIED = 0; + + // Natural Language Query Understanding is disabled. + DISABLED = 1; + + // Natural Language Query Understanding is enabled. + ENABLED = 2; + } + + // Mode of Natural Language Query Understanding. If this field is unset, the + // behavior defaults to + // [NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED][google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED]. + Mode mode = 1; +} + // Config to store data store type configuration for workspace data message WorkspaceConfig { // Specifies the type of Workspace App supported by this DataStore diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/search_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/search_service.proto index 627cf940713b..39de38be92b7 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/search_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/search_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -105,6 +105,8 @@ message SearchRequest { // Required. Full resource name of // [DataStore][google.cloud.discoveryengine.v1.DataStore], such as // `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. + // The path must include the project number, project id is not supported for + // this field. string data_store = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -204,7 +206,6 @@ message SearchRequest { // List of keys to exclude when faceting. // - // // By default, // [FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key] // is not excluded from the filter unless it is listed in this field. @@ -696,6 +697,76 @@ message SearchRequest { ChunkSpec chunk_spec = 5; } + // Specification to enable natural language understanding capabilities for + // search requests. + message NaturalLanguageQueryUnderstandingSpec { + // Enum describing under which condition filter extraction should occur. + enum FilterExtractionCondition { + // Server behavior defaults to `DISABLED`. + CONDITION_UNSPECIFIED = 0; + + // Disables NL filter extraction. + DISABLED = 1; + + // Enables NL filter extraction. + ENABLED = 2; + } + + // Enum describing how extracted filters are applied to the search. + enum ExtractedFilterBehavior { + // `EXTRACTED_FILTER_BEHAVIOR_UNSPECIFIED` will use the default behavior + // for extracted filters. For single datastore search, the default is to + // apply as hard filters. For multi-datastore search, the default is to + // apply as soft boosts. + EXTRACTED_FILTER_BEHAVIOR_UNSPECIFIED = 0; + + // Applies all extracted filters as hard filters on the results. Results + // that do not pass the extracted filters will not be returned in the + // result set. + HARD_FILTER = 1; + + // Applies all extracted filters as soft boosts. Results that pass the + // filters will be boosted up to higher ranks in the result set. + SOFT_BOOST = 2; + } + + // The condition under which filter extraction should occur. + // Server behavior defaults to `DISABLED`. + FilterExtractionCondition filter_extraction_condition = 1; + + // Field names used for location-based filtering, where geolocation filters + // are detected in natural language search queries. + // Only valid when the FilterExtractionCondition is set to `ENABLED`. + // + // If this field is set, it overrides the field names set in + // [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1.ServingConfig.geo_search_query_detection_field_names]. + repeated string geo_search_query_detection_field_names = 2; + + // Optional. Controls behavior of how extracted filters are applied to the + // search. The default behavior depends on the request. For single datastore + // structured search, the default is `HARD_FILTER`. For multi-datastore + // search, the default behavior is `SOFT_BOOST`. + // Location-based filters are always applied as hard filters, and the + // `SOFT_BOOST` setting will not affect them. + // This field is only used if + // [SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition][google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition] + // is set to + // [FilterExtractionCondition.ENABLED][google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.ENABLED]. + ExtractedFilterBehavior extracted_filter_behavior = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Allowlist of fields that can be used for natural language + // filter extraction. By default, if this is unspecified, all indexable + // fields are eligible for natural language filter extraction (but are not + // guaranteed to be used). If any fields are specified in + // allowed_field_names, only the fields that are both marked as indexable in + // the schema and specified in the allowlist will be eligible for natural + // language filter extraction. Note: for multi-datastore search, this is not + // yet supported, and will be ignored. + repeated string allowed_field_names = 4 + [(google.api.field_behavior) = OPTIONAL]; + } + // Specification for search as you type in search requests. message SearchAsYouTypeSpec { // Enum describing under which condition search as you type should occur. @@ -739,6 +810,42 @@ message SearchRequest { MatchHighlightingCondition match_highlighting_condition = 1; } + // Specification for crowding. Crowding improves the diversity of search + // results by limiting the number of results that share the same field value. + // For example, crowding on the color field with a max_count of 3 and mode + // DROP_CROWDED_RESULTS will return at most 3 results with the same color + // across all pages. + message CrowdingSpec { + // Enum describing the mode to use for documents that are crowded away. + // They can be dropped or demoted to the later pages. + enum Mode { + // Unspecified crowding mode. In this case, server behavior defaults to + // [Mode.DROP_CROWDED_RESULTS][google.cloud.discoveryengine.v1.SearchRequest.CrowdingSpec.Mode.DROP_CROWDED_RESULTS]. + MODE_UNSPECIFIED = 0; + + // Drop crowded results. + DROP_CROWDED_RESULTS = 1; + + // Demote crowded results to the later pages. + DEMOTE_CROWDED_RESULTS_TO_END = 2; + } + + // The field to use for crowding. Documents can be crowded by a field in the + // [Document][google.cloud.discoveryengine.v1.Document] object. Crowding + // field is case sensitive. + string field = 1; + + // The maximum number of documents to keep per value of the field. Once + // there are at least max_count previous results which contain the same + // value for the given field (according to the order specified in + // `order_by`), later results with the same value are "crowded away". + // If not specified, the default value is 1. + int32 max_count = 2; + + // Mode to use for documents that are crowded away. + Mode mode = 3; + } + // Session specification. // // Multi-turn Search feature is currently at private GA stage. Please use @@ -789,6 +896,30 @@ message SearchRequest { bool return_relevance_score = 1 [(google.api.field_behavior) = OPTIONAL]; } + // The backend to use for the ranking expression evaluation. + enum RankingExpressionBackend { + // Default option for unspecified/unknown values. + RANKING_EXPRESSION_BACKEND_UNSPECIFIED = 0; + + // Deprecated: Use `RANK_BY_EMBEDDING` instead. + // Ranking by custom embedding model, the default way to evaluate the + // ranking expression. Legacy enum option, `RANK_BY_EMBEDDING` should be + // used instead. + BYOE = 1 [deprecated = true]; + + // Deprecated: Use `RANK_BY_FORMULA` instead. + // Ranking by custom formula. Legacy enum option, `RANK_BY_FORMULA` should + // be used instead. + CLEARBOX = 2 [deprecated = true]; + + // Ranking by custom embedding model, the default way to evaluate the + // ranking expression. + RANK_BY_EMBEDDING = 3; + + // Ranking by custom formula. + RANK_BY_FORMULA = 4; + } + // The relevance threshold of the search results. The higher relevance // threshold is, the higher relevant results are shown and the less number of // results are returned. @@ -835,6 +966,25 @@ message SearchRequest { // Raw search query. string query = 3; + // Optional. The categories associated with a category page. Must be set for + // category navigation queries to achieve good search quality. The format + // should be the same as + // [PageInfo.page_category][google.cloud.discoveryengine.v1.PageInfo.page_category]. + // This field is the equivalent of the query for browse (navigation) queries. + // It's used by the browse model when the query is empty. + // + // If the field is empty, it will not be used by the browse model. + // If the field contains more than one element, only the first element will + // be used. + // + // To represent full path of a category, use '>' character to separate + // different hierarchies. If '>' is part of the category name, replace it with + // other character(s). + // For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX > + // 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090 + // > Founders Edition` + repeated string page_categories = 63 [(google.api.field_behavior) = OPTIONAL]; + // Raw image query. ImageQuery image_query = 19; @@ -867,6 +1017,8 @@ message SearchRequest { // unset. // // If this field is negative, an `INVALID_ARGUMENT` is returned. + // + // A large offset may be capped to a reasonable threshold. int32 offset = 6; // The maximum number of results to return for OneBox. @@ -977,10 +1129,10 @@ message SearchRequest { // which spell correction takes effect. SpellCorrectionSpec spell_correction_spec = 14; - // A unique identifier for tracking visitors. For example, this could be - // implemented with an HTTP cookie, which should be able to uniquely identify - // a visitor on a single device. This unique identifier should not change if - // the visitor logs in or out of the website. + // Optional. A unique identifier for tracking visitors. For example, this + // could be implemented with an HTTP cookie, which should be able to uniquely + // identify a visitor on a single device. This unique identifier should not + // change if the visitor logs in or out of the website. // // This field should NOT have a fixed value such as `unknown_visitor`. // @@ -991,87 +1143,13 @@ message SearchRequest { // // The field must be a UTF-8 encoded string with a length limit of 128 // characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - string user_pseudo_id = 15; + string user_pseudo_id = 15 [(google.api.field_behavior) = OPTIONAL]; // A specification for configuring the behavior of content search. ContentSearchSpec content_search_spec = 24; - // Whether to turn on safe search. This is only supported for - // website search. - bool safe_search = 20; - - // The user labels applied to a resource must meet the following requirements: - // - // * Each resource can have multiple labels, up to a maximum of 64. - // * Each label must be a key-value pair. - // * Keys have a minimum length of 1 character and a maximum length of 63 - // characters and cannot be empty. Values can be empty and have a maximum - // length of 63 characters. - // * Keys and values can contain only lowercase letters, numeric characters, - // underscores, and dashes. All characters must use UTF-8 encoding, and - // international characters are allowed. - // * The key portion of a label must be unique. However, you can use the same - // key with multiple resources. - // * Keys must start with a lowercase letter or international character. - // - // See [Google Cloud - // Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - // for more details. - map user_labels = 22; - - // Search as you type configuration. Only supported for the - // [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1.IndustryVertical.MEDIA] - // vertical. - SearchAsYouTypeSpec search_as_you_type_spec = 31; - - // Optional. Config for display feature, like match highlighting on search - // results. - DisplaySpec display_spec = 38 [(google.api.field_behavior) = OPTIONAL]; - - // The session resource name. Optional. - // - // Session allows users to do multi-turn /search API calls or coordination - // between /search API calls and /answer API calls. - // - // Example #1 (multi-turn /search API calls): - // Call /search API with the session ID generated in the first call. - // Here, the previous search query gets considered in query - // standing. I.e., if the first query is "How did Alphabet do in 2022?" - // and the current query is "How about 2023?", the current query will - // be interpreted as "How did Alphabet do in 2023?". - // - // Example #2 (coordination between /search API calls and /answer API calls): - // Call /answer API with the session ID generated in the first call. - // Here, the answer generation happens in the context of the search - // results from the first search call. - // - // Multi-turn Search feature is currently at private GA stage. Please use - // v1alpha or v1beta version instead before we launch this feature to public - // GA. Or ask for allowlisting through Google Support team. - string session = 41 [(google.api.resource_reference) = { - type: "discoveryengine.googleapis.com/Session" - }]; - - // Session specification. - // - // Can be used only when `session` is set. - SessionSpec session_spec = 42; - - // The relevance threshold of the search results. - // - // Default to Google defined threshold, leveraging a balance of - // precision and recall to deliver both highly accurate results and - // comprehensive coverage of relevant information. - // - // This feature is not supported for healthcare search. - RelevanceThreshold relevance_threshold = 44; - - // Optional. The specification for returning the relevance score. - RelevanceScoreSpec relevance_score_spec = 52 - [(google.api.field_behavior) = OPTIONAL]; - - // The ranking expression controls the customized ranking on retrieval - // documents. This overrides + // Optional. The ranking expression controls the customized ranking on + // retrieval documents. This overrides // [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1.ServingConfig.ranking_expression]. // The syntax and supported features depend on the // `ranking_expression_backend` value. If `ranking_expression_backend` is not @@ -1160,23 +1238,109 @@ message SearchRequest { // Google model to determine the keyword-based overlap between the query and // the document. // * `base_rank`: the default rank of the result - string ranking_expression = 26; + string ranking_expression = 26 [(google.api.field_behavior) = OPTIONAL]; - // The backend to use for the ranking expression evaluation. - enum RankingExpressionBackend { - reserved 1, 2; + // Optional. The backend to use for the ranking expression evaluation. + RankingExpressionBackend ranking_expression_backend = 53 + [(google.api.field_behavior) = OPTIONAL]; - // Default option for unspecified/unknown values. - RANKING_EXPRESSION_BACKEND_UNSPECIFIED = 0; - // Ranking by custom embedding model, the default way to evaluate the - // ranking expression. - RANK_BY_EMBEDDING = 3; - // Ranking by custom formula. - RANK_BY_FORMULA = 4; - } + // Whether to turn on safe search. This is only supported for + // website search. + bool safe_search = 20; - // The backend to use for the ranking expression evaluation. - RankingExpressionBackend ranking_expression_backend = 53 + // The user labels applied to a resource must meet the following requirements: + // + // * Each resource can have multiple labels, up to a maximum of 64. + // * Each label must be a key-value pair. + // * Keys have a minimum length of 1 character and a maximum length of 63 + // characters and cannot be empty. Values can be empty and have a maximum + // length of 63 characters. + // * Keys and values can contain only lowercase letters, numeric characters, + // underscores, and dashes. All characters must use UTF-8 encoding, and + // international characters are allowed. + // * The key portion of a label must be unique. However, you can use the same + // key with multiple resources. + // * Keys must start with a lowercase letter or international character. + // + // See [Google Cloud + // Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + // for more details. + map user_labels = 22; + + // Optional. Config for natural language query understanding capabilities, + // such as extracting structured field filters from the query. Refer to [this + // documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries) + // for more information. + // If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional + // natural language query understanding will be done. + NaturalLanguageQueryUnderstandingSpec + natural_language_query_understanding_spec = 28 + [(google.api.field_behavior) = OPTIONAL]; + + // Search as you type configuration. Only supported for the + // [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1.IndustryVertical.MEDIA] + // vertical. + SearchAsYouTypeSpec search_as_you_type_spec = 31; + + // Optional. Config for display feature, like match highlighting on search + // results. + DisplaySpec display_spec = 38 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Crowding specifications for improving result diversity. + // If multiple CrowdingSpecs are specified, crowding will be evaluated on + // each unique combination of the `field` values, and max_count will be the + // maximum value of `max_count` across all CrowdingSpecs. + // For example, if the first CrowdingSpec has `field` = "color" and + // `max_count` = 3, and the second CrowdingSpec has `field` = "size" and + // `max_count` = 2, then after 3 documents that share the same color AND size + // have been returned, subsequent ones should be + // removed or demoted. + repeated CrowdingSpec crowding_specs = 40 + [(google.api.field_behavior) = OPTIONAL]; + + // The session resource name. Optional. + // + // Session allows users to do multi-turn /search API calls or coordination + // between /search API calls and /answer API calls. + // + // Example #1 (multi-turn /search API calls): + // Call /search API with the session ID generated in the first call. + // Here, the previous search query gets considered in query + // standing. I.e., if the first query is "How did Alphabet do in 2022?" + // and the current query is "How about 2023?", the current query will + // be interpreted as "How did Alphabet do in 2023?". + // + // Example #2 (coordination between /search API calls and /answer API calls): + // Call /answer API with the session ID generated in the first call. + // Here, the answer generation happens in the context of the search + // results from the first search call. + // + // Multi-turn Search feature is currently at private GA stage. Please use + // v1alpha or v1beta version instead before we launch this feature to public + // GA. Or ask for allowlisting through Google Support team. + string session = 41 [(google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Session" + }]; + + // Session specification. + // + // Can be used only when `session` is set. + SessionSpec session_spec = 42; + + // The global relevance threshold of the search results. + // + // Defaults to Google defined threshold, leveraging a balance of + // precision and recall to deliver both highly accurate results and + // comprehensive coverage of relevant information. + // + // If more granular relevance filtering is required, use the + // `relevance_filter_spec` instead. + // + // This feature is not supported for healthcare search. + RelevanceThreshold relevance_threshold = 44; + + // Optional. The specification for returning the relevance score. + RelevanceScoreSpec relevance_score_spec = 52 [(google.api.field_behavior) = OPTIONAL]; } @@ -1186,65 +1350,71 @@ message SearchRequest { message SearchResponse { // Represents the search results. message SearchResult { - // [Document.id][google.cloud.discoveryengine.v1.Document.id] of the - // searched [Document][google.cloud.discoveryengine.v1.Document]. - string id = 1; - - // The document data snippet in the search response. Only fields that are - // marked as `retrievable` are populated. - Document document = 2; - - // The chunk data in the search response if the - // [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.search_result_mode] - // is set to - // [CHUNKS][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]. - Chunk chunk = 18; - - // Output only. Google provided available scores. - map model_scores = 4 - [(google.api.field_behavior) = OUTPUT_ONLY]; - // A set of ranking signals. message RankSignals { - reserved 5; + // Custom clearbox signal represented by name and value pair. + message CustomSignal { + // Optional. Name of the signal. + string name = 1 [(google.api.field_behavior) = OPTIONAL]; - // Keyword matching adjustment. + // Optional. Float value representing the ranking signal (e.g. 1.25 for + // BM25). + float value = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. Keyword matching adjustment. optional float keyword_similarity_score = 1 [(google.api.field_behavior) = OPTIONAL]; - // Semantic relevance adjustment. + + // Optional. Semantic relevance adjustment. optional float relevance_score = 2 [(google.api.field_behavior) = OPTIONAL]; - // Semantic similarity adjustment. + + // Optional. Semantic similarity adjustment. optional float semantic_similarity_score = 3 [(google.api.field_behavior) = OPTIONAL]; - // Predicted conversion rate adjustment as a rank. + + // Optional. Predicted conversion rate adjustment as a rank. optional float pctr_rank = 4 [(google.api.field_behavior) = OPTIONAL]; - // Topicality adjustment as a rank. + + // Optional. Topicality adjustment as a rank. optional float topicality_rank = 6 [(google.api.field_behavior) = OPTIONAL]; - // Age of the document in hours. + + // Optional. Age of the document in hours. optional float document_age = 7 [(google.api.field_behavior) = OPTIONAL]; - // Combined custom boosts for a doc. + + // Optional. Combined custom boosts for a doc. optional float boosting_factor = 8 [(google.api.field_behavior) = OPTIONAL]; - // The default rank of the result. + // Optional. The default rank of the result. float default_rank = 32 [(google.api.field_behavior) = OPTIONAL]; - // Custom clearbox signal represented by name and value pair. - message CustomSignal { - // Name of the signal. - string name = 1 [(google.api.field_behavior) = OPTIONAL]; - // Float value representing the ranking signal (e.g. 1.25 for BM25). - float value = 2 [(google.api.field_behavior) = OPTIONAL]; - } - - // A list of custom clearbox signals. + // Optional. A list of custom clearbox signals. repeated CustomSignal custom_signals = 33 [(google.api.field_behavior) = OPTIONAL]; } - // A set of ranking signals associated with the result. + // [Document.id][google.cloud.discoveryengine.v1.Document.id] of the + // searched [Document][google.cloud.discoveryengine.v1.Document]. + string id = 1; + + // The document data snippet in the search response. Only fields that are + // marked as `retrievable` are populated. + Document document = 2; + + // The chunk data in the search response if the + // [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.search_result_mode] + // is set to + // [CHUNKS][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]. + Chunk chunk = 18; + + // Output only. Google provided available scores. + map model_scores = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. A set of ranking signals associated with the result. RankSignals rank_signals = 7 [(google.api.field_behavior) = OPTIONAL]; } @@ -1461,6 +1631,140 @@ message SearchResponse { int64 pinned_result_count = 2; } + // Information describing what natural language understanding was + // done on the input query. + message NaturalLanguageQueryUnderstandingInfo { + // The filters that were extracted from the input query represented in a + // structured form. + message StructuredExtractedFilter { + // Constraint expression of a string field. + message StringConstraint { + // Name of the string field as defined in the schema. + string field_name = 1; + + // Values of the string field. The record will only be returned if the + // field value matches one of the values specified here. + repeated string values = 2; + + // Identifies the keywords within the search query that match a filter. + string query_segment = 3; + } + + // Constraint expression of a number field. Example: price < 100. + message NumberConstraint { + // The comparison operation that was performed. + enum Comparison { + // Undefined comparison operator. + COMPARISON_UNSPECIFIED = 0; + + // Denotes equality `=` operator. + EQUALS = 1; + + // Denotes less than or equal to `<=` operator. + LESS_THAN_EQUALS = 2; + + // Denotes less than `<` operator. + LESS_THAN = 3; + + // Denotes greater than or equal to `>=` operator. + GREATER_THAN_EQUALS = 4; + + // Denotes greater than `>` operator. + GREATER_THAN = 5; + } + + // Name of the numerical field as defined in the schema. + string field_name = 1; + + // The comparison operation performed between the field value and the + // value specified in the constraint. + Comparison comparison = 2; + + // The value specified in the numerical constraint. + double value = 3; + + // Identifies the keywords within the search query that match a filter. + string query_segment = 4; + } + + // Constraint of a geolocation field. + // Name of the geolocation field as defined in the schema. + message GeolocationConstraint { + // The name of the geolocation field as defined in the schema. + string field_name = 1; + + // The reference address that was inferred from the input query. The + // proximity of the reference address to the geolocation field will be + // used to filter the results. + string address = 2; + + // The latitude of the geolocation inferred from the input query. + double latitude = 4; + + // The longitude of the geolocation inferred from the input query. + double longitude = 5; + + // The radius in meters around the address. The record is returned if + // the location of the geolocation field is within the radius. + float radius_in_meters = 3; + } + + // Logical `And` operator. + message AndExpression { + // The expressions that were ANDed together. + repeated Expression expressions = 1; + } + + // Logical `Or` operator. + message OrExpression { + // The expressions that were ORed together. + repeated Expression expressions = 1; + } + + // The expression denoting the filter that was extracted from the input + // query. + message Expression { + // The expression type. + oneof expr { + // String constraint expression. + StringConstraint string_constraint = 1; + + // Numerical constraint expression. + NumberConstraint number_constraint = 2; + + // Geolocation constraint expression. + GeolocationConstraint geolocation_constraint = 3; + + // Logical "And" compound operator connecting multiple expressions. + AndExpression and_expr = 4; + + // Logical "Or" compound operator connecting multiple expressions. + OrExpression or_expr = 5; + } + } + + // The expression denoting the filter that was extracted from the input + // query in a structured form. It can be a simple expression denoting a + // single string, numerical or geolocation constraint or a compound + // expression which is a combination of multiple expressions connected + // using logical (OR and AND) operators. + Expression expression = 1; + } + + // The filters that were extracted from the input query. + string extracted_filters = 1; + + // Rewritten input query minus the extracted filters. + string rewritten_query = 2; + + // The classified intents from the input query. + repeated string classified_intents = 5; + + // The filters that were extracted from the input query represented in a + // structured form. + StructuredExtractedFilter structured_extracted_filter = 3; + } + // Information about the session. message SessionInfo { // Name of the session. @@ -1478,6 +1782,18 @@ message SearchResponse { string query_id = 2; } + // Semantic state of the search response. + enum SemanticState { + // Default value. Should not be used. + SEMANTIC_STATE_UNSPECIFIED = 0; + + // Semantic search was disabled for this search response. + DISABLED = 1; + + // Semantic search was enabled for this search response. + ENABLED = 2; + } + // A list of matched documents. The order represents the ranking. repeated SearchResult results = 1; @@ -1526,6 +1842,12 @@ message SearchResponse { // Query expansion information for the returned results. QueryExpansionInfo query_expansion_info = 14; + // Output only. Natural language query understanding information for the + // returned results. + NaturalLanguageQueryUnderstandingInfo + natural_language_query_understanding_info = 15 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Session information. // // Only set if @@ -1535,4 +1857,7 @@ message SearchResponse { // Promotions for site search. repeated SearchLinkPromotion search_link_promotions = 23; + + // Output only. Indicates the semantic state of the search response. + SemanticState semantic_state = 36 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/pom.xml b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/pom.xml index 52d399f0e93a..ad86ac669317 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/pom.xml +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1alpha - 0.80.0-SNAPSHOT + 0.81.0 proto-google-cloud-discoveryengine-v1alpha Proto library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.80.0-SNAPSHOT + 0.81.0 diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/pom.xml b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/pom.xml index 1c4aedd82a2f..685b9c5e9e07 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/pom.xml +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1beta - 0.80.0-SNAPSHOT + 0.81.0 proto-google-cloud-discoveryengine-v1beta Proto library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.80.0-SNAPSHOT + 0.81.0 diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/AsyncSearch.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/AsyncSearch.java index b5b3035cbd51..7917d9fc34dc 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/AsyncSearch.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/AsyncSearch.java @@ -53,6 +53,7 @@ public static void asyncSearch() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setQuery("query107944136") + .addAllPageCategories(new ArrayList()) .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) .setPageSize(883849137) .setPageToken("pageToken873572522") @@ -71,17 +72,20 @@ public static void asyncSearch() throws Exception { .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build()) .setUserPseudoId("userPseudoId-1155274652") .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") .setSafeSearch(true) .putAllUserLabels(new HashMap()) + .setNaturalLanguageQueryUnderstandingSpec( + SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + .addAllCrowdingSpecs(new ArrayList()) .setSession( SessionName.ofProjectLocationDataStoreSessionName( "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") .toString()) .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) - .setRankingExpression("rankingExpression2110320494") .build(); ApiFuture future = searchServiceClient.searchPagedCallable().futureCall(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/AsyncSearchPaged.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/AsyncSearchPaged.java index c518b3b3c44d..9b086a0b9fb5 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/AsyncSearchPaged.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/AsyncSearchPaged.java @@ -53,6 +53,7 @@ public static void asyncSearchPaged() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setQuery("query107944136") + .addAllPageCategories(new ArrayList()) .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) .setPageSize(883849137) .setPageToken("pageToken873572522") @@ -71,17 +72,20 @@ public static void asyncSearchPaged() throws Exception { .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build()) .setUserPseudoId("userPseudoId-1155274652") .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") .setSafeSearch(true) .putAllUserLabels(new HashMap()) + .setNaturalLanguageQueryUnderstandingSpec( + SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + .addAllCrowdingSpecs(new ArrayList()) .setSession( SessionName.ofProjectLocationDataStoreSessionName( "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") .toString()) .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) - .setRankingExpression("rankingExpression2110320494") .build(); while (true) { SearchResponse response = searchServiceClient.searchCallable().call(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/SyncSearch.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/SyncSearch.java index 63ce9037cbf3..c586a5fb2985 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/SyncSearch.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/search/SyncSearch.java @@ -52,6 +52,7 @@ public static void syncSearch() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setQuery("query107944136") + .addAllPageCategories(new ArrayList()) .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) .setPageSize(883849137) .setPageToken("pageToken873572522") @@ -70,17 +71,20 @@ public static void syncSearch() throws Exception { .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build()) .setUserPseudoId("userPseudoId-1155274652") .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") .setSafeSearch(true) .putAllUserLabels(new HashMap()) + .setNaturalLanguageQueryUnderstandingSpec( + SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + .addAllCrowdingSpecs(new ArrayList()) .setSession( SessionName.ofProjectLocationDataStoreSessionName( "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") .toString()) .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) - .setRankingExpression("rankingExpression2110320494") .build(); for (SearchResponse.SearchResult element : searchServiceClient.search(request).iterateAll()) { // doThingsWith(element); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/searchlite/AsyncSearchLite.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/searchlite/AsyncSearchLite.java index 746c3223ca19..ae093e2bc590 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/searchlite/AsyncSearchLite.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/searchlite/AsyncSearchLite.java @@ -53,6 +53,7 @@ public static void asyncSearchLite() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setQuery("query107944136") + .addAllPageCategories(new ArrayList()) .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) .setPageSize(883849137) .setPageToken("pageToken873572522") @@ -71,17 +72,20 @@ public static void asyncSearchLite() throws Exception { .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build()) .setUserPseudoId("userPseudoId-1155274652") .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") .setSafeSearch(true) .putAllUserLabels(new HashMap()) + .setNaturalLanguageQueryUnderstandingSpec( + SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + .addAllCrowdingSpecs(new ArrayList()) .setSession( SessionName.ofProjectLocationDataStoreSessionName( "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") .toString()) .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) - .setRankingExpression("rankingExpression2110320494") .build(); ApiFuture future = searchServiceClient.searchLitePagedCallable().futureCall(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/searchlite/AsyncSearchLitePaged.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/searchlite/AsyncSearchLitePaged.java index bc77cf724d07..25809197e0ff 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/searchlite/AsyncSearchLitePaged.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/searchlite/AsyncSearchLitePaged.java @@ -53,6 +53,7 @@ public static void asyncSearchLitePaged() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setQuery("query107944136") + .addAllPageCategories(new ArrayList()) .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) .setPageSize(883849137) .setPageToken("pageToken873572522") @@ -71,17 +72,20 @@ public static void asyncSearchLitePaged() throws Exception { .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build()) .setUserPseudoId("userPseudoId-1155274652") .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") .setSafeSearch(true) .putAllUserLabels(new HashMap()) + .setNaturalLanguageQueryUnderstandingSpec( + SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + .addAllCrowdingSpecs(new ArrayList()) .setSession( SessionName.ofProjectLocationDataStoreSessionName( "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") .toString()) .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) - .setRankingExpression("rankingExpression2110320494") .build(); while (true) { SearchResponse response = searchServiceClient.searchLiteCallable().call(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/searchlite/SyncSearchLite.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/searchlite/SyncSearchLite.java index 40987fa2f0d7..9cc1c2cec658 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/searchlite/SyncSearchLite.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/searchservice/searchlite/SyncSearchLite.java @@ -52,6 +52,7 @@ public static void syncSearchLite() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setQuery("query107944136") + .addAllPageCategories(new ArrayList()) .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) .setPageSize(883849137) .setPageToken("pageToken873572522") @@ -70,17 +71,20 @@ public static void syncSearchLite() throws Exception { .setSpellCorrectionSpec(SearchRequest.SpellCorrectionSpec.newBuilder().build()) .setUserPseudoId("userPseudoId-1155274652") .setContentSearchSpec(SearchRequest.ContentSearchSpec.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") .setSafeSearch(true) .putAllUserLabels(new HashMap()) + .setNaturalLanguageQueryUnderstandingSpec( + SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + .addAllCrowdingSpecs(new ArrayList()) .setSession( SessionName.ofProjectLocationDataStoreSessionName( "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") .toString()) .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) - .setRankingExpression("rankingExpression2110320494") .build(); for (SearchResponse.SearchResult element : searchServiceClient.searchLite(request).iterateAll()) { diff --git a/java-distributedcloudedge/README.md b/java-distributedcloudedge/README.md index 04285742b3ba..4c7e5ea0e350 100644 --- a/java-distributedcloudedge/README.md +++ b/java-distributedcloudedge/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-distributedcloudedge - 0.79.0 + 0.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-distributedcloudedge:0.79.0' +implementation 'com.google.cloud:google-cloud-distributedcloudedge:0.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-distributedcloudedge" % "0.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-distributedcloudedge" % "0.80.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-distributedcloudedge/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-distributedcloudedge.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-distributedcloudedge/0.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-distributedcloudedge/0.80.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-distributedcloudedge/google-cloud-distributedcloudedge-bom/pom.xml b/java-distributedcloudedge/google-cloud-distributedcloudedge-bom/pom.xml index 28c13034f8e9..0999e877a276 100644 --- a/java-distributedcloudedge/google-cloud-distributedcloudedge-bom/pom.xml +++ b/java-distributedcloudedge/google-cloud-distributedcloudedge-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-distributedcloudedge-bom - 0.81.0-SNAPSHOT + 0.82.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-distributedcloudedge - 0.81.0-SNAPSHOT + 0.82.0 com.google.api.grpc grpc-google-cloud-distributedcloudedge-v1 - 0.81.0-SNAPSHOT + 0.82.0 com.google.api.grpc proto-google-cloud-distributedcloudedge-v1 - 0.81.0-SNAPSHOT + 0.82.0 diff --git a/java-distributedcloudedge/google-cloud-distributedcloudedge/pom.xml b/java-distributedcloudedge/google-cloud-distributedcloudedge/pom.xml index 162c38b183f8..f70be6986ec4 100644 --- a/java-distributedcloudedge/google-cloud-distributedcloudedge/pom.xml +++ b/java-distributedcloudedge/google-cloud-distributedcloudedge/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-distributedcloudedge - 0.81.0-SNAPSHOT + 0.82.0 jar Google Google Distributed Cloud Edge Google Distributed Cloud Edge Google Distributed Cloud Edge allows you to run Kubernetes clusters on dedicated hardware provided and maintained by Google that is separate from the Google Cloud data center. com.google.cloud google-cloud-distributedcloudedge-parent - 0.81.0-SNAPSHOT + 0.82.0 google-cloud-distributedcloudedge diff --git a/java-distributedcloudedge/grpc-google-cloud-distributedcloudedge-v1/pom.xml b/java-distributedcloudedge/grpc-google-cloud-distributedcloudedge-v1/pom.xml index 3a7d8eaf7703..f7f67faee5ab 100644 --- a/java-distributedcloudedge/grpc-google-cloud-distributedcloudedge-v1/pom.xml +++ b/java-distributedcloudedge/grpc-google-cloud-distributedcloudedge-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-distributedcloudedge-v1 - 0.81.0-SNAPSHOT + 0.82.0 grpc-google-cloud-distributedcloudedge-v1 GRPC library for google-cloud-distributedcloudedge com.google.cloud google-cloud-distributedcloudedge-parent - 0.81.0-SNAPSHOT + 0.82.0 diff --git a/java-distributedcloudedge/pom.xml b/java-distributedcloudedge/pom.xml index 527bab2d57b5..c221f641207e 100644 --- a/java-distributedcloudedge/pom.xml +++ b/java-distributedcloudedge/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-distributedcloudedge-parent pom - 0.81.0-SNAPSHOT + 0.82.0 Google Google Distributed Cloud Edge Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-distributedcloudedge - 0.81.0-SNAPSHOT + 0.82.0 com.google.api.grpc grpc-google-cloud-distributedcloudedge-v1 - 0.81.0-SNAPSHOT + 0.82.0 com.google.api.grpc proto-google-cloud-distributedcloudedge-v1 - 0.81.0-SNAPSHOT + 0.82.0 diff --git a/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/pom.xml b/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/pom.xml index 0c4e76e65b6e..2900ddea2cec 100644 --- a/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/pom.xml +++ b/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-distributedcloudedge-v1 - 0.81.0-SNAPSHOT + 0.82.0 proto-google-cloud-distributedcloudedge-v1 Proto library for google-cloud-distributedcloudedge com.google.cloud google-cloud-distributedcloudedge-parent - 0.81.0-SNAPSHOT + 0.82.0 diff --git a/java-dlp/README.md b/java-dlp/README.md index 5cdce1f95e4f..c87ae192665e 100644 --- a/java-dlp/README.md +++ b/java-dlp/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dlp - 3.86.0 + 3.87.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dlp:3.86.0' +implementation 'com.google.cloud:google-cloud-dlp:3.87.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "3.86.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "3.87.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dlp/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dlp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dlp/3.86.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dlp/3.87.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dlp/google-cloud-dlp-bom/pom.xml b/java-dlp/google-cloud-dlp-bom/pom.xml index d676e5e627e9..decfcd8c6a39 100644 --- a/java-dlp/google-cloud-dlp-bom/pom.xml +++ b/java-dlp/google-cloud-dlp-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dlp-bom - 3.88.0-SNAPSHOT + 3.89.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-dlp - 3.88.0-SNAPSHOT + 3.89.0 com.google.api.grpc grpc-google-cloud-dlp-v2 - 3.88.0-SNAPSHOT + 3.89.0 com.google.api.grpc proto-google-cloud-dlp-v2 - 3.88.0-SNAPSHOT + 3.89.0 diff --git a/java-dlp/google-cloud-dlp/pom.xml b/java-dlp/google-cloud-dlp/pom.xml index 9a5c1fc791a9..27bb6fe09732 100644 --- a/java-dlp/google-cloud-dlp/pom.xml +++ b/java-dlp/google-cloud-dlp/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dlp - 3.88.0-SNAPSHOT + 3.89.0 jar Google Cloud DLP Java idiomatic client for Google Cloud DLP com.google.cloud google-cloud-dlp-parent - 3.88.0-SNAPSHOT + 3.89.0 google-cloud-dlp diff --git a/java-dlp/grpc-google-cloud-dlp-v2/pom.xml b/java-dlp/grpc-google-cloud-dlp-v2/pom.xml index 03a1b3d9f34c..bf400cdc83af 100644 --- a/java-dlp/grpc-google-cloud-dlp-v2/pom.xml +++ b/java-dlp/grpc-google-cloud-dlp-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dlp-v2 - 3.88.0-SNAPSHOT + 3.89.0 grpc-google-cloud-dlp-v2 GRPC library for grpc-google-cloud-dlp-v2 com.google.cloud google-cloud-dlp-parent - 3.88.0-SNAPSHOT + 3.89.0 diff --git a/java-dlp/pom.xml b/java-dlp/pom.xml index a7fce6648bd4..55588cc85824 100644 --- a/java-dlp/pom.xml +++ b/java-dlp/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dlp-parent pom - 3.88.0-SNAPSHOT + 3.89.0 Google Cloud DLP Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-dlp-v2 - 3.88.0-SNAPSHOT + 3.89.0 com.google.api.grpc grpc-google-cloud-dlp-v2 - 3.88.0-SNAPSHOT + 3.89.0 com.google.cloud google-cloud-dlp - 3.88.0-SNAPSHOT + 3.89.0 diff --git a/java-dlp/proto-google-cloud-dlp-v2/pom.xml b/java-dlp/proto-google-cloud-dlp-v2/pom.xml index 19f7505d485f..5f81d47ca6a5 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/pom.xml +++ b/java-dlp/proto-google-cloud-dlp-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dlp-v2 - 3.88.0-SNAPSHOT + 3.89.0 proto-google-cloud-dlp-v2 PROTO library for proto-google-cloud-dlp-v2 com.google.cloud google-cloud-dlp-parent - 3.88.0-SNAPSHOT + 3.89.0 diff --git a/java-dms/README.md b/java-dms/README.md index 99299b3dc18f..93a9f4746e49 100644 --- a/java-dms/README.md +++ b/java-dms/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dms - 2.81.0 + 2.82.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dms:2.81.0' +implementation 'com.google.cloud:google-cloud-dms:2.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "2.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "2.82.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dms/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dms.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.82.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dms/google-cloud-dms-bom/pom.xml b/java-dms/google-cloud-dms-bom/pom.xml index 38bef68deedc..6c56b2d733a7 100644 --- a/java-dms/google-cloud-dms-bom/pom.xml +++ b/java-dms/google-cloud-dms-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dms-bom - 2.83.0-SNAPSHOT + 2.84.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-dms - 2.83.0-SNAPSHOT + 2.84.0 com.google.api.grpc grpc-google-cloud-dms-v1 - 2.83.0-SNAPSHOT + 2.84.0 com.google.api.grpc proto-google-cloud-dms-v1 - 2.83.0-SNAPSHOT + 2.84.0 diff --git a/java-dms/google-cloud-dms/pom.xml b/java-dms/google-cloud-dms/pom.xml index 3c3dae374595..ba99641f106b 100644 --- a/java-dms/google-cloud-dms/pom.xml +++ b/java-dms/google-cloud-dms/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dms - 2.83.0-SNAPSHOT + 2.84.0 jar Google Database Migration Service Database Migration Service makes it easier for you to migrate your data to Google Cloud. This service helps you lift and shift your MySQL and PostgreSQL workloads into Cloud SQL. com.google.cloud google-cloud-dms-parent - 2.83.0-SNAPSHOT + 2.84.0 google-cloud-dms diff --git a/java-dms/grpc-google-cloud-dms-v1/pom.xml b/java-dms/grpc-google-cloud-dms-v1/pom.xml index d41239fdd30e..21502ca1c40b 100644 --- a/java-dms/grpc-google-cloud-dms-v1/pom.xml +++ b/java-dms/grpc-google-cloud-dms-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dms-v1 - 2.83.0-SNAPSHOT + 2.84.0 grpc-google-cloud-dms-v1 GRPC library for google-cloud-dms com.google.cloud google-cloud-dms-parent - 2.83.0-SNAPSHOT + 2.84.0 diff --git a/java-dms/pom.xml b/java-dms/pom.xml index 3264246bb1cf..b1d7b1c46780 100644 --- a/java-dms/pom.xml +++ b/java-dms/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dms-parent pom - 2.83.0-SNAPSHOT + 2.84.0 Google Database Migration Service Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,18 +29,18 @@ com.google.cloud google-cloud-dms - 2.83.0-SNAPSHOT + 2.84.0 com.google.api.grpc proto-google-cloud-dms-v1 - 2.83.0-SNAPSHOT + 2.84.0 com.google.api.grpc grpc-google-cloud-dms-v1 - 2.83.0-SNAPSHOT + 2.84.0 diff --git a/java-dms/proto-google-cloud-dms-v1/pom.xml b/java-dms/proto-google-cloud-dms-v1/pom.xml index bb7bf74c3446..51e1e84da7aa 100644 --- a/java-dms/proto-google-cloud-dms-v1/pom.xml +++ b/java-dms/proto-google-cloud-dms-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dms-v1 - 2.83.0-SNAPSHOT + 2.84.0 proto-google-cloud-dms-v1 Proto library for google-cloud-dms com.google.cloud google-cloud-dms-parent - 2.83.0-SNAPSHOT + 2.84.0 diff --git a/java-dns/README.md b/java-dns/README.md index e6bcdddc5e24..78fd87577b8d 100644 --- a/java-dns/README.md +++ b/java-dns/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dns - 2.81.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dns:2.81.0' +implementation 'com.google.cloud:google-cloud-dns:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dns" % "2.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dns" % "2.83.0" ``` diff --git a/java-dns/pom.xml b/java-dns/pom.xml index bf7a56974046..1b446a9d40f9 100644 --- a/java-dns/pom.xml +++ b/java-dns/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dns jar - 2.82.0-SNAPSHOT + 2.83.0 Google Cloud DNS Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml diff --git a/java-document-ai/README.md b/java-document-ai/README.md index fa0d294cf09f..7ecc0c82536e 100644 --- a/java-document-ai/README.md +++ b/java-document-ai/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-document-ai - 2.86.0 + 2.87.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-document-ai:2.86.0' +implementation 'com.google.cloud:google-cloud-document-ai:2.87.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.86.0" +libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.87.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-document-ai/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-document-ai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-document-ai/2.86.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-document-ai/2.87.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-document-ai/google-cloud-document-ai-bom/pom.xml b/java-document-ai/google-cloud-document-ai-bom/pom.xml index 36816793f1cf..e1cf81debafb 100644 --- a/java-document-ai/google-cloud-document-ai-bom/pom.xml +++ b/java-document-ai/google-cloud-document-ai-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-document-ai-bom - 2.88.0-SNAPSHOT + 2.89.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -21,27 +21,27 @@ com.google.cloud google-cloud-document-ai - 2.88.0-SNAPSHOT + 2.89.0 com.google.api.grpc grpc-google-cloud-document-ai-v1beta3 - 0.100.0-SNAPSHOT + 0.101.0 com.google.api.grpc grpc-google-cloud-document-ai-v1 - 2.88.0-SNAPSHOT + 2.89.0 com.google.api.grpc proto-google-cloud-document-ai-v1beta3 - 0.100.0-SNAPSHOT + 0.101.0 com.google.api.grpc proto-google-cloud-document-ai-v1 - 2.88.0-SNAPSHOT + 2.89.0 diff --git a/java-document-ai/google-cloud-document-ai/pom.xml b/java-document-ai/google-cloud-document-ai/pom.xml index f98789d56f37..2c12745fa498 100644 --- a/java-document-ai/google-cloud-document-ai/pom.xml +++ b/java-document-ai/google-cloud-document-ai/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-document-ai - 2.88.0-SNAPSHOT + 2.89.0 jar Google Cloud Document AI Java idiomatic client for Google Cloud Document AI com.google.cloud google-cloud-document-ai-parent - 2.88.0-SNAPSHOT + 2.89.0 google-cloud-document-ai diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClient.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClient.java index 9b85c7d6e1c6..9b848e7f12e3 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClient.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClient.java @@ -517,7 +517,8 @@ * * *

          ListLocations - *

          Lists information about the supported locations for this service. + *

          Lists information about the supported locations for this service.This method can be called in two ways: + *

          * **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project. * *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          *
            @@ -3328,7 +3329,9 @@ public final UnaryCallable disableProcessorC * [HumanReviewConfig][google.cloud.documentai.v1beta3.HumanReviewConfig] that the document * will be reviewed with. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture reviewDocumentAsync(HumanReviewConfigName humanReviewConfig) { ReviewDocumentRequest request = @@ -3364,7 +3367,9 @@ public final UnaryCallable disableProcessorC * [HumanReviewConfig][google.cloud.documentai.v1beta3.HumanReviewConfig] that the document * will be reviewed with. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture reviewDocumentAsync(String humanReviewConfig) { ReviewDocumentRequest request = @@ -3402,7 +3407,9 @@ public final UnaryCallable disableProcessorC * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture reviewDocumentAsync(ReviewDocumentRequest request) { return reviewDocumentOperationCallable().futureCall(request); @@ -3437,7 +3444,10 @@ public final UnaryCallable disableProcessorC * ReviewDocumentResponse response = future.get(); * } * }
          + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationCallable< ReviewDocumentRequest, ReviewDocumentResponse, ReviewDocumentOperationMetadata> reviewDocumentOperationCallable() { @@ -3473,7 +3483,10 @@ public final UnaryCallable disableProcessorC * Operation response = future.get(); * } * }
          + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable reviewDocumentCallable() { return stub.reviewDocumentCallable(); } @@ -4143,7 +4156,13 @@ public final ListEvaluationsPagedResponse listEvaluations(ListEvaluationsRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

          * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

          Sample code: * @@ -4177,7 +4196,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

          * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

          Sample code: * @@ -4212,7 +4237,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

          * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

          Sample code: * diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceSettings.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceSettings.java index 5200e1c84015..637e9b35a65f 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceSettings.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceSettings.java @@ -317,12 +317,22 @@ public UnaryCallSettings disableProcessorSet .setDefaultProcessorVersionOperationSettings(); } - /** Returns the object with the settings used for calls to reviewDocument. */ + /** + * Returns the object with the settings used for calls to reviewDocument. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings reviewDocumentSettings() { return ((DocumentProcessorServiceStubSettings) getStubSettings()).reviewDocumentSettings(); } - /** Returns the object with the settings used for calls to reviewDocument. */ + /** + * Returns the object with the settings used for calls to reviewDocument. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public OperationCallSettings< ReviewDocumentRequest, ReviewDocumentResponse, ReviewDocumentOperationMetadata> reviewDocumentOperationSettings() { @@ -678,12 +688,22 @@ public UnaryCallSettings.Builder enableProces return getStubSettingsBuilder().setDefaultProcessorVersionOperationSettings(); } - /** Returns the builder for the settings used for calls to reviewDocument. */ + /** + * Returns the builder for the settings used for calls to reviewDocument. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder reviewDocumentSettings() { return getStubSettingsBuilder().reviewDocumentSettings(); } - /** Returns the builder for the settings used for calls to reviewDocument. */ + /** + * Returns the builder for the settings used for calls to reviewDocument. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public OperationCallSettings.Builder< ReviewDocumentRequest, ReviewDocumentResponse, ReviewDocumentOperationMetadata> reviewDocumentOperationSettings() { diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentServiceClient.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentServiceClient.java index 351272215e79..2b62134ec0bc 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentServiceClient.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentServiceClient.java @@ -208,7 +208,8 @@ * * *

          ListLocations - *

          Lists information about the supported locations for this service. + *

          Lists information about the supported locations for this service.This method can be called in two ways: + *

          * **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project. * *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          *
            @@ -1277,7 +1278,13 @@ public final DatasetSchema updateDatasetSchema(UpdateDatasetSchemaRequest reques // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

            * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

            Sample code: * @@ -1310,7 +1317,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

            * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

            Sample code: * @@ -1344,7 +1357,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

            * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

            Sample code: * diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStub.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStub.java index e1789b02cf32..0a0fd793d411 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStub.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStub.java @@ -266,12 +266,14 @@ public UnaryCallable disableProcessorCallabl "Not implemented: setDefaultProcessorVersionCallable()"); } + @Deprecated public OperationCallable< ReviewDocumentRequest, ReviewDocumentResponse, ReviewDocumentOperationMetadata> reviewDocumentOperationCallable() { throw new UnsupportedOperationException("Not implemented: reviewDocumentOperationCallable()"); } + @Deprecated public UnaryCallable reviewDocumentCallable() { throw new UnsupportedOperationException("Not implemented: reviewDocumentCallable()"); } diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStubSettings.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStubSettings.java index 838a4c54fb75..2e2be57a3740 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStubSettings.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStubSettings.java @@ -753,7 +753,12 @@ public UnaryCallSettings disableProcessorSet return setDefaultProcessorVersionOperationSettings; } - /** Returns the object with the settings used for calls to reviewDocument. */ + /** + * Returns the object with the settings used for calls to reviewDocument. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings reviewDocumentSettings() { return reviewDocumentSettings; } @@ -1940,7 +1945,12 @@ public UnaryCallSettings.Builder enableProces return setDefaultProcessorVersionOperationSettings; } - /** Returns the builder for the settings used for calls to reviewDocument. */ + /** + * Returns the builder for the settings used for calls to reviewDocument. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder reviewDocumentSettings() { return reviewDocumentSettings; } diff --git a/java-document-ai/google-cloud-document-ai/src/main/resources/META-INF/native-image/com.google.cloud.documentai.v1beta3/reflect-config.json b/java-document-ai/google-cloud-document-ai/src/main/resources/META-INF/native-image/com.google.cloud.documentai.v1beta3/reflect-config.json index 9a0b3b7c27de..9f127049e77d 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/resources/META-INF/native-image/com.google.cloud.documentai.v1beta3/reflect-config.json +++ b/java-document-ai/google-cloud-document-ai/src/main/resources/META-INF/native-image/com.google.cloud.documentai.v1beta3/reflect-config.json @@ -791,24 +791,6 @@ "allDeclaredClasses": true, "allPublicClasses": true }, - { - "name": "com.google.cloud.documentai.v1beta3.Dataset$SpannerIndexingConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.documentai.v1beta3.Dataset$SpannerIndexingConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, { "name": "com.google.cloud.documentai.v1beta3.Dataset$State", "queryAllDeclaredConstructors": true, @@ -2438,6 +2420,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.documentai.v1beta3.Documents", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.documentai.v1beta3.Documents$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.documentai.v1beta3.EnableProcessorMetadata", "queryAllDeclaredConstructors": true, @@ -2618,6 +2618,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.documentai.v1beta3.Evaluation$EvaluationRevision", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.documentai.v1beta3.Evaluation$EvaluationRevision$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.documentai.v1beta3.Evaluation$Metrics", "queryAllDeclaredConstructors": true, @@ -3734,6 +3752,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.documentai.v1beta3.RawDocuments", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.documentai.v1beta3.RawDocuments$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata", "queryAllDeclaredConstructors": true, @@ -4175,6 +4211,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.documentai.v1beta3.Vertex", "queryAllDeclaredConstructors": true, diff --git a/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClientHttpJsonTest.java b/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClientHttpJsonTest.java index afe9de07a580..dbbb9e6cac65 100644 --- a/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClientHttpJsonTest.java +++ b/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClientHttpJsonTest.java @@ -1987,6 +1987,7 @@ public void getEvaluationTest() throws Exception { .putAllEntityMetrics(new HashMap()) .setKmsKeyName("kmsKeyName412586233") .setKmsKeyVersionName("kmsKeyVersionName-1798811307") + .addAllRevisions(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -2048,6 +2049,7 @@ public void getEvaluationTest2() throws Exception { .putAllEntityMetrics(new HashMap()) .setKmsKeyName("kmsKeyName412586233") .setKmsKeyVersionName("kmsKeyVersionName-1798811307") + .addAllRevisions(new ArrayList()) .build(); mockService.addResponse(expectedResponse); diff --git a/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClientTest.java b/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClientTest.java index 1774dcbc7198..e4f9ec7f5264 100644 --- a/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClientTest.java +++ b/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClientTest.java @@ -1835,6 +1835,7 @@ public void getEvaluationTest() throws Exception { .putAllEntityMetrics(new HashMap()) .setKmsKeyName("kmsKeyName412586233") .setKmsKeyVersionName("kmsKeyVersionName-1798811307") + .addAllRevisions(new ArrayList()) .build(); mockDocumentProcessorService.addResponse(expectedResponse); @@ -1890,6 +1891,7 @@ public void getEvaluationTest2() throws Exception { .putAllEntityMetrics(new HashMap()) .setKmsKeyName("kmsKeyName412586233") .setKmsKeyVersionName("kmsKeyVersionName-1798811307") + .addAllRevisions(new ArrayList()) .build(); mockDocumentProcessorService.addResponse(expectedResponse); diff --git a/java-document-ai/grpc-google-cloud-document-ai-v1/pom.xml b/java-document-ai/grpc-google-cloud-document-ai-v1/pom.xml index ad29b4c16d44..4e685ccb3a45 100644 --- a/java-document-ai/grpc-google-cloud-document-ai-v1/pom.xml +++ b/java-document-ai/grpc-google-cloud-document-ai-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-document-ai-v1 - 2.88.0-SNAPSHOT + 2.89.0 grpc-google-cloud-document-ai-v1 GRPC library for google-cloud-document-ai com.google.cloud google-cloud-document-ai-parent - 2.88.0-SNAPSHOT + 2.89.0 diff --git a/java-document-ai/grpc-google-cloud-document-ai-v1beta3/pom.xml b/java-document-ai/grpc-google-cloud-document-ai-v1beta3/pom.xml index 5f6841ce83a8..abe64dc8a309 100644 --- a/java-document-ai/grpc-google-cloud-document-ai-v1beta3/pom.xml +++ b/java-document-ai/grpc-google-cloud-document-ai-v1beta3/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-document-ai-v1beta3 - 0.100.0-SNAPSHOT + 0.101.0 grpc-google-cloud-document-ai-v1beta3 GRPC library for grpc-google-cloud-document-ai-v1beta3 com.google.cloud google-cloud-document-ai-parent - 2.88.0-SNAPSHOT + 2.89.0 diff --git a/java-document-ai/grpc-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceGrpc.java b/java-document-ai/grpc-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceGrpc.java index e32a17163086..907dd6e8d7c9 100644 --- a/java-document-ai/grpc-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceGrpc.java +++ b/java-document-ai/grpc-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceGrpc.java @@ -1537,6 +1537,7 @@ default void setDefaultProcessorVersion( * the specified processor. *

          */ + @java.lang.Deprecated default void reviewDocument( com.google.cloud.documentai.v1beta3.ReviewDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -1968,6 +1969,7 @@ public void setDefaultProcessorVersion( * the specified processor. *
          */ + @java.lang.Deprecated public void reviewDocument( com.google.cloud.documentai.v1beta3.ReviewDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -2344,6 +2346,7 @@ public com.google.longrunning.Operation setDefaultProcessorVersion( * the specified processor. *
          */ + @java.lang.Deprecated public com.google.longrunning.Operation reviewDocument( com.google.cloud.documentai.v1beta3.ReviewDocumentRequest request) throws io.grpc.StatusException { @@ -2692,6 +2695,7 @@ public com.google.longrunning.Operation setDefaultProcessorVersion( * the specified processor. *
          */ + @java.lang.Deprecated public com.google.longrunning.Operation reviewDocument( com.google.cloud.documentai.v1beta3.ReviewDocumentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -3052,6 +3056,7 @@ protected DocumentProcessorServiceFutureStub build( * the specified processor. *
          */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture reviewDocument(com.google.cloud.documentai.v1beta3.ReviewDocumentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( diff --git a/java-document-ai/pom.xml b/java-document-ai/pom.xml index 8604b6b80073..d391443850c1 100644 --- a/java-document-ai/pom.xml +++ b/java-document-ai/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-document-ai-parent pom - 2.88.0-SNAPSHOT + 2.89.0 Google Cloud Document AI Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-document-ai-v1 - 2.88.0-SNAPSHOT + 2.89.0 com.google.api.grpc grpc-google-cloud-document-ai-v1 - 2.88.0-SNAPSHOT + 2.89.0 com.google.cloud google-cloud-document-ai - 2.88.0-SNAPSHOT + 2.89.0 com.google.api.grpc grpc-google-cloud-document-ai-v1beta3 - 0.100.0-SNAPSHOT + 0.101.0 com.google.api.grpc proto-google-cloud-document-ai-v1beta3 - 0.100.0-SNAPSHOT + 0.101.0 diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/pom.xml b/java-document-ai/proto-google-cloud-document-ai-v1/pom.xml index 6b787a3c78f4..49e2c2fe0813 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/pom.xml +++ b/java-document-ai/proto-google-cloud-document-ai-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-document-ai-v1 - 2.88.0-SNAPSHOT + 2.89.0 proto-google-cloud-document-ai-v1 Proto library for google-cloud-document-ai com.google.cloud google-cloud-document-ai-parent - 2.88.0-SNAPSHOT + 2.89.0 diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/pom.xml b/java-document-ai/proto-google-cloud-document-ai-v1beta3/pom.xml index 7f5bf58cb074..20fafea2f9aa 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/pom.xml +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-document-ai-v1beta3 - 0.100.0-SNAPSHOT + 0.101.0 proto-google-cloud-document-ai-v1beta3 PROTO library for proto-google-cloud-document-ai-v1beta3 com.google.cloud google-cloud-document-ai-parent - 2.88.0-SNAPSHOT + 2.89.0 diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessMetadata.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessMetadata.java index c1c70e096f4f..f788a7570588 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessMetadata.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessMetadata.java @@ -454,7 +454,7 @@ public interface IndividualProcessStatusOrBuilder * * @deprecated * google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.human_review_operation - * is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=658 + * is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=662 * @return The humanReviewOperation. */ @java.lang.Deprecated @@ -476,7 +476,7 @@ public interface IndividualProcessStatusOrBuilder * * @deprecated * google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.human_review_operation - * is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=658 + * is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=662 * @return The bytes for humanReviewOperation. */ @java.lang.Deprecated @@ -759,7 +759,7 @@ public com.google.protobuf.ByteString getOutputGcsDestinationBytes() { * * @deprecated * google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.human_review_operation - * is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=658 + * is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=662 * @return The humanReviewOperation. */ @java.lang.Override @@ -792,7 +792,7 @@ public java.lang.String getHumanReviewOperation() { * * @deprecated * google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.human_review_operation - * is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=658 + * is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=662 * @return The bytes for humanReviewOperation. */ @java.lang.Override @@ -1775,7 +1775,7 @@ public Builder setOutputGcsDestinationBytes(com.google.protobuf.ByteString value * @deprecated * google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.human_review_operation * is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=658 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=662 * @return The humanReviewOperation. */ @java.lang.Deprecated @@ -1808,7 +1808,7 @@ public java.lang.String getHumanReviewOperation() { * @deprecated * google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.human_review_operation * is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=658 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=662 * @return The bytes for humanReviewOperation. */ @java.lang.Deprecated @@ -1841,7 +1841,7 @@ public com.google.protobuf.ByteString getHumanReviewOperationBytes() { * @deprecated * google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.human_review_operation * is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=658 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=662 * @param value The humanReviewOperation to set. * @return This builder for chaining. */ @@ -1873,7 +1873,7 @@ public Builder setHumanReviewOperation(java.lang.String value) { * @deprecated * google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.human_review_operation * is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=658 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=662 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1901,7 +1901,7 @@ public Builder clearHumanReviewOperation() { * @deprecated * google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.human_review_operation * is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=658 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=662 * @param value The bytes for humanReviewOperation to set. * @return This builder for chaining. */ diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequest.java index e06084260d83..760744e1d207 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequest.java @@ -1803,7 +1803,7 @@ public com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig * * * @deprecated google.cloud.documentai.v1beta3.BatchProcessRequest.output_config is deprecated. - * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=602 + * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=606 * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -1824,7 +1824,7 @@ public boolean hasOutputConfig() { * * * @deprecated google.cloud.documentai.v1beta3.BatchProcessRequest.output_config is deprecated. - * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=602 + * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=606 * @return The outputConfig. */ @java.lang.Override @@ -1989,11 +1989,14 @@ public com.google.cloud.documentai.v1beta3.DocumentOutputConfig getDocumentOutpu * `false`. *
          * - * bool skip_human_review = 4; + * bool skip_human_review = 4 [deprecated = true]; * + * @deprecated google.cloud.documentai.v1beta3.BatchProcessRequest.skip_human_review is + * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=620 * @return The skipHumanReview. */ @java.lang.Override + @java.lang.Deprecated public boolean getSkipHumanReview() { return skipHumanReview_; } @@ -3411,7 +3414,7 @@ public Builder removeInputConfigs(int index) { * * * @deprecated google.cloud.documentai.v1beta3.BatchProcessRequest.output_config is deprecated. - * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=602 + * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=606 * @return Whether the outputConfig field is set. */ @java.lang.Deprecated @@ -3431,7 +3434,7 @@ public boolean hasOutputConfig() { * * * @deprecated google.cloud.documentai.v1beta3.BatchProcessRequest.output_config is deprecated. - * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=602 + * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=606 * @return The outputConfig. */ @java.lang.Deprecated @@ -4083,11 +4086,14 @@ public Builder clearDocumentOutputConfig() { * `false`. *
          * - * bool skip_human_review = 4; + * bool skip_human_review = 4 [deprecated = true]; * + * @deprecated google.cloud.documentai.v1beta3.BatchProcessRequest.skip_human_review is + * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=620 * @return The skipHumanReview. */ @java.lang.Override + @java.lang.Deprecated public boolean getSkipHumanReview() { return skipHumanReview_; } @@ -4100,11 +4106,14 @@ public boolean getSkipHumanReview() { * `false`. *
          * - * bool skip_human_review = 4; + * bool skip_human_review = 4 [deprecated = true]; * + * @deprecated google.cloud.documentai.v1beta3.BatchProcessRequest.skip_human_review is + * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=620 * @param value The skipHumanReview to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setSkipHumanReview(boolean value) { skipHumanReview_ = value; @@ -4121,10 +4130,13 @@ public Builder setSkipHumanReview(boolean value) { * `false`. * * - * bool skip_human_review = 4; + * bool skip_human_review = 4 [deprecated = true]; * + * @deprecated google.cloud.documentai.v1beta3.BatchProcessRequest.skip_human_review is + * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=620 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearSkipHumanReview() { bitField0_ = (bitField0_ & ~0x00000020); skipHumanReview_ = false; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequestOrBuilder.java index 86b3d37fc53c..81ac116753f3 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequestOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequestOrBuilder.java @@ -154,7 +154,7 @@ com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig getInpu *
          * * @deprecated google.cloud.documentai.v1beta3.BatchProcessRequest.output_config is deprecated. - * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=602 + * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=606 * @return Whether the outputConfig field is set. */ @java.lang.Deprecated @@ -172,7 +172,7 @@ com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig getInpu *
          * * @deprecated google.cloud.documentai.v1beta3.BatchProcessRequest.output_config is deprecated. - * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=602 + * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=606 * @return The outputConfig. */ @java.lang.Deprecated @@ -289,10 +289,13 @@ com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig getInpu * `false`. * * - * bool skip_human_review = 4; + * bool skip_human_review = 4 [deprecated = true]; * + * @deprecated google.cloud.documentai.v1beta3.BatchProcessRequest.skip_human_review is + * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=620 * @return The skipHumanReview. */ + @java.lang.Deprecated boolean getSkipHumanReview(); /** diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Dataset.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Dataset.java index af3092b58089..d5a902ef15d1 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Dataset.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Dataset.java @@ -2299,397 +2299,6 @@ public com.google.protobuf.Parser getParserForType() { } } - public interface SpannerIndexingConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) - com.google.protobuf.MessageOrBuilder {} - - /** - * - * - *
          -   * Configuration specific to spanner-based indexing.
          -   * 
          - * - * Protobuf type {@code google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig} - */ - public static final class SpannerIndexingConfig extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) - SpannerIndexingConfigOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "SpannerIndexingConfig"); - } - - // Use SpannerIndexingConfig.newBuilder() to construct. - private SpannerIndexingConfig(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private SpannerIndexingConfig() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.documentai.v1beta3.DatasetProto - .internal_static_google_cloud_documentai_v1beta3_Dataset_SpannerIndexingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.documentai.v1beta3.DatasetProto - .internal_static_google_cloud_documentai_v1beta3_Dataset_SpannerIndexingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.class, - com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.Builder.class); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig)) { - return super.equals(obj); - } - com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig other = - (com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
          -     * Configuration specific to spanner-based indexing.
          -     * 
          - * - * Protobuf type {@code google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) - com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.documentai.v1beta3.DatasetProto - .internal_static_google_cloud_documentai_v1beta3_Dataset_SpannerIndexingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.documentai.v1beta3.DatasetProto - .internal_static_google_cloud_documentai_v1beta3_Dataset_SpannerIndexingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.class, - com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.Builder.class); - } - - // Construct using - // com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.documentai.v1beta3.DatasetProto - .internal_static_google_cloud_documentai_v1beta3_Dataset_SpannerIndexingConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig - getDefaultInstanceForType() { - return com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig build() { - com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig buildPartial() { - com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig result = - new com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) { - return mergeFrom( - (com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig other) { - if (other - == com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig - .getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) - private static final com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig(); - } - - public static com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpannerIndexingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } 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; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - private int storageSourceCase_ = 0; @SuppressWarnings("serial") @@ -2727,56 +2336,9 @@ public static StorageSourceCase forNumber(int value) { case 5: return DOCUMENT_WAREHOUSE_CONFIG; case 6: - return UNMANAGED_DATASET_CONFIG; - case 0: - return STORAGESOURCE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public StorageSourceCase getStorageSourceCase() { - return StorageSourceCase.forNumber(storageSourceCase_); - } - - private int indexingSourceCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object indexingSource_; - - public enum IndexingSourceCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - SPANNER_INDEXING_CONFIG(4), - INDEXINGSOURCE_NOT_SET(0); - private final int value; - - private IndexingSourceCase(int value) { - this.value = value; - } - - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static IndexingSourceCase valueOf(int value) { - return forNumber(value); - } - - public static IndexingSourceCase forNumber(int value) { - switch (value) { - case 4: - return SPANNER_INDEXING_CONFIG; + return UNMANAGED_DATASET_CONFIG; case 0: - return INDEXINGSOURCE_NOT_SET; + return STORAGESOURCE_NOT_SET; default: return null; } @@ -2787,8 +2349,8 @@ public int getNumber() { } }; - public IndexingSourceCase getIndexingSourceCase() { - return IndexingSourceCase.forNumber(indexingSourceCase_); + public StorageSourceCase getStorageSourceCase() { + return StorageSourceCase.forNumber(storageSourceCase_); } public static final int GCS_MANAGED_CONFIG_FIELD_NUMBER = 3; @@ -2873,7 +2435,7 @@ public com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig getGcsManage * * * @deprecated google.cloud.documentai.v1beta3.Dataset.document_warehouse_config is deprecated. - * See google/cloud/documentai/v1beta3/dataset.proto;l=98 + * See google/cloud/documentai/v1beta3/dataset.proto;l=95 * @return Whether the documentWarehouseConfig field is set. */ @java.lang.Override @@ -2895,7 +2457,7 @@ public boolean hasDocumentWarehouseConfig() { * * * @deprecated google.cloud.documentai.v1beta3.Dataset.document_warehouse_config is deprecated. - * See google/cloud/documentai/v1beta3/dataset.proto;l=98 + * See google/cloud/documentai/v1beta3/dataset.proto;l=95 * @return The documentWarehouseConfig. */ @java.lang.Override @@ -2998,74 +2560,6 @@ public boolean hasUnmanagedDatasetConfig() { return com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig.getDefaultInstance(); } - public static final int SPANNER_INDEXING_CONFIG_FIELD_NUMBER = 4; - - /** - * - * - *
          -   * Optional. A lightweight indexing source with low latency and high
          -   * reliability, but lacking advanced features like CMEK and content-based
          -   * search.
          -   * 
          - * - * - * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the spannerIndexingConfig field is set. - */ - @java.lang.Override - public boolean hasSpannerIndexingConfig() { - return indexingSourceCase_ == 4; - } - - /** - * - * - *
          -   * Optional. A lightweight indexing source with low latency and high
          -   * reliability, but lacking advanced features like CMEK and content-based
          -   * search.
          -   * 
          - * - * - * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The spannerIndexingConfig. - */ - @java.lang.Override - public com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig - getSpannerIndexingConfig() { - if (indexingSourceCase_ == 4) { - return (com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) indexingSource_; - } - return com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.getDefaultInstance(); - } - - /** - * - * - *
          -   * Optional. A lightweight indexing source with low latency and high
          -   * reliability, but lacking advanced features like CMEK and content-based
          -   * search.
          -   * 
          - * - * - * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfigOrBuilder - getSpannerIndexingConfigOrBuilder() { - if (indexingSourceCase_ == 4) { - return (com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) indexingSource_; - } - return com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.getDefaultInstance(); - } - public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -3226,10 +2720,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 3, (com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig) storageSource_); } - if (indexingSourceCase_ == 4) { - output.writeMessage( - 4, (com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) indexingSource_); - } if (storageSourceCase_ == 5) { output.writeMessage( 5, (com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig) storageSource_); @@ -3264,12 +2754,6 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 3, (com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig) storageSource_); } - if (indexingSourceCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, - (com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) indexingSource_); - } if (storageSourceCase_ == 5) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -3322,14 +2806,6 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!getIndexingSourceCase().equals(other.getIndexingSourceCase())) return false; - switch (indexingSourceCase_) { - case 4: - if (!getSpannerIndexingConfig().equals(other.getSpannerIndexingConfig())) return false; - break; - case 0: - default: - } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3365,14 +2841,6 @@ public int hashCode() { case 0: default: } - switch (indexingSourceCase_) { - case 4: - hash = (37 * hash) + SPANNER_INDEXING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getSpannerIndexingConfig().hashCode(); - break; - case 0: - default: - } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -3524,17 +2992,12 @@ public Builder clear() { if (unmanagedDatasetConfigBuilder_ != null) { unmanagedDatasetConfigBuilder_.clear(); } - if (spannerIndexingConfigBuilder_ != null) { - spannerIndexingConfigBuilder_.clear(); - } name_ = ""; state_ = 0; satisfiesPzs_ = false; satisfiesPzi_ = false; storageSourceCase_ = 0; storageSource_ = null; - indexingSourceCase_ = 0; - indexingSource_ = null; return this; } @@ -3572,16 +3035,16 @@ public com.google.cloud.documentai.v1beta3.Dataset buildPartial() { private void buildPartial0(com.google.cloud.documentai.v1beta3.Dataset result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.name_ = name_; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.state_ = state_; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.satisfiesPzs_ = satisfiesPzs_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.satisfiesPzi_ = satisfiesPzi_; } } @@ -3598,11 +3061,6 @@ private void buildPartialOneofs(com.google.cloud.documentai.v1beta3.Dataset resu if (storageSourceCase_ == 6 && unmanagedDatasetConfigBuilder_ != null) { result.storageSource_ = unmanagedDatasetConfigBuilder_.build(); } - result.indexingSourceCase_ = indexingSourceCase_; - result.indexingSource_ = this.indexingSource_; - if (indexingSourceCase_ == 4 && spannerIndexingConfigBuilder_ != null) { - result.indexingSource_ = spannerIndexingConfigBuilder_.build(); - } } @java.lang.Override @@ -3619,7 +3077,7 @@ public Builder mergeFrom(com.google.cloud.documentai.v1beta3.Dataset other) { if (other == com.google.cloud.documentai.v1beta3.Dataset.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; onChanged(); } if (other.state_ != 0) { @@ -3652,17 +3110,6 @@ public Builder mergeFrom(com.google.cloud.documentai.v1beta3.Dataset other) { break; } } - switch (other.getIndexingSourceCase()) { - case SPANNER_INDEXING_CONFIG: - { - mergeSpannerIndexingConfig(other.getSpannerIndexingConfig()); - break; - } - case INDEXINGSOURCE_NOT_SET: - { - break; - } - } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3692,13 +3139,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; break; } // case 10 case 16: { state_ = input.readEnum(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; break; } // case 16 case 26: @@ -3708,13 +3155,6 @@ public Builder mergeFrom( storageSourceCase_ = 3; break; } // case 26 - case 34: - { - input.readMessage( - internalGetSpannerIndexingConfigFieldBuilder().getBuilder(), extensionRegistry); - indexingSourceCase_ = 4; - break; - } // case 34 case 42: { input.readMessage( @@ -3734,13 +3174,13 @@ public Builder mergeFrom( case 64: { satisfiesPzs_ = input.readBool(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; break; } // case 64 case 72: { satisfiesPzi_ = input.readBool(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000040; break; } // case 72 default: @@ -3774,20 +3214,6 @@ public Builder clearStorageSource() { return this; } - private int indexingSourceCase_ = 0; - private java.lang.Object indexingSource_; - - public IndexingSourceCase getIndexingSourceCase() { - return IndexingSourceCase.forNumber(indexingSourceCase_); - } - - public Builder clearIndexingSource() { - indexingSourceCase_ = 0; - indexingSource_ = null; - onChanged(); - return this; - } - private int bitField0_; private com.google.protobuf.SingleFieldBuilder< @@ -4070,7 +3496,7 @@ public Builder clearGcsManagedConfig() { * * * @deprecated google.cloud.documentai.v1beta3.Dataset.document_warehouse_config is deprecated. - * See google/cloud/documentai/v1beta3/dataset.proto;l=98 + * See google/cloud/documentai/v1beta3/dataset.proto;l=95 * @return Whether the documentWarehouseConfig field is set. */ @java.lang.Override @@ -4092,7 +3518,7 @@ public boolean hasDocumentWarehouseConfig() { * * * @deprecated google.cloud.documentai.v1beta3.Dataset.document_warehouse_config is deprecated. - * See google/cloud/documentai/v1beta3/dataset.proto;l=98 + * See google/cloud/documentai/v1beta3/dataset.proto;l=95 * @return The documentWarehouseConfig. */ @java.lang.Override @@ -4595,275 +4021,6 @@ public Builder clearUnmanagedDatasetConfig() { return unmanagedDatasetConfigBuilder_; } - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig, - com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.Builder, - com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfigOrBuilder> - spannerIndexingConfigBuilder_; - - /** - * - * - *
          -     * Optional. A lightweight indexing source with low latency and high
          -     * reliability, but lacking advanced features like CMEK and content-based
          -     * search.
          -     * 
          - * - * - * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the spannerIndexingConfig field is set. - */ - @java.lang.Override - public boolean hasSpannerIndexingConfig() { - return indexingSourceCase_ == 4; - } - - /** - * - * - *
          -     * Optional. A lightweight indexing source with low latency and high
          -     * reliability, but lacking advanced features like CMEK and content-based
          -     * search.
          -     * 
          - * - * - * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The spannerIndexingConfig. - */ - @java.lang.Override - public com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig - getSpannerIndexingConfig() { - if (spannerIndexingConfigBuilder_ == null) { - if (indexingSourceCase_ == 4) { - return (com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) - indexingSource_; - } - return com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig - .getDefaultInstance(); - } else { - if (indexingSourceCase_ == 4) { - return spannerIndexingConfigBuilder_.getMessage(); - } - return com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig - .getDefaultInstance(); - } - } - - /** - * - * - *
          -     * Optional. A lightweight indexing source with low latency and high
          -     * reliability, but lacking advanced features like CMEK and content-based
          -     * search.
          -     * 
          - * - * - * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSpannerIndexingConfig( - com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig value) { - if (spannerIndexingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - indexingSource_ = value; - onChanged(); - } else { - spannerIndexingConfigBuilder_.setMessage(value); - } - indexingSourceCase_ = 4; - return this; - } - - /** - * - * - *
          -     * Optional. A lightweight indexing source with low latency and high
          -     * reliability, but lacking advanced features like CMEK and content-based
          -     * search.
          -     * 
          - * - * - * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSpannerIndexingConfig( - com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.Builder builderForValue) { - if (spannerIndexingConfigBuilder_ == null) { - indexingSource_ = builderForValue.build(); - onChanged(); - } else { - spannerIndexingConfigBuilder_.setMessage(builderForValue.build()); - } - indexingSourceCase_ = 4; - return this; - } - - /** - * - * - *
          -     * Optional. A lightweight indexing source with low latency and high
          -     * reliability, but lacking advanced features like CMEK and content-based
          -     * search.
          -     * 
          - * - * - * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeSpannerIndexingConfig( - com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig value) { - if (spannerIndexingConfigBuilder_ == null) { - if (indexingSourceCase_ == 4 - && indexingSource_ - != com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig - .getDefaultInstance()) { - indexingSource_ = - com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.newBuilder( - (com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) - indexingSource_) - .mergeFrom(value) - .buildPartial(); - } else { - indexingSource_ = value; - } - onChanged(); - } else { - if (indexingSourceCase_ == 4) { - spannerIndexingConfigBuilder_.mergeFrom(value); - } else { - spannerIndexingConfigBuilder_.setMessage(value); - } - } - indexingSourceCase_ = 4; - return this; - } - - /** - * - * - *
          -     * Optional. A lightweight indexing source with low latency and high
          -     * reliability, but lacking advanced features like CMEK and content-based
          -     * search.
          -     * 
          - * - * - * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearSpannerIndexingConfig() { - if (spannerIndexingConfigBuilder_ == null) { - if (indexingSourceCase_ == 4) { - indexingSourceCase_ = 0; - indexingSource_ = null; - onChanged(); - } - } else { - if (indexingSourceCase_ == 4) { - indexingSourceCase_ = 0; - indexingSource_ = null; - } - spannerIndexingConfigBuilder_.clear(); - } - return this; - } - - /** - * - * - *
          -     * Optional. A lightweight indexing source with low latency and high
          -     * reliability, but lacking advanced features like CMEK and content-based
          -     * search.
          -     * 
          - * - * - * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.Builder - getSpannerIndexingConfigBuilder() { - return internalGetSpannerIndexingConfigFieldBuilder().getBuilder(); - } - - /** - * - * - *
          -     * Optional. A lightweight indexing source with low latency and high
          -     * reliability, but lacking advanced features like CMEK and content-based
          -     * search.
          -     * 
          - * - * - * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfigOrBuilder - getSpannerIndexingConfigOrBuilder() { - if ((indexingSourceCase_ == 4) && (spannerIndexingConfigBuilder_ != null)) { - return spannerIndexingConfigBuilder_.getMessageOrBuilder(); - } else { - if (indexingSourceCase_ == 4) { - return (com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) - indexingSource_; - } - return com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig - .getDefaultInstance(); - } - } - - /** - * - * - *
          -     * Optional. A lightweight indexing source with low latency and high
          -     * reliability, but lacking advanced features like CMEK and content-based
          -     * search.
          -     * 
          - * - * - * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig, - com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.Builder, - com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfigOrBuilder> - internalGetSpannerIndexingConfigFieldBuilder() { - if (spannerIndexingConfigBuilder_ == null) { - if (!(indexingSourceCase_ == 4)) { - indexingSource_ = - com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig - .getDefaultInstance(); - } - spannerIndexingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig, - com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.Builder, - com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfigOrBuilder>( - (com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) indexingSource_, - getParentForChildren(), - isClean()); - indexingSource_ = null; - } - indexingSourceCase_ = 4; - onChanged(); - return spannerIndexingConfigBuilder_; - } - private java.lang.Object name_ = ""; /** @@ -4935,7 +4092,7 @@ public Builder setName(java.lang.String value) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -4955,7 +4112,7 @@ public Builder setName(java.lang.String value) { */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -4980,7 +4137,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -5021,7 +4178,7 @@ public int getStateValue() { */ public Builder setStateValue(int value) { state_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -5066,7 +4223,7 @@ public Builder setState(com.google.cloud.documentai.v1beta3.Dataset.State value) if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; state_ = value.getNumber(); onChanged(); return this; @@ -5086,7 +4243,7 @@ public Builder setState(com.google.cloud.documentai.v1beta3.Dataset.State value) * @return This builder for chaining. */ public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000010); state_ = 0; onChanged(); return this; @@ -5125,7 +4282,7 @@ public boolean getSatisfiesPzs() { public Builder setSatisfiesPzs(boolean value) { satisfiesPzs_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -5142,7 +4299,7 @@ public Builder setSatisfiesPzs(boolean value) { * @return This builder for chaining. */ public Builder clearSatisfiesPzs() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000020); satisfiesPzs_ = false; onChanged(); return this; @@ -5181,7 +4338,7 @@ public boolean getSatisfiesPzi() { public Builder setSatisfiesPzi(boolean value) { satisfiesPzi_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -5198,7 +4355,7 @@ public Builder setSatisfiesPzi(boolean value) { * @return This builder for chaining. */ public Builder clearSatisfiesPzi() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000040); satisfiesPzi_ = false; onChanged(); return this; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetOrBuilder.java index 190166060af8..59f3f213aeb3 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetOrBuilder.java @@ -89,7 +89,7 @@ public interface DatasetOrBuilder * * * @deprecated google.cloud.documentai.v1beta3.Dataset.document_warehouse_config is deprecated. - * See google/cloud/documentai/v1beta3/dataset.proto;l=98 + * See google/cloud/documentai/v1beta3/dataset.proto;l=95 * @return Whether the documentWarehouseConfig field is set. */ @java.lang.Deprecated @@ -108,7 +108,7 @@ public interface DatasetOrBuilder * * * @deprecated google.cloud.documentai.v1beta3.Dataset.document_warehouse_config is deprecated. - * See google/cloud/documentai/v1beta3/dataset.proto;l=98 + * See google/cloud/documentai/v1beta3/dataset.proto;l=95 * @return The documentWarehouseConfig. */ @java.lang.Deprecated @@ -180,56 +180,6 @@ public interface DatasetOrBuilder com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfigOrBuilder getUnmanagedDatasetConfigOrBuilder(); - /** - * - * - *
          -   * Optional. A lightweight indexing source with low latency and high
          -   * reliability, but lacking advanced features like CMEK and content-based
          -   * search.
          -   * 
          - * - * - * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the spannerIndexingConfig field is set. - */ - boolean hasSpannerIndexingConfig(); - - /** - * - * - *
          -   * Optional. A lightweight indexing source with low latency and high
          -   * reliability, but lacking advanced features like CMEK and content-based
          -   * search.
          -   * 
          - * - * - * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The spannerIndexingConfig. - */ - com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig getSpannerIndexingConfig(); - - /** - * - * - *
          -   * Optional. A lightweight indexing source with low latency and high
          -   * reliability, but lacking advanced features like CMEK and content-based
          -   * search.
          -   * 
          - * - * - * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfigOrBuilder - getSpannerIndexingConfigOrBuilder(); - /** * * @@ -317,6 +267,4 @@ public interface DatasetOrBuilder boolean getSatisfiesPzi(); com.google.cloud.documentai.v1beta3.Dataset.StorageSourceCase getStorageSourceCase(); - - com.google.cloud.documentai.v1beta3.Dataset.IndexingSourceCase getIndexingSourceCase(); } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetProto.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetProto.java index c242c2ca4400..5d87ab2fab25 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetProto.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetProto.java @@ -56,10 +56,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_documentai_v1beta3_Dataset_UnmanagedDatasetConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_documentai_v1beta3_Dataset_UnmanagedDatasetConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_documentai_v1beta3_Dataset_SpannerIndexingConfig_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_documentai_v1beta3_Dataset_SpannerIndexingConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_documentai_v1beta3_DocumentId_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -93,73 +89,75 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n-google/cloud/documentai/v1beta3/datase" - + "t.proto\022\037google.cloud.documentai.v1beta3" + "\n" + + "-google/cloud/documentai/v1beta3/dataset.proto\022\037google.cloud.documentai.v1beta3" + "\032\037google/api/field_behavior.proto\032\031googl" - + "e/api/resource.proto\032.google/cloud/docum" - + "entai/v1beta3/document.proto\0321google/clo" + + "e/api/resource.proto\032.google/cloud/documentai/v1beta3/document.proto\0321google/clo" + "ud/documentai/v1beta3/document_io.proto\032" - + "5google/cloud/documentai/v1beta3/documen" - + "t_schema.proto\"\234\010\n\007Dataset\022\\\n\022gcs_manage" - + "d_config\030\003 \001(\01329.google.cloud.documentai" - + ".v1beta3.Dataset.GCSManagedConfigB\003\340A\001H\000" - + "\022l\n\031document_warehouse_config\030\005 \001(\0132@.go" - + "ogle.cloud.documentai.v1beta3.Dataset.Do" - + "cumentWarehouseConfigB\005\030\001\340A\001H\000\022h\n\030unmana" - + "ged_dataset_config\030\006 \001(\0132?.google.cloud." - + "documentai.v1beta3.Dataset.UnmanagedData" - + "setConfigB\003\340A\001H\000\022f\n\027spanner_indexing_con" - + "fig\030\004 \001(\0132>.google.cloud.documentai.v1be" - + "ta3.Dataset.SpannerIndexingConfigB\003\340A\001H\001" - + "\022\014\n\004name\030\001 \001(\t\022B\n\005state\030\002 \001(\0162..google.c" - + "loud.documentai.v1beta3.Dataset.StateB\003\340" - + "A\002\022\032\n\rsatisfies_pzs\030\010 \001(\010B\003\340A\003\022\032\n\rsatisf" - + "ies_pzi\030\t \001(\010B\003\340A\003\032W\n\020GCSManagedConfig\022C" - + "\n\ngcs_prefix\030\001 \001(\0132*.google.cloud.docume" - + "ntai.v1beta3.GcsPrefixB\003\340A\002\032r\n\027DocumentW" - + "arehouseConfig\022\027\n\ncollection\030\001 \001(\tB\003\340A\003\022" - + ">\n\006schema\030\002 \001(\tB.\340A\003\372A(\n&contentwarehous" - + "e.googleapis.com/Schema\032\030\n\026UnmanagedData" - + "setConfig\032\027\n\025SpannerIndexingConfig\"T\n\005St" - + "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\021\n\rUNINITIALI" - + "ZED\020\001\022\020\n\014INITIALIZING\020\002\022\017\n\013INITIALIZED\020\003" - + ":n\352Ak\n!documentai.googleapis.com/Dataset" - + "\022Fprojects/{project}/locations/{location" - + "}/processors/{processor}/datasetB\020\n\016stor" - + "age_sourceB\021\n\017indexing_source\"\206\003\n\nDocume" - + "ntId\022^\n\022gcs_managed_doc_id\030\001 \001(\0132@.googl" - + "e.cloud.documentai.v1beta3.DocumentId.GC" - + "SManagedDocumentIdH\000\022[\n\020unmanaged_doc_id" - + "\030\004 \001(\0132?.google.cloud.documentai.v1beta3" - + ".DocumentId.UnmanagedDocumentIdH\000\022B\n\014rev" - + "ision_ref\030\003 \001(\0132,.google.cloud.documenta" - + "i.v1beta3.RevisionRef\032C\n\024GCSManagedDocum" - + "entId\022\024\n\007gcs_uri\030\001 \001(\tB\003\340A\002\022\025\n\tcw_doc_id" - + "\030\002 \001(\tB\002\030\001\032*\n\023UnmanagedDocumentId\022\023\n\006doc" - + "_id\030\001 \001(\tB\003\340A\002B\006\n\004type\"\251\002\n\rDatasetSchema" - + "\022\014\n\004name\030\001 \001(\t\022M\n\017document_schema\030\003 \001(\0132" - + "/.google.cloud.documentai.v1beta3.Docume" - + "ntSchemaB\003\340A\001\022\032\n\rsatisfies_pzs\030\004 \001(\010B\003\340A" - + "\003\022\032\n\rsatisfies_pzi\030\005 \001(\010B\003\340A\003:\202\001\352A\177\n\'doc" - + "umentai.googleapis.com/DatasetSchema\022Tpr" - + "ojects/{project}/locations/{location}/pr" - + "ocessors/{processor}/dataset/datasetSche" - + "ma\"\207\002\n\025BatchDatasetDocuments\022o\n\027individu" - + "al_document_ids\030\001 \001(\0132L.google.cloud.doc" - + "umentai.v1beta3.BatchDatasetDocuments.In" - + "dividualDocumentIdsH\000\022\020\n\006filter\030\002 \001(\tH\000\032" - + "_\n\025IndividualDocumentIds\022F\n\014document_ids" - + "\030\001 \003(\0132+.google.cloud.documentai.v1beta3" - + ".DocumentIdB\003\340A\002B\n\n\010criteriaB\310\002\n#com.goo" - + "gle.cloud.documentai.v1beta3B\014DatasetPro" - + "toP\001ZCcloud.google.com/go/documentai/api" - + "v1beta3/documentaipb;documentaipb\252\002\037Goog" - + "le.Cloud.DocumentAI.V1Beta3\312\002\037Google\\Clo" - + "ud\\DocumentAI\\V1beta3\352\002\"Google::Cloud::D" - + "ocumentAI::V1beta3\352Ab\n&contentwarehouse." - + "googleapis.com/Schema\0228projects/{project" - + "}/locations/{location}/schemas/{schema}b" - + "\006proto3" + + "5google/cloud/documentai/v1beta3/document_schema.proto\"\210\007\n" + + "\007Dataset\022\\\n" + + "\022gcs_managed_config\030\003 \001(\01329.google.cloud.documentai" + + ".v1beta3.Dataset.GCSManagedConfigB\003\340A\001H\000\022l\n" + + "\031document_warehouse_config\030\005 \001(\0132@.go" + + "ogle.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfigB\005\030\001\340A\001H\000\022h\n" + + "\030unmanaged_dataset_config\030\006 \001(\0132?.google.cloud." + + "documentai.v1beta3.Dataset.UnmanagedDatasetConfigB\003\340A\001H\000\022\014\n" + + "\004name\030\001 \001(\t\022B\n" + + "\005state\030\002" + + " \001(\0162..google.cloud.documentai.v1beta3.Dataset.StateB\003\340A\002\022\032\n\r" + + "satisfies_pzs\030\010 \001(\010B\003\340A\003\022\032\n\r" + + "satisfies_pzi\030\t \001(\010B\003\340A\003\032W\n" + + "\020GCSManagedConfig\022C\n\n" + + "gcs_prefix\030\001 \001(\0132*.goo" + + "gle.cloud.documentai.v1beta3.GcsPrefixB\003\340A\002\032r\n" + + "\027DocumentWarehouseConfig\022\027\n\n" + + "collection\030\001 \001(\tB\003\340A\003\022>\n" + + "\006schema\030\002 \001(\tB.\340A\003\372A(\n" + + "&contentwarehouse.googleapis.com/Schema\032\030\n" + + "\026UnmanagedDatasetConfig\"T\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\021\n\r" + + "UNINITIALIZED\020\001\022\020\n" + + "\014INITIALIZING\020\002\022\017\n" + + "\013INITIALIZED\020\003:n\352Ak\n" + + "!documentai.googleapis.com/Dataset\022Fproject" + + "s/{project}/locations/{location}/processors/{processor}/datasetB\020\n" + + "\016storage_source\"\206\003\n\n" + + "DocumentId\022^\n" + + "\022gcs_managed_doc_id\030\001" + + " \001(\0132@.google.cloud.documentai.v1beta3.DocumentId.GCSManagedDocumentIdH\000\022[\n" + + "\020unmanaged_doc_id\030\004 \001(\0132?.google.cloud.docume" + + "ntai.v1beta3.DocumentId.UnmanagedDocumentIdH\000\022B\n" + + "\014revision_ref\030\003" + + " \001(\0132,.google.cloud.documentai.v1beta3.RevisionRef\032C\n" + + "\024GCSManagedDocumentId\022\024\n" + + "\007gcs_uri\030\001 \001(\tB\003\340A\002\022\025\n" + + "\tcw_doc_id\030\002 \001(\tB\002\030\001\032*\n" + + "\023UnmanagedDocumentId\022\023\n" + + "\006doc_id\030\001 \001(\tB\003\340A\002B\006\n" + + "\004type\"\251\002\n\r" + + "DatasetSchema\022\014\n" + + "\004name\030\001 \001(\t\022M\n" + + "\017document_schema\030\003" + + " \001(\0132/.google.cloud.documentai.v1beta3.DocumentSchemaB\003\340A\001\022\032\n\r" + + "satisfies_pzs\030\004 \001(\010B\003\340A\003\022\032\n\r" + + "satisfies_pzi\030\005 \001(\010B\003\340A\003:\202\001\352A\177\n" + + "\'documentai.googleapis.com/DatasetSchema\022Tprojects/{project}/locations/{" + + "location}/processors/{processor}/dataset/datasetSchema\"\207\002\n" + + "\025BatchDatasetDocuments\022o\n" + + "\027individual_document_ids\030\001 \001(\0132L.goog" + + "le.cloud.documentai.v1beta3.BatchDatasetDocuments.IndividualDocumentIdsH\000\022\020\n" + + "\006filter\030\002 \001(\tH\000\032_\n" + + "\025IndividualDocumentIds\022F\n" + + "\014document_ids\030\001" + + " \003(\0132+.google.cloud.documentai.v1beta3.DocumentIdB\003\340A\002B\n\n" + + "\010criteriaB\310\002\n" + + "#com.google.cloud.documentai.v1beta3B\014DatasetProtoP\001ZCcloud.google.com/go/do" + + "cumentai/apiv1beta3/documentaipb;documen" + + "taipb\252\002\037Google.Cloud.DocumentAI.V1Beta3\312" + + "\002\037Google\\Cloud\\DocumentAI\\V1beta3\352\002\"Google::Cloud::DocumentAI::V1beta3\352Ab\n" + + "&contentwarehouse.googleapis.com/Schema\0228proje" + + "cts/{project}/locations/{location}/schemas/{schema}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -180,13 +178,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GcsManagedConfig", "DocumentWarehouseConfig", "UnmanagedDatasetConfig", - "SpannerIndexingConfig", "Name", "State", "SatisfiesPzs", "SatisfiesPzi", "StorageSource", - "IndexingSource", }); internal_static_google_cloud_documentai_v1beta3_Dataset_GCSManagedConfig_descriptor = internal_static_google_cloud_documentai_v1beta3_Dataset_descriptor.getNestedType(0); @@ -210,12 +206,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_documentai_v1beta3_Dataset_UnmanagedDatasetConfig_descriptor, new java.lang.String[] {}); - internal_static_google_cloud_documentai_v1beta3_Dataset_SpannerIndexingConfig_descriptor = - internal_static_google_cloud_documentai_v1beta3_Dataset_descriptor.getNestedType(3); - internal_static_google_cloud_documentai_v1beta3_Dataset_SpannerIndexingConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_documentai_v1beta3_Dataset_SpannerIndexingConfig_descriptor, - new java.lang.String[] {}); internal_static_google_cloud_documentai_v1beta3_DocumentId_descriptor = getDescriptor().getMessageType(1); internal_static_google_cloud_documentai_v1beta3_DocumentId_fieldAccessorTable = diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Document.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Document.java index 1a3643930deb..cee047b35564 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Document.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Document.java @@ -4694,7 +4694,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.ParagraphOrBuilder getParagrap * * *
          -     * A list of detected non-text visual elements for example, checkbox,
          +     * A list of detected non-text visual elements, for example, checkbox,
                * signature etc. on the page.
                * 
          * @@ -4709,7 +4709,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.ParagraphOrBuilder getParagrap * * *
          -     * A list of detected non-text visual elements for example, checkbox,
          +     * A list of detected non-text visual elements, for example, checkbox,
                * signature etc. on the page.
                * 
          * @@ -4723,7 +4723,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.ParagraphOrBuilder getParagrap * * *
          -     * A list of detected non-text visual elements for example, checkbox,
          +     * A list of detected non-text visual elements, for example, checkbox,
                * signature etc. on the page.
                * 
          * @@ -4737,7 +4737,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.ParagraphOrBuilder getParagrap * * *
          -     * A list of detected non-text visual elements for example, checkbox,
          +     * A list of detected non-text visual elements, for example, checkbox,
                * signature etc. on the page.
                * 
          * @@ -4753,7 +4753,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.ParagraphOrBuilder getParagrap * * *
          -     * A list of detected non-text visual elements for example, checkbox,
          +     * A list of detected non-text visual elements, for example, checkbox,
                * signature etc. on the page.
                * 
          * @@ -5065,7 +5065,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedBarcode getDetectedBar * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.provenance is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=552 + * google/cloud/documentai/v1beta3/document.proto;l=553 * @return Whether the provenance field is set. */ @java.lang.Deprecated @@ -5083,7 +5083,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedBarcode getDetectedBar * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.provenance is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=552 + * google/cloud/documentai/v1beta3/document.proto;l=553 * @return The provenance. */ @java.lang.Deprecated @@ -9608,7 +9608,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage getDetectedLa * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Block.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=207 + * See google/cloud/documentai/v1beta3/document.proto;l=208 * @return Whether the provenance field is set. */ @java.lang.Deprecated @@ -9626,7 +9626,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage getDetectedLa * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Block.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=207 + * See google/cloud/documentai/v1beta3/document.proto;l=208 * @return The provenance. */ @java.lang.Deprecated @@ -9861,7 +9861,7 @@ public int getDetectedLanguagesCount() { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Block.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=207 + * See google/cloud/documentai/v1beta3/document.proto;l=208 * @return Whether the provenance field is set. */ @java.lang.Override @@ -9882,7 +9882,7 @@ public boolean hasProvenance() { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Block.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=207 + * See google/cloud/documentai/v1beta3/document.proto;l=208 * @return The provenance. */ @java.lang.Override @@ -11018,7 +11018,7 @@ public Builder removeDetectedLanguages(int index) { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Block.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=207 + * See google/cloud/documentai/v1beta3/document.proto;l=208 * @return Whether the provenance field is set. */ @java.lang.Deprecated @@ -11038,7 +11038,7 @@ public boolean hasProvenance() { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Block.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=207 + * See google/cloud/documentai/v1beta3/document.proto;l=208 * @return The provenance. */ @java.lang.Deprecated @@ -11409,7 +11409,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage getDetectedLa * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Paragraph.provenance is - * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=220 + * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=221 * @return Whether the provenance field is set. */ @java.lang.Deprecated @@ -11427,7 +11427,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage getDetectedLa * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Paragraph.provenance is - * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=220 + * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=221 * @return The provenance. */ @java.lang.Deprecated @@ -11661,7 +11661,7 @@ public int getDetectedLanguagesCount() { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Paragraph.provenance is - * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=220 + * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=221 * @return Whether the provenance field is set. */ @java.lang.Override @@ -11682,7 +11682,7 @@ public boolean hasProvenance() { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Paragraph.provenance is - * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=220 + * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=221 * @return The provenance. */ @java.lang.Override @@ -12821,7 +12821,7 @@ public Builder removeDetectedLanguages(int index) { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Paragraph.provenance is - * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=220 + * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=221 * @return Whether the provenance field is set. */ @java.lang.Deprecated @@ -12841,7 +12841,7 @@ public boolean hasProvenance() { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Paragraph.provenance is - * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=220 + * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=221 * @return The provenance. */ @java.lang.Deprecated @@ -13215,7 +13215,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage getDetectedLa * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Line.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=234 + * See google/cloud/documentai/v1beta3/document.proto;l=235 * @return Whether the provenance field is set. */ @java.lang.Deprecated @@ -13233,7 +13233,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage getDetectedLa * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Line.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=234 + * See google/cloud/documentai/v1beta3/document.proto;l=235 * @return The provenance. */ @java.lang.Deprecated @@ -13468,7 +13468,7 @@ public int getDetectedLanguagesCount() { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Line.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=234 + * See google/cloud/documentai/v1beta3/document.proto;l=235 * @return Whether the provenance field is set. */ @java.lang.Override @@ -13489,7 +13489,7 @@ public boolean hasProvenance() { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Line.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=234 + * See google/cloud/documentai/v1beta3/document.proto;l=235 * @return The provenance. */ @java.lang.Override @@ -14625,7 +14625,7 @@ public Builder removeDetectedLanguages(int index) { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Line.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=234 + * See google/cloud/documentai/v1beta3/document.proto;l=235 * @return Whether the provenance field is set. */ @java.lang.Deprecated @@ -14645,7 +14645,7 @@ public boolean hasProvenance() { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Line.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=234 + * See google/cloud/documentai/v1beta3/document.proto;l=235 * @return The provenance. */ @java.lang.Deprecated @@ -15063,7 +15063,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage getDetectedLa * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Token.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=326 + * See google/cloud/documentai/v1beta3/document.proto;l=327 * @return Whether the provenance field is set. */ @java.lang.Deprecated @@ -15081,7 +15081,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage getDetectedLa * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Token.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=326 + * See google/cloud/documentai/v1beta3/document.proto;l=327 * @return The provenance. */ @java.lang.Deprecated @@ -18871,7 +18871,7 @@ public int getDetectedLanguagesCount() { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Token.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=326 + * See google/cloud/documentai/v1beta3/document.proto;l=327 * @return Whether the provenance field is set. */ @java.lang.Override @@ -18892,7 +18892,7 @@ public boolean hasProvenance() { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Token.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=326 + * See google/cloud/documentai/v1beta3/document.proto;l=327 * @return The provenance. */ @java.lang.Override @@ -20383,7 +20383,7 @@ public Builder removeDetectedLanguages(int index) { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Token.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=326 + * See google/cloud/documentai/v1beta3/document.proto;l=327 * @return Whether the provenance field is set. */ @java.lang.Deprecated @@ -20403,7 +20403,7 @@ public boolean hasProvenance() { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Token.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=326 + * See google/cloud/documentai/v1beta3/document.proto;l=327 * @return The provenance. */ @java.lang.Deprecated @@ -22428,7 +22428,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage getDetectedLa * * *
          -     * Detected non-text visual elements, for example, checkbox, signature, etc.
          +     * Detected non-text visual elements, for example, checkbox, signature etc.
                * on the page.
                * 
          * @@ -22874,7 +22874,7 @@ protected Builder newBuilderForType( * * *
          -       * Detected non-text visual elements, for example, checkbox, signature, etc.
          +       * Detected non-text visual elements, for example, checkbox, signature etc.
                  * on the page.
                  * 
          * @@ -24194,7 +24194,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage getDetectedLa * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Table.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=395 + * See google/cloud/documentai/v1beta3/document.proto;l=396 * @return Whether the provenance field is set. */ @java.lang.Deprecated @@ -24212,7 +24212,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage getDetectedLa * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Table.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=395 + * See google/cloud/documentai/v1beta3/document.proto;l=396 * @return The provenance. */ @java.lang.Deprecated @@ -27347,7 +27347,7 @@ public int getDetectedLanguagesCount() { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Table.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=395 + * See google/cloud/documentai/v1beta3/document.proto;l=396 * @return Whether the provenance field is set. */ @java.lang.Override @@ -27368,7 +27368,7 @@ public boolean hasProvenance() { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Table.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=395 + * See google/cloud/documentai/v1beta3/document.proto;l=396 * @return The provenance. */ @java.lang.Override @@ -29502,7 +29502,7 @@ public Builder removeDetectedLanguages(int index) { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Table.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=395 + * See google/cloud/documentai/v1beta3/document.proto;l=396 * @return Whether the provenance field is set. */ @java.lang.Deprecated @@ -29522,7 +29522,7 @@ public boolean hasProvenance() { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Table.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=395 + * See google/cloud/documentai/v1beta3/document.proto;l=396 * @return The provenance. */ @java.lang.Deprecated @@ -37961,7 +37961,7 @@ public com.google.cloud.documentai.v1beta3.Document.Page.TokenOrBuilder getToken * * *
          -     * A list of detected non-text visual elements for example, checkbox,
          +     * A list of detected non-text visual elements, for example, checkbox,
                * signature etc. on the page.
                * 
          * @@ -37979,7 +37979,7 @@ public com.google.cloud.documentai.v1beta3.Document.Page.TokenOrBuilder getToken * * *
          -     * A list of detected non-text visual elements for example, checkbox,
          +     * A list of detected non-text visual elements, for example, checkbox,
                * signature etc. on the page.
                * 
          * @@ -37998,7 +37998,7 @@ public com.google.cloud.documentai.v1beta3.Document.Page.TokenOrBuilder getToken * * *
          -     * A list of detected non-text visual elements for example, checkbox,
          +     * A list of detected non-text visual elements, for example, checkbox,
                * signature etc. on the page.
                * 
          * @@ -38015,7 +38015,7 @@ public int getVisualElementsCount() { * * *
          -     * A list of detected non-text visual elements for example, checkbox,
          +     * A list of detected non-text visual elements, for example, checkbox,
                * signature etc. on the page.
                * 
          * @@ -38033,7 +38033,7 @@ public com.google.cloud.documentai.v1beta3.Document.Page.VisualElement getVisual * * *
          -     * A list of detected non-text visual elements for example, checkbox,
          +     * A list of detected non-text visual elements, for example, checkbox,
                * signature etc. on the page.
                * 
          * @@ -38458,7 +38458,7 @@ public boolean hasImageQualityScores() { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.provenance is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=552 + * google/cloud/documentai/v1beta3/document.proto;l=553 * @return Whether the provenance field is set. */ @java.lang.Override @@ -38479,7 +38479,7 @@ public boolean hasProvenance() { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.provenance is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=552 + * google/cloud/documentai/v1beta3/document.proto;l=553 * @return The provenance. */ @java.lang.Override @@ -42969,7 +42969,7 @@ private void ensureVisualElementsIsMutable() { * * *
          -       * A list of detected non-text visual elements for example, checkbox,
          +       * A list of detected non-text visual elements, for example, checkbox,
                  * signature etc. on the page.
                  * 
          * @@ -42990,7 +42990,7 @@ private void ensureVisualElementsIsMutable() { * * *
          -       * A list of detected non-text visual elements for example, checkbox,
          +       * A list of detected non-text visual elements, for example, checkbox,
                  * signature etc. on the page.
                  * 
          * @@ -43010,7 +43010,7 @@ public int getVisualElementsCount() { * * *
          -       * A list of detected non-text visual elements for example, checkbox,
          +       * A list of detected non-text visual elements, for example, checkbox,
                  * signature etc. on the page.
                  * 
          * @@ -43031,7 +43031,7 @@ public com.google.cloud.documentai.v1beta3.Document.Page.VisualElement getVisual * * *
          -       * A list of detected non-text visual elements for example, checkbox,
          +       * A list of detected non-text visual elements, for example, checkbox,
                  * signature etc. on the page.
                  * 
          * @@ -43058,7 +43058,7 @@ public Builder setVisualElements( * * *
          -       * A list of detected non-text visual elements for example, checkbox,
          +       * A list of detected non-text visual elements, for example, checkbox,
                  * signature etc. on the page.
                  * 
          * @@ -43083,7 +43083,7 @@ public Builder setVisualElements( * * *
          -       * A list of detected non-text visual elements for example, checkbox,
          +       * A list of detected non-text visual elements, for example, checkbox,
                  * signature etc. on the page.
                  * 
          * @@ -43110,7 +43110,7 @@ public Builder addVisualElements( * * *
          -       * A list of detected non-text visual elements for example, checkbox,
          +       * A list of detected non-text visual elements, for example, checkbox,
                  * signature etc. on the page.
                  * 
          * @@ -43137,7 +43137,7 @@ public Builder addVisualElements( * * *
          -       * A list of detected non-text visual elements for example, checkbox,
          +       * A list of detected non-text visual elements, for example, checkbox,
                  * signature etc. on the page.
                  * 
          * @@ -43161,7 +43161,7 @@ public Builder addVisualElements( * * *
          -       * A list of detected non-text visual elements for example, checkbox,
          +       * A list of detected non-text visual elements, for example, checkbox,
                  * signature etc. on the page.
                  * 
          * @@ -43186,7 +43186,7 @@ public Builder addVisualElements( * * *
          -       * A list of detected non-text visual elements for example, checkbox,
          +       * A list of detected non-text visual elements, for example, checkbox,
                  * signature etc. on the page.
                  * 
          * @@ -43212,7 +43212,7 @@ public Builder addAllVisualElements( * * *
          -       * A list of detected non-text visual elements for example, checkbox,
          +       * A list of detected non-text visual elements, for example, checkbox,
                  * signature etc. on the page.
                  * 
          * @@ -43235,7 +43235,7 @@ public Builder clearVisualElements() { * * *
          -       * A list of detected non-text visual elements for example, checkbox,
          +       * A list of detected non-text visual elements, for example, checkbox,
                  * signature etc. on the page.
                  * 
          * @@ -43258,7 +43258,7 @@ public Builder removeVisualElements(int index) { * * *
          -       * A list of detected non-text visual elements for example, checkbox,
          +       * A list of detected non-text visual elements, for example, checkbox,
                  * signature etc. on the page.
                  * 
          * @@ -43275,7 +43275,7 @@ public Builder removeVisualElements(int index) { * * *
          -       * A list of detected non-text visual elements for example, checkbox,
          +       * A list of detected non-text visual elements, for example, checkbox,
                  * signature etc. on the page.
                  * 
          * @@ -43296,7 +43296,7 @@ public Builder removeVisualElements(int index) { * * *
          -       * A list of detected non-text visual elements for example, checkbox,
          +       * A list of detected non-text visual elements, for example, checkbox,
                  * signature etc. on the page.
                  * 
          * @@ -43318,7 +43318,7 @@ public Builder removeVisualElements(int index) { * * *
          -       * A list of detected non-text visual elements for example, checkbox,
          +       * A list of detected non-text visual elements, for example, checkbox,
                  * signature etc. on the page.
                  * 
          * @@ -43338,7 +43338,7 @@ public Builder removeVisualElements(int index) { * * *
          -       * A list of detected non-text visual elements for example, checkbox,
          +       * A list of detected non-text visual elements, for example, checkbox,
                  * signature etc. on the page.
                  * 
          * @@ -43359,7 +43359,7 @@ public Builder removeVisualElements(int index) { * * *
          -       * A list of detected non-text visual elements for example, checkbox,
          +       * A list of detected non-text visual elements, for example, checkbox,
                  * signature etc. on the page.
                  * 
          * @@ -45233,7 +45233,7 @@ public Builder clearImageQualityScores() { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.provenance is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=552 + * google/cloud/documentai/v1beta3/document.proto;l=553 * @return Whether the provenance field is set. */ @java.lang.Deprecated @@ -45253,7 +45253,7 @@ public boolean hasProvenance() { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.provenance is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=552 + * google/cloud/documentai/v1beta3/document.proto;l=553 * @return The provenance. */ @java.lang.Deprecated @@ -45553,7 +45553,7 @@ public interface EntityOrBuilder * * *
          -     * Required. Entity type from a schema for example, `Address`.
          +     * Required. Entity type from a schema, for example, `Address`.
                * 
          * * string type = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -45566,7 +45566,7 @@ public interface EntityOrBuilder * * *
          -     * Required. Entity type from a schema for example, `Address`.
          +     * Required. Entity type from a schema, for example, `Address`.
                * 
          * * string type = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -45579,7 +45579,8 @@ public interface EntityOrBuilder * * *
          -     * Optional. Text value of the entity for example, `1600 Amphitheatre Pkwy`.
          +     * Optional. Text value of the entity, for example, `1600 Amphitheatre
          +     * Pkwy`.
                * 
          * * string mention_text = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -45592,7 +45593,8 @@ public interface EntityOrBuilder * * *
          -     * Optional. Text value of the entity for example, `1600 Amphitheatre Pkwy`.
          +     * Optional. Text value of the entity, for example, `1600 Amphitheatre
          +     * Pkwy`.
                * 
          * * string mention_text = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -45690,7 +45692,7 @@ public interface EntityOrBuilder * * *
          -     * Optional. Canonical ID. This will be a unique value in the entity list
          +     * Optional. Canonical id. This will be a unique value in the entity list
                * for this document.
                * 
          * @@ -45704,7 +45706,7 @@ public interface EntityOrBuilder * * *
          -     * Optional. Canonical ID. This will be a unique value in the entity list
          +     * Optional. Canonical id. This will be a unique value in the entity list
                * for this document.
                * 
          * @@ -49134,7 +49136,7 @@ public com.google.cloud.documentai.v1beta3.Document.TextAnchor getTextAnchor() { * * *
          -     * Required. Entity type from a schema for example, `Address`.
          +     * Required. Entity type from a schema, for example, `Address`.
                * 
          * * string type = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -49158,7 +49160,7 @@ public java.lang.String getType() { * * *
          -     * Required. Entity type from a schema for example, `Address`.
          +     * Required. Entity type from a schema, for example, `Address`.
                * 
          * * string type = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -49187,7 +49189,8 @@ public com.google.protobuf.ByteString getTypeBytes() { * * *
          -     * Optional. Text value of the entity for example, `1600 Amphitheatre Pkwy`.
          +     * Optional. Text value of the entity, for example, `1600 Amphitheatre
          +     * Pkwy`.
                * 
          * * string mention_text = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -49211,7 +49214,8 @@ public java.lang.String getMentionText() { * * *
          -     * Optional. Text value of the entity for example, `1600 Amphitheatre Pkwy`.
          +     * Optional. Text value of the entity, for example, `1600 Amphitheatre
          +     * Pkwy`.
                * 
          * * string mention_text = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -49375,7 +49379,7 @@ public com.google.cloud.documentai.v1beta3.Document.PageAnchor getPageAnchor() { * * *
          -     * Optional. Canonical ID. This will be a unique value in the entity list
          +     * Optional. Canonical id. This will be a unique value in the entity list
                * for this document.
                * 
          * @@ -49400,7 +49404,7 @@ public java.lang.String getId() { * * *
          -     * Optional. Canonical ID. This will be a unique value in the entity list
          +     * Optional. Canonical id. This will be a unique value in the entity list
                * for this document.
                * 
          * @@ -50627,7 +50631,7 @@ public Builder clearTextAnchor() { * * *
          -       * Required. Entity type from a schema for example, `Address`.
          +       * Required. Entity type from a schema, for example, `Address`.
                  * 
          * * string type = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -50650,7 +50654,7 @@ public java.lang.String getType() { * * *
          -       * Required. Entity type from a schema for example, `Address`.
          +       * Required. Entity type from a schema, for example, `Address`.
                  * 
          * * string type = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -50673,7 +50677,7 @@ public com.google.protobuf.ByteString getTypeBytes() { * * *
          -       * Required. Entity type from a schema for example, `Address`.
          +       * Required. Entity type from a schema, for example, `Address`.
                  * 
          * * string type = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -50695,7 +50699,7 @@ public Builder setType(java.lang.String value) { * * *
          -       * Required. Entity type from a schema for example, `Address`.
          +       * Required. Entity type from a schema, for example, `Address`.
                  * 
          * * string type = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -50713,7 +50717,7 @@ public Builder clearType() { * * *
          -       * Required. Entity type from a schema for example, `Address`.
          +       * Required. Entity type from a schema, for example, `Address`.
                  * 
          * * string type = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -50738,7 +50742,8 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) { * * *
          -       * Optional. Text value of the entity for example, `1600 Amphitheatre Pkwy`.
          +       * Optional. Text value of the entity, for example, `1600 Amphitheatre
          +       * Pkwy`.
                  * 
          * * string mention_text = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -50761,7 +50766,8 @@ public java.lang.String getMentionText() { * * *
          -       * Optional. Text value of the entity for example, `1600 Amphitheatre Pkwy`.
          +       * Optional. Text value of the entity, for example, `1600 Amphitheatre
          +       * Pkwy`.
                  * 
          * * string mention_text = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -50784,7 +50790,8 @@ public com.google.protobuf.ByteString getMentionTextBytes() { * * *
          -       * Optional. Text value of the entity for example, `1600 Amphitheatre Pkwy`.
          +       * Optional. Text value of the entity, for example, `1600 Amphitheatre
          +       * Pkwy`.
                  * 
          * * string mention_text = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -50806,7 +50813,8 @@ public Builder setMentionText(java.lang.String value) { * * *
          -       * Optional. Text value of the entity for example, `1600 Amphitheatre Pkwy`.
          +       * Optional. Text value of the entity, for example, `1600 Amphitheatre
          +       * Pkwy`.
                  * 
          * * string mention_text = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -50824,7 +50832,8 @@ public Builder clearMentionText() { * * *
          -       * Optional. Text value of the entity for example, `1600 Amphitheatre Pkwy`.
          +       * Optional. Text value of the entity, for example, `1600 Amphitheatre
          +       * Pkwy`.
                  * 
          * * string mention_text = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -51242,7 +51251,7 @@ public Builder clearPageAnchor() { * * *
          -       * Optional. Canonical ID. This will be a unique value in the entity list
          +       * Optional. Canonical id. This will be a unique value in the entity list
                  * for this document.
                  * 
          * @@ -51266,7 +51275,7 @@ public java.lang.String getId() { * * *
          -       * Optional. Canonical ID. This will be a unique value in the entity list
          +       * Optional. Canonical id. This will be a unique value in the entity list
                  * for this document.
                  * 
          * @@ -51290,7 +51299,7 @@ public com.google.protobuf.ByteString getIdBytes() { * * *
          -       * Optional. Canonical ID. This will be a unique value in the entity list
          +       * Optional. Canonical id. This will be a unique value in the entity list
                  * for this document.
                  * 
          * @@ -51313,7 +51322,7 @@ public Builder setId(java.lang.String value) { * * *
          -       * Optional. Canonical ID. This will be a unique value in the entity list
          +       * Optional. Canonical id. This will be a unique value in the entity list
                  * for this document.
                  * 
          * @@ -51332,7 +51341,7 @@ public Builder clearId() { * * *
          -       * Optional. Canonical ID. This will be a unique value in the entity list
          +       * Optional. Canonical id. This will be a unique value in the entity list
                  * for this document.
                  * 
          * @@ -52477,7 +52486,7 @@ public interface EntityRelationOrBuilder * * *
          -     * Subject entity ID.
          +     * Subject entity id.
                * 
          * * string subject_id = 1; @@ -52490,7 +52499,7 @@ public interface EntityRelationOrBuilder * * *
          -     * Subject entity ID.
          +     * Subject entity id.
                * 
          * * string subject_id = 1; @@ -52503,7 +52512,7 @@ public interface EntityRelationOrBuilder * * *
          -     * Object entity ID.
          +     * Object entity id.
                * 
          * * string object_id = 2; @@ -52516,7 +52525,7 @@ public interface EntityRelationOrBuilder * * *
          -     * Object entity ID.
          +     * Object entity id.
                * 
          * * string object_id = 2; @@ -52613,7 +52622,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
          -     * Subject entity ID.
          +     * Subject entity id.
                * 
          * * string subject_id = 1; @@ -52637,7 +52646,7 @@ public java.lang.String getSubjectId() { * * *
          -     * Subject entity ID.
          +     * Subject entity id.
                * 
          * * string subject_id = 1; @@ -52666,7 +52675,7 @@ public com.google.protobuf.ByteString getSubjectIdBytes() { * * *
          -     * Object entity ID.
          +     * Object entity id.
                * 
          * * string object_id = 2; @@ -52690,7 +52699,7 @@ public java.lang.String getObjectId() { * * *
          -     * Object entity ID.
          +     * Object entity id.
                * 
          * * string object_id = 2; @@ -53132,7 +53141,7 @@ public Builder mergeFrom( * * *
          -       * Subject entity ID.
          +       * Subject entity id.
                  * 
          * * string subject_id = 1; @@ -53155,7 +53164,7 @@ public java.lang.String getSubjectId() { * * *
          -       * Subject entity ID.
          +       * Subject entity id.
                  * 
          * * string subject_id = 1; @@ -53178,7 +53187,7 @@ public com.google.protobuf.ByteString getSubjectIdBytes() { * * *
          -       * Subject entity ID.
          +       * Subject entity id.
                  * 
          * * string subject_id = 1; @@ -53200,7 +53209,7 @@ public Builder setSubjectId(java.lang.String value) { * * *
          -       * Subject entity ID.
          +       * Subject entity id.
                  * 
          * * string subject_id = 1; @@ -53218,7 +53227,7 @@ public Builder clearSubjectId() { * * *
          -       * Subject entity ID.
          +       * Subject entity id.
                  * 
          * * string subject_id = 1; @@ -53243,7 +53252,7 @@ public Builder setSubjectIdBytes(com.google.protobuf.ByteString value) { * * *
          -       * Object entity ID.
          +       * Object entity id.
                  * 
          * * string object_id = 2; @@ -53266,7 +53275,7 @@ public java.lang.String getObjectId() { * * *
          -       * Object entity ID.
          +       * Object entity id.
                  * 
          * * string object_id = 2; @@ -53289,7 +53298,7 @@ public com.google.protobuf.ByteString getObjectIdBytes() { * * *
          -       * Object entity ID.
          +       * Object entity id.
                  * 
          * * string object_id = 2; @@ -53311,7 +53320,7 @@ public Builder setObjectId(java.lang.String value) { * * *
          -       * Object entity ID.
          +       * Object entity id.
                  * 
          * * string object_id = 2; @@ -53329,7 +53338,7 @@ public Builder clearObjectId() { * * *
          -       * Object entity ID.
          +       * Object entity id.
                  * 
          * * string object_id = 2; @@ -55684,7 +55693,7 @@ public interface PageRefOrBuilder * * * @deprecated google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.layout_id is - * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=778 + * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=780 * @return The layoutId. */ @java.lang.Deprecated @@ -55703,7 +55712,7 @@ public interface PageRefOrBuilder * * * @deprecated google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.layout_id is - * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=778 + * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=780 * @return The bytes for layoutId. */ @java.lang.Deprecated @@ -56230,7 +56239,7 @@ public int getLayoutTypeValue() { * * * @deprecated google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.layout_id is - * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=778 + * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=780 * @return The layoutId. */ @java.lang.Override @@ -56260,7 +56269,7 @@ public java.lang.String getLayoutId() { * * * @deprecated google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.layout_id is - * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=778 + * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=780 * @return The bytes for layoutId. */ @java.lang.Override @@ -57004,7 +57013,7 @@ public Builder clearLayoutType() { * * * @deprecated google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.layout_id is - * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=778 + * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=780 * @return The layoutId. */ @java.lang.Deprecated @@ -57033,7 +57042,7 @@ public java.lang.String getLayoutId() { * * * @deprecated google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.layout_id is - * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=778 + * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=780 * @return The bytes for layoutId. */ @java.lang.Deprecated @@ -57062,7 +57071,7 @@ public com.google.protobuf.ByteString getLayoutIdBytes() { * * * @deprecated google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.layout_id is - * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=778 + * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=780 * @param value The layoutId to set. * @return This builder for chaining. */ @@ -57090,7 +57099,7 @@ public Builder setLayoutId(java.lang.String value) { * * * @deprecated google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.layout_id is - * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=778 + * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=780 * @return This builder for chaining. */ @java.lang.Deprecated @@ -57114,7 +57123,7 @@ public Builder clearLayoutId() { * * * @deprecated google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.layout_id is - * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=778 + * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=780 * @param value The bytes for layoutId to set. * @return This builder for chaining. */ @@ -58398,7 +58407,7 @@ public interface ProvenanceOrBuilder * int32 revision = 1 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.revision is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=846 + * google/cloud/documentai/v1beta3/document.proto;l=848 * @return The revision. */ @java.lang.Deprecated @@ -58408,14 +58417,14 @@ public interface ProvenanceOrBuilder * * *
          -     * The ID of this operation.  Needs to be unique within the scope of the
          +     * The Id of this operation.  Needs to be unique within the scope of the
                * revision.
                * 
          * * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.id is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=850 + * google/cloud/documentai/v1beta3/document.proto;l=852 * @return The id. */ @java.lang.Deprecated @@ -58901,13 +58910,13 @@ public interface ParentOrBuilder * * *
          -       * The ID of the parent provenance.
          +       * The id of the parent provenance.
                  * 
          * * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.Parent.id is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=809 + * See google/cloud/documentai/v1beta3/document.proto;l=811 * @return The id. */ @java.lang.Deprecated @@ -59008,13 +59017,13 @@ public int getIndex() { * * *
          -       * The ID of the parent provenance.
          +       * The id of the parent provenance.
                  * 
          * * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.Parent.id is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=809 + * See google/cloud/documentai/v1beta3/document.proto;l=811 * @return The id. */ @java.lang.Override @@ -59509,13 +59518,13 @@ public Builder clearIndex() { * * *
          -         * The ID of the parent provenance.
          +         * The id of the parent provenance.
                    * 
          * * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.Parent.id is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=809 + * See google/cloud/documentai/v1beta3/document.proto;l=811 * @return The id. */ @java.lang.Override @@ -59528,13 +59537,13 @@ public int getId() { * * *
          -         * The ID of the parent provenance.
          +         * The id of the parent provenance.
                    * 
          * * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.Parent.id is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=809 + * See google/cloud/documentai/v1beta3/document.proto;l=811 * @param value The id to set. * @return This builder for chaining. */ @@ -59551,13 +59560,13 @@ public Builder setId(int value) { * * *
          -         * The ID of the parent provenance.
          +         * The id of the parent provenance.
                    * 
          * * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.Parent.id is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=809 + * See google/cloud/documentai/v1beta3/document.proto;l=811 * @return This builder for chaining. */ @java.lang.Deprecated @@ -59636,7 +59645,7 @@ public com.google.protobuf.Parser getParserForType() { * int32 revision = 1 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.revision is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=846 + * google/cloud/documentai/v1beta3/document.proto;l=848 * @return The revision. */ @java.lang.Override @@ -59652,14 +59661,14 @@ public int getRevision() { * * *
          -     * The ID of this operation.  Needs to be unique within the scope of the
          +     * The Id of this operation.  Needs to be unique within the scope of the
                * revision.
                * 
          * * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.id is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=850 + * google/cloud/documentai/v1beta3/document.proto;l=852 * @return The id. */ @java.lang.Override @@ -60236,7 +60245,7 @@ public Builder mergeFrom( * int32 revision = 1 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.revision is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=846 + * google/cloud/documentai/v1beta3/document.proto;l=848 * @return The revision. */ @java.lang.Override @@ -60255,7 +60264,7 @@ public int getRevision() { * int32 revision = 1 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.revision is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=846 + * google/cloud/documentai/v1beta3/document.proto;l=848 * @param value The revision to set. * @return This builder for chaining. */ @@ -60278,7 +60287,7 @@ public Builder setRevision(int value) { * int32 revision = 1 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.revision is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=846 + * google/cloud/documentai/v1beta3/document.proto;l=848 * @return This builder for chaining. */ @java.lang.Deprecated @@ -60295,14 +60304,14 @@ public Builder clearRevision() { * * *
          -       * The ID of this operation.  Needs to be unique within the scope of the
          +       * The Id of this operation.  Needs to be unique within the scope of the
                  * revision.
                  * 
          * * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.id is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=850 + * google/cloud/documentai/v1beta3/document.proto;l=852 * @return The id. */ @java.lang.Override @@ -60315,14 +60324,14 @@ public int getId() { * * *
          -       * The ID of this operation.  Needs to be unique within the scope of the
          +       * The Id of this operation.  Needs to be unique within the scope of the
                  * revision.
                  * 
          * * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.id is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=850 + * google/cloud/documentai/v1beta3/document.proto;l=852 * @param value The id to set. * @return This builder for chaining. */ @@ -60339,14 +60348,14 @@ public Builder setId(int value) { * * *
          -       * The ID of this operation.  Needs to be unique within the scope of the
          +       * The Id of this operation.  Needs to be unique within the scope of the
                  * revision.
                  * 
          * * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.id is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=850 + * google/cloud/documentai/v1beta3/document.proto;l=852 * @return This builder for chaining. */ @java.lang.Deprecated @@ -60921,7 +60930,7 @@ public interface RevisionOrBuilder * * *
          -     * If the change was made by a person specify the name or ID of that
          +     * If the change was made by a person specify the name or id of that
                * person.
                * 
          * @@ -60935,7 +60944,7 @@ public interface RevisionOrBuilder * * *
          -     * If the change was made by a person specify the name or ID of that
          +     * If the change was made by a person specify the name or id of that
                * person.
                * 
          * @@ -60949,7 +60958,7 @@ public interface RevisionOrBuilder * * *
          -     * If the change was made by a person specify the name or ID of that
          +     * If the change was made by a person specify the name or id of that
                * person.
                * 
          * @@ -61005,7 +61014,7 @@ public interface RevisionOrBuilder * * *
          -     * ID of the revision, internally generated by doc proto storage.
          +     * Id of the revision, internally generated by doc proto storage.
                * Unique within the context of the document.
                * 
          * @@ -61019,7 +61028,7 @@ public interface RevisionOrBuilder * * *
          -     * ID of the revision, internally generated by doc proto storage.
          +     * Id of the revision, internally generated by doc proto storage.
                * Unique within the context of the document.
                * 
          * @@ -61041,7 +61050,7 @@ public interface RevisionOrBuilder * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=889 + * google/cloud/documentai/v1beta3/document.proto;l=891 * @return A list containing the parent. */ @java.lang.Deprecated @@ -61059,7 +61068,7 @@ public interface RevisionOrBuilder * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=889 + * google/cloud/documentai/v1beta3/document.proto;l=891 * @return The count of parent. */ @java.lang.Deprecated @@ -61077,7 +61086,7 @@ public interface RevisionOrBuilder * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=889 + * google/cloud/documentai/v1beta3/document.proto;l=891 * @param index The index of the element to return. * @return The parent at the given index. */ @@ -61088,7 +61097,7 @@ public interface RevisionOrBuilder * * *
          -     * The revisions that this revision is based on. Must include all the IDs
          +     * The revisions that this revision is based on. Must include all the ids
                * that have anything to do with this revision - eg. there are
                * `provenance.parent.revision` fields that index into this field.
                * 
          @@ -61103,7 +61112,7 @@ public interface RevisionOrBuilder * * *
          -     * The revisions that this revision is based on. Must include all the IDs
          +     * The revisions that this revision is based on. Must include all the ids
                * that have anything to do with this revision - eg. there are
                * `provenance.parent.revision` fields that index into this field.
                * 
          @@ -61118,7 +61127,7 @@ public interface RevisionOrBuilder * * *
          -     * The revisions that this revision is based on. Must include all the IDs
          +     * The revisions that this revision is based on. Must include all the ids
                * that have anything to do with this revision - eg. there are
                * `provenance.parent.revision` fields that index into this field.
                * 
          @@ -61134,7 +61143,7 @@ public interface RevisionOrBuilder * * *
          -     * The revisions that this revision is based on. Must include all the IDs
          +     * The revisions that this revision is based on. Must include all the ids
                * that have anything to do with this revision - eg. there are
                * `provenance.parent.revision` fields that index into this field.
                * 
          @@ -62181,7 +62190,7 @@ public SourceCase getSourceCase() { * * *
          -     * If the change was made by a person specify the name or ID of that
          +     * If the change was made by a person specify the name or id of that
                * person.
                * 
          * @@ -62197,7 +62206,7 @@ public boolean hasAgent() { * * *
          -     * If the change was made by a person specify the name or ID of that
          +     * If the change was made by a person specify the name or id of that
                * person.
                * 
          * @@ -62226,7 +62235,7 @@ public java.lang.String getAgent() { * * *
          -     * If the change was made by a person specify the name or ID of that
          +     * If the change was made by a person specify the name or id of that
                * person.
                * 
          * @@ -62336,7 +62345,7 @@ public com.google.protobuf.ByteString getProcessorBytes() { * * *
          -     * ID of the revision, internally generated by doc proto storage.
          +     * Id of the revision, internally generated by doc proto storage.
                * Unique within the context of the document.
                * 
          * @@ -62361,7 +62370,7 @@ public java.lang.String getId() { * * *
          -     * ID of the revision, internally generated by doc proto storage.
          +     * Id of the revision, internally generated by doc proto storage.
                * Unique within the context of the document.
                * 
          * @@ -62399,7 +62408,7 @@ public com.google.protobuf.ByteString getIdBytes() { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=889 + * google/cloud/documentai/v1beta3/document.proto;l=891 * @return A list containing the parent. */ @java.lang.Override @@ -62420,7 +62429,7 @@ public java.util.List getParentList() { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=889 + * google/cloud/documentai/v1beta3/document.proto;l=891 * @return The count of parent. */ @java.lang.Deprecated @@ -62440,7 +62449,7 @@ public int getParentCount() { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=889 + * google/cloud/documentai/v1beta3/document.proto;l=891 * @param index The index of the element to return. * @return The parent at the given index. */ @@ -62461,7 +62470,7 @@ public int getParent(int index) { * * *
          -     * The revisions that this revision is based on. Must include all the IDs
          +     * The revisions that this revision is based on. Must include all the ids
                * that have anything to do with this revision - eg. there are
                * `provenance.parent.revision` fields that index into this field.
                * 
          @@ -62478,7 +62487,7 @@ public com.google.protobuf.ProtocolStringList getParentIdsList() { * * *
          -     * The revisions that this revision is based on. Must include all the IDs
          +     * The revisions that this revision is based on. Must include all the ids
                * that have anything to do with this revision - eg. there are
                * `provenance.parent.revision` fields that index into this field.
                * 
          @@ -62495,7 +62504,7 @@ public int getParentIdsCount() { * * *
          -     * The revisions that this revision is based on. Must include all the IDs
          +     * The revisions that this revision is based on. Must include all the ids
                * that have anything to do with this revision - eg. there are
                * `provenance.parent.revision` fields that index into this field.
                * 
          @@ -62513,7 +62522,7 @@ public java.lang.String getParentIds(int index) { * * *
          -     * The revisions that this revision is based on. Must include all the IDs
          +     * The revisions that this revision is based on. Must include all the ids
                * that have anything to do with this revision - eg. there are
                * `provenance.parent.revision` fields that index into this field.
                * 
          @@ -63218,7 +63227,7 @@ public Builder clearSource() { * * *
          -       * If the change was made by a person specify the name or ID of that
          +       * If the change was made by a person specify the name or id of that
                  * person.
                  * 
          * @@ -63235,7 +63244,7 @@ public boolean hasAgent() { * * *
          -       * If the change was made by a person specify the name or ID of that
          +       * If the change was made by a person specify the name or id of that
                  * person.
                  * 
          * @@ -63265,7 +63274,7 @@ public java.lang.String getAgent() { * * *
          -       * If the change was made by a person specify the name or ID of that
          +       * If the change was made by a person specify the name or id of that
                  * person.
                  * 
          * @@ -63295,7 +63304,7 @@ public com.google.protobuf.ByteString getAgentBytes() { * * *
          -       * If the change was made by a person specify the name or ID of that
          +       * If the change was made by a person specify the name or id of that
                  * person.
                  * 
          * @@ -63318,7 +63327,7 @@ public Builder setAgent(java.lang.String value) { * * *
          -       * If the change was made by a person specify the name or ID of that
          +       * If the change was made by a person specify the name or id of that
                  * person.
                  * 
          * @@ -63339,7 +63348,7 @@ public Builder clearAgent() { * * *
          -       * If the change was made by a person specify the name or ID of that
          +       * If the change was made by a person specify the name or id of that
                  * person.
                  * 
          * @@ -63510,7 +63519,7 @@ public Builder setProcessorBytes(com.google.protobuf.ByteString value) { * * *
          -       * ID of the revision, internally generated by doc proto storage.
          +       * Id of the revision, internally generated by doc proto storage.
                  * Unique within the context of the document.
                  * 
          * @@ -63534,7 +63543,7 @@ public java.lang.String getId() { * * *
          -       * ID of the revision, internally generated by doc proto storage.
          +       * Id of the revision, internally generated by doc proto storage.
                  * Unique within the context of the document.
                  * 
          * @@ -63558,7 +63567,7 @@ public com.google.protobuf.ByteString getIdBytes() { * * *
          -       * ID of the revision, internally generated by doc proto storage.
          +       * Id of the revision, internally generated by doc proto storage.
                  * Unique within the context of the document.
                  * 
          * @@ -63581,7 +63590,7 @@ public Builder setId(java.lang.String value) { * * *
          -       * ID of the revision, internally generated by doc proto storage.
          +       * Id of the revision, internally generated by doc proto storage.
                  * Unique within the context of the document.
                  * 
          * @@ -63600,7 +63609,7 @@ public Builder clearId() { * * *
          -       * ID of the revision, internally generated by doc proto storage.
          +       * Id of the revision, internally generated by doc proto storage.
                  * Unique within the context of the document.
                  * 
          * @@ -63641,7 +63650,7 @@ private void ensureParentIsMutable() { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=889 + * google/cloud/documentai/v1beta3/document.proto;l=891 * @return A list containing the parent. */ @java.lang.Deprecated @@ -63662,7 +63671,7 @@ public java.util.List getParentList() { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=889 + * google/cloud/documentai/v1beta3/document.proto;l=891 * @return The count of parent. */ @java.lang.Deprecated @@ -63682,7 +63691,7 @@ public int getParentCount() { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=889 + * google/cloud/documentai/v1beta3/document.proto;l=891 * @param index The index of the element to return. * @return The parent at the given index. */ @@ -63703,7 +63712,7 @@ public int getParent(int index) { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=889 + * google/cloud/documentai/v1beta3/document.proto;l=891 * @param index The index to set the value at. * @param value The parent to set. * @return This builder for chaining. @@ -63730,7 +63739,7 @@ public Builder setParent(int index, int value) { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=889 + * google/cloud/documentai/v1beta3/document.proto;l=891 * @param value The parent to add. * @return This builder for chaining. */ @@ -63756,7 +63765,7 @@ public Builder addParent(int value) { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=889 + * google/cloud/documentai/v1beta3/document.proto;l=891 * @param values The parent to add. * @return This builder for chaining. */ @@ -63781,7 +63790,7 @@ public Builder addAllParent(java.lang.Iterable valu * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=889 + * google/cloud/documentai/v1beta3/document.proto;l=891 * @return This builder for chaining. */ @java.lang.Deprecated @@ -63806,7 +63815,7 @@ private void ensureParentIdsIsMutable() { * * *
          -       * The revisions that this revision is based on. Must include all the IDs
          +       * The revisions that this revision is based on. Must include all the ids
                  * that have anything to do with this revision - eg. there are
                  * `provenance.parent.revision` fields that index into this field.
                  * 
          @@ -63824,7 +63833,7 @@ public com.google.protobuf.ProtocolStringList getParentIdsList() { * * *
          -       * The revisions that this revision is based on. Must include all the IDs
          +       * The revisions that this revision is based on. Must include all the ids
                  * that have anything to do with this revision - eg. there are
                  * `provenance.parent.revision` fields that index into this field.
                  * 
          @@ -63841,7 +63850,7 @@ public int getParentIdsCount() { * * *
          -       * The revisions that this revision is based on. Must include all the IDs
          +       * The revisions that this revision is based on. Must include all the ids
                  * that have anything to do with this revision - eg. there are
                  * `provenance.parent.revision` fields that index into this field.
                  * 
          @@ -63859,7 +63868,7 @@ public java.lang.String getParentIds(int index) { * * *
          -       * The revisions that this revision is based on. Must include all the IDs
          +       * The revisions that this revision is based on. Must include all the ids
                  * that have anything to do with this revision - eg. there are
                  * `provenance.parent.revision` fields that index into this field.
                  * 
          @@ -63877,7 +63886,7 @@ public com.google.protobuf.ByteString getParentIdsBytes(int index) { * * *
          -       * The revisions that this revision is based on. Must include all the IDs
          +       * The revisions that this revision is based on. Must include all the ids
                  * that have anything to do with this revision - eg. there are
                  * `provenance.parent.revision` fields that index into this field.
                  * 
          @@ -63903,7 +63912,7 @@ public Builder setParentIds(int index, java.lang.String value) { * * *
          -       * The revisions that this revision is based on. Must include all the IDs
          +       * The revisions that this revision is based on. Must include all the ids
                  * that have anything to do with this revision - eg. there are
                  * `provenance.parent.revision` fields that index into this field.
                  * 
          @@ -63928,7 +63937,7 @@ public Builder addParentIds(java.lang.String value) { * * *
          -       * The revisions that this revision is based on. Must include all the IDs
          +       * The revisions that this revision is based on. Must include all the ids
                  * that have anything to do with this revision - eg. there are
                  * `provenance.parent.revision` fields that index into this field.
                  * 
          @@ -63950,7 +63959,7 @@ public Builder addAllParentIds(java.lang.Iterable values) { * * *
          -       * The revisions that this revision is based on. Must include all the IDs
          +       * The revisions that this revision is based on. Must include all the ids
                  * that have anything to do with this revision - eg. there are
                  * `provenance.parent.revision` fields that index into this field.
                  * 
          @@ -63971,7 +63980,7 @@ public Builder clearParentIds() { * * *
          -       * The revisions that this revision is based on. Must include all the IDs
          +       * The revisions that this revision is based on. Must include all the ids
                  * that have anything to do with this revision - eg. there are
                  * `provenance.parent.revision` fields that index into this field.
                  * 
          @@ -77600,7 +77609,7 @@ public interface LayoutImageBlockOrBuilder * * *
          -         * Optional. Asset ID of the inline image. If set, find the image
          +         * Optional. Asset id of the inline image. If set, find the image
                    * content in the blob_assets field.
                    * 
          * @@ -77614,7 +77623,7 @@ public interface LayoutImageBlockOrBuilder * * *
          -         * Optional. Asset ID of the inline image. If set, find the image
          +         * Optional. Asset id of the inline image. If set, find the image
                    * content in the blob_assets field.
                    * 
          * @@ -77628,7 +77637,7 @@ public interface LayoutImageBlockOrBuilder * * *
          -         * Optional. Asset ID of the inline image. If set, find the image
          +         * Optional. Asset id of the inline image. If set, find the image
                    * content in the blob_assets field.
                    * 
          * @@ -77642,7 +77651,7 @@ public interface LayoutImageBlockOrBuilder * * *
          -         * Optional. Google Cloud Storage URI of the image.
          +         * Optional. Google Cloud Storage uri of the image.
                    * 
          * * string gcs_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -77655,7 +77664,7 @@ public interface LayoutImageBlockOrBuilder * * *
          -         * Optional. Google Cloud Storage URI of the image.
          +         * Optional. Google Cloud Storage uri of the image.
                    * 
          * * string gcs_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -77668,7 +77677,7 @@ public interface LayoutImageBlockOrBuilder * * *
          -         * Optional. Google Cloud Storage URI of the image.
          +         * Optional. Google Cloud Storage uri of the image.
                    * 
          * * string gcs_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -77681,11 +77690,11 @@ public interface LayoutImageBlockOrBuilder * * *
          -         * Optional. Data URI of the image.
          +         * Optional. Data uri of the image.
                    * It is composed of four parts: a prefix (data:), a MIME type
                    * indicating the type of data, an optional base64 token if
                    * non-textual, and the data itself:
          -         * data:[<mediatype>][;base64],<data>.
          +         * data:[<mediatype>][;base64],<data>
                    * 
          * * string data_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -77698,11 +77707,11 @@ public interface LayoutImageBlockOrBuilder * * *
          -         * Optional. Data URI of the image.
          +         * Optional. Data uri of the image.
                    * It is composed of four parts: a prefix (data:), a MIME type
                    * indicating the type of data, an optional base64 token if
                    * non-textual, and the data itself:
          -         * data:[<mediatype>][;base64],<data>.
          +         * data:[<mediatype>][;base64],<data>
                    * 
          * * string data_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -77715,11 +77724,11 @@ public interface LayoutImageBlockOrBuilder * * *
          -         * Optional. Data URI of the image.
          +         * Optional. Data uri of the image.
                    * It is composed of four parts: a prefix (data:), a MIME type
                    * indicating the type of data, an optional base64 token if
                    * non-textual, and the data itself:
          -         * data:[<mediatype>][;base64],<data>.
          +         * data:[<mediatype>][;base64],<data>
                    * 
          * * string data_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -77939,7 +77948,7 @@ public ImageSourceCase getImageSourceCase() { * * *
          -         * Optional. Asset ID of the inline image. If set, find the image
          +         * Optional. Asset id of the inline image. If set, find the image
                    * content in the blob_assets field.
                    * 
          * @@ -77955,7 +77964,7 @@ public boolean hasBlobAssetId() { * * *
          -         * Optional. Asset ID of the inline image. If set, find the image
          +         * Optional. Asset id of the inline image. If set, find the image
                    * content in the blob_assets field.
                    * 
          * @@ -77984,7 +77993,7 @@ public java.lang.String getBlobAssetId() { * * *
          -         * Optional. Asset ID of the inline image. If set, find the image
          +         * Optional. Asset id of the inline image. If set, find the image
                    * content in the blob_assets field.
                    * 
          * @@ -78015,7 +78024,7 @@ public com.google.protobuf.ByteString getBlobAssetIdBytes() { * * *
          -         * Optional. Google Cloud Storage URI of the image.
          +         * Optional. Google Cloud Storage uri of the image.
                    * 
          * * string gcs_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -78030,7 +78039,7 @@ public boolean hasGcsUri() { * * *
          -         * Optional. Google Cloud Storage URI of the image.
          +         * Optional. Google Cloud Storage uri of the image.
                    * 
          * * string gcs_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -78058,7 +78067,7 @@ public java.lang.String getGcsUri() { * * *
          -         * Optional. Google Cloud Storage URI of the image.
          +         * Optional. Google Cloud Storage uri of the image.
                    * 
          * * string gcs_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -78088,11 +78097,11 @@ public com.google.protobuf.ByteString getGcsUriBytes() { * * *
          -         * Optional. Data URI of the image.
          +         * Optional. Data uri of the image.
                    * It is composed of four parts: a prefix (data:), a MIME type
                    * indicating the type of data, an optional base64 token if
                    * non-textual, and the data itself:
          -         * data:[<mediatype>][;base64],<data>.
          +         * data:[<mediatype>][;base64],<data>
                    * 
          * * string data_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -78107,11 +78116,11 @@ public boolean hasDataUri() { * * *
          -         * Optional. Data URI of the image.
          +         * Optional. Data uri of the image.
                    * It is composed of four parts: a prefix (data:), a MIME type
                    * indicating the type of data, an optional base64 token if
                    * non-textual, and the data itself:
          -         * data:[<mediatype>][;base64],<data>.
          +         * data:[<mediatype>][;base64],<data>
                    * 
          * * string data_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -78139,11 +78148,11 @@ public java.lang.String getDataUri() { * * *
          -         * Optional. Data URI of the image.
          +         * Optional. Data uri of the image.
                    * It is composed of four parts: a prefix (data:), a MIME type
                    * indicating the type of data, an optional base64 token if
                    * non-textual, and the data itself:
          -         * data:[<mediatype>][;base64],<data>.
          +         * data:[<mediatype>][;base64],<data>
                    * 
          * * string data_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -78899,7 +78908,7 @@ public Builder clearImageSource() { * * *
          -           * Optional. Asset ID of the inline image. If set, find the image
          +           * Optional. Asset id of the inline image. If set, find the image
                      * content in the blob_assets field.
                      * 
          * @@ -78916,7 +78925,7 @@ public boolean hasBlobAssetId() { * * *
          -           * Optional. Asset ID of the inline image. If set, find the image
          +           * Optional. Asset id of the inline image. If set, find the image
                      * content in the blob_assets field.
                      * 
          * @@ -78946,7 +78955,7 @@ public java.lang.String getBlobAssetId() { * * *
          -           * Optional. Asset ID of the inline image. If set, find the image
          +           * Optional. Asset id of the inline image. If set, find the image
                      * content in the blob_assets field.
                      * 
          * @@ -78976,7 +78985,7 @@ public com.google.protobuf.ByteString getBlobAssetIdBytes() { * * *
          -           * Optional. Asset ID of the inline image. If set, find the image
          +           * Optional. Asset id of the inline image. If set, find the image
                      * content in the blob_assets field.
                      * 
          * @@ -78999,7 +79008,7 @@ public Builder setBlobAssetId(java.lang.String value) { * * *
          -           * Optional. Asset ID of the inline image. If set, find the image
          +           * Optional. Asset id of the inline image. If set, find the image
                      * content in the blob_assets field.
                      * 
          * @@ -79020,7 +79029,7 @@ public Builder clearBlobAssetId() { * * *
          -           * Optional. Asset ID of the inline image. If set, find the image
          +           * Optional. Asset id of the inline image. If set, find the image
                      * content in the blob_assets field.
                      * 
          * @@ -79044,7 +79053,7 @@ public Builder setBlobAssetIdBytes(com.google.protobuf.ByteString value) { * * *
          -           * Optional. Google Cloud Storage URI of the image.
          +           * Optional. Google Cloud Storage uri of the image.
                      * 
          * * string gcs_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -79060,7 +79069,7 @@ public boolean hasGcsUri() { * * *
          -           * Optional. Google Cloud Storage URI of the image.
          +           * Optional. Google Cloud Storage uri of the image.
                      * 
          * * string gcs_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -79089,7 +79098,7 @@ public java.lang.String getGcsUri() { * * *
          -           * Optional. Google Cloud Storage URI of the image.
          +           * Optional. Google Cloud Storage uri of the image.
                      * 
          * * string gcs_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -79118,7 +79127,7 @@ public com.google.protobuf.ByteString getGcsUriBytes() { * * *
          -           * Optional. Google Cloud Storage URI of the image.
          +           * Optional. Google Cloud Storage uri of the image.
                      * 
          * * string gcs_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -79140,7 +79149,7 @@ public Builder setGcsUri(java.lang.String value) { * * *
          -           * Optional. Google Cloud Storage URI of the image.
          +           * Optional. Google Cloud Storage uri of the image.
                      * 
          * * string gcs_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -79160,7 +79169,7 @@ public Builder clearGcsUri() { * * *
          -           * Optional. Google Cloud Storage URI of the image.
          +           * Optional. Google Cloud Storage uri of the image.
                      * 
          * * string gcs_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -79183,11 +79192,11 @@ public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { * * *
          -           * Optional. Data URI of the image.
          +           * Optional. Data uri of the image.
                      * It is composed of four parts: a prefix (data:), a MIME type
                      * indicating the type of data, an optional base64 token if
                      * non-textual, and the data itself:
          -           * data:[<mediatype>][;base64],<data>.
          +           * data:[<mediatype>][;base64],<data>
                      * 
          * * string data_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -79203,11 +79212,11 @@ public boolean hasDataUri() { * * *
          -           * Optional. Data URI of the image.
          +           * Optional. Data uri of the image.
                      * It is composed of four parts: a prefix (data:), a MIME type
                      * indicating the type of data, an optional base64 token if
                      * non-textual, and the data itself:
          -           * data:[<mediatype>][;base64],<data>.
          +           * data:[<mediatype>][;base64],<data>
                      * 
          * * string data_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -79236,11 +79245,11 @@ public java.lang.String getDataUri() { * * *
          -           * Optional. Data URI of the image.
          +           * Optional. Data uri of the image.
                      * It is composed of four parts: a prefix (data:), a MIME type
                      * indicating the type of data, an optional base64 token if
                      * non-textual, and the data itself:
          -           * data:[<mediatype>][;base64],<data>.
          +           * data:[<mediatype>][;base64],<data>
                      * 
          * * string data_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -79269,11 +79278,11 @@ public com.google.protobuf.ByteString getDataUriBytes() { * * *
          -           * Optional. Data URI of the image.
          +           * Optional. Data uri of the image.
                      * It is composed of four parts: a prefix (data:), a MIME type
                      * indicating the type of data, an optional base64 token if
                      * non-textual, and the data itself:
          -           * data:[<mediatype>][;base64],<data>.
          +           * data:[<mediatype>][;base64],<data>
                      * 
          * * string data_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -79295,11 +79304,11 @@ public Builder setDataUri(java.lang.String value) { * * *
          -           * Optional. Data URI of the image.
          +           * Optional. Data uri of the image.
                      * It is composed of four parts: a prefix (data:), a MIME type
                      * indicating the type of data, an optional base64 token if
                      * non-textual, and the data itself:
          -           * data:[<mediatype>][;base64],<data>.
          +           * data:[<mediatype>][;base64],<data>
                      * 
          * * string data_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -79319,11 +79328,11 @@ public Builder clearDataUri() { * * *
          -           * Optional. Data URI of the image.
          +           * Optional. Data uri of the image.
                      * It is composed of four parts: a prefix (data:), a MIME type
                      * indicating the type of data, an optional base64 token if
                      * non-textual, and the data itself:
          -           * data:[<mediatype>][;base64],<data>.
          +           * data:[<mediatype>][;base64],<data>
                      * 
          * * string data_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -86978,7 +86987,7 @@ public interface ImageChunkFieldOrBuilder * * *
          -         * Optional. Asset ID of the inline image. If set, find the image
          +         * Optional. Asset id of the inline image. If set, find the image
                    * content in the blob_assets field.
                    * 
          * @@ -86992,7 +87001,7 @@ public interface ImageChunkFieldOrBuilder * * *
          -         * Optional. Asset ID of the inline image. If set, find the image
          +         * Optional. Asset id of the inline image. If set, find the image
                    * content in the blob_assets field.
                    * 
          * @@ -87006,7 +87015,7 @@ public interface ImageChunkFieldOrBuilder * * *
          -         * Optional. Asset ID of the inline image. If set, find the image
          +         * Optional. Asset id of the inline image. If set, find the image
                    * content in the blob_assets field.
                    * 
          * @@ -87020,7 +87029,7 @@ public interface ImageChunkFieldOrBuilder * * *
          -         * Optional. Google Cloud Storage URI of the image.
          +         * Optional. Google Cloud Storage uri of the image.
                    * 
          * * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -87033,7 +87042,7 @@ public interface ImageChunkFieldOrBuilder * * *
          -         * Optional. Google Cloud Storage URI of the image.
          +         * Optional. Google Cloud Storage uri of the image.
                    * 
          * * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -87046,7 +87055,7 @@ public interface ImageChunkFieldOrBuilder * * *
          -         * Optional. Google Cloud Storage URI of the image.
          +         * Optional. Google Cloud Storage uri of the image.
                    * 
          * * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -87059,11 +87068,11 @@ public interface ImageChunkFieldOrBuilder * * *
          -         * Optional. Data URI of the image.
          +         * Optional. Data uri of the image.
                    * It is composed of four parts: a prefix (data:), a MIME type
                    * indicating the type of data, an optional base64 token if
                    * non-textual, and the data itself:
          -         * data:[<mediatype>][;base64],<data>.
          +         * data:[<mediatype>][;base64],<data>
                    * 
          * * string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -87076,11 +87085,11 @@ public interface ImageChunkFieldOrBuilder * * *
          -         * Optional. Data URI of the image.
          +         * Optional. Data uri of the image.
                    * It is composed of four parts: a prefix (data:), a MIME type
                    * indicating the type of data, an optional base64 token if
                    * non-textual, and the data itself:
          -         * data:[<mediatype>][;base64],<data>.
          +         * data:[<mediatype>][;base64],<data>
                    * 
          * * string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -87093,11 +87102,11 @@ public interface ImageChunkFieldOrBuilder * * *
          -         * Optional. Data URI of the image.
          +         * Optional. Data uri of the image.
                    * It is composed of four parts: a prefix (data:), a MIME type
                    * indicating the type of data, an optional base64 token if
                    * non-textual, and the data itself:
          -         * data:[<mediatype>][;base64],<data>.
          +         * data:[<mediatype>][;base64],<data>
                    * 
          * * string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -87258,7 +87267,7 @@ public ImageSourceCase getImageSourceCase() { * * *
          -         * Optional. Asset ID of the inline image. If set, find the image
          +         * Optional. Asset id of the inline image. If set, find the image
                    * content in the blob_assets field.
                    * 
          * @@ -87274,7 +87283,7 @@ public boolean hasBlobAssetId() { * * *
          -         * Optional. Asset ID of the inline image. If set, find the image
          +         * Optional. Asset id of the inline image. If set, find the image
                    * content in the blob_assets field.
                    * 
          * @@ -87303,7 +87312,7 @@ public java.lang.String getBlobAssetId() { * * *
          -         * Optional. Asset ID of the inline image. If set, find the image
          +         * Optional. Asset id of the inline image. If set, find the image
                    * content in the blob_assets field.
                    * 
          * @@ -87334,7 +87343,7 @@ public com.google.protobuf.ByteString getBlobAssetIdBytes() { * * *
          -         * Optional. Google Cloud Storage URI of the image.
          +         * Optional. Google Cloud Storage uri of the image.
                    * 
          * * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -87349,7 +87358,7 @@ public boolean hasGcsUri() { * * *
          -         * Optional. Google Cloud Storage URI of the image.
          +         * Optional. Google Cloud Storage uri of the image.
                    * 
          * * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -87377,7 +87386,7 @@ public java.lang.String getGcsUri() { * * *
          -         * Optional. Google Cloud Storage URI of the image.
          +         * Optional. Google Cloud Storage uri of the image.
                    * 
          * * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -87407,11 +87416,11 @@ public com.google.protobuf.ByteString getGcsUriBytes() { * * *
          -         * Optional. Data URI of the image.
          +         * Optional. Data uri of the image.
                    * It is composed of four parts: a prefix (data:), a MIME type
                    * indicating the type of data, an optional base64 token if
                    * non-textual, and the data itself:
          -         * data:[<mediatype>][;base64],<data>.
          +         * data:[<mediatype>][;base64],<data>
                    * 
          * * string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -87426,11 +87435,11 @@ public boolean hasDataUri() { * * *
          -         * Optional. Data URI of the image.
          +         * Optional. Data uri of the image.
                    * It is composed of four parts: a prefix (data:), a MIME type
                    * indicating the type of data, an optional base64 token if
                    * non-textual, and the data itself:
          -         * data:[<mediatype>][;base64],<data>.
          +         * data:[<mediatype>][;base64],<data>
                    * 
          * * string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -87458,11 +87467,11 @@ public java.lang.String getDataUri() { * * *
          -         * Optional. Data URI of the image.
          +         * Optional. Data uri of the image.
                    * It is composed of four parts: a prefix (data:), a MIME type
                    * indicating the type of data, an optional base64 token if
                    * non-textual, and the data itself:
          -         * data:[<mediatype>][;base64],<data>.
          +         * data:[<mediatype>][;base64],<data>
                    * 
          * * string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -88047,7 +88056,7 @@ public Builder clearImageSource() { * * *
          -           * Optional. Asset ID of the inline image. If set, find the image
          +           * Optional. Asset id of the inline image. If set, find the image
                      * content in the blob_assets field.
                      * 
          * @@ -88064,7 +88073,7 @@ public boolean hasBlobAssetId() { * * *
          -           * Optional. Asset ID of the inline image. If set, find the image
          +           * Optional. Asset id of the inline image. If set, find the image
                      * content in the blob_assets field.
                      * 
          * @@ -88094,7 +88103,7 @@ public java.lang.String getBlobAssetId() { * * *
          -           * Optional. Asset ID of the inline image. If set, find the image
          +           * Optional. Asset id of the inline image. If set, find the image
                      * content in the blob_assets field.
                      * 
          * @@ -88124,7 +88133,7 @@ public com.google.protobuf.ByteString getBlobAssetIdBytes() { * * *
          -           * Optional. Asset ID of the inline image. If set, find the image
          +           * Optional. Asset id of the inline image. If set, find the image
                      * content in the blob_assets field.
                      * 
          * @@ -88147,7 +88156,7 @@ public Builder setBlobAssetId(java.lang.String value) { * * *
          -           * Optional. Asset ID of the inline image. If set, find the image
          +           * Optional. Asset id of the inline image. If set, find the image
                      * content in the blob_assets field.
                      * 
          * @@ -88168,7 +88177,7 @@ public Builder clearBlobAssetId() { * * *
          -           * Optional. Asset ID of the inline image. If set, find the image
          +           * Optional. Asset id of the inline image. If set, find the image
                      * content in the blob_assets field.
                      * 
          * @@ -88192,7 +88201,7 @@ public Builder setBlobAssetIdBytes(com.google.protobuf.ByteString value) { * * *
          -           * Optional. Google Cloud Storage URI of the image.
          +           * Optional. Google Cloud Storage uri of the image.
                      * 
          * * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -88208,7 +88217,7 @@ public boolean hasGcsUri() { * * *
          -           * Optional. Google Cloud Storage URI of the image.
          +           * Optional. Google Cloud Storage uri of the image.
                      * 
          * * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -88237,7 +88246,7 @@ public java.lang.String getGcsUri() { * * *
          -           * Optional. Google Cloud Storage URI of the image.
          +           * Optional. Google Cloud Storage uri of the image.
                      * 
          * * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -88266,7 +88275,7 @@ public com.google.protobuf.ByteString getGcsUriBytes() { * * *
          -           * Optional. Google Cloud Storage URI of the image.
          +           * Optional. Google Cloud Storage uri of the image.
                      * 
          * * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -88288,7 +88297,7 @@ public Builder setGcsUri(java.lang.String value) { * * *
          -           * Optional. Google Cloud Storage URI of the image.
          +           * Optional. Google Cloud Storage uri of the image.
                      * 
          * * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -88308,7 +88317,7 @@ public Builder clearGcsUri() { * * *
          -           * Optional. Google Cloud Storage URI of the image.
          +           * Optional. Google Cloud Storage uri of the image.
                      * 
          * * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -88331,11 +88340,11 @@ public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { * * *
          -           * Optional. Data URI of the image.
          +           * Optional. Data uri of the image.
                      * It is composed of four parts: a prefix (data:), a MIME type
                      * indicating the type of data, an optional base64 token if
                      * non-textual, and the data itself:
          -           * data:[<mediatype>][;base64],<data>.
          +           * data:[<mediatype>][;base64],<data>
                      * 
          * * string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -88351,11 +88360,11 @@ public boolean hasDataUri() { * * *
          -           * Optional. Data URI of the image.
          +           * Optional. Data uri of the image.
                      * It is composed of four parts: a prefix (data:), a MIME type
                      * indicating the type of data, an optional base64 token if
                      * non-textual, and the data itself:
          -           * data:[<mediatype>][;base64],<data>.
          +           * data:[<mediatype>][;base64],<data>
                      * 
          * * string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -88384,11 +88393,11 @@ public java.lang.String getDataUri() { * * *
          -           * Optional. Data URI of the image.
          +           * Optional. Data uri of the image.
                      * It is composed of four parts: a prefix (data:), a MIME type
                      * indicating the type of data, an optional base64 token if
                      * non-textual, and the data itself:
          -           * data:[<mediatype>][;base64],<data>.
          +           * data:[<mediatype>][;base64],<data>
                      * 
          * * string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -88417,11 +88426,11 @@ public com.google.protobuf.ByteString getDataUriBytes() { * * *
          -           * Optional. Data URI of the image.
          +           * Optional. Data uri of the image.
                      * It is composed of four parts: a prefix (data:), a MIME type
                      * indicating the type of data, an optional base64 token if
                      * non-textual, and the data itself:
          -           * data:[<mediatype>][;base64],<data>.
          +           * data:[<mediatype>][;base64],<data>
                      * 
          * * string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -88443,11 +88452,11 @@ public Builder setDataUri(java.lang.String value) { * * *
          -           * Optional. Data URI of the image.
          +           * Optional. Data uri of the image.
                      * It is composed of four parts: a prefix (data:), a MIME type
                      * indicating the type of data, an optional base64 token if
                      * non-textual, and the data itself:
          -           * data:[<mediatype>][;base64],<data>.
          +           * data:[<mediatype>][;base64],<data>
                      * 
          * * string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -88467,11 +88476,11 @@ public Builder clearDataUri() { * * *
          -           * Optional. Data URI of the image.
          +           * Optional. Data uri of the image.
                      * It is composed of four parts: a prefix (data:), a MIME type
                      * indicating the type of data, an optional base64 token if
                      * non-textual, and the data itself:
          -           * data:[<mediatype>][;base64],<data>.
          +           * data:[<mediatype>][;base64],<data>
                      * 
          * * string data_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -95075,7 +95084,7 @@ public interface BlobAssetOrBuilder * * *
          -     * Optional. The ID of the blob asset.
          +     * Optional. The id of the blob asset.
                * 
          * * string asset_id = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -95088,7 +95097,7 @@ public interface BlobAssetOrBuilder * * *
          -     * Optional. The ID of the blob asset.
          +     * Optional. The id of the blob asset.
                * 
          * * string asset_id = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -95203,7 +95212,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
          -     * Optional. The ID of the blob asset.
          +     * Optional. The id of the blob asset.
                * 
          * * string asset_id = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -95227,7 +95236,7 @@ public java.lang.String getAssetId() { * * *
          -     * Optional. The ID of the blob asset.
          +     * Optional. The id of the blob asset.
                * 
          * * string asset_id = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -95688,7 +95697,7 @@ public Builder mergeFrom( * * *
          -       * Optional. The ID of the blob asset.
          +       * Optional. The id of the blob asset.
                  * 
          * * string asset_id = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -95711,7 +95720,7 @@ public java.lang.String getAssetId() { * * *
          -       * Optional. The ID of the blob asset.
          +       * Optional. The id of the blob asset.
                  * 
          * * string asset_id = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -95734,7 +95743,7 @@ public com.google.protobuf.ByteString getAssetIdBytes() { * * *
          -       * Optional. The ID of the blob asset.
          +       * Optional. The id of the blob asset.
                  * 
          * * string asset_id = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -95756,7 +95765,7 @@ public Builder setAssetId(java.lang.String value) { * * *
          -       * Optional. The ID of the blob asset.
          +       * Optional. The id of the blob asset.
                  * 
          * * string asset_id = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -95774,7 +95783,7 @@ public Builder clearAssetId() { * * *
          -       * Optional. The ID of the blob asset.
          +       * Optional. The id of the blob asset.
                  * 
          * * string asset_id = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -96175,7 +96184,7 @@ public interface ValidationResultOrBuilder * * *
          -       * The name of the validation rule.
          +       * The display name of the validation rule.
                  * 
          * * string rule_name = 1; @@ -96188,7 +96197,7 @@ public interface ValidationResultOrBuilder * * *
          -       * The name of the validation rule.
          +       * The display name of the validation rule.
                  * 
          * * string rule_name = 1; @@ -96571,7 +96580,7 @@ private ValidationResultType(int value) { * * *
          -       * The name of the validation rule.
          +       * The display name of the validation rule.
                  * 
          * * string rule_name = 1; @@ -96595,7 +96604,7 @@ public java.lang.String getRuleName() { * * *
          -       * The name of the validation rule.
          +       * The display name of the validation rule.
                  * 
          * * string rule_name = 1; @@ -97214,7 +97223,7 @@ public Builder mergeFrom( * * *
          -         * The name of the validation rule.
          +         * The display name of the validation rule.
                    * 
          * * string rule_name = 1; @@ -97237,7 +97246,7 @@ public java.lang.String getRuleName() { * * *
          -         * The name of the validation rule.
          +         * The display name of the validation rule.
                    * 
          * * string rule_name = 1; @@ -97260,7 +97269,7 @@ public com.google.protobuf.ByteString getRuleNameBytes() { * * *
          -         * The name of the validation rule.
          +         * The display name of the validation rule.
                    * 
          * * string rule_name = 1; @@ -97282,7 +97291,7 @@ public Builder setRuleName(java.lang.String value) { * * *
          -         * The name of the validation rule.
          +         * The display name of the validation rule.
                    * 
          * * string rule_name = 1; @@ -97300,7 +97309,7 @@ public Builder clearRuleName() { * * *
          -         * The name of the validation rule.
          +         * The display name of the validation rule.
                    * 
          * * string rule_name = 1; @@ -98812,7 +98821,7 @@ public interface EntitiesRevisionOrBuilder * * *
          -     * The revision ID.
          +     * The revision id.
                * 
          * * string revision_id = 1; @@ -98825,7 +98834,7 @@ public interface EntitiesRevisionOrBuilder * * *
          -     * The revision ID.
          +     * The revision id.
                * 
          * * string revision_id = 1; @@ -98933,6 +98942,49 @@ public interface EntitiesRevisionOrBuilder */ com.google.cloud.documentai.v1beta3.Document.EntityValidationOutputOrBuilder getEntityValidationOutputOrBuilder(); + + /** + * + * + *
          +     * Optional. The history of this revision.
          +     * 
          + * + * + * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the provenance field is set. + */ + boolean hasProvenance(); + + /** + * + * + *
          +     * Optional. The history of this revision.
          +     * 
          + * + * + * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The provenance. + */ + com.google.cloud.documentai.v1beta3.Document.Provenance getProvenance(); + + /** + * + * + *
          +     * Optional. The history of this revision.
          +     * 
          + * + * + * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.documentai.v1beta3.Document.ProvenanceOrBuilder getProvenanceOrBuilder(); } /** @@ -98995,7 +99047,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
          -     * The revision ID.
          +     * The revision id.
                * 
          * * string revision_id = 1; @@ -99019,7 +99071,7 @@ public java.lang.String getRevisionId() { * * *
          -     * The revision ID.
          +     * The revision id.
                * 
          * * string revision_id = 1; @@ -99178,6 +99230,66 @@ public boolean hasEntityValidationOutput() { : entityValidationOutput_; } + public static final int PROVENANCE_FIELD_NUMBER = 4; + private com.google.cloud.documentai.v1beta3.Document.Provenance provenance_; + + /** + * + * + *
          +     * Optional. The history of this revision.
          +     * 
          + * + * + * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the provenance field is set. + */ + @java.lang.Override + public boolean hasProvenance() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +     * Optional. The history of this revision.
          +     * 
          + * + * + * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The provenance. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Document.Provenance getProvenance() { + return provenance_ == null + ? com.google.cloud.documentai.v1beta3.Document.Provenance.getDefaultInstance() + : provenance_; + } + + /** + * + * + *
          +     * Optional. The history of this revision.
          +     * 
          + * + * + * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Document.ProvenanceOrBuilder + getProvenanceOrBuilder() { + return provenance_ == null + ? com.google.cloud.documentai.v1beta3.Document.Provenance.getDefaultInstance() + : provenance_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -99201,6 +99313,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getEntityValidationOutput()); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getProvenance()); + } getUnknownFields().writeTo(output); } @@ -99221,6 +99336,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 3, getEntityValidationOutput()); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getProvenance()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -99243,6 +99361,10 @@ public boolean equals(final java.lang.Object obj) { if (hasEntityValidationOutput()) { if (!getEntityValidationOutput().equals(other.getEntityValidationOutput())) return false; } + if (hasProvenance() != other.hasProvenance()) return false; + if (hasProvenance()) { + if (!getProvenance().equals(other.getProvenance())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -99264,6 +99386,10 @@ public int hashCode() { hash = (37 * hash) + ENTITY_VALIDATION_OUTPUT_FIELD_NUMBER; hash = (53 * hash) + getEntityValidationOutput().hashCode(); } + if (hasProvenance()) { + hash = (37 * hash) + PROVENANCE_FIELD_NUMBER; + hash = (53 * hash) + getProvenance().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -99408,6 +99534,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetEntitiesFieldBuilder(); internalGetEntityValidationOutputFieldBuilder(); + internalGetProvenanceFieldBuilder(); } } @@ -99428,6 +99555,11 @@ public Builder clear() { entityValidationOutputBuilder_.dispose(); entityValidationOutputBuilder_ = null; } + provenance_ = null; + if (provenanceBuilder_ != null) { + provenanceBuilder_.dispose(); + provenanceBuilder_ = null; + } return this; } @@ -99491,6 +99623,11 @@ private void buildPartial0( : entityValidationOutputBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.provenance_ = + provenanceBuilder_ == null ? provenance_ : provenanceBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -99544,6 +99681,9 @@ public Builder mergeFrom( if (other.hasEntityValidationOutput()) { mergeEntityValidationOutput(other.getEntityValidationOutput()); } + if (other.hasProvenance()) { + mergeProvenance(other.getProvenance()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -99598,6 +99738,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + input.readMessage( + internalGetProvenanceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -99623,7 +99770,7 @@ public Builder mergeFrom( * * *
          -       * The revision ID.
          +       * The revision id.
                  * 
          * * string revision_id = 1; @@ -99646,7 +99793,7 @@ public java.lang.String getRevisionId() { * * *
          -       * The revision ID.
          +       * The revision id.
                  * 
          * * string revision_id = 1; @@ -99669,7 +99816,7 @@ public com.google.protobuf.ByteString getRevisionIdBytes() { * * *
          -       * The revision ID.
          +       * The revision id.
                  * 
          * * string revision_id = 1; @@ -99691,7 +99838,7 @@ public Builder setRevisionId(java.lang.String value) { * * *
          -       * The revision ID.
          +       * The revision id.
                  * 
          * * string revision_id = 1; @@ -99709,7 +99856,7 @@ public Builder clearRevisionId() { * * *
          -       * The revision ID.
          +       * The revision id.
                  * 
          * * string revision_id = 1; @@ -100328,6 +100475,223 @@ public Builder clearEntityValidationOutput() { return entityValidationOutputBuilder_; } + private com.google.cloud.documentai.v1beta3.Document.Provenance provenance_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.documentai.v1beta3.Document.Provenance, + com.google.cloud.documentai.v1beta3.Document.Provenance.Builder, + com.google.cloud.documentai.v1beta3.Document.ProvenanceOrBuilder> + provenanceBuilder_; + + /** + * + * + *
          +       * Optional. The history of this revision.
          +       * 
          + * + * + * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the provenance field is set. + */ + public boolean hasProvenance() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
          +       * Optional. The history of this revision.
          +       * 
          + * + * + * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The provenance. + */ + public com.google.cloud.documentai.v1beta3.Document.Provenance getProvenance() { + if (provenanceBuilder_ == null) { + return provenance_ == null + ? com.google.cloud.documentai.v1beta3.Document.Provenance.getDefaultInstance() + : provenance_; + } else { + return provenanceBuilder_.getMessage(); + } + } + + /** + * + * + *
          +       * Optional. The history of this revision.
          +       * 
          + * + * + * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProvenance(com.google.cloud.documentai.v1beta3.Document.Provenance value) { + if (provenanceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + provenance_ = value; + } else { + provenanceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +       * Optional. The history of this revision.
          +       * 
          + * + * + * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProvenance( + com.google.cloud.documentai.v1beta3.Document.Provenance.Builder builderForValue) { + if (provenanceBuilder_ == null) { + provenance_ = builderForValue.build(); + } else { + provenanceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +       * Optional. The history of this revision.
          +       * 
          + * + * + * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeProvenance( + com.google.cloud.documentai.v1beta3.Document.Provenance value) { + if (provenanceBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && provenance_ != null + && provenance_ + != com.google.cloud.documentai.v1beta3.Document.Provenance.getDefaultInstance()) { + getProvenanceBuilder().mergeFrom(value); + } else { + provenance_ = value; + } + } else { + provenanceBuilder_.mergeFrom(value); + } + if (provenance_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
          +       * Optional. The history of this revision.
          +       * 
          + * + * + * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearProvenance() { + bitField0_ = (bitField0_ & ~0x00000008); + provenance_ = null; + if (provenanceBuilder_ != null) { + provenanceBuilder_.dispose(); + provenanceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +       * Optional. The history of this revision.
          +       * 
          + * + * + * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.documentai.v1beta3.Document.Provenance.Builder + getProvenanceBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetProvenanceFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +       * Optional. The history of this revision.
          +       * 
          + * + * + * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.documentai.v1beta3.Document.ProvenanceOrBuilder + getProvenanceOrBuilder() { + if (provenanceBuilder_ != null) { + return provenanceBuilder_.getMessageOrBuilder(); + } else { + return provenance_ == null + ? com.google.cloud.documentai.v1beta3.Document.Provenance.getDefaultInstance() + : provenance_; + } + } + + /** + * + * + *
          +       * Optional. The history of this revision.
          +       * 
          + * + * + * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.documentai.v1beta3.Document.Provenance, + com.google.cloud.documentai.v1beta3.Document.Provenance.Builder, + com.google.cloud.documentai.v1beta3.Document.ProvenanceOrBuilder> + internalGetProvenanceFieldBuilder() { + if (provenanceBuilder_ == null) { + provenanceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.documentai.v1beta3.Document.Provenance, + com.google.cloud.documentai.v1beta3.Document.Provenance.Builder, + com.google.cloud.documentai.v1beta3.Document.ProvenanceOrBuilder>( + getProvenance(), getParentForChildren(), isClean()); + provenance_ = null; + } + return provenanceBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.Document.EntitiesRevision) } @@ -101737,7 +102101,7 @@ public com.google.cloud.documentai.v1beta3.Document.EntitiesRevision getEntities * The entity revision ID that `document.entities` field is based on. * If this field is set and `entities_revisions` is not empty, the entities in * `document.entities` field are the entities in the entity revision with this - * ID and `document.entity_validation_output` field is the + * id and `document.entity_validation_output` field is the * `entity_validation_output` field in this entity revision. * * @@ -101765,7 +102129,7 @@ public java.lang.String getEntitiesRevisionId() { * The entity revision ID that `document.entities` field is based on. * If this field is set and `entities_revisions` is not empty, the entities in * `document.entities` field are the entities in the entity revision with this - * ID and `document.entity_validation_output` field is the + * id and `document.entity_validation_output` field is the * `entity_validation_output` field in this entity revision. * * @@ -108020,7 +108384,7 @@ public Builder removeEntitiesRevisions(int index) { * The entity revision ID that `document.entities` field is based on. * If this field is set and `entities_revisions` is not empty, the entities in * `document.entities` field are the entities in the entity revision with this - * ID and `document.entity_validation_output` field is the + * id and `document.entity_validation_output` field is the * `entity_validation_output` field in this entity revision. * * @@ -108047,7 +108411,7 @@ public java.lang.String getEntitiesRevisionId() { * The entity revision ID that `document.entities` field is based on. * If this field is set and `entities_revisions` is not empty, the entities in * `document.entities` field are the entities in the entity revision with this - * ID and `document.entity_validation_output` field is the + * id and `document.entity_validation_output` field is the * `entity_validation_output` field in this entity revision. * * @@ -108074,7 +108438,7 @@ public com.google.protobuf.ByteString getEntitiesRevisionIdBytes() { * The entity revision ID that `document.entities` field is based on. * If this field is set and `entities_revisions` is not empty, the entities in * `document.entities` field are the entities in the entity revision with this - * ID and `document.entity_validation_output` field is the + * id and `document.entity_validation_output` field is the * `entity_validation_output` field in this entity revision. * * @@ -108100,7 +108464,7 @@ public Builder setEntitiesRevisionId(java.lang.String value) { * The entity revision ID that `document.entities` field is based on. * If this field is set and `entities_revisions` is not empty, the entities in * `document.entities` field are the entities in the entity revision with this - * ID and `document.entity_validation_output` field is the + * id and `document.entity_validation_output` field is the * `entity_validation_output` field in this entity revision. * * @@ -108122,7 +108486,7 @@ public Builder clearEntitiesRevisionId() { * The entity revision ID that `document.entities` field is based on. * If this field is set and `entities_revisions` is not empty, the entities in * `document.entities` field are the entities in the entity revision with this - * ID and `document.entity_validation_output` field is the + * id and `document.entity_validation_output` field is the * `entity_validation_output` field in this entity revision. * * diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiDocumentSchema.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiDocumentSchema.java index 1bced38eae69..8e3ef2614479 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiDocumentSchema.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiDocumentSchema.java @@ -85,67 +85,93 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n5google/cloud/documentai/v1beta3/docume" - + "nt_schema.proto\022\037google.cloud.documentai" - + ".v1beta3\"\254\002\n\016SummaryOptions\022F\n\006length\030\001 " - + "\001(\01626.google.cloud.documentai.v1beta3.Su" - + "mmaryOptions.Length\022F\n\006format\030\002 \001(\01626.go" - + "ogle.cloud.documentai.v1beta3.SummaryOpt" - + "ions.Format\"L\n\006Length\022\026\n\022LENGTH_UNSPECIF" - + "IED\020\000\022\t\n\005BRIEF\020\001\022\014\n\010MODERATE\020\002\022\021\n\rCOMPRE" - + "HENSIVE\020\003\"<\n\006Format\022\026\n\022FORMAT_UNSPECIFIE" - + "D\020\000\022\r\n\tPARAGRAPH\020\001\022\013\n\007BULLETS\020\002\"c\n\027Field" - + "ExtractionMetadata\022H\n\017summary_options\030\002 " - + "\001(\0132/.google.cloud.documentai.v1beta3.Su" - + "mmaryOptions\"\201\001\n\020PropertyMetadata\022\020\n\010ina" - + "ctive\030\003 \001(\010\022[\n\031field_extraction_metadata" - + "\030\t \001(\01328.google.cloud.documentai.v1beta3" - + ".FieldExtractionMetadata\"&\n\022EntityTypeMe" - + "tadata\022\020\n\010inactive\030\005 \001(\010\"\270\n\n\016DocumentSch" - + "ema\022\024\n\014display_name\030\001 \001(\t\022\023\n\013description" - + "\030\002 \001(\t\022P\n\014entity_types\030\003 \003(\0132:.google.cl" - + "oud.documentai.v1beta3.DocumentSchema.En" - + "tityType\022J\n\010metadata\030\004 \001(\01328.google.clou" - + "d.documentai.v1beta3.DocumentSchema.Meta" - + "data\032\305\007\n\nEntityType\022\\\n\013enum_values\030\016 \001(\013" - + "2E.google.cloud.documentai.v1beta3.Docum" - + "entSchema.EntityType.EnumValuesH\000\022\024\n\014dis" - + "play_name\030\r \001(\t\022\014\n\004name\030\001 \001(\t\022\023\n\013descrip" - + "tion\030\017 \001(\t\022\022\n\nbase_types\030\002 \003(\t\022W\n\nproper" - + "ties\030\006 \003(\0132C.google.cloud.documentai.v1b" - + "eta3.DocumentSchema.EntityType.Property\022" - + "Q\n\024entity_type_metadata\030\013 \001(\01323.google.c" - + "loud.documentai.v1beta3.EntityTypeMetada" - + "ta\032\034\n\nEnumValues\022\016\n\006values\030\001 \003(\t\032\261\004\n\010Pro" - + "perty\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\007 \001(\t" - + "\022\024\n\014display_name\030\006 \001(\t\022\022\n\nvalue_type\030\002 \001" - + "(\t\022k\n\017occurrence_type\030\003 \001(\0162R.google.clo" - + "ud.documentai.v1beta3.DocumentSchema.Ent" - + "ityType.Property.OccurrenceType\022Z\n\006metho" - + "d\030\010 \001(\0162J.google.cloud.documentai.v1beta" - + "3.DocumentSchema.EntityType.Property.Met" - + "hod\022L\n\021property_metadata\030\005 \001(\01321.google." - + "cloud.documentai.v1beta3.PropertyMetadat" - + "a\"\205\001\n\016OccurrenceType\022\037\n\033OCCURRENCE_TYPE_" - + "UNSPECIFIED\020\000\022\021\n\rOPTIONAL_ONCE\020\001\022\025\n\021OPTI" - + "ONAL_MULTIPLE\020\002\022\021\n\rREQUIRED_ONCE\020\003\022\025\n\021RE" - + "QUIRED_MULTIPLE\020\004\"9\n\006Method\022\026\n\022METHOD_UN" - + "SPECIFIED\020\000\022\013\n\007EXTRACT\020\001\022\n\n\006DERIVE\020\002B\016\n\014" - + "value_source\032\224\001\n\010Metadata\022\031\n\021document_sp" - + "litter\030\001 \001(\010\022&\n\036document_allow_multiple_" - + "labels\030\002 \001(\010\022%\n\035prefixed_naming_on_prope" - + "rties\030\006 \001(\010\022\036\n\026skip_naming_validation\030\007 " - + "\001(\010B\357\001\n#com.google.cloud.documentai.v1be" - + "ta3B\030DocumentAiDocumentSchemaP\001ZCcloud.g" - + "oogle.com/go/documentai/apiv1beta3/docum" - + "entaipb;documentaipb\252\002\037Google.Cloud.Docu" - + "mentAI.V1Beta3\312\002\037Google\\Cloud\\DocumentAI" - + "\\V1beta3\352\002\"Google::Cloud::DocumentAI::V1" - + "beta3b\006proto3" + "\n" + + "5google/cloud/documentai/v1beta3/document_schema.proto\022\037google.cloud.documentai" + + ".v1beta3\032\037google/api/field_behavior.proto\"\254\002\n" + + "\016SummaryOptions\022F\n" + + "\006length\030\001 \001(\01626.g" + + "oogle.cloud.documentai.v1beta3.SummaryOptions.Length\022F\n" + + "\006format\030\002 \001(\01626.google.cl" + + "oud.documentai.v1beta3.SummaryOptions.Format\"L\n" + + "\006Length\022\026\n" + + "\022LENGTH_UNSPECIFIED\020\000\022\t\n" + + "\005BRIEF\020\001\022\014\n" + + "\010MODERATE\020\002\022\021\n\r" + + "COMPREHENSIVE\020\003\"<\n" + + "\006Format\022\026\n" + + "\022FORMAT_UNSPECIFIED\020\000\022\r\n" + + "\tPARAGRAPH\020\001\022\013\n" + + "\007BULLETS\020\002\"c\n" + + "\027FieldExtractionMetadata\022H\n" + + "\017summary_options\030\002 \001(\0132/.g" + + "oogle.cloud.documentai.v1beta3.SummaryOptions\"\201\001\n" + + "\020PropertyMetadata\022\020\n" + + "\010inactive\030\003 \001(\010\022[\n" + + "\031field_extraction_metadata\030\t \001(\0132" + + "8.google.cloud.documentai.v1beta3.FieldExtractionMetadata\"&\n" + + "\022EntityTypeMetadata\022\020\n" + + "\010inactive\030\005 \001(\010\"\326\n\n" + + "\016DocumentSchema\022\024\n" + + "\014display_name\030\001 \001(\t\022\023\n" + + "\013description\030\002 \001(\t\022P\n" + + "\014entity_types\030\003 \003(\0132:.google.cloud.doc" + + "umentai.v1beta3.DocumentSchema.EntityType\022J\n" + + "\010metadata\030\004" + + " \001(\01328.google.cloud.documentai.v1beta3.DocumentSchema.Metadata\022\034\n" + + "\017document_prompt\030\005 \001(\tB\003\340A\001\032\305\007\n\n" + + "EntityType\022\\\n" + + "\013enum_values\030\016 \001(\0132E.google.cloud.d" + + "ocumentai.v1beta3.DocumentSchema.EntityType.EnumValuesH\000\022\024\n" + + "\014display_name\030\r" + + " \001(\t\022\014\n" + + "\004name\030\001 \001(\t\022\023\n" + + "\013description\030\017 \001(\t\022\022\n\n" + + "base_types\030\002 \003(\t\022W\n\n" + + "properties\030\006 \003(\0132C.goog" + + "le.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property\022Q\n" + + "\024entity_type_metadata\030\013" + + " \001(\01323.google.cloud.documentai.v1beta3.EntityTypeMetadata\032\034\n\n" + + "EnumValues\022\016\n" + + "\006values\030\001 \003(\t\032\261\004\n" + + "\010Property\022\014\n" + + "\004name\030\001 \001(\t\022\023\n" + + "\013description\030\007 \001(\t\022\024\n" + + "\014display_name\030\006 \001(\t\022\022\n\n" + + "value_type\030\002 \001(\t\022k\n" + + "\017occurrence_type\030\003 \001(\0162R.google.cloud.documentai.v1b" + + "eta3.DocumentSchema.EntityType.Property.OccurrenceType\022Z\n" + + "\006method\030\010 \001(\0162J.google." + + "cloud.documentai.v1beta3.DocumentSchema.EntityType.Property.Method\022L\n" + + "\021property_metadata\030\005" + + " \001(\01321.google.cloud.documentai.v1beta3.PropertyMetadata\"\205\001\n" + + "\016OccurrenceType\022\037\n" + + "\033OCCURRENCE_TYPE_UNSPECIFIED\020\000\022\021\n\r" + + "OPTIONAL_ONCE\020\001\022\025\n" + + "\021OPTIONAL_MULTIPLE\020\002\022\021\n\r" + + "REQUIRED_ONCE\020\003\022\025\n" + + "\021REQUIRED_MULTIPLE\020\004\"9\n" + + "\006Method\022\026\n" + + "\022METHOD_UNSPECIFIED\020\000\022\013\n" + + "\007EXTRACT\020\001\022\n\n" + + "\006DERIVE\020\002B\016\n" + + "\014value_source\032\224\001\n" + + "\010Metadata\022\031\n" + + "\021document_splitter\030\001 \001(\010\022&\n" + + "\036document_allow_multiple_labels\030\002 \001(\010\022%\n" + + "\035prefixed_naming_on_properties\030\006 \001(\010\022\036\n" + + "\026skip_naming_validation\030\007 \001(\010B\357\001\n" + + "#com.google.cloud.documentai.v1beta3B\030DocumentAiDo" + + "cumentSchemaP\001ZCcloud.google.com/go/documentai/apiv1beta3/documentaipb;documenta" + + "ipb\252\002\037Google.Cloud.DocumentAI.V1Beta3\312\002\037" + + "Google\\Cloud\\DocumentAI\\V1beta3\352\002\"Google" + + "::Cloud::DocumentAI::V1beta3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); internal_static_google_cloud_documentai_v1beta3_SummaryOptions_descriptor = getDescriptor().getMessageType(0); internal_static_google_cloud_documentai_v1beta3_SummaryOptions_fieldAccessorTable = @@ -184,7 +210,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_documentai_v1beta3_DocumentSchema_descriptor, new java.lang.String[] { - "DisplayName", "Description", "EntityTypes", "Metadata", + "DisplayName", "Description", "EntityTypes", "Metadata", "DocumentPrompt", }); internal_static_google_cloud_documentai_v1beta3_DocumentSchema_EntityType_descriptor = internal_static_google_cloud_documentai_v1beta3_DocumentSchema_descriptor.getNestedType(0); @@ -237,6 +263,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SkipNamingValidation", }); descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiDocumentService.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiDocumentService.java index 397883dd747f..17c6dfb3386d 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiDocumentService.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiDocumentService.java @@ -149,12 +149,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"s\n" + "\036UpdateDatasetOperationMetadata\022Q\n" + "\017common_metadata\030\001 \001(\01328.google.cloud.doc" - + "umentai.v1beta3.CommonOperationMetadata\"\337\004\n" + + "umentai.v1beta3.CommonOperationMetadata\"\373\004\n" + "\026ImportDocumentsRequest\022:\n" + "\007dataset\030\001 \001(\tB)\340A\002\372A#\n" + "!documentai.googleapis.com/Dataset\022\177\n" + "\036batch_documents_import_configs\030\004 \003(\0132R.google.cloud.documentai.v1beta3" - + ".ImportDocumentsRequest.BatchDocumentsImportConfigB\003\340A\002\032\207\003\n" + + ".ImportDocumentsRequest.BatchDocumentsImportConfigB\003\340A\002\032\243\003\n" + "\032BatchDocumentsImportConfig\022J\n\r" + "dataset_split\030\002 \001(\01621.google.c" + "loud.documentai.v1beta3.DatasetSplitTypeH\000\022\177\n" @@ -162,18 +162,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "loud.documentai.v1beta3.ImportDocumentsR" + "equest.BatchDocumentsImportConfig.AutoSplitConfigH\000\022V\n" + "\022batch_input_config\030\001 \001(\0132" - + ":.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig\032/\n" + + ":.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig\022\032\n\r" + + "document_type\030\006 \001(\tB\003\340A\001\032/\n" + "\017AutoSplitConfig\022\034\n" + "\024training_split_ratio\030\001 \001(\002B\023\n" + "\021split_type_config\"\031\n" + "\027ImportDocumentsResponse\"\200\005\n" + "\027ImportDocumentsMetadata\022Q\n" - + "\017common_metadata\030\001" - + " \001(\01328.google.cloud.documentai.v1beta3.CommonOperationMetadata\022s\n" - + "\032individual_import_statuses\030\002 \003(\0132O.google.cloud.d" - + "ocumentai.v1beta3.ImportDocumentsMetadata.IndividualImportStatus\022\177\n" - + " import_config_validation_results\030\004 \003(\0132U.google.clou" - + "d.documentai.v1beta3.ImportDocumentsMetadata.ImportConfigValidationResult\022\034\n" + + "\017common_metadata\030\001 \001(\01328." + + "google.cloud.documentai.v1beta3.CommonOperationMetadata\022s\n" + + "\032individual_import_statuses\030\002 \003(\0132O.google.cloud.documentai.v1" + + "beta3.ImportDocumentsMetadata.IndividualImportStatus\022\177\n" + + " import_config_validation_results\030\004 \003(\0132U.google.cloud.documentai" + + ".v1beta3.ImportDocumentsMetadata.ImportConfigValidationResult\022\034\n" + "\024total_document_count\030\003 \001(\005\032\237\001\n" + "\026IndividualImportStatus\022\030\n" + "\020input_gcs_source\030\001 \001(\t\022\"\n" @@ -201,21 +202,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021return_total_size\030\006 \001(\010B\003\340A\001\022\021\n" + "\004skip\030\010 \001(\005B\003\340A\001\"\222\001\n" + "\025ListDocumentsResponse\022L\n" - + "\021document_metadata\030\001" - + " \003(\01321.google.cloud.documentai.v1beta3.DocumentMetadata\022\027\n" + + "\021document_metadata\030\001 \003(\01321.goog" + + "le.cloud.documentai.v1beta3.DocumentMetadata\022\027\n" + "\017next_page_token\030\002 \001(\t\022\022\n\n" + "total_size\030\003 \001(\005\"\213\001\n" + "\033BatchDeleteDocumentsRequest\022\024\n" + "\007dataset\030\001 \001(\tB\003\340A\002\022V\n" - + "\021dataset_documents\030\003 \001(\01326.google.cloud.do" - + "cumentai.v1beta3.BatchDatasetDocumentsB\003\340A\002\"\036\n" + + "\021dataset_documents\030\003" + + " \001(\01326.google.cloud.documentai.v1beta3.BatchDatasetDocumentsB\003\340A\002\"\036\n" + "\034BatchDeleteDocumentsResponse\"\271\003\n" + "\034BatchDeleteDocumentsMetadata\022Q\n" - + "\017common_metadata\030\001" - + " \001(\01328.google.cloud.documentai.v1beta3.CommonOperationMetadata\022\203\001\n" - + " individual_batch_delete_statuses\030\002 \003(\0132Y.goo" - + "gle.cloud.documentai.v1beta3.BatchDelete" - + "DocumentsMetadata.IndividualBatchDeleteStatus\022\034\n" + + "\017common_metadata\030\001 \001(" + + "\01328.google.cloud.documentai.v1beta3.CommonOperationMetadata\022\203\001\n" + + " individual_batch_delete_statuses\030\002 \003(\0132Y.google.cloud.do" + + "cumentai.v1beta3.BatchDeleteDocumentsMetadata.IndividualBatchDeleteStatus\022\034\n" + "\024total_document_count\030\003 \001(\005\022\034\n" + "\024error_document_count\030\004 \001(\005\032\203\001\n" + "\033IndividualBatchDeleteStatus\022@\n" @@ -226,20 +226,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\'documentai.googleapis.com/DatasetSchema\022\033\n" + "\023visible_fields_only\030\002 \001(\010\"\232\001\n" + "\032UpdateDatasetSchemaRequest\022K\n" - + "\016dataset_schema\030\001" - + " \001(\0132..google.cloud.documentai.v1beta3.DatasetSchemaB\003\340A\002\022/\n" + + "\016dataset_schema\030\001 \001(" + + "\0132..google.cloud.documentai.v1beta3.DatasetSchemaB\003\340A\002\022/\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"/\n" + "\021DocumentPageRange\022\r\n" + "\005start\030\001 \001(\005\022\013\n" + "\003end\030\002 \001(\005\"\227\002\n" + "\020DocumentMetadata\022@\n" - + "\013document_id\030\001" - + " \001(\0132+.google.cloud.documentai.v1beta3.DocumentId\022\022\n\n" + + "\013document_id\030\001 \001(\0132+.goo" + + "gle.cloud.documentai.v1beta3.DocumentId\022\022\n\n" + "page_count\030\002 \001(\005\022G\n" - + "\014dataset_type\030\003" - + " \001(\01621.google.cloud.documentai.v1beta3.DatasetSplitType\022N\n" - + "\016labeling_state\030\005" - + " \001(\01626.google.cloud.documentai.v1beta3.DocumentLabelingState\022\024\n" + + "\014dataset_type\030\003 \001(" + + "\01621.google.cloud.documentai.v1beta3.DatasetSplitType\022N\n" + + "\016labeling_state\030\005 \001(\01626.g" + + "oogle.cloud.documentai.v1beta3.DocumentLabelingState\022\024\n" + "\014display_name\030\006 \001(\t*\205\001\n" + "\020DatasetSplitType\022\"\n" + "\036DATASET_SPLIT_TYPE_UNSPECIFIED\020\000\022\027\n" @@ -252,47 +252,47 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022DOCUMENT_UNLABELED\020\002\022\031\n" + "\025DOCUMENT_AUTO_LABELED\020\0032\263\016\n" + "\017DocumentService\022\376\001\n\r" - + "UpdateDataset\0225.google.cloud.documentai.v1beta3.Updat" - + "eDatasetRequest\032\035.google.longrunning.Operation\"\226\001\312A)\n" - + "\007Dataset\022\036UpdateDatasetOper" - + "ationMetadata\332A\023dataset,update_mask\202\323\344\223\002" - + "N2C/v1beta3/{dataset.name=projects/*/loc" - + "ations/*/processors/*/dataset}:\007dataset\022\204\002\n" - + "\017ImportDocuments\0227.google.cloud.docum" - + "entai.v1beta3.ImportDocumentsRequest\032\035.google.longrunning.Operation\"\230\001\312A2\n" - + "\027ImportDocumentsResponse\022\027ImportDocumentsMetad" - + "ata\332A\007dataset\202\323\344\223\002S\"N/v1beta3/{dataset=p" - + "rojects/*/locations/*/processors/*/dataset}:importDocuments:\001*\022\326\001\n" - + "\013GetDocument\0223.google.cloud.documentai.v1beta3.GetDocu" - + "mentRequest\0324.google.cloud.documentai.v1" - + "beta3.GetDocumentResponse\"\\\332A\007dataset\202\323\344" - + "\223\002L\022J/v1beta3/{dataset=projects/*/locati" - + "ons/*/processors/*/dataset}:getDocument\022\341\001\n\r" - + "ListDocuments\0225.google.cloud.documentai.v1beta3.ListDocumentsRequest\0326.googl" - + "e.cloud.documentai.v1beta3.ListDocuments" - + "Response\"a\332A\007dataset\202\323\344\223\002Q\"L/v1beta3/{da" - + "taset=projects/*/locations/*/processors/*/dataset}:listDocuments:\001*\022\235\002\n" - + "\024BatchDeleteDocuments\022<.google.cloud.documentai.v" - + "1beta3.BatchDeleteDocumentsRequest\032\035.google.longrunning.Operation\"\247\001\312A<\n" - + "\034BatchDeleteDocumentsResponse\022\034BatchDeleteDocume" - + "ntsMetadata\332A\007dataset\202\323\344\223\002X\"S/v1beta3/{d" - + "ataset=projects/*/locations/*/processors/*/dataset}:batchDeleteDocuments:\001*\022\326\001\n" - + "\020GetDatasetSchema\0228.google.cloud.document" - + "ai.v1beta3.GetDatasetSchemaRequest\032..google.cloud.documentai.v1beta3.DatasetSche" - + "ma\"X\332A\004name\202\323\344\223\002K\022I/v1beta3/{name=projec" - + "ts/*/locations/*/processors/*/dataset/datasetSchema}\022\222\002\n" - + "\023UpdateDatasetSchema\022;.google.cloud.documentai.v1beta3.UpdateDat" - + "asetSchemaRequest\032..google.cloud.documen" - + "tai.v1beta3.DatasetSchema\"\215\001\332A\032dataset_s" - + "chema,update_mask\202\323\344\223\002j2X/v1beta3/{datas" - + "et_schema.name=projects/*/locations/*/processors/*/dataset/datasetSchema}:\016datas" - + "et_schema\032M\312A\031documentai.googleapis.com\322" - + "A.https://www.googleapis.com/auth/cloud-platformB\360\001\n" - + "#com.google.cloud.documentai.v1beta3B\031DocumentAiDocumentServiceP\001ZCc" - + "loud.google.com/go/documentai/apiv1beta3" - + "/documentaipb;documentaipb\252\002\037Google.Clou" - + "d.DocumentAI.V1Beta3\312\002\037Google\\Cloud\\Docu" - + "mentAI\\V1beta3\352\002\"Google::Cloud::DocumentAI::V1beta3b\006proto3" + + "UpdateDataset\0225.google.cloud.documentai.v1beta3.UpdateDatasetRequ" + + "est\032\035.google.longrunning.Operation\"\226\001\312A)\n" + + "\007Dataset\022\036UpdateDatasetOperationMetadat" + + "a\332A\023dataset,update_mask\202\323\344\223\002N2C/v1beta3/" + + "{dataset.name=projects/*/locations/*/processors/*/dataset}:\007dataset\022\204\002\n" + + "\017ImportDocuments\0227.google.cloud.documentai.v1beta" + + "3.ImportDocumentsRequest\032\035.google.longrunning.Operation\"\230\001\312A2\n" + + "\027ImportDocumentsResponse\022\027ImportDocumentsMetadata\332A\007datase" + + "t\202\323\344\223\002S\"N/v1beta3/{dataset=projects/*/lo" + + "cations/*/processors/*/dataset}:importDocuments:\001*\022\326\001\n" + + "\013GetDocument\0223.google.cloud.documentai.v1beta3.GetDocumentRequest\032" + + "4.google.cloud.documentai.v1beta3.GetDoc" + + "umentResponse\"\\\332A\007dataset\202\323\344\223\002L\022J/v1beta" + + "3/{dataset=projects/*/locations/*/processors/*/dataset}:getDocument\022\341\001\n\r" + + "ListDocuments\0225.google.cloud.documentai.v1beta3." + + "ListDocumentsRequest\0326.google.cloud.docu" + + "mentai.v1beta3.ListDocumentsResponse\"a\332A" + + "\007dataset\202\323\344\223\002Q\"L/v1beta3/{dataset=projec" + + "ts/*/locations/*/processors/*/dataset}:listDocuments:\001*\022\235\002\n" + + "\024BatchDeleteDocuments\022<.google.cloud.documentai.v1beta3.Batch" + + "DeleteDocumentsRequest\032\035.google.longrunning.Operation\"\247\001\312A<\n" + + "\034BatchDeleteDocumentsResponse\022\034BatchDeleteDocumentsMetadata\332" + + "A\007dataset\202\323\344\223\002X\"S/v1beta3/{dataset=proje" + + "cts/*/locations/*/processors/*/dataset}:batchDeleteDocuments:\001*\022\326\001\n" + + "\020GetDatasetSchema\0228.google.cloud.documentai.v1beta3.G" + + "etDatasetSchemaRequest\032..google.cloud.do" + + "cumentai.v1beta3.DatasetSchema\"X\332A\004name\202" + + "\323\344\223\002K\022I/v1beta3/{name=projects/*/locatio" + + "ns/*/processors/*/dataset/datasetSchema}\022\222\002\n" + + "\023UpdateDatasetSchema\022;.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRe" + + "quest\032..google.cloud.documentai.v1beta3." + + "DatasetSchema\"\215\001\332A\032dataset_schema,update" + + "_mask\202\323\344\223\002j2X/v1beta3/{dataset_schema.na" + + "me=projects/*/locations/*/processors/*/d" + + "ataset/datasetSchema}:\016dataset_schema\032M\312" + + "A\031documentai.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\360\001\n" + + "#com.google.cloud.documentai.v1beta3B\031DocumentAiDocumentServiceP\001ZCcloud.google." + + "com/go/documentai/apiv1beta3/documentaip" + + "b;documentaipb\252\002\037Google.Cloud.DocumentAI" + + ".V1Beta3\312\002\037Google\\Cloud\\DocumentAI\\V1bet" + + "a3\352\002\"Google::Cloud::DocumentAI::V1beta3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -341,7 +341,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_documentai_v1beta3_ImportDocumentsRequest_BatchDocumentsImportConfig_descriptor, new java.lang.String[] { - "DatasetSplit", "AutoSplitConfig", "BatchInputConfig", "SplitTypeConfig", + "DatasetSplit", + "AutoSplitConfig", + "BatchInputConfig", + "DocumentType", + "SplitTypeConfig", }); internal_static_google_cloud_documentai_v1beta3_ImportDocumentsRequest_BatchDocumentsImportConfig_AutoSplitConfig_descriptor = internal_static_google_cloud_documentai_v1beta3_ImportDocumentsRequest_BatchDocumentsImportConfig_descriptor diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiEvaluation.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiEvaluation.java index fe43f0a6ea8d..2b7a5ed2c8b2 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiEvaluation.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiEvaluation.java @@ -64,6 +64,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_documentai_v1beta3_Evaluation_MultiConfidenceMetrics_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_documentai_v1beta3_Evaluation_MultiConfidenceMetrics_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_documentai_v1beta3_Evaluation_EvaluationRevision_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_documentai_v1beta3_Evaluation_EvaluationRevision_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_documentai_v1beta3_Evaluation_EvaluationRevision_EntityMetricsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_documentai_v1beta3_Evaluation_EvaluationRevision_EntityMetricsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_documentai_v1beta3_Evaluation_EntityMetricsEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -77,77 +85,83 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n" - + "0google/cloud/documentai/v1beta3/evaluation.proto\022\037google.cloud.documentai.v1be" + "\n0google/cloud/documentai/v1beta3/evalua" + + "tion.proto\022\037google.cloud.documentai.v1be" + "ta3\032\037google/api/field_behavior.proto\032\031go" - + "ogle/api/resource.proto\032\037google/protobuf/timestamp.proto\"\215\002\n" - + "\023EvaluationReference\022\021\n" - + "\toperation\030\001 \001(\t\022=\n\n" - + "evaluation\030\002 \001(\tB)\372A&\n" - + "$documentai.googleapis.com/Evaluation\022N\n" - + "\021aggregate_metrics\030\004 \001(\01323.google.c" - + "loud.documentai.v1beta3.Evaluation.Metrics\022T\n" - + "\027aggregate_metrics_exact\030\005 \001(\01323.go" - + "ogle.cloud.documentai.v1beta3.Evaluation.Metrics\"\215\016\n\n" - + "Evaluation\022\014\n" - + "\004name\030\001 \001(\t\022/\n" - + "\013create_time\030\002 \001(\0132\032.google.protobuf.Timestamp\022O\n" - + "\021document_counters\030\005 \001(\01324.goog" - + "le.cloud.documentai.v1beta3.Evaluation.Counters\022`\n" - + "\024all_entities_metrics\030\003 \001(\0132B." - + "google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics\022V\n" - + "\016entity_metrics\030\004" - + " \003(\0132>.google.cloud.documentai.v1beta3.Evaluation.EntityMetricsEntry\022\024\n" - + "\014kms_key_name\030\006 \001(\t\022\034\n" - + "\024kms_key_version_name\030\007 \001(\t\032\215\001\n" - + "\010Counters\022\035\n" - + "\025input_documents_count\030\001 \001(\005\022\037\n" - + "\027invalid_documents_count\030\002 \001(\005\022\036\n" - + "\026failed_documents_count\030\003 \001(\005\022!\n" - + "\031evaluated_documents_count\030\004 \001(\005\032\315\002\n" - + "\007Metrics\022\021\n" - + "\tprecision\030\001 \001(\002\022\016\n" - + "\006recall\030\002 \001(\002\022\020\n" - + "\010f1_score\030\003 \001(\002\022#\n" - + "\033predicted_occurrences_count\030\004 \001(\005\022&\n" - + "\036ground_truth_occurrences_count\030\005 \001(\005\022 \n" - + "\030predicted_document_count\030\n" - + " \001(\005\022#\n" - + "\033ground_truth_document_count\030\013 \001(\005\022\034\n" - + "\024true_positives_count\030\006 \001(\005\022\035\n" - + "\025false_positives_count\030\007 \001(\005\022\035\n" - + "\025false_negatives_count\030\010 \001(\005\022\035\n" - + "\025total_documents_count\030\t \001(\005\032x\n" - + "\026ConfidenceLevelMetrics\022\030\n" - + "\020confidence_level\030\001 \001(\002\022D\n" - + "\007metrics\030\002 \001(\01323.goo" - + "gle.cloud.documentai.v1beta3.Evaluation.Metrics\032\200\004\n" - + "\026MultiConfidenceMetrics\022d\n" - + "\030confidence_level_metrics\030\001 \003(\0132B.google.cl" - + "oud.documentai.v1beta3.Evaluation.ConfidenceLevelMetrics\022j\n" - + "\036confidence_level_metrics_exact\030\004 \003(\0132B.google.cloud.document" - + "ai.v1beta3.Evaluation.ConfidenceLevelMetrics\022\r\n" - + "\005auprc\030\002 \001(\002\022#\n" - + "\033estimated_calibration_error\030\003 \001(\002\022\023\n" - + "\013auprc_exact\030\005 \001(\002\022)\n" - + "!estimated_calibration_error_exact\030\006 \001(\002\022d\n" - + "\014metrics_type\030\007 \001(\0162N.google.cloud.do" - + "cumentai.v1beta3.Evaluation.MultiConfidenceMetrics.MetricsType\":\n" - + "\013MetricsType\022\034\n" - + "\030METRICS_TYPE_UNSPECIFIED\020\000\022\r\n" - + "\tAGGREGATE\020\001\032x\n" - + "\022EntityMetricsEntry\022\013\n" - + "\003key\030\001 \001(\t\022Q\n" - + "\005value\030\002 \001(\0132B.google.cloud.documentai.v" - + "1beta3.Evaluation.MultiConfidenceMetrics:\0028\001:\251\001\352A\245\001\n" - + "$documentai.googleapis.com/Evaluation\022}projects/{project}/locations/" - + "{location}/processors/{processor}/proces" - + "sorVersions/{processor_version}/evaluations/{evaluation}B\353\001\n" - + "#com.google.cloud.documentai.v1beta3B\024DocumentAiEvaluationP\001" - + "ZCcloud.google.com/go/documentai/apiv1be" - + "ta3/documentaipb;documentaipb\252\002\037Google.C" - + "loud.DocumentAI.V1Beta3\312\002\037Google\\Cloud\\D" - + "ocumentAI\\V1beta3\352\002\"Google::Cloud::DocumentAI::V1beta3b\006proto3" + + "ogle/api/resource.proto\032\037google/protobuf" + + "/timestamp.proto\"\215\002\n\023EvaluationReference" + + "\022\021\n\toperation\030\001 \001(\t\022=\n\nevaluation\030\002 \001(\tB" + + ")\372A&\n$documentai.googleapis.com/Evaluati" + + "on\022N\n\021aggregate_metrics\030\004 \001(\01323.google.c" + + "loud.documentai.v1beta3.Evaluation.Metri" + + "cs\022T\n\027aggregate_metrics_exact\030\005 \001(\01323.go" + + "ogle.cloud.documentai.v1beta3.Evaluation" + + ".Metrics\"\270\022\n\nEvaluation\022\014\n\004name\030\001 \001(\t\022/\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.Tim" + + "estamp\022O\n\021document_counters\030\005 \001(\01324.goog" + + "le.cloud.documentai.v1beta3.Evaluation.C" + + "ounters\022`\n\024all_entities_metrics\030\003 \001(\0132B." + + "google.cloud.documentai.v1beta3.Evaluati" + + "on.MultiConfidenceMetrics\022V\n\016entity_metr" + + "ics\030\004 \003(\0132>.google.cloud.documentai.v1be" + + "ta3.Evaluation.EntityMetricsEntry\022\024\n\014kms" + + "_key_name\030\006 \001(\t\022\034\n\024kms_key_version_name\030" + + "\007 \001(\t\022Q\n\trevisions\030\t \003(\0132>.google.cloud." + + "documentai.v1beta3.Evaluation.Evaluation" + + "Revision\032\215\001\n\010Counters\022\035\n\025input_documents" + + "_count\030\001 \001(\005\022\037\n\027invalid_documents_count\030" + + "\002 \001(\005\022\036\n\026failed_documents_count\030\003 \001(\005\022!\n" + + "\031evaluated_documents_count\030\004 \001(\005\032\315\002\n\007Met" + + "rics\022\021\n\tprecision\030\001 \001(\002\022\016\n\006recall\030\002 \001(\002\022" + + "\020\n\010f1_score\030\003 \001(\002\022#\n\033predicted_occurrenc" + + "es_count\030\004 \001(\005\022&\n\036ground_truth_occurrenc" + + "es_count\030\005 \001(\005\022 \n\030predicted_document_cou" + + "nt\030\n \001(\005\022#\n\033ground_truth_document_count\030" + + "\013 \001(\005\022\034\n\024true_positives_count\030\006 \001(\005\022\035\n\025f" + + "alse_positives_count\030\007 \001(\005\022\035\n\025false_nega" + + "tives_count\030\010 \001(\005\022\035\n\025total_documents_cou" + + "nt\030\t \001(\005\032x\n\026ConfidenceLevelMetrics\022\030\n\020co" + + "nfidence_level\030\001 \001(\002\022D\n\007metrics\030\002 \001(\01323." + + "google.cloud.documentai.v1beta3.Evaluati" + + "on.Metrics\032\200\004\n\026MultiConfidenceMetrics\022d\n" + + "\030confidence_level_metrics\030\001 \003(\0132B.google" + + ".cloud.documentai.v1beta3.Evaluation.Con" + + "fidenceLevelMetrics\022j\n\036confidence_level_" + + "metrics_exact\030\004 \003(\0132B.google.cloud.docum" + + "entai.v1beta3.Evaluation.ConfidenceLevel" + + "Metrics\022\r\n\005auprc\030\002 \001(\002\022#\n\033estimated_cali" + + "bration_error\030\003 \001(\002\022\023\n\013auprc_exact\030\005 \001(\002" + + "\022)\n!estimated_calibration_error_exact\030\006 " + + "\001(\002\022d\n\014metrics_type\030\007 \001(\0162N.google.cloud" + + ".documentai.v1beta3.Evaluation.MultiConf" + + "idenceMetrics.MetricsType\":\n\013MetricsType" + + "\022\034\n\030METRICS_TYPE_UNSPECIFIED\020\000\022\r\n\tAGGREG" + + "ATE\020\001\032\325\003\n\022EvaluationRevision\022\030\n\013revision" + + "_id\030\001 \001(\tB\003\340A\003\022T\n\021document_counters\030\002 \001(" + + "\01324.google.cloud.documentai.v1beta3.Eval" + + "uation.CountersB\003\340A\003\022e\n\024all_entities_met" + + "rics\030\003 \001(\0132B.google.cloud.documentai.v1b" + + "eta3.Evaluation.MultiConfidenceMetricsB\003" + + "\340A\003\022n\n\016entity_metrics\030\004 \003(\0132Q.google.clo" + + "ud.documentai.v1beta3.Evaluation.Evaluat" + + "ionRevision.EntityMetricsEntryB\003\340A\003\032x\n\022E" + + "ntityMetricsEntry\022\013\n\003key\030\001 \001(\t\022Q\n\005value\030" + + "\002 \001(\0132B.google.cloud.documentai.v1beta3." + + "Evaluation.MultiConfidenceMetrics:\0028\001\032x\n" + + "\022EntityMetricsEntry\022\013\n\003key\030\001 \001(\t\022Q\n\005valu" + + "e\030\002 \001(\0132B.google.cloud.documentai.v1beta" + + "3.Evaluation.MultiConfidenceMetrics:\0028\001:" + + "\251\001\352A\245\001\n$documentai.googleapis.com/Evalua" + + "tion\022}projects/{project}/locations/{loca" + + "tion}/processors/{processor}/processorVe" + + "rsions/{processor_version}/evaluations/{" + + "evaluation}B\353\001\n#com.google.cloud.documen" + + "tai.v1beta3B\024DocumentAiEvaluationP\001ZCclo" + + "ud.google.com/go/documentai/apiv1beta3/d" + + "ocumentaipb;documentaipb\252\002\037Google.Cloud." + + "DocumentAI.V1Beta3\312\002\037Google\\Cloud\\Docume" + + "ntAI\\V1beta3\352\002\"Google::Cloud::DocumentAI" + + "::V1beta3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -178,6 +192,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EntityMetrics", "KmsKeyName", "KmsKeyVersionName", + "Revisions", }); internal_static_google_cloud_documentai_v1beta3_Evaluation_Counters_descriptor = internal_static_google_cloud_documentai_v1beta3_Evaluation_descriptor.getNestedType(0); @@ -230,8 +245,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EstimatedCalibrationErrorExact", "MetricsType", }); - internal_static_google_cloud_documentai_v1beta3_Evaluation_EntityMetricsEntry_descriptor = + internal_static_google_cloud_documentai_v1beta3_Evaluation_EvaluationRevision_descriptor = internal_static_google_cloud_documentai_v1beta3_Evaluation_descriptor.getNestedType(4); + internal_static_google_cloud_documentai_v1beta3_Evaluation_EvaluationRevision_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_documentai_v1beta3_Evaluation_EvaluationRevision_descriptor, + new java.lang.String[] { + "RevisionId", "DocumentCounters", "AllEntitiesMetrics", "EntityMetrics", + }); + internal_static_google_cloud_documentai_v1beta3_Evaluation_EvaluationRevision_EntityMetricsEntry_descriptor = + internal_static_google_cloud_documentai_v1beta3_Evaluation_EvaluationRevision_descriptor + .getNestedType(0); + internal_static_google_cloud_documentai_v1beta3_Evaluation_EvaluationRevision_EntityMetricsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_documentai_v1beta3_Evaluation_EvaluationRevision_EntityMetricsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_documentai_v1beta3_Evaluation_EntityMetricsEntry_descriptor = + internal_static_google_cloud_documentai_v1beta3_Evaluation_descriptor.getNestedType(5); internal_static_google_cloud_documentai_v1beta3_Evaluation_EntityMetricsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_documentai_v1beta3_Evaluation_EntityMetricsEntry_descriptor, @@ -244,6 +276,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.ResourceProto.resource); registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorService.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorService.java index 0e58eb9bb769..711f2795a39b 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorService.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorService.java @@ -304,6 +304,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_documentai_v1beta3_ImportProcessorVersionMetadata_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_documentai_v1beta3_ImportProcessorVersionMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_documentai_v1beta3_UpdateProcessorVersionMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_documentai_v1beta3_UpdateProcessorVersionMetadata_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -325,7 +329,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "proto\0324google/cloud/documentai/v1beta3/processor_type.proto\032#google/longrunning/" + "operations.proto\032\033google/protobuf/empty.proto\032" + " google/protobuf/field_mask.proto\032" - + "\037google/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\316\007\n" + + "\037google/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\357\007\n" + "\016ProcessOptions\022j\n" + "\030individual_page_selector\030\005 \001(\0132F.google." + "cloud.documentai.v1beta3.ProcessOptions.IndividualPageSelectorH\000\022\024\n\n" @@ -335,7 +339,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "layout_config\030\t \001(\0132<.goog" + "le.cloud.documentai.v1beta3.ProcessOptions.LayoutConfigB\003\340A\001\022M\n" + "\017schema_override\030\010" - + " \001(\0132/.google.cloud.documentai.v1beta3.DocumentSchemaB\003\340A\001\032\200\004\n" + + " \001(\0132/.google.cloud.documentai.v1beta3.DocumentSchemaB\003\340A\001\032\241\004\n" + "\014LayoutConfig\022i\n" + "\017chunking_config\030\001 \001(\0132K.google.cloud.doc" + "umentai.v1beta3.ProcessOptions.LayoutConfig.ChunkingConfigB\003\340A\001\022\032\n\r" @@ -344,7 +348,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027enable_image_annotation\030\004 \001(\010B\003\340A\001\022$\n" + "\027enable_image_extraction\030\007 \001(\010B\003\340A\001\022&\n" + "\031enable_llm_layout_parsing\030\005 \001(\010B\003\340A\001\022$\n" - + "\027enable_table_annotation\030\006 \001(\010B\003\340A\001\032\252\001\n" + + "\027enable_table_annotation\030\006 \001(\010B\003\340A\001\022\037\n" + + "\022enable_table_split\030\010 \001(\010B\003\340A\001\032\252\001\n" + "\016ChunkingConfig\022\027\n\n" + "chunk_size\030\001 \001(\005B\003\340A\001\022&\n" + "\031include_ancestor_headings\030\002 \001(\010B\003\340A\001\022)\n" @@ -352,10 +357,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037breakpoint_percentile_threshold\030\004 \001(\005B\003\340A\001\032,\n" + "\026IndividualPageSelector\022\022\n" + "\005pages\030\001 \003(\005B\003\340A\001B\014\n\n" - + "page_range\"\371\004\n" + + "page_range\"\375\004\n" + "\016ProcessRequest\022D\n" - + "\017inline_document\030\004 \001(\0132)" - + ".google.cloud.documentai.v1beta3.DocumentH\000\022D\n" + + "\017inline_document\030\004" + + " \001(\0132).google.cloud.documentai.v1beta3.DocumentH\000\022D\n" + "\014raw_document\030\005" + " \001(\0132,.google.cloud.documentai.v1beta3.RawDocumentH\000\022D\n" + "\014gcs_document\030\010" @@ -363,22 +368,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB\t\340A\002\372A\003\n" + "\001*\022?\n" + "\010document\030\002" - + " \001(\0132).google.cloud.documentai.v1beta3.DocumentB\002\030\001\022\031\n" - + "\021skip_human_review\030\003 \001(\010\022.\n\n" + + " \001(\0132).google.cloud.documentai.v1beta3.DocumentB\002\030\001\022\035\n" + + "\021skip_human_review\030\003 \001(\010B\002\030\001\022.\n\n" + "field_mask\030\006 \001(\0132\032.google.protobuf.FieldMask\022H\n" + "\017process_options\030\007" + " \001(\0132/.google.cloud.documentai.v1beta3.ProcessOptions\022P\n" + "\006labels\030\n" - + " \003(\0132;" - + ".google.cloud.documentai.v1beta3.ProcessRequest.LabelsEntryB\003\340A\001\022\033\n" + + " \003(\0132;.go" + + "ogle.cloud.documentai.v1beta3.ProcessRequest.LabelsEntryB\003\340A\001\022\033\n" + "\016imageless_mode\030\013 \001(\010B\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" + + "\003key\030\001 \001(\t\022\r" + + "\n" + "\005value\030\002 \001(\t:\0028\001B\010\n" + "\006source\"\363\001\n" + "\021HumanReviewStatus\022G\n" - + "\005state\030\001 \001(\01628.google.clo" - + "ud.documentai.v1beta3.HumanReviewStatus.State\022\025\n\r" + + "\005state\030\001 \001(\01628.google.cloud." + + "documentai.v1beta3.HumanReviewStatus.State\022\025\n\r" + "state_message\030\002 \001(\t\022\036\n" + "\026human_review_operation\030\003 \001(\t\"^\n" + "\005State\022\025\n" @@ -391,23 +397,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010document\030\001 \001(\0132).google.cloud.documentai.v1beta3.Document\022\"\n" + "\026human_review_operation\030\002 \001(\tB\002\030\001\022O\n" + "\023human_review_status\030\003" - + " \001(\01322.google.cloud.documentai.v1beta3.HumanReviewStatus\"\373\005\n" + + " \001(\01322.google.cloud.documentai.v1beta3.HumanReviewStatus\"\377\005\n" + "\023BatchProcessRequest\022\027\n" + "\004name\030\001 \001(\tB\t\340A\002\372A\003\n" + "\001*\022`\n\r" - + "input_configs\030\002 \003(\0132E.google.clou" - + "d.documentai.v1beta3.BatchProcessRequest.BatchInputConfigB\002\030\001\022a\n\r" - + "output_config\030\003 \001(\0132F.google.cloud.documentai.v1beta3.B" - + "atchProcessRequest.BatchOutputConfigB\002\030\001\022S\n" - + "\017input_documents\030\005 \001(\0132:.google.cloud" - + ".documentai.v1beta3.BatchDocumentsInputConfig\022U\n" - + "\026document_output_config\030\006 \001(\01325." - + "google.cloud.documentai.v1beta3.DocumentOutputConfig\022\031\n" - + "\021skip_human_review\030\004 \001(\010\022H\n" + + "input_configs\030\002 \003(\0132E.google.cloud.d" + + "ocumentai.v1beta3.BatchProcessRequest.BatchInputConfigB\002\030\001\022a\n\r" + + "output_config\030\003 \001(" + + "\0132F.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfigB\002\030\001\022S\n" + + "\017input_documents\030\005 \001(\0132:.google.cloud.do" + + "cumentai.v1beta3.BatchDocumentsInputConfig\022U\n" + + "\026document_output_config\030\006 \001(\01325.goo" + + "gle.cloud.documentai.v1beta3.DocumentOutputConfig\022\035\n" + + "\021skip_human_review\030\004 \001(\010B\002\030\001\022H\n" + "\017process_options\030\007" + " \001(\0132/.google.cloud.documentai.v1beta3.ProcessOptions\022U\n" - + "\006labels\030\t \003(\0132@.google.cloud.documentai.v1be" - + "ta3.BatchProcessRequest.LabelsEntryB\003\340A\001\032=\n" + + "\006labels\030\t \003(\0132@.google.cloud.documentai.v1b" + + "eta3.BatchProcessRequest.LabelsEntryB\003\340A\001\032=\n" + "\020BatchInputConfig\022\022\n\n" + "gcs_source\030\001 \001(\t\022\021\n" + "\tmime_type\030\002 \001(\t:\002\030\001\0320\n" @@ -418,20 +424,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\002 \001(\t:\0028\001\"\026\n" + "\024BatchProcessResponse\"\262\005\n" + "\024BatchProcessMetadata\022J\n" - + "\005state\030\001 \001(\0162;.google.cloud." - + "documentai.v1beta3.BatchProcessMetadata.State\022\025\n\r" + + "\005state\030\001 \001(\0162;.google.cloud" + + ".documentai.v1beta3.BatchProcessMetadata.State\022\025\n\r" + "state_message\030\002 \001(\t\022/\n" + "\013create_time\030\003 \001(\0132\032.google.protobuf.Timestamp\022/\n" + "\013update_time\030\004 \001(\0132\032.google.protobuf.Timestamp\022r\n" - + "\033individual_process_statuses\030\005 \003(\0132M.google.cloud.documentai.v1beta3.Ba" - + "tchProcessMetadata.IndividualProcessStatus\032\354\001\n" + + "\033individual_process_statuses\030\005 \003(\0132M.google.cloud.documentai.v1beta3.B" + + "atchProcessMetadata.IndividualProcessStatus\032\354\001\n" + "\027IndividualProcessStatus\022\030\n" + "\020input_gcs_source\030\001 \001(\t\022\"\n" + "\006status\030\002 \001(\0132\022.google.rpc.Status\022\036\n" + "\026output_gcs_destination\030\003 \001(\t\022\"\n" + "\026human_review_operation\030\004 \001(\tB\002\030\001\022O\n" - + "\023human_review_status\030\005 \001(\01322.google.c" - + "loud.documentai.v1beta3.HumanReviewStatus\"r\n" + + "\023human_review_status\030\005 \001(\01322.google." + + "cloud.documentai.v1beta3.HumanReviewStatus\"r\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\013\n" + "\007WAITING\020\001\022\013\n" @@ -444,8 +450,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(" + "\tB/\340A\002\372A)\022\'documentai.googleapis.com/ProcessorType\"f\n" + "\033FetchProcessorTypesResponse\022G\n" - + "\017processor_types\030\001" - + " \003(\0132..google.cloud.documentai.v1beta3.ProcessorType\"\203\001\n" + + "\017processor_types\030\001 \003(\0132..google.c" + + "loud.documentai.v1beta3.ProcessorType\"\203\001\n" + "\031ListProcessorTypesRequest\022?\n" + "\006parent\030\001 \001(" + "\tB/\340A\002\372A)\022\'documentai.googleapis.com/ProcessorType\022\021\n" @@ -485,8 +491,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB2\340A\002\372A,\n" + "*documentai.googleapis.com/ProcessorVersion\"s\n" + "\036DeleteProcessorVersionMetadata\022Q\n" - + "\017common_metadata\030\001 \001" - + "(\01328.google.cloud.documentai.v1beta3.CommonOperationMetadata\"a\n" + + "\017common_metadata\030\001 " + + "\001(\01328.google.cloud.documentai.v1beta3.CommonOperationMetadata\"a\n" + "\035DeployProcessorVersionRequest\022@\n" + "\004name\030\001 \001(\tB2\340A\002\372A,\n" + "*documentai.googleapis.com/ProcessorVersion\" \n" @@ -499,33 +505,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*documentai.googleapis.com/ProcessorVersion\"\"\n" + " UndeployProcessorVersionResponse\"u\n" + " UndeployProcessorVersionMetadata\022Q\n" - + "\017common_metadata\030\001 \001(\01328.google.cl" - + "oud.documentai.v1beta3.CommonOperationMetadata\"\231\001\n" + + "\017common_metadata\030\001 \001(\01328.google.c" + + "loud.documentai.v1beta3.CommonOperationMetadata\"\231\001\n" + "\026CreateProcessorRequest\022;\n" + "\006parent\030\001 \001(" + "\tB+\340A\002\372A%\022#documentai.googleapis.com/Processor\022B\n" - + "\tprocessor\030\002 \001(\0132*.goog" - + "le.cloud.documentai.v1beta3.ProcessorB\003\340A\002\"S\n" + + "\tprocessor\030\002 \001(\0132*.goo" + + "gle.cloud.documentai.v1beta3.ProcessorB\003\340A\002\"S\n" + "\026DeleteProcessorRequest\0229\n" + "\004name\030\001 \001(\tB+\340A\002\372A%\n" + "#documentai.googleapis.com/Processor\"l\n" + "\027DeleteProcessorMetadata\022Q\n" - + "\017common_metadata\030\005" - + " \001(\01328.google.cloud.documentai.v1beta3.CommonOperationMetadata\"S\n" + + "\017common_metadata\030\005 \001(\01328.google.cloud.docu" + + "mentai.v1beta3.CommonOperationMetadata\"S\n" + "\026EnableProcessorRequest\0229\n" + "\004name\030\001 \001(\tB+\340A\002\372A%\n" + "#documentai.googleapis.com/Processor\"\031\n" + "\027EnableProcessorResponse\"l\n" + "\027EnableProcessorMetadata\022Q\n" - + "\017common_metadata\030\005 \001(" - + "\01328.google.cloud.documentai.v1beta3.CommonOperationMetadata\"T\n" + + "\017common_metadata\030\005 \001" + + "(\01328.google.cloud.documentai.v1beta3.CommonOperationMetadata\"T\n" + "\027DisableProcessorRequest\0229\n" + "\004name\030\001 \001(\tB+\340A\002\372A%\n" + "#documentai.googleapis.com/Processor\"\032\n" + "\030DisableProcessorResponse\"m\n" + "\030DisableProcessorMetadata\022Q\n" - + "\017common_metadata\030\005 \001(\01328.google.clou" - + "d.documentai.v1beta3.CommonOperationMetadata\"\272\001\n" + + "\017common_metadata\030\005 \001(\01328.google.clo" + + "ud.documentai.v1beta3.CommonOperationMetadata\"\272\001\n" + "!SetDefaultProcessorVersionRequest\022>\n" + "\tprocessor\030\001 \001(\tB+\340A\002\372A%\n" + "#documentai.googleapis.com/Processor\022U\n" @@ -536,29 +542,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017common_metadata\030\001" + " \001(\01328.google.cloud.documentai.v1beta3.CommonOperationMetadata\"\321\t\n" + "\034TrainProcessorVersionRequest\022\213\001\n" - + "\"custom_document_extraction_options\030\005 \001(\0132].google." - + "cloud.documentai.v1beta3.TrainProcessorV" - + "ersionRequest.CustomDocumentExtractionOptionsH\000\022\205\001\n" - + "\037foundation_model_tuning_options\030\014 \001(\0132Z.google.cloud.documentai.v1be" - + "ta3.TrainProcessorVersionRequest.FoundationModelTuningOptionsH\000\022;\n" + + "\"custom_document_extraction_options\030\005 \001(\0132].google" + + ".cloud.documentai.v1beta3.TrainProcessor" + + "VersionRequest.CustomDocumentExtractionOptionsH\000\022\205\001\n" + + "\037foundation_model_tuning_options\030\014 \001(\0132Z.google.cloud.documentai.v1b" + + "eta3.TrainProcessorVersionRequest.FoundationModelTuningOptionsH\000\022;\n" + "\006parent\030\001 \001(\tB+\340A\002\372A%\n" + "#documentai.googleapis.com/Processor\022Q\n" - + "\021processor_version\030\002 \001(\01321.google" - + ".cloud.documentai.v1beta3.ProcessorVersionB\003\340A\002\022M\n" + + "\021processor_version\030\002 \001(\01321.googl" + + "e.cloud.documentai.v1beta3.ProcessorVersionB\003\340A\002\022M\n" + "\017document_schema\030\n" + " \001(\0132/.google.cloud.documentai.v1beta3.DocumentSchemaB\003\340A\001\022`\n\n" - + "input_data\030\004 \001(\0132G.google.clou" - + "d.documentai.v1beta3.TrainProcessorVersionRequest.InputDataB\003\340A\001\022#\n" + + "input_data\030\004 \001(\0132G.google.clo" + + "ud.documentai.v1beta3.TrainProcessorVersionRequest.InputDataB\003\340A\001\022#\n" + "\026base_processor_version\030\010 \001(\tB\003\340A\001\032\267\001\n" + "\tInputData\022V\n" - + "\022training_documents\030\003 \001(\0132:.google.cloud.d" - + "ocumentai.v1beta3.BatchDocumentsInputConfig\022R\n" - + "\016test_documents\030\004 \001(\0132:.google.clo" - + "ud.documentai.v1beta3.BatchDocumentsInputConfig\032\206\002\n" + + "\022training_documents\030\003 \001(\0132:.google.cloud." + + "documentai.v1beta3.BatchDocumentsInputConfig\022R\n" + + "\016test_documents\030\004 \001(\0132:.google.cl" + + "oud.documentai.v1beta3.BatchDocumentsInputConfig\032\206\002\n" + "\037CustomDocumentExtractionOptions\022\212\001\n" - + "\017training_method\030\003 \001(\0162l.google.c" - + "loud.documentai.v1beta3.TrainProcessorVe" - + "rsionRequest.CustomDocumentExtractionOptions.TrainingMethodB\003\340A\001\"V\n" + + "\017training_method\030\003 \001(\0162l.google." + + "cloud.documentai.v1beta3.TrainProcessorV" + + "ersionRequest.CustomDocumentExtractionOptions.TrainingMethodB\003\340A\001\"V\n" + "\016TrainingMethod\022\037\n" + "\033TRAINING_METHOD_UNSPECIFIED\020\000\022\017\n" + "\013MODEL_BASED\020\001\022\022\n" @@ -570,14 +576,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035TrainProcessorVersionResponse\022\031\n" + "\021processor_version\030\001 \001(\t\"\206\004\n" + "\035TrainProcessorVersionMetadata\022Q\n" - + "\017common_metadata\030\001 \001(\01328.google.clo" - + "ud.documentai.v1beta3.CommonOperationMetadata\022u\n" - + "\033training_dataset_validation\030\002 \001" - + "(\0132P.google.cloud.documentai.v1beta3.Tra" - + "inProcessorVersionMetadata.DatasetValidation\022q\n" - + "\027test_dataset_validation\030\003 \001(\0132P." - + "google.cloud.documentai.v1beta3.TrainPro" - + "cessorVersionMetadata.DatasetValidation\032\247\001\n" + + "\017common_metadata\030\001 \001(\01328.google.cl" + + "oud.documentai.v1beta3.CommonOperationMetadata\022u\n" + + "\033training_dataset_validation\030\002 \001(\0132P.google.cloud.documentai.v1beta3.Tr" + + "ainProcessorVersionMetadata.DatasetValidation\022q\n" + + "\027test_dataset_validation\030\003 \001(\0132P" + + ".google.cloud.documentai.v1beta3.TrainPr" + + "ocessorVersionMetadata.DatasetValidation\032\247\001\n" + "\021DatasetValidation\022\034\n" + "\024document_error_count\030\003 \001(\005\022\033\n" + "\023dataset_error_count\030\004 \001(\005\022+\n" @@ -591,26 +596,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010document\030\002" + " \001(\0132).google.cloud.documentai.v1beta3.DocumentB\002\030\001\022 \n" + "\030enable_schema_validation\030\003 \001(\010\022Q\n" - + "\010priority\030\005 \001(\0162?.google.cloud." - + "documentai.v1beta3.ReviewDocumentRequest.Priority\022H\n" - + "\017document_schema\030\006 \001(\0132/.goo" - + "gle.cloud.documentai.v1beta3.DocumentSchema\"#\n" + + "\010priority\030\005 \001(\0162?.google.cloud" + + ".documentai.v1beta3.ReviewDocumentRequest.Priority\022H\n" + + "\017document_schema\030\006 \001(\0132/.go" + + "ogle.cloud.documentai.v1beta3.DocumentSchema\"#\n" + "\010Priority\022\013\n" + "\007DEFAULT\020\000\022\n\n" + "\006URGENT\020\001B\010\n" + "\006source\"\326\001\n" + "\026ReviewDocumentResponse\022\027\n" + "\017gcs_destination\030\001 \001(\t\022L\n" - + "\005state\030\002 \001(\0162=." - + "google.cloud.documentai.v1beta3.ReviewDocumentResponse.State\022\030\n" + + "\005state\030\002 \001(\0162=" + + ".google.cloud.documentai.v1beta3.ReviewDocumentResponse.State\022\030\n" + "\020rejection_reason\030\003 \001(\t\";\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\014\n" + "\010REJECTED\020\001\022\r\n" + "\tSUCCEEDED\020\002\"\300\003\n" + "\037ReviewDocumentOperationMetadata\022U\n" - + "\005state\030\001 \001(\0162F" - + ".google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.State\022\025\n\r" + + "\005state\030\001 \001(\0162" + + "F.google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.State\022\025\n\r" + "state_message\030\002 \001(\t\022/\n" + "\013create_time\030\003 \001(\0132\032.google.protobuf.Timestamp\022/\n" + "\013update_time\030\004 \001(\0132\032.google.protobuf.Timestamp\022Q\n" @@ -627,11 +632,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037EvaluateProcessorVersionRequest\022M\n" + "\021processor_version\030\001 \001(\tB2\340A\002\372A,\n" + "*documentai.googleapis.com/ProcessorVersion\022]\n" - + "\024evaluation_documents\030\003 \001(\0132:.google.cloud.d" - + "ocumentai.v1beta3.BatchDocumentsInputConfigB\003\340A\001\"u\n" + + "\024evaluation_documents\030\003 \001(\0132:.google.cloud." + + "documentai.v1beta3.BatchDocumentsInputConfigB\003\340A\001\"u\n" + " EvaluateProcessorVersionMetadata\022Q\n" - + "\017common_metadata\030\001 \001(\01328.google.c" - + "loud.documentai.v1beta3.CommonOperationMetadata\"6\n" + + "\017common_metadata\030\001 \001(\01328.google." + + "cloud.documentai.v1beta3.CommonOperationMetadata\"6\n" + " EvaluateProcessorVersionResponse\022\022\n\n" + "evaluation\030\002 \001(\t\"R\n" + "\024GetEvaluationRequest\022:\n" @@ -649,11 +654,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035ImportProcessorVersionRequest\022S\n" + "\030processor_version_source\030\002 \001(\tB/\372A,\n" + "*documentai.googleapis.com/ProcessorVersionH\000\022\212\001\n" - + "!external_processor_version_source\030\003 \001" - + "(\0132].google.cloud.documentai.v1beta3.Imp" - + "ortProcessorVersionRequest.ExternalProcessorVersionSourceH\000\022B\n" - + "\006parent\030\001 \001(\tB2\340A\002" - + "\372A,\022*documentai.googleapis.com/ProcessorVersion\032_\n" + + "!external_processor_version_source\030\003 " + + "\001(\0132].google.cloud.documentai.v1beta3.Im" + + "portProcessorVersionRequest.ExternalProcessorVersionSourceH\000\022B\n" + + "\006parent\030\001 \001(\tB2\340A" + + "\002\372A,\022*documentai.googleapis.com/ProcessorVersion\032_\n" + "\036ExternalProcessorVersionSource\022\036\n" + "\021processor_version\030\001 \001(\tB\003\340A\002\022\035\n" + "\020service_endpoint\030\002 \001(\tB\003\340A\001B\010\n" @@ -662,141 +667,146 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021processor_version\030\001 \001(\tB/\372A,\n" + "*documentai.googleapis.com/ProcessorVersion\"s\n" + "\036ImportProcessorVersionMetadata\022Q\n" - + "\017common_metadata\030\001 " - + "\001(\01328.google.cloud.documentai.v1beta3.CommonOperationMetadata2\353.\n" + + "\017common_metadata\030\001" + + " \001(\01328.google.cloud.documentai.v1beta3.CommonOperationMetadata\"s\n" + + "\036UpdateProcessorVersionMetadata\022Q\n" + + "\017common_metadata\030\001 \001(" + + "\01328.google.cloud.documentai.v1beta3.CommonOperationMetadata2\356.\n" + "\030DocumentProcessorService\022\233\002\n" - + "\017ProcessDocument\022/.google.cloud.documentai.v1beta3.ProcessRequest\032" - + "0.google.cloud.documentai.v1beta3.Proces" - + "sResponse\"\244\001\332A\004name\202\323\344\223\002\226\001\";/v1beta3/{na" - + "me=projects/*/locations/*/processors/*}:process:\001*ZT\"O/v1beta3/{name=projects/*/" - + "locations/*/processors/*/processorVersions/*}:process:\001*\022\314\002\n" - + "\025BatchProcessDocuments\0224.google.cloud.documentai.v1beta3.Bat" - + "chProcessRequest\032\035.google.longrunning.Operation\"\335\001\312A,\n" - + "\024BatchProcessResponse\022\024Bat" - + "chProcessMetadata\332A\004name\202\323\344\223\002\240\001\"@/v1beta" - + "3/{name=projects/*/locations/*/processors/*}:batchProcess:\001*ZY\"T/v1beta3/{name=p" - + "rojects/*/locations/*/processors/*/processorVersions/*}:batchProcess:\001*\022\337\001\n" - + "\023FetchProcessorTypes\022;.google.cloud.documenta" - + "i.v1beta3.FetchProcessorTypesRequest\032<.google.cloud.documentai.v1beta3.FetchProc" - + "essorTypesResponse\"M\332A\006parent\202\323\344\223\002>\022\n" - + "\035TrainProcessorVersionResponse\022\035TrainProcessorVersionM" - + "etadata\332A\030parent,processor_version\202\323\344\223\002R" - + "\"M/v1beta3/{parent=projects/*/locations/" - + "*/processors/*}/processorVersions:train:\001*\022\335\001\n" - + "\023GetProcessorVersion\022;.google.cloud.documentai.v1beta3.GetProcessorVersion" - + "Request\0321.google.cloud.documentai.v1beta" - + "3.ProcessorVersion\"V\332A\004name\202\323\344\223\002I\022G/v1be" - + "ta3/{name=projects/*/locations/*/processors/*/processorVersions/*}\022\360\001\n" - + "\025ListProcessorVersions\022=.google.cloud.documentai.v" - + "1beta3.ListProcessorVersionsRequest\032>.google.cloud.documentai.v1beta3.ListProces" - + "sorVersionsResponse\"X\332A\006parent\202\323\344\223\002I\022G/v" - + "1beta3/{parent=projects/*/locations/*/processors/*}/processorVersions\022\212\002\n" - + "\026DeleteProcessorVersion\022>.google.cloud.document" - + "ai.v1beta3.DeleteProcessorVersionRequest\032\035.google.longrunning.Operation\"\220\001\312A7\n" - + "\025google.protobuf.Empty\022\036DeleteProcessorVer" - + "sionMetadata\332A\004name\202\323\344\223\002I*G/v1beta3/{nam" - + "e=projects/*/locations/*/processors/*/processorVersions/*}\022\235\002\n" - + "\026DeployProcessorVersion\022>.google.cloud.documentai.v1beta3." - + "DeployProcessorVersionRequest\032\035.google.longrunning.Operation\"\243\001\312A@\n" - + "\036DeployProcessorVersionResponse\022\036DeployProcessorVersi" - + "onMetadata\332A\004name\202\323\344\223\002S\"N/v1beta3/{name=" - + "projects/*/locations/*/processors/*/processorVersions/*}:deploy:\001*\022\247\002\n" - + "\030UndeployProcessorVersion\022@.google.cloud.documenta" - + "i.v1beta3.UndeployProcessorVersionRequest\032\035.google.longrunning.Operation\"\251\001\312AD\n" - + " UndeployProcessorVersionResponse\022 Undepl" - + "oyProcessorVersionMetadata\332A\004name\202\323\344\223\002U\"" - + "P/v1beta3/{name=projects/*/locations/*/p" - + "rocessors/*/processorVersions/*}:undeploy:\001*\022\321\001\n" - + "\017CreateProcessor\0227.google.cloud.documentai.v1beta3.CreateProcessorReques" - + "t\032*.google.cloud.documentai.v1beta3.Proc" - + "essor\"Y\332A\020parent,processor\202\323\344\223\002@\"3/v1bet" - + "a3/{parent=projects/*/locations/*}/processors:\tprocessor\022\340\001\n" - + "\017DeleteProcessor\0227.google.cloud.documentai.v1beta3.DeletePro" - + "cessorRequest\032\035.google.longrunning.Operation\"u\312A0\n" - + "\025google.protobuf.Empty\022\027Delete" - + "ProcessorMetadata\332A\004name\202\323\344\223\0025*3/v1beta3" - + "/{name=projects/*/locations/*/processors/*}\022\345\001\n" - + "\017EnableProcessor\0227.google.cloud.d" - + "ocumentai.v1beta3.EnableProcessorRequest\032\035.google.longrunning.Operation\"z\312A2\n" - + "\027EnableProcessorResponse\022\027EnableProcessorMe" - + "tadata\202\323\344\223\002?\":/v1beta3/{name=projects/*/locations/*/processors/*}:enable:\001*\022\352\001\n" - + "\020DisableProcessor\0228.google.cloud.document" - + "ai.v1beta3.DisableProcessorRequest\032\035.google.longrunning.Operation\"}\312A4\n" - + "\030DisableProcessorResponse\022\030DisableProcessorMetada" - + "ta\202\323\344\223\002@\";/v1beta3/{name=projects/*/locations/*/processors/*}:disable:\001*\022\253\002\n" - + "\032SetDefaultProcessorVersion\022B.google.cloud.d", - "ocumentai.v1beta3.SetDefaultProcessorVer" + + "\017ProcessDocument\022/.google.cloud.documentai.v1beta3.ProcessRequest\0320." + + "google.cloud.documentai.v1beta3.ProcessR" + + "esponse\"\244\001\332A\004name\202\323\344\223\002\226\001\";/v1beta3/{name" + + "=projects/*/locations/*/processors/*}:process:\001*ZT\"O/v1beta3/{name=projects/*/lo" + + "cations/*/processors/*/processorVersions/*}:process:\001*\022\314\002\n" + + "\025BatchProcessDocuments\0224.google.cloud.documentai.v1beta3.Batch" + + "ProcessRequest\032\035.google.longrunning.Operation\"\335\001\312A,\n" + + "\024BatchProcessResponse\022\024Batch" + + "ProcessMetadata\332A\004name\202\323\344\223\002\240\001\"@/v1beta3/" + + "{name=projects/*/locations/*/processors/*}:batchProcess:\001*ZY\"T/v1beta3/{name=pro" + + "jects/*/locations/*/processors/*/processorVersions/*}:batchProcess:\001*\022\337\001\n" + + "\023FetchProcessorTypes\022;.google.cloud.documentai." + + "v1beta3.FetchProcessorTypesRequest\032<.google.cloud.documentai.v1beta3.FetchProces" + + "sorTypesResponse\"M\332A\006parent\202\323\344\223\002>\022\n" + + "\035TrainProcessorVersionResponse\022\035TrainProcessorVersionMet" + + "adata\332A\030parent,processor_version\202\323\344\223\002R\"M" + + "/v1beta3/{parent=projects/*/locations/*/" + + "processors/*}/processorVersions:train:\001*\022\335\001\n" + + "\023GetProcessorVersion\022;.google.cloud.documentai.v1beta3.GetProcessorVersionRe" + + "quest\0321.google.cloud.documentai.v1beta3." + + "ProcessorVersion\"V\332A\004name\202\323\344\223\002I\022G/v1beta" + + "3/{name=projects/*/locations/*/processors/*/processorVersions/*}\022\360\001\n" + + "\025ListProcessorVersions\022=.google.cloud.documentai.v1b" + + "eta3.ListProcessorVersionsRequest\032>.google.cloud.documentai.v1beta3.ListProcesso" + + "rVersionsResponse\"X\332A\006parent\202\323\344\223\002I\022G/v1b" + + "eta3/{parent=projects/*/locations/*/processors/*}/processorVersions\022\212\002\n" + + "\026DeleteProcessorVersion\022>.google.cloud.documentai" + + ".v1beta3.DeleteProcessorVersionRequest\032\035.google.longrunning.Operation\"\220\001\312A7\n" + + "\025google.protobuf.Empty\022\036DeleteProcessorVersi" + + "onMetadata\332A\004name\202\323\344\223\002I*G/v1beta3/{name=" + + "projects/*/locations/*/processors/*/processorVersions/*}\022\235\002\n" + + "\026DeployProcessorVersion\022>.google.cloud.documentai.v1beta3.De" + + "ployProcessorVersionRequest\032\035.google.longrunning.Operation\"\243\001\312A@\n" + + "\036DeployProcessorVersionResponse\022\036DeployProcessorVersion" + + "Metadata\332A\004name\202\323\344\223\002S\"N/v1beta3/{name=pr" + + "ojects/*/locations/*/processors/*/processorVersions/*}:deploy:\001*\022\247\002\n" + + "\030UndeployProcessorVersion\022@.google.cloud.documentai." + + "v1beta3.UndeployProcessorVersionRequest\032\035.google.longrunning.Operation\"\251\001\312AD\n" + + " UndeployProcessorVersionResponse\022 Undeploy" + + "ProcessorVersionMetadata\332A\004name\202\323\344\223\002U\"P/" + + "v1beta3/{name=projects/*/locations/*/pro" + + "cessors/*/processorVersions/*}:undeploy:\001*\022\321\001\n" + + "\017CreateProcessor\0227.google.cloud.documentai.v1beta3.CreateProcessorRequest\032" + + "*.google.cloud.documentai.v1beta3.Proces" + + "sor\"Y\332A\020parent,processor\202\323\344\223\002@\"3/v1beta3" + + "/{parent=projects/*/locations/*}/processors:\tprocessor\022\340\001\n" + + "\017DeleteProcessor\0227.google.cloud.documentai.v1beta3.DeleteProce" + + "ssorRequest\032\035.google.longrunning.Operation\"u\312A0\n" + + "\025google.protobuf.Empty\022\027DeletePr" + + "ocessorMetadata\332A\004name\202\323\344\223\0025*3/v1beta3/{" + + "name=projects/*/locations/*/processors/*}\022\345\001\n" + + "\017EnableProcessor\0227.google.cloud.doc" + + "umentai.v1beta3.EnableProcessorRequest\032\035.google.longrunning.Operation\"z\312A2\n" + + "\027EnableProcessorResponse\022\027EnableProcessorMeta" + + "data\202\323\344\223\002?\":/v1beta3/{name=projects/*/locations/*/processors/*}:enable:\001*\022\352\001\n" + + "\020DisableProcessor\0228.google.cloud.documentai" + + ".v1beta3.DisableProcessorRequest\032\035.google.longrunning.Operation\"}\312A4\n" + + "\030DisablePro", + "cessorResponse\022\030DisableProcessorMetadata" + + "\202\323\344\223\002@\";/v1beta3/{name=projects/*/locati" + + "ons/*/processors/*}:disable:\001*\022\253\002\n\032SetDe" + + "faultProcessorVersion\022B.google.cloud.doc" + + "umentai.v1beta3.SetDefaultProcessorVersi" + + "onRequest\032\035.google.longrunning.Operation" + + "\"\251\001\312AH\n\"SetDefaultProcessorVersionRespon" + + "se\022\"SetDefaultProcessorVersionMetadata\202\323" + + "\344\223\002X\"S/v1beta3/{processor=projects/*/loc" + + "ations/*/processors/*}:setDefaultProcess" + + "orVersion:\001*\022\255\002\n\016ReviewDocument\0226.google" + + ".cloud.documentai.v1beta3.ReviewDocument" + + "Request\032\035.google.longrunning.Operation\"\303" + + "\001\210\002\001\312A9\n\026ReviewDocumentResponse\022\037ReviewD" + + "ocumentOperationMetadata\332A\023human_review_" + + "config\202\323\344\223\002h\"c/v1beta3/{human_review_con" + + "fig=projects/*/locations/*/processors/*/" + + "humanReviewConfig}:reviewDocument:\001*\022\321\002\n" + + "\030EvaluateProcessorVersion\022@.google.cloud" + + ".documentai.v1beta3.EvaluateProcessorVer" + "sionRequest\032\035.google.longrunning.Operati" - + "on\"\251\001\312AH\n\"SetDefaultProcessorVersionResp" - + "onse\022\"SetDefaultProcessorVersionMetadata" - + "\202\323\344\223\002X\"S/v1beta3/{processor=projects/*/l" - + "ocations/*/processors/*}:setDefaultProce" - + "ssorVersion:\001*\022\252\002\n\016ReviewDocument\0226.goog" - + "le.cloud.documentai.v1beta3.ReviewDocume" - + "ntRequest\032\035.google.longrunning.Operation" - + "\"\300\001\312A9\n\026ReviewDocumentResponse\022\037ReviewDo" - + "cumentOperationMetadata\332A\023human_review_c" - + "onfig\202\323\344\223\002h\"c/v1beta3/{human_review_conf" - + "ig=projects/*/locations/*/processors/*/h" - + "umanReviewConfig}:reviewDocument:\001*\022\321\002\n\030" - + "EvaluateProcessorVersion\022@.google.cloud." - + "documentai.v1beta3.EvaluateProcessorVers" - + "ionRequest\032\035.google.longrunning.Operatio" - + "n\"\323\001\312AD\n EvaluateProcessorVersionRespons" - + "e\022 EvaluateProcessorVersionMetadata\332A\021pr" - + "ocessor_version\202\323\344\223\002r\"m/v1beta3/{process" - + "or_version=projects/*/locations/*/proces" - + "sors/*/processorVersions/*}:evaluateProc" - + "essorVersion:\001*\022\331\001\n\rGetEvaluation\0225.goog" - + "le.cloud.documentai.v1beta3.GetEvaluatio" - + "nRequest\032+.google.cloud.documentai.v1bet" - + "a3.Evaluation\"d\332A\004name\202\323\344\223\002W\022U/v1beta3/{" - + "name=projects/*/locations/*/processors/*" - + "/processorVersions/*/evaluations/*}\022\354\001\n\017" - + "ListEvaluations\0227.google.cloud.documenta" - + "i.v1beta3.ListEvaluationsRequest\0328.googl" - + "e.cloud.documentai.v1beta3.ListEvaluatio" - + "nsResponse\"f\332A\006parent\202\323\344\223\002W\022U/v1beta3/{p" - + "arent=projects/*/locations/*/processors/" - + "*/processorVersions/*}/evaluations\022\257\002\n\026I" - + "mportProcessorVersion\022>.google.cloud.doc" - + "umentai.v1beta3.ImportProcessorVersionRe" - + "quest\032\035.google.longrunning.Operation\"\265\001\312" - + "A@\n\036ImportProcessorVersionResponse\022\036Impo" - + "rtProcessorVersionMetadata\332A\006parent\202\323\344\223\002" - + "c\"^/v1beta3/{parent=projects/*/locations" - + "/*/processors/*}/processorVersions:impor" - + "tProcessorVersion:\001*\032M\312A\031documentai.goog" - + "leapis.com\322A.https://www.googleapis.com/" - + "auth/cloud-platformB\303\003\n#com.google.cloud" - + ".documentai.v1beta3B\032DocumentAiProcessor" - + "ServiceP\001ZCcloud.google.com/go/documenta" - + "i/apiv1beta3/documentaipb;documentaipb\252\002" - + "\037Google.Cloud.DocumentAI.V1Beta3\312\002\037Googl" - + "e\\Cloud\\DocumentAI\\V1beta3\352\002\"Google::Clo" - + "ud::DocumentAI::V1beta3\352A\177\n+documentai.g" - + "oogleapis.com/HumanReviewConfig\022Pproject" - + "s/{project}/locations/{location}/process" - + "ors/{processor}/humanReviewConfig\352AM\n\"do" - + "cumentai.googleapis.com/Location\022\'projec" - + "ts/{project}/locations/{location}b\006proto" - + "3" + + "on\"\323\001\312AD\n EvaluateProcessorVersionRespon" + + "se\022 EvaluateProcessorVersionMetadata\332A\021p" + + "rocessor_version\202\323\344\223\002r\"m/v1beta3/{proces" + + "sor_version=projects/*/locations/*/proce" + + "ssors/*/processorVersions/*}:evaluatePro" + + "cessorVersion:\001*\022\331\001\n\rGetEvaluation\0225.goo" + + "gle.cloud.documentai.v1beta3.GetEvaluati" + + "onRequest\032+.google.cloud.documentai.v1be" + + "ta3.Evaluation\"d\332A\004name\202\323\344\223\002W\022U/v1beta3/" + + "{name=projects/*/locations/*/processors/" + + "*/processorVersions/*/evaluations/*}\022\354\001\n" + + "\017ListEvaluations\0227.google.cloud.document" + + "ai.v1beta3.ListEvaluationsRequest\0328.goog" + + "le.cloud.documentai.v1beta3.ListEvaluati" + + "onsResponse\"f\332A\006parent\202\323\344\223\002W\022U/v1beta3/{" + + "parent=projects/*/locations/*/processors" + + "/*/processorVersions/*}/evaluations\022\257\002\n\026" + + "ImportProcessorVersion\022>.google.cloud.do" + + "cumentai.v1beta3.ImportProcessorVersionR" + + "equest\032\035.google.longrunning.Operation\"\265\001" + + "\312A@\n\036ImportProcessorVersionResponse\022\036Imp" + + "ortProcessorVersionMetadata\332A\006parent\202\323\344\223" + + "\002c\"^/v1beta3/{parent=projects/*/location" + + "s/*/processors/*}/processorVersions:impo" + + "rtProcessorVersion:\001*\032M\312A\031documentai.goo" + + "gleapis.com\322A.https://www.googleapis.com" + + "/auth/cloud-platformB\303\003\n#com.google.clou" + + "d.documentai.v1beta3B\032DocumentAiProcesso" + + "rServiceP\001ZCcloud.google.com/go/document" + + "ai/apiv1beta3/documentaipb;documentaipb\252" + + "\002\037Google.Cloud.DocumentAI.V1Beta3\312\002\037Goog" + + "le\\Cloud\\DocumentAI\\V1beta3\352\002\"Google::Cl" + + "oud::DocumentAI::V1beta3\352A\177\n+documentai." + + "googleapis.com/HumanReviewConfig\022Pprojec" + + "ts/{project}/locations/{location}/proces" + + "sors/{processor}/humanReviewConfig\352AM\n\"d" + + "ocumentai.googleapis.com/Location\022\'proje" + + "cts/{project}/locations/{location}b\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -846,6 +856,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableImageExtraction", "EnableLlmLayoutParsing", "EnableTableAnnotation", + "EnableTableSplit", }); internal_static_google_cloud_documentai_v1beta3_ProcessOptions_LayoutConfig_ChunkingConfig_descriptor = internal_static_google_cloud_documentai_v1beta3_ProcessOptions_LayoutConfig_descriptor @@ -1394,6 +1405,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "CommonMetadata", }); + internal_static_google_cloud_documentai_v1beta3_UpdateProcessorVersionMetadata_descriptor = + getDescriptor().getMessageType(53); + internal_static_google_cloud_documentai_v1beta3_UpdateProcessorVersionMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_documentai_v1beta3_UpdateProcessorVersionMetadata_descriptor, + new java.lang.String[] { + "CommonMetadata", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentId.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentId.java index 2d1fabba2db1..287bf00fc363 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentId.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentId.java @@ -109,7 +109,7 @@ public interface GCSManagedDocumentIdOrBuilder * string cw_doc_id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.DocumentId.GCSManagedDocumentId.cw_doc_id is - * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=140 + * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=129 * @return The cwDocId. */ @java.lang.Deprecated @@ -125,7 +125,7 @@ public interface GCSManagedDocumentIdOrBuilder * string cw_doc_id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.DocumentId.GCSManagedDocumentId.cw_doc_id is - * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=140 + * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=129 * @return The bytes for cwDocId. */ @java.lang.Deprecated @@ -251,7 +251,7 @@ public com.google.protobuf.ByteString getGcsUriBytes() { * string cw_doc_id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.DocumentId.GCSManagedDocumentId.cw_doc_id is - * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=140 + * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=129 * @return The cwDocId. */ @java.lang.Override @@ -278,7 +278,7 @@ public java.lang.String getCwDocId() { * string cw_doc_id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.DocumentId.GCSManagedDocumentId.cw_doc_id is - * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=140 + * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=129 * @return The bytes for cwDocId. */ @java.lang.Override @@ -762,7 +762,7 @@ public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { * string cw_doc_id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.DocumentId.GCSManagedDocumentId.cw_doc_id is - * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=140 + * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=129 * @return The cwDocId. */ @java.lang.Deprecated @@ -788,7 +788,7 @@ public java.lang.String getCwDocId() { * string cw_doc_id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.DocumentId.GCSManagedDocumentId.cw_doc_id is - * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=140 + * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=129 * @return The bytes for cwDocId. */ @java.lang.Deprecated @@ -814,7 +814,7 @@ public com.google.protobuf.ByteString getCwDocIdBytes() { * string cw_doc_id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.DocumentId.GCSManagedDocumentId.cw_doc_id is - * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=140 + * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=129 * @param value The cwDocId to set. * @return This builder for chaining. */ @@ -839,7 +839,7 @@ public Builder setCwDocId(java.lang.String value) { * string cw_doc_id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.DocumentId.GCSManagedDocumentId.cw_doc_id is - * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=140 + * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=129 * @return This builder for chaining. */ @java.lang.Deprecated @@ -860,7 +860,7 @@ public Builder clearCwDocId() { * string cw_doc_id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.DocumentId.GCSManagedDocumentId.cw_doc_id is - * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=140 + * deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=129 * @param value The bytes for cwDocId to set. * @return This builder for chaining. */ diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentIoProto.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentIoProto.java index 23bb27504e7f..b31703fd4b10 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentIoProto.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentIoProto.java @@ -40,6 +40,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_documentai_v1beta3_Documents_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_documentai_v1beta3_Documents_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_documentai_v1beta3_RawDocument_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -56,6 +60,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_documentai_v1beta3_GcsPrefix_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_documentai_v1beta3_GcsPrefix_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_documentai_v1beta3_RawDocuments_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_documentai_v1beta3_RawDocuments_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_documentai_v1beta3_BatchDocumentsInputConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -95,56 +103,70 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n1google/cloud/documentai/v1beta3/docume" + "nt_io.proto\022\037google.cloud.documentai.v1b" - + "eta3\032 google/protobuf/field_mask.proto\"G" - + "\n\013RawDocument\022\017\n\007content\030\001 \001(\014\022\021\n\tmime_t" - + "ype\030\002 \001(\t\022\024\n\014display_name\030\003 \001(\t\"1\n\013GcsDo" - + "cument\022\017\n\007gcs_uri\030\001 \001(\t\022\021\n\tmime_type\030\002 \001" - + "(\t\"O\n\014GcsDocuments\022?\n\tdocuments\030\001 \003(\0132,." - + "google.cloud.documentai.v1beta3.GcsDocum" - + "ent\"#\n\tGcsPrefix\022\026\n\016gcs_uri_prefix\030\001 \001(\t" - + "\"\257\001\n\031BatchDocumentsInputConfig\022@\n\ngcs_pr" - + "efix\030\001 \001(\0132*.google.cloud.documentai.v1b" - + "eta3.GcsPrefixH\000\022F\n\rgcs_documents\030\002 \001(\0132" - + "-.google.cloud.documentai.v1beta3.GcsDoc" - + "umentsH\000B\010\n\006source\"\217\003\n\024DocumentOutputCon" - + "fig\022b\n\021gcs_output_config\030\001 \001(\0132E.google." - + "cloud.documentai.v1beta3.DocumentOutputC" - + "onfig.GcsOutputConfigH\000\032\203\002\n\017GcsOutputCon" - + "fig\022\017\n\007gcs_uri\030\001 \001(\t\022.\n\nfield_mask\030\002 \001(\013" - + "2\032.google.protobuf.FieldMask\022m\n\017sharding" - + "_config\030\003 \001(\0132T.google.cloud.documentai." - + "v1beta3.DocumentOutputConfig.GcsOutputCo" - + "nfig.ShardingConfig\032@\n\016ShardingConfig\022\027\n" - + "\017pages_per_shard\030\001 \001(\005\022\025\n\rpages_overlap\030" - + "\002 \001(\005B\r\n\013destination\"\374\003\n\tOcrConfig\022?\n\005hi" - + "nts\030\002 \001(\01320.google.cloud.documentai.v1be" - + "ta3.OcrConfig.Hints\022!\n\031enable_native_pdf" - + "_parsing\030\003 \001(\010\022#\n\033enable_image_quality_s" - + "cores\030\004 \001(\010\022\034\n\024advanced_ocr_options\030\005 \003(" - + "\t\022\025\n\renable_symbol\030\006 \001(\010\022\036\n\022compute_styl" - + "e_info\030\010 \001(\010B\002\030\001\022)\n!disable_character_bo" - + "xes_detection\030\n \001(\010\022T\n\020premium_features\030" - + "\013 \001(\0132:.google.cloud.documentai.v1beta3." - + "OcrConfig.PremiumFeatures\032\037\n\005Hints\022\026\n\016la" - + "nguage_hints\030\001 \003(\t\032o\n\017PremiumFeatures\022\'\n" - + "\037enable_selection_mark_detection\030\003 \001(\010\022\032" - + "\n\022compute_style_info\030\004 \001(\010\022\027\n\017enable_mat" - + "h_ocr\030\005 \001(\010B\346\001\n#com.google.cloud.documen" - + "tai.v1beta3B\017DocumentIoProtoP\001ZCcloud.go" - + "ogle.com/go/documentai/apiv1beta3/docume" - + "ntaipb;documentaipb\252\002\037Google.Cloud.Docum" - + "entAI.V1Beta3\312\002\037Google\\Cloud\\DocumentAI\\" - + "V1beta3\352\002\"Google::Cloud::DocumentAI::V1b" - + "eta3b\006proto3" + + "eta3\032.google/cloud/documentai/v1beta3/do" + + "cument.proto\032 google/protobuf/field_mask" + + ".proto\"I\n\tDocuments\022<\n\tdocuments\030\001 \003(\0132)" + + ".google.cloud.documentai.v1beta3.Documen" + + "t\"G\n\013RawDocument\022\017\n\007content\030\001 \001(\014\022\021\n\tmim" + + "e_type\030\002 \001(\t\022\024\n\014display_name\030\003 \001(\t\"1\n\013Gc" + + "sDocument\022\017\n\007gcs_uri\030\001 \001(\t\022\021\n\tmime_type\030" + + "\002 \001(\t\"O\n\014GcsDocuments\022?\n\tdocuments\030\001 \003(\013" + + "2,.google.cloud.documentai.v1beta3.GcsDo" + + "cument\"#\n\tGcsPrefix\022\026\n\016gcs_uri_prefix\030\001 " + + "\001(\t\"O\n\014RawDocuments\022?\n\tdocuments\030\001 \003(\0132," + + ".google.cloud.documentai.v1beta3.RawDocu" + + "ment\"\257\001\n\031BatchDocumentsInputConfig\022@\n\ngc" + + "s_prefix\030\001 \001(\0132*.google.cloud.documentai" + + ".v1beta3.GcsPrefixH\000\022F\n\rgcs_documents\030\002 " + + "\001(\0132-.google.cloud.documentai.v1beta3.Gc" + + "sDocumentsH\000B\010\n\006source\"\217\003\n\024DocumentOutpu" + + "tConfig\022b\n\021gcs_output_config\030\001 \001(\0132E.goo" + + "gle.cloud.documentai.v1beta3.DocumentOut" + + "putConfig.GcsOutputConfigH\000\032\203\002\n\017GcsOutpu" + + "tConfig\022\017\n\007gcs_uri\030\001 \001(\t\022.\n\nfield_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMask\022m\n\017shar" + + "ding_config\030\003 \001(\0132T.google.cloud.documen" + + "tai.v1beta3.DocumentOutputConfig.GcsOutp" + + "utConfig.ShardingConfig\032@\n\016ShardingConfi" + + "g\022\027\n\017pages_per_shard\030\001 \001(\005\022\025\n\rpages_over" + + "lap\030\002 \001(\005B\r\n\013destination\"\374\003\n\tOcrConfig\022?" + + "\n\005hints\030\002 \001(\01320.google.cloud.documentai." + + "v1beta3.OcrConfig.Hints\022!\n\031enable_native" + + "_pdf_parsing\030\003 \001(\010\022#\n\033enable_image_quali" + + "ty_scores\030\004 \001(\010\022\034\n\024advanced_ocr_options\030" + + "\005 \003(\t\022\025\n\renable_symbol\030\006 \001(\010\022\036\n\022compute_" + + "style_info\030\010 \001(\010B\002\030\001\022)\n!disable_characte" + + "r_boxes_detection\030\n \001(\010\022T\n\020premium_featu" + + "res\030\013 \001(\0132:.google.cloud.documentai.v1be" + + "ta3.OcrConfig.PremiumFeatures\032\037\n\005Hints\022\026" + + "\n\016language_hints\030\001 \003(\t\032o\n\017PremiumFeature" + + "s\022\'\n\037enable_selection_mark_detection\030\003 \001" + + "(\010\022\032\n\022compute_style_info\030\004 \001(\010\022\027\n\017enable" + + "_math_ocr\030\005 \001(\010B\346\001\n#com.google.cloud.doc" + + "umentai.v1beta3B\017DocumentIoProtoP\001ZCclou" + + "d.google.com/go/documentai/apiv1beta3/do" + + "cumentaipb;documentaipb\252\002\037Google.Cloud.D" + + "ocumentAI.V1Beta3\312\002\037Google\\Cloud\\Documen" + + "tAI\\V1beta3\352\002\"Google::Cloud::DocumentAI:" + + ":V1beta3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.documentai.v1beta3.DocumentProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), }); - internal_static_google_cloud_documentai_v1beta3_RawDocument_descriptor = + internal_static_google_cloud_documentai_v1beta3_Documents_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_documentai_v1beta3_Documents_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_documentai_v1beta3_Documents_descriptor, + new java.lang.String[] { + "Documents", + }); + internal_static_google_cloud_documentai_v1beta3_RawDocument_descriptor = + getDescriptor().getMessageType(1); internal_static_google_cloud_documentai_v1beta3_RawDocument_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_documentai_v1beta3_RawDocument_descriptor, @@ -152,7 +174,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Content", "MimeType", "DisplayName", }); internal_static_google_cloud_documentai_v1beta3_GcsDocument_descriptor = - getDescriptor().getMessageType(1); + getDescriptor().getMessageType(2); internal_static_google_cloud_documentai_v1beta3_GcsDocument_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_documentai_v1beta3_GcsDocument_descriptor, @@ -160,7 +182,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GcsUri", "MimeType", }); internal_static_google_cloud_documentai_v1beta3_GcsDocuments_descriptor = - getDescriptor().getMessageType(2); + getDescriptor().getMessageType(3); internal_static_google_cloud_documentai_v1beta3_GcsDocuments_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_documentai_v1beta3_GcsDocuments_descriptor, @@ -168,15 +190,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Documents", }); internal_static_google_cloud_documentai_v1beta3_GcsPrefix_descriptor = - getDescriptor().getMessageType(3); + getDescriptor().getMessageType(4); internal_static_google_cloud_documentai_v1beta3_GcsPrefix_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_documentai_v1beta3_GcsPrefix_descriptor, new java.lang.String[] { "GcsUriPrefix", }); + internal_static_google_cloud_documentai_v1beta3_RawDocuments_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_documentai_v1beta3_RawDocuments_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_documentai_v1beta3_RawDocuments_descriptor, + new java.lang.String[] { + "Documents", + }); internal_static_google_cloud_documentai_v1beta3_BatchDocumentsInputConfig_descriptor = - getDescriptor().getMessageType(4); + getDescriptor().getMessageType(6); internal_static_google_cloud_documentai_v1beta3_BatchDocumentsInputConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_documentai_v1beta3_BatchDocumentsInputConfig_descriptor, @@ -184,7 +214,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GcsPrefix", "GcsDocuments", "Source", }); internal_static_google_cloud_documentai_v1beta3_DocumentOutputConfig_descriptor = - getDescriptor().getMessageType(5); + getDescriptor().getMessageType(7); internal_static_google_cloud_documentai_v1beta3_DocumentOutputConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_documentai_v1beta3_DocumentOutputConfig_descriptor, @@ -210,7 +240,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PagesPerShard", "PagesOverlap", }); internal_static_google_cloud_documentai_v1beta3_OcrConfig_descriptor = - getDescriptor().getMessageType(6); + getDescriptor().getMessageType(8); internal_static_google_cloud_documentai_v1beta3_OcrConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_documentai_v1beta3_OcrConfig_descriptor, @@ -241,6 +271,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableSelectionMarkDetection", "ComputeStyleInfo", "EnableMathOcr", }); descriptor.resolveAllFeaturesImmutable(); + com.google.cloud.documentai.v1beta3.DocumentProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentOrBuilder.java index 77908f690eda..b102420be500 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentOrBuilder.java @@ -948,7 +948,7 @@ com.google.cloud.documentai.v1beta3.Document.TextChangeOrBuilder getTextChangesO * The entity revision ID that `document.entities` field is based on. * If this field is set and `entities_revisions` is not empty, the entities in * `document.entities` field are the entities in the entity revision with this - * ID and `document.entity_validation_output` field is the + * id and `document.entity_validation_output` field is the * `entity_validation_output` field in this entity revision. * * @@ -965,7 +965,7 @@ com.google.cloud.documentai.v1beta3.Document.TextChangeOrBuilder getTextChangesO * The entity revision ID that `document.entities` field is based on. * If this field is set and `entities_revisions` is not empty, the entities in * `document.entities` field are the entities in the entity revision with this - * ID and `document.entity_validation_output` field is the + * id and `document.entity_validation_output` field is the * `entity_validation_output` field in this entity revision. * * diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProto.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProto.java index f246cd5b871e..47e7908dc1d6 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProto.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProto.java @@ -295,13 +295,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n" + ".google/cloud/documentai/v1beta3/document.proto\022\037google.cloud.documentai.v1beta" - + "3\032\037google/api/field_behavior.proto\032-goog" - + "le/cloud/documentai/v1beta3/barcode.proto\032.google/cloud/documentai/v1beta3/geome" - + "try.proto\032\037google/protobuf/timestamp.pro" - + "to\032\027google/rpc/status.proto\032\027google/type" - + "/color.proto\032\026google/type/date.proto\032\032go" - + "ogle/type/datetime.proto\032\027google/type/money.proto\032" - + " google/type/postal_address.proto\"\335p\n" + + "3\032\037google/api/field_behavior.proto\032\031goog" + + "le/api/resource.proto\032-google/cloud/documentai/v1beta3/barcode.proto\032.google/clo" + + "ud/documentai/v1beta3/geometry.proto\032\037go" + + "ogle/protobuf/timestamp.proto\032\027google/rp" + + "c/status.proto\032\027google/type/color.proto\032" + + "\026google/type/date.proto\032\032google/type/datetime.proto\032\027google/type/money.proto\032" + + " google/type/postal_address.proto\"\254q\n" + "\010Document\022\022\n" + "\003uri\030\001 \001(\tB\003\340A\001H\000\022\026\n" + "\007content\030\002 \001(\014B\003\340A\001H\000\022\022\n" @@ -311,42 +311,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013text_styles\030\005" + " \003(\0132/.google.cloud.documentai.v1beta3.Document.StyleB\002\030\001\022=\n" + "\005pages\030\006 \003(\0132..google.cloud.documentai.v1beta3.Document.Page\022B\n" - + "\010entities\030\007 \003(\01320.goog" - + "le.cloud.documentai.v1beta3.Document.Entity\022R\n" - + "\020entity_relations\030\010 \003(\01328.google.c" - + "loud.documentai.v1beta3.Document.EntityRelation\022J\n" - + "\014text_changes\030\016 \003(\01324.google.c" - + "loud.documentai.v1beta3.Document.TextChange\022G\n\n" + + "\010entities\030\007" + + " \003(\01320.google.cloud.documentai.v1beta3.Document.Entity\022R\n" + + "\020entity_relations\030\010" + + " \003(\01328.google.cloud.documentai.v1beta3.Document.EntityRelation\022J\n" + + "\014text_changes\030\016" + + " \003(\01324.google.cloud.documentai.v1beta3.Document.TextChange\022G\n\n" + "shard_info\030\t \001(\01323.google.cloud.documentai.v1beta3.Document.ShardInfo\022!\n" + "\005error\030\n" + " \001(\0132\022.google.rpc.Status\022E\n" + "\trevisions\030\r" + " \003(\01322.google.cloud.documentai.v1beta3.Document.Revision\022Q\n" - + "\017document_layout\030\021" - + " \001(\01328.google.cloud.documentai.v1beta3.Document.DocumentLayout\022S\n" - + "\020chunked_document\030\022" - + " \001(\01329.google.cloud.documentai.v1beta3.Document.ChunkedDocument\022M\n" - + "\013blob_assets\030\023" - + " \003(\01323.google.cloud.documentai.v1beta3.Document.BlobAssetB\003\340A\001\022b\n" - + "\030entity_validation_output\030\025 \001(\0132@.google.cloud.d" - + "ocumentai.v1beta3.Document.EntityValidationOutput\022V\n" - + "\022entities_revisions\030\026 \003(\0132:." - + "google.cloud.documentai.v1beta3.Document.EntitiesRevision\022\034\n" + + "\017document_layout\030\021 \001(\01328.goo" + + "gle.cloud.documentai.v1beta3.Document.DocumentLayout\022S\n" + + "\020chunked_document\030\022 \001(\01329" + + ".google.cloud.documentai.v1beta3.Document.ChunkedDocument\022M\n" + + "\013blob_assets\030\023 \003(\01323" + + ".google.cloud.documentai.v1beta3.Document.BlobAssetB\003\340A\001\022b\n" + + "\030entity_validation_output\030\025" + + " \001(\0132@.google.cloud.documentai.v1beta3.Document.EntityValidationOutput\022V\n" + + "\022entities_revisions\030\026 \003(\0132:.google.cloud." + + "documentai.v1beta3.Document.EntitiesRevision\022\034\n" + "\024entities_revision_id\030\027 \001(\t\032J\n" + "\tShardInfo\022\023\n" + "\013shard_index\030\001 \001(\003\022\023\n" + "\013shard_count\030\002 \001(\003\022\023\n" + "\013text_offset\030\003 \001(\003\032\357\002\n" + "\005Style\022I\n" - + "\013text_anchor\030\001 \001(\01324.goo" - + "gle.cloud.documentai.v1beta3.Document.TextAnchor\022!\n" + + "\013text_anchor\030\001" + + " \001(\01324.google.cloud.documentai.v1beta3.Document.TextAnchor\022!\n" + "\005color\030\002 \001(\0132\022.google.type.Color\022,\n" + "\020background_color\030\003 \001(\0132\022.google.type.Color\022\023\n" + "\013font_weight\030\004 \001(\t\022\022\n\n" + "text_style\030\005 \001(\t\022\027\n" + "\017text_decoration\030\006 \001(\t\022K\n" - + "\tfont_size\030\007" - + " \001(\01328.google.cloud.documentai.v1beta3.Document.Style.FontSize\022\023\n" + + "\tfont_size\030\007 \001(" + + "\01328.google.cloud.documentai.v1beta3.Document.Style.FontSize\022\023\n" + "\013font_family\030\010 \001(\t\032&\n" + "\010FontSize\022\014\n" + "\004size\030\001 \001(\002\022\014\n" @@ -355,36 +355,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013page_number\030\001 \001(\005\022C\n" + "\005image\030\r" + " \001(\01324.google.cloud.documentai.v1beta3.Document.Page.Image\022I\n\n" - + "transforms\030\016" - + " \003(\01325.google.cloud.documentai.v1beta3.Document.Page.Matrix\022K\n" - + "\tdimension\030\002" - + " \001(\01328.google.cloud.documentai.v1beta3.Document.Page.Dimension\022E\n" - + "\006layout\030\003 \001(\013" - + "25.google.cloud.documentai.v1beta3.Document.Page.Layout\022[\n" - + "\022detected_languages\030\004 " - + "\003(\0132?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\022D\n" - + "\006blocks\030\005" - + " \003(\01324.google.cloud.documentai.v1beta3.Document.Page.Block\022L\n\n" - + "paragraphs\030\006 \003(\01328" - + ".google.cloud.documentai.v1beta3.Document.Page.Paragraph\022B\n" - + "\005lines\030\007 \003(\01323.google" - + ".cloud.documentai.v1beta3.Document.Page.Line\022D\n" + + "transforms\030\016 \003(\0132" + + "5.google.cloud.documentai.v1beta3.Document.Page.Matrix\022K\n" + + "\tdimension\030\002 \001(\01328.goog" + + "le.cloud.documentai.v1beta3.Document.Page.Dimension\022E\n" + + "\006layout\030\003 \001(\01325.google.clo" + + "ud.documentai.v1beta3.Document.Page.Layout\022[\n" + + "\022detected_languages\030\004 \003(\0132?.google." + + "cloud.documentai.v1beta3.Document.Page.DetectedLanguage\022D\n" + + "\006blocks\030\005 \003(\01324.google" + + ".cloud.documentai.v1beta3.Document.Page.Block\022L\n\n" + + "paragraphs\030\006 \003(\01328.google.cloud" + + ".documentai.v1beta3.Document.Page.Paragraph\022B\n" + + "\005lines\030\007" + + " \003(\01323.google.cloud.documentai.v1beta3.Document.Page.Line\022D\n" + "\006tokens\030\010" + " \003(\01324.google.cloud.documentai.v1beta3.Document.Page.Token\022U\n" - + "\017visual_elements\030\t \003(\0132<.google.cloud.docum" - + "entai.v1beta3.Document.Page.VisualElement\022D\n" + + "\017visual_elements\030\t" + + " \003(\0132<.google.cloud.documentai.v1beta3.Document.Page.VisualElement\022D\n" + "\006tables\030\n" + " \003(\01324.google.cloud.documentai.v1beta3.Document.Page.Table\022M\n" - + "\013form_fields\030\013" - + " \003(\01328.google.cloud.documentai.v1beta3.Document.Page.FormField\022F\n" - + "\007symbols\030\014" - + " \003(\01325.google.cloud.documentai.v1beta3.Document.Page.Symbol\022Y\n" - + "\021detected_barcodes\030\017" - + " \003(\0132>.google.cloud.documentai.v1beta3.Document.Page.DetectedBarcode\022_\n" - + "\024image_quality_scores\030\021 \001(\0132A.google.cloud.d" - + "ocumentai.v1beta3.Document.Page.ImageQualityScores\022L\n\n" - + "provenance\030\020 \001(\01324.google." - + "cloud.documentai.v1beta3.Document.ProvenanceB\002\030\001\0328\n" + + "\013form_fields\030\013 \003(\0132" + + "8.google.cloud.documentai.v1beta3.Document.Page.FormField\022F\n" + + "\007symbols\030\014 \003(\01325.goo" + + "gle.cloud.documentai.v1beta3.Document.Page.Symbol\022Y\n" + + "\021detected_barcodes\030\017 \003(\0132>.g" + + "oogle.cloud.documentai.v1beta3.Document.Page.DetectedBarcode\022_\n" + + "\024image_quality_scores\030\021" + + " \001(\0132A.google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores\022L\n" + + "\n" + + "provenance\030\020" + + " \001(\01324.google.cloud.documentai.v1beta3.Document.ProvenanceB\002\030\001\0328\n" + "\tDimension\022\r\n" + "\005width\030\001 \001(\002\022\016\n" + "\006height\030\002 \001(\002\022\014\n" @@ -400,12 +401,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004type\030\003 \001(\005\022\014\n" + "\004data\030\004 \001(\014\032\354\002\n" + "\006Layout\022I\n" - + "\013text_anchor\030\001 \001(\013" - + "24.google.cloud.documentai.v1beta3.Document.TextAnchor\022\022\n\n" + + "\013text_anchor\030\001 \001(\01324.google.clo" + + "ud.documentai.v1beta3.Document.TextAnchor\022\022\n\n" + "confidence\030\002 \001(\002\022D\n\r" + "bounding_poly\030\003 \001(\0132-.google.cloud.documentai.v1beta3.BoundingPoly\022V\n" - + "\013orientation\030\004" - + " \001(\0162A.google.cloud.documentai.v1beta3.Document.Page.Layout.Orientation\"e\n" + + "\013orientation\030\004 \001(\0162A.googl" + + "e.cloud.documentai.v1beta3.Document.Page.Layout.Orientation\"e\n" + "\013Orientation\022\033\n" + "\027ORIENTATION_UNSPECIFIED\020\000\022\013\n" + "\007PAGE_UP\020\001\022\016\n\n" @@ -413,40 +414,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tPAGE_DOWN\020\003\022\r\n" + "\tPAGE_LEFT\020\004\032\371\001\n" + "\005Block\022E\n" - + "\006layout\030\001 \001(" - + "\01325.google.cloud.documentai.v1beta3.Document.Page.Layout\022[\n" - + "\022detected_languages\030\002" - + " \003(\0132?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\022L\n\n" - + "provenance\030\003" - + " \001(\01324.google.cloud.documentai.v1beta3.Document.ProvenanceB\002\030\001\032\375\001\n" - + "\tParagraph\022E\n" - + "\006layout\030\001" - + " \001(\01325.google.cloud.documentai.v1beta3.Document.Page.Layout\022[\n" - + "\022detected_languages\030\002 \003(\0132?.google.cloud.docu" - + "mentai.v1beta3.Document.Page.DetectedLanguage\022L\n\n" - + "provenance\030\003 \001(\01324.google.cloud" - + ".documentai.v1beta3.Document.ProvenanceB\002\030\001\032\370\001\n" - + "\004Line\022E\n" + "\006layout\030\001 \001(\01325.google.cl" + "oud.documentai.v1beta3.Document.Page.Layout\022[\n" + "\022detected_languages\030\002 \003(\0132?.google" + ".cloud.documentai.v1beta3.Document.Page.DetectedLanguage\022L\n\n" + "provenance\030\003 \001(\01324.g" - + "oogle.cloud.documentai.v1beta3.Document.ProvenanceB\002\030\001\032\274\007\n" + + "oogle.cloud.documentai.v1beta3.Document.ProvenanceB\002\030\001\032\375\001\n" + + "\tParagraph\022E\n" + + "\006layout\030\001" + + " \001(\01325.google.cloud.documentai.v1beta3.Document.Page.Layout\022[\n" + + "\022detected_languages\030\002" + + " \003(\0132?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\022L\n\n" + + "provenance\030\003" + + " \001(\01324.google.cloud.documentai.v1beta3.Document.ProvenanceB\002\030\001\032\370\001\n" + + "\004Line\022E\n" + + "\006layout\030\001" + + " \001(\01325.google.cloud.documentai.v1beta3.Document.Page.Layout\022[\n" + + "\022detected_languages\030\002 \003(\0132?.google.cloud.docume" + + "ntai.v1beta3.Document.Page.DetectedLanguage\022L\n\n" + + "provenance\030\003 \001(\01324.google.cloud.d" + + "ocumentai.v1beta3.Document.ProvenanceB\002\030\001\032\274\007\n" + "\005Token\022E\n" - + "\006layout\030\001 \001(\013" - + "25.google.cloud.documentai.v1beta3.Document.Page.Layout\022Z\n" - + "\016detected_break\030\002 \001(\0132" - + "B.google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak\022[\n" - + "\022detected_languages\030\003 \003(\0132?.google.cloud.documenta" - + "i.v1beta3.Document.Page.DetectedLanguage\022L\n\n" - + "provenance\030\004 \001(\01324.google.cloud.docu" - + "mentai.v1beta3.Document.ProvenanceB\002\030\001\022R\n\n" - + "style_info\030\005 \001(\0132>.google.cloud.docume" - + "ntai.v1beta3.Document.Page.Token.StyleInfo\032\253\001\n\r" + + "\006layout\030\001 \001(\01325.google.clo" + + "ud.documentai.v1beta3.Document.Page.Layout\022Z\n" + + "\016detected_break\030\002 \001(\0132B.google.clou" + + "d.documentai.v1beta3.Document.Page.Token.DetectedBreak\022[\n" + + "\022detected_languages\030\003 \003" + + "(\0132?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\022L\n\n" + + "provenance\030\004" + + " \001(\01324.google.cloud.documentai.v1beta3.Document.ProvenanceB\002\030\001\022R\n\n" + + "style_info\030\005" + + " \001(\0132>.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo\032\253\001\n\r" + "DetectedBreak\022U\n" - + "\004type\030\001 \001(\0162G.goo" - + "gle.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.Type\"C\n" + + "\004type\030\001 \001(\0162G.google.cloud.doc" + + "umentai.v1beta3.Document.Page.Token.DetectedBreak.Type\"C\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\t\n" + "\005SPACE\020\001\022\016\n\n" @@ -471,51 +472,51 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "text_color\030\016 \001(\0132\022.google.type.Color\022,\n" + "\020background_color\030\017 \001(\0132\022.google.type.Color\032\254\001\n" + "\006Symbol\022E\n" - + "\006layout\030\001 \001(\013" - + "25.google.cloud.documentai.v1beta3.Document.Page.Layout\022[\n" - + "\022detected_languages\030\002 " - + "\003(\0132?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\032\301\001\n\r" + + "\006layout\030\001 \001(\01325.google.clo" + + "ud.documentai.v1beta3.Document.Page.Layout\022[\n" + + "\022detected_languages\030\002 \003(\0132?.google." + + "cloud.documentai.v1beta3.Document.Page.DetectedLanguage\032\301\001\n\r" + "VisualElement\022E\n" + "\006layout\030\001" + " \001(\01325.google.cloud.documentai.v1beta3.Document.Page.Layout\022\014\n" + "\004type\030\002 \001(\t\022[\n" - + "\022detected_languages\030\003 \003(\0132" - + "?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\032\320\005\n" + + "\022detected_languages\030\003 \003(\0132?.google.clou" + + "d.documentai.v1beta3.Document.Page.DetectedLanguage\032\320\005\n" + "\005Table\022E\n" - + "\006layout\030\001" - + " \001(\01325.google.cloud.documentai.v1beta3.Document.Page.Layout\022R\n" - + "\013header_rows\030\002" - + " \003(\0132=.google.cloud.documentai.v1beta3.Document.Page.Table.TableRow\022P\n" - + "\tbody_rows\030\003" - + " \003(\0132=.google.cloud.documentai.v1beta3.Document.Page.Table.TableRow\022[\n" - + "\022detected_languages\030\004 \003(\0132?.google.cloud.docum" - + "entai.v1beta3.Document.Page.DetectedLanguage\022L\n\n" - + "provenance\030\005 \001(\01324.google.cloud." - + "documentai.v1beta3.Document.ProvenanceB\002\030\001\032Y\n" + + "\006layout\030\001 \001(\01325." + + "google.cloud.documentai.v1beta3.Document.Page.Layout\022R\n" + + "\013header_rows\030\002 \003(\0132=.goog" + + "le.cloud.documentai.v1beta3.Document.Page.Table.TableRow\022P\n" + + "\tbody_rows\030\003 \003(\0132=.go" + + "ogle.cloud.documentai.v1beta3.Document.Page.Table.TableRow\022[\n" + + "\022detected_languages\030\004" + + " \003(\0132?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\022L\n\n" + + "provenance\030\005" + + " \001(\01324.google.cloud.documentai.v1beta3.Document.ProvenanceB\002\030\001\032Y\n" + "\010TableRow\022M\n" - + "\005cells\030\001 \003(\0132>.google.c" - + "loud.documentai.v1beta3.Document.Page.Table.TableCell\032\323\001\n" + + "\005cells\030\001 \003(\0132>.google.cloud.document" + + "ai.v1beta3.Document.Page.Table.TableCell\032\323\001\n" + "\tTableCell\022E\n" - + "\006layout\030\001 " - + "\001(\01325.google.cloud.documentai.v1beta3.Document.Page.Layout\022\020\n" + + "\006layout\030\001 \001(\01325.google." + + "cloud.documentai.v1beta3.Document.Page.Layout\022\020\n" + "\010row_span\030\002 \001(\005\022\020\n" + "\010col_span\030\003 \001(\005\022[\n" - + "\022detected_languages\030\004 \003" - + "(\0132?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\032\377\003\n" + + "\022detected_languages\030\004 \003(\0132?.google.c" + + "loud.documentai.v1beta3.Document.Page.DetectedLanguage\032\377\003\n" + "\tFormField\022I\n\n" + "field_name\030\001" + " \001(\01325.google.cloud.documentai.v1beta3.Document.Page.Layout\022J\n" + "\013field_value\030\002" + " \001(\01325.google.cloud.documentai.v1beta3.Document.Page.Layout\022`\n" - + "\027name_detected_languages\030\003 \003(\0132?.google.cloud" - + ".documentai.v1beta3.Document.Page.DetectedLanguage\022a\n" - + "\030value_detected_languages\030\004" - + " \003(\0132?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\022\022\n\n" + + "\027name_detected_languages\030\003" + + " \003(\0132?.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage\022a\n" + + "\030value_detected_languages\030\004 \003(\0132?.google" + + ".cloud.documentai.v1beta3.Document.Page.DetectedLanguage\022\022\n\n" + "value_type\030\005 \001(\t\022\032\n" + "\022corrected_key_text\030\006 \001(\t\022\034\n" + "\024corrected_value_text\030\007 \001(\t\022H\n\n" - + "provenance\030\010" - + " \001(\01324.google.cloud.documentai.v1beta3.Document.Provenance\032\223\001\n" + + "provenance\030\010 \001(\01324.goo" + + "gle.cloud.documentai.v1beta3.Document.Provenance\032\223\001\n" + "\017DetectedBarcode\022E\n" + "\006layout\030\001" + " \001(\01325.google.cloud.documentai.v1beta3.Document.Page.Layout\0229\n" @@ -525,30 +526,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "confidence\030\002 \001(\002\032\313\001\n" + "\022ImageQualityScores\022\025\n\r" + "quality_score\030\001 \001(\002\022j\n" - + "\020detected_defects\030\002 \003(\0132P.google.clou" - + "d.documentai.v1beta3.Document.Page.ImageQualityScores.DetectedDefect\0322\n" + + "\020detected_defects\030\002 \003(\0132P.google.cloud.documentai." + + "v1beta3.Document.Page.ImageQualityScores.DetectedDefect\0322\n" + "\016DetectedDefect\022\014\n" + "\004type\030\001 \001(\t\022\022\n\n" + "confidence\030\002 \001(\002\032\215\010\n" + "\006Entity\022N\n" - + "\013text_anchor\030\001 \001(\01324.googl" - + "e.cloud.documentai.v1beta3.Document.TextAnchorB\003\340A\001\022\021\n" + + "\013text_anchor\030\001 \001(\01324.google.cloud.docum" + + "entai.v1beta3.Document.TextAnchorB\003\340A\001\022\021\n" + "\004type\030\002 \001(\tB\003\340A\002\022\031\n" + "\014mention_text\030\003 \001(\tB\003\340A\001\022\027\n\n" + "mention_id\030\004 \001(\tB\003\340A\001\022\027\n\n" + "confidence\030\005 \001(\002B\003\340A\001\022N\n" - + "\013page_anchor\030\006" - + " \001(\01324.google.cloud.documentai.v1beta3.Document.PageAnchorB\003\340A\001\022\017\n" + + "\013page_anchor\030\006 \001(\01324.go" + + "ogle.cloud.documentai.v1beta3.Document.PageAnchorB\003\340A\001\022\017\n" + "\002id\030\007 \001(\tB\003\340A\001\022_\n" - + "\020normalized_value\030\t \001(\0132@.google." - + "cloud.documentai.v1beta3.Document.Entity.NormalizedValueB\003\340A\001\022I\n\n" + + "\020normalized_value\030\t \001(\0132@.google.cloud.documen" + + "tai.v1beta3.Document.Entity.NormalizedValueB\003\340A\001\022I\n\n" + "properties\030\n" + " \003(\01320.google.cloud.documentai.v1beta3.Document.EntityB\003\340A\001\022M\n\n" - + "provenance\030\013 \001(\01324.g" - + "oogle.cloud.documentai.v1beta3.Document.ProvenanceB\003\340A\001\022\025\n" + + "provenance\030\013 \001(\01324.google.cloud.d" + + "ocumentai.v1beta3.Document.ProvenanceB\003\340A\001\022\025\n" + "\010redacted\030\014 \001(\010B\003\340A\001\022L\n" - + "\006method\030\017" - + " \001(\01627.google.cloud.documentai.v1beta3.Document.Entity.MethodB\003\340A\001\032\326\002\n" + + "\006method\030\017 \001(" + + "\01627.google.cloud.documentai.v1beta3.Document.Entity.MethodB\003\340A\001\032\326\002\n" + "\017NormalizedValue\022)\n" + "\013money_value\030\002 \001(\0132\022.google.type.MoneyH\000\022\'\n\n" + "date_value\030\003 \001(\0132\021.google.type.DateH\000\022/\n" @@ -569,23 +570,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "subject_id\030\001 \001(\t\022\021\n" + "\tobject_id\030\002 \001(\t\022\020\n" + "\010relation\030\003 \001(\t\032\255\001\n\n" - + "TextAnchor\022W\n\r" - + "text_segments\030\001 \003(\0132@.goog" - + "le.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment\022\017\n" + + "TextAnchor\022W\n" + + "\r" + + "text_segments\030\001 \003(\0132@.google.cloud.docu" + + "mentai.v1beta3.Document.TextAnchor.TextSegment\022\017\n" + "\007content\030\002 \001(\t\0325\n" + "\013TextSegment\022\023\n" + "\013start_index\030\001 \001(\003\022\021\n" + "\tend_index\030\002 \001(\003\032\347\003\n\n" + "PageAnchor\022O\n" - + "\tpage_refs\030\001" - + " \003(\0132<.google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef\032\207\003\n" + + "\tpage_refs\030\001 \003(\0132<.googl" + + "e.cloud.documentai.v1beta3.Document.PageAnchor.PageRef\032\207\003\n" + "\007PageRef\022\021\n" + "\004page\030\001 \001(\003B\003\340A\002\022a\n" - + "\013layout_type\030\002 \001(\0162" - + "G.google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.LayoutTypeB\003\340A\001\022\030\n" + + "\013layout_type\030\002 \001(\0162G.google.clou" + + "d.documentai.v1beta3.Document.PageAnchor.PageRef.LayoutTypeB\003\340A\001\022\030\n" + "\tlayout_id\030\003 \001(\tB\005\030\001\340A\001\022I\n\r" - + "bounding_poly\030\004" - + " \001(\0132-.google.cloud.documentai.v1beta3.BoundingPolyB\003\340A\001\022\027\n\n" + + "bounding_poly\030\004 \001(\0132-.goog" + + "le.cloud.documentai.v1beta3.BoundingPolyB\003\340A\001\022\027\n\n" + "confidence\030\005 \001(\002B\003\340A\001\"\207\001\n\n" + "LayoutType\022\033\n" + "\027LAYOUT_TYPE_UNSPECIFIED\020\000\022\t\n" @@ -599,10 +601,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "Provenance\022\024\n" + "\010revision\030\001 \001(\005B\002\030\001\022\016\n" + "\002id\030\002 \001(\005B\002\030\001\022L\n" - + "\007parents\030\003" - + " \003(\0132;.google.cloud.documentai.v1beta3.Document.Provenance.Parent\022P\n" - + "\004type\030\004" - + " \001(\0162B.google.cloud.documentai.v1beta3.Document.Provenance.OperationType\0329\n" + + "\007parents\030\003 \003(\0132;" + + ".google.cloud.documentai.v1beta3.Document.Provenance.Parent\022P\n" + + "\004type\030\004 \001(\0162B.goog" + + "le.cloud.documentai.v1beta3.Document.Provenance.OperationType\0329\n" + "\006Parent\022\020\n" + "\010revision\030\001 \001(\005\022\r\n" + "\005index\030\003 \001(\005\022\016\n" @@ -623,36 +625,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\002 \003(\005B\002\030\001\022\022\n\n" + "parent_ids\030\007 \003(\t\022/\n" + "\013create_time\030\003 \001(\0132\032.google.protobuf.Timestamp\022T\n" - + "\014human_review\030\006 \001(\0132>.googl" - + "e.cloud.documentai.v1beta3.Document.Revision.HumanReview\0323\n" + + "\014human_review\030\006 \001(\0132>.google.cloud.docum" + + "entai.v1beta3.Document.Revision.HumanReview\0323\n" + "\013HumanReview\022\r\n" + "\005state\030\001 \001(\t\022\025\n\r" + "state_message\030\002 \001(\tB\010\n" + "\006source\032\273\001\n\n" + "TextChange\022I\n" - + "\013text_anchor\030\001 \001(\01324.go" - + "ogle.cloud.documentai.v1beta3.Document.TextAnchor\022\024\n" + + "\013text_anchor\030\001" + + " \001(\01324.google.cloud.documentai.v1beta3.Document.TextAnchor\022\024\n" + "\014changed_text\030\002 \001(\t\022L\n\n" - + "provenance\030\003" - + " \003(\01324.google.cloud.documentai.v1beta3.Document.ProvenanceB\002\030\001\032\"\n" + + "provenance\030\003 \003(\01324" + + ".google.cloud.documentai.v1beta3.Document.ProvenanceB\002\030\001\032\"\n" + "\013Annotations\022\023\n" + "\013description\030\001 \001(\t\032\223\021\n" + "\016DocumentLayout\022\\\n" - + "\006blocks\030\001 \003(\0132L.google.cloud.docu" - + "mentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock\032\242\020\n" + + "\006blocks\030\001 \003(\0132L.google.cloud.documentai.v1beta" + + "3.Document.DocumentLayout.DocumentLayoutBlock\032\242\020\n" + "\023DocumentLayoutBlock\022r\n\n" - + "text_block\030\002 \001(\0132\\.google.cloud.do" - + "cumentai.v1beta3.Document.DocumentLayout" - + ".DocumentLayoutBlock.LayoutTextBlockH\000\022t\n" - + "\013table_block\030\003 \001(\0132].google.cloud.docum" - + "entai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableBlockH\000\022r\n\n" - + "list_block\030\004 \001(\0132\\.google.cloud.document" - + "ai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlockH\000\022t\n" - + "\013image_block\030\007 \001(\0132].google.cloud.documentai." - + "v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutImageBlockH\000\022\020\n" + + "text_block\030\002 \001(\0132\\.google.cloud.documentai.v1be" + + "ta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlockH\000\022t\n" + + "\013table_block\030\003 \001(\0132].google.cloud.documentai.v1beta3" + + ".Document.DocumentLayout.DocumentLayoutBlock.LayoutTableBlockH\000\022r\n\n" + + "list_block\030\004 \001(\0132\\.google.cloud.documentai.v1beta3.Do" + + "cument.DocumentLayout.DocumentLayoutBlock.LayoutListBlockH\000\022t\n" + + "\013image_block\030\007 \001(\0132].google.cloud.documentai.v1beta3.Docum" + + "ent.DocumentLayout.DocumentLayoutBlock.LayoutImageBlockH\000\022\020\n" + "\010block_id\030\001 \001(\t\022n\n" - + "\tpage_span\030\005 \001(\0132[.google.cloud.documentai.v1beta3.Document.DocumentL" - + "ayout.DocumentLayoutBlock.LayoutPageSpan\022C\n" + + "\tpage_span\030\005 \001(\0132[.google.cloud.documentai" + + ".v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutPageSpan\022C\n" + "\014bounding_box\030\006" + " \001(\0132-.google.cloud.documentai.v1beta3.BoundingPoly\0326\n" + "\016LayoutPageSpan\022\022\n\n" @@ -661,118 +662,119 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017LayoutTextBlock\022\014\n" + "\004text\030\001 \001(\t\022\014\n" + "\004type\030\002 \001(\t\022\\\n" - + "\006blocks\030\003 \003(\0132L.google.c" - + "loud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock\022J\n" - + "\013annotations\030\004" - + " \001(\01325.google.cloud.documentai.v1beta3.Document.Annotations\032\321\002\n" + + "\006blocks\030\003 \003(\0132L.google.cloud.document" + + "ai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock\022J\n" + + "\013annotations\030\004 \001(\01325.go" + + "ogle.cloud.documentai.v1beta3.Document.Annotations\032\321\002\n" + "\020LayoutTableBlock\022p\n" - + "\013header_rows\030\001 \003(\0132[.google.cloud" - + ".documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableRow\022n\n" - + "\tbody_rows\030\002 \003(\0132[.google.cloud.documen" - + "tai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableRow\022\017\n" + + "\013header_rows\030\001 \003(\0132[.google.cloud.documentai.v" + + "1beta3.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableRow\022n\n" + + "\tbody_rows\030\002 \003(\0132[.google.cloud.documentai.v1beta3.D" + + "ocument.DocumentLayout.DocumentLayoutBlock.LayoutTableRow\022\017\n" + "\007caption\030\003 \001(\t\022J\n" - + "\013annotations\030\004 \001(\01325.google.cl" - + "oud.documentai.v1beta3.Document.Annotations\032}\n" + + "\013annotations\030\004" + + " \001(\01325.google.cloud.documentai.v1beta3.Document.Annotations\032}\n" + "\016LayoutTableRow\022k\n" - + "\005cells\030\001 \003(\0132\\.google.cloud.documentai.v1beta3.Document." - + "DocumentLayout.DocumentLayoutBlock.LayoutTableCell\032\223\001\n" + + "\005cells\030\001 \003(\0132\\.google.cloud.documentai.v1beta3.Document.DocumentLayou" + + "t.DocumentLayoutBlock.LayoutTableCell\032\223\001\n" + "\017LayoutTableCell\022\\\n" - + "\006blocks\030\001 \003(\0132L.google.cloud.documentai.v1beta3" - + ".Document.DocumentLayout.DocumentLayoutBlock\022\020\n" + + "\006blocks\030\001 \003(\0132L.goog" + + "le.cloud.documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock\022\020\n" + "\010row_span\030\002 \001(\005\022\020\n" + "\010col_span\030\003 \001(\005\032\223\001\n" + "\017LayoutListBlock\022r\n" - + "\014list_entries\030\001 \003(\0132\\.google.cloud.documentai.v1beta3.Doc" - + "ument.DocumentLayout.DocumentLayoutBlock.LayoutListEntry\022\014\n" + + "\014list_entries\030\001 \003(\0132\\.google.cloud.documentai.v1beta3.Document.Documen" + + "tLayout.DocumentLayoutBlock.LayoutListEntry\022\014\n" + "\004type\030\002 \001(\t\032o\n" + "\017LayoutListEntry\022\\\n" - + "\006blocks\030\001 \003(\0132L.google.cloud" - + ".documentai.v1beta3.Document.DocumentLayout.DocumentLayoutBlock\032\344\001\n" + + "\006blocks\030\001 \003(\0132L.google.cloud.documentai.v" + + "1beta3.Document.DocumentLayout.DocumentLayoutBlock\032\344\001\n" + "\020LayoutImageBlock\022\034\n\r" + "blob_asset_id\030\004 \001(\tB\003\340A\001H\000\022\026\n" + "\007gcs_uri\030\005 \001(\tB\003\340A\001H\000\022\027\n" + "\010data_uri\030\006 \001(\tB\003\340A\001H\000\022\021\n" + "\tmime_type\030\001 \001(\t\022\022\n\n" + "image_text\030\002 \001(\t\022J\n" - + "\013annotations\030\003 \001(\01325.google.cloud.d" - + "ocumentai.v1beta3.Document.AnnotationsB\016\n" + + "\013annotations\030\003" + + " \001(\01325.google.cloud.documentai.v1beta3.Document.AnnotationsB\016\n" + "\014image_sourceB\007\n" + "\005block\032\221\013\n" + "\017ChunkedDocument\022O\n" - + "\006chunks\030\001 \003(\0132?.google.cloud.docum" - + "entai.v1beta3.Document.ChunkedDocument.Chunk\032\254\n\n" + + "\006chunks\030\001" + + " \003(\0132?.google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk\032\254\n\n" + "\005Chunk\022\020\n" + "\010chunk_id\030\001 \001(\t\022\030\n" + "\020source_block_ids\030\002 \003(\t\022\017\n" + "\007content\030\003 \001(\t\022`\n" - + "\tpage_span\030\004 \001(\0132M.google.cloud.documentai" - + ".v1beta3.Document.ChunkedDocument.Chunk.ChunkPageSpan\022e\n" - + "\014page_headers\030\005 \003(\0132O.go" - + "ogle.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageHeader\022e\n" - + "\014page_footers\030\006 \003(\0132O.google.cloud.docume" - + "ntai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageFooter\022`\n" - + "\014chunk_fields\030\007 \003(" - + "\0132J.google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkField\0325\n" - + "\r" + + "\tpage_span\030\004 \001(\0132M.google.cloud.documentai.v1beta3.Docu" + + "ment.ChunkedDocument.Chunk.ChunkPageSpan\022e\n" + + "\014page_headers\030\005 \003(\0132O.google.cloud.do" + + "cumentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageHeader\022e\n" + + "\014page_footers\030\006 \003(\0132O.google.cloud.documentai.v1beta3." + + "Document.ChunkedDocument.Chunk.ChunkPageFooter\022`\n" + + "\014chunk_fields\030\007 \003(\0132J.google.cl" + + "oud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkField\0325\n\r" + "ChunkPageSpan\022\022\n\n" + "page_start\030\001 \001(\005\022\020\n" + "\010page_end\030\002 \001(\005\032\201\001\n" + "\017ChunkPageHeader\022\014\n" + "\004text\030\001 \001(\t\022`\n" - + "\tpage_span\030\002 \001(\0132M.google.cloud" - + ".documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageSpan\032\201\001\n" + + "\tpage_span\030\002 \001(\0132M.google.cloud.documentai.v" + + "1beta3.Document.ChunkedDocument.Chunk.ChunkPageSpan\032\201\001\n" + "\017ChunkPageFooter\022\014\n" + "\004text\030\001 \001(\t\022`\n" - + "\tpage_span\030\002 \001(\0132M." - + "google.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageSpan\032\274\001\n" + + "\tpage_span\030\002 \001(\0132M.google.cloud." + + "documentai.v1beta3.Document.ChunkedDocument.Chunk.ChunkPageSpan\032\274\001\n" + "\017ImageChunkField\022\034\n\r" + "blob_asset_id\030\001 \001(\tB\003\340A\001H\000\022\026\n" + "\007gcs_uri\030\002 \001(\tB\003\340A\001H\000\022\027\n" + "\010data_uri\030\003 \001(\tB\003\340A\001H\000\022J\n" - + "\013annotations\030\004 \001(\01325.g" - + "oogle.cloud.documentai.v1beta3.Document.AnnotationsB\016\n" + + "\013annotations\030\004 \001(\01325.google.cloud.d" + + "ocumentai.v1beta3.Document.AnnotationsB\016\n" + "\014image_source\032]\n" + "\017TableChunkField\022J\n" - + "\013annotations\030\001 \001(\01325.google.clo" - + "ud.documentai.v1beta3.Document.Annotations\032\366\001\n\n" + + "\013annotations\030\001" + + " \001(\01325.google.cloud.documentai.v1beta3.Document.Annotations\032\366\001\n\n" + "ChunkField\022l\n" - + "\021image_chunk_field\030\001 \001(\0132O.google.cloud.documentai.v1beta3.D" - + "ocument.ChunkedDocument.Chunk.ImageChunkFieldH\000\022l\n" - + "\021table_chunk_field\030\002 \001(\0132O.goo" - + "gle.cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.TableChunkFieldH\000B\014\n" - + "\n" + + "\021image_chunk_field\030\001 \001(\0132O.google" + + ".cloud.documentai.v1beta3.Document.ChunkedDocument.Chunk.ImageChunkFieldH\000\022l\n" + + "\021table_chunk_field\030\002 \001(\0132O.google.cloud.doc" + + "umentai.v1beta3.Document.ChunkedDocument.Chunk.TableChunkFieldH\000B\014\n\n" + "field_type\032K\n" + "\tBlobAsset\022\025\n" + "\010asset_id\030\001 \001(\tB\003\340A\001\022\024\n" + "\007content\030\002 \001(\014B\003\340A\001\022\021\n" + "\tmime_type\030\003 \001(\t\032\334\004\n" + "\026EntityValidationOutput\022m\n" - + "\022validation_results\030\001 \003(\0132Q.google.cloud.d" - + "ocumentai.v1beta3.Document.EntityValidationOutput.ValidationResult\022\026\n" + + "\022validation_results\030\001 \003(\0132Q.google.cloud.documentai.v1b" + + "eta3.Document.EntityValidationOutput.ValidationResult\022\026\n" + "\016pass_all_rules\030\002 \001(\010\032\272\003\n" + "\020ValidationResult\022\021\n" + "\trule_name\030\001 \001(\t\022\030\n" + "\020rule_description\030\002 \001(\t\022\206\001\n" - + "\026validation_result_type\030\003 \001(\0162f.google.c" - + "loud.documentai.v1beta3.Document.EntityV" - + "alidationOutput.ValidationResult.ValidationResultType\022\032\n" + + "\026validation_result_type\030\003 \001(\0162f.google.cloud.document" + + "ai.v1beta3.Document.EntityValidationOutp" + + "ut.ValidationResult.ValidationResultType\022\032\n" + "\022validation_details\030\004 \001(\t\"\323\001\n" + "\024ValidationResultType\022&\n" + "\"VALIDATION_RESULT_TYPE_UNSPECIFIED\020\000\022 \n" + "\034VALIDATION_RESULT_TYPE_VALID\020\001\022\"\n" + "\036VALIDATION_RESULT_TYPE_INVALID\020\002\022\"\n" + "\036VALIDATION_RESULT_TYPE_SKIPPED\020\003\022)\n" - + "%VALIDATION_RESULT_TYPE_NOT_APPLICABLE\020\004\032\317\001\n" + + "%VALIDATION_RESULT_TYPE_NOT_APPLICABLE\020\004\032\236\002\n" + "\020EntitiesRevision\022\023\n" + "\013revision_id\030\001 \001(\t\022B\n" - + "\010entities\030\002 \003(\01320.go" - + "ogle.cloud.documentai.v1beta3.Document.Entity\022b\n" - + "\030entity_validation_output\030\003 \001(\0132" - + "@.google.cloud.documentai.v1beta3.Document.EntityValidationOutputB\010\n" + + "\010entities\030\002" + + " \003(\01320.google.cloud.documentai.v1beta3.Document.Entity\022b\n" + + "\030entity_validation_output\030\003 \001(\0132@.google.clou" + + "d.documentai.v1beta3.Document.EntityValidationOutput\022M\n\n" + + "provenance\030\004 \001(\01324.googl" + + "e.cloud.documentai.v1beta3.Document.ProvenanceB\003\340A\001B\010\n" + "\006source\"\233\002\n" - + "\013RevisionRef\022R\n\r" - + "revision_case\030\001 \001(\01629.goo" - + "gle.cloud.documentai.v1beta3.RevisionRef.RevisionCaseH\000\022\025\n" + + "\013RevisionRef\022R\n" + + "\r" + + "revision_case\030\001 \001(\01629.google.cloud.docu" + + "mentai.v1beta3.RevisionRef.RevisionCaseH\000\022\025\n" + "\013revision_id\030\002 \001(\tH\000\022\"\n" + "\030latest_processor_version\030\003 \001(\tH\000\"s\n" + "\014RevisionCase\022\035\n" @@ -782,16 +784,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021BASE_OCR_REVISION\020\003B\010\n" + "\006sourceB\344\001\n" + "#com.google.cloud.documentai.v1beta3B\r" - + "DocumentProtoP\001ZCcloud.google.com/go/documentai/apiv1beta3/documentaipb;docum" - + "entaipb\252\002\037Google.Cloud.DocumentAI.V1Beta" - + "3\312\002\037Google\\Cloud\\DocumentAI\\V1beta3\352\002\"Go" - + "ogle::Cloud::DocumentAI::V1beta3b\006proto3" + + "DocumentProtoP\001ZCcloud.google.com/go/documentai/api" + + "v1beta3/documentaipb;documentaipb\252\002\037Goog" + + "le.Cloud.DocumentAI.V1Beta3\312\002\037Google\\Clo" + + "ud\\DocumentAI\\V1beta3\352\002\"Google::Cloud::DocumentAI::V1beta3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), com.google.cloud.documentai.v1beta3.BarcodeProto.getDescriptor(), com.google.cloud.documentai.v1beta3.GeometryProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -1415,7 +1418,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_documentai_v1beta3_Document_EntitiesRevision_descriptor, new java.lang.String[] { - "RevisionId", "Entities", "EntityValidationOutput", + "RevisionId", "Entities", "EntityValidationOutput", "Provenance", }); internal_static_google_cloud_documentai_v1beta3_RevisionRef_descriptor = getDescriptor().getMessageType(1); @@ -1427,6 +1430,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); com.google.cloud.documentai.v1beta3.BarcodeProto.getDescriptor(); com.google.cloud.documentai.v1beta3.GeometryProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentSchema.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentSchema.java index 7e9124ed7de7..a1ceefc0c7d9 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentSchema.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentSchema.java @@ -55,6 +55,7 @@ private DocumentSchema() { displayName_ = ""; description_ = ""; entityTypes_ = java.util.Collections.emptyList(); + documentPrompt_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -83,7 +84,7 @@ public interface EntityTypeOrBuilder *
                * If specified, lists all the possible values for this entity.  This
                * should not be more than a handful of values.  If the number of values
          -     * is >10 or could change frequently use the `EntityType.value_ontology`
          +     * is >10 or could change frequently, use the `EntityType.value_ontology`
                * field and specify a list of all possible values in a value ontology
                * file.
                * 
          @@ -101,7 +102,7 @@ public interface EntityTypeOrBuilder *
                * If specified, lists all the possible values for this entity.  This
                * should not be more than a handful of values.  If the number of values
          -     * is >10 or could change frequently use the `EntityType.value_ontology`
          +     * is >10 or could change frequently, use the `EntityType.value_ontology`
                * field and specify a list of all possible values in a value ontology
                * file.
                * 
          @@ -119,7 +120,7 @@ public interface EntityTypeOrBuilder *
                * If specified, lists all the possible values for this entity.  This
                * should not be more than a handful of values.  If the number of values
          -     * is >10 or could change frequently use the `EntityType.value_ontology`
          +     * is >10 or could change frequently, use the `EntityType.value_ontology`
                * field and specify a list of all possible values in a value ontology
                * file.
                * 
          @@ -168,7 +169,7 @@ public interface EntityTypeOrBuilder * - Maximum 64 characters. * - Must start with a letter. * - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward - * compatibility internal infrastructure and tooling can handle any ascii + * compatibility, internal infrastructure and tooling can handle any ASCII * character.) * - The `/` is sometimes used to denote a property of a type. For example * `line_item/amount`. This convention is deprecated, but will still be @@ -193,7 +194,7 @@ public interface EntityTypeOrBuilder * - Maximum 64 characters. * - Must start with a letter. * - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward - * compatibility internal infrastructure and tooling can handle any ascii + * compatibility, internal infrastructure and tooling can handle any ASCII * character.) * - The `/` is sometimes used to denote a property of a type. For example * `line_item/amount`. This convention is deprecated, but will still be @@ -1503,9 +1504,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * For example, a bank statement might only have one * `account_number`, but this account number can be mentioned in several * places on the document. In this case, the `account_number` is - * considered a `REQUIRED_ONCE` entity type. If, on the other hand, we - * expect a bank statement to contain the status of multiple different - * accounts for the customers, the occurrence type is set to + * considered a `REQUIRED_ONCE` entity type. If, on the other hand, it's + * expected that a bank statement contains the status of multiple + * different accounts for the customers, the occurrence type is set to * `REQUIRED_MULTIPLE`. * * @@ -3784,7 +3785,7 @@ public ValueSourceCase getValueSourceCase() { *
                * If specified, lists all the possible values for this entity.  This
                * should not be more than a handful of values.  If the number of values
          -     * is >10 or could change frequently use the `EntityType.value_ontology`
          +     * is >10 or could change frequently, use the `EntityType.value_ontology`
                * field and specify a list of all possible values in a value ontology
                * file.
                * 
          @@ -3805,7 +3806,7 @@ public boolean hasEnumValues() { *
                * If specified, lists all the possible values for this entity.  This
                * should not be more than a handful of values.  If the number of values
          -     * is >10 or could change frequently use the `EntityType.value_ontology`
          +     * is >10 or could change frequently, use the `EntityType.value_ontology`
                * field and specify a list of all possible values in a value ontology
                * file.
                * 
          @@ -3832,7 +3833,7 @@ public boolean hasEnumValues() { *
                * If specified, lists all the possible values for this entity.  This
                * should not be more than a handful of values.  If the number of values
          -     * is >10 or could change frequently use the `EntityType.value_ontology`
          +     * is >10 or could change frequently, use the `EntityType.value_ontology`
                * field and specify a list of all possible values in a value ontology
                * file.
                * 
          @@ -3921,7 +3922,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * - Maximum 64 characters. * - Must start with a letter. * - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward - * compatibility internal infrastructure and tooling can handle any ascii + * compatibility, internal infrastructure and tooling can handle any ASCII * character.) * - The `/` is sometimes used to denote a property of a type. For example * `line_item/amount`. This convention is deprecated, but will still be @@ -3957,7 +3958,7 @@ public java.lang.String getName() { * - Maximum 64 characters. * - Must start with a letter. * - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward - * compatibility internal infrastructure and tooling can handle any ascii + * compatibility, internal infrastructure and tooling can handle any ASCII * character.) * - The `/` is sometimes used to denote a property of a type. For example * `line_item/amount`. This convention is deprecated, but will still be @@ -4868,7 +4869,7 @@ public Builder clearValueSource() { *
                  * If specified, lists all the possible values for this entity.  This
                  * should not be more than a handful of values.  If the number of values
          -       * is >10 or could change frequently use the `EntityType.value_ontology`
          +       * is >10 or could change frequently, use the `EntityType.value_ontology`
                  * field and specify a list of all possible values in a value ontology
                  * file.
                  * 
          @@ -4890,7 +4891,7 @@ public boolean hasEnumValues() { *
                  * If specified, lists all the possible values for this entity.  This
                  * should not be more than a handful of values.  If the number of values
          -       * is >10 or could change frequently use the `EntityType.value_ontology`
          +       * is >10 or could change frequently, use the `EntityType.value_ontology`
                  * field and specify a list of all possible values in a value ontology
                  * file.
                  * 
          @@ -4926,7 +4927,7 @@ public boolean hasEnumValues() { *
                  * If specified, lists all the possible values for this entity.  This
                  * should not be more than a handful of values.  If the number of values
          -       * is >10 or could change frequently use the `EntityType.value_ontology`
          +       * is >10 or could change frequently, use the `EntityType.value_ontology`
                  * field and specify a list of all possible values in a value ontology
                  * file.
                  * 
          @@ -4956,7 +4957,7 @@ public Builder setEnumValues( *
                  * If specified, lists all the possible values for this entity.  This
                  * should not be more than a handful of values.  If the number of values
          -       * is >10 or could change frequently use the `EntityType.value_ontology`
          +       * is >10 or could change frequently, use the `EntityType.value_ontology`
                  * field and specify a list of all possible values in a value ontology
                  * file.
                  * 
          @@ -4984,7 +4985,7 @@ public Builder setEnumValues( *
                  * If specified, lists all the possible values for this entity.  This
                  * should not be more than a handful of values.  If the number of values
          -       * is >10 or could change frequently use the `EntityType.value_ontology`
          +       * is >10 or could change frequently, use the `EntityType.value_ontology`
                  * field and specify a list of all possible values in a value ontology
                  * file.
                  * 
          @@ -5027,7 +5028,7 @@ public Builder mergeEnumValues( *
                  * If specified, lists all the possible values for this entity.  This
                  * should not be more than a handful of values.  If the number of values
          -       * is >10 or could change frequently use the `EntityType.value_ontology`
          +       * is >10 or could change frequently, use the `EntityType.value_ontology`
                  * field and specify a list of all possible values in a value ontology
                  * file.
                  * 
          @@ -5059,7 +5060,7 @@ public Builder clearEnumValues() { *
                  * If specified, lists all the possible values for this entity.  This
                  * should not be more than a handful of values.  If the number of values
          -       * is >10 or could change frequently use the `EntityType.value_ontology`
          +       * is >10 or could change frequently, use the `EntityType.value_ontology`
                  * field and specify a list of all possible values in a value ontology
                  * file.
                  * 
          @@ -5079,7 +5080,7 @@ public Builder clearEnumValues() { *
                  * If specified, lists all the possible values for this entity.  This
                  * should not be more than a handful of values.  If the number of values
          -       * is >10 or could change frequently use the `EntityType.value_ontology`
          +       * is >10 or could change frequently, use the `EntityType.value_ontology`
                  * field and specify a list of all possible values in a value ontology
                  * file.
                  * 
          @@ -5109,7 +5110,7 @@ public Builder clearEnumValues() { *
                  * If specified, lists all the possible values for this entity.  This
                  * should not be more than a handful of values.  If the number of values
          -       * is >10 or could change frequently use the `EntityType.value_ontology`
          +       * is >10 or could change frequently, use the `EntityType.value_ontology`
                  * field and specify a list of all possible values in a value ontology
                  * file.
                  * 
          @@ -5271,7 +5272,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * - Maximum 64 characters. * - Must start with a letter. * - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward - * compatibility internal infrastructure and tooling can handle any ascii + * compatibility, internal infrastructure and tooling can handle any ASCII * character.) * - The `/` is sometimes used to denote a property of a type. For example * `line_item/amount`. This convention is deprecated, but will still be @@ -5306,7 +5307,7 @@ public java.lang.String getName() { * - Maximum 64 characters. * - Must start with a letter. * - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward - * compatibility internal infrastructure and tooling can handle any ascii + * compatibility, internal infrastructure and tooling can handle any ASCII * character.) * - The `/` is sometimes used to denote a property of a type. For example * `line_item/amount`. This convention is deprecated, but will still be @@ -5341,7 +5342,7 @@ public com.google.protobuf.ByteString getNameBytes() { * - Maximum 64 characters. * - Must start with a letter. * - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward - * compatibility internal infrastructure and tooling can handle any ascii + * compatibility, internal infrastructure and tooling can handle any ASCII * character.) * - The `/` is sometimes used to denote a property of a type. For example * `line_item/amount`. This convention is deprecated, but will still be @@ -5375,7 +5376,7 @@ public Builder setName(java.lang.String value) { * - Maximum 64 characters. * - Must start with a letter. * - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward - * compatibility internal infrastructure and tooling can handle any ascii + * compatibility, internal infrastructure and tooling can handle any ASCII * character.) * - The `/` is sometimes used to denote a property of a type. For example * `line_item/amount`. This convention is deprecated, but will still be @@ -5405,7 +5406,7 @@ public Builder clearName() { * - Maximum 64 characters. * - Must start with a letter. * - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward - * compatibility internal infrastructure and tooling can handle any ascii + * compatibility, internal infrastructure and tooling can handle any ASCII * character.) * - The `/` is sometimes used to denote a property of a type. For example * `line_item/amount`. This convention is deprecated, but will still be @@ -6472,7 +6473,7 @@ public interface MetadataOrBuilder * * *
          -     * If set, we will skip the naming format validation in the schema. So the
          +     * If set, this will skip the naming format validation in the schema. So the
                * string values in `DocumentSchema.EntityType.name` and
                * `DocumentSchema.EntityType.Property.name` will not be checked.
                * 
          @@ -6598,7 +6599,7 @@ public boolean getPrefixedNamingOnProperties() { * * *
          -     * If set, we will skip the naming format validation in the schema. So the
          +     * If set, this will skip the naming format validation in the schema. So the
                * string values in `DocumentSchema.EntityType.name` and
                * `DocumentSchema.EntityType.Property.name` will not be checked.
                * 
          @@ -7177,7 +7178,7 @@ public Builder clearPrefixedNamingOnProperties() { * * *
          -       * If set, we will skip the naming format validation in the schema. So the
          +       * If set, this will skip the naming format validation in the schema. So the
                  * string values in `DocumentSchema.EntityType.name` and
                  * `DocumentSchema.EntityType.Property.name` will not be checked.
                  * 
          @@ -7195,7 +7196,7 @@ public boolean getSkipNamingValidation() { * * *
          -       * If set, we will skip the naming format validation in the schema. So the
          +       * If set, this will skip the naming format validation in the schema. So the
                  * string values in `DocumentSchema.EntityType.name` and
                  * `DocumentSchema.EntityType.Property.name` will not be checked.
                  * 
          @@ -7217,7 +7218,7 @@ public Builder setSkipNamingValidation(boolean value) { * * *
          -       * If set, we will skip the naming format validation in the schema. So the
          +       * If set, this will skip the naming format validation in the schema. So the
                  * string values in `DocumentSchema.EntityType.name` and
                  * `DocumentSchema.EntityType.Property.name` will not be checked.
                  * 
          @@ -7296,7 +7297,7 @@ public com.google.cloud.documentai.v1beta3.DocumentSchema.Metadata getDefaultIns * * *
          -   * Display name to show to users.
          +   * Display name to show users.
              * 
          * * string display_name = 1; @@ -7320,7 +7321,7 @@ public java.lang.String getDisplayName() { * * *
          -   * Display name to show to users.
          +   * Display name to show users.
              * 
          * * string display_name = 1; @@ -7532,6 +7533,63 @@ public com.google.cloud.documentai.v1beta3.DocumentSchema.Metadata getMetadata() : metadata_; } + public static final int DOCUMENT_PROMPT_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object documentPrompt_ = ""; + + /** + * + * + *
          +   * Optional. Document level prompt provided by the user. This custom text is
          +   * injected into the AI model's prompt to provide extra, document-wide
          +   * guidance for processing.
          +   * 
          + * + * string document_prompt = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The documentPrompt. + */ + @java.lang.Override + public java.lang.String getDocumentPrompt() { + java.lang.Object ref = documentPrompt_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + documentPrompt_ = s; + return s; + } + } + + /** + * + * + *
          +   * Optional. Document level prompt provided by the user. This custom text is
          +   * injected into the AI model's prompt to provide extra, document-wide
          +   * guidance for processing.
          +   * 
          + * + * string document_prompt = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for documentPrompt. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDocumentPromptBytes() { + java.lang.Object ref = documentPrompt_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + documentPrompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -7558,6 +7616,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getMetadata()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(documentPrompt_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, documentPrompt_); + } getUnknownFields().writeTo(output); } @@ -7579,6 +7640,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMetadata()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(documentPrompt_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, documentPrompt_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -7602,6 +7666,7 @@ public boolean equals(final java.lang.Object obj) { if (hasMetadata()) { if (!getMetadata().equals(other.getMetadata())) return false; } + if (!getDocumentPrompt().equals(other.getDocumentPrompt())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -7625,6 +7690,8 @@ public int hashCode() { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); } + hash = (37 * hash) + DOCUMENT_PROMPT_FIELD_NUMBER; + hash = (53 * hash) + getDocumentPrompt().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -7789,6 +7856,7 @@ public Builder clear() { metadataBuilder_.dispose(); metadataBuilder_ = null; } + documentPrompt_ = ""; return this; } @@ -7850,6 +7918,9 @@ private void buildPartial0(com.google.cloud.documentai.v1beta3.DocumentSchema re result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.documentPrompt_ = documentPrompt_; + } result.bitField0_ |= to_bitField0_; } @@ -7906,6 +7977,11 @@ public Builder mergeFrom(com.google.cloud.documentai.v1beta3.DocumentSchema othe if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } + if (!other.getDocumentPrompt().isEmpty()) { + documentPrompt_ = other.documentPrompt_; + bitField0_ |= 0x00000010; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -7965,6 +8041,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 42: + { + documentPrompt_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7990,7 +8072,7 @@ public Builder mergeFrom( * * *
          -     * Display name to show to users.
          +     * Display name to show users.
                * 
          * * string display_name = 1; @@ -8013,7 +8095,7 @@ public java.lang.String getDisplayName() { * * *
          -     * Display name to show to users.
          +     * Display name to show users.
                * 
          * * string display_name = 1; @@ -8036,7 +8118,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
          -     * Display name to show to users.
          +     * Display name to show users.
                * 
          * * string display_name = 1; @@ -8058,7 +8140,7 @@ public Builder setDisplayName(java.lang.String value) { * * *
          -     * Display name to show to users.
          +     * Display name to show users.
                * 
          * * string display_name = 1; @@ -8076,7 +8158,7 @@ public Builder clearDisplayName() { * * *
          -     * Display name to show to users.
          +     * Display name to show users.
                * 
          * * string display_name = 1; @@ -8808,6 +8890,127 @@ public Builder clearMetadata() { return metadataBuilder_; } + private java.lang.Object documentPrompt_ = ""; + + /** + * + * + *
          +     * Optional. Document level prompt provided by the user. This custom text is
          +     * injected into the AI model's prompt to provide extra, document-wide
          +     * guidance for processing.
          +     * 
          + * + * string document_prompt = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The documentPrompt. + */ + public java.lang.String getDocumentPrompt() { + java.lang.Object ref = documentPrompt_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + documentPrompt_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +     * Optional. Document level prompt provided by the user. This custom text is
          +     * injected into the AI model's prompt to provide extra, document-wide
          +     * guidance for processing.
          +     * 
          + * + * string document_prompt = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for documentPrompt. + */ + public com.google.protobuf.ByteString getDocumentPromptBytes() { + java.lang.Object ref = documentPrompt_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + documentPrompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +     * Optional. Document level prompt provided by the user. This custom text is
          +     * injected into the AI model's prompt to provide extra, document-wide
          +     * guidance for processing.
          +     * 
          + * + * string document_prompt = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The documentPrompt to set. + * @return This builder for chaining. + */ + public Builder setDocumentPrompt(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + documentPrompt_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Document level prompt provided by the user. This custom text is
          +     * injected into the AI model's prompt to provide extra, document-wide
          +     * guidance for processing.
          +     * 
          + * + * string document_prompt = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDocumentPrompt() { + documentPrompt_ = getDefaultInstance().getDocumentPrompt(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
          +     * Optional. Document level prompt provided by the user. This custom text is
          +     * injected into the AI model's prompt to provide extra, document-wide
          +     * guidance for processing.
          +     * 
          + * + * string document_prompt = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for documentPrompt to set. + * @return This builder for chaining. + */ + public Builder setDocumentPromptBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + documentPrompt_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.DocumentSchema) } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentSchemaOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentSchemaOrBuilder.java index 8684c68ad695..fb58aa68cb86 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentSchemaOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentSchemaOrBuilder.java @@ -30,7 +30,7 @@ public interface DocumentSchemaOrBuilder * * *
          -   * Display name to show to users.
          +   * Display name to show users.
              * 
          * * string display_name = 1; @@ -43,7 +43,7 @@ public interface DocumentSchemaOrBuilder * * *
          -   * Display name to show to users.
          +   * Display name to show users.
              * 
          * * string display_name = 1; @@ -177,4 +177,34 @@ com.google.cloud.documentai.v1beta3.DocumentSchema.EntityTypeOrBuilder getEntity * .google.cloud.documentai.v1beta3.DocumentSchema.Metadata metadata = 4; */ com.google.cloud.documentai.v1beta3.DocumentSchema.MetadataOrBuilder getMetadataOrBuilder(); + + /** + * + * + *
          +   * Optional. Document level prompt provided by the user. This custom text is
          +   * injected into the AI model's prompt to provide extra, document-wide
          +   * guidance for processing.
          +   * 
          + * + * string document_prompt = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The documentPrompt. + */ + java.lang.String getDocumentPrompt(); + + /** + * + * + *
          +   * Optional. Document level prompt provided by the user. This custom text is
          +   * injected into the AI model's prompt to provide extra, document-wide
          +   * guidance for processing.
          +   * 
          + * + * string document_prompt = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for documentPrompt. + */ + com.google.protobuf.ByteString getDocumentPromptBytes(); } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Documents.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Documents.java new file mode 100644 index 000000000000..8b6e562a354c --- /dev/null +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Documents.java @@ -0,0 +1,922 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/documentai/v1beta3/document_io.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.documentai.v1beta3; + +/** + * + * + *
          + * A set of inline documents.
          + * 
          + * + * Protobuf type {@code google.cloud.documentai.v1beta3.Documents} + */ +@com.google.protobuf.Generated +public final class Documents extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.Documents) + DocumentsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Documents"); + } + + // Use Documents.newBuilder() to construct. + private Documents(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Documents() { + documents_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DocumentIoProto + .internal_static_google_cloud_documentai_v1beta3_Documents_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DocumentIoProto + .internal_static_google_cloud_documentai_v1beta3_Documents_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.Documents.class, + com.google.cloud.documentai.v1beta3.Documents.Builder.class); + } + + public static final int DOCUMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List documents_; + + /** + * + * + *
          +   * The list of documents.
          +   * 
          + * + * repeated .google.cloud.documentai.v1beta3.Document documents = 1; + */ + @java.lang.Override + public java.util.List getDocumentsList() { + return documents_; + } + + /** + * + * + *
          +   * The list of documents.
          +   * 
          + * + * repeated .google.cloud.documentai.v1beta3.Document documents = 1; + */ + @java.lang.Override + public java.util.List + getDocumentsOrBuilderList() { + return documents_; + } + + /** + * + * + *
          +   * The list of documents.
          +   * 
          + * + * repeated .google.cloud.documentai.v1beta3.Document documents = 1; + */ + @java.lang.Override + public int getDocumentsCount() { + return documents_.size(); + } + + /** + * + * + *
          +   * The list of documents.
          +   * 
          + * + * repeated .google.cloud.documentai.v1beta3.Document documents = 1; + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Document getDocuments(int index) { + return documents_.get(index); + } + + /** + * + * + *
          +   * The list of documents.
          +   * 
          + * + * repeated .google.cloud.documentai.v1beta3.Document documents = 1; + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.DocumentOrBuilder getDocumentsOrBuilder(int index) { + return documents_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < documents_.size(); i++) { + output.writeMessage(1, documents_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < documents_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, documents_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.documentai.v1beta3.Documents)) { + return super.equals(obj); + } + com.google.cloud.documentai.v1beta3.Documents other = + (com.google.cloud.documentai.v1beta3.Documents) obj; + + if (!getDocumentsList().equals(other.getDocumentsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDocumentsCount() > 0) { + hash = (37 * hash) + DOCUMENTS_FIELD_NUMBER; + hash = (53 * hash) + getDocumentsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.documentai.v1beta3.Documents parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.Documents parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.Documents parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.Documents parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.Documents parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.Documents parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.Documents parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.Documents parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.Documents parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.Documents parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.Documents parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.Documents parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.documentai.v1beta3.Documents prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * A set of inline documents.
          +   * 
          + * + * Protobuf type {@code google.cloud.documentai.v1beta3.Documents} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.Documents) + com.google.cloud.documentai.v1beta3.DocumentsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DocumentIoProto + .internal_static_google_cloud_documentai_v1beta3_Documents_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DocumentIoProto + .internal_static_google_cloud_documentai_v1beta3_Documents_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.Documents.class, + com.google.cloud.documentai.v1beta3.Documents.Builder.class); + } + + // Construct using com.google.cloud.documentai.v1beta3.Documents.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (documentsBuilder_ == null) { + documents_ = java.util.Collections.emptyList(); + } else { + documents_ = null; + documentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.documentai.v1beta3.DocumentIoProto + .internal_static_google_cloud_documentai_v1beta3_Documents_descriptor; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Documents getDefaultInstanceForType() { + return com.google.cloud.documentai.v1beta3.Documents.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Documents build() { + com.google.cloud.documentai.v1beta3.Documents result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Documents buildPartial() { + com.google.cloud.documentai.v1beta3.Documents result = + new com.google.cloud.documentai.v1beta3.Documents(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.documentai.v1beta3.Documents result) { + if (documentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + documents_ = java.util.Collections.unmodifiableList(documents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.documents_ = documents_; + } else { + result.documents_ = documentsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.documentai.v1beta3.Documents result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.documentai.v1beta3.Documents) { + return mergeFrom((com.google.cloud.documentai.v1beta3.Documents) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.documentai.v1beta3.Documents other) { + if (other == com.google.cloud.documentai.v1beta3.Documents.getDefaultInstance()) return this; + if (documentsBuilder_ == null) { + if (!other.documents_.isEmpty()) { + if (documents_.isEmpty()) { + documents_ = other.documents_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDocumentsIsMutable(); + documents_.addAll(other.documents_); + } + onChanged(); + } + } else { + if (!other.documents_.isEmpty()) { + if (documentsBuilder_.isEmpty()) { + documentsBuilder_.dispose(); + documentsBuilder_ = null; + documents_ = other.documents_; + bitField0_ = (bitField0_ & ~0x00000001); + documentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDocumentsFieldBuilder() + : null; + } else { + documentsBuilder_.addAllMessages(other.documents_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.documentai.v1beta3.Document m = + input.readMessage( + com.google.cloud.documentai.v1beta3.Document.parser(), extensionRegistry); + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + documents_.add(m); + } else { + documentsBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List documents_ = + java.util.Collections.emptyList(); + + private void ensureDocumentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + documents_ = + new java.util.ArrayList(documents_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.documentai.v1beta3.Document, + com.google.cloud.documentai.v1beta3.Document.Builder, + com.google.cloud.documentai.v1beta3.DocumentOrBuilder> + documentsBuilder_; + + /** + * + * + *
          +     * The list of documents.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Document documents = 1; + */ + public java.util.List getDocumentsList() { + if (documentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(documents_); + } else { + return documentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
          +     * The list of documents.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Document documents = 1; + */ + public int getDocumentsCount() { + if (documentsBuilder_ == null) { + return documents_.size(); + } else { + return documentsBuilder_.getCount(); + } + } + + /** + * + * + *
          +     * The list of documents.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Document documents = 1; + */ + public com.google.cloud.documentai.v1beta3.Document getDocuments(int index) { + if (documentsBuilder_ == null) { + return documents_.get(index); + } else { + return documentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
          +     * The list of documents.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Document documents = 1; + */ + public Builder setDocuments(int index, com.google.cloud.documentai.v1beta3.Document value) { + if (documentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDocumentsIsMutable(); + documents_.set(index, value); + onChanged(); + } else { + documentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * The list of documents.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Document documents = 1; + */ + public Builder setDocuments( + int index, com.google.cloud.documentai.v1beta3.Document.Builder builderForValue) { + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + documents_.set(index, builderForValue.build()); + onChanged(); + } else { + documentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * The list of documents.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Document documents = 1; + */ + public Builder addDocuments(com.google.cloud.documentai.v1beta3.Document value) { + if (documentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDocumentsIsMutable(); + documents_.add(value); + onChanged(); + } else { + documentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
          +     * The list of documents.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Document documents = 1; + */ + public Builder addDocuments(int index, com.google.cloud.documentai.v1beta3.Document value) { + if (documentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDocumentsIsMutable(); + documents_.add(index, value); + onChanged(); + } else { + documentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * The list of documents.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Document documents = 1; + */ + public Builder addDocuments( + com.google.cloud.documentai.v1beta3.Document.Builder builderForValue) { + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + documents_.add(builderForValue.build()); + onChanged(); + } else { + documentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * The list of documents.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Document documents = 1; + */ + public Builder addDocuments( + int index, com.google.cloud.documentai.v1beta3.Document.Builder builderForValue) { + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + documents_.add(index, builderForValue.build()); + onChanged(); + } else { + documentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * The list of documents.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Document documents = 1; + */ + public Builder addAllDocuments( + java.lang.Iterable values) { + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documents_); + onChanged(); + } else { + documentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
          +     * The list of documents.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Document documents = 1; + */ + public Builder clearDocuments() { + if (documentsBuilder_ == null) { + documents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + documentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +     * The list of documents.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Document documents = 1; + */ + public Builder removeDocuments(int index) { + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + documents_.remove(index); + onChanged(); + } else { + documentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
          +     * The list of documents.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Document documents = 1; + */ + public com.google.cloud.documentai.v1beta3.Document.Builder getDocumentsBuilder(int index) { + return internalGetDocumentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
          +     * The list of documents.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Document documents = 1; + */ + public com.google.cloud.documentai.v1beta3.DocumentOrBuilder getDocumentsOrBuilder(int index) { + if (documentsBuilder_ == null) { + return documents_.get(index); + } else { + return documentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
          +     * The list of documents.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Document documents = 1; + */ + public java.util.List + getDocumentsOrBuilderList() { + if (documentsBuilder_ != null) { + return documentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(documents_); + } + } + + /** + * + * + *
          +     * The list of documents.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Document documents = 1; + */ + public com.google.cloud.documentai.v1beta3.Document.Builder addDocumentsBuilder() { + return internalGetDocumentsFieldBuilder() + .addBuilder(com.google.cloud.documentai.v1beta3.Document.getDefaultInstance()); + } + + /** + * + * + *
          +     * The list of documents.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Document documents = 1; + */ + public com.google.cloud.documentai.v1beta3.Document.Builder addDocumentsBuilder(int index) { + return internalGetDocumentsFieldBuilder() + .addBuilder(index, com.google.cloud.documentai.v1beta3.Document.getDefaultInstance()); + } + + /** + * + * + *
          +     * The list of documents.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Document documents = 1; + */ + public java.util.List + getDocumentsBuilderList() { + return internalGetDocumentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.documentai.v1beta3.Document, + com.google.cloud.documentai.v1beta3.Document.Builder, + com.google.cloud.documentai.v1beta3.DocumentOrBuilder> + internalGetDocumentsFieldBuilder() { + if (documentsBuilder_ == null) { + documentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.documentai.v1beta3.Document, + com.google.cloud.documentai.v1beta3.Document.Builder, + com.google.cloud.documentai.v1beta3.DocumentOrBuilder>( + documents_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + documents_ = null; + } + return documentsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.Documents) + } + + // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.Documents) + private static final com.google.cloud.documentai.v1beta3.Documents DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.documentai.v1beta3.Documents(); + } + + public static com.google.cloud.documentai.v1beta3.Documents getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Documents parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Documents getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentsOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentsOrBuilder.java new file mode 100644 index 000000000000..5de18df5cabe --- /dev/null +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentsOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/documentai/v1beta3/document_io.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.documentai.v1beta3; + +@com.google.protobuf.Generated +public interface DocumentsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.Documents) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * The list of documents.
          +   * 
          + * + * repeated .google.cloud.documentai.v1beta3.Document documents = 1; + */ + java.util.List getDocumentsList(); + + /** + * + * + *
          +   * The list of documents.
          +   * 
          + * + * repeated .google.cloud.documentai.v1beta3.Document documents = 1; + */ + com.google.cloud.documentai.v1beta3.Document getDocuments(int index); + + /** + * + * + *
          +   * The list of documents.
          +   * 
          + * + * repeated .google.cloud.documentai.v1beta3.Document documents = 1; + */ + int getDocumentsCount(); + + /** + * + * + *
          +   * The list of documents.
          +   * 
          + * + * repeated .google.cloud.documentai.v1beta3.Document documents = 1; + */ + java.util.List + getDocumentsOrBuilderList(); + + /** + * + * + *
          +   * The list of documents.
          +   * 
          + * + * repeated .google.cloud.documentai.v1beta3.Document documents = 1; + */ + com.google.cloud.documentai.v1beta3.DocumentOrBuilder getDocumentsOrBuilder(int index); +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Evaluation.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Evaluation.java index 57194e4e0891..cce5e7273a21 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Evaluation.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Evaluation.java @@ -55,6 +55,7 @@ private Evaluation() { name_ = ""; kmsKeyName_ = ""; kmsKeyVersionName_ = ""; + revisions_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -961,7 +962,7 @@ public interface MetricsOrBuilder * * *
          -     * The calculated f1 score.
          +     * The calculated F1 score.
                * 
          * * float f1_score = 3; @@ -1167,7 +1168,7 @@ public float getRecall() { * * *
          -     * The calculated f1 score.
          +     * The calculated F1 score.
                * 
          * * float f1_score = 3; @@ -1984,7 +1985,7 @@ public Builder clearRecall() { * * *
          -       * The calculated f1 score.
          +       * The calculated F1 score.
                  * 
          * * float f1_score = 3; @@ -2000,7 +2001,7 @@ public float getF1Score() { * * *
          -       * The calculated f1 score.
          +       * The calculated F1 score.
                  * 
          * * float f1_score = 3; @@ -2020,7 +2021,7 @@ public Builder setF1Score(float value) { * * *
          -       * The calculated f1 score.
          +       * The calculated F1 score.
                  * 
          * * float f1_score = 3; @@ -5984,6 +5985,1952 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface EvaluationRevisionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +     * Output only. The revision ID of the evaluation.
          +     * 
          + * + * string revision_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The revisionId. + */ + java.lang.String getRevisionId(); + + /** + * + * + *
          +     * Output only. The revision ID of the evaluation.
          +     * 
          + * + * string revision_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for revisionId. + */ + com.google.protobuf.ByteString getRevisionIdBytes(); + + /** + * + * + *
          +     * Output only. Counters for the documents used in the evaluation.
          +     * 
          + * + * + * .google.cloud.documentai.v1beta3.Evaluation.Counters document_counters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the documentCounters field is set. + */ + boolean hasDocumentCounters(); + + /** + * + * + *
          +     * Output only. Counters for the documents used in the evaluation.
          +     * 
          + * + * + * .google.cloud.documentai.v1beta3.Evaluation.Counters document_counters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The documentCounters. + */ + com.google.cloud.documentai.v1beta3.Evaluation.Counters getDocumentCounters(); + + /** + * + * + *
          +     * Output only. Counters for the documents used in the evaluation.
          +     * 
          + * + * + * .google.cloud.documentai.v1beta3.Evaluation.Counters document_counters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.documentai.v1beta3.Evaluation.CountersOrBuilder getDocumentCountersOrBuilder(); + + /** + * + * + *
          +     * Output only. Metrics for all the entities in aggregate.
          +     * 
          + * + * + * .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the allEntitiesMetrics field is set. + */ + boolean hasAllEntitiesMetrics(); + + /** + * + * + *
          +     * Output only. Metrics for all the entities in aggregate.
          +     * 
          + * + * + * .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The allEntitiesMetrics. + */ + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics getAllEntitiesMetrics(); + + /** + * + * + *
          +     * Output only. Metrics for all the entities in aggregate.
          +     * 
          + * + * + * .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetricsOrBuilder + getAllEntitiesMetricsOrBuilder(); + + /** + * + * + *
          +     * Output only. Metrics across confidence levels, for different entities.
          +     * 
          + * + * + * map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getEntityMetricsCount(); + + /** + * + * + *
          +     * Output only. Metrics across confidence levels, for different entities.
          +     * 
          + * + * + * map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean containsEntityMetrics(java.lang.String key); + + /** Use {@link #getEntityMetricsMap()} instead. */ + @java.lang.Deprecated + java.util.Map< + java.lang.String, com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> + getEntityMetrics(); + + /** + * + * + *
          +     * Output only. Metrics across confidence levels, for different entities.
          +     * 
          + * + * + * map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map< + java.lang.String, com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> + getEntityMetricsMap(); + + /** + * + * + *
          +     * Output only. Metrics across confidence levels, for different entities.
          +     * 
          + * + * + * map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + /* nullable */ + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics getEntityMetricsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics defaultValue); + + /** + * + * + *
          +     * Output only. Metrics across confidence levels, for different entities.
          +     * 
          + * + * + * map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics getEntityMetricsOrThrow( + java.lang.String key); + } + + /** + * + * + *
          +   * A revision of the evaluation.
          +   * 
          + * + * Protobuf type {@code google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision} + */ + public static final class EvaluationRevision extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision) + EvaluationRevisionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EvaluationRevision"); + } + + // Use EvaluationRevision.newBuilder() to construct. + private EvaluationRevision(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private EvaluationRevision() { + revisionId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DocumentAiEvaluation + .internal_static_google_cloud_documentai_v1beta3_Evaluation_EvaluationRevision_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetEntityMetrics(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DocumentAiEvaluation + .internal_static_google_cloud_documentai_v1beta3_Evaluation_EvaluationRevision_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision.class, + com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision.Builder.class); + } + + private int bitField0_; + public static final int REVISION_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object revisionId_ = ""; + + /** + * + * + *
          +     * Output only. The revision ID of the evaluation.
          +     * 
          + * + * string revision_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The revisionId. + */ + @java.lang.Override + public java.lang.String getRevisionId() { + java.lang.Object ref = revisionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + revisionId_ = s; + return s; + } + } + + /** + * + * + *
          +     * Output only. The revision ID of the evaluation.
          +     * 
          + * + * string revision_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for revisionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRevisionIdBytes() { + java.lang.Object ref = revisionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOCUMENT_COUNTERS_FIELD_NUMBER = 2; + private com.google.cloud.documentai.v1beta3.Evaluation.Counters documentCounters_; + + /** + * + * + *
          +     * Output only. Counters for the documents used in the evaluation.
          +     * 
          + * + * + * .google.cloud.documentai.v1beta3.Evaluation.Counters document_counters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the documentCounters field is set. + */ + @java.lang.Override + public boolean hasDocumentCounters() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +     * Output only. Counters for the documents used in the evaluation.
          +     * 
          + * + * + * .google.cloud.documentai.v1beta3.Evaluation.Counters document_counters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The documentCounters. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Evaluation.Counters getDocumentCounters() { + return documentCounters_ == null + ? com.google.cloud.documentai.v1beta3.Evaluation.Counters.getDefaultInstance() + : documentCounters_; + } + + /** + * + * + *
          +     * Output only. Counters for the documents used in the evaluation.
          +     * 
          + * + * + * .google.cloud.documentai.v1beta3.Evaluation.Counters document_counters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Evaluation.CountersOrBuilder + getDocumentCountersOrBuilder() { + return documentCounters_ == null + ? com.google.cloud.documentai.v1beta3.Evaluation.Counters.getDefaultInstance() + : documentCounters_; + } + + public static final int ALL_ENTITIES_METRICS_FIELD_NUMBER = 3; + private com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics + allEntitiesMetrics_; + + /** + * + * + *
          +     * Output only. Metrics for all the entities in aggregate.
          +     * 
          + * + * + * .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the allEntitiesMetrics field is set. + */ + @java.lang.Override + public boolean hasAllEntitiesMetrics() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +     * Output only. Metrics for all the entities in aggregate.
          +     * 
          + * + * + * .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The allEntitiesMetrics. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics + getAllEntitiesMetrics() { + return allEntitiesMetrics_ == null + ? com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics + .getDefaultInstance() + : allEntitiesMetrics_; + } + + /** + * + * + *
          +     * Output only. Metrics for all the entities in aggregate.
          +     * 
          + * + * + * .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetricsOrBuilder + getAllEntitiesMetricsOrBuilder() { + return allEntitiesMetrics_ == null + ? com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics + .getDefaultInstance() + : allEntitiesMetrics_; + } + + public static final int ENTITY_METRICS_FIELD_NUMBER = 4; + + private static final class EntityMetricsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.documentai.v1beta3.DocumentAiEvaluation + .internal_static_google_cloud_documentai_v1beta3_Evaluation_EvaluationRevision_EntityMetricsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics + .getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> + entityMetrics_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> + internalGetEntityMetrics() { + if (entityMetrics_ == null) { + return com.google.protobuf.MapField.emptyMapField( + EntityMetricsDefaultEntryHolder.defaultEntry); + } + return entityMetrics_; + } + + public int getEntityMetricsCount() { + return internalGetEntityMetrics().getMap().size(); + } + + /** + * + * + *
          +     * Output only. Metrics across confidence levels, for different entities.
          +     * 
          + * + * + * map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsEntityMetrics(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetEntityMetrics().getMap().containsKey(key); + } + + /** Use {@link #getEntityMetricsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> + getEntityMetrics() { + return getEntityMetricsMap(); + } + + /** + * + * + *
          +     * Output only. Metrics across confidence levels, for different entities.
          +     * 
          + * + * + * map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> + getEntityMetricsMap() { + return internalGetEntityMetrics().getMap(); + } + + /** + * + * + *
          +     * Output only. Metrics across confidence levels, for different entities.
          +     * 
          + * + * + * map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics + getEntityMetricsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> + map = internalGetEntityMetrics().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
          +     * Output only. Metrics across confidence levels, for different entities.
          +     * 
          + * + * + * map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics + getEntityMetricsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> + map = internalGetEntityMetrics().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(revisionId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, revisionId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getDocumentCounters()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getAllEntitiesMetrics()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetEntityMetrics(), EntityMetricsDefaultEntryHolder.defaultEntry, 4); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(revisionId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, revisionId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDocumentCounters()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAllEntitiesMetrics()); + } + for (java.util.Map.Entry< + java.lang.String, + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> + entry : internalGetEntityMetrics().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> + entityMetrics__ = + EntityMetricsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, entityMetrics__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision)) { + return super.equals(obj); + } + com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision other = + (com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision) obj; + + if (!getRevisionId().equals(other.getRevisionId())) return false; + if (hasDocumentCounters() != other.hasDocumentCounters()) return false; + if (hasDocumentCounters()) { + if (!getDocumentCounters().equals(other.getDocumentCounters())) return false; + } + if (hasAllEntitiesMetrics() != other.hasAllEntitiesMetrics()) return false; + if (hasAllEntitiesMetrics()) { + if (!getAllEntitiesMetrics().equals(other.getAllEntitiesMetrics())) return false; + } + if (!internalGetEntityMetrics().equals(other.internalGetEntityMetrics())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REVISION_ID_FIELD_NUMBER; + hash = (53 * hash) + getRevisionId().hashCode(); + if (hasDocumentCounters()) { + hash = (37 * hash) + DOCUMENT_COUNTERS_FIELD_NUMBER; + hash = (53 * hash) + getDocumentCounters().hashCode(); + } + if (hasAllEntitiesMetrics()) { + hash = (37 * hash) + ALL_ENTITIES_METRICS_FIELD_NUMBER; + hash = (53 * hash) + getAllEntitiesMetrics().hashCode(); + } + if (!internalGetEntityMetrics().getMap().isEmpty()) { + hash = (37 * hash) + ENTITY_METRICS_FIELD_NUMBER; + hash = (53 * hash) + internalGetEntityMetrics().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +     * A revision of the evaluation.
          +     * 
          + * + * Protobuf type {@code google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision) + com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevisionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DocumentAiEvaluation + .internal_static_google_cloud_documentai_v1beta3_Evaluation_EvaluationRevision_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetEntityMetrics(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableEntityMetrics(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DocumentAiEvaluation + .internal_static_google_cloud_documentai_v1beta3_Evaluation_EvaluationRevision_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision.class, + com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision.Builder.class); + } + + // Construct using + // com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDocumentCountersFieldBuilder(); + internalGetAllEntitiesMetricsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + revisionId_ = ""; + documentCounters_ = null; + if (documentCountersBuilder_ != null) { + documentCountersBuilder_.dispose(); + documentCountersBuilder_ = null; + } + allEntitiesMetrics_ = null; + if (allEntitiesMetricsBuilder_ != null) { + allEntitiesMetricsBuilder_.dispose(); + allEntitiesMetricsBuilder_ = null; + } + internalGetMutableEntityMetrics().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.documentai.v1beta3.DocumentAiEvaluation + .internal_static_google_cloud_documentai_v1beta3_Evaluation_EvaluationRevision_descriptor; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision + getDefaultInstanceForType() { + return com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision build() { + com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision buildPartial() { + com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision result = + new com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.revisionId_ = revisionId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.documentCounters_ = + documentCountersBuilder_ == null + ? documentCounters_ + : documentCountersBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.allEntitiesMetrics_ = + allEntitiesMetricsBuilder_ == null + ? allEntitiesMetrics_ + : allEntitiesMetricsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.entityMetrics_ = + internalGetEntityMetrics().build(EntityMetricsDefaultEntryHolder.defaultEntry); + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision) { + return mergeFrom( + (com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision other) { + if (other + == com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision + .getDefaultInstance()) return this; + if (!other.getRevisionId().isEmpty()) { + revisionId_ = other.revisionId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDocumentCounters()) { + mergeDocumentCounters(other.getDocumentCounters()); + } + if (other.hasAllEntitiesMetrics()) { + mergeAllEntitiesMetrics(other.getAllEntitiesMetrics()); + } + internalGetMutableEntityMetrics().mergeFrom(other.internalGetEntityMetrics()); + bitField0_ |= 0x00000008; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + revisionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetDocumentCountersFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetAllEntitiesMetricsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> + entityMetrics__ = + input.readMessage( + EntityMetricsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableEntityMetrics() + .ensureBuilderMap() + .put(entityMetrics__.getKey(), entityMetrics__.getValue()); + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object revisionId_ = ""; + + /** + * + * + *
          +       * Output only. The revision ID of the evaluation.
          +       * 
          + * + * string revision_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The revisionId. + */ + public java.lang.String getRevisionId() { + java.lang.Object ref = revisionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + revisionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +       * Output only. The revision ID of the evaluation.
          +       * 
          + * + * string revision_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for revisionId. + */ + public com.google.protobuf.ByteString getRevisionIdBytes() { + java.lang.Object ref = revisionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +       * Output only. The revision ID of the evaluation.
          +       * 
          + * + * string revision_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The revisionId to set. + * @return This builder for chaining. + */ + public Builder setRevisionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + revisionId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +       * Output only. The revision ID of the evaluation.
          +       * 
          + * + * string revision_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRevisionId() { + revisionId_ = getDefaultInstance().getRevisionId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
          +       * Output only. The revision ID of the evaluation.
          +       * 
          + * + * string revision_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for revisionId to set. + * @return This builder for chaining. + */ + public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + revisionId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.documentai.v1beta3.Evaluation.Counters documentCounters_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.documentai.v1beta3.Evaluation.Counters, + com.google.cloud.documentai.v1beta3.Evaluation.Counters.Builder, + com.google.cloud.documentai.v1beta3.Evaluation.CountersOrBuilder> + documentCountersBuilder_; + + /** + * + * + *
          +       * Output only. Counters for the documents used in the evaluation.
          +       * 
          + * + * + * .google.cloud.documentai.v1beta3.Evaluation.Counters document_counters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the documentCounters field is set. + */ + public boolean hasDocumentCounters() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
          +       * Output only. Counters for the documents used in the evaluation.
          +       * 
          + * + * + * .google.cloud.documentai.v1beta3.Evaluation.Counters document_counters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The documentCounters. + */ + public com.google.cloud.documentai.v1beta3.Evaluation.Counters getDocumentCounters() { + if (documentCountersBuilder_ == null) { + return documentCounters_ == null + ? com.google.cloud.documentai.v1beta3.Evaluation.Counters.getDefaultInstance() + : documentCounters_; + } else { + return documentCountersBuilder_.getMessage(); + } + } + + /** + * + * + *
          +       * Output only. Counters for the documents used in the evaluation.
          +       * 
          + * + * + * .google.cloud.documentai.v1beta3.Evaluation.Counters document_counters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDocumentCounters( + com.google.cloud.documentai.v1beta3.Evaluation.Counters value) { + if (documentCountersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + documentCounters_ = value; + } else { + documentCountersBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +       * Output only. Counters for the documents used in the evaluation.
          +       * 
          + * + * + * .google.cloud.documentai.v1beta3.Evaluation.Counters document_counters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDocumentCounters( + com.google.cloud.documentai.v1beta3.Evaluation.Counters.Builder builderForValue) { + if (documentCountersBuilder_ == null) { + documentCounters_ = builderForValue.build(); + } else { + documentCountersBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
          +       * Output only. Counters for the documents used in the evaluation.
          +       * 
          + * + * + * .google.cloud.documentai.v1beta3.Evaluation.Counters document_counters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDocumentCounters( + com.google.cloud.documentai.v1beta3.Evaluation.Counters value) { + if (documentCountersBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && documentCounters_ != null + && documentCounters_ + != com.google.cloud.documentai.v1beta3.Evaluation.Counters.getDefaultInstance()) { + getDocumentCountersBuilder().mergeFrom(value); + } else { + documentCounters_ = value; + } + } else { + documentCountersBuilder_.mergeFrom(value); + } + if (documentCounters_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
          +       * Output only. Counters for the documents used in the evaluation.
          +       * 
          + * + * + * .google.cloud.documentai.v1beta3.Evaluation.Counters document_counters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDocumentCounters() { + bitField0_ = (bitField0_ & ~0x00000002); + documentCounters_ = null; + if (documentCountersBuilder_ != null) { + documentCountersBuilder_.dispose(); + documentCountersBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +       * Output only. Counters for the documents used in the evaluation.
          +       * 
          + * + * + * .google.cloud.documentai.v1beta3.Evaluation.Counters document_counters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.documentai.v1beta3.Evaluation.Counters.Builder + getDocumentCountersBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetDocumentCountersFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +       * Output only. Counters for the documents used in the evaluation.
          +       * 
          + * + * + * .google.cloud.documentai.v1beta3.Evaluation.Counters document_counters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.documentai.v1beta3.Evaluation.CountersOrBuilder + getDocumentCountersOrBuilder() { + if (documentCountersBuilder_ != null) { + return documentCountersBuilder_.getMessageOrBuilder(); + } else { + return documentCounters_ == null + ? com.google.cloud.documentai.v1beta3.Evaluation.Counters.getDefaultInstance() + : documentCounters_; + } + } + + /** + * + * + *
          +       * Output only. Counters for the documents used in the evaluation.
          +       * 
          + * + * + * .google.cloud.documentai.v1beta3.Evaluation.Counters document_counters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.documentai.v1beta3.Evaluation.Counters, + com.google.cloud.documentai.v1beta3.Evaluation.Counters.Builder, + com.google.cloud.documentai.v1beta3.Evaluation.CountersOrBuilder> + internalGetDocumentCountersFieldBuilder() { + if (documentCountersBuilder_ == null) { + documentCountersBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.documentai.v1beta3.Evaluation.Counters, + com.google.cloud.documentai.v1beta3.Evaluation.Counters.Builder, + com.google.cloud.documentai.v1beta3.Evaluation.CountersOrBuilder>( + getDocumentCounters(), getParentForChildren(), isClean()); + documentCounters_ = null; + } + return documentCountersBuilder_; + } + + private com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics + allEntitiesMetrics_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics, + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics.Builder, + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetricsOrBuilder> + allEntitiesMetricsBuilder_; + + /** + * + * + *
          +       * Output only. Metrics for all the entities in aggregate.
          +       * 
          + * + * + * .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the allEntitiesMetrics field is set. + */ + public boolean hasAllEntitiesMetrics() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
          +       * Output only. Metrics for all the entities in aggregate.
          +       * 
          + * + * + * .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The allEntitiesMetrics. + */ + public com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics + getAllEntitiesMetrics() { + if (allEntitiesMetricsBuilder_ == null) { + return allEntitiesMetrics_ == null + ? com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics + .getDefaultInstance() + : allEntitiesMetrics_; + } else { + return allEntitiesMetricsBuilder_.getMessage(); + } + } + + /** + * + * + *
          +       * Output only. Metrics for all the entities in aggregate.
          +       * 
          + * + * + * .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAllEntitiesMetrics( + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics value) { + if (allEntitiesMetricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + allEntitiesMetrics_ = value; + } else { + allEntitiesMetricsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +       * Output only. Metrics for all the entities in aggregate.
          +       * 
          + * + * + * .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAllEntitiesMetrics( + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics.Builder + builderForValue) { + if (allEntitiesMetricsBuilder_ == null) { + allEntitiesMetrics_ = builderForValue.build(); + } else { + allEntitiesMetricsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
          +       * Output only. Metrics for all the entities in aggregate.
          +       * 
          + * + * + * .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeAllEntitiesMetrics( + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics value) { + if (allEntitiesMetricsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && allEntitiesMetrics_ != null + && allEntitiesMetrics_ + != com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics + .getDefaultInstance()) { + getAllEntitiesMetricsBuilder().mergeFrom(value); + } else { + allEntitiesMetrics_ = value; + } + } else { + allEntitiesMetricsBuilder_.mergeFrom(value); + } + if (allEntitiesMetrics_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
          +       * Output only. Metrics for all the entities in aggregate.
          +       * 
          + * + * + * .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAllEntitiesMetrics() { + bitField0_ = (bitField0_ & ~0x00000004); + allEntitiesMetrics_ = null; + if (allEntitiesMetricsBuilder_ != null) { + allEntitiesMetricsBuilder_.dispose(); + allEntitiesMetricsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +       * Output only. Metrics for all the entities in aggregate.
          +       * 
          + * + * + * .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics.Builder + getAllEntitiesMetricsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetAllEntitiesMetricsFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +       * Output only. Metrics for all the entities in aggregate.
          +       * 
          + * + * + * .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetricsOrBuilder + getAllEntitiesMetricsOrBuilder() { + if (allEntitiesMetricsBuilder_ != null) { + return allEntitiesMetricsBuilder_.getMessageOrBuilder(); + } else { + return allEntitiesMetrics_ == null + ? com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics + .getDefaultInstance() + : allEntitiesMetrics_; + } + } + + /** + * + * + *
          +       * Output only. Metrics for all the entities in aggregate.
          +       * 
          + * + * + * .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics, + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics.Builder, + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetricsOrBuilder> + internalGetAllEntitiesMetricsFieldBuilder() { + if (allEntitiesMetricsBuilder_ == null) { + allEntitiesMetricsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics, + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics.Builder, + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetricsOrBuilder>( + getAllEntitiesMetrics(), getParentForChildren(), isClean()); + allEntitiesMetrics_ = null; + } + return allEntitiesMetricsBuilder_; + } + + private static final class EntityMetricsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetricsOrBuilder, + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> { + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics build( + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetricsOrBuilder val) { + if (val + instanceof com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics) { + return (com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics) val; + } + return ((com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics.Builder) + val) + .build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> + defaultEntry() { + return EntityMetricsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final EntityMetricsConverter entityMetricsConverter = + new EntityMetricsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetricsOrBuilder, + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics, + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics.Builder> + entityMetrics_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetricsOrBuilder, + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics, + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics.Builder> + internalGetEntityMetrics() { + if (entityMetrics_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(entityMetricsConverter); + } + return entityMetrics_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetricsOrBuilder, + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics, + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics.Builder> + internalGetMutableEntityMetrics() { + if (entityMetrics_ == null) { + entityMetrics_ = new com.google.protobuf.MapFieldBuilder<>(entityMetricsConverter); + } + bitField0_ |= 0x00000008; + onChanged(); + return entityMetrics_; + } + + public int getEntityMetricsCount() { + return internalGetEntityMetrics().ensureBuilderMap().size(); + } + + /** + * + * + *
          +       * Output only. Metrics across confidence levels, for different entities.
          +       * 
          + * + * + * map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsEntityMetrics(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetEntityMetrics().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getEntityMetricsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> + getEntityMetrics() { + return getEntityMetricsMap(); + } + + /** + * + * + *
          +       * Output only. Metrics across confidence levels, for different entities.
          +       * 
          + * + * + * map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> + getEntityMetricsMap() { + return internalGetEntityMetrics().getImmutableMap(); + } + + /** + * + * + *
          +       * Output only. Metrics across confidence levels, for different entities.
          +       * 
          + * + * + * map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics + getEntityMetricsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetricsOrBuilder> + map = internalGetMutableEntityMetrics().ensureBuilderMap(); + return map.containsKey(key) ? entityMetricsConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
          +       * Output only. Metrics across confidence levels, for different entities.
          +       * 
          + * + * + * map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics + getEntityMetricsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetricsOrBuilder> + map = internalGetMutableEntityMetrics().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return entityMetricsConverter.build(map.get(key)); + } + + public Builder clearEntityMetrics() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableEntityMetrics().clear(); + return this; + } + + /** + * + * + *
          +       * Output only. Metrics across confidence levels, for different entities.
          +       * 
          + * + * + * map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeEntityMetrics(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableEntityMetrics().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> + getMutableEntityMetrics() { + bitField0_ |= 0x00000008; + return internalGetMutableEntityMetrics().ensureMessageMap(); + } + + /** + * + * + *
          +       * Output only. Metrics across confidence levels, for different entities.
          +       * 
          + * + * + * map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putEntityMetrics( + java.lang.String key, + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableEntityMetrics().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
          +       * Output only. Metrics across confidence levels, for different entities.
          +       * 
          + * + * + * map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllEntityMetrics( + java.util.Map< + java.lang.String, + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> + values) { + for (java.util.Map.Entry< + java.lang.String, + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableEntityMetrics().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
          +       * Output only. Metrics across confidence levels, for different entities.
          +       * 
          + * + * + * map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics.Builder + putEntityMetricsBuilderIfAbsent(java.lang.String key) { + java.util.Map< + java.lang.String, + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetricsOrBuilder> + builderMap = internalGetMutableEntityMetrics().ensureBuilderMap(); + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetricsOrBuilder entry = + builderMap.get(key); + if (entry == null) { + entry = + com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics.newBuilder(); + builderMap.put(key, entry); + } + if (entry + instanceof com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics) { + entry = + ((com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics) entry) + .toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics.Builder) + entry; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision) + } + + // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision) + private static final com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision(); + } + + public static com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvaluationRevision parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @@ -6448,6 +8395,91 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { } } + public static final int REVISIONS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List + revisions_; + + /** + * + * + *
          +   * Contains all revisions of the evaluation, excluding the latest one.
          +   * 
          + * + * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9; + * + */ + @java.lang.Override + public java.util.List + getRevisionsList() { + return revisions_; + } + + /** + * + * + *
          +   * Contains all revisions of the evaluation, excluding the latest one.
          +   * 
          + * + * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevisionOrBuilder> + getRevisionsOrBuilderList() { + return revisions_; + } + + /** + * + * + *
          +   * Contains all revisions of the evaluation, excluding the latest one.
          +   * 
          + * + * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9; + * + */ + @java.lang.Override + public int getRevisionsCount() { + return revisions_.size(); + } + + /** + * + * + *
          +   * Contains all revisions of the evaluation, excluding the latest one.
          +   * 
          + * + * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9; + * + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision getRevisions(int index) { + return revisions_.get(index); + } + + /** + * + * + *
          +   * Contains all revisions of the evaluation, excluding the latest one.
          +   * 
          + * + * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9; + * + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevisionOrBuilder + getRevisionsOrBuilder(int index) { + return revisions_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -6482,6 +8514,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKeyVersionName_)) { com.google.protobuf.GeneratedMessage.writeString(output, 7, kmsKeyVersionName_); } + for (int i = 0; i < revisions_.size(); i++) { + output.writeMessage(9, revisions_.get(i)); + } getUnknownFields().writeTo(output); } @@ -6523,6 +8558,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKeyVersionName_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(7, kmsKeyVersionName_); } + for (int i = 0; i < revisions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, revisions_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -6555,6 +8593,7 @@ public boolean equals(final java.lang.Object obj) { if (!internalGetEntityMetrics().equals(other.internalGetEntityMetrics())) return false; if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; if (!getKmsKeyVersionName().equals(other.getKmsKeyVersionName())) return false; + if (!getRevisionsList().equals(other.getRevisionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -6588,6 +8627,10 @@ public int hashCode() { hash = (53 * hash) + getKmsKeyName().hashCode(); hash = (37 * hash) + KMS_KEY_VERSION_NAME_FIELD_NUMBER; hash = (53 * hash) + getKmsKeyVersionName().hashCode(); + if (getRevisionsCount() > 0) { + hash = (37 * hash) + REVISIONS_FIELD_NUMBER; + hash = (53 * hash) + getRevisionsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -6754,6 +8797,7 @@ private void maybeForceBuilderInitialization() { internalGetCreateTimeFieldBuilder(); internalGetDocumentCountersFieldBuilder(); internalGetAllEntitiesMetricsFieldBuilder(); + internalGetRevisionsFieldBuilder(); } } @@ -6780,6 +8824,13 @@ public Builder clear() { internalGetMutableEntityMetrics().clear(); kmsKeyName_ = ""; kmsKeyVersionName_ = ""; + if (revisionsBuilder_ == null) { + revisions_ = java.util.Collections.emptyList(); + } else { + revisions_ = null; + revisionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); return this; } @@ -6807,6 +8858,7 @@ public com.google.cloud.documentai.v1beta3.Evaluation build() { public com.google.cloud.documentai.v1beta3.Evaluation buildPartial() { com.google.cloud.documentai.v1beta3.Evaluation result = new com.google.cloud.documentai.v1beta3.Evaluation(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -6814,6 +8866,18 @@ public com.google.cloud.documentai.v1beta3.Evaluation buildPartial() { return result; } + private void buildPartialRepeatedFields(com.google.cloud.documentai.v1beta3.Evaluation result) { + if (revisionsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + revisions_ = java.util.Collections.unmodifiableList(revisions_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.revisions_ = revisions_; + } else { + result.revisions_ = revisionsBuilder_.build(); + } + } + private void buildPartial0(com.google.cloud.documentai.v1beta3.Evaluation result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -6887,6 +8951,33 @@ public Builder mergeFrom(com.google.cloud.documentai.v1beta3.Evaluation other) { bitField0_ |= 0x00000040; onChanged(); } + if (revisionsBuilder_ == null) { + if (!other.revisions_.isEmpty()) { + if (revisions_.isEmpty()) { + revisions_ = other.revisions_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureRevisionsIsMutable(); + revisions_.addAll(other.revisions_); + } + onChanged(); + } + } else { + if (!other.revisions_.isEmpty()) { + if (revisionsBuilder_.isEmpty()) { + revisionsBuilder_.dispose(); + revisionsBuilder_ = null; + revisions_ = other.revisions_; + bitField0_ = (bitField0_ & ~0x00000080); + revisionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRevisionsFieldBuilder() + : null; + } else { + revisionsBuilder_.addAllMessages(other.revisions_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -6967,6 +9058,20 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 58 + case 74: + { + com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision m = + input.readMessage( + com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision.parser(), + extensionRegistry); + if (revisionsBuilder_ == null) { + ensureRevisionsIsMutable(); + revisions_.add(m); + } else { + revisionsBuilder_.addMessage(m); + } + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -8232,6 +10337,412 @@ public Builder setKmsKeyVersionNameBytes(com.google.protobuf.ByteString value) { return this; } + private java.util.List + revisions_ = java.util.Collections.emptyList(); + + private void ensureRevisionsIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + revisions_ = + new java.util.ArrayList< + com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision>(revisions_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision, + com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision.Builder, + com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevisionOrBuilder> + revisionsBuilder_; + + /** + * + * + *
          +     * Contains all revisions of the evaluation, excluding the latest one.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9; + * + */ + public java.util.List + getRevisionsList() { + if (revisionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(revisions_); + } else { + return revisionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
          +     * Contains all revisions of the evaluation, excluding the latest one.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9; + * + */ + public int getRevisionsCount() { + if (revisionsBuilder_ == null) { + return revisions_.size(); + } else { + return revisionsBuilder_.getCount(); + } + } + + /** + * + * + *
          +     * Contains all revisions of the evaluation, excluding the latest one.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9; + * + */ + public com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision getRevisions( + int index) { + if (revisionsBuilder_ == null) { + return revisions_.get(index); + } else { + return revisionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
          +     * Contains all revisions of the evaluation, excluding the latest one.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9; + * + */ + public Builder setRevisions( + int index, com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision value) { + if (revisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRevisionsIsMutable(); + revisions_.set(index, value); + onChanged(); + } else { + revisionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * Contains all revisions of the evaluation, excluding the latest one.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9; + * + */ + public Builder setRevisions( + int index, + com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision.Builder builderForValue) { + if (revisionsBuilder_ == null) { + ensureRevisionsIsMutable(); + revisions_.set(index, builderForValue.build()); + onChanged(); + } else { + revisionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Contains all revisions of the evaluation, excluding the latest one.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9; + * + */ + public Builder addRevisions( + com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision value) { + if (revisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRevisionsIsMutable(); + revisions_.add(value); + onChanged(); + } else { + revisionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
          +     * Contains all revisions of the evaluation, excluding the latest one.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9; + * + */ + public Builder addRevisions( + int index, com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision value) { + if (revisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRevisionsIsMutable(); + revisions_.add(index, value); + onChanged(); + } else { + revisionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * Contains all revisions of the evaluation, excluding the latest one.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9; + * + */ + public Builder addRevisions( + com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision.Builder builderForValue) { + if (revisionsBuilder_ == null) { + ensureRevisionsIsMutable(); + revisions_.add(builderForValue.build()); + onChanged(); + } else { + revisionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Contains all revisions of the evaluation, excluding the latest one.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9; + * + */ + public Builder addRevisions( + int index, + com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision.Builder builderForValue) { + if (revisionsBuilder_ == null) { + ensureRevisionsIsMutable(); + revisions_.add(index, builderForValue.build()); + onChanged(); + } else { + revisionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Contains all revisions of the evaluation, excluding the latest one.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9; + * + */ + public Builder addAllRevisions( + java.lang.Iterable< + ? extends com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision> + values) { + if (revisionsBuilder_ == null) { + ensureRevisionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, revisions_); + onChanged(); + } else { + revisionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
          +     * Contains all revisions of the evaluation, excluding the latest one.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9; + * + */ + public Builder clearRevisions() { + if (revisionsBuilder_ == null) { + revisions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + revisionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +     * Contains all revisions of the evaluation, excluding the latest one.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9; + * + */ + public Builder removeRevisions(int index) { + if (revisionsBuilder_ == null) { + ensureRevisionsIsMutable(); + revisions_.remove(index); + onChanged(); + } else { + revisionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
          +     * Contains all revisions of the evaluation, excluding the latest one.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9; + * + */ + public com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision.Builder + getRevisionsBuilder(int index) { + return internalGetRevisionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
          +     * Contains all revisions of the evaluation, excluding the latest one.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9; + * + */ + public com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevisionOrBuilder + getRevisionsOrBuilder(int index) { + if (revisionsBuilder_ == null) { + return revisions_.get(index); + } else { + return revisionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
          +     * Contains all revisions of the evaluation, excluding the latest one.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9; + * + */ + public java.util.List< + ? extends com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevisionOrBuilder> + getRevisionsOrBuilderList() { + if (revisionsBuilder_ != null) { + return revisionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(revisions_); + } + } + + /** + * + * + *
          +     * Contains all revisions of the evaluation, excluding the latest one.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9; + * + */ + public com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision.Builder + addRevisionsBuilder() { + return internalGetRevisionsFieldBuilder() + .addBuilder( + com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision + .getDefaultInstance()); + } + + /** + * + * + *
          +     * Contains all revisions of the evaluation, excluding the latest one.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9; + * + */ + public com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision.Builder + addRevisionsBuilder(int index) { + return internalGetRevisionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision + .getDefaultInstance()); + } + + /** + * + * + *
          +     * Contains all revisions of the evaluation, excluding the latest one.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9; + * + */ + public java.util.List + getRevisionsBuilderList() { + return internalGetRevisionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision, + com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision.Builder, + com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevisionOrBuilder> + internalGetRevisionsFieldBuilder() { + if (revisionsBuilder_ == null) { + revisionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision, + com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision.Builder, + com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevisionOrBuilder>( + revisions_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); + revisions_ = null; + } + return revisionsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.Evaluation) } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EvaluationOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EvaluationOrBuilder.java index ed34d95a7194..ec4eec224e76 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EvaluationOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EvaluationOrBuilder.java @@ -303,4 +303,68 @@ com.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics getEntityM * @return The bytes for kmsKeyVersionName. */ com.google.protobuf.ByteString getKmsKeyVersionNameBytes(); + + /** + * + * + *
          +   * Contains all revisions of the evaluation, excluding the latest one.
          +   * 
          + * + * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9; + * + */ + java.util.List + getRevisionsList(); + + /** + * + * + *
          +   * Contains all revisions of the evaluation, excluding the latest one.
          +   * 
          + * + * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9; + * + */ + com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision getRevisions(int index); + + /** + * + * + *
          +   * Contains all revisions of the evaluation, excluding the latest one.
          +   * 
          + * + * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9; + * + */ + int getRevisionsCount(); + + /** + * + * + *
          +   * Contains all revisions of the evaluation, excluding the latest one.
          +   * 
          + * + * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9; + * + */ + java.util.List< + ? extends com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevisionOrBuilder> + getRevisionsOrBuilderList(); + + /** + * + * + *
          +   * Contains all revisions of the evaluation, excluding the latest one.
          +   * 
          + * + * repeated .google.cloud.documentai.v1beta3.Evaluation.EvaluationRevision revisions = 9; + * + */ + com.google.cloud.documentai.v1beta3.Evaluation.EvaluationRevisionOrBuilder getRevisionsOrBuilder( + int index); } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ImportDocumentsRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ImportDocumentsRequest.java index be65f7e92342..ccd38c9c2ae6 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ImportDocumentsRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ImportDocumentsRequest.java @@ -198,6 +198,40 @@ public interface BatchDocumentsImportConfigOrBuilder com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfigOrBuilder getBatchInputConfigOrBuilder(); + /** + * + * + *
          +     * Optional. If set, determines the type of the documents to be imported in
          +     * this batch. It can be used to auto-label the documents with a single
          +     * entity of the provided type. This field can only be used with a
          +     * classifier or splitter processor. Providing this field is mutually
          +     * exclusive with `entities` and `auto_labeling_config`.
          +     * 
          + * + * string document_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The documentType. + */ + java.lang.String getDocumentType(); + + /** + * + * + *
          +     * Optional. If set, determines the type of the documents to be imported in
          +     * this batch. It can be used to auto-label the documents with a single
          +     * entity of the provided type. This field can only be used with a
          +     * classifier or splitter processor. Providing this field is mutually
          +     * exclusive with `entities` and `auto_labeling_config`.
          +     * 
          + * + * string document_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for documentType. + */ + com.google.protobuf.ByteString getDocumentTypeBytes(); + com.google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig .SplitTypeConfigCase getSplitTypeConfigCase(); @@ -235,7 +269,9 @@ private BatchDocumentsImportConfig(com.google.protobuf.GeneratedMessage.Builder< super(builder); } - private BatchDocumentsImportConfig() {} + private BatchDocumentsImportConfig() { + documentType_ = ""; + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.documentai.v1beta3.DocumentAiDocumentService @@ -1068,6 +1104,67 @@ public com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig getBatchInp : batchInputConfig_; } + public static final int DOCUMENT_TYPE_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object documentType_ = ""; + + /** + * + * + *
          +     * Optional. If set, determines the type of the documents to be imported in
          +     * this batch. It can be used to auto-label the documents with a single
          +     * entity of the provided type. This field can only be used with a
          +     * classifier or splitter processor. Providing this field is mutually
          +     * exclusive with `entities` and `auto_labeling_config`.
          +     * 
          + * + * string document_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The documentType. + */ + @java.lang.Override + public java.lang.String getDocumentType() { + java.lang.Object ref = documentType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + documentType_ = s; + return s; + } + } + + /** + * + * + *
          +     * Optional. If set, determines the type of the documents to be imported in
          +     * this batch. It can be used to auto-label the documents with a single
          +     * entity of the provided type. This field can only be used with a
          +     * classifier or splitter processor. Providing this field is mutually
          +     * exclusive with `entities` and `auto_labeling_config`.
          +     * 
          + * + * string document_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for documentType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDocumentTypeBytes() { + java.lang.Object ref = documentType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + documentType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1095,6 +1192,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .AutoSplitConfig) splitTypeConfig_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(documentType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, documentType_); + } getUnknownFields().writeTo(output); } @@ -1120,6 +1220,9 @@ public int getSerializedSize() { .BatchDocumentsImportConfig.AutoSplitConfig) splitTypeConfig_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(documentType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, documentType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1143,6 +1246,7 @@ public boolean equals(final java.lang.Object obj) { if (hasBatchInputConfig()) { if (!getBatchInputConfig().equals(other.getBatchInputConfig())) return false; } + if (!getDocumentType().equals(other.getDocumentType())) return false; if (!getSplitTypeConfigCase().equals(other.getSplitTypeConfigCase())) return false; switch (splitTypeConfigCase_) { case 2: @@ -1169,6 +1273,8 @@ public int hashCode() { hash = (37 * hash) + BATCH_INPUT_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getBatchInputConfig().hashCode(); } + hash = (37 * hash) + DOCUMENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getDocumentType().hashCode(); switch (splitTypeConfigCase_) { case 2: hash = (37 * hash) + DATASET_SPLIT_FIELD_NUMBER; @@ -1364,6 +1470,7 @@ public Builder clear() { batchInputConfigBuilder_.dispose(); batchInputConfigBuilder_ = null; } + documentType_ = ""; splitTypeConfigCase_ = 0; splitTypeConfig_ = null; return this; @@ -1420,6 +1527,9 @@ private void buildPartial0( : batchInputConfigBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.documentType_ = documentType_; + } result.bitField0_ |= to_bitField0_; } @@ -1457,6 +1567,11 @@ public Builder mergeFrom( if (other.hasBatchInputConfig()) { mergeBatchInputConfig(other.getBatchInputConfig()); } + if (!other.getDocumentType().isEmpty()) { + documentType_ = other.documentType_; + bitField0_ |= 0x00000008; + onChanged(); + } switch (other.getSplitTypeConfigCase()) { case DATASET_SPLIT: { @@ -1520,6 +1635,12 @@ public Builder mergeFrom( splitTypeConfigCase_ = 3; break; } // case 26 + case 50: + { + documentType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2167,6 +2288,137 @@ public Builder clearBatchInputConfig() { return batchInputConfigBuilder_; } + private java.lang.Object documentType_ = ""; + + /** + * + * + *
          +       * Optional. If set, determines the type of the documents to be imported in
          +       * this batch. It can be used to auto-label the documents with a single
          +       * entity of the provided type. This field can only be used with a
          +       * classifier or splitter processor. Providing this field is mutually
          +       * exclusive with `entities` and `auto_labeling_config`.
          +       * 
          + * + * string document_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The documentType. + */ + public java.lang.String getDocumentType() { + java.lang.Object ref = documentType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + documentType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
          +       * Optional. If set, determines the type of the documents to be imported in
          +       * this batch. It can be used to auto-label the documents with a single
          +       * entity of the provided type. This field can only be used with a
          +       * classifier or splitter processor. Providing this field is mutually
          +       * exclusive with `entities` and `auto_labeling_config`.
          +       * 
          + * + * string document_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for documentType. + */ + public com.google.protobuf.ByteString getDocumentTypeBytes() { + java.lang.Object ref = documentType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + documentType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
          +       * Optional. If set, determines the type of the documents to be imported in
          +       * this batch. It can be used to auto-label the documents with a single
          +       * entity of the provided type. This field can only be used with a
          +       * classifier or splitter processor. Providing this field is mutually
          +       * exclusive with `entities` and `auto_labeling_config`.
          +       * 
          + * + * string document_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The documentType to set. + * @return This builder for chaining. + */ + public Builder setDocumentType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + documentType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
          +       * Optional. If set, determines the type of the documents to be imported in
          +       * this batch. It can be used to auto-label the documents with a single
          +       * entity of the provided type. This field can only be used with a
          +       * classifier or splitter processor. Providing this field is mutually
          +       * exclusive with `entities` and `auto_labeling_config`.
          +       * 
          + * + * string document_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDocumentType() { + documentType_ = getDefaultInstance().getDocumentType(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
          +       * Optional. If set, determines the type of the documents to be imported in
          +       * this batch. It can be used to auto-label the documents with a single
          +       * entity of the provided type. This field can only be used with a
          +       * classifier or splitter processor. Providing this field is mutually
          +       * exclusive with `entities` and `auto_labeling_config`.
          +       * 
          + * + * string document_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for documentType to set. + * @return This builder for chaining. + */ + public Builder setDocumentTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + documentType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.ImportDocumentsRequest.BatchDocumentsImportConfig) } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OcrConfig.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OcrConfig.java index 9e40e9eb0882..13c9d3332a48 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OcrConfig.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OcrConfig.java @@ -1851,7 +1851,7 @@ public boolean getEnableSymbol() { * bool compute_style_info = 8 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.OcrConfig.compute_style_info is deprecated. See - * google/cloud/documentai/v1beta3/document_io.proto;l=166 + * google/cloud/documentai/v1beta3/document_io.proto;l=179 * @return The computeStyleInfo. */ @java.lang.Override @@ -3073,7 +3073,7 @@ public Builder clearEnableSymbol() { * bool compute_style_info = 8 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.OcrConfig.compute_style_info is deprecated. See - * google/cloud/documentai/v1beta3/document_io.proto;l=166 + * google/cloud/documentai/v1beta3/document_io.proto;l=179 * @return The computeStyleInfo. */ @java.lang.Override @@ -3095,7 +3095,7 @@ public boolean getComputeStyleInfo() { * bool compute_style_info = 8 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.OcrConfig.compute_style_info is deprecated. See - * google/cloud/documentai/v1beta3/document_io.proto;l=166 + * google/cloud/documentai/v1beta3/document_io.proto;l=179 * @param value The computeStyleInfo to set. * @return This builder for chaining. */ @@ -3121,7 +3121,7 @@ public Builder setComputeStyleInfo(boolean value) { * bool compute_style_info = 8 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.OcrConfig.compute_style_info is deprecated. See - * google/cloud/documentai/v1beta3/document_io.proto;l=166 + * google/cloud/documentai/v1beta3/document_io.proto;l=179 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OcrConfigOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OcrConfigOrBuilder.java index 8bfb7b064c5c..b0607ccc6651 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OcrConfigOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OcrConfigOrBuilder.java @@ -196,7 +196,7 @@ public interface OcrConfigOrBuilder * bool compute_style_info = 8 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.OcrConfig.compute_style_info is deprecated. See - * google/cloud/documentai/v1beta3/document_io.proto;l=166 + * google/cloud/documentai/v1beta3/document_io.proto;l=179 * @return The computeStyleInfo. */ @java.lang.Deprecated diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessOptions.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessOptions.java index 3a1eb8fd6343..bb147c3c0221 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessOptions.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessOptions.java @@ -196,6 +196,19 @@ public interface LayoutConfigOrBuilder * @return The enableTableAnnotation. */ boolean getEnableTableAnnotation(); + + /** + * + * + *
          +     * Optional. Whether to split table.
          +     * 
          + * + * bool enable_table_split = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableTableSplit. + */ + boolean getEnableTableSplit(); } /** @@ -1347,6 +1360,25 @@ public boolean getEnableTableAnnotation() { return enableTableAnnotation_; } + public static final int ENABLE_TABLE_SPLIT_FIELD_NUMBER = 8; + private boolean enableTableSplit_ = false; + + /** + * + * + *
          +     * Optional. Whether to split table.
          +     * 
          + * + * bool enable_table_split = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableTableSplit. + */ + @java.lang.Override + public boolean getEnableTableSplit() { + return enableTableSplit_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1382,6 +1414,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableImageExtraction_ != false) { output.writeBool(7, enableImageExtraction_); } + if (enableTableSplit_ != false) { + output.writeBool(8, enableTableSplit_); + } getUnknownFields().writeTo(output); } @@ -1412,6 +1447,9 @@ public int getSerializedSize() { if (enableImageExtraction_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, enableImageExtraction_); } + if (enableTableSplit_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, enableTableSplit_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1438,6 +1476,7 @@ public boolean equals(final java.lang.Object obj) { if (getEnableImageExtraction() != other.getEnableImageExtraction()) return false; if (getEnableLlmLayoutParsing() != other.getEnableLlmLayoutParsing()) return false; if (getEnableTableAnnotation() != other.getEnableTableAnnotation()) return false; + if (getEnableTableSplit() != other.getEnableTableSplit()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1465,6 +1504,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableLlmLayoutParsing()); hash = (37 * hash) + ENABLE_TABLE_ANNOTATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableTableAnnotation()); + hash = (37 * hash) + ENABLE_TABLE_SPLIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableTableSplit()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1628,6 +1669,7 @@ public Builder clear() { enableImageExtraction_ = false; enableLlmLayoutParsing_ = false; enableTableAnnotation_ = false; + enableTableSplit_ = false; return this; } @@ -1690,6 +1732,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000040) != 0)) { result.enableTableAnnotation_ = enableTableAnnotation_; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.enableTableSplit_ = enableTableSplit_; + } result.bitField0_ |= to_bitField0_; } @@ -1729,6 +1774,9 @@ public Builder mergeFrom( if (other.getEnableTableAnnotation() != false) { setEnableTableAnnotation(other.getEnableTableAnnotation()); } + if (other.getEnableTableSplit() != false) { + setEnableTableSplit(other.getEnableTableSplit()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1798,6 +1846,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 56 + case 64: + { + enableTableSplit_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2386,6 +2440,62 @@ public Builder clearEnableTableAnnotation() { return this; } + private boolean enableTableSplit_; + + /** + * + * + *
          +       * Optional. Whether to split table.
          +       * 
          + * + * bool enable_table_split = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableTableSplit. + */ + @java.lang.Override + public boolean getEnableTableSplit() { + return enableTableSplit_; + } + + /** + * + * + *
          +       * Optional. Whether to split table.
          +       * 
          + * + * bool enable_table_split = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableTableSplit to set. + * @return This builder for chaining. + */ + public Builder setEnableTableSplit(boolean value) { + + enableTableSplit_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
          +       * Optional. Whether to split table.
          +       * 
          + * + * bool enable_table_split = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnableTableSplit() { + bitField0_ = (bitField0_ & ~0x00000080); + enableTableSplit_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.ProcessOptions.LayoutConfig) } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequest.java index c1bab9e2f348..12740fd692e6 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequest.java @@ -391,7 +391,7 @@ public com.google.protobuf.ByteString getNameBytes() { * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=473 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=477 * @return Whether the document field is set. */ @java.lang.Override @@ -413,7 +413,7 @@ public boolean hasDocument() { * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=473 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=477 * @return The document. */ @java.lang.Override @@ -455,11 +455,14 @@ public com.google.cloud.documentai.v1beta3.DocumentOrBuilder getDocumentOrBuilde * `false`. * * - * bool skip_human_review = 3; + * bool skip_human_review = 3 [deprecated = true]; * + * @deprecated google.cloud.documentai.v1beta3.ProcessRequest.skip_human_review is deprecated. See + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=481 * @return The skipHumanReview. */ @java.lang.Override + @java.lang.Deprecated public boolean getSkipHumanReview() { return skipHumanReview_; } @@ -2224,7 +2227,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=473 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=477 * @return Whether the document field is set. */ @java.lang.Deprecated @@ -2245,7 +2248,7 @@ public boolean hasDocument() { * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=473 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=477 * @return The document. */ @java.lang.Deprecated @@ -2448,11 +2451,14 @@ public com.google.cloud.documentai.v1beta3.DocumentOrBuilder getDocumentOrBuilde * `false`. * * - * bool skip_human_review = 3; + * bool skip_human_review = 3 [deprecated = true]; * + * @deprecated google.cloud.documentai.v1beta3.ProcessRequest.skip_human_review is deprecated. + * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=481 * @return The skipHumanReview. */ @java.lang.Override + @java.lang.Deprecated public boolean getSkipHumanReview() { return skipHumanReview_; } @@ -2465,11 +2471,14 @@ public boolean getSkipHumanReview() { * `false`. * * - * bool skip_human_review = 3; + * bool skip_human_review = 3 [deprecated = true]; * + * @deprecated google.cloud.documentai.v1beta3.ProcessRequest.skip_human_review is deprecated. + * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=481 * @param value The skipHumanReview to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setSkipHumanReview(boolean value) { skipHumanReview_ = value; @@ -2486,10 +2495,13 @@ public Builder setSkipHumanReview(boolean value) { * `false`. * * - * bool skip_human_review = 3; + * bool skip_human_review = 3 [deprecated = true]; * + * @deprecated google.cloud.documentai.v1beta3.ProcessRequest.skip_human_review is deprecated. + * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=481 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearSkipHumanReview() { bitField0_ = (bitField0_ & ~0x00000020); skipHumanReview_ = false; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequestOrBuilder.java index 10b352777105..e3a187f62024 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequestOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequestOrBuilder.java @@ -198,7 +198,7 @@ public interface ProcessRequestOrBuilder * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=473 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=477 * @return Whether the document field is set. */ @java.lang.Deprecated @@ -217,7 +217,7 @@ public interface ProcessRequestOrBuilder * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=473 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=477 * @return The document. */ @java.lang.Deprecated @@ -246,10 +246,13 @@ public interface ProcessRequestOrBuilder * `false`. * * - * bool skip_human_review = 3; + * bool skip_human_review = 3 [deprecated = true]; * + * @deprecated google.cloud.documentai.v1beta3.ProcessRequest.skip_human_review is deprecated. See + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=481 * @return The skipHumanReview. */ + @java.lang.Deprecated boolean getSkipHumanReview(); /** diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponse.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponse.java index dd72b0ed57b7..4c69ad6aa64b 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponse.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponse.java @@ -147,7 +147,7 @@ public com.google.cloud.documentai.v1beta3.DocumentOrBuilder getDocumentOrBuilde * string human_review_operation = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is - * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=551 + * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=555 * @return The humanReviewOperation. */ @java.lang.Override @@ -177,7 +177,7 @@ public java.lang.String getHumanReviewOperation() { * string human_review_operation = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is - * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=551 + * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=555 * @return The bytes for humanReviewOperation. */ @java.lang.Override @@ -860,7 +860,7 @@ public com.google.cloud.documentai.v1beta3.DocumentOrBuilder getDocumentOrBuilde * string human_review_operation = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is - * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=551 + * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=555 * @return The humanReviewOperation. */ @java.lang.Deprecated @@ -889,7 +889,7 @@ public java.lang.String getHumanReviewOperation() { * string human_review_operation = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is - * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=551 + * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=555 * @return The bytes for humanReviewOperation. */ @java.lang.Deprecated @@ -918,7 +918,7 @@ public com.google.protobuf.ByteString getHumanReviewOperationBytes() { * string human_review_operation = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is - * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=551 + * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=555 * @param value The humanReviewOperation to set. * @return This builder for chaining. */ @@ -946,7 +946,7 @@ public Builder setHumanReviewOperation(java.lang.String value) { * string human_review_operation = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is - * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=551 + * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=555 * @return This builder for chaining. */ @java.lang.Deprecated @@ -970,7 +970,7 @@ public Builder clearHumanReviewOperation() { * string human_review_operation = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is - * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=551 + * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=555 * @param value The bytes for humanReviewOperation to set. * @return This builder for chaining. */ diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponseOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponseOrBuilder.java index df5051e069b5..70c2cc8777a8 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponseOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponseOrBuilder.java @@ -79,7 +79,7 @@ public interface ProcessResponseOrBuilder * string human_review_operation = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is - * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=551 + * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=555 * @return The humanReviewOperation. */ @java.lang.Deprecated @@ -98,7 +98,7 @@ public interface ProcessResponseOrBuilder * string human_review_operation = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is - * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=551 + * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=555 * @return The bytes for humanReviewOperation. */ @java.lang.Deprecated diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersion.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersion.java index 8a34bee3471c..30e89fd83c6e 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersion.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersion.java @@ -1676,7 +1676,7 @@ public interface FoundationGenAiModelInfoOrBuilder * * *
          -       * Whether finetuning is allowed for this base processor version.
          +       * Whether fine tuning is allowed for this base processor version.
                  * 
          * * bool finetuning_allowed = 1; @@ -1690,7 +1690,7 @@ public interface FoundationGenAiModelInfoOrBuilder * *
                  * The minimum number of labeled documents in the training dataset
          -       * required for finetuning.
          +       * required for fine tuning.
                  * 
          * * int32 min_train_labeled_documents = 2; @@ -1757,7 +1757,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
          -       * Whether finetuning is allowed for this base processor version.
          +       * Whether fine tuning is allowed for this base processor version.
                  * 
          * * bool finetuning_allowed = 1; @@ -1777,7 +1777,7 @@ public boolean getFinetuningAllowed() { * *
                  * The minimum number of labeled documents in the training dataset
          -       * required for finetuning.
          +       * required for fine tuning.
                  * 
          * * int32 min_train_labeled_documents = 2; @@ -2187,7 +2187,7 @@ public Builder mergeFrom( * * *
          -         * Whether finetuning is allowed for this base processor version.
          +         * Whether fine tuning is allowed for this base processor version.
                    * 
          * * bool finetuning_allowed = 1; @@ -2203,7 +2203,7 @@ public boolean getFinetuningAllowed() { * * *
          -         * Whether finetuning is allowed for this base processor version.
          +         * Whether fine tuning is allowed for this base processor version.
                    * 
          * * bool finetuning_allowed = 1; @@ -2223,7 +2223,7 @@ public Builder setFinetuningAllowed(boolean value) { * * *
          -         * Whether finetuning is allowed for this base processor version.
          +         * Whether fine tuning is allowed for this base processor version.
                    * 
          * * bool finetuning_allowed = 1; @@ -2244,7 +2244,7 @@ public Builder clearFinetuningAllowed() { * *
                    * The minimum number of labeled documents in the training dataset
          -         * required for finetuning.
          +         * required for fine tuning.
                    * 
          * * int32 min_train_labeled_documents = 2; @@ -2261,7 +2261,7 @@ public int getMinTrainLabeledDocuments() { * *
                    * The minimum number of labeled documents in the training dataset
          -         * required for finetuning.
          +         * required for fine tuning.
                    * 
          * * int32 min_train_labeled_documents = 2; @@ -2282,7 +2282,7 @@ public Builder setMinTrainLabeledDocuments(int value) { * *
                    * The minimum number of labeled documents in the training dataset
          -         * required for finetuning.
          +         * required for fine tuning.
                    * 
          * * int32 min_train_labeled_documents = 2; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/RawDocuments.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/RawDocuments.java new file mode 100644 index 000000000000..bd16df824060 --- /dev/null +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/RawDocuments.java @@ -0,0 +1,926 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/documentai/v1beta3/document_io.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.documentai.v1beta3; + +/** + * + * + *
          + * Specifies a set of raw documents.
          + * 
          + * + * Protobuf type {@code google.cloud.documentai.v1beta3.RawDocuments} + */ +@com.google.protobuf.Generated +public final class RawDocuments extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.RawDocuments) + RawDocumentsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RawDocuments"); + } + + // Use RawDocuments.newBuilder() to construct. + private RawDocuments(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RawDocuments() { + documents_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DocumentIoProto + .internal_static_google_cloud_documentai_v1beta3_RawDocuments_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DocumentIoProto + .internal_static_google_cloud_documentai_v1beta3_RawDocuments_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.RawDocuments.class, + com.google.cloud.documentai.v1beta3.RawDocuments.Builder.class); + } + + public static final int DOCUMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List documents_; + + /** + * + * + *
          +   * Specifies raw document content and mime type.
          +   * 
          + * + * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1; + */ + @java.lang.Override + public java.util.List getDocumentsList() { + return documents_; + } + + /** + * + * + *
          +   * Specifies raw document content and mime type.
          +   * 
          + * + * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1; + */ + @java.lang.Override + public java.util.List + getDocumentsOrBuilderList() { + return documents_; + } + + /** + * + * + *
          +   * Specifies raw document content and mime type.
          +   * 
          + * + * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1; + */ + @java.lang.Override + public int getDocumentsCount() { + return documents_.size(); + } + + /** + * + * + *
          +   * Specifies raw document content and mime type.
          +   * 
          + * + * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1; + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.RawDocument getDocuments(int index) { + return documents_.get(index); + } + + /** + * + * + *
          +   * Specifies raw document content and mime type.
          +   * 
          + * + * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1; + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.RawDocumentOrBuilder getDocumentsOrBuilder(int index) { + return documents_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < documents_.size(); i++) { + output.writeMessage(1, documents_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < documents_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, documents_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.documentai.v1beta3.RawDocuments)) { + return super.equals(obj); + } + com.google.cloud.documentai.v1beta3.RawDocuments other = + (com.google.cloud.documentai.v1beta3.RawDocuments) obj; + + if (!getDocumentsList().equals(other.getDocumentsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDocumentsCount() > 0) { + hash = (37 * hash) + DOCUMENTS_FIELD_NUMBER; + hash = (53 * hash) + getDocumentsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.documentai.v1beta3.RawDocuments parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.RawDocuments parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.RawDocuments parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.RawDocuments parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.RawDocuments parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.RawDocuments parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.RawDocuments parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.RawDocuments parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.RawDocuments parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.RawDocuments parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.RawDocuments parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.RawDocuments parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.documentai.v1beta3.RawDocuments prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * Specifies a set of raw documents.
          +   * 
          + * + * Protobuf type {@code google.cloud.documentai.v1beta3.RawDocuments} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.RawDocuments) + com.google.cloud.documentai.v1beta3.RawDocumentsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DocumentIoProto + .internal_static_google_cloud_documentai_v1beta3_RawDocuments_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DocumentIoProto + .internal_static_google_cloud_documentai_v1beta3_RawDocuments_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.RawDocuments.class, + com.google.cloud.documentai.v1beta3.RawDocuments.Builder.class); + } + + // Construct using com.google.cloud.documentai.v1beta3.RawDocuments.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (documentsBuilder_ == null) { + documents_ = java.util.Collections.emptyList(); + } else { + documents_ = null; + documentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.documentai.v1beta3.DocumentIoProto + .internal_static_google_cloud_documentai_v1beta3_RawDocuments_descriptor; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.RawDocuments getDefaultInstanceForType() { + return com.google.cloud.documentai.v1beta3.RawDocuments.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.RawDocuments build() { + com.google.cloud.documentai.v1beta3.RawDocuments result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.RawDocuments buildPartial() { + com.google.cloud.documentai.v1beta3.RawDocuments result = + new com.google.cloud.documentai.v1beta3.RawDocuments(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.documentai.v1beta3.RawDocuments result) { + if (documentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + documents_ = java.util.Collections.unmodifiableList(documents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.documents_ = documents_; + } else { + result.documents_ = documentsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.documentai.v1beta3.RawDocuments result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.documentai.v1beta3.RawDocuments) { + return mergeFrom((com.google.cloud.documentai.v1beta3.RawDocuments) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.documentai.v1beta3.RawDocuments other) { + if (other == com.google.cloud.documentai.v1beta3.RawDocuments.getDefaultInstance()) + return this; + if (documentsBuilder_ == null) { + if (!other.documents_.isEmpty()) { + if (documents_.isEmpty()) { + documents_ = other.documents_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDocumentsIsMutable(); + documents_.addAll(other.documents_); + } + onChanged(); + } + } else { + if (!other.documents_.isEmpty()) { + if (documentsBuilder_.isEmpty()) { + documentsBuilder_.dispose(); + documentsBuilder_ = null; + documents_ = other.documents_; + bitField0_ = (bitField0_ & ~0x00000001); + documentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDocumentsFieldBuilder() + : null; + } else { + documentsBuilder_.addAllMessages(other.documents_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.documentai.v1beta3.RawDocument m = + input.readMessage( + com.google.cloud.documentai.v1beta3.RawDocument.parser(), + extensionRegistry); + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + documents_.add(m); + } else { + documentsBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List documents_ = + java.util.Collections.emptyList(); + + private void ensureDocumentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + documents_ = + new java.util.ArrayList(documents_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.documentai.v1beta3.RawDocument, + com.google.cloud.documentai.v1beta3.RawDocument.Builder, + com.google.cloud.documentai.v1beta3.RawDocumentOrBuilder> + documentsBuilder_; + + /** + * + * + *
          +     * Specifies raw document content and mime type.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1; + */ + public java.util.List getDocumentsList() { + if (documentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(documents_); + } else { + return documentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
          +     * Specifies raw document content and mime type.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1; + */ + public int getDocumentsCount() { + if (documentsBuilder_ == null) { + return documents_.size(); + } else { + return documentsBuilder_.getCount(); + } + } + + /** + * + * + *
          +     * Specifies raw document content and mime type.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1; + */ + public com.google.cloud.documentai.v1beta3.RawDocument getDocuments(int index) { + if (documentsBuilder_ == null) { + return documents_.get(index); + } else { + return documentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
          +     * Specifies raw document content and mime type.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1; + */ + public Builder setDocuments(int index, com.google.cloud.documentai.v1beta3.RawDocument value) { + if (documentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDocumentsIsMutable(); + documents_.set(index, value); + onChanged(); + } else { + documentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * Specifies raw document content and mime type.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1; + */ + public Builder setDocuments( + int index, com.google.cloud.documentai.v1beta3.RawDocument.Builder builderForValue) { + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + documents_.set(index, builderForValue.build()); + onChanged(); + } else { + documentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Specifies raw document content and mime type.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1; + */ + public Builder addDocuments(com.google.cloud.documentai.v1beta3.RawDocument value) { + if (documentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDocumentsIsMutable(); + documents_.add(value); + onChanged(); + } else { + documentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
          +     * Specifies raw document content and mime type.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1; + */ + public Builder addDocuments(int index, com.google.cloud.documentai.v1beta3.RawDocument value) { + if (documentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDocumentsIsMutable(); + documents_.add(index, value); + onChanged(); + } else { + documentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
          +     * Specifies raw document content and mime type.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1; + */ + public Builder addDocuments( + com.google.cloud.documentai.v1beta3.RawDocument.Builder builderForValue) { + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + documents_.add(builderForValue.build()); + onChanged(); + } else { + documentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Specifies raw document content and mime type.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1; + */ + public Builder addDocuments( + int index, com.google.cloud.documentai.v1beta3.RawDocument.Builder builderForValue) { + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + documents_.add(index, builderForValue.build()); + onChanged(); + } else { + documentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
          +     * Specifies raw document content and mime type.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1; + */ + public Builder addAllDocuments( + java.lang.Iterable values) { + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documents_); + onChanged(); + } else { + documentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
          +     * Specifies raw document content and mime type.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1; + */ + public Builder clearDocuments() { + if (documentsBuilder_ == null) { + documents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + documentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
          +     * Specifies raw document content and mime type.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1; + */ + public Builder removeDocuments(int index) { + if (documentsBuilder_ == null) { + ensureDocumentsIsMutable(); + documents_.remove(index); + onChanged(); + } else { + documentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
          +     * Specifies raw document content and mime type.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1; + */ + public com.google.cloud.documentai.v1beta3.RawDocument.Builder getDocumentsBuilder(int index) { + return internalGetDocumentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
          +     * Specifies raw document content and mime type.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1; + */ + public com.google.cloud.documentai.v1beta3.RawDocumentOrBuilder getDocumentsOrBuilder( + int index) { + if (documentsBuilder_ == null) { + return documents_.get(index); + } else { + return documentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
          +     * Specifies raw document content and mime type.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1; + */ + public java.util.List + getDocumentsOrBuilderList() { + if (documentsBuilder_ != null) { + return documentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(documents_); + } + } + + /** + * + * + *
          +     * Specifies raw document content and mime type.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1; + */ + public com.google.cloud.documentai.v1beta3.RawDocument.Builder addDocumentsBuilder() { + return internalGetDocumentsFieldBuilder() + .addBuilder(com.google.cloud.documentai.v1beta3.RawDocument.getDefaultInstance()); + } + + /** + * + * + *
          +     * Specifies raw document content and mime type.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1; + */ + public com.google.cloud.documentai.v1beta3.RawDocument.Builder addDocumentsBuilder(int index) { + return internalGetDocumentsFieldBuilder() + .addBuilder(index, com.google.cloud.documentai.v1beta3.RawDocument.getDefaultInstance()); + } + + /** + * + * + *
          +     * Specifies raw document content and mime type.
          +     * 
          + * + * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1; + */ + public java.util.List + getDocumentsBuilderList() { + return internalGetDocumentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.documentai.v1beta3.RawDocument, + com.google.cloud.documentai.v1beta3.RawDocument.Builder, + com.google.cloud.documentai.v1beta3.RawDocumentOrBuilder> + internalGetDocumentsFieldBuilder() { + if (documentsBuilder_ == null) { + documentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.documentai.v1beta3.RawDocument, + com.google.cloud.documentai.v1beta3.RawDocument.Builder, + com.google.cloud.documentai.v1beta3.RawDocumentOrBuilder>( + documents_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + documents_ = null; + } + return documentsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.RawDocuments) + } + + // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.RawDocuments) + private static final com.google.cloud.documentai.v1beta3.RawDocuments DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.documentai.v1beta3.RawDocuments(); + } + + public static com.google.cloud.documentai.v1beta3.RawDocuments getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RawDocuments parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.RawDocuments getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/RawDocumentsOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/RawDocumentsOrBuilder.java new file mode 100644 index 000000000000..e547be73c963 --- /dev/null +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/RawDocumentsOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/documentai/v1beta3/document_io.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.documentai.v1beta3; + +@com.google.protobuf.Generated +public interface RawDocumentsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.RawDocuments) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Specifies raw document content and mime type.
          +   * 
          + * + * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1; + */ + java.util.List getDocumentsList(); + + /** + * + * + *
          +   * Specifies raw document content and mime type.
          +   * 
          + * + * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1; + */ + com.google.cloud.documentai.v1beta3.RawDocument getDocuments(int index); + + /** + * + * + *
          +   * Specifies raw document content and mime type.
          +   * 
          + * + * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1; + */ + int getDocumentsCount(); + + /** + * + * + *
          +   * Specifies raw document content and mime type.
          +   * 
          + * + * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1; + */ + java.util.List + getDocumentsOrBuilderList(); + + /** + * + * + *
          +   * Specifies raw document content and mime type.
          +   * 
          + * + * repeated .google.cloud.documentai.v1beta3.RawDocument documents = 1; + */ + com.google.cloud.documentai.v1beta3.RawDocumentOrBuilder getDocumentsOrBuilder(int index); +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequest.java index 1a268808c2c5..5393a87874e6 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequest.java @@ -399,7 +399,7 @@ public com.google.protobuf.ByteString getHumanReviewConfigBytes() { * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ReviewDocumentRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1223 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1227 * @return Whether the document field is set. */ @java.lang.Override @@ -418,7 +418,7 @@ public boolean hasDocument() { * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ReviewDocumentRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1223 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1227 * @return The document. */ @java.lang.Override @@ -1432,7 +1432,7 @@ public Builder setHumanReviewConfigBytes(com.google.protobuf.ByteString value) { * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ReviewDocumentRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1223 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1227 * @return Whether the document field is set. */ @java.lang.Deprecated @@ -1450,7 +1450,7 @@ public boolean hasDocument() { * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ReviewDocumentRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1223 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1227 * @return The document. */ @java.lang.Deprecated diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequestOrBuilder.java index 278195b2883b..a111dc73e033 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequestOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequestOrBuilder.java @@ -107,7 +107,7 @@ public interface ReviewDocumentRequestOrBuilder * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ReviewDocumentRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1223 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1227 * @return Whether the document field is set. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface ReviewDocumentRequestOrBuilder * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ReviewDocumentRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1223 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1227 * @return The document. */ @java.lang.Deprecated diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/RevisionRef.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/RevisionRef.java index f21dec5cd963..91b9ec3986a1 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/RevisionRef.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/RevisionRef.java @@ -377,7 +377,7 @@ public com.google.cloud.documentai.v1beta3.RevisionRef.RevisionCase getRevisionC * * *
          -   * Reads the revision given by the ID.
          +   * Reads the revision given by the id.
              * 
          * * string revision_id = 2; @@ -392,7 +392,7 @@ public boolean hasRevisionId() { * * *
          -   * Reads the revision given by the ID.
          +   * Reads the revision given by the id.
              * 
          * * string revision_id = 2; @@ -420,7 +420,7 @@ public java.lang.String getRevisionId() { * * *
          -   * Reads the revision given by the ID.
          +   * Reads the revision given by the id.
              * 
          * * string revision_id = 2; @@ -1051,7 +1051,7 @@ public Builder clearRevisionCase() { * * *
          -     * Reads the revision given by the ID.
          +     * Reads the revision given by the id.
                * 
          * * string revision_id = 2; @@ -1067,7 +1067,7 @@ public boolean hasRevisionId() { * * *
          -     * Reads the revision given by the ID.
          +     * Reads the revision given by the id.
                * 
          * * string revision_id = 2; @@ -1096,7 +1096,7 @@ public java.lang.String getRevisionId() { * * *
          -     * Reads the revision given by the ID.
          +     * Reads the revision given by the id.
                * 
          * * string revision_id = 2; @@ -1125,7 +1125,7 @@ public com.google.protobuf.ByteString getRevisionIdBytes() { * * *
          -     * Reads the revision given by the ID.
          +     * Reads the revision given by the id.
                * 
          * * string revision_id = 2; @@ -1147,7 +1147,7 @@ public Builder setRevisionId(java.lang.String value) { * * *
          -     * Reads the revision given by the ID.
          +     * Reads the revision given by the id.
                * 
          * * string revision_id = 2; @@ -1167,7 +1167,7 @@ public Builder clearRevisionId() { * * *
          -     * Reads the revision given by the ID.
          +     * Reads the revision given by the id.
                * 
          * * string revision_id = 2; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/RevisionRefOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/RevisionRefOrBuilder.java index 6fccd5c252e9..c243a7e1eff0 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/RevisionRefOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/RevisionRefOrBuilder.java @@ -69,7 +69,7 @@ public interface RevisionRefOrBuilder * * *
          -   * Reads the revision given by the ID.
          +   * Reads the revision given by the id.
              * 
          * * string revision_id = 2; @@ -82,7 +82,7 @@ public interface RevisionRefOrBuilder * * *
          -   * Reads the revision given by the ID.
          +   * Reads the revision given by the id.
              * 
          * * string revision_id = 2; @@ -95,7 +95,7 @@ public interface RevisionRefOrBuilder * * *
          -   * Reads the revision given by the ID.
          +   * Reads the revision given by the id.
              * 
          * * string revision_id = 2; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UpdateProcessorVersionMetadata.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UpdateProcessorVersionMetadata.java new file mode 100644 index 000000000000..e47f0a59ee3f --- /dev/null +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UpdateProcessorVersionMetadata.java @@ -0,0 +1,723 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/documentai/v1beta3/document_processor_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.documentai.v1beta3; + +/** + * + * + *
          + * The long-running operation metadata for the
          + * [UpdateProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.UpdateProcessorVersion]
          + * method.
          + * 
          + * + * Protobuf type {@code google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata} + */ +@com.google.protobuf.Generated +public final class UpdateProcessorVersionMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata) + UpdateProcessorVersionMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateProcessorVersionMetadata"); + } + + // Use UpdateProcessorVersionMetadata.newBuilder() to construct. + private UpdateProcessorVersionMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateProcessorVersionMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DocumentAiProcessorService + .internal_static_google_cloud_documentai_v1beta3_UpdateProcessorVersionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DocumentAiProcessorService + .internal_static_google_cloud_documentai_v1beta3_UpdateProcessorVersionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata.class, + com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata.Builder.class); + } + + private int bitField0_; + public static final int COMMON_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.documentai.v1beta3.CommonOperationMetadata commonMetadata_; + + /** + * + * + *
          +   * The basic metadata for the long-running operation.
          +   * 
          + * + * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; + * + * @return Whether the commonMetadata field is set. + */ + @java.lang.Override + public boolean hasCommonMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +   * The basic metadata for the long-running operation.
          +   * 
          + * + * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; + * + * @return The commonMetadata. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.CommonOperationMetadata getCommonMetadata() { + return commonMetadata_ == null + ? com.google.cloud.documentai.v1beta3.CommonOperationMetadata.getDefaultInstance() + : commonMetadata_; + } + + /** + * + * + *
          +   * The basic metadata for the long-running operation.
          +   * 
          + * + * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.CommonOperationMetadataOrBuilder + getCommonMetadataOrBuilder() { + return commonMetadata_ == null + ? com.google.cloud.documentai.v1beta3.CommonOperationMetadata.getDefaultInstance() + : commonMetadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getCommonMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommonMetadata()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata)) { + return super.equals(obj); + } + com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata other = + (com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata) obj; + + if (hasCommonMetadata() != other.hasCommonMetadata()) return false; + if (hasCommonMetadata()) { + if (!getCommonMetadata().equals(other.getCommonMetadata())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCommonMetadata()) { + hash = (37 * hash) + COMMON_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getCommonMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
          +   * The long-running operation metadata for the
          +   * [UpdateProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.UpdateProcessorVersion]
          +   * method.
          +   * 
          + * + * Protobuf type {@code google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata) + com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DocumentAiProcessorService + .internal_static_google_cloud_documentai_v1beta3_UpdateProcessorVersionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DocumentAiProcessorService + .internal_static_google_cloud_documentai_v1beta3_UpdateProcessorVersionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata.class, + com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCommonMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + commonMetadata_ = null; + if (commonMetadataBuilder_ != null) { + commonMetadataBuilder_.dispose(); + commonMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.documentai.v1beta3.DocumentAiProcessorService + .internal_static_google_cloud_documentai_v1beta3_UpdateProcessorVersionMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata + getDefaultInstanceForType() { + return com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata build() { + com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata buildPartial() { + com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata result = + new com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.commonMetadata_ = + commonMetadataBuilder_ == null ? commonMetadata_ : commonMetadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata) { + return mergeFrom( + (com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata other) { + if (other + == com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata + .getDefaultInstance()) return this; + if (other.hasCommonMetadata()) { + mergeCommonMetadata(other.getCommonMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetCommonMetadataFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.documentai.v1beta3.CommonOperationMetadata commonMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.documentai.v1beta3.CommonOperationMetadata, + com.google.cloud.documentai.v1beta3.CommonOperationMetadata.Builder, + com.google.cloud.documentai.v1beta3.CommonOperationMetadataOrBuilder> + commonMetadataBuilder_; + + /** + * + * + *
          +     * The basic metadata for the long-running operation.
          +     * 
          + * + * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; + * + * @return Whether the commonMetadata field is set. + */ + public boolean hasCommonMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
          +     * The basic metadata for the long-running operation.
          +     * 
          + * + * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; + * + * @return The commonMetadata. + */ + public com.google.cloud.documentai.v1beta3.CommonOperationMetadata getCommonMetadata() { + if (commonMetadataBuilder_ == null) { + return commonMetadata_ == null + ? com.google.cloud.documentai.v1beta3.CommonOperationMetadata.getDefaultInstance() + : commonMetadata_; + } else { + return commonMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
          +     * The basic metadata for the long-running operation.
          +     * 
          + * + * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; + */ + public Builder setCommonMetadata( + com.google.cloud.documentai.v1beta3.CommonOperationMetadata value) { + if (commonMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + commonMetadata_ = value; + } else { + commonMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * The basic metadata for the long-running operation.
          +     * 
          + * + * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; + */ + public Builder setCommonMetadata( + com.google.cloud.documentai.v1beta3.CommonOperationMetadata.Builder builderForValue) { + if (commonMetadataBuilder_ == null) { + commonMetadata_ = builderForValue.build(); + } else { + commonMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
          +     * The basic metadata for the long-running operation.
          +     * 
          + * + * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; + */ + public Builder mergeCommonMetadata( + com.google.cloud.documentai.v1beta3.CommonOperationMetadata value) { + if (commonMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && commonMetadata_ != null + && commonMetadata_ + != com.google.cloud.documentai.v1beta3.CommonOperationMetadata + .getDefaultInstance()) { + getCommonMetadataBuilder().mergeFrom(value); + } else { + commonMetadata_ = value; + } + } else { + commonMetadataBuilder_.mergeFrom(value); + } + if (commonMetadata_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
          +     * The basic metadata for the long-running operation.
          +     * 
          + * + * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; + */ + public Builder clearCommonMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + commonMetadata_ = null; + if (commonMetadataBuilder_ != null) { + commonMetadataBuilder_.dispose(); + commonMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
          +     * The basic metadata for the long-running operation.
          +     * 
          + * + * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; + */ + public com.google.cloud.documentai.v1beta3.CommonOperationMetadata.Builder + getCommonMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetCommonMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
          +     * The basic metadata for the long-running operation.
          +     * 
          + * + * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; + */ + public com.google.cloud.documentai.v1beta3.CommonOperationMetadataOrBuilder + getCommonMetadataOrBuilder() { + if (commonMetadataBuilder_ != null) { + return commonMetadataBuilder_.getMessageOrBuilder(); + } else { + return commonMetadata_ == null + ? com.google.cloud.documentai.v1beta3.CommonOperationMetadata.getDefaultInstance() + : commonMetadata_; + } + } + + /** + * + * + *
          +     * The basic metadata for the long-running operation.
          +     * 
          + * + * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.documentai.v1beta3.CommonOperationMetadata, + com.google.cloud.documentai.v1beta3.CommonOperationMetadata.Builder, + com.google.cloud.documentai.v1beta3.CommonOperationMetadataOrBuilder> + internalGetCommonMetadataFieldBuilder() { + if (commonMetadataBuilder_ == null) { + commonMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.documentai.v1beta3.CommonOperationMetadata, + com.google.cloud.documentai.v1beta3.CommonOperationMetadata.Builder, + com.google.cloud.documentai.v1beta3.CommonOperationMetadataOrBuilder>( + getCommonMetadata(), getParentForChildren(), isClean()); + commonMetadata_ = null; + } + return commonMetadataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata) + private static final com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata(); + } + + public static com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateProcessorVersionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UpdateProcessorVersionMetadataOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UpdateProcessorVersionMetadataOrBuilder.java new file mode 100644 index 000000000000..dda59778afa3 --- /dev/null +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UpdateProcessorVersionMetadataOrBuilder.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/documentai/v1beta3/document_processor_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.documentai.v1beta3; + +@com.google.protobuf.Generated +public interface UpdateProcessorVersionMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.UpdateProcessorVersionMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * The basic metadata for the long-running operation.
          +   * 
          + * + * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; + * + * @return Whether the commonMetadata field is set. + */ + boolean hasCommonMetadata(); + + /** + * + * + *
          +   * The basic metadata for the long-running operation.
          +   * 
          + * + * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; + * + * @return The commonMetadata. + */ + com.google.cloud.documentai.v1beta3.CommonOperationMetadata getCommonMetadata(); + + /** + * + * + *
          +   * The basic metadata for the long-running operation.
          +   * 
          + * + * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; + */ + com.google.cloud.documentai.v1beta3.CommonOperationMetadataOrBuilder getCommonMetadataOrBuilder(); +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/barcode.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/barcode.proto index ec0958f97c71..02a4cd4bfac3 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/barcode.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/barcode.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/dataset.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/dataset.proto index 31cb997a761a..08321edd64cd 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/dataset.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/dataset.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -69,9 +69,6 @@ message Dataset { // Configuration specific to an unmanaged dataset. message UnmanagedDatasetConfig {} - // Configuration specific to spanner-based indexing. - message SpannerIndexingConfig {} - // Different states of a dataset. enum State { // Default unspecified enum, should not be used. @@ -106,14 +103,6 @@ message Dataset { [(google.api.field_behavior) = OPTIONAL]; } - oneof indexing_source { - // Optional. A lightweight indexing source with low latency and high - // reliability, but lacking advanced features like CMEK and content-based - // search. - SpannerIndexingConfig spanner_indexing_config = 4 - [(google.api.field_behavior) = OPTIONAL]; - } - // Dataset resource name. // Format: // `projects/{project}/locations/{location}/processors/{processor}/dataset` diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document.proto index 4560ae86dd36..c803d16bbbd1 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.documentai.v1beta3; import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; import "google/cloud/documentai/v1beta3/barcode.proto"; import "google/cloud/documentai/v1beta3/geometry.proto"; import "google/protobuf/timestamp.proto"; @@ -340,7 +341,7 @@ message Document { repeated DetectedLanguage detected_languages = 2; } - // Detected non-text visual elements, for example, checkbox, signature, etc. + // Detected non-text visual elements, for example, checkbox, signature etc. // on the page. message VisualElement { // [Layout][google.cloud.documentai.v1beta3.Document.Page.Layout] for @@ -530,7 +531,7 @@ message Document { // A list of visually detected tokens on the page. repeated Token tokens = 8; - // A list of detected non-text visual elements for example, checkbox, + // A list of detected non-text visual elements, for example, checkbox, // signature etc. on the page. repeated VisualElement visual_elements = 9; @@ -628,10 +629,11 @@ message Document { // [Document.text][google.cloud.documentai.v1beta3.Document.text]. TextAnchor text_anchor = 1 [(google.api.field_behavior) = OPTIONAL]; - // Required. Entity type from a schema for example, `Address`. + // Required. Entity type from a schema, for example, `Address`. string type = 2 [(google.api.field_behavior) = REQUIRED]; - // Optional. Text value of the entity for example, `1600 Amphitheatre Pkwy`. + // Optional. Text value of the entity, for example, `1600 Amphitheatre + // Pkwy`. string mention_text = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. Deprecated. Use `id` field instead. @@ -644,7 +646,7 @@ message Document { // the page where it was found. PageAnchor page_anchor = 6 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Canonical ID. This will be a unique value in the entity list + // Optional. Canonical id. This will be a unique value in the entity list // for this document. string id = 7 [(google.api.field_behavior) = OPTIONAL]; @@ -673,10 +675,10 @@ message Document { // Relationship between // [Entities][google.cloud.documentai.v1beta3.Document.Entity]. message EntityRelation { - // Subject entity ID. + // Subject entity id. string subject_id = 1; - // Object entity ID. + // Object entity id. string object_id = 2; // Relationship description. @@ -806,7 +808,7 @@ message Document { // of entities, properties within entities, etc.) in the parent revision. int32 index = 3; - // The ID of the parent provenance. + // The id of the parent provenance. int32 id = 2 [deprecated = true]; } @@ -846,7 +848,7 @@ message Document { // The index of the revision that produced this element. int32 revision = 1 [deprecated = true]; - // The ID of this operation. Needs to be unique within the scope of the + // The Id of this operation. Needs to be unique within the scope of the // revision. int32 id = 2 [deprecated = true]; @@ -871,7 +873,7 @@ message Document { // Who/what made the change oneof source { - // If the change was made by a person specify the name or ID of that + // If the change was made by a person specify the name or id of that // person. string agent = 4; @@ -880,7 +882,7 @@ message Document { string processor = 5; } - // ID of the revision, internally generated by doc proto storage. + // Id of the revision, internally generated by doc proto storage. // Unique within the context of the document. string id = 1; @@ -889,7 +891,7 @@ message Document { // index into the `revisions` field. repeated int32 parent = 2 [deprecated = true]; - // The revisions that this revision is based on. Must include all the IDs + // The revisions that this revision is based on. Must include all the ids // that have anything to do with this revision - eg. there are // `provenance.parent.revision` fields that index into this field. repeated string parent_ids = 7; @@ -1013,18 +1015,18 @@ message Document { message LayoutImageBlock { // Source of the image. oneof image_source { - // Optional. Asset ID of the inline image. If set, find the image + // Optional. Asset id of the inline image. If set, find the image // content in the blob_assets field. string blob_asset_id = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Google Cloud Storage URI of the image. + // Optional. Google Cloud Storage uri of the image. string gcs_uri = 5 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Data URI of the image. + // Optional. Data uri of the image. // It is composed of four parts: a prefix (data:), a MIME type // indicating the type of data, an optional base64 token if // non-textual, and the data itself: - // data:[][;base64],. + // data:[][;base64], string data_uri = 6 [(google.api.field_behavior) = OPTIONAL]; } @@ -1103,18 +1105,18 @@ message Document { message ImageChunkField { // Source of the image. oneof image_source { - // Optional. Asset ID of the inline image. If set, find the image + // Optional. Asset id of the inline image. If set, find the image // content in the blob_assets field. string blob_asset_id = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Google Cloud Storage URI of the image. + // Optional. Google Cloud Storage uri of the image. string gcs_uri = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Data URI of the image. + // Optional. Data uri of the image. // It is composed of four parts: a prefix (data:), a MIME type // indicating the type of data, an optional base64 token if // non-textual, and the data itself: - // data:[][;base64],. + // data:[][;base64], string data_uri = 3 [(google.api.field_behavior) = OPTIONAL]; } @@ -1171,7 +1173,7 @@ message Document { // in this document, for example, image bytes, such that it can be referenced // by other fields in the document via asset ID. message BlobAsset { - // Optional. The ID of the blob asset. + // Optional. The id of the blob asset. string asset_id = 1 [(google.api.field_behavior) = OPTIONAL]; // Optional. The content of the blob asset, for example, image bytes. @@ -1205,7 +1207,7 @@ message Document { VALIDATION_RESULT_TYPE_NOT_APPLICABLE = 4; } - // The name of the validation rule. + // The display name of the validation rule. string rule_name = 1; // The description of the validation rule. @@ -1229,7 +1231,7 @@ message Document { // Entity revision. message EntitiesRevision { - // The revision ID. + // The revision id. string revision_id = 1; // The entities in this revision. @@ -1237,6 +1239,9 @@ message Document { // The entity validation output for this revision. EntityValidationOutput entity_validation_output = 3; + + // Optional. The history of this revision. + Provenance provenance = 4 [(google.api.field_behavior) = OPTIONAL]; } // Original source document from the user. @@ -1320,7 +1325,7 @@ message Document { // The entity revision ID that `document.entities` field is based on. // If this field is set and `entities_revisions` is not empty, the entities in // `document.entities` field are the entities in the entity revision with this - // ID and `document.entity_validation_output` field is the + // id and `document.entity_validation_output` field is the // `entity_validation_output` field in this entity revision. string entities_revision_id = 23; } @@ -1347,7 +1352,7 @@ message RevisionRef { // Reads the revision by the predefined case. RevisionCase revision_case = 1; - // Reads the revision given by the ID. + // Reads the revision given by the id. string revision_id = 2; // Reads the revision generated by the processor version. diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_io.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_io.proto index 9de9bb9d5c61..a80f1a95be51 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_io.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_io.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ syntax = "proto3"; package google.cloud.documentai.v1beta3; +import "google/cloud/documentai/v1beta3/document.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3"; @@ -26,6 +27,12 @@ option java_package = "com.google.cloud.documentai.v1beta3"; option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta3"; option ruby_package = "Google::Cloud::DocumentAI::V1beta3"; +// A set of inline documents. +message Documents { + // The list of documents. + repeated Document documents = 1; +} + // Payload message of raw document content (bytes). message RawDocument { // Inline document content. @@ -64,6 +71,12 @@ message GcsPrefix { string gcs_uri_prefix = 1; } +// Specifies a set of raw documents. +message RawDocuments { + // Specifies raw document content and mime type. + repeated RawDocument documents = 1; +} + // The common config to specify a set of documents used as input. message BatchDocumentsInputConfig { // The source. Make sure that the caller of the API has storage.objects.get diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_processor_service.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_processor_service.proto index b5b5a3ad2464..c3e4c98e4c6a 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_processor_service.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_processor_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -286,6 +286,7 @@ service DocumentProcessorService { // the specified processor. rpc ReviewDocument(ReviewDocumentRequest) returns (google.longrunning.Operation) { + option deprecated = true; option (google.api.http) = { post: "/v1beta3/{human_review_config=projects/*/locations/*/processors/*/humanReviewConfig}:reviewDocument" body: "*" @@ -393,6 +394,9 @@ message ProcessOptions { // Optional. Whether to include table annotations in layout parser response. bool enable_table_annotation = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether to split table. + bool enable_table_split = 8 [(google.api.field_behavior) = OPTIONAL]; } // A list of individual page numbers. @@ -475,7 +479,7 @@ message ProcessRequest { // Whether human review should be skipped for this request. Default to // `false`. - bool skip_human_review = 3; + bool skip_human_review = 3 [deprecated = true]; // Specifies which fields to include in the // [ProcessResponse.document][google.cloud.documentai.v1beta3.ProcessResponse.document] @@ -614,7 +618,7 @@ message BatchProcessRequest { // Whether human review should be skipped for this request. Default to // `false`. - bool skip_human_review = 4; + bool skip_human_review = 4 [deprecated = true]; // Inference-time options for the process API ProcessOptions process_options = 7; @@ -1458,3 +1462,11 @@ message ImportProcessorVersionMetadata { // The basic metadata for the long-running operation. CommonOperationMetadata common_metadata = 1; } + +// The long-running operation metadata for the +// [UpdateProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.UpdateProcessorVersion] +// method. +message UpdateProcessorVersionMetadata { + // The basic metadata for the long-running operation. + CommonOperationMetadata common_metadata = 1; +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_schema.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_schema.proto index 637bb9997165..8539769f467d 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_schema.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_schema.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,6 +16,8 @@ syntax = "proto3"; package google.cloud.documentai.v1beta3; +import "google/api/field_behavior.proto"; + option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3"; option go_package = "cloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb"; option java_multiple_files = true; @@ -100,9 +102,9 @@ message DocumentSchema { // For example, a bank statement might only have one // `account_number`, but this account number can be mentioned in several // places on the document. In this case, the `account_number` is - // considered a `REQUIRED_ONCE` entity type. If, on the other hand, we - // expect a bank statement to contain the status of multiple different - // accounts for the customers, the occurrence type is set to + // considered a `REQUIRED_ONCE` entity type. If, on the other hand, it's + // expected that a bank statement contains the status of multiple + // different accounts for the customers, the occurrence type is set to // `REQUIRED_MULTIPLE`. enum OccurrenceType { // Unspecified occurrence type. @@ -166,7 +168,7 @@ message DocumentSchema { oneof value_source { // If specified, lists all the possible values for this entity. This // should not be more than a handful of values. If the number of values - // is >10 or could change frequently use the `EntityType.value_ontology` + // is >10 or could change frequently, use the `EntityType.value_ontology` // field and specify a list of all possible values in a value ontology // file. EnumValues enum_values = 14; @@ -183,7 +185,7 @@ message DocumentSchema { // - Maximum 64 characters. // - Must start with a letter. // - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward - // compatibility internal infrastructure and tooling can handle any ascii + // compatibility, internal infrastructure and tooling can handle any ASCII // character.) // - The `/` is sometimes used to denote a property of a type. For example // `line_item/amount`. This convention is deprecated, but will still be @@ -219,13 +221,13 @@ message DocumentSchema { // If set, all the nested entities must be prefixed with the parents. bool prefixed_naming_on_properties = 6; - // If set, we will skip the naming format validation in the schema. So the + // If set, this will skip the naming format validation in the schema. So the // string values in `DocumentSchema.EntityType.name` and // `DocumentSchema.EntityType.Property.name` will not be checked. bool skip_naming_validation = 7; } - // Display name to show to users. + // Display name to show users. string display_name = 1; // Description of the schema. @@ -236,4 +238,9 @@ message DocumentSchema { // Metadata of the schema. Metadata metadata = 4; + + // Optional. Document level prompt provided by the user. This custom text is + // injected into the AI model's prompt to provide extra, document-wide + // guidance for processing. + string document_prompt = 5 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_service.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_service.proto index e794c99d7151..91cc4f9c80c9 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_service.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -190,6 +190,13 @@ message ImportDocumentsRequest { // The common config to specify a set of documents used as input. BatchDocumentsInputConfig batch_input_config = 1; + + // Optional. If set, determines the type of the documents to be imported in + // this batch. It can be used to auto-label the documents with a single + // entity of the provided type. This field can only be used with a + // classifier or splitter processor. Providing this field is mutually + // exclusive with `entities` and `auto_labeling_config`. + string document_type = 6 [(google.api.field_behavior) = OPTIONAL]; } // Required. The dataset resource name. diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/evaluation.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/evaluation.proto index da1189e7b882..6f60de0536e2 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/evaluation.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/evaluation.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -77,7 +77,7 @@ message Evaluation { // The calculated recall. float recall = 2; - // The calculated f1 score. + // The calculated F1 score. float f1_score = 3; // The amount of occurrences in predicted documents. @@ -157,6 +157,23 @@ message Evaluation { MetricsType metrics_type = 7; } + // A revision of the evaluation. + message EvaluationRevision { + // Output only. The revision ID of the evaluation. + string revision_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Counters for the documents used in the evaluation. + Counters document_counters = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Metrics for all the entities in aggregate. + MultiConfidenceMetrics all_entities_metrics = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Metrics across confidence levels, for different entities. + map entity_metrics = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // The resource name of the evaluation. // Format: // `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}/evaluations/{evaluation}` @@ -179,4 +196,7 @@ message Evaluation { // The KMS key version with which data is encrypted. string kms_key_version_name = 7; + + // Contains all revisions of the evaluation, excluding the latest one. + repeated EvaluationRevision revisions = 9; } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/geometry.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/geometry.proto index 21bd4ae0fcee..3febecc8f972 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/geometry.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/geometry.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/operation_metadata.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/operation_metadata.proto index de0e127ac05a..1d6fa007ae15 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/operation_metadata.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/operation_metadata.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/processor.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/processor.proto index b7bebd3b9fa7..36d95318cf3c 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/processor.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/processor.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -56,11 +56,11 @@ message ProcessorVersion { message GenAiModelInfo { // Information for a pretrained Google-managed foundation model. message FoundationGenAiModelInfo { - // Whether finetuning is allowed for this base processor version. + // Whether fine tuning is allowed for this base processor version. bool finetuning_allowed = 1; // The minimum number of labeled documents in the training dataset - // required for finetuning. + // required for fine tuning. int32 min_train_labeled_documents = 2; } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/processor_type.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/processor_type.proto index 989b6e6c0dee..5ca013e43e98 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/processor_type.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/processor_type.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 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/java-domains/README.md b/java-domains/README.md index ebc3374dcf81..6e9226287934 100644 --- a/java-domains/README.md +++ b/java-domains/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-domains - 1.79.0 + 1.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-domains:1.79.0' +implementation 'com.google.cloud:google-cloud-domains:1.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-domains" % "1.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-domains" % "1.80.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-domains/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-domains.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-domains/1.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-domains/1.80.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-domains/google-cloud-domains-bom/pom.xml b/java-domains/google-cloud-domains-bom/pom.xml index f9fa063ae596..2be89bb398eb 100644 --- a/java-domains/google-cloud-domains-bom/pom.xml +++ b/java-domains/google-cloud-domains-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-domains-bom - 1.81.0-SNAPSHOT + 1.82.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.cloud google-cloud-domains - 1.81.0-SNAPSHOT + 1.82.0 com.google.api.grpc grpc-google-cloud-domains-v1beta1 - 0.89.0-SNAPSHOT + 0.90.0 com.google.api.grpc grpc-google-cloud-domains-v1alpha2 - 0.89.0-SNAPSHOT + 0.90.0 com.google.api.grpc grpc-google-cloud-domains-v1 - 1.81.0-SNAPSHOT + 1.82.0 com.google.api.grpc proto-google-cloud-domains-v1beta1 - 0.89.0-SNAPSHOT + 0.90.0 com.google.api.grpc proto-google-cloud-domains-v1alpha2 - 0.89.0-SNAPSHOT + 0.90.0 com.google.api.grpc proto-google-cloud-domains-v1 - 1.81.0-SNAPSHOT + 1.82.0
          diff --git a/java-domains/google-cloud-domains/pom.xml b/java-domains/google-cloud-domains/pom.xml index d0dbd6166f32..c304225138ca 100644 --- a/java-domains/google-cloud-domains/pom.xml +++ b/java-domains/google-cloud-domains/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-domains - 1.81.0-SNAPSHOT + 1.82.0 jar Google Cloud Domains allows you to register and manage domains by using Cloud Domains. com.google.cloud google-cloud-domains-parent - 1.81.0-SNAPSHOT + 1.82.0 google-cloud-domains diff --git a/java-domains/grpc-google-cloud-domains-v1/pom.xml b/java-domains/grpc-google-cloud-domains-v1/pom.xml index b4ed6beb40ae..02c66e21ae7b 100644 --- a/java-domains/grpc-google-cloud-domains-v1/pom.xml +++ b/java-domains/grpc-google-cloud-domains-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-domains-v1 - 1.81.0-SNAPSHOT + 1.82.0 grpc-google-cloud-domains-v1 GRPC library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.81.0-SNAPSHOT + 1.82.0 diff --git a/java-domains/grpc-google-cloud-domains-v1alpha2/pom.xml b/java-domains/grpc-google-cloud-domains-v1alpha2/pom.xml index ac5a8e5efe3b..50c3b3268650 100644 --- a/java-domains/grpc-google-cloud-domains-v1alpha2/pom.xml +++ b/java-domains/grpc-google-cloud-domains-v1alpha2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-domains-v1alpha2 - 0.89.0-SNAPSHOT + 0.90.0 grpc-google-cloud-domains-v1alpha2 GRPC library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.81.0-SNAPSHOT + 1.82.0 diff --git a/java-domains/grpc-google-cloud-domains-v1beta1/pom.xml b/java-domains/grpc-google-cloud-domains-v1beta1/pom.xml index 9c07222490a9..70771e1e24e8 100644 --- a/java-domains/grpc-google-cloud-domains-v1beta1/pom.xml +++ b/java-domains/grpc-google-cloud-domains-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-domains-v1beta1 - 0.89.0-SNAPSHOT + 0.90.0 grpc-google-cloud-domains-v1beta1 GRPC library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.81.0-SNAPSHOT + 1.82.0 diff --git a/java-domains/pom.xml b/java-domains/pom.xml index 03667fd966bc..a892808679f6 100644 --- a/java-domains/pom.xml +++ b/java-domains/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-domains-parent pom - 1.81.0-SNAPSHOT + 1.82.0 Google Cloud Domains Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-domains - 1.81.0-SNAPSHOT + 1.82.0 com.google.api.grpc proto-google-cloud-domains-v1 - 1.81.0-SNAPSHOT + 1.82.0 com.google.api.grpc grpc-google-cloud-domains-v1 - 1.81.0-SNAPSHOT + 1.82.0 com.google.api.grpc proto-google-cloud-domains-v1alpha2 - 0.89.0-SNAPSHOT + 0.90.0 com.google.api.grpc grpc-google-cloud-domains-v1alpha2 - 0.89.0-SNAPSHOT + 0.90.0 com.google.api.grpc proto-google-cloud-domains-v1beta1 - 0.89.0-SNAPSHOT + 0.90.0 com.google.api.grpc grpc-google-cloud-domains-v1beta1 - 0.89.0-SNAPSHOT + 0.90.0 diff --git a/java-domains/proto-google-cloud-domains-v1/pom.xml b/java-domains/proto-google-cloud-domains-v1/pom.xml index ac6db835a4ba..8eaf14649cd3 100644 --- a/java-domains/proto-google-cloud-domains-v1/pom.xml +++ b/java-domains/proto-google-cloud-domains-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-domains-v1 - 1.81.0-SNAPSHOT + 1.82.0 proto-google-cloud-domains-v1 Proto library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.81.0-SNAPSHOT + 1.82.0 diff --git a/java-domains/proto-google-cloud-domains-v1alpha2/pom.xml b/java-domains/proto-google-cloud-domains-v1alpha2/pom.xml index c11bf369f1e5..f785a4392e13 100644 --- a/java-domains/proto-google-cloud-domains-v1alpha2/pom.xml +++ b/java-domains/proto-google-cloud-domains-v1alpha2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-domains-v1alpha2 - 0.89.0-SNAPSHOT + 0.90.0 proto-google-cloud-domains-v1alpha2 Proto library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.81.0-SNAPSHOT + 1.82.0 diff --git a/java-domains/proto-google-cloud-domains-v1beta1/pom.xml b/java-domains/proto-google-cloud-domains-v1beta1/pom.xml index 3967f702bce9..37651dfeb9f7 100644 --- a/java-domains/proto-google-cloud-domains-v1beta1/pom.xml +++ b/java-domains/proto-google-cloud-domains-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-domains-v1beta1 - 0.89.0-SNAPSHOT + 0.90.0 proto-google-cloud-domains-v1beta1 Proto library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.81.0-SNAPSHOT + 1.82.0 diff --git a/java-edgenetwork/README.md b/java-edgenetwork/README.md index 6dc3c70096ad..116e453288b8 100644 --- a/java-edgenetwork/README.md +++ b/java-edgenetwork/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-edgenetwork - 0.50.0 + 0.51.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-edgenetwork:0.50.0' +implementation 'com.google.cloud:google-cloud-edgenetwork:0.51.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-edgenetwork" % "0.50.0" +libraryDependencies += "com.google.cloud" % "google-cloud-edgenetwork" % "0.51.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-edgenetwork/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-edgenetwork.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-edgenetwork/0.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-edgenetwork/0.51.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-edgenetwork/google-cloud-edgenetwork-bom/pom.xml b/java-edgenetwork/google-cloud-edgenetwork-bom/pom.xml index 848aedf813ea..ed8e188edc01 100644 --- a/java-edgenetwork/google-cloud-edgenetwork-bom/pom.xml +++ b/java-edgenetwork/google-cloud-edgenetwork-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-edgenetwork-bom - 0.52.0-SNAPSHOT + 0.53.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-edgenetwork - 0.52.0-SNAPSHOT + 0.53.0 com.google.api.grpc grpc-google-cloud-edgenetwork-v1 - 0.52.0-SNAPSHOT + 0.53.0 com.google.api.grpc proto-google-cloud-edgenetwork-v1 - 0.52.0-SNAPSHOT + 0.53.0 diff --git a/java-edgenetwork/google-cloud-edgenetwork/pom.xml b/java-edgenetwork/google-cloud-edgenetwork/pom.xml index efc98dfeacb8..dc188ff0e119 100644 --- a/java-edgenetwork/google-cloud-edgenetwork/pom.xml +++ b/java-edgenetwork/google-cloud-edgenetwork/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-edgenetwork - 0.52.0-SNAPSHOT + 0.53.0 jar Google Distributed Cloud Edge Network API Distributed Cloud Edge Network API Network management API for Distributed Cloud Edge. com.google.cloud google-cloud-edgenetwork-parent - 0.52.0-SNAPSHOT + 0.53.0 google-cloud-edgenetwork diff --git a/java-edgenetwork/grpc-google-cloud-edgenetwork-v1/pom.xml b/java-edgenetwork/grpc-google-cloud-edgenetwork-v1/pom.xml index b5794d4b910e..b166dc0bf197 100644 --- a/java-edgenetwork/grpc-google-cloud-edgenetwork-v1/pom.xml +++ b/java-edgenetwork/grpc-google-cloud-edgenetwork-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-edgenetwork-v1 - 0.52.0-SNAPSHOT + 0.53.0 grpc-google-cloud-edgenetwork-v1 GRPC library for google-cloud-edgenetwork com.google.cloud google-cloud-edgenetwork-parent - 0.52.0-SNAPSHOT + 0.53.0 diff --git a/java-edgenetwork/pom.xml b/java-edgenetwork/pom.xml index d9862dda27a4..e85aba8298b8 100644 --- a/java-edgenetwork/pom.xml +++ b/java-edgenetwork/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-edgenetwork-parent pom - 0.52.0-SNAPSHOT + 0.53.0 Google Distributed Cloud Edge Network API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-edgenetwork - 0.52.0-SNAPSHOT + 0.53.0 com.google.api.grpc grpc-google-cloud-edgenetwork-v1 - 0.52.0-SNAPSHOT + 0.53.0 com.google.api.grpc proto-google-cloud-edgenetwork-v1 - 0.52.0-SNAPSHOT + 0.53.0 diff --git a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/pom.xml b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/pom.xml index 1ea4a5197f6c..35e8f4fa530d 100644 --- a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/pom.xml +++ b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-edgenetwork-v1 - 0.52.0-SNAPSHOT + 0.53.0 proto-google-cloud-edgenetwork-v1 Proto library for google-cloud-edgenetwork com.google.cloud google-cloud-edgenetwork-parent - 0.52.0-SNAPSHOT + 0.53.0 diff --git a/java-enterpriseknowledgegraph/README.md b/java-enterpriseknowledgegraph/README.md index 343023861f68..7bcc0eb61a9c 100644 --- a/java-enterpriseknowledgegraph/README.md +++ b/java-enterpriseknowledgegraph/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-enterpriseknowledgegraph - 0.78.0 + 0.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-enterpriseknowledgegraph:0.78.0' +implementation 'com.google.cloud:google-cloud-enterpriseknowledgegraph:0.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-enterpriseknowledgegraph" % "0.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-enterpriseknowledgegraph" % "0.79.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-enterpriseknowledgegraph.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-enterpriseknowledgegraph/0.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-enterpriseknowledgegraph/0.79.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph-bom/pom.xml b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph-bom/pom.xml index 10af0539afea..0b0afda47b72 100644 --- a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph-bom/pom.xml +++ b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-enterpriseknowledgegraph-bom - 0.80.0-SNAPSHOT + 0.81.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-enterpriseknowledgegraph - 0.80.0-SNAPSHOT + 0.81.0 com.google.api.grpc grpc-google-cloud-enterpriseknowledgegraph-v1 - 0.80.0-SNAPSHOT + 0.81.0 com.google.api.grpc proto-google-cloud-enterpriseknowledgegraph-v1 - 0.80.0-SNAPSHOT + 0.81.0 diff --git a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/pom.xml b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/pom.xml index 2be274f6f77f..77575982a3a7 100644 --- a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/pom.xml +++ b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-enterpriseknowledgegraph - 0.80.0-SNAPSHOT + 0.81.0 jar Google Enterprise Knowledge Graph Enterprise Knowledge Graph Enterprise Knowledge Graph organizes siloed information into organizational knowledge, which involves consolidating, standardizing, and reconciling data in an efficient and useful way. com.google.cloud google-cloud-enterpriseknowledgegraph-parent - 0.80.0-SNAPSHOT + 0.81.0 google-cloud-enterpriseknowledgegraph diff --git a/java-enterpriseknowledgegraph/grpc-google-cloud-enterpriseknowledgegraph-v1/pom.xml b/java-enterpriseknowledgegraph/grpc-google-cloud-enterpriseknowledgegraph-v1/pom.xml index 12138d53d2ed..f5b549ba74ee 100644 --- a/java-enterpriseknowledgegraph/grpc-google-cloud-enterpriseknowledgegraph-v1/pom.xml +++ b/java-enterpriseknowledgegraph/grpc-google-cloud-enterpriseknowledgegraph-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-enterpriseknowledgegraph-v1 - 0.80.0-SNAPSHOT + 0.81.0 grpc-google-cloud-enterpriseknowledgegraph-v1 GRPC library for google-cloud-enterpriseknowledgegraph com.google.cloud google-cloud-enterpriseknowledgegraph-parent - 0.80.0-SNAPSHOT + 0.81.0 diff --git a/java-enterpriseknowledgegraph/pom.xml b/java-enterpriseknowledgegraph/pom.xml index 692fb4ffc499..c2f1620a8da6 100644 --- a/java-enterpriseknowledgegraph/pom.xml +++ b/java-enterpriseknowledgegraph/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-enterpriseknowledgegraph-parent pom - 0.80.0-SNAPSHOT + 0.81.0 Google Enterprise Knowledge Graph Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-enterpriseknowledgegraph - 0.80.0-SNAPSHOT + 0.81.0 com.google.api.grpc grpc-google-cloud-enterpriseknowledgegraph-v1 - 0.80.0-SNAPSHOT + 0.81.0 com.google.api.grpc proto-google-cloud-enterpriseknowledgegraph-v1 - 0.80.0-SNAPSHOT + 0.81.0 diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/pom.xml b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/pom.xml index c009677a4487..f74f07c60852 100644 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/pom.xml +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-enterpriseknowledgegraph-v1 - 0.80.0-SNAPSHOT + 0.81.0 proto-google-cloud-enterpriseknowledgegraph-v1 Proto library for google-cloud-enterpriseknowledgegraph com.google.cloud google-cloud-enterpriseknowledgegraph-parent - 0.80.0-SNAPSHOT + 0.81.0 diff --git a/java-errorreporting/README.md b/java-errorreporting/README.md index 89e94d5107b0..34f51c41f96b 100644 --- a/java-errorreporting/README.md +++ b/java-errorreporting/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-errorreporting - 0.203.0-beta + 0.204.0-beta ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-errorreporting:0.203.0-beta' +implementation 'com.google.cloud:google-cloud-errorreporting:0.204.0-beta' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.203.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.204.0-beta" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-errorreporting/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-errorreporting.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-errorreporting/0.203.0-beta +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-errorreporting/0.204.0-beta [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-errorreporting/google-cloud-errorreporting-bom/pom.xml b/java-errorreporting/google-cloud-errorreporting-bom/pom.xml index 8939b5801b98..18fc70b04aa7 100644 --- a/java-errorreporting/google-cloud-errorreporting-bom/pom.xml +++ b/java-errorreporting/google-cloud-errorreporting-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-errorreporting-bom - 0.205.0-beta-SNAPSHOT + 0.206.0-beta pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-errorreporting - 0.205.0-beta-SNAPSHOT + 0.206.0-beta com.google.api.grpc grpc-google-cloud-error-reporting-v1beta1 - 0.171.0-SNAPSHOT + 0.172.0 com.google.api.grpc proto-google-cloud-error-reporting-v1beta1 - 0.171.0-SNAPSHOT + 0.172.0 diff --git a/java-errorreporting/google-cloud-errorreporting/pom.xml b/java-errorreporting/google-cloud-errorreporting/pom.xml index a4933c4303c5..66a261124934 100644 --- a/java-errorreporting/google-cloud-errorreporting/pom.xml +++ b/java-errorreporting/google-cloud-errorreporting/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-errorreporting - 0.205.0-beta-SNAPSHOT + 0.206.0-beta jar Google Cloud Error Reporting Java idiomatic client for Google Cloud Error Reporting com.google.cloud google-cloud-errorreporting-parent - 0.205.0-beta-SNAPSHOT + 0.206.0-beta google-cloud-errorreporting diff --git a/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/pom.xml b/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/pom.xml index a1b1c7ce732f..4d9ebc8fa24e 100644 --- a/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/pom.xml +++ b/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-error-reporting-v1beta1 - 0.171.0-SNAPSHOT + 0.172.0 grpc-google-cloud-error-reporting-v1beta1 GRPC library for grpc-google-cloud-error-reporting-v1beta1 com.google.cloud google-cloud-errorreporting-parent - 0.205.0-beta-SNAPSHOT + 0.206.0-beta diff --git a/java-errorreporting/pom.xml b/java-errorreporting/pom.xml index 8c09ad825ccf..486fb779ce7d 100644 --- a/java-errorreporting/pom.xml +++ b/java-errorreporting/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-errorreporting-parent pom - 0.205.0-beta-SNAPSHOT + 0.206.0-beta Google Cloud Error Reporting Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,18 +29,18 @@ com.google.cloud google-cloud-errorreporting - 0.205.0-beta-SNAPSHOT + 0.206.0-beta com.google.api.grpc proto-google-cloud-error-reporting-v1beta1 - 0.171.0-SNAPSHOT + 0.172.0 com.google.api.grpc grpc-google-cloud-error-reporting-v1beta1 - 0.171.0-SNAPSHOT + 0.172.0 diff --git a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/pom.xml b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/pom.xml index ee589f096de1..471668e84052 100644 --- a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/pom.xml +++ b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-error-reporting-v1beta1 - 0.171.0-SNAPSHOT + 0.172.0 proto-google-cloud-error-reporting-v1beta1 PROTO library for proto-google-cloud-error-reporting-v1beta1 com.google.cloud google-cloud-errorreporting-parent - 0.205.0-beta-SNAPSHOT + 0.206.0-beta diff --git a/java-essential-contacts/README.md b/java-essential-contacts/README.md index 9e9977dfb749..70c96741768f 100644 --- a/java-essential-contacts/README.md +++ b/java-essential-contacts/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-essential-contacts - 2.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-essential-contacts:2.82.0' +implementation 'com.google.cloud:google-cloud-essential-contacts:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-essential-contacts/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-essential-contacts.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-essential-contacts/2.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-essential-contacts/2.83.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-essential-contacts/google-cloud-essential-contacts-bom/pom.xml b/java-essential-contacts/google-cloud-essential-contacts-bom/pom.xml index 11bf23c60225..c0932e3ecb98 100644 --- a/java-essential-contacts/google-cloud-essential-contacts-bom/pom.xml +++ b/java-essential-contacts/google-cloud-essential-contacts-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-essential-contacts-bom - 2.84.0-SNAPSHOT + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-essential-contacts - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc grpc-google-cloud-essential-contacts-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc proto-google-cloud-essential-contacts-v1 - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-essential-contacts/google-cloud-essential-contacts/pom.xml b/java-essential-contacts/google-cloud-essential-contacts/pom.xml index b5cca947c478..66089241944d 100644 --- a/java-essential-contacts/google-cloud-essential-contacts/pom.xml +++ b/java-essential-contacts/google-cloud-essential-contacts/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-essential-contacts - 2.84.0-SNAPSHOT + 2.85.0 jar Google Essential Contacts API Essential Contacts API helps you customize who receives notifications by providing your own list of contacts in many Google Cloud services. com.google.cloud google-cloud-essential-contacts-parent - 2.84.0-SNAPSHOT + 2.85.0 google-cloud-essential-contacts diff --git a/java-essential-contacts/grpc-google-cloud-essential-contacts-v1/pom.xml b/java-essential-contacts/grpc-google-cloud-essential-contacts-v1/pom.xml index 460c1c8c2c24..f576a3328ae3 100644 --- a/java-essential-contacts/grpc-google-cloud-essential-contacts-v1/pom.xml +++ b/java-essential-contacts/grpc-google-cloud-essential-contacts-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-essential-contacts-v1 - 2.84.0-SNAPSHOT + 2.85.0 grpc-google-cloud-essential-contacts-v1 GRPC library for google-cloud-essential-contacts com.google.cloud google-cloud-essential-contacts-parent - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-essential-contacts/pom.xml b/java-essential-contacts/pom.xml index 2450ee6ad4cd..9cd3b906cb66 100644 --- a/java-essential-contacts/pom.xml +++ b/java-essential-contacts/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-essential-contacts-parent pom - 2.84.0-SNAPSHOT + 2.85.0 Google Essential Contacts API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-essential-contacts - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc grpc-google-cloud-essential-contacts-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc proto-google-cloud-essential-contacts-v1 - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-essential-contacts/proto-google-cloud-essential-contacts-v1/pom.xml b/java-essential-contacts/proto-google-cloud-essential-contacts-v1/pom.xml index ddd613841583..b241b71242e4 100644 --- a/java-essential-contacts/proto-google-cloud-essential-contacts-v1/pom.xml +++ b/java-essential-contacts/proto-google-cloud-essential-contacts-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-essential-contacts-v1 - 2.84.0-SNAPSHOT + 2.85.0 proto-google-cloud-essential-contacts-v1 Proto library for google-cloud-essential-contacts com.google.cloud google-cloud-essential-contacts-parent - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-eventarc-publishing/README.md b/java-eventarc-publishing/README.md index 0ca0b5019c96..f23b8c2196f2 100644 --- a/java-eventarc-publishing/README.md +++ b/java-eventarc-publishing/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-eventarc-publishing - 0.82.0 + 0.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-eventarc-publishing:0.82.0' +implementation 'com.google.cloud:google-cloud-eventarc-publishing:0.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-eventarc-publishing" % "0.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-eventarc-publishing" % "0.83.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-eventarc-publishing/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-eventarc-publishing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc-publishing/0.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc-publishing/0.83.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-eventarc-publishing/google-cloud-eventarc-publishing-bom/pom.xml b/java-eventarc-publishing/google-cloud-eventarc-publishing-bom/pom.xml index 29e2b639c86b..418470da29b4 100644 --- a/java-eventarc-publishing/google-cloud-eventarc-publishing-bom/pom.xml +++ b/java-eventarc-publishing/google-cloud-eventarc-publishing-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-eventarc-publishing-bom - 0.84.0-SNAPSHOT + 0.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-eventarc-publishing - 0.84.0-SNAPSHOT + 0.85.0 com.google.api.grpc grpc-google-cloud-eventarc-publishing-v1 - 0.84.0-SNAPSHOT + 0.85.0 com.google.api.grpc proto-google-cloud-eventarc-publishing-v1 - 0.84.0-SNAPSHOT + 0.85.0 diff --git a/java-eventarc-publishing/google-cloud-eventarc-publishing/pom.xml b/java-eventarc-publishing/google-cloud-eventarc-publishing/pom.xml index 113dedbca801..261d3435c528 100644 --- a/java-eventarc-publishing/google-cloud-eventarc-publishing/pom.xml +++ b/java-eventarc-publishing/google-cloud-eventarc-publishing/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-eventarc-publishing - 0.84.0-SNAPSHOT + 0.85.0 jar Google Eventarc Publishing Eventarc Publishing lets you asynchronously deliver events from Google services, SaaS, and your own apps using loosely coupled services that react to state changes. com.google.cloud google-cloud-eventarc-publishing-parent - 0.84.0-SNAPSHOT + 0.85.0 google-cloud-eventarc-publishing diff --git a/java-eventarc-publishing/grpc-google-cloud-eventarc-publishing-v1/pom.xml b/java-eventarc-publishing/grpc-google-cloud-eventarc-publishing-v1/pom.xml index 11ff6404973c..d878459f210c 100644 --- a/java-eventarc-publishing/grpc-google-cloud-eventarc-publishing-v1/pom.xml +++ b/java-eventarc-publishing/grpc-google-cloud-eventarc-publishing-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-eventarc-publishing-v1 - 0.84.0-SNAPSHOT + 0.85.0 grpc-google-cloud-eventarc-publishing-v1 GRPC library for google-cloud-eventarc-publishing com.google.cloud google-cloud-eventarc-publishing-parent - 0.84.0-SNAPSHOT + 0.85.0 diff --git a/java-eventarc-publishing/pom.xml b/java-eventarc-publishing/pom.xml index bff65545a513..cf6732c075d9 100644 --- a/java-eventarc-publishing/pom.xml +++ b/java-eventarc-publishing/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-eventarc-publishing-parent pom - 0.84.0-SNAPSHOT + 0.85.0 Google Eventarc Publishing Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-eventarc-publishing - 0.84.0-SNAPSHOT + 0.85.0 com.google.api.grpc grpc-google-cloud-eventarc-publishing-v1 - 0.84.0-SNAPSHOT + 0.85.0 com.google.api.grpc proto-google-cloud-eventarc-publishing-v1 - 0.84.0-SNAPSHOT + 0.85.0 diff --git a/java-eventarc-publishing/proto-google-cloud-eventarc-publishing-v1/pom.xml b/java-eventarc-publishing/proto-google-cloud-eventarc-publishing-v1/pom.xml index 9a8c1130652c..c1fc42d50c3a 100644 --- a/java-eventarc-publishing/proto-google-cloud-eventarc-publishing-v1/pom.xml +++ b/java-eventarc-publishing/proto-google-cloud-eventarc-publishing-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-eventarc-publishing-v1 - 0.84.0-SNAPSHOT + 0.85.0 proto-google-cloud-eventarc-publishing-v1 Proto library for google-cloud-eventarc-publishing com.google.cloud google-cloud-eventarc-publishing-parent - 0.84.0-SNAPSHOT + 0.85.0 diff --git a/java-eventarc/README.md b/java-eventarc/README.md index cdb3a1547585..2eef2dc54093 100644 --- a/java-eventarc/README.md +++ b/java-eventarc/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-eventarc - 1.82.0 + 1.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-eventarc:1.82.0' +implementation 'com.google.cloud:google-cloud-eventarc:1.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-eventarc" % "1.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-eventarc" % "1.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-eventarc/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-eventarc.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc/1.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc/1.83.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-eventarc/google-cloud-eventarc-bom/pom.xml b/java-eventarc/google-cloud-eventarc-bom/pom.xml index 93c0454aee2b..4428f63410f6 100644 --- a/java-eventarc/google-cloud-eventarc-bom/pom.xml +++ b/java-eventarc/google-cloud-eventarc-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-eventarc-bom - 1.84.0-SNAPSHOT + 1.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-eventarc - 1.84.0-SNAPSHOT + 1.85.0 com.google.api.grpc grpc-google-cloud-eventarc-v1 - 1.84.0-SNAPSHOT + 1.85.0 com.google.api.grpc proto-google-cloud-eventarc-v1 - 1.84.0-SNAPSHOT + 1.85.0 diff --git a/java-eventarc/google-cloud-eventarc/pom.xml b/java-eventarc/google-cloud-eventarc/pom.xml index 0a8ee3246bfc..f3047b3a61b3 100644 --- a/java-eventarc/google-cloud-eventarc/pom.xml +++ b/java-eventarc/google-cloud-eventarc/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-eventarc - 1.84.0-SNAPSHOT + 1.85.0 jar Google Eventarc Eventarc lets you asynchronously deliver events from Google services, SaaS, and your own apps using loosely coupled services that react to state changes. com.google.cloud google-cloud-eventarc-parent - 1.84.0-SNAPSHOT + 1.85.0 google-cloud-eventarc diff --git a/java-eventarc/grpc-google-cloud-eventarc-v1/pom.xml b/java-eventarc/grpc-google-cloud-eventarc-v1/pom.xml index fea35a50c8e4..3bd47fac4877 100644 --- a/java-eventarc/grpc-google-cloud-eventarc-v1/pom.xml +++ b/java-eventarc/grpc-google-cloud-eventarc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-eventarc-v1 - 1.84.0-SNAPSHOT + 1.85.0 grpc-google-cloud-eventarc-v1 GRPC library for google-cloud-eventarc com.google.cloud google-cloud-eventarc-parent - 1.84.0-SNAPSHOT + 1.85.0 diff --git a/java-eventarc/pom.xml b/java-eventarc/pom.xml index a68efc76d3f7..ae3c98475bad 100644 --- a/java-eventarc/pom.xml +++ b/java-eventarc/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-eventarc-parent pom - 1.84.0-SNAPSHOT + 1.85.0 Google Eventarc Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-eventarc - 1.84.0-SNAPSHOT + 1.85.0 com.google.api.grpc grpc-google-cloud-eventarc-v1 - 1.84.0-SNAPSHOT + 1.85.0 com.google.api.grpc proto-google-cloud-eventarc-v1 - 1.84.0-SNAPSHOT + 1.85.0 diff --git a/java-eventarc/proto-google-cloud-eventarc-v1/pom.xml b/java-eventarc/proto-google-cloud-eventarc-v1/pom.xml index 9bd2858d0e29..7047150c1e88 100644 --- a/java-eventarc/proto-google-cloud-eventarc-v1/pom.xml +++ b/java-eventarc/proto-google-cloud-eventarc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-eventarc-v1 - 1.84.0-SNAPSHOT + 1.85.0 proto-google-cloud-eventarc-v1 Proto library for google-cloud-eventarc com.google.cloud google-cloud-eventarc-parent - 1.84.0-SNAPSHOT + 1.85.0 diff --git a/java-filestore/README.md b/java-filestore/README.md index 7eeca9de65cc..e9c315e5fc1c 100644 --- a/java-filestore/README.md +++ b/java-filestore/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-filestore - 1.83.0 + 1.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-filestore:1.83.0' +implementation 'com.google.cloud:google-cloud-filestore:1.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-filestore" % "1.83.0" +libraryDependencies += "com.google.cloud" % "google-cloud-filestore" % "1.84.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-filestore/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-filestore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-filestore/1.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-filestore/1.84.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-filestore/google-cloud-filestore-bom/pom.xml b/java-filestore/google-cloud-filestore-bom/pom.xml index e33bbffb6f95..5c6c0cbde22e 100644 --- a/java-filestore/google-cloud-filestore-bom/pom.xml +++ b/java-filestore/google-cloud-filestore-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-filestore-bom - 1.85.0-SNAPSHOT + 1.86.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-filestore - 1.85.0-SNAPSHOT + 1.86.0 com.google.api.grpc grpc-google-cloud-filestore-v1beta1 - 0.87.0-SNAPSHOT + 0.88.0 com.google.api.grpc grpc-google-cloud-filestore-v1 - 1.85.0-SNAPSHOT + 1.86.0 com.google.api.grpc proto-google-cloud-filestore-v1 - 1.85.0-SNAPSHOT + 1.86.0 com.google.api.grpc proto-google-cloud-filestore-v1beta1 - 0.87.0-SNAPSHOT + 0.88.0 diff --git a/java-filestore/google-cloud-filestore/pom.xml b/java-filestore/google-cloud-filestore/pom.xml index a31d2fd8de44..4bf485d44e14 100644 --- a/java-filestore/google-cloud-filestore/pom.xml +++ b/java-filestore/google-cloud-filestore/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-filestore - 1.85.0-SNAPSHOT + 1.86.0 jar Google Cloud Filestore API Cloud Filestore API instances are fully managed NFS file servers on Google Cloud for use with applications running on Compute Engine virtual machines (VMs) instances or Google Kubernetes Engine clusters. com.google.cloud google-cloud-filestore-parent - 1.85.0-SNAPSHOT + 1.86.0 google-cloud-filestore diff --git a/java-filestore/grpc-google-cloud-filestore-v1/pom.xml b/java-filestore/grpc-google-cloud-filestore-v1/pom.xml index edfda0e0db4c..15586eeb794d 100644 --- a/java-filestore/grpc-google-cloud-filestore-v1/pom.xml +++ b/java-filestore/grpc-google-cloud-filestore-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-filestore-v1 - 1.85.0-SNAPSHOT + 1.86.0 grpc-google-cloud-filestore-v1 GRPC library for google-cloud-filestore com.google.cloud google-cloud-filestore-parent - 1.85.0-SNAPSHOT + 1.86.0 diff --git a/java-filestore/grpc-google-cloud-filestore-v1beta1/pom.xml b/java-filestore/grpc-google-cloud-filestore-v1beta1/pom.xml index fc9893b91952..47c9bcbacdf9 100644 --- a/java-filestore/grpc-google-cloud-filestore-v1beta1/pom.xml +++ b/java-filestore/grpc-google-cloud-filestore-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-filestore-v1beta1 - 0.87.0-SNAPSHOT + 0.88.0 grpc-google-cloud-filestore-v1beta1 GRPC library for google-cloud-filestore com.google.cloud google-cloud-filestore-parent - 1.85.0-SNAPSHOT + 1.86.0 diff --git a/java-filestore/pom.xml b/java-filestore/pom.xml index 6ca883331639..303d2d5a287d 100644 --- a/java-filestore/pom.xml +++ b/java-filestore/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-filestore-parent pom - 1.85.0-SNAPSHOT + 1.86.0 Google Cloud Filestore API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-filestore - 1.85.0-SNAPSHOT + 1.86.0 com.google.api.grpc grpc-google-cloud-filestore-v1beta1 - 0.87.0-SNAPSHOT + 0.88.0 com.google.api.grpc grpc-google-cloud-filestore-v1 - 1.85.0-SNAPSHOT + 1.86.0 com.google.api.grpc proto-google-cloud-filestore-v1 - 1.85.0-SNAPSHOT + 1.86.0 com.google.api.grpc proto-google-cloud-filestore-v1beta1 - 0.87.0-SNAPSHOT + 0.88.0 diff --git a/java-filestore/proto-google-cloud-filestore-v1/pom.xml b/java-filestore/proto-google-cloud-filestore-v1/pom.xml index eb54de457a16..313674e963ec 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/pom.xml +++ b/java-filestore/proto-google-cloud-filestore-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-filestore-v1 - 1.85.0-SNAPSHOT + 1.86.0 proto-google-cloud-filestore-v1 Proto library for google-cloud-filestore com.google.cloud google-cloud-filestore-parent - 1.85.0-SNAPSHOT + 1.86.0 diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/pom.xml b/java-filestore/proto-google-cloud-filestore-v1beta1/pom.xml index 1dc7fc61bb23..27456f5a78a2 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/pom.xml +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-filestore-v1beta1 - 0.87.0-SNAPSHOT + 0.88.0 proto-google-cloud-filestore-v1beta1 Proto library for google-cloud-filestore com.google.cloud google-cloud-filestore-parent - 1.85.0-SNAPSHOT + 1.86.0 diff --git a/java-financialservices/README.md b/java-financialservices/README.md index 6ec103ad145f..826e27af2023 100644 --- a/java-financialservices/README.md +++ b/java-financialservices/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-financialservices - 0.23.0 + 0.24.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-financialservices:0.23.0' +implementation 'com.google.cloud:google-cloud-financialservices:0.24.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-financialservices" % "0.23.0" +libraryDependencies += "com.google.cloud" % "google-cloud-financialservices" % "0.24.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-financialservices/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-financialservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-financialservices/0.23.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-financialservices/0.24.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-financialservices/google-cloud-financialservices-bom/pom.xml b/java-financialservices/google-cloud-financialservices-bom/pom.xml index 1ed78ac07c90..044c69e0ec1a 100644 --- a/java-financialservices/google-cloud-financialservices-bom/pom.xml +++ b/java-financialservices/google-cloud-financialservices-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-financialservices-bom - 0.25.0-SNAPSHOT + 0.26.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-financialservices - 0.25.0-SNAPSHOT + 0.26.0 com.google.api.grpc grpc-google-cloud-financialservices-v1 - 0.25.0-SNAPSHOT + 0.26.0 com.google.api.grpc proto-google-cloud-financialservices-v1 - 0.25.0-SNAPSHOT + 0.26.0 diff --git a/java-financialservices/google-cloud-financialservices/pom.xml b/java-financialservices/google-cloud-financialservices/pom.xml index 01689fe45160..14aa587429a8 100644 --- a/java-financialservices/google-cloud-financialservices/pom.xml +++ b/java-financialservices/google-cloud-financialservices/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-financialservices - 0.25.0-SNAPSHOT + 0.26.0 jar Google Financial Services API Financial Services API Google Cloud's Anti Money Laundering AI (AML AI) product is an API that scores AML risk. Use it to identify more risk, more defensibly, with fewer false positives and reduced time per review. com.google.cloud google-cloud-financialservices-parent - 0.25.0-SNAPSHOT + 0.26.0 google-cloud-financialservices diff --git a/java-financialservices/grpc-google-cloud-financialservices-v1/pom.xml b/java-financialservices/grpc-google-cloud-financialservices-v1/pom.xml index 1ee16dbdbca6..72e56db430fe 100644 --- a/java-financialservices/grpc-google-cloud-financialservices-v1/pom.xml +++ b/java-financialservices/grpc-google-cloud-financialservices-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-financialservices-v1 - 0.25.0-SNAPSHOT + 0.26.0 grpc-google-cloud-financialservices-v1 GRPC library for google-cloud-financialservices com.google.cloud google-cloud-financialservices-parent - 0.25.0-SNAPSHOT + 0.26.0 diff --git a/java-financialservices/pom.xml b/java-financialservices/pom.xml index 89413a2fc71e..0f60e498b526 100644 --- a/java-financialservices/pom.xml +++ b/java-financialservices/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-financialservices-parent pom - 0.25.0-SNAPSHOT + 0.26.0 Google Financial Services API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-financialservices - 0.25.0-SNAPSHOT + 0.26.0 com.google.api.grpc grpc-google-cloud-financialservices-v1 - 0.25.0-SNAPSHOT + 0.26.0 com.google.api.grpc proto-google-cloud-financialservices-v1 - 0.25.0-SNAPSHOT + 0.26.0 diff --git a/java-financialservices/proto-google-cloud-financialservices-v1/pom.xml b/java-financialservices/proto-google-cloud-financialservices-v1/pom.xml index 973f32b5804f..522c2110afc7 100644 --- a/java-financialservices/proto-google-cloud-financialservices-v1/pom.xml +++ b/java-financialservices/proto-google-cloud-financialservices-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-financialservices-v1 - 0.25.0-SNAPSHOT + 0.26.0 proto-google-cloud-financialservices-v1 Proto library for google-cloud-financialservices com.google.cloud google-cloud-financialservices-parent - 0.25.0-SNAPSHOT + 0.26.0 diff --git a/java-functions/README.md b/java-functions/README.md index 57af2917ce69..8b09e1a96b06 100644 --- a/java-functions/README.md +++ b/java-functions/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-functions - 2.84.0 + 2.85.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-functions:2.84.0' +implementation 'com.google.cloud:google-cloud-functions:2.85.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "2.84.0" +libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "2.85.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-functions/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-functions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-functions/2.84.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-functions/2.85.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-functions/google-cloud-functions-bom/pom.xml b/java-functions/google-cloud-functions-bom/pom.xml index 396c64746689..1ba786ae8558 100644 --- a/java-functions/google-cloud-functions-bom/pom.xml +++ b/java-functions/google-cloud-functions-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-functions-bom - 2.86.0-SNAPSHOT + 2.87.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,47 +27,47 @@ com.google.cloud google-cloud-functions - 2.86.0-SNAPSHOT + 2.87.0 com.google.api.grpc grpc-google-cloud-functions-v1 - 2.86.0-SNAPSHOT + 2.87.0 com.google.api.grpc grpc-google-cloud-functions-v2beta - 2.86.0-SNAPSHOT + 2.87.0 com.google.api.grpc grpc-google-cloud-functions-v2alpha - 2.86.0-SNAPSHOT + 2.87.0 com.google.api.grpc grpc-google-cloud-functions-v2 - 2.86.0-SNAPSHOT + 2.87.0 com.google.api.grpc proto-google-cloud-functions-v1 - 2.86.0-SNAPSHOT + 2.87.0 com.google.api.grpc proto-google-cloud-functions-v2beta - 2.86.0-SNAPSHOT + 2.87.0 com.google.api.grpc proto-google-cloud-functions-v2alpha - 2.86.0-SNAPSHOT + 2.87.0 com.google.api.grpc proto-google-cloud-functions-v2 - 2.86.0-SNAPSHOT + 2.87.0 diff --git a/java-functions/google-cloud-functions/pom.xml b/java-functions/google-cloud-functions/pom.xml index 73fd111d1ef4..35534de4eeeb 100644 --- a/java-functions/google-cloud-functions/pom.xml +++ b/java-functions/google-cloud-functions/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-functions - 2.86.0-SNAPSHOT + 2.87.0 jar Google Cloud Functions is a scalable pay as you go Functions-as-a-Service (FaaS) to run your code with zero server management. com.google.cloud google-cloud-functions-parent - 2.86.0-SNAPSHOT + 2.87.0 google-cloud-functions diff --git a/java-functions/grpc-google-cloud-functions-v1/pom.xml b/java-functions/grpc-google-cloud-functions-v1/pom.xml index 4ff2583ef9f6..21f9d6a9e09a 100644 --- a/java-functions/grpc-google-cloud-functions-v1/pom.xml +++ b/java-functions/grpc-google-cloud-functions-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-functions-v1 - 2.86.0-SNAPSHOT + 2.87.0 grpc-google-cloud-functions-v1 GRPC library for grpc-google-cloud-functions-v1 com.google.cloud google-cloud-functions-parent - 2.86.0-SNAPSHOT + 2.87.0 diff --git a/java-functions/grpc-google-cloud-functions-v2/pom.xml b/java-functions/grpc-google-cloud-functions-v2/pom.xml index 37c153500080..3d4eee65646c 100644 --- a/java-functions/grpc-google-cloud-functions-v2/pom.xml +++ b/java-functions/grpc-google-cloud-functions-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-functions-v2 - 2.86.0-SNAPSHOT + 2.87.0 grpc-google-cloud-functions-v2 GRPC library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.86.0-SNAPSHOT + 2.87.0 diff --git a/java-functions/grpc-google-cloud-functions-v2alpha/pom.xml b/java-functions/grpc-google-cloud-functions-v2alpha/pom.xml index 7c539f86fdab..ce860b913c2e 100644 --- a/java-functions/grpc-google-cloud-functions-v2alpha/pom.xml +++ b/java-functions/grpc-google-cloud-functions-v2alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-functions-v2alpha - 2.86.0-SNAPSHOT + 2.87.0 grpc-google-cloud-functions-v2alpha GRPC library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.86.0-SNAPSHOT + 2.87.0 diff --git a/java-functions/grpc-google-cloud-functions-v2beta/pom.xml b/java-functions/grpc-google-cloud-functions-v2beta/pom.xml index 2635f6dcc383..94510b309f9b 100644 --- a/java-functions/grpc-google-cloud-functions-v2beta/pom.xml +++ b/java-functions/grpc-google-cloud-functions-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-functions-v2beta - 2.86.0-SNAPSHOT + 2.87.0 grpc-google-cloud-functions-v2beta GRPC library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.86.0-SNAPSHOT + 2.87.0 diff --git a/java-functions/pom.xml b/java-functions/pom.xml index 1dec70c6f1ac..8a6a345a4b44 100644 --- a/java-functions/pom.xml +++ b/java-functions/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-functions-parent pom - 2.86.0-SNAPSHOT + 2.87.0 Google Cloud Functions Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,47 +29,47 @@ com.google.cloud google-cloud-functions - 2.86.0-SNAPSHOT + 2.87.0 com.google.api.grpc proto-google-cloud-functions-v2 - 2.86.0-SNAPSHOT + 2.87.0 com.google.api.grpc grpc-google-cloud-functions-v2 - 2.86.0-SNAPSHOT + 2.87.0 com.google.api.grpc proto-google-cloud-functions-v2alpha - 2.86.0-SNAPSHOT + 2.87.0 com.google.api.grpc proto-google-cloud-functions-v2beta - 2.86.0-SNAPSHOT + 2.87.0 com.google.api.grpc grpc-google-cloud-functions-v2alpha - 2.86.0-SNAPSHOT + 2.87.0 com.google.api.grpc grpc-google-cloud-functions-v2beta - 2.86.0-SNAPSHOT + 2.87.0 com.google.api.grpc proto-google-cloud-functions-v1 - 2.86.0-SNAPSHOT + 2.87.0 com.google.api.grpc grpc-google-cloud-functions-v1 - 2.86.0-SNAPSHOT + 2.87.0 diff --git a/java-functions/proto-google-cloud-functions-v1/pom.xml b/java-functions/proto-google-cloud-functions-v1/pom.xml index 200dbacbbebf..ce95a8d7def2 100644 --- a/java-functions/proto-google-cloud-functions-v1/pom.xml +++ b/java-functions/proto-google-cloud-functions-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-functions-v1 - 2.86.0-SNAPSHOT + 2.87.0 proto-google-cloud-functions-v1 PROTO library for proto-google-cloud-functions-v1 com.google.cloud google-cloud-functions-parent - 2.86.0-SNAPSHOT + 2.87.0 diff --git a/java-functions/proto-google-cloud-functions-v2/pom.xml b/java-functions/proto-google-cloud-functions-v2/pom.xml index 1a35461b4249..e0f6bac7f07a 100644 --- a/java-functions/proto-google-cloud-functions-v2/pom.xml +++ b/java-functions/proto-google-cloud-functions-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-functions-v2 - 2.86.0-SNAPSHOT + 2.87.0 proto-google-cloud-functions-v2 Proto library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.86.0-SNAPSHOT + 2.87.0 diff --git a/java-functions/proto-google-cloud-functions-v2alpha/pom.xml b/java-functions/proto-google-cloud-functions-v2alpha/pom.xml index 19ef6e36df2d..bcfdf976fb24 100644 --- a/java-functions/proto-google-cloud-functions-v2alpha/pom.xml +++ b/java-functions/proto-google-cloud-functions-v2alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-functions-v2alpha - 2.86.0-SNAPSHOT + 2.87.0 proto-google-cloud-functions-v2alpha Proto library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.86.0-SNAPSHOT + 2.87.0 diff --git a/java-functions/proto-google-cloud-functions-v2beta/pom.xml b/java-functions/proto-google-cloud-functions-v2beta/pom.xml index d994da81a9f2..fb11c0b117e4 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/pom.xml +++ b/java-functions/proto-google-cloud-functions-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-functions-v2beta - 2.86.0-SNAPSHOT + 2.87.0 proto-google-cloud-functions-v2beta Proto library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.86.0-SNAPSHOT + 2.87.0 diff --git a/java-gdchardwaremanagement/README.md b/java-gdchardwaremanagement/README.md index ee324144e2dd..9edc4028fa88 100644 --- a/java-gdchardwaremanagement/README.md +++ b/java-gdchardwaremanagement/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gdchardwaremanagement - 0.37.0 + 0.38.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gdchardwaremanagement:0.37.0' +implementation 'com.google.cloud:google-cloud-gdchardwaremanagement:0.38.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gdchardwaremanagement" % "0.37.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gdchardwaremanagement" % "0.38.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gdchardwaremanagement/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gdchardwaremanagement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gdchardwaremanagement/0.37.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gdchardwaremanagement/0.38.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement-bom/pom.xml b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement-bom/pom.xml index 1a1935f00c03..ac9321b6570d 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement-bom/pom.xml +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-gdchardwaremanagement-bom - 0.39.0-SNAPSHOT + 0.40.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-gdchardwaremanagement - 0.39.0-SNAPSHOT + 0.40.0 com.google.api.grpc grpc-google-cloud-gdchardwaremanagement-v1alpha - 0.39.0-SNAPSHOT + 0.40.0 com.google.api.grpc proto-google-cloud-gdchardwaremanagement-v1alpha - 0.39.0-SNAPSHOT + 0.40.0 diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/pom.xml b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/pom.xml index b09bbec7f84d..5439e08d9f67 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/pom.xml +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-gdchardwaremanagement - 0.39.0-SNAPSHOT + 0.40.0 jar Google GDC Hardware Management API GDC Hardware Management API Google Distributed Cloud connected allows you to run Kubernetes clusters on dedicated hardware provided and maintained by Google that is separate from the Google Cloud data center. com.google.cloud google-cloud-gdchardwaremanagement-parent - 0.39.0-SNAPSHOT + 0.40.0 google-cloud-gdchardwaremanagement diff --git a/java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/pom.xml b/java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/pom.xml index b86ef2319751..2699abd0919a 100644 --- a/java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/pom.xml +++ b/java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gdchardwaremanagement-v1alpha - 0.39.0-SNAPSHOT + 0.40.0 grpc-google-cloud-gdchardwaremanagement-v1alpha GRPC library for google-cloud-gdchardwaremanagement com.google.cloud google-cloud-gdchardwaremanagement-parent - 0.39.0-SNAPSHOT + 0.40.0 diff --git a/java-gdchardwaremanagement/pom.xml b/java-gdchardwaremanagement/pom.xml index 0f1a99a89300..b723597260d1 100644 --- a/java-gdchardwaremanagement/pom.xml +++ b/java-gdchardwaremanagement/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-gdchardwaremanagement-parent pom - 0.39.0-SNAPSHOT + 0.40.0 Google GDC Hardware Management API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-gdchardwaremanagement - 0.39.0-SNAPSHOT + 0.40.0 com.google.api.grpc grpc-google-cloud-gdchardwaremanagement-v1alpha - 0.39.0-SNAPSHOT + 0.40.0 com.google.api.grpc proto-google-cloud-gdchardwaremanagement-v1alpha - 0.39.0-SNAPSHOT + 0.40.0 diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/pom.xml b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/pom.xml index ac926a9c15e8..8db79b0ccb2e 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/pom.xml +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gdchardwaremanagement-v1alpha - 0.39.0-SNAPSHOT + 0.40.0 proto-google-cloud-gdchardwaremanagement-v1alpha Proto library for google-cloud-gdchardwaremanagement com.google.cloud google-cloud-gdchardwaremanagement-parent - 0.39.0-SNAPSHOT + 0.40.0 diff --git a/java-geminidataanalytics/README.md b/java-geminidataanalytics/README.md index ae99c0428dfc..ef25252908f2 100644 --- a/java-geminidataanalytics/README.md +++ b/java-geminidataanalytics/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-geminidataanalytics - 0.10.0 + 0.11.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-geminidataanalytics:0.10.0' +implementation 'com.google.cloud:google-cloud-geminidataanalytics:0.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-geminidataanalytics" % "0.10.0" +libraryDependencies += "com.google.cloud" % "google-cloud-geminidataanalytics" % "0.11.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-geminidataanalytics/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-geminidataanalytics.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-geminidataanalytics/0.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-geminidataanalytics/0.11.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics-bom/pom.xml b/java-geminidataanalytics/google-cloud-geminidataanalytics-bom/pom.xml index 7cc1140dc491..9673acd053bf 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics-bom/pom.xml +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-geminidataanalytics-bom - 0.12.0-SNAPSHOT + 0.13.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-geminidataanalytics - 0.12.0-SNAPSHOT + 0.13.0 com.google.api.grpc grpc-google-cloud-geminidataanalytics-v1beta - 0.12.0-SNAPSHOT + 0.13.0 com.google.api.grpc proto-google-cloud-geminidataanalytics-v1beta - 0.12.0-SNAPSHOT + 0.13.0 diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/pom.xml b/java-geminidataanalytics/google-cloud-geminidataanalytics/pom.xml index 7e9288cc9a45..6b17e3ea68e3 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/pom.xml +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-geminidataanalytics - 0.12.0-SNAPSHOT + 0.13.0 jar Google Data Analytics API with Gemini Data Analytics API with Gemini Use Conversational Analytics API to build an artificial intelligence (AI)-powered chat interface, or data agent, that answers questions about structured data using natural language. com.google.cloud google-cloud-geminidataanalytics-parent - 0.12.0-SNAPSHOT + 0.13.0 google-cloud-geminidataanalytics diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceClient.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceClient.java index 810b66a5a27f..fb82be065dc0 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceClient.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceClient.java @@ -291,7 +291,8 @@ * * *

          ListLocations - *

          Lists information about the supported locations for this service. + *

          Lists information about the supported locations for this service.This method can be called in two ways: + *

          * **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project. * *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          *
            @@ -1937,7 +1938,13 @@ public final UnaryCallable setIamPolicyCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

            * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

            Sample code: * @@ -1970,7 +1977,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

            * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

            Sample code: * @@ -2004,7 +2017,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

            * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

            Sample code: * diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java index 94cfd93882fe..78f44d77f4ef 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java @@ -197,7 +197,8 @@ * * *

            ListLocations - *

            Lists information about the supported locations for this service. + *

            Lists information about the supported locations for this service.This method can be called in two ways: + *

            * **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project. * *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            *
              @@ -1139,7 +1140,13 @@ public final UnaryCallable queryDataCallabl // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

              * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

              Sample code: * @@ -1172,7 +1179,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

              * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

              Sample code: * @@ -1206,7 +1219,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *

              * **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *

              Sample code: * diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1beta/reflect-config.json b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1beta/reflect-config.json index 584f27b28f5b..e33156928b23 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1beta/reflect-config.json +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1beta/reflect-config.json @@ -818,6 +818,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion$ClarificationQuestionType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion$SelectionMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext", "queryAllDeclaredConstructors": true, diff --git a/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1beta/pom.xml b/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1beta/pom.xml index c3f01228f12d..1d4e036cca23 100644 --- a/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1beta/pom.xml +++ b/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-geminidataanalytics-v1beta - 0.12.0-SNAPSHOT + 0.13.0 grpc-google-cloud-geminidataanalytics-v1beta GRPC library for google-cloud-geminidataanalytics com.google.cloud google-cloud-geminidataanalytics-parent - 0.12.0-SNAPSHOT + 0.13.0 diff --git a/java-geminidataanalytics/pom.xml b/java-geminidataanalytics/pom.xml index ec2013f9c72d..26d5691148da 100644 --- a/java-geminidataanalytics/pom.xml +++ b/java-geminidataanalytics/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-geminidataanalytics-parent pom - 0.12.0-SNAPSHOT + 0.13.0 Google Data Analytics API with Gemini Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-geminidataanalytics - 0.12.0-SNAPSHOT + 0.13.0 com.google.api.grpc grpc-google-cloud-geminidataanalytics-v1beta - 0.12.0-SNAPSHOT + 0.13.0 com.google.api.grpc proto-google-cloud-geminidataanalytics-v1beta - 0.12.0-SNAPSHOT + 0.13.0 diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/pom.xml b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/pom.xml index bfbde1be6a12..c49d35142136 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/pom.xml +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-geminidataanalytics-v1beta - 0.12.0-SNAPSHOT + 0.13.0 proto-google-cloud-geminidataanalytics-v1beta Proto library for google-cloud-geminidataanalytics com.google.cloud google-cloud-geminidataanalytics-parent - 0.12.0-SNAPSHOT + 0.13.0 diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationMessage.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationMessage.java new file mode 100644 index 000000000000..854442dd2fb7 --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationMessage.java @@ -0,0 +1,1005 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/geminidataanalytics/v1beta/data_chat_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.geminidataanalytics.v1beta; + +/** + * + * + *

              + * A message of questions to help clarify the user's query. This is returned
              + * when the system cannot confidently answer the user's question.
              + * 
              + * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ClarificationMessage} + */ +@com.google.protobuf.Generated +public final class ClarificationMessage extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.ClarificationMessage) + ClarificationMessageOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ClarificationMessage"); + } + + // Use ClarificationMessage.newBuilder() to construct. + private ClarificationMessage(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ClarificationMessage() { + questions_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.class, + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.Builder.class); + } + + public static final int QUESTIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + questions_; + + /** + * + * + *
              +   * Required. A batch of clarification questions to ask the user.
              +   * 
              + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getQuestionsList() { + return questions_; + } + + /** + * + * + *
              +   * Required. A batch of clarification questions to ask the user.
              +   * 
              + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionOrBuilder> + getQuestionsOrBuilderList() { + return questions_; + } + + /** + * + * + *
              +   * Required. A batch of clarification questions to ask the user.
              +   * 
              + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getQuestionsCount() { + return questions_.size(); + } + + /** + * + * + *
              +   * Required. A batch of clarification questions to ask the user.
              +   * 
              + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion getQuestions(int index) { + return questions_.get(index); + } + + /** + * + * + *
              +   * Required. A batch of clarification questions to ask the user.
              +   * 
              + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionOrBuilder + getQuestionsOrBuilder(int index) { + return questions_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < questions_.size(); i++) { + output.writeMessage(1, questions_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < questions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, questions_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage)) { + return super.equals(obj); + } + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage other = + (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) obj; + + if (!getQuestionsList().equals(other.getQuestionsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getQuestionsCount() > 0) { + hash = (37 * hash) + QUESTIONS_FIELD_NUMBER; + hash = (53 * hash) + getQuestionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * A message of questions to help clarify the user's query. This is returned
              +   * when the system cannot confidently answer the user's question.
              +   * 
              + * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ClarificationMessage} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.ClarificationMessage) + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.class, + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.Builder.class); + } + + // Construct using com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (questionsBuilder_ == null) { + questions_ = java.util.Collections.emptyList(); + } else { + questions_ = null; + questionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationMessage_descriptor; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage + getDefaultInstanceForType() { + return com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage build() { + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage buildPartial() { + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage result = + new com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage result) { + if (questionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + questions_ = java.util.Collections.unmodifiableList(questions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.questions_ = questions_; + } else { + result.questions_ = questionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) { + return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage other) { + if (other + == com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.getDefaultInstance()) + return this; + if (questionsBuilder_ == null) { + if (!other.questions_.isEmpty()) { + if (questions_.isEmpty()) { + questions_ = other.questions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureQuestionsIsMutable(); + questions_.addAll(other.questions_); + } + onChanged(); + } + } else { + if (!other.questions_.isEmpty()) { + if (questionsBuilder_.isEmpty()) { + questionsBuilder_.dispose(); + questionsBuilder_ = null; + questions_ = other.questions_; + bitField0_ = (bitField0_ & ~0x00000001); + questionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetQuestionsFieldBuilder() + : null; + } else { + questionsBuilder_.addAllMessages(other.questions_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion m = + input.readMessage( + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.parser(), + extensionRegistry); + if (questionsBuilder_ == null) { + ensureQuestionsIsMutable(); + questions_.add(m); + } else { + questionsBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + questions_ = java.util.Collections.emptyList(); + + private void ensureQuestionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + questions_ = + new java.util.ArrayList< + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion>(questions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion, + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder, + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionOrBuilder> + questionsBuilder_; + + /** + * + * + *
              +     * Required. A batch of clarification questions to ask the user.
              +     * 
              + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getQuestionsList() { + if (questionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(questions_); + } else { + return questionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
              +     * Required. A batch of clarification questions to ask the user.
              +     * 
              + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getQuestionsCount() { + if (questionsBuilder_ == null) { + return questions_.size(); + } else { + return questionsBuilder_.getCount(); + } + } + + /** + * + * + *
              +     * Required. A batch of clarification questions to ask the user.
              +     * 
              + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion getQuestions( + int index) { + if (questionsBuilder_ == null) { + return questions_.get(index); + } else { + return questionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
              +     * Required. A batch of clarification questions to ask the user.
              +     * 
              + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setQuestions( + int index, com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion value) { + if (questionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQuestionsIsMutable(); + questions_.set(index, value); + onChanged(); + } else { + questionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * Required. A batch of clarification questions to ask the user.
              +     * 
              + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setQuestions( + int index, + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder builderForValue) { + if (questionsBuilder_ == null) { + ensureQuestionsIsMutable(); + questions_.set(index, builderForValue.build()); + onChanged(); + } else { + questionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * Required. A batch of clarification questions to ask the user.
              +     * 
              + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addQuestions( + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion value) { + if (questionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQuestionsIsMutable(); + questions_.add(value); + onChanged(); + } else { + questionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
              +     * Required. A batch of clarification questions to ask the user.
              +     * 
              + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addQuestions( + int index, com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion value) { + if (questionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQuestionsIsMutable(); + questions_.add(index, value); + onChanged(); + } else { + questionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * Required. A batch of clarification questions to ask the user.
              +     * 
              + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addQuestions( + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder builderForValue) { + if (questionsBuilder_ == null) { + ensureQuestionsIsMutable(); + questions_.add(builderForValue.build()); + onChanged(); + } else { + questionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * Required. A batch of clarification questions to ask the user.
              +     * 
              + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addQuestions( + int index, + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder builderForValue) { + if (questionsBuilder_ == null) { + ensureQuestionsIsMutable(); + questions_.add(index, builderForValue.build()); + onChanged(); + } else { + questionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * Required. A batch of clarification questions to ask the user.
              +     * 
              + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllQuestions( + java.lang.Iterable< + ? extends com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion> + values) { + if (questionsBuilder_ == null) { + ensureQuestionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, questions_); + onChanged(); + } else { + questionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
              +     * Required. A batch of clarification questions to ask the user.
              +     * 
              + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearQuestions() { + if (questionsBuilder_ == null) { + questions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + questionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
              +     * Required. A batch of clarification questions to ask the user.
              +     * 
              + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeQuestions(int index) { + if (questionsBuilder_ == null) { + ensureQuestionsIsMutable(); + questions_.remove(index); + onChanged(); + } else { + questionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
              +     * Required. A batch of clarification questions to ask the user.
              +     * 
              + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder + getQuestionsBuilder(int index) { + return internalGetQuestionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
              +     * Required. A batch of clarification questions to ask the user.
              +     * 
              + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionOrBuilder + getQuestionsOrBuilder(int index) { + if (questionsBuilder_ == null) { + return questions_.get(index); + } else { + return questionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
              +     * Required. A batch of clarification questions to ask the user.
              +     * 
              + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionOrBuilder> + getQuestionsOrBuilderList() { + if (questionsBuilder_ != null) { + return questionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(questions_); + } + } + + /** + * + * + *
              +     * Required. A batch of clarification questions to ask the user.
              +     * 
              + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder + addQuestionsBuilder() { + return internalGetQuestionsFieldBuilder() + .addBuilder( + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion + .getDefaultInstance()); + } + + /** + * + * + *
              +     * Required. A batch of clarification questions to ask the user.
              +     * 
              + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder + addQuestionsBuilder(int index) { + return internalGetQuestionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion + .getDefaultInstance()); + } + + /** + * + * + *
              +     * Required. A batch of clarification questions to ask the user.
              +     * 
              + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getQuestionsBuilderList() { + return internalGetQuestionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion, + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder, + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionOrBuilder> + internalGetQuestionsFieldBuilder() { + if (questionsBuilder_ == null) { + questionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion, + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder, + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionOrBuilder>( + questions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + questions_ = null; + } + return questionsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.ClarificationMessage) + } + + // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.ClarificationMessage) + private static final com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage(); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClarificationMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationMessageOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationMessageOrBuilder.java new file mode 100644 index 000000000000..758ca5568c9a --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationMessageOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/geminidataanalytics/v1beta/data_chat_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.geminidataanalytics.v1beta; + +@com.google.protobuf.Generated +public interface ClarificationMessageOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.ClarificationMessage) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. A batch of clarification questions to ask the user.
              +   * 
              + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getQuestionsList(); + + /** + * + * + *
              +   * Required. A batch of clarification questions to ask the user.
              +   * 
              + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion getQuestions(int index); + + /** + * + * + *
              +   * Required. A batch of clarification questions to ask the user.
              +   * 
              + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getQuestionsCount(); + + /** + * + * + *
              +   * Required. A batch of clarification questions to ask the user.
              +   * 
              + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List< + ? extends com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionOrBuilder> + getQuestionsOrBuilderList(); + + /** + * + * + *
              +   * Required. A batch of clarification questions to ask the user.
              +   * 
              + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionOrBuilder getQuestionsOrBuilder( + int index); +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationQuestion.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationQuestion.java new file mode 100644 index 000000000000..b30171fb97e5 --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationQuestion.java @@ -0,0 +1,1637 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/geminidataanalytics/v1beta/data_chat_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.geminidataanalytics.v1beta; + +/** + * + * + *
              + * Represents a single question to the user to help clarify their query.
              + * 
              + * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ClarificationQuestion} + */ +@com.google.protobuf.Generated +public final class ClarificationQuestion extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.ClarificationQuestion) + ClarificationQuestionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ClarificationQuestion"); + } + + // Use ClarificationQuestion.newBuilder() to construct. + private ClarificationQuestion(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ClarificationQuestion() { + question_ = ""; + selectionMode_ = 0; + options_ = com.google.protobuf.LazyStringArrayList.emptyList(); + clarificationQuestionType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationQuestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationQuestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.class, + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder.class); + } + + /** + * + * + *
              +   * The selection mode for the clarification question.
              +   * 
              + * + * Protobuf enum {@code + * google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode} + */ + public enum SelectionMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
              +     * Unspecified selection mode.
              +     * 
              + * + * SELECTION_MODE_UNSPECIFIED = 0; + */ + SELECTION_MODE_UNSPECIFIED(0), + /** + * + * + *
              +     * The user can select only one option.
              +     * 
              + * + * SINGLE_SELECT = 1; + */ + SINGLE_SELECT(1), + /** + * + * + *
              +     * The user can select multiple options.
              +     * 
              + * + * MULTI_SELECT = 2; + */ + MULTI_SELECT(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SelectionMode"); + } + + /** + * + * + *
              +     * Unspecified selection mode.
              +     * 
              + * + * SELECTION_MODE_UNSPECIFIED = 0; + */ + public static final int SELECTION_MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
              +     * The user can select only one option.
              +     * 
              + * + * SINGLE_SELECT = 1; + */ + public static final int SINGLE_SELECT_VALUE = 1; + + /** + * + * + *
              +     * The user can select multiple options.
              +     * 
              + * + * MULTI_SELECT = 2; + */ + public static final int MULTI_SELECT_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SelectionMode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SelectionMode forNumber(int value) { + switch (value) { + case 0: + return SELECTION_MODE_UNSPECIFIED; + case 1: + return SINGLE_SELECT; + case 2: + return MULTI_SELECT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SelectionMode findValueByNumber(int number) { + return SelectionMode.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final SelectionMode[] VALUES = values(); + + public static SelectionMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SelectionMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode) + } + + /** + * + * + *
              +   * The type of clarification question.
              +   * This enum may be extended with new values in the future.
              +   * 
              + * + * Protobuf enum {@code + * google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType} + */ + public enum ClarificationQuestionType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
              +     * Unspecified clarification question type.
              +     * 
              + * + * CLARIFICATION_QUESTION_TYPE_UNSPECIFIED = 0; + */ + CLARIFICATION_QUESTION_TYPE_UNSPECIFIED(0), + /** + * + * + *
              +     * The clarification question is for filter values.
              +     * 
              + * + * FILTER_VALUES = 1; + */ + FILTER_VALUES(1), + /** + * + * + *
              +     * The clarification question is for data fields. This is a generic term
              +     * encompassing SQL columns, Looker fields (dimensions/measures), or
              +     * nested data structure properties.
              +     * 
              + * + * FIELDS = 2; + */ + FIELDS(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ClarificationQuestionType"); + } + + /** + * + * + *
              +     * Unspecified clarification question type.
              +     * 
              + * + * CLARIFICATION_QUESTION_TYPE_UNSPECIFIED = 0; + */ + public static final int CLARIFICATION_QUESTION_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
              +     * The clarification question is for filter values.
              +     * 
              + * + * FILTER_VALUES = 1; + */ + public static final int FILTER_VALUES_VALUE = 1; + + /** + * + * + *
              +     * The clarification question is for data fields. This is a generic term
              +     * encompassing SQL columns, Looker fields (dimensions/measures), or
              +     * nested data structure properties.
              +     * 
              + * + * FIELDS = 2; + */ + public static final int FIELDS_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ClarificationQuestionType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ClarificationQuestionType forNumber(int value) { + switch (value) { + case 0: + return CLARIFICATION_QUESTION_TYPE_UNSPECIFIED; + case 1: + return FILTER_VALUES; + case 2: + return FIELDS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ClarificationQuestionType findValueByNumber(int number) { + return ClarificationQuestionType.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final ClarificationQuestionType[] VALUES = values(); + + public static ClarificationQuestionType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ClarificationQuestionType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType) + } + + public static final int QUESTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object question_ = ""; + + /** + * + * + *
              +   * Required. The natural language question to ask the user.
              +   * 
              + * + * string question = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The question. + */ + @java.lang.Override + public java.lang.String getQuestion() { + java.lang.Object ref = question_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + question_ = s; + return s; + } + } + + /** + * + * + *
              +   * Required. The natural language question to ask the user.
              +   * 
              + * + * string question = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for question. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQuestionBytes() { + java.lang.Object ref = question_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + question_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SELECTION_MODE_FIELD_NUMBER = 2; + private int selectionMode_ = 0; + + /** + * + * + *
              +   * Required. The selection mode for this question.
              +   * 
              + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for selectionMode. + */ + @java.lang.Override + public int getSelectionModeValue() { + return selectionMode_; + } + + /** + * + * + *
              +   * Required. The selection mode for this question.
              +   * 
              + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The selectionMode. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode + getSelectionMode() { + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode result = + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode.forNumber( + selectionMode_); + return result == null + ? com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode + .UNRECOGNIZED + : result; + } + + public static final int OPTIONS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList options_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
              +   * Required. A list of distinct options for the user to choose from.
              +   * The number of options is limited to a maximum of 5.
              +   * 
              + * + * repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the options. + */ + public com.google.protobuf.ProtocolStringList getOptionsList() { + return options_; + } + + /** + * + * + *
              +   * Required. A list of distinct options for the user to choose from.
              +   * The number of options is limited to a maximum of 5.
              +   * 
              + * + * repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of options. + */ + public int getOptionsCount() { + return options_.size(); + } + + /** + * + * + *
              +   * Required. A list of distinct options for the user to choose from.
              +   * The number of options is limited to a maximum of 5.
              +   * 
              + * + * repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The options at the given index. + */ + public java.lang.String getOptions(int index) { + return options_.get(index); + } + + /** + * + * + *
              +   * Required. A list of distinct options for the user to choose from.
              +   * The number of options is limited to a maximum of 5.
              +   * 
              + * + * repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the options at the given index. + */ + public com.google.protobuf.ByteString getOptionsBytes(int index) { + return options_.getByteString(index); + } + + public static final int CLARIFICATION_QUESTION_TYPE_FIELD_NUMBER = 4; + private int clarificationQuestionType_ = 0; + + /** + * + * + *
              +   * Optional. The type of clarification question.
              +   * 
              + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for clarificationQuestionType. + */ + @java.lang.Override + public int getClarificationQuestionTypeValue() { + return clarificationQuestionType_; + } + + /** + * + * + *
              +   * Optional. The type of clarification question.
              +   * 
              + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clarificationQuestionType. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType + getClarificationQuestionType() { + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType + result = + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion + .ClarificationQuestionType.forNumber(clarificationQuestionType_); + return result == null + ? com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion + .ClarificationQuestionType.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(question_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, question_); + } + if (selectionMode_ + != com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode + .SELECTION_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, selectionMode_); + } + for (int i = 0; i < options_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, options_.getRaw(i)); + } + if (clarificationQuestionType_ + != com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion + .ClarificationQuestionType.CLARIFICATION_QUESTION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, clarificationQuestionType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(question_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, question_); + } + if (selectionMode_ + != com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode + .SELECTION_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, selectionMode_); + } + { + int dataSize = 0; + for (int i = 0; i < options_.size(); i++) { + dataSize += computeStringSizeNoTag(options_.getRaw(i)); + } + size += dataSize; + size += 1 * getOptionsList().size(); + } + if (clarificationQuestionType_ + != com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion + .ClarificationQuestionType.CLARIFICATION_QUESTION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, clarificationQuestionType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion)) { + return super.equals(obj); + } + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion other = + (com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion) obj; + + if (!getQuestion().equals(other.getQuestion())) return false; + if (selectionMode_ != other.selectionMode_) return false; + if (!getOptionsList().equals(other.getOptionsList())) return false; + if (clarificationQuestionType_ != other.clarificationQuestionType_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + QUESTION_FIELD_NUMBER; + hash = (53 * hash) + getQuestion().hashCode(); + hash = (37 * hash) + SELECTION_MODE_FIELD_NUMBER; + hash = (53 * hash) + selectionMode_; + if (getOptionsCount() > 0) { + hash = (37 * hash) + OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getOptionsList().hashCode(); + } + hash = (37 * hash) + CLARIFICATION_QUESTION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + clarificationQuestionType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Represents a single question to the user to help clarify their query.
              +   * 
              + * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ClarificationQuestion} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.ClarificationQuestion) + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationQuestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationQuestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.class, + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder.class); + } + + // Construct using + // com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + question_ = ""; + selectionMode_ = 0; + options_ = com.google.protobuf.LazyStringArrayList.emptyList(); + clarificationQuestionType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationQuestion_descriptor; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion + getDefaultInstanceForType() { + return com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion build() { + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion buildPartial() { + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion result = + new com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.question_ = question_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.selectionMode_ = selectionMode_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + options_.makeImmutable(); + result.options_ = options_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.clarificationQuestionType_ = clarificationQuestionType_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion) { + return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion other) { + if (other + == com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.getDefaultInstance()) + return this; + if (!other.getQuestion().isEmpty()) { + question_ = other.question_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.selectionMode_ != 0) { + setSelectionModeValue(other.getSelectionModeValue()); + } + if (!other.options_.isEmpty()) { + if (options_.isEmpty()) { + options_ = other.options_; + bitField0_ |= 0x00000004; + } else { + ensureOptionsIsMutable(); + options_.addAll(other.options_); + } + onChanged(); + } + if (other.clarificationQuestionType_ != 0) { + setClarificationQuestionTypeValue(other.getClarificationQuestionTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + question_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + selectionMode_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureOptionsIsMutable(); + options_.add(s); + break; + } // case 26 + case 32: + { + clarificationQuestionType_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object question_ = ""; + + /** + * + * + *
              +     * Required. The natural language question to ask the user.
              +     * 
              + * + * string question = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The question. + */ + public java.lang.String getQuestion() { + java.lang.Object ref = question_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + question_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Required. The natural language question to ask the user.
              +     * 
              + * + * string question = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for question. + */ + public com.google.protobuf.ByteString getQuestionBytes() { + java.lang.Object ref = question_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + question_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Required. The natural language question to ask the user.
              +     * 
              + * + * string question = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The question to set. + * @return This builder for chaining. + */ + public Builder setQuestion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + question_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The natural language question to ask the user.
              +     * 
              + * + * string question = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearQuestion() { + question_ = getDefaultInstance().getQuestion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The natural language question to ask the user.
              +     * 
              + * + * string question = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for question to set. + * @return This builder for chaining. + */ + public Builder setQuestionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + question_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int selectionMode_ = 0; + + /** + * + * + *
              +     * Required. The selection mode for this question.
              +     * 
              + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for selectionMode. + */ + @java.lang.Override + public int getSelectionModeValue() { + return selectionMode_; + } + + /** + * + * + *
              +     * Required. The selection mode for this question.
              +     * 
              + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for selectionMode to set. + * @return This builder for chaining. + */ + public Builder setSelectionModeValue(int value) { + selectionMode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The selection mode for this question.
              +     * 
              + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The selectionMode. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode + getSelectionMode() { + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode result = + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode.forNumber( + selectionMode_); + return result == null + ? com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode + .UNRECOGNIZED + : result; + } + + /** + * + * + *
              +     * Required. The selection mode for this question.
              +     * 
              + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The selectionMode to set. + * @return This builder for chaining. + */ + public Builder setSelectionMode( + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + selectionMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The selection mode for this question.
              +     * 
              + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearSelectionMode() { + bitField0_ = (bitField0_ & ~0x00000002); + selectionMode_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList options_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureOptionsIsMutable() { + if (!options_.isModifiable()) { + options_ = new com.google.protobuf.LazyStringArrayList(options_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
              +     * Required. A list of distinct options for the user to choose from.
              +     * The number of options is limited to a maximum of 5.
              +     * 
              + * + * repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the options. + */ + public com.google.protobuf.ProtocolStringList getOptionsList() { + options_.makeImmutable(); + return options_; + } + + /** + * + * + *
              +     * Required. A list of distinct options for the user to choose from.
              +     * The number of options is limited to a maximum of 5.
              +     * 
              + * + * repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of options. + */ + public int getOptionsCount() { + return options_.size(); + } + + /** + * + * + *
              +     * Required. A list of distinct options for the user to choose from.
              +     * The number of options is limited to a maximum of 5.
              +     * 
              + * + * repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The options at the given index. + */ + public java.lang.String getOptions(int index) { + return options_.get(index); + } + + /** + * + * + *
              +     * Required. A list of distinct options for the user to choose from.
              +     * The number of options is limited to a maximum of 5.
              +     * 
              + * + * repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the options at the given index. + */ + public com.google.protobuf.ByteString getOptionsBytes(int index) { + return options_.getByteString(index); + } + + /** + * + * + *
              +     * Required. A list of distinct options for the user to choose from.
              +     * The number of options is limited to a maximum of 5.
              +     * 
              + * + * repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The options to set. + * @return This builder for chaining. + */ + public Builder setOptions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOptionsIsMutable(); + options_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. A list of distinct options for the user to choose from.
              +     * The number of options is limited to a maximum of 5.
              +     * 
              + * + * repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The options to add. + * @return This builder for chaining. + */ + public Builder addOptions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOptionsIsMutable(); + options_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. A list of distinct options for the user to choose from.
              +     * The number of options is limited to a maximum of 5.
              +     * 
              + * + * repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The options to add. + * @return This builder for chaining. + */ + public Builder addAllOptions(java.lang.Iterable values) { + ensureOptionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, options_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. A list of distinct options for the user to choose from.
              +     * The number of options is limited to a maximum of 5.
              +     * 
              + * + * repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearOptions() { + options_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. A list of distinct options for the user to choose from.
              +     * The number of options is limited to a maximum of 5.
              +     * 
              + * + * repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the options to add. + * @return This builder for chaining. + */ + public Builder addOptionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureOptionsIsMutable(); + options_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int clarificationQuestionType_ = 0; + + /** + * + * + *
              +     * Optional. The type of clarification question.
              +     * 
              + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for clarificationQuestionType. + */ + @java.lang.Override + public int getClarificationQuestionTypeValue() { + return clarificationQuestionType_; + } + + /** + * + * + *
              +     * Optional. The type of clarification question.
              +     * 
              + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for clarificationQuestionType to set. + * @return This builder for chaining. + */ + public Builder setClarificationQuestionTypeValue(int value) { + clarificationQuestionType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. The type of clarification question.
              +     * 
              + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clarificationQuestionType. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion + .ClarificationQuestionType + getClarificationQuestionType() { + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType + result = + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion + .ClarificationQuestionType.forNumber(clarificationQuestionType_); + return result == null + ? com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion + .ClarificationQuestionType.UNRECOGNIZED + : result; + } + + /** + * + * + *
              +     * Optional. The type of clarification question.
              +     * 
              + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The clarificationQuestionType to set. + * @return This builder for chaining. + */ + public Builder setClarificationQuestionType( + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + clarificationQuestionType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. The type of clarification question.
              +     * 
              + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearClarificationQuestionType() { + bitField0_ = (bitField0_ & ~0x00000008); + clarificationQuestionType_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.ClarificationQuestion) + } + + // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.ClarificationQuestion) + private static final com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion(); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClarificationQuestion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationQuestionOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationQuestionOrBuilder.java new file mode 100644 index 000000000000..4c0b62efd131 --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationQuestionOrBuilder.java @@ -0,0 +1,174 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/geminidataanalytics/v1beta/data_chat_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.geminidataanalytics.v1beta; + +@com.google.protobuf.Generated +public interface ClarificationQuestionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.ClarificationQuestion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The natural language question to ask the user.
              +   * 
              + * + * string question = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The question. + */ + java.lang.String getQuestion(); + + /** + * + * + *
              +   * Required. The natural language question to ask the user.
              +   * 
              + * + * string question = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for question. + */ + com.google.protobuf.ByteString getQuestionBytes(); + + /** + * + * + *
              +   * Required. The selection mode for this question.
              +   * 
              + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for selectionMode. + */ + int getSelectionModeValue(); + + /** + * + * + *
              +   * Required. The selection mode for this question.
              +   * 
              + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The selectionMode. + */ + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode + getSelectionMode(); + + /** + * + * + *
              +   * Required. A list of distinct options for the user to choose from.
              +   * The number of options is limited to a maximum of 5.
              +   * 
              + * + * repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the options. + */ + java.util.List getOptionsList(); + + /** + * + * + *
              +   * Required. A list of distinct options for the user to choose from.
              +   * The number of options is limited to a maximum of 5.
              +   * 
              + * + * repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of options. + */ + int getOptionsCount(); + + /** + * + * + *
              +   * Required. A list of distinct options for the user to choose from.
              +   * The number of options is limited to a maximum of 5.
              +   * 
              + * + * repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The options at the given index. + */ + java.lang.String getOptions(int index); + + /** + * + * + *
              +   * Required. A list of distinct options for the user to choose from.
              +   * The number of options is limited to a maximum of 5.
              +   * 
              + * + * repeated string options = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the options at the given index. + */ + com.google.protobuf.ByteString getOptionsBytes(int index); + + /** + * + * + *
              +   * Optional. The type of clarification question.
              +   * 
              + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for clarificationQuestionType. + */ + int getClarificationQuestionTypeValue(); + + /** + * + * + *
              +   * Optional. The type of clarification question.
              +   * 
              + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clarificationQuestionType. + */ + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType + getClarificationQuestionType(); +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceProto.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceProto.java index d542da82c0fc..317d05bdbfc7 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceProto.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceProto.java @@ -172,6 +172,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_geminidataanalytics_v1beta_ErrorMessage_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_geminidataanalytics_v1beta_ErrorMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationQuestion_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationQuestion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationMessage_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationMessage_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQueries_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -298,7 +306,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004kind\"%\n" + "\013UserMessage\022\016\n" + "\004text\030\001 \001(\tH\000B\006\n" - + "\004kind\"\310\004\n\r" + + "\004kind\"\245\005\n\r" + "SystemMessage\022D\n" + "\004text\030\001" + " \001(\01324.google.cloud.geminidataanalytics.v1beta.TextMessageH\000\022H\n" @@ -314,14 +322,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "minidataanalytics.v1beta.ErrorMessageH\000\022W\n" + "\017example_queries\030\r" + " \001(\01327.google.cloud." - + "geminidataanalytics.v1beta.ExampleQueriesB\003\340A\001H\000\022\025\n" + + "geminidataanalytics.v1beta.ExampleQueriesB\003\340A\001H\000\022[\n\r" + + "clarification\030\016 \001(\0132=.google" + + ".cloud.geminidataanalytics.v1beta.ClarificationMessageB\003\340A\001H\000\022\025\n" + "\010group_id\030\014 \001(\005H\001\210\001\001B\006\n" + "\004kindB\013\n" - + "\t_group_id\"\316\001\n" + + "\t_group_id\"\356\001\n" + "\013TextMessage\022\022\n" + "\005parts\030\001 \003(\tB\003\340A\001\022U\n" - + "\ttext_type\030\002 \001(\0162=.google.clo" - + "ud.geminidataanalytics.v1beta.TextMessage.TextTypeB\003\340A\001\"T\n" + + "\ttext_type\030\002 \001(\016" + + "2=.google.cloud.geminidataanalytics.v1beta.TextMessage.TextTypeB\003\340A\001\022\036\n" + + "\021thought_signature\030\003 \001(\014B\003\340A\001\"T\n" + "\010TextType\022\031\n" + "\025TEXT_TYPE_UNSPECIFIED\020\000\022\022\n" + "\016FINAL_RESPONSE\020\001\022\013\n" @@ -336,46 +347,47 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013SchemaQuery\022\025\n" + "\010question\030\001 \001(\tB\003\340A\001\"]\n" + "\014SchemaResult\022M\n" - + "\013datasources\030\001 \003(\01323.google.clou" - + "d.geminidataanalytics.v1beta.DatasourceB\003\340A\001\"\345\002\n" + + "\013datasources\030\001 \003(\01323.google" + + ".cloud.geminidataanalytics.v1beta.DatasourceB\003\340A\001\"\345\002\n" + "\013DataMessage\022C\n" - + "\005query\030\001 \001(\01322.go" - + "ogle.cloud.geminidataanalytics.v1beta.DataQueryH\000\022\027\n\r" + + "\005query\030\001 \001(\013" + + "22.google.cloud.geminidataanalytics.v1beta.DataQueryH\000\022\027\n\r" + "generated_sql\030\002 \001(\tH\000\022E\n" + "\006result\030\003" + " \001(\01323.google.cloud.geminidataanalytics.v1beta.DataResultH\000\022Z\n" - + "\026generated_looker_query\030\004" - + " \001(\01324.google.cloud.geminidataanalytics.v1beta.LookerQueryB\002\030\001H\000\022M\n" - + "\r" - + "big_query_job\030\005" - + " \001(\01324.google.cloud.geminidataanalytics.v1beta.BigQueryJobH\000B\006\n" + + "\026generated_looker_query\030\004 \001(\01324.google.cloud.ge" + + "minidataanalytics.v1beta.LookerQueryB\002\030\001H\000\022M\n\r" + + "big_query_job\030\005 \001(\01324.google.cloud" + + ".geminidataanalytics.v1beta.BigQueryJobH\000B\006\n" + "\004kind\"\337\001\n" + "\tDataQuery\022K\n" - + "\006looker\030\004 \001(\01324.goo" - + "gle.cloud.geminidataanalytics.v1beta.LookerQueryB\003\340A\001H\000\022\025\n" + + "\006looker\030\004 \001(\0132" + + "4.google.cloud.geminidataanalytics.v1beta.LookerQueryB\003\340A\001H\000\022\025\n" + "\010question\030\001 \001(\tB\003\340A\001\022\021\n" + "\004name\030\003 \001(\tB\003\340A\001\022M\n" - + "\013datasources\030\002 \003(\01323" - + ".google.cloud.geminidataanalytics.v1beta.DatasourceB\003\340A\001B\014\n\n" - + "query_type\"\221\001\n\n" + + "\013datasources\030\002 " + + "\003(\01323.google.cloud.geminidataanalytics.v1beta.DatasourceB\003\340A\001B\014\n\n" + + "query_type\"\307\001\n\n" + "DataResult\022\021\n" + "\004name\030\003 \001(\tB\003\340A\001\022D\n" - + "\006schema\030\005 \001(\013" - + "2/.google.cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001\022*\n" - + "\004data\030\002 \003(\0132\027.google.protobuf.StructB\003\340A\001\"\371\001\n" + + "\006schema\030\005" + + " \001(\0132/.google.cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001\022*\n" + + "\004data\030\002 \003(\0132\027.google.protobuf.StructB\003\340A\001\0224\n" + + "\016formatted_data\030\006" + + " \003(\0132\027.google.protobuf.StructB\003\340A\001\"\371\001\n" + "\013BigQueryJob\022\027\n\n" + "project_id\030\001 \001(\tB\003\340A\002\022\023\n" + "\006job_id\030\002 \001(\tB\003\340A\002\022\025\n" + "\010location\030\005 \001(\tB\003\340A\001\022_\n" - + "\021destination_table\030\003 \001(\0132?.google.cloud.geminidataanal" - + "ytics.v1beta.BigQueryTableReferenceB\003\340A\001\022D\n" - + "\006schema\030\007" - + " \001(\0132/.google.cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001\"\264\001\n" + + "\021destination_table\030\003 \001(\0132?.google.c" + + "loud.geminidataanalytics.v1beta.BigQueryTableReferenceB\003\340A\001\022D\n" + + "\006schema\030\007 \001(\0132/.go" + + "ogle.cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001\"\264\001\n" + "\017AnalysisMessage\022G\n" - + "\005query\030\001 \001(\01326.google.cloud" - + ".geminidataanalytics.v1beta.AnalysisQueryH\000\022P\n" - + "\016progress_event\030\002 \001(\01326.google.clo" - + "ud.geminidataanalytics.v1beta.AnalysisEventH\000B\006\n" + + "\005query\030\001" + + " \001(\01326.google.cloud.geminidataanalytics.v1beta.AnalysisQueryH\000\022P\n" + + "\016progress_event\030\002" + + " \001(\01326.google.cloud.geminidataanalytics.v1beta.AnalysisEventH\000B\006\n" + "\004kind\"F\n\r" + "AnalysisQuery\022\025\n" + "\010question\030\001 \001(\tB\003\340A\001\022\036\n" @@ -394,61 +406,79 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005error\030\013 \001(\tH\000B\006\n" + "\004kind\"\244\001\n" + "\014ChartMessage\022D\n" - + "\005query\030\001" - + " \001(\01323.google.cloud.geminidataanalytics.v1beta.ChartQueryH\000\022F\n" - + "\006result\030\002" - + " \001(\01324.google.cloud.geminidataanalytics.v1beta.ChartResultH\000B\006\n" + + "\005query\030\001 \001(\01323." + + "google.cloud.geminidataanalytics.v1beta.ChartQueryH\000\022F\n" + + "\006result\030\002 \001(\01324.google.cl" + + "oud.geminidataanalytics.v1beta.ChartResultH\000B\006\n" + "\004kind\"F\n\n" + "ChartQuery\022\031\n" + "\014instructions\030\001 \001(\tB\003\340A\001\022\035\n" + "\020data_result_name\030\002 \001(\tB\003\340A\001\"\203\001\n" + "\013ChartResult\0221\n" + "\013vega_config\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\001\022A\n" - + "\005image\030\003 \001(\0132-.google.clo" - + "ud.geminidataanalytics.v1beta.BlobB\003\340A\001\"!\n" + + "\005image\030\003" + + " \001(\0132-.google.cloud.geminidataanalytics.v1beta.BlobB\003\340A\001\"!\n" + "\014ErrorMessage\022\021\n" - + "\004text\030\001 \001(\tB\003\340A\003\"e\n" + + "\004text\030\001 \001(\tB\003\340A\003\"\363\003\n" + + "\025ClarificationQuestion\022\025\n" + + "\010question\030\001 \001(\tB\003\340A\002\022i\n" + + "\016selection_mode\030\002 \001(\0162L.google.cloud.geminidataanalytic" + + "s.v1beta.ClarificationQuestion.SelectionModeB\003\340A\002\022\024\n" + + "\007options\030\003 \003(\tB\003\340A\002\022\202\001\n" + + "\033clarification_question_type\030\004 \001(\0162X.google.c" + + "loud.geminidataanalytics.v1beta.Clarific" + + "ationQuestion.ClarificationQuestionTypeB\003\340A\001\"T\n\r" + + "SelectionMode\022\036\n" + + "\032SELECTION_MODE_UNSPECIFIED\020\000\022\021\n\r" + + "SINGLE_SELECT\020\001\022\020\n" + + "\014MULTI_SELECT\020\002\"g\n" + + "\031ClarificationQuestionType\022+\n" + + "\'CLARIFICATION_QUESTION_TYPE_UNSPECIFIED\020\000\022\021\n\r" + + "FILTER_VALUES\020\001\022\n\n" + + "\006FIELDS\020\002\"n\n" + + "\024ClarificationMessage\022V\n" + + "\tquestions\030\001 \003(\0132>" + + ".google.cloud.geminidataanalytics.v1beta.ClarificationQuestionB\003\340A\002\"e\n" + "\016ExampleQueries\022S\n" - + "\017example_queries\030\001 \003(\01325." - + "google.cloud.geminidataanalytics.v1beta.ExampleQueryB\003\340A\001\"1\n" + + "\017example_queries\030\001 \003(\01325.google." + + "cloud.geminidataanalytics.v1beta.ExampleQueryB\003\340A\001\"1\n" + "\004Blob\022\026\n" + "\tmime_type\030\001 \001(\tB\003\340A\002\022\021\n" + "\004data\030\002 \001(\014B\003\340A\0022\256\014\n" + "\017DataChatService\022\251\001\n" - + "\004Chat\0224.google.cloud.geminidataanalytics.v1beta.ChatRequest\0320.google" - + ".cloud.geminidataanalytics.v1beta.Messag" - + "e\"7\202\323\344\223\0021\",/v1beta/{parent=projects/*/locations/*}:chat:\001*0\001\022\202\002\n" - + "\022CreateConversation\022B.google.cloud.geminidataanalytics.v" - + "1beta.CreateConversationRequest\0325.google.cloud.geminidataanalytics.v1beta.Conver" - + "sation\"q\332A#parent,conversation,conversat" - + "ion_id\202\323\344\223\002E\"5/v1beta/{parent=projects/*" - + "/locations/*}/conversations:\014conversation\022\266\001\n" - + "\022DeleteConversation\022B.google.cloud.geminidataanalytics.v1beta.DeleteConvers" - + "ationRequest\032\026.google.protobuf.Empty\"D\332A" - + "\004name\202\323\344\223\0027*5/v1beta/{name=projects/*/locations/*/conversations/*}\022\317\001\n" - + "\017GetConversation\022?.google.cloud.geminidataanalytic" - + "s.v1beta.GetConversationRequest\0325.google.cloud.geminidataanalytics.v1beta.Conver" - + "sation\"D\332A\004name\202\323\344\223\0027\0225/v1beta/{name=projects/*/locations/*/conversations/*}\022\342\001\n" - + "\021ListConversations\022A.google.cloud.geminidataanalytics.v1beta.ListConversationsRe" - + "quest\032B.google.cloud.geminidataanalytics" - + ".v1beta.ListConversationsResponse\"F\332A\006pa" - + "rent\202\323\344\223\0027\0225/v1beta/{parent=projects/*/locations/*}/conversations\022\336\001\n" - + "\014ListMessages\022<.google.cloud.geminidataanalytics.v1" - + "beta.ListMessagesRequest\032=.google.cloud.geminidataanalytics.v1beta.ListMessagesR" - + "esponse\"Q\332A\006parent\202\323\344\223\002B\022@/v1beta/{paren" - + "t=projects/*/locations/*/conversations/*}/messages\022\300\001\n" - + "\tQueryData\0229.google.cloud.geminidataanalytics.v1beta.QueryDataRequ" - + "est\032:.google.cloud.geminidataanalytics.v" - + "1beta.QueryDataResponse\"<\202\323\344\223\0026\"1/v1beta" - + "/{parent=projects/*/locations/*}:queryDa" - + "ta:\001*\032V\312A\"geminidataanalytics.googleapis" - + ".com\322A.https://www.googleapis.com/auth/cloud-platformB\245\002\n" - + "+com.google.cloud.geminidataanalytics.v1betaB\024DataChatServicePr" - + "otoP\001Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;g" - + "eminidataanalyticspb\252\002\'Google.Cloud.Gemi" - + "niDataAnalytics.V1Beta\312\002\'Google\\Cloud\\Ge" - + "miniDataAnalytics\\V1beta\352\002*Google::Cloud" - + "::GeminiDataAnalytics::V1betab\006proto3" + + "\004Chat\0224.google.cloud.geminidataanalytics.v1beta.ChatRequest\0320.google.cloud." + + "geminidataanalytics.v1beta.Message\"7\202\323\344\223" + + "\0021\",/v1beta/{parent=projects/*/locations/*}:chat:\001*0\001\022\202\002\n" + + "\022CreateConversation\022B.google.cloud.geminidataanalytics.v1beta.C" + + "reateConversationRequest\0325.google.cloud.geminidataanalytics.v1beta.Conversation\"" + + "q\332A#parent,conversation,conversation_id\202" + + "\323\344\223\002E\"5/v1beta/{parent=projects/*/locations/*}/conversations:\014conversation\022\266\001\n" + + "\022DeleteConversation\022B.google.cloud.geminid" + + "ataanalytics.v1beta.DeleteConversationRe" + + "quest\032\026.google.protobuf.Empty\"D\332A\004name\202\323" + + "\344\223\0027*5/v1beta/{name=projects/*/locations/*/conversations/*}\022\317\001\n" + + "\017GetConversation\022?.google.cloud.geminidataanalytics.v1bet" + + "a.GetConversationRequest\0325.google.cloud.geminidataanalytics.v1beta.Conversation\"" + + "D\332A\004name\202\323\344\223\0027\0225/v1beta/{name=projects/*/locations/*/conversations/*}\022\342\001\n" + + "\021ListConversations\022A.google.cloud.geminidataana" + + "lytics.v1beta.ListConversationsRequest\032B.google.cloud.geminidataanalytics.v1beta" + + ".ListConversationsResponse\"F\332A\006parent\202\323\344" + + "\223\0027\0225/v1beta/{parent=projects/*/locations/*}/conversations\022\336\001\n" + + "\014ListMessages\022<.google.cloud.geminidataanalytics.v1beta.Li" + + "stMessagesRequest\032=.google.cloud.geminidataanalytics.v1beta.ListMessagesResponse" + + "\"Q\332A\006parent\202\323\344\223\002B\022@/v1beta/{parent=proje" + + "cts/*/locations/*/conversations/*}/messages\022\300\001\n" + + "\tQueryData\0229.google.cloud.geminidataanalytics.v1beta.QueryDataRequest\032:.g" + + "oogle.cloud.geminidataanalytics.v1beta.Q" + + "ueryDataResponse\"<\202\323\344\223\0026\"1/v1beta/{paren" + + "t=projects/*/locations/*}:queryData:\001*\032V" + + "\312A\"geminidataanalytics.googleapis.com\322A." + + "https://www.googleapis.com/auth/cloud-platformB\245\002\n" + + "+com.google.cloud.geminidataanalytics.v1betaB\024DataChatServiceProtoP\001Z]" + + "cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminida" + + "taanalyticspb\252\002\'Google.Cloud.GeminiDataA" + + "nalytics.V1Beta\312\002\'Google\\Cloud\\GeminiDat" + + "aAnalytics\\V1beta\352\002*Google::Cloud::GeminiDataAnalytics::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -632,6 +662,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Chart", "Error", "ExampleQueries", + "Clarification", "GroupId", "Kind", }); @@ -641,7 +672,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_TextMessage_descriptor, new java.lang.String[] { - "Parts", "TextType", + "Parts", "TextType", "ThoughtSignature", }); internal_static_google_cloud_geminidataanalytics_v1beta_SchemaMessage_descriptor = getDescriptor().getMessageType(16); @@ -689,7 +720,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_DataResult_descriptor, new java.lang.String[] { - "Name", "Schema", "Data", + "Name", "Schema", "Data", "FormattedData", }); internal_static_google_cloud_geminidataanalytics_v1beta_BigQueryJob_descriptor = getDescriptor().getMessageType(22); @@ -765,8 +796,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Text", }); - internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQueries_descriptor = + internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationQuestion_descriptor = getDescriptor().getMessageType(30); + internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationQuestion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationQuestion_descriptor, + new java.lang.String[] { + "Question", "SelectionMode", "Options", "ClarificationQuestionType", + }); + internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationMessage_descriptor = + getDescriptor().getMessageType(31); + internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationMessage_descriptor, + new java.lang.String[] { + "Questions", + }); + internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQueries_descriptor = + getDescriptor().getMessageType(32); internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQueries_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQueries_descriptor, @@ -774,7 +821,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExampleQueries", }); internal_static_google_cloud_geminidataanalytics_v1beta_Blob_descriptor = - getDescriptor().getMessageType(31); + getDescriptor().getMessageType(33); internal_static_google_cloud_geminidataanalytics_v1beta_Blob_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_Blob_descriptor, diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessage.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessage.java index 3a08a4867396..57628568f0b6 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessage.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessage.java @@ -324,7 +324,7 @@ public com.google.cloud.geminidataanalytics.v1beta.DataResultOrBuilder getResult * * * @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is - * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=537 + * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=545 * @return Whether the generatedLookerQuery field is set. */ @java.lang.Override @@ -346,7 +346,7 @@ public boolean hasGeneratedLookerQuery() { * * * @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is - * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=537 + * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=545 * @return The generatedLookerQuery. */ @java.lang.Override @@ -1513,7 +1513,7 @@ public com.google.cloud.geminidataanalytics.v1beta.DataResultOrBuilder getResult * * * @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is - * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=537 + * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=545 * @return Whether the generatedLookerQuery field is set. */ @java.lang.Override @@ -1535,7 +1535,7 @@ public boolean hasGeneratedLookerQuery() { * * * @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is - * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=537 + * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=545 * @return The generatedLookerQuery. */ @java.lang.Override diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessageOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessageOrBuilder.java index 23db9f821035..4bd27bac020a 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessageOrBuilder.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessageOrBuilder.java @@ -152,7 +152,7 @@ public interface DataMessageOrBuilder * * * @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is - * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=537 + * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=545 * @return Whether the generatedLookerQuery field is set. */ @java.lang.Deprecated @@ -171,7 +171,7 @@ public interface DataMessageOrBuilder * * * @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is - * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=537 + * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=545 * @return The generatedLookerQuery. */ @java.lang.Deprecated diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataResult.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataResult.java index 610859d83b49..bcdfb61d82b8 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataResult.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataResult.java @@ -54,6 +54,7 @@ private DataResult(com.google.protobuf.GeneratedMessage.Builder builder) { private DataResult() { name_ = ""; data_ = java.util.Collections.emptyList(); + formattedData_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -284,6 +285,122 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder(int index) { return data_.get(index); } + public static final int FORMATTED_DATA_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List formattedData_; + + /** + * + * + *
              +   * Optional. Formatted representation of the data, when applicable.
              +   * Each row is a struct that directly corresponds to the row at the same index
              +   * within the `data` field. Its values are string representations of the
              +   * original data, formatted according to data source specifications (e.g.,
              +   * "$1,234.56" for currency). Columns without formatting will default to
              +   * their raw value representation. If no columns have formatting rules, this
              +   * field will be empty.
              +   * 
              + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getFormattedDataList() { + return formattedData_; + } + + /** + * + * + *
              +   * Optional. Formatted representation of the data, when applicable.
              +   * Each row is a struct that directly corresponds to the row at the same index
              +   * within the `data` field. Its values are string representations of the
              +   * original data, formatted according to data source specifications (e.g.,
              +   * "$1,234.56" for currency). Columns without formatting will default to
              +   * their raw value representation. If no columns have formatting rules, this
              +   * field will be empty.
              +   * 
              + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getFormattedDataOrBuilderList() { + return formattedData_; + } + + /** + * + * + *
              +   * Optional. Formatted representation of the data, when applicable.
              +   * Each row is a struct that directly corresponds to the row at the same index
              +   * within the `data` field. Its values are string representations of the
              +   * original data, formatted according to data source specifications (e.g.,
              +   * "$1,234.56" for currency). Columns without formatting will default to
              +   * their raw value representation. If no columns have formatting rules, this
              +   * field will be empty.
              +   * 
              + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getFormattedDataCount() { + return formattedData_.size(); + } + + /** + * + * + *
              +   * Optional. Formatted representation of the data, when applicable.
              +   * Each row is a struct that directly corresponds to the row at the same index
              +   * within the `data` field. Its values are string representations of the
              +   * original data, formatted according to data source specifications (e.g.,
              +   * "$1,234.56" for currency). Columns without formatting will default to
              +   * their raw value representation. If no columns have formatting rules, this
              +   * field will be empty.
              +   * 
              + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.Struct getFormattedData(int index) { + return formattedData_.get(index); + } + + /** + * + * + *
              +   * Optional. Formatted representation of the data, when applicable.
              +   * Each row is a struct that directly corresponds to the row at the same index
              +   * within the `data` field. Its values are string representations of the
              +   * original data, formatted according to data source specifications (e.g.,
              +   * "$1,234.56" for currency). Columns without formatting will default to
              +   * their raw value representation. If no columns have formatting rules, this
              +   * field will be empty.
              +   * 
              + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getFormattedDataOrBuilder(int index) { + return formattedData_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -307,6 +424,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getSchema()); } + for (int i = 0; i < formattedData_.size(); i++) { + output.writeMessage(6, formattedData_.get(i)); + } getUnknownFields().writeTo(output); } @@ -325,6 +445,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSchema()); } + for (int i = 0; i < formattedData_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, formattedData_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -347,6 +470,7 @@ public boolean equals(final java.lang.Object obj) { if (!getSchema().equals(other.getSchema())) return false; } if (!getDataList().equals(other.getDataList())) return false; + if (!getFormattedDataList().equals(other.getFormattedDataList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -368,6 +492,10 @@ public int hashCode() { hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getDataList().hashCode(); } + if (getFormattedDataCount() > 0) { + hash = (37 * hash) + FORMATTED_DATA_FIELD_NUMBER; + hash = (53 * hash) + getFormattedDataList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -512,6 +640,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetSchemaFieldBuilder(); internalGetDataFieldBuilder(); + internalGetFormattedDataFieldBuilder(); } } @@ -532,6 +661,13 @@ public Builder clear() { dataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); + if (formattedDataBuilder_ == null) { + formattedData_ = java.util.Collections.emptyList(); + } else { + formattedData_ = null; + formattedDataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); return this; } @@ -578,6 +714,15 @@ private void buildPartialRepeatedFields( } else { result.data_ = dataBuilder_.build(); } + if (formattedDataBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + formattedData_ = java.util.Collections.unmodifiableList(formattedData_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.formattedData_ = formattedData_; + } else { + result.formattedData_ = formattedDataBuilder_.build(); + } } private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.DataResult result) { @@ -641,6 +786,33 @@ public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.DataResult } } } + if (formattedDataBuilder_ == null) { + if (!other.formattedData_.isEmpty()) { + if (formattedData_.isEmpty()) { + formattedData_ = other.formattedData_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureFormattedDataIsMutable(); + formattedData_.addAll(other.formattedData_); + } + onChanged(); + } + } else { + if (!other.formattedData_.isEmpty()) { + if (formattedDataBuilder_.isEmpty()) { + formattedDataBuilder_.dispose(); + formattedDataBuilder_ = null; + formattedData_ = other.formattedData_; + bitField0_ = (bitField0_ & ~0x00000008); + formattedDataBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetFormattedDataFieldBuilder() + : null; + } else { + formattedDataBuilder_.addAllMessages(other.formattedData_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -691,6 +863,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 42 + case 50: + { + com.google.protobuf.Struct m = + input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (formattedDataBuilder_ == null) { + ensureFormattedDataIsMutable(); + formattedData_.add(m); + } else { + formattedDataBuilder_.addMessage(m); + } + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1473,6 +1657,516 @@ public java.util.List getDataBuilderList() { return dataBuilder_; } + private java.util.List formattedData_ = + java.util.Collections.emptyList(); + + private void ensureFormattedDataIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + formattedData_ = new java.util.ArrayList(formattedData_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + formattedDataBuilder_; + + /** + * + * + *
              +     * Optional. Formatted representation of the data, when applicable.
              +     * Each row is a struct that directly corresponds to the row at the same index
              +     * within the `data` field. Its values are string representations of the
              +     * original data, formatted according to data source specifications (e.g.,
              +     * "$1,234.56" for currency). Columns without formatting will default to
              +     * their raw value representation. If no columns have formatting rules, this
              +     * field will be empty.
              +     * 
              + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getFormattedDataList() { + if (formattedDataBuilder_ == null) { + return java.util.Collections.unmodifiableList(formattedData_); + } else { + return formattedDataBuilder_.getMessageList(); + } + } + + /** + * + * + *
              +     * Optional. Formatted representation of the data, when applicable.
              +     * Each row is a struct that directly corresponds to the row at the same index
              +     * within the `data` field. Its values are string representations of the
              +     * original data, formatted according to data source specifications (e.g.,
              +     * "$1,234.56" for currency). Columns without formatting will default to
              +     * their raw value representation. If no columns have formatting rules, this
              +     * field will be empty.
              +     * 
              + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getFormattedDataCount() { + if (formattedDataBuilder_ == null) { + return formattedData_.size(); + } else { + return formattedDataBuilder_.getCount(); + } + } + + /** + * + * + *
              +     * Optional. Formatted representation of the data, when applicable.
              +     * Each row is a struct that directly corresponds to the row at the same index
              +     * within the `data` field. Its values are string representations of the
              +     * original data, formatted according to data source specifications (e.g.,
              +     * "$1,234.56" for currency). Columns without formatting will default to
              +     * their raw value representation. If no columns have formatting rules, this
              +     * field will be empty.
              +     * 
              + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct getFormattedData(int index) { + if (formattedDataBuilder_ == null) { + return formattedData_.get(index); + } else { + return formattedDataBuilder_.getMessage(index); + } + } + + /** + * + * + *
              +     * Optional. Formatted representation of the data, when applicable.
              +     * Each row is a struct that directly corresponds to the row at the same index
              +     * within the `data` field. Its values are string representations of the
              +     * original data, formatted according to data source specifications (e.g.,
              +     * "$1,234.56" for currency). Columns without formatting will default to
              +     * their raw value representation. If no columns have formatting rules, this
              +     * field will be empty.
              +     * 
              + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFormattedData(int index, com.google.protobuf.Struct value) { + if (formattedDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFormattedDataIsMutable(); + formattedData_.set(index, value); + onChanged(); + } else { + formattedDataBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * Optional. Formatted representation of the data, when applicable.
              +     * Each row is a struct that directly corresponds to the row at the same index
              +     * within the `data` field. Its values are string representations of the
              +     * original data, formatted according to data source specifications (e.g.,
              +     * "$1,234.56" for currency). Columns without formatting will default to
              +     * their raw value representation. If no columns have formatting rules, this
              +     * field will be empty.
              +     * 
              + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFormattedData(int index, com.google.protobuf.Struct.Builder builderForValue) { + if (formattedDataBuilder_ == null) { + ensureFormattedDataIsMutable(); + formattedData_.set(index, builderForValue.build()); + onChanged(); + } else { + formattedDataBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * Optional. Formatted representation of the data, when applicable.
              +     * Each row is a struct that directly corresponds to the row at the same index
              +     * within the `data` field. Its values are string representations of the
              +     * original data, formatted according to data source specifications (e.g.,
              +     * "$1,234.56" for currency). Columns without formatting will default to
              +     * their raw value representation. If no columns have formatting rules, this
              +     * field will be empty.
              +     * 
              + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFormattedData(com.google.protobuf.Struct value) { + if (formattedDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFormattedDataIsMutable(); + formattedData_.add(value); + onChanged(); + } else { + formattedDataBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
              +     * Optional. Formatted representation of the data, when applicable.
              +     * Each row is a struct that directly corresponds to the row at the same index
              +     * within the `data` field. Its values are string representations of the
              +     * original data, formatted according to data source specifications (e.g.,
              +     * "$1,234.56" for currency). Columns without formatting will default to
              +     * their raw value representation. If no columns have formatting rules, this
              +     * field will be empty.
              +     * 
              + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFormattedData(int index, com.google.protobuf.Struct value) { + if (formattedDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFormattedDataIsMutable(); + formattedData_.add(index, value); + onChanged(); + } else { + formattedDataBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * Optional. Formatted representation of the data, when applicable.
              +     * Each row is a struct that directly corresponds to the row at the same index
              +     * within the `data` field. Its values are string representations of the
              +     * original data, formatted according to data source specifications (e.g.,
              +     * "$1,234.56" for currency). Columns without formatting will default to
              +     * their raw value representation. If no columns have formatting rules, this
              +     * field will be empty.
              +     * 
              + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFormattedData(com.google.protobuf.Struct.Builder builderForValue) { + if (formattedDataBuilder_ == null) { + ensureFormattedDataIsMutable(); + formattedData_.add(builderForValue.build()); + onChanged(); + } else { + formattedDataBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * Optional. Formatted representation of the data, when applicable.
              +     * Each row is a struct that directly corresponds to the row at the same index
              +     * within the `data` field. Its values are string representations of the
              +     * original data, formatted according to data source specifications (e.g.,
              +     * "$1,234.56" for currency). Columns without formatting will default to
              +     * their raw value representation. If no columns have formatting rules, this
              +     * field will be empty.
              +     * 
              + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFormattedData(int index, com.google.protobuf.Struct.Builder builderForValue) { + if (formattedDataBuilder_ == null) { + ensureFormattedDataIsMutable(); + formattedData_.add(index, builderForValue.build()); + onChanged(); + } else { + formattedDataBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * Optional. Formatted representation of the data, when applicable.
              +     * Each row is a struct that directly corresponds to the row at the same index
              +     * within the `data` field. Its values are string representations of the
              +     * original data, formatted according to data source specifications (e.g.,
              +     * "$1,234.56" for currency). Columns without formatting will default to
              +     * their raw value representation. If no columns have formatting rules, this
              +     * field will be empty.
              +     * 
              + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllFormattedData( + java.lang.Iterable values) { + if (formattedDataBuilder_ == null) { + ensureFormattedDataIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, formattedData_); + onChanged(); + } else { + formattedDataBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
              +     * Optional. Formatted representation of the data, when applicable.
              +     * Each row is a struct that directly corresponds to the row at the same index
              +     * within the `data` field. Its values are string representations of the
              +     * original data, formatted according to data source specifications (e.g.,
              +     * "$1,234.56" for currency). Columns without formatting will default to
              +     * their raw value representation. If no columns have formatting rules, this
              +     * field will be empty.
              +     * 
              + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFormattedData() { + if (formattedDataBuilder_ == null) { + formattedData_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + formattedDataBuilder_.clear(); + } + return this; + } + + /** + * + * + *
              +     * Optional. Formatted representation of the data, when applicable.
              +     * Each row is a struct that directly corresponds to the row at the same index
              +     * within the `data` field. Its values are string representations of the
              +     * original data, formatted according to data source specifications (e.g.,
              +     * "$1,234.56" for currency). Columns without formatting will default to
              +     * their raw value representation. If no columns have formatting rules, this
              +     * field will be empty.
              +     * 
              + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeFormattedData(int index) { + if (formattedDataBuilder_ == null) { + ensureFormattedDataIsMutable(); + formattedData_.remove(index); + onChanged(); + } else { + formattedDataBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
              +     * Optional. Formatted representation of the data, when applicable.
              +     * Each row is a struct that directly corresponds to the row at the same index
              +     * within the `data` field. Its values are string representations of the
              +     * original data, formatted according to data source specifications (e.g.,
              +     * "$1,234.56" for currency). Columns without formatting will default to
              +     * their raw value representation. If no columns have formatting rules, this
              +     * field will be empty.
              +     * 
              + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getFormattedDataBuilder(int index) { + return internalGetFormattedDataFieldBuilder().getBuilder(index); + } + + /** + * + * + *
              +     * Optional. Formatted representation of the data, when applicable.
              +     * Each row is a struct that directly corresponds to the row at the same index
              +     * within the `data` field. Its values are string representations of the
              +     * original data, formatted according to data source specifications (e.g.,
              +     * "$1,234.56" for currency). Columns without formatting will default to
              +     * their raw value representation. If no columns have formatting rules, this
              +     * field will be empty.
              +     * 
              + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getFormattedDataOrBuilder(int index) { + if (formattedDataBuilder_ == null) { + return formattedData_.get(index); + } else { + return formattedDataBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
              +     * Optional. Formatted representation of the data, when applicable.
              +     * Each row is a struct that directly corresponds to the row at the same index
              +     * within the `data` field. Its values are string representations of the
              +     * original data, formatted according to data source specifications (e.g.,
              +     * "$1,234.56" for currency). Columns without formatting will default to
              +     * their raw value representation. If no columns have formatting rules, this
              +     * field will be empty.
              +     * 
              + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getFormattedDataOrBuilderList() { + if (formattedDataBuilder_ != null) { + return formattedDataBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(formattedData_); + } + } + + /** + * + * + *
              +     * Optional. Formatted representation of the data, when applicable.
              +     * Each row is a struct that directly corresponds to the row at the same index
              +     * within the `data` field. Its values are string representations of the
              +     * original data, formatted according to data source specifications (e.g.,
              +     * "$1,234.56" for currency). Columns without formatting will default to
              +     * their raw value representation. If no columns have formatting rules, this
              +     * field will be empty.
              +     * 
              + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder addFormattedDataBuilder() { + return internalGetFormattedDataFieldBuilder() + .addBuilder(com.google.protobuf.Struct.getDefaultInstance()); + } + + /** + * + * + *
              +     * Optional. Formatted representation of the data, when applicable.
              +     * Each row is a struct that directly corresponds to the row at the same index
              +     * within the `data` field. Its values are string representations of the
              +     * original data, formatted according to data source specifications (e.g.,
              +     * "$1,234.56" for currency). Columns without formatting will default to
              +     * their raw value representation. If no columns have formatting rules, this
              +     * field will be empty.
              +     * 
              + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder addFormattedDataBuilder(int index) { + return internalGetFormattedDataFieldBuilder() + .addBuilder(index, com.google.protobuf.Struct.getDefaultInstance()); + } + + /** + * + * + *
              +     * Optional. Formatted representation of the data, when applicable.
              +     * Each row is a struct that directly corresponds to the row at the same index
              +     * within the `data` field. Its values are string representations of the
              +     * original data, formatted according to data source specifications (e.g.,
              +     * "$1,234.56" for currency). Columns without formatting will default to
              +     * their raw value representation. If no columns have formatting rules, this
              +     * field will be empty.
              +     * 
              + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getFormattedDataBuilderList() { + return internalGetFormattedDataFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetFormattedDataFieldBuilder() { + if (formattedDataBuilder_ == null) { + formattedDataBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + formattedData_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + formattedData_ = null; + } + return formattedDataBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.DataResult) } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataResultOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataResultOrBuilder.java index a6fd0fd4b136..ad6bf7c82f93 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataResultOrBuilder.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataResultOrBuilder.java @@ -174,4 +174,99 @@ public interface DataResultOrBuilder * */ com.google.protobuf.StructOrBuilder getDataOrBuilder(int index); + + /** + * + * + *
              +   * Optional. Formatted representation of the data, when applicable.
              +   * Each row is a struct that directly corresponds to the row at the same index
              +   * within the `data` field. Its values are string representations of the
              +   * original data, formatted according to data source specifications (e.g.,
              +   * "$1,234.56" for currency). Columns without formatting will default to
              +   * their raw value representation. If no columns have formatting rules, this
              +   * field will be empty.
              +   * 
              + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getFormattedDataList(); + + /** + * + * + *
              +   * Optional. Formatted representation of the data, when applicable.
              +   * Each row is a struct that directly corresponds to the row at the same index
              +   * within the `data` field. Its values are string representations of the
              +   * original data, formatted according to data source specifications (e.g.,
              +   * "$1,234.56" for currency). Columns without formatting will default to
              +   * their raw value representation. If no columns have formatting rules, this
              +   * field will be empty.
              +   * 
              + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.Struct getFormattedData(int index); + + /** + * + * + *
              +   * Optional. Formatted representation of the data, when applicable.
              +   * Each row is a struct that directly corresponds to the row at the same index
              +   * within the `data` field. Its values are string representations of the
              +   * original data, formatted according to data source specifications (e.g.,
              +   * "$1,234.56" for currency). Columns without formatting will default to
              +   * their raw value representation. If no columns have formatting rules, this
              +   * field will be empty.
              +   * 
              + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getFormattedDataCount(); + + /** + * + * + *
              +   * Optional. Formatted representation of the data, when applicable.
              +   * Each row is a struct that directly corresponds to the row at the same index
              +   * within the `data` field. Its values are string representations of the
              +   * original data, formatted according to data source specifications (e.g.,
              +   * "$1,234.56" for currency). Columns without formatting will default to
              +   * their raw value representation. If no columns have formatting rules, this
              +   * field will be empty.
              +   * 
              + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getFormattedDataOrBuilderList(); + + /** + * + * + *
              +   * Optional. Formatted representation of the data, when applicable.
              +   * Each row is a struct that directly corresponds to the row at the same index
              +   * within the `data` field. Its values are string representations of the
              +   * original data, formatted according to data source specifications (e.g.,
              +   * "$1,234.56" for currency). Columns without formatting will default to
              +   * their raw value representation. If no columns have formatting rules, this
              +   * field will be empty.
              +   * 
              + * + * + * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getFormattedDataOrBuilder(int index); } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessage.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessage.java index 41fc3b1adf7b..f1c6cb865964 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessage.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessage.java @@ -87,6 +87,7 @@ public enum KindCase CHART(5), ERROR(6), EXAMPLE_QUERIES(13), + CLARIFICATION(14), KIND_NOT_SET(0); private final int value; @@ -120,6 +121,8 @@ public static KindCase forNumber(int value) { return ERROR; case 13: return EXAMPLE_QUERIES; + case 14: + return CLARIFICATION; case 0: return KIND_NOT_SET; default: @@ -522,6 +525,67 @@ public com.google.cloud.geminidataanalytics.v1beta.ExampleQueries getExampleQuer return com.google.cloud.geminidataanalytics.v1beta.ExampleQueries.getDefaultInstance(); } + public static final int CLARIFICATION_FIELD_NUMBER = 14; + + /** + * + * + *
              +   * Optional. A message containing clarification questions.
              +   * 
              + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the clarification field is set. + */ + @java.lang.Override + public boolean hasClarification() { + return kindCase_ == 14; + } + + /** + * + * + *
              +   * Optional. A message containing clarification questions.
              +   * 
              + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clarification. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage getClarification() { + if (kindCase_ == 14) { + return (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) kind_; + } + return com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.getDefaultInstance(); + } + + /** + * + * + *
              +   * Optional. A message containing clarification questions.
              +   * 
              + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClarificationMessageOrBuilder + getClarificationOrBuilder() { + if (kindCase_ == 14) { + return (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) kind_; + } + return com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.getDefaultInstance(); + } + public static final int GROUP_ID_FIELD_NUMBER = 12; private int groupId_ = 0; @@ -599,6 +663,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (kindCase_ == 13) { output.writeMessage(13, (com.google.cloud.geminidataanalytics.v1beta.ExampleQueries) kind_); } + if (kindCase_ == 14) { + output.writeMessage( + 14, (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) kind_); + } getUnknownFields().writeTo(output); } @@ -646,6 +714,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 13, (com.google.cloud.geminidataanalytics.v1beta.ExampleQueries) kind_); } + if (kindCase_ == 14) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) kind_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -689,6 +762,9 @@ public boolean equals(final java.lang.Object obj) { case 13: if (!getExampleQueries().equals(other.getExampleQueries())) return false; break; + case 14: + if (!getClarification().equals(other.getClarification())) return false; + break; case 0: default: } @@ -736,6 +812,10 @@ public int hashCode() { hash = (37 * hash) + EXAMPLE_QUERIES_FIELD_NUMBER; hash = (53 * hash) + getExampleQueries().hashCode(); break; + case 14: + hash = (37 * hash) + CLARIFICATION_FIELD_NUMBER; + hash = (53 * hash) + getClarification().hashCode(); + break; case 0: default: } @@ -903,6 +983,9 @@ public Builder clear() { if (exampleQueriesBuilder_ != null) { exampleQueriesBuilder_.clear(); } + if (clarificationBuilder_ != null) { + clarificationBuilder_.clear(); + } groupId_ = 0; kindCase_ = 0; kind_ = null; @@ -944,7 +1027,7 @@ public com.google.cloud.geminidataanalytics.v1beta.SystemMessage buildPartial() private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.SystemMessage result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.groupId_ = groupId_; to_bitField0_ |= 0x00000001; } @@ -976,6 +1059,9 @@ private void buildPartialOneofs( if (kindCase_ == 13 && exampleQueriesBuilder_ != null) { result.kind_ = exampleQueriesBuilder_.build(); } + if (kindCase_ == 14 && clarificationBuilder_ != null) { + result.kind_ = clarificationBuilder_.build(); + } } @java.lang.Override @@ -1030,6 +1116,11 @@ public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.SystemMessa mergeExampleQueries(other.getExampleQueries()); break; } + case CLARIFICATION: + { + mergeClarification(other.getClarification()); + break; + } case KIND_NOT_SET: { break; @@ -1101,7 +1192,7 @@ public Builder mergeFrom( case 96: { groupId_ = input.readInt32(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 96 case 106: @@ -1111,6 +1202,13 @@ public Builder mergeFrom( kindCase_ = 13; break; } // case 106 + case 114: + { + input.readMessage( + internalGetClarificationFieldBuilder().getBuilder(), extensionRegistry); + kindCase_ = 14; + break; + } // case 114 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2704,6 +2802,252 @@ public Builder clearExampleQueries() { return exampleQueriesBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage, + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.Builder, + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessageOrBuilder> + clarificationBuilder_; + + /** + * + * + *
              +     * Optional. A message containing clarification questions.
              +     * 
              + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the clarification field is set. + */ + @java.lang.Override + public boolean hasClarification() { + return kindCase_ == 14; + } + + /** + * + * + *
              +     * Optional. A message containing clarification questions.
              +     * 
              + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clarification. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage getClarification() { + if (clarificationBuilder_ == null) { + if (kindCase_ == 14) { + return (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) kind_; + } + return com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage + .getDefaultInstance(); + } else { + if (kindCase_ == 14) { + return clarificationBuilder_.getMessage(); + } + return com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage + .getDefaultInstance(); + } + } + + /** + * + * + *
              +     * Optional. A message containing clarification questions.
              +     * 
              + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setClarification( + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage value) { + if (clarificationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + clarificationBuilder_.setMessage(value); + } + kindCase_ = 14; + return this; + } + + /** + * + * + *
              +     * Optional. A message containing clarification questions.
              +     * 
              + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setClarification( + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.Builder builderForValue) { + if (clarificationBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + clarificationBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 14; + return this; + } + + /** + * + * + *
              +     * Optional. A message containing clarification questions.
              +     * 
              + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeClarification( + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage value) { + if (clarificationBuilder_ == null) { + if (kindCase_ == 14 + && kind_ + != com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage + .getDefaultInstance()) { + kind_ = + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.newBuilder( + (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) kind_) + .mergeFrom(value) + .buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 14) { + clarificationBuilder_.mergeFrom(value); + } else { + clarificationBuilder_.setMessage(value); + } + } + kindCase_ = 14; + return this; + } + + /** + * + * + *
              +     * Optional. A message containing clarification questions.
              +     * 
              + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearClarification() { + if (clarificationBuilder_ == null) { + if (kindCase_ == 14) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 14) { + kindCase_ = 0; + kind_ = null; + } + clarificationBuilder_.clear(); + } + return this; + } + + /** + * + * + *
              +     * Optional. A message containing clarification questions.
              +     * 
              + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.Builder + getClarificationBuilder() { + return internalGetClarificationFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Optional. A message containing clarification questions.
              +     * 
              + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ClarificationMessageOrBuilder + getClarificationOrBuilder() { + if ((kindCase_ == 14) && (clarificationBuilder_ != null)) { + return clarificationBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 14) { + return (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) kind_; + } + return com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage + .getDefaultInstance(); + } + } + + /** + * + * + *
              +     * Optional. A message containing clarification questions.
              +     * 
              + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage, + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.Builder, + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessageOrBuilder> + internalGetClarificationFieldBuilder() { + if (clarificationBuilder_ == null) { + if (!(kindCase_ == 14)) { + kind_ = + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.getDefaultInstance(); + } + clarificationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage, + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.Builder, + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessageOrBuilder>( + (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 14; + onChanged(); + return clarificationBuilder_; + } + private int groupId_; /** @@ -2721,7 +3065,7 @@ public Builder clearExampleQueries() { */ @java.lang.Override public boolean hasGroupId() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -2759,7 +3103,7 @@ public int getGroupId() { public Builder setGroupId(int value) { groupId_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2778,7 +3122,7 @@ public Builder setGroupId(int value) { * @return This builder for chaining. */ public Builder clearGroupId() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); groupId_ = 0; onChanged(); return this; diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessageOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessageOrBuilder.java index 90de3e0a8c99..83391c3ef257 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessageOrBuilder.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessageOrBuilder.java @@ -291,6 +291,50 @@ public interface SystemMessageOrBuilder */ com.google.cloud.geminidataanalytics.v1beta.ExampleQueriesOrBuilder getExampleQueriesOrBuilder(); + /** + * + * + *
              +   * Optional. A message containing clarification questions.
              +   * 
              + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the clarification field is set. + */ + boolean hasClarification(); + + /** + * + * + *
              +   * Optional. A message containing clarification questions.
              +   * 
              + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clarification. + */ + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage getClarification(); + + /** + * + * + *
              +   * Optional. A message containing clarification questions.
              +   * 
              + * + * + * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessageOrBuilder + getClarificationOrBuilder(); + /** * * diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessage.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessage.java index 0b820ddd9c2b..b2732af06477 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessage.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessage.java @@ -54,6 +54,7 @@ private TextMessage(com.google.protobuf.GeneratedMessage.Builder builder) { private TextMessage() { parts_ = com.google.protobuf.LazyStringArrayList.emptyList(); textType_ = 0; + thoughtSignature_ = com.google.protobuf.ByteString.EMPTY; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -105,7 +106,7 @@ public enum TextType implements com.google.protobuf.ProtocolMessageEnum { * * *
              -     * The text is a thinking plan generated by the thinking tool.
              +     * The text is a thought from the model.
                    * 
              * * THOUGHT = 2; @@ -164,7 +165,7 @@ public enum TextType implements com.google.protobuf.ProtocolMessageEnum { * * *
              -     * The text is a thinking plan generated by the thinking tool.
              +     * The text is a thought from the model.
                    * 
              * * THOUGHT = 2; @@ -384,6 +385,26 @@ public com.google.cloud.geminidataanalytics.v1beta.TextMessage.TextType getTextT : result; } + public static final int THOUGHT_SIGNATURE_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString thoughtSignature_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
              +   * Optional. An opaque signature for a thought so it can be reused in
              +   * subsequent requests.
              +   * 
              + * + * bytes thought_signature = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The thoughtSignature. + */ + @java.lang.Override + public com.google.protobuf.ByteString getThoughtSignature() { + return thoughtSignature_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -406,6 +427,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(2, textType_); } + if (!thoughtSignature_.isEmpty()) { + output.writeBytes(3, thoughtSignature_); + } getUnknownFields().writeTo(output); } @@ -428,6 +452,9 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, textType_); } + if (!thoughtSignature_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, thoughtSignature_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -446,6 +473,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPartsList().equals(other.getPartsList())) return false; if (textType_ != other.textType_) return false; + if (!getThoughtSignature().equals(other.getThoughtSignature())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -463,6 +491,8 @@ public int hashCode() { } hash = (37 * hash) + TEXT_TYPE_FIELD_NUMBER; hash = (53 * hash) + textType_; + hash = (37 * hash) + THOUGHT_SIGNATURE_FIELD_NUMBER; + hash = (53 * hash) + getThoughtSignature().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -606,6 +636,7 @@ public Builder clear() { bitField0_ = 0; parts_ = com.google.protobuf.LazyStringArrayList.emptyList(); textType_ = 0; + thoughtSignature_ = com.google.protobuf.ByteString.EMPTY; return this; } @@ -649,6 +680,9 @@ private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.TextMessa if (((from_bitField0_ & 0x00000002) != 0)) { result.textType_ = textType_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.thoughtSignature_ = thoughtSignature_; + } } @java.lang.Override @@ -677,6 +711,9 @@ public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.TextMessage if (other.textType_ != 0) { setTextTypeValue(other.getTextTypeValue()); } + if (!other.getThoughtSignature().isEmpty()) { + setThoughtSignature(other.getThoughtSignature()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -716,6 +753,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 16 + case 26: + { + thoughtSignature_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1026,6 +1069,67 @@ public Builder clearTextType() { return this; } + private com.google.protobuf.ByteString thoughtSignature_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
              +     * Optional. An opaque signature for a thought so it can be reused in
              +     * subsequent requests.
              +     * 
              + * + * bytes thought_signature = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The thoughtSignature. + */ + @java.lang.Override + public com.google.protobuf.ByteString getThoughtSignature() { + return thoughtSignature_; + } + + /** + * + * + *
              +     * Optional. An opaque signature for a thought so it can be reused in
              +     * subsequent requests.
              +     * 
              + * + * bytes thought_signature = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The thoughtSignature to set. + * @return This builder for chaining. + */ + public Builder setThoughtSignature(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + thoughtSignature_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. An opaque signature for a thought so it can be reused in
              +     * subsequent requests.
              +     * 
              + * + * bytes thought_signature = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearThoughtSignature() { + bitField0_ = (bitField0_ & ~0x00000004); + thoughtSignature_ = getDefaultInstance().getThoughtSignature(); + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.TextMessage) } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessageOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessageOrBuilder.java index 213b06a73a69..93b9e0996ae3 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessageOrBuilder.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessageOrBuilder.java @@ -109,4 +109,18 @@ public interface TextMessageOrBuilder * @return The textType. */ com.google.cloud.geminidataanalytics.v1beta.TextMessage.TextType getTextType(); + + /** + * + * + *
              +   * Optional. An opaque signature for a thought so it can be reused in
              +   * subsequent requests.
              +   * 
              + * + * bytes thought_signature = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The thoughtSignature. + */ + com.google.protobuf.ByteString getThoughtSignature(); } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_chat_service.proto b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_chat_service.proto index 0502a6ebeabb..a9cc7ca72374 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_chat_service.proto +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_chat_service.proto @@ -458,6 +458,10 @@ message SystemMessage { // Optional. A message containing example queries. ExampleQueries example_queries = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A message containing clarification questions. + ClarificationMessage clarification = 14 + [(google.api.field_behavior) = OPTIONAL]; } // Identifies the group that the event belongs to. Similar events are deemed @@ -476,7 +480,7 @@ message TextMessage { // The text is a final response to the user question. FINAL_RESPONSE = 1; - // The text is a thinking plan generated by the thinking tool. + // The text is a thought from the model. THOUGHT = 2; // The text is an informational message about the agent's progress, such as @@ -492,6 +496,10 @@ message TextMessage { // Optional. The type of the text message. TextType text_type = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An opaque signature for a thought so it can be reused in + // subsequent requests. + bytes thought_signature = 3 [(google.api.field_behavior) = OPTIONAL]; } // A message produced during schema resolution. @@ -583,6 +591,16 @@ message DataResult { // are represented as lists or structs. repeated google.protobuf.Struct data = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Formatted representation of the data, when applicable. + // Each row is a struct that directly corresponds to the row at the same index + // within the `data` field. Its values are string representations of the + // original data, formatted according to data source specifications (e.g., + // "$1,234.56" for currency). Columns without formatting will default to + // their raw value representation. If no columns have formatting rules, this + // field will be empty. + repeated google.protobuf.Struct formatted_data = 6 + [(google.api.field_behavior) = OPTIONAL]; } // A BigQuery job executed by the system. @@ -731,6 +749,58 @@ message ErrorMessage { string text = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Represents a single question to the user to help clarify their query. +message ClarificationQuestion { + // The selection mode for the clarification question. + enum SelectionMode { + // Unspecified selection mode. + SELECTION_MODE_UNSPECIFIED = 0; + + // The user can select only one option. + SINGLE_SELECT = 1; + + // The user can select multiple options. + MULTI_SELECT = 2; + } + + // The type of clarification question. + // This enum may be extended with new values in the future. + enum ClarificationQuestionType { + // Unspecified clarification question type. + CLARIFICATION_QUESTION_TYPE_UNSPECIFIED = 0; + + // The clarification question is for filter values. + FILTER_VALUES = 1; + + // The clarification question is for data fields. This is a generic term + // encompassing SQL columns, Looker fields (dimensions/measures), or + // nested data structure properties. + FIELDS = 2; + } + + // Required. The natural language question to ask the user. + string question = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The selection mode for this question. + SelectionMode selection_mode = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. A list of distinct options for the user to choose from. + // The number of options is limited to a maximum of 5. + repeated string options = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The type of clarification question. + ClarificationQuestionType clarification_question_type = 4 + [(google.api.field_behavior) = OPTIONAL]; +} + +// A message of questions to help clarify the user's query. This is returned +// when the system cannot confidently answer the user's question. +message ClarificationMessage { + // Required. A batch of clarification questions to ask the user. + repeated ClarificationQuestion questions = 1 + [(google.api.field_behavior) = REQUIRED]; +} + // A message containing derived and authored example queries. message ExampleQueries { // Optional. A list of derived and authored example queries, providing diff --git a/java-gke-backup/README.md b/java-gke-backup/README.md index 5d93df1f9836..2d48fb65e797 100644 --- a/java-gke-backup/README.md +++ b/java-gke-backup/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gke-backup - 0.81.0 + 0.82.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-backup:0.81.0' +implementation 'com.google.cloud:google-cloud-gke-backup:0.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-backup" % "0.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-backup" % "0.82.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gke-backup/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gke-backup.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-backup/0.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-backup/0.82.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gke-backup/google-cloud-gke-backup-bom/pom.xml b/java-gke-backup/google-cloud-gke-backup-bom/pom.xml index aa47577680c5..e713433dad2c 100644 --- a/java-gke-backup/google-cloud-gke-backup-bom/pom.xml +++ b/java-gke-backup/google-cloud-gke-backup-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-gke-backup-bom - 0.83.0-SNAPSHOT + 0.84.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-gke-backup - 0.83.0-SNAPSHOT + 0.84.0 com.google.api.grpc grpc-google-cloud-gke-backup-v1 - 0.83.0-SNAPSHOT + 0.84.0 com.google.api.grpc proto-google-cloud-gke-backup-v1 - 0.83.0-SNAPSHOT + 0.84.0 diff --git a/java-gke-backup/google-cloud-gke-backup/pom.xml b/java-gke-backup/google-cloud-gke-backup/pom.xml index 9b054353306a..519a89e53441 100644 --- a/java-gke-backup/google-cloud-gke-backup/pom.xml +++ b/java-gke-backup/google-cloud-gke-backup/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-gke-backup - 0.83.0-SNAPSHOT + 0.84.0 jar Google Backup for GKE Backup for GKE is a service for backing up and restoring workloads in GKE. com.google.cloud google-cloud-gke-backup-parent - 0.83.0-SNAPSHOT + 0.84.0 google-cloud-gke-backup diff --git a/java-gke-backup/grpc-google-cloud-gke-backup-v1/pom.xml b/java-gke-backup/grpc-google-cloud-gke-backup-v1/pom.xml index 00f498247af5..ce6c2e819bab 100644 --- a/java-gke-backup/grpc-google-cloud-gke-backup-v1/pom.xml +++ b/java-gke-backup/grpc-google-cloud-gke-backup-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gke-backup-v1 - 0.83.0-SNAPSHOT + 0.84.0 grpc-google-cloud-gke-backup-v1 GRPC library for google-cloud-gke-backup com.google.cloud google-cloud-gke-backup-parent - 0.83.0-SNAPSHOT + 0.84.0 diff --git a/java-gke-backup/pom.xml b/java-gke-backup/pom.xml index 99a964bbc47d..8e0e6a0b8631 100644 --- a/java-gke-backup/pom.xml +++ b/java-gke-backup/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-gke-backup-parent pom - 0.83.0-SNAPSHOT + 0.84.0 Google Backup for GKE Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-gke-backup - 0.83.0-SNAPSHOT + 0.84.0 com.google.api.grpc grpc-google-cloud-gke-backup-v1 - 0.83.0-SNAPSHOT + 0.84.0 com.google.api.grpc proto-google-cloud-gke-backup-v1 - 0.83.0-SNAPSHOT + 0.84.0 diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/pom.xml b/java-gke-backup/proto-google-cloud-gke-backup-v1/pom.xml index 9085441c783d..077c17993da6 100644 --- a/java-gke-backup/proto-google-cloud-gke-backup-v1/pom.xml +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gke-backup-v1 - 0.83.0-SNAPSHOT + 0.84.0 proto-google-cloud-gke-backup-v1 Proto library for google-cloud-gke-backup com.google.cloud google-cloud-gke-backup-parent - 0.83.0-SNAPSHOT + 0.84.0 diff --git a/java-gke-connect-gateway/README.md b/java-gke-connect-gateway/README.md index 82e99dfd1de3..2b640f14f0b7 100644 --- a/java-gke-connect-gateway/README.md +++ b/java-gke-connect-gateway/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gke-connect-gateway - 0.83.0 + 0.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-connect-gateway:0.83.0' +implementation 'com.google.cloud:google-cloud-gke-connect-gateway:0.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-connect-gateway" % "0.83.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-connect-gateway" % "0.84.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gke-connect-gateway/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gke-connect-gateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-connect-gateway/0.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-connect-gateway/0.84.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gke-connect-gateway/google-cloud-gke-connect-gateway-bom/pom.xml b/java-gke-connect-gateway/google-cloud-gke-connect-gateway-bom/pom.xml index 0b50b2411d1c..a376bdf428d5 100644 --- a/java-gke-connect-gateway/google-cloud-gke-connect-gateway-bom/pom.xml +++ b/java-gke-connect-gateway/google-cloud-gke-connect-gateway-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-gke-connect-gateway-bom - 0.85.0-SNAPSHOT + 0.86.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,12 +27,12 @@ com.google.cloud google-cloud-gke-connect-gateway - 0.85.0-SNAPSHOT + 0.86.0 com.google.api.grpc proto-google-cloud-gke-connect-gateway-v1beta1 - 0.85.0-SNAPSHOT + 0.86.0 diff --git a/java-gke-connect-gateway/google-cloud-gke-connect-gateway/pom.xml b/java-gke-connect-gateway/google-cloud-gke-connect-gateway/pom.xml index 14b1a8ff07b6..6f88b4b1569c 100644 --- a/java-gke-connect-gateway/google-cloud-gke-connect-gateway/pom.xml +++ b/java-gke-connect-gateway/google-cloud-gke-connect-gateway/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-gke-connect-gateway - 0.85.0-SNAPSHOT + 0.86.0 jar Google Connect Gateway API Connect Gateway API builds on the power of fleets to let Anthos users connect to and run commands against registered Anthos clusters in a simple, consistent, and secured way, whether the clusters are on Google Cloud, other public clouds, or on premises, and makes it easier to automate DevOps processes across all your clusters. com.google.cloud google-cloud-gke-connect-gateway-parent - 0.85.0-SNAPSHOT + 0.86.0 google-cloud-gke-connect-gateway diff --git a/java-gke-connect-gateway/pom.xml b/java-gke-connect-gateway/pom.xml index 8afffa1a0afd..83fbb1c9cd66 100644 --- a/java-gke-connect-gateway/pom.xml +++ b/java-gke-connect-gateway/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-gke-connect-gateway-parent pom - 0.85.0-SNAPSHOT + 0.86.0 Google Connect Gateway API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,12 +29,12 @@ com.google.cloud google-cloud-gke-connect-gateway - 0.85.0-SNAPSHOT + 0.86.0 com.google.api.grpc proto-google-cloud-gke-connect-gateway-v1beta1 - 0.85.0-SNAPSHOT + 0.86.0 diff --git a/java-gke-connect-gateway/proto-google-cloud-gke-connect-gateway-v1beta1/pom.xml b/java-gke-connect-gateway/proto-google-cloud-gke-connect-gateway-v1beta1/pom.xml index 307efcffb178..f8897e8c4dbe 100644 --- a/java-gke-connect-gateway/proto-google-cloud-gke-connect-gateway-v1beta1/pom.xml +++ b/java-gke-connect-gateway/proto-google-cloud-gke-connect-gateway-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gke-connect-gateway-v1beta1 - 0.85.0-SNAPSHOT + 0.86.0 proto-google-cloud-gke-connect-gateway-v1beta1 Proto library for google-cloud-gke-connect-gateway com.google.cloud google-cloud-gke-connect-gateway-parent - 0.85.0-SNAPSHOT + 0.86.0 diff --git a/java-gke-multi-cloud/README.md b/java-gke-multi-cloud/README.md index 68f4bc422970..f3cde216ef51 100644 --- a/java-gke-multi-cloud/README.md +++ b/java-gke-multi-cloud/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gke-multi-cloud - 0.81.0 + 0.82.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-multi-cloud:0.81.0' +implementation 'com.google.cloud:google-cloud-gke-multi-cloud:0.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-multi-cloud" % "0.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-multi-cloud" % "0.82.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gke-multi-cloud/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gke-multi-cloud.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-multi-cloud/0.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-multi-cloud/0.82.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud-bom/pom.xml b/java-gke-multi-cloud/google-cloud-gke-multi-cloud-bom/pom.xml index 6f72f438af2a..74233560d172 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud-bom/pom.xml +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-gke-multi-cloud-bom - 0.83.0-SNAPSHOT + 0.84.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-gke-multi-cloud - 0.83.0-SNAPSHOT + 0.84.0 com.google.api.grpc grpc-google-cloud-gke-multi-cloud-v1 - 0.83.0-SNAPSHOT + 0.84.0 com.google.api.grpc proto-google-cloud-gke-multi-cloud-v1 - 0.83.0-SNAPSHOT + 0.84.0 diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/pom.xml b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/pom.xml index d602436be483..9bb927b6b221 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/pom.xml +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-gke-multi-cloud - 0.83.0-SNAPSHOT + 0.84.0 jar Google Anthos Multicloud Anthos Multicloud enables you to provision and manage GKE clusters running on AWS and Azure infrastructure through a centralized Google Cloud backed control plane. com.google.cloud google-cloud-gke-multi-cloud-parent - 0.83.0-SNAPSHOT + 0.84.0 google-cloud-gke-multi-cloud diff --git a/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/pom.xml b/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/pom.xml index 107cc6ed2cce..1d49ec2f8fa5 100644 --- a/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/pom.xml +++ b/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gke-multi-cloud-v1 - 0.83.0-SNAPSHOT + 0.84.0 grpc-google-cloud-gke-multi-cloud-v1 GRPC library for google-cloud-gke-multi-cloud com.google.cloud google-cloud-gke-multi-cloud-parent - 0.83.0-SNAPSHOT + 0.84.0 diff --git a/java-gke-multi-cloud/pom.xml b/java-gke-multi-cloud/pom.xml index 80f1433be1c7..fe63a35c88d0 100644 --- a/java-gke-multi-cloud/pom.xml +++ b/java-gke-multi-cloud/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-gke-multi-cloud-parent pom - 0.83.0-SNAPSHOT + 0.84.0 Google Anthos Multicloud Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-gke-multi-cloud - 0.83.0-SNAPSHOT + 0.84.0 com.google.api.grpc grpc-google-cloud-gke-multi-cloud-v1 - 0.83.0-SNAPSHOT + 0.84.0 com.google.api.grpc proto-google-cloud-gke-multi-cloud-v1 - 0.83.0-SNAPSHOT + 0.84.0 diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/pom.xml b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/pom.xml index c67e56c71dc1..91145ac6d6e3 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/pom.xml +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gke-multi-cloud-v1 - 0.83.0-SNAPSHOT + 0.84.0 proto-google-cloud-gke-multi-cloud-v1 Proto library for google-cloud-gke-multi-cloud com.google.cloud google-cloud-gke-multi-cloud-parent - 0.83.0-SNAPSHOT + 0.84.0 diff --git a/java-gkehub/README.md b/java-gkehub/README.md index fe1f320d6631..ba1f98691569 100644 --- a/java-gkehub/README.md +++ b/java-gkehub/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gkehub - 1.82.0 + 1.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gkehub:1.82.0' +implementation 'com.google.cloud:google-cloud-gkehub:1.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gkehub" % "1.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gkehub" % "1.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gkehub/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gkehub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkehub/1.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkehub/1.83.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gkehub/google-cloud-gkehub-bom/pom.xml b/java-gkehub/google-cloud-gkehub-bom/pom.xml index 4504b5bb32f3..3775e46ae65f 100644 --- a/java-gkehub/google-cloud-gkehub-bom/pom.xml +++ b/java-gkehub/google-cloud-gkehub-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-gkehub-bom - 1.84.0-SNAPSHOT + 1.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,47 +27,47 @@ com.google.cloud google-cloud-gkehub - 1.84.0-SNAPSHOT + 1.85.0 com.google.api.grpc grpc-google-cloud-gkehub-v1beta1 - 0.90.0-SNAPSHOT + 0.91.0 com.google.api.grpc grpc-google-cloud-gkehub-v1 - 1.84.0-SNAPSHOT + 1.85.0 com.google.api.grpc grpc-google-cloud-gkehub-v1alpha - 0.90.0-SNAPSHOT + 0.91.0 com.google.api.grpc grpc-google-cloud-gkehub-v1beta - 0.90.0-SNAPSHOT + 0.91.0 com.google.api.grpc proto-google-cloud-gkehub-v1beta1 - 0.90.0-SNAPSHOT + 0.91.0 com.google.api.grpc proto-google-cloud-gkehub-v1 - 1.84.0-SNAPSHOT + 1.85.0 com.google.api.grpc proto-google-cloud-gkehub-v1alpha - 0.90.0-SNAPSHOT + 0.91.0 com.google.api.grpc proto-google-cloud-gkehub-v1beta - 0.90.0-SNAPSHOT + 0.91.0 diff --git a/java-gkehub/google-cloud-gkehub/pom.xml b/java-gkehub/google-cloud-gkehub/pom.xml index e7126661cefb..a600352f80b6 100644 --- a/java-gkehub/google-cloud-gkehub/pom.xml +++ b/java-gkehub/google-cloud-gkehub/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-gkehub - 1.84.0-SNAPSHOT + 1.85.0 jar Google GKE Hub API provides a unified way to work with Kubernetes clusters as part of Anthos, extending GKE to work in multiple environments. You have consistent, unified, and secure infrastructure, cluster, and container management, whether you're using Anthos on Google Cloud (with traditional GKE), hybrid cloud, or multiple public clouds. com.google.cloud google-cloud-gkehub-parent - 1.84.0-SNAPSHOT + 1.85.0 google-cloud-gkehub diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java index 6dbef3a33296..3c40b975a666 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java @@ -105,6 +105,26 @@ * * * + *

              ListBoundMemberships + *

              Lists Memberships bound to a Scope. The response includes relevant Memberships from all regions. + * + *

              Request object method variants only take one parameter, a request object, which must be constructed before the call.

              + *
                + *
              • listBoundMemberships(ListBoundMembershipsRequest request) + *

              + *

              "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

              + *
                + *
              • listBoundMemberships(ScopeName scopeName) + *

              • listBoundMemberships(String scopeName) + *

              + *

              Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

              + *
                + *
              • listBoundMembershipsPagedCallable() + *

              • listBoundMembershipsCallable() + *

              + * + * + * *

              ListFeatures *

              Lists Features in a given project and location. * @@ -299,267 +319,6018 @@ *

            * * - * - * - *

            See the individual methods for example code. - * - *

            Many parameters require resource names to be formatted in a particular way. To assist with - * these names, this class includes a format method for each type of name, and additionally a parse - * method to extract the individual identifiers contained within names that are returned. - * - *

            This class can be customized by passing in a custom instance of GkeHubSettings to create(). - * For example: - * - *

            To customize credentials: - * - *

            {@code
            - * // This snippet has been automatically generated and should be regarded as a code template only.
            - * // It will require modifications to work:
            - * // - It may require correct/in-range values for request initialization.
            - * // - It may require specifying regional endpoints when creating the service client as shown in
            - * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            - * GkeHubSettings gkeHubSettings =
            - *     GkeHubSettings.newBuilder()
            - *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
            - *         .build();
            - * GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings);
            - * }
            - * - *

            To customize the endpoint: - * - *

            {@code
            - * // This snippet has been automatically generated and should be regarded as a code template only.
            - * // It will require modifications to work:
            - * // - It may require correct/in-range values for request initialization.
            - * // - It may require specifying regional endpoints when creating the service client as shown in
            - * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            - * GkeHubSettings gkeHubSettings = GkeHubSettings.newBuilder().setEndpoint(myEndpoint).build();
            - * GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings);
            - * }
            - * - *

            To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over - * the wire: - * - *

            {@code
            - * // This snippet has been automatically generated and should be regarded as a code template only.
            - * // It will require modifications to work:
            - * // - It may require correct/in-range values for request initialization.
            - * // - It may require specifying regional endpoints when creating the service client as shown in
            - * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            - * GkeHubSettings gkeHubSettings = GkeHubSettings.newHttpJsonBuilder().build();
            - * GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings);
            - * }
            - * - *

            Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@Generated("by gapic-generator-java") -public class GkeHubClient implements BackgroundResource { - private final GkeHubSettings settings; - private final GkeHubStub stub; - private final OperationsClient httpJsonOperationsClient; - private final com.google.longrunning.OperationsClient operationsClient; - - /** Constructs an instance of GkeHubClient with default settings. */ - public static final GkeHubClient create() throws IOException { - return create(GkeHubSettings.newBuilder().build()); - } - - /** - * Constructs an instance of GkeHubClient, using the given settings. The channels are created - * based on the settings passed in, or defaults for any settings that are not set. - */ - public static final GkeHubClient create(GkeHubSettings settings) throws IOException { - return new GkeHubClient(settings); - } - - /** - * Constructs an instance of GkeHubClient, using the given stub for making calls. This is for - * advanced usage - prefer using create(GkeHubSettings). - */ - public static final GkeHubClient create(GkeHubStub stub) { - return new GkeHubClient(stub); - } - - /** - * Constructs an instance of GkeHubClient, using the given settings. This is protected so that it - * is easy to make a subclass, but otherwise, the static factory methods should be preferred. - */ - protected GkeHubClient(GkeHubSettings settings) throws IOException { - this.settings = settings; - this.stub = ((GkeHubStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - protected GkeHubClient(GkeHubStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - public final GkeHubSettings getSettings() { - return settings; - } - - public GkeHubStub getStub() { - return stub; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - public final com.google.longrunning.OperationsClient getOperationsClient() { - return operationsClient; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - @BetaApi - public final OperationsClient getHttpJsonOperationsClient() { - return httpJsonOperationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Memberships in a given project and location. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            -   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
            -   *   for (Membership element : gkeHubClient.listMemberships(parent).iterateAll()) {
            -   *     // doThingsWith(element);
            -   *   }
            -   * }
            -   * }
            - * - * @param parent Required. The parent (project and location) where the Memberships will be listed. - * Specified in the format `projects/*/locations/*`. `projects/*/locations/-` list - * memberships in all the regions. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListMembershipsPagedResponse listMemberships(LocationName parent) { - ListMembershipsRequest request = - ListMembershipsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listMemberships(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Memberships in a given project and location. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            -   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
            -   *   for (Membership element : gkeHubClient.listMemberships(parent).iterateAll()) {
            -   *     // doThingsWith(element);
            -   *   }
            -   * }
            -   * }
            - * - * @param parent Required. The parent (project and location) where the Memberships will be listed. - * Specified in the format `projects/*/locations/*`. `projects/*/locations/-` list - * memberships in all the regions. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListMembershipsPagedResponse listMemberships(String parent) { - ListMembershipsRequest request = ListMembershipsRequest.newBuilder().setParent(parent).build(); - return listMemberships(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Memberships in a given project and location. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            -   *   ListMembershipsRequest request =
            -   *       ListMembershipsRequest.newBuilder()
            -   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            -   *           .setPageSize(883849137)
            -   *           .setPageToken("pageToken873572522")
            -   *           .setFilter("filter-1274492040")
            -   *           .setOrderBy("orderBy-1207110587")
            -   *           .build();
            -   *   for (Membership element : gkeHubClient.listMemberships(request).iterateAll()) {
            -   *     // doThingsWith(element);
            -   *   }
            -   * }
            -   * }
            - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListMembershipsPagedResponse listMemberships(ListMembershipsRequest request) { - return listMembershipsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Memberships in a given project and location. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            -   *   ListMembershipsRequest request =
            -   *       ListMembershipsRequest.newBuilder()
            -   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            -   *           .setPageSize(883849137)
            -   *           .setPageToken("pageToken873572522")
            -   *           .setFilter("filter-1274492040")
            -   *           .setOrderBy("orderBy-1207110587")
            + *    
            + *      

            CreateFleet + *

            Creates a fleet. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • createFleetAsync(CreateFleetRequest request) + *

            + *

            Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

            + *
              + *
            • createFleetAsync(LocationName parent, Fleet fleet) + *

            • createFleetAsync(String parent, Fleet fleet) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • createFleetOperationCallable() + *

            • createFleetCallable() + *

            + * + * + * + *

            GetFleet + *

            Returns the details of a fleet. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • getFleet(GetFleetRequest request) + *

            + *

            "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

            + *
              + *
            • getFleet(FleetName name) + *

            • getFleet(String name) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • getFleetCallable() + *

            + * + * + * + *

            UpdateFleet + *

            Updates a fleet. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • updateFleetAsync(UpdateFleetRequest request) + *

            + *

            Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

            + *
              + *
            • updateFleetAsync(Fleet fleet, FieldMask updateMask) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • updateFleetOperationCallable() + *

            • updateFleetCallable() + *

            + * + * + * + *

            DeleteFleet + *

            Removes a Fleet. There must be no memberships remaining in the Fleet. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • deleteFleetAsync(DeleteFleetRequest request) + *

            + *

            Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

            + *
              + *
            • deleteFleetAsync(FleetName name) + *

            • deleteFleetAsync(String name) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • deleteFleetOperationCallable() + *

            • deleteFleetCallable() + *

            + * + * + * + *

            ListFleets + *

            Returns all fleets within an organization or a project that the caller has access to. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • listFleets(ListFleetsRequest request) + *

            + *

            "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

            + *
              + *
            • listFleets(LocationName parent) + *

            • listFleets(String parent) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • listFleetsPagedCallable() + *

            • listFleetsCallable() + *

            + * + * + * + *

            GetScopeNamespace + *

            Returns the details of a fleet namespace. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • getScopeNamespace(GetScopeNamespaceRequest request) + *

            + *

            "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

            + *
              + *
            • getScopeNamespace(NamespaceName name) + *

            • getScopeNamespace(String name) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • getScopeNamespaceCallable() + *

            + * + * + * + *

            CreateScopeNamespace + *

            Creates a fleet namespace. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • createScopeNamespaceAsync(CreateScopeNamespaceRequest request) + *

            + *

            Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

            + *
              + *
            • createScopeNamespaceAsync(ScopeName parent, Namespace scopeNamespace, String scopeNamespaceId) + *

            • createScopeNamespaceAsync(String parent, Namespace scopeNamespace, String scopeNamespaceId) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • createScopeNamespaceOperationCallable() + *

            • createScopeNamespaceCallable() + *

            + * + * + * + *

            UpdateScopeNamespace + *

            Updates a fleet namespace. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • updateScopeNamespaceAsync(UpdateScopeNamespaceRequest request) + *

            + *

            Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

            + *
              + *
            • updateScopeNamespaceAsync(Namespace scopeNamespace, FieldMask updateMask) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • updateScopeNamespaceOperationCallable() + *

            • updateScopeNamespaceCallable() + *

            + * + * + * + *

            DeleteScopeNamespace + *

            Deletes a fleet namespace. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • deleteScopeNamespaceAsync(DeleteScopeNamespaceRequest request) + *

            + *

            Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

            + *
              + *
            • deleteScopeNamespaceAsync(NamespaceName name) + *

            • deleteScopeNamespaceAsync(String name) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • deleteScopeNamespaceOperationCallable() + *

            • deleteScopeNamespaceCallable() + *

            + * + * + * + *

            ListScopeNamespaces + *

            Lists fleet namespaces. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • listScopeNamespaces(ListScopeNamespacesRequest request) + *

            + *

            "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

            + *
              + *
            • listScopeNamespaces(ScopeName parent) + *

            • listScopeNamespaces(String parent) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • listScopeNamespacesPagedCallable() + *

            • listScopeNamespacesCallable() + *

            + * + * + * + *

            GetScopeRBACRoleBinding + *

            Returns the details of a Scope RBACRoleBinding. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • getScopeRBACRoleBinding(GetScopeRBACRoleBindingRequest request) + *

            + *

            "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

            + *
              + *
            • getScopeRBACRoleBinding(RBACRoleBindingName name) + *

            • getScopeRBACRoleBinding(String name) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • getScopeRBACRoleBindingCallable() + *

            + * + * + * + *

            CreateScopeRBACRoleBinding + *

            Creates a Scope RBACRoleBinding. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • createScopeRBACRoleBindingAsync(CreateScopeRBACRoleBindingRequest request) + *

            + *

            Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

            + *
              + *
            • createScopeRBACRoleBindingAsync(MembershipName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) + *

            • createScopeRBACRoleBindingAsync(ScopeName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) + *

            • createScopeRBACRoleBindingAsync(String parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • createScopeRBACRoleBindingOperationCallable() + *

            • createScopeRBACRoleBindingCallable() + *

            + * + * + * + *

            UpdateScopeRBACRoleBinding + *

            Updates a Scope RBACRoleBinding. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • updateScopeRBACRoleBindingAsync(UpdateScopeRBACRoleBindingRequest request) + *

            + *

            Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

            + *
              + *
            • updateScopeRBACRoleBindingAsync(RBACRoleBinding rbacrolebinding, FieldMask updateMask) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • updateScopeRBACRoleBindingOperationCallable() + *

            • updateScopeRBACRoleBindingCallable() + *

            + * + * + * + *

            DeleteScopeRBACRoleBinding + *

            Deletes a Scope RBACRoleBinding. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • deleteScopeRBACRoleBindingAsync(DeleteScopeRBACRoleBindingRequest request) + *

            + *

            Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

            + *
              + *
            • deleteScopeRBACRoleBindingAsync(RBACRoleBindingName name) + *

            • deleteScopeRBACRoleBindingAsync(String name) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • deleteScopeRBACRoleBindingOperationCallable() + *

            • deleteScopeRBACRoleBindingCallable() + *

            + * + * + * + *

            ListScopeRBACRoleBindings + *

            Lists all Scope RBACRoleBindings. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • listScopeRBACRoleBindings(ListScopeRBACRoleBindingsRequest request) + *

            + *

            "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

            + *
              + *
            • listScopeRBACRoleBindings(MembershipName parent) + *

            • listScopeRBACRoleBindings(ScopeName parent) + *

            • listScopeRBACRoleBindings(String parent) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • listScopeRBACRoleBindingsPagedCallable() + *

            • listScopeRBACRoleBindingsCallable() + *

            + * + * + * + *

            GetScope + *

            Returns the details of a Scope. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • getScope(GetScopeRequest request) + *

            + *

            "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

            + *
              + *
            • getScope(ScopeName name) + *

            • getScope(String name) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • getScopeCallable() + *

            + * + * + * + *

            CreateScope + *

            Creates a Scope. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • createScopeAsync(CreateScopeRequest request) + *

            + *

            Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

            + *
              + *
            • createScopeAsync(LocationName parent, Scope scope, String scopeId) + *

            • createScopeAsync(String parent, Scope scope, String scopeId) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • createScopeOperationCallable() + *

            • createScopeCallable() + *

            + * + * + * + *

            UpdateScope + *

            Updates a scopes. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • updateScopeAsync(UpdateScopeRequest request) + *

            + *

            Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

            + *
              + *
            • updateScopeAsync(Scope scope, FieldMask updateMask) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • updateScopeOperationCallable() + *

            • updateScopeCallable() + *

            + * + * + * + *

            DeleteScope + *

            Deletes a Scope. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • deleteScopeAsync(DeleteScopeRequest request) + *

            + *

            Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

            + *
              + *
            • deleteScopeAsync(ScopeName name) + *

            • deleteScopeAsync(String name) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • deleteScopeOperationCallable() + *

            • deleteScopeCallable() + *

            + * + * + * + *

            ListScopes + *

            Lists Scopes. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • listScopes(ListScopesRequest request) + *

            + *

            "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

            + *
              + *
            • listScopes(LocationName parent) + *

            • listScopes(String parent) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • listScopesPagedCallable() + *

            • listScopesCallable() + *

            + * + * + * + *

            ListPermittedScopes + *

            Lists permitted Scopes. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • listPermittedScopes(ListPermittedScopesRequest request) + *

            + *

            "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

            + *
              + *
            • listPermittedScopes(LocationName parent) + *

            • listPermittedScopes(String parent) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • listPermittedScopesPagedCallable() + *

            • listPermittedScopesCallable() + *

            + * + * + * + *

            GetMembershipBinding + *

            Returns the details of a MembershipBinding. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • getMembershipBinding(GetMembershipBindingRequest request) + *

            + *

            "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

            + *
              + *
            • getMembershipBinding(MembershipBindingName name) + *

            • getMembershipBinding(String name) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • getMembershipBindingCallable() + *

            + * + * + * + *

            CreateMembershipBinding + *

            Creates a MembershipBinding. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • createMembershipBindingAsync(CreateMembershipBindingRequest request) + *

            + *

            Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

            + *
              + *
            • createMembershipBindingAsync(MembershipName parent, MembershipBinding membershipBinding, String membershipBindingId) + *

            • createMembershipBindingAsync(String parent, MembershipBinding membershipBinding, String membershipBindingId) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • createMembershipBindingOperationCallable() + *

            • createMembershipBindingCallable() + *

            + * + * + * + *

            UpdateMembershipBinding + *

            Updates a MembershipBinding. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • updateMembershipBindingAsync(UpdateMembershipBindingRequest request) + *

            + *

            Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

            + *
              + *
            • updateMembershipBindingAsync(MembershipBinding membershipBinding, FieldMask updateMask) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • updateMembershipBindingOperationCallable() + *

            • updateMembershipBindingCallable() + *

            + * + * + * + *

            DeleteMembershipBinding + *

            Deletes a MembershipBinding. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • deleteMembershipBindingAsync(DeleteMembershipBindingRequest request) + *

            + *

            Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

            + *
              + *
            • deleteMembershipBindingAsync(MembershipBindingName name) + *

            • deleteMembershipBindingAsync(String name) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • deleteMembershipBindingOperationCallable() + *

            • deleteMembershipBindingCallable() + *

            + * + * + * + *

            ListMembershipBindings + *

            Lists MembershipBindings. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • listMembershipBindings(ListMembershipBindingsRequest request) + *

            + *

            "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

            + *
              + *
            • listMembershipBindings(MembershipName parent) + *

            • listMembershipBindings(String parent) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • listMembershipBindingsPagedCallable() + *

            • listMembershipBindingsCallable() + *

            + * + * + * + *

            GetMembershipRBACRoleBinding + *

            Returns the details of a Membership RBACRoleBinding. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • getMembershipRBACRoleBinding(GetMembershipRBACRoleBindingRequest request) + *

            + *

            "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

            + *
              + *
            • getMembershipRBACRoleBinding(RBACRoleBindingName name) + *

            • getMembershipRBACRoleBinding(String name) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • getMembershipRBACRoleBindingCallable() + *

            + * + * + * + *

            CreateMembershipRBACRoleBinding + *

            Creates a Membership RBACRoleBinding. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • createMembershipRBACRoleBindingAsync(CreateMembershipRBACRoleBindingRequest request) + *

            + *

            Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

            + *
              + *
            • createMembershipRBACRoleBindingAsync(MembershipName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) + *

            • createMembershipRBACRoleBindingAsync(ScopeName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) + *

            • createMembershipRBACRoleBindingAsync(String parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • createMembershipRBACRoleBindingOperationCallable() + *

            • createMembershipRBACRoleBindingCallable() + *

            + * + * + * + *

            UpdateMembershipRBACRoleBinding + *

            Updates a Membership RBACRoleBinding. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • updateMembershipRBACRoleBindingAsync(UpdateMembershipRBACRoleBindingRequest request) + *

            + *

            Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

            + *
              + *
            • updateMembershipRBACRoleBindingAsync(RBACRoleBinding rbacrolebinding, FieldMask updateMask) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • updateMembershipRBACRoleBindingOperationCallable() + *

            • updateMembershipRBACRoleBindingCallable() + *

            + * + * + * + *

            DeleteMembershipRBACRoleBinding + *

            Deletes a Membership RBACRoleBinding. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • deleteMembershipRBACRoleBindingAsync(DeleteMembershipRBACRoleBindingRequest request) + *

            + *

            Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

            + *
              + *
            • deleteMembershipRBACRoleBindingAsync(RBACRoleBindingName name) + *

            • deleteMembershipRBACRoleBindingAsync(String name) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • deleteMembershipRBACRoleBindingOperationCallable() + *

            • deleteMembershipRBACRoleBindingCallable() + *

            + * + * + * + *

            ListMembershipRBACRoleBindings + *

            Lists all Membership RBACRoleBindings. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • listMembershipRBACRoleBindings(ListMembershipRBACRoleBindingsRequest request) + *

            + *

            "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

            + *
              + *
            • listMembershipRBACRoleBindings(MembershipName parent) + *

            • listMembershipRBACRoleBindings(ScopeName parent) + *

            • listMembershipRBACRoleBindings(String parent) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • listMembershipRBACRoleBindingsPagedCallable() + *

            • listMembershipRBACRoleBindingsCallable() + *

            + * + * + * + *

            GenerateMembershipRBACRoleBindingYAML + *

            Generates a YAML of the RBAC policies for the specified RoleBinding and its associated impersonation resources. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • generateMembershipRBACRoleBindingYAML(GenerateMembershipRBACRoleBindingYAMLRequest request) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • generateMembershipRBACRoleBindingYAMLCallable() + *

            + * + * + * + * + *

            See the individual methods for example code. + * + *

            Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

            This class can be customized by passing in a custom instance of GkeHubSettings to create(). + * For example: + * + *

            To customize credentials: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * GkeHubSettings gkeHubSettings =
            + *     GkeHubSettings.newBuilder()
            + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
            + *         .build();
            + * GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings);
            + * }
            + * + *

            To customize the endpoint: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * GkeHubSettings gkeHubSettings = GkeHubSettings.newBuilder().setEndpoint(myEndpoint).build();
            + * GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings);
            + * }
            + * + *

            To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * GkeHubSettings gkeHubSettings = GkeHubSettings.newHttpJsonBuilder().build();
            + * GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings);
            + * }
            + * + *

            Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class GkeHubClient implements BackgroundResource { + private final GkeHubSettings settings; + private final GkeHubStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of GkeHubClient with default settings. */ + public static final GkeHubClient create() throws IOException { + return create(GkeHubSettings.newBuilder().build()); + } + + /** + * Constructs an instance of GkeHubClient, using the given settings. The channels are created + * based on the settings passed in, or defaults for any settings that are not set. + */ + public static final GkeHubClient create(GkeHubSettings settings) throws IOException { + return new GkeHubClient(settings); + } + + /** + * Constructs an instance of GkeHubClient, using the given stub for making calls. This is for + * advanced usage - prefer using create(GkeHubSettings). + */ + public static final GkeHubClient create(GkeHubStub stub) { + return new GkeHubClient(stub); + } + + /** + * Constructs an instance of GkeHubClient, using the given settings. This is protected so that it + * is easy to make a subclass, but otherwise, the static factory methods should be preferred. + */ + protected GkeHubClient(GkeHubSettings settings) throws IOException { + this.settings = settings; + this.stub = ((GkeHubStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected GkeHubClient(GkeHubStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final GkeHubSettings getSettings() { + return settings; + } + + public GkeHubStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Memberships in a given project and location. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
            +   *   for (Membership element : gkeHubClient.listMemberships(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The parent (project and location) where the Memberships will be listed. + * Specified in the format `projects/*/locations/*`. `projects/*/locations/-` list + * memberships in all the regions. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMembershipsPagedResponse listMemberships(LocationName parent) { + ListMembershipsRequest request = + ListMembershipsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listMemberships(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Memberships in a given project and location. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
            +   *   for (Membership element : gkeHubClient.listMemberships(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The parent (project and location) where the Memberships will be listed. + * Specified in the format `projects/*/locations/*`. `projects/*/locations/-` list + * memberships in all the regions. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMembershipsPagedResponse listMemberships(String parent) { + ListMembershipsRequest request = ListMembershipsRequest.newBuilder().setParent(parent).build(); + return listMemberships(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Memberships in a given project and location. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   ListMembershipsRequest request =
            +   *       ListMembershipsRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .setOrderBy("orderBy-1207110587")
            +   *           .build();
            +   *   for (Membership element : gkeHubClient.listMemberships(request).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMembershipsPagedResponse listMemberships(ListMembershipsRequest request) { + return listMembershipsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Memberships in a given project and location. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   ListMembershipsRequest request =
            +   *       ListMembershipsRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .setOrderBy("orderBy-1207110587")
            +   *           .build();
            +   *   ApiFuture future =
            +   *       gkeHubClient.listMembershipsPagedCallable().futureCall(request);
            +   *   // Do something.
            +   *   for (Membership element : future.get().iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + listMembershipsPagedCallable() { + return stub.listMembershipsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Memberships in a given project and location. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   ListMembershipsRequest request =
            +   *       ListMembershipsRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .setOrderBy("orderBy-1207110587")
            +   *           .build();
            +   *   while (true) {
            +   *     ListMembershipsResponse response = gkeHubClient.listMembershipsCallable().call(request);
            +   *     for (Membership element : response.getResourcesList()) {
            +   *       // doThingsWith(element);
            +   *     }
            +   *     String nextPageToken = response.getNextPageToken();
            +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
            +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
            +   *     } else {
            +   *       break;
            +   *     }
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + listMembershipsCallable() { + return stub.listMembershipsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Memberships bound to a Scope. The response includes relevant Memberships from all + * regions. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   ScopeName scopeName = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]");
            +   *   for (Membership element : gkeHubClient.listBoundMemberships(scopeName).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param scopeName Required. Name of the Scope, in the format + * `projects/*/locations/global/scopes/*`, to which the Memberships are bound. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBoundMembershipsPagedResponse listBoundMemberships(ScopeName scopeName) { + ListBoundMembershipsRequest request = + ListBoundMembershipsRequest.newBuilder() + .setScopeName(scopeName == null ? null : scopeName.toString()) + .build(); + return listBoundMemberships(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Memberships bound to a Scope. The response includes relevant Memberships from all + * regions. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   String scopeName = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString();
            +   *   for (Membership element : gkeHubClient.listBoundMemberships(scopeName).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param scopeName Required. Name of the Scope, in the format + * `projects/*/locations/global/scopes/*`, to which the Memberships are bound. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBoundMembershipsPagedResponse listBoundMemberships(String scopeName) { + ListBoundMembershipsRequest request = + ListBoundMembershipsRequest.newBuilder().setScopeName(scopeName).build(); + return listBoundMemberships(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Memberships bound to a Scope. The response includes relevant Memberships from all + * regions. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   ListBoundMembershipsRequest request =
            +   *       ListBoundMembershipsRequest.newBuilder()
            +   *           .setScopeName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
            +   *           .setFilter("filter-1274492040")
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   for (Membership element : gkeHubClient.listBoundMemberships(request).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBoundMembershipsPagedResponse listBoundMemberships( + ListBoundMembershipsRequest request) { + return listBoundMembershipsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Memberships bound to a Scope. The response includes relevant Memberships from all + * regions. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   ListBoundMembershipsRequest request =
            +   *       ListBoundMembershipsRequest.newBuilder()
            +   *           .setScopeName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
            +   *           .setFilter("filter-1274492040")
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   ApiFuture future =
            +   *       gkeHubClient.listBoundMembershipsPagedCallable().futureCall(request);
            +   *   // Do something.
            +   *   for (Membership element : future.get().iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + listBoundMembershipsPagedCallable() { + return stub.listBoundMembershipsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Memberships bound to a Scope. The response includes relevant Memberships from all + * regions. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   ListBoundMembershipsRequest request =
            +   *       ListBoundMembershipsRequest.newBuilder()
            +   *           .setScopeName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
            +   *           .setFilter("filter-1274492040")
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   while (true) {
            +   *     ListBoundMembershipsResponse response =
            +   *         gkeHubClient.listBoundMembershipsCallable().call(request);
            +   *     for (Membership element : response.getMembershipsList()) {
            +   *       // doThingsWith(element);
            +   *     }
            +   *     String nextPageToken = response.getNextPageToken();
            +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
            +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
            +   *     } else {
            +   *       break;
            +   *     }
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + listBoundMembershipsCallable() { + return stub.listBoundMembershipsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Features in a given project and location. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
            +   *   for (Feature element : gkeHubClient.listFeatures(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The parent (project and location) where the Features will be listed. + * Specified in the format `projects/*/locations/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFeaturesPagedResponse listFeatures(LocationName parent) { + ListFeaturesRequest request = + ListFeaturesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listFeatures(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Features in a given project and location. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
            +   *   for (Feature element : gkeHubClient.listFeatures(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The parent (project and location) where the Features will be listed. + * Specified in the format `projects/*/locations/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFeaturesPagedResponse listFeatures(String parent) { + ListFeaturesRequest request = ListFeaturesRequest.newBuilder().setParent(parent).build(); + return listFeatures(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Features in a given project and location. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   ListFeaturesRequest request =
            +   *       ListFeaturesRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .setOrderBy("orderBy-1207110587")
            +   *           .setReturnPartialSuccess(true)
            +   *           .build();
            +   *   for (Feature element : gkeHubClient.listFeatures(request).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest request) { + return listFeaturesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Features in a given project and location. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   ListFeaturesRequest request =
            +   *       ListFeaturesRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .setOrderBy("orderBy-1207110587")
            +   *           .setReturnPartialSuccess(true)
            +   *           .build();
            +   *   ApiFuture future = gkeHubClient.listFeaturesPagedCallable().futureCall(request);
            +   *   // Do something.
            +   *   for (Feature element : future.get().iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + listFeaturesPagedCallable() { + return stub.listFeaturesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Features in a given project and location. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   ListFeaturesRequest request =
            +   *       ListFeaturesRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .setOrderBy("orderBy-1207110587")
            +   *           .setReturnPartialSuccess(true)
            +   *           .build();
            +   *   while (true) {
            +   *     ListFeaturesResponse response = gkeHubClient.listFeaturesCallable().call(request);
            +   *     for (Feature element : response.getResourcesList()) {
            +   *       // doThingsWith(element);
            +   *     }
            +   *     String nextPageToken = response.getNextPageToken();
            +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
            +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
            +   *     } else {
            +   *       break;
            +   *     }
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable listFeaturesCallable() { + return stub.listFeaturesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a Membership. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
            +   *   Membership response = gkeHubClient.getMembership(name);
            +   * }
            +   * }
            + * + * @param name Required. The Membership resource name in the format + * `projects/*/locations/*/memberships/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Membership getMembership(MembershipName name) { + GetMembershipRequest request = + GetMembershipRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getMembership(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a Membership. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString();
            +   *   Membership response = gkeHubClient.getMembership(name);
            +   * }
            +   * }
            + * + * @param name Required. The Membership resource name in the format + * `projects/*/locations/*/memberships/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Membership getMembership(String name) { + GetMembershipRequest request = GetMembershipRequest.newBuilder().setName(name).build(); + return getMembership(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a Membership. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   GetMembershipRequest request =
            +   *       GetMembershipRequest.newBuilder()
            +   *           .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
            +   *           .build();
            +   *   Membership response = gkeHubClient.getMembership(request);
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Membership getMembership(GetMembershipRequest request) { + return getMembershipCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a Membership. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   GetMembershipRequest request =
            +   *       GetMembershipRequest.newBuilder()
            +   *           .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
            +   *           .build();
            +   *   ApiFuture future = gkeHubClient.getMembershipCallable().futureCall(request);
            +   *   // Do something.
            +   *   Membership response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable getMembershipCallable() { + return stub.getMembershipCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Feature. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]");
            +   *   Feature response = gkeHubClient.getFeature(name);
            +   * }
            +   * }
            + * + * @param name Required. The Feature resource name in the format + * `projects/*/locations/*/features/*` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Feature getFeature(FeatureName name) { + GetFeatureRequest request = + GetFeatureRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getFeature(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Feature. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString();
            +   *   Feature response = gkeHubClient.getFeature(name);
            +   * }
            +   * }
            + * + * @param name Required. The Feature resource name in the format + * `projects/*/locations/*/features/*` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Feature getFeature(String name) { + GetFeatureRequest request = GetFeatureRequest.newBuilder().setName(name).build(); + return getFeature(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Feature. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   GetFeatureRequest request =
            +   *       GetFeatureRequest.newBuilder()
            +   *           .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
            +   *           .setReturnPartialSuccess(true)
            +   *           .build();
            +   *   Feature response = gkeHubClient.getFeature(request);
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Feature getFeature(GetFeatureRequest request) { + return getFeatureCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Feature. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   GetFeatureRequest request =
            +   *       GetFeatureRequest.newBuilder()
            +   *           .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
            +   *           .setReturnPartialSuccess(true)
            +   *           .build();
            +   *   ApiFuture future = gkeHubClient.getFeatureCallable().futureCall(request);
            +   *   // Do something.
            +   *   Feature response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable getFeatureCallable() { + return stub.getFeatureCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Membership. + * + *

            **This is currently only supported for GKE clusters on Google Cloud**. To + * register other clusters, follow the instructions at + * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
            +   *   Membership resource = Membership.newBuilder().build();
            +   *   String membershipId = "membershipId517665681";
            +   *   Membership response =
            +   *       gkeHubClient.createMembershipAsync(parent, resource, membershipId).get();
            +   * }
            +   * }
            + * + * @param parent Required. The parent (project and location) where the Memberships will be + * created. Specified in the format `projects/*/locations/*`. + * @param resource Required. The membership to create. + * @param membershipId Required. Client chosen ID for the membership. `membership_id` must be a + * valid RFC 1123 compliant DNS label: + *

            1. At most 63 characters in length 2. It must consist of lower case alphanumeric + * characters or `-` 3. It must start and end with an alphanumeric character + *

            Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum + * length of 63 characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createMembershipAsync( + LocationName parent, Membership resource, String membershipId) { + CreateMembershipRequest request = + CreateMembershipRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setResource(resource) + .setMembershipId(membershipId) + .build(); + return createMembershipAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Membership. + * + *

            **This is currently only supported for GKE clusters on Google Cloud**. To + * register other clusters, follow the instructions at + * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
            +   *   Membership resource = Membership.newBuilder().build();
            +   *   String membershipId = "membershipId517665681";
            +   *   Membership response =
            +   *       gkeHubClient.createMembershipAsync(parent, resource, membershipId).get();
            +   * }
            +   * }
            + * + * @param parent Required. The parent (project and location) where the Memberships will be + * created. Specified in the format `projects/*/locations/*`. + * @param resource Required. The membership to create. + * @param membershipId Required. Client chosen ID for the membership. `membership_id` must be a + * valid RFC 1123 compliant DNS label: + *

            1. At most 63 characters in length 2. It must consist of lower case alphanumeric + * characters or `-` 3. It must start and end with an alphanumeric character + *

            Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum + * length of 63 characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createMembershipAsync( + String parent, Membership resource, String membershipId) { + CreateMembershipRequest request = + CreateMembershipRequest.newBuilder() + .setParent(parent) + .setResource(resource) + .setMembershipId(membershipId) + .build(); + return createMembershipAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Membership. + * + *

            **This is currently only supported for GKE clusters on Google Cloud**. To + * register other clusters, follow the instructions at + * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   CreateMembershipRequest request =
            +   *       CreateMembershipRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setMembershipId("membershipId517665681")
            +   *           .setResource(Membership.newBuilder().build())
            +   *           .setRequestId("requestId693933066")
            +   *           .build();
            +   *   Membership response = gkeHubClient.createMembershipAsync(request).get();
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createMembershipAsync( + CreateMembershipRequest request) { + return createMembershipOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Membership. + * + *

            **This is currently only supported for GKE clusters on Google Cloud**. To + * register other clusters, follow the instructions at + * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   CreateMembershipRequest request =
            +   *       CreateMembershipRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setMembershipId("membershipId517665681")
            +   *           .setResource(Membership.newBuilder().build())
            +   *           .setRequestId("requestId693933066")
            +   *           .build();
            +   *   OperationFuture future =
            +   *       gkeHubClient.createMembershipOperationCallable().futureCall(request);
            +   *   // Do something.
            +   *   Membership response = future.get();
            +   * }
            +   * }
            + */ + public final OperationCallable + createMembershipOperationCallable() { + return stub.createMembershipOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Membership. + * + *

            **This is currently only supported for GKE clusters on Google Cloud**. To + * register other clusters, follow the instructions at + * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   CreateMembershipRequest request =
            +   *       CreateMembershipRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setMembershipId("membershipId517665681")
            +   *           .setResource(Membership.newBuilder().build())
            +   *           .setRequestId("requestId693933066")
            +   *           .build();
            +   *   ApiFuture future = gkeHubClient.createMembershipCallable().futureCall(request);
            +   *   // Do something.
            +   *   Operation response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable createMembershipCallable() { + return stub.createMembershipCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds a new Feature. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
            +   *   Feature resource = Feature.newBuilder().build();
            +   *   String featureId = "featureId-420503887";
            +   *   Feature response = gkeHubClient.createFeatureAsync(parent, resource, featureId).get();
            +   * }
            +   * }
            + * + * @param parent Required. The parent (project and location) where the Feature will be created. + * Specified in the format `projects/*/locations/*`. + * @param resource The Feature resource to create. + * @param featureId The ID of the feature to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createFeatureAsync( + LocationName parent, Feature resource, String featureId) { + CreateFeatureRequest request = + CreateFeatureRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setResource(resource) + .setFeatureId(featureId) + .build(); + return createFeatureAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds a new Feature. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
            +   *   Feature resource = Feature.newBuilder().build();
            +   *   String featureId = "featureId-420503887";
            +   *   Feature response = gkeHubClient.createFeatureAsync(parent, resource, featureId).get();
            +   * }
            +   * }
            + * + * @param parent Required. The parent (project and location) where the Feature will be created. + * Specified in the format `projects/*/locations/*`. + * @param resource The Feature resource to create. + * @param featureId The ID of the feature to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createFeatureAsync( + String parent, Feature resource, String featureId) { + CreateFeatureRequest request = + CreateFeatureRequest.newBuilder() + .setParent(parent) + .setResource(resource) + .setFeatureId(featureId) + .build(); + return createFeatureAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds a new Feature. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   CreateFeatureRequest request =
            +   *       CreateFeatureRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setFeatureId("featureId-420503887")
            +   *           .setResource(Feature.newBuilder().build())
            +   *           .setRequestId("requestId693933066")
            +   *           .build();
            +   *   Feature response = gkeHubClient.createFeatureAsync(request).get();
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createFeatureAsync( + CreateFeatureRequest request) { + return createFeatureOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds a new Feature. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   CreateFeatureRequest request =
            +   *       CreateFeatureRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setFeatureId("featureId-420503887")
            +   *           .setResource(Feature.newBuilder().build())
            +   *           .setRequestId("requestId693933066")
            +   *           .build();
            +   *   OperationFuture future =
            +   *       gkeHubClient.createFeatureOperationCallable().futureCall(request);
            +   *   // Do something.
            +   *   Feature response = future.get();
            +   * }
            +   * }
            + */ + public final OperationCallable + createFeatureOperationCallable() { + return stub.createFeatureOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds a new Feature. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   CreateFeatureRequest request =
            +   *       CreateFeatureRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setFeatureId("featureId-420503887")
            +   *           .setResource(Feature.newBuilder().build())
            +   *           .setRequestId("requestId693933066")
            +   *           .build();
            +   *   ApiFuture future = gkeHubClient.createFeatureCallable().futureCall(request);
            +   *   // Do something.
            +   *   Operation response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable createFeatureCallable() { + return stub.createFeatureCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes a Membership. + * + *

            **This is currently only supported for GKE clusters on Google Cloud**. To + * unregister other clusters, follow the instructions at + * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
            +   *   gkeHubClient.deleteMembershipAsync(name).get();
            +   * }
            +   * }
            + * + * @param name Required. The Membership resource name in the format + * `projects/*/locations/*/memberships/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteMembershipAsync( + MembershipName name) { + DeleteMembershipRequest request = + DeleteMembershipRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteMembershipAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes a Membership. + * + *

            **This is currently only supported for GKE clusters on Google Cloud**. To + * unregister other clusters, follow the instructions at + * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString();
            +   *   gkeHubClient.deleteMembershipAsync(name).get();
            +   * }
            +   * }
            + * + * @param name Required. The Membership resource name in the format + * `projects/*/locations/*/memberships/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteMembershipAsync(String name) { + DeleteMembershipRequest request = DeleteMembershipRequest.newBuilder().setName(name).build(); + return deleteMembershipAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes a Membership. + * + *

            **This is currently only supported for GKE clusters on Google Cloud**. To + * unregister other clusters, follow the instructions at + * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   DeleteMembershipRequest request =
            +   *       DeleteMembershipRequest.newBuilder()
            +   *           .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
            +   *           .setRequestId("requestId693933066")
            +   *           .setForce(true)
            +   *           .build();
            +   *   gkeHubClient.deleteMembershipAsync(request).get();
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteMembershipAsync( + DeleteMembershipRequest request) { + return deleteMembershipOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes a Membership. + * + *

            **This is currently only supported for GKE clusters on Google Cloud**. To + * unregister other clusters, follow the instructions at + * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   DeleteMembershipRequest request =
            +   *       DeleteMembershipRequest.newBuilder()
            +   *           .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
            +   *           .setRequestId("requestId693933066")
            +   *           .setForce(true)
            +   *           .build();
            +   *   OperationFuture future =
            +   *       gkeHubClient.deleteMembershipOperationCallable().futureCall(request);
            +   *   // Do something.
            +   *   future.get();
            +   * }
            +   * }
            + */ + public final OperationCallable + deleteMembershipOperationCallable() { + return stub.deleteMembershipOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes a Membership. + * + *

            **This is currently only supported for GKE clusters on Google Cloud**. To + * unregister other clusters, follow the instructions at + * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   DeleteMembershipRequest request =
            +   *       DeleteMembershipRequest.newBuilder()
            +   *           .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
            +   *           .setRequestId("requestId693933066")
            +   *           .setForce(true)
            +   *           .build();
            +   *   ApiFuture future = gkeHubClient.deleteMembershipCallable().futureCall(request);
            +   *   // Do something.
            +   *   future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable deleteMembershipCallable() { + return stub.deleteMembershipCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes a Feature. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]");
            +   *   gkeHubClient.deleteFeatureAsync(name).get();
            +   * }
            +   * }
            + * + * @param name Required. The Feature resource name in the format + * `projects/*/locations/*/features/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteFeatureAsync(FeatureName name) { + DeleteFeatureRequest request = + DeleteFeatureRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteFeatureAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes a Feature. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString();
            +   *   gkeHubClient.deleteFeatureAsync(name).get();
            +   * }
            +   * }
            + * + * @param name Required. The Feature resource name in the format + * `projects/*/locations/*/features/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteFeatureAsync(String name) { + DeleteFeatureRequest request = DeleteFeatureRequest.newBuilder().setName(name).build(); + return deleteFeatureAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes a Feature. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   DeleteFeatureRequest request =
            +   *       DeleteFeatureRequest.newBuilder()
            +   *           .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
            +   *           .setForce(true)
            +   *           .setRequestId("requestId693933066")
            +   *           .build();
            +   *   gkeHubClient.deleteFeatureAsync(request).get();
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteFeatureAsync( + DeleteFeatureRequest request) { + return deleteFeatureOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes a Feature. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   DeleteFeatureRequest request =
            +   *       DeleteFeatureRequest.newBuilder()
            +   *           .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
            +   *           .setForce(true)
            +   *           .setRequestId("requestId693933066")
            +   *           .build();
            +   *   OperationFuture future =
            +   *       gkeHubClient.deleteFeatureOperationCallable().futureCall(request);
            +   *   // Do something.
            +   *   future.get();
            +   * }
            +   * }
            + */ + public final OperationCallable + deleteFeatureOperationCallable() { + return stub.deleteFeatureOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes a Feature. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   DeleteFeatureRequest request =
            +   *       DeleteFeatureRequest.newBuilder()
            +   *           .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
            +   *           .setForce(true)
            +   *           .setRequestId("requestId693933066")
            +   *           .build();
            +   *   ApiFuture future = gkeHubClient.deleteFeatureCallable().futureCall(request);
            +   *   // Do something.
            +   *   future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable deleteFeatureCallable() { + return stub.deleteFeatureCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing Membership. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
            +   *   Membership resource = Membership.newBuilder().build();
            +   *   FieldMask updateMask = FieldMask.newBuilder().build();
            +   *   Membership response = gkeHubClient.updateMembershipAsync(name, resource, updateMask).get();
            +   * }
            +   * }
            + * + * @param name Required. The Membership resource name in the format + * `projects/*/locations/*/memberships/*`. + * @param resource Required. Only fields specified in update_mask are updated. If you specify a + * field in the update_mask but don't specify its value here that field will be deleted. If + * you are updating a map field, set the value of a key to null or empty string to delete the + * key from the map. It's not possible to update a key's value to the empty string. If you + * specify the update_mask to be a special path "*", fully replaces all user-modifiable + * fields to match `resource`. + * @param updateMask Required. Mask of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateMembershipAsync( + MembershipName name, Membership resource, FieldMask updateMask) { + UpdateMembershipRequest request = + UpdateMembershipRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setResource(resource) + .setUpdateMask(updateMask) + .build(); + return updateMembershipAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing Membership. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString();
            +   *   Membership resource = Membership.newBuilder().build();
            +   *   FieldMask updateMask = FieldMask.newBuilder().build();
            +   *   Membership response = gkeHubClient.updateMembershipAsync(name, resource, updateMask).get();
            +   * }
            +   * }
            + * + * @param name Required. The Membership resource name in the format + * `projects/*/locations/*/memberships/*`. + * @param resource Required. Only fields specified in update_mask are updated. If you specify a + * field in the update_mask but don't specify its value here that field will be deleted. If + * you are updating a map field, set the value of a key to null or empty string to delete the + * key from the map. It's not possible to update a key's value to the empty string. If you + * specify the update_mask to be a special path "*", fully replaces all user-modifiable + * fields to match `resource`. + * @param updateMask Required. Mask of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateMembershipAsync( + String name, Membership resource, FieldMask updateMask) { + UpdateMembershipRequest request = + UpdateMembershipRequest.newBuilder() + .setName(name) + .setResource(resource) + .setUpdateMask(updateMask) + .build(); + return updateMembershipAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing Membership. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   UpdateMembershipRequest request =
            +   *       UpdateMembershipRequest.newBuilder()
            +   *           .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .setResource(Membership.newBuilder().build())
            +   *           .setRequestId("requestId693933066")
            +   *           .build();
            +   *   Membership response = gkeHubClient.updateMembershipAsync(request).get();
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateMembershipAsync( + UpdateMembershipRequest request) { + return updateMembershipOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing Membership. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   UpdateMembershipRequest request =
            +   *       UpdateMembershipRequest.newBuilder()
            +   *           .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .setResource(Membership.newBuilder().build())
            +   *           .setRequestId("requestId693933066")
            +   *           .build();
            +   *   OperationFuture future =
            +   *       gkeHubClient.updateMembershipOperationCallable().futureCall(request);
            +   *   // Do something.
            +   *   Membership response = future.get();
            +   * }
            +   * }
            + */ + public final OperationCallable + updateMembershipOperationCallable() { + return stub.updateMembershipOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing Membership. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   UpdateMembershipRequest request =
            +   *       UpdateMembershipRequest.newBuilder()
            +   *           .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .setResource(Membership.newBuilder().build())
            +   *           .setRequestId("requestId693933066")
            +   *           .build();
            +   *   ApiFuture future = gkeHubClient.updateMembershipCallable().futureCall(request);
            +   *   // Do something.
            +   *   Operation response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable updateMembershipCallable() { + return stub.updateMembershipCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing Feature. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]");
            +   *   Feature resource = Feature.newBuilder().build();
            +   *   FieldMask updateMask = FieldMask.newBuilder().build();
            +   *   Feature response = gkeHubClient.updateFeatureAsync(name, resource, updateMask).get();
            +   * }
            +   * }
            + * + * @param name Required. The Feature resource name in the format + * `projects/*/locations/*/features/*`. + * @param resource Only fields specified in update_mask are updated. If you specify a field in the + * update_mask but don't specify its value here that field will be deleted. If you are + * updating a map field, set the value of a key to null or empty string to delete the key from + * the map. It's not possible to update a key's value to the empty string. If you specify the + * update_mask to be a special path "*", fully replaces all user-modifiable fields to + * match `resource`. + * @param updateMask Mask of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateFeatureAsync( + FeatureName name, Feature resource, FieldMask updateMask) { + UpdateFeatureRequest request = + UpdateFeatureRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setResource(resource) + .setUpdateMask(updateMask) + .build(); + return updateFeatureAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing Feature. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString();
            +   *   Feature resource = Feature.newBuilder().build();
            +   *   FieldMask updateMask = FieldMask.newBuilder().build();
            +   *   Feature response = gkeHubClient.updateFeatureAsync(name, resource, updateMask).get();
            +   * }
            +   * }
            + * + * @param name Required. The Feature resource name in the format + * `projects/*/locations/*/features/*`. + * @param resource Only fields specified in update_mask are updated. If you specify a field in the + * update_mask but don't specify its value here that field will be deleted. If you are + * updating a map field, set the value of a key to null or empty string to delete the key from + * the map. It's not possible to update a key's value to the empty string. If you specify the + * update_mask to be a special path "*", fully replaces all user-modifiable fields to + * match `resource`. + * @param updateMask Mask of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateFeatureAsync( + String name, Feature resource, FieldMask updateMask) { + UpdateFeatureRequest request = + UpdateFeatureRequest.newBuilder() + .setName(name) + .setResource(resource) + .setUpdateMask(updateMask) + .build(); + return updateFeatureAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing Feature. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   UpdateFeatureRequest request =
            +   *       UpdateFeatureRequest.newBuilder()
            +   *           .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .setResource(Feature.newBuilder().build())
            +   *           .setRequestId("requestId693933066")
            +   *           .build();
            +   *   Feature response = gkeHubClient.updateFeatureAsync(request).get();
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateFeatureAsync( + UpdateFeatureRequest request) { + return updateFeatureOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing Feature. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   UpdateFeatureRequest request =
            +   *       UpdateFeatureRequest.newBuilder()
            +   *           .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .setResource(Feature.newBuilder().build())
            +   *           .setRequestId("requestId693933066")
            +   *           .build();
            +   *   OperationFuture future =
            +   *       gkeHubClient.updateFeatureOperationCallable().futureCall(request);
            +   *   // Do something.
            +   *   Feature response = future.get();
            +   * }
            +   * }
            + */ + public final OperationCallable + updateFeatureOperationCallable() { + return stub.updateFeatureOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing Feature. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   UpdateFeatureRequest request =
            +   *       UpdateFeatureRequest.newBuilder()
            +   *           .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .setResource(Feature.newBuilder().build())
            +   *           .setRequestId("requestId693933066")
            +   *           .build();
            +   *   ApiFuture future = gkeHubClient.updateFeatureCallable().futureCall(request);
            +   *   // Do something.
            +   *   Operation response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable updateFeatureCallable() { + return stub.updateFeatureCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates the manifest for deployment of the GKE connect agent. + * + *

            **This method is used internally by Google-provided libraries.** Most + * clients should not need to call this method directly. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   GenerateConnectManifestRequest request =
            +   *       GenerateConnectManifestRequest.newBuilder()
            +   *           .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
            +   *           .setNamespace("namespace1252218203")
            +   *           .setProxy(ByteString.EMPTY)
            +   *           .setVersion("version351608024")
            +   *           .setIsUpgrade(true)
            +   *           .setRegistry("registry-690212803")
            +   *           .setImagePullSecretContent(ByteString.EMPTY)
            +   *           .build();
            +   *   GenerateConnectManifestResponse response = gkeHubClient.generateConnectManifest(request);
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GenerateConnectManifestResponse generateConnectManifest( + GenerateConnectManifestRequest request) { + return generateConnectManifestCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates the manifest for deployment of the GKE connect agent. + * + *

            **This method is used internally by Google-provided libraries.** Most + * clients should not need to call this method directly. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   GenerateConnectManifestRequest request =
            +   *       GenerateConnectManifestRequest.newBuilder()
            +   *           .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
            +   *           .setNamespace("namespace1252218203")
            +   *           .setProxy(ByteString.EMPTY)
            +   *           .setVersion("version351608024")
            +   *           .setIsUpgrade(true)
            +   *           .setRegistry("registry-690212803")
            +   *           .setImagePullSecretContent(ByteString.EMPTY)
            +   *           .build();
            +   *   ApiFuture future =
            +   *       gkeHubClient.generateConnectManifestCallable().futureCall(request);
            +   *   // Do something.
            +   *   GenerateConnectManifestResponse response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + generateConnectManifestCallable() { + return stub.generateConnectManifestCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a fleet. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
            +   *   Fleet fleet = Fleet.newBuilder().build();
            +   *   Fleet response = gkeHubClient.createFleetAsync(parent, fleet).get();
            +   * }
            +   * }
            + * + * @param parent Required. The parent (project and location) where the Fleet will be created. + * Specified in the format `projects/*/locations/*`. + * @param fleet Required. The fleet to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createFleetAsync( + LocationName parent, Fleet fleet) { + CreateFleetRequest request = + CreateFleetRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFleet(fleet) + .build(); + return createFleetAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a fleet. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
            +   *   Fleet fleet = Fleet.newBuilder().build();
            +   *   Fleet response = gkeHubClient.createFleetAsync(parent, fleet).get();
            +   * }
            +   * }
            + * + * @param parent Required. The parent (project and location) where the Fleet will be created. + * Specified in the format `projects/*/locations/*`. + * @param fleet Required. The fleet to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createFleetAsync( + String parent, Fleet fleet) { + CreateFleetRequest request = + CreateFleetRequest.newBuilder().setParent(parent).setFleet(fleet).build(); + return createFleetAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a fleet. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   CreateFleetRequest request =
            +   *       CreateFleetRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setFleet(Fleet.newBuilder().build())
            +   *           .build();
            +   *   Fleet response = gkeHubClient.createFleetAsync(request).get();
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createFleetAsync( + CreateFleetRequest request) { + return createFleetOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a fleet. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   CreateFleetRequest request =
            +   *       CreateFleetRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setFleet(Fleet.newBuilder().build())
            +   *           .build();
            +   *   OperationFuture future =
            +   *       gkeHubClient.createFleetOperationCallable().futureCall(request);
            +   *   // Do something.
            +   *   Fleet response = future.get();
            +   * }
            +   * }
            + */ + public final OperationCallable + createFleetOperationCallable() { + return stub.createFleetOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a fleet. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   CreateFleetRequest request =
            +   *       CreateFleetRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setFleet(Fleet.newBuilder().build())
            +   *           .build();
            +   *   ApiFuture future = gkeHubClient.createFleetCallable().futureCall(request);
            +   *   // Do something.
            +   *   Operation response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable createFleetCallable() { + return stub.createFleetCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a fleet. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   FleetName name = FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]");
            +   *   Fleet response = gkeHubClient.getFleet(name);
            +   * }
            +   * }
            + * + * @param name Required. The Fleet resource name in the format + * `projects/*/locations/*/fleets/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Fleet getFleet(FleetName name) { + GetFleetRequest request = + GetFleetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getFleet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a fleet. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   String name =
            +   *       FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]").toString();
            +   *   Fleet response = gkeHubClient.getFleet(name);
            +   * }
            +   * }
            + * + * @param name Required. The Fleet resource name in the format + * `projects/*/locations/*/fleets/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Fleet getFleet(String name) { + GetFleetRequest request = GetFleetRequest.newBuilder().setName(name).build(); + return getFleet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a fleet. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   GetFleetRequest request =
            +   *       GetFleetRequest.newBuilder()
            +   *           .setName(
            +   *               FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]")
            +   *                   .toString())
            +   *           .build();
            +   *   Fleet response = gkeHubClient.getFleet(request);
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Fleet getFleet(GetFleetRequest request) { + return getFleetCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a fleet. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   GetFleetRequest request =
            +   *       GetFleetRequest.newBuilder()
            +   *           .setName(
            +   *               FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]")
            +   *                   .toString())
            +   *           .build();
            +   *   ApiFuture future = gkeHubClient.getFleetCallable().futureCall(request);
            +   *   // Do something.
            +   *   Fleet response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable getFleetCallable() { + return stub.getFleetCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a fleet. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   Fleet fleet = Fleet.newBuilder().build();
            +   *   FieldMask updateMask = FieldMask.newBuilder().build();
            +   *   Fleet response = gkeHubClient.updateFleetAsync(fleet, updateMask).get();
            +   * }
            +   * }
            + * + * @param fleet Required. The Fleet to update. + *

            The `name` field of the Fleet object identifies which fleet will be updated. + * @param updateMask Required. The fields to be updated; + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateFleetAsync( + Fleet fleet, FieldMask updateMask) { + UpdateFleetRequest request = + UpdateFleetRequest.newBuilder().setFleet(fleet).setUpdateMask(updateMask).build(); + return updateFleetAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a fleet. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   UpdateFleetRequest request =
            +   *       UpdateFleetRequest.newBuilder()
            +   *           .setFleet(Fleet.newBuilder().build())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .build();
            +   *   Fleet response = gkeHubClient.updateFleetAsync(request).get();
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateFleetAsync( + UpdateFleetRequest request) { + return updateFleetOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a fleet. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   UpdateFleetRequest request =
            +   *       UpdateFleetRequest.newBuilder()
            +   *           .setFleet(Fleet.newBuilder().build())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .build();
            +   *   OperationFuture future =
            +   *       gkeHubClient.updateFleetOperationCallable().futureCall(request);
            +   *   // Do something.
            +   *   Fleet response = future.get();
            +   * }
            +   * }
            + */ + public final OperationCallable + updateFleetOperationCallable() { + return stub.updateFleetOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a fleet. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   UpdateFleetRequest request =
            +   *       UpdateFleetRequest.newBuilder()
            +   *           .setFleet(Fleet.newBuilder().build())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .build();
            +   *   ApiFuture future = gkeHubClient.updateFleetCallable().futureCall(request);
            +   *   // Do something.
            +   *   Operation response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable updateFleetCallable() { + return stub.updateFleetCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes a Fleet. There must be no memberships remaining in the Fleet. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   FleetName name = FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]");
            +   *   gkeHubClient.deleteFleetAsync(name).get();
            +   * }
            +   * }
            + * + * @param name Required. The Fleet resource name in the format + * `projects/*/locations/*/fleets/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteFleetAsync(FleetName name) { + DeleteFleetRequest request = + DeleteFleetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteFleetAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes a Fleet. There must be no memberships remaining in the Fleet. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   String name =
            +   *       FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]").toString();
            +   *   gkeHubClient.deleteFleetAsync(name).get();
            +   * }
            +   * }
            + * + * @param name Required. The Fleet resource name in the format + * `projects/*/locations/*/fleets/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteFleetAsync(String name) { + DeleteFleetRequest request = DeleteFleetRequest.newBuilder().setName(name).build(); + return deleteFleetAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes a Fleet. There must be no memberships remaining in the Fleet. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   DeleteFleetRequest request =
            +   *       DeleteFleetRequest.newBuilder()
            +   *           .setName(
            +   *               FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]")
            +   *                   .toString())
            +   *           .build();
            +   *   gkeHubClient.deleteFleetAsync(request).get();
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteFleetAsync( + DeleteFleetRequest request) { + return deleteFleetOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes a Fleet. There must be no memberships remaining in the Fleet. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   DeleteFleetRequest request =
            +   *       DeleteFleetRequest.newBuilder()
            +   *           .setName(
            +   *               FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]")
            +   *                   .toString())
            +   *           .build();
            +   *   OperationFuture future =
            +   *       gkeHubClient.deleteFleetOperationCallable().futureCall(request);
            +   *   // Do something.
            +   *   future.get();
            +   * }
            +   * }
            + */ + public final OperationCallable + deleteFleetOperationCallable() { + return stub.deleteFleetOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes a Fleet. There must be no memberships remaining in the Fleet. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   DeleteFleetRequest request =
            +   *       DeleteFleetRequest.newBuilder()
            +   *           .setName(
            +   *               FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]")
            +   *                   .toString())
            +   *           .build();
            +   *   ApiFuture future = gkeHubClient.deleteFleetCallable().futureCall(request);
            +   *   // Do something.
            +   *   future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable deleteFleetCallable() { + return stub.deleteFleetCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all fleets within an organization or a project that the caller has access to. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
            +   *   for (Fleet element : gkeHubClient.listFleets(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The organization or project to list for Fleets under, in the format + * `organizations/*/locations/*` or `projects/*/locations/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFleetsPagedResponse listFleets(LocationName parent) { + ListFleetsRequest request = + ListFleetsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listFleets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all fleets within an organization or a project that the caller has access to. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
            +   *   for (Fleet element : gkeHubClient.listFleets(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The organization or project to list for Fleets under, in the format + * `organizations/*/locations/*` or `projects/*/locations/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFleetsPagedResponse listFleets(String parent) { + ListFleetsRequest request = ListFleetsRequest.newBuilder().setParent(parent).build(); + return listFleets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all fleets within an organization or a project that the caller has access to. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   ListFleetsRequest request =
            +   *       ListFleetsRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageToken("pageToken873572522")
            +   *           .setPageSize(883849137)
            +   *           .build();
            +   *   for (Fleet element : gkeHubClient.listFleets(request).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFleetsPagedResponse listFleets(ListFleetsRequest request) { + return listFleetsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all fleets within an organization or a project that the caller has access to. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   ListFleetsRequest request =
            +   *       ListFleetsRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageToken("pageToken873572522")
            +   *           .setPageSize(883849137)
            +   *           .build();
            +   *   ApiFuture future = gkeHubClient.listFleetsPagedCallable().futureCall(request);
            +   *   // Do something.
            +   *   for (Fleet element : future.get().iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable listFleetsPagedCallable() { + return stub.listFleetsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all fleets within an organization or a project that the caller has access to. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   ListFleetsRequest request =
            +   *       ListFleetsRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageToken("pageToken873572522")
            +   *           .setPageSize(883849137)
            +   *           .build();
            +   *   while (true) {
            +   *     ListFleetsResponse response = gkeHubClient.listFleetsCallable().call(request);
            +   *     for (Fleet element : response.getFleetsList()) {
            +   *       // doThingsWith(element);
            +   *     }
            +   *     String nextPageToken = response.getNextPageToken();
            +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
            +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
            +   *     } else {
            +   *       break;
            +   *     }
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable listFleetsCallable() { + return stub.listFleetsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a fleet namespace. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]");
            +   *   Namespace response = gkeHubClient.getScopeNamespace(name);
            +   * }
            +   * }
            + * + * @param name Required. The Namespace resource name in the format + * `projects/*/locations/*/scopes/*/namespaces/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Namespace getScopeNamespace(NamespaceName name) { + GetScopeNamespaceRequest request = + GetScopeNamespaceRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getScopeNamespace(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a fleet namespace. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   String name =
            +   *       NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString();
            +   *   Namespace response = gkeHubClient.getScopeNamespace(name);
            +   * }
            +   * }
            + * + * @param name Required. The Namespace resource name in the format + * `projects/*/locations/*/scopes/*/namespaces/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Namespace getScopeNamespace(String name) { + GetScopeNamespaceRequest request = GetScopeNamespaceRequest.newBuilder().setName(name).build(); + return getScopeNamespace(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a fleet namespace. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   GetScopeNamespaceRequest request =
            +   *       GetScopeNamespaceRequest.newBuilder()
            +   *           .setName(
            +   *               NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString())
            +   *           .build();
            +   *   Namespace response = gkeHubClient.getScopeNamespace(request);
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Namespace getScopeNamespace(GetScopeNamespaceRequest request) { + return getScopeNamespaceCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a fleet namespace. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   GetScopeNamespaceRequest request =
            +   *       GetScopeNamespaceRequest.newBuilder()
            +   *           .setName(
            +   *               NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString())
            +   *           .build();
            +   *   ApiFuture future = gkeHubClient.getScopeNamespaceCallable().futureCall(request);
            +   *   // Do something.
            +   *   Namespace response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable getScopeNamespaceCallable() { + return stub.getScopeNamespaceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a fleet namespace. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]");
            +   *   Namespace scopeNamespace = Namespace.newBuilder().build();
            +   *   String scopeNamespaceId = "scopeNamespaceId-125738782";
            +   *   Namespace response =
            +   *       gkeHubClient.createScopeNamespaceAsync(parent, scopeNamespace, scopeNamespaceId).get();
            +   * }
            +   * }
            + * + * @param parent Required. The parent (project and location) where the Namespace will be created. + * Specified in the format `projects/*/locations/*/scopes/*`. + * @param scopeNamespace Required. The fleet namespace to create. + * @param scopeNamespaceId Required. Client chosen ID for the Namespace. `namespace_id` must be a + * valid RFC 1123 compliant DNS label: + *

            1. At most 63 characters in length 2. It must consist of lower case alphanumeric + * characters or `-` 3. It must start and end with an alphanumeric character + *

            Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum + * length of 63 characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createScopeNamespaceAsync( + ScopeName parent, Namespace scopeNamespace, String scopeNamespaceId) { + CreateScopeNamespaceRequest request = + CreateScopeNamespaceRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setScopeNamespace(scopeNamespace) + .setScopeNamespaceId(scopeNamespaceId) + .build(); + return createScopeNamespaceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a fleet namespace. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   String parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString();
            +   *   Namespace scopeNamespace = Namespace.newBuilder().build();
            +   *   String scopeNamespaceId = "scopeNamespaceId-125738782";
            +   *   Namespace response =
            +   *       gkeHubClient.createScopeNamespaceAsync(parent, scopeNamespace, scopeNamespaceId).get();
            +   * }
            +   * }
            + * + * @param parent Required. The parent (project and location) where the Namespace will be created. + * Specified in the format `projects/*/locations/*/scopes/*`. + * @param scopeNamespace Required. The fleet namespace to create. + * @param scopeNamespaceId Required. Client chosen ID for the Namespace. `namespace_id` must be a + * valid RFC 1123 compliant DNS label: + *

            1. At most 63 characters in length 2. It must consist of lower case alphanumeric + * characters or `-` 3. It must start and end with an alphanumeric character + *

            Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum + * length of 63 characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createScopeNamespaceAsync( + String parent, Namespace scopeNamespace, String scopeNamespaceId) { + CreateScopeNamespaceRequest request = + CreateScopeNamespaceRequest.newBuilder() + .setParent(parent) + .setScopeNamespace(scopeNamespace) + .setScopeNamespaceId(scopeNamespaceId) + .build(); + return createScopeNamespaceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a fleet namespace. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   CreateScopeNamespaceRequest request =
            +   *       CreateScopeNamespaceRequest.newBuilder()
            +   *           .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
            +   *           .setScopeNamespaceId("scopeNamespaceId-125738782")
            +   *           .setScopeNamespace(Namespace.newBuilder().build())
            +   *           .build();
            +   *   Namespace response = gkeHubClient.createScopeNamespaceAsync(request).get();
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createScopeNamespaceAsync( + CreateScopeNamespaceRequest request) { + return createScopeNamespaceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a fleet namespace. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   CreateScopeNamespaceRequest request =
            +   *       CreateScopeNamespaceRequest.newBuilder()
            +   *           .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
            +   *           .setScopeNamespaceId("scopeNamespaceId-125738782")
            +   *           .setScopeNamespace(Namespace.newBuilder().build())
            +   *           .build();
            +   *   OperationFuture future =
            +   *       gkeHubClient.createScopeNamespaceOperationCallable().futureCall(request);
            +   *   // Do something.
            +   *   Namespace response = future.get();
            +   * }
            +   * }
            + */ + public final OperationCallable + createScopeNamespaceOperationCallable() { + return stub.createScopeNamespaceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a fleet namespace. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   CreateScopeNamespaceRequest request =
            +   *       CreateScopeNamespaceRequest.newBuilder()
            +   *           .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
            +   *           .setScopeNamespaceId("scopeNamespaceId-125738782")
            +   *           .setScopeNamespace(Namespace.newBuilder().build())
            +   *           .build();
            +   *   ApiFuture future = gkeHubClient.createScopeNamespaceCallable().futureCall(request);
            +   *   // Do something.
            +   *   Operation response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + createScopeNamespaceCallable() { + return stub.createScopeNamespaceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a fleet namespace. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   Namespace scopeNamespace = Namespace.newBuilder().build();
            +   *   FieldMask updateMask = FieldMask.newBuilder().build();
            +   *   Namespace response = gkeHubClient.updateScopeNamespaceAsync(scopeNamespace, updateMask).get();
            +   * }
            +   * }
            + * + * @param scopeNamespace Required. A namespace with fields updated. The 'name' field in this + * namespace is used to identify the resource to update. Given 'updated' prefix to follow + * go/proto-best-practices-checkers#keyword_conflict + * @param updateMask Required. The fields to be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateScopeNamespaceAsync( + Namespace scopeNamespace, FieldMask updateMask) { + UpdateScopeNamespaceRequest request = + UpdateScopeNamespaceRequest.newBuilder() + .setScopeNamespace(scopeNamespace) + .setUpdateMask(updateMask) + .build(); + return updateScopeNamespaceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a fleet namespace. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   UpdateScopeNamespaceRequest request =
            +   *       UpdateScopeNamespaceRequest.newBuilder()
            +   *           .setScopeNamespace(Namespace.newBuilder().build())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .build();
            +   *   Namespace response = gkeHubClient.updateScopeNamespaceAsync(request).get();
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateScopeNamespaceAsync( + UpdateScopeNamespaceRequest request) { + return updateScopeNamespaceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a fleet namespace. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   UpdateScopeNamespaceRequest request =
            +   *       UpdateScopeNamespaceRequest.newBuilder()
            +   *           .setScopeNamespace(Namespace.newBuilder().build())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .build();
            +   *   OperationFuture future =
            +   *       gkeHubClient.updateScopeNamespaceOperationCallable().futureCall(request);
            +   *   // Do something.
            +   *   Namespace response = future.get();
            +   * }
            +   * }
            + */ + public final OperationCallable + updateScopeNamespaceOperationCallable() { + return stub.updateScopeNamespaceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a fleet namespace. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   UpdateScopeNamespaceRequest request =
            +   *       UpdateScopeNamespaceRequest.newBuilder()
            +   *           .setScopeNamespace(Namespace.newBuilder().build())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .build();
            +   *   ApiFuture future = gkeHubClient.updateScopeNamespaceCallable().futureCall(request);
            +   *   // Do something.
            +   *   Operation response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + updateScopeNamespaceCallable() { + return stub.updateScopeNamespaceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a fleet namespace. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]");
            +   *   gkeHubClient.deleteScopeNamespaceAsync(name).get();
            +   * }
            +   * }
            + * + * @param name Required. The Namespace resource name in the format + * `projects/*/locations/*/scopes/*/namespaces/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteScopeNamespaceAsync( + NamespaceName name) { + DeleteScopeNamespaceRequest request = + DeleteScopeNamespaceRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteScopeNamespaceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a fleet namespace. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   String name =
            +   *       NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString();
            +   *   gkeHubClient.deleteScopeNamespaceAsync(name).get();
            +   * }
            +   * }
            + * + * @param name Required. The Namespace resource name in the format + * `projects/*/locations/*/scopes/*/namespaces/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteScopeNamespaceAsync(String name) { + DeleteScopeNamespaceRequest request = + DeleteScopeNamespaceRequest.newBuilder().setName(name).build(); + return deleteScopeNamespaceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a fleet namespace. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   DeleteScopeNamespaceRequest request =
            +   *       DeleteScopeNamespaceRequest.newBuilder()
            +   *           .setName(
            +   *               NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString())
            +   *           .build();
            +   *   gkeHubClient.deleteScopeNamespaceAsync(request).get();
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteScopeNamespaceAsync( + DeleteScopeNamespaceRequest request) { + return deleteScopeNamespaceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a fleet namespace. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   DeleteScopeNamespaceRequest request =
            +   *       DeleteScopeNamespaceRequest.newBuilder()
            +   *           .setName(
            +   *               NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString())
            +   *           .build();
            +   *   OperationFuture future =
            +   *       gkeHubClient.deleteScopeNamespaceOperationCallable().futureCall(request);
            +   *   // Do something.
            +   *   future.get();
            +   * }
            +   * }
            + */ + public final OperationCallable + deleteScopeNamespaceOperationCallable() { + return stub.deleteScopeNamespaceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a fleet namespace. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   DeleteScopeNamespaceRequest request =
            +   *       DeleteScopeNamespaceRequest.newBuilder()
            +   *           .setName(
            +   *               NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString())
            +   *           .build();
            +   *   ApiFuture future = gkeHubClient.deleteScopeNamespaceCallable().futureCall(request);
            +   *   // Do something.
            +   *   future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + deleteScopeNamespaceCallable() { + return stub.deleteScopeNamespaceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists fleet namespaces. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]");
            +   *   for (Namespace element : gkeHubClient.listScopeNamespaces(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The parent (project and location) where the Features will be listed. + * Specified in the format `projects/*/locations/*/scopes/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListScopeNamespacesPagedResponse listScopeNamespaces(ScopeName parent) { + ListScopeNamespacesRequest request = + ListScopeNamespacesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listScopeNamespaces(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists fleet namespaces. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   String parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString();
            +   *   for (Namespace element : gkeHubClient.listScopeNamespaces(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The parent (project and location) where the Features will be listed. + * Specified in the format `projects/*/locations/*/scopes/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListScopeNamespacesPagedResponse listScopeNamespaces(String parent) { + ListScopeNamespacesRequest request = + ListScopeNamespacesRequest.newBuilder().setParent(parent).build(); + return listScopeNamespaces(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists fleet namespaces. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   ListScopeNamespacesRequest request =
            +   *       ListScopeNamespacesRequest.newBuilder()
            +   *           .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   for (Namespace element : gkeHubClient.listScopeNamespaces(request).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListScopeNamespacesPagedResponse listScopeNamespaces( + ListScopeNamespacesRequest request) { + return listScopeNamespacesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists fleet namespaces. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   ListScopeNamespacesRequest request =
            +   *       ListScopeNamespacesRequest.newBuilder()
            +   *           .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   ApiFuture future =
            +   *       gkeHubClient.listScopeNamespacesPagedCallable().futureCall(request);
            +   *   // Do something.
            +   *   for (Namespace element : future.get().iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + listScopeNamespacesPagedCallable() { + return stub.listScopeNamespacesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists fleet namespaces. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   ListScopeNamespacesRequest request =
            +   *       ListScopeNamespacesRequest.newBuilder()
            +   *           .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   while (true) {
            +   *     ListScopeNamespacesResponse response =
            +   *         gkeHubClient.listScopeNamespacesCallable().call(request);
            +   *     for (Namespace element : response.getScopeNamespacesList()) {
            +   *       // doThingsWith(element);
            +   *     }
            +   *     String nextPageToken = response.getNextPageToken();
            +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
            +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
            +   *     } else {
            +   *       break;
            +   *     }
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + listScopeNamespacesCallable() { + return stub.listScopeNamespacesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a Scope RBACRoleBinding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   RBACRoleBindingName name =
            +   *       RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
            +   *           "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]");
            +   *   RBACRoleBinding response = gkeHubClient.getScopeRBACRoleBinding(name);
            +   * }
            +   * }
            + * + * @param name Required. The RBACRoleBinding resource name in the format + * `projects/*/locations/*/scopes/*/rbacrolebindings/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RBACRoleBinding getScopeRBACRoleBinding(RBACRoleBindingName name) { + GetScopeRBACRoleBindingRequest request = + GetScopeRBACRoleBindingRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getScopeRBACRoleBinding(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a Scope RBACRoleBinding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   String name =
            +   *       RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
            +   *               "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]")
            +   *           .toString();
            +   *   RBACRoleBinding response = gkeHubClient.getScopeRBACRoleBinding(name);
            +   * }
            +   * }
            + * + * @param name Required. The RBACRoleBinding resource name in the format + * `projects/*/locations/*/scopes/*/rbacrolebindings/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RBACRoleBinding getScopeRBACRoleBinding(String name) { + GetScopeRBACRoleBindingRequest request = + GetScopeRBACRoleBindingRequest.newBuilder().setName(name).build(); + return getScopeRBACRoleBinding(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a Scope RBACRoleBinding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   GetScopeRBACRoleBindingRequest request =
            +   *       GetScopeRBACRoleBindingRequest.newBuilder()
            +   *           .setName(
            +   *               RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
            +   *                       "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]")
            +   *                   .toString())
            +   *           .build();
            +   *   RBACRoleBinding response = gkeHubClient.getScopeRBACRoleBinding(request);
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RBACRoleBinding getScopeRBACRoleBinding(GetScopeRBACRoleBindingRequest request) { + return getScopeRBACRoleBindingCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a Scope RBACRoleBinding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   GetScopeRBACRoleBindingRequest request =
            +   *       GetScopeRBACRoleBindingRequest.newBuilder()
            +   *           .setName(
            +   *               RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
            +   *                       "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]")
            +   *                   .toString())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       gkeHubClient.getScopeRBACRoleBindingCallable().futureCall(request);
            +   *   // Do something.
            +   *   RBACRoleBinding response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + getScopeRBACRoleBindingCallable() { + return stub.getScopeRBACRoleBindingCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Scope RBACRoleBinding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
            +   *   RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build();
            +   *   String rbacrolebindingId = "rbacrolebindingId827577784";
            +   *   RBACRoleBinding response =
            +   *       gkeHubClient
            +   *           .createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId)
            +   *           .get();
            +   * }
            +   * }
            + * + * @param parent Required. The parent (project and location) where the RBACRoleBinding will be + * created. Specified in the format `projects/*/locations/*/scopes/*`. + * @param rbacrolebinding Required. The rbacrolebindings to create. + * @param rbacrolebindingId Required. Client chosen ID for the RBACRoleBinding. + * `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS label: + *

            1. At most 63 characters in length 2. It must consist of lower case alphanumeric + * characters or `-` 3. It must start and end with an alphanumeric character + *

            Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum + * length of 63 characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createScopeRBACRoleBindingAsync( + MembershipName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) { + CreateScopeRBACRoleBindingRequest request = + CreateScopeRBACRoleBindingRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setRbacrolebinding(rbacrolebinding) + .setRbacrolebindingId(rbacrolebindingId) + .build(); + return createScopeRBACRoleBindingAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Scope RBACRoleBinding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]");
            +   *   RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build();
            +   *   String rbacrolebindingId = "rbacrolebindingId827577784";
            +   *   RBACRoleBinding response =
            +   *       gkeHubClient
            +   *           .createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId)
            +   *           .get();
            +   * }
            +   * }
            + * + * @param parent Required. The parent (project and location) where the RBACRoleBinding will be + * created. Specified in the format `projects/*/locations/*/scopes/*`. + * @param rbacrolebinding Required. The rbacrolebindings to create. + * @param rbacrolebindingId Required. Client chosen ID for the RBACRoleBinding. + * `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS label: + *

            1. At most 63 characters in length 2. It must consist of lower case alphanumeric + * characters or `-` 3. It must start and end with an alphanumeric character + *

            Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum + * length of 63 characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createScopeRBACRoleBindingAsync( + ScopeName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) { + CreateScopeRBACRoleBindingRequest request = + CreateScopeRBACRoleBindingRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setRbacrolebinding(rbacrolebinding) + .setRbacrolebindingId(rbacrolebindingId) + .build(); + return createScopeRBACRoleBindingAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Scope RBACRoleBinding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   String parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString();
            +   *   RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build();
            +   *   String rbacrolebindingId = "rbacrolebindingId827577784";
            +   *   RBACRoleBinding response =
            +   *       gkeHubClient
            +   *           .createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId)
            +   *           .get();
            +   * }
            +   * }
            + * + * @param parent Required. The parent (project and location) where the RBACRoleBinding will be + * created. Specified in the format `projects/*/locations/*/scopes/*`. + * @param rbacrolebinding Required. The rbacrolebindings to create. + * @param rbacrolebindingId Required. Client chosen ID for the RBACRoleBinding. + * `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS label: + *

            1. At most 63 characters in length 2. It must consist of lower case alphanumeric + * characters or `-` 3. It must start and end with an alphanumeric character + *

            Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum + * length of 63 characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createScopeRBACRoleBindingAsync( + String parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) { + CreateScopeRBACRoleBindingRequest request = + CreateScopeRBACRoleBindingRequest.newBuilder() + .setParent(parent) + .setRbacrolebinding(rbacrolebinding) + .setRbacrolebindingId(rbacrolebindingId) + .build(); + return createScopeRBACRoleBindingAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Scope RBACRoleBinding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   CreateScopeRBACRoleBindingRequest request =
            +   *       CreateScopeRBACRoleBindingRequest.newBuilder()
            +   *           .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
            +   *           .setRbacrolebindingId("rbacrolebindingId827577784")
            +   *           .setRbacrolebinding(RBACRoleBinding.newBuilder().build())
            +   *           .build();
            +   *   RBACRoleBinding response = gkeHubClient.createScopeRBACRoleBindingAsync(request).get();
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createScopeRBACRoleBindingAsync( + CreateScopeRBACRoleBindingRequest request) { + return createScopeRBACRoleBindingOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Scope RBACRoleBinding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   CreateScopeRBACRoleBindingRequest request =
            +   *       CreateScopeRBACRoleBindingRequest.newBuilder()
            +   *           .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
            +   *           .setRbacrolebindingId("rbacrolebindingId827577784")
            +   *           .setRbacrolebinding(RBACRoleBinding.newBuilder().build())
            +   *           .build();
            +   *   OperationFuture future =
            +   *       gkeHubClient.createScopeRBACRoleBindingOperationCallable().futureCall(request);
            +   *   // Do something.
            +   *   RBACRoleBinding response = future.get();
            +   * }
            +   * }
            + */ + public final OperationCallable< + CreateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createScopeRBACRoleBindingOperationCallable() { + return stub.createScopeRBACRoleBindingOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Scope RBACRoleBinding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   CreateScopeRBACRoleBindingRequest request =
            +   *       CreateScopeRBACRoleBindingRequest.newBuilder()
            +   *           .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
            +   *           .setRbacrolebindingId("rbacrolebindingId827577784")
            +   *           .setRbacrolebinding(RBACRoleBinding.newBuilder().build())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       gkeHubClient.createScopeRBACRoleBindingCallable().futureCall(request);
            +   *   // Do something.
            +   *   Operation response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + createScopeRBACRoleBindingCallable() { + return stub.createScopeRBACRoleBindingCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a Scope RBACRoleBinding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build();
            +   *   FieldMask updateMask = FieldMask.newBuilder().build();
            +   *   RBACRoleBinding response =
            +   *       gkeHubClient.updateScopeRBACRoleBindingAsync(rbacrolebinding, updateMask).get();
            +   * }
            +   * }
            + * + * @param rbacrolebinding Required. A rbacrolebinding with fields updated. The 'name' field in + * this rbacrolebinding is used to identify the resource to update. + * @param updateMask Required. The fields to be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateScopeRBACRoleBindingAsync( + RBACRoleBinding rbacrolebinding, FieldMask updateMask) { + UpdateScopeRBACRoleBindingRequest request = + UpdateScopeRBACRoleBindingRequest.newBuilder() + .setRbacrolebinding(rbacrolebinding) + .setUpdateMask(updateMask) + .build(); + return updateScopeRBACRoleBindingAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a Scope RBACRoleBinding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   UpdateScopeRBACRoleBindingRequest request =
            +   *       UpdateScopeRBACRoleBindingRequest.newBuilder()
            +   *           .setRbacrolebinding(RBACRoleBinding.newBuilder().build())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .build();
            +   *   RBACRoleBinding response = gkeHubClient.updateScopeRBACRoleBindingAsync(request).get();
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateScopeRBACRoleBindingAsync( + UpdateScopeRBACRoleBindingRequest request) { + return updateScopeRBACRoleBindingOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a Scope RBACRoleBinding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   UpdateScopeRBACRoleBindingRequest request =
            +   *       UpdateScopeRBACRoleBindingRequest.newBuilder()
            +   *           .setRbacrolebinding(RBACRoleBinding.newBuilder().build())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .build();
            +   *   OperationFuture future =
            +   *       gkeHubClient.updateScopeRBACRoleBindingOperationCallable().futureCall(request);
            +   *   // Do something.
            +   *   RBACRoleBinding response = future.get();
            +   * }
            +   * }
            + */ + public final OperationCallable< + UpdateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateScopeRBACRoleBindingOperationCallable() { + return stub.updateScopeRBACRoleBindingOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a Scope RBACRoleBinding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   UpdateScopeRBACRoleBindingRequest request =
            +   *       UpdateScopeRBACRoleBindingRequest.newBuilder()
            +   *           .setRbacrolebinding(RBACRoleBinding.newBuilder().build())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       gkeHubClient.updateScopeRBACRoleBindingCallable().futureCall(request);
            +   *   // Do something.
            +   *   Operation response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + updateScopeRBACRoleBindingCallable() { + return stub.updateScopeRBACRoleBindingCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Scope RBACRoleBinding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   RBACRoleBindingName name =
            +   *       RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
            +   *           "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]");
            +   *   gkeHubClient.deleteScopeRBACRoleBindingAsync(name).get();
            +   * }
            +   * }
            + * + * @param name Required. The RBACRoleBinding resource name in the format + * `projects/*/locations/*/scopes/*/rbacrolebindings/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteScopeRBACRoleBindingAsync( + RBACRoleBindingName name) { + DeleteScopeRBACRoleBindingRequest request = + DeleteScopeRBACRoleBindingRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteScopeRBACRoleBindingAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Scope RBACRoleBinding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   String name =
            +   *       RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
            +   *               "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]")
            +   *           .toString();
            +   *   gkeHubClient.deleteScopeRBACRoleBindingAsync(name).get();
            +   * }
            +   * }
            + * + * @param name Required. The RBACRoleBinding resource name in the format + * `projects/*/locations/*/scopes/*/rbacrolebindings/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteScopeRBACRoleBindingAsync( + String name) { + DeleteScopeRBACRoleBindingRequest request = + DeleteScopeRBACRoleBindingRequest.newBuilder().setName(name).build(); + return deleteScopeRBACRoleBindingAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Scope RBACRoleBinding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   DeleteScopeRBACRoleBindingRequest request =
            +   *       DeleteScopeRBACRoleBindingRequest.newBuilder()
            +   *           .setName(
            +   *               RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
            +   *                       "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]")
            +   *                   .toString())
            +   *           .build();
            +   *   gkeHubClient.deleteScopeRBACRoleBindingAsync(request).get();
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteScopeRBACRoleBindingAsync( + DeleteScopeRBACRoleBindingRequest request) { + return deleteScopeRBACRoleBindingOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Scope RBACRoleBinding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   DeleteScopeRBACRoleBindingRequest request =
            +   *       DeleteScopeRBACRoleBindingRequest.newBuilder()
            +   *           .setName(
            +   *               RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
            +   *                       "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]")
            +   *                   .toString())
            +   *           .build();
            +   *   OperationFuture future =
            +   *       gkeHubClient.deleteScopeRBACRoleBindingOperationCallable().futureCall(request);
            +   *   // Do something.
            +   *   future.get();
            +   * }
            +   * }
            + */ + public final OperationCallable + deleteScopeRBACRoleBindingOperationCallable() { + return stub.deleteScopeRBACRoleBindingOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Scope RBACRoleBinding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   DeleteScopeRBACRoleBindingRequest request =
            +   *       DeleteScopeRBACRoleBindingRequest.newBuilder()
            +   *           .setName(
            +   *               RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
            +   *                       "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]")
            +   *                   .toString())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       gkeHubClient.deleteScopeRBACRoleBindingCallable().futureCall(request);
            +   *   // Do something.
            +   *   future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + deleteScopeRBACRoleBindingCallable() { + return stub.deleteScopeRBACRoleBindingCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all Scope RBACRoleBindings. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
            +   *   for (RBACRoleBinding element : gkeHubClient.listScopeRBACRoleBindings(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The parent (project and location) where the Features will be listed. + * Specified in the format `projects/*/locations/*/scopes/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListScopeRBACRoleBindingsPagedResponse listScopeRBACRoleBindings( + MembershipName parent) { + ListScopeRBACRoleBindingsRequest request = + ListScopeRBACRoleBindingsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listScopeRBACRoleBindings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all Scope RBACRoleBindings. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]");
            +   *   for (RBACRoleBinding element : gkeHubClient.listScopeRBACRoleBindings(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The parent (project and location) where the Features will be listed. + * Specified in the format `projects/*/locations/*/scopes/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListScopeRBACRoleBindingsPagedResponse listScopeRBACRoleBindings(ScopeName parent) { + ListScopeRBACRoleBindingsRequest request = + ListScopeRBACRoleBindingsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listScopeRBACRoleBindings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all Scope RBACRoleBindings. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   String parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString();
            +   *   for (RBACRoleBinding element : gkeHubClient.listScopeRBACRoleBindings(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The parent (project and location) where the Features will be listed. + * Specified in the format `projects/*/locations/*/scopes/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListScopeRBACRoleBindingsPagedResponse listScopeRBACRoleBindings(String parent) { + ListScopeRBACRoleBindingsRequest request = + ListScopeRBACRoleBindingsRequest.newBuilder().setParent(parent).build(); + return listScopeRBACRoleBindings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all Scope RBACRoleBindings. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   ListScopeRBACRoleBindingsRequest request =
            +   *       ListScopeRBACRoleBindingsRequest.newBuilder()
            +   *           .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   for (RBACRoleBinding element : gkeHubClient.listScopeRBACRoleBindings(request).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListScopeRBACRoleBindingsPagedResponse listScopeRBACRoleBindings( + ListScopeRBACRoleBindingsRequest request) { + return listScopeRBACRoleBindingsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all Scope RBACRoleBindings. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   ListScopeRBACRoleBindingsRequest request =
            +   *       ListScopeRBACRoleBindingsRequest.newBuilder()
            +   *           .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   ApiFuture future =
            +   *       gkeHubClient.listScopeRBACRoleBindingsPagedCallable().futureCall(request);
            +   *   // Do something.
            +   *   for (RBACRoleBinding element : future.get().iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable< + ListScopeRBACRoleBindingsRequest, ListScopeRBACRoleBindingsPagedResponse> + listScopeRBACRoleBindingsPagedCallable() { + return stub.listScopeRBACRoleBindingsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all Scope RBACRoleBindings. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   ListScopeRBACRoleBindingsRequest request =
            +   *       ListScopeRBACRoleBindingsRequest.newBuilder()
            +   *           .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   while (true) {
            +   *     ListScopeRBACRoleBindingsResponse response =
            +   *         gkeHubClient.listScopeRBACRoleBindingsCallable().call(request);
            +   *     for (RBACRoleBinding element : response.getRbacrolebindingsList()) {
            +   *       // doThingsWith(element);
            +   *     }
            +   *     String nextPageToken = response.getNextPageToken();
            +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
            +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
            +   *     } else {
            +   *       break;
            +   *     }
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + listScopeRBACRoleBindingsCallable() { + return stub.listScopeRBACRoleBindingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a Scope. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   ScopeName name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]");
            +   *   Scope response = gkeHubClient.getScope(name);
            +   * }
            +   * }
            + * + * @param name Required. The Scope resource name in the format + * `projects/*/locations/*/scopes/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Scope getScope(ScopeName name) { + GetScopeRequest request = + GetScopeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getScope(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a Scope. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   String name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString();
            +   *   Scope response = gkeHubClient.getScope(name);
            +   * }
            +   * }
            + * + * @param name Required. The Scope resource name in the format + * `projects/*/locations/*/scopes/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Scope getScope(String name) { + GetScopeRequest request = GetScopeRequest.newBuilder().setName(name).build(); + return getScope(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a Scope. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   GetScopeRequest request =
            +   *       GetScopeRequest.newBuilder()
            +   *           .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
            +   *           .build();
            +   *   Scope response = gkeHubClient.getScope(request);
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Scope getScope(GetScopeRequest request) { + return getScopeCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a Scope. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   GetScopeRequest request =
            +   *       GetScopeRequest.newBuilder()
            +   *           .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
            +   *           .build();
            +   *   ApiFuture future = gkeHubClient.getScopeCallable().futureCall(request);
            +   *   // Do something.
            +   *   Scope response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable getScopeCallable() { + return stub.getScopeCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Scope. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
            +   *   Scope scope = Scope.newBuilder().build();
            +   *   String scopeId = "scopeId1923941007";
            +   *   Scope response = gkeHubClient.createScopeAsync(parent, scope, scopeId).get();
            +   * }
            +   * }
            + * + * @param parent Required. The parent (project and location) where the Scope will be created. + * Specified in the format `projects/*/locations/*`. + * @param scope Required. The Scope to create. + * @param scopeId Required. Client chosen ID for the Scope. `scope_id` must be a ???? + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createScopeAsync( + LocationName parent, Scope scope, String scopeId) { + CreateScopeRequest request = + CreateScopeRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setScope(scope) + .setScopeId(scopeId) + .build(); + return createScopeAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Scope. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
            +   *   Scope scope = Scope.newBuilder().build();
            +   *   String scopeId = "scopeId1923941007";
            +   *   Scope response = gkeHubClient.createScopeAsync(parent, scope, scopeId).get();
            +   * }
            +   * }
            + * + * @param parent Required. The parent (project and location) where the Scope will be created. + * Specified in the format `projects/*/locations/*`. + * @param scope Required. The Scope to create. + * @param scopeId Required. Client chosen ID for the Scope. `scope_id` must be a ???? + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createScopeAsync( + String parent, Scope scope, String scopeId) { + CreateScopeRequest request = + CreateScopeRequest.newBuilder() + .setParent(parent) + .setScope(scope) + .setScopeId(scopeId) + .build(); + return createScopeAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Scope. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   CreateScopeRequest request =
            +   *       CreateScopeRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setScopeId("scopeId1923941007")
            +   *           .setScope(Scope.newBuilder().build())
            +   *           .build();
            +   *   Scope response = gkeHubClient.createScopeAsync(request).get();
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createScopeAsync( + CreateScopeRequest request) { + return createScopeOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Scope. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   CreateScopeRequest request =
            +   *       CreateScopeRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setScopeId("scopeId1923941007")
            +   *           .setScope(Scope.newBuilder().build())
            +   *           .build();
            +   *   OperationFuture future =
            +   *       gkeHubClient.createScopeOperationCallable().futureCall(request);
            +   *   // Do something.
            +   *   Scope response = future.get();
            +   * }
            +   * }
            + */ + public final OperationCallable + createScopeOperationCallable() { + return stub.createScopeOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Scope. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   CreateScopeRequest request =
            +   *       CreateScopeRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setScopeId("scopeId1923941007")
            +   *           .setScope(Scope.newBuilder().build())
            +   *           .build();
            +   *   ApiFuture future = gkeHubClient.createScopeCallable().futureCall(request);
            +   *   // Do something.
            +   *   Operation response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable createScopeCallable() { + return stub.createScopeCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a scopes. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   Scope scope = Scope.newBuilder().build();
            +   *   FieldMask updateMask = FieldMask.newBuilder().build();
            +   *   Scope response = gkeHubClient.updateScopeAsync(scope, updateMask).get();
            +   * }
            +   * }
            + * + * @param scope Required. A Scope with fields updated. The 'name' field in this namespace is used + * to identify the resource to update. + * @param updateMask Required. The fields to be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateScopeAsync( + Scope scope, FieldMask updateMask) { + UpdateScopeRequest request = + UpdateScopeRequest.newBuilder().setScope(scope).setUpdateMask(updateMask).build(); + return updateScopeAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a scopes. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   UpdateScopeRequest request =
            +   *       UpdateScopeRequest.newBuilder()
            +   *           .setScope(Scope.newBuilder().build())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .build();
            +   *   Scope response = gkeHubClient.updateScopeAsync(request).get();
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateScopeAsync( + UpdateScopeRequest request) { + return updateScopeOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a scopes. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   UpdateScopeRequest request =
            +   *       UpdateScopeRequest.newBuilder()
            +   *           .setScope(Scope.newBuilder().build())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .build();
            +   *   OperationFuture future =
            +   *       gkeHubClient.updateScopeOperationCallable().futureCall(request);
            +   *   // Do something.
            +   *   Scope response = future.get();
            +   * }
            +   * }
            + */ + public final OperationCallable + updateScopeOperationCallable() { + return stub.updateScopeOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a scopes. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   UpdateScopeRequest request =
            +   *       UpdateScopeRequest.newBuilder()
            +   *           .setScope(Scope.newBuilder().build())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .build();
            +   *   ApiFuture future = gkeHubClient.updateScopeCallable().futureCall(request);
            +   *   // Do something.
            +   *   Operation response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable updateScopeCallable() { + return stub.updateScopeCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Scope. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   ScopeName name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]");
            +   *   gkeHubClient.deleteScopeAsync(name).get();
            +   * }
            +   * }
            + * + * @param name Required. The Scope resource name in the format + * `projects/*/locations/*/scopes/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteScopeAsync(ScopeName name) { + DeleteScopeRequest request = + DeleteScopeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteScopeAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Scope. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   String name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString();
            +   *   gkeHubClient.deleteScopeAsync(name).get();
            +   * }
            +   * }
            + * + * @param name Required. The Scope resource name in the format + * `projects/*/locations/*/scopes/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteScopeAsync(String name) { + DeleteScopeRequest request = DeleteScopeRequest.newBuilder().setName(name).build(); + return deleteScopeAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Scope. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   DeleteScopeRequest request =
            +   *       DeleteScopeRequest.newBuilder()
            +   *           .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
            +   *           .build();
            +   *   gkeHubClient.deleteScopeAsync(request).get();
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteScopeAsync( + DeleteScopeRequest request) { + return deleteScopeOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Scope. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   DeleteScopeRequest request =
            +   *       DeleteScopeRequest.newBuilder()
            +   *           .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
            +   *           .build();
            +   *   OperationFuture future =
            +   *       gkeHubClient.deleteScopeOperationCallable().futureCall(request);
            +   *   // Do something.
            +   *   future.get();
            +   * }
            +   * }
            + */ + public final OperationCallable + deleteScopeOperationCallable() { + return stub.deleteScopeOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Scope. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   DeleteScopeRequest request =
            +   *       DeleteScopeRequest.newBuilder()
            +   *           .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
            +   *           .build();
            +   *   ApiFuture future = gkeHubClient.deleteScopeCallable().futureCall(request);
            +   *   // Do something.
            +   *   future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable deleteScopeCallable() { + return stub.deleteScopeCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Scopes. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
            +   *   for (Scope element : gkeHubClient.listScopes(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The parent (project and location) where the Scope will be listed. + * Specified in the format `projects/*/locations/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListScopesPagedResponse listScopes(LocationName parent) { + ListScopesRequest request = + ListScopesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listScopes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Scopes. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
            +   *   for (Scope element : gkeHubClient.listScopes(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The parent (project and location) where the Scope will be listed. + * Specified in the format `projects/*/locations/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListScopesPagedResponse listScopes(String parent) { + ListScopesRequest request = ListScopesRequest.newBuilder().setParent(parent).build(); + return listScopes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Scopes. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   ListScopesRequest request =
            +   *       ListScopesRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   for (Scope element : gkeHubClient.listScopes(request).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListScopesPagedResponse listScopes(ListScopesRequest request) { + return listScopesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Scopes. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   ListScopesRequest request =
            +   *       ListScopesRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   ApiFuture future = gkeHubClient.listScopesPagedCallable().futureCall(request);
            +   *   // Do something.
            +   *   for (Scope element : future.get().iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable listScopesPagedCallable() { + return stub.listScopesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Scopes. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   ListScopesRequest request =
            +   *       ListScopesRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   while (true) {
            +   *     ListScopesResponse response = gkeHubClient.listScopesCallable().call(request);
            +   *     for (Scope element : response.getScopesList()) {
            +   *       // doThingsWith(element);
            +   *     }
            +   *     String nextPageToken = response.getNextPageToken();
            +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
            +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
            +   *     } else {
            +   *       break;
            +   *     }
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable listScopesCallable() { + return stub.listScopesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists permitted Scopes. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
            +   *   for (Scope element : gkeHubClient.listPermittedScopes(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The parent (project and location) where the Scope will be listed. + * Specified in the format `projects/*/locations/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPermittedScopesPagedResponse listPermittedScopes(LocationName parent) { + ListPermittedScopesRequest request = + ListPermittedScopesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listPermittedScopes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists permitted Scopes. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
            +   *   for (Scope element : gkeHubClient.listPermittedScopes(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The parent (project and location) where the Scope will be listed. + * Specified in the format `projects/*/locations/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPermittedScopesPagedResponse listPermittedScopes(String parent) { + ListPermittedScopesRequest request = + ListPermittedScopesRequest.newBuilder().setParent(parent).build(); + return listPermittedScopes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists permitted Scopes. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   ListPermittedScopesRequest request =
            +   *       ListPermittedScopesRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   for (Scope element : gkeHubClient.listPermittedScopes(request).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPermittedScopesPagedResponse listPermittedScopes( + ListPermittedScopesRequest request) { + return listPermittedScopesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists permitted Scopes. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   ListPermittedScopesRequest request =
            +   *       ListPermittedScopesRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   ApiFuture future = gkeHubClient.listPermittedScopesPagedCallable().futureCall(request);
            +   *   // Do something.
            +   *   for (Scope element : future.get().iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + listPermittedScopesPagedCallable() { + return stub.listPermittedScopesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists permitted Scopes. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   ListPermittedScopesRequest request =
            +   *       ListPermittedScopesRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   while (true) {
            +   *     ListPermittedScopesResponse response =
            +   *         gkeHubClient.listPermittedScopesCallable().call(request);
            +   *     for (Scope element : response.getScopesList()) {
            +   *       // doThingsWith(element);
            +   *     }
            +   *     String nextPageToken = response.getNextPageToken();
            +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
            +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
            +   *     } else {
            +   *       break;
            +   *     }
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + listPermittedScopesCallable() { + return stub.listPermittedScopesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a MembershipBinding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   MembershipBindingName name =
            +   *       MembershipBindingName.of(
            +   *           "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]");
            +   *   MembershipBinding response = gkeHubClient.getMembershipBinding(name);
            +   * }
            +   * }
            + * + * @param name Required. The MembershipBinding resource name in the format + * `projects/*/locations/*/memberships/*/bindings/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MembershipBinding getMembershipBinding(MembershipBindingName name) { + GetMembershipBindingRequest request = + GetMembershipBindingRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getMembershipBinding(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a MembershipBinding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   String name =
            +   *       MembershipBindingName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]")
            +   *           .toString();
            +   *   MembershipBinding response = gkeHubClient.getMembershipBinding(name);
            +   * }
            +   * }
            + * + * @param name Required. The MembershipBinding resource name in the format + * `projects/*/locations/*/memberships/*/bindings/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MembershipBinding getMembershipBinding(String name) { + GetMembershipBindingRequest request = + GetMembershipBindingRequest.newBuilder().setName(name).build(); + return getMembershipBinding(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a MembershipBinding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   GetMembershipBindingRequest request =
            +   *       GetMembershipBindingRequest.newBuilder()
            +   *           .setName(
            +   *               MembershipBindingName.of(
            +   *                       "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]")
            +   *                   .toString())
            +   *           .build();
            +   *   MembershipBinding response = gkeHubClient.getMembershipBinding(request);
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MembershipBinding getMembershipBinding(GetMembershipBindingRequest request) { + return getMembershipBindingCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details of a MembershipBinding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   GetMembershipBindingRequest request =
            +   *       GetMembershipBindingRequest.newBuilder()
            +   *           .setName(
            +   *               MembershipBindingName.of(
            +   *                       "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]")
            +   *                   .toString())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       gkeHubClient.getMembershipBindingCallable().futureCall(request);
            +   *   // Do something.
            +   *   MembershipBinding response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + getMembershipBindingCallable() { + return stub.getMembershipBindingCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a MembershipBinding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
            +   *   MembershipBinding membershipBinding = MembershipBinding.newBuilder().build();
            +   *   String membershipBindingId = "membershipBindingId1360802634";
            +   *   MembershipBinding response =
            +   *       gkeHubClient
            +   *           .createMembershipBindingAsync(parent, membershipBinding, membershipBindingId)
            +   *           .get();
            +   * }
            +   * }
            + * + * @param parent Required. The parent (project and location) where the MembershipBinding will be + * created. Specified in the format `projects/*/locations/*/memberships/*`. + * @param membershipBinding Required. The MembershipBinding to create. + * @param membershipBindingId Required. The ID to use for the MembershipBinding. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createMembershipBindingAsync( + MembershipName parent, MembershipBinding membershipBinding, String membershipBindingId) { + CreateMembershipBindingRequest request = + CreateMembershipBindingRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setMembershipBinding(membershipBinding) + .setMembershipBindingId(membershipBindingId) + .build(); + return createMembershipBindingAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a MembershipBinding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   String parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString();
            +   *   MembershipBinding membershipBinding = MembershipBinding.newBuilder().build();
            +   *   String membershipBindingId = "membershipBindingId1360802634";
            +   *   MembershipBinding response =
            +   *       gkeHubClient
            +   *           .createMembershipBindingAsync(parent, membershipBinding, membershipBindingId)
            +   *           .get();
            +   * }
            +   * }
            + * + * @param parent Required. The parent (project and location) where the MembershipBinding will be + * created. Specified in the format `projects/*/locations/*/memberships/*`. + * @param membershipBinding Required. The MembershipBinding to create. + * @param membershipBindingId Required. The ID to use for the MembershipBinding. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createMembershipBindingAsync( + String parent, MembershipBinding membershipBinding, String membershipBindingId) { + CreateMembershipBindingRequest request = + CreateMembershipBindingRequest.newBuilder() + .setParent(parent) + .setMembershipBinding(membershipBinding) + .setMembershipBindingId(membershipBindingId) + .build(); + return createMembershipBindingAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a MembershipBinding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   CreateMembershipBindingRequest request =
            +   *       CreateMembershipBindingRequest.newBuilder()
            +   *           .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
            +   *           .setMembershipBinding(MembershipBinding.newBuilder().build())
            +   *           .setMembershipBindingId("membershipBindingId1360802634")
                *           .build();
            -   *   ApiFuture future =
            -   *       gkeHubClient.listMembershipsPagedCallable().futureCall(request);
            +   *   MembershipBinding response = gkeHubClient.createMembershipBindingAsync(request).get();
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createMembershipBindingAsync( + CreateMembershipBindingRequest request) { + return createMembershipBindingOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a MembershipBinding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   CreateMembershipBindingRequest request =
            +   *       CreateMembershipBindingRequest.newBuilder()
            +   *           .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
            +   *           .setMembershipBinding(MembershipBinding.newBuilder().build())
            +   *           .setMembershipBindingId("membershipBindingId1360802634")
            +   *           .build();
            +   *   OperationFuture future =
            +   *       gkeHubClient.createMembershipBindingOperationCallable().futureCall(request);
                *   // Do something.
            -   *   for (Membership element : future.get().iterateAll()) {
            -   *     // doThingsWith(element);
            -   *   }
            +   *   MembershipBinding response = future.get();
                * }
                * }
            */ - public final UnaryCallable - listMembershipsPagedCallable() { - return stub.listMembershipsPagedCallable(); + public final OperationCallable< + CreateMembershipBindingRequest, MembershipBinding, OperationMetadata> + createMembershipBindingOperationCallable() { + return stub.createMembershipBindingOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Memberships in a given project and location. + * Creates a MembershipBinding. * *

            Sample code: * @@ -570,37 +6341,27 @@ public final ListMembershipsPagedResponse listMemberships(ListMembershipsRequest * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * ListMembershipsRequest request = - * ListMembershipsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") + * CreateMembershipBindingRequest request = + * CreateMembershipBindingRequest.newBuilder() + * .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + * .setMembershipBinding(MembershipBinding.newBuilder().build()) + * .setMembershipBindingId("membershipBindingId1360802634") * .build(); - * while (true) { - * ListMembershipsResponse response = gkeHubClient.listMembershipsCallable().call(request); - * for (Membership element : response.getResourcesList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * ApiFuture future = + * gkeHubClient.createMembershipBindingCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); * } * }

            */ - public final UnaryCallable - listMembershipsCallable() { - return stub.listMembershipsCallable(); + public final UnaryCallable + createMembershipBindingCallable() { + return stub.createMembershipBindingCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Features in a given project and location. + * Updates a MembershipBinding. * *

            Sample code: * @@ -611,28 +6372,30 @@ public final ListMembershipsPagedResponse listMemberships(ListMembershipsRequest * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * for (Feature element : gkeHubClient.listFeatures(parent).iterateAll()) { - * // doThingsWith(element); - * } + * MembershipBinding membershipBinding = MembershipBinding.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * MembershipBinding response = + * gkeHubClient.updateMembershipBindingAsync(membershipBinding, updateMask).get(); * } * } * - * @param parent Required. The parent (project and location) where the Features will be listed. - * Specified in the format `projects/*/locations/*`. + * @param membershipBinding Required. The MembershipBinding object with fields updated. + * @param updateMask Required. The fields to be updated. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFeaturesPagedResponse listFeatures(LocationName parent) { - ListFeaturesRequest request = - ListFeaturesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) + public final OperationFuture updateMembershipBindingAsync( + MembershipBinding membershipBinding, FieldMask updateMask) { + UpdateMembershipBindingRequest request = + UpdateMembershipBindingRequest.newBuilder() + .setMembershipBinding(membershipBinding) + .setUpdateMask(updateMask) .build(); - return listFeatures(request); + return updateMembershipBindingAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Features in a given project and location. + * Updates a MembershipBinding. * *

            Sample code: * @@ -643,25 +6406,26 @@ public final ListFeaturesPagedResponse listFeatures(LocationName parent) { * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * for (Feature element : gkeHubClient.listFeatures(parent).iterateAll()) { - * // doThingsWith(element); - * } + * UpdateMembershipBindingRequest request = + * UpdateMembershipBindingRequest.newBuilder() + * .setMembershipBinding(MembershipBinding.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .build(); + * MembershipBinding response = gkeHubClient.updateMembershipBindingAsync(request).get(); * } * } * - * @param parent Required. The parent (project and location) where the Features will be listed. - * Specified in the format `projects/*/locations/*`. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFeaturesPagedResponse listFeatures(String parent) { - ListFeaturesRequest request = ListFeaturesRequest.newBuilder().setParent(parent).build(); - return listFeatures(request); + public final OperationFuture updateMembershipBindingAsync( + UpdateMembershipBindingRequest request) { + return updateMembershipBindingOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Features in a given project and location. + * Updates a MembershipBinding. * *

            Sample code: * @@ -672,30 +6436,152 @@ public final ListFeaturesPagedResponse listFeatures(String parent) { * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * ListFeaturesRequest request = - * ListFeaturesRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") + * UpdateMembershipBindingRequest request = + * UpdateMembershipBindingRequest.newBuilder() + * .setMembershipBinding(MembershipBinding.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * for (Feature element : gkeHubClient.listFeatures(request).iterateAll()) { - * // doThingsWith(element); - * } + * OperationFuture future = + * gkeHubClient.updateMembershipBindingOperationCallable().futureCall(request); + * // Do something. + * MembershipBinding response = future.get(); + * } + * } + */ + public final OperationCallable< + UpdateMembershipBindingRequest, MembershipBinding, OperationMetadata> + updateMembershipBindingOperationCallable() { + return stub.updateMembershipBindingOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a MembershipBinding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   UpdateMembershipBindingRequest request =
            +   *       UpdateMembershipBindingRequest.newBuilder()
            +   *           .setMembershipBinding(MembershipBinding.newBuilder().build())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       gkeHubClient.updateMembershipBindingCallable().futureCall(request);
            +   *   // Do something.
            +   *   Operation response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + updateMembershipBindingCallable() { + return stub.updateMembershipBindingCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a MembershipBinding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   MembershipBindingName name =
            +   *       MembershipBindingName.of(
            +   *           "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]");
            +   *   gkeHubClient.deleteMembershipBindingAsync(name).get();
            +   * }
            +   * }
            + * + * @param name Required. The MembershipBinding resource name in the format + * `projects/*/locations/*/memberships/*/bindings/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteMembershipBindingAsync( + MembershipBindingName name) { + DeleteMembershipBindingRequest request = + DeleteMembershipBindingRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteMembershipBindingAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a MembershipBinding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   String name =
            +   *       MembershipBindingName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]")
            +   *           .toString();
            +   *   gkeHubClient.deleteMembershipBindingAsync(name).get();
            +   * }
            +   * }
            + * + * @param name Required. The MembershipBinding resource name in the format + * `projects/*/locations/*/memberships/*/bindings/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteMembershipBindingAsync(String name) { + DeleteMembershipBindingRequest request = + DeleteMembershipBindingRequest.newBuilder().setName(name).build(); + return deleteMembershipBindingAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a MembershipBinding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   DeleteMembershipBindingRequest request =
            +   *       DeleteMembershipBindingRequest.newBuilder()
            +   *           .setName(
            +   *               MembershipBindingName.of(
            +   *                       "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]")
            +   *                   .toString())
            +   *           .build();
            +   *   gkeHubClient.deleteMembershipBindingAsync(request).get();
                * }
                * }
            * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest request) { - return listFeaturesPagedCallable().call(request); + public final OperationFuture deleteMembershipBindingAsync( + DeleteMembershipBindingRequest request) { + return deleteMembershipBindingOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Features in a given project and location. + * Deletes a MembershipBinding. * *

            Sample code: * @@ -706,30 +6592,28 @@ public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest request) * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * ListFeaturesRequest request = - * ListFeaturesRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") + * DeleteMembershipBindingRequest request = + * DeleteMembershipBindingRequest.newBuilder() + * .setName( + * MembershipBindingName.of( + * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + * .toString()) * .build(); - * ApiFuture future = gkeHubClient.listFeaturesPagedCallable().futureCall(request); + * OperationFuture future = + * gkeHubClient.deleteMembershipBindingOperationCallable().futureCall(request); * // Do something. - * for (Feature element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * future.get(); * } * } */ - public final UnaryCallable - listFeaturesPagedCallable() { - return stub.listFeaturesPagedCallable(); + public final OperationCallable + deleteMembershipBindingOperationCallable() { + return stub.deleteMembershipBindingOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Features in a given project and location. + * Deletes a MembershipBinding. * *

            Sample code: * @@ -740,36 +6624,60 @@ public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest request) * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * ListFeaturesRequest request = - * ListFeaturesRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") + * DeleteMembershipBindingRequest request = + * DeleteMembershipBindingRequest.newBuilder() + * .setName( + * MembershipBindingName.of( + * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + * .toString()) * .build(); - * while (true) { - * ListFeaturesResponse response = gkeHubClient.listFeaturesCallable().call(request); - * for (Feature element : response.getResourcesList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } + * ApiFuture future = + * gkeHubClient.deleteMembershipBindingCallable().futureCall(request); + * // Do something. + * future.get(); + * } + * } + */ + public final UnaryCallable + deleteMembershipBindingCallable() { + return stub.deleteMembershipBindingCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists MembershipBindings. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            +   *   MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
            +   *   for (MembershipBinding element : gkeHubClient.listMembershipBindings(parent).iterateAll()) {
            +   *     // doThingsWith(element);
                *   }
                * }
                * }
            + * + * @param parent Required. The parent Membership for which the MembershipBindings will be listed. + * Specified in the format `projects/*/locations/*/memberships/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable listFeaturesCallable() { - return stub.listFeaturesCallable(); + public final ListMembershipBindingsPagedResponse listMembershipBindings(MembershipName parent) { + ListMembershipBindingsRequest request = + ListMembershipBindingsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listMembershipBindings(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of a Membership. + * Lists MembershipBindings. * *

            Sample code: * @@ -780,24 +6688,26 @@ public final UnaryCallable listFeatur * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); - * Membership response = gkeHubClient.getMembership(name); + * String parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString(); + * for (MembershipBinding element : gkeHubClient.listMembershipBindings(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. The Membership resource name in the format - * `projects/*/locations/*/memberships/*`. + * @param parent Required. The parent Membership for which the MembershipBindings will be listed. + * Specified in the format `projects/*/locations/*/memberships/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Membership getMembership(MembershipName name) { - GetMembershipRequest request = - GetMembershipRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getMembership(request); + public final ListMembershipBindingsPagedResponse listMembershipBindings(String parent) { + ListMembershipBindingsRequest request = + ListMembershipBindingsRequest.newBuilder().setParent(parent).build(); + return listMembershipBindings(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of a Membership. + * Lists MembershipBindings. * *

            Sample code: * @@ -808,23 +6718,30 @@ public final Membership getMembership(MembershipName name) { * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString(); - * Membership response = gkeHubClient.getMembership(name); + * ListMembershipBindingsRequest request = + * ListMembershipBindingsRequest.newBuilder() + * .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .build(); + * for (MembershipBinding element : gkeHubClient.listMembershipBindings(request).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. The Membership resource name in the format - * `projects/*/locations/*/memberships/*`. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Membership getMembership(String name) { - GetMembershipRequest request = GetMembershipRequest.newBuilder().setName(name).build(); - return getMembership(request); + public final ListMembershipBindingsPagedResponse listMembershipBindings( + ListMembershipBindingsRequest request) { + return listMembershipBindingsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of a Membership. + * Lists MembershipBindings. * *

            Sample code: * @@ -835,24 +6752,30 @@ public final Membership getMembership(String name) { * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * GetMembershipRequest request = - * GetMembershipRequest.newBuilder() - * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + * ListMembershipBindingsRequest request = + * ListMembershipBindingsRequest.newBuilder() + * .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") * .build(); - * Membership response = gkeHubClient.getMembership(request); + * ApiFuture future = + * gkeHubClient.listMembershipBindingsPagedCallable().futureCall(request); + * // Do something. + * for (MembershipBinding element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Membership getMembership(GetMembershipRequest request) { - return getMembershipCallable().call(request); + public final UnaryCallable + listMembershipBindingsPagedCallable() { + return stub.listMembershipBindingsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the details of a Membership. + * Lists MembershipBindings. * *

            Sample code: * @@ -863,23 +6786,37 @@ public final Membership getMembership(GetMembershipRequest request) { * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * GetMembershipRequest request = - * GetMembershipRequest.newBuilder() - * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + * ListMembershipBindingsRequest request = + * ListMembershipBindingsRequest.newBuilder() + * .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = gkeHubClient.getMembershipCallable().futureCall(request); - * // Do something. - * Membership response = future.get(); + * while (true) { + * ListMembershipBindingsResponse response = + * gkeHubClient.listMembershipBindingsCallable().call(request); + * for (MembershipBinding element : response.getMembershipBindingsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } */ - public final UnaryCallable getMembershipCallable() { - return stub.getMembershipCallable(); + public final UnaryCallable + listMembershipBindingsCallable() { + return stub.listMembershipBindingsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Feature. + * Returns the details of a Membership RBACRoleBinding. * *

            Sample code: * @@ -890,24 +6827,28 @@ public final UnaryCallable getMembershipCallab * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]"); - * Feature response = gkeHubClient.getFeature(name); + * RBACRoleBindingName name = + * RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]"); + * RBACRoleBinding response = gkeHubClient.getMembershipRBACRoleBinding(name); * } * } * - * @param name Required. The Feature resource name in the format - * `projects/*/locations/*/features/*` + * @param name Required. The RBACRoleBinding resource name in the format + * `projects/*/locations/*/memberships/*/rbacrolebindings/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Feature getFeature(FeatureName name) { - GetFeatureRequest request = - GetFeatureRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getFeature(request); + public final RBACRoleBinding getMembershipRBACRoleBinding(RBACRoleBindingName name) { + GetMembershipRBACRoleBindingRequest request = + GetMembershipRBACRoleBindingRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getMembershipRBACRoleBinding(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Feature. + * Returns the details of a Membership RBACRoleBinding. * *

            Sample code: * @@ -918,23 +6859,27 @@ public final Feature getFeature(FeatureName name) { * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString(); - * Feature response = gkeHubClient.getFeature(name); + * String name = + * RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + * "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + * .toString(); + * RBACRoleBinding response = gkeHubClient.getMembershipRBACRoleBinding(name); * } * } * - * @param name Required. The Feature resource name in the format - * `projects/*/locations/*/features/*` + * @param name Required. The RBACRoleBinding resource name in the format + * `projects/*/locations/*/memberships/*/rbacrolebindings/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Feature getFeature(String name) { - GetFeatureRequest request = GetFeatureRequest.newBuilder().setName(name).build(); - return getFeature(request); + public final RBACRoleBinding getMembershipRBACRoleBinding(String name) { + GetMembershipRBACRoleBindingRequest request = + GetMembershipRBACRoleBindingRequest.newBuilder().setName(name).build(); + return getMembershipRBACRoleBinding(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Feature. + * Returns the details of a Membership RBACRoleBinding. * *

            Sample code: * @@ -945,24 +6890,28 @@ public final Feature getFeature(String name) { * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * GetFeatureRequest request = - * GetFeatureRequest.newBuilder() - * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) + * GetMembershipRBACRoleBindingRequest request = + * GetMembershipRBACRoleBindingRequest.newBuilder() + * .setName( + * RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + * .toString()) * .build(); - * Feature response = gkeHubClient.getFeature(request); + * RBACRoleBinding response = gkeHubClient.getMembershipRBACRoleBinding(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Feature getFeature(GetFeatureRequest request) { - return getFeatureCallable().call(request); + public final RBACRoleBinding getMembershipRBACRoleBinding( + GetMembershipRBACRoleBindingRequest request) { + return getMembershipRBACRoleBindingCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Feature. + * Returns the details of a Membership RBACRoleBinding. * *

            Sample code: * @@ -973,27 +6922,28 @@ public final Feature getFeature(GetFeatureRequest request) { * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * GetFeatureRequest request = - * GetFeatureRequest.newBuilder() - * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) + * GetMembershipRBACRoleBindingRequest request = + * GetMembershipRBACRoleBindingRequest.newBuilder() + * .setName( + * RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + * .toString()) * .build(); - * ApiFuture future = gkeHubClient.getFeatureCallable().futureCall(request); + * ApiFuture future = + * gkeHubClient.getMembershipRBACRoleBindingCallable().futureCall(request); * // Do something. - * Feature response = future.get(); + * RBACRoleBinding response = future.get(); * } * } */ - public final UnaryCallable getFeatureCallable() { - return stub.getFeatureCallable(); + public final UnaryCallable + getMembershipRBACRoleBindingCallable() { + return stub.getMembershipRBACRoleBindingCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Membership. - * - *

            **This is currently only supported for GKE clusters on Google Cloud**. To - * register other clusters, follow the instructions at - * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster. + * Creates a Membership RBACRoleBinding. * *

            Sample code: * @@ -1004,43 +6954,42 @@ public final UnaryCallable getFeatureCallable() { * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * Membership resource = Membership.newBuilder().build(); - * String membershipId = "membershipId517665681"; - * Membership response = - * gkeHubClient.createMembershipAsync(parent, resource, membershipId).get(); + * MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + * RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + * String rbacrolebindingId = "rbacrolebindingId827577784"; + * RBACRoleBinding response = + * gkeHubClient + * .createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId) + * .get(); * } * } * - * @param parent Required. The parent (project and location) where the Memberships will be - * created. Specified in the format `projects/*/locations/*`. - * @param resource Required. The membership to create. - * @param membershipId Required. Client chosen ID for the membership. `membership_id` must be a - * valid RFC 1123 compliant DNS label: + * @param parent Required. The parent (project and location) where the RBACRoleBinding will be + * created. Specified in the format `projects/*/locations/*/memberships/*`. + * @param rbacrolebinding Required. The rbacrolebindings to create. + * @param rbacrolebindingId Required. Client chosen ID for the RBACRoleBinding. + * `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS label: *

            1. At most 63 characters in length 2. It must consist of lower case alphanumeric * characters or `-` 3. It must start and end with an alphanumeric character *

            Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum * length of 63 characters. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createMembershipAsync( - LocationName parent, Membership resource, String membershipId) { - CreateMembershipRequest request = - CreateMembershipRequest.newBuilder() + public final OperationFuture + createMembershipRBACRoleBindingAsync( + MembershipName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) { + CreateMembershipRBACRoleBindingRequest request = + CreateMembershipRBACRoleBindingRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) - .setResource(resource) - .setMembershipId(membershipId) + .setRbacrolebinding(rbacrolebinding) + .setRbacrolebindingId(rbacrolebindingId) .build(); - return createMembershipAsync(request); + return createMembershipRBACRoleBindingAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Membership. - * - *

            **This is currently only supported for GKE clusters on Google Cloud**. To - * register other clusters, follow the instructions at - * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster. + * Creates a Membership RBACRoleBinding. * *

            Sample code: * @@ -1051,43 +7000,42 @@ public final OperationFuture createMembershipAsyn * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * Membership resource = Membership.newBuilder().build(); - * String membershipId = "membershipId517665681"; - * Membership response = - * gkeHubClient.createMembershipAsync(parent, resource, membershipId).get(); + * ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + * RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + * String rbacrolebindingId = "rbacrolebindingId827577784"; + * RBACRoleBinding response = + * gkeHubClient + * .createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId) + * .get(); * } * } * - * @param parent Required. The parent (project and location) where the Memberships will be - * created. Specified in the format `projects/*/locations/*`. - * @param resource Required. The membership to create. - * @param membershipId Required. Client chosen ID for the membership. `membership_id` must be a - * valid RFC 1123 compliant DNS label: + * @param parent Required. The parent (project and location) where the RBACRoleBinding will be + * created. Specified in the format `projects/*/locations/*/memberships/*`. + * @param rbacrolebinding Required. The rbacrolebindings to create. + * @param rbacrolebindingId Required. Client chosen ID for the RBACRoleBinding. + * `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS label: *

            1. At most 63 characters in length 2. It must consist of lower case alphanumeric * characters or `-` 3. It must start and end with an alphanumeric character *

            Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum * length of 63 characters. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createMembershipAsync( - String parent, Membership resource, String membershipId) { - CreateMembershipRequest request = - CreateMembershipRequest.newBuilder() - .setParent(parent) - .setResource(resource) - .setMembershipId(membershipId) + public final OperationFuture + createMembershipRBACRoleBindingAsync( + ScopeName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) { + CreateMembershipRBACRoleBindingRequest request = + CreateMembershipRBACRoleBindingRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setRbacrolebinding(rbacrolebinding) + .setRbacrolebindingId(rbacrolebindingId) .build(); - return createMembershipAsync(request); + return createMembershipRBACRoleBindingAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Membership. - * - *

            **This is currently only supported for GKE clusters on Google Cloud**. To - * register other clusters, follow the instructions at - * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster. + * Creates a Membership RBACRoleBinding. * *

            Sample code: * @@ -1098,32 +7046,42 @@ public final OperationFuture createMembershipAsyn * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * CreateMembershipRequest request = - * CreateMembershipRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setMembershipId("membershipId517665681") - * .setResource(Membership.newBuilder().build()) - * .setRequestId("requestId693933066") - * .build(); - * Membership response = gkeHubClient.createMembershipAsync(request).get(); + * String parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString(); + * RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + * String rbacrolebindingId = "rbacrolebindingId827577784"; + * RBACRoleBinding response = + * gkeHubClient + * .createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId) + * .get(); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The parent (project and location) where the RBACRoleBinding will be + * created. Specified in the format `projects/*/locations/*/memberships/*`. + * @param rbacrolebinding Required. The rbacrolebindings to create. + * @param rbacrolebindingId Required. Client chosen ID for the RBACRoleBinding. + * `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS label: + *

            1. At most 63 characters in length 2. It must consist of lower case alphanumeric + * characters or `-` 3. It must start and end with an alphanumeric character + *

            Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum + * length of 63 characters. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createMembershipAsync( - CreateMembershipRequest request) { - return createMembershipOperationCallable().futureCall(request); + public final OperationFuture + createMembershipRBACRoleBindingAsync( + String parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) { + CreateMembershipRBACRoleBindingRequest request = + CreateMembershipRBACRoleBindingRequest.newBuilder() + .setParent(parent) + .setRbacrolebinding(rbacrolebinding) + .setRbacrolebindingId(rbacrolebindingId) + .build(); + return createMembershipRBACRoleBindingAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Membership. - * - *

            **This is currently only supported for GKE clusters on Google Cloud**. To - * register other clusters, follow the instructions at - * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster. + * Creates a Membership RBACRoleBinding. * *

            Sample code: * @@ -1134,32 +7092,27 @@ public final OperationFuture createMembershipAsyn * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * CreateMembershipRequest request = - * CreateMembershipRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setMembershipId("membershipId517665681") - * .setResource(Membership.newBuilder().build()) - * .setRequestId("requestId693933066") + * CreateMembershipRBACRoleBindingRequest request = + * CreateMembershipRBACRoleBindingRequest.newBuilder() + * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + * .setRbacrolebindingId("rbacrolebindingId827577784") + * .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) * .build(); - * OperationFuture future = - * gkeHubClient.createMembershipOperationCallable().futureCall(request); - * // Do something. - * Membership response = future.get(); + * RBACRoleBinding response = gkeHubClient.createMembershipRBACRoleBindingAsync(request).get(); * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationCallable - createMembershipOperationCallable() { - return stub.createMembershipOperationCallable(); + public final OperationFuture + createMembershipRBACRoleBindingAsync(CreateMembershipRBACRoleBindingRequest request) { + return createMembershipRBACRoleBindingOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Membership. - * - *

            **This is currently only supported for GKE clusters on Google Cloud**. To - * register other clusters, follow the instructions at - * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster. + * Creates a Membership RBACRoleBinding. * *

            Sample code: * @@ -1170,26 +7123,28 @@ public final OperationFuture createMembershipAsyn * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * CreateMembershipRequest request = - * CreateMembershipRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setMembershipId("membershipId517665681") - * .setResource(Membership.newBuilder().build()) - * .setRequestId("requestId693933066") + * CreateMembershipRBACRoleBindingRequest request = + * CreateMembershipRBACRoleBindingRequest.newBuilder() + * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + * .setRbacrolebindingId("rbacrolebindingId827577784") + * .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) * .build(); - * ApiFuture future = gkeHubClient.createMembershipCallable().futureCall(request); + * OperationFuture future = + * gkeHubClient.createMembershipRBACRoleBindingOperationCallable().futureCall(request); * // Do something. - * Operation response = future.get(); + * RBACRoleBinding response = future.get(); * } * } */ - public final UnaryCallable createMembershipCallable() { - return stub.createMembershipCallable(); + public final OperationCallable< + CreateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createMembershipRBACRoleBindingOperationCallable() { + return stub.createMembershipRBACRoleBindingOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Adds a new Feature. + * Creates a Membership RBACRoleBinding. * *

            Sample code: * @@ -1200,33 +7155,27 @@ public final UnaryCallable createMembershipC * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * Feature resource = Feature.newBuilder().build(); - * String featureId = "featureId-420503887"; - * Feature response = gkeHubClient.createFeatureAsync(parent, resource, featureId).get(); + * CreateMembershipRBACRoleBindingRequest request = + * CreateMembershipRBACRoleBindingRequest.newBuilder() + * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + * .setRbacrolebindingId("rbacrolebindingId827577784") + * .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + * .build(); + * ApiFuture future = + * gkeHubClient.createMembershipRBACRoleBindingCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); * } * } - * - * @param parent Required. The parent (project and location) where the Feature will be created. - * Specified in the format `projects/*/locations/*`. - * @param resource The Feature resource to create. - * @param featureId The ID of the feature to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createFeatureAsync( - LocationName parent, Feature resource, String featureId) { - CreateFeatureRequest request = - CreateFeatureRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setResource(resource) - .setFeatureId(featureId) - .build(); - return createFeatureAsync(request); + public final UnaryCallable + createMembershipRBACRoleBindingCallable() { + return stub.createMembershipRBACRoleBindingCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Adds a new Feature. + * Updates a Membership RBACRoleBinding. * *

            Sample code: * @@ -1237,33 +7186,31 @@ public final OperationFuture createFeatureAsync( * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * Feature resource = Feature.newBuilder().build(); - * String featureId = "featureId-420503887"; - * Feature response = gkeHubClient.createFeatureAsync(parent, resource, featureId).get(); + * RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * RBACRoleBinding response = + * gkeHubClient.updateMembershipRBACRoleBindingAsync(rbacrolebinding, updateMask).get(); * } * } * - * @param parent Required. The parent (project and location) where the Feature will be created. - * Specified in the format `projects/*/locations/*`. - * @param resource The Feature resource to create. - * @param featureId The ID of the feature to create. + * @param rbacrolebinding Required. A rbacrolebinding with fields updated. The 'name' field in + * this rbacrolebinding is used to identify the resource to update. + * @param updateMask Required. The fields to be updated. * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createFeatureAsync( - String parent, Feature resource, String featureId) { - CreateFeatureRequest request = - CreateFeatureRequest.newBuilder() - .setParent(parent) - .setResource(resource) - .setFeatureId(featureId) + */ + public final OperationFuture + updateMembershipRBACRoleBindingAsync(RBACRoleBinding rbacrolebinding, FieldMask updateMask) { + UpdateMembershipRBACRoleBindingRequest request = + UpdateMembershipRBACRoleBindingRequest.newBuilder() + .setRbacrolebinding(rbacrolebinding) + .setUpdateMask(updateMask) .build(); - return createFeatureAsync(request); + return updateMembershipRBACRoleBindingAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Adds a new Feature. + * Updates a Membership RBACRoleBinding. * *

            Sample code: * @@ -1274,28 +7221,26 @@ public final OperationFuture createFeatureAsync( * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * CreateFeatureRequest request = - * CreateFeatureRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setFeatureId("featureId-420503887") - * .setResource(Feature.newBuilder().build()) - * .setRequestId("requestId693933066") + * UpdateMembershipRBACRoleBindingRequest request = + * UpdateMembershipRBACRoleBindingRequest.newBuilder() + * .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * Feature response = gkeHubClient.createFeatureAsync(request).get(); + * RBACRoleBinding response = gkeHubClient.updateMembershipRBACRoleBindingAsync(request).get(); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createFeatureAsync( - CreateFeatureRequest request) { - return createFeatureOperationCallable().futureCall(request); + public final OperationFuture + updateMembershipRBACRoleBindingAsync(UpdateMembershipRBACRoleBindingRequest request) { + return updateMembershipRBACRoleBindingOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Adds a new Feature. + * Updates a Membership RBACRoleBinding. * *

            Sample code: * @@ -1306,28 +7251,27 @@ public final OperationFuture createFeatureAsync( * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * CreateFeatureRequest request = - * CreateFeatureRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setFeatureId("featureId-420503887") - * .setResource(Feature.newBuilder().build()) - * .setRequestId("requestId693933066") + * UpdateMembershipRBACRoleBindingRequest request = + * UpdateMembershipRBACRoleBindingRequest.newBuilder() + * .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * OperationFuture future = - * gkeHubClient.createFeatureOperationCallable().futureCall(request); + * OperationFuture future = + * gkeHubClient.updateMembershipRBACRoleBindingOperationCallable().futureCall(request); * // Do something. - * Feature response = future.get(); + * RBACRoleBinding response = future.get(); * } * } */ - public final OperationCallable - createFeatureOperationCallable() { - return stub.createFeatureOperationCallable(); + public final OperationCallable< + UpdateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateMembershipRBACRoleBindingOperationCallable() { + return stub.updateMembershipRBACRoleBindingOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Adds a new Feature. + * Updates a Membership RBACRoleBinding. * *

            Sample code: * @@ -1338,30 +7282,26 @@ public final OperationFuture createFeatureAsync( * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * CreateFeatureRequest request = - * CreateFeatureRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setFeatureId("featureId-420503887") - * .setResource(Feature.newBuilder().build()) - * .setRequestId("requestId693933066") + * UpdateMembershipRBACRoleBindingRequest request = + * UpdateMembershipRBACRoleBindingRequest.newBuilder() + * .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * ApiFuture future = gkeHubClient.createFeatureCallable().futureCall(request); + * ApiFuture future = + * gkeHubClient.updateMembershipRBACRoleBindingCallable().futureCall(request); * // Do something. * Operation response = future.get(); * } * } */ - public final UnaryCallable createFeatureCallable() { - return stub.createFeatureCallable(); + public final UnaryCallable + updateMembershipRBACRoleBindingCallable() { + return stub.updateMembershipRBACRoleBindingCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Removes a Membership. - * - *

            **This is currently only supported for GKE clusters on Google Cloud**. To - * unregister other clusters, follow the instructions at - * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster. + * Deletes a Membership RBACRoleBinding. * *

            Sample code: * @@ -1372,29 +7312,29 @@ public final UnaryCallable createFeatureCallabl * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); - * gkeHubClient.deleteMembershipAsync(name).get(); + * RBACRoleBindingName name = + * RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]"); + * gkeHubClient.deleteMembershipRBACRoleBindingAsync(name).get(); * } * } * - * @param name Required. The Membership resource name in the format - * `projects/*/locations/*/memberships/*`. + * @param name Required. The RBACRoleBinding resource name in the format + * `projects/*/locations/*/memberships/*/rbacrolebindings/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteMembershipAsync( - MembershipName name) { - DeleteMembershipRequest request = - DeleteMembershipRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return deleteMembershipAsync(request); + public final OperationFuture deleteMembershipRBACRoleBindingAsync( + RBACRoleBindingName name) { + DeleteMembershipRBACRoleBindingRequest request = + DeleteMembershipRBACRoleBindingRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteMembershipRBACRoleBindingAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Removes a Membership. - * - *

            **This is currently only supported for GKE clusters on Google Cloud**. To - * unregister other clusters, follow the instructions at - * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster. + * Deletes a Membership RBACRoleBinding. * *

            Sample code: * @@ -1405,27 +7345,28 @@ public final OperationFuture deleteMembershipAsync( * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString(); - * gkeHubClient.deleteMembershipAsync(name).get(); + * String name = + * RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + * "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + * .toString(); + * gkeHubClient.deleteMembershipRBACRoleBindingAsync(name).get(); * } * } * - * @param name Required. The Membership resource name in the format - * `projects/*/locations/*/memberships/*`. + * @param name Required. The RBACRoleBinding resource name in the format + * `projects/*/locations/*/memberships/*/rbacrolebindings/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteMembershipAsync(String name) { - DeleteMembershipRequest request = DeleteMembershipRequest.newBuilder().setName(name).build(); - return deleteMembershipAsync(request); + public final OperationFuture deleteMembershipRBACRoleBindingAsync( + String name) { + DeleteMembershipRBACRoleBindingRequest request = + DeleteMembershipRBACRoleBindingRequest.newBuilder().setName(name).build(); + return deleteMembershipRBACRoleBindingAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Removes a Membership. - * - *

            **This is currently only supported for GKE clusters on Google Cloud**. To - * unregister other clusters, follow the instructions at - * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster. + * Deletes a Membership RBACRoleBinding. * *

            Sample code: * @@ -1436,31 +7377,28 @@ public final OperationFuture deleteMembershipAsync(Str * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * DeleteMembershipRequest request = - * DeleteMembershipRequest.newBuilder() - * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) - * .setRequestId("requestId693933066") - * .setForce(true) + * DeleteMembershipRBACRoleBindingRequest request = + * DeleteMembershipRBACRoleBindingRequest.newBuilder() + * .setName( + * RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + * .toString()) * .build(); - * gkeHubClient.deleteMembershipAsync(request).get(); + * gkeHubClient.deleteMembershipRBACRoleBindingAsync(request).get(); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteMembershipAsync( - DeleteMembershipRequest request) { - return deleteMembershipOperationCallable().futureCall(request); + public final OperationFuture deleteMembershipRBACRoleBindingAsync( + DeleteMembershipRBACRoleBindingRequest request) { + return deleteMembershipRBACRoleBindingOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Removes a Membership. - * - *

            **This is currently only supported for GKE clusters on Google Cloud**. To - * unregister other clusters, follow the instructions at - * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster. + * Deletes a Membership RBACRoleBinding. * *

            Sample code: * @@ -1471,31 +7409,28 @@ public final OperationFuture deleteMembershipAsync( * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * DeleteMembershipRequest request = - * DeleteMembershipRequest.newBuilder() - * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) - * .setRequestId("requestId693933066") - * .setForce(true) + * DeleteMembershipRBACRoleBindingRequest request = + * DeleteMembershipRBACRoleBindingRequest.newBuilder() + * .setName( + * RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + * .toString()) * .build(); * OperationFuture future = - * gkeHubClient.deleteMembershipOperationCallable().futureCall(request); + * gkeHubClient.deleteMembershipRBACRoleBindingOperationCallable().futureCall(request); * // Do something. * future.get(); * } * } */ - public final OperationCallable - deleteMembershipOperationCallable() { - return stub.deleteMembershipOperationCallable(); + public final OperationCallable + deleteMembershipRBACRoleBindingOperationCallable() { + return stub.deleteMembershipRBACRoleBindingOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Removes a Membership. - * - *

            **This is currently only supported for GKE clusters on Google Cloud**. To - * unregister other clusters, follow the instructions at - * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster. + * Deletes a Membership RBACRoleBinding. * *

            Sample code: * @@ -1506,25 +7441,28 @@ public final OperationFuture deleteMembershipAsync( * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * DeleteMembershipRequest request = - * DeleteMembershipRequest.newBuilder() - * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) - * .setRequestId("requestId693933066") - * .setForce(true) + * DeleteMembershipRBACRoleBindingRequest request = + * DeleteMembershipRBACRoleBindingRequest.newBuilder() + * .setName( + * RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + * .toString()) * .build(); - * ApiFuture future = gkeHubClient.deleteMembershipCallable().futureCall(request); + * ApiFuture future = + * gkeHubClient.deleteMembershipRBACRoleBindingCallable().futureCall(request); * // Do something. * future.get(); * } * } */ - public final UnaryCallable deleteMembershipCallable() { - return stub.deleteMembershipCallable(); + public final UnaryCallable + deleteMembershipRBACRoleBindingCallable() { + return stub.deleteMembershipRBACRoleBindingCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Removes a Feature. + * Lists all Membership RBACRoleBindings. * *

            Sample code: * @@ -1535,24 +7473,30 @@ public final UnaryCallable deleteMembershipC * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]"); - * gkeHubClient.deleteFeatureAsync(name).get(); + * MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + * for (RBACRoleBinding element : + * gkeHubClient.listMembershipRBACRoleBindings(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. The Feature resource name in the format - * `projects/*/locations/*/features/*`. + * @param parent Required. The parent (project and location) where the Features will be listed. + * Specified in the format `projects/*/locations/*/memberships/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteFeatureAsync(FeatureName name) { - DeleteFeatureRequest request = - DeleteFeatureRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return deleteFeatureAsync(request); + public final ListMembershipRBACRoleBindingsPagedResponse listMembershipRBACRoleBindings( + MembershipName parent) { + ListMembershipRBACRoleBindingsRequest request = + ListMembershipRBACRoleBindingsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listMembershipRBACRoleBindings(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Removes a Feature. + * Lists all Membership RBACRoleBindings. * *

            Sample code: * @@ -1563,23 +7507,30 @@ public final OperationFuture deleteFeatureAsync(Featur * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString(); - * gkeHubClient.deleteFeatureAsync(name).get(); + * ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + * for (RBACRoleBinding element : + * gkeHubClient.listMembershipRBACRoleBindings(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. The Feature resource name in the format - * `projects/*/locations/*/features/*`. + * @param parent Required. The parent (project and location) where the Features will be listed. + * Specified in the format `projects/*/locations/*/memberships/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteFeatureAsync(String name) { - DeleteFeatureRequest request = DeleteFeatureRequest.newBuilder().setName(name).build(); - return deleteFeatureAsync(request); + public final ListMembershipRBACRoleBindingsPagedResponse listMembershipRBACRoleBindings( + ScopeName parent) { + ListMembershipRBACRoleBindingsRequest request = + ListMembershipRBACRoleBindingsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listMembershipRBACRoleBindings(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Removes a Feature. + * Lists all Membership RBACRoleBindings. * *

            Sample code: * @@ -1590,27 +7541,28 @@ public final OperationFuture deleteFeatureAsync(String * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * DeleteFeatureRequest request = - * DeleteFeatureRequest.newBuilder() - * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) - * .setForce(true) - * .setRequestId("requestId693933066") - * .build(); - * gkeHubClient.deleteFeatureAsync(request).get(); + * String parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString(); + * for (RBACRoleBinding element : + * gkeHubClient.listMembershipRBACRoleBindings(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The parent (project and location) where the Features will be listed. + * Specified in the format `projects/*/locations/*/memberships/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteFeatureAsync( - DeleteFeatureRequest request) { - return deleteFeatureOperationCallable().futureCall(request); + public final ListMembershipRBACRoleBindingsPagedResponse listMembershipRBACRoleBindings( + String parent) { + ListMembershipRBACRoleBindingsRequest request = + ListMembershipRBACRoleBindingsRequest.newBuilder().setParent(parent).build(); + return listMembershipRBACRoleBindings(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Removes a Feature. + * Lists all Membership RBACRoleBindings. * *

            Sample code: * @@ -1621,27 +7573,30 @@ public final OperationFuture deleteFeatureAsync( * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * DeleteFeatureRequest request = - * DeleteFeatureRequest.newBuilder() - * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) - * .setForce(true) - * .setRequestId("requestId693933066") + * ListMembershipRBACRoleBindingsRequest request = + * ListMembershipRBACRoleBindingsRequest.newBuilder() + * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * OperationFuture future = - * gkeHubClient.deleteFeatureOperationCallable().futureCall(request); - * // Do something. - * future.get(); + * for (RBACRoleBinding element : + * gkeHubClient.listMembershipRBACRoleBindings(request).iterateAll()) { + * // doThingsWith(element); + * } * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationCallable - deleteFeatureOperationCallable() { - return stub.deleteFeatureOperationCallable(); + public final ListMembershipRBACRoleBindingsPagedResponse listMembershipRBACRoleBindings( + ListMembershipRBACRoleBindingsRequest request) { + return listMembershipRBACRoleBindingsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Removes a Feature. + * Lists all Membership RBACRoleBindings. * *

            Sample code: * @@ -1652,67 +7607,30 @@ public final OperationFuture deleteFeatureAsync( * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * DeleteFeatureRequest request = - * DeleteFeatureRequest.newBuilder() - * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) - * .setForce(true) - * .setRequestId("requestId693933066") + * ListMembershipRBACRoleBindingsRequest request = + * ListMembershipRBACRoleBindingsRequest.newBuilder() + * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = gkeHubClient.deleteFeatureCallable().futureCall(request); + * ApiFuture future = + * gkeHubClient.listMembershipRBACRoleBindingsPagedCallable().futureCall(request); * // Do something. - * future.get(); - * } - * } - */ - public final UnaryCallable deleteFeatureCallable() { - return stub.deleteFeatureCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an existing Membership. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            -   *   MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
            -   *   Membership resource = Membership.newBuilder().build();
            -   *   FieldMask updateMask = FieldMask.newBuilder().build();
            -   *   Membership response = gkeHubClient.updateMembershipAsync(name, resource, updateMask).get();
            +   *   for (RBACRoleBinding element : future.get().iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
                * }
                * }
            - * - * @param name Required. The Membership resource name in the format - * `projects/*/locations/*/memberships/*`. - * @param resource Required. Only fields specified in update_mask are updated. If you specify a - * field in the update_mask but don't specify its value here that field will be deleted. If - * you are updating a map field, set the value of a key to null or empty string to delete the - * key from the map. It's not possible to update a key's value to the empty string. If you - * specify the update_mask to be a special path "*", fully replaces all user-modifiable - * fields to match `resource`. - * @param updateMask Required. Mask of fields to update. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture updateMembershipAsync( - MembershipName name, Membership resource, FieldMask updateMask) { - UpdateMembershipRequest request = - UpdateMembershipRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .setResource(resource) - .setUpdateMask(updateMask) - .build(); - return updateMembershipAsync(request); + public final UnaryCallable< + ListMembershipRBACRoleBindingsRequest, ListMembershipRBACRoleBindingsPagedResponse> + listMembershipRBACRoleBindingsPagedCallable() { + return stub.listMembershipRBACRoleBindingsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an existing Membership. + * Lists all Membership RBACRoleBindings. * *

            Sample code: * @@ -1723,38 +7641,38 @@ public final OperationFuture updateMembershipAsyn * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString(); - * Membership resource = Membership.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * Membership response = gkeHubClient.updateMembershipAsync(name, resource, updateMask).get(); + * ListMembershipRBACRoleBindingsRequest request = + * ListMembershipRBACRoleBindingsRequest.newBuilder() + * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * while (true) { + * ListMembershipRBACRoleBindingsResponse response = + * gkeHubClient.listMembershipRBACRoleBindingsCallable().call(request); + * for (RBACRoleBinding element : response.getRbacrolebindingsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } - * - * @param name Required. The Membership resource name in the format - * `projects/*/locations/*/memberships/*`. - * @param resource Required. Only fields specified in update_mask are updated. If you specify a - * field in the update_mask but don't specify its value here that field will be deleted. If - * you are updating a map field, set the value of a key to null or empty string to delete the - * key from the map. It's not possible to update a key's value to the empty string. If you - * specify the update_mask to be a special path "*", fully replaces all user-modifiable - * fields to match `resource`. - * @param updateMask Required. Mask of fields to update. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture updateMembershipAsync( - String name, Membership resource, FieldMask updateMask) { - UpdateMembershipRequest request = - UpdateMembershipRequest.newBuilder() - .setName(name) - .setResource(resource) - .setUpdateMask(updateMask) - .build(); - return updateMembershipAsync(request); + public final UnaryCallable< + ListMembershipRBACRoleBindingsRequest, ListMembershipRBACRoleBindingsResponse> + listMembershipRBACRoleBindingsCallable() { + return stub.listMembershipRBACRoleBindingsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an existing Membership. + * Generates a YAML of the RBAC policies for the specified RoleBinding and its associated + * impersonation resources. * *

            Sample code: * @@ -1765,28 +7683,29 @@ public final OperationFuture updateMembershipAsyn * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * UpdateMembershipRequest request = - * UpdateMembershipRequest.newBuilder() - * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setResource(Membership.newBuilder().build()) - * .setRequestId("requestId693933066") + * GenerateMembershipRBACRoleBindingYAMLRequest request = + * GenerateMembershipRBACRoleBindingYAMLRequest.newBuilder() + * .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + * .setRbacrolebindingId("rbacrolebindingId827577784") + * .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) * .build(); - * Membership response = gkeHubClient.updateMembershipAsync(request).get(); + * GenerateMembershipRBACRoleBindingYAMLResponse response = + * gkeHubClient.generateMembershipRBACRoleBindingYAML(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture updateMembershipAsync( - UpdateMembershipRequest request) { - return updateMembershipOperationCallable().futureCall(request); + public final GenerateMembershipRBACRoleBindingYAMLResponse generateMembershipRBACRoleBindingYAML( + GenerateMembershipRBACRoleBindingYAMLRequest request) { + return generateMembershipRBACRoleBindingYAMLCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an existing Membership. + * Generates a YAML of the RBAC policies for the specified RoleBinding and its associated + * impersonation resources. * *

            Sample code: * @@ -1797,488 +7716,869 @@ public final OperationFuture updateMembershipAsyn * // - It may require 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { - * UpdateMembershipRequest request = - * UpdateMembershipRequest.newBuilder() - * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setResource(Membership.newBuilder().build()) - * .setRequestId("requestId693933066") + * GenerateMembershipRBACRoleBindingYAMLRequest request = + * GenerateMembershipRBACRoleBindingYAMLRequest.newBuilder() + * .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + * .setRbacrolebindingId("rbacrolebindingId827577784") + * .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) * .build(); - * OperationFuture future = - * gkeHubClient.updateMembershipOperationCallable().futureCall(request); + * ApiFuture future = + * gkeHubClient.generateMembershipRBACRoleBindingYAMLCallable().futureCall(request); * // Do something. - * Membership response = future.get(); + * GenerateMembershipRBACRoleBindingYAMLResponse response = future.get(); * } * } */ - public final OperationCallable - updateMembershipOperationCallable() { - return stub.updateMembershipOperationCallable(); + public final UnaryCallable< + GenerateMembershipRBACRoleBindingYAMLRequest, + GenerateMembershipRBACRoleBindingYAMLResponse> + generateMembershipRBACRoleBindingYAMLCallable() { + return stub.generateMembershipRBACRoleBindingYAMLCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListMembershipsPagedResponse + extends AbstractPagedListResponse< + ListMembershipsRequest, + ListMembershipsResponse, + Membership, + ListMembershipsPage, + ListMembershipsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListMembershipsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListMembershipsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListMembershipsPagedResponse(ListMembershipsPage page) { + super(page, ListMembershipsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListMembershipsPage + extends AbstractPage< + ListMembershipsRequest, ListMembershipsResponse, Membership, ListMembershipsPage> { + + private ListMembershipsPage( + PageContext context, + ListMembershipsResponse response) { + super(context, response); + } + + private static ListMembershipsPage createEmptyPage() { + return new ListMembershipsPage(null, null); + } + + @Override + protected ListMembershipsPage createPage( + PageContext context, + ListMembershipsResponse response) { + return new ListMembershipsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListMembershipsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListMembershipsRequest, + ListMembershipsResponse, + Membership, + ListMembershipsPage, + ListMembershipsFixedSizeCollection> { + + private ListMembershipsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListMembershipsFixedSizeCollection createEmptyCollection() { + return new ListMembershipsFixedSizeCollection(null, 0); + } + + @Override + protected ListMembershipsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListMembershipsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListBoundMembershipsPagedResponse + extends AbstractPagedListResponse< + ListBoundMembershipsRequest, + ListBoundMembershipsResponse, + Membership, + ListBoundMembershipsPage, + ListBoundMembershipsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListBoundMembershipsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListBoundMembershipsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListBoundMembershipsPagedResponse(ListBoundMembershipsPage page) { + super(page, ListBoundMembershipsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListBoundMembershipsPage + extends AbstractPage< + ListBoundMembershipsRequest, + ListBoundMembershipsResponse, + Membership, + ListBoundMembershipsPage> { + + private ListBoundMembershipsPage( + PageContext context, + ListBoundMembershipsResponse response) { + super(context, response); + } + + private static ListBoundMembershipsPage createEmptyPage() { + return new ListBoundMembershipsPage(null, null); + } + + @Override + protected ListBoundMembershipsPage createPage( + PageContext context, + ListBoundMembershipsResponse response) { + return new ListBoundMembershipsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListBoundMembershipsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListBoundMembershipsRequest, + ListBoundMembershipsResponse, + Membership, + ListBoundMembershipsPage, + ListBoundMembershipsFixedSizeCollection> { + + private ListBoundMembershipsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListBoundMembershipsFixedSizeCollection createEmptyCollection() { + return new ListBoundMembershipsFixedSizeCollection(null, 0); + } + + @Override + protected ListBoundMembershipsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListBoundMembershipsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListFeaturesPagedResponse + extends AbstractPagedListResponse< + ListFeaturesRequest, + ListFeaturesResponse, + Feature, + ListFeaturesPage, + ListFeaturesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListFeaturesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListFeaturesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListFeaturesPagedResponse(ListFeaturesPage page) { + super(page, ListFeaturesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListFeaturesPage + extends AbstractPage { + + private ListFeaturesPage( + PageContext context, + ListFeaturesResponse response) { + super(context, response); + } + + private static ListFeaturesPage createEmptyPage() { + return new ListFeaturesPage(null, null); + } + + @Override + protected ListFeaturesPage createPage( + PageContext context, + ListFeaturesResponse response) { + return new ListFeaturesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListFeaturesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListFeaturesRequest, + ListFeaturesResponse, + Feature, + ListFeaturesPage, + ListFeaturesFixedSizeCollection> { + + private ListFeaturesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListFeaturesFixedSizeCollection createEmptyCollection() { + return new ListFeaturesFixedSizeCollection(null, 0); + } + + @Override + protected ListFeaturesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListFeaturesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListFleetsPagedResponse + extends AbstractPagedListResponse< + ListFleetsRequest, + ListFleetsResponse, + Fleet, + ListFleetsPage, + ListFleetsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListFleetsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListFleetsPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListFleetsPagedResponse(ListFleetsPage page) { + super(page, ListFleetsFixedSizeCollection.createEmptyCollection()); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an existing Membership. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            -   *   UpdateMembershipRequest request =
            -   *       UpdateMembershipRequest.newBuilder()
            -   *           .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
            -   *           .setUpdateMask(FieldMask.newBuilder().build())
            -   *           .setResource(Membership.newBuilder().build())
            -   *           .setRequestId("requestId693933066")
            -   *           .build();
            -   *   ApiFuture future = gkeHubClient.updateMembershipCallable().futureCall(request);
            -   *   // Do something.
            -   *   Operation response = future.get();
            -   * }
            -   * }
            - */ - public final UnaryCallable updateMembershipCallable() { - return stub.updateMembershipCallable(); + public static class ListFleetsPage + extends AbstractPage { + + private ListFleetsPage( + PageContext context, + ListFleetsResponse response) { + super(context, response); + } + + private static ListFleetsPage createEmptyPage() { + return new ListFleetsPage(null, null); + } + + @Override + protected ListFleetsPage createPage( + PageContext context, + ListFleetsResponse response) { + return new ListFleetsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an existing Feature. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            -   *   FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]");
            -   *   Feature resource = Feature.newBuilder().build();
            -   *   FieldMask updateMask = FieldMask.newBuilder().build();
            -   *   Feature response = gkeHubClient.updateFeatureAsync(name, resource, updateMask).get();
            -   * }
            -   * }
            - * - * @param name Required. The Feature resource name in the format - * `projects/*/locations/*/features/*`. - * @param resource Only fields specified in update_mask are updated. If you specify a field in the - * update_mask but don't specify its value here that field will be deleted. If you are - * updating a map field, set the value of a key to null or empty string to delete the key from - * the map. It's not possible to update a key's value to the empty string. If you specify the - * update_mask to be a special path "*", fully replaces all user-modifiable fields to - * match `resource`. - * @param updateMask Mask of fields to update. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture updateFeatureAsync( - FeatureName name, Feature resource, FieldMask updateMask) { - UpdateFeatureRequest request = - UpdateFeatureRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .setResource(resource) - .setUpdateMask(updateMask) - .build(); - return updateFeatureAsync(request); + public static class ListFleetsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListFleetsRequest, + ListFleetsResponse, + Fleet, + ListFleetsPage, + ListFleetsFixedSizeCollection> { + + private ListFleetsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListFleetsFixedSizeCollection createEmptyCollection() { + return new ListFleetsFixedSizeCollection(null, 0); + } + + @Override + protected ListFleetsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListFleetsFixedSizeCollection(pages, collectionSize); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an existing Feature. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            -   *   String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString();
            -   *   Feature resource = Feature.newBuilder().build();
            -   *   FieldMask updateMask = FieldMask.newBuilder().build();
            -   *   Feature response = gkeHubClient.updateFeatureAsync(name, resource, updateMask).get();
            -   * }
            -   * }
            - * - * @param name Required. The Feature resource name in the format - * `projects/*/locations/*/features/*`. - * @param resource Only fields specified in update_mask are updated. If you specify a field in the - * update_mask but don't specify its value here that field will be deleted. If you are - * updating a map field, set the value of a key to null or empty string to delete the key from - * the map. It's not possible to update a key's value to the empty string. If you specify the - * update_mask to be a special path "*", fully replaces all user-modifiable fields to - * match `resource`. - * @param updateMask Mask of fields to update. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture updateFeatureAsync( - String name, Feature resource, FieldMask updateMask) { - UpdateFeatureRequest request = - UpdateFeatureRequest.newBuilder() - .setName(name) - .setResource(resource) - .setUpdateMask(updateMask) - .build(); - return updateFeatureAsync(request); + public static class ListScopeNamespacesPagedResponse + extends AbstractPagedListResponse< + ListScopeNamespacesRequest, + ListScopeNamespacesResponse, + Namespace, + ListScopeNamespacesPage, + ListScopeNamespacesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListScopeNamespacesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListScopeNamespacesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListScopeNamespacesPagedResponse(ListScopeNamespacesPage page) { + super(page, ListScopeNamespacesFixedSizeCollection.createEmptyCollection()); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an existing Feature. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            -   *   UpdateFeatureRequest request =
            -   *       UpdateFeatureRequest.newBuilder()
            -   *           .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
            -   *           .setUpdateMask(FieldMask.newBuilder().build())
            -   *           .setResource(Feature.newBuilder().build())
            -   *           .setRequestId("requestId693933066")
            -   *           .build();
            -   *   Feature response = gkeHubClient.updateFeatureAsync(request).get();
            -   * }
            -   * }
            - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture updateFeatureAsync( - UpdateFeatureRequest request) { - return updateFeatureOperationCallable().futureCall(request); + public static class ListScopeNamespacesPage + extends AbstractPage< + ListScopeNamespacesRequest, + ListScopeNamespacesResponse, + Namespace, + ListScopeNamespacesPage> { + + private ListScopeNamespacesPage( + PageContext context, + ListScopeNamespacesResponse response) { + super(context, response); + } + + private static ListScopeNamespacesPage createEmptyPage() { + return new ListScopeNamespacesPage(null, null); + } + + @Override + protected ListScopeNamespacesPage createPage( + PageContext context, + ListScopeNamespacesResponse response) { + return new ListScopeNamespacesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an existing Feature. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            -   *   UpdateFeatureRequest request =
            -   *       UpdateFeatureRequest.newBuilder()
            -   *           .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
            -   *           .setUpdateMask(FieldMask.newBuilder().build())
            -   *           .setResource(Feature.newBuilder().build())
            -   *           .setRequestId("requestId693933066")
            -   *           .build();
            -   *   OperationFuture future =
            -   *       gkeHubClient.updateFeatureOperationCallable().futureCall(request);
            -   *   // Do something.
            -   *   Feature response = future.get();
            -   * }
            -   * }
            - */ - public final OperationCallable - updateFeatureOperationCallable() { - return stub.updateFeatureOperationCallable(); + public static class ListScopeNamespacesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListScopeNamespacesRequest, + ListScopeNamespacesResponse, + Namespace, + ListScopeNamespacesPage, + ListScopeNamespacesFixedSizeCollection> { + + private ListScopeNamespacesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListScopeNamespacesFixedSizeCollection createEmptyCollection() { + return new ListScopeNamespacesFixedSizeCollection(null, 0); + } + + @Override + protected ListScopeNamespacesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListScopeNamespacesFixedSizeCollection(pages, collectionSize); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an existing Feature. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            -   *   UpdateFeatureRequest request =
            -   *       UpdateFeatureRequest.newBuilder()
            -   *           .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
            -   *           .setUpdateMask(FieldMask.newBuilder().build())
            -   *           .setResource(Feature.newBuilder().build())
            -   *           .setRequestId("requestId693933066")
            -   *           .build();
            -   *   ApiFuture future = gkeHubClient.updateFeatureCallable().futureCall(request);
            -   *   // Do something.
            -   *   Operation response = future.get();
            -   * }
            -   * }
            - */ - public final UnaryCallable updateFeatureCallable() { - return stub.updateFeatureCallable(); + public static class ListScopeRBACRoleBindingsPagedResponse + extends AbstractPagedListResponse< + ListScopeRBACRoleBindingsRequest, + ListScopeRBACRoleBindingsResponse, + RBACRoleBinding, + ListScopeRBACRoleBindingsPage, + ListScopeRBACRoleBindingsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListScopeRBACRoleBindingsRequest, + ListScopeRBACRoleBindingsResponse, + RBACRoleBinding> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListScopeRBACRoleBindingsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListScopeRBACRoleBindingsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListScopeRBACRoleBindingsPagedResponse(ListScopeRBACRoleBindingsPage page) { + super(page, ListScopeRBACRoleBindingsFixedSizeCollection.createEmptyCollection()); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Generates the manifest for deployment of the GKE connect agent. - * - *

            **This method is used internally by Google-provided libraries.** Most - * clients should not need to call this method directly. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            -   *   GenerateConnectManifestRequest request =
            -   *       GenerateConnectManifestRequest.newBuilder()
            -   *           .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
            -   *           .setNamespace("namespace1252218203")
            -   *           .setProxy(ByteString.EMPTY)
            -   *           .setVersion("version351608024")
            -   *           .setIsUpgrade(true)
            -   *           .setRegistry("registry-690212803")
            -   *           .setImagePullSecretContent(ByteString.EMPTY)
            -   *           .build();
            -   *   GenerateConnectManifestResponse response = gkeHubClient.generateConnectManifest(request);
            -   * }
            -   * }
            - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final GenerateConnectManifestResponse generateConnectManifest( - GenerateConnectManifestRequest request) { - return generateConnectManifestCallable().call(request); + public static class ListScopeRBACRoleBindingsPage + extends AbstractPage< + ListScopeRBACRoleBindingsRequest, + ListScopeRBACRoleBindingsResponse, + RBACRoleBinding, + ListScopeRBACRoleBindingsPage> { + + private ListScopeRBACRoleBindingsPage( + PageContext< + ListScopeRBACRoleBindingsRequest, + ListScopeRBACRoleBindingsResponse, + RBACRoleBinding> + context, + ListScopeRBACRoleBindingsResponse response) { + super(context, response); + } + + private static ListScopeRBACRoleBindingsPage createEmptyPage() { + return new ListScopeRBACRoleBindingsPage(null, null); + } + + @Override + protected ListScopeRBACRoleBindingsPage createPage( + PageContext< + ListScopeRBACRoleBindingsRequest, + ListScopeRBACRoleBindingsResponse, + RBACRoleBinding> + context, + ListScopeRBACRoleBindingsResponse response) { + return new ListScopeRBACRoleBindingsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListScopeRBACRoleBindingsRequest, + ListScopeRBACRoleBindingsResponse, + RBACRoleBinding> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Generates the manifest for deployment of the GKE connect agent. - * - *

            **This method is used internally by Google-provided libraries.** Most - * clients should not need to call this method directly. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
            -   *   GenerateConnectManifestRequest request =
            -   *       GenerateConnectManifestRequest.newBuilder()
            -   *           .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
            -   *           .setNamespace("namespace1252218203")
            -   *           .setProxy(ByteString.EMPTY)
            -   *           .setVersion("version351608024")
            -   *           .setIsUpgrade(true)
            -   *           .setRegistry("registry-690212803")
            -   *           .setImagePullSecretContent(ByteString.EMPTY)
            -   *           .build();
            -   *   ApiFuture future =
            -   *       gkeHubClient.generateConnectManifestCallable().futureCall(request);
            -   *   // Do something.
            -   *   GenerateConnectManifestResponse response = future.get();
            -   * }
            -   * }
            - */ - public final UnaryCallable - generateConnectManifestCallable() { - return stub.generateConnectManifestCallable(); + public static class ListScopeRBACRoleBindingsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListScopeRBACRoleBindingsRequest, + ListScopeRBACRoleBindingsResponse, + RBACRoleBinding, + ListScopeRBACRoleBindingsPage, + ListScopeRBACRoleBindingsFixedSizeCollection> { + + private ListScopeRBACRoleBindingsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListScopeRBACRoleBindingsFixedSizeCollection createEmptyCollection() { + return new ListScopeRBACRoleBindingsFixedSizeCollection(null, 0); + } + + @Override + protected ListScopeRBACRoleBindingsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListScopeRBACRoleBindingsFixedSizeCollection(pages, collectionSize); + } } - @Override - public final void close() { - stub.close(); + public static class ListScopesPagedResponse + extends AbstractPagedListResponse< + ListScopesRequest, + ListScopesResponse, + Scope, + ListScopesPage, + ListScopesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListScopesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListScopesPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListScopesPagedResponse(ListScopesPage page) { + super(page, ListScopesFixedSizeCollection.createEmptyCollection()); + } } - @Override - public void shutdown() { - stub.shutdown(); + public static class ListScopesPage + extends AbstractPage { + + private ListScopesPage( + PageContext context, + ListScopesResponse response) { + super(context, response); + } + + private static ListScopesPage createEmptyPage() { + return new ListScopesPage(null, null); + } + + @Override + protected ListScopesPage createPage( + PageContext context, + ListScopesResponse response) { + return new ListScopesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } } - @Override - public boolean isShutdown() { - return stub.isShutdown(); + public static class ListScopesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListScopesRequest, + ListScopesResponse, + Scope, + ListScopesPage, + ListScopesFixedSizeCollection> { + + private ListScopesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListScopesFixedSizeCollection createEmptyCollection() { + return new ListScopesFixedSizeCollection(null, 0); + } + + @Override + protected ListScopesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListScopesFixedSizeCollection(pages, collectionSize); + } } - @Override - public boolean isTerminated() { - return stub.isTerminated(); + public static class ListPermittedScopesPagedResponse + extends AbstractPagedListResponse< + ListPermittedScopesRequest, + ListPermittedScopesResponse, + Scope, + ListPermittedScopesPage, + ListPermittedScopesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListPermittedScopesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListPermittedScopesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListPermittedScopesPagedResponse(ListPermittedScopesPage page) { + super(page, ListPermittedScopesFixedSizeCollection.createEmptyCollection()); + } } - @Override - public void shutdownNow() { - stub.shutdownNow(); + public static class ListPermittedScopesPage + extends AbstractPage< + ListPermittedScopesRequest, ListPermittedScopesResponse, Scope, ListPermittedScopesPage> { + + private ListPermittedScopesPage( + PageContext context, + ListPermittedScopesResponse response) { + super(context, response); + } + + private static ListPermittedScopesPage createEmptyPage() { + return new ListPermittedScopesPage(null, null); + } + + @Override + protected ListPermittedScopesPage createPage( + PageContext context, + ListPermittedScopesResponse response) { + return new ListPermittedScopesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } } - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); + public static class ListPermittedScopesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListPermittedScopesRequest, + ListPermittedScopesResponse, + Scope, + ListPermittedScopesPage, + ListPermittedScopesFixedSizeCollection> { + + private ListPermittedScopesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListPermittedScopesFixedSizeCollection createEmptyCollection() { + return new ListPermittedScopesFixedSizeCollection(null, 0); + } + + @Override + protected ListPermittedScopesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListPermittedScopesFixedSizeCollection(pages, collectionSize); + } } - public static class ListMembershipsPagedResponse + public static class ListMembershipBindingsPagedResponse extends AbstractPagedListResponse< - ListMembershipsRequest, - ListMembershipsResponse, - Membership, - ListMembershipsPage, - ListMembershipsFixedSizeCollection> { + ListMembershipBindingsRequest, + ListMembershipBindingsResponse, + MembershipBinding, + ListMembershipBindingsPage, + ListMembershipBindingsFixedSizeCollection> { - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListMembershipsPage.createEmptyPage().createPageAsync(context, futureResponse); + public static ApiFuture createAsync( + PageContext< + ListMembershipBindingsRequest, ListMembershipBindingsResponse, MembershipBinding> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListMembershipBindingsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - input -> new ListMembershipsPagedResponse(input), + input -> new ListMembershipBindingsPagedResponse(input), MoreExecutors.directExecutor()); } - private ListMembershipsPagedResponse(ListMembershipsPage page) { - super(page, ListMembershipsFixedSizeCollection.createEmptyCollection()); + private ListMembershipBindingsPagedResponse(ListMembershipBindingsPage page) { + super(page, ListMembershipBindingsFixedSizeCollection.createEmptyCollection()); } } - public static class ListMembershipsPage + public static class ListMembershipBindingsPage extends AbstractPage< - ListMembershipsRequest, ListMembershipsResponse, Membership, ListMembershipsPage> { + ListMembershipBindingsRequest, + ListMembershipBindingsResponse, + MembershipBinding, + ListMembershipBindingsPage> { - private ListMembershipsPage( - PageContext context, - ListMembershipsResponse response) { + private ListMembershipBindingsPage( + PageContext< + ListMembershipBindingsRequest, ListMembershipBindingsResponse, MembershipBinding> + context, + ListMembershipBindingsResponse response) { super(context, response); } - private static ListMembershipsPage createEmptyPage() { - return new ListMembershipsPage(null, null); + private static ListMembershipBindingsPage createEmptyPage() { + return new ListMembershipBindingsPage(null, null); } @Override - protected ListMembershipsPage createPage( - PageContext context, - ListMembershipsResponse response) { - return new ListMembershipsPage(context, response); + protected ListMembershipBindingsPage createPage( + PageContext< + ListMembershipBindingsRequest, ListMembershipBindingsResponse, MembershipBinding> + context, + ListMembershipBindingsResponse response) { + return new ListMembershipBindingsPage(context, response); } @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { + public ApiFuture createPageAsync( + PageContext< + ListMembershipBindingsRequest, ListMembershipBindingsResponse, MembershipBinding> + context, + ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } - public static class ListMembershipsFixedSizeCollection + public static class ListMembershipBindingsFixedSizeCollection extends AbstractFixedSizeCollection< - ListMembershipsRequest, - ListMembershipsResponse, - Membership, - ListMembershipsPage, - ListMembershipsFixedSizeCollection> { + ListMembershipBindingsRequest, + ListMembershipBindingsResponse, + MembershipBinding, + ListMembershipBindingsPage, + ListMembershipBindingsFixedSizeCollection> { - private ListMembershipsFixedSizeCollection( - List pages, int collectionSize) { + private ListMembershipBindingsFixedSizeCollection( + List pages, int collectionSize) { super(pages, collectionSize); } - private static ListMembershipsFixedSizeCollection createEmptyCollection() { - return new ListMembershipsFixedSizeCollection(null, 0); + private static ListMembershipBindingsFixedSizeCollection createEmptyCollection() { + return new ListMembershipBindingsFixedSizeCollection(null, 0); } @Override - protected ListMembershipsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListMembershipsFixedSizeCollection(pages, collectionSize); + protected ListMembershipBindingsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListMembershipBindingsFixedSizeCollection(pages, collectionSize); } } - public static class ListFeaturesPagedResponse + public static class ListMembershipRBACRoleBindingsPagedResponse extends AbstractPagedListResponse< - ListFeaturesRequest, - ListFeaturesResponse, - Feature, - ListFeaturesPage, - ListFeaturesFixedSizeCollection> { + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + RBACRoleBinding, + ListMembershipRBACRoleBindingsPage, + ListMembershipRBACRoleBindingsFixedSizeCollection> { - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListFeaturesPage.createEmptyPage().createPageAsync(context, futureResponse); + public static ApiFuture createAsync( + PageContext< + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + RBACRoleBinding> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListMembershipRBACRoleBindingsPage.createEmptyPage() + .createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - input -> new ListFeaturesPagedResponse(input), + input -> new ListMembershipRBACRoleBindingsPagedResponse(input), MoreExecutors.directExecutor()); } - private ListFeaturesPagedResponse(ListFeaturesPage page) { - super(page, ListFeaturesFixedSizeCollection.createEmptyCollection()); + private ListMembershipRBACRoleBindingsPagedResponse(ListMembershipRBACRoleBindingsPage page) { + super(page, ListMembershipRBACRoleBindingsFixedSizeCollection.createEmptyCollection()); } } - public static class ListFeaturesPage - extends AbstractPage { + public static class ListMembershipRBACRoleBindingsPage + extends AbstractPage< + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + RBACRoleBinding, + ListMembershipRBACRoleBindingsPage> { - private ListFeaturesPage( - PageContext context, - ListFeaturesResponse response) { + private ListMembershipRBACRoleBindingsPage( + PageContext< + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + RBACRoleBinding> + context, + ListMembershipRBACRoleBindingsResponse response) { super(context, response); } - private static ListFeaturesPage createEmptyPage() { - return new ListFeaturesPage(null, null); + private static ListMembershipRBACRoleBindingsPage createEmptyPage() { + return new ListMembershipRBACRoleBindingsPage(null, null); } @Override - protected ListFeaturesPage createPage( - PageContext context, - ListFeaturesResponse response) { - return new ListFeaturesPage(context, response); + protected ListMembershipRBACRoleBindingsPage createPage( + PageContext< + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + RBACRoleBinding> + context, + ListMembershipRBACRoleBindingsResponse response) { + return new ListMembershipRBACRoleBindingsPage(context, response); } @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { + public ApiFuture createPageAsync( + PageContext< + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + RBACRoleBinding> + context, + ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } - public static class ListFeaturesFixedSizeCollection + public static class ListMembershipRBACRoleBindingsFixedSizeCollection extends AbstractFixedSizeCollection< - ListFeaturesRequest, - ListFeaturesResponse, - Feature, - ListFeaturesPage, - ListFeaturesFixedSizeCollection> { + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + RBACRoleBinding, + ListMembershipRBACRoleBindingsPage, + ListMembershipRBACRoleBindingsFixedSizeCollection> { - private ListFeaturesFixedSizeCollection(List pages, int collectionSize) { + private ListMembershipRBACRoleBindingsFixedSizeCollection( + List pages, int collectionSize) { super(pages, collectionSize); } - private static ListFeaturesFixedSizeCollection createEmptyCollection() { - return new ListFeaturesFixedSizeCollection(null, 0); + private static ListMembershipRBACRoleBindingsFixedSizeCollection createEmptyCollection() { + return new ListMembershipRBACRoleBindingsFixedSizeCollection(null, 0); } @Override - protected ListFeaturesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListFeaturesFixedSizeCollection(pages, collectionSize); + protected ListMembershipRBACRoleBindingsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListMembershipRBACRoleBindingsFixedSizeCollection(pages, collectionSize); } } } diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java index 0911474e48b7..3cc4c50ddaee 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java @@ -16,8 +16,16 @@ package com.google.cloud.gkehub.v1; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListBoundMembershipsPagedResponse; import static com.google.cloud.gkehub.v1.GkeHubClient.ListFeaturesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListFleetsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipBindingsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipRBACRoleBindingsPagedResponse; import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListPermittedScopesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopeNamespacesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopeRBACRoleBindingsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopesPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; @@ -123,6 +131,15 @@ public class GkeHubSettings extends ClientSettings { return ((GkeHubStubSettings) getStubSettings()).listMembershipsSettings(); } + /** Returns the object with the settings used for calls to listBoundMemberships. */ + public PagedCallSettings< + ListBoundMembershipsRequest, + ListBoundMembershipsResponse, + ListBoundMembershipsPagedResponse> + listBoundMembershipsSettings() { + return ((GkeHubStubSettings) getStubSettings()).listBoundMembershipsSettings(); + } + /** Returns the object with the settings used for calls to listFeatures. */ public PagedCallSettings listFeaturesSettings() { @@ -211,6 +228,316 @@ public UnaryCallSettings updateFeatureSettings( return ((GkeHubStubSettings) getStubSettings()).generateConnectManifestSettings(); } + /** Returns the object with the settings used for calls to createFleet. */ + public UnaryCallSettings createFleetSettings() { + return ((GkeHubStubSettings) getStubSettings()).createFleetSettings(); + } + + /** Returns the object with the settings used for calls to createFleet. */ + public OperationCallSettings + createFleetOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()).createFleetOperationSettings(); + } + + /** Returns the object with the settings used for calls to getFleet. */ + public UnaryCallSettings getFleetSettings() { + return ((GkeHubStubSettings) getStubSettings()).getFleetSettings(); + } + + /** Returns the object with the settings used for calls to updateFleet. */ + public UnaryCallSettings updateFleetSettings() { + return ((GkeHubStubSettings) getStubSettings()).updateFleetSettings(); + } + + /** Returns the object with the settings used for calls to updateFleet. */ + public OperationCallSettings + updateFleetOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()).updateFleetOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteFleet. */ + public UnaryCallSettings deleteFleetSettings() { + return ((GkeHubStubSettings) getStubSettings()).deleteFleetSettings(); + } + + /** Returns the object with the settings used for calls to deleteFleet. */ + public OperationCallSettings + deleteFleetOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()).deleteFleetOperationSettings(); + } + + /** Returns the object with the settings used for calls to listFleets. */ + public PagedCallSettings + listFleetsSettings() { + return ((GkeHubStubSettings) getStubSettings()).listFleetsSettings(); + } + + /** Returns the object with the settings used for calls to getScopeNamespace. */ + public UnaryCallSettings getScopeNamespaceSettings() { + return ((GkeHubStubSettings) getStubSettings()).getScopeNamespaceSettings(); + } + + /** Returns the object with the settings used for calls to createScopeNamespace. */ + public UnaryCallSettings createScopeNamespaceSettings() { + return ((GkeHubStubSettings) getStubSettings()).createScopeNamespaceSettings(); + } + + /** Returns the object with the settings used for calls to createScopeNamespace. */ + public OperationCallSettings + createScopeNamespaceOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()).createScopeNamespaceOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateScopeNamespace. */ + public UnaryCallSettings updateScopeNamespaceSettings() { + return ((GkeHubStubSettings) getStubSettings()).updateScopeNamespaceSettings(); + } + + /** Returns the object with the settings used for calls to updateScopeNamespace. */ + public OperationCallSettings + updateScopeNamespaceOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()).updateScopeNamespaceOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteScopeNamespace. */ + public UnaryCallSettings deleteScopeNamespaceSettings() { + return ((GkeHubStubSettings) getStubSettings()).deleteScopeNamespaceSettings(); + } + + /** Returns the object with the settings used for calls to deleteScopeNamespace. */ + public OperationCallSettings + deleteScopeNamespaceOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()).deleteScopeNamespaceOperationSettings(); + } + + /** Returns the object with the settings used for calls to listScopeNamespaces. */ + public PagedCallSettings< + ListScopeNamespacesRequest, ListScopeNamespacesResponse, ListScopeNamespacesPagedResponse> + listScopeNamespacesSettings() { + return ((GkeHubStubSettings) getStubSettings()).listScopeNamespacesSettings(); + } + + /** Returns the object with the settings used for calls to getScopeRBACRoleBinding. */ + public UnaryCallSettings + getScopeRBACRoleBindingSettings() { + return ((GkeHubStubSettings) getStubSettings()).getScopeRBACRoleBindingSettings(); + } + + /** Returns the object with the settings used for calls to createScopeRBACRoleBinding. */ + public UnaryCallSettings + createScopeRBACRoleBindingSettings() { + return ((GkeHubStubSettings) getStubSettings()).createScopeRBACRoleBindingSettings(); + } + + /** Returns the object with the settings used for calls to createScopeRBACRoleBinding. */ + public OperationCallSettings< + CreateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createScopeRBACRoleBindingOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()).createScopeRBACRoleBindingOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateScopeRBACRoleBinding. */ + public UnaryCallSettings + updateScopeRBACRoleBindingSettings() { + return ((GkeHubStubSettings) getStubSettings()).updateScopeRBACRoleBindingSettings(); + } + + /** Returns the object with the settings used for calls to updateScopeRBACRoleBinding. */ + public OperationCallSettings< + UpdateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateScopeRBACRoleBindingOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()).updateScopeRBACRoleBindingOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteScopeRBACRoleBinding. */ + public UnaryCallSettings + deleteScopeRBACRoleBindingSettings() { + return ((GkeHubStubSettings) getStubSettings()).deleteScopeRBACRoleBindingSettings(); + } + + /** Returns the object with the settings used for calls to deleteScopeRBACRoleBinding. */ + public OperationCallSettings + deleteScopeRBACRoleBindingOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()).deleteScopeRBACRoleBindingOperationSettings(); + } + + /** Returns the object with the settings used for calls to listScopeRBACRoleBindings. */ + public PagedCallSettings< + ListScopeRBACRoleBindingsRequest, + ListScopeRBACRoleBindingsResponse, + ListScopeRBACRoleBindingsPagedResponse> + listScopeRBACRoleBindingsSettings() { + return ((GkeHubStubSettings) getStubSettings()).listScopeRBACRoleBindingsSettings(); + } + + /** Returns the object with the settings used for calls to getScope. */ + public UnaryCallSettings getScopeSettings() { + return ((GkeHubStubSettings) getStubSettings()).getScopeSettings(); + } + + /** Returns the object with the settings used for calls to createScope. */ + public UnaryCallSettings createScopeSettings() { + return ((GkeHubStubSettings) getStubSettings()).createScopeSettings(); + } + + /** Returns the object with the settings used for calls to createScope. */ + public OperationCallSettings + createScopeOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()).createScopeOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateScope. */ + public UnaryCallSettings updateScopeSettings() { + return ((GkeHubStubSettings) getStubSettings()).updateScopeSettings(); + } + + /** Returns the object with the settings used for calls to updateScope. */ + public OperationCallSettings + updateScopeOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()).updateScopeOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteScope. */ + public UnaryCallSettings deleteScopeSettings() { + return ((GkeHubStubSettings) getStubSettings()).deleteScopeSettings(); + } + + /** Returns the object with the settings used for calls to deleteScope. */ + public OperationCallSettings + deleteScopeOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()).deleteScopeOperationSettings(); + } + + /** Returns the object with the settings used for calls to listScopes. */ + public PagedCallSettings + listScopesSettings() { + return ((GkeHubStubSettings) getStubSettings()).listScopesSettings(); + } + + /** Returns the object with the settings used for calls to listPermittedScopes. */ + public PagedCallSettings< + ListPermittedScopesRequest, ListPermittedScopesResponse, ListPermittedScopesPagedResponse> + listPermittedScopesSettings() { + return ((GkeHubStubSettings) getStubSettings()).listPermittedScopesSettings(); + } + + /** Returns the object with the settings used for calls to getMembershipBinding. */ + public UnaryCallSettings + getMembershipBindingSettings() { + return ((GkeHubStubSettings) getStubSettings()).getMembershipBindingSettings(); + } + + /** Returns the object with the settings used for calls to createMembershipBinding. */ + public UnaryCallSettings + createMembershipBindingSettings() { + return ((GkeHubStubSettings) getStubSettings()).createMembershipBindingSettings(); + } + + /** Returns the object with the settings used for calls to createMembershipBinding. */ + public OperationCallSettings + createMembershipBindingOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()).createMembershipBindingOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateMembershipBinding. */ + public UnaryCallSettings + updateMembershipBindingSettings() { + return ((GkeHubStubSettings) getStubSettings()).updateMembershipBindingSettings(); + } + + /** Returns the object with the settings used for calls to updateMembershipBinding. */ + public OperationCallSettings + updateMembershipBindingOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()).updateMembershipBindingOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteMembershipBinding. */ + public UnaryCallSettings + deleteMembershipBindingSettings() { + return ((GkeHubStubSettings) getStubSettings()).deleteMembershipBindingSettings(); + } + + /** Returns the object with the settings used for calls to deleteMembershipBinding. */ + public OperationCallSettings + deleteMembershipBindingOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()).deleteMembershipBindingOperationSettings(); + } + + /** Returns the object with the settings used for calls to listMembershipBindings. */ + public PagedCallSettings< + ListMembershipBindingsRequest, + ListMembershipBindingsResponse, + ListMembershipBindingsPagedResponse> + listMembershipBindingsSettings() { + return ((GkeHubStubSettings) getStubSettings()).listMembershipBindingsSettings(); + } + + /** Returns the object with the settings used for calls to getMembershipRBACRoleBinding. */ + public UnaryCallSettings + getMembershipRBACRoleBindingSettings() { + return ((GkeHubStubSettings) getStubSettings()).getMembershipRBACRoleBindingSettings(); + } + + /** Returns the object with the settings used for calls to createMembershipRBACRoleBinding. */ + public UnaryCallSettings + createMembershipRBACRoleBindingSettings() { + return ((GkeHubStubSettings) getStubSettings()).createMembershipRBACRoleBindingSettings(); + } + + /** Returns the object with the settings used for calls to createMembershipRBACRoleBinding. */ + public OperationCallSettings< + CreateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createMembershipRBACRoleBindingOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()) + .createMembershipRBACRoleBindingOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateMembershipRBACRoleBinding. */ + public UnaryCallSettings + updateMembershipRBACRoleBindingSettings() { + return ((GkeHubStubSettings) getStubSettings()).updateMembershipRBACRoleBindingSettings(); + } + + /** Returns the object with the settings used for calls to updateMembershipRBACRoleBinding. */ + public OperationCallSettings< + UpdateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateMembershipRBACRoleBindingOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()) + .updateMembershipRBACRoleBindingOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteMembershipRBACRoleBinding. */ + public UnaryCallSettings + deleteMembershipRBACRoleBindingSettings() { + return ((GkeHubStubSettings) getStubSettings()).deleteMembershipRBACRoleBindingSettings(); + } + + /** Returns the object with the settings used for calls to deleteMembershipRBACRoleBinding. */ + public OperationCallSettings + deleteMembershipRBACRoleBindingOperationSettings() { + return ((GkeHubStubSettings) getStubSettings()) + .deleteMembershipRBACRoleBindingOperationSettings(); + } + + /** Returns the object with the settings used for calls to listMembershipRBACRoleBindings. */ + public PagedCallSettings< + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + ListMembershipRBACRoleBindingsPagedResponse> + listMembershipRBACRoleBindingsSettings() { + return ((GkeHubStubSettings) getStubSettings()).listMembershipRBACRoleBindingsSettings(); + } + + /** + * Returns the object with the settings used for calls to generateMembershipRBACRoleBindingYAML. + */ + public UnaryCallSettings< + GenerateMembershipRBACRoleBindingYAMLRequest, + GenerateMembershipRBACRoleBindingYAMLResponse> + generateMembershipRBACRoleBindingYAMLSettings() { + return ((GkeHubStubSettings) getStubSettings()).generateMembershipRBACRoleBindingYAMLSettings(); + } + public static final GkeHubSettings create(GkeHubStubSettings stub) throws IOException { return new GkeHubSettings.Builder(stub.toBuilder()).build(); } @@ -329,6 +656,15 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().listMembershipsSettings(); } + /** Returns the builder for the settings used for calls to listBoundMemberships. */ + public PagedCallSettings.Builder< + ListBoundMembershipsRequest, + ListBoundMembershipsResponse, + ListBoundMembershipsPagedResponse> + listBoundMembershipsSettings() { + return getStubSettingsBuilder().listBoundMembershipsSettings(); + } + /** Returns the builder for the settings used for calls to listFeatures. */ public PagedCallSettings.Builder< ListFeaturesRequest, ListFeaturesResponse, ListFeaturesPagedResponse> @@ -422,6 +758,325 @@ public UnaryCallSettings.Builder updateFeatureS return getStubSettingsBuilder().generateConnectManifestSettings(); } + /** Returns the builder for the settings used for calls to createFleet. */ + public UnaryCallSettings.Builder createFleetSettings() { + return getStubSettingsBuilder().createFleetSettings(); + } + + /** Returns the builder for the settings used for calls to createFleet. */ + public OperationCallSettings.Builder + createFleetOperationSettings() { + return getStubSettingsBuilder().createFleetOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getFleet. */ + public UnaryCallSettings.Builder getFleetSettings() { + return getStubSettingsBuilder().getFleetSettings(); + } + + /** Returns the builder for the settings used for calls to updateFleet. */ + public UnaryCallSettings.Builder updateFleetSettings() { + return getStubSettingsBuilder().updateFleetSettings(); + } + + /** Returns the builder for the settings used for calls to updateFleet. */ + public OperationCallSettings.Builder + updateFleetOperationSettings() { + return getStubSettingsBuilder().updateFleetOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteFleet. */ + public UnaryCallSettings.Builder deleteFleetSettings() { + return getStubSettingsBuilder().deleteFleetSettings(); + } + + /** Returns the builder for the settings used for calls to deleteFleet. */ + public OperationCallSettings.Builder + deleteFleetOperationSettings() { + return getStubSettingsBuilder().deleteFleetOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listFleets. */ + public PagedCallSettings.Builder + listFleetsSettings() { + return getStubSettingsBuilder().listFleetsSettings(); + } + + /** Returns the builder for the settings used for calls to getScopeNamespace. */ + public UnaryCallSettings.Builder + getScopeNamespaceSettings() { + return getStubSettingsBuilder().getScopeNamespaceSettings(); + } + + /** Returns the builder for the settings used for calls to createScopeNamespace. */ + public UnaryCallSettings.Builder + createScopeNamespaceSettings() { + return getStubSettingsBuilder().createScopeNamespaceSettings(); + } + + /** Returns the builder for the settings used for calls to createScopeNamespace. */ + public OperationCallSettings.Builder + createScopeNamespaceOperationSettings() { + return getStubSettingsBuilder().createScopeNamespaceOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateScopeNamespace. */ + public UnaryCallSettings.Builder + updateScopeNamespaceSettings() { + return getStubSettingsBuilder().updateScopeNamespaceSettings(); + } + + /** Returns the builder for the settings used for calls to updateScopeNamespace. */ + public OperationCallSettings.Builder + updateScopeNamespaceOperationSettings() { + return getStubSettingsBuilder().updateScopeNamespaceOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteScopeNamespace. */ + public UnaryCallSettings.Builder + deleteScopeNamespaceSettings() { + return getStubSettingsBuilder().deleteScopeNamespaceSettings(); + } + + /** Returns the builder for the settings used for calls to deleteScopeNamespace. */ + public OperationCallSettings.Builder + deleteScopeNamespaceOperationSettings() { + return getStubSettingsBuilder().deleteScopeNamespaceOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listScopeNamespaces. */ + public PagedCallSettings.Builder< + ListScopeNamespacesRequest, + ListScopeNamespacesResponse, + ListScopeNamespacesPagedResponse> + listScopeNamespacesSettings() { + return getStubSettingsBuilder().listScopeNamespacesSettings(); + } + + /** Returns the builder for the settings used for calls to getScopeRBACRoleBinding. */ + public UnaryCallSettings.Builder + getScopeRBACRoleBindingSettings() { + return getStubSettingsBuilder().getScopeRBACRoleBindingSettings(); + } + + /** Returns the builder for the settings used for calls to createScopeRBACRoleBinding. */ + public UnaryCallSettings.Builder + createScopeRBACRoleBindingSettings() { + return getStubSettingsBuilder().createScopeRBACRoleBindingSettings(); + } + + /** Returns the builder for the settings used for calls to createScopeRBACRoleBinding. */ + public OperationCallSettings.Builder< + CreateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createScopeRBACRoleBindingOperationSettings() { + return getStubSettingsBuilder().createScopeRBACRoleBindingOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateScopeRBACRoleBinding. */ + public UnaryCallSettings.Builder + updateScopeRBACRoleBindingSettings() { + return getStubSettingsBuilder().updateScopeRBACRoleBindingSettings(); + } + + /** Returns the builder for the settings used for calls to updateScopeRBACRoleBinding. */ + public OperationCallSettings.Builder< + UpdateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateScopeRBACRoleBindingOperationSettings() { + return getStubSettingsBuilder().updateScopeRBACRoleBindingOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteScopeRBACRoleBinding. */ + public UnaryCallSettings.Builder + deleteScopeRBACRoleBindingSettings() { + return getStubSettingsBuilder().deleteScopeRBACRoleBindingSettings(); + } + + /** Returns the builder for the settings used for calls to deleteScopeRBACRoleBinding. */ + public OperationCallSettings.Builder< + DeleteScopeRBACRoleBindingRequest, Empty, OperationMetadata> + deleteScopeRBACRoleBindingOperationSettings() { + return getStubSettingsBuilder().deleteScopeRBACRoleBindingOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listScopeRBACRoleBindings. */ + public PagedCallSettings.Builder< + ListScopeRBACRoleBindingsRequest, + ListScopeRBACRoleBindingsResponse, + ListScopeRBACRoleBindingsPagedResponse> + listScopeRBACRoleBindingsSettings() { + return getStubSettingsBuilder().listScopeRBACRoleBindingsSettings(); + } + + /** Returns the builder for the settings used for calls to getScope. */ + public UnaryCallSettings.Builder getScopeSettings() { + return getStubSettingsBuilder().getScopeSettings(); + } + + /** Returns the builder for the settings used for calls to createScope. */ + public UnaryCallSettings.Builder createScopeSettings() { + return getStubSettingsBuilder().createScopeSettings(); + } + + /** Returns the builder for the settings used for calls to createScope. */ + public OperationCallSettings.Builder + createScopeOperationSettings() { + return getStubSettingsBuilder().createScopeOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateScope. */ + public UnaryCallSettings.Builder updateScopeSettings() { + return getStubSettingsBuilder().updateScopeSettings(); + } + + /** Returns the builder for the settings used for calls to updateScope. */ + public OperationCallSettings.Builder + updateScopeOperationSettings() { + return getStubSettingsBuilder().updateScopeOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteScope. */ + public UnaryCallSettings.Builder deleteScopeSettings() { + return getStubSettingsBuilder().deleteScopeSettings(); + } + + /** Returns the builder for the settings used for calls to deleteScope. */ + public OperationCallSettings.Builder + deleteScopeOperationSettings() { + return getStubSettingsBuilder().deleteScopeOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listScopes. */ + public PagedCallSettings.Builder + listScopesSettings() { + return getStubSettingsBuilder().listScopesSettings(); + } + + /** Returns the builder for the settings used for calls to listPermittedScopes. */ + public PagedCallSettings.Builder< + ListPermittedScopesRequest, + ListPermittedScopesResponse, + ListPermittedScopesPagedResponse> + listPermittedScopesSettings() { + return getStubSettingsBuilder().listPermittedScopesSettings(); + } + + /** Returns the builder for the settings used for calls to getMembershipBinding. */ + public UnaryCallSettings.Builder + getMembershipBindingSettings() { + return getStubSettingsBuilder().getMembershipBindingSettings(); + } + + /** Returns the builder for the settings used for calls to createMembershipBinding. */ + public UnaryCallSettings.Builder + createMembershipBindingSettings() { + return getStubSettingsBuilder().createMembershipBindingSettings(); + } + + /** Returns the builder for the settings used for calls to createMembershipBinding. */ + public OperationCallSettings.Builder< + CreateMembershipBindingRequest, MembershipBinding, OperationMetadata> + createMembershipBindingOperationSettings() { + return getStubSettingsBuilder().createMembershipBindingOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateMembershipBinding. */ + public UnaryCallSettings.Builder + updateMembershipBindingSettings() { + return getStubSettingsBuilder().updateMembershipBindingSettings(); + } + + /** Returns the builder for the settings used for calls to updateMembershipBinding. */ + public OperationCallSettings.Builder< + UpdateMembershipBindingRequest, MembershipBinding, OperationMetadata> + updateMembershipBindingOperationSettings() { + return getStubSettingsBuilder().updateMembershipBindingOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteMembershipBinding. */ + public UnaryCallSettings.Builder + deleteMembershipBindingSettings() { + return getStubSettingsBuilder().deleteMembershipBindingSettings(); + } + + /** Returns the builder for the settings used for calls to deleteMembershipBinding. */ + public OperationCallSettings.Builder + deleteMembershipBindingOperationSettings() { + return getStubSettingsBuilder().deleteMembershipBindingOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listMembershipBindings. */ + public PagedCallSettings.Builder< + ListMembershipBindingsRequest, + ListMembershipBindingsResponse, + ListMembershipBindingsPagedResponse> + listMembershipBindingsSettings() { + return getStubSettingsBuilder().listMembershipBindingsSettings(); + } + + /** Returns the builder for the settings used for calls to getMembershipRBACRoleBinding. */ + public UnaryCallSettings.Builder + getMembershipRBACRoleBindingSettings() { + return getStubSettingsBuilder().getMembershipRBACRoleBindingSettings(); + } + + /** Returns the builder for the settings used for calls to createMembershipRBACRoleBinding. */ + public UnaryCallSettings.Builder + createMembershipRBACRoleBindingSettings() { + return getStubSettingsBuilder().createMembershipRBACRoleBindingSettings(); + } + + /** Returns the builder for the settings used for calls to createMembershipRBACRoleBinding. */ + public OperationCallSettings.Builder< + CreateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createMembershipRBACRoleBindingOperationSettings() { + return getStubSettingsBuilder().createMembershipRBACRoleBindingOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateMembershipRBACRoleBinding. */ + public UnaryCallSettings.Builder + updateMembershipRBACRoleBindingSettings() { + return getStubSettingsBuilder().updateMembershipRBACRoleBindingSettings(); + } + + /** Returns the builder for the settings used for calls to updateMembershipRBACRoleBinding. */ + public OperationCallSettings.Builder< + UpdateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateMembershipRBACRoleBindingOperationSettings() { + return getStubSettingsBuilder().updateMembershipRBACRoleBindingOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteMembershipRBACRoleBinding. */ + public UnaryCallSettings.Builder + deleteMembershipRBACRoleBindingSettings() { + return getStubSettingsBuilder().deleteMembershipRBACRoleBindingSettings(); + } + + /** Returns the builder for the settings used for calls to deleteMembershipRBACRoleBinding. */ + public OperationCallSettings.Builder< + DeleteMembershipRBACRoleBindingRequest, Empty, OperationMetadata> + deleteMembershipRBACRoleBindingOperationSettings() { + return getStubSettingsBuilder().deleteMembershipRBACRoleBindingOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listMembershipRBACRoleBindings. */ + public PagedCallSettings.Builder< + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + ListMembershipRBACRoleBindingsPagedResponse> + listMembershipRBACRoleBindingsSettings() { + return getStubSettingsBuilder().listMembershipRBACRoleBindingsSettings(); + } + + /** + * Returns the builder for the settings used for calls to generateMembershipRBACRoleBindingYAML. + */ + public UnaryCallSettings.Builder< + GenerateMembershipRBACRoleBindingYAMLRequest, + GenerateMembershipRBACRoleBindingYAMLResponse> + generateMembershipRBACRoleBindingYAMLSettings() { + return getStubSettingsBuilder().generateMembershipRBACRoleBindingYAMLSettings(); + } + @Override public GkeHubSettings build() throws IOException { return new GkeHubSettings(this); diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/gapic_metadata.json b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/gapic_metadata.json index f7106915f1c4..e5879e2ea5cf 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/gapic_metadata.json +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/gapic_metadata.json @@ -13,35 +13,134 @@ "CreateFeature": { "methods": ["createFeatureAsync", "createFeatureAsync", "createFeatureAsync", "createFeatureOperationCallable", "createFeatureCallable"] }, + "CreateFleet": { + "methods": ["createFleetAsync", "createFleetAsync", "createFleetAsync", "createFleetOperationCallable", "createFleetCallable"] + }, "CreateMembership": { "methods": ["createMembershipAsync", "createMembershipAsync", "createMembershipAsync", "createMembershipOperationCallable", "createMembershipCallable"] }, + "CreateMembershipBinding": { + "methods": ["createMembershipBindingAsync", "createMembershipBindingAsync", "createMembershipBindingAsync", "createMembershipBindingOperationCallable", "createMembershipBindingCallable"] + }, + "CreateMembershipRBACRoleBinding": { + "methods": ["createMembershipRBACRoleBindingAsync", "createMembershipRBACRoleBindingAsync", "createMembershipRBACRoleBindingAsync", "createMembershipRBACRoleBindingAsync", "createMembershipRBACRoleBindingOperationCallable", "createMembershipRBACRoleBindingCallable"] + }, + "CreateScope": { + "methods": ["createScopeAsync", "createScopeAsync", "createScopeAsync", "createScopeOperationCallable", "createScopeCallable"] + }, + "CreateScopeNamespace": { + "methods": ["createScopeNamespaceAsync", "createScopeNamespaceAsync", "createScopeNamespaceAsync", "createScopeNamespaceOperationCallable", "createScopeNamespaceCallable"] + }, + "CreateScopeRBACRoleBinding": { + "methods": ["createScopeRBACRoleBindingAsync", "createScopeRBACRoleBindingAsync", "createScopeRBACRoleBindingAsync", "createScopeRBACRoleBindingAsync", "createScopeRBACRoleBindingOperationCallable", "createScopeRBACRoleBindingCallable"] + }, "DeleteFeature": { "methods": ["deleteFeatureAsync", "deleteFeatureAsync", "deleteFeatureAsync", "deleteFeatureOperationCallable", "deleteFeatureCallable"] }, + "DeleteFleet": { + "methods": ["deleteFleetAsync", "deleteFleetAsync", "deleteFleetAsync", "deleteFleetOperationCallable", "deleteFleetCallable"] + }, "DeleteMembership": { "methods": ["deleteMembershipAsync", "deleteMembershipAsync", "deleteMembershipAsync", "deleteMembershipOperationCallable", "deleteMembershipCallable"] }, + "DeleteMembershipBinding": { + "methods": ["deleteMembershipBindingAsync", "deleteMembershipBindingAsync", "deleteMembershipBindingAsync", "deleteMembershipBindingOperationCallable", "deleteMembershipBindingCallable"] + }, + "DeleteMembershipRBACRoleBinding": { + "methods": ["deleteMembershipRBACRoleBindingAsync", "deleteMembershipRBACRoleBindingAsync", "deleteMembershipRBACRoleBindingAsync", "deleteMembershipRBACRoleBindingOperationCallable", "deleteMembershipRBACRoleBindingCallable"] + }, + "DeleteScope": { + "methods": ["deleteScopeAsync", "deleteScopeAsync", "deleteScopeAsync", "deleteScopeOperationCallable", "deleteScopeCallable"] + }, + "DeleteScopeNamespace": { + "methods": ["deleteScopeNamespaceAsync", "deleteScopeNamespaceAsync", "deleteScopeNamespaceAsync", "deleteScopeNamespaceOperationCallable", "deleteScopeNamespaceCallable"] + }, + "DeleteScopeRBACRoleBinding": { + "methods": ["deleteScopeRBACRoleBindingAsync", "deleteScopeRBACRoleBindingAsync", "deleteScopeRBACRoleBindingAsync", "deleteScopeRBACRoleBindingOperationCallable", "deleteScopeRBACRoleBindingCallable"] + }, "GenerateConnectManifest": { "methods": ["generateConnectManifest", "generateConnectManifestCallable"] }, + "GenerateMembershipRBACRoleBindingYAML": { + "methods": ["generateMembershipRBACRoleBindingYAML", "generateMembershipRBACRoleBindingYAMLCallable"] + }, "GetFeature": { "methods": ["getFeature", "getFeature", "getFeature", "getFeatureCallable"] }, + "GetFleet": { + "methods": ["getFleet", "getFleet", "getFleet", "getFleetCallable"] + }, "GetMembership": { "methods": ["getMembership", "getMembership", "getMembership", "getMembershipCallable"] }, + "GetMembershipBinding": { + "methods": ["getMembershipBinding", "getMembershipBinding", "getMembershipBinding", "getMembershipBindingCallable"] + }, + "GetMembershipRBACRoleBinding": { + "methods": ["getMembershipRBACRoleBinding", "getMembershipRBACRoleBinding", "getMembershipRBACRoleBinding", "getMembershipRBACRoleBindingCallable"] + }, + "GetScope": { + "methods": ["getScope", "getScope", "getScope", "getScopeCallable"] + }, + "GetScopeNamespace": { + "methods": ["getScopeNamespace", "getScopeNamespace", "getScopeNamespace", "getScopeNamespaceCallable"] + }, + "GetScopeRBACRoleBinding": { + "methods": ["getScopeRBACRoleBinding", "getScopeRBACRoleBinding", "getScopeRBACRoleBinding", "getScopeRBACRoleBindingCallable"] + }, + "ListBoundMemberships": { + "methods": ["listBoundMemberships", "listBoundMemberships", "listBoundMemberships", "listBoundMembershipsPagedCallable", "listBoundMembershipsCallable"] + }, "ListFeatures": { "methods": ["listFeatures", "listFeatures", "listFeatures", "listFeaturesPagedCallable", "listFeaturesCallable"] }, + "ListFleets": { + "methods": ["listFleets", "listFleets", "listFleets", "listFleetsPagedCallable", "listFleetsCallable"] + }, + "ListMembershipBindings": { + "methods": ["listMembershipBindings", "listMembershipBindings", "listMembershipBindings", "listMembershipBindingsPagedCallable", "listMembershipBindingsCallable"] + }, + "ListMembershipRBACRoleBindings": { + "methods": ["listMembershipRBACRoleBindings", "listMembershipRBACRoleBindings", "listMembershipRBACRoleBindings", "listMembershipRBACRoleBindings", "listMembershipRBACRoleBindingsPagedCallable", "listMembershipRBACRoleBindingsCallable"] + }, "ListMemberships": { "methods": ["listMemberships", "listMemberships", "listMemberships", "listMembershipsPagedCallable", "listMembershipsCallable"] }, + "ListPermittedScopes": { + "methods": ["listPermittedScopes", "listPermittedScopes", "listPermittedScopes", "listPermittedScopesPagedCallable", "listPermittedScopesCallable"] + }, + "ListScopeNamespaces": { + "methods": ["listScopeNamespaces", "listScopeNamespaces", "listScopeNamespaces", "listScopeNamespacesPagedCallable", "listScopeNamespacesCallable"] + }, + "ListScopeRBACRoleBindings": { + "methods": ["listScopeRBACRoleBindings", "listScopeRBACRoleBindings", "listScopeRBACRoleBindings", "listScopeRBACRoleBindings", "listScopeRBACRoleBindingsPagedCallable", "listScopeRBACRoleBindingsCallable"] + }, + "ListScopes": { + "methods": ["listScopes", "listScopes", "listScopes", "listScopesPagedCallable", "listScopesCallable"] + }, "UpdateFeature": { "methods": ["updateFeatureAsync", "updateFeatureAsync", "updateFeatureAsync", "updateFeatureOperationCallable", "updateFeatureCallable"] }, + "UpdateFleet": { + "methods": ["updateFleetAsync", "updateFleetAsync", "updateFleetOperationCallable", "updateFleetCallable"] + }, "UpdateMembership": { "methods": ["updateMembershipAsync", "updateMembershipAsync", "updateMembershipAsync", "updateMembershipOperationCallable", "updateMembershipCallable"] + }, + "UpdateMembershipBinding": { + "methods": ["updateMembershipBindingAsync", "updateMembershipBindingAsync", "updateMembershipBindingOperationCallable", "updateMembershipBindingCallable"] + }, + "UpdateMembershipRBACRoleBinding": { + "methods": ["updateMembershipRBACRoleBindingAsync", "updateMembershipRBACRoleBindingAsync", "updateMembershipRBACRoleBindingOperationCallable", "updateMembershipRBACRoleBindingCallable"] + }, + "UpdateScope": { + "methods": ["updateScopeAsync", "updateScopeAsync", "updateScopeOperationCallable", "updateScopeCallable"] + }, + "UpdateScopeNamespace": { + "methods": ["updateScopeNamespaceAsync", "updateScopeNamespaceAsync", "updateScopeNamespaceOperationCallable", "updateScopeNamespaceCallable"] + }, + "UpdateScopeRBACRoleBinding": { + "methods": ["updateScopeRBACRoleBindingAsync", "updateScopeRBACRoleBindingAsync", "updateScopeRBACRoleBindingOperationCallable", "updateScopeRBACRoleBindingCallable"] } } } diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStub.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStub.java index 5452d41554a1..9c92b2b7dc8a 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStub.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStub.java @@ -16,29 +16,84 @@ package com.google.cloud.gkehub.v1.stub; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListBoundMembershipsPagedResponse; import static com.google.cloud.gkehub.v1.GkeHubClient.ListFeaturesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListFleetsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipBindingsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipRBACRoleBindingsPagedResponse; import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListPermittedScopesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopeNamespacesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopeRBACRoleBindingsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopesPagedResponse; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.gkehub.v1.CreateFeatureRequest; +import com.google.cloud.gkehub.v1.CreateFleetRequest; +import com.google.cloud.gkehub.v1.CreateMembershipBindingRequest; +import com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest; import com.google.cloud.gkehub.v1.CreateMembershipRequest; +import com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.CreateScopeRequest; import com.google.cloud.gkehub.v1.DeleteFeatureRequest; +import com.google.cloud.gkehub.v1.DeleteFleetRequest; +import com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest; +import com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest; import com.google.cloud.gkehub.v1.DeleteMembershipRequest; +import com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.DeleteScopeRequest; import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.Fleet; import com.google.cloud.gkehub.v1.GenerateConnectManifestRequest; import com.google.cloud.gkehub.v1.GenerateConnectManifestResponse; +import com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest; +import com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse; import com.google.cloud.gkehub.v1.GetFeatureRequest; +import com.google.cloud.gkehub.v1.GetFleetRequest; +import com.google.cloud.gkehub.v1.GetMembershipBindingRequest; +import com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest; import com.google.cloud.gkehub.v1.GetMembershipRequest; +import com.google.cloud.gkehub.v1.GetScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GetScopeRequest; +import com.google.cloud.gkehub.v1.ListBoundMembershipsRequest; +import com.google.cloud.gkehub.v1.ListBoundMembershipsResponse; import com.google.cloud.gkehub.v1.ListFeaturesRequest; import com.google.cloud.gkehub.v1.ListFeaturesResponse; +import com.google.cloud.gkehub.v1.ListFleetsRequest; +import com.google.cloud.gkehub.v1.ListFleetsResponse; +import com.google.cloud.gkehub.v1.ListMembershipBindingsRequest; +import com.google.cloud.gkehub.v1.ListMembershipBindingsResponse; +import com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest; +import com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse; import com.google.cloud.gkehub.v1.ListMembershipsRequest; import com.google.cloud.gkehub.v1.ListMembershipsResponse; +import com.google.cloud.gkehub.v1.ListPermittedScopesRequest; +import com.google.cloud.gkehub.v1.ListPermittedScopesResponse; +import com.google.cloud.gkehub.v1.ListScopeNamespacesRequest; +import com.google.cloud.gkehub.v1.ListScopeNamespacesResponse; +import com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest; +import com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse; +import com.google.cloud.gkehub.v1.ListScopesRequest; +import com.google.cloud.gkehub.v1.ListScopesResponse; import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.Namespace; import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.Scope; import com.google.cloud.gkehub.v1.UpdateFeatureRequest; +import com.google.cloud.gkehub.v1.UpdateFleetRequest; +import com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest; +import com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest; import com.google.cloud.gkehub.v1.UpdateMembershipRequest; +import com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.UpdateScopeRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import com.google.protobuf.Empty; @@ -70,6 +125,16 @@ public UnaryCallable listMember throw new UnsupportedOperationException("Not implemented: listMembershipsCallable()"); } + public UnaryCallable + listBoundMembershipsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listBoundMembershipsPagedCallable()"); + } + + public UnaryCallable + listBoundMembershipsCallable() { + throw new UnsupportedOperationException("Not implemented: listBoundMembershipsCallable()"); + } + public UnaryCallable listFeaturesPagedCallable() { throw new UnsupportedOperationException("Not implemented: listFeaturesPagedCallable()"); } @@ -145,6 +210,305 @@ public UnaryCallable updateFeatureCallable() { throw new UnsupportedOperationException("Not implemented: generateConnectManifestCallable()"); } + public OperationCallable + createFleetOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createFleetOperationCallable()"); + } + + public UnaryCallable createFleetCallable() { + throw new UnsupportedOperationException("Not implemented: createFleetCallable()"); + } + + public UnaryCallable getFleetCallable() { + throw new UnsupportedOperationException("Not implemented: getFleetCallable()"); + } + + public OperationCallable + updateFleetOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateFleetOperationCallable()"); + } + + public UnaryCallable updateFleetCallable() { + throw new UnsupportedOperationException("Not implemented: updateFleetCallable()"); + } + + public OperationCallable + deleteFleetOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteFleetOperationCallable()"); + } + + public UnaryCallable deleteFleetCallable() { + throw new UnsupportedOperationException("Not implemented: deleteFleetCallable()"); + } + + public UnaryCallable listFleetsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listFleetsPagedCallable()"); + } + + public UnaryCallable listFleetsCallable() { + throw new UnsupportedOperationException("Not implemented: listFleetsCallable()"); + } + + public UnaryCallable getScopeNamespaceCallable() { + throw new UnsupportedOperationException("Not implemented: getScopeNamespaceCallable()"); + } + + public OperationCallable + createScopeNamespaceOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createScopeNamespaceOperationCallable()"); + } + + public UnaryCallable createScopeNamespaceCallable() { + throw new UnsupportedOperationException("Not implemented: createScopeNamespaceCallable()"); + } + + public OperationCallable + updateScopeNamespaceOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateScopeNamespaceOperationCallable()"); + } + + public UnaryCallable updateScopeNamespaceCallable() { + throw new UnsupportedOperationException("Not implemented: updateScopeNamespaceCallable()"); + } + + public OperationCallable + deleteScopeNamespaceOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteScopeNamespaceOperationCallable()"); + } + + public UnaryCallable deleteScopeNamespaceCallable() { + throw new UnsupportedOperationException("Not implemented: deleteScopeNamespaceCallable()"); + } + + public UnaryCallable + listScopeNamespacesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listScopeNamespacesPagedCallable()"); + } + + public UnaryCallable + listScopeNamespacesCallable() { + throw new UnsupportedOperationException("Not implemented: listScopeNamespacesCallable()"); + } + + public UnaryCallable + getScopeRBACRoleBindingCallable() { + throw new UnsupportedOperationException("Not implemented: getScopeRBACRoleBindingCallable()"); + } + + public OperationCallable + createScopeRBACRoleBindingOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createScopeRBACRoleBindingOperationCallable()"); + } + + public UnaryCallable + createScopeRBACRoleBindingCallable() { + throw new UnsupportedOperationException( + "Not implemented: createScopeRBACRoleBindingCallable()"); + } + + public OperationCallable + updateScopeRBACRoleBindingOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateScopeRBACRoleBindingOperationCallable()"); + } + + public UnaryCallable + updateScopeRBACRoleBindingCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateScopeRBACRoleBindingCallable()"); + } + + public OperationCallable + deleteScopeRBACRoleBindingOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteScopeRBACRoleBindingOperationCallable()"); + } + + public UnaryCallable + deleteScopeRBACRoleBindingCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteScopeRBACRoleBindingCallable()"); + } + + public UnaryCallable + listScopeRBACRoleBindingsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listScopeRBACRoleBindingsPagedCallable()"); + } + + public UnaryCallable + listScopeRBACRoleBindingsCallable() { + throw new UnsupportedOperationException("Not implemented: listScopeRBACRoleBindingsCallable()"); + } + + public UnaryCallable getScopeCallable() { + throw new UnsupportedOperationException("Not implemented: getScopeCallable()"); + } + + public OperationCallable + createScopeOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createScopeOperationCallable()"); + } + + public UnaryCallable createScopeCallable() { + throw new UnsupportedOperationException("Not implemented: createScopeCallable()"); + } + + public OperationCallable + updateScopeOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateScopeOperationCallable()"); + } + + public UnaryCallable updateScopeCallable() { + throw new UnsupportedOperationException("Not implemented: updateScopeCallable()"); + } + + public OperationCallable + deleteScopeOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteScopeOperationCallable()"); + } + + public UnaryCallable deleteScopeCallable() { + throw new UnsupportedOperationException("Not implemented: deleteScopeCallable()"); + } + + public UnaryCallable listScopesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listScopesPagedCallable()"); + } + + public UnaryCallable listScopesCallable() { + throw new UnsupportedOperationException("Not implemented: listScopesCallable()"); + } + + public UnaryCallable + listPermittedScopesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listPermittedScopesPagedCallable()"); + } + + public UnaryCallable + listPermittedScopesCallable() { + throw new UnsupportedOperationException("Not implemented: listPermittedScopesCallable()"); + } + + public UnaryCallable + getMembershipBindingCallable() { + throw new UnsupportedOperationException("Not implemented: getMembershipBindingCallable()"); + } + + public OperationCallable + createMembershipBindingOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createMembershipBindingOperationCallable()"); + } + + public UnaryCallable + createMembershipBindingCallable() { + throw new UnsupportedOperationException("Not implemented: createMembershipBindingCallable()"); + } + + public OperationCallable + updateMembershipBindingOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateMembershipBindingOperationCallable()"); + } + + public UnaryCallable + updateMembershipBindingCallable() { + throw new UnsupportedOperationException("Not implemented: updateMembershipBindingCallable()"); + } + + public OperationCallable + deleteMembershipBindingOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteMembershipBindingOperationCallable()"); + } + + public UnaryCallable + deleteMembershipBindingCallable() { + throw new UnsupportedOperationException("Not implemented: deleteMembershipBindingCallable()"); + } + + public UnaryCallable + listMembershipBindingsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listMembershipBindingsPagedCallable()"); + } + + public UnaryCallable + listMembershipBindingsCallable() { + throw new UnsupportedOperationException("Not implemented: listMembershipBindingsCallable()"); + } + + public UnaryCallable + getMembershipRBACRoleBindingCallable() { + throw new UnsupportedOperationException( + "Not implemented: getMembershipRBACRoleBindingCallable()"); + } + + public OperationCallable< + CreateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createMembershipRBACRoleBindingOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createMembershipRBACRoleBindingOperationCallable()"); + } + + public UnaryCallable + createMembershipRBACRoleBindingCallable() { + throw new UnsupportedOperationException( + "Not implemented: createMembershipRBACRoleBindingCallable()"); + } + + public OperationCallable< + UpdateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateMembershipRBACRoleBindingOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateMembershipRBACRoleBindingOperationCallable()"); + } + + public UnaryCallable + updateMembershipRBACRoleBindingCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateMembershipRBACRoleBindingCallable()"); + } + + public OperationCallable + deleteMembershipRBACRoleBindingOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteMembershipRBACRoleBindingOperationCallable()"); + } + + public UnaryCallable + deleteMembershipRBACRoleBindingCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteMembershipRBACRoleBindingCallable()"); + } + + public UnaryCallable< + ListMembershipRBACRoleBindingsRequest, ListMembershipRBACRoleBindingsPagedResponse> + listMembershipRBACRoleBindingsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listMembershipRBACRoleBindingsPagedCallable()"); + } + + public UnaryCallable< + ListMembershipRBACRoleBindingsRequest, ListMembershipRBACRoleBindingsResponse> + listMembershipRBACRoleBindingsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listMembershipRBACRoleBindingsCallable()"); + } + + public UnaryCallable< + GenerateMembershipRBACRoleBindingYAMLRequest, + GenerateMembershipRBACRoleBindingYAMLResponse> + generateMembershipRBACRoleBindingYAMLCallable() { + throw new UnsupportedOperationException( + "Not implemented: generateMembershipRBACRoleBindingYAMLCallable()"); + } + @Override public abstract void close(); } diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java index ed9f98c023f6..5ae3339b5d15 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java @@ -16,8 +16,16 @@ package com.google.cloud.gkehub.v1.stub; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListBoundMembershipsPagedResponse; import static com.google.cloud.gkehub.v1.GkeHubClient.ListFeaturesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListFleetsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipBindingsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipRBACRoleBindingsPagedResponse; import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListPermittedScopesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopeNamespacesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopeRBACRoleBindingsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopesPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; @@ -50,22 +58,69 @@ import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.gkehub.v1.CreateFeatureRequest; +import com.google.cloud.gkehub.v1.CreateFleetRequest; +import com.google.cloud.gkehub.v1.CreateMembershipBindingRequest; +import com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest; import com.google.cloud.gkehub.v1.CreateMembershipRequest; +import com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.CreateScopeRequest; import com.google.cloud.gkehub.v1.DeleteFeatureRequest; +import com.google.cloud.gkehub.v1.DeleteFleetRequest; +import com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest; +import com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest; import com.google.cloud.gkehub.v1.DeleteMembershipRequest; +import com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.DeleteScopeRequest; import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.Fleet; import com.google.cloud.gkehub.v1.GenerateConnectManifestRequest; import com.google.cloud.gkehub.v1.GenerateConnectManifestResponse; +import com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest; +import com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse; import com.google.cloud.gkehub.v1.GetFeatureRequest; +import com.google.cloud.gkehub.v1.GetFleetRequest; +import com.google.cloud.gkehub.v1.GetMembershipBindingRequest; +import com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest; import com.google.cloud.gkehub.v1.GetMembershipRequest; +import com.google.cloud.gkehub.v1.GetScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GetScopeRequest; +import com.google.cloud.gkehub.v1.ListBoundMembershipsRequest; +import com.google.cloud.gkehub.v1.ListBoundMembershipsResponse; import com.google.cloud.gkehub.v1.ListFeaturesRequest; import com.google.cloud.gkehub.v1.ListFeaturesResponse; +import com.google.cloud.gkehub.v1.ListFleetsRequest; +import com.google.cloud.gkehub.v1.ListFleetsResponse; +import com.google.cloud.gkehub.v1.ListMembershipBindingsRequest; +import com.google.cloud.gkehub.v1.ListMembershipBindingsResponse; +import com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest; +import com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse; import com.google.cloud.gkehub.v1.ListMembershipsRequest; import com.google.cloud.gkehub.v1.ListMembershipsResponse; +import com.google.cloud.gkehub.v1.ListPermittedScopesRequest; +import com.google.cloud.gkehub.v1.ListPermittedScopesResponse; +import com.google.cloud.gkehub.v1.ListScopeNamespacesRequest; +import com.google.cloud.gkehub.v1.ListScopeNamespacesResponse; +import com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest; +import com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse; +import com.google.cloud.gkehub.v1.ListScopesRequest; +import com.google.cloud.gkehub.v1.ListScopesResponse; import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.Namespace; import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.Scope; import com.google.cloud.gkehub.v1.UpdateFeatureRequest; +import com.google.cloud.gkehub.v1.UpdateFleetRequest; +import com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest; +import com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest; import com.google.cloud.gkehub.v1.UpdateMembershipRequest; +import com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.UpdateScopeRequest; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; @@ -160,6 +215,11 @@ public class GkeHubStubSettings extends StubSettings { private final PagedCallSettings< ListMembershipsRequest, ListMembershipsResponse, ListMembershipsPagedResponse> listMembershipsSettings; + private final PagedCallSettings< + ListBoundMembershipsRequest, + ListBoundMembershipsResponse, + ListBoundMembershipsPagedResponse> + listBoundMembershipsSettings; private final PagedCallSettings< ListFeaturesRequest, ListFeaturesResponse, ListFeaturesPagedResponse> listFeaturesSettings; @@ -185,6 +245,117 @@ public class GkeHubStubSettings extends StubSettings { updateFeatureOperationSettings; private final UnaryCallSettings generateConnectManifestSettings; + private final UnaryCallSettings createFleetSettings; + private final OperationCallSettings + createFleetOperationSettings; + private final UnaryCallSettings getFleetSettings; + private final UnaryCallSettings updateFleetSettings; + private final OperationCallSettings + updateFleetOperationSettings; + private final UnaryCallSettings deleteFleetSettings; + private final OperationCallSettings + deleteFleetOperationSettings; + private final PagedCallSettings + listFleetsSettings; + private final UnaryCallSettings getScopeNamespaceSettings; + private final UnaryCallSettings + createScopeNamespaceSettings; + private final OperationCallSettings + createScopeNamespaceOperationSettings; + private final UnaryCallSettings + updateScopeNamespaceSettings; + private final OperationCallSettings + updateScopeNamespaceOperationSettings; + private final UnaryCallSettings + deleteScopeNamespaceSettings; + private final OperationCallSettings + deleteScopeNamespaceOperationSettings; + private final PagedCallSettings< + ListScopeNamespacesRequest, ListScopeNamespacesResponse, ListScopeNamespacesPagedResponse> + listScopeNamespacesSettings; + private final UnaryCallSettings + getScopeRBACRoleBindingSettings; + private final UnaryCallSettings + createScopeRBACRoleBindingSettings; + private final OperationCallSettings< + CreateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createScopeRBACRoleBindingOperationSettings; + private final UnaryCallSettings + updateScopeRBACRoleBindingSettings; + private final OperationCallSettings< + UpdateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateScopeRBACRoleBindingOperationSettings; + private final UnaryCallSettings + deleteScopeRBACRoleBindingSettings; + private final OperationCallSettings + deleteScopeRBACRoleBindingOperationSettings; + private final PagedCallSettings< + ListScopeRBACRoleBindingsRequest, + ListScopeRBACRoleBindingsResponse, + ListScopeRBACRoleBindingsPagedResponse> + listScopeRBACRoleBindingsSettings; + private final UnaryCallSettings getScopeSettings; + private final UnaryCallSettings createScopeSettings; + private final OperationCallSettings + createScopeOperationSettings; + private final UnaryCallSettings updateScopeSettings; + private final OperationCallSettings + updateScopeOperationSettings; + private final UnaryCallSettings deleteScopeSettings; + private final OperationCallSettings + deleteScopeOperationSettings; + private final PagedCallSettings + listScopesSettings; + private final PagedCallSettings< + ListPermittedScopesRequest, ListPermittedScopesResponse, ListPermittedScopesPagedResponse> + listPermittedScopesSettings; + private final UnaryCallSettings + getMembershipBindingSettings; + private final UnaryCallSettings + createMembershipBindingSettings; + private final OperationCallSettings< + CreateMembershipBindingRequest, MembershipBinding, OperationMetadata> + createMembershipBindingOperationSettings; + private final UnaryCallSettings + updateMembershipBindingSettings; + private final OperationCallSettings< + UpdateMembershipBindingRequest, MembershipBinding, OperationMetadata> + updateMembershipBindingOperationSettings; + private final UnaryCallSettings + deleteMembershipBindingSettings; + private final OperationCallSettings + deleteMembershipBindingOperationSettings; + private final PagedCallSettings< + ListMembershipBindingsRequest, + ListMembershipBindingsResponse, + ListMembershipBindingsPagedResponse> + listMembershipBindingsSettings; + private final UnaryCallSettings + getMembershipRBACRoleBindingSettings; + private final UnaryCallSettings + createMembershipRBACRoleBindingSettings; + private final OperationCallSettings< + CreateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createMembershipRBACRoleBindingOperationSettings; + private final UnaryCallSettings + updateMembershipRBACRoleBindingSettings; + private final OperationCallSettings< + UpdateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateMembershipRBACRoleBindingOperationSettings; + private final UnaryCallSettings + deleteMembershipRBACRoleBindingSettings; + private final OperationCallSettings< + DeleteMembershipRBACRoleBindingRequest, Empty, OperationMetadata> + deleteMembershipRBACRoleBindingOperationSettings; + private final PagedCallSettings< + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + ListMembershipRBACRoleBindingsPagedResponse> + listMembershipRBACRoleBindingsSettings; + private final UnaryCallSettings< + GenerateMembershipRBACRoleBindingYAMLRequest, + GenerateMembershipRBACRoleBindingYAMLResponse> + generateMembershipRBACRoleBindingYAMLSettings; private static final PagedListDescriptor< ListMembershipsRequest, ListMembershipsResponse, Membership> @@ -223,6 +394,44 @@ public Iterable extractResources(ListMembershipsResponse payload) { } }; + private static final PagedListDescriptor< + ListBoundMembershipsRequest, ListBoundMembershipsResponse, Membership> + LIST_BOUND_MEMBERSHIPS_PAGE_STR_DESC = + new PagedListDescriptor< + ListBoundMembershipsRequest, ListBoundMembershipsResponse, Membership>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListBoundMembershipsRequest injectToken( + ListBoundMembershipsRequest payload, String token) { + return ListBoundMembershipsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListBoundMembershipsRequest injectPageSize( + ListBoundMembershipsRequest payload, int pageSize) { + return ListBoundMembershipsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListBoundMembershipsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListBoundMembershipsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListBoundMembershipsResponse payload) { + return payload.getMembershipsList(); + } + }; + private static final PagedListDescriptor LIST_FEATURES_PAGE_STR_DESC = new PagedListDescriptor() { @@ -257,6 +466,283 @@ public Iterable extractResources(ListFeaturesResponse payload) { } }; + private static final PagedListDescriptor + LIST_FLEETS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListFleetsRequest injectToken(ListFleetsRequest payload, String token) { + return ListFleetsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListFleetsRequest injectPageSize(ListFleetsRequest payload, int pageSize) { + return ListFleetsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListFleetsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListFleetsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListFleetsResponse payload) { + return payload.getFleetsList(); + } + }; + + private static final PagedListDescriptor< + ListScopeNamespacesRequest, ListScopeNamespacesResponse, Namespace> + LIST_SCOPE_NAMESPACES_PAGE_STR_DESC = + new PagedListDescriptor< + ListScopeNamespacesRequest, ListScopeNamespacesResponse, Namespace>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListScopeNamespacesRequest injectToken( + ListScopeNamespacesRequest payload, String token) { + return ListScopeNamespacesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListScopeNamespacesRequest injectPageSize( + ListScopeNamespacesRequest payload, int pageSize) { + return ListScopeNamespacesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListScopeNamespacesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListScopeNamespacesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListScopeNamespacesResponse payload) { + return payload.getScopeNamespacesList(); + } + }; + + private static final PagedListDescriptor< + ListScopeRBACRoleBindingsRequest, ListScopeRBACRoleBindingsResponse, RBACRoleBinding> + LIST_SCOPE_R_B_A_C_ROLE_BINDINGS_PAGE_STR_DESC = + new PagedListDescriptor< + ListScopeRBACRoleBindingsRequest, + ListScopeRBACRoleBindingsResponse, + RBACRoleBinding>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListScopeRBACRoleBindingsRequest injectToken( + ListScopeRBACRoleBindingsRequest payload, String token) { + return ListScopeRBACRoleBindingsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListScopeRBACRoleBindingsRequest injectPageSize( + ListScopeRBACRoleBindingsRequest payload, int pageSize) { + return ListScopeRBACRoleBindingsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListScopeRBACRoleBindingsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListScopeRBACRoleBindingsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListScopeRBACRoleBindingsResponse payload) { + return payload.getRbacrolebindingsList(); + } + }; + + private static final PagedListDescriptor + LIST_SCOPES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListScopesRequest injectToken(ListScopesRequest payload, String token) { + return ListScopesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListScopesRequest injectPageSize(ListScopesRequest payload, int pageSize) { + return ListScopesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListScopesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListScopesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListScopesResponse payload) { + return payload.getScopesList(); + } + }; + + private static final PagedListDescriptor< + ListPermittedScopesRequest, ListPermittedScopesResponse, Scope> + LIST_PERMITTED_SCOPES_PAGE_STR_DESC = + new PagedListDescriptor< + ListPermittedScopesRequest, ListPermittedScopesResponse, Scope>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListPermittedScopesRequest injectToken( + ListPermittedScopesRequest payload, String token) { + return ListPermittedScopesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListPermittedScopesRequest injectPageSize( + ListPermittedScopesRequest payload, int pageSize) { + return ListPermittedScopesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListPermittedScopesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListPermittedScopesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListPermittedScopesResponse payload) { + return payload.getScopesList(); + } + }; + + private static final PagedListDescriptor< + ListMembershipBindingsRequest, ListMembershipBindingsResponse, MembershipBinding> + LIST_MEMBERSHIP_BINDINGS_PAGE_STR_DESC = + new PagedListDescriptor< + ListMembershipBindingsRequest, ListMembershipBindingsResponse, MembershipBinding>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListMembershipBindingsRequest injectToken( + ListMembershipBindingsRequest payload, String token) { + return ListMembershipBindingsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListMembershipBindingsRequest injectPageSize( + ListMembershipBindingsRequest payload, int pageSize) { + return ListMembershipBindingsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListMembershipBindingsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListMembershipBindingsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListMembershipBindingsResponse payload) { + return payload.getMembershipBindingsList(); + } + }; + + private static final PagedListDescriptor< + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + RBACRoleBinding> + LIST_MEMBERSHIP_R_B_A_C_ROLE_BINDINGS_PAGE_STR_DESC = + new PagedListDescriptor< + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + RBACRoleBinding>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListMembershipRBACRoleBindingsRequest injectToken( + ListMembershipRBACRoleBindingsRequest payload, String token) { + return ListMembershipRBACRoleBindingsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListMembershipRBACRoleBindingsRequest injectPageSize( + ListMembershipRBACRoleBindingsRequest payload, int pageSize) { + return ListMembershipRBACRoleBindingsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListMembershipRBACRoleBindingsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListMembershipRBACRoleBindingsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListMembershipRBACRoleBindingsResponse payload) { + return payload.getRbacrolebindingsList(); + } + }; + private static final PagedListResponseFactory< ListMembershipsRequest, ListMembershipsResponse, ListMembershipsPagedResponse> LIST_MEMBERSHIPS_PAGE_STR_FACT = @@ -274,6 +760,29 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListBoundMembershipsRequest, + ListBoundMembershipsResponse, + ListBoundMembershipsPagedResponse> + LIST_BOUND_MEMBERSHIPS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListBoundMembershipsRequest, + ListBoundMembershipsResponse, + ListBoundMembershipsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListBoundMembershipsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_BOUND_MEMBERSHIPS_PAGE_STR_DESC, request, context); + return ListBoundMembershipsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListFeaturesRequest, ListFeaturesResponse, ListFeaturesPagedResponse> LIST_FEATURES_PAGE_STR_FACT = @@ -291,6 +800,173 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListFleetsRequest, ListFleetsResponse, ListFleetsPagedResponse> + LIST_FLEETS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListFleetsRequest, ListFleetsResponse, ListFleetsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListFleetsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_FLEETS_PAGE_STR_DESC, request, context); + return ListFleetsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListScopeNamespacesRequest, ListScopeNamespacesResponse, ListScopeNamespacesPagedResponse> + LIST_SCOPE_NAMESPACES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListScopeNamespacesRequest, + ListScopeNamespacesResponse, + ListScopeNamespacesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListScopeNamespacesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_SCOPE_NAMESPACES_PAGE_STR_DESC, request, context); + return ListScopeNamespacesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListScopeRBACRoleBindingsRequest, + ListScopeRBACRoleBindingsResponse, + ListScopeRBACRoleBindingsPagedResponse> + LIST_SCOPE_R_B_A_C_ROLE_BINDINGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListScopeRBACRoleBindingsRequest, + ListScopeRBACRoleBindingsResponse, + ListScopeRBACRoleBindingsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListScopeRBACRoleBindingsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListScopeRBACRoleBindingsRequest, + ListScopeRBACRoleBindingsResponse, + RBACRoleBinding> + pageContext = + PageContext.create( + callable, + LIST_SCOPE_R_B_A_C_ROLE_BINDINGS_PAGE_STR_DESC, + request, + context); + return ListScopeRBACRoleBindingsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListScopesRequest, ListScopesResponse, ListScopesPagedResponse> + LIST_SCOPES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListScopesRequest, ListScopesResponse, ListScopesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListScopesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_SCOPES_PAGE_STR_DESC, request, context); + return ListScopesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListPermittedScopesRequest, ListPermittedScopesResponse, ListPermittedScopesPagedResponse> + LIST_PERMITTED_SCOPES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListPermittedScopesRequest, + ListPermittedScopesResponse, + ListPermittedScopesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListPermittedScopesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_PERMITTED_SCOPES_PAGE_STR_DESC, request, context); + return ListPermittedScopesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListMembershipBindingsRequest, + ListMembershipBindingsResponse, + ListMembershipBindingsPagedResponse> + LIST_MEMBERSHIP_BINDINGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListMembershipBindingsRequest, + ListMembershipBindingsResponse, + ListMembershipBindingsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListMembershipBindingsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListMembershipBindingsRequest, + ListMembershipBindingsResponse, + MembershipBinding> + pageContext = + PageContext.create( + callable, LIST_MEMBERSHIP_BINDINGS_PAGE_STR_DESC, request, context); + return ListMembershipBindingsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + ListMembershipRBACRoleBindingsPagedResponse> + LIST_MEMBERSHIP_R_B_A_C_ROLE_BINDINGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + ListMembershipRBACRoleBindingsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse> + callable, + ListMembershipRBACRoleBindingsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + RBACRoleBinding> + pageContext = + PageContext.create( + callable, + LIST_MEMBERSHIP_R_B_A_C_ROLE_BINDINGS_PAGE_STR_DESC, + request, + context); + return ListMembershipRBACRoleBindingsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + /** Returns the object with the settings used for calls to listMemberships. */ public PagedCallSettings< ListMembershipsRequest, ListMembershipsResponse, ListMembershipsPagedResponse> @@ -298,6 +974,15 @@ public ApiFuture getFuturePagedResponse( return listMembershipsSettings; } + /** Returns the object with the settings used for calls to listBoundMemberships. */ + public PagedCallSettings< + ListBoundMembershipsRequest, + ListBoundMembershipsResponse, + ListBoundMembershipsPagedResponse> + listBoundMembershipsSettings() { + return listBoundMembershipsSettings; + } + /** Returns the object with the settings used for calls to listFeatures. */ public PagedCallSettings listFeaturesSettings() { @@ -386,7 +1071,314 @@ public UnaryCallSettings updateFeatureSettings( return generateConnectManifestSettings; } - public GkeHubStub createStub() throws IOException { + /** Returns the object with the settings used for calls to createFleet. */ + public UnaryCallSettings createFleetSettings() { + return createFleetSettings; + } + + /** Returns the object with the settings used for calls to createFleet. */ + public OperationCallSettings + createFleetOperationSettings() { + return createFleetOperationSettings; + } + + /** Returns the object with the settings used for calls to getFleet. */ + public UnaryCallSettings getFleetSettings() { + return getFleetSettings; + } + + /** Returns the object with the settings used for calls to updateFleet. */ + public UnaryCallSettings updateFleetSettings() { + return updateFleetSettings; + } + + /** Returns the object with the settings used for calls to updateFleet. */ + public OperationCallSettings + updateFleetOperationSettings() { + return updateFleetOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteFleet. */ + public UnaryCallSettings deleteFleetSettings() { + return deleteFleetSettings; + } + + /** Returns the object with the settings used for calls to deleteFleet. */ + public OperationCallSettings + deleteFleetOperationSettings() { + return deleteFleetOperationSettings; + } + + /** Returns the object with the settings used for calls to listFleets. */ + public PagedCallSettings + listFleetsSettings() { + return listFleetsSettings; + } + + /** Returns the object with the settings used for calls to getScopeNamespace. */ + public UnaryCallSettings getScopeNamespaceSettings() { + return getScopeNamespaceSettings; + } + + /** Returns the object with the settings used for calls to createScopeNamespace. */ + public UnaryCallSettings createScopeNamespaceSettings() { + return createScopeNamespaceSettings; + } + + /** Returns the object with the settings used for calls to createScopeNamespace. */ + public OperationCallSettings + createScopeNamespaceOperationSettings() { + return createScopeNamespaceOperationSettings; + } + + /** Returns the object with the settings used for calls to updateScopeNamespace. */ + public UnaryCallSettings updateScopeNamespaceSettings() { + return updateScopeNamespaceSettings; + } + + /** Returns the object with the settings used for calls to updateScopeNamespace. */ + public OperationCallSettings + updateScopeNamespaceOperationSettings() { + return updateScopeNamespaceOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteScopeNamespace. */ + public UnaryCallSettings deleteScopeNamespaceSettings() { + return deleteScopeNamespaceSettings; + } + + /** Returns the object with the settings used for calls to deleteScopeNamespace. */ + public OperationCallSettings + deleteScopeNamespaceOperationSettings() { + return deleteScopeNamespaceOperationSettings; + } + + /** Returns the object with the settings used for calls to listScopeNamespaces. */ + public PagedCallSettings< + ListScopeNamespacesRequest, ListScopeNamespacesResponse, ListScopeNamespacesPagedResponse> + listScopeNamespacesSettings() { + return listScopeNamespacesSettings; + } + + /** Returns the object with the settings used for calls to getScopeRBACRoleBinding. */ + public UnaryCallSettings + getScopeRBACRoleBindingSettings() { + return getScopeRBACRoleBindingSettings; + } + + /** Returns the object with the settings used for calls to createScopeRBACRoleBinding. */ + public UnaryCallSettings + createScopeRBACRoleBindingSettings() { + return createScopeRBACRoleBindingSettings; + } + + /** Returns the object with the settings used for calls to createScopeRBACRoleBinding. */ + public OperationCallSettings< + CreateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createScopeRBACRoleBindingOperationSettings() { + return createScopeRBACRoleBindingOperationSettings; + } + + /** Returns the object with the settings used for calls to updateScopeRBACRoleBinding. */ + public UnaryCallSettings + updateScopeRBACRoleBindingSettings() { + return updateScopeRBACRoleBindingSettings; + } + + /** Returns the object with the settings used for calls to updateScopeRBACRoleBinding. */ + public OperationCallSettings< + UpdateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateScopeRBACRoleBindingOperationSettings() { + return updateScopeRBACRoleBindingOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteScopeRBACRoleBinding. */ + public UnaryCallSettings + deleteScopeRBACRoleBindingSettings() { + return deleteScopeRBACRoleBindingSettings; + } + + /** Returns the object with the settings used for calls to deleteScopeRBACRoleBinding. */ + public OperationCallSettings + deleteScopeRBACRoleBindingOperationSettings() { + return deleteScopeRBACRoleBindingOperationSettings; + } + + /** Returns the object with the settings used for calls to listScopeRBACRoleBindings. */ + public PagedCallSettings< + ListScopeRBACRoleBindingsRequest, + ListScopeRBACRoleBindingsResponse, + ListScopeRBACRoleBindingsPagedResponse> + listScopeRBACRoleBindingsSettings() { + return listScopeRBACRoleBindingsSettings; + } + + /** Returns the object with the settings used for calls to getScope. */ + public UnaryCallSettings getScopeSettings() { + return getScopeSettings; + } + + /** Returns the object with the settings used for calls to createScope. */ + public UnaryCallSettings createScopeSettings() { + return createScopeSettings; + } + + /** Returns the object with the settings used for calls to createScope. */ + public OperationCallSettings + createScopeOperationSettings() { + return createScopeOperationSettings; + } + + /** Returns the object with the settings used for calls to updateScope. */ + public UnaryCallSettings updateScopeSettings() { + return updateScopeSettings; + } + + /** Returns the object with the settings used for calls to updateScope. */ + public OperationCallSettings + updateScopeOperationSettings() { + return updateScopeOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteScope. */ + public UnaryCallSettings deleteScopeSettings() { + return deleteScopeSettings; + } + + /** Returns the object with the settings used for calls to deleteScope. */ + public OperationCallSettings + deleteScopeOperationSettings() { + return deleteScopeOperationSettings; + } + + /** Returns the object with the settings used for calls to listScopes. */ + public PagedCallSettings + listScopesSettings() { + return listScopesSettings; + } + + /** Returns the object with the settings used for calls to listPermittedScopes. */ + public PagedCallSettings< + ListPermittedScopesRequest, ListPermittedScopesResponse, ListPermittedScopesPagedResponse> + listPermittedScopesSettings() { + return listPermittedScopesSettings; + } + + /** Returns the object with the settings used for calls to getMembershipBinding. */ + public UnaryCallSettings + getMembershipBindingSettings() { + return getMembershipBindingSettings; + } + + /** Returns the object with the settings used for calls to createMembershipBinding. */ + public UnaryCallSettings + createMembershipBindingSettings() { + return createMembershipBindingSettings; + } + + /** Returns the object with the settings used for calls to createMembershipBinding. */ + public OperationCallSettings + createMembershipBindingOperationSettings() { + return createMembershipBindingOperationSettings; + } + + /** Returns the object with the settings used for calls to updateMembershipBinding. */ + public UnaryCallSettings + updateMembershipBindingSettings() { + return updateMembershipBindingSettings; + } + + /** Returns the object with the settings used for calls to updateMembershipBinding. */ + public OperationCallSettings + updateMembershipBindingOperationSettings() { + return updateMembershipBindingOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteMembershipBinding. */ + public UnaryCallSettings + deleteMembershipBindingSettings() { + return deleteMembershipBindingSettings; + } + + /** Returns the object with the settings used for calls to deleteMembershipBinding. */ + public OperationCallSettings + deleteMembershipBindingOperationSettings() { + return deleteMembershipBindingOperationSettings; + } + + /** Returns the object with the settings used for calls to listMembershipBindings. */ + public PagedCallSettings< + ListMembershipBindingsRequest, + ListMembershipBindingsResponse, + ListMembershipBindingsPagedResponse> + listMembershipBindingsSettings() { + return listMembershipBindingsSettings; + } + + /** Returns the object with the settings used for calls to getMembershipRBACRoleBinding. */ + public UnaryCallSettings + getMembershipRBACRoleBindingSettings() { + return getMembershipRBACRoleBindingSettings; + } + + /** Returns the object with the settings used for calls to createMembershipRBACRoleBinding. */ + public UnaryCallSettings + createMembershipRBACRoleBindingSettings() { + return createMembershipRBACRoleBindingSettings; + } + + /** Returns the object with the settings used for calls to createMembershipRBACRoleBinding. */ + public OperationCallSettings< + CreateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createMembershipRBACRoleBindingOperationSettings() { + return createMembershipRBACRoleBindingOperationSettings; + } + + /** Returns the object with the settings used for calls to updateMembershipRBACRoleBinding. */ + public UnaryCallSettings + updateMembershipRBACRoleBindingSettings() { + return updateMembershipRBACRoleBindingSettings; + } + + /** Returns the object with the settings used for calls to updateMembershipRBACRoleBinding. */ + public OperationCallSettings< + UpdateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateMembershipRBACRoleBindingOperationSettings() { + return updateMembershipRBACRoleBindingOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteMembershipRBACRoleBinding. */ + public UnaryCallSettings + deleteMembershipRBACRoleBindingSettings() { + return deleteMembershipRBACRoleBindingSettings; + } + + /** Returns the object with the settings used for calls to deleteMembershipRBACRoleBinding. */ + public OperationCallSettings + deleteMembershipRBACRoleBindingOperationSettings() { + return deleteMembershipRBACRoleBindingOperationSettings; + } + + /** Returns the object with the settings used for calls to listMembershipRBACRoleBindings. */ + public PagedCallSettings< + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + ListMembershipRBACRoleBindingsPagedResponse> + listMembershipRBACRoleBindingsSettings() { + return listMembershipRBACRoleBindingsSettings; + } + + /** + * Returns the object with the settings used for calls to generateMembershipRBACRoleBindingYAML. + */ + public UnaryCallSettings< + GenerateMembershipRBACRoleBindingYAMLRequest, + GenerateMembershipRBACRoleBindingYAMLResponse> + generateMembershipRBACRoleBindingYAMLSettings() { + return generateMembershipRBACRoleBindingYAMLSettings; + } + + public GkeHubStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { @@ -496,6 +1488,7 @@ protected GkeHubStubSettings(Builder settingsBuilder) throws IOException { super(settingsBuilder); listMembershipsSettings = settingsBuilder.listMembershipsSettings().build(); + listBoundMembershipsSettings = settingsBuilder.listBoundMembershipsSettings().build(); listFeaturesSettings = settingsBuilder.listFeaturesSettings().build(); getMembershipSettings = settingsBuilder.getMembershipSettings().build(); getFeatureSettings = settingsBuilder.getFeatureSettings().build(); @@ -512,6 +1505,77 @@ protected GkeHubStubSettings(Builder settingsBuilder) throws IOException { updateFeatureSettings = settingsBuilder.updateFeatureSettings().build(); updateFeatureOperationSettings = settingsBuilder.updateFeatureOperationSettings().build(); generateConnectManifestSettings = settingsBuilder.generateConnectManifestSettings().build(); + createFleetSettings = settingsBuilder.createFleetSettings().build(); + createFleetOperationSettings = settingsBuilder.createFleetOperationSettings().build(); + getFleetSettings = settingsBuilder.getFleetSettings().build(); + updateFleetSettings = settingsBuilder.updateFleetSettings().build(); + updateFleetOperationSettings = settingsBuilder.updateFleetOperationSettings().build(); + deleteFleetSettings = settingsBuilder.deleteFleetSettings().build(); + deleteFleetOperationSettings = settingsBuilder.deleteFleetOperationSettings().build(); + listFleetsSettings = settingsBuilder.listFleetsSettings().build(); + getScopeNamespaceSettings = settingsBuilder.getScopeNamespaceSettings().build(); + createScopeNamespaceSettings = settingsBuilder.createScopeNamespaceSettings().build(); + createScopeNamespaceOperationSettings = + settingsBuilder.createScopeNamespaceOperationSettings().build(); + updateScopeNamespaceSettings = settingsBuilder.updateScopeNamespaceSettings().build(); + updateScopeNamespaceOperationSettings = + settingsBuilder.updateScopeNamespaceOperationSettings().build(); + deleteScopeNamespaceSettings = settingsBuilder.deleteScopeNamespaceSettings().build(); + deleteScopeNamespaceOperationSettings = + settingsBuilder.deleteScopeNamespaceOperationSettings().build(); + listScopeNamespacesSettings = settingsBuilder.listScopeNamespacesSettings().build(); + getScopeRBACRoleBindingSettings = settingsBuilder.getScopeRBACRoleBindingSettings().build(); + createScopeRBACRoleBindingSettings = + settingsBuilder.createScopeRBACRoleBindingSettings().build(); + createScopeRBACRoleBindingOperationSettings = + settingsBuilder.createScopeRBACRoleBindingOperationSettings().build(); + updateScopeRBACRoleBindingSettings = + settingsBuilder.updateScopeRBACRoleBindingSettings().build(); + updateScopeRBACRoleBindingOperationSettings = + settingsBuilder.updateScopeRBACRoleBindingOperationSettings().build(); + deleteScopeRBACRoleBindingSettings = + settingsBuilder.deleteScopeRBACRoleBindingSettings().build(); + deleteScopeRBACRoleBindingOperationSettings = + settingsBuilder.deleteScopeRBACRoleBindingOperationSettings().build(); + listScopeRBACRoleBindingsSettings = settingsBuilder.listScopeRBACRoleBindingsSettings().build(); + getScopeSettings = settingsBuilder.getScopeSettings().build(); + createScopeSettings = settingsBuilder.createScopeSettings().build(); + createScopeOperationSettings = settingsBuilder.createScopeOperationSettings().build(); + updateScopeSettings = settingsBuilder.updateScopeSettings().build(); + updateScopeOperationSettings = settingsBuilder.updateScopeOperationSettings().build(); + deleteScopeSettings = settingsBuilder.deleteScopeSettings().build(); + deleteScopeOperationSettings = settingsBuilder.deleteScopeOperationSettings().build(); + listScopesSettings = settingsBuilder.listScopesSettings().build(); + listPermittedScopesSettings = settingsBuilder.listPermittedScopesSettings().build(); + getMembershipBindingSettings = settingsBuilder.getMembershipBindingSettings().build(); + createMembershipBindingSettings = settingsBuilder.createMembershipBindingSettings().build(); + createMembershipBindingOperationSettings = + settingsBuilder.createMembershipBindingOperationSettings().build(); + updateMembershipBindingSettings = settingsBuilder.updateMembershipBindingSettings().build(); + updateMembershipBindingOperationSettings = + settingsBuilder.updateMembershipBindingOperationSettings().build(); + deleteMembershipBindingSettings = settingsBuilder.deleteMembershipBindingSettings().build(); + deleteMembershipBindingOperationSettings = + settingsBuilder.deleteMembershipBindingOperationSettings().build(); + listMembershipBindingsSettings = settingsBuilder.listMembershipBindingsSettings().build(); + getMembershipRBACRoleBindingSettings = + settingsBuilder.getMembershipRBACRoleBindingSettings().build(); + createMembershipRBACRoleBindingSettings = + settingsBuilder.createMembershipRBACRoleBindingSettings().build(); + createMembershipRBACRoleBindingOperationSettings = + settingsBuilder.createMembershipRBACRoleBindingOperationSettings().build(); + updateMembershipRBACRoleBindingSettings = + settingsBuilder.updateMembershipRBACRoleBindingSettings().build(); + updateMembershipRBACRoleBindingOperationSettings = + settingsBuilder.updateMembershipRBACRoleBindingOperationSettings().build(); + deleteMembershipRBACRoleBindingSettings = + settingsBuilder.deleteMembershipRBACRoleBindingSettings().build(); + deleteMembershipRBACRoleBindingOperationSettings = + settingsBuilder.deleteMembershipRBACRoleBindingOperationSettings().build(); + listMembershipRBACRoleBindingsSettings = + settingsBuilder.listMembershipRBACRoleBindingsSettings().build(); + generateMembershipRBACRoleBindingYAMLSettings = + settingsBuilder.generateMembershipRBACRoleBindingYAMLSettings().build(); } /** Builder for GkeHubStubSettings. */ @@ -520,6 +1584,11 @@ public static class Builder extends StubSettings.Builder listMembershipsSettings; + private final PagedCallSettings.Builder< + ListBoundMembershipsRequest, + ListBoundMembershipsResponse, + ListBoundMembershipsPagedResponse> + listBoundMembershipsSettings; private final PagedCallSettings.Builder< ListFeaturesRequest, ListFeaturesResponse, ListFeaturesPagedResponse> listFeaturesSettings; @@ -551,6 +1620,129 @@ public static class Builder extends StubSettings.Builder generateConnectManifestSettings; + private final UnaryCallSettings.Builder createFleetSettings; + private final OperationCallSettings.Builder + createFleetOperationSettings; + private final UnaryCallSettings.Builder getFleetSettings; + private final UnaryCallSettings.Builder updateFleetSettings; + private final OperationCallSettings.Builder + updateFleetOperationSettings; + private final UnaryCallSettings.Builder deleteFleetSettings; + private final OperationCallSettings.Builder + deleteFleetOperationSettings; + private final PagedCallSettings.Builder< + ListFleetsRequest, ListFleetsResponse, ListFleetsPagedResponse> + listFleetsSettings; + private final UnaryCallSettings.Builder + getScopeNamespaceSettings; + private final UnaryCallSettings.Builder + createScopeNamespaceSettings; + private final OperationCallSettings.Builder< + CreateScopeNamespaceRequest, Namespace, OperationMetadata> + createScopeNamespaceOperationSettings; + private final UnaryCallSettings.Builder + updateScopeNamespaceSettings; + private final OperationCallSettings.Builder< + UpdateScopeNamespaceRequest, Namespace, OperationMetadata> + updateScopeNamespaceOperationSettings; + private final UnaryCallSettings.Builder + deleteScopeNamespaceSettings; + private final OperationCallSettings.Builder< + DeleteScopeNamespaceRequest, Empty, OperationMetadata> + deleteScopeNamespaceOperationSettings; + private final PagedCallSettings.Builder< + ListScopeNamespacesRequest, + ListScopeNamespacesResponse, + ListScopeNamespacesPagedResponse> + listScopeNamespacesSettings; + private final UnaryCallSettings.Builder + getScopeRBACRoleBindingSettings; + private final UnaryCallSettings.Builder + createScopeRBACRoleBindingSettings; + private final OperationCallSettings.Builder< + CreateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createScopeRBACRoleBindingOperationSettings; + private final UnaryCallSettings.Builder + updateScopeRBACRoleBindingSettings; + private final OperationCallSettings.Builder< + UpdateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateScopeRBACRoleBindingOperationSettings; + private final UnaryCallSettings.Builder + deleteScopeRBACRoleBindingSettings; + private final OperationCallSettings.Builder< + DeleteScopeRBACRoleBindingRequest, Empty, OperationMetadata> + deleteScopeRBACRoleBindingOperationSettings; + private final PagedCallSettings.Builder< + ListScopeRBACRoleBindingsRequest, + ListScopeRBACRoleBindingsResponse, + ListScopeRBACRoleBindingsPagedResponse> + listScopeRBACRoleBindingsSettings; + private final UnaryCallSettings.Builder getScopeSettings; + private final UnaryCallSettings.Builder createScopeSettings; + private final OperationCallSettings.Builder + createScopeOperationSettings; + private final UnaryCallSettings.Builder updateScopeSettings; + private final OperationCallSettings.Builder + updateScopeOperationSettings; + private final UnaryCallSettings.Builder deleteScopeSettings; + private final OperationCallSettings.Builder + deleteScopeOperationSettings; + private final PagedCallSettings.Builder< + ListScopesRequest, ListScopesResponse, ListScopesPagedResponse> + listScopesSettings; + private final PagedCallSettings.Builder< + ListPermittedScopesRequest, + ListPermittedScopesResponse, + ListPermittedScopesPagedResponse> + listPermittedScopesSettings; + private final UnaryCallSettings.Builder + getMembershipBindingSettings; + private final UnaryCallSettings.Builder + createMembershipBindingSettings; + private final OperationCallSettings.Builder< + CreateMembershipBindingRequest, MembershipBinding, OperationMetadata> + createMembershipBindingOperationSettings; + private final UnaryCallSettings.Builder + updateMembershipBindingSettings; + private final OperationCallSettings.Builder< + UpdateMembershipBindingRequest, MembershipBinding, OperationMetadata> + updateMembershipBindingOperationSettings; + private final UnaryCallSettings.Builder + deleteMembershipBindingSettings; + private final OperationCallSettings.Builder< + DeleteMembershipBindingRequest, Empty, OperationMetadata> + deleteMembershipBindingOperationSettings; + private final PagedCallSettings.Builder< + ListMembershipBindingsRequest, + ListMembershipBindingsResponse, + ListMembershipBindingsPagedResponse> + listMembershipBindingsSettings; + private final UnaryCallSettings.Builder + getMembershipRBACRoleBindingSettings; + private final UnaryCallSettings.Builder + createMembershipRBACRoleBindingSettings; + private final OperationCallSettings.Builder< + CreateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createMembershipRBACRoleBindingOperationSettings; + private final UnaryCallSettings.Builder + updateMembershipRBACRoleBindingSettings; + private final OperationCallSettings.Builder< + UpdateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateMembershipRBACRoleBindingOperationSettings; + private final UnaryCallSettings.Builder + deleteMembershipRBACRoleBindingSettings; + private final OperationCallSettings.Builder< + DeleteMembershipRBACRoleBindingRequest, Empty, OperationMetadata> + deleteMembershipRBACRoleBindingOperationSettings; + private final PagedCallSettings.Builder< + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + ListMembershipRBACRoleBindingsPagedResponse> + listMembershipRBACRoleBindingsSettings; + private final UnaryCallSettings.Builder< + GenerateMembershipRBACRoleBindingYAMLRequest, + GenerateMembershipRBACRoleBindingYAMLResponse> + generateMembershipRBACRoleBindingYAMLSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -590,6 +1782,8 @@ protected Builder(ClientContext clientContext) { super(clientContext); listMembershipsSettings = PagedCallSettings.newBuilder(LIST_MEMBERSHIPS_PAGE_STR_FACT); + listBoundMembershipsSettings = + PagedCallSettings.newBuilder(LIST_BOUND_MEMBERSHIPS_PAGE_STR_FACT); listFeaturesSettings = PagedCallSettings.newBuilder(LIST_FEATURES_PAGE_STR_FACT); getMembershipSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getFeatureSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -606,10 +1800,67 @@ protected Builder(ClientContext clientContext) { updateFeatureSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateFeatureOperationSettings = OperationCallSettings.newBuilder(); generateConnectManifestSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createFleetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createFleetOperationSettings = OperationCallSettings.newBuilder(); + getFleetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateFleetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateFleetOperationSettings = OperationCallSettings.newBuilder(); + deleteFleetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteFleetOperationSettings = OperationCallSettings.newBuilder(); + listFleetsSettings = PagedCallSettings.newBuilder(LIST_FLEETS_PAGE_STR_FACT); + getScopeNamespaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createScopeNamespaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createScopeNamespaceOperationSettings = OperationCallSettings.newBuilder(); + updateScopeNamespaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateScopeNamespaceOperationSettings = OperationCallSettings.newBuilder(); + deleteScopeNamespaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteScopeNamespaceOperationSettings = OperationCallSettings.newBuilder(); + listScopeNamespacesSettings = + PagedCallSettings.newBuilder(LIST_SCOPE_NAMESPACES_PAGE_STR_FACT); + getScopeRBACRoleBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createScopeRBACRoleBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createScopeRBACRoleBindingOperationSettings = OperationCallSettings.newBuilder(); + updateScopeRBACRoleBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateScopeRBACRoleBindingOperationSettings = OperationCallSettings.newBuilder(); + deleteScopeRBACRoleBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteScopeRBACRoleBindingOperationSettings = OperationCallSettings.newBuilder(); + listScopeRBACRoleBindingsSettings = + PagedCallSettings.newBuilder(LIST_SCOPE_R_B_A_C_ROLE_BINDINGS_PAGE_STR_FACT); + getScopeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createScopeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createScopeOperationSettings = OperationCallSettings.newBuilder(); + updateScopeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateScopeOperationSettings = OperationCallSettings.newBuilder(); + deleteScopeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteScopeOperationSettings = OperationCallSettings.newBuilder(); + listScopesSettings = PagedCallSettings.newBuilder(LIST_SCOPES_PAGE_STR_FACT); + listPermittedScopesSettings = + PagedCallSettings.newBuilder(LIST_PERMITTED_SCOPES_PAGE_STR_FACT); + getMembershipBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createMembershipBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createMembershipBindingOperationSettings = OperationCallSettings.newBuilder(); + updateMembershipBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateMembershipBindingOperationSettings = OperationCallSettings.newBuilder(); + deleteMembershipBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteMembershipBindingOperationSettings = OperationCallSettings.newBuilder(); + listMembershipBindingsSettings = + PagedCallSettings.newBuilder(LIST_MEMBERSHIP_BINDINGS_PAGE_STR_FACT); + getMembershipRBACRoleBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createMembershipRBACRoleBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createMembershipRBACRoleBindingOperationSettings = OperationCallSettings.newBuilder(); + updateMembershipRBACRoleBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateMembershipRBACRoleBindingOperationSettings = OperationCallSettings.newBuilder(); + deleteMembershipRBACRoleBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteMembershipRBACRoleBindingOperationSettings = OperationCallSettings.newBuilder(); + listMembershipRBACRoleBindingsSettings = + PagedCallSettings.newBuilder(LIST_MEMBERSHIP_R_B_A_C_ROLE_BINDINGS_PAGE_STR_FACT); + generateMembershipRBACRoleBindingYAMLSettings = + UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( listMembershipsSettings, + listBoundMembershipsSettings, listFeaturesSettings, getMembershipSettings, getFeatureSettings, @@ -619,7 +1870,39 @@ protected Builder(ClientContext clientContext) { deleteFeatureSettings, updateMembershipSettings, updateFeatureSettings, - generateConnectManifestSettings); + generateConnectManifestSettings, + createFleetSettings, + getFleetSettings, + updateFleetSettings, + deleteFleetSettings, + listFleetsSettings, + getScopeNamespaceSettings, + createScopeNamespaceSettings, + updateScopeNamespaceSettings, + deleteScopeNamespaceSettings, + listScopeNamespacesSettings, + getScopeRBACRoleBindingSettings, + createScopeRBACRoleBindingSettings, + updateScopeRBACRoleBindingSettings, + deleteScopeRBACRoleBindingSettings, + listScopeRBACRoleBindingsSettings, + getScopeSettings, + createScopeSettings, + updateScopeSettings, + deleteScopeSettings, + listScopesSettings, + listPermittedScopesSettings, + getMembershipBindingSettings, + createMembershipBindingSettings, + updateMembershipBindingSettings, + deleteMembershipBindingSettings, + listMembershipBindingsSettings, + getMembershipRBACRoleBindingSettings, + createMembershipRBACRoleBindingSettings, + updateMembershipRBACRoleBindingSettings, + deleteMembershipRBACRoleBindingSettings, + listMembershipRBACRoleBindingsSettings, + generateMembershipRBACRoleBindingYAMLSettings); initDefaults(this); } @@ -627,6 +1910,7 @@ protected Builder(GkeHubStubSettings settings) { super(settings); listMembershipsSettings = settings.listMembershipsSettings.toBuilder(); + listBoundMembershipsSettings = settings.listBoundMembershipsSettings.toBuilder(); listFeaturesSettings = settings.listFeaturesSettings.toBuilder(); getMembershipSettings = settings.getMembershipSettings.toBuilder(); getFeatureSettings = settings.getFeatureSettings.toBuilder(); @@ -643,10 +1927,79 @@ protected Builder(GkeHubStubSettings settings) { updateFeatureSettings = settings.updateFeatureSettings.toBuilder(); updateFeatureOperationSettings = settings.updateFeatureOperationSettings.toBuilder(); generateConnectManifestSettings = settings.generateConnectManifestSettings.toBuilder(); + createFleetSettings = settings.createFleetSettings.toBuilder(); + createFleetOperationSettings = settings.createFleetOperationSettings.toBuilder(); + getFleetSettings = settings.getFleetSettings.toBuilder(); + updateFleetSettings = settings.updateFleetSettings.toBuilder(); + updateFleetOperationSettings = settings.updateFleetOperationSettings.toBuilder(); + deleteFleetSettings = settings.deleteFleetSettings.toBuilder(); + deleteFleetOperationSettings = settings.deleteFleetOperationSettings.toBuilder(); + listFleetsSettings = settings.listFleetsSettings.toBuilder(); + getScopeNamespaceSettings = settings.getScopeNamespaceSettings.toBuilder(); + createScopeNamespaceSettings = settings.createScopeNamespaceSettings.toBuilder(); + createScopeNamespaceOperationSettings = + settings.createScopeNamespaceOperationSettings.toBuilder(); + updateScopeNamespaceSettings = settings.updateScopeNamespaceSettings.toBuilder(); + updateScopeNamespaceOperationSettings = + settings.updateScopeNamespaceOperationSettings.toBuilder(); + deleteScopeNamespaceSettings = settings.deleteScopeNamespaceSettings.toBuilder(); + deleteScopeNamespaceOperationSettings = + settings.deleteScopeNamespaceOperationSettings.toBuilder(); + listScopeNamespacesSettings = settings.listScopeNamespacesSettings.toBuilder(); + getScopeRBACRoleBindingSettings = settings.getScopeRBACRoleBindingSettings.toBuilder(); + createScopeRBACRoleBindingSettings = settings.createScopeRBACRoleBindingSettings.toBuilder(); + createScopeRBACRoleBindingOperationSettings = + settings.createScopeRBACRoleBindingOperationSettings.toBuilder(); + updateScopeRBACRoleBindingSettings = settings.updateScopeRBACRoleBindingSettings.toBuilder(); + updateScopeRBACRoleBindingOperationSettings = + settings.updateScopeRBACRoleBindingOperationSettings.toBuilder(); + deleteScopeRBACRoleBindingSettings = settings.deleteScopeRBACRoleBindingSettings.toBuilder(); + deleteScopeRBACRoleBindingOperationSettings = + settings.deleteScopeRBACRoleBindingOperationSettings.toBuilder(); + listScopeRBACRoleBindingsSettings = settings.listScopeRBACRoleBindingsSettings.toBuilder(); + getScopeSettings = settings.getScopeSettings.toBuilder(); + createScopeSettings = settings.createScopeSettings.toBuilder(); + createScopeOperationSettings = settings.createScopeOperationSettings.toBuilder(); + updateScopeSettings = settings.updateScopeSettings.toBuilder(); + updateScopeOperationSettings = settings.updateScopeOperationSettings.toBuilder(); + deleteScopeSettings = settings.deleteScopeSettings.toBuilder(); + deleteScopeOperationSettings = settings.deleteScopeOperationSettings.toBuilder(); + listScopesSettings = settings.listScopesSettings.toBuilder(); + listPermittedScopesSettings = settings.listPermittedScopesSettings.toBuilder(); + getMembershipBindingSettings = settings.getMembershipBindingSettings.toBuilder(); + createMembershipBindingSettings = settings.createMembershipBindingSettings.toBuilder(); + createMembershipBindingOperationSettings = + settings.createMembershipBindingOperationSettings.toBuilder(); + updateMembershipBindingSettings = settings.updateMembershipBindingSettings.toBuilder(); + updateMembershipBindingOperationSettings = + settings.updateMembershipBindingOperationSettings.toBuilder(); + deleteMembershipBindingSettings = settings.deleteMembershipBindingSettings.toBuilder(); + deleteMembershipBindingOperationSettings = + settings.deleteMembershipBindingOperationSettings.toBuilder(); + listMembershipBindingsSettings = settings.listMembershipBindingsSettings.toBuilder(); + getMembershipRBACRoleBindingSettings = + settings.getMembershipRBACRoleBindingSettings.toBuilder(); + createMembershipRBACRoleBindingSettings = + settings.createMembershipRBACRoleBindingSettings.toBuilder(); + createMembershipRBACRoleBindingOperationSettings = + settings.createMembershipRBACRoleBindingOperationSettings.toBuilder(); + updateMembershipRBACRoleBindingSettings = + settings.updateMembershipRBACRoleBindingSettings.toBuilder(); + updateMembershipRBACRoleBindingOperationSettings = + settings.updateMembershipRBACRoleBindingOperationSettings.toBuilder(); + deleteMembershipRBACRoleBindingSettings = + settings.deleteMembershipRBACRoleBindingSettings.toBuilder(); + deleteMembershipRBACRoleBindingOperationSettings = + settings.deleteMembershipRBACRoleBindingOperationSettings.toBuilder(); + listMembershipRBACRoleBindingsSettings = + settings.listMembershipRBACRoleBindingsSettings.toBuilder(); + generateMembershipRBACRoleBindingYAMLSettings = + settings.generateMembershipRBACRoleBindingYAMLSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( listMembershipsSettings, + listBoundMembershipsSettings, listFeaturesSettings, getMembershipSettings, getFeatureSettings, @@ -656,7 +2009,39 @@ protected Builder(GkeHubStubSettings settings) { deleteFeatureSettings, updateMembershipSettings, updateFeatureSettings, - generateConnectManifestSettings); + generateConnectManifestSettings, + createFleetSettings, + getFleetSettings, + updateFleetSettings, + deleteFleetSettings, + listFleetsSettings, + getScopeNamespaceSettings, + createScopeNamespaceSettings, + updateScopeNamespaceSettings, + deleteScopeNamespaceSettings, + listScopeNamespacesSettings, + getScopeRBACRoleBindingSettings, + createScopeRBACRoleBindingSettings, + updateScopeRBACRoleBindingSettings, + deleteScopeRBACRoleBindingSettings, + listScopeRBACRoleBindingsSettings, + getScopeSettings, + createScopeSettings, + updateScopeSettings, + deleteScopeSettings, + listScopesSettings, + listPermittedScopesSettings, + getMembershipBindingSettings, + createMembershipBindingSettings, + updateMembershipBindingSettings, + deleteMembershipBindingSettings, + listMembershipBindingsSettings, + getMembershipRBACRoleBindingSettings, + createMembershipRBACRoleBindingSettings, + updateMembershipRBACRoleBindingSettings, + deleteMembershipRBACRoleBindingSettings, + listMembershipRBACRoleBindingsSettings, + generateMembershipRBACRoleBindingYAMLSettings); } private static Builder createDefault() { @@ -689,6 +2074,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .listBoundMembershipsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .listFeaturesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -715,40 +2105,629 @@ private static Builder initDefaults(Builder builder) { .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder - .deleteMembershipSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + .deleteMembershipSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteFeatureSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateMembershipSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateFeatureSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .generateConnectManifestSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createFleetSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getFleetSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateFleetSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteFleetSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listFleetsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getScopeNamespaceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createScopeNamespaceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateScopeNamespaceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteScopeNamespaceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listScopeNamespacesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getScopeRBACRoleBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createScopeRBACRoleBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateScopeRBACRoleBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteScopeRBACRoleBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listScopeRBACRoleBindingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getScopeSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createScopeSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateScopeSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteScopeSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listScopesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listPermittedScopesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getMembershipBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createMembershipBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateMembershipBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteMembershipBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listMembershipBindingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getMembershipRBACRoleBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createMembershipRBACRoleBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateMembershipRBACRoleBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteMembershipRBACRoleBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listMembershipRBACRoleBindingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .generateMembershipRBACRoleBindingYAMLSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createMembershipOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Membership.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .createFeatureOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Feature.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteMembershipOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteFeatureOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateMembershipOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Membership.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateFeatureOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Feature.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .createFleetOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Fleet.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateFleetOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Fleet.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteFleetOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .createScopeNamespaceOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Namespace.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateScopeNamespaceOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Namespace.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteScopeNamespaceOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .createScopeRBACRoleBindingOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(RBACRoleBinding.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateScopeRBACRoleBindingOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(RBACRoleBinding.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); builder - .deleteFeatureSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + .deleteScopeRBACRoleBindingOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); builder - .updateMembershipSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + .createScopeOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Scope.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); builder - .updateFeatureSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + .updateScopeOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Scope.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); builder - .generateConnectManifestSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + .deleteScopeOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); builder - .createMembershipOperationSettings() + .createMembershipBindingOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) .build()) .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Membership.class)) + ProtoOperationTransformers.ResponseTransformer.create(MembershipBinding.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -764,15 +2743,15 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .createFeatureOperationSettings() + .updateMembershipBindingOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) .build()) .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Feature.class)) + ProtoOperationTransformers.ResponseTransformer.create(MembershipBinding.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -788,10 +2767,10 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .deleteMembershipOperationSettings() + .deleteMembershipBindingOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) .build()) @@ -812,15 +2791,16 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .deleteFeatureOperationSettings() + .createMembershipRBACRoleBindingOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + . + newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) .build()) .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + ProtoOperationTransformers.ResponseTransformer.create(RBACRoleBinding.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -836,15 +2816,16 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .updateMembershipOperationSettings() + .updateMembershipRBACRoleBindingOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + . + newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) .build()) .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Membership.class)) + ProtoOperationTransformers.ResponseTransformer.create(RBACRoleBinding.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -860,15 +2841,16 @@ private static Builder initDefaults(Builder builder) { .build())); builder - .updateFeatureOperationSettings() + .deleteMembershipRBACRoleBindingOperationSettings() .setInitialCallSettings( UnaryCallSettings - .newUnaryCallSettingsBuilder() + . + newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) .build()) .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Feature.class)) + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( @@ -908,6 +2890,15 @@ public Builder applyToAllUnaryMethods( return listMembershipsSettings; } + /** Returns the builder for the settings used for calls to listBoundMemberships. */ + public PagedCallSettings.Builder< + ListBoundMembershipsRequest, + ListBoundMembershipsResponse, + ListBoundMembershipsPagedResponse> + listBoundMembershipsSettings() { + return listBoundMembershipsSettings; + } + /** Returns the builder for the settings used for calls to listFeatures. */ public PagedCallSettings.Builder< ListFeaturesRequest, ListFeaturesResponse, ListFeaturesPagedResponse> @@ -1001,6 +2992,325 @@ public UnaryCallSettings.Builder updateFeatureS return generateConnectManifestSettings; } + /** Returns the builder for the settings used for calls to createFleet. */ + public UnaryCallSettings.Builder createFleetSettings() { + return createFleetSettings; + } + + /** Returns the builder for the settings used for calls to createFleet. */ + public OperationCallSettings.Builder + createFleetOperationSettings() { + return createFleetOperationSettings; + } + + /** Returns the builder for the settings used for calls to getFleet. */ + public UnaryCallSettings.Builder getFleetSettings() { + return getFleetSettings; + } + + /** Returns the builder for the settings used for calls to updateFleet. */ + public UnaryCallSettings.Builder updateFleetSettings() { + return updateFleetSettings; + } + + /** Returns the builder for the settings used for calls to updateFleet. */ + public OperationCallSettings.Builder + updateFleetOperationSettings() { + return updateFleetOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteFleet. */ + public UnaryCallSettings.Builder deleteFleetSettings() { + return deleteFleetSettings; + } + + /** Returns the builder for the settings used for calls to deleteFleet. */ + public OperationCallSettings.Builder + deleteFleetOperationSettings() { + return deleteFleetOperationSettings; + } + + /** Returns the builder for the settings used for calls to listFleets. */ + public PagedCallSettings.Builder + listFleetsSettings() { + return listFleetsSettings; + } + + /** Returns the builder for the settings used for calls to getScopeNamespace. */ + public UnaryCallSettings.Builder + getScopeNamespaceSettings() { + return getScopeNamespaceSettings; + } + + /** Returns the builder for the settings used for calls to createScopeNamespace. */ + public UnaryCallSettings.Builder + createScopeNamespaceSettings() { + return createScopeNamespaceSettings; + } + + /** Returns the builder for the settings used for calls to createScopeNamespace. */ + public OperationCallSettings.Builder + createScopeNamespaceOperationSettings() { + return createScopeNamespaceOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateScopeNamespace. */ + public UnaryCallSettings.Builder + updateScopeNamespaceSettings() { + return updateScopeNamespaceSettings; + } + + /** Returns the builder for the settings used for calls to updateScopeNamespace. */ + public OperationCallSettings.Builder + updateScopeNamespaceOperationSettings() { + return updateScopeNamespaceOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteScopeNamespace. */ + public UnaryCallSettings.Builder + deleteScopeNamespaceSettings() { + return deleteScopeNamespaceSettings; + } + + /** Returns the builder for the settings used for calls to deleteScopeNamespace. */ + public OperationCallSettings.Builder + deleteScopeNamespaceOperationSettings() { + return deleteScopeNamespaceOperationSettings; + } + + /** Returns the builder for the settings used for calls to listScopeNamespaces. */ + public PagedCallSettings.Builder< + ListScopeNamespacesRequest, + ListScopeNamespacesResponse, + ListScopeNamespacesPagedResponse> + listScopeNamespacesSettings() { + return listScopeNamespacesSettings; + } + + /** Returns the builder for the settings used for calls to getScopeRBACRoleBinding. */ + public UnaryCallSettings.Builder + getScopeRBACRoleBindingSettings() { + return getScopeRBACRoleBindingSettings; + } + + /** Returns the builder for the settings used for calls to createScopeRBACRoleBinding. */ + public UnaryCallSettings.Builder + createScopeRBACRoleBindingSettings() { + return createScopeRBACRoleBindingSettings; + } + + /** Returns the builder for the settings used for calls to createScopeRBACRoleBinding. */ + public OperationCallSettings.Builder< + CreateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createScopeRBACRoleBindingOperationSettings() { + return createScopeRBACRoleBindingOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateScopeRBACRoleBinding. */ + public UnaryCallSettings.Builder + updateScopeRBACRoleBindingSettings() { + return updateScopeRBACRoleBindingSettings; + } + + /** Returns the builder for the settings used for calls to updateScopeRBACRoleBinding. */ + public OperationCallSettings.Builder< + UpdateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateScopeRBACRoleBindingOperationSettings() { + return updateScopeRBACRoleBindingOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteScopeRBACRoleBinding. */ + public UnaryCallSettings.Builder + deleteScopeRBACRoleBindingSettings() { + return deleteScopeRBACRoleBindingSettings; + } + + /** Returns the builder for the settings used for calls to deleteScopeRBACRoleBinding. */ + public OperationCallSettings.Builder< + DeleteScopeRBACRoleBindingRequest, Empty, OperationMetadata> + deleteScopeRBACRoleBindingOperationSettings() { + return deleteScopeRBACRoleBindingOperationSettings; + } + + /** Returns the builder for the settings used for calls to listScopeRBACRoleBindings. */ + public PagedCallSettings.Builder< + ListScopeRBACRoleBindingsRequest, + ListScopeRBACRoleBindingsResponse, + ListScopeRBACRoleBindingsPagedResponse> + listScopeRBACRoleBindingsSettings() { + return listScopeRBACRoleBindingsSettings; + } + + /** Returns the builder for the settings used for calls to getScope. */ + public UnaryCallSettings.Builder getScopeSettings() { + return getScopeSettings; + } + + /** Returns the builder for the settings used for calls to createScope. */ + public UnaryCallSettings.Builder createScopeSettings() { + return createScopeSettings; + } + + /** Returns the builder for the settings used for calls to createScope. */ + public OperationCallSettings.Builder + createScopeOperationSettings() { + return createScopeOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateScope. */ + public UnaryCallSettings.Builder updateScopeSettings() { + return updateScopeSettings; + } + + /** Returns the builder for the settings used for calls to updateScope. */ + public OperationCallSettings.Builder + updateScopeOperationSettings() { + return updateScopeOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteScope. */ + public UnaryCallSettings.Builder deleteScopeSettings() { + return deleteScopeSettings; + } + + /** Returns the builder for the settings used for calls to deleteScope. */ + public OperationCallSettings.Builder + deleteScopeOperationSettings() { + return deleteScopeOperationSettings; + } + + /** Returns the builder for the settings used for calls to listScopes. */ + public PagedCallSettings.Builder + listScopesSettings() { + return listScopesSettings; + } + + /** Returns the builder for the settings used for calls to listPermittedScopes. */ + public PagedCallSettings.Builder< + ListPermittedScopesRequest, + ListPermittedScopesResponse, + ListPermittedScopesPagedResponse> + listPermittedScopesSettings() { + return listPermittedScopesSettings; + } + + /** Returns the builder for the settings used for calls to getMembershipBinding. */ + public UnaryCallSettings.Builder + getMembershipBindingSettings() { + return getMembershipBindingSettings; + } + + /** Returns the builder for the settings used for calls to createMembershipBinding. */ + public UnaryCallSettings.Builder + createMembershipBindingSettings() { + return createMembershipBindingSettings; + } + + /** Returns the builder for the settings used for calls to createMembershipBinding. */ + public OperationCallSettings.Builder< + CreateMembershipBindingRequest, MembershipBinding, OperationMetadata> + createMembershipBindingOperationSettings() { + return createMembershipBindingOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateMembershipBinding. */ + public UnaryCallSettings.Builder + updateMembershipBindingSettings() { + return updateMembershipBindingSettings; + } + + /** Returns the builder for the settings used for calls to updateMembershipBinding. */ + public OperationCallSettings.Builder< + UpdateMembershipBindingRequest, MembershipBinding, OperationMetadata> + updateMembershipBindingOperationSettings() { + return updateMembershipBindingOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteMembershipBinding. */ + public UnaryCallSettings.Builder + deleteMembershipBindingSettings() { + return deleteMembershipBindingSettings; + } + + /** Returns the builder for the settings used for calls to deleteMembershipBinding. */ + public OperationCallSettings.Builder + deleteMembershipBindingOperationSettings() { + return deleteMembershipBindingOperationSettings; + } + + /** Returns the builder for the settings used for calls to listMembershipBindings. */ + public PagedCallSettings.Builder< + ListMembershipBindingsRequest, + ListMembershipBindingsResponse, + ListMembershipBindingsPagedResponse> + listMembershipBindingsSettings() { + return listMembershipBindingsSettings; + } + + /** Returns the builder for the settings used for calls to getMembershipRBACRoleBinding. */ + public UnaryCallSettings.Builder + getMembershipRBACRoleBindingSettings() { + return getMembershipRBACRoleBindingSettings; + } + + /** Returns the builder for the settings used for calls to createMembershipRBACRoleBinding. */ + public UnaryCallSettings.Builder + createMembershipRBACRoleBindingSettings() { + return createMembershipRBACRoleBindingSettings; + } + + /** Returns the builder for the settings used for calls to createMembershipRBACRoleBinding. */ + public OperationCallSettings.Builder< + CreateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createMembershipRBACRoleBindingOperationSettings() { + return createMembershipRBACRoleBindingOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateMembershipRBACRoleBinding. */ + public UnaryCallSettings.Builder + updateMembershipRBACRoleBindingSettings() { + return updateMembershipRBACRoleBindingSettings; + } + + /** Returns the builder for the settings used for calls to updateMembershipRBACRoleBinding. */ + public OperationCallSettings.Builder< + UpdateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateMembershipRBACRoleBindingOperationSettings() { + return updateMembershipRBACRoleBindingOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteMembershipRBACRoleBinding. */ + public UnaryCallSettings.Builder + deleteMembershipRBACRoleBindingSettings() { + return deleteMembershipRBACRoleBindingSettings; + } + + /** Returns the builder for the settings used for calls to deleteMembershipRBACRoleBinding. */ + public OperationCallSettings.Builder< + DeleteMembershipRBACRoleBindingRequest, Empty, OperationMetadata> + deleteMembershipRBACRoleBindingOperationSettings() { + return deleteMembershipRBACRoleBindingOperationSettings; + } + + /** Returns the builder for the settings used for calls to listMembershipRBACRoleBindings. */ + public PagedCallSettings.Builder< + ListMembershipRBACRoleBindingsRequest, + ListMembershipRBACRoleBindingsResponse, + ListMembershipRBACRoleBindingsPagedResponse> + listMembershipRBACRoleBindingsSettings() { + return listMembershipRBACRoleBindingsSettings; + } + + /** + * Returns the builder for the settings used for calls to generateMembershipRBACRoleBindingYAML. + */ + public UnaryCallSettings.Builder< + GenerateMembershipRBACRoleBindingYAMLRequest, + GenerateMembershipRBACRoleBindingYAMLResponse> + generateMembershipRBACRoleBindingYAMLSettings() { + return generateMembershipRBACRoleBindingYAMLSettings; + } + @Override public GkeHubStubSettings build() throws IOException { return new GkeHubStubSettings(this); diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GrpcGkeHubStub.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GrpcGkeHubStub.java index 02b1a4b3337b..101a1059328d 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GrpcGkeHubStub.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GrpcGkeHubStub.java @@ -16,8 +16,16 @@ package com.google.cloud.gkehub.v1.stub; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListBoundMembershipsPagedResponse; import static com.google.cloud.gkehub.v1.GkeHubClient.ListFeaturesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListFleetsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipBindingsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipRBACRoleBindingsPagedResponse; import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListPermittedScopesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopeNamespacesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopeRBACRoleBindingsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopesPagedResponse; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -28,22 +36,69 @@ import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.gkehub.v1.CreateFeatureRequest; +import com.google.cloud.gkehub.v1.CreateFleetRequest; +import com.google.cloud.gkehub.v1.CreateMembershipBindingRequest; +import com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest; import com.google.cloud.gkehub.v1.CreateMembershipRequest; +import com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.CreateScopeRequest; import com.google.cloud.gkehub.v1.DeleteFeatureRequest; +import com.google.cloud.gkehub.v1.DeleteFleetRequest; +import com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest; +import com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest; import com.google.cloud.gkehub.v1.DeleteMembershipRequest; +import com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.DeleteScopeRequest; import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.Fleet; import com.google.cloud.gkehub.v1.GenerateConnectManifestRequest; import com.google.cloud.gkehub.v1.GenerateConnectManifestResponse; +import com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest; +import com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse; import com.google.cloud.gkehub.v1.GetFeatureRequest; +import com.google.cloud.gkehub.v1.GetFleetRequest; +import com.google.cloud.gkehub.v1.GetMembershipBindingRequest; +import com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest; import com.google.cloud.gkehub.v1.GetMembershipRequest; +import com.google.cloud.gkehub.v1.GetScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GetScopeRequest; +import com.google.cloud.gkehub.v1.ListBoundMembershipsRequest; +import com.google.cloud.gkehub.v1.ListBoundMembershipsResponse; import com.google.cloud.gkehub.v1.ListFeaturesRequest; import com.google.cloud.gkehub.v1.ListFeaturesResponse; +import com.google.cloud.gkehub.v1.ListFleetsRequest; +import com.google.cloud.gkehub.v1.ListFleetsResponse; +import com.google.cloud.gkehub.v1.ListMembershipBindingsRequest; +import com.google.cloud.gkehub.v1.ListMembershipBindingsResponse; +import com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest; +import com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse; import com.google.cloud.gkehub.v1.ListMembershipsRequest; import com.google.cloud.gkehub.v1.ListMembershipsResponse; +import com.google.cloud.gkehub.v1.ListPermittedScopesRequest; +import com.google.cloud.gkehub.v1.ListPermittedScopesResponse; +import com.google.cloud.gkehub.v1.ListScopeNamespacesRequest; +import com.google.cloud.gkehub.v1.ListScopeNamespacesResponse; +import com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest; +import com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse; +import com.google.cloud.gkehub.v1.ListScopesRequest; +import com.google.cloud.gkehub.v1.ListScopesResponse; import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.Namespace; import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.Scope; import com.google.cloud.gkehub.v1.UpdateFeatureRequest; +import com.google.cloud.gkehub.v1.UpdateFleetRequest; +import com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest; +import com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest; import com.google.cloud.gkehub.v1.UpdateMembershipRequest; +import com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.UpdateScopeRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; import com.google.protobuf.Empty; @@ -73,6 +128,18 @@ public class GrpcGkeHubStub extends GkeHubStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + listBoundMembershipsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/ListBoundMemberships") + .setRequestMarshaller( + ProtoUtils.marshaller(ListBoundMembershipsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListBoundMembershipsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listFeaturesMethodDescriptor = MethodDescriptor.newBuilder() @@ -184,10 +251,373 @@ public class GrpcGkeHubStub extends GkeHubStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor createFleetMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/CreateFleet") + .setRequestMarshaller(ProtoUtils.marshaller(CreateFleetRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getFleetMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/GetFleet") + .setRequestMarshaller(ProtoUtils.marshaller(GetFleetRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Fleet.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor updateFleetMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/UpdateFleet") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateFleetRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor deleteFleetMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/DeleteFleet") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteFleetRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listFleetsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/ListFleets") + .setRequestMarshaller(ProtoUtils.marshaller(ListFleetsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListFleetsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getScopeNamespaceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/GetScopeNamespace") + .setRequestMarshaller( + ProtoUtils.marshaller(GetScopeNamespaceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Namespace.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createScopeNamespaceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/CreateScopeNamespace") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateScopeNamespaceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateScopeNamespaceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/UpdateScopeNamespace") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateScopeNamespaceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteScopeNamespaceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/DeleteScopeNamespace") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteScopeNamespaceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listScopeNamespacesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/ListScopeNamespaces") + .setRequestMarshaller( + ProtoUtils.marshaller(ListScopeNamespacesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListScopeNamespacesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getScopeRBACRoleBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/GetScopeRBACRoleBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(GetScopeRBACRoleBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(RBACRoleBinding.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createScopeRBACRoleBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/CreateScopeRBACRoleBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateScopeRBACRoleBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateScopeRBACRoleBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/UpdateScopeRBACRoleBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateScopeRBACRoleBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteScopeRBACRoleBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/DeleteScopeRBACRoleBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteScopeRBACRoleBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListScopeRBACRoleBindingsRequest, ListScopeRBACRoleBindingsResponse> + listScopeRBACRoleBindingsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/ListScopeRBACRoleBindings") + .setRequestMarshaller( + ProtoUtils.marshaller(ListScopeRBACRoleBindingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListScopeRBACRoleBindingsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getScopeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/GetScope") + .setRequestMarshaller(ProtoUtils.marshaller(GetScopeRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Scope.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor createScopeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/CreateScope") + .setRequestMarshaller(ProtoUtils.marshaller(CreateScopeRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor updateScopeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/UpdateScope") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateScopeRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor deleteScopeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/DeleteScope") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteScopeRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listScopesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/ListScopes") + .setRequestMarshaller(ProtoUtils.marshaller(ListScopesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListScopesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listPermittedScopesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/ListPermittedScopes") + .setRequestMarshaller( + ProtoUtils.marshaller(ListPermittedScopesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListPermittedScopesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getMembershipBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/GetMembershipBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(GetMembershipBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(MembershipBinding.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createMembershipBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/CreateMembershipBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateMembershipBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateMembershipBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/UpdateMembershipBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateMembershipBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteMembershipBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/DeleteMembershipBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteMembershipBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListMembershipBindingsRequest, ListMembershipBindingsResponse> + listMembershipBindingsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/ListMembershipBindings") + .setRequestMarshaller( + ProtoUtils.marshaller(ListMembershipBindingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListMembershipBindingsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getMembershipRBACRoleBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/GetMembershipRBACRoleBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(GetMembershipRBACRoleBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(RBACRoleBinding.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createMembershipRBACRoleBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/CreateMembershipRBACRoleBinding") + .setRequestMarshaller( + ProtoUtils.marshaller( + CreateMembershipRBACRoleBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateMembershipRBACRoleBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/UpdateMembershipRBACRoleBinding") + .setRequestMarshaller( + ProtoUtils.marshaller( + UpdateMembershipRBACRoleBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteMembershipRBACRoleBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/DeleteMembershipRBACRoleBinding") + .setRequestMarshaller( + ProtoUtils.marshaller( + DeleteMembershipRBACRoleBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListMembershipRBACRoleBindingsRequest, ListMembershipRBACRoleBindingsResponse> + listMembershipRBACRoleBindingsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/ListMembershipRBACRoleBindings") + .setRequestMarshaller( + ProtoUtils.marshaller(ListMembershipRBACRoleBindingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ListMembershipRBACRoleBindingsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + GenerateMembershipRBACRoleBindingYAMLRequest, + GenerateMembershipRBACRoleBindingYAMLResponse> + generateMembershipRBACRoleBindingYAMLMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gkehub.v1.GkeHub/GenerateMembershipRBACRoleBindingYAML") + .setRequestMarshaller( + ProtoUtils.marshaller( + GenerateMembershipRBACRoleBindingYAMLRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + GenerateMembershipRBACRoleBindingYAMLResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private final UnaryCallable listMembershipsCallable; private final UnaryCallable listMembershipsPagedCallable; + private final UnaryCallable + listBoundMembershipsCallable; + private final UnaryCallable + listBoundMembershipsPagedCallable; private final UnaryCallable listFeaturesCallable; private final UnaryCallable listFeaturesPagedCallable; @@ -213,6 +643,115 @@ public class GrpcGkeHubStub extends GkeHubStub { updateFeatureOperationCallable; private final UnaryCallable generateConnectManifestCallable; + private final UnaryCallable createFleetCallable; + private final OperationCallable + createFleetOperationCallable; + private final UnaryCallable getFleetCallable; + private final UnaryCallable updateFleetCallable; + private final OperationCallable + updateFleetOperationCallable; + private final UnaryCallable deleteFleetCallable; + private final OperationCallable + deleteFleetOperationCallable; + private final UnaryCallable listFleetsCallable; + private final UnaryCallable listFleetsPagedCallable; + private final UnaryCallable getScopeNamespaceCallable; + private final UnaryCallable createScopeNamespaceCallable; + private final OperationCallable + createScopeNamespaceOperationCallable; + private final UnaryCallable updateScopeNamespaceCallable; + private final OperationCallable + updateScopeNamespaceOperationCallable; + private final UnaryCallable deleteScopeNamespaceCallable; + private final OperationCallable + deleteScopeNamespaceOperationCallable; + private final UnaryCallable + listScopeNamespacesCallable; + private final UnaryCallable + listScopeNamespacesPagedCallable; + private final UnaryCallable + getScopeRBACRoleBindingCallable; + private final UnaryCallable + createScopeRBACRoleBindingCallable; + private final OperationCallable< + CreateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createScopeRBACRoleBindingOperationCallable; + private final UnaryCallable + updateScopeRBACRoleBindingCallable; + private final OperationCallable< + UpdateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateScopeRBACRoleBindingOperationCallable; + private final UnaryCallable + deleteScopeRBACRoleBindingCallable; + private final OperationCallable + deleteScopeRBACRoleBindingOperationCallable; + private final UnaryCallable + listScopeRBACRoleBindingsCallable; + private final UnaryCallable< + ListScopeRBACRoleBindingsRequest, ListScopeRBACRoleBindingsPagedResponse> + listScopeRBACRoleBindingsPagedCallable; + private final UnaryCallable getScopeCallable; + private final UnaryCallable createScopeCallable; + private final OperationCallable + createScopeOperationCallable; + private final UnaryCallable updateScopeCallable; + private final OperationCallable + updateScopeOperationCallable; + private final UnaryCallable deleteScopeCallable; + private final OperationCallable + deleteScopeOperationCallable; + private final UnaryCallable listScopesCallable; + private final UnaryCallable listScopesPagedCallable; + private final UnaryCallable + listPermittedScopesCallable; + private final UnaryCallable + listPermittedScopesPagedCallable; + private final UnaryCallable + getMembershipBindingCallable; + private final UnaryCallable + createMembershipBindingCallable; + private final OperationCallable< + CreateMembershipBindingRequest, MembershipBinding, OperationMetadata> + createMembershipBindingOperationCallable; + private final UnaryCallable + updateMembershipBindingCallable; + private final OperationCallable< + UpdateMembershipBindingRequest, MembershipBinding, OperationMetadata> + updateMembershipBindingOperationCallable; + private final UnaryCallable + deleteMembershipBindingCallable; + private final OperationCallable + deleteMembershipBindingOperationCallable; + private final UnaryCallable + listMembershipBindingsCallable; + private final UnaryCallable + listMembershipBindingsPagedCallable; + private final UnaryCallable + getMembershipRBACRoleBindingCallable; + private final UnaryCallable + createMembershipRBACRoleBindingCallable; + private final OperationCallable< + CreateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createMembershipRBACRoleBindingOperationCallable; + private final UnaryCallable + updateMembershipRBACRoleBindingCallable; + private final OperationCallable< + UpdateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateMembershipRBACRoleBindingOperationCallable; + private final UnaryCallable + deleteMembershipRBACRoleBindingCallable; + private final OperationCallable + deleteMembershipRBACRoleBindingOperationCallable; + private final UnaryCallable< + ListMembershipRBACRoleBindingsRequest, ListMembershipRBACRoleBindingsResponse> + listMembershipRBACRoleBindingsCallable; + private final UnaryCallable< + ListMembershipRBACRoleBindingsRequest, ListMembershipRBACRoleBindingsPagedResponse> + listMembershipRBACRoleBindingsPagedCallable; + private final UnaryCallable< + GenerateMembershipRBACRoleBindingYAMLRequest, + GenerateMembershipRBACRoleBindingYAMLResponse> + generateMembershipRBACRoleBindingYAMLCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -264,6 +803,17 @@ protected GrpcGkeHubStub( return builder.build(); }) .build(); + GrpcCallSettings + listBoundMembershipsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listBoundMembershipsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("scope_name", String.valueOf(request.getScopeName())); + return builder.build(); + }) + .build(); GrpcCallSettings listFeaturesTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listFeaturesMethodDescriptor) @@ -366,83 +916,727 @@ protected GrpcGkeHubStub( return builder.build(); }) .build(); - - this.listMembershipsCallable = - callableFactory.createUnaryCallable( - listMembershipsTransportSettings, settings.listMembershipsSettings(), clientContext); - this.listMembershipsPagedCallable = - callableFactory.createPagedCallable( - listMembershipsTransportSettings, settings.listMembershipsSettings(), clientContext); - this.listFeaturesCallable = - callableFactory.createUnaryCallable( - listFeaturesTransportSettings, settings.listFeaturesSettings(), clientContext); - this.listFeaturesPagedCallable = - callableFactory.createPagedCallable( - listFeaturesTransportSettings, settings.listFeaturesSettings(), clientContext); - this.getMembershipCallable = - callableFactory.createUnaryCallable( - getMembershipTransportSettings, settings.getMembershipSettings(), clientContext); - this.getFeatureCallable = - callableFactory.createUnaryCallable( - getFeatureTransportSettings, settings.getFeatureSettings(), clientContext); - this.createMembershipCallable = - callableFactory.createUnaryCallable( - createMembershipTransportSettings, settings.createMembershipSettings(), clientContext); - this.createMembershipOperationCallable = - callableFactory.createOperationCallable( - createMembershipTransportSettings, - settings.createMembershipOperationSettings(), - clientContext, - operationsStub); - this.createFeatureCallable = - callableFactory.createUnaryCallable( - createFeatureTransportSettings, settings.createFeatureSettings(), clientContext); - this.createFeatureOperationCallable = - callableFactory.createOperationCallable( - createFeatureTransportSettings, - settings.createFeatureOperationSettings(), - clientContext, - operationsStub); - this.deleteMembershipCallable = - callableFactory.createUnaryCallable( - deleteMembershipTransportSettings, settings.deleteMembershipSettings(), clientContext); - this.deleteMembershipOperationCallable = - callableFactory.createOperationCallable( - deleteMembershipTransportSettings, - settings.deleteMembershipOperationSettings(), - clientContext, - operationsStub); - this.deleteFeatureCallable = - callableFactory.createUnaryCallable( - deleteFeatureTransportSettings, settings.deleteFeatureSettings(), clientContext); - this.deleteFeatureOperationCallable = - callableFactory.createOperationCallable( - deleteFeatureTransportSettings, - settings.deleteFeatureOperationSettings(), - clientContext, - operationsStub); - this.updateMembershipCallable = - callableFactory.createUnaryCallable( - updateMembershipTransportSettings, settings.updateMembershipSettings(), clientContext); - this.updateMembershipOperationCallable = - callableFactory.createOperationCallable( - updateMembershipTransportSettings, - settings.updateMembershipOperationSettings(), - clientContext, - operationsStub); - this.updateFeatureCallable = - callableFactory.createUnaryCallable( - updateFeatureTransportSettings, settings.updateFeatureSettings(), clientContext); - this.updateFeatureOperationCallable = + GrpcCallSettings createFleetTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createFleetMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getFleetTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getFleetMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateFleetTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateFleetMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("fleet.name", String.valueOf(request.getFleet().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteFleetTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteFleetMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listFleetsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listFleetsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getScopeNamespaceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getScopeNamespaceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createScopeNamespaceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createScopeNamespaceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateScopeNamespaceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateScopeNamespaceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "scope_namespace.name", + String.valueOf(request.getScopeNamespace().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteScopeNamespaceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteScopeNamespaceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listScopeNamespacesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listScopeNamespacesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getScopeRBACRoleBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getScopeRBACRoleBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createScopeRBACRoleBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createScopeRBACRoleBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateScopeRBACRoleBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateScopeRBACRoleBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "rbacrolebinding.name", + String.valueOf(request.getRbacrolebinding().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteScopeRBACRoleBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteScopeRBACRoleBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listScopeRBACRoleBindingsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listScopeRBACRoleBindingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getScopeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getScopeMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createScopeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createScopeMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateScopeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateScopeMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("scope.name", String.valueOf(request.getScope().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteScopeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteScopeMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listScopesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listScopesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listPermittedScopesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listPermittedScopesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getMembershipBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getMembershipBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createMembershipBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createMembershipBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateMembershipBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateMembershipBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "membership_binding.name", + String.valueOf(request.getMembershipBinding().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteMembershipBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteMembershipBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listMembershipBindingsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listMembershipBindingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getMembershipRBACRoleBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getMembershipRBACRoleBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createMembershipRBACRoleBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createMembershipRBACRoleBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateMembershipRBACRoleBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateMembershipRBACRoleBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "rbacrolebinding.name", + String.valueOf(request.getRbacrolebinding().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteMembershipRBACRoleBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteMembershipRBACRoleBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listMembershipRBACRoleBindingsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listMembershipRBACRoleBindingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings< + GenerateMembershipRBACRoleBindingYAMLRequest, + GenerateMembershipRBACRoleBindingYAMLResponse> + generateMembershipRBACRoleBindingYAMLTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(generateMembershipRBACRoleBindingYAMLMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.listMembershipsCallable = + callableFactory.createUnaryCallable( + listMembershipsTransportSettings, settings.listMembershipsSettings(), clientContext); + this.listMembershipsPagedCallable = + callableFactory.createPagedCallable( + listMembershipsTransportSettings, settings.listMembershipsSettings(), clientContext); + this.listBoundMembershipsCallable = + callableFactory.createUnaryCallable( + listBoundMembershipsTransportSettings, + settings.listBoundMembershipsSettings(), + clientContext); + this.listBoundMembershipsPagedCallable = + callableFactory.createPagedCallable( + listBoundMembershipsTransportSettings, + settings.listBoundMembershipsSettings(), + clientContext); + this.listFeaturesCallable = + callableFactory.createUnaryCallable( + listFeaturesTransportSettings, settings.listFeaturesSettings(), clientContext); + this.listFeaturesPagedCallable = + callableFactory.createPagedCallable( + listFeaturesTransportSettings, settings.listFeaturesSettings(), clientContext); + this.getMembershipCallable = + callableFactory.createUnaryCallable( + getMembershipTransportSettings, settings.getMembershipSettings(), clientContext); + this.getFeatureCallable = + callableFactory.createUnaryCallable( + getFeatureTransportSettings, settings.getFeatureSettings(), clientContext); + this.createMembershipCallable = + callableFactory.createUnaryCallable( + createMembershipTransportSettings, settings.createMembershipSettings(), clientContext); + this.createMembershipOperationCallable = + callableFactory.createOperationCallable( + createMembershipTransportSettings, + settings.createMembershipOperationSettings(), + clientContext, + operationsStub); + this.createFeatureCallable = + callableFactory.createUnaryCallable( + createFeatureTransportSettings, settings.createFeatureSettings(), clientContext); + this.createFeatureOperationCallable = + callableFactory.createOperationCallable( + createFeatureTransportSettings, + settings.createFeatureOperationSettings(), + clientContext, + operationsStub); + this.deleteMembershipCallable = + callableFactory.createUnaryCallable( + deleteMembershipTransportSettings, settings.deleteMembershipSettings(), clientContext); + this.deleteMembershipOperationCallable = + callableFactory.createOperationCallable( + deleteMembershipTransportSettings, + settings.deleteMembershipOperationSettings(), + clientContext, + operationsStub); + this.deleteFeatureCallable = + callableFactory.createUnaryCallable( + deleteFeatureTransportSettings, settings.deleteFeatureSettings(), clientContext); + this.deleteFeatureOperationCallable = + callableFactory.createOperationCallable( + deleteFeatureTransportSettings, + settings.deleteFeatureOperationSettings(), + clientContext, + operationsStub); + this.updateMembershipCallable = + callableFactory.createUnaryCallable( + updateMembershipTransportSettings, settings.updateMembershipSettings(), clientContext); + this.updateMembershipOperationCallable = + callableFactory.createOperationCallable( + updateMembershipTransportSettings, + settings.updateMembershipOperationSettings(), + clientContext, + operationsStub); + this.updateFeatureCallable = + callableFactory.createUnaryCallable( + updateFeatureTransportSettings, settings.updateFeatureSettings(), clientContext); + this.updateFeatureOperationCallable = + callableFactory.createOperationCallable( + updateFeatureTransportSettings, + settings.updateFeatureOperationSettings(), + clientContext, + operationsStub); + this.generateConnectManifestCallable = + callableFactory.createUnaryCallable( + generateConnectManifestTransportSettings, + settings.generateConnectManifestSettings(), + clientContext); + this.createFleetCallable = + callableFactory.createUnaryCallable( + createFleetTransportSettings, settings.createFleetSettings(), clientContext); + this.createFleetOperationCallable = + callableFactory.createOperationCallable( + createFleetTransportSettings, + settings.createFleetOperationSettings(), + clientContext, + operationsStub); + this.getFleetCallable = + callableFactory.createUnaryCallable( + getFleetTransportSettings, settings.getFleetSettings(), clientContext); + this.updateFleetCallable = + callableFactory.createUnaryCallable( + updateFleetTransportSettings, settings.updateFleetSettings(), clientContext); + this.updateFleetOperationCallable = + callableFactory.createOperationCallable( + updateFleetTransportSettings, + settings.updateFleetOperationSettings(), + clientContext, + operationsStub); + this.deleteFleetCallable = + callableFactory.createUnaryCallable( + deleteFleetTransportSettings, settings.deleteFleetSettings(), clientContext); + this.deleteFleetOperationCallable = + callableFactory.createOperationCallable( + deleteFleetTransportSettings, + settings.deleteFleetOperationSettings(), + clientContext, + operationsStub); + this.listFleetsCallable = + callableFactory.createUnaryCallable( + listFleetsTransportSettings, settings.listFleetsSettings(), clientContext); + this.listFleetsPagedCallable = + callableFactory.createPagedCallable( + listFleetsTransportSettings, settings.listFleetsSettings(), clientContext); + this.getScopeNamespaceCallable = + callableFactory.createUnaryCallable( + getScopeNamespaceTransportSettings, + settings.getScopeNamespaceSettings(), + clientContext); + this.createScopeNamespaceCallable = + callableFactory.createUnaryCallable( + createScopeNamespaceTransportSettings, + settings.createScopeNamespaceSettings(), + clientContext); + this.createScopeNamespaceOperationCallable = + callableFactory.createOperationCallable( + createScopeNamespaceTransportSettings, + settings.createScopeNamespaceOperationSettings(), + clientContext, + operationsStub); + this.updateScopeNamespaceCallable = + callableFactory.createUnaryCallable( + updateScopeNamespaceTransportSettings, + settings.updateScopeNamespaceSettings(), + clientContext); + this.updateScopeNamespaceOperationCallable = + callableFactory.createOperationCallable( + updateScopeNamespaceTransportSettings, + settings.updateScopeNamespaceOperationSettings(), + clientContext, + operationsStub); + this.deleteScopeNamespaceCallable = + callableFactory.createUnaryCallable( + deleteScopeNamespaceTransportSettings, + settings.deleteScopeNamespaceSettings(), + clientContext); + this.deleteScopeNamespaceOperationCallable = + callableFactory.createOperationCallable( + deleteScopeNamespaceTransportSettings, + settings.deleteScopeNamespaceOperationSettings(), + clientContext, + operationsStub); + this.listScopeNamespacesCallable = + callableFactory.createUnaryCallable( + listScopeNamespacesTransportSettings, + settings.listScopeNamespacesSettings(), + clientContext); + this.listScopeNamespacesPagedCallable = + callableFactory.createPagedCallable( + listScopeNamespacesTransportSettings, + settings.listScopeNamespacesSettings(), + clientContext); + this.getScopeRBACRoleBindingCallable = + callableFactory.createUnaryCallable( + getScopeRBACRoleBindingTransportSettings, + settings.getScopeRBACRoleBindingSettings(), + clientContext); + this.createScopeRBACRoleBindingCallable = + callableFactory.createUnaryCallable( + createScopeRBACRoleBindingTransportSettings, + settings.createScopeRBACRoleBindingSettings(), + clientContext); + this.createScopeRBACRoleBindingOperationCallable = + callableFactory.createOperationCallable( + createScopeRBACRoleBindingTransportSettings, + settings.createScopeRBACRoleBindingOperationSettings(), + clientContext, + operationsStub); + this.updateScopeRBACRoleBindingCallable = + callableFactory.createUnaryCallable( + updateScopeRBACRoleBindingTransportSettings, + settings.updateScopeRBACRoleBindingSettings(), + clientContext); + this.updateScopeRBACRoleBindingOperationCallable = callableFactory.createOperationCallable( - updateFeatureTransportSettings, - settings.updateFeatureOperationSettings(), + updateScopeRBACRoleBindingTransportSettings, + settings.updateScopeRBACRoleBindingOperationSettings(), clientContext, operationsStub); - this.generateConnectManifestCallable = + this.deleteScopeRBACRoleBindingCallable = callableFactory.createUnaryCallable( - generateConnectManifestTransportSettings, - settings.generateConnectManifestSettings(), + deleteScopeRBACRoleBindingTransportSettings, + settings.deleteScopeRBACRoleBindingSettings(), + clientContext); + this.deleteScopeRBACRoleBindingOperationCallable = + callableFactory.createOperationCallable( + deleteScopeRBACRoleBindingTransportSettings, + settings.deleteScopeRBACRoleBindingOperationSettings(), + clientContext, + operationsStub); + this.listScopeRBACRoleBindingsCallable = + callableFactory.createUnaryCallable( + listScopeRBACRoleBindingsTransportSettings, + settings.listScopeRBACRoleBindingsSettings(), + clientContext); + this.listScopeRBACRoleBindingsPagedCallable = + callableFactory.createPagedCallable( + listScopeRBACRoleBindingsTransportSettings, + settings.listScopeRBACRoleBindingsSettings(), + clientContext); + this.getScopeCallable = + callableFactory.createUnaryCallable( + getScopeTransportSettings, settings.getScopeSettings(), clientContext); + this.createScopeCallable = + callableFactory.createUnaryCallable( + createScopeTransportSettings, settings.createScopeSettings(), clientContext); + this.createScopeOperationCallable = + callableFactory.createOperationCallable( + createScopeTransportSettings, + settings.createScopeOperationSettings(), + clientContext, + operationsStub); + this.updateScopeCallable = + callableFactory.createUnaryCallable( + updateScopeTransportSettings, settings.updateScopeSettings(), clientContext); + this.updateScopeOperationCallable = + callableFactory.createOperationCallable( + updateScopeTransportSettings, + settings.updateScopeOperationSettings(), + clientContext, + operationsStub); + this.deleteScopeCallable = + callableFactory.createUnaryCallable( + deleteScopeTransportSettings, settings.deleteScopeSettings(), clientContext); + this.deleteScopeOperationCallable = + callableFactory.createOperationCallable( + deleteScopeTransportSettings, + settings.deleteScopeOperationSettings(), + clientContext, + operationsStub); + this.listScopesCallable = + callableFactory.createUnaryCallable( + listScopesTransportSettings, settings.listScopesSettings(), clientContext); + this.listScopesPagedCallable = + callableFactory.createPagedCallable( + listScopesTransportSettings, settings.listScopesSettings(), clientContext); + this.listPermittedScopesCallable = + callableFactory.createUnaryCallable( + listPermittedScopesTransportSettings, + settings.listPermittedScopesSettings(), + clientContext); + this.listPermittedScopesPagedCallable = + callableFactory.createPagedCallable( + listPermittedScopesTransportSettings, + settings.listPermittedScopesSettings(), + clientContext); + this.getMembershipBindingCallable = + callableFactory.createUnaryCallable( + getMembershipBindingTransportSettings, + settings.getMembershipBindingSettings(), + clientContext); + this.createMembershipBindingCallable = + callableFactory.createUnaryCallable( + createMembershipBindingTransportSettings, + settings.createMembershipBindingSettings(), + clientContext); + this.createMembershipBindingOperationCallable = + callableFactory.createOperationCallable( + createMembershipBindingTransportSettings, + settings.createMembershipBindingOperationSettings(), + clientContext, + operationsStub); + this.updateMembershipBindingCallable = + callableFactory.createUnaryCallable( + updateMembershipBindingTransportSettings, + settings.updateMembershipBindingSettings(), + clientContext); + this.updateMembershipBindingOperationCallable = + callableFactory.createOperationCallable( + updateMembershipBindingTransportSettings, + settings.updateMembershipBindingOperationSettings(), + clientContext, + operationsStub); + this.deleteMembershipBindingCallable = + callableFactory.createUnaryCallable( + deleteMembershipBindingTransportSettings, + settings.deleteMembershipBindingSettings(), + clientContext); + this.deleteMembershipBindingOperationCallable = + callableFactory.createOperationCallable( + deleteMembershipBindingTransportSettings, + settings.deleteMembershipBindingOperationSettings(), + clientContext, + operationsStub); + this.listMembershipBindingsCallable = + callableFactory.createUnaryCallable( + listMembershipBindingsTransportSettings, + settings.listMembershipBindingsSettings(), + clientContext); + this.listMembershipBindingsPagedCallable = + callableFactory.createPagedCallable( + listMembershipBindingsTransportSettings, + settings.listMembershipBindingsSettings(), + clientContext); + this.getMembershipRBACRoleBindingCallable = + callableFactory.createUnaryCallable( + getMembershipRBACRoleBindingTransportSettings, + settings.getMembershipRBACRoleBindingSettings(), + clientContext); + this.createMembershipRBACRoleBindingCallable = + callableFactory.createUnaryCallable( + createMembershipRBACRoleBindingTransportSettings, + settings.createMembershipRBACRoleBindingSettings(), + clientContext); + this.createMembershipRBACRoleBindingOperationCallable = + callableFactory.createOperationCallable( + createMembershipRBACRoleBindingTransportSettings, + settings.createMembershipRBACRoleBindingOperationSettings(), + clientContext, + operationsStub); + this.updateMembershipRBACRoleBindingCallable = + callableFactory.createUnaryCallable( + updateMembershipRBACRoleBindingTransportSettings, + settings.updateMembershipRBACRoleBindingSettings(), + clientContext); + this.updateMembershipRBACRoleBindingOperationCallable = + callableFactory.createOperationCallable( + updateMembershipRBACRoleBindingTransportSettings, + settings.updateMembershipRBACRoleBindingOperationSettings(), + clientContext, + operationsStub); + this.deleteMembershipRBACRoleBindingCallable = + callableFactory.createUnaryCallable( + deleteMembershipRBACRoleBindingTransportSettings, + settings.deleteMembershipRBACRoleBindingSettings(), + clientContext); + this.deleteMembershipRBACRoleBindingOperationCallable = + callableFactory.createOperationCallable( + deleteMembershipRBACRoleBindingTransportSettings, + settings.deleteMembershipRBACRoleBindingOperationSettings(), + clientContext, + operationsStub); + this.listMembershipRBACRoleBindingsCallable = + callableFactory.createUnaryCallable( + listMembershipRBACRoleBindingsTransportSettings, + settings.listMembershipRBACRoleBindingsSettings(), + clientContext); + this.listMembershipRBACRoleBindingsPagedCallable = + callableFactory.createPagedCallable( + listMembershipRBACRoleBindingsTransportSettings, + settings.listMembershipRBACRoleBindingsSettings(), + clientContext); + this.generateMembershipRBACRoleBindingYAMLCallable = + callableFactory.createUnaryCallable( + generateMembershipRBACRoleBindingYAMLTransportSettings, + settings.generateMembershipRBACRoleBindingYAMLSettings(), clientContext); this.backgroundResources = @@ -464,6 +1658,18 @@ public UnaryCallable listMember return listMembershipsPagedCallable; } + @Override + public UnaryCallable + listBoundMembershipsCallable() { + return listBoundMembershipsCallable; + } + + @Override + public UnaryCallable + listBoundMembershipsPagedCallable() { + return listBoundMembershipsPagedCallable; + } + @Override public UnaryCallable listFeaturesCallable() { return listFeaturesCallable; @@ -556,6 +1762,338 @@ public UnaryCallable updateFeatureCallable() { return generateConnectManifestCallable; } + @Override + public UnaryCallable createFleetCallable() { + return createFleetCallable; + } + + @Override + public OperationCallable + createFleetOperationCallable() { + return createFleetOperationCallable; + } + + @Override + public UnaryCallable getFleetCallable() { + return getFleetCallable; + } + + @Override + public UnaryCallable updateFleetCallable() { + return updateFleetCallable; + } + + @Override + public OperationCallable + updateFleetOperationCallable() { + return updateFleetOperationCallable; + } + + @Override + public UnaryCallable deleteFleetCallable() { + return deleteFleetCallable; + } + + @Override + public OperationCallable + deleteFleetOperationCallable() { + return deleteFleetOperationCallable; + } + + @Override + public UnaryCallable listFleetsCallable() { + return listFleetsCallable; + } + + @Override + public UnaryCallable listFleetsPagedCallable() { + return listFleetsPagedCallable; + } + + @Override + public UnaryCallable getScopeNamespaceCallable() { + return getScopeNamespaceCallable; + } + + @Override + public UnaryCallable createScopeNamespaceCallable() { + return createScopeNamespaceCallable; + } + + @Override + public OperationCallable + createScopeNamespaceOperationCallable() { + return createScopeNamespaceOperationCallable; + } + + @Override + public UnaryCallable updateScopeNamespaceCallable() { + return updateScopeNamespaceCallable; + } + + @Override + public OperationCallable + updateScopeNamespaceOperationCallable() { + return updateScopeNamespaceOperationCallable; + } + + @Override + public UnaryCallable deleteScopeNamespaceCallable() { + return deleteScopeNamespaceCallable; + } + + @Override + public OperationCallable + deleteScopeNamespaceOperationCallable() { + return deleteScopeNamespaceOperationCallable; + } + + @Override + public UnaryCallable + listScopeNamespacesCallable() { + return listScopeNamespacesCallable; + } + + @Override + public UnaryCallable + listScopeNamespacesPagedCallable() { + return listScopeNamespacesPagedCallable; + } + + @Override + public UnaryCallable + getScopeRBACRoleBindingCallable() { + return getScopeRBACRoleBindingCallable; + } + + @Override + public UnaryCallable + createScopeRBACRoleBindingCallable() { + return createScopeRBACRoleBindingCallable; + } + + @Override + public OperationCallable + createScopeRBACRoleBindingOperationCallable() { + return createScopeRBACRoleBindingOperationCallable; + } + + @Override + public UnaryCallable + updateScopeRBACRoleBindingCallable() { + return updateScopeRBACRoleBindingCallable; + } + + @Override + public OperationCallable + updateScopeRBACRoleBindingOperationCallable() { + return updateScopeRBACRoleBindingOperationCallable; + } + + @Override + public UnaryCallable + deleteScopeRBACRoleBindingCallable() { + return deleteScopeRBACRoleBindingCallable; + } + + @Override + public OperationCallable + deleteScopeRBACRoleBindingOperationCallable() { + return deleteScopeRBACRoleBindingOperationCallable; + } + + @Override + public UnaryCallable + listScopeRBACRoleBindingsCallable() { + return listScopeRBACRoleBindingsCallable; + } + + @Override + public UnaryCallable + listScopeRBACRoleBindingsPagedCallable() { + return listScopeRBACRoleBindingsPagedCallable; + } + + @Override + public UnaryCallable getScopeCallable() { + return getScopeCallable; + } + + @Override + public UnaryCallable createScopeCallable() { + return createScopeCallable; + } + + @Override + public OperationCallable + createScopeOperationCallable() { + return createScopeOperationCallable; + } + + @Override + public UnaryCallable updateScopeCallable() { + return updateScopeCallable; + } + + @Override + public OperationCallable + updateScopeOperationCallable() { + return updateScopeOperationCallable; + } + + @Override + public UnaryCallable deleteScopeCallable() { + return deleteScopeCallable; + } + + @Override + public OperationCallable + deleteScopeOperationCallable() { + return deleteScopeOperationCallable; + } + + @Override + public UnaryCallable listScopesCallable() { + return listScopesCallable; + } + + @Override + public UnaryCallable listScopesPagedCallable() { + return listScopesPagedCallable; + } + + @Override + public UnaryCallable + listPermittedScopesCallable() { + return listPermittedScopesCallable; + } + + @Override + public UnaryCallable + listPermittedScopesPagedCallable() { + return listPermittedScopesPagedCallable; + } + + @Override + public UnaryCallable + getMembershipBindingCallable() { + return getMembershipBindingCallable; + } + + @Override + public UnaryCallable + createMembershipBindingCallable() { + return createMembershipBindingCallable; + } + + @Override + public OperationCallable + createMembershipBindingOperationCallable() { + return createMembershipBindingOperationCallable; + } + + @Override + public UnaryCallable + updateMembershipBindingCallable() { + return updateMembershipBindingCallable; + } + + @Override + public OperationCallable + updateMembershipBindingOperationCallable() { + return updateMembershipBindingOperationCallable; + } + + @Override + public UnaryCallable + deleteMembershipBindingCallable() { + return deleteMembershipBindingCallable; + } + + @Override + public OperationCallable + deleteMembershipBindingOperationCallable() { + return deleteMembershipBindingOperationCallable; + } + + @Override + public UnaryCallable + listMembershipBindingsCallable() { + return listMembershipBindingsCallable; + } + + @Override + public UnaryCallable + listMembershipBindingsPagedCallable() { + return listMembershipBindingsPagedCallable; + } + + @Override + public UnaryCallable + getMembershipRBACRoleBindingCallable() { + return getMembershipRBACRoleBindingCallable; + } + + @Override + public UnaryCallable + createMembershipRBACRoleBindingCallable() { + return createMembershipRBACRoleBindingCallable; + } + + @Override + public OperationCallable< + CreateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createMembershipRBACRoleBindingOperationCallable() { + return createMembershipRBACRoleBindingOperationCallable; + } + + @Override + public UnaryCallable + updateMembershipRBACRoleBindingCallable() { + return updateMembershipRBACRoleBindingCallable; + } + + @Override + public OperationCallable< + UpdateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateMembershipRBACRoleBindingOperationCallable() { + return updateMembershipRBACRoleBindingOperationCallable; + } + + @Override + public UnaryCallable + deleteMembershipRBACRoleBindingCallable() { + return deleteMembershipRBACRoleBindingCallable; + } + + @Override + public OperationCallable + deleteMembershipRBACRoleBindingOperationCallable() { + return deleteMembershipRBACRoleBindingOperationCallable; + } + + @Override + public UnaryCallable< + ListMembershipRBACRoleBindingsRequest, ListMembershipRBACRoleBindingsResponse> + listMembershipRBACRoleBindingsCallable() { + return listMembershipRBACRoleBindingsCallable; + } + + @Override + public UnaryCallable< + ListMembershipRBACRoleBindingsRequest, ListMembershipRBACRoleBindingsPagedResponse> + listMembershipRBACRoleBindingsPagedCallable() { + return listMembershipRBACRoleBindingsPagedCallable; + } + + @Override + public UnaryCallable< + GenerateMembershipRBACRoleBindingYAMLRequest, + GenerateMembershipRBACRoleBindingYAMLResponse> + generateMembershipRBACRoleBindingYAMLCallable() { + return generateMembershipRBACRoleBindingYAMLCallable; + } + @Override public final void close() { try { diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/HttpJsonGkeHubStub.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/HttpJsonGkeHubStub.java index ddf5edd0261f..05756aaec874 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/HttpJsonGkeHubStub.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/HttpJsonGkeHubStub.java @@ -16,8 +16,16 @@ package com.google.cloud.gkehub.v1.stub; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListBoundMembershipsPagedResponse; import static com.google.cloud.gkehub.v1.GkeHubClient.ListFeaturesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListFleetsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipBindingsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipRBACRoleBindingsPagedResponse; import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListPermittedScopesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopeNamespacesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopeRBACRoleBindingsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopesPagedResponse; import com.google.api.HttpRule; import com.google.api.core.InternalApi; @@ -36,22 +44,69 @@ import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.gkehub.v1.CreateFeatureRequest; +import com.google.cloud.gkehub.v1.CreateFleetRequest; +import com.google.cloud.gkehub.v1.CreateMembershipBindingRequest; +import com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest; import com.google.cloud.gkehub.v1.CreateMembershipRequest; +import com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.CreateScopeRequest; import com.google.cloud.gkehub.v1.DeleteFeatureRequest; +import com.google.cloud.gkehub.v1.DeleteFleetRequest; +import com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest; +import com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest; import com.google.cloud.gkehub.v1.DeleteMembershipRequest; +import com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.DeleteScopeRequest; import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.Fleet; import com.google.cloud.gkehub.v1.GenerateConnectManifestRequest; import com.google.cloud.gkehub.v1.GenerateConnectManifestResponse; +import com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest; +import com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse; import com.google.cloud.gkehub.v1.GetFeatureRequest; +import com.google.cloud.gkehub.v1.GetFleetRequest; +import com.google.cloud.gkehub.v1.GetMembershipBindingRequest; +import com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest; import com.google.cloud.gkehub.v1.GetMembershipRequest; +import com.google.cloud.gkehub.v1.GetScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GetScopeRequest; +import com.google.cloud.gkehub.v1.ListBoundMembershipsRequest; +import com.google.cloud.gkehub.v1.ListBoundMembershipsResponse; import com.google.cloud.gkehub.v1.ListFeaturesRequest; import com.google.cloud.gkehub.v1.ListFeaturesResponse; +import com.google.cloud.gkehub.v1.ListFleetsRequest; +import com.google.cloud.gkehub.v1.ListFleetsResponse; +import com.google.cloud.gkehub.v1.ListMembershipBindingsRequest; +import com.google.cloud.gkehub.v1.ListMembershipBindingsResponse; +import com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest; +import com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse; import com.google.cloud.gkehub.v1.ListMembershipsRequest; import com.google.cloud.gkehub.v1.ListMembershipsResponse; +import com.google.cloud.gkehub.v1.ListPermittedScopesRequest; +import com.google.cloud.gkehub.v1.ListPermittedScopesResponse; +import com.google.cloud.gkehub.v1.ListScopeNamespacesRequest; +import com.google.cloud.gkehub.v1.ListScopeNamespacesResponse; +import com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest; +import com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse; +import com.google.cloud.gkehub.v1.ListScopesRequest; +import com.google.cloud.gkehub.v1.ListScopesResponse; import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.Namespace; import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.Scope; import com.google.cloud.gkehub.v1.UpdateFeatureRequest; +import com.google.cloud.gkehub.v1.UpdateFleetRequest; +import com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest; +import com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest; import com.google.cloud.gkehub.v1.UpdateMembershipRequest; +import com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.UpdateScopeRequest; import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; import com.google.protobuf.Empty; @@ -76,8 +131,13 @@ public class HttpJsonGkeHubStub extends GkeHubStub { TypeRegistry.newBuilder() .add(Empty.getDescriptor()) .add(OperationMetadata.getDescriptor()) + .add(Scope.getDescriptor()) + .add(Fleet.getDescriptor()) .add(Feature.getDescriptor()) + .add(MembershipBinding.getDescriptor()) + .add(Namespace.getDescriptor()) .add(Membership.getDescriptor()) + .add(RBACRoleBinding.getDescriptor()) .build(); private static final ApiMethodDescriptor @@ -118,6 +178,45 @@ public class HttpJsonGkeHubStub extends GkeHubStub { .build()) .build(); + private static final ApiMethodDescriptor< + ListBoundMembershipsRequest, ListBoundMembershipsResponse> + listBoundMembershipsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/ListBoundMemberships") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{scopeName=projects/*/locations/*/scopes/*}:listMemberships", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "scopeName", request.getScopeName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListBoundMembershipsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor listFeaturesMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -144,6 +243,8 @@ public class HttpJsonGkeHubStub extends GkeHubStub { serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam( + fields, "returnPartialSuccess", request.getReturnPartialSuccess()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) @@ -211,6 +312,8 @@ public class HttpJsonGkeHubStub extends GkeHubStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "returnPartialSuccess", request.getReturnPartialSuccess()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) @@ -515,83 +618,1441 @@ public class HttpJsonGkeHubStub extends GkeHubStub { .build()) .build(); - private final UnaryCallable - listMembershipsCallable; - private final UnaryCallable - listMembershipsPagedCallable; - private final UnaryCallable listFeaturesCallable; - private final UnaryCallable - listFeaturesPagedCallable; - private final UnaryCallable getMembershipCallable; - private final UnaryCallable getFeatureCallable; - private final UnaryCallable createMembershipCallable; - private final OperationCallable - createMembershipOperationCallable; - private final UnaryCallable createFeatureCallable; - private final OperationCallable - createFeatureOperationCallable; - private final UnaryCallable deleteMembershipCallable; - private final OperationCallable - deleteMembershipOperationCallable; - private final UnaryCallable deleteFeatureCallable; - private final OperationCallable - deleteFeatureOperationCallable; - private final UnaryCallable updateMembershipCallable; - private final OperationCallable - updateMembershipOperationCallable; - private final UnaryCallable updateFeatureCallable; - private final OperationCallable - updateFeatureOperationCallable; - private final UnaryCallable - generateConnectManifestCallable; + private static final ApiMethodDescriptor + createFleetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/CreateFleet") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/fleets", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("fleet", request.getFleet(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateFleetRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); - private final BackgroundResource backgroundResources; - private final HttpJsonOperationsStub httpJsonOperationsStub; - private final HttpJsonStubCallableFactory callableFactory; + private static final ApiMethodDescriptor getFleetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/GetFleet") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/fleets/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Fleet.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); - public static final HttpJsonGkeHubStub create(GkeHubStubSettings settings) throws IOException { - return new HttpJsonGkeHubStub(settings, ClientContext.create(settings)); - } + private static final ApiMethodDescriptor + updateFleetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/UpdateFleet") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{fleet.name=projects/*/locations/*/fleets/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "fleet.name", request.getFleet().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("fleet", request.getFleet(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateFleetRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); - public static final HttpJsonGkeHubStub create(ClientContext clientContext) throws IOException { - return new HttpJsonGkeHubStub(GkeHubStubSettings.newHttpJsonBuilder().build(), clientContext); - } + private static final ApiMethodDescriptor + deleteFleetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/DeleteFleet") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/fleets/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteFleetRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); - public static final HttpJsonGkeHubStub create( - ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { - return new HttpJsonGkeHubStub( - GkeHubStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); - } + private static final ApiMethodDescriptor + listFleetsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/ListFleets") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/fleets", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v1/{parent=organizations/*/locations/*}/fleets") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListFleetsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); - /** - * Constructs an instance of HttpJsonGkeHubStub, using the given settings. This is protected so - * that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected HttpJsonGkeHubStub(GkeHubStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new HttpJsonGkeHubCallableFactory()); - } + private static final ApiMethodDescriptor + getScopeNamespaceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/GetScopeNamespace") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/scopes/*/namespaces/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Namespace.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); - /** - * Constructs an instance of HttpJsonGkeHubStub, using the given settings. This is protected so - * that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected HttpJsonGkeHubStub( - GkeHubStubSettings settings, - ClientContext clientContext, - HttpJsonStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.httpJsonOperationsStub = - HttpJsonOperationsStub.create( - clientContext, - callableFactory, - typeRegistry, - ImmutableMap.builder() - .put( - "google.longrunning.Operations.CancelOperation", + private static final ApiMethodDescriptor + createScopeNamespaceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/CreateScopeNamespace") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/scopes/*}/namespaces", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "scopeNamespaceId", request.getScopeNamespaceId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("scopeNamespace", request.getScopeNamespace(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateScopeNamespaceRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateScopeNamespaceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/UpdateScopeNamespace") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{scopeNamespace.name=projects/*/locations/*/scopes/*/namespaces/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "scopeNamespace.name", + request.getScopeNamespace().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("scopeNamespace", request.getScopeNamespace(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateScopeNamespaceRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteScopeNamespaceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/DeleteScopeNamespace") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/scopes/*/namespaces/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteScopeNamespaceRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listScopeNamespacesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/ListScopeNamespaces") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/scopes/*}/namespaces", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListScopeNamespacesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getScopeRBACRoleBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/GetScopeRBACRoleBinding") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/scopes/*/rbacrolebindings/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(RBACRoleBinding.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createScopeRBACRoleBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/CreateScopeRBACRoleBinding") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/scopes/*}/rbacrolebindings", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "rbacrolebindingId", request.getRbacrolebindingId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("rbacrolebinding", request.getRbacrolebinding(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateScopeRBACRoleBindingRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateScopeRBACRoleBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/UpdateScopeRBACRoleBinding") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{rbacrolebinding.name=projects/*/locations/*/scopes/*/rbacrolebindings/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "rbacrolebinding.name", + request.getRbacrolebinding().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("rbacrolebinding", request.getRbacrolebinding(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateScopeRBACRoleBindingRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteScopeRBACRoleBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/DeleteScopeRBACRoleBinding") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/scopes/*/rbacrolebindings/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteScopeRBACRoleBindingRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + ListScopeRBACRoleBindingsRequest, ListScopeRBACRoleBindingsResponse> + listScopeRBACRoleBindingsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/ListScopeRBACRoleBindings") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/scopes/*}/rbacrolebindings", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListScopeRBACRoleBindingsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getScopeMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/GetScope") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/scopes/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Scope.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createScopeMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/CreateScope") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/scopes", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "scopeId", request.getScopeId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("scope", request.getScope(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateScopeRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateScopeMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/UpdateScope") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{scope.name=projects/*/locations/*/scopes/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "scope.name", request.getScope().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("scope", request.getScope(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateScopeRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteScopeMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/DeleteScope") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/scopes/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteScopeRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listScopesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/ListScopes") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/scopes", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListScopesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listPermittedScopesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/ListPermittedScopes") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/scopes:listPermitted", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListPermittedScopesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getMembershipBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/GetMembershipBinding") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/memberships/*/bindings/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(MembershipBinding.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createMembershipBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/CreateMembershipBinding") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/memberships/*}/bindings", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "membershipBindingId", request.getMembershipBindingId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "membershipBinding", request.getMembershipBinding(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateMembershipBindingRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateMembershipBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/UpdateMembershipBinding") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{membershipBinding.name=projects/*/locations/*/memberships/*/bindings/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "membershipBinding.name", + request.getMembershipBinding().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "membershipBinding", request.getMembershipBinding(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateMembershipBindingRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteMembershipBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/DeleteMembershipBinding") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/memberships/*/bindings/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteMembershipBindingRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + ListMembershipBindingsRequest, ListMembershipBindingsResponse> + listMembershipBindingsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/ListMembershipBindings") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/memberships/*}/bindings", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListMembershipBindingsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getMembershipRBACRoleBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/GetMembershipRBACRoleBinding") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/memberships/*/rbacrolebindings/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(RBACRoleBinding.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createMembershipRBACRoleBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/CreateMembershipRBACRoleBinding") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/memberships/*}/rbacrolebindings", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "rbacrolebindingId", request.getRbacrolebindingId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("rbacrolebinding", request.getRbacrolebinding(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateMembershipRBACRoleBindingRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateMembershipRBACRoleBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/UpdateMembershipRBACRoleBinding") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{rbacrolebinding.name=projects/*/locations/*/memberships/*/rbacrolebindings/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "rbacrolebinding.name", + request.getRbacrolebinding().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("rbacrolebinding", request.getRbacrolebinding(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateMembershipRBACRoleBindingRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteMembershipRBACRoleBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/DeleteMembershipRBACRoleBinding") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/memberships/*/rbacrolebindings/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteMembershipRBACRoleBindingRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + ListMembershipRBACRoleBindingsRequest, ListMembershipRBACRoleBindingsResponse> + listMembershipRBACRoleBindingsMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName("google.cloud.gkehub.v1.GkeHub/ListMembershipRBACRoleBindings") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/memberships/*}/rbacrolebindings", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance( + ListMembershipRBACRoleBindingsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + GenerateMembershipRBACRoleBindingYAMLRequest, + GenerateMembershipRBACRoleBindingYAMLResponse> + generateMembershipRBACRoleBindingYAMLMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.gkehub.v1.GkeHub/GenerateMembershipRBACRoleBindingYAML") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/memberships/*}/rbacrolebindings:generateMembershipRBACRoleBindingYAML", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "rbacrolebindingId", request.getRbacrolebindingId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("rbacrolebinding", request.getRbacrolebinding(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser + .newBuilder() + .setDefaultInstance( + GenerateMembershipRBACRoleBindingYAMLResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + listMembershipsCallable; + private final UnaryCallable + listMembershipsPagedCallable; + private final UnaryCallable + listBoundMembershipsCallable; + private final UnaryCallable + listBoundMembershipsPagedCallable; + private final UnaryCallable listFeaturesCallable; + private final UnaryCallable + listFeaturesPagedCallable; + private final UnaryCallable getMembershipCallable; + private final UnaryCallable getFeatureCallable; + private final UnaryCallable createMembershipCallable; + private final OperationCallable + createMembershipOperationCallable; + private final UnaryCallable createFeatureCallable; + private final OperationCallable + createFeatureOperationCallable; + private final UnaryCallable deleteMembershipCallable; + private final OperationCallable + deleteMembershipOperationCallable; + private final UnaryCallable deleteFeatureCallable; + private final OperationCallable + deleteFeatureOperationCallable; + private final UnaryCallable updateMembershipCallable; + private final OperationCallable + updateMembershipOperationCallable; + private final UnaryCallable updateFeatureCallable; + private final OperationCallable + updateFeatureOperationCallable; + private final UnaryCallable + generateConnectManifestCallable; + private final UnaryCallable createFleetCallable; + private final OperationCallable + createFleetOperationCallable; + private final UnaryCallable getFleetCallable; + private final UnaryCallable updateFleetCallable; + private final OperationCallable + updateFleetOperationCallable; + private final UnaryCallable deleteFleetCallable; + private final OperationCallable + deleteFleetOperationCallable; + private final UnaryCallable listFleetsCallable; + private final UnaryCallable listFleetsPagedCallable; + private final UnaryCallable getScopeNamespaceCallable; + private final UnaryCallable createScopeNamespaceCallable; + private final OperationCallable + createScopeNamespaceOperationCallable; + private final UnaryCallable updateScopeNamespaceCallable; + private final OperationCallable + updateScopeNamespaceOperationCallable; + private final UnaryCallable deleteScopeNamespaceCallable; + private final OperationCallable + deleteScopeNamespaceOperationCallable; + private final UnaryCallable + listScopeNamespacesCallable; + private final UnaryCallable + listScopeNamespacesPagedCallable; + private final UnaryCallable + getScopeRBACRoleBindingCallable; + private final UnaryCallable + createScopeRBACRoleBindingCallable; + private final OperationCallable< + CreateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createScopeRBACRoleBindingOperationCallable; + private final UnaryCallable + updateScopeRBACRoleBindingCallable; + private final OperationCallable< + UpdateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateScopeRBACRoleBindingOperationCallable; + private final UnaryCallable + deleteScopeRBACRoleBindingCallable; + private final OperationCallable + deleteScopeRBACRoleBindingOperationCallable; + private final UnaryCallable + listScopeRBACRoleBindingsCallable; + private final UnaryCallable< + ListScopeRBACRoleBindingsRequest, ListScopeRBACRoleBindingsPagedResponse> + listScopeRBACRoleBindingsPagedCallable; + private final UnaryCallable getScopeCallable; + private final UnaryCallable createScopeCallable; + private final OperationCallable + createScopeOperationCallable; + private final UnaryCallable updateScopeCallable; + private final OperationCallable + updateScopeOperationCallable; + private final UnaryCallable deleteScopeCallable; + private final OperationCallable + deleteScopeOperationCallable; + private final UnaryCallable listScopesCallable; + private final UnaryCallable listScopesPagedCallable; + private final UnaryCallable + listPermittedScopesCallable; + private final UnaryCallable + listPermittedScopesPagedCallable; + private final UnaryCallable + getMembershipBindingCallable; + private final UnaryCallable + createMembershipBindingCallable; + private final OperationCallable< + CreateMembershipBindingRequest, MembershipBinding, OperationMetadata> + createMembershipBindingOperationCallable; + private final UnaryCallable + updateMembershipBindingCallable; + private final OperationCallable< + UpdateMembershipBindingRequest, MembershipBinding, OperationMetadata> + updateMembershipBindingOperationCallable; + private final UnaryCallable + deleteMembershipBindingCallable; + private final OperationCallable + deleteMembershipBindingOperationCallable; + private final UnaryCallable + listMembershipBindingsCallable; + private final UnaryCallable + listMembershipBindingsPagedCallable; + private final UnaryCallable + getMembershipRBACRoleBindingCallable; + private final UnaryCallable + createMembershipRBACRoleBindingCallable; + private final OperationCallable< + CreateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createMembershipRBACRoleBindingOperationCallable; + private final UnaryCallable + updateMembershipRBACRoleBindingCallable; + private final OperationCallable< + UpdateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateMembershipRBACRoleBindingOperationCallable; + private final UnaryCallable + deleteMembershipRBACRoleBindingCallable; + private final OperationCallable + deleteMembershipRBACRoleBindingOperationCallable; + private final UnaryCallable< + ListMembershipRBACRoleBindingsRequest, ListMembershipRBACRoleBindingsResponse> + listMembershipRBACRoleBindingsCallable; + private final UnaryCallable< + ListMembershipRBACRoleBindingsRequest, ListMembershipRBACRoleBindingsPagedResponse> + listMembershipRBACRoleBindingsPagedCallable; + private final UnaryCallable< + GenerateMembershipRBACRoleBindingYAMLRequest, + GenerateMembershipRBACRoleBindingYAMLResponse> + generateMembershipRBACRoleBindingYAMLCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonGkeHubStub create(GkeHubStubSettings settings) throws IOException { + return new HttpJsonGkeHubStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonGkeHubStub create(ClientContext clientContext) throws IOException { + return new HttpJsonGkeHubStub(GkeHubStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonGkeHubStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonGkeHubStub( + GkeHubStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonGkeHubStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonGkeHubStub(GkeHubStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonGkeHubCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonGkeHubStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonGkeHubStub( + GkeHubStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", HttpRule.newBuilder() .setPost("/v1/{name=projects/*/locations/*/operations/*}:cancel") .build()) @@ -624,6 +2085,19 @@ protected HttpJsonGkeHubStub( return builder.build(); }) .build(); + HttpJsonCallSettings + listBoundMembershipsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listBoundMembershipsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("scope_name", String.valueOf(request.getScopeName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listFeaturesTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(listFeaturesMethodDescriptor) @@ -664,13 +2138,272 @@ protected HttpJsonGkeHubStub( .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createFeatureTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createFeatureMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteMembershipTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteMembershipMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteFeatureTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteFeatureMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateMembershipTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateMembershipMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateFeatureTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateFeatureMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + generateConnectManifestTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(generateConnectManifestMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createFleetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createFleetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getFleetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getFleetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateFleetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateFleetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("fleet.name", String.valueOf(request.getFleet().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteFleetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteFleetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings listFleetsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listFleetsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getScopeNamespaceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getScopeNamespaceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createScopeNamespaceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createScopeNamespaceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateScopeNamespaceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateScopeNamespaceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "scope_namespace.name", + String.valueOf(request.getScopeNamespace().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteScopeNamespaceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteScopeNamespaceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listScopeNamespacesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listScopeNamespacesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getScopeRBACRoleBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getScopeRBACRoleBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createScopeRBACRoleBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createScopeRBACRoleBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateScopeRBACRoleBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateScopeRBACRoleBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "rbacrolebinding.name", + String.valueOf(request.getRbacrolebinding().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteScopeRBACRoleBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteScopeRBACRoleBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listScopeRBACRoleBindingsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listScopeRBACRoleBindingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getScopeTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getScopeMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); - HttpJsonCallSettings createFeatureTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createFeatureMethodDescriptor) + HttpJsonCallSettings createScopeTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createScopeMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { @@ -679,31 +2412,20 @@ protected HttpJsonGkeHubStub( return builder.build(); }) .build(); - HttpJsonCallSettings deleteMembershipTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteMembershipMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings deleteFeatureTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteFeatureMethodDescriptor) + HttpJsonCallSettings updateScopeTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateScopeMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); + builder.add("scope.name", String.valueOf(request.getScope().getName())); return builder.build(); }) .build(); - HttpJsonCallSettings updateMembershipTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateMembershipMethodDescriptor) + HttpJsonCallSettings deleteScopeTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteScopeMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { @@ -712,22 +2434,135 @@ protected HttpJsonGkeHubStub( return builder.build(); }) .build(); - HttpJsonCallSettings updateFeatureTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateFeatureMethodDescriptor) + HttpJsonCallSettings listScopesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listScopesMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); + builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); - HttpJsonCallSettings - generateConnectManifestTransportSettings = + HttpJsonCallSettings + listPermittedScopesTransportSettings = HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(generateConnectManifestMethodDescriptor) + .newBuilder() + .setMethodDescriptor(listPermittedScopesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getMembershipBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getMembershipBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createMembershipBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createMembershipBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateMembershipBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateMembershipBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "membership_binding.name", + String.valueOf(request.getMembershipBinding().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteMembershipBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteMembershipBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listMembershipBindingsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listMembershipBindingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getMembershipRBACRoleBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getMembershipRBACRoleBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createMembershipRBACRoleBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createMembershipRBACRoleBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateMembershipRBACRoleBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateMembershipRBACRoleBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "rbacrolebinding.name", + String.valueOf(request.getRbacrolebinding().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteMembershipRBACRoleBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteMembershipRBACRoleBindingMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { @@ -736,83 +2571,404 @@ protected HttpJsonGkeHubStub( return builder.build(); }) .build(); + HttpJsonCallSettings< + ListMembershipRBACRoleBindingsRequest, ListMembershipRBACRoleBindingsResponse> + listMembershipRBACRoleBindingsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(listMembershipRBACRoleBindingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings< + GenerateMembershipRBACRoleBindingYAMLRequest, + GenerateMembershipRBACRoleBindingYAMLResponse> + generateMembershipRBACRoleBindingYAMLTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(generateMembershipRBACRoleBindingYAMLMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); this.listMembershipsCallable = callableFactory.createUnaryCallable( - listMembershipsTransportSettings, settings.listMembershipsSettings(), clientContext); - this.listMembershipsPagedCallable = + listMembershipsTransportSettings, settings.listMembershipsSettings(), clientContext); + this.listMembershipsPagedCallable = + callableFactory.createPagedCallable( + listMembershipsTransportSettings, settings.listMembershipsSettings(), clientContext); + this.listBoundMembershipsCallable = + callableFactory.createUnaryCallable( + listBoundMembershipsTransportSettings, + settings.listBoundMembershipsSettings(), + clientContext); + this.listBoundMembershipsPagedCallable = + callableFactory.createPagedCallable( + listBoundMembershipsTransportSettings, + settings.listBoundMembershipsSettings(), + clientContext); + this.listFeaturesCallable = + callableFactory.createUnaryCallable( + listFeaturesTransportSettings, settings.listFeaturesSettings(), clientContext); + this.listFeaturesPagedCallable = + callableFactory.createPagedCallable( + listFeaturesTransportSettings, settings.listFeaturesSettings(), clientContext); + this.getMembershipCallable = + callableFactory.createUnaryCallable( + getMembershipTransportSettings, settings.getMembershipSettings(), clientContext); + this.getFeatureCallable = + callableFactory.createUnaryCallable( + getFeatureTransportSettings, settings.getFeatureSettings(), clientContext); + this.createMembershipCallable = + callableFactory.createUnaryCallable( + createMembershipTransportSettings, settings.createMembershipSettings(), clientContext); + this.createMembershipOperationCallable = + callableFactory.createOperationCallable( + createMembershipTransportSettings, + settings.createMembershipOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.createFeatureCallable = + callableFactory.createUnaryCallable( + createFeatureTransportSettings, settings.createFeatureSettings(), clientContext); + this.createFeatureOperationCallable = + callableFactory.createOperationCallable( + createFeatureTransportSettings, + settings.createFeatureOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteMembershipCallable = + callableFactory.createUnaryCallable( + deleteMembershipTransportSettings, settings.deleteMembershipSettings(), clientContext); + this.deleteMembershipOperationCallable = + callableFactory.createOperationCallable( + deleteMembershipTransportSettings, + settings.deleteMembershipOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteFeatureCallable = + callableFactory.createUnaryCallable( + deleteFeatureTransportSettings, settings.deleteFeatureSettings(), clientContext); + this.deleteFeatureOperationCallable = + callableFactory.createOperationCallable( + deleteFeatureTransportSettings, + settings.deleteFeatureOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateMembershipCallable = + callableFactory.createUnaryCallable( + updateMembershipTransportSettings, settings.updateMembershipSettings(), clientContext); + this.updateMembershipOperationCallable = + callableFactory.createOperationCallable( + updateMembershipTransportSettings, + settings.updateMembershipOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateFeatureCallable = + callableFactory.createUnaryCallable( + updateFeatureTransportSettings, settings.updateFeatureSettings(), clientContext); + this.updateFeatureOperationCallable = + callableFactory.createOperationCallable( + updateFeatureTransportSettings, + settings.updateFeatureOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.generateConnectManifestCallable = + callableFactory.createUnaryCallable( + generateConnectManifestTransportSettings, + settings.generateConnectManifestSettings(), + clientContext); + this.createFleetCallable = + callableFactory.createUnaryCallable( + createFleetTransportSettings, settings.createFleetSettings(), clientContext); + this.createFleetOperationCallable = + callableFactory.createOperationCallable( + createFleetTransportSettings, + settings.createFleetOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getFleetCallable = + callableFactory.createUnaryCallable( + getFleetTransportSettings, settings.getFleetSettings(), clientContext); + this.updateFleetCallable = + callableFactory.createUnaryCallable( + updateFleetTransportSettings, settings.updateFleetSettings(), clientContext); + this.updateFleetOperationCallable = + callableFactory.createOperationCallable( + updateFleetTransportSettings, + settings.updateFleetOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteFleetCallable = + callableFactory.createUnaryCallable( + deleteFleetTransportSettings, settings.deleteFleetSettings(), clientContext); + this.deleteFleetOperationCallable = + callableFactory.createOperationCallable( + deleteFleetTransportSettings, + settings.deleteFleetOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listFleetsCallable = + callableFactory.createUnaryCallable( + listFleetsTransportSettings, settings.listFleetsSettings(), clientContext); + this.listFleetsPagedCallable = + callableFactory.createPagedCallable( + listFleetsTransportSettings, settings.listFleetsSettings(), clientContext); + this.getScopeNamespaceCallable = + callableFactory.createUnaryCallable( + getScopeNamespaceTransportSettings, + settings.getScopeNamespaceSettings(), + clientContext); + this.createScopeNamespaceCallable = + callableFactory.createUnaryCallable( + createScopeNamespaceTransportSettings, + settings.createScopeNamespaceSettings(), + clientContext); + this.createScopeNamespaceOperationCallable = + callableFactory.createOperationCallable( + createScopeNamespaceTransportSettings, + settings.createScopeNamespaceOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateScopeNamespaceCallable = + callableFactory.createUnaryCallable( + updateScopeNamespaceTransportSettings, + settings.updateScopeNamespaceSettings(), + clientContext); + this.updateScopeNamespaceOperationCallable = + callableFactory.createOperationCallable( + updateScopeNamespaceTransportSettings, + settings.updateScopeNamespaceOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteScopeNamespaceCallable = + callableFactory.createUnaryCallable( + deleteScopeNamespaceTransportSettings, + settings.deleteScopeNamespaceSettings(), + clientContext); + this.deleteScopeNamespaceOperationCallable = + callableFactory.createOperationCallable( + deleteScopeNamespaceTransportSettings, + settings.deleteScopeNamespaceOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listScopeNamespacesCallable = + callableFactory.createUnaryCallable( + listScopeNamespacesTransportSettings, + settings.listScopeNamespacesSettings(), + clientContext); + this.listScopeNamespacesPagedCallable = + callableFactory.createPagedCallable( + listScopeNamespacesTransportSettings, + settings.listScopeNamespacesSettings(), + clientContext); + this.getScopeRBACRoleBindingCallable = + callableFactory.createUnaryCallable( + getScopeRBACRoleBindingTransportSettings, + settings.getScopeRBACRoleBindingSettings(), + clientContext); + this.createScopeRBACRoleBindingCallable = + callableFactory.createUnaryCallable( + createScopeRBACRoleBindingTransportSettings, + settings.createScopeRBACRoleBindingSettings(), + clientContext); + this.createScopeRBACRoleBindingOperationCallable = + callableFactory.createOperationCallable( + createScopeRBACRoleBindingTransportSettings, + settings.createScopeRBACRoleBindingOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateScopeRBACRoleBindingCallable = + callableFactory.createUnaryCallable( + updateScopeRBACRoleBindingTransportSettings, + settings.updateScopeRBACRoleBindingSettings(), + clientContext); + this.updateScopeRBACRoleBindingOperationCallable = + callableFactory.createOperationCallable( + updateScopeRBACRoleBindingTransportSettings, + settings.updateScopeRBACRoleBindingOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteScopeRBACRoleBindingCallable = + callableFactory.createUnaryCallable( + deleteScopeRBACRoleBindingTransportSettings, + settings.deleteScopeRBACRoleBindingSettings(), + clientContext); + this.deleteScopeRBACRoleBindingOperationCallable = + callableFactory.createOperationCallable( + deleteScopeRBACRoleBindingTransportSettings, + settings.deleteScopeRBACRoleBindingOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listScopeRBACRoleBindingsCallable = + callableFactory.createUnaryCallable( + listScopeRBACRoleBindingsTransportSettings, + settings.listScopeRBACRoleBindingsSettings(), + clientContext); + this.listScopeRBACRoleBindingsPagedCallable = callableFactory.createPagedCallable( - listMembershipsTransportSettings, settings.listMembershipsSettings(), clientContext); - this.listFeaturesCallable = + listScopeRBACRoleBindingsTransportSettings, + settings.listScopeRBACRoleBindingsSettings(), + clientContext); + this.getScopeCallable = callableFactory.createUnaryCallable( - listFeaturesTransportSettings, settings.listFeaturesSettings(), clientContext); - this.listFeaturesPagedCallable = + getScopeTransportSettings, settings.getScopeSettings(), clientContext); + this.createScopeCallable = + callableFactory.createUnaryCallable( + createScopeTransportSettings, settings.createScopeSettings(), clientContext); + this.createScopeOperationCallable = + callableFactory.createOperationCallable( + createScopeTransportSettings, + settings.createScopeOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateScopeCallable = + callableFactory.createUnaryCallable( + updateScopeTransportSettings, settings.updateScopeSettings(), clientContext); + this.updateScopeOperationCallable = + callableFactory.createOperationCallable( + updateScopeTransportSettings, + settings.updateScopeOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteScopeCallable = + callableFactory.createUnaryCallable( + deleteScopeTransportSettings, settings.deleteScopeSettings(), clientContext); + this.deleteScopeOperationCallable = + callableFactory.createOperationCallable( + deleteScopeTransportSettings, + settings.deleteScopeOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listScopesCallable = + callableFactory.createUnaryCallable( + listScopesTransportSettings, settings.listScopesSettings(), clientContext); + this.listScopesPagedCallable = callableFactory.createPagedCallable( - listFeaturesTransportSettings, settings.listFeaturesSettings(), clientContext); - this.getMembershipCallable = + listScopesTransportSettings, settings.listScopesSettings(), clientContext); + this.listPermittedScopesCallable = callableFactory.createUnaryCallable( - getMembershipTransportSettings, settings.getMembershipSettings(), clientContext); - this.getFeatureCallable = + listPermittedScopesTransportSettings, + settings.listPermittedScopesSettings(), + clientContext); + this.listPermittedScopesPagedCallable = + callableFactory.createPagedCallable( + listPermittedScopesTransportSettings, + settings.listPermittedScopesSettings(), + clientContext); + this.getMembershipBindingCallable = callableFactory.createUnaryCallable( - getFeatureTransportSettings, settings.getFeatureSettings(), clientContext); - this.createMembershipCallable = + getMembershipBindingTransportSettings, + settings.getMembershipBindingSettings(), + clientContext); + this.createMembershipBindingCallable = callableFactory.createUnaryCallable( - createMembershipTransportSettings, settings.createMembershipSettings(), clientContext); - this.createMembershipOperationCallable = + createMembershipBindingTransportSettings, + settings.createMembershipBindingSettings(), + clientContext); + this.createMembershipBindingOperationCallable = callableFactory.createOperationCallable( - createMembershipTransportSettings, - settings.createMembershipOperationSettings(), + createMembershipBindingTransportSettings, + settings.createMembershipBindingOperationSettings(), clientContext, httpJsonOperationsStub); - this.createFeatureCallable = + this.updateMembershipBindingCallable = callableFactory.createUnaryCallable( - createFeatureTransportSettings, settings.createFeatureSettings(), clientContext); - this.createFeatureOperationCallable = + updateMembershipBindingTransportSettings, + settings.updateMembershipBindingSettings(), + clientContext); + this.updateMembershipBindingOperationCallable = callableFactory.createOperationCallable( - createFeatureTransportSettings, - settings.createFeatureOperationSettings(), + updateMembershipBindingTransportSettings, + settings.updateMembershipBindingOperationSettings(), clientContext, httpJsonOperationsStub); - this.deleteMembershipCallable = + this.deleteMembershipBindingCallable = callableFactory.createUnaryCallable( - deleteMembershipTransportSettings, settings.deleteMembershipSettings(), clientContext); - this.deleteMembershipOperationCallable = + deleteMembershipBindingTransportSettings, + settings.deleteMembershipBindingSettings(), + clientContext); + this.deleteMembershipBindingOperationCallable = callableFactory.createOperationCallable( - deleteMembershipTransportSettings, - settings.deleteMembershipOperationSettings(), + deleteMembershipBindingTransportSettings, + settings.deleteMembershipBindingOperationSettings(), clientContext, httpJsonOperationsStub); - this.deleteFeatureCallable = + this.listMembershipBindingsCallable = callableFactory.createUnaryCallable( - deleteFeatureTransportSettings, settings.deleteFeatureSettings(), clientContext); - this.deleteFeatureOperationCallable = + listMembershipBindingsTransportSettings, + settings.listMembershipBindingsSettings(), + clientContext); + this.listMembershipBindingsPagedCallable = + callableFactory.createPagedCallable( + listMembershipBindingsTransportSettings, + settings.listMembershipBindingsSettings(), + clientContext); + this.getMembershipRBACRoleBindingCallable = + callableFactory.createUnaryCallable( + getMembershipRBACRoleBindingTransportSettings, + settings.getMembershipRBACRoleBindingSettings(), + clientContext); + this.createMembershipRBACRoleBindingCallable = + callableFactory.createUnaryCallable( + createMembershipRBACRoleBindingTransportSettings, + settings.createMembershipRBACRoleBindingSettings(), + clientContext); + this.createMembershipRBACRoleBindingOperationCallable = callableFactory.createOperationCallable( - deleteFeatureTransportSettings, - settings.deleteFeatureOperationSettings(), + createMembershipRBACRoleBindingTransportSettings, + settings.createMembershipRBACRoleBindingOperationSettings(), clientContext, httpJsonOperationsStub); - this.updateMembershipCallable = + this.updateMembershipRBACRoleBindingCallable = callableFactory.createUnaryCallable( - updateMembershipTransportSettings, settings.updateMembershipSettings(), clientContext); - this.updateMembershipOperationCallable = + updateMembershipRBACRoleBindingTransportSettings, + settings.updateMembershipRBACRoleBindingSettings(), + clientContext); + this.updateMembershipRBACRoleBindingOperationCallable = callableFactory.createOperationCallable( - updateMembershipTransportSettings, - settings.updateMembershipOperationSettings(), + updateMembershipRBACRoleBindingTransportSettings, + settings.updateMembershipRBACRoleBindingOperationSettings(), clientContext, httpJsonOperationsStub); - this.updateFeatureCallable = + this.deleteMembershipRBACRoleBindingCallable = callableFactory.createUnaryCallable( - updateFeatureTransportSettings, settings.updateFeatureSettings(), clientContext); - this.updateFeatureOperationCallable = + deleteMembershipRBACRoleBindingTransportSettings, + settings.deleteMembershipRBACRoleBindingSettings(), + clientContext); + this.deleteMembershipRBACRoleBindingOperationCallable = callableFactory.createOperationCallable( - updateFeatureTransportSettings, - settings.updateFeatureOperationSettings(), + deleteMembershipRBACRoleBindingTransportSettings, + settings.deleteMembershipRBACRoleBindingOperationSettings(), clientContext, httpJsonOperationsStub); - this.generateConnectManifestCallable = + this.listMembershipRBACRoleBindingsCallable = callableFactory.createUnaryCallable( - generateConnectManifestTransportSettings, - settings.generateConnectManifestSettings(), + listMembershipRBACRoleBindingsTransportSettings, + settings.listMembershipRBACRoleBindingsSettings(), + clientContext); + this.listMembershipRBACRoleBindingsPagedCallable = + callableFactory.createPagedCallable( + listMembershipRBACRoleBindingsTransportSettings, + settings.listMembershipRBACRoleBindingsSettings(), + clientContext); + this.generateMembershipRBACRoleBindingYAMLCallable = + callableFactory.createUnaryCallable( + generateMembershipRBACRoleBindingYAMLTransportSettings, + settings.generateMembershipRBACRoleBindingYAMLSettings(), clientContext); this.backgroundResources = @@ -823,6 +2979,7 @@ protected HttpJsonGkeHubStub( public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); methodDescriptors.add(listMembershipsMethodDescriptor); + methodDescriptors.add(listBoundMembershipsMethodDescriptor); methodDescriptors.add(listFeaturesMethodDescriptor); methodDescriptors.add(getMembershipMethodDescriptor); methodDescriptors.add(getFeatureMethodDescriptor); @@ -833,6 +2990,38 @@ public static List getMethodDescriptors() { methodDescriptors.add(updateMembershipMethodDescriptor); methodDescriptors.add(updateFeatureMethodDescriptor); methodDescriptors.add(generateConnectManifestMethodDescriptor); + methodDescriptors.add(createFleetMethodDescriptor); + methodDescriptors.add(getFleetMethodDescriptor); + methodDescriptors.add(updateFleetMethodDescriptor); + methodDescriptors.add(deleteFleetMethodDescriptor); + methodDescriptors.add(listFleetsMethodDescriptor); + methodDescriptors.add(getScopeNamespaceMethodDescriptor); + methodDescriptors.add(createScopeNamespaceMethodDescriptor); + methodDescriptors.add(updateScopeNamespaceMethodDescriptor); + methodDescriptors.add(deleteScopeNamespaceMethodDescriptor); + methodDescriptors.add(listScopeNamespacesMethodDescriptor); + methodDescriptors.add(getScopeRBACRoleBindingMethodDescriptor); + methodDescriptors.add(createScopeRBACRoleBindingMethodDescriptor); + methodDescriptors.add(updateScopeRBACRoleBindingMethodDescriptor); + methodDescriptors.add(deleteScopeRBACRoleBindingMethodDescriptor); + methodDescriptors.add(listScopeRBACRoleBindingsMethodDescriptor); + methodDescriptors.add(getScopeMethodDescriptor); + methodDescriptors.add(createScopeMethodDescriptor); + methodDescriptors.add(updateScopeMethodDescriptor); + methodDescriptors.add(deleteScopeMethodDescriptor); + methodDescriptors.add(listScopesMethodDescriptor); + methodDescriptors.add(listPermittedScopesMethodDescriptor); + methodDescriptors.add(getMembershipBindingMethodDescriptor); + methodDescriptors.add(createMembershipBindingMethodDescriptor); + methodDescriptors.add(updateMembershipBindingMethodDescriptor); + methodDescriptors.add(deleteMembershipBindingMethodDescriptor); + methodDescriptors.add(listMembershipBindingsMethodDescriptor); + methodDescriptors.add(getMembershipRBACRoleBindingMethodDescriptor); + methodDescriptors.add(createMembershipRBACRoleBindingMethodDescriptor); + methodDescriptors.add(updateMembershipRBACRoleBindingMethodDescriptor); + methodDescriptors.add(deleteMembershipRBACRoleBindingMethodDescriptor); + methodDescriptors.add(listMembershipRBACRoleBindingsMethodDescriptor); + methodDescriptors.add(generateMembershipRBACRoleBindingYAMLMethodDescriptor); return methodDescriptors; } @@ -851,6 +3040,18 @@ public UnaryCallable listMember return listMembershipsPagedCallable; } + @Override + public UnaryCallable + listBoundMembershipsCallable() { + return listBoundMembershipsCallable; + } + + @Override + public UnaryCallable + listBoundMembershipsPagedCallable() { + return listBoundMembershipsPagedCallable; + } + @Override public UnaryCallable listFeaturesCallable() { return listFeaturesCallable; @@ -943,6 +3144,338 @@ public UnaryCallable updateFeatureCallable() { return generateConnectManifestCallable; } + @Override + public UnaryCallable createFleetCallable() { + return createFleetCallable; + } + + @Override + public OperationCallable + createFleetOperationCallable() { + return createFleetOperationCallable; + } + + @Override + public UnaryCallable getFleetCallable() { + return getFleetCallable; + } + + @Override + public UnaryCallable updateFleetCallable() { + return updateFleetCallable; + } + + @Override + public OperationCallable + updateFleetOperationCallable() { + return updateFleetOperationCallable; + } + + @Override + public UnaryCallable deleteFleetCallable() { + return deleteFleetCallable; + } + + @Override + public OperationCallable + deleteFleetOperationCallable() { + return deleteFleetOperationCallable; + } + + @Override + public UnaryCallable listFleetsCallable() { + return listFleetsCallable; + } + + @Override + public UnaryCallable listFleetsPagedCallable() { + return listFleetsPagedCallable; + } + + @Override + public UnaryCallable getScopeNamespaceCallable() { + return getScopeNamespaceCallable; + } + + @Override + public UnaryCallable createScopeNamespaceCallable() { + return createScopeNamespaceCallable; + } + + @Override + public OperationCallable + createScopeNamespaceOperationCallable() { + return createScopeNamespaceOperationCallable; + } + + @Override + public UnaryCallable updateScopeNamespaceCallable() { + return updateScopeNamespaceCallable; + } + + @Override + public OperationCallable + updateScopeNamespaceOperationCallable() { + return updateScopeNamespaceOperationCallable; + } + + @Override + public UnaryCallable deleteScopeNamespaceCallable() { + return deleteScopeNamespaceCallable; + } + + @Override + public OperationCallable + deleteScopeNamespaceOperationCallable() { + return deleteScopeNamespaceOperationCallable; + } + + @Override + public UnaryCallable + listScopeNamespacesCallable() { + return listScopeNamespacesCallable; + } + + @Override + public UnaryCallable + listScopeNamespacesPagedCallable() { + return listScopeNamespacesPagedCallable; + } + + @Override + public UnaryCallable + getScopeRBACRoleBindingCallable() { + return getScopeRBACRoleBindingCallable; + } + + @Override + public UnaryCallable + createScopeRBACRoleBindingCallable() { + return createScopeRBACRoleBindingCallable; + } + + @Override + public OperationCallable + createScopeRBACRoleBindingOperationCallable() { + return createScopeRBACRoleBindingOperationCallable; + } + + @Override + public UnaryCallable + updateScopeRBACRoleBindingCallable() { + return updateScopeRBACRoleBindingCallable; + } + + @Override + public OperationCallable + updateScopeRBACRoleBindingOperationCallable() { + return updateScopeRBACRoleBindingOperationCallable; + } + + @Override + public UnaryCallable + deleteScopeRBACRoleBindingCallable() { + return deleteScopeRBACRoleBindingCallable; + } + + @Override + public OperationCallable + deleteScopeRBACRoleBindingOperationCallable() { + return deleteScopeRBACRoleBindingOperationCallable; + } + + @Override + public UnaryCallable + listScopeRBACRoleBindingsCallable() { + return listScopeRBACRoleBindingsCallable; + } + + @Override + public UnaryCallable + listScopeRBACRoleBindingsPagedCallable() { + return listScopeRBACRoleBindingsPagedCallable; + } + + @Override + public UnaryCallable getScopeCallable() { + return getScopeCallable; + } + + @Override + public UnaryCallable createScopeCallable() { + return createScopeCallable; + } + + @Override + public OperationCallable + createScopeOperationCallable() { + return createScopeOperationCallable; + } + + @Override + public UnaryCallable updateScopeCallable() { + return updateScopeCallable; + } + + @Override + public OperationCallable + updateScopeOperationCallable() { + return updateScopeOperationCallable; + } + + @Override + public UnaryCallable deleteScopeCallable() { + return deleteScopeCallable; + } + + @Override + public OperationCallable + deleteScopeOperationCallable() { + return deleteScopeOperationCallable; + } + + @Override + public UnaryCallable listScopesCallable() { + return listScopesCallable; + } + + @Override + public UnaryCallable listScopesPagedCallable() { + return listScopesPagedCallable; + } + + @Override + public UnaryCallable + listPermittedScopesCallable() { + return listPermittedScopesCallable; + } + + @Override + public UnaryCallable + listPermittedScopesPagedCallable() { + return listPermittedScopesPagedCallable; + } + + @Override + public UnaryCallable + getMembershipBindingCallable() { + return getMembershipBindingCallable; + } + + @Override + public UnaryCallable + createMembershipBindingCallable() { + return createMembershipBindingCallable; + } + + @Override + public OperationCallable + createMembershipBindingOperationCallable() { + return createMembershipBindingOperationCallable; + } + + @Override + public UnaryCallable + updateMembershipBindingCallable() { + return updateMembershipBindingCallable; + } + + @Override + public OperationCallable + updateMembershipBindingOperationCallable() { + return updateMembershipBindingOperationCallable; + } + + @Override + public UnaryCallable + deleteMembershipBindingCallable() { + return deleteMembershipBindingCallable; + } + + @Override + public OperationCallable + deleteMembershipBindingOperationCallable() { + return deleteMembershipBindingOperationCallable; + } + + @Override + public UnaryCallable + listMembershipBindingsCallable() { + return listMembershipBindingsCallable; + } + + @Override + public UnaryCallable + listMembershipBindingsPagedCallable() { + return listMembershipBindingsPagedCallable; + } + + @Override + public UnaryCallable + getMembershipRBACRoleBindingCallable() { + return getMembershipRBACRoleBindingCallable; + } + + @Override + public UnaryCallable + createMembershipRBACRoleBindingCallable() { + return createMembershipRBACRoleBindingCallable; + } + + @Override + public OperationCallable< + CreateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + createMembershipRBACRoleBindingOperationCallable() { + return createMembershipRBACRoleBindingOperationCallable; + } + + @Override + public UnaryCallable + updateMembershipRBACRoleBindingCallable() { + return updateMembershipRBACRoleBindingCallable; + } + + @Override + public OperationCallable< + UpdateMembershipRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata> + updateMembershipRBACRoleBindingOperationCallable() { + return updateMembershipRBACRoleBindingOperationCallable; + } + + @Override + public UnaryCallable + deleteMembershipRBACRoleBindingCallable() { + return deleteMembershipRBACRoleBindingCallable; + } + + @Override + public OperationCallable + deleteMembershipRBACRoleBindingOperationCallable() { + return deleteMembershipRBACRoleBindingOperationCallable; + } + + @Override + public UnaryCallable< + ListMembershipRBACRoleBindingsRequest, ListMembershipRBACRoleBindingsResponse> + listMembershipRBACRoleBindingsCallable() { + return listMembershipRBACRoleBindingsCallable; + } + + @Override + public UnaryCallable< + ListMembershipRBACRoleBindingsRequest, ListMembershipRBACRoleBindingsPagedResponse> + listMembershipRBACRoleBindingsPagedCallable() { + return listMembershipRBACRoleBindingsPagedCallable; + } + + @Override + public UnaryCallable< + GenerateMembershipRBACRoleBindingYAMLRequest, + GenerateMembershipRBACRoleBindingYAMLResponse> + generateMembershipRBACRoleBindingYAMLCallable() { + return generateMembershipRBACRoleBindingYAMLCallable; + } + @Override public final void close() { try { diff --git a/java-gkehub/google-cloud-gkehub/src/main/resources/META-INF/native-image/com.google.cloud.gkehub.v1/reflect-config.json b/java-gkehub/google-cloud-gkehub/src/main/resources/META-INF/native-image/com.google.cloud.gkehub.v1/reflect-config.json index 4d7789d3b538..aae20ece403d 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/resources/META-INF/native-image/com.google.cloud.gkehub.v1/reflect-config.json +++ b/java-gkehub/google-cloud-gkehub/src/main/resources/META-INF/native-image/com.google.cloud.gkehub.v1/reflect-config.json @@ -890,6 +890,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gkehub.v1.Authority", "queryAllDeclaredConstructors": true, @@ -908,6 +944,51 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.gkehub.v1.BinaryAuthorizationConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.BinaryAuthorizationConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.BinaryAuthorizationConfig$EvaluationMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.BinaryAuthorizationConfig$PolicyBinding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.BinaryAuthorizationConfig$PolicyBinding$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gkehub.v1.CommonFeatureSpec", "queryAllDeclaredConstructors": true, @@ -944,6 +1025,51 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.gkehub.v1.CompliancePostureConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.CompliancePostureConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.CompliancePostureConfig$ComplianceStandard", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.CompliancePostureConfig$ComplianceStandard$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.CompliancePostureConfig$Mode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gkehub.v1.ConnectAgentResource", "queryAllDeclaredConstructors": true, @@ -980,6 +1106,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.gkehub.v1.CreateFleetRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.CreateFleetRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.CreateMembershipBindingRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.CreateMembershipBindingRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gkehub.v1.CreateMembershipRequest", "queryAllDeclaredConstructors": true, @@ -999,7 +1179,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.DeleteFeatureRequest", + "name": "com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1008,7 +1188,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.DeleteFeatureRequest$Builder", + "name": "com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1017,7 +1197,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.DeleteMembershipRequest", + "name": "com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1026,7 +1206,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.DeleteMembershipRequest$Builder", + "name": "com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1035,7 +1215,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.Feature", + "name": "com.google.cloud.gkehub.v1.CreateScopeRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1044,7 +1224,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.Feature$Builder", + "name": "com.google.cloud.gkehub.v1.CreateScopeRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1053,7 +1233,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.FeatureResourceState", + "name": "com.google.cloud.gkehub.v1.DefaultClusterConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1062,7 +1242,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.FeatureResourceState$Builder", + "name": "com.google.cloud.gkehub.v1.DefaultClusterConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1071,7 +1251,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.FeatureResourceState$State", + "name": "com.google.cloud.gkehub.v1.DeleteFeatureRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1080,7 +1260,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.FeatureState", + "name": "com.google.cloud.gkehub.v1.DeleteFeatureRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1089,7 +1269,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.FeatureState$Builder", + "name": "com.google.cloud.gkehub.v1.DeleteFleetRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1098,7 +1278,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.FeatureState$Code", + "name": "com.google.cloud.gkehub.v1.DeleteFleetRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1107,7 +1287,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.GenerateConnectManifestRequest", + "name": "com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1116,7 +1296,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.GenerateConnectManifestRequest$Builder", + "name": "com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1125,7 +1305,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.GenerateConnectManifestResponse", + "name": "com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1134,7 +1314,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.GenerateConnectManifestResponse$Builder", + "name": "com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1143,7 +1323,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.GetFeatureRequest", + "name": "com.google.cloud.gkehub.v1.DeleteMembershipRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1152,7 +1332,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.GetFeatureRequest$Builder", + "name": "com.google.cloud.gkehub.v1.DeleteMembershipRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1161,7 +1341,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.GetMembershipRequest", + "name": "com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1170,7 +1350,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.GetMembershipRequest$Builder", + "name": "com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1179,7 +1359,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.GkeCluster", + "name": "com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1188,7 +1368,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.GkeCluster$Builder", + "name": "com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1197,7 +1377,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.KubernetesMetadata", + "name": "com.google.cloud.gkehub.v1.DeleteScopeRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1206,7 +1386,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.KubernetesMetadata$Builder", + "name": "com.google.cloud.gkehub.v1.DeleteScopeRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1215,7 +1395,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.KubernetesResource", + "name": "com.google.cloud.gkehub.v1.Feature", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1224,7 +1404,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.KubernetesResource$Builder", + "name": "com.google.cloud.gkehub.v1.Feature$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1233,7 +1413,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.ListFeaturesRequest", + "name": "com.google.cloud.gkehub.v1.FeatureResourceState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1242,7 +1422,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.ListFeaturesRequest$Builder", + "name": "com.google.cloud.gkehub.v1.FeatureResourceState$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1251,7 +1431,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.ListFeaturesResponse", + "name": "com.google.cloud.gkehub.v1.FeatureResourceState$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1260,7 +1440,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.ListFeaturesResponse$Builder", + "name": "com.google.cloud.gkehub.v1.FeatureState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1269,7 +1449,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.ListMembershipsRequest", + "name": "com.google.cloud.gkehub.v1.FeatureState$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1278,7 +1458,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.ListMembershipsRequest$Builder", + "name": "com.google.cloud.gkehub.v1.FeatureState$Code", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1287,7 +1467,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.ListMembershipsResponse", + "name": "com.google.cloud.gkehub.v1.Fleet", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1296,7 +1476,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.ListMembershipsResponse$Builder", + "name": "com.google.cloud.gkehub.v1.Fleet$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1305,7 +1485,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.Membership", + "name": "com.google.cloud.gkehub.v1.FleetLifecycleState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1314,7 +1494,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.Membership$Builder", + "name": "com.google.cloud.gkehub.v1.FleetLifecycleState$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1323,7 +1503,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.MembershipEndpoint", + "name": "com.google.cloud.gkehub.v1.FleetLifecycleState$Code", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1332,7 +1512,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.MembershipEndpoint$Builder", + "name": "com.google.cloud.gkehub.v1.GenerateConnectManifestRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1341,7 +1521,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.MembershipFeatureSpec", + "name": "com.google.cloud.gkehub.v1.GenerateConnectManifestRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1350,7 +1530,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.MembershipFeatureSpec$Builder", + "name": "com.google.cloud.gkehub.v1.GenerateConnectManifestResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1359,7 +1539,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.MembershipFeatureState", + "name": "com.google.cloud.gkehub.v1.GenerateConnectManifestResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1368,7 +1548,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.MembershipFeatureState$Builder", + "name": "com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1377,7 +1557,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.MembershipState", + "name": "com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1386,7 +1566,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.MembershipState$Builder", + "name": "com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1395,7 +1575,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.MembershipState$Code", + "name": "com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1404,7 +1584,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.MonitoringConfig", + "name": "com.google.cloud.gkehub.v1.GetFeatureRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1413,7 +1593,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.MonitoringConfig$Builder", + "name": "com.google.cloud.gkehub.v1.GetFeatureRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1422,7 +1602,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.OperationMetadata", + "name": "com.google.cloud.gkehub.v1.GetFleetRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1431,7 +1611,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.OperationMetadata$Builder", + "name": "com.google.cloud.gkehub.v1.GetFleetRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1440,7 +1620,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.ResourceManifest", + "name": "com.google.cloud.gkehub.v1.GetMembershipBindingRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1449,7 +1629,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.ResourceManifest$Builder", + "name": "com.google.cloud.gkehub.v1.GetMembershipBindingRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1458,7 +1638,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.ResourceOptions", + "name": "com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1467,7 +1647,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.ResourceOptions$Builder", + "name": "com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1476,7 +1656,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.TypeMeta", + "name": "com.google.cloud.gkehub.v1.GetMembershipRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1485,7 +1665,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.TypeMeta$Builder", + "name": "com.google.cloud.gkehub.v1.GetMembershipRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1494,7 +1674,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.UpdateFeatureRequest", + "name": "com.google.cloud.gkehub.v1.GetScopeNamespaceRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1503,7 +1683,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.UpdateFeatureRequest$Builder", + "name": "com.google.cloud.gkehub.v1.GetScopeNamespaceRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1512,7 +1692,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.UpdateMembershipRequest", + "name": "com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1521,7 +1701,1051 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.gkehub.v1.UpdateMembershipRequest$Builder", + "name": "com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.GetScopeRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.GetScopeRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.GkeCluster", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.GkeCluster$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.KubernetesMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.KubernetesMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.KubernetesResource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.KubernetesResource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListBoundMembershipsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListBoundMembershipsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListBoundMembershipsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListBoundMembershipsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListFeaturesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListFeaturesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListFeaturesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListFeaturesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListFleetsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListFleetsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListFleetsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListFleetsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListMembershipBindingsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListMembershipBindingsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListMembershipBindingsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListMembershipBindingsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListMembershipsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListMembershipsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListMembershipsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListMembershipsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListPermittedScopesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListPermittedScopesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListPermittedScopesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListPermittedScopesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListScopeNamespacesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListScopeNamespacesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListScopeNamespacesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListScopeNamespacesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListScopesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListScopesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListScopesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ListScopesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.Membership", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.Membership$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.MembershipBinding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.MembershipBinding$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.MembershipBindingLifecycleState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.MembershipBindingLifecycleState$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.MembershipBindingLifecycleState$Code", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.MembershipEndpoint", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.MembershipEndpoint$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.MembershipFeatureSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.MembershipFeatureSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.MembershipFeatureState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.MembershipFeatureState$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.MembershipState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.MembershipState$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.MembershipState$Code", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.MonitoringConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.MonitoringConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.Namespace", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.Namespace$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.NamespaceLifecycleState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.NamespaceLifecycleState$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.NamespaceLifecycleState$Code", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.OperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.OperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.RBACRoleBinding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.RBACRoleBinding$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.RBACRoleBinding$Role", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.RBACRoleBinding$Role$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.RBACRoleBinding$Role$PredefinedRoles", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState$Code", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ResourceManifest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ResourceManifest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ResourceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ResourceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.Scope", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.Scope$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ScopeFeatureSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ScopeFeatureSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ScopeFeatureState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ScopeFeatureState$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ScopeLifecycleState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ScopeLifecycleState$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.ScopeLifecycleState$Code", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.SecurityPostureConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.SecurityPostureConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.SecurityPostureConfig$Mode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.SecurityPostureConfig$VulnerabilityMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.TypeMeta", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.TypeMeta$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.UpdateFeatureRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.UpdateFeatureRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.UpdateFleetRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.UpdateFleetRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.UpdateMembershipRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.UpdateMembershipRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.UpdateScopeRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.v1.UpdateScopeRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, diff --git a/java-gkehub/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/GkeHubClientHttpJsonTest.java b/java-gkehub/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/GkeHubClientHttpJsonTest.java index 621702241fb6..b8225bc74564 100644 --- a/java-gkehub/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/GkeHubClientHttpJsonTest.java +++ b/java-gkehub/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/GkeHubClientHttpJsonTest.java @@ -16,8 +16,16 @@ package com.google.cloud.gkehub.v1; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListBoundMembershipsPagedResponse; import static com.google.cloud.gkehub.v1.GkeHubClient.ListFeaturesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListFleetsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipBindingsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipRBACRoleBindingsPagedResponse; import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListPermittedScopesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopeNamespacesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopeRBACRoleBindingsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopesPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.httpjson.GaxHttpJsonProperties; @@ -184,6 +192,106 @@ public void listMembershipsExceptionTest2() throws Exception { } } + @Test + public void listBoundMembershipsTest() throws Exception { + Membership responsesElement = Membership.newBuilder().build(); + ListBoundMembershipsResponse expectedResponse = + ListBoundMembershipsResponse.newBuilder() + .setNextPageToken("") + .addAllMemberships(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ScopeName scopeName = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + + ListBoundMembershipsPagedResponse pagedListResponse = client.listBoundMemberships(scopeName); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMembershipsList().get(0), resources.get(0)); + + 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 listBoundMembershipsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ScopeName scopeName = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + client.listBoundMemberships(scopeName); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBoundMembershipsTest2() throws Exception { + Membership responsesElement = Membership.newBuilder().build(); + ListBoundMembershipsResponse expectedResponse = + ListBoundMembershipsResponse.newBuilder() + .setNextPageToken("") + .addAllMemberships(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String scopeName = "projects/project-6565/locations/location-6565/scopes/scope-6565"; + + ListBoundMembershipsPagedResponse pagedListResponse = client.listBoundMemberships(scopeName); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMembershipsList().get(0), resources.get(0)); + + 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 listBoundMembershipsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String scopeName = "projects/project-6565/locations/location-6565/scopes/scope-6565"; + client.listBoundMemberships(scopeName); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listFeaturesTest() throws Exception { Feature responsesElement = Feature.newBuilder().build(); @@ -408,6 +516,9 @@ public void getFeatureTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setDeleteTime(Timestamp.newBuilder().build()) + .putAllScopeSpecs(new HashMap()) + .putAllScopeStates(new HashMap()) + .addAllUnreachable(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -461,6 +572,9 @@ public void getFeatureTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setDeleteTime(Timestamp.newBuilder().build()) + .putAllScopeSpecs(new HashMap()) + .putAllScopeStates(new HashMap()) + .addAllUnreachable(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -642,6 +756,9 @@ public void createFeatureTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setDeleteTime(Timestamp.newBuilder().build()) + .putAllScopeSpecs(new HashMap()) + .putAllScopeStates(new HashMap()) + .addAllUnreachable(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -704,6 +821,9 @@ public void createFeatureTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setDeleteTime(Timestamp.newBuilder().build()) + .putAllScopeSpecs(new HashMap()) + .putAllScopeStates(new HashMap()) + .addAllUnreachable(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1074,6 +1194,9 @@ public void updateFeatureTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setDeleteTime(Timestamp.newBuilder().build()) + .putAllScopeSpecs(new HashMap()) + .putAllScopeStates(new HashMap()) + .addAllUnreachable(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1136,6 +1259,9 @@ public void updateFeatureTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setDeleteTime(Timestamp.newBuilder().build()) + .putAllScopeSpecs(new HashMap()) + .putAllScopeStates(new HashMap()) + .addAllUnreachable(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1245,4 +1371,3475 @@ public void generateConnectManifestExceptionTest() throws Exception { // Expected exception. } } + + @Test + public void createFleetTest() throws Exception { + Fleet expectedResponse = + Fleet.newBuilder() + .setName( + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setState(FleetLifecycleState.newBuilder().build()) + .setDefaultClusterConfig(DefaultClusterConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createFleetTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Fleet fleet = Fleet.newBuilder().build(); + + Fleet actualResponse = client.createFleetAsync(parent, fleet).get(); + 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 createFleetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Fleet fleet = Fleet.newBuilder().build(); + client.createFleetAsync(parent, fleet).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createFleetTest2() throws Exception { + Fleet expectedResponse = + Fleet.newBuilder() + .setName( + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setState(FleetLifecycleState.newBuilder().build()) + .setDefaultClusterConfig(DefaultClusterConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createFleetTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + Fleet fleet = Fleet.newBuilder().build(); + + Fleet actualResponse = client.createFleetAsync(parent, fleet).get(); + 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 createFleetExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + Fleet fleet = Fleet.newBuilder().build(); + client.createFleetAsync(parent, fleet).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getFleetTest() throws Exception { + Fleet expectedResponse = + Fleet.newBuilder() + .setName( + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setState(FleetLifecycleState.newBuilder().build()) + .setDefaultClusterConfig(DefaultClusterConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + FleetName name = FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]"); + + Fleet actualResponse = client.getFleet(name); + 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 getFleetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FleetName name = FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]"); + client.getFleet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFleetTest2() throws Exception { + Fleet expectedResponse = + Fleet.newBuilder() + .setName( + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setState(FleetLifecycleState.newBuilder().build()) + .setDefaultClusterConfig(DefaultClusterConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-6427/locations/location-6427/fleets/fleet-6427"; + + Fleet actualResponse = client.getFleet(name); + 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 getFleetExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6427/locations/location-6427/fleets/fleet-6427"; + client.getFleet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateFleetTest() throws Exception { + Fleet expectedResponse = + Fleet.newBuilder() + .setName( + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setState(FleetLifecycleState.newBuilder().build()) + .setDefaultClusterConfig(DefaultClusterConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateFleetTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + Fleet fleet = + Fleet.newBuilder() + .setName( + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setState(FleetLifecycleState.newBuilder().build()) + .setDefaultClusterConfig(DefaultClusterConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Fleet actualResponse = client.updateFleetAsync(fleet, updateMask).get(); + 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 updateFleetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Fleet fleet = + Fleet.newBuilder() + .setName( + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setState(FleetLifecycleState.newBuilder().build()) + .setDefaultClusterConfig(DefaultClusterConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateFleetAsync(fleet, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteFleetTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFleetTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + FleetName name = FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]"); + + client.deleteFleetAsync(name).get(); + + 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 deleteFleetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FleetName name = FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]"); + client.deleteFleetAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteFleetTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFleetTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-6427/locations/location-6427/fleets/fleet-6427"; + + client.deleteFleetAsync(name).get(); + + 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 deleteFleetExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6427/locations/location-6427/fleets/fleet-6427"; + client.deleteFleetAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listFleetsTest() throws Exception { + Fleet responsesElement = Fleet.newBuilder().build(); + ListFleetsResponse expectedResponse = + ListFleetsResponse.newBuilder() + .setNextPageToken("") + .addAllFleets(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListFleetsPagedResponse pagedListResponse = client.listFleets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFleetsList().get(0), resources.get(0)); + + 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 listFleetsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listFleets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFleetsTest2() throws Exception { + Fleet responsesElement = Fleet.newBuilder().build(); + ListFleetsResponse expectedResponse = + ListFleetsResponse.newBuilder() + .setNextPageToken("") + .addAllFleets(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListFleetsPagedResponse pagedListResponse = client.listFleets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFleetsList().get(0), resources.get(0)); + + 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 listFleetsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listFleets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getScopeNamespaceTest() throws Exception { + Namespace expectedResponse = + Namespace.newBuilder() + .setName( + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(NamespaceLifecycleState.newBuilder().build()) + .setScope(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]"); + + Namespace actualResponse = client.getScopeNamespace(name); + 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 getScopeNamespaceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]"); + client.getScopeNamespace(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getScopeNamespaceTest2() throws Exception { + Namespace expectedResponse = + Namespace.newBuilder() + .setName( + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(NamespaceLifecycleState.newBuilder().build()) + .setScope(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-7315/locations/location-7315/scopes/scope-7315/namespaces/namespace-7315"; + + Namespace actualResponse = client.getScopeNamespace(name); + 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 getScopeNamespaceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7315/locations/location-7315/scopes/scope-7315/namespaces/namespace-7315"; + client.getScopeNamespace(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createScopeNamespaceTest() throws Exception { + Namespace expectedResponse = + Namespace.newBuilder() + .setName( + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(NamespaceLifecycleState.newBuilder().build()) + .setScope(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createScopeNamespaceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + Namespace scopeNamespace = Namespace.newBuilder().build(); + String scopeNamespaceId = "scopeNamespaceId-125738782"; + + Namespace actualResponse = + client.createScopeNamespaceAsync(parent, scopeNamespace, scopeNamespaceId).get(); + 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 createScopeNamespaceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + Namespace scopeNamespace = Namespace.newBuilder().build(); + String scopeNamespaceId = "scopeNamespaceId-125738782"; + client.createScopeNamespaceAsync(parent, scopeNamespace, scopeNamespaceId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createScopeNamespaceTest2() throws Exception { + Namespace expectedResponse = + Namespace.newBuilder() + .setName( + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(NamespaceLifecycleState.newBuilder().build()) + .setScope(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createScopeNamespaceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-6912/locations/location-6912/scopes/scope-6912"; + Namespace scopeNamespace = Namespace.newBuilder().build(); + String scopeNamespaceId = "scopeNamespaceId-125738782"; + + Namespace actualResponse = + client.createScopeNamespaceAsync(parent, scopeNamespace, scopeNamespaceId).get(); + 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 createScopeNamespaceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-6912/locations/location-6912/scopes/scope-6912"; + Namespace scopeNamespace = Namespace.newBuilder().build(); + String scopeNamespaceId = "scopeNamespaceId-125738782"; + client.createScopeNamespaceAsync(parent, scopeNamespace, scopeNamespaceId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateScopeNamespaceTest() throws Exception { + Namespace expectedResponse = + Namespace.newBuilder() + .setName( + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(NamespaceLifecycleState.newBuilder().build()) + .setScope(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateScopeNamespaceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + Namespace scopeNamespace = + Namespace.newBuilder() + .setName( + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(NamespaceLifecycleState.newBuilder().build()) + .setScope(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Namespace actualResponse = client.updateScopeNamespaceAsync(scopeNamespace, updateMask).get(); + 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 updateScopeNamespaceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Namespace scopeNamespace = + Namespace.newBuilder() + .setName( + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(NamespaceLifecycleState.newBuilder().build()) + .setScope(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateScopeNamespaceAsync(scopeNamespace, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteScopeNamespaceTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteScopeNamespaceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]"); + + client.deleteScopeNamespaceAsync(name).get(); + + 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 deleteScopeNamespaceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]"); + client.deleteScopeNamespaceAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteScopeNamespaceTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteScopeNamespaceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-7315/locations/location-7315/scopes/scope-7315/namespaces/namespace-7315"; + + client.deleteScopeNamespaceAsync(name).get(); + + 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 deleteScopeNamespaceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7315/locations/location-7315/scopes/scope-7315/namespaces/namespace-7315"; + client.deleteScopeNamespaceAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listScopeNamespacesTest() throws Exception { + Namespace responsesElement = Namespace.newBuilder().build(); + ListScopeNamespacesResponse expectedResponse = + ListScopeNamespacesResponse.newBuilder() + .setNextPageToken("") + .addAllScopeNamespaces(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + + ListScopeNamespacesPagedResponse pagedListResponse = client.listScopeNamespaces(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getScopeNamespacesList().get(0), resources.get(0)); + + 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 listScopeNamespacesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + client.listScopeNamespaces(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listScopeNamespacesTest2() throws Exception { + Namespace responsesElement = Namespace.newBuilder().build(); + ListScopeNamespacesResponse expectedResponse = + ListScopeNamespacesResponse.newBuilder() + .setNextPageToken("") + .addAllScopeNamespaces(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-6912/locations/location-6912/scopes/scope-6912"; + + ListScopeNamespacesPagedResponse pagedListResponse = client.listScopeNamespaces(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getScopeNamespacesList().get(0), resources.get(0)); + + 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 listScopeNamespacesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-6912/locations/location-6912/scopes/scope-6912"; + client.listScopeNamespaces(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getScopeRBACRoleBindingTest() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]"); + + RBACRoleBinding actualResponse = client.getScopeRBACRoleBinding(name); + 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 getScopeRBACRoleBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]"); + client.getScopeRBACRoleBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getScopeRBACRoleBindingTest2() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9375/locations/location-9375/scopes/scope-9375/rbacrolebindings/rbacrolebinding-9375"; + + RBACRoleBinding actualResponse = client.getScopeRBACRoleBinding(name); + 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 getScopeRBACRoleBindingExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9375/locations/location-9375/scopes/scope-9375/rbacrolebindings/rbacrolebinding-9375"; + client.getScopeRBACRoleBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createScopeRBACRoleBindingTest() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createScopeRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + + RBACRoleBinding actualResponse = + client.createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).get(); + 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 createScopeRBACRoleBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + client.createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createScopeRBACRoleBindingTest2() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createScopeRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + + RBACRoleBinding actualResponse = + client.createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).get(); + 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 createScopeRBACRoleBindingExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + client.createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createScopeRBACRoleBindingTest3() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createScopeRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-6912/locations/location-6912/scopes/scope-6912"; + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + + RBACRoleBinding actualResponse = + client.createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).get(); + 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 createScopeRBACRoleBindingExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-6912/locations/location-6912/scopes/scope-6912"; + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + client.createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateScopeRBACRoleBindingTest() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateScopeRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + RBACRoleBinding rbacrolebinding = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + RBACRoleBinding actualResponse = + client.updateScopeRBACRoleBindingAsync(rbacrolebinding, updateMask).get(); + 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 updateScopeRBACRoleBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RBACRoleBinding rbacrolebinding = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateScopeRBACRoleBindingAsync(rbacrolebinding, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteScopeRBACRoleBindingTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteScopeRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]"); + + client.deleteScopeRBACRoleBindingAsync(name).get(); + + 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 deleteScopeRBACRoleBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]"); + client.deleteScopeRBACRoleBindingAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteScopeRBACRoleBindingTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteScopeRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-9375/locations/location-9375/scopes/scope-9375/rbacrolebindings/rbacrolebinding-9375"; + + client.deleteScopeRBACRoleBindingAsync(name).get(); + + 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 deleteScopeRBACRoleBindingExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9375/locations/location-9375/scopes/scope-9375/rbacrolebindings/rbacrolebinding-9375"; + client.deleteScopeRBACRoleBindingAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listScopeRBACRoleBindingsTest() throws Exception { + RBACRoleBinding responsesElement = RBACRoleBinding.newBuilder().build(); + ListScopeRBACRoleBindingsResponse expectedResponse = + ListScopeRBACRoleBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllRbacrolebindings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + + ListScopeRBACRoleBindingsPagedResponse pagedListResponse = + client.listScopeRBACRoleBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRbacrolebindingsList().get(0), resources.get(0)); + + 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 listScopeRBACRoleBindingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + client.listScopeRBACRoleBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listScopeRBACRoleBindingsTest2() throws Exception { + RBACRoleBinding responsesElement = RBACRoleBinding.newBuilder().build(); + ListScopeRBACRoleBindingsResponse expectedResponse = + ListScopeRBACRoleBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllRbacrolebindings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + + ListScopeRBACRoleBindingsPagedResponse pagedListResponse = + client.listScopeRBACRoleBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRbacrolebindingsList().get(0), resources.get(0)); + + 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 listScopeRBACRoleBindingsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + client.listScopeRBACRoleBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listScopeRBACRoleBindingsTest3() throws Exception { + RBACRoleBinding responsesElement = RBACRoleBinding.newBuilder().build(); + ListScopeRBACRoleBindingsResponse expectedResponse = + ListScopeRBACRoleBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllRbacrolebindings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-6912/locations/location-6912/scopes/scope-6912"; + + ListScopeRBACRoleBindingsPagedResponse pagedListResponse = + client.listScopeRBACRoleBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRbacrolebindingsList().get(0), resources.get(0)); + + 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 listScopeRBACRoleBindingsExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-6912/locations/location-6912/scopes/scope-6912"; + client.listScopeRBACRoleBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getScopeTest() throws Exception { + Scope expectedResponse = + Scope.newBuilder() + .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(ScopeLifecycleState.newBuilder().build()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + ScopeName name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + + Scope actualResponse = client.getScope(name); + 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 getScopeExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ScopeName name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + client.getScope(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getScopeTest2() throws Exception { + Scope expectedResponse = + Scope.newBuilder() + .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(ScopeLifecycleState.newBuilder().build()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-6287/locations/location-6287/scopes/scope-6287"; + + Scope actualResponse = client.getScope(name); + 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 getScopeExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6287/locations/location-6287/scopes/scope-6287"; + client.getScope(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createScopeTest() throws Exception { + Scope expectedResponse = + Scope.newBuilder() + .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(ScopeLifecycleState.newBuilder().build()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createScopeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Scope scope = Scope.newBuilder().build(); + String scopeId = "scopeId1923941007"; + + Scope actualResponse = client.createScopeAsync(parent, scope, scopeId).get(); + 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 createScopeExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Scope scope = Scope.newBuilder().build(); + String scopeId = "scopeId1923941007"; + client.createScopeAsync(parent, scope, scopeId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createScopeTest2() throws Exception { + Scope expectedResponse = + Scope.newBuilder() + .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(ScopeLifecycleState.newBuilder().build()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createScopeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + Scope scope = Scope.newBuilder().build(); + String scopeId = "scopeId1923941007"; + + Scope actualResponse = client.createScopeAsync(parent, scope, scopeId).get(); + 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 createScopeExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + Scope scope = Scope.newBuilder().build(); + String scopeId = "scopeId1923941007"; + client.createScopeAsync(parent, scope, scopeId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateScopeTest() throws Exception { + Scope expectedResponse = + Scope.newBuilder() + .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(ScopeLifecycleState.newBuilder().build()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateScopeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + Scope scope = + Scope.newBuilder() + .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(ScopeLifecycleState.newBuilder().build()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Scope actualResponse = client.updateScopeAsync(scope, updateMask).get(); + 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 updateScopeExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Scope scope = + Scope.newBuilder() + .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(ScopeLifecycleState.newBuilder().build()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateScopeAsync(scope, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteScopeTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteScopeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ScopeName name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + + client.deleteScopeAsync(name).get(); + + 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 deleteScopeExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ScopeName name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + client.deleteScopeAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteScopeTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteScopeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-6287/locations/location-6287/scopes/scope-6287"; + + client.deleteScopeAsync(name).get(); + + 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 deleteScopeExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6287/locations/location-6287/scopes/scope-6287"; + client.deleteScopeAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listScopesTest() throws Exception { + Scope responsesElement = Scope.newBuilder().build(); + ListScopesResponse expectedResponse = + ListScopesResponse.newBuilder() + .setNextPageToken("") + .addAllScopes(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListScopesPagedResponse pagedListResponse = client.listScopes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getScopesList().get(0), resources.get(0)); + + 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 listScopesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listScopes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listScopesTest2() throws Exception { + Scope responsesElement = Scope.newBuilder().build(); + ListScopesResponse expectedResponse = + ListScopesResponse.newBuilder() + .setNextPageToken("") + .addAllScopes(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListScopesPagedResponse pagedListResponse = client.listScopes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getScopesList().get(0), resources.get(0)); + + 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 listScopesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listScopes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPermittedScopesTest() throws Exception { + Scope responsesElement = Scope.newBuilder().build(); + ListPermittedScopesResponse expectedResponse = + ListPermittedScopesResponse.newBuilder() + .setNextPageToken("") + .addAllScopes(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListPermittedScopesPagedResponse pagedListResponse = client.listPermittedScopes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getScopesList().get(0), resources.get(0)); + + 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 listPermittedScopesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listPermittedScopes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPermittedScopesTest2() throws Exception { + Scope responsesElement = Scope.newBuilder().build(); + ListPermittedScopesResponse expectedResponse = + ListPermittedScopesResponse.newBuilder() + .setNextPageToken("") + .addAllScopes(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListPermittedScopesPagedResponse pagedListResponse = client.listPermittedScopes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getScopesList().get(0), resources.get(0)); + + 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 listPermittedScopesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listPermittedScopes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMembershipBindingTest() throws Exception { + MembershipBinding expectedResponse = + MembershipBinding.newBuilder() + .setName( + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(MembershipBindingLifecycleState.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + MembershipBindingName name = + MembershipBindingName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]"); + + MembershipBinding actualResponse = client.getMembershipBinding(name); + 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 getMembershipBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MembershipBindingName name = + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]"); + client.getMembershipBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMembershipBindingTest2() throws Exception { + MembershipBinding expectedResponse = + MembershipBinding.newBuilder() + .setName( + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(MembershipBindingLifecycleState.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-8571/locations/location-8571/memberships/membership-8571/bindings/binding-8571"; + + MembershipBinding actualResponse = client.getMembershipBinding(name); + 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 getMembershipBindingExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8571/locations/location-8571/memberships/membership-8571/bindings/binding-8571"; + client.getMembershipBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMembershipBindingTest() throws Exception { + MembershipBinding expectedResponse = + MembershipBinding.newBuilder() + .setName( + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(MembershipBindingLifecycleState.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createMembershipBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + MembershipBinding membershipBinding = MembershipBinding.newBuilder().build(); + String membershipBindingId = "membershipBindingId1360802634"; + + MembershipBinding actualResponse = + client.createMembershipBindingAsync(parent, membershipBinding, membershipBindingId).get(); + 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 createMembershipBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + MembershipBinding membershipBinding = MembershipBinding.newBuilder().build(); + String membershipBindingId = "membershipBindingId1360802634"; + client.createMembershipBindingAsync(parent, membershipBinding, membershipBindingId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createMembershipBindingTest2() throws Exception { + MembershipBinding expectedResponse = + MembershipBinding.newBuilder() + .setName( + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(MembershipBindingLifecycleState.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createMembershipBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-9966/locations/location-9966/memberships/membership-9966"; + MembershipBinding membershipBinding = MembershipBinding.newBuilder().build(); + String membershipBindingId = "membershipBindingId1360802634"; + + MembershipBinding actualResponse = + client.createMembershipBindingAsync(parent, membershipBinding, membershipBindingId).get(); + 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 createMembershipBindingExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-9966/locations/location-9966/memberships/membership-9966"; + MembershipBinding membershipBinding = MembershipBinding.newBuilder().build(); + String membershipBindingId = "membershipBindingId1360802634"; + client.createMembershipBindingAsync(parent, membershipBinding, membershipBindingId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateMembershipBindingTest() throws Exception { + MembershipBinding expectedResponse = + MembershipBinding.newBuilder() + .setName( + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(MembershipBindingLifecycleState.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateMembershipBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + MembershipBinding membershipBinding = + MembershipBinding.newBuilder() + .setName( + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(MembershipBindingLifecycleState.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + MembershipBinding actualResponse = + client.updateMembershipBindingAsync(membershipBinding, updateMask).get(); + 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 updateMembershipBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MembershipBinding membershipBinding = + MembershipBinding.newBuilder() + .setName( + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(MembershipBindingLifecycleState.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateMembershipBindingAsync(membershipBinding, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteMembershipBindingTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteMembershipBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + MembershipBindingName name = + MembershipBindingName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]"); + + client.deleteMembershipBindingAsync(name).get(); + + 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 deleteMembershipBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MembershipBindingName name = + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]"); + client.deleteMembershipBindingAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteMembershipBindingTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteMembershipBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-8571/locations/location-8571/memberships/membership-8571/bindings/binding-8571"; + + client.deleteMembershipBindingAsync(name).get(); + + 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 deleteMembershipBindingExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8571/locations/location-8571/memberships/membership-8571/bindings/binding-8571"; + client.deleteMembershipBindingAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listMembershipBindingsTest() throws Exception { + MembershipBinding responsesElement = MembershipBinding.newBuilder().build(); + ListMembershipBindingsResponse expectedResponse = + ListMembershipBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllMembershipBindings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + + ListMembershipBindingsPagedResponse pagedListResponse = client.listMembershipBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMembershipBindingsList().get(0), resources.get(0)); + + 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 listMembershipBindingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + client.listMembershipBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMembershipBindingsTest2() throws Exception { + MembershipBinding responsesElement = MembershipBinding.newBuilder().build(); + ListMembershipBindingsResponse expectedResponse = + ListMembershipBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllMembershipBindings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-9966/locations/location-9966/memberships/membership-9966"; + + ListMembershipBindingsPagedResponse pagedListResponse = client.listMembershipBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMembershipBindingsList().get(0), resources.get(0)); + + 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 listMembershipBindingsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-9966/locations/location-9966/memberships/membership-9966"; + client.listMembershipBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMembershipRBACRoleBindingTest() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]"); + + RBACRoleBinding actualResponse = client.getMembershipRBACRoleBinding(name); + 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 getMembershipRBACRoleBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]"); + client.getMembershipRBACRoleBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMembershipRBACRoleBindingTest2() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-8531/locations/location-8531/memberships/membership-8531/rbacrolebindings/rbacrolebinding-8531"; + + RBACRoleBinding actualResponse = client.getMembershipRBACRoleBinding(name); + 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 getMembershipRBACRoleBindingExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8531/locations/location-8531/memberships/membership-8531/rbacrolebindings/rbacrolebinding-8531"; + client.getMembershipRBACRoleBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMembershipRBACRoleBindingTest() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createMembershipRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + + RBACRoleBinding actualResponse = + client + .createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId) + .get(); + 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 createMembershipRBACRoleBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + client.createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createMembershipRBACRoleBindingTest2() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createMembershipRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + + RBACRoleBinding actualResponse = + client + .createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId) + .get(); + 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 createMembershipRBACRoleBindingExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + client.createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createMembershipRBACRoleBindingTest3() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createMembershipRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-9966/locations/location-9966/memberships/membership-9966"; + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + + RBACRoleBinding actualResponse = + client + .createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId) + .get(); + 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 createMembershipRBACRoleBindingExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-9966/locations/location-9966/memberships/membership-9966"; + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + client.createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateMembershipRBACRoleBindingTest() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateMembershipRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + RBACRoleBinding rbacrolebinding = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + RBACRoleBinding actualResponse = + client.updateMembershipRBACRoleBindingAsync(rbacrolebinding, updateMask).get(); + 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 updateMembershipRBACRoleBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RBACRoleBinding rbacrolebinding = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateMembershipRBACRoleBindingAsync(rbacrolebinding, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteMembershipRBACRoleBindingTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteMembershipRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]"); + + client.deleteMembershipRBACRoleBindingAsync(name).get(); + + 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 deleteMembershipRBACRoleBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]"); + client.deleteMembershipRBACRoleBindingAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteMembershipRBACRoleBindingTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteMembershipRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-8531/locations/location-8531/memberships/membership-8531/rbacrolebindings/rbacrolebinding-8531"; + + client.deleteMembershipRBACRoleBindingAsync(name).get(); + + 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 deleteMembershipRBACRoleBindingExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8531/locations/location-8531/memberships/membership-8531/rbacrolebindings/rbacrolebinding-8531"; + client.deleteMembershipRBACRoleBindingAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listMembershipRBACRoleBindingsTest() throws Exception { + RBACRoleBinding responsesElement = RBACRoleBinding.newBuilder().build(); + ListMembershipRBACRoleBindingsResponse expectedResponse = + ListMembershipRBACRoleBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllRbacrolebindings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + + ListMembershipRBACRoleBindingsPagedResponse pagedListResponse = + client.listMembershipRBACRoleBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRbacrolebindingsList().get(0), resources.get(0)); + + 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 listMembershipRBACRoleBindingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + client.listMembershipRBACRoleBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMembershipRBACRoleBindingsTest2() throws Exception { + RBACRoleBinding responsesElement = RBACRoleBinding.newBuilder().build(); + ListMembershipRBACRoleBindingsResponse expectedResponse = + ListMembershipRBACRoleBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllRbacrolebindings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + + ListMembershipRBACRoleBindingsPagedResponse pagedListResponse = + client.listMembershipRBACRoleBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRbacrolebindingsList().get(0), resources.get(0)); + + 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 listMembershipRBACRoleBindingsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + client.listMembershipRBACRoleBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMembershipRBACRoleBindingsTest3() throws Exception { + RBACRoleBinding responsesElement = RBACRoleBinding.newBuilder().build(); + ListMembershipRBACRoleBindingsResponse expectedResponse = + ListMembershipRBACRoleBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllRbacrolebindings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-9966/locations/location-9966/memberships/membership-9966"; + + ListMembershipRBACRoleBindingsPagedResponse pagedListResponse = + client.listMembershipRBACRoleBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRbacrolebindingsList().get(0), resources.get(0)); + + 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 listMembershipRBACRoleBindingsExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-9966/locations/location-9966/memberships/membership-9966"; + client.listMembershipRBACRoleBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void generateMembershipRBACRoleBindingYAMLTest() throws Exception { + GenerateMembershipRBACRoleBindingYAMLResponse expectedResponse = + GenerateMembershipRBACRoleBindingYAMLResponse.newBuilder() + .setRoleBindingsYaml("roleBindingsYaml-926355989") + .build(); + mockService.addResponse(expectedResponse); + + GenerateMembershipRBACRoleBindingYAMLRequest request = + GenerateMembershipRBACRoleBindingYAMLRequest.newBuilder() + .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setRbacrolebindingId("rbacrolebindingId827577784") + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .build(); + + GenerateMembershipRBACRoleBindingYAMLResponse actualResponse = + client.generateMembershipRBACRoleBindingYAML(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 generateMembershipRBACRoleBindingYAMLExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GenerateMembershipRBACRoleBindingYAMLRequest request = + GenerateMembershipRBACRoleBindingYAMLRequest.newBuilder() + .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setRbacrolebindingId("rbacrolebindingId827577784") + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .build(); + client.generateMembershipRBACRoleBindingYAML(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-gkehub/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/GkeHubClientTest.java b/java-gkehub/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/GkeHubClientTest.java index c4e129b2e461..da3840edc167 100644 --- a/java-gkehub/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/GkeHubClientTest.java +++ b/java-gkehub/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/GkeHubClientTest.java @@ -16,8 +16,16 @@ package com.google.cloud.gkehub.v1; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListBoundMembershipsPagedResponse; import static com.google.cloud.gkehub.v1.GkeHubClient.ListFeaturesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListFleetsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipBindingsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipRBACRoleBindingsPagedResponse; import static com.google.cloud.gkehub.v1.GkeHubClient.ListMembershipsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListPermittedScopesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopeNamespacesPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopeRBACRoleBindingsPagedResponse; +import static com.google.cloud.gkehub.v1.GkeHubClient.ListScopesPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GaxGrpcProperties; @@ -177,6 +185,96 @@ public void listMembershipsExceptionTest2() throws Exception { } } + @Test + public void listBoundMembershipsTest() throws Exception { + Membership responsesElement = Membership.newBuilder().build(); + ListBoundMembershipsResponse expectedResponse = + ListBoundMembershipsResponse.newBuilder() + .setNextPageToken("") + .addAllMemberships(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + ScopeName scopeName = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + + ListBoundMembershipsPagedResponse pagedListResponse = client.listBoundMemberships(scopeName); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMembershipsList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBoundMembershipsRequest actualRequest = + ((ListBoundMembershipsRequest) actualRequests.get(0)); + + Assert.assertEquals(scopeName.toString(), actualRequest.getScopeName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBoundMembershipsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + ScopeName scopeName = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + client.listBoundMemberships(scopeName); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBoundMembershipsTest2() throws Exception { + Membership responsesElement = Membership.newBuilder().build(); + ListBoundMembershipsResponse expectedResponse = + ListBoundMembershipsResponse.newBuilder() + .setNextPageToken("") + .addAllMemberships(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + String scopeName = "scopeName2071519999"; + + ListBoundMembershipsPagedResponse pagedListResponse = client.listBoundMemberships(scopeName); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMembershipsList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBoundMembershipsRequest actualRequest = + ((ListBoundMembershipsRequest) actualRequests.get(0)); + + Assert.assertEquals(scopeName, actualRequest.getScopeName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBoundMembershipsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String scopeName = "scopeName2071519999"; + client.listBoundMemberships(scopeName); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listFeaturesTest() throws Exception { Feature responsesElement = Feature.newBuilder().build(); @@ -377,6 +475,9 @@ public void getFeatureTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setDeleteTime(Timestamp.newBuilder().build()) + .putAllScopeSpecs(new HashMap()) + .putAllScopeStates(new HashMap()) + .addAllUnreachable(new ArrayList()) .build(); mockGkeHub.addResponse(expectedResponse); @@ -424,6 +525,9 @@ public void getFeatureTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setDeleteTime(Timestamp.newBuilder().build()) + .putAllScopeSpecs(new HashMap()) + .putAllScopeStates(new HashMap()) + .addAllUnreachable(new ArrayList()) .build(); mockGkeHub.addResponse(expectedResponse); @@ -597,6 +701,9 @@ public void createFeatureTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setDeleteTime(Timestamp.newBuilder().build()) + .putAllScopeSpecs(new HashMap()) + .putAllScopeStates(new HashMap()) + .addAllUnreachable(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -658,6 +765,9 @@ public void createFeatureTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setDeleteTime(Timestamp.newBuilder().build()) + .putAllScopeSpecs(new HashMap()) + .putAllScopeStates(new HashMap()) + .addAllUnreachable(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1013,6 +1123,9 @@ public void updateFeatureTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setDeleteTime(Timestamp.newBuilder().build()) + .putAllScopeSpecs(new HashMap()) + .putAllScopeStates(new HashMap()) + .addAllUnreachable(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1074,6 +1187,9 @@ public void updateFeatureTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setDeleteTime(Timestamp.newBuilder().build()) + .putAllScopeSpecs(new HashMap()) + .putAllScopeStates(new HashMap()) + .addAllUnreachable(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1184,4 +1300,3114 @@ public void generateConnectManifestExceptionTest() throws Exception { // Expected exception. } } + + @Test + public void createFleetTest() throws Exception { + Fleet expectedResponse = + Fleet.newBuilder() + .setName( + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setState(FleetLifecycleState.newBuilder().build()) + .setDefaultClusterConfig(DefaultClusterConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createFleetTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Fleet fleet = Fleet.newBuilder().build(); + + Fleet actualResponse = client.createFleetAsync(parent, fleet).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateFleetRequest actualRequest = ((CreateFleetRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(fleet, actualRequest.getFleet()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createFleetExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Fleet fleet = Fleet.newBuilder().build(); + client.createFleetAsync(parent, fleet).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createFleetTest2() throws Exception { + Fleet expectedResponse = + Fleet.newBuilder() + .setName( + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setState(FleetLifecycleState.newBuilder().build()) + .setDefaultClusterConfig(DefaultClusterConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createFleetTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + String parent = "parent-995424086"; + Fleet fleet = Fleet.newBuilder().build(); + + Fleet actualResponse = client.createFleetAsync(parent, fleet).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateFleetRequest actualRequest = ((CreateFleetRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(fleet, actualRequest.getFleet()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createFleetExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String parent = "parent-995424086"; + Fleet fleet = Fleet.newBuilder().build(); + client.createFleetAsync(parent, fleet).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void getFleetTest() throws Exception { + Fleet expectedResponse = + Fleet.newBuilder() + .setName( + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setState(FleetLifecycleState.newBuilder().build()) + .setDefaultClusterConfig(DefaultClusterConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockGkeHub.addResponse(expectedResponse); + + FleetName name = FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]"); + + Fleet actualResponse = client.getFleet(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetFleetRequest actualRequest = ((GetFleetRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getFleetExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + FleetName name = FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]"); + client.getFleet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFleetTest2() throws Exception { + Fleet expectedResponse = + Fleet.newBuilder() + .setName( + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setState(FleetLifecycleState.newBuilder().build()) + .setDefaultClusterConfig(DefaultClusterConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockGkeHub.addResponse(expectedResponse); + + String name = "name3373707"; + + Fleet actualResponse = client.getFleet(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetFleetRequest actualRequest = ((GetFleetRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getFleetExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String name = "name3373707"; + client.getFleet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateFleetTest() throws Exception { + Fleet expectedResponse = + Fleet.newBuilder() + .setName( + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setUid("uid115792") + .setState(FleetLifecycleState.newBuilder().build()) + .setDefaultClusterConfig(DefaultClusterConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateFleetTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + Fleet fleet = Fleet.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Fleet actualResponse = client.updateFleetAsync(fleet, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateFleetRequest actualRequest = ((UpdateFleetRequest) actualRequests.get(0)); + + Assert.assertEquals(fleet, actualRequest.getFleet()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateFleetExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + Fleet fleet = Fleet.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateFleetAsync(fleet, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteFleetTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFleetTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + FleetName name = FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]"); + + client.deleteFleetAsync(name).get(); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteFleetRequest actualRequest = ((DeleteFleetRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteFleetExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + FleetName name = FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]"); + client.deleteFleetAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteFleetTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFleetTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteFleetAsync(name).get(); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteFleetRequest actualRequest = ((DeleteFleetRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteFleetExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String name = "name3373707"; + client.deleteFleetAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listFleetsTest() throws Exception { + Fleet responsesElement = Fleet.newBuilder().build(); + ListFleetsResponse expectedResponse = + ListFleetsResponse.newBuilder() + .setNextPageToken("") + .addAllFleets(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListFleetsPagedResponse pagedListResponse = client.listFleets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFleetsList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFleetsRequest actualRequest = ((ListFleetsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFleetsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listFleets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFleetsTest2() throws Exception { + Fleet responsesElement = Fleet.newBuilder().build(); + ListFleetsResponse expectedResponse = + ListFleetsResponse.newBuilder() + .setNextPageToken("") + .addAllFleets(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListFleetsPagedResponse pagedListResponse = client.listFleets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFleetsList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFleetsRequest actualRequest = ((ListFleetsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFleetsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String parent = "parent-995424086"; + client.listFleets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getScopeNamespaceTest() throws Exception { + Namespace expectedResponse = + Namespace.newBuilder() + .setName( + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(NamespaceLifecycleState.newBuilder().build()) + .setScope(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + mockGkeHub.addResponse(expectedResponse); + + NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]"); + + Namespace actualResponse = client.getScopeNamespace(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetScopeNamespaceRequest actualRequest = ((GetScopeNamespaceRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getScopeNamespaceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]"); + client.getScopeNamespace(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getScopeNamespaceTest2() throws Exception { + Namespace expectedResponse = + Namespace.newBuilder() + .setName( + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(NamespaceLifecycleState.newBuilder().build()) + .setScope(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + mockGkeHub.addResponse(expectedResponse); + + String name = "name3373707"; + + Namespace actualResponse = client.getScopeNamespace(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetScopeNamespaceRequest actualRequest = ((GetScopeNamespaceRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getScopeNamespaceExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String name = "name3373707"; + client.getScopeNamespace(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createScopeNamespaceTest() throws Exception { + Namespace expectedResponse = + Namespace.newBuilder() + .setName( + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(NamespaceLifecycleState.newBuilder().build()) + .setScope(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createScopeNamespaceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + Namespace scopeNamespace = Namespace.newBuilder().build(); + String scopeNamespaceId = "scopeNamespaceId-125738782"; + + Namespace actualResponse = + client.createScopeNamespaceAsync(parent, scopeNamespace, scopeNamespaceId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateScopeNamespaceRequest actualRequest = + ((CreateScopeNamespaceRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(scopeNamespace, actualRequest.getScopeNamespace()); + Assert.assertEquals(scopeNamespaceId, actualRequest.getScopeNamespaceId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createScopeNamespaceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + Namespace scopeNamespace = Namespace.newBuilder().build(); + String scopeNamespaceId = "scopeNamespaceId-125738782"; + client.createScopeNamespaceAsync(parent, scopeNamespace, scopeNamespaceId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createScopeNamespaceTest2() throws Exception { + Namespace expectedResponse = + Namespace.newBuilder() + .setName( + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(NamespaceLifecycleState.newBuilder().build()) + .setScope(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createScopeNamespaceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + String parent = "parent-995424086"; + Namespace scopeNamespace = Namespace.newBuilder().build(); + String scopeNamespaceId = "scopeNamespaceId-125738782"; + + Namespace actualResponse = + client.createScopeNamespaceAsync(parent, scopeNamespace, scopeNamespaceId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateScopeNamespaceRequest actualRequest = + ((CreateScopeNamespaceRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(scopeNamespace, actualRequest.getScopeNamespace()); + Assert.assertEquals(scopeNamespaceId, actualRequest.getScopeNamespaceId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createScopeNamespaceExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String parent = "parent-995424086"; + Namespace scopeNamespace = Namespace.newBuilder().build(); + String scopeNamespaceId = "scopeNamespaceId-125738782"; + client.createScopeNamespaceAsync(parent, scopeNamespace, scopeNamespaceId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateScopeNamespaceTest() throws Exception { + Namespace expectedResponse = + Namespace.newBuilder() + .setName( + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(NamespaceLifecycleState.newBuilder().build()) + .setScope(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateScopeNamespaceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + Namespace scopeNamespace = Namespace.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Namespace actualResponse = client.updateScopeNamespaceAsync(scopeNamespace, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateScopeNamespaceRequest actualRequest = + ((UpdateScopeNamespaceRequest) actualRequests.get(0)); + + Assert.assertEquals(scopeNamespace, actualRequest.getScopeNamespace()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateScopeNamespaceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + Namespace scopeNamespace = Namespace.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateScopeNamespaceAsync(scopeNamespace, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteScopeNamespaceTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteScopeNamespaceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]"); + + client.deleteScopeNamespaceAsync(name).get(); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteScopeNamespaceRequest actualRequest = + ((DeleteScopeNamespaceRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteScopeNamespaceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]"); + client.deleteScopeNamespaceAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteScopeNamespaceTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteScopeNamespaceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteScopeNamespaceAsync(name).get(); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteScopeNamespaceRequest actualRequest = + ((DeleteScopeNamespaceRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteScopeNamespaceExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String name = "name3373707"; + client.deleteScopeNamespaceAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listScopeNamespacesTest() throws Exception { + Namespace responsesElement = Namespace.newBuilder().build(); + ListScopeNamespacesResponse expectedResponse = + ListScopeNamespacesResponse.newBuilder() + .setNextPageToken("") + .addAllScopeNamespaces(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + + ListScopeNamespacesPagedResponse pagedListResponse = client.listScopeNamespaces(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getScopeNamespacesList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListScopeNamespacesRequest actualRequest = ((ListScopeNamespacesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listScopeNamespacesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + client.listScopeNamespaces(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listScopeNamespacesTest2() throws Exception { + Namespace responsesElement = Namespace.newBuilder().build(); + ListScopeNamespacesResponse expectedResponse = + ListScopeNamespacesResponse.newBuilder() + .setNextPageToken("") + .addAllScopeNamespaces(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListScopeNamespacesPagedResponse pagedListResponse = client.listScopeNamespaces(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getScopeNamespacesList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListScopeNamespacesRequest actualRequest = ((ListScopeNamespacesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listScopeNamespacesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String parent = "parent-995424086"; + client.listScopeNamespaces(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getScopeRBACRoleBindingTest() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockGkeHub.addResponse(expectedResponse); + + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]"); + + RBACRoleBinding actualResponse = client.getScopeRBACRoleBinding(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetScopeRBACRoleBindingRequest actualRequest = + ((GetScopeRBACRoleBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getScopeRBACRoleBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]"); + client.getScopeRBACRoleBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getScopeRBACRoleBindingTest2() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockGkeHub.addResponse(expectedResponse); + + String name = "name3373707"; + + RBACRoleBinding actualResponse = client.getScopeRBACRoleBinding(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetScopeRBACRoleBindingRequest actualRequest = + ((GetScopeRBACRoleBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getScopeRBACRoleBindingExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String name = "name3373707"; + client.getScopeRBACRoleBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createScopeRBACRoleBindingTest() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createScopeRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + + RBACRoleBinding actualResponse = + client.createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateScopeRBACRoleBindingRequest actualRequest = + ((CreateScopeRBACRoleBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(rbacrolebinding, actualRequest.getRbacrolebinding()); + Assert.assertEquals(rbacrolebindingId, actualRequest.getRbacrolebindingId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createScopeRBACRoleBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + client.createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createScopeRBACRoleBindingTest2() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createScopeRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + + RBACRoleBinding actualResponse = + client.createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateScopeRBACRoleBindingRequest actualRequest = + ((CreateScopeRBACRoleBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(rbacrolebinding, actualRequest.getRbacrolebinding()); + Assert.assertEquals(rbacrolebindingId, actualRequest.getRbacrolebindingId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createScopeRBACRoleBindingExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + client.createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createScopeRBACRoleBindingTest3() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createScopeRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + String parent = "parent-995424086"; + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + + RBACRoleBinding actualResponse = + client.createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateScopeRBACRoleBindingRequest actualRequest = + ((CreateScopeRBACRoleBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(rbacrolebinding, actualRequest.getRbacrolebinding()); + Assert.assertEquals(rbacrolebindingId, actualRequest.getRbacrolebindingId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createScopeRBACRoleBindingExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String parent = "parent-995424086"; + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + client.createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateScopeRBACRoleBindingTest() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateScopeRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + RBACRoleBinding actualResponse = + client.updateScopeRBACRoleBindingAsync(rbacrolebinding, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateScopeRBACRoleBindingRequest actualRequest = + ((UpdateScopeRBACRoleBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(rbacrolebinding, actualRequest.getRbacrolebinding()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateScopeRBACRoleBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateScopeRBACRoleBindingAsync(rbacrolebinding, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteScopeRBACRoleBindingTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteScopeRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]"); + + client.deleteScopeRBACRoleBindingAsync(name).get(); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteScopeRBACRoleBindingRequest actualRequest = + ((DeleteScopeRBACRoleBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteScopeRBACRoleBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]"); + client.deleteScopeRBACRoleBindingAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteScopeRBACRoleBindingTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteScopeRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteScopeRBACRoleBindingAsync(name).get(); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteScopeRBACRoleBindingRequest actualRequest = + ((DeleteScopeRBACRoleBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteScopeRBACRoleBindingExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String name = "name3373707"; + client.deleteScopeRBACRoleBindingAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listScopeRBACRoleBindingsTest() throws Exception { + RBACRoleBinding responsesElement = RBACRoleBinding.newBuilder().build(); + ListScopeRBACRoleBindingsResponse expectedResponse = + ListScopeRBACRoleBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllRbacrolebindings(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + + ListScopeRBACRoleBindingsPagedResponse pagedListResponse = + client.listScopeRBACRoleBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRbacrolebindingsList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListScopeRBACRoleBindingsRequest actualRequest = + ((ListScopeRBACRoleBindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listScopeRBACRoleBindingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + client.listScopeRBACRoleBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listScopeRBACRoleBindingsTest2() throws Exception { + RBACRoleBinding responsesElement = RBACRoleBinding.newBuilder().build(); + ListScopeRBACRoleBindingsResponse expectedResponse = + ListScopeRBACRoleBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllRbacrolebindings(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + + ListScopeRBACRoleBindingsPagedResponse pagedListResponse = + client.listScopeRBACRoleBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRbacrolebindingsList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListScopeRBACRoleBindingsRequest actualRequest = + ((ListScopeRBACRoleBindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listScopeRBACRoleBindingsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + client.listScopeRBACRoleBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listScopeRBACRoleBindingsTest3() throws Exception { + RBACRoleBinding responsesElement = RBACRoleBinding.newBuilder().build(); + ListScopeRBACRoleBindingsResponse expectedResponse = + ListScopeRBACRoleBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllRbacrolebindings(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListScopeRBACRoleBindingsPagedResponse pagedListResponse = + client.listScopeRBACRoleBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRbacrolebindingsList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListScopeRBACRoleBindingsRequest actualRequest = + ((ListScopeRBACRoleBindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listScopeRBACRoleBindingsExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String parent = "parent-995424086"; + client.listScopeRBACRoleBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getScopeTest() throws Exception { + Scope expectedResponse = + Scope.newBuilder() + .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(ScopeLifecycleState.newBuilder().build()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + mockGkeHub.addResponse(expectedResponse); + + ScopeName name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + + Scope actualResponse = client.getScope(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetScopeRequest actualRequest = ((GetScopeRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getScopeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + ScopeName name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + client.getScope(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getScopeTest2() throws Exception { + Scope expectedResponse = + Scope.newBuilder() + .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(ScopeLifecycleState.newBuilder().build()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + mockGkeHub.addResponse(expectedResponse); + + String name = "name3373707"; + + Scope actualResponse = client.getScope(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetScopeRequest actualRequest = ((GetScopeRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getScopeExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String name = "name3373707"; + client.getScope(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createScopeTest() throws Exception { + Scope expectedResponse = + Scope.newBuilder() + .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(ScopeLifecycleState.newBuilder().build()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createScopeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Scope scope = Scope.newBuilder().build(); + String scopeId = "scopeId1923941007"; + + Scope actualResponse = client.createScopeAsync(parent, scope, scopeId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateScopeRequest actualRequest = ((CreateScopeRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(scope, actualRequest.getScope()); + Assert.assertEquals(scopeId, actualRequest.getScopeId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createScopeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Scope scope = Scope.newBuilder().build(); + String scopeId = "scopeId1923941007"; + client.createScopeAsync(parent, scope, scopeId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createScopeTest2() throws Exception { + Scope expectedResponse = + Scope.newBuilder() + .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(ScopeLifecycleState.newBuilder().build()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createScopeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + String parent = "parent-995424086"; + Scope scope = Scope.newBuilder().build(); + String scopeId = "scopeId1923941007"; + + Scope actualResponse = client.createScopeAsync(parent, scope, scopeId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateScopeRequest actualRequest = ((CreateScopeRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(scope, actualRequest.getScope()); + Assert.assertEquals(scopeId, actualRequest.getScopeId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createScopeExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String parent = "parent-995424086"; + Scope scope = Scope.newBuilder().build(); + String scopeId = "scopeId1923941007"; + client.createScopeAsync(parent, scope, scopeId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateScopeTest() throws Exception { + Scope expectedResponse = + Scope.newBuilder() + .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(ScopeLifecycleState.newBuilder().build()) + .putAllNamespaceLabels(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateScopeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + Scope scope = Scope.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Scope actualResponse = client.updateScopeAsync(scope, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateScopeRequest actualRequest = ((UpdateScopeRequest) actualRequests.get(0)); + + Assert.assertEquals(scope, actualRequest.getScope()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateScopeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + Scope scope = Scope.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateScopeAsync(scope, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteScopeTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteScopeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + ScopeName name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + + client.deleteScopeAsync(name).get(); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteScopeRequest actualRequest = ((DeleteScopeRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteScopeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + ScopeName name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + client.deleteScopeAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteScopeTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteScopeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteScopeAsync(name).get(); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteScopeRequest actualRequest = ((DeleteScopeRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteScopeExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String name = "name3373707"; + client.deleteScopeAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listScopesTest() throws Exception { + Scope responsesElement = Scope.newBuilder().build(); + ListScopesResponse expectedResponse = + ListScopesResponse.newBuilder() + .setNextPageToken("") + .addAllScopes(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListScopesPagedResponse pagedListResponse = client.listScopes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getScopesList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListScopesRequest actualRequest = ((ListScopesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listScopesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listScopes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listScopesTest2() throws Exception { + Scope responsesElement = Scope.newBuilder().build(); + ListScopesResponse expectedResponse = + ListScopesResponse.newBuilder() + .setNextPageToken("") + .addAllScopes(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListScopesPagedResponse pagedListResponse = client.listScopes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getScopesList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListScopesRequest actualRequest = ((ListScopesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listScopesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String parent = "parent-995424086"; + client.listScopes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPermittedScopesTest() throws Exception { + Scope responsesElement = Scope.newBuilder().build(); + ListPermittedScopesResponse expectedResponse = + ListPermittedScopesResponse.newBuilder() + .setNextPageToken("") + .addAllScopes(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListPermittedScopesPagedResponse pagedListResponse = client.listPermittedScopes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getScopesList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListPermittedScopesRequest actualRequest = ((ListPermittedScopesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listPermittedScopesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listPermittedScopes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPermittedScopesTest2() throws Exception { + Scope responsesElement = Scope.newBuilder().build(); + ListPermittedScopesResponse expectedResponse = + ListPermittedScopesResponse.newBuilder() + .setNextPageToken("") + .addAllScopes(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListPermittedScopesPagedResponse pagedListResponse = client.listPermittedScopes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getScopesList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListPermittedScopesRequest actualRequest = ((ListPermittedScopesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listPermittedScopesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String parent = "parent-995424086"; + client.listPermittedScopes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMembershipBindingTest() throws Exception { + MembershipBinding expectedResponse = + MembershipBinding.newBuilder() + .setName( + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(MembershipBindingLifecycleState.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockGkeHub.addResponse(expectedResponse); + + MembershipBindingName name = + MembershipBindingName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]"); + + MembershipBinding actualResponse = client.getMembershipBinding(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMembershipBindingRequest actualRequest = + ((GetMembershipBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMembershipBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + MembershipBindingName name = + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]"); + client.getMembershipBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMembershipBindingTest2() throws Exception { + MembershipBinding expectedResponse = + MembershipBinding.newBuilder() + .setName( + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(MembershipBindingLifecycleState.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockGkeHub.addResponse(expectedResponse); + + String name = "name3373707"; + + MembershipBinding actualResponse = client.getMembershipBinding(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMembershipBindingRequest actualRequest = + ((GetMembershipBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMembershipBindingExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String name = "name3373707"; + client.getMembershipBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMembershipBindingTest() throws Exception { + MembershipBinding expectedResponse = + MembershipBinding.newBuilder() + .setName( + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(MembershipBindingLifecycleState.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createMembershipBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + MembershipBinding membershipBinding = MembershipBinding.newBuilder().build(); + String membershipBindingId = "membershipBindingId1360802634"; + + MembershipBinding actualResponse = + client.createMembershipBindingAsync(parent, membershipBinding, membershipBindingId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMembershipBindingRequest actualRequest = + ((CreateMembershipBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(membershipBinding, actualRequest.getMembershipBinding()); + Assert.assertEquals(membershipBindingId, actualRequest.getMembershipBindingId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMembershipBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + MembershipBinding membershipBinding = MembershipBinding.newBuilder().build(); + String membershipBindingId = "membershipBindingId1360802634"; + client.createMembershipBindingAsync(parent, membershipBinding, membershipBindingId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createMembershipBindingTest2() throws Exception { + MembershipBinding expectedResponse = + MembershipBinding.newBuilder() + .setName( + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(MembershipBindingLifecycleState.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createMembershipBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + String parent = "parent-995424086"; + MembershipBinding membershipBinding = MembershipBinding.newBuilder().build(); + String membershipBindingId = "membershipBindingId1360802634"; + + MembershipBinding actualResponse = + client.createMembershipBindingAsync(parent, membershipBinding, membershipBindingId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMembershipBindingRequest actualRequest = + ((CreateMembershipBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(membershipBinding, actualRequest.getMembershipBinding()); + Assert.assertEquals(membershipBindingId, actualRequest.getMembershipBindingId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMembershipBindingExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String parent = "parent-995424086"; + MembershipBinding membershipBinding = MembershipBinding.newBuilder().build(); + String membershipBindingId = "membershipBindingId1360802634"; + client.createMembershipBindingAsync(parent, membershipBinding, membershipBindingId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateMembershipBindingTest() throws Exception { + MembershipBinding expectedResponse = + MembershipBinding.newBuilder() + .setName( + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(MembershipBindingLifecycleState.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateMembershipBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + MembershipBinding membershipBinding = MembershipBinding.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + MembershipBinding actualResponse = + client.updateMembershipBindingAsync(membershipBinding, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateMembershipBindingRequest actualRequest = + ((UpdateMembershipBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(membershipBinding, actualRequest.getMembershipBinding()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateMembershipBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + MembershipBinding membershipBinding = MembershipBinding.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateMembershipBindingAsync(membershipBinding, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteMembershipBindingTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteMembershipBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + MembershipBindingName name = + MembershipBindingName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]"); + + client.deleteMembershipBindingAsync(name).get(); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteMembershipBindingRequest actualRequest = + ((DeleteMembershipBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteMembershipBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + MembershipBindingName name = + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]"); + client.deleteMembershipBindingAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteMembershipBindingTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteMembershipBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteMembershipBindingAsync(name).get(); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteMembershipBindingRequest actualRequest = + ((DeleteMembershipBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteMembershipBindingExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String name = "name3373707"; + client.deleteMembershipBindingAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listMembershipBindingsTest() throws Exception { + MembershipBinding responsesElement = MembershipBinding.newBuilder().build(); + ListMembershipBindingsResponse expectedResponse = + ListMembershipBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllMembershipBindings(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + + ListMembershipBindingsPagedResponse pagedListResponse = client.listMembershipBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMembershipBindingsList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMembershipBindingsRequest actualRequest = + ((ListMembershipBindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMembershipBindingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + client.listMembershipBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMembershipBindingsTest2() throws Exception { + MembershipBinding responsesElement = MembershipBinding.newBuilder().build(); + ListMembershipBindingsResponse expectedResponse = + ListMembershipBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllMembershipBindings(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListMembershipBindingsPagedResponse pagedListResponse = client.listMembershipBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMembershipBindingsList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMembershipBindingsRequest actualRequest = + ((ListMembershipBindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMembershipBindingsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String parent = "parent-995424086"; + client.listMembershipBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMembershipRBACRoleBindingTest() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockGkeHub.addResponse(expectedResponse); + + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]"); + + RBACRoleBinding actualResponse = client.getMembershipRBACRoleBinding(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMembershipRBACRoleBindingRequest actualRequest = + ((GetMembershipRBACRoleBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMembershipRBACRoleBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]"); + client.getMembershipRBACRoleBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMembershipRBACRoleBindingTest2() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockGkeHub.addResponse(expectedResponse); + + String name = "name3373707"; + + RBACRoleBinding actualResponse = client.getMembershipRBACRoleBinding(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMembershipRBACRoleBindingRequest actualRequest = + ((GetMembershipRBACRoleBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMembershipRBACRoleBindingExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String name = "name3373707"; + client.getMembershipRBACRoleBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMembershipRBACRoleBindingTest() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createMembershipRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + + RBACRoleBinding actualResponse = + client + .createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMembershipRBACRoleBindingRequest actualRequest = + ((CreateMembershipRBACRoleBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(rbacrolebinding, actualRequest.getRbacrolebinding()); + Assert.assertEquals(rbacrolebindingId, actualRequest.getRbacrolebindingId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMembershipRBACRoleBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + client.createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createMembershipRBACRoleBindingTest2() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createMembershipRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + + RBACRoleBinding actualResponse = + client + .createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMembershipRBACRoleBindingRequest actualRequest = + ((CreateMembershipRBACRoleBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(rbacrolebinding, actualRequest.getRbacrolebinding()); + Assert.assertEquals(rbacrolebindingId, actualRequest.getRbacrolebindingId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMembershipRBACRoleBindingExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + client.createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createMembershipRBACRoleBindingTest3() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createMembershipRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + String parent = "parent-995424086"; + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + + RBACRoleBinding actualResponse = + client + .createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMembershipRBACRoleBindingRequest actualRequest = + ((CreateMembershipRBACRoleBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(rbacrolebinding, actualRequest.getRbacrolebinding()); + Assert.assertEquals(rbacrolebindingId, actualRequest.getRbacrolebindingId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMembershipRBACRoleBindingExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String parent = "parent-995424086"; + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + client.createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateMembershipRBACRoleBindingTest() throws Exception { + RBACRoleBinding expectedResponse = + RBACRoleBinding.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + .toString()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setState(RBACRoleBindingLifecycleState.newBuilder().build()) + .setRole(RBACRoleBinding.Role.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateMembershipRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + RBACRoleBinding actualResponse = + client.updateMembershipRBACRoleBindingAsync(rbacrolebinding, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateMembershipRBACRoleBindingRequest actualRequest = + ((UpdateMembershipRBACRoleBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(rbacrolebinding, actualRequest.getRbacrolebinding()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateMembershipRBACRoleBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateMembershipRBACRoleBindingAsync(rbacrolebinding, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteMembershipRBACRoleBindingTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteMembershipRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]"); + + client.deleteMembershipRBACRoleBindingAsync(name).get(); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteMembershipRBACRoleBindingRequest actualRequest = + ((DeleteMembershipRBACRoleBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteMembershipRBACRoleBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]"); + client.deleteMembershipRBACRoleBindingAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteMembershipRBACRoleBindingTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteMembershipRBACRoleBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteMembershipRBACRoleBindingAsync(name).get(); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteMembershipRBACRoleBindingRequest actualRequest = + ((DeleteMembershipRBACRoleBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteMembershipRBACRoleBindingExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String name = "name3373707"; + client.deleteMembershipRBACRoleBindingAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listMembershipRBACRoleBindingsTest() throws Exception { + RBACRoleBinding responsesElement = RBACRoleBinding.newBuilder().build(); + ListMembershipRBACRoleBindingsResponse expectedResponse = + ListMembershipRBACRoleBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllRbacrolebindings(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + + ListMembershipRBACRoleBindingsPagedResponse pagedListResponse = + client.listMembershipRBACRoleBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRbacrolebindingsList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMembershipRBACRoleBindingsRequest actualRequest = + ((ListMembershipRBACRoleBindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMembershipRBACRoleBindingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + client.listMembershipRBACRoleBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMembershipRBACRoleBindingsTest2() throws Exception { + RBACRoleBinding responsesElement = RBACRoleBinding.newBuilder().build(); + ListMembershipRBACRoleBindingsResponse expectedResponse = + ListMembershipRBACRoleBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllRbacrolebindings(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + + ListMembershipRBACRoleBindingsPagedResponse pagedListResponse = + client.listMembershipRBACRoleBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRbacrolebindingsList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMembershipRBACRoleBindingsRequest actualRequest = + ((ListMembershipRBACRoleBindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMembershipRBACRoleBindingsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + client.listMembershipRBACRoleBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMembershipRBACRoleBindingsTest3() throws Exception { + RBACRoleBinding responsesElement = RBACRoleBinding.newBuilder().build(); + ListMembershipRBACRoleBindingsResponse expectedResponse = + ListMembershipRBACRoleBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllRbacrolebindings(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListMembershipRBACRoleBindingsPagedResponse pagedListResponse = + client.listMembershipRBACRoleBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRbacrolebindingsList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMembershipRBACRoleBindingsRequest actualRequest = + ((ListMembershipRBACRoleBindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMembershipRBACRoleBindingsExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + String parent = "parent-995424086"; + client.listMembershipRBACRoleBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void generateMembershipRBACRoleBindingYAMLTest() throws Exception { + GenerateMembershipRBACRoleBindingYAMLResponse expectedResponse = + GenerateMembershipRBACRoleBindingYAMLResponse.newBuilder() + .setRoleBindingsYaml("roleBindingsYaml-926355989") + .build(); + mockGkeHub.addResponse(expectedResponse); + + GenerateMembershipRBACRoleBindingYAMLRequest request = + GenerateMembershipRBACRoleBindingYAMLRequest.newBuilder() + .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setRbacrolebindingId("rbacrolebindingId827577784") + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .build(); + + GenerateMembershipRBACRoleBindingYAMLResponse actualResponse = + client.generateMembershipRBACRoleBindingYAML(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GenerateMembershipRBACRoleBindingYAMLRequest actualRequest = + ((GenerateMembershipRBACRoleBindingYAMLRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getRbacrolebindingId(), actualRequest.getRbacrolebindingId()); + Assert.assertEquals(request.getRbacrolebinding(), actualRequest.getRbacrolebinding()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void generateMembershipRBACRoleBindingYAMLExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + GenerateMembershipRBACRoleBindingYAMLRequest request = + GenerateMembershipRBACRoleBindingYAMLRequest.newBuilder() + .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setRbacrolebindingId("rbacrolebindingId827577784") + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .build(); + client.generateMembershipRBACRoleBindingYAML(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-gkehub/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/MockGkeHubImpl.java b/java-gkehub/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/MockGkeHubImpl.java index 7d5bb8f51ff8..beb2cd587946 100644 --- a/java-gkehub/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/MockGkeHubImpl.java +++ b/java-gkehub/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/MockGkeHubImpl.java @@ -80,6 +80,29 @@ public void listMemberships( } } + @Override + public void listBoundMemberships( + ListBoundMembershipsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListBoundMembershipsResponse) { + requests.add(request); + responseObserver.onNext(((ListBoundMembershipsResponse) 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 ListBoundMemberships, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ListBoundMembershipsResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void listFeatures( ListFeaturesRequest request, StreamObserver responseObserver) { @@ -290,4 +313,694 @@ public void generateConnectManifest( Exception.class.getName()))); } } + + @Override + public void createFleet(CreateFleetRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateFleet, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getFleet(GetFleetRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Fleet) { + requests.add(request); + responseObserver.onNext(((Fleet) 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 GetFleet, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Fleet.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateFleet(UpdateFleetRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateFleet, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteFleet(DeleteFleetRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteFleet, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listFleets( + ListFleetsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListFleetsResponse) { + requests.add(request); + responseObserver.onNext(((ListFleetsResponse) 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 ListFleets, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListFleetsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getScopeNamespace( + GetScopeNamespaceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Namespace) { + requests.add(request); + responseObserver.onNext(((Namespace) 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 GetScopeNamespace, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Namespace.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createScopeNamespace( + CreateScopeNamespaceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateScopeNamespace, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateScopeNamespace( + UpdateScopeNamespaceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateScopeNamespace, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteScopeNamespace( + DeleteScopeNamespaceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteScopeNamespace, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listScopeNamespaces( + ListScopeNamespacesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListScopeNamespacesResponse) { + requests.add(request); + responseObserver.onNext(((ListScopeNamespacesResponse) 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 ListScopeNamespaces, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListScopeNamespacesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getScopeRBACRoleBinding( + GetScopeRBACRoleBindingRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof RBACRoleBinding) { + requests.add(request); + responseObserver.onNext(((RBACRoleBinding) 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 GetScopeRBACRoleBinding, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + RBACRoleBinding.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createScopeRBACRoleBinding( + CreateScopeRBACRoleBindingRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateScopeRBACRoleBinding, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateScopeRBACRoleBinding( + UpdateScopeRBACRoleBindingRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateScopeRBACRoleBinding, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteScopeRBACRoleBinding( + DeleteScopeRBACRoleBindingRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteScopeRBACRoleBinding, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listScopeRBACRoleBindings( + ListScopeRBACRoleBindingsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListScopeRBACRoleBindingsResponse) { + requests.add(request); + responseObserver.onNext(((ListScopeRBACRoleBindingsResponse) 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 ListScopeRBACRoleBindings, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + ListScopeRBACRoleBindingsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getScope(GetScopeRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Scope) { + requests.add(request); + responseObserver.onNext(((Scope) 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 GetScope, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Scope.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createScope(CreateScopeRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateScope, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateScope(UpdateScopeRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateScope, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteScope(DeleteScopeRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteScope, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listScopes( + ListScopesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListScopesResponse) { + requests.add(request); + responseObserver.onNext(((ListScopesResponse) 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 ListScopes, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListScopesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listPermittedScopes( + ListPermittedScopesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListPermittedScopesResponse) { + requests.add(request); + responseObserver.onNext(((ListPermittedScopesResponse) 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 ListPermittedScopes, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListPermittedScopesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getMembershipBinding( + GetMembershipBindingRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof MembershipBinding) { + requests.add(request); + responseObserver.onNext(((MembershipBinding) 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 GetMembershipBinding, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + MembershipBinding.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createMembershipBinding( + CreateMembershipBindingRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateMembershipBinding, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateMembershipBinding( + UpdateMembershipBindingRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateMembershipBinding, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteMembershipBinding( + DeleteMembershipBindingRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteMembershipBinding, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listMembershipBindings( + ListMembershipBindingsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListMembershipBindingsResponse) { + requests.add(request); + responseObserver.onNext(((ListMembershipBindingsResponse) 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 ListMembershipBindings, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ListMembershipBindingsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getMembershipRBACRoleBinding( + GetMembershipRBACRoleBindingRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof RBACRoleBinding) { + requests.add(request); + responseObserver.onNext(((RBACRoleBinding) 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 GetMembershipRBACRoleBinding, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + RBACRoleBinding.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createMembershipRBACRoleBinding( + CreateMembershipRBACRoleBindingRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateMembershipRBACRoleBinding," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateMembershipRBACRoleBinding( + UpdateMembershipRBACRoleBindingRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateMembershipRBACRoleBinding," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteMembershipRBACRoleBinding( + DeleteMembershipRBACRoleBindingRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteMembershipRBACRoleBinding," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listMembershipRBACRoleBindings( + ListMembershipRBACRoleBindingsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListMembershipRBACRoleBindingsResponse) { + requests.add(request); + responseObserver.onNext(((ListMembershipRBACRoleBindingsResponse) 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 ListMembershipRBACRoleBindings," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListMembershipRBACRoleBindingsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void generateMembershipRBACRoleBindingYAML( + GenerateMembershipRBACRoleBindingYAMLRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof GenerateMembershipRBACRoleBindingYAMLResponse) { + requests.add(request); + responseObserver.onNext(((GenerateMembershipRBACRoleBindingYAMLResponse) 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 GenerateMembershipRBACRoleBindingYAML," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + GenerateMembershipRBACRoleBindingYAMLResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-gkehub/grpc-google-cloud-gkehub-v1/pom.xml b/java-gkehub/grpc-google-cloud-gkehub-v1/pom.xml index ece37c3cb310..8010ea5b317b 100644 --- a/java-gkehub/grpc-google-cloud-gkehub-v1/pom.xml +++ b/java-gkehub/grpc-google-cloud-gkehub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gkehub-v1 - 1.84.0-SNAPSHOT + 1.85.0 grpc-google-cloud-gkehub-v1 GRPC library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.84.0-SNAPSHOT + 1.85.0 diff --git a/java-gkehub/grpc-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeHubGrpc.java b/java-gkehub/grpc-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeHubGrpc.java index b48349bed38e..abe69704ca90 100644 --- a/java-gkehub/grpc-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeHubGrpc.java +++ b/java-gkehub/grpc-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeHubGrpc.java @@ -90,6 +90,54 @@ private GkeHubGrpc() {} return getListMembershipsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListBoundMembershipsRequest, + com.google.cloud.gkehub.v1.ListBoundMembershipsResponse> + getListBoundMembershipsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBoundMemberships", + requestType = com.google.cloud.gkehub.v1.ListBoundMembershipsRequest.class, + responseType = com.google.cloud.gkehub.v1.ListBoundMembershipsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListBoundMembershipsRequest, + com.google.cloud.gkehub.v1.ListBoundMembershipsResponse> + getListBoundMembershipsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListBoundMembershipsRequest, + com.google.cloud.gkehub.v1.ListBoundMembershipsResponse> + getListBoundMembershipsMethod; + if ((getListBoundMembershipsMethod = GkeHubGrpc.getListBoundMembershipsMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getListBoundMembershipsMethod = GkeHubGrpc.getListBoundMembershipsMethod) == null) { + GkeHubGrpc.getListBoundMembershipsMethod = + getListBoundMembershipsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListBoundMemberships")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListBoundMembershipsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListBoundMembershipsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("ListBoundMemberships")) + .build(); + } + } + } + return getListBoundMembershipsMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.gkehub.v1.ListFeaturesRequest, com.google.cloud.gkehub.v1.ListFeaturesResponse> @@ -514,152 +562,3734 @@ private GkeHubGrpc() {} return getGenerateConnectManifestMethod; } - /** Creates a new async stub that supports all call types for the service */ - public static GkeHubStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubStub(channel, callOptions); - } - }; - return GkeHubStub.newStub(factory, channel); - } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateFleetRequest, com.google.longrunning.Operation> + getCreateFleetMethod; - /** Creates a new blocking-style stub that supports all types of calls on the service */ - public static GkeHubBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubBlockingV2Stub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubBlockingV2Stub(channel, callOptions); - } - }; - return GkeHubBlockingV2Stub.newStub(factory, channel); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFleet", + requestType = com.google.cloud.gkehub.v1.CreateFleetRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateFleetRequest, com.google.longrunning.Operation> + getCreateFleetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateFleetRequest, com.google.longrunning.Operation> + getCreateFleetMethod; + if ((getCreateFleetMethod = GkeHubGrpc.getCreateFleetMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getCreateFleetMethod = GkeHubGrpc.getCreateFleetMethod) == null) { + GkeHubGrpc.getCreateFleetMethod = + getCreateFleetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFleet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.CreateFleetRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("CreateFleet")) + .build(); + } + } + } + return getCreateFleetMethod; } - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static GkeHubBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubBlockingStub(channel, callOptions); - } - }; - return GkeHubBlockingStub.newStub(factory, channel); - } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetFleetRequest, com.google.cloud.gkehub.v1.Fleet> + getGetFleetMethod; - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static GkeHubFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubFutureStub(channel, callOptions); - } - }; - return GkeHubFutureStub.newStub(factory, channel); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFleet", + requestType = com.google.cloud.gkehub.v1.GetFleetRequest.class, + responseType = com.google.cloud.gkehub.v1.Fleet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetFleetRequest, com.google.cloud.gkehub.v1.Fleet> + getGetFleetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetFleetRequest, com.google.cloud.gkehub.v1.Fleet> + getGetFleetMethod; + if ((getGetFleetMethod = GkeHubGrpc.getGetFleetMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getGetFleetMethod = GkeHubGrpc.getGetFleetMethod) == null) { + GkeHubGrpc.getGetFleetMethod = + getGetFleetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFleet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.GetFleetRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.Fleet.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("GetFleet")) + .build(); + } + } + } + return getGetFleetMethod; } - /** - * - * - *
            -   * The GKE Hub service handles the registration of many Kubernetes clusters to
            -   * Google Cloud, and the management of multi-cluster features over those
            -   * clusters.
            -   * The GKE Hub service operates on the following resources:
            -   * * [Membership][google.cloud.gkehub.v1.Membership]
            -   * * [Feature][google.cloud.gkehub.v1.Feature]
            -   * GKE Hub is currently available in the global region and all regions in
            -   * https://cloud.google.com/compute/docs/regions-zones. Feature is only
            -   * available in global region while membership is global region and all the
            -   * regions.
            -   * **Membership management may be non-trivial:** it is recommended to use one
            -   * of the Google-provided client libraries or tools where possible when working
            -   * with Membership resources.
            -   * 
            - */ - public interface AsyncService { + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateFleetRequest, com.google.longrunning.Operation> + getUpdateFleetMethod; - /** - * - * - *
            -     * Lists Memberships in a given project and location.
            -     * 
            - */ - default void listMemberships( - com.google.cloud.gkehub.v1.ListMembershipsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListMembershipsMethod(), responseObserver); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFleet", + requestType = com.google.cloud.gkehub.v1.UpdateFleetRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateFleetRequest, com.google.longrunning.Operation> + getUpdateFleetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateFleetRequest, com.google.longrunning.Operation> + getUpdateFleetMethod; + if ((getUpdateFleetMethod = GkeHubGrpc.getUpdateFleetMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getUpdateFleetMethod = GkeHubGrpc.getUpdateFleetMethod) == null) { + GkeHubGrpc.getUpdateFleetMethod = + getUpdateFleetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFleet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.UpdateFleetRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("UpdateFleet")) + .build(); + } + } } + return getUpdateFleetMethod; + } - /** - * - * - *
            -     * Lists Features in a given project and location.
            -     * 
            - */ - default void listFeatures( - com.google.cloud.gkehub.v1.ListFeaturesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListFeaturesMethod(), responseObserver); - } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteFleetRequest, com.google.longrunning.Operation> + getDeleteFleetMethod; - /** - * - * - *
            -     * Gets the details of a Membership.
            -     * 
            - */ - default void getMembership( - com.google.cloud.gkehub.v1.GetMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetMembershipMethod(), responseObserver); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFleet", + requestType = com.google.cloud.gkehub.v1.DeleteFleetRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteFleetRequest, com.google.longrunning.Operation> + getDeleteFleetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteFleetRequest, com.google.longrunning.Operation> + getDeleteFleetMethod; + if ((getDeleteFleetMethod = GkeHubGrpc.getDeleteFleetMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getDeleteFleetMethod = GkeHubGrpc.getDeleteFleetMethod) == null) { + GkeHubGrpc.getDeleteFleetMethod = + getDeleteFleetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFleet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.DeleteFleetRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("DeleteFleet")) + .build(); + } + } } + return getDeleteFleetMethod; + } - /** - * - * - *
            -     * Gets details of a single Feature.
            -     * 
            - */ - default void getFeature( - com.google.cloud.gkehub.v1.GetFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFeatureMethod(), responseObserver); - } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListFleetsRequest, + com.google.cloud.gkehub.v1.ListFleetsResponse> + getListFleetsMethod; - /** - * - * - *
            -     * Creates a new Membership.
            -     * **This is currently only supported for GKE clusters on Google Cloud**.
            -     * To register other clusters, follow the instructions at
            -     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
            -     * 
            - */ - default void createMembership( - com.google.cloud.gkehub.v1.CreateMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateMembershipMethod(), responseObserver); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFleets", + requestType = com.google.cloud.gkehub.v1.ListFleetsRequest.class, + responseType = com.google.cloud.gkehub.v1.ListFleetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListFleetsRequest, + com.google.cloud.gkehub.v1.ListFleetsResponse> + getListFleetsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListFleetsRequest, + com.google.cloud.gkehub.v1.ListFleetsResponse> + getListFleetsMethod; + if ((getListFleetsMethod = GkeHubGrpc.getListFleetsMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getListFleetsMethod = GkeHubGrpc.getListFleetsMethod) == null) { + GkeHubGrpc.getListFleetsMethod = + getListFleetsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFleets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListFleetsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListFleetsResponse.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("ListFleets")) + .build(); + } + } + } + return getListFleetsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetScopeNamespaceRequest, com.google.cloud.gkehub.v1.Namespace> + getGetScopeNamespaceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetScopeNamespace", + requestType = com.google.cloud.gkehub.v1.GetScopeNamespaceRequest.class, + responseType = com.google.cloud.gkehub.v1.Namespace.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetScopeNamespaceRequest, com.google.cloud.gkehub.v1.Namespace> + getGetScopeNamespaceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetScopeNamespaceRequest, + com.google.cloud.gkehub.v1.Namespace> + getGetScopeNamespaceMethod; + if ((getGetScopeNamespaceMethod = GkeHubGrpc.getGetScopeNamespaceMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getGetScopeNamespaceMethod = GkeHubGrpc.getGetScopeNamespaceMethod) == null) { + GkeHubGrpc.getGetScopeNamespaceMethod = + getGetScopeNamespaceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScopeNamespace")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.GetScopeNamespaceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.Namespace.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("GetScopeNamespace")) + .build(); + } + } + } + return getGetScopeNamespaceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest, com.google.longrunning.Operation> + getCreateScopeNamespaceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateScopeNamespace", + requestType = com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest, com.google.longrunning.Operation> + getCreateScopeNamespaceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest, + com.google.longrunning.Operation> + getCreateScopeNamespaceMethod; + if ((getCreateScopeNamespaceMethod = GkeHubGrpc.getCreateScopeNamespaceMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getCreateScopeNamespaceMethod = GkeHubGrpc.getCreateScopeNamespaceMethod) == null) { + GkeHubGrpc.getCreateScopeNamespaceMethod = + getCreateScopeNamespaceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateScopeNamespace")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("CreateScopeNamespace")) + .build(); + } + } + } + return getCreateScopeNamespaceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest, com.google.longrunning.Operation> + getUpdateScopeNamespaceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateScopeNamespace", + requestType = com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest, com.google.longrunning.Operation> + getUpdateScopeNamespaceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest, + com.google.longrunning.Operation> + getUpdateScopeNamespaceMethod; + if ((getUpdateScopeNamespaceMethod = GkeHubGrpc.getUpdateScopeNamespaceMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getUpdateScopeNamespaceMethod = GkeHubGrpc.getUpdateScopeNamespaceMethod) == null) { + GkeHubGrpc.getUpdateScopeNamespaceMethod = + getUpdateScopeNamespaceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateScopeNamespace")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("UpdateScopeNamespace")) + .build(); + } + } + } + return getUpdateScopeNamespaceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest, com.google.longrunning.Operation> + getDeleteScopeNamespaceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteScopeNamespace", + requestType = com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest, com.google.longrunning.Operation> + getDeleteScopeNamespaceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest, + com.google.longrunning.Operation> + getDeleteScopeNamespaceMethod; + if ((getDeleteScopeNamespaceMethod = GkeHubGrpc.getDeleteScopeNamespaceMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getDeleteScopeNamespaceMethod = GkeHubGrpc.getDeleteScopeNamespaceMethod) == null) { + GkeHubGrpc.getDeleteScopeNamespaceMethod = + getDeleteScopeNamespaceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteScopeNamespace")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("DeleteScopeNamespace")) + .build(); + } + } + } + return getDeleteScopeNamespaceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListScopeNamespacesRequest, + com.google.cloud.gkehub.v1.ListScopeNamespacesResponse> + getListScopeNamespacesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListScopeNamespaces", + requestType = com.google.cloud.gkehub.v1.ListScopeNamespacesRequest.class, + responseType = com.google.cloud.gkehub.v1.ListScopeNamespacesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListScopeNamespacesRequest, + com.google.cloud.gkehub.v1.ListScopeNamespacesResponse> + getListScopeNamespacesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListScopeNamespacesRequest, + com.google.cloud.gkehub.v1.ListScopeNamespacesResponse> + getListScopeNamespacesMethod; + if ((getListScopeNamespacesMethod = GkeHubGrpc.getListScopeNamespacesMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getListScopeNamespacesMethod = GkeHubGrpc.getListScopeNamespacesMethod) == null) { + GkeHubGrpc.getListScopeNamespacesMethod = + getListScopeNamespacesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListScopeNamespaces")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListScopeNamespacesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListScopeNamespacesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("ListScopeNamespaces")) + .build(); + } + } + } + return getListScopeNamespacesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest, + com.google.cloud.gkehub.v1.RBACRoleBinding> + getGetScopeRBACRoleBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetScopeRBACRoleBinding", + requestType = com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest.class, + responseType = com.google.cloud.gkehub.v1.RBACRoleBinding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest, + com.google.cloud.gkehub.v1.RBACRoleBinding> + getGetScopeRBACRoleBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest, + com.google.cloud.gkehub.v1.RBACRoleBinding> + getGetScopeRBACRoleBindingMethod; + if ((getGetScopeRBACRoleBindingMethod = GkeHubGrpc.getGetScopeRBACRoleBindingMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getGetScopeRBACRoleBindingMethod = GkeHubGrpc.getGetScopeRBACRoleBindingMethod) + == null) { + GkeHubGrpc.getGetScopeRBACRoleBindingMethod = + getGetScopeRBACRoleBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetScopeRBACRoleBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("GetScopeRBACRoleBinding")) + .build(); + } + } + } + return getGetScopeRBACRoleBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest, + com.google.longrunning.Operation> + getCreateScopeRBACRoleBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateScopeRBACRoleBinding", + requestType = com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest, + com.google.longrunning.Operation> + getCreateScopeRBACRoleBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest, + com.google.longrunning.Operation> + getCreateScopeRBACRoleBindingMethod; + if ((getCreateScopeRBACRoleBindingMethod = GkeHubGrpc.getCreateScopeRBACRoleBindingMethod) + == null) { + synchronized (GkeHubGrpc.class) { + if ((getCreateScopeRBACRoleBindingMethod = GkeHubGrpc.getCreateScopeRBACRoleBindingMethod) + == null) { + GkeHubGrpc.getCreateScopeRBACRoleBindingMethod = + getCreateScopeRBACRoleBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateScopeRBACRoleBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("CreateScopeRBACRoleBinding")) + .build(); + } + } + } + return getCreateScopeRBACRoleBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest, + com.google.longrunning.Operation> + getUpdateScopeRBACRoleBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateScopeRBACRoleBinding", + requestType = com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest, + com.google.longrunning.Operation> + getUpdateScopeRBACRoleBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest, + com.google.longrunning.Operation> + getUpdateScopeRBACRoleBindingMethod; + if ((getUpdateScopeRBACRoleBindingMethod = GkeHubGrpc.getUpdateScopeRBACRoleBindingMethod) + == null) { + synchronized (GkeHubGrpc.class) { + if ((getUpdateScopeRBACRoleBindingMethod = GkeHubGrpc.getUpdateScopeRBACRoleBindingMethod) + == null) { + GkeHubGrpc.getUpdateScopeRBACRoleBindingMethod = + getUpdateScopeRBACRoleBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateScopeRBACRoleBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("UpdateScopeRBACRoleBinding")) + .build(); + } + } + } + return getUpdateScopeRBACRoleBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest, + com.google.longrunning.Operation> + getDeleteScopeRBACRoleBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteScopeRBACRoleBinding", + requestType = com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest, + com.google.longrunning.Operation> + getDeleteScopeRBACRoleBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest, + com.google.longrunning.Operation> + getDeleteScopeRBACRoleBindingMethod; + if ((getDeleteScopeRBACRoleBindingMethod = GkeHubGrpc.getDeleteScopeRBACRoleBindingMethod) + == null) { + synchronized (GkeHubGrpc.class) { + if ((getDeleteScopeRBACRoleBindingMethod = GkeHubGrpc.getDeleteScopeRBACRoleBindingMethod) + == null) { + GkeHubGrpc.getDeleteScopeRBACRoleBindingMethod = + getDeleteScopeRBACRoleBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteScopeRBACRoleBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("DeleteScopeRBACRoleBinding")) + .build(); + } + } + } + return getDeleteScopeRBACRoleBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest, + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse> + getListScopeRBACRoleBindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListScopeRBACRoleBindings", + requestType = com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest.class, + responseType = com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest, + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse> + getListScopeRBACRoleBindingsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest, + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse> + getListScopeRBACRoleBindingsMethod; + if ((getListScopeRBACRoleBindingsMethod = GkeHubGrpc.getListScopeRBACRoleBindingsMethod) + == null) { + synchronized (GkeHubGrpc.class) { + if ((getListScopeRBACRoleBindingsMethod = GkeHubGrpc.getListScopeRBACRoleBindingsMethod) + == null) { + GkeHubGrpc.getListScopeRBACRoleBindingsMethod = + getListScopeRBACRoleBindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListScopeRBACRoleBindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("ListScopeRBACRoleBindings")) + .build(); + } + } + } + return getListScopeRBACRoleBindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetScopeRequest, com.google.cloud.gkehub.v1.Scope> + getGetScopeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetScope", + requestType = com.google.cloud.gkehub.v1.GetScopeRequest.class, + responseType = com.google.cloud.gkehub.v1.Scope.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetScopeRequest, com.google.cloud.gkehub.v1.Scope> + getGetScopeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetScopeRequest, com.google.cloud.gkehub.v1.Scope> + getGetScopeMethod; + if ((getGetScopeMethod = GkeHubGrpc.getGetScopeMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getGetScopeMethod = GkeHubGrpc.getGetScopeMethod) == null) { + GkeHubGrpc.getGetScopeMethod = + getGetScopeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScope")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.GetScopeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.Scope.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("GetScope")) + .build(); + } + } + } + return getGetScopeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateScopeRequest, com.google.longrunning.Operation> + getCreateScopeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateScope", + requestType = com.google.cloud.gkehub.v1.CreateScopeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateScopeRequest, com.google.longrunning.Operation> + getCreateScopeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateScopeRequest, com.google.longrunning.Operation> + getCreateScopeMethod; + if ((getCreateScopeMethod = GkeHubGrpc.getCreateScopeMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getCreateScopeMethod = GkeHubGrpc.getCreateScopeMethod) == null) { + GkeHubGrpc.getCreateScopeMethod = + getCreateScopeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateScope")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.CreateScopeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("CreateScope")) + .build(); + } + } + } + return getCreateScopeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateScopeRequest, com.google.longrunning.Operation> + getUpdateScopeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateScope", + requestType = com.google.cloud.gkehub.v1.UpdateScopeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateScopeRequest, com.google.longrunning.Operation> + getUpdateScopeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateScopeRequest, com.google.longrunning.Operation> + getUpdateScopeMethod; + if ((getUpdateScopeMethod = GkeHubGrpc.getUpdateScopeMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getUpdateScopeMethod = GkeHubGrpc.getUpdateScopeMethod) == null) { + GkeHubGrpc.getUpdateScopeMethod = + getUpdateScopeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateScope")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.UpdateScopeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("UpdateScope")) + .build(); + } + } + } + return getUpdateScopeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteScopeRequest, com.google.longrunning.Operation> + getDeleteScopeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteScope", + requestType = com.google.cloud.gkehub.v1.DeleteScopeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteScopeRequest, com.google.longrunning.Operation> + getDeleteScopeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteScopeRequest, com.google.longrunning.Operation> + getDeleteScopeMethod; + if ((getDeleteScopeMethod = GkeHubGrpc.getDeleteScopeMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getDeleteScopeMethod = GkeHubGrpc.getDeleteScopeMethod) == null) { + GkeHubGrpc.getDeleteScopeMethod = + getDeleteScopeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteScope")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.DeleteScopeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("DeleteScope")) + .build(); + } + } + } + return getDeleteScopeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListScopesRequest, + com.google.cloud.gkehub.v1.ListScopesResponse> + getListScopesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListScopes", + requestType = com.google.cloud.gkehub.v1.ListScopesRequest.class, + responseType = com.google.cloud.gkehub.v1.ListScopesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListScopesRequest, + com.google.cloud.gkehub.v1.ListScopesResponse> + getListScopesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListScopesRequest, + com.google.cloud.gkehub.v1.ListScopesResponse> + getListScopesMethod; + if ((getListScopesMethod = GkeHubGrpc.getListScopesMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getListScopesMethod = GkeHubGrpc.getListScopesMethod) == null) { + GkeHubGrpc.getListScopesMethod = + getListScopesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScopes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListScopesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListScopesResponse.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("ListScopes")) + .build(); + } + } + } + return getListScopesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListPermittedScopesRequest, + com.google.cloud.gkehub.v1.ListPermittedScopesResponse> + getListPermittedScopesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPermittedScopes", + requestType = com.google.cloud.gkehub.v1.ListPermittedScopesRequest.class, + responseType = com.google.cloud.gkehub.v1.ListPermittedScopesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListPermittedScopesRequest, + com.google.cloud.gkehub.v1.ListPermittedScopesResponse> + getListPermittedScopesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListPermittedScopesRequest, + com.google.cloud.gkehub.v1.ListPermittedScopesResponse> + getListPermittedScopesMethod; + if ((getListPermittedScopesMethod = GkeHubGrpc.getListPermittedScopesMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getListPermittedScopesMethod = GkeHubGrpc.getListPermittedScopesMethod) == null) { + GkeHubGrpc.getListPermittedScopesMethod = + getListPermittedScopesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListPermittedScopes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListPermittedScopesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListPermittedScopesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("ListPermittedScopes")) + .build(); + } + } + } + return getListPermittedScopesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetMembershipBindingRequest, + com.google.cloud.gkehub.v1.MembershipBinding> + getGetMembershipBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMembershipBinding", + requestType = com.google.cloud.gkehub.v1.GetMembershipBindingRequest.class, + responseType = com.google.cloud.gkehub.v1.MembershipBinding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetMembershipBindingRequest, + com.google.cloud.gkehub.v1.MembershipBinding> + getGetMembershipBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetMembershipBindingRequest, + com.google.cloud.gkehub.v1.MembershipBinding> + getGetMembershipBindingMethod; + if ((getGetMembershipBindingMethod = GkeHubGrpc.getGetMembershipBindingMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getGetMembershipBindingMethod = GkeHubGrpc.getGetMembershipBindingMethod) == null) { + GkeHubGrpc.getGetMembershipBindingMethod = + getGetMembershipBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetMembershipBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.GetMembershipBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.MembershipBinding.getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("GetMembershipBinding")) + .build(); + } + } + } + return getGetMembershipBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateMembershipBindingRequest, + com.google.longrunning.Operation> + getCreateMembershipBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateMembershipBinding", + requestType = com.google.cloud.gkehub.v1.CreateMembershipBindingRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateMembershipBindingRequest, + com.google.longrunning.Operation> + getCreateMembershipBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateMembershipBindingRequest, + com.google.longrunning.Operation> + getCreateMembershipBindingMethod; + if ((getCreateMembershipBindingMethod = GkeHubGrpc.getCreateMembershipBindingMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getCreateMembershipBindingMethod = GkeHubGrpc.getCreateMembershipBindingMethod) + == null) { + GkeHubGrpc.getCreateMembershipBindingMethod = + getCreateMembershipBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateMembershipBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.CreateMembershipBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("CreateMembershipBinding")) + .build(); + } + } + } + return getCreateMembershipBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest, + com.google.longrunning.Operation> + getUpdateMembershipBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateMembershipBinding", + requestType = com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest, + com.google.longrunning.Operation> + getUpdateMembershipBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest, + com.google.longrunning.Operation> + getUpdateMembershipBindingMethod; + if ((getUpdateMembershipBindingMethod = GkeHubGrpc.getUpdateMembershipBindingMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getUpdateMembershipBindingMethod = GkeHubGrpc.getUpdateMembershipBindingMethod) + == null) { + GkeHubGrpc.getUpdateMembershipBindingMethod = + getUpdateMembershipBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateMembershipBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("UpdateMembershipBinding")) + .build(); + } + } + } + return getUpdateMembershipBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest, + com.google.longrunning.Operation> + getDeleteMembershipBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteMembershipBinding", + requestType = com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest, + com.google.longrunning.Operation> + getDeleteMembershipBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest, + com.google.longrunning.Operation> + getDeleteMembershipBindingMethod; + if ((getDeleteMembershipBindingMethod = GkeHubGrpc.getDeleteMembershipBindingMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getDeleteMembershipBindingMethod = GkeHubGrpc.getDeleteMembershipBindingMethod) + == null) { + GkeHubGrpc.getDeleteMembershipBindingMethod = + getDeleteMembershipBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteMembershipBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("DeleteMembershipBinding")) + .build(); + } + } + } + return getDeleteMembershipBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListMembershipBindingsRequest, + com.google.cloud.gkehub.v1.ListMembershipBindingsResponse> + getListMembershipBindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMembershipBindings", + requestType = com.google.cloud.gkehub.v1.ListMembershipBindingsRequest.class, + responseType = com.google.cloud.gkehub.v1.ListMembershipBindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListMembershipBindingsRequest, + com.google.cloud.gkehub.v1.ListMembershipBindingsResponse> + getListMembershipBindingsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListMembershipBindingsRequest, + com.google.cloud.gkehub.v1.ListMembershipBindingsResponse> + getListMembershipBindingsMethod; + if ((getListMembershipBindingsMethod = GkeHubGrpc.getListMembershipBindingsMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getListMembershipBindingsMethod = GkeHubGrpc.getListMembershipBindingsMethod) + == null) { + GkeHubGrpc.getListMembershipBindingsMethod = + getListMembershipBindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListMembershipBindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListMembershipBindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListMembershipBindingsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("ListMembershipBindings")) + .build(); + } + } + } + return getListMembershipBindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest, + com.google.cloud.gkehub.v1.RBACRoleBinding> + getGetMembershipRBACRoleBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMembershipRBACRoleBinding", + requestType = com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest.class, + responseType = com.google.cloud.gkehub.v1.RBACRoleBinding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest, + com.google.cloud.gkehub.v1.RBACRoleBinding> + getGetMembershipRBACRoleBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest, + com.google.cloud.gkehub.v1.RBACRoleBinding> + getGetMembershipRBACRoleBindingMethod; + if ((getGetMembershipRBACRoleBindingMethod = GkeHubGrpc.getGetMembershipRBACRoleBindingMethod) + == null) { + synchronized (GkeHubGrpc.class) { + if ((getGetMembershipRBACRoleBindingMethod = + GkeHubGrpc.getGetMembershipRBACRoleBindingMethod) + == null) { + GkeHubGrpc.getGetMembershipRBACRoleBindingMethod = + getGetMembershipRBACRoleBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetMembershipRBACRoleBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("GetMembershipRBACRoleBinding")) + .build(); + } + } + } + return getGetMembershipRBACRoleBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest, + com.google.longrunning.Operation> + getCreateMembershipRBACRoleBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateMembershipRBACRoleBinding", + requestType = com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest, + com.google.longrunning.Operation> + getCreateMembershipRBACRoleBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest, + com.google.longrunning.Operation> + getCreateMembershipRBACRoleBindingMethod; + if ((getCreateMembershipRBACRoleBindingMethod = + GkeHubGrpc.getCreateMembershipRBACRoleBindingMethod) + == null) { + synchronized (GkeHubGrpc.class) { + if ((getCreateMembershipRBACRoleBindingMethod = + GkeHubGrpc.getCreateMembershipRBACRoleBindingMethod) + == null) { + GkeHubGrpc.getCreateMembershipRBACRoleBindingMethod = + getCreateMembershipRBACRoleBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateMembershipRBACRoleBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("CreateMembershipRBACRoleBinding")) + .build(); + } + } + } + return getCreateMembershipRBACRoleBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest, + com.google.longrunning.Operation> + getUpdateMembershipRBACRoleBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateMembershipRBACRoleBinding", + requestType = com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest, + com.google.longrunning.Operation> + getUpdateMembershipRBACRoleBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest, + com.google.longrunning.Operation> + getUpdateMembershipRBACRoleBindingMethod; + if ((getUpdateMembershipRBACRoleBindingMethod = + GkeHubGrpc.getUpdateMembershipRBACRoleBindingMethod) + == null) { + synchronized (GkeHubGrpc.class) { + if ((getUpdateMembershipRBACRoleBindingMethod = + GkeHubGrpc.getUpdateMembershipRBACRoleBindingMethod) + == null) { + GkeHubGrpc.getUpdateMembershipRBACRoleBindingMethod = + getUpdateMembershipRBACRoleBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateMembershipRBACRoleBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("UpdateMembershipRBACRoleBinding")) + .build(); + } + } + } + return getUpdateMembershipRBACRoleBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest, + com.google.longrunning.Operation> + getDeleteMembershipRBACRoleBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteMembershipRBACRoleBinding", + requestType = com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest, + com.google.longrunning.Operation> + getDeleteMembershipRBACRoleBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest, + com.google.longrunning.Operation> + getDeleteMembershipRBACRoleBindingMethod; + if ((getDeleteMembershipRBACRoleBindingMethod = + GkeHubGrpc.getDeleteMembershipRBACRoleBindingMethod) + == null) { + synchronized (GkeHubGrpc.class) { + if ((getDeleteMembershipRBACRoleBindingMethod = + GkeHubGrpc.getDeleteMembershipRBACRoleBindingMethod) + == null) { + GkeHubGrpc.getDeleteMembershipRBACRoleBindingMethod = + getDeleteMembershipRBACRoleBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteMembershipRBACRoleBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("DeleteMembershipRBACRoleBinding")) + .build(); + } + } + } + return getDeleteMembershipRBACRoleBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest, + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse> + getListMembershipRBACRoleBindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMembershipRBACRoleBindings", + requestType = com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest.class, + responseType = com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest, + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse> + getListMembershipRBACRoleBindingsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest, + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse> + getListMembershipRBACRoleBindingsMethod; + if ((getListMembershipRBACRoleBindingsMethod = + GkeHubGrpc.getListMembershipRBACRoleBindingsMethod) + == null) { + synchronized (GkeHubGrpc.class) { + if ((getListMembershipRBACRoleBindingsMethod = + GkeHubGrpc.getListMembershipRBACRoleBindingsMethod) + == null) { + GkeHubGrpc.getListMembershipRBACRoleBindingsMethod = + getListMembershipRBACRoleBindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListMembershipRBACRoleBindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("ListMembershipRBACRoleBindings")) + .build(); + } + } + } + return getListMembershipRBACRoleBindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest, + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse> + getGenerateMembershipRBACRoleBindingYAMLMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateMembershipRBACRoleBindingYAML", + requestType = com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest.class, + responseType = com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest, + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse> + getGenerateMembershipRBACRoleBindingYAMLMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest, + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse> + getGenerateMembershipRBACRoleBindingYAMLMethod; + if ((getGenerateMembershipRBACRoleBindingYAMLMethod = + GkeHubGrpc.getGenerateMembershipRBACRoleBindingYAMLMethod) + == null) { + synchronized (GkeHubGrpc.class) { + if ((getGenerateMembershipRBACRoleBindingYAMLMethod = + GkeHubGrpc.getGenerateMembershipRBACRoleBindingYAMLMethod) + == null) { + GkeHubGrpc.getGenerateMembershipRBACRoleBindingYAMLMethod = + getGenerateMembershipRBACRoleBindingYAMLMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "GenerateMembershipRBACRoleBindingYAML")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1 + .GenerateMembershipRBACRoleBindingYAMLRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1 + .GenerateMembershipRBACRoleBindingYAMLResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier( + "GenerateMembershipRBACRoleBindingYAML")) + .build(); + } + } + } + return getGenerateMembershipRBACRoleBindingYAMLMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static GkeHubStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubStub(channel, callOptions); + } + }; + return GkeHubStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static GkeHubBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubBlockingV2Stub(channel, callOptions); + } + }; + return GkeHubBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static GkeHubBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubBlockingStub(channel, callOptions); + } + }; + return GkeHubBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static GkeHubFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubFutureStub(channel, callOptions); + } + }; + return GkeHubFutureStub.newStub(factory, channel); + } + + /** + * + * + *
            +   * The GKE Hub service handles the registration of many Kubernetes clusters to
            +   * Google Cloud, and the management of multi-cluster features over those
            +   * clusters.
            +   * The GKE Hub service operates on the following resources:
            +   * * [Membership][google.cloud.gkehub.v1.Membership]
            +   * * [Feature][google.cloud.gkehub.v1.Feature]
            +   * GKE Hub is currently available in the global region and all regions in
            +   * https://cloud.google.com/compute/docs/regions-zones. Feature is only
            +   * available in global region while membership is global region and all the
            +   * regions.
            +   * **Membership management may be non-trivial:** it is recommended to use one
            +   * of the Google-provided client libraries or tools where possible when working
            +   * with Membership resources.
            +   * 
            + */ + public interface AsyncService { + + /** + * + * + *
            +     * Lists Memberships in a given project and location.
            +     * 
            + */ + default void listMemberships( + com.google.cloud.gkehub.v1.ListMembershipsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMembershipsMethod(), responseObserver); + } + + /** + * + * + *
            +     * Lists Memberships bound to a Scope. The response includes relevant
            +     * Memberships from all regions.
            +     * 
            + */ + default void listBoundMemberships( + com.google.cloud.gkehub.v1.ListBoundMembershipsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBoundMembershipsMethod(), responseObserver); + } + + /** + * + * + *
            +     * Lists Features in a given project and location.
            +     * 
            + */ + default void listFeatures( + com.google.cloud.gkehub.v1.ListFeaturesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFeaturesMethod(), responseObserver); + } + + /** + * + * + *
            +     * Gets the details of a Membership.
            +     * 
            + */ + default void getMembership( + com.google.cloud.gkehub.v1.GetMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMembershipMethod(), responseObserver); + } + + /** + * + * + *
            +     * Gets details of a single Feature.
            +     * 
            + */ + default void getFeature( + com.google.cloud.gkehub.v1.GetFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFeatureMethod(), responseObserver); + } + + /** + * + * + *
            +     * Creates a new Membership.
            +     * **This is currently only supported for GKE clusters on Google Cloud**.
            +     * To register other clusters, follow the instructions at
            +     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
            +     * 
            + */ + default void createMembership( + com.google.cloud.gkehub.v1.CreateMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateMembershipMethod(), responseObserver); + } + + /** + * + * + *
            +     * Adds a new Feature.
            +     * 
            + */ + default void createFeature( + com.google.cloud.gkehub.v1.CreateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateFeatureMethod(), responseObserver); + } + + /** + * + * + *
            +     * Removes a Membership.
            +     * **This is currently only supported for GKE clusters on Google Cloud**.
            +     * To unregister other clusters, follow the instructions at
            +     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
            +     * 
            + */ + default void deleteMembership( + com.google.cloud.gkehub.v1.DeleteMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteMembershipMethod(), responseObserver); + } + + /** + * + * + *
            +     * Removes a Feature.
            +     * 
            + */ + default void deleteFeature( + com.google.cloud.gkehub.v1.DeleteFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteFeatureMethod(), responseObserver); + } + + /** + * + * + *
            +     * Updates an existing Membership.
            +     * 
            + */ + default void updateMembership( + com.google.cloud.gkehub.v1.UpdateMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateMembershipMethod(), responseObserver); + } + + /** + * + * + *
            +     * Updates an existing Feature.
            +     * 
            + */ + default void updateFeature( + com.google.cloud.gkehub.v1.UpdateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateFeatureMethod(), responseObserver); + } + + /** + * + * + *
            +     * Generates the manifest for deployment of the GKE connect agent.
            +     * **This method is used internally by Google-provided libraries.**
            +     * Most clients should not need to call this method directly.
            +     * 
            + */ + default void generateConnectManifest( + com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateConnectManifestMethod(), responseObserver); + } + + /** + * + * + *
            +     * Creates a fleet.
            +     * 
            + */ + default void createFleet( + com.google.cloud.gkehub.v1.CreateFleetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateFleetMethod(), responseObserver); + } + + /** + * + * + *
            +     * Returns the details of a fleet.
            +     * 
            + */ + default void getFleet( + com.google.cloud.gkehub.v1.GetFleetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFleetMethod(), responseObserver); + } + + /** + * + * + *
            +     * Updates a fleet.
            +     * 
            + */ + default void updateFleet( + com.google.cloud.gkehub.v1.UpdateFleetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateFleetMethod(), responseObserver); + } + + /** + * + * + *
            +     * Removes a Fleet. There must be no memberships remaining in the Fleet.
            +     * 
            + */ + default void deleteFleet( + com.google.cloud.gkehub.v1.DeleteFleetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteFleetMethod(), responseObserver); + } + + /** + * + * + *
            +     * Returns all fleets within an organization or a project that the caller has
            +     * access to.
            +     * 
            + */ + default void listFleets( + com.google.cloud.gkehub.v1.ListFleetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFleetsMethod(), responseObserver); + } + + /** + * + * + *
            +     * Returns the details of a fleet namespace.
            +     * 
            + */ + default void getScopeNamespace( + com.google.cloud.gkehub.v1.GetScopeNamespaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetScopeNamespaceMethod(), responseObserver); + } + + /** + * + * + *
            +     * Creates a fleet namespace.
            +     * 
            + */ + default void createScopeNamespace( + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateScopeNamespaceMethod(), responseObserver); + } + + /** + * + * + *
            +     * Updates a fleet namespace.
            +     * 
            + */ + default void updateScopeNamespace( + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateScopeNamespaceMethod(), responseObserver); + } + + /** + * + * + *
            +     * Deletes a fleet namespace.
            +     * 
            + */ + default void deleteScopeNamespace( + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteScopeNamespaceMethod(), responseObserver); + } + + /** + * + * + *
            +     * Lists fleet namespaces.
            +     * 
            + */ + default void listScopeNamespaces( + com.google.cloud.gkehub.v1.ListScopeNamespacesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListScopeNamespacesMethod(), responseObserver); + } + + /** + * + * + *
            +     * Returns the details of a Scope RBACRoleBinding.
            +     * 
            + */ + default void getScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetScopeRBACRoleBindingMethod(), responseObserver); + } + + /** + * + * + *
            +     * Creates a Scope RBACRoleBinding.
            +     * 
            + */ + default void createScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateScopeRBACRoleBindingMethod(), responseObserver); + } + + /** + * + * + *
            +     * Updates a Scope RBACRoleBinding.
            +     * 
            + */ + default void updateScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateScopeRBACRoleBindingMethod(), responseObserver); + } + + /** + * + * + *
            +     * Deletes a Scope RBACRoleBinding.
            +     * 
            + */ + default void deleteScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteScopeRBACRoleBindingMethod(), responseObserver); + } + + /** + * + * + *
            +     * Lists all Scope RBACRoleBindings.
            +     * 
            + */ + default void listScopeRBACRoleBindings( + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListScopeRBACRoleBindingsMethod(), responseObserver); + } + + /** + * + * + *
            +     * Returns the details of a Scope.
            +     * 
            + */ + default void getScope( + com.google.cloud.gkehub.v1.GetScopeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetScopeMethod(), responseObserver); + } + + /** + * + * + *
            +     * Creates a Scope.
            +     * 
            + */ + default void createScope( + com.google.cloud.gkehub.v1.CreateScopeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateScopeMethod(), responseObserver); + } + + /** + * + * + *
            +     * Updates a scopes.
            +     * 
            + */ + default void updateScope( + com.google.cloud.gkehub.v1.UpdateScopeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateScopeMethod(), responseObserver); + } + + /** + * + * + *
            +     * Deletes a Scope.
            +     * 
            + */ + default void deleteScope( + com.google.cloud.gkehub.v1.DeleteScopeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteScopeMethod(), responseObserver); + } + + /** + * + * + *
            +     * Lists Scopes.
            +     * 
            + */ + default void listScopes( + com.google.cloud.gkehub.v1.ListScopesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListScopesMethod(), responseObserver); + } + + /** + * + * + *
            +     * Lists permitted Scopes.
            +     * 
            + */ + default void listPermittedScopes( + com.google.cloud.gkehub.v1.ListPermittedScopesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPermittedScopesMethod(), responseObserver); + } + + /** + * + * + *
            +     * Returns the details of a MembershipBinding.
            +     * 
            + */ + default void getMembershipBinding( + com.google.cloud.gkehub.v1.GetMembershipBindingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMembershipBindingMethod(), responseObserver); + } + + /** + * + * + *
            +     * Creates a MembershipBinding.
            +     * 
            + */ + default void createMembershipBinding( + com.google.cloud.gkehub.v1.CreateMembershipBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateMembershipBindingMethod(), responseObserver); + } + + /** + * + * + *
            +     * Updates a MembershipBinding.
            +     * 
            + */ + default void updateMembershipBinding( + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateMembershipBindingMethod(), responseObserver); + } + + /** + * + * + *
            +     * Deletes a MembershipBinding.
            +     * 
            + */ + default void deleteMembershipBinding( + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteMembershipBindingMethod(), responseObserver); + } + + /** + * + * + *
            +     * Lists MembershipBindings.
            +     * 
            + */ + default void listMembershipBindings( + com.google.cloud.gkehub.v1.ListMembershipBindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMembershipBindingsMethod(), responseObserver); + } + + /** + * + * + *
            +     * Returns the details of a Membership RBACRoleBinding.
            +     * 
            + */ + default void getMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMembershipRBACRoleBindingMethod(), responseObserver); + } + + /** + * + * + *
            +     * Creates a Membership RBACRoleBinding.
            +     * 
            + */ + default void createMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateMembershipRBACRoleBindingMethod(), responseObserver); + } + + /** + * + * + *
            +     * Updates a Membership RBACRoleBinding.
            +     * 
            + */ + default void updateMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateMembershipRBACRoleBindingMethod(), responseObserver); + } + + /** + * + * + *
            +     * Deletes a Membership RBACRoleBinding.
            +     * 
            + */ + default void deleteMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteMembershipRBACRoleBindingMethod(), responseObserver); + } + + /** + * + * + *
            +     * Lists all Membership RBACRoleBindings.
            +     * 
            + */ + default void listMembershipRBACRoleBindings( + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMembershipRBACRoleBindingsMethod(), responseObserver); + } + + /** + * + * + *
            +     * Generates a YAML of the  RBAC policies for the specified
            +     * RoleBinding and its associated impersonation resources.
            +     * 
            + */ + default void generateMembershipRBACRoleBindingYAML( + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateMembershipRBACRoleBindingYAMLMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service GkeHub. + * + *
            +   * The GKE Hub service handles the registration of many Kubernetes clusters to
            +   * Google Cloud, and the management of multi-cluster features over those
            +   * clusters.
            +   * The GKE Hub service operates on the following resources:
            +   * * [Membership][google.cloud.gkehub.v1.Membership]
            +   * * [Feature][google.cloud.gkehub.v1.Feature]
            +   * GKE Hub is currently available in the global region and all regions in
            +   * https://cloud.google.com/compute/docs/regions-zones. Feature is only
            +   * available in global region while membership is global region and all the
            +   * regions.
            +   * **Membership management may be non-trivial:** it is recommended to use one
            +   * of the Google-provided client libraries or tools where possible when working
            +   * with Membership resources.
            +   * 
            + */ + public abstract static class GkeHubImplBase implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return GkeHubGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service GkeHub. + * + *
            +   * The GKE Hub service handles the registration of many Kubernetes clusters to
            +   * Google Cloud, and the management of multi-cluster features over those
            +   * clusters.
            +   * The GKE Hub service operates on the following resources:
            +   * * [Membership][google.cloud.gkehub.v1.Membership]
            +   * * [Feature][google.cloud.gkehub.v1.Feature]
            +   * GKE Hub is currently available in the global region and all regions in
            +   * https://cloud.google.com/compute/docs/regions-zones. Feature is only
            +   * available in global region while membership is global region and all the
            +   * regions.
            +   * **Membership management may be non-trivial:** it is recommended to use one
            +   * of the Google-provided client libraries or tools where possible when working
            +   * with Membership resources.
            +   * 
            + */ + public static final class GkeHubStub extends io.grpc.stub.AbstractAsyncStub { + private GkeHubStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubStub(channel, callOptions); + } + + /** + * + * + *
            +     * Lists Memberships in a given project and location.
            +     * 
            + */ + public void listMemberships( + com.google.cloud.gkehub.v1.ListMembershipsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMembershipsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Lists Memberships bound to a Scope. The response includes relevant
            +     * Memberships from all regions.
            +     * 
            + */ + public void listBoundMemberships( + com.google.cloud.gkehub.v1.ListBoundMembershipsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBoundMembershipsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Lists Features in a given project and location.
            +     * 
            + */ + public void listFeatures( + com.google.cloud.gkehub.v1.ListFeaturesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFeaturesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Gets the details of a Membership.
            +     * 
            + */ + public void getMembership( + com.google.cloud.gkehub.v1.GetMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMembershipMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Gets details of a single Feature.
            +     * 
            + */ + public void getFeature( + com.google.cloud.gkehub.v1.GetFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFeatureMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
            +     * Creates a new Membership.
            +     * **This is currently only supported for GKE clusters on Google Cloud**.
            +     * To register other clusters, follow the instructions at
            +     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
            +     * 
            + */ + public void createMembership( + com.google.cloud.gkehub.v1.CreateMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMembershipMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Adds a new Feature.
            +     * 
            + */ + public void createFeature( + com.google.cloud.gkehub.v1.CreateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFeatureMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Removes a Membership.
            +     * **This is currently only supported for GKE clusters on Google Cloud**.
            +     * To unregister other clusters, follow the instructions at
            +     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
            +     * 
            + */ + public void deleteMembership( + com.google.cloud.gkehub.v1.DeleteMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteMembershipMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Removes a Feature.
            +     * 
            + */ + public void deleteFeature( + com.google.cloud.gkehub.v1.DeleteFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFeatureMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Updates an existing Membership.
            +     * 
            + */ + public void updateMembership( + com.google.cloud.gkehub.v1.UpdateMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateMembershipMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Updates an existing Feature.
            +     * 
            + */ + public void updateFeature( + com.google.cloud.gkehub.v1.UpdateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFeatureMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Generates the manifest for deployment of the GKE connect agent.
            +     * **This method is used internally by Google-provided libraries.**
            +     * Most clients should not need to call this method directly.
            +     * 
            + */ + public void generateConnectManifest( + com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateConnectManifestMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Creates a fleet.
            +     * 
            + */ + public void createFleet( + com.google.cloud.gkehub.v1.CreateFleetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFleetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Returns the details of a fleet.
            +     * 
            + */ + public void getFleet( + com.google.cloud.gkehub.v1.GetFleetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFleetMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
            +     * Updates a fleet.
            +     * 
            + */ + public void updateFleet( + com.google.cloud.gkehub.v1.UpdateFleetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFleetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Removes a Fleet. There must be no memberships remaining in the Fleet.
            +     * 
            + */ + public void deleteFleet( + com.google.cloud.gkehub.v1.DeleteFleetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFleetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Returns all fleets within an organization or a project that the caller has
            +     * access to.
            +     * 
            + */ + public void listFleets( + com.google.cloud.gkehub.v1.ListFleetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFleetsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
            +     * Returns the details of a fleet namespace.
            +     * 
            + */ + public void getScopeNamespace( + com.google.cloud.gkehub.v1.GetScopeNamespaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetScopeNamespaceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Creates a fleet namespace.
            +     * 
            + */ + public void createScopeNamespace( + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateScopeNamespaceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Updates a fleet namespace.
            +     * 
            + */ + public void updateScopeNamespace( + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateScopeNamespaceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Deletes a fleet namespace.
            +     * 
            + */ + public void deleteScopeNamespace( + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteScopeNamespaceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Lists fleet namespaces.
            +     * 
            + */ + public void listScopeNamespaces( + com.google.cloud.gkehub.v1.ListScopeNamespacesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListScopeNamespacesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Returns the details of a Scope RBACRoleBinding.
            +     * 
            + */ + public void getScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetScopeRBACRoleBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Creates a Scope RBACRoleBinding.
            +     * 
            + */ + public void createScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateScopeRBACRoleBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Updates a Scope RBACRoleBinding.
            +     * 
            + */ + public void updateScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateScopeRBACRoleBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Deletes a Scope RBACRoleBinding.
            +     * 
            + */ + public void deleteScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteScopeRBACRoleBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Lists all Scope RBACRoleBindings.
            +     * 
            + */ + public void listScopeRBACRoleBindings( + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListScopeRBACRoleBindingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Returns the details of a Scope.
            +     * 
            + */ + public void getScope( + com.google.cloud.gkehub.v1.GetScopeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetScopeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
            +     * Creates a Scope.
            +     * 
            + */ + public void createScope( + com.google.cloud.gkehub.v1.CreateScopeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateScopeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Updates a scopes.
            +     * 
            + */ + public void updateScope( + com.google.cloud.gkehub.v1.UpdateScopeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateScopeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Deletes a Scope.
            +     * 
            + */ + public void deleteScope( + com.google.cloud.gkehub.v1.DeleteScopeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteScopeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Lists Scopes.
            +     * 
            + */ + public void listScopes( + com.google.cloud.gkehub.v1.ListScopesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListScopesMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
            +     * Lists permitted Scopes.
            +     * 
            + */ + public void listPermittedScopes( + com.google.cloud.gkehub.v1.ListPermittedScopesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPermittedScopesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Returns the details of a MembershipBinding.
            +     * 
            + */ + public void getMembershipBinding( + com.google.cloud.gkehub.v1.GetMembershipBindingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMembershipBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Creates a MembershipBinding.
            +     * 
            + */ + public void createMembershipBinding( + com.google.cloud.gkehub.v1.CreateMembershipBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMembershipBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Updates a MembershipBinding.
            +     * 
            + */ + public void updateMembershipBinding( + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateMembershipBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Deletes a MembershipBinding.
            +     * 
            + */ + public void deleteMembershipBinding( + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteMembershipBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Lists MembershipBindings.
            +     * 
            + */ + public void listMembershipBindings( + com.google.cloud.gkehub.v1.ListMembershipBindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMembershipBindingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Returns the details of a Membership RBACRoleBinding.
            +     * 
            + */ + public void getMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMembershipRBACRoleBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Creates a Membership RBACRoleBinding.
            +     * 
            + */ + public void createMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMembershipRBACRoleBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Updates a Membership RBACRoleBinding.
            +     * 
            + */ + public void updateMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateMembershipRBACRoleBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Deletes a Membership RBACRoleBinding.
            +     * 
            + */ + public void deleteMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteMembershipRBACRoleBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Lists all Membership RBACRoleBindings.
            +     * 
            + */ + public void listMembershipRBACRoleBindings( + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMembershipRBACRoleBindingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Generates a YAML of the  RBAC policies for the specified
            +     * RoleBinding and its associated impersonation resources.
            +     * 
            + */ + public void generateMembershipRBACRoleBindingYAML( + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateMembershipRBACRoleBindingYAMLMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service GkeHub. + * + *
            +   * The GKE Hub service handles the registration of many Kubernetes clusters to
            +   * Google Cloud, and the management of multi-cluster features over those
            +   * clusters.
            +   * The GKE Hub service operates on the following resources:
            +   * * [Membership][google.cloud.gkehub.v1.Membership]
            +   * * [Feature][google.cloud.gkehub.v1.Feature]
            +   * GKE Hub is currently available in the global region and all regions in
            +   * https://cloud.google.com/compute/docs/regions-zones. Feature is only
            +   * available in global region while membership is global region and all the
            +   * regions.
            +   * **Membership management may be non-trivial:** it is recommended to use one
            +   * of the Google-provided client libraries or tools where possible when working
            +   * with Membership resources.
            +   * 
            + */ + public static final class GkeHubBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private GkeHubBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
            +     * Lists Memberships in a given project and location.
            +     * 
            + */ + public com.google.cloud.gkehub.v1.ListMembershipsResponse listMemberships( + com.google.cloud.gkehub.v1.ListMembershipsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListMembershipsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists Memberships bound to a Scope. The response includes relevant
            +     * Memberships from all regions.
            +     * 
            + */ + public com.google.cloud.gkehub.v1.ListBoundMembershipsResponse listBoundMemberships( + com.google.cloud.gkehub.v1.ListBoundMembershipsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListBoundMembershipsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists Features in a given project and location.
            +     * 
            + */ + public com.google.cloud.gkehub.v1.ListFeaturesResponse listFeatures( + com.google.cloud.gkehub.v1.ListFeaturesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListFeaturesMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Gets the details of a Membership.
            +     * 
            + */ + public com.google.cloud.gkehub.v1.Membership getMembership( + com.google.cloud.gkehub.v1.GetMembershipRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetMembershipMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Gets details of a single Feature.
            +     * 
            + */ + public com.google.cloud.gkehub.v1.Feature getFeature( + com.google.cloud.gkehub.v1.GetFeatureRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetFeatureMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Creates a new Membership.
            +     * **This is currently only supported for GKE clusters on Google Cloud**.
            +     * To register other clusters, follow the instructions at
            +     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
            +     * 
            + */ + public com.google.longrunning.Operation createMembership( + com.google.cloud.gkehub.v1.CreateMembershipRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateMembershipMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Adds a new Feature.
            +     * 
            + */ + public com.google.longrunning.Operation createFeature( + com.google.cloud.gkehub.v1.CreateFeatureRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateFeatureMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Removes a Membership.
            +     * **This is currently only supported for GKE clusters on Google Cloud**.
            +     * To unregister other clusters, follow the instructions at
            +     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
            +     * 
            + */ + public com.google.longrunning.Operation deleteMembership( + com.google.cloud.gkehub.v1.DeleteMembershipRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteMembershipMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Removes a Feature.
            +     * 
            + */ + public com.google.longrunning.Operation deleteFeature( + com.google.cloud.gkehub.v1.DeleteFeatureRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteFeatureMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates an existing Membership.
            +     * 
            + */ + public com.google.longrunning.Operation updateMembership( + com.google.cloud.gkehub.v1.UpdateMembershipRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateMembershipMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates an existing Feature.
            +     * 
            + */ + public com.google.longrunning.Operation updateFeature( + com.google.cloud.gkehub.v1.UpdateFeatureRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateFeatureMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Generates the manifest for deployment of the GKE connect agent.
            +     * **This method is used internally by Google-provided libraries.**
            +     * Most clients should not need to call this method directly.
            +     * 
            + */ + public com.google.cloud.gkehub.v1.GenerateConnectManifestResponse generateConnectManifest( + com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGenerateConnectManifestMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Creates a fleet.
            +     * 
            + */ + public com.google.longrunning.Operation createFleet( + com.google.cloud.gkehub.v1.CreateFleetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateFleetMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns the details of a fleet.
            +     * 
            + */ + public com.google.cloud.gkehub.v1.Fleet getFleet( + com.google.cloud.gkehub.v1.GetFleetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetFleetMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates a fleet.
            +     * 
            + */ + public com.google.longrunning.Operation updateFleet( + com.google.cloud.gkehub.v1.UpdateFleetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateFleetMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Removes a Fleet. There must be no memberships remaining in the Fleet.
            +     * 
            + */ + public com.google.longrunning.Operation deleteFleet( + com.google.cloud.gkehub.v1.DeleteFleetRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteFleetMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns all fleets within an organization or a project that the caller has
            +     * access to.
            +     * 
            + */ + public com.google.cloud.gkehub.v1.ListFleetsResponse listFleets( + com.google.cloud.gkehub.v1.ListFleetsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListFleetsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns the details of a fleet namespace.
            +     * 
            + */ + public com.google.cloud.gkehub.v1.Namespace getScopeNamespace( + com.google.cloud.gkehub.v1.GetScopeNamespaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetScopeNamespaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Creates a fleet namespace.
            +     * 
            + */ + public com.google.longrunning.Operation createScopeNamespace( + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateScopeNamespaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates a fleet namespace.
            +     * 
            + */ + public com.google.longrunning.Operation updateScopeNamespace( + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateScopeNamespaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a fleet namespace.
            +     * 
            + */ + public com.google.longrunning.Operation deleteScopeNamespace( + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteScopeNamespaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists fleet namespaces.
            +     * 
            + */ + public com.google.cloud.gkehub.v1.ListScopeNamespacesResponse listScopeNamespaces( + com.google.cloud.gkehub.v1.ListScopeNamespacesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListScopeNamespacesMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns the details of a Scope RBACRoleBinding.
            +     * 
            + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding getScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetScopeRBACRoleBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Creates a Scope RBACRoleBinding.
            +     * 
            + */ + public com.google.longrunning.Operation createScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateScopeRBACRoleBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates a Scope RBACRoleBinding.
            +     * 
            + */ + public com.google.longrunning.Operation updateScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateScopeRBACRoleBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a Scope RBACRoleBinding.
            +     * 
            + */ + public com.google.longrunning.Operation deleteScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteScopeRBACRoleBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists all Scope RBACRoleBindings.
            +     * 
            + */ + public com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse listScopeRBACRoleBindings( + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListScopeRBACRoleBindingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns the details of a Scope.
            +     * 
            + */ + public com.google.cloud.gkehub.v1.Scope getScope( + com.google.cloud.gkehub.v1.GetScopeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetScopeMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Creates a Scope.
            +     * 
            + */ + public com.google.longrunning.Operation createScope( + com.google.cloud.gkehub.v1.CreateScopeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateScopeMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates a scopes.
            +     * 
            + */ + public com.google.longrunning.Operation updateScope( + com.google.cloud.gkehub.v1.UpdateScopeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateScopeMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a Scope.
            +     * 
            + */ + public com.google.longrunning.Operation deleteScope( + com.google.cloud.gkehub.v1.DeleteScopeRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteScopeMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists Scopes.
            +     * 
            + */ + public com.google.cloud.gkehub.v1.ListScopesResponse listScopes( + com.google.cloud.gkehub.v1.ListScopesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListScopesMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists permitted Scopes.
            +     * 
            + */ + public com.google.cloud.gkehub.v1.ListPermittedScopesResponse listPermittedScopes( + com.google.cloud.gkehub.v1.ListPermittedScopesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListPermittedScopesMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns the details of a MembershipBinding.
            +     * 
            + */ + public com.google.cloud.gkehub.v1.MembershipBinding getMembershipBinding( + com.google.cloud.gkehub.v1.GetMembershipBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetMembershipBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Creates a MembershipBinding.
            +     * 
            + */ + public com.google.longrunning.Operation createMembershipBinding( + com.google.cloud.gkehub.v1.CreateMembershipBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateMembershipBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates a MembershipBinding.
            +     * 
            + */ + public com.google.longrunning.Operation updateMembershipBinding( + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateMembershipBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a MembershipBinding.
            +     * 
            + */ + public com.google.longrunning.Operation deleteMembershipBinding( + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteMembershipBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists MembershipBindings.
            +     * 
            + */ + public com.google.cloud.gkehub.v1.ListMembershipBindingsResponse listMembershipBindings( + com.google.cloud.gkehub.v1.ListMembershipBindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListMembershipBindingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns the details of a Membership RBACRoleBinding.
            +     * 
            + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding getMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetMembershipRBACRoleBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Creates a Membership RBACRoleBinding.
            +     * 
            + */ + public com.google.longrunning.Operation createMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateMembershipRBACRoleBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates a Membership RBACRoleBinding.
            +     * 
            + */ + public com.google.longrunning.Operation updateMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateMembershipRBACRoleBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a Membership RBACRoleBinding.
            +     * 
            + */ + public com.google.longrunning.Operation deleteMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteMembershipRBACRoleBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists all Membership RBACRoleBindings.
            +     * 
            + */ + public com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse + listMembershipRBACRoleBindings( + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListMembershipRBACRoleBindingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Generates a YAML of the  RBAC policies for the specified
            +     * RoleBinding and its associated impersonation resources.
            +     * 
            + */ + public com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse + generateMembershipRBACRoleBindingYAML( + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), + getGenerateMembershipRBACRoleBindingYAMLMethod(), + getCallOptions(), + request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service GkeHub. + * + *
            +   * The GKE Hub service handles the registration of many Kubernetes clusters to
            +   * Google Cloud, and the management of multi-cluster features over those
            +   * clusters.
            +   * The GKE Hub service operates on the following resources:
            +   * * [Membership][google.cloud.gkehub.v1.Membership]
            +   * * [Feature][google.cloud.gkehub.v1.Feature]
            +   * GKE Hub is currently available in the global region and all regions in
            +   * https://cloud.google.com/compute/docs/regions-zones. Feature is only
            +   * available in global region while membership is global region and all the
            +   * regions.
            +   * **Membership management may be non-trivial:** it is recommended to use one
            +   * of the Google-provided client libraries or tools where possible when working
            +   * with Membership resources.
            +   * 
            + */ + public static final class GkeHubBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private GkeHubBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubBlockingStub(channel, callOptions); + } + + /** + * + * + *
            +     * Lists Memberships in a given project and location.
            +     * 
            + */ + public com.google.cloud.gkehub.v1.ListMembershipsResponse listMemberships( + com.google.cloud.gkehub.v1.ListMembershipsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMembershipsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists Memberships bound to a Scope. The response includes relevant
            +     * Memberships from all regions.
            +     * 
            + */ + public com.google.cloud.gkehub.v1.ListBoundMembershipsResponse listBoundMemberships( + com.google.cloud.gkehub.v1.ListBoundMembershipsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBoundMembershipsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists Features in a given project and location.
            +     * 
            + */ + public com.google.cloud.gkehub.v1.ListFeaturesResponse listFeatures( + com.google.cloud.gkehub.v1.ListFeaturesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFeaturesMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Gets the details of a Membership.
            +     * 
            + */ + public com.google.cloud.gkehub.v1.Membership getMembership( + com.google.cloud.gkehub.v1.GetMembershipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMembershipMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Gets details of a single Feature.
            +     * 
            + */ + public com.google.cloud.gkehub.v1.Feature getFeature( + com.google.cloud.gkehub.v1.GetFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFeatureMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Creates a new Membership.
            +     * **This is currently only supported for GKE clusters on Google Cloud**.
            +     * To register other clusters, follow the instructions at
            +     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
            +     * 
            + */ + public com.google.longrunning.Operation createMembership( + com.google.cloud.gkehub.v1.CreateMembershipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMembershipMethod(), getCallOptions(), request); } /** @@ -669,11 +4299,10 @@ default void createMembership( * Adds a new Feature. * */ - default void createFeature( - com.google.cloud.gkehub.v1.CreateFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateFeatureMethod(), responseObserver); + public com.google.longrunning.Operation createFeature( + com.google.cloud.gkehub.v1.CreateFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFeatureMethod(), getCallOptions(), request); } /** @@ -686,11 +4315,10 @@ default void createFeature( * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster. * */ - default void deleteMembership( - com.google.cloud.gkehub.v1.DeleteMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteMembershipMethod(), responseObserver); + public com.google.longrunning.Operation deleteMembership( + com.google.cloud.gkehub.v1.DeleteMembershipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteMembershipMethod(), getCallOptions(), request); } /** @@ -700,11 +4328,10 @@ default void deleteMembership( * Removes a Feature. * */ - default void deleteFeature( - com.google.cloud.gkehub.v1.DeleteFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteFeatureMethod(), responseObserver); + public com.google.longrunning.Operation deleteFeature( + com.google.cloud.gkehub.v1.DeleteFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFeatureMethod(), getCallOptions(), request); } /** @@ -714,11 +4341,10 @@ default void deleteFeature( * Updates an existing Membership. * */ - default void updateMembership( - com.google.cloud.gkehub.v1.UpdateMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateMembershipMethod(), responseObserver); + public com.google.longrunning.Operation updateMembership( + com.google.cloud.gkehub.v1.UpdateMembershipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateMembershipMethod(), getCallOptions(), request); } /** @@ -728,11 +4354,10 @@ default void updateMembership( * Updates an existing Feature. * */ - default void updateFeature( - com.google.cloud.gkehub.v1.UpdateFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateFeatureMethod(), responseObserver); + public com.google.longrunning.Operation updateFeature( + com.google.cloud.gkehub.v1.UpdateFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFeatureMethod(), getCallOptions(), request); } /** @@ -744,259 +4369,438 @@ default void updateFeature( * Most clients should not need to call this method directly. * */ - default void generateConnectManifest( - com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGenerateConnectManifestMethod(), responseObserver); + public com.google.cloud.gkehub.v1.GenerateConnectManifestResponse generateConnectManifest( + com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateConnectManifestMethod(), getCallOptions(), request); } - } - /** - * Base class for the server implementation of the service GkeHub. - * - *
            -   * The GKE Hub service handles the registration of many Kubernetes clusters to
            -   * Google Cloud, and the management of multi-cluster features over those
            -   * clusters.
            -   * The GKE Hub service operates on the following resources:
            -   * * [Membership][google.cloud.gkehub.v1.Membership]
            -   * * [Feature][google.cloud.gkehub.v1.Feature]
            -   * GKE Hub is currently available in the global region and all regions in
            -   * https://cloud.google.com/compute/docs/regions-zones. Feature is only
            -   * available in global region while membership is global region and all the
            -   * regions.
            -   * **Membership management may be non-trivial:** it is recommended to use one
            -   * of the Google-provided client libraries or tools where possible when working
            -   * with Membership resources.
            -   * 
            - */ - public abstract static class GkeHubImplBase implements io.grpc.BindableService, AsyncService { + /** + * + * + *
            +     * Creates a fleet.
            +     * 
            + */ + public com.google.longrunning.Operation createFleet( + com.google.cloud.gkehub.v1.CreateFleetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFleetMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns the details of a fleet.
            +     * 
            + */ + public com.google.cloud.gkehub.v1.Fleet getFleet( + com.google.cloud.gkehub.v1.GetFleetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFleetMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates a fleet.
            +     * 
            + */ + public com.google.longrunning.Operation updateFleet( + com.google.cloud.gkehub.v1.UpdateFleetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFleetMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Removes a Fleet. There must be no memberships remaining in the Fleet.
            +     * 
            + */ + public com.google.longrunning.Operation deleteFleet( + com.google.cloud.gkehub.v1.DeleteFleetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFleetMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns all fleets within an organization or a project that the caller has
            +     * access to.
            +     * 
            + */ + public com.google.cloud.gkehub.v1.ListFleetsResponse listFleets( + com.google.cloud.gkehub.v1.ListFleetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFleetsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns the details of a fleet namespace.
            +     * 
            + */ + public com.google.cloud.gkehub.v1.Namespace getScopeNamespace( + com.google.cloud.gkehub.v1.GetScopeNamespaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetScopeNamespaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Creates a fleet namespace.
            +     * 
            + */ + public com.google.longrunning.Operation createScopeNamespace( + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateScopeNamespaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates a fleet namespace.
            +     * 
            + */ + public com.google.longrunning.Operation updateScopeNamespace( + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateScopeNamespaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a fleet namespace.
            +     * 
            + */ + public com.google.longrunning.Operation deleteScopeNamespace( + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteScopeNamespaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists fleet namespaces.
            +     * 
            + */ + public com.google.cloud.gkehub.v1.ListScopeNamespacesResponse listScopeNamespaces( + com.google.cloud.gkehub.v1.ListScopeNamespacesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListScopeNamespacesMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns the details of a Scope RBACRoleBinding.
            +     * 
            + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding getScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetScopeRBACRoleBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Creates a Scope RBACRoleBinding.
            +     * 
            + */ + public com.google.longrunning.Operation createScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateScopeRBACRoleBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates a Scope RBACRoleBinding.
            +     * 
            + */ + public com.google.longrunning.Operation updateScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateScopeRBACRoleBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a Scope RBACRoleBinding.
            +     * 
            + */ + public com.google.longrunning.Operation deleteScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteScopeRBACRoleBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists all Scope RBACRoleBindings.
            +     * 
            + */ + public com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse listScopeRBACRoleBindings( + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListScopeRBACRoleBindingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns the details of a Scope.
            +     * 
            + */ + public com.google.cloud.gkehub.v1.Scope getScope( + com.google.cloud.gkehub.v1.GetScopeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetScopeMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Creates a Scope.
            +     * 
            + */ + public com.google.longrunning.Operation createScope( + com.google.cloud.gkehub.v1.CreateScopeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateScopeMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates a scopes.
            +     * 
            + */ + public com.google.longrunning.Operation updateScope( + com.google.cloud.gkehub.v1.UpdateScopeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateScopeMethod(), getCallOptions(), request); + } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return GkeHubGrpc.bindService(this); + /** + * + * + *
            +     * Deletes a Scope.
            +     * 
            + */ + public com.google.longrunning.Operation deleteScope( + com.google.cloud.gkehub.v1.DeleteScopeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteScopeMethod(), getCallOptions(), request); } - } - /** - * A stub to allow clients to do asynchronous rpc calls to service GkeHub. - * - *
            -   * The GKE Hub service handles the registration of many Kubernetes clusters to
            -   * Google Cloud, and the management of multi-cluster features over those
            -   * clusters.
            -   * The GKE Hub service operates on the following resources:
            -   * * [Membership][google.cloud.gkehub.v1.Membership]
            -   * * [Feature][google.cloud.gkehub.v1.Feature]
            -   * GKE Hub is currently available in the global region and all regions in
            -   * https://cloud.google.com/compute/docs/regions-zones. Feature is only
            -   * available in global region while membership is global region and all the
            -   * regions.
            -   * **Membership management may be non-trivial:** it is recommended to use one
            -   * of the Google-provided client libraries or tools where possible when working
            -   * with Membership resources.
            -   * 
            - */ - public static final class GkeHubStub extends io.grpc.stub.AbstractAsyncStub { - private GkeHubStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); + /** + * + * + *
            +     * Lists Scopes.
            +     * 
            + */ + public com.google.cloud.gkehub.v1.ListScopesResponse listScopes( + com.google.cloud.gkehub.v1.ListScopesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListScopesMethod(), getCallOptions(), request); } - @java.lang.Override - protected GkeHubStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubStub(channel, callOptions); + /** + * + * + *
            +     * Lists permitted Scopes.
            +     * 
            + */ + public com.google.cloud.gkehub.v1.ListPermittedScopesResponse listPermittedScopes( + com.google.cloud.gkehub.v1.ListPermittedScopesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPermittedScopesMethod(), getCallOptions(), request); } /** * * *
            -     * Lists Memberships in a given project and location.
            +     * Returns the details of a MembershipBinding.
                  * 
            */ - public void listMemberships( - com.google.cloud.gkehub.v1.ListMembershipsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListMembershipsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.gkehub.v1.MembershipBinding getMembershipBinding( + com.google.cloud.gkehub.v1.GetMembershipBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMembershipBindingMethod(), getCallOptions(), request); } /** * * *
            -     * Lists Features in a given project and location.
            +     * Creates a MembershipBinding.
                  * 
            */ - public void listFeatures( - com.google.cloud.gkehub.v1.ListFeaturesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFeaturesMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation createMembershipBinding( + com.google.cloud.gkehub.v1.CreateMembershipBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMembershipBindingMethod(), getCallOptions(), request); } /** * * *
            -     * Gets the details of a Membership.
            +     * Updates a MembershipBinding.
                  * 
            */ - public void getMembership( - com.google.cloud.gkehub.v1.GetMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetMembershipMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation updateMembershipBinding( + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateMembershipBindingMethod(), getCallOptions(), request); } /** * * *
            -     * Gets details of a single Feature.
            +     * Deletes a MembershipBinding.
                  * 
            */ - public void getFeature( - com.google.cloud.gkehub.v1.GetFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFeatureMethod(), getCallOptions()), request, responseObserver); + public com.google.longrunning.Operation deleteMembershipBinding( + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteMembershipBindingMethod(), getCallOptions(), request); } /** * * *
            -     * Creates a new Membership.
            -     * **This is currently only supported for GKE clusters on Google Cloud**.
            -     * To register other clusters, follow the instructions at
            -     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
            +     * Lists MembershipBindings.
                  * 
            */ - public void createMembership( - com.google.cloud.gkehub.v1.CreateMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateMembershipMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.gkehub.v1.ListMembershipBindingsResponse listMembershipBindings( + com.google.cloud.gkehub.v1.ListMembershipBindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMembershipBindingsMethod(), getCallOptions(), request); } /** * * *
            -     * Adds a new Feature.
            +     * Returns the details of a Membership RBACRoleBinding.
                  * 
            */ - public void createFeature( - com.google.cloud.gkehub.v1.CreateFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateFeatureMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.gkehub.v1.RBACRoleBinding getMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMembershipRBACRoleBindingMethod(), getCallOptions(), request); } /** * * *
            -     * Removes a Membership.
            -     * **This is currently only supported for GKE clusters on Google Cloud**.
            -     * To unregister other clusters, follow the instructions at
            -     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
            +     * Creates a Membership RBACRoleBinding.
                  * 
            */ - public void deleteMembership( - com.google.cloud.gkehub.v1.DeleteMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteMembershipMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation createMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMembershipRBACRoleBindingMethod(), getCallOptions(), request); } /** * * *
            -     * Removes a Feature.
            +     * Updates a Membership RBACRoleBinding.
                  * 
            */ - public void deleteFeature( - com.google.cloud.gkehub.v1.DeleteFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteFeatureMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation updateMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateMembershipRBACRoleBindingMethod(), getCallOptions(), request); } /** * * *
            -     * Updates an existing Membership.
            +     * Deletes a Membership RBACRoleBinding.
                  * 
            */ - public void updateMembership( - com.google.cloud.gkehub.v1.UpdateMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateMembershipMethod(), getCallOptions()), - request, - responseObserver); + public com.google.longrunning.Operation deleteMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteMembershipRBACRoleBindingMethod(), getCallOptions(), request); } /** * * *
            -     * Updates an existing Feature.
            +     * Lists all Membership RBACRoleBindings.
                  * 
            */ - public void updateFeature( - com.google.cloud.gkehub.v1.UpdateFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateFeatureMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse + listMembershipRBACRoleBindings( + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMembershipRBACRoleBindingsMethod(), getCallOptions(), request); } /** * * *
            -     * Generates the manifest for deployment of the GKE connect agent.
            -     * **This method is used internally by Google-provided libraries.**
            -     * Most clients should not need to call this method directly.
            +     * Generates a YAML of the  RBAC policies for the specified
            +     * RoleBinding and its associated impersonation resources.
                  * 
            */ - public void generateConnectManifest( - com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateConnectManifestMethod(), getCallOptions()), - request, - responseObserver); + public com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse + generateMembershipRBACRoleBindingYAML( + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getGenerateMembershipRBACRoleBindingYAMLMethod(), + getCallOptions(), + request); } } /** - * A stub to allow clients to do synchronous rpc calls to service GkeHub. + * A stub to allow clients to do ListenableFuture-style rpc calls to service GkeHub. * *
                * The GKE Hub service handles the registration of many Kubernetes clusters to
            @@ -1014,548 +4818,675 @@ public void generateConnectManifest(
                * with Membership resources.
                * 
            */ - public static final class GkeHubBlockingV2Stub - extends io.grpc.stub.AbstractBlockingStub { - private GkeHubBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class GkeHubFutureStub + extends io.grpc.stub.AbstractFutureStub { + private GkeHubFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected GkeHubBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubBlockingV2Stub(channel, callOptions); + protected GkeHubFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubFutureStub(channel, callOptions); + } + + /** + * + * + *
            +     * Lists Memberships in a given project and location.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1.ListMembershipsResponse> + listMemberships(com.google.cloud.gkehub.v1.ListMembershipsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMembershipsMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Lists Memberships bound to a Scope. The response includes relevant
            +     * Memberships from all regions.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1.ListBoundMembershipsResponse> + listBoundMemberships(com.google.cloud.gkehub.v1.ListBoundMembershipsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBoundMembershipsMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Lists Features in a given project and location.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1.ListFeaturesResponse> + listFeatures(com.google.cloud.gkehub.v1.ListFeaturesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFeaturesMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Gets the details of a Membership.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + getMembership(com.google.cloud.gkehub.v1.GetMembershipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMembershipMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Gets details of a single Feature.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + getFeature(com.google.cloud.gkehub.v1.GetFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFeatureMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Creates a new Membership.
            +     * **This is currently only supported for GKE clusters on Google Cloud**.
            +     * To register other clusters, follow the instructions at
            +     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + createMembership(com.google.cloud.gkehub.v1.CreateMembershipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateMembershipMethod(), getCallOptions()), request); } /** * * *
            -     * Lists Memberships in a given project and location.
            +     * Adds a new Feature.
                  * 
            */ - public com.google.cloud.gkehub.v1.ListMembershipsResponse listMemberships( - com.google.cloud.gkehub.v1.ListMembershipsRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getListMembershipsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + createFeature(com.google.cloud.gkehub.v1.CreateFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFeatureMethod(), getCallOptions()), request); } /** * * *
            -     * Lists Features in a given project and location.
            +     * Removes a Membership.
            +     * **This is currently only supported for GKE clusters on Google Cloud**.
            +     * To unregister other clusters, follow the instructions at
            +     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
                  * 
            */ - public com.google.cloud.gkehub.v1.ListFeaturesResponse listFeatures( - com.google.cloud.gkehub.v1.ListFeaturesRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getListFeaturesMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteMembership(com.google.cloud.gkehub.v1.DeleteMembershipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteMembershipMethod(), getCallOptions()), request); } /** * * *
            -     * Gets the details of a Membership.
            +     * Removes a Feature.
                  * 
            */ - public com.google.cloud.gkehub.v1.Membership getMembership( - com.google.cloud.gkehub.v1.GetMembershipRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetMembershipMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteFeature(com.google.cloud.gkehub.v1.DeleteFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFeatureMethod(), getCallOptions()), request); } /** * * *
            -     * Gets details of a single Feature.
            +     * Updates an existing Membership.
                  * 
            */ - public com.google.cloud.gkehub.v1.Feature getFeature( - com.google.cloud.gkehub.v1.GetFeatureRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetFeatureMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + updateMembership(com.google.cloud.gkehub.v1.UpdateMembershipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateMembershipMethod(), getCallOptions()), request); } /** * * *
            -     * Creates a new Membership.
            -     * **This is currently only supported for GKE clusters on Google Cloud**.
            -     * To register other clusters, follow the instructions at
            -     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
            +     * Updates an existing Feature.
                  * 
            */ - public com.google.longrunning.Operation createMembership( - com.google.cloud.gkehub.v1.CreateMembershipRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getCreateMembershipMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + updateFeature(com.google.cloud.gkehub.v1.UpdateFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFeatureMethod(), getCallOptions()), request); } /** * * *
            -     * Adds a new Feature.
            +     * Generates the manifest for deployment of the GKE connect agent.
            +     * **This method is used internally by Google-provided libraries.**
            +     * Most clients should not need to call this method directly.
                  * 
            */ - public com.google.longrunning.Operation createFeature( - com.google.cloud.gkehub.v1.CreateFeatureRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getCreateFeatureMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1.GenerateConnectManifestResponse> + generateConnectManifest(com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateConnectManifestMethod(), getCallOptions()), request); } /** * * *
            -     * Removes a Membership.
            -     * **This is currently only supported for GKE clusters on Google Cloud**.
            -     * To unregister other clusters, follow the instructions at
            -     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
            +     * Creates a fleet.
                  * 
            */ - public com.google.longrunning.Operation deleteMembership( - com.google.cloud.gkehub.v1.DeleteMembershipRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getDeleteMembershipMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + createFleet(com.google.cloud.gkehub.v1.CreateFleetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFleetMethod(), getCallOptions()), request); } /** * * *
            -     * Removes a Feature.
            +     * Returns the details of a fleet.
                  * 
            */ - public com.google.longrunning.Operation deleteFeature( - com.google.cloud.gkehub.v1.DeleteFeatureRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getDeleteFeatureMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + getFleet(com.google.cloud.gkehub.v1.GetFleetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFleetMethod(), getCallOptions()), request); } /** * * *
            -     * Updates an existing Membership.
            +     * Updates a fleet.
                  * 
            */ - public com.google.longrunning.Operation updateMembership( - com.google.cloud.gkehub.v1.UpdateMembershipRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getUpdateMembershipMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + updateFleet(com.google.cloud.gkehub.v1.UpdateFleetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFleetMethod(), getCallOptions()), request); } /** * * *
            -     * Updates an existing Feature.
            +     * Removes a Fleet. There must be no memberships remaining in the Fleet.
                  * 
            */ - public com.google.longrunning.Operation updateFeature( - com.google.cloud.gkehub.v1.UpdateFeatureRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getUpdateFeatureMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteFleet(com.google.cloud.gkehub.v1.DeleteFleetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFleetMethod(), getCallOptions()), request); } /** * * *
            -     * Generates the manifest for deployment of the GKE connect agent.
            -     * **This method is used internally by Google-provided libraries.**
            -     * Most clients should not need to call this method directly.
            +     * Returns all fleets within an organization or a project that the caller has
            +     * access to.
                  * 
            */ - public com.google.cloud.gkehub.v1.GenerateConnectManifestResponse generateConnectManifest( - com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGenerateConnectManifestMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do limited synchronous rpc calls to service GkeHub. - * - *
            -   * The GKE Hub service handles the registration of many Kubernetes clusters to
            -   * Google Cloud, and the management of multi-cluster features over those
            -   * clusters.
            -   * The GKE Hub service operates on the following resources:
            -   * * [Membership][google.cloud.gkehub.v1.Membership]
            -   * * [Feature][google.cloud.gkehub.v1.Feature]
            -   * GKE Hub is currently available in the global region and all regions in
            -   * https://cloud.google.com/compute/docs/regions-zones. Feature is only
            -   * available in global region while membership is global region and all the
            -   * regions.
            -   * **Membership management may be non-trivial:** it is recommended to use one
            -   * of the Google-provided client libraries or tools where possible when working
            -   * with Membership resources.
            -   * 
            - */ - public static final class GkeHubBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private GkeHubBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1.ListFleetsResponse> + listFleets(com.google.cloud.gkehub.v1.ListFleetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFleetsMethod(), getCallOptions()), request); } - @java.lang.Override - protected GkeHubBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubBlockingStub(channel, callOptions); + /** + * + * + *
            +     * Returns the details of a fleet namespace.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + getScopeNamespace(com.google.cloud.gkehub.v1.GetScopeNamespaceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetScopeNamespaceMethod(), getCallOptions()), request); } /** * * *
            -     * Lists Memberships in a given project and location.
            +     * Creates a fleet namespace.
                  * 
            */ - public com.google.cloud.gkehub.v1.ListMembershipsResponse listMemberships( - com.google.cloud.gkehub.v1.ListMembershipsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListMembershipsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + createScopeNamespace(com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateScopeNamespaceMethod(), getCallOptions()), request); } /** * * *
            -     * Lists Features in a given project and location.
            +     * Updates a fleet namespace.
                  * 
            */ - public com.google.cloud.gkehub.v1.ListFeaturesResponse listFeatures( - com.google.cloud.gkehub.v1.ListFeaturesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFeaturesMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + updateScopeNamespace(com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateScopeNamespaceMethod(), getCallOptions()), request); } /** * * *
            -     * Gets the details of a Membership.
            +     * Deletes a fleet namespace.
                  * 
            */ - public com.google.cloud.gkehub.v1.Membership getMembership( - com.google.cloud.gkehub.v1.GetMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetMembershipMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteScopeNamespace(com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteScopeNamespaceMethod(), getCallOptions()), request); } /** * * *
            -     * Gets details of a single Feature.
            +     * Lists fleet namespaces.
                  * 
            */ - public com.google.cloud.gkehub.v1.Feature getFeature( - com.google.cloud.gkehub.v1.GetFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFeatureMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1.ListScopeNamespacesResponse> + listScopeNamespaces(com.google.cloud.gkehub.v1.ListScopeNamespacesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListScopeNamespacesMethod(), getCallOptions()), request); } /** * * *
            -     * Creates a new Membership.
            -     * **This is currently only supported for GKE clusters on Google Cloud**.
            -     * To register other clusters, follow the instructions at
            -     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
            +     * Returns the details of a Scope RBACRoleBinding.
                  * 
            */ - public com.google.longrunning.Operation createMembership( - com.google.cloud.gkehub.v1.CreateMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateMembershipMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1.RBACRoleBinding> + getScopeRBACRoleBinding(com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetScopeRBACRoleBindingMethod(), getCallOptions()), request); } /** * * *
            -     * Adds a new Feature.
            +     * Creates a Scope RBACRoleBinding.
                  * 
            */ - public com.google.longrunning.Operation createFeature( - com.google.cloud.gkehub.v1.CreateFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateFeatureMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + createScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateScopeRBACRoleBindingMethod(), getCallOptions()), request); } /** * * *
            -     * Removes a Membership.
            -     * **This is currently only supported for GKE clusters on Google Cloud**.
            -     * To unregister other clusters, follow the instructions at
            -     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
            +     * Updates a Scope RBACRoleBinding.
                  * 
            */ - public com.google.longrunning.Operation deleteMembership( - com.google.cloud.gkehub.v1.DeleteMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteMembershipMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + updateScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateScopeRBACRoleBindingMethod(), getCallOptions()), request); } /** * * *
            -     * Removes a Feature.
            +     * Deletes a Scope RBACRoleBinding.
                  * 
            */ - public com.google.longrunning.Operation deleteFeature( - com.google.cloud.gkehub.v1.DeleteFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteFeatureMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteScopeRBACRoleBinding( + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteScopeRBACRoleBindingMethod(), getCallOptions()), request); } /** * * *
            -     * Updates an existing Membership.
            +     * Lists all Scope RBACRoleBindings.
                  * 
            */ - public com.google.longrunning.Operation updateMembership( - com.google.cloud.gkehub.v1.UpdateMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateMembershipMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse> + listScopeRBACRoleBindings( + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListScopeRBACRoleBindingsMethod(), getCallOptions()), request); } /** * * *
            -     * Updates an existing Feature.
            +     * Returns the details of a Scope.
                  * 
            */ - public com.google.longrunning.Operation updateFeature( - com.google.cloud.gkehub.v1.UpdateFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateFeatureMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + getScope(com.google.cloud.gkehub.v1.GetScopeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetScopeMethod(), getCallOptions()), request); } /** * * *
            -     * Generates the manifest for deployment of the GKE connect agent.
            -     * **This method is used internally by Google-provided libraries.**
            -     * Most clients should not need to call this method directly.
            +     * Creates a Scope.
                  * 
            */ - public com.google.cloud.gkehub.v1.GenerateConnectManifestResponse generateConnectManifest( - com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenerateConnectManifestMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + createScope(com.google.cloud.gkehub.v1.CreateScopeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateScopeMethod(), getCallOptions()), request); } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service GkeHub. - * - *
            -   * The GKE Hub service handles the registration of many Kubernetes clusters to
            -   * Google Cloud, and the management of multi-cluster features over those
            -   * clusters.
            -   * The GKE Hub service operates on the following resources:
            -   * * [Membership][google.cloud.gkehub.v1.Membership]
            -   * * [Feature][google.cloud.gkehub.v1.Feature]
            -   * GKE Hub is currently available in the global region and all regions in
            -   * https://cloud.google.com/compute/docs/regions-zones. Feature is only
            -   * available in global region while membership is global region and all the
            -   * regions.
            -   * **Membership management may be non-trivial:** it is recommended to use one
            -   * of the Google-provided client libraries or tools where possible when working
            -   * with Membership resources.
            -   * 
            - */ - public static final class GkeHubFutureStub - extends io.grpc.stub.AbstractFutureStub { - private GkeHubFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); + + /** + * + * + *
            +     * Updates a scopes.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + updateScope(com.google.cloud.gkehub.v1.UpdateScopeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateScopeMethod(), getCallOptions()), request); } - @java.lang.Override - protected GkeHubFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubFutureStub(channel, callOptions); + /** + * + * + *
            +     * Deletes a Scope.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + deleteScope(com.google.cloud.gkehub.v1.DeleteScopeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteScopeMethod(), getCallOptions()), request); } /** * * *
            -     * Lists Memberships in a given project and location.
            +     * Lists Scopes.
                  * 
            */ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gkehub.v1.ListMembershipsResponse> - listMemberships(com.google.cloud.gkehub.v1.ListMembershipsRequest request) { + com.google.cloud.gkehub.v1.ListScopesResponse> + listScopes(com.google.cloud.gkehub.v1.ListScopesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListMembershipsMethod(), getCallOptions()), request); + getChannel().newCall(getListScopesMethod(), getCallOptions()), request); } /** * * *
            -     * Lists Features in a given project and location.
            +     * Lists permitted Scopes.
                  * 
            */ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gkehub.v1.ListFeaturesResponse> - listFeatures(com.google.cloud.gkehub.v1.ListFeaturesRequest request) { + com.google.cloud.gkehub.v1.ListPermittedScopesResponse> + listPermittedScopes(com.google.cloud.gkehub.v1.ListPermittedScopesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFeaturesMethod(), getCallOptions()), request); + getChannel().newCall(getListPermittedScopesMethod(), getCallOptions()), request); } /** * * *
            -     * Gets the details of a Membership.
            +     * Returns the details of a MembershipBinding.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture - getMembership(com.google.cloud.gkehub.v1.GetMembershipRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1.MembershipBinding> + getMembershipBinding(com.google.cloud.gkehub.v1.GetMembershipBindingRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetMembershipMethod(), getCallOptions()), request); + getChannel().newCall(getGetMembershipBindingMethod(), getCallOptions()), request); } /** * * *
            -     * Gets details of a single Feature.
            +     * Creates a MembershipBinding.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture - getFeature(com.google.cloud.gkehub.v1.GetFeatureRequest request) { + public com.google.common.util.concurrent.ListenableFuture + createMembershipBinding(com.google.cloud.gkehub.v1.CreateMembershipBindingRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFeatureMethod(), getCallOptions()), request); + getChannel().newCall(getCreateMembershipBindingMethod(), getCallOptions()), request); } /** * * *
            -     * Creates a new Membership.
            -     * **This is currently only supported for GKE clusters on Google Cloud**.
            -     * To register other clusters, follow the instructions at
            -     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
            +     * Updates a MembershipBinding.
                  * 
            */ public com.google.common.util.concurrent.ListenableFuture - createMembership(com.google.cloud.gkehub.v1.CreateMembershipRequest request) { + updateMembershipBinding(com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateMembershipMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateMembershipBindingMethod(), getCallOptions()), request); } /** * * *
            -     * Adds a new Feature.
            +     * Deletes a MembershipBinding.
                  * 
            */ public com.google.common.util.concurrent.ListenableFuture - createFeature(com.google.cloud.gkehub.v1.CreateFeatureRequest request) { + deleteMembershipBinding(com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateFeatureMethod(), getCallOptions()), request); + getChannel().newCall(getDeleteMembershipBindingMethod(), getCallOptions()), request); } /** * * *
            -     * Removes a Membership.
            -     * **This is currently only supported for GKE clusters on Google Cloud**.
            -     * To unregister other clusters, follow the instructions at
            -     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
            +     * Lists MembershipBindings.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture - deleteMembership(com.google.cloud.gkehub.v1.DeleteMembershipRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1.ListMembershipBindingsResponse> + listMembershipBindings(com.google.cloud.gkehub.v1.ListMembershipBindingsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteMembershipMethod(), getCallOptions()), request); + getChannel().newCall(getListMembershipBindingsMethod(), getCallOptions()), request); } /** * * *
            -     * Removes a Feature.
            +     * Returns the details of a Membership RBACRoleBinding.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1.RBACRoleBinding> + getMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMembershipRBACRoleBindingMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Creates a Membership RBACRoleBinding.
                  * 
            */ public com.google.common.util.concurrent.ListenableFuture - deleteFeature(com.google.cloud.gkehub.v1.DeleteFeatureRequest request) { + createMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteFeatureMethod(), getCallOptions()), request); + getChannel().newCall(getCreateMembershipRBACRoleBindingMethod(), getCallOptions()), + request); } /** * * *
            -     * Updates an existing Membership.
            +     * Updates a Membership RBACRoleBinding.
                  * 
            */ public com.google.common.util.concurrent.ListenableFuture - updateMembership(com.google.cloud.gkehub.v1.UpdateMembershipRequest request) { + updateMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateMembershipMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateMembershipRBACRoleBindingMethod(), getCallOptions()), + request); } /** * * *
            -     * Updates an existing Feature.
            +     * Deletes a Membership RBACRoleBinding.
                  * 
            */ public com.google.common.util.concurrent.ListenableFuture - updateFeature(com.google.cloud.gkehub.v1.UpdateFeatureRequest request) { + deleteMembershipRBACRoleBinding( + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateFeatureMethod(), getCallOptions()), request); + getChannel().newCall(getDeleteMembershipRBACRoleBindingMethod(), getCallOptions()), + request); } /** * * *
            -     * Generates the manifest for deployment of the GKE connect agent.
            -     * **This method is used internally by Google-provided libraries.**
            -     * Most clients should not need to call this method directly.
            +     * Lists all Membership RBACRoleBindings.
                  * 
            */ public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gkehub.v1.GenerateConnectManifestResponse> - generateConnectManifest(com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request) { + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse> + listMembershipRBACRoleBindings( + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGenerateConnectManifestMethod(), getCallOptions()), request); + getChannel().newCall(getListMembershipRBACRoleBindingsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
            +     * Generates a YAML of the  RBAC policies for the specified
            +     * RoleBinding and its associated impersonation resources.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse> + generateMembershipRBACRoleBindingYAML( + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateMembershipRBACRoleBindingYAMLMethod(), getCallOptions()), + request); } } private static final int METHODID_LIST_MEMBERSHIPS = 0; - private static final int METHODID_LIST_FEATURES = 1; - private static final int METHODID_GET_MEMBERSHIP = 2; - private static final int METHODID_GET_FEATURE = 3; - private static final int METHODID_CREATE_MEMBERSHIP = 4; - private static final int METHODID_CREATE_FEATURE = 5; - private static final int METHODID_DELETE_MEMBERSHIP = 6; - private static final int METHODID_DELETE_FEATURE = 7; - private static final int METHODID_UPDATE_MEMBERSHIP = 8; - private static final int METHODID_UPDATE_FEATURE = 9; - private static final int METHODID_GENERATE_CONNECT_MANIFEST = 10; + private static final int METHODID_LIST_BOUND_MEMBERSHIPS = 1; + private static final int METHODID_LIST_FEATURES = 2; + private static final int METHODID_GET_MEMBERSHIP = 3; + private static final int METHODID_GET_FEATURE = 4; + private static final int METHODID_CREATE_MEMBERSHIP = 5; + private static final int METHODID_CREATE_FEATURE = 6; + private static final int METHODID_DELETE_MEMBERSHIP = 7; + private static final int METHODID_DELETE_FEATURE = 8; + private static final int METHODID_UPDATE_MEMBERSHIP = 9; + private static final int METHODID_UPDATE_FEATURE = 10; + private static final int METHODID_GENERATE_CONNECT_MANIFEST = 11; + private static final int METHODID_CREATE_FLEET = 12; + private static final int METHODID_GET_FLEET = 13; + private static final int METHODID_UPDATE_FLEET = 14; + private static final int METHODID_DELETE_FLEET = 15; + private static final int METHODID_LIST_FLEETS = 16; + private static final int METHODID_GET_SCOPE_NAMESPACE = 17; + private static final int METHODID_CREATE_SCOPE_NAMESPACE = 18; + private static final int METHODID_UPDATE_SCOPE_NAMESPACE = 19; + private static final int METHODID_DELETE_SCOPE_NAMESPACE = 20; + private static final int METHODID_LIST_SCOPE_NAMESPACES = 21; + private static final int METHODID_GET_SCOPE_RBACROLE_BINDING = 22; + private static final int METHODID_CREATE_SCOPE_RBACROLE_BINDING = 23; + private static final int METHODID_UPDATE_SCOPE_RBACROLE_BINDING = 24; + private static final int METHODID_DELETE_SCOPE_RBACROLE_BINDING = 25; + private static final int METHODID_LIST_SCOPE_RBACROLE_BINDINGS = 26; + private static final int METHODID_GET_SCOPE = 27; + private static final int METHODID_CREATE_SCOPE = 28; + private static final int METHODID_UPDATE_SCOPE = 29; + private static final int METHODID_DELETE_SCOPE = 30; + private static final int METHODID_LIST_SCOPES = 31; + private static final int METHODID_LIST_PERMITTED_SCOPES = 32; + private static final int METHODID_GET_MEMBERSHIP_BINDING = 33; + private static final int METHODID_CREATE_MEMBERSHIP_BINDING = 34; + private static final int METHODID_UPDATE_MEMBERSHIP_BINDING = 35; + private static final int METHODID_DELETE_MEMBERSHIP_BINDING = 36; + private static final int METHODID_LIST_MEMBERSHIP_BINDINGS = 37; + private static final int METHODID_GET_MEMBERSHIP_RBACROLE_BINDING = 38; + private static final int METHODID_CREATE_MEMBERSHIP_RBACROLE_BINDING = 39; + private static final int METHODID_UPDATE_MEMBERSHIP_RBACROLE_BINDING = 40; + private static final int METHODID_DELETE_MEMBERSHIP_RBACROLE_BINDING = 41; + private static final int METHODID_LIST_MEMBERSHIP_RBACROLE_BINDINGS = 42; + private static final int METHODID_GENERATE_MEMBERSHIP_RBACROLE_BINDING_YAML = 43; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1580,6 +5511,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_LIST_BOUND_MEMBERSHIPS: + serviceImpl.listBoundMemberships( + (com.google.cloud.gkehub.v1.ListBoundMembershipsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_LIST_FEATURES: serviceImpl.listFeatures( (com.google.cloud.gkehub.v1.ListFeaturesRequest) request, @@ -1634,6 +5571,181 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.gkehub.v1.GenerateConnectManifestResponse>) responseObserver); break; + case METHODID_CREATE_FLEET: + serviceImpl.createFleet( + (com.google.cloud.gkehub.v1.CreateFleetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_FLEET: + serviceImpl.getFleet( + (com.google.cloud.gkehub.v1.GetFleetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_FLEET: + serviceImpl.updateFleet( + (com.google.cloud.gkehub.v1.UpdateFleetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_FLEET: + serviceImpl.deleteFleet( + (com.google.cloud.gkehub.v1.DeleteFleetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_FLEETS: + serviceImpl.listFleets( + (com.google.cloud.gkehub.v1.ListFleetsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_SCOPE_NAMESPACE: + serviceImpl.getScopeNamespace( + (com.google.cloud.gkehub.v1.GetScopeNamespaceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SCOPE_NAMESPACE: + serviceImpl.createScopeNamespace( + (com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SCOPE_NAMESPACE: + serviceImpl.updateScopeNamespace( + (com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SCOPE_NAMESPACE: + serviceImpl.deleteScopeNamespace( + (com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SCOPE_NAMESPACES: + serviceImpl.listScopeNamespaces( + (com.google.cloud.gkehub.v1.ListScopeNamespacesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_SCOPE_RBACROLE_BINDING: + serviceImpl.getScopeRBACRoleBinding( + (com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_SCOPE_RBACROLE_BINDING: + serviceImpl.createScopeRBACRoleBinding( + (com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SCOPE_RBACROLE_BINDING: + serviceImpl.updateScopeRBACRoleBinding( + (com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SCOPE_RBACROLE_BINDING: + serviceImpl.deleteScopeRBACRoleBinding( + (com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SCOPE_RBACROLE_BINDINGS: + serviceImpl.listScopeRBACRoleBindings( + (com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse>) + responseObserver); + break; + case METHODID_GET_SCOPE: + serviceImpl.getScope( + (com.google.cloud.gkehub.v1.GetScopeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SCOPE: + serviceImpl.createScope( + (com.google.cloud.gkehub.v1.CreateScopeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SCOPE: + serviceImpl.updateScope( + (com.google.cloud.gkehub.v1.UpdateScopeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SCOPE: + serviceImpl.deleteScope( + (com.google.cloud.gkehub.v1.DeleteScopeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SCOPES: + serviceImpl.listScopes( + (com.google.cloud.gkehub.v1.ListScopesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_PERMITTED_SCOPES: + serviceImpl.listPermittedScopes( + (com.google.cloud.gkehub.v1.ListPermittedScopesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_MEMBERSHIP_BINDING: + serviceImpl.getMembershipBinding( + (com.google.cloud.gkehub.v1.GetMembershipBindingRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_MEMBERSHIP_BINDING: + serviceImpl.createMembershipBinding( + (com.google.cloud.gkehub.v1.CreateMembershipBindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_MEMBERSHIP_BINDING: + serviceImpl.updateMembershipBinding( + (com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_MEMBERSHIP_BINDING: + serviceImpl.deleteMembershipBinding( + (com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_MEMBERSHIP_BINDINGS: + serviceImpl.listMembershipBindings( + (com.google.cloud.gkehub.v1.ListMembershipBindingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gkehub.v1.ListMembershipBindingsResponse>) + responseObserver); + break; + case METHODID_GET_MEMBERSHIP_RBACROLE_BINDING: + serviceImpl.getMembershipRBACRoleBinding( + (com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_MEMBERSHIP_RBACROLE_BINDING: + serviceImpl.createMembershipRBACRoleBinding( + (com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_MEMBERSHIP_RBACROLE_BINDING: + serviceImpl.updateMembershipRBACRoleBinding( + (com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_MEMBERSHIP_RBACROLE_BINDING: + serviceImpl.deleteMembershipRBACRoleBinding( + (com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_MEMBERSHIP_RBACROLE_BINDINGS: + serviceImpl.listMembershipRBACRoleBindings( + (com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse>) + responseObserver); + break; + case METHODID_GENERATE_MEMBERSHIP_RBACROLE_BINDING_YAML: + serviceImpl.generateMembershipRBACRoleBindingYAML( + (com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse>) + responseObserver); + break; default: throw new AssertionError(); } @@ -1659,6 +5771,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.gkehub.v1.ListMembershipsRequest, com.google.cloud.gkehub.v1.ListMembershipsResponse>( service, METHODID_LIST_MEMBERSHIPS))) + .addMethod( + getListBoundMembershipsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.ListBoundMembershipsRequest, + com.google.cloud.gkehub.v1.ListBoundMembershipsResponse>( + service, METHODID_LIST_BOUND_MEMBERSHIPS))) .addMethod( getListFeaturesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -1721,6 +5840,213 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.gkehub.v1.GenerateConnectManifestRequest, com.google.cloud.gkehub.v1.GenerateConnectManifestResponse>( service, METHODID_GENERATE_CONNECT_MANIFEST))) + .addMethod( + getCreateFleetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.CreateFleetRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_FLEET))) + .addMethod( + getGetFleetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.GetFleetRequest, com.google.cloud.gkehub.v1.Fleet>( + service, METHODID_GET_FLEET))) + .addMethod( + getUpdateFleetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.UpdateFleetRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_FLEET))) + .addMethod( + getDeleteFleetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.DeleteFleetRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_FLEET))) + .addMethod( + getListFleetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.ListFleetsRequest, + com.google.cloud.gkehub.v1.ListFleetsResponse>(service, METHODID_LIST_FLEETS))) + .addMethod( + getGetScopeNamespaceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.GetScopeNamespaceRequest, + com.google.cloud.gkehub.v1.Namespace>(service, METHODID_GET_SCOPE_NAMESPACE))) + .addMethod( + getCreateScopeNamespaceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_SCOPE_NAMESPACE))) + .addMethod( + getUpdateScopeNamespaceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_SCOPE_NAMESPACE))) + .addMethod( + getDeleteScopeNamespaceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_SCOPE_NAMESPACE))) + .addMethod( + getListScopeNamespacesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.ListScopeNamespacesRequest, + com.google.cloud.gkehub.v1.ListScopeNamespacesResponse>( + service, METHODID_LIST_SCOPE_NAMESPACES))) + .addMethod( + getGetScopeRBACRoleBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest, + com.google.cloud.gkehub.v1.RBACRoleBinding>( + service, METHODID_GET_SCOPE_RBACROLE_BINDING))) + .addMethod( + getCreateScopeRBACRoleBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_SCOPE_RBACROLE_BINDING))) + .addMethod( + getUpdateScopeRBACRoleBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_SCOPE_RBACROLE_BINDING))) + .addMethod( + getDeleteScopeRBACRoleBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_SCOPE_RBACROLE_BINDING))) + .addMethod( + getListScopeRBACRoleBindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest, + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse>( + service, METHODID_LIST_SCOPE_RBACROLE_BINDINGS))) + .addMethod( + getGetScopeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.GetScopeRequest, com.google.cloud.gkehub.v1.Scope>( + service, METHODID_GET_SCOPE))) + .addMethod( + getCreateScopeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.CreateScopeRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_SCOPE))) + .addMethod( + getUpdateScopeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.UpdateScopeRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_SCOPE))) + .addMethod( + getDeleteScopeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.DeleteScopeRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_SCOPE))) + .addMethod( + getListScopesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.ListScopesRequest, + com.google.cloud.gkehub.v1.ListScopesResponse>(service, METHODID_LIST_SCOPES))) + .addMethod( + getListPermittedScopesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.ListPermittedScopesRequest, + com.google.cloud.gkehub.v1.ListPermittedScopesResponse>( + service, METHODID_LIST_PERMITTED_SCOPES))) + .addMethod( + getGetMembershipBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.GetMembershipBindingRequest, + com.google.cloud.gkehub.v1.MembershipBinding>( + service, METHODID_GET_MEMBERSHIP_BINDING))) + .addMethod( + getCreateMembershipBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.CreateMembershipBindingRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_MEMBERSHIP_BINDING))) + .addMethod( + getUpdateMembershipBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_MEMBERSHIP_BINDING))) + .addMethod( + getDeleteMembershipBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_MEMBERSHIP_BINDING))) + .addMethod( + getListMembershipBindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.ListMembershipBindingsRequest, + com.google.cloud.gkehub.v1.ListMembershipBindingsResponse>( + service, METHODID_LIST_MEMBERSHIP_BINDINGS))) + .addMethod( + getGetMembershipRBACRoleBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest, + com.google.cloud.gkehub.v1.RBACRoleBinding>( + service, METHODID_GET_MEMBERSHIP_RBACROLE_BINDING))) + .addMethod( + getCreateMembershipRBACRoleBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_MEMBERSHIP_RBACROLE_BINDING))) + .addMethod( + getUpdateMembershipRBACRoleBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_MEMBERSHIP_RBACROLE_BINDING))) + .addMethod( + getDeleteMembershipRBACRoleBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_MEMBERSHIP_RBACROLE_BINDING))) + .addMethod( + getListMembershipRBACRoleBindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest, + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse>( + service, METHODID_LIST_MEMBERSHIP_RBACROLE_BINDINGS))) + .addMethod( + getGenerateMembershipRBACRoleBindingYAMLMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest, + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse>( + service, METHODID_GENERATE_MEMBERSHIP_RBACROLE_BINDING_YAML))) .build(); } @@ -1771,6 +6097,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new GkeHubFileDescriptorSupplier()) .addMethod(getListMembershipsMethod()) + .addMethod(getListBoundMembershipsMethod()) .addMethod(getListFeaturesMethod()) .addMethod(getGetMembershipMethod()) .addMethod(getGetFeatureMethod()) @@ -1781,6 +6108,38 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUpdateMembershipMethod()) .addMethod(getUpdateFeatureMethod()) .addMethod(getGenerateConnectManifestMethod()) + .addMethod(getCreateFleetMethod()) + .addMethod(getGetFleetMethod()) + .addMethod(getUpdateFleetMethod()) + .addMethod(getDeleteFleetMethod()) + .addMethod(getListFleetsMethod()) + .addMethod(getGetScopeNamespaceMethod()) + .addMethod(getCreateScopeNamespaceMethod()) + .addMethod(getUpdateScopeNamespaceMethod()) + .addMethod(getDeleteScopeNamespaceMethod()) + .addMethod(getListScopeNamespacesMethod()) + .addMethod(getGetScopeRBACRoleBindingMethod()) + .addMethod(getCreateScopeRBACRoleBindingMethod()) + .addMethod(getUpdateScopeRBACRoleBindingMethod()) + .addMethod(getDeleteScopeRBACRoleBindingMethod()) + .addMethod(getListScopeRBACRoleBindingsMethod()) + .addMethod(getGetScopeMethod()) + .addMethod(getCreateScopeMethod()) + .addMethod(getUpdateScopeMethod()) + .addMethod(getDeleteScopeMethod()) + .addMethod(getListScopesMethod()) + .addMethod(getListPermittedScopesMethod()) + .addMethod(getGetMembershipBindingMethod()) + .addMethod(getCreateMembershipBindingMethod()) + .addMethod(getUpdateMembershipBindingMethod()) + .addMethod(getDeleteMembershipBindingMethod()) + .addMethod(getListMembershipBindingsMethod()) + .addMethod(getGetMembershipRBACRoleBindingMethod()) + .addMethod(getCreateMembershipRBACRoleBindingMethod()) + .addMethod(getUpdateMembershipRBACRoleBindingMethod()) + .addMethod(getDeleteMembershipRBACRoleBindingMethod()) + .addMethod(getListMembershipRBACRoleBindingsMethod()) + .addMethod(getGenerateMembershipRBACRoleBindingYAMLMethod()) .build(); } } diff --git a/java-gkehub/grpc-google-cloud-gkehub-v1alpha/pom.xml b/java-gkehub/grpc-google-cloud-gkehub-v1alpha/pom.xml index b901a58867dc..b395994c42fd 100644 --- a/java-gkehub/grpc-google-cloud-gkehub-v1alpha/pom.xml +++ b/java-gkehub/grpc-google-cloud-gkehub-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gkehub-v1alpha - 0.90.0-SNAPSHOT + 0.91.0 grpc-google-cloud-gkehub-v1alpha GRPC library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.84.0-SNAPSHOT + 1.85.0 diff --git a/java-gkehub/grpc-google-cloud-gkehub-v1beta/pom.xml b/java-gkehub/grpc-google-cloud-gkehub-v1beta/pom.xml index b3b4a00d585c..18f40faad277 100644 --- a/java-gkehub/grpc-google-cloud-gkehub-v1beta/pom.xml +++ b/java-gkehub/grpc-google-cloud-gkehub-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gkehub-v1beta - 0.90.0-SNAPSHOT + 0.91.0 grpc-google-cloud-gkehub-v1beta GRPC library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.84.0-SNAPSHOT + 1.85.0 diff --git a/java-gkehub/grpc-google-cloud-gkehub-v1beta1/pom.xml b/java-gkehub/grpc-google-cloud-gkehub-v1beta1/pom.xml index ef3e7a8d9618..1583d9d69d08 100644 --- a/java-gkehub/grpc-google-cloud-gkehub-v1beta1/pom.xml +++ b/java-gkehub/grpc-google-cloud-gkehub-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gkehub-v1beta1 - 0.90.0-SNAPSHOT + 0.91.0 grpc-google-cloud-gkehub-v1beta1 GRPC library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.84.0-SNAPSHOT + 1.85.0 diff --git a/java-gkehub/pom.xml b/java-gkehub/pom.xml index 0ad2140dea8f..af4f1410c7e9 100644 --- a/java-gkehub/pom.xml +++ b/java-gkehub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-gkehub-parent pom - 1.84.0-SNAPSHOT + 1.85.0 Google GKE Hub API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,47 +29,47 @@ com.google.cloud google-cloud-gkehub - 1.84.0-SNAPSHOT + 1.85.0 com.google.api.grpc proto-google-cloud-gkehub-v1beta - 0.90.0-SNAPSHOT + 0.91.0 com.google.api.grpc proto-google-cloud-gkehub-v1alpha - 0.90.0-SNAPSHOT + 0.91.0 com.google.api.grpc proto-google-cloud-gkehub-v1 - 1.84.0-SNAPSHOT + 1.85.0 com.google.api.grpc grpc-google-cloud-gkehub-v1beta - 0.90.0-SNAPSHOT + 0.91.0 com.google.api.grpc grpc-google-cloud-gkehub-v1alpha - 0.90.0-SNAPSHOT + 0.91.0 com.google.api.grpc grpc-google-cloud-gkehub-v1 - 1.84.0-SNAPSHOT + 1.85.0 com.google.api.grpc proto-google-cloud-gkehub-v1beta1 - 0.90.0-SNAPSHOT + 0.91.0 com.google.api.grpc grpc-google-cloud-gkehub-v1beta1 - 0.90.0-SNAPSHOT + 0.91.0 diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/pom.xml b/java-gkehub/proto-google-cloud-gkehub-v1/pom.xml index 7997f1869705..90c384cb5c4b 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/pom.xml +++ b/java-gkehub/proto-google-cloud-gkehub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gkehub-v1 - 1.84.0-SNAPSHOT + 1.85.0 proto-google-cloud-gkehub-v1 Proto library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.84.0-SNAPSHOT + 1.85.0 diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/FeatureSpec.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/FeatureSpec.java new file mode 100644 index 000000000000..078c557d60e0 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/FeatureSpec.java @@ -0,0 +1,733 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/rbacrolebindingactuation/rbacrolebindingactuation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.rbacrolebindingactuation.v1; + +/** + * + * + *
            + * **RBAC RoleBinding Actuation**: The Hub-wide input for the
            + * RBACRoleBindingActuation feature.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec} + */ +@com.google.protobuf.Generated +public final class FeatureSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec) + FeatureSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FeatureSpec"); + } + + // Use FeatureSpec.newBuilder() to construct. + private FeatureSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FeatureSpec() { + allowedCustomRoles_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.rbacrolebindingactuation.v1.RBACRoleBindingActuationProto + .internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.rbacrolebindingactuation.v1.RBACRoleBindingActuationProto + .internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec.class, + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec.Builder.class); + } + + public static final int ALLOWED_CUSTOM_ROLES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList allowedCustomRoles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +   * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
            +   * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
            +   * ClusterRole in this list is in use, it cannot be removed from the list.
            +   * 
            + * + * repeated string allowed_custom_roles = 2; + * + * @return A list containing the allowedCustomRoles. + */ + public com.google.protobuf.ProtocolStringList getAllowedCustomRolesList() { + return allowedCustomRoles_; + } + + /** + * + * + *
            +   * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
            +   * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
            +   * ClusterRole in this list is in use, it cannot be removed from the list.
            +   * 
            + * + * repeated string allowed_custom_roles = 2; + * + * @return The count of allowedCustomRoles. + */ + public int getAllowedCustomRolesCount() { + return allowedCustomRoles_.size(); + } + + /** + * + * + *
            +   * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
            +   * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
            +   * ClusterRole in this list is in use, it cannot be removed from the list.
            +   * 
            + * + * repeated string allowed_custom_roles = 2; + * + * @param index The index of the element to return. + * @return The allowedCustomRoles at the given index. + */ + public java.lang.String getAllowedCustomRoles(int index) { + return allowedCustomRoles_.get(index); + } + + /** + * + * + *
            +   * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
            +   * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
            +   * ClusterRole in this list is in use, it cannot be removed from the list.
            +   * 
            + * + * repeated string allowed_custom_roles = 2; + * + * @param index The index of the value to return. + * @return The bytes of the allowedCustomRoles at the given index. + */ + public com.google.protobuf.ByteString getAllowedCustomRolesBytes(int index) { + return allowedCustomRoles_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < allowedCustomRoles_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, allowedCustomRoles_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < allowedCustomRoles_.size(); i++) { + dataSize += computeStringSizeNoTag(allowedCustomRoles_.getRaw(i)); + } + size += dataSize; + size += 1 * getAllowedCustomRolesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec)) { + return super.equals(obj); + } + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec other = + (com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec) obj; + + if (!getAllowedCustomRolesList().equals(other.getAllowedCustomRolesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAllowedCustomRolesCount() > 0) { + hash = (37 * hash) + ALLOWED_CUSTOM_ROLES_FIELD_NUMBER; + hash = (53 * hash) + getAllowedCustomRolesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * **RBAC RoleBinding Actuation**: The Hub-wide input for the
            +   * RBACRoleBindingActuation feature.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec) + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.rbacrolebindingactuation.v1.RBACRoleBindingActuationProto + .internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.rbacrolebindingactuation.v1.RBACRoleBindingActuationProto + .internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec.class, + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec.Builder.class); + } + + // Construct using com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + allowedCustomRoles_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.rbacrolebindingactuation.v1.RBACRoleBindingActuationProto + .internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec + getDefaultInstanceForType() { + return com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec build() { + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec buildPartial() { + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec result = + new com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + allowedCustomRoles_.makeImmutable(); + result.allowedCustomRoles_ = allowedCustomRoles_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec) { + return mergeFrom((com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec other) { + if (other + == com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec.getDefaultInstance()) + return this; + if (!other.allowedCustomRoles_.isEmpty()) { + if (allowedCustomRoles_.isEmpty()) { + allowedCustomRoles_ = other.allowedCustomRoles_; + bitField0_ |= 0x00000001; + } else { + ensureAllowedCustomRolesIsMutable(); + allowedCustomRoles_.addAll(other.allowedCustomRoles_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedCustomRolesIsMutable(); + allowedCustomRoles_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList allowedCustomRoles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAllowedCustomRolesIsMutable() { + if (!allowedCustomRoles_.isModifiable()) { + allowedCustomRoles_ = new com.google.protobuf.LazyStringArrayList(allowedCustomRoles_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
            +     * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
            +     * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
            +     * ClusterRole in this list is in use, it cannot be removed from the list.
            +     * 
            + * + * repeated string allowed_custom_roles = 2; + * + * @return A list containing the allowedCustomRoles. + */ + public com.google.protobuf.ProtocolStringList getAllowedCustomRolesList() { + allowedCustomRoles_.makeImmutable(); + return allowedCustomRoles_; + } + + /** + * + * + *
            +     * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
            +     * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
            +     * ClusterRole in this list is in use, it cannot be removed from the list.
            +     * 
            + * + * repeated string allowed_custom_roles = 2; + * + * @return The count of allowedCustomRoles. + */ + public int getAllowedCustomRolesCount() { + return allowedCustomRoles_.size(); + } + + /** + * + * + *
            +     * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
            +     * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
            +     * ClusterRole in this list is in use, it cannot be removed from the list.
            +     * 
            + * + * repeated string allowed_custom_roles = 2; + * + * @param index The index of the element to return. + * @return The allowedCustomRoles at the given index. + */ + public java.lang.String getAllowedCustomRoles(int index) { + return allowedCustomRoles_.get(index); + } + + /** + * + * + *
            +     * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
            +     * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
            +     * ClusterRole in this list is in use, it cannot be removed from the list.
            +     * 
            + * + * repeated string allowed_custom_roles = 2; + * + * @param index The index of the value to return. + * @return The bytes of the allowedCustomRoles at the given index. + */ + public com.google.protobuf.ByteString getAllowedCustomRolesBytes(int index) { + return allowedCustomRoles_.getByteString(index); + } + + /** + * + * + *
            +     * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
            +     * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
            +     * ClusterRole in this list is in use, it cannot be removed from the list.
            +     * 
            + * + * repeated string allowed_custom_roles = 2; + * + * @param index The index to set the value at. + * @param value The allowedCustomRoles to set. + * @return This builder for chaining. + */ + public Builder setAllowedCustomRoles(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedCustomRolesIsMutable(); + allowedCustomRoles_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
            +     * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
            +     * ClusterRole in this list is in use, it cannot be removed from the list.
            +     * 
            + * + * repeated string allowed_custom_roles = 2; + * + * @param value The allowedCustomRoles to add. + * @return This builder for chaining. + */ + public Builder addAllowedCustomRoles(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedCustomRolesIsMutable(); + allowedCustomRoles_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
            +     * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
            +     * ClusterRole in this list is in use, it cannot be removed from the list.
            +     * 
            + * + * repeated string allowed_custom_roles = 2; + * + * @param values The allowedCustomRoles to add. + * @return This builder for chaining. + */ + public Builder addAllAllowedCustomRoles(java.lang.Iterable values) { + ensureAllowedCustomRolesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedCustomRoles_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
            +     * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
            +     * ClusterRole in this list is in use, it cannot be removed from the list.
            +     * 
            + * + * repeated string allowed_custom_roles = 2; + * + * @return This builder for chaining. + */ + public Builder clearAllowedCustomRoles() { + allowedCustomRoles_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
            +     * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
            +     * ClusterRole in this list is in use, it cannot be removed from the list.
            +     * 
            + * + * repeated string allowed_custom_roles = 2; + * + * @param value The bytes of the allowedCustomRoles to add. + * @return This builder for chaining. + */ + public Builder addAllowedCustomRolesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAllowedCustomRolesIsMutable(); + allowedCustomRoles_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec) + private static final com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec(); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/FeatureSpecOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/FeatureSpecOrBuilder.java new file mode 100644 index 000000000000..3865e0782125 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/FeatureSpecOrBuilder.java @@ -0,0 +1,90 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/rbacrolebindingactuation/rbacrolebindingactuation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.rbacrolebindingactuation.v1; + +@com.google.protobuf.Generated +public interface FeatureSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
            +   * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
            +   * ClusterRole in this list is in use, it cannot be removed from the list.
            +   * 
            + * + * repeated string allowed_custom_roles = 2; + * + * @return A list containing the allowedCustomRoles. + */ + java.util.List getAllowedCustomRolesList(); + + /** + * + * + *
            +   * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
            +   * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
            +   * ClusterRole in this list is in use, it cannot be removed from the list.
            +   * 
            + * + * repeated string allowed_custom_roles = 2; + * + * @return The count of allowedCustomRoles. + */ + int getAllowedCustomRolesCount(); + + /** + * + * + *
            +   * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
            +   * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
            +   * ClusterRole in this list is in use, it cannot be removed from the list.
            +   * 
            + * + * repeated string allowed_custom_roles = 2; + * + * @param index The index of the element to return. + * @return The allowedCustomRoles at the given index. + */ + java.lang.String getAllowedCustomRoles(int index); + + /** + * + * + *
            +   * The list of allowed custom roles (ClusterRoles). If a ClusterRole is not
            +   * part of this list, it cannot be used in a Scope RBACRoleBinding. If a
            +   * ClusterRole in this list is in use, it cannot be removed from the list.
            +   * 
            + * + * repeated string allowed_custom_roles = 2; + * + * @param index The index of the value to return. + * @return The bytes of the allowedCustomRoles at the given index. + */ + com.google.protobuf.ByteString getAllowedCustomRolesBytes(int index); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/FeatureState.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/FeatureState.java new file mode 100644 index 000000000000..aaff34d66d04 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/FeatureState.java @@ -0,0 +1,405 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/rbacrolebindingactuation/rbacrolebindingactuation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.rbacrolebindingactuation.v1; + +/** + * + * + *
            + * **RBAC RoleBinding Actuation**: An empty state left as an example Hub-wide
            + * Feature state.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState} + */ +@com.google.protobuf.Generated +public final class FeatureState extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState) + FeatureStateOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FeatureState"); + } + + // Use FeatureState.newBuilder() to construct. + private FeatureState(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FeatureState() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.rbacrolebindingactuation.v1.RBACRoleBindingActuationProto + .internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.rbacrolebindingactuation.v1.RBACRoleBindingActuationProto + .internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState.class, + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState)) { + return super.equals(obj); + } + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState other = + (com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * **RBAC RoleBinding Actuation**: An empty state left as an example Hub-wide
            +   * Feature state.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState) + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.rbacrolebindingactuation.v1.RBACRoleBindingActuationProto + .internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.rbacrolebindingactuation.v1.RBACRoleBindingActuationProto + .internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState.class, + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState.Builder.class); + } + + // Construct using com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.rbacrolebindingactuation.v1.RBACRoleBindingActuationProto + .internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureState_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState + getDefaultInstanceForType() { + return com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState build() { + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState buildPartial() { + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState result = + new com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState) { + return mergeFrom((com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState other) { + if (other + == com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState) + private static final com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState(); + } + + public static com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/FeatureStateOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/FeatureStateOrBuilder.java new file mode 100644 index 000000000000..2482db60ffaf --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/FeatureStateOrBuilder.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/rbacrolebindingactuation/rbacrolebindingactuation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.rbacrolebindingactuation.v1; + +@com.google.protobuf.Generated +public interface FeatureStateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/RBACRoleBindingActuationProto.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/RBACRoleBindingActuationProto.java new file mode 100644 index 000000000000..afdda8918f62 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/rbacrolebindingactuation/v1/RBACRoleBindingActuationProto.java @@ -0,0 +1,101 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/rbacrolebindingactuation/rbacrolebindingactuation.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.rbacrolebindingactuation.v1; + +@com.google.protobuf.Generated +public final class RBACRoleBindingActuationProto extends com.google.protobuf.GeneratedFile { + private RBACRoleBindingActuationProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RBACRoleBindingActuationProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureState_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureState_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nNgoogle/cloud/gkehub/v1/rbacrolebinding" + + "actuation/rbacrolebindingactuation.proto" + + "\022/google.cloud.gkehub.rbacrolebindingact" + + "uation.v1\032\037google/api/field_behavior.pro" + + "to\"+\n\013FeatureSpec\022\034\n\024allowed_custom_role" + + "s\030\002 \003(\t\"\016\n\014FeatureStateB\341\002\n3com.google.c" + + "loud.gkehub.rbacrolebindingactuation.v1B" + + "\035RBACRoleBindingActuationProtoP\001Zocloud." + + "google.com/go/gkehub/rbacrolebindingactu" + + "ation/apiv1/rbacrolebindingactuationpb;r" + + "bacrolebindingactuationpb\252\002/Google.Cloud" + + ".GkeHub.RbacRoleBindingActuation.V1\312\002/Go" + + "ogle\\Cloud\\GkeHub\\RbacRoleBindingActuati" + + "on\\V1\352\0023Google::Cloud::GkeHub::RbacRoleB" + + "indingActuation::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureSpec_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureSpec_descriptor, + new java.lang.String[] { + "AllowedCustomRoles", + }); + internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureState_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_rbacrolebindingactuation_v1_FeatureState_descriptor, + new java.lang.String[] {}); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/BinaryAuthorizationConfig.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/BinaryAuthorizationConfig.java new file mode 100644 index 000000000000..7addadd20d87 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/BinaryAuthorizationConfig.java @@ -0,0 +1,1996 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * BinaryAuthorizationConfig defines the fleet level configuration of binary
            + * authorization feature.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.BinaryAuthorizationConfig} + */ +@com.google.protobuf.Generated +public final class BinaryAuthorizationConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.BinaryAuthorizationConfig) + BinaryAuthorizationConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BinaryAuthorizationConfig"); + } + + // Use BinaryAuthorizationConfig.newBuilder() to construct. + private BinaryAuthorizationConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BinaryAuthorizationConfig() { + evaluationMode_ = 0; + policyBindings_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.class, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.Builder.class); + } + + /** + * + * + *
            +   * Binary Authorization mode of operation.
            +   * 
            + * + * Protobuf enum {@code google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode} + */ + public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * Default value
            +     * 
            + * + * EVALUATION_MODE_UNSPECIFIED = 0; + */ + EVALUATION_MODE_UNSPECIFIED(0), + /** + * + * + *
            +     * Disable BinaryAuthorization
            +     * 
            + * + * DISABLED = 1; + */ + DISABLED(1), + /** + * + * + *
            +     * Use Binary Authorization with the policies specified in policy_bindings.
            +     * 
            + * + * POLICY_BINDINGS = 2; + */ + POLICY_BINDINGS(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EvaluationMode"); + } + + /** + * + * + *
            +     * Default value
            +     * 
            + * + * EVALUATION_MODE_UNSPECIFIED = 0; + */ + public static final int EVALUATION_MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * Disable BinaryAuthorization
            +     * 
            + * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + + /** + * + * + *
            +     * Use Binary Authorization with the policies specified in policy_bindings.
            +     * 
            + * + * POLICY_BINDINGS = 2; + */ + public static final int POLICY_BINDINGS_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EvaluationMode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static EvaluationMode forNumber(int value) { + switch (value) { + case 0: + return EVALUATION_MODE_UNSPECIFIED; + case 1: + return DISABLED; + case 2: + return POLICY_BINDINGS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EvaluationMode findValueByNumber(int number) { + return EvaluationMode.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final EvaluationMode[] VALUES = values(); + + public static EvaluationMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private EvaluationMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode) + } + + public interface PolicyBindingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * The relative resource name of the binauthz platform policy to audit. GKE
            +     * platform policies have the following format:
            +     * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
            +     * 
            + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +     * The relative resource name of the binauthz platform policy to audit. GKE
            +     * platform policies have the following format:
            +     * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
            +     * 
            + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + } + + /** + * + * + *
            +   * Binauthz policy that applies to this cluster.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding} + */ + public static final class PolicyBinding extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding) + PolicyBindingOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PolicyBinding"); + } + + // Use PolicyBinding.newBuilder() to construct. + private PolicyBinding(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PolicyBinding() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_PolicyBinding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_PolicyBinding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding.class, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +     * The relative resource name of the binauthz platform policy to audit. GKE
            +     * platform policies have the following format:
            +     * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
            +     * 
            + * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +     * The relative resource name of the binauthz platform policy to audit. GKE
            +     * platform policies have the following format:
            +     * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
            +     * 
            + * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding other = + (com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Binauthz policy that applies to this cluster.
            +     * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding) + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBindingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_PolicyBinding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_PolicyBinding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding.class, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding.Builder.class); + } + + // Construct using + // com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_PolicyBinding_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding + getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding build() { + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding buildPartial() { + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding result = + new com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding) { + return mergeFrom( + (com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding other) { + if (other + == com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +       * The relative resource name of the binauthz platform policy to audit. GKE
            +       * platform policies have the following format:
            +       * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
            +       * 
            + * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * The relative resource name of the binauthz platform policy to audit. GKE
            +       * platform policies have the following format:
            +       * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
            +       * 
            + * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * The relative resource name of the binauthz platform policy to audit. GKE
            +       * platform policies have the following format:
            +       * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
            +       * 
            + * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The relative resource name of the binauthz platform policy to audit. GKE
            +       * platform policies have the following format:
            +       * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
            +       * 
            + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +       * The relative resource name of the binauthz platform policy to audit. GKE
            +       * platform policies have the following format:
            +       * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
            +       * 
            + * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding) + private static final com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding(); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyBinding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int EVALUATION_MODE_FIELD_NUMBER = 1; + private int evaluationMode_ = 0; + + /** + * + * + *
            +   * Optional. Mode of operation for binauthz policy evaluation.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for evaluationMode. + */ + @java.lang.Override + public int getEvaluationModeValue() { + return evaluationMode_; + } + + /** + * + * + *
            +   * Optional. Mode of operation for binauthz policy evaluation.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The evaluationMode. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode getEvaluationMode() { + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode result = + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode.forNumber( + evaluationMode_); + return result == null + ? com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode.UNRECOGNIZED + : result; + } + + public static final int POLICY_BINDINGS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + policyBindings_; + + /** + * + * + *
            +   * Optional. Binauthz policies that apply to this cluster.
            +   * 
            + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getPolicyBindingsList() { + return policyBindings_; + } + + /** + * + * + *
            +   * Optional. Binauthz policies that apply to this cluster.
            +   * 
            + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBindingOrBuilder> + getPolicyBindingsOrBuilderList() { + return policyBindings_; + } + + /** + * + * + *
            +   * Optional. Binauthz policies that apply to this cluster.
            +   * 
            + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getPolicyBindingsCount() { + return policyBindings_.size(); + } + + /** + * + * + *
            +   * Optional. Binauthz policies that apply to this cluster.
            +   * 
            + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding getPolicyBindings( + int index) { + return policyBindings_.get(index); + } + + /** + * + * + *
            +   * Optional. Binauthz policies that apply to this cluster.
            +   * 
            + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBindingOrBuilder + getPolicyBindingsOrBuilder(int index) { + return policyBindings_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (evaluationMode_ + != com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode + .EVALUATION_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, evaluationMode_); + } + for (int i = 0; i < policyBindings_.size(); i++) { + output.writeMessage(2, policyBindings_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (evaluationMode_ + != com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode + .EVALUATION_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, evaluationMode_); + } + for (int i = 0; i < policyBindings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, policyBindings_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.BinaryAuthorizationConfig)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig other = + (com.google.cloud.gkehub.v1.BinaryAuthorizationConfig) obj; + + if (evaluationMode_ != other.evaluationMode_) return false; + if (!getPolicyBindingsList().equals(other.getPolicyBindingsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + EVALUATION_MODE_FIELD_NUMBER; + hash = (53 * hash) + evaluationMode_; + if (getPolicyBindingsCount() > 0) { + hash = (37 * hash) + POLICY_BINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getPolicyBindingsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkehub.v1.BinaryAuthorizationConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * BinaryAuthorizationConfig defines the fleet level configuration of binary
            +   * authorization feature.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.BinaryAuthorizationConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.BinaryAuthorizationConfig) + com.google.cloud.gkehub.v1.BinaryAuthorizationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.class, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + evaluationMode_ = 0; + if (policyBindingsBuilder_ == null) { + policyBindings_ = java.util.Collections.emptyList(); + } else { + policyBindings_ = null; + policyBindingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig build() { + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig buildPartial() { + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig result = + new com.google.cloud.gkehub.v1.BinaryAuthorizationConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig result) { + if (policyBindingsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + policyBindings_ = java.util.Collections.unmodifiableList(policyBindings_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.policyBindings_ = policyBindings_; + } else { + result.policyBindings_ = policyBindingsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.gkehub.v1.BinaryAuthorizationConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.evaluationMode_ = evaluationMode_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.BinaryAuthorizationConfig) { + return mergeFrom((com.google.cloud.gkehub.v1.BinaryAuthorizationConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.BinaryAuthorizationConfig other) { + if (other == com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.getDefaultInstance()) + return this; + if (other.evaluationMode_ != 0) { + setEvaluationModeValue(other.getEvaluationModeValue()); + } + if (policyBindingsBuilder_ == null) { + if (!other.policyBindings_.isEmpty()) { + if (policyBindings_.isEmpty()) { + policyBindings_ = other.policyBindings_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensurePolicyBindingsIsMutable(); + policyBindings_.addAll(other.policyBindings_); + } + onChanged(); + } + } else { + if (!other.policyBindings_.isEmpty()) { + if (policyBindingsBuilder_.isEmpty()) { + policyBindingsBuilder_.dispose(); + policyBindingsBuilder_ = null; + policyBindings_ = other.policyBindings_; + bitField0_ = (bitField0_ & ~0x00000002); + policyBindingsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetPolicyBindingsFieldBuilder() + : null; + } else { + policyBindingsBuilder_.addAllMessages(other.policyBindings_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + evaluationMode_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding m = + input.readMessage( + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding.parser(), + extensionRegistry); + if (policyBindingsBuilder_ == null) { + ensurePolicyBindingsIsMutable(); + policyBindings_.add(m); + } else { + policyBindingsBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int evaluationMode_ = 0; + + /** + * + * + *
            +     * Optional. Mode of operation for binauthz policy evaluation.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for evaluationMode. + */ + @java.lang.Override + public int getEvaluationModeValue() { + return evaluationMode_; + } + + /** + * + * + *
            +     * Optional. Mode of operation for binauthz policy evaluation.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for evaluationMode to set. + * @return This builder for chaining. + */ + public Builder setEvaluationModeValue(int value) { + evaluationMode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Mode of operation for binauthz policy evaluation.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The evaluationMode. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode getEvaluationMode() { + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode result = + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode.forNumber( + evaluationMode_); + return result == null + ? com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Optional. Mode of operation for binauthz policy evaluation.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The evaluationMode to set. + * @return This builder for chaining. + */ + public Builder setEvaluationMode( + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + evaluationMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Mode of operation for binauthz policy evaluation.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEvaluationMode() { + bitField0_ = (bitField0_ & ~0x00000001); + evaluationMode_ = 0; + onChanged(); + return this; + } + + private java.util.List + policyBindings_ = java.util.Collections.emptyList(); + + private void ensurePolicyBindingsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + policyBindings_ = + new java.util.ArrayList< + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding>( + policyBindings_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding.Builder, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBindingOrBuilder> + policyBindingsBuilder_; + + /** + * + * + *
            +     * Optional. Binauthz policies that apply to this cluster.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getPolicyBindingsList() { + if (policyBindingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(policyBindings_); + } else { + return policyBindingsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * Optional. Binauthz policies that apply to this cluster.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getPolicyBindingsCount() { + if (policyBindingsBuilder_ == null) { + return policyBindings_.size(); + } else { + return policyBindingsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * Optional. Binauthz policies that apply to this cluster.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding getPolicyBindings( + int index) { + if (policyBindingsBuilder_ == null) { + return policyBindings_.get(index); + } else { + return policyBindingsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * Optional. Binauthz policies that apply to this cluster.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPolicyBindings( + int index, com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding value) { + if (policyBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyBindingsIsMutable(); + policyBindings_.set(index, value); + onChanged(); + } else { + policyBindingsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Optional. Binauthz policies that apply to this cluster.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPolicyBindings( + int index, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding.Builder + builderForValue) { + if (policyBindingsBuilder_ == null) { + ensurePolicyBindingsIsMutable(); + policyBindings_.set(index, builderForValue.build()); + onChanged(); + } else { + policyBindingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Optional. Binauthz policies that apply to this cluster.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPolicyBindings( + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding value) { + if (policyBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyBindingsIsMutable(); + policyBindings_.add(value); + onChanged(); + } else { + policyBindingsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * Optional. Binauthz policies that apply to this cluster.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPolicyBindings( + int index, com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding value) { + if (policyBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyBindingsIsMutable(); + policyBindings_.add(index, value); + onChanged(); + } else { + policyBindingsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Optional. Binauthz policies that apply to this cluster.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPolicyBindings( + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding.Builder + builderForValue) { + if (policyBindingsBuilder_ == null) { + ensurePolicyBindingsIsMutable(); + policyBindings_.add(builderForValue.build()); + onChanged(); + } else { + policyBindingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Optional. Binauthz policies that apply to this cluster.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPolicyBindings( + int index, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding.Builder + builderForValue) { + if (policyBindingsBuilder_ == null) { + ensurePolicyBindingsIsMutable(); + policyBindings_.add(index, builderForValue.build()); + onChanged(); + } else { + policyBindingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Optional. Binauthz policies that apply to this cluster.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllPolicyBindings( + java.lang.Iterable< + ? extends com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding> + values) { + if (policyBindingsBuilder_ == null) { + ensurePolicyBindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policyBindings_); + onChanged(); + } else { + policyBindingsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * Optional. Binauthz policies that apply to this cluster.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPolicyBindings() { + if (policyBindingsBuilder_ == null) { + policyBindings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + policyBindingsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Binauthz policies that apply to this cluster.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removePolicyBindings(int index) { + if (policyBindingsBuilder_ == null) { + ensurePolicyBindingsIsMutable(); + policyBindings_.remove(index); + onChanged(); + } else { + policyBindingsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * Optional. Binauthz policies that apply to this cluster.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding.Builder + getPolicyBindingsBuilder(int index) { + return internalGetPolicyBindingsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * Optional. Binauthz policies that apply to this cluster.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBindingOrBuilder + getPolicyBindingsOrBuilder(int index) { + if (policyBindingsBuilder_ == null) { + return policyBindings_.get(index); + } else { + return policyBindingsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * Optional. Binauthz policies that apply to this cluster.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBindingOrBuilder> + getPolicyBindingsOrBuilderList() { + if (policyBindingsBuilder_ != null) { + return policyBindingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(policyBindings_); + } + } + + /** + * + * + *
            +     * Optional. Binauthz policies that apply to this cluster.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding.Builder + addPolicyBindingsBuilder() { + return internalGetPolicyBindingsFieldBuilder() + .addBuilder( + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding + .getDefaultInstance()); + } + + /** + * + * + *
            +     * Optional. Binauthz policies that apply to this cluster.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding.Builder + addPolicyBindingsBuilder(int index) { + return internalGetPolicyBindingsFieldBuilder() + .addBuilder( + index, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding + .getDefaultInstance()); + } + + /** + * + * + *
            +     * Optional. Binauthz policies that apply to this cluster.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding.Builder> + getPolicyBindingsBuilderList() { + return internalGetPolicyBindingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding.Builder, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBindingOrBuilder> + internalGetPolicyBindingsFieldBuilder() { + if (policyBindingsBuilder_ == null) { + policyBindingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding.Builder, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBindingOrBuilder>( + policyBindings_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + policyBindings_ = null; + } + return policyBindingsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.BinaryAuthorizationConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.BinaryAuthorizationConfig) + private static final com.google.cloud.gkehub.v1.BinaryAuthorizationConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.BinaryAuthorizationConfig(); + } + + public static com.google.cloud.gkehub.v1.BinaryAuthorizationConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BinaryAuthorizationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/BinaryAuthorizationConfigOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/BinaryAuthorizationConfigOrBuilder.java new file mode 100644 index 000000000000..12d928ec46a9 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/BinaryAuthorizationConfigOrBuilder.java @@ -0,0 +1,127 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface BinaryAuthorizationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.BinaryAuthorizationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Optional. Mode of operation for binauthz policy evaluation.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for evaluationMode. + */ + int getEvaluationModeValue(); + + /** + * + * + *
            +   * Optional. Mode of operation for binauthz policy evaluation.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The evaluationMode. + */ + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.EvaluationMode getEvaluationMode(); + + /** + * + * + *
            +   * Optional. Binauthz policies that apply to this cluster.
            +   * 
            + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getPolicyBindingsList(); + + /** + * + * + *
            +   * Optional. Binauthz policies that apply to this cluster.
            +   * 
            + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding getPolicyBindings(int index); + + /** + * + * + *
            +   * Optional. Binauthz policies that apply to this cluster.
            +   * 
            + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getPolicyBindingsCount(); + + /** + * + * + *
            +   * Optional. Binauthz policies that apply to this cluster.
            +   * 
            + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBindingOrBuilder> + getPolicyBindingsOrBuilderList(); + + /** + * + * + *
            +   * Optional. Binauthz policies that apply to this cluster.
            +   * 
            + * + * + * repeated .google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBinding policy_bindings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBindingOrBuilder + getPolicyBindingsOrBuilder(int index); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureState.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureState.java index eb70e0b448fc..2bf929e8d279 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureState.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureState.java @@ -24,7 +24,7 @@ * * *
            - * CommonFeatureState contains Hub-wide Feature status information.
            + * CommonFeatureState contains Fleet-wide Feature status information.
              * 
            * * Protobuf type {@code google.cloud.gkehub.v1.CommonFeatureState} @@ -69,6 +69,115 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int bitField0_; + private int featureStateCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object featureState_; + + public enum FeatureStateCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + RBACROLEBINDINGACTUATION(120), + FEATURESTATE_NOT_SET(0); + private final int value; + + private FeatureStateCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FeatureStateCase valueOf(int value) { + return forNumber(value); + } + + public static FeatureStateCase forNumber(int value) { + switch (value) { + case 120: + return RBACROLEBINDINGACTUATION; + case 0: + return FEATURESTATE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public FeatureStateCase getFeatureStateCase() { + return FeatureStateCase.forNumber(featureStateCase_); + } + + public static final int RBACROLEBINDINGACTUATION_FIELD_NUMBER = 120; + + /** + * + * + *
            +   * RBAC Role Binding Actuation feature state
            +   * 
            + * + * + * .google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState rbacrolebindingactuation = 120; + * + * + * @return Whether the rbacrolebindingactuation field is set. + */ + @java.lang.Override + public boolean hasRbacrolebindingactuation() { + return featureStateCase_ == 120; + } + + /** + * + * + *
            +   * RBAC Role Binding Actuation feature state
            +   * 
            + * + * + * .google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState rbacrolebindingactuation = 120; + * + * + * @return The rbacrolebindingactuation. + */ + @java.lang.Override + public com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState + getRbacrolebindingactuation() { + if (featureStateCase_ == 120) { + return (com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState) featureState_; + } + return com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState.getDefaultInstance(); + } + + /** + * + * + *
            +   * RBAC Role Binding Actuation feature state
            +   * 
            + * + * + * .google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState rbacrolebindingactuation = 120; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureStateOrBuilder + getRbacrolebindingactuationOrBuilder() { + if (featureStateCase_ == 120) { + return (com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState) featureState_; + } + return com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState.getDefaultInstance(); + } + public static final int STATE_FIELD_NUMBER = 1; private com.google.cloud.gkehub.v1.FeatureState state_; @@ -76,7 +185,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
            -   * Output only. The "running state" of the Feature in this Hub.
            +   * Output only. The "running state" of the Feature in this Fleet.
                * 
            * * @@ -94,7 +203,7 @@ public boolean hasState() { * * *
            -   * Output only. The "running state" of the Feature in this Hub.
            +   * Output only. The "running state" of the Feature in this Fleet.
                * 
            * * @@ -112,7 +221,7 @@ public com.google.cloud.gkehub.v1.FeatureState getState() { * * *
            -   * Output only. The "running state" of the Feature in this Hub.
            +   * Output only. The "running state" of the Feature in this Fleet.
                * 
            * * @@ -141,6 +250,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getState()); } + if (featureStateCase_ == 120) { + output.writeMessage( + 120, (com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState) featureState_); + } getUnknownFields().writeTo(output); } @@ -153,6 +266,12 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getState()); } + if (featureStateCase_ == 120) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 120, + (com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState) featureState_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -173,6 +292,15 @@ public boolean equals(final java.lang.Object obj) { if (hasState()) { if (!getState().equals(other.getState())) return false; } + if (!getFeatureStateCase().equals(other.getFeatureStateCase())) return false; + switch (featureStateCase_) { + case 120: + if (!getRbacrolebindingactuation().equals(other.getRbacrolebindingactuation())) + return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -188,6 +316,14 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + getState().hashCode(); } + switch (featureStateCase_) { + case 120: + hash = (37 * hash) + RBACROLEBINDINGACTUATION_FIELD_NUMBER; + hash = (53 * hash) + getRbacrolebindingactuation().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -293,7 +429,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
            -   * CommonFeatureState contains Hub-wide Feature status information.
            +   * CommonFeatureState contains Fleet-wide Feature status information.
                * 
            * * Protobuf type {@code google.cloud.gkehub.v1.CommonFeatureState} @@ -337,11 +473,16 @@ private void maybeForceBuilderInitialization() { public Builder clear() { super.clear(); bitField0_ = 0; + if (rbacrolebindingactuationBuilder_ != null) { + rbacrolebindingactuationBuilder_.clear(); + } state_ = null; if (stateBuilder_ != null) { stateBuilder_.dispose(); stateBuilder_ = null; } + featureStateCase_ = 0; + featureState_ = null; return this; } @@ -372,6 +513,7 @@ public com.google.cloud.gkehub.v1.CommonFeatureState buildPartial() { if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); onBuilt(); return result; } @@ -379,13 +521,21 @@ public com.google.cloud.gkehub.v1.CommonFeatureState buildPartial() { private void buildPartial0(com.google.cloud.gkehub.v1.CommonFeatureState result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { + if (((from_bitField0_ & 0x00000002) != 0)) { result.state_ = stateBuilder_ == null ? state_ : stateBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } + private void buildPartialOneofs(com.google.cloud.gkehub.v1.CommonFeatureState result) { + result.featureStateCase_ = featureStateCase_; + result.featureState_ = this.featureState_; + if (featureStateCase_ == 120 && rbacrolebindingactuationBuilder_ != null) { + result.featureState_ = rbacrolebindingactuationBuilder_.build(); + } + } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.gkehub.v1.CommonFeatureState) { @@ -401,6 +551,17 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1.CommonFeatureState other) { if (other.hasState()) { mergeState(other.getState()); } + switch (other.getFeatureStateCase()) { + case RBACROLEBINDINGACTUATION: + { + mergeRbacrolebindingactuation(other.getRbacrolebindingactuation()); + break; + } + case FEATURESTATE_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -430,9 +591,17 @@ public Builder mergeFrom( case 10: { input.readMessage(internalGetStateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; break; } // case 10 + case 962: + { + input.readMessage( + internalGetRbacrolebindingactuationFieldBuilder().getBuilder(), + extensionRegistry); + featureStateCase_ = 120; + break; + } // case 962 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -450,8 +619,270 @@ public Builder mergeFrom( return this; } + private int featureStateCase_ = 0; + private java.lang.Object featureState_; + + public FeatureStateCase getFeatureStateCase() { + return FeatureStateCase.forNumber(featureStateCase_); + } + + public Builder clearFeatureState() { + featureStateCase_ = 0; + featureState_ = null; + onChanged(); + return this; + } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState, + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState.Builder, + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureStateOrBuilder> + rbacrolebindingactuationBuilder_; + + /** + * + * + *
            +     * RBAC Role Binding Actuation feature state
            +     * 
            + * + * + * .google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState rbacrolebindingactuation = 120; + * + * + * @return Whether the rbacrolebindingactuation field is set. + */ + @java.lang.Override + public boolean hasRbacrolebindingactuation() { + return featureStateCase_ == 120; + } + + /** + * + * + *
            +     * RBAC Role Binding Actuation feature state
            +     * 
            + * + * + * .google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState rbacrolebindingactuation = 120; + * + * + * @return The rbacrolebindingactuation. + */ + @java.lang.Override + public com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState + getRbacrolebindingactuation() { + if (rbacrolebindingactuationBuilder_ == null) { + if (featureStateCase_ == 120) { + return (com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState) featureState_; + } + return com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState + .getDefaultInstance(); + } else { + if (featureStateCase_ == 120) { + return rbacrolebindingactuationBuilder_.getMessage(); + } + return com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState + .getDefaultInstance(); + } + } + + /** + * + * + *
            +     * RBAC Role Binding Actuation feature state
            +     * 
            + * + * + * .google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState rbacrolebindingactuation = 120; + * + */ + public Builder setRbacrolebindingactuation( + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState value) { + if (rbacrolebindingactuationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + featureState_ = value; + onChanged(); + } else { + rbacrolebindingactuationBuilder_.setMessage(value); + } + featureStateCase_ = 120; + return this; + } + + /** + * + * + *
            +     * RBAC Role Binding Actuation feature state
            +     * 
            + * + * + * .google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState rbacrolebindingactuation = 120; + * + */ + public Builder setRbacrolebindingactuation( + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState.Builder builderForValue) { + if (rbacrolebindingactuationBuilder_ == null) { + featureState_ = builderForValue.build(); + onChanged(); + } else { + rbacrolebindingactuationBuilder_.setMessage(builderForValue.build()); + } + featureStateCase_ = 120; + return this; + } + + /** + * + * + *
            +     * RBAC Role Binding Actuation feature state
            +     * 
            + * + * + * .google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState rbacrolebindingactuation = 120; + * + */ + public Builder mergeRbacrolebindingactuation( + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState value) { + if (rbacrolebindingactuationBuilder_ == null) { + if (featureStateCase_ == 120 + && featureState_ + != com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState + .getDefaultInstance()) { + featureState_ = + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState.newBuilder( + (com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState) + featureState_) + .mergeFrom(value) + .buildPartial(); + } else { + featureState_ = value; + } + onChanged(); + } else { + if (featureStateCase_ == 120) { + rbacrolebindingactuationBuilder_.mergeFrom(value); + } else { + rbacrolebindingactuationBuilder_.setMessage(value); + } + } + featureStateCase_ = 120; + return this; + } + + /** + * + * + *
            +     * RBAC Role Binding Actuation feature state
            +     * 
            + * + * + * .google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState rbacrolebindingactuation = 120; + * + */ + public Builder clearRbacrolebindingactuation() { + if (rbacrolebindingactuationBuilder_ == null) { + if (featureStateCase_ == 120) { + featureStateCase_ = 0; + featureState_ = null; + onChanged(); + } + } else { + if (featureStateCase_ == 120) { + featureStateCase_ = 0; + featureState_ = null; + } + rbacrolebindingactuationBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * RBAC Role Binding Actuation feature state
            +     * 
            + * + * + * .google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState rbacrolebindingactuation = 120; + * + */ + public com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState.Builder + getRbacrolebindingactuationBuilder() { + return internalGetRbacrolebindingactuationFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * RBAC Role Binding Actuation feature state
            +     * 
            + * + * + * .google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState rbacrolebindingactuation = 120; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureStateOrBuilder + getRbacrolebindingactuationOrBuilder() { + if ((featureStateCase_ == 120) && (rbacrolebindingactuationBuilder_ != null)) { + return rbacrolebindingactuationBuilder_.getMessageOrBuilder(); + } else { + if (featureStateCase_ == 120) { + return (com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState) featureState_; + } + return com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState + .getDefaultInstance(); + } + } + + /** + * + * + *
            +     * RBAC Role Binding Actuation feature state
            +     * 
            + * + * + * .google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState rbacrolebindingactuation = 120; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState, + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState.Builder, + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureStateOrBuilder> + internalGetRbacrolebindingactuationFieldBuilder() { + if (rbacrolebindingactuationBuilder_ == null) { + if (!(featureStateCase_ == 120)) { + featureState_ = + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState.getDefaultInstance(); + } + rbacrolebindingactuationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState, + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState.Builder, + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureStateOrBuilder>( + (com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState) featureState_, + getParentForChildren(), + isClean()); + featureState_ = null; + } + featureStateCase_ = 120; + onChanged(); + return rbacrolebindingactuationBuilder_; + } + private com.google.cloud.gkehub.v1.FeatureState state_; private com.google.protobuf.SingleFieldBuilder< com.google.cloud.gkehub.v1.FeatureState, @@ -463,7 +894,7 @@ public Builder mergeFrom( * * *
            -     * Output only. The "running state" of the Feature in this Hub.
            +     * Output only. The "running state" of the Feature in this Fleet.
                  * 
            * * @@ -473,14 +904,14 @@ public Builder mergeFrom( * @return Whether the state field is set. */ public boolean hasState() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** * * *
            -     * Output only. The "running state" of the Feature in this Hub.
            +     * Output only. The "running state" of the Feature in this Fleet.
                  * 
            * * @@ -503,7 +934,7 @@ public com.google.cloud.gkehub.v1.FeatureState getState() { * * *
            -     * Output only. The "running state" of the Feature in this Hub.
            +     * Output only. The "running state" of the Feature in this Fleet.
                  * 
            * * @@ -519,7 +950,7 @@ public Builder setState(com.google.cloud.gkehub.v1.FeatureState value) { } else { stateBuilder_.setMessage(value); } - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -528,7 +959,7 @@ public Builder setState(com.google.cloud.gkehub.v1.FeatureState value) { * * *
            -     * Output only. The "running state" of the Feature in this Hub.
            +     * Output only. The "running state" of the Feature in this Fleet.
                  * 
            * * @@ -541,7 +972,7 @@ public Builder setState(com.google.cloud.gkehub.v1.FeatureState.Builder builderF } else { stateBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -550,7 +981,7 @@ public Builder setState(com.google.cloud.gkehub.v1.FeatureState.Builder builderF * * *
            -     * Output only. The "running state" of the Feature in this Hub.
            +     * Output only. The "running state" of the Feature in this Fleet.
                  * 
            * * @@ -559,7 +990,7 @@ public Builder setState(com.google.cloud.gkehub.v1.FeatureState.Builder builderF */ public Builder mergeState(com.google.cloud.gkehub.v1.FeatureState value) { if (stateBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) + if (((bitField0_ & 0x00000002) != 0) && state_ != null && state_ != com.google.cloud.gkehub.v1.FeatureState.getDefaultInstance()) { getStateBuilder().mergeFrom(value); @@ -570,7 +1001,7 @@ public Builder mergeState(com.google.cloud.gkehub.v1.FeatureState value) { stateBuilder_.mergeFrom(value); } if (state_ != null) { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); } return this; @@ -580,7 +1011,7 @@ public Builder mergeState(com.google.cloud.gkehub.v1.FeatureState value) { * * *
            -     * Output only. The "running state" of the Feature in this Hub.
            +     * Output only. The "running state" of the Feature in this Fleet.
                  * 
            * * @@ -588,7 +1019,7 @@ public Builder mergeState(com.google.cloud.gkehub.v1.FeatureState value) { * */ public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); state_ = null; if (stateBuilder_ != null) { stateBuilder_.dispose(); @@ -602,7 +1033,7 @@ public Builder clearState() { * * *
            -     * Output only. The "running state" of the Feature in this Hub.
            +     * Output only. The "running state" of the Feature in this Fleet.
                  * 
            * * @@ -610,7 +1041,7 @@ public Builder clearState() { * */ public com.google.cloud.gkehub.v1.FeatureState.Builder getStateBuilder() { - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return internalGetStateFieldBuilder().getBuilder(); } @@ -619,7 +1050,7 @@ public com.google.cloud.gkehub.v1.FeatureState.Builder getStateBuilder() { * * *
            -     * Output only. The "running state" of the Feature in this Hub.
            +     * Output only. The "running state" of the Feature in this Fleet.
                  * 
            * * @@ -640,7 +1071,7 @@ public com.google.cloud.gkehub.v1.FeatureStateOrBuilder getStateOrBuilder() { * * *
            -     * Output only. The "running state" of the Feature in this Hub.
            +     * Output only. The "running state" of the Feature in this Fleet.
                  * 
            * * diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureStateOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureStateOrBuilder.java index 744cec696e82..e6ccdf2930b0 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureStateOrBuilder.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureStateOrBuilder.java @@ -30,7 +30,51 @@ public interface CommonFeatureStateOrBuilder * * *
            -   * Output only. The "running state" of the Feature in this Hub.
            +   * RBAC Role Binding Actuation feature state
            +   * 
            + * + * + * .google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState rbacrolebindingactuation = 120; + * + * + * @return Whether the rbacrolebindingactuation field is set. + */ + boolean hasRbacrolebindingactuation(); + + /** + * + * + *
            +   * RBAC Role Binding Actuation feature state
            +   * 
            + * + * + * .google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState rbacrolebindingactuation = 120; + * + * + * @return The rbacrolebindingactuation. + */ + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState getRbacrolebindingactuation(); + + /** + * + * + *
            +   * RBAC Role Binding Actuation feature state
            +   * 
            + * + * + * .google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState rbacrolebindingactuation = 120; + * + */ + com.google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureStateOrBuilder + getRbacrolebindingactuationOrBuilder(); + + /** + * + * + *
            +   * Output only. The "running state" of the Feature in this Fleet.
                * 
            * * @@ -45,7 +89,7 @@ public interface CommonFeatureStateOrBuilder * * *
            -   * Output only. The "running state" of the Feature in this Hub.
            +   * Output only. The "running state" of the Feature in this Fleet.
                * 
            * * @@ -60,7 +104,7 @@ public interface CommonFeatureStateOrBuilder * * *
            -   * Output only. The "running state" of the Feature in this Hub.
            +   * Output only. The "running state" of the Feature in this Fleet.
                * 
            * * @@ -68,4 +112,6 @@ public interface CommonFeatureStateOrBuilder * */ com.google.cloud.gkehub.v1.FeatureStateOrBuilder getStateOrBuilder(); + + com.google.cloud.gkehub.v1.CommonFeatureState.FeatureStateCase getFeatureStateCase(); } diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CompliancePostureConfig.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CompliancePostureConfig.java new file mode 100644 index 000000000000..90f9f0d5538c --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CompliancePostureConfig.java @@ -0,0 +1,1940 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * CompliancePostureConfig defines the settings needed to enable/disable
            + * features for the Compliance Posture.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.CompliancePostureConfig} + */ +@com.google.protobuf.Generated +public final class CompliancePostureConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.CompliancePostureConfig) + CompliancePostureConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CompliancePostureConfig"); + } + + // Use CompliancePostureConfig.newBuilder() to construct. + private CompliancePostureConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CompliancePostureConfig() { + mode_ = 0; + complianceStandards_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.CompliancePostureConfig.class, + com.google.cloud.gkehub.v1.CompliancePostureConfig.Builder.class); + } + + /** Protobuf enum {@code google.cloud.gkehub.v1.CompliancePostureConfig.Mode} */ + public enum Mode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * Default value not specified.
            +     * 
            + * + * MODE_UNSPECIFIED = 0; + */ + MODE_UNSPECIFIED(0), + /** + * + * + *
            +     * Disables Compliance Posture features on the cluster.
            +     * 
            + * + * DISABLED = 1; + */ + DISABLED(1), + /** + * + * + *
            +     * Enables Compliance Posture features on the cluster.
            +     * 
            + * + * ENABLED = 2; + */ + ENABLED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Mode"); + } + + /** + * + * + *
            +     * Default value not specified.
            +     * 
            + * + * MODE_UNSPECIFIED = 0; + */ + public static final int MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * Disables Compliance Posture features on the cluster.
            +     * 
            + * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + + /** + * + * + *
            +     * Enables Compliance Posture features on the cluster.
            +     * 
            + * + * ENABLED = 2; + */ + public static final int ENABLED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Mode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Mode forNumber(int value) { + switch (value) { + case 0: + return MODE_UNSPECIFIED; + case 1: + return DISABLED; + case 2: + return ENABLED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Mode findValueByNumber(int number) { + return Mode.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.v1.CompliancePostureConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Mode[] VALUES = values(); + + public static Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Mode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.v1.CompliancePostureConfig.Mode) + } + + public interface ComplianceStandardOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Name of the compliance standard.
            +     * 
            + * + * string standard = 1; + * + * @return The standard. + */ + java.lang.String getStandard(); + + /** + * + * + *
            +     * Name of the compliance standard.
            +     * 
            + * + * string standard = 1; + * + * @return The bytes for standard. + */ + com.google.protobuf.ByteString getStandardBytes(); + } + + /** Protobuf type {@code google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard} */ + public static final class ComplianceStandard extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard) + ComplianceStandardOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ComplianceStandard"); + } + + // Use ComplianceStandard.newBuilder() to construct. + private ComplianceStandard(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ComplianceStandard() { + standard_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_ComplianceStandard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_ComplianceStandard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard.class, + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard.Builder.class); + } + + public static final int STANDARD_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object standard_ = ""; + + /** + * + * + *
            +     * Name of the compliance standard.
            +     * 
            + * + * string standard = 1; + * + * @return The standard. + */ + @java.lang.Override + public java.lang.String getStandard() { + java.lang.Object ref = standard_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + standard_ = s; + return s; + } + } + + /** + * + * + *
            +     * Name of the compliance standard.
            +     * 
            + * + * string standard = 1; + * + * @return The bytes for standard. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStandardBytes() { + java.lang.Object ref = standard_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + standard_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(standard_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, standard_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(standard_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, standard_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard other = + (com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard) obj; + + if (!getStandard().equals(other.getStandard())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STANDARD_FIELD_NUMBER; + hash = (53 * hash) + getStandard().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** Protobuf type {@code google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard} */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard) + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandardOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_ComplianceStandard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_ComplianceStandard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard.class, + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard.Builder + .class); + } + + // Construct using + // com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + standard_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_ComplianceStandard_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard + getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard build() { + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard buildPartial() { + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard result = + new com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.standard_ = standard_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard) { + return mergeFrom( + (com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard other) { + if (other + == com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard + .getDefaultInstance()) return this; + if (!other.getStandard().isEmpty()) { + standard_ = other.standard_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + standard_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object standard_ = ""; + + /** + * + * + *
            +       * Name of the compliance standard.
            +       * 
            + * + * string standard = 1; + * + * @return The standard. + */ + public java.lang.String getStandard() { + java.lang.Object ref = standard_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + standard_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Name of the compliance standard.
            +       * 
            + * + * string standard = 1; + * + * @return The bytes for standard. + */ + public com.google.protobuf.ByteString getStandardBytes() { + java.lang.Object ref = standard_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + standard_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Name of the compliance standard.
            +       * 
            + * + * string standard = 1; + * + * @param value The standard to set. + * @return This builder for chaining. + */ + public Builder setStandard(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + standard_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Name of the compliance standard.
            +       * 
            + * + * string standard = 1; + * + * @return This builder for chaining. + */ + public Builder clearStandard() { + standard_ = getDefaultInstance().getStandard(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Name of the compliance standard.
            +       * 
            + * + * string standard = 1; + * + * @param value The bytes for standard to set. + * @return This builder for chaining. + */ + public Builder setStandardBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + standard_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard) + private static final com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard(); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComplianceStandard parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int MODE_FIELD_NUMBER = 1; + private int mode_ = 0; + + /** + * + * + *
            +   * Defines the enablement mode for Compliance Posture.
            +   * 
            + * + * .google.cloud.gkehub.v1.CompliancePostureConfig.Mode mode = 1; + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + + /** + * + * + *
            +   * Defines the enablement mode for Compliance Posture.
            +   * 
            + * + * .google.cloud.gkehub.v1.CompliancePostureConfig.Mode mode = 1; + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.CompliancePostureConfig.Mode getMode() { + com.google.cloud.gkehub.v1.CompliancePostureConfig.Mode result = + com.google.cloud.gkehub.v1.CompliancePostureConfig.Mode.forNumber(mode_); + return result == null + ? com.google.cloud.gkehub.v1.CompliancePostureConfig.Mode.UNRECOGNIZED + : result; + } + + public static final int COMPLIANCE_STANDARDS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + complianceStandards_; + + /** + * + * + *
            +   * List of enabled compliance standards.
            +   * 
            + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + @java.lang.Override + public java.util.List + getComplianceStandardsList() { + return complianceStandards_; + } + + /** + * + * + *
            +   * List of enabled compliance standards.
            +   * 
            + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandardOrBuilder> + getComplianceStandardsOrBuilderList() { + return complianceStandards_; + } + + /** + * + * + *
            +   * List of enabled compliance standards.
            +   * 
            + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + @java.lang.Override + public int getComplianceStandardsCount() { + return complianceStandards_.size(); + } + + /** + * + * + *
            +   * List of enabled compliance standards.
            +   * 
            + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard + getComplianceStandards(int index) { + return complianceStandards_.get(index); + } + + /** + * + * + *
            +   * List of enabled compliance standards.
            +   * 
            + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandardOrBuilder + getComplianceStandardsOrBuilder(int index) { + return complianceStandards_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (mode_ + != com.google.cloud.gkehub.v1.CompliancePostureConfig.Mode.MODE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, mode_); + } + for (int i = 0; i < complianceStandards_.size(); i++) { + output.writeMessage(2, complianceStandards_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (mode_ + != com.google.cloud.gkehub.v1.CompliancePostureConfig.Mode.MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, mode_); + } + for (int i = 0; i < complianceStandards_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, complianceStandards_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.CompliancePostureConfig)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.CompliancePostureConfig other = + (com.google.cloud.gkehub.v1.CompliancePostureConfig) obj; + + if (mode_ != other.mode_) return false; + if (!getComplianceStandardsList().equals(other.getComplianceStandardsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MODE_FIELD_NUMBER; + hash = (53 * hash) + mode_; + if (getComplianceStandardsCount() > 0) { + hash = (37 * hash) + COMPLIANCE_STANDARDS_FIELD_NUMBER; + hash = (53 * hash) + getComplianceStandardsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkehub.v1.CompliancePostureConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * CompliancePostureConfig defines the settings needed to enable/disable
            +   * features for the Compliance Posture.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.CompliancePostureConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.CompliancePostureConfig) + com.google.cloud.gkehub.v1.CompliancePostureConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.CompliancePostureConfig.class, + com.google.cloud.gkehub.v1.CompliancePostureConfig.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.CompliancePostureConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mode_ = 0; + if (complianceStandardsBuilder_ == null) { + complianceStandards_ = java.util.Collections.emptyList(); + } else { + complianceStandards_ = null; + complianceStandardsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CompliancePostureConfig getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.CompliancePostureConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CompliancePostureConfig build() { + com.google.cloud.gkehub.v1.CompliancePostureConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CompliancePostureConfig buildPartial() { + com.google.cloud.gkehub.v1.CompliancePostureConfig result = + new com.google.cloud.gkehub.v1.CompliancePostureConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gkehub.v1.CompliancePostureConfig result) { + if (complianceStandardsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + complianceStandards_ = java.util.Collections.unmodifiableList(complianceStandards_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.complianceStandards_ = complianceStandards_; + } else { + result.complianceStandards_ = complianceStandardsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.gkehub.v1.CompliancePostureConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mode_ = mode_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.CompliancePostureConfig) { + return mergeFrom((com.google.cloud.gkehub.v1.CompliancePostureConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.CompliancePostureConfig other) { + if (other == com.google.cloud.gkehub.v1.CompliancePostureConfig.getDefaultInstance()) + return this; + if (other.mode_ != 0) { + setModeValue(other.getModeValue()); + } + if (complianceStandardsBuilder_ == null) { + if (!other.complianceStandards_.isEmpty()) { + if (complianceStandards_.isEmpty()) { + complianceStandards_ = other.complianceStandards_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureComplianceStandardsIsMutable(); + complianceStandards_.addAll(other.complianceStandards_); + } + onChanged(); + } + } else { + if (!other.complianceStandards_.isEmpty()) { + if (complianceStandardsBuilder_.isEmpty()) { + complianceStandardsBuilder_.dispose(); + complianceStandardsBuilder_ = null; + complianceStandards_ = other.complianceStandards_; + bitField0_ = (bitField0_ & ~0x00000002); + complianceStandardsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetComplianceStandardsFieldBuilder() + : null; + } else { + complianceStandardsBuilder_.addAllMessages(other.complianceStandards_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + mode_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard m = + input.readMessage( + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard + .parser(), + extensionRegistry); + if (complianceStandardsBuilder_ == null) { + ensureComplianceStandardsIsMutable(); + complianceStandards_.add(m); + } else { + complianceStandardsBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int mode_ = 0; + + /** + * + * + *
            +     * Defines the enablement mode for Compliance Posture.
            +     * 
            + * + * .google.cloud.gkehub.v1.CompliancePostureConfig.Mode mode = 1; + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + + /** + * + * + *
            +     * Defines the enablement mode for Compliance Posture.
            +     * 
            + * + * .google.cloud.gkehub.v1.CompliancePostureConfig.Mode mode = 1; + * + * @param value The enum numeric value on the wire for mode to set. + * @return This builder for chaining. + */ + public Builder setModeValue(int value) { + mode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Defines the enablement mode for Compliance Posture.
            +     * 
            + * + * .google.cloud.gkehub.v1.CompliancePostureConfig.Mode mode = 1; + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.CompliancePostureConfig.Mode getMode() { + com.google.cloud.gkehub.v1.CompliancePostureConfig.Mode result = + com.google.cloud.gkehub.v1.CompliancePostureConfig.Mode.forNumber(mode_); + return result == null + ? com.google.cloud.gkehub.v1.CompliancePostureConfig.Mode.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Defines the enablement mode for Compliance Posture.
            +     * 
            + * + * .google.cloud.gkehub.v1.CompliancePostureConfig.Mode mode = 1; + * + * @param value The mode to set. + * @return This builder for chaining. + */ + public Builder setMode(com.google.cloud.gkehub.v1.CompliancePostureConfig.Mode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + mode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Defines the enablement mode for Compliance Posture.
            +     * 
            + * + * .google.cloud.gkehub.v1.CompliancePostureConfig.Mode mode = 1; + * + * @return This builder for chaining. + */ + public Builder clearMode() { + bitField0_ = (bitField0_ & ~0x00000001); + mode_ = 0; + onChanged(); + return this; + } + + private java.util.List + complianceStandards_ = java.util.Collections.emptyList(); + + private void ensureComplianceStandardsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + complianceStandards_ = + new java.util.ArrayList< + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard>( + complianceStandards_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard, + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard.Builder, + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandardOrBuilder> + complianceStandardsBuilder_; + + /** + * + * + *
            +     * List of enabled compliance standards.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public java.util.List + getComplianceStandardsList() { + if (complianceStandardsBuilder_ == null) { + return java.util.Collections.unmodifiableList(complianceStandards_); + } else { + return complianceStandardsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * List of enabled compliance standards.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public int getComplianceStandardsCount() { + if (complianceStandardsBuilder_ == null) { + return complianceStandards_.size(); + } else { + return complianceStandardsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * List of enabled compliance standards.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard + getComplianceStandards(int index) { + if (complianceStandardsBuilder_ == null) { + return complianceStandards_.get(index); + } else { + return complianceStandardsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * List of enabled compliance standards.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public Builder setComplianceStandards( + int index, com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard value) { + if (complianceStandardsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComplianceStandardsIsMutable(); + complianceStandards_.set(index, value); + onChanged(); + } else { + complianceStandardsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * List of enabled compliance standards.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public Builder setComplianceStandards( + int index, + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard.Builder + builderForValue) { + if (complianceStandardsBuilder_ == null) { + ensureComplianceStandardsIsMutable(); + complianceStandards_.set(index, builderForValue.build()); + onChanged(); + } else { + complianceStandardsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * List of enabled compliance standards.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public Builder addComplianceStandards( + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard value) { + if (complianceStandardsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComplianceStandardsIsMutable(); + complianceStandards_.add(value); + onChanged(); + } else { + complianceStandardsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * List of enabled compliance standards.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public Builder addComplianceStandards( + int index, com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard value) { + if (complianceStandardsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComplianceStandardsIsMutable(); + complianceStandards_.add(index, value); + onChanged(); + } else { + complianceStandardsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * List of enabled compliance standards.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public Builder addComplianceStandards( + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard.Builder + builderForValue) { + if (complianceStandardsBuilder_ == null) { + ensureComplianceStandardsIsMutable(); + complianceStandards_.add(builderForValue.build()); + onChanged(); + } else { + complianceStandardsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * List of enabled compliance standards.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public Builder addComplianceStandards( + int index, + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard.Builder + builderForValue) { + if (complianceStandardsBuilder_ == null) { + ensureComplianceStandardsIsMutable(); + complianceStandards_.add(index, builderForValue.build()); + onChanged(); + } else { + complianceStandardsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * List of enabled compliance standards.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public Builder addAllComplianceStandards( + java.lang.Iterable< + ? extends com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard> + values) { + if (complianceStandardsBuilder_ == null) { + ensureComplianceStandardsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, complianceStandards_); + onChanged(); + } else { + complianceStandardsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * List of enabled compliance standards.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public Builder clearComplianceStandards() { + if (complianceStandardsBuilder_ == null) { + complianceStandards_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + complianceStandardsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * List of enabled compliance standards.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public Builder removeComplianceStandards(int index) { + if (complianceStandardsBuilder_ == null) { + ensureComplianceStandardsIsMutable(); + complianceStandards_.remove(index); + onChanged(); + } else { + complianceStandardsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * List of enabled compliance standards.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard.Builder + getComplianceStandardsBuilder(int index) { + return internalGetComplianceStandardsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * List of enabled compliance standards.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandardOrBuilder + getComplianceStandardsOrBuilder(int index) { + if (complianceStandardsBuilder_ == null) { + return complianceStandards_.get(index); + } else { + return complianceStandardsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * List of enabled compliance standards.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public java.util.List< + ? extends + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandardOrBuilder> + getComplianceStandardsOrBuilderList() { + if (complianceStandardsBuilder_ != null) { + return complianceStandardsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(complianceStandards_); + } + } + + /** + * + * + *
            +     * List of enabled compliance standards.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard.Builder + addComplianceStandardsBuilder() { + return internalGetComplianceStandardsFieldBuilder() + .addBuilder( + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard + .getDefaultInstance()); + } + + /** + * + * + *
            +     * List of enabled compliance standards.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard.Builder + addComplianceStandardsBuilder(int index) { + return internalGetComplianceStandardsFieldBuilder() + .addBuilder( + index, + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard + .getDefaultInstance()); + } + + /** + * + * + *
            +     * List of enabled compliance standards.
            +     * 
            + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + public java.util.List< + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard.Builder> + getComplianceStandardsBuilderList() { + return internalGetComplianceStandardsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard, + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard.Builder, + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandardOrBuilder> + internalGetComplianceStandardsFieldBuilder() { + if (complianceStandardsBuilder_ == null) { + complianceStandardsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard, + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard.Builder, + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandardOrBuilder>( + complianceStandards_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + complianceStandards_ = null; + } + return complianceStandardsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.CompliancePostureConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.CompliancePostureConfig) + private static final com.google.cloud.gkehub.v1.CompliancePostureConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.CompliancePostureConfig(); + } + + public static com.google.cloud.gkehub.v1.CompliancePostureConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompliancePostureConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CompliancePostureConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CompliancePostureConfigOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CompliancePostureConfigOrBuilder.java new file mode 100644 index 000000000000..9fcc03555517 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CompliancePostureConfigOrBuilder.java @@ -0,0 +1,124 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface CompliancePostureConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.CompliancePostureConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Defines the enablement mode for Compliance Posture.
            +   * 
            + * + * .google.cloud.gkehub.v1.CompliancePostureConfig.Mode mode = 1; + * + * @return The enum numeric value on the wire for mode. + */ + int getModeValue(); + + /** + * + * + *
            +   * Defines the enablement mode for Compliance Posture.
            +   * 
            + * + * .google.cloud.gkehub.v1.CompliancePostureConfig.Mode mode = 1; + * + * @return The mode. + */ + com.google.cloud.gkehub.v1.CompliancePostureConfig.Mode getMode(); + + /** + * + * + *
            +   * List of enabled compliance standards.
            +   * 
            + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + java.util.List + getComplianceStandardsList(); + + /** + * + * + *
            +   * List of enabled compliance standards.
            +   * 
            + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard getComplianceStandards( + int index); + + /** + * + * + *
            +   * List of enabled compliance standards.
            +   * 
            + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + int getComplianceStandardsCount(); + + /** + * + * + *
            +   * List of enabled compliance standards.
            +   * 
            + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + java.util.List< + ? extends com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandardOrBuilder> + getComplianceStandardsOrBuilderList(); + + /** + * + * + *
            +   * List of enabled compliance standards.
            +   * 
            + * + * + * repeated .google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; + * + */ + com.google.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandardOrBuilder + getComplianceStandardsOrBuilder(int index); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequest.java index 29ce73aad012..bf24501ced32 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequest.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequest.java @@ -239,7 +239,7 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder() { * * *
            -   * Optional. A request ID to identify requests. Specify a unique request ID
            +   * A request ID to identify requests. Specify a unique request ID
                * so that if you must retry your request, the server will know to ignore
                * the request if it has already been completed. The server will guarantee
                * that for at least 60 minutes after the first request.
            @@ -275,7 +275,7 @@ public java.lang.String getRequestId() {
                *
                *
                * 
            -   * Optional. A request ID to identify requests. Specify a unique request ID
            +   * A request ID to identify requests. Specify a unique request ID
                * so that if you must retry your request, the server will know to ignore
                * the request if it has already been completed. The server will guarantee
                * that for at least 60 minutes after the first request.
            @@ -1136,7 +1136,7 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder() {
                  *
                  *
                  * 
            -     * Optional. A request ID to identify requests. Specify a unique request ID
            +     * A request ID to identify requests. Specify a unique request ID
                  * so that if you must retry your request, the server will know to ignore
                  * the request if it has already been completed. The server will guarantee
                  * that for at least 60 minutes after the first request.
            @@ -1171,7 +1171,7 @@ public java.lang.String getRequestId() {
                  *
                  *
                  * 
            -     * Optional. A request ID to identify requests. Specify a unique request ID
            +     * A request ID to identify requests. Specify a unique request ID
                  * so that if you must retry your request, the server will know to ignore
                  * the request if it has already been completed. The server will guarantee
                  * that for at least 60 minutes after the first request.
            @@ -1206,7 +1206,7 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
                  *
                  *
                  * 
            -     * Optional. A request ID to identify requests. Specify a unique request ID
            +     * A request ID to identify requests. Specify a unique request ID
                  * so that if you must retry your request, the server will know to ignore
                  * the request if it has already been completed. The server will guarantee
                  * that for at least 60 minutes after the first request.
            @@ -1240,7 +1240,7 @@ public Builder setRequestId(java.lang.String value) {
                  *
                  *
                  * 
            -     * Optional. A request ID to identify requests. Specify a unique request ID
            +     * A request ID to identify requests. Specify a unique request ID
                  * so that if you must retry your request, the server will know to ignore
                  * the request if it has already been completed. The server will guarantee
                  * that for at least 60 minutes after the first request.
            @@ -1270,7 +1270,7 @@ public Builder clearRequestId() {
                  *
                  *
                  * 
            -     * Optional. A request ID to identify requests. Specify a unique request ID
            +     * A request ID to identify requests. Specify a unique request ID
                  * so that if you must retry your request, the server will know to ignore
                  * the request if it has already been completed. The server will guarantee
                  * that for at least 60 minutes after the first request.
            diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequestOrBuilder.java
            index 999bf3cec0e1..8c172ff38ddf 100644
            --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequestOrBuilder.java
            +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequestOrBuilder.java
            @@ -121,7 +121,7 @@ public interface CreateFeatureRequestOrBuilder
                *
                *
                * 
            -   * Optional. A request ID to identify requests. Specify a unique request ID
            +   * A request ID to identify requests. Specify a unique request ID
                * so that if you must retry your request, the server will know to ignore
                * the request if it has already been completed. The server will guarantee
                * that for at least 60 minutes after the first request.
            @@ -146,7 +146,7 @@ public interface CreateFeatureRequestOrBuilder
                *
                *
                * 
            -   * Optional. A request ID to identify requests. Specify a unique request ID
            +   * A request ID to identify requests. Specify a unique request ID
                * so that if you must retry your request, the server will know to ignore
                * the request if it has already been completed. The server will guarantee
                * that for at least 60 minutes after the first request.
            diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFleetRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFleetRequest.java
            new file mode 100644
            index 000000000000..4461ad74846b
            --- /dev/null
            +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFleetRequest.java
            @@ -0,0 +1,908 @@
            +/*
            + * Copyright 2026 Google LLC
            + *
            + * Licensed under the Apache License, Version 2.0 (the "License");
            + * you may not use this file except in compliance with the License.
            + * You may obtain a copy of the License at
            + *
            + *     https://www.apache.org/licenses/LICENSE-2.0
            + *
            + * Unless required by applicable law or agreed to in writing, software
            + * distributed under the License is distributed on an "AS IS" BASIS,
            + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            + * See the License for the specific language governing permissions and
            + * limitations under the License.
            + */
            +// Generated by the protocol buffer compiler.  DO NOT EDIT!
            +// NO CHECKED-IN PROTOBUF GENCODE
            +// source: google/cloud/gkehub/v1/service.proto
            +// Protobuf Java Version: 4.33.2
            +
            +package com.google.cloud.gkehub.v1;
            +
            +/**
            + *
            + *
            + * 
            + * Request message for the `GkeHub.CreateFleet` method.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.CreateFleetRequest} + */ +@com.google.protobuf.Generated +public final class CreateFleetRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.CreateFleetRequest) + CreateFleetRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateFleetRequest"); + } + + // Use CreateFleetRequest.newBuilder() to construct. + private CreateFleetRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateFleetRequest() { + parent_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateFleetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateFleetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.CreateFleetRequest.class, + com.google.cloud.gkehub.v1.CreateFleetRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The parent (project and location) where the Fleet will be
            +   * created. Specified in the format `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The parent (project and location) where the Fleet will be
            +   * created. Specified in the format `projects/*/locations/*`.
            +   * 
            + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FLEET_FIELD_NUMBER = 2; + private com.google.cloud.gkehub.v1.Fleet fleet_; + + /** + * + * + *
            +   * Required. The fleet to create.
            +   * 
            + * + * .google.cloud.gkehub.v1.Fleet fleet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the fleet field is set. + */ + @java.lang.Override + public boolean hasFleet() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. The fleet to create.
            +   * 
            + * + * .google.cloud.gkehub.v1.Fleet fleet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The fleet. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.Fleet getFleet() { + return fleet_ == null ? com.google.cloud.gkehub.v1.Fleet.getDefaultInstance() : fleet_; + } + + /** + * + * + *
            +   * Required. The fleet to create.
            +   * 
            + * + * .google.cloud.gkehub.v1.Fleet fleet = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.FleetOrBuilder getFleetOrBuilder() { + return fleet_ == null ? com.google.cloud.gkehub.v1.Fleet.getDefaultInstance() : fleet_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getFleet()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFleet()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.CreateFleetRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.CreateFleetRequest other = + (com.google.cloud.gkehub.v1.CreateFleetRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasFleet() != other.hasFleet()) return false; + if (hasFleet()) { + if (!getFleet().equals(other.getFleet())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasFleet()) { + hash = (37 * hash) + FLEET_FIELD_NUMBER; + hash = (53 * hash) + getFleet().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.CreateFleetRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateFleetRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateFleetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateFleetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateFleetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateFleetRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateFleetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateFleetRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateFleetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateFleetRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateFleetRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateFleetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkehub.v1.CreateFleetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for the `GkeHub.CreateFleet` method.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.CreateFleetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.CreateFleetRequest) + com.google.cloud.gkehub.v1.CreateFleetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateFleetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateFleetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.CreateFleetRequest.class, + com.google.cloud.gkehub.v1.CreateFleetRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.CreateFleetRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetFleetFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + fleet_ = null; + if (fleetBuilder_ != null) { + fleetBuilder_.dispose(); + fleetBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateFleetRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateFleetRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.CreateFleetRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateFleetRequest build() { + com.google.cloud.gkehub.v1.CreateFleetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateFleetRequest buildPartial() { + com.google.cloud.gkehub.v1.CreateFleetRequest result = + new com.google.cloud.gkehub.v1.CreateFleetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.CreateFleetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.fleet_ = fleetBuilder_ == null ? fleet_ : fleetBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.CreateFleetRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.CreateFleetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.CreateFleetRequest other) { + if (other == com.google.cloud.gkehub.v1.CreateFleetRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasFleet()) { + mergeFleet(other.getFleet()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetFleetFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
            +     * Required. The parent (project and location) where the Fleet will be
            +     * created. Specified in the format `projects/*/locations/*`.
            +     * 
            + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the Fleet will be
            +     * created. Specified in the format `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the Fleet will be
            +     * created. Specified in the format `projects/*/locations/*`.
            +     * 
            + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the Fleet will be
            +     * created. Specified in the format `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the Fleet will be
            +     * created. Specified in the format `projects/*/locations/*`.
            +     * 
            + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.gkehub.v1.Fleet fleet_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Fleet, + com.google.cloud.gkehub.v1.Fleet.Builder, + com.google.cloud.gkehub.v1.FleetOrBuilder> + fleetBuilder_; + + /** + * + * + *
            +     * Required. The fleet to create.
            +     * 
            + * + * .google.cloud.gkehub.v1.Fleet fleet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the fleet field is set. + */ + public boolean hasFleet() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Required. The fleet to create.
            +     * 
            + * + * .google.cloud.gkehub.v1.Fleet fleet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The fleet. + */ + public com.google.cloud.gkehub.v1.Fleet getFleet() { + if (fleetBuilder_ == null) { + return fleet_ == null ? com.google.cloud.gkehub.v1.Fleet.getDefaultInstance() : fleet_; + } else { + return fleetBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The fleet to create.
            +     * 
            + * + * .google.cloud.gkehub.v1.Fleet fleet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFleet(com.google.cloud.gkehub.v1.Fleet value) { + if (fleetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fleet_ = value; + } else { + fleetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The fleet to create.
            +     * 
            + * + * .google.cloud.gkehub.v1.Fleet fleet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFleet(com.google.cloud.gkehub.v1.Fleet.Builder builderForValue) { + if (fleetBuilder_ == null) { + fleet_ = builderForValue.build(); + } else { + fleetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The fleet to create.
            +     * 
            + * + * .google.cloud.gkehub.v1.Fleet fleet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFleet(com.google.cloud.gkehub.v1.Fleet value) { + if (fleetBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && fleet_ != null + && fleet_ != com.google.cloud.gkehub.v1.Fleet.getDefaultInstance()) { + getFleetBuilder().mergeFrom(value); + } else { + fleet_ = value; + } + } else { + fleetBuilder_.mergeFrom(value); + } + if (fleet_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The fleet to create.
            +     * 
            + * + * .google.cloud.gkehub.v1.Fleet fleet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFleet() { + bitField0_ = (bitField0_ & ~0x00000002); + fleet_ = null; + if (fleetBuilder_ != null) { + fleetBuilder_.dispose(); + fleetBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The fleet to create.
            +     * 
            + * + * .google.cloud.gkehub.v1.Fleet fleet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.Fleet.Builder getFleetBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetFleetFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The fleet to create.
            +     * 
            + * + * .google.cloud.gkehub.v1.Fleet fleet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.FleetOrBuilder getFleetOrBuilder() { + if (fleetBuilder_ != null) { + return fleetBuilder_.getMessageOrBuilder(); + } else { + return fleet_ == null ? com.google.cloud.gkehub.v1.Fleet.getDefaultInstance() : fleet_; + } + } + + /** + * + * + *
            +     * Required. The fleet to create.
            +     * 
            + * + * .google.cloud.gkehub.v1.Fleet fleet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Fleet, + com.google.cloud.gkehub.v1.Fleet.Builder, + com.google.cloud.gkehub.v1.FleetOrBuilder> + internalGetFleetFieldBuilder() { + if (fleetBuilder_ == null) { + fleetBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Fleet, + com.google.cloud.gkehub.v1.Fleet.Builder, + com.google.cloud.gkehub.v1.FleetOrBuilder>( + getFleet(), getParentForChildren(), isClean()); + fleet_ = null; + } + return fleetBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.CreateFleetRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.CreateFleetRequest) + private static final com.google.cloud.gkehub.v1.CreateFleetRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.CreateFleetRequest(); + } + + public static com.google.cloud.gkehub.v1.CreateFleetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFleetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateFleetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFleetRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFleetRequestOrBuilder.java new file mode 100644 index 000000000000..7f5057fcb221 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFleetRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface CreateFleetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.CreateFleetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The parent (project and location) where the Fleet will be
            +   * created. Specified in the format `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The parent (project and location) where the Fleet will be
            +   * created. Specified in the format `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Required. The fleet to create.
            +   * 
            + * + * .google.cloud.gkehub.v1.Fleet fleet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the fleet field is set. + */ + boolean hasFleet(); + + /** + * + * + *
            +   * Required. The fleet to create.
            +   * 
            + * + * .google.cloud.gkehub.v1.Fleet fleet = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The fleet. + */ + com.google.cloud.gkehub.v1.Fleet getFleet(); + + /** + * + * + *
            +   * Required. The fleet to create.
            +   * 
            + * + * .google.cloud.gkehub.v1.Fleet fleet = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.gkehub.v1.FleetOrBuilder getFleetOrBuilder(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipBindingRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipBindingRequest.java new file mode 100644 index 000000000000..dd78d9d14954 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipBindingRequest.java @@ -0,0 +1,1135 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Request to create a MembershipBinding.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.CreateMembershipBindingRequest} + */ +@com.google.protobuf.Generated +public final class CreateMembershipBindingRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.CreateMembershipBindingRequest) + CreateMembershipBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateMembershipBindingRequest"); + } + + // Use CreateMembershipBindingRequest.newBuilder() to construct. + private CreateMembershipBindingRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateMembershipBindingRequest() { + parent_ = ""; + membershipBindingId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateMembershipBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateMembershipBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.CreateMembershipBindingRequest.class, + com.google.cloud.gkehub.v1.CreateMembershipBindingRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The parent (project and location) where the MembershipBinding
            +   * will be created. Specified in the format
            +   * `projects/*/locations/*/memberships/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The parent (project and location) where the MembershipBinding
            +   * will be created. Specified in the format
            +   * `projects/*/locations/*/memberships/*`.
            +   * 
            + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MEMBERSHIP_BINDING_FIELD_NUMBER = 2; + private com.google.cloud.gkehub.v1.MembershipBinding membershipBinding_; + + /** + * + * + *
            +   * Required. The MembershipBinding to create.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the membershipBinding field is set. + */ + @java.lang.Override + public boolean hasMembershipBinding() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. The MembershipBinding to create.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The membershipBinding. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipBinding getMembershipBinding() { + return membershipBinding_ == null + ? com.google.cloud.gkehub.v1.MembershipBinding.getDefaultInstance() + : membershipBinding_; + } + + /** + * + * + *
            +   * Required. The MembershipBinding to create.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipBindingOrBuilder getMembershipBindingOrBuilder() { + return membershipBinding_ == null + ? com.google.cloud.gkehub.v1.MembershipBinding.getDefaultInstance() + : membershipBinding_; + } + + public static final int MEMBERSHIP_BINDING_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object membershipBindingId_ = ""; + + /** + * + * + *
            +   * Required. The ID to use for the MembershipBinding.
            +   * 
            + * + * string membership_binding_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The membershipBindingId. + */ + @java.lang.Override + public java.lang.String getMembershipBindingId() { + java.lang.Object ref = membershipBindingId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + membershipBindingId_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The ID to use for the MembershipBinding.
            +   * 
            + * + * string membership_binding_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for membershipBindingId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMembershipBindingIdBytes() { + java.lang.Object ref = membershipBindingId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + membershipBindingId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getMembershipBinding()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(membershipBindingId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, membershipBindingId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMembershipBinding()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(membershipBindingId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, membershipBindingId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.CreateMembershipBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.CreateMembershipBindingRequest other = + (com.google.cloud.gkehub.v1.CreateMembershipBindingRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasMembershipBinding() != other.hasMembershipBinding()) return false; + if (hasMembershipBinding()) { + if (!getMembershipBinding().equals(other.getMembershipBinding())) return false; + } + if (!getMembershipBindingId().equals(other.getMembershipBindingId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasMembershipBinding()) { + hash = (37 * hash) + MEMBERSHIP_BINDING_FIELD_NUMBER; + hash = (53 * hash) + getMembershipBinding().hashCode(); + } + hash = (37 * hash) + MEMBERSHIP_BINDING_ID_FIELD_NUMBER; + hash = (53 * hash) + getMembershipBindingId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.CreateMembershipBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipBindingRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipBindingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipBindingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipBindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipBindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipBindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipBindingRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.v1.CreateMembershipBindingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request to create a MembershipBinding.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.CreateMembershipBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.CreateMembershipBindingRequest) + com.google.cloud.gkehub.v1.CreateMembershipBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateMembershipBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateMembershipBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.CreateMembershipBindingRequest.class, + com.google.cloud.gkehub.v1.CreateMembershipBindingRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.CreateMembershipBindingRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMembershipBindingFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + membershipBinding_ = null; + if (membershipBindingBuilder_ != null) { + membershipBindingBuilder_.dispose(); + membershipBindingBuilder_ = null; + } + membershipBindingId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateMembershipBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateMembershipBindingRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.CreateMembershipBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateMembershipBindingRequest build() { + com.google.cloud.gkehub.v1.CreateMembershipBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateMembershipBindingRequest buildPartial() { + com.google.cloud.gkehub.v1.CreateMembershipBindingRequest result = + new com.google.cloud.gkehub.v1.CreateMembershipBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.CreateMembershipBindingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.membershipBinding_ = + membershipBindingBuilder_ == null + ? membershipBinding_ + : membershipBindingBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.membershipBindingId_ = membershipBindingId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.CreateMembershipBindingRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.CreateMembershipBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.CreateMembershipBindingRequest other) { + if (other == com.google.cloud.gkehub.v1.CreateMembershipBindingRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasMembershipBinding()) { + mergeMembershipBinding(other.getMembershipBinding()); + } + if (!other.getMembershipBindingId().isEmpty()) { + membershipBindingId_ = other.membershipBindingId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetMembershipBindingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + membershipBindingId_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
            +     * Required. The parent (project and location) where the MembershipBinding
            +     * will be created. Specified in the format
            +     * `projects/*/locations/*/memberships/*`.
            +     * 
            + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the MembershipBinding
            +     * will be created. Specified in the format
            +     * `projects/*/locations/*/memberships/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the MembershipBinding
            +     * will be created. Specified in the format
            +     * `projects/*/locations/*/memberships/*`.
            +     * 
            + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the MembershipBinding
            +     * will be created. Specified in the format
            +     * `projects/*/locations/*/memberships/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the MembershipBinding
            +     * will be created. Specified in the format
            +     * `projects/*/locations/*/memberships/*`.
            +     * 
            + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.gkehub.v1.MembershipBinding membershipBinding_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.MembershipBinding, + com.google.cloud.gkehub.v1.MembershipBinding.Builder, + com.google.cloud.gkehub.v1.MembershipBindingOrBuilder> + membershipBindingBuilder_; + + /** + * + * + *
            +     * Required. The MembershipBinding to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the membershipBinding field is set. + */ + public boolean hasMembershipBinding() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Required. The MembershipBinding to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The membershipBinding. + */ + public com.google.cloud.gkehub.v1.MembershipBinding getMembershipBinding() { + if (membershipBindingBuilder_ == null) { + return membershipBinding_ == null + ? com.google.cloud.gkehub.v1.MembershipBinding.getDefaultInstance() + : membershipBinding_; + } else { + return membershipBindingBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The MembershipBinding to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMembershipBinding(com.google.cloud.gkehub.v1.MembershipBinding value) { + if (membershipBindingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + membershipBinding_ = value; + } else { + membershipBindingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The MembershipBinding to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMembershipBinding( + com.google.cloud.gkehub.v1.MembershipBinding.Builder builderForValue) { + if (membershipBindingBuilder_ == null) { + membershipBinding_ = builderForValue.build(); + } else { + membershipBindingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The MembershipBinding to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMembershipBinding(com.google.cloud.gkehub.v1.MembershipBinding value) { + if (membershipBindingBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && membershipBinding_ != null + && membershipBinding_ + != com.google.cloud.gkehub.v1.MembershipBinding.getDefaultInstance()) { + getMembershipBindingBuilder().mergeFrom(value); + } else { + membershipBinding_ = value; + } + } else { + membershipBindingBuilder_.mergeFrom(value); + } + if (membershipBinding_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The MembershipBinding to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMembershipBinding() { + bitField0_ = (bitField0_ & ~0x00000002); + membershipBinding_ = null; + if (membershipBindingBuilder_ != null) { + membershipBindingBuilder_.dispose(); + membershipBindingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The MembershipBinding to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.MembershipBinding.Builder getMembershipBindingBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetMembershipBindingFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The MembershipBinding to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.MembershipBindingOrBuilder getMembershipBindingOrBuilder() { + if (membershipBindingBuilder_ != null) { + return membershipBindingBuilder_.getMessageOrBuilder(); + } else { + return membershipBinding_ == null + ? com.google.cloud.gkehub.v1.MembershipBinding.getDefaultInstance() + : membershipBinding_; + } + } + + /** + * + * + *
            +     * Required. The MembershipBinding to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.MembershipBinding, + com.google.cloud.gkehub.v1.MembershipBinding.Builder, + com.google.cloud.gkehub.v1.MembershipBindingOrBuilder> + internalGetMembershipBindingFieldBuilder() { + if (membershipBindingBuilder_ == null) { + membershipBindingBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.MembershipBinding, + com.google.cloud.gkehub.v1.MembershipBinding.Builder, + com.google.cloud.gkehub.v1.MembershipBindingOrBuilder>( + getMembershipBinding(), getParentForChildren(), isClean()); + membershipBinding_ = null; + } + return membershipBindingBuilder_; + } + + private java.lang.Object membershipBindingId_ = ""; + + /** + * + * + *
            +     * Required. The ID to use for the MembershipBinding.
            +     * 
            + * + * string membership_binding_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The membershipBindingId. + */ + public java.lang.String getMembershipBindingId() { + java.lang.Object ref = membershipBindingId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + membershipBindingId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The ID to use for the MembershipBinding.
            +     * 
            + * + * string membership_binding_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for membershipBindingId. + */ + public com.google.protobuf.ByteString getMembershipBindingIdBytes() { + java.lang.Object ref = membershipBindingId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + membershipBindingId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The ID to use for the MembershipBinding.
            +     * 
            + * + * string membership_binding_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The membershipBindingId to set. + * @return This builder for chaining. + */ + public Builder setMembershipBindingId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + membershipBindingId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The ID to use for the MembershipBinding.
            +     * 
            + * + * string membership_binding_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMembershipBindingId() { + membershipBindingId_ = getDefaultInstance().getMembershipBindingId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The ID to use for the MembershipBinding.
            +     * 
            + * + * string membership_binding_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for membershipBindingId to set. + * @return This builder for chaining. + */ + public Builder setMembershipBindingIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + membershipBindingId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.CreateMembershipBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.CreateMembershipBindingRequest) + private static final com.google.cloud.gkehub.v1.CreateMembershipBindingRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.CreateMembershipBindingRequest(); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipBindingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMembershipBindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateMembershipBindingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipBindingRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipBindingRequestOrBuilder.java new file mode 100644 index 000000000000..3693ec6344f2 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipBindingRequestOrBuilder.java @@ -0,0 +1,131 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface CreateMembershipBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.CreateMembershipBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The parent (project and location) where the MembershipBinding
            +   * will be created. Specified in the format
            +   * `projects/*/locations/*/memberships/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The parent (project and location) where the MembershipBinding
            +   * will be created. Specified in the format
            +   * `projects/*/locations/*/memberships/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Required. The MembershipBinding to create.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the membershipBinding field is set. + */ + boolean hasMembershipBinding(); + + /** + * + * + *
            +   * Required. The MembershipBinding to create.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The membershipBinding. + */ + com.google.cloud.gkehub.v1.MembershipBinding getMembershipBinding(); + + /** + * + * + *
            +   * Required. The MembershipBinding to create.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gkehub.v1.MembershipBindingOrBuilder getMembershipBindingOrBuilder(); + + /** + * + * + *
            +   * Required. The ID to use for the MembershipBinding.
            +   * 
            + * + * string membership_binding_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The membershipBindingId. + */ + java.lang.String getMembershipBindingId(); + + /** + * + * + *
            +   * Required. The ID to use for the MembershipBinding.
            +   * 
            + * + * string membership_binding_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for membershipBindingId. + */ + com.google.protobuf.ByteString getMembershipBindingIdBytes(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRBACRoleBindingRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRBACRoleBindingRequest.java new file mode 100644 index 000000000000..98c2656249b6 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRBACRoleBindingRequest.java @@ -0,0 +1,1193 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Request to create a rbacrolebindings.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest} + */ +@com.google.protobuf.Generated +public final class CreateMembershipRBACRoleBindingRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest) + CreateMembershipRBACRoleBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateMembershipRBACRoleBindingRequest"); + } + + // Use CreateMembershipRBACRoleBindingRequest.newBuilder() to construct. + private CreateMembershipRBACRoleBindingRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateMembershipRBACRoleBindingRequest() { + parent_ = ""; + rbacrolebindingId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateMembershipRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateMembershipRBACRoleBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest.class, + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The parent (project and location) where the RBACRoleBinding will
            +   * be created. Specified in the format `projects/*/locations/*/memberships/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The parent (project and location) where the RBACRoleBinding will
            +   * be created. Specified in the format `projects/*/locations/*/memberships/*`.
            +   * 
            + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RBACROLEBINDING_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object rbacrolebindingId_ = ""; + + /** + * + * + *
            +   * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
            +   * must be a valid RFC 1123 compliant DNS label:
            +   *
            +   * 1. At most 63 characters in length
            +   * 2. It must consist of lower case alphanumeric characters or `-`
            +   * 3. It must start and end with an alphanumeric character
            +   *
            +   * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +   * with a maximum length of 63 characters.
            +   * 
            + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rbacrolebindingId. + */ + @java.lang.Override + public java.lang.String getRbacrolebindingId() { + java.lang.Object ref = rbacrolebindingId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rbacrolebindingId_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
            +   * must be a valid RFC 1123 compliant DNS label:
            +   *
            +   * 1. At most 63 characters in length
            +   * 2. It must consist of lower case alphanumeric characters or `-`
            +   * 3. It must start and end with an alphanumeric character
            +   *
            +   * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +   * with a maximum length of 63 characters.
            +   * 
            + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rbacrolebindingId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRbacrolebindingIdBytes() { + java.lang.Object ref = rbacrolebindingId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rbacrolebindingId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RBACROLEBINDING_FIELD_NUMBER = 3; + private com.google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding_; + + /** + * + * + *
            +   * Required. The rbacrolebindings to create.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rbacrolebinding field is set. + */ + @java.lang.Override + public boolean hasRbacrolebinding() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. The rbacrolebindings to create.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rbacrolebinding. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebinding() { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } + + /** + * + * + *
            +   * Required. The rbacrolebindings to create.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingOrBuilder() { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rbacrolebindingId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, rbacrolebindingId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getRbacrolebinding()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rbacrolebindingId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, rbacrolebindingId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRbacrolebinding()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest other = + (com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRbacrolebindingId().equals(other.getRbacrolebindingId())) return false; + if (hasRbacrolebinding() != other.hasRbacrolebinding()) return false; + if (hasRbacrolebinding()) { + if (!getRbacrolebinding().equals(other.getRbacrolebinding())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + RBACROLEBINDING_ID_FIELD_NUMBER; + hash = (53 * hash) + getRbacrolebindingId().hashCode(); + if (hasRbacrolebinding()) { + hash = (37 * hash) + RBACROLEBINDING_FIELD_NUMBER; + hash = (53 * hash) + getRbacrolebinding().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request to create a rbacrolebindings.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest) + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateMembershipRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateMembershipRBACRoleBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest.class, + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest.Builder.class); + } + + // Construct using + // com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRbacrolebindingFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + rbacrolebindingId_ = ""; + rbacrolebinding_ = null; + if (rbacrolebindingBuilder_ != null) { + rbacrolebindingBuilder_.dispose(); + rbacrolebindingBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateMembershipRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest + getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest build() { + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest buildPartial() { + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest result = + new com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rbacrolebindingId_ = rbacrolebindingId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.rbacrolebinding_ = + rbacrolebindingBuilder_ == null ? rbacrolebinding_ : rbacrolebindingBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest other) { + if (other + == com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRbacrolebindingId().isEmpty()) { + rbacrolebindingId_ = other.rbacrolebindingId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasRbacrolebinding()) { + mergeRbacrolebinding(other.getRbacrolebinding()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + rbacrolebindingId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetRbacrolebindingFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
            +     * Required. The parent (project and location) where the RBACRoleBinding will
            +     * be created. Specified in the format `projects/*/locations/*/memberships/*`.
            +     * 
            + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the RBACRoleBinding will
            +     * be created. Specified in the format `projects/*/locations/*/memberships/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the RBACRoleBinding will
            +     * be created. Specified in the format `projects/*/locations/*/memberships/*`.
            +     * 
            + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the RBACRoleBinding will
            +     * be created. Specified in the format `projects/*/locations/*/memberships/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the RBACRoleBinding will
            +     * be created. Specified in the format `projects/*/locations/*/memberships/*`.
            +     * 
            + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object rbacrolebindingId_ = ""; + + /** + * + * + *
            +     * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
            +     * must be a valid RFC 1123 compliant DNS label:
            +     *
            +     * 1. At most 63 characters in length
            +     * 2. It must consist of lower case alphanumeric characters or `-`
            +     * 3. It must start and end with an alphanumeric character
            +     *
            +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +     * with a maximum length of 63 characters.
            +     * 
            + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rbacrolebindingId. + */ + public java.lang.String getRbacrolebindingId() { + java.lang.Object ref = rbacrolebindingId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rbacrolebindingId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
            +     * must be a valid RFC 1123 compliant DNS label:
            +     *
            +     * 1. At most 63 characters in length
            +     * 2. It must consist of lower case alphanumeric characters or `-`
            +     * 3. It must start and end with an alphanumeric character
            +     *
            +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +     * with a maximum length of 63 characters.
            +     * 
            + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rbacrolebindingId. + */ + public com.google.protobuf.ByteString getRbacrolebindingIdBytes() { + java.lang.Object ref = rbacrolebindingId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rbacrolebindingId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
            +     * must be a valid RFC 1123 compliant DNS label:
            +     *
            +     * 1. At most 63 characters in length
            +     * 2. It must consist of lower case alphanumeric characters or `-`
            +     * 3. It must start and end with an alphanumeric character
            +     *
            +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +     * with a maximum length of 63 characters.
            +     * 
            + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The rbacrolebindingId to set. + * @return This builder for chaining. + */ + public Builder setRbacrolebindingId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rbacrolebindingId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
            +     * must be a valid RFC 1123 compliant DNS label:
            +     *
            +     * 1. At most 63 characters in length
            +     * 2. It must consist of lower case alphanumeric characters or `-`
            +     * 3. It must start and end with an alphanumeric character
            +     *
            +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +     * with a maximum length of 63 characters.
            +     * 
            + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRbacrolebindingId() { + rbacrolebindingId_ = getDefaultInstance().getRbacrolebindingId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
            +     * must be a valid RFC 1123 compliant DNS label:
            +     *
            +     * 1. At most 63 characters in length
            +     * 2. It must consist of lower case alphanumeric characters or `-`
            +     * 3. It must start and end with an alphanumeric character
            +     *
            +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +     * with a maximum length of 63 characters.
            +     * 
            + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for rbacrolebindingId to set. + * @return This builder for chaining. + */ + public Builder setRbacrolebindingIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rbacrolebindingId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder> + rbacrolebindingBuilder_; + + /** + * + * + *
            +     * Required. The rbacrolebindings to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rbacrolebinding field is set. + */ + public boolean hasRbacrolebinding() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Required. The rbacrolebindings to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rbacrolebinding. + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebinding() { + if (rbacrolebindingBuilder_ == null) { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } else { + return rbacrolebindingBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The rbacrolebindings to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRbacrolebinding(com.google.cloud.gkehub.v1.RBACRoleBinding value) { + if (rbacrolebindingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rbacrolebinding_ = value; + } else { + rbacrolebindingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The rbacrolebindings to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRbacrolebinding( + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder builderForValue) { + if (rbacrolebindingBuilder_ == null) { + rbacrolebinding_ = builderForValue.build(); + } else { + rbacrolebindingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The rbacrolebindings to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRbacrolebinding(com.google.cloud.gkehub.v1.RBACRoleBinding value) { + if (rbacrolebindingBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && rbacrolebinding_ != null + && rbacrolebinding_ + != com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance()) { + getRbacrolebindingBuilder().mergeFrom(value); + } else { + rbacrolebinding_ = value; + } + } else { + rbacrolebindingBuilder_.mergeFrom(value); + } + if (rbacrolebinding_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The rbacrolebindings to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRbacrolebinding() { + bitField0_ = (bitField0_ & ~0x00000004); + rbacrolebinding_ = null; + if (rbacrolebindingBuilder_ != null) { + rbacrolebindingBuilder_.dispose(); + rbacrolebindingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The rbacrolebindings to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding.Builder getRbacrolebindingBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetRbacrolebindingFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The rbacrolebindings to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingOrBuilder() { + if (rbacrolebindingBuilder_ != null) { + return rbacrolebindingBuilder_.getMessageOrBuilder(); + } else { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } + } + + /** + * + * + *
            +     * Required. The rbacrolebindings to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder> + internalGetRbacrolebindingFieldBuilder() { + if (rbacrolebindingBuilder_ == null) { + rbacrolebindingBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder>( + getRbacrolebinding(), getParentForChildren(), isClean()); + rbacrolebinding_ = null; + } + return rbacrolebindingBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest) + private static final com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest(); + } + + public static com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMembershipRBACRoleBindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRBACRoleBindingRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRBACRoleBindingRequestOrBuilder.java new file mode 100644 index 000000000000..9829e01b9203 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRBACRoleBindingRequestOrBuilder.java @@ -0,0 +1,145 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface CreateMembershipRBACRoleBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The parent (project and location) where the RBACRoleBinding will
            +   * be created. Specified in the format `projects/*/locations/*/memberships/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The parent (project and location) where the RBACRoleBinding will
            +   * be created. Specified in the format `projects/*/locations/*/memberships/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
            +   * must be a valid RFC 1123 compliant DNS label:
            +   *
            +   * 1. At most 63 characters in length
            +   * 2. It must consist of lower case alphanumeric characters or `-`
            +   * 3. It must start and end with an alphanumeric character
            +   *
            +   * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +   * with a maximum length of 63 characters.
            +   * 
            + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rbacrolebindingId. + */ + java.lang.String getRbacrolebindingId(); + + /** + * + * + *
            +   * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
            +   * must be a valid RFC 1123 compliant DNS label:
            +   *
            +   * 1. At most 63 characters in length
            +   * 2. It must consist of lower case alphanumeric characters or `-`
            +   * 3. It must start and end with an alphanumeric character
            +   *
            +   * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +   * with a maximum length of 63 characters.
            +   * 
            + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rbacrolebindingId. + */ + com.google.protobuf.ByteString getRbacrolebindingIdBytes(); + + /** + * + * + *
            +   * Required. The rbacrolebindings to create.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rbacrolebinding field is set. + */ + boolean hasRbacrolebinding(); + + /** + * + * + *
            +   * Required. The rbacrolebindings to create.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rbacrolebinding. + */ + com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebinding(); + + /** + * + * + *
            +   * Required. The rbacrolebindings to create.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingOrBuilder(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeNamespaceRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeNamespaceRequest.java new file mode 100644 index 000000000000..8f7841195b6b --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeNamespaceRequest.java @@ -0,0 +1,1180 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Request to create a fleet namespace.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.CreateScopeNamespaceRequest} + */ +@com.google.protobuf.Generated +public final class CreateScopeNamespaceRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.CreateScopeNamespaceRequest) + CreateScopeNamespaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateScopeNamespaceRequest"); + } + + // Use CreateScopeNamespaceRequest.newBuilder() to construct. + private CreateScopeNamespaceRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateScopeNamespaceRequest() { + parent_ = ""; + scopeNamespaceId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateScopeNamespaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateScopeNamespaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest.class, + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The parent (project and location) where the Namespace will be
            +   * created. Specified in the format `projects/*/locations/*/scopes/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The parent (project and location) where the Namespace will be
            +   * created. Specified in the format `projects/*/locations/*/scopes/*`.
            +   * 
            + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCOPE_NAMESPACE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object scopeNamespaceId_ = ""; + + /** + * + * + *
            +   * Required. Client chosen ID for the Namespace. `namespace_id` must be a
            +   * valid RFC 1123 compliant DNS label:
            +   *
            +   * 1. At most 63 characters in length
            +   * 2. It must consist of lower case alphanumeric characters or `-`
            +   * 3. It must start and end with an alphanumeric character
            +   *
            +   * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +   * with a maximum length of 63 characters.
            +   * 
            + * + * string scope_namespace_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scopeNamespaceId. + */ + @java.lang.Override + public java.lang.String getScopeNamespaceId() { + java.lang.Object ref = scopeNamespaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scopeNamespaceId_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. Client chosen ID for the Namespace. `namespace_id` must be a
            +   * valid RFC 1123 compliant DNS label:
            +   *
            +   * 1. At most 63 characters in length
            +   * 2. It must consist of lower case alphanumeric characters or `-`
            +   * 3. It must start and end with an alphanumeric character
            +   *
            +   * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +   * with a maximum length of 63 characters.
            +   * 
            + * + * string scope_namespace_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for scopeNamespaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getScopeNamespaceIdBytes() { + java.lang.Object ref = scopeNamespaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scopeNamespaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCOPE_NAMESPACE_FIELD_NUMBER = 3; + private com.google.cloud.gkehub.v1.Namespace scopeNamespace_; + + /** + * + * + *
            +   * Required. The fleet namespace to create.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the scopeNamespace field is set. + */ + @java.lang.Override + public boolean hasScopeNamespace() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. The fleet namespace to create.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The scopeNamespace. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.Namespace getScopeNamespace() { + return scopeNamespace_ == null + ? com.google.cloud.gkehub.v1.Namespace.getDefaultInstance() + : scopeNamespace_; + } + + /** + * + * + *
            +   * Required. The fleet namespace to create.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.NamespaceOrBuilder getScopeNamespaceOrBuilder() { + return scopeNamespace_ == null + ? com.google.cloud.gkehub.v1.Namespace.getDefaultInstance() + : scopeNamespace_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(scopeNamespaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, scopeNamespaceId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getScopeNamespace()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(scopeNamespaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, scopeNamespaceId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getScopeNamespace()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest other = + (com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getScopeNamespaceId().equals(other.getScopeNamespaceId())) return false; + if (hasScopeNamespace() != other.hasScopeNamespace()) return false; + if (hasScopeNamespace()) { + if (!getScopeNamespace().equals(other.getScopeNamespace())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + SCOPE_NAMESPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getScopeNamespaceId().hashCode(); + if (hasScopeNamespace()) { + hash = (37 * hash) + SCOPE_NAMESPACE_FIELD_NUMBER; + hash = (53 * hash) + getScopeNamespace().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request to create a fleet namespace.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.CreateScopeNamespaceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.CreateScopeNamespaceRequest) + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateScopeNamespaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateScopeNamespaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest.class, + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetScopeNamespaceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + scopeNamespaceId_ = ""; + scopeNamespace_ = null; + if (scopeNamespaceBuilder_ != null) { + scopeNamespaceBuilder_.dispose(); + scopeNamespaceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateScopeNamespaceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest build() { + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest buildPartial() { + com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest result = + new com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.scopeNamespaceId_ = scopeNamespaceId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.scopeNamespace_ = + scopeNamespaceBuilder_ == null ? scopeNamespace_ : scopeNamespaceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest other) { + if (other == com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getScopeNamespaceId().isEmpty()) { + scopeNamespaceId_ = other.scopeNamespaceId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasScopeNamespace()) { + mergeScopeNamespace(other.getScopeNamespace()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + scopeNamespaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetScopeNamespaceFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
            +     * Required. The parent (project and location) where the Namespace will be
            +     * created. Specified in the format `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the Namespace will be
            +     * created. Specified in the format `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the Namespace will be
            +     * created. Specified in the format `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the Namespace will be
            +     * created. Specified in the format `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the Namespace will be
            +     * created. Specified in the format `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object scopeNamespaceId_ = ""; + + /** + * + * + *
            +     * Required. Client chosen ID for the Namespace. `namespace_id` must be a
            +     * valid RFC 1123 compliant DNS label:
            +     *
            +     * 1. At most 63 characters in length
            +     * 2. It must consist of lower case alphanumeric characters or `-`
            +     * 3. It must start and end with an alphanumeric character
            +     *
            +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +     * with a maximum length of 63 characters.
            +     * 
            + * + * string scope_namespace_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scopeNamespaceId. + */ + public java.lang.String getScopeNamespaceId() { + java.lang.Object ref = scopeNamespaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scopeNamespaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. Client chosen ID for the Namespace. `namespace_id` must be a
            +     * valid RFC 1123 compliant DNS label:
            +     *
            +     * 1. At most 63 characters in length
            +     * 2. It must consist of lower case alphanumeric characters or `-`
            +     * 3. It must start and end with an alphanumeric character
            +     *
            +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +     * with a maximum length of 63 characters.
            +     * 
            + * + * string scope_namespace_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for scopeNamespaceId. + */ + public com.google.protobuf.ByteString getScopeNamespaceIdBytes() { + java.lang.Object ref = scopeNamespaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scopeNamespaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. Client chosen ID for the Namespace. `namespace_id` must be a
            +     * valid RFC 1123 compliant DNS label:
            +     *
            +     * 1. At most 63 characters in length
            +     * 2. It must consist of lower case alphanumeric characters or `-`
            +     * 3. It must start and end with an alphanumeric character
            +     *
            +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +     * with a maximum length of 63 characters.
            +     * 
            + * + * string scope_namespace_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The scopeNamespaceId to set. + * @return This builder for chaining. + */ + public Builder setScopeNamespaceId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + scopeNamespaceId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Client chosen ID for the Namespace. `namespace_id` must be a
            +     * valid RFC 1123 compliant DNS label:
            +     *
            +     * 1. At most 63 characters in length
            +     * 2. It must consist of lower case alphanumeric characters or `-`
            +     * 3. It must start and end with an alphanumeric character
            +     *
            +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +     * with a maximum length of 63 characters.
            +     * 
            + * + * string scope_namespace_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearScopeNamespaceId() { + scopeNamespaceId_ = getDefaultInstance().getScopeNamespaceId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Client chosen ID for the Namespace. `namespace_id` must be a
            +     * valid RFC 1123 compliant DNS label:
            +     *
            +     * 1. At most 63 characters in length
            +     * 2. It must consist of lower case alphanumeric characters or `-`
            +     * 3. It must start and end with an alphanumeric character
            +     *
            +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +     * with a maximum length of 63 characters.
            +     * 
            + * + * string scope_namespace_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for scopeNamespaceId to set. + * @return This builder for chaining. + */ + public Builder setScopeNamespaceIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scopeNamespaceId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.gkehub.v1.Namespace scopeNamespace_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Namespace, + com.google.cloud.gkehub.v1.Namespace.Builder, + com.google.cloud.gkehub.v1.NamespaceOrBuilder> + scopeNamespaceBuilder_; + + /** + * + * + *
            +     * Required. The fleet namespace to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the scopeNamespace field is set. + */ + public boolean hasScopeNamespace() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Required. The fleet namespace to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The scopeNamespace. + */ + public com.google.cloud.gkehub.v1.Namespace getScopeNamespace() { + if (scopeNamespaceBuilder_ == null) { + return scopeNamespace_ == null + ? com.google.cloud.gkehub.v1.Namespace.getDefaultInstance() + : scopeNamespace_; + } else { + return scopeNamespaceBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The fleet namespace to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setScopeNamespace(com.google.cloud.gkehub.v1.Namespace value) { + if (scopeNamespaceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scopeNamespace_ = value; + } else { + scopeNamespaceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The fleet namespace to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setScopeNamespace(com.google.cloud.gkehub.v1.Namespace.Builder builderForValue) { + if (scopeNamespaceBuilder_ == null) { + scopeNamespace_ = builderForValue.build(); + } else { + scopeNamespaceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The fleet namespace to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeScopeNamespace(com.google.cloud.gkehub.v1.Namespace value) { + if (scopeNamespaceBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && scopeNamespace_ != null + && scopeNamespace_ != com.google.cloud.gkehub.v1.Namespace.getDefaultInstance()) { + getScopeNamespaceBuilder().mergeFrom(value); + } else { + scopeNamespace_ = value; + } + } else { + scopeNamespaceBuilder_.mergeFrom(value); + } + if (scopeNamespace_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The fleet namespace to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearScopeNamespace() { + bitField0_ = (bitField0_ & ~0x00000004); + scopeNamespace_ = null; + if (scopeNamespaceBuilder_ != null) { + scopeNamespaceBuilder_.dispose(); + scopeNamespaceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The fleet namespace to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.Namespace.Builder getScopeNamespaceBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetScopeNamespaceFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The fleet namespace to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.NamespaceOrBuilder getScopeNamespaceOrBuilder() { + if (scopeNamespaceBuilder_ != null) { + return scopeNamespaceBuilder_.getMessageOrBuilder(); + } else { + return scopeNamespace_ == null + ? com.google.cloud.gkehub.v1.Namespace.getDefaultInstance() + : scopeNamespace_; + } + } + + /** + * + * + *
            +     * Required. The fleet namespace to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Namespace, + com.google.cloud.gkehub.v1.Namespace.Builder, + com.google.cloud.gkehub.v1.NamespaceOrBuilder> + internalGetScopeNamespaceFieldBuilder() { + if (scopeNamespaceBuilder_ == null) { + scopeNamespaceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Namespace, + com.google.cloud.gkehub.v1.Namespace.Builder, + com.google.cloud.gkehub.v1.NamespaceOrBuilder>( + getScopeNamespace(), getParentForChildren(), isClean()); + scopeNamespace_ = null; + } + return scopeNamespaceBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.CreateScopeNamespaceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.CreateScopeNamespaceRequest) + private static final com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest(); + } + + public static com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateScopeNamespaceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeNamespaceRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeNamespaceRequestOrBuilder.java new file mode 100644 index 000000000000..fa136e3e1ef1 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeNamespaceRequestOrBuilder.java @@ -0,0 +1,145 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface CreateScopeNamespaceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.CreateScopeNamespaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The parent (project and location) where the Namespace will be
            +   * created. Specified in the format `projects/*/locations/*/scopes/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The parent (project and location) where the Namespace will be
            +   * created. Specified in the format `projects/*/locations/*/scopes/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Required. Client chosen ID for the Namespace. `namespace_id` must be a
            +   * valid RFC 1123 compliant DNS label:
            +   *
            +   * 1. At most 63 characters in length
            +   * 2. It must consist of lower case alphanumeric characters or `-`
            +   * 3. It must start and end with an alphanumeric character
            +   *
            +   * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +   * with a maximum length of 63 characters.
            +   * 
            + * + * string scope_namespace_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scopeNamespaceId. + */ + java.lang.String getScopeNamespaceId(); + + /** + * + * + *
            +   * Required. Client chosen ID for the Namespace. `namespace_id` must be a
            +   * valid RFC 1123 compliant DNS label:
            +   *
            +   * 1. At most 63 characters in length
            +   * 2. It must consist of lower case alphanumeric characters or `-`
            +   * 3. It must start and end with an alphanumeric character
            +   *
            +   * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +   * with a maximum length of 63 characters.
            +   * 
            + * + * string scope_namespace_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for scopeNamespaceId. + */ + com.google.protobuf.ByteString getScopeNamespaceIdBytes(); + + /** + * + * + *
            +   * Required. The fleet namespace to create.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the scopeNamespace field is set. + */ + boolean hasScopeNamespace(); + + /** + * + * + *
            +   * Required. The fleet namespace to create.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The scopeNamespace. + */ + com.google.cloud.gkehub.v1.Namespace getScopeNamespace(); + + /** + * + * + *
            +   * Required. The fleet namespace to create.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gkehub.v1.NamespaceOrBuilder getScopeNamespaceOrBuilder(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeRBACRoleBindingRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeRBACRoleBindingRequest.java new file mode 100644 index 000000000000..4de29bdccacf --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeRBACRoleBindingRequest.java @@ -0,0 +1,1187 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Request to create a rbacrolebindings.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest} + */ +@com.google.protobuf.Generated +public final class CreateScopeRBACRoleBindingRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest) + CreateScopeRBACRoleBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateScopeRBACRoleBindingRequest"); + } + + // Use CreateScopeRBACRoleBindingRequest.newBuilder() to construct. + private CreateScopeRBACRoleBindingRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateScopeRBACRoleBindingRequest() { + parent_ = ""; + rbacrolebindingId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateScopeRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateScopeRBACRoleBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest.class, + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The parent (project and location) where the RBACRoleBinding will
            +   * be created. Specified in the format `projects/*/locations/*/scopes/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The parent (project and location) where the RBACRoleBinding will
            +   * be created. Specified in the format `projects/*/locations/*/scopes/*`.
            +   * 
            + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RBACROLEBINDING_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object rbacrolebindingId_ = ""; + + /** + * + * + *
            +   * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
            +   * must be a valid RFC 1123 compliant DNS label:
            +   *
            +   * 1. At most 63 characters in length
            +   * 2. It must consist of lower case alphanumeric characters or `-`
            +   * 3. It must start and end with an alphanumeric character
            +   *
            +   * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +   * with a maximum length of 63 characters.
            +   * 
            + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rbacrolebindingId. + */ + @java.lang.Override + public java.lang.String getRbacrolebindingId() { + java.lang.Object ref = rbacrolebindingId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rbacrolebindingId_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
            +   * must be a valid RFC 1123 compliant DNS label:
            +   *
            +   * 1. At most 63 characters in length
            +   * 2. It must consist of lower case alphanumeric characters or `-`
            +   * 3. It must start and end with an alphanumeric character
            +   *
            +   * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +   * with a maximum length of 63 characters.
            +   * 
            + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rbacrolebindingId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRbacrolebindingIdBytes() { + java.lang.Object ref = rbacrolebindingId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rbacrolebindingId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RBACROLEBINDING_FIELD_NUMBER = 3; + private com.google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding_; + + /** + * + * + *
            +   * Required. The rbacrolebindings to create.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rbacrolebinding field is set. + */ + @java.lang.Override + public boolean hasRbacrolebinding() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. The rbacrolebindings to create.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rbacrolebinding. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebinding() { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } + + /** + * + * + *
            +   * Required. The rbacrolebindings to create.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingOrBuilder() { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rbacrolebindingId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, rbacrolebindingId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getRbacrolebinding()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rbacrolebindingId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, rbacrolebindingId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRbacrolebinding()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest other = + (com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRbacrolebindingId().equals(other.getRbacrolebindingId())) return false; + if (hasRbacrolebinding() != other.hasRbacrolebinding()) return false; + if (hasRbacrolebinding()) { + if (!getRbacrolebinding().equals(other.getRbacrolebinding())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + RBACROLEBINDING_ID_FIELD_NUMBER; + hash = (53 * hash) + getRbacrolebindingId().hashCode(); + if (hasRbacrolebinding()) { + hash = (37 * hash) + RBACROLEBINDING_FIELD_NUMBER; + hash = (53 * hash) + getRbacrolebinding().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request to create a rbacrolebindings.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest) + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateScopeRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateScopeRBACRoleBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest.class, + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRbacrolebindingFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + rbacrolebindingId_ = ""; + rbacrolebinding_ = null; + if (rbacrolebindingBuilder_ != null) { + rbacrolebindingBuilder_.dispose(); + rbacrolebindingBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateScopeRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest + getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest build() { + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest buildPartial() { + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest result = + new com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rbacrolebindingId_ = rbacrolebindingId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.rbacrolebinding_ = + rbacrolebindingBuilder_ == null ? rbacrolebinding_ : rbacrolebindingBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest other) { + if (other + == com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRbacrolebindingId().isEmpty()) { + rbacrolebindingId_ = other.rbacrolebindingId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasRbacrolebinding()) { + mergeRbacrolebinding(other.getRbacrolebinding()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + rbacrolebindingId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetRbacrolebindingFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
            +     * Required. The parent (project and location) where the RBACRoleBinding will
            +     * be created. Specified in the format `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the RBACRoleBinding will
            +     * be created. Specified in the format `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the RBACRoleBinding will
            +     * be created. Specified in the format `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the RBACRoleBinding will
            +     * be created. Specified in the format `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the RBACRoleBinding will
            +     * be created. Specified in the format `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object rbacrolebindingId_ = ""; + + /** + * + * + *
            +     * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
            +     * must be a valid RFC 1123 compliant DNS label:
            +     *
            +     * 1. At most 63 characters in length
            +     * 2. It must consist of lower case alphanumeric characters or `-`
            +     * 3. It must start and end with an alphanumeric character
            +     *
            +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +     * with a maximum length of 63 characters.
            +     * 
            + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rbacrolebindingId. + */ + public java.lang.String getRbacrolebindingId() { + java.lang.Object ref = rbacrolebindingId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rbacrolebindingId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
            +     * must be a valid RFC 1123 compliant DNS label:
            +     *
            +     * 1. At most 63 characters in length
            +     * 2. It must consist of lower case alphanumeric characters or `-`
            +     * 3. It must start and end with an alphanumeric character
            +     *
            +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +     * with a maximum length of 63 characters.
            +     * 
            + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rbacrolebindingId. + */ + public com.google.protobuf.ByteString getRbacrolebindingIdBytes() { + java.lang.Object ref = rbacrolebindingId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rbacrolebindingId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
            +     * must be a valid RFC 1123 compliant DNS label:
            +     *
            +     * 1. At most 63 characters in length
            +     * 2. It must consist of lower case alphanumeric characters or `-`
            +     * 3. It must start and end with an alphanumeric character
            +     *
            +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +     * with a maximum length of 63 characters.
            +     * 
            + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The rbacrolebindingId to set. + * @return This builder for chaining. + */ + public Builder setRbacrolebindingId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rbacrolebindingId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
            +     * must be a valid RFC 1123 compliant DNS label:
            +     *
            +     * 1. At most 63 characters in length
            +     * 2. It must consist of lower case alphanumeric characters or `-`
            +     * 3. It must start and end with an alphanumeric character
            +     *
            +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +     * with a maximum length of 63 characters.
            +     * 
            + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRbacrolebindingId() { + rbacrolebindingId_ = getDefaultInstance().getRbacrolebindingId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
            +     * must be a valid RFC 1123 compliant DNS label:
            +     *
            +     * 1. At most 63 characters in length
            +     * 2. It must consist of lower case alphanumeric characters or `-`
            +     * 3. It must start and end with an alphanumeric character
            +     *
            +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +     * with a maximum length of 63 characters.
            +     * 
            + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for rbacrolebindingId to set. + * @return This builder for chaining. + */ + public Builder setRbacrolebindingIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rbacrolebindingId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder> + rbacrolebindingBuilder_; + + /** + * + * + *
            +     * Required. The rbacrolebindings to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rbacrolebinding field is set. + */ + public boolean hasRbacrolebinding() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Required. The rbacrolebindings to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rbacrolebinding. + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebinding() { + if (rbacrolebindingBuilder_ == null) { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } else { + return rbacrolebindingBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The rbacrolebindings to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRbacrolebinding(com.google.cloud.gkehub.v1.RBACRoleBinding value) { + if (rbacrolebindingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rbacrolebinding_ = value; + } else { + rbacrolebindingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The rbacrolebindings to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRbacrolebinding( + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder builderForValue) { + if (rbacrolebindingBuilder_ == null) { + rbacrolebinding_ = builderForValue.build(); + } else { + rbacrolebindingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The rbacrolebindings to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRbacrolebinding(com.google.cloud.gkehub.v1.RBACRoleBinding value) { + if (rbacrolebindingBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && rbacrolebinding_ != null + && rbacrolebinding_ + != com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance()) { + getRbacrolebindingBuilder().mergeFrom(value); + } else { + rbacrolebinding_ = value; + } + } else { + rbacrolebindingBuilder_.mergeFrom(value); + } + if (rbacrolebinding_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The rbacrolebindings to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRbacrolebinding() { + bitField0_ = (bitField0_ & ~0x00000004); + rbacrolebinding_ = null; + if (rbacrolebindingBuilder_ != null) { + rbacrolebindingBuilder_.dispose(); + rbacrolebindingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The rbacrolebindings to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding.Builder getRbacrolebindingBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetRbacrolebindingFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The rbacrolebindings to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingOrBuilder() { + if (rbacrolebindingBuilder_ != null) { + return rbacrolebindingBuilder_.getMessageOrBuilder(); + } else { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } + } + + /** + * + * + *
            +     * Required. The rbacrolebindings to create.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder> + internalGetRbacrolebindingFieldBuilder() { + if (rbacrolebindingBuilder_ == null) { + rbacrolebindingBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder>( + getRbacrolebinding(), getParentForChildren(), isClean()); + rbacrolebinding_ = null; + } + return rbacrolebindingBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest) + private static final com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest(); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateScopeRBACRoleBindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeRBACRoleBindingRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeRBACRoleBindingRequestOrBuilder.java new file mode 100644 index 000000000000..63df8637a275 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeRBACRoleBindingRequestOrBuilder.java @@ -0,0 +1,145 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface CreateScopeRBACRoleBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The parent (project and location) where the RBACRoleBinding will
            +   * be created. Specified in the format `projects/*/locations/*/scopes/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The parent (project and location) where the RBACRoleBinding will
            +   * be created. Specified in the format `projects/*/locations/*/scopes/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
            +   * must be a valid RFC 1123 compliant DNS label:
            +   *
            +   * 1. At most 63 characters in length
            +   * 2. It must consist of lower case alphanumeric characters or `-`
            +   * 3. It must start and end with an alphanumeric character
            +   *
            +   * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +   * with a maximum length of 63 characters.
            +   * 
            + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rbacrolebindingId. + */ + java.lang.String getRbacrolebindingId(); + + /** + * + * + *
            +   * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
            +   * must be a valid RFC 1123 compliant DNS label:
            +   *
            +   * 1. At most 63 characters in length
            +   * 2. It must consist of lower case alphanumeric characters or `-`
            +   * 3. It must start and end with an alphanumeric character
            +   *
            +   * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +   * with a maximum length of 63 characters.
            +   * 
            + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rbacrolebindingId. + */ + com.google.protobuf.ByteString getRbacrolebindingIdBytes(); + + /** + * + * + *
            +   * Required. The rbacrolebindings to create.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rbacrolebinding field is set. + */ + boolean hasRbacrolebinding(); + + /** + * + * + *
            +   * Required. The rbacrolebindings to create.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rbacrolebinding. + */ + com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebinding(); + + /** + * + * + *
            +   * Required. The rbacrolebindings to create.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingOrBuilder(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeRequest.java new file mode 100644 index 000000000000..f40b34cdbf68 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeRequest.java @@ -0,0 +1,1104 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Request to create a Scope.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.CreateScopeRequest} + */ +@com.google.protobuf.Generated +public final class CreateScopeRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.CreateScopeRequest) + CreateScopeRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateScopeRequest"); + } + + // Use CreateScopeRequest.newBuilder() to construct. + private CreateScopeRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateScopeRequest() { + parent_ = ""; + scopeId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateScopeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateScopeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.CreateScopeRequest.class, + com.google.cloud.gkehub.v1.CreateScopeRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The parent (project and location) where the Scope will be
            +   * created. Specified in the format `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The parent (project and location) where the Scope will be
            +   * created. Specified in the format `projects/*/locations/*`.
            +   * 
            + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCOPE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object scopeId_ = ""; + + /** + * + * + *
            +   * Required. Client chosen ID for the Scope. `scope_id` must be a
            +   * ????
            +   * 
            + * + * string scope_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scopeId. + */ + @java.lang.Override + public java.lang.String getScopeId() { + java.lang.Object ref = scopeId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scopeId_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. Client chosen ID for the Scope. `scope_id` must be a
            +   * ????
            +   * 
            + * + * string scope_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for scopeId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getScopeIdBytes() { + java.lang.Object ref = scopeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scopeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCOPE_FIELD_NUMBER = 3; + private com.google.cloud.gkehub.v1.Scope scope_; + + /** + * + * + *
            +   * Required. The Scope to create.
            +   * 
            + * + * .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the scope field is set. + */ + @java.lang.Override + public boolean hasScope() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. The Scope to create.
            +   * 
            + * + * .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scope. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.Scope getScope() { + return scope_ == null ? com.google.cloud.gkehub.v1.Scope.getDefaultInstance() : scope_; + } + + /** + * + * + *
            +   * Required. The Scope to create.
            +   * 
            + * + * .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeOrBuilder getScopeOrBuilder() { + return scope_ == null ? com.google.cloud.gkehub.v1.Scope.getDefaultInstance() : scope_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(scopeId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, scopeId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getScope()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(scopeId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, scopeId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getScope()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.CreateScopeRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.CreateScopeRequest other = + (com.google.cloud.gkehub.v1.CreateScopeRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getScopeId().equals(other.getScopeId())) return false; + if (hasScope() != other.hasScope()) return false; + if (hasScope()) { + if (!getScope().equals(other.getScope())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + SCOPE_ID_FIELD_NUMBER; + hash = (53 * hash) + getScopeId().hashCode(); + if (hasScope()) { + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + getScope().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.CreateScopeRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkehub.v1.CreateScopeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request to create a Scope.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.CreateScopeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.CreateScopeRequest) + com.google.cloud.gkehub.v1.CreateScopeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateScopeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateScopeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.CreateScopeRequest.class, + com.google.cloud.gkehub.v1.CreateScopeRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.CreateScopeRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetScopeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + scopeId_ = ""; + scope_ = null; + if (scopeBuilder_ != null) { + scopeBuilder_.dispose(); + scopeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateScopeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateScopeRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.CreateScopeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateScopeRequest build() { + com.google.cloud.gkehub.v1.CreateScopeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateScopeRequest buildPartial() { + com.google.cloud.gkehub.v1.CreateScopeRequest result = + new com.google.cloud.gkehub.v1.CreateScopeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.CreateScopeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.scopeId_ = scopeId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.scope_ = scopeBuilder_ == null ? scope_ : scopeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.CreateScopeRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.CreateScopeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.CreateScopeRequest other) { + if (other == com.google.cloud.gkehub.v1.CreateScopeRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getScopeId().isEmpty()) { + scopeId_ = other.scopeId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasScope()) { + mergeScope(other.getScope()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + scopeId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetScopeFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
            +     * Required. The parent (project and location) where the Scope will be
            +     * created. Specified in the format `projects/*/locations/*`.
            +     * 
            + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the Scope will be
            +     * created. Specified in the format `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the Scope will be
            +     * created. Specified in the format `projects/*/locations/*`.
            +     * 
            + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the Scope will be
            +     * created. Specified in the format `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the Scope will be
            +     * created. Specified in the format `projects/*/locations/*`.
            +     * 
            + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object scopeId_ = ""; + + /** + * + * + *
            +     * Required. Client chosen ID for the Scope. `scope_id` must be a
            +     * ????
            +     * 
            + * + * string scope_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scopeId. + */ + public java.lang.String getScopeId() { + java.lang.Object ref = scopeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scopeId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. Client chosen ID for the Scope. `scope_id` must be a
            +     * ????
            +     * 
            + * + * string scope_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for scopeId. + */ + public com.google.protobuf.ByteString getScopeIdBytes() { + java.lang.Object ref = scopeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scopeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. Client chosen ID for the Scope. `scope_id` must be a
            +     * ????
            +     * 
            + * + * string scope_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The scopeId to set. + * @return This builder for chaining. + */ + public Builder setScopeId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + scopeId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Client chosen ID for the Scope. `scope_id` must be a
            +     * ????
            +     * 
            + * + * string scope_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearScopeId() { + scopeId_ = getDefaultInstance().getScopeId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Client chosen ID for the Scope. `scope_id` must be a
            +     * ????
            +     * 
            + * + * string scope_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for scopeId to set. + * @return This builder for chaining. + */ + public Builder setScopeIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scopeId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.gkehub.v1.Scope scope_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Scope, + com.google.cloud.gkehub.v1.Scope.Builder, + com.google.cloud.gkehub.v1.ScopeOrBuilder> + scopeBuilder_; + + /** + * + * + *
            +     * Required. The Scope to create.
            +     * 
            + * + * .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the scope field is set. + */ + public boolean hasScope() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Required. The Scope to create.
            +     * 
            + * + * .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The scope. + */ + public com.google.cloud.gkehub.v1.Scope getScope() { + if (scopeBuilder_ == null) { + return scope_ == null ? com.google.cloud.gkehub.v1.Scope.getDefaultInstance() : scope_; + } else { + return scopeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The Scope to create.
            +     * 
            + * + * .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setScope(com.google.cloud.gkehub.v1.Scope value) { + if (scopeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scope_ = value; + } else { + scopeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Scope to create.
            +     * 
            + * + * .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setScope(com.google.cloud.gkehub.v1.Scope.Builder builderForValue) { + if (scopeBuilder_ == null) { + scope_ = builderForValue.build(); + } else { + scopeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Scope to create.
            +     * 
            + * + * .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeScope(com.google.cloud.gkehub.v1.Scope value) { + if (scopeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && scope_ != null + && scope_ != com.google.cloud.gkehub.v1.Scope.getDefaultInstance()) { + getScopeBuilder().mergeFrom(value); + } else { + scope_ = value; + } + } else { + scopeBuilder_.mergeFrom(value); + } + if (scope_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The Scope to create.
            +     * 
            + * + * .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearScope() { + bitField0_ = (bitField0_ & ~0x00000004); + scope_ = null; + if (scopeBuilder_ != null) { + scopeBuilder_.dispose(); + scopeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Scope to create.
            +     * 
            + * + * .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.Scope.Builder getScopeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetScopeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The Scope to create.
            +     * 
            + * + * .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.ScopeOrBuilder getScopeOrBuilder() { + if (scopeBuilder_ != null) { + return scopeBuilder_.getMessageOrBuilder(); + } else { + return scope_ == null ? com.google.cloud.gkehub.v1.Scope.getDefaultInstance() : scope_; + } + } + + /** + * + * + *
            +     * Required. The Scope to create.
            +     * 
            + * + * .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Scope, + com.google.cloud.gkehub.v1.Scope.Builder, + com.google.cloud.gkehub.v1.ScopeOrBuilder> + internalGetScopeFieldBuilder() { + if (scopeBuilder_ == null) { + scopeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Scope, + com.google.cloud.gkehub.v1.Scope.Builder, + com.google.cloud.gkehub.v1.ScopeOrBuilder>( + getScope(), getParentForChildren(), isClean()); + scope_ = null; + } + return scopeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.CreateScopeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.CreateScopeRequest) + private static final com.google.cloud.gkehub.v1.CreateScopeRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.CreateScopeRequest(); + } + + public static com.google.cloud.gkehub.v1.CreateScopeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateScopeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.CreateScopeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeRequestOrBuilder.java new file mode 100644 index 000000000000..5c5ca3cbebe4 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateScopeRequestOrBuilder.java @@ -0,0 +1,125 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface CreateScopeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.CreateScopeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The parent (project and location) where the Scope will be
            +   * created. Specified in the format `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The parent (project and location) where the Scope will be
            +   * created. Specified in the format `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Required. Client chosen ID for the Scope. `scope_id` must be a
            +   * ????
            +   * 
            + * + * string scope_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scopeId. + */ + java.lang.String getScopeId(); + + /** + * + * + *
            +   * Required. Client chosen ID for the Scope. `scope_id` must be a
            +   * ????
            +   * 
            + * + * string scope_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for scopeId. + */ + com.google.protobuf.ByteString getScopeIdBytes(); + + /** + * + * + *
            +   * Required. The Scope to create.
            +   * 
            + * + * .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the scope field is set. + */ + boolean hasScope(); + + /** + * + * + *
            +   * Required. The Scope to create.
            +   * 
            + * + * .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scope. + */ + com.google.cloud.gkehub.v1.Scope getScope(); + + /** + * + * + *
            +   * Required. The Scope to create.
            +   * 
            + * + * .google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.gkehub.v1.ScopeOrBuilder getScopeOrBuilder(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DefaultClusterConfig.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DefaultClusterConfig.java new file mode 100644 index 000000000000..d578765ba9b9 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DefaultClusterConfig.java @@ -0,0 +1,1371 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * DefaultClusterConfig describes the default cluster configurations to be
            + * applied to all clusters born-in-fleet.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.DefaultClusterConfig} + */ +@com.google.protobuf.Generated +public final class DefaultClusterConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.DefaultClusterConfig) + DefaultClusterConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DefaultClusterConfig"); + } + + // Use DefaultClusterConfig.newBuilder() to construct. + private DefaultClusterConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DefaultClusterConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_DefaultClusterConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_DefaultClusterConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.DefaultClusterConfig.class, + com.google.cloud.gkehub.v1.DefaultClusterConfig.Builder.class); + } + + private int bitField0_; + public static final int SECURITY_POSTURE_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.gkehub.v1.SecurityPostureConfig securityPostureConfig_; + + /** + * + * + *
            +   * Enable/Disable Security Posture features for the cluster.
            +   * 
            + * + * .google.cloud.gkehub.v1.SecurityPostureConfig security_posture_config = 1; + * + * @return Whether the securityPostureConfig field is set. + */ + @java.lang.Override + public boolean hasSecurityPostureConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Enable/Disable Security Posture features for the cluster.
            +   * 
            + * + * .google.cloud.gkehub.v1.SecurityPostureConfig security_posture_config = 1; + * + * @return The securityPostureConfig. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.SecurityPostureConfig getSecurityPostureConfig() { + return securityPostureConfig_ == null + ? com.google.cloud.gkehub.v1.SecurityPostureConfig.getDefaultInstance() + : securityPostureConfig_; + } + + /** + * + * + *
            +   * Enable/Disable Security Posture features for the cluster.
            +   * 
            + * + * .google.cloud.gkehub.v1.SecurityPostureConfig security_posture_config = 1; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.SecurityPostureConfigOrBuilder + getSecurityPostureConfigOrBuilder() { + return securityPostureConfig_ == null + ? com.google.cloud.gkehub.v1.SecurityPostureConfig.getDefaultInstance() + : securityPostureConfig_; + } + + public static final int BINARY_AUTHORIZATION_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.gkehub.v1.BinaryAuthorizationConfig binaryAuthorizationConfig_; + + /** + * + * + *
            +   * Optional. Enable/Disable binary authorization features for the cluster.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig binary_authorization_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the binaryAuthorizationConfig field is set. + */ + @java.lang.Override + public boolean hasBinaryAuthorizationConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Optional. Enable/Disable binary authorization features for the cluster.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig binary_authorization_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The binaryAuthorizationConfig. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig getBinaryAuthorizationConfig() { + return binaryAuthorizationConfig_ == null + ? com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.getDefaultInstance() + : binaryAuthorizationConfig_; + } + + /** + * + * + *
            +   * Optional. Enable/Disable binary authorization features for the cluster.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig binary_authorization_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfigOrBuilder + getBinaryAuthorizationConfigOrBuilder() { + return binaryAuthorizationConfig_ == null + ? com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.getDefaultInstance() + : binaryAuthorizationConfig_; + } + + public static final int COMPLIANCE_POSTURE_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.gkehub.v1.CompliancePostureConfig compliancePostureConfig_; + + /** + * + * + *
            +   * Optional. Enable/Disable Compliance Posture features for the cluster.
            +   * Note that on UpdateFleet, only full replacement of this field is allowed.
            +   * Users are not allowed for partial updates through field mask.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.CompliancePostureConfig compliance_posture_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the compliancePostureConfig field is set. + */ + @java.lang.Override + public boolean hasCompliancePostureConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * Optional. Enable/Disable Compliance Posture features for the cluster.
            +   * Note that on UpdateFleet, only full replacement of this field is allowed.
            +   * Users are not allowed for partial updates through field mask.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.CompliancePostureConfig compliance_posture_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The compliancePostureConfig. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.CompliancePostureConfig getCompliancePostureConfig() { + return compliancePostureConfig_ == null + ? com.google.cloud.gkehub.v1.CompliancePostureConfig.getDefaultInstance() + : compliancePostureConfig_; + } + + /** + * + * + *
            +   * Optional. Enable/Disable Compliance Posture features for the cluster.
            +   * Note that on UpdateFleet, only full replacement of this field is allowed.
            +   * Users are not allowed for partial updates through field mask.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.CompliancePostureConfig compliance_posture_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.CompliancePostureConfigOrBuilder + getCompliancePostureConfigOrBuilder() { + return compliancePostureConfig_ == null + ? com.google.cloud.gkehub.v1.CompliancePostureConfig.getDefaultInstance() + : compliancePostureConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSecurityPostureConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getBinaryAuthorizationConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getCompliancePostureConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSecurityPostureConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getBinaryAuthorizationConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCompliancePostureConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.DefaultClusterConfig)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.DefaultClusterConfig other = + (com.google.cloud.gkehub.v1.DefaultClusterConfig) obj; + + if (hasSecurityPostureConfig() != other.hasSecurityPostureConfig()) return false; + if (hasSecurityPostureConfig()) { + if (!getSecurityPostureConfig().equals(other.getSecurityPostureConfig())) return false; + } + if (hasBinaryAuthorizationConfig() != other.hasBinaryAuthorizationConfig()) return false; + if (hasBinaryAuthorizationConfig()) { + if (!getBinaryAuthorizationConfig().equals(other.getBinaryAuthorizationConfig())) + return false; + } + if (hasCompliancePostureConfig() != other.hasCompliancePostureConfig()) return false; + if (hasCompliancePostureConfig()) { + if (!getCompliancePostureConfig().equals(other.getCompliancePostureConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSecurityPostureConfig()) { + hash = (37 * hash) + SECURITY_POSTURE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSecurityPostureConfig().hashCode(); + } + if (hasBinaryAuthorizationConfig()) { + hash = (37 * hash) + BINARY_AUTHORIZATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getBinaryAuthorizationConfig().hashCode(); + } + if (hasCompliancePostureConfig()) { + hash = (37 * hash) + COMPLIANCE_POSTURE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCompliancePostureConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.DefaultClusterConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DefaultClusterConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DefaultClusterConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DefaultClusterConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DefaultClusterConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DefaultClusterConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DefaultClusterConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DefaultClusterConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DefaultClusterConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DefaultClusterConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DefaultClusterConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DefaultClusterConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkehub.v1.DefaultClusterConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * DefaultClusterConfig describes the default cluster configurations to be
            +   * applied to all clusters born-in-fleet.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.DefaultClusterConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.DefaultClusterConfig) + com.google.cloud.gkehub.v1.DefaultClusterConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_DefaultClusterConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_DefaultClusterConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.DefaultClusterConfig.class, + com.google.cloud.gkehub.v1.DefaultClusterConfig.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.DefaultClusterConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSecurityPostureConfigFieldBuilder(); + internalGetBinaryAuthorizationConfigFieldBuilder(); + internalGetCompliancePostureConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + securityPostureConfig_ = null; + if (securityPostureConfigBuilder_ != null) { + securityPostureConfigBuilder_.dispose(); + securityPostureConfigBuilder_ = null; + } + binaryAuthorizationConfig_ = null; + if (binaryAuthorizationConfigBuilder_ != null) { + binaryAuthorizationConfigBuilder_.dispose(); + binaryAuthorizationConfigBuilder_ = null; + } + compliancePostureConfig_ = null; + if (compliancePostureConfigBuilder_ != null) { + compliancePostureConfigBuilder_.dispose(); + compliancePostureConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_DefaultClusterConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DefaultClusterConfig getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.DefaultClusterConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DefaultClusterConfig build() { + com.google.cloud.gkehub.v1.DefaultClusterConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DefaultClusterConfig buildPartial() { + com.google.cloud.gkehub.v1.DefaultClusterConfig result = + new com.google.cloud.gkehub.v1.DefaultClusterConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.DefaultClusterConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.securityPostureConfig_ = + securityPostureConfigBuilder_ == null + ? securityPostureConfig_ + : securityPostureConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.binaryAuthorizationConfig_ = + binaryAuthorizationConfigBuilder_ == null + ? binaryAuthorizationConfig_ + : binaryAuthorizationConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.compliancePostureConfig_ = + compliancePostureConfigBuilder_ == null + ? compliancePostureConfig_ + : compliancePostureConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.DefaultClusterConfig) { + return mergeFrom((com.google.cloud.gkehub.v1.DefaultClusterConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.DefaultClusterConfig other) { + if (other == com.google.cloud.gkehub.v1.DefaultClusterConfig.getDefaultInstance()) + return this; + if (other.hasSecurityPostureConfig()) { + mergeSecurityPostureConfig(other.getSecurityPostureConfig()); + } + if (other.hasBinaryAuthorizationConfig()) { + mergeBinaryAuthorizationConfig(other.getBinaryAuthorizationConfig()); + } + if (other.hasCompliancePostureConfig()) { + mergeCompliancePostureConfig(other.getCompliancePostureConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetSecurityPostureConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetBinaryAuthorizationConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCompliancePostureConfigFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.gkehub.v1.SecurityPostureConfig securityPostureConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.SecurityPostureConfig, + com.google.cloud.gkehub.v1.SecurityPostureConfig.Builder, + com.google.cloud.gkehub.v1.SecurityPostureConfigOrBuilder> + securityPostureConfigBuilder_; + + /** + * + * + *
            +     * Enable/Disable Security Posture features for the cluster.
            +     * 
            + * + * .google.cloud.gkehub.v1.SecurityPostureConfig security_posture_config = 1; + * + * @return Whether the securityPostureConfig field is set. + */ + public boolean hasSecurityPostureConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Enable/Disable Security Posture features for the cluster.
            +     * 
            + * + * .google.cloud.gkehub.v1.SecurityPostureConfig security_posture_config = 1; + * + * @return The securityPostureConfig. + */ + public com.google.cloud.gkehub.v1.SecurityPostureConfig getSecurityPostureConfig() { + if (securityPostureConfigBuilder_ == null) { + return securityPostureConfig_ == null + ? com.google.cloud.gkehub.v1.SecurityPostureConfig.getDefaultInstance() + : securityPostureConfig_; + } else { + return securityPostureConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Enable/Disable Security Posture features for the cluster.
            +     * 
            + * + * .google.cloud.gkehub.v1.SecurityPostureConfig security_posture_config = 1; + */ + public Builder setSecurityPostureConfig( + com.google.cloud.gkehub.v1.SecurityPostureConfig value) { + if (securityPostureConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + securityPostureConfig_ = value; + } else { + securityPostureConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Enable/Disable Security Posture features for the cluster.
            +     * 
            + * + * .google.cloud.gkehub.v1.SecurityPostureConfig security_posture_config = 1; + */ + public Builder setSecurityPostureConfig( + com.google.cloud.gkehub.v1.SecurityPostureConfig.Builder builderForValue) { + if (securityPostureConfigBuilder_ == null) { + securityPostureConfig_ = builderForValue.build(); + } else { + securityPostureConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Enable/Disable Security Posture features for the cluster.
            +     * 
            + * + * .google.cloud.gkehub.v1.SecurityPostureConfig security_posture_config = 1; + */ + public Builder mergeSecurityPostureConfig( + com.google.cloud.gkehub.v1.SecurityPostureConfig value) { + if (securityPostureConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && securityPostureConfig_ != null + && securityPostureConfig_ + != com.google.cloud.gkehub.v1.SecurityPostureConfig.getDefaultInstance()) { + getSecurityPostureConfigBuilder().mergeFrom(value); + } else { + securityPostureConfig_ = value; + } + } else { + securityPostureConfigBuilder_.mergeFrom(value); + } + if (securityPostureConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Enable/Disable Security Posture features for the cluster.
            +     * 
            + * + * .google.cloud.gkehub.v1.SecurityPostureConfig security_posture_config = 1; + */ + public Builder clearSecurityPostureConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + securityPostureConfig_ = null; + if (securityPostureConfigBuilder_ != null) { + securityPostureConfigBuilder_.dispose(); + securityPostureConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Enable/Disable Security Posture features for the cluster.
            +     * 
            + * + * .google.cloud.gkehub.v1.SecurityPostureConfig security_posture_config = 1; + */ + public com.google.cloud.gkehub.v1.SecurityPostureConfig.Builder + getSecurityPostureConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetSecurityPostureConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Enable/Disable Security Posture features for the cluster.
            +     * 
            + * + * .google.cloud.gkehub.v1.SecurityPostureConfig security_posture_config = 1; + */ + public com.google.cloud.gkehub.v1.SecurityPostureConfigOrBuilder + getSecurityPostureConfigOrBuilder() { + if (securityPostureConfigBuilder_ != null) { + return securityPostureConfigBuilder_.getMessageOrBuilder(); + } else { + return securityPostureConfig_ == null + ? com.google.cloud.gkehub.v1.SecurityPostureConfig.getDefaultInstance() + : securityPostureConfig_; + } + } + + /** + * + * + *
            +     * Enable/Disable Security Posture features for the cluster.
            +     * 
            + * + * .google.cloud.gkehub.v1.SecurityPostureConfig security_posture_config = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.SecurityPostureConfig, + com.google.cloud.gkehub.v1.SecurityPostureConfig.Builder, + com.google.cloud.gkehub.v1.SecurityPostureConfigOrBuilder> + internalGetSecurityPostureConfigFieldBuilder() { + if (securityPostureConfigBuilder_ == null) { + securityPostureConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.SecurityPostureConfig, + com.google.cloud.gkehub.v1.SecurityPostureConfig.Builder, + com.google.cloud.gkehub.v1.SecurityPostureConfigOrBuilder>( + getSecurityPostureConfig(), getParentForChildren(), isClean()); + securityPostureConfig_ = null; + } + return securityPostureConfigBuilder_; + } + + private com.google.cloud.gkehub.v1.BinaryAuthorizationConfig binaryAuthorizationConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.Builder, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfigOrBuilder> + binaryAuthorizationConfigBuilder_; + + /** + * + * + *
            +     * Optional. Enable/Disable binary authorization features for the cluster.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig binary_authorization_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the binaryAuthorizationConfig field is set. + */ + public boolean hasBinaryAuthorizationConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Optional. Enable/Disable binary authorization features for the cluster.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig binary_authorization_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The binaryAuthorizationConfig. + */ + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig getBinaryAuthorizationConfig() { + if (binaryAuthorizationConfigBuilder_ == null) { + return binaryAuthorizationConfig_ == null + ? com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.getDefaultInstance() + : binaryAuthorizationConfig_; + } else { + return binaryAuthorizationConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Enable/Disable binary authorization features for the cluster.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig binary_authorization_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBinaryAuthorizationConfig( + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig value) { + if (binaryAuthorizationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + binaryAuthorizationConfig_ = value; + } else { + binaryAuthorizationConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Enable/Disable binary authorization features for the cluster.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig binary_authorization_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBinaryAuthorizationConfig( + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.Builder builderForValue) { + if (binaryAuthorizationConfigBuilder_ == null) { + binaryAuthorizationConfig_ = builderForValue.build(); + } else { + binaryAuthorizationConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Enable/Disable binary authorization features for the cluster.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig binary_authorization_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeBinaryAuthorizationConfig( + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig value) { + if (binaryAuthorizationConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && binaryAuthorizationConfig_ != null + && binaryAuthorizationConfig_ + != com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.getDefaultInstance()) { + getBinaryAuthorizationConfigBuilder().mergeFrom(value); + } else { + binaryAuthorizationConfig_ = value; + } + } else { + binaryAuthorizationConfigBuilder_.mergeFrom(value); + } + if (binaryAuthorizationConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Enable/Disable binary authorization features for the cluster.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig binary_authorization_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearBinaryAuthorizationConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + binaryAuthorizationConfig_ = null; + if (binaryAuthorizationConfigBuilder_ != null) { + binaryAuthorizationConfigBuilder_.dispose(); + binaryAuthorizationConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Enable/Disable binary authorization features for the cluster.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig binary_authorization_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.Builder + getBinaryAuthorizationConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetBinaryAuthorizationConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Enable/Disable binary authorization features for the cluster.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig binary_authorization_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkehub.v1.BinaryAuthorizationConfigOrBuilder + getBinaryAuthorizationConfigOrBuilder() { + if (binaryAuthorizationConfigBuilder_ != null) { + return binaryAuthorizationConfigBuilder_.getMessageOrBuilder(); + } else { + return binaryAuthorizationConfig_ == null + ? com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.getDefaultInstance() + : binaryAuthorizationConfig_; + } + } + + /** + * + * + *
            +     * Optional. Enable/Disable binary authorization features for the cluster.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig binary_authorization_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.Builder, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfigOrBuilder> + internalGetBinaryAuthorizationConfigFieldBuilder() { + if (binaryAuthorizationConfigBuilder_ == null) { + binaryAuthorizationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig.Builder, + com.google.cloud.gkehub.v1.BinaryAuthorizationConfigOrBuilder>( + getBinaryAuthorizationConfig(), getParentForChildren(), isClean()); + binaryAuthorizationConfig_ = null; + } + return binaryAuthorizationConfigBuilder_; + } + + private com.google.cloud.gkehub.v1.CompliancePostureConfig compliancePostureConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.CompliancePostureConfig, + com.google.cloud.gkehub.v1.CompliancePostureConfig.Builder, + com.google.cloud.gkehub.v1.CompliancePostureConfigOrBuilder> + compliancePostureConfigBuilder_; + + /** + * + * + *
            +     * Optional. Enable/Disable Compliance Posture features for the cluster.
            +     * Note that on UpdateFleet, only full replacement of this field is allowed.
            +     * Users are not allowed for partial updates through field mask.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.CompliancePostureConfig compliance_posture_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the compliancePostureConfig field is set. + */ + public boolean hasCompliancePostureConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Optional. Enable/Disable Compliance Posture features for the cluster.
            +     * Note that on UpdateFleet, only full replacement of this field is allowed.
            +     * Users are not allowed for partial updates through field mask.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.CompliancePostureConfig compliance_posture_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The compliancePostureConfig. + */ + public com.google.cloud.gkehub.v1.CompliancePostureConfig getCompliancePostureConfig() { + if (compliancePostureConfigBuilder_ == null) { + return compliancePostureConfig_ == null + ? com.google.cloud.gkehub.v1.CompliancePostureConfig.getDefaultInstance() + : compliancePostureConfig_; + } else { + return compliancePostureConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Enable/Disable Compliance Posture features for the cluster.
            +     * Note that on UpdateFleet, only full replacement of this field is allowed.
            +     * Users are not allowed for partial updates through field mask.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.CompliancePostureConfig compliance_posture_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCompliancePostureConfig( + com.google.cloud.gkehub.v1.CompliancePostureConfig value) { + if (compliancePostureConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + compliancePostureConfig_ = value; + } else { + compliancePostureConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Enable/Disable Compliance Posture features for the cluster.
            +     * Note that on UpdateFleet, only full replacement of this field is allowed.
            +     * Users are not allowed for partial updates through field mask.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.CompliancePostureConfig compliance_posture_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCompliancePostureConfig( + com.google.cloud.gkehub.v1.CompliancePostureConfig.Builder builderForValue) { + if (compliancePostureConfigBuilder_ == null) { + compliancePostureConfig_ = builderForValue.build(); + } else { + compliancePostureConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Enable/Disable Compliance Posture features for the cluster.
            +     * Note that on UpdateFleet, only full replacement of this field is allowed.
            +     * Users are not allowed for partial updates through field mask.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.CompliancePostureConfig compliance_posture_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCompliancePostureConfig( + com.google.cloud.gkehub.v1.CompliancePostureConfig value) { + if (compliancePostureConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && compliancePostureConfig_ != null + && compliancePostureConfig_ + != com.google.cloud.gkehub.v1.CompliancePostureConfig.getDefaultInstance()) { + getCompliancePostureConfigBuilder().mergeFrom(value); + } else { + compliancePostureConfig_ = value; + } + } else { + compliancePostureConfigBuilder_.mergeFrom(value); + } + if (compliancePostureConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Enable/Disable Compliance Posture features for the cluster.
            +     * Note that on UpdateFleet, only full replacement of this field is allowed.
            +     * Users are not allowed for partial updates through field mask.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.CompliancePostureConfig compliance_posture_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCompliancePostureConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + compliancePostureConfig_ = null; + if (compliancePostureConfigBuilder_ != null) { + compliancePostureConfigBuilder_.dispose(); + compliancePostureConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Enable/Disable Compliance Posture features for the cluster.
            +     * Note that on UpdateFleet, only full replacement of this field is allowed.
            +     * Users are not allowed for partial updates through field mask.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.CompliancePostureConfig compliance_posture_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkehub.v1.CompliancePostureConfig.Builder + getCompliancePostureConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCompliancePostureConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Enable/Disable Compliance Posture features for the cluster.
            +     * Note that on UpdateFleet, only full replacement of this field is allowed.
            +     * Users are not allowed for partial updates through field mask.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.CompliancePostureConfig compliance_posture_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkehub.v1.CompliancePostureConfigOrBuilder + getCompliancePostureConfigOrBuilder() { + if (compliancePostureConfigBuilder_ != null) { + return compliancePostureConfigBuilder_.getMessageOrBuilder(); + } else { + return compliancePostureConfig_ == null + ? com.google.cloud.gkehub.v1.CompliancePostureConfig.getDefaultInstance() + : compliancePostureConfig_; + } + } + + /** + * + * + *
            +     * Optional. Enable/Disable Compliance Posture features for the cluster.
            +     * Note that on UpdateFleet, only full replacement of this field is allowed.
            +     * Users are not allowed for partial updates through field mask.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.CompliancePostureConfig compliance_posture_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.CompliancePostureConfig, + com.google.cloud.gkehub.v1.CompliancePostureConfig.Builder, + com.google.cloud.gkehub.v1.CompliancePostureConfigOrBuilder> + internalGetCompliancePostureConfigFieldBuilder() { + if (compliancePostureConfigBuilder_ == null) { + compliancePostureConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.CompliancePostureConfig, + com.google.cloud.gkehub.v1.CompliancePostureConfig.Builder, + com.google.cloud.gkehub.v1.CompliancePostureConfigOrBuilder>( + getCompliancePostureConfig(), getParentForChildren(), isClean()); + compliancePostureConfig_ = null; + } + return compliancePostureConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.DefaultClusterConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.DefaultClusterConfig) + private static final com.google.cloud.gkehub.v1.DefaultClusterConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.DefaultClusterConfig(); + } + + public static com.google.cloud.gkehub.v1.DefaultClusterConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DefaultClusterConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DefaultClusterConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DefaultClusterConfigOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DefaultClusterConfigOrBuilder.java new file mode 100644 index 000000000000..839436f431fa --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DefaultClusterConfigOrBuilder.java @@ -0,0 +1,158 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface DefaultClusterConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.DefaultClusterConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Enable/Disable Security Posture features for the cluster.
            +   * 
            + * + * .google.cloud.gkehub.v1.SecurityPostureConfig security_posture_config = 1; + * + * @return Whether the securityPostureConfig field is set. + */ + boolean hasSecurityPostureConfig(); + + /** + * + * + *
            +   * Enable/Disable Security Posture features for the cluster.
            +   * 
            + * + * .google.cloud.gkehub.v1.SecurityPostureConfig security_posture_config = 1; + * + * @return The securityPostureConfig. + */ + com.google.cloud.gkehub.v1.SecurityPostureConfig getSecurityPostureConfig(); + + /** + * + * + *
            +   * Enable/Disable Security Posture features for the cluster.
            +   * 
            + * + * .google.cloud.gkehub.v1.SecurityPostureConfig security_posture_config = 1; + */ + com.google.cloud.gkehub.v1.SecurityPostureConfigOrBuilder getSecurityPostureConfigOrBuilder(); + + /** + * + * + *
            +   * Optional. Enable/Disable binary authorization features for the cluster.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig binary_authorization_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the binaryAuthorizationConfig field is set. + */ + boolean hasBinaryAuthorizationConfig(); + + /** + * + * + *
            +   * Optional. Enable/Disable binary authorization features for the cluster.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig binary_authorization_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The binaryAuthorizationConfig. + */ + com.google.cloud.gkehub.v1.BinaryAuthorizationConfig getBinaryAuthorizationConfig(); + + /** + * + * + *
            +   * Optional. Enable/Disable binary authorization features for the cluster.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.BinaryAuthorizationConfig binary_authorization_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gkehub.v1.BinaryAuthorizationConfigOrBuilder + getBinaryAuthorizationConfigOrBuilder(); + + /** + * + * + *
            +   * Optional. Enable/Disable Compliance Posture features for the cluster.
            +   * Note that on UpdateFleet, only full replacement of this field is allowed.
            +   * Users are not allowed for partial updates through field mask.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.CompliancePostureConfig compliance_posture_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the compliancePostureConfig field is set. + */ + boolean hasCompliancePostureConfig(); + + /** + * + * + *
            +   * Optional. Enable/Disable Compliance Posture features for the cluster.
            +   * Note that on UpdateFleet, only full replacement of this field is allowed.
            +   * Users are not allowed for partial updates through field mask.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.CompliancePostureConfig compliance_posture_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The compliancePostureConfig. + */ + com.google.cloud.gkehub.v1.CompliancePostureConfig getCompliancePostureConfig(); + + /** + * + * + *
            +   * Optional. Enable/Disable Compliance Posture features for the cluster.
            +   * Note that on UpdateFleet, only full replacement of this field is allowed.
            +   * Users are not allowed for partial updates through field mask.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.CompliancePostureConfig compliance_posture_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gkehub.v1.CompliancePostureConfigOrBuilder getCompliancePostureConfigOrBuilder(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFleetRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFleetRequest.java new file mode 100644 index 000000000000..82f85c210f06 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFleetRequest.java @@ -0,0 +1,616 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Request message for `GkeHub.DeleteFleet` method.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.DeleteFleetRequest} + */ +@com.google.protobuf.Generated +public final class DeleteFleetRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.DeleteFleetRequest) + DeleteFleetRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteFleetRequest"); + } + + // Use DeleteFleetRequest.newBuilder() to construct. + private DeleteFleetRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteFleetRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteFleetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteFleetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.DeleteFleetRequest.class, + com.google.cloud.gkehub.v1.DeleteFleetRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The Fleet resource name in the format
            +   * `projects/*/locations/*/fleets/*`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The Fleet resource name in the format
            +   * `projects/*/locations/*/fleets/*`.
            +   * 
            + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.DeleteFleetRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.DeleteFleetRequest other = + (com.google.cloud.gkehub.v1.DeleteFleetRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.DeleteFleetRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteFleetRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteFleetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteFleetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteFleetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteFleetRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteFleetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteFleetRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteFleetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteFleetRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteFleetRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteFleetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkehub.v1.DeleteFleetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for `GkeHub.DeleteFleet` method.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.DeleteFleetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.DeleteFleetRequest) + com.google.cloud.gkehub.v1.DeleteFleetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteFleetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteFleetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.DeleteFleetRequest.class, + com.google.cloud.gkehub.v1.DeleteFleetRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.DeleteFleetRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteFleetRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteFleetRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.DeleteFleetRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteFleetRequest build() { + com.google.cloud.gkehub.v1.DeleteFleetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteFleetRequest buildPartial() { + com.google.cloud.gkehub.v1.DeleteFleetRequest result = + new com.google.cloud.gkehub.v1.DeleteFleetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.DeleteFleetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.DeleteFleetRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.DeleteFleetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.DeleteFleetRequest other) { + if (other == com.google.cloud.gkehub.v1.DeleteFleetRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. The Fleet resource name in the format
            +     * `projects/*/locations/*/fleets/*`.
            +     * 
            + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The Fleet resource name in the format
            +     * `projects/*/locations/*/fleets/*`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The Fleet resource name in the format
            +     * `projects/*/locations/*/fleets/*`.
            +     * 
            + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Fleet resource name in the format
            +     * `projects/*/locations/*/fleets/*`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Fleet resource name in the format
            +     * `projects/*/locations/*/fleets/*`.
            +     * 
            + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.DeleteFleetRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.DeleteFleetRequest) + private static final com.google.cloud.gkehub.v1.DeleteFleetRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.DeleteFleetRequest(); + } + + public static com.google.cloud.gkehub.v1.DeleteFleetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFleetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteFleetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFleetRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFleetRequestOrBuilder.java new file mode 100644 index 000000000000..8241b744a6fd --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFleetRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface DeleteFleetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.DeleteFleetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The Fleet resource name in the format
            +   * `projects/*/locations/*/fleets/*`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The Fleet resource name in the format
            +   * `projects/*/locations/*/fleets/*`.
            +   * 
            + * + * + * 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-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipBindingRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipBindingRequest.java new file mode 100644 index 000000000000..7467109ff706 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipBindingRequest.java @@ -0,0 +1,618 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Request to delete a Binding.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.DeleteMembershipBindingRequest} + */ +@com.google.protobuf.Generated +public final class DeleteMembershipBindingRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.DeleteMembershipBindingRequest) + DeleteMembershipBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteMembershipBindingRequest"); + } + + // Use DeleteMembershipBindingRequest.newBuilder() to construct. + private DeleteMembershipBindingRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteMembershipBindingRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteMembershipBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteMembershipBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest.class, + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The MembershipBinding resource name in the format
            +   * `projects/*/locations/*/memberships/*/bindings/*`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The MembershipBinding resource name in the format
            +   * `projects/*/locations/*/memberships/*/bindings/*`.
            +   * 
            + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest other = + (com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request to delete a Binding.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.DeleteMembershipBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.DeleteMembershipBindingRequest) + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteMembershipBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteMembershipBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest.class, + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteMembershipBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest build() { + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest buildPartial() { + com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest result = + new com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest other) { + if (other == com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. The MembershipBinding resource name in the format
            +     * `projects/*/locations/*/memberships/*/bindings/*`.
            +     * 
            + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The MembershipBinding resource name in the format
            +     * `projects/*/locations/*/memberships/*/bindings/*`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The MembershipBinding resource name in the format
            +     * `projects/*/locations/*/memberships/*/bindings/*`.
            +     * 
            + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The MembershipBinding resource name in the format
            +     * `projects/*/locations/*/memberships/*/bindings/*`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The MembershipBinding resource name in the format
            +     * `projects/*/locations/*/memberships/*/bindings/*`.
            +     * 
            + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.DeleteMembershipBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.DeleteMembershipBindingRequest) + private static final com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest(); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteMembershipBindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipBindingRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipBindingRequestOrBuilder.java new file mode 100644 index 000000000000..bc9ba8976d17 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipBindingRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface DeleteMembershipBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.DeleteMembershipBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The MembershipBinding resource name in the format
            +   * `projects/*/locations/*/memberships/*/bindings/*`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The MembershipBinding resource name in the format
            +   * `projects/*/locations/*/memberships/*/bindings/*`.
            +   * 
            + * + * + * 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-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRBACRoleBindingRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRBACRoleBindingRequest.java new file mode 100644 index 000000000000..06c480b93341 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRBACRoleBindingRequest.java @@ -0,0 +1,629 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Request to delete a Membership RBACRoleBinding.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest} + */ +@com.google.protobuf.Generated +public final class DeleteMembershipRBACRoleBindingRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest) + DeleteMembershipRBACRoleBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteMembershipRBACRoleBindingRequest"); + } + + // Use DeleteMembershipRBACRoleBindingRequest.newBuilder() to construct. + private DeleteMembershipRBACRoleBindingRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteMembershipRBACRoleBindingRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteMembershipRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteMembershipRBACRoleBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest.class, + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The RBACRoleBinding resource name in the format
            +   * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The RBACRoleBinding resource name in the format
            +   * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
            +   * 
            + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest other = + (com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request to delete a Membership RBACRoleBinding.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest) + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteMembershipRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteMembershipRBACRoleBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest.class, + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest.Builder.class); + } + + // Construct using + // com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteMembershipRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest + getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest build() { + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest buildPartial() { + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest result = + new com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest other) { + if (other + == com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. The RBACRoleBinding resource name in the format
            +     * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
            +     * 
            + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The RBACRoleBinding resource name in the format
            +     * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The RBACRoleBinding resource name in the format
            +     * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
            +     * 
            + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The RBACRoleBinding resource name in the format
            +     * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The RBACRoleBinding resource name in the format
            +     * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
            +     * 
            + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest) + private static final com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest(); + } + + public static com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteMembershipRBACRoleBindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRBACRoleBindingRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRBACRoleBindingRequestOrBuilder.java new file mode 100644 index 000000000000..cee770e56a6f --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRBACRoleBindingRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface DeleteMembershipRBACRoleBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The RBACRoleBinding resource name in the format
            +   * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The RBACRoleBinding resource name in the format
            +   * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
            +   * 
            + * + * + * 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-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeNamespaceRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeNamespaceRequest.java new file mode 100644 index 000000000000..e257f23ee135 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeNamespaceRequest.java @@ -0,0 +1,618 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Request to delete a fleet namespace.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.DeleteScopeNamespaceRequest} + */ +@com.google.protobuf.Generated +public final class DeleteScopeNamespaceRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.DeleteScopeNamespaceRequest) + DeleteScopeNamespaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteScopeNamespaceRequest"); + } + + // Use DeleteScopeNamespaceRequest.newBuilder() to construct. + private DeleteScopeNamespaceRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteScopeNamespaceRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteScopeNamespaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteScopeNamespaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest.class, + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The Namespace resource name in the format
            +   * `projects/*/locations/*/scopes/*/namespaces/*`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The Namespace resource name in the format
            +   * `projects/*/locations/*/scopes/*/namespaces/*`.
            +   * 
            + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest other = + (com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request to delete a fleet namespace.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.DeleteScopeNamespaceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.DeleteScopeNamespaceRequest) + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteScopeNamespaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteScopeNamespaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest.class, + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteScopeNamespaceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest build() { + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest buildPartial() { + com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest result = + new com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest other) { + if (other == com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. The Namespace resource name in the format
            +     * `projects/*/locations/*/scopes/*/namespaces/*`.
            +     * 
            + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The Namespace resource name in the format
            +     * `projects/*/locations/*/scopes/*/namespaces/*`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The Namespace resource name in the format
            +     * `projects/*/locations/*/scopes/*/namespaces/*`.
            +     * 
            + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Namespace resource name in the format
            +     * `projects/*/locations/*/scopes/*/namespaces/*`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Namespace resource name in the format
            +     * `projects/*/locations/*/scopes/*/namespaces/*`.
            +     * 
            + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.DeleteScopeNamespaceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.DeleteScopeNamespaceRequest) + private static final com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest(); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteScopeNamespaceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeNamespaceRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeNamespaceRequestOrBuilder.java new file mode 100644 index 000000000000..bccaed40bb6e --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeNamespaceRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface DeleteScopeNamespaceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.DeleteScopeNamespaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The Namespace resource name in the format
            +   * `projects/*/locations/*/scopes/*/namespaces/*`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The Namespace resource name in the format
            +   * `projects/*/locations/*/scopes/*/namespaces/*`.
            +   * 
            + * + * + * 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-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeRBACRoleBindingRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeRBACRoleBindingRequest.java new file mode 100644 index 000000000000..ce38fa165da3 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeRBACRoleBindingRequest.java @@ -0,0 +1,623 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Request to delete a Scope RBACRoleBinding.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest} + */ +@com.google.protobuf.Generated +public final class DeleteScopeRBACRoleBindingRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest) + DeleteScopeRBACRoleBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteScopeRBACRoleBindingRequest"); + } + + // Use DeleteScopeRBACRoleBindingRequest.newBuilder() to construct. + private DeleteScopeRBACRoleBindingRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteScopeRBACRoleBindingRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteScopeRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteScopeRBACRoleBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest.class, + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The RBACRoleBinding resource name in the format
            +   * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The RBACRoleBinding resource name in the format
            +   * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
            +   * 
            + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest other = + (com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request to delete a Scope RBACRoleBinding.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest) + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteScopeRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteScopeRBACRoleBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest.class, + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteScopeRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest + getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest build() { + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest buildPartial() { + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest result = + new com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest other) { + if (other + == com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. The RBACRoleBinding resource name in the format
            +     * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
            +     * 
            + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The RBACRoleBinding resource name in the format
            +     * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The RBACRoleBinding resource name in the format
            +     * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
            +     * 
            + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The RBACRoleBinding resource name in the format
            +     * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The RBACRoleBinding resource name in the format
            +     * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
            +     * 
            + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest) + private static final com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest(); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteScopeRBACRoleBindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeRBACRoleBindingRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeRBACRoleBindingRequestOrBuilder.java new file mode 100644 index 000000000000..ac011ab822fd --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeRBACRoleBindingRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface DeleteScopeRBACRoleBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The RBACRoleBinding resource name in the format
            +   * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The RBACRoleBinding resource name in the format
            +   * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
            +   * 
            + * + * + * 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-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeRequest.java new file mode 100644 index 000000000000..349f419a68db --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeRequest.java @@ -0,0 +1,616 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Request to delete a Scope.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.DeleteScopeRequest} + */ +@com.google.protobuf.Generated +public final class DeleteScopeRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.DeleteScopeRequest) + DeleteScopeRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteScopeRequest"); + } + + // Use DeleteScopeRequest.newBuilder() to construct. + private DeleteScopeRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteScopeRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteScopeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteScopeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.DeleteScopeRequest.class, + com.google.cloud.gkehub.v1.DeleteScopeRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The Scope resource name in the format
            +   * `projects/*/locations/*/scopes/*`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The Scope resource name in the format
            +   * `projects/*/locations/*/scopes/*`.
            +   * 
            + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.DeleteScopeRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.DeleteScopeRequest other = + (com.google.cloud.gkehub.v1.DeleteScopeRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkehub.v1.DeleteScopeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request to delete a Scope.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.DeleteScopeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.DeleteScopeRequest) + com.google.cloud.gkehub.v1.DeleteScopeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteScopeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteScopeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.DeleteScopeRequest.class, + com.google.cloud.gkehub.v1.DeleteScopeRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.DeleteScopeRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteScopeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteScopeRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.DeleteScopeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteScopeRequest build() { + com.google.cloud.gkehub.v1.DeleteScopeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteScopeRequest buildPartial() { + com.google.cloud.gkehub.v1.DeleteScopeRequest result = + new com.google.cloud.gkehub.v1.DeleteScopeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.DeleteScopeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.DeleteScopeRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.DeleteScopeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.DeleteScopeRequest other) { + if (other == com.google.cloud.gkehub.v1.DeleteScopeRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. The Scope resource name in the format
            +     * `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The Scope resource name in the format
            +     * `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The Scope resource name in the format
            +     * `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Scope resource name in the format
            +     * `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Scope resource name in the format
            +     * `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.DeleteScopeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.DeleteScopeRequest) + private static final com.google.cloud.gkehub.v1.DeleteScopeRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.DeleteScopeRequest(); + } + + public static com.google.cloud.gkehub.v1.DeleteScopeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteScopeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.DeleteScopeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeRequestOrBuilder.java new file mode 100644 index 000000000000..9cdcfa8306a6 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteScopeRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface DeleteScopeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.DeleteScopeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The Scope resource name in the format
            +   * `projects/*/locations/*/scopes/*`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The Scope resource name in the format
            +   * `projects/*/locations/*/scopes/*`.
            +   * 
            + * + * + * 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-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Feature.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Feature.java index 8f972c898d0e..b6ac6b16f916 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Feature.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Feature.java @@ -24,7 +24,7 @@ * * *
            - * Feature represents the settings and status of any Hub Feature.
            + * Feature represents the settings and status of any Fleet Feature.
              * 
            * * Protobuf type {@code google.cloud.gkehub.v1.Feature} @@ -53,6 +53,7 @@ private Feature(com.google.protobuf.GeneratedMessage.Builder builder) { private Feature() { name_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -71,6 +72,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl return internalGetMembershipSpecs(); case 7: return internalGetMembershipStates(); + case 12: + return internalGetScopeSpecs(); + case 13: + return internalGetScopeStates(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -173,7 +178,7 @@ public int getLabelsCount() { * * *
            -   * GCP labels for this Feature.
            +   * Labels for this Feature.
                * 
            * * map<string, string> labels = 2; @@ -197,7 +202,7 @@ public java.util.Map getLabels() { * * *
            -   * GCP labels for this Feature.
            +   * Labels for this Feature.
                * 
            * * map<string, string> labels = 2; @@ -211,7 +216,7 @@ public java.util.Map getLabelsMap() { * * *
            -   * GCP labels for this Feature.
            +   * Labels for this Feature.
                * 
            * * map<string, string> labels = 2; @@ -232,7 +237,7 @@ public java.util.Map getLabelsMap() { * * *
            -   * GCP labels for this Feature.
            +   * Labels for this Feature.
                * 
            * * map<string, string> labels = 2; @@ -315,8 +320,8 @@ public com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder getResourceState * * *
            -   * Optional. Hub-wide Feature configuration. If this Feature does not support any
            -   * Hub-wide configuration, this field may be unused.
            +   * Optional. Fleet-wide Feature configuration. If this Feature does not
            +   * support any Fleet-wide configuration, this field may be unused.
                * 
            * * @@ -334,8 +339,8 @@ public boolean hasSpec() { * * *
            -   * Optional. Hub-wide Feature configuration. If this Feature does not support any
            -   * Hub-wide configuration, this field may be unused.
            +   * Optional. Fleet-wide Feature configuration. If this Feature does not
            +   * support any Fleet-wide configuration, this field may be unused.
                * 
            * * @@ -355,8 +360,8 @@ public com.google.cloud.gkehub.v1.CommonFeatureSpec getSpec() { * * *
            -   * Optional. Hub-wide Feature configuration. If this Feature does not support any
            -   * Hub-wide configuration, this field may be unused.
            +   * Optional. Fleet-wide Feature configuration. If this Feature does not
            +   * support any Fleet-wide configuration, this field may be unused.
                * 
            * * @@ -410,12 +415,13 @@ public int getMembershipSpecsCount() { * * *
            -   * Optional. Membership-specific configuration for this Feature. If this Feature does
            -   * not support any per-Membership configuration, this field may be unused.
            +   * Optional. Membership-specific configuration for this Feature. If this
            +   * Feature does not support any per-Membership configuration, this field may
            +   * be unused.
                *
                * The keys indicate which Membership the configuration is for, in the form:
                *
            -   * projects/{p}/locations/{l}/memberships/{m}
            +   * `projects/{p}/locations/{l}/memberships/{m}`
                *
                * Where {p} is the project, {l} is a valid location and {m} is a valid
                * Membership in this project at that location. {p} WILL match the Feature's
            @@ -453,12 +459,13 @@ public boolean containsMembershipSpecs(java.lang.String key) {
                *
                *
                * 
            -   * Optional. Membership-specific configuration for this Feature. If this Feature does
            -   * not support any per-Membership configuration, this field may be unused.
            +   * Optional. Membership-specific configuration for this Feature. If this
            +   * Feature does not support any per-Membership configuration, this field may
            +   * be unused.
                *
                * The keys indicate which Membership the configuration is for, in the form:
                *
            -   * projects/{p}/locations/{l}/memberships/{m}
            +   * `projects/{p}/locations/{l}/memberships/{m}`
                *
                * Where {p} is the project, {l} is a valid location and {m} is a valid
                * Membership in this project at that location. {p} WILL match the Feature's
            @@ -486,12 +493,13 @@ public boolean containsMembershipSpecs(java.lang.String key) {
                *
                *
                * 
            -   * Optional. Membership-specific configuration for this Feature. If this Feature does
            -   * not support any per-Membership configuration, this field may be unused.
            +   * Optional. Membership-specific configuration for this Feature. If this
            +   * Feature does not support any per-Membership configuration, this field may
            +   * be unused.
                *
                * The keys indicate which Membership the configuration is for, in the form:
                *
            -   * projects/{p}/locations/{l}/memberships/{m}
            +   * `projects/{p}/locations/{l}/memberships/{m}`
                *
                * Where {p} is the project, {l} is a valid location and {m} is a valid
                * Membership in this project at that location. {p} WILL match the Feature's
            @@ -527,12 +535,13 @@ public boolean containsMembershipSpecs(java.lang.String key) {
                *
                *
                * 
            -   * Optional. Membership-specific configuration for this Feature. If this Feature does
            -   * not support any per-Membership configuration, this field may be unused.
            +   * Optional. Membership-specific configuration for this Feature. If this
            +   * Feature does not support any per-Membership configuration, this field may
            +   * be unused.
                *
                * The keys indicate which Membership the configuration is for, in the form:
                *
            -   * projects/{p}/locations/{l}/memberships/{m}
            +   * `projects/{p}/locations/{l}/memberships/{m}`
                *
                * Where {p} is the project, {l} is a valid location and {m} is a valid
                * Membership in this project at that location. {p} WILL match the Feature's
            @@ -571,7 +580,7 @@ public com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrThro
                *
                *
                * 
            -   * Output only. The Hub-wide Feature state.
            +   * Output only. The Fleet-wide Feature state.
                * 
            * * @@ -589,7 +598,7 @@ public boolean hasState() { * * *
            -   * Output only. The Hub-wide Feature state.
            +   * Output only. The Fleet-wide Feature state.
                * 
            * * @@ -609,7 +618,7 @@ public com.google.cloud.gkehub.v1.CommonFeatureState getState() { * * *
            -   * Output only. The Hub-wide Feature state.
            +   * Output only. The Fleet-wide Feature state.
                * 
            * * @@ -668,7 +677,7 @@ public int getMembershipStatesCount() { * * The keys indicate which Membership the state is for, in the form: * - * projects/{p}/locations/{l}/memberships/{m} + * `projects/{p}/locations/{l}/memberships/{m}` * * Where {p} is the project number, {l} is a valid location and {m} is a valid * Membership in this project at that location. {p} MUST match the Feature's @@ -704,7 +713,7 @@ public boolean containsMembershipStates(java.lang.String key) { * * The keys indicate which Membership the state is for, in the form: * - * projects/{p}/locations/{l}/memberships/{m} + * `projects/{p}/locations/{l}/memberships/{m}` * * Where {p} is the project number, {l} is a valid location and {m} is a valid * Membership in this project at that location. {p} MUST match the Feature's @@ -730,7 +739,7 @@ public boolean containsMembershipStates(java.lang.String key) { * * The keys indicate which Membership the state is for, in the form: * - * projects/{p}/locations/{l}/memberships/{m} + * `projects/{p}/locations/{l}/memberships/{m}` * * Where {p} is the project number, {l} is a valid location and {m} is a valid * Membership in this project at that location. {p} MUST match the Feature's @@ -764,7 +773,7 @@ public boolean containsMembershipStates(java.lang.String key) { * * The keys indicate which Membership the state is for, in the form: * - * projects/{p}/locations/{l}/memberships/{m} + * `projects/{p}/locations/{l}/memberships/{m}` * * Where {p} is the project number, {l} is a valid location and {m} is a valid * Membership in this project at that location. {p} MUST match the Feature's @@ -945,718 +954,1902 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } - private byte memoizedIsInitialized = -1; + public static final int SCOPE_SPECS_FIELD_NUMBER = 12; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private static final class ScopeSpecsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1.ScopeFeatureSpec> + defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_Feature_ScopeSpecsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.gkehub.v1.ScopeFeatureSpec.getDefaultInstance()); + } - memoizedIsInitialized = 1; - return true; + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.gkehub.v1.ScopeFeatureSpec> + scopeSpecs_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.gkehub.v1.ScopeFeatureSpec> + internalGetScopeSpecs() { + if (scopeSpecs_ == null) { + return com.google.protobuf.MapField.emptyMapField(ScopeSpecsDefaultEntryHolder.defaultEntry); + } + return scopeSpecs_; + } + + public int getScopeSpecsCount() { + return internalGetScopeSpecs().getMap().size(); } + /** + * + * + *
            +   * Optional. Scope-specific configuration for this Feature. If this Feature
            +   * does not support any per-Scope configuration, this field may be unused.
            +   *
            +   * The keys indicate which Scope the configuration is for, in the form:
            +   *
            +   * `projects/{p}/locations/global/scopes/{s}`
            +   *
            +   * Where {p} is the project, {s} is a valid Scope in this project.
            +   * {p} WILL match the Feature's project.
            +   *
            +   * {p} will always be returned as the project number, but the project ID is
            +   * also accepted during input. If the same Scope is specified in the map
            +   * twice (using the project ID form, and the project number form), exactly
            +   * ONE of the entries will be saved, with no guarantees as to which. For this
            +   * reason, it is recommended the same format be used for all entries when
            +   * mutating a Feature.
            +   * 
            + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureSpec> scope_specs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); - } - com.google.protobuf.GeneratedMessage.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getResourceState()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(4, getSpec()); - } - com.google.protobuf.GeneratedMessage.serializeStringMapTo( - output, internalGetMembershipSpecs(), MembershipSpecsDefaultEntryHolder.defaultEntry, 5); - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(6, getState()); - } - com.google.protobuf.GeneratedMessage.serializeStringMapTo( - output, internalGetMembershipStates(), MembershipStatesDefaultEntryHolder.defaultEntry, 7); - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(8, getCreateTime()); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(9, getUpdateTime()); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeMessage(10, getDeleteTime()); + public boolean containsScopeSpecs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - getUnknownFields().writeTo(output); + return internalGetScopeSpecs().getMap().containsKey(key); } + /** Use {@link #getScopeSpecsMap()} instead. */ @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + @java.lang.Deprecated + public java.util.Map + getScopeSpecs() { + return getScopeSpecsMap(); + } - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, labels__); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResourceState()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSpec()); - } - for (java.util.Map.Entry - entry : internalGetMembershipSpecs().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureSpec> - membershipSpecs__ = - MembershipSpecsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, membershipSpecs__); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getState()); - } - for (java.util.Map.Entry - entry : internalGetMembershipStates().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureState> - membershipStates__ = - MembershipStatesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, membershipStates__); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCreateTime()); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getUpdateTime()); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getDeleteTime()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + /** + * + * + *
            +   * Optional. Scope-specific configuration for this Feature. If this Feature
            +   * does not support any per-Scope configuration, this field may be unused.
            +   *
            +   * The keys indicate which Scope the configuration is for, in the form:
            +   *
            +   * `projects/{p}/locations/global/scopes/{s}`
            +   *
            +   * Where {p} is the project, {s} is a valid Scope in this project.
            +   * {p} WILL match the Feature's project.
            +   *
            +   * {p} will always be returned as the project number, but the project ID is
            +   * also accepted during input. If the same Scope is specified in the map
            +   * twice (using the project ID form, and the project number form), exactly
            +   * ONE of the entries will be saved, with no guarantees as to which. For this
            +   * reason, it is recommended the same format be used for all entries when
            +   * mutating a Feature.
            +   * 
            + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureSpec> scope_specs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map + getScopeSpecsMap() { + return internalGetScopeSpecs().getMap(); } + /** + * + * + *
            +   * Optional. Scope-specific configuration for this Feature. If this Feature
            +   * does not support any per-Scope configuration, this field may be unused.
            +   *
            +   * The keys indicate which Scope the configuration is for, in the form:
            +   *
            +   * `projects/{p}/locations/global/scopes/{s}`
            +   *
            +   * Where {p} is the project, {s} is a valid Scope in this project.
            +   * {p} WILL match the Feature's project.
            +   *
            +   * {p} will always be returned as the project number, but the project ID is
            +   * also accepted during input. If the same Scope is specified in the map
            +   * twice (using the project ID form, and the project number form), exactly
            +   * ONE of the entries will be saved, with no guarantees as to which. For this
            +   * reason, it is recommended the same format be used for all entries when
            +   * mutating a Feature.
            +   * 
            + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureSpec> scope_specs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gkehub.v1.Feature)) { - return super.equals(obj); + public /* nullable */ com.google.cloud.gkehub.v1.ScopeFeatureSpec getScopeSpecsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.gkehub.v1.ScopeFeatureSpec defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); } - com.google.cloud.gkehub.v1.Feature other = (com.google.cloud.gkehub.v1.Feature) obj; + java.util.Map map = + internalGetScopeSpecs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } - if (!getName().equals(other.getName())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (hasResourceState() != other.hasResourceState()) return false; - if (hasResourceState()) { - if (!getResourceState().equals(other.getResourceState())) return false; - } - if (hasSpec() != other.hasSpec()) return false; - if (hasSpec()) { - if (!getSpec().equals(other.getSpec())) return false; - } - if (!internalGetMembershipSpecs().equals(other.internalGetMembershipSpecs())) return false; - if (hasState() != other.hasState()) return false; - if (hasState()) { - if (!getState().equals(other.getState())) return false; - } - if (!internalGetMembershipStates().equals(other.internalGetMembershipStates())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + /** + * + * + *
            +   * Optional. Scope-specific configuration for this Feature. If this Feature
            +   * does not support any per-Scope configuration, this field may be unused.
            +   *
            +   * The keys indicate which Scope the configuration is for, in the form:
            +   *
            +   * `projects/{p}/locations/global/scopes/{s}`
            +   *
            +   * Where {p} is the project, {s} is a valid Scope in this project.
            +   * {p} WILL match the Feature's project.
            +   *
            +   * {p} will always be returned as the project number, but the project ID is
            +   * also accepted during input. If the same Scope is specified in the map
            +   * twice (using the project ID form, and the project number form), exactly
            +   * ONE of the entries will be saved, with no guarantees as to which. For this
            +   * reason, it is recommended the same format be used for all entries when
            +   * mutating a Feature.
            +   * 
            + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureSpec> scope_specs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeFeatureSpec getScopeSpecsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - if (hasDeleteTime() != other.hasDeleteTime()) return false; - if (hasDeleteTime()) { - if (!getDeleteTime().equals(other.getDeleteTime())) return false; + java.util.Map map = + internalGetScopeSpecs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; + return map.get(key); } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); + public static final int SCOPE_STATES_FIELD_NUMBER = 13; + + private static final class ScopeStatesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1.ScopeFeatureState> + defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_Feature_ScopeStatesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.gkehub.v1.ScopeFeatureState.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.gkehub.v1.ScopeFeatureState> + scopeStates_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.gkehub.v1.ScopeFeatureState> + internalGetScopeStates() { + if (scopeStates_ == null) { + return com.google.protobuf.MapField.emptyMapField(ScopeStatesDefaultEntryHolder.defaultEntry); } - if (hasResourceState()) { - hash = (37 * hash) + RESOURCE_STATE_FIELD_NUMBER; - hash = (53 * hash) + getResourceState().hashCode(); - } - if (hasSpec()) { - hash = (37 * hash) + SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSpec().hashCode(); - } - if (!internalGetMembershipSpecs().getMap().isEmpty()) { - hash = (37 * hash) + MEMBERSHIP_SPECS_FIELD_NUMBER; - hash = (53 * hash) + internalGetMembershipSpecs().hashCode(); - } - if (hasState()) { - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + getState().hashCode(); - } - if (!internalGetMembershipStates().getMap().isEmpty()) { - hash = (37 * hash) + MEMBERSHIP_STATES_FIELD_NUMBER; - hash = (53 * hash) + internalGetMembershipStates().hashCode(); - } - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - if (hasDeleteTime()) { - hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getDeleteTime().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; + return scopeStates_; } - public static com.google.cloud.gkehub.v1.Feature parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + public int getScopeStatesCount() { + return internalGetScopeStates().getMap().size(); } - public static com.google.cloud.gkehub.v1.Feature parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + /** + * + * + *
            +   * Output only. Scope-specific Feature status. If this Feature does
            +   * report any per-Scope status, this field may be unused.
            +   *
            +   * The keys indicate which Scope the state is for, in the form:
            +   *
            +   * `projects/{p}/locations/global/scopes/{s}`
            +   *
            +   * Where {p} is the project, {s} is a valid Scope in this project.
            +   * {p} WILL match the Feature's project.
            +   * 
            + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsScopeStates(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetScopeStates().getMap().containsKey(key); } - public static com.google.cloud.gkehub.v1.Feature parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + /** Use {@link #getScopeStatesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getScopeStates() { + return getScopeStatesMap(); } - public static com.google.cloud.gkehub.v1.Feature parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + /** + * + * + *
            +   * Output only. Scope-specific Feature status. If this Feature does
            +   * report any per-Scope status, this field may be unused.
            +   *
            +   * The keys indicate which Scope the state is for, in the form:
            +   *
            +   * `projects/{p}/locations/global/scopes/{s}`
            +   *
            +   * Where {p} is the project, {s} is a valid Scope in this project.
            +   * {p} WILL match the Feature's project.
            +   * 
            + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map + getScopeStatesMap() { + return internalGetScopeStates().getMap(); } - public static com.google.cloud.gkehub.v1.Feature parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + /** + * + * + *
            +   * Output only. Scope-specific Feature status. If this Feature does
            +   * report any per-Scope status, this field may be unused.
            +   *
            +   * The keys indicate which Scope the state is for, in the form:
            +   *
            +   * `projects/{p}/locations/global/scopes/{s}`
            +   *
            +   * Where {p} is the project, {s} is a valid Scope in this project.
            +   * {p} WILL match the Feature's project.
            +   * 
            + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.gkehub.v1.ScopeFeatureState getScopeStatesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.gkehub.v1.ScopeFeatureState defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetScopeStates().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } - public static com.google.cloud.gkehub.v1.Feature parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + /** + * + * + *
            +   * Output only. Scope-specific Feature status. If this Feature does
            +   * report any per-Scope status, this field may be unused.
            +   *
            +   * The keys indicate which Scope the state is for, in the form:
            +   *
            +   * `projects/{p}/locations/global/scopes/{s}`
            +   *
            +   * Where {p} is the project, {s} is a valid Scope in this project.
            +   * {p} WILL match the Feature's project.
            +   * 
            + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeFeatureState getScopeStatesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetScopeStates().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); } - public static com.google.cloud.gkehub.v1.Feature parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + public static final int UNREACHABLE_FIELD_NUMBER = 15; - public static com.google.cloud.gkehub.v1.Feature parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - public static com.google.cloud.gkehub.v1.Feature parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + /** + * + * + *
            +   * Output only. List of locations that could not be reached while fetching
            +   * this feature.
            +   * 
            + * + * repeated string unreachable = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; } - public static com.google.cloud.gkehub.v1.Feature parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
            +   * Output only. List of locations that could not be reached while fetching
            +   * this feature.
            +   * 
            + * + * repeated string unreachable = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); } - public static com.google.cloud.gkehub.v1.Feature parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + /** + * + * + *
            +   * Output only. List of locations that could not be reached while fetching
            +   * this feature.
            +   * 
            + * + * repeated string unreachable = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); } - public static com.google.cloud.gkehub.v1.Feature parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
            +   * Output only. List of locations that could not be reached while fetching
            +   * this feature.
            +   * 
            + * + * repeated string unreachable = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + private byte memoizedIsInitialized = -1; - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static Builder newBuilder(com.google.cloud.gkehub.v1.Feature prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + memoizedIsInitialized = 1; + return true; } @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getResourceState()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getSpec()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetMembershipSpecs(), MembershipSpecsDefaultEntryHolder.defaultEntry, 5); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getState()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetMembershipStates(), MembershipStatesDefaultEntryHolder.defaultEntry, 7); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(8, getCreateTime()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(9, getUpdateTime()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(10, getDeleteTime()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetScopeSpecs(), ScopeSpecsDefaultEntryHolder.defaultEntry, 12); + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetScopeStates(), ScopeStatesDefaultEntryHolder.defaultEntry, 13); + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 15, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - /** - * - * - *
            -   * Feature represents the settings and status of any Hub Feature.
            -   * 
            - * - * Protobuf type {@code google.cloud.gkehub.v1.Feature} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.Feature) - com.google.cloud.gkehub.v1.FeatureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.FeatureProto - .internal_static_google_cloud_gkehub_v1_Feature_descriptor; + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 2: - return internalGetLabels(); - case 5: - return internalGetMembershipSpecs(); - case 7: - return internalGetMembershipStates(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, labels__); } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 2: - return internalGetMutableLabels(); - case 5: - return internalGetMutableMembershipSpecs(); - case 7: - return internalGetMutableMembershipStates(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResourceState()); } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.FeatureProto - .internal_static_google_cloud_gkehub_v1_Feature_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.Feature.class, - com.google.cloud.gkehub.v1.Feature.Builder.class); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSpec()); } - - // Construct using com.google.cloud.gkehub.v1.Feature.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + for (java.util.Map.Entry + entry : internalGetMembershipSpecs().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureSpec> + membershipSpecs__ = + MembershipSpecsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, membershipSpecs__); } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getState()); } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetResourceStateFieldBuilder(); - internalGetSpecFieldBuilder(); - internalGetStateFieldBuilder(); - internalGetCreateTimeFieldBuilder(); - internalGetUpdateTimeFieldBuilder(); - internalGetDeleteTimeFieldBuilder(); - } + for (java.util.Map.Entry + entry : internalGetMembershipStates().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureState> + membershipStates__ = + MembershipStatesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, membershipStates__); } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - internalGetMutableLabels().clear(); - resourceState_ = null; - if (resourceStateBuilder_ != null) { - resourceStateBuilder_.dispose(); - resourceStateBuilder_ = null; - } - spec_ = null; - if (specBuilder_ != null) { - specBuilder_.dispose(); - specBuilder_ = null; - } - internalGetMutableMembershipSpecs().clear(); - state_ = null; - if (stateBuilder_ != null) { - stateBuilder_.dispose(); - stateBuilder_ = null; - } - internalGetMutableMembershipStates().clear(); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - deleteTime_ = null; - if (deleteTimeBuilder_ != null) { - deleteTimeBuilder_.dispose(); - deleteTimeBuilder_ = null; - } - return this; + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCreateTime()); } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1.FeatureProto - .internal_static_google_cloud_gkehub_v1_Feature_descriptor; + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getUpdateTime()); } - - @java.lang.Override - public com.google.cloud.gkehub.v1.Feature getDefaultInstanceForType() { - return com.google.cloud.gkehub.v1.Feature.getDefaultInstance(); + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getDeleteTime()); } - - @java.lang.Override - public com.google.cloud.gkehub.v1.Feature build() { - com.google.cloud.gkehub.v1.Feature result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + for (java.util.Map.Entry entry : + internalGetScopeSpecs().getMap().entrySet()) { + com.google.protobuf.MapEntry + scopeSpecs__ = + ScopeSpecsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, scopeSpecs__); } - - @java.lang.Override - public com.google.cloud.gkehub.v1.Feature buildPartial() { - com.google.cloud.gkehub.v1.Feature result = new com.google.cloud.gkehub.v1.Feature(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; + for (java.util.Map.Entry entry : + internalGetScopeStates().getMap().entrySet()) { + com.google.protobuf.MapEntry + scopeStates__ = + ScopeStatesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, scopeStates__); } - - private void buildPartial0(com.google.cloud.gkehub.v1.Feature result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.resourceState_ = - resourceStateBuilder_ == null ? resourceState_ : resourceStateBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.spec_ = specBuilder_ == null ? spec_ : specBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.membershipSpecs_ = - internalGetMembershipSpecs().build(MembershipSpecsDefaultEntryHolder.defaultEntry); - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.state_ = stateBuilder_ == null ? state_ : stateBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.membershipStates_ = - internalGetMembershipStates().build(MembershipStatesDefaultEntryHolder.defaultEntry); - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); - to_bitField0_ |= 0x00000020; + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); } - result.bitField0_ |= to_bitField0_; + size += dataSize; + size += 1 * getUnreachableList().size(); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gkehub.v1.Feature) { - return mergeFrom((com.google.cloud.gkehub.v1.Feature) other); - } else { - super.mergeFrom(other); - return this; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.Feature)) { + return super.equals(obj); } + com.google.cloud.gkehub.v1.Feature other = (com.google.cloud.gkehub.v1.Feature) obj; - public Builder mergeFrom(com.google.cloud.gkehub.v1.Feature other) { - if (other == com.google.cloud.gkehub.v1.Feature.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000002; - if (other.hasResourceState()) { - mergeResourceState(other.getResourceState()); - } - if (other.hasSpec()) { - mergeSpec(other.getSpec()); + if (!getName().equals(other.getName())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (hasResourceState() != other.hasResourceState()) return false; + if (hasResourceState()) { + if (!getResourceState().equals(other.getResourceState())) return false; + } + if (hasSpec() != other.hasSpec()) return false; + if (hasSpec()) { + if (!getSpec().equals(other.getSpec())) return false; + } + if (!internalGetMembershipSpecs().equals(other.internalGetMembershipSpecs())) return false; + if (hasState() != other.hasState()) return false; + if (hasState()) { + if (!getState().equals(other.getState())) return false; + } + if (!internalGetMembershipStates().equals(other.internalGetMembershipStates())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (hasDeleteTime() != other.hasDeleteTime()) return false; + if (hasDeleteTime()) { + if (!getDeleteTime().equals(other.getDeleteTime())) return false; + } + if (!internalGetScopeSpecs().equals(other.internalGetScopeSpecs())) return false; + if (!internalGetScopeStates().equals(other.internalGetScopeStates())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (hasResourceState()) { + hash = (37 * hash) + RESOURCE_STATE_FIELD_NUMBER; + hash = (53 * hash) + getResourceState().hashCode(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + if (!internalGetMembershipSpecs().getMap().isEmpty()) { + hash = (37 * hash) + MEMBERSHIP_SPECS_FIELD_NUMBER; + hash = (53 * hash) + internalGetMembershipSpecs().hashCode(); + } + if (hasState()) { + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + getState().hashCode(); + } + if (!internalGetMembershipStates().getMap().isEmpty()) { + hash = (37 * hash) + MEMBERSHIP_STATES_FIELD_NUMBER; + hash = (53 * hash) + internalGetMembershipStates().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasDeleteTime()) { + hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDeleteTime().hashCode(); + } + if (!internalGetScopeSpecs().getMap().isEmpty()) { + hash = (37 * hash) + SCOPE_SPECS_FIELD_NUMBER; + hash = (53 * hash) + internalGetScopeSpecs().hashCode(); + } + if (!internalGetScopeStates().getMap().isEmpty()) { + hash = (37 * hash) + SCOPE_STATES_FIELD_NUMBER; + hash = (53 * hash) + internalGetScopeStates().hashCode(); + } + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.Feature parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.Feature parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.Feature parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.Feature parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.Feature parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.Feature parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.Feature parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.Feature parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.Feature parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.Feature parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.Feature parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.Feature parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkehub.v1.Feature prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Feature represents the settings and status of any Fleet Feature.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.Feature} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.Feature) + com.google.cloud.gkehub.v1.FeatureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_Feature_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetLabels(); + case 5: + return internalGetMembershipSpecs(); + case 7: + return internalGetMembershipStates(); + case 12: + return internalGetScopeSpecs(); + case 13: + return internalGetScopeStates(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetMutableLabels(); + case 5: + return internalGetMutableMembershipSpecs(); + case 7: + return internalGetMutableMembershipStates(); + case 12: + return internalGetMutableScopeSpecs(); + case 13: + return internalGetMutableScopeStates(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_Feature_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.Feature.class, + com.google.cloud.gkehub.v1.Feature.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.Feature.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetResourceStateFieldBuilder(); + internalGetSpecFieldBuilder(); + internalGetStateFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetDeleteTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + internalGetMutableLabels().clear(); + resourceState_ = null; + if (resourceStateBuilder_ != null) { + resourceStateBuilder_.dispose(); + resourceStateBuilder_ = null; + } + spec_ = null; + if (specBuilder_ != null) { + specBuilder_.dispose(); + specBuilder_ = null; + } + internalGetMutableMembershipSpecs().clear(); + state_ = null; + if (stateBuilder_ != null) { + stateBuilder_.dispose(); + stateBuilder_ = null; + } + internalGetMutableMembershipStates().clear(); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + internalGetMutableScopeSpecs().clear(); + internalGetMutableScopeStates().clear(); + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_Feature_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.Feature getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.Feature.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.Feature build() { + com.google.cloud.gkehub.v1.Feature result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.Feature buildPartial() { + com.google.cloud.gkehub.v1.Feature result = new com.google.cloud.gkehub.v1.Feature(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.Feature result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.resourceState_ = + resourceStateBuilder_ == null ? resourceState_ : resourceStateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.spec_ = specBuilder_ == null ? spec_ : specBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.membershipSpecs_ = + internalGetMembershipSpecs().build(MembershipSpecsDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.state_ = stateBuilder_ == null ? state_ : stateBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.membershipStates_ = + internalGetMembershipStates().build(MembershipStatesDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.scopeSpecs_ = + internalGetScopeSpecs().build(ScopeSpecsDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.scopeStates_ = + internalGetScopeStates().build(ScopeStatesDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00001000) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.Feature) { + return mergeFrom((com.google.cloud.gkehub.v1.Feature) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.Feature other) { + if (other == com.google.cloud.gkehub.v1.Feature.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000002; + if (other.hasResourceState()) { + mergeResourceState(other.getResourceState()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + internalGetMutableMembershipSpecs().mergeFrom(other.internalGetMembershipSpecs()); + bitField0_ |= 0x00000010; + if (other.hasState()) { + mergeState(other.getState()); + } + internalGetMutableMembershipStates().mergeFrom(other.internalGetMembershipStates()); + bitField0_ |= 0x00000040; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasDeleteTime()) { + mergeDeleteTime(other.getDeleteTime()); + } + internalGetMutableScopeSpecs().mergeFrom(other.internalGetScopeSpecs()); + bitField0_ |= 0x00000400; + internalGetMutableScopeStates().mergeFrom(other.internalGetScopeStates()); + bitField0_ |= 0x00000800; + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00001000; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetResourceStateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(internalGetSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureSpec> + membershipSpecs__ = + input.readMessage( + MembershipSpecsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableMembershipSpecs() + .ensureBuilderMap() + .put(membershipSpecs__.getKey(), membershipSpecs__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(internalGetStateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureState> + membershipStates__ = + input.readMessage( + MembershipStatesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableMembershipStates() + .ensureBuilderMap() + .put(membershipStates__.getKey(), membershipStates__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + input.readMessage( + internalGetDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 98: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1.ScopeFeatureSpec> + scopeSpecs__ = + input.readMessage( + ScopeSpecsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableScopeSpecs() + .ensureBuilderMap() + .put(scopeSpecs__.getKey(), scopeSpecs__.getValue()); + bitField0_ |= 0x00000400; + break; + } // case 98 + case 106: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1.ScopeFeatureState> + scopeStates__ = + input.readMessage( + ScopeStatesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableScopeStates() + .ensureBuilderMap() + .put(scopeStates__.getKey(), scopeStates__.getValue()); + bitField0_ |= 0x00000800; + break; + } // case 106 + case 122: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 122 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Output only. The full, unique name of this Feature resource in the format
            +     * `projects/*/locations/*/features/*`.
            +     * 
            + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. The full, unique name of this Feature resource in the format
            +     * `projects/*/locations/*/features/*`.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. The full, unique name of this Feature resource in the format
            +     * `projects/*/locations/*/features/*`.
            +     * 
            + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The full, unique name of this Feature resource in the format
            +     * `projects/*/locations/*/features/*`.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The full, unique name of this Feature resource in the format
            +     * `projects/*/locations/*/features/*`.
            +     * 
            + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000002; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
            +     * Labels for this Feature.
            +     * 
            + * + * map<string, string> labels = 2; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
            +     * Labels for this Feature.
            +     * 
            + * + * map<string, string> labels = 2; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
            +     * Labels for this Feature.
            +     * 
            + * + * map<string, string> labels = 2; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); } - internalGetMutableMembershipSpecs().mergeFrom(other.internalGetMembershipSpecs()); - bitField0_ |= 0x00000010; - if (other.hasState()) { - mergeState(other.getState()); + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +     * Labels for this Feature.
            +     * 
            + * + * map<string, string> labels = 2; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000002); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
            +     * Labels for this Feature.
            +     * 
            + * + * map<string, string> labels = 2; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000002; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
            +     * Labels for this Feature.
            +     * 
            + * + * map<string, string> labels = 2; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000002; + return this; + } + + /** + * + * + *
            +     * Labels for this Feature.
            +     * 
            + * + * map<string, string> labels = 2; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000002; + return this; + } + + private com.google.cloud.gkehub.v1.FeatureResourceState resourceState_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.FeatureResourceState, + com.google.cloud.gkehub.v1.FeatureResourceState.Builder, + com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder> + resourceStateBuilder_; + + /** + * + * + *
            +     * Output only. State of the Feature resource itself.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the resourceState field is set. + */ + public boolean hasResourceState() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Output only. State of the Feature resource itself.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The resourceState. + */ + public com.google.cloud.gkehub.v1.FeatureResourceState getResourceState() { + if (resourceStateBuilder_ == null) { + return resourceState_ == null + ? com.google.cloud.gkehub.v1.FeatureResourceState.getDefaultInstance() + : resourceState_; + } else { + return resourceStateBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. State of the Feature resource itself.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setResourceState(com.google.cloud.gkehub.v1.FeatureResourceState value) { + if (resourceStateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceState_ = value; + } else { + resourceStateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. State of the Feature resource itself.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setResourceState( + com.google.cloud.gkehub.v1.FeatureResourceState.Builder builderForValue) { + if (resourceStateBuilder_ == null) { + resourceState_ = builderForValue.build(); + } else { + resourceStateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. State of the Feature resource itself.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeResourceState(com.google.cloud.gkehub.v1.FeatureResourceState value) { + if (resourceStateBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && resourceState_ != null + && resourceState_ + != com.google.cloud.gkehub.v1.FeatureResourceState.getDefaultInstance()) { + getResourceStateBuilder().mergeFrom(value); + } else { + resourceState_ = value; + } + } else { + resourceStateBuilder_.mergeFrom(value); + } + if (resourceState_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. State of the Feature resource itself.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearResourceState() { + bitField0_ = (bitField0_ & ~0x00000004); + resourceState_ = null; + if (resourceStateBuilder_ != null) { + resourceStateBuilder_.dispose(); + resourceStateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. State of the Feature resource itself.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.v1.FeatureResourceState.Builder getResourceStateBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetResourceStateFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. State of the Feature resource itself.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder getResourceStateOrBuilder() { + if (resourceStateBuilder_ != null) { + return resourceStateBuilder_.getMessageOrBuilder(); + } else { + return resourceState_ == null + ? com.google.cloud.gkehub.v1.FeatureResourceState.getDefaultInstance() + : resourceState_; } - internalGetMutableMembershipStates().mergeFrom(other.internalGetMembershipStates()); - bitField0_ |= 0x00000040; - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); + } + + /** + * + * + *
            +     * Output only. State of the Feature resource itself.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.FeatureResourceState, + com.google.cloud.gkehub.v1.FeatureResourceState.Builder, + com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder> + internalGetResourceStateFieldBuilder() { + if (resourceStateBuilder_ == null) { + resourceStateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.FeatureResourceState, + com.google.cloud.gkehub.v1.FeatureResourceState.Builder, + com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder>( + getResourceState(), getParentForChildren(), isClean()); + resourceState_ = null; } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); + return resourceStateBuilder_; + } + + private com.google.cloud.gkehub.v1.CommonFeatureSpec spec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.CommonFeatureSpec, + com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder, + com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder> + specBuilder_; + + /** + * + * + *
            +     * Optional. Fleet-wide Feature configuration. If this Feature does not
            +     * support any Fleet-wide configuration, this field may be unused.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the spec field is set. + */ + public boolean hasSpec() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +     * Optional. Fleet-wide Feature configuration. If this Feature does not
            +     * support any Fleet-wide configuration, this field may be unused.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The spec. + */ + public com.google.cloud.gkehub.v1.CommonFeatureSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null + ? com.google.cloud.gkehub.v1.CommonFeatureSpec.getDefaultInstance() + : spec_; + } else { + return specBuilder_.getMessage(); } - if (other.hasDeleteTime()) { - mergeDeleteTime(other.getDeleteTime()); + } + + /** + * + * + *
            +     * Optional. Fleet-wide Feature configuration. If this Feature does not
            +     * support any Fleet-wide configuration, this field may be unused.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSpec(com.google.cloud.gkehub.v1.CommonFeatureSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + } else { + specBuilder_.setMessage(value); } - this.mergeUnknownFields(other.getUnknownFields()); + bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - internalGetResourceStateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(internalGetSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureSpec> - membershipSpecs__ = - input.readMessage( - MembershipSpecsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableMembershipSpecs() - .ensureBuilderMap() - .put(membershipSpecs__.getKey(), membershipSpecs__.getValue()); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - input.readMessage(internalGetStateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureState> - membershipStates__ = - input.readMessage( - MembershipStatesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableMembershipStates() - .ensureBuilderMap() - .put(membershipStates__.getKey(), membershipStates__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - input.readMessage( - internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 74: - { - input.readMessage( - internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 82: - { - input.readMessage( - internalGetDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - 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) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally + /** + * + * + *
            +     * Optional. Fleet-wide Feature configuration. If this Feature does not
            +     * support any Fleet-wide configuration, this field may be unused.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSpec(com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); return this; } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** * * *
            -     * Output only. The full, unique name of this Feature resource in the format
            -     * `projects/*/locations/*/features/*`.
            +     * Optional. Fleet-wide Feature configuration. If this Feature does not
            +     * support any Fleet-wide configuration, this field may be unused.
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. + * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; + public Builder mergeSpec(com.google.cloud.gkehub.v1.CommonFeatureSpec value) { + if (specBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && spec_ != null + && spec_ != com.google.cloud.gkehub.v1.CommonFeatureSpec.getDefaultInstance()) { + getSpecBuilder().mergeFrom(value); + } else { + spec_ = value; + } } else { - return (java.lang.String) ref; + specBuilder_.mergeFrom(value); + } + if (spec_ != null) { + bitField0_ |= 0x00000008; + onChanged(); } + return this; } /** * * *
            -     * Output only. The full, unique name of this Feature resource in the format
            -     * `projects/*/locations/*/features/*`.
            +     * Optional. Fleet-wide Feature configuration. If this Feature does not
            +     * support any Fleet-wide configuration, this field may be unused.
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSpec() { + bitField0_ = (bitField0_ & ~0x00000008); + spec_ = null; + if (specBuilder_ != null) { + specBuilder_.dispose(); + specBuilder_ = null; + } + onChanged(); + return this; + } + + /** * - * @return The bytes for name. + * + *
            +     * Optional. Fleet-wide Feature configuration. If this Feature does not
            +     * support any Fleet-wide configuration, this field may be unused.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; + public com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder getSpecBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Fleet-wide Feature configuration. If this Feature does not
            +     * support any Fleet-wide configuration, this field may be unused.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); } else { - return (com.google.protobuf.ByteString) ref; + return spec_ == null + ? com.google.cloud.gkehub.v1.CommonFeatureSpec.getDefaultInstance() + : spec_; } } @@ -1664,308 +2857,574 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
            -     * Output only. The full, unique name of this Feature resource in the format
            -     * `projects/*/locations/*/features/*`.
            +     * Optional. Fleet-wide Feature configuration. If this Feature does not
            +     * support any Fleet-wide configuration, this field may be unused.
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The name to set. - * @return This builder for chaining. + * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.CommonFeatureSpec, + com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder, + com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder> + internalGetSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.CommonFeatureSpec, + com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder, + com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder>( + getSpec(), getParentForChildren(), isClean()); + spec_ = null; } - name_ = value; - bitField0_ |= 0x00000001; + return specBuilder_; + } + + private static final class MembershipSpecsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.gkehub.v1.MembershipFeatureSpecOrBuilder, + com.google.cloud.gkehub.v1.MembershipFeatureSpec> { + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipFeatureSpec build( + com.google.cloud.gkehub.v1.MembershipFeatureSpecOrBuilder val) { + if (val instanceof com.google.cloud.gkehub.v1.MembershipFeatureSpec) { + return (com.google.cloud.gkehub.v1.MembershipFeatureSpec) val; + } + return ((com.google.cloud.gkehub.v1.MembershipFeatureSpec.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureSpec> + defaultEntry() { + return MembershipSpecsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final MembershipSpecsConverter membershipSpecsConverter = + new MembershipSpecsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.gkehub.v1.MembershipFeatureSpecOrBuilder, + com.google.cloud.gkehub.v1.MembershipFeatureSpec, + com.google.cloud.gkehub.v1.MembershipFeatureSpec.Builder> + membershipSpecs_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.gkehub.v1.MembershipFeatureSpecOrBuilder, + com.google.cloud.gkehub.v1.MembershipFeatureSpec, + com.google.cloud.gkehub.v1.MembershipFeatureSpec.Builder> + internalGetMembershipSpecs() { + if (membershipSpecs_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(membershipSpecsConverter); + } + return membershipSpecs_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.gkehub.v1.MembershipFeatureSpecOrBuilder, + com.google.cloud.gkehub.v1.MembershipFeatureSpec, + com.google.cloud.gkehub.v1.MembershipFeatureSpec.Builder> + internalGetMutableMembershipSpecs() { + if (membershipSpecs_ == null) { + membershipSpecs_ = new com.google.protobuf.MapFieldBuilder<>(membershipSpecsConverter); + } + bitField0_ |= 0x00000010; onChanged(); - return this; + return membershipSpecs_; + } + + public int getMembershipSpecsCount() { + return internalGetMembershipSpecs().ensureBuilderMap().size(); + } + + /** + * + * + *
            +     * Optional. Membership-specific configuration for this Feature. If this
            +     * Feature does not support any per-Membership configuration, this field may
            +     * be unused.
            +     *
            +     * The keys indicate which Membership the configuration is for, in the form:
            +     *
            +     * `projects/{p}/locations/{l}/memberships/{m}`
            +     *
            +     * Where {p} is the project, {l} is a valid location and {m} is a valid
            +     * Membership in this project at that location. {p} WILL match the Feature's
            +     * project.
            +     *
            +     * {p} will always be returned as the project number, but the project ID is
            +     * also accepted during input. If the same Membership is specified in the map
            +     * twice (using the project ID form, and the project number form), exactly
            +     * ONE of the entries will be saved, with no guarantees as to which. For this
            +     * reason, it is recommended the same format be used for all entries when
            +     * mutating a Feature.
            +     * 
            + * + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsMembershipSpecs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetMembershipSpecs().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getMembershipSpecsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getMembershipSpecs() { + return getMembershipSpecsMap(); + } + + /** + * + * + *
            +     * Optional. Membership-specific configuration for this Feature. If this
            +     * Feature does not support any per-Membership configuration, this field may
            +     * be unused.
            +     *
            +     * The keys indicate which Membership the configuration is for, in the form:
            +     *
            +     * `projects/{p}/locations/{l}/memberships/{m}`
            +     *
            +     * Where {p} is the project, {l} is a valid location and {m} is a valid
            +     * Membership in this project at that location. {p} WILL match the Feature's
            +     * project.
            +     *
            +     * {p} will always be returned as the project number, but the project ID is
            +     * also accepted during input. If the same Membership is specified in the map
            +     * twice (using the project ID form, and the project number form), exactly
            +     * ONE of the entries will be saved, with no guarantees as to which. For this
            +     * reason, it is recommended the same format be used for all entries when
            +     * mutating a Feature.
            +     * 
            + * + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map + getMembershipSpecsMap() { + return internalGetMembershipSpecs().getImmutableMap(); } /** * * *
            -     * Output only. The full, unique name of this Feature resource in the format
            -     * `projects/*/locations/*/features/*`.
            -     * 
            + * Optional. Membership-specific configuration for this Feature. If this + * Feature does not support any per-Membership configuration, this field may + * be unused. * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * The keys indicate which Membership the configuration is for, in the form: * - * @return This builder for chaining. + * `projects/{p}/locations/{l}/memberships/{m}` + * + * Where {p} is the project, {l} is a valid location and {m} is a valid + * Membership in this project at that location. {p} WILL match the Feature's + * project. + * + * {p} will always be returned as the project number, but the project ID is + * also accepted during input. If the same Membership is specified in the map + * twice (using the project ID form, and the project number form), exactly + * ONE of the entries will be saved, with no guarantees as to which. For this + * reason, it is recommended the same format be used for all entries when + * mutating a Feature. + *
            + * + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + @java.lang.Override + public /* nullable */ com.google.cloud.gkehub.v1.MembershipFeatureSpec + getMembershipSpecsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.gkehub.v1.MembershipFeatureSpec defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetMutableMembershipSpecs().ensureBuilderMap(); + return map.containsKey(key) ? membershipSpecsConverter.build(map.get(key)) : defaultValue; } /** * * *
            -     * Output only. The full, unique name of this Feature resource in the format
            -     * `projects/*/locations/*/features/*`.
            -     * 
            + * Optional. Membership-specific configuration for this Feature. If this + * Feature does not support any per-Membership configuration, this field may + * be unused. * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * The keys indicate which Membership the configuration is for, in the form: * - * @param value The bytes for name to set. - * @return This builder for chaining. + * `projects/{p}/locations/{l}/memberships/{m}` + * + * Where {p} is the project, {l} is a valid location and {m} is a valid + * Membership in this project at that location. {p} WILL match the Feature's + * project. + * + * {p} will always be returned as the project number, but the project ID is + * also accepted during input. If the same Membership is specified in the map + * twice (using the project ID form, and the project number form), exactly + * ONE of the entries will be saved, with no guarantees as to which. For this + * reason, it is recommended the same format be used for all entries when + * mutating a Feature. + *
            + * + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - private com.google.protobuf.MapField - internalGetMutableLabels() { - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); + java.util.Map + map = internalGetMutableMembershipSpecs().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } - bitField0_ |= 0x00000002; - onChanged(); - return labels_; + return membershipSpecsConverter.build(map.get(key)); } - public int getLabelsCount() { - return internalGetLabels().getMap().size(); + public Builder clearMembershipSpecs() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableMembershipSpecs().clear(); + return this; } /** * * *
            -     * GCP labels for this Feature.
            +     * Optional. Membership-specific configuration for this Feature. If this
            +     * Feature does not support any per-Membership configuration, this field may
            +     * be unused.
            +     *
            +     * The keys indicate which Membership the configuration is for, in the form:
            +     *
            +     * `projects/{p}/locations/{l}/memberships/{m}`
            +     *
            +     * Where {p} is the project, {l} is a valid location and {m} is a valid
            +     * Membership in this project at that location. {p} WILL match the Feature's
            +     * project.
            +     *
            +     * {p} will always be returned as the project number, but the project ID is
            +     * also accepted during input. If the same Membership is specified in the map
            +     * twice (using the project ID form, and the project number form), exactly
            +     * ONE of the entries will be saved, with no guarantees as to which. For this
            +     * reason, it is recommended the same format be used for all entries when
            +     * mutating a Feature.
                  * 
            * - * map<string, string> labels = 2; + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { + public Builder removeMembershipSpecs(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } - return internalGetLabels().getMap().containsKey(key); + internalGetMutableMembershipSpecs().ensureBuilderMap().remove(key); + return this; } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); + public java.util.Map + getMutableMembershipSpecs() { + bitField0_ |= 0x00000010; + return internalGetMutableMembershipSpecs().ensureMessageMap(); } /** * * *
            -     * GCP labels for this Feature.
            +     * Optional. Membership-specific configuration for this Feature. If this
            +     * Feature does not support any per-Membership configuration, this field may
            +     * be unused.
            +     *
            +     * The keys indicate which Membership the configuration is for, in the form:
            +     *
            +     * `projects/{p}/locations/{l}/memberships/{m}`
            +     *
            +     * Where {p} is the project, {l} is a valid location and {m} is a valid
            +     * Membership in this project at that location. {p} WILL match the Feature's
            +     * project.
            +     *
            +     * {p} will always be returned as the project number, but the project ID is
            +     * also accepted during input. If the same Membership is specified in the map
            +     * twice (using the project ID form, and the project number form), exactly
            +     * ONE of the entries will be saved, with no guarantees as to which. For this
            +     * reason, it is recommended the same format be used for all entries when
            +     * mutating a Feature.
                  * 
            * - * map<string, string> labels = 2; + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); + public Builder putMembershipSpecs( + java.lang.String key, com.google.cloud.gkehub.v1.MembershipFeatureSpec value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableMembershipSpecs().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000010; + return this; } /** * * *
            -     * GCP labels for this Feature.
            +     * Optional. Membership-specific configuration for this Feature. If this
            +     * Feature does not support any per-Membership configuration, this field may
            +     * be unused.
            +     *
            +     * The keys indicate which Membership the configuration is for, in the form:
            +     *
            +     * `projects/{p}/locations/{l}/memberships/{m}`
            +     *
            +     * Where {p} is the project, {l} is a valid location and {m} is a valid
            +     * Membership in this project at that location. {p} WILL match the Feature's
            +     * project.
            +     *
            +     * {p} will always be returned as the project number, but the project ID is
            +     * also accepted during input. If the same Membership is specified in the map
            +     * twice (using the project ID form, and the project number form), exactly
            +     * ONE of the entries will be saved, with no guarantees as to which. For this
            +     * reason, it is recommended the same format be used for all entries when
            +     * mutating a Feature.
                  * 
            * - * map<string, string> labels = 2; + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder putAllMembershipSpecs( + java.util.Map values) { + for (java.util.Map.Entry + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; + internalGetMutableMembershipSpecs().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000010; + return this; } /** * * *
            -     * GCP labels for this Feature.
            +     * Optional. Membership-specific configuration for this Feature. If this
            +     * Feature does not support any per-Membership configuration, this field may
            +     * be unused.
            +     *
            +     * The keys indicate which Membership the configuration is for, in the form:
            +     *
            +     * `projects/{p}/locations/{l}/memberships/{m}`
            +     *
            +     * Where {p} is the project, {l} is a valid location and {m} is a valid
            +     * Membership in this project at that location. {p} WILL match the Feature's
            +     * project.
            +     *
            +     * {p} will always be returned as the project number, but the project ID is
            +     * also accepted during input. If the same Membership is specified in the map
            +     * twice (using the project ID form, and the project number form), exactly
            +     * ONE of the entries will be saved, with no guarantees as to which. For this
            +     * reason, it is recommended the same format be used for all entries when
            +     * mutating a Feature.
                  * 
            * - * map<string, string> labels = 2; + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + public com.google.cloud.gkehub.v1.MembershipFeatureSpec.Builder + putMembershipSpecsBuilderIfAbsent(java.lang.String key) { + java.util.Map + builderMap = internalGetMutableMembershipSpecs().ensureBuilderMap(); + com.google.cloud.gkehub.v1.MembershipFeatureSpecOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.gkehub.v1.MembershipFeatureSpec.newBuilder(); + builderMap.put(key, entry); } - return map.get(key); - } - - public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000002); - internalGetMutableLabels().getMutableMap().clear(); - return this; + if (entry instanceof com.google.cloud.gkehub.v1.MembershipFeatureSpec) { + entry = ((com.google.cloud.gkehub.v1.MembershipFeatureSpec) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.gkehub.v1.MembershipFeatureSpec.Builder) entry; } + private com.google.cloud.gkehub.v1.CommonFeatureState state_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.CommonFeatureState, + com.google.cloud.gkehub.v1.CommonFeatureState.Builder, + com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder> + stateBuilder_; + /** * * *
            -     * GCP labels for this Feature.
            +     * Output only. The Fleet-wide Feature state.
                  * 
            * - * map<string, string> labels = 2; + * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); - return this; - } - - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000002; - return internalGetMutableLabels().getMutableMap(); + public boolean hasState() { + return ((bitField0_ & 0x00000020) != 0); } /** * * *
            -     * GCP labels for this Feature.
            +     * Output only. The Fleet-wide Feature state.
                  * 
            * - * map<string, string> labels = 2; + * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); + public com.google.cloud.gkehub.v1.CommonFeatureState getState() { + if (stateBuilder_ == null) { + return state_ == null + ? com.google.cloud.gkehub.v1.CommonFeatureState.getDefaultInstance() + : state_; + } else { + return stateBuilder_.getMessage(); } - internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000002; - return this; } /** * * *
            -     * GCP labels for this Feature.
            +     * Output only. The Fleet-wide Feature state.
                  * 
            * - * map<string, string> labels = 2; + * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000002; + public Builder setState(com.google.cloud.gkehub.v1.CommonFeatureState value) { + if (stateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + state_ = value; + } else { + stateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); return this; } - private com.google.cloud.gkehub.v1.FeatureResourceState resourceState_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.gkehub.v1.FeatureResourceState, - com.google.cloud.gkehub.v1.FeatureResourceState.Builder, - com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder> - resourceStateBuilder_; - /** * * *
            -     * Output only. State of the Feature resource itself.
            +     * Output only. The Fleet-wide Feature state.
                  * 
            * * - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return Whether the resourceState field is set. */ - public boolean hasResourceState() { - return ((bitField0_ & 0x00000004) != 0); + public Builder setState(com.google.cloud.gkehub.v1.CommonFeatureState.Builder builderForValue) { + if (stateBuilder_ == null) { + state_ = builderForValue.build(); + } else { + stateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; } /** * * *
            -     * Output only. State of the Feature resource itself.
            +     * Output only. The Fleet-wide Feature state.
                  * 
            * * - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The resourceState. */ - public com.google.cloud.gkehub.v1.FeatureResourceState getResourceState() { - if (resourceStateBuilder_ == null) { - return resourceState_ == null - ? com.google.cloud.gkehub.v1.FeatureResourceState.getDefaultInstance() - : resourceState_; + public Builder mergeState(com.google.cloud.gkehub.v1.CommonFeatureState value) { + if (stateBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && state_ != null + && state_ != com.google.cloud.gkehub.v1.CommonFeatureState.getDefaultInstance()) { + getStateBuilder().mergeFrom(value); + } else { + state_ = value; + } } else { - return resourceStateBuilder_.getMessage(); + stateBuilder_.mergeFrom(value); + } + if (state_ != null) { + bitField0_ |= 0x00000020; + onChanged(); } + return this; } /** * * *
            -     * Output only. State of the Feature resource itself.
            +     * Output only. The Fleet-wide Feature state.
                  * 
            * * - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setResourceState(com.google.cloud.gkehub.v1.FeatureResourceState value) { - if (resourceStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resourceState_ = value; - } else { - resourceStateBuilder_.setMessage(value); + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000020); + state_ = null; + if (stateBuilder_ != null) { + stateBuilder_.dispose(); + stateBuilder_ = null; } - bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1974,216 +3433,264 @@ public Builder setResourceState(com.google.cloud.gkehub.v1.FeatureResourceState * * *
            -     * Output only. State of the Feature resource itself.
            +     * Output only. The Fleet-wide Feature state.
                  * 
            * * - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setResourceState( - com.google.cloud.gkehub.v1.FeatureResourceState.Builder builderForValue) { - if (resourceStateBuilder_ == null) { - resourceState_ = builderForValue.build(); - } else { - resourceStateBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; + public com.google.cloud.gkehub.v1.CommonFeatureState.Builder getStateBuilder() { + bitField0_ |= 0x00000020; onChanged(); - return this; + return internalGetStateFieldBuilder().getBuilder(); } /** * * *
            -     * Output only. State of the Feature resource itself.
            +     * Output only. The Fleet-wide Feature state.
                  * 
            * * - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeResourceState(com.google.cloud.gkehub.v1.FeatureResourceState value) { - if (resourceStateBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && resourceState_ != null - && resourceState_ - != com.google.cloud.gkehub.v1.FeatureResourceState.getDefaultInstance()) { - getResourceStateBuilder().mergeFrom(value); - } else { - resourceState_ = value; - } + public com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder getStateOrBuilder() { + if (stateBuilder_ != null) { + return stateBuilder_.getMessageOrBuilder(); } else { - resourceStateBuilder_.mergeFrom(value); - } - if (resourceState_ != null) { - bitField0_ |= 0x00000004; - onChanged(); + return state_ == null + ? com.google.cloud.gkehub.v1.CommonFeatureState.getDefaultInstance() + : state_; } - return this; } /** * * *
            -     * Output only. State of the Feature resource itself.
            +     * Output only. The Fleet-wide Feature state.
                  * 
            * * - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearResourceState() { - bitField0_ = (bitField0_ & ~0x00000004); - resourceState_ = null; - if (resourceStateBuilder_ != null) { - resourceStateBuilder_.dispose(); - resourceStateBuilder_ = null; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.CommonFeatureState, + com.google.cloud.gkehub.v1.CommonFeatureState.Builder, + com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder> + internalGetStateFieldBuilder() { + if (stateBuilder_ == null) { + stateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.CommonFeatureState, + com.google.cloud.gkehub.v1.CommonFeatureState.Builder, + com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder>( + getState(), getParentForChildren(), isClean()); + state_ = null; + } + return stateBuilder_; + } + + private static final class MembershipStatesConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.gkehub.v1.MembershipFeatureStateOrBuilder, + com.google.cloud.gkehub.v1.MembershipFeatureState> { + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipFeatureState build( + com.google.cloud.gkehub.v1.MembershipFeatureStateOrBuilder val) { + if (val instanceof com.google.cloud.gkehub.v1.MembershipFeatureState) { + return (com.google.cloud.gkehub.v1.MembershipFeatureState) val; + } + return ((com.google.cloud.gkehub.v1.MembershipFeatureState.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureState> + defaultEntry() { + return MembershipStatesDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final MembershipStatesConverter membershipStatesConverter = + new MembershipStatesConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.gkehub.v1.MembershipFeatureStateOrBuilder, + com.google.cloud.gkehub.v1.MembershipFeatureState, + com.google.cloud.gkehub.v1.MembershipFeatureState.Builder> + membershipStates_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.gkehub.v1.MembershipFeatureStateOrBuilder, + com.google.cloud.gkehub.v1.MembershipFeatureState, + com.google.cloud.gkehub.v1.MembershipFeatureState.Builder> + internalGetMembershipStates() { + if (membershipStates_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(membershipStatesConverter); + } + return membershipStates_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.gkehub.v1.MembershipFeatureStateOrBuilder, + com.google.cloud.gkehub.v1.MembershipFeatureState, + com.google.cloud.gkehub.v1.MembershipFeatureState.Builder> + internalGetMutableMembershipStates() { + if (membershipStates_ == null) { + membershipStates_ = new com.google.protobuf.MapFieldBuilder<>(membershipStatesConverter); } + bitField0_ |= 0x00000040; onChanged(); - return this; + return membershipStates_; } - /** - * - * - *
            -     * Output only. State of the Feature resource itself.
            -     * 
            - * - * - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.gkehub.v1.FeatureResourceState.Builder getResourceStateBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return internalGetResourceStateFieldBuilder().getBuilder(); + public int getMembershipStatesCount() { + return internalGetMembershipStates().ensureBuilderMap().size(); } /** * * *
            -     * Output only. State of the Feature resource itself.
            -     * 
            + * Output only. Membership-specific Feature status. If this Feature does + * report any per-Membership status, this field may be unused. * - * - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder getResourceStateOrBuilder() { - if (resourceStateBuilder_ != null) { - return resourceStateBuilder_.getMessageOrBuilder(); - } else { - return resourceState_ == null - ? com.google.cloud.gkehub.v1.FeatureResourceState.getDefaultInstance() - : resourceState_; - } - } - - /** + * The keys indicate which Membership the state is for, in the form: * + * `projects/{p}/locations/{l}/memberships/{m}` * - *
            -     * Output only. State of the Feature resource itself.
            +     * Where {p} is the project number, {l} is a valid location and {m} is a valid
            +     * Membership in this project at that location. {p} MUST match the Feature's
            +     * project number.
                  * 
            * * - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.gkehub.v1.FeatureResourceState, - com.google.cloud.gkehub.v1.FeatureResourceState.Builder, - com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder> - internalGetResourceStateFieldBuilder() { - if (resourceStateBuilder_ == null) { - resourceStateBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.gkehub.v1.FeatureResourceState, - com.google.cloud.gkehub.v1.FeatureResourceState.Builder, - com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder>( - getResourceState(), getParentForChildren(), isClean()); - resourceState_ = null; + @java.lang.Override + public boolean containsMembershipStates(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - return resourceStateBuilder_; + return internalGetMembershipStates().ensureBuilderMap().containsKey(key); } - private com.google.cloud.gkehub.v1.CommonFeatureSpec spec_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.gkehub.v1.CommonFeatureSpec, - com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder, - com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder> - specBuilder_; + /** Use {@link #getMembershipStatesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getMembershipStates() { + return getMembershipStatesMap(); + } /** * * *
            -     * Optional. Hub-wide Feature configuration. If this Feature does not support any
            -     * Hub-wide configuration, this field may be unused.
            +     * Output only. Membership-specific Feature status. If this Feature does
            +     * report any per-Membership status, this field may be unused.
            +     *
            +     * The keys indicate which Membership the state is for, in the form:
            +     *
            +     * `projects/{p}/locations/{l}/memberships/{m}`
            +     *
            +     * Where {p} is the project number, {l} is a valid location and {m} is a valid
            +     * Membership in this project at that location. {p} MUST match the Feature's
            +     * project number.
                  * 
            * * - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return Whether the spec field is set. */ - public boolean hasSpec() { - return ((bitField0_ & 0x00000008) != 0); + @java.lang.Override + public java.util.Map + getMembershipStatesMap() { + return internalGetMembershipStates().getImmutableMap(); } /** * * *
            -     * Optional. Hub-wide Feature configuration. If this Feature does not support any
            -     * Hub-wide configuration, this field may be unused.
            +     * Output only. Membership-specific Feature status. If this Feature does
            +     * report any per-Membership status, this field may be unused.
            +     *
            +     * The keys indicate which Membership the state is for, in the form:
            +     *
            +     * `projects/{p}/locations/{l}/memberships/{m}`
            +     *
            +     * Where {p} is the project number, {l} is a valid location and {m} is a valid
            +     * Membership in this project at that location. {p} MUST match the Feature's
            +     * project number.
                  * 
            * * - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The spec. */ - public com.google.cloud.gkehub.v1.CommonFeatureSpec getSpec() { - if (specBuilder_ == null) { - return spec_ == null - ? com.google.cloud.gkehub.v1.CommonFeatureSpec.getDefaultInstance() - : spec_; - } else { - return specBuilder_.getMessage(); + @java.lang.Override + public /* nullable */ com.google.cloud.gkehub.v1.MembershipFeatureState + getMembershipStatesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.gkehub.v1.MembershipFeatureState defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); } + java.util.Map + map = internalGetMutableMembershipStates().ensureBuilderMap(); + return map.containsKey(key) ? membershipStatesConverter.build(map.get(key)) : defaultValue; } /** * * *
            -     * Optional. Hub-wide Feature configuration. If this Feature does not support any
            -     * Hub-wide configuration, this field may be unused.
            +     * Output only. Membership-specific Feature status. If this Feature does
            +     * report any per-Membership status, this field may be unused.
            +     *
            +     * The keys indicate which Membership the state is for, in the form:
            +     *
            +     * `projects/{p}/locations/{l}/memberships/{m}`
            +     *
            +     * Where {p} is the project number, {l} is a valid location and {m} is a valid
            +     * Membership in this project at that location. {p} MUST match the Feature's
            +     * project number.
                  * 
            * * - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setSpec(com.google.cloud.gkehub.v1.CommonFeatureSpec value) { - if (specBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - spec_ = value; - } else { - specBuilder_.setMessage(value); + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipFeatureState getMembershipStatesOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - bitField0_ |= 0x00000008; - onChanged(); + java.util.Map + map = internalGetMutableMembershipStates().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return membershipStatesConverter.build(map.get(key)); + } + + public Builder clearMembershipStates() { + bitField0_ = (bitField0_ & ~0x00000040); + internalGetMutableMembershipStates().clear(); return this; } @@ -2191,53 +3698,68 @@ public Builder setSpec(com.google.cloud.gkehub.v1.CommonFeatureSpec value) { * * *
            -     * Optional. Hub-wide Feature configuration. If this Feature does not support any
            -     * Hub-wide configuration, this field may be unused.
            +     * Output only. Membership-specific Feature status. If this Feature does
            +     * report any per-Membership status, this field may be unused.
            +     *
            +     * The keys indicate which Membership the state is for, in the form:
            +     *
            +     * `projects/{p}/locations/{l}/memberships/{m}`
            +     *
            +     * Where {p} is the project number, {l} is a valid location and {m} is a valid
            +     * Membership in this project at that location. {p} MUST match the Feature's
            +     * project number.
                  * 
            * * - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setSpec(com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder builderForValue) { - if (specBuilder_ == null) { - spec_ = builderForValue.build(); - } else { - specBuilder_.setMessage(builderForValue.build()); + public Builder removeMembershipStates(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - bitField0_ |= 0x00000008; - onChanged(); + internalGetMutableMembershipStates().ensureBuilderMap().remove(key); return this; } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableMembershipStates() { + bitField0_ |= 0x00000040; + return internalGetMutableMembershipStates().ensureMessageMap(); + } + /** * * *
            -     * Optional. Hub-wide Feature configuration. If this Feature does not support any
            -     * Hub-wide configuration, this field may be unused.
            +     * Output only. Membership-specific Feature status. If this Feature does
            +     * report any per-Membership status, this field may be unused.
            +     *
            +     * The keys indicate which Membership the state is for, in the form:
            +     *
            +     * `projects/{p}/locations/{l}/memberships/{m}`
            +     *
            +     * Where {p} is the project number, {l} is a valid location and {m} is a valid
            +     * Membership in this project at that location. {p} MUST match the Feature's
            +     * project number.
                  * 
            * * - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeSpec(com.google.cloud.gkehub.v1.CommonFeatureSpec value) { - if (specBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && spec_ != null - && spec_ != com.google.cloud.gkehub.v1.CommonFeatureSpec.getDefaultInstance()) { - getSpecBuilder().mergeFrom(value); - } else { - spec_ = value; - } - } else { - specBuilder_.mergeFrom(value); + public Builder putMembershipStates( + java.lang.String key, com.google.cloud.gkehub.v1.MembershipFeatureState value) { + if (key == null) { + throw new NullPointerException("map key"); } - if (spec_ != null) { - bitField0_ |= 0x00000008; - onChanged(); + if (value == null) { + throw new NullPointerException("map value"); } + internalGetMutableMembershipStates().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000040; return this; } @@ -2245,22 +3767,32 @@ public Builder mergeSpec(com.google.cloud.gkehub.v1.CommonFeatureSpec value) { * * *
            -     * Optional. Hub-wide Feature configuration. If this Feature does not support any
            -     * Hub-wide configuration, this field may be unused.
            +     * Output only. Membership-specific Feature status. If this Feature does
            +     * report any per-Membership status, this field may be unused.
            +     *
            +     * The keys indicate which Membership the state is for, in the form:
            +     *
            +     * `projects/{p}/locations/{l}/memberships/{m}`
            +     *
            +     * Where {p} is the project number, {l} is a valid location and {m} is a valid
            +     * Membership in this project at that location. {p} MUST match the Feature's
            +     * project number.
                  * 
            * * - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearSpec() { - bitField0_ = (bitField0_ & ~0x00000008); - spec_ = null; - if (specBuilder_ != null) { - specBuilder_.dispose(); - specBuilder_ = null; + public Builder putAllMembershipStates( + java.util.Map values) { + for (java.util.Map.Entry + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } } - onChanged(); + internalGetMutableMembershipStates().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000040; return this; } @@ -2268,295 +3800,159 @@ public Builder clearSpec() { * * *
            -     * Optional. Hub-wide Feature configuration. If this Feature does not support any
            -     * Hub-wide configuration, this field may be unused.
            -     * 
            + * Output only. Membership-specific Feature status. If this Feature does + * report any per-Membership status, this field may be unused. * - * - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder getSpecBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return internalGetSpecFieldBuilder().getBuilder(); - } - - /** + * The keys indicate which Membership the state is for, in the form: * + * `projects/{p}/locations/{l}/memberships/{m}` * - *
            -     * Optional. Hub-wide Feature configuration. If this Feature does not support any
            -     * Hub-wide configuration, this field may be unused.
            +     * Where {p} is the project number, {l} is a valid location and {m} is a valid
            +     * Membership in this project at that location. {p} MUST match the Feature's
            +     * project number.
                  * 
            * * - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder getSpecOrBuilder() { - if (specBuilder_ != null) { - return specBuilder_.getMessageOrBuilder(); - } else { - return spec_ == null - ? com.google.cloud.gkehub.v1.CommonFeatureSpec.getDefaultInstance() - : spec_; + public com.google.cloud.gkehub.v1.MembershipFeatureState.Builder + putMembershipStatesBuilderIfAbsent(java.lang.String key) { + java.util.Map + builderMap = internalGetMutableMembershipStates().ensureBuilderMap(); + com.google.cloud.gkehub.v1.MembershipFeatureStateOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.gkehub.v1.MembershipFeatureState.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.gkehub.v1.MembershipFeatureState) { + entry = ((com.google.cloud.gkehub.v1.MembershipFeatureState) entry).toBuilder(); + builderMap.put(key, entry); } + return (com.google.cloud.gkehub.v1.MembershipFeatureState.Builder) entry; } + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** * * *
            -     * Optional. Hub-wide Feature configuration. If this Feature does not support any
            -     * Hub-wide configuration, this field may be unused.
            +     * Output only. When the Feature resource was created.
                  * 
            * * - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return Whether the createTime field is set. */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.gkehub.v1.CommonFeatureSpec, - com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder, - com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder> - internalGetSpecFieldBuilder() { - if (specBuilder_ == null) { - specBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.gkehub.v1.CommonFeatureSpec, - com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder, - com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder>( - getSpec(), getParentForChildren(), isClean()); - spec_ = null; - } - return specBuilder_; - } - - private static final class MembershipSpecsConverter - implements com.google.protobuf.MapFieldBuilder.Converter< - java.lang.String, - com.google.cloud.gkehub.v1.MembershipFeatureSpecOrBuilder, - com.google.cloud.gkehub.v1.MembershipFeatureSpec> { - @java.lang.Override - public com.google.cloud.gkehub.v1.MembershipFeatureSpec build( - com.google.cloud.gkehub.v1.MembershipFeatureSpecOrBuilder val) { - if (val instanceof com.google.cloud.gkehub.v1.MembershipFeatureSpec) { - return (com.google.cloud.gkehub.v1.MembershipFeatureSpec) val; - } - return ((com.google.cloud.gkehub.v1.MembershipFeatureSpec.Builder) val).build(); - } - - @java.lang.Override - public com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureSpec> - defaultEntry() { - return MembershipSpecsDefaultEntryHolder.defaultEntry; - } - } - ; - - private static final MembershipSpecsConverter membershipSpecsConverter = - new MembershipSpecsConverter(); - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.gkehub.v1.MembershipFeatureSpecOrBuilder, - com.google.cloud.gkehub.v1.MembershipFeatureSpec, - com.google.cloud.gkehub.v1.MembershipFeatureSpec.Builder> - membershipSpecs_; - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.gkehub.v1.MembershipFeatureSpecOrBuilder, - com.google.cloud.gkehub.v1.MembershipFeatureSpec, - com.google.cloud.gkehub.v1.MembershipFeatureSpec.Builder> - internalGetMembershipSpecs() { - if (membershipSpecs_ == null) { - return new com.google.protobuf.MapFieldBuilder<>(membershipSpecsConverter); - } - return membershipSpecs_; - } - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.gkehub.v1.MembershipFeatureSpecOrBuilder, - com.google.cloud.gkehub.v1.MembershipFeatureSpec, - com.google.cloud.gkehub.v1.MembershipFeatureSpec.Builder> - internalGetMutableMembershipSpecs() { - if (membershipSpecs_ == null) { - membershipSpecs_ = new com.google.protobuf.MapFieldBuilder<>(membershipSpecsConverter); - } - bitField0_ |= 0x00000010; - onChanged(); - return membershipSpecs_; - } - - public int getMembershipSpecsCount() { - return internalGetMembershipSpecs().ensureBuilderMap().size(); + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000080) != 0); } /** * * *
            -     * Optional. Membership-specific configuration for this Feature. If this Feature does
            -     * not support any per-Membership configuration, this field may be unused.
            -     *
            -     * The keys indicate which Membership the configuration is for, in the form:
            -     *
            -     * projects/{p}/locations/{l}/memberships/{m}
            -     *
            -     * Where {p} is the project, {l} is a valid location and {m} is a valid
            -     * Membership in this project at that location. {p} WILL match the Feature's
            -     * project.
            -     *
            -     * {p} will always be returned as the project number, but the project ID is
            -     * also accepted during input. If the same Membership is specified in the map
            -     * twice (using the project ID form, and the project number form), exactly
            -     * ONE of the entries will be saved, with no guarantees as to which. For this
            -     * reason, it is recommended the same format be used for all entries when
            -     * mutating a Feature.
            +     * Output only. When the Feature resource was created.
                  * 
            * * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The createTime. */ - @java.lang.Override - public boolean containsMembershipSpecs(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); } - return internalGetMembershipSpecs().ensureBuilderMap().containsKey(key); - } - - /** Use {@link #getMembershipSpecsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getMembershipSpecs() { - return getMembershipSpecsMap(); } /** * * *
            -     * Optional. Membership-specific configuration for this Feature. If this Feature does
            -     * not support any per-Membership configuration, this field may be unused.
            -     *
            -     * The keys indicate which Membership the configuration is for, in the form:
            -     *
            -     * projects/{p}/locations/{l}/memberships/{m}
            -     *
            -     * Where {p} is the project, {l} is a valid location and {m} is a valid
            -     * Membership in this project at that location. {p} WILL match the Feature's
            -     * project.
            -     *
            -     * {p} will always be returned as the project number, but the project ID is
            -     * also accepted during input. If the same Membership is specified in the map
            -     * twice (using the project ID form, and the project number form), exactly
            -     * ONE of the entries will be saved, with no guarantees as to which. For this
            -     * reason, it is recommended the same format be used for all entries when
            -     * mutating a Feature.
            +     * Output only. When the Feature resource was created.
                  * 
            * * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - @java.lang.Override - public java.util.Map - getMembershipSpecsMap() { - return internalGetMembershipSpecs().getImmutableMap(); + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; } /** * * *
            -     * Optional. Membership-specific configuration for this Feature. If this Feature does
            -     * not support any per-Membership configuration, this field may be unused.
            -     *
            -     * The keys indicate which Membership the configuration is for, in the form:
            -     *
            -     * projects/{p}/locations/{l}/memberships/{m}
            -     *
            -     * Where {p} is the project, {l} is a valid location and {m} is a valid
            -     * Membership in this project at that location. {p} WILL match the Feature's
            -     * project.
            -     *
            -     * {p} will always be returned as the project number, but the project ID is
            -     * also accepted during input. If the same Membership is specified in the map
            -     * twice (using the project ID form, and the project number form), exactly
            -     * ONE of the entries will be saved, with no guarantees as to which. For this
            -     * reason, it is recommended the same format be used for all entries when
            -     * mutating a Feature.
            +     * Output only. When the Feature resource was created.
                  * 
            * * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - @java.lang.Override - public /* nullable */ com.google.cloud.gkehub.v1.MembershipFeatureSpec - getMembershipSpecsOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.gkehub.v1.MembershipFeatureSpec defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); } - java.util.Map - map = internalGetMutableMembershipSpecs().ensureBuilderMap(); - return map.containsKey(key) ? membershipSpecsConverter.build(map.get(key)) : defaultValue; + bitField0_ |= 0x00000080; + onChanged(); + return this; } /** * * *
            -     * Optional. Membership-specific configuration for this Feature. If this Feature does
            -     * not support any per-Membership configuration, this field may be unused.
            -     *
            -     * The keys indicate which Membership the configuration is for, in the form:
            -     *
            -     * projects/{p}/locations/{l}/memberships/{m}
            -     *
            -     * Where {p} is the project, {l} is a valid location and {m} is a valid
            -     * Membership in this project at that location. {p} WILL match the Feature's
            -     * project.
            -     *
            -     * {p} will always be returned as the project number, but the project ID is
            -     * also accepted during input. If the same Membership is specified in the map
            -     * twice (using the project ID form, and the project number form), exactly
            -     * ONE of the entries will be saved, with no guarantees as to which. For this
            -     * reason, it is recommended the same format be used for all entries when
            -     * mutating a Feature.
            +     * Output only. When the Feature resource was created.
                  * 
            * * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - @java.lang.Override - public com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrThrow( - java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); } - java.util.Map - map = internalGetMutableMembershipSpecs().ensureBuilderMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + if (createTime_ != null) { + bitField0_ |= 0x00000080; + onChanged(); } - return membershipSpecsConverter.build(map.get(key)); - } - - public Builder clearMembershipSpecs() { - bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableMembershipSpecs().clear(); return this; } @@ -2564,212 +3960,134 @@ public Builder clearMembershipSpecs() { * * *
            -     * Optional. Membership-specific configuration for this Feature. If this Feature does
            -     * not support any per-Membership configuration, this field may be unused.
            -     *
            -     * The keys indicate which Membership the configuration is for, in the form:
            -     *
            -     * projects/{p}/locations/{l}/memberships/{m}
            -     *
            -     * Where {p} is the project, {l} is a valid location and {m} is a valid
            -     * Membership in this project at that location. {p} WILL match the Feature's
            -     * project.
            -     *
            -     * {p} will always be returned as the project number, but the project ID is
            -     * also accepted during input. If the same Membership is specified in the map
            -     * twice (using the project ID form, and the project number form), exactly
            -     * ONE of the entries will be saved, with no guarantees as to which. For this
            -     * reason, it is recommended the same format be used for all entries when
            -     * mutating a Feature.
            +     * Output only. When the Feature resource was created.
                  * 
            * * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder removeMembershipSpecs(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000080); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; } - internalGetMutableMembershipSpecs().ensureBuilderMap().remove(key); + onChanged(); return this; } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map - getMutableMembershipSpecs() { - bitField0_ |= 0x00000010; - return internalGetMutableMembershipSpecs().ensureMessageMap(); - } - /** * * *
            -     * Optional. Membership-specific configuration for this Feature. If this Feature does
            -     * not support any per-Membership configuration, this field may be unused.
            -     *
            -     * The keys indicate which Membership the configuration is for, in the form:
            -     *
            -     * projects/{p}/locations/{l}/memberships/{m}
            -     *
            -     * Where {p} is the project, {l} is a valid location and {m} is a valid
            -     * Membership in this project at that location. {p} WILL match the Feature's
            -     * project.
            -     *
            -     * {p} will always be returned as the project number, but the project ID is
            -     * also accepted during input. If the same Membership is specified in the map
            -     * twice (using the project ID form, and the project number form), exactly
            -     * ONE of the entries will be saved, with no guarantees as to which. For this
            -     * reason, it is recommended the same format be used for all entries when
            -     * mutating a Feature.
            +     * Output only. When the Feature resource was created.
                  * 
            * * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder putMembershipSpecs( - java.lang.String key, com.google.cloud.gkehub.v1.MembershipFeatureSpec value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableMembershipSpecs().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00000010; - return this; + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); } /** * * *
            -     * Optional. Membership-specific configuration for this Feature. If this Feature does
            -     * not support any per-Membership configuration, this field may be unused.
            -     *
            -     * The keys indicate which Membership the configuration is for, in the form:
            -     *
            -     * projects/{p}/locations/{l}/memberships/{m}
            -     *
            -     * Where {p} is the project, {l} is a valid location and {m} is a valid
            -     * Membership in this project at that location. {p} WILL match the Feature's
            -     * project.
            -     *
            -     * {p} will always be returned as the project number, but the project ID is
            -     * also accepted during input. If the same Membership is specified in the map
            -     * twice (using the project ID form, and the project number form), exactly
            -     * ONE of the entries will be saved, with no guarantees as to which. For this
            -     * reason, it is recommended the same format be used for all entries when
            -     * mutating a Feature.
            +     * Output only. When the Feature resource was created.
                  * 
            * * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder putAllMembershipSpecs( - java.util.Map values) { - for (java.util.Map.Entry - e : values.entrySet()) { - if (e.getKey() == null || e.getValue() == null) { - throw new NullPointerException(); - } + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } - internalGetMutableMembershipSpecs().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00000010; - return this; } /** * * *
            -     * Optional. Membership-specific configuration for this Feature. If this Feature does
            -     * not support any per-Membership configuration, this field may be unused.
            -     *
            -     * The keys indicate which Membership the configuration is for, in the form:
            -     *
            -     * projects/{p}/locations/{l}/memberships/{m}
            -     *
            -     * Where {p} is the project, {l} is a valid location and {m} is a valid
            -     * Membership in this project at that location. {p} WILL match the Feature's
            -     * project.
            -     *
            -     * {p} will always be returned as the project number, but the project ID is
            -     * also accepted during input. If the same Membership is specified in the map
            -     * twice (using the project ID form, and the project number form), exactly
            -     * ONE of the entries will be saved, with no guarantees as to which. For this
            -     * reason, it is recommended the same format be used for all entries when
            -     * mutating a Feature.
            +     * Output only. When the Feature resource was created.
                  * 
            * * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.gkehub.v1.MembershipFeatureSpec.Builder - putMembershipSpecsBuilderIfAbsent(java.lang.String key) { - java.util.Map - builderMap = internalGetMutableMembershipSpecs().ensureBuilderMap(); - com.google.cloud.gkehub.v1.MembershipFeatureSpecOrBuilder entry = builderMap.get(key); - if (entry == null) { - entry = com.google.cloud.gkehub.v1.MembershipFeatureSpec.newBuilder(); - builderMap.put(key, entry); - } - if (entry instanceof com.google.cloud.gkehub.v1.MembershipFeatureSpec) { - entry = ((com.google.cloud.gkehub.v1.MembershipFeatureSpec) entry).toBuilder(); - builderMap.put(key, entry); + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; } - return (com.google.cloud.gkehub.v1.MembershipFeatureSpec.Builder) entry; + return createTimeBuilder_; } - private com.google.cloud.gkehub.v1.CommonFeatureState state_; + private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.gkehub.v1.CommonFeatureState, - com.google.cloud.gkehub.v1.CommonFeatureState.Builder, - com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder> - stateBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** * * *
            -     * Output only. The Hub-wide Feature state.
            +     * Output only. When the Feature resource was last updated.
                  * 
            * * - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return Whether the state field is set. + * @return Whether the updateTime field is set. */ - public boolean hasState() { - return ((bitField0_ & 0x00000020) != 0); + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000100) != 0); } /** * * *
            -     * Output only. The Hub-wide Feature state.
            +     * Output only. When the Feature resource was last updated.
                  * 
            * * - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The state. + * @return The updateTime. */ - public com.google.cloud.gkehub.v1.CommonFeatureState getState() { - if (stateBuilder_ == null) { - return state_ == null - ? com.google.cloud.gkehub.v1.CommonFeatureState.getDefaultInstance() - : state_; + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { - return stateBuilder_.getMessage(); + return updateTimeBuilder_.getMessage(); } } @@ -2777,23 +4095,23 @@ public com.google.cloud.gkehub.v1.CommonFeatureState getState() { * * *
            -     * Output only. The Hub-wide Feature state.
            +     * Output only. When the Feature resource was last updated.
                  * 
            * * - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setState(com.google.cloud.gkehub.v1.CommonFeatureState value) { - if (stateBuilder_ == null) { + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - state_ = value; + updateTime_ = value; } else { - stateBuilder_.setMessage(value); + updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2802,20 +4120,20 @@ public Builder setState(com.google.cloud.gkehub.v1.CommonFeatureState value) { * * *
            -     * Output only. The Hub-wide Feature state.
            +     * Output only. When the Feature resource was last updated.
                  * 
            * * - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setState(com.google.cloud.gkehub.v1.CommonFeatureState.Builder builderForValue) { - if (stateBuilder_ == null) { - state_ = builderForValue.build(); + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); } else { - stateBuilder_.setMessage(builderForValue.build()); + updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2824,27 +4142,27 @@ public Builder setState(com.google.cloud.gkehub.v1.CommonFeatureState.Builder bu * * *
            -     * Output only. The Hub-wide Feature state.
            +     * Output only. When the Feature resource was last updated.
                  * 
            * * - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeState(com.google.cloud.gkehub.v1.CommonFeatureState value) { - if (stateBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && state_ != null - && state_ != com.google.cloud.gkehub.v1.CommonFeatureState.getDefaultInstance()) { - getStateBuilder().mergeFrom(value); + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { - state_ = value; + updateTime_ = value; } } else { - stateBuilder_.mergeFrom(value); + updateTimeBuilder_.mergeFrom(value); } - if (state_ != null) { - bitField0_ |= 0x00000020; + if (updateTime_ != null) { + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -2854,19 +4172,19 @@ public Builder mergeState(com.google.cloud.gkehub.v1.CommonFeatureState value) { * * *
            -     * Output only. The Hub-wide Feature state.
            +     * Output only. When the Feature resource was last updated.
                  * 
            * * - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000020); - state_ = null; - if (stateBuilder_ != null) { - stateBuilder_.dispose(); - stateBuilder_ = null; + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000100); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; } onChanged(); return this; @@ -2876,37 +4194,37 @@ public Builder clearState() { * * *
            -     * Output only. The Hub-wide Feature state.
            +     * Output only. When the Feature resource was last updated.
                  * 
            * * - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.gkehub.v1.CommonFeatureState.Builder getStateBuilder() { - bitField0_ |= 0x00000020; + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000100; onChanged(); - return internalGetStateFieldBuilder().getBuilder(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); } /** * * *
            -     * Output only. The Hub-wide Feature state.
            +     * Output only. When the Feature resource was last updated.
                  * 
            * * - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder getStateOrBuilder() { - if (stateBuilder_ != null) { - return stateBuilder_.getMessageOrBuilder(); + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); } else { - return state_ == null - ? com.google.cloud.gkehub.v1.CommonFeatureState.getDefaultInstance() - : state_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } @@ -2914,226 +4232,99 @@ public com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder getStateOrBuilder( * * *
            -     * Output only. The Hub-wide Feature state.
            +     * Output only. When the Feature resource was last updated.
                  * 
            * * - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.gkehub.v1.CommonFeatureState, - com.google.cloud.gkehub.v1.CommonFeatureState.Builder, - com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder> - internalGetStateFieldBuilder() { - if (stateBuilder_ == null) { - stateBuilder_ = + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.gkehub.v1.CommonFeatureState, - com.google.cloud.gkehub.v1.CommonFeatureState.Builder, - com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder>( - getState(), getParentForChildren(), isClean()); - state_ = null; - } - return stateBuilder_; - } - - private static final class MembershipStatesConverter - implements com.google.protobuf.MapFieldBuilder.Converter< - java.lang.String, - com.google.cloud.gkehub.v1.MembershipFeatureStateOrBuilder, - com.google.cloud.gkehub.v1.MembershipFeatureState> { - @java.lang.Override - public com.google.cloud.gkehub.v1.MembershipFeatureState build( - com.google.cloud.gkehub.v1.MembershipFeatureStateOrBuilder val) { - if (val instanceof com.google.cloud.gkehub.v1.MembershipFeatureState) { - return (com.google.cloud.gkehub.v1.MembershipFeatureState) val; - } - return ((com.google.cloud.gkehub.v1.MembershipFeatureState.Builder) val).build(); - } - - @java.lang.Override - public com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureState> - defaultEntry() { - return MembershipStatesDefaultEntryHolder.defaultEntry; - } - } - ; - - private static final MembershipStatesConverter membershipStatesConverter = - new MembershipStatesConverter(); - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.gkehub.v1.MembershipFeatureStateOrBuilder, - com.google.cloud.gkehub.v1.MembershipFeatureState, - com.google.cloud.gkehub.v1.MembershipFeatureState.Builder> - membershipStates_; - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.gkehub.v1.MembershipFeatureStateOrBuilder, - com.google.cloud.gkehub.v1.MembershipFeatureState, - com.google.cloud.gkehub.v1.MembershipFeatureState.Builder> - internalGetMembershipStates() { - if (membershipStates_ == null) { - return new com.google.protobuf.MapFieldBuilder<>(membershipStatesConverter); - } - return membershipStates_; - } - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.gkehub.v1.MembershipFeatureStateOrBuilder, - com.google.cloud.gkehub.v1.MembershipFeatureState, - com.google.cloud.gkehub.v1.MembershipFeatureState.Builder> - internalGetMutableMembershipStates() { - if (membershipStates_ == null) { - membershipStates_ = new com.google.protobuf.MapFieldBuilder<>(membershipStatesConverter); + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; } - bitField0_ |= 0x00000040; - onChanged(); - return membershipStates_; + return updateTimeBuilder_; } - public int getMembershipStatesCount() { - return internalGetMembershipStates().ensureBuilderMap().size(); - } + private com.google.protobuf.Timestamp deleteTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** * * *
            -     * Output only. Membership-specific Feature status. If this Feature does
            -     * report any per-Membership status, this field may be unused.
            -     *
            -     * The keys indicate which Membership the state is for, in the form:
            -     *
            -     * projects/{p}/locations/{l}/memberships/{m}
            -     *
            -     * Where {p} is the project number, {l} is a valid location and {m} is a valid
            -     * Membership in this project at that location. {p} MUST match the Feature's
            -     * project number.
            +     * Output only. When the Feature resource was deleted.
                  * 
            * * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - */ - @java.lang.Override - public boolean containsMembershipStates(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetMembershipStates().ensureBuilderMap().containsKey(key); - } - - /** Use {@link #getMembershipStatesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getMembershipStates() { - return getMembershipStatesMap(); - } - - /** - * - * - *
            -     * Output only. Membership-specific Feature status. If this Feature does
            -     * report any per-Membership status, this field may be unused.
                  *
            -     * The keys indicate which Membership the state is for, in the form:
            -     *
            -     * projects/{p}/locations/{l}/memberships/{m}
            -     *
            -     * Where {p} is the project number, {l} is a valid location and {m} is a valid
            -     * Membership in this project at that location. {p} MUST match the Feature's
            -     * project number.
            -     * 
            - * - * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * @return Whether the deleteTime field is set. */ - @java.lang.Override - public java.util.Map - getMembershipStatesMap() { - return internalGetMembershipStates().getImmutableMap(); + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000200) != 0); } /** * * *
            -     * Output only. Membership-specific Feature status. If this Feature does
            -     * report any per-Membership status, this field may be unused.
            -     *
            -     * The keys indicate which Membership the state is for, in the form:
            -     *
            -     * projects/{p}/locations/{l}/memberships/{m}
            -     *
            -     * Where {p} is the project number, {l} is a valid location and {m} is a valid
            -     * Membership in this project at that location. {p} MUST match the Feature's
            -     * project number.
            +     * Output only. When the Feature resource was deleted.
                  * 
            * * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The deleteTime. */ - @java.lang.Override - public /* nullable */ com.google.cloud.gkehub.v1.MembershipFeatureState - getMembershipStatesOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.gkehub.v1.MembershipFeatureState defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + public com.google.protobuf.Timestamp getDeleteTime() { + if (deleteTimeBuilder_ == null) { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } else { + return deleteTimeBuilder_.getMessage(); } - java.util.Map - map = internalGetMutableMembershipStates().ensureBuilderMap(); - return map.containsKey(key) ? membershipStatesConverter.build(map.get(key)) : defaultValue; } /** * * *
            -     * Output only. Membership-specific Feature status. If this Feature does
            -     * report any per-Membership status, this field may be unused.
            -     *
            -     * The keys indicate which Membership the state is for, in the form:
            -     *
            -     * projects/{p}/locations/{l}/memberships/{m}
            -     *
            -     * Where {p} is the project number, {l} is a valid location and {m} is a valid
            -     * Membership in this project at that location. {p} MUST match the Feature's
            -     * project number.
            +     * Output only. When the Feature resource was deleted.
                  * 
            * * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - @java.lang.Override - public com.google.cloud.gkehub.v1.MembershipFeatureState getMembershipStatesOrThrow( - java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetMutableMembershipStates().ensureBuilderMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + public Builder setDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deleteTime_ = value; + } else { + deleteTimeBuilder_.setMessage(value); } - return membershipStatesConverter.build(map.get(key)); - } - - public Builder clearMembershipStates() { - bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableMembershipStates().clear(); + bitField0_ |= 0x00000200; + onChanged(); return this; } @@ -3141,68 +4332,51 @@ public Builder clearMembershipStates() { * * *
            -     * Output only. Membership-specific Feature status. If this Feature does
            -     * report any per-Membership status, this field may be unused.
            -     *
            -     * The keys indicate which Membership the state is for, in the form:
            -     *
            -     * projects/{p}/locations/{l}/memberships/{m}
            -     *
            -     * Where {p} is the project number, {l} is a valid location and {m} is a valid
            -     * Membership in this project at that location. {p} MUST match the Feature's
            -     * project number.
            +     * Output only. When the Feature resource was deleted.
                  * 
            * * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder removeMembershipStates(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (deleteTimeBuilder_ == null) { + deleteTime_ = builderForValue.build(); + } else { + deleteTimeBuilder_.setMessage(builderForValue.build()); } - internalGetMutableMembershipStates().ensureBuilderMap().remove(key); + bitField0_ |= 0x00000200; + onChanged(); return this; } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map - getMutableMembershipStates() { - bitField0_ |= 0x00000040; - return internalGetMutableMembershipStates().ensureMessageMap(); - } - /** * * *
            -     * Output only. Membership-specific Feature status. If this Feature does
            -     * report any per-Membership status, this field may be unused.
            -     *
            -     * The keys indicate which Membership the state is for, in the form:
            -     *
            -     * projects/{p}/locations/{l}/memberships/{m}
            -     *
            -     * Where {p} is the project number, {l} is a valid location and {m} is a valid
            -     * Membership in this project at that location. {p} MUST match the Feature's
            -     * project number.
            +     * Output only. When the Feature resource was deleted.
                  * 
            * * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder putMembershipStates( - java.lang.String key, com.google.cloud.gkehub.v1.MembershipFeatureState value) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getDeleteTimeBuilder().mergeFrom(value); + } else { + deleteTime_ = value; + } + } else { + deleteTimeBuilder_.mergeFrom(value); } - if (value == null) { - throw new NullPointerException("map value"); + if (deleteTime_ != null) { + bitField0_ |= 0x00000200; + onChanged(); } - internalGetMutableMembershipStates().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00000040; return this; } @@ -3210,32 +4384,21 @@ public Builder putMembershipStates( * * *
            -     * Output only. Membership-specific Feature status. If this Feature does
            -     * report any per-Membership status, this field may be unused.
            -     *
            -     * The keys indicate which Membership the state is for, in the form:
            -     *
            -     * projects/{p}/locations/{l}/memberships/{m}
            -     *
            -     * Where {p} is the project number, {l} is a valid location and {m} is a valid
            -     * Membership in this project at that location. {p} MUST match the Feature's
            -     * project number.
            +     * Output only. When the Feature resource was deleted.
                  * 
            * * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder putAllMembershipStates( - java.util.Map values) { - for (java.util.Map.Entry - e : values.entrySet()) { - if (e.getKey() == null || e.getValue() == null) { - throw new NullPointerException(); - } + public Builder clearDeleteTime() { + bitField0_ = (bitField0_ & ~0x00000200); + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; } - internalGetMutableMembershipStates().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00000040; + onChanged(); return this; } @@ -3243,159 +4406,285 @@ public Builder putAllMembershipStates( * * *
            -     * Output only. Membership-specific Feature status. If this Feature does
            -     * report any per-Membership status, this field may be unused.
            -     *
            -     * The keys indicate which Membership the state is for, in the form:
            -     *
            -     * projects/{p}/locations/{l}/memberships/{m}
            -     *
            -     * Where {p} is the project number, {l} is a valid location and {m} is a valid
            -     * Membership in this project at that location. {p} MUST match the Feature's
            -     * project number.
            +     * Output only. When the Feature resource was deleted.
                  * 
            * * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.gkehub.v1.MembershipFeatureState.Builder - putMembershipStatesBuilderIfAbsent(java.lang.String key) { - java.util.Map - builderMap = internalGetMutableMembershipStates().ensureBuilderMap(); - com.google.cloud.gkehub.v1.MembershipFeatureStateOrBuilder entry = builderMap.get(key); - if (entry == null) { - entry = com.google.cloud.gkehub.v1.MembershipFeatureState.newBuilder(); - builderMap.put(key, entry); - } - if (entry instanceof com.google.cloud.gkehub.v1.MembershipFeatureState) { - entry = ((com.google.cloud.gkehub.v1.MembershipFeatureState) entry).toBuilder(); - builderMap.put(key, entry); - } - return (com.google.cloud.gkehub.v1.MembershipFeatureState.Builder) entry; + public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetDeleteTimeFieldBuilder().getBuilder(); } - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; - /** * * *
            -     * Output only. When the Feature resource was created.
            +     * Output only. When the Feature resource was deleted.
                  * 
            * * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return Whether the createTime field is set. */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000080) != 0); + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + if (deleteTimeBuilder_ != null) { + return deleteTimeBuilder_.getMessageOrBuilder(); + } else { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } } /** * * *
            -     * Output only. When the Feature resource was created.
            +     * Output only. When the Feature resource was deleted.
                  * 
            * * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.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_; - } else { - return createTimeBuilder_.getMessage(); + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetDeleteTimeFieldBuilder() { + if (deleteTimeBuilder_ == null) { + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); + deleteTime_ = null; + } + return deleteTimeBuilder_; + } + + private static final class ScopeSpecsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.gkehub.v1.ScopeFeatureSpecOrBuilder, + com.google.cloud.gkehub.v1.ScopeFeatureSpec> { + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeFeatureSpec build( + com.google.cloud.gkehub.v1.ScopeFeatureSpecOrBuilder val) { + if (val instanceof com.google.cloud.gkehub.v1.ScopeFeatureSpec) { + return (com.google.cloud.gkehub.v1.ScopeFeatureSpec) val; + } + return ((com.google.cloud.gkehub.v1.ScopeFeatureSpec.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1.ScopeFeatureSpec> + defaultEntry() { + return ScopeSpecsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final ScopeSpecsConverter scopeSpecsConverter = new ScopeSpecsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.gkehub.v1.ScopeFeatureSpecOrBuilder, + com.google.cloud.gkehub.v1.ScopeFeatureSpec, + com.google.cloud.gkehub.v1.ScopeFeatureSpec.Builder> + scopeSpecs_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.gkehub.v1.ScopeFeatureSpecOrBuilder, + com.google.cloud.gkehub.v1.ScopeFeatureSpec, + com.google.cloud.gkehub.v1.ScopeFeatureSpec.Builder> + internalGetScopeSpecs() { + if (scopeSpecs_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(scopeSpecsConverter); + } + return scopeSpecs_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.gkehub.v1.ScopeFeatureSpecOrBuilder, + com.google.cloud.gkehub.v1.ScopeFeatureSpec, + com.google.cloud.gkehub.v1.ScopeFeatureSpec.Builder> + internalGetMutableScopeSpecs() { + if (scopeSpecs_ == null) { + scopeSpecs_ = new com.google.protobuf.MapFieldBuilder<>(scopeSpecsConverter); } + bitField0_ |= 0x00000400; + onChanged(); + return scopeSpecs_; + } + + public int getScopeSpecsCount() { + return internalGetScopeSpecs().ensureBuilderMap().size(); } /** * * *
            -     * Output only. When the Feature resource was created.
            +     * Optional. Scope-specific configuration for this Feature. If this Feature
            +     * does not support any per-Scope configuration, this field may be unused.
            +     *
            +     * The keys indicate which Scope the configuration is for, in the form:
            +     *
            +     * `projects/{p}/locations/global/scopes/{s}`
            +     *
            +     * Where {p} is the project, {s} is a valid Scope in this project.
            +     * {p} WILL match the Feature's project.
            +     *
            +     * {p} will always be returned as the project number, but the project ID is
            +     * also accepted during input. If the same Scope is specified in the map
            +     * twice (using the project ID form, and the project number form), exactly
            +     * ONE of the entries will be saved, with no guarantees as to which. For this
            +     * reason, it is recommended the same format be used for all entries when
            +     * mutating a Feature.
                  * 
            * * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.gkehub.v1.ScopeFeatureSpec> scope_specs = 12 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - } else { - createTimeBuilder_.setMessage(value); + @java.lang.Override + public boolean containsScopeSpecs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - bitField0_ |= 0x00000080; - onChanged(); - return this; + return internalGetScopeSpecs().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getScopeSpecsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getScopeSpecs() { + return getScopeSpecsMap(); + } + + /** + * + * + *
            +     * Optional. Scope-specific configuration for this Feature. If this Feature
            +     * does not support any per-Scope configuration, this field may be unused.
            +     *
            +     * The keys indicate which Scope the configuration is for, in the form:
            +     *
            +     * `projects/{p}/locations/global/scopes/{s}`
            +     *
            +     * Where {p} is the project, {s} is a valid Scope in this project.
            +     * {p} WILL match the Feature's project.
            +     *
            +     * {p} will always be returned as the project number, but the project ID is
            +     * also accepted during input. If the same Scope is specified in the map
            +     * twice (using the project ID form, and the project number form), exactly
            +     * ONE of the entries will be saved, with no guarantees as to which. For this
            +     * reason, it is recommended the same format be used for all entries when
            +     * mutating a Feature.
            +     * 
            + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureSpec> scope_specs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map + getScopeSpecsMap() { + return internalGetScopeSpecs().getImmutableMap(); } /** * * *
            -     * Output only. When the Feature resource was created.
            +     * Optional. Scope-specific configuration for this Feature. If this Feature
            +     * does not support any per-Scope configuration, this field may be unused.
            +     *
            +     * The keys indicate which Scope the configuration is for, in the form:
            +     *
            +     * `projects/{p}/locations/global/scopes/{s}`
            +     *
            +     * Where {p} is the project, {s} is a valid Scope in this project.
            +     * {p} WILL match the Feature's project.
            +     *
            +     * {p} will always be returned as the project number, but the project ID is
            +     * also accepted during input. If the same Scope is specified in the map
            +     * twice (using the project ID form, and the project number form), exactly
            +     * ONE of the entries will be saved, with no guarantees as to which. For this
            +     * reason, it is recommended the same format be used for all entries when
            +     * mutating a Feature.
                  * 
            * * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.gkehub.v1.ScopeFeatureSpec> scope_specs = 12 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); + @java.lang.Override + public /* nullable */ com.google.cloud.gkehub.v1.ScopeFeatureSpec getScopeSpecsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.gkehub.v1.ScopeFeatureSpec defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); } - bitField0_ |= 0x00000080; - onChanged(); - return this; + java.util.Map map = + internalGetMutableScopeSpecs().ensureBuilderMap(); + return map.containsKey(key) ? scopeSpecsConverter.build(map.get(key)) : defaultValue; } /** * * *
            -     * Output only. When the Feature resource was created.
            +     * Optional. Scope-specific configuration for this Feature. If this Feature
            +     * does not support any per-Scope configuration, this field may be unused.
            +     *
            +     * The keys indicate which Scope the configuration is for, in the form:
            +     *
            +     * `projects/{p}/locations/global/scopes/{s}`
            +     *
            +     * Where {p} is the project, {s} is a valid Scope in this project.
            +     * {p} WILL match the Feature's project.
            +     *
            +     * {p} will always be returned as the project number, but the project ID is
            +     * also accepted during input. If the same Scope is specified in the map
            +     * twice (using the project ID form, and the project number form), exactly
            +     * ONE of the entries will be saved, with no guarantees as to which. For this
            +     * reason, it is recommended the same format be used for all entries when
            +     * mutating a Feature.
                  * 
            * * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.gkehub.v1.ScopeFeatureSpec> scope_specs = 12 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); - } else { - createTime_ = value; - } - } else { - createTimeBuilder_.mergeFrom(value); + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeFeatureSpec getScopeSpecsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - if (createTime_ != null) { - bitField0_ |= 0x00000080; - onChanged(); + java.util.Map map = + internalGetMutableScopeSpecs().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } + return scopeSpecsConverter.build(map.get(key)); + } + + public Builder clearScopeSpecs() { + bitField0_ = (bitField0_ & ~0x00000400); + internalGetMutableScopeSpecs().clear(); return this; } @@ -3403,211 +4692,354 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * * *
            -     * Output only. When the Feature resource was created.
            +     * Optional. Scope-specific configuration for this Feature. If this Feature
            +     * does not support any per-Scope configuration, this field may be unused.
            +     *
            +     * The keys indicate which Scope the configuration is for, in the form:
            +     *
            +     * `projects/{p}/locations/global/scopes/{s}`
            +     *
            +     * Where {p} is the project, {s} is a valid Scope in this project.
            +     * {p} WILL match the Feature's project.
            +     *
            +     * {p} will always be returned as the project number, but the project ID is
            +     * also accepted during input. If the same Scope is specified in the map
            +     * twice (using the project ID form, and the project number form), exactly
            +     * ONE of the entries will be saved, with no guarantees as to which. For this
            +     * reason, it is recommended the same format be used for all entries when
            +     * mutating a Feature.
                  * 
            * * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.gkehub.v1.ScopeFeatureSpec> scope_specs = 12 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000080); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; + public Builder removeScopeSpecs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - onChanged(); + internalGetMutableScopeSpecs().ensureBuilderMap().remove(key); return this; } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableScopeSpecs() { + bitField0_ |= 0x00000400; + return internalGetMutableScopeSpecs().ensureMessageMap(); + } + /** * * *
            -     * Output only. When the Feature resource was created.
            +     * Optional. Scope-specific configuration for this Feature. If this Feature
            +     * does not support any per-Scope configuration, this field may be unused.
            +     *
            +     * The keys indicate which Scope the configuration is for, in the form:
            +     *
            +     * `projects/{p}/locations/global/scopes/{s}`
            +     *
            +     * Where {p} is the project, {s} is a valid Scope in this project.
            +     * {p} WILL match the Feature's project.
            +     *
            +     * {p} will always be returned as the project number, but the project ID is
            +     * also accepted during input. If the same Scope is specified in the map
            +     * twice (using the project ID form, and the project number form), exactly
            +     * ONE of the entries will be saved, with no guarantees as to which. For this
            +     * reason, it is recommended the same format be used for all entries when
            +     * mutating a Feature.
                  * 
            * * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.gkehub.v1.ScopeFeatureSpec> scope_specs = 12 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return internalGetCreateTimeFieldBuilder().getBuilder(); + public Builder putScopeSpecs( + java.lang.String key, com.google.cloud.gkehub.v1.ScopeFeatureSpec value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableScopeSpecs().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000400; + return this; } /** * * *
            -     * Output only. When the Feature resource was created.
            +     * Optional. Scope-specific configuration for this Feature. If this Feature
            +     * does not support any per-Scope configuration, this field may be unused.
            +     *
            +     * The keys indicate which Scope the configuration is for, in the form:
            +     *
            +     * `projects/{p}/locations/global/scopes/{s}`
            +     *
            +     * Where {p} is the project, {s} is a valid Scope in this project.
            +     * {p} WILL match the Feature's project.
            +     *
            +     * {p} will always be returned as the project number, but the project ID is
            +     * also accepted during input. If the same Scope is specified in the map
            +     * twice (using the project ID form, and the project number form), exactly
            +     * ONE of the entries will be saved, with no guarantees as to which. For this
            +     * reason, it is recommended the same format be used for all entries when
            +     * mutating a Feature.
                  * 
            * * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.gkehub.v1.ScopeFeatureSpec> scope_specs = 12 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + public Builder putAllScopeSpecs( + java.util.Map values) { + for (java.util.Map.Entry e : + values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } } + internalGetMutableScopeSpecs().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000400; + return this; } /** * * *
            -     * Output only. When the Feature resource was created.
            +     * Optional. Scope-specific configuration for this Feature. If this Feature
            +     * does not support any per-Scope configuration, this field may be unused.
            +     *
            +     * The keys indicate which Scope the configuration is for, in the form:
            +     *
            +     * `projects/{p}/locations/global/scopes/{s}`
            +     *
            +     * Where {p} is the project, {s} is a valid Scope in this project.
            +     * {p} WILL match the Feature's project.
            +     *
            +     * {p} will always be returned as the project number, but the project ID is
            +     * also accepted during input. If the same Scope is specified in the map
            +     * twice (using the project ID form, and the project number form), exactly
            +     * ONE of the entries will be saved, with no guarantees as to which. For this
            +     * reason, it is recommended the same format be used for all entries when
            +     * mutating a Feature.
                  * 
            * * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.gkehub.v1.ScopeFeatureSpec> scope_specs = 12 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - internalGetCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; + public com.google.cloud.gkehub.v1.ScopeFeatureSpec.Builder putScopeSpecsBuilderIfAbsent( + java.lang.String key) { + java.util.Map + builderMap = internalGetMutableScopeSpecs().ensureBuilderMap(); + com.google.cloud.gkehub.v1.ScopeFeatureSpecOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.gkehub.v1.ScopeFeatureSpec.newBuilder(); + builderMap.put(key, entry); } - return createTimeBuilder_; + if (entry instanceof com.google.cloud.gkehub.v1.ScopeFeatureSpec) { + entry = ((com.google.cloud.gkehub.v1.ScopeFeatureSpec) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.gkehub.v1.ScopeFeatureSpec.Builder) entry; } - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + private static final class ScopeStatesConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.gkehub.v1.ScopeFeatureStateOrBuilder, + com.google.cloud.gkehub.v1.ScopeFeatureState> { + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeFeatureState build( + com.google.cloud.gkehub.v1.ScopeFeatureStateOrBuilder val) { + if (val instanceof com.google.cloud.gkehub.v1.ScopeFeatureState) { + return (com.google.cloud.gkehub.v1.ScopeFeatureState) val; + } + return ((com.google.cloud.gkehub.v1.ScopeFeatureState.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1.ScopeFeatureState> + defaultEntry() { + return ScopeStatesDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final ScopeStatesConverter scopeStatesConverter = new ScopeStatesConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.gkehub.v1.ScopeFeatureStateOrBuilder, + com.google.cloud.gkehub.v1.ScopeFeatureState, + com.google.cloud.gkehub.v1.ScopeFeatureState.Builder> + scopeStates_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.gkehub.v1.ScopeFeatureStateOrBuilder, + com.google.cloud.gkehub.v1.ScopeFeatureState, + com.google.cloud.gkehub.v1.ScopeFeatureState.Builder> + internalGetScopeStates() { + if (scopeStates_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(scopeStatesConverter); + } + return scopeStates_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.gkehub.v1.ScopeFeatureStateOrBuilder, + com.google.cloud.gkehub.v1.ScopeFeatureState, + com.google.cloud.gkehub.v1.ScopeFeatureState.Builder> + internalGetMutableScopeStates() { + if (scopeStates_ == null) { + scopeStates_ = new com.google.protobuf.MapFieldBuilder<>(scopeStatesConverter); + } + bitField0_ |= 0x00000800; + onChanged(); + return scopeStates_; + } + + public int getScopeStatesCount() { + return internalGetScopeStates().ensureBuilderMap().size(); + } /** * * *
            -     * Output only. When the Feature resource was last updated.
            -     * 
            - * - * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * Output only. Scope-specific Feature status. If this Feature does + * report any per-Scope status, this field may be unused. * - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000100) != 0); - } - - /** + * The keys indicate which Scope the state is for, in the form: * + * `projects/{p}/locations/global/scopes/{s}` * - *
            -     * Output only. When the Feature resource was last updated.
            +     * Where {p} is the project, {s} is a valid Scope in this project.
            +     * {p} WILL match the Feature's project.
                  * 
            * * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13 [(.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_; - } else { - return updateTimeBuilder_.getMessage(); + @java.lang.Override + public boolean containsScopeStates(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } + return internalGetScopeStates().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getScopeStatesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getScopeStates() { + return getScopeStatesMap(); } /** * * *
            -     * Output only. When the Feature resource was last updated.
            +     * Output only. Scope-specific Feature status. If this Feature does
            +     * report any per-Scope status, this field may be unused.
            +     *
            +     * The keys indicate which Scope the state is for, in the form:
            +     *
            +     * `projects/{p}/locations/global/scopes/{s}`
            +     *
            +     * Where {p} is the project, {s} is a valid Scope in this project.
            +     * {p} WILL match the Feature's project.
                  * 
            * * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - } else { - updateTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000100; - onChanged(); - return this; + @java.lang.Override + public java.util.Map + getScopeStatesMap() { + return internalGetScopeStates().getImmutableMap(); } /** * * *
            -     * Output only. When the Feature resource was last updated.
            +     * Output only. Scope-specific Feature status. If this Feature does
            +     * report any per-Scope status, this field may be unused.
            +     *
            +     * The keys indicate which Scope the state is for, in the form:
            +     *
            +     * `projects/{p}/locations/global/scopes/{s}`
            +     *
            +     * Where {p} is the project, {s} is a valid Scope in this project.
            +     * {p} WILL match the Feature's project.
                  * 
            * * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); + @java.lang.Override + public /* nullable */ com.google.cloud.gkehub.v1.ScopeFeatureState getScopeStatesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.gkehub.v1.ScopeFeatureState defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); } - bitField0_ |= 0x00000100; - onChanged(); - return this; + java.util.Map map = + internalGetMutableScopeStates().ensureBuilderMap(); + return map.containsKey(key) ? scopeStatesConverter.build(map.get(key)) : defaultValue; } /** * * *
            -     * Output only. When the Feature resource was last updated.
            +     * Output only. Scope-specific Feature status. If this Feature does
            +     * report any per-Scope status, this field may be unused.
            +     *
            +     * The keys indicate which Scope the state is for, in the form:
            +     *
            +     * `projects/{p}/locations/global/scopes/{s}`
            +     *
            +     * Where {p} is the project, {s} is a valid Scope in this project.
            +     * {p} WILL match the Feature's project.
                  * 
            * * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getUpdateTimeBuilder().mergeFrom(value); - } else { - updateTime_ = value; - } - } else { - updateTimeBuilder_.mergeFrom(value); + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeFeatureState getScopeStatesOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - if (updateTime_ != null) { - bitField0_ |= 0x00000100; - onChanged(); + java.util.Map map = + internalGetMutableScopeStates().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } + return scopeStatesConverter.build(map.get(key)); + } + + public Builder clearScopeStates() { + bitField0_ = (bitField0_ & ~0x00000800); + internalGetMutableScopeStates().clear(); return this; } @@ -3615,211 +5047,235 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * * *
            -     * Output only. When the Feature resource was last updated.
            +     * Output only. Scope-specific Feature status. If this Feature does
            +     * report any per-Scope status, this field may be unused.
            +     *
            +     * The keys indicate which Scope the state is for, in the form:
            +     *
            +     * `projects/{p}/locations/global/scopes/{s}`
            +     *
            +     * Where {p} is the project, {s} is a valid Scope in this project.
            +     * {p} WILL match the Feature's project.
                  * 
            * * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000100); - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; + public Builder removeScopeStates(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - onChanged(); + internalGetMutableScopeStates().ensureBuilderMap().remove(key); return this; } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableScopeStates() { + bitField0_ |= 0x00000800; + return internalGetMutableScopeStates().ensureMessageMap(); + } + /** * * *
            -     * Output only. When the Feature resource was last updated.
            +     * Output only. Scope-specific Feature status. If this Feature does
            +     * report any per-Scope status, this field may be unused.
            +     *
            +     * The keys indicate which Scope the state is for, in the form:
            +     *
            +     * `projects/{p}/locations/global/scopes/{s}`
            +     *
            +     * Where {p} is the project, {s} is a valid Scope in this project.
            +     * {p} WILL match the Feature's project.
                  * 
            * * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000100; - onChanged(); - return internalGetUpdateTimeFieldBuilder().getBuilder(); + public Builder putScopeStates( + java.lang.String key, com.google.cloud.gkehub.v1.ScopeFeatureState value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableScopeStates().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000800; + return this; } /** * * *
            -     * Output only. When the Feature resource was last updated.
            +     * Output only. Scope-specific Feature status. If this Feature does
            +     * report any per-Scope status, this field may be unused.
            +     *
            +     * The keys indicate which Scope the state is for, in the form:
            +     *
            +     * `projects/{p}/locations/global/scopes/{s}`
            +     *
            +     * Where {p} is the project, {s} is a valid Scope in this project.
            +     * {p} WILL match the Feature's project.
                  * 
            * * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13 [(.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_; + public Builder putAllScopeStates( + java.util.Map values) { + for (java.util.Map.Entry e : + values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } } + internalGetMutableScopeStates().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000800; + return this; } /** * * *
            -     * Output only. When the Feature resource was last updated.
            +     * Output only. Scope-specific Feature status. If this Feature does
            +     * report any per-Scope status, this field may be unused.
            +     *
            +     * The keys indicate which Scope the state is for, in the form:
            +     *
            +     * `projects/{p}/locations/global/scopes/{s}`
            +     *
            +     * Where {p} is the project, {s} is a valid Scope in this project.
            +     * {p} WILL match the Feature's project.
                  * 
            * * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - internalGetUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); - updateTime_ = null; + public com.google.cloud.gkehub.v1.ScopeFeatureState.Builder putScopeStatesBuilderIfAbsent( + java.lang.String key) { + java.util.Map + builderMap = internalGetMutableScopeStates().ensureBuilderMap(); + com.google.cloud.gkehub.v1.ScopeFeatureStateOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.gkehub.v1.ScopeFeatureState.newBuilder(); + builderMap.put(key, entry); } - return updateTimeBuilder_; + if (entry instanceof com.google.cloud.gkehub.v1.ScopeFeatureState) { + entry = ((com.google.cloud.gkehub.v1.ScopeFeatureState) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.gkehub.v1.ScopeFeatureState.Builder) entry; } - private com.google.protobuf.Timestamp deleteTime_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00001000; + } /** * * *
            -     * Output only. When the Feature resource was deleted.
            +     * Output only. List of locations that could not be reached while fetching
            +     * this feature.
                  * 
            * - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated string unreachable = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return Whether the deleteTime field is set. + * @return A list containing the unreachable. */ - public boolean hasDeleteTime() { - return ((bitField0_ & 0x00000200) != 0); + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; } /** * * *
            -     * Output only. When the Feature resource was deleted.
            +     * Output only. List of locations that could not be reached while fetching
            +     * this feature.
                  * 
            * - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated string unreachable = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The deleteTime. + * @return The count of unreachable. */ - public com.google.protobuf.Timestamp getDeleteTime() { - if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; - } else { - return deleteTimeBuilder_.getMessage(); - } + public int getUnreachableCount() { + return unreachable_.size(); } /** * * *
            -     * Output only. When the Feature resource was deleted.
            +     * Output only. List of locations that could not be reached while fetching
            +     * this feature.
                  * 
            * - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated string unreachable = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. */ - public Builder setDeleteTime(com.google.protobuf.Timestamp value) { - if (deleteTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deleteTime_ = value; - } else { - deleteTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); } /** * * *
            -     * Output only. When the Feature resource was deleted.
            +     * Output only. List of locations that could not be reached while fetching
            +     * this feature.
                  * 
            * - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated string unreachable = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (deleteTimeBuilder_ == null) { - deleteTime_ = builderForValue.build(); - } else { - deleteTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); } /** * * *
            -     * Output only. When the Feature resource was deleted.
            +     * Output only. List of locations that could not be reached while fetching
            +     * this feature.
                  * 
            * - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated string unreachable = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. */ - public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { - if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && deleteTime_ != null - && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getDeleteTimeBuilder().mergeFrom(value); - } else { - deleteTime_ = value; - } - } else { - deleteTimeBuilder_.mergeFrom(value); - } - if (deleteTime_ != null) { - bitField0_ |= 0x00000200; - onChanged(); + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00001000; + onChanged(); return this; } @@ -3827,20 +5283,22 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { * * *
            -     * Output only. When the Feature resource was deleted.
            +     * Output only. List of locations that could not be reached while fetching
            +     * this feature.
                  * 
            * - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated string unreachable = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The unreachable to add. + * @return This builder for chaining. */ - public Builder clearDeleteTime() { - bitField0_ = (bitField0_ & ~0x00000200); - deleteTime_ = null; - if (deleteTimeBuilder_ != null) { - deleteTimeBuilder_.dispose(); - deleteTimeBuilder_ = null; + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -3849,66 +5307,66 @@ public Builder clearDeleteTime() { * * *
            -     * Output only. When the Feature resource was deleted.
            +     * Output only. List of locations that could not be reached while fetching
            +     * this feature.
                  * 
            * - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated string unreachable = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The unreachable to add. + * @return This builder for chaining. */ - public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - bitField0_ |= 0x00000200; + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00001000; onChanged(); - return internalGetDeleteTimeFieldBuilder().getBuilder(); + return this; } /** * * *
            -     * Output only. When the Feature resource was deleted.
            +     * Output only. List of locations that could not be reached while fetching
            +     * this feature.
                  * 
            * - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated string unreachable = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. */ - public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { - if (deleteTimeBuilder_ != null) { - return deleteTimeBuilder_.getMessageOrBuilder(); - } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; - } + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + ; + onChanged(); + return this; } /** * * *
            -     * Output only. When the Feature resource was deleted.
            +     * Output only. List of locations that could not be reached while fetching
            +     * this feature.
                  * 
            * - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated string unreachable = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - internalGetDeleteTimeFieldBuilder() { - if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); - deleteTime_ = null; + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return deleteTimeBuilder_; + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00001000; + onChanged(); + return this; } // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.Feature) diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureOrBuilder.java index bea565676b91..46cc8172ffb2 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureOrBuilder.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureOrBuilder.java @@ -58,7 +58,7 @@ public interface FeatureOrBuilder * * *
            -   * GCP labels for this Feature.
            +   * Labels for this Feature.
                * 
            * * map<string, string> labels = 2; @@ -69,7 +69,7 @@ public interface FeatureOrBuilder * * *
            -   * GCP labels for this Feature.
            +   * Labels for this Feature.
                * 
            * * map<string, string> labels = 2; @@ -84,7 +84,7 @@ public interface FeatureOrBuilder * * *
            -   * GCP labels for this Feature.
            +   * Labels for this Feature.
                * 
            * * map<string, string> labels = 2; @@ -95,7 +95,7 @@ public interface FeatureOrBuilder * * *
            -   * GCP labels for this Feature.
            +   * Labels for this Feature.
                * 
            * * map<string, string> labels = 2; @@ -110,7 +110,7 @@ java.lang.String getLabelsOrDefault( * * *
            -   * GCP labels for this Feature.
            +   * Labels for this Feature.
                * 
            * * map<string, string> labels = 2; @@ -164,8 +164,8 @@ java.lang.String getLabelsOrDefault( * * *
            -   * Optional. Hub-wide Feature configuration. If this Feature does not support any
            -   * Hub-wide configuration, this field may be unused.
            +   * Optional. Fleet-wide Feature configuration. If this Feature does not
            +   * support any Fleet-wide configuration, this field may be unused.
                * 
            * * @@ -180,8 +180,8 @@ java.lang.String getLabelsOrDefault( * * *
            -   * Optional. Hub-wide Feature configuration. If this Feature does not support any
            -   * Hub-wide configuration, this field may be unused.
            +   * Optional. Fleet-wide Feature configuration. If this Feature does not
            +   * support any Fleet-wide configuration, this field may be unused.
                * 
            * * @@ -196,8 +196,8 @@ java.lang.String getLabelsOrDefault( * * *
            -   * Optional. Hub-wide Feature configuration. If this Feature does not support any
            -   * Hub-wide configuration, this field may be unused.
            +   * Optional. Fleet-wide Feature configuration. If this Feature does not
            +   * support any Fleet-wide configuration, this field may be unused.
                * 
            * * @@ -210,12 +210,13 @@ java.lang.String getLabelsOrDefault( * * *
            -   * Optional. Membership-specific configuration for this Feature. If this Feature does
            -   * not support any per-Membership configuration, this field may be unused.
            +   * Optional. Membership-specific configuration for this Feature. If this
            +   * Feature does not support any per-Membership configuration, this field may
            +   * be unused.
                *
                * The keys indicate which Membership the configuration is for, in the form:
                *
            -   * projects/{p}/locations/{l}/memberships/{m}
            +   * `projects/{p}/locations/{l}/memberships/{m}`
                *
                * Where {p} is the project, {l} is a valid location and {m} is a valid
                * Membership in this project at that location. {p} WILL match the Feature's
            @@ -239,12 +240,13 @@ java.lang.String getLabelsOrDefault(
                *
                *
                * 
            -   * Optional. Membership-specific configuration for this Feature. If this Feature does
            -   * not support any per-Membership configuration, this field may be unused.
            +   * Optional. Membership-specific configuration for this Feature. If this
            +   * Feature does not support any per-Membership configuration, this field may
            +   * be unused.
                *
                * The keys indicate which Membership the configuration is for, in the form:
                *
            -   * projects/{p}/locations/{l}/memberships/{m}
            +   * `projects/{p}/locations/{l}/memberships/{m}`
                *
                * Where {p} is the project, {l} is a valid location and {m} is a valid
                * Membership in this project at that location. {p} WILL match the Feature's
            @@ -273,12 +275,13 @@ java.lang.String getLabelsOrDefault(
                *
                *
                * 
            -   * Optional. Membership-specific configuration for this Feature. If this Feature does
            -   * not support any per-Membership configuration, this field may be unused.
            +   * Optional. Membership-specific configuration for this Feature. If this
            +   * Feature does not support any per-Membership configuration, this field may
            +   * be unused.
                *
                * The keys indicate which Membership the configuration is for, in the form:
                *
            -   * projects/{p}/locations/{l}/memberships/{m}
            +   * `projects/{p}/locations/{l}/memberships/{m}`
                *
                * Where {p} is the project, {l} is a valid location and {m} is a valid
                * Membership in this project at that location. {p} WILL match the Feature's
            @@ -303,12 +306,13 @@ java.lang.String getLabelsOrDefault(
                *
                *
                * 
            -   * Optional. Membership-specific configuration for this Feature. If this Feature does
            -   * not support any per-Membership configuration, this field may be unused.
            +   * Optional. Membership-specific configuration for this Feature. If this
            +   * Feature does not support any per-Membership configuration, this field may
            +   * be unused.
                *
                * The keys indicate which Membership the configuration is for, in the form:
                *
            -   * projects/{p}/locations/{l}/memberships/{m}
            +   * `projects/{p}/locations/{l}/memberships/{m}`
                *
                * Where {p} is the project, {l} is a valid location and {m} is a valid
                * Membership in this project at that location. {p} WILL match the Feature's
            @@ -336,12 +340,13 @@ com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrDefault(
                *
                *
                * 
            -   * Optional. Membership-specific configuration for this Feature. If this Feature does
            -   * not support any per-Membership configuration, this field may be unused.
            +   * Optional. Membership-specific configuration for this Feature. If this
            +   * Feature does not support any per-Membership configuration, this field may
            +   * be unused.
                *
                * The keys indicate which Membership the configuration is for, in the form:
                *
            -   * projects/{p}/locations/{l}/memberships/{m}
            +   * `projects/{p}/locations/{l}/memberships/{m}`
                *
                * Where {p} is the project, {l} is a valid location and {m} is a valid
                * Membership in this project at that location. {p} WILL match the Feature's
            @@ -365,7 +370,7 @@ com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrDefault(
                *
                *
                * 
            -   * Output only. The Hub-wide Feature state.
            +   * Output only. The Fleet-wide Feature state.
                * 
            * * @@ -380,7 +385,7 @@ com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrDefault( * * *
            -   * Output only. The Hub-wide Feature state.
            +   * Output only. The Fleet-wide Feature state.
                * 
            * * @@ -395,7 +400,7 @@ com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrDefault( * * *
            -   * Output only. The Hub-wide Feature state.
            +   * Output only. The Fleet-wide Feature state.
                * 
            * * @@ -413,7 +418,7 @@ com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrDefault( * * The keys indicate which Membership the state is for, in the form: * - * projects/{p}/locations/{l}/memberships/{m} + * `projects/{p}/locations/{l}/memberships/{m}` * * Where {p} is the project number, {l} is a valid location and {m} is a valid * Membership in this project at that location. {p} MUST match the Feature's @@ -435,7 +440,7 @@ com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrDefault( * * The keys indicate which Membership the state is for, in the form: * - * projects/{p}/locations/{l}/memberships/{m} + * `projects/{p}/locations/{l}/memberships/{m}` * * Where {p} is the project number, {l} is a valid location and {m} is a valid * Membership in this project at that location. {p} MUST match the Feature's @@ -462,7 +467,7 @@ com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrDefault( * * The keys indicate which Membership the state is for, in the form: * - * projects/{p}/locations/{l}/memberships/{m} + * `projects/{p}/locations/{l}/memberships/{m}` * * Where {p} is the project number, {l} is a valid location and {m} is a valid * Membership in this project at that location. {p} MUST match the Feature's @@ -485,7 +490,7 @@ com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrDefault( * * The keys indicate which Membership the state is for, in the form: * - * projects/{p}/locations/{l}/memberships/{m} + * `projects/{p}/locations/{l}/memberships/{m}` * * Where {p} is the project number, {l} is a valid location and {m} is a valid * Membership in this project at that location. {p} MUST match the Feature's @@ -511,7 +516,7 @@ com.google.cloud.gkehub.v1.MembershipFeatureState getMembershipStatesOrDefault( * * The keys indicate which Membership the state is for, in the form: * - * projects/{p}/locations/{l}/memberships/{m} + * `projects/{p}/locations/{l}/memberships/{m}` * * Where {p} is the project number, {l} is a valid location and {m} is a valid * Membership in this project at that location. {p} MUST match the Feature's @@ -644,4 +649,323 @@ com.google.cloud.gkehub.v1.MembershipFeatureState getMembershipStatesOrThrow( * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); + + /** + * + * + *
            +   * Optional. Scope-specific configuration for this Feature. If this Feature
            +   * does not support any per-Scope configuration, this field may be unused.
            +   *
            +   * The keys indicate which Scope the configuration is for, in the form:
            +   *
            +   * `projects/{p}/locations/global/scopes/{s}`
            +   *
            +   * Where {p} is the project, {s} is a valid Scope in this project.
            +   * {p} WILL match the Feature's project.
            +   *
            +   * {p} will always be returned as the project number, but the project ID is
            +   * also accepted during input. If the same Scope is specified in the map
            +   * twice (using the project ID form, and the project number form), exactly
            +   * ONE of the entries will be saved, with no guarantees as to which. For this
            +   * reason, it is recommended the same format be used for all entries when
            +   * mutating a Feature.
            +   * 
            + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureSpec> scope_specs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getScopeSpecsCount(); + + /** + * + * + *
            +   * Optional. Scope-specific configuration for this Feature. If this Feature
            +   * does not support any per-Scope configuration, this field may be unused.
            +   *
            +   * The keys indicate which Scope the configuration is for, in the form:
            +   *
            +   * `projects/{p}/locations/global/scopes/{s}`
            +   *
            +   * Where {p} is the project, {s} is a valid Scope in this project.
            +   * {p} WILL match the Feature's project.
            +   *
            +   * {p} will always be returned as the project number, but the project ID is
            +   * also accepted during input. If the same Scope is specified in the map
            +   * twice (using the project ID form, and the project number form), exactly
            +   * ONE of the entries will be saved, with no guarantees as to which. For this
            +   * reason, it is recommended the same format be used for all entries when
            +   * mutating a Feature.
            +   * 
            + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureSpec> scope_specs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsScopeSpecs(java.lang.String key); + + /** Use {@link #getScopeSpecsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getScopeSpecs(); + + /** + * + * + *
            +   * Optional. Scope-specific configuration for this Feature. If this Feature
            +   * does not support any per-Scope configuration, this field may be unused.
            +   *
            +   * The keys indicate which Scope the configuration is for, in the form:
            +   *
            +   * `projects/{p}/locations/global/scopes/{s}`
            +   *
            +   * Where {p} is the project, {s} is a valid Scope in this project.
            +   * {p} WILL match the Feature's project.
            +   *
            +   * {p} will always be returned as the project number, but the project ID is
            +   * also accepted during input. If the same Scope is specified in the map
            +   * twice (using the project ID form, and the project number form), exactly
            +   * ONE of the entries will be saved, with no guarantees as to which. For this
            +   * reason, it is recommended the same format be used for all entries when
            +   * mutating a Feature.
            +   * 
            + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureSpec> scope_specs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getScopeSpecsMap(); + + /** + * + * + *
            +   * Optional. Scope-specific configuration for this Feature. If this Feature
            +   * does not support any per-Scope configuration, this field may be unused.
            +   *
            +   * The keys indicate which Scope the configuration is for, in the form:
            +   *
            +   * `projects/{p}/locations/global/scopes/{s}`
            +   *
            +   * Where {p} is the project, {s} is a valid Scope in this project.
            +   * {p} WILL match the Feature's project.
            +   *
            +   * {p} will always be returned as the project number, but the project ID is
            +   * also accepted during input. If the same Scope is specified in the map
            +   * twice (using the project ID form, and the project number form), exactly
            +   * ONE of the entries will be saved, with no guarantees as to which. For this
            +   * reason, it is recommended the same format be used for all entries when
            +   * mutating a Feature.
            +   * 
            + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureSpec> scope_specs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + com.google.cloud.gkehub.v1.ScopeFeatureSpec getScopeSpecsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.gkehub.v1.ScopeFeatureSpec defaultValue); + + /** + * + * + *
            +   * Optional. Scope-specific configuration for this Feature. If this Feature
            +   * does not support any per-Scope configuration, this field may be unused.
            +   *
            +   * The keys indicate which Scope the configuration is for, in the form:
            +   *
            +   * `projects/{p}/locations/global/scopes/{s}`
            +   *
            +   * Where {p} is the project, {s} is a valid Scope in this project.
            +   * {p} WILL match the Feature's project.
            +   *
            +   * {p} will always be returned as the project number, but the project ID is
            +   * also accepted during input. If the same Scope is specified in the map
            +   * twice (using the project ID form, and the project number form), exactly
            +   * ONE of the entries will be saved, with no guarantees as to which. For this
            +   * reason, it is recommended the same format be used for all entries when
            +   * mutating a Feature.
            +   * 
            + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureSpec> scope_specs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gkehub.v1.ScopeFeatureSpec getScopeSpecsOrThrow(java.lang.String key); + + /** + * + * + *
            +   * Output only. Scope-specific Feature status. If this Feature does
            +   * report any per-Scope status, this field may be unused.
            +   *
            +   * The keys indicate which Scope the state is for, in the form:
            +   *
            +   * `projects/{p}/locations/global/scopes/{s}`
            +   *
            +   * Where {p} is the project, {s} is a valid Scope in this project.
            +   * {p} WILL match the Feature's project.
            +   * 
            + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getScopeStatesCount(); + + /** + * + * + *
            +   * Output only. Scope-specific Feature status. If this Feature does
            +   * report any per-Scope status, this field may be unused.
            +   *
            +   * The keys indicate which Scope the state is for, in the form:
            +   *
            +   * `projects/{p}/locations/global/scopes/{s}`
            +   *
            +   * Where {p} is the project, {s} is a valid Scope in this project.
            +   * {p} WILL match the Feature's project.
            +   * 
            + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean containsScopeStates(java.lang.String key); + + /** Use {@link #getScopeStatesMap()} instead. */ + @java.lang.Deprecated + java.util.Map getScopeStates(); + + /** + * + * + *
            +   * Output only. Scope-specific Feature status. If this Feature does
            +   * report any per-Scope status, this field may be unused.
            +   *
            +   * The keys indicate which Scope the state is for, in the form:
            +   *
            +   * `projects/{p}/locations/global/scopes/{s}`
            +   *
            +   * Where {p} is the project, {s} is a valid Scope in this project.
            +   * {p} WILL match the Feature's project.
            +   * 
            + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map getScopeStatesMap(); + + /** + * + * + *
            +   * Output only. Scope-specific Feature status. If this Feature does
            +   * report any per-Scope status, this field may be unused.
            +   *
            +   * The keys indicate which Scope the state is for, in the form:
            +   *
            +   * `projects/{p}/locations/global/scopes/{s}`
            +   *
            +   * Where {p} is the project, {s} is a valid Scope in this project.
            +   * {p} WILL match the Feature's project.
            +   * 
            + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + /* nullable */ + com.google.cloud.gkehub.v1.ScopeFeatureState getScopeStatesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.gkehub.v1.ScopeFeatureState defaultValue); + + /** + * + * + *
            +   * Output only. Scope-specific Feature status. If this Feature does
            +   * report any per-Scope status, this field may be unused.
            +   *
            +   * The keys indicate which Scope the state is for, in the form:
            +   *
            +   * `projects/{p}/locations/global/scopes/{s}`
            +   *
            +   * Where {p} is the project, {s} is a valid Scope in this project.
            +   * {p} WILL match the Feature's project.
            +   * 
            + * + * + * map<string, .google.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkehub.v1.ScopeFeatureState getScopeStatesOrThrow(java.lang.String key); + + /** + * + * + *
            +   * Output only. List of locations that could not be reached while fetching
            +   * this feature.
            +   * 
            + * + * repeated string unreachable = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
            +   * Output only. List of locations that could not be reached while fetching
            +   * this feature.
            +   * 
            + * + * repeated string unreachable = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
            +   * Output only. List of locations that could not be reached while fetching
            +   * this feature.
            +   * 
            + * + * repeated string unreachable = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
            +   * Output only. List of locations that could not be reached while fetching
            +   * this feature.
            +   * 
            + * + * repeated string unreachable = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureProto.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureProto.java index 443c7d329f98..8f9b70115f30 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureProto.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureProto.java @@ -56,6 +56,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_gkehub_v1_Feature_MembershipStatesEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_gkehub_v1_Feature_MembershipStatesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_Feature_ScopeSpecsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_Feature_ScopeSpecsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_Feature_ScopeStatesEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_Feature_ScopeStatesEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_gkehub_v1_FeatureResourceState_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -72,6 +80,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_gkehub_v1_CommonFeatureState_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_gkehub_v1_CommonFeatureState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ScopeFeatureSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ScopeFeatureSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ScopeFeatureState_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ScopeFeatureState_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -94,8 +110,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "google.cloud.gkehub.v1\032\037google/api/field" + "_behavior.proto\032\031google/api/resource.pro" + "to\032>google/cloud/gkehub/v1/configmanagement/configmanagement.proto\032Dgoogle/cloud" - + "/gkehub/v1/multiclusteringress/multiclus" - + "teringress.proto\032\037google/protobuf/timestamp.proto\"\317\007\n" + + "/gkehub/v1/multiclusteringress/multiclusteringress.proto\032Ngoogle/cloud/gkehub/v1" + + "/rbacrolebindingactuation/rbacrolebindin" + + "gactuation.proto\032\037google/protobuf/timestamp.proto\"\275\n\n" + "\007Feature\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022;\n" + "\006labels\030\002 \003(\0132+.google.cloud.gkehub.v1.Feature.LabelsEntry\022I\n" @@ -112,20 +129,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013create_time\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013delete_time\030\n" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032-\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022I\n" + + "\013scope_specs\030\014" + + " \003(\0132/.google.cloud.gkehub.v1.Feature.ScopeSpecsEntryB\003\340A\001\022K\n" + + "\014scope_states\030\r" + + " \003(\01320.google.cloud.gkehub.v1.Feature.ScopeStatesEntryB\003\340A\003\022\030\n" + + "\013unreachable\030\017 \003(\tB\003\340A\003\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\032e\n" + "\024MembershipSpecsEntry\022\013\n" + "\003key\030\001 \001(\t\022<\n" - + "\005value\030\002" - + " \001(\0132-.google.cloud.gkehub.v1.MembershipFeatureSpec:\0028\001\032g\n" + + "\005value\030\002 \001(\0132-.goog" + + "le.cloud.gkehub.v1.MembershipFeatureSpec:\0028\001\032g\n" + "\025MembershipStatesEntry\022\013\n" + "\003key\030\001 \001(\t\022=\n" - + "\005value\030\002 \001(\0132" - + "..google.cloud.gkehub.v1.MembershipFeatureState:\0028\001:^\352A[\n" - + "\035gkehub.googleapis.com/" - + "Feature\022:projects/{project}/locations/{location}/features/{feature}\"\306\001\n" + + "\005value\030\002" + + " \001(\0132..google.cloud.gkehub.v1.MembershipFeatureState:\0028\001\032[\n" + + "\017ScopeSpecsEntry\022\013\n" + + "\003key\030\001 \001(\t\0227\n" + + "\005value\030\002 \001(\0132(.google.cloud.gkehub.v1.ScopeFeatureSpec:\0028\001\032]\n" + + "\020ScopeStatesEntry\022\013\n" + + "\003key\030\001 \001(\t\0228\n" + + "\005value\030\002" + + " \001(\0132).google.cloud.gkehub.v1.ScopeFeatureState:\0028\001:^\352A[\n" + + "\035gkehub.googleapi" + + "s.com/Feature\022:projects/{project}/locations/{location}/features/{feature}\"\306\001\n" + "\024FeatureResourceState\022A\n" + "\005state\030\001 \001(\01622.google.cloud.gkehub.v1.FeatureResourceState.State\"k\n" + "\005State\022\025\n" @@ -147,22 +176,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021CommonFeatureSpec\022V\n" + "\023multiclusteringress\030f" + " \001(\01327.google.cloud.gkehub.multiclusteringress.v1.FeatureSpecH\000B\016\n" - + "\014feature_spec\"N\n" - + "\022CommonFeatureState\0228\n" + + "\014feature_spec\"\302\001\n" + + "\022CommonFeatureState\022a\n" + + "\030rbacrolebindingactuation\030x \001(\0132=.google.cloud.gk" + + "ehub.rbacrolebindingactuation.v1.FeatureStateH\000\0228\n" + + "\005state\030\001" + + " \001(\0132$.google.cloud.gkehub.v1.FeatureStateB\003\340A\003B\017\n\r" + + "feature_state\"\022\n" + + "\020ScopeFeatureSpec\"M\n" + + "\021ScopeFeatureState\0228\n" + "\005state\030\001 \001(\0132$.google.cloud.gkehub.v1.FeatureStateB\003\340A\003\"|\n" + "\025MembershipFeatureSpec\022S\n" - + "\020configmanagement\030j" - + " \001(\01327.google.cloud.gkehub.configmanagement.v1.MembershipSpecH\000B\016\n" + + "\020configmanagement\030j \001(\01327.googl" + + "e.cloud.gkehub.configmanagement.v1.MembershipSpecH\000B\016\n" + "\014feature_spec\"\264\001\n" + "\026MembershipFeatureState\022T\n" - + "\020configmanagement\030j \001(\01328.google.cloud.gkehub" - + ".configmanagement.v1.MembershipStateH\000\0223\n" + + "\020configmanagement\030j \001(\013" + + "28.google.cloud.gkehub.configmanagement.v1.MembershipStateH\000\0223\n" + "\005state\030\001 \001(\0132$.google.cloud.gkehub.v1.FeatureStateB\017\n\r" + "feature_stateB\256\001\n" - + "\032com.google.cloud.gkehub.v1B\014FeatureProtoP\001Z2clo" - + "ud.google.com/go/gkehub/apiv1/gkehubpb;g" - + "kehubpb\252\002\026Google.Cloud.GkeHub.V1\312\002\026Googl" - + "e\\Cloud\\GkeHub\\V1\352\002\031Google::Cloud::GkeHub::V1b\006proto3" + + "\032com.google.cloud.gkehub.v1B\014FeatureProtoP\001Z2cloud.google.com/go/g" + + "kehub/apiv1/gkehubpb;gkehubpb\252\002\026Google.C" + + "loud.GkeHub.V1\312\002\026Google\\Cloud\\GkeHub\\V1\352" + + "\002\031Google::Cloud::GkeHub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -173,6 +209,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.getDescriptor(), com.google.cloud.gkehub.multiclusteringress.v1.MultiClusterIngressProto .getDescriptor(), + com.google.cloud.gkehub.rbacrolebindingactuation.v1.RBACRoleBindingActuationProto + .getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_gkehub_v1_Feature_descriptor = getDescriptor().getMessageType(0); @@ -190,6 +228,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "UpdateTime", "DeleteTime", + "ScopeSpecs", + "ScopeStates", + "Unreachable", }); internal_static_google_cloud_gkehub_v1_Feature_LabelsEntry_descriptor = internal_static_google_cloud_gkehub_v1_Feature_descriptor.getNestedType(0); @@ -215,6 +256,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_gkehub_v1_Feature_ScopeSpecsEntry_descriptor = + internal_static_google_cloud_gkehub_v1_Feature_descriptor.getNestedType(3); + internal_static_google_cloud_gkehub_v1_Feature_ScopeSpecsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_Feature_ScopeSpecsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gkehub_v1_Feature_ScopeStatesEntry_descriptor = + internal_static_google_cloud_gkehub_v1_Feature_descriptor.getNestedType(4); + internal_static_google_cloud_gkehub_v1_Feature_ScopeStatesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_Feature_ScopeStatesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_cloud_gkehub_v1_FeatureResourceState_descriptor = getDescriptor().getMessageType(1); internal_static_google_cloud_gkehub_v1_FeatureResourceState_fieldAccessorTable = @@ -244,11 +301,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_gkehub_v1_CommonFeatureState_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_CommonFeatureState_descriptor, + new java.lang.String[] { + "Rbacrolebindingactuation", "State", "FeatureState", + }); + internal_static_google_cloud_gkehub_v1_ScopeFeatureSpec_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_gkehub_v1_ScopeFeatureSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ScopeFeatureSpec_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_gkehub_v1_ScopeFeatureState_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_gkehub_v1_ScopeFeatureState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ScopeFeatureState_descriptor, new java.lang.String[] { "State", }); internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_descriptor = - getDescriptor().getMessageType(5); + getDescriptor().getMessageType(7); internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_descriptor, @@ -256,7 +327,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Configmanagement", "FeatureSpec", }); internal_static_google_cloud_gkehub_v1_MembershipFeatureState_descriptor = - getDescriptor().getMessageType(6); + getDescriptor().getMessageType(8); internal_static_google_cloud_gkehub_v1_MembershipFeatureState_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_MembershipFeatureState_descriptor, @@ -268,6 +339,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(); com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.getDescriptor(); com.google.cloud.gkehub.multiclusteringress.v1.MultiClusterIngressProto.getDescriptor(); + com.google.cloud.gkehub.rbacrolebindingactuation.v1.RBACRoleBindingActuationProto + .getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureResourceState.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureResourceState.java index 4714a5187e76..54a73fe19a06 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureResourceState.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureResourceState.java @@ -26,7 +26,7 @@ *
              * FeatureResourceState describes the state of a Feature *resource* in the
              * GkeHub API. See `FeatureState` for the "running state" of the Feature in the
            - * Hub and across Memberships.
            + * Fleet and across Memberships.
              * 
            * * Protobuf type {@code google.cloud.gkehub.v1.FeatureResourceState} @@ -97,7 +97,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * *
                  * The Feature is being enabled, and the Feature resource is being created.
            -     * Once complete, the corresponding Feature will be enabled in this Hub.
            +     * Once complete, the corresponding Feature will be enabled in this Fleet.
                  * 
            * * ENABLING = 1; @@ -107,7 +107,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * * *
            -     * The Feature is enabled in this Hub, and the Feature resource is fully
            +     * The Feature is enabled in this Fleet, and the Feature resource is fully
                  * available.
                  * 
            * @@ -118,7 +118,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * * *
            -     * The Feature is being disabled in this Hub, and the Feature resource
            +     * The Feature is being disabled in this Fleet, and the Feature resource
                  * is being deleted.
                  * 
            * @@ -174,7 +174,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * *
                  * The Feature is being enabled, and the Feature resource is being created.
            -     * Once complete, the corresponding Feature will be enabled in this Hub.
            +     * Once complete, the corresponding Feature will be enabled in this Fleet.
                  * 
            * * ENABLING = 1; @@ -185,7 +185,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * * *
            -     * The Feature is enabled in this Hub, and the Feature resource is fully
            +     * The Feature is enabled in this Fleet, and the Feature resource is fully
                  * available.
                  * 
            * @@ -197,7 +197,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * * *
            -     * The Feature is being disabled in this Hub, and the Feature resource
            +     * The Feature is being disabled in this Fleet, and the Feature resource
                  * is being deleted.
                  * 
            * @@ -523,7 +523,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder *
                * FeatureResourceState describes the state of a Feature *resource* in the
                * GkeHub API. See `FeatureState` for the "running state" of the Feature in the
            -   * Hub and across Memberships.
            +   * Fleet and across Memberships.
                * 
            * * Protobuf type {@code google.cloud.gkehub.v1.FeatureResourceState} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Fleet.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Fleet.java new file mode 100644 index 000000000000..bfe233ad3bcf --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Fleet.java @@ -0,0 +1,2920 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Fleet contains the Fleet-wide metadata and configuration.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.Fleet} + */ +@com.google.protobuf.Generated +public final class Fleet extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.Fleet) + FleetOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Fleet"); + } + + // Use Fleet.newBuilder() to construct. + private Fleet(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Fleet() { + name_ = ""; + displayName_ = ""; + uid_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Fleet_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 11: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Fleet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.Fleet.class, com.google.cloud.gkehub.v1.Fleet.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Output only. The full, unique resource name of this fleet in the format of
            +   * `projects/{project}/locations/{location}/fleets/{fleet}`.
            +   *
            +   * Each Google Cloud project can have at most one fleet resource, named
            +   * "default".
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. The full, unique resource name of this fleet in the format of
            +   * `projects/{project}/locations/{location}/fleets/{fleet}`.
            +   *
            +   * Each Google Cloud project can have at most one fleet resource, named
            +   * "default".
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
            +   * Optional. A user-assigned display name of the Fleet.
            +   * When present, it must be between 4 to 30 characters.
            +   * Allowed characters are: lowercase and uppercase letters, numbers,
            +   * hyphen, single-quote, double-quote, space, and exclamation point.
            +   *
            +   * Example: `Production Fleet`
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. A user-assigned display name of the Fleet.
            +   * When present, it must be between 4 to 30 characters.
            +   * Allowed characters are: lowercase and uppercase letters, numbers,
            +   * hyphen, single-quote, double-quote, space, and exclamation point.
            +   *
            +   * Example: `Production Fleet`
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +   * Output only. When the Fleet was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Output only. When the Fleet was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
            +   * Output only. When the Fleet was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
            +   * Output only. When the Fleet was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Output only. When the Fleet was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
            +   * Output only. When the Fleet was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int DELETE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp deleteTime_; + + /** + * + * + *
            +   * Output only. When the Fleet was deleted.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + @java.lang.Override + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * Output only. When the Fleet was deleted.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDeleteTime() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + + /** + * + * + *
            +   * Output only. When the Fleet was deleted.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + + public static final int UID_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + + /** + * + * + *
            +   * Output only. Google-generated UUID for this resource. This is unique across
            +   * all Fleet resources. If a Fleet resource is deleted and another resource
            +   * with the same name is created, it gets a different uid.
            +   * 
            + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. Google-generated UUID for this resource. This is unique across
            +   * all Fleet resources. If a Fleet resource is deleted and another resource
            +   * with the same name is created, it gets a different uid.
            +   * 
            + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 9; + private com.google.cloud.gkehub.v1.FleetLifecycleState state_; + + /** + * + * + *
            +   * Output only. State of the namespace resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + @java.lang.Override + public boolean hasState() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +   * Output only. State of the namespace resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.FleetLifecycleState getState() { + return state_ == null + ? com.google.cloud.gkehub.v1.FleetLifecycleState.getDefaultInstance() + : state_; + } + + /** + * + * + *
            +   * Output only. State of the namespace resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.FleetLifecycleStateOrBuilder getStateOrBuilder() { + return state_ == null + ? com.google.cloud.gkehub.v1.FleetLifecycleState.getDefaultInstance() + : state_; + } + + public static final int DEFAULT_CLUSTER_CONFIG_FIELD_NUMBER = 10; + private com.google.cloud.gkehub.v1.DefaultClusterConfig defaultClusterConfig_; + + /** + * + * + *
            +   * Optional. The default cluster configurations to apply across the fleet.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultClusterConfig field is set. + */ + @java.lang.Override + public boolean hasDefaultClusterConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +   * Optional. The default cluster configurations to apply across the fleet.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultClusterConfig. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.DefaultClusterConfig getDefaultClusterConfig() { + return defaultClusterConfig_ == null + ? com.google.cloud.gkehub.v1.DefaultClusterConfig.getDefaultInstance() + : defaultClusterConfig_; + } + + /** + * + * + *
            +   * Optional. The default cluster configurations to apply across the fleet.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.DefaultClusterConfigOrBuilder + getDefaultClusterConfigOrBuilder() { + return defaultClusterConfig_ == null + ? com.google.cloud.gkehub.v1.DefaultClusterConfig.getDefaultInstance() + : defaultClusterConfig_; + } + + public static final int LABELS_FIELD_NUMBER = 11; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Fleet_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
            +   * Optional. Labels for this Fleet.
            +   * 
            + * + * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
            +   * Optional. Labels for this Fleet.
            +   * 
            + * + * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
            +   * Optional. Labels for this Fleet.
            +   * 
            + * + * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +   * Optional. Labels for this Fleet.
            +   * 
            + * + * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getDeleteTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, uid_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(9, getState()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(10, getDefaultClusterConfig()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 11); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDeleteTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, uid_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getState()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, getDefaultClusterConfig()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, labels__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.Fleet)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.Fleet other = (com.google.cloud.gkehub.v1.Fleet) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (hasDeleteTime() != other.hasDeleteTime()) return false; + if (hasDeleteTime()) { + if (!getDeleteTime().equals(other.getDeleteTime())) return false; + } + if (!getUid().equals(other.getUid())) return false; + if (hasState() != other.hasState()) return false; + if (hasState()) { + if (!getState().equals(other.getState())) return false; + } + if (hasDefaultClusterConfig() != other.hasDefaultClusterConfig()) return false; + if (hasDefaultClusterConfig()) { + if (!getDefaultClusterConfig().equals(other.getDefaultClusterConfig())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasDeleteTime()) { + hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDeleteTime().hashCode(); + } + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + if (hasState()) { + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + getState().hashCode(); + } + if (hasDefaultClusterConfig()) { + hash = (37 * hash) + DEFAULT_CLUSTER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDefaultClusterConfig().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.Fleet parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.Fleet parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.Fleet parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.Fleet parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.Fleet parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.Fleet parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.Fleet parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.Fleet parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.Fleet parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.Fleet parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.Fleet parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.Fleet parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkehub.v1.Fleet prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Fleet contains the Fleet-wide metadata and configuration.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.Fleet} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.Fleet) + com.google.cloud.gkehub.v1.FleetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Fleet_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 11: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 11: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Fleet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.Fleet.class, + com.google.cloud.gkehub.v1.Fleet.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.Fleet.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetDeleteTimeFieldBuilder(); + internalGetStateFieldBuilder(); + internalGetDefaultClusterConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + uid_ = ""; + state_ = null; + if (stateBuilder_ != null) { + stateBuilder_.dispose(); + stateBuilder_ = null; + } + defaultClusterConfig_ = null; + if (defaultClusterConfigBuilder_ != null) { + defaultClusterConfigBuilder_.dispose(); + defaultClusterConfigBuilder_ = null; + } + internalGetMutableLabels().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Fleet_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.Fleet getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.Fleet.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.Fleet build() { + com.google.cloud.gkehub.v1.Fleet result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.Fleet buildPartial() { + com.google.cloud.gkehub.v1.Fleet result = new com.google.cloud.gkehub.v1.Fleet(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.Fleet result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.uid_ = uid_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.state_ = stateBuilder_ == null ? state_ : stateBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.defaultClusterConfig_ = + defaultClusterConfigBuilder_ == null + ? defaultClusterConfig_ + : defaultClusterConfigBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.Fleet) { + return mergeFrom((com.google.cloud.gkehub.v1.Fleet) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.Fleet other) { + if (other == com.google.cloud.gkehub.v1.Fleet.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasDeleteTime()) { + mergeDeleteTime(other.getDeleteTime()); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasState()) { + mergeState(other.getState()); + } + if (other.hasDefaultClusterConfig()) { + mergeDefaultClusterConfig(other.getDefaultClusterConfig()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000100; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 74: + { + input.readMessage(internalGetStateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 74 + case 82: + { + input.readMessage( + internalGetDefaultClusterConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 82 + case 90: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000100; + break; + } // case 90 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Output only. The full, unique resource name of this fleet in the format of
            +     * `projects/{project}/locations/{location}/fleets/{fleet}`.
            +     *
            +     * Each Google Cloud project can have at most one fleet resource, named
            +     * "default".
            +     * 
            + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. The full, unique resource name of this fleet in the format of
            +     * `projects/{project}/locations/{location}/fleets/{fleet}`.
            +     *
            +     * Each Google Cloud project can have at most one fleet resource, named
            +     * "default".
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. The full, unique resource name of this fleet in the format of
            +     * `projects/{project}/locations/{location}/fleets/{fleet}`.
            +     *
            +     * Each Google Cloud project can have at most one fleet resource, named
            +     * "default".
            +     * 
            + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The full, unique resource name of this fleet in the format of
            +     * `projects/{project}/locations/{location}/fleets/{fleet}`.
            +     *
            +     * Each Google Cloud project can have at most one fleet resource, named
            +     * "default".
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The full, unique resource name of this fleet in the format of
            +     * `projects/{project}/locations/{location}/fleets/{fleet}`.
            +     *
            +     * Each Google Cloud project can have at most one fleet resource, named
            +     * "default".
            +     * 
            + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
            +     * Optional. A user-assigned display name of the Fleet.
            +     * When present, it must be between 4 to 30 characters.
            +     * Allowed characters are: lowercase and uppercase letters, numbers,
            +     * hyphen, single-quote, double-quote, space, and exclamation point.
            +     *
            +     * Example: `Production Fleet`
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. A user-assigned display name of the Fleet.
            +     * When present, it must be between 4 to 30 characters.
            +     * Allowed characters are: lowercase and uppercase letters, numbers,
            +     * hyphen, single-quote, double-quote, space, and exclamation point.
            +     *
            +     * Example: `Production Fleet`
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. A user-assigned display name of the Fleet.
            +     * When present, it must be between 4 to 30 characters.
            +     * Allowed characters are: lowercase and uppercase letters, numbers,
            +     * hyphen, single-quote, double-quote, space, and exclamation point.
            +     *
            +     * Example: `Production Fleet`
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. A user-assigned display name of the Fleet.
            +     * When present, it must be between 4 to 30 characters.
            +     * Allowed characters are: lowercase and uppercase letters, numbers,
            +     * hyphen, single-quote, double-quote, space, and exclamation point.
            +     *
            +     * Example: `Production Fleet`
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. A user-assigned display name of the Fleet.
            +     * When present, it must be between 4 to 30 characters.
            +     * Allowed characters are: lowercase and uppercase letters, numbers,
            +     * hyphen, single-quote, double-quote, space, and exclamation point.
            +     *
            +     * Example: `Production Fleet`
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
            +     * Output only. When the Fleet was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Output only. When the Fleet was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. When the Fleet was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the Fleet was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the Fleet was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. When the Fleet was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the Fleet was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. When the Fleet was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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_; + } + } + + /** + * + * + *
            +     * Output only. When the Fleet was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
            +     * Output only. When the Fleet was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +     * Output only. When the Fleet was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.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_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. When the Fleet was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the Fleet was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the Fleet was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. When the Fleet was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the Fleet was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. When the Fleet was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.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_; + } + } + + /** + * + * + *
            +     * Output only. When the Fleet was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.Timestamp deleteTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; + + /** + * + * + *
            +     * Output only. When the Fleet was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +     * Output only. When the Fleet was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + public com.google.protobuf.Timestamp getDeleteTime() { + if (deleteTimeBuilder_ == null) { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } else { + return deleteTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. When the Fleet was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deleteTime_ = value; + } else { + deleteTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the Fleet was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (deleteTimeBuilder_ == null) { + deleteTime_ = builderForValue.build(); + } else { + deleteTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the Fleet was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getDeleteTimeBuilder().mergeFrom(value); + } else { + deleteTime_ = value; + } + } else { + deleteTimeBuilder_.mergeFrom(value); + } + if (deleteTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. When the Fleet was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDeleteTime() { + bitField0_ = (bitField0_ & ~0x00000010); + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the Fleet was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetDeleteTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. When the Fleet was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + if (deleteTimeBuilder_ != null) { + return deleteTimeBuilder_.getMessageOrBuilder(); + } else { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } + } + + /** + * + * + *
            +     * Output only. When the Fleet was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetDeleteTimeFieldBuilder() { + if (deleteTimeBuilder_ == null) { + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); + deleteTime_ = null; + } + return deleteTimeBuilder_; + } + + private java.lang.Object uid_ = ""; + + /** + * + * + *
            +     * Output only. Google-generated UUID for this resource. This is unique across
            +     * all Fleet resources. If a Fleet resource is deleted and another resource
            +     * with the same name is created, it gets a different uid.
            +     * 
            + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. Google-generated UUID for this resource. This is unique across
            +     * all Fleet resources. If a Fleet resource is deleted and another resource
            +     * with the same name is created, it gets a different uid.
            +     * 
            + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. Google-generated UUID for this resource. This is unique across
            +     * all Fleet resources. If a Fleet resource is deleted and another resource
            +     * with the same name is created, it gets a different uid.
            +     * 
            + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Google-generated UUID for this resource. This is unique across
            +     * all Fleet resources. If a Fleet resource is deleted and another resource
            +     * with the same name is created, it gets a different uid.
            +     * 
            + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Google-generated UUID for this resource. This is unique across
            +     * all Fleet resources. If a Fleet resource is deleted and another resource
            +     * with the same name is created, it gets a different uid.
            +     * 
            + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.cloud.gkehub.v1.FleetLifecycleState state_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.FleetLifecycleState, + com.google.cloud.gkehub.v1.FleetLifecycleState.Builder, + com.google.cloud.gkehub.v1.FleetLifecycleStateOrBuilder> + stateBuilder_; + + /** + * + * + *
            +     * Output only. State of the namespace resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + public boolean hasState() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
            +     * Output only. State of the namespace resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + public com.google.cloud.gkehub.v1.FleetLifecycleState getState() { + if (stateBuilder_ == null) { + return state_ == null + ? com.google.cloud.gkehub.v1.FleetLifecycleState.getDefaultInstance() + : state_; + } else { + return stateBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. State of the namespace resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setState(com.google.cloud.gkehub.v1.FleetLifecycleState value) { + if (stateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + state_ = value; + } else { + stateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. State of the namespace resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setState( + com.google.cloud.gkehub.v1.FleetLifecycleState.Builder builderForValue) { + if (stateBuilder_ == null) { + state_ = builderForValue.build(); + } else { + stateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. State of the namespace resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeState(com.google.cloud.gkehub.v1.FleetLifecycleState value) { + if (stateBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && state_ != null + && state_ != com.google.cloud.gkehub.v1.FleetLifecycleState.getDefaultInstance()) { + getStateBuilder().mergeFrom(value); + } else { + state_ = value; + } + } else { + stateBuilder_.mergeFrom(value); + } + if (state_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. State of the namespace resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000040); + state_ = null; + if (stateBuilder_ != null) { + stateBuilder_.dispose(); + stateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. State of the namespace resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.v1.FleetLifecycleState.Builder getStateBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetStateFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. State of the namespace resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.v1.FleetLifecycleStateOrBuilder getStateOrBuilder() { + if (stateBuilder_ != null) { + return stateBuilder_.getMessageOrBuilder(); + } else { + return state_ == null + ? com.google.cloud.gkehub.v1.FleetLifecycleState.getDefaultInstance() + : state_; + } + } + + /** + * + * + *
            +     * Output only. State of the namespace resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.FleetLifecycleState, + com.google.cloud.gkehub.v1.FleetLifecycleState.Builder, + com.google.cloud.gkehub.v1.FleetLifecycleStateOrBuilder> + internalGetStateFieldBuilder() { + if (stateBuilder_ == null) { + stateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.FleetLifecycleState, + com.google.cloud.gkehub.v1.FleetLifecycleState.Builder, + com.google.cloud.gkehub.v1.FleetLifecycleStateOrBuilder>( + getState(), getParentForChildren(), isClean()); + state_ = null; + } + return stateBuilder_; + } + + private com.google.cloud.gkehub.v1.DefaultClusterConfig defaultClusterConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.DefaultClusterConfig, + com.google.cloud.gkehub.v1.DefaultClusterConfig.Builder, + com.google.cloud.gkehub.v1.DefaultClusterConfigOrBuilder> + defaultClusterConfigBuilder_; + + /** + * + * + *
            +     * Optional. The default cluster configurations to apply across the fleet.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultClusterConfig field is set. + */ + public boolean hasDefaultClusterConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
            +     * Optional. The default cluster configurations to apply across the fleet.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultClusterConfig. + */ + public com.google.cloud.gkehub.v1.DefaultClusterConfig getDefaultClusterConfig() { + if (defaultClusterConfigBuilder_ == null) { + return defaultClusterConfig_ == null + ? com.google.cloud.gkehub.v1.DefaultClusterConfig.getDefaultInstance() + : defaultClusterConfig_; + } else { + return defaultClusterConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. The default cluster configurations to apply across the fleet.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDefaultClusterConfig(com.google.cloud.gkehub.v1.DefaultClusterConfig value) { + if (defaultClusterConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultClusterConfig_ = value; + } else { + defaultClusterConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The default cluster configurations to apply across the fleet.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDefaultClusterConfig( + com.google.cloud.gkehub.v1.DefaultClusterConfig.Builder builderForValue) { + if (defaultClusterConfigBuilder_ == null) { + defaultClusterConfig_ = builderForValue.build(); + } else { + defaultClusterConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The default cluster configurations to apply across the fleet.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDefaultClusterConfig( + com.google.cloud.gkehub.v1.DefaultClusterConfig value) { + if (defaultClusterConfigBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && defaultClusterConfig_ != null + && defaultClusterConfig_ + != com.google.cloud.gkehub.v1.DefaultClusterConfig.getDefaultInstance()) { + getDefaultClusterConfigBuilder().mergeFrom(value); + } else { + defaultClusterConfig_ = value; + } + } else { + defaultClusterConfigBuilder_.mergeFrom(value); + } + if (defaultClusterConfig_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. The default cluster configurations to apply across the fleet.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDefaultClusterConfig() { + bitField0_ = (bitField0_ & ~0x00000080); + defaultClusterConfig_ = null; + if (defaultClusterConfigBuilder_ != null) { + defaultClusterConfigBuilder_.dispose(); + defaultClusterConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The default cluster configurations to apply across the fleet.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkehub.v1.DefaultClusterConfig.Builder + getDefaultClusterConfigBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetDefaultClusterConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. The default cluster configurations to apply across the fleet.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkehub.v1.DefaultClusterConfigOrBuilder + getDefaultClusterConfigOrBuilder() { + if (defaultClusterConfigBuilder_ != null) { + return defaultClusterConfigBuilder_.getMessageOrBuilder(); + } else { + return defaultClusterConfig_ == null + ? com.google.cloud.gkehub.v1.DefaultClusterConfig.getDefaultInstance() + : defaultClusterConfig_; + } + } + + /** + * + * + *
            +     * Optional. The default cluster configurations to apply across the fleet.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.DefaultClusterConfig, + com.google.cloud.gkehub.v1.DefaultClusterConfig.Builder, + com.google.cloud.gkehub.v1.DefaultClusterConfigOrBuilder> + internalGetDefaultClusterConfigFieldBuilder() { + if (defaultClusterConfigBuilder_ == null) { + defaultClusterConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.DefaultClusterConfig, + com.google.cloud.gkehub.v1.DefaultClusterConfig.Builder, + com.google.cloud.gkehub.v1.DefaultClusterConfigOrBuilder>( + getDefaultClusterConfig(), getParentForChildren(), isClean()); + defaultClusterConfig_ = null; + } + return defaultClusterConfigBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000100; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
            +     * Optional. Labels for this Fleet.
            +     * 
            + * + * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
            +     * Optional. Labels for this Fleet.
            +     * 
            + * + * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
            +     * Optional. Labels for this Fleet.
            +     * 
            + * + * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +     * Optional. Labels for this Fleet.
            +     * 
            + * + * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000100); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
            +     * Optional. Labels for this Fleet.
            +     * 
            + * + * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000100; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
            +     * Optional. Labels for this Fleet.
            +     * 
            + * + * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000100; + return this; + } + + /** + * + * + *
            +     * Optional. Labels for this Fleet.
            +     * 
            + * + * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000100; + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.Fleet) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.Fleet) + private static final com.google.cloud.gkehub.v1.Fleet DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.Fleet(); + } + + public static com.google.cloud.gkehub.v1.Fleet getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Fleet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.Fleet getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetLifecycleState.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetLifecycleState.java new file mode 100644 index 000000000000..ec2762128fbd --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetLifecycleState.java @@ -0,0 +1,794 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * FleetLifecycleState describes the state of a Fleet resource.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.FleetLifecycleState} + */ +@com.google.protobuf.Generated +public final class FleetLifecycleState extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.FleetLifecycleState) + FleetLifecycleStateOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FleetLifecycleState"); + } + + // Use FleetLifecycleState.newBuilder() to construct. + private FleetLifecycleState(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FleetLifecycleState() { + code_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_FleetLifecycleState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_FleetLifecycleState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.FleetLifecycleState.class, + com.google.cloud.gkehub.v1.FleetLifecycleState.Builder.class); + } + + /** + * + * + *
            +   * Code describes the state of a Fleet resource.
            +   * 
            + * + * Protobuf enum {@code google.cloud.gkehub.v1.FleetLifecycleState.Code} + */ + public enum Code implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * The code is not set.
            +     * 
            + * + * CODE_UNSPECIFIED = 0; + */ + CODE_UNSPECIFIED(0), + /** + * + * + *
            +     * The fleet is being created.
            +     * 
            + * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
            +     * The fleet active.
            +     * 
            + * + * READY = 2; + */ + READY(2), + /** + * + * + *
            +     * The fleet is being deleted.
            +     * 
            + * + * DELETING = 3; + */ + DELETING(3), + /** + * + * + *
            +     * The fleet is being updated.
            +     * 
            + * + * UPDATING = 4; + */ + UPDATING(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Code"); + } + + /** + * + * + *
            +     * The code is not set.
            +     * 
            + * + * CODE_UNSPECIFIED = 0; + */ + public static final int CODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * The fleet is being created.
            +     * 
            + * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + + /** + * + * + *
            +     * The fleet active.
            +     * 
            + * + * READY = 2; + */ + public static final int READY_VALUE = 2; + + /** + * + * + *
            +     * The fleet is being deleted.
            +     * 
            + * + * DELETING = 3; + */ + public static final int DELETING_VALUE = 3; + + /** + * + * + *
            +     * The fleet is being updated.
            +     * 
            + * + * UPDATING = 4; + */ + public static final int UPDATING_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Code valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Code forNumber(int value) { + switch (value) { + case 0: + return CODE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return READY; + case 3: + return DELETING; + case 4: + return UPDATING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Code findValueByNumber(int number) { + return Code.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetLifecycleState.getDescriptor().getEnumTypes().get(0); + } + + private static final Code[] VALUES = values(); + + public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Code(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.v1.FleetLifecycleState.Code) + } + + public static final int CODE_FIELD_NUMBER = 1; + private int code_ = 0; + + /** + * + * + *
            +   * Output only. The current state of the Fleet resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + @java.lang.Override + public int getCodeValue() { + return code_; + } + + /** + * + * + *
            +   * Output only. The current state of the Fleet resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.FleetLifecycleState.Code getCode() { + com.google.cloud.gkehub.v1.FleetLifecycleState.Code result = + com.google.cloud.gkehub.v1.FleetLifecycleState.Code.forNumber(code_); + return result == null + ? com.google.cloud.gkehub.v1.FleetLifecycleState.Code.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (code_ != com.google.cloud.gkehub.v1.FleetLifecycleState.Code.CODE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, code_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (code_ != com.google.cloud.gkehub.v1.FleetLifecycleState.Code.CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.FleetLifecycleState)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.FleetLifecycleState other = + (com.google.cloud.gkehub.v1.FleetLifecycleState) obj; + + if (code_ != other.code_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + code_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.FleetLifecycleState parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.FleetLifecycleState parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.FleetLifecycleState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.FleetLifecycleState parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.FleetLifecycleState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.FleetLifecycleState parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.FleetLifecycleState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.FleetLifecycleState parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.FleetLifecycleState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.FleetLifecycleState parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.FleetLifecycleState parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.FleetLifecycleState parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkehub.v1.FleetLifecycleState prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * FleetLifecycleState describes the state of a Fleet resource.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.FleetLifecycleState} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.FleetLifecycleState) + com.google.cloud.gkehub.v1.FleetLifecycleStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_FleetLifecycleState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_FleetLifecycleState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.FleetLifecycleState.class, + com.google.cloud.gkehub.v1.FleetLifecycleState.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.FleetLifecycleState.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + code_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_FleetLifecycleState_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.FleetLifecycleState getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.FleetLifecycleState.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.FleetLifecycleState build() { + com.google.cloud.gkehub.v1.FleetLifecycleState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.FleetLifecycleState buildPartial() { + com.google.cloud.gkehub.v1.FleetLifecycleState result = + new com.google.cloud.gkehub.v1.FleetLifecycleState(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.FleetLifecycleState result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.code_ = code_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.FleetLifecycleState) { + return mergeFrom((com.google.cloud.gkehub.v1.FleetLifecycleState) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.FleetLifecycleState other) { + if (other == com.google.cloud.gkehub.v1.FleetLifecycleState.getDefaultInstance()) return this; + if (other.code_ != 0) { + setCodeValue(other.getCodeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + code_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int code_ = 0; + + /** + * + * + *
            +     * Output only. The current state of the Fleet resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + @java.lang.Override + public int getCodeValue() { + return code_; + } + + /** + * + * + *
            +     * Output only. The current state of the Fleet resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for code to set. + * @return This builder for chaining. + */ + public Builder setCodeValue(int value) { + code_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The current state of the Fleet resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.FleetLifecycleState.Code getCode() { + com.google.cloud.gkehub.v1.FleetLifecycleState.Code result = + com.google.cloud.gkehub.v1.FleetLifecycleState.Code.forNumber(code_); + return result == null + ? com.google.cloud.gkehub.v1.FleetLifecycleState.Code.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Output only. The current state of the Fleet resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The code to set. + * @return This builder for chaining. + */ + public Builder setCode(com.google.cloud.gkehub.v1.FleetLifecycleState.Code value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + code_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The current state of the Fleet resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCode() { + bitField0_ = (bitField0_ & ~0x00000001); + code_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.FleetLifecycleState) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.FleetLifecycleState) + private static final com.google.cloud.gkehub.v1.FleetLifecycleState DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.FleetLifecycleState(); + } + + public static com.google.cloud.gkehub.v1.FleetLifecycleState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FleetLifecycleState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.FleetLifecycleState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetLifecycleStateOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetLifecycleStateOrBuilder.java new file mode 100644 index 000000000000..65b7a7972550 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetLifecycleStateOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface FleetLifecycleStateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.FleetLifecycleState) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Output only. The current state of the Fleet resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + int getCodeValue(); + + /** + * + * + *
            +   * Output only. The current state of the Fleet resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + com.google.cloud.gkehub.v1.FleetLifecycleState.Code getCode(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetName.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetName.java new file mode 100644 index 000000000000..f47a82a2f136 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetName.java @@ -0,0 +1,345 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class FleetName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_FLEET = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/fleets/{fleet}"); + private static final PathTemplate ORGANIZATION_LOCATION_FLEET = + PathTemplate.createWithoutUrlEncoding( + "organizations/{organization}/locations/{location}/fleets/{fleet}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String project; + private final String location; + private final String fleet; + private final String organization; + + @Deprecated + protected FleetName() { + project = null; + location = null; + fleet = null; + organization = null; + } + + private FleetName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + fleet = Preconditions.checkNotNull(builder.getFleet()); + organization = null; + pathTemplate = PROJECT_LOCATION_FLEET; + } + + private FleetName(OrganizationLocationFleetBuilder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + location = Preconditions.checkNotNull(builder.getLocation()); + fleet = Preconditions.checkNotNull(builder.getFleet()); + project = null; + pathTemplate = ORGANIZATION_LOCATION_FLEET; + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFleet() { + return fleet; + } + + public String getOrganization() { + return organization; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public static Builder newProjectLocationFleetBuilder() { + return new Builder(); + } + + public static OrganizationLocationFleetBuilder newOrganizationLocationFleetBuilder() { + return new OrganizationLocationFleetBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static FleetName of(String project, String location, String fleet) { + return newBuilder().setProject(project).setLocation(location).setFleet(fleet).build(); + } + + public static FleetName ofProjectLocationFleetName( + String project, String location, String fleet) { + return newBuilder().setProject(project).setLocation(location).setFleet(fleet).build(); + } + + public static FleetName ofOrganizationLocationFleetName( + String organization, String location, String fleet) { + return newOrganizationLocationFleetBuilder() + .setOrganization(organization) + .setLocation(location) + .setFleet(fleet) + .build(); + } + + public static String format(String project, String location, String fleet) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFleet(fleet) + .build() + .toString(); + } + + public static String formatProjectLocationFleetName( + String project, String location, String fleet) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFleet(fleet) + .build() + .toString(); + } + + public static String formatOrganizationLocationFleetName( + String organization, String location, String fleet) { + return newOrganizationLocationFleetBuilder() + .setOrganization(organization) + .setLocation(location) + .setFleet(fleet) + .build() + .toString(); + } + + public static FleetName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (PROJECT_LOCATION_FLEET.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_FLEET.match(formattedString); + return ofProjectLocationFleetName( + matchMap.get("project"), matchMap.get("location"), matchMap.get("fleet")); + } else if (ORGANIZATION_LOCATION_FLEET.matches(formattedString)) { + Map matchMap = ORGANIZATION_LOCATION_FLEET.match(formattedString); + return ofOrganizationLocationFleetName( + matchMap.get("organization"), matchMap.get("location"), matchMap.get("fleet")); + } + throw new ValidationException("FleetName.parse: formattedString not in valid format"); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (FleetName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_FLEET.matches(formattedString) + || ORGANIZATION_LOCATION_FLEET.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (fleet != null) { + fieldMapBuilder.put("fleet", fleet); + } + if (organization != null) { + fieldMapBuilder.put("organization", organization); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + FleetName that = ((FleetName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.fleet, that.fleet) + && Objects.equals(this.organization, that.organization); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(fleet); + h *= 1000003; + h ^= Objects.hashCode(organization); + return h; + } + + /** Builder for projects/{project}/locations/{location}/fleets/{fleet}. */ + public static class Builder { + private String project; + private String location; + private String fleet; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFleet() { + return fleet; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setFleet(String fleet) { + this.fleet = fleet; + return this; + } + + private Builder(FleetName fleetName) { + Preconditions.checkArgument( + Objects.equals(fleetName.pathTemplate, PROJECT_LOCATION_FLEET), + "toBuilder is only supported when FleetName has the pattern of" + + " projects/{project}/locations/{location}/fleets/{fleet}"); + this.project = fleetName.project; + this.location = fleetName.location; + this.fleet = fleetName.fleet; + } + + public FleetName build() { + return new FleetName(this); + } + } + + /** Builder for organizations/{organization}/locations/{location}/fleets/{fleet}. */ + public static class OrganizationLocationFleetBuilder { + private String organization; + private String location; + private String fleet; + + protected OrganizationLocationFleetBuilder() {} + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public String getFleet() { + return fleet; + } + + public OrganizationLocationFleetBuilder setOrganization(String organization) { + this.organization = organization; + return this; + } + + public OrganizationLocationFleetBuilder setLocation(String location) { + this.location = location; + return this; + } + + public OrganizationLocationFleetBuilder setFleet(String fleet) { + this.fleet = fleet; + return this; + } + + public FleetName build() { + return new FleetName(this); + } + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetOrBuilder.java new file mode 100644 index 000000000000..b98b2bf7018e --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetOrBuilder.java @@ -0,0 +1,397 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface FleetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.Fleet) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Output only. The full, unique resource name of this fleet in the format of
            +   * `projects/{project}/locations/{location}/fleets/{fleet}`.
            +   *
            +   * Each Google Cloud project can have at most one fleet resource, named
            +   * "default".
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Output only. The full, unique resource name of this fleet in the format of
            +   * `projects/{project}/locations/{location}/fleets/{fleet}`.
            +   *
            +   * Each Google Cloud project can have at most one fleet resource, named
            +   * "default".
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Optional. A user-assigned display name of the Fleet.
            +   * When present, it must be between 4 to 30 characters.
            +   * Allowed characters are: lowercase and uppercase letters, numbers,
            +   * hyphen, single-quote, double-quote, space, and exclamation point.
            +   *
            +   * Example: `Production Fleet`
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
            +   * Optional. A user-assigned display name of the Fleet.
            +   * When present, it must be between 4 to 30 characters.
            +   * Allowed characters are: lowercase and uppercase letters, numbers,
            +   * hyphen, single-quote, double-quote, space, and exclamation point.
            +   *
            +   * Example: `Production Fleet`
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
            +   * Output only. When the Fleet was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
            +   * Output only. When the Fleet was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
            +   * Output only. When the Fleet was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. When the Fleet was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
            +   * Output only. When the Fleet was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
            +   * Output only. When the Fleet was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. When the Fleet was deleted.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + boolean hasDeleteTime(); + + /** + * + * + *
            +   * Output only. When the Fleet was deleted.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + com.google.protobuf.Timestamp getDeleteTime(); + + /** + * + * + *
            +   * Output only. When the Fleet was deleted.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. Google-generated UUID for this resource. This is unique across
            +   * all Fleet resources. If a Fleet resource is deleted and another resource
            +   * with the same name is created, it gets a different uid.
            +   * 
            + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + java.lang.String getUid(); + + /** + * + * + *
            +   * Output only. Google-generated UUID for this resource. This is unique across
            +   * all Fleet resources. If a Fleet resource is deleted and another resource
            +   * with the same name is created, it gets a different uid.
            +   * 
            + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
            +   * Output only. State of the namespace resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + boolean hasState(); + + /** + * + * + *
            +   * Output only. State of the namespace resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.gkehub.v1.FleetLifecycleState getState(); + + /** + * + * + *
            +   * Output only. State of the namespace resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.FleetLifecycleState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkehub.v1.FleetLifecycleStateOrBuilder getStateOrBuilder(); + + /** + * + * + *
            +   * Optional. The default cluster configurations to apply across the fleet.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultClusterConfig field is set. + */ + boolean hasDefaultClusterConfig(); + + /** + * + * + *
            +   * Optional. The default cluster configurations to apply across the fleet.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultClusterConfig. + */ + com.google.cloud.gkehub.v1.DefaultClusterConfig getDefaultClusterConfig(); + + /** + * + * + *
            +   * Optional. The default cluster configurations to apply across the fleet.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.DefaultClusterConfig default_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gkehub.v1.DefaultClusterConfigOrBuilder getDefaultClusterConfigOrBuilder(); + + /** + * + * + *
            +   * Optional. Labels for this Fleet.
            +   * 
            + * + * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
            +   * Optional. Labels for this Fleet.
            +   * 
            + * + * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
            +   * Optional. Labels for this Fleet.
            +   * 
            + * + * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
            +   * Optional. Labels for this Fleet.
            +   * 
            + * + * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
            +   * Optional. Labels for this Fleet.
            +   * 
            + * + * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetProto.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetProto.java new file mode 100644 index 000000000000..36240fc50e52 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetProto.java @@ -0,0 +1,611 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public final class FleetProto extends com.google.protobuf.GeneratedFile { + private FleetProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FleetProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_Fleet_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_Fleet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_Fleet_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_Fleet_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_DefaultClusterConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_DefaultClusterConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_SecurityPostureConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_SecurityPostureConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_PolicyBinding_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_PolicyBinding_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_ComplianceStandard_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_ComplianceStandard_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_FleetLifecycleState_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_FleetLifecycleState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_Namespace_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_Namespace_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_Namespace_NamespaceLabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_Namespace_NamespaceLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_Namespace_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_Namespace_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_NamespaceLifecycleState_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_NamespaceLifecycleState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_RBACRoleBinding_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_RBACRoleBinding_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_RBACRoleBinding_Role_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_RBACRoleBinding_Role_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_RBACRoleBinding_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_RBACRoleBinding_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_RBACRoleBindingLifecycleState_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_RBACRoleBindingLifecycleState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_Scope_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_Scope_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_Scope_NamespaceLabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_Scope_NamespaceLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_Scope_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_Scope_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ScopeLifecycleState_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ScopeLifecycleState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_MembershipBinding_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_MembershipBinding_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_MembershipBinding_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_MembershipBinding_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_MembershipBindingLifecycleState_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_MembershipBindingLifecycleState_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "\"google/cloud/gkehub/v1/fleet.proto\022\026go" + + "ogle.cloud.gkehub.v1\032\037google/api/field_b" + + "ehavior.proto\032\031google/api/resource.proto\032\037google/protobuf/timestamp.proto\"\212\005\n" + + "\005Fleet\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\003\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\001\0224\n" + + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013delete_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\020\n" + + "\003uid\030\006 \001(\tB\003\340A\003\022?\n" + + "\005state\030\t" + + " \001(\0132+.google.cloud.gkehub.v1.FleetLifecycleStateB\003\340A\003\022Q\n" + + "\026default_cluster_config\030\n" + + " \001(\0132,.google.cloud.gkehub.v1.DefaultClusterConfigB\003\340A\001\022>\n" + + "\006labels\030\013 \003(\0132).goog" + + "le.cloud.gkehub.v1.Fleet.LabelsEntryB\003\340A\001\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001:\233\001\352A\227\001\n" + + "\033gkehub.googleapis.com/Fleet\0226projects/{project}/locations/{loca" + + "tion}/fleets/{fleet}\022@organizations/{org" + + "anization}/locations/{location}/fleets/{fleet}\"\234\002\n" + + "\024DefaultClusterConfig\022N\n" + + "\027security_posture_config\030\001" + + " \001(\0132-.google.cloud.gkehub.v1.SecurityPostureConfig\022[\n" + + "\033binary_authorization_config\030\002 \001(\01321.google.cl" + + "oud.gkehub.v1.BinaryAuthorizationConfigB\003\340A\001\022W\n" + + "\031compliance_posture_config\030\003 \001(\0132" + + "/.google.cloud.gkehub.v1.CompliancePostureConfigB\003\340A\001\"\212\003\n" + + "\025SecurityPostureConfig\022@\n" + + "\004mode\030\001 \001(\01622.google.cloud.gkehub.v1.SecurityPostureConfig.Mode\022[\n" + + "\022vulnerability_mode\030\002 \001(\0162?.google.cloud.gkehub.v1.S" + + "ecurityPostureConfig.VulnerabilityMode\"E\n" + + "\004Mode\022\024\n" + + "\020MODE_UNSPECIFIED\020\000\022\014\n" + + "\010DISABLED\020\001\022\t\n" + + "\005BASIC\020\002\022\016\n\n" + + "ENTERPRISE\020\003\"\212\001\n" + + "\021VulnerabilityMode\022\"\n" + + "\036VULNERABILITY_MODE_UNSPECIFIED\020\000\022\032\n" + + "\026VULNERABILITY_DISABLED\020\001\022\027\n" + + "\023VULNERABILITY_BASIC\020\002\022\034\n" + + "\030VULNERABILITY_ENTERPRISE\020\003\"\317\002\n" + + "\031BinaryAuthorizationConfig\022^\n" + + "\017evaluation_mode\030\001 \001(\0162@.google.cloud" + + ".gkehub.v1.BinaryAuthorizationConfig.EvaluationModeB\003\340A\001\022]\n" + + "\017policy_bindings\030\002 \003(" + + "\0132?.google.cloud.gkehub.v1.BinaryAuthorizationConfig.PolicyBindingB\003\340A\001\032\035\n\r" + + "PolicyBinding\022\014\n" + + "\004name\030\001 \001(\t\"T\n" + + "\016EvaluationMode\022\037\n" + + "\033EVALUATION_MODE_UNSPECIFIED\020\000\022\014\n" + + "\010DISABLED\020\001\022\023\n" + + "\017POLICY_BINDINGS\020\002\"\240\002\n" + + "\027CompliancePostureConfig\022B\n" + + "\004mode\030\001 \001(\01624.google." + + "cloud.gkehub.v1.CompliancePostureConfig.Mode\022`\n" + + "\024compliance_standards\030\002 \003(\0132B.goo" + + "gle.cloud.gkehub.v1.CompliancePostureConfig.ComplianceStandard\032&\n" + + "\022ComplianceStandard\022\020\n" + + "\010standard\030\001 \001(\t\"7\n" + + "\004Mode\022\024\n" + + "\020MODE_UNSPECIFIED\020\000\022\014\n" + + "\010DISABLED\020\001\022\013\n" + + "\007ENABLED\020\002\"\255\001\n" + + "\023FleetLifecycleState\022C\n" + + "\004code\030\001 \001(\01620." + + "google.cloud.gkehub.v1.FleetLifecycleState.CodeB\003\340A\003\"Q\n" + + "\004Code\022\024\n" + + "\020CODE_UNSPECIFIED\020\000\022\014\n" + + "\010CREATING\020\001\022\t\n" + + "\005READY\020\002\022\014\n" + + "\010DELETING\020\003\022\014\n" + + "\010UPDATING\020\004\"\275\005\n" + + "\tNamespace\022\014\n" + + "\004name\030\001 \001(\t\022\020\n" + + "\003uid\030\002 \001(\tB\003\340A\003\0224\n" + + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013delete_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022C\n" + + "\005state\030\006 \001(\0132/" + + ".google.cloud.gkehub.v1.NamespaceLifecycleStateB\003\340A\003\0222\n" + + "\005scope\030\010 \001(\tB#\340A\002\372A\035\n" + + "\033gkehub.googleapis.com/Scope\022U\n" + + "\020namespace_labels\030\t" + + " \003(\01326.google.cloud.gkehub.v1.Namespace.NamespaceLabelsEntryB\003\340A\001\022B\n" + + "\006labels\030\n" + + " \003(\0132-.google.cloud.gkehub.v1.Namespace.LabelsEntryB\003\340A\001\0326\n" + + "\024NamespaceLabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001:s\352Ap\n" + + "\037gkehub.googleapis.com/Namespace\022Mprojects/{project}/locations/{location" + + "}/scopes/{scope}/namespaces/{namespace}\"\265\001\n" + + "\027NamespaceLifecycleState\022G\n" + + "\004code\030\001 \001(" + + "\01624.google.cloud.gkehub.v1.NamespaceLifecycleState.CodeB\003\340A\003\"Q\n" + + "\004Code\022\024\n" + + "\020CODE_UNSPECIFIED\020\000\022\014\n" + + "\010CREATING\020\001\022\t\n" + + "\005READY\020\002\022\014\n" + + "\010DELETING\020\003\022\014\n" + + "\010UPDATING\020\004\"\301\007\n" + + "\017RBACRoleBinding\022\016\n" + + "\004user\030\007 \001(\tH\000\022\017\n" + + "\005group\030\010 \001(\tH\000\022\014\n" + + "\004name\030\001 \001(\t\022\020\n" + + "\003uid\030\002 \001(\tB\003\340A\003\0224\n" + + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013delete_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022I\n" + + "\005state\030\006" + + " \001(\01325.google.cloud.gkehub.v1.RBACRoleBindingLifecycleStateB\003\340A\003\022?\n" + + "\004role\030\t \001(\0132" + + ",.google.cloud.gkehub.v1.RBACRoleBinding.RoleB\003\340A\002\022H\n" + + "\006labels\030\n" + + " \003(\01323.google.clou" + + "d.gkehub.v1.RBACRoleBinding.LabelsEntryB\003\340A\001\032\312\001\n" + + "\004Role\022U\n" + + "\017predefined_role\030\001 \001(\0162<" + + ".google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles\022\030\n" + + "\013custom_role\030\002 \001(\tB\003\340A\001\"Q\n" + + "\017PredefinedRoles\022\013\n" + + "\007UNKNOWN\020\000\022\t\n" + + "\005ADMIN\020\001\022\010\n" + + "\004EDIT\020\002\022\010\n" + + "\004VIEW\020\003\022\022\n" + + "\016ANTHOS_SUPPORT\020\004\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001:\353\001\352A\347\001\n" + + "%gkehub.googleapis.com/RBACRoleBinding\022Yprojects/{projec" + + "t}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}\022cproje" + + "cts/{project}/locations/{location}/membe" + + "rships/{membership}/rbacrolebindings/{rbacrolebinding}B\013\n" + + "\tprincipal\"\301\001\n" + + "\035RBACRoleBindingLifecycleState\022M\n" + + "\004code\030\001 \001(\0162:.go" + + "ogle.cloud.gkehub.v1.RBACRoleBindingLifecycleState.CodeB\003\340A\003\"Q\n" + + "\004Code\022\024\n" + + "\020CODE_UNSPECIFIED\020\000\022\014\n" + + "\010CREATING\020\001\022\t\n" + + "\005READY\020\002\022\014\n" + + "\010DELETING\020\003\022\014\n" + + "\010UPDATING\020\004\"\336\004\n" + + "\005Scope\022\014\n" + + "\004name\030\001 \001(\t\022\020\n" + + "\003uid\030\002 \001(\tB\003\340A\003\0224\n" + + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013delete_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022?\n" + + "\005state\030\006 \001" + + "(\0132+.google.cloud.gkehub.v1.ScopeLifecycleStateB\003\340A\003\022Q\n" + + "\020namespace_labels\030\010 \003(\01322" + + ".google.cloud.gkehub.v1.Scope.NamespaceLabelsEntryB\003\340A\001\022>\n" + + "\006labels\030\t \003(\0132).google" + + ".cloud.gkehub.v1.Scope.LabelsEntryB\003\340A\001\0326\n" + + "\024NamespaceLabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001:X\352AU\n" + + "\033gkehub.goog" + + "leapis.com/Scope\0226projects/{project}/locations/{location}/scopes/{scope}\"\255\001\n" + + "\023ScopeLifecycleState\022C\n" + + "\004code\030\001 \001(\01620.google." + + "cloud.gkehub.v1.ScopeLifecycleState.CodeB\003\340A\003\"Q\n" + + "\004Code\022\024\n" + + "\020CODE_UNSPECIFIED\020\000\022\014\n" + + "\010CREATING\020\001\022\t\n" + + "\005READY\020\002\022\014\n" + + "\010DELETING\020\003\022\014\n" + + "\010UPDATING\020\004\"\351\004\n" + + "\021MembershipBinding\0221\n" + + "\005scope\030\003 \001(\tB \372A\035\n" + + "\033gkehub.googleapis.com/ScopeH\000\022\014\n" + + "\004name\030\001 \001(\t\022\020\n" + + "\003uid\030\002 \001(\tB\003\340A\003\0224\n" + + "\013create_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013delete_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022K\n" + + "\005state\030\010" + + " \001(\01327.google.cloud.gkehub.v1.MembershipBindingLifecycleStateB\003\340A\003\022J\n" + + "\006labels\030\t" + + " \003(\01325.google.cloud.gkehub.v1.MembershipBinding.LabelsEntryB\003\340A\001\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001:\214\001\352A\210\001\n" + + "\'gkehub.googleapis.com/MembershipBinding\022]projects/{project}/locations/{locat" + + "ion}/memberships/{membership}/bindings/{membershipbinding}B\010\n" + + "\006target\"\305\001\n" + + "\037MembershipBindingLifecycleState\022O\n" + + "\004code\030\001 \001(\0162<" + + ".google.cloud.gkehub.v1.MembershipBindingLifecycleState.CodeB\003\340A\003\"Q\n" + + "\004Code\022\024\n" + + "\020CODE_UNSPECIFIED\020\000\022\014\n" + + "\010CREATING\020\001\022\t\n" + + "\005READY\020\002\022\014\n" + + "\010DELETING\020\003\022\014\n" + + "\010UPDATING\020\004B\254\001\n" + + "\032com.google.cloud.gkehub.v1B\n" + + "FleetProtoP\001Z2cloud.google.com/go/gkehub/apiv1/gkehubpb;gke" + + "hubpb\252\002\026Google.Cloud.GkeHub.V1\312\002\026Google\\" + + "Cloud\\GkeHub\\V1\352\002\031Google::Cloud::GkeHub::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_v1_Fleet_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_gkehub_v1_Fleet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_Fleet_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "CreateTime", + "UpdateTime", + "DeleteTime", + "Uid", + "State", + "DefaultClusterConfig", + "Labels", + }); + internal_static_google_cloud_gkehub_v1_Fleet_LabelsEntry_descriptor = + internal_static_google_cloud_gkehub_v1_Fleet_descriptor.getNestedType(0); + internal_static_google_cloud_gkehub_v1_Fleet_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_Fleet_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gkehub_v1_DefaultClusterConfig_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_gkehub_v1_DefaultClusterConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_DefaultClusterConfig_descriptor, + new java.lang.String[] { + "SecurityPostureConfig", "BinaryAuthorizationConfig", "CompliancePostureConfig", + }); + internal_static_google_cloud_gkehub_v1_SecurityPostureConfig_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_gkehub_v1_SecurityPostureConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_SecurityPostureConfig_descriptor, + new java.lang.String[] { + "Mode", "VulnerabilityMode", + }); + internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_descriptor, + new java.lang.String[] { + "EvaluationMode", "PolicyBindings", + }); + internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_PolicyBinding_descriptor = + internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_descriptor.getNestedType( + 0); + internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_PolicyBinding_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_BinaryAuthorizationConfig_PolicyBinding_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_descriptor, + new java.lang.String[] { + "Mode", "ComplianceStandards", + }); + internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_ComplianceStandard_descriptor = + internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_descriptor.getNestedType(0); + internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_ComplianceStandard_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_CompliancePostureConfig_ComplianceStandard_descriptor, + new java.lang.String[] { + "Standard", + }); + internal_static_google_cloud_gkehub_v1_FleetLifecycleState_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_gkehub_v1_FleetLifecycleState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_FleetLifecycleState_descriptor, + new java.lang.String[] { + "Code", + }); + internal_static_google_cloud_gkehub_v1_Namespace_descriptor = getDescriptor().getMessageType(6); + internal_static_google_cloud_gkehub_v1_Namespace_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_Namespace_descriptor, + new java.lang.String[] { + "Name", + "Uid", + "CreateTime", + "UpdateTime", + "DeleteTime", + "State", + "Scope", + "NamespaceLabels", + "Labels", + }); + internal_static_google_cloud_gkehub_v1_Namespace_NamespaceLabelsEntry_descriptor = + internal_static_google_cloud_gkehub_v1_Namespace_descriptor.getNestedType(0); + internal_static_google_cloud_gkehub_v1_Namespace_NamespaceLabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_Namespace_NamespaceLabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gkehub_v1_Namespace_LabelsEntry_descriptor = + internal_static_google_cloud_gkehub_v1_Namespace_descriptor.getNestedType(1); + internal_static_google_cloud_gkehub_v1_Namespace_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_Namespace_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gkehub_v1_NamespaceLifecycleState_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_gkehub_v1_NamespaceLifecycleState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_NamespaceLifecycleState_descriptor, + new java.lang.String[] { + "Code", + }); + internal_static_google_cloud_gkehub_v1_RBACRoleBinding_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_gkehub_v1_RBACRoleBinding_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_RBACRoleBinding_descriptor, + new java.lang.String[] { + "User", + "Group", + "Name", + "Uid", + "CreateTime", + "UpdateTime", + "DeleteTime", + "State", + "Role", + "Labels", + "Principal", + }); + internal_static_google_cloud_gkehub_v1_RBACRoleBinding_Role_descriptor = + internal_static_google_cloud_gkehub_v1_RBACRoleBinding_descriptor.getNestedType(0); + internal_static_google_cloud_gkehub_v1_RBACRoleBinding_Role_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_RBACRoleBinding_Role_descriptor, + new java.lang.String[] { + "PredefinedRole", "CustomRole", + }); + internal_static_google_cloud_gkehub_v1_RBACRoleBinding_LabelsEntry_descriptor = + internal_static_google_cloud_gkehub_v1_RBACRoleBinding_descriptor.getNestedType(1); + internal_static_google_cloud_gkehub_v1_RBACRoleBinding_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_RBACRoleBinding_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gkehub_v1_RBACRoleBindingLifecycleState_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_gkehub_v1_RBACRoleBindingLifecycleState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_RBACRoleBindingLifecycleState_descriptor, + new java.lang.String[] { + "Code", + }); + internal_static_google_cloud_gkehub_v1_Scope_descriptor = getDescriptor().getMessageType(10); + internal_static_google_cloud_gkehub_v1_Scope_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_Scope_descriptor, + new java.lang.String[] { + "Name", + "Uid", + "CreateTime", + "UpdateTime", + "DeleteTime", + "State", + "NamespaceLabels", + "Labels", + }); + internal_static_google_cloud_gkehub_v1_Scope_NamespaceLabelsEntry_descriptor = + internal_static_google_cloud_gkehub_v1_Scope_descriptor.getNestedType(0); + internal_static_google_cloud_gkehub_v1_Scope_NamespaceLabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_Scope_NamespaceLabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gkehub_v1_Scope_LabelsEntry_descriptor = + internal_static_google_cloud_gkehub_v1_Scope_descriptor.getNestedType(1); + internal_static_google_cloud_gkehub_v1_Scope_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_Scope_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gkehub_v1_ScopeLifecycleState_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_gkehub_v1_ScopeLifecycleState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ScopeLifecycleState_descriptor, + new java.lang.String[] { + "Code", + }); + internal_static_google_cloud_gkehub_v1_MembershipBinding_descriptor = + getDescriptor().getMessageType(12); + internal_static_google_cloud_gkehub_v1_MembershipBinding_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_MembershipBinding_descriptor, + new java.lang.String[] { + "Scope", + "Name", + "Uid", + "CreateTime", + "UpdateTime", + "DeleteTime", + "State", + "Labels", + "Target", + }); + internal_static_google_cloud_gkehub_v1_MembershipBinding_LabelsEntry_descriptor = + internal_static_google_cloud_gkehub_v1_MembershipBinding_descriptor.getNestedType(0); + internal_static_google_cloud_gkehub_v1_MembershipBinding_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_MembershipBinding_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gkehub_v1_MembershipBindingLifecycleState_descriptor = + getDescriptor().getMessageType(13); + internal_static_google_cloud_gkehub_v1_MembershipBindingLifecycleState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_MembershipBindingLifecycleState_descriptor, + new java.lang.String[] { + "Code", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateMembershipRBACRoleBindingYAMLRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateMembershipRBACRoleBindingYAMLRequest.java new file mode 100644 index 000000000000..479e25520700 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateMembershipRBACRoleBindingYAMLRequest.java @@ -0,0 +1,1204 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Request to generate a YAML of the RBAC policies for the specified
            + * RoleBinding and its associated impersonation resources.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest} + */ +@com.google.protobuf.Generated +public final class GenerateMembershipRBACRoleBindingYAMLRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest) + GenerateMembershipRBACRoleBindingYAMLRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GenerateMembershipRBACRoleBindingYAMLRequest"); + } + + // Use GenerateMembershipRBACRoleBindingYAMLRequest.newBuilder() to construct. + private GenerateMembershipRBACRoleBindingYAMLRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerateMembershipRBACRoleBindingYAMLRequest() { + parent_ = ""; + rbacrolebindingId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest.class, + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The parent (project and location) where the RBACRoleBinding will
            +   * be created. Specified in the format `projects/*/locations/*/memberships/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The parent (project and location) where the RBACRoleBinding will
            +   * be created. Specified in the format `projects/*/locations/*/memberships/*`.
            +   * 
            + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RBACROLEBINDING_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object rbacrolebindingId_ = ""; + + /** + * + * + *
            +   * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
            +   * must be a valid RFC 1123 compliant DNS label:
            +   *
            +   * 1. At most 63 characters in length
            +   * 2. It must consist of lower case alphanumeric characters or `-`
            +   * 3. It must start and end with an alphanumeric character
            +   *
            +   * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +   * with a maximum length of 63 characters.
            +   * 
            + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rbacrolebindingId. + */ + @java.lang.Override + public java.lang.String getRbacrolebindingId() { + java.lang.Object ref = rbacrolebindingId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rbacrolebindingId_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
            +   * must be a valid RFC 1123 compliant DNS label:
            +   *
            +   * 1. At most 63 characters in length
            +   * 2. It must consist of lower case alphanumeric characters or `-`
            +   * 3. It must start and end with an alphanumeric character
            +   *
            +   * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +   * with a maximum length of 63 characters.
            +   * 
            + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rbacrolebindingId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRbacrolebindingIdBytes() { + java.lang.Object ref = rbacrolebindingId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rbacrolebindingId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RBACROLEBINDING_FIELD_NUMBER = 3; + private com.google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding_; + + /** + * + * + *
            +   * Required. The rbacrolebindings to generate the YAML for.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rbacrolebinding field is set. + */ + @java.lang.Override + public boolean hasRbacrolebinding() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. The rbacrolebindings to generate the YAML for.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rbacrolebinding. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebinding() { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } + + /** + * + * + *
            +   * Required. The rbacrolebindings to generate the YAML for.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingOrBuilder() { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rbacrolebindingId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, rbacrolebindingId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getRbacrolebinding()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rbacrolebindingId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, rbacrolebindingId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRbacrolebinding()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest other = + (com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRbacrolebindingId().equals(other.getRbacrolebindingId())) return false; + if (hasRbacrolebinding() != other.hasRbacrolebinding()) return false; + if (hasRbacrolebinding()) { + if (!getRbacrolebinding().equals(other.getRbacrolebinding())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + RBACROLEBINDING_ID_FIELD_NUMBER; + hash = (53 * hash) + getRbacrolebindingId().hashCode(); + if (hasRbacrolebinding()) { + hash = (37 * hash) + RBACROLEBINDING_FIELD_NUMBER; + hash = (53 * hash) + getRbacrolebinding().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request to generate a YAML of the RBAC policies for the specified
            +   * RoleBinding and its associated impersonation resources.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest) + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest.class, + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRbacrolebindingFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + rbacrolebindingId_ = ""; + rbacrolebinding_ = null; + if (rbacrolebindingBuilder_ != null) { + rbacrolebindingBuilder_.dispose(); + rbacrolebindingBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest + getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest build() { + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest buildPartial() { + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest result = + new com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rbacrolebindingId_ = rbacrolebindingId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.rbacrolebinding_ = + rbacrolebindingBuilder_ == null ? rbacrolebinding_ : rbacrolebindingBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest) { + return mergeFrom( + (com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest other) { + if (other + == com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRbacrolebindingId().isEmpty()) { + rbacrolebindingId_ = other.rbacrolebindingId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasRbacrolebinding()) { + mergeRbacrolebinding(other.getRbacrolebinding()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + rbacrolebindingId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetRbacrolebindingFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
            +     * Required. The parent (project and location) where the RBACRoleBinding will
            +     * be created. Specified in the format `projects/*/locations/*/memberships/*`.
            +     * 
            + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the RBACRoleBinding will
            +     * be created. Specified in the format `projects/*/locations/*/memberships/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the RBACRoleBinding will
            +     * be created. Specified in the format `projects/*/locations/*/memberships/*`.
            +     * 
            + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the RBACRoleBinding will
            +     * be created. Specified in the format `projects/*/locations/*/memberships/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the RBACRoleBinding will
            +     * be created. Specified in the format `projects/*/locations/*/memberships/*`.
            +     * 
            + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object rbacrolebindingId_ = ""; + + /** + * + * + *
            +     * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
            +     * must be a valid RFC 1123 compliant DNS label:
            +     *
            +     * 1. At most 63 characters in length
            +     * 2. It must consist of lower case alphanumeric characters or `-`
            +     * 3. It must start and end with an alphanumeric character
            +     *
            +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +     * with a maximum length of 63 characters.
            +     * 
            + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rbacrolebindingId. + */ + public java.lang.String getRbacrolebindingId() { + java.lang.Object ref = rbacrolebindingId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rbacrolebindingId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
            +     * must be a valid RFC 1123 compliant DNS label:
            +     *
            +     * 1. At most 63 characters in length
            +     * 2. It must consist of lower case alphanumeric characters or `-`
            +     * 3. It must start and end with an alphanumeric character
            +     *
            +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +     * with a maximum length of 63 characters.
            +     * 
            + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rbacrolebindingId. + */ + public com.google.protobuf.ByteString getRbacrolebindingIdBytes() { + java.lang.Object ref = rbacrolebindingId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rbacrolebindingId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
            +     * must be a valid RFC 1123 compliant DNS label:
            +     *
            +     * 1. At most 63 characters in length
            +     * 2. It must consist of lower case alphanumeric characters or `-`
            +     * 3. It must start and end with an alphanumeric character
            +     *
            +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +     * with a maximum length of 63 characters.
            +     * 
            + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The rbacrolebindingId to set. + * @return This builder for chaining. + */ + public Builder setRbacrolebindingId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rbacrolebindingId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
            +     * must be a valid RFC 1123 compliant DNS label:
            +     *
            +     * 1. At most 63 characters in length
            +     * 2. It must consist of lower case alphanumeric characters or `-`
            +     * 3. It must start and end with an alphanumeric character
            +     *
            +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +     * with a maximum length of 63 characters.
            +     * 
            + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRbacrolebindingId() { + rbacrolebindingId_ = getDefaultInstance().getRbacrolebindingId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
            +     * must be a valid RFC 1123 compliant DNS label:
            +     *
            +     * 1. At most 63 characters in length
            +     * 2. It must consist of lower case alphanumeric characters or `-`
            +     * 3. It must start and end with an alphanumeric character
            +     *
            +     * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +     * with a maximum length of 63 characters.
            +     * 
            + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for rbacrolebindingId to set. + * @return This builder for chaining. + */ + public Builder setRbacrolebindingIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rbacrolebindingId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder> + rbacrolebindingBuilder_; + + /** + * + * + *
            +     * Required. The rbacrolebindings to generate the YAML for.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rbacrolebinding field is set. + */ + public boolean hasRbacrolebinding() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Required. The rbacrolebindings to generate the YAML for.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rbacrolebinding. + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebinding() { + if (rbacrolebindingBuilder_ == null) { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } else { + return rbacrolebindingBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The rbacrolebindings to generate the YAML for.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRbacrolebinding(com.google.cloud.gkehub.v1.RBACRoleBinding value) { + if (rbacrolebindingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rbacrolebinding_ = value; + } else { + rbacrolebindingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The rbacrolebindings to generate the YAML for.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRbacrolebinding( + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder builderForValue) { + if (rbacrolebindingBuilder_ == null) { + rbacrolebinding_ = builderForValue.build(); + } else { + rbacrolebindingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The rbacrolebindings to generate the YAML for.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRbacrolebinding(com.google.cloud.gkehub.v1.RBACRoleBinding value) { + if (rbacrolebindingBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && rbacrolebinding_ != null + && rbacrolebinding_ + != com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance()) { + getRbacrolebindingBuilder().mergeFrom(value); + } else { + rbacrolebinding_ = value; + } + } else { + rbacrolebindingBuilder_.mergeFrom(value); + } + if (rbacrolebinding_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The rbacrolebindings to generate the YAML for.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRbacrolebinding() { + bitField0_ = (bitField0_ & ~0x00000004); + rbacrolebinding_ = null; + if (rbacrolebindingBuilder_ != null) { + rbacrolebindingBuilder_.dispose(); + rbacrolebindingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The rbacrolebindings to generate the YAML for.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding.Builder getRbacrolebindingBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetRbacrolebindingFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The rbacrolebindings to generate the YAML for.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingOrBuilder() { + if (rbacrolebindingBuilder_ != null) { + return rbacrolebindingBuilder_.getMessageOrBuilder(); + } else { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } + } + + /** + * + * + *
            +     * Required. The rbacrolebindings to generate the YAML for.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder> + internalGetRbacrolebindingFieldBuilder() { + if (rbacrolebindingBuilder_ == null) { + rbacrolebindingBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder>( + getRbacrolebinding(), getParentForChildren(), isClean()); + rbacrolebinding_ = null; + } + return rbacrolebindingBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest) + private static final com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest(); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateMembershipRBACRoleBindingYAMLRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateMembershipRBACRoleBindingYAMLRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateMembershipRBACRoleBindingYAMLRequestOrBuilder.java new file mode 100644 index 000000000000..bfd73385462d --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateMembershipRBACRoleBindingYAMLRequestOrBuilder.java @@ -0,0 +1,145 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface GenerateMembershipRBACRoleBindingYAMLRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The parent (project and location) where the RBACRoleBinding will
            +   * be created. Specified in the format `projects/*/locations/*/memberships/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The parent (project and location) where the RBACRoleBinding will
            +   * be created. Specified in the format `projects/*/locations/*/memberships/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
            +   * must be a valid RFC 1123 compliant DNS label:
            +   *
            +   * 1. At most 63 characters in length
            +   * 2. It must consist of lower case alphanumeric characters or `-`
            +   * 3. It must start and end with an alphanumeric character
            +   *
            +   * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +   * with a maximum length of 63 characters.
            +   * 
            + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rbacrolebindingId. + */ + java.lang.String getRbacrolebindingId(); + + /** + * + * + *
            +   * Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id`
            +   * must be a valid RFC 1123 compliant DNS label:
            +   *
            +   * 1. At most 63 characters in length
            +   * 2. It must consist of lower case alphanumeric characters or `-`
            +   * 3. It must start and end with an alphanumeric character
            +   *
            +   * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
            +   * with a maximum length of 63 characters.
            +   * 
            + * + * string rbacrolebinding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rbacrolebindingId. + */ + com.google.protobuf.ByteString getRbacrolebindingIdBytes(); + + /** + * + * + *
            +   * Required. The rbacrolebindings to generate the YAML for.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rbacrolebinding field is set. + */ + boolean hasRbacrolebinding(); + + /** + * + * + *
            +   * Required. The rbacrolebindings to generate the YAML for.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rbacrolebinding. + */ + com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebinding(); + + /** + * + * + *
            +   * Required. The rbacrolebindings to generate the YAML for.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingOrBuilder(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateMembershipRBACRoleBindingYAMLResponse.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateMembershipRBACRoleBindingYAMLResponse.java new file mode 100644 index 000000000000..dc0de0264929 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateMembershipRBACRoleBindingYAMLResponse.java @@ -0,0 +1,618 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Response for GenerateRBACRoleBindingYAML.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse} + */ +@com.google.protobuf.Generated +public final class GenerateMembershipRBACRoleBindingYAMLResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse) + GenerateMembershipRBACRoleBindingYAMLResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GenerateMembershipRBACRoleBindingYAMLResponse"); + } + + // Use GenerateMembershipRBACRoleBindingYAMLResponse.newBuilder() to construct. + private GenerateMembershipRBACRoleBindingYAMLResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerateMembershipRBACRoleBindingYAMLResponse() { + roleBindingsYaml_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse.class, + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse.Builder.class); + } + + public static final int ROLE_BINDINGS_YAML_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object roleBindingsYaml_ = ""; + + /** + * + * + *
            +   * a yaml text blob including the RBAC policies.
            +   * 
            + * + * string role_bindings_yaml = 1; + * + * @return The roleBindingsYaml. + */ + @java.lang.Override + public java.lang.String getRoleBindingsYaml() { + java.lang.Object ref = roleBindingsYaml_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + roleBindingsYaml_ = s; + return s; + } + } + + /** + * + * + *
            +   * a yaml text blob including the RBAC policies.
            +   * 
            + * + * string role_bindings_yaml = 1; + * + * @return The bytes for roleBindingsYaml. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRoleBindingsYamlBytes() { + java.lang.Object ref = roleBindingsYaml_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + roleBindingsYaml_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(roleBindingsYaml_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, roleBindingsYaml_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(roleBindingsYaml_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, roleBindingsYaml_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse other = + (com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse) obj; + + if (!getRoleBindingsYaml().equals(other.getRoleBindingsYaml())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ROLE_BINDINGS_YAML_FIELD_NUMBER; + hash = (53 * hash) + getRoleBindingsYaml().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Response for GenerateRBACRoleBindingYAML.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse) + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse.class, + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + roleBindingsYaml_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse + getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse build() { + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse buildPartial() { + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse result = + new com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.roleBindingsYaml_ = roleBindingsYaml_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse) { + return mergeFrom( + (com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse other) { + if (other + == com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse + .getDefaultInstance()) return this; + if (!other.getRoleBindingsYaml().isEmpty()) { + roleBindingsYaml_ = other.roleBindingsYaml_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + roleBindingsYaml_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object roleBindingsYaml_ = ""; + + /** + * + * + *
            +     * a yaml text blob including the RBAC policies.
            +     * 
            + * + * string role_bindings_yaml = 1; + * + * @return The roleBindingsYaml. + */ + public java.lang.String getRoleBindingsYaml() { + java.lang.Object ref = roleBindingsYaml_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + roleBindingsYaml_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * a yaml text blob including the RBAC policies.
            +     * 
            + * + * string role_bindings_yaml = 1; + * + * @return The bytes for roleBindingsYaml. + */ + public com.google.protobuf.ByteString getRoleBindingsYamlBytes() { + java.lang.Object ref = roleBindingsYaml_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + roleBindingsYaml_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * a yaml text blob including the RBAC policies.
            +     * 
            + * + * string role_bindings_yaml = 1; + * + * @param value The roleBindingsYaml to set. + * @return This builder for chaining. + */ + public Builder setRoleBindingsYaml(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + roleBindingsYaml_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * a yaml text blob including the RBAC policies.
            +     * 
            + * + * string role_bindings_yaml = 1; + * + * @return This builder for chaining. + */ + public Builder clearRoleBindingsYaml() { + roleBindingsYaml_ = getDefaultInstance().getRoleBindingsYaml(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * a yaml text blob including the RBAC policies.
            +     * 
            + * + * string role_bindings_yaml = 1; + * + * @param value The bytes for roleBindingsYaml to set. + * @return This builder for chaining. + */ + public Builder setRoleBindingsYamlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + roleBindingsYaml_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse) + private static final com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse(); + } + + public static com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateMembershipRBACRoleBindingYAMLResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateMembershipRBACRoleBindingYAMLResponseOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateMembershipRBACRoleBindingYAMLResponseOrBuilder.java new file mode 100644 index 000000000000..1ae050b7f6c7 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateMembershipRBACRoleBindingYAMLResponseOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface GenerateMembershipRBACRoleBindingYAMLResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * a yaml text blob including the RBAC policies.
            +   * 
            + * + * string role_bindings_yaml = 1; + * + * @return The roleBindingsYaml. + */ + java.lang.String getRoleBindingsYaml(); + + /** + * + * + *
            +   * a yaml text blob including the RBAC policies.
            +   * 
            + * + * string role_bindings_yaml = 1; + * + * @return The bytes for roleBindingsYaml. + */ + com.google.protobuf.ByteString getRoleBindingsYamlBytes(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequest.java index 2161961d6abe..42cd8c15c1ef 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequest.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequest.java @@ -125,6 +125,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int RETURN_PARTIAL_SUCCESS_FIELD_NUMBER = 2; + private boolean returnPartialSuccess_ = false; + + /** + * + * + *
            +   * Optional. If set to true, the response will return partial results when
            +   * some regions are unreachable and the unreachable field in Feature proto
            +   * will be populated. If set to false, the request will fail when some regions
            +   * are unreachable.
            +   * 
            + * + * bool return_partial_success = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -142,6 +164,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } + if (returnPartialSuccess_ != false) { + output.writeBool(2, returnPartialSuccess_); + } getUnknownFields().writeTo(output); } @@ -154,6 +179,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } + if (returnPartialSuccess_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, returnPartialSuccess_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -171,6 +199,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.gkehub.v1.GetFeatureRequest) obj; if (!getName().equals(other.getName())) return false; + if (getReturnPartialSuccess() != other.getReturnPartialSuccess()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,6 +213,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + RETURN_PARTIAL_SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnPartialSuccess()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -325,6 +356,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; + returnPartialSuccess_ = false; return this; } @@ -364,6 +396,9 @@ private void buildPartial0(com.google.cloud.gkehub.v1.GetFeatureRequest result) if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.returnPartialSuccess_ = returnPartialSuccess_; + } } @java.lang.Override @@ -383,6 +418,9 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1.GetFeatureRequest other) { bitField0_ |= 0x00000001; onChanged(); } + if (other.getReturnPartialSuccess() != false) { + setReturnPartialSuccess(other.getReturnPartialSuccess()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -415,6 +453,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 16: + { + returnPartialSuccess_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -550,6 +594,71 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private boolean returnPartialSuccess_; + + /** + * + * + *
            +     * Optional. If set to true, the response will return partial results when
            +     * some regions are unreachable and the unreachable field in Feature proto
            +     * will be populated. If set to false, the request will fail when some regions
            +     * are unreachable.
            +     * 
            + * + * bool return_partial_success = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + + /** + * + * + *
            +     * Optional. If set to true, the response will return partial results when
            +     * some regions are unreachable and the unreachable field in Feature proto
            +     * will be populated. If set to false, the request will fail when some regions
            +     * are unreachable.
            +     * 
            + * + * bool return_partial_success = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The returnPartialSuccess to set. + * @return This builder for chaining. + */ + public Builder setReturnPartialSuccess(boolean value) { + + returnPartialSuccess_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. If set to true, the response will return partial results when
            +     * some regions are unreachable and the unreachable field in Feature proto
            +     * will be populated. If set to false, the request will fail when some regions
            +     * are unreachable.
            +     * 
            + * + * bool return_partial_success = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearReturnPartialSuccess() { + bitField0_ = (bitField0_ & ~0x00000002); + returnPartialSuccess_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.GetFeatureRequest) } diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequestOrBuilder.java index e06a91fb0a5e..d14ca835158c 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequestOrBuilder.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequestOrBuilder.java @@ -53,4 +53,20 @@ public interface GetFeatureRequestOrBuilder * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Optional. If set to true, the response will return partial results when
            +   * some regions are unreachable and the unreachable field in Feature proto
            +   * will be populated. If set to false, the request will fail when some regions
            +   * are unreachable.
            +   * 
            + * + * bool return_partial_success = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnPartialSuccess. + */ + boolean getReturnPartialSuccess(); } diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFleetRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFleetRequest.java new file mode 100644 index 000000000000..628f9c43719c --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFleetRequest.java @@ -0,0 +1,616 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Request message for the `GkeHub.GetFleet` method.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.GetFleetRequest} + */ +@com.google.protobuf.Generated +public final class GetFleetRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.GetFleetRequest) + GetFleetRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetFleetRequest"); + } + + // Use GetFleetRequest.newBuilder() to construct. + private GetFleetRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetFleetRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetFleetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetFleetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.GetFleetRequest.class, + com.google.cloud.gkehub.v1.GetFleetRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The Fleet resource name in the format
            +   * `projects/*/locations/*/fleets/*`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The Fleet resource name in the format
            +   * `projects/*/locations/*/fleets/*`.
            +   * 
            + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.GetFleetRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.GetFleetRequest other = + (com.google.cloud.gkehub.v1.GetFleetRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.GetFleetRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetFleetRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetFleetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetFleetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetFleetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetFleetRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetFleetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetFleetRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetFleetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetFleetRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetFleetRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetFleetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkehub.v1.GetFleetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for the `GkeHub.GetFleet` method.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.GetFleetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.GetFleetRequest) + com.google.cloud.gkehub.v1.GetFleetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetFleetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetFleetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.GetFleetRequest.class, + com.google.cloud.gkehub.v1.GetFleetRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.GetFleetRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetFleetRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetFleetRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.GetFleetRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetFleetRequest build() { + com.google.cloud.gkehub.v1.GetFleetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetFleetRequest buildPartial() { + com.google.cloud.gkehub.v1.GetFleetRequest result = + new com.google.cloud.gkehub.v1.GetFleetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.GetFleetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.GetFleetRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.GetFleetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.GetFleetRequest other) { + if (other == com.google.cloud.gkehub.v1.GetFleetRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. The Fleet resource name in the format
            +     * `projects/*/locations/*/fleets/*`.
            +     * 
            + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The Fleet resource name in the format
            +     * `projects/*/locations/*/fleets/*`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The Fleet resource name in the format
            +     * `projects/*/locations/*/fleets/*`.
            +     * 
            + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Fleet resource name in the format
            +     * `projects/*/locations/*/fleets/*`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Fleet resource name in the format
            +     * `projects/*/locations/*/fleets/*`.
            +     * 
            + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.GetFleetRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.GetFleetRequest) + private static final com.google.cloud.gkehub.v1.GetFleetRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.GetFleetRequest(); + } + + public static com.google.cloud.gkehub.v1.GetFleetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFleetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetFleetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFleetRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFleetRequestOrBuilder.java new file mode 100644 index 000000000000..fc5a43dc4f4f --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFleetRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface GetFleetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.GetFleetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The Fleet resource name in the format
            +   * `projects/*/locations/*/fleets/*`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The Fleet resource name in the format
            +   * `projects/*/locations/*/fleets/*`.
            +   * 
            + * + * + * 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-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipBindingRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipBindingRequest.java new file mode 100644 index 000000000000..8473e8ce6beb --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipBindingRequest.java @@ -0,0 +1,618 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Request message for the `GkeHub.GetMembershipBinding` method.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.GetMembershipBindingRequest} + */ +@com.google.protobuf.Generated +public final class GetMembershipBindingRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.GetMembershipBindingRequest) + GetMembershipBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetMembershipBindingRequest"); + } + + // Use GetMembershipBindingRequest.newBuilder() to construct. + private GetMembershipBindingRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetMembershipBindingRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetMembershipBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetMembershipBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.GetMembershipBindingRequest.class, + com.google.cloud.gkehub.v1.GetMembershipBindingRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The MembershipBinding resource name in the format
            +   * `projects/*/locations/*/memberships/*/bindings/*`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The MembershipBinding resource name in the format
            +   * `projects/*/locations/*/memberships/*/bindings/*`.
            +   * 
            + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.GetMembershipBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.GetMembershipBindingRequest other = + (com.google.cloud.gkehub.v1.GetMembershipBindingRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.GetMembershipBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetMembershipBindingRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetMembershipBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetMembershipBindingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetMembershipBindingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetMembershipBindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetMembershipBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetMembershipBindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetMembershipBindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetMembershipBindingRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetMembershipBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetMembershipBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.v1.GetMembershipBindingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for the `GkeHub.GetMembershipBinding` method.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.GetMembershipBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.GetMembershipBindingRequest) + com.google.cloud.gkehub.v1.GetMembershipBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetMembershipBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetMembershipBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.GetMembershipBindingRequest.class, + com.google.cloud.gkehub.v1.GetMembershipBindingRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.GetMembershipBindingRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetMembershipBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetMembershipBindingRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.GetMembershipBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetMembershipBindingRequest build() { + com.google.cloud.gkehub.v1.GetMembershipBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetMembershipBindingRequest buildPartial() { + com.google.cloud.gkehub.v1.GetMembershipBindingRequest result = + new com.google.cloud.gkehub.v1.GetMembershipBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.GetMembershipBindingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.GetMembershipBindingRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.GetMembershipBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.GetMembershipBindingRequest other) { + if (other == com.google.cloud.gkehub.v1.GetMembershipBindingRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. The MembershipBinding resource name in the format
            +     * `projects/*/locations/*/memberships/*/bindings/*`.
            +     * 
            + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The MembershipBinding resource name in the format
            +     * `projects/*/locations/*/memberships/*/bindings/*`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The MembershipBinding resource name in the format
            +     * `projects/*/locations/*/memberships/*/bindings/*`.
            +     * 
            + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The MembershipBinding resource name in the format
            +     * `projects/*/locations/*/memberships/*/bindings/*`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The MembershipBinding resource name in the format
            +     * `projects/*/locations/*/memberships/*/bindings/*`.
            +     * 
            + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.GetMembershipBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.GetMembershipBindingRequest) + private static final com.google.cloud.gkehub.v1.GetMembershipBindingRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.GetMembershipBindingRequest(); + } + + public static com.google.cloud.gkehub.v1.GetMembershipBindingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMembershipBindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetMembershipBindingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipBindingRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipBindingRequestOrBuilder.java new file mode 100644 index 000000000000..65dccbd73585 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipBindingRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface GetMembershipBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.GetMembershipBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The MembershipBinding resource name in the format
            +   * `projects/*/locations/*/memberships/*/bindings/*`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The MembershipBinding resource name in the format
            +   * `projects/*/locations/*/memberships/*/bindings/*`.
            +   * 
            + * + * + * 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-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRBACRoleBindingRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRBACRoleBindingRequest.java new file mode 100644 index 000000000000..1ba3b3056c72 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRBACRoleBindingRequest.java @@ -0,0 +1,625 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Request message for the `GkeHub.GetMembershipRBACRoleBinding` method.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest} + */ +@com.google.protobuf.Generated +public final class GetMembershipRBACRoleBindingRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest) + GetMembershipRBACRoleBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetMembershipRBACRoleBindingRequest"); + } + + // Use GetMembershipRBACRoleBindingRequest.newBuilder() to construct. + private GetMembershipRBACRoleBindingRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetMembershipRBACRoleBindingRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetMembershipRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetMembershipRBACRoleBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest.class, + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The RBACRoleBinding resource name in the format
            +   * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The RBACRoleBinding resource name in the format
            +   * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
            +   * 
            + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest other = + (com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for the `GkeHub.GetMembershipRBACRoleBinding` method.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest) + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetMembershipRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetMembershipRBACRoleBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest.class, + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetMembershipRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest + getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest build() { + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest buildPartial() { + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest result = + new com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest other) { + if (other + == com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. The RBACRoleBinding resource name in the format
            +     * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
            +     * 
            + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The RBACRoleBinding resource name in the format
            +     * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The RBACRoleBinding resource name in the format
            +     * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
            +     * 
            + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The RBACRoleBinding resource name in the format
            +     * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The RBACRoleBinding resource name in the format
            +     * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
            +     * 
            + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest) + private static final com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest(); + } + + public static com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMembershipRBACRoleBindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRBACRoleBindingRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRBACRoleBindingRequestOrBuilder.java new file mode 100644 index 000000000000..13522afe962c --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRBACRoleBindingRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface GetMembershipRBACRoleBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The RBACRoleBinding resource name in the format
            +   * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The RBACRoleBinding resource name in the format
            +   * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
            +   * 
            + * + * + * 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-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeNamespaceRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeNamespaceRequest.java new file mode 100644 index 000000000000..4ebd9eb05fb8 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeNamespaceRequest.java @@ -0,0 +1,617 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Request message for the `GkeHub.GetNamespace` method.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.GetScopeNamespaceRequest} + */ +@com.google.protobuf.Generated +public final class GetScopeNamespaceRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.GetScopeNamespaceRequest) + GetScopeNamespaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetScopeNamespaceRequest"); + } + + // Use GetScopeNamespaceRequest.newBuilder() to construct. + private GetScopeNamespaceRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetScopeNamespaceRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetScopeNamespaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetScopeNamespaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.GetScopeNamespaceRequest.class, + com.google.cloud.gkehub.v1.GetScopeNamespaceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The Namespace resource name in the format
            +   * `projects/*/locations/*/scopes/*/namespaces/*`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The Namespace resource name in the format
            +   * `projects/*/locations/*/scopes/*/namespaces/*`.
            +   * 
            + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.GetScopeNamespaceRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.GetScopeNamespaceRequest other = + (com.google.cloud.gkehub.v1.GetScopeNamespaceRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.GetScopeNamespaceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetScopeNamespaceRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetScopeNamespaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetScopeNamespaceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetScopeNamespaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetScopeNamespaceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetScopeNamespaceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetScopeNamespaceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetScopeNamespaceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetScopeNamespaceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetScopeNamespaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetScopeNamespaceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkehub.v1.GetScopeNamespaceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for the `GkeHub.GetNamespace` method.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.GetScopeNamespaceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.GetScopeNamespaceRequest) + com.google.cloud.gkehub.v1.GetScopeNamespaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetScopeNamespaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetScopeNamespaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.GetScopeNamespaceRequest.class, + com.google.cloud.gkehub.v1.GetScopeNamespaceRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.GetScopeNamespaceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetScopeNamespaceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetScopeNamespaceRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.GetScopeNamespaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetScopeNamespaceRequest build() { + com.google.cloud.gkehub.v1.GetScopeNamespaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetScopeNamespaceRequest buildPartial() { + com.google.cloud.gkehub.v1.GetScopeNamespaceRequest result = + new com.google.cloud.gkehub.v1.GetScopeNamespaceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.GetScopeNamespaceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.GetScopeNamespaceRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.GetScopeNamespaceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.GetScopeNamespaceRequest other) { + if (other == com.google.cloud.gkehub.v1.GetScopeNamespaceRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. The Namespace resource name in the format
            +     * `projects/*/locations/*/scopes/*/namespaces/*`.
            +     * 
            + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The Namespace resource name in the format
            +     * `projects/*/locations/*/scopes/*/namespaces/*`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The Namespace resource name in the format
            +     * `projects/*/locations/*/scopes/*/namespaces/*`.
            +     * 
            + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Namespace resource name in the format
            +     * `projects/*/locations/*/scopes/*/namespaces/*`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Namespace resource name in the format
            +     * `projects/*/locations/*/scopes/*/namespaces/*`.
            +     * 
            + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.GetScopeNamespaceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.GetScopeNamespaceRequest) + private static final com.google.cloud.gkehub.v1.GetScopeNamespaceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.GetScopeNamespaceRequest(); + } + + public static com.google.cloud.gkehub.v1.GetScopeNamespaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetScopeNamespaceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetScopeNamespaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeNamespaceRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeNamespaceRequestOrBuilder.java new file mode 100644 index 000000000000..4a5365c69686 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeNamespaceRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface GetScopeNamespaceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.GetScopeNamespaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The Namespace resource name in the format
            +   * `projects/*/locations/*/scopes/*/namespaces/*`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The Namespace resource name in the format
            +   * `projects/*/locations/*/scopes/*/namespaces/*`.
            +   * 
            + * + * + * 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-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeRBACRoleBindingRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeRBACRoleBindingRequest.java new file mode 100644 index 000000000000..f4f7bd82965d --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeRBACRoleBindingRequest.java @@ -0,0 +1,618 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Request message for the `GkeHub.GetScopeRBACRoleBinding` method.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest} + */ +@com.google.protobuf.Generated +public final class GetScopeRBACRoleBindingRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest) + GetScopeRBACRoleBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetScopeRBACRoleBindingRequest"); + } + + // Use GetScopeRBACRoleBindingRequest.newBuilder() to construct. + private GetScopeRBACRoleBindingRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetScopeRBACRoleBindingRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetScopeRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetScopeRBACRoleBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest.class, + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The RBACRoleBinding resource name in the format
            +   * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The RBACRoleBinding resource name in the format
            +   * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
            +   * 
            + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest other = + (com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for the `GkeHub.GetScopeRBACRoleBinding` method.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest) + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetScopeRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetScopeRBACRoleBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest.class, + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetScopeRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest build() { + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest buildPartial() { + com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest result = + new com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest other) { + if (other == com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. The RBACRoleBinding resource name in the format
            +     * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
            +     * 
            + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The RBACRoleBinding resource name in the format
            +     * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The RBACRoleBinding resource name in the format
            +     * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
            +     * 
            + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The RBACRoleBinding resource name in the format
            +     * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The RBACRoleBinding resource name in the format
            +     * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
            +     * 
            + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest) + private static final com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest(); + } + + public static com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetScopeRBACRoleBindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeRBACRoleBindingRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeRBACRoleBindingRequestOrBuilder.java new file mode 100644 index 000000000000..92fee79b0bda --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeRBACRoleBindingRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface GetScopeRBACRoleBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The RBACRoleBinding resource name in the format
            +   * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The RBACRoleBinding resource name in the format
            +   * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
            +   * 
            + * + * + * 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-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeRequest.java new file mode 100644 index 000000000000..a31f7cbdb25d --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeRequest.java @@ -0,0 +1,616 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Request message for the `GkeHub.GetScope` method.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.GetScopeRequest} + */ +@com.google.protobuf.Generated +public final class GetScopeRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.GetScopeRequest) + GetScopeRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetScopeRequest"); + } + + // Use GetScopeRequest.newBuilder() to construct. + private GetScopeRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetScopeRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetScopeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetScopeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.GetScopeRequest.class, + com.google.cloud.gkehub.v1.GetScopeRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The Scope resource name in the format
            +   * `projects/*/locations/*/scopes/*`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The Scope resource name in the format
            +   * `projects/*/locations/*/scopes/*`.
            +   * 
            + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.GetScopeRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.GetScopeRequest other = + (com.google.cloud.gkehub.v1.GetScopeRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.GetScopeRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetScopeRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetScopeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetScopeRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetScopeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.GetScopeRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetScopeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetScopeRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetScopeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetScopeRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.GetScopeRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.GetScopeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkehub.v1.GetScopeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for the `GkeHub.GetScope` method.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.GetScopeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.GetScopeRequest) + com.google.cloud.gkehub.v1.GetScopeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetScopeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetScopeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.GetScopeRequest.class, + com.google.cloud.gkehub.v1.GetScopeRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.GetScopeRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetScopeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetScopeRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.GetScopeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetScopeRequest build() { + com.google.cloud.gkehub.v1.GetScopeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetScopeRequest buildPartial() { + com.google.cloud.gkehub.v1.GetScopeRequest result = + new com.google.cloud.gkehub.v1.GetScopeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.GetScopeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.GetScopeRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.GetScopeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.GetScopeRequest other) { + if (other == com.google.cloud.gkehub.v1.GetScopeRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. The Scope resource name in the format
            +     * `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The Scope resource name in the format
            +     * `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The Scope resource name in the format
            +     * `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Scope resource name in the format
            +     * `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Scope resource name in the format
            +     * `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.GetScopeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.GetScopeRequest) + private static final com.google.cloud.gkehub.v1.GetScopeRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.GetScopeRequest(); + } + + public static com.google.cloud.gkehub.v1.GetScopeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetScopeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.GetScopeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeRequestOrBuilder.java new file mode 100644 index 000000000000..daaefc88d5d4 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetScopeRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface GetScopeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.GetScopeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The Scope resource name in the format
            +   * `projects/*/locations/*/scopes/*`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The Scope resource name in the format
            +   * `projects/*/locations/*/scopes/*`.
            +   * 
            + * + * + * 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-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListBoundMembershipsRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListBoundMembershipsRequest.java new file mode 100644 index 000000000000..6ea551560b0f --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListBoundMembershipsRequest.java @@ -0,0 +1,1140 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Request to list Memberships bound to a Scope.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ListBoundMembershipsRequest} + */ +@com.google.protobuf.Generated +public final class ListBoundMembershipsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListBoundMembershipsRequest) + ListBoundMembershipsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListBoundMembershipsRequest"); + } + + // Use ListBoundMembershipsRequest.newBuilder() to construct. + private ListBoundMembershipsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListBoundMembershipsRequest() { + scopeName_ = ""; + filter_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListBoundMembershipsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListBoundMembershipsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListBoundMembershipsRequest.class, + com.google.cloud.gkehub.v1.ListBoundMembershipsRequest.Builder.class); + } + + public static final int SCOPE_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object scopeName_ = ""; + + /** + * + * + *
            +   * Required. Name of the Scope, in the format
            +   * `projects/*/locations/global/scopes/*`, to which the Memberships are bound.
            +   * 
            + * + * + * string scope_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The scopeName. + */ + @java.lang.Override + public java.lang.String getScopeName() { + java.lang.Object ref = scopeName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scopeName_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. Name of the Scope, in the format
            +   * `projects/*/locations/global/scopes/*`, to which the Memberships are bound.
            +   * 
            + * + * + * string scope_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for scopeName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getScopeNameBytes() { + java.lang.Object ref = scopeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scopeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
            +   * Optional. Lists Memberships that match the filter expression, following the
            +   * syntax outlined in https://google.aip.dev/160. Currently, filtering
            +   * can be done only based on Memberships's `name`, `labels`, `create_time`,
            +   * `update_time`, and `unique_id`.
            +   * 
            + * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Lists Memberships that match the filter expression, following the
            +   * syntax outlined in https://google.aip.dev/160. Currently, filtering
            +   * can be done only based on Memberships's `name`, `labels`, `create_time`,
            +   * `update_time`, and `unique_id`.
            +   * 
            + * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + + /** + * + * + *
            +   * Optional. When requesting a 'page' of resources, `page_size` specifies
            +   * number of resources to return. If unspecified or set to 0, all resources
            +   * will be returned. Pagination is currently not supported; therefore, setting
            +   * this field does not have any impact for now.
            +   * 
            + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +   * Optional. Token returned by previous call to `ListBoundMemberships` which
            +   * specifies the position in the list from where to continue listing the
            +   * resources.
            +   * 
            + * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Token returned by previous call to `ListBoundMemberships` which
            +   * specifies the position in the list from where to continue listing the
            +   * resources.
            +   * 
            + * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(scopeName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, scopeName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, filter_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(scopeName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, scopeName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, filter_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.ListBoundMembershipsRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ListBoundMembershipsRequest other = + (com.google.cloud.gkehub.v1.ListBoundMembershipsRequest) obj; + + if (!getScopeName().equals(other.getScopeName())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SCOPE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getScopeName().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.v1.ListBoundMembershipsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request to list Memberships bound to a Scope.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ListBoundMembershipsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListBoundMembershipsRequest) + com.google.cloud.gkehub.v1.ListBoundMembershipsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListBoundMembershipsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListBoundMembershipsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListBoundMembershipsRequest.class, + com.google.cloud.gkehub.v1.ListBoundMembershipsRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ListBoundMembershipsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + scopeName_ = ""; + filter_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListBoundMembershipsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListBoundMembershipsRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ListBoundMembershipsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListBoundMembershipsRequest build() { + com.google.cloud.gkehub.v1.ListBoundMembershipsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListBoundMembershipsRequest buildPartial() { + com.google.cloud.gkehub.v1.ListBoundMembershipsRequest result = + new com.google.cloud.gkehub.v1.ListBoundMembershipsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.ListBoundMembershipsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.scopeName_ = scopeName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ListBoundMembershipsRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.ListBoundMembershipsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ListBoundMembershipsRequest other) { + if (other == com.google.cloud.gkehub.v1.ListBoundMembershipsRequest.getDefaultInstance()) + return this; + if (!other.getScopeName().isEmpty()) { + scopeName_ = other.scopeName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + scopeName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object scopeName_ = ""; + + /** + * + * + *
            +     * Required. Name of the Scope, in the format
            +     * `projects/*/locations/global/scopes/*`, to which the Memberships are bound.
            +     * 
            + * + * + * string scope_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The scopeName. + */ + public java.lang.String getScopeName() { + java.lang.Object ref = scopeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scopeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. Name of the Scope, in the format
            +     * `projects/*/locations/global/scopes/*`, to which the Memberships are bound.
            +     * 
            + * + * + * string scope_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for scopeName. + */ + public com.google.protobuf.ByteString getScopeNameBytes() { + java.lang.Object ref = scopeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scopeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. Name of the Scope, in the format
            +     * `projects/*/locations/global/scopes/*`, to which the Memberships are bound.
            +     * 
            + * + * + * string scope_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The scopeName to set. + * @return This builder for chaining. + */ + public Builder setScopeName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + scopeName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Name of the Scope, in the format
            +     * `projects/*/locations/global/scopes/*`, to which the Memberships are bound.
            +     * 
            + * + * + * string scope_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearScopeName() { + scopeName_ = getDefaultInstance().getScopeName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Name of the Scope, in the format
            +     * `projects/*/locations/global/scopes/*`, to which the Memberships are bound.
            +     * 
            + * + * + * string scope_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for scopeName to set. + * @return This builder for chaining. + */ + public Builder setScopeNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scopeName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
            +     * Optional. Lists Memberships that match the filter expression, following the
            +     * syntax outlined in https://google.aip.dev/160. Currently, filtering
            +     * can be done only based on Memberships's `name`, `labels`, `create_time`,
            +     * `update_time`, and `unique_id`.
            +     * 
            + * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Lists Memberships that match the filter expression, following the
            +     * syntax outlined in https://google.aip.dev/160. Currently, filtering
            +     * can be done only based on Memberships's `name`, `labels`, `create_time`,
            +     * `update_time`, and `unique_id`.
            +     * 
            + * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Lists Memberships that match the filter expression, following the
            +     * syntax outlined in https://google.aip.dev/160. Currently, filtering
            +     * can be done only based on Memberships's `name`, `labels`, `create_time`,
            +     * `update_time`, and `unique_id`.
            +     * 
            + * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Lists Memberships that match the filter expression, following the
            +     * syntax outlined in https://google.aip.dev/160. Currently, filtering
            +     * can be done only based on Memberships's `name`, `labels`, `create_time`,
            +     * `update_time`, and `unique_id`.
            +     * 
            + * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Lists Memberships that match the filter expression, following the
            +     * syntax outlined in https://google.aip.dev/160. Currently, filtering
            +     * can be done only based on Memberships's `name`, `labels`, `create_time`,
            +     * `update_time`, and `unique_id`.
            +     * 
            + * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
            +     * Optional. When requesting a 'page' of resources, `page_size` specifies
            +     * number of resources to return. If unspecified or set to 0, all resources
            +     * will be returned. Pagination is currently not supported; therefore, setting
            +     * this field does not have any impact for now.
            +     * 
            + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
            +     * Optional. When requesting a 'page' of resources, `page_size` specifies
            +     * number of resources to return. If unspecified or set to 0, all resources
            +     * will be returned. Pagination is currently not supported; therefore, setting
            +     * this field does not have any impact for now.
            +     * 
            + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. When requesting a 'page' of resources, `page_size` specifies
            +     * number of resources to return. If unspecified or set to 0, all resources
            +     * will be returned. Pagination is currently not supported; therefore, setting
            +     * this field does not have any impact for now.
            +     * 
            + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +     * Optional. Token returned by previous call to `ListBoundMemberships` which
            +     * specifies the position in the list from where to continue listing the
            +     * resources.
            +     * 
            + * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Token returned by previous call to `ListBoundMemberships` which
            +     * specifies the position in the list from where to continue listing the
            +     * resources.
            +     * 
            + * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Token returned by previous call to `ListBoundMemberships` which
            +     * specifies the position in the list from where to continue listing the
            +     * resources.
            +     * 
            + * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Token returned by previous call to `ListBoundMemberships` which
            +     * specifies the position in the list from where to continue listing the
            +     * resources.
            +     * 
            + * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Token returned by previous call to `ListBoundMemberships` which
            +     * specifies the position in the list from where to continue listing the
            +     * resources.
            +     * 
            + * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListBoundMembershipsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListBoundMembershipsRequest) + private static final com.google.cloud.gkehub.v1.ListBoundMembershipsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListBoundMembershipsRequest(); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBoundMembershipsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListBoundMembershipsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListBoundMembershipsRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListBoundMembershipsRequestOrBuilder.java new file mode 100644 index 000000000000..0fcf1de1521e --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListBoundMembershipsRequestOrBuilder.java @@ -0,0 +1,138 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ListBoundMembershipsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListBoundMembershipsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. Name of the Scope, in the format
            +   * `projects/*/locations/global/scopes/*`, to which the Memberships are bound.
            +   * 
            + * + * + * string scope_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The scopeName. + */ + java.lang.String getScopeName(); + + /** + * + * + *
            +   * Required. Name of the Scope, in the format
            +   * `projects/*/locations/global/scopes/*`, to which the Memberships are bound.
            +   * 
            + * + * + * string scope_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for scopeName. + */ + com.google.protobuf.ByteString getScopeNameBytes(); + + /** + * + * + *
            +   * Optional. Lists Memberships that match the filter expression, following the
            +   * syntax outlined in https://google.aip.dev/160. Currently, filtering
            +   * can be done only based on Memberships's `name`, `labels`, `create_time`,
            +   * `update_time`, and `unique_id`.
            +   * 
            + * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
            +   * Optional. Lists Memberships that match the filter expression, following the
            +   * syntax outlined in https://google.aip.dev/160. Currently, filtering
            +   * can be done only based on Memberships's `name`, `labels`, `create_time`,
            +   * `update_time`, and `unique_id`.
            +   * 
            + * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
            +   * Optional. When requesting a 'page' of resources, `page_size` specifies
            +   * number of resources to return. If unspecified or set to 0, all resources
            +   * will be returned. Pagination is currently not supported; therefore, setting
            +   * this field does not have any impact for now.
            +   * 
            + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
            +   * Optional. Token returned by previous call to `ListBoundMemberships` which
            +   * specifies the position in the list from where to continue listing the
            +   * resources.
            +   * 
            + * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
            +   * Optional. Token returned by previous call to `ListBoundMemberships` which
            +   * specifies the position in the list from where to continue listing the
            +   * resources.
            +   * 
            + * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListBoundMembershipsResponse.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListBoundMembershipsResponse.java new file mode 100644 index 000000000000..1157ca6b8963 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListBoundMembershipsResponse.java @@ -0,0 +1,1416 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * List of Memberships bound to a Scope.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ListBoundMembershipsResponse} + */ +@com.google.protobuf.Generated +public final class ListBoundMembershipsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListBoundMembershipsResponse) + ListBoundMembershipsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListBoundMembershipsResponse"); + } + + // Use ListBoundMembershipsResponse.newBuilder() to construct. + private ListBoundMembershipsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListBoundMembershipsResponse() { + memberships_ = java.util.Collections.emptyList(); + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListBoundMembershipsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListBoundMembershipsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListBoundMembershipsResponse.class, + com.google.cloud.gkehub.v1.ListBoundMembershipsResponse.Builder.class); + } + + public static final int MEMBERSHIPS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List memberships_; + + /** + * + * + *
            +   * The list of Memberships bound to the given Scope.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + @java.lang.Override + public java.util.List getMembershipsList() { + return memberships_; + } + + /** + * + * + *
            +   * The list of Memberships bound to the given Scope.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + @java.lang.Override + public java.util.List + getMembershipsOrBuilderList() { + return memberships_; + } + + /** + * + * + *
            +   * The list of Memberships bound to the given Scope.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + @java.lang.Override + public int getMembershipsCount() { + return memberships_.size(); + } + + /** + * + * + *
            +   * The list of Memberships bound to the given Scope.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.Membership getMemberships(int index) { + return memberships_.get(index); + } + + /** + * + * + *
            +   * The list of Memberships bound to the given Scope.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipOrBuilder getMembershipsOrBuilder(int index) { + return memberships_.get(index); + } + + public static final int UNREACHABLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +   * List of locations that could not be reached while fetching this list.
            +   * 
            + * + * repeated string unreachable = 2; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
            +   * List of locations that could not be reached while fetching this list.
            +   * 
            + * + * repeated string unreachable = 2; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
            +   * List of locations that could not be reached while fetching this list.
            +   * 
            + * + * repeated string unreachable = 2; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
            +   * List of locations that could not be reached while fetching this list.
            +   * 
            + * + * repeated string unreachable = 2; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +   * A token to request the next page of resources from the
            +   * `ListBoundMemberships` method. The value of an empty string means that
            +   * there are no more resources to return.
            +   * 
            + * + * string next_page_token = 3; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * A token to request the next page of resources from the
            +   * `ListBoundMemberships` method. The value of an empty string means that
            +   * there are no more resources to return.
            +   * 
            + * + * string next_page_token = 3; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < memberships_.size(); i++) { + output.writeMessage(1, memberships_.get(i)); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, unreachable_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < memberships_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, memberships_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.ListBoundMembershipsResponse)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ListBoundMembershipsResponse other = + (com.google.cloud.gkehub.v1.ListBoundMembershipsResponse) obj; + + if (!getMembershipsList().equals(other.getMembershipsList())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getMembershipsCount() > 0) { + hash = (37 * hash) + MEMBERSHIPS_FIELD_NUMBER; + hash = (53 * hash) + getMembershipsList().hashCode(); + } + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.v1.ListBoundMembershipsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * List of Memberships bound to a Scope.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ListBoundMembershipsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListBoundMembershipsResponse) + com.google.cloud.gkehub.v1.ListBoundMembershipsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListBoundMembershipsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListBoundMembershipsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListBoundMembershipsResponse.class, + com.google.cloud.gkehub.v1.ListBoundMembershipsResponse.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ListBoundMembershipsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (membershipsBuilder_ == null) { + memberships_ = java.util.Collections.emptyList(); + } else { + memberships_ = null; + membershipsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListBoundMembershipsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListBoundMembershipsResponse getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ListBoundMembershipsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListBoundMembershipsResponse build() { + com.google.cloud.gkehub.v1.ListBoundMembershipsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListBoundMembershipsResponse buildPartial() { + com.google.cloud.gkehub.v1.ListBoundMembershipsResponse result = + new com.google.cloud.gkehub.v1.ListBoundMembershipsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gkehub.v1.ListBoundMembershipsResponse result) { + if (membershipsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + memberships_ = java.util.Collections.unmodifiableList(memberships_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.memberships_ = memberships_; + } else { + result.memberships_ = membershipsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.gkehub.v1.ListBoundMembershipsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ListBoundMembershipsResponse) { + return mergeFrom((com.google.cloud.gkehub.v1.ListBoundMembershipsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ListBoundMembershipsResponse other) { + if (other == com.google.cloud.gkehub.v1.ListBoundMembershipsResponse.getDefaultInstance()) + return this; + if (membershipsBuilder_ == null) { + if (!other.memberships_.isEmpty()) { + if (memberships_.isEmpty()) { + memberships_ = other.memberships_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMembershipsIsMutable(); + memberships_.addAll(other.memberships_); + } + onChanged(); + } + } else { + if (!other.memberships_.isEmpty()) { + if (membershipsBuilder_.isEmpty()) { + membershipsBuilder_.dispose(); + membershipsBuilder_ = null; + memberships_ = other.memberships_; + bitField0_ = (bitField0_ & ~0x00000001); + membershipsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMembershipsFieldBuilder() + : null; + } else { + membershipsBuilder_.addAllMessages(other.memberships_); + } + } + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000002; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.gkehub.v1.Membership m = + input.readMessage( + com.google.cloud.gkehub.v1.Membership.parser(), extensionRegistry); + if (membershipsBuilder_ == null) { + ensureMembershipsIsMutable(); + memberships_.add(m); + } else { + membershipsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 18 + case 26: + { + nextPageToken_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List memberships_ = + java.util.Collections.emptyList(); + + private void ensureMembershipsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + memberships_ = new java.util.ArrayList(memberships_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.Membership, + com.google.cloud.gkehub.v1.Membership.Builder, + com.google.cloud.gkehub.v1.MembershipOrBuilder> + membershipsBuilder_; + + /** + * + * + *
            +     * The list of Memberships bound to the given Scope.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public java.util.List getMembershipsList() { + if (membershipsBuilder_ == null) { + return java.util.Collections.unmodifiableList(memberships_); + } else { + return membershipsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * The list of Memberships bound to the given Scope.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public int getMembershipsCount() { + if (membershipsBuilder_ == null) { + return memberships_.size(); + } else { + return membershipsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * The list of Memberships bound to the given Scope.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public com.google.cloud.gkehub.v1.Membership getMemberships(int index) { + if (membershipsBuilder_ == null) { + return memberships_.get(index); + } else { + return membershipsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * The list of Memberships bound to the given Scope.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public Builder setMemberships(int index, com.google.cloud.gkehub.v1.Membership value) { + if (membershipsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembershipsIsMutable(); + memberships_.set(index, value); + onChanged(); + } else { + membershipsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The list of Memberships bound to the given Scope.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public Builder setMemberships( + int index, com.google.cloud.gkehub.v1.Membership.Builder builderForValue) { + if (membershipsBuilder_ == null) { + ensureMembershipsIsMutable(); + memberships_.set(index, builderForValue.build()); + onChanged(); + } else { + membershipsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of Memberships bound to the given Scope.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public Builder addMemberships(com.google.cloud.gkehub.v1.Membership value) { + if (membershipsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembershipsIsMutable(); + memberships_.add(value); + onChanged(); + } else { + membershipsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * The list of Memberships bound to the given Scope.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public Builder addMemberships(int index, com.google.cloud.gkehub.v1.Membership value) { + if (membershipsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembershipsIsMutable(); + memberships_.add(index, value); + onChanged(); + } else { + membershipsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The list of Memberships bound to the given Scope.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public Builder addMemberships(com.google.cloud.gkehub.v1.Membership.Builder builderForValue) { + if (membershipsBuilder_ == null) { + ensureMembershipsIsMutable(); + memberships_.add(builderForValue.build()); + onChanged(); + } else { + membershipsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of Memberships bound to the given Scope.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public Builder addMemberships( + int index, com.google.cloud.gkehub.v1.Membership.Builder builderForValue) { + if (membershipsBuilder_ == null) { + ensureMembershipsIsMutable(); + memberships_.add(index, builderForValue.build()); + onChanged(); + } else { + membershipsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of Memberships bound to the given Scope.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public Builder addAllMemberships( + java.lang.Iterable values) { + if (membershipsBuilder_ == null) { + ensureMembershipsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, memberships_); + onChanged(); + } else { + membershipsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * The list of Memberships bound to the given Scope.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public Builder clearMemberships() { + if (membershipsBuilder_ == null) { + memberships_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + membershipsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * The list of Memberships bound to the given Scope.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public Builder removeMemberships(int index) { + if (membershipsBuilder_ == null) { + ensureMembershipsIsMutable(); + memberships_.remove(index); + onChanged(); + } else { + membershipsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * The list of Memberships bound to the given Scope.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public com.google.cloud.gkehub.v1.Membership.Builder getMembershipsBuilder(int index) { + return internalGetMembershipsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * The list of Memberships bound to the given Scope.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public com.google.cloud.gkehub.v1.MembershipOrBuilder getMembershipsOrBuilder(int index) { + if (membershipsBuilder_ == null) { + return memberships_.get(index); + } else { + return membershipsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * The list of Memberships bound to the given Scope.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public java.util.List + getMembershipsOrBuilderList() { + if (membershipsBuilder_ != null) { + return membershipsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(memberships_); + } + } + + /** + * + * + *
            +     * The list of Memberships bound to the given Scope.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public com.google.cloud.gkehub.v1.Membership.Builder addMembershipsBuilder() { + return internalGetMembershipsFieldBuilder() + .addBuilder(com.google.cloud.gkehub.v1.Membership.getDefaultInstance()); + } + + /** + * + * + *
            +     * The list of Memberships bound to the given Scope.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public com.google.cloud.gkehub.v1.Membership.Builder addMembershipsBuilder(int index) { + return internalGetMembershipsFieldBuilder() + .addBuilder(index, com.google.cloud.gkehub.v1.Membership.getDefaultInstance()); + } + + /** + * + * + *
            +     * The list of Memberships bound to the given Scope.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + public java.util.List + getMembershipsBuilderList() { + return internalGetMembershipsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.Membership, + com.google.cloud.gkehub.v1.Membership.Builder, + com.google.cloud.gkehub.v1.MembershipOrBuilder> + internalGetMembershipsFieldBuilder() { + if (membershipsBuilder_ == null) { + membershipsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.Membership, + com.google.cloud.gkehub.v1.Membership.Builder, + com.google.cloud.gkehub.v1.MembershipOrBuilder>( + memberships_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + memberships_ = null; + } + return membershipsBuilder_; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
            +     * List of locations that could not be reached while fetching this list.
            +     * 
            + * + * repeated string unreachable = 2; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
            +     * List of locations that could not be reached while fetching this list.
            +     * 
            + * + * repeated string unreachable = 2; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
            +     * List of locations that could not be reached while fetching this list.
            +     * 
            + * + * repeated string unreachable = 2; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
            +     * List of locations that could not be reached while fetching this list.
            +     * 
            + * + * repeated string unreachable = 2; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
            +     * List of locations that could not be reached while fetching this list.
            +     * 
            + * + * repeated string unreachable = 2; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * List of locations that could not be reached while fetching this list.
            +     * 
            + * + * repeated string unreachable = 2; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * List of locations that could not be reached while fetching this list.
            +     * 
            + * + * repeated string unreachable = 2; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * List of locations that could not be reached while fetching this list.
            +     * 
            + * + * repeated string unreachable = 2; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +     * List of locations that could not be reached while fetching this list.
            +     * 
            + * + * repeated string unreachable = 2; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListBoundMemberships` method. The value of an empty string means that
            +     * there are no more resources to return.
            +     * 
            + * + * string next_page_token = 3; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListBoundMemberships` method. The value of an empty string means that
            +     * there are no more resources to return.
            +     * 
            + * + * string next_page_token = 3; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListBoundMemberships` method. The value of an empty string means that
            +     * there are no more resources to return.
            +     * 
            + * + * string next_page_token = 3; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListBoundMemberships` method. The value of an empty string means that
            +     * there are no more resources to return.
            +     * 
            + * + * string next_page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListBoundMemberships` method. The value of an empty string means that
            +     * there are no more resources to return.
            +     * 
            + * + * string next_page_token = 3; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListBoundMembershipsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListBoundMembershipsResponse) + private static final com.google.cloud.gkehub.v1.ListBoundMembershipsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListBoundMembershipsResponse(); + } + + public static com.google.cloud.gkehub.v1.ListBoundMembershipsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBoundMembershipsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListBoundMembershipsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListBoundMembershipsResponseOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListBoundMembershipsResponseOrBuilder.java new file mode 100644 index 000000000000..fafb94d864e6 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListBoundMembershipsResponseOrBuilder.java @@ -0,0 +1,168 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ListBoundMembershipsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListBoundMembershipsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The list of Memberships bound to the given Scope.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + java.util.List getMembershipsList(); + + /** + * + * + *
            +   * The list of Memberships bound to the given Scope.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + com.google.cloud.gkehub.v1.Membership getMemberships(int index); + + /** + * + * + *
            +   * The list of Memberships bound to the given Scope.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + int getMembershipsCount(); + + /** + * + * + *
            +   * The list of Memberships bound to the given Scope.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + java.util.List + getMembershipsOrBuilderList(); + + /** + * + * + *
            +   * The list of Memberships bound to the given Scope.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Membership memberships = 1; + */ + com.google.cloud.gkehub.v1.MembershipOrBuilder getMembershipsOrBuilder(int index); + + /** + * + * + *
            +   * List of locations that could not be reached while fetching this list.
            +   * 
            + * + * repeated string unreachable = 2; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
            +   * List of locations that could not be reached while fetching this list.
            +   * 
            + * + * repeated string unreachable = 2; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
            +   * List of locations that could not be reached while fetching this list.
            +   * 
            + * + * repeated string unreachable = 2; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
            +   * List of locations that could not be reached while fetching this list.
            +   * 
            + * + * repeated string unreachable = 2; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); + + /** + * + * + *
            +   * A token to request the next page of resources from the
            +   * `ListBoundMemberships` method. The value of an empty string means that
            +   * there are no more resources to return.
            +   * 
            + * + * string next_page_token = 3; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
            +   * A token to request the next page of resources from the
            +   * `ListBoundMemberships` method. The value of an empty string means that
            +   * there are no more resources to return.
            +   * 
            + * + * string next_page_token = 3; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequest.java index 9df1d041dc6d..5902a1f51f3b 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequest.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequest.java @@ -344,6 +344,28 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } + public static final int RETURN_PARTIAL_SUCCESS_FIELD_NUMBER = 6; + private boolean returnPartialSuccess_ = false; + + /** + * + * + *
            +   * Optional. If set to true, the response will return partial results when
            +   * some regions are unreachable and the unreachable field in Feature proto
            +   * will be populated. If set to false, the request will fail when some regions
            +   * are unreachable.
            +   * 
            + * + * bool return_partial_success = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -373,6 +395,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); } + if (returnPartialSuccess_ != false) { + output.writeBool(6, returnPartialSuccess_); + } getUnknownFields().writeTo(output); } @@ -397,6 +422,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); } + if (returnPartialSuccess_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, returnPartialSuccess_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -418,6 +446,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPageToken().equals(other.getPageToken())) return false; if (!getFilter().equals(other.getFilter())) return false; if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getReturnPartialSuccess() != other.getReturnPartialSuccess()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -439,6 +468,8 @@ public int hashCode() { hash = (53 * hash) + getFilter().hashCode(); hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + RETURN_PARTIAL_SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnPartialSuccess()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -584,6 +615,7 @@ public Builder clear() { pageToken_ = ""; filter_ = ""; orderBy_ = ""; + returnPartialSuccess_ = false; return this; } @@ -635,6 +667,9 @@ private void buildPartial0(com.google.cloud.gkehub.v1.ListFeaturesRequest result if (((from_bitField0_ & 0x00000010) != 0)) { result.orderBy_ = orderBy_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.returnPartialSuccess_ = returnPartialSuccess_; + } } @java.lang.Override @@ -672,6 +707,9 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1.ListFeaturesRequest other) { bitField0_ |= 0x00000010; onChanged(); } + if (other.getReturnPartialSuccess() != false) { + setReturnPartialSuccess(other.getReturnPartialSuccess()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -728,6 +766,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 42 + case 48: + { + returnPartialSuccess_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1348,6 +1392,71 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { return this; } + private boolean returnPartialSuccess_; + + /** + * + * + *
            +     * Optional. If set to true, the response will return partial results when
            +     * some regions are unreachable and the unreachable field in Feature proto
            +     * will be populated. If set to false, the request will fail when some regions
            +     * are unreachable.
            +     * 
            + * + * bool return_partial_success = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + + /** + * + * + *
            +     * Optional. If set to true, the response will return partial results when
            +     * some regions are unreachable and the unreachable field in Feature proto
            +     * will be populated. If set to false, the request will fail when some regions
            +     * are unreachable.
            +     * 
            + * + * bool return_partial_success = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The returnPartialSuccess to set. + * @return This builder for chaining. + */ + public Builder setReturnPartialSuccess(boolean value) { + + returnPartialSuccess_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. If set to true, the response will return partial results when
            +     * some regions are unreachable and the unreachable field in Feature proto
            +     * will be populated. If set to false, the request will fail when some regions
            +     * are unreachable.
            +     * 
            + * + * bool return_partial_success = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearReturnPartialSuccess() { + bitField0_ = (bitField0_ & ~0x00000020); + returnPartialSuccess_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListFeaturesRequest) } diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequestOrBuilder.java index 5b10536c66a0..a36bc2864ad9 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequestOrBuilder.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequestOrBuilder.java @@ -182,4 +182,20 @@ public interface ListFeaturesRequestOrBuilder * @return The bytes for orderBy. */ com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
            +   * Optional. If set to true, the response will return partial results when
            +   * some regions are unreachable and the unreachable field in Feature proto
            +   * will be populated. If set to false, the request will fail when some regions
            +   * are unreachable.
            +   * 
            + * + * bool return_partial_success = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnPartialSuccess. + */ + boolean getReturnPartialSuccess(); } diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFleetsRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFleetsRequest.java new file mode 100644 index 000000000000..804c23efef22 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFleetsRequest.java @@ -0,0 +1,938 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Request message for the `GkeHub.ListFleets` method.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ListFleetsRequest} + */ +@com.google.protobuf.Generated +public final class ListFleetsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListFleetsRequest) + ListFleetsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListFleetsRequest"); + } + + // Use ListFleetsRequest.newBuilder() to construct. + private ListFleetsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListFleetsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListFleetsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListFleetsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListFleetsRequest.class, + com.google.cloud.gkehub.v1.ListFleetsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The organization or project to list for Fleets under, in the
            +   * format `organizations/*/locations/*` or `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The organization or project to list for Fleets under, in the
            +   * format `organizations/*/locations/*` or `projects/*/locations/*`.
            +   * 
            + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +   * Optional. A page token, received from a previous `ListFleets` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to `ListFleets` must match
            +   * the call that provided the page token.
            +   * 
            + * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. A page token, received from a previous `ListFleets` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to `ListFleets` must match
            +   * the call that provided the page token.
            +   * 
            + * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + + /** + * + * + *
            +   * Optional. The maximum number of fleets to return. The service may return
            +   * fewer than this value. If unspecified, at most 200 fleets will be returned.
            +   * The maximum value is 1000; values above 1000 will be coerced to 1000.
            +   * 
            + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, pageToken_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, pageToken_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.ListFleetsRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ListFleetsRequest other = + (com.google.cloud.gkehub.v1.ListFleetsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ListFleetsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListFleetsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListFleetsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListFleetsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListFleetsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListFleetsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListFleetsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListFleetsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListFleetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListFleetsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListFleetsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListFleetsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkehub.v1.ListFleetsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for the `GkeHub.ListFleets` method.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ListFleetsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListFleetsRequest) + com.google.cloud.gkehub.v1.ListFleetsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListFleetsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListFleetsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListFleetsRequest.class, + com.google.cloud.gkehub.v1.ListFleetsRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ListFleetsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageToken_ = ""; + pageSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListFleetsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListFleetsRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ListFleetsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListFleetsRequest build() { + com.google.cloud.gkehub.v1.ListFleetsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListFleetsRequest buildPartial() { + com.google.cloud.gkehub.v1.ListFleetsRequest result = + new com.google.cloud.gkehub.v1.ListFleetsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.ListFleetsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ListFleetsRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.ListFleetsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ListFleetsRequest other) { + if (other == com.google.cloud.gkehub.v1.ListFleetsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
            +     * Required. The organization or project to list for Fleets under, in the
            +     * format `organizations/*/locations/*` or `projects/*/locations/*`.
            +     * 
            + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The organization or project to list for Fleets under, in the
            +     * format `organizations/*/locations/*` or `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The organization or project to list for Fleets under, in the
            +     * format `organizations/*/locations/*` or `projects/*/locations/*`.
            +     * 
            + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The organization or project to list for Fleets under, in the
            +     * format `organizations/*/locations/*` or `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The organization or project to list for Fleets under, in the
            +     * format `organizations/*/locations/*` or `projects/*/locations/*`.
            +     * 
            + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +     * Optional. A page token, received from a previous `ListFleets` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to `ListFleets` must match
            +     * the call that provided the page token.
            +     * 
            + * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. A page token, received from a previous `ListFleets` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to `ListFleets` must match
            +     * the call that provided the page token.
            +     * 
            + * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. A page token, received from a previous `ListFleets` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to `ListFleets` must match
            +     * the call that provided the page token.
            +     * 
            + * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. A page token, received from a previous `ListFleets` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to `ListFleets` must match
            +     * the call that provided the page token.
            +     * 
            + * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. A page token, received from a previous `ListFleets` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to `ListFleets` must match
            +     * the call that provided the page token.
            +     * 
            + * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
            +     * Optional. The maximum number of fleets to return. The service may return
            +     * fewer than this value. If unspecified, at most 200 fleets will be returned.
            +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
            +     * 
            + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
            +     * Optional. The maximum number of fleets to return. The service may return
            +     * fewer than this value. If unspecified, at most 200 fleets will be returned.
            +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
            +     * 
            + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The maximum number of fleets to return. The service may return
            +     * fewer than this value. If unspecified, at most 200 fleets will be returned.
            +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
            +     * 
            + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListFleetsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListFleetsRequest) + private static final com.google.cloud.gkehub.v1.ListFleetsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListFleetsRequest(); + } + + public static com.google.cloud.gkehub.v1.ListFleetsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFleetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListFleetsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFleetsRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFleetsRequestOrBuilder.java new file mode 100644 index 000000000000..ed00bb4338af --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFleetsRequestOrBuilder.java @@ -0,0 +1,109 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ListFleetsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListFleetsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The organization or project to list for Fleets under, in the
            +   * format `organizations/*/locations/*` or `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The organization or project to list for Fleets under, in the
            +   * format `organizations/*/locations/*` or `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Optional. A page token, received from a previous `ListFleets` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to `ListFleets` must match
            +   * the call that provided the page token.
            +   * 
            + * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
            +   * Optional. A page token, received from a previous `ListFleets` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to `ListFleets` must match
            +   * the call that provided the page token.
            +   * 
            + * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
            +   * Optional. The maximum number of fleets to return. The service may return
            +   * fewer than this value. If unspecified, at most 200 fleets will be returned.
            +   * The maximum value is 1000; values above 1000 will be coerced to 1000.
            +   * 
            + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFleetsResponse.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFleetsResponse.java new file mode 100644 index 000000000000..03d1a42b0b4c --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFleetsResponse.java @@ -0,0 +1,1119 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Response message for the `GkeHub.ListFleetsResponse` method.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ListFleetsResponse} + */ +@com.google.protobuf.Generated +public final class ListFleetsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListFleetsResponse) + ListFleetsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListFleetsResponse"); + } + + // Use ListFleetsResponse.newBuilder() to construct. + private ListFleetsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListFleetsResponse() { + fleets_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListFleetsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListFleetsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListFleetsResponse.class, + com.google.cloud.gkehub.v1.ListFleetsResponse.Builder.class); + } + + public static final int FLEETS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List fleets_; + + /** + * + * + *
            +   * The list of matching fleets.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + @java.lang.Override + public java.util.List getFleetsList() { + return fleets_; + } + + /** + * + * + *
            +   * The list of matching fleets.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + @java.lang.Override + public java.util.List + getFleetsOrBuilderList() { + return fleets_; + } + + /** + * + * + *
            +   * The list of matching fleets.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + @java.lang.Override + public int getFleetsCount() { + return fleets_.size(); + } + + /** + * + * + *
            +   * The list of matching fleets.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.Fleet getFleets(int index) { + return fleets_.get(index); + } + + /** + * + * + *
            +   * The list of matching fleets.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.FleetOrBuilder getFleetsOrBuilder(int index) { + return fleets_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * The token is only valid for 1h.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * The token is only valid for 1h.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < fleets_.size(); i++) { + output.writeMessage(1, fleets_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < fleets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, fleets_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.ListFleetsResponse)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ListFleetsResponse other = + (com.google.cloud.gkehub.v1.ListFleetsResponse) obj; + + if (!getFleetsList().equals(other.getFleetsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getFleetsCount() > 0) { + hash = (37 * hash) + FLEETS_FIELD_NUMBER; + hash = (53 * hash) + getFleetsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ListFleetsResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListFleetsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListFleetsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListFleetsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListFleetsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListFleetsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListFleetsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListFleetsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListFleetsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListFleetsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListFleetsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListFleetsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkehub.v1.ListFleetsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Response message for the `GkeHub.ListFleetsResponse` method.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ListFleetsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListFleetsResponse) + com.google.cloud.gkehub.v1.ListFleetsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListFleetsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListFleetsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListFleetsResponse.class, + com.google.cloud.gkehub.v1.ListFleetsResponse.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ListFleetsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (fleetsBuilder_ == null) { + fleets_ = java.util.Collections.emptyList(); + } else { + fleets_ = null; + fleetsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListFleetsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListFleetsResponse getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ListFleetsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListFleetsResponse build() { + com.google.cloud.gkehub.v1.ListFleetsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListFleetsResponse buildPartial() { + com.google.cloud.gkehub.v1.ListFleetsResponse result = + new com.google.cloud.gkehub.v1.ListFleetsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.gkehub.v1.ListFleetsResponse result) { + if (fleetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + fleets_ = java.util.Collections.unmodifiableList(fleets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.fleets_ = fleets_; + } else { + result.fleets_ = fleetsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.gkehub.v1.ListFleetsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ListFleetsResponse) { + return mergeFrom((com.google.cloud.gkehub.v1.ListFleetsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ListFleetsResponse other) { + if (other == com.google.cloud.gkehub.v1.ListFleetsResponse.getDefaultInstance()) return this; + if (fleetsBuilder_ == null) { + if (!other.fleets_.isEmpty()) { + if (fleets_.isEmpty()) { + fleets_ = other.fleets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFleetsIsMutable(); + fleets_.addAll(other.fleets_); + } + onChanged(); + } + } else { + if (!other.fleets_.isEmpty()) { + if (fleetsBuilder_.isEmpty()) { + fleetsBuilder_.dispose(); + fleetsBuilder_ = null; + fleets_ = other.fleets_; + bitField0_ = (bitField0_ & ~0x00000001); + fleetsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetFleetsFieldBuilder() + : null; + } else { + fleetsBuilder_.addAllMessages(other.fleets_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.gkehub.v1.Fleet m = + input.readMessage(com.google.cloud.gkehub.v1.Fleet.parser(), extensionRegistry); + if (fleetsBuilder_ == null) { + ensureFleetsIsMutable(); + fleets_.add(m); + } else { + fleetsBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List fleets_ = + java.util.Collections.emptyList(); + + private void ensureFleetsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + fleets_ = new java.util.ArrayList(fleets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.Fleet, + com.google.cloud.gkehub.v1.Fleet.Builder, + com.google.cloud.gkehub.v1.FleetOrBuilder> + fleetsBuilder_; + + /** + * + * + *
            +     * The list of matching fleets.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public java.util.List getFleetsList() { + if (fleetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(fleets_); + } else { + return fleetsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * The list of matching fleets.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public int getFleetsCount() { + if (fleetsBuilder_ == null) { + return fleets_.size(); + } else { + return fleetsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * The list of matching fleets.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public com.google.cloud.gkehub.v1.Fleet getFleets(int index) { + if (fleetsBuilder_ == null) { + return fleets_.get(index); + } else { + return fleetsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * The list of matching fleets.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public Builder setFleets(int index, com.google.cloud.gkehub.v1.Fleet value) { + if (fleetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFleetsIsMutable(); + fleets_.set(index, value); + onChanged(); + } else { + fleetsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The list of matching fleets.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public Builder setFleets(int index, com.google.cloud.gkehub.v1.Fleet.Builder builderForValue) { + if (fleetsBuilder_ == null) { + ensureFleetsIsMutable(); + fleets_.set(index, builderForValue.build()); + onChanged(); + } else { + fleetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of matching fleets.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public Builder addFleets(com.google.cloud.gkehub.v1.Fleet value) { + if (fleetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFleetsIsMutable(); + fleets_.add(value); + onChanged(); + } else { + fleetsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * The list of matching fleets.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public Builder addFleets(int index, com.google.cloud.gkehub.v1.Fleet value) { + if (fleetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFleetsIsMutable(); + fleets_.add(index, value); + onChanged(); + } else { + fleetsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The list of matching fleets.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public Builder addFleets(com.google.cloud.gkehub.v1.Fleet.Builder builderForValue) { + if (fleetsBuilder_ == null) { + ensureFleetsIsMutable(); + fleets_.add(builderForValue.build()); + onChanged(); + } else { + fleetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of matching fleets.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public Builder addFleets(int index, com.google.cloud.gkehub.v1.Fleet.Builder builderForValue) { + if (fleetsBuilder_ == null) { + ensureFleetsIsMutable(); + fleets_.add(index, builderForValue.build()); + onChanged(); + } else { + fleetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of matching fleets.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public Builder addAllFleets( + java.lang.Iterable values) { + if (fleetsBuilder_ == null) { + ensureFleetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fleets_); + onChanged(); + } else { + fleetsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * The list of matching fleets.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public Builder clearFleets() { + if (fleetsBuilder_ == null) { + fleets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + fleetsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * The list of matching fleets.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public Builder removeFleets(int index) { + if (fleetsBuilder_ == null) { + ensureFleetsIsMutable(); + fleets_.remove(index); + onChanged(); + } else { + fleetsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * The list of matching fleets.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public com.google.cloud.gkehub.v1.Fleet.Builder getFleetsBuilder(int index) { + return internalGetFleetsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * The list of matching fleets.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public com.google.cloud.gkehub.v1.FleetOrBuilder getFleetsOrBuilder(int index) { + if (fleetsBuilder_ == null) { + return fleets_.get(index); + } else { + return fleetsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * The list of matching fleets.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public java.util.List + getFleetsOrBuilderList() { + if (fleetsBuilder_ != null) { + return fleetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(fleets_); + } + } + + /** + * + * + *
            +     * The list of matching fleets.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public com.google.cloud.gkehub.v1.Fleet.Builder addFleetsBuilder() { + return internalGetFleetsFieldBuilder() + .addBuilder(com.google.cloud.gkehub.v1.Fleet.getDefaultInstance()); + } + + /** + * + * + *
            +     * The list of matching fleets.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public com.google.cloud.gkehub.v1.Fleet.Builder addFleetsBuilder(int index) { + return internalGetFleetsFieldBuilder() + .addBuilder(index, com.google.cloud.gkehub.v1.Fleet.getDefaultInstance()); + } + + /** + * + * + *
            +     * The list of matching fleets.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + public java.util.List getFleetsBuilderList() { + return internalGetFleetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.Fleet, + com.google.cloud.gkehub.v1.Fleet.Builder, + com.google.cloud.gkehub.v1.FleetOrBuilder> + internalGetFleetsFieldBuilder() { + if (fleetsBuilder_ == null) { + fleetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.Fleet, + com.google.cloud.gkehub.v1.Fleet.Builder, + com.google.cloud.gkehub.v1.FleetOrBuilder>( + fleets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + fleets_ = null; + } + return fleetsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * The token is only valid for 1h.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * The token is only valid for 1h.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * The token is only valid for 1h.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * The token is only valid for 1h.
            +     * 
            + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * If this field is omitted, there are no subsequent pages.
            +     * The token is only valid for 1h.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListFleetsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListFleetsResponse) + private static final com.google.cloud.gkehub.v1.ListFleetsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListFleetsResponse(); + } + + public static com.google.cloud.gkehub.v1.ListFleetsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFleetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListFleetsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFleetsResponseOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFleetsResponseOrBuilder.java new file mode 100644 index 000000000000..3172c0bf4c81 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFleetsResponseOrBuilder.java @@ -0,0 +1,113 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ListFleetsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListFleetsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The list of matching fleets.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + java.util.List getFleetsList(); + + /** + * + * + *
            +   * The list of matching fleets.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + com.google.cloud.gkehub.v1.Fleet getFleets(int index); + + /** + * + * + *
            +   * The list of matching fleets.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + int getFleetsCount(); + + /** + * + * + *
            +   * The list of matching fleets.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + java.util.List getFleetsOrBuilderList(); + + /** + * + * + *
            +   * The list of matching fleets.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Fleet fleets = 1; + */ + com.google.cloud.gkehub.v1.FleetOrBuilder getFleetsOrBuilder(int index); + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * The token is only valid for 1h.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * The token is only valid for 1h.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipBindingsRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipBindingsRequest.java new file mode 100644 index 000000000000..7ec4ee5ccb74 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipBindingsRequest.java @@ -0,0 +1,1122 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Request to list MembershipBinding.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ListMembershipBindingsRequest} + */ +@com.google.protobuf.Generated +public final class ListMembershipBindingsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListMembershipBindingsRequest) + ListMembershipBindingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListMembershipBindingsRequest"); + } + + // Use ListMembershipBindingsRequest.newBuilder() to construct. + private ListMembershipBindingsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListMembershipBindingsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListMembershipBindingsRequest.class, + com.google.cloud.gkehub.v1.ListMembershipBindingsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The parent Membership for which the MembershipBindings will be
            +   * listed. Specified in the format `projects/*/locations/*/memberships/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The parent Membership for which the MembershipBindings will be
            +   * listed. Specified in the format `projects/*/locations/*/memberships/*`.
            +   * 
            + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
            +   * Optional. When requesting a 'page' of resources, `page_size` specifies
            +   * number of resources to return. If unspecified or set to 0, all resources
            +   * will be returned.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +   * Optional. Token returned by previous call to `ListMembershipBindings` which
            +   * specifies the position in the list from where to continue listing the
            +   * resources.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Token returned by previous call to `ListMembershipBindings` which
            +   * specifies the position in the list from where to continue listing the
            +   * resources.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
            +   * Optional. Lists MembershipBindings that match the filter expression,
            +   * following the syntax outlined in https://google.aip.dev/160.
            +   * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Lists MembershipBindings that match the filter expression,
            +   * following the syntax outlined in https://google.aip.dev/160.
            +   * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.ListMembershipBindingsRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ListMembershipBindingsRequest other = + (com.google.cloud.gkehub.v1.ListMembershipBindingsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.v1.ListMembershipBindingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request to list MembershipBinding.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ListMembershipBindingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListMembershipBindingsRequest) + com.google.cloud.gkehub.v1.ListMembershipBindingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListMembershipBindingsRequest.class, + com.google.cloud.gkehub.v1.ListMembershipBindingsRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ListMembershipBindingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipBindingsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListMembershipBindingsRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ListMembershipBindingsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListMembershipBindingsRequest build() { + com.google.cloud.gkehub.v1.ListMembershipBindingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListMembershipBindingsRequest buildPartial() { + com.google.cloud.gkehub.v1.ListMembershipBindingsRequest result = + new com.google.cloud.gkehub.v1.ListMembershipBindingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.ListMembershipBindingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ListMembershipBindingsRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.ListMembershipBindingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ListMembershipBindingsRequest other) { + if (other == com.google.cloud.gkehub.v1.ListMembershipBindingsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
            +     * Required. The parent Membership for which the MembershipBindings will be
            +     * listed. Specified in the format `projects/*/locations/*/memberships/*`.
            +     * 
            + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The parent Membership for which the MembershipBindings will be
            +     * listed. Specified in the format `projects/*/locations/*/memberships/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The parent Membership for which the MembershipBindings will be
            +     * listed. Specified in the format `projects/*/locations/*/memberships/*`.
            +     * 
            + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent Membership for which the MembershipBindings will be
            +     * listed. Specified in the format `projects/*/locations/*/memberships/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent Membership for which the MembershipBindings will be
            +     * listed. Specified in the format `projects/*/locations/*/memberships/*`.
            +     * 
            + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
            +     * Optional. When requesting a 'page' of resources, `page_size` specifies
            +     * number of resources to return. If unspecified or set to 0, all resources
            +     * will be returned.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
            +     * Optional. When requesting a 'page' of resources, `page_size` specifies
            +     * number of resources to return. If unspecified or set to 0, all resources
            +     * will be returned.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. When requesting a 'page' of resources, `page_size` specifies
            +     * number of resources to return. If unspecified or set to 0, all resources
            +     * will be returned.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +     * Optional. Token returned by previous call to `ListMembershipBindings` which
            +     * specifies the position in the list from where to continue listing the
            +     * resources.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Token returned by previous call to `ListMembershipBindings` which
            +     * specifies the position in the list from where to continue listing the
            +     * resources.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Token returned by previous call to `ListMembershipBindings` which
            +     * specifies the position in the list from where to continue listing the
            +     * resources.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Token returned by previous call to `ListMembershipBindings` which
            +     * specifies the position in the list from where to continue listing the
            +     * resources.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Token returned by previous call to `ListMembershipBindings` which
            +     * specifies the position in the list from where to continue listing the
            +     * resources.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
            +     * Optional. Lists MembershipBindings that match the filter expression,
            +     * following the syntax outlined in https://google.aip.dev/160.
            +     * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Lists MembershipBindings that match the filter expression,
            +     * following the syntax outlined in https://google.aip.dev/160.
            +     * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Lists MembershipBindings that match the filter expression,
            +     * following the syntax outlined in https://google.aip.dev/160.
            +     * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Lists MembershipBindings that match the filter expression,
            +     * following the syntax outlined in https://google.aip.dev/160.
            +     * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Lists MembershipBindings that match the filter expression,
            +     * following the syntax outlined in https://google.aip.dev/160.
            +     * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListMembershipBindingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListMembershipBindingsRequest) + private static final com.google.cloud.gkehub.v1.ListMembershipBindingsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListMembershipBindingsRequest(); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMembershipBindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListMembershipBindingsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipBindingsRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipBindingsRequestOrBuilder.java new file mode 100644 index 000000000000..0316ed4a38af --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipBindingsRequestOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ListMembershipBindingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListMembershipBindingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The parent Membership for which the MembershipBindings will be
            +   * listed. Specified in the format `projects/*/locations/*/memberships/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The parent Membership for which the MembershipBindings will be
            +   * listed. Specified in the format `projects/*/locations/*/memberships/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Optional. When requesting a 'page' of resources, `page_size` specifies
            +   * number of resources to return. If unspecified or set to 0, all resources
            +   * will be returned.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
            +   * Optional. Token returned by previous call to `ListMembershipBindings` which
            +   * specifies the position in the list from where to continue listing the
            +   * resources.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
            +   * Optional. Token returned by previous call to `ListMembershipBindings` which
            +   * specifies the position in the list from where to continue listing the
            +   * resources.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
            +   * Optional. Lists MembershipBindings that match the filter expression,
            +   * following the syntax outlined in https://google.aip.dev/160.
            +   * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
            +   * Optional. Lists MembershipBindings that match the filter expression,
            +   * following the syntax outlined in https://google.aip.dev/160.
            +   * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipBindingsResponse.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipBindingsResponse.java new file mode 100644 index 000000000000..a80d3e551e39 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipBindingsResponse.java @@ -0,0 +1,1430 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * List of MembershipBindings.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ListMembershipBindingsResponse} + */ +@com.google.protobuf.Generated +public final class ListMembershipBindingsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListMembershipBindingsResponse) + ListMembershipBindingsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListMembershipBindingsResponse"); + } + + // Use ListMembershipBindingsResponse.newBuilder() to construct. + private ListMembershipBindingsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListMembershipBindingsResponse() { + membershipBindings_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListMembershipBindingsResponse.class, + com.google.cloud.gkehub.v1.ListMembershipBindingsResponse.Builder.class); + } + + public static final int MEMBERSHIP_BINDINGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List membershipBindings_; + + /** + * + * + *
            +   * The list of membership_bindings
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + @java.lang.Override + public java.util.List getMembershipBindingsList() { + return membershipBindings_; + } + + /** + * + * + *
            +   * The list of membership_bindings
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + @java.lang.Override + public java.util.List + getMembershipBindingsOrBuilderList() { + return membershipBindings_; + } + + /** + * + * + *
            +   * The list of membership_bindings
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + @java.lang.Override + public int getMembershipBindingsCount() { + return membershipBindings_.size(); + } + + /** + * + * + *
            +   * The list of membership_bindings
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipBinding getMembershipBindings(int index) { + return membershipBindings_.get(index); + } + + /** + * + * + *
            +   * The list of membership_bindings
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipBindingOrBuilder getMembershipBindingsOrBuilder( + int index) { + return membershipBindings_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +   * A token to request the next page of resources from the
            +   * `ListMembershipBindings` method. The value of an empty string means
            +   * that there are no more resources to return.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * A token to request the next page of resources from the
            +   * `ListMembershipBindings` method. The value of an empty string means
            +   * that there are no more resources to return.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +   * List of locations that could not be reached while fetching this list.
            +   * 
            + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
            +   * List of locations that could not be reached while fetching this list.
            +   * 
            + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
            +   * List of locations that could not be reached while fetching this list.
            +   * 
            + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
            +   * List of locations that could not be reached while fetching this list.
            +   * 
            + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < membershipBindings_.size(); i++) { + output.writeMessage(1, membershipBindings_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < membershipBindings_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, membershipBindings_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.ListMembershipBindingsResponse)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ListMembershipBindingsResponse other = + (com.google.cloud.gkehub.v1.ListMembershipBindingsResponse) obj; + + if (!getMembershipBindingsList().equals(other.getMembershipBindingsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getMembershipBindingsCount() > 0) { + hash = (37 * hash) + MEMBERSHIP_BINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getMembershipBindingsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.v1.ListMembershipBindingsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * List of MembershipBindings.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ListMembershipBindingsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListMembershipBindingsResponse) + com.google.cloud.gkehub.v1.ListMembershipBindingsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListMembershipBindingsResponse.class, + com.google.cloud.gkehub.v1.ListMembershipBindingsResponse.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ListMembershipBindingsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (membershipBindingsBuilder_ == null) { + membershipBindings_ = java.util.Collections.emptyList(); + } else { + membershipBindings_ = null; + membershipBindingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipBindingsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListMembershipBindingsResponse getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ListMembershipBindingsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListMembershipBindingsResponse build() { + com.google.cloud.gkehub.v1.ListMembershipBindingsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListMembershipBindingsResponse buildPartial() { + com.google.cloud.gkehub.v1.ListMembershipBindingsResponse result = + new com.google.cloud.gkehub.v1.ListMembershipBindingsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gkehub.v1.ListMembershipBindingsResponse result) { + if (membershipBindingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + membershipBindings_ = java.util.Collections.unmodifiableList(membershipBindings_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.membershipBindings_ = membershipBindings_; + } else { + result.membershipBindings_ = membershipBindingsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.gkehub.v1.ListMembershipBindingsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ListMembershipBindingsResponse) { + return mergeFrom((com.google.cloud.gkehub.v1.ListMembershipBindingsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ListMembershipBindingsResponse other) { + if (other == com.google.cloud.gkehub.v1.ListMembershipBindingsResponse.getDefaultInstance()) + return this; + if (membershipBindingsBuilder_ == null) { + if (!other.membershipBindings_.isEmpty()) { + if (membershipBindings_.isEmpty()) { + membershipBindings_ = other.membershipBindings_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMembershipBindingsIsMutable(); + membershipBindings_.addAll(other.membershipBindings_); + } + onChanged(); + } + } else { + if (!other.membershipBindings_.isEmpty()) { + if (membershipBindingsBuilder_.isEmpty()) { + membershipBindingsBuilder_.dispose(); + membershipBindingsBuilder_ = null; + membershipBindings_ = other.membershipBindings_; + bitField0_ = (bitField0_ & ~0x00000001); + membershipBindingsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMembershipBindingsFieldBuilder() + : null; + } else { + membershipBindingsBuilder_.addAllMessages(other.membershipBindings_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.gkehub.v1.MembershipBinding m = + input.readMessage( + com.google.cloud.gkehub.v1.MembershipBinding.parser(), extensionRegistry); + if (membershipBindingsBuilder_ == null) { + ensureMembershipBindingsIsMutable(); + membershipBindings_.add(m); + } else { + membershipBindingsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List membershipBindings_ = + java.util.Collections.emptyList(); + + private void ensureMembershipBindingsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + membershipBindings_ = + new java.util.ArrayList( + membershipBindings_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.MembershipBinding, + com.google.cloud.gkehub.v1.MembershipBinding.Builder, + com.google.cloud.gkehub.v1.MembershipBindingOrBuilder> + membershipBindingsBuilder_; + + /** + * + * + *
            +     * The list of membership_bindings
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public java.util.List + getMembershipBindingsList() { + if (membershipBindingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(membershipBindings_); + } else { + return membershipBindingsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * The list of membership_bindings
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public int getMembershipBindingsCount() { + if (membershipBindingsBuilder_ == null) { + return membershipBindings_.size(); + } else { + return membershipBindingsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * The list of membership_bindings
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public com.google.cloud.gkehub.v1.MembershipBinding getMembershipBindings(int index) { + if (membershipBindingsBuilder_ == null) { + return membershipBindings_.get(index); + } else { + return membershipBindingsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * The list of membership_bindings
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public Builder setMembershipBindings( + int index, com.google.cloud.gkehub.v1.MembershipBinding value) { + if (membershipBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembershipBindingsIsMutable(); + membershipBindings_.set(index, value); + onChanged(); + } else { + membershipBindingsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The list of membership_bindings
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public Builder setMembershipBindings( + int index, com.google.cloud.gkehub.v1.MembershipBinding.Builder builderForValue) { + if (membershipBindingsBuilder_ == null) { + ensureMembershipBindingsIsMutable(); + membershipBindings_.set(index, builderForValue.build()); + onChanged(); + } else { + membershipBindingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of membership_bindings
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public Builder addMembershipBindings(com.google.cloud.gkehub.v1.MembershipBinding value) { + if (membershipBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembershipBindingsIsMutable(); + membershipBindings_.add(value); + onChanged(); + } else { + membershipBindingsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * The list of membership_bindings
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public Builder addMembershipBindings( + int index, com.google.cloud.gkehub.v1.MembershipBinding value) { + if (membershipBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembershipBindingsIsMutable(); + membershipBindings_.add(index, value); + onChanged(); + } else { + membershipBindingsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The list of membership_bindings
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public Builder addMembershipBindings( + com.google.cloud.gkehub.v1.MembershipBinding.Builder builderForValue) { + if (membershipBindingsBuilder_ == null) { + ensureMembershipBindingsIsMutable(); + membershipBindings_.add(builderForValue.build()); + onChanged(); + } else { + membershipBindingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of membership_bindings
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public Builder addMembershipBindings( + int index, com.google.cloud.gkehub.v1.MembershipBinding.Builder builderForValue) { + if (membershipBindingsBuilder_ == null) { + ensureMembershipBindingsIsMutable(); + membershipBindings_.add(index, builderForValue.build()); + onChanged(); + } else { + membershipBindingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of membership_bindings
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public Builder addAllMembershipBindings( + java.lang.Iterable values) { + if (membershipBindingsBuilder_ == null) { + ensureMembershipBindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, membershipBindings_); + onChanged(); + } else { + membershipBindingsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * The list of membership_bindings
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public Builder clearMembershipBindings() { + if (membershipBindingsBuilder_ == null) { + membershipBindings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + membershipBindingsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * The list of membership_bindings
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public Builder removeMembershipBindings(int index) { + if (membershipBindingsBuilder_ == null) { + ensureMembershipBindingsIsMutable(); + membershipBindings_.remove(index); + onChanged(); + } else { + membershipBindingsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * The list of membership_bindings
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public com.google.cloud.gkehub.v1.MembershipBinding.Builder getMembershipBindingsBuilder( + int index) { + return internalGetMembershipBindingsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * The list of membership_bindings
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public com.google.cloud.gkehub.v1.MembershipBindingOrBuilder getMembershipBindingsOrBuilder( + int index) { + if (membershipBindingsBuilder_ == null) { + return membershipBindings_.get(index); + } else { + return membershipBindingsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * The list of membership_bindings
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public java.util.List + getMembershipBindingsOrBuilderList() { + if (membershipBindingsBuilder_ != null) { + return membershipBindingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(membershipBindings_); + } + } + + /** + * + * + *
            +     * The list of membership_bindings
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public com.google.cloud.gkehub.v1.MembershipBinding.Builder addMembershipBindingsBuilder() { + return internalGetMembershipBindingsFieldBuilder() + .addBuilder(com.google.cloud.gkehub.v1.MembershipBinding.getDefaultInstance()); + } + + /** + * + * + *
            +     * The list of membership_bindings
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public com.google.cloud.gkehub.v1.MembershipBinding.Builder addMembershipBindingsBuilder( + int index) { + return internalGetMembershipBindingsFieldBuilder() + .addBuilder(index, com.google.cloud.gkehub.v1.MembershipBinding.getDefaultInstance()); + } + + /** + * + * + *
            +     * The list of membership_bindings
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + public java.util.List + getMembershipBindingsBuilderList() { + return internalGetMembershipBindingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.MembershipBinding, + com.google.cloud.gkehub.v1.MembershipBinding.Builder, + com.google.cloud.gkehub.v1.MembershipBindingOrBuilder> + internalGetMembershipBindingsFieldBuilder() { + if (membershipBindingsBuilder_ == null) { + membershipBindingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.MembershipBinding, + com.google.cloud.gkehub.v1.MembershipBinding.Builder, + com.google.cloud.gkehub.v1.MembershipBindingOrBuilder>( + membershipBindings_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + membershipBindings_ = null; + } + return membershipBindingsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListMembershipBindings` method. The value of an empty string means
            +     * that there are no more resources to return.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListMembershipBindings` method. The value of an empty string means
            +     * that there are no more resources to return.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListMembershipBindings` method. The value of an empty string means
            +     * that there are no more resources to return.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListMembershipBindings` method. The value of an empty string means
            +     * that there are no more resources to return.
            +     * 
            + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListMembershipBindings` method. The value of an empty string means
            +     * that there are no more resources to return.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
            +     * List of locations that could not be reached while fetching this list.
            +     * 
            + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
            +     * List of locations that could not be reached while fetching this list.
            +     * 
            + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
            +     * List of locations that could not be reached while fetching this list.
            +     * 
            + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
            +     * List of locations that could not be reached while fetching this list.
            +     * 
            + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
            +     * List of locations that could not be reached while fetching this list.
            +     * 
            + * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * List of locations that could not be reached while fetching this list.
            +     * 
            + * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * List of locations that could not be reached while fetching this list.
            +     * 
            + * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * List of locations that could not be reached while fetching this list.
            +     * 
            + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +     * List of locations that could not be reached while fetching this list.
            +     * 
            + * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListMembershipBindingsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListMembershipBindingsResponse) + private static final com.google.cloud.gkehub.v1.ListMembershipBindingsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListMembershipBindingsResponse(); + } + + public static com.google.cloud.gkehub.v1.ListMembershipBindingsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMembershipBindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListMembershipBindingsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipBindingsResponseOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipBindingsResponseOrBuilder.java new file mode 100644 index 000000000000..f3b49d994f1e --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipBindingsResponseOrBuilder.java @@ -0,0 +1,168 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ListMembershipBindingsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListMembershipBindingsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The list of membership_bindings
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + java.util.List getMembershipBindingsList(); + + /** + * + * + *
            +   * The list of membership_bindings
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + com.google.cloud.gkehub.v1.MembershipBinding getMembershipBindings(int index); + + /** + * + * + *
            +   * The list of membership_bindings
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + int getMembershipBindingsCount(); + + /** + * + * + *
            +   * The list of membership_bindings
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + java.util.List + getMembershipBindingsOrBuilderList(); + + /** + * + * + *
            +   * The list of membership_bindings
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.MembershipBinding membership_bindings = 1; + */ + com.google.cloud.gkehub.v1.MembershipBindingOrBuilder getMembershipBindingsOrBuilder(int index); + + /** + * + * + *
            +   * A token to request the next page of resources from the
            +   * `ListMembershipBindings` method. The value of an empty string means
            +   * that there are no more resources to return.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
            +   * A token to request the next page of resources from the
            +   * `ListMembershipBindings` method. The value of an empty string means
            +   * that there are no more resources to return.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
            +   * List of locations that could not be reached while fetching this list.
            +   * 
            + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
            +   * List of locations that could not be reached while fetching this list.
            +   * 
            + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
            +   * List of locations that could not be reached while fetching this list.
            +   * 
            + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
            +   * List of locations that could not be reached while fetching this list.
            +   * 
            + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipRBACRoleBindingsRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipRBACRoleBindingsRequest.java new file mode 100644 index 000000000000..2ea808f33a4c --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipRBACRoleBindingsRequest.java @@ -0,0 +1,935 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Request to list Membership RBACRoleBindings.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest} + */ +@com.google.protobuf.Generated +public final class ListMembershipRBACRoleBindingsRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest) + ListMembershipRBACRoleBindingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListMembershipRBACRoleBindingsRequest"); + } + + // Use ListMembershipRBACRoleBindingsRequest.newBuilder() to construct. + private ListMembershipRBACRoleBindingsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListMembershipRBACRoleBindingsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest.class, + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The parent (project and location) where the Features will be
            +   * listed. Specified in the format `projects/*/locations/*/memberships/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The parent (project and location) where the Features will be
            +   * listed. Specified in the format `projects/*/locations/*/memberships/*`.
            +   * 
            + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
            +   * Optional. When requesting a 'page' of resources, `page_size` specifies
            +   * number of resources to return. If unspecified or set to 0, all resources
            +   * will be returned.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +   * Optional. Token returned by previous call to
            +   * `ListMembershipRBACRoleBindings` which specifies the position in the list
            +   * from where to continue listing the resources.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Token returned by previous call to
            +   * `ListMembershipRBACRoleBindings` which specifies the position in the list
            +   * from where to continue listing the resources.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest other = + (com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest) obj; + + 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; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request to list Membership RBACRoleBindings.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest) + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest.class, + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest + getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest build() { + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest buildPartial() { + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest result = + new com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest other) { + if (other + == com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
            +     * Required. The parent (project and location) where the Features will be
            +     * listed. Specified in the format `projects/*/locations/*/memberships/*`.
            +     * 
            + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the Features will be
            +     * listed. Specified in the format `projects/*/locations/*/memberships/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the Features will be
            +     * listed. Specified in the format `projects/*/locations/*/memberships/*`.
            +     * 
            + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the Features will be
            +     * listed. Specified in the format `projects/*/locations/*/memberships/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the Features will be
            +     * listed. Specified in the format `projects/*/locations/*/memberships/*`.
            +     * 
            + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
            +     * Optional. When requesting a 'page' of resources, `page_size` specifies
            +     * number of resources to return. If unspecified or set to 0, all resources
            +     * will be returned.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
            +     * Optional. When requesting a 'page' of resources, `page_size` specifies
            +     * number of resources to return. If unspecified or set to 0, all resources
            +     * will be returned.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. When requesting a 'page' of resources, `page_size` specifies
            +     * number of resources to return. If unspecified or set to 0, all resources
            +     * will be returned.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +     * Optional. Token returned by previous call to
            +     * `ListMembershipRBACRoleBindings` which specifies the position in the list
            +     * from where to continue listing the resources.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Token returned by previous call to
            +     * `ListMembershipRBACRoleBindings` which specifies the position in the list
            +     * from where to continue listing the resources.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Token returned by previous call to
            +     * `ListMembershipRBACRoleBindings` which specifies the position in the list
            +     * from where to continue listing the resources.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Token returned by previous call to
            +     * `ListMembershipRBACRoleBindings` which specifies the position in the list
            +     * from where to continue listing the resources.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Token returned by previous call to
            +     * `ListMembershipRBACRoleBindings` which specifies the position in the list
            +     * from where to continue listing the resources.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest) + private static final com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest(); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMembershipRBACRoleBindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipRBACRoleBindingsRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipRBACRoleBindingsRequestOrBuilder.java new file mode 100644 index 000000000000..e152268889e0 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipRBACRoleBindingsRequestOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ListMembershipRBACRoleBindingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The parent (project and location) where the Features will be
            +   * listed. Specified in the format `projects/*/locations/*/memberships/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The parent (project and location) where the Features will be
            +   * listed. Specified in the format `projects/*/locations/*/memberships/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Optional. When requesting a 'page' of resources, `page_size` specifies
            +   * number of resources to return. If unspecified or set to 0, all resources
            +   * will be returned.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
            +   * Optional. Token returned by previous call to
            +   * `ListMembershipRBACRoleBindings` which specifies the position in the list
            +   * from where to continue listing the resources.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
            +   * Optional. Token returned by previous call to
            +   * `ListMembershipRBACRoleBindings` which specifies the position in the list
            +   * from where to continue listing the resources.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipRBACRoleBindingsResponse.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipRBACRoleBindingsResponse.java new file mode 100644 index 000000000000..79af74026233 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipRBACRoleBindingsResponse.java @@ -0,0 +1,1438 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * List of Membership RBACRoleBindings.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse} + */ +@com.google.protobuf.Generated +public final class ListMembershipRBACRoleBindingsResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse) + ListMembershipRBACRoleBindingsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListMembershipRBACRoleBindingsResponse"); + } + + // Use ListMembershipRBACRoleBindingsResponse.newBuilder() to construct. + private ListMembershipRBACRoleBindingsResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListMembershipRBACRoleBindingsResponse() { + rbacrolebindings_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse.class, + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse.Builder.class); + } + + public static final int RBACROLEBINDINGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List rbacrolebindings_; + + /** + * + * + *
            +   * The list of Membership RBACRoleBindings.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + @java.lang.Override + public java.util.List getRbacrolebindingsList() { + return rbacrolebindings_; + } + + /** + * + * + *
            +   * The list of Membership RBACRoleBindings.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + @java.lang.Override + public java.util.List + getRbacrolebindingsOrBuilderList() { + return rbacrolebindings_; + } + + /** + * + * + *
            +   * The list of Membership RBACRoleBindings.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + @java.lang.Override + public int getRbacrolebindingsCount() { + return rbacrolebindings_.size(); + } + + /** + * + * + *
            +   * The list of Membership RBACRoleBindings.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebindings(int index) { + return rbacrolebindings_.get(index); + } + + /** + * + * + *
            +   * The list of Membership RBACRoleBindings.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingsOrBuilder( + int index) { + return rbacrolebindings_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +   * A token to request the next page of resources from the
            +   * `ListMembershipRBACRoleBindings` method. The value of an empty string means
            +   * that there are no more resources to return.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * A token to request the next page of resources from the
            +   * `ListMembershipRBACRoleBindings` method. The value of an empty string means
            +   * that there are no more resources to return.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +   * List of locations that could not be reached while fetching this list.
            +   * 
            + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
            +   * List of locations that could not be reached while fetching this list.
            +   * 
            + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
            +   * List of locations that could not be reached while fetching this list.
            +   * 
            + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
            +   * List of locations that could not be reached while fetching this list.
            +   * 
            + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < rbacrolebindings_.size(); i++) { + output.writeMessage(1, rbacrolebindings_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < rbacrolebindings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, rbacrolebindings_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse other = + (com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse) obj; + + if (!getRbacrolebindingsList().equals(other.getRbacrolebindingsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRbacrolebindingsCount() > 0) { + hash = (37 * hash) + RBACROLEBINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getRbacrolebindingsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * List of Membership RBACRoleBindings.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse) + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse.class, + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (rbacrolebindingsBuilder_ == null) { + rbacrolebindings_ = java.util.Collections.emptyList(); + } else { + rbacrolebindings_ = null; + rbacrolebindingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse + getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse build() { + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse buildPartial() { + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse result = + new com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse result) { + if (rbacrolebindingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + rbacrolebindings_ = java.util.Collections.unmodifiableList(rbacrolebindings_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.rbacrolebindings_ = rbacrolebindings_; + } else { + result.rbacrolebindings_ = rbacrolebindingsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse) { + return mergeFrom((com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse other) { + if (other + == com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse.getDefaultInstance()) + return this; + if (rbacrolebindingsBuilder_ == null) { + if (!other.rbacrolebindings_.isEmpty()) { + if (rbacrolebindings_.isEmpty()) { + rbacrolebindings_ = other.rbacrolebindings_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.addAll(other.rbacrolebindings_); + } + onChanged(); + } + } else { + if (!other.rbacrolebindings_.isEmpty()) { + if (rbacrolebindingsBuilder_.isEmpty()) { + rbacrolebindingsBuilder_.dispose(); + rbacrolebindingsBuilder_ = null; + rbacrolebindings_ = other.rbacrolebindings_; + bitField0_ = (bitField0_ & ~0x00000001); + rbacrolebindingsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRbacrolebindingsFieldBuilder() + : null; + } else { + rbacrolebindingsBuilder_.addAllMessages(other.rbacrolebindings_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.gkehub.v1.RBACRoleBinding m = + input.readMessage( + com.google.cloud.gkehub.v1.RBACRoleBinding.parser(), extensionRegistry); + if (rbacrolebindingsBuilder_ == null) { + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.add(m); + } else { + rbacrolebindingsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List rbacrolebindings_ = + java.util.Collections.emptyList(); + + private void ensureRbacrolebindingsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + rbacrolebindings_ = + new java.util.ArrayList(rbacrolebindings_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder> + rbacrolebindingsBuilder_; + + /** + * + * + *
            +     * The list of Membership RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public java.util.List getRbacrolebindingsList() { + if (rbacrolebindingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(rbacrolebindings_); + } else { + return rbacrolebindingsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * The list of Membership RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public int getRbacrolebindingsCount() { + if (rbacrolebindingsBuilder_ == null) { + return rbacrolebindings_.size(); + } else { + return rbacrolebindingsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * The list of Membership RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebindings(int index) { + if (rbacrolebindingsBuilder_ == null) { + return rbacrolebindings_.get(index); + } else { + return rbacrolebindingsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * The list of Membership RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder setRbacrolebindings( + int index, com.google.cloud.gkehub.v1.RBACRoleBinding value) { + if (rbacrolebindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.set(index, value); + onChanged(); + } else { + rbacrolebindingsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The list of Membership RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder setRbacrolebindings( + int index, com.google.cloud.gkehub.v1.RBACRoleBinding.Builder builderForValue) { + if (rbacrolebindingsBuilder_ == null) { + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.set(index, builderForValue.build()); + onChanged(); + } else { + rbacrolebindingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of Membership RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder addRbacrolebindings(com.google.cloud.gkehub.v1.RBACRoleBinding value) { + if (rbacrolebindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.add(value); + onChanged(); + } else { + rbacrolebindingsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * The list of Membership RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder addRbacrolebindings( + int index, com.google.cloud.gkehub.v1.RBACRoleBinding value) { + if (rbacrolebindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.add(index, value); + onChanged(); + } else { + rbacrolebindingsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The list of Membership RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder addRbacrolebindings( + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder builderForValue) { + if (rbacrolebindingsBuilder_ == null) { + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.add(builderForValue.build()); + onChanged(); + } else { + rbacrolebindingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of Membership RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder addRbacrolebindings( + int index, com.google.cloud.gkehub.v1.RBACRoleBinding.Builder builderForValue) { + if (rbacrolebindingsBuilder_ == null) { + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.add(index, builderForValue.build()); + onChanged(); + } else { + rbacrolebindingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of Membership RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder addAllRbacrolebindings( + java.lang.Iterable values) { + if (rbacrolebindingsBuilder_ == null) { + ensureRbacrolebindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rbacrolebindings_); + onChanged(); + } else { + rbacrolebindingsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * The list of Membership RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder clearRbacrolebindings() { + if (rbacrolebindingsBuilder_ == null) { + rbacrolebindings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + rbacrolebindingsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * The list of Membership RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder removeRbacrolebindings(int index) { + if (rbacrolebindingsBuilder_ == null) { + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.remove(index); + onChanged(); + } else { + rbacrolebindingsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * The list of Membership RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding.Builder getRbacrolebindingsBuilder( + int index) { + return internalGetRbacrolebindingsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * The list of Membership RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingsOrBuilder( + int index) { + if (rbacrolebindingsBuilder_ == null) { + return rbacrolebindings_.get(index); + } else { + return rbacrolebindingsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * The list of Membership RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public java.util.List + getRbacrolebindingsOrBuilderList() { + if (rbacrolebindingsBuilder_ != null) { + return rbacrolebindingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rbacrolebindings_); + } + } + + /** + * + * + *
            +     * The list of Membership RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding.Builder addRbacrolebindingsBuilder() { + return internalGetRbacrolebindingsFieldBuilder() + .addBuilder(com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance()); + } + + /** + * + * + *
            +     * The list of Membership RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding.Builder addRbacrolebindingsBuilder( + int index) { + return internalGetRbacrolebindingsFieldBuilder() + .addBuilder(index, com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance()); + } + + /** + * + * + *
            +     * The list of Membership RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public java.util.List + getRbacrolebindingsBuilderList() { + return internalGetRbacrolebindingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder> + internalGetRbacrolebindingsFieldBuilder() { + if (rbacrolebindingsBuilder_ == null) { + rbacrolebindingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder>( + rbacrolebindings_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + rbacrolebindings_ = null; + } + return rbacrolebindingsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListMembershipRBACRoleBindings` method. The value of an empty string means
            +     * that there are no more resources to return.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListMembershipRBACRoleBindings` method. The value of an empty string means
            +     * that there are no more resources to return.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListMembershipRBACRoleBindings` method. The value of an empty string means
            +     * that there are no more resources to return.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListMembershipRBACRoleBindings` method. The value of an empty string means
            +     * that there are no more resources to return.
            +     * 
            + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListMembershipRBACRoleBindings` method. The value of an empty string means
            +     * that there are no more resources to return.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
            +     * List of locations that could not be reached while fetching this list.
            +     * 
            + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
            +     * List of locations that could not be reached while fetching this list.
            +     * 
            + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
            +     * List of locations that could not be reached while fetching this list.
            +     * 
            + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
            +     * List of locations that could not be reached while fetching this list.
            +     * 
            + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
            +     * List of locations that could not be reached while fetching this list.
            +     * 
            + * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * List of locations that could not be reached while fetching this list.
            +     * 
            + * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * List of locations that could not be reached while fetching this list.
            +     * 
            + * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * List of locations that could not be reached while fetching this list.
            +     * 
            + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +     * List of locations that could not be reached while fetching this list.
            +     * 
            + * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse) + private static final com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse(); + } + + public static com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMembershipRBACRoleBindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipRBACRoleBindingsResponseOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipRBACRoleBindingsResponseOrBuilder.java new file mode 100644 index 000000000000..905b36a313e1 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipRBACRoleBindingsResponseOrBuilder.java @@ -0,0 +1,168 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ListMembershipRBACRoleBindingsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The list of Membership RBACRoleBindings.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + java.util.List getRbacrolebindingsList(); + + /** + * + * + *
            +   * The list of Membership RBACRoleBindings.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebindings(int index); + + /** + * + * + *
            +   * The list of Membership RBACRoleBindings.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + int getRbacrolebindingsCount(); + + /** + * + * + *
            +   * The list of Membership RBACRoleBindings.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + java.util.List + getRbacrolebindingsOrBuilderList(); + + /** + * + * + *
            +   * The list of Membership RBACRoleBindings.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingsOrBuilder(int index); + + /** + * + * + *
            +   * A token to request the next page of resources from the
            +   * `ListMembershipRBACRoleBindings` method. The value of an empty string means
            +   * that there are no more resources to return.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
            +   * A token to request the next page of resources from the
            +   * `ListMembershipRBACRoleBindings` method. The value of an empty string means
            +   * that there are no more resources to return.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
            +   * List of locations that could not be reached while fetching this list.
            +   * 
            + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
            +   * List of locations that could not be reached while fetching this list.
            +   * 
            + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
            +   * List of locations that could not be reached while fetching this list.
            +   * 
            + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
            +   * List of locations that could not be reached while fetching this list.
            +   * 
            + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListPermittedScopesRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListPermittedScopesRequest.java new file mode 100644 index 000000000000..0b36ce7c0010 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListPermittedScopesRequest.java @@ -0,0 +1,926 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Request to list permitted Scopes.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ListPermittedScopesRequest} + */ +@com.google.protobuf.Generated +public final class ListPermittedScopesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListPermittedScopesRequest) + ListPermittedScopesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListPermittedScopesRequest"); + } + + // Use ListPermittedScopesRequest.newBuilder() to construct. + private ListPermittedScopesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListPermittedScopesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListPermittedScopesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListPermittedScopesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListPermittedScopesRequest.class, + com.google.cloud.gkehub.v1.ListPermittedScopesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The parent (project and location) where the Scope will be listed.
            +   * Specified in the format `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The parent (project and location) where the Scope will be listed.
            +   * Specified in the format `projects/*/locations/*`.
            +   * 
            + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
            +   * Optional. When requesting a 'page' of resources, `page_size` specifies
            +   * number of resources to return. If unspecified or set to 0, all resources
            +   * will be returned.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +   * Optional. Token returned by previous call to `ListPermittedScopes` which
            +   * specifies the position in the list from where to continue listing the
            +   * resources.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Token returned by previous call to `ListPermittedScopes` which
            +   * specifies the position in the list from where to continue listing the
            +   * resources.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.ListPermittedScopesRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ListPermittedScopesRequest other = + (com.google.cloud.gkehub.v1.ListPermittedScopesRequest) obj; + + 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; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.v1.ListPermittedScopesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request to list permitted Scopes.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ListPermittedScopesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListPermittedScopesRequest) + com.google.cloud.gkehub.v1.ListPermittedScopesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListPermittedScopesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListPermittedScopesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListPermittedScopesRequest.class, + com.google.cloud.gkehub.v1.ListPermittedScopesRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ListPermittedScopesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListPermittedScopesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListPermittedScopesRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ListPermittedScopesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListPermittedScopesRequest build() { + com.google.cloud.gkehub.v1.ListPermittedScopesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListPermittedScopesRequest buildPartial() { + com.google.cloud.gkehub.v1.ListPermittedScopesRequest result = + new com.google.cloud.gkehub.v1.ListPermittedScopesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.ListPermittedScopesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ListPermittedScopesRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.ListPermittedScopesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ListPermittedScopesRequest other) { + if (other == com.google.cloud.gkehub.v1.ListPermittedScopesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
            +     * Required. The parent (project and location) where the Scope will be listed.
            +     * Specified in the format `projects/*/locations/*`.
            +     * 
            + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the Scope will be listed.
            +     * Specified in the format `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the Scope will be listed.
            +     * Specified in the format `projects/*/locations/*`.
            +     * 
            + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the Scope will be listed.
            +     * Specified in the format `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the Scope will be listed.
            +     * Specified in the format `projects/*/locations/*`.
            +     * 
            + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
            +     * Optional. When requesting a 'page' of resources, `page_size` specifies
            +     * number of resources to return. If unspecified or set to 0, all resources
            +     * will be returned.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
            +     * Optional. When requesting a 'page' of resources, `page_size` specifies
            +     * number of resources to return. If unspecified or set to 0, all resources
            +     * will be returned.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. When requesting a 'page' of resources, `page_size` specifies
            +     * number of resources to return. If unspecified or set to 0, all resources
            +     * will be returned.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +     * Optional. Token returned by previous call to `ListPermittedScopes` which
            +     * specifies the position in the list from where to continue listing the
            +     * resources.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Token returned by previous call to `ListPermittedScopes` which
            +     * specifies the position in the list from where to continue listing the
            +     * resources.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Token returned by previous call to `ListPermittedScopes` which
            +     * specifies the position in the list from where to continue listing the
            +     * resources.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Token returned by previous call to `ListPermittedScopes` which
            +     * specifies the position in the list from where to continue listing the
            +     * resources.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Token returned by previous call to `ListPermittedScopes` which
            +     * specifies the position in the list from where to continue listing the
            +     * resources.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListPermittedScopesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListPermittedScopesRequest) + private static final com.google.cloud.gkehub.v1.ListPermittedScopesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListPermittedScopesRequest(); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPermittedScopesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListPermittedScopesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListPermittedScopesRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListPermittedScopesRequestOrBuilder.java new file mode 100644 index 000000000000..84ee6f7b43a2 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListPermittedScopesRequestOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ListPermittedScopesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListPermittedScopesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The parent (project and location) where the Scope will be listed.
            +   * Specified in the format `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The parent (project and location) where the Scope will be listed.
            +   * Specified in the format `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Optional. When requesting a 'page' of resources, `page_size` specifies
            +   * number of resources to return. If unspecified or set to 0, all resources
            +   * will be returned.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
            +   * Optional. Token returned by previous call to `ListPermittedScopes` which
            +   * specifies the position in the list from where to continue listing the
            +   * resources.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
            +   * Optional. Token returned by previous call to `ListPermittedScopes` which
            +   * specifies the position in the list from where to continue listing the
            +   * resources.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListPermittedScopesResponse.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListPermittedScopesResponse.java new file mode 100644 index 000000000000..e06a30728b30 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListPermittedScopesResponse.java @@ -0,0 +1,1122 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * List of permitted Scopes.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ListPermittedScopesResponse} + */ +@com.google.protobuf.Generated +public final class ListPermittedScopesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListPermittedScopesResponse) + ListPermittedScopesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListPermittedScopesResponse"); + } + + // Use ListPermittedScopesResponse.newBuilder() to construct. + private ListPermittedScopesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListPermittedScopesResponse() { + scopes_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListPermittedScopesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListPermittedScopesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListPermittedScopesResponse.class, + com.google.cloud.gkehub.v1.ListPermittedScopesResponse.Builder.class); + } + + public static final int SCOPES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List scopes_; + + /** + * + * + *
            +   * The list of permitted Scopes
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + @java.lang.Override + public java.util.List getScopesList() { + return scopes_; + } + + /** + * + * + *
            +   * The list of permitted Scopes
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + @java.lang.Override + public java.util.List + getScopesOrBuilderList() { + return scopes_; + } + + /** + * + * + *
            +   * The list of permitted Scopes
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + @java.lang.Override + public int getScopesCount() { + return scopes_.size(); + } + + /** + * + * + *
            +   * The list of permitted Scopes
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.Scope getScopes(int index) { + return scopes_.get(index); + } + + /** + * + * + *
            +   * The list of permitted Scopes
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeOrBuilder getScopesOrBuilder(int index) { + return scopes_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +   * A token to request the next page of resources from the
            +   * `ListPermittedScopes` method. The value of an empty string means
            +   * that there are no more resources to return.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * A token to request the next page of resources from the
            +   * `ListPermittedScopes` method. The value of an empty string means
            +   * that there are no more resources to return.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < scopes_.size(); i++) { + output.writeMessage(1, scopes_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < scopes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, scopes_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.ListPermittedScopesResponse)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ListPermittedScopesResponse other = + (com.google.cloud.gkehub.v1.ListPermittedScopesResponse) obj; + + if (!getScopesList().equals(other.getScopesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getScopesCount() > 0) { + hash = (37 * hash) + SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getScopesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.v1.ListPermittedScopesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * List of permitted Scopes.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ListPermittedScopesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListPermittedScopesResponse) + com.google.cloud.gkehub.v1.ListPermittedScopesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListPermittedScopesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListPermittedScopesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListPermittedScopesResponse.class, + com.google.cloud.gkehub.v1.ListPermittedScopesResponse.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ListPermittedScopesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (scopesBuilder_ == null) { + scopes_ = java.util.Collections.emptyList(); + } else { + scopes_ = null; + scopesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListPermittedScopesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListPermittedScopesResponse getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ListPermittedScopesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListPermittedScopesResponse build() { + com.google.cloud.gkehub.v1.ListPermittedScopesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListPermittedScopesResponse buildPartial() { + com.google.cloud.gkehub.v1.ListPermittedScopesResponse result = + new com.google.cloud.gkehub.v1.ListPermittedScopesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gkehub.v1.ListPermittedScopesResponse result) { + if (scopesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + scopes_ = java.util.Collections.unmodifiableList(scopes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.scopes_ = scopes_; + } else { + result.scopes_ = scopesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.gkehub.v1.ListPermittedScopesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ListPermittedScopesResponse) { + return mergeFrom((com.google.cloud.gkehub.v1.ListPermittedScopesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ListPermittedScopesResponse other) { + if (other == com.google.cloud.gkehub.v1.ListPermittedScopesResponse.getDefaultInstance()) + return this; + if (scopesBuilder_ == null) { + if (!other.scopes_.isEmpty()) { + if (scopes_.isEmpty()) { + scopes_ = other.scopes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureScopesIsMutable(); + scopes_.addAll(other.scopes_); + } + onChanged(); + } + } else { + if (!other.scopes_.isEmpty()) { + if (scopesBuilder_.isEmpty()) { + scopesBuilder_.dispose(); + scopesBuilder_ = null; + scopes_ = other.scopes_; + bitField0_ = (bitField0_ & ~0x00000001); + scopesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetScopesFieldBuilder() + : null; + } else { + scopesBuilder_.addAllMessages(other.scopes_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.gkehub.v1.Scope m = + input.readMessage(com.google.cloud.gkehub.v1.Scope.parser(), extensionRegistry); + if (scopesBuilder_ == null) { + ensureScopesIsMutable(); + scopes_.add(m); + } else { + scopesBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List scopes_ = + java.util.Collections.emptyList(); + + private void ensureScopesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + scopes_ = new java.util.ArrayList(scopes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.Scope, + com.google.cloud.gkehub.v1.Scope.Builder, + com.google.cloud.gkehub.v1.ScopeOrBuilder> + scopesBuilder_; + + /** + * + * + *
            +     * The list of permitted Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public java.util.List getScopesList() { + if (scopesBuilder_ == null) { + return java.util.Collections.unmodifiableList(scopes_); + } else { + return scopesBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * The list of permitted Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public int getScopesCount() { + if (scopesBuilder_ == null) { + return scopes_.size(); + } else { + return scopesBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * The list of permitted Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public com.google.cloud.gkehub.v1.Scope getScopes(int index) { + if (scopesBuilder_ == null) { + return scopes_.get(index); + } else { + return scopesBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * The list of permitted Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder setScopes(int index, com.google.cloud.gkehub.v1.Scope value) { + if (scopesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesIsMutable(); + scopes_.set(index, value); + onChanged(); + } else { + scopesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The list of permitted Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder setScopes(int index, com.google.cloud.gkehub.v1.Scope.Builder builderForValue) { + if (scopesBuilder_ == null) { + ensureScopesIsMutable(); + scopes_.set(index, builderForValue.build()); + onChanged(); + } else { + scopesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of permitted Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder addScopes(com.google.cloud.gkehub.v1.Scope value) { + if (scopesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesIsMutable(); + scopes_.add(value); + onChanged(); + } else { + scopesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * The list of permitted Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder addScopes(int index, com.google.cloud.gkehub.v1.Scope value) { + if (scopesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesIsMutable(); + scopes_.add(index, value); + onChanged(); + } else { + scopesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The list of permitted Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder addScopes(com.google.cloud.gkehub.v1.Scope.Builder builderForValue) { + if (scopesBuilder_ == null) { + ensureScopesIsMutable(); + scopes_.add(builderForValue.build()); + onChanged(); + } else { + scopesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of permitted Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder addScopes(int index, com.google.cloud.gkehub.v1.Scope.Builder builderForValue) { + if (scopesBuilder_ == null) { + ensureScopesIsMutable(); + scopes_.add(index, builderForValue.build()); + onChanged(); + } else { + scopesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of permitted Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder addAllScopes( + java.lang.Iterable values) { + if (scopesBuilder_ == null) { + ensureScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scopes_); + onChanged(); + } else { + scopesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * The list of permitted Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder clearScopes() { + if (scopesBuilder_ == null) { + scopes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + scopesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * The list of permitted Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder removeScopes(int index) { + if (scopesBuilder_ == null) { + ensureScopesIsMutable(); + scopes_.remove(index); + onChanged(); + } else { + scopesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * The list of permitted Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public com.google.cloud.gkehub.v1.Scope.Builder getScopesBuilder(int index) { + return internalGetScopesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * The list of permitted Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public com.google.cloud.gkehub.v1.ScopeOrBuilder getScopesOrBuilder(int index) { + if (scopesBuilder_ == null) { + return scopes_.get(index); + } else { + return scopesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * The list of permitted Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public java.util.List + getScopesOrBuilderList() { + if (scopesBuilder_ != null) { + return scopesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(scopes_); + } + } + + /** + * + * + *
            +     * The list of permitted Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public com.google.cloud.gkehub.v1.Scope.Builder addScopesBuilder() { + return internalGetScopesFieldBuilder() + .addBuilder(com.google.cloud.gkehub.v1.Scope.getDefaultInstance()); + } + + /** + * + * + *
            +     * The list of permitted Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public com.google.cloud.gkehub.v1.Scope.Builder addScopesBuilder(int index) { + return internalGetScopesFieldBuilder() + .addBuilder(index, com.google.cloud.gkehub.v1.Scope.getDefaultInstance()); + } + + /** + * + * + *
            +     * The list of permitted Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public java.util.List getScopesBuilderList() { + return internalGetScopesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.Scope, + com.google.cloud.gkehub.v1.Scope.Builder, + com.google.cloud.gkehub.v1.ScopeOrBuilder> + internalGetScopesFieldBuilder() { + if (scopesBuilder_ == null) { + scopesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.Scope, + com.google.cloud.gkehub.v1.Scope.Builder, + com.google.cloud.gkehub.v1.ScopeOrBuilder>( + scopes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + scopes_ = null; + } + return scopesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListPermittedScopes` method. The value of an empty string means
            +     * that there are no more resources to return.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListPermittedScopes` method. The value of an empty string means
            +     * that there are no more resources to return.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListPermittedScopes` method. The value of an empty string means
            +     * that there are no more resources to return.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListPermittedScopes` method. The value of an empty string means
            +     * that there are no more resources to return.
            +     * 
            + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListPermittedScopes` method. The value of an empty string means
            +     * that there are no more resources to return.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListPermittedScopesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListPermittedScopesResponse) + private static final com.google.cloud.gkehub.v1.ListPermittedScopesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListPermittedScopesResponse(); + } + + public static com.google.cloud.gkehub.v1.ListPermittedScopesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPermittedScopesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListPermittedScopesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListPermittedScopesResponseOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListPermittedScopesResponseOrBuilder.java new file mode 100644 index 000000000000..bca21c8d07c5 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListPermittedScopesResponseOrBuilder.java @@ -0,0 +1,113 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ListPermittedScopesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListPermittedScopesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The list of permitted Scopes
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + java.util.List getScopesList(); + + /** + * + * + *
            +   * The list of permitted Scopes
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + com.google.cloud.gkehub.v1.Scope getScopes(int index); + + /** + * + * + *
            +   * The list of permitted Scopes
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + int getScopesCount(); + + /** + * + * + *
            +   * The list of permitted Scopes
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + java.util.List getScopesOrBuilderList(); + + /** + * + * + *
            +   * The list of permitted Scopes
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + com.google.cloud.gkehub.v1.ScopeOrBuilder getScopesOrBuilder(int index); + + /** + * + * + *
            +   * A token to request the next page of resources from the
            +   * `ListPermittedScopes` method. The value of an empty string means
            +   * that there are no more resources to return.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
            +   * A token to request the next page of resources from the
            +   * `ListPermittedScopes` method. The value of an empty string means
            +   * that there are no more resources to return.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeNamespacesRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeNamespacesRequest.java new file mode 100644 index 000000000000..d74cbe2ae0d3 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeNamespacesRequest.java @@ -0,0 +1,926 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Request to list fleet namespaces.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ListScopeNamespacesRequest} + */ +@com.google.protobuf.Generated +public final class ListScopeNamespacesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListScopeNamespacesRequest) + ListScopeNamespacesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListScopeNamespacesRequest"); + } + + // Use ListScopeNamespacesRequest.newBuilder() to construct. + private ListScopeNamespacesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListScopeNamespacesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeNamespacesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeNamespacesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListScopeNamespacesRequest.class, + com.google.cloud.gkehub.v1.ListScopeNamespacesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The parent (project and location) where the Features will be
            +   * listed. Specified in the format `projects/*/locations/*/scopes/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The parent (project and location) where the Features will be
            +   * listed. Specified in the format `projects/*/locations/*/scopes/*`.
            +   * 
            + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
            +   * Optional. When requesting a 'page' of resources, `page_size` specifies
            +   * number of resources to return. If unspecified or set to 0, all resources
            +   * will be returned.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +   * Optional. Token returned by previous call to `ListFeatures` which
            +   * specifies the position in the list from where to continue listing the
            +   * resources.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Token returned by previous call to `ListFeatures` which
            +   * specifies the position in the list from where to continue listing the
            +   * resources.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.ListScopeNamespacesRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ListScopeNamespacesRequest other = + (com.google.cloud.gkehub.v1.ListScopeNamespacesRequest) obj; + + 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; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.v1.ListScopeNamespacesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request to list fleet namespaces.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ListScopeNamespacesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListScopeNamespacesRequest) + com.google.cloud.gkehub.v1.ListScopeNamespacesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeNamespacesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeNamespacesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListScopeNamespacesRequest.class, + com.google.cloud.gkehub.v1.ListScopeNamespacesRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ListScopeNamespacesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeNamespacesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopeNamespacesRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ListScopeNamespacesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopeNamespacesRequest build() { + com.google.cloud.gkehub.v1.ListScopeNamespacesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopeNamespacesRequest buildPartial() { + com.google.cloud.gkehub.v1.ListScopeNamespacesRequest result = + new com.google.cloud.gkehub.v1.ListScopeNamespacesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.ListScopeNamespacesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ListScopeNamespacesRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.ListScopeNamespacesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ListScopeNamespacesRequest other) { + if (other == com.google.cloud.gkehub.v1.ListScopeNamespacesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
            +     * Required. The parent (project and location) where the Features will be
            +     * listed. Specified in the format `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the Features will be
            +     * listed. Specified in the format `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the Features will be
            +     * listed. Specified in the format `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the Features will be
            +     * listed. Specified in the format `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the Features will be
            +     * listed. Specified in the format `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
            +     * Optional. When requesting a 'page' of resources, `page_size` specifies
            +     * number of resources to return. If unspecified or set to 0, all resources
            +     * will be returned.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
            +     * Optional. When requesting a 'page' of resources, `page_size` specifies
            +     * number of resources to return. If unspecified or set to 0, all resources
            +     * will be returned.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. When requesting a 'page' of resources, `page_size` specifies
            +     * number of resources to return. If unspecified or set to 0, all resources
            +     * will be returned.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +     * Optional. Token returned by previous call to `ListFeatures` which
            +     * specifies the position in the list from where to continue listing the
            +     * resources.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Token returned by previous call to `ListFeatures` which
            +     * specifies the position in the list from where to continue listing the
            +     * resources.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Token returned by previous call to `ListFeatures` which
            +     * specifies the position in the list from where to continue listing the
            +     * resources.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Token returned by previous call to `ListFeatures` which
            +     * specifies the position in the list from where to continue listing the
            +     * resources.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Token returned by previous call to `ListFeatures` which
            +     * specifies the position in the list from where to continue listing the
            +     * resources.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListScopeNamespacesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListScopeNamespacesRequest) + private static final com.google.cloud.gkehub.v1.ListScopeNamespacesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListScopeNamespacesRequest(); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScopeNamespacesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopeNamespacesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeNamespacesRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeNamespacesRequestOrBuilder.java new file mode 100644 index 000000000000..279bb553ad63 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeNamespacesRequestOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ListScopeNamespacesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListScopeNamespacesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The parent (project and location) where the Features will be
            +   * listed. Specified in the format `projects/*/locations/*/scopes/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The parent (project and location) where the Features will be
            +   * listed. Specified in the format `projects/*/locations/*/scopes/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Optional. When requesting a 'page' of resources, `page_size` specifies
            +   * number of resources to return. If unspecified or set to 0, all resources
            +   * will be returned.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
            +   * Optional. Token returned by previous call to `ListFeatures` which
            +   * specifies the position in the list from where to continue listing the
            +   * resources.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
            +   * Optional. Token returned by previous call to `ListFeatures` which
            +   * specifies the position in the list from where to continue listing the
            +   * resources.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeNamespacesResponse.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeNamespacesResponse.java new file mode 100644 index 000000000000..884d0b8de2ce --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeNamespacesResponse.java @@ -0,0 +1,1131 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * List of fleet namespaces.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ListScopeNamespacesResponse} + */ +@com.google.protobuf.Generated +public final class ListScopeNamespacesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListScopeNamespacesResponse) + ListScopeNamespacesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListScopeNamespacesResponse"); + } + + // Use ListScopeNamespacesResponse.newBuilder() to construct. + private ListScopeNamespacesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListScopeNamespacesResponse() { + scopeNamespaces_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeNamespacesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeNamespacesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListScopeNamespacesResponse.class, + com.google.cloud.gkehub.v1.ListScopeNamespacesResponse.Builder.class); + } + + public static final int SCOPE_NAMESPACES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List scopeNamespaces_; + + /** + * + * + *
            +   * The list of fleet namespaces
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + @java.lang.Override + public java.util.List getScopeNamespacesList() { + return scopeNamespaces_; + } + + /** + * + * + *
            +   * The list of fleet namespaces
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + @java.lang.Override + public java.util.List + getScopeNamespacesOrBuilderList() { + return scopeNamespaces_; + } + + /** + * + * + *
            +   * The list of fleet namespaces
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + @java.lang.Override + public int getScopeNamespacesCount() { + return scopeNamespaces_.size(); + } + + /** + * + * + *
            +   * The list of fleet namespaces
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.Namespace getScopeNamespaces(int index) { + return scopeNamespaces_.get(index); + } + + /** + * + * + *
            +   * The list of fleet namespaces
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.NamespaceOrBuilder getScopeNamespacesOrBuilder(int index) { + return scopeNamespaces_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +   * A token to request the next page of resources from the
            +   * `ListNamespaces` method. The value of an empty string means
            +   * that there are no more resources to return.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * A token to request the next page of resources from the
            +   * `ListNamespaces` method. The value of an empty string means
            +   * that there are no more resources to return.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < scopeNamespaces_.size(); i++) { + output.writeMessage(1, scopeNamespaces_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < scopeNamespaces_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, scopeNamespaces_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.ListScopeNamespacesResponse)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ListScopeNamespacesResponse other = + (com.google.cloud.gkehub.v1.ListScopeNamespacesResponse) obj; + + if (!getScopeNamespacesList().equals(other.getScopeNamespacesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getScopeNamespacesCount() > 0) { + hash = (37 * hash) + SCOPE_NAMESPACES_FIELD_NUMBER; + hash = (53 * hash) + getScopeNamespacesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.v1.ListScopeNamespacesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * List of fleet namespaces.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ListScopeNamespacesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListScopeNamespacesResponse) + com.google.cloud.gkehub.v1.ListScopeNamespacesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeNamespacesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeNamespacesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListScopeNamespacesResponse.class, + com.google.cloud.gkehub.v1.ListScopeNamespacesResponse.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ListScopeNamespacesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (scopeNamespacesBuilder_ == null) { + scopeNamespaces_ = java.util.Collections.emptyList(); + } else { + scopeNamespaces_ = null; + scopeNamespacesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeNamespacesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopeNamespacesResponse getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ListScopeNamespacesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopeNamespacesResponse build() { + com.google.cloud.gkehub.v1.ListScopeNamespacesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopeNamespacesResponse buildPartial() { + com.google.cloud.gkehub.v1.ListScopeNamespacesResponse result = + new com.google.cloud.gkehub.v1.ListScopeNamespacesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gkehub.v1.ListScopeNamespacesResponse result) { + if (scopeNamespacesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + scopeNamespaces_ = java.util.Collections.unmodifiableList(scopeNamespaces_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.scopeNamespaces_ = scopeNamespaces_; + } else { + result.scopeNamespaces_ = scopeNamespacesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.gkehub.v1.ListScopeNamespacesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ListScopeNamespacesResponse) { + return mergeFrom((com.google.cloud.gkehub.v1.ListScopeNamespacesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ListScopeNamespacesResponse other) { + if (other == com.google.cloud.gkehub.v1.ListScopeNamespacesResponse.getDefaultInstance()) + return this; + if (scopeNamespacesBuilder_ == null) { + if (!other.scopeNamespaces_.isEmpty()) { + if (scopeNamespaces_.isEmpty()) { + scopeNamespaces_ = other.scopeNamespaces_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureScopeNamespacesIsMutable(); + scopeNamespaces_.addAll(other.scopeNamespaces_); + } + onChanged(); + } + } else { + if (!other.scopeNamespaces_.isEmpty()) { + if (scopeNamespacesBuilder_.isEmpty()) { + scopeNamespacesBuilder_.dispose(); + scopeNamespacesBuilder_ = null; + scopeNamespaces_ = other.scopeNamespaces_; + bitField0_ = (bitField0_ & ~0x00000001); + scopeNamespacesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetScopeNamespacesFieldBuilder() + : null; + } else { + scopeNamespacesBuilder_.addAllMessages(other.scopeNamespaces_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.gkehub.v1.Namespace m = + input.readMessage( + com.google.cloud.gkehub.v1.Namespace.parser(), extensionRegistry); + if (scopeNamespacesBuilder_ == null) { + ensureScopeNamespacesIsMutable(); + scopeNamespaces_.add(m); + } else { + scopeNamespacesBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List scopeNamespaces_ = + java.util.Collections.emptyList(); + + private void ensureScopeNamespacesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + scopeNamespaces_ = + new java.util.ArrayList(scopeNamespaces_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.Namespace, + com.google.cloud.gkehub.v1.Namespace.Builder, + com.google.cloud.gkehub.v1.NamespaceOrBuilder> + scopeNamespacesBuilder_; + + /** + * + * + *
            +     * The list of fleet namespaces
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public java.util.List getScopeNamespacesList() { + if (scopeNamespacesBuilder_ == null) { + return java.util.Collections.unmodifiableList(scopeNamespaces_); + } else { + return scopeNamespacesBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * The list of fleet namespaces
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public int getScopeNamespacesCount() { + if (scopeNamespacesBuilder_ == null) { + return scopeNamespaces_.size(); + } else { + return scopeNamespacesBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * The list of fleet namespaces
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public com.google.cloud.gkehub.v1.Namespace getScopeNamespaces(int index) { + if (scopeNamespacesBuilder_ == null) { + return scopeNamespaces_.get(index); + } else { + return scopeNamespacesBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * The list of fleet namespaces
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public Builder setScopeNamespaces(int index, com.google.cloud.gkehub.v1.Namespace value) { + if (scopeNamespacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopeNamespacesIsMutable(); + scopeNamespaces_.set(index, value); + onChanged(); + } else { + scopeNamespacesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The list of fleet namespaces
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public Builder setScopeNamespaces( + int index, com.google.cloud.gkehub.v1.Namespace.Builder builderForValue) { + if (scopeNamespacesBuilder_ == null) { + ensureScopeNamespacesIsMutable(); + scopeNamespaces_.set(index, builderForValue.build()); + onChanged(); + } else { + scopeNamespacesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of fleet namespaces
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public Builder addScopeNamespaces(com.google.cloud.gkehub.v1.Namespace value) { + if (scopeNamespacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopeNamespacesIsMutable(); + scopeNamespaces_.add(value); + onChanged(); + } else { + scopeNamespacesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * The list of fleet namespaces
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public Builder addScopeNamespaces(int index, com.google.cloud.gkehub.v1.Namespace value) { + if (scopeNamespacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopeNamespacesIsMutable(); + scopeNamespaces_.add(index, value); + onChanged(); + } else { + scopeNamespacesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The list of fleet namespaces
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public Builder addScopeNamespaces( + com.google.cloud.gkehub.v1.Namespace.Builder builderForValue) { + if (scopeNamespacesBuilder_ == null) { + ensureScopeNamespacesIsMutable(); + scopeNamespaces_.add(builderForValue.build()); + onChanged(); + } else { + scopeNamespacesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of fleet namespaces
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public Builder addScopeNamespaces( + int index, com.google.cloud.gkehub.v1.Namespace.Builder builderForValue) { + if (scopeNamespacesBuilder_ == null) { + ensureScopeNamespacesIsMutable(); + scopeNamespaces_.add(index, builderForValue.build()); + onChanged(); + } else { + scopeNamespacesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of fleet namespaces
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public Builder addAllScopeNamespaces( + java.lang.Iterable values) { + if (scopeNamespacesBuilder_ == null) { + ensureScopeNamespacesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scopeNamespaces_); + onChanged(); + } else { + scopeNamespacesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * The list of fleet namespaces
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public Builder clearScopeNamespaces() { + if (scopeNamespacesBuilder_ == null) { + scopeNamespaces_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + scopeNamespacesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * The list of fleet namespaces
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public Builder removeScopeNamespaces(int index) { + if (scopeNamespacesBuilder_ == null) { + ensureScopeNamespacesIsMutable(); + scopeNamespaces_.remove(index); + onChanged(); + } else { + scopeNamespacesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * The list of fleet namespaces
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public com.google.cloud.gkehub.v1.Namespace.Builder getScopeNamespacesBuilder(int index) { + return internalGetScopeNamespacesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * The list of fleet namespaces
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public com.google.cloud.gkehub.v1.NamespaceOrBuilder getScopeNamespacesOrBuilder(int index) { + if (scopeNamespacesBuilder_ == null) { + return scopeNamespaces_.get(index); + } else { + return scopeNamespacesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * The list of fleet namespaces
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public java.util.List + getScopeNamespacesOrBuilderList() { + if (scopeNamespacesBuilder_ != null) { + return scopeNamespacesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(scopeNamespaces_); + } + } + + /** + * + * + *
            +     * The list of fleet namespaces
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public com.google.cloud.gkehub.v1.Namespace.Builder addScopeNamespacesBuilder() { + return internalGetScopeNamespacesFieldBuilder() + .addBuilder(com.google.cloud.gkehub.v1.Namespace.getDefaultInstance()); + } + + /** + * + * + *
            +     * The list of fleet namespaces
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public com.google.cloud.gkehub.v1.Namespace.Builder addScopeNamespacesBuilder(int index) { + return internalGetScopeNamespacesFieldBuilder() + .addBuilder(index, com.google.cloud.gkehub.v1.Namespace.getDefaultInstance()); + } + + /** + * + * + *
            +     * The list of fleet namespaces
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + public java.util.List + getScopeNamespacesBuilderList() { + return internalGetScopeNamespacesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.Namespace, + com.google.cloud.gkehub.v1.Namespace.Builder, + com.google.cloud.gkehub.v1.NamespaceOrBuilder> + internalGetScopeNamespacesFieldBuilder() { + if (scopeNamespacesBuilder_ == null) { + scopeNamespacesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.Namespace, + com.google.cloud.gkehub.v1.Namespace.Builder, + com.google.cloud.gkehub.v1.NamespaceOrBuilder>( + scopeNamespaces_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + scopeNamespaces_ = null; + } + return scopeNamespacesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListNamespaces` method. The value of an empty string means
            +     * that there are no more resources to return.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListNamespaces` method. The value of an empty string means
            +     * that there are no more resources to return.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListNamespaces` method. The value of an empty string means
            +     * that there are no more resources to return.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListNamespaces` method. The value of an empty string means
            +     * that there are no more resources to return.
            +     * 
            + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListNamespaces` method. The value of an empty string means
            +     * that there are no more resources to return.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListScopeNamespacesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListScopeNamespacesResponse) + private static final com.google.cloud.gkehub.v1.ListScopeNamespacesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListScopeNamespacesResponse(); + } + + public static com.google.cloud.gkehub.v1.ListScopeNamespacesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScopeNamespacesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopeNamespacesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeNamespacesResponseOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeNamespacesResponseOrBuilder.java new file mode 100644 index 000000000000..8ef5df12ce03 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeNamespacesResponseOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ListScopeNamespacesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListScopeNamespacesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The list of fleet namespaces
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + java.util.List getScopeNamespacesList(); + + /** + * + * + *
            +   * The list of fleet namespaces
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + com.google.cloud.gkehub.v1.Namespace getScopeNamespaces(int index); + + /** + * + * + *
            +   * The list of fleet namespaces
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + int getScopeNamespacesCount(); + + /** + * + * + *
            +   * The list of fleet namespaces
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + java.util.List + getScopeNamespacesOrBuilderList(); + + /** + * + * + *
            +   * The list of fleet namespaces
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Namespace scope_namespaces = 1; + */ + com.google.cloud.gkehub.v1.NamespaceOrBuilder getScopeNamespacesOrBuilder(int index); + + /** + * + * + *
            +   * A token to request the next page of resources from the
            +   * `ListNamespaces` method. The value of an empty string means
            +   * that there are no more resources to return.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
            +   * A token to request the next page of resources from the
            +   * `ListNamespaces` method. The value of an empty string means
            +   * that there are no more resources to return.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeRBACRoleBindingsRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeRBACRoleBindingsRequest.java new file mode 100644 index 000000000000..d0a725211280 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeRBACRoleBindingsRequest.java @@ -0,0 +1,927 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Request to list Scope RBACRoleBindings.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest} + */ +@com.google.protobuf.Generated +public final class ListScopeRBACRoleBindingsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest) + ListScopeRBACRoleBindingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListScopeRBACRoleBindingsRequest"); + } + + // Use ListScopeRBACRoleBindingsRequest.newBuilder() to construct. + private ListScopeRBACRoleBindingsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListScopeRBACRoleBindingsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest.class, + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The parent (project and location) where the Features will be
            +   * listed. Specified in the format `projects/*/locations/*/scopes/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The parent (project and location) where the Features will be
            +   * listed. Specified in the format `projects/*/locations/*/scopes/*`.
            +   * 
            + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
            +   * Optional. When requesting a 'page' of resources, `page_size` specifies
            +   * number of resources to return. If unspecified or set to 0, all resources
            +   * will be returned.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +   * Optional. Token returned by previous call to `ListScopeRBACRoleBindings`
            +   * which specifies the position in the list from where to continue listing the
            +   * resources.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Token returned by previous call to `ListScopeRBACRoleBindings`
            +   * which specifies the position in the list from where to continue listing the
            +   * resources.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest other = + (com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest) obj; + + 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; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request to list Scope RBACRoleBindings.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest) + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest.class, + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest build() { + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest buildPartial() { + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest result = + new com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest other) { + if (other == com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
            +     * Required. The parent (project and location) where the Features will be
            +     * listed. Specified in the format `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the Features will be
            +     * listed. Specified in the format `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the Features will be
            +     * listed. Specified in the format `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the Features will be
            +     * listed. Specified in the format `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the Features will be
            +     * listed. Specified in the format `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
            +     * Optional. When requesting a 'page' of resources, `page_size` specifies
            +     * number of resources to return. If unspecified or set to 0, all resources
            +     * will be returned.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
            +     * Optional. When requesting a 'page' of resources, `page_size` specifies
            +     * number of resources to return. If unspecified or set to 0, all resources
            +     * will be returned.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. When requesting a 'page' of resources, `page_size` specifies
            +     * number of resources to return. If unspecified or set to 0, all resources
            +     * will be returned.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +     * Optional. Token returned by previous call to `ListScopeRBACRoleBindings`
            +     * which specifies the position in the list from where to continue listing the
            +     * resources.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Token returned by previous call to `ListScopeRBACRoleBindings`
            +     * which specifies the position in the list from where to continue listing the
            +     * resources.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Token returned by previous call to `ListScopeRBACRoleBindings`
            +     * which specifies the position in the list from where to continue listing the
            +     * resources.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Token returned by previous call to `ListScopeRBACRoleBindings`
            +     * which specifies the position in the list from where to continue listing the
            +     * resources.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Token returned by previous call to `ListScopeRBACRoleBindings`
            +     * which specifies the position in the list from where to continue listing the
            +     * resources.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest) + private static final com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest(); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScopeRBACRoleBindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeRBACRoleBindingsRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeRBACRoleBindingsRequestOrBuilder.java new file mode 100644 index 000000000000..f3ce42a2525c --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeRBACRoleBindingsRequestOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ListScopeRBACRoleBindingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The parent (project and location) where the Features will be
            +   * listed. Specified in the format `projects/*/locations/*/scopes/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The parent (project and location) where the Features will be
            +   * listed. Specified in the format `projects/*/locations/*/scopes/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Optional. When requesting a 'page' of resources, `page_size` specifies
            +   * number of resources to return. If unspecified or set to 0, all resources
            +   * will be returned.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
            +   * Optional. Token returned by previous call to `ListScopeRBACRoleBindings`
            +   * which specifies the position in the list from where to continue listing the
            +   * resources.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
            +   * Optional. Token returned by previous call to `ListScopeRBACRoleBindings`
            +   * which specifies the position in the list from where to continue listing the
            +   * resources.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeRBACRoleBindingsResponse.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeRBACRoleBindingsResponse.java new file mode 100644 index 000000000000..2bafb2e02bba --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeRBACRoleBindingsResponse.java @@ -0,0 +1,1142 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * List of Scope RBACRoleBindings.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse} + */ +@com.google.protobuf.Generated +public final class ListScopeRBACRoleBindingsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse) + ListScopeRBACRoleBindingsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListScopeRBACRoleBindingsResponse"); + } + + // Use ListScopeRBACRoleBindingsResponse.newBuilder() to construct. + private ListScopeRBACRoleBindingsResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListScopeRBACRoleBindingsResponse() { + rbacrolebindings_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse.class, + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse.Builder.class); + } + + public static final int RBACROLEBINDINGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List rbacrolebindings_; + + /** + * + * + *
            +   * The list of Scope RBACRoleBindings.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + @java.lang.Override + public java.util.List getRbacrolebindingsList() { + return rbacrolebindings_; + } + + /** + * + * + *
            +   * The list of Scope RBACRoleBindings.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + @java.lang.Override + public java.util.List + getRbacrolebindingsOrBuilderList() { + return rbacrolebindings_; + } + + /** + * + * + *
            +   * The list of Scope RBACRoleBindings.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + @java.lang.Override + public int getRbacrolebindingsCount() { + return rbacrolebindings_.size(); + } + + /** + * + * + *
            +   * The list of Scope RBACRoleBindings.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebindings(int index) { + return rbacrolebindings_.get(index); + } + + /** + * + * + *
            +   * The list of Scope RBACRoleBindings.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingsOrBuilder( + int index) { + return rbacrolebindings_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +   * A token to request the next page of resources from the
            +   * `ListScopeRBACRoleBindings` method. The value of an empty string means
            +   * that there are no more resources to return.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * A token to request the next page of resources from the
            +   * `ListScopeRBACRoleBindings` method. The value of an empty string means
            +   * that there are no more resources to return.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < rbacrolebindings_.size(); i++) { + output.writeMessage(1, rbacrolebindings_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < rbacrolebindings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, rbacrolebindings_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse other = + (com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse) obj; + + if (!getRbacrolebindingsList().equals(other.getRbacrolebindingsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRbacrolebindingsCount() > 0) { + hash = (37 * hash) + RBACROLEBINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getRbacrolebindingsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * List of Scope RBACRoleBindings.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse) + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse.class, + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (rbacrolebindingsBuilder_ == null) { + rbacrolebindings_ = java.util.Collections.emptyList(); + } else { + rbacrolebindings_ = null; + rbacrolebindingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse + getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse build() { + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse buildPartial() { + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse result = + new com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse result) { + if (rbacrolebindingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + rbacrolebindings_ = java.util.Collections.unmodifiableList(rbacrolebindings_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.rbacrolebindings_ = rbacrolebindings_; + } else { + result.rbacrolebindings_ = rbacrolebindingsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse) { + return mergeFrom((com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse other) { + if (other + == com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse.getDefaultInstance()) + return this; + if (rbacrolebindingsBuilder_ == null) { + if (!other.rbacrolebindings_.isEmpty()) { + if (rbacrolebindings_.isEmpty()) { + rbacrolebindings_ = other.rbacrolebindings_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.addAll(other.rbacrolebindings_); + } + onChanged(); + } + } else { + if (!other.rbacrolebindings_.isEmpty()) { + if (rbacrolebindingsBuilder_.isEmpty()) { + rbacrolebindingsBuilder_.dispose(); + rbacrolebindingsBuilder_ = null; + rbacrolebindings_ = other.rbacrolebindings_; + bitField0_ = (bitField0_ & ~0x00000001); + rbacrolebindingsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRbacrolebindingsFieldBuilder() + : null; + } else { + rbacrolebindingsBuilder_.addAllMessages(other.rbacrolebindings_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.gkehub.v1.RBACRoleBinding m = + input.readMessage( + com.google.cloud.gkehub.v1.RBACRoleBinding.parser(), extensionRegistry); + if (rbacrolebindingsBuilder_ == null) { + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.add(m); + } else { + rbacrolebindingsBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List rbacrolebindings_ = + java.util.Collections.emptyList(); + + private void ensureRbacrolebindingsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + rbacrolebindings_ = + new java.util.ArrayList(rbacrolebindings_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder> + rbacrolebindingsBuilder_; + + /** + * + * + *
            +     * The list of Scope RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public java.util.List getRbacrolebindingsList() { + if (rbacrolebindingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(rbacrolebindings_); + } else { + return rbacrolebindingsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * The list of Scope RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public int getRbacrolebindingsCount() { + if (rbacrolebindingsBuilder_ == null) { + return rbacrolebindings_.size(); + } else { + return rbacrolebindingsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * The list of Scope RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebindings(int index) { + if (rbacrolebindingsBuilder_ == null) { + return rbacrolebindings_.get(index); + } else { + return rbacrolebindingsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * The list of Scope RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder setRbacrolebindings( + int index, com.google.cloud.gkehub.v1.RBACRoleBinding value) { + if (rbacrolebindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.set(index, value); + onChanged(); + } else { + rbacrolebindingsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The list of Scope RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder setRbacrolebindings( + int index, com.google.cloud.gkehub.v1.RBACRoleBinding.Builder builderForValue) { + if (rbacrolebindingsBuilder_ == null) { + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.set(index, builderForValue.build()); + onChanged(); + } else { + rbacrolebindingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of Scope RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder addRbacrolebindings(com.google.cloud.gkehub.v1.RBACRoleBinding value) { + if (rbacrolebindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.add(value); + onChanged(); + } else { + rbacrolebindingsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * The list of Scope RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder addRbacrolebindings( + int index, com.google.cloud.gkehub.v1.RBACRoleBinding value) { + if (rbacrolebindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.add(index, value); + onChanged(); + } else { + rbacrolebindingsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The list of Scope RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder addRbacrolebindings( + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder builderForValue) { + if (rbacrolebindingsBuilder_ == null) { + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.add(builderForValue.build()); + onChanged(); + } else { + rbacrolebindingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of Scope RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder addRbacrolebindings( + int index, com.google.cloud.gkehub.v1.RBACRoleBinding.Builder builderForValue) { + if (rbacrolebindingsBuilder_ == null) { + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.add(index, builderForValue.build()); + onChanged(); + } else { + rbacrolebindingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of Scope RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder addAllRbacrolebindings( + java.lang.Iterable values) { + if (rbacrolebindingsBuilder_ == null) { + ensureRbacrolebindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rbacrolebindings_); + onChanged(); + } else { + rbacrolebindingsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * The list of Scope RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder clearRbacrolebindings() { + if (rbacrolebindingsBuilder_ == null) { + rbacrolebindings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + rbacrolebindingsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * The list of Scope RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public Builder removeRbacrolebindings(int index) { + if (rbacrolebindingsBuilder_ == null) { + ensureRbacrolebindingsIsMutable(); + rbacrolebindings_.remove(index); + onChanged(); + } else { + rbacrolebindingsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * The list of Scope RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding.Builder getRbacrolebindingsBuilder( + int index) { + return internalGetRbacrolebindingsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * The list of Scope RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingsOrBuilder( + int index) { + if (rbacrolebindingsBuilder_ == null) { + return rbacrolebindings_.get(index); + } else { + return rbacrolebindingsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * The list of Scope RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public java.util.List + getRbacrolebindingsOrBuilderList() { + if (rbacrolebindingsBuilder_ != null) { + return rbacrolebindingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rbacrolebindings_); + } + } + + /** + * + * + *
            +     * The list of Scope RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding.Builder addRbacrolebindingsBuilder() { + return internalGetRbacrolebindingsFieldBuilder() + .addBuilder(com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance()); + } + + /** + * + * + *
            +     * The list of Scope RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding.Builder addRbacrolebindingsBuilder( + int index) { + return internalGetRbacrolebindingsFieldBuilder() + .addBuilder(index, com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance()); + } + + /** + * + * + *
            +     * The list of Scope RBACRoleBindings.
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + public java.util.List + getRbacrolebindingsBuilderList() { + return internalGetRbacrolebindingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder> + internalGetRbacrolebindingsFieldBuilder() { + if (rbacrolebindingsBuilder_ == null) { + rbacrolebindingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder>( + rbacrolebindings_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + rbacrolebindings_ = null; + } + return rbacrolebindingsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListScopeRBACRoleBindings` method. The value of an empty string means
            +     * that there are no more resources to return.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListScopeRBACRoleBindings` method. The value of an empty string means
            +     * that there are no more resources to return.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListScopeRBACRoleBindings` method. The value of an empty string means
            +     * that there are no more resources to return.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListScopeRBACRoleBindings` method. The value of an empty string means
            +     * that there are no more resources to return.
            +     * 
            + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListScopeRBACRoleBindings` method. The value of an empty string means
            +     * that there are no more resources to return.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse) + private static final com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse(); + } + + public static com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScopeRBACRoleBindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeRBACRoleBindingsResponseOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeRBACRoleBindingsResponseOrBuilder.java new file mode 100644 index 000000000000..899136093e92 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopeRBACRoleBindingsResponseOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ListScopeRBACRoleBindingsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The list of Scope RBACRoleBindings.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + java.util.List getRbacrolebindingsList(); + + /** + * + * + *
            +   * The list of Scope RBACRoleBindings.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebindings(int index); + + /** + * + * + *
            +   * The list of Scope RBACRoleBindings.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + int getRbacrolebindingsCount(); + + /** + * + * + *
            +   * The list of Scope RBACRoleBindings.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + java.util.List + getRbacrolebindingsOrBuilderList(); + + /** + * + * + *
            +   * The list of Scope RBACRoleBindings.
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebindings = 1; + */ + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingsOrBuilder(int index); + + /** + * + * + *
            +   * A token to request the next page of resources from the
            +   * `ListScopeRBACRoleBindings` method. The value of an empty string means
            +   * that there are no more resources to return.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
            +   * A token to request the next page of resources from the
            +   * `ListScopeRBACRoleBindings` method. The value of an empty string means
            +   * that there are no more resources to return.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopesRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopesRequest.java new file mode 100644 index 000000000000..590fccab4e32 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopesRequest.java @@ -0,0 +1,924 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Request to list Scopes.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ListScopesRequest} + */ +@com.google.protobuf.Generated +public final class ListScopesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListScopesRequest) + ListScopesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListScopesRequest"); + } + + // Use ListScopesRequest.newBuilder() to construct. + private ListScopesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListScopesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListScopesRequest.class, + com.google.cloud.gkehub.v1.ListScopesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The parent (project and location) where the Scope will be listed.
            +   * Specified in the format `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The parent (project and location) where the Scope will be listed.
            +   * Specified in the format `projects/*/locations/*`.
            +   * 
            + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
            +   * Optional. When requesting a 'page' of resources, `page_size` specifies
            +   * number of resources to return. If unspecified or set to 0, all resources
            +   * will be returned.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +   * Optional. Token returned by previous call to `ListScopes` which
            +   * specifies the position in the list from where to continue listing the
            +   * resources.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Token returned by previous call to `ListScopes` which
            +   * specifies the position in the list from where to continue listing the
            +   * resources.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.ListScopesRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ListScopesRequest other = + (com.google.cloud.gkehub.v1.ListScopesRequest) obj; + + 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; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ListScopesRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkehub.v1.ListScopesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request to list Scopes.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ListScopesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListScopesRequest) + com.google.cloud.gkehub.v1.ListScopesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListScopesRequest.class, + com.google.cloud.gkehub.v1.ListScopesRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ListScopesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopesRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ListScopesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopesRequest build() { + com.google.cloud.gkehub.v1.ListScopesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopesRequest buildPartial() { + com.google.cloud.gkehub.v1.ListScopesRequest result = + new com.google.cloud.gkehub.v1.ListScopesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.ListScopesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ListScopesRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.ListScopesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ListScopesRequest other) { + if (other == com.google.cloud.gkehub.v1.ListScopesRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
            +     * Required. The parent (project and location) where the Scope will be listed.
            +     * Specified in the format `projects/*/locations/*`.
            +     * 
            + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the Scope will be listed.
            +     * Specified in the format `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the Scope will be listed.
            +     * Specified in the format `projects/*/locations/*`.
            +     * 
            + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the Scope will be listed.
            +     * Specified in the format `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent (project and location) where the Scope will be listed.
            +     * Specified in the format `projects/*/locations/*`.
            +     * 
            + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
            +     * Optional. When requesting a 'page' of resources, `page_size` specifies
            +     * number of resources to return. If unspecified or set to 0, all resources
            +     * will be returned.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
            +     * Optional. When requesting a 'page' of resources, `page_size` specifies
            +     * number of resources to return. If unspecified or set to 0, all resources
            +     * will be returned.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. When requesting a 'page' of resources, `page_size` specifies
            +     * number of resources to return. If unspecified or set to 0, all resources
            +     * will be returned.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +     * Optional. Token returned by previous call to `ListScopes` which
            +     * specifies the position in the list from where to continue listing the
            +     * resources.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Token returned by previous call to `ListScopes` which
            +     * specifies the position in the list from where to continue listing the
            +     * resources.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Token returned by previous call to `ListScopes` which
            +     * specifies the position in the list from where to continue listing the
            +     * resources.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Token returned by previous call to `ListScopes` which
            +     * specifies the position in the list from where to continue listing the
            +     * resources.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Token returned by previous call to `ListScopes` which
            +     * specifies the position in the list from where to continue listing the
            +     * resources.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListScopesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListScopesRequest) + private static final com.google.cloud.gkehub.v1.ListScopesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListScopesRequest(); + } + + public static com.google.cloud.gkehub.v1.ListScopesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScopesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopesRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopesRequestOrBuilder.java new file mode 100644 index 000000000000..7204881b1d41 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopesRequestOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ListScopesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListScopesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The parent (project and location) where the Scope will be listed.
            +   * Specified in the format `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The parent (project and location) where the Scope will be listed.
            +   * Specified in the format `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Optional. When requesting a 'page' of resources, `page_size` specifies
            +   * number of resources to return. If unspecified or set to 0, all resources
            +   * will be returned.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
            +   * Optional. Token returned by previous call to `ListScopes` which
            +   * specifies the position in the list from where to continue listing the
            +   * resources.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
            +   * Optional. Token returned by previous call to `ListScopes` which
            +   * specifies the position in the list from where to continue listing the
            +   * resources.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopesResponse.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopesResponse.java new file mode 100644 index 000000000000..929d2c699747 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopesResponse.java @@ -0,0 +1,1119 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * List of Scopes.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ListScopesResponse} + */ +@com.google.protobuf.Generated +public final class ListScopesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListScopesResponse) + ListScopesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListScopesResponse"); + } + + // Use ListScopesResponse.newBuilder() to construct. + private ListScopesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListScopesResponse() { + scopes_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListScopesResponse.class, + com.google.cloud.gkehub.v1.ListScopesResponse.Builder.class); + } + + public static final int SCOPES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List scopes_; + + /** + * + * + *
            +   * The list of Scopes
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + @java.lang.Override + public java.util.List getScopesList() { + return scopes_; + } + + /** + * + * + *
            +   * The list of Scopes
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + @java.lang.Override + public java.util.List + getScopesOrBuilderList() { + return scopes_; + } + + /** + * + * + *
            +   * The list of Scopes
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + @java.lang.Override + public int getScopesCount() { + return scopes_.size(); + } + + /** + * + * + *
            +   * The list of Scopes
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.Scope getScopes(int index) { + return scopes_.get(index); + } + + /** + * + * + *
            +   * The list of Scopes
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeOrBuilder getScopesOrBuilder(int index) { + return scopes_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +   * A token to request the next page of resources from the
            +   * `ListScopes` method. The value of an empty string means
            +   * that there are no more resources to return.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * A token to request the next page of resources from the
            +   * `ListScopes` method. The value of an empty string means
            +   * that there are no more resources to return.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < scopes_.size(); i++) { + output.writeMessage(1, scopes_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < scopes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, scopes_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.ListScopesResponse)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ListScopesResponse other = + (com.google.cloud.gkehub.v1.ListScopesResponse) obj; + + if (!getScopesList().equals(other.getScopesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getScopesCount() > 0) { + hash = (37 * hash) + SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getScopesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ListScopesResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ListScopesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ListScopesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ListScopesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkehub.v1.ListScopesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * List of Scopes.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ListScopesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListScopesResponse) + com.google.cloud.gkehub.v1.ListScopesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ListScopesResponse.class, + com.google.cloud.gkehub.v1.ListScopesResponse.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ListScopesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (scopesBuilder_ == null) { + scopes_ = java.util.Collections.emptyList(); + } else { + scopes_ = null; + scopesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListScopesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopesResponse getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ListScopesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopesResponse build() { + com.google.cloud.gkehub.v1.ListScopesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopesResponse buildPartial() { + com.google.cloud.gkehub.v1.ListScopesResponse result = + new com.google.cloud.gkehub.v1.ListScopesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.gkehub.v1.ListScopesResponse result) { + if (scopesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + scopes_ = java.util.Collections.unmodifiableList(scopes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.scopes_ = scopes_; + } else { + result.scopes_ = scopesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.gkehub.v1.ListScopesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ListScopesResponse) { + return mergeFrom((com.google.cloud.gkehub.v1.ListScopesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ListScopesResponse other) { + if (other == com.google.cloud.gkehub.v1.ListScopesResponse.getDefaultInstance()) return this; + if (scopesBuilder_ == null) { + if (!other.scopes_.isEmpty()) { + if (scopes_.isEmpty()) { + scopes_ = other.scopes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureScopesIsMutable(); + scopes_.addAll(other.scopes_); + } + onChanged(); + } + } else { + if (!other.scopes_.isEmpty()) { + if (scopesBuilder_.isEmpty()) { + scopesBuilder_.dispose(); + scopesBuilder_ = null; + scopes_ = other.scopes_; + bitField0_ = (bitField0_ & ~0x00000001); + scopesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetScopesFieldBuilder() + : null; + } else { + scopesBuilder_.addAllMessages(other.scopes_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.gkehub.v1.Scope m = + input.readMessage(com.google.cloud.gkehub.v1.Scope.parser(), extensionRegistry); + if (scopesBuilder_ == null) { + ensureScopesIsMutable(); + scopes_.add(m); + } else { + scopesBuilder_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List scopes_ = + java.util.Collections.emptyList(); + + private void ensureScopesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + scopes_ = new java.util.ArrayList(scopes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.Scope, + com.google.cloud.gkehub.v1.Scope.Builder, + com.google.cloud.gkehub.v1.ScopeOrBuilder> + scopesBuilder_; + + /** + * + * + *
            +     * The list of Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public java.util.List getScopesList() { + if (scopesBuilder_ == null) { + return java.util.Collections.unmodifiableList(scopes_); + } else { + return scopesBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * The list of Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public int getScopesCount() { + if (scopesBuilder_ == null) { + return scopes_.size(); + } else { + return scopesBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * The list of Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public com.google.cloud.gkehub.v1.Scope getScopes(int index) { + if (scopesBuilder_ == null) { + return scopes_.get(index); + } else { + return scopesBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * The list of Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder setScopes(int index, com.google.cloud.gkehub.v1.Scope value) { + if (scopesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesIsMutable(); + scopes_.set(index, value); + onChanged(); + } else { + scopesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The list of Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder setScopes(int index, com.google.cloud.gkehub.v1.Scope.Builder builderForValue) { + if (scopesBuilder_ == null) { + ensureScopesIsMutable(); + scopes_.set(index, builderForValue.build()); + onChanged(); + } else { + scopesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder addScopes(com.google.cloud.gkehub.v1.Scope value) { + if (scopesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesIsMutable(); + scopes_.add(value); + onChanged(); + } else { + scopesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * The list of Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder addScopes(int index, com.google.cloud.gkehub.v1.Scope value) { + if (scopesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesIsMutable(); + scopes_.add(index, value); + onChanged(); + } else { + scopesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The list of Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder addScopes(com.google.cloud.gkehub.v1.Scope.Builder builderForValue) { + if (scopesBuilder_ == null) { + ensureScopesIsMutable(); + scopes_.add(builderForValue.build()); + onChanged(); + } else { + scopesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder addScopes(int index, com.google.cloud.gkehub.v1.Scope.Builder builderForValue) { + if (scopesBuilder_ == null) { + ensureScopesIsMutable(); + scopes_.add(index, builderForValue.build()); + onChanged(); + } else { + scopesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder addAllScopes( + java.lang.Iterable values) { + if (scopesBuilder_ == null) { + ensureScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scopes_); + onChanged(); + } else { + scopesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * The list of Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder clearScopes() { + if (scopesBuilder_ == null) { + scopes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + scopesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * The list of Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public Builder removeScopes(int index) { + if (scopesBuilder_ == null) { + ensureScopesIsMutable(); + scopes_.remove(index); + onChanged(); + } else { + scopesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * The list of Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public com.google.cloud.gkehub.v1.Scope.Builder getScopesBuilder(int index) { + return internalGetScopesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * The list of Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public com.google.cloud.gkehub.v1.ScopeOrBuilder getScopesOrBuilder(int index) { + if (scopesBuilder_ == null) { + return scopes_.get(index); + } else { + return scopesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * The list of Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public java.util.List + getScopesOrBuilderList() { + if (scopesBuilder_ != null) { + return scopesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(scopes_); + } + } + + /** + * + * + *
            +     * The list of Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public com.google.cloud.gkehub.v1.Scope.Builder addScopesBuilder() { + return internalGetScopesFieldBuilder() + .addBuilder(com.google.cloud.gkehub.v1.Scope.getDefaultInstance()); + } + + /** + * + * + *
            +     * The list of Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public com.google.cloud.gkehub.v1.Scope.Builder addScopesBuilder(int index) { + return internalGetScopesFieldBuilder() + .addBuilder(index, com.google.cloud.gkehub.v1.Scope.getDefaultInstance()); + } + + /** + * + * + *
            +     * The list of Scopes
            +     * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + public java.util.List getScopesBuilderList() { + return internalGetScopesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.Scope, + com.google.cloud.gkehub.v1.Scope.Builder, + com.google.cloud.gkehub.v1.ScopeOrBuilder> + internalGetScopesFieldBuilder() { + if (scopesBuilder_ == null) { + scopesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.gkehub.v1.Scope, + com.google.cloud.gkehub.v1.Scope.Builder, + com.google.cloud.gkehub.v1.ScopeOrBuilder>( + scopes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + scopes_ = null; + } + return scopesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListScopes` method. The value of an empty string means
            +     * that there are no more resources to return.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListScopes` method. The value of an empty string means
            +     * that there are no more resources to return.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListScopes` method. The value of an empty string means
            +     * that there are no more resources to return.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListScopes` method. The value of an empty string means
            +     * that there are no more resources to return.
            +     * 
            + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token to request the next page of resources from the
            +     * `ListScopes` method. The value of an empty string means
            +     * that there are no more resources to return.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListScopesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListScopesResponse) + private static final com.google.cloud.gkehub.v1.ListScopesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListScopesResponse(); + } + + public static com.google.cloud.gkehub.v1.ListScopesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScopesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ListScopesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopesResponseOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopesResponseOrBuilder.java new file mode 100644 index 000000000000..ffcd7a8e3681 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListScopesResponseOrBuilder.java @@ -0,0 +1,113 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ListScopesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListScopesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The list of Scopes
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + java.util.List getScopesList(); + + /** + * + * + *
            +   * The list of Scopes
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + com.google.cloud.gkehub.v1.Scope getScopes(int index); + + /** + * + * + *
            +   * The list of Scopes
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + int getScopesCount(); + + /** + * + * + *
            +   * The list of Scopes
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + java.util.List getScopesOrBuilderList(); + + /** + * + * + *
            +   * The list of Scopes
            +   * 
            + * + * repeated .google.cloud.gkehub.v1.Scope scopes = 1; + */ + com.google.cloud.gkehub.v1.ScopeOrBuilder getScopesOrBuilder(int index); + + /** + * + * + *
            +   * A token to request the next page of resources from the
            +   * `ListScopes` method. The value of an empty string means
            +   * that there are no more resources to return.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
            +   * A token to request the next page of resources from the
            +   * `ListScopes` method. The value of an empty string means
            +   * that there are no more resources to return.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBinding.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBinding.java new file mode 100644 index 000000000000..07c94ecfd14b --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBinding.java @@ -0,0 +1,2709 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * MembershipBinding is a subresource of a Membership, representing
            + * what Fleet Scopes (or other, future Fleet resources) a Membership is bound
            + * to.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.MembershipBinding} + */ +@com.google.protobuf.Generated +public final class MembershipBinding extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.MembershipBinding) + MembershipBindingOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MembershipBinding"); + } + + // Use MembershipBinding.newBuilder() to construct. + private MembershipBinding(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MembershipBinding() { + name_ = ""; + uid_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_MembershipBinding_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 9: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_MembershipBinding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.MembershipBinding.class, + com.google.cloud.gkehub.v1.MembershipBinding.Builder.class); + } + + private int bitField0_; + private int targetCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object target_; + + public enum TargetCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SCOPE(3), + TARGET_NOT_SET(0); + private final int value; + + private TargetCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TargetCase valueOf(int value) { + return forNumber(value); + } + + public static TargetCase forNumber(int value) { + switch (value) { + case 3: + return SCOPE; + case 0: + return TARGET_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TargetCase getTargetCase() { + return TargetCase.forNumber(targetCase_); + } + + public static final int SCOPE_FIELD_NUMBER = 3; + + /** + * + * + *
            +   * A Scope resource name in the format
            +   * `projects/*/locations/*/scopes/*`.
            +   * 
            + * + * string scope = 3 [(.google.api.resource_reference) = { ... } + * + * @return Whether the scope field is set. + */ + public boolean hasScope() { + return targetCase_ == 3; + } + + /** + * + * + *
            +   * A Scope resource name in the format
            +   * `projects/*/locations/*/scopes/*`.
            +   * 
            + * + * string scope = 3 [(.google.api.resource_reference) = { ... } + * + * @return The scope. + */ + public java.lang.String getScope() { + java.lang.Object ref = ""; + if (targetCase_ == 3) { + ref = target_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (targetCase_ == 3) { + target_ = s; + } + return s; + } + } + + /** + * + * + *
            +   * A Scope resource name in the format
            +   * `projects/*/locations/*/scopes/*`.
            +   * 
            + * + * string scope = 3 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for scope. + */ + public com.google.protobuf.ByteString getScopeBytes() { + java.lang.Object ref = ""; + if (targetCase_ == 3) { + ref = target_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetCase_ == 3) { + target_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * The resource name for the membershipbinding itself
            +   * `projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}`
            +   * 
            + * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * The resource name for the membershipbinding itself
            +   * `projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}`
            +   * 
            + * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + + /** + * + * + *
            +   * Output only. Google-generated UUID for this resource. This is unique across
            +   * all membershipbinding resources. If a membershipbinding resource is deleted
            +   * and another resource with the same name is created, it gets a different
            +   * uid.
            +   * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. Google-generated UUID for this resource. This is unique across
            +   * all membershipbinding resources. If a membershipbinding resource is deleted
            +   * and another resource with the same name is created, it gets a different
            +   * uid.
            +   * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +   * Output only. When the membership binding was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Output only. When the membership binding was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
            +   * Output only. When the membership binding was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
            +   * Output only. When the membership binding was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Output only. When the membership binding was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
            +   * Output only. When the membership binding was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int DELETE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp deleteTime_; + + /** + * + * + *
            +   * Output only. When the membership binding was deleted.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + @java.lang.Override + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * Output only. When the membership binding was deleted.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDeleteTime() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + + /** + * + * + *
            +   * Output only. When the membership binding was deleted.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + + public static final int STATE_FIELD_NUMBER = 8; + private com.google.cloud.gkehub.v1.MembershipBindingLifecycleState state_; + + /** + * + * + *
            +   * Output only. State of the membership binding resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + @java.lang.Override + public boolean hasState() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +   * Output only. State of the membership binding resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipBindingLifecycleState getState() { + return state_ == null + ? com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.getDefaultInstance() + : state_; + } + + /** + * + * + *
            +   * Output only. State of the membership binding resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipBindingLifecycleStateOrBuilder getStateOrBuilder() { + return state_ == null + ? com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.getDefaultInstance() + : state_; + } + + public static final int LABELS_FIELD_NUMBER = 9; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_MembershipBinding_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
            +   * Optional. Labels for this MembershipBinding.
            +   * 
            + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
            +   * Optional. Labels for this MembershipBinding.
            +   * 
            + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
            +   * Optional. Labels for this MembershipBinding.
            +   * 
            + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +   * Optional. Labels for this MembershipBinding.
            +   * 
            + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, uid_); + } + if (targetCase_ == 3) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, target_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(7, getDeleteTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(8, getState()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uid_); + } + if (targetCase_ == 3) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, target_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDeleteTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getState()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, labels__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.MembershipBinding)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.MembershipBinding other = + (com.google.cloud.gkehub.v1.MembershipBinding) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (hasDeleteTime() != other.hasDeleteTime()) return false; + if (hasDeleteTime()) { + if (!getDeleteTime().equals(other.getDeleteTime())) return false; + } + if (hasState() != other.hasState()) return false; + if (hasState()) { + if (!getState().equals(other.getState())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getTargetCase().equals(other.getTargetCase())) return false; + switch (targetCase_) { + case 3: + if (!getScope().equals(other.getScope())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasDeleteTime()) { + hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDeleteTime().hashCode(); + } + if (hasState()) { + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + getState().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + switch (targetCase_) { + case 3: + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + getScope().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.MembershipBinding parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.MembershipBinding parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.MembershipBinding parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.MembershipBinding parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.MembershipBinding parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.MembershipBinding parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.MembershipBinding parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.MembershipBinding parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.MembershipBinding parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.MembershipBinding parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.MembershipBinding parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.MembershipBinding parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkehub.v1.MembershipBinding prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * MembershipBinding is a subresource of a Membership, representing
            +   * what Fleet Scopes (or other, future Fleet resources) a Membership is bound
            +   * to.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.MembershipBinding} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.MembershipBinding) + com.google.cloud.gkehub.v1.MembershipBindingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_MembershipBinding_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 9: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 9: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_MembershipBinding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.MembershipBinding.class, + com.google.cloud.gkehub.v1.MembershipBinding.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.MembershipBinding.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetDeleteTimeFieldBuilder(); + internalGetStateFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + uid_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + state_ = null; + if (stateBuilder_ != null) { + stateBuilder_.dispose(); + stateBuilder_ = null; + } + internalGetMutableLabels().clear(); + targetCase_ = 0; + target_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_MembershipBinding_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipBinding getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.MembershipBinding.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipBinding build() { + com.google.cloud.gkehub.v1.MembershipBinding result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipBinding buildPartial() { + com.google.cloud.gkehub.v1.MembershipBinding result = + new com.google.cloud.gkehub.v1.MembershipBinding(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.MembershipBinding result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.uid_ = uid_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.state_ = stateBuilder_ == null ? state_ : stateBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.gkehub.v1.MembershipBinding result) { + result.targetCase_ = targetCase_; + result.target_ = this.target_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.MembershipBinding) { + return mergeFrom((com.google.cloud.gkehub.v1.MembershipBinding) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.MembershipBinding other) { + if (other == com.google.cloud.gkehub.v1.MembershipBinding.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasDeleteTime()) { + mergeDeleteTime(other.getDeleteTime()); + } + if (other.hasState()) { + mergeState(other.getState()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000080; + switch (other.getTargetCase()) { + case SCOPE: + { + targetCase_ = 3; + target_ = other.target_; + onChanged(); + break; + } + case TARGET_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + targetCase_ = 3; + target_ = s; + break; + } // case 26 + case 42: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + input.readMessage(internalGetStateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 74: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int targetCase_ = 0; + private java.lang.Object target_; + + public TargetCase getTargetCase() { + return TargetCase.forNumber(targetCase_); + } + + public Builder clearTarget() { + targetCase_ = 0; + target_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
            +     * A Scope resource name in the format
            +     * `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * string scope = 3 [(.google.api.resource_reference) = { ... } + * + * @return Whether the scope field is set. + */ + @java.lang.Override + public boolean hasScope() { + return targetCase_ == 3; + } + + /** + * + * + *
            +     * A Scope resource name in the format
            +     * `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * string scope = 3 [(.google.api.resource_reference) = { ... } + * + * @return The scope. + */ + @java.lang.Override + public java.lang.String getScope() { + java.lang.Object ref = ""; + if (targetCase_ == 3) { + ref = target_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (targetCase_ == 3) { + target_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * A Scope resource name in the format
            +     * `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * string scope = 3 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for scope. + */ + @java.lang.Override + public com.google.protobuf.ByteString getScopeBytes() { + java.lang.Object ref = ""; + if (targetCase_ == 3) { + ref = target_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetCase_ == 3) { + target_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * A Scope resource name in the format
            +     * `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * string scope = 3 [(.google.api.resource_reference) = { ... } + * + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetCase_ = 3; + target_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +     * A Scope resource name in the format
            +     * `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * string scope = 3 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearScope() { + if (targetCase_ == 3) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * A Scope resource name in the format
            +     * `projects/*/locations/*/scopes/*`.
            +     * 
            + * + * string scope = 3 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetCase_ = 3; + target_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * The resource name for the membershipbinding itself
            +     * `projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}`
            +     * 
            + * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * The resource name for the membershipbinding itself
            +     * `projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}`
            +     * 
            + * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * The resource name for the membershipbinding itself
            +     * `projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}`
            +     * 
            + * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The resource name for the membershipbinding itself
            +     * `projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}`
            +     * 
            + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * The resource name for the membershipbinding itself
            +     * `projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}`
            +     * 
            + * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object uid_ = ""; + + /** + * + * + *
            +     * Output only. Google-generated UUID for this resource. This is unique across
            +     * all membershipbinding resources. If a membershipbinding resource is deleted
            +     * and another resource with the same name is created, it gets a different
            +     * uid.
            +     * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. Google-generated UUID for this resource. This is unique across
            +     * all membershipbinding resources. If a membershipbinding resource is deleted
            +     * and another resource with the same name is created, it gets a different
            +     * uid.
            +     * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. Google-generated UUID for this resource. This is unique across
            +     * all membershipbinding resources. If a membershipbinding resource is deleted
            +     * and another resource with the same name is created, it gets a different
            +     * uid.
            +     * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Google-generated UUID for this resource. This is unique across
            +     * all membershipbinding resources. If a membershipbinding resource is deleted
            +     * and another resource with the same name is created, it gets a different
            +     * uid.
            +     * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Google-generated UUID for this resource. This is unique across
            +     * all membershipbinding resources. If a membershipbinding resource is deleted
            +     * and another resource with the same name is created, it gets a different
            +     * uid.
            +     * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
            +     * Output only. When the membership binding was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +     * Output only. When the membership binding was created.
            +     * 
            + * + * + * .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_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. When the membership binding was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the membership binding was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the membership binding was created.
            +     * 
            + * + * + * .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_ & 0x00000008) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. When the membership binding was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the membership binding was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. When the membership binding was created.
            +     * 
            + * + * + * .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_; + } + } + + /** + * + * + *
            +     * Output only. When the membership binding was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
            +     * Output only. When the membership binding was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +     * Output only. When the membership binding was last updated.
            +     * 
            + * + * + * .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_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. When the membership binding was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the membership binding was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the membership binding was last updated.
            +     * 
            + * + * + * .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_ & 0x00000010) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. When the membership binding was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the membership binding was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. When the membership binding was last updated.
            +     * 
            + * + * + * .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_; + } + } + + /** + * + * + *
            +     * Output only. When the membership binding was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.Timestamp deleteTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; + + /** + * + * + *
            +     * Output only. When the membership binding was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
            +     * Output only. When the membership binding was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + public com.google.protobuf.Timestamp getDeleteTime() { + if (deleteTimeBuilder_ == null) { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } else { + return deleteTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. When the membership binding was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deleteTime_ = value; + } else { + deleteTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the membership binding was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (deleteTimeBuilder_ == null) { + deleteTime_ = builderForValue.build(); + } else { + deleteTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the membership binding was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getDeleteTimeBuilder().mergeFrom(value); + } else { + deleteTime_ = value; + } + } else { + deleteTimeBuilder_.mergeFrom(value); + } + if (deleteTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. When the membership binding was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDeleteTime() { + bitField0_ = (bitField0_ & ~0x00000020); + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the membership binding was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetDeleteTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. When the membership binding was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + if (deleteTimeBuilder_ != null) { + return deleteTimeBuilder_.getMessageOrBuilder(); + } else { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } + } + + /** + * + * + *
            +     * Output only. When the membership binding was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetDeleteTimeFieldBuilder() { + if (deleteTimeBuilder_ == null) { + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); + deleteTime_ = null; + } + return deleteTimeBuilder_; + } + + private com.google.cloud.gkehub.v1.MembershipBindingLifecycleState state_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState, + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Builder, + com.google.cloud.gkehub.v1.MembershipBindingLifecycleStateOrBuilder> + stateBuilder_; + + /** + * + * + *
            +     * Output only. State of the membership binding resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + public boolean hasState() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
            +     * Output only. State of the membership binding resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + public com.google.cloud.gkehub.v1.MembershipBindingLifecycleState getState() { + if (stateBuilder_ == null) { + return state_ == null + ? com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.getDefaultInstance() + : state_; + } else { + return stateBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. State of the membership binding resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setState(com.google.cloud.gkehub.v1.MembershipBindingLifecycleState value) { + if (stateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + state_ = value; + } else { + stateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. State of the membership binding resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setState( + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Builder builderForValue) { + if (stateBuilder_ == null) { + state_ = builderForValue.build(); + } else { + stateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. State of the membership binding resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeState(com.google.cloud.gkehub.v1.MembershipBindingLifecycleState value) { + if (stateBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && state_ != null + && state_ + != com.google.cloud.gkehub.v1.MembershipBindingLifecycleState + .getDefaultInstance()) { + getStateBuilder().mergeFrom(value); + } else { + state_ = value; + } + } else { + stateBuilder_.mergeFrom(value); + } + if (state_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. State of the membership binding resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000040); + state_ = null; + if (stateBuilder_ != null) { + stateBuilder_.dispose(); + stateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. State of the membership binding resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Builder getStateBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetStateFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. State of the membership binding resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.v1.MembershipBindingLifecycleStateOrBuilder getStateOrBuilder() { + if (stateBuilder_ != null) { + return stateBuilder_.getMessageOrBuilder(); + } else { + return state_ == null + ? com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.getDefaultInstance() + : state_; + } + } + + /** + * + * + *
            +     * Output only. State of the membership binding resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState, + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Builder, + com.google.cloud.gkehub.v1.MembershipBindingLifecycleStateOrBuilder> + internalGetStateFieldBuilder() { + if (stateBuilder_ == null) { + stateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState, + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Builder, + com.google.cloud.gkehub.v1.MembershipBindingLifecycleStateOrBuilder>( + getState(), getParentForChildren(), isClean()); + state_ = null; + } + return stateBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000080; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
            +     * Optional. Labels for this MembershipBinding.
            +     * 
            + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
            +     * Optional. Labels for this MembershipBinding.
            +     * 
            + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
            +     * Optional. Labels for this MembershipBinding.
            +     * 
            + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +     * Optional. Labels for this MembershipBinding.
            +     * 
            + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000080); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
            +     * Optional. Labels for this MembershipBinding.
            +     * 
            + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000080; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
            +     * Optional. Labels for this MembershipBinding.
            +     * 
            + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000080; + return this; + } + + /** + * + * + *
            +     * Optional. Labels for this MembershipBinding.
            +     * 
            + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000080; + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.MembershipBinding) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.MembershipBinding) + private static final com.google.cloud.gkehub.v1.MembershipBinding DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.MembershipBinding(); + } + + public static com.google.cloud.gkehub.v1.MembershipBinding getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipBinding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipBinding getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBindingLifecycleState.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBindingLifecycleState.java new file mode 100644 index 000000000000..36f0b257c86f --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBindingLifecycleState.java @@ -0,0 +1,802 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * MembershipBindingLifecycleState describes the state of a Binding resource.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.MembershipBindingLifecycleState} + */ +@com.google.protobuf.Generated +public final class MembershipBindingLifecycleState extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.MembershipBindingLifecycleState) + MembershipBindingLifecycleStateOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MembershipBindingLifecycleState"); + } + + // Use MembershipBindingLifecycleState.newBuilder() to construct. + private MembershipBindingLifecycleState(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MembershipBindingLifecycleState() { + code_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_MembershipBindingLifecycleState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_MembershipBindingLifecycleState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.class, + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Builder.class); + } + + /** + * + * + *
            +   * Code describes the state of a MembershipBinding resource.
            +   * 
            + * + * Protobuf enum {@code google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code} + */ + public enum Code implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * The code is not set.
            +     * 
            + * + * CODE_UNSPECIFIED = 0; + */ + CODE_UNSPECIFIED(0), + /** + * + * + *
            +     * The membershipbinding is being created.
            +     * 
            + * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
            +     * The membershipbinding active.
            +     * 
            + * + * READY = 2; + */ + READY(2), + /** + * + * + *
            +     * The membershipbinding is being deleted.
            +     * 
            + * + * DELETING = 3; + */ + DELETING(3), + /** + * + * + *
            +     * The membershipbinding is being updated.
            +     * 
            + * + * UPDATING = 4; + */ + UPDATING(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Code"); + } + + /** + * + * + *
            +     * The code is not set.
            +     * 
            + * + * CODE_UNSPECIFIED = 0; + */ + public static final int CODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * The membershipbinding is being created.
            +     * 
            + * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + + /** + * + * + *
            +     * The membershipbinding active.
            +     * 
            + * + * READY = 2; + */ + public static final int READY_VALUE = 2; + + /** + * + * + *
            +     * The membershipbinding is being deleted.
            +     * 
            + * + * DELETING = 3; + */ + public static final int DELETING_VALUE = 3; + + /** + * + * + *
            +     * The membershipbinding is being updated.
            +     * 
            + * + * UPDATING = 4; + */ + public static final int UPDATING_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Code valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Code forNumber(int value) { + switch (value) { + case 0: + return CODE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return READY; + case 3: + return DELETING; + case 4: + return UPDATING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Code findValueByNumber(int number) { + return Code.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Code[] VALUES = values(); + + public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Code(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code) + } + + public static final int CODE_FIELD_NUMBER = 1; + private int code_ = 0; + + /** + * + * + *
            +   * Output only. The current state of the MembershipBinding resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + @java.lang.Override + public int getCodeValue() { + return code_; + } + + /** + * + * + *
            +   * Output only. The current state of the MembershipBinding resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code getCode() { + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code result = + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code.forNumber(code_); + return result == null + ? com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (code_ + != com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code.CODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, code_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (code_ + != com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code.CODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.MembershipBindingLifecycleState)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState other = + (com.google.cloud.gkehub.v1.MembershipBindingLifecycleState) obj; + + if (code_ != other.code_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + code_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.MembershipBindingLifecycleState parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.MembershipBindingLifecycleState parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.MembershipBindingLifecycleState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.MembershipBindingLifecycleState parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.MembershipBindingLifecycleState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.MembershipBindingLifecycleState parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.MembershipBindingLifecycleState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.MembershipBindingLifecycleState parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.MembershipBindingLifecycleState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.MembershipBindingLifecycleState parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.MembershipBindingLifecycleState parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.MembershipBindingLifecycleState parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * MembershipBindingLifecycleState describes the state of a Binding resource.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.MembershipBindingLifecycleState} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.MembershipBindingLifecycleState) + com.google.cloud.gkehub.v1.MembershipBindingLifecycleStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_MembershipBindingLifecycleState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_MembershipBindingLifecycleState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.class, + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + code_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_MembershipBindingLifecycleState_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipBindingLifecycleState getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipBindingLifecycleState build() { + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipBindingLifecycleState buildPartial() { + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState result = + new com.google.cloud.gkehub.v1.MembershipBindingLifecycleState(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.MembershipBindingLifecycleState result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.code_ = code_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.MembershipBindingLifecycleState) { + return mergeFrom((com.google.cloud.gkehub.v1.MembershipBindingLifecycleState) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.MembershipBindingLifecycleState other) { + if (other == com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.getDefaultInstance()) + return this; + if (other.code_ != 0) { + setCodeValue(other.getCodeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + code_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int code_ = 0; + + /** + * + * + *
            +     * Output only. The current state of the MembershipBinding resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + @java.lang.Override + public int getCodeValue() { + return code_; + } + + /** + * + * + *
            +     * Output only. The current state of the MembershipBinding resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for code to set. + * @return This builder for chaining. + */ + public Builder setCodeValue(int value) { + code_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The current state of the MembershipBinding resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code getCode() { + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code result = + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code.forNumber(code_); + return result == null + ? com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Output only. The current state of the MembershipBinding resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The code to set. + * @return This builder for chaining. + */ + public Builder setCode(com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + code_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The current state of the MembershipBinding resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCode() { + bitField0_ = (bitField0_ & ~0x00000001); + code_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.MembershipBindingLifecycleState) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.MembershipBindingLifecycleState) + private static final com.google.cloud.gkehub.v1.MembershipBindingLifecycleState DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.MembershipBindingLifecycleState(); + } + + public static com.google.cloud.gkehub.v1.MembershipBindingLifecycleState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipBindingLifecycleState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipBindingLifecycleState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBindingLifecycleStateOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBindingLifecycleStateOrBuilder.java new file mode 100644 index 000000000000..0bb92eb6f166 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBindingLifecycleStateOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface MembershipBindingLifecycleStateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.MembershipBindingLifecycleState) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Output only. The current state of the MembershipBinding resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + int getCodeValue(); + + /** + * + * + *
            +   * Output only. The current state of the MembershipBinding resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState.Code getCode(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBindingName.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBindingName.java new file mode 100644 index 000000000000..33c646608994 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBindingName.java @@ -0,0 +1,269 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class MembershipBindingName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_MEMBERSHIP_MEMBERSHIPBINDING = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String membership; + private final String membershipbinding; + + @Deprecated + protected MembershipBindingName() { + project = null; + location = null; + membership = null; + membershipbinding = null; + } + + private MembershipBindingName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + membership = Preconditions.checkNotNull(builder.getMembership()); + membershipbinding = Preconditions.checkNotNull(builder.getMembershipbinding()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getMembership() { + return membership; + } + + public String getMembershipbinding() { + return membershipbinding; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static MembershipBindingName of( + String project, String location, String membership, String membershipbinding) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setMembership(membership) + .setMembershipbinding(membershipbinding) + .build(); + } + + public static String format( + String project, String location, String membership, String membershipbinding) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setMembership(membership) + .setMembershipbinding(membershipbinding) + .build() + .toString(); + } + + public static MembershipBindingName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_MEMBERSHIP_MEMBERSHIPBINDING.validatedMatch( + formattedString, "MembershipBindingName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("membership"), + matchMap.get("membershipbinding")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (MembershipBindingName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_MEMBERSHIP_MEMBERSHIPBINDING.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (membership != null) { + fieldMapBuilder.put("membership", membership); + } + if (membershipbinding != null) { + fieldMapBuilder.put("membershipbinding", membershipbinding); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_MEMBERSHIP_MEMBERSHIPBINDING.instantiate( + "project", + project, + "location", + location, + "membership", + membership, + "membershipbinding", + membershipbinding); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + MembershipBindingName that = ((MembershipBindingName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.membership, that.membership) + && Objects.equals(this.membershipbinding, that.membershipbinding); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(membership); + h *= 1000003; + h ^= Objects.hashCode(membershipbinding); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}. + */ + public static class Builder { + private String project; + private String location; + private String membership; + private String membershipbinding; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getMembership() { + return membership; + } + + public String getMembershipbinding() { + return membershipbinding; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setMembership(String membership) { + this.membership = membership; + return this; + } + + public Builder setMembershipbinding(String membershipbinding) { + this.membershipbinding = membershipbinding; + return this; + } + + private Builder(MembershipBindingName membershipBindingName) { + this.project = membershipBindingName.project; + this.location = membershipBindingName.location; + this.membership = membershipBindingName.membership; + this.membershipbinding = membershipBindingName.membershipbinding; + } + + public MembershipBindingName build() { + return new MembershipBindingName(this); + } + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBindingOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBindingOrBuilder.java new file mode 100644 index 000000000000..f58d48e6d058 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBindingOrBuilder.java @@ -0,0 +1,358 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface MembershipBindingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.MembershipBinding) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * A Scope resource name in the format
            +   * `projects/*/locations/*/scopes/*`.
            +   * 
            + * + * string scope = 3 [(.google.api.resource_reference) = { ... } + * + * @return Whether the scope field is set. + */ + boolean hasScope(); + + /** + * + * + *
            +   * A Scope resource name in the format
            +   * `projects/*/locations/*/scopes/*`.
            +   * 
            + * + * string scope = 3 [(.google.api.resource_reference) = { ... } + * + * @return The scope. + */ + java.lang.String getScope(); + + /** + * + * + *
            +   * A Scope resource name in the format
            +   * `projects/*/locations/*/scopes/*`.
            +   * 
            + * + * string scope = 3 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for scope. + */ + com.google.protobuf.ByteString getScopeBytes(); + + /** + * + * + *
            +   * The resource name for the membershipbinding itself
            +   * `projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}`
            +   * 
            + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * The resource name for the membershipbinding itself
            +   * `projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}`
            +   * 
            + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Output only. Google-generated UUID for this resource. This is unique across
            +   * all membershipbinding resources. If a membershipbinding resource is deleted
            +   * and another resource with the same name is created, it gets a different
            +   * uid.
            +   * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + java.lang.String getUid(); + + /** + * + * + *
            +   * Output only. Google-generated UUID for this resource. This is unique across
            +   * all membershipbinding resources. If a membershipbinding resource is deleted
            +   * and another resource with the same name is created, it gets a different
            +   * uid.
            +   * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
            +   * Output only. When the membership binding was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
            +   * Output only. When the membership binding was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
            +   * Output only. When the membership binding was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. When the membership binding was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
            +   * Output only. When the membership binding was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
            +   * Output only. When the membership binding was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. When the membership binding was deleted.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + boolean hasDeleteTime(); + + /** + * + * + *
            +   * Output only. When the membership binding was deleted.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + com.google.protobuf.Timestamp getDeleteTime(); + + /** + * + * + *
            +   * Output only. When the membership binding was deleted.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. State of the membership binding resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + boolean hasState(); + + /** + * + * + *
            +   * Output only. State of the membership binding resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.gkehub.v1.MembershipBindingLifecycleState getState(); + + /** + * + * + *
            +   * Output only. State of the membership binding resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkehub.v1.MembershipBindingLifecycleStateOrBuilder getStateOrBuilder(); + + /** + * + * + *
            +   * Optional. Labels for this MembershipBinding.
            +   * 
            + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
            +   * Optional. Labels for this MembershipBinding.
            +   * 
            + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
            +   * Optional. Labels for this MembershipBinding.
            +   * 
            + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
            +   * Optional. Labels for this MembershipBinding.
            +   * 
            + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
            +   * Optional. Labels for this MembershipBinding.
            +   * 
            + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + com.google.cloud.gkehub.v1.MembershipBinding.TargetCase getTargetCase(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Namespace.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Namespace.java new file mode 100644 index 000000000000..8e6cdf8191fd --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Namespace.java @@ -0,0 +1,2953 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Namespace represents a namespace across the Fleet
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.Namespace} + */ +@com.google.protobuf.Generated +public final class Namespace extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.Namespace) + NamespaceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Namespace"); + } + + // Use Namespace.newBuilder() to construct. + private Namespace(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Namespace() { + name_ = ""; + uid_ = ""; + scope_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Namespace_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 9: + return internalGetNamespaceLabels(); + case 10: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Namespace_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.Namespace.class, + com.google.cloud.gkehub.v1.Namespace.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * The resource name for the namespace
            +   * `projects/{project}/locations/{location}/namespaces/{namespace}`
            +   * 
            + * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * The resource name for the namespace
            +   * `projects/{project}/locations/{location}/namespaces/{namespace}`
            +   * 
            + * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + + /** + * + * + *
            +   * Output only. Google-generated UUID for this resource. This is unique across
            +   * all namespace resources. If a namespace resource is deleted and another
            +   * resource with the same name is created, it gets a different uid.
            +   * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. Google-generated UUID for this resource. This is unique across
            +   * all namespace resources. If a namespace resource is deleted and another
            +   * resource with the same name is created, it gets a different uid.
            +   * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +   * Output only. When the namespace was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Output only. When the namespace was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
            +   * Output only. When the namespace was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
            +   * Output only. When the namespace was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Output only. When the namespace was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
            +   * Output only. When the namespace was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int DELETE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp deleteTime_; + + /** + * + * + *
            +   * Output only. When the namespace was deleted.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + @java.lang.Override + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * Output only. When the namespace was deleted.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDeleteTime() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + + /** + * + * + *
            +   * Output only. When the namespace was deleted.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + + public static final int STATE_FIELD_NUMBER = 6; + private com.google.cloud.gkehub.v1.NamespaceLifecycleState state_; + + /** + * + * + *
            +   * Output only. State of the namespace resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + @java.lang.Override + public boolean hasState() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +   * Output only. State of the namespace resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.NamespaceLifecycleState getState() { + return state_ == null + ? com.google.cloud.gkehub.v1.NamespaceLifecycleState.getDefaultInstance() + : state_; + } + + /** + * + * + *
            +   * Output only. State of the namespace resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.NamespaceLifecycleStateOrBuilder getStateOrBuilder() { + return state_ == null + ? com.google.cloud.gkehub.v1.NamespaceLifecycleState.getDefaultInstance() + : state_; + } + + public static final int SCOPE_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object scope_ = ""; + + /** + * + * + *
            +   * Required. Scope associated with the namespace
            +   * 
            + * + * + * string scope = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The scope. + */ + @java.lang.Override + public java.lang.String getScope() { + java.lang.Object ref = scope_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scope_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. Scope associated with the namespace
            +   * 
            + * + * + * string scope = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for scope. + */ + @java.lang.Override + public com.google.protobuf.ByteString getScopeBytes() { + java.lang.Object ref = scope_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scope_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAMESPACE_LABELS_FIELD_NUMBER = 9; + + private static final class NamespaceLabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Namespace_NamespaceLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField namespaceLabels_; + + private com.google.protobuf.MapField + internalGetNamespaceLabels() { + if (namespaceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + NamespaceLabelsDefaultEntryHolder.defaultEntry); + } + return namespaceLabels_; + } + + public int getNamespaceLabelsCount() { + return internalGetNamespaceLabels().getMap().size(); + } + + /** + * + * + *
            +   * Optional. Namespace-level cluster namespace labels. These labels are
            +   * applied to the related namespace of the member clusters bound to the parent
            +   * Scope. Scope-level labels (`namespace_labels` in the Fleet Scope
            +   * resource) take precedence over Namespace-level labels if they share
            +   * a key. Keys and values must be Kubernetes-conformant.
            +   * 
            + * + * map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsNamespaceLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetNamespaceLabels().getMap().containsKey(key); + } + + /** Use {@link #getNamespaceLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getNamespaceLabels() { + return getNamespaceLabelsMap(); + } + + /** + * + * + *
            +   * Optional. Namespace-level cluster namespace labels. These labels are
            +   * applied to the related namespace of the member clusters bound to the parent
            +   * Scope. Scope-level labels (`namespace_labels` in the Fleet Scope
            +   * resource) take precedence over Namespace-level labels if they share
            +   * a key. Keys and values must be Kubernetes-conformant.
            +   * 
            + * + * map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getNamespaceLabelsMap() { + return internalGetNamespaceLabels().getMap(); + } + + /** + * + * + *
            +   * Optional. Namespace-level cluster namespace labels. These labels are
            +   * applied to the related namespace of the member clusters bound to the parent
            +   * Scope. Scope-level labels (`namespace_labels` in the Fleet Scope
            +   * resource) take precedence over Namespace-level labels if they share
            +   * a key. Keys and values must be Kubernetes-conformant.
            +   * 
            + * + * map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getNamespaceLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetNamespaceLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +   * Optional. Namespace-level cluster namespace labels. These labels are
            +   * applied to the related namespace of the member clusters bound to the parent
            +   * Scope. Scope-level labels (`namespace_labels` in the Fleet Scope
            +   * resource) take precedence over Namespace-level labels if they share
            +   * a key. Keys and values must be Kubernetes-conformant.
            +   * 
            + * + * map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getNamespaceLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetNamespaceLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int LABELS_FIELD_NUMBER = 10; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Namespace_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
            +   * Optional. Labels for this Namespace.
            +   * 
            + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
            +   * Optional. Labels for this Namespace.
            +   * 
            + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
            +   * Optional. Labels for this Namespace.
            +   * 
            + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +   * Optional. Labels for this Namespace.
            +   * 
            + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, uid_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getDeleteTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(6, getState()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(scope_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, scope_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetNamespaceLabels(), NamespaceLabelsDefaultEntryHolder.defaultEntry, 9); + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uid_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDeleteTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getState()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(scope_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, scope_); + } + for (java.util.Map.Entry entry : + internalGetNamespaceLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry namespaceLabels__ = + NamespaceLabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, namespaceLabels__); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, labels__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.Namespace)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.Namespace other = (com.google.cloud.gkehub.v1.Namespace) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (hasDeleteTime() != other.hasDeleteTime()) return false; + if (hasDeleteTime()) { + if (!getDeleteTime().equals(other.getDeleteTime())) return false; + } + if (hasState() != other.hasState()) return false; + if (hasState()) { + if (!getState().equals(other.getState())) return false; + } + if (!getScope().equals(other.getScope())) return false; + if (!internalGetNamespaceLabels().equals(other.internalGetNamespaceLabels())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasDeleteTime()) { + hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDeleteTime().hashCode(); + } + if (hasState()) { + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + getState().hashCode(); + } + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + getScope().hashCode(); + if (!internalGetNamespaceLabels().getMap().isEmpty()) { + hash = (37 * hash) + NAMESPACE_LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetNamespaceLabels().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.Namespace parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.Namespace parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.Namespace parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.Namespace parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.Namespace parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.Namespace parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.Namespace parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.Namespace parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.Namespace parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.Namespace parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.Namespace parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.Namespace parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkehub.v1.Namespace prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Namespace represents a namespace across the Fleet
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.Namespace} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.Namespace) + com.google.cloud.gkehub.v1.NamespaceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Namespace_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 9: + return internalGetNamespaceLabels(); + case 10: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 9: + return internalGetMutableNamespaceLabels(); + case 10: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Namespace_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.Namespace.class, + com.google.cloud.gkehub.v1.Namespace.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.Namespace.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetDeleteTimeFieldBuilder(); + internalGetStateFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + uid_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + state_ = null; + if (stateBuilder_ != null) { + stateBuilder_.dispose(); + stateBuilder_ = null; + } + scope_ = ""; + internalGetMutableNamespaceLabels().clear(); + internalGetMutableLabels().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Namespace_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.Namespace getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.Namespace.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.Namespace build() { + com.google.cloud.gkehub.v1.Namespace result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.Namespace buildPartial() { + com.google.cloud.gkehub.v1.Namespace result = new com.google.cloud.gkehub.v1.Namespace(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.Namespace result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uid_ = uid_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.state_ = stateBuilder_ == null ? state_ : stateBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.scope_ = scope_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.namespaceLabels_ = internalGetNamespaceLabels(); + result.namespaceLabels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.Namespace) { + return mergeFrom((com.google.cloud.gkehub.v1.Namespace) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.Namespace other) { + if (other == com.google.cloud.gkehub.v1.Namespace.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasDeleteTime()) { + mergeDeleteTime(other.getDeleteTime()); + } + if (other.hasState()) { + mergeState(other.getState()); + } + if (!other.getScope().isEmpty()) { + scope_ = other.scope_; + bitField0_ |= 0x00000040; + onChanged(); + } + internalGetMutableNamespaceLabels().mergeFrom(other.internalGetNamespaceLabels()); + bitField0_ |= 0x00000080; + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000100; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(internalGetStateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 66: + { + scope_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 74: + { + com.google.protobuf.MapEntry namespaceLabels__ = + input.readMessage( + NamespaceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableNamespaceLabels() + .getMutableMap() + .put(namespaceLabels__.getKey(), namespaceLabels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 74 + case 82: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000100; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * The resource name for the namespace
            +     * `projects/{project}/locations/{location}/namespaces/{namespace}`
            +     * 
            + * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * The resource name for the namespace
            +     * `projects/{project}/locations/{location}/namespaces/{namespace}`
            +     * 
            + * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * The resource name for the namespace
            +     * `projects/{project}/locations/{location}/namespaces/{namespace}`
            +     * 
            + * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The resource name for the namespace
            +     * `projects/{project}/locations/{location}/namespaces/{namespace}`
            +     * 
            + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * The resource name for the namespace
            +     * `projects/{project}/locations/{location}/namespaces/{namespace}`
            +     * 
            + * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object uid_ = ""; + + /** + * + * + *
            +     * Output only. Google-generated UUID for this resource. This is unique across
            +     * all namespace resources. If a namespace resource is deleted and another
            +     * resource with the same name is created, it gets a different uid.
            +     * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. Google-generated UUID for this resource. This is unique across
            +     * all namespace resources. If a namespace resource is deleted and another
            +     * resource with the same name is created, it gets a different uid.
            +     * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. Google-generated UUID for this resource. This is unique across
            +     * all namespace resources. If a namespace resource is deleted and another
            +     * resource with the same name is created, it gets a different uid.
            +     * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Google-generated UUID for this resource. This is unique across
            +     * all namespace resources. If a namespace resource is deleted and another
            +     * resource with the same name is created, it gets a different uid.
            +     * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Google-generated UUID for this resource. This is unique across
            +     * all namespace resources. If a namespace resource is deleted and another
            +     * resource with the same name is created, it gets a different uid.
            +     * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
            +     * Output only. When the namespace was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Output only. When the namespace was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. When the namespace was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the namespace was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the namespace was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. When the namespace was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the namespace was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. When the namespace was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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_; + } + } + + /** + * + * + *
            +     * Output only. When the namespace was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
            +     * Output only. When the namespace was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +     * Output only. When the namespace was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.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_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. When the namespace was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the namespace was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the namespace was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. When the namespace was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the namespace was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. When the namespace was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.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_; + } + } + + /** + * + * + *
            +     * Output only. When the namespace was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.Timestamp deleteTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; + + /** + * + * + *
            +     * Output only. When the namespace was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +     * Output only. When the namespace was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + public com.google.protobuf.Timestamp getDeleteTime() { + if (deleteTimeBuilder_ == null) { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } else { + return deleteTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. When the namespace was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deleteTime_ = value; + } else { + deleteTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the namespace was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (deleteTimeBuilder_ == null) { + deleteTime_ = builderForValue.build(); + } else { + deleteTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the namespace was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getDeleteTimeBuilder().mergeFrom(value); + } else { + deleteTime_ = value; + } + } else { + deleteTimeBuilder_.mergeFrom(value); + } + if (deleteTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. When the namespace was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDeleteTime() { + bitField0_ = (bitField0_ & ~0x00000010); + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the namespace was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetDeleteTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. When the namespace was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + if (deleteTimeBuilder_ != null) { + return deleteTimeBuilder_.getMessageOrBuilder(); + } else { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } + } + + /** + * + * + *
            +     * Output only. When the namespace was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetDeleteTimeFieldBuilder() { + if (deleteTimeBuilder_ == null) { + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); + deleteTime_ = null; + } + return deleteTimeBuilder_; + } + + private com.google.cloud.gkehub.v1.NamespaceLifecycleState state_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.NamespaceLifecycleState, + com.google.cloud.gkehub.v1.NamespaceLifecycleState.Builder, + com.google.cloud.gkehub.v1.NamespaceLifecycleStateOrBuilder> + stateBuilder_; + + /** + * + * + *
            +     * Output only. State of the namespace resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + public boolean hasState() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
            +     * Output only. State of the namespace resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + public com.google.cloud.gkehub.v1.NamespaceLifecycleState getState() { + if (stateBuilder_ == null) { + return state_ == null + ? com.google.cloud.gkehub.v1.NamespaceLifecycleState.getDefaultInstance() + : state_; + } else { + return stateBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. State of the namespace resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setState(com.google.cloud.gkehub.v1.NamespaceLifecycleState value) { + if (stateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + state_ = value; + } else { + stateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. State of the namespace resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setState( + com.google.cloud.gkehub.v1.NamespaceLifecycleState.Builder builderForValue) { + if (stateBuilder_ == null) { + state_ = builderForValue.build(); + } else { + stateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. State of the namespace resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeState(com.google.cloud.gkehub.v1.NamespaceLifecycleState value) { + if (stateBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && state_ != null + && state_ != com.google.cloud.gkehub.v1.NamespaceLifecycleState.getDefaultInstance()) { + getStateBuilder().mergeFrom(value); + } else { + state_ = value; + } + } else { + stateBuilder_.mergeFrom(value); + } + if (state_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. State of the namespace resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000020); + state_ = null; + if (stateBuilder_ != null) { + stateBuilder_.dispose(); + stateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. State of the namespace resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.v1.NamespaceLifecycleState.Builder getStateBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetStateFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. State of the namespace resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.v1.NamespaceLifecycleStateOrBuilder getStateOrBuilder() { + if (stateBuilder_ != null) { + return stateBuilder_.getMessageOrBuilder(); + } else { + return state_ == null + ? com.google.cloud.gkehub.v1.NamespaceLifecycleState.getDefaultInstance() + : state_; + } + } + + /** + * + * + *
            +     * Output only. State of the namespace resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.NamespaceLifecycleState, + com.google.cloud.gkehub.v1.NamespaceLifecycleState.Builder, + com.google.cloud.gkehub.v1.NamespaceLifecycleStateOrBuilder> + internalGetStateFieldBuilder() { + if (stateBuilder_ == null) { + stateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.NamespaceLifecycleState, + com.google.cloud.gkehub.v1.NamespaceLifecycleState.Builder, + com.google.cloud.gkehub.v1.NamespaceLifecycleStateOrBuilder>( + getState(), getParentForChildren(), isClean()); + state_ = null; + } + return stateBuilder_; + } + + private java.lang.Object scope_ = ""; + + /** + * + * + *
            +     * Required. Scope associated with the namespace
            +     * 
            + * + * + * string scope = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The scope. + */ + public java.lang.String getScope() { + java.lang.Object ref = scope_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scope_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. Scope associated with the namespace
            +     * 
            + * + * + * string scope = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for scope. + */ + public com.google.protobuf.ByteString getScopeBytes() { + java.lang.Object ref = scope_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scope_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. Scope associated with the namespace
            +     * 
            + * + * + * string scope = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + scope_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Scope associated with the namespace
            +     * 
            + * + * + * string scope = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearScope() { + scope_ = getDefaultInstance().getScope(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Scope associated with the namespace
            +     * 
            + * + * + * string scope = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scope_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.protobuf.MapField namespaceLabels_; + + private com.google.protobuf.MapField + internalGetNamespaceLabels() { + if (namespaceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + NamespaceLabelsDefaultEntryHolder.defaultEntry); + } + return namespaceLabels_; + } + + private com.google.protobuf.MapField + internalGetMutableNamespaceLabels() { + if (namespaceLabels_ == null) { + namespaceLabels_ = + com.google.protobuf.MapField.newMapField( + NamespaceLabelsDefaultEntryHolder.defaultEntry); + } + if (!namespaceLabels_.isMutable()) { + namespaceLabels_ = namespaceLabels_.copy(); + } + bitField0_ |= 0x00000080; + onChanged(); + return namespaceLabels_; + } + + public int getNamespaceLabelsCount() { + return internalGetNamespaceLabels().getMap().size(); + } + + /** + * + * + *
            +     * Optional. Namespace-level cluster namespace labels. These labels are
            +     * applied to the related namespace of the member clusters bound to the parent
            +     * Scope. Scope-level labels (`namespace_labels` in the Fleet Scope
            +     * resource) take precedence over Namespace-level labels if they share
            +     * a key. Keys and values must be Kubernetes-conformant.
            +     * 
            + * + * + * map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsNamespaceLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetNamespaceLabels().getMap().containsKey(key); + } + + /** Use {@link #getNamespaceLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getNamespaceLabels() { + return getNamespaceLabelsMap(); + } + + /** + * + * + *
            +     * Optional. Namespace-level cluster namespace labels. These labels are
            +     * applied to the related namespace of the member clusters bound to the parent
            +     * Scope. Scope-level labels (`namespace_labels` in the Fleet Scope
            +     * resource) take precedence over Namespace-level labels if they share
            +     * a key. Keys and values must be Kubernetes-conformant.
            +     * 
            + * + * + * map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getNamespaceLabelsMap() { + return internalGetNamespaceLabels().getMap(); + } + + /** + * + * + *
            +     * Optional. Namespace-level cluster namespace labels. These labels are
            +     * applied to the related namespace of the member clusters bound to the parent
            +     * Scope. Scope-level labels (`namespace_labels` in the Fleet Scope
            +     * resource) take precedence over Namespace-level labels if they share
            +     * a key. Keys and values must be Kubernetes-conformant.
            +     * 
            + * + * + * map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getNamespaceLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetNamespaceLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +     * Optional. Namespace-level cluster namespace labels. These labels are
            +     * applied to the related namespace of the member clusters bound to the parent
            +     * Scope. Scope-level labels (`namespace_labels` in the Fleet Scope
            +     * resource) take precedence over Namespace-level labels if they share
            +     * a key. Keys and values must be Kubernetes-conformant.
            +     * 
            + * + * + * map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getNamespaceLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetNamespaceLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearNamespaceLabels() { + bitField0_ = (bitField0_ & ~0x00000080); + internalGetMutableNamespaceLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
            +     * Optional. Namespace-level cluster namespace labels. These labels are
            +     * applied to the related namespace of the member clusters bound to the parent
            +     * Scope. Scope-level labels (`namespace_labels` in the Fleet Scope
            +     * resource) take precedence over Namespace-level labels if they share
            +     * a key. Keys and values must be Kubernetes-conformant.
            +     * 
            + * + * + * map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeNamespaceLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableNamespaceLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableNamespaceLabels() { + bitField0_ |= 0x00000080; + return internalGetMutableNamespaceLabels().getMutableMap(); + } + + /** + * + * + *
            +     * Optional. Namespace-level cluster namespace labels. These labels are
            +     * applied to the related namespace of the member clusters bound to the parent
            +     * Scope. Scope-level labels (`namespace_labels` in the Fleet Scope
            +     * resource) take precedence over Namespace-level labels if they share
            +     * a key. Keys and values must be Kubernetes-conformant.
            +     * 
            + * + * + * map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putNamespaceLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableNamespaceLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000080; + return this; + } + + /** + * + * + *
            +     * Optional. Namespace-level cluster namespace labels. These labels are
            +     * applied to the related namespace of the member clusters bound to the parent
            +     * Scope. Scope-level labels (`namespace_labels` in the Fleet Scope
            +     * resource) take precedence over Namespace-level labels if they share
            +     * a key. Keys and values must be Kubernetes-conformant.
            +     * 
            + * + * + * map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllNamespaceLabels(java.util.Map values) { + internalGetMutableNamespaceLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000080; + return this; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000100; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
            +     * Optional. Labels for this Namespace.
            +     * 
            + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
            +     * Optional. Labels for this Namespace.
            +     * 
            + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
            +     * Optional. Labels for this Namespace.
            +     * 
            + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +     * Optional. Labels for this Namespace.
            +     * 
            + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000100); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
            +     * Optional. Labels for this Namespace.
            +     * 
            + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000100; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
            +     * Optional. Labels for this Namespace.
            +     * 
            + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000100; + return this; + } + + /** + * + * + *
            +     * Optional. Labels for this Namespace.
            +     * 
            + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000100; + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.Namespace) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.Namespace) + private static final com.google.cloud.gkehub.v1.Namespace DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.Namespace(); + } + + public static com.google.cloud.gkehub.v1.Namespace getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Namespace parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.Namespace getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/NamespaceLifecycleState.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/NamespaceLifecycleState.java new file mode 100644 index 000000000000..b38c63808255 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/NamespaceLifecycleState.java @@ -0,0 +1,799 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * NamespaceLifecycleState describes the state of a Namespace resource.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.NamespaceLifecycleState} + */ +@com.google.protobuf.Generated +public final class NamespaceLifecycleState extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.NamespaceLifecycleState) + NamespaceLifecycleStateOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "NamespaceLifecycleState"); + } + + // Use NamespaceLifecycleState.newBuilder() to construct. + private NamespaceLifecycleState(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private NamespaceLifecycleState() { + code_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_NamespaceLifecycleState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_NamespaceLifecycleState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.NamespaceLifecycleState.class, + com.google.cloud.gkehub.v1.NamespaceLifecycleState.Builder.class); + } + + /** + * + * + *
            +   * Code describes the state of a Namespace resource.
            +   * 
            + * + * Protobuf enum {@code google.cloud.gkehub.v1.NamespaceLifecycleState.Code} + */ + public enum Code implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * The code is not set.
            +     * 
            + * + * CODE_UNSPECIFIED = 0; + */ + CODE_UNSPECIFIED(0), + /** + * + * + *
            +     * The namespace is being created.
            +     * 
            + * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
            +     * The namespace active.
            +     * 
            + * + * READY = 2; + */ + READY(2), + /** + * + * + *
            +     * The namespace is being deleted.
            +     * 
            + * + * DELETING = 3; + */ + DELETING(3), + /** + * + * + *
            +     * The namespace is being updated.
            +     * 
            + * + * UPDATING = 4; + */ + UPDATING(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Code"); + } + + /** + * + * + *
            +     * The code is not set.
            +     * 
            + * + * CODE_UNSPECIFIED = 0; + */ + public static final int CODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * The namespace is being created.
            +     * 
            + * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + + /** + * + * + *
            +     * The namespace active.
            +     * 
            + * + * READY = 2; + */ + public static final int READY_VALUE = 2; + + /** + * + * + *
            +     * The namespace is being deleted.
            +     * 
            + * + * DELETING = 3; + */ + public static final int DELETING_VALUE = 3; + + /** + * + * + *
            +     * The namespace is being updated.
            +     * 
            + * + * UPDATING = 4; + */ + public static final int UPDATING_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Code valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Code forNumber(int value) { + switch (value) { + case 0: + return CODE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return READY; + case 3: + return DELETING; + case 4: + return UPDATING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Code findValueByNumber(int number) { + return Code.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.v1.NamespaceLifecycleState.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Code[] VALUES = values(); + + public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Code(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.v1.NamespaceLifecycleState.Code) + } + + public static final int CODE_FIELD_NUMBER = 1; + private int code_ = 0; + + /** + * + * + *
            +   * Output only. The current state of the Namespace resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + @java.lang.Override + public int getCodeValue() { + return code_; + } + + /** + * + * + *
            +   * Output only. The current state of the Namespace resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.NamespaceLifecycleState.Code getCode() { + com.google.cloud.gkehub.v1.NamespaceLifecycleState.Code result = + com.google.cloud.gkehub.v1.NamespaceLifecycleState.Code.forNumber(code_); + return result == null + ? com.google.cloud.gkehub.v1.NamespaceLifecycleState.Code.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (code_ + != com.google.cloud.gkehub.v1.NamespaceLifecycleState.Code.CODE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, code_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (code_ + != com.google.cloud.gkehub.v1.NamespaceLifecycleState.Code.CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.NamespaceLifecycleState)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.NamespaceLifecycleState other = + (com.google.cloud.gkehub.v1.NamespaceLifecycleState) obj; + + if (code_ != other.code_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + code_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.NamespaceLifecycleState parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.NamespaceLifecycleState parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.NamespaceLifecycleState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.NamespaceLifecycleState parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.NamespaceLifecycleState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.NamespaceLifecycleState parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.NamespaceLifecycleState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.NamespaceLifecycleState parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.NamespaceLifecycleState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.NamespaceLifecycleState parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.NamespaceLifecycleState parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.NamespaceLifecycleState parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkehub.v1.NamespaceLifecycleState prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * NamespaceLifecycleState describes the state of a Namespace resource.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.NamespaceLifecycleState} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.NamespaceLifecycleState) + com.google.cloud.gkehub.v1.NamespaceLifecycleStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_NamespaceLifecycleState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_NamespaceLifecycleState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.NamespaceLifecycleState.class, + com.google.cloud.gkehub.v1.NamespaceLifecycleState.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.NamespaceLifecycleState.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + code_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_NamespaceLifecycleState_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.NamespaceLifecycleState getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.NamespaceLifecycleState.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.NamespaceLifecycleState build() { + com.google.cloud.gkehub.v1.NamespaceLifecycleState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.NamespaceLifecycleState buildPartial() { + com.google.cloud.gkehub.v1.NamespaceLifecycleState result = + new com.google.cloud.gkehub.v1.NamespaceLifecycleState(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.NamespaceLifecycleState result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.code_ = code_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.NamespaceLifecycleState) { + return mergeFrom((com.google.cloud.gkehub.v1.NamespaceLifecycleState) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.NamespaceLifecycleState other) { + if (other == com.google.cloud.gkehub.v1.NamespaceLifecycleState.getDefaultInstance()) + return this; + if (other.code_ != 0) { + setCodeValue(other.getCodeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + code_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int code_ = 0; + + /** + * + * + *
            +     * Output only. The current state of the Namespace resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + @java.lang.Override + public int getCodeValue() { + return code_; + } + + /** + * + * + *
            +     * Output only. The current state of the Namespace resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for code to set. + * @return This builder for chaining. + */ + public Builder setCodeValue(int value) { + code_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The current state of the Namespace resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.NamespaceLifecycleState.Code getCode() { + com.google.cloud.gkehub.v1.NamespaceLifecycleState.Code result = + com.google.cloud.gkehub.v1.NamespaceLifecycleState.Code.forNumber(code_); + return result == null + ? com.google.cloud.gkehub.v1.NamespaceLifecycleState.Code.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Output only. The current state of the Namespace resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The code to set. + * @return This builder for chaining. + */ + public Builder setCode(com.google.cloud.gkehub.v1.NamespaceLifecycleState.Code value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + code_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The current state of the Namespace resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCode() { + bitField0_ = (bitField0_ & ~0x00000001); + code_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.NamespaceLifecycleState) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.NamespaceLifecycleState) + private static final com.google.cloud.gkehub.v1.NamespaceLifecycleState DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.NamespaceLifecycleState(); + } + + public static com.google.cloud.gkehub.v1.NamespaceLifecycleState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamespaceLifecycleState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.NamespaceLifecycleState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/NamespaceLifecycleStateOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/NamespaceLifecycleStateOrBuilder.java new file mode 100644 index 000000000000..75d19f21e136 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/NamespaceLifecycleStateOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface NamespaceLifecycleStateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.NamespaceLifecycleState) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Output only. The current state of the Namespace resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + int getCodeValue(); + + /** + * + * + *
            +   * Output only. The current state of the Namespace resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + com.google.cloud.gkehub.v1.NamespaceLifecycleState.Code getCode(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/NamespaceName.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/NamespaceName.java new file mode 100644 index 000000000000..6969dab0449f --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/NamespaceName.java @@ -0,0 +1,257 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class NamespaceName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_SCOPE_NAMESPACE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/scopes/{scope}/namespaces/{namespace}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String scope; + private final String namespace; + + @Deprecated + protected NamespaceName() { + project = null; + location = null; + scope = null; + namespace = null; + } + + private NamespaceName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + scope = Preconditions.checkNotNull(builder.getScope()); + namespace = Preconditions.checkNotNull(builder.getNamespace()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getScope() { + return scope; + } + + public String getNamespace() { + return namespace; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static NamespaceName of(String project, String location, String scope, String namespace) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setScope(scope) + .setNamespace(namespace) + .build(); + } + + public static String format(String project, String location, String scope, String namespace) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setScope(scope) + .setNamespace(namespace) + .build() + .toString(); + } + + public static NamespaceName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_SCOPE_NAMESPACE.validatedMatch( + formattedString, "NamespaceName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("scope"), + matchMap.get("namespace")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (NamespaceName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_SCOPE_NAMESPACE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (scope != null) { + fieldMapBuilder.put("scope", scope); + } + if (namespace != null) { + fieldMapBuilder.put("namespace", namespace); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_SCOPE_NAMESPACE.instantiate( + "project", project, "location", location, "scope", scope, "namespace", namespace); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + NamespaceName that = ((NamespaceName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.scope, that.scope) + && Objects.equals(this.namespace, that.namespace); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(scope); + h *= 1000003; + h ^= Objects.hashCode(namespace); + return h; + } + + /** Builder for projects/{project}/locations/{location}/scopes/{scope}/namespaces/{namespace}. */ + public static class Builder { + private String project; + private String location; + private String scope; + private String namespace; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getScope() { + return scope; + } + + public String getNamespace() { + return namespace; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setScope(String scope) { + this.scope = scope; + return this; + } + + public Builder setNamespace(String namespace) { + this.namespace = namespace; + return this; + } + + private Builder(NamespaceName namespaceName) { + this.project = namespaceName.project; + this.location = namespaceName.location; + this.scope = namespaceName.scope; + this.namespace = namespaceName.namespace; + } + + public NamespaceName build() { + return new NamespaceName(this); + } + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/NamespaceOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/NamespaceOrBuilder.java new file mode 100644 index 000000000000..928a96d118fc --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/NamespaceOrBuilder.java @@ -0,0 +1,430 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface NamespaceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.Namespace) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The resource name for the namespace
            +   * `projects/{project}/locations/{location}/namespaces/{namespace}`
            +   * 
            + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * The resource name for the namespace
            +   * `projects/{project}/locations/{location}/namespaces/{namespace}`
            +   * 
            + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Output only. Google-generated UUID for this resource. This is unique across
            +   * all namespace resources. If a namespace resource is deleted and another
            +   * resource with the same name is created, it gets a different uid.
            +   * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + java.lang.String getUid(); + + /** + * + * + *
            +   * Output only. Google-generated UUID for this resource. This is unique across
            +   * all namespace resources. If a namespace resource is deleted and another
            +   * resource with the same name is created, it gets a different uid.
            +   * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
            +   * Output only. When the namespace was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
            +   * Output only. When the namespace was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
            +   * Output only. When the namespace was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. When the namespace was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
            +   * Output only. When the namespace was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
            +   * Output only. When the namespace was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. When the namespace was deleted.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + boolean hasDeleteTime(); + + /** + * + * + *
            +   * Output only. When the namespace was deleted.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + com.google.protobuf.Timestamp getDeleteTime(); + + /** + * + * + *
            +   * Output only. When the namespace was deleted.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. State of the namespace resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + boolean hasState(); + + /** + * + * + *
            +   * Output only. State of the namespace resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.gkehub.v1.NamespaceLifecycleState getState(); + + /** + * + * + *
            +   * Output only. State of the namespace resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkehub.v1.NamespaceLifecycleStateOrBuilder getStateOrBuilder(); + + /** + * + * + *
            +   * Required. Scope associated with the namespace
            +   * 
            + * + * + * string scope = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The scope. + */ + java.lang.String getScope(); + + /** + * + * + *
            +   * Required. Scope associated with the namespace
            +   * 
            + * + * + * string scope = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for scope. + */ + com.google.protobuf.ByteString getScopeBytes(); + + /** + * + * + *
            +   * Optional. Namespace-level cluster namespace labels. These labels are
            +   * applied to the related namespace of the member clusters bound to the parent
            +   * Scope. Scope-level labels (`namespace_labels` in the Fleet Scope
            +   * resource) take precedence over Namespace-level labels if they share
            +   * a key. Keys and values must be Kubernetes-conformant.
            +   * 
            + * + * map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getNamespaceLabelsCount(); + + /** + * + * + *
            +   * Optional. Namespace-level cluster namespace labels. These labels are
            +   * applied to the related namespace of the member clusters bound to the parent
            +   * Scope. Scope-level labels (`namespace_labels` in the Fleet Scope
            +   * resource) take precedence over Namespace-level labels if they share
            +   * a key. Keys and values must be Kubernetes-conformant.
            +   * 
            + * + * map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsNamespaceLabels(java.lang.String key); + + /** Use {@link #getNamespaceLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getNamespaceLabels(); + + /** + * + * + *
            +   * Optional. Namespace-level cluster namespace labels. These labels are
            +   * applied to the related namespace of the member clusters bound to the parent
            +   * Scope. Scope-level labels (`namespace_labels` in the Fleet Scope
            +   * resource) take precedence over Namespace-level labels if they share
            +   * a key. Keys and values must be Kubernetes-conformant.
            +   * 
            + * + * map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getNamespaceLabelsMap(); + + /** + * + * + *
            +   * Optional. Namespace-level cluster namespace labels. These labels are
            +   * applied to the related namespace of the member clusters bound to the parent
            +   * Scope. Scope-level labels (`namespace_labels` in the Fleet Scope
            +   * resource) take precedence over Namespace-level labels if they share
            +   * a key. Keys and values must be Kubernetes-conformant.
            +   * 
            + * + * map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getNamespaceLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
            +   * Optional. Namespace-level cluster namespace labels. These labels are
            +   * applied to the related namespace of the member clusters bound to the parent
            +   * Scope. Scope-level labels (`namespace_labels` in the Fleet Scope
            +   * resource) take precedence over Namespace-level labels if they share
            +   * a key. Keys and values must be Kubernetes-conformant.
            +   * 
            + * + * map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getNamespaceLabelsOrThrow(java.lang.String key); + + /** + * + * + *
            +   * Optional. Labels for this Namespace.
            +   * 
            + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
            +   * Optional. Labels for this Namespace.
            +   * 
            + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
            +   * Optional. Labels for this Namespace.
            +   * 
            + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
            +   * Optional. Labels for this Namespace.
            +   * 
            + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
            +   * Optional. Labels for this Namespace.
            +   * 
            + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadata.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadata.java index 48cbf720a8f5..084e7b351a1f 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadata.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadata.java @@ -346,9 +346,10 @@ public com.google.protobuf.ByteString getStatusDetailBytes() { *
                * Output only. Identifies whether the user has requested cancellation
                * of the operation. Operations that have successfully been cancelled
            -   * have [Operation.error][] value with a
            -   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
            -   * `Code.CANCELLED`.
            +   * have
            +   * [google.longrunning.Operation.error][google.longrunning.Operation.error]
            +   * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
            +   * corresponding to `Code.CANCELLED`.
                * 
            * * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1645,9 +1646,10 @@ public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) { *
                  * Output only. Identifies whether the user has requested cancellation
                  * of the operation. Operations that have successfully been cancelled
            -     * have [Operation.error][] value with a
            -     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
            -     * `Code.CANCELLED`.
            +     * have
            +     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
            +     * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
            +     * corresponding to `Code.CANCELLED`.
                  * 
            * * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1665,9 +1667,10 @@ public boolean getCancelRequested() { *
                  * Output only. Identifies whether the user has requested cancellation
                  * of the operation. Operations that have successfully been cancelled
            -     * have [Operation.error][] value with a
            -     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
            -     * `Code.CANCELLED`.
            +     * have
            +     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
            +     * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
            +     * corresponding to `Code.CANCELLED`.
                  * 
            * * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1689,9 +1692,10 @@ public Builder setCancelRequested(boolean value) { *
                  * Output only. Identifies whether the user has requested cancellation
                  * of the operation. Operations that have successfully been cancelled
            -     * have [Operation.error][] value with a
            -     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
            -     * `Code.CANCELLED`.
            +     * have
            +     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
            +     * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
            +     * corresponding to `Code.CANCELLED`.
                  * 
            * * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadataOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadataOrBuilder.java index 0ce0ebcb2f8f..8ecb6a8a2d30 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadataOrBuilder.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadataOrBuilder.java @@ -190,9 +190,10 @@ public interface OperationMetadataOrBuilder *
                * Output only. Identifies whether the user has requested cancellation
                * of the operation. Operations that have successfully been cancelled
            -   * have [Operation.error][] value with a
            -   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
            -   * `Code.CANCELLED`.
            +   * have
            +   * [google.longrunning.Operation.error][google.longrunning.Operation.error]
            +   * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
            +   * corresponding to `Code.CANCELLED`.
                * 
            * * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBinding.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBinding.java new file mode 100644 index 000000000000..e4f573403982 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBinding.java @@ -0,0 +1,4295 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * RBACRoleBinding represents a rbacrolebinding across the Fleet
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.RBACRoleBinding} + */ +@com.google.protobuf.Generated +public final class RBACRoleBinding extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.RBACRoleBinding) + RBACRoleBindingOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RBACRoleBinding"); + } + + // Use RBACRoleBinding.newBuilder() to construct. + private RBACRoleBinding(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RBACRoleBinding() { + name_ = ""; + uid_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_RBACRoleBinding_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 10: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_RBACRoleBinding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.RBACRoleBinding.class, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder.class); + } + + public interface RoleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.RBACRoleBinding.Role) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * predefined_role is the Kubernetes default role to use
            +     * 
            + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles predefined_role = 1; + * + * + * @return The enum numeric value on the wire for predefinedRole. + */ + int getPredefinedRoleValue(); + + /** + * + * + *
            +     * predefined_role is the Kubernetes default role to use
            +     * 
            + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles predefined_role = 1; + * + * + * @return The predefinedRole. + */ + com.google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles getPredefinedRole(); + + /** + * + * + *
            +     * Optional. custom_role is the name of a custom KubernetesClusterRole to
            +     * use.
            +     * 
            + * + * string custom_role = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The customRole. + */ + java.lang.String getCustomRole(); + + /** + * + * + *
            +     * Optional. custom_role is the name of a custom KubernetesClusterRole to
            +     * use.
            +     * 
            + * + * string custom_role = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for customRole. + */ + com.google.protobuf.ByteString getCustomRoleBytes(); + } + + /** + * + * + *
            +   * Role is the type for Kubernetes roles
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.RBACRoleBinding.Role} + */ + public static final class Role extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.RBACRoleBinding.Role) + RoleOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Role"); + } + + // Use Role.newBuilder() to construct. + private Role(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Role() { + predefinedRole_ = 0; + customRole_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_RBACRoleBinding_Role_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_RBACRoleBinding_Role_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.RBACRoleBinding.Role.class, + com.google.cloud.gkehub.v1.RBACRoleBinding.Role.Builder.class); + } + + /** + * + * + *
            +     * PredefinedRoles is an ENUM representation of the default Kubernetes Roles
            +     * 
            + * + * Protobuf enum {@code google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles} + */ + public enum PredefinedRoles implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +       * UNKNOWN
            +       * 
            + * + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + * + * + *
            +       * ADMIN has EDIT and RBAC permissions
            +       * 
            + * + * ADMIN = 1; + */ + ADMIN(1), + /** + * + * + *
            +       * EDIT can edit all resources except RBAC
            +       * 
            + * + * EDIT = 2; + */ + EDIT(2), + /** + * + * + *
            +       * VIEW can only read resources
            +       * 
            + * + * VIEW = 3; + */ + VIEW(3), + /** + * + * + *
            +       * ANTHOS_SUPPORT gives Google Support read-only access to a number of
            +       * cluster resources.
            +       * 
            + * + * ANTHOS_SUPPORT = 4; + */ + ANTHOS_SUPPORT(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PredefinedRoles"); + } + + /** + * + * + *
            +       * UNKNOWN
            +       * 
            + * + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + + /** + * + * + *
            +       * ADMIN has EDIT and RBAC permissions
            +       * 
            + * + * ADMIN = 1; + */ + public static final int ADMIN_VALUE = 1; + + /** + * + * + *
            +       * EDIT can edit all resources except RBAC
            +       * 
            + * + * EDIT = 2; + */ + public static final int EDIT_VALUE = 2; + + /** + * + * + *
            +       * VIEW can only read resources
            +       * 
            + * + * VIEW = 3; + */ + public static final int VIEW_VALUE = 3; + + /** + * + * + *
            +       * ANTHOS_SUPPORT gives Google Support read-only access to a number of
            +       * cluster resources.
            +       * 
            + * + * ANTHOS_SUPPORT = 4; + */ + public static final int ANTHOS_SUPPORT_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PredefinedRoles valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static PredefinedRoles forNumber(int value) { + switch (value) { + case 0: + return UNKNOWN; + case 1: + return ADMIN; + case 2: + return EDIT; + case 3: + return VIEW; + case 4: + return ANTHOS_SUPPORT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PredefinedRoles findValueByNumber(int number) { + return PredefinedRoles.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.v1.RBACRoleBinding.Role.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final PredefinedRoles[] VALUES = values(); + + public static PredefinedRoles valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private PredefinedRoles(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles) + } + + public static final int PREDEFINED_ROLE_FIELD_NUMBER = 1; + private int predefinedRole_ = 0; + + /** + * + * + *
            +     * predefined_role is the Kubernetes default role to use
            +     * 
            + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles predefined_role = 1; + * + * + * @return The enum numeric value on the wire for predefinedRole. + */ + @java.lang.Override + public int getPredefinedRoleValue() { + return predefinedRole_; + } + + /** + * + * + *
            +     * predefined_role is the Kubernetes default role to use
            +     * 
            + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles predefined_role = 1; + * + * + * @return The predefinedRole. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles getPredefinedRole() { + com.google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles result = + com.google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles.forNumber( + predefinedRole_); + return result == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles.UNRECOGNIZED + : result; + } + + public static final int CUSTOM_ROLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object customRole_ = ""; + + /** + * + * + *
            +     * Optional. custom_role is the name of a custom KubernetesClusterRole to
            +     * use.
            +     * 
            + * + * string custom_role = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The customRole. + */ + @java.lang.Override + public java.lang.String getCustomRole() { + java.lang.Object ref = customRole_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customRole_ = s; + return s; + } + } + + /** + * + * + *
            +     * Optional. custom_role is the name of a custom KubernetesClusterRole to
            +     * use.
            +     * 
            + * + * string custom_role = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for customRole. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomRoleBytes() { + java.lang.Object ref = customRole_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customRole_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (predefinedRole_ + != com.google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles.UNKNOWN.getNumber()) { + output.writeEnum(1, predefinedRole_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(customRole_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, customRole_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (predefinedRole_ + != com.google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, predefinedRole_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(customRole_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, customRole_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.RBACRoleBinding.Role)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.RBACRoleBinding.Role other = + (com.google.cloud.gkehub.v1.RBACRoleBinding.Role) obj; + + if (predefinedRole_ != other.predefinedRole_) return false; + if (!getCustomRole().equals(other.getCustomRole())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PREDEFINED_ROLE_FIELD_NUMBER; + hash = (53 * hash) + predefinedRole_; + hash = (37 * hash) + CUSTOM_ROLE_FIELD_NUMBER; + hash = (53 * hash) + getCustomRole().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding.Role parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding.Role parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding.Role parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding.Role parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding.Role parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding.Role parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding.Role parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding.Role parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding.Role parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding.Role parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding.Role parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding.Role parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkehub.v1.RBACRoleBinding.Role prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Role is the type for Kubernetes roles
            +     * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.RBACRoleBinding.Role} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.RBACRoleBinding.Role) + com.google.cloud.gkehub.v1.RBACRoleBinding.RoleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_RBACRoleBinding_Role_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_RBACRoleBinding_Role_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.RBACRoleBinding.Role.class, + com.google.cloud.gkehub.v1.RBACRoleBinding.Role.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.RBACRoleBinding.Role.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + predefinedRole_ = 0; + customRole_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_RBACRoleBinding_Role_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding.Role getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.RBACRoleBinding.Role.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding.Role build() { + com.google.cloud.gkehub.v1.RBACRoleBinding.Role result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding.Role buildPartial() { + com.google.cloud.gkehub.v1.RBACRoleBinding.Role result = + new com.google.cloud.gkehub.v1.RBACRoleBinding.Role(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.RBACRoleBinding.Role result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.predefinedRole_ = predefinedRole_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.customRole_ = customRole_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.RBACRoleBinding.Role) { + return mergeFrom((com.google.cloud.gkehub.v1.RBACRoleBinding.Role) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.RBACRoleBinding.Role other) { + if (other == com.google.cloud.gkehub.v1.RBACRoleBinding.Role.getDefaultInstance()) + return this; + if (other.predefinedRole_ != 0) { + setPredefinedRoleValue(other.getPredefinedRoleValue()); + } + if (!other.getCustomRole().isEmpty()) { + customRole_ = other.customRole_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + predefinedRole_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + customRole_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int predefinedRole_ = 0; + + /** + * + * + *
            +       * predefined_role is the Kubernetes default role to use
            +       * 
            + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles predefined_role = 1; + * + * + * @return The enum numeric value on the wire for predefinedRole. + */ + @java.lang.Override + public int getPredefinedRoleValue() { + return predefinedRole_; + } + + /** + * + * + *
            +       * predefined_role is the Kubernetes default role to use
            +       * 
            + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles predefined_role = 1; + * + * + * @param value The enum numeric value on the wire for predefinedRole to set. + * @return This builder for chaining. + */ + public Builder setPredefinedRoleValue(int value) { + predefinedRole_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * predefined_role is the Kubernetes default role to use
            +       * 
            + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles predefined_role = 1; + * + * + * @return The predefinedRole. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles getPredefinedRole() { + com.google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles result = + com.google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles.forNumber( + predefinedRole_); + return result == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +       * predefined_role is the Kubernetes default role to use
            +       * 
            + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles predefined_role = 1; + * + * + * @param value The predefinedRole to set. + * @return This builder for chaining. + */ + public Builder setPredefinedRole( + com.google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + predefinedRole_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +       * predefined_role is the Kubernetes default role to use
            +       * 
            + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles predefined_role = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearPredefinedRole() { + bitField0_ = (bitField0_ & ~0x00000001); + predefinedRole_ = 0; + onChanged(); + return this; + } + + private java.lang.Object customRole_ = ""; + + /** + * + * + *
            +       * Optional. custom_role is the name of a custom KubernetesClusterRole to
            +       * use.
            +       * 
            + * + * string custom_role = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The customRole. + */ + public java.lang.String getCustomRole() { + java.lang.Object ref = customRole_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customRole_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Optional. custom_role is the name of a custom KubernetesClusterRole to
            +       * use.
            +       * 
            + * + * string custom_role = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for customRole. + */ + public com.google.protobuf.ByteString getCustomRoleBytes() { + java.lang.Object ref = customRole_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customRole_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Optional. custom_role is the name of a custom KubernetesClusterRole to
            +       * use.
            +       * 
            + * + * string custom_role = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The customRole to set. + * @return This builder for chaining. + */ + public Builder setCustomRole(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customRole_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. custom_role is the name of a custom KubernetesClusterRole to
            +       * use.
            +       * 
            + * + * string custom_role = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCustomRole() { + customRole_ = getDefaultInstance().getCustomRole(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. custom_role is the name of a custom KubernetesClusterRole to
            +       * use.
            +       * 
            + * + * string custom_role = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for customRole to set. + * @return This builder for chaining. + */ + public Builder setCustomRoleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customRole_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.RBACRoleBinding.Role) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.RBACRoleBinding.Role) + private static final com.google.cloud.gkehub.v1.RBACRoleBinding.Role DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.RBACRoleBinding.Role(); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding.Role getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Role parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding.Role getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int principalCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object principal_; + + public enum PrincipalCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + USER(7), + GROUP(8), + PRINCIPAL_NOT_SET(0); + private final int value; + + private PrincipalCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PrincipalCase valueOf(int value) { + return forNumber(value); + } + + public static PrincipalCase forNumber(int value) { + switch (value) { + case 7: + return USER; + case 8: + return GROUP; + case 0: + return PRINCIPAL_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public PrincipalCase getPrincipalCase() { + return PrincipalCase.forNumber(principalCase_); + } + + public static final int USER_FIELD_NUMBER = 7; + + /** + * + * + *
            +   * user is the name of the user as seen by the kubernetes cluster, example
            +   * "alice" or "alice@domain.tld"
            +   * 
            + * + * string user = 7; + * + * @return Whether the user field is set. + */ + public boolean hasUser() { + return principalCase_ == 7; + } + + /** + * + * + *
            +   * user is the name of the user as seen by the kubernetes cluster, example
            +   * "alice" or "alice@domain.tld"
            +   * 
            + * + * string user = 7; + * + * @return The user. + */ + public java.lang.String getUser() { + java.lang.Object ref = ""; + if (principalCase_ == 7) { + ref = principal_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (principalCase_ == 7) { + principal_ = s; + } + return s; + } + } + + /** + * + * + *
            +   * user is the name of the user as seen by the kubernetes cluster, example
            +   * "alice" or "alice@domain.tld"
            +   * 
            + * + * string user = 7; + * + * @return The bytes for user. + */ + public com.google.protobuf.ByteString getUserBytes() { + java.lang.Object ref = ""; + if (principalCase_ == 7) { + ref = principal_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (principalCase_ == 7) { + principal_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GROUP_FIELD_NUMBER = 8; + + /** + * + * + *
            +   * group is the group, as seen by the kubernetes cluster.
            +   * 
            + * + * string group = 8; + * + * @return Whether the group field is set. + */ + public boolean hasGroup() { + return principalCase_ == 8; + } + + /** + * + * + *
            +   * group is the group, as seen by the kubernetes cluster.
            +   * 
            + * + * string group = 8; + * + * @return The group. + */ + public java.lang.String getGroup() { + java.lang.Object ref = ""; + if (principalCase_ == 8) { + ref = principal_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (principalCase_ == 8) { + principal_ = s; + } + return s; + } + } + + /** + * + * + *
            +   * group is the group, as seen by the kubernetes cluster.
            +   * 
            + * + * string group = 8; + * + * @return The bytes for group. + */ + public com.google.protobuf.ByteString getGroupBytes() { + java.lang.Object ref = ""; + if (principalCase_ == 8) { + ref = principal_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (principalCase_ == 8) { + principal_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * The resource name for the rbacrolebinding
            +   * `projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}`
            +   * or
            +   * `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}`
            +   * 
            + * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * The resource name for the rbacrolebinding
            +   * `projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}`
            +   * or
            +   * `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}`
            +   * 
            + * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + + /** + * + * + *
            +   * Output only. Google-generated UUID for this resource. This is unique across
            +   * all rbacrolebinding resources. If a rbacrolebinding resource is deleted and
            +   * another resource with the same name is created, it gets a different uid.
            +   * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. Google-generated UUID for this resource. This is unique across
            +   * all rbacrolebinding resources. If a rbacrolebinding resource is deleted and
            +   * another resource with the same name is created, it gets a different uid.
            +   * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +   * Output only. When the rbacrolebinding was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Output only. When the rbacrolebinding was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
            +   * Output only. When the rbacrolebinding was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
            +   * Output only. When the rbacrolebinding was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Output only. When the rbacrolebinding was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
            +   * Output only. When the rbacrolebinding was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int DELETE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp deleteTime_; + + /** + * + * + *
            +   * Output only. When the rbacrolebinding was deleted.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + @java.lang.Override + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * Output only. When the rbacrolebinding was deleted.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDeleteTime() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + + /** + * + * + *
            +   * Output only. When the rbacrolebinding was deleted.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + + public static final int STATE_FIELD_NUMBER = 6; + private com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state_; + + /** + * + * + *
            +   * Output only. State of the rbacrolebinding resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + @java.lang.Override + public boolean hasState() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +   * Output only. State of the rbacrolebinding resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState getState() { + return state_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.getDefaultInstance() + : state_; + } + + /** + * + * + *
            +   * Output only. State of the rbacrolebinding resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleStateOrBuilder getStateOrBuilder() { + return state_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.getDefaultInstance() + : state_; + } + + public static final int ROLE_FIELD_NUMBER = 9; + private com.google.cloud.gkehub.v1.RBACRoleBinding.Role role_; + + /** + * + * + *
            +   * Required. Role to bind to the principal
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the role field is set. + */ + @java.lang.Override + public boolean hasRole() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +   * Required. Role to bind to the principal
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The role. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding.Role getRole() { + return role_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.Role.getDefaultInstance() + : role_; + } + + /** + * + * + *
            +   * Required. Role to bind to the principal
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding.RoleOrBuilder getRoleOrBuilder() { + return role_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.Role.getDefaultInstance() + : role_; + } + + public static final int LABELS_FIELD_NUMBER = 10; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_RBACRoleBinding_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
            +   * Optional. Labels for this RBACRolebinding.
            +   * 
            + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
            +   * Optional. Labels for this RBACRolebinding.
            +   * 
            + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
            +   * Optional. Labels for this RBACRolebinding.
            +   * 
            + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +   * Optional. Labels for this RBACRolebinding.
            +   * 
            + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, uid_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getDeleteTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(6, getState()); + } + if (principalCase_ == 7) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, principal_); + } + if (principalCase_ == 8) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, principal_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(9, getRole()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uid_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDeleteTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getState()); + } + if (principalCase_ == 7) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, principal_); + } + if (principalCase_ == 8) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, principal_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getRole()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, labels__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.RBACRoleBinding)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.RBACRoleBinding other = + (com.google.cloud.gkehub.v1.RBACRoleBinding) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (hasDeleteTime() != other.hasDeleteTime()) return false; + if (hasDeleteTime()) { + if (!getDeleteTime().equals(other.getDeleteTime())) return false; + } + if (hasState() != other.hasState()) return false; + if (hasState()) { + if (!getState().equals(other.getState())) return false; + } + if (hasRole() != other.hasRole()) return false; + if (hasRole()) { + if (!getRole().equals(other.getRole())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getPrincipalCase().equals(other.getPrincipalCase())) return false; + switch (principalCase_) { + case 7: + if (!getUser().equals(other.getUser())) return false; + break; + case 8: + if (!getGroup().equals(other.getGroup())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasDeleteTime()) { + hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDeleteTime().hashCode(); + } + if (hasState()) { + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + getState().hashCode(); + } + if (hasRole()) { + hash = (37 * hash) + ROLE_FIELD_NUMBER; + hash = (53 * hash) + getRole().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + switch (principalCase_) { + case 7: + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + break; + case 8: + hash = (37 * hash) + GROUP_FIELD_NUMBER; + hash = (53 * hash) + getGroup().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkehub.v1.RBACRoleBinding prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * RBACRoleBinding represents a rbacrolebinding across the Fleet
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.RBACRoleBinding} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.RBACRoleBinding) + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_RBACRoleBinding_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 10: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 10: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_RBACRoleBinding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.RBACRoleBinding.class, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.RBACRoleBinding.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetDeleteTimeFieldBuilder(); + internalGetStateFieldBuilder(); + internalGetRoleFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + uid_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + state_ = null; + if (stateBuilder_ != null) { + stateBuilder_.dispose(); + stateBuilder_ = null; + } + role_ = null; + if (roleBuilder_ != null) { + roleBuilder_.dispose(); + roleBuilder_ = null; + } + internalGetMutableLabels().clear(); + principalCase_ = 0; + principal_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_RBACRoleBinding_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding build() { + com.google.cloud.gkehub.v1.RBACRoleBinding result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding buildPartial() { + com.google.cloud.gkehub.v1.RBACRoleBinding result = + new com.google.cloud.gkehub.v1.RBACRoleBinding(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.RBACRoleBinding result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.uid_ = uid_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.state_ = stateBuilder_ == null ? state_ : stateBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.role_ = roleBuilder_ == null ? role_ : roleBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.gkehub.v1.RBACRoleBinding result) { + result.principalCase_ = principalCase_; + result.principal_ = this.principal_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.RBACRoleBinding) { + return mergeFrom((com.google.cloud.gkehub.v1.RBACRoleBinding) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.RBACRoleBinding other) { + if (other == com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasDeleteTime()) { + mergeDeleteTime(other.getDeleteTime()); + } + if (other.hasState()) { + mergeState(other.getState()); + } + if (other.hasRole()) { + mergeRole(other.getRole()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000200; + switch (other.getPrincipalCase()) { + case USER: + { + principalCase_ = 7; + principal_ = other.principal_; + onChanged(); + break; + } + case GROUP: + { + principalCase_ = 8; + principal_ = other.principal_; + onChanged(); + break; + } + case PRINCIPAL_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 42 + case 50: + { + input.readMessage(internalGetStateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 50 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + principalCase_ = 7; + principal_ = s; + break; + } // case 58 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + principalCase_ = 8; + principal_ = s; + break; + } // case 66 + case 74: + { + input.readMessage(internalGetRoleFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000200; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int principalCase_ = 0; + private java.lang.Object principal_; + + public PrincipalCase getPrincipalCase() { + return PrincipalCase.forNumber(principalCase_); + } + + public Builder clearPrincipal() { + principalCase_ = 0; + principal_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
            +     * user is the name of the user as seen by the kubernetes cluster, example
            +     * "alice" or "alice@domain.tld"
            +     * 
            + * + * string user = 7; + * + * @return Whether the user field is set. + */ + @java.lang.Override + public boolean hasUser() { + return principalCase_ == 7; + } + + /** + * + * + *
            +     * user is the name of the user as seen by the kubernetes cluster, example
            +     * "alice" or "alice@domain.tld"
            +     * 
            + * + * string user = 7; + * + * @return The user. + */ + @java.lang.Override + public java.lang.String getUser() { + java.lang.Object ref = ""; + if (principalCase_ == 7) { + ref = principal_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (principalCase_ == 7) { + principal_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * user is the name of the user as seen by the kubernetes cluster, example
            +     * "alice" or "alice@domain.tld"
            +     * 
            + * + * string user = 7; + * + * @return The bytes for user. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserBytes() { + java.lang.Object ref = ""; + if (principalCase_ == 7) { + ref = principal_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (principalCase_ == 7) { + principal_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * user is the name of the user as seen by the kubernetes cluster, example
            +     * "alice" or "alice@domain.tld"
            +     * 
            + * + * string user = 7; + * + * @param value The user to set. + * @return This builder for chaining. + */ + public Builder setUser(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + principalCase_ = 7; + principal_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +     * user is the name of the user as seen by the kubernetes cluster, example
            +     * "alice" or "alice@domain.tld"
            +     * 
            + * + * string user = 7; + * + * @return This builder for chaining. + */ + public Builder clearUser() { + if (principalCase_ == 7) { + principalCase_ = 0; + principal_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * user is the name of the user as seen by the kubernetes cluster, example
            +     * "alice" or "alice@domain.tld"
            +     * 
            + * + * string user = 7; + * + * @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(); + } + checkByteStringIsUtf8(value); + principalCase_ = 7; + principal_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +     * group is the group, as seen by the kubernetes cluster.
            +     * 
            + * + * string group = 8; + * + * @return Whether the group field is set. + */ + @java.lang.Override + public boolean hasGroup() { + return principalCase_ == 8; + } + + /** + * + * + *
            +     * group is the group, as seen by the kubernetes cluster.
            +     * 
            + * + * string group = 8; + * + * @return The group. + */ + @java.lang.Override + public java.lang.String getGroup() { + java.lang.Object ref = ""; + if (principalCase_ == 8) { + ref = principal_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (principalCase_ == 8) { + principal_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * group is the group, as seen by the kubernetes cluster.
            +     * 
            + * + * string group = 8; + * + * @return The bytes for group. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGroupBytes() { + java.lang.Object ref = ""; + if (principalCase_ == 8) { + ref = principal_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (principalCase_ == 8) { + principal_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * group is the group, as seen by the kubernetes cluster.
            +     * 
            + * + * string group = 8; + * + * @param value The group to set. + * @return This builder for chaining. + */ + public Builder setGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + principalCase_ = 8; + principal_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +     * group is the group, as seen by the kubernetes cluster.
            +     * 
            + * + * string group = 8; + * + * @return This builder for chaining. + */ + public Builder clearGroup() { + if (principalCase_ == 8) { + principalCase_ = 0; + principal_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * group is the group, as seen by the kubernetes cluster.
            +     * 
            + * + * string group = 8; + * + * @param value The bytes for group to set. + * @return This builder for chaining. + */ + public Builder setGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + principalCase_ = 8; + principal_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * The resource name for the rbacrolebinding
            +     * `projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}`
            +     * or
            +     * `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}`
            +     * 
            + * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * The resource name for the rbacrolebinding
            +     * `projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}`
            +     * or
            +     * `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}`
            +     * 
            + * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * The resource name for the rbacrolebinding
            +     * `projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}`
            +     * or
            +     * `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}`
            +     * 
            + * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The resource name for the rbacrolebinding
            +     * `projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}`
            +     * or
            +     * `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}`
            +     * 
            + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * The resource name for the rbacrolebinding
            +     * `projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}`
            +     * or
            +     * `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}`
            +     * 
            + * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object uid_ = ""; + + /** + * + * + *
            +     * Output only. Google-generated UUID for this resource. This is unique across
            +     * all rbacrolebinding resources. If a rbacrolebinding resource is deleted and
            +     * another resource with the same name is created, it gets a different uid.
            +     * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. Google-generated UUID for this resource. This is unique across
            +     * all rbacrolebinding resources. If a rbacrolebinding resource is deleted and
            +     * another resource with the same name is created, it gets a different uid.
            +     * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. Google-generated UUID for this resource. This is unique across
            +     * all rbacrolebinding resources. If a rbacrolebinding resource is deleted and
            +     * another resource with the same name is created, it gets a different uid.
            +     * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Google-generated UUID for this resource. This is unique across
            +     * all rbacrolebinding resources. If a rbacrolebinding resource is deleted and
            +     * another resource with the same name is created, it gets a different uid.
            +     * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Google-generated UUID for this resource. This is unique across
            +     * all rbacrolebinding resources. If a rbacrolebinding resource is deleted and
            +     * another resource with the same name is created, it gets a different uid.
            +     * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
            +     * Output only. When the rbacrolebinding was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +     * Output only. When the rbacrolebinding was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. When the rbacrolebinding was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the rbacrolebinding was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the rbacrolebinding was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. When the rbacrolebinding was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the rbacrolebinding was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. When the rbacrolebinding was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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_; + } + } + + /** + * + * + *
            +     * Output only. When the rbacrolebinding was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
            +     * Output only. When the rbacrolebinding was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
            +     * Output only. When the rbacrolebinding was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.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_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. When the rbacrolebinding was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the rbacrolebinding was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the rbacrolebinding was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.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()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. When the rbacrolebinding was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the rbacrolebinding was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. When the rbacrolebinding was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.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_; + } + } + + /** + * + * + *
            +     * Output only. When the rbacrolebinding was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.Timestamp deleteTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; + + /** + * + * + *
            +     * Output only. When the rbacrolebinding was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
            +     * Output only. When the rbacrolebinding was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + public com.google.protobuf.Timestamp getDeleteTime() { + if (deleteTimeBuilder_ == null) { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } else { + return deleteTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. When the rbacrolebinding was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deleteTime_ = value; + } else { + deleteTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the rbacrolebinding was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (deleteTimeBuilder_ == null) { + deleteTime_ = builderForValue.build(); + } else { + deleteTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the rbacrolebinding was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getDeleteTimeBuilder().mergeFrom(value); + } else { + deleteTime_ = value; + } + } else { + deleteTimeBuilder_.mergeFrom(value); + } + if (deleteTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. When the rbacrolebinding was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDeleteTime() { + bitField0_ = (bitField0_ & ~0x00000040); + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the rbacrolebinding was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetDeleteTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. When the rbacrolebinding was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + if (deleteTimeBuilder_ != null) { + return deleteTimeBuilder_.getMessageOrBuilder(); + } else { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } + } + + /** + * + * + *
            +     * Output only. When the rbacrolebinding was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetDeleteTimeFieldBuilder() { + if (deleteTimeBuilder_ == null) { + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); + deleteTime_ = null; + } + return deleteTimeBuilder_; + } + + private com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState, + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleStateOrBuilder> + stateBuilder_; + + /** + * + * + *
            +     * Output only. State of the rbacrolebinding resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + public boolean hasState() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
            +     * Output only. State of the rbacrolebinding resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + public com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState getState() { + if (stateBuilder_ == null) { + return state_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.getDefaultInstance() + : state_; + } else { + return stateBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. State of the rbacrolebinding resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setState(com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState value) { + if (stateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + state_ = value; + } else { + stateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. State of the rbacrolebinding resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setState( + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Builder builderForValue) { + if (stateBuilder_ == null) { + state_ = builderForValue.build(); + } else { + stateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. State of the rbacrolebinding resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeState(com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState value) { + if (stateBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && state_ != null + && state_ + != com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.getDefaultInstance()) { + getStateBuilder().mergeFrom(value); + } else { + state_ = value; + } + } else { + stateBuilder_.mergeFrom(value); + } + if (state_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. State of the rbacrolebinding resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000080); + state_ = null; + if (stateBuilder_ != null) { + stateBuilder_.dispose(); + stateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. State of the rbacrolebinding resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Builder getStateBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetStateFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. State of the rbacrolebinding resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleStateOrBuilder getStateOrBuilder() { + if (stateBuilder_ != null) { + return stateBuilder_.getMessageOrBuilder(); + } else { + return state_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.getDefaultInstance() + : state_; + } + } + + /** + * + * + *
            +     * Output only. State of the rbacrolebinding resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState, + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleStateOrBuilder> + internalGetStateFieldBuilder() { + if (stateBuilder_ == null) { + stateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState, + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleStateOrBuilder>( + getState(), getParentForChildren(), isClean()); + state_ = null; + } + return stateBuilder_; + } + + private com.google.cloud.gkehub.v1.RBACRoleBinding.Role role_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding.Role, + com.google.cloud.gkehub.v1.RBACRoleBinding.Role.Builder, + com.google.cloud.gkehub.v1.RBACRoleBinding.RoleOrBuilder> + roleBuilder_; + + /** + * + * + *
            +     * Required. Role to bind to the principal
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the role field is set. + */ + public boolean hasRole() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
            +     * Required. Role to bind to the principal
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The role. + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding.Role getRole() { + if (roleBuilder_ == null) { + return role_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.Role.getDefaultInstance() + : role_; + } else { + return roleBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. Role to bind to the principal
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRole(com.google.cloud.gkehub.v1.RBACRoleBinding.Role value) { + if (roleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + role_ = value; + } else { + roleBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Role to bind to the principal
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRole( + com.google.cloud.gkehub.v1.RBACRoleBinding.Role.Builder builderForValue) { + if (roleBuilder_ == null) { + role_ = builderForValue.build(); + } else { + roleBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Role to bind to the principal
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRole(com.google.cloud.gkehub.v1.RBACRoleBinding.Role value) { + if (roleBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && role_ != null + && role_ != com.google.cloud.gkehub.v1.RBACRoleBinding.Role.getDefaultInstance()) { + getRoleBuilder().mergeFrom(value); + } else { + role_ = value; + } + } else { + roleBuilder_.mergeFrom(value); + } + if (role_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. Role to bind to the principal
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRole() { + bitField0_ = (bitField0_ & ~0x00000100); + role_ = null; + if (roleBuilder_ != null) { + roleBuilder_.dispose(); + roleBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Role to bind to the principal
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding.Role.Builder getRoleBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return internalGetRoleFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. Role to bind to the principal
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding.RoleOrBuilder getRoleOrBuilder() { + if (roleBuilder_ != null) { + return roleBuilder_.getMessageOrBuilder(); + } else { + return role_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.Role.getDefaultInstance() + : role_; + } + } + + /** + * + * + *
            +     * Required. Role to bind to the principal
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding.Role, + com.google.cloud.gkehub.v1.RBACRoleBinding.Role.Builder, + com.google.cloud.gkehub.v1.RBACRoleBinding.RoleOrBuilder> + internalGetRoleFieldBuilder() { + if (roleBuilder_ == null) { + roleBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding.Role, + com.google.cloud.gkehub.v1.RBACRoleBinding.Role.Builder, + com.google.cloud.gkehub.v1.RBACRoleBinding.RoleOrBuilder>( + getRole(), getParentForChildren(), isClean()); + role_ = null; + } + return roleBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000200; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
            +     * Optional. Labels for this RBACRolebinding.
            +     * 
            + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
            +     * Optional. Labels for this RBACRolebinding.
            +     * 
            + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
            +     * Optional. Labels for this RBACRolebinding.
            +     * 
            + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +     * Optional. Labels for this RBACRolebinding.
            +     * 
            + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000200); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
            +     * Optional. Labels for this RBACRolebinding.
            +     * 
            + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000200; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
            +     * Optional. Labels for this RBACRolebinding.
            +     * 
            + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000200; + return this; + } + + /** + * + * + *
            +     * Optional. Labels for this RBACRolebinding.
            +     * 
            + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000200; + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.RBACRoleBinding) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.RBACRoleBinding) + private static final com.google.cloud.gkehub.v1.RBACRoleBinding DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.RBACRoleBinding(); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBinding getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RBACRoleBinding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBindingLifecycleState.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBindingLifecycleState.java new file mode 100644 index 000000000000..4175ea2880e1 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBindingLifecycleState.java @@ -0,0 +1,804 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * RBACRoleBindingLifecycleState describes the state of a RbacRoleBinding
            + * resource.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.RBACRoleBindingLifecycleState} + */ +@com.google.protobuf.Generated +public final class RBACRoleBindingLifecycleState extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.RBACRoleBindingLifecycleState) + RBACRoleBindingLifecycleStateOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RBACRoleBindingLifecycleState"); + } + + // Use RBACRoleBindingLifecycleState.newBuilder() to construct. + private RBACRoleBindingLifecycleState(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RBACRoleBindingLifecycleState() { + code_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_RBACRoleBindingLifecycleState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_RBACRoleBindingLifecycleState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.class, + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Builder.class); + } + + /** + * + * + *
            +   * Code describes the state of a rbacrolebinding resource.
            +   * 
            + * + * Protobuf enum {@code google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code} + */ + public enum Code implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * The code is not set.
            +     * 
            + * + * CODE_UNSPECIFIED = 0; + */ + CODE_UNSPECIFIED(0), + /** + * + * + *
            +     * The rbacrolebinding is being created.
            +     * 
            + * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
            +     * The rbacrolebinding active.
            +     * 
            + * + * READY = 2; + */ + READY(2), + /** + * + * + *
            +     * The rbacrolebinding is being deleted.
            +     * 
            + * + * DELETING = 3; + */ + DELETING(3), + /** + * + * + *
            +     * The rbacrolebinding is being updated.
            +     * 
            + * + * UPDATING = 4; + */ + UPDATING(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Code"); + } + + /** + * + * + *
            +     * The code is not set.
            +     * 
            + * + * CODE_UNSPECIFIED = 0; + */ + public static final int CODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * The rbacrolebinding is being created.
            +     * 
            + * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + + /** + * + * + *
            +     * The rbacrolebinding active.
            +     * 
            + * + * READY = 2; + */ + public static final int READY_VALUE = 2; + + /** + * + * + *
            +     * The rbacrolebinding is being deleted.
            +     * 
            + * + * DELETING = 3; + */ + public static final int DELETING_VALUE = 3; + + /** + * + * + *
            +     * The rbacrolebinding is being updated.
            +     * 
            + * + * UPDATING = 4; + */ + public static final int UPDATING_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Code valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Code forNumber(int value) { + switch (value) { + case 0: + return CODE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return READY; + case 3: + return DELETING; + case 4: + return UPDATING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Code findValueByNumber(int number) { + return Code.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Code[] VALUES = values(); + + public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Code(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code) + } + + public static final int CODE_FIELD_NUMBER = 1; + private int code_ = 0; + + /** + * + * + *
            +   * Output only. The current state of the rbacrolebinding resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + @java.lang.Override + public int getCodeValue() { + return code_; + } + + /** + * + * + *
            +   * Output only. The current state of the rbacrolebinding resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code getCode() { + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code result = + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code.forNumber(code_); + return result == null + ? com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (code_ + != com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code.CODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, code_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (code_ + != com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code.CODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState other = + (com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState) obj; + + if (code_ != other.code_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + code_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * RBACRoleBindingLifecycleState describes the state of a RbacRoleBinding
            +   * resource.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.RBACRoleBindingLifecycleState} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.RBACRoleBindingLifecycleState) + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_RBACRoleBindingLifecycleState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_RBACRoleBindingLifecycleState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.class, + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + code_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_RBACRoleBindingLifecycleState_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState build() { + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState buildPartial() { + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState result = + new com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.code_ = code_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState) { + return mergeFrom((com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState other) { + if (other == com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.getDefaultInstance()) + return this; + if (other.code_ != 0) { + setCodeValue(other.getCodeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + code_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int code_ = 0; + + /** + * + * + *
            +     * Output only. The current state of the rbacrolebinding resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + @java.lang.Override + public int getCodeValue() { + return code_; + } + + /** + * + * + *
            +     * Output only. The current state of the rbacrolebinding resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for code to set. + * @return This builder for chaining. + */ + public Builder setCodeValue(int value) { + code_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The current state of the rbacrolebinding resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code getCode() { + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code result = + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code.forNumber(code_); + return result == null + ? com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Output only. The current state of the rbacrolebinding resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The code to set. + * @return This builder for chaining. + */ + public Builder setCode(com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + code_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The current state of the rbacrolebinding resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCode() { + bitField0_ = (bitField0_ & ~0x00000001); + code_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.RBACRoleBindingLifecycleState) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.RBACRoleBindingLifecycleState) + private static final com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState(); + } + + public static com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RBACRoleBindingLifecycleState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBindingLifecycleStateOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBindingLifecycleStateOrBuilder.java new file mode 100644 index 000000000000..49735fd9f0ad --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBindingLifecycleStateOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface RBACRoleBindingLifecycleStateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.RBACRoleBindingLifecycleState) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Output only. The current state of the rbacrolebinding resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + int getCodeValue(); + + /** + * + * + *
            +   * Output only. The current state of the rbacrolebinding resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState.Code getCode(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBindingName.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBindingName.java new file mode 100644 index 000000000000..75da08410a70 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBindingName.java @@ -0,0 +1,411 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class RBACRoleBindingName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_SCOPE_RBACROLEBINDING = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}"); + private static final PathTemplate PROJECT_LOCATION_MEMBERSHIP_RBACROLEBINDING = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String project; + private final String location; + private final String scope; + private final String rbacrolebinding; + private final String membership; + + @Deprecated + protected RBACRoleBindingName() { + project = null; + location = null; + scope = null; + rbacrolebinding = null; + membership = null; + } + + private RBACRoleBindingName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + scope = Preconditions.checkNotNull(builder.getScope()); + rbacrolebinding = Preconditions.checkNotNull(builder.getRbacrolebinding()); + membership = null; + pathTemplate = PROJECT_LOCATION_SCOPE_RBACROLEBINDING; + } + + private RBACRoleBindingName(ProjectLocationMembershipRbacrolebindingBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + membership = Preconditions.checkNotNull(builder.getMembership()); + rbacrolebinding = Preconditions.checkNotNull(builder.getRbacrolebinding()); + scope = null; + pathTemplate = PROJECT_LOCATION_MEMBERSHIP_RBACROLEBINDING; + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getScope() { + return scope; + } + + public String getRbacrolebinding() { + return rbacrolebinding; + } + + public String getMembership() { + return membership; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public static Builder newProjectLocationScopeRbacrolebindingBuilder() { + return new Builder(); + } + + public static ProjectLocationMembershipRbacrolebindingBuilder + newProjectLocationMembershipRbacrolebindingBuilder() { + return new ProjectLocationMembershipRbacrolebindingBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static RBACRoleBindingName of( + String project, String location, String scope, String rbacrolebinding) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setScope(scope) + .setRbacrolebinding(rbacrolebinding) + .build(); + } + + public static RBACRoleBindingName ofProjectLocationScopeRbacrolebindingName( + String project, String location, String scope, String rbacrolebinding) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setScope(scope) + .setRbacrolebinding(rbacrolebinding) + .build(); + } + + public static RBACRoleBindingName ofProjectLocationMembershipRbacrolebindingName( + String project, String location, String membership, String rbacrolebinding) { + return newProjectLocationMembershipRbacrolebindingBuilder() + .setProject(project) + .setLocation(location) + .setMembership(membership) + .setRbacrolebinding(rbacrolebinding) + .build(); + } + + public static String format( + String project, String location, String scope, String rbacrolebinding) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setScope(scope) + .setRbacrolebinding(rbacrolebinding) + .build() + .toString(); + } + + public static String formatProjectLocationScopeRbacrolebindingName( + String project, String location, String scope, String rbacrolebinding) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setScope(scope) + .setRbacrolebinding(rbacrolebinding) + .build() + .toString(); + } + + public static String formatProjectLocationMembershipRbacrolebindingName( + String project, String location, String membership, String rbacrolebinding) { + return newProjectLocationMembershipRbacrolebindingBuilder() + .setProject(project) + .setLocation(location) + .setMembership(membership) + .setRbacrolebinding(rbacrolebinding) + .build() + .toString(); + } + + public static RBACRoleBindingName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (PROJECT_LOCATION_SCOPE_RBACROLEBINDING.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_SCOPE_RBACROLEBINDING.match(formattedString); + return ofProjectLocationScopeRbacrolebindingName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("scope"), + matchMap.get("rbacrolebinding")); + } else if (PROJECT_LOCATION_MEMBERSHIP_RBACROLEBINDING.matches(formattedString)) { + Map matchMap = + PROJECT_LOCATION_MEMBERSHIP_RBACROLEBINDING.match(formattedString); + return ofProjectLocationMembershipRbacrolebindingName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("membership"), + matchMap.get("rbacrolebinding")); + } + throw new ValidationException("RBACRoleBindingName.parse: formattedString not in valid format"); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (RBACRoleBindingName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_SCOPE_RBACROLEBINDING.matches(formattedString) + || PROJECT_LOCATION_MEMBERSHIP_RBACROLEBINDING.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (scope != null) { + fieldMapBuilder.put("scope", scope); + } + if (rbacrolebinding != null) { + fieldMapBuilder.put("rbacrolebinding", rbacrolebinding); + } + if (membership != null) { + fieldMapBuilder.put("membership", membership); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + RBACRoleBindingName that = ((RBACRoleBindingName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.scope, that.scope) + && Objects.equals(this.rbacrolebinding, that.rbacrolebinding) + && Objects.equals(this.membership, that.membership); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(scope); + h *= 1000003; + h ^= Objects.hashCode(rbacrolebinding); + h *= 1000003; + h ^= Objects.hashCode(membership); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}. + */ + public static class Builder { + private String project; + private String location; + private String scope; + private String rbacrolebinding; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getScope() { + return scope; + } + + public String getRbacrolebinding() { + return rbacrolebinding; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setScope(String scope) { + this.scope = scope; + return this; + } + + public Builder setRbacrolebinding(String rbacrolebinding) { + this.rbacrolebinding = rbacrolebinding; + return this; + } + + private Builder(RBACRoleBindingName rBACRoleBindingName) { + Preconditions.checkArgument( + Objects.equals(rBACRoleBindingName.pathTemplate, PROJECT_LOCATION_SCOPE_RBACROLEBINDING), + "toBuilder is only supported when RBACRoleBindingName has the pattern of" + + " projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}"); + this.project = rBACRoleBindingName.project; + this.location = rBACRoleBindingName.location; + this.scope = rBACRoleBindingName.scope; + this.rbacrolebinding = rBACRoleBindingName.rbacrolebinding; + } + + public RBACRoleBindingName build() { + return new RBACRoleBindingName(this); + } + } + + /** + * Builder for + * projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}. + */ + public static class ProjectLocationMembershipRbacrolebindingBuilder { + private String project; + private String location; + private String membership; + private String rbacrolebinding; + + protected ProjectLocationMembershipRbacrolebindingBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getMembership() { + return membership; + } + + public String getRbacrolebinding() { + return rbacrolebinding; + } + + public ProjectLocationMembershipRbacrolebindingBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationMembershipRbacrolebindingBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationMembershipRbacrolebindingBuilder setMembership(String membership) { + this.membership = membership; + return this; + } + + public ProjectLocationMembershipRbacrolebindingBuilder setRbacrolebinding( + String rbacrolebinding) { + this.rbacrolebinding = rbacrolebinding; + return this; + } + + public RBACRoleBindingName build() { + return new RBACRoleBindingName(this); + } + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBindingOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBindingOrBuilder.java new file mode 100644 index 000000000000..b16f7f8900bd --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBindingOrBuilder.java @@ -0,0 +1,442 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface RBACRoleBindingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.RBACRoleBinding) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * user is the name of the user as seen by the kubernetes cluster, example
            +   * "alice" or "alice@domain.tld"
            +   * 
            + * + * string user = 7; + * + * @return Whether the user field is set. + */ + boolean hasUser(); + + /** + * + * + *
            +   * user is the name of the user as seen by the kubernetes cluster, example
            +   * "alice" or "alice@domain.tld"
            +   * 
            + * + * string user = 7; + * + * @return The user. + */ + java.lang.String getUser(); + + /** + * + * + *
            +   * user is the name of the user as seen by the kubernetes cluster, example
            +   * "alice" or "alice@domain.tld"
            +   * 
            + * + * string user = 7; + * + * @return The bytes for user. + */ + com.google.protobuf.ByteString getUserBytes(); + + /** + * + * + *
            +   * group is the group, as seen by the kubernetes cluster.
            +   * 
            + * + * string group = 8; + * + * @return Whether the group field is set. + */ + boolean hasGroup(); + + /** + * + * + *
            +   * group is the group, as seen by the kubernetes cluster.
            +   * 
            + * + * string group = 8; + * + * @return The group. + */ + java.lang.String getGroup(); + + /** + * + * + *
            +   * group is the group, as seen by the kubernetes cluster.
            +   * 
            + * + * string group = 8; + * + * @return The bytes for group. + */ + com.google.protobuf.ByteString getGroupBytes(); + + /** + * + * + *
            +   * The resource name for the rbacrolebinding
            +   * `projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}`
            +   * or
            +   * `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}`
            +   * 
            + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * The resource name for the rbacrolebinding
            +   * `projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}`
            +   * or
            +   * `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}`
            +   * 
            + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Output only. Google-generated UUID for this resource. This is unique across
            +   * all rbacrolebinding resources. If a rbacrolebinding resource is deleted and
            +   * another resource with the same name is created, it gets a different uid.
            +   * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + java.lang.String getUid(); + + /** + * + * + *
            +   * Output only. Google-generated UUID for this resource. This is unique across
            +   * all rbacrolebinding resources. If a rbacrolebinding resource is deleted and
            +   * another resource with the same name is created, it gets a different uid.
            +   * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
            +   * Output only. When the rbacrolebinding was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
            +   * Output only. When the rbacrolebinding was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
            +   * Output only. When the rbacrolebinding was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. When the rbacrolebinding was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
            +   * Output only. When the rbacrolebinding was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
            +   * Output only. When the rbacrolebinding was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. When the rbacrolebinding was deleted.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + boolean hasDeleteTime(); + + /** + * + * + *
            +   * Output only. When the rbacrolebinding was deleted.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + com.google.protobuf.Timestamp getDeleteTime(); + + /** + * + * + *
            +   * Output only. When the rbacrolebinding was deleted.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. State of the rbacrolebinding resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + boolean hasState(); + + /** + * + * + *
            +   * Output only. State of the rbacrolebinding resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState getState(); + + /** + * + * + *
            +   * Output only. State of the rbacrolebinding resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkehub.v1.RBACRoleBindingLifecycleStateOrBuilder getStateOrBuilder(); + + /** + * + * + *
            +   * Required. Role to bind to the principal
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the role field is set. + */ + boolean hasRole(); + + /** + * + * + *
            +   * Required. Role to bind to the principal
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The role. + */ + com.google.cloud.gkehub.v1.RBACRoleBinding.Role getRole(); + + /** + * + * + *
            +   * Required. Role to bind to the principal
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gkehub.v1.RBACRoleBinding.RoleOrBuilder getRoleOrBuilder(); + + /** + * + * + *
            +   * Optional. Labels for this RBACRolebinding.
            +   * 
            + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
            +   * Optional. Labels for this RBACRolebinding.
            +   * 
            + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
            +   * Optional. Labels for this RBACRolebinding.
            +   * 
            + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
            +   * Optional. Labels for this RBACRolebinding.
            +   * 
            + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
            +   * Optional. Labels for this RBACRolebinding.
            +   * 
            + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + com.google.cloud.gkehub.v1.RBACRoleBinding.PrincipalCase getPrincipalCase(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Scope.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Scope.java new file mode 100644 index 000000000000..7d26330fd9e2 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Scope.java @@ -0,0 +1,2749 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Scope represents a Scope in a Fleet.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.Scope} + */ +@com.google.protobuf.Generated +public final class Scope extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.Scope) + ScopeOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Scope"); + } + + // Use Scope.newBuilder() to construct. + private Scope(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Scope() { + name_ = ""; + uid_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Scope_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 8: + return internalGetNamespaceLabels(); + case 9: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Scope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.Scope.class, com.google.cloud.gkehub.v1.Scope.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * The resource name for the scope
            +   * `projects/{project}/locations/{location}/scopes/{scope}`
            +   * 
            + * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * The resource name for the scope
            +   * `projects/{project}/locations/{location}/scopes/{scope}`
            +   * 
            + * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + + /** + * + * + *
            +   * Output only. Google-generated UUID for this resource. This is unique across
            +   * all scope resources. If a scope resource is deleted and another resource
            +   * with the same name is created, it gets a different uid.
            +   * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. Google-generated UUID for this resource. This is unique across
            +   * all scope resources. If a scope resource is deleted and another resource
            +   * with the same name is created, it gets a different uid.
            +   * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +   * Output only. When the scope was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Output only. When the scope was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
            +   * Output only. When the scope was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
            +   * Output only. When the scope was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Output only. When the scope was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
            +   * Output only. When the scope was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int DELETE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp deleteTime_; + + /** + * + * + *
            +   * Output only. When the scope was deleted.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + @java.lang.Override + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * Output only. When the scope was deleted.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDeleteTime() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + + /** + * + * + *
            +   * Output only. When the scope was deleted.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + + public static final int STATE_FIELD_NUMBER = 6; + private com.google.cloud.gkehub.v1.ScopeLifecycleState state_; + + /** + * + * + *
            +   * Output only. State of the scope resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + @java.lang.Override + public boolean hasState() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +   * Output only. State of the scope resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeLifecycleState getState() { + return state_ == null + ? com.google.cloud.gkehub.v1.ScopeLifecycleState.getDefaultInstance() + : state_; + } + + /** + * + * + *
            +   * Output only. State of the scope resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeLifecycleStateOrBuilder getStateOrBuilder() { + return state_ == null + ? com.google.cloud.gkehub.v1.ScopeLifecycleState.getDefaultInstance() + : state_; + } + + public static final int NAMESPACE_LABELS_FIELD_NUMBER = 8; + + private static final class NamespaceLabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Scope_NamespaceLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField namespaceLabels_; + + private com.google.protobuf.MapField + internalGetNamespaceLabels() { + if (namespaceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + NamespaceLabelsDefaultEntryHolder.defaultEntry); + } + return namespaceLabels_; + } + + public int getNamespaceLabelsCount() { + return internalGetNamespaceLabels().getMap().size(); + } + + /** + * + * + *
            +   * Optional. Scope-level cluster namespace labels. For the member clusters
            +   * bound to the Scope, these labels are applied to each namespace under the
            +   * Scope. Scope-level labels take precedence over Namespace-level
            +   * labels (`namespace_labels` in the Fleet Namespace resource) if they
            +   * share a key. Keys and values must be Kubernetes-conformant.
            +   * 
            + * + * map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsNamespaceLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetNamespaceLabels().getMap().containsKey(key); + } + + /** Use {@link #getNamespaceLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getNamespaceLabels() { + return getNamespaceLabelsMap(); + } + + /** + * + * + *
            +   * Optional. Scope-level cluster namespace labels. For the member clusters
            +   * bound to the Scope, these labels are applied to each namespace under the
            +   * Scope. Scope-level labels take precedence over Namespace-level
            +   * labels (`namespace_labels` in the Fleet Namespace resource) if they
            +   * share a key. Keys and values must be Kubernetes-conformant.
            +   * 
            + * + * map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getNamespaceLabelsMap() { + return internalGetNamespaceLabels().getMap(); + } + + /** + * + * + *
            +   * Optional. Scope-level cluster namespace labels. For the member clusters
            +   * bound to the Scope, these labels are applied to each namespace under the
            +   * Scope. Scope-level labels take precedence over Namespace-level
            +   * labels (`namespace_labels` in the Fleet Namespace resource) if they
            +   * share a key. Keys and values must be Kubernetes-conformant.
            +   * 
            + * + * map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getNamespaceLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetNamespaceLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +   * Optional. Scope-level cluster namespace labels. For the member clusters
            +   * bound to the Scope, these labels are applied to each namespace under the
            +   * Scope. Scope-level labels take precedence over Namespace-level
            +   * labels (`namespace_labels` in the Fleet Namespace resource) if they
            +   * share a key. Keys and values must be Kubernetes-conformant.
            +   * 
            + * + * map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getNamespaceLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetNamespaceLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int LABELS_FIELD_NUMBER = 9; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Scope_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
            +   * Optional. Labels for this Scope.
            +   * 
            + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
            +   * Optional. Labels for this Scope.
            +   * 
            + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
            +   * Optional. Labels for this Scope.
            +   * 
            + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +   * Optional. Labels for this Scope.
            +   * 
            + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, uid_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getDeleteTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(6, getState()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetNamespaceLabels(), NamespaceLabelsDefaultEntryHolder.defaultEntry, 8); + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uid_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDeleteTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getState()); + } + for (java.util.Map.Entry entry : + internalGetNamespaceLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry namespaceLabels__ = + NamespaceLabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, namespaceLabels__); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, labels__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.Scope)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.Scope other = (com.google.cloud.gkehub.v1.Scope) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (hasDeleteTime() != other.hasDeleteTime()) return false; + if (hasDeleteTime()) { + if (!getDeleteTime().equals(other.getDeleteTime())) return false; + } + if (hasState() != other.hasState()) return false; + if (hasState()) { + if (!getState().equals(other.getState())) return false; + } + if (!internalGetNamespaceLabels().equals(other.internalGetNamespaceLabels())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasDeleteTime()) { + hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDeleteTime().hashCode(); + } + if (hasState()) { + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + getState().hashCode(); + } + if (!internalGetNamespaceLabels().getMap().isEmpty()) { + hash = (37 * hash) + NAMESPACE_LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetNamespaceLabels().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.Scope parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.Scope parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.Scope parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.Scope parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.Scope parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.Scope parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.Scope parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.Scope parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.Scope parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.Scope parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.Scope parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.Scope parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkehub.v1.Scope prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Scope represents a Scope in a Fleet.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.Scope} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.Scope) + com.google.cloud.gkehub.v1.ScopeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Scope_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 8: + return internalGetNamespaceLabels(); + case 9: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 8: + return internalGetMutableNamespaceLabels(); + case 9: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Scope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.Scope.class, + com.google.cloud.gkehub.v1.Scope.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.Scope.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetDeleteTimeFieldBuilder(); + internalGetStateFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + uid_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + state_ = null; + if (stateBuilder_ != null) { + stateBuilder_.dispose(); + stateBuilder_ = null; + } + internalGetMutableNamespaceLabels().clear(); + internalGetMutableLabels().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_Scope_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.Scope getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.Scope.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.Scope build() { + com.google.cloud.gkehub.v1.Scope result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.Scope buildPartial() { + com.google.cloud.gkehub.v1.Scope result = new com.google.cloud.gkehub.v1.Scope(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.Scope result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uid_ = uid_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.state_ = stateBuilder_ == null ? state_ : stateBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.namespaceLabels_ = internalGetNamespaceLabels(); + result.namespaceLabels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.Scope) { + return mergeFrom((com.google.cloud.gkehub.v1.Scope) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.Scope other) { + if (other == com.google.cloud.gkehub.v1.Scope.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasDeleteTime()) { + mergeDeleteTime(other.getDeleteTime()); + } + if (other.hasState()) { + mergeState(other.getState()); + } + internalGetMutableNamespaceLabels().mergeFrom(other.internalGetNamespaceLabels()); + bitField0_ |= 0x00000040; + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000080; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(internalGetStateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 66: + { + com.google.protobuf.MapEntry namespaceLabels__ = + input.readMessage( + NamespaceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableNamespaceLabels() + .getMutableMap() + .put(namespaceLabels__.getKey(), namespaceLabels__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 74: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * The resource name for the scope
            +     * `projects/{project}/locations/{location}/scopes/{scope}`
            +     * 
            + * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * The resource name for the scope
            +     * `projects/{project}/locations/{location}/scopes/{scope}`
            +     * 
            + * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * The resource name for the scope
            +     * `projects/{project}/locations/{location}/scopes/{scope}`
            +     * 
            + * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The resource name for the scope
            +     * `projects/{project}/locations/{location}/scopes/{scope}`
            +     * 
            + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * The resource name for the scope
            +     * `projects/{project}/locations/{location}/scopes/{scope}`
            +     * 
            + * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object uid_ = ""; + + /** + * + * + *
            +     * Output only. Google-generated UUID for this resource. This is unique across
            +     * all scope resources. If a scope resource is deleted and another resource
            +     * with the same name is created, it gets a different uid.
            +     * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. Google-generated UUID for this resource. This is unique across
            +     * all scope resources. If a scope resource is deleted and another resource
            +     * with the same name is created, it gets a different uid.
            +     * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. Google-generated UUID for this resource. This is unique across
            +     * all scope resources. If a scope resource is deleted and another resource
            +     * with the same name is created, it gets a different uid.
            +     * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Google-generated UUID for this resource. This is unique across
            +     * all scope resources. If a scope resource is deleted and another resource
            +     * with the same name is created, it gets a different uid.
            +     * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Google-generated UUID for this resource. This is unique across
            +     * all scope resources. If a scope resource is deleted and another resource
            +     * with the same name is created, it gets a different uid.
            +     * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
            +     * Output only. When the scope was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Output only. When the scope was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. When the scope was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the scope was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the scope was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. When the scope was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the scope was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. When the scope was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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_; + } + } + + /** + * + * + *
            +     * Output only. When the scope was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
            +     * Output only. When the scope was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +     * Output only. When the scope was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.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_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. When the scope was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the scope was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the scope was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. When the scope was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the scope was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. When the scope was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.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_; + } + } + + /** + * + * + *
            +     * Output only. When the scope was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.Timestamp deleteTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; + + /** + * + * + *
            +     * Output only. When the scope was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +     * Output only. When the scope was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + public com.google.protobuf.Timestamp getDeleteTime() { + if (deleteTimeBuilder_ == null) { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } else { + return deleteTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. When the scope was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deleteTime_ = value; + } else { + deleteTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the scope was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (deleteTimeBuilder_ == null) { + deleteTime_ = builderForValue.build(); + } else { + deleteTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the scope was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getDeleteTimeBuilder().mergeFrom(value); + } else { + deleteTime_ = value; + } + } else { + deleteTimeBuilder_.mergeFrom(value); + } + if (deleteTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. When the scope was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDeleteTime() { + bitField0_ = (bitField0_ & ~0x00000010); + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. When the scope was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetDeleteTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. When the scope was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + if (deleteTimeBuilder_ != null) { + return deleteTimeBuilder_.getMessageOrBuilder(); + } else { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } + } + + /** + * + * + *
            +     * Output only. When the scope was deleted.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetDeleteTimeFieldBuilder() { + if (deleteTimeBuilder_ == null) { + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); + deleteTime_ = null; + } + return deleteTimeBuilder_; + } + + private com.google.cloud.gkehub.v1.ScopeLifecycleState state_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.ScopeLifecycleState, + com.google.cloud.gkehub.v1.ScopeLifecycleState.Builder, + com.google.cloud.gkehub.v1.ScopeLifecycleStateOrBuilder> + stateBuilder_; + + /** + * + * + *
            +     * Output only. State of the scope resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + public boolean hasState() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
            +     * Output only. State of the scope resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + public com.google.cloud.gkehub.v1.ScopeLifecycleState getState() { + if (stateBuilder_ == null) { + return state_ == null + ? com.google.cloud.gkehub.v1.ScopeLifecycleState.getDefaultInstance() + : state_; + } else { + return stateBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. State of the scope resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setState(com.google.cloud.gkehub.v1.ScopeLifecycleState value) { + if (stateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + state_ = value; + } else { + stateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. State of the scope resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setState( + com.google.cloud.gkehub.v1.ScopeLifecycleState.Builder builderForValue) { + if (stateBuilder_ == null) { + state_ = builderForValue.build(); + } else { + stateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. State of the scope resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeState(com.google.cloud.gkehub.v1.ScopeLifecycleState value) { + if (stateBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && state_ != null + && state_ != com.google.cloud.gkehub.v1.ScopeLifecycleState.getDefaultInstance()) { + getStateBuilder().mergeFrom(value); + } else { + state_ = value; + } + } else { + stateBuilder_.mergeFrom(value); + } + if (state_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. State of the scope resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000020); + state_ = null; + if (stateBuilder_ != null) { + stateBuilder_.dispose(); + stateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. State of the scope resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.v1.ScopeLifecycleState.Builder getStateBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetStateFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. State of the scope resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.v1.ScopeLifecycleStateOrBuilder getStateOrBuilder() { + if (stateBuilder_ != null) { + return stateBuilder_.getMessageOrBuilder(); + } else { + return state_ == null + ? com.google.cloud.gkehub.v1.ScopeLifecycleState.getDefaultInstance() + : state_; + } + } + + /** + * + * + *
            +     * Output only. State of the scope resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.ScopeLifecycleState, + com.google.cloud.gkehub.v1.ScopeLifecycleState.Builder, + com.google.cloud.gkehub.v1.ScopeLifecycleStateOrBuilder> + internalGetStateFieldBuilder() { + if (stateBuilder_ == null) { + stateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.ScopeLifecycleState, + com.google.cloud.gkehub.v1.ScopeLifecycleState.Builder, + com.google.cloud.gkehub.v1.ScopeLifecycleStateOrBuilder>( + getState(), getParentForChildren(), isClean()); + state_ = null; + } + return stateBuilder_; + } + + private com.google.protobuf.MapField namespaceLabels_; + + private com.google.protobuf.MapField + internalGetNamespaceLabels() { + if (namespaceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + NamespaceLabelsDefaultEntryHolder.defaultEntry); + } + return namespaceLabels_; + } + + private com.google.protobuf.MapField + internalGetMutableNamespaceLabels() { + if (namespaceLabels_ == null) { + namespaceLabels_ = + com.google.protobuf.MapField.newMapField( + NamespaceLabelsDefaultEntryHolder.defaultEntry); + } + if (!namespaceLabels_.isMutable()) { + namespaceLabels_ = namespaceLabels_.copy(); + } + bitField0_ |= 0x00000040; + onChanged(); + return namespaceLabels_; + } + + public int getNamespaceLabelsCount() { + return internalGetNamespaceLabels().getMap().size(); + } + + /** + * + * + *
            +     * Optional. Scope-level cluster namespace labels. For the member clusters
            +     * bound to the Scope, these labels are applied to each namespace under the
            +     * Scope. Scope-level labels take precedence over Namespace-level
            +     * labels (`namespace_labels` in the Fleet Namespace resource) if they
            +     * share a key. Keys and values must be Kubernetes-conformant.
            +     * 
            + * + * + * map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsNamespaceLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetNamespaceLabels().getMap().containsKey(key); + } + + /** Use {@link #getNamespaceLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getNamespaceLabels() { + return getNamespaceLabelsMap(); + } + + /** + * + * + *
            +     * Optional. Scope-level cluster namespace labels. For the member clusters
            +     * bound to the Scope, these labels are applied to each namespace under the
            +     * Scope. Scope-level labels take precedence over Namespace-level
            +     * labels (`namespace_labels` in the Fleet Namespace resource) if they
            +     * share a key. Keys and values must be Kubernetes-conformant.
            +     * 
            + * + * + * map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getNamespaceLabelsMap() { + return internalGetNamespaceLabels().getMap(); + } + + /** + * + * + *
            +     * Optional. Scope-level cluster namespace labels. For the member clusters
            +     * bound to the Scope, these labels are applied to each namespace under the
            +     * Scope. Scope-level labels take precedence over Namespace-level
            +     * labels (`namespace_labels` in the Fleet Namespace resource) if they
            +     * share a key. Keys and values must be Kubernetes-conformant.
            +     * 
            + * + * + * map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getNamespaceLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetNamespaceLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +     * Optional. Scope-level cluster namespace labels. For the member clusters
            +     * bound to the Scope, these labels are applied to each namespace under the
            +     * Scope. Scope-level labels take precedence over Namespace-level
            +     * labels (`namespace_labels` in the Fleet Namespace resource) if they
            +     * share a key. Keys and values must be Kubernetes-conformant.
            +     * 
            + * + * + * map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getNamespaceLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetNamespaceLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearNamespaceLabels() { + bitField0_ = (bitField0_ & ~0x00000040); + internalGetMutableNamespaceLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
            +     * Optional. Scope-level cluster namespace labels. For the member clusters
            +     * bound to the Scope, these labels are applied to each namespace under the
            +     * Scope. Scope-level labels take precedence over Namespace-level
            +     * labels (`namespace_labels` in the Fleet Namespace resource) if they
            +     * share a key. Keys and values must be Kubernetes-conformant.
            +     * 
            + * + * + * map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeNamespaceLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableNamespaceLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableNamespaceLabels() { + bitField0_ |= 0x00000040; + return internalGetMutableNamespaceLabels().getMutableMap(); + } + + /** + * + * + *
            +     * Optional. Scope-level cluster namespace labels. For the member clusters
            +     * bound to the Scope, these labels are applied to each namespace under the
            +     * Scope. Scope-level labels take precedence over Namespace-level
            +     * labels (`namespace_labels` in the Fleet Namespace resource) if they
            +     * share a key. Keys and values must be Kubernetes-conformant.
            +     * 
            + * + * + * map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putNamespaceLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableNamespaceLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000040; + return this; + } + + /** + * + * + *
            +     * Optional. Scope-level cluster namespace labels. For the member clusters
            +     * bound to the Scope, these labels are applied to each namespace under the
            +     * Scope. Scope-level labels take precedence over Namespace-level
            +     * labels (`namespace_labels` in the Fleet Namespace resource) if they
            +     * share a key. Keys and values must be Kubernetes-conformant.
            +     * 
            + * + * + * map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllNamespaceLabels(java.util.Map values) { + internalGetMutableNamespaceLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000040; + return this; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000080; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
            +     * Optional. Labels for this Scope.
            +     * 
            + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
            +     * Optional. Labels for this Scope.
            +     * 
            + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
            +     * Optional. Labels for this Scope.
            +     * 
            + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +     * Optional. Labels for this Scope.
            +     * 
            + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000080); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
            +     * Optional. Labels for this Scope.
            +     * 
            + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000080; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
            +     * Optional. Labels for this Scope.
            +     * 
            + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000080; + return this; + } + + /** + * + * + *
            +     * Optional. Labels for this Scope.
            +     * 
            + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000080; + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.Scope) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.Scope) + private static final com.google.cloud.gkehub.v1.Scope DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.Scope(); + } + + public static com.google.cloud.gkehub.v1.Scope getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Scope parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.Scope getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeFeatureSpec.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeFeatureSpec.java new file mode 100644 index 000000000000..df3879ed91b4 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeFeatureSpec.java @@ -0,0 +1,395 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/feature.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * ScopeFeatureSpec contains feature specs for a fleet scope.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ScopeFeatureSpec} + */ +@com.google.protobuf.Generated +public final class ScopeFeatureSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ScopeFeatureSpec) + ScopeFeatureSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ScopeFeatureSpec"); + } + + // Use ScopeFeatureSpec.newBuilder() to construct. + private ScopeFeatureSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ScopeFeatureSpec() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_ScopeFeatureSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_ScopeFeatureSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ScopeFeatureSpec.class, + com.google.cloud.gkehub.v1.ScopeFeatureSpec.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.ScopeFeatureSpec)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ScopeFeatureSpec other = + (com.google.cloud.gkehub.v1.ScopeFeatureSpec) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureSpec parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkehub.v1.ScopeFeatureSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * ScopeFeatureSpec contains feature specs for a fleet scope.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ScopeFeatureSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ScopeFeatureSpec) + com.google.cloud.gkehub.v1.ScopeFeatureSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_ScopeFeatureSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_ScopeFeatureSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ScopeFeatureSpec.class, + com.google.cloud.gkehub.v1.ScopeFeatureSpec.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ScopeFeatureSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_ScopeFeatureSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeFeatureSpec getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ScopeFeatureSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeFeatureSpec build() { + com.google.cloud.gkehub.v1.ScopeFeatureSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeFeatureSpec buildPartial() { + com.google.cloud.gkehub.v1.ScopeFeatureSpec result = + new com.google.cloud.gkehub.v1.ScopeFeatureSpec(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ScopeFeatureSpec) { + return mergeFrom((com.google.cloud.gkehub.v1.ScopeFeatureSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ScopeFeatureSpec other) { + if (other == com.google.cloud.gkehub.v1.ScopeFeatureSpec.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ScopeFeatureSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ScopeFeatureSpec) + private static final com.google.cloud.gkehub.v1.ScopeFeatureSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ScopeFeatureSpec(); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScopeFeatureSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeFeatureSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeFeatureSpecOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeFeatureSpecOrBuilder.java new file mode 100644 index 000000000000..b4a60add2d8b --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeFeatureSpecOrBuilder.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/feature.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ScopeFeatureSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ScopeFeatureSpec) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeFeatureState.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeFeatureState.java new file mode 100644 index 000000000000..08c16100694b --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeFeatureState.java @@ -0,0 +1,716 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/feature.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * ScopeFeatureState contains Scope-wide Feature status information.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ScopeFeatureState} + */ +@com.google.protobuf.Generated +public final class ScopeFeatureState extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ScopeFeatureState) + ScopeFeatureStateOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ScopeFeatureState"); + } + + // Use ScopeFeatureState.newBuilder() to construct. + private ScopeFeatureState(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ScopeFeatureState() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_ScopeFeatureState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_ScopeFeatureState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ScopeFeatureState.class, + com.google.cloud.gkehub.v1.ScopeFeatureState.Builder.class); + } + + private int bitField0_; + public static final int STATE_FIELD_NUMBER = 1; + private com.google.cloud.gkehub.v1.FeatureState state_; + + /** + * + * + *
            +   * Output only. The "running state" of the Feature in this Scope.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + @java.lang.Override + public boolean hasState() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Output only. The "running state" of the Feature in this Scope.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.FeatureState getState() { + return state_ == null ? com.google.cloud.gkehub.v1.FeatureState.getDefaultInstance() : state_; + } + + /** + * + * + *
            +   * Output only. The "running state" of the Feature in this Scope.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.FeatureStateOrBuilder getStateOrBuilder() { + return state_ == null ? com.google.cloud.gkehub.v1.FeatureState.getDefaultInstance() : state_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getState()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getState()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.ScopeFeatureState)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ScopeFeatureState other = + (com.google.cloud.gkehub.v1.ScopeFeatureState) obj; + + if (hasState() != other.hasState()) return false; + if (hasState()) { + if (!getState().equals(other.getState())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasState()) { + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + getState().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureState parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureState parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureState parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureState parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureState parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureState parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureState parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureState parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkehub.v1.ScopeFeatureState prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * ScopeFeatureState contains Scope-wide Feature status information.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ScopeFeatureState} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ScopeFeatureState) + com.google.cloud.gkehub.v1.ScopeFeatureStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_ScopeFeatureState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_ScopeFeatureState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ScopeFeatureState.class, + com.google.cloud.gkehub.v1.ScopeFeatureState.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ScopeFeatureState.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetStateFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + state_ = null; + if (stateBuilder_ != null) { + stateBuilder_.dispose(); + stateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_ScopeFeatureState_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeFeatureState getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ScopeFeatureState.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeFeatureState build() { + com.google.cloud.gkehub.v1.ScopeFeatureState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeFeatureState buildPartial() { + com.google.cloud.gkehub.v1.ScopeFeatureState result = + new com.google.cloud.gkehub.v1.ScopeFeatureState(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.ScopeFeatureState result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.state_ = stateBuilder_ == null ? state_ : stateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ScopeFeatureState) { + return mergeFrom((com.google.cloud.gkehub.v1.ScopeFeatureState) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ScopeFeatureState other) { + if (other == com.google.cloud.gkehub.v1.ScopeFeatureState.getDefaultInstance()) return this; + if (other.hasState()) { + mergeState(other.getState()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(internalGetStateFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.gkehub.v1.FeatureState state_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.FeatureState, + com.google.cloud.gkehub.v1.FeatureState.Builder, + com.google.cloud.gkehub.v1.FeatureStateOrBuilder> + stateBuilder_; + + /** + * + * + *
            +     * Output only. The "running state" of the Feature in this Scope.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + public boolean hasState() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Output only. The "running state" of the Feature in this Scope.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + public com.google.cloud.gkehub.v1.FeatureState getState() { + if (stateBuilder_ == null) { + return state_ == null + ? com.google.cloud.gkehub.v1.FeatureState.getDefaultInstance() + : state_; + } else { + return stateBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. The "running state" of the Feature in this Scope.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setState(com.google.cloud.gkehub.v1.FeatureState value) { + if (stateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + state_ = value; + } else { + stateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The "running state" of the Feature in this Scope.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setState(com.google.cloud.gkehub.v1.FeatureState.Builder builderForValue) { + if (stateBuilder_ == null) { + state_ = builderForValue.build(); + } else { + stateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The "running state" of the Feature in this Scope.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeState(com.google.cloud.gkehub.v1.FeatureState value) { + if (stateBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && state_ != null + && state_ != com.google.cloud.gkehub.v1.FeatureState.getDefaultInstance()) { + getStateBuilder().mergeFrom(value); + } else { + state_ = value; + } + } else { + stateBuilder_.mergeFrom(value); + } + if (state_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. The "running state" of the Feature in this Scope.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000001); + state_ = null; + if (stateBuilder_ != null) { + stateBuilder_.dispose(); + stateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The "running state" of the Feature in this Scope.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.v1.FeatureState.Builder getStateBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetStateFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. The "running state" of the Feature in this Scope.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.v1.FeatureStateOrBuilder getStateOrBuilder() { + if (stateBuilder_ != null) { + return stateBuilder_.getMessageOrBuilder(); + } else { + return state_ == null + ? com.google.cloud.gkehub.v1.FeatureState.getDefaultInstance() + : state_; + } + } + + /** + * + * + *
            +     * Output only. The "running state" of the Feature in this Scope.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.FeatureState, + com.google.cloud.gkehub.v1.FeatureState.Builder, + com.google.cloud.gkehub.v1.FeatureStateOrBuilder> + internalGetStateFieldBuilder() { + if (stateBuilder_ == null) { + stateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.FeatureState, + com.google.cloud.gkehub.v1.FeatureState.Builder, + com.google.cloud.gkehub.v1.FeatureStateOrBuilder>( + getState(), getParentForChildren(), isClean()); + state_ = null; + } + return stateBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ScopeFeatureState) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ScopeFeatureState) + private static final com.google.cloud.gkehub.v1.ScopeFeatureState DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ScopeFeatureState(); + } + + public static com.google.cloud.gkehub.v1.ScopeFeatureState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScopeFeatureState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeFeatureState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeFeatureStateOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeFeatureStateOrBuilder.java new file mode 100644 index 000000000000..41b5552d9152 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeFeatureStateOrBuilder.java @@ -0,0 +1,71 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/feature.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ScopeFeatureStateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ScopeFeatureState) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Output only. The "running state" of the Feature in this Scope.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + boolean hasState(); + + /** + * + * + *
            +   * Output only. The "running state" of the Feature in this Scope.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.gkehub.v1.FeatureState getState(); + + /** + * + * + *
            +   * Output only. The "running state" of the Feature in this Scope.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkehub.v1.FeatureStateOrBuilder getStateOrBuilder(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeLifecycleState.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeLifecycleState.java new file mode 100644 index 000000000000..47ae97c3be85 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeLifecycleState.java @@ -0,0 +1,794 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * ScopeLifecycleState describes the state of a Scope resource.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ScopeLifecycleState} + */ +@com.google.protobuf.Generated +public final class ScopeLifecycleState extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ScopeLifecycleState) + ScopeLifecycleStateOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ScopeLifecycleState"); + } + + // Use ScopeLifecycleState.newBuilder() to construct. + private ScopeLifecycleState(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ScopeLifecycleState() { + code_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_ScopeLifecycleState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_ScopeLifecycleState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ScopeLifecycleState.class, + com.google.cloud.gkehub.v1.ScopeLifecycleState.Builder.class); + } + + /** + * + * + *
            +   * Code describes the state of a Scope resource.
            +   * 
            + * + * Protobuf enum {@code google.cloud.gkehub.v1.ScopeLifecycleState.Code} + */ + public enum Code implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * The code is not set.
            +     * 
            + * + * CODE_UNSPECIFIED = 0; + */ + CODE_UNSPECIFIED(0), + /** + * + * + *
            +     * The scope is being created.
            +     * 
            + * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
            +     * The scope active.
            +     * 
            + * + * READY = 2; + */ + READY(2), + /** + * + * + *
            +     * The scope is being deleted.
            +     * 
            + * + * DELETING = 3; + */ + DELETING(3), + /** + * + * + *
            +     * The scope is being updated.
            +     * 
            + * + * UPDATING = 4; + */ + UPDATING(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Code"); + } + + /** + * + * + *
            +     * The code is not set.
            +     * 
            + * + * CODE_UNSPECIFIED = 0; + */ + public static final int CODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * The scope is being created.
            +     * 
            + * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + + /** + * + * + *
            +     * The scope active.
            +     * 
            + * + * READY = 2; + */ + public static final int READY_VALUE = 2; + + /** + * + * + *
            +     * The scope is being deleted.
            +     * 
            + * + * DELETING = 3; + */ + public static final int DELETING_VALUE = 3; + + /** + * + * + *
            +     * The scope is being updated.
            +     * 
            + * + * UPDATING = 4; + */ + public static final int UPDATING_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Code valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Code forNumber(int value) { + switch (value) { + case 0: + return CODE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return READY; + case 3: + return DELETING; + case 4: + return UPDATING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Code findValueByNumber(int number) { + return Code.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ScopeLifecycleState.getDescriptor().getEnumTypes().get(0); + } + + private static final Code[] VALUES = values(); + + public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Code(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.v1.ScopeLifecycleState.Code) + } + + public static final int CODE_FIELD_NUMBER = 1; + private int code_ = 0; + + /** + * + * + *
            +   * Output only. The current state of the scope resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + @java.lang.Override + public int getCodeValue() { + return code_; + } + + /** + * + * + *
            +   * Output only. The current state of the scope resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeLifecycleState.Code getCode() { + com.google.cloud.gkehub.v1.ScopeLifecycleState.Code result = + com.google.cloud.gkehub.v1.ScopeLifecycleState.Code.forNumber(code_); + return result == null + ? com.google.cloud.gkehub.v1.ScopeLifecycleState.Code.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (code_ != com.google.cloud.gkehub.v1.ScopeLifecycleState.Code.CODE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, code_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (code_ != com.google.cloud.gkehub.v1.ScopeLifecycleState.Code.CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.ScopeLifecycleState)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ScopeLifecycleState other = + (com.google.cloud.gkehub.v1.ScopeLifecycleState) obj; + + if (code_ != other.code_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + code_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ScopeLifecycleState parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ScopeLifecycleState parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ScopeLifecycleState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ScopeLifecycleState parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ScopeLifecycleState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.ScopeLifecycleState parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ScopeLifecycleState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ScopeLifecycleState parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ScopeLifecycleState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ScopeLifecycleState parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.ScopeLifecycleState parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.ScopeLifecycleState parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkehub.v1.ScopeLifecycleState prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * ScopeLifecycleState describes the state of a Scope resource.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.ScopeLifecycleState} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ScopeLifecycleState) + com.google.cloud.gkehub.v1.ScopeLifecycleStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_ScopeLifecycleState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_ScopeLifecycleState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ScopeLifecycleState.class, + com.google.cloud.gkehub.v1.ScopeLifecycleState.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ScopeLifecycleState.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + code_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_ScopeLifecycleState_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeLifecycleState getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ScopeLifecycleState.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeLifecycleState build() { + com.google.cloud.gkehub.v1.ScopeLifecycleState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeLifecycleState buildPartial() { + com.google.cloud.gkehub.v1.ScopeLifecycleState result = + new com.google.cloud.gkehub.v1.ScopeLifecycleState(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.ScopeLifecycleState result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.code_ = code_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.ScopeLifecycleState) { + return mergeFrom((com.google.cloud.gkehub.v1.ScopeLifecycleState) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ScopeLifecycleState other) { + if (other == com.google.cloud.gkehub.v1.ScopeLifecycleState.getDefaultInstance()) return this; + if (other.code_ != 0) { + setCodeValue(other.getCodeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + code_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int code_ = 0; + + /** + * + * + *
            +     * Output only. The current state of the scope resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + @java.lang.Override + public int getCodeValue() { + return code_; + } + + /** + * + * + *
            +     * Output only. The current state of the scope resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for code to set. + * @return This builder for chaining. + */ + public Builder setCodeValue(int value) { + code_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The current state of the scope resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeLifecycleState.Code getCode() { + com.google.cloud.gkehub.v1.ScopeLifecycleState.Code result = + com.google.cloud.gkehub.v1.ScopeLifecycleState.Code.forNumber(code_); + return result == null + ? com.google.cloud.gkehub.v1.ScopeLifecycleState.Code.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Output only. The current state of the scope resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The code to set. + * @return This builder for chaining. + */ + public Builder setCode(com.google.cloud.gkehub.v1.ScopeLifecycleState.Code value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + code_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The current state of the scope resource.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCode() { + bitField0_ = (bitField0_ & ~0x00000001); + code_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ScopeLifecycleState) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ScopeLifecycleState) + private static final com.google.cloud.gkehub.v1.ScopeLifecycleState DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ScopeLifecycleState(); + } + + public static com.google.cloud.gkehub.v1.ScopeLifecycleState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScopeLifecycleState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeLifecycleState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeLifecycleStateOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeLifecycleStateOrBuilder.java new file mode 100644 index 000000000000..74fcd913fc98 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeLifecycleStateOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ScopeLifecycleStateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ScopeLifecycleState) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Output only. The current state of the scope resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + int getCodeValue(); + + /** + * + * + *
            +   * Output only. The current state of the scope resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + com.google.cloud.gkehub.v1.ScopeLifecycleState.Code getCode(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeName.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeName.java new file mode 100644 index 000000000000..655d026f916a --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ScopeName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_SCOPE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/scopes/{scope}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String scope; + + @Deprecated + protected ScopeName() { + project = null; + location = null; + scope = null; + } + + private ScopeName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + scope = Preconditions.checkNotNull(builder.getScope()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getScope() { + return scope; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ScopeName of(String project, String location, String scope) { + return newBuilder().setProject(project).setLocation(location).setScope(scope).build(); + } + + public static String format(String project, String location, String scope) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setScope(scope) + .build() + .toString(); + } + + public static ScopeName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_SCOPE.validatedMatch( + formattedString, "ScopeName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("scope")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ScopeName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_SCOPE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (scope != null) { + fieldMapBuilder.put("scope", scope); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_SCOPE.instantiate( + "project", project, "location", location, "scope", scope); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ScopeName that = ((ScopeName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.scope, that.scope); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(scope); + return h; + } + + /** Builder for projects/{project}/locations/{location}/scopes/{scope}. */ + public static class Builder { + private String project; + private String location; + private String scope; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getScope() { + return scope; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setScope(String scope) { + this.scope = scope; + return this; + } + + private Builder(ScopeName scopeName) { + this.project = scopeName.project; + this.location = scopeName.location; + this.scope = scopeName.scope; + } + + public ScopeName build() { + return new ScopeName(this); + } + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeOrBuilder.java new file mode 100644 index 000000000000..8ad16cd0dc4f --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeOrBuilder.java @@ -0,0 +1,400 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface ScopeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.Scope) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The resource name for the scope
            +   * `projects/{project}/locations/{location}/scopes/{scope}`
            +   * 
            + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * The resource name for the scope
            +   * `projects/{project}/locations/{location}/scopes/{scope}`
            +   * 
            + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Output only. Google-generated UUID for this resource. This is unique across
            +   * all scope resources. If a scope resource is deleted and another resource
            +   * with the same name is created, it gets a different uid.
            +   * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + java.lang.String getUid(); + + /** + * + * + *
            +   * Output only. Google-generated UUID for this resource. This is unique across
            +   * all scope resources. If a scope resource is deleted and another resource
            +   * with the same name is created, it gets a different uid.
            +   * 
            + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
            +   * Output only. When the scope was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
            +   * Output only. When the scope was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
            +   * Output only. When the scope was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. When the scope was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
            +   * Output only. When the scope was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
            +   * Output only. When the scope was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. When the scope was deleted.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + boolean hasDeleteTime(); + + /** + * + * + *
            +   * Output only. When the scope was deleted.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + com.google.protobuf.Timestamp getDeleteTime(); + + /** + * + * + *
            +   * Output only. When the scope was deleted.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. State of the scope resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + boolean hasState(); + + /** + * + * + *
            +   * Output only. State of the scope resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.gkehub.v1.ScopeLifecycleState getState(); + + /** + * + * + *
            +   * Output only. State of the scope resource.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkehub.v1.ScopeLifecycleStateOrBuilder getStateOrBuilder(); + + /** + * + * + *
            +   * Optional. Scope-level cluster namespace labels. For the member clusters
            +   * bound to the Scope, these labels are applied to each namespace under the
            +   * Scope. Scope-level labels take precedence over Namespace-level
            +   * labels (`namespace_labels` in the Fleet Namespace resource) if they
            +   * share a key. Keys and values must be Kubernetes-conformant.
            +   * 
            + * + * map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getNamespaceLabelsCount(); + + /** + * + * + *
            +   * Optional. Scope-level cluster namespace labels. For the member clusters
            +   * bound to the Scope, these labels are applied to each namespace under the
            +   * Scope. Scope-level labels take precedence over Namespace-level
            +   * labels (`namespace_labels` in the Fleet Namespace resource) if they
            +   * share a key. Keys and values must be Kubernetes-conformant.
            +   * 
            + * + * map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsNamespaceLabels(java.lang.String key); + + /** Use {@link #getNamespaceLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getNamespaceLabels(); + + /** + * + * + *
            +   * Optional. Scope-level cluster namespace labels. For the member clusters
            +   * bound to the Scope, these labels are applied to each namespace under the
            +   * Scope. Scope-level labels take precedence over Namespace-level
            +   * labels (`namespace_labels` in the Fleet Namespace resource) if they
            +   * share a key. Keys and values must be Kubernetes-conformant.
            +   * 
            + * + * map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getNamespaceLabelsMap(); + + /** + * + * + *
            +   * Optional. Scope-level cluster namespace labels. For the member clusters
            +   * bound to the Scope, these labels are applied to each namespace under the
            +   * Scope. Scope-level labels take precedence over Namespace-level
            +   * labels (`namespace_labels` in the Fleet Namespace resource) if they
            +   * share a key. Keys and values must be Kubernetes-conformant.
            +   * 
            + * + * map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getNamespaceLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
            +   * Optional. Scope-level cluster namespace labels. For the member clusters
            +   * bound to the Scope, these labels are applied to each namespace under the
            +   * Scope. Scope-level labels take precedence over Namespace-level
            +   * labels (`namespace_labels` in the Fleet Namespace resource) if they
            +   * share a key. Keys and values must be Kubernetes-conformant.
            +   * 
            + * + * map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getNamespaceLabelsOrThrow(java.lang.String key); + + /** + * + * + *
            +   * Optional. Labels for this Scope.
            +   * 
            + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
            +   * Optional. Labels for this Scope.
            +   * 
            + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
            +   * Optional. Labels for this Scope.
            +   * 
            + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
            +   * Optional. Labels for this Scope.
            +   * 
            + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
            +   * Optional. Labels for this Scope.
            +   * 
            + * + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/SecurityPostureConfig.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/SecurityPostureConfig.java new file mode 100644 index 000000000000..55af3e5d89ef --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/SecurityPostureConfig.java @@ -0,0 +1,1135 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * SecurityPostureConfig defines the flags needed to enable/disable features for
            + * the Security Posture API.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.SecurityPostureConfig} + */ +@com.google.protobuf.Generated +public final class SecurityPostureConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.SecurityPostureConfig) + SecurityPostureConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SecurityPostureConfig"); + } + + // Use SecurityPostureConfig.newBuilder() to construct. + private SecurityPostureConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SecurityPostureConfig() { + mode_ = 0; + vulnerabilityMode_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_SecurityPostureConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_SecurityPostureConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.SecurityPostureConfig.class, + com.google.cloud.gkehub.v1.SecurityPostureConfig.Builder.class); + } + + /** + * + * + *
            +   * Mode defines enablement mode for GKE Security posture features.
            +   * 
            + * + * Protobuf enum {@code google.cloud.gkehub.v1.SecurityPostureConfig.Mode} + */ + public enum Mode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * Default value not specified.
            +     * 
            + * + * MODE_UNSPECIFIED = 0; + */ + MODE_UNSPECIFIED(0), + /** + * + * + *
            +     * Disables Security Posture features on the cluster.
            +     * 
            + * + * DISABLED = 1; + */ + DISABLED(1), + /** + * + * + *
            +     * Applies Security Posture features on the cluster.
            +     * 
            + * + * BASIC = 2; + */ + BASIC(2), + /** + * + * + *
            +     * Applies the Security Posture off cluster Enterprise level features.
            +     * 
            + * + * ENTERPRISE = 3; + */ + ENTERPRISE(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Mode"); + } + + /** + * + * + *
            +     * Default value not specified.
            +     * 
            + * + * MODE_UNSPECIFIED = 0; + */ + public static final int MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * Disables Security Posture features on the cluster.
            +     * 
            + * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + + /** + * + * + *
            +     * Applies Security Posture features on the cluster.
            +     * 
            + * + * BASIC = 2; + */ + public static final int BASIC_VALUE = 2; + + /** + * + * + *
            +     * Applies the Security Posture off cluster Enterprise level features.
            +     * 
            + * + * ENTERPRISE = 3; + */ + public static final int ENTERPRISE_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Mode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Mode forNumber(int value) { + switch (value) { + case 0: + return MODE_UNSPECIFIED; + case 1: + return DISABLED; + case 2: + return BASIC; + case 3: + return ENTERPRISE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Mode findValueByNumber(int number) { + return Mode.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.v1.SecurityPostureConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Mode[] VALUES = values(); + + public static Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Mode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.v1.SecurityPostureConfig.Mode) + } + + /** + * + * + *
            +   * VulnerabilityMode defines enablement mode for vulnerability scanning.
            +   * 
            + * + * Protobuf enum {@code google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode} + */ + public enum VulnerabilityMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * Default value not specified.
            +     * 
            + * + * VULNERABILITY_MODE_UNSPECIFIED = 0; + */ + VULNERABILITY_MODE_UNSPECIFIED(0), + /** + * + * + *
            +     * Disables vulnerability scanning on the cluster.
            +     * 
            + * + * VULNERABILITY_DISABLED = 1; + */ + VULNERABILITY_DISABLED(1), + /** + * + * + *
            +     * Applies basic vulnerability scanning on the cluster.
            +     * 
            + * + * VULNERABILITY_BASIC = 2; + */ + VULNERABILITY_BASIC(2), + /** + * + * + *
            +     * Applies the Security Posture's vulnerability on cluster Enterprise level
            +     * features.
            +     * 
            + * + * VULNERABILITY_ENTERPRISE = 3; + */ + VULNERABILITY_ENTERPRISE(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "VulnerabilityMode"); + } + + /** + * + * + *
            +     * Default value not specified.
            +     * 
            + * + * VULNERABILITY_MODE_UNSPECIFIED = 0; + */ + public static final int VULNERABILITY_MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * Disables vulnerability scanning on the cluster.
            +     * 
            + * + * VULNERABILITY_DISABLED = 1; + */ + public static final int VULNERABILITY_DISABLED_VALUE = 1; + + /** + * + * + *
            +     * Applies basic vulnerability scanning on the cluster.
            +     * 
            + * + * VULNERABILITY_BASIC = 2; + */ + public static final int VULNERABILITY_BASIC_VALUE = 2; + + /** + * + * + *
            +     * Applies the Security Posture's vulnerability on cluster Enterprise level
            +     * features.
            +     * 
            + * + * VULNERABILITY_ENTERPRISE = 3; + */ + public static final int VULNERABILITY_ENTERPRISE_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static VulnerabilityMode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static VulnerabilityMode forNumber(int value) { + switch (value) { + case 0: + return VULNERABILITY_MODE_UNSPECIFIED; + case 1: + return VULNERABILITY_DISABLED; + case 2: + return VULNERABILITY_BASIC; + case 3: + return VULNERABILITY_ENTERPRISE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public VulnerabilityMode findValueByNumber(int number) { + return VulnerabilityMode.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() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.v1.SecurityPostureConfig.getDescriptor().getEnumTypes().get(1); + } + + private static final VulnerabilityMode[] VALUES = values(); + + public static VulnerabilityMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private VulnerabilityMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode) + } + + public static final int MODE_FIELD_NUMBER = 1; + private int mode_ = 0; + + /** + * + * + *
            +   * Sets which mode to use for Security Posture features.
            +   * 
            + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.Mode mode = 1; + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + + /** + * + * + *
            +   * Sets which mode to use for Security Posture features.
            +   * 
            + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.Mode mode = 1; + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.SecurityPostureConfig.Mode getMode() { + com.google.cloud.gkehub.v1.SecurityPostureConfig.Mode result = + com.google.cloud.gkehub.v1.SecurityPostureConfig.Mode.forNumber(mode_); + return result == null + ? com.google.cloud.gkehub.v1.SecurityPostureConfig.Mode.UNRECOGNIZED + : result; + } + + public static final int VULNERABILITY_MODE_FIELD_NUMBER = 2; + private int vulnerabilityMode_ = 0; + + /** + * + * + *
            +   * Sets which mode to use for vulnerability scanning.
            +   * 
            + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * + * + * @return The enum numeric value on the wire for vulnerabilityMode. + */ + @java.lang.Override + public int getVulnerabilityModeValue() { + return vulnerabilityMode_; + } + + /** + * + * + *
            +   * Sets which mode to use for vulnerability scanning.
            +   * 
            + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * + * + * @return The vulnerabilityMode. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode getVulnerabilityMode() { + com.google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode result = + com.google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode.forNumber( + vulnerabilityMode_); + return result == null + ? com.google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (mode_ + != com.google.cloud.gkehub.v1.SecurityPostureConfig.Mode.MODE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, mode_); + } + if (vulnerabilityMode_ + != com.google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode + .VULNERABILITY_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, vulnerabilityMode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (mode_ + != com.google.cloud.gkehub.v1.SecurityPostureConfig.Mode.MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, mode_); + } + if (vulnerabilityMode_ + != com.google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode + .VULNERABILITY_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, vulnerabilityMode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.SecurityPostureConfig)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.SecurityPostureConfig other = + (com.google.cloud.gkehub.v1.SecurityPostureConfig) obj; + + if (mode_ != other.mode_) return false; + if (vulnerabilityMode_ != other.vulnerabilityMode_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MODE_FIELD_NUMBER; + hash = (53 * hash) + mode_; + hash = (37 * hash) + VULNERABILITY_MODE_FIELD_NUMBER; + hash = (53 * hash) + vulnerabilityMode_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.SecurityPostureConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.SecurityPostureConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.SecurityPostureConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.SecurityPostureConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.SecurityPostureConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.SecurityPostureConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.SecurityPostureConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.SecurityPostureConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.SecurityPostureConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.SecurityPostureConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.SecurityPostureConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.SecurityPostureConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkehub.v1.SecurityPostureConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * SecurityPostureConfig defines the flags needed to enable/disable features for
            +   * the Security Posture API.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.SecurityPostureConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.SecurityPostureConfig) + com.google.cloud.gkehub.v1.SecurityPostureConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_SecurityPostureConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_SecurityPostureConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.SecurityPostureConfig.class, + com.google.cloud.gkehub.v1.SecurityPostureConfig.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.SecurityPostureConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mode_ = 0; + vulnerabilityMode_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FleetProto + .internal_static_google_cloud_gkehub_v1_SecurityPostureConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.SecurityPostureConfig getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.SecurityPostureConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.SecurityPostureConfig build() { + com.google.cloud.gkehub.v1.SecurityPostureConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.SecurityPostureConfig buildPartial() { + com.google.cloud.gkehub.v1.SecurityPostureConfig result = + new com.google.cloud.gkehub.v1.SecurityPostureConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.SecurityPostureConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mode_ = mode_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.vulnerabilityMode_ = vulnerabilityMode_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.SecurityPostureConfig) { + return mergeFrom((com.google.cloud.gkehub.v1.SecurityPostureConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.SecurityPostureConfig other) { + if (other == com.google.cloud.gkehub.v1.SecurityPostureConfig.getDefaultInstance()) + return this; + if (other.mode_ != 0) { + setModeValue(other.getModeValue()); + } + if (other.vulnerabilityMode_ != 0) { + setVulnerabilityModeValue(other.getVulnerabilityModeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + mode_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + vulnerabilityMode_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int mode_ = 0; + + /** + * + * + *
            +     * Sets which mode to use for Security Posture features.
            +     * 
            + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.Mode mode = 1; + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + + /** + * + * + *
            +     * Sets which mode to use for Security Posture features.
            +     * 
            + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.Mode mode = 1; + * + * @param value The enum numeric value on the wire for mode to set. + * @return This builder for chaining. + */ + public Builder setModeValue(int value) { + mode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Sets which mode to use for Security Posture features.
            +     * 
            + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.Mode mode = 1; + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.SecurityPostureConfig.Mode getMode() { + com.google.cloud.gkehub.v1.SecurityPostureConfig.Mode result = + com.google.cloud.gkehub.v1.SecurityPostureConfig.Mode.forNumber(mode_); + return result == null + ? com.google.cloud.gkehub.v1.SecurityPostureConfig.Mode.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Sets which mode to use for Security Posture features.
            +     * 
            + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.Mode mode = 1; + * + * @param value The mode to set. + * @return This builder for chaining. + */ + public Builder setMode(com.google.cloud.gkehub.v1.SecurityPostureConfig.Mode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + mode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Sets which mode to use for Security Posture features.
            +     * 
            + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.Mode mode = 1; + * + * @return This builder for chaining. + */ + public Builder clearMode() { + bitField0_ = (bitField0_ & ~0x00000001); + mode_ = 0; + onChanged(); + return this; + } + + private int vulnerabilityMode_ = 0; + + /** + * + * + *
            +     * Sets which mode to use for vulnerability scanning.
            +     * 
            + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * + * + * @return The enum numeric value on the wire for vulnerabilityMode. + */ + @java.lang.Override + public int getVulnerabilityModeValue() { + return vulnerabilityMode_; + } + + /** + * + * + *
            +     * Sets which mode to use for vulnerability scanning.
            +     * 
            + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * + * + * @param value The enum numeric value on the wire for vulnerabilityMode to set. + * @return This builder for chaining. + */ + public Builder setVulnerabilityModeValue(int value) { + vulnerabilityMode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Sets which mode to use for vulnerability scanning.
            +     * 
            + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * + * + * @return The vulnerabilityMode. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode + getVulnerabilityMode() { + com.google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode result = + com.google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode.forNumber( + vulnerabilityMode_); + return result == null + ? com.google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Sets which mode to use for vulnerability scanning.
            +     * 
            + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * + * + * @param value The vulnerabilityMode to set. + * @return This builder for chaining. + */ + public Builder setVulnerabilityMode( + com.google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + vulnerabilityMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Sets which mode to use for vulnerability scanning.
            +     * 
            + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearVulnerabilityMode() { + bitField0_ = (bitField0_ & ~0x00000002); + vulnerabilityMode_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.SecurityPostureConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.SecurityPostureConfig) + private static final com.google.cloud.gkehub.v1.SecurityPostureConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.SecurityPostureConfig(); + } + + public static com.google.cloud.gkehub.v1.SecurityPostureConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecurityPostureConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.SecurityPostureConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/SecurityPostureConfigOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/SecurityPostureConfigOrBuilder.java new file mode 100644 index 000000000000..641805c24995 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/SecurityPostureConfigOrBuilder.java @@ -0,0 +1,82 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/fleet.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface SecurityPostureConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.SecurityPostureConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Sets which mode to use for Security Posture features.
            +   * 
            + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.Mode mode = 1; + * + * @return The enum numeric value on the wire for mode. + */ + int getModeValue(); + + /** + * + * + *
            +   * Sets which mode to use for Security Posture features.
            +   * 
            + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.Mode mode = 1; + * + * @return The mode. + */ + com.google.cloud.gkehub.v1.SecurityPostureConfig.Mode getMode(); + + /** + * + * + *
            +   * Sets which mode to use for vulnerability scanning.
            +   * 
            + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * + * + * @return The enum numeric value on the wire for vulnerabilityMode. + */ + int getVulnerabilityModeValue(); + + /** + * + * + *
            +   * Sets which mode to use for vulnerability scanning.
            +   * 
            + * + * .google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * + * + * @return The vulnerabilityMode. + */ + com.google.cloud.gkehub.v1.SecurityPostureConfig.VulnerabilityMode getVulnerabilityMode(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ServiceProto.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ServiceProto.java index 062ca97f60f6..29470c4a9844 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ServiceProto.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ServiceProto.java @@ -40,10 +40,146 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_GetScopeNamespaceRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_GetScopeNamespaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_CreateScopeNamespaceRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_CreateScopeNamespaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_UpdateScopeNamespaceRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_UpdateScopeNamespaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_DeleteScopeNamespaceRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_DeleteScopeNamespaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListScopeNamespacesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListScopeNamespacesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListScopeNamespacesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListScopeNamespacesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_GetScopeRBACRoleBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_GetScopeRBACRoleBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_CreateScopeRBACRoleBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_CreateScopeRBACRoleBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_UpdateScopeRBACRoleBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_UpdateScopeRBACRoleBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_DeleteScopeRBACRoleBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_DeleteScopeRBACRoleBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_GetScopeRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_GetScopeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_CreateScopeRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_CreateScopeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_UpdateScopeRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_UpdateScopeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_DeleteScopeRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_DeleteScopeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListScopesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListScopesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListScopesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListScopesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListPermittedScopesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListPermittedScopesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListPermittedScopesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListPermittedScopesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_GetMembershipBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_GetMembershipBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_CreateMembershipBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_CreateMembershipBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_UpdateMembershipBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_UpdateMembershipBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_DeleteMembershipBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_DeleteMembershipBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListMembershipBindingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListMembershipBindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListMembershipBindingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListMembershipBindingsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_GetMembershipRBACRoleBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_GetMembershipRBACRoleBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_CreateMembershipRBACRoleBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_CreateMembershipRBACRoleBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_UpdateMembershipRBACRoleBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_UpdateMembershipRBACRoleBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_DeleteMembershipRBACRoleBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_DeleteMembershipRBACRoleBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -52,6 +188,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_gkehub_v1_GetMembershipRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_gkehub_v1_GetMembershipRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListBoundMembershipsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListBoundMembershipsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListBoundMembershipsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListBoundMembershipsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -104,6 +248,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_CreateFleetRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_CreateFleetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_GetFleetRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_GetFleetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_UpdateFleetRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_UpdateFleetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_DeleteFleetRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_DeleteFleetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListFleetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListFleetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListFleetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListFleetsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_gkehub_v1_OperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -123,29 +291,180 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ations.proto\032\027google/api/client.proto\032\037g" + "oogle/api/field_behavior.proto\032\031google/a" + "pi/resource.proto\032$google/cloud/gkehub/v" - + "1/feature.proto\032\'google/cloud/gkehub/v1/" - + "membership.proto\032#google/longrunning/operations.proto\032 google/protobuf/field_mas" - + "k.proto\032\037google/protobuf/timestamp.proto\"\257\001\n" + + "1/feature.proto\032\"google/cloud/gkehub/v1/" + + "fleet.proto\032\'google/cloud/gkehub/v1/memb" + + "ership.proto\032#google/longrunning/operations.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"Q\n" + + "\030GetScopeNamespaceRequest\0225\n" + + "\004name\030\001 \001(\tB\'\340A\002\372A!\n" + + "\037gkehub.googleapis.com/Namespace\"\270\001\n" + + "\033CreateScopeNamespaceRequest\0227\n" + + "\006parent\030\001 \001(" + + "\tB\'\340A\002\372A!\022\037gkehub.googleapis.com/Namespace\022\037\n" + + "\022scope_namespace_id\030\002 \001(\tB\003\340A\002\022?\n" + + "\017scope_namespace\030\003" + + " \001(\0132!.google.cloud.gkehub.v1.NamespaceB\003\340A\002\"\224\001\n" + + "\033UpdateScopeNamespaceRequest\022?\n" + + "\017scope_namespace\030\001 " + + "\001(\0132!.google.cloud.gkehub.v1.NamespaceB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"T\n" + + "\033DeleteScopeNamespaceRequest\0225\n" + + "\004name\030\001 \001(\tB\'\340A\002\372A!\n" + + "\037gkehub.googleapis.com/Namespace\"\206\001\n" + + "\032ListScopeNamespacesRequest\0227\n" + + "\006parent\030\001 \001(" + + "\tB\'\340A\002\372A!\022\037gkehub.googleapis.com/Namespace\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"s\n" + + "\033ListScopeNamespacesResponse\022;\n" + + "\020scope_namespaces\030\001 \003(\0132!.google.cloud.gkehub.v1.Namespace\022\027\n" + + "\017next_page_token\030\002 \001(\t\"]\n" + + "\036GetScopeRBACRoleBindingRequest\022;\n" + + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" + + "%gkehub.googleapis.com/RBACRoleBinding\"\312\001\n" + + "!CreateScopeRBACRoleBindingRequest\022=\n" + + "\006parent\030\001 \001(" + + "\tB-\340A\002\372A\'\022%gkehub.googleapis.com/RBACRoleBinding\022\037\n" + + "\022rbacrolebinding_id\030\002 \001(\tB\003\340A\002\022E\n" + + "\017rbacrolebinding\030\003" + + " \001(\0132\'.google.cloud.gkehub.v1.RBACRoleBindingB\003\340A\002\"\240\001\n" + + "!UpdateScopeRBACRoleBindingRequest\022E\n" + + "\017rbacrolebinding\030\001 \001(\013" + + "2\'.google.cloud.gkehub.v1.RBACRoleBindingB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"`\n" + + "!DeleteScopeRBACRoleBindingRequest\022;\n" + + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" + + "%gkehub.googleapis.com/RBACRoleBinding\"\222\001\n" + + " ListScopeRBACRoleBindingsRequest\022=\n" + + "\006parent\030\001 \001(" + + "\tB-\340A\002\372A\'\022%gkehub.googleapis.com/RBACRoleBinding\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"\177\n" + + "!ListScopeRBACRoleBindingsResponse\022A\n" + + "\020rbacrolebindings\030\001" + + " \003(\0132\'.google.cloud.gkehub.v1.RBACRoleBinding\022\027\n" + + "\017next_page_token\030\002 \001(\t\"D\n" + + "\017GetScopeRequest\0221\n" + + "\004name\030\001 \001(\tB#\340A\002\372A\035\n" + + "\033gkehub.googleapis.com/Scope\"\223\001\n" + + "\022CreateScopeRequest\0223\n" + + "\006parent\030\001 \001(" + + "\tB#\340A\002\372A\035\022\033gkehub.googleapis.com/Scope\022\025\n" + + "\010scope_id\030\002 \001(\tB\003\340A\002\0221\n" + + "\005scope\030\003 \001(\0132\035.google.cloud.gkehub.v1.ScopeB\003\340A\002\"}\n" + + "\022UpdateScopeRequest\0221\n" + + "\005scope\030\001 \001(\0132\035.google.cloud.gkehub.v1.ScopeB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"G\n" + + "\022DeleteScopeRequest\0221\n" + + "\004name\030\001 \001(\tB#\340A\002\372A\035\n" + + "\033gkehub.googleapis.com/Scope\"y\n" + + "\021ListScopesRequest\0223\n" + + "\006parent\030\001 \001(" + + "\tB#\340A\002\372A\035\022\033gkehub.googleapis.com/Scope\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"\\\n" + + "\022ListScopesResponse\022-\n" + + "\006scopes\030\001 \003(\0132\035.google.cloud.gkehub.v1.Scope\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\202\001\n" + + "\032ListPermittedScopesRequest\0223\n" + + "\006parent\030\001 \001(" + + "\tB#\340A\002\372A\035\022\033gkehub.googleapis.com/Scope\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"e\n" + + "\033ListPermittedScopesResponse\022-\n" + + "\006scopes\030\001 \003(\0132\035.google.cloud.gkehub.v1.Scope\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\\\n" + + "\033GetMembershipBindingRequest\022=\n" + + "\004name\030\001 \001(\tB/\340A\002\372A)\n" + + "\'gkehub.googleapis.com/MembershipBinding\"\321\001\n" + + "\036CreateMembershipBindingRequest\022?\n" + + "\006parent\030\001 \001(" + + "\tB/\340A\002\372A)\022\'gkehub.googleapis.com/MembershipBinding\022J\n" + + "\022membership_binding\030\002" + + " \001(\0132).google.cloud.gkehub.v1.MembershipBindingB\003\340A\002\022\"\n" + + "\025membership_binding_id\030\003 \001(\tB\003\340A\002\"\242\001\n" + + "\036UpdateMembershipBindingRequest\022J\n" + + "\022membership_binding\030\001 \001(\0132)" + + ".google.cloud.gkehub.v1.MembershipBindingB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"_\n" + + "\036DeleteMembershipBindingRequest\022=\n" + + "\004name\030\001 \001(\tB/\340A\002\372A)\n" + + "\'gkehub.googleapis.com/MembershipBinding\"\246\001\n" + + "\035ListMembershipBindingsRequest\022?\n" + + "\006parent\030\001 \001(" + + "\tB/\340A\002\372A)\022\'gkehub.googleapis.com/MembershipBinding\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\"\226\001\n" + + "\036ListMembershipBindingsResponse\022F\n" + + "\023membership_bindings\030\001" + + " \003(\0132).google.cloud.gkehub.v1.MembershipBinding\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"\257\001\n" + "\026ListMembershipsRequest\0228\n" + "\006parent\030\001 \001(\tB(\340A\002\372A\"\022" + " gkehub.googleapis.com/Membership\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" - + "\010order_by\030\005 \001(\tB\003\340A\001\"~\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"b\n" + + "#GetMembershipRBACRoleBindingRequest\022;\n" + + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" + + "%gkehub.googleapis.com/RBACRoleBinding\"\317\001\n" + + "&CreateMembershipRBACRoleBindingRequest\022=\n" + + "\006parent\030\001 \001(" + + "\tB-\340A\002\372A\'\022%gkehub.googleapis.com/RBACRoleBinding\022\037\n" + + "\022rbacrolebinding_id\030\002 \001(\tB\003\340A\002\022E\n" + + "\017rbacrolebinding\030\003 \001(" + + "\0132\'.google.cloud.gkehub.v1.RBACRoleBindingB\003\340A\002\"\245\001\n" + + "&UpdateMembershipRBACRoleBindingRequest\022E\n" + + "\017rbacrolebinding\030\001 \001(\0132\'.go" + + "ogle.cloud.gkehub.v1.RBACRoleBindingB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"e\n" + + "&DeleteMembershipRBACRoleBindingRequest\022;\n" + + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" + + "%gkehub.googleapis.com/RBACRoleBinding\"\227\001\n" + + "%ListMembershipRBACRoleBindingsRequest\022=\n" + + "\006parent\030\001 \001(" + + "\tB-\340A\002\372A\'\022%gkehub.googleapis.com/RBACRoleBinding\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"\231\001\n" + + "&ListMembershipRBACRoleBindingsResponse\022A\n" + + "\020rbacrolebindings\030\001" + + " \003(\0132\'.google.cloud.gkehub.v1.RBACRoleBinding\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"\320\001\n" + + ",GenerateMembershipRBACRoleBindingYAMLRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " gkehub.googleapis.com/Membership\022\037\n" + + "\022rbacrolebinding_id\030\002 \001(\tB\003\340A\002\022E\n" + + "\017rbacrolebinding\030\003 \001(\0132\'.goog" + + "le.cloud.gkehub.v1.RBACRoleBindingB\003\340A\002\"K\n" + + "-GenerateMembershipRBACRoleBindingYAMLResponse\022\032\n" + + "\022role_bindings_yaml\030\001 \001(\t\"~\n" + "\027ListMembershipsResponse\0225\n" + "\tresources\030\001 \003(\0132\".google.cloud.gkehub.v1.Membership\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"N\n" + "\024GetMembershipRequest\0226\n" + "\004name\030\001 \001(\tB(\340A\002\372A\"\n" - + " gkehub.googleapis.com/Membership\"\303\001\n" + + " gkehub.googleapis.com/Membership\"\234\001\n" + + "\033ListBoundMembershipsRequest\0227\n\n" + + "scope_name\030\001 \001(\tB#\340A\002\372A\035\n" + + "\033gkehub.googleapis.com/Scope\022\023\n" + + "\006filter\030\002 \001(\tB\003\340A\001\022\026\n" + + "\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\004 \001(\tB\003\340A\001\"\205\001\n" + + "\034ListBoundMembershipsResponse\0227\n" + + "\013memberships\030\001 \003(\0132\".google.cloud.gkehub.v1.Membership\022\023\n" + + "\013unreachable\030\002 \003(\t\022\027\n" + + "\017next_page_token\030\003 \001(\t\"\303\001\n" + "\027CreateMembershipRequest\0228\n" + "\006parent\030\001 \001(\tB(\340A\002\372A\"\022" + " gkehub.googleapis.com/Membership\022\032\n\r" + "membership_id\030\002 \001(\tB\003\340A\002\0229\n" - + "\010resource\030\003 \001(\0132\"" - + ".google.cloud.gkehub.v1.MembershipB\003\340A\002\022\027\n\n" + + "\010resource\030\003" + + " \001(\0132\".google.cloud.gkehub.v1.MembershipB\003\340A\002\022\027\n\n" + "request_id\030\004 \001(\tB\003\340A\001\"~\n" + "\027DeleteMembershipRequest\0226\n" + "\004name\030\001 \001(\tB(\340A\002\372A\"\n" @@ -175,19 +494,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010manifest\030\002 \001(\t\"-\n" + "\010TypeMeta\022\014\n" + "\004kind\030\001 \001(\t\022\023\n" - + "\013api_version\030\002 \001(\t\"\222\001\n" + + "\013api_version\030\002 \001(\t\"\267\001\n" + "\023ListFeaturesRequest\0222\n" + "\006parent\030\001 \001(\tB\"\372A\037\022\035gkehub.googleapis.com/Feature\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\022\016\n" + "\006filter\030\004 \001(\t\022\020\n" - + "\010order_by\030\005 \001(\t\"c\n" + + "\010order_by\030\005 \001(\t\022#\n" + + "\026return_partial_success\030\006 \001(\010B\003\340A\001\"c\n" + "\024ListFeaturesResponse\0222\n" + "\tresources\030\001 \003(\0132\037.google.cloud.gkehub.v1.Feature\022\027\n" - + "\017next_page_token\030\002 \001(\t\"E\n" + + "\017next_page_token\030\002 \001(\t\"j\n" + "\021GetFeatureRequest\0220\n" + "\004name\030\001 \001(\tB\"\372A\037\n" - + "\035gkehub.googleapis.com/Feature\"\245\001\n" + + "\035gkehub.googleapis.com/Feature\022#\n" + + "\026return_partial_success\030\002 \001(\010B\003\340A\001\"\245\001\n" + "\024CreateFeatureRequest\0222\n" + "\006parent\030\001 \001(" + "\tB\"\372A\037\022\035gkehub.googleapis.com/Feature\022\022\n\n" @@ -204,7 +525,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035gkehub.googleapis.com/Feature\022/\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\0221\n" + "\010resource\030\003 \001(\0132\037.google.cloud.gkehub.v1.Feature\022\022\n\n" - + "request_id\030\004 \001(\t\"\371\001\n" + + "request_id\030\004 \001(\t\"\202\001\n" + + "\022CreateFleetRequest\0229\n" + + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\0221\n" + + "\005fleet\030\002 \001(\0132\035.google.cloud.gkehub.v1.FleetB\003\340A\002\"D\n" + + "\017GetFleetRequest\0221\n" + + "\004name\030\001 \001(\tB#\340A\002\372A\035\n" + + "\033gkehub.googleapis.com/Fleet\"}\n" + + "\022UpdateFleetRequest\0221\n" + + "\005fleet\030\001 \001(\0132\035.google.cloud.gkehub.v1.FleetB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"G\n" + + "\022DeleteFleetRequest\0221\n" + + "\004name\030\001 \001(\tB#\340A\002\372A\035\n" + + "\033gkehub.googleapis.com/Fleet\"\177\n" + + "\021ListFleetsRequest\0229\n" + + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022\027\n\n" + + "page_token\030\002 \001(\tB\003\340A\001\022\026\n" + + "\tpage_size\030\003 \001(\005B\003\340A\001\"\\\n" + + "\022ListFleetsResponse\022-\n" + + "\006fleets\030\001 \003(\0132\035.google.cloud.gkehub.v1.Fleet\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\371\001\n" + "\021OperationMetadata\0224\n" + "\013create_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" + "\010end_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n" @@ -212,57 +554,221 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004verb\030\004 \001(\tB\003\340A\003\022\032\n\r" + "status_detail\030\005 \001(\tB\003\340A\003\022\035\n" + "\020cancel_requested\030\006 \001(\010B\003\340A\003\022\030\n" - + "\013api_version\030\007 \001(\tB\003\340A\0032\360\021\n" + + "\013api_version\030\007 \001(\tB\003\340A\0032\226M\n" + "\006GkeHub\022\264\001\n" - + "\017ListMemberships\022..google.cloud.gkehub.v" - + "1.ListMembershipsRequest\032/.google.cloud." - + "gkehub.v1.ListMembershipsResponse\"@\332A\006pa" - + "rent\202\323\344\223\0021\022//v1/{parent=projects/*/locations/*}/memberships\022\250\001\n" - + "\014ListFeatures\022+.google.cloud.gkehub.v1.ListFeaturesReques" - + "t\032,.google.cloud.gkehub.v1.ListFeaturesR" - + "esponse\"=\332A\006parent\202\323\344\223\002.\022,/v1/{parent=projects/*/locations/*}/features\022\241\001\n\r" - + "GetMembership\022,.google.cloud.gkehub.v1.GetMem" - + "bershipRequest\032\".google.cloud.gkehub.v1." - + "Membership\">\332A\004name\202\323\344\223\0021\022//v1/{name=projects/*/locations/*/memberships/*}\022\225\001\n\n" - + "GetFeature\022).google.cloud.gkehub.v1.GetFe" - + "atureRequest\032\037.google.cloud.gkehub.v1.Fe" - + "ature\";\332A\004name\202\323\344\223\002.\022,/v1/{name=projects/*/locations/*/features/*}\022\350\001\n" - + "\020CreateMembership\022/.google.cloud.gkehub.v1.CreateM" - + "embershipRequest\032\035.google.longrunning.Operation\"\203\001\312A\037\n\n" - + "Membership\022\021OperationMeta" - + "data\332A\035parent,resource,membership_id\202\323\344\223" - + "\002;\"//v1/{parent=projects/*/locations/*}/memberships:\010resource\022\330\001\n\r" - + "CreateFeature\022,.google.cloud.gkehub.v1.CreateFeatureRe" - + "quest\032\035.google.longrunning.Operation\"z\312A\034\n" - + "\007Feature\022\021OperationMetadata\332A\032parent,r" - + "esource,feature_id\202\323\344\223\0028\",/v1/{parent=pr" - + "ojects/*/locations/*}/features:\010resource\022\317\001\n" - + "\020DeleteMembership\022/.google.cloud.gke" - + "hub.v1.DeleteMembershipRequest\032\035.google.longrunning.Operation\"k\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002" - + "1*//v1/{name=projects/*/locations/*/memberships/*}\022\306\001\n\r" - + "DeleteFeature\022,.google.cl" - + "oud.gkehub.v1.DeleteFeatureRequest\032\035.google.longrunning.Operation\"h\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202" - + "\323\344\223\002.*,/v1/{name=projects/*/locations/*/features/*}\022\343\001\n" - + "\020UpdateMembership\022/.googl" - + "e.cloud.gkehub.v1.UpdateMembershipRequest\032\035.google.longrunning.Operation\"\177\312A\037\n\n" - + "Membership\022\021OperationMetadata\332A\031name,reso" - + "urce,update_mask\202\323\344\223\002;2//v1/{name=projec" - + "ts/*/locations/*/memberships/*}:\010resource\022\327\001\n\r" - + "UpdateFeature\022,.google.cloud.gkehu" - + "b.v1.UpdateFeatureRequest\032\035.google.longrunning.Operation\"y\312A\034\n" - + "\007Feature\022\021OperationMetadata\332A\031name,resource,update_mask\202\323\344" - + "\223\00282,/v1/{name=projects/*/locations/*/features/*}:\010resource\022\333\001\n" - + "\027GenerateConnectManifest\0226.google.cloud.gkehub.v1.Generat" - + "eConnectManifestRequest\0327.google.cloud.gkehub.v1.GenerateConnectManifestResponse" - + "\"O\202\323\344\223\002I\022G/v1/{name=projects/*/locations" - + "/*/memberships/*}:generateConnectManifes" - + "t\032I\312A\025gkehub.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\256\001\n" - + "\032com.google.cloud.gkehub.v1B\014ServiceProt" - + "oP\001Z2cloud.google.com/go/gkehub/apiv1/gk" - + "ehubpb;gkehubpb\252\002\026Google.Cloud.GkeHub.V1" - + "\312\002\026Google\\Cloud\\GkeHub\\V1\352\002\031Google::Cloud::GkeHub::V1b\006proto3" + + "\017ListMemberships\022..google.cloud.gkehub.v1.ListMembershipsRequest\032/." + + "google.cloud.gkehub.v1.ListMembershipsRe" + + "sponse\"@\332A\006parent\202\323\344\223\0021\022//v1/{parent=projects/*/locations/*}/memberships\022\330\001\n" + + "\024ListBoundMemberships\0223.google.cloud.gkehub." + + "v1.ListBoundMembershipsRequest\0324.google." + + "cloud.gkehub.v1.ListBoundMembershipsResponse\"U\332A\n" + + "scope_name\202\323\344\223\002B\022@/v1/{scope_na" + + "me=projects/*/locations/*/scopes/*}:listMemberships\022\250\001\n" + + "\014ListFeatures\022+.google.cloud.gkehub.v1.ListFeaturesRequest\032,.goog" + + "le.cloud.gkehub.v1.ListFeaturesResponse\"" + + "=\332A\006parent\202\323\344\223\002.\022,/v1/{parent=projects/*/locations/*}/features\022\241\001\n\r" + + "GetMembership\022,.google.cloud.gkehub.v1.GetMembershipR" + + "equest\032\".google.cloud.gkehub.v1.Membersh" + + "ip\">\332A\004name\202\323\344\223\0021\022//v1/{name=projects/*/locations/*/memberships/*}\022\225\001\n\n" + + "GetFeature\022).google.cloud.gkehub.v1.GetFeatureReq" + + "uest\032\037.google.cloud.gkehub.v1.Feature\";\332" + + "A\004name\202\323\344\223\002.\022,/v1/{name=projects/*/locations/*/features/*}\022\350\001\n" + + "\020CreateMembership\022/.google.cloud.gkehub.v1.CreateMembershi" + + "pRequest\032\035.google.longrunning.Operation\"\203\001\312A\037\n\n" + + "Membership\022\021OperationMetadata\332A\035p" + + "arent,resource,membership_id\202\323\344\223\002;\"//v1/" + + "{parent=projects/*/locations/*}/memberships:\010resource\022\330\001\n\r" + + "CreateFeature\022,.google" + + ".cloud.gkehub.v1.CreateFeatureRequest\032\035.google.longrunning.Operation\"z\312A\034\n" + + "\007Feature\022\021OperationMetadata\332A\032parent,resource," + + "feature_id\202\323\344\223\0028\",/v1/{parent=projects/*/locations/*}/features:\010resource\022\317\001\n" + + "\020DeleteMembership\022/.google.cloud.gkehub.v1.D" + + "eleteMembershipRequest\032\035.google.longrunning.Operation\"k\312A*\n" + + "\025google.protobuf.Empt" + + "y\022\021OperationMetadata\332A\004name\202\323\344\223\0021*//v1/{" + + "name=projects/*/locations/*/memberships/*}\022\306\001\n\r" + + "DeleteFeature\022,.google.cloud.gkeh" + + "ub.v1.DeleteFeatureRequest\032\035.google.longrunning.Operation\"h\312A*\n" + + "\025google.protobuf." + + "Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002.*,/" + + "v1/{name=projects/*/locations/*/features/*}\022\343\001\n" + + "\020UpdateMembership\022/.google.cloud." + + "gkehub.v1.UpdateMembershipRequest\032\035.google.longrunning.Operation\"\177\312A\037\n\n" + + "Membership\022\021OperationMetadata\332A\031name,resource,upd" + + "ate_mask\202\323\344\223\002;2//v1/{name=projects/*/locations/*/memberships/*}:\010resource\022\327\001\n\r" + + "UpdateFeature\022,.google.cloud.gkehub.v1.Upd" + + "ateFeatureRequest\032\035.google.longrunning.Operation\"y\312A\034\n" + + "\007Feature\022\021OperationMetadat" + + "a\332A\031name,resource,update_mask\202\323\344\223\00282,/v1" + + "/{name=projects/*/locations/*/features/*}:\010resource\022\333\001\n" + + "\027GenerateConnectManifest\0226.google.cloud.gkehub.v1.GenerateConnect" + + "ManifestRequest\0327.google.cloud.gkehub.v1" + + ".GenerateConnectManifestResponse\"O\202\323\344\223\002I" + + "\022G/v1/{name=projects/*/locations/*/memberships/*}:generateConnectManifest\022\277\001\n" + + "\013CreateFleet\022*.google.cloud.gkehub.v1.Creat" + + "eFleetRequest\032\035.google.longrunning.Operation\"e\312A\032\n" + + "\005Fleet\022\021OperationMetadata\332A\014pa" + + "rent,fleet\202\323\344\223\0023\"*/v1/{parent=projects/*/locations/*}/fleets:\005fleet\022\215\001\n" + + "\010GetFleet\022\'.google.cloud.gkehub.v1.GetFleetReques" + + "t\032\035.google.cloud.gkehub.v1.Fleet\"9\332A\004nam" + + "e\202\323\344\223\002,\022*/v1/{name=projects/*/locations/*/fleets/*}\022\312\001\n" + + "\013UpdateFleet\022*.google.clo" + + "ud.gkehub.v1.UpdateFleetRequest\032\035.google.longrunning.Operation\"p\312A\032\n" + + "\005Fleet\022\021OperationMetadata\332A\021fleet,update_mask\202\323\344\223\00292" + + "0/v1/{fleet.name=projects/*/locations/*/fleets/*}:\005fleet\022\300\001\n" + + "\013DeleteFleet\022*.googl" + + "e.cloud.gkehub.v1.DeleteFleetRequest\032\035.google.longrunning.Operation\"f\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004nam" + + "e\202\323\344\223\002,**/v1/{name=projects/*/locations/*/fleets/*}\022\323\001\n\n" + + "ListFleets\022).google.cloud.gkehub.v1.ListFleetsRequest\032*.google.c" + + "loud.gkehub.v1.ListFleetsResponse\"n\332A\006pa" + + "rent\202\323\344\223\002_\022*/v1/{parent=projects/*/locat" + + "ions/*}/fleetsZ1\022//v1/{parent=organizations/*/locations/*}/fleets\022\260\001\n" + + "\021GetScopeNamespace\0220.google.cloud.gkehub.v1.GetScop" + + "eNamespaceRequest\032!.google.cloud.gkehub." + + "v1.Namespace\"F\332A\004name\202\323\344\223\0029\0227/v1/{name=p" + + "rojects/*/locations/*/scopes/*/namespaces/*}\022\212\002\n" + + "\024CreateScopeNamespace\0223.google.c" + + "loud.gkehub.v1.CreateScopeNamespaceRequest\032\035.google.longrunning.Operation\"\235\001\312A\036\n" + + "\tNamespace\022\021OperationMetadata\332A)parent,s" + + "cope_namespace,scope_namespace_id\202\323\344\223\002J\"" + + "7/v1/{parent=projects/*/locations/*/scopes/*}/namespaces:\017scope_namespace\022\214\002\n" + + "\024UpdateScopeNamespace\0223.google.cloud.gkehub" + + ".v1.UpdateScopeNamespaceRequest\032\035.google.longrunning.Operation\"\237\001\312A\036\n" + + "\tNamespace\022\021OperationMetadata\332A\033scope_namespace,upd" + + "ate_mask\202\323\344\223\002Z2G/v1/{scope_namespace.nam" + + "e=projects/*/locations/*/scopes/*/namespaces/*}:\017scope_namespace\022\337\001\n" + + "\024DeleteScopeNamespace\0223.google.cloud.gkehub.v1.Delet" + + "eScopeNamespaceRequest\032\035.google.longrunning.Operation\"s\312A*\n" + + "\025google.protobuf.Empt" + + "y\022\021OperationMetadata\332A\004name\202\323\344\223\0029*7/v1/{" + + "name=projects/*/locations/*/scopes/*/namespaces/*}\022\310\001\n" + + "\023ListScopeNamespaces\0222.google.cloud.gkehub.v1.ListScopeNamespacesR" + + "equest\0323.google.cloud.gkehub.v1.ListScop" + + "eNamespacesResponse\"H\332A\006parent\202\323\344\223\0029\0227/v" + + "1/{parent=projects/*/locations/*/scopes/*}/namespaces\022\310\001\n" + + "\027GetScopeRBACRoleBinding\0226.google.cloud.gkehub.v1.GetScopeRBACR" + + "oleBindingRequest\032\'.google.cloud.gkehub." + + "v1.RBACRoleBinding\"L\332A\004name\202\323\344\223\002?\022=/v1/{" + + "name=projects/*/locations/*/scopes/*/rbacrolebindings/*}\022\242\002\n" + + "\032CreateScopeRBACRoleBinding\0229.google.cloud.gkehub.v1.CreateS" + + "copeRBACRoleBindingRequest\032\035.google.longrunning.Operation\"\251\001\312A$\n" + + "\017RBACRoleBinding\022\021OperationMetadata\332A)parent,rbacrolebin" + + "ding,rbacrolebinding_id\202\323\344\223\002P\"=/v1/{pare" + + "nt=projects/*/locations/*/scopes/*}/rbacrolebindings:\017rbacrolebinding\022\244\002\n" + + "\032UpdateScopeRBACRoleBinding\0229.google.cloud.gkeh" + + "ub.v1.UpdateScopeRBACRoleBindingRequest\032\035.google.longrunning.Operation\"\253\001\312A$\n" + + "\017RBACRoleBinding\022\021OperationMetadata\332A\033rbacr" + + "olebinding,update_mask\202\323\344\223\002`2M/v1/{rbacr" + + "olebinding.name=projects/*/locations/*/s" + + "copes/*/rbacrolebindings/*}:\017rbacrolebinding\022\361\001\n" + + "\032DeleteScopeRBACRoleBinding\0229.google.cloud.gkehub.v1.DeleteScopeRBACRole" + + "BindingRequest\032\035.google.longrunning.Operation\"y\312A*\n" + + "\025google.protobuf.Empty\022\021Opera" + + "tionMetadata\332A\004name\202\323\344\223\002?*=/v1/{name=pro" + + "jects/*/locations/*/scopes/*/rbacrolebindings/*}\022\340\001\n" + + "\031ListScopeRBACRoleBindings\0228.google.cloud.gkehub.v1.ListScopeRBACRol" + + "eBindingsRequest\0329.google.cloud.gkehub.v" + + "1.ListScopeRBACRoleBindingsResponse\"N\332A\006" + + "parent\202\323\344\223\002?\022=/v1/{parent=projects/*/locations/*/scopes/*}/rbacrolebindings\022\215\001\n" + + "\010GetScope\022\'.google.cloud.gkehub.v1.GetSco" + + "peRequest\032\035.google.cloud.gkehub.v1.Scope" + + "\"9\332A\004name\202\323\344\223\002,\022*/v1/{name=projects/*/locations/*/scopes/*}\022\310\001\n" + + "\013CreateScope\022*.go" + + "ogle.cloud.gkehub.v1.CreateScopeRequest\032\035.google.longrunning.Operation\"n\312A\032\n" + + "\005Scope\022\021OperationMetadata\332A\025parent,scope,sco" + + "pe_id\202\323\344\223\0023\"*/v1/{parent=projects/*/locations/*}/scopes:\005scope\022\312\001\n" + + "\013UpdateScope\022*" + + ".google.cloud.gkehub.v1.UpdateScopeRequest\032\035.google.longrunning.Operation\"p\312A\032\n" + + "\005Scope\022\021OperationMetadata\332A\021scope,update_" + + "mask\202\323\344\223\002920/v1/{scope.name=projects/*/locations/*/scopes/*}:\005scope\022\300\001\n" + + "\013DeleteScope\022*.google.cloud.gkehub.v1.DeleteScope" + + "Request\032\035.google.longrunning.Operation\"f\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMet" + + "adata\332A\004name\202\323\344\223\002,**/v1/{name=projects/*/locations/*/scopes/*}\022\240\001\n\n" + + "ListScopes\022).google.cloud.gkehub.v1.ListScopesRequest" + + "\032*.google.cloud.gkehub.v1.ListScopesResp" + + "onse\";\332A\006parent\202\323\344\223\002,\022*/v1/{parent=projects/*/locations/*}/scopes\022\311\001\n" + + "\023ListPermittedScopes\0222.google.cloud.gkehub.v1.ListP" + + "ermittedScopesRequest\0323.google.cloud.gke" + + "hub.v1.ListPermittedScopesResponse\"I\332A\006p" + + "arent\202\323\344\223\002:\0228/v1/{parent=projects/*/locations/*}/scopes:listPermitted\022\301\001\n" + + "\024GetMembershipBinding\0223.google.cloud.gkehub.v1." + + "GetMembershipBindingRequest\032).google.clo" + + "ud.gkehub.v1.MembershipBinding\"I\332A\004name\202" + + "\323\344\223\002<\022:/v1/{name=projects/*/locations/*/memberships/*/bindings/*}\022\244\002\n" + + "\027CreateMembershipBinding\0226.google.cloud.gkehub.v1.C" + + "reateMembershipBindingRequest\032\035.google.longrunning.Operation\"\261\001\312A&\n" + + "\021MembershipBinding\022\021OperationMetadata\332A/parent,member" + + "ship_binding,membership_binding_id\202\323\344\223\002P" + + "\":/v1/{parent=projects/*/locations/*/mem" + + "berships/*}/bindings:\022membership_binding\022\246\002\n" + + "\027UpdateMembershipBinding\0226.google.cloud.gkehub.v1.UpdateMembershipBindingReq" + + "uest\032\035.google.longrunning.Operation\"\263\001\312A&\n" + + "\021MembershipBinding\022\021OperationMetadata\332" + + "A\036membership_binding,update_mask\202\323\344\223\002c2M", + "/v1/{membership_binding.name=projects/*/" + + "locations/*/memberships/*/bindings/*}:\022m" + + "embership_binding\022\350\001\n\027DeleteMembershipBi" + + "nding\0226.google.cloud.gkehub.v1.DeleteMem" + + "bershipBindingRequest\032\035.google.longrunni" + + "ng.Operation\"v\312A*\n\025google.protobuf.Empty" + + "\022\021OperationMetadata\332A\004name\202\323\344\223\002<*:/v1/{n" + + "ame=projects/*/locations/*/memberships/*" + + "/bindings/*}\022\324\001\n\026ListMembershipBindings\022" + + "5.google.cloud.gkehub.v1.ListMembershipB" + + "indingsRequest\0326.google.cloud.gkehub.v1." + + "ListMembershipBindingsResponse\"K\332A\006paren" + + "t\202\323\344\223\002<\022:/v1/{parent=projects/*/location" + + "s/*/memberships/*}/bindings\022\327\001\n\034GetMembe" + + "rshipRBACRoleBinding\022;.google.cloud.gkeh" + + "ub.v1.GetMembershipRBACRoleBindingReques" + + "t\032\'.google.cloud.gkehub.v1.RBACRoleBindi" + + "ng\"Q\332A\004name\202\323\344\223\002D\022B/v1/{name=projects/*/" + + "locations/*/memberships/*/rbacrolebindin" + + "gs/*}\022\261\002\n\037CreateMembershipRBACRoleBindin" + + "g\022>.google.cloud.gkehub.v1.CreateMembers" + + "hipRBACRoleBindingRequest\032\035.google.longr" + + "unning.Operation\"\256\001\312A$\n\017RBACRoleBinding\022" + + "\021OperationMetadata\332A)parent,rbacrolebind" + + "ing,rbacrolebinding_id\202\323\344\223\002U\"B/v1/{paren" + + "t=projects/*/locations/*/memberships/*}/" + + "rbacrolebindings:\017rbacrolebinding\022\263\002\n\037Up" + + "dateMembershipRBACRoleBinding\022>.google.c" + + "loud.gkehub.v1.UpdateMembershipRBACRoleB" + + "indingRequest\032\035.google.longrunning.Opera" + + "tion\"\260\001\312A$\n\017RBACRoleBinding\022\021OperationMe" + + "tadata\332A\033rbacrolebinding,update_mask\202\323\344\223" + + "\002e2R/v1/{rbacrolebinding.name=projects/*" + + "/locations/*/memberships/*/rbacrolebindi" + + "ngs/*}:\017rbacrolebinding\022\200\002\n\037DeleteMember" + + "shipRBACRoleBinding\022>.google.cloud.gkehu" + + "b.v1.DeleteMembershipRBACRoleBindingRequ" + + "est\032\035.google.longrunning.Operation\"~\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadat" + + "a\332A\004name\202\323\344\223\002D*B/v1/{name=projects/*/loc" + + "ations/*/memberships/*/rbacrolebindings/" + + "*}\022\364\001\n\036ListMembershipRBACRoleBindings\022=." + + "google.cloud.gkehub.v1.ListMembershipRBA" + + "CRoleBindingsRequest\032>.google.cloud.gkeh" + + "ub.v1.ListMembershipRBACRoleBindingsResp" + + "onse\"S\332A\006parent\202\323\344\223\002D\022B/v1/{parent=proje" + + "cts/*/locations/*/memberships/*}/rbacrol" + + "ebindings\022\270\002\n%GenerateMembershipRBACRole" + + "BindingYAML\022D.google.cloud.gkehub.v1.Gen" + + "erateMembershipRBACRoleBindingYAMLReques" + + "t\032E.google.cloud.gkehub.v1.GenerateMembe" + + "rshipRBACRoleBindingYAMLResponse\"\201\001\202\323\344\223\002" + + "{\"h/v1/{parent=projects/*/locations/*/me" + + "mberships/*}/rbacrolebindings:generateMe" + + "mbershipRBACRoleBindingYAML:\017rbacrolebin" + + "ding\032I\312A\025gkehub.googleapis.com\322A.https:/" + + "/www.googleapis.com/auth/cloud-platformB" + + "\256\001\n\032com.google.cloud.gkehub.v1B\014ServiceP" + + "rotoP\001Z2cloud.google.com/go/gkehub/apiv1" + + "/gkehubpb;gkehubpb\252\002\026Google.Cloud.GkeHub" + + ".V1\312\002\026Google\\Cloud\\GkeHub\\V1\352\002\031Google::C" + + "loud::GkeHub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -273,21 +779,294 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.gkehub.v1.FeatureProto.getDescriptor(), + com.google.cloud.gkehub.v1.FleetProto.getDescriptor(), com.google.cloud.gkehub.v1.MembershipProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); - internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_descriptor = + internal_static_google_cloud_gkehub_v1_GetScopeNamespaceRequest_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_gkehub_v1_GetScopeNamespaceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_GetScopeNamespaceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkehub_v1_CreateScopeNamespaceRequest_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_gkehub_v1_CreateScopeNamespaceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_CreateScopeNamespaceRequest_descriptor, + new java.lang.String[] { + "Parent", "ScopeNamespaceId", "ScopeNamespace", + }); + internal_static_google_cloud_gkehub_v1_UpdateScopeNamespaceRequest_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_gkehub_v1_UpdateScopeNamespaceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_UpdateScopeNamespaceRequest_descriptor, + new java.lang.String[] { + "ScopeNamespace", "UpdateMask", + }); + internal_static_google_cloud_gkehub_v1_DeleteScopeNamespaceRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_gkehub_v1_DeleteScopeNamespaceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_DeleteScopeNamespaceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkehub_v1_ListScopeNamespacesRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_gkehub_v1_ListScopeNamespacesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ListScopeNamespacesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_gkehub_v1_ListScopeNamespacesResponse_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_gkehub_v1_ListScopeNamespacesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ListScopeNamespacesResponse_descriptor, + new java.lang.String[] { + "ScopeNamespaces", "NextPageToken", + }); + internal_static_google_cloud_gkehub_v1_GetScopeRBACRoleBindingRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_gkehub_v1_GetScopeRBACRoleBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_GetScopeRBACRoleBindingRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkehub_v1_CreateScopeRBACRoleBindingRequest_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_gkehub_v1_CreateScopeRBACRoleBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_CreateScopeRBACRoleBindingRequest_descriptor, + new java.lang.String[] { + "Parent", "RbacrolebindingId", "Rbacrolebinding", + }); + internal_static_google_cloud_gkehub_v1_UpdateScopeRBACRoleBindingRequest_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_gkehub_v1_UpdateScopeRBACRoleBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_UpdateScopeRBACRoleBindingRequest_descriptor, + new java.lang.String[] { + "Rbacrolebinding", "UpdateMask", + }); + internal_static_google_cloud_gkehub_v1_DeleteScopeRBACRoleBindingRequest_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_gkehub_v1_DeleteScopeRBACRoleBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_DeleteScopeRBACRoleBindingRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsRequest_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsResponse_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ListScopeRBACRoleBindingsResponse_descriptor, + new java.lang.String[] { + "Rbacrolebindings", "NextPageToken", + }); + internal_static_google_cloud_gkehub_v1_GetScopeRequest_descriptor = + getDescriptor().getMessageType(12); + internal_static_google_cloud_gkehub_v1_GetScopeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_GetScopeRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkehub_v1_CreateScopeRequest_descriptor = + getDescriptor().getMessageType(13); + internal_static_google_cloud_gkehub_v1_CreateScopeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_CreateScopeRequest_descriptor, + new java.lang.String[] { + "Parent", "ScopeId", "Scope", + }); + internal_static_google_cloud_gkehub_v1_UpdateScopeRequest_descriptor = + getDescriptor().getMessageType(14); + internal_static_google_cloud_gkehub_v1_UpdateScopeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_UpdateScopeRequest_descriptor, + new java.lang.String[] { + "Scope", "UpdateMask", + }); + internal_static_google_cloud_gkehub_v1_DeleteScopeRequest_descriptor = + getDescriptor().getMessageType(15); + internal_static_google_cloud_gkehub_v1_DeleteScopeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_DeleteScopeRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkehub_v1_ListScopesRequest_descriptor = + getDescriptor().getMessageType(16); + internal_static_google_cloud_gkehub_v1_ListScopesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ListScopesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_gkehub_v1_ListScopesResponse_descriptor = + getDescriptor().getMessageType(17); + internal_static_google_cloud_gkehub_v1_ListScopesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ListScopesResponse_descriptor, + new java.lang.String[] { + "Scopes", "NextPageToken", + }); + internal_static_google_cloud_gkehub_v1_ListPermittedScopesRequest_descriptor = + getDescriptor().getMessageType(18); + internal_static_google_cloud_gkehub_v1_ListPermittedScopesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ListPermittedScopesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_gkehub_v1_ListPermittedScopesResponse_descriptor = + getDescriptor().getMessageType(19); + internal_static_google_cloud_gkehub_v1_ListPermittedScopesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ListPermittedScopesResponse_descriptor, + new java.lang.String[] { + "Scopes", "NextPageToken", + }); + internal_static_google_cloud_gkehub_v1_GetMembershipBindingRequest_descriptor = + getDescriptor().getMessageType(20); + internal_static_google_cloud_gkehub_v1_GetMembershipBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_GetMembershipBindingRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkehub_v1_CreateMembershipBindingRequest_descriptor = + getDescriptor().getMessageType(21); + internal_static_google_cloud_gkehub_v1_CreateMembershipBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_CreateMembershipBindingRequest_descriptor, + new java.lang.String[] { + "Parent", "MembershipBinding", "MembershipBindingId", + }); + internal_static_google_cloud_gkehub_v1_UpdateMembershipBindingRequest_descriptor = + getDescriptor().getMessageType(22); + internal_static_google_cloud_gkehub_v1_UpdateMembershipBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_UpdateMembershipBindingRequest_descriptor, + new java.lang.String[] { + "MembershipBinding", "UpdateMask", + }); + internal_static_google_cloud_gkehub_v1_DeleteMembershipBindingRequest_descriptor = + getDescriptor().getMessageType(23); + internal_static_google_cloud_gkehub_v1_DeleteMembershipBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_DeleteMembershipBindingRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkehub_v1_ListMembershipBindingsRequest_descriptor = + getDescriptor().getMessageType(24); + internal_static_google_cloud_gkehub_v1_ListMembershipBindingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ListMembershipBindingsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_gkehub_v1_ListMembershipBindingsResponse_descriptor = + getDescriptor().getMessageType(25); + internal_static_google_cloud_gkehub_v1_ListMembershipBindingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ListMembershipBindingsResponse_descriptor, + new java.lang.String[] { + "MembershipBindings", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_descriptor = + getDescriptor().getMessageType(26); internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_descriptor, new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_gkehub_v1_GetMembershipRBACRoleBindingRequest_descriptor = + getDescriptor().getMessageType(27); + internal_static_google_cloud_gkehub_v1_GetMembershipRBACRoleBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_GetMembershipRBACRoleBindingRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkehub_v1_CreateMembershipRBACRoleBindingRequest_descriptor = + getDescriptor().getMessageType(28); + internal_static_google_cloud_gkehub_v1_CreateMembershipRBACRoleBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_CreateMembershipRBACRoleBindingRequest_descriptor, + new java.lang.String[] { + "Parent", "RbacrolebindingId", "Rbacrolebinding", + }); + internal_static_google_cloud_gkehub_v1_UpdateMembershipRBACRoleBindingRequest_descriptor = + getDescriptor().getMessageType(29); + internal_static_google_cloud_gkehub_v1_UpdateMembershipRBACRoleBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_UpdateMembershipRBACRoleBindingRequest_descriptor, + new java.lang.String[] { + "Rbacrolebinding", "UpdateMask", + }); + internal_static_google_cloud_gkehub_v1_DeleteMembershipRBACRoleBindingRequest_descriptor = + getDescriptor().getMessageType(30); + internal_static_google_cloud_gkehub_v1_DeleteMembershipRBACRoleBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_DeleteMembershipRBACRoleBindingRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsRequest_descriptor = + getDescriptor().getMessageType(31); + internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsResponse_descriptor = + getDescriptor().getMessageType(32); + internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ListMembershipRBACRoleBindingsResponse_descriptor, + new java.lang.String[] { + "Rbacrolebindings", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLRequest_descriptor = + getDescriptor().getMessageType(33); + internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLRequest_descriptor, + new java.lang.String[] { + "Parent", "RbacrolebindingId", "Rbacrolebinding", + }); + internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLResponse_descriptor = + getDescriptor().getMessageType(34); + internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_GenerateMembershipRBACRoleBindingYAMLResponse_descriptor, + new java.lang.String[] { + "RoleBindingsYaml", + }); internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_descriptor = - getDescriptor().getMessageType(1); + getDescriptor().getMessageType(35); internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_descriptor, @@ -295,15 +1074,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Resources", "NextPageToken", "Unreachable", }); internal_static_google_cloud_gkehub_v1_GetMembershipRequest_descriptor = - getDescriptor().getMessageType(2); + getDescriptor().getMessageType(36); internal_static_google_cloud_gkehub_v1_GetMembershipRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_GetMembershipRequest_descriptor, new java.lang.String[] { "Name", }); + internal_static_google_cloud_gkehub_v1_ListBoundMembershipsRequest_descriptor = + getDescriptor().getMessageType(37); + internal_static_google_cloud_gkehub_v1_ListBoundMembershipsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ListBoundMembershipsRequest_descriptor, + new java.lang.String[] { + "ScopeName", "Filter", "PageSize", "PageToken", + }); + internal_static_google_cloud_gkehub_v1_ListBoundMembershipsResponse_descriptor = + getDescriptor().getMessageType(38); + internal_static_google_cloud_gkehub_v1_ListBoundMembershipsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ListBoundMembershipsResponse_descriptor, + new java.lang.String[] { + "Memberships", "Unreachable", "NextPageToken", + }); internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_descriptor = - getDescriptor().getMessageType(3); + getDescriptor().getMessageType(39); internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_descriptor, @@ -311,7 +1106,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "MembershipId", "Resource", "RequestId", }); internal_static_google_cloud_gkehub_v1_DeleteMembershipRequest_descriptor = - getDescriptor().getMessageType(4); + getDescriptor().getMessageType(40); internal_static_google_cloud_gkehub_v1_DeleteMembershipRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_DeleteMembershipRequest_descriptor, @@ -319,7 +1114,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "Force", }); internal_static_google_cloud_gkehub_v1_UpdateMembershipRequest_descriptor = - getDescriptor().getMessageType(5); + getDescriptor().getMessageType(41); internal_static_google_cloud_gkehub_v1_UpdateMembershipRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_UpdateMembershipRequest_descriptor, @@ -327,7 +1122,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "UpdateMask", "Resource", "RequestId", }); internal_static_google_cloud_gkehub_v1_GenerateConnectManifestRequest_descriptor = - getDescriptor().getMessageType(6); + getDescriptor().getMessageType(42); internal_static_google_cloud_gkehub_v1_GenerateConnectManifestRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_GenerateConnectManifestRequest_descriptor, @@ -341,7 +1136,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ImagePullSecretContent", }); internal_static_google_cloud_gkehub_v1_GenerateConnectManifestResponse_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(43); internal_static_google_cloud_gkehub_v1_GenerateConnectManifestResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_GenerateConnectManifestResponse_descriptor, @@ -349,14 +1144,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Manifest", }); internal_static_google_cloud_gkehub_v1_ConnectAgentResource_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(44); internal_static_google_cloud_gkehub_v1_ConnectAgentResource_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_ConnectAgentResource_descriptor, new java.lang.String[] { "Type", "Manifest", }); - internal_static_google_cloud_gkehub_v1_TypeMeta_descriptor = getDescriptor().getMessageType(9); + internal_static_google_cloud_gkehub_v1_TypeMeta_descriptor = getDescriptor().getMessageType(45); internal_static_google_cloud_gkehub_v1_TypeMeta_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_TypeMeta_descriptor, @@ -364,15 +1159,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Kind", "ApiVersion", }); internal_static_google_cloud_gkehub_v1_ListFeaturesRequest_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(46); internal_static_google_cloud_gkehub_v1_ListFeaturesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_ListFeaturesRequest_descriptor, new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "ReturnPartialSuccess", }); internal_static_google_cloud_gkehub_v1_ListFeaturesResponse_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(47); internal_static_google_cloud_gkehub_v1_ListFeaturesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_ListFeaturesResponse_descriptor, @@ -380,15 +1175,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Resources", "NextPageToken", }); internal_static_google_cloud_gkehub_v1_GetFeatureRequest_descriptor = - getDescriptor().getMessageType(12); + getDescriptor().getMessageType(48); internal_static_google_cloud_gkehub_v1_GetFeatureRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_GetFeatureRequest_descriptor, new java.lang.String[] { - "Name", + "Name", "ReturnPartialSuccess", }); internal_static_google_cloud_gkehub_v1_CreateFeatureRequest_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(49); internal_static_google_cloud_gkehub_v1_CreateFeatureRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_CreateFeatureRequest_descriptor, @@ -396,7 +1191,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "FeatureId", "Resource", "RequestId", }); internal_static_google_cloud_gkehub_v1_DeleteFeatureRequest_descriptor = - getDescriptor().getMessageType(14); + getDescriptor().getMessageType(50); internal_static_google_cloud_gkehub_v1_DeleteFeatureRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_DeleteFeatureRequest_descriptor, @@ -404,15 +1199,63 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Force", "RequestId", }); internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_descriptor = - getDescriptor().getMessageType(15); + getDescriptor().getMessageType(51); internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_descriptor, new java.lang.String[] { "Name", "UpdateMask", "Resource", "RequestId", }); + internal_static_google_cloud_gkehub_v1_CreateFleetRequest_descriptor = + getDescriptor().getMessageType(52); + internal_static_google_cloud_gkehub_v1_CreateFleetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_CreateFleetRequest_descriptor, + new java.lang.String[] { + "Parent", "Fleet", + }); + internal_static_google_cloud_gkehub_v1_GetFleetRequest_descriptor = + getDescriptor().getMessageType(53); + internal_static_google_cloud_gkehub_v1_GetFleetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_GetFleetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkehub_v1_UpdateFleetRequest_descriptor = + getDescriptor().getMessageType(54); + internal_static_google_cloud_gkehub_v1_UpdateFleetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_UpdateFleetRequest_descriptor, + new java.lang.String[] { + "Fleet", "UpdateMask", + }); + internal_static_google_cloud_gkehub_v1_DeleteFleetRequest_descriptor = + getDescriptor().getMessageType(55); + internal_static_google_cloud_gkehub_v1_DeleteFleetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_DeleteFleetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkehub_v1_ListFleetsRequest_descriptor = + getDescriptor().getMessageType(56); + internal_static_google_cloud_gkehub_v1_ListFleetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ListFleetsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", + }); + internal_static_google_cloud_gkehub_v1_ListFleetsResponse_descriptor = + getDescriptor().getMessageType(57); + internal_static_google_cloud_gkehub_v1_ListFleetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1_ListFleetsResponse_descriptor, + new java.lang.String[] { + "Fleets", "NextPageToken", + }); internal_static_google_cloud_gkehub_v1_OperationMetadata_descriptor = - getDescriptor().getMessageType(16); + getDescriptor().getMessageType(58); internal_static_google_cloud_gkehub_v1_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_gkehub_v1_OperationMetadata_descriptor, @@ -431,6 +1274,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.gkehub.v1.FeatureProto.getDescriptor(); + com.google.cloud.gkehub.v1.FleetProto.getDescriptor(); com.google.cloud.gkehub.v1.MembershipProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequest.java index 23f62f678833..5f53a273216a 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequest.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequest.java @@ -255,7 +255,7 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder() { * * *
            -   * Optional. A request ID to identify requests. Specify a unique request ID
            +   * A request ID to identify requests. Specify a unique request ID
                * so that if you must retry your request, the server will know to ignore
                * the request if it has already been completed. The server will guarantee
                * that for at least 60 minutes after the first request.
            @@ -291,7 +291,7 @@ public java.lang.String getRequestId() {
                *
                *
                * 
            -   * Optional. A request ID to identify requests. Specify a unique request ID
            +   * A request ID to identify requests. Specify a unique request ID
                * so that if you must retry your request, the server will know to ignore
                * the request if it has already been completed. The server will guarantee
                * that for at least 60 minutes after the first request.
            @@ -1308,7 +1308,7 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder() {
                  *
                  *
                  * 
            -     * Optional. A request ID to identify requests. Specify a unique request ID
            +     * A request ID to identify requests. Specify a unique request ID
                  * so that if you must retry your request, the server will know to ignore
                  * the request if it has already been completed. The server will guarantee
                  * that for at least 60 minutes after the first request.
            @@ -1343,7 +1343,7 @@ public java.lang.String getRequestId() {
                  *
                  *
                  * 
            -     * Optional. A request ID to identify requests. Specify a unique request ID
            +     * A request ID to identify requests. Specify a unique request ID
                  * so that if you must retry your request, the server will know to ignore
                  * the request if it has already been completed. The server will guarantee
                  * that for at least 60 minutes after the first request.
            @@ -1378,7 +1378,7 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
                  *
                  *
                  * 
            -     * Optional. A request ID to identify requests. Specify a unique request ID
            +     * A request ID to identify requests. Specify a unique request ID
                  * so that if you must retry your request, the server will know to ignore
                  * the request if it has already been completed. The server will guarantee
                  * that for at least 60 minutes after the first request.
            @@ -1412,7 +1412,7 @@ public Builder setRequestId(java.lang.String value) {
                  *
                  *
                  * 
            -     * Optional. A request ID to identify requests. Specify a unique request ID
            +     * A request ID to identify requests. Specify a unique request ID
                  * so that if you must retry your request, the server will know to ignore
                  * the request if it has already been completed. The server will guarantee
                  * that for at least 60 minutes after the first request.
            @@ -1442,7 +1442,7 @@ public Builder clearRequestId() {
                  *
                  *
                  * 
            -     * Optional. A request ID to identify requests. Specify a unique request ID
            +     * A request ID to identify requests. Specify a unique request ID
                  * so that if you must retry your request, the server will know to ignore
                  * the request if it has already been completed. The server will guarantee
                  * that for at least 60 minutes after the first request.
            diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequestOrBuilder.java
            index cb9809c715f3..9b515296d2e1 100644
            --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequestOrBuilder.java
            +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequestOrBuilder.java
            @@ -153,7 +153,7 @@ public interface UpdateFeatureRequestOrBuilder
                *
                *
                * 
            -   * Optional. A request ID to identify requests. Specify a unique request ID
            +   * A request ID to identify requests. Specify a unique request ID
                * so that if you must retry your request, the server will know to ignore
                * the request if it has already been completed. The server will guarantee
                * that for at least 60 minutes after the first request.
            @@ -178,7 +178,7 @@ public interface UpdateFeatureRequestOrBuilder
                *
                *
                * 
            -   * Optional. A request ID to identify requests. Specify a unique request ID
            +   * A request ID to identify requests. Specify a unique request ID
                * so that if you must retry your request, the server will know to ignore
                * the request if it has already been completed. The server will guarantee
                * that for at least 60 minutes after the first request.
            diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFleetRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFleetRequest.java
            new file mode 100644
            index 000000000000..f3612c313ebf
            --- /dev/null
            +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFleetRequest.java
            @@ -0,0 +1,1022 @@
            +/*
            + * Copyright 2026 Google LLC
            + *
            + * Licensed under the Apache License, Version 2.0 (the "License");
            + * you may not use this file except in compliance with the License.
            + * You may obtain a copy of the License at
            + *
            + *     https://www.apache.org/licenses/LICENSE-2.0
            + *
            + * Unless required by applicable law or agreed to in writing, software
            + * distributed under the License is distributed on an "AS IS" BASIS,
            + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            + * See the License for the specific language governing permissions and
            + * limitations under the License.
            + */
            +// Generated by the protocol buffer compiler.  DO NOT EDIT!
            +// NO CHECKED-IN PROTOBUF GENCODE
            +// source: google/cloud/gkehub/v1/service.proto
            +// Protobuf Java Version: 4.33.2
            +
            +package com.google.cloud.gkehub.v1;
            +
            +/**
            + *
            + *
            + * 
            + * Request message for the `GkeHub.UpdateFleet` method.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.UpdateFleetRequest} + */ +@com.google.protobuf.Generated +public final class UpdateFleetRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.UpdateFleetRequest) + UpdateFleetRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateFleetRequest"); + } + + // Use UpdateFleetRequest.newBuilder() to construct. + private UpdateFleetRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateFleetRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateFleetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateFleetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.UpdateFleetRequest.class, + com.google.cloud.gkehub.v1.UpdateFleetRequest.Builder.class); + } + + private int bitField0_; + public static final int FLEET_FIELD_NUMBER = 1; + private com.google.cloud.gkehub.v1.Fleet fleet_; + + /** + * + * + *
            +   * Required. The Fleet to update.
            +   *
            +   * The `name` field of the Fleet object identifies which fleet will be
            +   * updated.
            +   * 
            + * + * .google.cloud.gkehub.v1.Fleet fleet = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the fleet field is set. + */ + @java.lang.Override + public boolean hasFleet() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. The Fleet to update.
            +   *
            +   * The `name` field of the Fleet object identifies which fleet will be
            +   * updated.
            +   * 
            + * + * .google.cloud.gkehub.v1.Fleet fleet = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The fleet. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.Fleet getFleet() { + return fleet_ == null ? com.google.cloud.gkehub.v1.Fleet.getDefaultInstance() : fleet_; + } + + /** + * + * + *
            +   * Required. The Fleet to update.
            +   *
            +   * The `name` field of the Fleet object identifies which fleet will be
            +   * updated.
            +   * 
            + * + * .google.cloud.gkehub.v1.Fleet fleet = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.FleetOrBuilder getFleetOrBuilder() { + return fleet_ == null ? com.google.cloud.gkehub.v1.Fleet.getDefaultInstance() : fleet_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
            +   * Required. The fields to be updated;
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Required. The fields to be updated;
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
            +   * Required. The fields to be updated;
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getFleet()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFleet()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.UpdateFleetRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.UpdateFleetRequest other = + (com.google.cloud.gkehub.v1.UpdateFleetRequest) obj; + + if (hasFleet() != other.hasFleet()) return false; + if (hasFleet()) { + if (!getFleet().equals(other.getFleet())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasFleet()) { + hash = (37 * hash) + FLEET_FIELD_NUMBER; + hash = (53 * hash) + getFleet().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.UpdateFleetRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateFleetRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateFleetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateFleetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateFleetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateFleetRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateFleetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateFleetRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateFleetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateFleetRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateFleetRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateFleetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkehub.v1.UpdateFleetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for the `GkeHub.UpdateFleet` method.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.UpdateFleetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.UpdateFleetRequest) + com.google.cloud.gkehub.v1.UpdateFleetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateFleetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateFleetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.UpdateFleetRequest.class, + com.google.cloud.gkehub.v1.UpdateFleetRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.UpdateFleetRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetFleetFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fleet_ = null; + if (fleetBuilder_ != null) { + fleetBuilder_.dispose(); + fleetBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateFleetRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateFleetRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.UpdateFleetRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateFleetRequest build() { + com.google.cloud.gkehub.v1.UpdateFleetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateFleetRequest buildPartial() { + com.google.cloud.gkehub.v1.UpdateFleetRequest result = + new com.google.cloud.gkehub.v1.UpdateFleetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.UpdateFleetRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fleet_ = fleetBuilder_ == null ? fleet_ : fleetBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.UpdateFleetRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.UpdateFleetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.UpdateFleetRequest other) { + if (other == com.google.cloud.gkehub.v1.UpdateFleetRequest.getDefaultInstance()) return this; + if (other.hasFleet()) { + mergeFleet(other.getFleet()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(internalGetFleetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.gkehub.v1.Fleet fleet_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Fleet, + com.google.cloud.gkehub.v1.Fleet.Builder, + com.google.cloud.gkehub.v1.FleetOrBuilder> + fleetBuilder_; + + /** + * + * + *
            +     * Required. The Fleet to update.
            +     *
            +     * The `name` field of the Fleet object identifies which fleet will be
            +     * updated.
            +     * 
            + * + * .google.cloud.gkehub.v1.Fleet fleet = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the fleet field is set. + */ + public boolean hasFleet() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Required. The Fleet to update.
            +     *
            +     * The `name` field of the Fleet object identifies which fleet will be
            +     * updated.
            +     * 
            + * + * .google.cloud.gkehub.v1.Fleet fleet = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The fleet. + */ + public com.google.cloud.gkehub.v1.Fleet getFleet() { + if (fleetBuilder_ == null) { + return fleet_ == null ? com.google.cloud.gkehub.v1.Fleet.getDefaultInstance() : fleet_; + } else { + return fleetBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The Fleet to update.
            +     *
            +     * The `name` field of the Fleet object identifies which fleet will be
            +     * updated.
            +     * 
            + * + * .google.cloud.gkehub.v1.Fleet fleet = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFleet(com.google.cloud.gkehub.v1.Fleet value) { + if (fleetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fleet_ = value; + } else { + fleetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Fleet to update.
            +     *
            +     * The `name` field of the Fleet object identifies which fleet will be
            +     * updated.
            +     * 
            + * + * .google.cloud.gkehub.v1.Fleet fleet = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFleet(com.google.cloud.gkehub.v1.Fleet.Builder builderForValue) { + if (fleetBuilder_ == null) { + fleet_ = builderForValue.build(); + } else { + fleetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Fleet to update.
            +     *
            +     * The `name` field of the Fleet object identifies which fleet will be
            +     * updated.
            +     * 
            + * + * .google.cloud.gkehub.v1.Fleet fleet = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFleet(com.google.cloud.gkehub.v1.Fleet value) { + if (fleetBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && fleet_ != null + && fleet_ != com.google.cloud.gkehub.v1.Fleet.getDefaultInstance()) { + getFleetBuilder().mergeFrom(value); + } else { + fleet_ = value; + } + } else { + fleetBuilder_.mergeFrom(value); + } + if (fleet_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The Fleet to update.
            +     *
            +     * The `name` field of the Fleet object identifies which fleet will be
            +     * updated.
            +     * 
            + * + * .google.cloud.gkehub.v1.Fleet fleet = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFleet() { + bitField0_ = (bitField0_ & ~0x00000001); + fleet_ = null; + if (fleetBuilder_ != null) { + fleetBuilder_.dispose(); + fleetBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Fleet to update.
            +     *
            +     * The `name` field of the Fleet object identifies which fleet will be
            +     * updated.
            +     * 
            + * + * .google.cloud.gkehub.v1.Fleet fleet = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.Fleet.Builder getFleetBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetFleetFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The Fleet to update.
            +     *
            +     * The `name` field of the Fleet object identifies which fleet will be
            +     * updated.
            +     * 
            + * + * .google.cloud.gkehub.v1.Fleet fleet = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.FleetOrBuilder getFleetOrBuilder() { + if (fleetBuilder_ != null) { + return fleetBuilder_.getMessageOrBuilder(); + } else { + return fleet_ == null ? com.google.cloud.gkehub.v1.Fleet.getDefaultInstance() : fleet_; + } + } + + /** + * + * + *
            +     * Required. The Fleet to update.
            +     *
            +     * The `name` field of the Fleet object identifies which fleet will be
            +     * updated.
            +     * 
            + * + * .google.cloud.gkehub.v1.Fleet fleet = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Fleet, + com.google.cloud.gkehub.v1.Fleet.Builder, + com.google.cloud.gkehub.v1.FleetOrBuilder> + internalGetFleetFieldBuilder() { + if (fleetBuilder_ == null) { + fleetBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Fleet, + com.google.cloud.gkehub.v1.Fleet.Builder, + com.google.cloud.gkehub.v1.FleetOrBuilder>( + getFleet(), getParentForChildren(), isClean()); + fleet_ = null; + } + return fleetBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
            +     * Required. The fields to be updated;
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Required. The fields to be updated;
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The fields to be updated;
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The fields to be updated;
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The fields to be updated;
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The fields to be updated;
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The fields to be updated;
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The fields to be updated;
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
            +     * Required. The fields to be updated;
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.UpdateFleetRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.UpdateFleetRequest) + private static final com.google.cloud.gkehub.v1.UpdateFleetRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.UpdateFleetRequest(); + } + + public static com.google.cloud.gkehub.v1.UpdateFleetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFleetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateFleetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFleetRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFleetRequestOrBuilder.java new file mode 100644 index 000000000000..07b9c690797f --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFleetRequestOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface UpdateFleetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.UpdateFleetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The Fleet to update.
            +   *
            +   * The `name` field of the Fleet object identifies which fleet will be
            +   * updated.
            +   * 
            + * + * .google.cloud.gkehub.v1.Fleet fleet = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the fleet field is set. + */ + boolean hasFleet(); + + /** + * + * + *
            +   * Required. The Fleet to update.
            +   *
            +   * The `name` field of the Fleet object identifies which fleet will be
            +   * updated.
            +   * 
            + * + * .google.cloud.gkehub.v1.Fleet fleet = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The fleet. + */ + com.google.cloud.gkehub.v1.Fleet getFleet(); + + /** + * + * + *
            +   * Required. The Fleet to update.
            +   *
            +   * The `name` field of the Fleet object identifies which fleet will be
            +   * updated.
            +   * 
            + * + * .google.cloud.gkehub.v1.Fleet fleet = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.gkehub.v1.FleetOrBuilder getFleetOrBuilder(); + + /** + * + * + *
            +   * Required. The fields to be updated;
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
            +   * Required. The fields to be updated;
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
            +   * Required. The fields to be updated;
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipBindingRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipBindingRequest.java new file mode 100644 index 000000000000..81b73a368bd0 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipBindingRequest.java @@ -0,0 +1,1017 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Request to update a MembershipBinding.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.UpdateMembershipBindingRequest} + */ +@com.google.protobuf.Generated +public final class UpdateMembershipBindingRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.UpdateMembershipBindingRequest) + UpdateMembershipBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateMembershipBindingRequest"); + } + + // Use UpdateMembershipBindingRequest.newBuilder() to construct. + private UpdateMembershipBindingRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateMembershipBindingRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateMembershipBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateMembershipBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest.class, + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest.Builder.class); + } + + private int bitField0_; + public static final int MEMBERSHIP_BINDING_FIELD_NUMBER = 1; + private com.google.cloud.gkehub.v1.MembershipBinding membershipBinding_; + + /** + * + * + *
            +   * Required. The MembershipBinding object with fields updated.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the membershipBinding field is set. + */ + @java.lang.Override + public boolean hasMembershipBinding() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. The MembershipBinding object with fields updated.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The membershipBinding. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipBinding getMembershipBinding() { + return membershipBinding_ == null + ? com.google.cloud.gkehub.v1.MembershipBinding.getDefaultInstance() + : membershipBinding_; + } + + /** + * + * + *
            +   * Required. The MembershipBinding object with fields updated.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipBindingOrBuilder getMembershipBindingOrBuilder() { + return membershipBinding_ == null + ? com.google.cloud.gkehub.v1.MembershipBinding.getDefaultInstance() + : membershipBinding_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
            +   * Required. The fields to be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Required. The fields to be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
            +   * Required. The fields to be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getMembershipBinding()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMembershipBinding()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest other = + (com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest) obj; + + if (hasMembershipBinding() != other.hasMembershipBinding()) return false; + if (hasMembershipBinding()) { + if (!getMembershipBinding().equals(other.getMembershipBinding())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMembershipBinding()) { + hash = (37 * hash) + MEMBERSHIP_BINDING_FIELD_NUMBER; + hash = (53 * hash) + getMembershipBinding().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request to update a MembershipBinding.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.UpdateMembershipBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.UpdateMembershipBindingRequest) + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateMembershipBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateMembershipBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest.class, + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMembershipBindingFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + membershipBinding_ = null; + if (membershipBindingBuilder_ != null) { + membershipBindingBuilder_.dispose(); + membershipBindingBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateMembershipBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest build() { + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest buildPartial() { + com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest result = + new com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.membershipBinding_ = + membershipBindingBuilder_ == null + ? membershipBinding_ + : membershipBindingBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest other) { + if (other == com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest.getDefaultInstance()) + return this; + if (other.hasMembershipBinding()) { + mergeMembershipBinding(other.getMembershipBinding()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetMembershipBindingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.gkehub.v1.MembershipBinding membershipBinding_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.MembershipBinding, + com.google.cloud.gkehub.v1.MembershipBinding.Builder, + com.google.cloud.gkehub.v1.MembershipBindingOrBuilder> + membershipBindingBuilder_; + + /** + * + * + *
            +     * Required. The MembershipBinding object with fields updated.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the membershipBinding field is set. + */ + public boolean hasMembershipBinding() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Required. The MembershipBinding object with fields updated.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The membershipBinding. + */ + public com.google.cloud.gkehub.v1.MembershipBinding getMembershipBinding() { + if (membershipBindingBuilder_ == null) { + return membershipBinding_ == null + ? com.google.cloud.gkehub.v1.MembershipBinding.getDefaultInstance() + : membershipBinding_; + } else { + return membershipBindingBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The MembershipBinding object with fields updated.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMembershipBinding(com.google.cloud.gkehub.v1.MembershipBinding value) { + if (membershipBindingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + membershipBinding_ = value; + } else { + membershipBindingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The MembershipBinding object with fields updated.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMembershipBinding( + com.google.cloud.gkehub.v1.MembershipBinding.Builder builderForValue) { + if (membershipBindingBuilder_ == null) { + membershipBinding_ = builderForValue.build(); + } else { + membershipBindingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The MembershipBinding object with fields updated.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMembershipBinding(com.google.cloud.gkehub.v1.MembershipBinding value) { + if (membershipBindingBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && membershipBinding_ != null + && membershipBinding_ + != com.google.cloud.gkehub.v1.MembershipBinding.getDefaultInstance()) { + getMembershipBindingBuilder().mergeFrom(value); + } else { + membershipBinding_ = value; + } + } else { + membershipBindingBuilder_.mergeFrom(value); + } + if (membershipBinding_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The MembershipBinding object with fields updated.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMembershipBinding() { + bitField0_ = (bitField0_ & ~0x00000001); + membershipBinding_ = null; + if (membershipBindingBuilder_ != null) { + membershipBindingBuilder_.dispose(); + membershipBindingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The MembershipBinding object with fields updated.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.MembershipBinding.Builder getMembershipBindingBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetMembershipBindingFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The MembershipBinding object with fields updated.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.MembershipBindingOrBuilder getMembershipBindingOrBuilder() { + if (membershipBindingBuilder_ != null) { + return membershipBindingBuilder_.getMessageOrBuilder(); + } else { + return membershipBinding_ == null + ? com.google.cloud.gkehub.v1.MembershipBinding.getDefaultInstance() + : membershipBinding_; + } + } + + /** + * + * + *
            +     * Required. The MembershipBinding object with fields updated.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.MembershipBinding, + com.google.cloud.gkehub.v1.MembershipBinding.Builder, + com.google.cloud.gkehub.v1.MembershipBindingOrBuilder> + internalGetMembershipBindingFieldBuilder() { + if (membershipBindingBuilder_ == null) { + membershipBindingBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.MembershipBinding, + com.google.cloud.gkehub.v1.MembershipBinding.Builder, + com.google.cloud.gkehub.v1.MembershipBindingOrBuilder>( + getMembershipBinding(), getParentForChildren(), isClean()); + membershipBinding_ = null; + } + return membershipBindingBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.UpdateMembershipBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.UpdateMembershipBindingRequest) + private static final com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest(); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateMembershipBindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipBindingRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipBindingRequestOrBuilder.java new file mode 100644 index 000000000000..211215a7c02c --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipBindingRequestOrBuilder.java @@ -0,0 +1,111 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface UpdateMembershipBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.UpdateMembershipBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The MembershipBinding object with fields updated.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the membershipBinding field is set. + */ + boolean hasMembershipBinding(); + + /** + * + * + *
            +   * Required. The MembershipBinding object with fields updated.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The membershipBinding. + */ + com.google.cloud.gkehub.v1.MembershipBinding getMembershipBinding(); + + /** + * + * + *
            +   * Required. The MembershipBinding object with fields updated.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.MembershipBinding membership_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gkehub.v1.MembershipBindingOrBuilder getMembershipBindingOrBuilder(); + + /** + * + * + *
            +   * Required. The fields to be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
            +   * Required. The fields to be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
            +   * Required. The fields to be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRBACRoleBindingRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRBACRoleBindingRequest.java new file mode 100644 index 000000000000..f5182b6a0d87 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRBACRoleBindingRequest.java @@ -0,0 +1,1038 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Request to update a membership rbacrolebinding.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest} + */ +@com.google.protobuf.Generated +public final class UpdateMembershipRBACRoleBindingRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest) + UpdateMembershipRBACRoleBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateMembershipRBACRoleBindingRequest"); + } + + // Use UpdateMembershipRBACRoleBindingRequest.newBuilder() to construct. + private UpdateMembershipRBACRoleBindingRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateMembershipRBACRoleBindingRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateMembershipRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateMembershipRBACRoleBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest.class, + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest.Builder.class); + } + + private int bitField0_; + public static final int RBACROLEBINDING_FIELD_NUMBER = 1; + private com.google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding_; + + /** + * + * + *
            +   * Required. A rbacrolebinding with fields updated. The 'name' field in this
            +   * rbacrolebinding is used to identify the resource to update.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rbacrolebinding field is set. + */ + @java.lang.Override + public boolean hasRbacrolebinding() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. A rbacrolebinding with fields updated. The 'name' field in this
            +   * rbacrolebinding is used to identify the resource to update.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rbacrolebinding. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebinding() { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } + + /** + * + * + *
            +   * Required. A rbacrolebinding with fields updated. The 'name' field in this
            +   * rbacrolebinding is used to identify the resource to update.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingOrBuilder() { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
            +   * Required. The fields to be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Required. The fields to be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
            +   * Required. The fields to be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getRbacrolebinding()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRbacrolebinding()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest other = + (com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest) obj; + + if (hasRbacrolebinding() != other.hasRbacrolebinding()) return false; + if (hasRbacrolebinding()) { + if (!getRbacrolebinding().equals(other.getRbacrolebinding())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRbacrolebinding()) { + hash = (37 * hash) + RBACROLEBINDING_FIELD_NUMBER; + hash = (53 * hash) + getRbacrolebinding().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request to update a membership rbacrolebinding.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest) + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateMembershipRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateMembershipRBACRoleBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest.class, + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest.Builder.class); + } + + // Construct using + // com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRbacrolebindingFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + rbacrolebinding_ = null; + if (rbacrolebindingBuilder_ != null) { + rbacrolebindingBuilder_.dispose(); + rbacrolebindingBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateMembershipRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest + getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest build() { + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest buildPartial() { + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest result = + new com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.rbacrolebinding_ = + rbacrolebindingBuilder_ == null ? rbacrolebinding_ : rbacrolebindingBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest other) { + if (other + == com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest.getDefaultInstance()) + return this; + if (other.hasRbacrolebinding()) { + mergeRbacrolebinding(other.getRbacrolebinding()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetRbacrolebindingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder> + rbacrolebindingBuilder_; + + /** + * + * + *
            +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
            +     * rbacrolebinding is used to identify the resource to update.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rbacrolebinding field is set. + */ + public boolean hasRbacrolebinding() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
            +     * rbacrolebinding is used to identify the resource to update.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rbacrolebinding. + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebinding() { + if (rbacrolebindingBuilder_ == null) { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } else { + return rbacrolebindingBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
            +     * rbacrolebinding is used to identify the resource to update.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRbacrolebinding(com.google.cloud.gkehub.v1.RBACRoleBinding value) { + if (rbacrolebindingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rbacrolebinding_ = value; + } else { + rbacrolebindingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
            +     * rbacrolebinding is used to identify the resource to update.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRbacrolebinding( + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder builderForValue) { + if (rbacrolebindingBuilder_ == null) { + rbacrolebinding_ = builderForValue.build(); + } else { + rbacrolebindingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
            +     * rbacrolebinding is used to identify the resource to update.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRbacrolebinding(com.google.cloud.gkehub.v1.RBACRoleBinding value) { + if (rbacrolebindingBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && rbacrolebinding_ != null + && rbacrolebinding_ + != com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance()) { + getRbacrolebindingBuilder().mergeFrom(value); + } else { + rbacrolebinding_ = value; + } + } else { + rbacrolebindingBuilder_.mergeFrom(value); + } + if (rbacrolebinding_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
            +     * rbacrolebinding is used to identify the resource to update.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRbacrolebinding() { + bitField0_ = (bitField0_ & ~0x00000001); + rbacrolebinding_ = null; + if (rbacrolebindingBuilder_ != null) { + rbacrolebindingBuilder_.dispose(); + rbacrolebindingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
            +     * rbacrolebinding is used to identify the resource to update.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding.Builder getRbacrolebindingBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetRbacrolebindingFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
            +     * rbacrolebinding is used to identify the resource to update.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingOrBuilder() { + if (rbacrolebindingBuilder_ != null) { + return rbacrolebindingBuilder_.getMessageOrBuilder(); + } else { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } + } + + /** + * + * + *
            +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
            +     * rbacrolebinding is used to identify the resource to update.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder> + internalGetRbacrolebindingFieldBuilder() { + if (rbacrolebindingBuilder_ == null) { + rbacrolebindingBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder>( + getRbacrolebinding(), getParentForChildren(), isClean()); + rbacrolebinding_ = null; + } + return rbacrolebindingBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest) + private static final com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest(); + } + + public static com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateMembershipRBACRoleBindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRBACRoleBindingRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRBACRoleBindingRequestOrBuilder.java new file mode 100644 index 000000000000..58a038ee44ae --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRBACRoleBindingRequestOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface UpdateMembershipRBACRoleBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. A rbacrolebinding with fields updated. The 'name' field in this
            +   * rbacrolebinding is used to identify the resource to update.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rbacrolebinding field is set. + */ + boolean hasRbacrolebinding(); + + /** + * + * + *
            +   * Required. A rbacrolebinding with fields updated. The 'name' field in this
            +   * rbacrolebinding is used to identify the resource to update.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rbacrolebinding. + */ + com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebinding(); + + /** + * + * + *
            +   * Required. A rbacrolebinding with fields updated. The 'name' field in this
            +   * rbacrolebinding is used to identify the resource to update.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingOrBuilder(); + + /** + * + * + *
            +   * Required. The fields to be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
            +   * Required. The fields to be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
            +   * Required. The fields to be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeNamespaceRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeNamespaceRequest.java new file mode 100644 index 000000000000..13e7ba5d8fd5 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeNamespaceRequest.java @@ -0,0 +1,1037 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Request to update a fleet namespace.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.UpdateScopeNamespaceRequest} + */ +@com.google.protobuf.Generated +public final class UpdateScopeNamespaceRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.UpdateScopeNamespaceRequest) + UpdateScopeNamespaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateScopeNamespaceRequest"); + } + + // Use UpdateScopeNamespaceRequest.newBuilder() to construct. + private UpdateScopeNamespaceRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateScopeNamespaceRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateScopeNamespaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateScopeNamespaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest.class, + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest.Builder.class); + } + + private int bitField0_; + public static final int SCOPE_NAMESPACE_FIELD_NUMBER = 1; + private com.google.cloud.gkehub.v1.Namespace scopeNamespace_; + + /** + * + * + *
            +   * Required. A namespace with fields updated. The 'name' field in this
            +   * namespace is used to identify the resource to update. Given 'updated'
            +   * prefix to follow go/proto-best-practices-checkers#keyword_conflict
            +   * 
            + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the scopeNamespace field is set. + */ + @java.lang.Override + public boolean hasScopeNamespace() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. A namespace with fields updated. The 'name' field in this
            +   * namespace is used to identify the resource to update. Given 'updated'
            +   * prefix to follow go/proto-best-practices-checkers#keyword_conflict
            +   * 
            + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The scopeNamespace. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.Namespace getScopeNamespace() { + return scopeNamespace_ == null + ? com.google.cloud.gkehub.v1.Namespace.getDefaultInstance() + : scopeNamespace_; + } + + /** + * + * + *
            +   * Required. A namespace with fields updated. The 'name' field in this
            +   * namespace is used to identify the resource to update. Given 'updated'
            +   * prefix to follow go/proto-best-practices-checkers#keyword_conflict
            +   * 
            + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.NamespaceOrBuilder getScopeNamespaceOrBuilder() { + return scopeNamespace_ == null + ? com.google.cloud.gkehub.v1.Namespace.getDefaultInstance() + : scopeNamespace_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
            +   * Required. The fields to be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Required. The fields to be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
            +   * Required. The fields to be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getScopeNamespace()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getScopeNamespace()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest other = + (com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest) obj; + + if (hasScopeNamespace() != other.hasScopeNamespace()) return false; + if (hasScopeNamespace()) { + if (!getScopeNamespace().equals(other.getScopeNamespace())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasScopeNamespace()) { + hash = (37 * hash) + SCOPE_NAMESPACE_FIELD_NUMBER; + hash = (53 * hash) + getScopeNamespace().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request to update a fleet namespace.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.UpdateScopeNamespaceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.UpdateScopeNamespaceRequest) + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateScopeNamespaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateScopeNamespaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest.class, + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetScopeNamespaceFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + scopeNamespace_ = null; + if (scopeNamespaceBuilder_ != null) { + scopeNamespaceBuilder_.dispose(); + scopeNamespaceBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateScopeNamespaceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest build() { + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest buildPartial() { + com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest result = + new com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.scopeNamespace_ = + scopeNamespaceBuilder_ == null ? scopeNamespace_ : scopeNamespaceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest other) { + if (other == com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest.getDefaultInstance()) + return this; + if (other.hasScopeNamespace()) { + mergeScopeNamespace(other.getScopeNamespace()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetScopeNamespaceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.gkehub.v1.Namespace scopeNamespace_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Namespace, + com.google.cloud.gkehub.v1.Namespace.Builder, + com.google.cloud.gkehub.v1.NamespaceOrBuilder> + scopeNamespaceBuilder_; + + /** + * + * + *
            +     * Required. A namespace with fields updated. The 'name' field in this
            +     * namespace is used to identify the resource to update. Given 'updated'
            +     * prefix to follow go/proto-best-practices-checkers#keyword_conflict
            +     * 
            + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the scopeNamespace field is set. + */ + public boolean hasScopeNamespace() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Required. A namespace with fields updated. The 'name' field in this
            +     * namespace is used to identify the resource to update. Given 'updated'
            +     * prefix to follow go/proto-best-practices-checkers#keyword_conflict
            +     * 
            + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The scopeNamespace. + */ + public com.google.cloud.gkehub.v1.Namespace getScopeNamespace() { + if (scopeNamespaceBuilder_ == null) { + return scopeNamespace_ == null + ? com.google.cloud.gkehub.v1.Namespace.getDefaultInstance() + : scopeNamespace_; + } else { + return scopeNamespaceBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. A namespace with fields updated. The 'name' field in this
            +     * namespace is used to identify the resource to update. Given 'updated'
            +     * prefix to follow go/proto-best-practices-checkers#keyword_conflict
            +     * 
            + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setScopeNamespace(com.google.cloud.gkehub.v1.Namespace value) { + if (scopeNamespaceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scopeNamespace_ = value; + } else { + scopeNamespaceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. A namespace with fields updated. The 'name' field in this
            +     * namespace is used to identify the resource to update. Given 'updated'
            +     * prefix to follow go/proto-best-practices-checkers#keyword_conflict
            +     * 
            + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setScopeNamespace(com.google.cloud.gkehub.v1.Namespace.Builder builderForValue) { + if (scopeNamespaceBuilder_ == null) { + scopeNamespace_ = builderForValue.build(); + } else { + scopeNamespaceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. A namespace with fields updated. The 'name' field in this
            +     * namespace is used to identify the resource to update. Given 'updated'
            +     * prefix to follow go/proto-best-practices-checkers#keyword_conflict
            +     * 
            + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeScopeNamespace(com.google.cloud.gkehub.v1.Namespace value) { + if (scopeNamespaceBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && scopeNamespace_ != null + && scopeNamespace_ != com.google.cloud.gkehub.v1.Namespace.getDefaultInstance()) { + getScopeNamespaceBuilder().mergeFrom(value); + } else { + scopeNamespace_ = value; + } + } else { + scopeNamespaceBuilder_.mergeFrom(value); + } + if (scopeNamespace_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. A namespace with fields updated. The 'name' field in this
            +     * namespace is used to identify the resource to update. Given 'updated'
            +     * prefix to follow go/proto-best-practices-checkers#keyword_conflict
            +     * 
            + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearScopeNamespace() { + bitField0_ = (bitField0_ & ~0x00000001); + scopeNamespace_ = null; + if (scopeNamespaceBuilder_ != null) { + scopeNamespaceBuilder_.dispose(); + scopeNamespaceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. A namespace with fields updated. The 'name' field in this
            +     * namespace is used to identify the resource to update. Given 'updated'
            +     * prefix to follow go/proto-best-practices-checkers#keyword_conflict
            +     * 
            + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.Namespace.Builder getScopeNamespaceBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetScopeNamespaceFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. A namespace with fields updated. The 'name' field in this
            +     * namespace is used to identify the resource to update. Given 'updated'
            +     * prefix to follow go/proto-best-practices-checkers#keyword_conflict
            +     * 
            + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.NamespaceOrBuilder getScopeNamespaceOrBuilder() { + if (scopeNamespaceBuilder_ != null) { + return scopeNamespaceBuilder_.getMessageOrBuilder(); + } else { + return scopeNamespace_ == null + ? com.google.cloud.gkehub.v1.Namespace.getDefaultInstance() + : scopeNamespace_; + } + } + + /** + * + * + *
            +     * Required. A namespace with fields updated. The 'name' field in this
            +     * namespace is used to identify the resource to update. Given 'updated'
            +     * prefix to follow go/proto-best-practices-checkers#keyword_conflict
            +     * 
            + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Namespace, + com.google.cloud.gkehub.v1.Namespace.Builder, + com.google.cloud.gkehub.v1.NamespaceOrBuilder> + internalGetScopeNamespaceFieldBuilder() { + if (scopeNamespaceBuilder_ == null) { + scopeNamespaceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Namespace, + com.google.cloud.gkehub.v1.Namespace.Builder, + com.google.cloud.gkehub.v1.NamespaceOrBuilder>( + getScopeNamespace(), getParentForChildren(), isClean()); + scopeNamespace_ = null; + } + return scopeNamespaceBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.UpdateScopeNamespaceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.UpdateScopeNamespaceRequest) + private static final com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest(); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateScopeNamespaceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeNamespaceRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeNamespaceRequestOrBuilder.java new file mode 100644 index 000000000000..680e3311a32a --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeNamespaceRequestOrBuilder.java @@ -0,0 +1,117 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface UpdateScopeNamespaceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.UpdateScopeNamespaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. A namespace with fields updated. The 'name' field in this
            +   * namespace is used to identify the resource to update. Given 'updated'
            +   * prefix to follow go/proto-best-practices-checkers#keyword_conflict
            +   * 
            + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the scopeNamespace field is set. + */ + boolean hasScopeNamespace(); + + /** + * + * + *
            +   * Required. A namespace with fields updated. The 'name' field in this
            +   * namespace is used to identify the resource to update. Given 'updated'
            +   * prefix to follow go/proto-best-practices-checkers#keyword_conflict
            +   * 
            + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The scopeNamespace. + */ + com.google.cloud.gkehub.v1.Namespace getScopeNamespace(); + + /** + * + * + *
            +   * Required. A namespace with fields updated. The 'name' field in this
            +   * namespace is used to identify the resource to update. Given 'updated'
            +   * prefix to follow go/proto-best-practices-checkers#keyword_conflict
            +   * 
            + * + * + * .google.cloud.gkehub.v1.Namespace scope_namespace = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gkehub.v1.NamespaceOrBuilder getScopeNamespaceOrBuilder(); + + /** + * + * + *
            +   * Required. The fields to be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
            +   * Required. The fields to be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
            +   * Required. The fields to be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeRBACRoleBindingRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeRBACRoleBindingRequest.java new file mode 100644 index 000000000000..22f6fa9a19ed --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeRBACRoleBindingRequest.java @@ -0,0 +1,1032 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Request to update a scope rbacrolebinding.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest} + */ +@com.google.protobuf.Generated +public final class UpdateScopeRBACRoleBindingRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest) + UpdateScopeRBACRoleBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateScopeRBACRoleBindingRequest"); + } + + // Use UpdateScopeRBACRoleBindingRequest.newBuilder() to construct. + private UpdateScopeRBACRoleBindingRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateScopeRBACRoleBindingRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateScopeRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateScopeRBACRoleBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest.class, + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest.Builder.class); + } + + private int bitField0_; + public static final int RBACROLEBINDING_FIELD_NUMBER = 1; + private com.google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding_; + + /** + * + * + *
            +   * Required. A rbacrolebinding with fields updated. The 'name' field in this
            +   * rbacrolebinding is used to identify the resource to update.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rbacrolebinding field is set. + */ + @java.lang.Override + public boolean hasRbacrolebinding() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. A rbacrolebinding with fields updated. The 'name' field in this
            +   * rbacrolebinding is used to identify the resource to update.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rbacrolebinding. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebinding() { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } + + /** + * + * + *
            +   * Required. A rbacrolebinding with fields updated. The 'name' field in this
            +   * rbacrolebinding is used to identify the resource to update.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingOrBuilder() { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
            +   * Required. The fields to be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Required. The fields to be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
            +   * Required. The fields to be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getRbacrolebinding()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRbacrolebinding()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest other = + (com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest) obj; + + if (hasRbacrolebinding() != other.hasRbacrolebinding()) return false; + if (hasRbacrolebinding()) { + if (!getRbacrolebinding().equals(other.getRbacrolebinding())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRbacrolebinding()) { + hash = (37 * hash) + RBACROLEBINDING_FIELD_NUMBER; + hash = (53 * hash) + getRbacrolebinding().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request to update a scope rbacrolebinding.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest) + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateScopeRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateScopeRBACRoleBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest.class, + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRbacrolebindingFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + rbacrolebinding_ = null; + if (rbacrolebindingBuilder_ != null) { + rbacrolebindingBuilder_.dispose(); + rbacrolebindingBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateScopeRBACRoleBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest + getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest build() { + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest buildPartial() { + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest result = + new com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.rbacrolebinding_ = + rbacrolebindingBuilder_ == null ? rbacrolebinding_ : rbacrolebindingBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest other) { + if (other + == com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest.getDefaultInstance()) + return this; + if (other.hasRbacrolebinding()) { + mergeRbacrolebinding(other.getRbacrolebinding()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetRbacrolebindingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder> + rbacrolebindingBuilder_; + + /** + * + * + *
            +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
            +     * rbacrolebinding is used to identify the resource to update.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rbacrolebinding field is set. + */ + public boolean hasRbacrolebinding() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
            +     * rbacrolebinding is used to identify the resource to update.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rbacrolebinding. + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebinding() { + if (rbacrolebindingBuilder_ == null) { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } else { + return rbacrolebindingBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
            +     * rbacrolebinding is used to identify the resource to update.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRbacrolebinding(com.google.cloud.gkehub.v1.RBACRoleBinding value) { + if (rbacrolebindingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rbacrolebinding_ = value; + } else { + rbacrolebindingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
            +     * rbacrolebinding is used to identify the resource to update.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRbacrolebinding( + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder builderForValue) { + if (rbacrolebindingBuilder_ == null) { + rbacrolebinding_ = builderForValue.build(); + } else { + rbacrolebindingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
            +     * rbacrolebinding is used to identify the resource to update.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRbacrolebinding(com.google.cloud.gkehub.v1.RBACRoleBinding value) { + if (rbacrolebindingBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && rbacrolebinding_ != null + && rbacrolebinding_ + != com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance()) { + getRbacrolebindingBuilder().mergeFrom(value); + } else { + rbacrolebinding_ = value; + } + } else { + rbacrolebindingBuilder_.mergeFrom(value); + } + if (rbacrolebinding_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
            +     * rbacrolebinding is used to identify the resource to update.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRbacrolebinding() { + bitField0_ = (bitField0_ & ~0x00000001); + rbacrolebinding_ = null; + if (rbacrolebindingBuilder_ != null) { + rbacrolebindingBuilder_.dispose(); + rbacrolebindingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
            +     * rbacrolebinding is used to identify the resource to update.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.RBACRoleBinding.Builder getRbacrolebindingBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetRbacrolebindingFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
            +     * rbacrolebinding is used to identify the resource to update.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingOrBuilder() { + if (rbacrolebindingBuilder_ != null) { + return rbacrolebindingBuilder_.getMessageOrBuilder(); + } else { + return rbacrolebinding_ == null + ? com.google.cloud.gkehub.v1.RBACRoleBinding.getDefaultInstance() + : rbacrolebinding_; + } + } + + /** + * + * + *
            +     * Required. A rbacrolebinding with fields updated. The 'name' field in this
            +     * rbacrolebinding is used to identify the resource to update.
            +     * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder> + internalGetRbacrolebindingFieldBuilder() { + if (rbacrolebindingBuilder_ == null) { + rbacrolebindingBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.RBACRoleBinding, + com.google.cloud.gkehub.v1.RBACRoleBinding.Builder, + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder>( + getRbacrolebinding(), getParentForChildren(), isClean()); + rbacrolebinding_ = null; + } + return rbacrolebindingBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest) + private static final com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest(); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateScopeRBACRoleBindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeRBACRoleBindingRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeRBACRoleBindingRequestOrBuilder.java new file mode 100644 index 000000000000..26276fe9f92f --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeRBACRoleBindingRequestOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface UpdateScopeRBACRoleBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. A rbacrolebinding with fields updated. The 'name' field in this
            +   * rbacrolebinding is used to identify the resource to update.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rbacrolebinding field is set. + */ + boolean hasRbacrolebinding(); + + /** + * + * + *
            +   * Required. A rbacrolebinding with fields updated. The 'name' field in this
            +   * rbacrolebinding is used to identify the resource to update.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rbacrolebinding. + */ + com.google.cloud.gkehub.v1.RBACRoleBinding getRbacrolebinding(); + + /** + * + * + *
            +   * Required. A rbacrolebinding with fields updated. The 'name' field in this
            +   * rbacrolebinding is used to identify the resource to update.
            +   * 
            + * + * + * .google.cloud.gkehub.v1.RBACRoleBinding rbacrolebinding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gkehub.v1.RBACRoleBindingOrBuilder getRbacrolebindingOrBuilder(); + + /** + * + * + *
            +   * Required. The fields to be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
            +   * Required. The fields to be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
            +   * Required. The fields to be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeRequest.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeRequest.java new file mode 100644 index 000000000000..30351d100d82 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeRequest.java @@ -0,0 +1,998 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +/** + * + * + *
            + * Request to update a Scope.
            + * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.UpdateScopeRequest} + */ +@com.google.protobuf.Generated +public final class UpdateScopeRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.UpdateScopeRequest) + UpdateScopeRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateScopeRequest"); + } + + // Use UpdateScopeRequest.newBuilder() to construct. + private UpdateScopeRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateScopeRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateScopeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateScopeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.UpdateScopeRequest.class, + com.google.cloud.gkehub.v1.UpdateScopeRequest.Builder.class); + } + + private int bitField0_; + public static final int SCOPE_FIELD_NUMBER = 1; + private com.google.cloud.gkehub.v1.Scope scope_; + + /** + * + * + *
            +   * Required. A Scope with fields updated. The 'name' field in this
            +   * namespace is used to identify the resource to update.
            +   * 
            + * + * .google.cloud.gkehub.v1.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the scope field is set. + */ + @java.lang.Override + public boolean hasScope() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. A Scope with fields updated. The 'name' field in this
            +   * namespace is used to identify the resource to update.
            +   * 
            + * + * .google.cloud.gkehub.v1.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scope. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.Scope getScope() { + return scope_ == null ? com.google.cloud.gkehub.v1.Scope.getDefaultInstance() : scope_; + } + + /** + * + * + *
            +   * Required. A Scope with fields updated. The 'name' field in this
            +   * namespace is used to identify the resource to update.
            +   * 
            + * + * .google.cloud.gkehub.v1.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.ScopeOrBuilder getScopeOrBuilder() { + return scope_ == null ? com.google.cloud.gkehub.v1.Scope.getDefaultInstance() : scope_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
            +   * Required. The fields to be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Required. The fields to be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
            +   * Required. The fields to be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getScope()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getScope()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.UpdateScopeRequest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.UpdateScopeRequest other = + (com.google.cloud.gkehub.v1.UpdateScopeRequest) obj; + + if (hasScope() != other.hasScope()) return false; + if (hasScope()) { + if (!getScope().equals(other.getScope())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasScope()) { + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + getScope().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkehub.v1.UpdateScopeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request to update a Scope.
            +   * 
            + * + * Protobuf type {@code google.cloud.gkehub.v1.UpdateScopeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.UpdateScopeRequest) + com.google.cloud.gkehub.v1.UpdateScopeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateScopeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateScopeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.UpdateScopeRequest.class, + com.google.cloud.gkehub.v1.UpdateScopeRequest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.UpdateScopeRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetScopeFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + scope_ = null; + if (scopeBuilder_ != null) { + scopeBuilder_.dispose(); + scopeBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateScopeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateScopeRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.UpdateScopeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateScopeRequest build() { + com.google.cloud.gkehub.v1.UpdateScopeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateScopeRequest buildPartial() { + com.google.cloud.gkehub.v1.UpdateScopeRequest result = + new com.google.cloud.gkehub.v1.UpdateScopeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.v1.UpdateScopeRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.scope_ = scopeBuilder_ == null ? scope_ : scopeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.v1.UpdateScopeRequest) { + return mergeFrom((com.google.cloud.gkehub.v1.UpdateScopeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.UpdateScopeRequest other) { + if (other == com.google.cloud.gkehub.v1.UpdateScopeRequest.getDefaultInstance()) return this; + if (other.hasScope()) { + mergeScope(other.getScope()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(internalGetScopeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.gkehub.v1.Scope scope_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Scope, + com.google.cloud.gkehub.v1.Scope.Builder, + com.google.cloud.gkehub.v1.ScopeOrBuilder> + scopeBuilder_; + + /** + * + * + *
            +     * Required. A Scope with fields updated. The 'name' field in this
            +     * namespace is used to identify the resource to update.
            +     * 
            + * + * .google.cloud.gkehub.v1.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the scope field is set. + */ + public boolean hasScope() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Required. A Scope with fields updated. The 'name' field in this
            +     * namespace is used to identify the resource to update.
            +     * 
            + * + * .google.cloud.gkehub.v1.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The scope. + */ + public com.google.cloud.gkehub.v1.Scope getScope() { + if (scopeBuilder_ == null) { + return scope_ == null ? com.google.cloud.gkehub.v1.Scope.getDefaultInstance() : scope_; + } else { + return scopeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. A Scope with fields updated. The 'name' field in this
            +     * namespace is used to identify the resource to update.
            +     * 
            + * + * .google.cloud.gkehub.v1.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setScope(com.google.cloud.gkehub.v1.Scope value) { + if (scopeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scope_ = value; + } else { + scopeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. A Scope with fields updated. The 'name' field in this
            +     * namespace is used to identify the resource to update.
            +     * 
            + * + * .google.cloud.gkehub.v1.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setScope(com.google.cloud.gkehub.v1.Scope.Builder builderForValue) { + if (scopeBuilder_ == null) { + scope_ = builderForValue.build(); + } else { + scopeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. A Scope with fields updated. The 'name' field in this
            +     * namespace is used to identify the resource to update.
            +     * 
            + * + * .google.cloud.gkehub.v1.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeScope(com.google.cloud.gkehub.v1.Scope value) { + if (scopeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && scope_ != null + && scope_ != com.google.cloud.gkehub.v1.Scope.getDefaultInstance()) { + getScopeBuilder().mergeFrom(value); + } else { + scope_ = value; + } + } else { + scopeBuilder_.mergeFrom(value); + } + if (scope_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. A Scope with fields updated. The 'name' field in this
            +     * namespace is used to identify the resource to update.
            +     * 
            + * + * .google.cloud.gkehub.v1.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearScope() { + bitField0_ = (bitField0_ & ~0x00000001); + scope_ = null; + if (scopeBuilder_ != null) { + scopeBuilder_.dispose(); + scopeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. A Scope with fields updated. The 'name' field in this
            +     * namespace is used to identify the resource to update.
            +     * 
            + * + * .google.cloud.gkehub.v1.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.Scope.Builder getScopeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetScopeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. A Scope with fields updated. The 'name' field in this
            +     * namespace is used to identify the resource to update.
            +     * 
            + * + * .google.cloud.gkehub.v1.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkehub.v1.ScopeOrBuilder getScopeOrBuilder() { + if (scopeBuilder_ != null) { + return scopeBuilder_.getMessageOrBuilder(); + } else { + return scope_ == null ? com.google.cloud.gkehub.v1.Scope.getDefaultInstance() : scope_; + } + } + + /** + * + * + *
            +     * Required. A Scope with fields updated. The 'name' field in this
            +     * namespace is used to identify the resource to update.
            +     * 
            + * + * .google.cloud.gkehub.v1.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Scope, + com.google.cloud.gkehub.v1.Scope.Builder, + com.google.cloud.gkehub.v1.ScopeOrBuilder> + internalGetScopeFieldBuilder() { + if (scopeBuilder_ == null) { + scopeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.gkehub.v1.Scope, + com.google.cloud.gkehub.v1.Scope.Builder, + com.google.cloud.gkehub.v1.ScopeOrBuilder>( + getScope(), getParentForChildren(), isClean()); + scope_ = null; + } + return scopeBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
            +     * Required. The fields to be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.UpdateScopeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.UpdateScopeRequest) + private static final com.google.cloud.gkehub.v1.UpdateScopeRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.UpdateScopeRequest(); + } + + public static com.google.cloud.gkehub.v1.UpdateScopeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateScopeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.UpdateScopeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeRequestOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeRequestOrBuilder.java new file mode 100644 index 000000000000..f6afd33899f3 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateScopeRequestOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/gkehub/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.gkehub.v1; + +@com.google.protobuf.Generated +public interface UpdateScopeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.UpdateScopeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. A Scope with fields updated. The 'name' field in this
            +   * namespace is used to identify the resource to update.
            +   * 
            + * + * .google.cloud.gkehub.v1.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the scope field is set. + */ + boolean hasScope(); + + /** + * + * + *
            +   * Required. A Scope with fields updated. The 'name' field in this
            +   * namespace is used to identify the resource to update.
            +   * 
            + * + * .google.cloud.gkehub.v1.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The scope. + */ + com.google.cloud.gkehub.v1.Scope getScope(); + + /** + * + * + *
            +   * Required. A Scope with fields updated. The 'name' field in this
            +   * namespace is used to identify the resource to update.
            +   * 
            + * + * .google.cloud.gkehub.v1.Scope scope = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.gkehub.v1.ScopeOrBuilder getScopeOrBuilder(); + + /** + * + * + *
            +   * Required. The fields to be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
            +   * Required. The fields to be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
            +   * Required. The fields to be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/feature.proto b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/feature.proto index 42d299841c87..a45b19338aa2 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/feature.proto +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/feature.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/gkehub/v1/configmanagement/configmanagement.proto"; import "google/cloud/gkehub/v1/multiclusteringress/multiclusteringress.proto"; +import "google/cloud/gkehub/v1/rbacrolebindingactuation/rbacrolebindingactuation.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.GkeHub.V1"; @@ -30,7 +31,7 @@ option java_package = "com.google.cloud.gkehub.v1"; option php_namespace = "Google\\Cloud\\GkeHub\\V1"; option ruby_package = "Google::Cloud::GkeHub::V1"; -// Feature represents the settings and status of any Hub Feature. +// Feature represents the settings and status of any Fleet Feature. message Feature { option (google.api.resource) = { type: "gkehub.googleapis.com/Feature" @@ -41,22 +42,24 @@ message Feature { // `projects/*/locations/*/features/*`. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // GCP labels for this Feature. + // Labels for this Feature. map labels = 2; // Output only. State of the Feature resource itself. - FeatureResourceState resource_state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + FeatureResourceState resource_state = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. Hub-wide Feature configuration. If this Feature does not support any - // Hub-wide configuration, this field may be unused. + // Optional. Fleet-wide Feature configuration. If this Feature does not + // support any Fleet-wide configuration, this field may be unused. CommonFeatureSpec spec = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Membership-specific configuration for this Feature. If this Feature does - // not support any per-Membership configuration, this field may be unused. + // Optional. Membership-specific configuration for this Feature. If this + // Feature does not support any per-Membership configuration, this field may + // be unused. // // The keys indicate which Membership the configuration is for, in the form: // - // projects/{p}/locations/{l}/memberships/{m} + // `projects/{p}/locations/{l}/memberships/{m}` // // Where {p} is the project, {l} is a valid location and {m} is a valid // Membership in this project at that location. {p} WILL match the Feature's @@ -68,9 +71,10 @@ message Feature { // ONE of the entries will be saved, with no guarantees as to which. For this // reason, it is recommended the same format be used for all entries when // mutating a Feature. - map membership_specs = 5 [(google.api.field_behavior) = OPTIONAL]; + map membership_specs = 5 + [(google.api.field_behavior) = OPTIONAL]; - // Output only. The Hub-wide Feature state. + // Output only. The Fleet-wide Feature state. CommonFeatureState state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Membership-specific Feature status. If this Feature does @@ -78,26 +82,65 @@ message Feature { // // The keys indicate which Membership the state is for, in the form: // - // projects/{p}/locations/{l}/memberships/{m} + // `projects/{p}/locations/{l}/memberships/{m}` // // Where {p} is the project number, {l} is a valid location and {m} is a valid // Membership in this project at that location. {p} MUST match the Feature's // project number. - map membership_states = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + map membership_states = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. When the Feature resource was created. - google.protobuf.Timestamp create_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. When the Feature resource was last updated. - google.protobuf.Timestamp update_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. When the Feature resource was deleted. - google.protobuf.Timestamp delete_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp delete_time = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Scope-specific configuration for this Feature. If this Feature + // does not support any per-Scope configuration, this field may be unused. + // + // The keys indicate which Scope the configuration is for, in the form: + // + // `projects/{p}/locations/global/scopes/{s}` + // + // Where {p} is the project, {s} is a valid Scope in this project. + // {p} WILL match the Feature's project. + // + // {p} will always be returned as the project number, but the project ID is + // also accepted during input. If the same Scope is specified in the map + // twice (using the project ID form, and the project number form), exactly + // ONE of the entries will be saved, with no guarantees as to which. For this + // reason, it is recommended the same format be used for all entries when + // mutating a Feature. + map scope_specs = 12 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Scope-specific Feature status. If this Feature does + // report any per-Scope status, this field may be unused. + // + // The keys indicate which Scope the state is for, in the form: + // + // `projects/{p}/locations/global/scopes/{s}` + // + // Where {p} is the project, {s} is a valid Scope in this project. + // {p} WILL match the Feature's project. + map scope_states = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of locations that could not be reached while fetching + // this feature. + repeated string unreachable = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; } // FeatureResourceState describes the state of a Feature *resource* in the // GkeHub API. See `FeatureState` for the "running state" of the Feature in the -// Hub and across Memberships. +// Fleet and across Memberships. message FeatureResourceState { // State describes the lifecycle status of a Feature. enum State { @@ -105,14 +148,14 @@ message FeatureResourceState { STATE_UNSPECIFIED = 0; // The Feature is being enabled, and the Feature resource is being created. - // Once complete, the corresponding Feature will be enabled in this Hub. + // Once complete, the corresponding Feature will be enabled in this Fleet. ENABLING = 1; - // The Feature is enabled in this Hub, and the Feature resource is fully + // The Feature is enabled in this Fleet, and the Feature resource is fully // available. ACTIVE = 2; - // The Feature is being disabled in this Hub, and the Feature resource + // The Feature is being disabled in this Fleet, and the Feature resource // is being deleted. DISABLING = 3; @@ -166,13 +209,29 @@ message FeatureState { message CommonFeatureSpec { oneof feature_spec { // Multicluster Ingress-specific spec. - google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; + google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = + 102; } } -// CommonFeatureState contains Hub-wide Feature status information. +// CommonFeatureState contains Fleet-wide Feature status information. message CommonFeatureState { - // Output only. The "running state" of the Feature in this Hub. + oneof feature_state { + // RBAC Role Binding Actuation feature state + google.cloud.gkehub.rbacrolebindingactuation.v1.FeatureState + rbacrolebindingactuation = 120; + } + + // Output only. The "running state" of the Feature in this Fleet. + FeatureState state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// ScopeFeatureSpec contains feature specs for a fleet scope. +message ScopeFeatureSpec {} + +// ScopeFeatureState contains Scope-wide Feature status information. +message ScopeFeatureState { + // Output only. The "running state" of the Feature in this Scope. FeatureState state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -181,7 +240,8 @@ message CommonFeatureState { message MembershipFeatureSpec { oneof feature_spec { // Config Management-specific spec. - google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = 106; + google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = + 106; } } @@ -190,7 +250,8 @@ message MembershipFeatureSpec { message MembershipFeatureState { oneof feature_state { // Config Management-specific state. - google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = 106; + google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = + 106; } // The high-level state of this Feature for a single membership. diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/fleet.proto b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/fleet.proto new file mode 100644 index 000000000000..0d11cb80fb5d --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/fleet.proto @@ -0,0 +1,538 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.gkehub.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.GkeHub.V1"; +option go_package = "cloud.google.com/go/gkehub/apiv1/gkehubpb;gkehubpb"; +option java_multiple_files = true; +option java_outer_classname = "FleetProto"; +option java_package = "com.google.cloud.gkehub.v1"; +option php_namespace = "Google\\Cloud\\GkeHub\\V1"; +option ruby_package = "Google::Cloud::GkeHub::V1"; + +// Fleet contains the Fleet-wide metadata and configuration. +message Fleet { + option (google.api.resource) = { + type: "gkehub.googleapis.com/Fleet" + pattern: "projects/{project}/locations/{location}/fleets/{fleet}" + pattern: "organizations/{organization}/locations/{location}/fleets/{fleet}" + }; + + // Output only. The full, unique resource name of this fleet in the format of + // `projects/{project}/locations/{location}/fleets/{fleet}`. + // + // Each Google Cloud project can have at most one fleet resource, named + // "default". + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. A user-assigned display name of the Fleet. + // When present, it must be between 4 to 30 characters. + // Allowed characters are: lowercase and uppercase letters, numbers, + // hyphen, single-quote, double-quote, space, and exclamation point. + // + // Example: `Production Fleet` + string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. When the Fleet was created. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the Fleet was last updated. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the Fleet was deleted. + google.protobuf.Timestamp delete_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Google-generated UUID for this resource. This is unique across + // all Fleet resources. If a Fleet resource is deleted and another resource + // with the same name is created, it gets a different uid. + string uid = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of the namespace resource. + FleetLifecycleState state = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The default cluster configurations to apply across the fleet. + DefaultClusterConfig default_cluster_config = 10 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Labels for this Fleet. + map labels = 11 [(google.api.field_behavior) = OPTIONAL]; +} + +// DefaultClusterConfig describes the default cluster configurations to be +// applied to all clusters born-in-fleet. +message DefaultClusterConfig { + // Enable/Disable Security Posture features for the cluster. + SecurityPostureConfig security_posture_config = 1; + + // Optional. Enable/Disable binary authorization features for the cluster. + BinaryAuthorizationConfig binary_authorization_config = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Enable/Disable Compliance Posture features for the cluster. + // Note that on UpdateFleet, only full replacement of this field is allowed. + // Users are not allowed for partial updates through field mask. + CompliancePostureConfig compliance_posture_config = 3 + [(google.api.field_behavior) = OPTIONAL]; +} + +// SecurityPostureConfig defines the flags needed to enable/disable features for +// the Security Posture API. +message SecurityPostureConfig { + // Mode defines enablement mode for GKE Security posture features. + enum Mode { + // Default value not specified. + MODE_UNSPECIFIED = 0; + + // Disables Security Posture features on the cluster. + DISABLED = 1; + + // Applies Security Posture features on the cluster. + BASIC = 2; + + // Applies the Security Posture off cluster Enterprise level features. + ENTERPRISE = 3; + } + + // VulnerabilityMode defines enablement mode for vulnerability scanning. + enum VulnerabilityMode { + // Default value not specified. + VULNERABILITY_MODE_UNSPECIFIED = 0; + + // Disables vulnerability scanning on the cluster. + VULNERABILITY_DISABLED = 1; + + // Applies basic vulnerability scanning on the cluster. + VULNERABILITY_BASIC = 2; + + // Applies the Security Posture's vulnerability on cluster Enterprise level + // features. + VULNERABILITY_ENTERPRISE = 3; + } + + // Sets which mode to use for Security Posture features. + Mode mode = 1; + + // Sets which mode to use for vulnerability scanning. + VulnerabilityMode vulnerability_mode = 2; +} + +// BinaryAuthorizationConfig defines the fleet level configuration of binary +// authorization feature. +message BinaryAuthorizationConfig { + // Binauthz policy that applies to this cluster. + message PolicyBinding { + // The relative resource name of the binauthz platform policy to audit. GKE + // platform policies have the following format: + // `projects/{project_number}/platforms/gke/policies/{policy_id}`. + string name = 1; + } + + // Binary Authorization mode of operation. + enum EvaluationMode { + // Default value + EVALUATION_MODE_UNSPECIFIED = 0; + + // Disable BinaryAuthorization + DISABLED = 1; + + // Use Binary Authorization with the policies specified in policy_bindings. + POLICY_BINDINGS = 2; + } + + // Optional. Mode of operation for binauthz policy evaluation. + EvaluationMode evaluation_mode = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Binauthz policies that apply to this cluster. + repeated PolicyBinding policy_bindings = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// CompliancePostureConfig defines the settings needed to enable/disable +// features for the Compliance Posture. +message CompliancePostureConfig { + message ComplianceStandard { + // Name of the compliance standard. + string standard = 1; + } + + enum Mode { + // Default value not specified. + MODE_UNSPECIFIED = 0; + + // Disables Compliance Posture features on the cluster. + DISABLED = 1; + + // Enables Compliance Posture features on the cluster. + ENABLED = 2; + } + + // Defines the enablement mode for Compliance Posture. + Mode mode = 1; + + // List of enabled compliance standards. + repeated ComplianceStandard compliance_standards = 2; +} + +// FleetLifecycleState describes the state of a Fleet resource. +message FleetLifecycleState { + // Code describes the state of a Fleet resource. + enum Code { + // The code is not set. + CODE_UNSPECIFIED = 0; + + // The fleet is being created. + CREATING = 1; + + // The fleet active. + READY = 2; + + // The fleet is being deleted. + DELETING = 3; + + // The fleet is being updated. + UPDATING = 4; + } + + // Output only. The current state of the Fleet resource. + Code code = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Namespace represents a namespace across the Fleet +message Namespace { + option (google.api.resource) = { + type: "gkehub.googleapis.com/Namespace" + pattern: "projects/{project}/locations/{location}/scopes/{scope}/namespaces/{namespace}" + }; + + // The resource name for the namespace + // `projects/{project}/locations/{location}/namespaces/{namespace}` + string name = 1; + + // Output only. Google-generated UUID for this resource. This is unique across + // all namespace resources. If a namespace resource is deleted and another + // resource with the same name is created, it gets a different uid. + string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the namespace was created. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the namespace was last updated. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the namespace was deleted. + google.protobuf.Timestamp delete_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of the namespace resource. + NamespaceLifecycleState state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Scope associated with the namespace + string scope = 8 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "gkehub.googleapis.com/Scope" } + ]; + + // Optional. Namespace-level cluster namespace labels. These labels are + // applied to the related namespace of the member clusters bound to the parent + // Scope. Scope-level labels (`namespace_labels` in the Fleet Scope + // resource) take precedence over Namespace-level labels if they share + // a key. Keys and values must be Kubernetes-conformant. + map namespace_labels = 9 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Labels for this Namespace. + map labels = 10 [(google.api.field_behavior) = OPTIONAL]; +} + +// NamespaceLifecycleState describes the state of a Namespace resource. +message NamespaceLifecycleState { + // Code describes the state of a Namespace resource. + enum Code { + // The code is not set. + CODE_UNSPECIFIED = 0; + + // The namespace is being created. + CREATING = 1; + + // The namespace active. + READY = 2; + + // The namespace is being deleted. + DELETING = 3; + + // The namespace is being updated. + UPDATING = 4; + } + + // Output only. The current state of the Namespace resource. + Code code = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// RBACRoleBinding represents a rbacrolebinding across the Fleet +message RBACRoleBinding { + option (google.api.resource) = { + type: "gkehub.googleapis.com/RBACRoleBinding" + pattern: "projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}" + pattern: "projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}" + }; + + // Role is the type for Kubernetes roles + message Role { + // PredefinedRoles is an ENUM representation of the default Kubernetes Roles + enum PredefinedRoles { + // UNKNOWN + UNKNOWN = 0; + + // ADMIN has EDIT and RBAC permissions + ADMIN = 1; + + // EDIT can edit all resources except RBAC + EDIT = 2; + + // VIEW can only read resources + VIEW = 3; + + // ANTHOS_SUPPORT gives Google Support read-only access to a number of + // cluster resources. + ANTHOS_SUPPORT = 4; + } + + // predefined_role is the Kubernetes default role to use + PredefinedRoles predefined_role = 1; + + // Optional. custom_role is the name of a custom KubernetesClusterRole to + // use. + string custom_role = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Principal that is be authorized in the cluster (at least of one the oneof + // is required). Updating one will unset the other automatically. + oneof principal { + // user is the name of the user as seen by the kubernetes cluster, example + // "alice" or "alice@domain.tld" + string user = 7; + + // group is the group, as seen by the kubernetes cluster. + string group = 8; + } + + // The resource name for the rbacrolebinding + // `projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding}` + // or + // `projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}` + string name = 1; + + // Output only. Google-generated UUID for this resource. This is unique across + // all rbacrolebinding resources. If a rbacrolebinding resource is deleted and + // another resource with the same name is created, it gets a different uid. + string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the rbacrolebinding was created. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the rbacrolebinding was last updated. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the rbacrolebinding was deleted. + google.protobuf.Timestamp delete_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of the rbacrolebinding resource. + RBACRoleBindingLifecycleState state = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Role to bind to the principal + Role role = 9 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Labels for this RBACRolebinding. + map labels = 10 [(google.api.field_behavior) = OPTIONAL]; +} + +// RBACRoleBindingLifecycleState describes the state of a RbacRoleBinding +// resource. +message RBACRoleBindingLifecycleState { + // Code describes the state of a rbacrolebinding resource. + enum Code { + // The code is not set. + CODE_UNSPECIFIED = 0; + + // The rbacrolebinding is being created. + CREATING = 1; + + // The rbacrolebinding active. + READY = 2; + + // The rbacrolebinding is being deleted. + DELETING = 3; + + // The rbacrolebinding is being updated. + UPDATING = 4; + } + + // Output only. The current state of the rbacrolebinding resource. + Code code = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Scope represents a Scope in a Fleet. +message Scope { + option (google.api.resource) = { + type: "gkehub.googleapis.com/Scope" + pattern: "projects/{project}/locations/{location}/scopes/{scope}" + }; + + // The resource name for the scope + // `projects/{project}/locations/{location}/scopes/{scope}` + string name = 1; + + // Output only. Google-generated UUID for this resource. This is unique across + // all scope resources. If a scope resource is deleted and another resource + // with the same name is created, it gets a different uid. + string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the scope was created. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the scope was last updated. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the scope was deleted. + google.protobuf.Timestamp delete_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of the scope resource. + ScopeLifecycleState state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Scope-level cluster namespace labels. For the member clusters + // bound to the Scope, these labels are applied to each namespace under the + // Scope. Scope-level labels take precedence over Namespace-level + // labels (`namespace_labels` in the Fleet Namespace resource) if they + // share a key. Keys and values must be Kubernetes-conformant. + map namespace_labels = 8 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Labels for this Scope. + map labels = 9 [(google.api.field_behavior) = OPTIONAL]; +} + +// ScopeLifecycleState describes the state of a Scope resource. +message ScopeLifecycleState { + // Code describes the state of a Scope resource. + enum Code { + // The code is not set. + CODE_UNSPECIFIED = 0; + + // The scope is being created. + CREATING = 1; + + // The scope active. + READY = 2; + + // The scope is being deleted. + DELETING = 3; + + // The scope is being updated. + UPDATING = 4; + } + + // Output only. The current state of the scope resource. + Code code = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// MembershipBinding is a subresource of a Membership, representing +// what Fleet Scopes (or other, future Fleet resources) a Membership is bound +// to. +message MembershipBinding { + option (google.api.resource) = { + type: "gkehub.googleapis.com/MembershipBinding" + pattern: "projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}" + }; + + // What type of membershipbinding this is. + oneof target { + // A Scope resource name in the format + // `projects/*/locations/*/scopes/*`. + string scope = 3 [ + (google.api.resource_reference) = { type: "gkehub.googleapis.com/Scope" } + ]; + } + + // The resource name for the membershipbinding itself + // `projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}` + string name = 1; + + // Output only. Google-generated UUID for this resource. This is unique across + // all membershipbinding resources. If a membershipbinding resource is deleted + // and another resource with the same name is created, it gets a different + // uid. + string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the membership binding was created. + google.protobuf.Timestamp create_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the membership binding was last updated. + google.protobuf.Timestamp update_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the membership binding was deleted. + google.protobuf.Timestamp delete_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of the membership binding resource. + MembershipBindingLifecycleState state = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Labels for this MembershipBinding. + map labels = 9 [(google.api.field_behavior) = OPTIONAL]; +} + +// MembershipBindingLifecycleState describes the state of a Binding resource. +message MembershipBindingLifecycleState { + // Code describes the state of a MembershipBinding resource. + enum Code { + // The code is not set. + CODE_UNSPECIFIED = 0; + + // The membershipbinding is being created. + CREATING = 1; + + // The membershipbinding active. + READY = 2; + + // The membershipbinding is being deleted. + DELETING = 3; + + // The membershipbinding is being updated. + UPDATING = 4; + } + + // Output only. The current state of the MembershipBinding resource. + Code code = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/rbacrolebindingactuation/rbacrolebindingactuation.proto b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/rbacrolebindingactuation/rbacrolebindingactuation.proto new file mode 100644 index 000000000000..678b440a53fa --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/rbacrolebindingactuation/rbacrolebindingactuation.proto @@ -0,0 +1,40 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.gkehub.rbacrolebindingactuation.v1; + +import "google/api/field_behavior.proto"; + +option csharp_namespace = "Google.Cloud.GkeHub.RbacRoleBindingActuation.V1"; +option go_package = "cloud.google.com/go/gkehub/rbacrolebindingactuation/apiv1/rbacrolebindingactuationpb;rbacrolebindingactuationpb"; +option java_multiple_files = true; +option java_outer_classname = "RBACRoleBindingActuationProto"; +option java_package = "com.google.cloud.gkehub.rbacrolebindingactuation.v1"; +option php_namespace = "Google\\Cloud\\GkeHub\\RbacRoleBindingActuation\\V1"; +option ruby_package = "Google::Cloud::GkeHub::RbacRoleBindingActuation::V1"; + +// **RBAC RoleBinding Actuation**: The Hub-wide input for the +// RBACRoleBindingActuation feature. +message FeatureSpec { + // The list of allowed custom roles (ClusterRoles). If a ClusterRole is not + // part of this list, it cannot be used in a Scope RBACRoleBinding. If a + // ClusterRole in this list is in use, it cannot be removed from the list. + repeated string allowed_custom_roles = 2; +} + +// **RBAC RoleBinding Actuation**: An empty state left as an example Hub-wide +// Feature state. +message FeatureState {} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/service.proto b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/service.proto index e9c729c7db67..82fd6d084c2c 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/service.proto +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/gkehub/v1/feature.proto"; +import "google/cloud/gkehub/v1/fleet.proto"; import "google/cloud/gkehub/v1/membership.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; @@ -65,6 +66,16 @@ service GkeHub { option (google.api.method_signature) = "parent"; } + // Lists Memberships bound to a Scope. The response includes relevant + // Memberships from all regions. + rpc ListBoundMemberships(ListBoundMembershipsRequest) + returns (ListBoundMembershipsResponse) { + option (google.api.http) = { + get: "/v1/{scope_name=projects/*/locations/*/scopes/*}:listMemberships" + }; + option (google.api.method_signature) = "scope_name"; + } + // Lists Features in a given project and location. rpc ListFeatures(ListFeaturesRequest) returns (ListFeaturesResponse) { option (google.api.http) = { @@ -89,106 +100,877 @@ service GkeHub { option (google.api.method_signature) = "name"; } - // Creates a new Membership. - // - // **This is currently only supported for GKE clusters on Google Cloud**. - // To register other clusters, follow the instructions at - // https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster. - rpc CreateMembership(CreateMembershipRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1/{parent=projects/*/locations/*}/memberships" - body: "resource" - }; - option (google.api.method_signature) = "parent,resource,membership_id"; - option (google.longrunning.operation_info) = { - response_type: "Membership" - metadata_type: "OperationMetadata" - }; - } + // Creates a new Membership. + // + // **This is currently only supported for GKE clusters on Google Cloud**. + // To register other clusters, follow the instructions at + // https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster. + rpc CreateMembership(CreateMembershipRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/memberships" + body: "resource" + }; + option (google.api.method_signature) = "parent,resource,membership_id"; + option (google.longrunning.operation_info) = { + response_type: "Membership" + metadata_type: "OperationMetadata" + }; + } + + // Adds a new Feature. + rpc CreateFeature(CreateFeatureRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/features" + body: "resource" + }; + option (google.api.method_signature) = "parent,resource,feature_id"; + option (google.longrunning.operation_info) = { + response_type: "Feature" + metadata_type: "OperationMetadata" + }; + } + + // Removes a Membership. + // + // **This is currently only supported for GKE clusters on Google Cloud**. + // To unregister other clusters, follow the instructions at + // https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster. + rpc DeleteMembership(DeleteMembershipRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/memberships/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Removes a Feature. + rpc DeleteFeature(DeleteFeatureRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/features/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Updates an existing Membership. + rpc UpdateMembership(UpdateMembershipRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{name=projects/*/locations/*/memberships/*}" + body: "resource" + }; + option (google.api.method_signature) = "name,resource,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Membership" + metadata_type: "OperationMetadata" + }; + } + + // Updates an existing Feature. + rpc UpdateFeature(UpdateFeatureRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{name=projects/*/locations/*/features/*}" + body: "resource" + }; + option (google.api.method_signature) = "name,resource,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Feature" + metadata_type: "OperationMetadata" + }; + } + + // Generates the manifest for deployment of the GKE connect agent. + // + // **This method is used internally by Google-provided libraries.** + // Most clients should not need to call this method directly. + rpc GenerateConnectManifest(GenerateConnectManifestRequest) + returns (GenerateConnectManifestResponse) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/memberships/*}:generateConnectManifest" + }; + } + + // Creates a fleet. + rpc CreateFleet(CreateFleetRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/fleets" + body: "fleet" + }; + option (google.api.method_signature) = "parent,fleet"; + option (google.longrunning.operation_info) = { + response_type: "Fleet" + metadata_type: "OperationMetadata" + }; + } + + // Returns the details of a fleet. + rpc GetFleet(GetFleetRequest) returns (Fleet) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/fleets/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates a fleet. + rpc UpdateFleet(UpdateFleetRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{fleet.name=projects/*/locations/*/fleets/*}" + body: "fleet" + }; + option (google.api.method_signature) = "fleet,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Fleet" + metadata_type: "OperationMetadata" + }; + } + + // Removes a Fleet. There must be no memberships remaining in the Fleet. + rpc DeleteFleet(DeleteFleetRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/fleets/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Returns all fleets within an organization or a project that the caller has + // access to. + rpc ListFleets(ListFleetsRequest) returns (ListFleetsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/fleets" + additional_bindings { + get: "/v1/{parent=organizations/*/locations/*}/fleets" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Returns the details of a fleet namespace. + rpc GetScopeNamespace(GetScopeNamespaceRequest) returns (Namespace) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/scopes/*/namespaces/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a fleet namespace. + rpc CreateScopeNamespace(CreateScopeNamespaceRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/scopes/*}/namespaces" + body: "scope_namespace" + }; + option (google.api.method_signature) = + "parent,scope_namespace,scope_namespace_id"; + option (google.longrunning.operation_info) = { + response_type: "Namespace" + metadata_type: "OperationMetadata" + }; + } + + // Updates a fleet namespace. + rpc UpdateScopeNamespace(UpdateScopeNamespaceRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{scope_namespace.name=projects/*/locations/*/scopes/*/namespaces/*}" + body: "scope_namespace" + }; + option (google.api.method_signature) = "scope_namespace,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Namespace" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a fleet namespace. + rpc DeleteScopeNamespace(DeleteScopeNamespaceRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/scopes/*/namespaces/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Lists fleet namespaces. + rpc ListScopeNamespaces(ListScopeNamespacesRequest) + returns (ListScopeNamespacesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/scopes/*}/namespaces" + }; + option (google.api.method_signature) = "parent"; + } + + // Returns the details of a Scope RBACRoleBinding. + rpc GetScopeRBACRoleBinding(GetScopeRBACRoleBindingRequest) + returns (RBACRoleBinding) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/scopes/*/rbacrolebindings/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a Scope RBACRoleBinding. + rpc CreateScopeRBACRoleBinding(CreateScopeRBACRoleBindingRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/scopes/*}/rbacrolebindings" + body: "rbacrolebinding" + }; + option (google.api.method_signature) = + "parent,rbacrolebinding,rbacrolebinding_id"; + option (google.longrunning.operation_info) = { + response_type: "RBACRoleBinding" + metadata_type: "OperationMetadata" + }; + } + + // Updates a Scope RBACRoleBinding. + rpc UpdateScopeRBACRoleBinding(UpdateScopeRBACRoleBindingRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{rbacrolebinding.name=projects/*/locations/*/scopes/*/rbacrolebindings/*}" + body: "rbacrolebinding" + }; + option (google.api.method_signature) = "rbacrolebinding,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "RBACRoleBinding" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a Scope RBACRoleBinding. + rpc DeleteScopeRBACRoleBinding(DeleteScopeRBACRoleBindingRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/scopes/*/rbacrolebindings/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Lists all Scope RBACRoleBindings. + rpc ListScopeRBACRoleBindings(ListScopeRBACRoleBindingsRequest) + returns (ListScopeRBACRoleBindingsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/scopes/*}/rbacrolebindings" + }; + option (google.api.method_signature) = "parent"; + } + + // Returns the details of a Scope. + rpc GetScope(GetScopeRequest) returns (Scope) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/scopes/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a Scope. + rpc CreateScope(CreateScopeRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/scopes" + body: "scope" + }; + option (google.api.method_signature) = "parent,scope,scope_id"; + option (google.longrunning.operation_info) = { + response_type: "Scope" + metadata_type: "OperationMetadata" + }; + } + + // Updates a scopes. + rpc UpdateScope(UpdateScopeRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{scope.name=projects/*/locations/*/scopes/*}" + body: "scope" + }; + option (google.api.method_signature) = "scope,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Scope" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a Scope. + rpc DeleteScope(DeleteScopeRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/scopes/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Lists Scopes. + rpc ListScopes(ListScopesRequest) returns (ListScopesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/scopes" + }; + option (google.api.method_signature) = "parent"; + } + + // Lists permitted Scopes. + rpc ListPermittedScopes(ListPermittedScopesRequest) + returns (ListPermittedScopesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/scopes:listPermitted" + }; + option (google.api.method_signature) = "parent"; + } + + // Returns the details of a MembershipBinding. + rpc GetMembershipBinding(GetMembershipBindingRequest) + returns (MembershipBinding) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/memberships/*/bindings/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a MembershipBinding. + rpc CreateMembershipBinding(CreateMembershipBindingRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/memberships/*}/bindings" + body: "membership_binding" + }; + option (google.api.method_signature) = + "parent,membership_binding,membership_binding_id"; + option (google.longrunning.operation_info) = { + response_type: "MembershipBinding" + metadata_type: "OperationMetadata" + }; + } + + // Updates a MembershipBinding. + rpc UpdateMembershipBinding(UpdateMembershipBindingRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{membership_binding.name=projects/*/locations/*/memberships/*/bindings/*}" + body: "membership_binding" + }; + option (google.api.method_signature) = "membership_binding,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "MembershipBinding" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a MembershipBinding. + rpc DeleteMembershipBinding(DeleteMembershipBindingRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/memberships/*/bindings/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Lists MembershipBindings. + rpc ListMembershipBindings(ListMembershipBindingsRequest) + returns (ListMembershipBindingsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/memberships/*}/bindings" + }; + option (google.api.method_signature) = "parent"; + } + + // Returns the details of a Membership RBACRoleBinding. + rpc GetMembershipRBACRoleBinding(GetMembershipRBACRoleBindingRequest) + returns (RBACRoleBinding) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/memberships/*/rbacrolebindings/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a Membership RBACRoleBinding. + rpc CreateMembershipRBACRoleBinding(CreateMembershipRBACRoleBindingRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/memberships/*}/rbacrolebindings" + body: "rbacrolebinding" + }; + option (google.api.method_signature) = + "parent,rbacrolebinding,rbacrolebinding_id"; + option (google.longrunning.operation_info) = { + response_type: "RBACRoleBinding" + metadata_type: "OperationMetadata" + }; + } + + // Updates a Membership RBACRoleBinding. + rpc UpdateMembershipRBACRoleBinding(UpdateMembershipRBACRoleBindingRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{rbacrolebinding.name=projects/*/locations/*/memberships/*/rbacrolebindings/*}" + body: "rbacrolebinding" + }; + option (google.api.method_signature) = "rbacrolebinding,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "RBACRoleBinding" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a Membership RBACRoleBinding. + rpc DeleteMembershipRBACRoleBinding(DeleteMembershipRBACRoleBindingRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/memberships/*/rbacrolebindings/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Lists all Membership RBACRoleBindings. + rpc ListMembershipRBACRoleBindings(ListMembershipRBACRoleBindingsRequest) + returns (ListMembershipRBACRoleBindingsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/memberships/*}/rbacrolebindings" + }; + option (google.api.method_signature) = "parent"; + } + + // Generates a YAML of the RBAC policies for the specified + // RoleBinding and its associated impersonation resources. + rpc GenerateMembershipRBACRoleBindingYAML( + GenerateMembershipRBACRoleBindingYAMLRequest) + returns (GenerateMembershipRBACRoleBindingYAMLResponse) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/memberships/*}/rbacrolebindings:generateMembershipRBACRoleBindingYAML" + body: "rbacrolebinding" + }; + } +} + +// Request message for the `GkeHub.GetNamespace` method. +message GetScopeNamespaceRequest { + // Required. The Namespace resource name in the format + // `projects/*/locations/*/scopes/*/namespaces/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gkehub.googleapis.com/Namespace" + } + ]; +} + +// Request to create a fleet namespace. +message CreateScopeNamespaceRequest { + // Required. The parent (project and location) where the Namespace will be + // created. Specified in the format `projects/*/locations/*/scopes/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gkehub.googleapis.com/Namespace" + } + ]; + + // Required. Client chosen ID for the Namespace. `namespace_id` must be a + // valid RFC 1123 compliant DNS label: + // + // 1. At most 63 characters in length + // 2. It must consist of lower case alphanumeric characters or `-` + // 3. It must start and end with an alphanumeric character + // + // Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, + // with a maximum length of 63 characters. + string scope_namespace_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The fleet namespace to create. + Namespace scope_namespace = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request to update a fleet namespace. +message UpdateScopeNamespaceRequest { + // Required. A namespace with fields updated. The 'name' field in this + // namespace is used to identify the resource to update. Given 'updated' + // prefix to follow go/proto-best-practices-checkers#keyword_conflict + Namespace scope_namespace = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The fields to be updated. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request to delete a fleet namespace. +message DeleteScopeNamespaceRequest { + // Required. The Namespace resource name in the format + // `projects/*/locations/*/scopes/*/namespaces/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gkehub.googleapis.com/Namespace" + } + ]; +} + +// Request to list fleet namespaces. +message ListScopeNamespacesRequest { + // Required. The parent (project and location) where the Features will be + // listed. Specified in the format `projects/*/locations/*/scopes/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gkehub.googleapis.com/Namespace" + } + ]; + + // Optional. When requesting a 'page' of resources, `page_size` specifies + // number of resources to return. If unspecified or set to 0, all resources + // will be returned. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Token returned by previous call to `ListFeatures` which + // specifies the position in the list from where to continue listing the + // resources. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// List of fleet namespaces. +message ListScopeNamespacesResponse { + // The list of fleet namespaces + repeated Namespace scope_namespaces = 1; + + // A token to request the next page of resources from the + // `ListNamespaces` method. The value of an empty string means + // that there are no more resources to return. + string next_page_token = 2; +} + +// Request message for the `GkeHub.GetScopeRBACRoleBinding` method. +message GetScopeRBACRoleBindingRequest { + // Required. The RBACRoleBinding resource name in the format + // `projects/*/locations/*/scopes/*/rbacrolebindings/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gkehub.googleapis.com/RBACRoleBinding" + } + ]; +} + +// Request to create a rbacrolebindings. +message CreateScopeRBACRoleBindingRequest { + // Required. The parent (project and location) where the RBACRoleBinding will + // be created. Specified in the format `projects/*/locations/*/scopes/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gkehub.googleapis.com/RBACRoleBinding" + } + ]; + + // Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id` + // must be a valid RFC 1123 compliant DNS label: + // + // 1. At most 63 characters in length + // 2. It must consist of lower case alphanumeric characters or `-` + // 3. It must start and end with an alphanumeric character + // + // Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, + // with a maximum length of 63 characters. + string rbacrolebinding_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The rbacrolebindings to create. + RBACRoleBinding rbacrolebinding = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request to update a scope rbacrolebinding. +message UpdateScopeRBACRoleBindingRequest { + // Required. A rbacrolebinding with fields updated. The 'name' field in this + // rbacrolebinding is used to identify the resource to update. + RBACRoleBinding rbacrolebinding = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The fields to be updated. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request to delete a Scope RBACRoleBinding. +message DeleteScopeRBACRoleBindingRequest { + // Required. The RBACRoleBinding resource name in the format + // `projects/*/locations/*/scopes/*/rbacrolebindings/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gkehub.googleapis.com/RBACRoleBinding" + } + ]; +} + +// Request to list Scope RBACRoleBindings. +message ListScopeRBACRoleBindingsRequest { + // Required. The parent (project and location) where the Features will be + // listed. Specified in the format `projects/*/locations/*/scopes/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gkehub.googleapis.com/RBACRoleBinding" + } + ]; + + // Optional. When requesting a 'page' of resources, `page_size` specifies + // number of resources to return. If unspecified or set to 0, all resources + // will be returned. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Token returned by previous call to `ListScopeRBACRoleBindings` + // which specifies the position in the list from where to continue listing the + // resources. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// List of Scope RBACRoleBindings. +message ListScopeRBACRoleBindingsResponse { + // The list of Scope RBACRoleBindings. + repeated RBACRoleBinding rbacrolebindings = 1; + + // A token to request the next page of resources from the + // `ListScopeRBACRoleBindings` method. The value of an empty string means + // that there are no more resources to return. + string next_page_token = 2; +} + +// Request message for the `GkeHub.GetScope` method. +message GetScopeRequest { + // Required. The Scope resource name in the format + // `projects/*/locations/*/scopes/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "gkehub.googleapis.com/Scope" } + ]; +} + +// Request to create a Scope. +message CreateScopeRequest { + // Required. The parent (project and location) where the Scope will be + // created. Specified in the format `projects/*/locations/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gkehub.googleapis.com/Scope" + } + ]; + + // Required. Client chosen ID for the Scope. `scope_id` must be a + // ???? + string scope_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The Scope to create. + Scope scope = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request to update a Scope. +message UpdateScopeRequest { + // Required. A Scope with fields updated. The 'name' field in this + // namespace is used to identify the resource to update. + Scope scope = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The fields to be updated. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request to delete a Scope. +message DeleteScopeRequest { + // Required. The Scope resource name in the format + // `projects/*/locations/*/scopes/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "gkehub.googleapis.com/Scope" } + ]; +} + +// Request to list Scopes. +message ListScopesRequest { + // Required. The parent (project and location) where the Scope will be listed. + // Specified in the format `projects/*/locations/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gkehub.googleapis.com/Scope" + } + ]; + + // Optional. When requesting a 'page' of resources, `page_size` specifies + // number of resources to return. If unspecified or set to 0, all resources + // will be returned. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Token returned by previous call to `ListScopes` which + // specifies the position in the list from where to continue listing the + // resources. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// List of Scopes. +message ListScopesResponse { + // The list of Scopes + repeated Scope scopes = 1; + + // A token to request the next page of resources from the + // `ListScopes` method. The value of an empty string means + // that there are no more resources to return. + string next_page_token = 2; +} + +// Request to list permitted Scopes. +message ListPermittedScopesRequest { + // Required. The parent (project and location) where the Scope will be listed. + // Specified in the format `projects/*/locations/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gkehub.googleapis.com/Scope" + } + ]; + + // Optional. When requesting a 'page' of resources, `page_size` specifies + // number of resources to return. If unspecified or set to 0, all resources + // will be returned. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Token returned by previous call to `ListPermittedScopes` which + // specifies the position in the list from where to continue listing the + // resources. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// List of permitted Scopes. +message ListPermittedScopesResponse { + // The list of permitted Scopes + repeated Scope scopes = 1; + + // A token to request the next page of resources from the + // `ListPermittedScopes` method. The value of an empty string means + // that there are no more resources to return. + string next_page_token = 2; +} + +// Request message for the `GkeHub.GetMembershipBinding` method. +message GetMembershipBindingRequest { + // Required. The MembershipBinding resource name in the format + // `projects/*/locations/*/memberships/*/bindings/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gkehub.googleapis.com/MembershipBinding" + } + ]; +} + +// Request to create a MembershipBinding. +message CreateMembershipBindingRequest { + // Required. The parent (project and location) where the MembershipBinding + // will be created. Specified in the format + // `projects/*/locations/*/memberships/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gkehub.googleapis.com/MembershipBinding" + } + ]; + + // Required. The MembershipBinding to create. + MembershipBinding membership_binding = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The ID to use for the MembershipBinding. + string membership_binding_id = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request to update a MembershipBinding. +message UpdateMembershipBindingRequest { + // Required. The MembershipBinding object with fields updated. + MembershipBinding membership_binding = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The fields to be updated. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request to delete a Binding. +message DeleteMembershipBindingRequest { + // Required. The MembershipBinding resource name in the format + // `projects/*/locations/*/memberships/*/bindings/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gkehub.googleapis.com/MembershipBinding" + } + ]; +} + +// Request to list MembershipBinding. +message ListMembershipBindingsRequest { + // Required. The parent Membership for which the MembershipBindings will be + // listed. Specified in the format `projects/*/locations/*/memberships/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gkehub.googleapis.com/MembershipBinding" + } + ]; - // Adds a new Feature. - rpc CreateFeature(CreateFeatureRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1/{parent=projects/*/locations/*}/features" - body: "resource" - }; - option (google.api.method_signature) = "parent,resource,feature_id"; - option (google.longrunning.operation_info) = { - response_type: "Feature" - metadata_type: "OperationMetadata" - }; - } + // Optional. When requesting a 'page' of resources, `page_size` specifies + // number of resources to return. If unspecified or set to 0, all resources + // will be returned. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // Removes a Membership. - // - // **This is currently only supported for GKE clusters on Google Cloud**. - // To unregister other clusters, follow the instructions at - // https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster. - rpc DeleteMembership(DeleteMembershipRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - delete: "/v1/{name=projects/*/locations/*/memberships/*}" - }; - option (google.api.method_signature) = "name"; - option (google.longrunning.operation_info) = { - response_type: "google.protobuf.Empty" - metadata_type: "OperationMetadata" - }; - } + // Optional. Token returned by previous call to `ListMembershipBindings` which + // specifies the position in the list from where to continue listing the + // resources. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - // Removes a Feature. - rpc DeleteFeature(DeleteFeatureRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - delete: "/v1/{name=projects/*/locations/*/features/*}" - }; - option (google.api.method_signature) = "name"; - option (google.longrunning.operation_info) = { - response_type: "google.protobuf.Empty" - metadata_type: "OperationMetadata" - }; - } + // Optional. Lists MembershipBindings that match the filter expression, + // following the syntax outlined in https://google.aip.dev/160. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; +} - // Updates an existing Membership. - rpc UpdateMembership(UpdateMembershipRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - patch: "/v1/{name=projects/*/locations/*/memberships/*}" - body: "resource" - }; - option (google.api.method_signature) = "name,resource,update_mask"; - option (google.longrunning.operation_info) = { - response_type: "Membership" - metadata_type: "OperationMetadata" - }; - } +// List of MembershipBindings. +message ListMembershipBindingsResponse { + // The list of membership_bindings + repeated MembershipBinding membership_bindings = 1; - // Updates an existing Feature. - rpc UpdateFeature(UpdateFeatureRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - patch: "/v1/{name=projects/*/locations/*/features/*}" - body: "resource" - }; - option (google.api.method_signature) = "name,resource,update_mask"; - option (google.longrunning.operation_info) = { - response_type: "Feature" - metadata_type: "OperationMetadata" - }; - } + // A token to request the next page of resources from the + // `ListMembershipBindings` method. The value of an empty string means + // that there are no more resources to return. + string next_page_token = 2; - // Generates the manifest for deployment of the GKE connect agent. - // - // **This method is used internally by Google-provided libraries.** - // Most clients should not need to call this method directly. - rpc GenerateConnectManifest(GenerateConnectManifestRequest) - returns (GenerateConnectManifestResponse) { - option (google.api.http) = { - get: "/v1/{name=projects/*/locations/*/memberships/*}:generateConnectManifest" - }; - } + // List of locations that could not be reached while fetching this list. + repeated string unreachable = 3; } // Request message for `GkeHub.ListMemberships` method. @@ -240,6 +1022,140 @@ message ListMembershipsRequest { string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; } +// Request message for the `GkeHub.GetMembershipRBACRoleBinding` method. +message GetMembershipRBACRoleBindingRequest { + // Required. The RBACRoleBinding resource name in the format + // `projects/*/locations/*/memberships/*/rbacrolebindings/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gkehub.googleapis.com/RBACRoleBinding" + } + ]; +} + +// Request to create a rbacrolebindings. +message CreateMembershipRBACRoleBindingRequest { + // Required. The parent (project and location) where the RBACRoleBinding will + // be created. Specified in the format `projects/*/locations/*/memberships/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gkehub.googleapis.com/RBACRoleBinding" + } + ]; + + // Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id` + // must be a valid RFC 1123 compliant DNS label: + // + // 1. At most 63 characters in length + // 2. It must consist of lower case alphanumeric characters or `-` + // 3. It must start and end with an alphanumeric character + // + // Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, + // with a maximum length of 63 characters. + string rbacrolebinding_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The rbacrolebindings to create. + RBACRoleBinding rbacrolebinding = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request to update a membership rbacrolebinding. +message UpdateMembershipRBACRoleBindingRequest { + // Required. A rbacrolebinding with fields updated. The 'name' field in this + // rbacrolebinding is used to identify the resource to update. + RBACRoleBinding rbacrolebinding = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The fields to be updated. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request to delete a Membership RBACRoleBinding. +message DeleteMembershipRBACRoleBindingRequest { + // Required. The RBACRoleBinding resource name in the format + // `projects/*/locations/*/memberships/*/rbacrolebindings/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gkehub.googleapis.com/RBACRoleBinding" + } + ]; +} + +// Request to list Membership RBACRoleBindings. +message ListMembershipRBACRoleBindingsRequest { + // Required. The parent (project and location) where the Features will be + // listed. Specified in the format `projects/*/locations/*/memberships/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gkehub.googleapis.com/RBACRoleBinding" + } + ]; + + // Optional. When requesting a 'page' of resources, `page_size` specifies + // number of resources to return. If unspecified or set to 0, all resources + // will be returned. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Token returned by previous call to + // `ListMembershipRBACRoleBindings` which specifies the position in the list + // from where to continue listing the resources. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// List of Membership RBACRoleBindings. +message ListMembershipRBACRoleBindingsResponse { + // The list of Membership RBACRoleBindings. + repeated RBACRoleBinding rbacrolebindings = 1; + + // A token to request the next page of resources from the + // `ListMembershipRBACRoleBindings` method. The value of an empty string means + // that there are no more resources to return. + string next_page_token = 2; + + // List of locations that could not be reached while fetching this list. + repeated string unreachable = 3; +} + +// Request to generate a YAML of the RBAC policies for the specified +// RoleBinding and its associated impersonation resources. +message GenerateMembershipRBACRoleBindingYAMLRequest { + // Required. The parent (project and location) where the RBACRoleBinding will + // be created. Specified in the format `projects/*/locations/*/memberships/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + // Manually set the type to be the Membership resource type because the + // RBACRoleBinding is a child of the Membership resource and + // GenerateMembershipRBACRoleBindingYAM RPC should + // only be called with the membership resource parent. + type: "gkehub.googleapis.com/Membership" + } + ]; + + // Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id` + // must be a valid RFC 1123 compliant DNS label: + // + // 1. At most 63 characters in length + // 2. It must consist of lower case alphanumeric characters or `-` + // 3. It must start and end with an alphanumeric character + // + // Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, + // with a maximum length of 63 characters. + string rbacrolebinding_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The rbacrolebindings to generate the YAML for. + RBACRoleBinding rbacrolebinding = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Response for GenerateRBACRoleBindingYAML. +message GenerateMembershipRBACRoleBindingYAMLResponse { + // a yaml text blob including the RBAC policies. + string role_bindings_yaml = 1; +} + // Response message for the `GkeHub.ListMemberships` method. message ListMembershipsResponse { // The list of matching Memberships. @@ -266,6 +1182,47 @@ message GetMembershipRequest { ]; } +// Request to list Memberships bound to a Scope. +message ListBoundMembershipsRequest { + // Required. Name of the Scope, in the format + // `projects/*/locations/global/scopes/*`, to which the Memberships are bound. + string scope_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "gkehub.googleapis.com/Scope" } + ]; + + // Optional. Lists Memberships that match the filter expression, following the + // syntax outlined in https://google.aip.dev/160. Currently, filtering + // can be done only based on Memberships's `name`, `labels`, `create_time`, + // `update_time`, and `unique_id`. + string filter = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. When requesting a 'page' of resources, `page_size` specifies + // number of resources to return. If unspecified or set to 0, all resources + // will be returned. Pagination is currently not supported; therefore, setting + // this field does not have any impact for now. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Token returned by previous call to `ListBoundMemberships` which + // specifies the position in the list from where to continue listing the + // resources. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// List of Memberships bound to a Scope. +message ListBoundMembershipsResponse { + // The list of Memberships bound to the given Scope. + repeated Membership memberships = 1; + + // List of locations that could not be reached while fetching this list. + repeated string unreachable = 2; + + // A token to request the next page of resources from the + // `ListBoundMemberships` method. The value of an empty string means that + // there are no more resources to return. + string next_page_token = 3; +} + // Request message for the `GkeHub.CreateMembership` method. message CreateMembershipRequest { // Required. The parent (project and location) where the Memberships will be @@ -491,6 +1448,12 @@ message ListFeaturesRequest { // One or more fields to compare and use to sort the output. // See https://google.aip.dev/132#ordering. string order_by = 5; + + // Optional. If set to true, the response will return partial results when + // some regions are unreachable and the unreachable field in Feature proto + // will be populated. If set to false, the request will fail when some regions + // are unreachable. + bool return_partial_success = 6 [(google.api.field_behavior) = OPTIONAL]; } // Response message for the `GkeHub.ListFeatures` method. @@ -511,6 +1474,12 @@ message GetFeatureRequest { string name = 1 [ (google.api.resource_reference) = { type: "gkehub.googleapis.com/Feature" } ]; + + // Optional. If set to true, the response will return partial results when + // some regions are unreachable and the unreachable field in Feature proto + // will be populated. If set to false, the request will fail when some regions + // are unreachable. + bool return_partial_success = 2 [(google.api.field_behavior) = OPTIONAL]; } // Request message for the `GkeHub.CreateFeature` method. @@ -527,7 +1496,7 @@ message CreateFeatureRequest { // The Feature resource to create. Feature resource = 3; - // Optional. A request ID to identify requests. Specify a unique request ID + // A request ID to identify requests. Specify a unique request ID // so that if you must retry your request, the server will know to ignore // the request if it has already been completed. The server will guarantee // that for at least 60 minutes after the first request. @@ -593,7 +1562,7 @@ message UpdateFeatureRequest { // user-modifiable fields to match `resource`. Feature resource = 3; - // Optional. A request ID to identify requests. Specify a unique request ID + // A request ID to identify requests. Specify a unique request ID // so that if you must retry your request, the server will know to ignore // the request if it has already been completed. The server will guarantee // that for at least 60 minutes after the first request. @@ -609,6 +1578,97 @@ message UpdateFeatureRequest { string request_id = 4; } +// Request message for the `GkeHub.CreateFleet` method. +message CreateFleetRequest { + // Required. The parent (project and location) where the Fleet will be + // created. Specified in the format `projects/*/locations/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + // Manually set the type to "locations.googleapis.com/Location" because + // the generated child_type - `gkehub.googleapis.com/Fleet` creates a + // conflict between Organization and Project Level locations with client + // library generation. + type: "locations.googleapis.com/Location", + } + ]; + + // Required. The fleet to create. + Fleet fleet = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for the `GkeHub.GetFleet` method. +message GetFleetRequest { + // Required. The Fleet resource name in the format + // `projects/*/locations/*/fleets/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "gkehub.googleapis.com/Fleet" } + ]; +} + +// Request message for the `GkeHub.UpdateFleet` method. +message UpdateFleetRequest { + // Required. The Fleet to update. + // + // The `name` field of the Fleet object identifies which fleet will be + // updated. + Fleet fleet = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The fields to be updated; + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for `GkeHub.DeleteFleet` method. +message DeleteFleetRequest { + // Required. The Fleet resource name in the format + // `projects/*/locations/*/fleets/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "gkehub.googleapis.com/Fleet" } + ]; +} + +// Request message for the `GkeHub.ListFleets` method. +message ListFleetsRequest { + // Required. The organization or project to list for Fleets under, in the + // format `organizations/*/locations/*` or `projects/*/locations/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + // Manually set the type to "locations.googleapis.com/Location" because + // the generated child_type - `gkehub.googleapis.com/Fleet` creates a + // conflict between Organization and Project Level locations with client + // library generation. + type: "locations.googleapis.com/Location", + } + ]; + + // Optional. A page token, received from a previous `ListFleets` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListFleets` must match + // the call that provided the page token. + string page_token = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum number of fleets to return. The service may return + // fewer than this value. If unspecified, at most 200 fleets will be returned. + // The maximum value is 1000; values above 1000 will be coerced to 1000. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for the `GkeHub.ListFleetsResponse` method. +message ListFleetsResponse { + // The list of matching fleets. + repeated Fleet fleets = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + // The token is only valid for 1h. + string next_page_token = 2; +} + // Represents the metadata of the long-running operation. message OperationMetadata { // Output only. The time the operation was created. @@ -630,9 +1690,10 @@ message OperationMetadata { // Output only. Identifies whether the user has requested cancellation // of the operation. Operations that have successfully been cancelled - // have [Operation.error][] value with a - // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - // `Code.CANCELLED`. + // have + // [google.longrunning.Operation.error][google.longrunning.Operation.error] + // value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, + // corresponding to `Code.CANCELLED`. bool cancel_requested = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. API version used to start the operation. diff --git a/java-gkehub/proto-google-cloud-gkehub-v1alpha/pom.xml b/java-gkehub/proto-google-cloud-gkehub-v1alpha/pom.xml index 520d8a8692e3..4020615540e5 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1alpha/pom.xml +++ b/java-gkehub/proto-google-cloud-gkehub-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gkehub-v1alpha - 0.90.0-SNAPSHOT + 0.91.0 proto-google-cloud-gkehub-v1alpha Proto library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.84.0-SNAPSHOT + 1.85.0 diff --git a/java-gkehub/proto-google-cloud-gkehub-v1beta/pom.xml b/java-gkehub/proto-google-cloud-gkehub-v1beta/pom.xml index 4391d99da682..9b3a58de5263 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1beta/pom.xml +++ b/java-gkehub/proto-google-cloud-gkehub-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gkehub-v1beta - 0.90.0-SNAPSHOT + 0.91.0 proto-google-cloud-gkehub-v1beta Proto library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.84.0-SNAPSHOT + 1.85.0 diff --git a/java-gkehub/proto-google-cloud-gkehub-v1beta1/pom.xml b/java-gkehub/proto-google-cloud-gkehub-v1beta1/pom.xml index 1d626e6cfc97..fc42daac508a 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1beta1/pom.xml +++ b/java-gkehub/proto-google-cloud-gkehub-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gkehub-v1beta1 - 0.90.0-SNAPSHOT + 0.91.0 proto-google-cloud-gkehub-v1beta1 Proto library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.84.0-SNAPSHOT + 1.85.0 diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/create/SyncCreateSetCredentialsProvider.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..3ecd36f13601 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.GkeHubSettings; +import com.google.cloud.gkehub.v1.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 + GkeHubSettings gkeHubSettings = + GkeHubSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings); + } +} +// [END gkehub_v1_generated_GkeHub_Create_SetCredentialsProvider_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/create/SyncCreateSetEndpoint.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..ac7ed4c92b8a --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/create/SyncCreateSetEndpoint.java @@ -0,0 +1,40 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_Create_SetEndpoint_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.GkeHubSettings; +import com.google.cloud.gkehub.v1.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 + GkeHubSettings gkeHubSettings = GkeHubSettings.newBuilder().setEndpoint(myEndpoint).build(); + GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings); + } +} +// [END gkehub_v1_generated_GkeHub_Create_SetEndpoint_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/create/SyncCreateUseHttpJsonTransport.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..821d0fd41709 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_Create_UseHttpJsonTransport_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.GkeHubSettings; + +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 + GkeHubSettings gkeHubSettings = GkeHubSettings.newHttpJsonBuilder().build(); + GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings); + } +} +// [END gkehub_v1_generated_GkeHub_Create_UseHttpJsonTransport_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/AsyncCreateFeature.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/AsyncCreateFeature.java new file mode 100644 index 000000000000..ff53b4db7ca7 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/AsyncCreateFeature.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateFeature_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.CreateFeatureRequest; +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateFeature { + + public static void main(String[] args) throws Exception { + asyncCreateFeature(); + } + + public static void asyncCreateFeature() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateFeatureRequest request = + CreateFeatureRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFeatureId("featureId-420503887") + .setResource(Feature.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = gkeHubClient.createFeatureCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateFeature_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/AsyncCreateFeatureLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/AsyncCreateFeatureLRO.java new file mode 100644 index 000000000000..072f53f6843c --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/AsyncCreateFeatureLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateFeature_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.CreateFeatureRequest; +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.OperationMetadata; + +public class AsyncCreateFeatureLRO { + + public static void main(String[] args) throws Exception { + asyncCreateFeatureLRO(); + } + + public static void asyncCreateFeatureLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateFeatureRequest request = + CreateFeatureRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFeatureId("featureId-420503887") + .setResource(Feature.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + gkeHubClient.createFeatureOperationCallable().futureCall(request); + // Do something. + Feature response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateFeature_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/SyncCreateFeature.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/SyncCreateFeature.java new file mode 100644 index 000000000000..bb43c8facfe8 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/SyncCreateFeature.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateFeature_sync] +import com.google.cloud.gkehub.v1.CreateFeatureRequest; +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; + +public class SyncCreateFeature { + + public static void main(String[] args) throws Exception { + syncCreateFeature(); + } + + public static void syncCreateFeature() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateFeatureRequest request = + CreateFeatureRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFeatureId("featureId-420503887") + .setResource(Feature.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Feature response = gkeHubClient.createFeatureAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateFeature_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/SyncCreateFeatureLocationnameFeatureString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/SyncCreateFeatureLocationnameFeatureString.java new file mode 100644 index 000000000000..b1044e47905f --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/SyncCreateFeatureLocationnameFeatureString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateFeature_LocationnameFeatureString_sync] +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; + +public class SyncCreateFeatureLocationnameFeatureString { + + public static void main(String[] args) throws Exception { + syncCreateFeatureLocationnameFeatureString(); + } + + public static void syncCreateFeatureLocationnameFeatureString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Feature resource = Feature.newBuilder().build(); + String featureId = "featureId-420503887"; + Feature response = gkeHubClient.createFeatureAsync(parent, resource, featureId).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateFeature_LocationnameFeatureString_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/SyncCreateFeatureStringFeatureString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/SyncCreateFeatureStringFeatureString.java new file mode 100644 index 000000000000..4f11c4690669 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfeature/SyncCreateFeatureStringFeatureString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateFeature_StringFeatureString_sync] +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; + +public class SyncCreateFeatureStringFeatureString { + + public static void main(String[] args) throws Exception { + syncCreateFeatureStringFeatureString(); + } + + public static void syncCreateFeatureStringFeatureString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Feature resource = Feature.newBuilder().build(); + String featureId = "featureId-420503887"; + Feature response = gkeHubClient.createFeatureAsync(parent, resource, featureId).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateFeature_StringFeatureString_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/AsyncCreateFleet.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/AsyncCreateFleet.java new file mode 100644 index 000000000000..8718514613c3 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/AsyncCreateFleet.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateFleet_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.CreateFleetRequest; +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateFleet { + + public static void main(String[] args) throws Exception { + asyncCreateFleet(); + } + + public static void asyncCreateFleet() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateFleetRequest request = + CreateFleetRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFleet(Fleet.newBuilder().build()) + .build(); + ApiFuture future = gkeHubClient.createFleetCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateFleet_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/AsyncCreateFleetLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/AsyncCreateFleetLRO.java new file mode 100644 index 000000000000..a17c76212b63 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/AsyncCreateFleetLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateFleet_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.CreateFleetRequest; +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.OperationMetadata; + +public class AsyncCreateFleetLRO { + + public static void main(String[] args) throws Exception { + asyncCreateFleetLRO(); + } + + public static void asyncCreateFleetLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateFleetRequest request = + CreateFleetRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFleet(Fleet.newBuilder().build()) + .build(); + OperationFuture future = + gkeHubClient.createFleetOperationCallable().futureCall(request); + // Do something. + Fleet response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateFleet_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/SyncCreateFleet.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/SyncCreateFleet.java new file mode 100644 index 000000000000..4cd43af4f06d --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/SyncCreateFleet.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateFleet_sync] +import com.google.cloud.gkehub.v1.CreateFleetRequest; +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; + +public class SyncCreateFleet { + + public static void main(String[] args) throws Exception { + syncCreateFleet(); + } + + public static void syncCreateFleet() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateFleetRequest request = + CreateFleetRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFleet(Fleet.newBuilder().build()) + .build(); + Fleet response = gkeHubClient.createFleetAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateFleet_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/SyncCreateFleetLocationnameFleet.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/SyncCreateFleetLocationnameFleet.java new file mode 100644 index 000000000000..a81cf2a53fa3 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/SyncCreateFleetLocationnameFleet.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateFleet_LocationnameFleet_sync] +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; + +public class SyncCreateFleetLocationnameFleet { + + public static void main(String[] args) throws Exception { + syncCreateFleetLocationnameFleet(); + } + + public static void syncCreateFleetLocationnameFleet() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Fleet fleet = Fleet.newBuilder().build(); + Fleet response = gkeHubClient.createFleetAsync(parent, fleet).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateFleet_LocationnameFleet_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/SyncCreateFleetStringFleet.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/SyncCreateFleetStringFleet.java new file mode 100644 index 000000000000..8197dbd95b54 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createfleet/SyncCreateFleetStringFleet.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateFleet_StringFleet_sync] +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; + +public class SyncCreateFleetStringFleet { + + public static void main(String[] args) throws Exception { + syncCreateFleetStringFleet(); + } + + public static void syncCreateFleetStringFleet() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Fleet fleet = Fleet.newBuilder().build(); + Fleet response = gkeHubClient.createFleetAsync(parent, fleet).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateFleet_StringFleet_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/AsyncCreateMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/AsyncCreateMembership.java new file mode 100644 index 000000000000..90b18ab35b67 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/AsyncCreateMembership.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateMembership_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.CreateMembershipRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Membership; +import com.google.longrunning.Operation; + +public class AsyncCreateMembership { + + public static void main(String[] args) throws Exception { + asyncCreateMembership(); + } + + public static void asyncCreateMembership() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateMembershipRequest request = + CreateMembershipRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setMembershipId("membershipId517665681") + .setResource(Membership.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = gkeHubClient.createMembershipCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateMembership_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/AsyncCreateMembershipLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/AsyncCreateMembershipLRO.java new file mode 100644 index 000000000000..1552444724ed --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/AsyncCreateMembershipLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateMembership_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.CreateMembershipRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.OperationMetadata; + +public class AsyncCreateMembershipLRO { + + public static void main(String[] args) throws Exception { + asyncCreateMembershipLRO(); + } + + public static void asyncCreateMembershipLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateMembershipRequest request = + CreateMembershipRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setMembershipId("membershipId517665681") + .setResource(Membership.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + gkeHubClient.createMembershipOperationCallable().futureCall(request); + // Do something. + Membership response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateMembership_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/SyncCreateMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/SyncCreateMembership.java new file mode 100644 index 000000000000..83a17838fcfd --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/SyncCreateMembership.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateMembership_sync] +import com.google.cloud.gkehub.v1.CreateMembershipRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Membership; + +public class SyncCreateMembership { + + public static void main(String[] args) throws Exception { + syncCreateMembership(); + } + + public static void syncCreateMembership() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateMembershipRequest request = + CreateMembershipRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setMembershipId("membershipId517665681") + .setResource(Membership.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Membership response = gkeHubClient.createMembershipAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateMembership_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/SyncCreateMembershipLocationnameMembershipString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/SyncCreateMembershipLocationnameMembershipString.java new file mode 100644 index 000000000000..9adb3bd9eee6 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/SyncCreateMembershipLocationnameMembershipString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateMembership_LocationnameMembershipString_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Membership; + +public class SyncCreateMembershipLocationnameMembershipString { + + public static void main(String[] args) throws Exception { + syncCreateMembershipLocationnameMembershipString(); + } + + public static void syncCreateMembershipLocationnameMembershipString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Membership resource = Membership.newBuilder().build(); + String membershipId = "membershipId517665681"; + Membership response = + gkeHubClient.createMembershipAsync(parent, resource, membershipId).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateMembership_LocationnameMembershipString_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/SyncCreateMembershipStringMembershipString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/SyncCreateMembershipStringMembershipString.java new file mode 100644 index 000000000000..63d96c6e0e60 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembership/SyncCreateMembershipStringMembershipString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateMembership_StringMembershipString_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Membership; + +public class SyncCreateMembershipStringMembershipString { + + public static void main(String[] args) throws Exception { + syncCreateMembershipStringMembershipString(); + } + + public static void syncCreateMembershipStringMembershipString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Membership resource = Membership.newBuilder().build(); + String membershipId = "membershipId517665681"; + Membership response = + gkeHubClient.createMembershipAsync(parent, resource, membershipId).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateMembership_StringMembershipString_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/AsyncCreateMembershipBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/AsyncCreateMembershipBinding.java new file mode 100644 index 000000000000..cd0785d5c60e --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/AsyncCreateMembershipBinding.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateMembershipBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.CreateMembershipBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.longrunning.Operation; + +public class AsyncCreateMembershipBinding { + + public static void main(String[] args) throws Exception { + asyncCreateMembershipBinding(); + } + + public static void asyncCreateMembershipBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateMembershipBindingRequest request = + CreateMembershipBindingRequest.newBuilder() + .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setMembershipBinding(MembershipBinding.newBuilder().build()) + .setMembershipBindingId("membershipBindingId1360802634") + .build(); + ApiFuture future = + gkeHubClient.createMembershipBindingCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateMembershipBinding_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/AsyncCreateMembershipBindingLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/AsyncCreateMembershipBindingLRO.java new file mode 100644 index 000000000000..c5694b31b0ea --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/AsyncCreateMembershipBindingLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateMembershipBinding_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.CreateMembershipBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.cloud.gkehub.v1.OperationMetadata; + +public class AsyncCreateMembershipBindingLRO { + + public static void main(String[] args) throws Exception { + asyncCreateMembershipBindingLRO(); + } + + public static void asyncCreateMembershipBindingLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateMembershipBindingRequest request = + CreateMembershipBindingRequest.newBuilder() + .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setMembershipBinding(MembershipBinding.newBuilder().build()) + .setMembershipBindingId("membershipBindingId1360802634") + .build(); + OperationFuture future = + gkeHubClient.createMembershipBindingOperationCallable().futureCall(request); + // Do something. + MembershipBinding response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateMembershipBinding_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/SyncCreateMembershipBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/SyncCreateMembershipBinding.java new file mode 100644 index 000000000000..eb7a52bce292 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/SyncCreateMembershipBinding.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateMembershipBinding_sync] +import com.google.cloud.gkehub.v1.CreateMembershipBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.MembershipName; + +public class SyncCreateMembershipBinding { + + public static void main(String[] args) throws Exception { + syncCreateMembershipBinding(); + } + + public static void syncCreateMembershipBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateMembershipBindingRequest request = + CreateMembershipBindingRequest.newBuilder() + .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setMembershipBinding(MembershipBinding.newBuilder().build()) + .setMembershipBindingId("membershipBindingId1360802634") + .build(); + MembershipBinding response = gkeHubClient.createMembershipBindingAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateMembershipBinding_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/SyncCreateMembershipBindingMembershipnameMembershipbindingString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/SyncCreateMembershipBindingMembershipnameMembershipbindingString.java new file mode 100644 index 000000000000..a013282bdfbe --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/SyncCreateMembershipBindingMembershipnameMembershipbindingString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateMembershipBinding_MembershipnameMembershipbindingString_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.MembershipName; + +public class SyncCreateMembershipBindingMembershipnameMembershipbindingString { + + public static void main(String[] args) throws Exception { + syncCreateMembershipBindingMembershipnameMembershipbindingString(); + } + + public static void syncCreateMembershipBindingMembershipnameMembershipbindingString() + 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + MembershipBinding membershipBinding = MembershipBinding.newBuilder().build(); + String membershipBindingId = "membershipBindingId1360802634"; + MembershipBinding response = + gkeHubClient + .createMembershipBindingAsync(parent, membershipBinding, membershipBindingId) + .get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateMembershipBinding_MembershipnameMembershipbindingString_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/SyncCreateMembershipBindingStringMembershipbindingString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/SyncCreateMembershipBindingStringMembershipbindingString.java new file mode 100644 index 000000000000..52cb87af335a --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershipbinding/SyncCreateMembershipBindingStringMembershipbindingString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateMembershipBinding_StringMembershipbindingString_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.MembershipName; + +public class SyncCreateMembershipBindingStringMembershipbindingString { + + public static void main(String[] args) throws Exception { + syncCreateMembershipBindingStringMembershipbindingString(); + } + + public static void syncCreateMembershipBindingStringMembershipbindingString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString(); + MembershipBinding membershipBinding = MembershipBinding.newBuilder().build(); + String membershipBindingId = "membershipBindingId1360802634"; + MembershipBinding response = + gkeHubClient + .createMembershipBindingAsync(parent, membershipBinding, membershipBindingId) + .get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateMembershipBinding_StringMembershipbindingString_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/AsyncCreateMembershipRBACRoleBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/AsyncCreateMembershipRBACRoleBinding.java new file mode 100644 index 000000000000..6214d1a8fd47 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/AsyncCreateMembershipRBACRoleBinding.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateMembershipRBACRoleBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; +import com.google.longrunning.Operation; + +public class AsyncCreateMembershipRBACRoleBinding { + + public static void main(String[] args) throws Exception { + asyncCreateMembershipRBACRoleBinding(); + } + + public static void asyncCreateMembershipRBACRoleBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateMembershipRBACRoleBindingRequest request = + CreateMembershipRBACRoleBindingRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setRbacrolebindingId("rbacrolebindingId827577784") + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .build(); + ApiFuture future = + gkeHubClient.createMembershipRBACRoleBindingCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateMembershipRBACRoleBinding_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/AsyncCreateMembershipRBACRoleBindingLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/AsyncCreateMembershipRBACRoleBindingLRO.java new file mode 100644 index 000000000000..3fa357b5d9e8 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/AsyncCreateMembershipRBACRoleBindingLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateMembershipRBACRoleBinding_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; + +public class AsyncCreateMembershipRBACRoleBindingLRO { + + public static void main(String[] args) throws Exception { + asyncCreateMembershipRBACRoleBindingLRO(); + } + + public static void asyncCreateMembershipRBACRoleBindingLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateMembershipRBACRoleBindingRequest request = + CreateMembershipRBACRoleBindingRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setRbacrolebindingId("rbacrolebindingId827577784") + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .build(); + OperationFuture future = + gkeHubClient.createMembershipRBACRoleBindingOperationCallable().futureCall(request); + // Do something. + RBACRoleBinding response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateMembershipRBACRoleBinding_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/SyncCreateMembershipRBACRoleBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/SyncCreateMembershipRBACRoleBinding.java new file mode 100644 index 000000000000..62ab9087c55f --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/SyncCreateMembershipRBACRoleBinding.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateMembershipRBACRoleBinding_sync] +import com.google.cloud.gkehub.v1.CreateMembershipRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncCreateMembershipRBACRoleBinding { + + public static void main(String[] args) throws Exception { + syncCreateMembershipRBACRoleBinding(); + } + + public static void syncCreateMembershipRBACRoleBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateMembershipRBACRoleBindingRequest request = + CreateMembershipRBACRoleBindingRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setRbacrolebindingId("rbacrolebindingId827577784") + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .build(); + RBACRoleBinding response = gkeHubClient.createMembershipRBACRoleBindingAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateMembershipRBACRoleBinding_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/SyncCreateMembershipRBACRoleBindingMembershipnameRbacrolebindingString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/SyncCreateMembershipRBACRoleBindingMembershipnameRbacrolebindingString.java new file mode 100644 index 000000000000..c7b2f033cfbe --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/SyncCreateMembershipRBACRoleBindingMembershipnameRbacrolebindingString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateMembershipRBACRoleBinding_MembershipnameRbacrolebindingString_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.cloud.gkehub.v1.RBACRoleBinding; + +public class SyncCreateMembershipRBACRoleBindingMembershipnameRbacrolebindingString { + + public static void main(String[] args) throws Exception { + syncCreateMembershipRBACRoleBindingMembershipnameRbacrolebindingString(); + } + + public static void syncCreateMembershipRBACRoleBindingMembershipnameRbacrolebindingString() + 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + RBACRoleBinding response = + gkeHubClient + .createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId) + .get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateMembershipRBACRoleBinding_MembershipnameRbacrolebindingString_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/SyncCreateMembershipRBACRoleBindingScopenameRbacrolebindingString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/SyncCreateMembershipRBACRoleBindingScopenameRbacrolebindingString.java new file mode 100644 index 000000000000..0370f9e44816 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/SyncCreateMembershipRBACRoleBindingScopenameRbacrolebindingString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateMembershipRBACRoleBinding_ScopenameRbacrolebindingString_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncCreateMembershipRBACRoleBindingScopenameRbacrolebindingString { + + public static void main(String[] args) throws Exception { + syncCreateMembershipRBACRoleBindingScopenameRbacrolebindingString(); + } + + public static void syncCreateMembershipRBACRoleBindingScopenameRbacrolebindingString() + 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + RBACRoleBinding response = + gkeHubClient + .createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId) + .get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateMembershipRBACRoleBinding_ScopenameRbacrolebindingString_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/SyncCreateMembershipRBACRoleBindingStringRbacrolebindingString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/SyncCreateMembershipRBACRoleBindingStringRbacrolebindingString.java new file mode 100644 index 000000000000..d0947fe2e883 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createmembershiprbacrolebinding/SyncCreateMembershipRBACRoleBindingStringRbacrolebindingString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateMembershipRBACRoleBinding_StringRbacrolebindingString_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncCreateMembershipRBACRoleBindingStringRbacrolebindingString { + + public static void main(String[] args) throws Exception { + syncCreateMembershipRBACRoleBindingStringRbacrolebindingString(); + } + + public static void syncCreateMembershipRBACRoleBindingStringRbacrolebindingString() + 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString(); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + RBACRoleBinding response = + gkeHubClient + .createMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId) + .get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateMembershipRBACRoleBinding_StringRbacrolebindingString_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/AsyncCreateScope.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/AsyncCreateScope.java new file mode 100644 index 000000000000..500d92511099 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/AsyncCreateScope.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateScope_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.CreateScopeRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Scope; +import com.google.longrunning.Operation; + +public class AsyncCreateScope { + + public static void main(String[] args) throws Exception { + asyncCreateScope(); + } + + public static void asyncCreateScope() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateScopeRequest request = + CreateScopeRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setScopeId("scopeId1923941007") + .setScope(Scope.newBuilder().build()) + .build(); + ApiFuture future = gkeHubClient.createScopeCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateScope_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/AsyncCreateScopeLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/AsyncCreateScopeLRO.java new file mode 100644 index 000000000000..f6a2f4ca9bb8 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/AsyncCreateScopeLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateScope_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.CreateScopeRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.Scope; + +public class AsyncCreateScopeLRO { + + public static void main(String[] args) throws Exception { + asyncCreateScopeLRO(); + } + + public static void asyncCreateScopeLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateScopeRequest request = + CreateScopeRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setScopeId("scopeId1923941007") + .setScope(Scope.newBuilder().build()) + .build(); + OperationFuture future = + gkeHubClient.createScopeOperationCallable().futureCall(request); + // Do something. + Scope response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateScope_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/SyncCreateScope.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/SyncCreateScope.java new file mode 100644 index 000000000000..a9dc40d90c6a --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/SyncCreateScope.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateScope_sync] +import com.google.cloud.gkehub.v1.CreateScopeRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Scope; + +public class SyncCreateScope { + + public static void main(String[] args) throws Exception { + syncCreateScope(); + } + + public static void syncCreateScope() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateScopeRequest request = + CreateScopeRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setScopeId("scopeId1923941007") + .setScope(Scope.newBuilder().build()) + .build(); + Scope response = gkeHubClient.createScopeAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateScope_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/SyncCreateScopeLocationnameScopeString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/SyncCreateScopeLocationnameScopeString.java new file mode 100644 index 000000000000..194982f4f936 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/SyncCreateScopeLocationnameScopeString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateScope_LocationnameScopeString_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Scope; + +public class SyncCreateScopeLocationnameScopeString { + + public static void main(String[] args) throws Exception { + syncCreateScopeLocationnameScopeString(); + } + + public static void syncCreateScopeLocationnameScopeString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Scope scope = Scope.newBuilder().build(); + String scopeId = "scopeId1923941007"; + Scope response = gkeHubClient.createScopeAsync(parent, scope, scopeId).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateScope_LocationnameScopeString_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/SyncCreateScopeStringScopeString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/SyncCreateScopeStringScopeString.java new file mode 100644 index 000000000000..833778a6f749 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscope/SyncCreateScopeStringScopeString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateScope_StringScopeString_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Scope; + +public class SyncCreateScopeStringScopeString { + + public static void main(String[] args) throws Exception { + syncCreateScopeStringScopeString(); + } + + public static void syncCreateScopeStringScopeString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Scope scope = Scope.newBuilder().build(); + String scopeId = "scopeId1923941007"; + Scope response = gkeHubClient.createScopeAsync(parent, scope, scopeId).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateScope_StringScopeString_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/AsyncCreateScopeNamespace.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/AsyncCreateScopeNamespace.java new file mode 100644 index 000000000000..4ebf15c4d37d --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/AsyncCreateScopeNamespace.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateScopeNamespace_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.cloud.gkehub.v1.ScopeName; +import com.google.longrunning.Operation; + +public class AsyncCreateScopeNamespace { + + public static void main(String[] args) throws Exception { + asyncCreateScopeNamespace(); + } + + public static void asyncCreateScopeNamespace() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateScopeNamespaceRequest request = + CreateScopeNamespaceRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setScopeNamespaceId("scopeNamespaceId-125738782") + .setScopeNamespace(Namespace.newBuilder().build()) + .build(); + ApiFuture future = gkeHubClient.createScopeNamespaceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateScopeNamespace_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/AsyncCreateScopeNamespaceLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/AsyncCreateScopeNamespaceLRO.java new file mode 100644 index 000000000000..326976961d91 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/AsyncCreateScopeNamespaceLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateScopeNamespace_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.ScopeName; + +public class AsyncCreateScopeNamespaceLRO { + + public static void main(String[] args) throws Exception { + asyncCreateScopeNamespaceLRO(); + } + + public static void asyncCreateScopeNamespaceLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateScopeNamespaceRequest request = + CreateScopeNamespaceRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setScopeNamespaceId("scopeNamespaceId-125738782") + .setScopeNamespace(Namespace.newBuilder().build()) + .build(); + OperationFuture future = + gkeHubClient.createScopeNamespaceOperationCallable().futureCall(request); + // Do something. + Namespace response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateScopeNamespace_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/SyncCreateScopeNamespace.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/SyncCreateScopeNamespace.java new file mode 100644 index 000000000000..cb1b4e3c105b --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/SyncCreateScopeNamespace.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateScopeNamespace_sync] +import com.google.cloud.gkehub.v1.CreateScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncCreateScopeNamespace { + + public static void main(String[] args) throws Exception { + syncCreateScopeNamespace(); + } + + public static void syncCreateScopeNamespace() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateScopeNamespaceRequest request = + CreateScopeNamespaceRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setScopeNamespaceId("scopeNamespaceId-125738782") + .setScopeNamespace(Namespace.newBuilder().build()) + .build(); + Namespace response = gkeHubClient.createScopeNamespaceAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateScopeNamespace_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/SyncCreateScopeNamespaceScopenameNamespaceString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/SyncCreateScopeNamespaceScopenameNamespaceString.java new file mode 100644 index 000000000000..75e2368597e6 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/SyncCreateScopeNamespaceScopenameNamespaceString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateScopeNamespace_ScopenameNamespaceString_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncCreateScopeNamespaceScopenameNamespaceString { + + public static void main(String[] args) throws Exception { + syncCreateScopeNamespaceScopenameNamespaceString(); + } + + public static void syncCreateScopeNamespaceScopenameNamespaceString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + Namespace scopeNamespace = Namespace.newBuilder().build(); + String scopeNamespaceId = "scopeNamespaceId-125738782"; + Namespace response = + gkeHubClient.createScopeNamespaceAsync(parent, scopeNamespace, scopeNamespaceId).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateScopeNamespace_ScopenameNamespaceString_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/SyncCreateScopeNamespaceStringNamespaceString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/SyncCreateScopeNamespaceStringNamespaceString.java new file mode 100644 index 000000000000..d67fa269cf7a --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscopenamespace/SyncCreateScopeNamespaceStringNamespaceString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateScopeNamespace_StringNamespaceString_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncCreateScopeNamespaceStringNamespaceString { + + public static void main(String[] args) throws Exception { + syncCreateScopeNamespaceStringNamespaceString(); + } + + public static void syncCreateScopeNamespaceStringNamespaceString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString(); + Namespace scopeNamespace = Namespace.newBuilder().build(); + String scopeNamespaceId = "scopeNamespaceId-125738782"; + Namespace response = + gkeHubClient.createScopeNamespaceAsync(parent, scopeNamespace, scopeNamespaceId).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateScopeNamespace_StringNamespaceString_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/AsyncCreateScopeRBACRoleBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/AsyncCreateScopeRBACRoleBinding.java new file mode 100644 index 000000000000..49af38167107 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/AsyncCreateScopeRBACRoleBinding.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateScopeRBACRoleBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; +import com.google.longrunning.Operation; + +public class AsyncCreateScopeRBACRoleBinding { + + public static void main(String[] args) throws Exception { + asyncCreateScopeRBACRoleBinding(); + } + + public static void asyncCreateScopeRBACRoleBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateScopeRBACRoleBindingRequest request = + CreateScopeRBACRoleBindingRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setRbacrolebindingId("rbacrolebindingId827577784") + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .build(); + ApiFuture future = + gkeHubClient.createScopeRBACRoleBindingCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateScopeRBACRoleBinding_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/AsyncCreateScopeRBACRoleBindingLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/AsyncCreateScopeRBACRoleBindingLRO.java new file mode 100644 index 000000000000..b7425d1ad736 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/AsyncCreateScopeRBACRoleBindingLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateScopeRBACRoleBinding_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; + +public class AsyncCreateScopeRBACRoleBindingLRO { + + public static void main(String[] args) throws Exception { + asyncCreateScopeRBACRoleBindingLRO(); + } + + public static void asyncCreateScopeRBACRoleBindingLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateScopeRBACRoleBindingRequest request = + CreateScopeRBACRoleBindingRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setRbacrolebindingId("rbacrolebindingId827577784") + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .build(); + OperationFuture future = + gkeHubClient.createScopeRBACRoleBindingOperationCallable().futureCall(request); + // Do something. + RBACRoleBinding response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateScopeRBACRoleBinding_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/SyncCreateScopeRBACRoleBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/SyncCreateScopeRBACRoleBinding.java new file mode 100644 index 000000000000..6b28e808eff2 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/SyncCreateScopeRBACRoleBinding.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateScopeRBACRoleBinding_sync] +import com.google.cloud.gkehub.v1.CreateScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncCreateScopeRBACRoleBinding { + + public static void main(String[] args) throws Exception { + syncCreateScopeRBACRoleBinding(); + } + + public static void syncCreateScopeRBACRoleBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + CreateScopeRBACRoleBindingRequest request = + CreateScopeRBACRoleBindingRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setRbacrolebindingId("rbacrolebindingId827577784") + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .build(); + RBACRoleBinding response = gkeHubClient.createScopeRBACRoleBindingAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateScopeRBACRoleBinding_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/SyncCreateScopeRBACRoleBindingMembershipnameRbacrolebindingString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/SyncCreateScopeRBACRoleBindingMembershipnameRbacrolebindingString.java new file mode 100644 index 000000000000..024d6a377c20 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/SyncCreateScopeRBACRoleBindingMembershipnameRbacrolebindingString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateScopeRBACRoleBinding_MembershipnameRbacrolebindingString_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.cloud.gkehub.v1.RBACRoleBinding; + +public class SyncCreateScopeRBACRoleBindingMembershipnameRbacrolebindingString { + + public static void main(String[] args) throws Exception { + syncCreateScopeRBACRoleBindingMembershipnameRbacrolebindingString(); + } + + public static void syncCreateScopeRBACRoleBindingMembershipnameRbacrolebindingString() + 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + RBACRoleBinding response = + gkeHubClient + .createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId) + .get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateScopeRBACRoleBinding_MembershipnameRbacrolebindingString_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/SyncCreateScopeRBACRoleBindingScopenameRbacrolebindingString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/SyncCreateScopeRBACRoleBindingScopenameRbacrolebindingString.java new file mode 100644 index 000000000000..102635103e7f --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/SyncCreateScopeRBACRoleBindingScopenameRbacrolebindingString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateScopeRBACRoleBinding_ScopenameRbacrolebindingString_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncCreateScopeRBACRoleBindingScopenameRbacrolebindingString { + + public static void main(String[] args) throws Exception { + syncCreateScopeRBACRoleBindingScopenameRbacrolebindingString(); + } + + public static void syncCreateScopeRBACRoleBindingScopenameRbacrolebindingString() + 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + RBACRoleBinding response = + gkeHubClient + .createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId) + .get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateScopeRBACRoleBinding_ScopenameRbacrolebindingString_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/SyncCreateScopeRBACRoleBindingStringRbacrolebindingString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/SyncCreateScopeRBACRoleBindingStringRbacrolebindingString.java new file mode 100644 index 000000000000..29f58aa47967 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/createscoperbacrolebinding/SyncCreateScopeRBACRoleBindingStringRbacrolebindingString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_CreateScopeRBACRoleBinding_StringRbacrolebindingString_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncCreateScopeRBACRoleBindingStringRbacrolebindingString { + + public static void main(String[] args) throws Exception { + syncCreateScopeRBACRoleBindingStringRbacrolebindingString(); + } + + public static void syncCreateScopeRBACRoleBindingStringRbacrolebindingString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString(); + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + String rbacrolebindingId = "rbacrolebindingId827577784"; + RBACRoleBinding response = + gkeHubClient + .createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId) + .get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_CreateScopeRBACRoleBinding_StringRbacrolebindingString_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/AsyncDeleteFeature.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/AsyncDeleteFeature.java new file mode 100644 index 000000000000..ad4c61ced75a --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/AsyncDeleteFeature.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteFeature_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.DeleteFeatureRequest; +import com.google.cloud.gkehub.v1.FeatureName; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteFeature { + + public static void main(String[] args) throws Exception { + asyncDeleteFeature(); + } + + public static void asyncDeleteFeature() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteFeatureRequest request = + DeleteFeatureRequest.newBuilder() + .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) + .setForce(true) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = gkeHubClient.deleteFeatureCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteFeature_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/AsyncDeleteFeatureLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/AsyncDeleteFeatureLRO.java new file mode 100644 index 000000000000..a772145dd55a --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/AsyncDeleteFeatureLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteFeature_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.DeleteFeatureRequest; +import com.google.cloud.gkehub.v1.FeatureName; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteFeatureLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteFeatureLRO(); + } + + public static void asyncDeleteFeatureLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteFeatureRequest request = + DeleteFeatureRequest.newBuilder() + .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) + .setForce(true) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + gkeHubClient.deleteFeatureOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteFeature_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/SyncDeleteFeature.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/SyncDeleteFeature.java new file mode 100644 index 000000000000..19c9b4d266ce --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/SyncDeleteFeature.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteFeature_sync] +import com.google.cloud.gkehub.v1.DeleteFeatureRequest; +import com.google.cloud.gkehub.v1.FeatureName; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.protobuf.Empty; + +public class SyncDeleteFeature { + + public static void main(String[] args) throws Exception { + syncDeleteFeature(); + } + + public static void syncDeleteFeature() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteFeatureRequest request = + DeleteFeatureRequest.newBuilder() + .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) + .setForce(true) + .setRequestId("requestId693933066") + .build(); + gkeHubClient.deleteFeatureAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteFeature_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/SyncDeleteFeatureFeaturename.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/SyncDeleteFeatureFeaturename.java new file mode 100644 index 000000000000..215c193dff23 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/SyncDeleteFeatureFeaturename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteFeature_Featurename_sync] +import com.google.cloud.gkehub.v1.FeatureName; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.protobuf.Empty; + +public class SyncDeleteFeatureFeaturename { + + public static void main(String[] args) throws Exception { + syncDeleteFeatureFeaturename(); + } + + public static void syncDeleteFeatureFeaturename() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]"); + gkeHubClient.deleteFeatureAsync(name).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteFeature_Featurename_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/SyncDeleteFeatureString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/SyncDeleteFeatureString.java new file mode 100644 index 000000000000..ea0144cfcf55 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefeature/SyncDeleteFeatureString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteFeature_String_sync] +import com.google.cloud.gkehub.v1.FeatureName; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.protobuf.Empty; + +public class SyncDeleteFeatureString { + + public static void main(String[] args) throws Exception { + syncDeleteFeatureString(); + } + + public static void syncDeleteFeatureString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString(); + gkeHubClient.deleteFeatureAsync(name).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteFeature_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/AsyncDeleteFleet.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/AsyncDeleteFleet.java new file mode 100644 index 000000000000..cb4b3771b856 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/AsyncDeleteFleet.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteFleet_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.DeleteFleetRequest; +import com.google.cloud.gkehub.v1.FleetName; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteFleet { + + public static void main(String[] args) throws Exception { + asyncDeleteFleet(); + } + + public static void asyncDeleteFleet() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteFleetRequest request = + DeleteFleetRequest.newBuilder() + .setName( + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]") + .toString()) + .build(); + ApiFuture future = gkeHubClient.deleteFleetCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteFleet_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/AsyncDeleteFleetLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/AsyncDeleteFleetLRO.java new file mode 100644 index 000000000000..9331c5dc4ffc --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/AsyncDeleteFleetLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteFleet_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.DeleteFleetRequest; +import com.google.cloud.gkehub.v1.FleetName; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteFleetLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteFleetLRO(); + } + + public static void asyncDeleteFleetLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteFleetRequest request = + DeleteFleetRequest.newBuilder() + .setName( + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]") + .toString()) + .build(); + OperationFuture future = + gkeHubClient.deleteFleetOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteFleet_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/SyncDeleteFleet.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/SyncDeleteFleet.java new file mode 100644 index 000000000000..54bf679a833c --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/SyncDeleteFleet.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteFleet_sync] +import com.google.cloud.gkehub.v1.DeleteFleetRequest; +import com.google.cloud.gkehub.v1.FleetName; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.protobuf.Empty; + +public class SyncDeleteFleet { + + public static void main(String[] args) throws Exception { + syncDeleteFleet(); + } + + public static void syncDeleteFleet() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteFleetRequest request = + DeleteFleetRequest.newBuilder() + .setName( + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]") + .toString()) + .build(); + gkeHubClient.deleteFleetAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteFleet_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/SyncDeleteFleetFleetname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/SyncDeleteFleetFleetname.java new file mode 100644 index 000000000000..30f320fc81a2 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/SyncDeleteFleetFleetname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteFleet_Fleetname_sync] +import com.google.cloud.gkehub.v1.FleetName; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.protobuf.Empty; + +public class SyncDeleteFleetFleetname { + + public static void main(String[] args) throws Exception { + syncDeleteFleetFleetname(); + } + + public static void syncDeleteFleetFleetname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + FleetName name = FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]"); + gkeHubClient.deleteFleetAsync(name).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteFleet_Fleetname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/SyncDeleteFleetString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/SyncDeleteFleetString.java new file mode 100644 index 000000000000..4043264feb94 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletefleet/SyncDeleteFleetString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteFleet_String_sync] +import com.google.cloud.gkehub.v1.FleetName; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.protobuf.Empty; + +public class SyncDeleteFleetString { + + public static void main(String[] args) throws Exception { + syncDeleteFleetString(); + } + + public static void syncDeleteFleetString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]").toString(); + gkeHubClient.deleteFleetAsync(name).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteFleet_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/AsyncDeleteMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/AsyncDeleteMembership.java new file mode 100644 index 000000000000..90a5a04daa32 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/AsyncDeleteMembership.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteMembership_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.DeleteMembershipRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.longrunning.Operation; + +public class AsyncDeleteMembership { + + public static void main(String[] args) throws Exception { + asyncDeleteMembership(); + } + + public static void asyncDeleteMembership() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteMembershipRequest request = + DeleteMembershipRequest.newBuilder() + .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + ApiFuture future = gkeHubClient.deleteMembershipCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteMembership_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/AsyncDeleteMembershipLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/AsyncDeleteMembershipLRO.java new file mode 100644 index 000000000000..cbc743b08ca6 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/AsyncDeleteMembershipLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteMembership_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.DeleteMembershipRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteMembershipLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteMembershipLRO(); + } + + public static void asyncDeleteMembershipLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteMembershipRequest request = + DeleteMembershipRequest.newBuilder() + .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + OperationFuture future = + gkeHubClient.deleteMembershipOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteMembership_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/SyncDeleteMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/SyncDeleteMembership.java new file mode 100644 index 000000000000..80d6ba56b757 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/SyncDeleteMembership.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteMembership_sync] +import com.google.cloud.gkehub.v1.DeleteMembershipRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.protobuf.Empty; + +public class SyncDeleteMembership { + + public static void main(String[] args) throws Exception { + syncDeleteMembership(); + } + + public static void syncDeleteMembership() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteMembershipRequest request = + DeleteMembershipRequest.newBuilder() + .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + gkeHubClient.deleteMembershipAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteMembership_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/SyncDeleteMembershipMembershipname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/SyncDeleteMembershipMembershipname.java new file mode 100644 index 000000000000..2c48813a7000 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/SyncDeleteMembershipMembershipname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteMembership_Membershipname_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.protobuf.Empty; + +public class SyncDeleteMembershipMembershipname { + + public static void main(String[] args) throws Exception { + syncDeleteMembershipMembershipname(); + } + + public static void syncDeleteMembershipMembershipname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + gkeHubClient.deleteMembershipAsync(name).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteMembership_Membershipname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/SyncDeleteMembershipString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/SyncDeleteMembershipString.java new file mode 100644 index 000000000000..b97900f1f1f0 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembership/SyncDeleteMembershipString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteMembership_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.protobuf.Empty; + +public class SyncDeleteMembershipString { + + public static void main(String[] args) throws Exception { + syncDeleteMembershipString(); + } + + public static void syncDeleteMembershipString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString(); + gkeHubClient.deleteMembershipAsync(name).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteMembership_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/AsyncDeleteMembershipBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/AsyncDeleteMembershipBinding.java new file mode 100644 index 000000000000..88aa655b39de --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/AsyncDeleteMembershipBinding.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteMembershipBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBindingName; +import com.google.longrunning.Operation; + +public class AsyncDeleteMembershipBinding { + + public static void main(String[] args) throws Exception { + asyncDeleteMembershipBinding(); + } + + public static void asyncDeleteMembershipBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteMembershipBindingRequest request = + DeleteMembershipBindingRequest.newBuilder() + .setName( + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString()) + .build(); + ApiFuture future = + gkeHubClient.deleteMembershipBindingCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteMembershipBinding_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/AsyncDeleteMembershipBindingLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/AsyncDeleteMembershipBindingLRO.java new file mode 100644 index 000000000000..e51ffa2ac64d --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/AsyncDeleteMembershipBindingLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteMembershipBinding_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBindingName; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteMembershipBindingLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteMembershipBindingLRO(); + } + + public static void asyncDeleteMembershipBindingLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteMembershipBindingRequest request = + DeleteMembershipBindingRequest.newBuilder() + .setName( + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString()) + .build(); + OperationFuture future = + gkeHubClient.deleteMembershipBindingOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteMembershipBinding_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/SyncDeleteMembershipBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/SyncDeleteMembershipBinding.java new file mode 100644 index 000000000000..0c756eed9b9d --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/SyncDeleteMembershipBinding.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteMembershipBinding_sync] +import com.google.cloud.gkehub.v1.DeleteMembershipBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBindingName; +import com.google.protobuf.Empty; + +public class SyncDeleteMembershipBinding { + + public static void main(String[] args) throws Exception { + syncDeleteMembershipBinding(); + } + + public static void syncDeleteMembershipBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteMembershipBindingRequest request = + DeleteMembershipBindingRequest.newBuilder() + .setName( + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString()) + .build(); + gkeHubClient.deleteMembershipBindingAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteMembershipBinding_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/SyncDeleteMembershipBindingMembershipbindingname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/SyncDeleteMembershipBindingMembershipbindingname.java new file mode 100644 index 000000000000..4009ed09c0cf --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/SyncDeleteMembershipBindingMembershipbindingname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteMembershipBinding_Membershipbindingname_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBindingName; +import com.google.protobuf.Empty; + +public class SyncDeleteMembershipBindingMembershipbindingname { + + public static void main(String[] args) throws Exception { + syncDeleteMembershipBindingMembershipbindingname(); + } + + public static void syncDeleteMembershipBindingMembershipbindingname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + MembershipBindingName name = + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]"); + gkeHubClient.deleteMembershipBindingAsync(name).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteMembershipBinding_Membershipbindingname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/SyncDeleteMembershipBindingString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/SyncDeleteMembershipBindingString.java new file mode 100644 index 000000000000..e2608b597ec7 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershipbinding/SyncDeleteMembershipBindingString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteMembershipBinding_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBindingName; +import com.google.protobuf.Empty; + +public class SyncDeleteMembershipBindingString { + + public static void main(String[] args) throws Exception { + syncDeleteMembershipBindingString(); + } + + public static void syncDeleteMembershipBindingString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = + MembershipBindingName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString(); + gkeHubClient.deleteMembershipBindingAsync(name).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteMembershipBinding_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/AsyncDeleteMembershipRBACRoleBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/AsyncDeleteMembershipRBACRoleBinding.java new file mode 100644 index 000000000000..19fa2cd498e7 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/AsyncDeleteMembershipRBACRoleBinding.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteMembershipRBACRoleBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; +import com.google.longrunning.Operation; + +public class AsyncDeleteMembershipRBACRoleBinding { + + public static void main(String[] args) throws Exception { + asyncDeleteMembershipRBACRoleBinding(); + } + + public static void asyncDeleteMembershipRBACRoleBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteMembershipRBACRoleBindingRequest request = + DeleteMembershipRBACRoleBindingRequest.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + .toString()) + .build(); + ApiFuture future = + gkeHubClient.deleteMembershipRBACRoleBindingCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteMembershipRBACRoleBinding_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/AsyncDeleteMembershipRBACRoleBindingLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/AsyncDeleteMembershipRBACRoleBindingLRO.java new file mode 100644 index 000000000000..39320e31b0a4 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/AsyncDeleteMembershipRBACRoleBindingLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteMembershipRBACRoleBinding_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; +import com.google.protobuf.Empty; + +public class AsyncDeleteMembershipRBACRoleBindingLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteMembershipRBACRoleBindingLRO(); + } + + public static void asyncDeleteMembershipRBACRoleBindingLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteMembershipRBACRoleBindingRequest request = + DeleteMembershipRBACRoleBindingRequest.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + .toString()) + .build(); + OperationFuture future = + gkeHubClient.deleteMembershipRBACRoleBindingOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteMembershipRBACRoleBinding_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/SyncDeleteMembershipRBACRoleBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/SyncDeleteMembershipRBACRoleBinding.java new file mode 100644 index 000000000000..02b2c3ba4193 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/SyncDeleteMembershipRBACRoleBinding.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteMembershipRBACRoleBinding_sync] +import com.google.cloud.gkehub.v1.DeleteMembershipRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; +import com.google.protobuf.Empty; + +public class SyncDeleteMembershipRBACRoleBinding { + + public static void main(String[] args) throws Exception { + syncDeleteMembershipRBACRoleBinding(); + } + + public static void syncDeleteMembershipRBACRoleBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteMembershipRBACRoleBindingRequest request = + DeleteMembershipRBACRoleBindingRequest.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + .toString()) + .build(); + gkeHubClient.deleteMembershipRBACRoleBindingAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteMembershipRBACRoleBinding_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/SyncDeleteMembershipRBACRoleBindingRbacrolebindingname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/SyncDeleteMembershipRBACRoleBindingRbacrolebindingname.java new file mode 100644 index 000000000000..4ce5a88fd1c6 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/SyncDeleteMembershipRBACRoleBindingRbacrolebindingname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteMembershipRBACRoleBinding_Rbacrolebindingname_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; +import com.google.protobuf.Empty; + +public class SyncDeleteMembershipRBACRoleBindingRbacrolebindingname { + + public static void main(String[] args) throws Exception { + syncDeleteMembershipRBACRoleBindingRbacrolebindingname(); + } + + public static void syncDeleteMembershipRBACRoleBindingRbacrolebindingname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]"); + gkeHubClient.deleteMembershipRBACRoleBindingAsync(name).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteMembershipRBACRoleBinding_Rbacrolebindingname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/SyncDeleteMembershipRBACRoleBindingString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/SyncDeleteMembershipRBACRoleBindingString.java new file mode 100644 index 000000000000..5763aa2a88d5 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletemembershiprbacrolebinding/SyncDeleteMembershipRBACRoleBindingString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteMembershipRBACRoleBinding_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; +import com.google.protobuf.Empty; + +public class SyncDeleteMembershipRBACRoleBindingString { + + public static void main(String[] args) throws Exception { + syncDeleteMembershipRBACRoleBindingString(); + } + + public static void syncDeleteMembershipRBACRoleBindingString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString(); + gkeHubClient.deleteMembershipRBACRoleBindingAsync(name).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteMembershipRBACRoleBinding_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/AsyncDeleteScope.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/AsyncDeleteScope.java new file mode 100644 index 000000000000..ed7b60ebe41d --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/AsyncDeleteScope.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteScope_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.DeleteScopeRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ScopeName; +import com.google.longrunning.Operation; + +public class AsyncDeleteScope { + + public static void main(String[] args) throws Exception { + asyncDeleteScope(); + } + + public static void asyncDeleteScope() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteScopeRequest request = + DeleteScopeRequest.newBuilder() + .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .build(); + ApiFuture future = gkeHubClient.deleteScopeCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteScope_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/AsyncDeleteScopeLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/AsyncDeleteScopeLRO.java new file mode 100644 index 000000000000..096a69eef87c --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/AsyncDeleteScopeLRO.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteScope_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.DeleteScopeRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.ScopeName; +import com.google.protobuf.Empty; + +public class AsyncDeleteScopeLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteScopeLRO(); + } + + public static void asyncDeleteScopeLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteScopeRequest request = + DeleteScopeRequest.newBuilder() + .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .build(); + OperationFuture future = + gkeHubClient.deleteScopeOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteScope_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/SyncDeleteScope.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/SyncDeleteScope.java new file mode 100644 index 000000000000..d3a66b0464dd --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/SyncDeleteScope.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteScope_sync] +import com.google.cloud.gkehub.v1.DeleteScopeRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ScopeName; +import com.google.protobuf.Empty; + +public class SyncDeleteScope { + + public static void main(String[] args) throws Exception { + syncDeleteScope(); + } + + public static void syncDeleteScope() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteScopeRequest request = + DeleteScopeRequest.newBuilder() + .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .build(); + gkeHubClient.deleteScopeAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteScope_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/SyncDeleteScopeScopename.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/SyncDeleteScopeScopename.java new file mode 100644 index 000000000000..5b1e19cd8e1e --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/SyncDeleteScopeScopename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteScope_Scopename_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ScopeName; +import com.google.protobuf.Empty; + +public class SyncDeleteScopeScopename { + + public static void main(String[] args) throws Exception { + syncDeleteScopeScopename(); + } + + public static void syncDeleteScopeScopename() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ScopeName name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + gkeHubClient.deleteScopeAsync(name).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteScope_Scopename_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/SyncDeleteScopeString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/SyncDeleteScopeString.java new file mode 100644 index 000000000000..3aefd492cd28 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescope/SyncDeleteScopeString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteScope_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ScopeName; +import com.google.protobuf.Empty; + +public class SyncDeleteScopeString { + + public static void main(String[] args) throws Exception { + syncDeleteScopeString(); + } + + public static void syncDeleteScopeString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString(); + gkeHubClient.deleteScopeAsync(name).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteScope_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/AsyncDeleteScopeNamespace.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/AsyncDeleteScopeNamespace.java new file mode 100644 index 000000000000..4f03c1c66e79 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/AsyncDeleteScopeNamespace.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteScopeNamespace_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.NamespaceName; +import com.google.longrunning.Operation; + +public class AsyncDeleteScopeNamespace { + + public static void main(String[] args) throws Exception { + asyncDeleteScopeNamespace(); + } + + public static void asyncDeleteScopeNamespace() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteScopeNamespaceRequest request = + DeleteScopeNamespaceRequest.newBuilder() + .setName( + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString()) + .build(); + ApiFuture future = gkeHubClient.deleteScopeNamespaceCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteScopeNamespace_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/AsyncDeleteScopeNamespaceLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/AsyncDeleteScopeNamespaceLRO.java new file mode 100644 index 000000000000..e5664757990c --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/AsyncDeleteScopeNamespaceLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteScopeNamespace_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.NamespaceName; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteScopeNamespaceLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteScopeNamespaceLRO(); + } + + public static void asyncDeleteScopeNamespaceLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteScopeNamespaceRequest request = + DeleteScopeNamespaceRequest.newBuilder() + .setName( + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString()) + .build(); + OperationFuture future = + gkeHubClient.deleteScopeNamespaceOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteScopeNamespace_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/SyncDeleteScopeNamespace.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/SyncDeleteScopeNamespace.java new file mode 100644 index 000000000000..393614c7a996 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/SyncDeleteScopeNamespace.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteScopeNamespace_sync] +import com.google.cloud.gkehub.v1.DeleteScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.NamespaceName; +import com.google.protobuf.Empty; + +public class SyncDeleteScopeNamespace { + + public static void main(String[] args) throws Exception { + syncDeleteScopeNamespace(); + } + + public static void syncDeleteScopeNamespace() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteScopeNamespaceRequest request = + DeleteScopeNamespaceRequest.newBuilder() + .setName( + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString()) + .build(); + gkeHubClient.deleteScopeNamespaceAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteScopeNamespace_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/SyncDeleteScopeNamespaceNamespacename.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/SyncDeleteScopeNamespaceNamespacename.java new file mode 100644 index 000000000000..98b5e17ddcae --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/SyncDeleteScopeNamespaceNamespacename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteScopeNamespace_Namespacename_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.NamespaceName; +import com.google.protobuf.Empty; + +public class SyncDeleteScopeNamespaceNamespacename { + + public static void main(String[] args) throws Exception { + syncDeleteScopeNamespaceNamespacename(); + } + + public static void syncDeleteScopeNamespaceNamespacename() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]"); + gkeHubClient.deleteScopeNamespaceAsync(name).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteScopeNamespace_Namespacename_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/SyncDeleteScopeNamespaceString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/SyncDeleteScopeNamespaceString.java new file mode 100644 index 000000000000..a85c3f835a2b --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescopenamespace/SyncDeleteScopeNamespaceString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteScopeNamespace_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.NamespaceName; +import com.google.protobuf.Empty; + +public class SyncDeleteScopeNamespaceString { + + public static void main(String[] args) throws Exception { + syncDeleteScopeNamespaceString(); + } + + public static void syncDeleteScopeNamespaceString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString(); + gkeHubClient.deleteScopeNamespaceAsync(name).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteScopeNamespace_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/AsyncDeleteScopeRBACRoleBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/AsyncDeleteScopeRBACRoleBinding.java new file mode 100644 index 000000000000..faf978090b45 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/AsyncDeleteScopeRBACRoleBinding.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteScopeRBACRoleBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; +import com.google.longrunning.Operation; + +public class AsyncDeleteScopeRBACRoleBinding { + + public static void main(String[] args) throws Exception { + asyncDeleteScopeRBACRoleBinding(); + } + + public static void asyncDeleteScopeRBACRoleBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteScopeRBACRoleBindingRequest request = + DeleteScopeRBACRoleBindingRequest.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .build(); + ApiFuture future = + gkeHubClient.deleteScopeRBACRoleBindingCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteScopeRBACRoleBinding_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/AsyncDeleteScopeRBACRoleBindingLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/AsyncDeleteScopeRBACRoleBindingLRO.java new file mode 100644 index 000000000000..486473c24828 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/AsyncDeleteScopeRBACRoleBindingLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteScopeRBACRoleBinding_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; +import com.google.protobuf.Empty; + +public class AsyncDeleteScopeRBACRoleBindingLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteScopeRBACRoleBindingLRO(); + } + + public static void asyncDeleteScopeRBACRoleBindingLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteScopeRBACRoleBindingRequest request = + DeleteScopeRBACRoleBindingRequest.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .build(); + OperationFuture future = + gkeHubClient.deleteScopeRBACRoleBindingOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteScopeRBACRoleBinding_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/SyncDeleteScopeRBACRoleBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/SyncDeleteScopeRBACRoleBinding.java new file mode 100644 index 000000000000..c071d691350e --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/SyncDeleteScopeRBACRoleBinding.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteScopeRBACRoleBinding_sync] +import com.google.cloud.gkehub.v1.DeleteScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; +import com.google.protobuf.Empty; + +public class SyncDeleteScopeRBACRoleBinding { + + public static void main(String[] args) throws Exception { + syncDeleteScopeRBACRoleBinding(); + } + + public static void syncDeleteScopeRBACRoleBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + DeleteScopeRBACRoleBindingRequest request = + DeleteScopeRBACRoleBindingRequest.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .build(); + gkeHubClient.deleteScopeRBACRoleBindingAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteScopeRBACRoleBinding_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/SyncDeleteScopeRBACRoleBindingRbacrolebindingname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/SyncDeleteScopeRBACRoleBindingRbacrolebindingname.java new file mode 100644 index 000000000000..598f147acbf7 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/SyncDeleteScopeRBACRoleBindingRbacrolebindingname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteScopeRBACRoleBinding_Rbacrolebindingname_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; +import com.google.protobuf.Empty; + +public class SyncDeleteScopeRBACRoleBindingRbacrolebindingname { + + public static void main(String[] args) throws Exception { + syncDeleteScopeRBACRoleBindingRbacrolebindingname(); + } + + public static void syncDeleteScopeRBACRoleBindingRbacrolebindingname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]"); + gkeHubClient.deleteScopeRBACRoleBindingAsync(name).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteScopeRBACRoleBinding_Rbacrolebindingname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/SyncDeleteScopeRBACRoleBindingString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/SyncDeleteScopeRBACRoleBindingString.java new file mode 100644 index 000000000000..ee3a7853a51b --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/deletescoperbacrolebinding/SyncDeleteScopeRBACRoleBindingString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_DeleteScopeRBACRoleBinding_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; +import com.google.protobuf.Empty; + +public class SyncDeleteScopeRBACRoleBindingString { + + public static void main(String[] args) throws Exception { + syncDeleteScopeRBACRoleBindingString(); + } + + public static void syncDeleteScopeRBACRoleBindingString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString(); + gkeHubClient.deleteScopeRBACRoleBindingAsync(name).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_DeleteScopeRBACRoleBinding_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/generateconnectmanifest/AsyncGenerateConnectManifest.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/generateconnectmanifest/AsyncGenerateConnectManifest.java new file mode 100644 index 000000000000..399f33ac20c6 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/generateconnectmanifest/AsyncGenerateConnectManifest.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GenerateConnectManifest_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GenerateConnectManifestRequest; +import com.google.cloud.gkehub.v1.GenerateConnectManifestResponse; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.protobuf.ByteString; + +public class AsyncGenerateConnectManifest { + + public static void main(String[] args) throws Exception { + asyncGenerateConnectManifest(); + } + + public static void asyncGenerateConnectManifest() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GenerateConnectManifestRequest request = + GenerateConnectManifestRequest.newBuilder() + .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setNamespace("namespace1252218203") + .setProxy(ByteString.EMPTY) + .setVersion("version351608024") + .setIsUpgrade(true) + .setRegistry("registry-690212803") + .setImagePullSecretContent(ByteString.EMPTY) + .build(); + ApiFuture future = + gkeHubClient.generateConnectManifestCallable().futureCall(request); + // Do something. + GenerateConnectManifestResponse response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_GenerateConnectManifest_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/generateconnectmanifest/SyncGenerateConnectManifest.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/generateconnectmanifest/SyncGenerateConnectManifest.java new file mode 100644 index 000000000000..f356da1c4e1c --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/generateconnectmanifest/SyncGenerateConnectManifest.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GenerateConnectManifest_sync] +import com.google.cloud.gkehub.v1.GenerateConnectManifestRequest; +import com.google.cloud.gkehub.v1.GenerateConnectManifestResponse; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.protobuf.ByteString; + +public class SyncGenerateConnectManifest { + + public static void main(String[] args) throws Exception { + syncGenerateConnectManifest(); + } + + public static void syncGenerateConnectManifest() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GenerateConnectManifestRequest request = + GenerateConnectManifestRequest.newBuilder() + .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setNamespace("namespace1252218203") + .setProxy(ByteString.EMPTY) + .setVersion("version351608024") + .setIsUpgrade(true) + .setRegistry("registry-690212803") + .setImagePullSecretContent(ByteString.EMPTY) + .build(); + GenerateConnectManifestResponse response = gkeHubClient.generateConnectManifest(request); + } + } +} +// [END gkehub_v1_generated_GkeHub_GenerateConnectManifest_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/generatemembershiprbacrolebindingyaml/AsyncGenerateMembershipRBACRoleBindingYAML.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/generatemembershiprbacrolebindingyaml/AsyncGenerateMembershipRBACRoleBindingYAML.java new file mode 100644 index 000000000000..323467fc5218 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/generatemembershiprbacrolebindingyaml/AsyncGenerateMembershipRBACRoleBindingYAML.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GenerateMembershipRBACRoleBindingYAML_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest; +import com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.cloud.gkehub.v1.RBACRoleBinding; + +public class AsyncGenerateMembershipRBACRoleBindingYAML { + + public static void main(String[] args) throws Exception { + asyncGenerateMembershipRBACRoleBindingYAML(); + } + + public static void asyncGenerateMembershipRBACRoleBindingYAML() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GenerateMembershipRBACRoleBindingYAMLRequest request = + GenerateMembershipRBACRoleBindingYAMLRequest.newBuilder() + .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setRbacrolebindingId("rbacrolebindingId827577784") + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .build(); + ApiFuture future = + gkeHubClient.generateMembershipRBACRoleBindingYAMLCallable().futureCall(request); + // Do something. + GenerateMembershipRBACRoleBindingYAMLResponse response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_GenerateMembershipRBACRoleBindingYAML_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/generatemembershiprbacrolebindingyaml/SyncGenerateMembershipRBACRoleBindingYAML.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/generatemembershiprbacrolebindingyaml/SyncGenerateMembershipRBACRoleBindingYAML.java new file mode 100644 index 000000000000..ef377fc2d821 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/generatemembershiprbacrolebindingyaml/SyncGenerateMembershipRBACRoleBindingYAML.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GenerateMembershipRBACRoleBindingYAML_sync] +import com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest; +import com.google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.cloud.gkehub.v1.RBACRoleBinding; + +public class SyncGenerateMembershipRBACRoleBindingYAML { + + public static void main(String[] args) throws Exception { + syncGenerateMembershipRBACRoleBindingYAML(); + } + + public static void syncGenerateMembershipRBACRoleBindingYAML() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GenerateMembershipRBACRoleBindingYAMLRequest request = + GenerateMembershipRBACRoleBindingYAMLRequest.newBuilder() + .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setRbacrolebindingId("rbacrolebindingId827577784") + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .build(); + GenerateMembershipRBACRoleBindingYAMLResponse response = + gkeHubClient.generateMembershipRBACRoleBindingYAML(request); + } + } +} +// [END gkehub_v1_generated_GkeHub_GenerateMembershipRBACRoleBindingYAML_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfeature/AsyncGetFeature.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfeature/AsyncGetFeature.java new file mode 100644 index 000000000000..a8f6cf07d7dd --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfeature/AsyncGetFeature.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetFeature_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.FeatureName; +import com.google.cloud.gkehub.v1.GetFeatureRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; + +public class AsyncGetFeature { + + public static void main(String[] args) throws Exception { + asyncGetFeature(); + } + + public static void asyncGetFeature() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GetFeatureRequest request = + GetFeatureRequest.newBuilder() + .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) + .setReturnPartialSuccess(true) + .build(); + ApiFuture future = gkeHubClient.getFeatureCallable().futureCall(request); + // Do something. + Feature response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetFeature_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfeature/SyncGetFeature.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfeature/SyncGetFeature.java new file mode 100644 index 000000000000..b1f9ddcfd5dd --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfeature/SyncGetFeature.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetFeature_sync] +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.FeatureName; +import com.google.cloud.gkehub.v1.GetFeatureRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; + +public class SyncGetFeature { + + public static void main(String[] args) throws Exception { + syncGetFeature(); + } + + public static void syncGetFeature() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GetFeatureRequest request = + GetFeatureRequest.newBuilder() + .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) + .setReturnPartialSuccess(true) + .build(); + Feature response = gkeHubClient.getFeature(request); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetFeature_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfeature/SyncGetFeatureFeaturename.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfeature/SyncGetFeatureFeaturename.java new file mode 100644 index 000000000000..576f234966e5 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfeature/SyncGetFeatureFeaturename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetFeature_Featurename_sync] +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.FeatureName; +import com.google.cloud.gkehub.v1.GkeHubClient; + +public class SyncGetFeatureFeaturename { + + public static void main(String[] args) throws Exception { + syncGetFeatureFeaturename(); + } + + public static void syncGetFeatureFeaturename() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]"); + Feature response = gkeHubClient.getFeature(name); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetFeature_Featurename_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfeature/SyncGetFeatureString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfeature/SyncGetFeatureString.java new file mode 100644 index 000000000000..74d06a80b875 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfeature/SyncGetFeatureString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetFeature_String_sync] +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.FeatureName; +import com.google.cloud.gkehub.v1.GkeHubClient; + +public class SyncGetFeatureString { + + public static void main(String[] args) throws Exception { + syncGetFeatureString(); + } + + public static void syncGetFeatureString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString(); + Feature response = gkeHubClient.getFeature(name); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetFeature_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfleet/AsyncGetFleet.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfleet/AsyncGetFleet.java new file mode 100644 index 000000000000..809b08b74d3d --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfleet/AsyncGetFleet.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetFleet_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.FleetName; +import com.google.cloud.gkehub.v1.GetFleetRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; + +public class AsyncGetFleet { + + public static void main(String[] args) throws Exception { + asyncGetFleet(); + } + + public static void asyncGetFleet() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GetFleetRequest request = + GetFleetRequest.newBuilder() + .setName( + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]") + .toString()) + .build(); + ApiFuture future = gkeHubClient.getFleetCallable().futureCall(request); + // Do something. + Fleet response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetFleet_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfleet/SyncGetFleet.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfleet/SyncGetFleet.java new file mode 100644 index 000000000000..fdb9f8bc30bf --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfleet/SyncGetFleet.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetFleet_sync] +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.FleetName; +import com.google.cloud.gkehub.v1.GetFleetRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; + +public class SyncGetFleet { + + public static void main(String[] args) throws Exception { + syncGetFleet(); + } + + public static void syncGetFleet() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GetFleetRequest request = + GetFleetRequest.newBuilder() + .setName( + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]") + .toString()) + .build(); + Fleet response = gkeHubClient.getFleet(request); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetFleet_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfleet/SyncGetFleetFleetname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfleet/SyncGetFleetFleetname.java new file mode 100644 index 000000000000..b972a9e29c60 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfleet/SyncGetFleetFleetname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetFleet_Fleetname_sync] +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.FleetName; +import com.google.cloud.gkehub.v1.GkeHubClient; + +public class SyncGetFleetFleetname { + + public static void main(String[] args) throws Exception { + syncGetFleetFleetname(); + } + + public static void syncGetFleetFleetname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + FleetName name = FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]"); + Fleet response = gkeHubClient.getFleet(name); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetFleet_Fleetname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfleet/SyncGetFleetString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfleet/SyncGetFleetString.java new file mode 100644 index 000000000000..eb600efabac3 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getfleet/SyncGetFleetString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetFleet_String_sync] +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.FleetName; +import com.google.cloud.gkehub.v1.GkeHubClient; + +public class SyncGetFleetString { + + public static void main(String[] args) throws Exception { + syncGetFleetString(); + } + + public static void syncGetFleetString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = + FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]").toString(); + Fleet response = gkeHubClient.getFleet(name); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetFleet_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembership/AsyncGetMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembership/AsyncGetMembership.java new file mode 100644 index 000000000000..2d4f8c39278b --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembership/AsyncGetMembership.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetMembership_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GetMembershipRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.MembershipName; + +public class AsyncGetMembership { + + public static void main(String[] args) throws Exception { + asyncGetMembership(); + } + + public static void asyncGetMembership() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GetMembershipRequest request = + GetMembershipRequest.newBuilder() + .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .build(); + ApiFuture future = gkeHubClient.getMembershipCallable().futureCall(request); + // Do something. + Membership response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetMembership_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembership/SyncGetMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembership/SyncGetMembership.java new file mode 100644 index 000000000000..096e686cadfe --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembership/SyncGetMembership.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetMembership_sync] +import com.google.cloud.gkehub.v1.GetMembershipRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.MembershipName; + +public class SyncGetMembership { + + public static void main(String[] args) throws Exception { + syncGetMembership(); + } + + public static void syncGetMembership() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GetMembershipRequest request = + GetMembershipRequest.newBuilder() + .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .build(); + Membership response = gkeHubClient.getMembership(request); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetMembership_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembership/SyncGetMembershipMembershipname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembership/SyncGetMembershipMembershipname.java new file mode 100644 index 000000000000..183d863c2415 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembership/SyncGetMembershipMembershipname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetMembership_Membershipname_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.MembershipName; + +public class SyncGetMembershipMembershipname { + + public static void main(String[] args) throws Exception { + syncGetMembershipMembershipname(); + } + + public static void syncGetMembershipMembershipname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + Membership response = gkeHubClient.getMembership(name); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetMembership_Membershipname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembership/SyncGetMembershipString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembership/SyncGetMembershipString.java new file mode 100644 index 000000000000..4e4d29fe5840 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembership/SyncGetMembershipString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetMembership_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.MembershipName; + +public class SyncGetMembershipString { + + public static void main(String[] args) throws Exception { + syncGetMembershipString(); + } + + public static void syncGetMembershipString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString(); + Membership response = gkeHubClient.getMembership(name); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetMembership_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershipbinding/AsyncGetMembershipBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershipbinding/AsyncGetMembershipBinding.java new file mode 100644 index 000000000000..51cd037e9eff --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershipbinding/AsyncGetMembershipBinding.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetMembershipBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GetMembershipBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.MembershipBindingName; + +public class AsyncGetMembershipBinding { + + public static void main(String[] args) throws Exception { + asyncGetMembershipBinding(); + } + + public static void asyncGetMembershipBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GetMembershipBindingRequest request = + GetMembershipBindingRequest.newBuilder() + .setName( + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString()) + .build(); + ApiFuture future = + gkeHubClient.getMembershipBindingCallable().futureCall(request); + // Do something. + MembershipBinding response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetMembershipBinding_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershipbinding/SyncGetMembershipBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershipbinding/SyncGetMembershipBinding.java new file mode 100644 index 000000000000..24c9adfd3c08 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershipbinding/SyncGetMembershipBinding.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetMembershipBinding_sync] +import com.google.cloud.gkehub.v1.GetMembershipBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.MembershipBindingName; + +public class SyncGetMembershipBinding { + + public static void main(String[] args) throws Exception { + syncGetMembershipBinding(); + } + + public static void syncGetMembershipBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GetMembershipBindingRequest request = + GetMembershipBindingRequest.newBuilder() + .setName( + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString()) + .build(); + MembershipBinding response = gkeHubClient.getMembershipBinding(request); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetMembershipBinding_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershipbinding/SyncGetMembershipBindingMembershipbindingname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershipbinding/SyncGetMembershipBindingMembershipbindingname.java new file mode 100644 index 000000000000..4febe1345a88 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershipbinding/SyncGetMembershipBindingMembershipbindingname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetMembershipBinding_Membershipbindingname_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.MembershipBindingName; + +public class SyncGetMembershipBindingMembershipbindingname { + + public static void main(String[] args) throws Exception { + syncGetMembershipBindingMembershipbindingname(); + } + + public static void syncGetMembershipBindingMembershipbindingname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + MembershipBindingName name = + MembershipBindingName.of( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]"); + MembershipBinding response = gkeHubClient.getMembershipBinding(name); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetMembershipBinding_Membershipbindingname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershipbinding/SyncGetMembershipBindingString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershipbinding/SyncGetMembershipBindingString.java new file mode 100644 index 000000000000..8b21aa1fdbef --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershipbinding/SyncGetMembershipBindingString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetMembershipBinding_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.MembershipBindingName; + +public class SyncGetMembershipBindingString { + + public static void main(String[] args) throws Exception { + syncGetMembershipBindingString(); + } + + public static void syncGetMembershipBindingString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = + MembershipBindingName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]") + .toString(); + MembershipBinding response = gkeHubClient.getMembershipBinding(name); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetMembershipBinding_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershiprbacrolebinding/AsyncGetMembershipRBACRoleBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershiprbacrolebinding/AsyncGetMembershipRBACRoleBinding.java new file mode 100644 index 000000000000..8575c09b146e --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershiprbacrolebinding/AsyncGetMembershipRBACRoleBinding.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetMembershipRBACRoleBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; + +public class AsyncGetMembershipRBACRoleBinding { + + public static void main(String[] args) throws Exception { + asyncGetMembershipRBACRoleBinding(); + } + + public static void asyncGetMembershipRBACRoleBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GetMembershipRBACRoleBindingRequest request = + GetMembershipRBACRoleBindingRequest.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + .toString()) + .build(); + ApiFuture future = + gkeHubClient.getMembershipRBACRoleBindingCallable().futureCall(request); + // Do something. + RBACRoleBinding response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetMembershipRBACRoleBinding_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershiprbacrolebinding/SyncGetMembershipRBACRoleBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershiprbacrolebinding/SyncGetMembershipRBACRoleBinding.java new file mode 100644 index 000000000000..673dcf0ecfef --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershiprbacrolebinding/SyncGetMembershipRBACRoleBinding.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetMembershipRBACRoleBinding_sync] +import com.google.cloud.gkehub.v1.GetMembershipRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; + +public class SyncGetMembershipRBACRoleBinding { + + public static void main(String[] args) throws Exception { + syncGetMembershipRBACRoleBinding(); + } + + public static void syncGetMembershipRBACRoleBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GetMembershipRBACRoleBindingRequest request = + GetMembershipRBACRoleBindingRequest.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]") + .toString()) + .build(); + RBACRoleBinding response = gkeHubClient.getMembershipRBACRoleBinding(request); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetMembershipRBACRoleBinding_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershiprbacrolebinding/SyncGetMembershipRBACRoleBindingRbacrolebindingname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershiprbacrolebinding/SyncGetMembershipRBACRoleBindingRbacrolebindingname.java new file mode 100644 index 000000000000..044bd883e729 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershiprbacrolebinding/SyncGetMembershipRBACRoleBindingRbacrolebindingname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetMembershipRBACRoleBinding_Rbacrolebindingname_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; + +public class SyncGetMembershipRBACRoleBindingRbacrolebindingname { + + public static void main(String[] args) throws Exception { + syncGetMembershipRBACRoleBindingRbacrolebindingname(); + } + + public static void syncGetMembershipRBACRoleBindingRbacrolebindingname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]"); + RBACRoleBinding response = gkeHubClient.getMembershipRBACRoleBinding(name); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetMembershipRBACRoleBinding_Rbacrolebindingname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershiprbacrolebinding/SyncGetMembershipRBACRoleBindingString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershiprbacrolebinding/SyncGetMembershipRBACRoleBindingString.java new file mode 100644 index 000000000000..67a48ef50f67 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getmembershiprbacrolebinding/SyncGetMembershipRBACRoleBindingString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetMembershipRBACRoleBinding_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; + +public class SyncGetMembershipRBACRoleBindingString { + + public static void main(String[] args) throws Exception { + syncGetMembershipRBACRoleBindingString(); + } + + public static void syncGetMembershipRBACRoleBindingString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString(); + RBACRoleBinding response = gkeHubClient.getMembershipRBACRoleBinding(name); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetMembershipRBACRoleBinding_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscope/AsyncGetScope.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscope/AsyncGetScope.java new file mode 100644 index 000000000000..56b39b3bfe72 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscope/AsyncGetScope.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetScope_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GetScopeRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Scope; +import com.google.cloud.gkehub.v1.ScopeName; + +public class AsyncGetScope { + + public static void main(String[] args) throws Exception { + asyncGetScope(); + } + + public static void asyncGetScope() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GetScopeRequest request = + GetScopeRequest.newBuilder() + .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .build(); + ApiFuture future = gkeHubClient.getScopeCallable().futureCall(request); + // Do something. + Scope response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetScope_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscope/SyncGetScope.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscope/SyncGetScope.java new file mode 100644 index 000000000000..ec86018f2603 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscope/SyncGetScope.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetScope_sync] +import com.google.cloud.gkehub.v1.GetScopeRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Scope; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncGetScope { + + public static void main(String[] args) throws Exception { + syncGetScope(); + } + + public static void syncGetScope() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GetScopeRequest request = + GetScopeRequest.newBuilder() + .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .build(); + Scope response = gkeHubClient.getScope(request); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetScope_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscope/SyncGetScopeScopename.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscope/SyncGetScopeScopename.java new file mode 100644 index 000000000000..9da76ac095cf --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscope/SyncGetScopeScopename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetScope_Scopename_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Scope; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncGetScopeScopename { + + public static void main(String[] args) throws Exception { + syncGetScopeScopename(); + } + + public static void syncGetScopeScopename() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ScopeName name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + Scope response = gkeHubClient.getScope(name); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetScope_Scopename_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscope/SyncGetScopeString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscope/SyncGetScopeString.java new file mode 100644 index 000000000000..9e7376324600 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscope/SyncGetScopeString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetScope_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Scope; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncGetScopeString { + + public static void main(String[] args) throws Exception { + syncGetScopeString(); + } + + public static void syncGetScopeString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString(); + Scope response = gkeHubClient.getScope(name); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetScope_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscopenamespace/AsyncGetScopeNamespace.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscopenamespace/AsyncGetScopeNamespace.java new file mode 100644 index 000000000000..5581a2111153 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscopenamespace/AsyncGetScopeNamespace.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetScopeNamespace_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GetScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.cloud.gkehub.v1.NamespaceName; + +public class AsyncGetScopeNamespace { + + public static void main(String[] args) throws Exception { + asyncGetScopeNamespace(); + } + + public static void asyncGetScopeNamespace() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GetScopeNamespaceRequest request = + GetScopeNamespaceRequest.newBuilder() + .setName( + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString()) + .build(); + ApiFuture future = gkeHubClient.getScopeNamespaceCallable().futureCall(request); + // Do something. + Namespace response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetScopeNamespace_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscopenamespace/SyncGetScopeNamespace.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscopenamespace/SyncGetScopeNamespace.java new file mode 100644 index 000000000000..10f51638def9 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscopenamespace/SyncGetScopeNamespace.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetScopeNamespace_sync] +import com.google.cloud.gkehub.v1.GetScopeNamespaceRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.cloud.gkehub.v1.NamespaceName; + +public class SyncGetScopeNamespace { + + public static void main(String[] args) throws Exception { + syncGetScopeNamespace(); + } + + public static void syncGetScopeNamespace() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GetScopeNamespaceRequest request = + GetScopeNamespaceRequest.newBuilder() + .setName( + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString()) + .build(); + Namespace response = gkeHubClient.getScopeNamespace(request); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetScopeNamespace_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscopenamespace/SyncGetScopeNamespaceNamespacename.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscopenamespace/SyncGetScopeNamespaceNamespacename.java new file mode 100644 index 000000000000..956c5a0e5d43 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscopenamespace/SyncGetScopeNamespaceNamespacename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetScopeNamespace_Namespacename_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.cloud.gkehub.v1.NamespaceName; + +public class SyncGetScopeNamespaceNamespacename { + + public static void main(String[] args) throws Exception { + syncGetScopeNamespaceNamespacename(); + } + + public static void syncGetScopeNamespaceNamespacename() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]"); + Namespace response = gkeHubClient.getScopeNamespace(name); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetScopeNamespace_Namespacename_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscopenamespace/SyncGetScopeNamespaceString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscopenamespace/SyncGetScopeNamespaceString.java new file mode 100644 index 000000000000..67d25930dbe7 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscopenamespace/SyncGetScopeNamespaceString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetScopeNamespace_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.cloud.gkehub.v1.NamespaceName; + +public class SyncGetScopeNamespaceString { + + public static void main(String[] args) throws Exception { + syncGetScopeNamespaceString(); + } + + public static void syncGetScopeNamespaceString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = + NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString(); + Namespace response = gkeHubClient.getScopeNamespace(name); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetScopeNamespace_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscoperbacrolebinding/AsyncGetScopeRBACRoleBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscoperbacrolebinding/AsyncGetScopeRBACRoleBinding.java new file mode 100644 index 000000000000..1a9a5343e7c4 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscoperbacrolebinding/AsyncGetScopeRBACRoleBinding.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetScopeRBACRoleBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; + +public class AsyncGetScopeRBACRoleBinding { + + public static void main(String[] args) throws Exception { + asyncGetScopeRBACRoleBinding(); + } + + public static void asyncGetScopeRBACRoleBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GetScopeRBACRoleBindingRequest request = + GetScopeRBACRoleBindingRequest.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .build(); + ApiFuture future = + gkeHubClient.getScopeRBACRoleBindingCallable().futureCall(request); + // Do something. + RBACRoleBinding response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetScopeRBACRoleBinding_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscoperbacrolebinding/SyncGetScopeRBACRoleBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscoperbacrolebinding/SyncGetScopeRBACRoleBinding.java new file mode 100644 index 000000000000..38a09a24ce51 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscoperbacrolebinding/SyncGetScopeRBACRoleBinding.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetScopeRBACRoleBinding_sync] +import com.google.cloud.gkehub.v1.GetScopeRBACRoleBindingRequest; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; + +public class SyncGetScopeRBACRoleBinding { + + public static void main(String[] args) throws Exception { + syncGetScopeRBACRoleBinding(); + } + + public static void syncGetScopeRBACRoleBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + GetScopeRBACRoleBindingRequest request = + GetScopeRBACRoleBindingRequest.newBuilder() + .setName( + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString()) + .build(); + RBACRoleBinding response = gkeHubClient.getScopeRBACRoleBinding(request); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetScopeRBACRoleBinding_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscoperbacrolebinding/SyncGetScopeRBACRoleBindingRbacrolebindingname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscoperbacrolebinding/SyncGetScopeRBACRoleBindingRbacrolebindingname.java new file mode 100644 index 000000000000..6bcba23572fe --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscoperbacrolebinding/SyncGetScopeRBACRoleBindingRbacrolebindingname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetScopeRBACRoleBinding_Rbacrolebindingname_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; + +public class SyncGetScopeRBACRoleBindingRbacrolebindingname { + + public static void main(String[] args) throws Exception { + syncGetScopeRBACRoleBindingRbacrolebindingname(); + } + + public static void syncGetScopeRBACRoleBindingRbacrolebindingname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + RBACRoleBindingName name = + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]"); + RBACRoleBinding response = gkeHubClient.getScopeRBACRoleBinding(name); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetScopeRBACRoleBinding_Rbacrolebindingname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscoperbacrolebinding/SyncGetScopeRBACRoleBindingString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscoperbacrolebinding/SyncGetScopeRBACRoleBindingString.java new file mode 100644 index 000000000000..115b07641847 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/getscoperbacrolebinding/SyncGetScopeRBACRoleBindingString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_GetScopeRBACRoleBinding_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.RBACRoleBindingName; + +public class SyncGetScopeRBACRoleBindingString { + + public static void main(String[] args) throws Exception { + syncGetScopeRBACRoleBindingString(); + } + + public static void syncGetScopeRBACRoleBindingString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = + RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName( + "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]") + .toString(); + RBACRoleBinding response = gkeHubClient.getScopeRBACRoleBinding(name); + } + } +} +// [END gkehub_v1_generated_GkeHub_GetScopeRBACRoleBinding_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/AsyncListBoundMemberships.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/AsyncListBoundMemberships.java new file mode 100644 index 000000000000..d9f8abdb3188 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/AsyncListBoundMemberships.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListBoundMemberships_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListBoundMembershipsRequest; +import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.ScopeName; + +public class AsyncListBoundMemberships { + + public static void main(String[] args) throws Exception { + asyncListBoundMemberships(); + } + + public static void asyncListBoundMemberships() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListBoundMembershipsRequest request = + ListBoundMembershipsRequest.newBuilder() + .setScopeName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + gkeHubClient.listBoundMembershipsPagedCallable().futureCall(request); + // Do something. + for (Membership element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListBoundMemberships_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/AsyncListBoundMembershipsPaged.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/AsyncListBoundMembershipsPaged.java new file mode 100644 index 000000000000..9d34e21e609b --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/AsyncListBoundMembershipsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListBoundMemberships_Paged_async] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListBoundMembershipsRequest; +import com.google.cloud.gkehub.v1.ListBoundMembershipsResponse; +import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.ScopeName; +import com.google.common.base.Strings; + +public class AsyncListBoundMembershipsPaged { + + public static void main(String[] args) throws Exception { + asyncListBoundMembershipsPaged(); + } + + public static void asyncListBoundMembershipsPaged() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListBoundMembershipsRequest request = + ListBoundMembershipsRequest.newBuilder() + .setScopeName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListBoundMembershipsResponse response = + gkeHubClient.listBoundMembershipsCallable().call(request); + for (Membership element : response.getMembershipsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListBoundMemberships_Paged_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/SyncListBoundMemberships.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/SyncListBoundMemberships.java new file mode 100644 index 000000000000..1ee0f93aecb2 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/SyncListBoundMemberships.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListBoundMemberships_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListBoundMembershipsRequest; +import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncListBoundMemberships { + + public static void main(String[] args) throws Exception { + syncListBoundMemberships(); + } + + public static void syncListBoundMemberships() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListBoundMembershipsRequest request = + ListBoundMembershipsRequest.newBuilder() + .setScopeName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Membership element : gkeHubClient.listBoundMemberships(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListBoundMemberships_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/SyncListBoundMembershipsScopename.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/SyncListBoundMembershipsScopename.java new file mode 100644 index 000000000000..ed036bd5b3eb --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/SyncListBoundMembershipsScopename.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListBoundMemberships_Scopename_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncListBoundMembershipsScopename { + + public static void main(String[] args) throws Exception { + syncListBoundMembershipsScopename(); + } + + public static void syncListBoundMembershipsScopename() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ScopeName scopeName = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + for (Membership element : gkeHubClient.listBoundMemberships(scopeName).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListBoundMemberships_Scopename_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/SyncListBoundMembershipsString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/SyncListBoundMembershipsString.java new file mode 100644 index 000000000000..530ae40f85c4 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listboundmemberships/SyncListBoundMembershipsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListBoundMemberships_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncListBoundMembershipsString { + + public static void main(String[] args) throws Exception { + syncListBoundMembershipsString(); + } + + public static void syncListBoundMembershipsString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String scopeName = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString(); + for (Membership element : gkeHubClient.listBoundMemberships(scopeName).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListBoundMemberships_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/AsyncListFeatures.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/AsyncListFeatures.java new file mode 100644 index 000000000000..423b4c1a7e10 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/AsyncListFeatures.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListFeatures_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListFeaturesRequest; +import com.google.cloud.gkehub.v1.LocationName; + +public class AsyncListFeatures { + + public static void main(String[] args) throws Exception { + asyncListFeatures(); + } + + public static void asyncListFeatures() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListFeaturesRequest request = + ListFeaturesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setReturnPartialSuccess(true) + .build(); + ApiFuture future = gkeHubClient.listFeaturesPagedCallable().futureCall(request); + // Do something. + for (Feature element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListFeatures_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/AsyncListFeaturesPaged.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/AsyncListFeaturesPaged.java new file mode 100644 index 000000000000..df2734da107e --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/AsyncListFeaturesPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListFeatures_Paged_async] +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListFeaturesRequest; +import com.google.cloud.gkehub.v1.ListFeaturesResponse; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListFeaturesPaged { + + public static void main(String[] args) throws Exception { + asyncListFeaturesPaged(); + } + + public static void asyncListFeaturesPaged() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListFeaturesRequest request = + ListFeaturesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setReturnPartialSuccess(true) + .build(); + while (true) { + ListFeaturesResponse response = gkeHubClient.listFeaturesCallable().call(request); + for (Feature element : response.getResourcesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListFeatures_Paged_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/SyncListFeatures.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/SyncListFeatures.java new file mode 100644 index 000000000000..9b6940be94d8 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/SyncListFeatures.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListFeatures_sync] +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListFeaturesRequest; +import com.google.cloud.gkehub.v1.LocationName; + +public class SyncListFeatures { + + public static void main(String[] args) throws Exception { + syncListFeatures(); + } + + public static void syncListFeatures() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListFeaturesRequest request = + ListFeaturesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setReturnPartialSuccess(true) + .build(); + for (Feature element : gkeHubClient.listFeatures(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListFeatures_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/SyncListFeaturesLocationname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/SyncListFeaturesLocationname.java new file mode 100644 index 000000000000..2a7c79c82f00 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/SyncListFeaturesLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListFeatures_Locationname_sync] +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; + +public class SyncListFeaturesLocationname { + + public static void main(String[] args) throws Exception { + syncListFeaturesLocationname(); + } + + public static void syncListFeaturesLocationname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Feature element : gkeHubClient.listFeatures(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListFeatures_Locationname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/SyncListFeaturesString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/SyncListFeaturesString.java new file mode 100644 index 000000000000..96697c4e97d5 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfeatures/SyncListFeaturesString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListFeatures_String_sync] +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; + +public class SyncListFeaturesString { + + public static void main(String[] args) throws Exception { + syncListFeaturesString(); + } + + public static void syncListFeaturesString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Feature element : gkeHubClient.listFeatures(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListFeatures_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/AsyncListFleets.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/AsyncListFleets.java new file mode 100644 index 000000000000..dc7a1b0ecd2e --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/AsyncListFleets.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListFleets_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListFleetsRequest; +import com.google.cloud.gkehub.v1.LocationName; + +public class AsyncListFleets { + + public static void main(String[] args) throws Exception { + asyncListFleets(); + } + + public static void asyncListFleets() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListFleetsRequest request = + ListFleetsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + ApiFuture future = gkeHubClient.listFleetsPagedCallable().futureCall(request); + // Do something. + for (Fleet element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListFleets_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/AsyncListFleetsPaged.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/AsyncListFleetsPaged.java new file mode 100644 index 000000000000..7641890a36e3 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/AsyncListFleetsPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListFleets_Paged_async] +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListFleetsRequest; +import com.google.cloud.gkehub.v1.ListFleetsResponse; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListFleetsPaged { + + public static void main(String[] args) throws Exception { + asyncListFleetsPaged(); + } + + public static void asyncListFleetsPaged() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListFleetsRequest request = + ListFleetsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + while (true) { + ListFleetsResponse response = gkeHubClient.listFleetsCallable().call(request); + for (Fleet element : response.getFleetsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListFleets_Paged_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/SyncListFleets.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/SyncListFleets.java new file mode 100644 index 000000000000..93213acd1c47 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/SyncListFleets.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListFleets_sync] +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListFleetsRequest; +import com.google.cloud.gkehub.v1.LocationName; + +public class SyncListFleets { + + public static void main(String[] args) throws Exception { + syncListFleets(); + } + + public static void syncListFleets() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListFleetsRequest request = + ListFleetsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + for (Fleet element : gkeHubClient.listFleets(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListFleets_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/SyncListFleetsLocationname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/SyncListFleetsLocationname.java new file mode 100644 index 000000000000..b7ace4650ce6 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/SyncListFleetsLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListFleets_Locationname_sync] +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; + +public class SyncListFleetsLocationname { + + public static void main(String[] args) throws Exception { + syncListFleetsLocationname(); + } + + public static void syncListFleetsLocationname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Fleet element : gkeHubClient.listFleets(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListFleets_Locationname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/SyncListFleetsString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/SyncListFleetsString.java new file mode 100644 index 000000000000..4f5ce7b342f4 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listfleets/SyncListFleetsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListFleets_String_sync] +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; + +public class SyncListFleetsString { + + public static void main(String[] args) throws Exception { + syncListFleetsString(); + } + + public static void syncListFleetsString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Fleet element : gkeHubClient.listFleets(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListFleets_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/AsyncListMembershipBindings.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/AsyncListMembershipBindings.java new file mode 100644 index 000000000000..ef197220b183 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/AsyncListMembershipBindings.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListMembershipBindings_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListMembershipBindingsRequest; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.MembershipName; + +public class AsyncListMembershipBindings { + + public static void main(String[] args) throws Exception { + asyncListMembershipBindings(); + } + + public static void asyncListMembershipBindings() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListMembershipBindingsRequest request = + ListMembershipBindingsRequest.newBuilder() + .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + gkeHubClient.listMembershipBindingsPagedCallable().futureCall(request); + // Do something. + for (MembershipBinding element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListMembershipBindings_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/AsyncListMembershipBindingsPaged.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/AsyncListMembershipBindingsPaged.java new file mode 100644 index 000000000000..725738ed7e41 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/AsyncListMembershipBindingsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListMembershipBindings_Paged_async] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListMembershipBindingsRequest; +import com.google.cloud.gkehub.v1.ListMembershipBindingsResponse; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.common.base.Strings; + +public class AsyncListMembershipBindingsPaged { + + public static void main(String[] args) throws Exception { + asyncListMembershipBindingsPaged(); + } + + public static void asyncListMembershipBindingsPaged() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListMembershipBindingsRequest request = + ListMembershipBindingsRequest.newBuilder() + .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListMembershipBindingsResponse response = + gkeHubClient.listMembershipBindingsCallable().call(request); + for (MembershipBinding element : response.getMembershipBindingsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListMembershipBindings_Paged_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/SyncListMembershipBindings.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/SyncListMembershipBindings.java new file mode 100644 index 000000000000..8bd65825acef --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/SyncListMembershipBindings.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListMembershipBindings_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListMembershipBindingsRequest; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.MembershipName; + +public class SyncListMembershipBindings { + + public static void main(String[] args) throws Exception { + syncListMembershipBindings(); + } + + public static void syncListMembershipBindings() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListMembershipBindingsRequest request = + ListMembershipBindingsRequest.newBuilder() + .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (MembershipBinding element : gkeHubClient.listMembershipBindings(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListMembershipBindings_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/SyncListMembershipBindingsMembershipname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/SyncListMembershipBindingsMembershipname.java new file mode 100644 index 000000000000..b785db1c6fd8 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/SyncListMembershipBindingsMembershipname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListMembershipBindings_Membershipname_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.MembershipName; + +public class SyncListMembershipBindingsMembershipname { + + public static void main(String[] args) throws Exception { + syncListMembershipBindingsMembershipname(); + } + + public static void syncListMembershipBindingsMembershipname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + for (MembershipBinding element : gkeHubClient.listMembershipBindings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListMembershipBindings_Membershipname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/SyncListMembershipBindingsString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/SyncListMembershipBindingsString.java new file mode 100644 index 000000000000..4eac392c6753 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershipbindings/SyncListMembershipBindingsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListMembershipBindings_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.MembershipName; + +public class SyncListMembershipBindingsString { + + public static void main(String[] args) throws Exception { + syncListMembershipBindingsString(); + } + + public static void syncListMembershipBindingsString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString(); + for (MembershipBinding element : gkeHubClient.listMembershipBindings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListMembershipBindings_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/AsyncListMembershipRBACRoleBindings.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/AsyncListMembershipRBACRoleBindings.java new file mode 100644 index 000000000000..7de099a52b01 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/AsyncListMembershipRBACRoleBindings.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListMembershipRBACRoleBindings_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; + +public class AsyncListMembershipRBACRoleBindings { + + public static void main(String[] args) throws Exception { + asyncListMembershipRBACRoleBindings(); + } + + public static void asyncListMembershipRBACRoleBindings() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListMembershipRBACRoleBindingsRequest request = + ListMembershipRBACRoleBindingsRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + gkeHubClient.listMembershipRBACRoleBindingsPagedCallable().futureCall(request); + // Do something. + for (RBACRoleBinding element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListMembershipRBACRoleBindings_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/AsyncListMembershipRBACRoleBindingsPaged.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/AsyncListMembershipRBACRoleBindingsPaged.java new file mode 100644 index 000000000000..b857963388c8 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/AsyncListMembershipRBACRoleBindingsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListMembershipRBACRoleBindings_Paged_async] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest; +import com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; +import com.google.common.base.Strings; + +public class AsyncListMembershipRBACRoleBindingsPaged { + + public static void main(String[] args) throws Exception { + asyncListMembershipRBACRoleBindingsPaged(); + } + + public static void asyncListMembershipRBACRoleBindingsPaged() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListMembershipRBACRoleBindingsRequest request = + ListMembershipRBACRoleBindingsRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListMembershipRBACRoleBindingsResponse response = + gkeHubClient.listMembershipRBACRoleBindingsCallable().call(request); + for (RBACRoleBinding element : response.getRbacrolebindingsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListMembershipRBACRoleBindings_Paged_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/SyncListMembershipRBACRoleBindings.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/SyncListMembershipRBACRoleBindings.java new file mode 100644 index 000000000000..2cd0cb636acd --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/SyncListMembershipRBACRoleBindings.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListMembershipRBACRoleBindings_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsRequest; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncListMembershipRBACRoleBindings { + + public static void main(String[] args) throws Exception { + syncListMembershipRBACRoleBindings(); + } + + public static void syncListMembershipRBACRoleBindings() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListMembershipRBACRoleBindingsRequest request = + ListMembershipRBACRoleBindingsRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (RBACRoleBinding element : + gkeHubClient.listMembershipRBACRoleBindings(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListMembershipRBACRoleBindings_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/SyncListMembershipRBACRoleBindingsMembershipname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/SyncListMembershipRBACRoleBindingsMembershipname.java new file mode 100644 index 000000000000..d9f4f45ed6db --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/SyncListMembershipRBACRoleBindingsMembershipname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListMembershipRBACRoleBindings_Membershipname_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.cloud.gkehub.v1.RBACRoleBinding; + +public class SyncListMembershipRBACRoleBindingsMembershipname { + + public static void main(String[] args) throws Exception { + syncListMembershipRBACRoleBindingsMembershipname(); + } + + public static void syncListMembershipRBACRoleBindingsMembershipname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + for (RBACRoleBinding element : + gkeHubClient.listMembershipRBACRoleBindings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListMembershipRBACRoleBindings_Membershipname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/SyncListMembershipRBACRoleBindingsScopename.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/SyncListMembershipRBACRoleBindingsScopename.java new file mode 100644 index 000000000000..289fb6c7347a --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/SyncListMembershipRBACRoleBindingsScopename.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListMembershipRBACRoleBindings_Scopename_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncListMembershipRBACRoleBindingsScopename { + + public static void main(String[] args) throws Exception { + syncListMembershipRBACRoleBindingsScopename(); + } + + public static void syncListMembershipRBACRoleBindingsScopename() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + for (RBACRoleBinding element : + gkeHubClient.listMembershipRBACRoleBindings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListMembershipRBACRoleBindings_Scopename_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/SyncListMembershipRBACRoleBindingsString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/SyncListMembershipRBACRoleBindingsString.java new file mode 100644 index 000000000000..bcc75d1155d8 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmembershiprbacrolebindings/SyncListMembershipRBACRoleBindingsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListMembershipRBACRoleBindings_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncListMembershipRBACRoleBindingsString { + + public static void main(String[] args) throws Exception { + syncListMembershipRBACRoleBindingsString(); + } + + public static void syncListMembershipRBACRoleBindingsString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString(); + for (RBACRoleBinding element : + gkeHubClient.listMembershipRBACRoleBindings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListMembershipRBACRoleBindings_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/AsyncListMemberships.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/AsyncListMemberships.java new file mode 100644 index 000000000000..f3421dd7062b --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/AsyncListMemberships.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListMemberships_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListMembershipsRequest; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Membership; + +public class AsyncListMemberships { + + public static void main(String[] args) throws Exception { + asyncListMemberships(); + } + + public static void asyncListMemberships() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListMembershipsRequest request = + ListMembershipsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + gkeHubClient.listMembershipsPagedCallable().futureCall(request); + // Do something. + for (Membership element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListMemberships_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/AsyncListMembershipsPaged.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/AsyncListMembershipsPaged.java new file mode 100644 index 000000000000..5c01e5db4562 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/AsyncListMembershipsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListMemberships_Paged_async] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListMembershipsRequest; +import com.google.cloud.gkehub.v1.ListMembershipsResponse; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Membership; +import com.google.common.base.Strings; + +public class AsyncListMembershipsPaged { + + public static void main(String[] args) throws Exception { + asyncListMembershipsPaged(); + } + + public static void asyncListMembershipsPaged() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListMembershipsRequest request = + ListMembershipsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListMembershipsResponse response = gkeHubClient.listMembershipsCallable().call(request); + for (Membership element : response.getResourcesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListMemberships_Paged_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/SyncListMemberships.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/SyncListMemberships.java new file mode 100644 index 000000000000..c00d25d470a8 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/SyncListMemberships.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListMemberships_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListMembershipsRequest; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Membership; + +public class SyncListMemberships { + + public static void main(String[] args) throws Exception { + syncListMemberships(); + } + + public static void syncListMemberships() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListMembershipsRequest request = + ListMembershipsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Membership element : gkeHubClient.listMemberships(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListMemberships_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/SyncListMembershipsLocationname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/SyncListMembershipsLocationname.java new file mode 100644 index 000000000000..b478c237c2c4 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/SyncListMembershipsLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListMemberships_Locationname_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Membership; + +public class SyncListMembershipsLocationname { + + public static void main(String[] args) throws Exception { + syncListMembershipsLocationname(); + } + + public static void syncListMembershipsLocationname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Membership element : gkeHubClient.listMemberships(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListMemberships_Locationname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/SyncListMembershipsString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/SyncListMembershipsString.java new file mode 100644 index 000000000000..ddb6edfaf3d6 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listmemberships/SyncListMembershipsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListMemberships_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Membership; + +public class SyncListMembershipsString { + + public static void main(String[] args) throws Exception { + syncListMembershipsString(); + } + + public static void syncListMembershipsString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Membership element : gkeHubClient.listMemberships(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListMemberships_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/AsyncListPermittedScopes.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/AsyncListPermittedScopes.java new file mode 100644 index 000000000000..92f97670ed11 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/AsyncListPermittedScopes.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListPermittedScopes_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListPermittedScopesRequest; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Scope; + +public class AsyncListPermittedScopes { + + public static void main(String[] args) throws Exception { + asyncListPermittedScopes(); + } + + public static void asyncListPermittedScopes() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListPermittedScopesRequest request = + ListPermittedScopesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = gkeHubClient.listPermittedScopesPagedCallable().futureCall(request); + // Do something. + for (Scope element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListPermittedScopes_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/AsyncListPermittedScopesPaged.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/AsyncListPermittedScopesPaged.java new file mode 100644 index 000000000000..4f5ec2d8433a --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/AsyncListPermittedScopesPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListPermittedScopes_Paged_async] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListPermittedScopesRequest; +import com.google.cloud.gkehub.v1.ListPermittedScopesResponse; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Scope; +import com.google.common.base.Strings; + +public class AsyncListPermittedScopesPaged { + + public static void main(String[] args) throws Exception { + asyncListPermittedScopesPaged(); + } + + public static void asyncListPermittedScopesPaged() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListPermittedScopesRequest request = + ListPermittedScopesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListPermittedScopesResponse response = + gkeHubClient.listPermittedScopesCallable().call(request); + for (Scope element : response.getScopesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListPermittedScopes_Paged_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/SyncListPermittedScopes.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/SyncListPermittedScopes.java new file mode 100644 index 000000000000..882d11a8d340 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/SyncListPermittedScopes.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListPermittedScopes_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListPermittedScopesRequest; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Scope; + +public class SyncListPermittedScopes { + + public static void main(String[] args) throws Exception { + syncListPermittedScopes(); + } + + public static void syncListPermittedScopes() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListPermittedScopesRequest request = + ListPermittedScopesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Scope element : gkeHubClient.listPermittedScopes(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListPermittedScopes_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/SyncListPermittedScopesLocationname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/SyncListPermittedScopesLocationname.java new file mode 100644 index 000000000000..82437c962062 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/SyncListPermittedScopesLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListPermittedScopes_Locationname_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Scope; + +public class SyncListPermittedScopesLocationname { + + public static void main(String[] args) throws Exception { + syncListPermittedScopesLocationname(); + } + + public static void syncListPermittedScopesLocationname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Scope element : gkeHubClient.listPermittedScopes(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListPermittedScopes_Locationname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/SyncListPermittedScopesString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/SyncListPermittedScopesString.java new file mode 100644 index 000000000000..28cc93696141 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listpermittedscopes/SyncListPermittedScopesString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListPermittedScopes_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Scope; + +public class SyncListPermittedScopesString { + + public static void main(String[] args) throws Exception { + syncListPermittedScopesString(); + } + + public static void syncListPermittedScopesString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Scope element : gkeHubClient.listPermittedScopes(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListPermittedScopes_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/AsyncListScopeNamespaces.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/AsyncListScopeNamespaces.java new file mode 100644 index 000000000000..847e5c2b1b00 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/AsyncListScopeNamespaces.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListScopeNamespaces_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListScopeNamespacesRequest; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.cloud.gkehub.v1.ScopeName; + +public class AsyncListScopeNamespaces { + + public static void main(String[] args) throws Exception { + asyncListScopeNamespaces(); + } + + public static void asyncListScopeNamespaces() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListScopeNamespacesRequest request = + ListScopeNamespacesRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + gkeHubClient.listScopeNamespacesPagedCallable().futureCall(request); + // Do something. + for (Namespace element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListScopeNamespaces_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/AsyncListScopeNamespacesPaged.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/AsyncListScopeNamespacesPaged.java new file mode 100644 index 000000000000..63be42e38858 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/AsyncListScopeNamespacesPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListScopeNamespaces_Paged_async] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListScopeNamespacesRequest; +import com.google.cloud.gkehub.v1.ListScopeNamespacesResponse; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.cloud.gkehub.v1.ScopeName; +import com.google.common.base.Strings; + +public class AsyncListScopeNamespacesPaged { + + public static void main(String[] args) throws Exception { + asyncListScopeNamespacesPaged(); + } + + public static void asyncListScopeNamespacesPaged() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListScopeNamespacesRequest request = + ListScopeNamespacesRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListScopeNamespacesResponse response = + gkeHubClient.listScopeNamespacesCallable().call(request); + for (Namespace element : response.getScopeNamespacesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListScopeNamespaces_Paged_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/SyncListScopeNamespaces.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/SyncListScopeNamespaces.java new file mode 100644 index 000000000000..9d6465ff9374 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/SyncListScopeNamespaces.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListScopeNamespaces_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListScopeNamespacesRequest; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncListScopeNamespaces { + + public static void main(String[] args) throws Exception { + syncListScopeNamespaces(); + } + + public static void syncListScopeNamespaces() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListScopeNamespacesRequest request = + ListScopeNamespacesRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Namespace element : gkeHubClient.listScopeNamespaces(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListScopeNamespaces_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/SyncListScopeNamespacesScopename.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/SyncListScopeNamespacesScopename.java new file mode 100644 index 000000000000..d02465a1d4cd --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/SyncListScopeNamespacesScopename.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListScopeNamespaces_Scopename_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncListScopeNamespacesScopename { + + public static void main(String[] args) throws Exception { + syncListScopeNamespacesScopename(); + } + + public static void syncListScopeNamespacesScopename() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + for (Namespace element : gkeHubClient.listScopeNamespaces(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListScopeNamespaces_Scopename_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/SyncListScopeNamespacesString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/SyncListScopeNamespacesString.java new file mode 100644 index 000000000000..4f894f83f879 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopenamespaces/SyncListScopeNamespacesString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListScopeNamespaces_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncListScopeNamespacesString { + + public static void main(String[] args) throws Exception { + syncListScopeNamespacesString(); + } + + public static void syncListScopeNamespacesString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString(); + for (Namespace element : gkeHubClient.listScopeNamespaces(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListScopeNamespaces_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/AsyncListScopeRBACRoleBindings.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/AsyncListScopeRBACRoleBindings.java new file mode 100644 index 000000000000..7db7f7acbe66 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/AsyncListScopeRBACRoleBindings.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListScopeRBACRoleBindings_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; + +public class AsyncListScopeRBACRoleBindings { + + public static void main(String[] args) throws Exception { + asyncListScopeRBACRoleBindings(); + } + + public static void asyncListScopeRBACRoleBindings() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListScopeRBACRoleBindingsRequest request = + ListScopeRBACRoleBindingsRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + gkeHubClient.listScopeRBACRoleBindingsPagedCallable().futureCall(request); + // Do something. + for (RBACRoleBinding element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListScopeRBACRoleBindings_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/AsyncListScopeRBACRoleBindingsPaged.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/AsyncListScopeRBACRoleBindingsPaged.java new file mode 100644 index 000000000000..953a3abd043f --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/AsyncListScopeRBACRoleBindingsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListScopeRBACRoleBindings_Paged_async] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest; +import com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; +import com.google.common.base.Strings; + +public class AsyncListScopeRBACRoleBindingsPaged { + + public static void main(String[] args) throws Exception { + asyncListScopeRBACRoleBindingsPaged(); + } + + public static void asyncListScopeRBACRoleBindingsPaged() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListScopeRBACRoleBindingsRequest request = + ListScopeRBACRoleBindingsRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListScopeRBACRoleBindingsResponse response = + gkeHubClient.listScopeRBACRoleBindingsCallable().call(request); + for (RBACRoleBinding element : response.getRbacrolebindingsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListScopeRBACRoleBindings_Paged_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/SyncListScopeRBACRoleBindings.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/SyncListScopeRBACRoleBindings.java new file mode 100644 index 000000000000..b2433c3ed193 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/SyncListScopeRBACRoleBindings.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListScopeRBACRoleBindings_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListScopeRBACRoleBindingsRequest; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncListScopeRBACRoleBindings { + + public static void main(String[] args) throws Exception { + syncListScopeRBACRoleBindings(); + } + + public static void syncListScopeRBACRoleBindings() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListScopeRBACRoleBindingsRequest request = + ListScopeRBACRoleBindingsRequest.newBuilder() + .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (RBACRoleBinding element : gkeHubClient.listScopeRBACRoleBindings(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListScopeRBACRoleBindings_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/SyncListScopeRBACRoleBindingsMembershipname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/SyncListScopeRBACRoleBindingsMembershipname.java new file mode 100644 index 000000000000..85446807ed73 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/SyncListScopeRBACRoleBindingsMembershipname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListScopeRBACRoleBindings_Membershipname_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.cloud.gkehub.v1.RBACRoleBinding; + +public class SyncListScopeRBACRoleBindingsMembershipname { + + public static void main(String[] args) throws Exception { + syncListScopeRBACRoleBindingsMembershipname(); + } + + public static void syncListScopeRBACRoleBindingsMembershipname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + for (RBACRoleBinding element : gkeHubClient.listScopeRBACRoleBindings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListScopeRBACRoleBindings_Membershipname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/SyncListScopeRBACRoleBindingsScopename.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/SyncListScopeRBACRoleBindingsScopename.java new file mode 100644 index 000000000000..ce028e1681d9 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/SyncListScopeRBACRoleBindingsScopename.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListScopeRBACRoleBindings_Scopename_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncListScopeRBACRoleBindingsScopename { + + public static void main(String[] args) throws Exception { + syncListScopeRBACRoleBindingsScopename(); + } + + public static void syncListScopeRBACRoleBindingsScopename() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]"); + for (RBACRoleBinding element : gkeHubClient.listScopeRBACRoleBindings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListScopeRBACRoleBindings_Scopename_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/SyncListScopeRBACRoleBindingsString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/SyncListScopeRBACRoleBindingsString.java new file mode 100644 index 000000000000..bdc0bcbd587f --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscoperbacrolebindings/SyncListScopeRBACRoleBindingsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListScopeRBACRoleBindings_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.ScopeName; + +public class SyncListScopeRBACRoleBindingsString { + + public static void main(String[] args) throws Exception { + syncListScopeRBACRoleBindingsString(); + } + + public static void syncListScopeRBACRoleBindingsString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString(); + for (RBACRoleBinding element : gkeHubClient.listScopeRBACRoleBindings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListScopeRBACRoleBindings_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/AsyncListScopes.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/AsyncListScopes.java new file mode 100644 index 000000000000..06ce0bae0786 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/AsyncListScopes.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListScopes_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListScopesRequest; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Scope; + +public class AsyncListScopes { + + public static void main(String[] args) throws Exception { + asyncListScopes(); + } + + public static void asyncListScopes() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListScopesRequest request = + ListScopesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = gkeHubClient.listScopesPagedCallable().futureCall(request); + // Do something. + for (Scope element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListScopes_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/AsyncListScopesPaged.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/AsyncListScopesPaged.java new file mode 100644 index 000000000000..fe78c236a9a7 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/AsyncListScopesPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListScopes_Paged_async] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListScopesRequest; +import com.google.cloud.gkehub.v1.ListScopesResponse; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Scope; +import com.google.common.base.Strings; + +public class AsyncListScopesPaged { + + public static void main(String[] args) throws Exception { + asyncListScopesPaged(); + } + + public static void asyncListScopesPaged() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListScopesRequest request = + ListScopesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListScopesResponse response = gkeHubClient.listScopesCallable().call(request); + for (Scope element : response.getScopesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListScopes_Paged_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/SyncListScopes.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/SyncListScopes.java new file mode 100644 index 000000000000..26de84a1b965 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/SyncListScopes.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListScopes_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.ListScopesRequest; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Scope; + +public class SyncListScopes { + + public static void main(String[] args) throws Exception { + syncListScopes(); + } + + public static void syncListScopes() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + ListScopesRequest request = + ListScopesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Scope element : gkeHubClient.listScopes(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListScopes_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/SyncListScopesLocationname.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/SyncListScopesLocationname.java new file mode 100644 index 000000000000..09dba35a60a7 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/SyncListScopesLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListScopes_Locationname_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Scope; + +public class SyncListScopesLocationname { + + public static void main(String[] args) throws Exception { + syncListScopesLocationname(); + } + + public static void syncListScopesLocationname() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Scope element : gkeHubClient.listScopes(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListScopes_Locationname_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/SyncListScopesString.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/SyncListScopesString.java new file mode 100644 index 000000000000..12ecf87b9cb5 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/listscopes/SyncListScopesString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_ListScopes_String_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.LocationName; +import com.google.cloud.gkehub.v1.Scope; + +public class SyncListScopesString { + + public static void main(String[] args) throws Exception { + syncListScopesString(); + } + + public static void syncListScopesString() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Scope element : gkeHubClient.listScopes(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gkehub_v1_generated_GkeHub_ListScopes_String_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/AsyncUpdateFeature.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/AsyncUpdateFeature.java new file mode 100644 index 000000000000..6fd025231460 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/AsyncUpdateFeature.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateFeature_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.FeatureName; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.UpdateFeatureRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateFeature { + + public static void main(String[] args) throws Exception { + asyncUpdateFeature(); + } + + public static void asyncUpdateFeature() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateFeatureRequest request = + UpdateFeatureRequest.newBuilder() + .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setResource(Feature.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = gkeHubClient.updateFeatureCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateFeature_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/AsyncUpdateFeatureLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/AsyncUpdateFeatureLRO.java new file mode 100644 index 000000000000..3b18768d3a04 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/AsyncUpdateFeatureLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateFeature_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.FeatureName; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.UpdateFeatureRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateFeatureLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateFeatureLRO(); + } + + public static void asyncUpdateFeatureLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateFeatureRequest request = + UpdateFeatureRequest.newBuilder() + .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setResource(Feature.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + gkeHubClient.updateFeatureOperationCallable().futureCall(request); + // Do something. + Feature response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateFeature_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/SyncUpdateFeature.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/SyncUpdateFeature.java new file mode 100644 index 000000000000..0ccb1e4e8898 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/SyncUpdateFeature.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateFeature_sync] +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.FeatureName; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.UpdateFeatureRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateFeature { + + public static void main(String[] args) throws Exception { + syncUpdateFeature(); + } + + public static void syncUpdateFeature() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateFeatureRequest request = + UpdateFeatureRequest.newBuilder() + .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setResource(Feature.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Feature response = gkeHubClient.updateFeatureAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateFeature_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/SyncUpdateFeatureFeaturenameFeatureFieldmask.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/SyncUpdateFeatureFeaturenameFeatureFieldmask.java new file mode 100644 index 000000000000..12c3be292d04 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/SyncUpdateFeatureFeaturenameFeatureFieldmask.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateFeature_FeaturenameFeatureFieldmask_sync] +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.FeatureName; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateFeatureFeaturenameFeatureFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateFeatureFeaturenameFeatureFieldmask(); + } + + public static void syncUpdateFeatureFeaturenameFeatureFieldmask() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]"); + Feature resource = Feature.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Feature response = gkeHubClient.updateFeatureAsync(name, resource, updateMask).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateFeature_FeaturenameFeatureFieldmask_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/SyncUpdateFeatureStringFeatureFieldmask.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/SyncUpdateFeatureStringFeatureFieldmask.java new file mode 100644 index 000000000000..fe358917cf6a --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefeature/SyncUpdateFeatureStringFeatureFieldmask.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateFeature_StringFeatureFieldmask_sync] +import com.google.cloud.gkehub.v1.Feature; +import com.google.cloud.gkehub.v1.FeatureName; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateFeatureStringFeatureFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateFeatureStringFeatureFieldmask(); + } + + public static void syncUpdateFeatureStringFeatureFieldmask() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString(); + Feature resource = Feature.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Feature response = gkeHubClient.updateFeatureAsync(name, resource, updateMask).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateFeature_StringFeatureFieldmask_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefleet/AsyncUpdateFleet.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefleet/AsyncUpdateFleet.java new file mode 100644 index 000000000000..abb14196b48a --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefleet/AsyncUpdateFleet.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateFleet_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.UpdateFleetRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateFleet { + + public static void main(String[] args) throws Exception { + asyncUpdateFleet(); + } + + public static void asyncUpdateFleet() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateFleetRequest request = + UpdateFleetRequest.newBuilder() + .setFleet(Fleet.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = gkeHubClient.updateFleetCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateFleet_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefleet/AsyncUpdateFleetLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefleet/AsyncUpdateFleetLRO.java new file mode 100644 index 000000000000..9c727ffa097d --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefleet/AsyncUpdateFleetLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateFleet_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.UpdateFleetRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateFleetLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateFleetLRO(); + } + + public static void asyncUpdateFleetLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateFleetRequest request = + UpdateFleetRequest.newBuilder() + .setFleet(Fleet.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OperationFuture future = + gkeHubClient.updateFleetOperationCallable().futureCall(request); + // Do something. + Fleet response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateFleet_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefleet/SyncUpdateFleet.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefleet/SyncUpdateFleet.java new file mode 100644 index 000000000000..ca13be5f55bd --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefleet/SyncUpdateFleet.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateFleet_sync] +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.UpdateFleetRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateFleet { + + public static void main(String[] args) throws Exception { + syncUpdateFleet(); + } + + public static void syncUpdateFleet() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateFleetRequest request = + UpdateFleetRequest.newBuilder() + .setFleet(Fleet.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Fleet response = gkeHubClient.updateFleetAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateFleet_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefleet/SyncUpdateFleetFleetFieldmask.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefleet/SyncUpdateFleetFleetFieldmask.java new file mode 100644 index 000000000000..9fe50adee914 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatefleet/SyncUpdateFleetFleetFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateFleet_FleetFieldmask_sync] +import com.google.cloud.gkehub.v1.Fleet; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateFleetFleetFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateFleetFleetFieldmask(); + } + + public static void syncUpdateFleetFleetFieldmask() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + Fleet fleet = Fleet.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Fleet response = gkeHubClient.updateFleetAsync(fleet, updateMask).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateFleet_FleetFieldmask_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/AsyncUpdateMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/AsyncUpdateMembership.java new file mode 100644 index 000000000000..777ffdd8bc20 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/AsyncUpdateMembership.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateMembership_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.cloud.gkehub.v1.UpdateMembershipRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateMembership { + + public static void main(String[] args) throws Exception { + asyncUpdateMembership(); + } + + public static void asyncUpdateMembership() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateMembershipRequest request = + UpdateMembershipRequest.newBuilder() + .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setResource(Membership.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = gkeHubClient.updateMembershipCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateMembership_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/AsyncUpdateMembershipLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/AsyncUpdateMembershipLRO.java new file mode 100644 index 000000000000..948e746e12d4 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/AsyncUpdateMembershipLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateMembership_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.UpdateMembershipRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateMembershipLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateMembershipLRO(); + } + + public static void asyncUpdateMembershipLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateMembershipRequest request = + UpdateMembershipRequest.newBuilder() + .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setResource(Membership.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + gkeHubClient.updateMembershipOperationCallable().futureCall(request); + // Do something. + Membership response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateMembership_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/SyncUpdateMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/SyncUpdateMembership.java new file mode 100644 index 000000000000..aa6fca89b347 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/SyncUpdateMembership.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateMembership_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.cloud.gkehub.v1.UpdateMembershipRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateMembership { + + public static void main(String[] args) throws Exception { + syncUpdateMembership(); + } + + public static void syncUpdateMembership() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateMembershipRequest request = + UpdateMembershipRequest.newBuilder() + .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setResource(Membership.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Membership response = gkeHubClient.updateMembershipAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateMembership_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/SyncUpdateMembershipMembershipnameMembershipFieldmask.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/SyncUpdateMembershipMembershipnameMembershipFieldmask.java new file mode 100644 index 000000000000..4ba4d259bec9 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/SyncUpdateMembershipMembershipnameMembershipFieldmask.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateMembership_MembershipnameMembershipFieldmask_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.protobuf.FieldMask; + +public class SyncUpdateMembershipMembershipnameMembershipFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateMembershipMembershipnameMembershipFieldmask(); + } + + public static void syncUpdateMembershipMembershipnameMembershipFieldmask() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + Membership resource = Membership.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Membership response = gkeHubClient.updateMembershipAsync(name, resource, updateMask).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateMembership_MembershipnameMembershipFieldmask_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/SyncUpdateMembershipStringMembershipFieldmask.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/SyncUpdateMembershipStringMembershipFieldmask.java new file mode 100644 index 000000000000..7688aa92ff00 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembership/SyncUpdateMembershipStringMembershipFieldmask.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateMembership_StringMembershipFieldmask_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Membership; +import com.google.cloud.gkehub.v1.MembershipName; +import com.google.protobuf.FieldMask; + +public class SyncUpdateMembershipStringMembershipFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateMembershipStringMembershipFieldmask(); + } + + public static void syncUpdateMembershipStringMembershipFieldmask() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString(); + Membership resource = Membership.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Membership response = gkeHubClient.updateMembershipAsync(name, resource, updateMask).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateMembership_StringMembershipFieldmask_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershipbinding/AsyncUpdateMembershipBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershipbinding/AsyncUpdateMembershipBinding.java new file mode 100644 index 000000000000..368db7a8a8c5 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershipbinding/AsyncUpdateMembershipBinding.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateMembershipBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateMembershipBinding { + + public static void main(String[] args) throws Exception { + asyncUpdateMembershipBinding(); + } + + public static void asyncUpdateMembershipBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateMembershipBindingRequest request = + UpdateMembershipBindingRequest.newBuilder() + .setMembershipBinding(MembershipBinding.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + gkeHubClient.updateMembershipBindingCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateMembershipBinding_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershipbinding/AsyncUpdateMembershipBindingLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershipbinding/AsyncUpdateMembershipBindingLRO.java new file mode 100644 index 000000000000..19e3fb980e74 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershipbinding/AsyncUpdateMembershipBindingLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateMembershipBinding_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateMembershipBindingLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateMembershipBindingLRO(); + } + + public static void asyncUpdateMembershipBindingLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateMembershipBindingRequest request = + UpdateMembershipBindingRequest.newBuilder() + .setMembershipBinding(MembershipBinding.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OperationFuture future = + gkeHubClient.updateMembershipBindingOperationCallable().futureCall(request); + // Do something. + MembershipBinding response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateMembershipBinding_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershipbinding/SyncUpdateMembershipBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershipbinding/SyncUpdateMembershipBinding.java new file mode 100644 index 000000000000..887483ebf991 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershipbinding/SyncUpdateMembershipBinding.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateMembershipBinding_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.cloud.gkehub.v1.UpdateMembershipBindingRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateMembershipBinding { + + public static void main(String[] args) throws Exception { + syncUpdateMembershipBinding(); + } + + public static void syncUpdateMembershipBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateMembershipBindingRequest request = + UpdateMembershipBindingRequest.newBuilder() + .setMembershipBinding(MembershipBinding.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + MembershipBinding response = gkeHubClient.updateMembershipBindingAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateMembershipBinding_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershipbinding/SyncUpdateMembershipBindingMembershipbindingFieldmask.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershipbinding/SyncUpdateMembershipBindingMembershipbindingFieldmask.java new file mode 100644 index 000000000000..5957cbbf8447 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershipbinding/SyncUpdateMembershipBindingMembershipbindingFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateMembershipBinding_MembershipbindingFieldmask_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.MembershipBinding; +import com.google.protobuf.FieldMask; + +public class SyncUpdateMembershipBindingMembershipbindingFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateMembershipBindingMembershipbindingFieldmask(); + } + + public static void syncUpdateMembershipBindingMembershipbindingFieldmask() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + MembershipBinding membershipBinding = MembershipBinding.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + MembershipBinding response = + gkeHubClient.updateMembershipBindingAsync(membershipBinding, updateMask).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateMembershipBinding_MembershipbindingFieldmask_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershiprbacrolebinding/AsyncUpdateMembershipRBACRoleBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershiprbacrolebinding/AsyncUpdateMembershipRBACRoleBinding.java new file mode 100644 index 000000000000..6260c87f7b9c --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershiprbacrolebinding/AsyncUpdateMembershipRBACRoleBinding.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateMembershipRBACRoleBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateMembershipRBACRoleBinding { + + public static void main(String[] args) throws Exception { + asyncUpdateMembershipRBACRoleBinding(); + } + + public static void asyncUpdateMembershipRBACRoleBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateMembershipRBACRoleBindingRequest request = + UpdateMembershipRBACRoleBindingRequest.newBuilder() + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + gkeHubClient.updateMembershipRBACRoleBindingCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateMembershipRBACRoleBinding_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershiprbacrolebinding/AsyncUpdateMembershipRBACRoleBindingLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershiprbacrolebinding/AsyncUpdateMembershipRBACRoleBindingLRO.java new file mode 100644 index 000000000000..1450c54ce6a6 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershiprbacrolebinding/AsyncUpdateMembershipRBACRoleBindingLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateMembershipRBACRoleBinding_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateMembershipRBACRoleBindingLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateMembershipRBACRoleBindingLRO(); + } + + public static void asyncUpdateMembershipRBACRoleBindingLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateMembershipRBACRoleBindingRequest request = + UpdateMembershipRBACRoleBindingRequest.newBuilder() + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OperationFuture future = + gkeHubClient.updateMembershipRBACRoleBindingOperationCallable().futureCall(request); + // Do something. + RBACRoleBinding response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateMembershipRBACRoleBinding_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershiprbacrolebinding/SyncUpdateMembershipRBACRoleBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershiprbacrolebinding/SyncUpdateMembershipRBACRoleBinding.java new file mode 100644 index 000000000000..106a6a876437 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershiprbacrolebinding/SyncUpdateMembershipRBACRoleBinding.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateMembershipRBACRoleBinding_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.UpdateMembershipRBACRoleBindingRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateMembershipRBACRoleBinding { + + public static void main(String[] args) throws Exception { + syncUpdateMembershipRBACRoleBinding(); + } + + public static void syncUpdateMembershipRBACRoleBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateMembershipRBACRoleBindingRequest request = + UpdateMembershipRBACRoleBindingRequest.newBuilder() + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + RBACRoleBinding response = gkeHubClient.updateMembershipRBACRoleBindingAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateMembershipRBACRoleBinding_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershiprbacrolebinding/SyncUpdateMembershipRBACRoleBindingRbacrolebindingFieldmask.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershiprbacrolebinding/SyncUpdateMembershipRBACRoleBindingRbacrolebindingFieldmask.java new file mode 100644 index 000000000000..7471f969fa56 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatemembershiprbacrolebinding/SyncUpdateMembershipRBACRoleBindingRbacrolebindingFieldmask.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateMembershipRBACRoleBinding_RbacrolebindingFieldmask_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.protobuf.FieldMask; + +public class SyncUpdateMembershipRBACRoleBindingRbacrolebindingFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateMembershipRBACRoleBindingRbacrolebindingFieldmask(); + } + + public static void syncUpdateMembershipRBACRoleBindingRbacrolebindingFieldmask() + 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + RBACRoleBinding response = + gkeHubClient.updateMembershipRBACRoleBindingAsync(rbacrolebinding, updateMask).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateMembershipRBACRoleBinding_RbacrolebindingFieldmask_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescope/AsyncUpdateScope.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescope/AsyncUpdateScope.java new file mode 100644 index 000000000000..ca9b82d0bb5c --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescope/AsyncUpdateScope.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateScope_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Scope; +import com.google.cloud.gkehub.v1.UpdateScopeRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateScope { + + public static void main(String[] args) throws Exception { + asyncUpdateScope(); + } + + public static void asyncUpdateScope() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateScopeRequest request = + UpdateScopeRequest.newBuilder() + .setScope(Scope.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = gkeHubClient.updateScopeCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateScope_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescope/AsyncUpdateScopeLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescope/AsyncUpdateScopeLRO.java new file mode 100644 index 000000000000..868d6b5fab33 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescope/AsyncUpdateScopeLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateScope_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.Scope; +import com.google.cloud.gkehub.v1.UpdateScopeRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateScopeLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateScopeLRO(); + } + + public static void asyncUpdateScopeLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateScopeRequest request = + UpdateScopeRequest.newBuilder() + .setScope(Scope.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OperationFuture future = + gkeHubClient.updateScopeOperationCallable().futureCall(request); + // Do something. + Scope response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateScope_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescope/SyncUpdateScope.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescope/SyncUpdateScope.java new file mode 100644 index 000000000000..94659eb35bd0 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescope/SyncUpdateScope.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateScope_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Scope; +import com.google.cloud.gkehub.v1.UpdateScopeRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateScope { + + public static void main(String[] args) throws Exception { + syncUpdateScope(); + } + + public static void syncUpdateScope() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateScopeRequest request = + UpdateScopeRequest.newBuilder() + .setScope(Scope.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Scope response = gkeHubClient.updateScopeAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateScope_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescope/SyncUpdateScopeScopeFieldmask.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescope/SyncUpdateScopeScopeFieldmask.java new file mode 100644 index 000000000000..5d22f329e006 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescope/SyncUpdateScopeScopeFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateScope_ScopeFieldmask_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Scope; +import com.google.protobuf.FieldMask; + +public class SyncUpdateScopeScopeFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateScopeScopeFieldmask(); + } + + public static void syncUpdateScopeScopeFieldmask() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + Scope scope = Scope.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Scope response = gkeHubClient.updateScopeAsync(scope, updateMask).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateScope_ScopeFieldmask_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescopenamespace/AsyncUpdateScopeNamespace.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescopenamespace/AsyncUpdateScopeNamespace.java new file mode 100644 index 000000000000..63c444369188 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescopenamespace/AsyncUpdateScopeNamespace.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateScopeNamespace_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateScopeNamespace { + + public static void main(String[] args) throws Exception { + asyncUpdateScopeNamespace(); + } + + public static void asyncUpdateScopeNamespace() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateScopeNamespaceRequest request = + UpdateScopeNamespaceRequest.newBuilder() + .setScopeNamespace(Namespace.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = gkeHubClient.updateScopeNamespaceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateScopeNamespace_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescopenamespace/AsyncUpdateScopeNamespaceLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescopenamespace/AsyncUpdateScopeNamespaceLRO.java new file mode 100644 index 000000000000..6c8651cd2aad --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescopenamespace/AsyncUpdateScopeNamespaceLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateScopeNamespace_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateScopeNamespaceLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateScopeNamespaceLRO(); + } + + public static void asyncUpdateScopeNamespaceLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateScopeNamespaceRequest request = + UpdateScopeNamespaceRequest.newBuilder() + .setScopeNamespace(Namespace.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OperationFuture future = + gkeHubClient.updateScopeNamespaceOperationCallable().futureCall(request); + // Do something. + Namespace response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateScopeNamespace_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescopenamespace/SyncUpdateScopeNamespace.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescopenamespace/SyncUpdateScopeNamespace.java new file mode 100644 index 000000000000..86b9b5e9d474 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescopenamespace/SyncUpdateScopeNamespace.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateScopeNamespace_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.cloud.gkehub.v1.UpdateScopeNamespaceRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateScopeNamespace { + + public static void main(String[] args) throws Exception { + syncUpdateScopeNamespace(); + } + + public static void syncUpdateScopeNamespace() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateScopeNamespaceRequest request = + UpdateScopeNamespaceRequest.newBuilder() + .setScopeNamespace(Namespace.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Namespace response = gkeHubClient.updateScopeNamespaceAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateScopeNamespace_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescopenamespace/SyncUpdateScopeNamespaceNamespaceFieldmask.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescopenamespace/SyncUpdateScopeNamespaceNamespaceFieldmask.java new file mode 100644 index 000000000000..751f3167b5bc --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescopenamespace/SyncUpdateScopeNamespaceNamespaceFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateScopeNamespace_NamespaceFieldmask_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.Namespace; +import com.google.protobuf.FieldMask; + +public class SyncUpdateScopeNamespaceNamespaceFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateScopeNamespaceNamespaceFieldmask(); + } + + public static void syncUpdateScopeNamespaceNamespaceFieldmask() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + Namespace scopeNamespace = Namespace.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Namespace response = gkeHubClient.updateScopeNamespaceAsync(scopeNamespace, updateMask).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateScopeNamespace_NamespaceFieldmask_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescoperbacrolebinding/AsyncUpdateScopeRBACRoleBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescoperbacrolebinding/AsyncUpdateScopeRBACRoleBinding.java new file mode 100644 index 000000000000..4e660694e0e6 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescoperbacrolebinding/AsyncUpdateScopeRBACRoleBinding.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateScopeRBACRoleBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateScopeRBACRoleBinding { + + public static void main(String[] args) throws Exception { + asyncUpdateScopeRBACRoleBinding(); + } + + public static void asyncUpdateScopeRBACRoleBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateScopeRBACRoleBindingRequest request = + UpdateScopeRBACRoleBindingRequest.newBuilder() + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + gkeHubClient.updateScopeRBACRoleBindingCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateScopeRBACRoleBinding_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescoperbacrolebinding/AsyncUpdateScopeRBACRoleBindingLRO.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescoperbacrolebinding/AsyncUpdateScopeRBACRoleBindingLRO.java new file mode 100644 index 000000000000..c05964139d2b --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescoperbacrolebinding/AsyncUpdateScopeRBACRoleBindingLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateScopeRBACRoleBinding_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.OperationMetadata; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateScopeRBACRoleBindingLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateScopeRBACRoleBindingLRO(); + } + + public static void asyncUpdateScopeRBACRoleBindingLRO() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateScopeRBACRoleBindingRequest request = + UpdateScopeRBACRoleBindingRequest.newBuilder() + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OperationFuture future = + gkeHubClient.updateScopeRBACRoleBindingOperationCallable().futureCall(request); + // Do something. + RBACRoleBinding response = future.get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateScopeRBACRoleBinding_LRO_async] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescoperbacrolebinding/SyncUpdateScopeRBACRoleBinding.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescoperbacrolebinding/SyncUpdateScopeRBACRoleBinding.java new file mode 100644 index 000000000000..ba0cd1432c4f --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescoperbacrolebinding/SyncUpdateScopeRBACRoleBinding.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateScopeRBACRoleBinding_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.cloud.gkehub.v1.UpdateScopeRBACRoleBindingRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateScopeRBACRoleBinding { + + public static void main(String[] args) throws Exception { + syncUpdateScopeRBACRoleBinding(); + } + + public static void syncUpdateScopeRBACRoleBinding() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + UpdateScopeRBACRoleBindingRequest request = + UpdateScopeRBACRoleBindingRequest.newBuilder() + .setRbacrolebinding(RBACRoleBinding.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + RBACRoleBinding response = gkeHubClient.updateScopeRBACRoleBindingAsync(request).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateScopeRBACRoleBinding_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescoperbacrolebinding/SyncUpdateScopeRBACRoleBindingRbacrolebindingFieldmask.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescoperbacrolebinding/SyncUpdateScopeRBACRoleBindingRbacrolebindingFieldmask.java new file mode 100644 index 000000000000..5e1fddd3f060 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehub/updatescoperbacrolebinding/SyncUpdateScopeRBACRoleBindingRbacrolebindingFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHub_UpdateScopeRBACRoleBinding_RbacrolebindingFieldmask_sync] +import com.google.cloud.gkehub.v1.GkeHubClient; +import com.google.cloud.gkehub.v1.RBACRoleBinding; +import com.google.protobuf.FieldMask; + +public class SyncUpdateScopeRBACRoleBindingRbacrolebindingFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateScopeRBACRoleBindingRbacrolebindingFieldmask(); + } + + public static void syncUpdateScopeRBACRoleBindingRbacrolebindingFieldmask() 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 (GkeHubClient gkeHubClient = GkeHubClient.create()) { + RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + RBACRoleBinding response = + gkeHubClient.updateScopeRBACRoleBindingAsync(rbacrolebinding, updateMask).get(); + } + } +} +// [END gkehub_v1_generated_GkeHub_UpdateScopeRBACRoleBinding_RbacrolebindingFieldmask_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehubsettings/createmembership/SyncCreateMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehubsettings/createmembership/SyncCreateMembership.java new file mode 100644 index 000000000000..d74b800c1194 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehubsettings/createmembership/SyncCreateMembership.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHubSettings_CreateMembership_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.cloud.gkehub.v1.GkeHubSettings; +import java.time.Duration; + +public class SyncCreateMembership { + + public static void main(String[] args) throws Exception { + syncCreateMembership(); + } + + public static void syncCreateMembership() 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 + GkeHubSettings.Builder gkeHubSettingsBuilder = GkeHubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + gkeHubSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END gkehub_v1_generated_GkeHubSettings_CreateMembership_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehubsettings/getmembership/SyncGetMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehubsettings/getmembership/SyncGetMembership.java new file mode 100644 index 000000000000..d785b960b9db --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/gkehubsettings/getmembership/SyncGetMembership.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.samples; + +// [START gkehub_v1_generated_GkeHubSettings_GetMembership_sync] +import com.google.cloud.gkehub.v1.GkeHubSettings; +import java.time.Duration; + +public class SyncGetMembership { + + public static void main(String[] args) throws Exception { + syncGetMembership(); + } + + public static void syncGetMembership() 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 + GkeHubSettings.Builder gkeHubSettingsBuilder = GkeHubSettings.newBuilder(); + gkeHubSettingsBuilder + .getMembershipSettings() + .setRetrySettings( + gkeHubSettingsBuilder + .getMembershipSettings() + .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()); + GkeHubSettings gkeHubSettings = gkeHubSettingsBuilder.build(); + } +} +// [END gkehub_v1_generated_GkeHubSettings_GetMembership_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/stub/gkehubstubsettings/createmembership/SyncCreateMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/stub/gkehubstubsettings/createmembership/SyncCreateMembership.java new file mode 100644 index 000000000000..2d401e9a1d05 --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/stub/gkehubstubsettings/createmembership/SyncCreateMembership.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.stub.samples; + +// [START gkehub_v1_generated_GkeHubStubSettings_CreateMembership_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.cloud.gkehub.v1.stub.GkeHubStubSettings; +import java.time.Duration; + +public class SyncCreateMembership { + + public static void main(String[] args) throws Exception { + syncCreateMembership(); + } + + public static void syncCreateMembership() 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 + GkeHubStubSettings.Builder gkeHubSettingsBuilder = GkeHubStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + gkeHubSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END gkehub_v1_generated_GkeHubStubSettings_CreateMembership_sync] diff --git a/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/stub/gkehubstubsettings/getmembership/SyncGetMembership.java b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/stub/gkehubstubsettings/getmembership/SyncGetMembership.java new file mode 100644 index 000000000000..f0feefeeb6ac --- /dev/null +++ b/java-gkehub/samples/snippets/generated/com/google/cloud/gkehub/v1/stub/gkehubstubsettings/getmembership/SyncGetMembership.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.v1.stub.samples; + +// [START gkehub_v1_generated_GkeHubStubSettings_GetMembership_sync] +import com.google.cloud.gkehub.v1.stub.GkeHubStubSettings; +import java.time.Duration; + +public class SyncGetMembership { + + public static void main(String[] args) throws Exception { + syncGetMembership(); + } + + public static void syncGetMembership() 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 + GkeHubStubSettings.Builder gkeHubSettingsBuilder = GkeHubStubSettings.newBuilder(); + gkeHubSettingsBuilder + .getMembershipSettings() + .setRetrySettings( + gkeHubSettingsBuilder + .getMembershipSettings() + .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()); + GkeHubStubSettings gkeHubSettings = gkeHubSettingsBuilder.build(); + } +} +// [END gkehub_v1_generated_GkeHubStubSettings_GetMembership_sync] diff --git a/java-gkerecommender/README.md b/java-gkerecommender/README.md index 4ca5a525a0da..d0be4551b6f5 100644 --- a/java-gkerecommender/README.md +++ b/java-gkerecommender/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gkerecommender - 0.2.0 + 0.3.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gkerecommender:0.2.0' +implementation 'com.google.cloud:google-cloud-gkerecommender:0.3.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gkerecommender" % "0.2.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gkerecommender" % "0.3.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gkerecommender/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gkerecommender.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkerecommender/0.2.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkerecommender/0.3.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gkerecommender/google-cloud-gkerecommender-bom/pom.xml b/java-gkerecommender/google-cloud-gkerecommender-bom/pom.xml index 2627922fdeaa..417a306dbe6f 100644 --- a/java-gkerecommender/google-cloud-gkerecommender-bom/pom.xml +++ b/java-gkerecommender/google-cloud-gkerecommender-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-gkerecommender-bom - 0.4.0-SNAPSHOT + 0.5.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-gkerecommender - 0.4.0-SNAPSHOT + 0.5.0 com.google.api.grpc grpc-google-cloud-gkerecommender-v1 - 0.4.0-SNAPSHOT + 0.5.0 com.google.api.grpc proto-google-cloud-gkerecommender-v1 - 0.4.0-SNAPSHOT + 0.5.0 diff --git a/java-gkerecommender/google-cloud-gkerecommender/pom.xml b/java-gkerecommender/google-cloud-gkerecommender/pom.xml index 28f61948b0e3..5849687be806 100644 --- a/java-gkerecommender/google-cloud-gkerecommender/pom.xml +++ b/java-gkerecommender/google-cloud-gkerecommender/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-gkerecommender - 0.4.0-SNAPSHOT + 0.5.0 jar Google GKE Recommender API GKE Recommender API lets you analyze the performance and cost-efficiency of your inference workloads, and make data-driven decisions about resource allocation and model deployment strategies. com.google.cloud google-cloud-gkerecommender-parent - 0.4.0-SNAPSHOT + 0.5.0 google-cloud-gkerecommender diff --git a/java-gkerecommender/grpc-google-cloud-gkerecommender-v1/pom.xml b/java-gkerecommender/grpc-google-cloud-gkerecommender-v1/pom.xml index fdabc0cbcc7e..13cb5a1645cb 100644 --- a/java-gkerecommender/grpc-google-cloud-gkerecommender-v1/pom.xml +++ b/java-gkerecommender/grpc-google-cloud-gkerecommender-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gkerecommender-v1 - 0.4.0-SNAPSHOT + 0.5.0 grpc-google-cloud-gkerecommender-v1 GRPC library for google-cloud-gkerecommender com.google.cloud google-cloud-gkerecommender-parent - 0.4.0-SNAPSHOT + 0.5.0 diff --git a/java-gkerecommender/pom.xml b/java-gkerecommender/pom.xml index d55c50e1a9bc..ec7a911e34cd 100644 --- a/java-gkerecommender/pom.xml +++ b/java-gkerecommender/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-gkerecommender-parent pom - 0.4.0-SNAPSHOT + 0.5.0 Google GKE Recommender API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-gkerecommender - 0.4.0-SNAPSHOT + 0.5.0 com.google.api.grpc grpc-google-cloud-gkerecommender-v1 - 0.4.0-SNAPSHOT + 0.5.0 com.google.api.grpc proto-google-cloud-gkerecommender-v1 - 0.4.0-SNAPSHOT + 0.5.0 diff --git a/java-gkerecommender/proto-google-cloud-gkerecommender-v1/pom.xml b/java-gkerecommender/proto-google-cloud-gkerecommender-v1/pom.xml index fe4a3d80a99b..7c3a9265cb85 100644 --- a/java-gkerecommender/proto-google-cloud-gkerecommender-v1/pom.xml +++ b/java-gkerecommender/proto-google-cloud-gkerecommender-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gkerecommender-v1 - 0.4.0-SNAPSHOT + 0.5.0 proto-google-cloud-gkerecommender-v1 Proto library for google-cloud-gkerecommender com.google.cloud google-cloud-gkerecommender-parent - 0.4.0-SNAPSHOT + 0.5.0 diff --git a/java-grafeas/README.md b/java-grafeas/README.md index c05b671a306a..022e8de06dc4 100644 --- a/java-grafeas/README.md +++ b/java-grafeas/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: io.grafeas grafeas - 2.83.0 + 2.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'io.grafeas:grafeas:2.83.0' +implementation 'io.grafeas:grafeas:2.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "io.grafeas" % "grafeas" % "2.83.0" +libraryDependencies += "io.grafeas" % "grafeas" % "2.84.0" ``` ## Authentication @@ -152,7 +152,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/grafeas/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/io.grafeas/grafeas.svg -[maven-version-link]: https://central.sonatype.com/artifact/io.grafeas/grafeas/2.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/io.grafeas/grafeas/2.84.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-grafeas/pom.xml b/java-grafeas/pom.xml index 3499bfdeb970..d4db648a9399 100644 --- a/java-grafeas/pom.xml +++ b/java-grafeas/pom.xml @@ -5,7 +5,7 @@ 4.0.0 io.grafeas grafeas - 2.85.0-SNAPSHOT + 2.86.0 jar Grafeas Client @@ -15,7 +15,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml diff --git a/java-gsuite-addons/README.md b/java-gsuite-addons/README.md index 39c947485a2c..530bc73fc12c 100644 --- a/java-gsuite-addons/README.md +++ b/java-gsuite-addons/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gsuite-addons - 2.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gsuite-addons:2.82.0' +implementation 'com.google.cloud:google-cloud-gsuite-addons:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gsuite-addons" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gsuite-addons" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gsuite-addons/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gsuite-addons.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gsuite-addons/2.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gsuite-addons/2.83.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gsuite-addons/google-cloud-gsuite-addons-bom/pom.xml b/java-gsuite-addons/google-cloud-gsuite-addons-bom/pom.xml index 804f7180456e..7dd68292359f 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons-bom/pom.xml +++ b/java-gsuite-addons/google-cloud-gsuite-addons-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-gsuite-addons-bom - 2.84.0-SNAPSHOT + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,22 +27,22 @@ com.google.cloud google-cloud-gsuite-addons - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc grpc-google-cloud-gsuite-addons-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc proto-google-cloud-gsuite-addons-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc proto-google-apps-script-type-protos - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-gsuite-addons/google-cloud-gsuite-addons/pom.xml b/java-gsuite-addons/google-cloud-gsuite-addons/pom.xml index 93db48ff3408..f7ea4eb85fdf 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons/pom.xml +++ b/java-gsuite-addons/google-cloud-gsuite-addons/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-gsuite-addons - 2.84.0-SNAPSHOT + 2.85.0 jar Google Google Workspace Add-ons API Google Workspace Add-ons API are customized applications that integrate with Google Workspace productivity applications. com.google.cloud google-cloud-gsuite-addons-parent - 2.84.0-SNAPSHOT + 2.85.0 google-cloud-gsuite-addons diff --git a/java-gsuite-addons/grpc-google-cloud-gsuite-addons-v1/pom.xml b/java-gsuite-addons/grpc-google-cloud-gsuite-addons-v1/pom.xml index 27a9c9dafef0..c66d980a0071 100644 --- a/java-gsuite-addons/grpc-google-cloud-gsuite-addons-v1/pom.xml +++ b/java-gsuite-addons/grpc-google-cloud-gsuite-addons-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gsuite-addons-v1 - 2.84.0-SNAPSHOT + 2.85.0 grpc-google-cloud-gsuite-addons-v1 GRPC library for google-cloud-gsuite-addons com.google.cloud google-cloud-gsuite-addons-parent - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-gsuite-addons/pom.xml b/java-gsuite-addons/pom.xml index fedd8993ae9b..d555fc937f50 100644 --- a/java-gsuite-addons/pom.xml +++ b/java-gsuite-addons/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-gsuite-addons-parent pom - 2.84.0-SNAPSHOT + 2.85.0 Google Google Workspace Add-ons API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,22 +29,22 @@ com.google.cloud google-cloud-gsuite-addons - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc proto-google-apps-script-type-protos - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc grpc-google-cloud-gsuite-addons-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc proto-google-cloud-gsuite-addons-v1 - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-gsuite-addons/proto-google-apps-script-type-protos/pom.xml b/java-gsuite-addons/proto-google-apps-script-type-protos/pom.xml index d243d5f14a0b..c6b196da1bb1 100644 --- a/java-gsuite-addons/proto-google-apps-script-type-protos/pom.xml +++ b/java-gsuite-addons/proto-google-apps-script-type-protos/pom.xml @@ -5,13 +5,13 @@ com.google.cloud google-cloud-gsuite-addons-parent - 2.84.0-SNAPSHOT + 2.85.0 4.0.0 com.google.api.grpc proto-google-apps-script-type-protos proto-google-apps-script-type-protos - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/pom.xml b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/pom.xml index 5e3c18c09a2e..548c305dda71 100644 --- a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/pom.xml +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gsuite-addons-v1 - 2.84.0-SNAPSHOT + 2.85.0 proto-google-cloud-gsuite-addons-v1 Proto library for google-cloud-gsuite-addons com.google.cloud google-cloud-gsuite-addons-parent - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-hypercomputecluster/README.md b/java-hypercomputecluster/README.md index 536d2cd23139..5898dadfaca1 100644 --- a/java-hypercomputecluster/README.md +++ b/java-hypercomputecluster/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-hypercomputecluster - 0.2.0 + 0.3.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-hypercomputecluster:0.2.0' +implementation 'com.google.cloud:google-cloud-hypercomputecluster:0.3.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-hypercomputecluster" % "0.2.0" +libraryDependencies += "com.google.cloud" % "google-cloud-hypercomputecluster" % "0.3.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-hypercomputecluster/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-hypercomputecluster.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-hypercomputecluster/0.2.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-hypercomputecluster/0.3.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-hypercomputecluster/google-cloud-hypercomputecluster-bom/pom.xml b/java-hypercomputecluster/google-cloud-hypercomputecluster-bom/pom.xml index 2d59614edce1..d4877f88d668 100644 --- a/java-hypercomputecluster/google-cloud-hypercomputecluster-bom/pom.xml +++ b/java-hypercomputecluster/google-cloud-hypercomputecluster-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-hypercomputecluster-bom - 0.4.0-SNAPSHOT + 0.5.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-hypercomputecluster - 0.4.0-SNAPSHOT + 0.5.0 com.google.api.grpc grpc-google-cloud-hypercomputecluster-v1beta - 0.4.0-SNAPSHOT + 0.5.0 com.google.api.grpc proto-google-cloud-hypercomputecluster-v1beta - 0.4.0-SNAPSHOT + 0.5.0 diff --git a/java-hypercomputecluster/google-cloud-hypercomputecluster/pom.xml b/java-hypercomputecluster/google-cloud-hypercomputecluster/pom.xml index c79524aacbaf..567eac69b906 100644 --- a/java-hypercomputecluster/google-cloud-hypercomputecluster/pom.xml +++ b/java-hypercomputecluster/google-cloud-hypercomputecluster/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-hypercomputecluster - 0.4.0-SNAPSHOT + 0.5.0 jar Google Cluster Director API Cluster Director API simplifies cluster management across compute, network, and storage com.google.cloud google-cloud-hypercomputecluster-parent - 0.4.0-SNAPSHOT + 0.5.0 google-cloud-hypercomputecluster diff --git a/java-hypercomputecluster/grpc-google-cloud-hypercomputecluster-v1beta/pom.xml b/java-hypercomputecluster/grpc-google-cloud-hypercomputecluster-v1beta/pom.xml index 136af6811a63..ab95d58cb04b 100644 --- a/java-hypercomputecluster/grpc-google-cloud-hypercomputecluster-v1beta/pom.xml +++ b/java-hypercomputecluster/grpc-google-cloud-hypercomputecluster-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-hypercomputecluster-v1beta - 0.4.0-SNAPSHOT + 0.5.0 grpc-google-cloud-hypercomputecluster-v1beta GRPC library for google-cloud-hypercomputecluster com.google.cloud google-cloud-hypercomputecluster-parent - 0.4.0-SNAPSHOT + 0.5.0 diff --git a/java-hypercomputecluster/pom.xml b/java-hypercomputecluster/pom.xml index 842126fdc9d0..14f04767f099 100644 --- a/java-hypercomputecluster/pom.xml +++ b/java-hypercomputecluster/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-hypercomputecluster-parent pom - 0.4.0-SNAPSHOT + 0.5.0 Google Cluster Director API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-hypercomputecluster - 0.4.0-SNAPSHOT + 0.5.0 com.google.api.grpc grpc-google-cloud-hypercomputecluster-v1beta - 0.4.0-SNAPSHOT + 0.5.0 com.google.api.grpc proto-google-cloud-hypercomputecluster-v1beta - 0.4.0-SNAPSHOT + 0.5.0 diff --git a/java-hypercomputecluster/proto-google-cloud-hypercomputecluster-v1beta/pom.xml b/java-hypercomputecluster/proto-google-cloud-hypercomputecluster-v1beta/pom.xml index d610717a2047..4d5bdbd019fe 100644 --- a/java-hypercomputecluster/proto-google-cloud-hypercomputecluster-v1beta/pom.xml +++ b/java-hypercomputecluster/proto-google-cloud-hypercomputecluster-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-hypercomputecluster-v1beta - 0.4.0-SNAPSHOT + 0.5.0 proto-google-cloud-hypercomputecluster-v1beta Proto library for google-cloud-hypercomputecluster com.google.cloud google-cloud-hypercomputecluster-parent - 0.4.0-SNAPSHOT + 0.5.0 diff --git a/java-iam-admin/README.md b/java-iam-admin/README.md index 048523c04fec..3fe365231498 100644 --- a/java-iam-admin/README.md +++ b/java-iam-admin/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-iam-admin - 3.77.0 + 3.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-iam-admin:3.77.0' +implementation 'com.google.cloud:google-iam-admin:3.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-iam-admin" % "3.77.0" +libraryDependencies += "com.google.cloud" % "google-iam-admin" % "3.78.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-iam-admin/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-iam-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-admin/3.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-admin/3.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iam-admin/google-iam-admin-bom/pom.xml b/java-iam-admin/google-iam-admin-bom/pom.xml index 62eb9d9b8de2..f2b882a114a0 100644 --- a/java-iam-admin/google-iam-admin-bom/pom.xml +++ b/java-iam-admin/google-iam-admin-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-iam-admin-bom - 3.79.0-SNAPSHOT + 3.80.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-iam-admin - 3.79.0-SNAPSHOT + 3.80.0 com.google.api.grpc grpc-google-iam-admin-v1 - 3.79.0-SNAPSHOT + 3.80.0 com.google.api.grpc proto-google-iam-admin-v1 - 3.79.0-SNAPSHOT + 3.80.0 diff --git a/java-iam-admin/google-iam-admin/pom.xml b/java-iam-admin/google-iam-admin/pom.xml index abbb82b6154e..3efdff54a835 100644 --- a/java-iam-admin/google-iam-admin/pom.xml +++ b/java-iam-admin/google-iam-admin/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-iam-admin - 3.79.0-SNAPSHOT + 3.80.0 jar Google IAM Admin API IAM Admin API you to manage your Service Accounts and IAM bindings. com.google.cloud google-iam-admin-parent - 3.79.0-SNAPSHOT + 3.80.0 google-iam-admin diff --git a/java-iam-admin/grpc-google-iam-admin-v1/pom.xml b/java-iam-admin/grpc-google-iam-admin-v1/pom.xml index fc1329197b3d..44bdb6eff451 100644 --- a/java-iam-admin/grpc-google-iam-admin-v1/pom.xml +++ b/java-iam-admin/grpc-google-iam-admin-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-iam-admin-v1 - 3.79.0-SNAPSHOT + 3.80.0 grpc-google-iam-admin-v1 GRPC library for google-iam-admin com.google.cloud google-iam-admin-parent - 3.79.0-SNAPSHOT + 3.80.0 diff --git a/java-iam-admin/pom.xml b/java-iam-admin/pom.xml index 4a98f5be796a..ae6b9d929efe 100644 --- a/java-iam-admin/pom.xml +++ b/java-iam-admin/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-iam-admin-parent pom - 3.79.0-SNAPSHOT + 3.80.0 Google IAM Admin API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-iam-admin - 3.79.0-SNAPSHOT + 3.80.0 com.google.api.grpc grpc-google-iam-admin-v1 - 3.79.0-SNAPSHOT + 3.80.0 com.google.api.grpc proto-google-iam-admin-v1 - 3.79.0-SNAPSHOT + 3.80.0 diff --git a/java-iam-admin/proto-google-iam-admin-v1/pom.xml b/java-iam-admin/proto-google-iam-admin-v1/pom.xml index a5ac3d45db8a..6e1e1dba8f3f 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/pom.xml +++ b/java-iam-admin/proto-google-iam-admin-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-iam-admin-v1 - 3.79.0-SNAPSHOT + 3.80.0 proto-google-iam-admin-v1 Proto library for google-iam-admin com.google.cloud google-iam-admin-parent - 3.79.0-SNAPSHOT + 3.80.0 diff --git a/java-iam/README.md b/java-iam/README.md index 1502bdfc268c..2492d0ad00b7 100644 --- a/java-iam/README.md +++ b/java-iam/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-iam-policy - 1.80.0 + 1.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-iam-policy:1.80.0' +implementation 'com.google.cloud:google-iam-policy:1.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-iam-policy" % "1.80.0" +libraryDependencies += "com.google.cloud" % "google-iam-policy" % "1.81.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/proto-google-iam-v1/latest/history [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-iam-policy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-policy/1.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-policy/1.81.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iam/google-iam-policy-bom/pom.xml b/java-iam/google-iam-policy-bom/pom.xml index be3ec6b50ae0..6de74702224a 100644 --- a/java-iam/google-iam-policy-bom/pom.xml +++ b/java-iam/google-iam-policy-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-iam-policy-bom - 1.82.0-SNAPSHOT + 1.83.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,7 +27,7 @@ com.google.cloud google-iam-policy - 1.82.0-SNAPSHOT + 1.83.0 diff --git a/java-iam/google-iam-policy/pom.xml b/java-iam/google-iam-policy/pom.xml index 47a8ee28a688..79b6a380702b 100644 --- a/java-iam/google-iam-policy/pom.xml +++ b/java-iam/google-iam-policy/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-iam-policy - 1.82.0-SNAPSHOT + 1.83.0 jar Google IAM Policy Eventarc lets you asynchronously deliver events from Google services, SaaS, and your own apps using loosely coupled services that react to state changes. com.google.cloud google-iam-policy-parent - 1.82.0-SNAPSHOT + 1.83.0 google-iam-policy diff --git a/java-iam/pom.xml b/java-iam/pom.xml index e7ec1d1ca90f..5771e2667924 100644 --- a/java-iam/pom.xml +++ b/java-iam/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-iam-policy-parent pom - 1.82.0-SNAPSHOT + 1.83.0 Google IAM Policy Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml diff --git a/java-iamcredentials/README.md b/java-iamcredentials/README.md index a77c446b623f..2a1fe440e1a6 100644 --- a/java-iamcredentials/README.md +++ b/java-iamcredentials/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-iamcredentials - 2.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iamcredentials:2.82.0' +implementation 'com.google.cloud:google-cloud-iamcredentials:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-iamcredentials/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-iamcredentials.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iamcredentials/2.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iamcredentials/2.83.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iamcredentials/google-cloud-iamcredentials-bom/pom.xml b/java-iamcredentials/google-cloud-iamcredentials-bom/pom.xml index 0292c75afff3..50c3edda9daf 100644 --- a/java-iamcredentials/google-cloud-iamcredentials-bom/pom.xml +++ b/java-iamcredentials/google-cloud-iamcredentials-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-iamcredentials-bom - 2.84.0-SNAPSHOT + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-iamcredentials - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc grpc-google-cloud-iamcredentials-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc proto-google-cloud-iamcredentials-v1 - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-iamcredentials/google-cloud-iamcredentials/pom.xml b/java-iamcredentials/google-cloud-iamcredentials/pom.xml index 53062d1c7654..36bacfb41ecd 100644 --- a/java-iamcredentials/google-cloud-iamcredentials/pom.xml +++ b/java-iamcredentials/google-cloud-iamcredentials/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-iamcredentials - 2.84.0-SNAPSHOT + 2.85.0 jar Google Cloud IAM Service Account Credentials Java idiomatic client for Google Cloud IAM Service Account Credentials com.google.cloud google-cloud-iamcredentials-parent - 2.84.0-SNAPSHOT + 2.85.0 google-cloud-iamcredentials diff --git a/java-iamcredentials/grpc-google-cloud-iamcredentials-v1/pom.xml b/java-iamcredentials/grpc-google-cloud-iamcredentials-v1/pom.xml index ffe724261279..0ce75d32ba99 100644 --- a/java-iamcredentials/grpc-google-cloud-iamcredentials-v1/pom.xml +++ b/java-iamcredentials/grpc-google-cloud-iamcredentials-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-iamcredentials-v1 - 2.84.0-SNAPSHOT + 2.85.0 grpc-google-cloud-iamcredentials-v1 GRPC library for grpc-google-cloud-iamcredentials-v1 com.google.cloud google-cloud-iamcredentials-parent - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-iamcredentials/pom.xml b/java-iamcredentials/pom.xml index 7eb57dd8a133..39f57569d78c 100644 --- a/java-iamcredentials/pom.xml +++ b/java-iamcredentials/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-iamcredentials-parent pom - 2.84.0-SNAPSHOT + 2.85.0 Google Cloud IAM Service Account Credentials Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-iamcredentials-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc grpc-google-cloud-iamcredentials-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.cloud google-cloud-iamcredentials - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-iamcredentials/proto-google-cloud-iamcredentials-v1/pom.xml b/java-iamcredentials/proto-google-cloud-iamcredentials-v1/pom.xml index ffaa9cc058e5..082151a30898 100644 --- a/java-iamcredentials/proto-google-cloud-iamcredentials-v1/pom.xml +++ b/java-iamcredentials/proto-google-cloud-iamcredentials-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-iamcredentials-v1 - 2.84.0-SNAPSHOT + 2.85.0 proto-google-cloud-iamcredentials-v1 PROTO library for proto-google-cloud-iamcredentials-v1 com.google.cloud google-cloud-iamcredentials-parent - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-iap/README.md b/java-iap/README.md index d71f54f87835..520adc56bb4c 100644 --- a/java-iap/README.md +++ b/java-iap/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-iap - 0.38.0 + 0.39.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iap:0.38.0' +implementation 'com.google.cloud:google-cloud-iap:0.39.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iap" % "0.38.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iap" % "0.39.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-iap/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-iap.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iap/0.38.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iap/0.39.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iap/google-cloud-iap-bom/pom.xml b/java-iap/google-cloud-iap-bom/pom.xml index 506e9718ea8a..9f336b61ff3a 100644 --- a/java-iap/google-cloud-iap-bom/pom.xml +++ b/java-iap/google-cloud-iap-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-iap-bom - 0.40.0-SNAPSHOT + 0.41.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-iap - 0.40.0-SNAPSHOT + 0.41.0 com.google.api.grpc grpc-google-cloud-iap-v1 - 0.40.0-SNAPSHOT + 0.41.0 com.google.api.grpc proto-google-cloud-iap-v1 - 0.40.0-SNAPSHOT + 0.41.0 diff --git a/java-iap/google-cloud-iap/pom.xml b/java-iap/google-cloud-iap/pom.xml index b17580ed7f7a..54d18b426a1b 100644 --- a/java-iap/google-cloud-iap/pom.xml +++ b/java-iap/google-cloud-iap/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-iap - 0.40.0-SNAPSHOT + 0.41.0 jar Google Cloud Identity-Aware Proxy API Cloud Identity-Aware Proxy API Controls access to cloud applications running on Google Cloud Platform. com.google.cloud google-cloud-iap-parent - 0.40.0-SNAPSHOT + 0.41.0 google-cloud-iap diff --git a/java-iap/grpc-google-cloud-iap-v1/pom.xml b/java-iap/grpc-google-cloud-iap-v1/pom.xml index 41abe1a980de..b20adc9bf5c6 100644 --- a/java-iap/grpc-google-cloud-iap-v1/pom.xml +++ b/java-iap/grpc-google-cloud-iap-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-iap-v1 - 0.40.0-SNAPSHOT + 0.41.0 grpc-google-cloud-iap-v1 GRPC library for google-cloud-iap com.google.cloud google-cloud-iap-parent - 0.40.0-SNAPSHOT + 0.41.0 diff --git a/java-iap/pom.xml b/java-iap/pom.xml index 510626fe9b24..960047095d54 100644 --- a/java-iap/pom.xml +++ b/java-iap/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-iap-parent pom - 0.40.0-SNAPSHOT + 0.41.0 Google Cloud Identity-Aware Proxy API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-iap - 0.40.0-SNAPSHOT + 0.41.0 com.google.api.grpc grpc-google-cloud-iap-v1 - 0.40.0-SNAPSHOT + 0.41.0 com.google.api.grpc proto-google-cloud-iap-v1 - 0.40.0-SNAPSHOT + 0.41.0 diff --git a/java-iap/proto-google-cloud-iap-v1/pom.xml b/java-iap/proto-google-cloud-iap-v1/pom.xml index 1fd30a1b1006..dfa16affa06f 100644 --- a/java-iap/proto-google-cloud-iap-v1/pom.xml +++ b/java-iap/proto-google-cloud-iap-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-iap-v1 - 0.40.0-SNAPSHOT + 0.41.0 proto-google-cloud-iap-v1 Proto library for google-cloud-iap com.google.cloud google-cloud-iap-parent - 0.40.0-SNAPSHOT + 0.41.0 diff --git a/java-ids/README.md b/java-ids/README.md index edaebec0e3e0..da73078ec1e4 100644 --- a/java-ids/README.md +++ b/java-ids/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-ids - 1.81.0 + 1.82.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-ids:1.81.0' +implementation 'com.google.cloud:google-cloud-ids:1.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-ids" % "1.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-ids" % "1.82.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-ids/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-ids.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ids/1.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ids/1.82.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-ids/google-cloud-ids-bom/pom.xml b/java-ids/google-cloud-ids-bom/pom.xml index adb7b39ee1d4..557cc3292ed9 100644 --- a/java-ids/google-cloud-ids-bom/pom.xml +++ b/java-ids/google-cloud-ids-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-ids-bom - 1.83.0-SNAPSHOT + 1.84.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-ids - 1.83.0-SNAPSHOT + 1.84.0 com.google.api.grpc grpc-google-cloud-ids-v1 - 1.83.0-SNAPSHOT + 1.84.0 com.google.api.grpc proto-google-cloud-ids-v1 - 1.83.0-SNAPSHOT + 1.84.0 diff --git a/java-ids/google-cloud-ids/pom.xml b/java-ids/google-cloud-ids/pom.xml index 074ae71ac799..9342fc5f85f1 100644 --- a/java-ids/google-cloud-ids/pom.xml +++ b/java-ids/google-cloud-ids/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-ids - 1.83.0-SNAPSHOT + 1.84.0 jar Google Intrusion Detection System Intrusion Detection System monitors your networks, and it alerts you when it detects malicious activity. Cloud IDS is powered by Palo Alto Networks. com.google.cloud google-cloud-ids-parent - 1.83.0-SNAPSHOT + 1.84.0 google-cloud-ids diff --git a/java-ids/grpc-google-cloud-ids-v1/pom.xml b/java-ids/grpc-google-cloud-ids-v1/pom.xml index 79daada6a02d..f70f7ad004a7 100644 --- a/java-ids/grpc-google-cloud-ids-v1/pom.xml +++ b/java-ids/grpc-google-cloud-ids-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-ids-v1 - 1.83.0-SNAPSHOT + 1.84.0 grpc-google-cloud-ids-v1 GRPC library for google-cloud-ids com.google.cloud google-cloud-ids-parent - 1.83.0-SNAPSHOT + 1.84.0 diff --git a/java-ids/pom.xml b/java-ids/pom.xml index c8483a1ce3eb..774db96e73ce 100644 --- a/java-ids/pom.xml +++ b/java-ids/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-ids-parent pom - 1.83.0-SNAPSHOT + 1.84.0 Google Intrusion Detection System Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-ids - 1.83.0-SNAPSHOT + 1.84.0 com.google.api.grpc grpc-google-cloud-ids-v1 - 1.83.0-SNAPSHOT + 1.84.0 com.google.api.grpc proto-google-cloud-ids-v1 - 1.83.0-SNAPSHOT + 1.84.0 diff --git a/java-ids/proto-google-cloud-ids-v1/pom.xml b/java-ids/proto-google-cloud-ids-v1/pom.xml index 7179a303d13a..8b51fe1a4fec 100644 --- a/java-ids/proto-google-cloud-ids-v1/pom.xml +++ b/java-ids/proto-google-cloud-ids-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-ids-v1 - 1.83.0-SNAPSHOT + 1.84.0 proto-google-cloud-ids-v1 Proto library for google-cloud-ids com.google.cloud google-cloud-ids-parent - 1.83.0-SNAPSHOT + 1.84.0 diff --git a/java-infra-manager/README.md b/java-infra-manager/README.md index 3e576d0d12fe..bc40565fd180 100644 --- a/java-infra-manager/README.md +++ b/java-infra-manager/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-infra-manager - 0.59.0 + 0.60.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-infra-manager:0.59.0' +implementation 'com.google.cloud:google-cloud-infra-manager:0.60.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-infra-manager" % "0.59.0" +libraryDependencies += "com.google.cloud" % "google-cloud-infra-manager" % "0.60.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-infra-manager/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-infra-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-infra-manager/0.59.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-infra-manager/0.60.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-infra-manager/google-cloud-infra-manager-bom/pom.xml b/java-infra-manager/google-cloud-infra-manager-bom/pom.xml index cd6cc61fef10..74f4a67813e7 100644 --- a/java-infra-manager/google-cloud-infra-manager-bom/pom.xml +++ b/java-infra-manager/google-cloud-infra-manager-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-infra-manager-bom - 0.61.0-SNAPSHOT + 0.62.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-infra-manager - 0.61.0-SNAPSHOT + 0.62.0 com.google.api.grpc grpc-google-cloud-infra-manager-v1 - 0.61.0-SNAPSHOT + 0.62.0 com.google.api.grpc proto-google-cloud-infra-manager-v1 - 0.61.0-SNAPSHOT + 0.62.0 diff --git a/java-infra-manager/google-cloud-infra-manager/pom.xml b/java-infra-manager/google-cloud-infra-manager/pom.xml index 3aad93cb1c0b..9fc730b4b048 100644 --- a/java-infra-manager/google-cloud-infra-manager/pom.xml +++ b/java-infra-manager/google-cloud-infra-manager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-infra-manager - 0.61.0-SNAPSHOT + 0.62.0 jar Google Infrastructure Manager API Infrastructure Manager API Creates and manages Google Cloud Platform resources and infrastructure. com.google.cloud google-cloud-infra-manager-parent - 0.61.0-SNAPSHOT + 0.62.0 google-cloud-infra-manager diff --git a/java-infra-manager/grpc-google-cloud-infra-manager-v1/pom.xml b/java-infra-manager/grpc-google-cloud-infra-manager-v1/pom.xml index 968f59fe5f3f..5c7df98b6410 100644 --- a/java-infra-manager/grpc-google-cloud-infra-manager-v1/pom.xml +++ b/java-infra-manager/grpc-google-cloud-infra-manager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-infra-manager-v1 - 0.61.0-SNAPSHOT + 0.62.0 grpc-google-cloud-infra-manager-v1 GRPC library for google-cloud-infra-manager com.google.cloud google-cloud-infra-manager-parent - 0.61.0-SNAPSHOT + 0.62.0 diff --git a/java-infra-manager/pom.xml b/java-infra-manager/pom.xml index 8bc3824a9d62..ba2d22c57369 100644 --- a/java-infra-manager/pom.xml +++ b/java-infra-manager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-infra-manager-parent pom - 0.61.0-SNAPSHOT + 0.62.0 Google Infrastructure Manager API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-infra-manager - 0.61.0-SNAPSHOT + 0.62.0 com.google.api.grpc grpc-google-cloud-infra-manager-v1 - 0.61.0-SNAPSHOT + 0.62.0 com.google.api.grpc proto-google-cloud-infra-manager-v1 - 0.61.0-SNAPSHOT + 0.62.0 diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/pom.xml b/java-infra-manager/proto-google-cloud-infra-manager-v1/pom.xml index 2a2b886c380d..b34356c47ed2 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/pom.xml +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-infra-manager-v1 - 0.61.0-SNAPSHOT + 0.62.0 proto-google-cloud-infra-manager-v1 Proto library for google-cloud-infra-manager com.google.cloud google-cloud-infra-manager-parent - 0.61.0-SNAPSHOT + 0.62.0 diff --git a/java-iot/README.md b/java-iot/README.md index 119e4183f884..9d86d1dd4f99 100644 --- a/java-iot/README.md +++ b/java-iot/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-iot - 2.82.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iot:2.82.0' +implementation 'com.google.cloud:google-cloud-iot:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "2.83.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-iot/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-iot.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iot/2.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iot/2.83.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iot/google-cloud-iot-bom/pom.xml b/java-iot/google-cloud-iot-bom/pom.xml index 02b95d364d98..aee1a3ecbd34 100644 --- a/java-iot/google-cloud-iot-bom/pom.xml +++ b/java-iot/google-cloud-iot-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-iot-bom - 2.84.0-SNAPSHOT + 2.85.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-iot - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc grpc-google-cloud-iot-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc proto-google-cloud-iot-v1 - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-iot/google-cloud-iot/pom.xml b/java-iot/google-cloud-iot/pom.xml index c4c550c50ac4..25dd4f3b13ae 100644 --- a/java-iot/google-cloud-iot/pom.xml +++ b/java-iot/google-cloud-iot/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-iot - 2.84.0-SNAPSHOT + 2.85.0 jar Google Cloud IoT Core Java idiomatic client for Google Cloud IoT Core com.google.cloud google-cloud-iot-parent - 2.84.0-SNAPSHOT + 2.85.0 google-cloud-iot diff --git a/java-iot/grpc-google-cloud-iot-v1/pom.xml b/java-iot/grpc-google-cloud-iot-v1/pom.xml index 9863f9181553..f029a4c745e7 100644 --- a/java-iot/grpc-google-cloud-iot-v1/pom.xml +++ b/java-iot/grpc-google-cloud-iot-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-iot-v1 - 2.84.0-SNAPSHOT + 2.85.0 grpc-google-cloud-iot-v1 GRPC library for grpc-google-cloud-iot-v1 com.google.cloud google-cloud-iot-parent - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-iot/pom.xml b/java-iot/pom.xml index d90a96d0bc1c..74cfcc139a28 100644 --- a/java-iot/pom.xml +++ b/java-iot/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-iot-parent pom - 2.84.0-SNAPSHOT + 2.85.0 Google Cloud IoT Core Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-iot-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.api.grpc grpc-google-cloud-iot-v1 - 2.84.0-SNAPSHOT + 2.85.0 com.google.cloud google-cloud-iot - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-iot/proto-google-cloud-iot-v1/pom.xml b/java-iot/proto-google-cloud-iot-v1/pom.xml index 4d464bb4752f..e1ebb978bef4 100644 --- a/java-iot/proto-google-cloud-iot-v1/pom.xml +++ b/java-iot/proto-google-cloud-iot-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-iot-v1 - 2.84.0-SNAPSHOT + 2.85.0 proto-google-cloud-iot-v1 PROTO library for proto-google-cloud-iot-v1 com.google.cloud google-cloud-iot-parent - 2.84.0-SNAPSHOT + 2.85.0 diff --git a/java-java-shopping-merchant-issue-resolution/README.md b/java-java-shopping-merchant-issue-resolution/README.md index 5836cc10fd16..e36bb733fe63 100644 --- a/java-java-shopping-merchant-issue-resolution/README.md +++ b/java-java-shopping-merchant-issue-resolution/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-issue-resolution - 1.10.0 + 1.11.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-issue-resolution:1.10.0' +implementation 'com.google.shopping:google-shopping-merchant-issue-resolution:1.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-issue-resolution" % "1.10.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-issue-resolution" % "1.11.0" ``` ## Authentication @@ -152,7 +152,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-issue-resolution/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-issue-resolution.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-issue-resolution/1.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-issue-resolution/1.11.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution-bom/pom.xml b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution-bom/pom.xml index 2be9cc07c759..023c1e826f9c 100644 --- a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution-bom/pom.xml +++ b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-issue-resolution-bom - 1.12.0-SNAPSHOT + 1.13.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,27 +26,27 @@ com.google.shopping google-shopping-merchant-issue-resolution - 1.12.0-SNAPSHOT + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-issue-resolution-v1beta - 1.12.0-SNAPSHOT + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-issue-resolution-v1 - 1.12.0-SNAPSHOT + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-issue-resolution-v1beta - 1.12.0-SNAPSHOT + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-issue-resolution-v1 - 1.12.0-SNAPSHOT + 1.13.0 diff --git a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/pom.xml b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/pom.xml index f3d604956d99..649563a660f9 100644 --- a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/pom.xml +++ b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-issue-resolution - 1.12.0-SNAPSHOT + 1.13.0 jar Google Merchant Issue Resolution API Merchant Issue Resolution API Programatically manage your Merchant Issues com.google.shopping google-shopping-merchant-issue-resolution-parent - 1.12.0-SNAPSHOT + 1.13.0 google-shopping-merchant-issue-resolution diff --git a/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1/pom.xml b/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1/pom.xml index 9ae752d712ae..bc516af6643d 100644 --- a/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1/pom.xml +++ b/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-issue-resolution-v1 - 1.12.0-SNAPSHOT + 1.13.0 grpc-google-shopping-merchant-issue-resolution-v1 GRPC library for google-shopping-merchant-issue-resolution com.google.shopping google-shopping-merchant-issue-resolution-parent - 1.12.0-SNAPSHOT + 1.13.0 diff --git a/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1beta/pom.xml b/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1beta/pom.xml index 285b04e8a6e3..fe2a78e24247 100644 --- a/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1beta/pom.xml +++ b/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-issue-resolution-v1beta - 1.12.0-SNAPSHOT + 1.13.0 grpc-google-shopping-merchant-issue-resolution-v1beta GRPC library for google-shopping-merchant-issue-resolution com.google.shopping google-shopping-merchant-issue-resolution-parent - 1.12.0-SNAPSHOT + 1.13.0 diff --git a/java-java-shopping-merchant-issue-resolution/pom.xml b/java-java-shopping-merchant-issue-resolution/pom.xml index 76357e9f6566..bbc8f31e22d6 100644 --- a/java-java-shopping-merchant-issue-resolution/pom.xml +++ b/java-java-shopping-merchant-issue-resolution/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-issue-resolution-parent pom - 1.12.0-SNAPSHOT + 1.13.0 Google Merchant Issue Resolution API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.shopping google-shopping-merchant-issue-resolution - 1.12.0-SNAPSHOT + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-issue-resolution-v1 - 1.12.0-SNAPSHOT + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-issue-resolution-v1 - 1.12.0-SNAPSHOT + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-issue-resolution-v1beta - 1.12.0-SNAPSHOT + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-issue-resolution-v1beta - 1.12.0-SNAPSHOT + 1.13.0 diff --git a/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1/pom.xml b/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1/pom.xml index d1c0b2f8ec2d..270d5debaed7 100644 --- a/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1/pom.xml +++ b/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-issue-resolution-v1 - 1.12.0-SNAPSHOT + 1.13.0 proto-google-shopping-merchant-issue-resolution-v1 Proto library for google-shopping-merchant-issue-resolution com.google.shopping google-shopping-merchant-issue-resolution-parent - 1.12.0-SNAPSHOT + 1.13.0 diff --git a/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1beta/pom.xml b/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1beta/pom.xml index e4a5b8532b3c..9ad87a025a5b 100644 --- a/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1beta/pom.xml +++ b/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-issue-resolution-v1beta - 1.12.0-SNAPSHOT + 1.13.0 proto-google-shopping-merchant-issue-resolution-v1beta Proto library for google-shopping-merchant-issue-resolution com.google.shopping google-shopping-merchant-issue-resolution-parent - 1.12.0-SNAPSHOT + 1.13.0 diff --git a/java-java-shopping-merchant-order-tracking/README.md b/java-java-shopping-merchant-order-tracking/README.md index 05f24b566aa5..339c5af444d5 100644 --- a/java-java-shopping-merchant-order-tracking/README.md +++ b/java-java-shopping-merchant-order-tracking/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-order-tracking - 1.10.0 + 1.11.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-order-tracking:1.10.0' +implementation 'com.google.shopping:google-shopping-merchant-order-tracking:1.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-order-tracking" % "1.10.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-order-tracking" % "1.11.0" ``` ## Authentication @@ -152,7 +152,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-order-tracking/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-order-tracking.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-order-tracking/1.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-order-tracking/1.11.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking-bom/pom.xml b/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking-bom/pom.xml index 73482eee164f..0b6bee17bffc 100644 --- a/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking-bom/pom.xml +++ b/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-order-tracking-bom - 1.12.0-SNAPSHOT + 1.13.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,27 +26,27 @@ com.google.shopping google-shopping-merchant-order-tracking - 1.12.0-SNAPSHOT + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-order-tracking-v1beta - 1.12.0-SNAPSHOT + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-order-tracking-v1 - 1.12.0-SNAPSHOT + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-order-tracking-v1beta - 1.12.0-SNAPSHOT + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-order-tracking-v1 - 1.12.0-SNAPSHOT + 1.13.0 diff --git a/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/pom.xml b/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/pom.xml index 705f4b9c97be..f7524a9a9457 100644 --- a/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/pom.xml +++ b/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-order-tracking - 1.12.0-SNAPSHOT + 1.13.0 jar Google Merchant Order Tracking API Merchant Order Tracking API Programmatically manage your Merchant Center Accounts com.google.shopping google-shopping-merchant-order-tracking-parent - 1.12.0-SNAPSHOT + 1.13.0 google-shopping-merchant-order-tracking diff --git a/java-java-shopping-merchant-order-tracking/grpc-google-shopping-merchant-order-tracking-v1/pom.xml b/java-java-shopping-merchant-order-tracking/grpc-google-shopping-merchant-order-tracking-v1/pom.xml index 2ecb9fb4444e..5c2a9d6aff85 100644 --- a/java-java-shopping-merchant-order-tracking/grpc-google-shopping-merchant-order-tracking-v1/pom.xml +++ b/java-java-shopping-merchant-order-tracking/grpc-google-shopping-merchant-order-tracking-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-order-tracking-v1 - 1.12.0-SNAPSHOT + 1.13.0 grpc-google-shopping-merchant-order-tracking-v1 GRPC library for google-shopping-merchant-order-tracking com.google.shopping google-shopping-merchant-order-tracking-parent - 1.12.0-SNAPSHOT + 1.13.0 diff --git a/java-java-shopping-merchant-order-tracking/grpc-google-shopping-merchant-order-tracking-v1beta/pom.xml b/java-java-shopping-merchant-order-tracking/grpc-google-shopping-merchant-order-tracking-v1beta/pom.xml index 6b2d3578c188..287e4d73935f 100644 --- a/java-java-shopping-merchant-order-tracking/grpc-google-shopping-merchant-order-tracking-v1beta/pom.xml +++ b/java-java-shopping-merchant-order-tracking/grpc-google-shopping-merchant-order-tracking-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-order-tracking-v1beta - 1.12.0-SNAPSHOT + 1.13.0 grpc-google-shopping-merchant-order-tracking-v1beta GRPC library for google-shopping-merchant-order-tracking com.google.shopping google-shopping-merchant-order-tracking-parent - 1.12.0-SNAPSHOT + 1.13.0 diff --git a/java-java-shopping-merchant-order-tracking/pom.xml b/java-java-shopping-merchant-order-tracking/pom.xml index 6bee70ef0768..861b087e1c0a 100644 --- a/java-java-shopping-merchant-order-tracking/pom.xml +++ b/java-java-shopping-merchant-order-tracking/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-order-tracking-parent pom - 1.12.0-SNAPSHOT + 1.13.0 Google Merchant Order Tracking API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.shopping google-shopping-merchant-order-tracking - 1.12.0-SNAPSHOT + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-order-tracking-v1 - 1.12.0-SNAPSHOT + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-order-tracking-v1 - 1.12.0-SNAPSHOT + 1.13.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-order-tracking-v1beta - 1.12.0-SNAPSHOT + 1.13.0 com.google.shopping.api.grpc proto-google-shopping-merchant-order-tracking-v1beta - 1.12.0-SNAPSHOT + 1.13.0 diff --git a/java-java-shopping-merchant-order-tracking/proto-google-shopping-merchant-order-tracking-v1/pom.xml b/java-java-shopping-merchant-order-tracking/proto-google-shopping-merchant-order-tracking-v1/pom.xml index cef58c5080cd..30de0f824c8c 100644 --- a/java-java-shopping-merchant-order-tracking/proto-google-shopping-merchant-order-tracking-v1/pom.xml +++ b/java-java-shopping-merchant-order-tracking/proto-google-shopping-merchant-order-tracking-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-order-tracking-v1 - 1.12.0-SNAPSHOT + 1.13.0 proto-google-shopping-merchant-order-tracking-v1 Proto library for google-shopping-merchant-order-tracking com.google.shopping google-shopping-merchant-order-tracking-parent - 1.12.0-SNAPSHOT + 1.13.0 diff --git a/java-java-shopping-merchant-order-tracking/proto-google-shopping-merchant-order-tracking-v1beta/pom.xml b/java-java-shopping-merchant-order-tracking/proto-google-shopping-merchant-order-tracking-v1beta/pom.xml index 09bf33a44962..136a44f3cfe0 100644 --- a/java-java-shopping-merchant-order-tracking/proto-google-shopping-merchant-order-tracking-v1beta/pom.xml +++ b/java-java-shopping-merchant-order-tracking/proto-google-shopping-merchant-order-tracking-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-order-tracking-v1beta - 1.12.0-SNAPSHOT + 1.13.0 proto-google-shopping-merchant-order-tracking-v1beta Proto library for google-shopping-merchant-order-tracking com.google.shopping google-shopping-merchant-order-tracking-parent - 1.12.0-SNAPSHOT + 1.13.0 diff --git a/java-kms/README.md b/java-kms/README.md index 6de7555721b0..51be38d781e1 100644 --- a/java-kms/README.md +++ b/java-kms/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-kms - 2.85.0 + 2.87.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-kms:2.85.0' +implementation 'com.google.cloud:google-cloud-kms:2.87.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "2.85.0" +libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "2.87.0" ``` ## Authentication @@ -175,7 +175,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-kms/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-kms.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kms/2.85.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kms/2.87.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-kms/google-cloud-kms-bom/pom.xml b/java-kms/google-cloud-kms-bom/pom.xml index 82b7ceebe781..93d96c0255fe 100644 --- a/java-kms/google-cloud-kms-bom/pom.xml +++ b/java-kms/google-cloud-kms-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-kms-bom - 2.87.0-SNAPSHOT + 2.88.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-kms - 2.87.0-SNAPSHOT + 2.88.0 com.google.api.grpc grpc-google-cloud-kms-v1 - 0.178.0-SNAPSHOT + 0.179.0 com.google.api.grpc proto-google-cloud-kms-v1 - 0.178.0-SNAPSHOT + 0.179.0 diff --git a/java-kms/google-cloud-kms/pom.xml b/java-kms/google-cloud-kms/pom.xml index d49e861ceae0..82cb9e066e38 100644 --- a/java-kms/google-cloud-kms/pom.xml +++ b/java-kms/google-cloud-kms/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-kms - 2.87.0-SNAPSHOT + 2.88.0 jar Google Cloud KMS Java idiomatic client for Google Cloud KMS com.google.cloud google-cloud-kms-parent - 2.87.0-SNAPSHOT + 2.88.0 google-cloud-kms diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceClient.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceClient.java index 533f81b8c2ed..7eff7d418975 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceClient.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceClient.java @@ -18,10 +18,14 @@ import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; import com.google.api.resourcenames.ResourceName; @@ -37,7 +41,9 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import java.io.IOException; import java.util.List; @@ -169,6 +175,26 @@ * * * + *

            ListRetiredResources + *

            Lists the [RetiredResources][google.cloud.kms.v1.RetiredResource] which are the records of deleted [CryptoKeys][google.cloud.kms.v1.CryptoKey]. RetiredResources prevent the reuse of these resource names after deletion. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • listRetiredResources(ListRetiredResourcesRequest request) + *

            + *

            "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

            + *
              + *
            • listRetiredResources(LocationName parent) + *

            • listRetiredResources(String parent) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • listRetiredResourcesPagedCallable() + *

            • listRetiredResourcesCallable() + *

            + * + * + * *

            GetKeyRing *

            Returns metadata for a given [KeyRing][google.cloud.kms.v1.KeyRing]. * @@ -264,6 +290,25 @@ * * * + *

            GetRetiredResource + *

            Retrieves a specific [RetiredResource][google.cloud.kms.v1.RetiredResource] resource, which represents the record of a deleted [CryptoKey][google.cloud.kms.v1.CryptoKey]. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • getRetiredResource(GetRetiredResourceRequest request) + *

            + *

            "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

            + *
              + *
            • getRetiredResource(RetiredResourceName name) + *

            • getRetiredResource(String name) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • getRetiredResourceCallable() + *

            + * + * + * *

            CreateKeyRing *

            Create a new [KeyRing][google.cloud.kms.v1.KeyRing] in a given Project and Location. * @@ -323,6 +368,46 @@ * * * + *

            DeleteCryptoKey + *

            Permanently deletes the given [CryptoKey][google.cloud.kms.v1.CryptoKey]. All child [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] must have been previously deleted using [KeyManagementService.DeleteCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.DeleteCryptoKeyVersion]. The specified crypto key will be immediately and permanently deleted upon calling this method. This action cannot be undone. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • deleteCryptoKeyAsync(DeleteCryptoKeyRequest request) + *

            + *

            Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

            + *
              + *
            • deleteCryptoKeyAsync(CryptoKeyName name) + *

            • deleteCryptoKeyAsync(String name) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • deleteCryptoKeyOperationCallable() + *

            • deleteCryptoKeyCallable() + *

            + * + * + * + *

            DeleteCryptoKeyVersion + *

            Permanently deletes the given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. Only possible if the version has not been previously imported and if its [state][google.cloud.kms.v1.CryptoKeyVersion.state] is one of [DESTROYED][CryptoKeyVersionState.DESTROYED], [IMPORT_FAILED][CryptoKeyVersionState.IMPORT_FAILED], or [GENERATION_FAILED][CryptoKeyVersionState.GENERATION_FAILED]. Successfully imported [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] cannot be deleted at this time. The specified version will be immediately and permanently deleted upon calling this method. This action cannot be undone. + * + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • deleteCryptoKeyVersionAsync(DeleteCryptoKeyVersionRequest request) + *

            + *

            Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

            + *
              + *
            • deleteCryptoKeyVersionAsync(CryptoKeyVersionName name) + *

            • deleteCryptoKeyVersionAsync(String name) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • deleteCryptoKeyVersionOperationCallable() + *

            • deleteCryptoKeyVersionCallable() + *

            + * + * + * *

            ImportCryptoKeyVersion *

            Import wrapped key material into a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. *

            All requests must specify a [CryptoKey][google.cloud.kms.v1.CryptoKey]. If a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] is additionally specified in the request, key material will be reimported into that version. Otherwise, a new version will be created, and will be assigned the next sequential id within the [CryptoKey][google.cloud.kms.v1.CryptoKey]. @@ -764,6 +849,8 @@ public class KeyManagementServiceClient implements BackgroundResource { private final KeyManagementServiceSettings settings; private final KeyManagementServiceStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; /** Constructs an instance of KeyManagementServiceClient with default settings. */ public static final KeyManagementServiceClient create() throws IOException { @@ -795,11 +882,17 @@ public static final KeyManagementServiceClient create(KeyManagementServiceStub s protected KeyManagementServiceClient(KeyManagementServiceSettings settings) throws IOException { this.settings = settings; this.stub = ((KeyManagementServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } protected KeyManagementServiceClient(KeyManagementServiceStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } public final KeyManagementServiceSettings getSettings() { @@ -810,6 +903,23 @@ public KeyManagementServiceStub getStub() { return stub; } + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists [KeyRings][google.cloud.kms.v1.KeyRing]. @@ -1530,6 +1640,194 @@ public final ListImportJobsPagedResponse listImportJobs(ListImportJobsRequest re return stub.listImportJobsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the [RetiredResources][google.cloud.kms.v1.RetiredResource] which are the records of + * deleted [CryptoKeys][google.cloud.kms.v1.CryptoKey]. RetiredResources prevent the reuse of + * these resource names after deletion. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (KeyManagementServiceClient keyManagementServiceClient =
            +   *     KeyManagementServiceClient.create()) {
            +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
            +   *   for (RetiredResource element :
            +   *       keyManagementServiceClient.listRetiredResources(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The project-specific location holding the + * [RetiredResources][google.cloud.kms.v1.RetiredResource], in the format + * `projects/*/locations/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListRetiredResourcesPagedResponse listRetiredResources(LocationName parent) { + ListRetiredResourcesRequest request = + ListRetiredResourcesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listRetiredResources(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the [RetiredResources][google.cloud.kms.v1.RetiredResource] which are the records of + * deleted [CryptoKeys][google.cloud.kms.v1.CryptoKey]. RetiredResources prevent the reuse of + * these resource names after deletion. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (KeyManagementServiceClient keyManagementServiceClient =
            +   *     KeyManagementServiceClient.create()) {
            +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
            +   *   for (RetiredResource element :
            +   *       keyManagementServiceClient.listRetiredResources(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The project-specific location holding the + * [RetiredResources][google.cloud.kms.v1.RetiredResource], in the format + * `projects/*/locations/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListRetiredResourcesPagedResponse listRetiredResources(String parent) { + ListRetiredResourcesRequest request = + ListRetiredResourcesRequest.newBuilder().setParent(parent).build(); + return listRetiredResources(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the [RetiredResources][google.cloud.kms.v1.RetiredResource] which are the records of + * deleted [CryptoKeys][google.cloud.kms.v1.CryptoKey]. RetiredResources prevent the reuse of + * these resource names after deletion. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (KeyManagementServiceClient keyManagementServiceClient =
            +   *     KeyManagementServiceClient.create()) {
            +   *   ListRetiredResourcesRequest request =
            +   *       ListRetiredResourcesRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   for (RetiredResource element :
            +   *       keyManagementServiceClient.listRetiredResources(request).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListRetiredResourcesPagedResponse listRetiredResources( + ListRetiredResourcesRequest request) { + return listRetiredResourcesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the [RetiredResources][google.cloud.kms.v1.RetiredResource] which are the records of + * deleted [CryptoKeys][google.cloud.kms.v1.CryptoKey]. RetiredResources prevent the reuse of + * these resource names after deletion. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (KeyManagementServiceClient keyManagementServiceClient =
            +   *     KeyManagementServiceClient.create()) {
            +   *   ListRetiredResourcesRequest request =
            +   *       ListRetiredResourcesRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   ApiFuture future =
            +   *       keyManagementServiceClient.listRetiredResourcesPagedCallable().futureCall(request);
            +   *   // Do something.
            +   *   for (RetiredResource element : future.get().iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + listRetiredResourcesPagedCallable() { + return stub.listRetiredResourcesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the [RetiredResources][google.cloud.kms.v1.RetiredResource] which are the records of + * deleted [CryptoKeys][google.cloud.kms.v1.CryptoKey]. RetiredResources prevent the reuse of + * these resource names after deletion. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (KeyManagementServiceClient keyManagementServiceClient =
            +   *     KeyManagementServiceClient.create()) {
            +   *   ListRetiredResourcesRequest request =
            +   *       ListRetiredResourcesRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   while (true) {
            +   *     ListRetiredResourcesResponse response =
            +   *         keyManagementServiceClient.listRetiredResourcesCallable().call(request);
            +   *     for (RetiredResource element : response.getRetiredResourcesList()) {
            +   *       // doThingsWith(element);
            +   *     }
            +   *     String nextPageToken = response.getNextPageToken();
            +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
            +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
            +   *     } else {
            +   *       break;
            +   *     }
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + listRetiredResourcesCallable() { + return stub.listRetiredResourcesCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns metadata for a given [KeyRing][google.cloud.kms.v1.KeyRing]. @@ -2181,7 +2479,8 @@ public final UnaryCallable getImportJobCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Create a new [KeyRing][google.cloud.kms.v1.KeyRing] in a given Project and Location. + * Retrieves a specific [RetiredResource][google.cloud.kms.v1.RetiredResource] resource, which + * represents the record of a deleted [CryptoKey][google.cloud.kms.v1.CryptoKey]. * *

            Sample code: * @@ -2193,33 +2492,28 @@ public final UnaryCallable getImportJobCallable( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (KeyManagementServiceClient keyManagementServiceClient = * KeyManagementServiceClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * String keyRingId = "keyRingId-2027180374"; - * KeyRing keyRing = KeyRing.newBuilder().build(); - * KeyRing response = keyManagementServiceClient.createKeyRing(parent, keyRingId, keyRing); + * RetiredResourceName name = + * RetiredResourceName.of("[PROJECT]", "[LOCATION]", "[RETIRED_RESOURCE]"); + * RetiredResource response = keyManagementServiceClient.getRetiredResource(name); * } * }

            * - * @param parent Required. The resource name of the location associated with the - * [KeyRings][google.cloud.kms.v1.KeyRing], in the format `projects/*/locations/*`. - * @param keyRingId Required. It must be unique within a location and match the regular expression - * `[a-zA-Z0-9_-]{1,63}` - * @param keyRing Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field values. + * @param name Required. The [name][google.cloud.kms.v1.RetiredResource.name] of the + * [RetiredResource][google.cloud.kms.v1.RetiredResource] to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final KeyRing createKeyRing(LocationName parent, String keyRingId, KeyRing keyRing) { - CreateKeyRingRequest request = - CreateKeyRingRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setKeyRingId(keyRingId) - .setKeyRing(keyRing) + public final RetiredResource getRetiredResource(RetiredResourceName name) { + GetRetiredResourceRequest request = + GetRetiredResourceRequest.newBuilder() + .setName(name == null ? null : name.toString()) .build(); - return createKeyRing(request); + return getRetiredResource(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Create a new [KeyRing][google.cloud.kms.v1.KeyRing] in a given Project and Location. + * Retrieves a specific [RetiredResource][google.cloud.kms.v1.RetiredResource] resource, which + * represents the record of a deleted [CryptoKey][google.cloud.kms.v1.CryptoKey]. * *

            Sample code: * @@ -2231,33 +2525,26 @@ public final KeyRing createKeyRing(LocationName parent, String keyRingId, KeyRin * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (KeyManagementServiceClient keyManagementServiceClient = * KeyManagementServiceClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * String keyRingId = "keyRingId-2027180374"; - * KeyRing keyRing = KeyRing.newBuilder().build(); - * KeyRing response = keyManagementServiceClient.createKeyRing(parent, keyRingId, keyRing); + * String name = + * RetiredResourceName.of("[PROJECT]", "[LOCATION]", "[RETIRED_RESOURCE]").toString(); + * RetiredResource response = keyManagementServiceClient.getRetiredResource(name); * } * }

            * - * @param parent Required. The resource name of the location associated with the - * [KeyRings][google.cloud.kms.v1.KeyRing], in the format `projects/*/locations/*`. - * @param keyRingId Required. It must be unique within a location and match the regular expression - * `[a-zA-Z0-9_-]{1,63}` - * @param keyRing Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field values. + * @param name Required. The [name][google.cloud.kms.v1.RetiredResource.name] of the + * [RetiredResource][google.cloud.kms.v1.RetiredResource] to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final KeyRing createKeyRing(String parent, String keyRingId, KeyRing keyRing) { - CreateKeyRingRequest request = - CreateKeyRingRequest.newBuilder() - .setParent(parent) - .setKeyRingId(keyRingId) - .setKeyRing(keyRing) - .build(); - return createKeyRing(request); + public final RetiredResource getRetiredResource(String name) { + GetRetiredResourceRequest request = + GetRetiredResourceRequest.newBuilder().setName(name).build(); + return getRetiredResource(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Create a new [KeyRing][google.cloud.kms.v1.KeyRing] in a given Project and Location. + * Retrieves a specific [RetiredResource][google.cloud.kms.v1.RetiredResource] resource, which + * represents the record of a deleted [CryptoKey][google.cloud.kms.v1.CryptoKey]. * *

            Sample code: * @@ -2269,26 +2556,27 @@ public final KeyRing createKeyRing(String parent, String keyRingId, KeyRing keyR * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (KeyManagementServiceClient keyManagementServiceClient = * KeyManagementServiceClient.create()) { - * CreateKeyRingRequest request = - * CreateKeyRingRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setKeyRingId("keyRingId-2027180374") - * .setKeyRing(KeyRing.newBuilder().build()) + * GetRetiredResourceRequest request = + * GetRetiredResourceRequest.newBuilder() + * .setName( + * RetiredResourceName.of("[PROJECT]", "[LOCATION]", "[RETIRED_RESOURCE]") + * .toString()) * .build(); - * KeyRing response = keyManagementServiceClient.createKeyRing(request); + * RetiredResource response = keyManagementServiceClient.getRetiredResource(request); * } * }

            * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final KeyRing createKeyRing(CreateKeyRingRequest request) { - return createKeyRingCallable().call(request); + public final RetiredResource getRetiredResource(GetRetiredResourceRequest request) { + return getRetiredResourceCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Create a new [KeyRing][google.cloud.kms.v1.KeyRing] in a given Project and Location. + * Retrieves a specific [RetiredResource][google.cloud.kms.v1.RetiredResource] resource, which + * represents the record of a deleted [CryptoKey][google.cloud.kms.v1.CryptoKey]. * *

            Sample code: * @@ -2300,30 +2588,215 @@ public final KeyRing createKeyRing(CreateKeyRingRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (KeyManagementServiceClient keyManagementServiceClient = * KeyManagementServiceClient.create()) { - * CreateKeyRingRequest request = - * CreateKeyRingRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setKeyRingId("keyRingId-2027180374") - * .setKeyRing(KeyRing.newBuilder().build()) + * GetRetiredResourceRequest request = + * GetRetiredResourceRequest.newBuilder() + * .setName( + * RetiredResourceName.of("[PROJECT]", "[LOCATION]", "[RETIRED_RESOURCE]") + * .toString()) * .build(); - * ApiFuture future = - * keyManagementServiceClient.createKeyRingCallable().futureCall(request); + * ApiFuture future = + * keyManagementServiceClient.getRetiredResourceCallable().futureCall(request); * // Do something. - * KeyRing response = future.get(); + * RetiredResource response = future.get(); * } * }

            */ - public final UnaryCallable createKeyRingCallable() { - return stub.createKeyRingCallable(); + public final UnaryCallable + getRetiredResourceCallable() { + return stub.getRetiredResourceCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Create a new [CryptoKey][google.cloud.kms.v1.CryptoKey] within a - * [KeyRing][google.cloud.kms.v1.KeyRing]. + * Create a new [KeyRing][google.cloud.kms.v1.KeyRing] in a given Project and Location. * - *

            [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] and - * [CryptoKey.version_template.algorithm][google.cloud.kms.v1.CryptoKeyVersionTemplate.algorithm] + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (KeyManagementServiceClient keyManagementServiceClient =
            +   *     KeyManagementServiceClient.create()) {
            +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
            +   *   String keyRingId = "keyRingId-2027180374";
            +   *   KeyRing keyRing = KeyRing.newBuilder().build();
            +   *   KeyRing response = keyManagementServiceClient.createKeyRing(parent, keyRingId, keyRing);
            +   * }
            +   * }
            + * + * @param parent Required. The resource name of the location associated with the + * [KeyRings][google.cloud.kms.v1.KeyRing], in the format `projects/*/locations/*`. + * @param keyRingId Required. It must be unique within a location and match the regular expression + * `[a-zA-Z0-9_-]{1,63}` + * @param keyRing Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field values. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final KeyRing createKeyRing(LocationName parent, String keyRingId, KeyRing keyRing) { + CreateKeyRingRequest request = + CreateKeyRingRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setKeyRingId(keyRingId) + .setKeyRing(keyRing) + .build(); + return createKeyRing(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new [KeyRing][google.cloud.kms.v1.KeyRing] in a given Project and Location. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (KeyManagementServiceClient keyManagementServiceClient =
            +   *     KeyManagementServiceClient.create()) {
            +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
            +   *   String keyRingId = "keyRingId-2027180374";
            +   *   KeyRing keyRing = KeyRing.newBuilder().build();
            +   *   KeyRing response = keyManagementServiceClient.createKeyRing(parent, keyRingId, keyRing);
            +   * }
            +   * }
            + * + * @param parent Required. The resource name of the location associated with the + * [KeyRings][google.cloud.kms.v1.KeyRing], in the format `projects/*/locations/*`. + * @param keyRingId Required. It must be unique within a location and match the regular expression + * `[a-zA-Z0-9_-]{1,63}` + * @param keyRing Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field values. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final KeyRing createKeyRing(String parent, String keyRingId, KeyRing keyRing) { + CreateKeyRingRequest request = + CreateKeyRingRequest.newBuilder() + .setParent(parent) + .setKeyRingId(keyRingId) + .setKeyRing(keyRing) + .build(); + return createKeyRing(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new [KeyRing][google.cloud.kms.v1.KeyRing] in a given Project and Location. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (KeyManagementServiceClient keyManagementServiceClient =
            +   *     KeyManagementServiceClient.create()) {
            +   *   CreateKeyRingRequest request =
            +   *       CreateKeyRingRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setKeyRingId("keyRingId-2027180374")
            +   *           .setKeyRing(KeyRing.newBuilder().build())
            +   *           .build();
            +   *   KeyRing response = keyManagementServiceClient.createKeyRing(request);
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final KeyRing createKeyRing(CreateKeyRingRequest request) { + return createKeyRingCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new [KeyRing][google.cloud.kms.v1.KeyRing] in a given Project and Location. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (KeyManagementServiceClient keyManagementServiceClient =
            +   *     KeyManagementServiceClient.create()) {
            +   *   CreateKeyRingRequest request =
            +   *       CreateKeyRingRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setKeyRingId("keyRingId-2027180374")
            +   *           .setKeyRing(KeyRing.newBuilder().build())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       keyManagementServiceClient.createKeyRingCallable().futureCall(request);
            +   *   // Do something.
            +   *   KeyRing response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable createKeyRingCallable() { + return stub.createKeyRingCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new [CryptoKey][google.cloud.kms.v1.CryptoKey] within a + * [KeyRing][google.cloud.kms.v1.KeyRing]. + * + *

            [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] and + * [CryptoKey.version_template.algorithm][google.cloud.kms.v1.CryptoKeyVersionTemplate.algorithm] + * are required. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (KeyManagementServiceClient keyManagementServiceClient =
            +   *     KeyManagementServiceClient.create()) {
            +   *   KeyRingName parent = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]");
            +   *   String cryptoKeyId = "cryptoKeyId-1643185255";
            +   *   CryptoKey cryptoKey = CryptoKey.newBuilder().build();
            +   *   CryptoKey response =
            +   *       keyManagementServiceClient.createCryptoKey(parent, cryptoKeyId, cryptoKey);
            +   * }
            +   * }
            + * + * @param parent Required. The [name][google.cloud.kms.v1.KeyRing.name] of the KeyRing associated + * with the [CryptoKeys][google.cloud.kms.v1.CryptoKey]. + * @param cryptoKeyId Required. It must be unique within a KeyRing and match the regular + * expression `[a-zA-Z0-9_-]{1,63}` + * @param cryptoKey Required. A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field + * values. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CryptoKey createCryptoKey( + KeyRingName parent, String cryptoKeyId, CryptoKey cryptoKey) { + CreateCryptoKeyRequest request = + CreateCryptoKeyRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setCryptoKeyId(cryptoKeyId) + .setCryptoKey(cryptoKey) + .build(); + return createCryptoKey(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new [CryptoKey][google.cloud.kms.v1.CryptoKey] within a + * [KeyRing][google.cloud.kms.v1.KeyRing]. + * + *

            [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] and + * [CryptoKey.version_template.algorithm][google.cloud.kms.v1.CryptoKeyVersionTemplate.algorithm] * are required. * *

            Sample code: @@ -2336,41 +2809,384 @@ public final UnaryCallable createKeyRingCallable( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (KeyManagementServiceClient keyManagementServiceClient = * KeyManagementServiceClient.create()) { - * KeyRingName parent = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]"); - * String cryptoKeyId = "cryptoKeyId-1643185255"; - * CryptoKey cryptoKey = CryptoKey.newBuilder().build(); - * CryptoKey response = - * keyManagementServiceClient.createCryptoKey(parent, cryptoKeyId, cryptoKey); + * String parent = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString(); + * String cryptoKeyId = "cryptoKeyId-1643185255"; + * CryptoKey cryptoKey = CryptoKey.newBuilder().build(); + * CryptoKey response = + * keyManagementServiceClient.createCryptoKey(parent, cryptoKeyId, cryptoKey); + * } + * }

            + * + * @param parent Required. The [name][google.cloud.kms.v1.KeyRing.name] of the KeyRing associated + * with the [CryptoKeys][google.cloud.kms.v1.CryptoKey]. + * @param cryptoKeyId Required. It must be unique within a KeyRing and match the regular + * expression `[a-zA-Z0-9_-]{1,63}` + * @param cryptoKey Required. A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field + * values. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CryptoKey createCryptoKey(String parent, String cryptoKeyId, CryptoKey cryptoKey) { + CreateCryptoKeyRequest request = + CreateCryptoKeyRequest.newBuilder() + .setParent(parent) + .setCryptoKeyId(cryptoKeyId) + .setCryptoKey(cryptoKey) + .build(); + return createCryptoKey(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new [CryptoKey][google.cloud.kms.v1.CryptoKey] within a + * [KeyRing][google.cloud.kms.v1.KeyRing]. + * + *

            [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] and + * [CryptoKey.version_template.algorithm][google.cloud.kms.v1.CryptoKeyVersionTemplate.algorithm] + * are required. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (KeyManagementServiceClient keyManagementServiceClient =
            +   *     KeyManagementServiceClient.create()) {
            +   *   CreateCryptoKeyRequest request =
            +   *       CreateCryptoKeyRequest.newBuilder()
            +   *           .setParent(KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString())
            +   *           .setCryptoKeyId("cryptoKeyId-1643185255")
            +   *           .setCryptoKey(CryptoKey.newBuilder().build())
            +   *           .setSkipInitialVersionCreation(true)
            +   *           .build();
            +   *   CryptoKey response = keyManagementServiceClient.createCryptoKey(request);
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CryptoKey createCryptoKey(CreateCryptoKeyRequest request) { + return createCryptoKeyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new [CryptoKey][google.cloud.kms.v1.CryptoKey] within a + * [KeyRing][google.cloud.kms.v1.KeyRing]. + * + *

            [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] and + * [CryptoKey.version_template.algorithm][google.cloud.kms.v1.CryptoKeyVersionTemplate.algorithm] + * are required. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (KeyManagementServiceClient keyManagementServiceClient =
            +   *     KeyManagementServiceClient.create()) {
            +   *   CreateCryptoKeyRequest request =
            +   *       CreateCryptoKeyRequest.newBuilder()
            +   *           .setParent(KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString())
            +   *           .setCryptoKeyId("cryptoKeyId-1643185255")
            +   *           .setCryptoKey(CryptoKey.newBuilder().build())
            +   *           .setSkipInitialVersionCreation(true)
            +   *           .build();
            +   *   ApiFuture future =
            +   *       keyManagementServiceClient.createCryptoKeyCallable().futureCall(request);
            +   *   // Do something.
            +   *   CryptoKey response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable createCryptoKeyCallable() { + return stub.createCryptoKeyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in a + * [CryptoKey][google.cloud.kms.v1.CryptoKey]. + * + *

            The server will assign the next sequential id. If unset, + * [state][google.cloud.kms.v1.CryptoKeyVersion.state] will be set to + * [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED]. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (KeyManagementServiceClient keyManagementServiceClient =
            +   *     KeyManagementServiceClient.create()) {
            +   *   CryptoKeyName parent =
            +   *       CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]");
            +   *   CryptoKeyVersion cryptoKeyVersion = CryptoKeyVersion.newBuilder().build();
            +   *   CryptoKeyVersion response =
            +   *       keyManagementServiceClient.createCryptoKeyVersion(parent, cryptoKeyVersion);
            +   * }
            +   * }
            + * + * @param parent Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the + * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with the + * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion]. + * @param cryptoKeyVersion Required. A [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] + * with initial field values. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CryptoKeyVersion createCryptoKeyVersion( + CryptoKeyName parent, CryptoKeyVersion cryptoKeyVersion) { + CreateCryptoKeyVersionRequest request = + CreateCryptoKeyVersionRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setCryptoKeyVersion(cryptoKeyVersion) + .build(); + return createCryptoKeyVersion(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in a + * [CryptoKey][google.cloud.kms.v1.CryptoKey]. + * + *

            The server will assign the next sequential id. If unset, + * [state][google.cloud.kms.v1.CryptoKeyVersion.state] will be set to + * [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED]. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (KeyManagementServiceClient keyManagementServiceClient =
            +   *     KeyManagementServiceClient.create()) {
            +   *   String parent =
            +   *       CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]").toString();
            +   *   CryptoKeyVersion cryptoKeyVersion = CryptoKeyVersion.newBuilder().build();
            +   *   CryptoKeyVersion response =
            +   *       keyManagementServiceClient.createCryptoKeyVersion(parent, cryptoKeyVersion);
            +   * }
            +   * }
            + * + * @param parent Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the + * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with the + * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion]. + * @param cryptoKeyVersion Required. A [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] + * with initial field values. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CryptoKeyVersion createCryptoKeyVersion( + String parent, CryptoKeyVersion cryptoKeyVersion) { + CreateCryptoKeyVersionRequest request = + CreateCryptoKeyVersionRequest.newBuilder() + .setParent(parent) + .setCryptoKeyVersion(cryptoKeyVersion) + .build(); + return createCryptoKeyVersion(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in a + * [CryptoKey][google.cloud.kms.v1.CryptoKey]. + * + *

            The server will assign the next sequential id. If unset, + * [state][google.cloud.kms.v1.CryptoKeyVersion.state] will be set to + * [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED]. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (KeyManagementServiceClient keyManagementServiceClient =
            +   *     KeyManagementServiceClient.create()) {
            +   *   CreateCryptoKeyVersionRequest request =
            +   *       CreateCryptoKeyVersionRequest.newBuilder()
            +   *           .setParent(
            +   *               CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]")
            +   *                   .toString())
            +   *           .setCryptoKeyVersion(CryptoKeyVersion.newBuilder().build())
            +   *           .build();
            +   *   CryptoKeyVersion response = keyManagementServiceClient.createCryptoKeyVersion(request);
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CryptoKeyVersion createCryptoKeyVersion(CreateCryptoKeyVersionRequest request) { + return createCryptoKeyVersionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in a + * [CryptoKey][google.cloud.kms.v1.CryptoKey]. + * + *

            The server will assign the next sequential id. If unset, + * [state][google.cloud.kms.v1.CryptoKeyVersion.state] will be set to + * [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED]. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (KeyManagementServiceClient keyManagementServiceClient =
            +   *     KeyManagementServiceClient.create()) {
            +   *   CreateCryptoKeyVersionRequest request =
            +   *       CreateCryptoKeyVersionRequest.newBuilder()
            +   *           .setParent(
            +   *               CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]")
            +   *                   .toString())
            +   *           .setCryptoKeyVersion(CryptoKeyVersion.newBuilder().build())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       keyManagementServiceClient.createCryptoKeyVersionCallable().futureCall(request);
            +   *   // Do something.
            +   *   CryptoKeyVersion response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + createCryptoKeyVersionCallable() { + return stub.createCryptoKeyVersionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Permanently deletes the given [CryptoKey][google.cloud.kms.v1.CryptoKey]. All child + * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] must have been previously deleted + * using + * [KeyManagementService.DeleteCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.DeleteCryptoKeyVersion]. + * The specified crypto key will be immediately and permanently deleted upon calling this method. + * This action cannot be undone. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (KeyManagementServiceClient keyManagementServiceClient =
            +   *     KeyManagementServiceClient.create()) {
            +   *   CryptoKeyName name =
            +   *       CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]");
            +   *   keyManagementServiceClient.deleteCryptoKeyAsync(name).get();
            +   * }
            +   * }
            + * + * @param name Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the + * [CryptoKey][google.cloud.kms.v1.CryptoKey] to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteCryptoKeyAsync( + CryptoKeyName name) { + DeleteCryptoKeyRequest request = + DeleteCryptoKeyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteCryptoKeyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Permanently deletes the given [CryptoKey][google.cloud.kms.v1.CryptoKey]. All child + * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] must have been previously deleted + * using + * [KeyManagementService.DeleteCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.DeleteCryptoKeyVersion]. + * The specified crypto key will be immediately and permanently deleted upon calling this method. + * This action cannot be undone. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (KeyManagementServiceClient keyManagementServiceClient =
            +   *     KeyManagementServiceClient.create()) {
            +   *   String name =
            +   *       CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]").toString();
            +   *   keyManagementServiceClient.deleteCryptoKeyAsync(name).get();
            +   * }
            +   * }
            + * + * @param name Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the + * [CryptoKey][google.cloud.kms.v1.CryptoKey] to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteCryptoKeyAsync(String name) { + DeleteCryptoKeyRequest request = DeleteCryptoKeyRequest.newBuilder().setName(name).build(); + return deleteCryptoKeyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Permanently deletes the given [CryptoKey][google.cloud.kms.v1.CryptoKey]. All child + * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] must have been previously deleted + * using + * [KeyManagementService.DeleteCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.DeleteCryptoKeyVersion]. + * The specified crypto key will be immediately and permanently deleted upon calling this method. + * This action cannot be undone. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (KeyManagementServiceClient keyManagementServiceClient =
            +   *     KeyManagementServiceClient.create()) {
            +   *   DeleteCryptoKeyRequest request =
            +   *       DeleteCryptoKeyRequest.newBuilder()
            +   *           .setName(
            +   *               CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]")
            +   *                   .toString())
            +   *           .build();
            +   *   keyManagementServiceClient.deleteCryptoKeyAsync(request).get();
                * }
                * }
            * - * @param parent Required. The [name][google.cloud.kms.v1.KeyRing.name] of the KeyRing associated - * with the [CryptoKeys][google.cloud.kms.v1.CryptoKey]. - * @param cryptoKeyId Required. It must be unique within a KeyRing and match the regular - * expression `[a-zA-Z0-9_-]{1,63}` - * @param cryptoKey Required. A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field - * values. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CryptoKey createCryptoKey( - KeyRingName parent, String cryptoKeyId, CryptoKey cryptoKey) { - CreateCryptoKeyRequest request = - CreateCryptoKeyRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setCryptoKeyId(cryptoKeyId) - .setCryptoKey(cryptoKey) - .build(); - return createCryptoKey(request); + public final OperationFuture deleteCryptoKeyAsync( + DeleteCryptoKeyRequest request) { + return deleteCryptoKeyOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Create a new [CryptoKey][google.cloud.kms.v1.CryptoKey] within a - * [KeyRing][google.cloud.kms.v1.KeyRing]. - * - *

            [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] and - * [CryptoKey.version_template.algorithm][google.cloud.kms.v1.CryptoKeyVersionTemplate.algorithm] - * are required. + * Permanently deletes the given [CryptoKey][google.cloud.kms.v1.CryptoKey]. All child + * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] must have been previously deleted + * using + * [KeyManagementService.DeleteCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.DeleteCryptoKeyVersion]. + * The specified crypto key will be immediately and permanently deleted upon calling this method. + * This action cannot be undone. * *

            Sample code: * @@ -2382,40 +3198,32 @@ public final CryptoKey createCryptoKey( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (KeyManagementServiceClient keyManagementServiceClient = * KeyManagementServiceClient.create()) { - * String parent = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString(); - * String cryptoKeyId = "cryptoKeyId-1643185255"; - * CryptoKey cryptoKey = CryptoKey.newBuilder().build(); - * CryptoKey response = - * keyManagementServiceClient.createCryptoKey(parent, cryptoKeyId, cryptoKey); + * DeleteCryptoKeyRequest request = + * DeleteCryptoKeyRequest.newBuilder() + * .setName( + * CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + * .toString()) + * .build(); + * OperationFuture future = + * keyManagementServiceClient.deleteCryptoKeyOperationCallable().futureCall(request); + * // Do something. + * future.get(); * } * }

            - * - * @param parent Required. The [name][google.cloud.kms.v1.KeyRing.name] of the KeyRing associated - * with the [CryptoKeys][google.cloud.kms.v1.CryptoKey]. - * @param cryptoKeyId Required. It must be unique within a KeyRing and match the regular - * expression `[a-zA-Z0-9_-]{1,63}` - * @param cryptoKey Required. A [CryptoKey][google.cloud.kms.v1.CryptoKey] with initial field - * values. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CryptoKey createCryptoKey(String parent, String cryptoKeyId, CryptoKey cryptoKey) { - CreateCryptoKeyRequest request = - CreateCryptoKeyRequest.newBuilder() - .setParent(parent) - .setCryptoKeyId(cryptoKeyId) - .setCryptoKey(cryptoKey) - .build(); - return createCryptoKey(request); + public final OperationCallable + deleteCryptoKeyOperationCallable() { + return stub.deleteCryptoKeyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Create a new [CryptoKey][google.cloud.kms.v1.CryptoKey] within a - * [KeyRing][google.cloud.kms.v1.KeyRing]. - * - *

            [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] and - * [CryptoKey.version_template.algorithm][google.cloud.kms.v1.CryptoKeyVersionTemplate.algorithm] - * are required. + * Permanently deletes the given [CryptoKey][google.cloud.kms.v1.CryptoKey]. All child + * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] must have been previously deleted + * using + * [KeyManagementService.DeleteCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.DeleteCryptoKeyVersion]. + * The specified crypto key will be immediately and permanently deleted upon calling this method. + * This action cannot be undone. * *

            Sample code: * @@ -2427,32 +3235,34 @@ public final CryptoKey createCryptoKey(String parent, String cryptoKeyId, Crypto * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (KeyManagementServiceClient keyManagementServiceClient = * KeyManagementServiceClient.create()) { - * CreateCryptoKeyRequest request = - * CreateCryptoKeyRequest.newBuilder() - * .setParent(KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString()) - * .setCryptoKeyId("cryptoKeyId-1643185255") - * .setCryptoKey(CryptoKey.newBuilder().build()) - * .setSkipInitialVersionCreation(true) + * DeleteCryptoKeyRequest request = + * DeleteCryptoKeyRequest.newBuilder() + * .setName( + * CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + * .toString()) * .build(); - * CryptoKey response = keyManagementServiceClient.createCryptoKey(request); + * ApiFuture future = + * keyManagementServiceClient.deleteCryptoKeyCallable().futureCall(request); + * // Do something. + * future.get(); * } * }

            - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CryptoKey createCryptoKey(CreateCryptoKeyRequest request) { - return createCryptoKeyCallable().call(request); + public final UnaryCallable deleteCryptoKeyCallable() { + return stub.deleteCryptoKeyCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Create a new [CryptoKey][google.cloud.kms.v1.CryptoKey] within a - * [KeyRing][google.cloud.kms.v1.KeyRing]. - * - *

            [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] and - * [CryptoKey.version_template.algorithm][google.cloud.kms.v1.CryptoKeyVersionTemplate.algorithm] - * are required. + * Permanently deletes the given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. Only + * possible if the version has not been previously imported and if its + * [state][google.cloud.kms.v1.CryptoKeyVersion.state] is one of + * [DESTROYED][CryptoKeyVersionState.DESTROYED], + * [IMPORT_FAILED][CryptoKeyVersionState.IMPORT_FAILED], or + * [GENERATION_FAILED][CryptoKeyVersionState.GENERATION_FAILED]. Successfully imported + * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] cannot be deleted at this time. The + * specified version will be immediately and permanently deleted upon calling this method. This + * action cannot be undone. * *

            Sample code: * @@ -2464,32 +3274,37 @@ public final CryptoKey createCryptoKey(CreateCryptoKeyRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (KeyManagementServiceClient keyManagementServiceClient = * KeyManagementServiceClient.create()) { - * CreateCryptoKeyRequest request = - * CreateCryptoKeyRequest.newBuilder() - * .setParent(KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString()) - * .setCryptoKeyId("cryptoKeyId-1643185255") - * .setCryptoKey(CryptoKey.newBuilder().build()) - * .setSkipInitialVersionCreation(true) - * .build(); - * ApiFuture future = - * keyManagementServiceClient.createCryptoKeyCallable().futureCall(request); - * // Do something. - * CryptoKey response = future.get(); + * CryptoKeyVersionName name = + * CryptoKeyVersionName.of( + * "[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]"); + * keyManagementServiceClient.deleteCryptoKeyVersionAsync(name).get(); * } * }

            + * + * @param name Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the + * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable createCryptoKeyCallable() { - return stub.createCryptoKeyCallable(); + public final OperationFuture deleteCryptoKeyVersionAsync( + CryptoKeyVersionName name) { + DeleteCryptoKeyVersionRequest request = + DeleteCryptoKeyVersionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteCryptoKeyVersionAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Create a new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in a - * [CryptoKey][google.cloud.kms.v1.CryptoKey]. - * - *

            The server will assign the next sequential id. If unset, - * [state][google.cloud.kms.v1.CryptoKeyVersion.state] will be set to - * [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED]. + * Permanently deletes the given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. Only + * possible if the version has not been previously imported and if its + * [state][google.cloud.kms.v1.CryptoKeyVersion.state] is one of + * [DESTROYED][CryptoKeyVersionState.DESTROYED], + * [IMPORT_FAILED][CryptoKeyVersionState.IMPORT_FAILED], or + * [GENERATION_FAILED][CryptoKeyVersionState.GENERATION_FAILED]. Successfully imported + * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] cannot be deleted at this time. The + * specified version will be immediately and permanently deleted upon calling this method. This + * action cannot be undone. * *

            Sample code: * @@ -2501,39 +3316,36 @@ public final UnaryCallable createCryptoKeyCal * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (KeyManagementServiceClient keyManagementServiceClient = * KeyManagementServiceClient.create()) { - * CryptoKeyName parent = - * CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]"); - * CryptoKeyVersion cryptoKeyVersion = CryptoKeyVersion.newBuilder().build(); - * CryptoKeyVersion response = - * keyManagementServiceClient.createCryptoKeyVersion(parent, cryptoKeyVersion); + * String name = + * CryptoKeyVersionName.of( + * "[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]") + * .toString(); + * keyManagementServiceClient.deleteCryptoKeyVersionAsync(name).get(); * } * }

            * - * @param parent Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the - * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with the - * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion]. - * @param cryptoKeyVersion Required. A [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] - * with initial field values. + * @param name Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the + * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CryptoKeyVersion createCryptoKeyVersion( - CryptoKeyName parent, CryptoKeyVersion cryptoKeyVersion) { - CreateCryptoKeyVersionRequest request = - CreateCryptoKeyVersionRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setCryptoKeyVersion(cryptoKeyVersion) - .build(); - return createCryptoKeyVersion(request); + public final OperationFuture deleteCryptoKeyVersionAsync( + String name) { + DeleteCryptoKeyVersionRequest request = + DeleteCryptoKeyVersionRequest.newBuilder().setName(name).build(); + return deleteCryptoKeyVersionAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Create a new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in a - * [CryptoKey][google.cloud.kms.v1.CryptoKey]. - * - *

            The server will assign the next sequential id. If unset, - * [state][google.cloud.kms.v1.CryptoKeyVersion.state] will be set to - * [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED]. + * Permanently deletes the given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. Only + * possible if the version has not been previously imported and if its + * [state][google.cloud.kms.v1.CryptoKeyVersion.state] is one of + * [DESTROYED][CryptoKeyVersionState.DESTROYED], + * [IMPORT_FAILED][CryptoKeyVersionState.IMPORT_FAILED], or + * [GENERATION_FAILED][CryptoKeyVersionState.GENERATION_FAILED]. Successfully imported + * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] cannot be deleted at this time. The + * specified version will be immediately and permanently deleted upon calling this method. This + * action cannot be undone. * *

            Sample code: * @@ -2545,39 +3357,40 @@ public final CryptoKeyVersion createCryptoKeyVersion( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (KeyManagementServiceClient keyManagementServiceClient = * KeyManagementServiceClient.create()) { - * String parent = - * CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]").toString(); - * CryptoKeyVersion cryptoKeyVersion = CryptoKeyVersion.newBuilder().build(); - * CryptoKeyVersion response = - * keyManagementServiceClient.createCryptoKeyVersion(parent, cryptoKeyVersion); + * DeleteCryptoKeyVersionRequest request = + * DeleteCryptoKeyVersionRequest.newBuilder() + * .setName( + * CryptoKeyVersionName.of( + * "[PROJECT]", + * "[LOCATION]", + * "[KEY_RING]", + * "[CRYPTO_KEY]", + * "[CRYPTO_KEY_VERSION]") + * .toString()) + * .build(); + * keyManagementServiceClient.deleteCryptoKeyVersionAsync(request).get(); * } * }

            * - * @param parent Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the - * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with the - * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion]. - * @param cryptoKeyVersion Required. A [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] - * with initial field values. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CryptoKeyVersion createCryptoKeyVersion( - String parent, CryptoKeyVersion cryptoKeyVersion) { - CreateCryptoKeyVersionRequest request = - CreateCryptoKeyVersionRequest.newBuilder() - .setParent(parent) - .setCryptoKeyVersion(cryptoKeyVersion) - .build(); - return createCryptoKeyVersion(request); + public final OperationFuture deleteCryptoKeyVersionAsync( + DeleteCryptoKeyVersionRequest request) { + return deleteCryptoKeyVersionOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Create a new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in a - * [CryptoKey][google.cloud.kms.v1.CryptoKey]. - * - *

            The server will assign the next sequential id. If unset, - * [state][google.cloud.kms.v1.CryptoKeyVersion.state] will be set to - * [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED]. + * Permanently deletes the given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. Only + * possible if the version has not been previously imported and if its + * [state][google.cloud.kms.v1.CryptoKeyVersion.state] is one of + * [DESTROYED][CryptoKeyVersionState.DESTROYED], + * [IMPORT_FAILED][CryptoKeyVersionState.IMPORT_FAILED], or + * [GENERATION_FAILED][CryptoKeyVersionState.GENERATION_FAILED]. Successfully imported + * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] cannot be deleted at this time. The + * specified version will be immediately and permanently deleted upon calling this method. This + * action cannot be undone. * *

            Sample code: * @@ -2589,32 +3402,41 @@ public final CryptoKeyVersion createCryptoKeyVersion( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (KeyManagementServiceClient keyManagementServiceClient = * KeyManagementServiceClient.create()) { - * CreateCryptoKeyVersionRequest request = - * CreateCryptoKeyVersionRequest.newBuilder() - * .setParent( - * CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + * DeleteCryptoKeyVersionRequest request = + * DeleteCryptoKeyVersionRequest.newBuilder() + * .setName( + * CryptoKeyVersionName.of( + * "[PROJECT]", + * "[LOCATION]", + * "[KEY_RING]", + * "[CRYPTO_KEY]", + * "[CRYPTO_KEY_VERSION]") * .toString()) - * .setCryptoKeyVersion(CryptoKeyVersion.newBuilder().build()) * .build(); - * CryptoKeyVersion response = keyManagementServiceClient.createCryptoKeyVersion(request); + * OperationFuture future = + * keyManagementServiceClient.deleteCryptoKeyVersionOperationCallable().futureCall(request); + * // Do something. + * future.get(); * } * }

            - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CryptoKeyVersion createCryptoKeyVersion(CreateCryptoKeyVersionRequest request) { - return createCryptoKeyVersionCallable().call(request); + public final OperationCallable< + DeleteCryptoKeyVersionRequest, Empty, DeleteCryptoKeyVersionMetadata> + deleteCryptoKeyVersionOperationCallable() { + return stub.deleteCryptoKeyVersionOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Create a new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in a - * [CryptoKey][google.cloud.kms.v1.CryptoKey]. - * - *

            The server will assign the next sequential id. If unset, - * [state][google.cloud.kms.v1.CryptoKeyVersion.state] will be set to - * [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED]. + * Permanently deletes the given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. Only + * possible if the version has not been previously imported and if its + * [state][google.cloud.kms.v1.CryptoKeyVersion.state] is one of + * [DESTROYED][CryptoKeyVersionState.DESTROYED], + * [IMPORT_FAILED][CryptoKeyVersionState.IMPORT_FAILED], or + * [GENERATION_FAILED][CryptoKeyVersionState.GENERATION_FAILED]. Successfully imported + * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] cannot be deleted at this time. The + * specified version will be immediately and permanently deleted upon calling this method. This + * action cannot be undone. * *

            Sample code: * @@ -2626,23 +3448,27 @@ public final CryptoKeyVersion createCryptoKeyVersion(CreateCryptoKeyVersionReque * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (KeyManagementServiceClient keyManagementServiceClient = * KeyManagementServiceClient.create()) { - * CreateCryptoKeyVersionRequest request = - * CreateCryptoKeyVersionRequest.newBuilder() - * .setParent( - * CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + * DeleteCryptoKeyVersionRequest request = + * DeleteCryptoKeyVersionRequest.newBuilder() + * .setName( + * CryptoKeyVersionName.of( + * "[PROJECT]", + * "[LOCATION]", + * "[KEY_RING]", + * "[CRYPTO_KEY]", + * "[CRYPTO_KEY_VERSION]") * .toString()) - * .setCryptoKeyVersion(CryptoKeyVersion.newBuilder().build()) * .build(); - * ApiFuture future = - * keyManagementServiceClient.createCryptoKeyVersionCallable().futureCall(request); + * ApiFuture future = + * keyManagementServiceClient.deleteCryptoKeyVersionCallable().futureCall(request); * // Do something. - * CryptoKeyVersion response = future.get(); + * future.get(); * } * }

            */ - public final UnaryCallable - createCryptoKeyVersionCallable() { - return stub.createCryptoKeyVersionCallable(); + public final UnaryCallable + deleteCryptoKeyVersionCallable() { + return stub.deleteCryptoKeyVersionCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. @@ -5879,6 +6705,90 @@ protected ListImportJobsFixedSizeCollection createCollection( } } + public static class ListRetiredResourcesPagedResponse + extends AbstractPagedListResponse< + ListRetiredResourcesRequest, + ListRetiredResourcesResponse, + RetiredResource, + ListRetiredResourcesPage, + ListRetiredResourcesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListRetiredResourcesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListRetiredResourcesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListRetiredResourcesPagedResponse(ListRetiredResourcesPage page) { + super(page, ListRetiredResourcesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListRetiredResourcesPage + extends AbstractPage< + ListRetiredResourcesRequest, + ListRetiredResourcesResponse, + RetiredResource, + ListRetiredResourcesPage> { + + private ListRetiredResourcesPage( + PageContext + context, + ListRetiredResourcesResponse response) { + super(context, response); + } + + private static ListRetiredResourcesPage createEmptyPage() { + return new ListRetiredResourcesPage(null, null); + } + + @Override + protected ListRetiredResourcesPage createPage( + PageContext + context, + ListRetiredResourcesResponse response) { + return new ListRetiredResourcesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListRetiredResourcesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListRetiredResourcesRequest, + ListRetiredResourcesResponse, + RetiredResource, + ListRetiredResourcesPage, + ListRetiredResourcesFixedSizeCollection> { + + private ListRetiredResourcesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListRetiredResourcesFixedSizeCollection createEmptyCollection() { + return new ListRetiredResourcesFixedSizeCollection(null, 0); + } + + @Override + protected ListRetiredResourcesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListRetiredResourcesFixedSizeCollection(pages, collectionSize); + } + } + public static class ListLocationsPagedResponse extends AbstractPagedListResponse< ListLocationsRequest, diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceSettings.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceSettings.java index 8845fda2e645..1669729e04a4 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceSettings.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceSettings.java @@ -21,6 +21,7 @@ import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListImportJobsPagedResponse; import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListKeyRingsPagedResponse; import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListRetiredResourcesPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; @@ -31,6 +32,7 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -44,6 +46,8 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; import javax.annotation.Generated; @@ -98,6 +102,32 @@ * Please refer to the [Client Side Retry * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. + * + *

            To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for deleteCryptoKey: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * KeyManagementServiceSettings.Builder keyManagementServiceSettingsBuilder =
            + *     KeyManagementServiceSettings.newBuilder();
            + * TimedRetryAlgorithm timedRetryAlgorithm =
            + *     OperationalTimedPollAlgorithm.create(
            + *         RetrySettings.newBuilder()
            + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
            + *             .setRetryDelayMultiplier(1.5)
            + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
            + *             .setTotalTimeoutDuration(Duration.ofHours(24))
            + *             .build());
            + * keyManagementServiceSettingsBuilder
            + *     .createClusterOperationSettings()
            + *     .setPollingAlgorithm(timedRetryAlgorithm)
            + *     .build();
            + * }
            */ @Generated("by gapic-generator-java") public class KeyManagementServiceSettings extends ClientSettings { @@ -131,6 +161,15 @@ public class KeyManagementServiceSettings extends ClientSettings + listRetiredResourcesSettings() { + return ((KeyManagementServiceStubSettings) getStubSettings()).listRetiredResourcesSettings(); + } + /** Returns the object with the settings used for calls to getKeyRing. */ public UnaryCallSettings getKeyRingSettings() { return ((KeyManagementServiceStubSettings) getStubSettings()).getKeyRingSettings(); @@ -157,6 +196,12 @@ public UnaryCallSettings getImportJobSettings() return ((KeyManagementServiceStubSettings) getStubSettings()).getImportJobSettings(); } + /** Returns the object with the settings used for calls to getRetiredResource. */ + public UnaryCallSettings + getRetiredResourceSettings() { + return ((KeyManagementServiceStubSettings) getStubSettings()).getRetiredResourceSettings(); + } + /** Returns the object with the settings used for calls to createKeyRing. */ public UnaryCallSettings createKeyRingSettings() { return ((KeyManagementServiceStubSettings) getStubSettings()).createKeyRingSettings(); @@ -173,6 +218,31 @@ public UnaryCallSettings createCryptoKeySetti return ((KeyManagementServiceStubSettings) getStubSettings()).createCryptoKeyVersionSettings(); } + /** Returns the object with the settings used for calls to deleteCryptoKey. */ + public UnaryCallSettings deleteCryptoKeySettings() { + return ((KeyManagementServiceStubSettings) getStubSettings()).deleteCryptoKeySettings(); + } + + /** Returns the object with the settings used for calls to deleteCryptoKey. */ + public OperationCallSettings + deleteCryptoKeyOperationSettings() { + return ((KeyManagementServiceStubSettings) getStubSettings()) + .deleteCryptoKeyOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteCryptoKeyVersion. */ + public UnaryCallSettings + deleteCryptoKeyVersionSettings() { + return ((KeyManagementServiceStubSettings) getStubSettings()).deleteCryptoKeyVersionSettings(); + } + + /** Returns the object with the settings used for calls to deleteCryptoKeyVersion. */ + public OperationCallSettings + deleteCryptoKeyVersionOperationSettings() { + return ((KeyManagementServiceStubSettings) getStubSettings()) + .deleteCryptoKeyVersionOperationSettings(); + } + /** Returns the object with the settings used for calls to importCryptoKeyVersion. */ public UnaryCallSettings importCryptoKeyVersionSettings() { @@ -436,6 +506,15 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().listImportJobsSettings(); } + /** Returns the builder for the settings used for calls to listRetiredResources. */ + public PagedCallSettings.Builder< + ListRetiredResourcesRequest, + ListRetiredResourcesResponse, + ListRetiredResourcesPagedResponse> + listRetiredResourcesSettings() { + return getStubSettingsBuilder().listRetiredResourcesSettings(); + } + /** Returns the builder for the settings used for calls to getKeyRing. */ public UnaryCallSettings.Builder getKeyRingSettings() { return getStubSettingsBuilder().getKeyRingSettings(); @@ -462,6 +541,12 @@ public UnaryCallSettings.Builder getImportJobSet return getStubSettingsBuilder().getImportJobSettings(); } + /** Returns the builder for the settings used for calls to getRetiredResource. */ + public UnaryCallSettings.Builder + getRetiredResourceSettings() { + return getStubSettingsBuilder().getRetiredResourceSettings(); + } + /** Returns the builder for the settings used for calls to createKeyRing. */ public UnaryCallSettings.Builder createKeyRingSettings() { return getStubSettingsBuilder().createKeyRingSettings(); @@ -478,6 +563,30 @@ public UnaryCallSettings.Builder createCrypto return getStubSettingsBuilder().createCryptoKeyVersionSettings(); } + /** Returns the builder for the settings used for calls to deleteCryptoKey. */ + public UnaryCallSettings.Builder deleteCryptoKeySettings() { + return getStubSettingsBuilder().deleteCryptoKeySettings(); + } + + /** Returns the builder for the settings used for calls to deleteCryptoKey. */ + public OperationCallSettings.Builder + deleteCryptoKeyOperationSettings() { + return getStubSettingsBuilder().deleteCryptoKeyOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteCryptoKeyVersion. */ + public UnaryCallSettings.Builder + deleteCryptoKeyVersionSettings() { + return getStubSettingsBuilder().deleteCryptoKeyVersionSettings(); + } + + /** Returns the builder for the settings used for calls to deleteCryptoKeyVersion. */ + public OperationCallSettings.Builder< + DeleteCryptoKeyVersionRequest, Empty, DeleteCryptoKeyVersionMetadata> + deleteCryptoKeyVersionOperationSettings() { + return getStubSettingsBuilder().deleteCryptoKeyVersionOperationSettings(); + } + /** Returns the builder for the settings used for calls to importCryptoKeyVersion. */ public UnaryCallSettings.Builder importCryptoKeyVersionSettings() { diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/gapic_metadata.json b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/gapic_metadata.json index 829acb0b202e..2c66fcb1e74d 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/gapic_metadata.json +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/gapic_metadata.json @@ -196,6 +196,12 @@ "Decrypt": { "methods": ["decrypt", "decrypt", "decrypt", "decryptCallable"] }, + "DeleteCryptoKey": { + "methods": ["deleteCryptoKeyAsync", "deleteCryptoKeyAsync", "deleteCryptoKeyAsync", "deleteCryptoKeyOperationCallable", "deleteCryptoKeyCallable"] + }, + "DeleteCryptoKeyVersion": { + "methods": ["deleteCryptoKeyVersionAsync", "deleteCryptoKeyVersionAsync", "deleteCryptoKeyVersionAsync", "deleteCryptoKeyVersionOperationCallable", "deleteCryptoKeyVersionCallable"] + }, "DestroyCryptoKeyVersion": { "methods": ["destroyCryptoKeyVersion", "destroyCryptoKeyVersion", "destroyCryptoKeyVersion", "destroyCryptoKeyVersionCallable"] }, @@ -226,6 +232,9 @@ "GetPublicKey": { "methods": ["getPublicKey", "getPublicKey", "getPublicKey", "getPublicKeyCallable"] }, + "GetRetiredResource": { + "methods": ["getRetiredResource", "getRetiredResource", "getRetiredResource", "getRetiredResourceCallable"] + }, "ImportCryptoKeyVersion": { "methods": ["importCryptoKeyVersion", "importCryptoKeyVersionCallable"] }, @@ -244,6 +253,9 @@ "ListLocations": { "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] }, + "ListRetiredResources": { + "methods": ["listRetiredResources", "listRetiredResources", "listRetiredResources", "listRetiredResourcesPagedCallable", "listRetiredResourcesCallable"] + }, "MacSign": { "methods": ["macSign", "macSign", "macSign", "macSignCallable"] }, diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceStub.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceStub.java index 2928df309257..1bc50e771519 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceStub.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceStub.java @@ -21,12 +21,14 @@ import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListImportJobsPagedResponse; import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListKeyRingsPagedResponse; import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListRetiredResourcesPagedResponse; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; import com.google.api.gax.grpc.GrpcCallSettings; import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.kms.v1.AsymmetricDecryptRequest; @@ -43,6 +45,10 @@ import com.google.cloud.kms.v1.DecapsulateResponse; import com.google.cloud.kms.v1.DecryptRequest; import com.google.cloud.kms.v1.DecryptResponse; +import com.google.cloud.kms.v1.DeleteCryptoKeyMetadata; +import com.google.cloud.kms.v1.DeleteCryptoKeyRequest; +import com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata; +import com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest; import com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest; import com.google.cloud.kms.v1.EncryptRequest; import com.google.cloud.kms.v1.EncryptResponse; @@ -53,6 +59,7 @@ import com.google.cloud.kms.v1.GetImportJobRequest; import com.google.cloud.kms.v1.GetKeyRingRequest; import com.google.cloud.kms.v1.GetPublicKeyRequest; +import com.google.cloud.kms.v1.GetRetiredResourceRequest; import com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest; import com.google.cloud.kms.v1.ImportJob; import com.google.cloud.kms.v1.KeyRing; @@ -64,6 +71,8 @@ import com.google.cloud.kms.v1.ListImportJobsResponse; import com.google.cloud.kms.v1.ListKeyRingsRequest; import com.google.cloud.kms.v1.ListKeyRingsResponse; +import com.google.cloud.kms.v1.ListRetiredResourcesRequest; +import com.google.cloud.kms.v1.ListRetiredResourcesResponse; import com.google.cloud.kms.v1.MacSignRequest; import com.google.cloud.kms.v1.MacSignResponse; import com.google.cloud.kms.v1.MacVerifyRequest; @@ -74,6 +83,7 @@ import com.google.cloud.kms.v1.RawEncryptRequest; import com.google.cloud.kms.v1.RawEncryptResponse; import com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest; +import com.google.cloud.kms.v1.RetiredResource; import com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest; import com.google.cloud.kms.v1.UpdateCryptoKeyRequest; import com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest; @@ -86,7 +96,9 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; @@ -148,6 +160,18 @@ public class GrpcKeyManagementServiceStub extends KeyManagementServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + listRetiredResourcesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.kms.v1.KeyManagementService/ListRetiredResources") + .setRequestMarshaller( + ProtoUtils.marshaller(ListRetiredResourcesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListRetiredResourcesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor getKeyRingMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -198,6 +222,17 @@ public class GrpcKeyManagementServiceStub extends KeyManagementServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + getRetiredResourceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.kms.v1.KeyManagementService/GetRetiredResource") + .setRequestMarshaller( + ProtoUtils.marshaller(GetRetiredResourceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(RetiredResource.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor createKeyRingMethodDescriptor = MethodDescriptor.newBuilder() @@ -231,6 +266,28 @@ public class GrpcKeyManagementServiceStub extends KeyManagementServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + deleteCryptoKeyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.kms.v1.KeyManagementService/DeleteCryptoKey") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteCryptoKeyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteCryptoKeyVersionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.kms.v1.KeyManagementService/DeleteCryptoKeyVersion") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteCryptoKeyVersionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor importCryptoKeyVersionMethodDescriptor = MethodDescriptor.newBuilder() @@ -477,16 +534,30 @@ public class GrpcKeyManagementServiceStub extends KeyManagementServiceStub { private final UnaryCallable listImportJobsCallable; private final UnaryCallable listImportJobsPagedCallable; + private final UnaryCallable + listRetiredResourcesCallable; + private final UnaryCallable + listRetiredResourcesPagedCallable; private final UnaryCallable getKeyRingCallable; private final UnaryCallable getCryptoKeyCallable; private final UnaryCallable getCryptoKeyVersionCallable; private final UnaryCallable getPublicKeyCallable; private final UnaryCallable getImportJobCallable; + private final UnaryCallable + getRetiredResourceCallable; private final UnaryCallable createKeyRingCallable; private final UnaryCallable createCryptoKeyCallable; private final UnaryCallable createCryptoKeyVersionCallable; + private final UnaryCallable deleteCryptoKeyCallable; + private final OperationCallable + deleteCryptoKeyOperationCallable; + private final UnaryCallable + deleteCryptoKeyVersionCallable; + private final OperationCallable< + DeleteCryptoKeyVersionRequest, Empty, DeleteCryptoKeyVersionMetadata> + deleteCryptoKeyVersionOperationCallable; private final UnaryCallable importCryptoKeyVersionCallable; private final UnaryCallable createImportJobCallable; @@ -608,6 +679,17 @@ protected GrpcKeyManagementServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + listRetiredResourcesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listRetiredResourcesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); GrpcCallSettings getKeyRingTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getKeyRingMethodDescriptor) @@ -659,6 +741,17 @@ protected GrpcKeyManagementServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + getRetiredResourceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getRetiredResourceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings createKeyRingTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createKeyRingMethodDescriptor) @@ -690,6 +783,27 @@ protected GrpcKeyManagementServiceStub( return builder.build(); }) .build(); + GrpcCallSettings deleteCryptoKeyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteCryptoKeyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteCryptoKeyVersionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteCryptoKeyVersionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings importCryptoKeyVersionTransportSettings = GrpcCallSettings.newBuilder() @@ -950,6 +1064,16 @@ protected GrpcKeyManagementServiceStub( this.listImportJobsPagedCallable = callableFactory.createPagedCallable( listImportJobsTransportSettings, settings.listImportJobsSettings(), clientContext); + this.listRetiredResourcesCallable = + callableFactory.createUnaryCallable( + listRetiredResourcesTransportSettings, + settings.listRetiredResourcesSettings(), + clientContext); + this.listRetiredResourcesPagedCallable = + callableFactory.createPagedCallable( + listRetiredResourcesTransportSettings, + settings.listRetiredResourcesSettings(), + clientContext); this.getKeyRingCallable = callableFactory.createUnaryCallable( getKeyRingTransportSettings, settings.getKeyRingSettings(), clientContext); @@ -967,6 +1091,11 @@ protected GrpcKeyManagementServiceStub( this.getImportJobCallable = callableFactory.createUnaryCallable( getImportJobTransportSettings, settings.getImportJobSettings(), clientContext); + this.getRetiredResourceCallable = + callableFactory.createUnaryCallable( + getRetiredResourceTransportSettings, + settings.getRetiredResourceSettings(), + clientContext); this.createKeyRingCallable = callableFactory.createUnaryCallable( createKeyRingTransportSettings, settings.createKeyRingSettings(), clientContext); @@ -978,6 +1107,26 @@ protected GrpcKeyManagementServiceStub( createCryptoKeyVersionTransportSettings, settings.createCryptoKeyVersionSettings(), clientContext); + this.deleteCryptoKeyCallable = + callableFactory.createUnaryCallable( + deleteCryptoKeyTransportSettings, settings.deleteCryptoKeySettings(), clientContext); + this.deleteCryptoKeyOperationCallable = + callableFactory.createOperationCallable( + deleteCryptoKeyTransportSettings, + settings.deleteCryptoKeyOperationSettings(), + clientContext, + operationsStub); + this.deleteCryptoKeyVersionCallable = + callableFactory.createUnaryCallable( + deleteCryptoKeyVersionTransportSettings, + settings.deleteCryptoKeyVersionSettings(), + clientContext); + this.deleteCryptoKeyVersionOperationCallable = + callableFactory.createOperationCallable( + deleteCryptoKeyVersionTransportSettings, + settings.deleteCryptoKeyVersionOperationSettings(), + clientContext, + operationsStub); this.importCryptoKeyVersionCallable = callableFactory.createUnaryCallable( importCryptoKeyVersionTransportSettings, @@ -1116,6 +1265,18 @@ public UnaryCallable listImportJo return listImportJobsPagedCallable; } + @Override + public UnaryCallable + listRetiredResourcesCallable() { + return listRetiredResourcesCallable; + } + + @Override + public UnaryCallable + listRetiredResourcesPagedCallable() { + return listRetiredResourcesPagedCallable; + } + @Override public UnaryCallable getKeyRingCallable() { return getKeyRingCallable; @@ -1141,6 +1302,11 @@ public UnaryCallable getImportJobCallable() { return getImportJobCallable; } + @Override + public UnaryCallable getRetiredResourceCallable() { + return getRetiredResourceCallable; + } + @Override public UnaryCallable createKeyRingCallable() { return createKeyRingCallable; @@ -1157,6 +1323,28 @@ public UnaryCallable createCryptoKeyCallable( return createCryptoKeyVersionCallable; } + @Override + public UnaryCallable deleteCryptoKeyCallable() { + return deleteCryptoKeyCallable; + } + + @Override + public OperationCallable + deleteCryptoKeyOperationCallable() { + return deleteCryptoKeyOperationCallable; + } + + @Override + public UnaryCallable deleteCryptoKeyVersionCallable() { + return deleteCryptoKeyVersionCallable; + } + + @Override + public OperationCallable + deleteCryptoKeyVersionOperationCallable() { + return deleteCryptoKeyVersionOperationCallable; + } + @Override public UnaryCallable importCryptoKeyVersionCallable() { diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/HttpJsonKeyManagementServiceStub.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/HttpJsonKeyManagementServiceStub.java index 5bcc9801500e..5cda3a894565 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/HttpJsonKeyManagementServiceStub.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/HttpJsonKeyManagementServiceStub.java @@ -21,17 +21,22 @@ import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListImportJobsPagedResponse; import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListKeyRingsPagedResponse; import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListRetiredResourcesPagedResponse; +import com.google.api.HttpRule; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; import com.google.api.gax.httpjson.ApiMethodDescriptor; import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; 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.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.kms.v1.AsymmetricDecryptRequest; @@ -48,6 +53,10 @@ import com.google.cloud.kms.v1.DecapsulateResponse; import com.google.cloud.kms.v1.DecryptRequest; import com.google.cloud.kms.v1.DecryptResponse; +import com.google.cloud.kms.v1.DeleteCryptoKeyMetadata; +import com.google.cloud.kms.v1.DeleteCryptoKeyRequest; +import com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata; +import com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest; import com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest; import com.google.cloud.kms.v1.EncryptRequest; import com.google.cloud.kms.v1.EncryptResponse; @@ -58,6 +67,7 @@ import com.google.cloud.kms.v1.GetImportJobRequest; import com.google.cloud.kms.v1.GetKeyRingRequest; import com.google.cloud.kms.v1.GetPublicKeyRequest; +import com.google.cloud.kms.v1.GetRetiredResourceRequest; import com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest; import com.google.cloud.kms.v1.ImportJob; import com.google.cloud.kms.v1.KeyRing; @@ -69,6 +79,8 @@ import com.google.cloud.kms.v1.ListImportJobsResponse; import com.google.cloud.kms.v1.ListKeyRingsRequest; import com.google.cloud.kms.v1.ListKeyRingsResponse; +import com.google.cloud.kms.v1.ListRetiredResourcesRequest; +import com.google.cloud.kms.v1.ListRetiredResourcesResponse; import com.google.cloud.kms.v1.MacSignRequest; import com.google.cloud.kms.v1.MacSignResponse; import com.google.cloud.kms.v1.MacVerifyRequest; @@ -79,6 +91,7 @@ import com.google.cloud.kms.v1.RawEncryptRequest; import com.google.cloud.kms.v1.RawEncryptResponse; import com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest; +import com.google.cloud.kms.v1.RetiredResource; import com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest; import com.google.cloud.kms.v1.UpdateCryptoKeyRequest; import com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest; @@ -86,11 +99,14 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableMap; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; import com.google.protobuf.TypeRegistry; import java.io.IOException; import java.util.ArrayList; @@ -108,7 +124,12 @@ */ @Generated("by gapic-generator-java") public class HttpJsonKeyManagementServiceStub extends KeyManagementServiceStub { - private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Empty.getDescriptor()) + .add(DeleteCryptoKeyVersionMetadata.getDescriptor()) + .add(DeleteCryptoKeyMetadata.getDescriptor()) + .build(); private static final ApiMethodDescriptor listKeyRingsMethodDescriptor = @@ -267,6 +288,44 @@ public class HttpJsonKeyManagementServiceStub extends KeyManagementServiceStub { .build()) .build(); + private static final ApiMethodDescriptor< + ListRetiredResourcesRequest, ListRetiredResourcesResponse> + listRetiredResourcesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.kms.v1.KeyManagementService/ListRetiredResources") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/retiredResources", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListRetiredResourcesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor getKeyRingMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.kms.v1.KeyManagementService/GetKeyRing") @@ -438,6 +497,40 @@ public class HttpJsonKeyManagementServiceStub extends KeyManagementServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + getRetiredResourceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.kms.v1.KeyManagementService/GetRetiredResource") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/retiredResources/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(RetiredResource.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor createKeyRingMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -556,6 +649,80 @@ public class HttpJsonKeyManagementServiceStub extends KeyManagementServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + deleteCryptoKeyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.kms.v1.KeyManagementService/DeleteCryptoKey") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteCryptoKeyRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteCryptoKeyVersionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.kms.v1.KeyManagementService/DeleteCryptoKeyVersion") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteCryptoKeyVersionRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor importCryptoKeyVersionMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1398,16 +1565,30 @@ public class HttpJsonKeyManagementServiceStub extends KeyManagementServiceStub { private final UnaryCallable listImportJobsCallable; private final UnaryCallable listImportJobsPagedCallable; + private final UnaryCallable + listRetiredResourcesCallable; + private final UnaryCallable + listRetiredResourcesPagedCallable; private final UnaryCallable getKeyRingCallable; private final UnaryCallable getCryptoKeyCallable; private final UnaryCallable getCryptoKeyVersionCallable; private final UnaryCallable getPublicKeyCallable; private final UnaryCallable getImportJobCallable; + private final UnaryCallable + getRetiredResourceCallable; private final UnaryCallable createKeyRingCallable; private final UnaryCallable createCryptoKeyCallable; private final UnaryCallable createCryptoKeyVersionCallable; + private final UnaryCallable deleteCryptoKeyCallable; + private final OperationCallable + deleteCryptoKeyOperationCallable; + private final UnaryCallable + deleteCryptoKeyVersionCallable; + private final OperationCallable< + DeleteCryptoKeyVersionRequest, Empty, DeleteCryptoKeyVersionMetadata> + deleteCryptoKeyVersionOperationCallable; private final UnaryCallable importCryptoKeyVersionCallable; private final UnaryCallable createImportJobCallable; @@ -1442,6 +1623,7 @@ public class HttpJsonKeyManagementServiceStub extends KeyManagementServiceStub { testIamPermissionsCallable; private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; private final HttpJsonStubCallableFactory callableFactory; public static final HttpJsonKeyManagementServiceStub create( @@ -1484,6 +1666,18 @@ protected HttpJsonKeyManagementServiceStub( HttpJsonStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*/operations/*}") + .build()) + .build()); HttpJsonCallSettings listKeyRingsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1533,6 +1727,19 @@ protected HttpJsonKeyManagementServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings + listRetiredResourcesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listRetiredResourcesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); HttpJsonCallSettings getKeyRingTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getKeyRingMethodDescriptor) @@ -1589,6 +1796,18 @@ protected HttpJsonKeyManagementServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings + getRetiredResourceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getRetiredResourceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings createKeyRingTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(createKeyRingMethodDescriptor) @@ -1623,6 +1842,29 @@ protected HttpJsonKeyManagementServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings deleteCryptoKeyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteCryptoKeyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteCryptoKeyVersionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteCryptoKeyVersionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings importCryptoKeyVersionTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1907,6 +2149,16 @@ protected HttpJsonKeyManagementServiceStub( this.listImportJobsPagedCallable = callableFactory.createPagedCallable( listImportJobsTransportSettings, settings.listImportJobsSettings(), clientContext); + this.listRetiredResourcesCallable = + callableFactory.createUnaryCallable( + listRetiredResourcesTransportSettings, + settings.listRetiredResourcesSettings(), + clientContext); + this.listRetiredResourcesPagedCallable = + callableFactory.createPagedCallable( + listRetiredResourcesTransportSettings, + settings.listRetiredResourcesSettings(), + clientContext); this.getKeyRingCallable = callableFactory.createUnaryCallable( getKeyRingTransportSettings, settings.getKeyRingSettings(), clientContext); @@ -1924,6 +2176,11 @@ protected HttpJsonKeyManagementServiceStub( this.getImportJobCallable = callableFactory.createUnaryCallable( getImportJobTransportSettings, settings.getImportJobSettings(), clientContext); + this.getRetiredResourceCallable = + callableFactory.createUnaryCallable( + getRetiredResourceTransportSettings, + settings.getRetiredResourceSettings(), + clientContext); this.createKeyRingCallable = callableFactory.createUnaryCallable( createKeyRingTransportSettings, settings.createKeyRingSettings(), clientContext); @@ -1935,6 +2192,26 @@ protected HttpJsonKeyManagementServiceStub( createCryptoKeyVersionTransportSettings, settings.createCryptoKeyVersionSettings(), clientContext); + this.deleteCryptoKeyCallable = + callableFactory.createUnaryCallable( + deleteCryptoKeyTransportSettings, settings.deleteCryptoKeySettings(), clientContext); + this.deleteCryptoKeyOperationCallable = + callableFactory.createOperationCallable( + deleteCryptoKeyTransportSettings, + settings.deleteCryptoKeyOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteCryptoKeyVersionCallable = + callableFactory.createUnaryCallable( + deleteCryptoKeyVersionTransportSettings, + settings.deleteCryptoKeyVersionSettings(), + clientContext); + this.deleteCryptoKeyVersionOperationCallable = + callableFactory.createOperationCallable( + deleteCryptoKeyVersionTransportSettings, + settings.deleteCryptoKeyVersionOperationSettings(), + clientContext, + httpJsonOperationsStub); this.importCryptoKeyVersionCallable = callableFactory.createUnaryCallable( importCryptoKeyVersionTransportSettings, @@ -2032,14 +2309,18 @@ public static List getMethodDescriptors() { methodDescriptors.add(listCryptoKeysMethodDescriptor); methodDescriptors.add(listCryptoKeyVersionsMethodDescriptor); methodDescriptors.add(listImportJobsMethodDescriptor); + methodDescriptors.add(listRetiredResourcesMethodDescriptor); methodDescriptors.add(getKeyRingMethodDescriptor); methodDescriptors.add(getCryptoKeyMethodDescriptor); methodDescriptors.add(getCryptoKeyVersionMethodDescriptor); methodDescriptors.add(getPublicKeyMethodDescriptor); methodDescriptors.add(getImportJobMethodDescriptor); + methodDescriptors.add(getRetiredResourceMethodDescriptor); methodDescriptors.add(createKeyRingMethodDescriptor); methodDescriptors.add(createCryptoKeyMethodDescriptor); methodDescriptors.add(createCryptoKeyVersionMethodDescriptor); + methodDescriptors.add(deleteCryptoKeyMethodDescriptor); + methodDescriptors.add(deleteCryptoKeyVersionMethodDescriptor); methodDescriptors.add(importCryptoKeyVersionMethodDescriptor); methodDescriptors.add(createImportJobMethodDescriptor); methodDescriptors.add(updateCryptoKeyMethodDescriptor); @@ -2065,6 +2346,10 @@ public static List getMethodDescriptors() { return methodDescriptors; } + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + @Override public UnaryCallable listKeyRingsCallable() { return listKeyRingsCallable; @@ -2109,6 +2394,18 @@ public UnaryCallable listImportJo return listImportJobsPagedCallable; } + @Override + public UnaryCallable + listRetiredResourcesCallable() { + return listRetiredResourcesCallable; + } + + @Override + public UnaryCallable + listRetiredResourcesPagedCallable() { + return listRetiredResourcesPagedCallable; + } + @Override public UnaryCallable getKeyRingCallable() { return getKeyRingCallable; @@ -2134,6 +2431,11 @@ public UnaryCallable getImportJobCallable() { return getImportJobCallable; } + @Override + public UnaryCallable getRetiredResourceCallable() { + return getRetiredResourceCallable; + } + @Override public UnaryCallable createKeyRingCallable() { return createKeyRingCallable; @@ -2150,6 +2452,28 @@ public UnaryCallable createCryptoKeyCallable( return createCryptoKeyVersionCallable; } + @Override + public UnaryCallable deleteCryptoKeyCallable() { + return deleteCryptoKeyCallable; + } + + @Override + public OperationCallable + deleteCryptoKeyOperationCallable() { + return deleteCryptoKeyOperationCallable; + } + + @Override + public UnaryCallable deleteCryptoKeyVersionCallable() { + return deleteCryptoKeyVersionCallable; + } + + @Override + public OperationCallable + deleteCryptoKeyVersionOperationCallable() { + return deleteCryptoKeyVersionOperationCallable; + } + @Override public UnaryCallable importCryptoKeyVersionCallable() { diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStub.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStub.java index f12866d65056..0b18b46681ce 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStub.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStub.java @@ -21,8 +21,10 @@ import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListImportJobsPagedResponse; import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListKeyRingsPagedResponse; import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListRetiredResourcesPagedResponse; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.kms.v1.AsymmetricDecryptRequest; import com.google.cloud.kms.v1.AsymmetricDecryptResponse; @@ -38,6 +40,10 @@ import com.google.cloud.kms.v1.DecapsulateResponse; import com.google.cloud.kms.v1.DecryptRequest; import com.google.cloud.kms.v1.DecryptResponse; +import com.google.cloud.kms.v1.DeleteCryptoKeyMetadata; +import com.google.cloud.kms.v1.DeleteCryptoKeyRequest; +import com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata; +import com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest; import com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest; import com.google.cloud.kms.v1.EncryptRequest; import com.google.cloud.kms.v1.EncryptResponse; @@ -48,6 +54,7 @@ import com.google.cloud.kms.v1.GetImportJobRequest; import com.google.cloud.kms.v1.GetKeyRingRequest; import com.google.cloud.kms.v1.GetPublicKeyRequest; +import com.google.cloud.kms.v1.GetRetiredResourceRequest; import com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest; import com.google.cloud.kms.v1.ImportJob; import com.google.cloud.kms.v1.KeyRing; @@ -59,6 +66,8 @@ import com.google.cloud.kms.v1.ListImportJobsResponse; import com.google.cloud.kms.v1.ListKeyRingsRequest; import com.google.cloud.kms.v1.ListKeyRingsResponse; +import com.google.cloud.kms.v1.ListRetiredResourcesRequest; +import com.google.cloud.kms.v1.ListRetiredResourcesResponse; import com.google.cloud.kms.v1.MacSignRequest; import com.google.cloud.kms.v1.MacSignResponse; import com.google.cloud.kms.v1.MacVerifyRequest; @@ -69,6 +78,7 @@ import com.google.cloud.kms.v1.RawEncryptRequest; import com.google.cloud.kms.v1.RawEncryptResponse; import com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest; +import com.google.cloud.kms.v1.RetiredResource; import com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest; import com.google.cloud.kms.v1.UpdateCryptoKeyRequest; import com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest; @@ -81,6 +91,9 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; import javax.annotation.Generated; // AUTO-GENERATED DOCUMENTATION AND CLASS. @@ -92,6 +105,14 @@ @Generated("by gapic-generator-java") public abstract class KeyManagementServiceStub implements BackgroundResource { + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + public UnaryCallable listKeyRingsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listKeyRingsPagedCallable()"); } @@ -129,6 +150,16 @@ public UnaryCallable listImportJo throw new UnsupportedOperationException("Not implemented: listImportJobsCallable()"); } + public UnaryCallable + listRetiredResourcesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listRetiredResourcesPagedCallable()"); + } + + public UnaryCallable + listRetiredResourcesCallable() { + throw new UnsupportedOperationException("Not implemented: listRetiredResourcesCallable()"); + } + public UnaryCallable getKeyRingCallable() { throw new UnsupportedOperationException("Not implemented: getKeyRingCallable()"); } @@ -149,6 +180,10 @@ public UnaryCallable getImportJobCallable() { throw new UnsupportedOperationException("Not implemented: getImportJobCallable()"); } + public UnaryCallable getRetiredResourceCallable() { + throw new UnsupportedOperationException("Not implemented: getRetiredResourceCallable()"); + } + public UnaryCallable createKeyRingCallable() { throw new UnsupportedOperationException("Not implemented: createKeyRingCallable()"); } @@ -162,6 +197,25 @@ public UnaryCallable createCryptoKeyCallable( throw new UnsupportedOperationException("Not implemented: createCryptoKeyVersionCallable()"); } + public OperationCallable + deleteCryptoKeyOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteCryptoKeyOperationCallable()"); + } + + public UnaryCallable deleteCryptoKeyCallable() { + throw new UnsupportedOperationException("Not implemented: deleteCryptoKeyCallable()"); + } + + public OperationCallable + deleteCryptoKeyVersionOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteCryptoKeyVersionOperationCallable()"); + } + + public UnaryCallable deleteCryptoKeyVersionCallable() { + throw new UnsupportedOperationException("Not implemented: deleteCryptoKeyVersionCallable()"); + } + public UnaryCallable importCryptoKeyVersionCallable() { throw new UnsupportedOperationException("Not implemented: importCryptoKeyVersionCallable()"); diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java index d3f1aa91fbf5..1b0503bd47b9 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java @@ -21,6 +21,7 @@ import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListImportJobsPagedResponse; import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListKeyRingsPagedResponse; import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListRetiredResourcesPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; @@ -32,13 +33,17 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; import com.google.api.gax.httpjson.GaxHttpJsonProperties; import com.google.api.gax.httpjson.HttpJsonTransportChannel; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.PagedListDescriptor; @@ -62,6 +67,10 @@ import com.google.cloud.kms.v1.DecapsulateResponse; import com.google.cloud.kms.v1.DecryptRequest; import com.google.cloud.kms.v1.DecryptResponse; +import com.google.cloud.kms.v1.DeleteCryptoKeyMetadata; +import com.google.cloud.kms.v1.DeleteCryptoKeyRequest; +import com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata; +import com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest; import com.google.cloud.kms.v1.DestroyCryptoKeyVersionRequest; import com.google.cloud.kms.v1.EncryptRequest; import com.google.cloud.kms.v1.EncryptResponse; @@ -72,6 +81,7 @@ import com.google.cloud.kms.v1.GetImportJobRequest; import com.google.cloud.kms.v1.GetKeyRingRequest; import com.google.cloud.kms.v1.GetPublicKeyRequest; +import com.google.cloud.kms.v1.GetRetiredResourceRequest; import com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest; import com.google.cloud.kms.v1.ImportJob; import com.google.cloud.kms.v1.KeyRing; @@ -83,6 +93,8 @@ import com.google.cloud.kms.v1.ListImportJobsResponse; import com.google.cloud.kms.v1.ListKeyRingsRequest; import com.google.cloud.kms.v1.ListKeyRingsResponse; +import com.google.cloud.kms.v1.ListRetiredResourcesRequest; +import com.google.cloud.kms.v1.ListRetiredResourcesResponse; import com.google.cloud.kms.v1.MacSignRequest; import com.google.cloud.kms.v1.MacSignResponse; import com.google.cloud.kms.v1.MacVerifyRequest; @@ -93,6 +105,7 @@ import com.google.cloud.kms.v1.RawEncryptRequest; import com.google.cloud.kms.v1.RawEncryptResponse; import com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest; +import com.google.cloud.kms.v1.RetiredResource; import com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest; import com.google.cloud.kms.v1.UpdateCryptoKeyRequest; import com.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest; @@ -109,6 +122,8 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; import java.io.IOException; import java.time.Duration; import java.util.List; @@ -164,6 +179,32 @@ * Please refer to the [Client Side Retry * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. + * + *

            To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for deleteCryptoKey: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * KeyManagementServiceStubSettings.Builder keyManagementServiceSettingsBuilder =
            + *     KeyManagementServiceStubSettings.newBuilder();
            + * TimedRetryAlgorithm timedRetryAlgorithm =
            + *     OperationalTimedPollAlgorithm.create(
            + *         RetrySettings.newBuilder()
            + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
            + *             .setRetryDelayMultiplier(1.5)
            + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
            + *             .setTotalTimeoutDuration(Duration.ofHours(24))
            + *             .build());
            + * keyManagementServiceSettingsBuilder
            + *     .createClusterOperationSettings()
            + *     .setPollingAlgorithm(timedRetryAlgorithm)
            + *     .build();
            + * }
            */ @Generated("by gapic-generator-java") public class KeyManagementServiceStubSettings @@ -189,16 +230,31 @@ public class KeyManagementServiceStubSettings private final PagedCallSettings< ListImportJobsRequest, ListImportJobsResponse, ListImportJobsPagedResponse> listImportJobsSettings; + private final PagedCallSettings< + ListRetiredResourcesRequest, + ListRetiredResourcesResponse, + ListRetiredResourcesPagedResponse> + listRetiredResourcesSettings; private final UnaryCallSettings getKeyRingSettings; private final UnaryCallSettings getCryptoKeySettings; private final UnaryCallSettings getCryptoKeyVersionSettings; private final UnaryCallSettings getPublicKeySettings; private final UnaryCallSettings getImportJobSettings; + private final UnaryCallSettings + getRetiredResourceSettings; private final UnaryCallSettings createKeyRingSettings; private final UnaryCallSettings createCryptoKeySettings; private final UnaryCallSettings createCryptoKeyVersionSettings; + private final UnaryCallSettings deleteCryptoKeySettings; + private final OperationCallSettings + deleteCryptoKeyOperationSettings; + private final UnaryCallSettings + deleteCryptoKeyVersionSettings; + private final OperationCallSettings< + DeleteCryptoKeyVersionRequest, Empty, DeleteCryptoKeyVersionMetadata> + deleteCryptoKeyVersionOperationSettings; private final UnaryCallSettings importCryptoKeyVersionSettings; private final UnaryCallSettings createImportJobSettings; @@ -376,6 +432,45 @@ public Iterable extractResources(ListImportJobsResponse payload) { } }; + private static final PagedListDescriptor< + ListRetiredResourcesRequest, ListRetiredResourcesResponse, RetiredResource> + LIST_RETIRED_RESOURCES_PAGE_STR_DESC = + new PagedListDescriptor< + ListRetiredResourcesRequest, ListRetiredResourcesResponse, RetiredResource>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListRetiredResourcesRequest injectToken( + ListRetiredResourcesRequest payload, String token) { + return ListRetiredResourcesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListRetiredResourcesRequest injectPageSize( + ListRetiredResourcesRequest payload, int pageSize) { + return ListRetiredResourcesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListRetiredResourcesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListRetiredResourcesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListRetiredResourcesResponse payload) { + return payload.getRetiredResourcesList(); + } + }; + private static final PagedListDescriptor LIST_LOCATIONS_PAGE_STR_DESC = new PagedListDescriptor() { @@ -485,6 +580,30 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListRetiredResourcesRequest, + ListRetiredResourcesResponse, + ListRetiredResourcesPagedResponse> + LIST_RETIRED_RESOURCES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListRetiredResourcesRequest, + ListRetiredResourcesResponse, + ListRetiredResourcesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListRetiredResourcesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListRetiredResourcesRequest, ListRetiredResourcesResponse, RetiredResource> + pageContext = + PageContext.create( + callable, LIST_RETIRED_RESOURCES_PAGE_STR_DESC, request, context); + return ListRetiredResourcesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> LIST_LOCATIONS_PAGE_STR_FACT = @@ -531,6 +650,15 @@ public ApiFuture getFuturePagedResponse( return listImportJobsSettings; } + /** Returns the object with the settings used for calls to listRetiredResources. */ + public PagedCallSettings< + ListRetiredResourcesRequest, + ListRetiredResourcesResponse, + ListRetiredResourcesPagedResponse> + listRetiredResourcesSettings() { + return listRetiredResourcesSettings; + } + /** Returns the object with the settings used for calls to getKeyRing. */ public UnaryCallSettings getKeyRingSettings() { return getKeyRingSettings; @@ -557,6 +685,12 @@ public UnaryCallSettings getImportJobSettings() return getImportJobSettings; } + /** Returns the object with the settings used for calls to getRetiredResource. */ + public UnaryCallSettings + getRetiredResourceSettings() { + return getRetiredResourceSettings; + } + /** Returns the object with the settings used for calls to createKeyRing. */ public UnaryCallSettings createKeyRingSettings() { return createKeyRingSettings; @@ -573,6 +707,29 @@ public UnaryCallSettings createCryptoKeySetti return createCryptoKeyVersionSettings; } + /** Returns the object with the settings used for calls to deleteCryptoKey. */ + public UnaryCallSettings deleteCryptoKeySettings() { + return deleteCryptoKeySettings; + } + + /** Returns the object with the settings used for calls to deleteCryptoKey. */ + public OperationCallSettings + deleteCryptoKeyOperationSettings() { + return deleteCryptoKeyOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteCryptoKeyVersion. */ + public UnaryCallSettings + deleteCryptoKeyVersionSettings() { + return deleteCryptoKeyVersionSettings; + } + + /** Returns the object with the settings used for calls to deleteCryptoKeyVersion. */ + public OperationCallSettings + deleteCryptoKeyVersionOperationSettings() { + return deleteCryptoKeyVersionOperationSettings; + } + /** Returns the object with the settings used for calls to importCryptoKeyVersion. */ public UnaryCallSettings importCryptoKeyVersionSettings() { @@ -807,14 +964,21 @@ protected KeyManagementServiceStubSettings(Builder settingsBuilder) throws IOExc listCryptoKeysSettings = settingsBuilder.listCryptoKeysSettings().build(); listCryptoKeyVersionsSettings = settingsBuilder.listCryptoKeyVersionsSettings().build(); listImportJobsSettings = settingsBuilder.listImportJobsSettings().build(); + listRetiredResourcesSettings = settingsBuilder.listRetiredResourcesSettings().build(); getKeyRingSettings = settingsBuilder.getKeyRingSettings().build(); getCryptoKeySettings = settingsBuilder.getCryptoKeySettings().build(); getCryptoKeyVersionSettings = settingsBuilder.getCryptoKeyVersionSettings().build(); getPublicKeySettings = settingsBuilder.getPublicKeySettings().build(); getImportJobSettings = settingsBuilder.getImportJobSettings().build(); + getRetiredResourceSettings = settingsBuilder.getRetiredResourceSettings().build(); createKeyRingSettings = settingsBuilder.createKeyRingSettings().build(); createCryptoKeySettings = settingsBuilder.createCryptoKeySettings().build(); createCryptoKeyVersionSettings = settingsBuilder.createCryptoKeyVersionSettings().build(); + deleteCryptoKeySettings = settingsBuilder.deleteCryptoKeySettings().build(); + deleteCryptoKeyOperationSettings = settingsBuilder.deleteCryptoKeyOperationSettings().build(); + deleteCryptoKeyVersionSettings = settingsBuilder.deleteCryptoKeyVersionSettings().build(); + deleteCryptoKeyVersionOperationSettings = + settingsBuilder.deleteCryptoKeyVersionOperationSettings().build(); importCryptoKeyVersionSettings = settingsBuilder.importCryptoKeyVersionSettings().build(); createImportJobSettings = settingsBuilder.createImportJobSettings().build(); updateCryptoKeySettings = settingsBuilder.updateCryptoKeySettings().build(); @@ -858,17 +1022,34 @@ public static class Builder private final PagedCallSettings.Builder< ListImportJobsRequest, ListImportJobsResponse, ListImportJobsPagedResponse> listImportJobsSettings; + private final PagedCallSettings.Builder< + ListRetiredResourcesRequest, + ListRetiredResourcesResponse, + ListRetiredResourcesPagedResponse> + listRetiredResourcesSettings; private final UnaryCallSettings.Builder getKeyRingSettings; private final UnaryCallSettings.Builder getCryptoKeySettings; private final UnaryCallSettings.Builder getCryptoKeyVersionSettings; private final UnaryCallSettings.Builder getPublicKeySettings; private final UnaryCallSettings.Builder getImportJobSettings; + private final UnaryCallSettings.Builder + getRetiredResourceSettings; private final UnaryCallSettings.Builder createKeyRingSettings; private final UnaryCallSettings.Builder createCryptoKeySettings; private final UnaryCallSettings.Builder createCryptoKeyVersionSettings; + private final UnaryCallSettings.Builder + deleteCryptoKeySettings; + private final OperationCallSettings.Builder< + DeleteCryptoKeyRequest, Empty, DeleteCryptoKeyMetadata> + deleteCryptoKeyOperationSettings; + private final UnaryCallSettings.Builder + deleteCryptoKeyVersionSettings; + private final OperationCallSettings.Builder< + DeleteCryptoKeyVersionRequest, Empty, DeleteCryptoKeyVersionMetadata> + deleteCryptoKeyVersionOperationSettings; private final UnaryCallSettings.Builder importCryptoKeyVersionSettings; private final UnaryCallSettings.Builder @@ -965,14 +1146,21 @@ protected Builder(ClientContext clientContext) { listCryptoKeyVersionsSettings = PagedCallSettings.newBuilder(LIST_CRYPTO_KEY_VERSIONS_PAGE_STR_FACT); listImportJobsSettings = PagedCallSettings.newBuilder(LIST_IMPORT_JOBS_PAGE_STR_FACT); + listRetiredResourcesSettings = + PagedCallSettings.newBuilder(LIST_RETIRED_RESOURCES_PAGE_STR_FACT); getKeyRingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getCryptoKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getCryptoKeyVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getPublicKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getImportJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getRetiredResourceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createKeyRingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createCryptoKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createCryptoKeyVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteCryptoKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteCryptoKeyOperationSettings = OperationCallSettings.newBuilder(); + deleteCryptoKeyVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteCryptoKeyVersionOperationSettings = OperationCallSettings.newBuilder(); importCryptoKeyVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createImportJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateCryptoKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1002,14 +1190,18 @@ protected Builder(ClientContext clientContext) { listCryptoKeysSettings, listCryptoKeyVersionsSettings, listImportJobsSettings, + listRetiredResourcesSettings, getKeyRingSettings, getCryptoKeySettings, getCryptoKeyVersionSettings, getPublicKeySettings, getImportJobSettings, + getRetiredResourceSettings, createKeyRingSettings, createCryptoKeySettings, createCryptoKeyVersionSettings, + deleteCryptoKeySettings, + deleteCryptoKeyVersionSettings, importCryptoKeyVersionSettings, createImportJobSettings, updateCryptoKeySettings, @@ -1042,14 +1234,21 @@ protected Builder(KeyManagementServiceStubSettings settings) { listCryptoKeysSettings = settings.listCryptoKeysSettings.toBuilder(); listCryptoKeyVersionsSettings = settings.listCryptoKeyVersionsSettings.toBuilder(); listImportJobsSettings = settings.listImportJobsSettings.toBuilder(); + listRetiredResourcesSettings = settings.listRetiredResourcesSettings.toBuilder(); getKeyRingSettings = settings.getKeyRingSettings.toBuilder(); getCryptoKeySettings = settings.getCryptoKeySettings.toBuilder(); getCryptoKeyVersionSettings = settings.getCryptoKeyVersionSettings.toBuilder(); getPublicKeySettings = settings.getPublicKeySettings.toBuilder(); getImportJobSettings = settings.getImportJobSettings.toBuilder(); + getRetiredResourceSettings = settings.getRetiredResourceSettings.toBuilder(); createKeyRingSettings = settings.createKeyRingSettings.toBuilder(); createCryptoKeySettings = settings.createCryptoKeySettings.toBuilder(); createCryptoKeyVersionSettings = settings.createCryptoKeyVersionSettings.toBuilder(); + deleteCryptoKeySettings = settings.deleteCryptoKeySettings.toBuilder(); + deleteCryptoKeyOperationSettings = settings.deleteCryptoKeyOperationSettings.toBuilder(); + deleteCryptoKeyVersionSettings = settings.deleteCryptoKeyVersionSettings.toBuilder(); + deleteCryptoKeyVersionOperationSettings = + settings.deleteCryptoKeyVersionOperationSettings.toBuilder(); importCryptoKeyVersionSettings = settings.importCryptoKeyVersionSettings.toBuilder(); createImportJobSettings = settings.createImportJobSettings.toBuilder(); updateCryptoKeySettings = settings.updateCryptoKeySettings.toBuilder(); @@ -1080,14 +1279,18 @@ protected Builder(KeyManagementServiceStubSettings settings) { listCryptoKeysSettings, listCryptoKeyVersionsSettings, listImportJobsSettings, + listRetiredResourcesSettings, getKeyRingSettings, getCryptoKeySettings, getCryptoKeyVersionSettings, getPublicKeySettings, getImportJobSettings, + getRetiredResourceSettings, createKeyRingSettings, createCryptoKeySettings, createCryptoKeyVersionSettings, + deleteCryptoKeySettings, + deleteCryptoKeyVersionSettings, importCryptoKeyVersionSettings, createImportJobSettings, updateCryptoKeySettings, @@ -1157,6 +1360,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + builder + .listRetiredResourcesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + builder .getKeyRingSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) @@ -1182,6 +1390,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + builder + .getRetiredResourceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + builder .createKeyRingSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) @@ -1197,6 +1410,16 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder + .deleteCryptoKeySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .deleteCryptoKeyVersionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + builder .importCryptoKeyVersionSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) @@ -1307,6 +1530,55 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + builder + .deleteCryptoKeyOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(DeleteCryptoKeyMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteCryptoKeyVersionOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + DeleteCryptoKeyVersionMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + return builder; } @@ -1355,6 +1627,15 @@ public Builder applyToAllUnaryMethods( return listImportJobsSettings; } + /** Returns the builder for the settings used for calls to listRetiredResources. */ + public PagedCallSettings.Builder< + ListRetiredResourcesRequest, + ListRetiredResourcesResponse, + ListRetiredResourcesPagedResponse> + listRetiredResourcesSettings() { + return listRetiredResourcesSettings; + } + /** Returns the builder for the settings used for calls to getKeyRing. */ public UnaryCallSettings.Builder getKeyRingSettings() { return getKeyRingSettings; @@ -1381,6 +1662,12 @@ public UnaryCallSettings.Builder getImportJobSet return getImportJobSettings; } + /** Returns the builder for the settings used for calls to getRetiredResource. */ + public UnaryCallSettings.Builder + getRetiredResourceSettings() { + return getRetiredResourceSettings; + } + /** Returns the builder for the settings used for calls to createKeyRing. */ public UnaryCallSettings.Builder createKeyRingSettings() { return createKeyRingSettings; @@ -1397,6 +1684,30 @@ public UnaryCallSettings.Builder createCrypto return createCryptoKeyVersionSettings; } + /** Returns the builder for the settings used for calls to deleteCryptoKey. */ + public UnaryCallSettings.Builder deleteCryptoKeySettings() { + return deleteCryptoKeySettings; + } + + /** Returns the builder for the settings used for calls to deleteCryptoKey. */ + public OperationCallSettings.Builder + deleteCryptoKeyOperationSettings() { + return deleteCryptoKeyOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteCryptoKeyVersion. */ + public UnaryCallSettings.Builder + deleteCryptoKeyVersionSettings() { + return deleteCryptoKeyVersionSettings; + } + + /** Returns the builder for the settings used for calls to deleteCryptoKeyVersion. */ + public OperationCallSettings.Builder< + DeleteCryptoKeyVersionRequest, Empty, DeleteCryptoKeyVersionMetadata> + deleteCryptoKeyVersionOperationSettings() { + return deleteCryptoKeyVersionOperationSettings; + } + /** Returns the builder for the settings used for calls to importCryptoKeyVersion. */ public UnaryCallSettings.Builder importCryptoKeyVersionSettings() { diff --git a/java-kms/google-cloud-kms/src/main/resources/META-INF/native-image/com.google.cloud.kms.v1/reflect-config.json b/java-kms/google-cloud-kms/src/main/resources/META-INF/native-image/com.google.cloud.kms.v1/reflect-config.json index 55e78fd4e388..0393a9944093 100644 --- a/java-kms/google-cloud-kms/src/main/resources/META-INF/native-image/com.google.cloud.kms.v1/reflect-config.json +++ b/java-kms/google-cloud-kms/src/main/resources/META-INF/native-image/com.google.cloud.kms.v1/reflect-config.json @@ -1025,6 +1025,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.kms.v1.DeleteCryptoKeyMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.kms.v1.DeleteCryptoKeyMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.kms.v1.DeleteCryptoKeyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.kms.v1.DeleteCryptoKeyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.kms.v1.DeleteSingleTenantHsmInstanceProposalRequest", "queryAllDeclaredConstructors": true, @@ -1448,6 +1520,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.kms.v1.GetRetiredResourceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.kms.v1.GetRetiredResourceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.kms.v1.GetSingleTenantHsmInstanceProposalRequest", "queryAllDeclaredConstructors": true, @@ -1871,6 +1961,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.kms.v1.ListRetiredResourcesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.kms.v1.ListRetiredResourcesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.kms.v1.ListRetiredResourcesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.kms.v1.ListRetiredResourcesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.kms.v1.ListSingleTenantHsmInstanceProposalsRequest", "queryAllDeclaredConstructors": true, @@ -2159,6 +2285,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.kms.v1.RetiredResource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.kms.v1.RetiredResource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.kms.v1.ShowEffectiveAutokeyConfigRequest", "queryAllDeclaredConstructors": true, diff --git a/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/KeyManagementServiceClientHttpJsonTest.java b/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/KeyManagementServiceClientHttpJsonTest.java index 61128fd1aa34..7d37b60f37a7 100644 --- a/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/KeyManagementServiceClientHttpJsonTest.java +++ b/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/KeyManagementServiceClientHttpJsonTest.java @@ -21,6 +21,7 @@ import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListImportJobsPagedResponse; import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListKeyRingsPagedResponse; import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListRetiredResourcesPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.httpjson.GaxHttpJsonProperties; @@ -46,9 +47,11 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import com.google.protobuf.Any; import com.google.protobuf.ByteString; import com.google.protobuf.Duration; +import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import com.google.protobuf.Int64Value; import com.google.protobuf.Timestamp; @@ -57,6 +60,7 @@ import java.util.Arrays; import java.util.HashMap; import java.util.List; +import java.util.concurrent.ExecutionException; import javax.annotation.Generated; import org.junit.After; import org.junit.AfterClass; @@ -504,6 +508,106 @@ public void listImportJobsExceptionTest2() throws Exception { } } + @Test + public void listRetiredResourcesTest() throws Exception { + RetiredResource responsesElement = RetiredResource.newBuilder().build(); + ListRetiredResourcesResponse expectedResponse = + ListRetiredResourcesResponse.newBuilder() + .setNextPageToken("") + .addAllRetiredResources(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListRetiredResourcesPagedResponse pagedListResponse = client.listRetiredResources(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRetiredResourcesList().get(0), resources.get(0)); + + 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 listRetiredResourcesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listRetiredResources(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRetiredResourcesTest2() throws Exception { + RetiredResource responsesElement = RetiredResource.newBuilder().build(); + ListRetiredResourcesResponse expectedResponse = + ListRetiredResourcesResponse.newBuilder() + .setNextPageToken("") + .addAllRetiredResources(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListRetiredResourcesPagedResponse pagedListResponse = client.listRetiredResources(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRetiredResourcesList().get(0), resources.get(0)); + + 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 listRetiredResourcesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listRetiredResources(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void getKeyRingTest() throws Exception { KeyRing expectedResponse = @@ -1062,6 +1166,106 @@ public void getImportJobExceptionTest2() throws Exception { } } + @Test + public void getRetiredResourceTest() throws Exception { + RetiredResource expectedResponse = + RetiredResource.newBuilder() + .setName( + RetiredResourceName.of("[PROJECT]", "[LOCATION]", "[RETIRED_RESOURCE]").toString()) + .setOriginalResource("originalResource-1694609153") + .setResourceType("resourceType-384364440") + .setDeleteTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + RetiredResourceName name = + RetiredResourceName.of("[PROJECT]", "[LOCATION]", "[RETIRED_RESOURCE]"); + + RetiredResource actualResponse = client.getRetiredResource(name); + 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 getRetiredResourceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RetiredResourceName name = + RetiredResourceName.of("[PROJECT]", "[LOCATION]", "[RETIRED_RESOURCE]"); + client.getRetiredResource(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getRetiredResourceTest2() throws Exception { + RetiredResource expectedResponse = + RetiredResource.newBuilder() + .setName( + RetiredResourceName.of("[PROJECT]", "[LOCATION]", "[RETIRED_RESOURCE]").toString()) + .setOriginalResource("originalResource-1694609153") + .setResourceType("resourceType-384364440") + .setDeleteTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-4892/locations/location-4892/retiredResources/retiredResource-4892"; + + RetiredResource actualResponse = client.getRetiredResource(name); + 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 getRetiredResourceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4892/locations/location-4892/retiredResources/retiredResource-4892"; + client.getRetiredResource(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void createKeyRingTest() throws Exception { KeyRing expectedResponse = @@ -1414,6 +1618,195 @@ public void createCryptoKeyVersionExceptionTest2() throws Exception { } } + @Test + public void deleteCryptoKeyTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCryptoKeyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CryptoKeyName name = CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]"); + + client.deleteCryptoKeyAsync(name).get(); + + 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 deleteCryptoKeyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CryptoKeyName name = + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]"); + client.deleteCryptoKeyAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteCryptoKeyTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCryptoKeyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-5355/locations/location-5355/keyRings/keyRing-5355/cryptoKeys/cryptoKey-5355"; + + client.deleteCryptoKeyAsync(name).get(); + + 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 deleteCryptoKeyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-5355/locations/location-5355/keyRings/keyRing-5355/cryptoKeys/cryptoKey-5355"; + client.deleteCryptoKeyAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteCryptoKeyVersionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCryptoKeyVersionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CryptoKeyVersionName name = + CryptoKeyVersionName.of( + "[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]"); + + client.deleteCryptoKeyVersionAsync(name).get(); + + 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 deleteCryptoKeyVersionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CryptoKeyVersionName name = + CryptoKeyVersionName.of( + "[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]"); + client.deleteCryptoKeyVersionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteCryptoKeyVersionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCryptoKeyVersionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-9504/locations/location-9504/keyRings/keyRing-9504/cryptoKeys/cryptoKey-9504/cryptoKeyVersions/cryptoKeyVersion-9504"; + + client.deleteCryptoKeyVersionAsync(name).get(); + + 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 deleteCryptoKeyVersionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9504/locations/location-9504/keyRings/keyRing-9504/cryptoKeys/cryptoKey-9504/cryptoKeyVersions/cryptoKeyVersion-9504"; + client.deleteCryptoKeyVersionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void importCryptoKeyVersionTest() throws Exception { CryptoKeyVersion expectedResponse = diff --git a/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/KeyManagementServiceClientTest.java b/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/KeyManagementServiceClientTest.java index 608014870eb9..c881e3103067 100644 --- a/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/KeyManagementServiceClientTest.java +++ b/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/KeyManagementServiceClientTest.java @@ -21,6 +21,7 @@ import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListImportJobsPagedResponse; import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListKeyRingsPagedResponse; import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListRetiredResourcesPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GaxGrpcProperties; @@ -29,6 +30,7 @@ import com.google.api.gax.grpc.testing.MockServiceHelper; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; import com.google.api.resourcenames.ResourceName; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -43,10 +45,12 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Any; import com.google.protobuf.ByteString; import com.google.protobuf.Duration; +import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import com.google.protobuf.Int64Value; import com.google.protobuf.Timestamp; @@ -57,6 +61,7 @@ import java.util.HashMap; import java.util.List; import java.util.UUID; +import java.util.concurrent.ExecutionException; import javax.annotation.Generated; import org.junit.After; import org.junit.AfterClass; @@ -464,6 +469,96 @@ public void listImportJobsExceptionTest2() throws Exception { } } + @Test + public void listRetiredResourcesTest() throws Exception { + RetiredResource responsesElement = RetiredResource.newBuilder().build(); + ListRetiredResourcesResponse expectedResponse = + ListRetiredResourcesResponse.newBuilder() + .setNextPageToken("") + .addAllRetiredResources(Arrays.asList(responsesElement)) + .build(); + mockKeyManagementService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListRetiredResourcesPagedResponse pagedListResponse = client.listRetiredResources(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRetiredResourcesList().get(0), resources.get(0)); + + List actualRequests = mockKeyManagementService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListRetiredResourcesRequest actualRequest = + ((ListRetiredResourcesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listRetiredResourcesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockKeyManagementService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listRetiredResources(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRetiredResourcesTest2() throws Exception { + RetiredResource responsesElement = RetiredResource.newBuilder().build(); + ListRetiredResourcesResponse expectedResponse = + ListRetiredResourcesResponse.newBuilder() + .setNextPageToken("") + .addAllRetiredResources(Arrays.asList(responsesElement)) + .build(); + mockKeyManagementService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListRetiredResourcesPagedResponse pagedListResponse = client.listRetiredResources(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRetiredResourcesList().get(0), resources.get(0)); + + List actualRequests = mockKeyManagementService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListRetiredResourcesRequest actualRequest = + ((ListRetiredResourcesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listRetiredResourcesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockKeyManagementService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listRetiredResources(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void getKeyRingTest() throws Exception { KeyRing expectedResponse = @@ -954,6 +1049,92 @@ public void getImportJobExceptionTest2() throws Exception { } } + @Test + public void getRetiredResourceTest() throws Exception { + RetiredResource expectedResponse = + RetiredResource.newBuilder() + .setName( + RetiredResourceName.of("[PROJECT]", "[LOCATION]", "[RETIRED_RESOURCE]").toString()) + .setOriginalResource("originalResource-1694609153") + .setResourceType("resourceType-384364440") + .setDeleteTime(Timestamp.newBuilder().build()) + .build(); + mockKeyManagementService.addResponse(expectedResponse); + + RetiredResourceName name = + RetiredResourceName.of("[PROJECT]", "[LOCATION]", "[RETIRED_RESOURCE]"); + + RetiredResource actualResponse = client.getRetiredResource(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockKeyManagementService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetRetiredResourceRequest actualRequest = ((GetRetiredResourceRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getRetiredResourceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockKeyManagementService.addException(exception); + + try { + RetiredResourceName name = + RetiredResourceName.of("[PROJECT]", "[LOCATION]", "[RETIRED_RESOURCE]"); + client.getRetiredResource(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getRetiredResourceTest2() throws Exception { + RetiredResource expectedResponse = + RetiredResource.newBuilder() + .setName( + RetiredResourceName.of("[PROJECT]", "[LOCATION]", "[RETIRED_RESOURCE]").toString()) + .setOriginalResource("originalResource-1694609153") + .setResourceType("resourceType-384364440") + .setDeleteTime(Timestamp.newBuilder().build()) + .build(); + mockKeyManagementService.addResponse(expectedResponse); + + String name = "name3373707"; + + RetiredResource actualResponse = client.getRetiredResource(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockKeyManagementService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetRetiredResourceRequest actualRequest = ((GetRetiredResourceRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getRetiredResourceExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockKeyManagementService.addException(exception); + + try { + String name = "name3373707"; + client.getRetiredResource(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void createKeyRingTest() throws Exception { KeyRing expectedResponse = @@ -1280,6 +1461,181 @@ public void createCryptoKeyVersionExceptionTest2() throws Exception { } } + @Test + public void deleteCryptoKeyTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCryptoKeyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockKeyManagementService.addResponse(resultOperation); + + CryptoKeyName name = CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]"); + + client.deleteCryptoKeyAsync(name).get(); + + List actualRequests = mockKeyManagementService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteCryptoKeyRequest actualRequest = ((DeleteCryptoKeyRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteCryptoKeyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockKeyManagementService.addException(exception); + + try { + CryptoKeyName name = + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]"); + client.deleteCryptoKeyAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteCryptoKeyTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCryptoKeyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockKeyManagementService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteCryptoKeyAsync(name).get(); + + List actualRequests = mockKeyManagementService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteCryptoKeyRequest actualRequest = ((DeleteCryptoKeyRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteCryptoKeyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockKeyManagementService.addException(exception); + + try { + String name = "name3373707"; + client.deleteCryptoKeyAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteCryptoKeyVersionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCryptoKeyVersionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockKeyManagementService.addResponse(resultOperation); + + CryptoKeyVersionName name = + CryptoKeyVersionName.of( + "[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]"); + + client.deleteCryptoKeyVersionAsync(name).get(); + + List actualRequests = mockKeyManagementService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteCryptoKeyVersionRequest actualRequest = + ((DeleteCryptoKeyVersionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteCryptoKeyVersionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockKeyManagementService.addException(exception); + + try { + CryptoKeyVersionName name = + CryptoKeyVersionName.of( + "[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]"); + client.deleteCryptoKeyVersionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteCryptoKeyVersionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCryptoKeyVersionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockKeyManagementService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteCryptoKeyVersionAsync(name).get(); + + List actualRequests = mockKeyManagementService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteCryptoKeyVersionRequest actualRequest = + ((DeleteCryptoKeyVersionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteCryptoKeyVersionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockKeyManagementService.addException(exception); + + try { + String name = "name3373707"; + client.deleteCryptoKeyVersionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void importCryptoKeyVersionTest() throws Exception { CryptoKeyVersion expectedResponse = diff --git a/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockKeyManagementServiceImpl.java b/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockKeyManagementServiceImpl.java index 0a047110d84c..df0eb8b11164 100644 --- a/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockKeyManagementServiceImpl.java +++ b/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockKeyManagementServiceImpl.java @@ -18,6 +18,7 @@ import com.google.api.core.BetaApi; import com.google.cloud.kms.v1.KeyManagementServiceGrpc.KeyManagementServiceImplBase; +import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import io.grpc.stub.StreamObserver; import java.util.ArrayList; @@ -144,6 +145,29 @@ public void listImportJobs( } } + @Override + public void listRetiredResources( + ListRetiredResourcesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListRetiredResourcesResponse) { + requests.add(request); + responseObserver.onNext(((ListRetiredResourcesResponse) 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 ListRetiredResources, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ListRetiredResourcesResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void getKeyRing(GetKeyRingRequest request, StreamObserver responseObserver) { Object response = responses.poll(); @@ -248,6 +272,27 @@ public void getImportJob( } } + @Override + public void getRetiredResource( + GetRetiredResourceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof RetiredResource) { + requests.add(request); + responseObserver.onNext(((RetiredResource) 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 GetRetiredResource, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + RetiredResource.class.getName(), + Exception.class.getName()))); + } + } + @Override public void createKeyRing( CreateKeyRingRequest request, StreamObserver responseObserver) { @@ -312,6 +357,49 @@ public void createCryptoKeyVersion( } } + @Override + public void deleteCryptoKey( + DeleteCryptoKeyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteCryptoKey, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteCryptoKeyVersion( + DeleteCryptoKeyVersionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteCryptoKeyVersion, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void importCryptoKeyVersion( ImportCryptoKeyVersionRequest request, StreamObserver responseObserver) { diff --git a/java-kms/grpc-google-cloud-kms-v1/pom.xml b/java-kms/grpc-google-cloud-kms-v1/pom.xml index 13caa2c7ea5a..bc82a271f9ac 100644 --- a/java-kms/grpc-google-cloud-kms-v1/pom.xml +++ b/java-kms/grpc-google-cloud-kms-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-kms-v1 - 0.178.0-SNAPSHOT + 0.179.0 grpc-google-cloud-kms-v1 GRPC library for grpc-google-cloud-kms-v1 com.google.cloud google-cloud-kms-parent - 2.87.0-SNAPSHOT + 2.88.0 diff --git a/java-kms/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceGrpc.java b/java-kms/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceGrpc.java index a2a4d169c721..eb2199d09b30 100644 --- a/java-kms/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceGrpc.java +++ b/java-kms/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceGrpc.java @@ -224,6 +224,56 @@ private KeyManagementServiceGrpc() {} return getListImportJobsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.kms.v1.ListRetiredResourcesRequest, + com.google.cloud.kms.v1.ListRetiredResourcesResponse> + getListRetiredResourcesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRetiredResources", + requestType = com.google.cloud.kms.v1.ListRetiredResourcesRequest.class, + responseType = com.google.cloud.kms.v1.ListRetiredResourcesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.kms.v1.ListRetiredResourcesRequest, + com.google.cloud.kms.v1.ListRetiredResourcesResponse> + getListRetiredResourcesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.kms.v1.ListRetiredResourcesRequest, + com.google.cloud.kms.v1.ListRetiredResourcesResponse> + getListRetiredResourcesMethod; + if ((getListRetiredResourcesMethod = KeyManagementServiceGrpc.getListRetiredResourcesMethod) + == null) { + synchronized (KeyManagementServiceGrpc.class) { + if ((getListRetiredResourcesMethod = KeyManagementServiceGrpc.getListRetiredResourcesMethod) + == null) { + KeyManagementServiceGrpc.getListRetiredResourcesMethod = + getListRetiredResourcesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListRetiredResources")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.kms.v1.ListRetiredResourcesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.kms.v1.ListRetiredResourcesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new KeyManagementServiceMethodDescriptorSupplier("ListRetiredResources")) + .build(); + } + } + } + return getListRetiredResourcesMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.kms.v1.GetKeyRingRequest, com.google.cloud.kms.v1.KeyRing> getGetKeyRingMethod; @@ -440,6 +490,54 @@ private KeyManagementServiceGrpc() {} return getGetImportJobMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.kms.v1.GetRetiredResourceRequest, + com.google.cloud.kms.v1.RetiredResource> + getGetRetiredResourceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRetiredResource", + requestType = com.google.cloud.kms.v1.GetRetiredResourceRequest.class, + responseType = com.google.cloud.kms.v1.RetiredResource.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.kms.v1.GetRetiredResourceRequest, + com.google.cloud.kms.v1.RetiredResource> + getGetRetiredResourceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.kms.v1.GetRetiredResourceRequest, + com.google.cloud.kms.v1.RetiredResource> + getGetRetiredResourceMethod; + if ((getGetRetiredResourceMethod = KeyManagementServiceGrpc.getGetRetiredResourceMethod) + == null) { + synchronized (KeyManagementServiceGrpc.class) { + if ((getGetRetiredResourceMethod = KeyManagementServiceGrpc.getGetRetiredResourceMethod) + == null) { + KeyManagementServiceGrpc.getGetRetiredResourceMethod = + getGetRetiredResourceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRetiredResource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.kms.v1.GetRetiredResourceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.kms.v1.RetiredResource.getDefaultInstance())) + .setSchemaDescriptor( + new KeyManagementServiceMethodDescriptorSupplier("GetRetiredResource")) + .build(); + } + } + } + return getGetRetiredResourceMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.kms.v1.CreateKeyRingRequest, com.google.cloud.kms.v1.KeyRing> getCreateKeyRingMethod; @@ -576,6 +674,97 @@ private KeyManagementServiceGrpc() {} return getCreateCryptoKeyVersionMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.kms.v1.DeleteCryptoKeyRequest, com.google.longrunning.Operation> + getDeleteCryptoKeyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCryptoKey", + requestType = com.google.cloud.kms.v1.DeleteCryptoKeyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.kms.v1.DeleteCryptoKeyRequest, com.google.longrunning.Operation> + getDeleteCryptoKeyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.kms.v1.DeleteCryptoKeyRequest, com.google.longrunning.Operation> + getDeleteCryptoKeyMethod; + if ((getDeleteCryptoKeyMethod = KeyManagementServiceGrpc.getDeleteCryptoKeyMethod) == null) { + synchronized (KeyManagementServiceGrpc.class) { + if ((getDeleteCryptoKeyMethod = KeyManagementServiceGrpc.getDeleteCryptoKeyMethod) + == null) { + KeyManagementServiceGrpc.getDeleteCryptoKeyMethod = + getDeleteCryptoKeyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCryptoKey")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.kms.v1.DeleteCryptoKeyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new KeyManagementServiceMethodDescriptorSupplier("DeleteCryptoKey")) + .build(); + } + } + } + return getDeleteCryptoKeyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest, com.google.longrunning.Operation> + getDeleteCryptoKeyVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCryptoKeyVersion", + requestType = com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest, com.google.longrunning.Operation> + getDeleteCryptoKeyVersionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest, com.google.longrunning.Operation> + getDeleteCryptoKeyVersionMethod; + if ((getDeleteCryptoKeyVersionMethod = KeyManagementServiceGrpc.getDeleteCryptoKeyVersionMethod) + == null) { + synchronized (KeyManagementServiceGrpc.class) { + if ((getDeleteCryptoKeyVersionMethod = + KeyManagementServiceGrpc.getDeleteCryptoKeyVersionMethod) + == null) { + KeyManagementServiceGrpc.getDeleteCryptoKeyVersionMethod = + getDeleteCryptoKeyVersionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteCryptoKeyVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new KeyManagementServiceMethodDescriptorSupplier( + "DeleteCryptoKeyVersion")) + .build(); + } + } + } + return getDeleteCryptoKeyVersionMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest, com.google.cloud.kms.v1.CryptoKeyVersion> @@ -1489,6 +1678,23 @@ default void listImportJobs( getListImportJobsMethod(), responseObserver); } + /** + * + * + *
            +     * Lists the [RetiredResources][google.cloud.kms.v1.RetiredResource] which are
            +     * the records of deleted [CryptoKeys][google.cloud.kms.v1.CryptoKey].
            +     * RetiredResources prevent the reuse of these resource names after deletion.
            +     * 
            + */ + default void listRetiredResources( + com.google.cloud.kms.v1.ListRetiredResourcesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListRetiredResourcesMethod(), responseObserver); + } + /** * * @@ -1566,6 +1772,22 @@ default void getImportJob( getGetImportJobMethod(), responseObserver); } + /** + * + * + *
            +     * Retrieves a specific [RetiredResource][google.cloud.kms.v1.RetiredResource]
            +     * resource, which represents the record of a deleted
            +     * [CryptoKey][google.cloud.kms.v1.CryptoKey].
            +     * 
            + */ + default void getRetiredResource( + com.google.cloud.kms.v1.GetRetiredResourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetRetiredResourceMethod(), responseObserver); + } + /** * * @@ -1617,6 +1839,49 @@ default void createCryptoKeyVersion( getCreateCryptoKeyVersionMethod(), responseObserver); } + /** + * + * + *
            +     * Permanently deletes the given [CryptoKey][google.cloud.kms.v1.CryptoKey].
            +     * All child [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] must
            +     * have been previously deleted using
            +     * [KeyManagementService.DeleteCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.DeleteCryptoKeyVersion].
            +     * The specified crypto key will be immediately and permanently deleted upon
            +     * calling this method. This action cannot be undone.
            +     * 
            + */ + default void deleteCryptoKey( + com.google.cloud.kms.v1.DeleteCryptoKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteCryptoKeyMethod(), responseObserver); + } + + /** + * + * + *
            +     * Permanently deletes the given
            +     * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. Only possible if
            +     * the version has not been previously imported and if its
            +     * [state][google.cloud.kms.v1.CryptoKeyVersion.state] is one of
            +     * [DESTROYED][CryptoKeyVersionState.DESTROYED],
            +     * [IMPORT_FAILED][CryptoKeyVersionState.IMPORT_FAILED], or
            +     * [GENERATION_FAILED][CryptoKeyVersionState.GENERATION_FAILED].
            +     * Successfully imported
            +     * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] cannot be deleted
            +     * at this time. The specified version will be immediately and permanently
            +     * deleted upon calling this method. This action cannot be undone.
            +     * 
            + */ + default void deleteCryptoKeyVersion( + com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteCryptoKeyVersionMethod(), responseObserver); + } + /** * * @@ -2052,6 +2317,25 @@ public void listImportJobs( responseObserver); } + /** + * + * + *
            +     * Lists the [RetiredResources][google.cloud.kms.v1.RetiredResource] which are
            +     * the records of deleted [CryptoKeys][google.cloud.kms.v1.CryptoKey].
            +     * RetiredResources prevent the reuse of these resource names after deletion.
            +     * 
            + */ + public void listRetiredResources( + com.google.cloud.kms.v1.ListRetiredResourcesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRetiredResourcesMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -2138,6 +2422,24 @@ public void getImportJob( responseObserver); } + /** + * + * + *
            +     * Retrieves a specific [RetiredResource][google.cloud.kms.v1.RetiredResource]
            +     * resource, which represents the record of a deleted
            +     * [CryptoKey][google.cloud.kms.v1.CryptoKey].
            +     * 
            + */ + public void getRetiredResource( + com.google.cloud.kms.v1.GetRetiredResourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRetiredResourceMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -2195,6 +2497,53 @@ public void createCryptoKeyVersion( responseObserver); } + /** + * + * + *
            +     * Permanently deletes the given [CryptoKey][google.cloud.kms.v1.CryptoKey].
            +     * All child [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] must
            +     * have been previously deleted using
            +     * [KeyManagementService.DeleteCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.DeleteCryptoKeyVersion].
            +     * The specified crypto key will be immediately and permanently deleted upon
            +     * calling this method. This action cannot be undone.
            +     * 
            + */ + public void deleteCryptoKey( + com.google.cloud.kms.v1.DeleteCryptoKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCryptoKeyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Permanently deletes the given
            +     * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. Only possible if
            +     * the version has not been previously imported and if its
            +     * [state][google.cloud.kms.v1.CryptoKeyVersion.state] is one of
            +     * [DESTROYED][CryptoKeyVersionState.DESTROYED],
            +     * [IMPORT_FAILED][CryptoKeyVersionState.IMPORT_FAILED], or
            +     * [GENERATION_FAILED][CryptoKeyVersionState.GENERATION_FAILED].
            +     * Successfully imported
            +     * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] cannot be deleted
            +     * at this time. The specified version will be immediately and permanently
            +     * deleted upon calling this method. This action cannot be undone.
            +     * 
            + */ + public void deleteCryptoKeyVersion( + com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCryptoKeyVersionMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -2620,6 +2969,22 @@ public com.google.cloud.kms.v1.ListImportJobsResponse listImportJobs( getChannel(), getListImportJobsMethod(), getCallOptions(), request); } + /** + * + * + *
            +     * Lists the [RetiredResources][google.cloud.kms.v1.RetiredResource] which are
            +     * the records of deleted [CryptoKeys][google.cloud.kms.v1.CryptoKey].
            +     * RetiredResources prevent the reuse of these resource names after deletion.
            +     * 
            + */ + public com.google.cloud.kms.v1.ListRetiredResourcesResponse listRetiredResources( + com.google.cloud.kms.v1.ListRetiredResourcesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListRetiredResourcesMethod(), getCallOptions(), request); + } + /** * * @@ -2693,6 +3058,21 @@ public com.google.cloud.kms.v1.ImportJob getImportJob( getChannel(), getGetImportJobMethod(), getCallOptions(), request); } + /** + * + * + *
            +     * Retrieves a specific [RetiredResource][google.cloud.kms.v1.RetiredResource]
            +     * resource, which represents the record of a deleted
            +     * [CryptoKey][google.cloud.kms.v1.CryptoKey].
            +     * 
            + */ + public com.google.cloud.kms.v1.RetiredResource getRetiredResource( + com.google.cloud.kms.v1.GetRetiredResourceRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetRetiredResourceMethod(), getCallOptions(), request); + } + /** * * @@ -2742,6 +3122,48 @@ public com.google.cloud.kms.v1.CryptoKeyVersion createCryptoKeyVersion( getChannel(), getCreateCryptoKeyVersionMethod(), getCallOptions(), request); } + /** + * + * + *
            +     * Permanently deletes the given [CryptoKey][google.cloud.kms.v1.CryptoKey].
            +     * All child [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] must
            +     * have been previously deleted using
            +     * [KeyManagementService.DeleteCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.DeleteCryptoKeyVersion].
            +     * The specified crypto key will be immediately and permanently deleted upon
            +     * calling this method. This action cannot be undone.
            +     * 
            + */ + public com.google.longrunning.Operation deleteCryptoKey( + com.google.cloud.kms.v1.DeleteCryptoKeyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteCryptoKeyMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Permanently deletes the given
            +     * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. Only possible if
            +     * the version has not been previously imported and if its
            +     * [state][google.cloud.kms.v1.CryptoKeyVersion.state] is one of
            +     * [DESTROYED][CryptoKeyVersionState.DESTROYED],
            +     * [IMPORT_FAILED][CryptoKeyVersionState.IMPORT_FAILED], or
            +     * [GENERATION_FAILED][CryptoKeyVersionState.GENERATION_FAILED].
            +     * Successfully imported
            +     * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] cannot be deleted
            +     * at this time. The specified version will be immediately and permanently
            +     * deleted upon calling this method. This action cannot be undone.
            +     * 
            + */ + public com.google.longrunning.Operation deleteCryptoKeyVersion( + com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteCryptoKeyVersionMethod(), getCallOptions(), request); + } + /** * * @@ -3129,6 +3551,21 @@ public com.google.cloud.kms.v1.ListImportJobsResponse listImportJobs( getChannel(), getListImportJobsMethod(), getCallOptions(), request); } + /** + * + * + *
            +     * Lists the [RetiredResources][google.cloud.kms.v1.RetiredResource] which are
            +     * the records of deleted [CryptoKeys][google.cloud.kms.v1.CryptoKey].
            +     * RetiredResources prevent the reuse of these resource names after deletion.
            +     * 
            + */ + public com.google.cloud.kms.v1.ListRetiredResourcesResponse listRetiredResources( + com.google.cloud.kms.v1.ListRetiredResourcesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRetiredResourcesMethod(), getCallOptions(), request); + } + /** * * @@ -3202,6 +3639,21 @@ public com.google.cloud.kms.v1.ImportJob getImportJob( getChannel(), getGetImportJobMethod(), getCallOptions(), request); } + /** + * + * + *
            +     * Retrieves a specific [RetiredResource][google.cloud.kms.v1.RetiredResource]
            +     * resource, which represents the record of a deleted
            +     * [CryptoKey][google.cloud.kms.v1.CryptoKey].
            +     * 
            + */ + public com.google.cloud.kms.v1.RetiredResource getRetiredResource( + com.google.cloud.kms.v1.GetRetiredResourceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRetiredResourceMethod(), getCallOptions(), request); + } + /** * * @@ -3250,6 +3702,47 @@ public com.google.cloud.kms.v1.CryptoKeyVersion createCryptoKeyVersion( getChannel(), getCreateCryptoKeyVersionMethod(), getCallOptions(), request); } + /** + * + * + *
            +     * Permanently deletes the given [CryptoKey][google.cloud.kms.v1.CryptoKey].
            +     * All child [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] must
            +     * have been previously deleted using
            +     * [KeyManagementService.DeleteCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.DeleteCryptoKeyVersion].
            +     * The specified crypto key will be immediately and permanently deleted upon
            +     * calling this method. This action cannot be undone.
            +     * 
            + */ + public com.google.longrunning.Operation deleteCryptoKey( + com.google.cloud.kms.v1.DeleteCryptoKeyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCryptoKeyMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Permanently deletes the given
            +     * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. Only possible if
            +     * the version has not been previously imported and if its
            +     * [state][google.cloud.kms.v1.CryptoKeyVersion.state] is one of
            +     * [DESTROYED][CryptoKeyVersionState.DESTROYED],
            +     * [IMPORT_FAILED][CryptoKeyVersionState.IMPORT_FAILED], or
            +     * [GENERATION_FAILED][CryptoKeyVersionState.GENERATION_FAILED].
            +     * Successfully imported
            +     * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] cannot be deleted
            +     * at this time. The specified version will be immediately and permanently
            +     * deleted upon calling this method. This action cannot be undone.
            +     * 
            + */ + public com.google.longrunning.Operation deleteCryptoKeyVersion( + com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCryptoKeyVersionMethod(), getCallOptions(), request); + } + /** * * @@ -3636,6 +4129,22 @@ protected KeyManagementServiceFutureStub build( getChannel().newCall(getListImportJobsMethod(), getCallOptions()), request); } + /** + * + * + *
            +     * Lists the [RetiredResources][google.cloud.kms.v1.RetiredResource] which are
            +     * the records of deleted [CryptoKeys][google.cloud.kms.v1.CryptoKey].
            +     * RetiredResources prevent the reuse of these resource names after deletion.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.kms.v1.ListRetiredResourcesResponse> + listRetiredResources(com.google.cloud.kms.v1.ListRetiredResourcesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRetiredResourcesMethod(), getCallOptions()), request); + } + /** * * @@ -3710,6 +4219,22 @@ protected KeyManagementServiceFutureStub build( getChannel().newCall(getGetImportJobMethod(), getCallOptions()), request); } + /** + * + * + *
            +     * Retrieves a specific [RetiredResource][google.cloud.kms.v1.RetiredResource]
            +     * resource, which represents the record of a deleted
            +     * [CryptoKey][google.cloud.kms.v1.CryptoKey].
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.kms.v1.RetiredResource> + getRetiredResource(com.google.cloud.kms.v1.GetRetiredResourceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRetiredResourceMethod(), getCallOptions()), request); + } + /** * * @@ -3759,6 +4284,47 @@ protected KeyManagementServiceFutureStub build( getChannel().newCall(getCreateCryptoKeyVersionMethod(), getCallOptions()), request); } + /** + * + * + *
            +     * Permanently deletes the given [CryptoKey][google.cloud.kms.v1.CryptoKey].
            +     * All child [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] must
            +     * have been previously deleted using
            +     * [KeyManagementService.DeleteCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.DeleteCryptoKeyVersion].
            +     * The specified crypto key will be immediately and permanently deleted upon
            +     * calling this method. This action cannot be undone.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + deleteCryptoKey(com.google.cloud.kms.v1.DeleteCryptoKeyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCryptoKeyMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Permanently deletes the given
            +     * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. Only possible if
            +     * the version has not been previously imported and if its
            +     * [state][google.cloud.kms.v1.CryptoKeyVersion.state] is one of
            +     * [DESTROYED][CryptoKeyVersionState.DESTROYED],
            +     * [IMPORT_FAILED][CryptoKeyVersionState.IMPORT_FAILED], or
            +     * [GENERATION_FAILED][CryptoKeyVersionState.GENERATION_FAILED].
            +     * Successfully imported
            +     * [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] cannot be deleted
            +     * at this time. The specified version will be immediately and permanently
            +     * deleted upon calling this method. This action cannot be undone.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + deleteCryptoKeyVersion(com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCryptoKeyVersionMethod(), getCallOptions()), request); + } + /** * * @@ -4081,31 +4647,35 @@ protected KeyManagementServiceFutureStub build( private static final int METHODID_LIST_CRYPTO_KEYS = 1; private static final int METHODID_LIST_CRYPTO_KEY_VERSIONS = 2; private static final int METHODID_LIST_IMPORT_JOBS = 3; - private static final int METHODID_GET_KEY_RING = 4; - private static final int METHODID_GET_CRYPTO_KEY = 5; - private static final int METHODID_GET_CRYPTO_KEY_VERSION = 6; - private static final int METHODID_GET_PUBLIC_KEY = 7; - private static final int METHODID_GET_IMPORT_JOB = 8; - private static final int METHODID_CREATE_KEY_RING = 9; - private static final int METHODID_CREATE_CRYPTO_KEY = 10; - private static final int METHODID_CREATE_CRYPTO_KEY_VERSION = 11; - private static final int METHODID_IMPORT_CRYPTO_KEY_VERSION = 12; - private static final int METHODID_CREATE_IMPORT_JOB = 13; - private static final int METHODID_UPDATE_CRYPTO_KEY = 14; - private static final int METHODID_UPDATE_CRYPTO_KEY_VERSION = 15; - private static final int METHODID_UPDATE_CRYPTO_KEY_PRIMARY_VERSION = 16; - private static final int METHODID_DESTROY_CRYPTO_KEY_VERSION = 17; - private static final int METHODID_RESTORE_CRYPTO_KEY_VERSION = 18; - private static final int METHODID_ENCRYPT = 19; - private static final int METHODID_DECRYPT = 20; - private static final int METHODID_RAW_ENCRYPT = 21; - private static final int METHODID_RAW_DECRYPT = 22; - private static final int METHODID_ASYMMETRIC_SIGN = 23; - private static final int METHODID_ASYMMETRIC_DECRYPT = 24; - private static final int METHODID_MAC_SIGN = 25; - private static final int METHODID_MAC_VERIFY = 26; - private static final int METHODID_DECAPSULATE = 27; - private static final int METHODID_GENERATE_RANDOM_BYTES = 28; + private static final int METHODID_LIST_RETIRED_RESOURCES = 4; + private static final int METHODID_GET_KEY_RING = 5; + private static final int METHODID_GET_CRYPTO_KEY = 6; + private static final int METHODID_GET_CRYPTO_KEY_VERSION = 7; + private static final int METHODID_GET_PUBLIC_KEY = 8; + private static final int METHODID_GET_IMPORT_JOB = 9; + private static final int METHODID_GET_RETIRED_RESOURCE = 10; + private static final int METHODID_CREATE_KEY_RING = 11; + private static final int METHODID_CREATE_CRYPTO_KEY = 12; + private static final int METHODID_CREATE_CRYPTO_KEY_VERSION = 13; + private static final int METHODID_DELETE_CRYPTO_KEY = 14; + private static final int METHODID_DELETE_CRYPTO_KEY_VERSION = 15; + private static final int METHODID_IMPORT_CRYPTO_KEY_VERSION = 16; + private static final int METHODID_CREATE_IMPORT_JOB = 17; + private static final int METHODID_UPDATE_CRYPTO_KEY = 18; + private static final int METHODID_UPDATE_CRYPTO_KEY_VERSION = 19; + private static final int METHODID_UPDATE_CRYPTO_KEY_PRIMARY_VERSION = 20; + private static final int METHODID_DESTROY_CRYPTO_KEY_VERSION = 21; + private static final int METHODID_RESTORE_CRYPTO_KEY_VERSION = 22; + private static final int METHODID_ENCRYPT = 23; + private static final int METHODID_DECRYPT = 24; + private static final int METHODID_RAW_ENCRYPT = 25; + private static final int METHODID_RAW_DECRYPT = 26; + private static final int METHODID_ASYMMETRIC_SIGN = 27; + private static final int METHODID_ASYMMETRIC_DECRYPT = 28; + private static final int METHODID_MAC_SIGN = 29; + private static final int METHODID_MAC_VERIFY = 30; + private static final int METHODID_DECAPSULATE = 31; + private static final int METHODID_GENERATE_RANDOM_BYTES = 32; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -4148,6 +4718,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_LIST_RETIRED_RESOURCES: + serviceImpl.listRetiredResources( + (com.google.cloud.kms.v1.ListRetiredResourcesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_GET_KEY_RING: serviceImpl.getKeyRing( (com.google.cloud.kms.v1.GetKeyRingRequest) request, @@ -4174,6 +4750,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.kms.v1.GetImportJobRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_RETIRED_RESOURCE: + serviceImpl.getRetiredResource( + (com.google.cloud.kms.v1.GetRetiredResourceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_CREATE_KEY_RING: serviceImpl.createKeyRing( (com.google.cloud.kms.v1.CreateKeyRingRequest) request, @@ -4190,6 +4772,16 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_DELETE_CRYPTO_KEY: + serviceImpl.deleteCryptoKey( + (com.google.cloud.kms.v1.DeleteCryptoKeyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CRYPTO_KEY_VERSION: + serviceImpl.deleteCryptoKeyVersion( + (com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_IMPORT_CRYPTO_KEY_VERSION: serviceImpl.importCryptoKeyVersion( (com.google.cloud.kms.v1.ImportCryptoKeyVersionRequest) request, @@ -4335,6 +4927,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.kms.v1.ListImportJobsRequest, com.google.cloud.kms.v1.ListImportJobsResponse>( service, METHODID_LIST_IMPORT_JOBS))) + .addMethod( + getListRetiredResourcesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.v1.ListRetiredResourcesRequest, + com.google.cloud.kms.v1.ListRetiredResourcesResponse>( + service, METHODID_LIST_RETIRED_RESOURCES))) .addMethod( getGetKeyRingMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -4366,6 +4965,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.kms.v1.GetImportJobRequest, com.google.cloud.kms.v1.ImportJob>( service, METHODID_GET_IMPORT_JOB))) + .addMethod( + getGetRetiredResourceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.v1.GetRetiredResourceRequest, + com.google.cloud.kms.v1.RetiredResource>( + service, METHODID_GET_RETIRED_RESOURCE))) .addMethod( getCreateKeyRingMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -4385,6 +4991,18 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest, com.google.cloud.kms.v1.CryptoKeyVersion>( service, METHODID_CREATE_CRYPTO_KEY_VERSION))) + .addMethod( + getDeleteCryptoKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.v1.DeleteCryptoKeyRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_CRYPTO_KEY))) + .addMethod( + getDeleteCryptoKeyVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_CRYPTO_KEY_VERSION))) .addMethod( getImportCryptoKeyVersionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -4550,14 +5168,18 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListCryptoKeysMethod()) .addMethod(getListCryptoKeyVersionsMethod()) .addMethod(getListImportJobsMethod()) + .addMethod(getListRetiredResourcesMethod()) .addMethod(getGetKeyRingMethod()) .addMethod(getGetCryptoKeyMethod()) .addMethod(getGetCryptoKeyVersionMethod()) .addMethod(getGetPublicKeyMethod()) .addMethod(getGetImportJobMethod()) + .addMethod(getGetRetiredResourceMethod()) .addMethod(getCreateKeyRingMethod()) .addMethod(getCreateCryptoKeyMethod()) .addMethod(getCreateCryptoKeyVersionMethod()) + .addMethod(getDeleteCryptoKeyMethod()) + .addMethod(getDeleteCryptoKeyVersionMethod()) .addMethod(getImportCryptoKeyVersionMethod()) .addMethod(getCreateImportJobMethod()) .addMethod(getUpdateCryptoKeyMethod()) diff --git a/java-kms/pom.xml b/java-kms/pom.xml index b0a9add660d2..3642dd6c1bf5 100644 --- a/java-kms/pom.xml +++ b/java-kms/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-kms-parent pom - 2.87.0-SNAPSHOT + 2.88.0 Google Cloud KMS Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,22 +29,22 @@ com.google.api.grpc proto-google-cloud-kms-v1 - 0.178.0-SNAPSHOT + 0.179.0 com.google.api.grpc grpc-google-cloud-kms-v1 - 0.178.0-SNAPSHOT + 0.179.0 com.google.cloud google-cloud-kms - 2.87.0-SNAPSHOT + 2.88.0 com.google.cloud google-cloud-kms-bom - 2.87.0-SNAPSHOT + 2.88.0
            diff --git a/java-kms/proto-google-cloud-kms-v1/pom.xml b/java-kms/proto-google-cloud-kms-v1/pom.xml index ee0d566b5b09..8944bbd2b479 100644 --- a/java-kms/proto-google-cloud-kms-v1/pom.xml +++ b/java-kms/proto-google-cloud-kms-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-kms-v1 - 0.178.0-SNAPSHOT + 0.179.0 proto-google-cloud-kms-v1 PROTO library for proto-google-cloud-kms-v1 com.google.cloud google-cloud-kms-parent - 2.87.0-SNAPSHOT + 2.88.0 diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DeleteCryptoKeyMetadata.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DeleteCryptoKeyMetadata.java new file mode 100644 index 000000000000..544ae8f0a87f --- /dev/null +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DeleteCryptoKeyMetadata.java @@ -0,0 +1,635 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/kms/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.kms.v1; + +/** + * + * + *
            + * Represents the metadata of the
            + * [KeyManagementService.DeleteCryptoKey][google.cloud.kms.v1.KeyManagementService.DeleteCryptoKey]
            + * long-running operation.
            + * 
            + * + * Protobuf type {@code google.cloud.kms.v1.DeleteCryptoKeyMetadata} + */ +@com.google.protobuf.Generated +public final class DeleteCryptoKeyMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.DeleteCryptoKeyMetadata) + DeleteCryptoKeyMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteCryptoKeyMetadata"); + } + + // Use DeleteCryptoKeyMetadata.newBuilder() to construct. + private DeleteCryptoKeyMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteCryptoKeyMetadata() { + retiredResource_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_DeleteCryptoKeyMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_DeleteCryptoKeyMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.DeleteCryptoKeyMetadata.class, + com.google.cloud.kms.v1.DeleteCryptoKeyMetadata.Builder.class); + } + + public static final int RETIRED_RESOURCE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object retiredResource_ = ""; + + /** + * + * + *
            +   * Output only. The resource name of the
            +   * [RetiredResource][google.cloud.kms.v1.RetiredResource] created as a result
            +   * of this operation, in the format
            +   * `projects/*/locations/*/retiredResources/*`.
            +   * 
            + * + * + * string retired_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The retiredResource. + */ + @java.lang.Override + public java.lang.String getRetiredResource() { + java.lang.Object ref = retiredResource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + retiredResource_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. The resource name of the
            +   * [RetiredResource][google.cloud.kms.v1.RetiredResource] created as a result
            +   * of this operation, in the format
            +   * `projects/*/locations/*/retiredResources/*`.
            +   * 
            + * + * + * string retired_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for retiredResource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRetiredResourceBytes() { + java.lang.Object ref = retiredResource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + retiredResource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(retiredResource_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, retiredResource_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(retiredResource_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, retiredResource_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.kms.v1.DeleteCryptoKeyMetadata)) { + return super.equals(obj); + } + com.google.cloud.kms.v1.DeleteCryptoKeyMetadata other = + (com.google.cloud.kms.v1.DeleteCryptoKeyMetadata) obj; + + if (!getRetiredResource().equals(other.getRetiredResource())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RETIRED_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getRetiredResource().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyMetadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.kms.v1.DeleteCryptoKeyMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Represents the metadata of the
            +   * [KeyManagementService.DeleteCryptoKey][google.cloud.kms.v1.KeyManagementService.DeleteCryptoKey]
            +   * long-running operation.
            +   * 
            + * + * Protobuf type {@code google.cloud.kms.v1.DeleteCryptoKeyMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.kms.v1.DeleteCryptoKeyMetadata) + com.google.cloud.kms.v1.DeleteCryptoKeyMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_DeleteCryptoKeyMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_DeleteCryptoKeyMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.DeleteCryptoKeyMetadata.class, + com.google.cloud.kms.v1.DeleteCryptoKeyMetadata.Builder.class); + } + + // Construct using com.google.cloud.kms.v1.DeleteCryptoKeyMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + retiredResource_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_DeleteCryptoKeyMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.kms.v1.DeleteCryptoKeyMetadata getDefaultInstanceForType() { + return com.google.cloud.kms.v1.DeleteCryptoKeyMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.kms.v1.DeleteCryptoKeyMetadata build() { + com.google.cloud.kms.v1.DeleteCryptoKeyMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.kms.v1.DeleteCryptoKeyMetadata buildPartial() { + com.google.cloud.kms.v1.DeleteCryptoKeyMetadata result = + new com.google.cloud.kms.v1.DeleteCryptoKeyMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.kms.v1.DeleteCryptoKeyMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.retiredResource_ = retiredResource_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.kms.v1.DeleteCryptoKeyMetadata) { + return mergeFrom((com.google.cloud.kms.v1.DeleteCryptoKeyMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.kms.v1.DeleteCryptoKeyMetadata other) { + if (other == com.google.cloud.kms.v1.DeleteCryptoKeyMetadata.getDefaultInstance()) + return this; + if (!other.getRetiredResource().isEmpty()) { + retiredResource_ = other.retiredResource_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + retiredResource_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object retiredResource_ = ""; + + /** + * + * + *
            +     * Output only. The resource name of the
            +     * [RetiredResource][google.cloud.kms.v1.RetiredResource] created as a result
            +     * of this operation, in the format
            +     * `projects/*/locations/*/retiredResources/*`.
            +     * 
            + * + * + * string retired_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The retiredResource. + */ + public java.lang.String getRetiredResource() { + java.lang.Object ref = retiredResource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + retiredResource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. The resource name of the
            +     * [RetiredResource][google.cloud.kms.v1.RetiredResource] created as a result
            +     * of this operation, in the format
            +     * `projects/*/locations/*/retiredResources/*`.
            +     * 
            + * + * + * string retired_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for retiredResource. + */ + public com.google.protobuf.ByteString getRetiredResourceBytes() { + java.lang.Object ref = retiredResource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + retiredResource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. The resource name of the
            +     * [RetiredResource][google.cloud.kms.v1.RetiredResource] created as a result
            +     * of this operation, in the format
            +     * `projects/*/locations/*/retiredResources/*`.
            +     * 
            + * + * + * string retired_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The retiredResource to set. + * @return This builder for chaining. + */ + public Builder setRetiredResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + retiredResource_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The resource name of the
            +     * [RetiredResource][google.cloud.kms.v1.RetiredResource] created as a result
            +     * of this operation, in the format
            +     * `projects/*/locations/*/retiredResources/*`.
            +     * 
            + * + * + * string retired_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRetiredResource() { + retiredResource_ = getDefaultInstance().getRetiredResource(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The resource name of the
            +     * [RetiredResource][google.cloud.kms.v1.RetiredResource] created as a result
            +     * of this operation, in the format
            +     * `projects/*/locations/*/retiredResources/*`.
            +     * 
            + * + * + * string retired_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for retiredResource to set. + * @return This builder for chaining. + */ + public Builder setRetiredResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + retiredResource_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.DeleteCryptoKeyMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.DeleteCryptoKeyMetadata) + private static final com.google.cloud.kms.v1.DeleteCryptoKeyMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.kms.v1.DeleteCryptoKeyMetadata(); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCryptoKeyMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.kms.v1.DeleteCryptoKeyMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DeleteCryptoKeyMetadataOrBuilder.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DeleteCryptoKeyMetadataOrBuilder.java new file mode 100644 index 000000000000..d40953f54b74 --- /dev/null +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DeleteCryptoKeyMetadataOrBuilder.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/kms/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.kms.v1; + +@com.google.protobuf.Generated +public interface DeleteCryptoKeyMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.DeleteCryptoKeyMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Output only. The resource name of the
            +   * [RetiredResource][google.cloud.kms.v1.RetiredResource] created as a result
            +   * of this operation, in the format
            +   * `projects/*/locations/*/retiredResources/*`.
            +   * 
            + * + * + * string retired_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The retiredResource. + */ + java.lang.String getRetiredResource(); + + /** + * + * + *
            +   * Output only. The resource name of the
            +   * [RetiredResource][google.cloud.kms.v1.RetiredResource] created as a result
            +   * of this operation, in the format
            +   * `projects/*/locations/*/retiredResources/*`.
            +   * 
            + * + * + * string retired_resource = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for retiredResource. + */ + com.google.protobuf.ByteString getRetiredResourceBytes(); +} diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DeleteCryptoKeyRequest.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DeleteCryptoKeyRequest.java new file mode 100644 index 000000000000..9d2861e0b576 --- /dev/null +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DeleteCryptoKeyRequest.java @@ -0,0 +1,618 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/kms/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.kms.v1; + +/** + * + * + *
            + * Request message for
            + * [KeyManagementService.DeleteCryptoKey][google.cloud.kms.v1.KeyManagementService.DeleteCryptoKey].
            + * 
            + * + * Protobuf type {@code google.cloud.kms.v1.DeleteCryptoKeyRequest} + */ +@com.google.protobuf.Generated +public final class DeleteCryptoKeyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.DeleteCryptoKeyRequest) + DeleteCryptoKeyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteCryptoKeyRequest"); + } + + // Use DeleteCryptoKeyRequest.newBuilder() to construct. + private DeleteCryptoKeyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteCryptoKeyRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_DeleteCryptoKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_DeleteCryptoKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.DeleteCryptoKeyRequest.class, + com.google.cloud.kms.v1.DeleteCryptoKeyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the
            +   * [CryptoKey][google.cloud.kms.v1.CryptoKey] to delete.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the
            +   * [CryptoKey][google.cloud.kms.v1.CryptoKey] to delete.
            +   * 
            + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.kms.v1.DeleteCryptoKeyRequest)) { + return super.equals(obj); + } + com.google.cloud.kms.v1.DeleteCryptoKeyRequest other = + (com.google.cloud.kms.v1.DeleteCryptoKeyRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.kms.v1.DeleteCryptoKeyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for
            +   * [KeyManagementService.DeleteCryptoKey][google.cloud.kms.v1.KeyManagementService.DeleteCryptoKey].
            +   * 
            + * + * Protobuf type {@code google.cloud.kms.v1.DeleteCryptoKeyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.kms.v1.DeleteCryptoKeyRequest) + com.google.cloud.kms.v1.DeleteCryptoKeyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_DeleteCryptoKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_DeleteCryptoKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.DeleteCryptoKeyRequest.class, + com.google.cloud.kms.v1.DeleteCryptoKeyRequest.Builder.class); + } + + // Construct using com.google.cloud.kms.v1.DeleteCryptoKeyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_DeleteCryptoKeyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.kms.v1.DeleteCryptoKeyRequest getDefaultInstanceForType() { + return com.google.cloud.kms.v1.DeleteCryptoKeyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.kms.v1.DeleteCryptoKeyRequest build() { + com.google.cloud.kms.v1.DeleteCryptoKeyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.kms.v1.DeleteCryptoKeyRequest buildPartial() { + com.google.cloud.kms.v1.DeleteCryptoKeyRequest result = + new com.google.cloud.kms.v1.DeleteCryptoKeyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.kms.v1.DeleteCryptoKeyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.kms.v1.DeleteCryptoKeyRequest) { + return mergeFrom((com.google.cloud.kms.v1.DeleteCryptoKeyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.kms.v1.DeleteCryptoKeyRequest other) { + if (other == com.google.cloud.kms.v1.DeleteCryptoKeyRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the
            +     * [CryptoKey][google.cloud.kms.v1.CryptoKey] to delete.
            +     * 
            + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the
            +     * [CryptoKey][google.cloud.kms.v1.CryptoKey] to delete.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the
            +     * [CryptoKey][google.cloud.kms.v1.CryptoKey] to delete.
            +     * 
            + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the
            +     * [CryptoKey][google.cloud.kms.v1.CryptoKey] to delete.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the
            +     * [CryptoKey][google.cloud.kms.v1.CryptoKey] to delete.
            +     * 
            + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.DeleteCryptoKeyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.DeleteCryptoKeyRequest) + private static final com.google.cloud.kms.v1.DeleteCryptoKeyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.kms.v1.DeleteCryptoKeyRequest(); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCryptoKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.kms.v1.DeleteCryptoKeyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DeleteCryptoKeyRequestOrBuilder.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DeleteCryptoKeyRequestOrBuilder.java new file mode 100644 index 000000000000..c345f470f6d2 --- /dev/null +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DeleteCryptoKeyRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/kms/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.kms.v1; + +@com.google.protobuf.Generated +public interface DeleteCryptoKeyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.DeleteCryptoKeyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the
            +   * [CryptoKey][google.cloud.kms.v1.CryptoKey] to delete.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the
            +   * [CryptoKey][google.cloud.kms.v1.CryptoKey] 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/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DeleteCryptoKeyVersionMetadata.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DeleteCryptoKeyVersionMetadata.java new file mode 100644 index 000000000000..0580db9de4d0 --- /dev/null +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DeleteCryptoKeyVersionMetadata.java @@ -0,0 +1,401 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/kms/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.kms.v1; + +/** + * + * + *
            + * Represents the metadata of the
            + * [KeyManagementService.DeleteCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.DeleteCryptoKeyVersion]
            + * long-running operation.
            + * 
            + * + * Protobuf type {@code google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata} + */ +@com.google.protobuf.Generated +public final class DeleteCryptoKeyVersionMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata) + DeleteCryptoKeyVersionMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteCryptoKeyVersionMetadata"); + } + + // Use DeleteCryptoKeyVersionMetadata.newBuilder() to construct. + private DeleteCryptoKeyVersionMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteCryptoKeyVersionMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_DeleteCryptoKeyVersionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_DeleteCryptoKeyVersionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata.class, + com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata)) { + return super.equals(obj); + } + com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata other = + (com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Represents the metadata of the
            +   * [KeyManagementService.DeleteCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.DeleteCryptoKeyVersion]
            +   * long-running operation.
            +   * 
            + * + * Protobuf type {@code google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata) + com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_DeleteCryptoKeyVersionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_DeleteCryptoKeyVersionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata.class, + com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata.Builder.class); + } + + // Construct using com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_DeleteCryptoKeyVersionMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata getDefaultInstanceForType() { + return com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata build() { + com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata buildPartial() { + com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata result = + new com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata) { + return mergeFrom((com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata other) { + if (other == com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata) + private static final com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata(); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCryptoKeyVersionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DeleteCryptoKeyVersionMetadataOrBuilder.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DeleteCryptoKeyVersionMetadataOrBuilder.java new file mode 100644 index 000000000000..98f41c1a03d8 --- /dev/null +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DeleteCryptoKeyVersionMetadataOrBuilder.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/kms/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.kms.v1; + +@com.google.protobuf.Generated +public interface DeleteCryptoKeyVersionMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DeleteCryptoKeyVersionRequest.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DeleteCryptoKeyVersionRequest.java new file mode 100644 index 000000000000..7bb3823c3166 --- /dev/null +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DeleteCryptoKeyVersionRequest.java @@ -0,0 +1,620 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/kms/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.kms.v1; + +/** + * + * + *
            + * Request message for
            + * [KeyManagementService.DeleteCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.DeleteCryptoKeyVersion].
            + * 
            + * + * Protobuf type {@code google.cloud.kms.v1.DeleteCryptoKeyVersionRequest} + */ +@com.google.protobuf.Generated +public final class DeleteCryptoKeyVersionRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.DeleteCryptoKeyVersionRequest) + DeleteCryptoKeyVersionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteCryptoKeyVersionRequest"); + } + + // Use DeleteCryptoKeyVersionRequest.newBuilder() to construct. + private DeleteCryptoKeyVersionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteCryptoKeyVersionRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_DeleteCryptoKeyVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_DeleteCryptoKeyVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest.class, + com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
            +   * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to delete.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
            +   * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to delete.
            +   * 
            + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest)) { + return super.equals(obj); + } + com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest other = + (com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for
            +   * [KeyManagementService.DeleteCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.DeleteCryptoKeyVersion].
            +   * 
            + * + * Protobuf type {@code google.cloud.kms.v1.DeleteCryptoKeyVersionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.kms.v1.DeleteCryptoKeyVersionRequest) + com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_DeleteCryptoKeyVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_DeleteCryptoKeyVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest.class, + com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest.Builder.class); + } + + // Construct using com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_DeleteCryptoKeyVersionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest getDefaultInstanceForType() { + return com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest build() { + com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest buildPartial() { + com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest result = + new com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest) { + return mergeFrom((com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest other) { + if (other == com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
            +     * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to delete.
            +     * 
            + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
            +     * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to delete.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
            +     * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to delete.
            +     * 
            + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
            +     * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to delete.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
            +     * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to delete.
            +     * 
            + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.DeleteCryptoKeyVersionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.DeleteCryptoKeyVersionRequest) + private static final com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest(); + } + + public static com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCryptoKeyVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DeleteCryptoKeyVersionRequestOrBuilder.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DeleteCryptoKeyVersionRequestOrBuilder.java new file mode 100644 index 000000000000..7ef57542b6f9 --- /dev/null +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DeleteCryptoKeyVersionRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/kms/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.kms.v1; + +@com.google.protobuf.Generated +public interface DeleteCryptoKeyVersionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.DeleteCryptoKeyVersionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
            +   * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to delete.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the
            +   * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] 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/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetRetiredResourceRequest.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetRetiredResourceRequest.java new file mode 100644 index 000000000000..a16f4399d47f --- /dev/null +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetRetiredResourceRequest.java @@ -0,0 +1,619 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/kms/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.kms.v1; + +/** + * + * + *
            + * Request message for
            + * [KeyManagementService.GetRetiredResource][google.cloud.kms.v1.KeyManagementService.GetRetiredResource].
            + * 
            + * + * Protobuf type {@code google.cloud.kms.v1.GetRetiredResourceRequest} + */ +@com.google.protobuf.Generated +public final class GetRetiredResourceRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.GetRetiredResourceRequest) + GetRetiredResourceRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetRetiredResourceRequest"); + } + + // Use GetRetiredResourceRequest.newBuilder() to construct. + private GetRetiredResourceRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetRetiredResourceRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_GetRetiredResourceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_GetRetiredResourceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.GetRetiredResourceRequest.class, + com.google.cloud.kms.v1.GetRetiredResourceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The [name][google.cloud.kms.v1.RetiredResource.name] of the
            +   * [RetiredResource][google.cloud.kms.v1.RetiredResource] to get.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The [name][google.cloud.kms.v1.RetiredResource.name] of the
            +   * [RetiredResource][google.cloud.kms.v1.RetiredResource] to get.
            +   * 
            + * + * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.kms.v1.GetRetiredResourceRequest)) { + return super.equals(obj); + } + com.google.cloud.kms.v1.GetRetiredResourceRequest other = + (com.google.cloud.kms.v1.GetRetiredResourceRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.kms.v1.GetRetiredResourceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.kms.v1.GetRetiredResourceRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.kms.v1.GetRetiredResourceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.kms.v1.GetRetiredResourceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.kms.v1.GetRetiredResourceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.kms.v1.GetRetiredResourceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.kms.v1.GetRetiredResourceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.kms.v1.GetRetiredResourceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.kms.v1.GetRetiredResourceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.kms.v1.GetRetiredResourceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.kms.v1.GetRetiredResourceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.kms.v1.GetRetiredResourceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.kms.v1.GetRetiredResourceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for
            +   * [KeyManagementService.GetRetiredResource][google.cloud.kms.v1.KeyManagementService.GetRetiredResource].
            +   * 
            + * + * Protobuf type {@code google.cloud.kms.v1.GetRetiredResourceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.kms.v1.GetRetiredResourceRequest) + com.google.cloud.kms.v1.GetRetiredResourceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_GetRetiredResourceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_GetRetiredResourceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.GetRetiredResourceRequest.class, + com.google.cloud.kms.v1.GetRetiredResourceRequest.Builder.class); + } + + // Construct using com.google.cloud.kms.v1.GetRetiredResourceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_GetRetiredResourceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.kms.v1.GetRetiredResourceRequest getDefaultInstanceForType() { + return com.google.cloud.kms.v1.GetRetiredResourceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.kms.v1.GetRetiredResourceRequest build() { + com.google.cloud.kms.v1.GetRetiredResourceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.kms.v1.GetRetiredResourceRequest buildPartial() { + com.google.cloud.kms.v1.GetRetiredResourceRequest result = + new com.google.cloud.kms.v1.GetRetiredResourceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.kms.v1.GetRetiredResourceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.kms.v1.GetRetiredResourceRequest) { + return mergeFrom((com.google.cloud.kms.v1.GetRetiredResourceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.kms.v1.GetRetiredResourceRequest other) { + if (other == com.google.cloud.kms.v1.GetRetiredResourceRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. The [name][google.cloud.kms.v1.RetiredResource.name] of the
            +     * [RetiredResource][google.cloud.kms.v1.RetiredResource] to get.
            +     * 
            + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The [name][google.cloud.kms.v1.RetiredResource.name] of the
            +     * [RetiredResource][google.cloud.kms.v1.RetiredResource] to get.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The [name][google.cloud.kms.v1.RetiredResource.name] of the
            +     * [RetiredResource][google.cloud.kms.v1.RetiredResource] to get.
            +     * 
            + * + * + * 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(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The [name][google.cloud.kms.v1.RetiredResource.name] of the
            +     * [RetiredResource][google.cloud.kms.v1.RetiredResource] to get.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The [name][google.cloud.kms.v1.RetiredResource.name] of the
            +     * [RetiredResource][google.cloud.kms.v1.RetiredResource] to get.
            +     * 
            + * + * + * 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(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.GetRetiredResourceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.GetRetiredResourceRequest) + private static final com.google.cloud.kms.v1.GetRetiredResourceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.kms.v1.GetRetiredResourceRequest(); + } + + public static com.google.cloud.kms.v1.GetRetiredResourceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRetiredResourceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.kms.v1.GetRetiredResourceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetRetiredResourceRequestOrBuilder.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetRetiredResourceRequestOrBuilder.java new file mode 100644 index 000000000000..f3cad1fa554f --- /dev/null +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetRetiredResourceRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/kms/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.kms.v1; + +@com.google.protobuf.Generated +public interface GetRetiredResourceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.GetRetiredResourceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The [name][google.cloud.kms.v1.RetiredResource.name] of the
            +   * [RetiredResource][google.cloud.kms.v1.RetiredResource] to get.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The [name][google.cloud.kms.v1.RetiredResource.name] of the
            +   * [RetiredResource][google.cloud.kms.v1.RetiredResource] to get.
            +   * 
            + * + * + * 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-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsProto.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsProto.java index 3e44876ded8e..3beacfd90fa1 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsProto.java +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsProto.java @@ -56,6 +56,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_kms_v1_ListImportJobsRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_kms_v1_ListImportJobsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_ListRetiredResourcesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_kms_v1_ListRetiredResourcesRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_kms_v1_ListKeyRingsResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -72,6 +76,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_kms_v1_ListImportJobsResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_kms_v1_ListImportJobsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_ListRetiredResourcesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_kms_v1_ListRetiredResourcesResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_kms_v1_GetKeyRingRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -92,6 +100,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_kms_v1_GetImportJobRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_kms_v1_GetImportJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_GetRetiredResourceRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_kms_v1_GetRetiredResourceRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_kms_v1_CreateKeyRingRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -104,6 +116,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_kms_v1_CreateCryptoKeyVersionRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_kms_v1_CreateCryptoKeyVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_DeleteCryptoKeyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_kms_v1_DeleteCryptoKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_DeleteCryptoKeyVersionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_kms_v1_DeleteCryptoKeyVersionRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_kms_v1_ImportCryptoKeyVersionRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -220,6 +240,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_kms_v1_LocationMetadata_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_kms_v1_LocationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_DeleteCryptoKeyMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_kms_v1_DeleteCryptoKeyMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_DeleteCryptoKeyVersionMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_kms_v1_DeleteCryptoKeyVersionMetadata_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -234,7 +262,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gle.cloud.kms.v1\032\034google/api/annotations" + ".proto\032\027google/api/client.proto\032\037google/" + "api/field_behavior.proto\032\031google/api/res" - + "ource.proto\032#google/cloud/kms/v1/resources.proto\032" + + "ource.proto\032#google/cloud/kms/v1/resourc" + + "es.proto\032#google/longrunning/operations.proto\032\033google/protobuf/empty.proto\032" + " google/protobuf/field_mask.proto\032\036google/protobuf/wrappers.proto\"\255\001\n" + "\023ListKeyRingsRequest\0229\n" + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" @@ -246,11 +275,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025ListCryptoKeysRequest\0227\n" + "\006parent\030\001 \001(\tB\'\340A\002\372A!\n" + "\037cloudkms.googleapis.com/KeyRing\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" - + "\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022P\n" - + "\014version_view\030\004" - + " \001(\0162:.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView\022\023\n" + + "\014version_view\030\004 \001(\0162:.google." + + "cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView\022\023\n" + "\006filter\030\005 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\006 \001(\tB\003\340A\001\"\200\002\n" + "\034ListCryptoKeyVersionsRequest\0229\n" @@ -258,8 +286,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!cloudkms.googleapis.com/CryptoKey\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022H\n" - + "\004view\030\004 \001(\0162:.google.cloud.k" - + "ms.v1.CryptoKeyVersion.CryptoKeyVersionView\022\023\n" + + "\004view\030\004" + + " \001(\0162:.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView\022\023\n" + "\006filter\030\005 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\006 \001(\tB\003\340A\001\"\255\001\n" + "\025ListImportJobsRequest\0227\n" @@ -268,7 +296,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" - + "\010order_by\030\005 \001(\tB\003\340A\001\"t\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"\217\001\n" + + "\033ListRetiredResourcesRequest\022?\n" + + "\006parent\030\001 \001(" + + "\tB/\340A\002\372A)\022\'cloudkms.googleapis.com/RetiredResource\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"t\n" + "\024ListKeyRingsResponse\022/\n" + "\tkey_rings\030\001 \003(\0132\034.google.cloud.kms.v1.KeyRing\022\027\n" + "\017next_page_token\030\002 \001(\t\022\022\n\n" @@ -285,7 +318,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026ListImportJobsResponse\0223\n" + "\013import_jobs\030\001 \003(\0132\036.google.cloud.kms.v1.ImportJob\022\027\n" + "\017next_page_token\030\002 \001(\t\022\022\n\n" - + "total_size\030\003 \001(\005\"J\n" + + "total_size\030\003 \001(\005\"\214\001\n" + + "\034ListRetiredResourcesResponse\022?\n" + + "\021retired_resources\030\001" + + " \003(\0132$.google.cloud.kms.v1.RetiredResource\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\022\n\n" + + "total_size\030\003 \001(\003\"J\n" + "\021GetKeyRingRequest\0225\n" + "\004name\030\001 \001(\tB\'\340A\002\372A!\n" + "\037cloudkms.googleapis.com/KeyRing\"N\n" @@ -302,13 +340,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0162..google.cloud.kms.v1.PublicKey.PublicKeyFormatB\003\340A\001\"N\n" + "\023GetImportJobRequest\0227\n" + "\004name\030\001 \001(\tB)\340A\002\372A#\n" - + "!cloudkms.googleapis.com/ImportJob\"\240\001\n" + + "!cloudkms.googleapis.com/ImportJob\"Z\n" + + "\031GetRetiredResourceRequest\022=\n" + + "\004name\030\001 \001(\tB/\340A\002\372A)\n" + + "\'cloudkms.googleapis.com/RetiredResource\"\240\001\n" + "\024CreateKeyRingRequest\0229\n" + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022\030\n" + "\013key_ring_id\030\002 \001(\tB\003\340A\002\0223\n" - + "\010key_ring\030\003 \001" - + "(\0132\034.google.cloud.kms.v1.KeyRingB\003\340A\002\"\315\001\n" + + "\010key_ring\030\003" + + " \001(\0132\034.google.cloud.kms.v1.KeyRingB\003\340A\002\"\315\001\n" + "\026CreateCryptoKeyRequest\0227\n" + "\006parent\030\001 \001(\tB\'\340A\002\372A!\n" + "\037cloudkms.googleapis.com/KeyRing\022\032\n\r" @@ -319,14 +360,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!cloudkms.googleapis.com/CryptoKey\022F\n" + "\022crypto_key_version\030\002" - + " \001(\0132%.google.cloud.kms.v1.CryptoKeyVersionB\003\340A\002\"\360\002\n" + + " \001(\0132%.google.cloud.kms.v1.CryptoKeyVersionB\003\340A\002\"Q\n" + + "\026DeleteCryptoKeyRequest\0227\n" + + "\004name\030\001 \001(\tB)\340A\002\372A#\n" + + "!cloudkms.googleapis.com/CryptoKey\"_\n" + + "\035DeleteCryptoKeyVersionRequest\022>\n" + + "\004name\030\001 \001(\tB0\340A\002\372A*\n" + + "(cloudkms.googleapis.com/CryptoKeyVersion\"\360\002\n" + "\035ImportCryptoKeyVersionRequest\0229\n" + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!cloudkms.googleapis.com/CryptoKey\022L\n" + "\022crypto_key_version\030\006 \001(\tB0\340A\001\372A*\n" + "(cloudkms.googleapis.com/CryptoKeyVersion\022W\n" - + "\talgorithm\030\002 \001(\016" - + "2?.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithmB\003\340A\002\022\027\n\n" + + "\talgorithm\030\002 \001(\0162?.google.clo" + + "ud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithmB\003\340A\002\022\027\n\n" + "import_job\030\004 \001(\tB\003\340A\002\022\030\n" + "\013wrapped_key\030\010 \001(\014B\003\340A\001\022\"\n" + "\023rsa_aes_wrapped_key\030\005 \001(\014B\003\340A\001H\000B\026\n" @@ -435,8 +482,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032GenerateRandomBytesRequest\022\020\n" + "\010location\030\001 \001(\t\022\024\n" + "\014length_bytes\030\002 \001(\005\022>\n" - + "\020protection_level\030\003 \001(\016" - + "2$.google.cloud.kms.v1.ProtectionLevel\"\205\002\n" + + "\020protection_level\030\003" + + " \001(\0162$.google.cloud.kms.v1.ProtectionLevel\"\205\002\n" + "\017EncryptResponse\022\014\n" + "\004name\030\001 \001(\t\022\022\n\n" + "ciphertext\030\002 \001(\014\0226\n" @@ -477,8 +524,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026verified_digest_crc32c\030\003 \001(\010\022\014\n" + "\004name\030\004 \001(\t\022\034\n" + "\024verified_data_crc32c\030\005 \001(\010\022>\n" - + "\020protection_level\030\006" - + " \001(\0162$.google.cloud.kms.v1.ProtectionLevel\"\311\001\n" + + "\020protection_level\030\006 " + + "\001(\0162$.google.cloud.kms.v1.ProtectionLevel\"\311\001\n" + "\031AsymmetricDecryptResponse\022\021\n" + "\tplaintext\030\001 \001(\014\0225\n" + "\020plaintext_crc32c\030\002 \001(\0132\033.google.protobuf.Int64Value\022\"\n" @@ -518,23 +565,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020LocationMetadata\022\025\n\r" + "hsm_available\030\001 \001(\010\022\025\n\r" + "ekm_available\030\002 \001(\010\022#\n" - + "\033hsm_single_tenant_available\030\003 \001(\0102\331/\n" + + "\033hsm_single_tenant_available\030\003 \001(\010\"d\n" + + "\027DeleteCryptoKeyMetadata\022I\n" + + "\020retired_resource\030\001 \001(\tB/\340A\003\372A)\n" + + "\'cloudkms.googleapis.com/RetiredResource\" \n" + + "\036DeleteCryptoKeyVersionMetadata2\2646\n" + "\024KeyManagementService\022\242\001\n" - + "\014ListKeyRings\022(.google.cloud.kms.v1.ListKeyRingsRequest\032)." - + "google.cloud.kms.v1.ListKeyRingsResponse" - + "\"=\332A\006parent\202\323\344\223\002.\022,/v1/{parent=projects/*/locations/*}/keyRings\022\265\001\n" - + "\016ListCryptoKeys\022*.google.cloud.kms.v1.ListCryptoKeysR" - + "equest\032+.google.cloud.kms.v1.ListCryptoK" - + "eysResponse\"J\332A\006parent\202\323\344\223\002;\0229/v1/{paren" - + "t=projects/*/locations/*/keyRings/*}/cryptoKeys\022\336\001\n" - + "\025ListCryptoKeyVersions\0221.google.cloud.kms.v1.ListCryptoKeyVersionsReq" - + "uest\0322.google.cloud.kms.v1.ListCryptoKey" - + "VersionsResponse\"^\332A\006parent\202\323\344\223\002O\022M/v1/{" - + "parent=projects/*/locations/*/keyRings/*/cryptoKeys/*}/cryptoKeyVersions\022\265\001\n" - + "\016ListImportJobs\022*.google.cloud.kms.v1.ListIm" - + "portJobsRequest\032+.google.cloud.kms.v1.Li" - + "stImportJobsResponse\"J\332A\006parent\202\323\344\223\002;\0229/" - + "v1/{parent=projects/*/locations/*/keyRings/*}/importJobs\022\217\001\n\n" + + "\014ListKeyRings\022(.google.cloud.kms.v1.ListKeyRingsRequest" + + "\032).google.cloud.kms.v1.ListKeyRingsRespo" + + "nse\"=\332A\006parent\202\323\344\223\002.\022,/v1/{parent=projects/*/locations/*}/keyRings\022\265\001\n" + + "\016ListCryptoKeys\022*.google.cloud.kms.v1.ListCryptoKe" + + "ysRequest\032+.google.cloud.kms.v1.ListCryp" + + "toKeysResponse\"J\332A\006parent\202\323\344\223\002;\0229/v1/{pa" + + "rent=projects/*/locations/*/keyRings/*}/cryptoKeys\022\336\001\n" + + "\025ListCryptoKeyVersions\0221.google.cloud.kms.v1.ListCryptoKeyVersions" + + "Request\0322.google.cloud.kms.v1.ListCrypto" + + "KeyVersionsResponse\"^\332A\006parent\202\323\344\223\002O\022M/v" + + "1/{parent=projects/*/locations/*/keyRings/*/cryptoKeys/*}/cryptoKeyVersions\022\265\001\n" + + "\016ListImportJobs\022*.google.cloud.kms.v1.Lis" + + "tImportJobsRequest\032+.google.cloud.kms.v1" + + ".ListImportJobsResponse\"J\332A\006parent\202\323\344\223\002;" + + "\0229/v1/{parent=projects/*/locations/*/keyRings/*}/importJobs\022\302\001\n" + + "\024ListRetiredResources\0220.google.cloud.kms.v1.ListRetiredRe" + + "sourcesRequest\0321.google.cloud.kms.v1.Lis" + + "tRetiredResourcesResponse\"E\332A\006parent\202\323\344\223" + + "\0026\0224/v1/{parent=projects/*/locations/*}/retiredResources\022\217\001\n\n" + "GetKeyRing\022&.google.cloud.kms.v1.GetKeyRingRequest\032\034.google" + ".cloud.kms.v1.KeyRing\";\332A\004name\202\323\344\223\002.\022,/v" + "1/{name=projects/*/locations/*/keyRings/*}\022\242\001\n" @@ -551,104 +606,119 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gs/*/cryptoKeys/*/cryptoKeyVersions/*}/publicKey\022\242\001\n" + "\014GetImportJob\022(.google.cloud.kms.v1.GetImportJobRequest\032\036.google.clo" + "ud.kms.v1.ImportJob\"H\332A\004name\202\323\344\223\002;\0229/v1/" - + "{name=projects/*/locations/*/keyRings/*/importJobs/*}\022\266\001\n\r" - + "CreateKeyRing\022).google.cloud.kms.v1.CreateKeyRingRequest\032\034.goo" - + "gle.cloud.kms.v1.KeyRing\"\\\332A\033parent,key_" - + "ring_id,key_ring\202\323\344\223\0028\",/v1/{parent=proj" - + "ects/*/locations/*}/keyRings:\010key_ring\022\317\001\n" - + "\017CreateCryptoKey\022+.google.cloud.kms.v1" - + ".CreateCryptoKeyRequest\032\036.google.cloud.k" - + "ms.v1.CryptoKey\"o\332A\037parent,crypto_key_id" - + ",crypto_key\202\323\344\223\002G\"9/v1/{parent=projects/*/locations/*/keyRings/*}/cryptoKeys:\n" + + "{name=projects/*/locations/*/keyRings/*/importJobs/*}\022\257\001\n" + + "\022GetRetiredResource\022..google.cloud.kms.v1.GetRetiredResourceReq" + + "uest\032$.google.cloud.kms.v1.RetiredResour" + + "ce\"C\332A\004name\202\323\344\223\0026\0224/v1/{name=projects/*/locations/*/retiredResources/*}\022\266\001\n\r" + + "CreateKeyRing\022).google.cloud.kms.v1.CreateKe" + + "yRingRequest\032\034.google.cloud.kms.v1.KeyRi" + + "ng\"\\\332A\033parent,key_ring_id,key_ring\202\323\344\223\0028" + + "\",/v1/{parent=projects/*/locations/*}/keyRings:\010key_ring\022\317\001\n" + + "\017CreateCryptoKey\022+.google.cloud.kms.v1.CreateCryptoKeyReques" + + "t\032\036.google.cloud.kms.v1.CryptoKey\"o\332A\037pa" + + "rent,crypto_key_id,crypto_key\202\323\344\223\002G\"9/v1" + + "/{parent=projects/*/locations/*/keyRings/*}/cryptoKeys:\n" + "crypto_key\022\373\001\n" - + "\026CreateCryptoKeyVersion\0222.google.cloud.kms.v1.CreateCryptoKeyVersion" - + "Request\032%.google.cloud.kms.v1.CryptoKeyV" - + "ersion\"\205\001\332A\031parent,crypto_key_version\202\323\344" - + "\223\002c\"M/v1/{parent=projects/*/locations/*/" - + "keyRings/*/cryptoKeys/*}/cryptoKeyVersions:\022crypto_key_version\022\324\001\n" - + "\026ImportCryptoKeyVersion\0222.google.cloud.kms.v1.ImportCr" - + "yptoKeyVersionRequest\032%.google.cloud.kms" - + ".v1.CryptoKeyVersion\"_\202\323\344\223\002Y\"T/v1/{paren" - + "t=projects/*/locations/*/keyRings/*/cryp" - + "toKeys/*}/cryptoKeyVersions:import:\001*\022\317\001\n" - + "\017CreateImportJob\022+.google.cloud.kms.v1." - + "CreateImportJobRequest\032\036.google.cloud.km" - + "s.v1.ImportJob\"o\332A\037parent,import_job_id," - + "import_job\202\323\344\223\002G\"9/v1/{parent=projects/*/locations/*/keyRings/*}/importJobs:\n" + + "\026CreateCryptoKeyVersion\0222.google.cloud.kms.v1.Crea" + + "teCryptoKeyVersionRequest\032%.google.cloud" + + ".kms.v1.CryptoKeyVersion\"\205\001\332A\031parent,cry" + + "pto_key_version\202\323\344\223\002c\"M/v1/{parent=proje" + + "cts/*/locations/*/keyRings/*/cryptoKeys/" + + "*}/cryptoKeyVersions:\022crypto_key_version\022\332\001\n" + + "\017DeleteCryptoKey\022+.google.cloud.kms." + + "v1.DeleteCryptoKeyRequest\032\035.google.longrunning.Operation\"{\312A0\n" + + "\025google.protobuf.Empty\022\027DeleteCryptoKeyMetadata\332A\004name\202\323\344\223" + + "\002;*9/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*}\022\204\002\n" + + "\026DeleteCryptoKeyVersion\0222.google.cloud.kms.v1.DeleteCry" + + "ptoKeyVersionRequest\032\035.google.longrunning.Operation\"\226\001\312A7\n" + + "\025google.protobuf.Empty\022\036DeleteCryptoKeyVersionMetadata\332A\004name\202" + + "\323\344\223\002O*M/v1/{name=projects/*/locations/*/" + + "keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}\022\324\001\n" + + "\026ImportCryptoKeyVersion\0222.google.cloud.kms.v1.ImportCryptoKeyVersionRequ" + + "est\032%.google.cloud.kms.v1.CryptoKeyVersi" + + "on\"_\202\323\344\223\002Y\"T/v1/{parent=projects/*/locat" + + "ions/*/keyRings/*/cryptoKeys/*}/cryptoKeyVersions:import:\001*\022\317\001\n" + + "\017CreateImportJob\022+.google.cloud.kms.v1.CreateImportJobReq" + + "uest\032\036.google.cloud.kms.v1.ImportJob\"o\332A" + + "\037parent,import_job_id,import_job\202\323\344\223\002G\"9" + + "/v1/{parent=projects/*/locations/*/keyRings/*}/importJobs:\n" + "import_job\022\321\001\n" - + "\017UpdateCryptoKey\022+.google.cloud.kms.v1.UpdateCryptoKeyRequest\032\036.googl" - + "e.cloud.kms.v1.CryptoKey\"q\332A\026crypto_key," - + "update_mask\202\323\344\223\002R2D/v1/{crypto_key.name=" - + "projects/*/locations/*/keyRings/*/cryptoKeys/*}:\n" + + "\017UpdateCryptoKey\022+.google.cloud.kms.v1.UpdateCr" + + "yptoKeyRequest\032\036.google.cloud.kms.v1.Cry" + + "ptoKey\"q\332A\026crypto_key,update_mask\202\323\344\223\002R2" + + "D/v1/{crypto_key.name=projects/*/locations/*/keyRings/*/cryptoKeys/*}:\n" + "crypto_key\022\223\002\n" - + "\026UpdateCryptoKeyVersion\0222.google.cloud.kms.v1.UpdateCrypt" - + "oKeyVersionRequest\032%.google.cloud.kms.v1" - + ".CryptoKeyVersion\"\235\001\332A\036crypto_key_versio" - + "n,update_mask\202\323\344\223\002v2`/v1/{crypto_key_ver" - + "sion.name=projects/*/locations/*/keyRing" - + "s/*/cryptoKeys/*/cryptoKeyVersions/*}:\022crypto_key_version\022\362\001\n" - + "\035UpdateCryptoKeyPrimaryVersion\0229.google.cloud.kms.v1.Update" - + "CryptoKeyPrimaryVersionRequest\032\036.google." - + "cloud.kms.v1.CryptoKey\"v\332A\032name,crypto_k" - + "ey_version_id\202\323\344\223\002S\"N/v1/{name=projects/" - + "*/locations/*/keyRings/*/cryptoKeys/*}:updatePrimaryVersion:\001*\022\336\001\n" - + "\027DestroyCryptoKeyVersion\0223.google.cloud.kms.v1.Destroy" - + "CryptoKeyVersionRequest\032%.google.cloud.k" - + "ms.v1.CryptoKeyVersion\"g\332A\004name\202\323\344\223\002Z\"U/" + + "\026UpdateCryptoKeyVersion\0222.google.cloud.kms.v1.UpdateCryptoKeyVersionRequest" + + "\032%.google.cloud.kms.v1.CryptoKeyVersion\"" + + "\235\001\332A\036crypto_key_version,update_mask\202\323\344\223\002" + + "v2`/v1/{crypto_key_version.name=projects/*/locations/*/keyRings/*/cryptoKeys/*/c" + + "ryptoKeyVersions/*}:\022crypto_key_version\022\362\001\n" + + "\035UpdateCryptoKeyPrimaryVersion\0229.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVe" + + "rsionRequest\032\036.google.cloud.kms.v1.Crypt" + + "oKey\"v\332A\032name,crypto_key_version_id\202\323\344\223\002" + + "S\"N/v1/{name=projects/*/locations/*/keyR" + + "ings/*/cryptoKeys/*}:updatePrimaryVersion:\001*\022\336\001\n" + + "\027DestroyCryptoKeyVersion\0223.google.cloud.kms.v1.DestroyCryptoKeyVersionRe" + + "quest\032%.google.cloud.kms.v1.CryptoKeyVer" + + "sion\"g\332A\004name\202\323\344\223\002Z\"U/v1/{name=projects/" + + "*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:destroy:\001*\022\336\001\n" + + "\027RestoreCryptoKeyVersion\0223.google.cloud.kms.v1." + + "RestoreCryptoKeyVersionRequest\032%.google." + + "cloud.kms.v1.CryptoKeyVersion\"g\332A\004name\202\323" + + "\344\223\002Z\"U/v1/{name=projects/*/locations/*/k" + + "eyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:restore:\001*\022\264\001\n" + + "\007Encrypt\022#.google.cloud.kms.v1.EncryptRequest\032$.google.cloud.k" + + "ms.v1.EncryptResponse\"^\332A\016name,plaintext" + + "\202\323\344\223\002G\"B/v1/{name=projects/*/locations/*" + + "/keyRings/*/cryptoKeys/**}:encrypt:\001*\022\264\001\n" + + "\007Decrypt\022#.google.cloud.kms.v1.DecryptR" + + "equest\032$.google.cloud.kms.v1.DecryptResp" + + "onse\"^\332A\017name,ciphertext\202\323\344\223\002F\"A/v1/{nam" + + "e=projects/*/locations/*/keyRings/*/cryptoKeys/*}:decrypt:\001*\022\302\001\n\n" + + "RawEncrypt\022&.google.cloud.kms.v1.RawEncryptRequest\032\'.go" + + "ogle.cloud.kms.v1.RawEncryptResponse\"c\202\323" + + "\344\223\002]\"X/v1/{name=projects/*/locations/*/k" + + "eyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:rawEncrypt:\001*\022\302\001\n\n" + + "RawDecrypt\022&.google.cloud.kms.v1.RawDecryptRequest\032\'.googl" + + "e.cloud.kms.v1.RawDecryptResponse\"c\202\323\344\223\002" + + "]\"X/v1/{name=projects/*/locations/*/keyR" + + "ings/*/cryptoKeys/*/cryptoKeyVersions/*}:rawDecrypt:\001*\022\340\001\n" + + "\016AsymmetricSign\022*.google.cloud.kms.v1.AsymmetricSignRequest\032+." + + "google.cloud.kms.v1.AsymmetricSignRespon" + + "se\"u\332A\013name,digest\202\323\344\223\002a\"\\/v1/{name=proj" + + "ects/*/locations/*/keyRings/*/cryptoKeys" + + "/*/cryptoKeyVersions/*}:asymmetricSign:\001*\022\360\001\n" + + "\021AsymmetricDecrypt\022-.google.cloud.kms.v1.AsymmetricDecryptRequest\032..google." + + "cloud.kms.v1.AsymmetricDecryptResponse\"|" + + "\332A\017name,ciphertext\202\323\344\223\002d\"_/v1/{name=proj" + + "ects/*/locations/*/keyRings/*/cryptoKeys" + + "/*/cryptoKeyVersions/*}:asymmetricDecrypt:\001*\022\302\001\n" + + "\007MacSign\022#.google.cloud.kms.v1.M" + + "acSignRequest\032$.google.cloud.kms.v1.MacSignResponse\"l\332A" + + "\tname,data\202\323\344\223\002Z\"U/v1/{name=projects/*/locations/*/keyRings/*/cry" + + "ptoKeys/*/cryptoKeyVersions/*}:macSign:\001*\022\316\001\n" + + "\tMacVerify\022%.google.cloud.kms.v1.Ma" + + "cVerifyRequest\032&.google.cloud.kms.v1.MacVerifyResponse\"r\332A\r" + + "name,data,mac\202\323\344\223\002\\\"W/v1/{name=projects/*/locations/*/keyRing" + + "s/*/cryptoKeys/*/cryptoKeyVersions/*}:macVerify:\001*\022\306\001\n" + + "\013Decapsulate\022\'.google.clou", + "d.kms.v1.DecapsulateRequest\032(.google.clo" + + "ud.kms.v1.DecapsulateResponse\"d\202\323\344\223\002^\"Y/" + "v1/{name=projects/*/locations/*/keyRings" - + "/*/cryptoKeys/*/cryptoKeyVersions/*}:destroy:\001*\022\336\001\n" - + "\027RestoreCryptoKeyVersion\0223.google.cloud.kms.v1.RestoreCryptoKeyVersio" - + "nRequest\032%.google.cloud.kms.v1.CryptoKey" - + "Version\"g\332A\004name\202\323\344\223\002Z\"U/v1/{name=projec" - + "ts/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:restore:\001*\022\264\001\n" - + "\007Encrypt\022#.google.cloud.kms.v1.EncryptReques" - + "t\032$.google.cloud.kms.v1.EncryptResponse\"" - + "^\332A\016name,plaintext\202\323\344\223\002G\"B/v1/{name=proj" - + "ects/*/locations/*/keyRings/*/cryptoKeys/**}:encrypt:\001*\022\264\001\n" - + "\007Decrypt\022#.google.cloud.kms.v1.DecryptRequest\032$.google.cloud." - + "kms.v1.DecryptResponse\"^\332A\017name,cipherte" - + "xt\202\323\344\223\002F\"A/v1/{name=projects/*/locations" - + "/*/keyRings/*/cryptoKeys/*}:decrypt:\001*\022\302\001\n\n" - + "RawEncrypt\022&.google.cloud.kms.v1.RawEncryptRequest\032\'.google.cloud.kms.v1.RawE" - + "ncryptResponse\"c\202\323\344\223\002]\"X/v1/{name=projec" - + "ts/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:rawEncrypt:\001*\022\302\001\n\n" - + "RawDecrypt\022&.google.cloud.kms.v1.RawDecr" - + "yptRequest\032\'.google.cloud.kms.v1.RawDecr" - + "yptResponse\"c\202\323\344\223\002]\"X/v1/{name=projects/" - + "*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:rawDecrypt:\001*\022\340\001\n" - + "\016AsymmetricSign\022*.google.cloud.kms.v1.Asymme" - + "tricSignRequest\032+.google.cloud.kms.v1.As" - + "ymmetricSignResponse\"u\332A\013name,digest\202\323\344\223" - + "\002a\"\\/v1/{name=projects/*/locations/*/key" - + "Rings/*/cryptoKeys/*/cryptoKeyVersions/*}:asymmetricSign:\001*\022\360\001\n" - + "\021AsymmetricDecrypt\022-.google.cloud.kms.v1.AsymmetricDecryp" - + "tRequest\032..google.cloud.kms.v1.Asymmetri" - + "cDecryptResponse\"|\332A\017name,ciphertext\202\323\344\223" - + "\002d\"_/v1/{name=projects/*/locations/*/key" - + "Rings/*/cryptoKeys/*/cryptoKeyVersions/*}:asymmetricDecrypt:\001*\022\302\001\n" - + "\007MacSign\022#.goo" - + "gle.cloud.kms.v1.MacSignRequest\032$.google.cloud.kms.v1.MacSignResponse\"l\332A" - + "\tname,data\202\323\344\223\002Z\"U/v1/{name=projects/*/location" - + "s/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:macSign:\001*\022\316\001\n" - + "\tMacVerify\022%.goog" - + "le.cloud.kms.v1.MacVerifyRequest\032&.google.cloud.kms.v1.MacVerifyResponse\"r\332A\r" - + "name,data,mac\202\323\344\223\002\\\"W/v1/{name=projects/*/l" - + "ocations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:macVerify:\001*\022\306\001\n" - + "\013Decapsulate\022\'.google.cloud.kms.v1.DecapsulateRe" - + "quest\032(.google.cloud.kms.v1.DecapsulateR" - + "esponse\"d\202\323\344\223\002^\"Y/v1/{name=projects/*/lo" - + "cations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:decapsulate:\001*\022\347\001\n" - + "\023GenerateRandomBytes\022/.google.cloud.kms.v1.Gene" - + "rateRandomBytesRequest\0320.google.cloud.km" - + "s.v1.GenerateRandomBytesResponse\"m\332A&loc" - + "ation,length_bytes,protection_level\202\323\344\223\002" - + ">\"9/v1/{location=projects/*/locations/*}" - + ":generateRandomBytes:\001*\032t\312A\027cloudkms.goo" - + "gleapis.com\322AWhttps://www.googleapis.com" - + "/auth/cloud-platform,https://www.googleapis.com/auth/cloudkmsB|\n" - + "\027com.google.cloud.kms.v1B\010KmsProtoP\001Z)cloud.google.com/g" - + "o/kms/apiv1/kmspb;kmspb\252\002\023Google.Cloud.K" - + "ms.V1\312\002\023Google\\Cloud\\Kms\\V1b\006proto3" + + "/*/cryptoKeys/*/cryptoKeyVersions/*}:dec" + + "apsulate:\001*\022\347\001\n\023GenerateRandomBytes\022/.go" + + "ogle.cloud.kms.v1.GenerateRandomBytesReq" + + "uest\0320.google.cloud.kms.v1.GenerateRando" + + "mBytesResponse\"m\332A&location,length_bytes" + + ",protection_level\202\323\344\223\002>\"9/v1/{location=p" + + "rojects/*/locations/*}:generateRandomByt" + + "es:\001*\032t\312A\027cloudkms.googleapis.com\322AWhttp" + + "s://www.googleapis.com/auth/cloud-platfo" + + "rm,https://www.googleapis.com/auth/cloud" + + "kmsB|\n\027com.google.cloud.kms.v1B\010KmsProto" + + "P\001Z)cloud.google.com/go/kms/apiv1/kmspb;" + + "kmspb\252\002\023Google.Cloud.Kms.V1\312\002\023Google\\Clo" + + "ud\\Kms\\V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -659,6 +729,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.kms.v1.KmsResourcesProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.WrappersProto.getDescriptor(), }); @@ -694,8 +766,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_kms_v1_ListKeyRingsResponse_descriptor = + internal_static_google_cloud_kms_v1_ListRetiredResourcesRequest_descriptor = getDescriptor().getMessageType(4); + internal_static_google_cloud_kms_v1_ListRetiredResourcesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_kms_v1_ListRetiredResourcesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_kms_v1_ListKeyRingsResponse_descriptor = + getDescriptor().getMessageType(5); internal_static_google_cloud_kms_v1_ListKeyRingsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_ListKeyRingsResponse_descriptor, @@ -703,7 +783,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "KeyRings", "NextPageToken", "TotalSize", }); internal_static_google_cloud_kms_v1_ListCryptoKeysResponse_descriptor = - getDescriptor().getMessageType(5); + getDescriptor().getMessageType(6); internal_static_google_cloud_kms_v1_ListCryptoKeysResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_ListCryptoKeysResponse_descriptor, @@ -711,7 +791,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CryptoKeys", "NextPageToken", "TotalSize", }); internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsResponse_descriptor = - getDescriptor().getMessageType(6); + getDescriptor().getMessageType(7); internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsResponse_descriptor, @@ -719,15 +799,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CryptoKeyVersions", "NextPageToken", "TotalSize", }); internal_static_google_cloud_kms_v1_ListImportJobsResponse_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(8); internal_static_google_cloud_kms_v1_ListImportJobsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_ListImportJobsResponse_descriptor, new java.lang.String[] { "ImportJobs", "NextPageToken", "TotalSize", }); + internal_static_google_cloud_kms_v1_ListRetiredResourcesResponse_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_kms_v1_ListRetiredResourcesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_kms_v1_ListRetiredResourcesResponse_descriptor, + new java.lang.String[] { + "RetiredResources", "NextPageToken", "TotalSize", + }); internal_static_google_cloud_kms_v1_GetKeyRingRequest_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(10); internal_static_google_cloud_kms_v1_GetKeyRingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_GetKeyRingRequest_descriptor, @@ -735,7 +823,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_kms_v1_GetCryptoKeyRequest_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(11); internal_static_google_cloud_kms_v1_GetCryptoKeyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_GetCryptoKeyRequest_descriptor, @@ -743,7 +831,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_kms_v1_GetCryptoKeyVersionRequest_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(12); internal_static_google_cloud_kms_v1_GetCryptoKeyVersionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_GetCryptoKeyVersionRequest_descriptor, @@ -751,7 +839,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_kms_v1_GetPublicKeyRequest_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(13); internal_static_google_cloud_kms_v1_GetPublicKeyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_GetPublicKeyRequest_descriptor, @@ -759,15 +847,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "PublicKeyFormat", }); internal_static_google_cloud_kms_v1_GetImportJobRequest_descriptor = - getDescriptor().getMessageType(12); + getDescriptor().getMessageType(14); internal_static_google_cloud_kms_v1_GetImportJobRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_GetImportJobRequest_descriptor, new java.lang.String[] { "Name", }); + internal_static_google_cloud_kms_v1_GetRetiredResourceRequest_descriptor = + getDescriptor().getMessageType(15); + internal_static_google_cloud_kms_v1_GetRetiredResourceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_kms_v1_GetRetiredResourceRequest_descriptor, + new java.lang.String[] { + "Name", + }); internal_static_google_cloud_kms_v1_CreateKeyRingRequest_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(16); internal_static_google_cloud_kms_v1_CreateKeyRingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_CreateKeyRingRequest_descriptor, @@ -775,7 +871,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "KeyRingId", "KeyRing", }); internal_static_google_cloud_kms_v1_CreateCryptoKeyRequest_descriptor = - getDescriptor().getMessageType(14); + getDescriptor().getMessageType(17); internal_static_google_cloud_kms_v1_CreateCryptoKeyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_CreateCryptoKeyRequest_descriptor, @@ -783,15 +879,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "CryptoKeyId", "CryptoKey", "SkipInitialVersionCreation", }); internal_static_google_cloud_kms_v1_CreateCryptoKeyVersionRequest_descriptor = - getDescriptor().getMessageType(15); + getDescriptor().getMessageType(18); internal_static_google_cloud_kms_v1_CreateCryptoKeyVersionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_CreateCryptoKeyVersionRequest_descriptor, new java.lang.String[] { "Parent", "CryptoKeyVersion", }); + internal_static_google_cloud_kms_v1_DeleteCryptoKeyRequest_descriptor = + getDescriptor().getMessageType(19); + internal_static_google_cloud_kms_v1_DeleteCryptoKeyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_kms_v1_DeleteCryptoKeyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_kms_v1_DeleteCryptoKeyVersionRequest_descriptor = + getDescriptor().getMessageType(20); + internal_static_google_cloud_kms_v1_DeleteCryptoKeyVersionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_kms_v1_DeleteCryptoKeyVersionRequest_descriptor, + new java.lang.String[] { + "Name", + }); internal_static_google_cloud_kms_v1_ImportCryptoKeyVersionRequest_descriptor = - getDescriptor().getMessageType(16); + getDescriptor().getMessageType(21); internal_static_google_cloud_kms_v1_ImportCryptoKeyVersionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_ImportCryptoKeyVersionRequest_descriptor, @@ -805,7 +917,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WrappedKeyMaterial", }); internal_static_google_cloud_kms_v1_CreateImportJobRequest_descriptor = - getDescriptor().getMessageType(17); + getDescriptor().getMessageType(22); internal_static_google_cloud_kms_v1_CreateImportJobRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_CreateImportJobRequest_descriptor, @@ -813,7 +925,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ImportJobId", "ImportJob", }); internal_static_google_cloud_kms_v1_UpdateCryptoKeyRequest_descriptor = - getDescriptor().getMessageType(18); + getDescriptor().getMessageType(23); internal_static_google_cloud_kms_v1_UpdateCryptoKeyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_UpdateCryptoKeyRequest_descriptor, @@ -821,7 +933,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CryptoKey", "UpdateMask", }); internal_static_google_cloud_kms_v1_UpdateCryptoKeyVersionRequest_descriptor = - getDescriptor().getMessageType(19); + getDescriptor().getMessageType(24); internal_static_google_cloud_kms_v1_UpdateCryptoKeyVersionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_UpdateCryptoKeyVersionRequest_descriptor, @@ -829,7 +941,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CryptoKeyVersion", "UpdateMask", }); internal_static_google_cloud_kms_v1_UpdateCryptoKeyPrimaryVersionRequest_descriptor = - getDescriptor().getMessageType(20); + getDescriptor().getMessageType(25); internal_static_google_cloud_kms_v1_UpdateCryptoKeyPrimaryVersionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_UpdateCryptoKeyPrimaryVersionRequest_descriptor, @@ -837,7 +949,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "CryptoKeyVersionId", }); internal_static_google_cloud_kms_v1_DestroyCryptoKeyVersionRequest_descriptor = - getDescriptor().getMessageType(21); + getDescriptor().getMessageType(26); internal_static_google_cloud_kms_v1_DestroyCryptoKeyVersionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_DestroyCryptoKeyVersionRequest_descriptor, @@ -845,7 +957,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_kms_v1_RestoreCryptoKeyVersionRequest_descriptor = - getDescriptor().getMessageType(22); + getDescriptor().getMessageType(27); internal_static_google_cloud_kms_v1_RestoreCryptoKeyVersionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_RestoreCryptoKeyVersionRequest_descriptor, @@ -853,7 +965,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_kms_v1_EncryptRequest_descriptor = - getDescriptor().getMessageType(23); + getDescriptor().getMessageType(28); internal_static_google_cloud_kms_v1_EncryptRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_EncryptRequest_descriptor, @@ -865,7 +977,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AdditionalAuthenticatedDataCrc32C", }); internal_static_google_cloud_kms_v1_DecryptRequest_descriptor = - getDescriptor().getMessageType(24); + getDescriptor().getMessageType(29); internal_static_google_cloud_kms_v1_DecryptRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_DecryptRequest_descriptor, @@ -877,7 +989,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AdditionalAuthenticatedDataCrc32C", }); internal_static_google_cloud_kms_v1_RawEncryptRequest_descriptor = - getDescriptor().getMessageType(25); + getDescriptor().getMessageType(30); internal_static_google_cloud_kms_v1_RawEncryptRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_RawEncryptRequest_descriptor, @@ -891,7 +1003,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InitializationVectorCrc32C", }); internal_static_google_cloud_kms_v1_RawDecryptRequest_descriptor = - getDescriptor().getMessageType(26); + getDescriptor().getMessageType(31); internal_static_google_cloud_kms_v1_RawDecryptRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_RawDecryptRequest_descriptor, @@ -906,7 +1018,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InitializationVectorCrc32C", }); internal_static_google_cloud_kms_v1_AsymmetricSignRequest_descriptor = - getDescriptor().getMessageType(27); + getDescriptor().getMessageType(32); internal_static_google_cloud_kms_v1_AsymmetricSignRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_AsymmetricSignRequest_descriptor, @@ -914,7 +1026,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Digest", "DigestCrc32C", "Data", "DataCrc32C", }); internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_descriptor = - getDescriptor().getMessageType(28); + getDescriptor().getMessageType(33); internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_descriptor, @@ -922,7 +1034,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Ciphertext", "CiphertextCrc32C", }); internal_static_google_cloud_kms_v1_MacSignRequest_descriptor = - getDescriptor().getMessageType(29); + getDescriptor().getMessageType(34); internal_static_google_cloud_kms_v1_MacSignRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_MacSignRequest_descriptor, @@ -930,7 +1042,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Data", "DataCrc32C", }); internal_static_google_cloud_kms_v1_MacVerifyRequest_descriptor = - getDescriptor().getMessageType(30); + getDescriptor().getMessageType(35); internal_static_google_cloud_kms_v1_MacVerifyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_MacVerifyRequest_descriptor, @@ -938,7 +1050,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Data", "DataCrc32C", "Mac", "MacCrc32C", }); internal_static_google_cloud_kms_v1_DecapsulateRequest_descriptor = - getDescriptor().getMessageType(31); + getDescriptor().getMessageType(36); internal_static_google_cloud_kms_v1_DecapsulateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_DecapsulateRequest_descriptor, @@ -946,7 +1058,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Ciphertext", "CiphertextCrc32C", }); internal_static_google_cloud_kms_v1_GenerateRandomBytesRequest_descriptor = - getDescriptor().getMessageType(32); + getDescriptor().getMessageType(37); internal_static_google_cloud_kms_v1_GenerateRandomBytesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_GenerateRandomBytesRequest_descriptor, @@ -954,7 +1066,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Location", "LengthBytes", "ProtectionLevel", }); internal_static_google_cloud_kms_v1_EncryptResponse_descriptor = - getDescriptor().getMessageType(33); + getDescriptor().getMessageType(38); internal_static_google_cloud_kms_v1_EncryptResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_EncryptResponse_descriptor, @@ -967,7 +1079,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProtectionLevel", }); internal_static_google_cloud_kms_v1_DecryptResponse_descriptor = - getDescriptor().getMessageType(34); + getDescriptor().getMessageType(39); internal_static_google_cloud_kms_v1_DecryptResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_DecryptResponse_descriptor, @@ -975,7 +1087,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Plaintext", "PlaintextCrc32C", "UsedPrimary", "ProtectionLevel", }); internal_static_google_cloud_kms_v1_RawEncryptResponse_descriptor = - getDescriptor().getMessageType(35); + getDescriptor().getMessageType(40); internal_static_google_cloud_kms_v1_RawEncryptResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_RawEncryptResponse_descriptor, @@ -992,7 +1104,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProtectionLevel", }); internal_static_google_cloud_kms_v1_RawDecryptResponse_descriptor = - getDescriptor().getMessageType(36); + getDescriptor().getMessageType(41); internal_static_google_cloud_kms_v1_RawDecryptResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_RawDecryptResponse_descriptor, @@ -1005,7 +1117,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "VerifiedInitializationVectorCrc32C", }); internal_static_google_cloud_kms_v1_AsymmetricSignResponse_descriptor = - getDescriptor().getMessageType(37); + getDescriptor().getMessageType(42); internal_static_google_cloud_kms_v1_AsymmetricSignResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_AsymmetricSignResponse_descriptor, @@ -1018,7 +1130,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProtectionLevel", }); internal_static_google_cloud_kms_v1_AsymmetricDecryptResponse_descriptor = - getDescriptor().getMessageType(38); + getDescriptor().getMessageType(43); internal_static_google_cloud_kms_v1_AsymmetricDecryptResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_AsymmetricDecryptResponse_descriptor, @@ -1026,7 +1138,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Plaintext", "PlaintextCrc32C", "VerifiedCiphertextCrc32C", "ProtectionLevel", }); internal_static_google_cloud_kms_v1_MacSignResponse_descriptor = - getDescriptor().getMessageType(39); + getDescriptor().getMessageType(44); internal_static_google_cloud_kms_v1_MacSignResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_MacSignResponse_descriptor, @@ -1034,7 +1146,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Mac", "MacCrc32C", "VerifiedDataCrc32C", "ProtectionLevel", }); internal_static_google_cloud_kms_v1_MacVerifyResponse_descriptor = - getDescriptor().getMessageType(40); + getDescriptor().getMessageType(45); internal_static_google_cloud_kms_v1_MacVerifyResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_MacVerifyResponse_descriptor, @@ -1047,7 +1159,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProtectionLevel", }); internal_static_google_cloud_kms_v1_DecapsulateResponse_descriptor = - getDescriptor().getMessageType(41); + getDescriptor().getMessageType(46); internal_static_google_cloud_kms_v1_DecapsulateResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_DecapsulateResponse_descriptor, @@ -1059,14 +1171,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProtectionLevel", }); internal_static_google_cloud_kms_v1_GenerateRandomBytesResponse_descriptor = - getDescriptor().getMessageType(42); + getDescriptor().getMessageType(47); internal_static_google_cloud_kms_v1_GenerateRandomBytesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_GenerateRandomBytesResponse_descriptor, new java.lang.String[] { "Data", "DataCrc32C", }); - internal_static_google_cloud_kms_v1_Digest_descriptor = getDescriptor().getMessageType(43); + internal_static_google_cloud_kms_v1_Digest_descriptor = getDescriptor().getMessageType(48); internal_static_google_cloud_kms_v1_Digest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_Digest_descriptor, @@ -1074,19 +1186,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Sha256", "Sha384", "Sha512", "Digest", }); internal_static_google_cloud_kms_v1_LocationMetadata_descriptor = - getDescriptor().getMessageType(44); + getDescriptor().getMessageType(49); internal_static_google_cloud_kms_v1_LocationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_kms_v1_LocationMetadata_descriptor, new java.lang.String[] { "HsmAvailable", "EkmAvailable", "HsmSingleTenantAvailable", }); + internal_static_google_cloud_kms_v1_DeleteCryptoKeyMetadata_descriptor = + getDescriptor().getMessageType(50); + internal_static_google_cloud_kms_v1_DeleteCryptoKeyMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_kms_v1_DeleteCryptoKeyMetadata_descriptor, + new java.lang.String[] { + "RetiredResource", + }); + internal_static_google_cloud_kms_v1_DeleteCryptoKeyVersionMetadata_descriptor = + getDescriptor().getMessageType(51); + internal_static_google_cloud_kms_v1_DeleteCryptoKeyVersionMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_kms_v1_DeleteCryptoKeyVersionMetadata_descriptor, + new java.lang.String[] {}); descriptor.resolveAllFeaturesImmutable(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.kms.v1.KmsResourcesProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.WrappersProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = @@ -1097,6 +1225,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ClientProto.methodSignature); registry.add(com.google.api.ClientProto.oauthScopes); registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsResourcesProto.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsResourcesProto.java index bc49382415c5..ba6c0104c75d 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsResourcesProto.java +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsResourcesProto.java @@ -92,6 +92,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_kms_v1_KeyAccessJustificationsPolicy_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_kms_v1_KeyAccessJustificationsPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_RetiredResource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_kms_v1_RetiredResource_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -320,7 +324,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027ekm_connection_key_path\030\002 \001(\t\"b\n" + "\035KeyAccessJustificationsPolicy\022A\n" + "\026allowed_access_reasons\030\001" - + " \003(\0162!.google.cloud.kms.v1.AccessReason*\201\001\n" + + " \003(\0162!.google.cloud.kms.v1.AccessReason\"\271\002\n" + + "\017RetiredResource\022\024\n" + + "\004name\030\001 \001(\tB\006\340A\003\340A\010\022\036\n" + + "\021original_resource\030\002 \001(\tB\003\340A\003\022\032\n\r" + + "resource_type\030\003 \001(\tB\003\340A\003\0224\n" + + "\013delete_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003:\235\001\352A\231\001\n" + + "\'cloudkms.googleapis.com/RetiredResource\022Kproject" + + "s/{project}/locations/{location}/retired" + + "Resources/{retired_resource}*\020retiredResources2\017retiredResource*\201\001\n" + "\017ProtectionLevel\022 \n" + "\034PROTECTION_LEVEL_UNSPECIFIED\020\000\022\014\n" + "\010SOFTWARE\020\001\022\007\n" @@ -342,9 +355,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "#GOOGLE_RESPONSE_TO_PRODUCTION_ALERT\020\n" + "\022*\n" + "&CUSTOMER_AUTHORIZED_WORKFLOW_SERVICING\020\013B\205\001\n" - + "\027com.google.cloud.kms.v1B\021KmsResourcesP" - + "rotoP\001Z)cloud.google.com/go/kms/apiv1/km" - + "spb;kmspb\252\002\023Google.Cloud.Kms.V1\312\002\023Google\\Cloud\\Kms\\V1b\006proto3" + + "\027com.google.cloud.kms.v1B\021KmsResourcesProto" + + "P\001Z)cloud.google.com/go/kms/apiv1/kmspb;" + + "kmspb\252\002\023Google.Cloud.Kms.V1\312\002\023Google\\Cloud\\Kms\\V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -499,6 +512,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "AllowedAccessReasons", }); + internal_static_google_cloud_kms_v1_RetiredResource_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_cloud_kms_v1_RetiredResource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_kms_v1_RetiredResource_descriptor, + new java.lang.String[] { + "Name", "OriginalResource", "ResourceType", "DeleteTime", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListRetiredResourcesRequest.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListRetiredResourcesRequest.java new file mode 100644 index 000000000000..a716753ba4f1 --- /dev/null +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListRetiredResourcesRequest.java @@ -0,0 +1,947 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/kms/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.kms.v1; + +/** + * + * + *
            + * Request message for
            + * [KeyManagementService.ListRetiredResources][google.cloud.kms.v1.KeyManagementService.ListRetiredResources].
            + * 
            + * + * Protobuf type {@code google.cloud.kms.v1.ListRetiredResourcesRequest} + */ +@com.google.protobuf.Generated +public final class ListRetiredResourcesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.ListRetiredResourcesRequest) + ListRetiredResourcesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListRetiredResourcesRequest"); + } + + // Use ListRetiredResourcesRequest.newBuilder() to construct. + private ListRetiredResourcesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListRetiredResourcesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_ListRetiredResourcesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_ListRetiredResourcesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.ListRetiredResourcesRequest.class, + com.google.cloud.kms.v1.ListRetiredResourcesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The project-specific location holding the
            +   * [RetiredResources][google.cloud.kms.v1.RetiredResource], in the format
            +   * `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The project-specific location holding the
            +   * [RetiredResources][google.cloud.kms.v1.RetiredResource], in the format
            +   * `projects/*/locations/*`.
            +   * 
            + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
            +   * Optional. Optional limit on the number of
            +   * [RetiredResources][google.cloud.kms.v1.RetiredResource] to be included in
            +   * the response. Further
            +   * [RetiredResources][google.cloud.kms.v1.RetiredResource] can subsequently be
            +   * obtained by including the
            +   * [ListRetiredResourcesResponse.next_page_token][google.cloud.kms.v1.ListRetiredResourcesResponse.next_page_token]
            +   * in a subsequent request. If unspecified, the server will pick an
            +   * appropriate default.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +   * Optional. Optional pagination token, returned earlier via
            +   * [ListRetiredResourcesResponse.next_page_token][google.cloud.kms.v1.ListRetiredResourcesResponse.next_page_token].
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Optional pagination token, returned earlier via
            +   * [ListRetiredResourcesResponse.next_page_token][google.cloud.kms.v1.ListRetiredResourcesResponse.next_page_token].
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.kms.v1.ListRetiredResourcesRequest)) { + return super.equals(obj); + } + com.google.cloud.kms.v1.ListRetiredResourcesRequest other = + (com.google.cloud.kms.v1.ListRetiredResourcesRequest) obj; + + 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; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.kms.v1.ListRetiredResourcesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.kms.v1.ListRetiredResourcesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.kms.v1.ListRetiredResourcesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.kms.v1.ListRetiredResourcesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.kms.v1.ListRetiredResourcesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.kms.v1.ListRetiredResourcesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.kms.v1.ListRetiredResourcesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.kms.v1.ListRetiredResourcesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.kms.v1.ListRetiredResourcesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.kms.v1.ListRetiredResourcesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.kms.v1.ListRetiredResourcesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.kms.v1.ListRetiredResourcesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.kms.v1.ListRetiredResourcesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for
            +   * [KeyManagementService.ListRetiredResources][google.cloud.kms.v1.KeyManagementService.ListRetiredResources].
            +   * 
            + * + * Protobuf type {@code google.cloud.kms.v1.ListRetiredResourcesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.kms.v1.ListRetiredResourcesRequest) + com.google.cloud.kms.v1.ListRetiredResourcesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_ListRetiredResourcesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_ListRetiredResourcesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.ListRetiredResourcesRequest.class, + com.google.cloud.kms.v1.ListRetiredResourcesRequest.Builder.class); + } + + // Construct using com.google.cloud.kms.v1.ListRetiredResourcesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_ListRetiredResourcesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.kms.v1.ListRetiredResourcesRequest getDefaultInstanceForType() { + return com.google.cloud.kms.v1.ListRetiredResourcesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.kms.v1.ListRetiredResourcesRequest build() { + com.google.cloud.kms.v1.ListRetiredResourcesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.kms.v1.ListRetiredResourcesRequest buildPartial() { + com.google.cloud.kms.v1.ListRetiredResourcesRequest result = + new com.google.cloud.kms.v1.ListRetiredResourcesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.kms.v1.ListRetiredResourcesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.kms.v1.ListRetiredResourcesRequest) { + return mergeFrom((com.google.cloud.kms.v1.ListRetiredResourcesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.kms.v1.ListRetiredResourcesRequest other) { + if (other == com.google.cloud.kms.v1.ListRetiredResourcesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
            +     * Required. The project-specific location holding the
            +     * [RetiredResources][google.cloud.kms.v1.RetiredResource], in the format
            +     * `projects/*/locations/*`.
            +     * 
            + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The project-specific location holding the
            +     * [RetiredResources][google.cloud.kms.v1.RetiredResource], in the format
            +     * `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The project-specific location holding the
            +     * [RetiredResources][google.cloud.kms.v1.RetiredResource], in the format
            +     * `projects/*/locations/*`.
            +     * 
            + * + * + * 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(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The project-specific location holding the
            +     * [RetiredResources][google.cloud.kms.v1.RetiredResource], in the format
            +     * `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The project-specific location holding the
            +     * [RetiredResources][google.cloud.kms.v1.RetiredResource], in the format
            +     * `projects/*/locations/*`.
            +     * 
            + * + * + * 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(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
            +     * Optional. Optional limit on the number of
            +     * [RetiredResources][google.cloud.kms.v1.RetiredResource] to be included in
            +     * the response. Further
            +     * [RetiredResources][google.cloud.kms.v1.RetiredResource] can subsequently be
            +     * obtained by including the
            +     * [ListRetiredResourcesResponse.next_page_token][google.cloud.kms.v1.ListRetiredResourcesResponse.next_page_token]
            +     * in a subsequent request. If unspecified, the server will pick an
            +     * appropriate default.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
            +     * Optional. Optional limit on the number of
            +     * [RetiredResources][google.cloud.kms.v1.RetiredResource] to be included in
            +     * the response. Further
            +     * [RetiredResources][google.cloud.kms.v1.RetiredResource] can subsequently be
            +     * obtained by including the
            +     * [ListRetiredResourcesResponse.next_page_token][google.cloud.kms.v1.ListRetiredResourcesResponse.next_page_token]
            +     * in a subsequent request. If unspecified, the server will pick an
            +     * appropriate default.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Optional limit on the number of
            +     * [RetiredResources][google.cloud.kms.v1.RetiredResource] to be included in
            +     * the response. Further
            +     * [RetiredResources][google.cloud.kms.v1.RetiredResource] can subsequently be
            +     * obtained by including the
            +     * [ListRetiredResourcesResponse.next_page_token][google.cloud.kms.v1.ListRetiredResourcesResponse.next_page_token]
            +     * in a subsequent request. If unspecified, the server will pick an
            +     * appropriate default.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +     * Optional. Optional pagination token, returned earlier via
            +     * [ListRetiredResourcesResponse.next_page_token][google.cloud.kms.v1.ListRetiredResourcesResponse.next_page_token].
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Optional pagination token, returned earlier via
            +     * [ListRetiredResourcesResponse.next_page_token][google.cloud.kms.v1.ListRetiredResourcesResponse.next_page_token].
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Optional pagination token, returned earlier via
            +     * [ListRetiredResourcesResponse.next_page_token][google.cloud.kms.v1.ListRetiredResourcesResponse.next_page_token].
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Optional pagination token, returned earlier via
            +     * [ListRetiredResourcesResponse.next_page_token][google.cloud.kms.v1.ListRetiredResourcesResponse.next_page_token].
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Optional pagination token, returned earlier via
            +     * [ListRetiredResourcesResponse.next_page_token][google.cloud.kms.v1.ListRetiredResourcesResponse.next_page_token].
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.ListRetiredResourcesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.ListRetiredResourcesRequest) + private static final com.google.cloud.kms.v1.ListRetiredResourcesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.kms.v1.ListRetiredResourcesRequest(); + } + + public static com.google.cloud.kms.v1.ListRetiredResourcesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRetiredResourcesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.kms.v1.ListRetiredResourcesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListRetiredResourcesRequestOrBuilder.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListRetiredResourcesRequestOrBuilder.java new file mode 100644 index 000000000000..8481c0199150 --- /dev/null +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListRetiredResourcesRequestOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/kms/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.kms.v1; + +@com.google.protobuf.Generated +public interface ListRetiredResourcesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.ListRetiredResourcesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The project-specific location holding the
            +   * [RetiredResources][google.cloud.kms.v1.RetiredResource], in the format
            +   * `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The project-specific location holding the
            +   * [RetiredResources][google.cloud.kms.v1.RetiredResource], in the format
            +   * `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Optional. Optional limit on the number of
            +   * [RetiredResources][google.cloud.kms.v1.RetiredResource] to be included in
            +   * the response. Further
            +   * [RetiredResources][google.cloud.kms.v1.RetiredResource] can subsequently be
            +   * obtained by including the
            +   * [ListRetiredResourcesResponse.next_page_token][google.cloud.kms.v1.ListRetiredResourcesResponse.next_page_token]
            +   * in a subsequent request. If unspecified, the server will pick an
            +   * appropriate default.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
            +   * Optional. Optional pagination token, returned earlier via
            +   * [ListRetiredResourcesResponse.next_page_token][google.cloud.kms.v1.ListRetiredResourcesResponse.next_page_token].
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
            +   * Optional. Optional pagination token, returned earlier via
            +   * [ListRetiredResourcesResponse.next_page_token][google.cloud.kms.v1.ListRetiredResourcesResponse.next_page_token].
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListRetiredResourcesResponse.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListRetiredResourcesResponse.java new file mode 100644 index 000000000000..017ae9037115 --- /dev/null +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListRetiredResourcesResponse.java @@ -0,0 +1,1234 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/kms/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.kms.v1; + +/** + * + * + *
            + * Response message for
            + * [KeyManagementService.ListRetiredResources][google.cloud.kms.v1.KeyManagementService.ListRetiredResources].
            + * 
            + * + * Protobuf type {@code google.cloud.kms.v1.ListRetiredResourcesResponse} + */ +@com.google.protobuf.Generated +public final class ListRetiredResourcesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.ListRetiredResourcesResponse) + ListRetiredResourcesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListRetiredResourcesResponse"); + } + + // Use ListRetiredResourcesResponse.newBuilder() to construct. + private ListRetiredResourcesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListRetiredResourcesResponse() { + retiredResources_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_ListRetiredResourcesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_ListRetiredResourcesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.ListRetiredResourcesResponse.class, + com.google.cloud.kms.v1.ListRetiredResourcesResponse.Builder.class); + } + + public static final int RETIRED_RESOURCES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List retiredResources_; + + /** + * + * + *
            +   * The list of [RetiredResources][google.cloud.kms.v1.RetiredResource].
            +   * 
            + * + * repeated .google.cloud.kms.v1.RetiredResource retired_resources = 1; + */ + @java.lang.Override + public java.util.List getRetiredResourcesList() { + return retiredResources_; + } + + /** + * + * + *
            +   * The list of [RetiredResources][google.cloud.kms.v1.RetiredResource].
            +   * 
            + * + * repeated .google.cloud.kms.v1.RetiredResource retired_resources = 1; + */ + @java.lang.Override + public java.util.List + getRetiredResourcesOrBuilderList() { + return retiredResources_; + } + + /** + * + * + *
            +   * The list of [RetiredResources][google.cloud.kms.v1.RetiredResource].
            +   * 
            + * + * repeated .google.cloud.kms.v1.RetiredResource retired_resources = 1; + */ + @java.lang.Override + public int getRetiredResourcesCount() { + return retiredResources_.size(); + } + + /** + * + * + *
            +   * The list of [RetiredResources][google.cloud.kms.v1.RetiredResource].
            +   * 
            + * + * repeated .google.cloud.kms.v1.RetiredResource retired_resources = 1; + */ + @java.lang.Override + public com.google.cloud.kms.v1.RetiredResource getRetiredResources(int index) { + return retiredResources_.get(index); + } + + /** + * + * + *
            +   * The list of [RetiredResources][google.cloud.kms.v1.RetiredResource].
            +   * 
            + * + * repeated .google.cloud.kms.v1.RetiredResource retired_resources = 1; + */ + @java.lang.Override + public com.google.cloud.kms.v1.RetiredResourceOrBuilder getRetiredResourcesOrBuilder(int index) { + return retiredResources_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +   * A token to retrieve the next page of results. Pass this value in
            +   * [ListRetiredResourcesRequest.page_token][google.cloud.kms.v1.ListRetiredResourcesRequest.page_token]
            +   * to retrieve the next page of results.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * A token to retrieve the next page of results. Pass this value in
            +   * [ListRetiredResourcesRequest.page_token][google.cloud.kms.v1.ListRetiredResourcesRequest.page_token]
            +   * to retrieve the next page of results.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOTAL_SIZE_FIELD_NUMBER = 3; + private long totalSize_ = 0L; + + /** + * + * + *
            +   * The total number of [RetiredResources][google.cloud.kms.v1.RetiredResource]
            +   * that matched the query.
            +   * 
            + * + * int64 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public long getTotalSize() { + return totalSize_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < retiredResources_.size(); i++) { + output.writeMessage(1, retiredResources_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + if (totalSize_ != 0L) { + output.writeInt64(3, totalSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < retiredResources_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, retiredResources_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + if (totalSize_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, totalSize_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.kms.v1.ListRetiredResourcesResponse)) { + return super.equals(obj); + } + com.google.cloud.kms.v1.ListRetiredResourcesResponse other = + (com.google.cloud.kms.v1.ListRetiredResourcesResponse) obj; + + if (!getRetiredResourcesList().equals(other.getRetiredResourcesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRetiredResourcesCount() > 0) { + hash = (37 * hash) + RETIRED_RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getRetiredResourcesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalSize()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.kms.v1.ListRetiredResourcesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.kms.v1.ListRetiredResourcesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.kms.v1.ListRetiredResourcesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.kms.v1.ListRetiredResourcesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.kms.v1.ListRetiredResourcesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.kms.v1.ListRetiredResourcesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.kms.v1.ListRetiredResourcesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.kms.v1.ListRetiredResourcesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.kms.v1.ListRetiredResourcesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.kms.v1.ListRetiredResourcesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.kms.v1.ListRetiredResourcesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.kms.v1.ListRetiredResourcesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.kms.v1.ListRetiredResourcesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Response message for
            +   * [KeyManagementService.ListRetiredResources][google.cloud.kms.v1.KeyManagementService.ListRetiredResources].
            +   * 
            + * + * Protobuf type {@code google.cloud.kms.v1.ListRetiredResourcesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.kms.v1.ListRetiredResourcesResponse) + com.google.cloud.kms.v1.ListRetiredResourcesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_ListRetiredResourcesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_ListRetiredResourcesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.ListRetiredResourcesResponse.class, + com.google.cloud.kms.v1.ListRetiredResourcesResponse.Builder.class); + } + + // Construct using com.google.cloud.kms.v1.ListRetiredResourcesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (retiredResourcesBuilder_ == null) { + retiredResources_ = java.util.Collections.emptyList(); + } else { + retiredResources_ = null; + retiredResourcesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + totalSize_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.kms.v1.KmsProto + .internal_static_google_cloud_kms_v1_ListRetiredResourcesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.kms.v1.ListRetiredResourcesResponse getDefaultInstanceForType() { + return com.google.cloud.kms.v1.ListRetiredResourcesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.kms.v1.ListRetiredResourcesResponse build() { + com.google.cloud.kms.v1.ListRetiredResourcesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.kms.v1.ListRetiredResourcesResponse buildPartial() { + com.google.cloud.kms.v1.ListRetiredResourcesResponse result = + new com.google.cloud.kms.v1.ListRetiredResourcesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.kms.v1.ListRetiredResourcesResponse result) { + if (retiredResourcesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + retiredResources_ = java.util.Collections.unmodifiableList(retiredResources_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.retiredResources_ = retiredResources_; + } else { + result.retiredResources_ = retiredResourcesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.kms.v1.ListRetiredResourcesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalSize_ = totalSize_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.kms.v1.ListRetiredResourcesResponse) { + return mergeFrom((com.google.cloud.kms.v1.ListRetiredResourcesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.kms.v1.ListRetiredResourcesResponse other) { + if (other == com.google.cloud.kms.v1.ListRetiredResourcesResponse.getDefaultInstance()) + return this; + if (retiredResourcesBuilder_ == null) { + if (!other.retiredResources_.isEmpty()) { + if (retiredResources_.isEmpty()) { + retiredResources_ = other.retiredResources_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRetiredResourcesIsMutable(); + retiredResources_.addAll(other.retiredResources_); + } + onChanged(); + } + } else { + if (!other.retiredResources_.isEmpty()) { + if (retiredResourcesBuilder_.isEmpty()) { + retiredResourcesBuilder_.dispose(); + retiredResourcesBuilder_ = null; + retiredResources_ = other.retiredResources_; + bitField0_ = (bitField0_ & ~0x00000001); + retiredResourcesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRetiredResourcesFieldBuilder() + : null; + } else { + retiredResourcesBuilder_.addAllMessages(other.retiredResources_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTotalSize() != 0L) { + setTotalSize(other.getTotalSize()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.kms.v1.RetiredResource m = + input.readMessage( + com.google.cloud.kms.v1.RetiredResource.parser(), extensionRegistry); + if (retiredResourcesBuilder_ == null) { + ensureRetiredResourcesIsMutable(); + retiredResources_.add(m); + } else { + retiredResourcesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt64(); + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List retiredResources_ = + java.util.Collections.emptyList(); + + private void ensureRetiredResourcesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + retiredResources_ = + new java.util.ArrayList(retiredResources_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.kms.v1.RetiredResource, + com.google.cloud.kms.v1.RetiredResource.Builder, + com.google.cloud.kms.v1.RetiredResourceOrBuilder> + retiredResourcesBuilder_; + + /** + * + * + *
            +     * The list of [RetiredResources][google.cloud.kms.v1.RetiredResource].
            +     * 
            + * + * repeated .google.cloud.kms.v1.RetiredResource retired_resources = 1; + */ + public java.util.List getRetiredResourcesList() { + if (retiredResourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(retiredResources_); + } else { + return retiredResourcesBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * The list of [RetiredResources][google.cloud.kms.v1.RetiredResource].
            +     * 
            + * + * repeated .google.cloud.kms.v1.RetiredResource retired_resources = 1; + */ + public int getRetiredResourcesCount() { + if (retiredResourcesBuilder_ == null) { + return retiredResources_.size(); + } else { + return retiredResourcesBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * The list of [RetiredResources][google.cloud.kms.v1.RetiredResource].
            +     * 
            + * + * repeated .google.cloud.kms.v1.RetiredResource retired_resources = 1; + */ + public com.google.cloud.kms.v1.RetiredResource getRetiredResources(int index) { + if (retiredResourcesBuilder_ == null) { + return retiredResources_.get(index); + } else { + return retiredResourcesBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * The list of [RetiredResources][google.cloud.kms.v1.RetiredResource].
            +     * 
            + * + * repeated .google.cloud.kms.v1.RetiredResource retired_resources = 1; + */ + public Builder setRetiredResources(int index, com.google.cloud.kms.v1.RetiredResource value) { + if (retiredResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRetiredResourcesIsMutable(); + retiredResources_.set(index, value); + onChanged(); + } else { + retiredResourcesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The list of [RetiredResources][google.cloud.kms.v1.RetiredResource].
            +     * 
            + * + * repeated .google.cloud.kms.v1.RetiredResource retired_resources = 1; + */ + public Builder setRetiredResources( + int index, com.google.cloud.kms.v1.RetiredResource.Builder builderForValue) { + if (retiredResourcesBuilder_ == null) { + ensureRetiredResourcesIsMutable(); + retiredResources_.set(index, builderForValue.build()); + onChanged(); + } else { + retiredResourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of [RetiredResources][google.cloud.kms.v1.RetiredResource].
            +     * 
            + * + * repeated .google.cloud.kms.v1.RetiredResource retired_resources = 1; + */ + public Builder addRetiredResources(com.google.cloud.kms.v1.RetiredResource value) { + if (retiredResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRetiredResourcesIsMutable(); + retiredResources_.add(value); + onChanged(); + } else { + retiredResourcesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * The list of [RetiredResources][google.cloud.kms.v1.RetiredResource].
            +     * 
            + * + * repeated .google.cloud.kms.v1.RetiredResource retired_resources = 1; + */ + public Builder addRetiredResources(int index, com.google.cloud.kms.v1.RetiredResource value) { + if (retiredResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRetiredResourcesIsMutable(); + retiredResources_.add(index, value); + onChanged(); + } else { + retiredResourcesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The list of [RetiredResources][google.cloud.kms.v1.RetiredResource].
            +     * 
            + * + * repeated .google.cloud.kms.v1.RetiredResource retired_resources = 1; + */ + public Builder addRetiredResources( + com.google.cloud.kms.v1.RetiredResource.Builder builderForValue) { + if (retiredResourcesBuilder_ == null) { + ensureRetiredResourcesIsMutable(); + retiredResources_.add(builderForValue.build()); + onChanged(); + } else { + retiredResourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of [RetiredResources][google.cloud.kms.v1.RetiredResource].
            +     * 
            + * + * repeated .google.cloud.kms.v1.RetiredResource retired_resources = 1; + */ + public Builder addRetiredResources( + int index, com.google.cloud.kms.v1.RetiredResource.Builder builderForValue) { + if (retiredResourcesBuilder_ == null) { + ensureRetiredResourcesIsMutable(); + retiredResources_.add(index, builderForValue.build()); + onChanged(); + } else { + retiredResourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of [RetiredResources][google.cloud.kms.v1.RetiredResource].
            +     * 
            + * + * repeated .google.cloud.kms.v1.RetiredResource retired_resources = 1; + */ + public Builder addAllRetiredResources( + java.lang.Iterable values) { + if (retiredResourcesBuilder_ == null) { + ensureRetiredResourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, retiredResources_); + onChanged(); + } else { + retiredResourcesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * The list of [RetiredResources][google.cloud.kms.v1.RetiredResource].
            +     * 
            + * + * repeated .google.cloud.kms.v1.RetiredResource retired_resources = 1; + */ + public Builder clearRetiredResources() { + if (retiredResourcesBuilder_ == null) { + retiredResources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + retiredResourcesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * The list of [RetiredResources][google.cloud.kms.v1.RetiredResource].
            +     * 
            + * + * repeated .google.cloud.kms.v1.RetiredResource retired_resources = 1; + */ + public Builder removeRetiredResources(int index) { + if (retiredResourcesBuilder_ == null) { + ensureRetiredResourcesIsMutable(); + retiredResources_.remove(index); + onChanged(); + } else { + retiredResourcesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * The list of [RetiredResources][google.cloud.kms.v1.RetiredResource].
            +     * 
            + * + * repeated .google.cloud.kms.v1.RetiredResource retired_resources = 1; + */ + public com.google.cloud.kms.v1.RetiredResource.Builder getRetiredResourcesBuilder(int index) { + return internalGetRetiredResourcesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * The list of [RetiredResources][google.cloud.kms.v1.RetiredResource].
            +     * 
            + * + * repeated .google.cloud.kms.v1.RetiredResource retired_resources = 1; + */ + public com.google.cloud.kms.v1.RetiredResourceOrBuilder getRetiredResourcesOrBuilder( + int index) { + if (retiredResourcesBuilder_ == null) { + return retiredResources_.get(index); + } else { + return retiredResourcesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * The list of [RetiredResources][google.cloud.kms.v1.RetiredResource].
            +     * 
            + * + * repeated .google.cloud.kms.v1.RetiredResource retired_resources = 1; + */ + public java.util.List + getRetiredResourcesOrBuilderList() { + if (retiredResourcesBuilder_ != null) { + return retiredResourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(retiredResources_); + } + } + + /** + * + * + *
            +     * The list of [RetiredResources][google.cloud.kms.v1.RetiredResource].
            +     * 
            + * + * repeated .google.cloud.kms.v1.RetiredResource retired_resources = 1; + */ + public com.google.cloud.kms.v1.RetiredResource.Builder addRetiredResourcesBuilder() { + return internalGetRetiredResourcesFieldBuilder() + .addBuilder(com.google.cloud.kms.v1.RetiredResource.getDefaultInstance()); + } + + /** + * + * + *
            +     * The list of [RetiredResources][google.cloud.kms.v1.RetiredResource].
            +     * 
            + * + * repeated .google.cloud.kms.v1.RetiredResource retired_resources = 1; + */ + public com.google.cloud.kms.v1.RetiredResource.Builder addRetiredResourcesBuilder(int index) { + return internalGetRetiredResourcesFieldBuilder() + .addBuilder(index, com.google.cloud.kms.v1.RetiredResource.getDefaultInstance()); + } + + /** + * + * + *
            +     * The list of [RetiredResources][google.cloud.kms.v1.RetiredResource].
            +     * 
            + * + * repeated .google.cloud.kms.v1.RetiredResource retired_resources = 1; + */ + public java.util.List + getRetiredResourcesBuilderList() { + return internalGetRetiredResourcesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.kms.v1.RetiredResource, + com.google.cloud.kms.v1.RetiredResource.Builder, + com.google.cloud.kms.v1.RetiredResourceOrBuilder> + internalGetRetiredResourcesFieldBuilder() { + if (retiredResourcesBuilder_ == null) { + retiredResourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.kms.v1.RetiredResource, + com.google.cloud.kms.v1.RetiredResource.Builder, + com.google.cloud.kms.v1.RetiredResourceOrBuilder>( + retiredResources_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + retiredResources_ = null; + } + return retiredResourcesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +     * A token to retrieve the next page of results. Pass this value in
            +     * [ListRetiredResourcesRequest.page_token][google.cloud.kms.v1.ListRetiredResourcesRequest.page_token]
            +     * to retrieve the next page of results.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * A token to retrieve the next page of results. Pass this value in
            +     * [ListRetiredResourcesRequest.page_token][google.cloud.kms.v1.ListRetiredResourcesRequest.page_token]
            +     * to retrieve the next page of results.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * A token to retrieve the next page of results. Pass this value in
            +     * [ListRetiredResourcesRequest.page_token][google.cloud.kms.v1.ListRetiredResourcesRequest.page_token]
            +     * to retrieve the next page of results.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token to retrieve the next page of results. Pass this value in
            +     * [ListRetiredResourcesRequest.page_token][google.cloud.kms.v1.ListRetiredResourcesRequest.page_token]
            +     * to retrieve the next page of results.
            +     * 
            + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token to retrieve the next page of results. Pass this value in
            +     * [ListRetiredResourcesRequest.page_token][google.cloud.kms.v1.ListRetiredResourcesRequest.page_token]
            +     * to retrieve the next page of results.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private long totalSize_; + + /** + * + * + *
            +     * The total number of [RetiredResources][google.cloud.kms.v1.RetiredResource]
            +     * that matched the query.
            +     * 
            + * + * int64 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public long getTotalSize() { + return totalSize_; + } + + /** + * + * + *
            +     * The total number of [RetiredResources][google.cloud.kms.v1.RetiredResource]
            +     * that matched the query.
            +     * 
            + * + * int64 total_size = 3; + * + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(long value) { + + totalSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The total number of [RetiredResources][google.cloud.kms.v1.RetiredResource]
            +     * that matched the query.
            +     * 
            + * + * int64 total_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000004); + totalSize_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.ListRetiredResourcesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.ListRetiredResourcesResponse) + private static final com.google.cloud.kms.v1.ListRetiredResourcesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.kms.v1.ListRetiredResourcesResponse(); + } + + public static com.google.cloud.kms.v1.ListRetiredResourcesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRetiredResourcesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.kms.v1.ListRetiredResourcesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListRetiredResourcesResponseOrBuilder.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListRetiredResourcesResponseOrBuilder.java new file mode 100644 index 000000000000..abe223008d7e --- /dev/null +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListRetiredResourcesResponseOrBuilder.java @@ -0,0 +1,128 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/kms/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.kms.v1; + +@com.google.protobuf.Generated +public interface ListRetiredResourcesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.ListRetiredResourcesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The list of [RetiredResources][google.cloud.kms.v1.RetiredResource].
            +   * 
            + * + * repeated .google.cloud.kms.v1.RetiredResource retired_resources = 1; + */ + java.util.List getRetiredResourcesList(); + + /** + * + * + *
            +   * The list of [RetiredResources][google.cloud.kms.v1.RetiredResource].
            +   * 
            + * + * repeated .google.cloud.kms.v1.RetiredResource retired_resources = 1; + */ + com.google.cloud.kms.v1.RetiredResource getRetiredResources(int index); + + /** + * + * + *
            +   * The list of [RetiredResources][google.cloud.kms.v1.RetiredResource].
            +   * 
            + * + * repeated .google.cloud.kms.v1.RetiredResource retired_resources = 1; + */ + int getRetiredResourcesCount(); + + /** + * + * + *
            +   * The list of [RetiredResources][google.cloud.kms.v1.RetiredResource].
            +   * 
            + * + * repeated .google.cloud.kms.v1.RetiredResource retired_resources = 1; + */ + java.util.List + getRetiredResourcesOrBuilderList(); + + /** + * + * + *
            +   * The list of [RetiredResources][google.cloud.kms.v1.RetiredResource].
            +   * 
            + * + * repeated .google.cloud.kms.v1.RetiredResource retired_resources = 1; + */ + com.google.cloud.kms.v1.RetiredResourceOrBuilder getRetiredResourcesOrBuilder(int index); + + /** + * + * + *
            +   * A token to retrieve the next page of results. Pass this value in
            +   * [ListRetiredResourcesRequest.page_token][google.cloud.kms.v1.ListRetiredResourcesRequest.page_token]
            +   * to retrieve the next page of results.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
            +   * A token to retrieve the next page of results. Pass this value in
            +   * [ListRetiredResourcesRequest.page_token][google.cloud.kms.v1.ListRetiredResourcesRequest.page_token]
            +   * to retrieve the next page of results.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
            +   * The total number of [RetiredResources][google.cloud.kms.v1.RetiredResource]
            +   * that matched the query.
            +   * 
            + * + * int64 total_size = 3; + * + * @return The totalSize. + */ + long getTotalSize(); +} diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/RetiredResource.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/RetiredResource.java new file mode 100644 index 000000000000..7553f7c2acbb --- /dev/null +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/RetiredResource.java @@ -0,0 +1,1341 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/kms/v1/resources.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.kms.v1; + +/** + * + * + *
            + * A RetiredResource resource represents the record of a deleted
            + * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Its purpose is to provide
            + * visibility into retained user data and to prevent reuse of these names for
            + * new [CryptoKeys][google.cloud.kms.v1.CryptoKey].
            + * 
            + * + * Protobuf type {@code google.cloud.kms.v1.RetiredResource} + */ +@com.google.protobuf.Generated +public final class RetiredResource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.RetiredResource) + RetiredResourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RetiredResource"); + } + + // Use RetiredResource.newBuilder() to construct. + private RetiredResource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RetiredResource() { + name_ = ""; + originalResource_ = ""; + resourceType_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.kms.v1.KmsResourcesProto + .internal_static_google_cloud_kms_v1_RetiredResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsResourcesProto + .internal_static_google_cloud_kms_v1_RetiredResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.RetiredResource.class, + com.google.cloud.kms.v1.RetiredResource.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Output only. Identifier. The resource name for this
            +   * [RetiredResource][google.cloud.kms.v1.RetiredResource] in the format
            +   * `projects/*/locations/*/retiredResources/*`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. Identifier. The resource name for this
            +   * [RetiredResource][google.cloud.kms.v1.RetiredResource] in the format
            +   * `projects/*/locations/*/retiredResources/*`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORIGINAL_RESOURCE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object originalResource_ = ""; + + /** + * + * + *
            +   * Output only. The full resource name of the original
            +   * [CryptoKey][google.cloud.kms.v1.CryptoKey] that was deleted in the format
            +   * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
            +   * 
            + * + * string original_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The originalResource. + */ + @java.lang.Override + public java.lang.String getOriginalResource() { + java.lang.Object ref = originalResource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + originalResource_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. The full resource name of the original
            +   * [CryptoKey][google.cloud.kms.v1.CryptoKey] that was deleted in the format
            +   * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
            +   * 
            + * + * string original_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for originalResource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOriginalResourceBytes() { + java.lang.Object ref = originalResource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + originalResource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object resourceType_ = ""; + + /** + * + * + *
            +   * Output only. The resource type of the original deleted resource.
            +   * 
            + * + * string resource_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resourceType. + */ + @java.lang.Override + public java.lang.String getResourceType() { + java.lang.Object ref = resourceType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceType_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. The resource type of the original deleted resource.
            +   * 
            + * + * string resource_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resourceType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceTypeBytes() { + java.lang.Object ref = resourceType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DELETE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp deleteTime_; + + /** + * + * + *
            +   * Output only. The time at which the original resource was deleted and this
            +   * RetiredResource record was created.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + @java.lang.Override + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Output only. The time at which the original resource was deleted and this
            +   * RetiredResource record was created.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDeleteTime() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + + /** + * + * + *
            +   * Output only. The time at which the original resource was deleted and this
            +   * RetiredResource record was created.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(originalResource_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, originalResource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resourceType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, resourceType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getDeleteTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(originalResource_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, originalResource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resourceType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, resourceType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDeleteTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.kms.v1.RetiredResource)) { + return super.equals(obj); + } + com.google.cloud.kms.v1.RetiredResource other = (com.google.cloud.kms.v1.RetiredResource) obj; + + if (!getName().equals(other.getName())) return false; + if (!getOriginalResource().equals(other.getOriginalResource())) return false; + if (!getResourceType().equals(other.getResourceType())) return false; + if (hasDeleteTime() != other.hasDeleteTime()) return false; + if (hasDeleteTime()) { + if (!getDeleteTime().equals(other.getDeleteTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ORIGINAL_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getOriginalResource().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getResourceType().hashCode(); + if (hasDeleteTime()) { + hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDeleteTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.kms.v1.RetiredResource parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.kms.v1.RetiredResource parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.kms.v1.RetiredResource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.kms.v1.RetiredResource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.kms.v1.RetiredResource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.kms.v1.RetiredResource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.kms.v1.RetiredResource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.kms.v1.RetiredResource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.kms.v1.RetiredResource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.kms.v1.RetiredResource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.kms.v1.RetiredResource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.kms.v1.RetiredResource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.kms.v1.RetiredResource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * A RetiredResource resource represents the record of a deleted
            +   * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Its purpose is to provide
            +   * visibility into retained user data and to prevent reuse of these names for
            +   * new [CryptoKeys][google.cloud.kms.v1.CryptoKey].
            +   * 
            + * + * Protobuf type {@code google.cloud.kms.v1.RetiredResource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.kms.v1.RetiredResource) + com.google.cloud.kms.v1.RetiredResourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.kms.v1.KmsResourcesProto + .internal_static_google_cloud_kms_v1_RetiredResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsResourcesProto + .internal_static_google_cloud_kms_v1_RetiredResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.RetiredResource.class, + com.google.cloud.kms.v1.RetiredResource.Builder.class); + } + + // Construct using com.google.cloud.kms.v1.RetiredResource.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDeleteTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + originalResource_ = ""; + resourceType_ = ""; + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.kms.v1.KmsResourcesProto + .internal_static_google_cloud_kms_v1_RetiredResource_descriptor; + } + + @java.lang.Override + public com.google.cloud.kms.v1.RetiredResource getDefaultInstanceForType() { + return com.google.cloud.kms.v1.RetiredResource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.kms.v1.RetiredResource build() { + com.google.cloud.kms.v1.RetiredResource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.kms.v1.RetiredResource buildPartial() { + com.google.cloud.kms.v1.RetiredResource result = + new com.google.cloud.kms.v1.RetiredResource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.kms.v1.RetiredResource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.originalResource_ = originalResource_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.resourceType_ = resourceType_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.kms.v1.RetiredResource) { + return mergeFrom((com.google.cloud.kms.v1.RetiredResource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.kms.v1.RetiredResource other) { + if (other == com.google.cloud.kms.v1.RetiredResource.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOriginalResource().isEmpty()) { + originalResource_ = other.originalResource_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getResourceType().isEmpty()) { + resourceType_ = other.resourceType_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasDeleteTime()) { + mergeDeleteTime(other.getDeleteTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + originalResource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + resourceType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Output only. Identifier. The resource name for this
            +     * [RetiredResource][google.cloud.kms.v1.RetiredResource] in the format
            +     * `projects/*/locations/*/retiredResources/*`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. Identifier. The resource name for this
            +     * [RetiredResource][google.cloud.kms.v1.RetiredResource] in the format
            +     * `projects/*/locations/*/retiredResources/*`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. Identifier. The resource name for this
            +     * [RetiredResource][google.cloud.kms.v1.RetiredResource] in the format
            +     * `projects/*/locations/*/retiredResources/*`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Identifier. The resource name for this
            +     * [RetiredResource][google.cloud.kms.v1.RetiredResource] in the format
            +     * `projects/*/locations/*/retiredResources/*`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Identifier. The resource name for this
            +     * [RetiredResource][google.cloud.kms.v1.RetiredResource] in the format
            +     * `projects/*/locations/*/retiredResources/*`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object originalResource_ = ""; + + /** + * + * + *
            +     * Output only. The full resource name of the original
            +     * [CryptoKey][google.cloud.kms.v1.CryptoKey] that was deleted in the format
            +     * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
            +     * 
            + * + * string original_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The originalResource. + */ + public java.lang.String getOriginalResource() { + java.lang.Object ref = originalResource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + originalResource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. The full resource name of the original
            +     * [CryptoKey][google.cloud.kms.v1.CryptoKey] that was deleted in the format
            +     * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
            +     * 
            + * + * string original_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for originalResource. + */ + public com.google.protobuf.ByteString getOriginalResourceBytes() { + java.lang.Object ref = originalResource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + originalResource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. The full resource name of the original
            +     * [CryptoKey][google.cloud.kms.v1.CryptoKey] that was deleted in the format
            +     * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
            +     * 
            + * + * string original_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The originalResource to set. + * @return This builder for chaining. + */ + public Builder setOriginalResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + originalResource_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The full resource name of the original
            +     * [CryptoKey][google.cloud.kms.v1.CryptoKey] that was deleted in the format
            +     * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
            +     * 
            + * + * string original_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearOriginalResource() { + originalResource_ = getDefaultInstance().getOriginalResource(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The full resource name of the original
            +     * [CryptoKey][google.cloud.kms.v1.CryptoKey] that was deleted in the format
            +     * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
            +     * 
            + * + * string original_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for originalResource to set. + * @return This builder for chaining. + */ + public Builder setOriginalResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + originalResource_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object resourceType_ = ""; + + /** + * + * + *
            +     * Output only. The resource type of the original deleted resource.
            +     * 
            + * + * string resource_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resourceType. + */ + public java.lang.String getResourceType() { + java.lang.Object ref = resourceType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. The resource type of the original deleted resource.
            +     * 
            + * + * string resource_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resourceType. + */ + public com.google.protobuf.ByteString getResourceTypeBytes() { + java.lang.Object ref = resourceType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. The resource type of the original deleted resource.
            +     * 
            + * + * string resource_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resourceType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The resource type of the original deleted resource.
            +     * 
            + * + * string resource_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearResourceType() { + resourceType_ = getDefaultInstance().getResourceType(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The resource type of the original deleted resource.
            +     * 
            + * + * string resource_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp deleteTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; + + /** + * + * + *
            +     * Output only. The time at which the original resource was deleted and this
            +     * RetiredResource record was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +     * Output only. The time at which the original resource was deleted and this
            +     * RetiredResource record was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + public com.google.protobuf.Timestamp getDeleteTime() { + if (deleteTimeBuilder_ == null) { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } else { + return deleteTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. The time at which the original resource was deleted and this
            +     * RetiredResource record was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deleteTime_ = value; + } else { + deleteTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time at which the original resource was deleted and this
            +     * RetiredResource record was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (deleteTimeBuilder_ == null) { + deleteTime_ = builderForValue.build(); + } else { + deleteTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time at which the original resource was deleted and this
            +     * RetiredResource record was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getDeleteTimeBuilder().mergeFrom(value); + } else { + deleteTime_ = value; + } + } else { + deleteTimeBuilder_.mergeFrom(value); + } + if (deleteTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. The time at which the original resource was deleted and this
            +     * RetiredResource record was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDeleteTime() { + bitField0_ = (bitField0_ & ~0x00000008); + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time at which the original resource was deleted and this
            +     * RetiredResource record was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetDeleteTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. The time at which the original resource was deleted and this
            +     * RetiredResource record was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + if (deleteTimeBuilder_ != null) { + return deleteTimeBuilder_.getMessageOrBuilder(); + } else { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } + } + + /** + * + * + *
            +     * Output only. The time at which the original resource was deleted and this
            +     * RetiredResource record was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetDeleteTimeFieldBuilder() { + if (deleteTimeBuilder_ == null) { + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); + deleteTime_ = null; + } + return deleteTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.RetiredResource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.RetiredResource) + private static final com.google.cloud.kms.v1.RetiredResource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.kms.v1.RetiredResource(); + } + + public static com.google.cloud.kms.v1.RetiredResource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetiredResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } 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; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.kms.v1.RetiredResource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/RetiredResourceName.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/RetiredResourceName.java new file mode 100644 index 000000000000..f72d2fc468f4 --- /dev/null +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/RetiredResourceName.java @@ -0,0 +1,227 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.kms.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class RetiredResourceName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_RETIRED_RESOURCE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/retiredResources/{retired_resource}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String retiredResource; + + @Deprecated + protected RetiredResourceName() { + project = null; + location = null; + retiredResource = null; + } + + private RetiredResourceName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + retiredResource = Preconditions.checkNotNull(builder.getRetiredResource()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getRetiredResource() { + return retiredResource; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static RetiredResourceName of(String project, String location, String retiredResource) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setRetiredResource(retiredResource) + .build(); + } + + public static String format(String project, String location, String retiredResource) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setRetiredResource(retiredResource) + .build() + .toString(); + } + + public static RetiredResourceName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_RETIRED_RESOURCE.validatedMatch( + formattedString, "RetiredResourceName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("retired_resource")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (RetiredResourceName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_RETIRED_RESOURCE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (retiredResource != null) { + fieldMapBuilder.put("retired_resource", retiredResource); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_RETIRED_RESOURCE.instantiate( + "project", project, "location", location, "retired_resource", retiredResource); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + RetiredResourceName that = ((RetiredResourceName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.retiredResource, that.retiredResource); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(retiredResource); + return h; + } + + /** Builder for projects/{project}/locations/{location}/retiredResources/{retired_resource}. */ + public static class Builder { + private String project; + private String location; + private String retiredResource; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getRetiredResource() { + return retiredResource; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setRetiredResource(String retiredResource) { + this.retiredResource = retiredResource; + return this; + } + + private Builder(RetiredResourceName retiredResourceName) { + this.project = retiredResourceName.project; + this.location = retiredResourceName.location; + this.retiredResource = retiredResourceName.retiredResource; + } + + public RetiredResourceName build() { + return new RetiredResourceName(this); + } + } +} diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/RetiredResourceOrBuilder.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/RetiredResourceOrBuilder.java new file mode 100644 index 000000000000..c564e152489b --- /dev/null +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/RetiredResourceOrBuilder.java @@ -0,0 +1,161 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/kms/v1/resources.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.kms.v1; + +@com.google.protobuf.Generated +public interface RetiredResourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.RetiredResource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Output only. Identifier. The resource name for this
            +   * [RetiredResource][google.cloud.kms.v1.RetiredResource] in the format
            +   * `projects/*/locations/*/retiredResources/*`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Output only. Identifier. The resource name for this
            +   * [RetiredResource][google.cloud.kms.v1.RetiredResource] in the format
            +   * `projects/*/locations/*/retiredResources/*`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Output only. The full resource name of the original
            +   * [CryptoKey][google.cloud.kms.v1.CryptoKey] that was deleted in the format
            +   * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
            +   * 
            + * + * string original_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The originalResource. + */ + java.lang.String getOriginalResource(); + + /** + * + * + *
            +   * Output only. The full resource name of the original
            +   * [CryptoKey][google.cloud.kms.v1.CryptoKey] that was deleted in the format
            +   * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
            +   * 
            + * + * string original_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for originalResource. + */ + com.google.protobuf.ByteString getOriginalResourceBytes(); + + /** + * + * + *
            +   * Output only. The resource type of the original deleted resource.
            +   * 
            + * + * string resource_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resourceType. + */ + java.lang.String getResourceType(); + + /** + * + * + *
            +   * Output only. The resource type of the original deleted resource.
            +   * 
            + * + * string resource_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resourceType. + */ + com.google.protobuf.ByteString getResourceTypeBytes(); + + /** + * + * + *
            +   * Output only. The time at which the original resource was deleted and this
            +   * RetiredResource record was created.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + boolean hasDeleteTime(); + + /** + * + * + *
            +   * Output only. The time at which the original resource was deleted and this
            +   * RetiredResource record was created.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + com.google.protobuf.Timestamp getDeleteTime(); + + /** + * + * + *
            +   * Output only. The time at which the original resource was deleted and this
            +   * RetiredResource record was created.
            +   * 
            + * + * .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); +} diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/resources.proto b/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/resources.proto index b23747de5d8a..10e11bd2e8cc 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/resources.proto +++ b/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/resources.proto @@ -1040,6 +1040,40 @@ message KeyAccessJustificationsPolicy { repeated AccessReason allowed_access_reasons = 1; } +// A RetiredResource resource represents the record of a deleted +// [CryptoKey][google.cloud.kms.v1.CryptoKey]. Its purpose is to provide +// visibility into retained user data and to prevent reuse of these names for +// new [CryptoKeys][google.cloud.kms.v1.CryptoKey]. +message RetiredResource { + option (google.api.resource) = { + type: "cloudkms.googleapis.com/RetiredResource" + pattern: "projects/{project}/locations/{location}/retiredResources/{retired_resource}" + plural: "retiredResources" + singular: "retiredResource" + }; + + // Output only. Identifier. The resource name for this + // [RetiredResource][google.cloud.kms.v1.RetiredResource] in the format + // `projects/*/locations/*/retiredResources/*`. + string name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = IDENTIFIER + ]; + + // Output only. The full resource name of the original + // [CryptoKey][google.cloud.kms.v1.CryptoKey] that was deleted in the format + // `projects/*/locations/*/keyRings/*/cryptoKeys/*`. + string original_resource = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The resource type of the original deleted resource. + string resource_type = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time at which the original resource was deleted and this + // RetiredResource record was created. + google.protobuf.Timestamp delete_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] specifies how // cryptographic operations are performed. For more information, see [Protection // levels] (https://cloud.google.com/kms/docs/algorithms#protection_levels). diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/service.proto b/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/service.proto index 74467de2a720..858cff51e126 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/service.proto +++ b/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/service.proto @@ -21,6 +21,8 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/kms/v1/resources.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/wrappers.proto"; @@ -82,6 +84,17 @@ service KeyManagementService { option (google.api.method_signature) = "parent"; } + // Lists the [RetiredResources][google.cloud.kms.v1.RetiredResource] which are + // the records of deleted [CryptoKeys][google.cloud.kms.v1.CryptoKey]. + // RetiredResources prevent the reuse of these resource names after deletion. + rpc ListRetiredResources(ListRetiredResourcesRequest) + returns (ListRetiredResourcesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/retiredResources" + }; + option (google.api.method_signature) = "parent"; + } + // Returns metadata for a given [KeyRing][google.cloud.kms.v1.KeyRing]. rpc GetKeyRing(GetKeyRingRequest) returns (KeyRing) { option (google.api.http) = { @@ -131,6 +144,16 @@ service KeyManagementService { option (google.api.method_signature) = "name"; } + // Retrieves a specific [RetiredResource][google.cloud.kms.v1.RetiredResource] + // resource, which represents the record of a deleted + // [CryptoKey][google.cloud.kms.v1.CryptoKey]. + rpc GetRetiredResource(GetRetiredResourceRequest) returns (RetiredResource) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/retiredResources/*}" + }; + option (google.api.method_signature) = "name"; + } + // Create a new [KeyRing][google.cloud.kms.v1.KeyRing] in a given Project and // Location. rpc CreateKeyRing(CreateKeyRingRequest) returns (KeyRing) { @@ -170,6 +193,47 @@ service KeyManagementService { option (google.api.method_signature) = "parent,crypto_key_version"; } + // Permanently deletes the given [CryptoKey][google.cloud.kms.v1.CryptoKey]. + // All child [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] must + // have been previously deleted using + // [KeyManagementService.DeleteCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.DeleteCryptoKeyVersion]. + // The specified crypto key will be immediately and permanently deleted upon + // calling this method. This action cannot be undone. + rpc DeleteCryptoKey(DeleteCryptoKeyRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteCryptoKeyMetadata" + }; + } + + // Permanently deletes the given + // [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. Only possible if + // the version has not been previously imported and if its + // [state][google.cloud.kms.v1.CryptoKeyVersion.state] is one of + // [DESTROYED][CryptoKeyVersionState.DESTROYED], + // [IMPORT_FAILED][CryptoKeyVersionState.IMPORT_FAILED], or + // [GENERATION_FAILED][CryptoKeyVersionState.GENERATION_FAILED]. + // Successfully imported + // [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] cannot be deleted + // at this time. The specified version will be immediately and permanently + // deleted upon calling this method. This action cannot be undone. + rpc DeleteCryptoKeyVersion(DeleteCryptoKeyVersionRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteCryptoKeyVersionMetadata" + }; + } + // Import wrapped key material into a // [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. // @@ -575,6 +639,34 @@ message ListImportJobsRequest { string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; } +// Request message for +// [KeyManagementService.ListRetiredResources][google.cloud.kms.v1.KeyManagementService.ListRetiredResources]. +message ListRetiredResourcesRequest { + // Required. The project-specific location holding the + // [RetiredResources][google.cloud.kms.v1.RetiredResource], in the format + // `projects/*/locations/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "cloudkms.googleapis.com/RetiredResource" + } + ]; + + // Optional. Optional limit on the number of + // [RetiredResources][google.cloud.kms.v1.RetiredResource] to be included in + // the response. Further + // [RetiredResources][google.cloud.kms.v1.RetiredResource] can subsequently be + // obtained by including the + // [ListRetiredResourcesResponse.next_page_token][google.cloud.kms.v1.ListRetiredResourcesResponse.next_page_token] + // in a subsequent request. If unspecified, the server will pick an + // appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional pagination token, returned earlier via + // [ListRetiredResourcesResponse.next_page_token][google.cloud.kms.v1.ListRetiredResourcesResponse.next_page_token]. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + // Response message for // [KeyManagementService.ListKeyRings][google.cloud.kms.v1.KeyManagementService.ListKeyRings]. message ListKeyRingsResponse { @@ -656,6 +748,22 @@ message ListImportJobsResponse { int32 total_size = 3; } +// Response message for +// [KeyManagementService.ListRetiredResources][google.cloud.kms.v1.KeyManagementService.ListRetiredResources]. +message ListRetiredResourcesResponse { + // The list of [RetiredResources][google.cloud.kms.v1.RetiredResource]. + repeated RetiredResource retired_resources = 1; + + // A token to retrieve the next page of results. Pass this value in + // [ListRetiredResourcesRequest.page_token][google.cloud.kms.v1.ListRetiredResourcesRequest.page_token] + // to retrieve the next page of results. + string next_page_token = 2; + + // The total number of [RetiredResources][google.cloud.kms.v1.RetiredResource] + // that matched the query. + int64 total_size = 3; +} + // Request message for // [KeyManagementService.GetKeyRing][google.cloud.kms.v1.KeyManagementService.GetKeyRing]. message GetKeyRingRequest { @@ -731,6 +839,19 @@ message GetImportJobRequest { ]; } +// Request message for +// [KeyManagementService.GetRetiredResource][google.cloud.kms.v1.KeyManagementService.GetRetiredResource]. +message GetRetiredResourceRequest { + // Required. The [name][google.cloud.kms.v1.RetiredResource.name] of the + // [RetiredResource][google.cloud.kms.v1.RetiredResource] to get. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/RetiredResource" + } + ]; +} + // Request message for // [KeyManagementService.CreateKeyRing][google.cloud.kms.v1.KeyManagementService.CreateKeyRing]. message CreateKeyRingRequest { @@ -803,6 +924,32 @@ message CreateCryptoKeyVersionRequest { [(google.api.field_behavior) = REQUIRED]; } +// Request message for +// [KeyManagementService.DeleteCryptoKey][google.cloud.kms.v1.KeyManagementService.DeleteCryptoKey]. +message DeleteCryptoKeyRequest { + // Required. The [name][google.cloud.kms.v1.CryptoKey.name] of the + // [CryptoKey][google.cloud.kms.v1.CryptoKey] to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKey" + } + ]; +} + +// Request message for +// [KeyManagementService.DeleteCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.DeleteCryptoKeyVersion]. +message DeleteCryptoKeyVersionRequest { + // Required. The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the + // [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKeyVersion" + } + ]; +} + // Request message for // [KeyManagementService.ImportCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.ImportCryptoKeyVersion]. message ImportCryptoKeyVersionRequest { @@ -2212,3 +2359,24 @@ message LocationMetadata { // can be created in this location. bool hsm_single_tenant_available = 3; } + +// Represents the metadata of the +// [KeyManagementService.DeleteCryptoKey][google.cloud.kms.v1.KeyManagementService.DeleteCryptoKey] +// long-running operation. +message DeleteCryptoKeyMetadata { + // Output only. The resource name of the + // [RetiredResource][google.cloud.kms.v1.RetiredResource] created as a result + // of this operation, in the format + // `projects/*/locations/*/retiredResources/*`. + string retired_resource = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/RetiredResource" + } + ]; +} + +// Represents the metadata of the +// [KeyManagementService.DeleteCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.DeleteCryptoKeyVersion] +// long-running operation. +message DeleteCryptoKeyVersionMetadata {} diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/deletecryptokey/AsyncDeleteCryptoKey.java b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/deletecryptokey/AsyncDeleteCryptoKey.java new file mode 100644 index 000000000000..4c73267a2f6f --- /dev/null +++ b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/deletecryptokey/AsyncDeleteCryptoKey.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.kms.v1.samples; + +// [START cloudkms_v1_generated_KeyManagementService_DeleteCryptoKey_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.DeleteCryptoKeyRequest; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteCryptoKey { + + public static void main(String[] args) throws Exception { + asyncDeleteCryptoKey(); + } + + public static void asyncDeleteCryptoKey() 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 (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + DeleteCryptoKeyRequest request = + DeleteCryptoKeyRequest.newBuilder() + .setName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .build(); + ApiFuture future = + keyManagementServiceClient.deleteCryptoKeyCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END cloudkms_v1_generated_KeyManagementService_DeleteCryptoKey_async] diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/deletecryptokey/AsyncDeleteCryptoKeyLRO.java b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/deletecryptokey/AsyncDeleteCryptoKeyLRO.java new file mode 100644 index 000000000000..8a412c3673ab --- /dev/null +++ b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/deletecryptokey/AsyncDeleteCryptoKeyLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.kms.v1.samples; + +// [START cloudkms_v1_generated_KeyManagementService_DeleteCryptoKey_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.DeleteCryptoKeyMetadata; +import com.google.cloud.kms.v1.DeleteCryptoKeyRequest; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteCryptoKeyLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteCryptoKeyLRO(); + } + + public static void asyncDeleteCryptoKeyLRO() 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 (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + DeleteCryptoKeyRequest request = + DeleteCryptoKeyRequest.newBuilder() + .setName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .build(); + OperationFuture future = + keyManagementServiceClient.deleteCryptoKeyOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END cloudkms_v1_generated_KeyManagementService_DeleteCryptoKey_LRO_async] diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/deletecryptokey/SyncDeleteCryptoKey.java b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/deletecryptokey/SyncDeleteCryptoKey.java new file mode 100644 index 000000000000..225f171d915d --- /dev/null +++ b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/deletecryptokey/SyncDeleteCryptoKey.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.kms.v1.samples; + +// [START cloudkms_v1_generated_KeyManagementService_DeleteCryptoKey_sync] +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.DeleteCryptoKeyRequest; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCryptoKey { + + public static void main(String[] args) throws Exception { + syncDeleteCryptoKey(); + } + + public static void syncDeleteCryptoKey() 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 (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + DeleteCryptoKeyRequest request = + DeleteCryptoKeyRequest.newBuilder() + .setName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .build(); + keyManagementServiceClient.deleteCryptoKeyAsync(request).get(); + } + } +} +// [END cloudkms_v1_generated_KeyManagementService_DeleteCryptoKey_sync] diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/deletecryptokey/SyncDeleteCryptoKeyCryptokeyname.java b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/deletecryptokey/SyncDeleteCryptoKeyCryptokeyname.java new file mode 100644 index 000000000000..5fd801ba13bc --- /dev/null +++ b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/deletecryptokey/SyncDeleteCryptoKeyCryptokeyname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.kms.v1.samples; + +// [START cloudkms_v1_generated_KeyManagementService_DeleteCryptoKey_Cryptokeyname_sync] +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCryptoKeyCryptokeyname { + + public static void main(String[] args) throws Exception { + syncDeleteCryptoKeyCryptokeyname(); + } + + public static void syncDeleteCryptoKeyCryptokeyname() 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 (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + CryptoKeyName name = + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]"); + keyManagementServiceClient.deleteCryptoKeyAsync(name).get(); + } + } +} +// [END cloudkms_v1_generated_KeyManagementService_DeleteCryptoKey_Cryptokeyname_sync] diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/deletecryptokey/SyncDeleteCryptoKeyString.java b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/deletecryptokey/SyncDeleteCryptoKeyString.java new file mode 100644 index 000000000000..cb2094522123 --- /dev/null +++ b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/deletecryptokey/SyncDeleteCryptoKeyString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.kms.v1.samples; + +// [START cloudkms_v1_generated_KeyManagementService_DeleteCryptoKey_String_sync] +import com.google.cloud.kms.v1.CryptoKeyName; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCryptoKeyString { + + public static void main(String[] args) throws Exception { + syncDeleteCryptoKeyString(); + } + + public static void syncDeleteCryptoKeyString() 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 (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + String name = + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]").toString(); + keyManagementServiceClient.deleteCryptoKeyAsync(name).get(); + } + } +} +// [END cloudkms_v1_generated_KeyManagementService_DeleteCryptoKey_String_sync] diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/deletecryptokeyversion/AsyncDeleteCryptoKeyVersion.java b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/deletecryptokeyversion/AsyncDeleteCryptoKeyVersion.java new file mode 100644 index 000000000000..e24d605c76ec --- /dev/null +++ b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/deletecryptokeyversion/AsyncDeleteCryptoKeyVersion.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.kms.v1.samples; + +// [START cloudkms_v1_generated_KeyManagementService_DeleteCryptoKeyVersion_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.kms.v1.CryptoKeyVersionName; +import com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteCryptoKeyVersion { + + public static void main(String[] args) throws Exception { + asyncDeleteCryptoKeyVersion(); + } + + public static void asyncDeleteCryptoKeyVersion() 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 (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + DeleteCryptoKeyVersionRequest request = + DeleteCryptoKeyVersionRequest.newBuilder() + .setName( + CryptoKeyVersionName.of( + "[PROJECT]", + "[LOCATION]", + "[KEY_RING]", + "[CRYPTO_KEY]", + "[CRYPTO_KEY_VERSION]") + .toString()) + .build(); + ApiFuture future = + keyManagementServiceClient.deleteCryptoKeyVersionCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END cloudkms_v1_generated_KeyManagementService_DeleteCryptoKeyVersion_async] diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/deletecryptokeyversion/AsyncDeleteCryptoKeyVersionLRO.java b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/deletecryptokeyversion/AsyncDeleteCryptoKeyVersionLRO.java new file mode 100644 index 000000000000..17c3a8bbb2e7 --- /dev/null +++ b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/deletecryptokeyversion/AsyncDeleteCryptoKeyVersionLRO.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.kms.v1.samples; + +// [START cloudkms_v1_generated_KeyManagementService_DeleteCryptoKeyVersion_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.kms.v1.CryptoKeyVersionName; +import com.google.cloud.kms.v1.DeleteCryptoKeyVersionMetadata; +import com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteCryptoKeyVersionLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteCryptoKeyVersionLRO(); + } + + public static void asyncDeleteCryptoKeyVersionLRO() 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 (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + DeleteCryptoKeyVersionRequest request = + DeleteCryptoKeyVersionRequest.newBuilder() + .setName( + CryptoKeyVersionName.of( + "[PROJECT]", + "[LOCATION]", + "[KEY_RING]", + "[CRYPTO_KEY]", + "[CRYPTO_KEY_VERSION]") + .toString()) + .build(); + OperationFuture future = + keyManagementServiceClient.deleteCryptoKeyVersionOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END cloudkms_v1_generated_KeyManagementService_DeleteCryptoKeyVersion_LRO_async] diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/deletecryptokeyversion/SyncDeleteCryptoKeyVersion.java b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/deletecryptokeyversion/SyncDeleteCryptoKeyVersion.java new file mode 100644 index 000000000000..d6281936f611 --- /dev/null +++ b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/deletecryptokeyversion/SyncDeleteCryptoKeyVersion.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.kms.v1.samples; + +// [START cloudkms_v1_generated_KeyManagementService_DeleteCryptoKeyVersion_sync] +import com.google.cloud.kms.v1.CryptoKeyVersionName; +import com.google.cloud.kms.v1.DeleteCryptoKeyVersionRequest; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCryptoKeyVersion { + + public static void main(String[] args) throws Exception { + syncDeleteCryptoKeyVersion(); + } + + public static void syncDeleteCryptoKeyVersion() 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 (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + DeleteCryptoKeyVersionRequest request = + DeleteCryptoKeyVersionRequest.newBuilder() + .setName( + CryptoKeyVersionName.of( + "[PROJECT]", + "[LOCATION]", + "[KEY_RING]", + "[CRYPTO_KEY]", + "[CRYPTO_KEY_VERSION]") + .toString()) + .build(); + keyManagementServiceClient.deleteCryptoKeyVersionAsync(request).get(); + } + } +} +// [END cloudkms_v1_generated_KeyManagementService_DeleteCryptoKeyVersion_sync] diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/deletecryptokeyversion/SyncDeleteCryptoKeyVersionCryptokeyversionname.java b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/deletecryptokeyversion/SyncDeleteCryptoKeyVersionCryptokeyversionname.java new file mode 100644 index 000000000000..bd92bcdf1d75 --- /dev/null +++ b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/deletecryptokeyversion/SyncDeleteCryptoKeyVersionCryptokeyversionname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.kms.v1.samples; + +// [START cloudkms_v1_generated_KeyManagementService_DeleteCryptoKeyVersion_Cryptokeyversionname_sync] +import com.google.cloud.kms.v1.CryptoKeyVersionName; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCryptoKeyVersionCryptokeyversionname { + + public static void main(String[] args) throws Exception { + syncDeleteCryptoKeyVersionCryptokeyversionname(); + } + + public static void syncDeleteCryptoKeyVersionCryptokeyversionname() 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 (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + CryptoKeyVersionName name = + CryptoKeyVersionName.of( + "[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]"); + keyManagementServiceClient.deleteCryptoKeyVersionAsync(name).get(); + } + } +} +// [END cloudkms_v1_generated_KeyManagementService_DeleteCryptoKeyVersion_Cryptokeyversionname_sync] diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/deletecryptokeyversion/SyncDeleteCryptoKeyVersionString.java b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/deletecryptokeyversion/SyncDeleteCryptoKeyVersionString.java new file mode 100644 index 000000000000..dbd5a88f16a5 --- /dev/null +++ b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/deletecryptokeyversion/SyncDeleteCryptoKeyVersionString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.kms.v1.samples; + +// [START cloudkms_v1_generated_KeyManagementService_DeleteCryptoKeyVersion_String_sync] +import com.google.cloud.kms.v1.CryptoKeyVersionName; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCryptoKeyVersionString { + + public static void main(String[] args) throws Exception { + syncDeleteCryptoKeyVersionString(); + } + + public static void syncDeleteCryptoKeyVersionString() 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 (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + String name = + CryptoKeyVersionName.of( + "[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]") + .toString(); + keyManagementServiceClient.deleteCryptoKeyVersionAsync(name).get(); + } + } +} +// [END cloudkms_v1_generated_KeyManagementService_DeleteCryptoKeyVersion_String_sync] diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getretiredresource/AsyncGetRetiredResource.java b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getretiredresource/AsyncGetRetiredResource.java new file mode 100644 index 000000000000..b0b387cb64b4 --- /dev/null +++ b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getretiredresource/AsyncGetRetiredResource.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.kms.v1.samples; + +// [START cloudkms_v1_generated_KeyManagementService_GetRetiredResource_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.kms.v1.GetRetiredResourceRequest; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.RetiredResource; +import com.google.cloud.kms.v1.RetiredResourceName; + +public class AsyncGetRetiredResource { + + public static void main(String[] args) throws Exception { + asyncGetRetiredResource(); + } + + public static void asyncGetRetiredResource() 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 (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + GetRetiredResourceRequest request = + GetRetiredResourceRequest.newBuilder() + .setName( + RetiredResourceName.of("[PROJECT]", "[LOCATION]", "[RETIRED_RESOURCE]") + .toString()) + .build(); + ApiFuture future = + keyManagementServiceClient.getRetiredResourceCallable().futureCall(request); + // Do something. + RetiredResource response = future.get(); + } + } +} +// [END cloudkms_v1_generated_KeyManagementService_GetRetiredResource_async] diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getretiredresource/SyncGetRetiredResource.java b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getretiredresource/SyncGetRetiredResource.java new file mode 100644 index 000000000000..ffaf400409ab --- /dev/null +++ b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getretiredresource/SyncGetRetiredResource.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.kms.v1.samples; + +// [START cloudkms_v1_generated_KeyManagementService_GetRetiredResource_sync] +import com.google.cloud.kms.v1.GetRetiredResourceRequest; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.RetiredResource; +import com.google.cloud.kms.v1.RetiredResourceName; + +public class SyncGetRetiredResource { + + public static void main(String[] args) throws Exception { + syncGetRetiredResource(); + } + + public static void syncGetRetiredResource() 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 (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + GetRetiredResourceRequest request = + GetRetiredResourceRequest.newBuilder() + .setName( + RetiredResourceName.of("[PROJECT]", "[LOCATION]", "[RETIRED_RESOURCE]") + .toString()) + .build(); + RetiredResource response = keyManagementServiceClient.getRetiredResource(request); + } + } +} +// [END cloudkms_v1_generated_KeyManagementService_GetRetiredResource_sync] diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getretiredresource/SyncGetRetiredResourceRetiredresourcename.java b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getretiredresource/SyncGetRetiredResourceRetiredresourcename.java new file mode 100644 index 000000000000..fa805bcaa459 --- /dev/null +++ b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getretiredresource/SyncGetRetiredResourceRetiredresourcename.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.kms.v1.samples; + +// [START cloudkms_v1_generated_KeyManagementService_GetRetiredResource_Retiredresourcename_sync] +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.RetiredResource; +import com.google.cloud.kms.v1.RetiredResourceName; + +public class SyncGetRetiredResourceRetiredresourcename { + + public static void main(String[] args) throws Exception { + syncGetRetiredResourceRetiredresourcename(); + } + + public static void syncGetRetiredResourceRetiredresourcename() 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 (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + RetiredResourceName name = + RetiredResourceName.of("[PROJECT]", "[LOCATION]", "[RETIRED_RESOURCE]"); + RetiredResource response = keyManagementServiceClient.getRetiredResource(name); + } + } +} +// [END cloudkms_v1_generated_KeyManagementService_GetRetiredResource_Retiredresourcename_sync] diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getretiredresource/SyncGetRetiredResourceString.java b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getretiredresource/SyncGetRetiredResourceString.java new file mode 100644 index 000000000000..acf0b589cb74 --- /dev/null +++ b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/getretiredresource/SyncGetRetiredResourceString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.kms.v1.samples; + +// [START cloudkms_v1_generated_KeyManagementService_GetRetiredResource_String_sync] +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.RetiredResource; +import com.google.cloud.kms.v1.RetiredResourceName; + +public class SyncGetRetiredResourceString { + + public static void main(String[] args) throws Exception { + syncGetRetiredResourceString(); + } + + public static void syncGetRetiredResourceString() 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 (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + String name = + RetiredResourceName.of("[PROJECT]", "[LOCATION]", "[RETIRED_RESOURCE]").toString(); + RetiredResource response = keyManagementServiceClient.getRetiredResource(name); + } + } +} +// [END cloudkms_v1_generated_KeyManagementService_GetRetiredResource_String_sync] diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listretiredresources/AsyncListRetiredResources.java b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listretiredresources/AsyncListRetiredResources.java new file mode 100644 index 000000000000..aa06db0a8dea --- /dev/null +++ b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listretiredresources/AsyncListRetiredResources.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.kms.v1.samples; + +// [START cloudkms_v1_generated_KeyManagementService_ListRetiredResources_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.ListRetiredResourcesRequest; +import com.google.cloud.kms.v1.LocationName; +import com.google.cloud.kms.v1.RetiredResource; + +public class AsyncListRetiredResources { + + public static void main(String[] args) throws Exception { + asyncListRetiredResources(); + } + + public static void asyncListRetiredResources() 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 (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + ListRetiredResourcesRequest request = + ListRetiredResourcesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + keyManagementServiceClient.listRetiredResourcesPagedCallable().futureCall(request); + // Do something. + for (RetiredResource element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudkms_v1_generated_KeyManagementService_ListRetiredResources_async] diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listretiredresources/AsyncListRetiredResourcesPaged.java b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listretiredresources/AsyncListRetiredResourcesPaged.java new file mode 100644 index 000000000000..b8f76ee98630 --- /dev/null +++ b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listretiredresources/AsyncListRetiredResourcesPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.kms.v1.samples; + +// [START cloudkms_v1_generated_KeyManagementService_ListRetiredResources_Paged_async] +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.ListRetiredResourcesRequest; +import com.google.cloud.kms.v1.ListRetiredResourcesResponse; +import com.google.cloud.kms.v1.LocationName; +import com.google.cloud.kms.v1.RetiredResource; +import com.google.common.base.Strings; + +public class AsyncListRetiredResourcesPaged { + + public static void main(String[] args) throws Exception { + asyncListRetiredResourcesPaged(); + } + + public static void asyncListRetiredResourcesPaged() 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 (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + ListRetiredResourcesRequest request = + ListRetiredResourcesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListRetiredResourcesResponse response = + keyManagementServiceClient.listRetiredResourcesCallable().call(request); + for (RetiredResource element : response.getRetiredResourcesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END cloudkms_v1_generated_KeyManagementService_ListRetiredResources_Paged_async] diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listretiredresources/SyncListRetiredResources.java b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listretiredresources/SyncListRetiredResources.java new file mode 100644 index 000000000000..8a971b1a5c74 --- /dev/null +++ b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listretiredresources/SyncListRetiredResources.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.kms.v1.samples; + +// [START cloudkms_v1_generated_KeyManagementService_ListRetiredResources_sync] +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.ListRetiredResourcesRequest; +import com.google.cloud.kms.v1.LocationName; +import com.google.cloud.kms.v1.RetiredResource; + +public class SyncListRetiredResources { + + public static void main(String[] args) throws Exception { + syncListRetiredResources(); + } + + public static void syncListRetiredResources() 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 (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + ListRetiredResourcesRequest request = + ListRetiredResourcesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (RetiredResource element : + keyManagementServiceClient.listRetiredResources(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudkms_v1_generated_KeyManagementService_ListRetiredResources_sync] diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listretiredresources/SyncListRetiredResourcesLocationname.java b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listretiredresources/SyncListRetiredResourcesLocationname.java new file mode 100644 index 000000000000..d1d76b958ee0 --- /dev/null +++ b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listretiredresources/SyncListRetiredResourcesLocationname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.kms.v1.samples; + +// [START cloudkms_v1_generated_KeyManagementService_ListRetiredResources_Locationname_sync] +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.LocationName; +import com.google.cloud.kms.v1.RetiredResource; + +public class SyncListRetiredResourcesLocationname { + + public static void main(String[] args) throws Exception { + syncListRetiredResourcesLocationname(); + } + + public static void syncListRetiredResourcesLocationname() 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 (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (RetiredResource element : + keyManagementServiceClient.listRetiredResources(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudkms_v1_generated_KeyManagementService_ListRetiredResources_Locationname_sync] diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listretiredresources/SyncListRetiredResourcesString.java b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listretiredresources/SyncListRetiredResourcesString.java new file mode 100644 index 000000000000..56b539067e95 --- /dev/null +++ b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservice/listretiredresources/SyncListRetiredResourcesString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.kms.v1.samples; + +// [START cloudkms_v1_generated_KeyManagementService_ListRetiredResources_String_sync] +import com.google.cloud.kms.v1.KeyManagementServiceClient; +import com.google.cloud.kms.v1.LocationName; +import com.google.cloud.kms.v1.RetiredResource; + +public class SyncListRetiredResourcesString { + + public static void main(String[] args) throws Exception { + syncListRetiredResourcesString(); + } + + public static void syncListRetiredResourcesString() 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 (KeyManagementServiceClient keyManagementServiceClient = + KeyManagementServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (RetiredResource element : + keyManagementServiceClient.listRetiredResources(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudkms_v1_generated_KeyManagementService_ListRetiredResources_String_sync] diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservicesettings/deletecryptokey/SyncDeleteCryptoKey.java b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservicesettings/deletecryptokey/SyncDeleteCryptoKey.java new file mode 100644 index 000000000000..53a8a2de0c13 --- /dev/null +++ b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/keymanagementservicesettings/deletecryptokey/SyncDeleteCryptoKey.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.kms.v1.samples; + +// [START cloudkms_v1_generated_KeyManagementServiceSettings_DeleteCryptoKey_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.cloud.kms.v1.KeyManagementServiceSettings; +import java.time.Duration; + +public class SyncDeleteCryptoKey { + + public static void main(String[] args) throws Exception { + syncDeleteCryptoKey(); + } + + public static void syncDeleteCryptoKey() 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 + KeyManagementServiceSettings.Builder keyManagementServiceSettingsBuilder = + KeyManagementServiceSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + keyManagementServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END cloudkms_v1_generated_KeyManagementServiceSettings_DeleteCryptoKey_sync] diff --git a/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/stub/keymanagementservicestubsettings/deletecryptokey/SyncDeleteCryptoKey.java b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/stub/keymanagementservicestubsettings/deletecryptokey/SyncDeleteCryptoKey.java new file mode 100644 index 000000000000..3c9048b69891 --- /dev/null +++ b/java-kms/samples/snippets/generated/com/google/cloud/kms/v1/stub/keymanagementservicestubsettings/deletecryptokey/SyncDeleteCryptoKey.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.kms.v1.stub.samples; + +// [START cloudkms_v1_generated_KeyManagementServiceStubSettings_DeleteCryptoKey_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.cloud.kms.v1.stub.KeyManagementServiceStubSettings; +import java.time.Duration; + +public class SyncDeleteCryptoKey { + + public static void main(String[] args) throws Exception { + syncDeleteCryptoKey(); + } + + public static void syncDeleteCryptoKey() 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 + KeyManagementServiceStubSettings.Builder keyManagementServiceSettingsBuilder = + KeyManagementServiceStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + keyManagementServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END cloudkms_v1_generated_KeyManagementServiceStubSettings_DeleteCryptoKey_sync] diff --git a/java-kmsinventory/README.md b/java-kmsinventory/README.md index 25a4b6531166..a2607bf55b49 100644 --- a/java-kmsinventory/README.md +++ b/java-kmsinventory/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-kmsinventory - 0.71.0 + 0.72.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-kmsinventory:0.71.0' +implementation 'com.google.cloud:google-cloud-kmsinventory:0.72.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-kmsinventory" % "0.71.0" +libraryDependencies += "com.google.cloud" % "google-cloud-kmsinventory" % "0.72.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-kmsinventory/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-kmsinventory.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kmsinventory/0.71.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kmsinventory/0.72.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-kmsinventory/google-cloud-kmsinventory-bom/pom.xml b/java-kmsinventory/google-cloud-kmsinventory-bom/pom.xml index 1c2110692d36..e7b2512892f0 100644 --- a/java-kmsinventory/google-cloud-kmsinventory-bom/pom.xml +++ b/java-kmsinventory/google-cloud-kmsinventory-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-kmsinventory-bom - 0.73.0-SNAPSHOT + 0.74.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-kmsinventory - 0.73.0-SNAPSHOT + 0.74.0 com.google.api.grpc grpc-google-cloud-kmsinventory-v1 - 0.73.0-SNAPSHOT + 0.74.0 com.google.api.grpc proto-google-cloud-kmsinventory-v1 - 0.73.0-SNAPSHOT + 0.74.0
            diff --git a/java-kmsinventory/google-cloud-kmsinventory/pom.xml b/java-kmsinventory/google-cloud-kmsinventory/pom.xml index fe04c7ce38ad..157cb950e936 100644 --- a/java-kmsinventory/google-cloud-kmsinventory/pom.xml +++ b/java-kmsinventory/google-cloud-kmsinventory/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-kmsinventory - 0.73.0-SNAPSHOT + 0.74.0 jar Google KMS Inventory API KMS Inventory API KMS Inventory API. com.google.cloud google-cloud-kmsinventory-parent - 0.73.0-SNAPSHOT + 0.74.0 google-cloud-kmsinventory diff --git a/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/pom.xml b/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/pom.xml index ee69ef000df9..d98e005a231c 100644 --- a/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/pom.xml +++ b/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-kmsinventory-v1 - 0.73.0-SNAPSHOT + 0.74.0 grpc-google-cloud-kmsinventory-v1 GRPC library for google-cloud-kmsinventory com.google.cloud google-cloud-kmsinventory-parent - 0.73.0-SNAPSHOT + 0.74.0 diff --git a/java-kmsinventory/pom.xml b/java-kmsinventory/pom.xml index 493a43a20a09..fc6c350ad1ef 100644 --- a/java-kmsinventory/pom.xml +++ b/java-kmsinventory/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-kmsinventory-parent pom - 0.73.0-SNAPSHOT + 0.74.0 Google KMS Inventory API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,22 +29,22 @@ com.google.cloud google-cloud-kmsinventory - 0.73.0-SNAPSHOT + 0.74.0 com.google.api.grpc grpc-google-cloud-kmsinventory-v1 - 0.73.0-SNAPSHOT + 0.74.0 com.google.api.grpc proto-google-cloud-kmsinventory-v1 - 0.73.0-SNAPSHOT + 0.74.0 com.google.api.grpc proto-google-cloud-kms-v1 - 0.178.0-SNAPSHOT + 0.179.0 diff --git a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/pom.xml b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/pom.xml index 74325318a3bd..a1e95dca4336 100644 --- a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/pom.xml +++ b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-kmsinventory-v1 - 0.73.0-SNAPSHOT + 0.74.0 proto-google-cloud-kmsinventory-v1 Proto library for google-cloud-kmsinventory com.google.cloud google-cloud-kmsinventory-parent - 0.73.0-SNAPSHOT + 0.74.0 diff --git a/java-language/README.md b/java-language/README.md index 44d1e92ab467..88d7f9838feb 100644 --- a/java-language/README.md +++ b/java-language/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-language - 2.83.0 + 2.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-language:2.83.0' +implementation 'com.google.cloud:google-cloud-language:2.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-language" % "2.83.0" +libraryDependencies += "com.google.cloud" % "google-cloud-language" % "2.84.0" ``` ## Authentication @@ -207,7 +207,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-language/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-language.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-language/2.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-language/2.84.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-language/google-cloud-language-bom/pom.xml b/java-language/google-cloud-language-bom/pom.xml index 4110aaf752f6..b233fa2a03a6 100644 --- a/java-language/google-cloud-language-bom/pom.xml +++ b/java-language/google-cloud-language-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-language-bom - 2.85.0-SNAPSHOT + 2.86.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -23,37 +23,37 @@ com.google.cloud google-cloud-language - 2.85.0-SNAPSHOT + 2.86.0 com.google.api.grpc grpc-google-cloud-language-v1 - 2.85.0-SNAPSHOT + 2.86.0 com.google.api.grpc grpc-google-cloud-language-v1beta2 - 0.172.0-SNAPSHOT + 0.173.0 com.google.api.grpc grpc-google-cloud-language-v2 - 2.85.0-SNAPSHOT + 2.86.0 com.google.api.grpc proto-google-cloud-language-v1 - 2.85.0-SNAPSHOT + 2.86.0 com.google.api.grpc proto-google-cloud-language-v1beta2 - 0.172.0-SNAPSHOT + 0.173.0 com.google.api.grpc proto-google-cloud-language-v2 - 2.85.0-SNAPSHOT + 2.86.0 diff --git a/java-language/google-cloud-language/pom.xml b/java-language/google-cloud-language/pom.xml index c300dd10e7e4..cad78115c3fb 100644 --- a/java-language/google-cloud-language/pom.xml +++ b/java-language/google-cloud-language/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-language - 2.85.0-SNAPSHOT + 2.86.0 jar Google Cloud Natural Language Java idiomatic client for Google Clould Natural Language com.google.cloud google-cloud-language-parent - 2.85.0-SNAPSHOT + 2.86.0 google-cloud-language diff --git a/java-language/grpc-google-cloud-language-v1/pom.xml b/java-language/grpc-google-cloud-language-v1/pom.xml index 53ec3fea7b13..59eb684cefb7 100644 --- a/java-language/grpc-google-cloud-language-v1/pom.xml +++ b/java-language/grpc-google-cloud-language-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-language-v1 - 2.85.0-SNAPSHOT + 2.86.0 grpc-google-cloud-language-v1 GRPC library for grpc-google-cloud-language-v1 com.google.cloud google-cloud-language-parent - 2.85.0-SNAPSHOT + 2.86.0 diff --git a/java-language/grpc-google-cloud-language-v1beta2/pom.xml b/java-language/grpc-google-cloud-language-v1beta2/pom.xml index 9f45248d5edd..6a63e1139557 100644 --- a/java-language/grpc-google-cloud-language-v1beta2/pom.xml +++ b/java-language/grpc-google-cloud-language-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-language-v1beta2 - 0.172.0-SNAPSHOT + 0.173.0 grpc-google-cloud-language-v1beta2 GRPC library for grpc-google-cloud-language-v1beta2 com.google.cloud google-cloud-language-parent - 2.85.0-SNAPSHOT + 2.86.0 diff --git a/java-language/grpc-google-cloud-language-v2/pom.xml b/java-language/grpc-google-cloud-language-v2/pom.xml index db915abfecf0..a123e203fa23 100644 --- a/java-language/grpc-google-cloud-language-v2/pom.xml +++ b/java-language/grpc-google-cloud-language-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-language-v2 - 2.85.0-SNAPSHOT + 2.86.0 grpc-google-cloud-language-v2 GRPC library for google-cloud-language com.google.cloud google-cloud-language-parent - 2.85.0-SNAPSHOT + 2.86.0 diff --git a/java-language/pom.xml b/java-language/pom.xml index a0343be1b3ed..ca4016330bf3 100644 --- a/java-language/pom.xml +++ b/java-language/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-language-parent pom - 2.85.0-SNAPSHOT + 2.86.0 Google Cloud Natural Language Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.api.grpc proto-google-cloud-language-v1 - 2.85.0-SNAPSHOT + 2.86.0 com.google.api.grpc proto-google-cloud-language-v2 - 2.85.0-SNAPSHOT + 2.86.0 com.google.api.grpc grpc-google-cloud-language-v2 - 2.85.0-SNAPSHOT + 2.86.0 com.google.api.grpc proto-google-cloud-language-v1beta2 - 0.172.0-SNAPSHOT + 0.173.0 com.google.api.grpc grpc-google-cloud-language-v1 - 2.85.0-SNAPSHOT + 2.86.0 com.google.api.grpc grpc-google-cloud-language-v1beta2 - 0.172.0-SNAPSHOT + 0.173.0 com.google.cloud google-cloud-language - 2.85.0-SNAPSHOT + 2.86.0 diff --git a/java-language/proto-google-cloud-language-v1/pom.xml b/java-language/proto-google-cloud-language-v1/pom.xml index 7eb77b936ec6..e18fc7be91ed 100644 --- a/java-language/proto-google-cloud-language-v1/pom.xml +++ b/java-language/proto-google-cloud-language-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-language-v1 - 2.85.0-SNAPSHOT + 2.86.0 proto-google-cloud-language-v1 PROTO library for proto-google-cloud-language-v1 com.google.cloud google-cloud-language-parent - 2.85.0-SNAPSHOT + 2.86.0 diff --git a/java-language/proto-google-cloud-language-v1beta2/pom.xml b/java-language/proto-google-cloud-language-v1beta2/pom.xml index 41df51742e0e..e8e74b1de9ad 100644 --- a/java-language/proto-google-cloud-language-v1beta2/pom.xml +++ b/java-language/proto-google-cloud-language-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-language-v1beta2 - 0.172.0-SNAPSHOT + 0.173.0 proto-google-cloud-language-v1beta2 PROTO library for proto-google-cloud-language-v1beta2 com.google.cloud google-cloud-language-parent - 2.85.0-SNAPSHOT + 2.86.0 diff --git a/java-language/proto-google-cloud-language-v2/pom.xml b/java-language/proto-google-cloud-language-v2/pom.xml index c3cddb0ecd7f..0e626b2c7b55 100644 --- a/java-language/proto-google-cloud-language-v2/pom.xml +++ b/java-language/proto-google-cloud-language-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-language-v2 - 2.85.0-SNAPSHOT + 2.86.0 proto-google-cloud-language-v2 Proto library for google-cloud-language com.google.cloud google-cloud-language-parent - 2.85.0-SNAPSHOT + 2.86.0 diff --git a/java-licensemanager/README.md b/java-licensemanager/README.md index 965f5c9ba289..e29204981c2a 100644 --- a/java-licensemanager/README.md +++ b/java-licensemanager/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-licensemanager - 0.15.0 + 0.16.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-licensemanager:0.15.0' +implementation 'com.google.cloud:google-cloud-licensemanager:0.16.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-licensemanager" % "0.15.0" +libraryDependencies += "com.google.cloud" % "google-cloud-licensemanager" % "0.16.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-licensemanager/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-licensemanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-licensemanager/0.15.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-licensemanager/0.16.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-licensemanager/google-cloud-licensemanager-bom/pom.xml b/java-licensemanager/google-cloud-licensemanager-bom/pom.xml index 6d0b3b6091f7..188d0b638cc6 100644 --- a/java-licensemanager/google-cloud-licensemanager-bom/pom.xml +++ b/java-licensemanager/google-cloud-licensemanager-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-licensemanager-bom - 0.17.0-SNAPSHOT + 0.18.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-licensemanager - 0.17.0-SNAPSHOT + 0.18.0 com.google.api.grpc grpc-google-cloud-licensemanager-v1 - 0.17.0-SNAPSHOT + 0.18.0 com.google.api.grpc proto-google-cloud-licensemanager-v1 - 0.17.0-SNAPSHOT + 0.18.0 diff --git a/java-licensemanager/google-cloud-licensemanager/pom.xml b/java-licensemanager/google-cloud-licensemanager/pom.xml index 1a4040bff2a5..f8a4072e9d55 100644 --- a/java-licensemanager/google-cloud-licensemanager/pom.xml +++ b/java-licensemanager/google-cloud-licensemanager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-licensemanager - 0.17.0-SNAPSHOT + 0.18.0 jar Google License Manager API License Manager API License Manager is a tool to manage and track third-party licenses on Google Cloud. com.google.cloud google-cloud-licensemanager-parent - 0.17.0-SNAPSHOT + 0.18.0 google-cloud-licensemanager diff --git a/java-licensemanager/grpc-google-cloud-licensemanager-v1/pom.xml b/java-licensemanager/grpc-google-cloud-licensemanager-v1/pom.xml index a7b8e64fa15d..e42c5db3c81b 100644 --- a/java-licensemanager/grpc-google-cloud-licensemanager-v1/pom.xml +++ b/java-licensemanager/grpc-google-cloud-licensemanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-licensemanager-v1 - 0.17.0-SNAPSHOT + 0.18.0 grpc-google-cloud-licensemanager-v1 GRPC library for google-cloud-licensemanager com.google.cloud google-cloud-licensemanager-parent - 0.17.0-SNAPSHOT + 0.18.0 diff --git a/java-licensemanager/pom.xml b/java-licensemanager/pom.xml index 5de4913089cb..ea677b5e0720 100644 --- a/java-licensemanager/pom.xml +++ b/java-licensemanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-licensemanager-parent pom - 0.17.0-SNAPSHOT + 0.18.0 Google License Manager API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-licensemanager - 0.17.0-SNAPSHOT + 0.18.0 com.google.api.grpc grpc-google-cloud-licensemanager-v1 - 0.17.0-SNAPSHOT + 0.18.0 com.google.api.grpc proto-google-cloud-licensemanager-v1 - 0.17.0-SNAPSHOT + 0.18.0 diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/pom.xml b/java-licensemanager/proto-google-cloud-licensemanager-v1/pom.xml index 8237e516c976..aad055f8c238 100644 --- a/java-licensemanager/proto-google-cloud-licensemanager-v1/pom.xml +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-licensemanager-v1 - 0.17.0-SNAPSHOT + 0.18.0 proto-google-cloud-licensemanager-v1 Proto library for google-cloud-licensemanager com.google.cloud google-cloud-licensemanager-parent - 0.17.0-SNAPSHOT + 0.18.0 diff --git a/java-life-sciences/README.md b/java-life-sciences/README.md index c176fe7a5bfc..3b561690715e 100644 --- a/java-life-sciences/README.md +++ b/java-life-sciences/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-life-sciences - 0.84.0 + 0.85.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-life-sciences:0.84.0' +implementation 'com.google.cloud:google-cloud-life-sciences:0.85.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-life-sciences" % "0.84.0" +libraryDependencies += "com.google.cloud" % "google-cloud-life-sciences" % "0.85.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-life-sciences/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-life-sciences.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-life-sciences/0.84.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-life-sciences/0.85.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-life-sciences/google-cloud-life-sciences-bom/pom.xml b/java-life-sciences/google-cloud-life-sciences-bom/pom.xml index 9a75155c2c6d..6bf06a71136d 100644 --- a/java-life-sciences/google-cloud-life-sciences-bom/pom.xml +++ b/java-life-sciences/google-cloud-life-sciences-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-life-sciences-bom - 0.86.0-SNAPSHOT + 0.87.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-life-sciences - 0.86.0-SNAPSHOT + 0.87.0 com.google.api.grpc grpc-google-cloud-life-sciences-v2beta - 0.86.0-SNAPSHOT + 0.87.0 com.google.api.grpc proto-google-cloud-life-sciences-v2beta - 0.86.0-SNAPSHOT + 0.87.0 diff --git a/java-life-sciences/google-cloud-life-sciences/pom.xml b/java-life-sciences/google-cloud-life-sciences/pom.xml index bcf817434522..830f2a501a1c 100644 --- a/java-life-sciences/google-cloud-life-sciences/pom.xml +++ b/java-life-sciences/google-cloud-life-sciences/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-life-sciences - 0.86.0-SNAPSHOT + 0.87.0 jar Google Cloud Life Sciences Cloud Life Sciences is a suite of services and tools for managing, processing, and transforming life sciences data. com.google.cloud google-cloud-life-sciences-parent - 0.86.0-SNAPSHOT + 0.87.0 google-cloud-life-sciences diff --git a/java-life-sciences/grpc-google-cloud-life-sciences-v2beta/pom.xml b/java-life-sciences/grpc-google-cloud-life-sciences-v2beta/pom.xml index fe8a93bd23ca..52b9237e0419 100644 --- a/java-life-sciences/grpc-google-cloud-life-sciences-v2beta/pom.xml +++ b/java-life-sciences/grpc-google-cloud-life-sciences-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-life-sciences-v2beta - 0.86.0-SNAPSHOT + 0.87.0 grpc-google-cloud-life-sciences-v2beta GRPC library for google-cloud-life-sciences com.google.cloud google-cloud-life-sciences-parent - 0.86.0-SNAPSHOT + 0.87.0 diff --git a/java-life-sciences/pom.xml b/java-life-sciences/pom.xml index ae32b4b5c459..75b20c794679 100644 --- a/java-life-sciences/pom.xml +++ b/java-life-sciences/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-life-sciences-parent pom - 0.86.0-SNAPSHOT + 0.87.0 Google Cloud Life Sciences Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-life-sciences - 0.86.0-SNAPSHOT + 0.87.0 com.google.api.grpc grpc-google-cloud-life-sciences-v2beta - 0.86.0-SNAPSHOT + 0.87.0 com.google.api.grpc proto-google-cloud-life-sciences-v2beta - 0.86.0-SNAPSHOT + 0.87.0 diff --git a/java-life-sciences/proto-google-cloud-life-sciences-v2beta/pom.xml b/java-life-sciences/proto-google-cloud-life-sciences-v2beta/pom.xml index f674601e5a72..b03888bec673 100644 --- a/java-life-sciences/proto-google-cloud-life-sciences-v2beta/pom.xml +++ b/java-life-sciences/proto-google-cloud-life-sciences-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-life-sciences-v2beta - 0.86.0-SNAPSHOT + 0.87.0 proto-google-cloud-life-sciences-v2beta Proto library for google-cloud-life-sciences com.google.cloud google-cloud-life-sciences-parent - 0.86.0-SNAPSHOT + 0.87.0 diff --git a/java-locationfinder/README.md b/java-locationfinder/README.md index 91e959e76786..67288b1e84bb 100644 --- a/java-locationfinder/README.md +++ b/java-locationfinder/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.75.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-locationfinder - 0.7.0 + 0.8.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-locationfinder:0.7.0' +implementation 'com.google.cloud:google-cloud-locationfinder:0.8.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-locationfinder" % "0.7.0" +libraryDependencies += "com.google.cloud" % "google-cloud-locationfinder" % "0.8.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-locationfinder/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-locationfinder.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-locationfinder/0.7.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-locationfinder/0.8.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-locationfinder/google-cloud-locationfinder-bom/pom.xml b/java-locationfinder/google-cloud-locationfinder-bom/pom.xml index 9d7118f56c11..81dd4f3b2d7e 100644 --- a/java-locationfinder/google-cloud-locationfinder-bom/pom.xml +++ b/java-locationfinder/google-cloud-locationfinder-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-locationfinder-bom - 0.9.0-SNAPSHOT + 0.10.0 pom com.google.cloud google-cloud-pom-parent - 1.78.0-SNAPSHOT + 1.79.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-locationfinder - 0.9.0-SNAPSHOT + 0.10.0 com.google.api.grpc grpc-google-cloud-locationfinder-v1 - 0.9.0-SNAPSHOT + 0.10.0 com.google.api.grpc proto-google-cloud-locationfinder-v1 - 0.9.0-SNAPSHOT + 0.10.0 diff --git a/java-locationfinder/google-cloud-locationfinder/pom.xml b/java-locationfinder/google-cloud-locationfinder/pom.xml index 7ac30b06577a..b1f9f53cc0fc 100644 --- a/java-locationfinder/google-cloud-locationfinder/pom.xml +++ b/java-locationfinder/google-cloud-locationfinder/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-locationfinder - 0.9.0-SNAPSHOT + 0.10.0 jar Google Cloud Location Finder API Cloud Location Finder API Cloud Location Finder is a public API that offers a repository of all Google Cloud and Google Distributed Cloud locations, as well as cloud locations for other cloud providers. com.google.cloud google-cloud-locationfinder-parent - 0.9.0-SNAPSHOT + 0.10.0 google-cloud-locationfinder diff --git a/java-locationfinder/grpc-google-cloud-locationfinder-v1/pom.xml b/java-locationfinder/grpc-google-cloud-locationfinder-v1/pom.xml index 3c6af3520c72..1a311b33ac98 100644 --- a/java-locationfinder/grpc-google-cloud-locationfinder-v1/pom.xml +++ b/java-locationfinder/grpc-google-cloud-locationfinder-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-locationfinder-v1 - 0.9.0-SNAPSHOT + 0.10.0 grpc-google-cloud-locationfinder-v1 GRPC library for google-cloud-locationfinder com.google.cloud google-cloud-locationfinder-parent - 0.9.0-SNAPSHOT + 0.10.0 diff --git a/java-locationfinder/pom.xml b/java-locationfinder/pom.xml index 6f7a38170e18..6e6f6df4c99e 100644 --- a/java-locationfinder/pom.xml +++ b/java-locationfinder/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-locationfinder-parent pom - 0.9.0-SNAPSHOT + 0.10.0 Google Cloud Location Finder API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.78.0-SNAPSHOT + 1.79.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-locationfinder - 0.9.0-SNAPSHOT + 0.10.0 com.google.api.grpc grpc-google-cloud-locationfinder-v1 - 0.9.0-SNAPSHOT + 0.10.0 com.google.api.grpc proto-google-cloud-locationfinder-v1 - 0.9.0-SNAPSHOT + 0.10.0 diff --git a/java-locationfinder/proto-google-cloud-locationfinder-v1/pom.xml b/java-locationfinder/proto-google-cloud-locationfinder-v1/pom.xml index fc624b66d143..ec72c806c4bd 100644 --- a/java-locationfinder/proto-google-cloud-locationfinder-v1/pom.xml +++ b/java-locationfinder/proto-google-cloud-locationfinder-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-locationfinder-v1 - 0.9.0-SNAPSHOT + 0.10.0 proto-google-cloud-locationfinder-v1 Proto library for google-cloud-locationfinder com.google.cloud google-cloud-locationfinder-parent - 0.9.0-SNAPSHOT + 0.10.0 diff --git a/java-logging/.OwlBot-hermetic.yaml b/java-logging/.OwlBot-hermetic.yaml new file mode 100644 index 000000000000..146fffa7eccd --- /dev/null +++ b/java-logging/.OwlBot-hermetic.yaml @@ -0,0 +1,27 @@ +# Copyright 2021 Google LLC +# +# Licensed under the Apache License, Version 2.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: +- /java-logging/grpc-google-.*/src +- /java-logging/proto-google-.*/src +- /java-logging/google-.*/src/v.* +deep-preserve-regex: +- /java-logging/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java +deep-copy-regex: +- source: /google/logging/(v.*)/.*-java/proto-google-.*/src + dest: /owl-bot-staging/java-logging/$1/proto-google-cloud-logging-$1/src +- source: /google/logging/(v.*)/.*-java/grpc-google-.*/src + dest: /owl-bot-staging/java-logging/$1/grpc-google-cloud-logging-$1/src +- source: /google/logging/(v.*)/.*-java/gapic-google-.*/src + dest: /owl-bot-staging/java-logging/$1/google-cloud-logging/src diff --git a/java-logging/.cloudbuild/samples_build.yaml b/java-logging/.cloudbuild/samples_build.yaml new file mode 100644 index 000000000000..018fdd1fcf9c --- /dev/null +++ b/java-logging/.cloudbuild/samples_build.yaml @@ -0,0 +1,32 @@ +steps: +- name: gcr.io/cloud-devrel-public-resources/java8 + entrypoint: ls + args: [ + '-alt', + ] +- name: gcr.io/cloud-devrel-public-resources/java8 + entrypoint: curl + args: [ + '--header', + 'Metadata-Flavor: Google', + 'http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/email' + ] +- name: gcr.io/cloud-devrel-public-resources/java8 + entrypoint: pwd +- name: gcr.io/cloud-devrel-public-resources/java8 + entrypoint: bash + args: [ + '.kokoro/build.sh' + ] + env: + - 'JOB_TYPE=samples' + - 'GOOGLE_CLOUD_PROJECT=cloud-java-ci-sample' +- name: gcr.io/cloud-devrel-public-resources/java8 + entrypoint: echo + args: [ + 'Sample job succeeded', + ] +timeout: 3600s +options: + defaultLogsBucketBehavior: REGIONAL_USER_OWNED_BUCKET + diff --git a/java-logging/.readme-partials.yaml b/java-logging/.readme-partials.yaml new file mode 100644 index 000000000000..27cf6092f535 --- /dev/null +++ b/java-logging/.readme-partials.yaml @@ -0,0 +1,243 @@ +custom_content: | + #### Creating an authorized service object + + To make requests to Cloud Logging, you must create a service object with valid credentials. + You can then make API calls by calling methods on the Logging service object. + You can obtain credentials by using [Application Default Credentials](https://developers.google.com/identity/protocols/application-default-credentials). + Or you can use a [Service Account](https://cloud.google.com/iam/docs/service-accounts) which is a recommended way to obtain credentials. + The credentials can be automatically inferred from your [environment](https://cloud.google.com/docs/authentication/getting-started#setting_the_environment_variable). + Then you only need the following code to create your service object: + + ```java + import com.google.cloud.logging.Logging; + import com.google.cloud.logging.LoggingOptions; + + LoggingOptions options = LoggingOptions.getDefaultInstance(); + try(Logging logging = options.getService()) { + // use logging here + } + ``` + + For other options, see the [Authentication](https://github.com/googleapis/google-cloud-java#authentication) page. + The service object should be granted permissions to make API calls. + Each API call describes the permissions under Authorized Scopes section. + See [Logging API](https://cloud.google.com/logging/docs/reference/v2/rest) to find the required list of permissions or consult with [Access control guide](https://cloud.google.com/logging/docs/access-control) for predefined IAM roles that can be granted to the Logging service object. + + #### Creating a metric + With Logging you can create logs-based metrics. Logs-based metrics allow to keep track of the number + of log messages associated to specific events. Add the following imports at the top of your file: + + ```java + import com.google.cloud.logging.Metric; + import com.google.cloud.logging.MetricInfo; + ``` + + Then, to create the metric, use the following code: + + ```java + MetricInfo metricInfo = MetricInfo.newBuilder("test-metric", "severity >= ERROR") + .setDescription("Log entries with severity higher or equal to ERROR") + .build(); + logging.create(metricInfo); + ``` + + #### Writing log entries + For an interactive tutorial click + + [![Guide Me](_static/guide-me.svg)](https://console.cloud.google.com/?walkthrough_id=logging__logging-java) + + With Logging you can also write custom log entries. Add the following imports at the top of your + file: + + ```java + import com.google.cloud.MonitoredResource; + import com.google.cloud.logging.LogEntry; + import com.google.cloud.logging.Logging; + import com.google.cloud.logging.Payload.StringPayload; + + import java.util.Collections; + ``` + + Then, to write the log entries, use the following code: + + ```java + LogEntry firstEntry = LogEntry.newBuilder(StringPayload.of("message")) + .setLogName("test-log") + .setResource(MonitoredResource.newBuilder("global") + .addLabel("project_id", options.getProjectId()) + .build()) + .build(); + logging.write(Collections.singleton(firstEntry)); + ``` + + The library supports writing log entries synchronously and asynchronously. + In the synchronous mode each call to `write()` method results in a consequent call to Logging API to write a log entry. + In the asynchronous mode the call(s) to Logging API takes place asynchronously and few calls to `write()` method may be batched together to compose a single call to Logging API. + The default mode of writing is asynchronous. + It can be configured in the `java.util.logging` handler [configuration file](https://cloud.google.com/logging/docs/setup/java#javautillogging_configuration): + + ``` + com.google.cloud.logging.LoggingHandler.synchronicity=SYNC + ``` + + or in the code after initiating an instance of `Logging` by calling: + + ```java + logging.setWriteSynchronicity(Synchronicity.SYNC); + ``` + + NOTE: + > Writing log entries asynchronously in some Google Cloud managed environments (e.g. Cloud Functions) + > may lead to unexpected results such as absense of expected log entries or abnormal program execution. + > To avoid these unexpected results, it is recommended to use synchronous mode. + + #### Controlling the batching settings + As mentioned before, in the asynchronous mode the call(s) to Logging API takes place asynchronously and few calls to `write()` + method may be batched together to compose a single call to Logging API. In order to control the batching settings, the `LoggingOptions` + is enhanced with `BatchingSettings` which can be set as shown in example below: + + ```java + import com.google.api.gax.batching.BatchingSettings; + import com.google.api.gax.batching.FlowControlSettings; + import com.google.api.gax.batching.FlowController; + + LoggingOptions actual = + LoggingOptions.newBuilder() + .setBatchingSettings( + BatchingSettings.newBuilder() + .setIsEnabled(true) + .setElementCountThreshold(1000L) + .setRequestByteThreshold(1048576L) + .setDelayThreshold(Duration.ofMillis(50L)) + .setFlowControlSettings( + FlowControlSettings.newBuilder() + .setMaxOutstandingElementCount(100000L) + .setMaxOutstandingRequestBytes(10485760L) + .setLimitExceededBehavior( + FlowController.LimitExceededBehavior.ThrowException) + .build()) + .build()) + .setProjectId('Your project ID') + .build(); + ``` + + You can find more information about batching parameters see [BatchingSettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.batching.BatchingSettings). + + #### Listing log entries + + With Logging you can also list log entries that have been previously written. Add the following + imports at the top of your file: + + ```java + import com.google.api.gax.paging.Page; + import com.google.cloud.logging.LogEntry; + import com.google.cloud.logging.Logging.EntryListOption; + ``` + + Then, to list the log entries, use the following code: + + ``` java + Page entries = logging.listLogEntries( + EntryListOption.filter("logName=projects/" + options.getProjectId() + "/logs/test-log")); + while (entries != null) { + for (LogEntry logEntry : entries.iterateAll()) { + System.out.println(logEntry); + } + entries = entries.getNextPage(); + } + ``` + #### Add a Cloud Logging handler to a logger + + You can also register a `LoggingHandler` to a `java.util.logging.Logger` that publishes log entries + to Cloud Logging. Given the following logger: + + ```java + private final static Logger LOGGER = Logger.getLogger(MyClass.class.getName()); + ``` + + You can register a `LoggingHandler` with the code: + + ```java + LoggingHandler.addHandler(LOGGER, new LoggingHandler()); + ``` + + After that, logs generated using `LOGGER` will be also directed to Cloud Logging. + + Notice that you can also register a `LoggingHandler` via the `logging.properties` configuration + file. Adding, for instance, the following line: + + ``` + com.google.cloud.examples.logging.snippets.AddLoggingHandler.handlers=com.google.cloud.logging.LoggingHandler + ``` + + #### Alternative way to ingest logs in Google Cloud managed environments + + If you use Java logger with the Cloud Logging Handler, you can configure the handler to output logs to `stdout` using + the [structured logging Json format](https://cloud.google.com/logging/docs/structured-logging#special-payload-fields). + To do this, add `com.google.cloud.logging.LoggingHandler.redirectToStdout=true` to the logger configuration file. + You can use this configuration when running applications in Google Cloud managed environments such as AppEngine, Cloud Run, + Cloud Function or GKE. The logger agent installed on these environments can capture STDOUT and ingest it into Cloud Logging. + The agent can parse structured logs printed to STDOUT and capture additional log metadata beside the log payload. + The parsed information includes severity, source location, user labels, http request and tracing information. + + #### Auto-population of log entrys' metadata + + LogEntry object metadata information such as [monitored resource](https://cloud.google.com/logging/docs/reference/v2/rest/v2/MonitoredResource), + [Http request](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#HttpRequest) or + [source location](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#LogEntrySourceLocation) + are automatically populated with information that the library retrieves from the execution context. + The library populates only empty (set to `null`) LogEntry fields. + This behavior in the `Logging` instance can be opted out via `LoggingOptions`. + Call `LoggingOptions.Builder.setAutoPopulateMetadata(false)` to configure logging options to opt-out the metadata auto-population. + Cloud Logging handler can be configured to opt-out automatic population of the metadata using the logger configuration. + To disable the metadata auto-population add `com.google.cloud.logging.LoggingHandler.autoPopulateMetadata=false` + to the logger configuration file. + + The auto-population logic populates source location _only_ for log entries with `Severity.DEBUG` severity. + The execution context of the Http request and tracing information is maintained by `ContextHandler` class. + The context is managed in the scope of the thread. + If you do not use thread pools for multi-threading the `ContextHandler` can be configured to propagate the context + to the scope of the child threads. + To enable this add `com.google.cloud.logging.ContextHandler.useInheritedContext=true` to the logger configuration file. + The library provides two methods to update the context: + + * Manually set the context. You can use the following methods of the `Context.Builder` to set the context information. + Use the method `setRequest()` to setup the `HttpRequest` instance or `setRequestUrl()`, `setRequestMethod()`, + `setReferer() `, `setRemoteIp()` and `setServerIp()` to setup the fields of the `HttpRequest`. + The trace and span Ids can be set directly using `setTraceId()` and `setSpanId()` respectively. + Alternatively it can be parsed from the W3C tracing context header using `loadW3CTraceParentContext()` or + from the Google Cloud tracing context header using `loadCloudTraceContext()`. + + ```java + Context context = Context.newBuilder().setHttpRequest(request).setTrace(traceId).setSpanId(spanId).build(); + (new ContextHandler()).setCurrentContext(context); + ``` + + * Using [servlet initializer](https://github.com/googleapis/java-logging-servlet-initializer). + If your application uses a Web server based on Jakarta servlets (e.g. Jetty or Tomcat), you can add the servlet initializer + package to your WAR. The package implements a service provider interface (SPI) for + [javax.servlet.ServletContainerInitializer](https://docs.oracle.com/javaee/6/api/javax/servlet/ServletContainerInitializer.html) + and filters all servlet requests to automatically capture the execution context of the servlet request and store it using + `ContextHandler` class. The stored `Context` class instances are used to populate Http request and tracing information. + If you use Maven, to use the servlet initializer add the following dependency to your BOM: + + ```xml + + com.google.cloud + google-cloud-logging-servlet-initializer + + ``` + #### Population of Trace/Span ID fields in a LogEntry + Cloud Logging libraries use [trace fields within LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#FIELDS.trace) to capture trace contexts, which enables the [correlation of logs and traces](https://cloud.google.com/logging/docs/view/correlate-logs), and distributed tracing troubleshooting. + These tracing fields, including [trace](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#FIELDS.trace), [spanId](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#FIELDS.span_id), and [traceSampled](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#FIELDS.trace_sampled), define the trace context for a `LogEntry`. + + Tracing information set manually takes precedence over information set by the following methods: + + * Auto-populate Trace/Span ID from OpenTelemetry Context + If you are using OpenTelemetry and there is an active span in the OpenTelemetry Context, the `trace`, `span_id`, and `trace_sampled` fields in the log entry are populated from the active span. More information about OpenTelemetry can be found [here](https://opentelemetry.io/docs/languages/java/). + + * Use the [servlet initializer](https://github.com/googleapis/java-logging-servlet-initializer) to Populate Trace/Span ID from HTTP Headers + If trace/span Id are not manually set or auto-populated from OpenTelemetry context, you can use the [servlet initializer](https://github.com/googleapis/java-logging-servlet-initializer) to populate trace/span Id from HTTP headers. + This package filters all servlet requests to automatically capture the execution context of the servlet request and stores it by using ContextHandler class. Http request and trace/span Id information are populated from the stored Context class instances. + Using this method, trace/span Id can be automatically populated from either the [W3C Traceparent](https://www.w3.org/TR/trace-context) or [X-Cloud-Trace-Context](https://cloud.google.com/trace/docs/trace-context#legacy-http-header) headers. + diff --git a/java-logging/.repo-metadata.json b/java-logging/.repo-metadata.json new file mode 100644 index 000000000000..701efa00bbdd --- /dev/null +++ b/java-logging/.repo-metadata.json @@ -0,0 +1,19 @@ +{ + "api_shortname": "logging", + "name_pretty": "Cloud Logging", + "product_documentation": "https://cloud.google.com/logging/docs", + "api_description": "allows you to store, search, analyze, monitor, and alert on log data and events from Google Cloud and Amazon Web Services. Using the BindPlane service, you can also collect this data from over 150 common application components, on-premises systems, and hybrid cloud systems. BindPlane is included with your Google Cloud project at no additional cost.", + "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-logging/latest/history", + "release_level": "stable", + "transport": "grpc", + "language": "java", + "repo": "googleapis/google-cloud-java", + "repo_short": "java-logging", + "distribution_name": "com.google.cloud:google-cloud-logging", + "api_id": "logging.googleapis.com", + "library_type": "GAPIC_COMBO", + "requires_billing": true, + "codeowner_team": "@googleapis/cloud-sdk-java-team", + "issue_tracker": "https://issuetracker.google.com/savedsearches/559764", + "recommended_package": "com.google.cloud.logging" +} \ No newline at end of file diff --git a/java-logging/CHANGELOG.md b/java-logging/CHANGELOG.md new file mode 100644 index 000000000000..ced162e11e25 --- /dev/null +++ b/java-logging/CHANGELOG.md @@ -0,0 +1,1560 @@ +# Changelog + +## [3.24.0](https://github.com/googleapis/java-logging/compare/v3.23.11...v3.24.0) (2026-01-26) + + +### Features + +* Bump minor version ([#1923](https://github.com/googleapis/java-logging/issues/1923)) ([ad7958c](https://github.com/googleapis/java-logging/commit/ad7958c789a86fd7fe2c10e3ce4ea57174aee379)) + +## [3.23.11](https://github.com/googleapis/java-logging/compare/v3.23.10...v3.23.11) (2026-01-23) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.66.0 ([5ce1272](https://github.com/googleapis/java-logging/commit/5ce12728b1db5724d794aeac59ad45d4af26c446)) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.56.0 ([#1917](https://github.com/googleapis/java-logging/issues/1917)) ([fcfba8c](https://github.com/googleapis/java-logging/commit/fcfba8cf1aee54bd57838a31e147920fbe555cb7)) +* Update googleapis/sdk-platform-java action to v2.66.0 ([#1918](https://github.com/googleapis/java-logging/issues/1918)) ([d2a0908](https://github.com/googleapis/java-logging/commit/d2a09080c4b705fda9c480b6b89d0ef27e263ef8)) + +## [3.23.10](https://github.com/googleapis/java-logging/compare/v3.23.9...v3.23.10) (2026-01-15) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.65.1 ([e0ca81e](https://github.com/googleapis/java-logging/commit/e0ca81e148d4f7dd6426640c574b453905cbe000)) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.55.1 ([#1911](https://github.com/googleapis/java-logging/issues/1911)) ([93eadba](https://github.com/googleapis/java-logging/commit/93eadbaba65210e8686ea5240430fdbc86038fd5)) +* Update googleapis/sdk-platform-java action to v2.65.1 ([#1910](https://github.com/googleapis/java-logging/issues/1910)) ([3853159](https://github.com/googleapis/java-logging/commit/3853159f7255910dd33900086d410351f4cb0e98)) + +## [3.23.9](https://github.com/googleapis/java-logging/compare/v3.23.8...v3.23.9) (2025-12-11) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.64.2 ([fcb7ec1](https://github.com/googleapis/java-logging/commit/fcb7ec1ba7ae7c9a041d68c76e7b72a7e0861cf7)) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.54.2 ([#1897](https://github.com/googleapis/java-logging/issues/1897)) ([ab9862f](https://github.com/googleapis/java-logging/commit/ab9862f655bc89fa3e4e381567dcd0a9d8afdbf9)) +* Update googleapis/sdk-platform-java action to v2.64.2 ([#1898](https://github.com/googleapis/java-logging/issues/1898)) ([5860f51](https://github.com/googleapis/java-logging/commit/5860f516596686ef3054969b8c69de7eb48629e3)) + +## [3.23.8](https://github.com/googleapis/java-logging/compare/v3.23.7...v3.23.8) (2025-11-13) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.64.1 ([9187dcd](https://github.com/googleapis/java-logging/commit/9187dcd1314a6be4df8f8c6eed95092724c6da69)) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.54.1 ([#1883](https://github.com/googleapis/java-logging/issues/1883)) ([acc56db](https://github.com/googleapis/java-logging/commit/acc56db1ea0389ca91a09e435662b802db63abe6)) +* Update googleapis/sdk-platform-java action to v2.64.1 ([#1882](https://github.com/googleapis/java-logging/issues/1882)) ([abdd374](https://github.com/googleapis/java-logging/commit/abdd37434c76f615cdc9affb5d770970fbcbbf72)) + +## [3.23.7](https://github.com/googleapis/java-logging/compare/v3.23.6...v3.23.7) (2025-10-20) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.63.0 ([385a1dc](https://github.com/googleapis/java-logging/commit/385a1dc67fcdd8706238ba2f95f694bbb647f5f8)) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.53.0 ([#1875](https://github.com/googleapis/java-logging/issues/1875)) ([b79fd2b](https://github.com/googleapis/java-logging/commit/b79fd2b0cd2c358e3d3e69ddc76fcbfa16a47b5b)) + +## [3.23.6](https://github.com/googleapis/java-logging/compare/v3.23.5...v3.23.6) (2025-10-08) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.62.3 ([5d5d8a7](https://github.com/googleapis/java-logging/commit/5d5d8a76c58c3329f90e4fa84f5e81a1d3296894)) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.52.3 ([#1869](https://github.com/googleapis/java-logging/issues/1869)) ([94405fa](https://github.com/googleapis/java-logging/commit/94405fa929c48db114dd10ae39a0f3e520865bbf)) +* Update googleapis/sdk-platform-java action to v2.62.3 ([#1868](https://github.com/googleapis/java-logging/issues/1868)) ([cac5cd9](https://github.com/googleapis/java-logging/commit/cac5cd99e6a1738100248c9d235f4fa2987967d0)) + +## [3.23.5](https://github.com/googleapis/java-logging/compare/v3.23.4...v3.23.5) (2025-09-24) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.62.2 ([eeca440](https://github.com/googleapis/java-logging/commit/eeca440da06c24afc07e669f6f087246d91cd933)) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.52.2 ([#1858](https://github.com/googleapis/java-logging/issues/1858)) ([0252352](https://github.com/googleapis/java-logging/commit/0252352ca34dd494c4471f3a90391df762d676df)) + +## [3.23.4](https://github.com/googleapis/java-logging/compare/v3.23.3...v3.23.4) (2025-09-11) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.62.1 ([1438bff](https://github.com/googleapis/java-logging/commit/1438bff5bc7028fbf125895f0bdd2bb50490effa)) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.52.1 ([#1853](https://github.com/googleapis/java-logging/issues/1853)) ([c21a635](https://github.com/googleapis/java-logging/commit/c21a635f054b1cd8a6e5aea7450017af85ba03c7)) +* Update googleapis/sdk-platform-java action to v2.62.1 ([#1855](https://github.com/googleapis/java-logging/issues/1855)) ([b6ce498](https://github.com/googleapis/java-logging/commit/b6ce4988391dba73e019aa9f597ce6cc23f81a8c)) + +## [3.23.3](https://github.com/googleapis/java-logging/compare/v3.23.2...v3.23.3) (2025-08-20) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.52.0 ([#1848](https://github.com/googleapis/java-logging/issues/1848)) ([162ef56](https://github.com/googleapis/java-logging/commit/162ef563793270c236ecf7ca2524ad3b560d7a12)) + +## [3.23.2](https://github.com/googleapis/java-logging/compare/v3.23.1...v3.23.2) (2025-08-05) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.61.0 ([0a21b83](https://github.com/googleapis/java-logging/commit/0a21b83377e6e6a2f4cf98149424a47dcd490c1c)) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.51.0 ([#1843](https://github.com/googleapis/java-logging/issues/1843)) ([975d8ae](https://github.com/googleapis/java-logging/commit/975d8aeca38ff2f2f8317df93a661910969c5fc1)) + +## [3.23.1](https://github.com/googleapis/java-logging/compare/v3.23.0...v3.23.1) (2025-07-28) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.60.2 ([6a268f8](https://github.com/googleapis/java-logging/commit/6a268f8dbb33b38fa5e4d35d8dfcd196f8fcf9db)) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.50.2 ([#1834](https://github.com/googleapis/java-logging/issues/1834)) ([2e46f6e](https://github.com/googleapis/java-logging/commit/2e46f6ef44278af5031167106c216dcdb0a16357)) + +## [3.23.0](https://github.com/googleapis/java-logging/compare/v3.22.6...v3.23.0) (2025-07-11) + + +### Features + +* Next release from main branch is 3.23.0 ([#1826](https://github.com/googleapis/java-logging/issues/1826)) ([f0ef15f](https://github.com/googleapis/java-logging/commit/f0ef15f609a3400460bd8074bdd05014cc388743)) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#1828](https://github.com/googleapis/java-logging/issues/1828)) ([44c3094](https://github.com/googleapis/java-logging/commit/44c3094e23450f1a8e6bb397f209b17cf37a4345)) + +## [3.22.6](https://github.com/googleapis/java-logging/compare/v3.22.5...v3.22.6) (2025-06-25) + + +### Bug Fixes + +* Regenerate gapic yaml and service yaml for logging by augmentation configs ([9023895](https://github.com/googleapis/java-logging/commit/9023895fd56381c1f4309843a269975763a89d40)) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.50.0 ([#1821](https://github.com/googleapis/java-logging/issues/1821)) ([af4edc5](https://github.com/googleapis/java-logging/commit/af4edc5b1399b3563d9cf07e171c4281fde2bb79)) +* Update googleapis/sdk-platform-java action to v2.60.0 ([#1822](https://github.com/googleapis/java-logging/issues/1822)) ([0a96dd5](https://github.com/googleapis/java-logging/commit/0a96dd52dc1594767b7dd60da99a17bac8ac14ba)) + +## [3.22.5](https://github.com/googleapis/java-logging/compare/v3.22.4...v3.22.5) (2025-06-05) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.59.0 ([f2362fb](https://github.com/googleapis/java-logging/commit/f2362fb4c05d34fda4a1c9788ea87822ac887d9e)) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.49.0 ([#1813](https://github.com/googleapis/java-logging/issues/1813)) ([c15da84](https://github.com/googleapis/java-logging/commit/c15da84716d6d554ae26919412e8d4313fd980bc)) + +## [3.22.4](https://github.com/googleapis/java-logging/compare/v3.22.3...v3.22.4) (2025-05-20) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.58.0 ([45b4878](https://github.com/googleapis/java-logging/commit/45b4878eeec35f8c19a3cd3cd33331e9ece6b5c6)) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.48.0 ([#1808](https://github.com/googleapis/java-logging/issues/1808)) ([6327c51](https://github.com/googleapis/java-logging/commit/6327c51f3a8ecfb7af678c8c040b066e7f938863)) +* Update googleapis/sdk-platform-java action to v2.58.0 ([#1806](https://github.com/googleapis/java-logging/issues/1806)) ([b94da77](https://github.com/googleapis/java-logging/commit/b94da779d8263ce6c1845bb8baa6a9e9aedc2ccf)) + +## [3.22.3](https://github.com/googleapis/java-logging/compare/v3.22.2...v3.22.3) (2025-05-06) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.56.3 ([844f4fa](https://github.com/googleapis/java-logging/commit/844f4fa48f878a7da77ff9ab13652dc93f079920)) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.46.3 ([#1801](https://github.com/googleapis/java-logging/issues/1801)) ([d7aa7bc](https://github.com/googleapis/java-logging/commit/d7aa7bcd4e1235491f30ab4dd88ff80c07966185)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.47.0 ([#1803](https://github.com/googleapis/java-logging/issues/1803)) ([5967ffe](https://github.com/googleapis/java-logging/commit/5967ffe459d9e1d00a36727ae433303005bf15d8)) +* Update googleapis/sdk-platform-java action to v2.57.0 ([#1804](https://github.com/googleapis/java-logging/issues/1804)) ([e9a27ec](https://github.com/googleapis/java-logging/commit/e9a27ec2a1b148c40ea13d541b4c7a96cef07901)) + +## [3.22.2](https://github.com/googleapis/java-logging/compare/v3.22.1...v3.22.2) (2025-04-25) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.46.2 ([#1796](https://github.com/googleapis/java-logging/issues/1796)) ([1f88271](https://github.com/googleapis/java-logging/commit/1f882712aeb7e48a2339ffbad783813e11e74401)) + +## [3.22.1](https://github.com/googleapis/java-logging/compare/v3.22.0...v3.22.1) (2025-04-25) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.56.2 ([7cce5b5](https://github.com/googleapis/java-logging/commit/7cce5b509c904209f0a92e239e836afac4169ec4)) + +## [3.22.0](https://github.com/googleapis/java-logging/compare/v3.21.4...v3.22.0) (2025-03-18) + + +### Features + +* Next release from main branch is 3.22.0 ([#1776](https://github.com/googleapis/java-logging/issues/1776)) ([7736073](https://github.com/googleapis/java-logging/commit/773607312a1dc6f5f569f2518587ffba4743bb43)) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.55.1 ([dd25992](https://github.com/googleapis/java-logging/commit/dd259929b01a2dd50ca2d09005fedf1631b97877)) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.45.1 ([#1779](https://github.com/googleapis/java-logging/issues/1779)) ([a643ab0](https://github.com/googleapis/java-logging/commit/a643ab03600fa25cee41df23b2daf65c0fc4e70a)) +* Update googleapis/sdk-platform-java action to v2.55.1 ([#1780](https://github.com/googleapis/java-logging/issues/1780)) ([505557e](https://github.com/googleapis/java-logging/commit/505557e1b9b14c910aec402335bf9fc9ca96975c)) + +## [3.21.4](https://github.com/googleapis/java-logging/compare/v3.21.3...v3.21.4) (2025-02-26) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.54.0 ([67fa9fb](https://github.com/googleapis/java-logging/commit/67fa9fbbc48dd8df9c176ba0bb3d1acf6b975bfc)) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.44.0 ([#1768](https://github.com/googleapis/java-logging/issues/1768)) ([a69e699](https://github.com/googleapis/java-logging/commit/a69e6990e5cc7ab920382599510bb14f29a12d7d)) +* Update googleapis/sdk-platform-java action to v2.54.0 ([#1762](https://github.com/googleapis/java-logging/issues/1762)) ([d50a8d2](https://github.com/googleapis/java-logging/commit/d50a8d2fbef588138b4d47cbd3440d7217d690b0)) + +## [3.21.3](https://github.com/googleapis/java-logging/compare/v3.21.2...v3.21.3) (2025-02-12) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.52.0 ([888a885](https://github.com/googleapis/java-logging/commit/888a885dc229960c26fae5098c4b43b7b0ef4fa6)) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.43.0 ([#1763](https://github.com/googleapis/java-logging/issues/1763)) ([e0f9f27](https://github.com/googleapis/java-logging/commit/e0f9f271be10cec0d9400bc464bcc0a175078d97)) + +## [3.21.2](https://github.com/googleapis/java-logging/compare/v3.21.1...v3.21.2) (2025-01-29) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.42.0 ([#1755](https://github.com/googleapis/java-logging/issues/1755)) ([d404381](https://github.com/googleapis/java-logging/commit/d4043815246423efe542356dc50ba663092b8df0)) +* Update dependency io.opentelemetry:opentelemetry-bom to v1.46.0 ([#1747](https://github.com/googleapis/java-logging/issues/1747)) ([5ef2853](https://github.com/googleapis/java-logging/commit/5ef285387d63b79bff7e43b233c7f9770f378dba)) +* Update googleapis/sdk-platform-java action to v2.52.0 ([#1753](https://github.com/googleapis/java-logging/issues/1753)) ([3dcf86a](https://github.com/googleapis/java-logging/commit/3dcf86adc3e1ef3d5866cd043149808601c213b8)) + +## [3.21.1](https://github.com/googleapis/java-logging/compare/v3.21.0...v3.21.1) (2025-01-13) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.51.1 ([705dba2](https://github.com/googleapis/java-logging/commit/705dba2d6c12bd9f9e281c962cfb232ab28b31a9)) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.41.1 ([#1745](https://github.com/googleapis/java-logging/issues/1745)) ([6a7280d](https://github.com/googleapis/java-logging/commit/6a7280d0851024c1b44457fa7064a7f3d6fc2d5b)) +* Update dependency org.easymock:easymock to v5.5.0 ([#1639](https://github.com/googleapis/java-logging/issues/1639)) ([f559d89](https://github.com/googleapis/java-logging/commit/f559d89bf36201fce609ef752f27baa0c5f6f1c1)) +* Update googleapis/sdk-platform-java action to v2.51.1 ([#1742](https://github.com/googleapis/java-logging/issues/1742)) ([3c7a2c7](https://github.com/googleapis/java-logging/commit/3c7a2c70fd46cc7196ef7b037d6017971e8a020a)) + +## [3.21.0](https://github.com/googleapis/java-logging/compare/v3.20.7...v3.21.0) (2024-12-13) + + +### Features + +* Introduce `java.time` methods ([#1729](https://github.com/googleapis/java-logging/issues/1729)) ([323eb33](https://github.com/googleapis/java-logging/commit/323eb332a65f39c5588cf65ecae0a3454903a1c6)) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.51.0 ([04d8868](https://github.com/googleapis/java-logging/commit/04d886849a4b41fad17f501f2c40ae54e6daa71a)) + + +### Dependencies + +* Update dependency io.opentelemetry:opentelemetry-bom to v1.45.0 ([#1638](https://github.com/googleapis/java-logging/issues/1638)) ([7e007d4](https://github.com/googleapis/java-logging/commit/7e007d4f966ed7e9c75cbf0ce951441052e8735c)) +* Update sdk platform java dependencies ([#1736](https://github.com/googleapis/java-logging/issues/1736)) ([88b4cdf](https://github.com/googleapis/java-logging/commit/88b4cdf71463285e50a815e0635d36301d583e4c)) + +## [3.20.7](https://github.com/googleapis/java-logging/compare/v3.20.6...v3.20.7) (2024-11-18) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.49.0 ([a1ec68d](https://github.com/googleapis/java-logging/commit/a1ec68d539e4d0720fb2cf72314deb4f485f3d4a)) +* **deps:** Update the Java code generator (gapic-generator-java) to 2.50.0 ([afcf63c](https://github.com/googleapis/java-logging/commit/afcf63cc063c4e0f5159c3ac5dbe2d372c335beb)) +* Fixed outdated link to X-Cloud-Trace-Context header description ([#1713](https://github.com/googleapis/java-logging/issues/1713)) ([d474313](https://github.com/googleapis/java-logging/commit/d4743138b9e5c9fd4e9c59b0793028f1e424e6e4)) + + +### Dependencies + +* Update sdk platform java dependencies ([#1725](https://github.com/googleapis/java-logging/issues/1725)) ([531f8c5](https://github.com/googleapis/java-logging/commit/531f8c5089a260840eee7ff97d315307f074f5e6)) + +## [3.20.6](https://github.com/googleapis/java-logging/compare/v3.20.5...v3.20.6) (2024-10-26) + + +### Dependencies + +* Update sdk platform java dependencies ([#1717](https://github.com/googleapis/java-logging/issues/1717)) ([ee9ef91](https://github.com/googleapis/java-logging/commit/ee9ef91a9ebaed9faa5870a29be40b0c1531a226)) + +## [3.20.5](https://github.com/googleapis/java-logging/compare/v3.20.4...v3.20.5) (2024-10-23) + + +### Dependencies + +* Update sdk platform java dependencies ([#1707](https://github.com/googleapis/java-logging/issues/1707)) ([2359040](https://github.com/googleapis/java-logging/commit/23590409f5c4aaff5c741e860fc0916f7ec4c963)) + +## [3.20.4](https://github.com/googleapis/java-logging/compare/v3.20.3...v3.20.4) (2024-10-07) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.47.0 ([90b88ee](https://github.com/googleapis/java-logging/commit/90b88ee70ee84bdcb0af4aced50b5ee61e0a706c)) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.37.0 ([#1702](https://github.com/googleapis/java-logging/issues/1702)) ([1f7da17](https://github.com/googleapis/java-logging/commit/1f7da17810fa22b8437edc88e4f95b3ed5cb8349)) + +## [3.20.3](https://github.com/googleapis/java-logging/compare/v3.20.2...v3.20.3) (2024-10-01) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.36.1 ([#1698](https://github.com/googleapis/java-logging/issues/1698)) ([9491512](https://github.com/googleapis/java-logging/commit/94915125fd2425ffba5ef86da0c54af3c1d2c138)) +* Update dependency org.apache.maven.plugins:maven-deploy-plugin to v3.1.3 ([2b6ea70](https://github.com/googleapis/java-logging/commit/2b6ea703aad05e714f5634fbd74e0b9bca0c51f9)) + +## [3.20.2](https://github.com/googleapis/java-logging/compare/v3.20.1...v3.20.2) (2024-09-12) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.35.0 ([#1683](https://github.com/googleapis/java-logging/issues/1683)) ([31ec2b9](https://github.com/googleapis/java-logging/commit/31ec2b972d5e11e12fe0432f42e3e5b8f23312c6)) + +## [3.20.1](https://github.com/googleapis/java-logging/compare/v3.20.0...v3.20.1) (2024-08-22) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.34.0 ([#1677](https://github.com/googleapis/java-logging/issues/1677)) ([dbd050c](https://github.com/googleapis/java-logging/commit/dbd050c354cee5272c37dd323358b222cea5e87e)) + +## [3.20.0](https://github.com/googleapis/java-logging/compare/v3.19.0...v3.20.0) (2024-08-02) + + +### Features + +* Enable hermetic library generation ([#1620](https://github.com/googleapis/java-logging/issues/1620)) ([034b9c4](https://github.com/googleapis/java-logging/commit/034b9c42ac8ba12f20dbde9e90ae8e59ea4c5748)) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.33.0 ([#1664](https://github.com/googleapis/java-logging/issues/1664)) ([cb6de76](https://github.com/googleapis/java-logging/commit/cb6de767ba726a1178b4ebd0b481a4fc2454b910)) + + +### Documentation + +* Documentation update for OpenTelemetry and tracing ([#1657](https://github.com/googleapis/java-logging/issues/1657)) ([e3c6670](https://github.com/googleapis/java-logging/commit/e3c667094170ac7d404addc797facbe997ca51d3)) + +## [3.19.0](https://github.com/googleapis/java-logging/compare/v3.18.0...v3.19.0) (2024-06-26) + + +### Features + +* **logging:** OpenTelemetry trace/span ID integration for Java logging library ([#1596](https://github.com/googleapis/java-logging/issues/1596)) ([67db829](https://github.com/googleapis/java-logging/commit/67db829621fd1c4a876d158fe1afb4927821fa54)) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.32.0 ([#1649](https://github.com/googleapis/java-logging/issues/1649)) ([cb428d1](https://github.com/googleapis/java-logging/commit/cb428d19a1ea750520d336c9d1042d50f3801f15)) + +## [3.18.0](https://github.com/googleapis/java-logging/compare/v3.17.2...v3.18.0) (2024-06-04) + + +### Features + +* [java] allow passing libraries_bom_version from env ([#1967](https://github.com/googleapis/java-logging/issues/1967)) ([#1615](https://github.com/googleapis/java-logging/issues/1615)) ([dc00cd0](https://github.com/googleapis/java-logging/commit/dc00cd0da891b59f3c22cd7ce281868f5ce8b433)) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.31.0 ([#1625](https://github.com/googleapis/java-logging/issues/1625)) ([9db8f3b](https://github.com/googleapis/java-logging/commit/9db8f3b948e20fa406f315b670341da2b00f0856)) + +## [3.17.2](https://github.com/googleapis/java-logging/compare/v3.17.1...v3.17.2) (2024-05-16) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.30.1 ([#1611](https://github.com/googleapis/java-logging/issues/1611)) ([e7a0904](https://github.com/googleapis/java-logging/commit/e7a0904a1faf04b0de400c1778f976494246e39e)) + +## [3.17.1](https://github.com/googleapis/java-logging/compare/v3.17.0...v3.17.1) (2024-05-06) + + +### Dependencies + +* Update actions/checkout action to v4 ([#1570](https://github.com/googleapis/java-logging/issues/1570)) ([ea0db35](https://github.com/googleapis/java-logging/commit/ea0db3579da6e965e778233b3cba4862b3fff65c)) +* Update actions/github-script action to v7 ([#1571](https://github.com/googleapis/java-logging/issues/1571)) ([16d6192](https://github.com/googleapis/java-logging/commit/16d61928b6d4887faebbdd48a694a2edff8cb752)) +* Update actions/setup-java action to v4 ([#1572](https://github.com/googleapis/java-logging/issues/1572)) ([9eb8834](https://github.com/googleapis/java-logging/commit/9eb88346fac9688c0e56bec83f7407c5690a5b7f)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.30.0 ([#1603](https://github.com/googleapis/java-logging/issues/1603)) ([16967e5](https://github.com/googleapis/java-logging/commit/16967e5ba704a75419904ba2aaabce0cbc116352)) + +## [3.17.0](https://github.com/googleapis/java-logging/compare/v3.16.3...v3.17.0) (2024-04-25) + + +### Features + +* Add Cloud Run Jobs support ([#1574](https://github.com/googleapis/java-logging/issues/1574)) ([1dd64d0](https://github.com/googleapis/java-logging/commit/1dd64d078e0d4cbb1e16cb1d050ba192492d6a60)) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.39.0 ([#1587](https://github.com/googleapis/java-logging/issues/1587)) ([848418b](https://github.com/googleapis/java-logging/commit/848418b426c2e93e636dbd9de71985c386ccb9d2)) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.29.0 ([#1586](https://github.com/googleapis/java-logging/issues/1586)) ([edcaf8d](https://github.com/googleapis/java-logging/commit/edcaf8de643a7f7f419ee6059c706d0ef0ef4873)) + +## [3.16.3](https://github.com/googleapis/java-logging/compare/v3.16.2...v3.16.3) (2024-04-17) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.28.1 ([#1569](https://github.com/googleapis/java-logging/issues/1569)) ([8eb0781](https://github.com/googleapis/java-logging/commit/8eb0781b1e1e6e369a6ff0a03d1db4cd0462a6a7)) + +## [3.16.2](https://github.com/googleapis/java-logging/compare/v3.16.1...v3.16.2) (2024-03-20) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.28.0 ([#1560](https://github.com/googleapis/java-logging/issues/1560)) ([d52e623](https://github.com/googleapis/java-logging/commit/d52e62343aa814183baa4fa8ea39d41a5e7c423f)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.28.1 ([#1563](https://github.com/googleapis/java-logging/issues/1563)) ([81aa3e6](https://github.com/googleapis/java-logging/commit/81aa3e6b6662d62844b289a22e8aba50dff36a51)) + +## [3.16.1](https://github.com/googleapis/java-logging/compare/v3.16.0...v3.16.1) (2024-03-07) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.37.0 ([#1553](https://github.com/googleapis/java-logging/issues/1553)) ([15b05fc](https://github.com/googleapis/java-logging/commit/15b05fc4a8e6c4069414110b749525082821e509)) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.27.0 ([#1552](https://github.com/googleapis/java-logging/issues/1552)) ([6c5464d](https://github.com/googleapis/java-logging/commit/6c5464d1c5a74962fcd459a1e03282747e148a44)) + +## [3.16.0](https://github.com/googleapis/java-logging/compare/v3.15.17...v3.16.0) (2024-02-20) + + +### Features + +* Add an API method for reordering firewall policies ([#1538](https://github.com/googleapis/java-logging/issues/1538)) ([9cd6b96](https://github.com/googleapis/java-logging/commit/9cd6b96d9946828c02ccff2ff846a06cc6fff329)) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.25.0 ([#1535](https://github.com/googleapis/java-logging/issues/1535)) ([7fde779](https://github.com/googleapis/java-logging/commit/7fde7795f03ac96353912829b42adc0035a41d26)) +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.10.0 ([#1528](https://github.com/googleapis/java-logging/issues/1528)) ([b3e4f9b](https://github.com/googleapis/java-logging/commit/b3e4f9b77bffc49a4f9569d4b7a9318a0d5ea5c0)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.0 ([#1456](https://github.com/googleapis/java-logging/issues/1456)) ([f27713e](https://github.com/googleapis/java-logging/commit/f27713ed55159754715cca5ff205364e315a7c05)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.1 ([#1542](https://github.com/googleapis/java-logging/issues/1542)) ([af784bc](https://github.com/googleapis/java-logging/commit/af784bce7c5272a346ce5016464c87af7d69b442)) +* Update dependency org.junit.vintage:junit-vintage-engine to v5.10.2 ([#1530](https://github.com/googleapis/java-logging/issues/1530)) ([20981dc](https://github.com/googleapis/java-logging/commit/20981dc90ca1b73b74d9f5a0c7f0dfa4d9960ab9)) + +## [3.15.17](https://github.com/googleapis/java-logging/compare/v3.15.16...v3.15.17) (2024-02-07) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.24.0 ([#1526](https://github.com/googleapis/java-logging/issues/1526)) ([235f1aa](https://github.com/googleapis/java-logging/commit/235f1aa380d4f34f65d4cc957b3d26fa6a35e226)) + + +### Documentation + +* Fix typo in code comments ([#1520](https://github.com/googleapis/java-logging/issues/1520)) ([0440fc6](https://github.com/googleapis/java-logging/commit/0440fc6dfa3c5cd19f0d7d941af242872da1bbd3)) + +## [3.15.16](https://github.com/googleapis/java-logging/compare/v3.15.15...v3.15.16) (2024-01-25) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.32.0 ([#1511](https://github.com/googleapis/java-logging/issues/1511)) ([e2f574c](https://github.com/googleapis/java-logging/commit/e2f574caa0b8c2a2cdb3b186fbf2d599d6ef4c2b)) +* Enable v2.LogEntry Protobufs converter functions ([#1509](https://github.com/googleapis/java-logging/issues/1509)) ([9ef4d90](https://github.com/googleapis/java-logging/commit/9ef4d9048b1ecdc887ebc9cb4898a4bfe3f6c154)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.22.0 ([#1510](https://github.com/googleapis/java-logging/issues/1510)) ([b40e846](https://github.com/googleapis/java-logging/commit/b40e8465590dadec7c9ff26eb27e92c16b059489)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.23.0 ([#1518](https://github.com/googleapis/java-logging/issues/1518)) ([30ba9ed](https://github.com/googleapis/java-logging/commit/30ba9ed687f5469d36138a138f68cd998cf60b53)) + +## [3.15.15](https://github.com/googleapis/java-logging/compare/v3.15.14...v3.15.15) (2024-01-10) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.31.0 ([#1502](https://github.com/googleapis/java-logging/issues/1502)) ([c7a20de](https://github.com/googleapis/java-logging/commit/c7a20de29bf6fae079f8d73e3062025a79c220c9)) +* Replace internal Structs class with google-cloud-core version ([#1501](https://github.com/googleapis/java-logging/issues/1501)) ([21e1929](https://github.com/googleapis/java-logging/commit/21e19295923a33759229e2e992d003409ab1feb3)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.21.0 ([#1500](https://github.com/googleapis/java-logging/issues/1500)) ([6cce3c9](https://github.com/googleapis/java-logging/commit/6cce3c9bbe051180789c7ff4fbdde4c45fe46888)) + +## [3.15.14](https://github.com/googleapis/java-logging/compare/v3.15.13...v3.15.14) (2023-12-01) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.20.0 ([#1484](https://github.com/googleapis/java-logging/issues/1484)) ([f3227db](https://github.com/googleapis/java-logging/commit/f3227dbbb6ef7f8b16ff4a6d39882f57868915f1)) + +## [3.15.13](https://github.com/googleapis/java-logging/compare/v3.15.12...v3.15.13) (2023-11-06) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.19.0 ([#1468](https://github.com/googleapis/java-logging/issues/1468)) ([5835a7d](https://github.com/googleapis/java-logging/commit/5835a7dc1c839eb3bc379470846451bd51fdfc24)) +* Update dependency org.junit.vintage:junit-vintage-engine to v5.10.1 ([#1471](https://github.com/googleapis/java-logging/issues/1471)) ([debc77f](https://github.com/googleapis/java-logging/commit/debc77f4ce57d768474c27eb6c056f7c10c7d743)) + +## [3.15.12](https://github.com/googleapis/java-logging/compare/v3.15.11...v3.15.12) (2023-10-25) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.18.0 ([#1454](https://github.com/googleapis/java-logging/issues/1454)) ([dc25a87](https://github.com/googleapis/java-logging/commit/dc25a87cb6e1d64c2e2c811a928ea2553a684daa)) +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.28 ([#1455](https://github.com/googleapis/java-logging/issues/1455)) ([3080cec](https://github.com/googleapis/java-logging/commit/3080cec373f8d9d61ce57363553925a07702d552)) + +## [3.15.11](https://github.com/googleapis/java-logging/compare/v3.15.10...v3.15.11) (2023-10-10) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.17.0 ([#1444](https://github.com/googleapis/java-logging/issues/1444)) ([748e8a2](https://github.com/googleapis/java-logging/commit/748e8a29026b6eb782a559df207a70555289f906)) + +## [3.15.10](https://github.com/googleapis/java-logging/compare/v3.15.9...v3.15.10) (2023-09-27) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.16.1 ([#1434](https://github.com/googleapis/java-logging/issues/1434)) ([e9e9835](https://github.com/googleapis/java-logging/commit/e9e9835e6c7b52364104a1e4a503027efb722422)) +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.27 ([#1430](https://github.com/googleapis/java-logging/issues/1430)) ([9e750a3](https://github.com/googleapis/java-logging/commit/9e750a3c3685671ee573a7e8190622d7f9002b51)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.27 ([#1431](https://github.com/googleapis/java-logging/issues/1431)) ([7c2aa2c](https://github.com/googleapis/java-logging/commit/7c2aa2cc3b5651674591dc4e6cb89774d14e6513)) + +## [3.15.9](https://github.com/googleapis/java-logging/compare/v3.15.8...v3.15.9) (2023-09-11) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.15.0 ([#1424](https://github.com/googleapis/java-logging/issues/1424)) ([4f82f33](https://github.com/googleapis/java-logging/commit/4f82f339e47014821eca217f5200080e6b78e03f)) +* Update dependency org.easymock:easymock to v5.2.0 ([#1421](https://github.com/googleapis/java-logging/issues/1421)) ([f931544](https://github.com/googleapis/java-logging/commit/f9315443ba97104f1a23e5695ed72cb4bd2dfa10)) +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.26 ([#1420](https://github.com/googleapis/java-logging/issues/1420)) ([ff581a6](https://github.com/googleapis/java-logging/commit/ff581a67270777fe15e291794df3b49041c111e3)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.26 ([#1412](https://github.com/googleapis/java-logging/issues/1412)) ([bd9be4e](https://github.com/googleapis/java-logging/commit/bd9be4e8aecd5b7a532a6f2eb91151201a41334f)) + +## [3.15.8](https://github.com/googleapis/java-logging/compare/v3.15.7...v3.15.8) (2023-08-08) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.14.0 ([#1409](https://github.com/googleapis/java-logging/issues/1409)) ([f9af381](https://github.com/googleapis/java-logging/commit/f9af381b302aeefa401e5bc2f51d97c09f1484e5)) +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.24 ([#1411](https://github.com/googleapis/java-logging/issues/1411)) ([0487cdf](https://github.com/googleapis/java-logging/commit/0487cdff06c0ce9529d4c662991cf84ad25b9f40)) + +## [3.15.7](https://github.com/googleapis/java-logging/compare/v3.15.6...v3.15.7) (2023-07-24) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.13.1 ([#1395](https://github.com/googleapis/java-logging/issues/1395)) ([1a29b9d](https://github.com/googleapis/java-logging/commit/1a29b9da803238ff1dee0c69d9449d97d4324477)) +* Update dependency org.junit.vintage:junit-vintage-engine to v5.10.0 ([#1397](https://github.com/googleapis/java-logging/issues/1397)) ([f15d246](https://github.com/googleapis/java-logging/commit/f15d2462962c261be5726d5a68b6a1d31aa916fc)) + +## [3.15.6](https://github.com/googleapis/java-logging/compare/v3.15.5...v3.15.6) (2023-07-17) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.13.0 ([#1388](https://github.com/googleapis/java-logging/issues/1388)) ([03179b0](https://github.com/googleapis/java-logging/commit/03179b0697f17bfc114ff114e454464ed76f8d5b)) + +## [3.15.5](https://github.com/googleapis/java-logging/compare/v3.15.4...v3.15.5) (2023-06-22) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.12.0 ([#1382](https://github.com/googleapis/java-logging/issues/1382)) ([8241302](https://github.com/googleapis/java-logging/commit/824130227897ed17c5b8a1becf32a695d844b2bb)) + +## [3.15.4](https://github.com/googleapis/java-logging/compare/v3.15.3...v3.15.4) (2023-06-22) + + +### Dependencies + +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.23 ([#1374](https://github.com/googleapis/java-logging/issues/1374)) ([dce3c4c](https://github.com/googleapis/java-logging/commit/dce3c4c9413c2d1674b6ddaf6fe9351a28f0673a)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.23 ([#1375](https://github.com/googleapis/java-logging/issues/1375)) ([a15c73c](https://github.com/googleapis/java-logging/commit/a15c73cbf8c22971f690d38fa87b6b349851d5c8)) + +## [3.15.3](https://github.com/googleapis/java-logging/compare/v3.15.2...v3.15.3) (2023-06-08) + + +### Bug Fixes + +* Remove org.jspecify dependency ([#1364](https://github.com/googleapis/java-logging/issues/1364)) ([8138f46](https://github.com/googleapis/java-logging/commit/8138f463e170f1927280d3c083fa403b184fca47)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.11.0 ([#1367](https://github.com/googleapis/java-logging/issues/1367)) ([8cd2a53](https://github.com/googleapis/java-logging/commit/8cd2a53b396d4671514bf8cca1b4c2a62cfb457c)) + +## [3.15.2](https://github.com/googleapis/java-logging/compare/v3.15.1...v3.15.2) (2023-05-30) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.10.1 ([#1354](https://github.com/googleapis/java-logging/issues/1354)) ([b2f1111](https://github.com/googleapis/java-logging/commit/b2f1111fc8df71b40a85505e1b8209d315cc2c90)) +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.22 ([#1340](https://github.com/googleapis/java-logging/issues/1340)) ([b3b9d5f](https://github.com/googleapis/java-logging/commit/b3b9d5ffe078a3203725f3709c1840cb88f6e9ea)) + +## [3.15.1](https://github.com/googleapis/java-logging/compare/v3.15.0...v3.15.1) (2023-05-12) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.9.0 ([#1342](https://github.com/googleapis/java-logging/issues/1342)) ([8b14ae1](https://github.com/googleapis/java-logging/commit/8b14ae17514481a5925ae3ff079cc4f1b4ad6d94)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.22 ([#1341](https://github.com/googleapis/java-logging/issues/1341)) ([cfc0106](https://github.com/googleapis/java-logging/commit/cfc0106c359c153031bddcac7dadc292a9bb561e)) + +## [3.15.0](https://github.com/googleapis/java-logging/compare/v3.14.9...v3.15.0) (2023-05-06) + + +### Features + +* Log Analytics features of the Cloud Logging API ([#1335](https://github.com/googleapis/java-logging/issues/1335)) ([7d43b80](https://github.com/googleapis/java-logging/commit/7d43b8049c71187fffcde39274db38ebb54cddfa)) + + +### Dependencies + +* Update dependency org.junit.vintage:junit-vintage-engine to v5.9.3 ([#1329](https://github.com/googleapis/java-logging/issues/1329)) ([dfb98f4](https://github.com/googleapis/java-logging/commit/dfb98f47098d4560fc3ef93f126af1770ae4faf6)) + +## [3.14.9](https://github.com/googleapis/java-logging/compare/v3.14.8...v3.14.9) (2023-04-25) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.8.0 ([#1326](https://github.com/googleapis/java-logging/issues/1326)) ([5a56f1b](https://github.com/googleapis/java-logging/commit/5a56f1b5087e65bc097d5c8a85d000d12bbbca8c)) +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.21 ([#1319](https://github.com/googleapis/java-logging/issues/1319)) ([5aef8d6](https://github.com/googleapis/java-logging/commit/5aef8d6492c9ebf8e989ee652dcf4a1d82cac8a4)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.21 ([#1320](https://github.com/googleapis/java-logging/issues/1320)) ([fc2d065](https://github.com/googleapis/java-logging/commit/fc2d0655e5b3d2ea9aedf1a4fd65fad8cf815462)) + +## [3.14.8](https://github.com/googleapis/java-logging/compare/v3.14.7...v3.14.8) (2023-04-14) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.7.0 ([#1318](https://github.com/googleapis/java-logging/issues/1318)) ([973d260](https://github.com/googleapis/java-logging/commit/973d2601bc1639b09d4dd89dd2b6f90cd1b779e9)) + +## [3.14.7](https://github.com/googleapis/java-logging/compare/v3.14.6...v3.14.7) (2023-03-28) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.6.0 ([#1308](https://github.com/googleapis/java-logging/issues/1308)) ([febcf49](https://github.com/googleapis/java-logging/commit/febcf49085ed0fb6be02aaf9108805dd4cce31b8)) + +## [3.14.6](https://github.com/googleapis/java-logging/compare/v3.14.5...v3.14.6) (2023-03-20) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.5.0 ([#1301](https://github.com/googleapis/java-logging/issues/1301)) ([9fa6f05](https://github.com/googleapis/java-logging/commit/9fa6f05a9ea1444d9abad4e0eae5fd854bb2608c)) + +## [3.14.5](https://github.com/googleapis/java-logging/compare/v3.14.4...v3.14.5) (2023-03-02) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.4.0 ([#1290](https://github.com/googleapis/java-logging/issues/1290)) ([84d42ae](https://github.com/googleapis/java-logging/commit/84d42ae6da926785462088de23947bc742f9dc0a)) + +## [3.14.4](https://github.com/googleapis/java-logging/compare/v3.14.3...v3.14.4) (2023-02-21) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.3.0 ([#1282](https://github.com/googleapis/java-logging/issues/1282)) ([58ac608](https://github.com/googleapis/java-logging/commit/58ac608ddbf5803bb394bb4833cf8af0bbb22e91)) +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.20 ([#1279](https://github.com/googleapis/java-logging/issues/1279)) ([296cce1](https://github.com/googleapis/java-logging/commit/296cce153cbd263e620c1fbb028466f62f7251dd)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.20 ([#1280](https://github.com/googleapis/java-logging/issues/1280)) ([6363196](https://github.com/googleapis/java-logging/commit/63631966432aac89883dd80c0087576454616cc2)) + +## [3.14.3](https://github.com/googleapis/java-logging/compare/v3.14.2...v3.14.3) (2023-02-06) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.2.0 ([#1269](https://github.com/googleapis/java-logging/issues/1269)) ([e196a80](https://github.com/googleapis/java-logging/commit/e196a802d0d004dcec2ddfb352ed9aebebe68810)) + +## [3.14.2](https://github.com/googleapis/java-logging/compare/v3.14.1...v3.14.2) (2023-01-24) + + +### Bug Fixes + +* **java:** Skip fixing poms for special modules ([#1744](https://github.com/googleapis/java-logging/issues/1744)) ([#1256](https://github.com/googleapis/java-logging/issues/1256)) ([09eeff0](https://github.com/googleapis/java-logging/commit/09eeff0b4608bad1e854252ff73688a867a071f1)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.1.2 ([#1258](https://github.com/googleapis/java-logging/issues/1258)) ([d4bc663](https://github.com/googleapis/java-logging/commit/d4bc663a0a0295594fb6333cf9bf2a6fd7a7b7e8)) + +## [3.14.1](https://github.com/googleapis/java-logging/compare/v3.14.0...v3.14.1) (2023-01-10) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.1.1 ([#1243](https://github.com/googleapis/java-logging/issues/1243)) ([fdf6b7a](https://github.com/googleapis/java-logging/commit/fdf6b7a44435286a47e1143a53a8307bb5b8fc63)) +* Update dependency org.junit.vintage:junit-vintage-engine to v5.9.2 ([#1245](https://github.com/googleapis/java-logging/issues/1245)) ([e73a704](https://github.com/googleapis/java-logging/commit/e73a704fa92d8f2abfe3b979e741b7f00ab89bca)) + +## [3.14.0](https://github.com/googleapis/java-logging/compare/v3.13.7...v3.14.0) (2022-12-31) + + +### Features + +* Next release from main branch is 3.14.0 ([#1236](https://github.com/googleapis/java-logging/issues/1236)) ([125d94c](https://github.com/googleapis/java-logging/commit/125d94c9e88196ddd02d4a4acb49bf124cbda81a)) + + +### Dependencies + +* Update dependency org.easymock:easymock to v5.1.0 ([#1238](https://github.com/googleapis/java-logging/issues/1238)) ([d9a381a](https://github.com/googleapis/java-logging/commit/d9a381a1f2418e2d9a16afa110459e90a3c53d00)) + +## [3.13.7](https://github.com/googleapis/java-logging/compare/v3.13.6...v3.13.7) (2022-12-19) + + +### Bug Fixes + +* Install auth plugin on gke environment tests ([#1232](https://github.com/googleapis/java-logging/issues/1232)) ([d18bbba](https://github.com/googleapis/java-logging/commit/d18bbba07bc44e1bdc231a9ad0eaa258fb94081d)) + +## [3.13.6](https://github.com/googleapis/java-logging/compare/v3.13.5...v3.13.6) (2022-12-07) + + +### Bug Fixes + +* Retrieving logentries pagewise always results in an exception ([#1220](https://github.com/googleapis/java-logging/issues/1220)) ([662a439](https://github.com/googleapis/java-logging/commit/662a4394688661e7da2da51446cb3a73658ead62)) + +## [3.13.5](https://github.com/googleapis/java-logging/compare/v3.13.4...v3.13.5) (2022-12-06) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.1.0 ([#1219](https://github.com/googleapis/java-logging/issues/1219)) ([b54e015](https://github.com/googleapis/java-logging/commit/b54e015b13b52bfae0f57242a08c452a74cbfb29)) + +## [3.13.4](https://github.com/googleapis/java-logging/compare/v3.13.3...v3.13.4) (2022-12-03) + + +### Dependencies + +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.19 ([#1214](https://github.com/googleapis/java-logging/issues/1214)) ([f104203](https://github.com/googleapis/java-logging/commit/f1042031e5f2ef2fd1c008e9d15a1c14d4831435)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.19 ([#1215](https://github.com/googleapis/java-logging/issues/1215)) ([7785a7c](https://github.com/googleapis/java-logging/commit/7785a7c9c1e1b975cd9ee723076983268631a50d)) + +## [3.13.3](https://github.com/googleapis/java-logging/compare/v3.13.2...v3.13.3) (2022-12-01) + + +### Bug Fixes + +* Add a partner team as approvers for PRs ([#1211](https://github.com/googleapis/java-logging/issues/1211)) ([a69fd5e](https://github.com/googleapis/java-logging/commit/a69fd5e02b41e8818493797f8d4f64f75fdfb5e0)) +* Need a way to disable flushing ([#1206](https://github.com/googleapis/java-logging/issues/1206)) ([aa0c176](https://github.com/googleapis/java-logging/commit/aa0c176418534c1f07054ab10d66006fd88f6c39)) + +## [3.13.2](https://github.com/googleapis/java-logging/compare/v3.13.1...v3.13.2) (2022-11-21) + + +### Dependencies + +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.18 ([#1201](https://github.com/googleapis/java-logging/issues/1201)) ([8b00108](https://github.com/googleapis/java-logging/commit/8b001089f2b0c387134f5fda7cea762433be1198)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.18 ([#1202](https://github.com/googleapis/java-logging/issues/1202)) ([c884361](https://github.com/googleapis/java-logging/commit/c884361df06a4eb42712d41e1cfeaa9cf75792b1)) + +## [3.13.1](https://github.com/googleapis/java-logging/compare/v3.13.0...v3.13.1) (2022-11-16) + + +### Bug Fixes + +* Fix failing instrumentation test preventing release ([#1187](https://github.com/googleapis/java-logging/issues/1187)) ([04bb6c0](https://github.com/googleapis/java-logging/commit/04bb6c013f9e6f61976df43d6ebfc679524221af)) +* Test failures due to RESOURCE_EXHAUSTED ([#1197](https://github.com/googleapis/java-logging/issues/1197)) ([f74b86d](https://github.com/googleapis/java-logging/commit/f74b86d69db714884959dee7c1f4851df0a0c916)) +* Wrong order of libraries info in instrumentation ([#1196](https://github.com/googleapis/java-logging/issues/1196)) ([c3942ea](https://github.com/googleapis/java-logging/commit/c3942ea6a7ba3fe094e7971010cd30840675aacf)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.6 ([#1190](https://github.com/googleapis/java-logging/issues/1190)) ([01ebe33](https://github.com/googleapis/java-logging/commit/01ebe33363c9dd131de8ff90b87552934dfdd5a6)) +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.17 ([#1182](https://github.com/googleapis/java-logging/issues/1182)) ([d4f17ab](https://github.com/googleapis/java-logging/commit/d4f17ab247a9761632eb4b7503be3376c7353a29)) + +## [3.13.0](https://github.com/googleapis/java-logging/compare/v3.12.1...v3.13.0) (2022-11-04) + + +### Features + +* Add support for instrumentation version annotations ([#1179](https://github.com/googleapis/java-logging/issues/1179)) ([0931446](https://github.com/googleapis/java-logging/commit/09314464f5170c5c261c3676c55bd28d9ee1b27f)) +* Update release-please.yml with correct path ([#1184](https://github.com/googleapis/java-logging/issues/1184)) ([9e75fe4](https://github.com/googleapis/java-logging/commit/9e75fe4c991db88a39cf5a865c2de081068a6f8f)) + + +### Dependencies + +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.17 ([#1181](https://github.com/googleapis/java-logging/issues/1181)) ([1830525](https://github.com/googleapis/java-logging/commit/18305255917815a859e5957f1b835e7f6a919925)) + +## [3.12.1](https://github.com/googleapis/java-logging/compare/v3.12.0...v3.12.1) (2022-11-02) + + +### Bug Fixes + +* Make partialSuccess to be true by default ([#1173](https://github.com/googleapis/java-logging/issues/1173)) ([123960a](https://github.com/googleapis/java-logging/commit/123960ad31f9258d2dadd788029941bb984ae0fa)) + +## [3.12.0](https://github.com/googleapis/java-logging/compare/v3.11.10...v3.12.0) (2022-10-27) + + +### Features + +* Add support for batching configuration ([#1164](https://github.com/googleapis/java-logging/issues/1164)) ([35be8d1](https://github.com/googleapis/java-logging/commit/35be8d1e931a8784c3263299033fc24d623087b5)) + +## [3.11.10](https://github.com/googleapis/java-logging/compare/v3.11.9...v3.11.10) (2022-10-26) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.5 ([#1156](https://github.com/googleapis/java-logging/issues/1156)) ([413fa54](https://github.com/googleapis/java-logging/commit/413fa54ee4f38d5c28e91f54f4a5cd8e0407b08a)) +* Update dependency org.easymock:easymock to v5.0.1 ([#1159](https://github.com/googleapis/java-logging/issues/1159)) ([df8bfbe](https://github.com/googleapis/java-logging/commit/df8bfbeca6827e7d124a7880ae13e8bf6ec9c24c)) +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.16 ([#1144](https://github.com/googleapis/java-logging/issues/1144)) ([4836c7e](https://github.com/googleapis/java-logging/commit/4836c7e037bf6b15cb87d96770a12197cae9e57b)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.16 ([#1154](https://github.com/googleapis/java-logging/issues/1154)) ([a13ef9f](https://github.com/googleapis/java-logging/commit/a13ef9fa9c7d59a719534881cb4a995ead7e827d)) + +## [3.11.9](https://github.com/googleapis/java-logging/compare/v3.11.8...v3.11.9) (2022-10-17) + + +### Dependencies + +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.15 ([#1145](https://github.com/googleapis/java-logging/issues/1145)) ([5bd000c](https://github.com/googleapis/java-logging/commit/5bd000c55e24d53667eca0bcb22ee3cbb9f13fe0)) + +## [3.11.8](https://github.com/googleapis/java-logging/compare/v3.11.7...v3.11.8) (2022-10-15) + + +### Dependencies + +* Update dependency org.easymock:easymock to v5 ([#1139](https://github.com/googleapis/java-logging/issues/1139)) ([ad33e92](https://github.com/googleapis/java-logging/commit/ad33e92641907226004c82de2266afa99111a7d5)) + +## [3.11.7](https://github.com/googleapis/java-logging/compare/v3.11.6...v3.11.7) (2022-10-12) + + +### Bug Fixes + +* Add safe directory for environment tests ([#1131](https://github.com/googleapis/java-logging/issues/1131)) ([a6ff3c6](https://github.com/googleapis/java-logging/commit/a6ff3c663647bb92ee542a60a3eb25b1392a5457)) + +## [3.11.6](https://github.com/googleapis/java-logging/compare/v3.11.5...v3.11.6) (2022-10-07) + + +### Bug Fixes + +* Logging SDK not applying quota limits for project set using quotaProjectId ([#1125](https://github.com/googleapis/java-logging/issues/1125)) ([70fc6ee](https://github.com/googleapis/java-logging/commit/70fc6ee9c0fdc845a06e031ca82c50b8def2bb3b)) + +## [3.11.5](https://github.com/googleapis/java-logging/compare/v3.11.4...v3.11.5) (2022-10-03) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.4 ([#1120](https://github.com/googleapis/java-logging/issues/1120)) ([17a6e26](https://github.com/googleapis/java-logging/commit/17a6e26d955d9e8d6de9e7b68473f3d09a779d82)) + +## [3.11.4](https://github.com/googleapis/java-logging/compare/v3.11.3...v3.11.4) (2022-10-01) + + +### Bug Fixes + +* Add flush() calls in samples ([#1116](https://github.com/googleapis/java-logging/issues/1116)) ([6d3cb5b](https://github.com/googleapis/java-logging/commit/6d3cb5bf787409d44ba8c0d4c20fb6810a8d1d88)) + +## [3.11.3](https://github.com/googleapis/java-logging/compare/v3.11.2...v3.11.3) (2022-09-22) + + +### Dependencies + +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.14 ([#1079](https://github.com/googleapis/java-logging/issues/1079)) ([c08c4da](https://github.com/googleapis/java-logging/commit/c08c4da8cf91e4d168ad16038a460ac9ab2bed8e)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.14 ([#1080](https://github.com/googleapis/java-logging/issues/1080)) ([50c979b](https://github.com/googleapis/java-logging/commit/50c979b8d83f2b5f9c74bbb115b7c30e0326211d)) + +## [3.11.2](https://github.com/googleapis/java-logging/compare/v3.11.1...v3.11.2) (2022-09-21) + + +### Dependencies + +* Update dependency org.junit.vintage:junit-vintage-engine to v5.9.1 ([#1075](https://github.com/googleapis/java-logging/issues/1075)) ([d38e9e0](https://github.com/googleapis/java-logging/commit/d38e9e0a8a9b4faa487a4ce169d0189e8718a88b)) + +## [3.11.1](https://github.com/googleapis/java-logging/compare/v3.11.0...v3.11.1) (2022-09-15) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#1067](https://github.com/googleapis/java-logging/issues/1067)) ([6d36ffc](https://github.com/googleapis/java-logging/commit/6d36ffc9f4f7d7411df5fa17b770fba8c6402894)) + +## [3.11.0](https://github.com/googleapis/java-logging/compare/v3.10.8...v3.11.0) (2022-09-14) + + +### Features + +* Apply Google style recommendations ([#1057](https://github.com/googleapis/java-logging/issues/1057)) ([bfef3d1](https://github.com/googleapis/java-logging/commit/bfef3d1a26b499c67d064dcdfd071ea8b6f1eb1b)) + + +### Bug Fixes + +* Fix a couple linter issues on my stderr update ([#1061](https://github.com/googleapis/java-logging/issues/1061)) ([fa1a18f](https://github.com/googleapis/java-logging/commit/fa1a18f6f6c0924c1dba51d8796a5bb3f43c40a7)) + +## [3.10.8](https://github.com/googleapis/java-logging/compare/v3.10.7...v3.10.8) (2022-09-09) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#1060](https://github.com/googleapis/java-logging/issues/1060)) ([b5dea1b](https://github.com/googleapis/java-logging/commit/b5dea1b65e32859d84be76a242fc5aadb4a28277)) + +## [3.10.7](https://github.com/googleapis/java-logging/compare/v3.10.6...v3.10.7) (2022-09-07) + + +### Bug Fixes + +* Apply Google Java Code Clarity suggestions ([#1044](https://github.com/googleapis/java-logging/issues/1044)) ([79e9d8d](https://github.com/googleapis/java-logging/commit/79e9d8d00b0b9be10a12d6bb37f387f6f8b356f2)) + +## [3.10.6](https://github.com/googleapis/java-logging/compare/v3.10.5...v3.10.6) (2022-08-29) + + +### Dependencies + +* use error_prone_annotation via shared deps ([#1049](https://github.com/googleapis/java-logging/issues/1049)) ([0998b9b](https://github.com/googleapis/java-logging/commit/0998b9b83bc20a867dc22a68e103e4d3cac0f403)) + +## [3.10.5](https://github.com/googleapis/java-logging/compare/v3.10.4...v3.10.5) (2022-08-25) + + +### Bug Fixes + +* resource detection for 2nd gen of Cloud Functions works incorrectly ([#1045](https://github.com/googleapis/java-logging/issues/1045)) ([dda1d0a](https://github.com/googleapis/java-logging/commit/dda1d0a48c3db18b46b8306c3304a79054e9b49c)) + +## [3.10.4](https://github.com/googleapis/java-logging/compare/v3.10.3...v3.10.4) (2022-08-19) + + +### Dependencies + +* update dependency com.google.errorprone:error_prone_annotations to v2.15.0 ([#1037](https://github.com/googleapis/java-logging/issues/1037)) ([b2731c7](https://github.com/googleapis/java-logging/commit/b2731c70d1cdb3825e40fd80c771ea56777a1d27)) + +## [3.10.3](https://github.com/googleapis/java-logging/compare/v3.10.2...v3.10.3) (2022-08-19) + + +### Bug Fixes + +* Add explicit RunWith annotations on all tests ([#1004](https://github.com/googleapis/java-logging/issues/1004)) ([342157f](https://github.com/googleapis/java-logging/commit/342157fc0b5819e50a7c53ddb03f6016042272a3)) +* Apply fixes from Google error-prone ([#1010](https://github.com/googleapis/java-logging/issues/1010)) ([2d57d78](https://github.com/googleapis/java-logging/commit/2d57d7886f4281e779c8a1dd54aa056c5a8be46a)) +* Correct the JSON time field name ([#1020](https://github.com/googleapis/java-logging/issues/1020)) ([8c9a218](https://github.com/googleapis/java-logging/commit/8c9a2184bc5f5a697345d9dc1f2afc9b8fd759b7)) +* Fix flakiness in JSON test ([#1006](https://github.com/googleapis/java-logging/issues/1006)) ([cafafe4](https://github.com/googleapis/java-logging/commit/cafafe44531001254e014da07211cc6694df97cc)) +* Fix some typos ([#1008](https://github.com/googleapis/java-logging/issues/1008)) ([5666ee0](https://github.com/googleapis/java-logging/commit/5666ee0dea87bba9eda9d48afee8924a074db6dd)) +* Make LoggingHandler.logEntryFor extensible ([#1021](https://github.com/googleapis/java-logging/issues/1021)) ([79baac6](https://github.com/googleapis/java-logging/commit/79baac68a60cca699088723864bf2de23fca0580)) +* Replace Date with LocalDateTime ([#1012](https://github.com/googleapis/java-logging/issues/1012)) ([765dd89](https://github.com/googleapis/java-logging/commit/765dd895df201966e7dea5851e29638dde115ce2)) +* Supress unchecked conversion warnings ([#1014](https://github.com/googleapis/java-logging/issues/1014)) ([a93ee23](https://github.com/googleapis/java-logging/commit/a93ee233112b28f21d9cc1ed724638455ece4dc0)) +* Update the stub to avoid the deprecated *Map method ([#1002](https://github.com/googleapis/java-logging/issues/1002)) ([49bf5b4](https://github.com/googleapis/java-logging/commit/49bf5b41c354089ad213ff1ce5d3f42aa3d1d02e)) + + +### Dependencies + +* update dependency org.junit.vintage:junit-vintage-engine to v5.9.0 ([#1016](https://github.com/googleapis/java-logging/issues/1016)) ([e5f0b55](https://github.com/googleapis/java-logging/commit/e5f0b55acdcfb12e79a69eb213c60e237c9e630a)) + +## [3.10.2](https://github.com/googleapis/java-logging/compare/v3.10.1...v3.10.2) (2022-08-08) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v3 ([#1018](https://github.com/googleapis/java-logging/issues/1018)) ([17efd5c](https://github.com/googleapis/java-logging/commit/17efd5cdcd84ef894afc27afc665661eefb5a22b)) +* update dependency org.graalvm.buildtools:junit-platform-native to v0.9.13 ([#992](https://github.com/googleapis/java-logging/issues/992)) ([3856e4f](https://github.com/googleapis/java-logging/commit/3856e4fa5105f1da37c98a2fbb5ff5dc9166d41b)) +* update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.13 ([#993](https://github.com/googleapis/java-logging/issues/993)) ([a94e428](https://github.com/googleapis/java-logging/commit/a94e42820261caf063b7a8f43df594b873084d7b)) + +## [3.10.1](https://github.com/googleapis/java-logging/compare/v3.10.0...v3.10.1) (2022-07-13) + + +### Bug Fixes + +* enable longpaths support for windows test ([#1485](https://github.com/googleapis/java-logging/issues/1485)) ([#995](https://github.com/googleapis/java-logging/issues/995)) ([b2f68cb](https://github.com/googleapis/java-logging/commit/b2f68cb46d56521eeddcd63a0daea1abd85b70ae)) + + +### Dependencies + +* update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.12 ([#977](https://github.com/googleapis/java-logging/issues/977)) ([71dc1ee](https://github.com/googleapis/java-logging/commit/71dc1ee5ee98532958ea89f4ee7e3dd801d57501)) + +## [3.10.0](https://github.com/googleapis/java-logging/compare/v3.9.0...v3.10.0) (2022-06-25) + + +### Features + +* Add support for library instrumentation ([#979](https://github.com/googleapis/java-logging/issues/979)) ([2749974](https://github.com/googleapis/java-logging/commit/27499744f37a5fddcc2d6825c69481374e78829c)) + + +### Documentation + +* **sample:** update README for native image sample ([#974](https://github.com/googleapis/java-logging/issues/974)) ([1512487](https://github.com/googleapis/java-logging/commit/1512487e60141ed5c61a3a60fcca29f52f4ec141)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.13.0 ([#980](https://github.com/googleapis/java-logging/issues/980)) ([18acf1f](https://github.com/googleapis/java-logging/commit/18acf1f64d836ca3fb1b8f4b558ef21d728c391f)) +* update dependency org.graalvm.buildtools:junit-platform-native to v0.9.12 ([#976](https://github.com/googleapis/java-logging/issues/976)) ([01d3213](https://github.com/googleapis/java-logging/commit/01d3213b9e010c3ae3843e5a05bbd01b2961b454)) + +## [3.9.0](https://github.com/googleapis/java-logging/compare/v3.8.0...v3.9.0) (2022-05-19) + + +### Features + +* add build scripts for native image testing in Java 17 ([#1440](https://github.com/googleapis/java-logging/issues/1440)) ([#962](https://github.com/googleapis/java-logging/issues/962)) ([4edb7e4](https://github.com/googleapis/java-logging/commit/4edb7e46e313db88f5400ccada019ac01a51dee4)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.11.0 ([#960](https://github.com/googleapis/java-logging/issues/960)) ([c969b4c](https://github.com/googleapis/java-logging/commit/c969b4cddb54a4b7f25e7a5f8a4c665fde1ece47)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.12.0 ([#966](https://github.com/googleapis/java-logging/issues/966)) ([c95840b](https://github.com/googleapis/java-logging/commit/c95840bc83316c6064f99908da38952179ce4a54)) + +## [3.8.0](https://github.com/googleapis/java-logging/compare/v3.7.6...v3.8.0) (2022-05-16) + + +### Features + +* next release from main branch is 3.7.0 ([#957](https://github.com/googleapis/java-logging/issues/957)) ([576a93e](https://github.com/googleapis/java-logging/commit/576a93e2bba9939425e6fce22b13b6580565689c)) + +### [3.7.6](https://github.com/googleapis/java-logging/compare/v3.7.5...v3.7.6) (2022-05-03) + + +### Documentation + +* Add link to interactive tutorial ([#952](https://github.com/googleapis/java-logging/issues/952)) ([934df5a](https://github.com/googleapis/java-logging/commit/934df5ad5b29f11e781b8b8a4660f89198bb06d1)) +* Add link to interactive walkthrough ([#950](https://github.com/googleapis/java-logging/issues/950)) ([33ae197](https://github.com/googleapis/java-logging/commit/33ae197627d63d6c153f9bbb0076a071029cf686)) +* **sample:** removing unnecessary native-image-support dependency ([#947](https://github.com/googleapis/java-logging/issues/947)) ([75331a6](https://github.com/googleapis/java-logging/commit/75331a6aa754ed93171832f59a5c0012e7cb7e05)) + +### [3.7.5](https://github.com/googleapis/java-logging/compare/v3.7.4...v3.7.5) (2022-04-15) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 ([#930](https://github.com/googleapis/java-logging/issues/930)) ([074c6c7](https://github.com/googleapis/java-logging/commit/074c6c791059f4503a4103d8387f6b0b062db3a3)) +* update dependency com.google.cloud:native-image-support to v0.13.1 ([#931](https://github.com/googleapis/java-logging/issues/931)) ([2e4b4d0](https://github.com/googleapis/java-logging/commit/2e4b4d09192a75f3e9107c143c9e74fa05201e1a)) + +### [3.7.4](https://github.com/googleapis/java-logging/compare/v3.7.3...v3.7.4) (2022-03-31) + + +### Bug Fixes + +* Async logging should not rethrow error in onFailure callback ([#923](https://github.com/googleapis/java-logging/issues/923)) ([1adf867](https://github.com/googleapis/java-logging/commit/1adf86722361ce946c733de87cb217fa2f65bfd5)) +* Async logging should not rethrow error in onFailure callback correction ([#925](https://github.com/googleapis/java-logging/issues/925)) ([da92518](https://github.com/googleapis/java-logging/commit/da925189d808833f1b7cc7a1934bcf66f51663be)) + +### [3.7.3](https://github.com/googleapis/java-logging/compare/v3.7.2...v3.7.3) (2022-03-29) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.9.0 ([#917](https://github.com/googleapis/java-logging/issues/917)) ([b42717e](https://github.com/googleapis/java-logging/commit/b42717e8e2d825cee9918c48ae4b7628f225f6be)) +* update dependency com.google.cloud:native-image-support to v0.12.11 ([#916](https://github.com/googleapis/java-logging/issues/916)) ([6d6bbef](https://github.com/googleapis/java-logging/commit/6d6bbef4bfb0802677e2773ffd95047c71814613)) + +### [3.7.2](https://github.com/googleapis/java-logging/compare/v3.7.1...v3.7.2) (2022-03-24) + + +### Documentation + +* **sample:** Add sample for Native Image support in Logging ([#880](https://github.com/googleapis/java-logging/issues/880)) ([7e59bf3](https://github.com/googleapis/java-logging/commit/7e59bf3c3676ebc6bfcdf6e951d3d8f0b6c1589f)) + + +### Dependencies + +* update dependency com.google.cloud:native-image-support to v0.12.10 ([#903](https://github.com/googleapis/java-logging/issues/903)) ([b692e02](https://github.com/googleapis/java-logging/commit/b692e0247ea61b290aad0f0245184fd3c026629b)) +* update dependency org.graalvm.buildtools:junit-platform-native to v0.9.10 ([#904](https://github.com/googleapis/java-logging/issues/904)) ([d834a0a](https://github.com/googleapis/java-logging/commit/d834a0a5f10cda8a1327714f8a93c0c6e41143df)) +* update dependency org.graalvm.buildtools:junit-platform-native to v0.9.11 ([#912](https://github.com/googleapis/java-logging/issues/912)) ([c1d6559](https://github.com/googleapis/java-logging/commit/c1d65597ee8ce95dc6276c4f19d13a922c819f0d)) +* update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.10 ([#905](https://github.com/googleapis/java-logging/issues/905)) ([3c44e3e](https://github.com/googleapis/java-logging/commit/3c44e3ed51c52a84b5a5a517a8b8a105f083532c)) +* update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.11 ([#911](https://github.com/googleapis/java-logging/issues/911)) ([3721ef5](https://github.com/googleapis/java-logging/commit/3721ef53305e27afb5bad685a10eb8901988c7b9)) + +### [3.7.1](https://github.com/googleapis/java-logging/compare/v3.7.0...v3.7.1) (2022-03-03) + + +### Bug Fixes + +* do not use GAE_RUNTIME for GAE environment detection ([#891](https://github.com/googleapis/java-logging/issues/891)) ([19e9abb](https://github.com/googleapis/java-logging/commit/19e9abb389ed98cdcca7ef0dfa5b07e69568f6f9)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.8.0 ([#889](https://github.com/googleapis/java-logging/issues/889)) ([4885440](https://github.com/googleapis/java-logging/commit/48854405838151a4179f6d1727fc925b06d1727d)) + +## [3.7.0](https://github.com/googleapis/java-logging/compare/v3.6.4...v3.7.0) (2022-02-28) + + +### Features + +* KMS configuration in settings ([#877](https://github.com/googleapis/java-logging/issues/877)) ([27c199b](https://github.com/googleapis/java-logging/commit/27c199ba91b8423934788cbd6cb8e449dfc7b115)) +* Update Logging API with latest changes ([27c199b](https://github.com/googleapis/java-logging/commit/27c199ba91b8423934788cbd6cb8e449dfc7b115)) + + +### Bug Fixes + +* **deps:** set gson via java-shared-deps ([#878](https://github.com/googleapis/java-logging/issues/878)) ([5c97fea](https://github.com/googleapis/java-logging/commit/5c97feadf1d4fd80618cdcee19e02e4cbabfb1ea)) + +### [3.6.4](https://github.com/googleapis/java-logging/compare/v3.6.3...v3.6.4) (2022-02-15) + + +### Dependencies + +* update dependency com.google.code.gson:gson to v2.9.0 ([#868](https://github.com/googleapis/java-logging/issues/868)) ([f3d6f3f](https://github.com/googleapis/java-logging/commit/f3d6f3f0d29d1b56f8c8fd191b4b946bc31f6e10)) + +### [3.6.3](https://github.com/googleapis/java-logging/compare/v3.6.2...v3.6.3) (2022-02-11) + + +### Dependencies + +* update actions/github-script action to v6 ([#865](https://github.com/googleapis/java-logging/issues/865)) ([2d05dc8](https://github.com/googleapis/java-logging/commit/2d05dc81b3b56ae6b5205c26719bfd3985c5b9d7)) + +### [3.6.2](https://github.com/googleapis/java-logging/compare/v3.6.1...v3.6.2) (2022-02-03) + + +### Dependencies + +* **java:** update actions/github-script action to v5 ([#1339](https://github.com/googleapis/java-logging/issues/1339)) ([#851](https://github.com/googleapis/java-logging/issues/851)) ([7a5ee11](https://github.com/googleapis/java-logging/commit/7a5ee11ab17aaa36c688e1c631a4c9a65eae6352)) +* update actions/github-script action to v5 ([#849](https://github.com/googleapis/java-logging/issues/849)) ([286728a](https://github.com/googleapis/java-logging/commit/286728a941b34a67e3dccb119d6d2c13830e5c38)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.7.0 ([#852](https://github.com/googleapis/java-logging/issues/852)) ([eb2eef5](https://github.com/googleapis/java-logging/commit/eb2eef553ee6e9f9880f06fd6185e90367063d86)) + +### [3.6.1](https://github.com/googleapis/java-logging/compare/v3.6.0...v3.6.1) (2022-01-18) + + +### Bug Fixes + +* use initialized logging option in constructor ([#843](https://github.com/googleapis/java-logging/issues/843)) ([99fb678](https://github.com/googleapis/java-logging/commit/99fb6782f2a37be569309cc37591ce7b9c86092b)) + + +### Dependencies + +* update dependency org.easymock:easymock to v4 ([#830](https://github.com/googleapis/java-logging/issues/830)) ([21c2436](https://github.com/googleapis/java-logging/commit/21c243619e3b00891a0ff828e0f3e087b6e17d4b)) + +## [3.6.0](https://www.github.com/googleapis/java-logging/compare/v3.5.3...v3.6.0) (2022-01-07) + + +### Features + +* enable auto-population of missing metadata in logs and opting logs redirection to stdout in JUL handler ([#808](https://www.github.com/googleapis/java-logging/issues/808)) ([bb25d5d](https://www.github.com/googleapis/java-logging/commit/bb25d5def9de42fa6e0de5658154fbf2e72e8fba)) + +### [3.5.3](https://www.github.com/googleapis/java-logging/compare/v3.5.2...v3.5.3) (2022-01-07) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.6.0 ([#823](https://www.github.com/googleapis/java-logging/issues/823)) ([2816bb3](https://www.github.com/googleapis/java-logging/commit/2816bb37fc57be241b78d85a8862d8e7c9c47221)) + +### [3.5.2](https://www.github.com/googleapis/java-logging/compare/v3.5.1...v3.5.2) (2021-12-28) + + +### Bug Fixes + +* enforce w3c trace context value validation ([#777](https://www.github.com/googleapis/java-logging/issues/777)) ([0150655](https://www.github.com/googleapis/java-logging/commit/0150655891537a8de3f3debb5ec5c49f4a6de146)) +* **java:** add -ntp flag to native image testing command ([#1299](https://www.github.com/googleapis/java-logging/issues/1299)) ([#780](https://www.github.com/googleapis/java-logging/issues/780)) ([3f70b62](https://www.github.com/googleapis/java-logging/commit/3f70b6261b606c03307eb8ca5dbea14526d1b054)) +* Rename LogDestinationName.getId() to LogDestinationName.getDestinationId() ([#797](https://www.github.com/googleapis/java-logging/issues/797)) ([62e7838](https://www.github.com/googleapis/java-logging/commit/62e783839b9a7c29a05bfeac55189bd8ea1bdfd6)) +* Rename staleness.critical config parameter to staleness.extraold ([#781](https://www.github.com/googleapis/java-logging/issues/781)) ([3083bca](https://www.github.com/googleapis/java-logging/commit/3083bca8fb388092c5abfbe5efc58d1de757bb00)) + +### [3.5.1](https://www.github.com/googleapis/java-logging/compare/v3.5.0...v3.5.1) (2021-12-03) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.1 ([#773](https://www.github.com/googleapis/java-logging/issues/773)) ([56907a4](https://www.github.com/googleapis/java-logging/commit/56907a4b1d3a529655f3845bd1e46f308977b436)) + +## [3.5.0](https://www.github.com/googleapis/java-logging/compare/v3.4.0...v3.5.0) (2021-11-24) + + +### Features + +* Enable auto-label bot to mark stale pull requests ([#758](https://www.github.com/googleapis/java-logging/issues/758)) ([23f7fa5](https://www.github.com/googleapis/java-logging/commit/23f7fa559add710b96bad90002fcebef8ac0e5c9)) +* implement context handler to store HTTP request and tracing information ([#752](https://www.github.com/googleapis/java-logging/issues/752)) ([86223ff](https://www.github.com/googleapis/java-logging/commit/86223ff36f9c4b147f322ba646607727b92fbe7b)) + + +### Bug Fixes + +* handle null pointer when parsing metadata attributes ([#759](https://www.github.com/googleapis/java-logging/issues/759)) ([e8cf6f9](https://www.github.com/googleapis/java-logging/commit/e8cf6f91b56529d28cc002cedb0976ce952e0e0e)) +* modify list log entries example documentation ([#740](https://www.github.com/googleapis/java-logging/issues/740)) ([790fb1a](https://www.github.com/googleapis/java-logging/commit/790fb1a342d63704298d16a576f6cce15bfd4398)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.0 ([#743](https://www.github.com/googleapis/java-logging/issues/743)) ([c003417](https://www.github.com/googleapis/java-logging/commit/c003417aade41e025082f47f2185e66707bffcff)) + +## [3.4.0](https://www.github.com/googleapis/java-logging/compare/v3.3.0...v3.4.0) (2021-11-06) + + +### Features + +* Add an ability to delete logs based on project, folder, organization or billing account resource names ([#731](https://www.github.com/googleapis/java-logging/issues/731)) ([25673fd](https://www.github.com/googleapis/java-logging/commit/25673fdc2622f19926e3634ae187182f64efec18)) +* Add destination property into LogEntry ([#720](https://www.github.com/googleapis/java-logging/issues/720)) ([43ea0b4](https://www.github.com/googleapis/java-logging/commit/43ea0b465b29c22e7eb439811f19ada90b9d23dd)) +* add population of the SourceLocation from context ([#721](https://www.github.com/googleapis/java-logging/issues/721)) ([1fa3a6e](https://www.github.com/googleapis/java-logging/commit/1fa3a6e286336a861f83d9b59f28f309fc846d70)) +* Extend a set of options in WriteOption to allow defining the log location as custom project, folder, organization or billing account ([#727](https://www.github.com/googleapis/java-logging/issues/727)) ([1996cb4](https://www.github.com/googleapis/java-logging/commit/1996cb49fa0dc3dd4d35d7d2876c9ac3698a450b)) + + +### Bug Fixes + +* **java:** java 17 dependency arguments ([#1266](https://www.github.com/googleapis/java-logging/issues/1266)) ([#724](https://www.github.com/googleapis/java-logging/issues/724)) ([5a8cedf](https://www.github.com/googleapis/java-logging/commit/5a8cedfcd30b59c0630edb5769c850bc26467bb3)) + +## [3.3.0](https://www.github.com/googleapis/java-logging/compare/v3.2.0...v3.3.0) (2021-10-20) + + +### Features + +* implement revised version of the monitored resource type discovery and metadata population ([#708](https://www.github.com/googleapis/java-logging/issues/708)) ([0592c96](https://www.github.com/googleapis/java-logging/commit/0592c96bc697a983f521c7ac51df53661c801975)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.4.0 ([#714](https://www.github.com/googleapis/java-logging/issues/714)) ([6ba9df7](https://www.github.com/googleapis/java-logging/commit/6ba9df7e0f36ea4c41d8bd45a67fa671c41d9db6)) + +## [3.2.0](https://www.github.com/googleapis/java-logging/compare/v3.1.2...v3.2.0) (2021-09-27) + + +### Features + +* Add a sample snippet for use of the tailLogEntries API ([8115888](https://www.github.com/googleapis/java-logging/commit/81158885911e6c150fa04053fc41f95640329548)) +* add support for tailLogEntry API ([5a7845a](https://www.github.com/googleapis/java-logging/commit/5a7845a8c6476ca2d80e6fffdcb2f5f061f6260b)) + + +### Bug Fixes + +* add space to fix embedding exclusion in docs ([#615](https://www.github.com/googleapis/java-logging/issues/615)) ([9d70b96](https://www.github.com/googleapis/java-logging/commit/9d70b96914ae6217cbe58ab1af93e1d5dfe67ce1)) +* fix samples region tags and test flakiness ([#680](https://www.github.com/googleapis/java-logging/issues/680)) ([53481bd](https://www.github.com/googleapis/java-logging/commit/53481bde1e455037cd8102bc1b404ea2c491c235)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.3.0 ([#681](https://www.github.com/googleapis/java-logging/issues/681)) ([9be4047](https://www.github.com/googleapis/java-logging/commit/9be4047f5631c824e3f07cfc8c21211168bd51d4)) + +### [3.1.2](https://www.github.com/googleapis/java-logging/compare/v3.1.1...v3.1.2) (2021-09-16) + + +### Bug Fixes + +* Change timestamp type to support nanosecond resolution ([#654](https://www.github.com/googleapis/java-logging/issues/654)) ([7ae1537](https://www.github.com/googleapis/java-logging/commit/7ae153789268629539cf1ea5246597aae7aa8d19)), closes [#598](https://www.github.com/googleapis/java-logging/issues/598) +* Return Resource.K8sContainer when autodetecting resource type ([#641](https://www.github.com/googleapis/java-logging/issues/641)) ([6103560](https://www.github.com/googleapis/java-logging/commit/6103560c1c59c3c1ba83a4c9f2be5b5781640c36)) +* update CI to use maven 3.8.1 ([#662](https://www.github.com/googleapis/java-logging/issues/662)) ([9beb2ed](https://www.github.com/googleapis/java-logging/commit/9beb2ed44e3b7ad3eeaf6710b2195e50ac39016f)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.1 ([#667](https://www.github.com/googleapis/java-logging/issues/667)) ([8190656](https://www.github.com/googleapis/java-logging/commit/8190656732d3d388569b02dbd0aeefe0e0c7fdff)) + +### [3.1.1](https://www.github.com/googleapis/java-logging/compare/v3.1.0...v3.1.1) (2021-08-31) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.0 ([#649](https://www.github.com/googleapis/java-logging/issues/649)) ([8af8d14](https://www.github.com/googleapis/java-logging/commit/8af8d142eb3d90cd5fba5b3e34d388db1867a56a)) + +## [3.1.0](https://www.github.com/googleapis/java-logging/compare/v3.0.1...v3.1.0) (2021-08-24) + + +### Features + +* implement listLogs API and provide sample snippet ([#602](https://www.github.com/googleapis/java-logging/issues/602)) ([9359569](https://www.github.com/googleapis/java-logging/commit/935956944200d978738d86ae4adff6107532531c)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.1.0 ([#636](https://www.github.com/googleapis/java-logging/issues/636)) ([fb9ac95](https://www.github.com/googleapis/java-logging/commit/fb9ac954293f5a281024e122d06e8487cb3a62c1)) + +### [3.0.1](https://www.github.com/googleapis/java-logging/compare/v3.0.0...v3.0.1) (2021-08-11) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.0.1 ([#616](https://www.github.com/googleapis/java-logging/issues/616)) ([02a00a2](https://www.github.com/googleapis/java-logging/commit/02a00a2a417445bb12389e278288c5bac4fd3c81)) + +## [3.0.0](https://www.github.com/googleapis/java-logging/compare/v2.3.2...v3.0.0) (2021-08-04) + + +### ⚠ BREAKING CHANGES + +* release gapic-generator-java v2.0.0 (#605) + +### Features + +* deprecate methods ([#587](https://www.github.com/googleapis/java-logging/issues/587)) ([85e496d](https://www.github.com/googleapis/java-logging/commit/85e496d5884143ecc6cd1757fcce31d5b83ecda5)) +* release gapic-generator-java v2.0.0 ([#605](https://www.github.com/googleapis/java-logging/issues/605)) ([8fa5c5a](https://www.github.com/googleapis/java-logging/commit/8fa5c5ae1d76d9a0959add1036300a799918dcb4)) + + +### Bug Fixes + +* describe authorization required for service object ([#582](https://www.github.com/googleapis/java-logging/issues/582)) ([4fd3cdc](https://www.github.com/googleapis/java-logging/commit/4fd3cdc4b4c564da026a0a424ba8d49c8390982e)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2 ([#606](https://www.github.com/googleapis/java-logging/issues/606)) ([99cb3a0](https://www.github.com/googleapis/java-logging/commit/99cb3a005f2775034d2df207dcb1a6c7f19b6fd4)) + +### [2.3.2](https://www.github.com/googleapis/java-logging/compare/v2.3.1...v2.3.2) (2021-07-01) + + +### Bug Fixes + +* Add `shopt -s nullglob` to dependencies script ([#564](https://www.github.com/googleapis/java-logging/issues/564)) ([5a5f737](https://www.github.com/googleapis/java-logging/commit/5a5f7371569f3e5656a3e40fcc2d72b7a8e0e916)) +* Update dependencies.sh to not break on mac ([#559](https://www.github.com/googleapis/java-logging/issues/559)) ([5877a06](https://www.github.com/googleapis/java-logging/commit/5877a068ae466b0e61d240674263ddb772b43cb2)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.4.0 ([#568](https://www.github.com/googleapis/java-logging/issues/568)) ([623a85b](https://www.github.com/googleapis/java-logging/commit/623a85b0ca9ab893b925522fe38f1b03ab822d7e)) + +### [2.3.1](https://www.github.com/googleapis/java-logging/compare/v2.3.0...v2.3.1) (2021-06-04) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.3.0 ([#549](https://www.github.com/googleapis/java-logging/issues/549)) ([b6a7de0](https://www.github.com/googleapis/java-logging/commit/b6a7de0c8d698f33b261b5392f888022c0877000)) + +## [2.3.0](https://www.github.com/googleapis/java-logging/compare/v2.2.3...v2.3.0) (2021-05-26) + + +### Features + +* add `gcf-owl-bot[bot]` to `ignoreAuthors` ([#534](https://www.github.com/googleapis/java-logging/issues/534)) ([5e8a13f](https://www.github.com/googleapis/java-logging/commit/5e8a13f64ef29f2541aa246771ac1659c9f29e97)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.2.0 ([#532](https://www.github.com/googleapis/java-logging/issues/532)) ([8a30a36](https://www.github.com/googleapis/java-logging/commit/8a30a365310f07378e65e8e75e70b4fcbb920e17)) + +### [2.2.3](https://www.github.com/googleapis/java-logging/compare/v2.2.2...v2.2.3) (2021-05-11) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.1.0 ([#522](https://www.github.com/googleapis/java-logging/issues/522)) ([12fdf2a](https://www.github.com/googleapis/java-logging/commit/12fdf2afa2090bee0d23b30761561d2215ca13a3)) + +### [2.2.2](https://www.github.com/googleapis/java-logging/compare/v2.2.1...v2.2.2) (2021-04-24) + + +### Bug Fixes + +* release scripts from issuing overlapping phases ([#496](https://www.github.com/googleapis/java-logging/issues/496)) ([e3c1e84](https://www.github.com/googleapis/java-logging/commit/e3c1e84244b5f8cc4a792fd8c6346757f114d186)) +* typo ([#491](https://www.github.com/googleapis/java-logging/issues/491)) ([9b0423f](https://www.github.com/googleapis/java-logging/commit/9b0423fdad66368be15c2fa28f783f31964d5d9a)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.1 ([#500](https://www.github.com/googleapis/java-logging/issues/500)) ([f5581a5](https://www.github.com/googleapis/java-logging/commit/f5581a55dfe99812f0538ad19f9a3a259401323a)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v1 ([#507](https://www.github.com/googleapis/java-logging/issues/507)) ([b15d59b](https://www.github.com/googleapis/java-logging/commit/b15d59bea99a6c840b6316f5e25487cc8f057515)) + +### [2.2.1](https://www.github.com/googleapis/java-logging/compare/v2.2.0...v2.2.1) (2021-04-09) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.0 ([#481](https://www.github.com/googleapis/java-logging/issues/481)) ([944e190](https://www.github.com/googleapis/java-logging/commit/944e19060b6e1f47567783365e80a54b153d472c)) + +## [2.2.0](https://www.github.com/googleapis/java-logging/compare/v2.1.5...v2.2.0) (2021-03-11) + + +### Features + +* **generator:** update protoc to v3.15.3 ([#454](https://www.github.com/googleapis/java-logging/issues/454)) ([1e61adb](https://www.github.com/googleapis/java-logging/commit/1e61adb4b817ff099e17ccc9a4433fc5061a4826)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.1 ([#465](https://www.github.com/googleapis/java-logging/issues/465)) ([676d0ba](https://www.github.com/googleapis/java-logging/commit/676d0baea2c591f477c0036191874c3d40288251)) + +### [2.1.5](https://www.github.com/googleapis/java-logging/compare/v2.1.4...v2.1.5) (2021-02-25) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.0 ([#449](https://www.github.com/googleapis/java-logging/issues/449)) ([921553a](https://www.github.com/googleapis/java-logging/commit/921553a44e04afed95d6482eda210df43baf177d)) + +### [2.1.4](https://www.github.com/googleapis/java-logging/compare/v2.1.3...v2.1.4) (2021-02-22) + + +### Documentation + +* generate sample code in the Java microgenerator ([#423](https://www.github.com/googleapis/java-logging/issues/423)) ([8649f2f](https://www.github.com/googleapis/java-logging/commit/8649f2fa8d8d730422ea426142fba2bf3ebfec94)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.19.0 ([#439](https://www.github.com/googleapis/java-logging/issues/439)) ([9cd8474](https://www.github.com/googleapis/java-logging/commit/9cd8474fdcd313f08216642254d72de9ce1a3214)) + +### [2.1.3](https://www.github.com/googleapis/java-logging/compare/v2.1.2...v2.1.3) (2021-01-22) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.17.1 ([#390](https://www.github.com/googleapis/java-logging/issues/390)) ([3054f17](https://www.github.com/googleapis/java-logging/commit/3054f17bb23f9ac99e373d5368f5e18b9668b917)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.18.0 ([#392](https://www.github.com/googleapis/java-logging/issues/392)) ([219a7f8](https://www.github.com/googleapis/java-logging/commit/219a7f85d06327fe0bac4b7c1a36bda17bbb3382)) + +### [2.1.2](https://www.github.com/googleapis/java-logging/compare/v2.1.1...v2.1.2) (2020-12-15) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.17.0 ([#373](https://www.github.com/googleapis/java-logging/issues/373)) ([af43940](https://www.github.com/googleapis/java-logging/commit/af439404fb7786e8bc1856ee4b03796110677c98)) + +### [2.1.1](https://www.github.com/googleapis/java-logging/compare/v2.1.0...v2.1.1) (2020-12-14) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.1 ([84c8865](https://www.github.com/googleapis/java-logging/commit/84c88659d1a47633bcd545609262f71e747aaaed)) + +## [2.1.0](https://www.github.com/googleapis/java-logging/compare/v2.0.1...v2.1.0) (2020-12-10) + + +### Features + +* add support for k8s_container resource type ([#207](https://www.github.com/googleapis/java-logging/issues/207)) ([233efcc](https://www.github.com/googleapis/java-logging/commit/233efcce7d08cc66088d367b7fb6c104cb2f3a46)) +* fix resourceNames ([#24](https://www.github.com/googleapis/java-logging/issues/24)) ([70242d5](https://www.github.com/googleapis/java-logging/commit/70242d525dc3164c043f86d720e9210af40c6af5)) +* Makes remaining LogBucket and LogViews methods public ([#336](https://www.github.com/googleapis/java-logging/issues/336)) ([f3472c2](https://www.github.com/googleapis/java-logging/commit/f3472c27c79740cb62f83eaff66bb48f3e4ac723)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.0 ([#350](https://www.github.com/googleapis/java-logging/issues/350)) ([ea92588](https://www.github.com/googleapis/java-logging/commit/ea9258838c66be244c440c76f84e5db729661791)) + + +### Documentation + +* specify current version ([#356](https://www.github.com/googleapis/java-logging/issues/356)) ([729b650](https://www.github.com/googleapis/java-logging/commit/729b650ff6a5f5022e5e5a32b0ef7b2c1642858f)) + +### [2.0.1](https://www.github.com/googleapis/java-logging/compare/v2.0.0...v2.0.1) (2020-11-12) + + +### Dependencies + +* update googleapis/code-suggester action to v1.8.1 ([#321](https://www.github.com/googleapis/java-logging/issues/321)) ([cc303c3](https://www.github.com/googleapis/java-logging/commit/cc303c3494cf10dc611ddd1901b2befcf54f32a4)) + +## [2.0.0](https://www.github.com/googleapis/java-logging/compare/v1.101.2...v2.0.0) (2020-11-11) + + +### ⚠ BREAKING CHANGES + +* previously if the user called listLogEntries API with no parameters, the query would try to retrieve all log entries, taking up time and eventually crashing on projects with high volume logs. The new behavior complies with gcloud: if no timestamp filter was specified, it appends a filter covering last 24 hours. +* remove Start/EndTime from LogSink, Metadata from LogEntry, implement multipattern resource names (#174) + +### Features + +* add logging bucket destination for log sinks ([#226](https://www.github.com/googleapis/java-logging/issues/226)) ([ef97aae](https://www.github.com/googleapis/java-logging/commit/ef97aae71c550c4501b231c32d6d58746af4d130)) +* expose log exclusion apis ([#162](https://www.github.com/googleapis/java-logging/issues/162)) ([0038828](https://www.github.com/googleapis/java-logging/commit/00388289e2dc379b65d790d3af1fc3520b6843e9)) +* remove Start/EndTime from LogSink, Metadata from LogEntry, implement multipattern resource names ([#174](https://www.github.com/googleapis/java-logging/issues/174)) ([d3d2370](https://www.github.com/googleapis/java-logging/commit/d3d2370a5b2ffcf012faba0a1b893a2321d58ba0)) +* update retry settings ([#201](https://www.github.com/googleapis/java-logging/issues/201)) ([6b9d382](https://www.github.com/googleapis/java-logging/commit/6b9d3824a1dde94ac6c4b05627737d8605340f1f)) +* **deps:** adopt flatten plugin and google-cloud-shared-dependencies ([#191](https://www.github.com/googleapis/java-logging/issues/191)) ([e1ece40](https://www.github.com/googleapis/java-logging/commit/e1ece4063dc1f022b043ed3209cfcae3f8323c71)) + + +### Bug Fixes + +* add default time range filter for ListLogEntries API ([#304](https://www.github.com/googleapis/java-logging/issues/304)) ([c2f40df](https://www.github.com/googleapis/java-logging/commit/c2f40df6ed815e2229e0381a993e7e94e2e651fc)) +* make TransportChannel autocloseable ([#212](https://www.github.com/googleapis/java-logging/issues/212)) ([e4853b1](https://www.github.com/googleapis/java-logging/commit/e4853b180193f8e5a5c1151917a74745b5dd4427)) +* remove usage of deprecated newInstance() method ([#203](https://www.github.com/googleapis/java-logging/issues/203)) ([039d9ba](https://www.github.com/googleapis/java-logging/commit/039d9ba17fff6f9851091166eeba1e7c8d0cd4bc)) + + +### Dependencies + +* update core dependencies ([#170](https://www.github.com/googleapis/java-logging/issues/170)) ([5ab9181](https://www.github.com/googleapis/java-logging/commit/5ab9181dd0774a631cd6997cb9d15bff1b83592f)) +* update dependency com.google.api:api-common to v1.9.2 ([#169](https://www.github.com/googleapis/java-logging/issues/169)) ([288a894](https://www.github.com/googleapis/java-logging/commit/288a894f3ec0bda774b1fbc6c81690a92c387757)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.10.0 ([#254](https://www.github.com/googleapis/java-logging/issues/254)) ([d63b4b4](https://www.github.com/googleapis/java-logging/commit/d63b4b4198235af54ed84d153be8229469690afa)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.10.2 ([#273](https://www.github.com/googleapis/java-logging/issues/273)) ([870d7d7](https://www.github.com/googleapis/java-logging/commit/870d7d72a8938472354008fc9ea11bc36b5789ad)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.13.0 ([#289](https://www.github.com/googleapis/java-logging/issues/289)) ([1488370](https://www.github.com/googleapis/java-logging/commit/148837000588892f8c92a9d9354a3c30f0b0faad)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.14.1 ([#310](https://www.github.com/googleapis/java-logging/issues/310)) ([cc4b57f](https://www.github.com/googleapis/java-logging/commit/cc4b57f2e50df23bd85045fbd4b00462eb77969a)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.15.0 ([#320](https://www.github.com/googleapis/java-logging/issues/320)) ([e97dda7](https://www.github.com/googleapis/java-logging/commit/e97dda77029ed7cde83b4499e417468adc34ef58)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.8.6 ([#200](https://www.github.com/googleapis/java-logging/issues/200)) ([a4f19e8](https://www.github.com/googleapis/java-logging/commit/a4f19e8afa78ced9de5b2d2f96231373493e4ca8)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.9.0 ([#224](https://www.github.com/googleapis/java-logging/issues/224)) ([506738c](https://www.github.com/googleapis/java-logging/commit/506738c61b1415edff0cec9970e2f7905b661059)) +* update dependency com.google.protobuf:protobuf-bom to v3.12.2 ([#168](https://www.github.com/googleapis/java-logging/issues/168)) ([2732f81](https://www.github.com/googleapis/java-logging/commit/2732f81d932410bc3e39d4add76bac542325a575)) + +### [1.101.2](https://www.github.com/googleapis/java-logging/compare/v1.101.1...v1.101.2) (2020-06-10) + + +### Bug Fixes + +* remove duplicate classes provided by proto-google-common-protos ([#177](https://www.github.com/googleapis/java-logging/issues/177)) ([08d8639](https://www.github.com/googleapis/java-logging/commit/08d86391250642cbe4bac27b3853fe7f40458cdc)) + + +### Dependencies + +* update dependency com.google.api.grpc:proto-google-common-protos to v1.18.0 ([#156](https://www.github.com/googleapis/java-logging/issues/156)) ([84a6ccd](https://www.github.com/googleapis/java-logging/commit/84a6ccde0cf01fc0d7c331300abadfcf4e004b7a)) +* update dependency com.google.guava:guava-bom to v29 ([#136](https://www.github.com/googleapis/java-logging/issues/136)) ([8c261a0](https://www.github.com/googleapis/java-logging/commit/8c261a0d3386bf3867fda7cc0eac2e6821639359)) +* update dependency com.google.http-client:google-http-client-bom to v1.35.0 ([#153](https://www.github.com/googleapis/java-logging/issues/153)) ([181447a](https://www.github.com/googleapis/java-logging/commit/181447a6b33ed34de16926da008e789ac5570043)) +* update dependency com.google.protobuf:protobuf-bom to v3.12.0 ([#165](https://www.github.com/googleapis/java-logging/issues/165)) ([62ec11d](https://www.github.com/googleapis/java-logging/commit/62ec11d0f4be627a291567d356b0912d35b00f99)) +* update dependency io.grpc:grpc-bom to v1.29.0 ([#149](https://www.github.com/googleapis/java-logging/issues/149)) ([5841918](https://www.github.com/googleapis/java-logging/commit/5841918619873f500efe000d60bd8d3c5f5ab0d8)) +* update dependency org.threeten:threetenbp to v1.4.4 ([#151](https://www.github.com/googleapis/java-logging/issues/151)) ([abeac81](https://www.github.com/googleapis/java-logging/commit/abeac81a3117eb42ec3bfa9bfa1b934a303bc90e)) + +### [1.101.1](https://www.github.com/googleapis/java-logging/compare/v1.101.0...v1.101.1) (2020-04-07) + + +### Dependencies + +* update core dependencies ([#115](https://www.github.com/googleapis/java-logging/issues/115)) ([cc89e00](https://www.github.com/googleapis/java-logging/commit/cc89e00a7a3d6b1339c73f4de7651da0eebdf411)) +* update core dependencies to v1.93.4 ([#131](https://www.github.com/googleapis/java-logging/issues/131)) ([77c5cf6](https://www.github.com/googleapis/java-logging/commit/77c5cf6175936c51acaa3e441baf91e629475ae2)) +* update dependency org.threeten:threetenbp to v1.4.3 ([#117](https://www.github.com/googleapis/java-logging/issues/117)) ([1a4ad46](https://www.github.com/googleapis/java-logging/commit/1a4ad461f5e2ac3252b9e287bbc9015eae00e0fa)) + +## [1.101.0](https://www.github.com/googleapis/java-logging/compare/v1.100.0...v1.101.0) (2020-03-25) + + +### Features + +* add CmekSettings options ([#89](https://www.github.com/googleapis/java-logging/issues/89)) ([f76206d](https://www.github.com/googleapis/java-logging/commit/f76206d6d137fec9e73ef7e93a8b77193d71166c)) + + +### Bug Fixes + +* **regen:** undeprecate resourcenames until multi-pattern resource names are available ([#108](https://www.github.com/googleapis/java-logging/issues/108)) ([4ca5895](https://www.github.com/googleapis/java-logging/commit/4ca5895f2bb83fcf1c7ecf908aae1c50d9cd89d9)) + + +### Dependencies + +* update core dependencies ([#61](https://www.github.com/googleapis/java-logging/issues/61)) ([a73322c](https://www.github.com/googleapis/java-logging/commit/a73322cb0e8f43eb253a4004189f1e4d387dcb1c)) +* update core dependencies ([#85](https://www.github.com/googleapis/java-logging/issues/85)) ([5e61aa7](https://www.github.com/googleapis/java-logging/commit/5e61aa7180934af6b63e845f2d172c6e6d08d0ee)) +* update core dependencies ([#92](https://www.github.com/googleapis/java-logging/issues/92)) ([4fe64cc](https://www.github.com/googleapis/java-logging/commit/4fe64cc5fa0c680733e42cfc6d40c9e7aaac77a6)) +* update core dependencies to v1.93.1 ([#113](https://www.github.com/googleapis/java-logging/issues/113)) ([2d68fe9](https://www.github.com/googleapis/java-logging/commit/2d68fe9a9653d08eec5427f877848cbc25c47c4b)) +* update core deps ([#109](https://www.github.com/googleapis/java-logging/issues/109)) ([75d38f1](https://www.github.com/googleapis/java-logging/commit/75d38f1d6d56605f5d446cc581a5abf96256c3f4)) +* update dependency com.google.api:api-common to v1.9.0 ([#120](https://www.github.com/googleapis/java-logging/issues/120)) ([87ebf36](https://www.github.com/googleapis/java-logging/commit/87ebf36b455478357ea1c0185584d5813244ade8)) +* update dependency com.google.http-client:google-http-client-bom to v1.34.1 ([#81](https://www.github.com/googleapis/java-logging/issues/81)) ([dacc7db](https://www.github.com/googleapis/java-logging/commit/dacc7db6775a5489f1d43467bbece7fd781e14ba)) +* update dependency com.google.http-client:google-http-client-bom to v1.34.2 ([#94](https://www.github.com/googleapis/java-logging/issues/94)) ([55f6936](https://www.github.com/googleapis/java-logging/commit/55f6936f9933d17d29ea5244d93b9460837a7c70)) +* update dependency com.google.protobuf:protobuf-bom to v3.11.3 ([#87](https://www.github.com/googleapis/java-logging/issues/87)) ([dee31b3](https://www.github.com/googleapis/java-logging/commit/dee31b386b7b930419013a17cb1ae0399d7a5bdf)) +* update dependency com.google.protobuf:protobuf-bom to v3.11.4 ([#95](https://www.github.com/googleapis/java-logging/issues/95)) ([954897e](https://www.github.com/googleapis/java-logging/commit/954897e43c746961d69550644f1dd5a2936d50e5)) + + +### Documentation + +* **regen:** update sample code to set total timeout, add API client header test ([#91](https://www.github.com/googleapis/java-logging/issues/91)) ([133a762](https://www.github.com/googleapis/java-logging/commit/133a762a93f0bd2725edc5342eada77459c78896)) + +## [1.100.0](https://www.github.com/googleapis/java-logging/compare/v1.99.0...v1.100.0) (2020-01-23) + + +### Features + +* add label fullStacktrace ([#40](https://www.github.com/googleapis/java-logging/issues/40)) ([43e1953](https://www.github.com/googleapis/java-logging/commit/43e19533f969d0e2a2c0c31669a4de191e8cd67e)) + + +### Bug Fixes + +* support for Cloud Run monitored resource ([#78](https://www.github.com/googleapis/java-logging/issues/78)) ([b3c1b68](https://www.github.com/googleapis/java-logging/commit/b3c1b68712060299c9df5928ec011f556b8340ad)), closes [#71](https://www.github.com/googleapis/java-logging/issues/71) + + +### Dependencies + +* update core dependencies ([#54](https://www.github.com/googleapis/java-logging/issues/54)) ([9ae3410](https://www.github.com/googleapis/java-logging/commit/9ae341087e99edce79d30ddc7d8aa33e347f20d5)) +* update dependency com.google.http-client:google-http-client-bom to v1.34.0 ([#45](https://www.github.com/googleapis/java-logging/issues/45)) ([6bab25b](https://www.github.com/googleapis/java-logging/commit/6bab25b334405278de3bae6c9c2b3a88d872f9bd)) +* update dependency com.google.protobuf:protobuf-java to v3.11.1 ([eb0befc](https://www.github.com/googleapis/java-logging/commit/eb0befc97a838b2c003851973d53e8530b54b7a7)) +* update dependency org.threeten:threetenbp to v1.4.1 ([f560dca](https://www.github.com/googleapis/java-logging/commit/f560dca9466ce13a634da430ff2209234f22096e)) +* update libraries-bom to 3.3.0 ([#59](https://www.github.com/googleapis/java-logging/issues/59)) ([91c2a4e](https://www.github.com/googleapis/java-logging/commit/91c2a4e993ae2b60cd6c21ec271e805401724cc1)) + + +### Documentation + +* **regen:** updated javadocs from protoc update ([#41](https://www.github.com/googleapis/java-logging/issues/41)) ([63d626c](https://www.github.com/googleapis/java-logging/commit/63d626cb458aeb631fe2e87d83141bfb6e50e2d4)) + +## [1.99.0](https://www.github.com/googleapis/java-logging/compare/1.98.0...v1.99.0) (2019-11-20) + + +### Features + +* make repo releasable, add parent/bom ([#1](https://www.github.com/googleapis/java-logging/issues/1)) ([1249ea7](https://www.github.com/googleapis/java-logging/commit/1249ea764f2531ad7fc6958fc3df47da5bc004d9)) + + +### Dependencies + +* update dependency io.grpc:grpc-bom to v1.25.0 ([#7](https://www.github.com/googleapis/java-logging/issues/7)) ([f602d3b](https://www.github.com/googleapis/java-logging/commit/f602d3b9096e6121a3f776ac50615461af826053)) +* use google-cloud-core-bom and update to v1.91.3 ([#15](https://www.github.com/googleapis/java-logging/issues/15)) ([f2c9cb8](https://www.github.com/googleapis/java-logging/commit/f2c9cb86ffd6c604b57e8744de19d4b801f2cf00)) diff --git a/java-logging/README.md b/java-logging/README.md new file mode 100644 index 000000000000..883c577c0e35 --- /dev/null +++ b/java-logging/README.md @@ -0,0 +1,468 @@ +# Google Cloud Logging Client for Java + +Java idiomatic client for [Cloud Logging][product-docs]. + +[![Maven][maven-version-image]][maven-version-link] +![Stability][stability-image] + +- [Product Documentation][product-docs] +- [Client Library Documentation][javadocs] + + +## Quickstart + +If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: + +```xml + + + + com.google.cloud + libraries-bom + 26.55.0 + pom + import + + + + + + + com.google.cloud + google-cloud-logging + + + + +``` + +If you are using Maven without the BOM, add this to your dependencies: + + +```xml + + com.google.cloud + google-cloud-logging + 3.21.3 + + +``` + +If you are using Gradle 5.x or later, add this to your dependencies: + +```Groovy +implementation platform('com.google.cloud:libraries-bom:26.75.0') + +implementation 'com.google.cloud:google-cloud-logging' +``` +If you are using Gradle without BOM, add this to your dependencies: + +```Groovy +implementation 'com.google.cloud:google-cloud-logging:3.24.0' +``` + +If you are using SBT, add this to your dependencies: + +```Scala +libraryDependencies += "com.google.cloud" % "google-cloud-logging" % "3.24.0" +``` + +## Authentication + +See the [Authentication][authentication] section in the base directory's README. + +## Authorization + +The client application making API calls must be granted [authorization scopes][auth-scopes] required for the desired Cloud Logging APIs, and the authenticated principal must have the [IAM role(s)][predefined-iam-roles] required to access GCP resources using the Cloud Logging API calls. + +## Getting Started + +### Prerequisites + +You will need a [Google Cloud Platform Console][developer-console] project with the Cloud Logging [API enabled][enable-api]. +You will need to [enable billing][enable-billing] to use Google Cloud Logging. +[Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by +[installing the Google Cloud Command Line Interface][cloud-cli] and running the following commands in command line: +`gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`. + +### Installation and setup + +You'll need to obtain the `google-cloud-logging` library. See the [Quickstart](#quickstart) section +to add `google-cloud-logging` as a dependency in your code. + +## About Cloud Logging + + +[Cloud Logging][product-docs] allows you to store, search, analyze, monitor, and alert on log data and events from Google Cloud and Amazon Web Services. Using the BindPlane service, you can also collect this data from over 150 common application components, on-premises systems, and hybrid cloud systems. BindPlane is included with your Google Cloud project at no additional cost. + +See the [Cloud Logging client library docs][javadocs] to learn how to +use this Cloud Logging Client Library. + + +#### Creating an authorized service object + +To make requests to Cloud Logging, you must create a service object with valid credentials. +You can then make API calls by calling methods on the Logging service object. +You can obtain credentials by using [Application Default Credentials](https://developers.google.com/identity/protocols/application-default-credentials). +Or you can use a [Service Account](https://cloud.google.com/iam/docs/service-accounts) which is a recommended way to obtain credentials. +The credentials can be automatically inferred from your [environment](https://cloud.google.com/docs/authentication/getting-started#setting_the_environment_variable). +Then you only need the following code to create your service object: + +```java +import com.google.cloud.logging.Logging; +import com.google.cloud.logging.LoggingOptions; + +LoggingOptions options = LoggingOptions.getDefaultInstance(); +try(Logging logging = options.getService()) { + // use logging here +} +``` + +For other options, see the [Authentication](https://github.com/googleapis/google-cloud-java#authentication) page. +The service object should be granted permissions to make API calls. +Each API call describes the permissions under Authorized Scopes section. +See [Logging API](https://cloud.google.com/logging/docs/reference/v2/rest) to find the required list of permissions or consult with [Access control guide](https://cloud.google.com/logging/docs/access-control) for predefined IAM roles that can be granted to the Logging service object. + +#### Creating a metric +With Logging you can create logs-based metrics. Logs-based metrics allow to keep track of the number +of log messages associated to specific events. Add the following imports at the top of your file: + +```java +import com.google.cloud.logging.Metric; +import com.google.cloud.logging.MetricInfo; +``` + +Then, to create the metric, use the following code: + +```java +MetricInfo metricInfo = MetricInfo.newBuilder("test-metric", "severity >= ERROR") + .setDescription("Log entries with severity higher or equal to ERROR") + .build(); +logging.create(metricInfo); +``` + +#### Writing log entries +For an interactive tutorial click + +[![Guide Me](_static/guide-me.svg)](https://console.cloud.google.com/?walkthrough_id=logging__logging-java) + +With Logging you can also write custom log entries. Add the following imports at the top of your +file: + +```java +import com.google.cloud.MonitoredResource; +import com.google.cloud.logging.LogEntry; +import com.google.cloud.logging.Logging; +import com.google.cloud.logging.Payload.StringPayload; + +import java.util.Collections; +``` + +Then, to write the log entries, use the following code: + +```java +LogEntry firstEntry = LogEntry.newBuilder(StringPayload.of("message")) + .setLogName("test-log") + .setResource(MonitoredResource.newBuilder("global") + .addLabel("project_id", options.getProjectId()) + .build()) + .build(); +logging.write(Collections.singleton(firstEntry)); +``` + +The library supports writing log entries synchronously and asynchronously. +In the synchronous mode each call to `write()` method results in a consequent call to Logging API to write a log entry. +In the asynchronous mode the call(s) to Logging API takes place asynchronously and few calls to `write()` method may be batched together to compose a single call to Logging API. +The default mode of writing is asynchronous. +It can be configured in the `java.util.logging` handler [configuration file](https://cloud.google.com/logging/docs/setup/java#javautillogging_configuration): + +``` +com.google.cloud.logging.LoggingHandler.synchronicity=SYNC +``` + +or in the code after initiating an instance of `Logging` by calling: + +```java +logging.setWriteSynchronicity(Synchronicity.SYNC); +``` + +NOTE: +> Writing log entries asynchronously in some Google Cloud managed environments (e.g. Cloud Functions) +> may lead to unexpected results such as absense of expected log entries or abnormal program execution. +> To avoid these unexpected results, it is recommended to use synchronous mode. + +#### Controlling the batching settings +As mentioned before, in the asynchronous mode the call(s) to Logging API takes place asynchronously and few calls to `write()` +method may be batched together to compose a single call to Logging API. In order to control the batching settings, the `LoggingOptions` +is enhanced with `BatchingSettings` which can be set as shown in example below: + +```java +import com.google.api.gax.batching.BatchingSettings; +import com.google.api.gax.batching.FlowControlSettings; +import com.google.api.gax.batching.FlowController; + +LoggingOptions actual = + LoggingOptions.newBuilder() + .setBatchingSettings( + BatchingSettings.newBuilder() + .setIsEnabled(true) + .setElementCountThreshold(1000L) + .setRequestByteThreshold(1048576L) + .setDelayThreshold(Duration.ofMillis(50L)) + .setFlowControlSettings( + FlowControlSettings.newBuilder() + .setMaxOutstandingElementCount(100000L) + .setMaxOutstandingRequestBytes(10485760L) + .setLimitExceededBehavior( + FlowController.LimitExceededBehavior.ThrowException) + .build()) + .build()) + .setProjectId('Your project ID') + .build(); +``` + +You can find more information about batching parameters see [BatchingSettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.batching.BatchingSettings). + +#### Listing log entries + +With Logging you can also list log entries that have been previously written. Add the following +imports at the top of your file: + +```java +import com.google.api.gax.paging.Page; +import com.google.cloud.logging.LogEntry; +import com.google.cloud.logging.Logging.EntryListOption; +``` + +Then, to list the log entries, use the following code: + +``` java +Page entries = logging.listLogEntries( + EntryListOption.filter("logName=projects/" + options.getProjectId() + "/logs/test-log")); +while (entries != null) { + for (LogEntry logEntry : entries.iterateAll()) { + System.out.println(logEntry); + } + entries = entries.getNextPage(); +} +``` +#### Add a Cloud Logging handler to a logger + +You can also register a `LoggingHandler` to a `java.util.logging.Logger` that publishes log entries +to Cloud Logging. Given the following logger: + +```java +private final static Logger LOGGER = Logger.getLogger(MyClass.class.getName()); +``` + +You can register a `LoggingHandler` with the code: + +```java +LoggingHandler.addHandler(LOGGER, new LoggingHandler()); +``` + +After that, logs generated using `LOGGER` will be also directed to Cloud Logging. + +Notice that you can also register a `LoggingHandler` via the `logging.properties` configuration +file. Adding, for instance, the following line: + +``` +com.google.cloud.examples.logging.snippets.AddLoggingHandler.handlers=com.google.cloud.logging.LoggingHandler +``` + +#### Alternative way to ingest logs in Google Cloud managed environments + +If you use Java logger with the Cloud Logging Handler, you can configure the handler to output logs to `stdout` using +the [structured logging Json format](https://cloud.google.com/logging/docs/structured-logging#special-payload-fields). +To do this, add `com.google.cloud.logging.LoggingHandler.redirectToStdout=true` to the logger configuration file. +You can use this configuration when running applications in Google Cloud managed environments such as AppEngine, Cloud Run, +Cloud Function or GKE. The logger agent installed on these environments can capture STDOUT and ingest it into Cloud Logging. +The agent can parse structured logs printed to STDOUT and capture additional log metadata beside the log payload. +The parsed information includes severity, source location, user labels, http request and tracing information. + +#### Auto-population of log entrys' metadata + +LogEntry object metadata information such as [monitored resource](https://cloud.google.com/logging/docs/reference/v2/rest/v2/MonitoredResource), +[Http request](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#HttpRequest) or +[source location](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#LogEntrySourceLocation) +are automatically populated with information that the library retrieves from the execution context. +The library populates only empty (set to `null`) LogEntry fields. +This behavior in the `Logging` instance can be opted out via `LoggingOptions`. +Call `LoggingOptions.Builder.setAutoPopulateMetadata(false)` to configure logging options to opt-out the metadata auto-population. +Cloud Logging handler can be configured to opt-out automatic population of the metadata using the logger configuration. +To disable the metadata auto-population add `com.google.cloud.logging.LoggingHandler.autoPopulateMetadata=false` +to the logger configuration file. + +The auto-population logic populates source location _only_ for log entries with `Severity.DEBUG` severity. +The execution context of the Http request and tracing information is maintained by `ContextHandler` class. +The context is managed in the scope of the thread. +If you do not use thread pools for multi-threading the `ContextHandler` can be configured to propagate the context +to the scope of the child threads. +To enable this add `com.google.cloud.logging.ContextHandler.useInheritedContext=true` to the logger configuration file. +The library provides two methods to update the context: + +* Manually set the context. You can use the following methods of the `Context.Builder` to set the context information. +Use the method `setRequest()` to setup the `HttpRequest` instance or `setRequestUrl()`, `setRequestMethod()`, +`setReferer() `, `setRemoteIp()` and `setServerIp()` to setup the fields of the `HttpRequest`. +The trace and span Ids can be set directly using `setTraceId()` and `setSpanId()` respectively. +Alternatively it can be parsed from the W3C tracing context header using `loadW3CTraceParentContext()` or +from the Google Cloud tracing context header using `loadCloudTraceContext()`. + + ```java + Context context = Context.newBuilder().setHttpRequest(request).setTrace(traceId).setSpanId(spanId).build(); + (new ContextHandler()).setCurrentContext(context); + ``` + +* Using [servlet initializer](https://github.com/googleapis/java-logging-servlet-initializer). +If your application uses a Web server based on Jakarta servlets (e.g. Jetty or Tomcat), you can add the servlet initializer +package to your WAR. The package implements a service provider interface (SPI) for +[javax.servlet.ServletContainerInitializer](https://docs.oracle.com/javaee/6/api/javax/servlet/ServletContainerInitializer.html) +and filters all servlet requests to automatically capture the execution context of the servlet request and store it using +`ContextHandler` class. The stored `Context` class instances are used to populate Http request and tracing information. +If you use Maven, to use the servlet initializer add the following dependency to your BOM: + + ```xml + + com.google.cloud + google-cloud-logging-servlet-initializer + + ``` +#### Population of Trace/Span ID fields in a LogEntry +Cloud Logging libraries use [trace fields within LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#FIELDS.trace) to capture trace contexts, which enables the [correlation of logs and traces](https://cloud.google.com/logging/docs/view/correlate-logs), and distributed tracing troubleshooting. +These tracing fields, including [trace](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#FIELDS.trace), [spanId](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#FIELDS.span_id), and [traceSampled](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#FIELDS.trace_sampled), define the trace context for a `LogEntry`. + +Tracing information set manually takes precedence over information set by the following methods: + +* Auto-populate Trace/Span ID from OpenTelemetry Context +If you are using OpenTelemetry and there is an active span in the OpenTelemetry Context, the `trace`, `span_id`, and `trace_sampled` fields in the log entry are populated from the active span. More information about OpenTelemetry can be found [here](https://opentelemetry.io/docs/languages/java/). + +* Use the [servlet initializer](https://github.com/googleapis/java-logging-servlet-initializer) to Populate Trace/Span ID from HTTP Headers +If trace/span Id are not manually set or auto-populated from OpenTelemetry context, you can use the [servlet initializer](https://github.com/googleapis/java-logging-servlet-initializer) to populate trace/span Id from HTTP headers. +This package filters all servlet requests to automatically capture the execution context of the servlet request and stores it by using ContextHandler class. Http request and trace/span Id information are populated from the stored Context class instances. +Using this method, trace/span Id can be automatically populated from either the [W3C Traceparent](https://www.w3.org/TR/trace-context) or [X-Cloud-Trace-Context](https://cloud.google.com/trace/docs/trace-context#legacy-http-header) headers. + + + + +## Samples + +Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-java/tree/main/samples) directory. + +| Sample | Source Code | Try it | +| --------------------------- | --------------------------------- | ------ | +| Native Image Logging Sample | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/native-image-sample/src/main/java/com/example/logging/NativeImageLoggingSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/native-image-sample/src/main/java/com/example/logging/NativeImageLoggingSample.java) | +| Get Sink Metadata | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/com/example/logging/GetSinkMetadata.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/logging/GetSinkMetadata.java) | +| List Log Entries | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/com/example/logging/ListLogEntries.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/logging/ListLogEntries.java) | +| List Logs | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/com/example/logging/ListLogs.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/logging/ListLogs.java) | +| Log Entry Write Http Request | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/com/example/logging/LogEntryWriteHttpRequest.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/logging/LogEntryWriteHttpRequest.java) | +| Quickstart Sample | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/com/example/logging/QuickstartSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/logging/QuickstartSample.java) | +| Tail Log Entries | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/com/example/logging/TailLogEntries.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/logging/TailLogEntries.java) | +| Write Log Entry | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/com/example/logging/WriteLogEntry.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/logging/WriteLogEntry.java) | +| Quickstart | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/com/example/logging/jul/Quickstart.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/logging/jul/Quickstart.java) | +| Example Enhancer | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/com/example/logging/jul/enhancers/ExampleEnhancer.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/logging/jul/enhancers/ExampleEnhancer.java) | + + + +## Troubleshooting + +To get help, follow the instructions in the [shared Troubleshooting document][troubleshooting]. + +## Transport + +Cloud Logging uses gRPC for the transport layer. + +## Supported Java Versions + +Java 8 or above is required for using this client. + +Google's Java client libraries, +[Google Cloud Client Libraries][cloudlibs] +and +[Google Cloud API Libraries][apilibs], +follow the +[Oracle Java SE support roadmap][oracle] +(see the Oracle Java SE Product Releases section). + +### For new development + +In general, new feature development occurs with support for the lowest Java +LTS version covered by Oracle's Premier Support (which typically lasts 5 years +from initial General Availability). If the minimum required JVM for a given +library is changed, it is accompanied by a [semver][semver] major release. + +Java 11 and (in September 2021) Java 17 are the best choices for new +development. + +### Keeping production systems current + +Google tests its client libraries with all current LTS versions covered by +Oracle's Extended Support (which typically lasts 8 years from initial +General Availability). + +#### Legacy support + +Google's client libraries support legacy versions of Java runtimes with long +term stable libraries that don't receive feature updates on a best efforts basis +as it may not be possible to backport all patches. + +Google provides updates on a best efforts basis to apps that continue to use +Java 7, though apps might need to upgrade to current versions of the library +that supports their JVM. + +#### Where to find specific information + +The latest versions and the supported Java versions are identified on +the individual GitHub repository `github.com/GoogleAPIs/java-SERVICENAME` +and on [google-cloud-java][g-c-j]. + +## Versioning + + +This library follows [Semantic Versioning](http://semver.org/). + + + +## Contributing + + +Contributions to this library are always welcome and highly encouraged. + +See [CONTRIBUTING][contributing] for more information how to get started. + +Please note that this project is released with a Contributor Code of Conduct. By participating in +this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more +information. + + +## License + +Apache 2.0 - See [LICENSE][license] for more information. + +Java is a registered trademark of Oracle and/or its affiliates. + +[product-docs]: https://cloud.google.com/logging/docs +[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-logging/latest/history +[stability-image]: https://img.shields.io/badge/stability-stable-green +[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-logging.svg +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-logging/3.24.0 +[authentication]: https://github.com/googleapis/google-cloud-java#authentication +[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes +[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles +[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy +[developer-console]: https://console.developers.google.com/ +[create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects +[cloud-cli]: https://cloud.google.com/cli +[troubleshooting]: https://github.com/googleapis/google-cloud-java/blob/main/TROUBLESHOOTING.md +[contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md +[code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct +[license]: https://github.com/googleapis/google-cloud-java/blob/main/LICENSE +[enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing +[enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=logging.googleapis.com +[libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM +[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png + +[semver]: https://semver.org/ +[cloudlibs]: https://cloud.google.com/apis/docs/client-libraries-explained +[apilibs]: https://cloud.google.com/apis/docs/client-libraries-explained#google_api_client_libraries +[oracle]: https://www.oracle.com/java/technologies/java-se-support-roadmap.html +[g-c-j]: http://github.com/googleapis/google-cloud-java diff --git a/java-logging/_static/guide-me.svg b/java-logging/_static/guide-me.svg new file mode 100644 index 000000000000..f6017fc50ad7 --- /dev/null +++ b/java-logging/_static/guide-me.svg @@ -0,0 +1,45 @@ + + + + + + GUIDE ME + + + + + + + diff --git a/java-logging/google-cloud-logging-bom/pom.xml b/java-logging/google-cloud-logging-bom/pom.xml new file mode 100644 index 000000000000..f3c7aa9ed339 --- /dev/null +++ b/java-logging/google-cloud-logging-bom/pom.xml @@ -0,0 +1,82 @@ + + + 4.0.0 + com.google.cloud + google-cloud-logging-bom + 3.26.0 + pom + + com.google.cloud + google-cloud-pom-parent + 1.79.0 + ../../google-cloud-pom-parent/pom.xml + + + Google Cloud logging BOM + https://github.com/googleapis/google-cloud-java + + BOM for Google Cloud Logging + + + + Google LLC + + + + + chingor13 + Jeff Ching + chingor@google.com + Google LLC + + Developer + + + + + + scm:git:https://github.com/googleapis/google-cloud-java.git + scm:git:git@github.com:googleapis/google-cloud-java.git + https://github.com/googleapis/google-cloud-java + + + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + + + + com.google.cloud + google-cloud-logging + 3.26.0 + + + com.google.api.grpc + grpc-google-cloud-logging-v2 + 0.115.0 + + + com.google.api.grpc + proto-google-cloud-logging-v2 + 0.115.0 + + + + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + + true + + + + + diff --git a/java-logging/google-cloud-logging/clirr-ignored-differences.xml b/java-logging/google-cloud-logging/clirr-ignored-differences.xml new file mode 100644 index 000000000000..aff67cbada0b --- /dev/null +++ b/java-logging/google-cloud-logging/clirr-ignored-differences.xml @@ -0,0 +1,12 @@ + + + + 3003 + com/google/cloud/logging/Instrumentation + + + 7009 + com/google/cloud/logging/Instrumentation + Instrumentation() + + diff --git a/java-logging/google-cloud-logging/pom.xml b/java-logging/google-cloud-logging/pom.xml new file mode 100644 index 000000000000..964a9a6c4e37 --- /dev/null +++ b/java-logging/google-cloud-logging/pom.xml @@ -0,0 +1,182 @@ + + + 4.0.0 + com.google.cloud + google-cloud-logging + 3.26.0 + jar + Google Cloud Logging + https://github.com/googleapis/java-logging + Java idiomatic client for Cloud Logging + + com.google.cloud + google-cloud-logging-parent + 3.26.0 + + + google-cloud-logging + + + + io.opentelemetry + opentelemetry-api + + + io.opentelemetry + opentelemetry-context + + + com.google.guava + guava + + + com.google.code.gson + gson + + + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.api + api-common + + + com.google.protobuf + protobuf-java + + + com.google.protobuf + protobuf-java-util + + + com.google.api.grpc + proto-google-common-protos + + + + com.google.api.grpc + proto-google-cloud-logging-v2 + + + com.google.api + gax + + + com.google.api + gax-grpc + + + org.threeten + threetenbp + + + com.google.cloud + google-cloud-core-grpc + + + com.google.auth + google-auth-library-oauth2-http + + + com.google.http-client + google-http-client + + + io.grpc + grpc-inprocess + + + com.google.cloud + google-cloud-core + + + com.google.errorprone + error_prone_annotations + + + com.google.auth + google-auth-library-credentials + + + + + junit + junit + test + + + org.easymock + easymock + test + + + org.objenesis + objenesis + test + + + com.google.truth + truth + test + + + com.google.cloud + google-cloud-core + test-jar + test + + + com.google.guava + guava-testlib + test + + + + com.google.api.grpc + grpc-google-cloud-logging-v2 + test + + + + io.opentelemetry + opentelemetry-sdk + test + + + io.opentelemetry + opentelemetry-sdk-testing + test + + + io.opentelemetry + opentelemetry-sdk-trace + test + + + + + com.google.api + gax-grpc + testlib + test + + + + + + + org.codehaus.mojo + flatten-maven-plugin + + + + diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/Context.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/Context.java new file mode 100644 index 000000000000..8b62c0047636 --- /dev/null +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/Context.java @@ -0,0 +1,293 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.logging; + +import com.google.cloud.logging.HttpRequest.RequestMethod; +import com.google.common.base.Ascii; +import com.google.common.base.MoreObjects; +import com.google.common.base.Splitter; +import com.google.common.collect.Iterables; +import com.google.errorprone.annotations.CanIgnoreReturnValue; +import io.opentelemetry.api.trace.Span; +import io.opentelemetry.api.trace.SpanContext; +import java.util.List; +import java.util.Objects; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +/** Class to hold context attributes including information about {@see HttpRequest} and tracing. */ +public class Context { + // validate W3C trace context value on load according to the existing version format. + // see https://www.w3.org/TR/trace-context/#traceparent-header-field-values for details. + private static final Pattern W3C_TRACE_CONTEXT_FORMAT = + Pattern.compile( + "^00-(?!00000000000000000000000000000000)[0-9a-f]{32}-(?!0000000000000000)[0-9a-f]{16}-[0-9a-f]{2}$"); + // Trace sampled flag for bit masking + // see https://www.w3.org/TR/trace-context/#trace-flags for details + private static final byte FLAG_SAMPLED = 1; // 00000001 + private final HttpRequest request; + private final String traceId; + private final String spanId; + private final boolean traceSampled; + + /** A builder for {@see Context} objects. */ + public static final class Builder { + private HttpRequest.Builder requestBuilder = HttpRequest.newBuilder(); + private String traceId; + private String spanId; + private boolean traceSampled; + + Builder() {} + + Builder(Context context) { + this.requestBuilder = context.request.toBuilder(); + this.traceId = context.traceId; + this.spanId = context.spanId; + this.traceSampled = context.traceSampled; + } + + /** Sets the HTTP request. */ + @CanIgnoreReturnValue + public Builder setRequest(HttpRequest request) { + this.requestBuilder = request != null ? request.toBuilder() : HttpRequest.newBuilder(); + return this; + } + + @CanIgnoreReturnValue + public Builder setRequestUrl(String url) { + this.requestBuilder.setRequestUrl(url); + return this; + } + + /** Sets the HTTP request method. */ + @CanIgnoreReturnValue + public Builder setRequestMethod(RequestMethod method) { + this.requestBuilder.setRequestMethod(method); + return this; + } + + /** + * Sets the referer URL of the request, as defined in HTTP/1.1 Header Field Definitions. + * + * @see HTTP/1.1 Header Field + * Definitions + */ + @CanIgnoreReturnValue + public Builder setReferer(String referer) { + this.requestBuilder.setReferer(referer); + return this; + } + + /** + * Sets the IP address (IPv4 or IPv6) of the client that issued the HTTP request. Examples: + * {@code 192.168.1.1}, {@code FE80::0202:B3FF:FE1E:8329}. + */ + @CanIgnoreReturnValue + public Builder setRemoteIp(String remoteIp) { + this.requestBuilder.setRemoteIp(remoteIp); + return this; + } + + /** + * Sets the IP address (IPv4 or IPv6) of the origin server that the request was sent to. + * Examples: {@code 192.168.1.1}, {@code FE80::0202:B3FF:FE1E:8329}. + */ + @CanIgnoreReturnValue + public Builder setServerIp(String serverIp) { + this.requestBuilder.setServerIp(serverIp); + return this; + } + + /** Sets the string as a trace id value. */ + @CanIgnoreReturnValue + public Builder setTraceId(String traceId) { + this.traceId = traceId; + return this; + } + + /** Sets the string as a span id value. */ + @CanIgnoreReturnValue + public Builder setSpanId(String spanId) { + this.spanId = spanId; + return this; + } + + /** Sets the boolean as trace sampled flag. */ + @CanIgnoreReturnValue + public Builder setTraceSampled(boolean traceSampled) { + this.traceSampled = traceSampled; + return this; + } + + /** + * Sets the trace id, span id and trace sampled flag values by parsing the string which + * represents xCloud Trace Context. The Cloud Trace Context is passed as {@code + * x-cloud-trace-context} header (can be in Pascal case format). The string format is + * TRACE_ID/SPAN_ID;o=TRACE_TRUE. + * + * @see Cloud + * Trace header format. + */ + @CanIgnoreReturnValue + public Builder loadCloudTraceContext(String cloudTrace) { + if (cloudTrace != null) { + if (cloudTrace.indexOf("o=") >= 0) { + setTraceSampled(Iterables.get(Splitter.on("o=").split(cloudTrace), 1).equals("1")); + } + cloudTrace = Iterables.get(Splitter.on(';').split(cloudTrace), 0); + int split = cloudTrace.indexOf('/'); + if (split >= 0) { + String traceId = cloudTrace.substring(0, split); + String spanId = cloudTrace.substring(split + 1); + if (!traceId.isEmpty()) { + setTraceId(traceId); + // do not set span Id without trace Id + if (!spanId.isEmpty()) { + setSpanId(spanId); + } + } + } else if (!cloudTrace.isEmpty()) { + setTraceId(cloudTrace); + } + } + return this; + } + + /** + * Sets the trace id, span id and trace sampled flag values by parsing the string which + * represents the standard W3C trace context propagation header. The context propagation header + * is passed as {@code traceparent} header. The method currently supports ONLY version {@code + * "00"}. The string format is 00-TRACE_ID-SPAN_ID-FLAGS. field of the {@code + * version-format} value. + * + * @see traceparent header + * value format + * @throws IllegalArgumentException if passed argument does not follow the @W3C trace format or + * the format version is not supported. + */ + @CanIgnoreReturnValue + public Builder loadW3CTraceParentContext(String traceParent) { + if (traceParent != null) { + Matcher validator = W3C_TRACE_CONTEXT_FORMAT.matcher(Ascii.toLowerCase(traceParent)); + if (!validator.matches()) { + throw new IllegalArgumentException( + "Invalid format of the header value. The value does not match W3C Trace Context" + + " version \"00\""); + } + List fields = Splitter.on('-').splitToList(traceParent); + setTraceId(fields.get(1)); + setSpanId(fields.get(2)); + boolean sampled = (Integer.parseInt(fields.get(3), 16) & FLAG_SAMPLED) == FLAG_SAMPLED; + setTraceSampled(sampled); + } + return this; + } + + /** + * Sets the trace id, span id and trace sampled flag values by parsing detected OpenTelemetry + * span context. + * + * @see OpenTelemetry + * SpanContext. + */ + @CanIgnoreReturnValue + public Builder loadOpenTelemetryContext() { + io.opentelemetry.context.Context currentContext = io.opentelemetry.context.Context.current(); + SpanContext spanContext = Span.fromContext(currentContext).getSpanContext(); + if (spanContext != null && spanContext.isValid()) { + setTraceId(spanContext.getTraceId()); + setSpanId(spanContext.getSpanId()); + setTraceSampled(spanContext.isSampled()); + } + return this; + } + + /** Creates a {@see Context} object for this builder. */ + public Context build() { + return new Context(this); + } + } + + Context(Builder builder) { + HttpRequest request = builder.requestBuilder.build(); + if (!HttpRequest.EMPTY.equals(request)) { + this.request = request; + } else { + this.request = null; + } + this.traceId = builder.traceId; + this.spanId = builder.spanId; + this.traceSampled = builder.traceSampled; + } + + public HttpRequest getHttpRequest() { + return this.request; + } + + public String getTraceId() { + return this.traceId; + } + + public String getSpanId() { + return this.spanId; + } + + public boolean getTraceSampled() { + return this.traceSampled; + } + + @Override + public int hashCode() { + return Objects.hash(request, traceId, spanId); + } + + @Override + public String toString() { + return MoreObjects.toStringHelper(this) + .add("request", request) + .add("traceId", traceId) + .add("spanId", spanId) + .add("traceSampled", traceSampled) + .toString(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Context)) { + return false; + } + Context other = (Context) obj; + return Objects.equals(request, other.request) + && Objects.equals(traceId, other.traceId) + && Objects.equals(spanId, other.spanId) + && Objects.equals(traceSampled, other.traceSampled); + } + + /** Returns a builder for this object. */ + public Builder toBuilder() { + return new Builder(this); + } + + /** Returns a builder for {@code HttpRequest} objects. */ + public static Builder newBuilder() { + return new Builder(); + } +} diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/ContextHandler.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/ContextHandler.java new file mode 100644 index 000000000000..54b7b18540ae --- /dev/null +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/ContextHandler.java @@ -0,0 +1,95 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.logging; + +/** Class provides a per-thread storage of the {@see Context} instances. */ +public class ContextHandler { + + public enum ContextPriority { + NO_INPUT, + XCLOUD_HEADER, + W3C_HEADER, + OTEL_EXTRACTED + } + + private static final ThreadLocal contextHolder = initContextHolder(); + private static final ThreadLocal currentPriority = + ThreadLocal.withInitial(() -> ContextPriority.NO_INPUT); + + /** + * Initializes the context holder to {@link InheritableThreadLocal} if {@link LogManager} + * configuration property {@code com.google.cloud.logging.ContextHandler.useInheritedContext} is + * set to {@code true} or to {@link ThreadLocal} otherwise. + * + * @return instance of the context holder. + */ + private static ThreadLocal initContextHolder() { + LoggingConfig config = new LoggingConfig(ContextHandler.class.getName()); + if (config.getUseInheritedContext()) { + return new InheritableThreadLocal<>(); + } else { + return new ThreadLocal<>(); + } + } + + public Context getCurrentContext() { + return contextHolder.get(); + } + + public void setCurrentContext(Context context) { + setCurrentContext(context, ContextPriority.NO_INPUT); + } + + public ContextPriority getCurrentContextPriority() { + return currentPriority.get(); + } + + /** + * Sets the context based on the priority. Overrides traceId, spanId and TraceSampled if the + * passed priority is higher. HttpRequest values will be retrieved and combined from existing + * context if HttpRequest in the new context is empty . + */ + public void setCurrentContext(Context context, ContextPriority priority) { + if (priority != null && priority.compareTo(currentPriority.get()) >= 0 && context != null) { + Context.Builder combinedContextBuilder = + Context.newBuilder() + .setTraceId(context.getTraceId()) + .setSpanId(context.getSpanId()) + .setTraceSampled(context.getTraceSampled()); + Context currentContext = getCurrentContext(); + + if (context.getHttpRequest() != null) { + combinedContextBuilder.setRequest(context.getHttpRequest()); + } + // Combines HttpRequest from the existing context if HttpRequest in new context is empty. + else if (currentContext != null && currentContext.getHttpRequest() != null) { + combinedContextBuilder.setRequest(currentContext.getHttpRequest()); + } + + contextHolder.set(combinedContextBuilder.build()); + currentPriority.set(priority); + } + } + + public void removeCurrentContext() { + contextHolder.remove(); + } + + public void removeCurrentContextPriority() { + currentPriority.remove(); + } +} diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/Exclusion.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/Exclusion.java new file mode 100644 index 000000000000..ffa1e50ea16d --- /dev/null +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/Exclusion.java @@ -0,0 +1,260 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.logging; + +import static com.google.common.base.Preconditions.checkNotNull; + +import com.google.common.base.Function; +import com.google.common.base.MoreObjects; +import com.google.errorprone.annotations.CanIgnoreReturnValue; +import com.google.logging.v2.LogExclusion; +import com.google.protobuf.Timestamp; +import java.util.Objects; + +/** + * Specifies a set of log entries that are not to be stored in Logging. If your GCP resource + * receives a large volume of logs, you can use exclusions to reduce your chargeable logs. + * Exclusions are processed after log sinks, so you can export log entries before they are excluded. + * Note that organization-level and folder-level exclusions don't apply to child resources, and that + * you can't exclude audit log entries. + */ +public class Exclusion { + + static final Function FROM_PROTOBUF_FUNCTION = + (LogExclusion exclusionPb) -> { + return exclusionPb != null ? Exclusion.fromProtobuf(exclusionPb) : null; + }; + + static final Function TO_PROTOBUF_FUNCTION = + (Exclusion exclusion) -> { + return exclusion != null ? exclusion.toProtobuf() : null; + }; + + private final String name; + private final String description; + private final String filter; + private final boolean disabled; + private final Timestamp createTime; + private final Timestamp updateTime; + + /** A builder for {@code Exclusion} objects. */ + public static class Builder { + + private String name; + private String description; + private String filter; + private boolean disabled; + private Timestamp createTime; + private Timestamp updateTime; + + private Builder(String name, String filter) { + this.name = checkNotNull(name); + this.filter = checkNotNull(filter); + } + + private Builder(Exclusion exclusion) { + this.name = exclusion.name; + this.description = exclusion.description; + this.filter = exclusion.filter; + this.disabled = exclusion.disabled; + this.createTime = exclusion.createTime; + this.updateTime = exclusion.updateTime; + } + + /** + * [Required] A client-assigned identifier, such as "load-balancer-exclusion". Identifiers are + * limited to 100 characters and can include only letters, digits, underscores, hyphens, and + * periods. First character has to be alphanumeric. + */ + @CanIgnoreReturnValue + public Builder setName(String name) { + this.name = checkNotNull(name); + return this; + } + + /** [Optional] A description of this exclusion. */ + @CanIgnoreReturnValue + public Builder setDescription(String description) { + this.description = description; + return this; + } + + /** + * [Required] An advanced logs filter that matches the log entries to be excluded. By using the + * sample function, you can exclude less than 100% of the matching log entries. + */ + @CanIgnoreReturnValue + public Builder setFilter(String filter) { + this.filter = checkNotNull(filter); + return this; + } + + /** + * [Optional] If set to True, then this exclusion is disabled and it does not exclude any log + * entries. + */ + @CanIgnoreReturnValue + public Builder setDisabled(boolean disabled) { + this.disabled = disabled; + return this; + } + + /** [Output only] The creation timestamp of the exclusion. */ + @CanIgnoreReturnValue + public Builder setCreateTime(Timestamp createTime) { + this.createTime = createTime; + return this; + } + + /** [Output only] The last update timestamp of the exclusion. */ + @CanIgnoreReturnValue + public Builder setUpdateTime(Timestamp updateTime) { + this.updateTime = updateTime; + return this; + } + + /** Creates a {@code Exclusion} object. */ + public Exclusion build() { + return new Exclusion(this); + } + } + + Exclusion(Builder builder) { + this.name = checkNotNull(builder.name); + this.description = builder.description; + this.filter = checkNotNull(builder.filter); + this.disabled = builder.disabled; + this.createTime = builder.createTime; + this.updateTime = builder.updateTime; + } + + @Override + public String toString() { + return MoreObjects.toStringHelper(this) + .add("name", name) + .add("description", description) + .add("filter", filter) + .add("disabled", disabled) + .add("createTime", createTime) + .add("updateTime", updateTime) + .toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Exclusion)) { + return false; + } + Exclusion exclusion = (Exclusion) o; + return disabled == exclusion.disabled + && Objects.equals(name, exclusion.name) + && Objects.equals(description, exclusion.description) + && Objects.equals(filter, exclusion.filter) + && Objects.equals(createTime, exclusion.createTime) + && Objects.equals(updateTime, exclusion.updateTime); + } + + @Override + public int hashCode() { + return Objects.hash(name, description, filter, disabled, createTime, updateTime); + } + + /** Returns the name of log exclusion. */ + public String getName() { + return name; + } + + /** Returns an optional description of an exclusion. Used for documentation purpose. */ + public String getDescription() { + return description; + } + + /** + * Returns an advanced logs filter. Example: {@code resource.type=gcs_bucket severityAdvanced Log + * Filters + */ + public String getFilter() { + return filter; + } + + /** If set to True, then this exclusion is disabled and it does not exclude any log entries. */ + public boolean isDisabled() { + return disabled; + } + + /** Returns the creation timestamp of the exclusion. */ + public Timestamp getCreateTime() { + return createTime; + } + + /** Returns the last update timestamp of the exclusion. */ + public Timestamp getUpdateTime() { + return updateTime; + } + + /** Returns a builder for this {@code Exclusion} object. */ + public Builder toBuilder() { + return new Builder(this); + } + + /** + * Returns a builder for {@code Exclusion} objects given the name of the exclusion and its filter. + */ + public static Builder newBuilder(String name, String filter) { + return new Builder(name, filter); + } + + /** Creates a {@code Exclusion} object given the name of the exclusion and its filter. */ + public static Exclusion of(String name, String filter) { + return new Builder(name, filter).build(); + } + + LogExclusion toProtobuf() { + LogExclusion.Builder builder = + LogExclusion.newBuilder().setName(name).setFilter(filter).setDisabled(disabled); + if (description != null) { + builder.setDescription(description); + } + if (createTime != null) { + builder.setCreateTime(createTime); + } + if (updateTime != null) { + builder.setUpdateTime(updateTime); + } + return builder.build(); + } + + static Exclusion fromProtobuf(LogExclusion exclusionPb) { + Exclusion.Builder builder = newBuilder(exclusionPb.getName(), exclusionPb.getFilter()); + builder.setDisabled(exclusionPb.getDisabled()); + if (!exclusionPb.getDescription().isEmpty()) { + builder.setDescription(exclusionPb.getDescription()); + } + if (exclusionPb.hasCreateTime()) { + builder.setCreateTime(exclusionPb.getCreateTime()); + } + if (exclusionPb.hasUpdateTime()) { + builder.setUpdateTime(exclusionPb.getUpdateTime()); + } + return builder.build(); + } +} diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/HttpRequest.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/HttpRequest.java new file mode 100644 index 000000000000..73e77b505a1c --- /dev/null +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/HttpRequest.java @@ -0,0 +1,586 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.cloud.logging; + +import static com.google.api.gax.util.TimeConversionUtils.toJavaTimeDuration; +import static com.google.api.gax.util.TimeConversionUtils.toThreetenDuration; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ObsoleteApi; +import com.google.cloud.StringEnumType; +import com.google.cloud.StringEnumValue; +import com.google.common.base.MoreObjects; +import com.google.errorprone.annotations.CanIgnoreReturnValue; +import java.io.Serializable; +import java.time.Duration; +import java.util.Objects; + +/** + * Objects of this class represent information about the (optional) HTTP request associated with a + * log entry. + * + * @see + * Http Request + */ +public final class HttpRequest implements Serializable { + + private static final long serialVersionUID = -274998005454709817L; + public static final HttpRequest EMPTY = newBuilder().build(); + + private final RequestMethod requestMethod; + private final String requestUrl; + private final Long requestSize; + private final Integer status; + private final Long responseSize; + private final String userAgent; + private final String remoteIp; + private final String serverIp; + private final String referer; + private final boolean cacheLookup; + private final boolean cacheHit; + private final boolean cacheValidatedWithOriginServer; + private final Long cacheFillBytes; + private final java.time.Duration latency; + + /** The HTTP request method. */ + public static final class RequestMethod extends StringEnumValue { + private static final long serialVersionUID = 2403969065179486996L; + + private RequestMethod(String constant) { + super(constant); + } + + private static final ApiFunction CONSTRUCTOR = + new ApiFunction() { + @Override + public RequestMethod apply(String constant) { + return new RequestMethod(constant); + } + }; + + private static final StringEnumType type = + new StringEnumType<>(RequestMethod.class, CONSTRUCTOR); + + public static final RequestMethod GET = type.createAndRegister("GET"); + public static final RequestMethod HEAD = type.createAndRegister("HEAD"); + public static final RequestMethod PUT = type.createAndRegister("PUT"); + public static final RequestMethod POST = type.createAndRegister("POST"); + + /** + * Get the RequestMethod for the given String constant, and throw an exception if the constant + * is not recognized. + */ + public static RequestMethod valueOfStrict(String constant) { + return type.valueOfStrict(constant); + } + + /** Get the RequestMethod for the given String constant, and allow unrecognized values. */ + public static RequestMethod valueOf(String constant) { + return type.valueOf(constant); + } + + /** Return the known values for RequestMethod. */ + public static RequestMethod[] values() { + return type.values(); + } + } + + /** A builder for {@code HttpRequest} objects. */ + public static final class Builder { + + private RequestMethod requestMethod; + private String requestUrl; + private Long requestSize; + private Integer status; + private Long responseSize; + private String userAgent; + private String remoteIp; + private String serverIp; + private String referer; + private boolean cacheLookup; + private boolean cacheHit; + private boolean cacheValidatedWithOriginServer; + private Long cacheFillBytes; + private java.time.Duration latency; + + Builder() {} + + Builder(HttpRequest request) { + this.requestMethod = request.requestMethod; + this.requestUrl = request.requestUrl; + this.requestSize = request.requestSize; + this.status = request.status; + this.responseSize = request.responseSize; + this.userAgent = request.userAgent; + this.remoteIp = request.remoteIp; + this.serverIp = request.serverIp; + this.referer = request.referer; + this.cacheLookup = request.cacheLookup; + this.cacheHit = request.cacheHit; + this.cacheValidatedWithOriginServer = request.cacheValidatedWithOriginServer; + this.cacheFillBytes = request.cacheFillBytes; + this.latency = request.latency; + } + + /** Sets the HTTP request method. */ + @CanIgnoreReturnValue + public Builder setRequestMethod(RequestMethod requestMethod) { + this.requestMethod = requestMethod; + return this; + } + + /** + * Sets the requested URL. Request URL contains the scheme ({@code http}, {@code https}), the + * host name, the path and the query portion of the URL that was requested. Example: {@code + * http://example.com/some/info?color=red}. + */ + @CanIgnoreReturnValue + public Builder setRequestUrl(String requestUrl) { + this.requestUrl = requestUrl; + return this; + } + + /** + * Sets the size of the HTTP request message in bytes, including the request headers and the + * request body. + */ + @CanIgnoreReturnValue + public Builder setRequestSize(long requestSize) { + this.requestSize = requestSize; + return this; + } + + /** Sets the response code indicating the status of response. */ + @CanIgnoreReturnValue + public Builder setStatus(int status) { + this.status = status; + return this; + } + + /** + * Sets the size of the HTTP response message sent back to the client, in bytes, including the + * response headers and the response body. + */ + @CanIgnoreReturnValue + public Builder setResponseSize(long responseSize) { + this.responseSize = responseSize; + return this; + } + + /** + * Sets the user agent sent by the client. Example: {@code Mozilla/4.0 (compatible; MSIE 6.0; + * Windows 98; Q312461; .NET CLR 1.0.3705)}. + */ + @CanIgnoreReturnValue + public Builder setUserAgent(String userAgent) { + this.userAgent = userAgent; + return this; + } + + /** + * Sets the IP address (IPv4 or IPv6) of the client that issued the HTTP request. Examples: + * {@code 192.168.1.1}, {@code FE80::0202:B3FF:FE1E:8329}. + */ + @CanIgnoreReturnValue + public Builder setRemoteIp(String remoteIp) { + this.remoteIp = remoteIp; + return this; + } + + /** + * Sets the IP address (IPv4 or IPv6) of the origin server that the request was sent to. + * Examples: {@code 192.168.1.1}, {@code FE80::0202:B3FF:FE1E:8329}. + */ + @CanIgnoreReturnValue + public Builder setServerIp(String serverIp) { + this.serverIp = serverIp; + return this; + } + + /** + * Sets the referer URL of the request, as defined in HTTP/1.1 Header Field Definitions. + * + * @see HTTP/1.1 Header Field + * Definitions + */ + @CanIgnoreReturnValue + public Builder setReferer(String referer) { + this.referer = referer; + return this; + } + + /** Sets whether or not a cache lookup was attempted. If not set, {@code false} is used. */ + @CanIgnoreReturnValue + public Builder setCacheLookup(boolean cacheLookup) { + this.cacheLookup = cacheLookup; + return this; + } + + /** + * Sets whether or not an entity was served from cache (with or without validation). If not set, + * {@code false} is used. + */ + @CanIgnoreReturnValue + public Builder setCacheHit(boolean cacheHit) { + this.cacheHit = cacheHit; + return this; + } + + /** + * Sets whether or not the response was validated with the origin server before being served + * from cache. This field is only meaningful if {@link #setCacheHit(boolean)} is set to {@code + * true}. If not set, {@code false} is used. + */ + @CanIgnoreReturnValue + public Builder setCacheValidatedWithOriginServer(boolean cacheValidatedWithOriginServer) { + this.cacheValidatedWithOriginServer = cacheValidatedWithOriginServer; + return this; + } + + /** + * Sets the number of HTTP response bytes inserted into cache. Set only when a cache fill was + * attempted. + */ + @CanIgnoreReturnValue + public Builder setCacheFillBytes(long cacheFillBytes) { + this.cacheFillBytes = cacheFillBytes; + return this; + } + + /** This method is obsolete. Use {@link #setLatencyDuration(java.time.Duration)} instead. */ + @ObsoleteApi("Use setLatencyDuration(java.time.Duration) instead") + public Builder setLatency(org.threeten.bp.Duration latency) { + return setLatencyDuration(toJavaTimeDuration(latency)); + } + + /** + * Sets the latency on the server, from the time the request was received until the response was + * sent. + */ + @CanIgnoreReturnValue + public Builder setLatencyDuration(java.time.Duration latency) { + this.latency = latency; + return this; + } + + /** Creates a {@code HttpRequest} object for this builder. */ + public HttpRequest build() { + return new HttpRequest(this); + } + } + + HttpRequest(Builder builder) { + this.requestMethod = builder.requestMethod; + this.requestUrl = builder.requestUrl; + this.requestSize = builder.requestSize; + this.status = builder.status; + this.responseSize = builder.responseSize; + this.userAgent = builder.userAgent; + this.remoteIp = builder.remoteIp; + this.serverIp = builder.serverIp; + this.referer = builder.referer; + this.cacheLookup = builder.cacheLookup; + this.cacheHit = builder.cacheHit; + this.cacheValidatedWithOriginServer = builder.cacheValidatedWithOriginServer; + this.cacheFillBytes = builder.cacheFillBytes; + this.latency = builder.latency; + } + + /** Returns the HTTP request method. */ + public RequestMethod getRequestMethod() { + return requestMethod; + } + + /** + * Returns the requested URL. Request URL contains the scheme ({@code http}, {@code https}), the + * host name, the path and the query portion of the URL that was requested. Example: {@code + * http://example.com/some/info?color=red}. + */ + public String getRequestUrl() { + return requestUrl; + } + + /** + * Returns the size of the HTTP request message in bytes, including the request headers and the + * request body. + */ + public Long getRequestSize() { + return requestSize; + } + + /** Returns the response code indicating the status of response. */ + public Integer getStatus() { + return status; + } + + /** + * Returns the size of the HTTP response message sent back to the client, in bytes, including the + * response headers and the response body. + */ + public Long getResponseSize() { + return responseSize; + } + + /** + * Returns the user agent sent by the client. Example: {@code Mozilla/4.0 (compatible; MSIE 6.0; + * Windows 98; Q312461; .NET CLR 1.0.3705)}. + */ + public String getUserAgent() { + return userAgent; + } + + /** + * Returns the IP address (IPv4 or IPv6) of the client that issued the HTTP request. Examples: + * {@code 192.168.1.1}, {@code FE80::0202:B3FF:FE1E:8329}. + */ + public String getRemoteIp() { + return remoteIp; + } + + /** + * Returns the IP address (IPv4 or IPv6) of the origin server that the request was sent to. + * Examples: {@code 192.168.1.1}, {@code FE80::0202:B3FF:FE1E:8329}. + */ + public String getServerIp() { + return serverIp; + } + + /** + * Returns the referer URL of the request, as defined in HTTP/1.1 Header Field Definitions. + * + * @see HTTP/1.1 Header Field + * Definitions + */ + public String getReferer() { + return referer; + } + + /** + * Returns whether or not a cache lookup was attempted. If not set, this method returns {@code + * false}. + */ + public boolean cacheLookup() { + return cacheLookup; + } + + /** + * Returns whether or not an entity was served from cache (with or without validation). If not + * set, this method returns {@code false}. + */ + public boolean cacheHit() { + return cacheHit; + } + + /** + * Returns whether or not the response was validated with the origin server before being served + * from cache. If not set, this method returns {@code false}. This field is only meaningful if + * {@link #cacheHit()} is set to {@code true}. + */ + public boolean cacheValidatedWithOriginServer() { + return cacheValidatedWithOriginServer; + } + + /** + * Returns the number of HTTP response bytes inserted into cache. Set only when a cache fill was + * attempted. + */ + public Long getCacheFillBytes() { + return cacheFillBytes; + } + + /** This method is obsolete. Use {@link #getLatencyDuration()} instead. */ + @ObsoleteApi("Use getLatencyDuration() instead") + public org.threeten.bp.Duration getLatency() { + return toThreetenDuration(getLatencyDuration()); + } + + /** + * Returns the processing latency on the server, from the time the request was received until the + * response was sent. + * + * @return the latency, for null if not populated. + */ + public Duration getLatencyDuration() { + return latency; + } + + @Override + public int hashCode() { + return Objects.hash( + requestMethod, + requestUrl, + requestSize, + status, + responseSize, + userAgent, + serverIp, + cacheLookup, + cacheFillBytes, + remoteIp, + referer, + cacheHit, + cacheValidatedWithOriginServer, + latency); + } + + @Override + public String toString() { + return MoreObjects.toStringHelper(this) + .add("requestMethod", requestMethod) + .add("requestUrl", requestUrl) + .add("requestSize", requestSize) + .add("status", status) + .add("responseSize", responseSize) + .add("userAgent", userAgent) + .add("remoteIp", remoteIp) + .add("serverIp", serverIp) + .add("referer", referer) + .add("cacheLookup", cacheLookup) + .add("cacheHit", cacheHit) + .add("cacheValidatedWithOriginServer", cacheValidatedWithOriginServer) + .add("cacheFillBytes", cacheFillBytes) + .add("latency", latency) + .toString(); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof HttpRequest)) { + return false; + } + HttpRequest other = (HttpRequest) obj; + return Objects.equals(requestMethod, other.requestMethod) + && Objects.equals(requestUrl, other.requestUrl) + && Objects.equals(requestSize, other.requestSize) + && Objects.equals(status, other.status) + && Objects.equals(responseSize, other.responseSize) + && Objects.equals(userAgent, other.userAgent) + && Objects.equals(remoteIp, other.remoteIp) + && Objects.equals(serverIp, other.serverIp) + && Objects.equals(referer, other.referer) + && Objects.equals(latency, other.latency) + && cacheLookup == other.cacheLookup + && cacheHit == other.cacheHit + && cacheValidatedWithOriginServer == other.cacheValidatedWithOriginServer + && Objects.equals(cacheFillBytes, other.cacheFillBytes); + } + + /** Returns a builder for this object. */ + public Builder toBuilder() { + return new Builder(this); + } + + com.google.logging.type.HttpRequest toPb() { + com.google.logging.type.HttpRequest.Builder builder = + com.google.logging.type.HttpRequest.newBuilder(); + if (requestMethod != null) { + builder.setRequestMethod(requestMethod.name()); + } + if (requestUrl != null) { + builder.setRequestUrl(requestUrl); + } + if (requestSize != null) { + builder.setRequestSize(requestSize); + } + if (status != null) { + builder.setStatus(status); + } + if (responseSize != null) { + builder.setResponseSize(responseSize); + } + if (userAgent != null) { + builder.setUserAgent(userAgent); + } + if (remoteIp != null) { + builder.setRemoteIp(remoteIp); + } + if (serverIp != null) { + builder.setServerIp(serverIp); + } + if (referer != null) { + builder.setReferer(referer); + } + builder.setCacheLookup(cacheLookup); + builder.setCacheHit(cacheHit); + builder.setCacheValidatedWithOriginServer(cacheValidatedWithOriginServer); + if (cacheFillBytes != null) { + builder.setCacheFillBytes(cacheFillBytes); + } + if (latency != null) { + // NOTE(pongad): Don't convert to nano; large durations overflow longs! + builder.setLatency( + com.google.protobuf.Duration.newBuilder() + .setSeconds(latency.getSeconds()) + .setNanos(latency.getNano()) + .build()); + } + return builder.build(); + } + + /** Returns a builder for {@code HttpRequest} objects. */ + public static Builder newBuilder() { + return new Builder(); + } + + static HttpRequest fromPb(com.google.logging.type.HttpRequest requestPb) { + Builder builder = newBuilder(); + if (!requestPb.getRequestMethod().isEmpty()) { + builder.setRequestMethod(RequestMethod.valueOf(requestPb.getRequestMethod())); + } + if (!requestPb.getRequestUrl().isEmpty()) { + builder.setRequestUrl(requestPb.getRequestUrl()); + } + if (requestPb.getRequestSize() != 0L) { + builder.setRequestSize(requestPb.getRequestSize()); + } + if (requestPb.getStatus() != 0L) { + builder.setStatus(requestPb.getStatus()); + } + if (requestPb.getResponseSize() != 0L) { + builder.setResponseSize(requestPb.getResponseSize()); + } + if (!requestPb.getUserAgent().isEmpty()) { + builder.setUserAgent(requestPb.getUserAgent()); + } + if (!requestPb.getServerIp().isEmpty()) { + builder.setServerIp(requestPb.getServerIp()); + } + if (!requestPb.getRemoteIp().isEmpty()) { + builder.setRemoteIp(requestPb.getRemoteIp()); + } + if (!requestPb.getReferer().isEmpty()) { + builder.setReferer(requestPb.getReferer()); + } + builder.setCacheLookup(requestPb.getCacheLookup()); + builder.setCacheHit(requestPb.getCacheHit()); + builder.setCacheValidatedWithOriginServer(requestPb.getCacheValidatedWithOriginServer()); + if (requestPb.getCacheFillBytes() != 0L) { + builder.setCacheFillBytes(requestPb.getCacheFillBytes()); + } + if (requestPb.hasLatency()) { + // NOTE(pongad): Don't convert to nano; large durations overflow longs! + builder.setLatencyDuration( + Duration.ofSeconds( + requestPb.getLatency().getSeconds(), requestPb.getLatency().getNanos())); + } + return builder.build(); + } +} diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/ITimestampDefaultFilter.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/ITimestampDefaultFilter.java new file mode 100644 index 000000000000..72bb09b916ec --- /dev/null +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/ITimestampDefaultFilter.java @@ -0,0 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + +package com.google.cloud.logging; + +/** + * Encapsulates implementation of default time filter. This is needed for testing since we can't + * mock static classes with EasyMock + */ +public interface ITimestampDefaultFilter { + + /** + * Creates a default filter with timestamp to query Cloud Logging + * + * @return The filter using timestamp field + */ + String createDefaultTimestampFilter(); +} diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/Instrumentation.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/Instrumentation.java new file mode 100644 index 000000000000..d511edaf25e6 --- /dev/null +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/Instrumentation.java @@ -0,0 +1,253 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.cloud.logging; + +import com.google.api.client.util.Strings; +import com.google.api.gax.core.GaxProperties; +import com.google.cloud.Tuple; +import com.google.cloud.logging.Logging.WriteOption; +import com.google.cloud.logging.Payload.JsonPayload; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.Iterables; +import com.google.protobuf.ListValue; +import com.google.protobuf.Struct; +import com.google.protobuf.Value; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +public final class Instrumentation { + public static final String DIAGNOSTIC_INFO_KEY = "logging.googleapis.com/diagnostic"; + public static final String INSTRUMENTATION_SOURCE_KEY = "instrumentation_source"; + public static final String INSTRUMENTATION_NAME_KEY = "name"; + public static final String INSTRUMENTATION_VERSION_KEY = "version"; + public static final String JAVA_LIBRARY_NAME_PREFIX = "java"; + // Using release-please annotations to update DEFAULT_INSTRUMENTATION_VERSION with latest version. + // See + // https://github.com/googleapis/release-please/blob/main/docs/customizing.md#updating-arbitrary-files + // {x-version-update-start:google-cloud-logging:current} + public static final String DEFAULT_INSTRUMENTATION_VERSION = "3.24.1-SNAPSHOT"; + // {x-version-update-end} + public static final String INSTRUMENTATION_LOG_NAME = "diagnostic-log"; + public static final int MAX_DIAGNOSTIC_VALUE_LENGTH = 14; + public static final int MAX_DIAGNOSTIC_ENTIES = 3; + private static boolean instrumentationAdded = false; + private static final Object instrumentationLock = new Object(); + + /** + * Populates entries with instrumentation info which is added in separate log entry + * + * @param logEntries {@code Iterable} The list of entries to be populated + * @return {@code Tuple>} containing a flag if instrumentation info + * was added or not and a modified list of log entries + */ + public static Tuple> populateInstrumentationInfo( + Iterable logEntries) { + boolean isWritten = setInstrumentationStatus(true); + if (isWritten) { + return Tuple.of(false, logEntries); + } + List entries = new ArrayList<>(); + + for (LogEntry logEntry : logEntries) { + // Check if LogEntry has a proper payload and also contains a diagnostic entry + if (!isWritten + && logEntry.getPayload().getType() == Payload.Type.JSON + && logEntry + .getPayload() + .getData() + .containsFields(DIAGNOSTIC_INFO_KEY)) { + try { + ListValue infoList = + logEntry + .getPayload() + .getData() + .getFieldsOrThrow(DIAGNOSTIC_INFO_KEY) + .getStructValue() + .getFieldsOrThrow(INSTRUMENTATION_SOURCE_KEY) + .getListValue(); + entries.add(createDiagnosticEntry(null, null, infoList)); + isWritten = true; + } catch (RuntimeException ex) { + System.err.println("ERROR: unexpected exception in populateInstrumentationInfo: " + ex); + } + } else { + entries.add(logEntry); + } + } + if (!isWritten) { + entries.add(createDiagnosticEntry(null, null, null)); + } + return Tuple.of(true, entries); + } + + /** + * Adds a partialSuccess flag option to array of WriteOption + * + * @param options {WriteOption[]} The options array to be extended + * @return The new array of oprions containing WriteOption.OptionType.PARTIAL_SUCCESS flag set to + * true + */ + public static WriteOption[] addPartialSuccessOption(WriteOption[] options) { + if (options == null) { + return options; + } + List writeOptions = new ArrayList<>(); + Collections.addAll(writeOptions, options); + // Make sure we remove all partial success flags if any exist + writeOptions.removeIf( + option -> option.getOptionType() == WriteOption.OptionType.PARTIAL_SUCCESS); + writeOptions.add(WriteOption.partialSuccess(true)); + return Iterables.toArray(writeOptions, WriteOption.class); + } + + /** + * The helper method to generate a log entry with diagnostic instrumentation data. + * + * @param libraryName {string} The name of the logging library to be reported. Should be prefixed + * with 'java'. Will be truncated if longer than 14 characters. + * @param libraryVersion {string} The version of the logging library to be reported. Will be + * truncated if longer than 14 characters. + * @return {LogEntry} The entry with diagnostic instrumentation data. + */ + public static LogEntry createDiagnosticEntry(String libraryName, String libraryVersion) { + return createDiagnosticEntry(libraryName, libraryVersion, null); + } + + private static LogEntry createDiagnosticEntry( + String libraryName, String libraryVersion, ListValue existingLibraryList) { + Struct instrumentation = + Struct.newBuilder() + .putAllFields( + ImmutableMap.of( + INSTRUMENTATION_SOURCE_KEY, + Value.newBuilder() + .setListValue( + generateLibrariesList(libraryName, libraryVersion, existingLibraryList)) + .build())) + .build(); + return LogEntry.newBuilder( + JsonPayload.of( + Struct.newBuilder() + .putAllFields( + ImmutableMap.of( + DIAGNOSTIC_INFO_KEY, + Value.newBuilder().setStructValue(instrumentation).build())) + .build())) + .setLogName(INSTRUMENTATION_LOG_NAME) + .build(); + } + + private static ListValue generateLibrariesList( + String libraryName, String libraryVersion, ListValue existingLibraryList) { + if (Strings.isNullOrEmpty(libraryName) || !libraryName.startsWith(JAVA_LIBRARY_NAME_PREFIX)) { + libraryName = JAVA_LIBRARY_NAME_PREFIX; + } + if (Strings.isNullOrEmpty(libraryVersion)) { + libraryVersion = getLibraryVersion(Instrumentation.class); + } + Struct libraryInfo = createInfoStruct(libraryName, libraryVersion); + ListValue.Builder libraryList = ListValue.newBuilder(); + // First add instrumentation data of other libraries to a list if any + if (existingLibraryList != null) { + for (Value val : existingLibraryList.getValuesList()) { + if (val.hasStructValue()) { + try { + String name = + val.getStructValue().getFieldsOrThrow(INSTRUMENTATION_NAME_KEY).getStringValue(); + if (Strings.isNullOrEmpty(name) || !name.startsWith(JAVA_LIBRARY_NAME_PREFIX)) { + continue; + } + String version = + val.getStructValue().getFieldsOrThrow(INSTRUMENTATION_VERSION_KEY).getStringValue(); + if (Strings.isNullOrEmpty(version)) { + continue; + } + libraryList.addValues( + Value.newBuilder().setStructValue(createInfoStruct(name, version)).build()); + if (libraryList.getValuesCount() == MAX_DIAGNOSTIC_ENTIES) { + break; + } + } catch (RuntimeException ex) { + System.err.println("ERROR: unexpected exception in generateLibrariesList: " + ex); + } + } + } + } + // At last, append this library info to a list + libraryList.addValues(Value.newBuilder().setStructValue(libraryInfo).build()); + return libraryList.build(); + } + + private static Struct createInfoStruct(String libraryName, String libraryVersion) { + return Struct.newBuilder() + .putAllFields( + ImmutableMap.of( + INSTRUMENTATION_NAME_KEY, + Value.newBuilder().setStringValue(truncateValue(libraryName)).build(), + INSTRUMENTATION_VERSION_KEY, + Value.newBuilder().setStringValue(truncateValue(libraryVersion)).build())) + .build(); + } + + /** + * The package-private helper method used to set the flag which indicates if instrumentation info + * already written or not. + * + * @return The value of the flag before it was set. + */ + static boolean setInstrumentationStatus(boolean value) { + if (instrumentationAdded == value) { + return instrumentationAdded; + } + synchronized (instrumentationLock) { + boolean current = instrumentationAdded; + instrumentationAdded = value; + return current; + } + } + + /** + * Returns a library version associated with given class + * + * @param libraryClass The class to be used to determine a library version + * @return The version number string for given class or DEFAULT_INSTRUMENTATION_VERSION if class + * library version cannot be detected + */ + public static String getLibraryVersion(Class libraryClass) { + String libraryVersion = GaxProperties.getLibraryVersion(libraryClass); + if (Strings.isNullOrEmpty(libraryVersion)) { + libraryVersion = DEFAULT_INSTRUMENTATION_VERSION; + } + return libraryVersion; + } + + /** + * Trancates given string to MAX_DIAGNOSTIC_VALUE_LENGTH and adds "*" instead of reduced suffix + * + * @param value {String} Value to be truncated + * @return The truncated string + */ + public static String truncateValue(String value) { + if (Strings.isNullOrEmpty(value) || value.length() < MAX_DIAGNOSTIC_VALUE_LENGTH) { + return value; + } + return value.substring(0, MAX_DIAGNOSTIC_VALUE_LENGTH) + "*"; + } + + private Instrumentation() {} +} diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/JavaTimeConversions.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/JavaTimeConversions.java new file mode 100644 index 000000000000..70d5c8c58c1d --- /dev/null +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/JavaTimeConversions.java @@ -0,0 +1,83 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.cloud.logging; + +import static com.google.common.base.Preconditions.checkNotNull; +import static com.google.common.math.LongMath.checkedAdd; +import static com.google.common.math.LongMath.checkedSubtract; + +import com.google.protobuf.Timestamp; +import com.google.protobuf.util.Timestamps; +import java.time.Instant; + +/** + * A utility class that provides conversions between: + * + *
              + *
            • Protobuf's {@link Timestamp} and {@link java.time.Instant} + *
            + * + * The class complements conversion methods that are currently not supported in the published + * protobuf-java-util. After migrating protobuf-java-util to Java 8 this class can be removed. + * + * @see protobuf-java-util + */ +class JavaTimeConversions { + static final long NANOS_PER_SECOND = 1000000000; + + private JavaTimeConversions() {} + + /** + * Converts a protobuf {@link Timestamp} to a {@link java.time.Instant}. + * + * @throws IllegalArgumentException if the given {@link Timestamp} is not valid. See {@link + * Timestamps#isValid}. + */ + public static Instant toJavaInstant(Timestamp timestamp) { + checkNotNull(timestamp); + timestamp = normalizedTimestamp(timestamp.getSeconds(), timestamp.getNanos()); + return Instant.ofEpochSecond(timestamp.getSeconds(), timestamp.getNanos()); + } + + /** + * Converts a {@link java.time.Instant} to a protobuf {@link Timestamp}. + * + * @throws IllegalArgumentException if the given {@link java.time.Instant} cannot legally fit into + * a {@link Timestamp}. See {@link Timestamps#isValid}. + */ + public static Timestamp toProtoTimestamp(Instant instant) { + checkNotNull(instant); + return normalizedTimestamp(instant.getEpochSecond(), instant.getNano()); + } + + /** Exposes {@link Timestamps#normalizedTimestamp} internal method. */ + static Timestamp normalizedTimestamp(long seconds, int nanos) { + if (nanos <= -NANOS_PER_SECOND || nanos >= NANOS_PER_SECOND) { + seconds = checkedAdd(seconds, nanos / NANOS_PER_SECOND); + nanos = (int) (nanos % NANOS_PER_SECOND); + } + if (nanos < 0) { + nanos = + (int) + (nanos + NANOS_PER_SECOND); // no overflow since nanos is negative (and we're adding) + seconds = checkedSubtract(seconds, 1); + } + Timestamp timestamp = Timestamp.newBuilder().setSeconds(seconds).setNanos(nanos).build(); + return Timestamps.checkValid(timestamp); + } +} diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LogDestinationName.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LogDestinationName.java new file mode 100644 index 000000000000..dcf6a12cca0b --- /dev/null +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LogDestinationName.java @@ -0,0 +1,140 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.logging; + +import static com.google.common.base.Preconditions.checkArgument; +import static com.google.common.base.Preconditions.checkNotNull; + +import com.google.logging.v2.LogName; +import java.util.Map; + +/** + * Class for specifying resource name of the log to which this log entry belongs (see 'logName' + * parameter in https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry) + */ +public final class LogDestinationName extends Option { + private static final long serialVersionUID = 7944256748441111191L; + + public enum DestinationType implements Option.OptionType { + PROJECT, + FOLDER, + ORGANIZATION, + BILLINGACCOUNT; + + @SuppressWarnings("unchecked") + T get(Map options) { + return (T) options.get(this); + } + } + + private LogDestinationName(Option.OptionType option, Object value) { + super(option, value); + checkArgument(!checkNotNull(value).toString().trim().isEmpty()); + } + + /** + * Returns an option which sets and validates project ID resource name for log entries. + * + * @param id corresponds to PROJECT_ID token in 'logName' field described in + * https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry + */ + public static LogDestinationName project(String id) { + return new LogDestinationName(DestinationType.PROJECT, id); + } + + /** + * Returns an option which sets and validates project ID resource name for log entries. + * + * @param id corresponds to FOLDER_ID token in 'logName' field described in + * https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry + */ + public static LogDestinationName folder(String id) { + return new LogDestinationName(DestinationType.FOLDER, id); + } + + /** + * Returns an option which sets and validates project ID resource name for log entries. + * + * @param id corresponds to ORGANIZATION_ID token in 'logName' field described in + * https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry + */ + public static LogDestinationName organization(String id) { + return new LogDestinationName(DestinationType.ORGANIZATION, id); + } + + /** + * Returns an option which sets and validates project ID resource name for log entries. + * + * @param id corresponds to BILLING_ACCOUNT_ID token in 'logName' field described in + * https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry + */ + public static LogDestinationName billingAccount(String id) { + return new LogDestinationName(DestinationType.BILLINGACCOUNT, id); + } + + /** Creates a {@code LogEntry} object for given log ID. */ + public LogName toLogName(String logId) { + if (logId == null) { + return null; + } + + switch ((DestinationType) getOptionType()) { + case PROJECT: + return LogName.ofProjectLogName(getValue().toString(), logId); + + case FOLDER: + return LogName.ofFolderLogName(getValue().toString(), logId); + + case ORGANIZATION: + return LogName.ofOrganizationLogName(getValue().toString(), logId); + + case BILLINGACCOUNT: + return LogName.ofBillingAccountLogName(getValue().toString(), logId); + } + + return null; + } + + /** Returns ID value associated with {@code LogDestinationName} object */ + public String getDestinationId() { + return getValue().toString(); + } + + /** Returns destination type option value associated with {@code LogDestinationName} object */ + public DestinationType getDestinationType() { + return getOptionType(); + } + + /** Creates a {@code LogDestinationName} object from given {@code LogName}. */ + public static LogDestinationName fromLogName(LogName logName) { + if (logName == null) { + return null; + } + + if (logName.getProject() != null) { + return project(logName.getProject()); + } else if (logName.getBillingAccount() != null) { + return billingAccount(logName.getBillingAccount()); + } else if (logName.getFolder() != null) { + return folder(logName.getFolder()); + } else if (logName.getOrganization() != null) { + return organization(logName.getOrganization()); + } + + return null; + } +} diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LogEntry.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LogEntry.java new file mode 100644 index 000000000000..6f3a5fd7c189 --- /dev/null +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LogEntry.java @@ -0,0 +1,824 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.cloud.logging; + +import static com.google.common.base.Preconditions.checkNotNull; + +import com.google.cloud.MonitoredResource; +import com.google.common.base.Function; +import com.google.common.base.MoreObjects; +import com.google.common.collect.ImmutableMap; +import com.google.errorprone.annotations.CanIgnoreReturnValue; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonPrimitive; +import com.google.gson.JsonSerializationContext; +import com.google.gson.JsonSerializer; +import com.google.logging.v2.LogEntryOperation; +import com.google.logging.v2.LogEntrySourceLocation; +import com.google.logging.v2.LogName; +import java.io.Serializable; +import java.time.Duration; +import java.time.Instant; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * A Cloud Logging log entry. All log entries are represented via objects of this class. Log entries + * can have different type of payloads: an UTF-8 string (see {@link Payload.StringPayload}), a JSON + * object (see {@link Payload.JsonPayload}, or a protobuf object (see {@link Payload.ProtoPayload}). + * Entries can also store additional information about the operation or the HTTP request that + * generated the log (see {@link LogEntry#getOperation()} and {@link LogEntry#getHttpRequest()}, + * respectively). + * + * @see Log Entries and Logs + */ +public class LogEntry implements Serializable { + + private static final long serialVersionUID = -944788159728228219L; + static final Function FROM_PB_FUNCTION = + (com.google.logging.v2.LogEntry pb) -> { + return fromPb(pb); + }; + + private final String logName; + private final MonitoredResource resource; + private final Instant timestamp; + private final Instant receiveTimestamp; + private final Severity severity; + private final String insertId; + private final HttpRequest httpRequest; + private final ImmutableMap labels; + private final Operation operation; + private final String trace; + private final String spanId; + private final boolean traceSampled; + private final SourceLocation sourceLocation; + private final Payload payload; + private final LogDestinationName destination; + + /** A builder for {@code LogEntry} objects. */ + public static class Builder { + + private String logName; + private MonitoredResource resource; + private Instant timestamp; + private Instant receiveTimestamp; + private Severity severity = Severity.DEFAULT; + private String insertId; + private HttpRequest httpRequest; + private Map labels = new HashMap<>(); + private Operation operation; + private String trace; + private String spanId; + private boolean traceSampled; + private SourceLocation sourceLocation; + private Payload payload; + private LogDestinationName destination; + + Builder(Payload payload) { + this.payload = payload; + } + + Builder(LogEntry entry) { + this.logName = entry.logName; + this.resource = entry.resource; + this.timestamp = entry.timestamp; + this.receiveTimestamp = entry.receiveTimestamp; + this.severity = entry.severity; + this.insertId = entry.insertId; + this.httpRequest = entry.httpRequest; + this.labels = new HashMap<>(entry.labels); + this.operation = entry.operation; + this.trace = entry.trace; + this.spanId = entry.spanId; + this.traceSampled = entry.traceSampled; + this.sourceLocation = entry.sourceLocation; + this.payload = entry.payload; + this.destination = entry.destination; + } + + /** + * Sets the name of the log to which this log entry belongs. The log name must be less than 512 + * characters long and can only include the following characters: upper and lower case + * alphanumeric characters: {@code [A-Za-z0-9]}; and punctuation characters: {@code _-./}. The + * forward-slash ({@code /}) characters in the log name must be URL-encoded. Examples: {@code + * syslog}, {@code library.googleapis.com%2Fbook_log}. + */ + @CanIgnoreReturnValue + public Builder setLogName(String logName) { + this.logName = logName; + return this; + } + + /** + * Sets the monitored resource associated with this log entry. Example: a log entry that reports + * a database error would be associated with the monitored resource designating the particular + * database that reported the error. + */ + @CanIgnoreReturnValue + public Builder setResource(MonitoredResource resource) { + this.resource = resource; + return this; + } + + /** + * Sets the time at which the event described by the log entry occurred, in milliseconds. If + * omitted, the Logging service will use the time at which the log entry is received. + * + * @deprecated This method is no longer recommended to setup the entry timestamp. + *

            Use {@link #setTimestamp(Instant)} instead. + */ + @CanIgnoreReturnValue + @Deprecated + public Builder setTimestamp(long milliseconds) { + this.timestamp = Instant.ofEpochMilli(milliseconds); + return this; + } + + /** + * Sets the time at which the event described by the log entry occurred. If omitted, the Logging + * service will use the time at which the log entry is received. + */ + @CanIgnoreReturnValue + public Builder setTimestamp(Instant timestamp) { + this.timestamp = timestamp; + return this; + } + + /** + * Sets the time the log entry was received by Cloud Logging, in milliseconds. If omitted, the + * Logging service will set the time at which the log entry is received. + * + * @deprecated This method is no longer recommended to setup the receive time timestamp. + *

            Use {@link setReceiveTimestamp(Instant)} instead. + */ + @CanIgnoreReturnValue + @Deprecated + public Builder setReceiveTimestamp(long milliseconds) { + this.receiveTimestamp = Instant.ofEpochMilli(milliseconds); + return this; + } + + /** + * Sets the time the log entry was received by Cloud Logging. If omitted, the Logging service + * will set the time at which the log entry is received. + */ + @CanIgnoreReturnValue + public Builder setReceiveTimestamp(Instant receiveTimestamp) { + this.receiveTimestamp = receiveTimestamp; + return this; + } + + /** Sets the severity of the log entry. If not set, {@link Severity#DEFAULT} is used. */ + @CanIgnoreReturnValue + public Builder setSeverity(Severity severity) { + this.severity = severity; + return this; + } + + /** + * Sets a unique ID for the log entry. If you provide this field, the Logging service considers + * other log entries in the same log with the same ID as duplicates which can be removed. If + * omitted, the Logging service will generate a unique ID for this log entry. + */ + @CanIgnoreReturnValue + public Builder setInsertId(String insertId) { + this.insertId = insertId; + return this; + } + + /** Sets information about the HTTP request associated with this log entry, if applicable. */ + @CanIgnoreReturnValue + public Builder setHttpRequest(HttpRequest httpRequest) { + this.httpRequest = httpRequest; + return this; + } + + /** + * Sets an optional set of user-defined (key, value) data that provides additional information + * about the log entry. + */ + @CanIgnoreReturnValue + public Builder setLabels(Map labels) { + this.labels = new HashMap<>(checkNotNull(labels)); + return this; + } + + /** + * Adds a label to the log entry's labels. Labels are user-defined (key, value) data that + * provides additional information about the log entry. + */ + @CanIgnoreReturnValue + public Builder addLabel(String key, String value) { + this.labels.put(key, value); + return this; + } + + /** + * Clears all the labels of the log entry. Labels are user-defined (key, value) data that + * provides additional information about the log entry. + */ + @CanIgnoreReturnValue + public Builder clearLabels() { + this.labels.clear(); + return this; + } + + /** Sets information about an operation associated with the log entry, if applicable. */ + @CanIgnoreReturnValue + public Builder setOperation(Operation operation) { + this.operation = operation; + return this; + } + + /** + * Sets the resource name of the trace associated with the log entry, if any. If it contains a + * relative resource name, the name is assumed to be relative to `//tracing.googleapis.com`. + */ + @CanIgnoreReturnValue + public Builder setTrace(String trace) { + this.trace = trace; + return this; + } + + /** + * Sets the resource name of the trace associated with the log entry, if any. If it contains a + * relative resource name, the name is assumed to be relative to `//tracing.googleapis.com`. + */ + @CanIgnoreReturnValue + public Builder setTrace(Object trace) { + this.trace = trace != null ? trace.toString() : null; + return this; + } + + /** Sets the ID of the trace span associated with the log entry, if any. */ + @CanIgnoreReturnValue + public Builder setSpanId(String spanId) { + this.spanId = spanId; + return this; + } + + /** Sets the ID of the trace span associated with the log entry, if any. */ + @CanIgnoreReturnValue + public Builder setSpanId(Object spanId) { + this.spanId = spanId != null ? spanId.toString() : null; + return this; + } + + /** Sets the sampling decision of the trace span associated with the log entry. */ + @CanIgnoreReturnValue + public Builder setTraceSampled(boolean traceSampled) { + this.traceSampled = traceSampled; + return this; + } + + /** Sets the source code location information associated with the log entry if any. */ + @CanIgnoreReturnValue + public Builder setSourceLocation(SourceLocation sourceLocation) { + this.sourceLocation = sourceLocation; + return this; + } + + /** + * Sets the payload for this log entry. The log entry payload can be provided as an UTF-8 string + * (see {@link Payload.StringPayload}), a JSON object (see {@link Payload.JsonPayload}, or a + * protobuf object (see {@link Payload.ProtoPayload}). + * + * @see Log Entries and Logs + */ + @CanIgnoreReturnValue + public Builder setPayload(Payload payload) { + this.payload = payload; + return this; + } + + /** Sets the log path destination name type associated with the log entry. */ + @CanIgnoreReturnValue + public Builder setDestination(LogDestinationName destination) { + this.destination = destination; + return this; + } + + /** Creates a {@code LogEntry} object for this builder. */ + public LogEntry build() { + return new LogEntry(this); + } + } + + LogEntry(Builder builder) { + this.logName = builder.logName; + this.resource = builder.resource; + this.timestamp = builder.timestamp; + this.receiveTimestamp = builder.receiveTimestamp; + this.severity = builder.severity; + this.insertId = builder.insertId; + this.httpRequest = builder.httpRequest; + this.labels = ImmutableMap.copyOf(builder.labels); + this.operation = builder.operation; + this.trace = builder.trace; + this.spanId = builder.spanId; + this.traceSampled = builder.traceSampled; + this.sourceLocation = builder.sourceLocation; + this.payload = builder.payload; + this.destination = builder.destination; + } + + /** + * Returns the name of the log to which this log entry belongs. The log name must be less than 512 + * characters long and can only include the following characters: upper and lower case + * alphanumeric characters: {@code [A-Za-z0-9]}; and punctuation characters: {@code _-./}. The + * forward-slash ({@code /}) characters in the log name must be URL-encoded. Examples: {@code + * syslog}, {@code library.googleapis.com%2Fbook_log}. + */ + public String getLogName() { + return logName; + } + + /** + * Returns the monitored resource associated with this log entry. Example: a log entry that + * reports a database error would be associated with the monitored resource designating the + * particular database that reported the error. + */ + public MonitoredResource getResource() { + return resource; + } + + /** + * Returns the time at which the event described by the log entry occurred, in milliseconds. + * + * @deprecated This method is no longer recommended to get the entry timestamp. + *

            Use {@link getInstantTimestamp()} instead. + * @return timestamp in milliseconds + */ + @Deprecated + public Long getTimestamp() { + return timestamp != null ? timestamp.toEpochMilli() : null; + } + + /** + * Returns the time at which the event described by the log entry occurred. + * + * @return timestamp as {@link Instant} + */ + public Instant getInstantTimestamp() { + return timestamp; + } + + /** + * Returns the time the log entry was received by Cloud Logging, in milliseconds. + * + * @deprecated This method is no longer recommended to get the received time timestamp. + *

            Use {@link getInstantReceiveTimestamp()} instead. + * @return timestamp in milliseconds + */ + @Deprecated + public Long getReceiveTimestamp() { + return receiveTimestamp != null ? receiveTimestamp.toEpochMilli() : null; + } + + /** + * Returns the time the log entry was received by Cloud Logging, in milliseconds. + * + * @return timestamp as {@link Instant} + */ + public Instant getInstantReceiveTimestamp() { + return receiveTimestamp; + } + + /** Returns the severity of the log entry. If not set, {@link Severity#DEFAULT} is used. */ + public Severity getSeverity() { + return severity; + } + + /** + * Returns a unique ID for the log entry. The Logging service considers other log entries in the + * same log with the same ID as duplicates which can be removed. + */ + public String getInsertId() { + return insertId; + } + + /** Returns information about the HTTP request associated with this log entry, if applicable. */ + public HttpRequest getHttpRequest() { + return httpRequest; + } + + /** + * Returns an optional set of user-defined (key, value) data that provides additional information + * about the log entry. + */ + public Map getLabels() { + return labels; + } + + /** Returns information about an operation associated with the log entry, if applicable. */ + public Operation getOperation() { + return operation; + } + + /** + * Returns the resource name of the trace associated with the log entry, if any. If it contains a + * relative resource name, the name is assumed to be relative to `//tracing.googleapis.com`. + */ + public String getTrace() { + // For backwards compatibility return null when trace not set instead of "null". + return trace == null ? null : trace; + } + + /** Returns the ID of the trace span associated with the log entry, if any. */ + public String getSpanId() { + // For backwards compatibility return null when spanId not set instead of "null". + return spanId == null ? null : spanId; + } + + /** + * Returns the sampling decision of the trace span associated with the log entry, or {@code false} + * if there is no trace span. + */ + public boolean getTraceSampled() { + return traceSampled; + } + + /** Returns the source code location information associated with the log entry, if any. */ + public SourceLocation getSourceLocation() { + return sourceLocation; + } + + /** + * Returns the payload for this log entry. The log entry payload can be an UTF-8 string (see + * {@link Payload.StringPayload}), a JSON object (see {@link Payload.JsonPayload}, or a protobuf + * object (see {@link Payload.ProtoPayload}). + * + * @see Log Entries and Logs + */ + @SuppressWarnings("unchecked") + public > T getPayload() { + return (T) payload; + } + + /** + * Returns the log path destination name type associated with log entry. By default, project name + * based destination is used. + * + * @see logName + */ + public LogDestinationName getDestination() { + return destination; + } + + @Override + public int hashCode() { + return Objects.hash( + logName, + resource, + timestamp, + receiveTimestamp, + severity, + insertId, + httpRequest, + labels, + operation, + getTrace(), + getSpanId(), + traceSampled, + sourceLocation, + payload, + destination); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof LogEntry)) { + return false; + } + LogEntry other = (LogEntry) obj; + return Objects.equals(logName, other.logName) + && Objects.equals(resource, other.resource) + && Objects.equals(timestamp, other.timestamp) + && Objects.equals(receiveTimestamp, other.receiveTimestamp) + && Objects.equals(severity, other.severity) + && Objects.equals(insertId, other.insertId) + && Objects.equals(httpRequest, other.httpRequest) + && Objects.equals(labels, other.labels) + && Objects.equals(operation, other.operation) + && Objects.equals(getTrace(), other.getTrace()) + && Objects.equals(getSpanId(), other.getSpanId()) + && (traceSampled == other.traceSampled) + && Objects.equals(sourceLocation, other.sourceLocation) + && Objects.equals(payload, other.payload) + && Objects.equals(destination, other.destination); + } + + @Override + public String toString() { + return MoreObjects.toStringHelper(this) + .add("logName", logName) + .add("resource", resource) + .add("timestamp", timestamp) + .add("receiveTimestamp", receiveTimestamp) + .add("severity", severity) + .add("insertId", insertId) + .add("httpRequest", httpRequest) + .add("labels", labels) + .add("operation", operation) + .add("trace", trace) + .add("spanId", spanId) + .add("traceSampled", traceSampled) + .add("sourceLocation", sourceLocation) + .add("payload", payload) + .add("destination", destination) + .toString(); + } + + /** Returns a {@code Builder} for this log entry. */ + public Builder toBuilder() { + return new Builder(this); + } + + com.google.logging.v2.LogEntry toPb(String projectId) { + com.google.logging.v2.LogEntry.Builder builder = payload.toPb(); + builder.putAllLabels(labels); + + if (logName != null) { + if (destination == null) { + builder.setLogName(LogName.ofProjectLogName(projectId, logName).toString()); + } else { + builder.setLogName(destination.toLogName(logName).toString()); + } + } + if (resource != null) { + builder.setResource(resource.toPb()); + } + if (timestamp != null) { + builder.setTimestamp(JavaTimeConversions.toProtoTimestamp(timestamp)); + } + if (receiveTimestamp != null) { + builder.setReceiveTimestamp(JavaTimeConversions.toProtoTimestamp(receiveTimestamp)); + } + if (severity != null) { + builder.setSeverity(severity.toPb()); + } + if (insertId != null) { + builder.setInsertId(insertId); + } + if (httpRequest != null) { + builder.setHttpRequest(httpRequest.toPb()); + } + if (operation != null) { + builder.setOperation(operation.toPb()); + } + if (trace != null) { + builder.setTrace(getTrace()); + } + if (spanId != null) { + builder.setSpanId(getSpanId()); + } + builder.setTraceSampled(traceSampled); + if (sourceLocation != null) { + builder.setSourceLocation(sourceLocation.toPb()); + } + return builder.build(); + } + + /** + * Customized serializers to match the expected format for timestamp, source location and request + * method + */ + static final class InstantSerializer implements JsonSerializer { + @Override + public JsonElement serialize( + Instant src, java.lang.reflect.Type typeOfSrc, JsonSerializationContext context) { + return new JsonPrimitive(src.toString()); + } + } + + static final class DurationSerializer implements JsonSerializer { + @Override + public JsonElement serialize( + Duration src, java.lang.reflect.Type typeOfSrc, JsonSerializationContext context) { + return new JsonPrimitive(src.toString()); + } + } + + static final class SourceLocationSerializer implements JsonSerializer { + @Override + public JsonElement serialize( + SourceLocation src, java.lang.reflect.Type typeOfSrc, JsonSerializationContext context) { + JsonObject obj = new JsonObject(); + if (src.getFile() != null) { + obj.addProperty("file", src.getFile()); + } + if (src.getLine() != null) { + obj.addProperty("line", src.getLine().toString()); + } + if (src.getFunction() != null) { + obj.addProperty("function", src.getFunction()); + } + return obj; + } + } + + static final class RequestMethodSerializer implements JsonSerializer { + @Override + public JsonElement serialize( + HttpRequest.RequestMethod src, + java.lang.reflect.Type typeOfSrc, + JsonSerializationContext context) { + return new JsonPrimitive(src.name()); + } + } + + /** Helper class to format one line Json representation of the LogEntry for structured log. */ + static final class StructuredLogFormatter { + private final Gson gson; + private final StringBuilder builder; + + public StructuredLogFormatter(StringBuilder builder) { + checkNotNull(builder); + this.gson = + new GsonBuilder() + .registerTypeAdapter(Duration.class, new DurationSerializer()) + .registerTypeAdapter(Instant.class, new InstantSerializer()) + .registerTypeAdapter(SourceLocation.class, new SourceLocationSerializer()) + .registerTypeAdapter(HttpRequest.RequestMethod.class, new RequestMethodSerializer()) + .create(); + this.builder = builder; + } + + /** + * Adds a Json field and value pair to the current string representation. Method does not + * validate parameters to be multi-line strings. Nothing is added if {@code value} parameter is + * {@code null}. + * + * @param name a valid Json field name string. + * @param value an object to be serialized to Json using {@link Gson}. + * @param appendComma a flag to add a trailing comma. + * @return a reference to this object. + */ + @CanIgnoreReturnValue + public StructuredLogFormatter appendField(String name, Object value, boolean appendComma) { + checkNotNull(name); + if (value != null) { + builder.append(gson.toJson(name)).append(":").append(gson.toJson(value)); + if (appendComma) { + builder.append(","); + } + } + return this; + } + + @CanIgnoreReturnValue + public StructuredLogFormatter appendField(String name, Object value) { + return appendField(name, value, true); + } + + /** + * Serializes a dictionary of key, values as Json fields. + * + * @param value a {@link Map} of key, value arguments to be serialized using {@link Gson}. + * @param appendComma a flag to add a trailing comma. + * @return a reference to this object. + */ + @CanIgnoreReturnValue + public StructuredLogFormatter appendDict(Map value, boolean appendComma) { + if (value != null) { + String json = gson.toJson(value); + // append json object without brackets + if (json.length() > 1) { + builder.append(json.substring(0, json.length() - 1).substring(1)); + if (appendComma) { + builder.append(","); + } + } + } + return this; + } + } + + /** + * Serializes the object to a one line JSON string in the simplified format that can be parsed by + * the logging agents that run on Google Cloud resources. + */ + public String toStructuredJsonString() { + if (payload.getType() == Payload.Type.PROTO) { + throw new UnsupportedOperationException("LogEntry with protobuf payload cannot be converted"); + } + if (severity == Severity.NONE) { + throw new IllegalArgumentException("Severity.NONE cannot be used for LogEntry"); + } + + final StringBuilder builder = new StringBuilder("{"); + final StructuredLogFormatter formatter = new StructuredLogFormatter(builder); + + formatter + .appendField("severity", severity) + .appendField("time", timestamp) + .appendField("httpRequest", httpRequest) + .appendField("logging.googleapis.com/insertId", insertId) + .appendField("logging.googleapis.com/labels", labels) + .appendField("logging.googleapis.com/operation", operation) + .appendField("logging.googleapis.com/sourceLocation", sourceLocation) + .appendField("logging.googleapis.com/spanId", spanId) + .appendField("logging.googleapis.com/trace", trace) + .appendField("logging.googleapis.com/trace_sampled", traceSampled); + if (payload.getType() == Payload.Type.STRING) { + formatter.appendField("message", payload.getData(), false); + } else if (payload.getType() == Payload.Type.JSON) { + Payload.JsonPayload jsonPayload = (Payload.JsonPayload) payload; + formatter.appendDict(jsonPayload.getDataAsMap(), false); + } + builder.append("}"); + return builder.toString(); + } + + /** Returns a builder for {@code LogEntry} objects given the entry payload. */ + public static Builder newBuilder(Payload payload) { + return new Builder(payload); + } + + /** Creates a {@code LogEntry} object given the entry payload. */ + public static LogEntry of(Payload payload) { + return newBuilder(payload).build(); + } + + /** + * Creates a {@code LogEntry} object given the log name, the monitored resource and the entry + * payload. + */ + public static LogEntry of(String logName, MonitoredResource resource, Payload payload) { + return newBuilder(payload).setLogName(logName).setResource(resource).build(); + } + + public static LogEntry fromPb(com.google.logging.v2.LogEntry entryPb) { + Builder builder = newBuilder(Payload.fromPb(entryPb)); + builder.setLabels(entryPb.getLabelsMap()); + builder.setSeverity(Severity.fromPb(entryPb.getSeverity())); + if (!entryPb.getLogName().isEmpty()) { + LogName name = LogName.parse(entryPb.getLogName()); + builder.setLogName(name.getLog()); + LogDestinationName resource = LogDestinationName.fromLogName(name); + if (resource != null) { + builder.setDestination(resource); + } + } + if (!entryPb.getResource().equals(com.google.api.MonitoredResource.getDefaultInstance())) { + builder.setResource(MonitoredResource.fromPb(entryPb.getResource())); + } + if (entryPb.hasTimestamp()) { + builder.setTimestamp(JavaTimeConversions.toJavaInstant(entryPb.getTimestamp())); + } + if (entryPb.hasReceiveTimestamp()) { + builder.setReceiveTimestamp(JavaTimeConversions.toJavaInstant(entryPb.getReceiveTimestamp())); + } + if (!entryPb.getInsertId().isEmpty()) { + builder.setInsertId(entryPb.getInsertId()); + } + if (!entryPb + .getHttpRequest() + .equals(com.google.logging.type.HttpRequest.getDefaultInstance())) { + builder.setHttpRequest(HttpRequest.fromPb(entryPb.getHttpRequest())); + } + if (!entryPb.getOperation().equals(LogEntryOperation.getDefaultInstance())) { + builder.setOperation(Operation.fromPb(entryPb.getOperation())); + } + if (!entryPb.getTrace().isEmpty()) { + builder.setTrace(entryPb.getTrace()); + } + if (!entryPb.getSpanId().isEmpty()) { + builder.setSpanId(entryPb.getSpanId()); + } + builder.setTraceSampled(entryPb.getTraceSampled()); + if (!entryPb.getSourceLocation().equals(LogEntrySourceLocation.getDefaultInstance())) { + builder.setSourceLocation(SourceLocation.fromPb(entryPb.getSourceLocation())); + } + return builder.build(); + } + + public static Function toPbFunction( + final String projectId) { + return (LogEntry entry) -> { + return entry.toPb(projectId); + }; + } +} diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LogEntryIterator.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LogEntryIterator.java new file mode 100644 index 000000000000..2bbd76be27ae --- /dev/null +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LogEntryIterator.java @@ -0,0 +1,54 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.logging; + +import com.google.common.collect.Lists; +import com.google.logging.v2.TailLogEntriesResponse; +import java.util.ArrayDeque; +import java.util.Iterator; + +/** + * The class implements {@see Iterator} interface over {@see LogEntry} by iterating through {@see + * TailLogEntriesResponse} streamed by {@code BidiStream}. This class is instantiated by {@see + * LogEntryServerStream} and is not intended to be used explicitly. + */ +public class LogEntryIterator implements Iterator { + // TODO: consider converting this to use generics instead of + // fixed TailLogEntriesResponse + private final Iterator streamIterator; + private final ArrayDeque buffer = new ArrayDeque<>(); + + LogEntryIterator(Iterator streamIterator) { + this.streamIterator = streamIterator; + } + + /** {@inheritDoc} */ + @Override + public boolean hasNext() { + return !buffer.isEmpty() || streamIterator.hasNext(); + } + + /** {@inheritDoc} */ + @Override + public LogEntry next() { + if (buffer.isEmpty()) { + TailLogEntriesResponse response = streamIterator.next(); + buffer.addAll(Lists.transform(response.getEntriesList(), LogEntry.FROM_PB_FUNCTION)); + } + return buffer.pop(); + } +} diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LogEntryServerStream.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LogEntryServerStream.java new file mode 100644 index 000000000000..43821861fd87 --- /dev/null +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LogEntryServerStream.java @@ -0,0 +1,85 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.logging; + +import com.google.api.gax.rpc.BidiStream; +import com.google.common.collect.Lists; +import com.google.logging.v2.TailLogEntriesRequest; +import com.google.logging.v2.TailLogEntriesResponse; +import java.util.Iterator; +import java.util.List; + +/** + * The class implements {@link Iterable} interface over {@see LogEntry}. It wraps around {@link + * BidiStream} bi-directional gRPC stream to support iterating through ingested responses. The class + * uses {@see LogEntryIterator} to iterate through the processed responses. The stream should be + * explicitly canceled by calling {@see LogEntryServerStream#cancel()} method. The class does not + * provide recovery or resuming functionality over the stream. + * + *

            To iterate run: + * + *

            {@code
            + * LogEntryServerStream stream;
            + * // code to initialize stream
            + * for (LogEntry log : stream) {
            + *   // do something with logs
            + * }
            + * stream.cancel();
            + * }
            + * + *

            The iteration can be blocked on waiting for another response sent in the stream. + */ +public class LogEntryServerStream implements Iterable { + private final BidiStream serverStream; + + LogEntryServerStream(BidiStream serverStream) { + this.serverStream = serverStream; + } + + /** {@inheritDoc} */ + @Override + public Iterator iterator() { + return new LogEntryIterator(serverStream.iterator()); + } + + public BidiStream getInternalStream() { + return serverStream; + } + + public List convert(TailLogEntriesResponse resp) { + return Lists.transform(resp.getEntriesList(), LogEntry.FROM_PB_FUNCTION); + } + + /** + * Returns true if the next call to the iterator's hasNext() or next() is guaranteed to be + * nonblocking. + * + * @return If the call on any of the iterator's methods is guaranteed to be nonblocking. + */ + public boolean isReceiveReady() { + return serverStream.isReceiveReady(); + } + + /** + * Cleanly cancels a partially consumed stream. The associated iterator will return false for the + * hasNext() in the next iteration. This maintains the contract that an observed true from + * hasNext() will yield an item in next(), but afterwards will return false. + */ + public void cancel() { + serverStream.cancel(); + } +} diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/Logging.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/Logging.java new file mode 100644 index 000000000000..125c34818628 --- /dev/null +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/Logging.java @@ -0,0 +1,1208 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.cloud.logging; + +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.paging.AsyncPage; +import com.google.api.gax.paging.Page; +import com.google.cloud.MonitoredResource; +import com.google.cloud.MonitoredResourceDescriptor; +import com.google.cloud.Service; +import com.google.common.base.Ascii; +import com.google.common.collect.ImmutableMap; +import java.util.Map; + +public interface Logging extends AutoCloseable, Service { + + /** + * Class for specifying options for listing sinks, monitored resources and monitored resource + * descriptors. + */ + final class ListOption extends Option { + + private static final long serialVersionUID = -6857294816115909271L; + + enum OptionType implements Option.OptionType { + PAGE_SIZE, + PAGE_TOKEN; + + @SuppressWarnings("unchecked") + T get(Map options) { + return (T) options.get(this); + } + } + + private ListOption(ListOption.OptionType option, Object value) { + super(option, value); + } + + /** Returns an option to specify the maximum number of resources returned per page. */ + public static ListOption pageSize(int pageSize) { + return new ListOption(ListOption.OptionType.PAGE_SIZE, pageSize); + } + + /** Returns an option to specify the page token from which to start listing resources. */ + public static ListOption pageToken(String pageToken) { + return new ListOption(ListOption.OptionType.PAGE_TOKEN, pageToken); + } + } + + /** Class for specifying options for writing log entries. */ + final class WriteOption extends Option { + + private static final long serialVersionUID = 715900132268584612L; + + enum OptionType implements Option.OptionType { + LOG_NAME, + RESOURCE, + LABELS, + LOG_DESTINATION, + AUTO_POPULATE_METADATA, + PARTIAL_SUCCESS; + + @SuppressWarnings("unchecked") + T get(Map options) { + return (T) options.get(this); + } + } + + private WriteOption(WriteOption.OptionType option, Object value) { + super(option, value); + } + + /** + * Returns an option to specify a default log name (see {@link LogEntry#getLogName()}) for those + * log entries that do not specify their own log name. Example: {@code syslog}. + */ + public static WriteOption logName(String logName) { + return new WriteOption(WriteOption.OptionType.LOG_NAME, logName); + } + + /** + * Returns an option to specify a default monitored resource (see {@link + * LogEntry#getResource()}) for those log entries that do not specify their own resource. + */ + public static WriteOption resource(MonitoredResource resource) { + return new WriteOption(WriteOption.OptionType.RESOURCE, resource); + } + + /** + * Sets an option to specify (key, value) pairs that are added to the {@link + * LogEntry#getLabels()} of each log entry written, except when a log entry already has a value + * associated to the same key. + */ + public static WriteOption labels(Map labels) { + return new WriteOption(WriteOption.OptionType.LABELS, ImmutableMap.copyOf(labels)); + } + + /** + * Returns an option to specify a log destination resource path (see {@link LogDestinationName} + * for details) + */ + public static WriteOption destination(LogDestinationName destination) { + return new WriteOption(WriteOption.OptionType.LOG_DESTINATION, destination); + } + + /** + * Returns an option to opt-out automatic population of log entries metadata fields that are not + * set. + */ + public static WriteOption autoPopulateMetadata(boolean autoPopulateMetadata) { + return new WriteOption(WriteOption.OptionType.AUTO_POPULATE_METADATA, autoPopulateMetadata); + } + + /** + * Returns an option to set partialSuccess flag. See the + * API documentation for more details. + */ + public static WriteOption partialSuccess(boolean partialSuccess) { + return new WriteOption(WriteOption.OptionType.PARTIAL_SUCCESS, partialSuccess); + } + } + + /** Fields according to which log entries can be sorted. */ + enum SortingField { + TIMESTAMP; + + String selector() { + return Ascii.toLowerCase(name()); + } + } + + /** Sorting orders available when listing log entries. */ + enum SortingOrder { + DESCENDING("desc"), + ASCENDING("asc"); + + private final String selector; + + SortingOrder(String selector) { + this.selector = selector; + } + + String selector() { + return selector; + } + } + + /** Class for specifying options for listing log entries. */ + final class EntryListOption extends Option { + + private static final long serialVersionUID = -1561159676386917050L; + + enum OptionType implements Option.OptionType { + ORDER_BY, + FILTER, + ORGANIZATION, + BILLINGACCOUNT, + FOLDER; + + @SuppressWarnings("unchecked") + T get(Map options) { + return (T) options.get(this); + } + } + + private EntryListOption(Option.OptionType option, Object value) { + super(option, value); + } + + /** Returns an option to specify the maximum number of log entries returned per page. */ + public static EntryListOption pageSize(int pageSize) { + return new EntryListOption(ListOption.OptionType.PAGE_SIZE, pageSize); + } + + /** Returns an option to specify the page token from which to start listing log entries. */ + public static EntryListOption pageToken(String pageToken) { + return new EntryListOption(ListOption.OptionType.PAGE_TOKEN, pageToken); + } + + /** + * Returns an option to sort log entries. If not specified, log entries are sorted in ascending + * (most-recent last) order with respect to the {@link LogEntry#getTimestamp()} value. + */ + public static EntryListOption sortOrder(SortingField field, SortingOrder order) { + return new EntryListOption( + EntryListOption.OptionType.ORDER_BY, field.selector() + ' ' + order.selector()); + } + + /** + * Returns an option to specify a filter to the log entries to be listed. + * + * @see Advanced Logs + * Filters + */ + public static EntryListOption filter(String filter) { + return new EntryListOption(EntryListOption.OptionType.FILTER, filter); + } + + /** Returns an option to specify an organization for the log entries to be listed. */ + public static EntryListOption organization(String organization) { + return new EntryListOption(EntryListOption.OptionType.ORGANIZATION, organization); + } + + /** Returns an option to specify a billingAccount for the log entries to be listed. */ + public static EntryListOption billingAccount(String billingAccount) { + return new EntryListOption(EntryListOption.OptionType.BILLINGACCOUNT, billingAccount); + } + + /** Returns an option to specify a folder for the log entries to be listed. */ + public static EntryListOption folder(String folder) { + return new EntryListOption(EntryListOption.OptionType.FOLDER, folder); + } + } + + /** Class for specifying options for tailing log entries. */ + final class TailOption extends Option { + + private static final long serialVersionUID = -772271612198662617L; + + enum OptionType implements Option.OptionType { + FILTER, + BUFFERWINDOW, + PROJECT, + ORGANIZATION, + BILLINGACCOUNT, + FOLDER; + + @SuppressWarnings("unchecked") + T get(Map options) { + return (T) options.get(this); + } + } + + private TailOption(Option.OptionType option, Object value) { + super(option, value); + } + + /** + * Returns an option to specify a filter to the log entries to be tailed. + * + * @see Advanced Logs + * Filters + */ + public static TailOption filter(String filter) { + return new TailOption(TailOption.OptionType.FILTER, filter); + } + + /** + * Returns an option to specify the amount of time to buffer log entries at the server before + * being returned to prevent out of order results due to late arriving log entries. Valid values + * are between 0-60000 ms. Default is 2000 ms. + * + * @see Duration + * format + */ + public static TailOption bufferWindow(String duration) { + return new TailOption(TailOption.OptionType.BUFFERWINDOW, duration); + } + + /** Returns an option to specify an organization for the log entries to be tailed. */ + public static TailOption organization(String organization) { + return new TailOption(TailOption.OptionType.ORGANIZATION, organization); + } + + /** Returns an option to specify a billingAccount for the log entries to be tailed. */ + public static TailOption billingAccount(String billingAccount) { + return new TailOption(TailOption.OptionType.BILLINGACCOUNT, billingAccount); + } + + /** Returns an option to specify a folder for the log entries to be tailed. */ + public static TailOption folder(String folder) { + return new TailOption(TailOption.OptionType.FOLDER, folder); + } + + /** Returns an option to specify a project for the log entries to be tailed. */ + public static TailOption project(String project) { + return new TailOption(TailOption.OptionType.PROJECT, project); + } + } + + /** Sets synchronicity {@link Synchronicity} of logging writes, defaults to asynchronous. */ + void setWriteSynchronicity(Synchronicity synchronicity); + + /** Retrieves current set synchronicity {@link Synchronicity} of logging writes. */ + Synchronicity getWriteSynchronicity(); + + /** + * Sets flush severity for asynchronous logging writes. It is disabled by default, enabled when + * this method is called with any {@link Severity} value other than {@link Severity#NONE}. Logs + * will be immediately written out for entries at or higher than flush severity. + * + *

            Enabling this can cause the leaking and hanging threads, see BUG(2796) BUG(3880). However + * you can explicitly call {@link #flush}. + * + *

            TODO: Enable this by default once functionality to trigger rpc is available in generated + * code. + */ + void setFlushSeverity(Severity flushSeverity); + + /* Retrieves flush severity for asynchronous logging writes. */ + Severity getFlushSeverity(); + + /** + * Creates a new sink. + * + *

            Example of creating a sink to export logs to a BigQuery dataset (in the {@link + * LoggingOptions#getProjectId()} project). + * + *

            +   * {
            +   *   @code
            +   *   String sinkName = "my_sink_name";
            +   *   String datasetName = "my_dataset";
            +   *   SinkInfo sinkInfo = SinkInfo.of(sinkName, DatasetDestination.of(datasetName));
            +   *   Sink sink = logging.create(sinkInfo);
            +   * }
            +   * 
            + * + * @return the created sink + * @throws LoggingException upon failure + */ + Sink create(SinkInfo sink); + + /** + * Creates a new metric. + * + *

            Example of creating a metric for logs with severity higher or equal to ERROR. + * + *

            +   * {
            +   *   @code
            +   *   String metricName = "my_metric_name";
            +   *   MetricInfo metricInfo = MetricInfo.of(metricName, "severity>=ERROR");
            +   *   Metric metric = logging.create(metricInfo);
            +   * }
            +   * 
            + * + * @return the created metric + * @throws LoggingException upon failure + */ + Metric create(MetricInfo metric); + + /** + * Creates a new exclusion in a specified parent resource. Only log entries belonging to that + * resource can be excluded. You can have up to 10 exclusions in a resource. + * + *

            Example of creating the exclusion: + * + *

            +   * {
            +   *   @code
            +   *   String exclusionName = "my_exclusion_name";
            +   *   Exclusion exclusion = Exclusion.of(exclusionName,
            +   *       "resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)");
            +   *   Exclusion exclusion = logging.create(exclusion);
            +   * }
            +   * 
            + * + * @return the created exclusion + * @throws LoggingException upon failure + */ + Exclusion create(Exclusion exclusion); + + /** + * Sends a request for creating a sink. This method returns a {@code ApiFuture} object to consume + * the result. {@link ApiFuture#get()} returns the created sink. + * + *

            Example of asynchronously creating a sink to export logs to a BigQuery dataset (in the + * {@link LoggingOptions#getProjectId()} project). + * + *

            {@code
            +   * String sinkName = "my_sink_name";
            +   * String datasetName = "my_dataset";
            +   * SinkInfo sinkInfo = SinkInfo.of(sinkName, DatasetDestination.of(datasetName));
            +   * ApiFuture future = logging.createAsync(sinkInfo);
            +   * // ...
            +   * Sink sink = future.get();
            +   * }
            + */ + ApiFuture createAsync(SinkInfo sink); + + /** + * Sends a request for creating a metric. This method returns a {@code ApiFuture} object to + * consume the result. {@link ApiFuture#get()} returns the created metric. + * + *

            Example of asynchronously creating a metric for logs with severity higher or equal to ERROR. + * + *

            {@code
            +   * String metricName = "my_metric_name";
            +   * MetricInfo metricInfo = MetricInfo.of(metricName, "severity>=ERROR");
            +   * ApiFuture future = logging.createAsync(metricInfo);
            +   * // ...
            +   * Metric metric = future.get();
            +   * }
            + */ + ApiFuture createAsync(MetricInfo metric); + + /** + * Sends a request to create the exclusion. This method returns an {@code ApiFuture} object to + * consume the result. {@link ApiFuture#get()} returns the created exclusion. + * + *

            Example of asynchronously creating the exclusion: + * + *

            {@code
            +   * String exclusionName = "my_exclusion_name";
            +   * Exclusion exclusion = Exclusion.of(exclusionName,
            +   *     "resource.type=gcs_bucket severity future = logging.createAsync(exclusion);
            +   * // ...
            +   * Exclusion exclusion = future.get();
            +   * }
            + */ + ApiFuture createAsync(Exclusion exclusion); + + /** + * Updates a sink or creates one if it does not exist. + * + *

            Example of updating a sink. + * + *

            {@code
            +   * String sinkName = "my_sink_name";
            +   * String datasetName = "my_dataset";
            +   * SinkInfo sinkInfo = SinkInfo.newBuilder(sinkName, DatasetDestination.of(datasetName))
            +   *     .setVersionFormat(SinkInfo.VersionFormat.V2).setFilter("severity>=ERROR").build();
            +   * Sink sink = logging.update(sinkInfo);
            +   * }
            + * + * @return the created sink + * @throws LoggingException upon failure + */ + Sink update(SinkInfo sink); + + /** + * Updates a metric or creates one if it does not exist. + * + *

            Example of updating a metric. + * + *

            {@code
            +   * String metricName = "my_metric_name";
            +   * MetricInfo metricInfo = MetricInfo.newBuilder(metricName, "severity>=ERROR").setDescription("new description")
            +   *     .build();
            +   * Metric metric = logging.update(metricInfo);
            +   * }
            + * + * @return the created metric + * @throws LoggingException upon failure + */ + Metric update(MetricInfo metric); + + /** + * Updates one or more properties of an existing exclusion. + * + *

            Example of updating the exclusion: + * + *

            {@code
            +   * String exclusionName = "my_exclusion_name";
            +   * Exclusion exclusion = Exclusion
            +   *     .newBuilder(exclusionName, "resource.type=gcs_bucket severity
            +   *
            +   * @return the updated exclusion
            +   * @throws LoggingException upon failure
            +   */
            +  Exclusion update(Exclusion exclusion);
            +
            +  /**
            +   * Sends a request for updating a sink (or creating it, if it does not exist). This method returns
            +   * a {@code ApiFuture} object to consume the result. {@link ApiFuture#get()} returns the
            +   * updated/created sink or {@code null} if not found.
            +   *
            +   * 

            Example of asynchronously updating a sink. + * + *

            {@code
            +   * String sinkName = "my_sink_name";
            +   * String datasetName = "my_dataset";
            +   * SinkInfo sinkInfo = SinkInfo.newBuilder(sinkName, DatasetDestination.of(datasetName))
            +   *     .setVersionFormat(SinkInfo.VersionFormat.V2).setFilter("severity>=ERROR").build();
            +   * ApiFuture future = logging.updateAsync(sinkInfo);
            +   * // ...
            +   * Sink sink = future.get();
            +   * }
            + */ + ApiFuture updateAsync(SinkInfo sink); + + /** + * Sends a request for updating a metric (or creating it, if it does not exist). This method + * returns a {@code ApiFuture} object to consume the result. {@link ApiFuture#get()} returns the + * updated/created metric or {@code null} if not found. + * + *

            Example of asynchronously updating a metric. + * + *

            {@code
            +   * String metricName = "my_metric_name";
            +   * MetricInfo metricInfo = MetricInfo.newBuilder(metricName, "severity>=ERROR").setDescription("new description")
            +   *     .build();
            +   * ApiFuture future = logging.updateAsync(metricInfo);
            +   * // ...
            +   * Metric metric = future.get();
            +   * }
            + */ + ApiFuture updateAsync(MetricInfo metric); + + /** + * Sends a request to change one or more properties of an existing exclusion. This method returns + * an {@code ApiFuture} object to consume the result. {@link ApiFuture#get()} returns the updated + * exclusion or {@code null} if not found. + * + *

            Example of asynchronous exclusion update: + * + *

            {@code
            +   * String exclusionName = "my_exclusion_name";
            +   * Exclusion exclusion = Exclusion
            +   *     .newBuilder(exclusionName, "resource.type=gcs_bucket severity future = logging.updateAsync(exclusion);
            +   * // ...
            +   * Exclusion exclusion = future.get();
            +   * }
            + */ + ApiFuture updateAsync(Exclusion exclusion); + + /** + * Returns the requested sink or {@code null} if not found. + * + *

            Example of getting a sink. + * + *

            {@code
            +   * String sinkName = "my_sink_name";
            +   * Sink sink = logging.getSink(sinkName);
            +   * if (sink == null) {
            +   *   // sink was not found
            +   * }
            +   * }
            + * + * @throws LoggingException upon failure + */ + Sink getSink(String sink); + + /** + * Sends a request for getting a sink. This method returns a {@code ApiFuture} object to consume + * the result. {@link ApiFuture#get()} returns the requested sink or {@code null} if not found. + * + *

            Example of asynchronously getting a sink. + * + *

            {@code
            +   * String sinkName = "my_sink_name";
            +   * ApiFuture future = logging.getSinkAsync(sinkName);
            +   * // ...
            +   * Sink sink = future.get();
            +   * if (sink == null) {
            +   *   // sink was not found
            +   * }
            +   * }
            + * + * @throws LoggingException upon failure + */ + ApiFuture getSinkAsync(String sink); + + /** + * Lists the sinks. This method returns a {@link Page} object that can be used to consume + * paginated results. Use {@link ListOption} to specify the page size or the page token from which + * to start listing sinks. + * + *

            Example of listing sinks, specifying the page size. + * + *

            {@code
            +   * Page sinks = logging.listSinks(ListOption.pageSize(100));
            +   * Iterator sinkIterator = sinks.iterateAll().iterator();
            +   * while (sinkIterator.hasNext()) {
            +   *   Sink sink = sinkIterator.next();
            +   *   // do something with the sink
            +   * }
            +   * }
            + * + * @throws LoggingException upon failure + */ + Page listSinks(ListOption... options); + + /** + * Sends a request for listing sinks. This method returns a {@code ApiFuture} object to consume + * the result. {@link ApiFuture#get()} returns an {@link AsyncPage} object that can be used to + * asynchronously handle paginated results. Use {@link ListOption} to specify the page size or the + * page token from which to start listing sinks. + * + *

            Example of asynchronously listing sinks, specifying the page size. + * + *

            {@code
            +   * ApiFuture> future = logging.listSinksAsync(ListOption.pageSize(100));
            +   * // ...
            +   * AsyncPage sinks = future.get();
            +   * Iterator sinkIterator = sinks.iterateAll().iterator();
            +   * while (sinkIterator.hasNext()) {
            +   *   Sink sink = sinkIterator.next();
            +   *   // do something with the sink
            +   * }
            +   * }
            + */ + ApiFuture> listSinksAsync(ListOption... options); + + /** + * Deletes the requested sink. + * + *

            Example of deleting a sink. + * + *

            {@code
            +   * String sinkName = "my_sink_name";
            +   * boolean deleted = logging.deleteSink(sinkName);
            +   * if (deleted) {
            +   *   // the sink was deleted
            +   * } else {
            +   *   // the sink was not found
            +   * }
            +   * }
            + * + * @return {@code true} if the sink was deleted, {@code false} if it was not found + */ + boolean deleteSink(String sink); + + /** + * Sends a request for deleting a sink. This method returns a {@code ApiFuture} object to consume + * the result. {@link ApiFuture#get()} returns {@code true} if the sink was deleted, {@code false} + * if it was not found. + * + *

            Example of asynchronously deleting a sink. + * + *

            {@code
            +   * String sinkName = "my_sink_name";
            +   * ApiFuture future = logging.deleteSinkAsync(sinkName);
            +   * // ...
            +   * boolean deleted = future.get();
            +   * if (deleted) {
            +   *   // the sink was deleted
            +   * } else {
            +   *   // the sink was not found
            +   * }
            +   * }
            + */ + ApiFuture deleteSinkAsync(String sink); + + /** + * Lists the log names. This method returns a {@link Page} object that can be used to consume + * paginated results. Use {@link ListOption} to specify the page size or the page token from which + * to start listing logs. + * + *

            Example of listing log names, specifying the page size. + * + *

            {@code
            +   * Page logNames = logging.listLogs(ListOption.pageSize(100));
            +   * Iterator logIterator = logNames.iterateAll().iterator();
            +   * while (logIterator.hasNext()) {
            +   *   String logName = logIterator.next();
            +   *   // do something with the log name
            +   * }
            +   * }
            + * + * @throws LoggingException upon failure + */ + default Page listLogs(ListOption... options) { + throw new UnsupportedOperationException( + "method listLogs() does not have default implementation"); + } + + /** + * Sends a request for listing log names. This method returns a {@code ApiFuture} object to + * consume the result. {@link ApiFuture#get()} returns an {@link AsyncPage} object that can be + * used to asynchronously handle paginated results. Use {@link ListOption} to specify the page + * size or the page token from which to start listing log names. + * + *

            Example of asynchronously listing log names, specifying the page size. + * + *

            {@code
            +   * ApiFuture> future = logging.listLogsAsync(ListOption.pageSize(100));
            +   * // ...
            +   * AsyncPage logNames = future.get();
            +   * Iterator logIterator = logNames.iterateAll().iterator();
            +   * while (logIterator.hasNext()) {
            +   *   String logName = logIterator.next();
            +   *   // do something with the log name
            +   * }
            +   * }
            + */ + default ApiFuture> listLogsAsync(ListOption... options) { + throw new UnsupportedOperationException( + "method listLogsAsync() does not have default implementation"); + } + + /** + * Deletes a log and all its log entries. The log will reappear if new entries are written to it. + * + *

            Example of deleting a log. + * + *

            {@code
            +   * String logName = "my_log_name";
            +   * boolean deleted = logging.deleteLog(logName);
            +   * if (deleted) {
            +   *   // the log was deleted
            +   * } else {
            +   *   // the log was not found
            +   * }
            +   * }
            + * + * @return {@code true} if the log was deleted, {@code false} if it was not found + */ + boolean deleteLog(String log); + + /** + * Deletes a log and all its log entries for given log destination (see 'logName' parameter in + * https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry). The log will reappear if + * new entries are written to it. + * + *

            Example of deleting a log by folder destination. + * + *

            {@code
            +   * String logName = "my_log_name";
            +   * String folder = "my_folder";
            +   * boolean deleted = logging.deleteLog(logName, LogDestinationName.folder(folder));
            +   * if (deleted) {
            +   *   // the log was deleted
            +   * } else {
            +   *   // the log was not found
            +   * }
            +   * }
            + * + * @return {@code true} if the log was deleted, {@code false} if it was not found + */ + default boolean deleteLog(String log, LogDestinationName destination) { + throw new UnsupportedOperationException( + "method deleteLog() does not have default implementation"); + } + + /** + * Sends a request for deleting a log and all its log entries for given log destination (see + * 'logName' parameter in https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry). + * This method returns a {@code ApiFuture} object to consume the result. {@link ApiFuture#get()} + * returns {@code true} if the log was deleted, {@code false} if it was not found. + * + *

            Example of asynchronously deleting a log by folder destination. + * + *

            {@code
            +   * String logName = "my_log_name";
            +   * String folder = "my_folder";
            +   * ApiFuture future = logging.deleteLogAsync(logName, LogDestinationName.folder(folder));
            +   * // ...
            +   * boolean deleted = future.get();
            +   * if (deleted) {
            +   *   // the log was deleted
            +   * } else {
            +   *   // the log was not found
            +   * }
            +   * }
            + */ + default ApiFuture deleteLogAsync(String log, LogDestinationName destination) { + throw new UnsupportedOperationException( + "method deleteLogAsync() does not have default implementation"); + } + + /** + * Sends a request for deleting a log and all its log entries. This method returns a {@code + * ApiFuture} object to consume the result. {@link ApiFuture#get()} returns {@code true} if the + * log was deleted, {@code false} if it was not found. + * + *

            Example of asynchronously deleting a log. + * + *

            {@code
            +   * String logName = "my_log_name";
            +   * ApiFuture future = logging.deleteLogAsync(logName);
            +   * // ...
            +   * boolean deleted = future.get();
            +   * if (deleted) {
            +   *   // the log was deleted
            +   * } else {
            +   *   // the log was not found
            +   * }
            +   * }
            + */ + ApiFuture deleteLogAsync(String log); + + /** + * Lists the monitored resource descriptors used by Cloud Logging. This method returns a {@link + * Page} object that can be used to consume paginated results. Use {@link ListOption} to specify + * the page size or the page token from which to start listing resource descriptors. + * + *

            Example of listing monitored resource descriptors, specifying the page size. + * + *

            {@code
            +   * Page descriptors = logging
            +   *     .listMonitoredResourceDescriptors(ListOption.pageSize(100));
            +   * Iterator descriptorIterator = descriptors.iterateAll().iterator();
            +   * while (descriptorIterator.hasNext()) {
            +   *   MonitoredResourceDescriptor descriptor = descriptorIterator.next();
            +   *   // do something with the descriptor
            +   * }
            +   * }
            + * + * @throws LoggingException upon failure + */ + Page listMonitoredResourceDescriptors(ListOption... options); + + /** + * Sends a request for listing monitored resource descriptors used by Cloud Logging. This method + * returns a {@code ApiFuture} object to consume the result. {@link ApiFuture#get()} returns an + * {@link AsyncPage} object that can be used to asynchronously handle paginated results. Use + * {@link ListOption} to specify the page size or the page token from which to start listing + * resource descriptors. + * + *

            Example of asynchronously listing monitored resource descriptors, specifying the page size. + * + *

            {@code
            +   * ApiFuture> future = logging
            +   *     .listMonitoredResourceDescriptorsAsync(ListOption.pageSize(100));
            +   * // ...
            +   * AsyncPage descriptors = future.get();
            +   * Iterator descriptorIterator = descriptors.iterateAll().iterator();
            +   * while (descriptorIterator.hasNext()) {
            +   *   MonitoredResourceDescriptor descriptor = descriptorIterator.next();
            +   *   // do something with the descriptor
            +   * }
            +   * }
            + */ + ApiFuture> listMonitoredResourceDescriptorsAsync( + ListOption... options); + + /** + * Returns the requested metric or {@code null} if not found. + * + *

            Example of getting a metric. + * + *

            {@code
            +   * String metricName = "my_metric_name";
            +   * Metric metric = logging.getMetric(metricName);
            +   * if (metric == null) {
            +   *   // metric was not found
            +   * }
            +   * }
            + * + * @throws LoggingException upon failure + */ + Metric getMetric(String metric); + + /** + * Sends a request for getting a metric. This method returns a {@code ApiFuture} object to consume + * the result. {@link ApiFuture#get()} returns the requested metric or {@code null} if not found. + * + *

            Example of asynchronously getting a metric. + * + *

            {@code
            +   * String metricName = "my_metric_name";
            +   * ApiFuture future = logging.getMetricAsync(metricName);
            +   * // ...
            +   * Metric metric = future.get();
            +   * if (metric == null) {
            +   *   // metric was not found
            +   * }
            +   * }
            + * + * @throws LoggingException upon failure + */ + ApiFuture getMetricAsync(String metric); + + /** + * Lists the metrics. This method returns a {@link Page} object that can be used to consume + * paginated results. Use {@link ListOption} to specify the page size or the page token from which + * to start listing metrics. + * + *

            Example of listing metrics, specifying the page size. + * + *

            {@code
            +   * Page metrics = logging.listMetrics(ListOption.pageSize(100));
            +   * Iterator metricIterator = metrics.iterateAll().iterator();
            +   * while (metricIterator.hasNext()) {
            +   *   Metric metric = metricIterator.next();
            +   *   // do something with the metric
            +   * }
            +   * }
            + * + * @throws LoggingException upon failure + */ + Page listMetrics(ListOption... options); + + /** + * Sends a request for listing metrics. This method returns a {@code ApiFuture} object to consume + * the result. {@link ApiFuture#get()} returns an {@link AsyncPage} object that can be used to + * asynchronously handle paginated results. Use {@link ListOption} to specify the page size or the + * page token from which to start listing metrics. + * + *

            Example of asynchronously listing metrics, specifying the page size. + * + *

            {@code
            +   * ApiFuture> future = logging.listMetricsAsync(ListOption.pageSize(100));
            +   * // ...
            +   * AsyncPage metrics = future.get();
            +   * Iterator metricIterator = metrics.iterateAll().iterator();
            +   * while (metricIterator.hasNext()) {
            +   *   Metric metric = metricIterator.next();
            +   *   // do something with the metric
            +   * }
            +   * }
            + */ + ApiFuture> listMetricsAsync(ListOption... options); + + /** + * Deletes the requested metric. + * + *

            Example of deleting a metric. + * + *

            {@code
            +   * String metricName = "my_metric_name";
            +   * boolean deleted = logging.deleteMetric(metricName);
            +   * if (deleted) {
            +   *   // the metric was deleted
            +   * } else {
            +   *   // the metric was not found
            +   * }
            +   * }
            + * + * @return {@code true} if the metric was deleted, {@code false} if it was not found + */ + boolean deleteMetric(String metric); + + /** + * Sends a request for deleting a metric. This method returns a {@code ApiFuture} object to + * consume the result. {@link ApiFuture#get()} returns {@code true} if the metric was deleted, + * {@code false} if it was not found. + * + *

            Example of asynchronously deleting a metric. + * + *

            {@code
            +   * String metricName = "my_metric_name";
            +   * ApiFuture future = logging.deleteMetricAsync(metricName);
            +   * // ...
            +   * boolean deleted = future.get();
            +   * if (deleted) {
            +   *   // the metric was deleted
            +   * } else {
            +   *   // the metric was not found
            +   * }
            +   * }
            + */ + ApiFuture deleteMetricAsync(String metric); + + /** + * Gets the description of an exclusion or {@code null} if not found. + * + *

            Example of getting the description of an exclusion: + * + *

            {@code
            +   * String exclusionName = "my_exclusion_name";
            +   * Exclusion exclusion = logging.getExclusion(exclusionName);
            +   * if (exclusion == null) {
            +   *   // exclusion was not found
            +   * }
            +   * }
            + * + * @throws LoggingException upon failure + */ + Exclusion getExclusion(String exclusion); + + /** + * Sends a request to get the description of an exclusion . This method returns an {@code + * ApiFuture} object to consume the result. {@link ApiFuture#get()} returns the requested + * exclusion or {@code null} if not found. + * + *

            Example of asynchronously getting the exclusion: + * + *

            {@code
            +   * String exclusionName = "my_exclusion_name";
            +   * ApiFuture future = logging.getExclusionAsync(exclusionName);
            +   * // ...
            +   * Exclusion exclusion = future.get();
            +   * if (exclusion == null) {
            +   *   // exclusion was not found
            +   * }
            +   * }
            + * + * @throws LoggingException upon failure + */ + ApiFuture getExclusionAsync(String exclusion); + + /** + * Deletes the requested exclusion. + * + *

            Example of deleting the exclusion: + * + *

            {@code
            +   * String exclusionName = "my_exclusion_name";
            +   * boolean deleted = logging.deleteExclusion(exclusionName);
            +   * if (deleted) {
            +   *   // the exclusion was deleted
            +   * } else {
            +   *   // the exclusion was not found
            +   * }
            +   * }
            + * + * @return {@code true} if the exclusion was deleted, {@code false} if it was not found + */ + boolean deleteExclusion(String exclusion); + + /** + * Sends a request to delete an exclusion. This method returns an {@code ApiFuture} object to + * consume the result. {@link ApiFuture#get()} returns {@code true} if the exclusion was deleted, + * {@code false} if it was not found. + * + *

            Example of asynchronously deleting the exclusion: + * + *

            {@code
            +   * String exclusionName = "my_exclusion_name";
            +   * ApiFuture future = logging.deleteExclusionAsync(metricName);
            +   * // ...
            +   * boolean deleted = future.get();
            +   * if (deleted) {
            +   *   // the exclusion was deleted
            +   * } else {
            +   *   // the exclusion was not found
            +   * }
            +   * }
            + */ + ApiFuture deleteExclusionAsync(String exclusion); + + /** + * Lists the exclusion. This method returns a {@link Page} object that can be used to consume + * paginated results. Use {@link ListOption} to specify the page size or the page token from which + * to start listing exclusion. + * + *

            Example of listing exclusions, specifying the page size: + * + *

            {@code
            +   * Page exclusions = logging.listMetrics(ListOption.pageSize(100));
            +   * Iterator exclusionIterator = exclusions.iterateAll().iterator();
            +   * while (exclusionIterator.hasNext()) {
            +   *   Exclusion exclusion = exclusionIterator.next();
            +   *   // do something with the exclusion
            +   * }
            +   * }
            + * + * @throws LoggingException upon failure + */ + Page listExclusions(ListOption... options); + + /** + * Sends a request for listing exclusions. This method returns an {@code ApiFuture} object to + * consume the result. {@link ApiFuture#get()} returns an {@link AsyncPage} object that can be + * used to asynchronously handle paginated results. Use {@link ListOption} to specify the page + * size or the page token from which to start listing exclusions. + * + *

            Example of asynchronously listing exclusions, specifying the page size: + * + *

            {@code
            +   * ApiFuture> future = logging.listExclusionsAsync(ListOption.pageSize(100));
            +   * // ...
            +   * AsyncPage exclusions = future.get();
            +   * Iterator exclusionIterator = exclusions.iterateAll().iterator();
            +   * while (exclusionIterator.hasNext()) {
            +   *   Exclusion exclusion = exclusionIterator.next();
            +   *   // do something with the exclusion
            +   * }
            +   * }
            + */ + ApiFuture> listExclusionsAsync(ListOption... options); + + /** + * Flushes any pending asynchronous logging writes. Logs are automatically flushed based on time + * and message count that be configured via {@link com.google.api.gax.batching.BatchingSettings}, + * Logs are also flushed if enabled, at or above flush severity, see {@link #setFlushSeverity}. + * Logging frameworks require support for an explicit flush. See usage in the java.util.logging + * handler{@link LoggingHandler}. + */ + void flush(); + + /** + * Sends a request to log entries to Cloud Logging. Use {@link WriteOption#logName(String)} to + * provide a log name for those entries that do not specify one. Use {@link + * WriteOption#resource(MonitoredResource)} to provide a monitored resource for those entries that + * do not specify one. Use {@link WriteOption#labels(Map)} to provide some labels to be added to + * every entry in {@code logEntries}. + * + *

            Example of writing log entries and providing a default log name and monitored resource. + * + *

            {@code
            +   * String logName = "my_log_name";
            +   * List entries = new ArrayList<>();
            +   * entries.add(LogEntry.of(StringPayload.of("Entry payload")));
            +   * Map jsonMap = new HashMap<>();
            +   * jsonMap.put("key", "value");
            +   * entries.add(LogEntry.of(JsonPayload.of(jsonMap)));
            +   * logging.write(entries, WriteOption.logName(logName),
            +   *     WriteOption.resource(MonitoredResource.newBuilder("global").build()));
            +   * }
            + */ + void write(Iterable logEntries, WriteOption... options); + + /** + * Lists log entries. This method returns a {@link Page} object that can be used to consume + * paginated results. Use {@link EntryListOption#pageSize(int)} to specify the page size. Use + * {@link EntryListOption#pageToken(String)} to specify the page token from which to start listing + * entries. Use {@link EntryListOption#sortOrder(SortingField, SortingOrder)} to sort log entries + * according to your preferred order (default is most-recent last). Use {@link + * EntryListOption#filter(String)} to filter listed log entries. By default a 24 hour filter is + * applied. + * + *

            Example of listing log entries for a specific log. + * + *

            {@code
            +   * String filter = "logName=projects/my_project_id/logs/my_log_name";
            +   * Page entries = logging.listLogEntries(EntryListOption.filter(filter));
            +   * Iterator entryIterator = entries.iterateAll().iterator();
            +   * while (entryIterator.hasNext()) {
            +   *   LogEntry entry = entryIterator.next();
            +   *   // do something with the entry
            +   * }
            +   * }
            + * + * @throws LoggingException upon failure + */ + Page listLogEntries(EntryListOption... options); + + /** + * Sends a request for listing log entries. This method returns a {@code ApiFuture} object to + * consume the result. {@link ApiFuture#get()} returns an {@link AsyncPage} object that can be + * used to asynchronously handle paginated results. Use {@link EntryListOption#pageSize(int)} to + * specify the page size. Use {@link EntryListOption#pageToken(String)} to specify the page token + * from which to start listing entries. Use {@link EntryListOption#sortOrder(SortingField, + * SortingOrder)} to sort log entries according to your preferred order (default is most-recent + * last). Use {@link EntryListOption#filter(String)} to filter listed log entries. By default a 24 + * hour filter is applied. + * + *

            Example of asynchronously listing log entries for a specific log. + * + *

            {@code
            +   * String filter = "logName=projects/my_project_id/logs/my_log_name";
            +   * ApiFuture> future = logging.listLogEntriesAsync(EntryListOption.filter(filter));
            +   * // ...
            +   * AsyncPage entries = future.get();
            +   * Iterator entryIterator = entries.iterateAll().iterator();
            +   * while (entryIterator.hasNext()) {
            +   *   LogEntry entry = entryIterator.next();
            +   *   // do something with the entry
            +   * }
            +   * }
            + * + * @throws LoggingException upon failure + */ + ApiFuture> listLogEntriesAsync(EntryListOption... options); + + /** + * Sends a request to stream fresh log entries. The method returns a {@code LogEntryServerStream} + * object to iterate through the returned stream of the log entries. Use + * EntryListOption#bufferWindow(String)} to specify amount of time to buffer log entries at the + * server before being returned. entries. Use {@link TailOption#filter(String)} to filter tailed + * log entries. + * + *

            Example of streaming log entries for a specific project. + * + *

            {@code
            +   * LogEntryServerStream stream = logging.tailLogEntries(TailOption.project("my_project_id"));
            +   * Iterator it = stream.iterator();
            +   * while (it.hasNext()) {
            +   *   // do something with entry
            +   *   // call stream.cancel(); to stop streaming
            +   * }
            +   * }
            + */ + @BetaApi("The surface for the tail streaming is not stable yet and may change in the future.") + LogEntryServerStream tailLogEntries(TailOption... options); + + /** + * Populates metadata fields of the immutable collection of {@link LogEntry} items. Only empty + * fields are populated. The {@link SourceLocation} is populated only for items with the severity + * set to {@link Severity#DEBUG}. The information about {@link HttpRequest}, trace and span Id is + * retrieved using {@link ContextHandler}. + * + * @param logEntries an immutable collection of {@link LogEntry} items. + * @param customResource a customized instance of the {@link MonitoredResource}. If this parameter + * is {@code null} then the new instance will be generated using {@link + * MonitoredResourceUtil#getResource(String, String)}. + * @param exclusionClassPaths a list of exclussion class path prefixes. If left empty then {@link + * SourceLocation} instance is built based on the caller's stack trace information. Otherwise, + * the information from the first {@link StackTraceElement} along the call stack which class + * name does not start with any not {@code null} exclusion class paths is used. + * @return A collection of {@link LogEntry} items composed from the {@code logEntries} parameter + * with populated metadata fields. + */ + default Iterable populateMetadata( + Iterable logEntries, + MonitoredResource customResource, + String... exclusionClassPaths) { + throw new UnsupportedOperationException( + "method populateMetadata() does not have default implementation"); + } +} diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingConfig.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingConfig.java new file mode 100644 index 000000000000..b53f6ed84a43 --- /dev/null +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingConfig.java @@ -0,0 +1,186 @@ +/* + * Copyright 2017 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.cloud.logging; + +import static com.google.common.base.MoreObjects.firstNonNull; + +import com.google.cloud.MonitoredResource; +import com.google.common.base.Splitter; +import com.google.common.collect.ImmutableList; +import java.util.ArrayList; +import java.util.List; +import java.util.Optional; +import java.util.logging.Filter; +import java.util.logging.Formatter; +import java.util.logging.Level; +import java.util.logging.LogManager; +import java.util.logging.SimpleFormatter; + +class LoggingConfig { + + private final LogManager manager = LogManager.getLogManager(); + private final String className; + private static final String FLUSH_LEVEL_TAG = "flushLevel"; + private static final String LOG_FILENAME_TAG = "log"; + private static final String LOG_LEVEL_TAG = "level"; + private static final String FILTER_TAG = "filter"; + private static final String FORMATTER_TAG = "formatter"; + private static final String SYNCHRONICITY_TAG = "synchronicity"; + private static final String RESOURCE_TYPE_TAG = "resourceType"; + private static final String ENHANCERS_TAG = "enhancers"; + private static final String USE_INHERITED_CONTEXT = "useInheritedContext"; + private static final String AUTO_POPULATE_METADATA = "autoPopulateMetadata"; + private static final String REDIRECT_TO_STDOUT = "redirectToStdout"; + private static final String LOG_TARGET = "logTarget"; + + public LoggingConfig(String className) { + this.className = className; + } + + Level getFlushLevel() { + return getLevelProperty(FLUSH_LEVEL_TAG, LoggingLevel.ERROR); + } + + String getLogName() { + return getProperty(LOG_FILENAME_TAG, "java.log"); + } + + Level getLogLevel() { + return getLevelProperty(LOG_LEVEL_TAG, LoggingLevel.INFO); + } + + Filter getFilter() { + return getFilterProperty(FILTER_TAG, null); + } + + Synchronicity getSynchronicity() { + String synchronicityStr = getProperty(SYNCHRONICITY_TAG); + try { + return Synchronicity.valueOf(synchronicityStr); + } catch (RuntimeException ex) { + // If we cannot create the Synchronicity we fall back to default value + } + return Synchronicity.ASYNC; + } + + Formatter getFormatter() { + return getFormatterProperty(FORMATTER_TAG, new SimpleFormatter()); + } + + Boolean getAutoPopulateMetadata() { + return getBooleanProperty(AUTO_POPULATE_METADATA, null); + } + + Boolean getRedirectToStdout() { + return getBooleanProperty(REDIRECT_TO_STDOUT, null); + } + + Optional getLogTarget() { + return Optional.ofNullable(getProperty(LOG_TARGET)).map(LoggingHandler.LogTarget::valueOf); + } + + MonitoredResource getMonitoredResource(String projectId) { + String resourceType = getProperty(RESOURCE_TYPE_TAG, ""); + return MonitoredResourceUtil.getResource(projectId, resourceType); + } + + List getEnhancers() { + String list = getProperty(ENHANCERS_TAG); + try { + List enhancers = new ArrayList<>(); + if (list != null) { + Iterable items = Splitter.on(',').split(list); + for (String eName : items) { + Class clazz = + ClassLoader.getSystemClassLoader().loadClass(eName).asSubclass(LoggingEnhancer.class); + enhancers.add(clazz.getDeclaredConstructor().newInstance()); + } + } + return ImmutableList.copyOf(enhancers); + } catch (Exception ex) { + // If we cannot create the enhancers we fall back to the default + } + return ImmutableList.of(); + } + + /** + * Returns boolean value of the property {@code + * com.google.cloud.logging.context.ContextHandler.useInheritedContext}. If no value is defined or + * the property does not represent a valid boolean value returns {@code false}. + * + * @return {@code true} or {@code false} + */ + boolean getUseInheritedContext() { + String flag = getProperty(USE_INHERITED_CONTEXT, "FALSE"); + return Boolean.parseBoolean(flag); + } + + private String getProperty(String name, String defaultValue) { + return firstNonNull(getProperty(name), defaultValue); + } + + private String getProperty(String propertyName) { + return manager.getProperty(className + "." + propertyName); + } + + private Boolean getBooleanProperty(String name, Boolean defaultValue) { + String flag = getProperty(name); + if (flag != null) { + return Boolean.parseBoolean(flag); + } + return defaultValue; + } + + private Level getLevelProperty(String name, Level defaultValue) { + String stringLevel = getProperty(name); + if (stringLevel == null) { + return defaultValue; + } + try { + return Level.parse(stringLevel); + } catch (IllegalArgumentException ex) { + // If the level does not exist we fall back to default value + } + return defaultValue; + } + + private Filter getFilterProperty(String name, Filter defaultValue) { + String stringFilter = getProperty(name); + try { + if (stringFilter != null) { + Class clz = ClassLoader.getSystemClassLoader().loadClass(stringFilter); + return (Filter) clz.getDeclaredConstructor().newInstance(); + } + } catch (Exception ex) { + // If we cannot create the filter we fall back to default value + } + return defaultValue; + } + + private Formatter getFormatterProperty(String name, Formatter defaultValue) { + String stringFilter = getProperty(name); + try { + if (stringFilter != null) { + Class clz = ClassLoader.getSystemClassLoader().loadClass(stringFilter); + return (Formatter) clz.getDeclaredConstructor().newInstance(); + } + } catch (Exception ex) { + // If we cannot create the filter we fall back to default value + } + return defaultValue; + } +} diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingEnhancer.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingEnhancer.java new file mode 100644 index 000000000000..b73ef52dd7f5 --- /dev/null +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingEnhancer.java @@ -0,0 +1,22 @@ +/* + * Copyright 2017 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.cloud.logging; + +/** An enhancer for log entries. Used to add custom labels to the {@link LogEntry.Builder} */ +public interface LoggingEnhancer { + void enhanceLogEntry(LogEntry.Builder builder); +} diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingException.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingException.java new file mode 100644 index 000000000000..dda78090382c --- /dev/null +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingException.java @@ -0,0 +1,37 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.cloud.logging; + +import com.google.api.core.BetaApi; +import com.google.api.gax.rpc.ApiException; +import com.google.cloud.grpc.BaseGrpcServiceException; +import java.io.IOException; + +/** Logging service exception. */ +public final class LoggingException extends BaseGrpcServiceException { + + private static final long serialVersionUID = 449689219311927047L; + + public LoggingException(IOException ex, boolean idempotent) { + super(ex, idempotent); + } + + @BetaApi + public LoggingException(ApiException apiException) { + super(apiException); + } +} diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingFactory.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingFactory.java new file mode 100644 index 000000000000..d050e6e1cc8a --- /dev/null +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingFactory.java @@ -0,0 +1,22 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.cloud.logging; + +import com.google.cloud.ServiceFactory; + +/** An interface for Logging factories. */ +public interface LoggingFactory extends ServiceFactory {} diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingHandler.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingHandler.java new file mode 100644 index 000000000000..d1e56762ac10 --- /dev/null +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingHandler.java @@ -0,0 +1,521 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.cloud.logging; + +import static com.google.common.base.MoreObjects.firstNonNull; +import static java.util.Arrays.stream; + +import com.google.cloud.MonitoredResource; +import com.google.cloud.logging.Logging.WriteOption; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.Iterables; +import java.time.Instant; +import java.util.ArrayList; +import java.util.List; +import java.util.Optional; +import java.util.logging.ErrorManager; +import java.util.logging.Filter; +import java.util.logging.Formatter; +import java.util.logging.Handler; +import java.util.logging.Level; +import java.util.logging.LogRecord; +import java.util.logging.Logger; +import java.util.logging.SimpleFormatter; + +/** + * A logging handler that outputs logs generated with {@link java.util.logging.Logger} to Cloud + * Logging. + * + *

            Java logging levels (see {@link java.util.logging.Level}) are mapped to the following Google + * Cloud Logging severities: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
            Mapping of Java logging level to Cloud Logging severities
            Java LevelCloud Logging Severity
            SEVEREERROR
            WARNINGWARNING
            INFOINFO
            CONFIGINFO
            FINEDEBUG
            FINERDEBUG
            FINESTDEBUG
            + * + *

            Original Java logging levels are added as labels (with {@code levelName} and {@code + * levelValue} keys, respectively) to the corresponding Cloud Logging {@link LogEntry}. You can read + * entry labels using {@link LogEntry#getLabels()}. To use logging levels that correspond to Cloud + * Logging severities you can use {@link LoggingLevel}. + * + *

            Configuration: By default each {@code LoggingHandler} is initialized using the + * following {@code LogManager} configuration properties (that you can set in the {@code + * logging.properties} file). If properties are not defined (or have invalid values) then the + * specified default values are used. + * + *

              + *
            • {@code com.google.cloud.logging.LoggingHandler.log} the log name (defaults to {@code + * java.log}). + *
            • {@code com.google.cloud.logging.LoggingHandler.level} specifies the default level for the + * handler (defaults to {@code Level.INFO}). + *
            • {@code com.google.cloud.logging.LoggingHandler.filter} specifies the name of a {@link + * Filter} class to use (defaults to no filter). + *
            • {@code com.google.cloud.logging.LoggingHandler.formatter} specifies the name of a {@link + * Formatter} class to use (defaults to {@link SimpleFormatter}). + *
            • {@code com.google.cloud.logging.LoggingHandler.flushLevel} specifies the flush log level. + * When a log with this level is published, logs are transmitted to the Cloud Logging service + * (defaults to {@link LoggingLevel#ERROR}). + *
            • {@code com.google.cloud.logging.LoggingHandler.enhancers} specifies a comma separated list + * of {@link LoggingEnhancer} classes. This handler will call each enhancer list whenever it + * builds a {@link LogEntry} instance (defaults to empty list). + *
            • {@code com.google.cloud.logging.LoggingHandler.resourceType} the type name to use when + * creating the default {@link MonitoredResource} (defaults to auto-detected resource type, + * else "global"). + *
            • {@code com.google.cloud.logging.Synchronicity} the synchronicity of the write method to use + * to write logs to the Cloud Logging service (defaults to {@link Synchronicity#ASYNC}). + *
            • {@code com.google.cloud.logging.LoggingHandler.autoPopulateMetadata} is a boolean flag that + * opts-out the population of the log entries metadata before the logs are sent to Cloud + * Logging (defaults to {@code true}). + *
            • {@code com.google.cloud.logging.LoggingHandler.redirectToStdout} is a boolean flag that + * opts-in redirecting the output of the handler to STDOUT instead of ingesting logs to Cloud + * Logging using Logging API (defaults to {@code false}). Redirecting logs can be used in + * Google Cloud environments with installed logging agent to delegate log ingestions to the + * agent. Redirected logs are formatted as one line Json string following the structured + * logging guidelines. This flag is deprecated; use {@code + * com.google.cloud.logging.LoggingHandler.logTarget} instead. + *
            • {@code com.google.cloud.logging.LoggingHandler.logTarget} is an enumeration controlling log + * routing (defaults to {@code CLOUD_LOGGING}). If set to STDOUT or STDERR, logs will be + * printed to the corresponding stream in the Json format that can be parsed by the logging + * agent. If set to CLOUD_LOGGING, logs will be sent directly to the Google Cloud Logging API. + *
            + * + *

            To add a {@code LoggingHandler} to an existing {@link Logger} and be sure to avoid infinite + * recursion when logging, use the {@link #addHandler(Logger, LoggingHandler)} method. Alternatively + * you can add the handler via {@code logging.properties}. For example using the following line: + * + *

            + * {@code com.example.mypackage.handlers=com.google.cloud.logging.LoggingHandler}
            + * 
            + * + * @see Structured logging + */ +public class LoggingHandler extends Handler { + + private static final String LEVEL_NAME_KEY = "levelName"; + private static final String LEVEL_VALUE_KEY = "levelValue"; + + /** Where to send logs. */ + public enum LogTarget { + /** Sends logs to the Cloud Logging API. */ + CLOUD_LOGGING, + /** Sends JSON-formatted logs to stdout, for use with the Google Cloud logging agent. */ + STDOUT, + /** Sends JSON-formatted logs to stderr, for use with the Google Cloud logging agent. */ + STDERR + } + + private final List enhancers; + private final LoggingOptions loggingOptions; + + private volatile Logging logging; + + // Logs with the same severity with the base could be more efficiently sent to + // Cloud. + // Defaults to level of the handler or Level.FINEST if the handler is set to + // Level.ALL. + // Currently there is no way to modify the base level, see + // https://github.com/googleapis/google-cloud-java/issues/1740 . + private final Level baseLevel; + + private volatile Level flushLevel; + + private volatile Boolean autoPopulateMetadata; + private volatile LogTarget logTarget; + + private final WriteOption[] defaultWriteOptions; + + /** Creates a handler that publishes messages to Cloud Logging. */ + public LoggingHandler() { + this(null, null, null); + } + + /** + * Creates a handler that publishes messages to Cloud Logging. + * + * @param log the name of the log to which log entries are written + */ + public LoggingHandler(String log) { + this(log, null, null); + } + + /** + * Creates a handler that publishes messages to Cloud Logging. + * + * @param log the name of the log to which log entries are written + * @param options options for the Cloud Logging service + */ + public LoggingHandler(String log, LoggingOptions options) { + this(log, options, null); + } + + /** + * Creates a handler that publishes messages to Cloud Logging. + * + * @param log the name of the log to which log entries are written + * @param options options for the Cloud Logging service + * @param monitoredResource the monitored resource to which log entries refer. If it is null then + * a default resource is created based on the project ID and deployment environment. + */ + public LoggingHandler(String log, LoggingOptions options, MonitoredResource monitoredResource) { + this(log, options, monitoredResource, null, null); + } + + /** + * Creates a handler that publishes messages to Cloud Logging. + * + * @param log the name of the log to which log entries are written + * @param options options for the Cloud Logging service + * @param monitoredResource the monitored resource to which log entries refer. If it is null then + * a default resource is created based on the project ID and deployment environment. + * @param enhancers List of {@link LoggingEnhancer} instances used to enhance any{@link LogEntry} + * instances built by this handler. + */ + public LoggingHandler( + String log, + LoggingOptions options, + MonitoredResource monitoredResource, + List enhancers) { + this(log, options, monitoredResource, enhancers, null); + } + + /** + * Creates a handler that publishes messages to Cloud Logging. Auto-population of the logs + * metadata can be opted-out in {@code options} argument or in the configuration file. At least + * one flag {@link LoggingOptions} or {@link LoggingConfig} has to be explicitly set to {@code + * false} in order to opt out the metadata auto-population. + * + * @param log the name of the log to which log entries are written + * @param options options for the Cloud Logging service + * @param monitoredResource the monitored resource to which log entries refer. If it is null then + * a default resource is created based on the project ID and deployment environment. + * @param enhancers List of {@link LoggingEnhancer} instances used to enhance any{@link LogEntry} + * instances built by this handler. + * @param destination the log destination {@link LogDestinationName} (see 'logName' parameter in + * https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry) + */ + public LoggingHandler( + String log, + LoggingOptions options, + MonitoredResource monitoredResource, + List enhancers, + LogDestinationName destination) { + try { + loggingOptions = options != null ? options : LoggingOptions.getDefaultInstance(); + LoggingConfig config = new LoggingConfig(getClass().getName()); + setFilter(config.getFilter()); + setFormatter(config.getFormatter()); + Level level = config.getLogLevel(); + setLevel(level); + baseLevel = level.equals(Level.ALL) ? Level.FINEST : level; + flushLevel = config.getFlushLevel(); + Boolean f1 = loggingOptions.getAutoPopulateMetadata(); + Boolean f2 = config.getAutoPopulateMetadata(); + autoPopulateMetadata = isTrueOrNull(f1) && isTrueOrNull(f2); + logTarget = + config + .getLogTarget() + .orElse( + firstNonNull(config.getRedirectToStdout(), Boolean.FALSE) + ? LogTarget.STDOUT + : LogTarget.CLOUD_LOGGING); + String logName = log != null ? log : config.getLogName(); + MonitoredResource resource = + firstNonNull( + monitoredResource, config.getMonitoredResource(loggingOptions.getProjectId())); + List writeOptions = new ArrayList<>(); + writeOptions.add(WriteOption.logName(logName)); + if (resource != null) { + writeOptions.add(WriteOption.resource(resource)); + } + writeOptions.add( + WriteOption.labels( + ImmutableMap.of( + LEVEL_NAME_KEY, + baseLevel.getName(), + LEVEL_VALUE_KEY, + String.valueOf(baseLevel.intValue())))); + if (destination != null) { + writeOptions.add(WriteOption.destination(destination)); + } + defaultWriteOptions = Iterables.toArray(writeOptions, WriteOption.class); + + logging = loggingOptions.getService(); + logging.setFlushSeverity(severityFor(flushLevel)); + logging.setWriteSynchronicity(config.getSynchronicity()); + + this.enhancers = new ArrayList<>(); + + List enhancersParam = + firstNonNull(enhancers, firstNonNull(config.getEnhancers(), ImmutableList.of())); + + this.enhancers.addAll(enhancersParam); + + // In the following line getResourceEnhancers() never returns null (@NotNull + // attribute) + List loggingEnhancers = MonitoredResourceUtil.getResourceEnhancers(); + this.enhancers.addAll(loggingEnhancers); + } catch (RuntimeException ex) { + reportError(null, ex, ErrorManager.OPEN_FAILURE); + throw ex; + } + } + + @Override + public void publish(LogRecord record) { + // check that the log record should be logged + if (!isLoggable(record)) { + return; + } + // HACK warning: this logger doesn't work like normal loggers; the log calls are + // issued + // from another class instead of by itself, so it can't be configured off like + // normal + // loggers. We have to check the source class name instead. + if ("io.netty.handler.codec.http2.Http2FrameLogger".equals(record.getSourceClassName())) { + return; + } + LogEntry logEntry; + try { + logEntry = logEntryFor(record).build(); + } catch (RuntimeException ex) { + getErrorManager().error(null, ex, ErrorManager.FORMAT_FAILURE); + return; + } + if (logEntry != null) { + try { + Iterable logEntries = + logTarget == LogTarget.CLOUD_LOGGING + ? ImmutableList.of(logEntry) + : Instrumentation.populateInstrumentationInfo(ImmutableList.of(logEntry)).y(); + if (autoPopulateMetadata) { + logEntries = + logging.populateMetadata( + logEntries, getMonitoredResource(), "com.google.cloud.logging", "java"); + } + switch (logTarget) { + case STDOUT: + logEntries.forEach(log -> System.out.println(log.toStructuredJsonString())); + break; + case STDERR: + logEntries.forEach(log -> System.err.println(log.toStructuredJsonString())); + break; + case CLOUD_LOGGING: + logging.write(logEntries, defaultWriteOptions); + break; + } + } catch (RuntimeException ex) { + getErrorManager().error(null, ex, ErrorManager.WRITE_FAILURE); + } + } + } + + private MonitoredResource getMonitoredResource() { + Optional resourceOption = + stream(defaultWriteOptions) + .filter(o -> o.getOptionType() == WriteOption.OptionType.RESOURCE) + .findFirst(); + if (resourceOption.isPresent()) { + return (MonitoredResource) resourceOption.get().getValue(); + } + return null; + } + + protected LogEntry.Builder logEntryFor(LogRecord record) { + String payload = getFormatter().format(record); + Level level = record.getLevel(); + LogEntry.Builder builder = + LogEntry.newBuilder(Payload.StringPayload.of(payload)) + .setTimestamp(Instant.ofEpochMilli(record.getMillis())) + .setSeverity(severityFor(level)); + + if (!baseLevel.equals(level)) { + builder + .addLabel("levelName", level.getName()) + .addLabel("levelValue", String.valueOf(level.intValue())); + } + + for (LoggingEnhancer enhancer : enhancers) { + enhancer.enhanceLogEntry(builder); + } + return builder; + } + + @Override + public void flush() { + try { + logging.flush(); + } catch (RuntimeException ex) { + getErrorManager().error(null, ex, ErrorManager.FLUSH_FAILURE); + } + } + + /** Closes the handler and the associated {@link Logging} object. */ + @Override + public synchronized void close() { + if (logging != null) { + try { + logging.close(); + } catch (Exception ex) { + // ignore + } + } + logging = null; + } + + /** Get the flush log level. */ + public Level getFlushLevel() { + return flushLevel; + } + + /** + * Sets minimum logging level to log immediately and flush any pending writes. + * + * @param flushLevel minimum log level to trigger flush + */ + public void setFlushLevel(Level flushLevel) { + this.flushLevel = flushLevel; + logging.setFlushSeverity(severityFor(flushLevel)); + } + + /** + * Sets synchronicity of logging writes. By default, writes are asynchronous. + * + * @param synchronicity {@link Synchronicity} + */ + public void setSynchronicity(Synchronicity synchronicity) { + logging.setWriteSynchronicity(synchronicity); + } + + /** Get the flush log level. */ + public Synchronicity getSynchronicity() { + return logging.getWriteSynchronicity(); + } + + /** Sets the metadata auto population flag. */ + public void setAutoPopulateMetadata(boolean value) { + this.autoPopulateMetadata = value; + } + + /** Gets the metadata auto population flag. */ + public Boolean getAutoPopulateMetadata() { + return this.autoPopulateMetadata; + } + + /** + * Enable/disable redirection to STDOUT. If set to {@code true}, logs will be printed to STDOUT in + * the Json format that can be parsed by the logging agent. If set to {@code false}, logs will be + * ingested to Cloud Logging by calling Logging API. + * + *

            This method is mutually exclusive with {@link #setLogTarget(LogTarget)}. + * + * @deprecated Use {@link #setLogTarget(LogTarget)}. + */ + @Deprecated + public void setRedirectToStdout(boolean value) { + this.logTarget = value ? LogTarget.STDOUT : LogTarget.CLOUD_LOGGING; + } + + /* + * @deprecated Use {@link #getLogTarget()}. + */ + @Deprecated + public Boolean getRedirectToStdout() { + return this.logTarget == LogTarget.STDOUT; + } + + /** + * Configure the destination for ingested logs. If set to STDOUT or STDERR, logs will be printed + * to the corresponding stream in the Json format that can be parsed by the logging agent. If set + * to CLOUD_LOGGING, logs will be sent directly to the Google Cloud Logging API. + * + *

            This method is mutually exclusive with {@link #setRedirectToStdout(boolean)}. + */ + public void setLogTarget(LogTarget value) { + this.logTarget = value; + } + + public LogTarget getLogTarget() { + return logTarget; + } + + /** + * Adds the provided {@code LoggingHandler} to {@code logger}. Use this method to register Cloud + * Logging handlers instead of {@link Logger#addHandler(Handler)} to avoid infinite recursion when + * logging. + */ + public static void addHandler(Logger logger, LoggingHandler handler) { + logger.addHandler(handler); + } + + private static Severity severityFor(Level level) { + if (level instanceof LoggingLevel) { + return ((LoggingLevel) level).getSeverity(); + } + // Choose the severity based on Level range. + // The assumption is that Level values below maintain same numeric value + int value = level.intValue(); + if (value <= Level.FINE.intValue()) { + return Severity.DEBUG; + } else if (value <= Level.INFO.intValue()) { + return Severity.INFO; + } else if (value <= Level.WARNING.intValue()) { + return Severity.WARNING; + } else if (value <= Level.SEVERE.intValue()) { + return Severity.ERROR; + } else if (value == Level.OFF.intValue()) { + return Severity.NONE; + } + return Severity.DEFAULT; + } + + private static boolean isTrueOrNull(Boolean b) { + return b == null || b.equals(Boolean.TRUE); + } +} diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingImpl.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingImpl.java new file mode 100644 index 000000000000..20bf4b507981 --- /dev/null +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingImpl.java @@ -0,0 +1,1174 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.cloud.logging; + +import static com.google.api.client.util.Preconditions.checkArgument; +import static com.google.cloud.logging.Logging.EntryListOption.OptionType.ORDER_BY; +import static com.google.cloud.logging.Logging.ListOption.OptionType.PAGE_SIZE; +import static com.google.cloud.logging.Logging.ListOption.OptionType.PAGE_TOKEN; +import static com.google.cloud.logging.Logging.WriteOption.OptionType.LABELS; +import static com.google.cloud.logging.Logging.WriteOption.OptionType.LOG_DESTINATION; +import static com.google.cloud.logging.Logging.WriteOption.OptionType.LOG_NAME; +import static com.google.cloud.logging.Logging.WriteOption.OptionType.PARTIAL_SUCCESS; +import static com.google.cloud.logging.Logging.WriteOption.OptionType.RESOURCE; +import static com.google.common.base.Preconditions.checkNotNull; + +import com.google.api.client.util.Strings; +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutureCallback; +import com.google.api.core.ApiFutures; +import com.google.api.gax.paging.AsyncPage; +import com.google.api.gax.paging.Page; +import com.google.api.gax.rpc.BidiStream; +import com.google.cloud.AsyncPageImpl; +import com.google.cloud.BaseService; +import com.google.cloud.MonitoredResource; +import com.google.cloud.MonitoredResourceDescriptor; +import com.google.cloud.PageImpl; +import com.google.cloud.Tuple; +import com.google.cloud.logging.ContextHandler.ContextPriority; +import com.google.cloud.logging.spi.v2.LoggingRpc; +import com.google.common.annotations.VisibleForTesting; +import com.google.common.base.Ascii; +import com.google.common.base.Function; +import com.google.common.base.Throwables; +import com.google.common.base.VerifyException; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.Iterables; +import com.google.common.collect.Lists; +import com.google.common.collect.Maps; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.common.util.concurrent.Uninterruptibles; +import com.google.logging.v2.CreateExclusionRequest; +import com.google.logging.v2.CreateLogMetricRequest; +import com.google.logging.v2.CreateSinkRequest; +import com.google.logging.v2.DeleteExclusionRequest; +import com.google.logging.v2.DeleteLogMetricRequest; +import com.google.logging.v2.DeleteLogRequest; +import com.google.logging.v2.DeleteSinkRequest; +import com.google.logging.v2.GetExclusionRequest; +import com.google.logging.v2.GetLogMetricRequest; +import com.google.logging.v2.GetSinkRequest; +import com.google.logging.v2.ListExclusionsRequest; +import com.google.logging.v2.ListExclusionsResponse; +import com.google.logging.v2.ListLogEntriesRequest; +import com.google.logging.v2.ListLogEntriesResponse; +import com.google.logging.v2.ListLogMetricsRequest; +import com.google.logging.v2.ListLogMetricsResponse; +import com.google.logging.v2.ListLogsRequest; +import com.google.logging.v2.ListLogsResponse; +import com.google.logging.v2.ListMonitoredResourceDescriptorsRequest; +import com.google.logging.v2.ListMonitoredResourceDescriptorsResponse; +import com.google.logging.v2.ListSinksRequest; +import com.google.logging.v2.ListSinksResponse; +import com.google.logging.v2.LogExclusionName; +import com.google.logging.v2.LogMetricName; +import com.google.logging.v2.LogName; +import com.google.logging.v2.LogSinkName; +import com.google.logging.v2.ProjectName; +import com.google.logging.v2.TailLogEntriesRequest; +import com.google.logging.v2.TailLogEntriesResponse; +import com.google.logging.v2.UpdateExclusionRequest; +import com.google.logging.v2.UpdateLogMetricRequest; +import com.google.logging.v2.UpdateSinkRequest; +import com.google.logging.v2.WriteLogEntriesRequest; +import com.google.logging.v2.WriteLogEntriesResponse; +import com.google.protobuf.Empty; +import com.google.protobuf.util.Durations; +import io.opentelemetry.api.trace.Span; +import java.text.ParseException; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; + +class LoggingImpl extends BaseService implements Logging { + protected static final String RESOURCE_NAME_FORMAT = "projects/%s/traces/%s"; + private static final int FLUSH_WAIT_TIMEOUT_SECONDS = 6; + private final LoggingRpc rpc; + private final Map> pendingWrites = new ConcurrentHashMap<>(); + + private volatile Synchronicity writeSynchronicity = Synchronicity.ASYNC; + private volatile Severity flushSeverity = Severity.NONE; + private boolean closed; + + private static Boolean emptyToBooleanFunction(Empty input) { + return input != null; + } + + private static final Function WRITE_RESPONSE_TO_VOID_FUNCTION = + new Function() { + @Override + public Void apply(WriteLogEntriesResponse input) { + return null; + } + }; + private static final ThreadLocal inWriteCall = new ThreadLocal<>(); + + @VisibleForTesting + static ITimestampDefaultFilter defaultTimestampFilterCreator = new TimestampDefaultFilter(); + + LoggingImpl(LoggingOptions options) { + super(options); + rpc = options.getLoggingRpcV2(); + } + + @Override + public void setWriteSynchronicity(Synchronicity writeSynchronicity) { + this.writeSynchronicity = writeSynchronicity; + } + + @Override + public void setFlushSeverity(Severity flushSeverity) { + // For backward compatibility we treat null as Severity.NONE + if (flushSeverity == null) { + this.flushSeverity = Severity.NONE; + } else { + this.flushSeverity = flushSeverity; + } + } + + @Override + public Synchronicity getWriteSynchronicity() { + return writeSynchronicity; + } + + @Override + public Severity getFlushSeverity() { + return flushSeverity; + } + + private static V get(ApiFuture future) { + try { + return Uninterruptibles.getUninterruptibly(future); + } catch (ExecutionException ex) { + Throwables.throwIfUnchecked(ex.getCause()); + throw new VerifyException(ex); + } + } + + private static ApiFuture transform( + ApiFuture future, final Function function) { + return ApiFutures.transform( + future, + new ApiFunction() { + @Override + public O apply(I i) { + return function.apply(i); + } + }, + MoreExecutors.directExecutor()); + } + + private abstract static class BasePageFetcher implements AsyncPageImpl.NextPageFetcher { + + private static final long serialVersionUID = 5095123855547444030L; + + private final LoggingOptions serviceOptions; + private final Map requestOptions; + + private BasePageFetcher( + LoggingOptions serviceOptions, String cursor, Map requestOptions) { + this.serviceOptions = serviceOptions; + this.requestOptions = PageImpl.nextRequestOptions(PAGE_TOKEN, cursor, requestOptions); + } + + LoggingOptions serviceOptions() { + return serviceOptions; + } + + Map requestOptions() { + return requestOptions; + } + } + + private static class SinkPageFetcher extends BasePageFetcher { + + private static final long serialVersionUID = 4879364260060886875L; + + SinkPageFetcher( + LoggingOptions serviceOptions, String cursor, Map requestOptions) { + super(serviceOptions, cursor, requestOptions); + } + + @Override + public ApiFuture> getNextPage() { + return listSinksAsync(serviceOptions(), requestOptions()); + } + } + + private static class LogNamePageFetcher extends BasePageFetcher { + private static final long serialVersionUID = 5308841362690185583L; + + LogNamePageFetcher( + LoggingOptions serviceOptions, String cursor, Map requestOptions) { + super(serviceOptions, cursor, requestOptions); + } + + @Override + public ApiFuture> getNextPage() { + return listLogsAsync(serviceOptions(), requestOptions()); + } + } + + private static class MonitoredResourceDescriptorPageFetcher + extends BasePageFetcher { + + private static final long serialVersionUID = -2346495771766629195L; + + MonitoredResourceDescriptorPageFetcher( + LoggingOptions serviceOptions, String cursor, Map requestOptions) { + super(serviceOptions, cursor, requestOptions); + } + + @Override + public ApiFuture> getNextPage() { + return listMonitoredResourceDescriptorsAsync(serviceOptions(), requestOptions()); + } + } + + private static class MetricPageFetcher extends BasePageFetcher { + + private static final long serialVersionUID = -316783549651771553L; + + MetricPageFetcher( + LoggingOptions serviceOptions, String cursor, Map requestOptions) { + super(serviceOptions, cursor, requestOptions); + } + + @Override + public ApiFuture> getNextPage() { + return listMetricsAsync(serviceOptions(), requestOptions()); + } + } + + private static class ExclusionPageFetcher extends BasePageFetcher { + private static final long serialVersionUID = -1414118808031778916L; + + ExclusionPageFetcher( + LoggingOptions serviceOptions, String cursor, Map requestOptions) { + super(serviceOptions, cursor, requestOptions); + } + + @Override + public ApiFuture> getNextPage() { + return listExclusionAsync(serviceOptions(), requestOptions()); + } + } + + private static class LogEntryPageFetcher extends BasePageFetcher { + + private static final long serialVersionUID = 4001239712280747734L; + + LogEntryPageFetcher( + LoggingOptions serviceOptions, String cursor, Map requestOptions) { + super(serviceOptions, cursor, requestOptions); + } + + @Override + public ApiFuture> getNextPage() { + return listLogEntriesAsync(serviceOptions(), requestOptions()); + } + } + + @Override + public Sink create(SinkInfo sink) { + return get(createAsync(sink)); + } + + @Override + public Metric create(MetricInfo metric) { + return get(createAsync(metric)); + } + + @Override + public Exclusion create(Exclusion exclusion) { + return get(createAsync(exclusion)); + } + + @Override + public ApiFuture createAsync(SinkInfo sink) { + CreateSinkRequest request = + CreateSinkRequest.newBuilder() + .setParent(ProjectName.of(getOptions().getProjectId()).toString()) + .setSink(sink.toPb(getOptions().getProjectId())) + .build(); + return transform(rpc.create(request), Sink.fromPbFunction(this)); + } + + @Override + public ApiFuture createAsync(MetricInfo metric) { + CreateLogMetricRequest request = + CreateLogMetricRequest.newBuilder() + .setParent(ProjectName.of(getOptions().getProjectId()).toString()) + .setMetric(metric.toPb()) + .build(); + return transform(rpc.create(request), Metric.fromPbFunction(this)); + } + + @Override + public ApiFuture createAsync(Exclusion exclusion) { + CreateExclusionRequest request = + CreateExclusionRequest.newBuilder() + .setParent(ProjectName.of(getOptions().getProjectId()).toString()) + .setExclusion(exclusion.toProtobuf()) + .build(); + return transform(rpc.create(request), Exclusion.FROM_PROTOBUF_FUNCTION); + } + + @Override + public Sink update(SinkInfo sink) { + return get(updateAsync(sink)); + } + + @Override + public Metric update(MetricInfo metric) { + return get(updateAsync(metric)); + } + + @Override + public Exclusion update(Exclusion exclusion) { + return get(updateAsync(exclusion)); + } + + @Override + public ApiFuture updateAsync(SinkInfo sink) { + UpdateSinkRequest request = + UpdateSinkRequest.newBuilder() + .setSinkName( + LogSinkName.ofProjectSinkName(getOptions().getProjectId(), sink.getName()) + .toString()) + .setSink(sink.toPb(getOptions().getProjectId())) + .build(); + return transform(rpc.update(request), Sink.fromPbFunction(this)); + } + + @Override + public ApiFuture updateAsync(MetricInfo metric) { + UpdateLogMetricRequest request = + UpdateLogMetricRequest.newBuilder() + .setMetricName( + LogMetricName.of(getOptions().getProjectId(), metric.getName()).toString()) + .setMetric(metric.toPb()) + .build(); + return transform(rpc.update(request), Metric.fromPbFunction(this)); + } + + @Override + public ApiFuture updateAsync(Exclusion exclusion) { + UpdateExclusionRequest request = + UpdateExclusionRequest.newBuilder() + .setName( + LogExclusionName.of(getOptions().getProjectId(), exclusion.getName()).toString()) + .setExclusion(exclusion.toProtobuf()) + .build(); + return transform(rpc.update(request), Exclusion.FROM_PROTOBUF_FUNCTION); + } + + @Override + public Sink getSink(String sink) { + return get(getSinkAsync(sink)); + } + + @Override + public ApiFuture getSinkAsync(String sink) { + GetSinkRequest request = + GetSinkRequest.newBuilder() + .setSinkName( + LogSinkName.ofProjectSinkName(getOptions().getProjectId(), sink).toString()) + .build(); + return transform(rpc.get(request), Sink.fromPbFunction(this)); + } + + private static ListSinksRequest listSinksRequest( + LoggingOptions serviceOptions, Map options) { + ListSinksRequest.Builder builder = ListSinksRequest.newBuilder(); + builder.setParent(ProjectName.of(serviceOptions.getProjectId()).toString()); + Integer pageSize = PAGE_SIZE.get(options); + String pageToken = PAGE_TOKEN.get(options); + if (pageSize != null) { + builder.setPageSize(pageSize); + } + if (pageToken != null) { + builder.setPageToken(pageToken); + } + return builder.build(); + } + + private static ApiFuture> listSinksAsync( + final LoggingOptions serviceOptions, final Map options) { + final ListSinksRequest request = listSinksRequest(serviceOptions, options); + ApiFuture list = serviceOptions.getLoggingRpcV2().list(request); + return transform( + list, + new Function>() { + @Override + public AsyncPage apply(ListSinksResponse listSinksResponse) { + List sinks = + listSinksResponse.getSinksList().isEmpty() + ? ImmutableList.of() + : Lists.transform( + listSinksResponse.getSinksList(), + Sink.fromPbFunction(serviceOptions.getService())); + String cursor = + listSinksResponse.getNextPageToken().isEmpty() + ? null + : listSinksResponse.getNextPageToken(); + return new AsyncPageImpl<>( + new SinkPageFetcher(serviceOptions, cursor, options), cursor, sinks); + } + }); + } + + @Override + public ApiFuture> listSinksAsync(ListOption... options) { + return listSinksAsync(getOptions(), optionMap(options)); + } + + @Override + public Page listSinks(ListOption... options) { + return get(listSinksAsync(options)); + } + + @Override + public boolean deleteSink(String sink) { + return get(deleteSinkAsync(sink)); + } + + @Override + public ApiFuture deleteSinkAsync(String sink) { + DeleteSinkRequest request = + DeleteSinkRequest.newBuilder() + .setSinkName( + LogSinkName.ofProjectSinkName(getOptions().getProjectId(), sink).toString()) + .build(); + return transform(rpc.delete(request), LoggingImpl::emptyToBooleanFunction); + } + + /** + * Creates a new {@code ListLogsRequest} object. + * + *

            Builds an instance of {@code ListLogsRequest} using page size, page token and project id + * from the {@code LoggingOptions}. The project id is used as the request's parent parameter. + * + * @see com.google.logging.v2.ListLogEntriesRequest + * @return the created {@code ListLogsRequest} object + */ + private static ListLogsRequest listLogsRequest( + LoggingOptions serviceOptions, Map options) { + ListLogsRequest.Builder builder = ListLogsRequest.newBuilder(); + builder.setParent(ProjectName.of(serviceOptions.getProjectId()).toString()); + Integer pageSize = PAGE_SIZE.get(options); + String pageToken = PAGE_TOKEN.get(options); + if (pageSize != null) { + builder.setPageSize(pageSize); + } + if (pageToken != null) { + builder.setPageToken(pageToken); + } + return builder.build(); + } + + private static ApiFuture> listLogsAsync( + final LoggingOptions serviceOptions, final Map options) { + final ListLogsRequest request = listLogsRequest(serviceOptions, options); + ApiFuture list = serviceOptions.getLoggingRpcV2().listLogs(request); + return transform( + list, + new Function>() { + @Override + public AsyncPage apply(ListLogsResponse listLogsResponse) { + List logNames = + listLogsResponse.getLogNamesList().isEmpty() + ? ImmutableList.of() + : listLogsResponse.getLogNamesList(); + String cursor = + listLogsResponse.getNextPageToken().isEmpty() + ? null + : listLogsResponse.getNextPageToken(); + return new AsyncPageImpl<>( + new LogNamePageFetcher(serviceOptions, cursor, options), cursor, logNames); + } + }); + } + + @Override + public ApiFuture> listLogsAsync(ListOption... options) { + return listLogsAsync(getOptions(), optionMap(options)); + } + + @Override + public Page listLogs(ListOption... options) { + return get(listLogsAsync(options)); + } + + @Override + public boolean deleteLog(String log) { + return get(deleteLogAsync(log, null)); + } + + @Override + public boolean deleteLog(String log, LogDestinationName destination) { + return get(deleteLogAsync(log, destination)); + } + + @Override + public ApiFuture deleteLogAsync(String log) { + return deleteLogAsync(log, null); + } + + @Override + public ApiFuture deleteLogAsync(String log, LogDestinationName destination) { + checkNotNull(log, "log parameter cannot be null"); + String projectId = getOptions().getProjectId(); + if (destination == null) { + checkNotNull(projectId, "projectId parameter cannot be null"); + } + LogName name = getLogName(projectId, log, destination); + DeleteLogRequest request = DeleteLogRequest.newBuilder().setLogName(name.toString()).build(); + return transform(rpc.delete(request), LoggingImpl::emptyToBooleanFunction); + } + + private static ListMonitoredResourceDescriptorsRequest listMonitoredResourceDescriptorsRequest( + Map options) { + ListMonitoredResourceDescriptorsRequest.Builder builder = + ListMonitoredResourceDescriptorsRequest.newBuilder(); + Integer pageSize = PAGE_SIZE.get(options); + String pageToken = PAGE_TOKEN.get(options); + if (pageSize != null) { + builder.setPageSize(pageSize); + } + if (pageToken != null) { + builder.setPageToken(pageToken); + } + return builder.build(); + } + + private static ApiFuture> + listMonitoredResourceDescriptorsAsync( + final LoggingOptions serviceOptions, final Map options) { + final ListMonitoredResourceDescriptorsRequest request = + listMonitoredResourceDescriptorsRequest(options); + ApiFuture list = + serviceOptions.getLoggingRpcV2().list(request); + return transform( + list, + new Function< + ListMonitoredResourceDescriptorsResponse, AsyncPage>() { + @Override + public AsyncPage apply( + ListMonitoredResourceDescriptorsResponse listDescriptorsResponse) { + List descriptors = + listDescriptorsResponse.getResourceDescriptorsList().isEmpty() + ? ImmutableList.of() + : Lists.transform( + listDescriptorsResponse.getResourceDescriptorsList(), + (com.google.api.MonitoredResourceDescriptor + monitoredResourceDescriptor) -> { + return MonitoredResourceDescriptor.FROM_PB_FUNCTION.apply( + monitoredResourceDescriptor); + }); + String cursor = + listDescriptorsResponse.getNextPageToken().isEmpty() + ? null + : listDescriptorsResponse.getNextPageToken(); + return new AsyncPageImpl<>( + new MonitoredResourceDescriptorPageFetcher(serviceOptions, cursor, options), + cursor, + descriptors); + } + }); + } + + @Override + public ApiFuture> listMonitoredResourceDescriptorsAsync( + ListOption... options) { + return listMonitoredResourceDescriptorsAsync(getOptions(), optionMap(options)); + } + + @Override + public Page listMonitoredResourceDescriptors(ListOption... options) { + return get(listMonitoredResourceDescriptorsAsync(options)); + } + + @Override + public Metric getMetric(String metric) { + return get(getMetricAsync(metric)); + } + + @Override + public ApiFuture getMetricAsync(String metric) { + GetLogMetricRequest request = + GetLogMetricRequest.newBuilder() + .setMetricName(LogMetricName.of(getOptions().getProjectId(), metric).toString()) + .build(); + return transform(rpc.get(request), Metric.fromPbFunction(this)); + } + + private static ListLogMetricsRequest listMetricsRequest( + LoggingOptions serviceOptions, Map options) { + ListLogMetricsRequest.Builder builder = ListLogMetricsRequest.newBuilder(); + builder.setParent(ProjectName.of(serviceOptions.getProjectId()).toString()); + Integer pageSize = PAGE_SIZE.get(options); + String pageToken = PAGE_TOKEN.get(options); + if (pageSize != null) { + builder.setPageSize(pageSize); + } + if (pageToken != null) { + builder.setPageToken(pageToken); + } + return builder.build(); + } + + private static ApiFuture> listMetricsAsync( + final LoggingOptions serviceOptions, final Map options) { + final ListLogMetricsRequest request = listMetricsRequest(serviceOptions, options); + ApiFuture list = serviceOptions.getLoggingRpcV2().list(request); + return transform( + list, + new Function>() { + @Override + public AsyncPage apply(ListLogMetricsResponse listMetricsResponse) { + List metrics = + listMetricsResponse.getMetricsList().isEmpty() + ? ImmutableList.of() + : Lists.transform( + listMetricsResponse.getMetricsList(), + Metric.fromPbFunction(serviceOptions.getService())); + String cursor = + listMetricsResponse.getNextPageToken().isEmpty() + ? null + : listMetricsResponse.getNextPageToken(); + return new AsyncPageImpl<>( + new MetricPageFetcher(serviceOptions, cursor, options), cursor, metrics); + } + }); + } + + @Override + public ApiFuture> listMetricsAsync(ListOption... options) { + return listMetricsAsync(getOptions(), optionMap(options)); + } + + @Override + public Page listMetrics(ListOption... options) { + return get(listMetricsAsync(options)); + } + + @Override + public boolean deleteMetric(String metric) { + return get(deleteMetricAsync(metric)); + } + + @Override + public ApiFuture deleteMetricAsync(String metric) { + DeleteLogMetricRequest request = + DeleteLogMetricRequest.newBuilder() + .setMetricName(LogMetricName.of(getOptions().getProjectId(), metric).toString()) + .build(); + return transform(rpc.delete(request), LoggingImpl::emptyToBooleanFunction); + } + + @Override + public Exclusion getExclusion(String exclusion) { + return get(getExclusionAsync(exclusion)); + } + + @Override + public ApiFuture getExclusionAsync(String exclusion) { + GetExclusionRequest request = + GetExclusionRequest.newBuilder() + .setName(LogExclusionName.of(getOptions().getProjectId(), exclusion).toString()) + .build(); + return transform(rpc.get(request), Exclusion.FROM_PROTOBUF_FUNCTION); + } + + @Override + public boolean deleteExclusion(String exclusion) { + return get(deleteExclusionAsync(exclusion)); + } + + @Override + public ApiFuture deleteExclusionAsync(String exclusion) { + DeleteExclusionRequest request = + DeleteExclusionRequest.newBuilder() + .setName(LogExclusionName.of(getOptions().getProjectId(), exclusion).toString()) + .build(); + return transform(rpc.delete(request), LoggingImpl::emptyToBooleanFunction); + } + + @Override + public Page listExclusions(ListOption... options) { + return get(listExclusionsAsync(options)); + } + + @Override + public ApiFuture> listExclusionsAsync(ListOption... options) { + return listExclusionAsync(getOptions(), optionMap(options)); + } + + private static ListExclusionsRequest listExclusionsRequest( + LoggingOptions serviceOptions, Map options) { + ListExclusionsRequest.Builder builder = ListExclusionsRequest.newBuilder(); + builder.setParent(ProjectName.of(serviceOptions.getProjectId()).toString()); + Integer pageSize = PAGE_SIZE.get(options); + String pageToken = PAGE_TOKEN.get(options); + if (pageSize != null) { + builder.setPageSize(pageSize); + } + if (pageToken != null) { + builder.setPageToken(pageToken); + } + return builder.build(); + } + + private static ApiFuture> listExclusionAsync( + final LoggingOptions serviceOptions, final Map options) { + final ListExclusionsRequest request = listExclusionsRequest(serviceOptions, options); + ApiFuture list = serviceOptions.getLoggingRpcV2().list(request); + return transform( + list, + new Function>() { + @Override + public AsyncPage apply(ListExclusionsResponse listExclusionsResponse) { + List exclusions = + listExclusionsResponse.getExclusionsList().isEmpty() + ? ImmutableList.of() + : Lists.transform( + listExclusionsResponse.getExclusionsList(), + Exclusion.FROM_PROTOBUF_FUNCTION); + String cursor = + listExclusionsResponse.getNextPageToken().isEmpty() + ? null + : listExclusionsResponse.getNextPageToken(); + return new AsyncPageImpl<>( + new ExclusionPageFetcher(serviceOptions, cursor, options), cursor, exclusions); + } + }); + } + + private static WriteLogEntriesRequest writeLogEntriesRequest( + LoggingOptions serviceOptions, + Iterable logEntries, + Map options) { + WriteLogEntriesRequest.Builder builder = WriteLogEntriesRequest.newBuilder(); + String projectId = serviceOptions.getProjectId(); + + LogName logName = getLogName(projectId, LOG_NAME.get(options), LOG_DESTINATION.get(options)); + + if (logName != null) { + builder.setLogName(logName.toString()); + } + MonitoredResource resource = RESOURCE.get(options); + if (resource != null) { + builder.setResource(resource.toPb()); + } + Map labels = LABELS.get(options); + if (labels != null) { + builder.putAllLabels(labels); + } + + builder.setPartialSuccess(Boolean.TRUE.equals(PARTIAL_SUCCESS.get(options))); + builder.addAllEntries(Iterables.transform(logEntries, LogEntry.toPbFunction(projectId))); + return builder.build(); + } + + private static LogName getLogName( + String projectId, String logName, LogDestinationName destination) { + if (logName == null) { + return null; + } + + // If no destination specified, fallback to project based log name + if (destination == null) { + return LogName.ofProjectLogName(projectId, logName); + } + + return destination.toLogName(logName); + } + + @Override + public Iterable populateMetadata( + Iterable logEntries, + MonitoredResource customResource, + String... exclusionClassPaths) { + checkNotNull(logEntries); + final boolean needDebugInfo = + Iterables.any( + logEntries, + log -> log.getSeverity() == Severity.DEBUG && log.getSourceLocation() == null); + final SourceLocation sourceLocation = + needDebugInfo ? SourceLocation.fromCurrentContext(exclusionClassPaths) : null; + // populate monitored resource metadata by prioritizing the one set via + // WriteOption + final MonitoredResource resourceMetadata = + customResource == null + ? MonitoredResourceUtil.getResource(getOptions().getProjectId(), null) + : customResource; + + final ArrayList populatedLogEntries = Lists.newArrayList(); + + // populate empty metadata fields of log entries before calling write API + for (LogEntry entry : logEntries) { + if (entry == null) { + continue; + } + LogEntry.Builder entityBuilder = entry.toBuilder(); + if (resourceMetadata != null && entry.getResource() == null) { + entityBuilder.setResource(resourceMetadata); + } + + ContextHandler contextHandler = new ContextHandler(); + // Populate trace/span ID from OpenTelemetry span context to logging context. + if (Span.current().getSpanContext().isValid()) { + Context.Builder contextBuilder = Context.newBuilder().loadOpenTelemetryContext(); + contextHandler.setCurrentContext(contextBuilder.build(), ContextPriority.OTEL_EXTRACTED); + } + + Context context = contextHandler.getCurrentContext(); + if (context != null && entry.getHttpRequest() == null) { + entityBuilder.setHttpRequest(context.getHttpRequest()); + } + if (context != null && Strings.isNullOrEmpty(entry.getTrace())) { + MonitoredResource resource = + entry.getResource() != null ? entry.getResource() : resourceMetadata; + entityBuilder.setTrace(getFormattedTrace(context.getTraceId(), resource)); + entityBuilder.setTraceSampled(context.getTraceSampled()); + } + if (context != null && Strings.isNullOrEmpty(entry.getSpanId())) { + entityBuilder.setSpanId(context.getSpanId()); + } + if (entry.getSeverity() == Severity.DEBUG && entry.getSourceLocation() == null) { + entityBuilder.setSourceLocation(sourceLocation); + } + populatedLogEntries.add(entityBuilder.build()); + } + return populatedLogEntries; + } + + @Override + public void write(Iterable logEntries, WriteOption... options) { + if (inWriteCall.get() != null) { + return; + } + inWriteCall.set(true); + + try { + final Map writeOptions = optionMap(options); + final Boolean loggingOptionsPopulateFlag = getOptions().getAutoPopulateMetadata(); + final Boolean writeOptionPartialSuccessFlag = + WriteOption.OptionType.PARTIAL_SUCCESS.get(writeOptions); + final Boolean writeOptionPopulateFlag = + WriteOption.OptionType.AUTO_POPULATE_METADATA.get(writeOptions); + Tuple> pair = + Instrumentation.populateInstrumentationInfo(logEntries); + logEntries = pair.y(); + + if (Objects.equals(writeOptionPopulateFlag, Boolean.TRUE) + || (writeOptionPopulateFlag == null + && Objects.equals(loggingOptionsPopulateFlag, Boolean.TRUE))) { + final MonitoredResource sharedResourceMetadata = RESOURCE.get(writeOptions); + logEntries = + populateMetadata(logEntries, sharedResourceMetadata, this.getClass().getName()); + } + // Add partialSuccess = true option always for request which does not have + // it set explicitly in options. + // For request containing instrumentation data (e.g. when pair.x() == true), + // always set or override partialSuccess with true. + if (pair.x() || writeOptionPartialSuccessFlag == null) { + options = Instrumentation.addPartialSuccessOption(options); + } + writeLogEntries(logEntries, options); + if (flushSeverity != Severity.NONE) { + for (LogEntry logEntry : logEntries) { + // flush pending writes if log severity at or above flush severity + if (logEntry.getSeverity().compareTo(flushSeverity) >= 0) { + flush(); + break; + } + } + } + } finally { + inWriteCall.remove(); + } + } + + @Override + public void flush() { + // BUG(1795): We should force batcher to issue RPC call for buffered messages, + // so the code below doesn't wait uselessly. + ArrayList> writesToFlush = new ArrayList<>(pendingWrites.values()); + + try { + ApiFutures.allAsList(writesToFlush).get(FLUSH_WAIT_TIMEOUT_SECONDS, TimeUnit.SECONDS); + } catch (InterruptedException | ExecutionException | TimeoutException e) { + throw new VerifyException(e); + } + } + + /** + * Formats trace following resource name template if the resource metadata has project id. + * + * @param traceId A trace id string or {@code null} if trace info is missing. + * @param resource A {@see MonitoredResource} describing environment metadata. + * @return A formatted trace id string. + */ + private String getFormattedTrace(String traceId, MonitoredResource resource) { + if (traceId == null) { + return null; + } + String projectId = null; + if (resource != null) { + projectId = resource.getLabels().getOrDefault(MonitoredResourceUtil.PORJECTID_LABEL, null); + } + if (projectId != null) { + return String.format(RESOURCE_NAME_FORMAT, projectId, traceId); + } + return traceId; + } + + /* + * Write logs synchronously or asynchronously based on writeSynchronicity + * setting. + */ + private void writeLogEntries(Iterable logEntries, WriteOption... writeOptions) { + if (closed) { + return; + } + + switch (this.writeSynchronicity) { + case SYNC: + get(writeAsync(logEntries, writeOptions)); + break; + + case ASYNC: + final ApiFuture writeFuture = writeAsync(logEntries, writeOptions); + final Object pendingKey = new Object(); + pendingWrites.put(pendingKey, writeFuture); + ApiFutures.addCallback( + writeFuture, + new ApiFutureCallback() { + private void removeFromPending() { + pendingWrites.remove(pendingKey); + } + + @Override + public void onSuccess(Void v) { + removeFromPending(); + } + + @Override + public void onFailure(Throwable t) { + try { + Exception ex = t instanceof Exception ? (Exception) t : new Exception(t); + System.err.println("ERROR: onFailure exception: " + ex); + } finally { + removeFromPending(); + } + } + }, + MoreExecutors.directExecutor()); + break; + } + } + + private ApiFuture writeAsync(Iterable logEntries, WriteOption... options) { + return transform( + rpc.write(writeLogEntriesRequest(getOptions(), logEntries, optionMap(options))), + WRITE_RESPONSE_TO_VOID_FUNCTION); + } + + static ListLogEntriesRequest listLogEntriesRequest( + String projectId, Map options) { + ListLogEntriesRequest.Builder builder = ListLogEntriesRequest.newBuilder(); + builder.addResourceNames("projects/" + projectId); + String organization = EntryListOption.OptionType.ORGANIZATION.get(options); + if (organization != null) { + builder.addResourceNames("organizations/" + organization); + } + String billingAccount = EntryListOption.OptionType.BILLINGACCOUNT.get(options); + if (billingAccount != null) { + builder.addResourceNames("billingAccounts/" + billingAccount); + } + String folder = EntryListOption.OptionType.FOLDER.get(options); + if (folder != null) { + builder.addResourceNames("folders/" + folder); + } + Integer pageSize = PAGE_SIZE.get(options); + if (pageSize != null) { + builder.setPageSize(pageSize); + } + String pageToken = PAGE_TOKEN.get(options); + if (pageToken != null) { + builder.setPageToken(pageToken); + } + String orderBy = ORDER_BY.get(options); + if (orderBy != null) { + builder.setOrderBy(orderBy); + } + String filter = generateFilter(EntryListOption.OptionType.FILTER.get(options)); + if (filter != null) { + builder.setFilter(filter); + } + return builder.build(); + } + + private static ApiFuture> listLogEntriesAsync( + final LoggingOptions serviceOptions, final Map options) { + // Make sure to set a filter option which later can be reused in subsequent calls + final Map updatedOptions = updateFilter(options); + final ListLogEntriesRequest request = + listLogEntriesRequest(serviceOptions.getProjectId(), updatedOptions); + ApiFuture list = serviceOptions.getLoggingRpcV2().list(request); + return transform( + list, + new Function>() { + @Override + public AsyncPage apply(ListLogEntriesResponse listLogEntriesResponse) { + List entries = + listLogEntriesResponse.getEntriesList().isEmpty() + ? ImmutableList.of() + : Lists.transform( + listLogEntriesResponse.getEntriesList(), LogEntry.FROM_PB_FUNCTION); + String cursor = + listLogEntriesResponse.getNextPageToken().isEmpty() + ? null + : listLogEntriesResponse.getNextPageToken(); + return new AsyncPageImpl<>( + new LogEntryPageFetcher(serviceOptions, cursor, updatedOptions), cursor, entries); + } + }); + } + + @Override + public ApiFuture> listLogEntriesAsync(EntryListOption... options) { + return listLogEntriesAsync(getOptions(), optionMap(options)); + } + + @Override + public Page listLogEntries(EntryListOption... options) { + return get(listLogEntriesAsync(options)); + } + + static TailLogEntriesRequest buildTailLogEntriesRequest( + Map options, String defaultProjectId) { + TailLogEntriesRequest.Builder builder = TailLogEntriesRequest.newBuilder(); + + String organization = TailOption.OptionType.ORGANIZATION.get(options); + if (organization != null) { + builder.addResourceNames("organizations/" + organization); + } + String billingAccount = TailOption.OptionType.BILLINGACCOUNT.get(options); + if (billingAccount != null) { + builder.addResourceNames("billingAccounts/" + billingAccount); + } + String folder = TailOption.OptionType.FOLDER.get(options); + if (folder != null) { + builder.addResourceNames("folders/" + folder); + } + String project = TailOption.OptionType.PROJECT.get(options); + if (project != null) { + builder.addResourceNames("projects/" + project); + } else if (defaultProjectId != null) { + builder.addResourceNames("projects/" + defaultProjectId); + } + String filter = TailOption.OptionType.FILTER.get(options); + if (filter != null) { + builder.setFilter(filter); + } + String bufferWindow = TailOption.OptionType.BUFFERWINDOW.get(options); + if (bufferWindow != null) { + try { + builder.setBufferWindow(Durations.parse(bufferWindow)); + } catch (ParseException err) { + System.err.println("ERROR: invalid duration format: " + bufferWindow); + } + } + return builder.build(); + } + + @Override + public LogEntryServerStream tailLogEntries(TailOption... options) { + LoggingOptions serviceOptions = getOptions(); + BidiStream bidiStream = + serviceOptions.getLoggingRpcV2().getTailLogEntriesStream(); + final TailLogEntriesRequest request = + buildTailLogEntriesRequest(optionMap(options), serviceOptions.getProjectId()); + bidiStream.send(request); + return new LogEntryServerStream(bidiStream); + } + + @Override + public void close() throws Exception { + if (closed) { + return; + } + closed = true; + flush(); + rpc.close(); + } + + static Map optionMap(Option... options) { + Map optionMap = Maps.newHashMap(); + for (Option option : options) { + Object prev = optionMap.put(option.getOptionType(), option.getValue()); + checkArgument(prev == null, "Duplicate option %s", option); + } + return optionMap; + } + + static Map updateFilter(final Map options) { + // We should see if filter provided in otiopns have a timestamp parameter + // and if not, it should be added with further update of options map. + String existingFilter = EntryListOption.OptionType.FILTER.get(options); + String newFilter = generateFilter(existingFilter); + if (newFilter.equals(existingFilter)) { + return options; + } + // Update + Map optionsCopy = Maps.newHashMap(options); + optionsCopy.put(EntryListOption.OptionType.FILTER, newFilter); + return optionsCopy; + } + + static String generateFilter(String filter) { + String newFilter = filter; + // Make sure timestamp filter is either explicitly specified or we add a default + // time filter of 24 hours back to be inline with gcloud behavior for the same API + if (newFilter != null) { + if (!Ascii.toLowerCase(filter).contains("timestamp")) { + newFilter = + String.format( + "%s AND %s", + newFilter, defaultTimestampFilterCreator.createDefaultTimestampFilter()); + } + } else { + newFilter = defaultTimestampFilterCreator.createDefaultTimestampFilter(); + } + return newFilter; + } + + @VisibleForTesting + int getNumPendingWrites() { + return pendingWrites.size(); + } +} diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingLevel.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingLevel.java new file mode 100644 index 000000000000..f32a59b2026f --- /dev/null +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingLevel.java @@ -0,0 +1,93 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.cloud.logging; + +import java.util.logging.Level; + +/** + * This class adds some additional Java logging levels for Cloud Logging. Added levels fill in the + * gap between Java logging levels and Cloud Logging severities. + * + *

            Added levels in descending order are (between parenthesis the relation with Java logging + * levels): + * + *

              + *
            • EMERGENCY + *
            • ALERT + *
            • CRITICAL + *
            • ERROR ({@code WARNING < ERROR < SEVERE}) + *
            • NOTICE ({@code INFO < NOTICE < WARNING}) + *
            • DEBUG ({@code ALL < DEBUG < FINES}T + *
            + * + *

            Notice that {@code ERROR} is lower than {@link java.util.logging.Level#SEVERE} but higher than + * {@link java.util.logging.Level#WARNING}. {@code DEBUG} instead is lower than {@link + * java.util.logging.Level#FINEST} but higher than {@link java.util.logging.Level#ALL}. + */ +@SuppressWarnings("ShouldNotSubclass") +public final class LoggingLevel extends Level { + + private static final long serialVersionUID = -6455416241709366337L; + + /** + * A level to be used for debug or trace information. This level is initialized to {@code 250}. + */ + public static final LoggingLevel DEBUG = new LoggingLevel("DEBUG", 250, Severity.DEBUG); + + /** + * A level to be used when normal events occur, such as start up and shut down. This level is + * initialized to {@code 850}. + */ + public static final LoggingLevel NOTICE = new LoggingLevel("NOTICE", 850, Severity.NOTICE); + + /** + * A level to be used when events occur that are likely to cause problems. This level is + * initialized to {@code 950}. + */ + public static final LoggingLevel ERROR = new LoggingLevel("ERROR", 950, Severity.ERROR); + + /** + * A level to be used when critical events cause more severe problems or brief outages. This level + * is initialized to {@code 1050}. + */ + public static final LoggingLevel CRITICAL = new LoggingLevel("CRITICAL", 1050, Severity.CRITICAL); + + /** + * A level to be used when a person must take an action immediately. This level is initialized to + * {@code 1100}. + */ + public static final LoggingLevel ALERT = new LoggingLevel("ALERT", 1100, Severity.ALERT); + + /** + * A levet to be used when one or more systems are unusable. This level is initialized to {@code + * 1150}. + */ + public static final LoggingLevel EMERGENCY = + new LoggingLevel("EMERGENCY", 1150, Severity.EMERGENCY); + + private final Severity severity; + + private LoggingLevel(String name, int value, Severity severity) { + super(name, value); + this.severity = severity; + } + + /** Returns the Cloud Logging severity associated with this logging level. */ + public Severity getSeverity() { + return severity; + } +} diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingOptions.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingOptions.java new file mode 100644 index 000000000000..04b386fc29ae --- /dev/null +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingOptions.java @@ -0,0 +1,183 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.cloud.logging; + +import com.google.api.core.InternalApi; +import com.google.api.gax.batching.BatchingSettings; +import com.google.cloud.ServiceDefaults; +import com.google.cloud.ServiceOptions; +import com.google.cloud.ServiceRpc; +import com.google.cloud.TransportOptions; +import com.google.cloud.grpc.GrpcTransportOptions; +import com.google.cloud.logging.spi.LoggingRpcFactory; +import com.google.cloud.logging.spi.v2.GrpcLoggingRpc; +import com.google.cloud.logging.spi.v2.LoggingRpc; +import com.google.cloud.logging.v2.LoggingSettings; +import com.google.common.collect.ImmutableSet; +import com.google.errorprone.annotations.CanIgnoreReturnValue; +import java.io.IOException; +import java.util.Set; + +public class LoggingOptions extends ServiceOptions { + + private static final String API_SHORT_NAME = "Logging"; + private static final String LOGGING_SCOPE = "https://www.googleapis.com/auth/logging.admin"; + private static final ImmutableSet SCOPES = ImmutableSet.of(LOGGING_SCOPE); + private static final String DEFAULT_HOST = LoggingSettings.getDefaultEndpoint(); + private static final long serialVersionUID = 5753499510627426717L; + + private Boolean autoPopulateMetadataOnWrite = null; + private BatchingSettings batchingSettings = null; + + public static class DefaultLoggingFactory implements LoggingFactory { + private static final LoggingFactory INSTANCE = new DefaultLoggingFactory(); + + @Override + public Logging create(LoggingOptions options) { + return new LoggingImpl(options); + } + } + + /** Returns a default {@code LoggingOptions} instance. */ + public static LoggingOptions getDefaultInstance() { + return newBuilder().build(); + } + + public static class DefaultLoggingRpcFactory implements LoggingRpcFactory { + private static final LoggingRpcFactory INSTANCE = new DefaultLoggingRpcFactory(); + + @Override + public ServiceRpc create(LoggingOptions options) { + try { + return new GrpcLoggingRpc(options); + } catch (IOException e) { + throw new LoggingException(e, true); + } + } + } + + @Override + protected String getDefaultHost() { + return DEFAULT_HOST; + } + + public static class Builder extends ServiceOptions.Builder { + + private Boolean autoPopulateMetadataOnWrite = true; + private BatchingSettings batchingSettings = null; + + private Builder() {} + + private Builder(LoggingOptions options) { + super(options); + } + + @Override + public Builder setTransportOptions(TransportOptions transportOptions) { + if (!(transportOptions instanceof GrpcTransportOptions)) { + throw new IllegalArgumentException( + "Only grpc transport is allowed for " + API_SHORT_NAME + "."); + } + return super.setTransportOptions(transportOptions); + } + + @CanIgnoreReturnValue + public Builder setAutoPopulateMetadata(boolean autoPopulateMetadataOnWrite) { + this.autoPopulateMetadataOnWrite = autoPopulateMetadataOnWrite; + return this; + } + + @CanIgnoreReturnValue + public Builder setBatchingSettings(BatchingSettings batchingSettings) { + this.batchingSettings = batchingSettings; + return this; + } + + @Override + public LoggingOptions build() { + return new LoggingOptions(this); + } + } + + @InternalApi("This class should only be extended within google-cloud-java") + protected LoggingOptions(Builder builder) { + super(LoggingFactory.class, LoggingRpcFactory.class, builder, new LoggingDefaults()); + this.autoPopulateMetadataOnWrite = builder.autoPopulateMetadataOnWrite; + this.batchingSettings = + builder.batchingSettings == null ? null : builder.batchingSettings.toBuilder().build(); + } + + @SuppressWarnings("serial") + private static class LoggingDefaults implements ServiceDefaults { + + @Override + public LoggingFactory getDefaultServiceFactory() { + return DefaultLoggingFactory.INSTANCE; + } + + @Override + public LoggingRpcFactory getDefaultRpcFactory() { + return DefaultLoggingRpcFactory.INSTANCE; + } + + @Override + public TransportOptions getDefaultTransportOptions() { + return getDefaultGrpcTransportOptions(); + } + } + + public static GrpcTransportOptions getDefaultGrpcTransportOptions() { + return GrpcTransportOptions.newBuilder().build(); + } + + @Override + protected Set getScopes() { + return SCOPES; + } + + protected LoggingRpc getLoggingRpcV2() { + return (LoggingRpc) getRpc(); + } + + public Boolean getAutoPopulateMetadata() { + return this.autoPopulateMetadataOnWrite; + } + + public BatchingSettings getBatchingSettings() { + return this.batchingSettings; + } + + @Override + public boolean equals(Object obj) { + return obj instanceof LoggingOptions && baseEquals((LoggingOptions) obj); + } + + @Override + public int hashCode() { + return baseHashCode(); + } + + @SuppressWarnings("unchecked") + @Override + public Builder toBuilder() { + return new Builder(this); + } + + public static Builder newBuilder() { + return new Builder(); + } +} diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/MetadataLoader.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/MetadataLoader.java new file mode 100644 index 000000000000..647aa7c91a74 --- /dev/null +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/MetadataLoader.java @@ -0,0 +1,233 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.cloud.logging; + +import static java.nio.charset.StandardCharsets.UTF_8; + +import com.google.cloud.logging.MonitoredResourceUtil.Label; +import com.google.common.collect.ImmutableMap; +import java.io.IOException; +import java.nio.file.Files; +import java.nio.file.Paths; +import java.util.function.Supplier; + +public final class MetadataLoader { + public static final String ENV_FLEXIBLE = "flex"; + public static final String ENV_STANDARD = "standard"; + + private final ResourceTypeEnvironmentGetter getter; + + private final ImmutableMap> labelResolvers = + ImmutableMap.>builder() + .put(Label.ClusterName, this::getClusterName) + .put(Label.ConfigurationName, this::getConfigName) + .put(Label.ContainerName, this::getContainerName) + .put(Label.Env, this::getEnv) + .put(Label.FunctionName, this::getFunctionName) + .put(Label.InstanceId, this::getInstanceId) + .put(Label.InstanceName, this::getInstanceName) + .put(Label.CloudRunJobName, this::getCloudRunJobName) + .put(Label.CloudRunJobExecutionName, this::getCloudRunJobExecutionName) + .put(Label.CloudRunJobTaskIndex, this::getCloudRunJobTaskIndex) + .put(Label.CloudRunJobTaskAttempt, this::getCloudRunJobTaskAttempt) + .put(Label.CloudRunLocation, this::getCloudRunLocation) + .put(Label.GKELocation, this::getGKELocation) + .put(Label.ModuleId, this::getModuleId) + .put(Label.NamespaceName, this::getNamespaceName) + .put(Label.PodName, this::getPodName) + .put(Label.ProjectId, this::getProjectId) + .put(Label.Region, this::getRegion) + .put(Label.RevisionName, this::getRevisionName) + .put(Label.ServiceName, this::getServiceName) + .put(Label.VersionId, this::getVersionId) + .put(Label.Zone, this::getZone) + .buildOrThrow(); + + public MetadataLoader(ResourceTypeEnvironmentGetter getter) { + this.getter = getter; + } + + /** + * Loads metadata value for the {@code label} argument. + * + * @param label A resource metadata label of type {@see MonitoredResourceUtil.Label} + * @return A string with metadata value or {@code null} if the label is not supported. + */ + public String getValue(MonitoredResourceUtil.Label label) { + Supplier lambda = labelResolvers.get(label); + if (lambda != null) { + return lambda.get(); + } + return null; + } + + private String getClusterName() { + return getter.getAttribute("instance/attributes/cluster-name"); + } + + private String getConfigName() { + return getter.getEnv("K_CONFIGURATION"); + } + + // due to lack of options to discover container name from within process + // allow users to provide the container name via environment variable + private String getContainerName() { + return getter.getEnv("CONTAINER_NAME"); + } + + /** + * Distinguish between Standard and Flexible GAE environments. There is no indicator of the + * environment. The path to the startup-script in the metadata attribute was selected as one of + * the new values that explicitly mentioning "flex" and cannot be altered by user (e.g. + * environment variable). The method assumes that the resource type is already identified as + * {@link Resource.AppEngine}. + * + * @return {@link MetadataLoader.ENV_FLEXIBLE} for the Flexible environment and {@link + * MetadataLoader.ENV_STANDARD} for the Standard environment. + */ + private String getEnv() { + String value = getter.getAttribute("instance/attributes/startup-script"); + if ("/var/lib/flex/startup_script.sh".equals(value)) { + return ENV_FLEXIBLE; + } + return ENV_STANDARD; + } + + private String getFunctionName() { + String value = getter.getEnv("K_SERVICE"); + if (value == null) { + // keep supporting custom function name if is not provided by default + // for backward compatibility only; reconsider removing it after Gen2 + // environment is enrolled for Cloud Function + value = getter.getEnv("FUNCTION_NAME"); + } + return value; + } + + private String getInstanceId() { + return getter.getAttribute("instance/id"); + } + + private String getInstanceName() { + return getter.getAttribute("instance/name"); + } + + private String getCloudRunJobName() { + return getter.getEnv("CLOUD_RUN_JOB"); + } + + private String getCloudRunJobExecutionName() { + return getter.getEnv("CLOUD_RUN_EXECUTION"); + } + + private String getCloudRunJobTaskIndex() { + return getter.getEnv("CLOUD_RUN_TASK_INDEX"); + } + + private String getCloudRunJobTaskAttempt() { + return getter.getEnv("CLOUD_RUN_TASK_ATTEMPT"); + } + + private String getCloudRunLocation() { + return getRegion(); + } + + private String getGKELocation() { + return getZone(); + } + + private String getModuleId() { + return getter.getEnv("GAE_SERVICE"); + } + + /** + * Heuristic to discover the namespace name of the current environment. There is no deterministic + * way to discover the namespace name of the process. The name is read from the {@link + * K8S_POD_NAMESPACE_PATH} when available or read from a user defined environment variable + * "NAMESPACE_NAME" + * + * @return Namespace string or null if the name could not be discovered + */ + private String getNamespaceName() { + String value = null; + try { + value = + new String( + Files.readAllBytes( + Paths.get("/var/run/secrets/kubernetes.io/serviceaccount/namespace")), + UTF_8); + } catch (IOException e) { + // if SA token is not shared the info about namespace is unavailable + // allow users to define the namespace name explicitly + value = getter.getEnv("NAMESPACE_NAME"); + } + return value; + } + + // Kubernetes set hostname of the pod to the pod name by default, however hostname can be override + // in manifest + // allow users to provide the container name via environment variable + private String getPodName() { + String value = getter.getEnv("POD_NAME"); + if (value != null) { + return value; + } + return getter.getEnv("HOSTNAME"); + } + + private String getProjectId() { + return getter.getAttribute("project/project-id"); + } + + /** + * Retrieves a region from the qualified region of 'projects/[PROJECT_NUMBER]/regions/[REGION]' + * + * @return region string id + */ + private String getRegion() { + String loc = getter.getAttribute("instance/region"); + if (loc != null) { + return loc.substring(loc.lastIndexOf('/') + 1); + } + return null; + } + + private String getRevisionName() { + return getter.getEnv("K_REVISION"); + } + + private String getServiceName() { + return getter.getEnv("K_SERVICE"); + } + + private String getVersionId() { + return getter.getEnv("GAE_VERSION"); + } + + /** + * Retrieves a zone from the qualified zone of 'projects/[PROJECT_NUMBER]/zones/[ZONE]' + * + * @return zone string id + */ + private String getZone() { + String loc = getter.getAttribute("instance/zone"); + if (loc != null) { + return loc.substring(loc.lastIndexOf('/') + 1); + } + return null; + } +} diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/Metric.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/Metric.java new file mode 100644 index 000000000000..adec4dce56a1 --- /dev/null +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/Metric.java @@ -0,0 +1,260 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.cloud.logging; + +import static com.google.common.base.Preconditions.checkNotNull; + +import com.google.api.core.ApiFuture; +import com.google.common.base.Function; +import com.google.errorprone.annotations.CanIgnoreReturnValue; +import com.google.logging.v2.LogMetric; +import java.io.IOException; +import java.io.ObjectInputStream; +import java.util.Objects; + +/** + * Cloud Logging metrics describe logs-based metric. The value of the metric is the number of log + * entries that match a logs filter (see {@link #getFilter()}). + * + *

            {@code Metric} adds a layer of service-related functionality over {@link MetricInfo}. Objects + * of this class are immutable. To get a {@code Metric} object with the most recent information use + * {@link #reload} or {@link #reloadAsync}. + * + * @see Logs-based Metrics + * + */ +public class Metric extends MetricInfo { + + private static final long serialVersionUID = -1549310461066853001L; + + private final LoggingOptions options; + private transient Logging logging; + + /** A builder for {@code Metric} objects. */ + public static final class Builder extends MetricInfo.Builder { + + private final Logging logging; + private final BuilderImpl delegate; + + private Builder(Metric metric) { + logging = metric.logging; + delegate = new BuilderImpl(metric); + } + + @Override + @CanIgnoreReturnValue + public Builder setName(String name) { + delegate.setName(name); + return this; + } + + @Override + @CanIgnoreReturnValue + public Builder setDescription(String description) { + delegate.setDescription(description); + return this; + } + + @Override + @CanIgnoreReturnValue + public Builder setFilter(String filter) { + delegate.setFilter(filter); + return this; + } + + @Override + public Metric build() { + return new Metric(this.logging, this.delegate); + } + } + + Metric(Logging logging, BuilderImpl builder) { + super(builder); + this.logging = checkNotNull(logging); + options = logging.getOptions(); + } + + @Override + public Builder toBuilder() { + return new Builder(this); + } + + @Override + public final int hashCode() { + return Objects.hash(options, super.hashCode()); + } + + @Override + public final boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Metric)) { + return false; + } + Metric other = (Metric) obj; + return baseEquals(other) && Objects.equals(options, other.options); + } + + /** Returns the metrics's {@code Logging} object used to issue requests. */ + public Logging getLogging() { + return logging; + } + + /** + * Deletes this metric. + * + *

            Example of deleting the metric. + * + *

            {@code
            +   * boolean deleted = metric.delete();
            +   * if (deleted) {
            +   *   // the metric was deleted
            +   * } else {
            +   *   // the metric was not found
            +   * }
            +   * }
            + * + * @return {@code true} if the metric was deleted, {@code false} if it was not found + * @throws LoggingException upon failure + */ + public boolean delete() { + return logging.deleteMetric(getName()); + } + + /** + * Sends a request for deleting this metric. This method returns a {@code ApiFuture} object to + * consume the result. {@link ApiFuture#get()} returns {@code true} if the metric was deleted, + * {@code false} if it was not found. + * + *

            Example of asynchronously deleting the metric. + * + *

            {@code
            +   * ApiFuture future = metric.deleteAsync();
            +   * // ...
            +   * boolean deleted = future.get();
            +   * if (deleted) {
            +   *   // the metric was deleted
            +   * } else {
            +   *   // the metric was not found
            +   * }
            +   * }
            + * + * @throws LoggingException upon failure + */ + public ApiFuture deleteAsync() { + return logging.deleteMetricAsync(getName()); + } + + /** + * Fetches current metric's latest information. Returns {@code null} if the metric does not exist. + * + *

            Example of getting the metric's latest information. + * + *

            {@code
            +   * Metric latestMetric = metric.reload();
            +   * if (latestMetric == null) {
            +   *   // the metric was not found
            +   * }
            +   * }
            + * + * @return a {@code Metric} object with latest information or {@code null} if not found + * @throws LoggingException upon failure + */ + public Metric reload() { + return logging.getMetric(getName()); + } + + /** + * Sends a request to fetch current metric's latest information. This method returns a {@code + * ApiFuture} object to consume the result. {@link ApiFuture#get()} returns a {@code Metric} + * object with latest information or {@code null} if not found. + * + *

            Example of asynchronously getting the metric's latest information. + * + *

            {@code
            +   * ApiFuture future = metric.reloadAsync();
            +   * // ...
            +   * Metric latestMetric = future.get();
            +   * if (latestMetric == null) {
            +   *   // the metric was not found
            +   * }
            +   * }
            + * + * @throws LoggingException upon failure + */ + public ApiFuture reloadAsync() { + return logging.getMetricAsync(getName()); + } + + /** + * Updates current metric. If the metric does not exist, it is created. + * + *

            Example of updating the metric's information. + * + *

            {@code
            +   * Metric updatedMetric = metric.toBuilder()
            +   *     .setDescription("A more detailed description")
            +   *     .build()
            +   *     .update();
            +   * }
            + * + * @return a {@code Metric} object with updated information + * @throws LoggingException upon failure + */ + public Metric update() { + return logging.update(this); + } + + /** + * Sends a request to update current metric. If the metric does not exist, it is created. This + * method returns a {@code ApiFuture} object to consume the result. {@link ApiFuture#get()} + * returns a {@code Metric} object with updated information. + * + *

            Example of asynchronously updating the metric's information. + * + *

            {@code
            +   * ApiFuture future = metric.toBuilder()
            +   *     .setDescription("A more detailed description")
            +   *     .build()
            +   *     .updateAsync();
            +   * // ...
            +   * Metric updatedMetric = future.get();
            +   * }
            + * + * @throws LoggingException upon failure + */ + public ApiFuture updateAsync() { + return logging.updateAsync(this); + } + + private void readObject(ObjectInputStream input) throws IOException, ClassNotFoundException { + input.defaultReadObject(); + this.logging = options.getService(); + } + + static Metric fromPb(Logging logging, LogMetric metricPb) { + MetricInfo metricInfo = MetricInfo.fromPb(metricPb); + return new Metric(logging, new BuilderImpl(metricInfo)); + } + + static Function fromPbFunction(final Logging logging) { + return (LogMetric metricPb) -> { + return metricPb != null ? fromPb(logging, metricPb) : null; + }; + } +} diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/MetricInfo.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/MetricInfo.java new file mode 100644 index 000000000000..5ae92df84578 --- /dev/null +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/MetricInfo.java @@ -0,0 +1,213 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.cloud.logging; + +import static com.google.common.base.Preconditions.checkNotNull; + +import com.google.common.base.MoreObjects; +import com.google.errorprone.annotations.CanIgnoreReturnValue; +import com.google.logging.v2.LogMetric; +import java.io.Serializable; +import java.util.Objects; + +/** + * Cloud Logging metrics describe logs-based metric. The value of the metric is the number of log + * entries that match a logs filter (see {@link #getFilter()}). + * + * @see Logs-based Metrics + * + */ +public class MetricInfo implements Serializable { + + private static final long serialVersionUID = 666208243838820325L; + + private final String name; + private final String description; + private final String filter; + + /** A builder for {@code MetricInfo} objects. */ + public abstract static class Builder { + + Builder() {} + + /** + * Sets the name of the metric. Example: {@code severe-errors}. Metric identifiers are limited + * to 1000 characters and can include only the following characters: {@code A-Z}, {@code a-z}, + * {@code 0-9}, and the special characters {@code _-.,+!*',()%/\}. The forward-slash character + * ({@code /}) denotes a hierarchy of name pieces, and it cannot be the first character of the + * name. + */ + public abstract Builder setName(String name); + + /** Sets an optional description for this metric. Used for documentation purpose. */ + public abstract Builder setDescription(String description); + + /** + * Sets an advanced logs filter. The value of the metric is the number of log entries that match + * this filter. Example: {@code logName=projects/my-projectid/logs/syslog AND severity>=ERROR}. + * + * @see Advanced Log + * Filters + */ + public abstract Builder setFilter(String filter); + + /** Creates a {@code MetricInfo} object for this builder. */ + public abstract MetricInfo build(); + } + + static final class BuilderImpl extends Builder { + + private String name; + private String description; + private String filter; + + BuilderImpl(String name, String filter) { + this.name = name; + this.filter = filter; + } + + BuilderImpl(MetricInfo metric) { + this.name = metric.name; + this.description = metric.description; + this.filter = metric.filter; + } + + @CanIgnoreReturnValue + @Override + public Builder setName(String name) { + this.name = name; + return this; + } + + @CanIgnoreReturnValue + @Override + public Builder setDescription(String description) { + this.description = description; + return this; + } + + @CanIgnoreReturnValue + @Override + public Builder setFilter(String filter) { + this.filter = filter; + return this; + } + + @Override + public MetricInfo build() { + return new MetricInfo(this); + } + } + + MetricInfo(BuilderImpl builder) { + this.name = checkNotNull(builder.name); + this.filter = checkNotNull(builder.filter); + this.description = builder.description; + } + + /** + * Returns the name of the metric. Example: {@code severe-errors}. Metric identifiers are limited + * to 1000 characters and can include only the following characters: {@code A-Z}, {@code a-z}, + * {@code 0-9}, and the special characters {@code _-.,+!*',()%/\}. The forward-slash character + * ({@code /}) denotes a hierarchy of name pieces, and it cannot be the first character of the + * name. + */ + public String getName() { + return name; + } + + /** Returns an optional description for this metric. Used for documentation purpose. */ + public String getDescription() { + return description; + } + + /** + * Returns an advanced logs filter. The value of the metric is the number of log entries that + * match this filter. Example: {@code logName=projects/my-projectid/logs/syslog AND + * severity>=ERROR}. + * + * @see Advanced Log + * Filters + */ + public String getFilter() { + return filter; + } + + @Override + public String toString() { + return MoreObjects.toStringHelper(this) + .add("name", name) + .add("description", description) + .add("filter", filter) + .toString(); + } + + final boolean baseEquals(MetricInfo metricInfo) { + return Objects.equals(name, metricInfo.name) + && Objects.equals(description, metricInfo.description) + && Objects.equals(filter, metricInfo.filter); + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof MetricInfo)) { + return false; + } + return baseEquals((MetricInfo) obj); + } + + @Override + public int hashCode() { + return Objects.hash(name, description, filter); + } + + /** Returns a builder for this {@code MetricInfo} object. */ + public Builder toBuilder() { + return new BuilderImpl(this); + } + + /** + * Returns a builder for {@code MetricInfo} objects given the name of the metric and its filter. + */ + public static Builder newBuilder(String name, String filter) { + return new BuilderImpl(name, filter); + } + + /** Creates a {@code MetricInfo} object given the name of the metric and its filter. */ + public static MetricInfo of(String name, String filter) { + return new BuilderImpl(name, filter).build(); + } + + LogMetric toPb() { + LogMetric.Builder builder = LogMetric.newBuilder().setName(name).setFilter(filter); + if (description != null) { + builder.setDescription(description); + } + return builder.build(); + } + + static MetricInfo fromPb(LogMetric metricPb) { + Builder builder = newBuilder(metricPb.getName(), metricPb.getFilter()); + if (!metricPb.getDescription().isEmpty()) { + builder.setDescription(metricPb.getDescription()); + } + return builder.build(); + } +} diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/MonitoredResourceUtil.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/MonitoredResourceUtil.java new file mode 100644 index 000000000000..fa2fa0decdde --- /dev/null +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/MonitoredResourceUtil.java @@ -0,0 +1,272 @@ +/* + * Copyright 2017 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.cloud.logging; + +import com.google.cloud.MonitoredResource; +import com.google.common.base.Strings; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMultimap; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * Monitored resource construction utilities to detect resource type and add labels. Used by logging + * framework adapters to configure default resource. See usage in {@link LoggingHandler}. + */ +public class MonitoredResourceUtil { + + private static final String APPENGINE_LABEL_PREFIX = "appengine.googleapis.com/"; + private static final String CLOUD_RUN_JOB_LABEL_PREFIX = "run.googleapis.com/"; + protected static final String PORJECTID_LABEL = Label.ProjectId.getKey(); + + protected enum Label { + ClusterName("cluster_name"), + ConfigurationName("configuration_name"), + ContainerName("container_name"), + Env("env"), + FunctionName("function_name"), + InstanceId("instance_id"), + InstanceName("instance_name"), + CloudRunJobName("job_name"), + CloudRunJobExecutionName("execution_name"), + CloudRunJobTaskIndex("task_index"), + CloudRunJobTaskAttempt("task_attempt"), + CloudRunLocation("location"), + GKELocation("location"), + ModuleId("module_id"), + NamespaceName("namespace_name"), + PodName("pod_name"), + ProjectId("project_id"), + Region("region"), + RevisionName("revision_name"), + ServiceName("service_name"), + VersionId("version_id"), + Zone("zone"); + + private final String key; + + Label(String key) { + this.key = key; + } + + String getKey() { + return key; + } + } + + private enum Resource { + CLOUD_RUN("cloud_run_revision"), + CLOUD_RUN_JOB("cloud_run_job"), + CLOUD_FUNCTION("cloud_function"), + APP_ENGINE("gae_app"), + GCE_INSTANCE("gce_instance"), + K8S_CONTAINER("k8s_container"), + GLOBAL("global"); + + private final String key; + + Resource(String key) { + this.key = key; + } + + String getKey() { + return key; + } + } + + private static final ImmutableMultimap RESOURCE_TYPE_WITH_LABELS = + ImmutableMultimap.builder() + .putAll(Resource.CLOUD_FUNCTION.getKey(), Label.FunctionName, Label.Region) + .putAll( + Resource.CLOUD_RUN.getKey(), + Label.RevisionName, + Label.ServiceName, + Label.CloudRunLocation, + Label.ConfigurationName) + .putAll(Resource.CLOUD_RUN_JOB.getKey(), Label.CloudRunJobName, Label.CloudRunLocation) + .putAll( + Resource.APP_ENGINE.getKey(), Label.ModuleId, Label.VersionId, Label.Zone, Label.Env) + .putAll(Resource.GCE_INSTANCE.getKey(), Label.InstanceId, Label.Zone) + .putAll( + Resource.K8S_CONTAINER.getKey(), + Label.GKELocation, + Label.ClusterName, + Label.NamespaceName, + Label.PodName, + Label.ContainerName) + .build(); + + private static final Map cachedMonitoredResources = new HashMap<>(); + private static ResourceTypeEnvironmentGetter getter = new ResourceTypeEnvironmentGetterImpl(); + private static MetadataLoader metadataLoader = new MetadataLoader(getter); + + private MonitoredResourceUtil() {} + + /** + * Method is intended to assist in testing MonitoredResourceUtil class only. + * + * @param getter A mocked environment getter for simulated test environments. + */ + protected static void setEnvironmentGetter(ResourceTypeEnvironmentGetter getter) { + MonitoredResourceUtil.getter = getter; + MonitoredResourceUtil.metadataLoader = new MetadataLoader(getter); + } + + /** + * Build {@link MonitoredResource} based on detected resource type and populate it with labels + * following Monitored Resource Types documentation. + * + * @param projectId A string defining the project id + * @param resourceType A custom resource type + * @return the created {@link MonitoredResource} + * @see Monitored resource Types + */ + public static MonitoredResource getResource(String projectId, String resourceType) { + if (projectId == null || projectId.trim().isEmpty()) { + projectId = metadataLoader.getValue(Label.ProjectId); + } + + MonitoredResource result = cachedMonitoredResources.get(projectId + "/" + resourceType); + if (result != null) { + return result; + } + + if (Strings.isNullOrEmpty(resourceType)) { + Resource detectedResourceType = detectResourceType(); + resourceType = detectedResourceType.getKey(); + } + MonitoredResource.Builder builder = + MonitoredResource.newBuilder(resourceType).addLabel(Label.ProjectId.getKey(), projectId); + + for (Label label : RESOURCE_TYPE_WITH_LABELS.get(resourceType)) { + String value = metadataLoader.getValue(label); + if (value != null) { + builder.addLabel(label.getKey(), value); + } + } + result = builder.build(); + cachedMonitoredResources.put(projectId + "/" + resourceType, result); + return result; + } + + /** + * Detect monitored Resource type using the following heuristic rules based on the environment and + * metadata server. + */ + private static Resource detectResourceType() { + // expects supported Google Cloud resource to have access to metadata server + if (getter.getAttribute("") == null) { + return Resource.GLOBAL; + } + + if (getter.getEnv("FUNCTION_SIGNATURE_TYPE") != null + && getter.getEnv("FUNCTION_TARGET") != null) { + return Resource.CLOUD_FUNCTION; + } + if (getter.getEnv("K_SERVICE") != null + && getter.getEnv("K_REVISION") != null + && getter.getEnv("K_CONFIGURATION") != null) { + return Resource.CLOUD_RUN; + } + if (getter.getEnv("CLOUD_RUN_JOB") != null + && getter.getEnv("CLOUD_RUN_EXECUTION") != null + && getter.getEnv("CLOUD_RUN_TASK_INDEX") != null + && getter.getEnv("CLOUD_RUN_TASK_ATTEMPT") != null) { + return Resource.CLOUD_RUN_JOB; + } + if (getter.getEnv("GAE_INSTANCE") != null + && getter.getEnv("GAE_SERVICE") != null + && getter.getEnv("GAE_VERSION") != null) { + return Resource.APP_ENGINE; + } + if (getter.getAttribute("instance/attributes/cluster-name") != null) { + return Resource.K8S_CONTAINER; + } + if (getter.getAttribute("instance/preempted") != null + && getter.getAttribute("instance/cpu-platform") != null + && getter.getAttribute("instance/attributes/gae_app_bucket") == null) { + return Resource.GCE_INSTANCE; + } + // other Google Cloud resources (e.g. CloudBuild) might be misdetected + return Resource.GLOBAL; + } + + /** + * Returns custom log entry enhancers (if available) for resource type. + * + * @return custom log entry enhancers + */ + public static List getResourceEnhancers() { + Resource resourceType = detectResourceType(); + return createEnhancers(resourceType); + } + + private static List createEnhancers(Resource resourceType) { + List enhancers = new ArrayList<>(2); + if (resourceType == Resource.APP_ENGINE) { + enhancers.add(new TraceLoggingEnhancer(APPENGINE_LABEL_PREFIX)); + if (MetadataLoader.ENV_FLEXIBLE.equals(metadataLoader.getValue(Label.Env))) { + enhancers.add( + new LabelLoggingEnhancer(APPENGINE_LABEL_PREFIX, ImmutableList.of(Label.InstanceName))); + } + } else if (resourceType == Resource.CLOUD_RUN_JOB) { + enhancers.add( + new LabelLoggingEnhancer( + CLOUD_RUN_JOB_LABEL_PREFIX, + ImmutableList.of( + Label.CloudRunJobExecutionName, + Label.CloudRunJobTaskIndex, + Label.CloudRunJobTaskAttempt))); + } + return enhancers; + } + + /** + * Adds additional resource-based labels to log entries. Labels that can be provided with {@link + * MonitoredResource.Builder#addLabel(String, String)} are restricted to a supported set per + * resource. + * + * @see Logging Labels + */ + private static class LabelLoggingEnhancer implements LoggingEnhancer { + + private final Map labels; + + LabelLoggingEnhancer(String prefix, List